@customize-agent/server 4.58.0 → 4.59.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (225) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +132 -143
  3. package/.next/prerender-manifest.json +3 -3
  4. package/.next/routes-manifest.json +117 -9
  5. package/.next/server/chunks/1001.js +56 -0
  6. package/.next/server/chunks/1928.js +1 -1
  7. package/.next/server/chunks/1936.js +2 -2
  8. package/.next/server/chunks/2434.js +4 -0
  9. package/.next/server/chunks/299.js +50 -0
  10. package/.next/server/chunks/5547.js +350 -0
  11. package/.next/server/chunks/6087.js +3 -0
  12. package/.next/server/chunks/6321.js +3 -0
  13. package/.next/server/chunks/8204.js +1 -1
  14. package/.next/server/middleware-build-manifest.js +1 -1
  15. package/.next/server/pages/404.html +1 -1
  16. package/.next/server/pages/500.html +1 -1
  17. package/.next/server/pages/api/assets/generated/preview.js +1 -1
  18. package/.next/server/pages/api/assets/generated/preview.js.nft.json +1 -1
  19. package/.next/server/pages/api/assets/generated.js +1 -1
  20. package/.next/server/pages/api/assets/generated.js.nft.json +1 -1
  21. package/.next/server/pages/api/config/embedding/healthCheck.js.nft.json +1 -1
  22. package/.next/server/pages/api/config/healthCheck.js +2 -2
  23. package/.next/server/pages/api/config/providers.js +2 -2
  24. package/.next/server/pages/api/documents/canvas/[id].js +2 -0
  25. package/.next/server/pages/api/documents/canvas/[id].js.nft.json +1 -0
  26. package/.next/server/pages/api/documents/export.js +3 -3
  27. package/.next/server/pages/api/documents/export.js.nft.json +1 -1
  28. package/.next/server/pages/api/documents/generate/preview.js +2 -0
  29. package/.next/server/pages/api/documents/generate/preview.js.nft.json +1 -0
  30. package/.next/server/pages/api/documents/generate.js +2 -2
  31. package/.next/server/pages/api/documents/generate.js.nft.json +1 -1
  32. package/.next/server/pages/api/documents/generated/[id]/events.js +10 -0
  33. package/.next/server/pages/api/documents/generated/[id]/events.js.nft.json +1 -0
  34. package/.next/server/pages/api/documents/generated/[id]/figure/[name].js +1 -0
  35. package/.next/server/pages/api/documents/generated/[id]/figure/[name].js.nft.json +1 -0
  36. package/.next/server/pages/api/documents/generated/[id]/nodes/[nodeId].js +2 -0
  37. package/.next/server/pages/api/documents/generated/[id]/nodes/[nodeId].js.nft.json +1 -0
  38. package/.next/server/pages/api/documents/generated/[id]/nodes.js +2 -0
  39. package/.next/server/pages/api/documents/generated/[id]/nodes.js.nft.json +1 -0
  40. package/.next/server/pages/api/documents/generated/[id]/pause.js +2 -0
  41. package/.next/server/pages/api/documents/generated/[id]/pause.js.nft.json +1 -0
  42. package/.next/server/pages/api/documents/generated/[id]/preview.js +2 -0
  43. package/.next/server/pages/api/documents/generated/[id]/preview.js.nft.json +1 -0
  44. package/.next/server/pages/api/documents/generated/[id]/repair/[rid]/confirm.js +1 -0
  45. package/.next/server/pages/api/documents/generated/[id]/repair/[rid]/confirm.js.nft.json +1 -0
  46. package/.next/server/pages/api/documents/generated/[id]/repair/[rid]/rollback.js +1 -0
  47. package/.next/server/pages/api/documents/generated/[id]/repair/[rid]/rollback.js.nft.json +1 -0
  48. package/.next/server/pages/api/documents/generated/[id]/repair.js +1 -0
  49. package/.next/server/pages/api/documents/generated/[id]/repair.js.nft.json +1 -0
  50. package/.next/server/pages/api/documents/generated/[id]/resume-generate.js +2 -0
  51. package/.next/server/pages/api/documents/generated/[id]/resume-generate.js.nft.json +1 -0
  52. package/.next/server/pages/api/documents/generated/[id].js +2 -2
  53. package/.next/server/pages/api/documents/generated/[id].js.nft.json +1 -1
  54. package/.next/server/pages/api/documents/generated.js +1 -1
  55. package/.next/server/pages/api/documents/generated.js.nft.json +1 -1
  56. package/.next/server/pages/api/jobs/[id].js +1 -1
  57. package/.next/server/pages/api/jobs/[id].js.nft.json +1 -1
  58. package/.next/server/pages/api/jobs.js +1 -1
  59. package/.next/server/pages/api/jobs.js.nft.json +1 -1
  60. package/.next/server/pages/api/kb/categories.js +2 -2
  61. package/.next/server/pages/api/kb/categories.js.nft.json +1 -1
  62. package/.next/server/pages/api/kb/duplicates.js +2 -2
  63. package/.next/server/pages/api/kb/duplicates.js.nft.json +1 -1
  64. package/.next/server/pages/api/kb/evaluate.js +3 -3
  65. package/.next/server/pages/api/kb/evaluate.js.nft.json +1 -1
  66. package/.next/server/pages/api/kb/files/detail.js +4 -4
  67. package/.next/server/pages/api/kb/files/detail.js.nft.json +1 -1
  68. package/.next/server/pages/api/kb/files/export.js +3 -3
  69. package/.next/server/pages/api/kb/files/export.js.nft.json +1 -1
  70. package/.next/server/pages/api/kb/files/open.js +2 -2
  71. package/.next/server/pages/api/kb/files/open.js.nft.json +1 -1
  72. package/.next/server/pages/api/kb/files/preview-pdf-page.js +1 -1
  73. package/.next/server/pages/api/kb/files/preview-pdf-page.js.nft.json +1 -1
  74. package/.next/server/pages/api/kb/files/reindex.js +1 -1
  75. package/.next/server/pages/api/kb/files/reindex.js.nft.json +1 -1
  76. package/.next/server/pages/api/kb/files/search.js +3 -3
  77. package/.next/server/pages/api/kb/files/search.js.nft.json +1 -1
  78. package/.next/server/pages/api/kb/files/tree.js +3 -3
  79. package/.next/server/pages/api/kb/files/tree.js.nft.json +1 -1
  80. package/.next/server/pages/api/kb/files.js +4 -4
  81. package/.next/server/pages/api/kb/files.js.nft.json +1 -1
  82. package/.next/server/pages/api/kb/ignore.js +2 -2
  83. package/.next/server/pages/api/kb/ignore.js.nft.json +1 -1
  84. package/.next/server/pages/api/kb/intelligence.js +1 -1
  85. package/.next/server/pages/api/kb/intelligence.js.nft.json +1 -1
  86. package/.next/server/pages/api/kb/material-groups.js +2 -0
  87. package/.next/server/pages/api/kb/material-groups.js.nft.json +1 -0
  88. package/.next/server/pages/api/kb/operations.js +1 -1
  89. package/.next/server/pages/api/kb/operations.js.nft.json +1 -1
  90. package/.next/server/pages/api/kb/reindex.js +1 -1
  91. package/.next/server/pages/api/kb/reindex.js.nft.json +1 -1
  92. package/.next/server/pages/api/kb/search.js +2 -2
  93. package/.next/server/pages/api/kb/search.js.nft.json +1 -1
  94. package/.next/server/pages/api/kb/stats.js +2 -2
  95. package/.next/server/pages/api/kb/stats.js.nft.json +1 -1
  96. package/.next/server/pages/api/kb/tags.js +1 -1
  97. package/.next/server/pages/api/kb/tags.js.nft.json +1 -1
  98. package/.next/server/pages/api/kb/upload/complete.js +1 -1
  99. package/.next/server/pages/api/kb/upload/complete.js.nft.json +1 -1
  100. package/.next/server/pages/api/kb/upload/progress.js +2 -2
  101. package/.next/server/pages/api/kb/upload/progress.js.nft.json +1 -1
  102. package/.next/server/pages/api/kb/upload.js +1 -1
  103. package/.next/server/pages/api/kb/upload.js.nft.json +1 -1
  104. package/.next/server/pages/api/prompt.js +1 -1
  105. package/.next/server/pages/api/prompt.js.nft.json +1 -1
  106. package/.next/server/pages/api/skills/[id].js +1 -0
  107. package/.next/server/pages/api/skills/[id].js.nft.json +1 -0
  108. package/.next/server/pages/api/skills/validate.js +1 -0
  109. package/.next/server/pages/api/skills/validate.js.nft.json +1 -0
  110. package/.next/server/pages/api/skills.js +1 -0
  111. package/.next/server/pages/api/skills.js.nft.json +1 -0
  112. package/.next/server/pages/api/system/logs.js +2 -2
  113. package/.next/server/pages/api/system/stats.js +1 -1
  114. package/.next/server/pages/canvas/[id].html +1 -0
  115. package/.next/server/pages/canvas/[id].js.nft.json +1 -0
  116. package/.next/server/pages/canvas.html +1 -0
  117. package/.next/server/pages/canvas.js.nft.json +1 -0
  118. package/.next/server/pages/documents.html +1 -1
  119. package/.next/server/pages/documents.js.nft.json +1 -1
  120. package/.next/server/pages/guide.html +1 -1
  121. package/.next/server/pages/index.html +1 -1
  122. package/.next/server/pages/knowledge/file-detail.html +1 -1
  123. package/.next/server/pages/knowledge/files.html +1 -1
  124. package/.next/server/pages/knowledge/files.js.nft.json +1 -1
  125. package/.next/server/pages/knowledge/manage.html +1 -1
  126. package/.next/server/pages/knowledge/manage.js.nft.json +1 -1
  127. package/.next/server/pages/knowledge.html +1 -1
  128. package/.next/server/pages/knowledge.js.nft.json +1 -1
  129. package/.next/server/pages/models.html +1 -1
  130. package/.next/server/pages/overview.html +1 -1
  131. package/.next/server/pages/prompt.html +1 -1
  132. package/.next/server/pages/settings.html +1 -1
  133. package/.next/server/pages/skills.html +1 -0
  134. package/.next/server/pages/system/logs.html +1 -1
  135. package/.next/server/pages-manifest.json +42 -29
  136. package/.next/static/Z8psgNSpy4sSg2lIho8Uw/_buildManifest.js +1 -0
  137. package/.next/static/chunks/127-20f09f6ebe1e6c1f.js +1 -0
  138. package/.next/static/chunks/174-1bc48f295d7dd075.js +10 -0
  139. package/.next/static/chunks/189-3f4f4e237056adaf.js +4 -0
  140. package/.next/static/chunks/243-03eba51d5d737e98.js +1 -0
  141. package/.next/static/chunks/269-7a3502478bf67fff.js +11 -0
  142. package/.next/static/chunks/289-136ebb30e0f6723a.js +78 -0
  143. package/.next/static/chunks/310-6c678cb70e4ba2d6.js +19 -0
  144. package/.next/static/chunks/422-46f07037c58d2309.js +1 -0
  145. package/.next/static/chunks/426-90638907336adcb8.js +21 -0
  146. package/.next/static/chunks/445-d12731f107978b10.js +6 -0
  147. package/.next/static/chunks/530-1b18bb11570dc44a.js +1 -0
  148. package/.next/static/chunks/569-2bfdde9e402af5b2.js +16 -0
  149. package/.next/static/chunks/700-5d29b0475311f590.js +1 -0
  150. package/.next/static/chunks/709-a7c652953ccd3b4b.js +1 -0
  151. package/.next/static/chunks/787-207289f4bb577708.js +10 -0
  152. package/.next/static/chunks/795-9e0cb0bb11e8c89f.js +1 -0
  153. package/.next/static/chunks/914-292edce0ba2a212d.js +1 -0
  154. package/.next/static/chunks/{framework-161be364fd69a7ce.js → framework-4b565b3ddc94cdac.js} +1 -1
  155. package/.next/static/chunks/main-0c91f573696223ca.js +1 -0
  156. package/.next/static/chunks/pages/_app-74fce107cacfaee7.js +185 -0
  157. package/.next/static/chunks/pages/canvas/[id]-9f4e9f49e512418b.js +1 -0
  158. package/.next/static/chunks/pages/canvas-323d44fe56d685a7.js +1 -0
  159. package/.next/static/chunks/pages/documents-e6a80f2de39c6fd2.js +1 -0
  160. package/.next/static/chunks/pages/guide-7367305082617e3c.js +1 -0
  161. package/.next/static/chunks/pages/knowledge/file-detail-aee7c15541d1d130.js +1 -0
  162. package/.next/static/chunks/pages/knowledge/files-b3ef5324e4b74c4a.js +1 -0
  163. package/.next/static/chunks/pages/knowledge/manage-d9eaebf3a8307953.js +1 -0
  164. package/.next/static/chunks/pages/knowledge-ca8ad5501faed486.js +1 -0
  165. package/.next/static/chunks/pages/models-8b96ba85131d5408.js +1 -0
  166. package/.next/static/chunks/pages/prompt-dd9a9f9105216e2b.js +1 -0
  167. package/.next/static/chunks/pages/settings-0a7709bf039a2a4d.js +1 -0
  168. package/.next/static/chunks/pages/skills-3d77213c3e9ef0b5.js +1 -0
  169. package/.next/static/chunks/pages/system/logs-9deb1217739490af.js +1 -0
  170. package/.next/static/chunks/webpack-6224d37324e372cb.js +1 -0
  171. package/.next/static/css/0e46e39b61e4e262.css +1 -0
  172. package/messages/en-US.json +108 -344
  173. package/messages/zh-CN.json +109 -345
  174. package/package.json +6 -5
  175. package/scripts/capture-baseline.mjs +541 -0
  176. package/.next/server/chunks/208.js +0 -136
  177. package/.next/server/chunks/4435.js +0 -250
  178. package/.next/server/chunks/5840.js +0 -1
  179. package/.next/server/pages/api/documents/drafts.js +0 -1
  180. package/.next/server/pages/api/documents/drafts.js.nft.json +0 -1
  181. package/.next/server/pages/api/documents/refine.js +0 -13
  182. package/.next/server/pages/api/documents/refine.js.nft.json +0 -1
  183. package/.next/server/pages/api/documents/roles.js +0 -1
  184. package/.next/server/pages/api/documents/roles.js.nft.json +0 -1
  185. package/.next/server/pages/api/documents/templates.js +0 -1
  186. package/.next/server/pages/api/documents/templates.js.nft.json +0 -1
  187. package/.next/server/pages/asset-library.html +0 -1
  188. package/.next/server/pages/document-roles.html +0 -1
  189. package/.next/server/pages/document-roles.js.nft.json +0 -1
  190. package/.next/static/2vWd2mBe-maL25SFytCur/_buildManifest.js +0 -1
  191. package/.next/static/chunks/195-2c0168eacab722d2.js +0 -1
  192. package/.next/static/chunks/289-35ac595388bbd018.js +0 -78
  193. package/.next/static/chunks/44-d3545eedd5c75ef1.js +0 -4
  194. package/.next/static/chunks/455-e1b41ac4946d2b6f.js +0 -6
  195. package/.next/static/chunks/563-b12f299d34bb9e44.js +0 -1
  196. package/.next/static/chunks/665-88e20299084b9e73.js +0 -1
  197. package/.next/static/chunks/7-20bcc985742a9ae1.js +0 -10
  198. package/.next/static/chunks/717-743b697a417dd5ee.js +0 -4
  199. package/.next/static/chunks/760-f8bb8e969c5e0d57.js +0 -1
  200. package/.next/static/chunks/787-c18af810af3433f6.js +0 -25
  201. package/.next/static/chunks/788-3afeb069ed706ac0.js +0 -1
  202. package/.next/static/chunks/795-cd94e8d4e9768eb9.js +0 -1
  203. package/.next/static/chunks/81-c3a7f04d96ea3f7d.js +0 -1
  204. package/.next/static/chunks/827-a6dc09e42833e6a3.js +0 -1
  205. package/.next/static/chunks/883-506cbca959974997.js +0 -16
  206. package/.next/static/chunks/986-49b865de7906320a.js +0 -8
  207. package/.next/static/chunks/994-241f87efc61005b8.js +0 -4
  208. package/.next/static/chunks/main-91fb767ebd74c9c1.js +0 -1
  209. package/.next/static/chunks/pages/_app-66149ba52ad1dc26.js +0 -185
  210. package/.next/static/chunks/pages/asset-library-a1047694e888e655.js +0 -1
  211. package/.next/static/chunks/pages/document-roles-5620a98d6312f81c.js +0 -1
  212. package/.next/static/chunks/pages/documents-d60a47643f5bd6b4.js +0 -1
  213. package/.next/static/chunks/pages/guide-a411c554520b7109.js +0 -1
  214. package/.next/static/chunks/pages/knowledge/file-detail-fe69eb38d70adea0.js +0 -1
  215. package/.next/static/chunks/pages/knowledge/files-8e25066889a85834.js +0 -1
  216. package/.next/static/chunks/pages/knowledge/manage-d0d0e0716e9d705b.js +0 -1
  217. package/.next/static/chunks/pages/knowledge-905248d8dcb15453.js +0 -1
  218. package/.next/static/chunks/pages/models-6ef838f3e00ba21e.js +0 -1
  219. package/.next/static/chunks/pages/prompt-5e1fb81efc656866.js +0 -1
  220. package/.next/static/chunks/pages/settings-810eb1a6cf1a6b02.js +0 -1
  221. package/.next/static/chunks/pages/system/logs-6f45ef8d862759a2.js +0 -1
  222. package/.next/static/chunks/webpack-4224e970a97a4a86.js +0 -1
  223. package/.next/static/css/18018ee565a1deba.css +0 -1
  224. /package/.next/server/pages/{asset-library.js.nft.json → skills.js.nft.json} +0 -0
  225. /package/.next/static/{2vWd2mBe-maL25SFytCur → Z8psgNSpy4sSg2lIho8Uw}/_ssgManifest.js +0 -0
@@ -0,0 +1,6 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[445],{15033:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(97109).createContext)({})},25341:(e,t,n)=>{n.d(t,{A:()=>m});var r=n(97109),i=n(3638),a=n(26047),l=n(19135),o=n(74567),c=n(59609),s=n(15033),u=n(84060);let d=(e,t)=>{let[n,i]=r.useState(()=>(0,a.Kg)(e)?e:"");return r.useEffect(()=>{(()=>{if((0,a.Kg)(e)&&i(e),(0,a.Qd)(e))for(let n=0;n<l.ye.length;n++){let r=l.ye[n];if(!t||!t[r])continue;let a=e[r];if(void 0!==a)return void i(a)}})()},[JSON.stringify(e),t]),n},m=r.forwardRef((e,t)=>{let{prefixCls:n,justify:m,align:h,className:p,style:g,children:f,gutter:$=0,wrap:b,...v}=e,{getPrefixCls:y,direction:E}=r.useContext(o.QO),S=(0,c.A)(!0,null),x=d(h,S),w=d(m,S),A=y("row",n),[N,k]=(0,u.L3)(A),I=function(e,t){let n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],i=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0,xxxl:!0};return r.forEach((e,t)=>{if((0,a.Qd)(e))for(let r=0;r<l.ye.length;r++){let a=l.ye[r];if(i[a]&&void 0!==e[a]){n[t]=e[a];break}}else n[t]=e}),n}($,S),C=(0,i.$)(A,{[`${A}-no-wrap`]:!1===b,[`${A}-${w}`]:w,[`${A}-${x}`]:x,[`${A}-rtl`]:"rtl"===E},p,N,k),M={};I?.[0]&&(M.marginInline=(0,a.Et)(I[0])?`${-(I[0]/2)}px`:`calc(${I[0]} / -2)`);let[z,F]=I;M.rowGap=F;let R=r.useMemo(()=>({gutter:[z,F],wrap:b}),[z,F,b]);return r.createElement(s.A.Provider,{value:R},r.createElement("div",{...v,className:C,style:{...M,...g},ref:t},f))})},44534:(e,t,n)=>{n.d(t,{A:()=>w});var r=n(97109),i=n(83914),a=n(3638),l=n(32565),o=n(99452);function c(){return(c=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(({prefixCls:e="rc-switch",className:t,checked:n,defaultChecked:i,disabled:s,loadingIcon:u,checkedChildren:d,unCheckedChildren:m,onClick:h,onChange:p,onKeyDown:g,styles:f,classNames:$,...b},v)=>{let[y,E]=(0,l.A)(i??!1,n);function S(e,t){let n=y;return s||(E(n=e),p?.(n,t)),n}let x=(0,a.$)(e,t,{[`${e}-checked`]:y,[`${e}-disabled`]:s});return r.createElement("button",c({},b,{type:"button",role:"switch","aria-checked":y,disabled:s,className:x,ref:v,onKeyDown:function(e){e.which===o.A.LEFT?S(!1,e):e.which===o.A.RIGHT&&S(!0,e),g?.(e)},onClick:function(e){let t=S(!y,e);h?.(t,e)}}),u,r.createElement("span",{className:`${e}-inner`},r.createElement("span",{className:(0,a.$)(`${e}-inner-checked`,$?.content),style:f?.content},d),r.createElement("span",{className:(0,a.$)(`${e}-inner-unchecked`,$?.content),style:f?.content},m)))});s.displayName="Switch";var u=n(42644),d=n(92162),m=n(38862),h=n(74567),p=n(6831),g=n(27273),f=n(15561),$=n(47252),b=n(7961),v=n(16666),y=n(10540),E=n(28403);let S=(0,y.OF)("Switch",e=>{let t=(0,E.oX)(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[(e=>{let{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:{...(0,b.dF)(e),position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:(0,f.zA)(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",...(0,v.V)(),[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary},...(0,b.K8)(e),[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}}}})(t),(e=>{let{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:i,innerMaxMargin:a,handleSize:l,switchDuration:o,calc:c}=e,s=`${t}-inner`,u=(0,f.zA)(c(l).add(c(r).mul(2)).equal()),d=(0,f.zA)(c(a).mul(2).equal());return{[t]:{[s]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:a,paddingInlineEnd:i,transition:["padding-inline-start","padding-inline-end"].map(e=>`${e} ${o} ease-in-out`).join(", "),...(0,v.V)(),[`${s}-checked, ${s}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,pointerEvents:"none",minHeight:n,transition:["margin-inline-start","margin-inline-end"].map(e=>`${e} ${o} ease-in-out`).join(", "),...(0,v.V)()},[`${s}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${s}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${s}`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${s}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${s}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${s}`]:{[`${s}-unchecked`]:{marginInlineStart:c(r).mul(2).equal(),marginInlineEnd:c(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${s}`]:{[`${s}-checked`]:{marginInlineStart:c(r).mul(-1).mul(2).equal(),marginInlineEnd:c(r).mul(2).equal()}}}}}})(t),(e=>{let{componentCls:t,trackPadding:n,handleBg:r,handleShadow:i,handleSize:a,calc:l}=e,o=`${t}-handle`;return{[t]:{[o]:{position:"absolute",top:n,insetInlineStart:n,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,...(0,v.V)(),"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:l(a).div(2).equal(),boxShadow:i,transition:`all ${e.switchDuration} ease-in-out`,content:'""',...(0,v.V)()}},[`&${t}-checked ${o}`]:{insetInlineStart:`calc(100% - ${(0,f.zA)(l(a).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${o}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${o}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}})(t),(e=>{let{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}})(t),(e=>{let{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:i,innerMinMarginSM:a,innerMaxMarginSM:l,handleSizeSM:o,calc:c}=e,s=`${t}-inner`,u=(0,f.zA)(c(o).add(c(r).mul(2)).equal()),d=(0,f.zA)(c(l).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:i,height:n,lineHeight:(0,f.zA)(n),[`${t}-inner`]:{paddingInlineStart:l,paddingInlineEnd:a,[`${s}-checked, ${s}-unchecked`]:{minHeight:n},[`${s}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${s}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:o,height:o},[`${t}-loading-icon`]:{top:c(c(o).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:l,[`${s}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${s}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${(0,f.zA)(c(o).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${s}`]:{[`${s}-unchecked`]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${s}`]:{[`${s}-checked`]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}})(t)]},e=>{let{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:i}=e,a=t*n,l=r/2,o=a-4,c=l-4;return{trackHeight:a,trackHeightSM:l,trackMinWidth:2*o+8,trackMinWidthSM:2*c+4,trackPadding:2,handleBg:i,handleSize:o,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new $.Y("#00230b").setA(.2).toRgbString()}`,innerMinMargin:o/2,innerMaxMargin:o+2+4,innerMinMarginSM:c/2,innerMaxMarginSM:c+2+4}}),x=r.forwardRef((e,t)=>{let{prefixCls:n,size:l,disabled:o,loading:c,className:f,rootClassName:$,style:b,checked:v,value:y,defaultChecked:E,defaultValue:x,onChange:w,styles:A,classNames:N,...k}=e,[I,C]=(0,u.PW)(E??x??!1,v??y),{getPrefixCls:M,direction:z,className:F,style:R,classNames:T,styles:q}=(0,h.TP)("switch"),B=r.useContext(p.A),O=(o??B)||c,H=M("switch",n),[_,W]=S(H),D=(0,g.A)(l),P={...e,size:D,disabled:O},L=(0,d.XT)(R),X=(0,d.XT)(b),[j,V]=(0,d.AV)([T,N],[q,L,A,X],{props:P}),G=r.createElement("div",{className:(0,a.$)(`${H}-handle`,j.indicator),style:V.indicator},c&&r.createElement(i.A,{className:`${H}-loading-icon`})),K=(0,a.$)(F,{[`${H}-small`]:"small"===D,[`${H}-loading`]:c,[`${H}-rtl`]:"rtl"===z},f,$,j.root,_,W);return r.createElement(m.A,{component:"Switch",disabled:O},r.createElement(s,{...k,classNames:j,styles:V,checked:I,onChange:(...e)=>{C(e[0]),w?.(...e)},prefixCls:H,className:K,style:V.root,disabled:O,ref:t,loadingIcon:G}))});x.__ANT_SWITCH=!0;let w=x},51916:(e,t,n)=>{n.d(t,{A:()=>m});var r=n(97109),i=n(3638),a=n(26047),l=n(19135),o=n(74567),c=n(10540),s=n(15033),u=n(84060);function d(e){return"auto"===e?"1 1 auto":(0,a.Et)(e)?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}let m=r.forwardRef((e,t)=>{let{getPrefixCls:n,direction:m}=r.useContext(o.QO),{gutter:h,wrap:p}=r.useContext(s.A),{prefixCls:g,span:f,order:$,offset:b,push:v,pull:y,className:E,children:S,flex:x,style:w,...A}=e,N=n("col",g),k=n(),[I,C]=(0,u.xV)(N),[M]=(0,c.PN)(k,"col"),z={},F={};l.Gl.forEach(t=>{let n={},r=e[t];(0,a.Et)(r)?n.span=r:(0,a.Qd)(r)&&(n=r||{}),delete A[t],F={...F,[`${N}-${t}-${n.span}`]:(0,a.R)(n.span),[`${N}-${t}-order-${n.order}`]:n.order||0===n.order,[`${N}-${t}-offset-${n.offset}`]:n.offset||0===n.offset,[`${N}-${t}-push-${n.push}`]:n.push||0===n.push,[`${N}-${t}-pull-${n.pull}`]:n.pull||0===n.pull,[`${N}-rtl`]:"rtl"===m},n.flex&&(F[`${N}-${t}-flex`]=!0,z[M(`${t}-flex`)]=d(n.flex))});let R=(0,i.$)(N,{[`${N}-${f}`]:void 0!==f,[`${N}-order-${$}`]:$,[`${N}-offset-${b}`]:b,[`${N}-push-${v}`]:v,[`${N}-pull-${y}`]:y},E,F,I,C),T={};return h?.[0]&&(T.paddingInline=(0,a.Et)(h[0])?`${h[0]/2}px`:`calc(${h[0]} / 2)`),x&&(T.flex=d(x),!1!==p||T.minWidth||(T.minWidth=0)),r.createElement("div",{...A,style:{...T,...w,...z},className:R,ref:t},S)})},63455:(e,t,n)=>{n.d(t,{A:()=>ec});var r=n(55359),i=n(9750),a=n(97109),l=n(67189),o=n(3638),c=n(26047),s=n(84649),u=n(632);function d(e){let[t,n]=a.useState(e);return a.useEffect(()=>{let t=setTimeout(()=>{n(e)},10*!e.length);return()=>{clearTimeout(t)}},[e]),t}var m=n(15561),h=n(7961),p=n(49345),g=n(15437),f=n(28403),$=n(10540);let b=(e,t)=>{let{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},v=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),y=(e,t)=>(0,f.oX)(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),E=(0,$.OF)("Form",(e,{rootPrefixCls:t})=>{let n=y(e,t);return[(e=>{let{componentCls:t}=e;return{[t]:{...(0,h.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,m.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,m.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)}}}})(n),(e=>{let{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:i,labelRequiredMarkColor:a,labelColor:l,labelFontSize:o,labelHeight:c,labelColonMarginInlineStart:s,labelColonMarginInlineEnd:u,itemMarginBottom:d}=e,[m]=(0,$.PN)(i,"grid");return{[t]:{...(0,h.dF)(e),marginBottom:d,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
2
+ &-hidden${i}-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:c,color:l,fontSize:o,[`> ${n}`]:{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:s,marginInlineEnd:u},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{[m("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(> ${i}-switch:only-child, > ${i}-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:p.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}}}}})(n),(e=>{let{componentCls:t,motionDurationFast:n,motionEaseInOut:r}=e,i=`${t}-show-help`,a=`${t}-show-help-item`;return{[i]:{transition:`opacity ${n} ${r}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[a]:{overflow:"hidden",transition:`${["height","opacity","transform"].map(e=>`${e} ${n} ${r}`).join(", ")} !important`,[`&${a}-appear, &${a}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${a}-leave-active`]:{transform:"translateY(-5px)"}}}}})(n),(e=>{let{antCls:t,formItemCls:n}=e;return{[`${n}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}},[`${t}-col-24${n}-label,
3
+ ${t}-col-xl-24${n}-label`]:v(e)}}})(n),(e=>{let{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[`${n}-inline`]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,
4
+ > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}})(n),(e=>{let{componentCls:t,formItemCls:n,antCls:r,verticalLabelHeight:i}=e;return{[`${n}-vertical`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:i},[`${n}-control`]:{width:"100%"},[`${n}-label,
5
+ ${r}-col-24${n}-label,
6
+ ${r}-col-xl-24${n}-label`]:v(e)},[`@media (max-width: ${(0,m.zA)(e.screenXSMax)})`]:[(e=>{let{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:v(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}})(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:v(e)}}}],[`@media (max-width: ${(0,m.zA)(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:v(e)}}},[`@media (max-width: ${(0,m.zA)(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:v(e)}}},[`@media (max-width: ${(0,m.zA)(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:v(e)}}}}})(n),(0,g.A)(n),p.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}),S=[];function x(e,t,n,r=0){return{key:"string"==typeof e?e:`${t}-${r}`,error:e,errorStatus:n}}let w=({help:e,helpStatus:t,errors:n=S,warnings:m=S,className:h,fieldId:p,onVisibleChanged:g})=>{let{prefixCls:f}=a.useContext(r.hb),{classNames:$,styles:b}=a.useContext(r.cK),v=`${f}-item-explain`,y=(0,u.A)(f),[w,A]=E(f,y),N=a.useMemo(()=>(0,s.A)(f),[f]),k=d(n),I=d(m),C=(0,c.R)(e)&&!1!==e,M=a.useMemo(()=>C?[x(e,"help",t)]:[].concat((0,i.A)(k.map((e,t)=>x(e,"error","error",t))),(0,i.A)(I.map((e,t)=>x(e,"warning","warning",t)))),[e,t,C,k,I]),z=a.useMemo(()=>{let e={};return M.forEach(({key:t})=>{e[t]=(e[t]||0)+1}),M.map((t,n)=>({...t,key:e[t.key]>1?`${t.key}-fallback-${n}`:t.key}))},[M]),F={};return p&&(F.id=`${p}_help`),a.createElement(l.Ay,{motionDeadline:N.motionDeadline,motionName:`${f}-show-help`,visible:!!z.length,onVisibleChanged:g},e=>{let{className:t,style:n}=e;return a.createElement("div",{...F,className:(0,o.$)(v,t,$?.help,A,y,h,w),style:{...b?.help,...n}},a.createElement(l.aF,{keys:z,...(0,s.A)(f),motionName:`${f}-show-help-item`,component:!1},e=>{let{key:t,error:n,errorStatus:r,className:i,style:l}=e;return a.createElement("div",{key:t,className:(0,o.$)(i,$?.helpItem,{[`${v}-${r}`]:r}),style:{...b?.helpItem,...l}},n)}))})};var A=n(4932),N=n(92162),k=n(74567),I=n(6831),C=n(27273),M=n(53172),z=n(10218),F=n(99381);let R=a.forwardRef((e,t)=>{let n=a.useContext(I.A),{getPrefixCls:i,direction:l,requiredMark:s,colon:d,scrollToFirstError:m,className:h,style:p,styles:g,classNames:f,tooltip:$,labelAlign:b,labelWrap:v}=(0,k.TP)("form"),{prefixCls:y,className:S,rootClassName:x,size:w,disabled:R=n,form:T,colon:q,labelAlign:B,labelWrap:O,labelCol:H,wrapperCol:_,layout:W="horizontal",scrollToFirstError:D,requiredMark:P,onFinishFailed:L,name:X,style:j,feedbackIcons:V,variant:G,classNames:K,styles:Q,tooltip:U,...Y}=e,J=(0,C.A)(w),Z=a.useContext(F.A),ee=a.useMemo(()=>void 0!==P?P:void 0===s||s,[P,s]),et=q??d,en=B??b,er=O??v,ei={...$,...U},ea=i("form",y),el=(0,u.A)(ea),[eo,ec]=E(ea,el),es={...e,size:J,disabled:R,layout:W,colon:et,requiredMark:ee,labelAlign:en,labelWrap:er},eu=(0,N.XT)(p),ed=(0,N.XT)(j),[em,eh]=(0,N.AV)([f,K],[g,eu,Q,ed],{props:es}),ep=(0,o.$)(ea,`${ea}-${W}`,{[`${ea}-hide-required-mark`]:!1===ee,[`${ea}-rtl`]:"rtl"===l,[`${ea}-large`]:"large"===J,[`${ea}-small`]:"small"===J},ec,el,eo,h,S,x,em.root),[eg]=(0,z.A)(T),{__INTERNAL__:ef}=eg;ef.name=X;let e$=a.useMemo(()=>({name:X,labelAlign:en,labelCol:H,labelWrap:er,wrapperCol:_,layout:W,colon:et,requiredMark:ee,itemRef:ef.itemRef,form:eg,feedbackIcons:V,tooltip:ei,classNames:em,styles:eh}),[X,en,er,H,_,W,et,ee,eg,V,em,eh,ei]),eb=a.useRef(null);a.useImperativeHandle(t,()=>({...eg,nativeElement:eb.current?.nativeElement}));let ev=(e,t)=>{if(e){let n={block:"nearest"};(0,c.Qd)(e)&&(n={...n,...e}),eg.scrollToField(t,n)}};return a.createElement(r.Pp.Provider,{value:G},a.createElement(I.X,{disabled:R},a.createElement(M.A.Provider,{value:J},a.createElement(r.Op,{validateMessages:Z},a.createElement(r.cK.Provider,{value:e$},a.createElement(r.XB,{status:!0},a.createElement(A.Ay,{id:X,...Y,name:X,onFinishFailed:e=>{if(L?.(e),e.errorFields.length){let t=e.errorFields[0].name;if(void 0!==D)return void ev(D,t);void 0!==m&&ev(m,t)}},form:eg,ref:eb,style:eh?.root,className:ep})))))))});var T=n(42644),q=n(52690),B=n(29633);let O=()=>{let{status:e,errors:t=[],warnings:n=[]}=a.useContext(r.$W);return{status:e,errors:t,warnings:n}};O.Context=r.$W;var H=n(44624),_=n(25341),W=n(19135),D=n(51916);let P=(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"}}}})(y(e,t))),L=e=>{let{prefixCls:t,status:n,labelCol:l,wrapperCol:s,children:u,errors:d,warnings:m,_internalItemRender:h,extra:p,help:g,fieldId:f,marginBottom:$,onErrorVisibleChanged:b,label:v}=e,y=`${t}-item`,E=a.useContext(r.cK),{classNames:S,styles:x}=E,A=a.useMemo(()=>{let e={...s||E.wrapperCol||{}};return null!==v||l||s||!E.labelCol||[void 0].concat((0,i.A)(W.Gl)).forEach(t=>{let n=t?[t]:[],r=(0,T.Jt)(E.labelCol,n),i=(0,c.Qd)(r)?r:{},a=(0,T.Jt)(e,n),l=(0,c.Qd)(a)?a:{};"span"in i&&!("offset"in l)&&i.span<24&&(e=(0,T.hZ)(e,[].concat(n,["offset"]),i.span))}),e},[s,E.wrapperCol,E.labelCol,v,l]),N=(0,o.$)(`${y}-control`,A.className),k=a.useMemo(()=>{let{labelCol:e,wrapperCol:t,...n}=E;return n},[E]),I=a.useRef(null),[C,M]=a.useState(0);(0,T.Nf)(()=>{p&&I.current?M(I.current.clientHeight):M(0)},[p]);let z=a.createElement("div",{className:`${y}-control-input`},a.createElement("div",{className:(0,o.$)(`${y}-control-input-content`,S?.content),style:x?.content},u)),F=a.useMemo(()=>({prefixCls:t,status:n}),[t,n]),R=null!==$||d.length||m.length?a.createElement(r.hb.Provider,{value:F},a.createElement(w,{fieldId:f,errors:d,warnings:m,help:g,helpStatus:n,className:`${y}-explain-connected`,onVisibleChanged:b})):null,q={};f&&(q.id=`${f}_extra`);let B=p?a.createElement("div",{...q,className:(0,o.$)(`${y}-extra`,S?.extra),style:x?.extra,ref:I},p):null,O=R||B?a.createElement("div",{className:`${y}-additional`,style:$?{minHeight:$+C}:{}},R,B):null,H=h&&"pro_table_render"===h.mark&&h.render?h.render(e,{input:z,errorList:R,extra:B}):a.createElement(a.Fragment,null,z,O);return a.createElement(r.cK.Provider,{value:k},a.createElement(D.A,{...A,className:N},H),a.createElement(P,{prefixCls:t}))};var X=n(83230),j=n(88483);function V(){return(V=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 G=a.forwardRef((e,t)=>a.createElement(j.A,V({},e,{ref:t,icon:X.A})));var K=n(69925),Q=n(79287),U=n(14932);let Y=({prefixCls:e,label:t,htmlFor:n,labelCol:i,labelAlign:l,colon:s,required:u,requiredMark:d,tooltip:m,vertical:h})=>{let p,[g]=(0,K.A)("Form"),{labelAlign:f,labelCol:$,labelWrap:b,colon:v,classNames:y,styles:E,tooltip:S}=a.useContext(r.cK);if(!t)return null;let x=i||$||{},w=`${e}-item-label`,A=(0,o.$)(w,"left"===(l||f)&&`${w}-left`,x.className,{[`${w}-wrap`]:!!b}),N=t,k=!0===s||!1!==v&&!1!==s;k&&!h&&"string"==typeof t&&t.trim()&&(N=t.replace(/[:|:]\s*$/,""));let I=((e,t)=>(0,c.AZ)(e)?(0,c.Qd)(e)&&!(0,a.isValidElement)(e)?{...t,...e}:{...t,title:e}:null)(m,S);if(I){let t=a.createElement(U.A,{...I},a.createElement("span",{className:`${e}-item-tooltip`,onClick:e=>{e.preventDefault()},tabIndex:-1},I.icon||I.children||a.createElement(G,null)));N=a.createElement(a.Fragment,null,N,t)}let C="optional"===d,M=(0,c.Tn)(d),z=!1===d;M?N=d(N,{required:!!u}):C&&!u&&(N=a.createElement(a.Fragment,null,N,a.createElement("span",{className:`${e}-item-optional`},g?.optional||Q.A.Form?.optional))),z?p="hidden":(C||M)&&(p="optional");let F=(0,o.$)(y?.label,{[`${e}-item-required`]:u,[`${e}-item-required-mark-${p}`]:p,[`${e}-item-no-colon`]:!k});return a.createElement(D.A,{...x,className:A},a.createElement("label",{htmlFor:n,className:F,style:E?.label,title:"string"==typeof t?t:void 0},N))};var J=n(59188),Z=n(4216),ee=n(97137),et=n(83914);let en={success:J.A,warning:ee.A,error:Z.A,validating:et.A},er=function({children:e,errors:t,warnings:n,hasFeedback:i,validateStatus:l,prefixCls:c,meta:s,noStyle:u,name:d}){let m=`${c}-item`,{feedbackIcons:h}=a.useContext(r.cK),p=(0,H.BS)(t,n,s,null,!!i,l),{isFormItemInput:g,status:f,hasFeedback:$,feedbackIcon:b,name:v}=a.useContext(r.$W),y=a.useMemo(()=>{let e;if(i){let r=!0!==i&&i.icons||h,l=p&&r?.({status:p,errors:t,warnings:n})?.[p],c=p?en[p]:null;e=!1!==l&&c?a.createElement("span",{className:(0,o.$)(`${m}-feedback-icon`,`${m}-feedback-icon-${p}`)},l||a.createElement(c,null)):null}let r={status:p||"",errors:t,warnings:n,hasFeedback:!!i,feedbackIcon:e,isFormItemInput:!0,name:d};return u&&(r.status=(p??f)||"",r.isFormItemInput=g,r.hasFeedback=!!(i??$),r.feedbackIcon=void 0!==i?r.feedbackIcon:b,r.name=d??v),r},[p,i,u,g,f]);return a.createElement(r.$W.Provider,{value:y},e)};function ei(e){let{prefixCls:t,className:n,rootClassName:i,style:l,help:s,errors:u,warnings:m,validateStatus:h,meta:p,hasFeedback:g,hidden:f,children:$,fieldId:b,required:v,isRequired:y,onSubItemMetaChange:E,layout:S,name:x,...w}=e,A=`${t}-item`,{requiredMark:N,layout:k}=a.useContext(r.cK),I=S||k,C="vertical"===I,M=a.useRef(null),z=d(u),F=d(m),R=(0,c.R)(s)&&!1!==s,q=!!(R||u.length||m.length),B=!!M.current&&(0,T.zN)(M.current),[O,W]=a.useState(null);(0,T.Nf)(()=>{q&&M.current&&W(Number.parseInt(getComputedStyle(M.current).marginBottom,10))},[q,B]);let D=((e=!1)=>{let t=e?z:p.errors,n=e?F:p.warnings;return(0,H.BS)(t,n,p,"",!!g,h)})(),P=(0,o.$)(A,n,i,{[`${A}-with-help`]:R||z.length||F.length,[`${A}-has-feedback`]:D&&g,[`${A}-has-success`]:"success"===D,[`${A}-has-warning`]:"warning"===D,[`${A}-has-error`]:"error"===D,[`${A}-is-validating`]:"validating"===D,[`${A}-hidden`]:f,[`${A}-${I}`]:I});return a.createElement("div",{className:P,style:l,ref:M},a.createElement(_.A,{className:`${A}-row`,...(0,T.cJ)(w,["_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:N,required:v??y,prefixCls:t,vertical:C}),a.createElement(L,{...e,...p,errors:z,warnings:F,prefixCls:t,status:D,help:s,marginBottom:O,onErrorVisibleChanged:e=>{e||W(null)}},a.createElement(r.jC.Provider,{value:E},a.createElement(er,{prefixCls:t,meta:p,errors:p.errors,warnings:p.warnings,hasFeedback:g,validateStatus:D,name:x},$)))),!!O&&a.createElement("div",{className:`${A}-margin-offset`,style:{marginBottom:-O}}))}let ea=a.memo(e=>e.children,(e,t)=>(function(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>{let r=e[n],i=t[n];return r===i||(0,c.Tn)(r)||(0,c.Tn)(i)})})(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((e,n)=>e===t.childProps[n]));function el(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}let eo=function(e){let{name:t,noStyle:n,className:l,dependencies:s,prefixCls:d,shouldUpdate:m,rules:h,children:p,required:g,label:f,messageVariables:$,trigger:b="onChange",validateTrigger:v,hidden:y,help:S,layout:x}=e,{getPrefixCls:w}=a.useContext(k.QO),{name:N}=a.useContext(r.cK),I=(e=>{if((0,c.Tn)(e))return e;let t=(0,T.$r)(e);return t.length<=1?t[0]:t})(p),C=(0,c.Tn)(I),M=a.useContext(r.jC),{validateTrigger:z}=a.useContext(A._z),F=(0,c.R)(v)?v:z,R=(0,c.R)(t),O=w("form",d),_=(0,u.A)(O),[W,D]=E(O,_);(0,B.rJ)("Form.Item");let P=a.useContext(A.EF),L=a.useRef(null),[X,j]=function(e){let[t,n]=a.useState(e),r=a.useRef(null),i=a.useRef([]),l=a.useRef(!1);return a.useEffect(()=>(l.current=!1,()=>{l.current=!0,T.er.cancel(r.current),r.current=null}),[]),[t,function(e){l.current||(null===r.current&&(i.current=[],r.current=(0,T.er)(()=>{r.current=null,n(e=>{let t=e;return i.current.forEach(e=>{t=e(t)}),t})})),i.current.push(e))}]}({}),[V,G]=(0,T.J0)(()=>el()),K=(e,t)=>{j(n=>{let r={...n},a=[].concat((0,i.A)(e.name.slice(0,-1)),(0,i.A)(t)).join("__SPLIT__");return e.destroy?delete r[a]:r[a]=e,r})},[Q,U]=a.useMemo(()=>{let e=(0,i.A)(V.errors),t=(0,i.A)(V.warnings);return Object.values(X).forEach(n=>{e.push.apply(e,(0,i.A)(n.errors||[])),t.push.apply(t,(0,i.A)(n.warnings||[]))}),[e,t]},[X,V.errors,V.warnings]),Y=(()=>{let{itemRef:e}=a.useContext(r.cK),t=a.useRef({});return(n,r)=>{let i=r&&(0,c.Qd)(r)&&(0,T.A9)(r),a=n.join("_");return(t.current.name!==a||t.current.originRef!==i)&&(t.current.name=a,t.current.originRef=i,t.current.ref=(0,T.K4)(e(n),i)),t.current.ref}})();function J(r,i,c){return n&&!y?a.createElement(er,{prefixCls:O,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:V,errors:Q,warnings:U,noStyle:!0,name:t},r):a.createElement(ei,{key:"row",...e,className:(0,o.$)(l,D,_,W),prefixCls:O,fieldId:i,isRequired:c,errors:Q,warnings:U,meta:V,onSubItemMetaChange:K,layout:x,name:t},r)}if(!R&&!C&&!s)return J(I);let Z={};return"string"==typeof f?Z.label=f:t&&(Z.label=String(t)),$&&(Z={...Z,...$}),a.createElement(A.D0,{...e,messageVariables:Z,trigger:b,validateTrigger:F,onMetaChange:e=>{let t=P?.getKey(e.name);if(G(e.destroy?el():e,!0),n&&!1!==S&&M){let n=e.name;if(e.destroy)n=L.current||n;else if(void 0!==t){let[e,r]=t;L.current=n=[e].concat((0,i.A)(r))}M(e,n)}}},(n,r,l)=>{let o=(0,H.$r)(t).length&&r?r.name:[],u=(0,H.kV)(o,N),d=void 0!==g?g:h?.some(e=>{if((0,c.Qd)(e)&&e.required&&!e.warningOnly)return!0;if((0,c.Tn)(e)){let t=e(l);return t?.required&&!t?.warningOnly}return!1}),p={...n},f=null;if(Array.isArray(I)&&R)f=I;else if(C&&(!(m||s)||R));else if(!s||C||R)if(a.isValidElement(I)){let t={...I.props,...p};if(t.id||(t.id=u),S||Q.length>0||U.length>0||e.extra){let n=[];(S||Q.length>0)&&n.push(`${u}_help`),e.extra&&n.push(`${u}_extra`),t["aria-describedby"]=n.join(" ")}Q.length>0&&(t["aria-invalid"]="true"),d&&(t["aria-required"]="true"),(0,T.f3)(I)&&(t.ref=Y(o,I)),new Set([].concat((0,i.A)((0,H.$r)(b)),(0,i.A)((0,H.$r)(F)))).forEach(e=>{t[e]=(...t)=>{p[e]?.(...t),I.props[e]?.(...t)}});let n=[t["aria-required"],t["aria-invalid"],t["aria-describedby"]];f=a.createElement(ea,{control:p,update:I,childProps:n},(0,q.Ob)(I,t))}else f=C&&(m||s)&&!R?I(l):I;return J(f,u,d)})};eo.useStatus=O,R.Item=eo,R.List=({prefixCls:e,children:t,...n})=>{let{getPrefixCls:i}=a.useContext(k.QO),l=i("form",e),o=a.useMemo(()=>({prefixCls:l,status:"error"}),[l]);return a.createElement(A.B8,{...n},(e,n,i)=>a.createElement(r.hb.Provider,{value:o},t(e.map(e=>({...e,fieldKey:e.key})),n,{errors:i.errors,warnings:i.warnings})))},R.ErrorList=w,R.useForm=z.A,R.useFormInstance=function(){let{form:e}=a.useContext(r.cK);return e},R.useWatch=A.FH,R.Provider=r.Op;let ec=R},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"}},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"}},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"}},94992:(e,t,n)=>{n.d(t,{A:()=>eh});var r=n(97109),i=n(60470),a=n(63890),l=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 c=r.forwardRef((e,t)=>r.createElement(l.A,o({},e,{ref:t,icon:a.A})));var s=n(54746),u=n(92123);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 m=r.forwardRef((e,t)=>r.createElement(l.A,d({},e,{ref:t,icon:u.A})));var h=n(41113),p=n(49939),g=n(70895),f=n(8572);function $(){return"function"==typeof BigInt}function b(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",l=i[1]||"0";"0"===a&&"0"===l&&(n=!1);var o=n?"-":"";return{negative:n,negativeStr:o,trimStr:r,integerStr:a,decimalStr:l,fullStr:"".concat(o).concat(r)}}function y(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function E(e){var t=e.toLowerCase().split("e"),n=(0,f.A)(t,2),r=n[0],i=n[1],a=r.startsWith("-"),l=(a?r.slice(1):r).split("."),o=(0,f.A)(l,2),c=o[0],s=void 0===c?"0":c,u=o[1],d=void 0===u?"":u,m="".concat(s).concat(d).replace(/^0+/,"")||"0";return{decimal:d,digits:m,exponent:Number(void 0===i?"0":i),integer:s,negative:a}}function S(e){return e.exponent>=0?Math.max(0,e.decimal.length-e.exponent):Math.abs(e.exponent)+e.decimal.length}function x(e){var t=String(e);return y(e)?S(E(t)):t.includes(".")&&A(t)?t.length-t.indexOf(".")-1:0}function w(e){var t=String(e);if(y(e)){if(e>Number.MAX_SAFE_INTEGER)return String($()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String($()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);var n=E(t),r=S(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 l=i.replace(/^0+/,"").length,o=(t.match(/^0*/)||[""])[0].length,c=(l||-o)+r,s="";return s=c<=0?"0.".concat("0".repeat(-c)).concat(n):c>=n.length?"".concat(n).concat("0".repeat(c-n.length)):"".concat(n.slice(0,c),".").concat(n.slice(c)),"".concat(a?"-":"").concat(s)}(n):e.toFixed(r)}return v(t).fullStr}function A(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 N=function(){function e(t){if((0,h.A)(this,e),(0,g.A)(this,"origin",""),(0,g.A)(this,"negative",void 0),(0,g.A)(this,"integer",void 0),(0,g.A)(this,"decimal",void 0),(0,g.A)(this,"decimalLen",void 0),(0,g.A)(this,"empty",void 0),(0,g.A)(this,"nan",void 0),b(t)){this.empty=!0;return}if(this.origin=String(t),"-"===t||Number.isNaN(t)){this.nan=!0;return}var n=t;if(y(n)&&(n=Number(n)),A(n="string"==typeof n?n:w(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(),l=r(i),o=v(a),c=o.negativeStr,s=o.trimStr,u="".concat(c).concat(s.padStart(l+1,"0"));return new e("".concat(u.slice(0,-l),".").concat(u.slice(-l)))}},{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}(),k=function(){function e(t){if((0,h.A)(this,e),(0,g.A)(this,"origin",""),(0,g.A)(this,"number",void 0),(0,g.A)(this,"empty",void 0),b(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(x(this.number),x(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(x(this.number),x(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()?"":y(this.number)&&x(this.number)>100?String(this.number):w(this.number):this.origin}}]),e}();function I(e){return $()?new N(e):new k(e)}function C(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var i=v(e),a=i.negativeStr,l=i.integerStr,o=i.decimalStr,c="".concat(t).concat(o),s="".concat(a).concat(l);if(n>=0){var u=Number(o[n]);return u>=5&&!r?C(I(e).add("".concat(a,"0.").concat("0".repeat(n)).concat(10-u)).toString(),t,n,r):0===n?s:"".concat(s).concat(t).concat(o.padEnd(n,"0").slice(0,n))}return".0"===c?s:"".concat(s).concat(c)}var M=n(73473),z=n(3638),F=n(96546),R=n(49127);function T({prefixCls:e,action:t,children:n,disabled:i,className:a,style:l,onStep:o}){let c="up"===t,s=r.useRef(),u=r.useRef([]),d=()=>{clearTimeout(s.current)};r.useEffect(()=>()=>{d(),u.current.forEach(e=>{R.A.cancel(e)})},[]);let m=`${e}-action`,h=(0,z.$)(m,`${m}-${t}`,{[`${m}-${t}-disabled`]:i},a),p=()=>u.current.push((0,R.A)(d));return r.createElement("span",{unselectable:"on",role:"button",onMouseUp:p,onMouseLeave:p,onMouseDown:e=>{e.preventDefault(),d(),o(c,"handler"),s.current=setTimeout(function e(){o(c,"handler"),s.current=setTimeout(e,200)},600)},"aria-label":c?"Increase Value":"Decrease Value","aria-disabled":i,className:h,style:l},n||r.createElement("span",{unselectable:"on",className:`${e}-action-${t}-inner`}))}function q(e){let t="number"==typeof e?w(e):v(e).fullStr;return t.includes(".")?v(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var B=n(42644),O=n(64213);function H(){return(H=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 _=(e,t)=>e||t.isEmpty()?t.toString():t.toNumber(),W=e=>{let t=I(e);return t.isInvalidate()?null:t},D=r.forwardRef((e,t)=>{let{mode:n="input",prefixCls:i="rc-input-number",className:a,style:l,classNames:o,styles:c,min:s,max:u,step:d=1,defaultValue:m,value:h,disabled:p,readOnly:g,upHandler:f,downHandler:$,keyboard:b,changeOnWheel:v=!1,controls:y=!0,prefix:E,suffix:S,stringMode:N,parser:k,formatter:D,precision:P,decimalSeparator:L,onChange:X,onInput:j,onPressEnter:V,onStep:G,onMouseDown:K,onClick:Q,onMouseUp:U,onMouseLeave:Y,onMouseMove:J,onMouseEnter:Z,onMouseOut:ee,changeOnBlur:et=!0,...en}=e,[er,ei]=r.useState(!1),ea=r.useRef(!1),el=r.useRef(!1),eo=r.useRef(!1),ec=r.useRef(null),es=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})(es.current,{focus:e=>{(0,O.F4)(es.current,e)},blur:()=>{es.current?.blur()},nativeElement:ec.current}));let[eu,ed]=r.useState(()=>I(h??m)),em=r.useCallback((e,t)=>{if(!t)return P>=0?P:Math.max(x(e),x(d))},[P,d]),eh=r.useCallback(e=>{let t=String(e);if(k)return k(t);let n=t;return L&&(n=n.replace(L,".")),n.replace(/[^\w.-]+/g,"")},[k,L]),ep=r.useRef(""),eg=r.useCallback((e,t)=>{if(D)return D(e,{userTyping:t,input:String(ep.current)});let n="number"==typeof e?w(e):e;if(!t){let e=em(n,t);A(n)&&(L||e>=0)&&(n=C(n,L||".",e))}return n},[D,em,L]),[ef,e$]=r.useState(()=>{let e=m??h;return eu.isInvalidate()&&["string","number"].includes(typeof e)?Number.isNaN(e)?"":e:eg(eu.toString(),!1)});function eb(e,t){e$(eg(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}ep.current=ef;let ev=r.useMemo(()=>W(u),[u,P]),ey=r.useMemo(()=>W(s),[s,P]),eE=r.useMemo(()=>!(!ev||!eu||eu.isInvalidate())&&ev.lessEquals(eu),[ev,eu]),eS=r.useMemo(()=>!(!ey||!eu||eu.isInvalidate())&&eu.lessEquals(ey),[ey,eu]),[ex,ew]=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),l=i.substring(r);n.current={start:t,end:r,value:i,beforeTxt:a,afterTxt:l}}catch(e){}},function(){if(e&&n.current&&t)try{let{value:t}=e,{beforeTxt:r,afterTxt:i,start:a}=n.current,l=t.length;if(t.startsWith(r))l=r.length;else if(t.endsWith(i))l=t.length-n.current.afterTxt.length;else{let e=r[a-1],n=t.indexOf(e,a-1);-1!==n&&(l=n+1)}e.setSelectionRange(l,l)}catch(e){(0,F.Ay)(!1,`Something warning of cursor restore. Please fire issue about this: ${e.message}`)}}]}(es.current,er),eA=e=>ev&&!e.lessEquals(ev)?ev:ey&&!ey.lessEquals(e)?ey:null,eN=e=>!eA(e),ek=(e,t)=>{let n=e,r=eN(n)||n.isEmpty();if(n.isEmpty()||t||(n=eA(n)||n,r=!0),!g&&!p&&r){let e=n.toString(),r=em(e,t);if(r>=0&&(eN(n=I(C(e,".",r)))||(n=I(C(e,".",r,!0)))),!n.equals(eu)){var i;i=n,void 0===h&&ed(i),X?.(n.isEmpty()?null:_(N,n)),void 0===h&&eb(n,t)}return n}return eu},eI=(()=>{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()})}})(),eC=e=>{if(ex(),ep.current=e,e$(e),!el.current){let t=I(eh(e));t.isNaN()||ek(t,!0)}j?.(e),eI(()=>{let t=e;k||(t=e.replace(/。/g,".")),t!==e&&eC(t)})},eM=(0,B._q)((e,t)=>{if(e&&eE||!e&&eS)return;ea.current=!1;let n=I(eo.current?q(d):d);e||(n=n.negate());let r=ek((eu||I(0)).add(n.toString()),!1);G?.(_(N,r),{offset:eo.current?q(d):d,type:e?"up":"down",emitter:t}),es.current?.focus()}),ez=e=>{let t,n=I(eh(ef));t=n.isNaN()?ek(eu,e):ek(n,e),void 0!==h?eb(eu,!1):t.isNaN()||eb(t,!1)};r.useEffect(()=>{if(v&&er){let e=e=>{eM(e.deltaY<0,"wheel"),e.preventDefault()},t=es.current;if(t)return t.addEventListener("wheel",e,{passive:!1}),()=>t.removeEventListener("wheel",e)}}),(0,M.o)(()=>{eu.isInvalidate()||eb(eu,!1)},[P,D]),(0,M.o)(()=>{let e=I(h);ed(e);let t=I(eh(ef));e.equals(t)&&ea.current&&!D||eb(e,ea.current)},[h]),(0,M.o)(()=>{D&&ew()},[ef]);let eF={prefixCls:i,onStep:eM,className:o?.action,style:c?.action},eR=r.createElement(T,H({},eF,{action:"up",disabled:eE}),f),eT=r.createElement(T,H({},eF,{action:"down",disabled:eS}),$);return r.createElement("div",{ref:ec,className:(0,z.$)(i,`${i}-mode-${n}`,a,o?.root,{[`${i}-focused`]:er,[`${i}-disabled`]:p,[`${i}-readonly`]:g,[`${i}-not-a-number`]:eu.isNaN(),[`${i}-out-of-range`]:!eu.isInvalidate()&&!eN(eu)}),style:{...c?.root,...l},onMouseDown:e=>{es.current&&e.target!==es.current&&(es.current.focus(),e.preventDefault()),K?.(e)},onMouseUp:U,onMouseLeave:Y,onMouseMove:J,onMouseEnter:Z,onMouseOut:ee,onClick:Q,onFocus:()=>{ei(!0)},onBlur:()=>{et&&ez(!1),ei(!1),ea.current=!1},onKeyDown:e=>{let{key:t,shiftKey:n}=e;ea.current=!0,eo.current=n,"Enter"===t&&(el.current||(ea.current=!1),ez(!1),V?.(e)),!1!==b&&!el.current&&["Up","ArrowUp","Down","ArrowDown"].includes(t)&&(eM("Up"===t||"ArrowUp"===t,"keyboard"),e.preventDefault())},onKeyUp:()=>{ea.current=!1,eo.current=!1},onCompositionStart:()=>{el.current=!0},onCompositionEnd:()=>{el.current=!1,eC(es.current.value)},onBeforeInput:()=>{ea.current=!0}},"spinner"===n&&y&&eT,void 0!==E&&r.createElement("div",{className:(0,z.$)(`${i}-prefix`,o?.prefix),style:c?.prefix},E),r.createElement("input",H({autoComplete:"off",role:"spinbutton","aria-valuemin":s,"aria-valuemax":u,"aria-valuenow":eu.isInvalidate()?null:eu.toString(),step:d,ref:es,className:(0,z.$)(`${i}-input`,o?.input),style:c?.input,value:ef,onChange:e=>{eC(e.target.value)},disabled:p,readOnly:g},en)),void 0!==S&&r.createElement("div",{className:(0,z.$)(`${i}-suffix`,o?.suffix),style:c?.suffix},S),"spinner"===n&&y&&eR,"input"===n&&y&&r.createElement("div",{className:(0,z.$)(`${i}-actions`,o?.actions),style:c?.actions},eR,eT))});var P=n(44137),L=n(92162),X=n(26047),j=n(4034),V=n(48921),G=n(74567),K=n(6831),Q=n(632),U=n(27273),Y=n(55359),J=n(73134),Z=n(24716),ee=n(49644),et=n(15561),en=n(44390),er=n(84767),ei=n(90560),ea=n(7961),el=n(77032),eo=n(10540),ec=n(28403),es=n(47252);let eu=(0,eo.OF)("InputNumber",e=>{let t=(0,ec.oX)(e,(0,er.C)(e));return[(e=>{let{componentCls:t,lineWidth:n,lineType:r,borderRadius:i,inputFontSizeSM:a,inputFontSizeLG:l,colorError:o,paddingInlineSM:c,paddingBlockSM:s,paddingBlockLG:u,paddingInlineLG:d,colorIcon:m,colorTextDisabled:h,motionDurationMid:p,handleHoverColor:g,handleOpacity:f,paddingInline:$,paddingBlock:b,handleBg:v,handleActiveBg:y,inputAffixPadding:E,borderRadiusSM:S,controlWidth:x,handleBorderColor:w,filledHandleBg:A,lineHeightLG:N,antCls:k}=e,I=`${(0,et.zA)(n)} ${r} ${w}`,[C,M]=(0,eo.PN)(k,"input-number");return[{[t]:{...(0,ea.dF)(e),...(0,en.wj)(e),[C("input-padding-block")]:(0,et.zA)(b),[C("input-padding-inline")]:(0,et.zA)($),display:"inline-flex",width:x,margin:0,paddingBlock:0,borderRadius:i,...(0,ei.Eb)(e,{[`${t}-actions`]:{background:v,[`${t}-action-down`]:{borderBlockStart:I}}}),...(0,ei.sA)(e,{[`${t}-actions`]:{background:A,[`${t}-action-down`]:{borderBlockStart:I}},"&:focus-within":{[`${t}-actions`]:{background:v}}}),...(0,ei.aP)(e,{[`${t}-actions`]:{background:v,[`${t}-action-down`]:{borderBlockStart:I}}}),...(0,ei.lB)(e),[`&${t}-borderless`]:{paddingBlock:0,[C("input-padding-block")]:(0,et.zA)(e.calc(b).add(n).equal())},[`&${t}-borderless${t}-sm`]:{paddingBlock:0,[C("input-padding-block")]:(0,et.zA)(e.calc(s).add(n).equal())},[`&${t}-borderless${t}-lg`]:{paddingBlock:0,[C("input-padding-block")]:(0,et.zA)(e.calc(u).add(n).equal())},"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},[`&${t}-out-of-range`]:{[`${t}-input`]:{color:o}},[`${t}-input`]:{...(0,ea.dF)(e),width:"100%",paddingBlock:M("input-padding-block"),textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:0,outline:0,transition:`all ${p} linear`,appearance:"textfield",fontSize:"inherit",lineHeight:"inherit",...(0,en.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,ea.Nk)(),userSelect:"none",overflow:"hidden",fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",transition:`all ${p} linear`,[`&:active:not(${t}-action-up-disabled):not(${t}-action-down-disabled)`]:{background:y},[`&: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:h}},"&-mode-input":{overflow:"hidden",[`${t}-actions`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:f,height:"100%",borderRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${p}`,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:m,height:"50%",borderInlineStart:I,[`&: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:M("input-padding-inline"),"&-up":{borderInlineStart:I},"&-down":{borderInlineEnd:I}},[`${t}-input`]:{textAlign:"center",paddingInline:M("input-padding-inline")}}}},{[t]:{"&-lg":{[C("input-padding-block")]:(0,et.zA)(u),[C("input-padding-inline")]:(0,et.zA)(d),paddingBlock:0,fontSize:l,lineHeight:N},"&-sm":{[C("input-padding-block")]:(0,et.zA)(s),[C("input-padding-inline")]:(0,et.zA)(c),paddingBlock:0,fontSize:a,borderRadius:S}}},{[t]:{[`${t}-prefix, ${t}-suffix`]:{display:"flex",flex:"none",alignItems:"center",alignSelf:"center",pointerEvents:"none"},[`${t}-prefix`]:{marginInlineEnd:E},[`${t}-suffix`]:{height:"100%",marginInlineStart:E,transition:`margin ${p}`},[`&: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,el.G)(t)]},e=>{let t=e.handleVisible??"auto",n=e.controlHeightSM-2*e.lineWidth;return{...(0,er.b)(e),controlWidth:90,handleWidth:n,handleFontSize:e.fontSize/2,handleVisible:t,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new es.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}),ed=r.forwardRef((e,t)=>{let n=r.useRef(null);r.useImperativeHandle(t,()=>n.current);let{rootClassName:a,size:l,disabled:o,prefixCls:u,addonBefore:d,addonAfter:h,prefix:p,suffix:g,bordered:f,readOnly:$,status:b,controls:v=!0,variant:y,className:E,style:S,classNames:x,styles:w,mode:A,...N}=e,{direction:k,className:I,style:C,styles:M,classNames:F}=(0,G.TP)("inputNumber"),R=r.useContext(K.A),T=o??R,q=r.useMemo(()=>!!v&&!T&&!$&&v,[v,T,$]),{compactSize:B,compactItemClassnames:O}=(0,ee.RQ)(u,k),H="spinner"===A?r.createElement(s.A,null):r.createElement(m,null),_="spinner"===A?r.createElement(c,null):r.createElement(i.A,null),W="boolean"==typeof q?q:void 0;(0,X.Qd)(q)&&(H=q.upIcon||H,_=q.downIcon||_);let{hasFeedback:P,isFormItemInput:V,feedbackIcon:Q}=r.useContext(Y.$W),Z=(0,U.A)(e=>l??B??e),[et,en]=(0,J.A)("inputNumber",y,f),er=P&&r.createElement(r.Fragment,null,Q),ei={...e,size:Z,disabled:T,controls:q},ea=(0,L.XT)(C),el=(0,L.XT)(S),[eo,ec]=(0,L.AV)([F,x],[M,ea,w,el],{props:ei});return r.createElement(D,{ref:n,mode:A,disabled:T,className:(0,z.$)(E,a,eo.root,I,O,(0,j.L)(u,b,P),{[`${u}-${et}`]:en,[`${u}-lg`]:"large"===Z,[`${u}-sm`]:"small"===Z,[`${u}-rtl`]:"rtl"===k,[`${u}-in-form-item`]:V,[`${u}-without-controls`]:!q}),style:ec.root,upHandler:H,downHandler:_,prefixCls:u,readOnly:$,controls:W,prefix:p,suffix:er||g,classNames:eo,styles:ec,...N})}),em=r.forwardRef((e,t)=>{let{addonBefore:n,addonAfter:i,prefixCls:a,className:l,status:o,rootClassName:c,...s}=e,{getPrefixCls:u}=(0,G.TP)("inputNumber"),d=u("input-number",a),{status:m}=r.useContext(Y.$W),h=(0,j.v)(m,o),p=(0,Q.A)(d),[g,f]=eu(d,p),$=n||i,b=r.createElement(ed,{ref:t,...s,prefixCls:d,status:h,className:(0,z.$)(f,p,g,l),rootClassName:$?void 0:c});if($){let t=t=>t?r.createElement(Z.A,{className:(0,z.$)(`${d}-addon`,f,g),variant:e.variant,disabled:e.disabled,status:h},r.createElement(P.A,{form:!0},t)):null,a=t(n),l=t(i);return r.createElement(ee.Ay,{rootClassName:c},a,b,l)}return b});em._InternalPanelDoNotUseOrYouWillBeFired=e=>r.createElement(V.Ay,{theme:{components:{InputNumber:{handleVisible:!0}}}},r.createElement(em,{...e}));let eh=em}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[530],{8090:(e,t,n)=>{n.d(t,{EL:()=>$,zT:()=>Z,II:()=>V,bJ:()=>ea,Jr:()=>W,O0:()=>ef,uj:()=>O,GC:()=>L,qj:()=>ei,x8:()=>Q,Kg:()=>en,a3:()=>ed,Qs:()=>K,PI:()=>el,dB:()=>ep,Jy:()=>eu,uv:()=>P,vp:()=>H,m_:()=>q,kH:()=>F,z9:()=>X,Aq:()=>es,RV:()=>eo,Kq:()=>ee});var r=n(97109),a=n(84662),l=n(30486),o=n(4527),i=n(80042),c=n(99650),s=n(25345),u=n(7851),d=n(33555),m=n(43240),f=n(26619),p=n(23216),h=n(46791),g=n(8579),v=n(26631),x=n(35459),y=n(64629),w=n(76824),k=n(83374),b=n(81668),A=n(39356),I=n(1310),j=n(8263),E=n(61024);let S=["failed","paused","repairing","blocked","running","pending","completed"],M=["chars","costUsd"];function C(e,t){return e.seq!==t.seq?e.seq-t.seq:e.id===t.id?0:e.id<t.id?-1:1}function R(e){let t=new Map;for(let n of e){if(void 0===n.parentId)continue;let e=t.get(n.parentId);e?e.push(n):t.set(n.parentId,[n])}for(let e of t.values())e.sort(C);return t}function N(e){let t=new Map(e.map(e=>[e.id,e])),n=new Map;for(let r of e){let e=0,a=r,l=new Set([r.id]);for(;(null==a?void 0:a.parentId)!==void 0;){let n=t.get(a.parentId);if(!n||l.has(n.id))break;l.add(n.id),e+=1,a=n}n.set(r.id,e)}return n}let T=new Set(["prepare","understand","plan","blueprint","write","close","deliver","chapter","block","turn","turn.generate","turn.selfcheck","turn.act","turn.commit","round","round.observe","round.decide","round.fix","repair.request","repair.localize","repair.impact","repair.transaction","repair.recheck","supervisor","rollback","snapshot","skill.load"]),D=new Set(["failed","paused","repairing","blocked","running","pending","completed"]),_={pending:{key:"common.statusWaiting",text:"等待中",color:"default"},running:{key:"common.statusRunning",text:"进行中",color:"processing"},completed:{key:"common.statusCompleted",text:"已完成",color:"success"},paused:{key:"common.statusPaused",text:"已暂停",color:"gold"},repairing:{key:"common.statusRepairing",text:"修复中",color:"warning"},blocked:{key:"common.statusBlocked",text:"已放弃(阻塞)",color:"warning"},failed:{key:"common.statusAbnormal",text:"异常",color:"error"}};function B(e,t,n,r){let a=e[t];if(!a)return"未知".concat(n,"(").concat(t||"空",")");if(a.key&&r){let e=r(a.key);if(e&&e!==a.key)return e}return a.text}function q(e,t){return B(_,e,"状态",t)}function P(e){var t,n;return null!=(n=null==(t=_[e])?void 0:t.color)?n:"default"}let z={queued:{key:"common.statusWaiting",text:"排队中",color:"default"},generating:{key:"common.statusRunning",text:"生成中",color:"processing"},paused:{key:"common.statusPaused",text:"已暂停(节点边界生效)",color:"gold"},completed:{key:"common.statusCompleted",text:"已完成",color:"success"},completed_with_issues:{key:"common.statusReview",text:"完成(有需复核项)",color:"warning"},warning:{key:"common.statusReview",text:"需复核",color:"warning"},failed:{key:"common.statusAbnormal",text:"失败",color:"error"},aborted:{key:"common.statusAbnormal",text:"已中止",color:"default"}};function L(e,t){return B(z,e,"记录状态",t)}function O(e){var t,n;return null!=(n=null==(t=z[e])?void 0:t.color)?n:"default"}let U=["failed","paused","repairing","blocked","running","pending","completed"];function H(e){let t=U.indexOf(e);return t>=0?t:U.length}let G={prepare:"生成准备",understand:"资料理解",plan:"规划",blueprint:"蓝图",write:"正文撰写",close:"收口",deliver:"交付",chapter:"章节",block:"块",turn:"轮次","turn.generate":"轮次\xb7生成","turn.selfcheck":"轮次\xb7自检","turn.act":"轮次\xb7动作","turn.commit":"轮次\xb7提交",round:"收口轮","round.observe":"收口\xb7观察","round.decide":"收口\xb7判定","round.fix":"收口\xb7修复","repair.request":"修复\xb7请求","repair.localize":"修复\xb7定位","repair.impact":"修复\xb7影响面","repair.transaction":"修复\xb7事务","repair.recheck":"修复\xb7复检",rollback:"回滚",snapshot:"快照","skill.load":"技能命中",supervisor:"调度决策"};function X(e){var t;return e?null!=(t=G[e])?t:e:"未知节点"}let Y={role_binding:(0,r.createElement)(a.A),knowledge_retrieval:(0,r.createElement)(l.A),file_understanding:(0,r.createElement)(o.A),fact_extraction:(0,r.createElement)(i.A),chapter_generation:(0,r.createElement)(c.A),llm_review:(0,r.createElement)(s.A),validation:(0,r.createElement)(u.A),reference:(0,r.createElement)(d.A),prepare:(0,r.createElement)(m.A),understand:(0,r.createElement)(f.A),plan:(0,r.createElement)(p.A),blueprint:(0,r.createElement)(h.A),write:(0,r.createElement)(g.A),chapter:(0,r.createElement)(v.A),block:(0,r.createElement)(x.A),turn:(0,r.createElement)(y.A),round:(0,r.createElement)(w.A),close:(0,r.createElement)(k.A),deliver:(0,r.createElement)(b.A),repair:(0,r.createElement)(A.A),rollback:(0,r.createElement)(I.A),snapshot:(0,r.createElement)(I.A),skill:(0,r.createElement)(j.A),supervisor:(0,r.createElement)(E.A),default:(0,r.createElement)(m.A)};function F(e){var t;return null!=(t=Y[e.split(".")[0]||e])?t:Y.default}function K(e){var t;return null!=(t=Y[e])?t:Y.default}function J(e){var t,n;let r=e.issues;return{id:e.id,...void 0!==e.parentId?{parentId:e.parentId}:{},type:e.type||"block",title:null!=(t=e.title)?t:"",seq:"number"==typeof e.seq&&Number.isFinite(e.seq)?e.seq:0,status:"string"==typeof(n=e.status)&&D.has(n)?e.status:"failed",startedAt:"number"==typeof e.startedAt&&Number.isFinite(e.startedAt)&&e.startedAt>0?e.startedAt:0,...void 0!==e.completedAt?{completedAt:e.completedAt}:{},...e.progress?{progress:e.progress}:{},...e.metrics?{metrics:e.metrics}:{},...Array.isArray(r)&&r.length>0?{issues:r}:{},...void 0!==e.payloadRef?{payloadRef:e.payloadRef}:{}}}function W(e,t){let n=new Map(e.map(e=>[e.id,e]));return(function(e,t){let n=function(e){let t=R(e),n=N(e),r=[...e].sort((e,t)=>{var r,a;return(null!=(r=n.get(t.id))?r:0)-(null!=(a=n.get(e.id))?a:0)||C(e,t)}),a=new Map(e.map(e=>[e.id,e]));for(let e of r){let n=t.get(e.id);if(!n||0===n.length)continue;let r=n.map(e=>{var t;return null!=(t=a.get(e.id))?t:e});a.set(e.id,function(e,t){var n,r,a;if(0===t.length)return{...e};let l=[...t].sort(C),o={...null!=(r=e.metrics)?r:{}};for(let e of M){let t=function(e,t){let n=0,r=!1;for(let l of e){var a;let e=null==(a=l.metrics)?void 0:a[t];"number"==typeof e&&Number.isFinite(e)&&(n+=e,r=!0)}return r?n:void 0}(l,e);void 0===t?delete o[e]:o[e]=t}let i=null==(n=e.progress)?void 0:n.label,c={current:l.filter(e=>"completed"===e.status).length,total:l.length,...void 0!==i?{label:i}:{}},s=function(e){let t=new Set,n=[];for(let a of e){var r;let e=null==(r=a.provenance)?void 0:r.fingerprint;if("string"==typeof e&&e.length>0){if(t.has(e))continue;t.add(e)}n.push(a)}return n}(l.flatMap(e=>{var t;return null!=(t=e.issues)?t:[]})),u=null!=(a=function(e){let t,n=1/0;for(let r of e){let e=function(e){let t=S.indexOf(e);return t>=0?t:0}(r);e<n&&(n=e,t=r)}return t}(l.map(e=>e.status)))?a:e.status;return{...e,status:u,progress:c,...Object.keys(o).length>0?{metrics:o}:{},...s.length>0?{issues:s}:{}}}(e,r))}return[...e].sort(C).map(e=>{var t;return null!=(t=a.get(e.id))?t:e})}(e),r=R(n),a=new Set(n.map(e=>e.id)),l=1/0,o=(e,t)=>{var n;let a=t+1<l?(null!=(n=r.get(e.id))?n:[]).filter(t=>t.id!==e.id).map(e=>o(e,t+1)):[];return{...e,children:a}},i=n.filter(e=>void 0===e.parentId||!a.has(e.parentId)).sort(C).map(e=>o(e,0)),c=new Set,s=e=>{for(let t of e)c.add(t.id),s(t.children)};for(let e of(s(i),n))c.has(e.id)||i.push(o(e,0));return i})(function(e,t){if(void 0===t)return[...e];let n=N(e),r=Math.max(0,Math.floor(t));return e.filter(e=>{var t;return(null!=(t=n.get(e.id))?t:0)<r})}(e.map(J),t)).map(e=>(function e(t,n){var r,a;let l=n.get(t.id),o=null!=(r=null==l?void 0:l.type)?r:String(t.type),i=t.issues;return{id:t.id,...void 0!==t.parentId?{parentId:t.parentId}:{},type:o,unknownType:!("string"==typeof o&&T.has(o)),title:t.title||X(o),seq:t.seq,status:t.status,..."number"==typeof t.startedAt&&t.startedAt>0?{startedAt:t.startedAt}:{},...void 0!==t.completedAt?{completedAt:t.completedAt}:{},...t.progress?{progress:t.progress}:{},metrics:null!=(a=t.metrics)?a:{},issues:Array.isArray(i)?i:[],...void 0!==t.payloadRef?{payloadRef:t.payloadRef}:{},children:t.children.map(t=>e(t,n))}})(e,n))}function Q(e){let t=[],n=e=>{for(let r of e)t.push(r),n(r.children)};return n(e),t.sort(C)}function V(e,t){let n=[],r=(e,a)=>{for(let l of e){if(l.id===t)return n.push(...a),!0;if(r(l.children,[...a,l.id]))return!0}return!1};return r(e,[]),n}let Z=236,$=76;function ee(e,t){var n;if(!t)return e;let r=new Map(e),a=null!=(n=r.get(t.id))?n:{dx:0,dy:0};return r.set(t.id,{dx:a.dx+t.dx,dy:a.dy+t.dy}),r}let et=new Set(["running","repairing"]);function en(e){let t=new Set(e.nodes.filter(e=>et.has(e.node.status)).map(e=>e.node.id));if(0===t.size)return er;let n=new Set;for(let r of e.edges)t.has(r.fromId)&&n.add(r.id);return n}let er=new Set;function ea(e,t){if(0===t.size)return e;let n=e.nodes.map(e=>{let n=t.get(e.node.id);return n?{...e,x:e.x+n.dx,y:e.y+n.dy}:e}),r=e.edges.map(e=>{var n,r,a,l;let o=t.get(e.fromId),i=t.get(e.toId);return o||i?{...e,x1:e.x1+(null!=(n=null==o?void 0:o.dx)?n:0),y1:e.y1+(null!=(r=null==o?void 0:o.dy)?r:0),x2:e.x2+(null!=(a=null==i?void 0:i.dx)?a:0),y2:e.y2+(null!=(l=null==i?void 0:i.dy)?l:0)}:e});return{...e,nodes:n,edges:r}}function el(e){let t=[],n=[],r=0,a=(e,l)=>{let o,i=e.children,c=40+l*(Z+72),s=i.map(e=>({id:e.id,...a(e,l+1)}));for(let a of(0===s.length?(o=40+r*($+22),r+=1):o=(s[0].y+s[s.length-1].y)/2,t.push({node:e,x:c,y:o,depth:l}),s))n.push({id:"".concat(e.id,"->").concat(a.id),fromId:e.id,toId:a.id,x1:c+Z/2,y1:o+$,x2:a.x+Z/2,y2:a.y});return{x:c,y:o}};for(let t of e)a(t,0),r+=1;let l=t.reduce((e,t)=>Math.max(e,t.x+Z),0),o=t.reduce((e,t)=>Math.max(e,t.y+$),0);return{nodes:t,edges:n,width:l+40,height:o+40}}function eo(e,t){let n=["影响面:".concat(t.kind),"波及 ".concat(t.affectedNodeIds.length," 个节点"),...t.escalate?["超出阈值需人工确认"]:[],...t.rollbackable?[]:["不可回滚:按 11.1 需回滚或重新校准,不得当普通改动提交"]];return"请修复节点「".concat(e,"」(").concat(n.join(","),")")}function ei(e,t){let n=t>0?t:1;return{dx:e.dx/n,dy:e.dy/n}}let ec=(e,t)=>e.left<t.right&&e.right>t.left&&e.top<t.bottom&&e.bottom>t.top;function es(e){var t;let{node:n,view:r,box:a,panelWidth:l,panelHeight:o,gap:i=12,margin:c=8,obstacles:s=[]}=e,u=(e,t,n)=>Math.min(Math.max(e,t),Math.max(t,n)),d=Math.min(l,Math.max(0,a.width-2*c)),m=n.x*r.k+r.x,f=n.y*r.k+r.y,p=f+$*r.k,h={left:m,top:f,right:m+Z*r.k,bottom:p},g=a.width-d-c,v=(e,t)=>{let n=s.filter(n=>n.top>=t&&n.left<e+d&&n.right>e).map(e=>e.top-i);return Math.max(0,Math.min(a.height-c,...n,a.height-c)-t)},x=e=>{let t=a.height-e-c,n=(n,r)=>{if(n<c||r<c||n>g||r>t)return!1;let a={left:n,top:r,right:n+d,bottom:r+e};return!s.some(e=>ec(a,e))},l=m+(Z+i)*r.k,o=m-d-i*r.k,x=p+i,y=f-e-i;for(let[e,t]of[[l,x],[l,y],[o,x],[o,y]])if(n(e,t))return{left:e,top:t,maxHeight:Math.max(0,Math.min(v(e,t),a.height-t-c))};let w=[l,o,c,g],k=[x,y,c,t,...s.flatMap(t=>[t.bottom+i,t.top-e-i])],b=null,A=1/0;for(let r of w)for(let a of k){let l=u(r,c,g),o=u(a,c,Math.max(c,t));if(!n(l,o))continue;let i={left:l,top:o,right:l+d,bottom:o+e},s=Math.max(Math.max(0,h.left-i.right,i.left-h.right),Math.max(0,h.top-i.bottom,i.top-h.bottom))+1e3*!!ec(i,h);s<A&&(A=s,b={left:l,top:o})}return b?{...b,maxHeight:v(b.left,b.top)}:null};if(e.pin){let t=u(e.pin.left,c,g),n=u(e.pin.top,c,Math.max(c,a.height-2*c));return{left:t,top:n,maxHeight:Math.max(0,Math.min(v(t,n),a.height-n-c))}}let y=Math.min(o,Math.max(0,a.height-2*c)),w=x(y);if(w)return w;let k=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:8,r=e.height-n,a=t.map(e=>({start:Math.max(n,e.top),end:Math.min(r,e.bottom)})).filter(e=>e.end>e.start).sort((e,t)=>e.start-t.start),l=0,o=n;for(let e of a)e.start>o&&(l=Math.max(l,e.start-o)),o=Math.max(o,e.end);return Math.max(l,r-o)}(a,s,c)-i;if(k>0&&k<y){let e=x(Math.max(120,k));if(e)return e}return null!=(t=null!=w?w:x(Math.max(120,k)))?t:{left:u(m+(Z+i)*r.k,c,g),top:c,maxHeight:Math.max(0,a.height-2*c)}}function eu(e){var t;if("number"!=typeof e.startedAt||(null==(t=e.metrics)?void 0:t.instantEvent)===!0)return;let n=("number"==typeof e.completedAt?e.completedAt:Date.now())-e.startedAt;return n>=0?n:void 0}function ed(e){if(void 0===e)return"—";let t=Math.max(0,Math.round(e/1e3));if(t<60)return"".concat(t," 秒");let n=Math.floor(t/60);return n<60?"".concat(n," 分 ").concat(t%60," 秒"):"".concat(Math.floor(n/60)," 小时 ").concat(n%60," 分")}let em=[{key:"note",format:e=>String(e)},{key:"chars",format:e=>"".concat(Number(e).toLocaleString()," 字")},{key:"targetWords",format:e=>"目标 ".concat(Number(e).toLocaleString()," 字")},{key:"turn",format:e=>"第 ".concat(e," 轮")},{key:"residual",format:e=>"残余 ".concat(e)},{key:"toolCalls",format:e=>"工具 ".concat(e," 次")},{key:"attempt",format:e=>"第 ".concat(e," 次尝试")},{key:"failureKinds",format:e=>String(e)},{key:"chapters",format:e=>"".concat(e," 章")},{key:"facts",format:e=>"".concat(e," 条事实")}];function ef(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=[];for(let{key:r,format:a}of em){let l=e[r];if(void 0===l||""===l||!1===l)continue;let o=a(l);if(o.trim()&&(n.push(o),n.length>=t))break}return n}function ep(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;return Object.entries(e).slice(0,t).map(e=>{let[t,n]=e;return{key:t,text:"number"==typeof n?"".concat(t,": ").concat(Number.isInteger(n)?n:n.toFixed(2)):"".concat(t,": ").concat(String(n))}})}},8665:(e,t,n)=>{n.d(t,{_:()=>g});var r=n(65321),a=n(97109),l=n(48399),o=n(33442),i=n(14932),c=n(11702),s=n(85114),u=n(55897),d=n(57271),m=n(7576),f=n(54746),p=n(7492);let{Text:h}=l.A;function g(e){let{value:t,onChange:n,onSend:l,generating:g,submitting:v,disabled:x,disabledReason:y,selectedNode:w,onMentionSelected:k,resumable:b,onContinue:A,quickActions:I,requireGenerationSetup:j=!1,promptOptions:E=[],projectOptions:S=[],selectedPrompts:M=[],selectedProject:C=null,onSelectPrompts:R,onSelectProject:N,onPreviewStructure:T}=e,[D,_]=(0,a.useState)(!1),B=j?[0===M.length?"提示词":"",!C?"项目":""].filter(Boolean):[],q=B.length>0,P=x?y||"当前不可发起生成":q?"请先用左侧「+」选择".concat(B.join(" 与 "),"——未选齐时不能发起生成"):g?"有任务正在运行:发送将加入生成队列(前面任务完成后自动开始)":"发送后将创建生成任务,画布随节点日志实时增长";return(0,r.jsxs)("div",{className:"canvasInputBar",children:[(0,r.jsxs)(o.A,{wrap:!0,size:6,style:{marginBottom:6},children:[w&&(0,r.jsx)(i.A,{title:"把「@".concat(w.title,"」插入输入框(可见文本,可自行修改)"),children:(0,r.jsx)(c.A,{color:"blue",style:{cursor:"pointer"},onClick:k,children:"@ ".concat(w.title)})}),!w&&(0,r.jsx)(h,{type:"secondary",style:{fontSize:12},children:"点选一个节点后可 @ 提及它"}),b&&!g&&(0,r.jsx)(s.Ay,{size:"small",type:"link",onClick:A,children:"继续生成"}),null==I?void 0:I.map(e=>(0,r.jsx)(s.Ay,{size:"small",type:"link",onClick:e.onClick,children:e.label},e.key))]}),(0,r.jsxs)(o.A,{wrap:!0,size:10,style:{marginBottom:8},children:[(0,r.jsx)(u.A,{trigger:"click",placement:"topLeft",open:D,onOpenChange:_,content:(0,r.jsxs)("div",{style:{width:360,display:"flex",flexDirection:"column",gap:8},children:[j&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(h,{strong:!0,style:{fontSize:13},children:"提示词"}),(0,r.jsx)(d.A,{mode:"multiple",style:{width:"100%",marginTop:4},value:M.map(e=>e.value),placeholder:0===E.length?"该项目暂无提示词":"选择提示词(至少一份;可多选)",options:E,onChange:e=>null==R?void 0:R(e)})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)(h,{strong:!0,style:{fontSize:13},children:"项目"}),(0,r.jsx)(d.A,{style:{width:"100%",marginTop:4},value:null==C?void 0:C.value,showSearch:!0,optionFilterProp:"label",placeholder:0===S.length?"本项目知识库里还没有资料:先到知识库页上传并入库":"选择项目(= 知识库里这个项目的资料,决定本次用哪份材料)",options:S,onChange:e=>null==N?void 0:N(e)})]}),(0,r.jsx)(h,{type:"secondary",style:{fontSize:12},children:"两者选齐后才能点「生成」。「项目」选的是入库到本地知识库的那份项目资料(清单/图纸/招标文件都在其中)——本次生成只用它,不会把库里别的项目材料混进来。提示词的正文按名字进入对应链路(总控/写作 → 写作链,清单/图纸/提取 → 事实抽取链,排版 → 格式链);章节大纲取自其中带 <OUTLINE> 的那一份,且只能有一份声明大纲。"})]}),!j&&(0,r.jsx)(h,{type:"secondary",style:{fontSize:12},children:"提示词与项目取自这条记录本身(章节结构由记录里那份提示词的大纲派生),不需要在这里再选。"}),(0,r.jsx)("div",{children:(0,r.jsx)(s.Ay,{size:"small",block:!0,disabled:q,onClick:()=>{_(!1),null==T||T()},children:"结构预览(章清单与小节)"})})]}),children:(0,r.jsx)(s.Ay,{size:"small",icon:(0,r.jsx)(f.A,{}),type:q?"primary":"default",children:"提示词 / 项目"})}),M.map(e=>(0,r.jsx)(c.A,{color:"blue",closable:!0,onClose:t=>{t.preventDefault(),null==R||R(M.filter(t=>t.value!==e.value).map(e=>e.value))},children:"提示词:".concat(e.label)},e.value)),C&&(0,r.jsx)(c.A,{color:"geekblue",closable:!0,onClose:e=>{e.preventDefault(),null==N||N("")},children:"项目:".concat(C.label)})]}),(0,r.jsxs)(o.A.Compact,{style:{width:"100%"},children:[(0,r.jsx)(m.A.TextArea,{value:t,onChange:e=>n(e.target.value),onPressEnter:e=>{!e.shiftKey&&(e.preventDefault(),x||v||l())},autoSize:{minRows:1,maxRows:5},placeholder:"描述你的需求;可用上面的 @ 提及把节点带进正文(Enter 发送,Shift+Enter 换行)",disabled:x}),(0,r.jsx)(i.A,{title:P,children:(0,r.jsx)(s.Ay,{type:"primary",icon:(0,r.jsx)(p.A,{}),loading:v,disabled:x||q||!t.trim(),onClick:l,children:g?"排队提交":"生成"})})]})]})}},28629:(e,t,n)=>{n.d(t,{p:()=>r});function r(e,t){let n="/canvas/".concat(encodeURIComponent(e));return t?"".concat(n,"?projectRoot=").concat(encodeURIComponent(t)):n}},34038:(e,t,n)=>{n.d(t,{B:()=>u});var r=n(65321),a=n(48399),l=n(25258),o=n(85114),i=n(85493),c=n(38332);let{Paragraph:s}=a.A;function u(e){let{open:t,title:n,chapters:a,outlineSource:u,materialScope:d,onClose:m}=e,f=a.length>0?"结构预览:".concat(n,"(").concat(a.length," 章").concat(u?",大纲来源:".concat(u):"",")"):"结构预览:".concat(n);return(0,r.jsxs)(l.A,{open:t,title:f,centered:!0,onCancel:m,width:640,styles:{container:{maxHeight:"calc(100vh - 48px)",display:"flex",flexDirection:"column"},body:{overflowY:"auto",flex:1,minHeight:0}},footer:(0,r.jsx)(o.Ay,{type:"primary",onClick:m,children:"知道了"}),children:[(0,r.jsx)(s,{type:"secondary",style:{fontSize:12,marginBottom:8},children:"章清单与小节由提示词的 <OUTLINE> 大纲 + 技能库(按章域 \xd7 工程类型)派生;这份预览与点「生成」时用的是同一个派生函数、同一份输入。 要看提示词会被怎样解读(必含表格 / 禁止项 / 字数下限),去提示词页的规则预览。"}),d&&(0,r.jsx)(i.A,{type:"info",showIcon:!0,style:{marginBottom:8},message:"本次项目资料:".concat(d.root||"(未指定)","(").concat(d.fileCount," 份文件)"),description:"资料范围已锁定在所选项目资料内:库里其它项目的材料不会进入本篇。"}),0===a.length&&(0,r.jsx)(i.A,{type:"info",showIcon:!0,message:"本次没有派生出章清单",description:"派生的硬约束是提示词(或输入框要求)里要有 ≥2 章的显式大纲;缺大纲时服务端会直接拒绝这次生成,并在提示里说清缺什么。"}),(0,r.jsx)(c.A,{size:"small",dataSource:a,renderItem:(e,t)=>(0,r.jsx)(c.A.Item,{children:(0,r.jsx)(c.A.Item.Meta,{title:"".concat(t+1,". ").concat(e.title),description:e.sections.length>0?e.sections.join("、"):"(无预设小节)"})})})]})}},45551:(e,t,n)=>{function r(e){if(0===e)return"0 B";let t=Math.floor(Math.log(e)/Math.log(1024)),n=e/Math.pow(1024,t);return"".concat(n.toFixed(+(0!==t))," ").concat(["B","KB","MB","GB","TB"][t])}function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"zh-CN",n=Math.max(0,Math.floor(e)),r=Math.floor(n/86400),a=Math.floor(n%86400/3600),l=Math.floor(n%3600/60),o="en-US"===t;return r>0?o?"".concat(r,"d ").concat(a,"h"):"".concat(r," 天 ").concat(a," 小时"):a>0?o?"".concat(a,"h ").concat(l,"m"):"".concat(a," 小时 ").concat(l," 分"):l>0?o?"".concat(l,"m"):"".concat(l," 分"):o?"Just now":"刚刚"}function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"zh-CN";if(!e||e<=0)return"en-US"===t?"Never":"从未";let n=Math.floor(Math.floor((Date.now()-e)/1e3)/60),r=Math.floor(n/60),a=Math.floor(r/24);return a>30?new Date(e).toLocaleDateString(t):"en-US"===t?a>0?"".concat(a,"d ago"):r>0?"".concat(r,"h ago"):n>0?"".concat(n,"m ago"):"Just now":a>0?"".concat(a," 天前"):r>0?"".concat(r," 小时前"):n>0?"".concat(n," 分钟前"):"刚刚"}n.d(t,{Jm:()=>c,a3:()=>a,fw:()=>l,mc:()=>s,z3:()=>r});let o={document:"文档",spreadsheet:"表格",image:"图片",cad:"图纸",code:"代码",data:"数据",web:"网页",diagram:"图表",archive:"压缩包",other:"其他"},i={document:"Document",spreadsheet:"Spreadsheet",image:"Image",cad:"CAD",code:"Code",data:"Data",web:"Web",diagram:"Diagram",archive:"Archive",other:"Other"};function c(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"zh-CN";return null!=(t=("en-US"===n?i:o)[e])?t:e}let s={active:"common.statusIndexed",outdated:"common.statusOutdated",error:"common.statusAbnormal",deleted:"common.statusDeleted",disk:"common.statusNotIndexed"}},52057:(e,t,n)=>{n.d(t,{B:()=>i,VF:()=>l,ff:()=>o,s_:()=>c});var r=n(97109),a=n(8090);let l=24;function o(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:80,a=e.x*t.k+t.x,l=e.y*t.k+t.y,o=a+e.width*t.k,i=l+e.height*t.k;return!(o>=-r&&i>=-r&&a<=n.width+r&&l<=n.height+r)}function i(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:24,a=t.x,l=t.y,o=t.x+e.width*t.k,i=t.y+e.height*t.k,c=Math.min(o,n.right)-Math.max(a,n.left),s=Math.min(i,n.bottom)-Math.max(l,n.top);return c>=r&&s>=r?{dx:0,dy:0}:{dx:n.left+r-a,dy:n.top+r-l}}function c(){let[e,t]=(0,r.useState)({x:0,y:0,k:1}),n=(0,r.useRef)(null),l=(0,r.useRef)(null),o=(0,r.useRef)(e);(0,r.useEffect)(()=>{o.current=e},[e]);let i=(0,r.useCallback)((e,r,a)=>{t(t=>{var l;let o=Math.min(2,Math.max(.1,t.k*e)),i=null==(l=n.current)?void 0:l.getBoundingClientRect();if(!i||void 0===r||void 0===a)return{...t,k:o};let c=(r-i.left-t.x)/t.k,s=(a-i.top-t.y)/t.k;return{k:o,x:r-i.left-c*o,y:a-i.top-s*o}})},[]),[c,s]=(0,r.useState)(null);(0,r.useEffect)(()=>{var e,t;let r=null!=(t=null==(e=n.current)?void 0:e.parentElement)?t:n.current;r&&r!==c&&s(r)}),(0,r.useEffect)(()=>{if(!c)return;let e=e=>{(e=>{for(let t=e;t&&t!==c;t=t.parentElement)if(t.scrollHeight>t.clientHeight+1){let e=getComputedStyle(t).overflowY;if("auto"===e||"scroll"===e)return!0}return!1})(e.target)||(e.preventDefault(),i(Math.exp(-e.deltaY/320),e.clientX,e.clientY))};return c.addEventListener("wheel",e,{passive:!1}),()=>c.removeEventListener("wheel",e)},[c,i]);let u=(0,r.useCallback)(e=>{if(0!==e.button)return;e.currentTarget.setPointerCapture(e.pointerId);let t=o.current;l.current={pointerId:e.pointerId,startX:e.clientX,startY:e.clientY,originX:t.x,originY:t.y}},[]),d=(0,r.useCallback)(e=>{let n=l.current;n&&n.pointerId===e.pointerId&&t(t=>({...t,x:n.originX+(e.clientX-n.startX),y:n.originY+(e.clientY-n.startY)}))},[]),m=(0,r.useCallback)(()=>{l.current=null},[]),f=(0,r.useCallback)(()=>t({x:0,y:0,k:1}),[]),p=(e,t)=>null!=t?t:{left:0,top:0,right:e.width,bottom:e.height},h=(0,r.useCallback)((e,r,a)=>{t(t=>{var l;let o=null==(l=n.current)?void 0:l.getBoundingClientRect();if(!o||e<=0||r<=0)return{...t,x:0,y:0};let i=p(o,a),c=Math.max(1,i.right-i.left),s=Math.max(1,i.bottom-i.top),u=Math.min(2,Math.max(.1,Math.min(c/e,s/r)));return{k:u,x:i.left+(c-e*u)/2,y:i.top+(s-r*u)/2}})},[]),g=(0,r.useCallback)((e,r,l,o)=>{t(t=>{var i;let c=null==(i=n.current)?void 0:i.getBoundingClientRect();if(!c)return t;let s=p(c,o),u=null!=l?l:t.k,d=(s.left+s.right)/2,m=(s.top+s.bottom)/2;return{k:u,x:d-(e+a.zT/2)*u,y:m-(r+a.EL/2)*u}})},[]);return{view:e,containerRef:n,zoomAt:i,onPointerDown:u,onPointerMove:d,endDrag:m,reset:f,fit:h,centerOn:g,panBy:(0,r.useCallback)((e,n)=>{(0!==e||0!==n)&&t(t=>({...t,x:t.x+e,y:t.y+n}))},[])}}},57481:(e,t,n)=>{n.d(t,{_:()=>x});var r=n(65321),a=n(97109),l=n(17807),o=n(42700),i=n(84253),c=n(32965),s=n(14932),u=n(75174),d=n(1310),m=n(58209),f=n(85587),p=n(6578),h=n(70553),g=n(45551);let v="canvas:recordsBallPos";function x(e){let{currentDocumentId:t,projectRoot:n,onSelect:x,onCurrentDeleted:w}=e,k=(0,f.Vr)(),{message:b}=l.A.useApp(),A=(0,a.useRef)(null),[I,j]=(0,a.useState)([]),[E,S]=(0,a.useState)(!1),[M,C]=(0,a.useState)(!1),[R,N]=(0,a.useState)(1),[T,D]=(0,a.useState)(!1),[_,B]=(0,a.useState)([]),[q,P]=(0,a.useState)(!1),[z,L]=(0,a.useState)(null),[O,U]=(0,a.useState)(!0),H=(0,a.useRef)(null);(0,a.useEffect)(()=>{var e,t;let n=function(){try{let e=window.localStorage.getItem(v);if(!e)return null;let t=JSON.parse(e);return"number"==typeof(null==t?void 0:t.left)&&"number"==typeof(null==t?void 0:t.top)?{left:t.left,top:t.top}:null}catch(e){return null}}();if(!n)return;let r=null==(t=A.current)||null==(e=t.parentElement)?void 0:e.getBoundingClientRect();if(!r)return void L(n);L({left:Math.min(Math.max(8,n.left),Math.max(8,r.width-44-8)),top:Math.min(Math.max(8,n.top),Math.max(8,r.height-44-8))})},[]);let G=(0,a.useCallback)(async()=>{S(!0);try{let e=await (0,p.cQ)(n||void 0);j(e.documents||[])}catch(e){j([])}finally{S(!1)}},[n]);(0,a.useEffect)(()=>{G()},[G]),(0,a.useEffect)(()=>{M&&G()},[M,G]),(0,a.useEffect)(()=>{N(1),B([])},[M]),I.length;let X=(0,a.useMemo)(()=>I.slice((R-1)*8,8*R),[I,R]),Y=(0,a.useCallback)(e=>!(0,h.Ce)(e.status),[]),F=X.filter(Y).map(e=>e.id),K=()=>{if(!M){var e,t,n;let r=null==(t=A.current)||null==(e=t.parentElement)?void 0:e.getBoundingClientRect(),a=null==(n=A.current)?void 0:n.getBoundingClientRect();U(!r||!a||a.top-r.top>252)}C(e=>!e)},J=async e=>{try{await (0,p.QG)(e.id,e.projectRoot||n||void 0),b.success(k("common.success")),B(t=>t.filter(t=>t!==e.id)),e.id===t&&w(),await G()}catch(e){b.error(k("common.error"))}},W=async()=>{let e=I.filter(e=>_.includes(e.id)&&Y(e));if(0!==e.length){P(!0);try{await Promise.all(e.map(e=>(0,p.QG)(e.id,e.projectRoot||n||void 0))),b.success(k("records.deletedCount").replace("{count}",String(e.length))),t&&e.some(e=>e.id===t)&&w(),B([]),D(!1),await G()}catch(e){b.error(k("common.error"))}finally{P(!1)}}},Q=z?{left:z.left,top:z.top}:{right:24,bottom:96};return(0,r.jsxs)("div",{className:"canvasRecordsBall",ref:A,style:{position:"absolute",zIndex:3,...Q},children:[M&&(0,r.jsxs)("div",{className:"canvasRecordsPanel",style:{position:"absolute",right:0,width:320,maxHeight:420,display:"flex",flexDirection:"column",...O?{bottom:52}:{top:52}},children:[(0,r.jsxs)("div",{className:"flex items-center justify-between gap-2 px-3 py-2 border-b border-[var(--canvasSectionBorder)] shrink-0",children:[(0,r.jsxs)("span",{className:"text-[13px] font-semibold text-[var(--colorText)]",children:[k("records.title"),(0,r.jsx)("span",{className:"ml-2 font-normal text-xs text-[var(--colorTextTertiary)]",children:I.length})]}),(0,r.jsx)("button",{type:"button",className:"canvasRecordsLink",onClick:()=>{D(e=>!e),B([])},children:T?k("common.cancel"):k("records.batch")})]}),(0,r.jsx)("div",{className:"flex-1 min-h-0 overflow-y-auto",children:E&&0===I.length?(0,r.jsx)("div",{className:"py-10 text-center",children:(0,r.jsx)(o.A,{size:"small"})}):0===I.length?(0,r.jsx)("div",{className:"py-8",children:(0,r.jsx)(i.A,{image:i.A.PRESENTED_IMAGE_SIMPLE,description:(0,r.jsx)("span",{className:"text-xs text-[var(--colorTextTertiary)]",children:k("records.empty")})})}):X.map(e=>{var n;let a=e.id===t,l=Y(e);return(0,r.jsxs)("div",{className:"group flex items-start gap-2 px-3 py-2 border-b border-[var(--canvasSectionBorder)] last:border-b-0 transition-colors ".concat(a?"bg-[var(--colorBgSelected)]":"hover:bg-[var(--colorBgHover)]"),children:[T&&(0,r.jsx)("input",{type:"checkbox",className:"mt-1 shrink-0",disabled:!l,checked:_.includes(e.id),onChange:t=>B(n=>t.target.checked?[...n,e.id]:n.filter(t=>t!==e.id))}),(0,r.jsxs)("button",{type:"button",className:"min-w-0 flex-1 text-left bg-transparent border-0 p-0 cursor-pointer",title:e.title,onClick:()=>{x(e),C(!1)},children:[(0,r.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,r.jsx)("span",{className:"w-1.5 h-1.5 shrink-0 rounded-full ".concat(null!=(n=y[e.status])?n:"bg-[var(--colorTextTertiary)]")}),(0,r.jsx)("span",{className:"truncate text-[13px] ".concat(a?"font-semibold text-[var(--colorText)]":"text-[var(--colorText)]"),children:e.title}),a&&(0,r.jsx)("span",{className:"shrink-0 text-[10px] text-[var(--colorTextTertiary)]",children:k("records.current")})]}),(0,r.jsxs)("div",{className:"mt-0.5 pl-3 text-[11px] text-[var(--colorTextTertiary)]",children:[(0,r.jsx)(d.A,{className:"mr-1"}),(0,g.fw)(e.updatedAt,"zh-CN")]})]}),!T&&l&&(0,r.jsx)(c.A,{title:k("records.confirmDelete"),description:k("records.deleteHint"),onConfirm:()=>{J(e)},okText:k("common.confirm"),cancelText:k("common.cancel"),children:(0,r.jsx)("button",{type:"button",className:"canvasRecordsDelete",title:k("common.delete"),children:(0,r.jsx)(m.A,{})})}),!T&&!l&&(0,r.jsx)(s.A,{title:k("records.inFlightHint"),children:(0,r.jsx)("span",{className:"canvasRecordsDelete isDisabled",children:(0,r.jsx)(m.A,{})})})]},e.id)})}),I.length>8&&(0,r.jsx)("div",{className:"flex justify-center px-3 py-2 border-t border-[var(--canvasSectionBorder)] shrink-0",children:(0,r.jsx)(u.A,{size:"small",simple:!0,current:R,total:I.length,pageSize:8,onChange:N})}),T&&(0,r.jsxs)("div",{className:"flex items-center justify-between gap-2 px-3 py-2 border-t border-[var(--canvasSectionBorder)] shrink-0",children:[(0,r.jsx)("span",{className:"text-xs text-[var(--colorTextSecondary)]",children:k("records.checkedCount").replace("{count}",String(_.length))}),(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("button",{type:"button",className:"canvasRecordsLink",onClick:()=>B(_.length===F.length?[]:F),children:_.length===F.length&&F.length>0?k("records.clearSelect"):k("records.selectPage")}),(0,r.jsx)(c.A,{title:k("records.confirmDeleteSelected").replace("{count}",String(_.length)),description:k("records.deleteHint"),disabled:0===_.length,onConfirm:()=>{W()},okText:k("common.confirm"),cancelText:k("common.cancel"),children:(0,r.jsxs)("button",{type:"button",className:"canvasRecordsDanger",disabled:0===_.length||q,children:[(0,r.jsx)(m.A,{className:"mr-1"}),k("records.deleteSelected")]})})]})]})]}),(0,r.jsxs)("div",{className:"canvasRecordsBallBtn",role:"button",tabIndex:0,"aria-label":"".concat(k("records.title"),"(").concat(I.length,")"),style:{width:44,height:44},onPointerDown:e=>{var t,n,r;let a=null==(n=A.current)||null==(t=n.parentElement)?void 0:t.getBoundingClientRect(),l=null==(r=A.current)?void 0:r.getBoundingClientRect();if(a&&l){H.current={pointerId:e.pointerId,startX:e.clientX,startY:e.clientY,originLeft:l.left-a.left,originTop:l.top-a.top,moved:!1};try{e.currentTarget.setPointerCapture(e.pointerId)}catch(e){}}},onPointerMove:e=>{var t,n;let r=H.current,a=null==(n=A.current)||null==(t=n.parentElement)?void 0:t.getBoundingClientRect();if(!r||r.pointerId!==e.pointerId||!a)return;let l=e.clientX-r.startX,o=e.clientY-r.startY;!r.moved&&5>Math.hypot(l,o)||(r.moved=!0,L({left:Math.min(Math.max(8,r.originLeft+l),Math.max(8,a.width-44-8)),top:Math.min(Math.max(8,r.originTop+o),Math.max(8,a.height-44-8))}))},onPointerUp:e=>{let t=H.current;H.current=null;try{e.currentTarget.releasePointerCapture(e.pointerId)}catch(e){}if(t){if(t.moved)return void L(e=>{if(e)try{window.localStorage.setItem(v,JSON.stringify(e))}catch(e){}return e});K()}},onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),K())},children:[(0,r.jsx)(d.A,{}),(0,r.jsx)("span",{className:"canvasRecordsBallBadge".concat(0===I.length?" isZero":""),children:I.length>99?"99+":I.length})]})]})}let y={completed:"bg-[var(--colorOk)]",completed_with_issues:"bg-[var(--colorDanger)]",warning:"bg-[var(--colorWarning)]",failed:"bg-[var(--colorDanger)]",aborted:"bg-[var(--colorTextTertiary)]",generating:"bg-[var(--colorAccent)]",queued:"bg-[var(--colorTextTertiary)]",paused:"bg-[var(--colorWarning)]"}},70553:(e,t,n)=>{n.d(t,{Ce:()=>w,tl:()=>b});var r=n(97109),a=n(25258),l=n(23216),o=n(26619),i=n(8263),c=n(16285),s=n(8579),u=n(29071),d=n(7851),m=n(1310),f=n(26631),p=n(83914),h=n(6578);let g=null,v=!1;function x(){null==g||g.listeners.forEach(e=>e())}let y={role_binding:"角色配置绑定",knowledge_retrieval:"知识库检索",file_understanding:"多模态文件理解",fact_extraction:"LLM 事实抽取",chapter_generation:"LLM 章节生成",validation:"规则校验",llm_review:"LLM 审查优化",reference:"参考资源处理"};function w(e){return"completed"!==e&&"completed_with_issues"!==e&&"warning"!==e&&"failed"!==e&&"aborted"!==e&&"paused"!==e}function k(e){var t,n,a,p,h,g,v,x,w;let k=null==(t=e.agentWorkflow)?void 0:t.nodes;if(!k||0===k.length)return null;let b=[...k].sort((e,t)=>{var n,r;return(null!=(n=e.seq)?n:0)-(null!=(r=t.seq)?r:0)}).map(e=>{let t=y[e.type]||e.title||e.type||"节点",n="failed"===e.status||"blocked"===e.status?"error":"paused"===e.status||"repairing"===e.status?"warning":"running"===e.status?"process":"pending"===e.status?"wait":"finish",a=Object.entries(e.metrics||{}).slice(0,4).map(e=>{let[t,n]=e;return"".concat(t,":").concat(String(n))}).join(" ");return{key:e.id,title:t,subtitle:e.progress?"".concat(e.progress.label||"进度",":").concat(e.progress.current,"/").concat(e.progress.total):"",description:a,status:n,icon:function(e){let t=e.split(".")[0]||e;return"role_binding"===e||"prepare"===t?(0,r.createElement)(l.A):"knowledge_retrieval"===e||"understand"===t?(0,r.createElement)(o.A):"file_understanding"===e||"skill"===t?(0,r.createElement)(i.A):"fact_extraction"===e?(0,r.createElement)(c.A):"chapter_generation"===e||"chapter"===t||"write"===t?(0,r.createElement)(s.A):"llm_review"===e||"turn"===t||"round"===t?(0,r.createElement)(u.A):"validation"===e||"repair"===t||"recheck"===t?(0,r.createElement)(d.A):"plan"===t||"blueprint"===t?(0,r.createElement)(l.A):"rollback"===t||"snapshot"===t?(0,r.createElement)(m.A):(0,r.createElement)(f.A)}(e.type),subSteps:[]}}),A="generating"===e.status||"queued"===e.status?null!=(v=null!=(g=null==(n=b.find(e=>"process"===e.status))?void 0:n.key)?g:null==(a=b.at(-1))?void 0:a.key)?v:null:("failed"===e.status||"aborted"===e.status)&&null!=(w=null!=(x=null==(p=b.find(e=>"error"===e.status))?void 0:p.key)?x:null==(h=b.at(-1))?void 0:h.key)?w:null;return{steps:b,activeKey:A}}function b(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{projectRoot:l,documents:o,onNotice:i,t:c,onGenerated:s}=n,[u,d]=(0,r.useState)([]),[m,f]=(0,r.useState)(null),[y,b]=(0,r.useState)(!1),[A,I]=(0,r.useState)(null),[j,E]=(0,r.useState)(""),[S,M]=(0,r.useState)(null),[C,R]=(0,r.useState)(null!=(e=n.documentId)?e:null),[N,T]=(0,r.useState)(null),[D,_]=(0,r.useState)(null!=o?o:[]),[B,q]=(0,r.useState)(0),[P,z]=(0,r.useState)(null),[L,O]=(0,r.useState)([]),[U,H]=(0,r.useState)(null),G=(0,r.useRef)(""),X=(0,r.useRef)(new Map),Y=(0,r.useRef)(new Map),F=(0,r.useRef)(!1),K=(0,r.useRef)(l),J=(0,r.useRef)(C),W=(0,r.useRef)(u),Q=(0,r.useRef)(m),V=(0,r.useRef)(y),Z=(0,r.useRef)(c),$=(0,r.useRef)(i),ee=(0,r.useRef)(s);(0,r.useEffect)(()=>{K.current=l},[l]),(0,r.useEffect)(()=>{J.current=C},[C]),(0,r.useEffect)(()=>{W.current=u},[u]),(0,r.useEffect)(()=>{Q.current=m},[m]),(0,r.useEffect)(()=>{V.current=y},[y]),(0,r.useEffect)(()=>{Z.current=c},[c]),(0,r.useEffect)(()=>{$.current=i},[i]),(0,r.useEffect)(()=>{ee.current=s},[s]);let et=(0,r.useMemo)(()=>"activeGenDocId:".concat(l||"default"),[l]),en=(0,r.useCallback)(e=>{var t;null==(t=$.current)||t.call($,e)},[]),er=(0,r.useCallback)((e,t)=>{var n,r;return null!=(r=null==(n=Z.current)?void 0:n.call(Z,e))?r:t},[]);(0,r.useEffect)(()=>{let e=()=>{let e=g;e&&(d(e.flowSteps),f(e.activeFlowKey),b(e.loading),e.documentId&&R(e.documentId),e.draft&&I(e.draft),void 0!==e.content&&E(e.content))},t=g;return null==t||t.listeners.add(e),e(),()=>{null==t||t.listeners.delete(e)}},[]);let ea=(0,r.useCallback)(async()=>{try{_((await (0,h.cQ)(K.current||void 0)).documents)}catch(e){_([])}},[]);(0,r.useEffect)(()=>{o&&_(o)},[o]),(0,r.useEffect)(()=>{void 0!==n.documentId&&null!==n.documentId&&R(n.documentId)},[n.documentId]);let el=(0,r.useCallback)(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:V.current;(null==g?void 0:g.loading)&&(g.flowSteps=e,g.activeFlowKey=t,g.loading=n,x())},[]),eo=(0,r.useCallback)(e=>{let t=Date.now();for(let n of e){let e=X.current.get(n.key);"process"!==n.status||e?("finish"===n.status||"error"===n.status||"warning"===n.status)&&e&&!e.endedAt&&X.current.set(n.key,{...e,endedAt:t}):X.current.set(n.key,{startedAt:t})}},[]),ei=(0,r.useCallback)(e=>{let t=Math.max(0,Math.round(e/1e3));if(t<60)return"".concat(t," 秒");let n=Math.floor(t/60);return n<60?"".concat(n," 分 ").concat(t%60," 秒"):"".concat(Math.floor(n/60)," 小时 ").concat(n%60," 分")},[]),ec=(0,r.useCallback)(e=>{var t;let n=(null==(t=e.agentWorkflow)?void 0:t.nodes)||[],r="".concat(e.id,"|").concat(e.updatedAt,"|").concat(e.status,"|").concat(e.error||"","|n").concat(n.length,":").concat(n.map(e=>{var t,n,r,a;return"".concat(e.id,"=").concat(e.status,":").concat(null!=(r=null==(t=e.progress)?void 0:t.current)?r:0,"/").concat(null!=(a=null==(n=e.progress)?void 0:n.total)?a:0)}).join(","));if(G.current===r)return;G.current=r,M(e);let{steps:a,activeKey:l}=function(e){var t;return arguments.length>1&&void 0!==arguments[1]&&arguments[1],null!=(t=k(e))?t:{steps:[],activeKey:null}}(e);eo(a);let o=w(e.status);d(a),f(l),b(o),el(a,l,o),T("failed"===e.status||"aborted"===e.status?e.error||("aborted"===e.status?"生成已中止":"生成失败"):null),("completed"===e.status||"completed_with_issues"===e.status||"warning"===e.status)&&(e.draft&&I(e.draft),E(e.editedMarkdown||e.markdown),O(e.exportReports||[]))},[el,eo]),es=(0,r.useCallback)(e=>{e.id&&R(e.id),ec(e)},[ec]),eu=(0,r.useCallback)(async(e,t)=>{let n=Date.now(),r=0,a=Date.now(),l=null,o=0;for(;;){let i,c;if(null==t?void 0:t.aborted)throw Error("用户中止");let s=new AbortController;t&&(t.pollController=s);try{let t=await (0,h.v7)(e,!0,K.current||void 0,s.signal,r||void 0);i=t.document,c=t.status,o=0}catch(e){if((null==t?void 0:t.aborted)||e instanceof DOMException&&"AbortError"===e.name)throw Error("用户中止",{cause:e});if((o+=1)>=3)throw e instanceof Error?e:Error("生成进度获取失败");await new Promise(e=>window.setTimeout(e,2e3*o));continue}finally{(null==t?void 0:t.pollController)===s&&(t.pollController=void 0)}let u=i?"queued"===i.status:"queued"===c;if(u&&(a=Date.now(),Date.now()-n>216e5))throw Error("排队等待超时,请稍后刷新列表查看或取消后重新发起");if(!i){if(!u&&(Date.now()-(null!=l?l:n)>75e5||Date.now()-a>96e4))throw Error("生成任务疑似卡住,请点击继续生成或重新生成(后台任务可能仍在运行,稍后刷新可查看)");await new Promise(e=>window.setTimeout(e,1500));continue}if(ec(i),"generating"===i.status&&null===l&&(l=Date.now()),i.updatedAt!==r&&(r=i.updatedAt,a=Date.now()),("completed"===i.status||"completed_with_issues"===i.status||"warning"===i.status)&&i.draft)return i;if("warning"===i.status&&i.error&&/已中断/u.test(i.error))throw Error(i.error);if("failed"===i.status||"aborted"===i.status)throw Error(i.error||("aborted"===i.status?"生成已中止":"生成失败"));if(!u&&(Date.now()-(null!=l?l:n)>75e5||Date.now()-a>96e4))throw Error("生成任务疑似卡住,请点击继续生成或重新生成(后台任务可能仍在运行,稍后刷新可查看)");await new Promise(e=>window.setTimeout(e,1500))}},[ec]),ed=(0,r.useCallback)(async(e,t)=>{if(!e.specId)return;let n=e.title,a=e.promptIds,l=e.projectRoot||K.current;if((null==g?void 0:g.aborted)&&(g=null),null==g?void 0:g.loading){if(F.current)return;if(!l)return void en({kind:"error",text:"未识别当前项目,请先选择或打开项目后再生成文件"});F.current=!0;try{let e=await (0,h.OX)({promptIds:a,...n?{title:n}:{},requirement:t,projectRoot:l});await ea(),en({kind:"info",text:e.queuePosition?"已加入生成队列(第 ".concat(e.queuePosition," 位):前面任务完成后将自动开始"):"生成任务已创建"})}catch(e){en({kind:"error",text:e instanceof Error?e.message:"创建生成任务失败"})}finally{F.current=!1}return}if(!l)return void en({kind:"error",text:"未识别当前项目,请先选择或打开项目后再生成文件"});b(!0);let o=W.current,i=o.length>0?o:[{key:"prepare",title:"正在创建生成任务",description:"系统正在创建后台生成任务,请稍候。",status:"process",icon:(0,r.createElement)(p.A),subSteps:[{key:"start",title:"准备生成任务",status:"process"}]}],c=Q.current||"prepare";d(i),f(c);let s=(0,h.OX)({promptIds:a,...n?{title:n}:{},requirement:t,projectRoot:l});g={id:Date.now(),specId:e.specId,loading:!0,flowSteps:i,activeFlowKey:c,promise:s,listeners:new Set};try{var u,m,y,w,A,j;let t=await s;t.documentId&&(localStorage.setItem(et,t.documentId),R(t.documentId),(null==g?void 0:g.promise)===s&&(g.documentId=t.documentId)),await ea(),t.queuePosition&&en({kind:"info",text:"已加入生成队列(第 ".concat(t.queuePosition," 位):前面任务完成后将自动开始")});let n=t.documentId?await eu(t.documentId,(null==g?void 0:g.promise)===s?g:void 0):void 0,r=t.draft||(null==n?void 0:n.draft);if(!r)throw Error("生成结果为空");(t.documentId||(null==n?void 0:n.id))&&R(t.documentId||n.id),I(r),E((null==n?void 0:n.editedMarkdown)||(null==n?void 0:n.markdown)||r.markdown),(null==g?void 0:g.promise)===s&&(g.draft=r,g.content=(null==n?void 0:n.editedMarkdown)||(null==n?void 0:n.markdown)||r.markdown);let a=n||{id:t.documentId||"draft-".concat(Date.now()),templateId:(null==(u=t.record)?void 0:u.templateId)||(null==(m=t.documentSpec)?void 0:m.id)||e.specId,templateName:(null==(y=t.record)?void 0:y.templateName)||(null==(w=t.documentSpec)?void 0:w.title),title:r.title,requirement:r.requirement,projectRoot:r.projectRoot||K.current,projectId:r.projectId,markdown:r.markdown,status:r.validationIssues.some(e=>"error"===e.level||"warning"===e.level)||!r.exportGate.passed?"completed_with_issues":"completed",draft:r,executionStages:r.executionStages,assets:r.assets||[],createdAt:r.generatedAt,updatedAt:Date.now()},{steps:l}=null!=(j=k(a))?j:{steps:[],activeKey:null};d(l),el(l,"done",!1),f("done"),(null==g?void 0:g.promise)===s&&(g.activeFlowKey="done",g.loading=!1,x(),g=null),localStorage.removeItem(et),await ea(),en({kind:"success",text:"操作成功",key:"common.success"}),(t.documentId||(null==n?void 0:n.id))&&(null==(A=ee.current)||A.call(ee,t.documentId||n.id))}catch(r){localStorage.removeItem(et);let e=r instanceof Error?r.message:er("common.error","出错了"),t=v;v=!1;let n=!t&&"用户中止"===e;T(e),t||d(t=>{let n=t.map(t=>"process"===t.status?{...t,status:"error",description:e,subSteps:t.subSteps.map((e,t)=>({...e,status:0===t?"error":e.status}))}:t);return el(n,Q.current,!1),n}),(null==g?void 0:g.promise)===s&&(g.loading=!1,g.error=e,x(),g=null),await ea(),n?en({kind:"warning",text:"生成任务已被中止(可能来自其他窗口):可在列表中点击「继续生成」恢复"}):t||en({kind:"error",text:e})}finally{b(!1),v=!1,(null==g?void 0:g.promise)===s&&(g.loading=!1,x())}},[en,ea,el,et,er,eu]),em=(0,r.useCallback)(e=>{let t=Y.current.get(e);t&&(clearInterval(t),Y.current.delete(e))},[]),ef=(0,r.useCallback)((e,t)=>{em(e);let n=setInterval(()=>{(async()=>{try{let{document:n}=await (0,h.v7)(e,!0,t||K.current||void 0);if(!n)return;ec(n),await ea(),w(n.status)||(em(e),localStorage.removeItem(et))}catch(e){}})()},2e3);Y.current.set(e,n)},[ec,ea,em,et]);(0,r.useEffect)(()=>()=>{for(let e of Y.current.values())clearInterval(e);Y.current.clear()},[]),(0,r.useEffect)(()=>{if(0===D.length)return;let e=localStorage.getItem(et);if(!e)return;if(!D.find(t=>t.id===e&&("generating"===t.status||"queued"===t.status)))return void localStorage.removeItem(et);R(e);let t=setInterval(()=>{(async()=>{try{let{document:n}=await (0,h.v7)(e,!1,K.current||void 0);if(!n)return;await ea(),"generating"!==n.status&&"queued"!==n.status&&(localStorage.removeItem(et),clearInterval(t))}catch(e){clearInterval(t)}})()},3e3);return()=>clearInterval(t)},[D,ea,et]),(0,r.useEffect)(()=>{var e;if(!C)return;let t=D.find(e=>e.id===C),n=null!=(e=null==t?void 0:t.status)?e:null==S?void 0:S.status;n&&w(n)?ef(C,(null==t?void 0:t.projectRoot)||K.current):em(C)},[C,D,ef,em,null==S?void 0:S.status]),(0,r.useEffect)(()=>{if(!y||!m)return;let e=window.setInterval(()=>d(e=>{let t=e.map(e=>{if(e.key!==m||"process"!==e.status)return e;let t=e.subSteps.findIndex(e=>"process"===e.status),n=t<0?0:Math.min(t+1,e.subSteps.length-1);return{...e,subSteps:e.subSteps.map((e,t)=>t<n?{...e,status:"finish"}:t===n?{...e,status:"process"}:{...e,status:"wait"})}});return el(t,m),t}),1400);return()=>window.clearInterval(e)},[m,y,el]),(0,r.useEffect)(()=>{if(!y)return;let e=window.setInterval(()=>q(e=>e+1),1e3);return()=>window.clearInterval(e)},[y]);let ep=(0,r.useCallback)(e=>{var t;let n=X.current.get(e);if(!n)return null;let r=ei((null!=(t=n.endedAt)?t:Date.now())-n.startedAt);return n.endedAt?r:"".concat(r,"(运行中)")},[B,ei]),eh=(0,r.useCallback)(async e=>{g&&(v=!0);let t=J.current;if(t&&await (0,h.r)(t,e||K.current||void 0).catch(()=>void 0),g){var n;g.aborted=!0,null==(n=g.pollController)||n.abort(),g.loading=!1,g.error="用户中止",x(),g=null}for(let e of(localStorage.removeItem(et),Y.current.values()))clearInterval(e);Y.current.clear(),b(!1),d([]),f(null),T("用户中止"),await ea(),en({kind:"info",text:"已中止生成任务"})},[en,ea,et]),eg=(0,r.useCallback)(async e=>{if((null==g?void 0:g.loading)&&g.documentId===e.id){var t;v=!0,g.aborted=!0,null==(t=g.pollController)||t.abort(),g.loading=!1,g.error="用户中止",x(),g=null,b(!1)}localStorage.removeItem(et),em(e.id);try{await (0,h.r)(e.id,e.projectRoot||K.current||void 0),en({kind:"success",text:"queued"===e.status?"已取消排队任务":"已中止生成任务"})}catch(e){en({kind:"info",text:"任务已不在运行,已刷新状态"})}finally{await ea(),J.current===e.id&&(R(null),M(null),I(null),E(""))}},[en,ea,em,et]),ev=(0,r.useCallback)(async e=>{try{R(e.id),b(!0);let t=await (0,h.UQ)(e.id,e.projectRoot||K.current||void 0);localStorage.setItem(et,t.documentId),await ea();let n=await eu(t.documentId);n.draft&&(I(n.draft),E(n.editedMarkdown||n.markdown||n.draft.markdown)),localStorage.removeItem(et),await ea(),en({kind:"success",text:"已继续生成并完成"})}catch(e){en({kind:"error",text:e instanceof Error?e.message:"继续生成失败"})}finally{b(!1)}},[en,ea,et,eu]),ex=(0,r.useCallback)(async(e,t)=>{let n=await fetch("/api/documents/generated/".concat(encodeURIComponent(e),"/pause"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({projectRoot:t||K.current||void 0})});if(!n.ok)throw Error(await n.text()||"HTTP ".concat(n.status));let r=await n.json();return en({kind:"info",text:r.message||"已请求暂停:将在当前节点边界停住并落盘"}),await ea(),ef(e,t),r},[en,ea,ef]),ey=(0,r.useCallback)(async(e,t)=>{let n=await fetch("/api/documents/generated/".concat(encodeURIComponent(e),"/resume-generate"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({projectRoot:t||K.current||void 0})});if(!n.ok)throw Error(await n.text()||"HTTP ".concat(n.status));en({kind:"info",text:"已请求继续:将从暂停的节点边界接着跑"}),await ea()},[en,ea]),ew=(0,r.useCallback)((e,t,n)=>{let r=new Blob([e],{type:n}),a=URL.createObjectURL(r),l=document.createElement("a");l.href=a,l.download=t,l.target="_self",l.rel="noopener",l.style.display="none",document.body.appendChild(l),l.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window})),l.remove(),window.setTimeout(()=>URL.revokeObjectURL(a),1e3)},[]),ek=(0,r.useCallback)(async(e,t,n)=>{let{blob:r,filename:a,notDeliverable:l,gateIssues:o}=await (0,h.UE)(e);ew(r,a||t,n),H(l?{at:Date.now(),count:o.length,issues:o}:null)},[ew]),eb=(0,r.useCallback)(e=>/导出门禁未通过|EXPORT_GATE_BLOCKED/u.test(e),[]),eA=(0,r.useCallback)(e=>new Promise(t=>{a.A.confirm({title:er("documents.exportGateBlockedTitle","导出门禁未通过"),content:"".concat(e,"\n\n").concat(er("documents.nonDeliverableExportConfirm","仍要导出将产出「非交付物」文件(文件名带后缀且界面显著标注),是否继续?")),okText:er("documents.exportAnywayNonDeliverable","仍要导出(非交付物)"),okButtonProps:{danger:!0},cancelText:er("common.cancel","取消"),onOk:()=>t(!0),onCancel:()=>t(!1)})}),[er]),eI=(0,r.useCallback)(async(e,t)=>{let n=e instanceof Error?e.message:er("common.error","出错了");if(!eb(n))return void en({kind:"error",text:n});if(await eA(n))try{await t()}catch(e){en({kind:"error",text:e instanceof Error?e.message:er("common.error","出错了")})}},[eA,eb,en,er]),ej=(0,r.useMemo)(()=>({markdown:"text/markdown;charset=utf-8",html:"text/html;charset=utf-8",pdf:"application/pdf",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"}),[]),eE=(0,r.useCallback)(async(e,t)=>{var n;let r=e.editedMarkdown||e.markdown||(null==(n=e.draft)?void 0:n.markdown)||"";if(!r.trim())return void en({kind:"warning",text:"该记录暂无可导出的正文内容"});z(t);let a="markdown"===t?"md":t,l={documentId:e.id,title:e.title,markdown:r,format:t,useClientMarkdown:!0,projectRoot:e.projectRoot||K.current||void 0};try{await ek(l,"".concat(e.title,".").concat(a),ej[t])}catch(n){await eI(n,async()=>{await ek({...l,allowNonDeliverable:!0},"".concat(e.title,".").concat(a),ej[t])})}finally{z(null)}},[ek,ej,eI,en]),eS=(0,r.useCallback)(async e=>{if(!A)return;z(e);let t="markdown"===e?"md":e,n={documentId:J.current||void 0,title:A.title,markdown:j,format:e,exportGate:A.exportGate,useClientMarkdown:!0,projectRoot:A.projectRoot||K.current||void 0};try{if(await ek(n,"".concat(A.title,".").concat(t),ej[e]),J.current)try{let{document:e}=await (0,h.v7)(J.current,!1,A.projectRoot||K.current||void 0);e&&O(e.exportReports||[])}catch(e){}}catch(r){await eI(r,async()=>{await ek({...n,allowNonDeliverable:!0},"".concat(A.title,".").concat(t),ej[e])})}finally{z(null)}},[j,ek,A,ej,eI]),eM=C&&null!=(t=D.find(e=>e.id===C))?t:S,eC=function(e,t){if(!e)return t?"running":"idle";switch(e){case"queued":return"queued";case"generating":return"running";case"paused":return"paused";case"failed":case"aborted":return"stopped";case"completed_with_issues":case"warning":return"issues";case"completed":return"done";default:return"idle"}}(null==eM?void 0:eM.status,y);return{flowSteps:u,activeFlowKey:m,loading:y,draft:A,content:j,workflowRecord:S,documentId:C,documents:D,error:N,phase:eC,flowTick:B,boundRecord:eM,canResume:function(e){var t,n,r,a,l,o;let i=!!e&&w(e.status);return!!e&&("paused"===e.status||"failed"===e.status||"aborted"===e.status||"completed_with_issues"===e.status||"warning"===e.status&&!!(null==(t=e.checkpointChapters)?void 0:t.length)&&/继续生成|重新生成|中断|卡住|未完成|门禁|阻断/u.test(e.error||(null==(n=e.warningIssues)?void 0:n.join(";"))||(null==(l=e.draft)||null==(a=l.exportGate)||null==(r=a.blockingIssues)?void 0:r.map(e=>e.message).join(";"))||"")||!i&&!!((null==(o=e.draft)?void 0:o.exportGate)&&!1===e.draft.exportGate.passed))}(eM),startGeneration:ed,abortGeneration:eh,abortDocument:eg,resumeDocument:ev,pauseDocument:ex,resumePausedDocument:ey,applyRecord:es,refreshDocuments:ea,waitForDoc:eu,stepDurationText:ep,setDraft:I,setContent:E,setExportReports:O,export:{exporting:P,nonDeliverableExport:U,exportRecord:eE,exportEditor:eS,downloadExport:ek,handleExportError:eI,confirmNonDeliverableExport:eA,exportReports:L}}}}}]);
@@ -0,0 +1,16 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[569],{54746:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(97109),r=n(71242),o=n(88483);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}let l=a.forwardRef((e,t)=>a.createElement(o.A,i({},e,{ref:t,icon:r.A})))},58569:(e,t,n)=>{n.d(t,{A:()=>J});var a=n(97109),r=n(45042),o=n(20241),i=n(54746),l=n(3638),d=n(42644);let c=(0,a.createContext)(null);var s=n(20008);let u={width:0,height:0,left:0,top:0};function p(e,t){let n=a.useRef(e),[,r]=a.useState({});return[n.current,function(e){let a="function"==typeof e?e(n.current):e;a!==n.current&&t(a,n.current),n.current=a,r({})}]}function $(e){let[t,n]=(0,a.useState)(0),r=(0,a.useRef)(0),o=(0,a.useRef)();return o.current=e,(0,d.oM)(()=>{o.current?.()},[t]),()=>{r.current===t&&(r.current+=1,n(r.current))}}let m={width:0,height:0,left:0,top:0,right:0};function b(e){let t;return e instanceof Map?(t={},e.forEach((e,n)=>{t[n]=e})):t=e,JSON.stringify(t)}function f(e){return String(e).replace(/"/g,"TABS_DQ")}function v(e,t,n,a){return!!n&&!a&&!1!==e&&(void 0!==e||!1!==t&&null!==t)}let h=a.forwardRef((e,t)=>{let{prefixCls:n,editable:r,locale:o,style:i}=e;return r&&!1!==r.showAdd?a.createElement("button",{ref:t,type:"button",className:`${n}-nav-add`,style:i,"aria-label":o?.addAriaLabel||"Add tab",onClick:e=>{r.onEdit("add",{event:e})}},r.addIcon||"+"):null}),g=a.forwardRef((e,t)=>{let n,{position:r,prefixCls:o,extra:i}=e;if(!i)return null;let l={};return"object"!=typeof i||a.isValidElement(i)?l.right=i:l=i,"right"===r&&(n=l.right),"left"===r&&(n=l.left),n?a.createElement("div",{className:`${o}-extra-content`,ref:t},n):null});var y=n(31566),k=n(29292);function w(){return(w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}let _=a.forwardRef((e,t)=>{let{prefixCls:n,id:r,tabs:o,locale:i,mobile:c,more:s={},style:u,className:p,editable:$,tabBarGutter:m,rtl:b,removeAriaLabel:f,onTabClick:g,getPopupContainer:_,popupClassName:x,popupStyle:S,classNames:E,styles:R}=e,[z,A]=(0,a.useState)(!1),[M,C]=(0,a.useState)(null),{icon:D="More"}=s,L=`${r}-more-popup`,P=`${n}-dropdown`,I=null!==M?`${L}-${M}`:null,N=i?.dropdownAriaLabel,T=a.createElement(k.Ay,{onClick:({key:e,domEvent:t})=>{g(e,t),A(!1)},prefixCls:`${P}-menu`,id:L,tabIndex:-1,role:"listbox","aria-activedescendant":I,selectedKeys:[M],"aria-label":void 0!==N?N:"expanded dropdown"},o.map(e=>{let{closable:t,disabled:n,closeIcon:o,key:i,label:d}=e,c=v(t,o,$,n);return a.createElement(k.Dr,{key:i,id:`${L}-${i}`,role:"option","aria-controls":r&&`${r}-panel-${i}`,disabled:n},a.createElement("span",null,d),c&&a.createElement("button",{type:"button","aria-label":f||"remove",tabIndex:0,className:(0,l.$)(`${P}-menu-item-remove`,E?.remove),style:R?.remove,onClick:e=>{e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),$.onEdit("remove",{key:t,event:e})}(e,i)}},o||$.removeIcon||"\xd7"))}));function O(e){let t=o.filter(e=>!e.disabled),n=t.findIndex(e=>e.key===M)||0,a=t.length;for(let r=0;r<a;r+=1){let r=t[n=(n+e+a)%a];if(!r.disabled)return void C(r.key)}}(0,a.useEffect)(()=>{let e=document.getElementById(I);e?.scrollIntoView&&e.scrollIntoView(!1)},[I,M]),(0,a.useEffect)(()=>{z||C(null)},[z]);let B={marginInlineStart:m};o.length||(B.visibility="hidden",B.order=1);let H=(0,l.$)(x,{[`${P}-rtl`]:b}),W=c?null:a.createElement(y.A,w({prefixCls:P,overlay:T,visible:!!o.length&&z,onVisibleChange:A,overlayClassName:H,overlayStyle:S,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:_},s),a.createElement("button",{type:"button",className:`${n}-nav-more`,style:B,"aria-haspopup":"listbox","aria-controls":L,id:`${r}-more`,"aria-expanded":z,onKeyDown:function(e){let{which:t}=e;if(!z){[d.DD.DOWN,d.DD.SPACE,d.DD.ENTER].includes(t)&&(A(!0),e.preventDefault());return}switch(t){case d.DD.UP:O(-1),e.preventDefault();break;case d.DD.DOWN:O(1),e.preventDefault();break;case d.DD.ESC:A(!1);break;case d.DD.SPACE:case d.DD.ENTER:null!==M&&g(M,e)}}},D));return a.createElement("div",{className:(0,l.$)(`${n}-nav-operations`,p),style:u,ref:t},W,a.createElement(h,{prefixCls:n,locale:i,editable:$}))}),x=a.memo(_,(e,t)=>t.tabMoving),S=e=>{let{prefixCls:t,id:n,active:r,focus:o,tab:{key:i,label:d,disabled:c,closeIcon:s,icon:u},closable:p,renderWrapper:$,removeAriaLabel:m,editable:b,onClick:h,onFocus:g,onBlur:y,onKeyDown:k,onMouseDown:w,onMouseUp:_,styles:x,classNames:S,tabCount:E,currentPosition:R}=e,z=`${t}-tab`,A=v(p,s,b,c);function M(e){c||h(e)}let C=a.useMemo(()=>u&&"string"==typeof d?a.createElement("span",null,d):d,[d,u]),D=a.useRef(null);a.useEffect(()=>{o&&D.current&&D.current.focus()},[o]);let L=a.createElement("div",{key:i,"data-node-key":f(i),className:(0,l.$)(z,S?.item,{[`${z}-with-remove`]:A,[`${z}-active`]:r,[`${z}-disabled`]:c,[`${z}-focus`]:o}),style:x?.item,onClick:M},a.createElement("div",{ref:D,role:"tab","aria-selected":r,id:n&&`${n}-tab-${i}`,className:`${z}-btn`,"aria-controls":n&&`${n}-panel-${i}`,"aria-disabled":c,tabIndex:c?null:r?0:-1,onClick:e=>{e.stopPropagation(),M(e)},onKeyDown:k,onMouseDown:w,onMouseUp:_,onFocus:g,onBlur:y},o&&a.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},`Tab ${R} of ${E}`),u&&a.createElement("span",{className:`${z}-icon`},u),d&&C),A&&a.createElement("button",{type:"button","aria-label":m||"remove",tabIndex:r?0:-1,className:(0,l.$)(`${z}-remove`,S?.remove),style:x?.remove,onClick:e=>{e.stopPropagation(),function(e){e.preventDefault(),e.stopPropagation(),b.onEdit("remove",{key:i,event:e})}(e)}},s||b.removeIcon||"\xd7"));return $?$(L):L};function E(){return(E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}let R=e=>{let{offsetWidth:t=0,offsetHeight:n=0}=e.current||{};if(e.current){let{width:n,height:a}=e.current.getBoundingClientRect();if(1>Math.abs(n-t))return[n,a]}return[t,n]},z=(e,t)=>e[+!t],A=a.forwardRef((e,t)=>{let n,r,o,i,{className:y,style:k,id:w,animated:_,activeKey:A,rtl:M,extra:C,editable:D,locale:L,tabPosition:P,tabBarGutter:I,children:N,onTabClick:T,onTabScroll:O,indicator:B,classNames:H,styles:W}=e,{prefixCls:j,tabs:G}=a.useContext(c),X=(0,a.useRef)(null),q=(0,a.useRef)(null),F=(0,a.useRef)(null),K=(0,a.useRef)(null),V=(0,a.useRef)(null),U=(0,a.useRef)(null),Y=(0,a.useRef)(null),Q="top"===P||"bottom"===P,[J,Z]=p(0,(e,t)=>{Q&&O&&O({direction:e>t?"left":"right"})}),[ee,et]=p(0,(e,t)=>{!Q&&O&&O({direction:e>t?"top":"bottom"})}),[en,ea]=(0,a.useState)([0,0]),[er,eo]=(0,a.useState)([0,0]),[ei,el]=(0,a.useState)([0,0]),[ed,ec]=(0,a.useState)([0,0]),[es,eu]=function(e){let t=(0,a.useRef)([]),[,n]=(0,a.useState)({}),r=(0,a.useRef)("function"==typeof e?e():e),o=$(()=>{let e=r.current;t.current.forEach(t=>{e=t(e)}),t.current=[],r.current=e,n({})});return[r.current,function(e){t.current.push(e),o()}]}(new Map),ep=function(e,t,n){return(0,a.useMemo)(()=>{let n=new Map,a=t.get(e[0]?.key)||u,r=a.left+a.width;for(let a=0;a<e.length;a+=1){let{key:o}=e[a],i=t.get(o);i||(i=t.get(e[a-1]?.key)||u);let l=n.get(o)||{...i};l.right=r-l.left-l.width,n.set(o,l)}return n},[e.map(e=>e.key).join("_"),t,n])}(G,es,er[0]),e$=z(en,Q),em=z(er,Q),eb=z(ei,Q),ef=z(ed,Q),ev=Math.floor(e$)<Math.floor(em+eb),eh=ev?e$-ef:e$-eb,eg=`${j}-nav-operations-hidden`,ey=0,ek=0;function ew(e){return e<ey?ey:e>ek?ek:e}Q&&M?(ey=0,ek=Math.max(0,em-eh)):(ey=Math.min(0,eh-em),ek=0);let e_=(0,a.useRef)(null),[ex,eS]=(0,a.useState)();function eE(){eS(Date.now())}function eR(){e_.current&&clearTimeout(e_.current)}!function(e,t){let[n,r]=(0,a.useState)(),[o,i]=(0,a.useState)(0),[l,d]=(0,a.useState)(0),[c,s]=(0,a.useState)(),u=(0,a.useRef)(),p=(0,a.useRef)(),$=(0,a.useRef)(null);$.current={onTouchStart:function(e){let{screenX:t,screenY:n}=e.touches[0];r({x:t,y:n}),window.clearInterval(u.current)},onTouchMove:function(e){if(!n)return;let{screenX:a,screenY:l}=e.touches[0];r({x:a,y:l});let c=a-n.x,u=l-n.y;t(c,u);let p=Date.now();i(p),d(p-o),s({x:c,y:u})},onTouchEnd:function(){if(n&&(r(null),s(null),c)){let e=c.x/l,n=c.y/l;if(.1>Math.max(Math.abs(e),Math.abs(n)))return;let a=e,r=n;u.current=window.setInterval(()=>{if(.01>Math.abs(a)&&.01>Math.abs(r))return void window.clearInterval(u.current);a*=.9046104802746175,r*=.9046104802746175,t(20*a,20*r)},20)}},onWheel:function(e){let{deltaX:n,deltaY:a}=e,r=0,o=Math.abs(n),i=Math.abs(a);o===i?r="x"===p.current?n:a:o>i?(r=n,p.current="x"):(r=a,p.current="y"),t(-r,-r)&&e.preventDefault()}},a.useEffect(()=>{function t(e){$.current.onTouchMove(e)}function n(e){$.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!0}),e.current.addEventListener("touchstart",function(e){$.current.onTouchStart(e)},{passive:!0}),e.current.addEventListener("wheel",function(e){$.current.onWheel(e)},{passive:!1}),()=>{document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}},[])}(K,(e,t)=>{var n,a,r,o;return!!ev&&(Q?(n=Z,a=e,n(e=>ew(e+a))):(r=et,o=t,r(e=>ew(e+o))),eR(),eE(),!0)}),(0,a.useEffect)(()=>(eR(),ex&&(e_.current=setTimeout(()=>{eS(0)},100)),eR),[ex]);let[ez,eA]=function(e,t,n,r,o,i,{tabs:l,tabPosition:d,rtl:c}){let s,u,p;return["top","bottom"].includes(d)?(s="width",u=c?"right":"left",p=Math.abs(n)):(s="height",u="top",p=-n),(0,a.useMemo)(()=>{if(!l.length)return[0,0];let n=l.length,a=n;for(let r=0;r<n;r+=1){let n=e.get(l[r].key)||m;if(Math.floor(n[u]+n[s])>Math.floor(p+t)){a=r-1;break}}let r=0;for(let t=n-1;t>=0;t-=1)if((e.get(l[t].key)||m)[u]<p){r=t+1;break}return r>a?[0,-1]:[r,a]},[e,t,r,o,i,p,d,l.map(e=>e.key).join("_"),c])}(ep,eh,Q?J:ee,em,eb,ef,{...e,tabs:G}),eM=(0,d._q)((e=A)=>{let t=ep.get(e)||{width:0,height:0,left:0,right:0,top:0};if(Q){let e=J;M?t.right<J?e=t.right:t.right+t.width>J+eh&&(e=t.right+t.width-eh):t.left<-J?e=-t.left:t.left+t.width>-J+eh&&(e=-(t.left+t.width-eh)),et(0),Z(ew(e))}else{let e=ee;t.top<-ee?e=-t.top:t.top+t.height>-ee+eh&&(e=-(t.top+t.height-eh)),Z(0),et(ew(e))}}),[eC,eD]=(0,a.useState)(),[eL,eP]=(0,a.useState)(!1),eI=G.filter(e=>!e.disabled).map(e=>e.key),eN=e=>{let t=eI.indexOf(eC||A),n=eI.length;eD(eI[(t+e+n)%n])},eT=(e,t)=>{let n=eI.indexOf(e),a=G.find(t=>t.key===e);v(a?.closable,a?.closeIcon,D,a?.disabled)&&(t.preventDefault(),t.stopPropagation(),D.onEdit("remove",{key:e,event:t}),n===eI.length-1?eN(-1):eN(1))},eO=e=>{let{code:t}=e,n=M&&Q,a=eI[0],r=eI[eI.length-1];switch(t){case"ArrowLeft":Q&&eN(n?1:-1);break;case"ArrowRight":Q&&eN(n?-1:1);break;case"ArrowUp":e.preventDefault(),Q||eN(-1);break;case"ArrowDown":e.preventDefault(),Q||eN(1);break;case"Home":e.preventDefault(),eD(a);break;case"End":e.preventDefault(),eD(r);break;case"Enter":case"Space":e.preventDefault(),T(eC??A,e);break;case"Backspace":case"Delete":eT(eC,e)}},eB={};Q?eB.marginInlineStart=I:eB.marginTop=I;let eH=G.map((e,t)=>{let{key:n}=e;return a.createElement(S,{id:w,prefixCls:j,key:n,tab:e,classNames:{item:H?.item,remove:H?.remove},styles:{item:0===t?W?.item:{...eB,...W?.item},remove:W?.remove},closable:e.closable,editable:D,active:n===A,focus:n===eC,renderWrapper:N,removeAriaLabel:L?.removeAriaLabel,tabCount:eI.length,currentPosition:t+1,onClick:e=>{T(n,e)},onKeyDown:eO,onFocus:()=>{eL||eD(n),eM(n),eE(),K.current&&(M||(K.current.scrollLeft=0),K.current.scrollTop=0)},onBlur:()=>{eD(void 0)},onMouseDown:e=>((e,t)=>{eP(!0),1===t.button&&eT(e,t)})(n,e),onMouseUp:()=>{eP(!1)}})}),eW=()=>eu(()=>{let e=new Map,t=V.current?.getBoundingClientRect();return G.forEach(({key:n})=>{let a=V.current?.querySelector(`[data-node-key="${f(n)}"]`);if(a){let[r,o,i,l]=((e,t)=>{let{offsetWidth:n,offsetHeight:a,offsetTop:r,offsetLeft:o}=e,{width:i,height:l,left:d,top:c}=e.getBoundingClientRect();return 1>Math.abs(i-n)?[i,l,d-t.left,c-t.top]:[n,a,o,r]})(a,t);e.set(n,{width:r,height:o,left:i,top:l})}}),e});(0,a.useEffect)(()=>{eW()},[G.map(e=>e.key).join("_")]);let ej=$(()=>{let e=R(X),t=R(q),n=R(F);ea([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);let a=R(Y);el(a),ec(R(U));let r=R(V);eo([r[0]-a[0],r[1]-a[1]]),eW()}),eG=[...G.slice(0,ez),...G.slice(eA+1)],eX=ep.get(A),{style:eq}=(e=>{let{activeTabOffset:t,horizontal:n,rtl:r,indicator:o={}}=e,{size:i,align:l="center"}=o,[c,s]=(0,a.useState)(),u=(0,a.useRef)(),p=a.useCallback(e=>"function"==typeof i?i(e):"number"==typeof i?i:e,[i]);function $(){d.er.cancel(u.current)}return(0,a.useEffect)(()=>{let e={};if(t)if(n){e.width=p(t.width);let n=r?"right":"left";"start"===l&&(e[n]=t[n]),"center"===l&&(e[n]=t[n]+t.width/2,e.transform=r?"translateX(50%)":"translateX(-50%)"),"end"===l&&(e[n]=t[n]+t.width,e.transform="translateX(-100%)")}else e.height=p(t.height),"start"===l&&(e.top=t.top),"center"===l&&(e.top=t.top+t.height/2,e.transform="translateY(-50%)"),"end"===l&&(e.top=t.top+t.height,e.transform="translateY(-100%)");return $(),u.current=(0,d.er)(()=>{c&&e&&Object.keys(e).every(t=>{let n=e[t],a=c[t];return"number"==typeof n&&"number"==typeof a?Math.round(n)===Math.round(a):n===a})||s(e)}),$},[JSON.stringify(t),n,r,l,p]),{style:c}})({activeTabOffset:eX,horizontal:Q,indicator:B,rtl:M});(0,a.useEffect)(()=>{eM()},[A,ey,ek,b(eX),b(ep),Q]),(0,a.useEffect)(()=>{ej()},[M]);let eF=!!eG.length,eK=`${j}-nav-wrap`;return Q?M?(r=J>0,n=J!==ek):(n=J<0,r=J!==ey):(o=ee<0,i=ee!==ey),a.createElement(s.Ay,{onResize:ej},a.createElement("div",{ref:(0,d.xK)(t,X),role:"tablist","aria-orientation":Q?"horizontal":"vertical",className:(0,l.$)(`${j}-nav`,y,H?.header),style:{...W?.header,...k},onKeyDown:()=>{eE()}},a.createElement(g,{ref:q,position:"left",extra:C,prefixCls:j}),a.createElement(s.Ay,{onResize:ej},a.createElement("div",{className:(0,l.$)(eK,{[`${eK}-ping-left`]:n,[`${eK}-ping-right`]:r,[`${eK}-ping-top`]:o,[`${eK}-ping-bottom`]:i}),ref:K},a.createElement(s.Ay,{onResize:ej},a.createElement("div",{ref:V,className:`${j}-nav-list`,style:{transform:`translate(${J}px, ${ee}px)`,transition:ex?"none":void 0}},eH,a.createElement(h,{ref:Y,prefixCls:j,locale:L,editable:D,style:{...0===eH.length?void 0:eB,visibility:eF?"hidden":null}}),a.createElement("div",{className:(0,l.$)(`${j}-ink-bar`,H?.indicator,{[`${j}-ink-bar-animated`]:_.inkBar}),style:{...eq,...W?.indicator}}))))),a.createElement(x,E({},e,{removeAriaLabel:L?.removeAriaLabel,ref:U,prefixCls:j,tabs:eG,className:!eF&&eg,popupStyle:W?.popup,tabMoving:!!ex})),a.createElement(g,{ref:F,position:"right",extra:C,prefixCls:j})))}),M=({renderTabBar:e,...t})=>e?e(t,A):a.createElement(A,t);var C=n(67189);let D=a.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:o,id:i,active:d,tabKey:c,children:s}=e,u=a.Children.count(s)>0;return a.createElement("div",{id:i&&`${i}-panel-${c}`,role:"tabpanel",tabIndex:d&&u?0:-1,"aria-labelledby":i&&`${i}-tab-${c}`,"aria-hidden":!d,style:o,className:(0,l.$)(n,d&&`${n}-active`,r),ref:t},s)});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 a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}let P=e=>{let{id:t,activeKey:n,animated:r,tabPosition:o,destroyOnHidden:i,bodyStyle:d,bodyClassName:s,contentStyle:u,contentClassName:p}=e,{prefixCls:$,tabs:m}=a.useContext(c),b=r.tabPane,f=`${$}-body`,v=`${$}-content`;return a.createElement("div",{className:(0,l.$)(`${f}-holder`)},a.createElement("div",{className:(0,l.$)(f,`${f}-${o}`,{[`${f}-animated`]:b},s),style:d},m.map(e=>{let{key:o,forceRender:d,style:c,className:s,destroyOnHidden:$,...m}=e,f=o===n;return a.createElement(C.Ay,L({key:o,visible:f,forceRender:d,removeOnLeave:!!(i??$),leavedClassName:`${v}-hidden`},r.tabPaneMotion),({style:e,className:n},r)=>a.createElement(D,L({},m,{prefixCls:v,id:t,tabKey:o,animated:b,active:f,style:{...u,...c,...e},className:(0,l.$)(p,s,n),ref:r})))})))};function I(){return(I=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}let N=0,T=a.forwardRef((e,t)=>{let{id:n,prefixCls:r="rc-tabs",className:o,items:i,direction:s,activeKey:u,defaultActiveKey:p,editable:$,animated:m,tabPosition:b="top",tabBarGutter:f,tabBarStyle:v,tabBarExtraContent:h,locale:g,more:y,destroyOnHidden:k,renderTabBar:w,onChange:_,onTabClick:x,onTabScroll:S,getPopupContainer:E,popupClassName:R,indicator:z,classNames:A,styles:C,...D}=e,L=a.useMemo(()=>(i||[]).filter(e=>e&&"object"==typeof e&&"key"in e),[i]),T="rtl"===s,O=function(e={inkBar:!0,tabPane:!1}){let t;return(t=!1===e?{inkBar:!1,tabPane:!1}:!0===e?{inkBar:!0,tabPane:!1}:{inkBar:!0,..."object"==typeof e?e:{}}).tabPaneMotion&&void 0===t.tabPane&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}(m),[B,H]=(0,a.useState)(!1);(0,a.useEffect)(()=>{H((0,d.Fr)())},[]);let[W,j]=(0,d.PW)(p??L[0]?.key,u),[G,X]=(0,a.useState)(()=>L.findIndex(e=>e.key===W));(0,a.useEffect)(()=>{let e=L.findIndex(e=>e.key===W);-1===e&&(e=Math.max(0,Math.min(G,L.length-1)),j(L[e]?.key)),X(e)},[L.map(e=>e.key).join("_"),W,G]);let[q,F]=(0,d.PW)(null,n);(0,a.useEffect)(()=>{n||(F(`rc-tabs-${N}`),N+=1)},[]);let K={id:q,activeKey:W,animated:O,tabPosition:b,rtl:T,mobile:B},V={...K,editable:$,locale:g,more:y,tabBarGutter:f,onTabClick:function(e,t){x?.(e,t);let n=e!==W;j(e),n&&_?.(e)},onTabScroll:S,extra:h,style:v,getPopupContainer:E,popupClassName:(0,l.$)(R,A?.popup),indicator:z,styles:C,classNames:A},U=a.useMemo(()=>({tabs:L,prefixCls:r}),[L,r]);return a.createElement(c.Provider,{value:U},a.createElement("div",I({ref:t,id:n,className:(0,l.$)(r,`${r}-${b}`,{[`${r}-mobile`]:B,[`${r}-editable`]:$,[`${r}-rtl`]:T},o)},D),a.createElement(M,I({},V,{renderTabBar:w})),a.createElement(P,I({destroyOnHidden:k},K,{bodyStyle:C?.body,bodyClassName:A?.body,contentStyle:C?.content,contentClassName:A?.content,animated:O}))))});var O=n(92162),B=n(74567),H=n(632),W=n(27273),j=n(26047),G=n(84649);let X={motionAppear:!1,motionEnter:!0,motionLeave:!0};var q=n(15561),F=n(7961),K=n(86827),V=n(10540),U=n(28403);let Y=(0,V.OF)("Tabs",e=>{let t=(0,U.oX)(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${(0,q.zA)(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${(0,q.zA)(e.horizontalItemGutter)}`});return[(e=>{let{componentCls:t,cardPaddingSM:n,cardPaddingLG:a,cardHeightSM:r,cardHeightLG:o,horizontalItemPaddingSM:i,horizontalItemPaddingLG:l}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:l,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:r,minHeight:r}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${(0,q.zA)(e.borderRadius)} ${(0,q.zA)(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${(0,q.zA)(e.borderRadius)} ${(0,q.zA)(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,q.zA)(e.borderRadius)} ${(0,q.zA)(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,q.zA)(e.borderRadius)} 0 0 ${(0,q.zA)(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a},[`${t}-nav-add`]:{minWidth:o,minHeight:o}}}}}})(t),(e=>{let{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:a,cardGutter:r,calc:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[a]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:e.marginSM}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:e.marginXS},marginLeft:{_skip_check_:!0,value:o(e.marginXXS).mul(-1).equal()},[a]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-body-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-body-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:r},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}})(t),(e=>{let{componentCls:t,margin:n,colorBorderSecondary:a,horizontalMargin:r,verticalItemPadding:o,verticalItemMargin:i,motionDurationSlow:l,calc:d}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:r,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${(0,q.zA)(e.lineWidth)} ${e.lineType} ${a}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:["width","left","right"].map(e=>`${e} ${l}`).join(", ")}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
2
+ > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-body-holder, > div > ${t}-body-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:d(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:o,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:i},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:["height","top"].map(e=>`${e} ${l}`).join(", ")}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-body-holder, > div > ${t}-body-holder`]:{marginLeft:{_skip_check_:!0,value:(0,q.zA)(d(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${(0,q.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-body > ${t}-content`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-body-holder, > div > ${t}-body-holder`]:{order:0,marginRight:{_skip_check_:!0,value:d(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${(0,q.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-body > ${t}-content`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}})(t),(e=>{let{antCls:t,componentCls:n,itemHoverColor:a,dropdownEdgeChildVerticalPadding:r}=e;return{[`${n}-dropdown`]:{...(0,F.dF)(e),position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`&${t}-slide-down-enter${t}-slide-down-enter-active${n}-dropdown-placement-bottomLeft,
3
+ &${t}-slide-down-appear${t}-slide-down-appear-active${n}-dropdown-placement-bottomLeft,
4
+ &${t}-slide-down-enter${t}-slide-down-enter-active${n}-dropdown-placement-bottom,
5
+ &${t}-slide-down-appear${t}-slide-down-appear-active${n}-dropdown-placement-bottom,
6
+ &${t}-slide-down-enter${t}-slide-down-enter-active${n}-dropdown-placement-bottomRight,
7
+ &${t}-slide-down-appear${t}-slide-down-appear-active${n}-dropdown-placement-bottomRight`]:{animationName:K.ox},[`&${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft,
8
+ &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topLeft,
9
+ &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-top,
10
+ &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-top,
11
+ &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topRight,
12
+ &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topRight`]:{animationName:K.nP},[`&${t}-slide-down-leave${t}-slide-down-leave-active${n}-dropdown-placement-bottomLeft,
13
+ &${t}-slide-down-leave${t}-slide-down-leave-active${n}-dropdown-placement-bottom,
14
+ &${t}-slide-down-leave${t}-slide-down-leave-active${n}-dropdown-placement-bottomRight`]:{animationName:K.vR},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft,
15
+ &${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-top,
16
+ &${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topRight`]:{animationName:K.YU},[`${n}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${(0,q.zA)(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":{...F.L9,display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${(0,q.zA)(e.paddingXXS)} ${(0,q.zA)(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:a}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}}}}}})(t),(e=>{let{componentCls:t,tabsCardPadding:n,cardBg:a,cardGutter:r,colorBorderSecondary:o,itemSelectedColor:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:a,border:`${(0,q.zA)(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:i,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:(0,F.jk)(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:"none"},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:(0,q.zA)(r)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${(0,q.zA)(e.borderRadiusLG)} ${(0,q.zA)(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${(0,q.zA)(e.borderRadiusLG)} ${(0,q.zA)(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:(0,q.zA)(r)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,q.zA)(e.borderRadiusLG)} 0 0 ${(0,q.zA)(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,q.zA)(e.borderRadiusLG)} ${(0,q.zA)(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}})(t),(e=>{let{componentCls:t,tabsCardPadding:n,cardHeight:a,cardGutter:r,itemHoverColor:o,itemActiveColor:i,colorBorderSecondary:l}=e;return{[t]:{...(0,F.dF)(e),display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:{minWidth:a,minHeight:a,marginLeft:{_skip_check_:!0,value:r},background:"transparent",border:`${(0,q.zA)(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${(0,q.zA)(e.borderRadiusLG)} ${(0,q.zA)(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:i},...(0,F.K8)(e,-3)}},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"},...(e=>{let{componentCls:t,itemActiveColor:n,itemHoverColor:a,iconCls:r,tabsHorizontalItemMargin:o,horizontalItemPadding:i,itemSelectedColor:l,itemColor:d}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:i,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:d,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading},...(0,F.K8)(e)},"&:hover":{color:a},[`&${c}-active ${c}-btn`]:{color:l},[`&${c}-focus ${c}-btn:focus-visible`]:(0,F.jk)(e),[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${r}`]:{margin:0,verticalAlign:"middle"},[`${r}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:o}}}})(e),[`${t}-body`]:{position:"relative",width:"100%"},[`${t}-body-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-content`]:{...(0,F.K8)(e),"&-hidden":{display:"none"}}},[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}})(t),(e=>{let{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[(0,K._j)(e,"slide-up"),(0,K._j)(e,"slide-down")]]})(t)]},e=>{let{cardHeight:t,cardHeightSM:n,cardHeightLG:a,controlHeight:r,controlHeightLG:o}=e,i=t||o,l=n||r,d=a||o+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:i,cardHeightSM:l,cardHeightLG:d,cardPadding:`${(i-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(l-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(d-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}),Q=a.forwardRef((e,t)=>{let n,{type:c,className:s,rootClassName:u,size:p,onEdit:$,hideAdd:m,centered:b,addIcon:f,removeIcon:v,moreIcon:h,more:g,popupClassName:y,children:k,items:w,animated:_,style:x,indicatorSize:S,indicator:E,classNames:R,styles:z,destroyInactiveTabPane:A,destroyOnHidden:M,tabPlacement:C,tabPosition:D,...L}=e,{prefixCls:P}=L,{getPrefixCls:I,direction:N,getPopupContainer:q,className:F,style:K,classNames:V,styles:U}=(0,B.TP)("tabs"),{tabs:Q}=a.useContext(B.QO),J=I("tabs",P),Z=(0,H.A)(J),[ee,et]=Y(J,Z),en=a.useRef(null);a.useImperativeHandle(t,()=>({nativeElement:en.current})),"editable-card"===c&&(n={onEdit:(e,{key:t,event:n})=>{$?.("add"===e?n:t,e)},removeIcon:v??Q?.removeIcon??a.createElement(r.A,null),addIcon:(f??Q?.addIcon)||a.createElement(i.A,null),showAdd:!0!==m});let ea=I(),er=(0,W.A)(p),eo=function(e,t){return e?e.map(e=>({...e,destroyOnHidden:e.destroyOnHidden??e.destroyInactiveTabPane})):(0,d.$r)(t).map(e=>{if(a.isValidElement(e)){let{key:t,props:n}=e,{tab:a,...r}=n||{};return{key:String(t),...r,label:a}}return null}).filter(e=>e)}(w,k),ei=function(e,t={inkBar:!0,tabPane:!1}){let n;return(n=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!0}:{inkBar:!0,...(0,j.Qd)(t)?t:{}}).tabPane&&(n.tabPaneMotion={...X,motionName:(0,G.b)(e,"switch")}),n}(J,_),el={align:E?.align??Q?.indicator?.align,size:E?.size??S??Q?.indicator?.size??Q?.indicatorSize},ed=a.useMemo(()=>{let e=C??D??void 0,t="rtl"===N;switch(e){case"start":return t?"right":"left";case"end":return t?"left":"right";default:return e}},[C,D,N]),ec={...e,size:er,tabPlacement:ed,items:eo},es=(0,O.XT)(K),eu=(0,O.XT)(x),[ep,e$]=(0,O.AV)([V,R],[U,es,z,eu],{props:ec},{popup:{_default:"root"}});return a.createElement(T,{ref:en,direction:N,getPopupContainer:q,...L,items:eo,className:(0,l.$)({[`${J}-large`]:"large"===er,[`${J}-small`]:"small"===er,[`${J}-card`]:["card","editable-card"].includes(c),[`${J}-editable-card`]:"editable-card"===c,[`${J}-centered`]:b},F,s,u,ep.root,ee,et,Z),classNames:{...ep,popup:(0,l.$)(y,ee,et,Z,ep.popup?.root)},styles:e$,style:e$.root,editable:n,more:{icon:Q?.more?.icon??Q?.moreIcon??h??a.createElement(o.A,null),transitionName:`${ea}-slide-up`,...g},prefixCls:J,animated:ei,indicator:el,destroyOnHidden:M??A,tabPosition:ed})});Q.TabPane=()=>null;let J=Q},71242:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[700],{42700:(e,t,n)=>{let i;n.d(t,{A:()=>z});var o=n(97109),a=n(3638),r=n(92162),l=n(74567),s=n(27273),c=n(52690),d=n(42644);let m=80*Math.PI,p=e=>{let{dotClassName:t,style:n,hasCircleCls:i}=e;return o.createElement("circle",{className:(0,a.$)(`${t}-circle`,{[`${t}-circle-bg`]:i}),r:40,cx:50,cy:50,strokeWidth:20,style:n})},u=({percent:e,prefixCls:t})=>{let n=`${t}-dot`,i=`${n}-holder`,r=`${i}-hidden`,[l,s]=o.useState(!1);(0,d.Nf)(()=>{0!==e&&s(!0)},[0!==e]);let c=Math.max(Math.min(e,100),0);if(!l)return null;let u={strokeDashoffset:`${m/4}`,strokeDasharray:`${m*c/100} ${m*(100-c)/100}`};return o.createElement("span",{className:(0,a.$)(i,`${n}-progress`,{[r]:c<=0})},o.createElement("svg",{viewBox:"0 0 100 100",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c},o.createElement(p,{dotClassName:n,hasCircleCls:!0}),o.createElement(p,{dotClassName:n,style:u})))};function f(e){let{prefixCls:t,percent:n=0,className:i,style:r}=e,l=`${t}-dot`,s=`${l}-holder`,c=`${s}-hidden`;return o.createElement(o.Fragment,null,o.createElement("span",{className:(0,a.$)(s,i,n>0&&c),style:r},o.createElement("span",{className:(0,a.$)(l,`${t}-dot-spin`)},[1,2,3,4].map(e=>o.createElement("i",{className:`${t}-dot-item`,key:e})))),o.createElement(u,{prefixCls:t,percent:n}))}function h(e){let{prefixCls:t,indicator:n,percent:i,className:r,style:l}=e,s=`${t}-dot`;return n&&o.isValidElement(n)?(0,c.Ob)(n,e=>({className:(0,a.$)(e.className,s,r),style:{...e.style,...l},percent:i})):o.createElement(f,{prefixCls:t,percent:i,className:r,style:l})}var $=n(15561),g=n(7961),y=n(10540),v=n(28403);let E=new $.Mo("antSpinMove",{to:{opacity:1}}),N=new $.Mo("antRotate",{to:{transform:"rotate(405deg)"}}),S=(0,y.OF)("Spin",e=>{let t=(0,v.oX)(e,{spinDotDefault:e.colorTextDescription});return[(e=>{let{componentCls:t}=e,n=`${t}-section`;return{[t]:{...(0,g.dF)(e),position:"relative","&-rtl":{direction:"rtl"},[`&${n}, ${n}`]:{display:"flex",alignItems:"center",flexDirection:"column",gap:e.paddingSM,color:e.colorPrimary},[`&${n}`]:{display:"inline-flex"},[n]:{position:"absolute",top:"50%",left:{_skip_check_:!0,value:"50%"},transform:"translate(-50%, -50%)",zIndex:1},[`${t}-description`]:{fontSize:e.fontSize,lineHeight:1},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},"&-spinning":{[`${t}-description`]:{textShadow:`0 0px 5px ${e.colorBgContainer}`},[`${t}-container`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-fullscreen":{position:"fixed",inset:0,backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,opacity:0,pointerEvents:"none",transition:`all ${e.motionDurationMid}`,[`&${t}-spinning`]:{opacity:1,pointerEvents:"auto"},[n]:{color:e.colorWhite,[`${t}-description`]:{color:e.colorTextLightSolid}}}}}})(t),(e=>{let{componentCls:t,antCls:n,motionDurationSlow:i}=e,[o,a]=(0,y.PN)(n,"spin");return{[t]:{[o("dot-holder-size")]:e.dotSize,[o("dot-item-size")]:`calc((${a("dot-holder-size")} - ${e.marginXXS} / 2) / 2)`,[`${t}-dot`]:{"&-holder":{width:"1em",height:"1em",fontSize:a("dot-holder-size"),display:"inline-block",transition:["transform","opacity"].map(e=>`${e} ${i} ease`).join(", "),transformOrigin:"50% 50%",lineHeight:1,"&-hidden":{transform:"scale(0.3)",opacity:0}},position:"relative",display:"inline-block",fontSize:a("dot-holder-size"),width:"1em",height:"1em","&-spin":{transform:"rotate(45deg)",animationName:N,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-item":{position:"absolute",display:"block",width:a("dot-item-size"),height:a("dot-item-size"),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:E,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-progress":{position:"absolute",left:"50%",top:0,transform:"translateX(-50%)"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(e=>`${e} ${i} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}}}}})(t),(e=>{let{componentCls:t}=e,[n]=(0,y.PN)(e.antCls,"spin");return{[t]:{"&-sm":{[n("dot-holder-size")]:e.dotSizeSM},"&-lg":{[n("dot-holder-size")]:e.dotSizeLG}}}})(t)]},e=>{let{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:.35*t,dotSizeLG:n}}),b=[[30,.05],[70,.03],[96,.01]],k=e=>{let{prefixCls:t,spinning:n=!0,delay:c=0,className:d,rootClassName:m,size:p,tip:u,description:f,wrapperClassName:$,style:g,children:y,fullscreen:v=!1,indicator:E,percent:N,classNames:k,styles:z,...x}=e,{getPrefixCls:D,direction:w,indicator:C,className:I,style:M,classNames:T,styles:F}=(0,l.TP)("spin"),_=D("spin",t),[O,P]=S(_),[B,L]=o.useState(()=>n&&!function(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}(n,c)),A=function(e,t){let[n,i]=o.useState(0),a=o.useRef(null),r="auto"===t;return o.useEffect(()=>(r&&e&&(i(0),a.current=setInterval(()=>{i(e=>{let t=100-e;for(let n=0;n<b.length;n+=1){let[i,o]=b[n];if(e<=i)return e+t*o}return e})},200)),()=>{a.current&&(clearInterval(a.current),a.current=null)}),[r,e]),r?n:t}(B,N);o.useEffect(()=>{if(n){let e=function(e,t,n){var i=void 0;return function(e,t,n){var i,o=n||{},a=o.noTrailing,r=void 0!==a&&a,l=o.noLeading,s=void 0!==l&&l,c=o.debounceMode,d=void 0===c?void 0:c,m=!1,p=0;function u(){i&&clearTimeout(i)}function f(){for(var n=arguments.length,o=Array(n),a=0;a<n;a++)o[a]=arguments[a];var l=this,c=Date.now()-p;function f(){p=Date.now(),t.apply(l,o)}function h(){i=void 0}!m&&(s||!d||i||f(),u(),void 0===d&&c>e?s?(p=Date.now(),r||(i=setTimeout(d?h:f,e))):f():!0!==r&&(i=setTimeout(d?h:f,void 0===d?e-c:e)))}return f.cancel=function(e){var t=(e||{}).upcomingOnly;u(),m=!(void 0!==t&&t)},f}(e,t,{debounceMode:!1!==(void 0!==i&&i)})}(c,()=>{L(!0)});return e(),()=>{e?.cancel?.()}}L(!1)},[c,n]);let X=(0,s.A)(e=>p??e),H=f??u,R={...e,size:X,spinning:B,tip:H,description:H,fullscreen:v,children:y,percent:A},[j,G]=(0,r.AV)([T,k],[F,z],{props:R}),V=E??C??i,W=void 0!==y,q=W||v,J=o.createElement(o.Fragment,null,o.createElement(h,{className:(0,a.$)(j.indicator),style:G.indicator,prefixCls:_,indicator:V,percent:A}),H&&o.createElement("div",{className:(0,a.$)(`${_}-description`,j.tip,j.description),style:{...G.tip,...G.description}},H));return o.createElement("div",{className:(0,a.$)(_,{[`${_}-sm`]:"small"===X,[`${_}-lg`]:"large"===X,[`${_}-spinning`]:B,[`${_}-rtl`]:"rtl"===w,[`${_}-fullscreen`]:v},m,j.root,v&&j.mask,q?$:[`${_}-section`,j.section],I,d,O,P),style:{...G.root,...!q?G.section:{},...v?G.mask:{},...M,...g},"aria-live":"polite","aria-busy":B,...x},B&&(q?o.createElement("div",{className:(0,a.$)(`${_}-section`,j.section),style:G.section},J):J),W&&o.createElement("div",{className:(0,a.$)(`${_}-container`,j.container),style:G.container},y))};k.setDefaultIndicator=e=>{i=e};let z=k}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[709],{1676:(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 372zm-88-532h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8zm224 0h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8z"}}]},name:"pause-circle",theme:"outlined"}},6710:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",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"}},32941:(e,t,r)=>{r.d(t,{Ay:()=>z});var a=r(97109),n=r(59188),l=r(4216),c=r(97137),o=r(40992),i=r(88483);function s(){return(s=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 d=a.forwardRef((e,t)=>a.createElement(i.A,s({},e,{ref:t,icon:o.A})));var h=r(42644),m=r(3638),p=r(92162),E=r(26047),k=r(74567),f=r(15561),u=r(10540),F=r(28403);let M=(0,u.OF)("Result",e=>{let t=e.colorInfo,r=e.colorError,a=e.colorSuccess,n=e.colorWarning;return(e=>[(e=>{let{componentCls:t,lineHeightHeading3:r,iconCls:a,padding:n,paddingXL:l,paddingXS:c,paddingLG:o,marginXS:i,lineHeight:s}=e;return{[t]:{padding:`${(0,f.zA)(e.calc(o).mul(2).equal())} ${(0,f.zA)(l)}`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:o,textAlign:"center",[`& > ${a}`]:{fontSize:e.iconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:r,marginBlock:i,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.subtitleFontSize,lineHeight:s,textAlign:"center"},[`${t} ${t}-body`]:{marginTop:o,padding:`${(0,f.zA)(o)} ${(0,f.zA)(e.calc(n).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:c,"&:last-child":{marginInlineEnd:0}}}}})(e),(e=>{let{componentCls:t}=e;return{[`${t}-success ${t}-icon`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon`]:{color:e.resultWarningIconColor}}})(e)])((0,F.oX)(e,{resultInfoIconColor:t,resultErrorIconColor:r,resultSuccessIconColor:a,resultWarningIconColor:n,imageWidth:250,imageHeight:295}))},e=>{let{fontSizeHeading3:t,fontSize:r,paddingLG:a}=e;return{titleFontSize:t,subtitleFontSize:r,iconFontSize:(0,E.Et)(t)?3*t:`calc(${t} * 3)`,extraMargin:`${a}px 0 0 0`}}),v={success:n.A,error:l.A,info:c.A,warning:d},g={404:()=>a.createElement("svg",{width:"252",height:"294"},a.createElement("title",null,"No Found"),a.createElement("g",{fill:"none",fillRule:"evenodd"},a.createElement("circle",{cx:"126.75",cy:"128.1",r:"126",fill:"#E4EBF7"}),a.createElement("circle",{cx:"31.55",cy:"130.8",r:"8.3",fill:"#FFF"}),a.createElement("path",{stroke:"#FFF",d:"m37 134.3 10.5 6m.9 6.2-12.7 10.8",strokeWidth:"2"}),a.createElement("path",{fill:"#FFF",d:"M39.9 159.4a5.7 5.7 0 1 1-11.3-1.2 5.7 5.7 0 0 1 11.3 1.2m17.7-16.2a5.7 5.7 0 1 1-11.4-1.1 5.7 5.7 0 0 1 11.4 1.1M99 27h29.8a4.6 4.6 0 1 0 0-9.2H99a4.6 4.6 0 1 0 0 9.2m11.4 18.3h29.8a4.6 4.6 0 0 0 0-9.2h-29.8a4.6 4.6 0 1 0 0 9.2"}),a.createElement("path",{fill:"#FFF",d:"M112.8 26.9h15.8a4.6 4.6 0 1 0 0 9.1h-15.8a4.6 4.6 0 0 0 0-9.1m71.7 108.8a10 10 0 1 1-19.8-2 10 10 0 0 1 19.8 2"}),a.createElement("path",{stroke:"#FFF",d:"m179.3 141.8 12.6 7.1m1.1 7.6-15.2 13",strokeWidth:"2"}),a.createElement("path",{fill:"#FFF",d:"M184.7 170a6.8 6.8 0 1 1-13.6-1.3 6.8 6.8 0 0 1 13.6 1.4m18.6-16.8a6.9 6.9 0 1 1-13.7-1.4 6.9 6.9 0 0 1 13.7 1.4"}),a.createElement("path",{stroke:"#FFF",d:"M152 192.3a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.4 0zm73.3-76.2a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0zm-9 35a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.5 0zM177 107.6a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm18.4-15.4a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0zm6.8 88.5a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0z",strokeWidth:"2"}),a.createElement("path",{stroke:"#FFF",d:"m214.4 153.3-2 20.2-10.8 6m-28-4.7-6.3 9.8H156l-4.5 6.5m23.5-66v-15.7m46 7.8-13 8-15.2-8V94.4",strokeWidth:"2"}),a.createElement("path",{fill:"#FFF",d:"M166.6 66h-4a4.8 4.8 0 0 1-4.7-4.8 4.8 4.8 0 0 1 4.7-4.7h4a4.8 4.8 0 0 1 4.7 4.7 4.8 4.8 0 0 1-4.7 4.7"}),a.createElement("circle",{cx:"204.3",cy:"30",r:"29.5",fill:"#1677ff"}),a.createElement("path",{fill:"#FFF",d:"M206 38.4c.5.5.7 1.1.7 2s-.2 1.4-.7 1.9a3 3 0 0 1-2 .7c-.8 0-1.5-.3-2-.8s-.8-1.1-.8-1.9.3-1.4.8-2c.5-.4 1.2-.7 2-.7.7 0 1.4.3 2 .8m4.2-19.5c1.5 1.3 2.2 3 2.2 5.2a7.2 7.2 0 0 1-1.5 4.5l-3 2.7a5 5 0 0 0-1.3 1.7 5.2 5.2 0 0 0-.6 2.4v.5h-4v-.5c0-1.4.1-2.5.6-3.5s1.9-2.5 4.2-4.5l.4-.5a4 4 0 0 0 1-2.6c0-1.2-.4-2-1-2.8-.7-.6-1.6-1-2.9-1-1.5 0-2.6.5-3.3 1.5-.4.5-.6 1-.8 1.9a2 2 0 0 1-2 1.6 2 2 0 0 1-2-2.4c.4-1.6 1-2.8 2.1-3.8a8.5 8.5 0 0 1 6.3-2.3c2.3 0 4.2.6 5.6 2"}),a.createElement("path",{fill:"#FFB594",d:"M52 76.1s21.8 5.4 27.3 16c5.6 10.7-6.3 9.2-15.7 5C52.8 92 39 85 52 76"}),a.createElement("path",{fill:"#FFC6A0",d:"m90.5 67.5-.5 2.9c-.7.5-4.7-2.7-4.7-2.7l-1.7.8-1.3-5.7s6.8-4.6 9-5c2.4-.5 9.8 1 10.6 2.3 0 0 1.3.4-2.2.6-3.6.3-5 .5-6.8 3.2l-2.4 3.6"}),a.createElement("path",{fill:"#FFF",d:"M128 111.4a36.7 36.7 0 0 0-8.9-15.5c-3.5-3-9.3-2.2-11.3-4.2-1.3-1.2-3.2-1.2-3.2-1.2L87.7 87c-2.3-.4-2.1-.7-6-1.4-1.6-1.9-3-1.1-3-1.1l-7-1.4c-1-1.5-2.5-1-2.5-1l-2.4-.9C65 91.2 59 95 59 95c1.8 1.1 15.7 8.3 15.7 8.3l5.1 37.1s-3.3 5.7 1.4 9.1c0 0 19.9-3.7 34.9-.3 0 0 3-2.6 1-8.8.5-3 1.4-8.3 1.7-11.6.4.7 2 1.9 3.1 3.4 0 0 9.4-7.3 11-14a17 17 0 0 1-2.2-2.4c-.5-.8-.3-2-.7-2.8-.7-1-1.8-1.3-2-1.6"}),a.createElement("path",{fill:"#CBD1D1",d:"M101 290s4.4 2 7.4 1c2.9-1 4.6.7 7.1 1.2 2.6.5 6.9 1.1 11.7-1.3 0-5.5-6.9-4-12-6.7-2.5-1.4-3.7-4.7-3.5-8.8h-9.5s-1.2 10.6-1 14.6"}),a.createElement("path",{fill:"#2B0849",d:"M101 289.8s2.5 1.3 6.8.7c3-.5 3.7.5 7.4 1 3.8.6 10.8 0 11.9-.9.4 1.1-.4 2-.4 2s-1.5.7-4.8.9c-2 .1-5.8.3-7.6-.5-1.8-1.4-5.2-1.9-5.7-.2-4 1-7.4-.3-7.4-.3l-.1-2.7z"}),a.createElement("path",{fill:"#A4AABA",d:"M108.3 276h3.1s0 6.7 4.6 8.6c-4.7.6-8.6-2.3-7.7-8.6"}),a.createElement("path",{fill:"#CBD1D1",d:"M57.5 272.4s-2 7.4-4.4 12.3c-1.8 3.7-4.3 7.5 5.4 7.5 6.7 0 9-.5 7.4-6.6-1.5-6.1.3-13.2.3-13.2h-8.7z"}),a.createElement("path",{fill:"#2B0849",d:"M51.5 289.8s2 1.2 6.6 1.2c6 0 8.3-1.7 8.3-1.7s.6 1.1-.7 2.2c-1 .8-3.6 1.6-7.4 1.5-4.1 0-5.8-.5-6.7-1.1-.8-.6-.7-1.6-.1-2.1"}),a.createElement("path",{fill:"#A4AABA",d:"M58.4 274.3s0 1.5-.3 3c-.3 1.4-1 3-1.1 4 0 1.2 4.5 1.7 5.1.1.6-1.5 1.3-6.4 2-7.2.6-.9-5-2.2-5.7.1"}),a.createElement("path",{fill:"#7BB2F9",d:"m99.7 278.5 13.3.1s1.3-54.5 1.9-64.4c.5-9.9 3.8-43.4 1-63.1l-12.6-.7-22.8.8-1.2 10c0 .5-.7.8-.7 1.4-.1.5.4 1.3.3 2-2.4 14-6.4 33-8.8 46.6 0 .7-1.2 1-1.4 2.7 0 .3.2 1.5 0 1.8-6.8 18.7-10.9 47.8-14.2 61.9h14.6s2.2-8.6 4-17c2.9-12.9 23.2-85 23.2-85l3-.5 1 46.3s-.2 1.2.4 2c.5.8-.6 1.1-.4 2.3l.4 1.8-1 11.8c-.4 4.8 0 39.2 0 39.2"}),a.createElement("path",{stroke:"#648BD8",d:"M76 221.6c1.2.1 4.1-2 7-5m23.4 8.5s2.7-1 6-3.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),a.createElement("path",{stroke:"#648BD8",d:"M107.3 222.1s2.7-1.1 6-3.9",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{stroke:"#648BD8",d:"M74.7 224.8s2.7-.6 6.5-3.4m4.8-69.8c-.2 3.1.3 8.6-4.3 9.2m22-11s0 14-1.4 15.1a15 15 0 0 1-3 2m.5-16.5s0 13-1.2 24.4m-5 1.1s7.3-1.7 9.5-1.7M74.3 206a212 212 0 0 1-1 4.5s-1.4 1.9-1 3.8c.5 2-1 2-5 15.4A353 353 0 0 0 61 257l-.2 1.2m14.9-60.5a321 321 0 0 1-.9 4.8m7.8-50.4-1.2 10.5s-1.1.1-.5 2.2c.1 1.4-2.7 15.8-5.2 30.5m-19.6 79h13.3",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),a.createElement("path",{fill:"#192064",d:"M116.2 148.2s-17-3-35.9.2c.2 2.5 0 4.2 0 4.2s14.7-2.8 35.7-.3c.3-2.4.2-4 .2-4"}),a.createElement("path",{fill:"#FFF",d:"M106.3 151.2v-5a.8.8 0 0 0-.8-.8h-7.8a.8.8 0 0 0-.8.8v5a.8.8 0 0 0 .8.8h7.8a.8.8 0 0 0 .8-.8"}),a.createElement("path",{fill:"#192064",d:"M105.2 150.2v-3a.6.6 0 0 0-.6-.7 94.3 94.3 0 0 0-5.9 0 .7.7 0 0 0-.6.6v3.1a.6.6 0 0 0 .6.7 121.1 121.1 0 0 1 5.8 0c.4 0 .7-.3.7-.7"}),a.createElement("path",{stroke:"#648BD8",d:"M100.3 275.4h12.3m-11.2-4.9.1 6.5m0-12.5a915.8 915.8 0 0 0 0 4.4m-.5-94 .9 44.7s.7 1.6-.2 2.7c-1 1.1 2.4.7.9 2.2-1.6 1.6.9 1.2 0 3.4-.6 1.5-1 21.1-1.1 35.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),a.createElement("path",{fill:"#FFC6A0",d:"M46.9 83.4s-.5 6 7.2 5.6c11.2-.7 9.2-9.4 31.5-21.7-.7-2.7-2.4-4.7-2.4-4.7s-11 3-22.6 8c-6.8 3-13.4 6.4-13.7 12.8m57.6 7.7.9-5.4-8.9-11.4-5 5.3-1.8 7.9a.3.3 0 0 0 .1.3c1 .8 6.5 5 14.4 3.5a.3.3 0 0 0 .3-.2"}),a.createElement("path",{fill:"#FFC6A0",d:"M94 79.4s-4.6-2.9-2.5-6.9c1.6-3 4.5 1.2 4.5 1.2s.5-3.7 3.1-3.7c.6-1 1.6-4.1 1.6-4.1l13.5 3c0 5.3-2.3 19.5-7.8 20-8.9.6-12.5-9.5-12.5-9.5"}),a.createElement("path",{fill:"#520038",d:"M113.9 73.4c2.6-2 3.4-9.7 3.4-9.7s-2.4-.5-6.6-2c-4.7-2.1-12.8-4.8-17.5 1-9.6 3.2-2 19.8-2 19.8l2.7-3s-4-3.3-2-6.3c2-3.5 3.8 1 3.8 1s.7-2.3 3.6-3.3c.4-.7 1-2.6 1.4-3.8a1 1 0 0 1 1.3-.7l11.4 2.6c.5.2.8.7.8 1.2l-.3 3.2z"}),a.createElement("path",{fill:"#552950",d:"M105 76c-.1.7-.6 1.1-1 1-.6 0-.9-.6-.8-1.2.1-.6.6-1 1-1 .6 0 .9.7.8 1.3m7.1 1.6c0 .6-.5 1-1 1-.5-.1-.8-.7-.7-1.3 0-.6.5-1 1-1 .5.1.8.7.7 1.3"}),a.createElement("path",{stroke:"#DB836E",d:"m110.1 74.8-.9 1.7-.3 4.3h-2.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),a.createElement("path",{stroke:"#5C2552",d:"M110.8 74.5s1.8-.7 2.6.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),a.createElement("path",{stroke:"#DB836E",d:"M92.4 74.3s.5-1.1 1.1-.7c.6.4 1.3 1.4.6 2-.8.5.1 1.6.1 1.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),a.createElement("path",{stroke:"#5C2552",d:"M103.3 73s1.8 1 4.1.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),a.createElement("path",{stroke:"#DB836E",d:"M103.7 81.8s2.2 1.2 4.4 1.2m-3.5 1.3s1 .4 1.6.3m-11.5-3.4s2.3 7.4 10.4 7.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),a.createElement("path",{stroke:"#E4EBF7",d:"M81.5 89.4s.4 5.6-5 12.8M69 82.7s-.7 9.2-8.2 14.2m68.6 26s-5.3 7.4-9.4 10.7m-.7-26.3s.5 4.4-2.1 32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),a.createElement("path",{fill:"#F2D7AD",d:"M150 151.2h-49.8a1 1 0 0 1-1-1v-31.7c0-.5.4-1 1-1H150c.6 0 1 .5 1 1v31.7a1 1 0 0 1-1 1"}),a.createElement("path",{fill:"#F4D19D",d:"M150.3 151.2h-19.9v-33.7h20.8v32.8a1 1 0 0 1-1 1"}),a.createElement("path",{fill:"#F2D7AD",d:"M123.6 127.9H92.9a.5.5 0 0 1-.4-.8l6.4-9.1c.2-.3.5-.5.8-.5h31.1l-7.2 10.4z"}),a.createElement("path",{fill:"#CC9B6E",d:"M123.7 128.4H99.2v-.5h24.2l7.2-10.2.4.3z"}),a.createElement("path",{fill:"#F4D19D",d:"M158.3 127.9h-18.7a2 2 0 0 1-1.6-.8l-7.2-9.6h20c.5 0 1 .3 1.2.6l6.7 9a.5.5 0 0 1-.4.8"}),a.createElement("path",{fill:"#CC9B6E",d:"M157.8 128.5h-19.3l-7.9-10.5.4-.3 7.7 10.3h19.1zm-27.2 22.2v-8.2h.4v8.2zm-.1-10.9v-21.4h.4l.1 21.4zm-18.6 1.1-.5-.1 1.5-5.2.5.2zm-3.5.2-2.6-3 2.6-3.4.4.3-2.4 3.1 2.4 2.6zm8.2 0-.4-.4 2.4-2.6-2.4-3 .4-.4 2.7 3.4z"}),a.createElement("path",{fill:"#FFC6A0",d:"m154.3 131.9-3.1-2v3.5l-1 .1a85 85 0 0 1-4.8.3c-1.9 0-2.7 2.2 2.2 2.6l-2.6-.6s-2.2 1.3.5 2.3c0 0-1.6 1.2.6 2.6-.6 3.5 5.2 4 7 3.6a6.1 6.1 0 0 0 4.6-5.2 8 8 0 0 0-3.4-7.2"}),a.createElement("path",{stroke:"#DB836E",d:"M153.7 133.6s-6.5.4-8.4.3c-1.8 0-1.9 2.2 2.4 2.3 3.7.2 5.4 0 5.4 0",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),a.createElement("path",{stroke:"#DB836E",d:"M145.2 135.9c-1.9 1.3.5 2.3.5 2.3s3.5 1 6.8.6m-.6 2.9s-6.3.1-6.7-2.1c-.3-1.4.4-1.4.4-1.4m.5 2.7s-1 3.1 5.5 3.5m-.4-14.5v3.5M52.8 89.3a18 18 0 0 0 13.6-7.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),a.createElement("path",{fill:"#5BA02E",d:"M168.6 248.3a6.6 6.6 0 0 1-6.7-6.6v-66.5a6.6 6.6 0 1 1 13.3 0v66.5a6.6 6.6 0 0 1-6.6 6.6"}),a.createElement("path",{fill:"#92C110",d:"M176.5 247.7a6.6 6.6 0 0 1-6.6-6.7v-33.2a6.6 6.6 0 1 1 13.3 0V241a6.6 6.6 0 0 1-6.7 6.7"}),a.createElement("path",{fill:"#F2D7AD",d:"M186.4 293.6H159a3.2 3.2 0 0 1-3.2-3.2v-46.1a3.2 3.2 0 0 1 3.2-3.2h27.5a3.2 3.2 0 0 1 3.2 3.2v46.1a3.2 3.2 0 0 1-3.2 3.2"}),a.createElement("path",{stroke:"#E4EBF7",d:"M89 89.5s7.8 5.4 16.6 2.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}))),500:()=>a.createElement("svg",{width:"254",height:"294"},a.createElement("title",null,"Server Error"),a.createElement("g",{fill:"none",fillRule:"evenodd"},a.createElement("path",{fill:"#E4EBF7",d:"M0 128.1v-2C0 56.5 56.3.2 125.7.2h2.1C197.2.3 253.5 56.6 253.5 126v2.1c0 69.5-56.3 125.7-125.7 125.7h-2.1A125.7 125.7 0 0 1 0 128.1"}),a.createElement("path",{fill:"#FFF",d:"M40 132.1a8.3 8.3 0 1 1-16.6-1.7 8.3 8.3 0 0 1 16.6 1.7"}),a.createElement("path",{stroke:"#FFF",d:"m37.2 135.6 10.5 6m1 6.3-12.8 10.8",strokeWidth:"2"}),a.createElement("path",{fill:"#FFF",d:"M40.1 160.8a5.7 5.7 0 1 1-11.3-1.1 5.7 5.7 0 0 1 11.3 1.1M58 144.6a5.7 5.7 0 1 1-11.4-1.2 5.7 5.7 0 0 1 11.4 1.2M99.7 27.4h30a4.6 4.6 0 1 0 0-9.2h-30a4.6 4.6 0 0 0 0 9.2M111 46h30a4.6 4.6 0 1 0 0-9.3h-30a4.6 4.6 0 1 0 0 9.3m2.5-18.6h16a4.6 4.6 0 1 0 0 9.3h-16a4.6 4.6 0 0 0 0-9.3m36.7 42.7h-4a4.8 4.8 0 0 1-4.8-4.8 4.8 4.8 0 0 1 4.8-4.8h4a4.8 4.8 0 0 1 4.7 4.8 4.8 4.8 0 0 1-4.7 4.8"}),a.createElement("circle",{cx:"201.35",cy:"30.2",r:"29.7",fill:"#FF603B"}),a.createElement("path",{fill:"#FFF",d:"m203.6 19.4-.7 15a1.5 1.5 0 0 1-3 0l-.7-15a2.2 2.2 0 1 1 4.4 0m-.3 19.4c.5.5.8 1.1.8 1.9s-.3 1.4-.8 1.9a3 3 0 0 1-2 .7 2.5 2.5 0 0 1-1.8-.7c-.6-.6-.8-1.2-.8-2 0-.7.2-1.3.8-1.8.5-.5 1.1-.7 1.8-.7.8 0 1.5.2 2 .7"}),a.createElement("path",{fill:"#FFB594",d:"M119.3 133.3c4.4-.6 3.6-1.2 4-4.8.8-5.2-3-17-8.2-25.1-1-10.7-12.6-11.3-12.6-11.3s4.3 5 4.2 16.2c1.4 5.3.8 14.5.8 14.5s5.3 11.4 11.8 10.5"}),a.createElement("path",{fill:"#FFF",d:"M101 91.6s1.4-.6 3.2.6c8 1.4 10.3 6.7 11.3 11.4 1.8 1.2 1.8 2.3 1.8 3.5l1.5 3s-7.2 1.7-11 6.7c-1.3-6.4-6.9-25.2-6.9-25.2"}),a.createElement("path",{fill:"#FFB594",d:"m94 90.5 1-5.8-9.2-11.9-5.2 5.6-2.6 9.9s8.4 5 16 2.2"}),a.createElement("path",{fill:"#FFC6A0",d:"M83 78.2s-4.6-2.9-2.5-6.9c1.6-3 4.5 1.2 4.5 1.2s.5-3.7 3.2-3.7c.5-1 1.5-4.2 1.5-4.2l13.6 3.2c0 5.2-2.3 19.5-7.9 20-8.9.6-12.5-9.6-12.5-9.6"}),a.createElement("path",{fill:"#520038",d:"M103 72.2c2.6-2 3.5-9.7 3.5-9.7s-2.5-.5-6.7-2c-4.7-2.2-12.9-4.9-17.6.9-9.5 4.4-2 20-2 20l2.7-3.1s-4-3.3-2.1-6.3c2.2-3.5 4 1 4 1s.6-2.3 3.5-3.3c.4-.7 1-2.7 1.5-3.8A1 1 0 0 1 91 65l11.5 2.7c.5.1.8.6.8 1.2l-.3 3.2z"}),a.createElement("path",{fill:"#552950",d:"M101.2 76.5c0 .6-.6 1-1 1-.5-.1-.9-.7-.8-1.3.1-.6.6-1 1.1-1 .5.1.8.7.7 1.3m-7-1.4c0 .6-.5 1-1 1-.5-.1-.8-.7-.7-1.3 0-.6.6-1 1-1 .5.1.9.7.8 1.3"}),a.createElement("path",{stroke:"#DB836E",d:"m99.2 73.6-.9 1.7-.3 4.3h-2.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),a.createElement("path",{stroke:"#5C2552",d:"M100 73.3s1.7-.7 2.4.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),a.createElement("path",{stroke:"#DB836E",d:"M81.4 73s.4-1 1-.6c.7.4 1.4 1.4.6 2s.2 1.6.2 1.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),a.createElement("path",{stroke:"#5C2552",d:"M92.3 71.7s1.9 1.1 4.2 1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),a.createElement("path",{stroke:"#DB836E",d:"M92.7 80.6s2.3 1.2 4.4 1.2m-3.4 1.4s1 .4 1.5.3M83.7 80s1.8 6.6 9.2 8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),a.createElement("path",{stroke:"#E4EBF7",d:"M95.5 91.7s-1 2.8-8.2 2c-7.3-.6-10.3-5-10.3-5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),a.createElement("path",{fill:"#FFF",d:"M78.1 87.5s6.6 5 16.5 2.5c0 0 9.6 1 11.5 5.3 5.4 11.8.6 36.8 0 40 3.5 4-.4 8.4-.4 8.4-15.7-3.5-35.8-.6-35.8-.6-4.9-3.5-1.3-9-1.3-9l-6.2-23.8c-2.5-15.2.8-19.8 3.5-20.7 3-1 8-1.3 8-1.3.6 0 1.1 0 1.4-.2 2.4-1.3 2.8-.6 2.8-.6"}),a.createElement("path",{fill:"#FFC6A0",d:"M65.8 89.8s-6.8.5-7.6 8.2c-.4 8.8 3 11 3 11s6.1 22 16.9 22.9c8.4-2.2 4.7-6.7 4.6-11.4-.2-11.3-7-17-7-17s-4.3-13.7-9.9-13.7"}),a.createElement("path",{fill:"#FFC6A0",d:"M71.7 124.2s.9 11.3 9.8 6.5c4.8-2.5 7.6-13.8 9.8-22.6A201 201 0 0 0 94 96l-5-1.7s-2.4 5.6-7.7 12.3c-4.4 5.5-9.2 11.1-9.5 17.7"}),a.createElement("path",{stroke:"#E4EBF7",d:"M108.5 105.2s1.7 2.7-2.4 30.5c2.4 2.2 1 6-.2 7.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),a.createElement("path",{fill:"#FFC6A0",d:"M123.3 131.5s-.5 2.8-11.8 2c-15.2-1-25.3-3.2-25.3-3.2l.9-5.8s.7.2 9.7-.1c11.9-.4 18.7-6 25-1 4 3.2 1.5 8.1 1.5 8.1"}),a.createElement("path",{fill:"#FFF",d:"M70.2 91s-5.6-4.8-11 2.7c-3.3 7.2.5 15.2 2.6 19.5-.3 3.8 2.4 4.3 2.4 4.3s0 1 1.5 2.7c4-7 6.7-9.1 13.7-12.5-.3-.7-1.9-3.3-1.8-3.8.2-1.7-1.3-2.6-1.3-2.6s-.3-.2-1.2-2.8c-.8-2.3-2-5.1-4.9-7.5"}),a.createElement("path",{fill:"#CBD1D1",d:"M90.2 288s4.9 2.3 8.3 1.2c3.2-1 5.2.7 8 1.3a20 20 0 0 0 13.3-1.4c-.2-6.2-7.8-4.5-13.6-7.6-2.9-1.6-4.2-5.3-4-10H91.5s-1.5 12-1.3 16.5"}),a.createElement("path",{fill:"#2B0849",d:"M90.2 287.8s2.8 1.5 7.6.8c3.5-.5 3.3.6 7.5 1.3 4.2.6 13-.2 14.3-1.2.5 1.3-.4 2.4-.4 2.4s-1.7.6-5.4.9c-2.3.1-8.1.3-10.2-.6-2-1.6-4.9-1.5-6-.3-4.5 1.1-7.2-.3-7.2-.3l-.2-3z"}),a.createElement("path",{fill:"#A4AABA",d:"M98.4 272.3h3.5s0 7.5 5.2 9.6c-5.3.7-9.7-2.6-8.7-9.6"}),a.createElement("path",{fill:"#CBD1D1",d:"M44.4 272s-2.2 7.8-4.7 13c-1.9 3.8-4.4 7.8 5.8 7.8 7 0 9.3-.5 7.7-7-1.6-6.3.3-13.8.3-13.8h-9z"}),a.createElement("path",{fill:"#2B0849",d:"M38 290.3s2.3 1.2 7 1.2c6.4 0 8.7-1.7 8.7-1.7s.6 1.1-.7 2.2c-1 1-3.8 1.7-7.7 1.7-4.4 0-6.1-.6-7-1.3-1-.5-.8-1.6-.2-2.1"}),a.createElement("path",{fill:"#A4AABA",d:"M45.3 274s0 1.6-.3 3.1-1.1 3.3-1.2 4.4c0 1.2 4.8 1.6 5.4 0 .7-1.6 1.4-6.8 2-7.6.7-.9-5.1-2.2-5.9.1"}),a.createElement("path",{fill:"#7BB2F9",d:"M89.5 277.6h13.9s1.3-56.6 1.9-66.8c.6-10.3 4-45.1 1-65.6l-13-.7-23.7.8-1.3 10.4c0 .5-.7.9-.8 1.4 0 .6.5 1.4.4 2L59.6 206c-.1.7-1.3 1-1.5 2.8 0 .3.2 1.6.1 1.8-7.1 19.5-12.2 52.6-15.6 67.2h15.1L62 259c3-13.3 24-88.3 24-88.3l3.2-1-.2 48.6s-.2 1.3.4 2.1c.5.8-.6 1.2-.4 2.4l.4 1.8-1 12.4c-.4 4.9 1.2 40.7 1.2 40.7"}),a.createElement("path",{stroke:"#648BD8",d:"M64.6 218.9c1.2 0 4.2-2.1 7.2-5.1m24.2 8.7s3-1.1 6.4-4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),a.createElement("path",{stroke:"#648BD8",d:"M97 219.4s2.9-1.2 6.3-4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1"}),a.createElement("path",{stroke:"#648BD8",d:"M63.2 222.1s2.7-.6 6.7-3.5m5-72.4c-.3 3.2.3 8.8-4.5 9.4m22.8-11.3s.1 14.6-1.4 15.7c-2.3 1.7-3 2-3 2m.4-17s.3 13-1 25m-4.7.7s6.8-1 9.1-1M46 270l-.9 4.6m1.8-11.3-.8 4.1m16.6-64.9c-.3 1.6 0 2-.4 3.4 0 0-2.8 2-2.3 4s-.3 3.4-4.5 17.2c-1.8 5.8-4.3 19-6.2 28.3l-1.1 5.8m16-67-1 4.9m8.1-52.3-1.2 10.9s-1.2.1-.5 2.3c0 1.4-2.8 16.4-5.4 31.6m-20 82.1h13.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),a.createElement("path",{fill:"#192064",d:"M106.2 142.1c-3-.5-18.8-2.7-36.2.2a.6.6 0 0 0-.6.7v3a.6.6 0 0 0 .8.6c3.3-.5 17-2.4 35.6-.3.4 0 .7-.2.7-.5.2-1.4.2-2.5.2-3a.6.6 0 0 0-.5-.7"}),a.createElement("path",{fill:"#FFF",d:"M96.4 145.3v-5.1a.8.8 0 0 0-.8-.9 114.1 114.1 0 0 0-8.1 0 .8.8 0 0 0-.9.8v5.1c0 .5.4.9.9.9h8a.8.8 0 0 0 .9-.8"}),a.createElement("path",{fill:"#192064",d:"M95.2 144.3v-3.2a.7.7 0 0 0-.6-.7h-6.1a.7.7 0 0 0-.6.7v3.2c0 .4.3.7.6.7h6c.4 0 .7-.3.7-.7"}),a.createElement("path",{stroke:"#648BD8",d:"M90.1 273.5h12.8m-11.7-3.7v6.3m-.3-12.6v4.5m-.5-97.6 1 46.4s.7 1.6-.3 2.8c-.9 1.1 2.6.7 1 2.3-1.7 1.6.9 1.2 0 3.5-.6 1.6-1 22-1.2 36.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),a.createElement("path",{stroke:"#E4EBF7",d:"M73.7 98.7 76 103s2 .8 1.8 2.7l.8 2.2m-14.3 8.7c.2-1 2.2-7.1 12.6-10.5m.7-16s7.7 6 16.5 2.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),a.createElement("path",{fill:"#FFC6A0",d:"M92 87s5.5-.9 7.5-4.6c1.3-.3.8 2.2-.3 3.7l-1 1.5s.2.3.2.9c0 .6-.2.6-.3 1v1l-.4 1c-.1.2 0 .6-.2.9-.2.4-1.6 1.8-2.6 2.8-3.8 3.6-5 1.7-6-.4-1-1.8-.7-5.1-.9-6.9-.3-2.9-2.6-3-2-4.4.4-.7 3 .7 3.4 1.8.7 2 2.9 1.8 2.6 1.7"}),a.createElement("path",{stroke:"#DB836E",d:"M99.8 82.4c-.5.1-.3.3-1 1.3-.6 1-4.8 2.9-6.4 3.2-2.5.5-2.2-1.6-4.2-2.9-1.7-1-3.6-.6-1.4 1.4 1 1 1 1.1 1.4 3.2.3 1.5-.7 3.7.7 5.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),a.createElement("path",{stroke:"#E59788",d:"M79.5 108.7c-2 2.9-4.2 6.1-5.5 8.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),a.createElement("path",{fill:"#FFC6A0",d:"M87.7 124.8s-2-2-5.1-2.8c-3-.7-3.6-.1-5.5.1-2 .3-4-.9-3.7.7.3 1.7 5 1 5.2 2.1.2 1.1-6.3 2.8-8.3 2.2-.8.8.5 1.9 2 2.2.3 1.5 2.3 1.5 2.3 1.5s.7 1 2.6 1.1c2.5 1.3 9-.7 11-1.5 2-.9-.5-5.6-.5-5.6"}),a.createElement("path",{stroke:"#E59788",d:"M73.4 122.8s.7 1.2 3.2 1.4c2.3.3 2.6.6 2.6.6s-2.6 3-9.1 2.3m2.3 2.2s3.8 0 5-.7m-2.4 2.2s2 0 3.3-.6m-1 1.7s1.7 0 2.8-.5m-6.8-9s-.6-1.1 1.3-.5c1.7.5 2.8 0 5.1.1 1.4.1 3-.2 4 .2 1.6.8 3.6 2.2 3.6 2.2s10.6 1.2 19-1.1M79 108s-8.4 2.8-13.2 12.1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),a.createElement("path",{stroke:"#E4EBF7",d:"M109.3 112.5s3.4-3.6 7.6-4.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),a.createElement("path",{stroke:"#E59788",d:"M107.4 123s9.7-2.7 11.4-.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),a.createElement("path",{stroke:"#BFCDDD",d:"m194.6 83.7 4-4M187.2 91l3.7-3.6m.9-3-4.5-4.7m11.2 11.5-4.2-4.3m-65 76.3 3.7-3.7M122.3 170l3.5-3.5m.8-2.9-4.3-4.2M133 170l-4-4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),a.createElement("path",{fill:"#A3B4C6",d:"M190.2 211.8h-1.6a4 4 0 0 1-4-4v-32.1a4 4 0 0 1 4-4h1.6a4 4 0 0 1 4 4v32a4 4 0 0 1-4 4"}),a.createElement("path",{fill:"#A3B4C6",d:"M237.8 213a4.8 4.8 0 0 1-4.8 4.8h-86.6a4.8 4.8 0 0 1 0-9.6H233a4.8 4.8 0 0 1 4.8 4.8"}),a.createElement("path",{fill:"#A3B4C6",d:"M154.1 190.1h70.5v-84.6h-70.5z"}),a.createElement("path",{fill:"#BFCDDD",d:"M225 190.1h-71.2a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.2v19a3.2 3.2 0 0 1-3.2 3.2m0-59.3h-71.1a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.3v19a3.2 3.2 0 0 1-3.2 3.1"}),a.createElement("path",{fill:"#FFF",d:"M159.6 120.5a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8v-3.2c0-.4.3-.8.8-.8h22.4c.5 0 .8.4.8.8v3.2c0 .5-.3.8-.8.8"}),a.createElement("path",{fill:"#BFCDDD",d:"M225 160.5h-71.2a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.2v19a3.2 3.2 0 0 1-3.2 3.2"}),a.createElement("path",{stroke:"#7C90A5",d:"M173.5 130.8h49.3m-57.8 0h6m-15 0h6.7m11.1 29.8h49.3m-57.7 0h6m-15.8 0h6.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),a.createElement("path",{fill:"#FFF",d:"M159.6 151a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8V147c0-.4.3-.8.8-.8h22.4c.5 0 .8.4.8.8v3.2c0 .5-.3.8-.8.8m-63 29a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.5 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8V176c0-.5.3-.8.8-.8h22.4c.5 0 .8.3.8.8v3.2c0 .4-.3.8-.8.8"}),a.createElement("path",{fill:"#BFCDDD",d:"M203 221.1h-27.3a2.4 2.4 0 0 1-2.4-2.4v-11.4a2.4 2.4 0 0 1 2.4-2.5H203a2.4 2.4 0 0 1 2.4 2.5v11.4a2.4 2.4 0 0 1-2.4 2.4"}),a.createElement("path",{stroke:"#A3B4C6",d:"M177.3 207.2v11.5m23.8-11.5v11.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),a.createElement("path",{fill:"#5BA02E",d:"M162.9 267.9a9.4 9.4 0 0 1-9.4-9.4v-14.8a9.4 9.4 0 0 1 18.8 0v14.8a9.4 9.4 0 0 1-9.4 9.4"}),a.createElement("path",{fill:"#92C110",d:"M171.2 267.8a9.4 9.4 0 0 1-9.4-9.4V255a9.4 9.4 0 0 1 18.8 0v3.4a9.4 9.4 0 0 1-9.4 9.4"}),a.createElement("path",{fill:"#F2D7AD",d:"M181.3 293.7h-27.7a3.2 3.2 0 0 1-3.2-3.2v-20.7a3.2 3.2 0 0 1 3.2-3.2h27.7a3.2 3.2 0 0 1 3.2 3.2v20.7a3.2 3.2 0 0 1-3.2 3.2"}))),403:()=>a.createElement("svg",{width:"251",height:"294"},a.createElement("title",null,"Unauthorized"),a.createElement("g",{fill:"none",fillRule:"evenodd"},a.createElement("path",{fill:"#E4EBF7",d:"M0 129v-2C0 58.3 55.6 2.7 124.2 2.7h2c68.6 0 124.2 55.6 124.2 124.1v2.1c0 68.6-55.6 124.2-124.1 124.2h-2.1A124.2 124.2 0 0 1 0 129"}),a.createElement("path",{fill:"#FFF",d:"M41.4 133a8.2 8.2 0 1 1-16.4-1.7 8.2 8.2 0 0 1 16.4 1.6"}),a.createElement("path",{stroke:"#FFF",d:"m38.7 136.4 10.4 5.9m.9 6.2-12.6 10.7",strokeWidth:"2"}),a.createElement("path",{fill:"#FFF",d:"M41.5 161.3a5.6 5.6 0 1 1-11.2-1.2 5.6 5.6 0 0 1 11.2 1.2m17.7-16a5.7 5.7 0 1 1-11.3-1.2 5.7 5.7 0 0 1 11.3 1.2m41.2-115.8H130a4.6 4.6 0 1 0 0-9.1h-29.6a4.6 4.6 0 0 0 0 9.1m11.3 18.3h29.7a4.6 4.6 0 1 0 0-9.2h-29.7a4.6 4.6 0 1 0 0 9.2"}),a.createElement("path",{fill:"#FFF",d:"M114 29.5h15.8a4.6 4.6 0 1 0 0 9.1H114a4.6 4.6 0 0 0 0-9.1m71.3 108.2a10 10 0 1 1-19.8-2 10 10 0 0 1 19.8 2"}),a.createElement("path",{stroke:"#FFF",d:"m180.2 143.8 12.5 7.1m1.1 7.5-15.1 13",strokeWidth:"2"}),a.createElement("path",{fill:"#FFF",d:"M185.6 172a6.8 6.8 0 1 1-13.6-1.4 6.8 6.8 0 0 1 13.5 1.3m18.6-16.6a6.8 6.8 0 1 1-13.6-1.4 6.8 6.8 0 0 1 13.6 1.4"}),a.createElement("path",{stroke:"#FFF",d:"M153 194a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm73-75.8a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.4 0zm-9 34.9a2.2 2.2 0 1 1-4.3 0 2.2 2.2 0 0 1 4.4 0zm-39.2-43.3a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm18.3-15.3a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm6.7 88a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0z",strokeWidth:"2"}),a.createElement("path",{stroke:"#FFF",d:"m215.1 155.3-1.9 20-10.8 6m-27.8-4.7-6.3 9.8H157l-4.5 6.4m23.4-65.5v-15.7m45.6 7.8-12.8 7.9-15.2-7.9V96.7",strokeWidth:"2"}),a.createElement("path",{fill:"#A26EF4",d:"M180.7 29.3a29.3 29.3 0 1 1 58.6 0 29.3 29.3 0 0 1-58.6 0"}),a.createElement("path",{fill:"#FFF",d:"m221.4 41.7-21.5-.1a1.7 1.7 0 0 1-1.7-1.8V27.6a1.7 1.7 0 0 1 1.8-1.7h21.5c1 0 1.8.9 1.8 1.8l-.1 12.3a1.7 1.7 0 0 1-1.7 1.7"}),a.createElement("path",{fill:"#FFF",d:"M215.1 29.2c0 2.6-2 4.6-4.5 4.6a4.6 4.6 0 0 1-4.5-4.7v-6.9c0-2.6 2-4.6 4.6-4.6 2.5 0 4.5 2 4.4 4.7v6.9zm-4.5-14a6.9 6.9 0 0 0-7 6.8v7.3a6.9 6.9 0 0 0 13.8.1V22a6.9 6.9 0 0 0-6.8-6.9zm-43 53.2h-4a4.7 4.7 0 0 1-4.7-4.8 4.7 4.7 0 0 1 4.7-4.7h4a4.7 4.7 0 0 1 4.7 4.8 4.7 4.7 0 0 1-4.7 4.7"}),a.createElement("path",{fill:"#5BA02E",d:"M168.2 248.8a6.6 6.6 0 0 1-6.6-6.6v-66a6.6 6.6 0 0 1 13.2 0v66a6.6 6.6 0 0 1-6.6 6.6"}),a.createElement("path",{fill:"#92C110",d:"M176.1 248.2a6.6 6.6 0 0 1-6.6-6.6v-33a6.6 6.6 0 1 1 13.3 0v33a6.6 6.6 0 0 1-6.7 6.6"}),a.createElement("path",{fill:"#F2D7AD",d:"M186 293.9h-27.4a3.2 3.2 0 0 1-3.2-3.2v-45.9a3.2 3.2 0 0 1 3.2-3.1H186a3.2 3.2 0 0 1 3.2 3.1v46a3.2 3.2 0 0 1-3.2 3"}),a.createElement("path",{fill:"#FFF",d:"M82 147.7s6.3-1 17.5-1.3c11.8-.4 17.6 1 17.6 1s3.7-3.8 1-8.3c1.3-12.1 6-32.9.3-48.3-1.1-1.4-3.7-1.5-7.5-.6-1.4.3-7.2-.2-8-.1l-15.3-.4-8-.5c-1.6-.1-4.3-1.7-5.5-.3-.4.4-2.4 5.6-2 16l8.7 35.7s-3.2 3.6 1.2 7"}),a.createElement("path",{fill:"#FFC6A0",d:"m75.8 73.3-1-6.4 12-6.5s7.4-.1 8 1.2c.8 1.3-5.5 1-5.5 1s-1.9 1.4-2.6 2.5c-1.7 2.4-1 6.5-8.4 6-1.7.3-2.5 2.2-2.5 2.2"}),a.createElement("path",{fill:"#FFB594",d:"M52.4 77.7S66.7 87 77.4 92c1 .5-2 16.2-11.9 11.8-7.4-3.3-20.1-8.4-21.5-14.5-.7-3.2 2.6-7.6 8.4-11.7M142 80s-6.7 3-13.9 6.9c-3.9 2.1-10.1 4.7-12.3 8-6.2 9.3 3.5 11.2 13 7.5 6.6-2.7 29-12.1 13.2-22.4"}),a.createElement("path",{fill:"#FFC6A0",d:"m76.2 66.4 3 3.8S76.4 73 73 76c-7 6.2-12.8 14.3-16 16.4-4 2.7-9.7 3.3-12.2 0-3.5-5.1.5-14.7 31.5-26"}),a.createElement("path",{fill:"#FFF",d:"M64.7 85.1s-2.4 8.4-9 14.5c.7.5 18.6 10.5 22.2 10 5.2-.6 6.4-19 1.2-20.5-.8-.2-6-1.3-8.9-2.2-.9-.2-1.6-1.7-3.5-1l-2-.8zm63.7.7s5.3 2 7.3 13.8c-.6.2-17.6 12.3-21.8 7.8-6.6-7-.8-17.4 4.2-18.6 4.7-1.2 5-1.4 10.3-3"}),a.createElement("path",{stroke:"#E4EBF7",d:"M78.2 94.7s.9 7.4-5 13",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),a.createElement("path",{stroke:"#E4EBF7",d:"M87.4 94.7s3.1 2.6 10.3 2.6c7.1 0 9-3.5 9-3.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".9"}),a.createElement("path",{fill:"#FFC6A0",d:"m117.2 68.6-6.8-6.1s-5.4-4.4-9.2-1c-3.9 3.5 4.4 2.2 5.6 4.2 1.2 2.1.9 1.2-2 .5-5.7-1.4-2.1.9 3 5.3 2 1.9 7 1 7 1l2.4-3.9z"}),a.createElement("path",{fill:"#FFB594",d:"m105.3 91.3-.3-11H89l-.5 10.5c0 .4.2.8.6 1 2 1.3 9.3 5 15.8.4.2-.2.4-.5.4-.9"}),a.createElement("path",{fill:"#5C2552",d:"M107.6 74.2c.8-1.1 1-9 1-11.9a1 1 0 0 0-1-1l-4.6-.4c-7.7-1-17 .6-18.3 6.3-5.4 5.9-.4 13.3-.4 13.3s2 3.5 4.3 6.8c.8 1 .4-3.8 3-6a47.9 47.9 0 0 1 16-7"}),a.createElement("path",{fill:"#FFC6A0",d:"M88.4 83.2s2.7 6.2 11.6 6.5c7.8.3 9-7 7.5-17.5l-1-5.5c-6-2.9-15.4.6-15.4.6s-.6 2-.2 5.5c-2.3 2-1.8 5.6-1.8 5.6s-1-2-2-2.3c-.9-.3-2 0-2.3 2-1 4.6 3.6 5.1 3.6 5.1"}),a.createElement("path",{stroke:"#DB836E",d:"m100.8 77.1 1.7-1-1-4.3.7-1.4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),a.createElement("path",{fill:"#552950",d:"M105.5 74c0 .8-.4 1.4-1 1.4-.4 0-.8-.7-.8-1.4s.5-1.2 1-1.2.9.6.8 1.3m-8 .2c0 .8-.4 1.3-.9 1.3s-.9-.6-.9-1.3c0-.7.5-1.3 1-1.3s1 .6.9 1.3"}),a.createElement("path",{stroke:"#DB836E",d:"M91.1 86.8s5.3 5 12.7 2.3",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),a.createElement("path",{fill:"#DB836E",d:"M99.8 81.9s-3.6.2-1.5-2.8c1.6-1.5 5-.4 5-.4s1 3.9-3.5 3.2"}),a.createElement("path",{stroke:"#5C2552",d:"M102.9 70.6s2.5.8 3.4.7m-12.4.7s2.5-1.2 4.8-1.1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"}),a.createElement("path",{stroke:"#DB836E",d:"M86.3 77.4s1 .9 1.5 2c-.4.6-1 1.2-.3 1.9m11.8 2.4s2 .2 2.5-.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),a.createElement("path",{stroke:"#E4EBF7",d:"m87.8 115.8 15.7-3m-3.3 3 10-2m-43.7-27s-1.6 8.8-6.7 14M128.3 88s3 4 4 11.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),a.createElement("path",{stroke:"#DB836E",d:"M64 84.8s-6 10-13.5 10",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),a.createElement("path",{fill:"#FFC6A0",d:"m112.4 66-.2 5.2 12 9.2c4.5 3.6 8.9 7.5 11 8.7 4.8 2.8 8.9 3.3 11 1.8 4.1-2.9 4.4-9.9-8.1-15.3-4.3-1.8-16.1-6.3-25.7-9.7"}),a.createElement("path",{stroke:"#DB836E",d:"M130.5 85.5s4.6 5.7 11.7 6.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),a.createElement("path",{stroke:"#E4EBF7",d:"M121.7 105.7s-.4 8.6-1.3 13.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),a.createElement("path",{stroke:"#648BD8",d:"M115.8 161.5s-3.6-1.5-2.7-7.1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),a.createElement("path",{fill:"#CBD1D1",d:"M101.5 290.2s4.3 2.1 7.4 1c2.9-.9 4.6.7 7.2 1.3 2.5.5 6.9 1 11.7-1.3 0-5.6-7-4-12-6.8-2.6-1.4-3.8-4.7-3.6-8.8h-9.5s-1.4 10.6-1.2 14.6"}),a.createElement("path",{fill:"#2B0849",d:"M101.5 290s2.4 1.4 6.8.7c3-.4 3.7.5 7.5 1 3.7.6 10.8 0 11.9-.8.4 1-.4 2-.4 2s-1.5.7-4.8.9c-2 .1-5.8.3-7.7-.5-1.8-1.4-5.2-2-5.7-.3-4 1-7.4-.3-7.4-.3l-.2-2.6z"}),a.createElement("path",{fill:"#A4AABA",d:"M108.8 276.2h3.1s0 6.7 4.6 8.6c-4.7.6-8.6-2.3-7.7-8.6"}),a.createElement("path",{fill:"#CBD1D1",d:"M57.6 272.5s-2 7.5-4.5 12.4c-1.8 3.7-4.2 7.6 5.5 7.6 6.7 0 9-.5 7.5-6.7-1.5-6.1.3-13.3.3-13.3h-8.8z"}),a.createElement("path",{fill:"#2B0849",d:"M51.5 290s2.2 1.2 6.7 1.2c6.1 0 8.3-1.6 8.3-1.6s.6 1-.6 2.1c-1 .9-3.6 1.6-7.4 1.6-4.2 0-6-.6-6.8-1.2-.9-.5-.7-1.6-.2-2"}),a.createElement("path",{fill:"#A4AABA",d:"M58.5 274.4s0 1.6-.3 3-1 3.1-1.1 4.2c0 1.1 4.5 1.5 5.2 0 .6-1.6 1.3-6.5 1.9-7.3.6-.8-5-2.1-5.7.1"}),a.createElement("path",{fill:"#7BB2F9",d:"m100.9 277 13.3.1s1.3-54.2 1.8-64c.6-9.9 3.8-43.2 1-62.8l-12.4-.7-22.8.8-1.2 10c0 .4-.6.8-.7 1.3 0 .6.4 1.3.3 2-2.3 14-6.3 32.9-8.7 46.4-.1.6-1.2 1-1.4 2.6 0 .3.2 1.6 0 1.8-6.8 18.7-10.8 47.6-14.1 61.6h14.5s2.2-8.6 4-17a3984 3984 0 0 1 23-84.5l3-.5 1 46.1s-.2 1.2.4 2c.5.8-.6 1.1-.4 2.3l.4 1.7-1 11.9c-.4 4.6 0 39 0 39"}),a.createElement("path",{stroke:"#648BD8",d:"M77.4 220.4c1.2.1 4-2 7-4.9m23.1 8.4s2.8-1 6.1-3.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),a.createElement("path",{stroke:"#648BD8",d:"M108.5 221s2.7-1.2 6-4",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{stroke:"#648BD8",d:"M76.1 223.6s2.6-.6 6.5-3.4m4.7-69.4c-.2 3.1.3 8.5-4.3 9m21.8-10.7s.1 14-1.3 15c-2.2 1.6-3 1.9-3 1.9m.5-16.4s0 12.8-1.2 24.3m-4.9 1s7.2-1.6 9.4-1.6m-28.6 31.5-1 4.5s-1.5 1.8-1 3.7c.4 2-1 2-5 15.3-1.7 5.6-4.4 18.5-6.3 27.5l-4 18.4M77 196.7a313.3 313.3 0 0 1-.8 4.8m7.7-50-1.2 10.3s-1 .2-.5 2.3c.1 1.3-2.6 15.6-5.1 30.2M57.6 273h13.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),a.createElement("path",{fill:"#192064",d:"M117.4 147.4s-17-3-35.7.2v4.2s14.6-2.9 35.5-.4l.2-4"}),a.createElement("path",{fill:"#FFF",d:"M107.5 150.4v-5a.8.8 0 0 0-.8-.7H99a.8.8 0 0 0-.7.8v4.8c0 .5.3.9.8.8a140.8 140.8 0 0 1 7.7 0 .8.8 0 0 0 .8-.7"}),a.createElement("path",{fill:"#192064",d:"M106.4 149.4v-3a.6.6 0 0 0-.6-.7 94.1 94.1 0 0 0-5.8 0 .6.6 0 0 0-.7.7v3c0 .4.3.7.7.7h5.7c.4 0 .7-.3.7-.7"}),a.createElement("path",{stroke:"#648BD8",d:"M101.5 274h12.3m-11.1-5v6.5m0-12.4v4.3m-.5-93.4.9 44.4s.7 1.6-.2 2.7c-1 1.1 2.4.7.9 2.2-1.6 1.6.9 1.1 0 3.4-.6 1.5-1 21-1.1 35",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"})))},A=Object.keys(g),$=({icon:e,status:t,className:r,style:n})=>{if(A.includes(`${t}`)){let e=g[t];return a.createElement("div",{className:r,style:n},a.createElement(e,null))}let l=a.createElement(v[t]);return null===e||!1===e?null:a.createElement("div",{className:r,style:n},e||l)},B=({className:e,extra:t,style:r})=>(0,E.AZ)(t)?a.createElement("div",{className:e,style:r},t):null,L=e=>{let{prefixCls:t,className:r,rootClassName:n,subTitle:l,title:c,style:o,children:i,status:s="info",icon:d,extra:f,styles:u,classNames:F,...v}=e,{getPrefixCls:g,direction:L,className:z,style:b,classNames:j,styles:C}=(0,k.TP)("result"),D={...e,status:s},W=(0,p.XT)(b),y=(0,p.XT)(o),[w,x]=(0,p.AV)([j,F],[C,W,u,y],{props:D}),S=g("result",t),[O,H]=M(S),I=(0,m.$)(S,`${S}-${s}`,r,z,n,{[`${S}-rtl`]:"rtl"===L},O,H,w.root),N=(0,m.$)(`${S}-title`,w.title),V=(0,m.$)(`${S}-subtitle`,w.subTitle),P=(0,m.$)(`${S}-extra`,w.extra),T=(0,m.$)(`${S}-body`,w.body),R=(0,m.$)(`${S}-icon`,{[`${S}-image`]:A.includes(`${s}`)},w.icon),_={...x.root},G=(0,h.KE)(v,{aria:!0,data:!0});return a.createElement("div",{...G,className:I,style:_},a.createElement($,{className:R,style:x.icon,status:s,icon:d}),(0,E.AZ)(c)&&a.createElement("div",{className:N,style:x.title},c),(0,E.AZ)(l)&&a.createElement("div",{className:V,style:x.subTitle},l),a.createElement(B,{className:P,extra:f,style:x.extra}),(0,E.AZ)(i)&&a.createElement("div",{className:T,style:x.body},i))};L.PRESENTED_IMAGE_403=g["403"],L.PRESENTED_IMAGE_404=g["404"],L.PRESENTED_IMAGE_500=g["500"];let z=L},37510:(e,t,r)=>{r.d(t,{A:()=>o});var a=r(97109),n=r(6710),l=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 o=a.forwardRef((e,t)=>a.createElement(l.A,c({},e,{ref:t,icon:n.A})))},39415:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"}},40992:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"}},48156:(e,t,r)=>{r.d(t,{A:()=>o});var a=r(97109),n=r(1676),l=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 o=a.forwardRef((e,t)=>a.createElement(l.A,c({},e,{ref:t,icon:n.A})))},49075:(e,t,r)=>{r.d(t,{A:()=>o});var a=r(97109),n=r(87715),l=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 o=a.forwardRef((e,t)=>a.createElement(l.A,c({},e,{ref:t,icon:n.A})))},55122:(e,t,r)=>{r.d(t,{A:()=>f});var a=r(97109),n=r(3638),l=r(5045),c=r(92162),o=r(26047),i=r(74567),s=r(27273),d=r(15561),h=r(7961),m=r(10540),p=r(28403);let E=(0,m.OF)("Divider",e=>{let t=(0,p.oX)(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[(e=>{let{componentCls:t,sizePaddingEdgeHorizontal:r,colorSplit:a,lineWidth:n,textPaddingInline:l,orientationMargin:c,verticalMarginInline:o}=e,i=`${t}-rail`;return{[t]:{...(0,h.dF)(e),borderBlockStart:`${(0,d.zA)(n)} solid ${a}`,[i]:{borderBlockStart:`${(0,d.zA)(n)} solid ${a}`},"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:o,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,d.zA)(n)} solid ${a}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,d.zA)(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,d.zA)(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${a}`,[`${i}-start, ${i}-end`]:{width:"50%",borderBlockStartColor:"inherit",borderBlockEnd:0,content:"''"}},[`&-horizontal${t}-with-text-start`]:{[`${i}-start`]:{width:`calc(${c} * 100%)`},[`${i}-end`]:{width:`calc(100% - ${c} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{[`${i}-start`]:{width:`calc(100% - ${c} * 100%)`},[`${i}-end`]:{width:`calc(${c} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:l},"&-dashed":{background:"none",borderColor:a,borderStyle:"dashed",borderWidth:`${(0,d.zA)(n)} 0 0`,[i]:{borderBlockStart:`${(0,d.zA)(n)} dashed ${a}`}},[`&-horizontal${t}-with-text${t}-dashed`]:{[`${i}-start, ${i}-end`]:{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:n,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:a,borderStyle:"dotted",borderWidth:`${(0,d.zA)(n)} 0 0`,[i]:{borderBlockStart:`${(0,d.zA)(n)} dotted ${a}`}},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:n,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`]:{[`${i}-start`]:{width:0},[`${i}-end`]:{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:r}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{[`${i}-start`]:{width:"100%"},[`${i}-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}}),k=["left","right","center","start","end"],f=e=>{let{getPrefixCls:t,direction:r,className:d,style:h,classNames:m,styles:p}=(0,i.TP)("divider"),{prefixCls:f,type:u,orientation:F,vertical:M,titlePlacement:v,orientationMargin:g,className:A,rootClassName:$,children:B,dashed:L,variant:z="solid",plain:b,style:j,size:C,classNames:D,styles:W,...y}=e,w=t("divider",f),x=`${w}-rail`,[S,O]=E(w),H=(0,s.A)(C),I=!!B,N=k.includes(F||""),V=a.useMemo(()=>{let e=v??(N?F:"center");return"left"===e?"rtl"===r?"end":"start":"right"===e?"rtl"===r?"start":"end":e},[r,F,v,N]),P="start"===V&&null!=g,T="end"===V&&null!=g,[R,_]=(0,l.M)(F,M,u),G={...e,orientation:R,titlePlacement:V,size:H},[X,Z]=(0,c.AV)([m,D],[p,W],{props:G}),q=(0,n.$)(w,d,S,O,`${w}-${R}`,{[`${w}-with-text`]:I,[`${w}-with-text-${V}`]:I,[`${w}-dashed`]:!!L,[`${w}-${z}`]:"solid"!==z,[`${w}-plain`]:!!b,[`${w}-rtl`]:"rtl"===r,[`${w}-no-default-orientation-margin-start`]:P,[`${w}-no-default-orientation-margin-end`]:T,[`${w}-md`]:"medium"===H||"middle"===H,[`${w}-sm`]:"small"===H,[x]:!B,[X.rail]:X.rail&&!B},A,$,X.root),K=a.useMemo(()=>(0,o.Et)(g)?g:/^\d+$/.test(g)?Number(g):g,[g]);return a.createElement("div",{className:q,style:{...h,...Z.root,...B?{}:Z.rail,...j},...y,role:"separator"},B&&!_&&a.createElement(a.Fragment,null,a.createElement("div",{className:(0,n.$)(x,`${x}-start`,X.rail),style:Z.rail}),a.createElement("span",{className:(0,n.$)(`${w}-inner-text`,X.content),style:{marginInlineStart:P?K:void 0,marginInlineEnd:T?K:void 0,...Z.content}},B),a.createElement("div",{className:(0,n.$)(x,`${x}-end`,X.rail),style:Z.rail})))}},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"}},60182:(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-372 0-89 31.3-170.8 83.5-234.8l523.3 523.3C682.8 852.7 601 884 512 884zm288.5-137.2L277.2 223.5C341.2 171.3 423 140 512 140c205.4 0 372 166.6 372 372 0 89-31.3 170.8-83.5 234.8z"}}]},name:"stop",theme:"outlined"}},63046:(e,t,r)=>{r.d(t,{A:()=>o});var a=r(97109),n=r(60182),l=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 o=a.forwardRef((e,t)=>a.createElement(l.A,c({},e,{ref:t,icon:n.A})))},64068:(e,t,r)=>{r.d(t,{A:()=>o});var a=r(97109),n=r(76148),l=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 o=a.forwardRef((e,t)=>a.createElement(l.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:()=>o});var a=r(97109),n=r(56398),l=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 o=a.forwardRef((e,t)=>a.createElement(l.A,c({},e,{ref:t,icon:n.A})))},87715:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M952 474H829.8C812.5 327.6 696.4 211.5 550 194.2V72c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v122.2C327.6 211.5 211.5 327.6 194.2 474H72c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h122.2C211.5 696.4 327.6 812.5 474 829.8V952c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V829.8C696.4 812.5 812.5 696.4 829.8 550H952c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM512 756c-134.8 0-244-109.2-244-244s109.2-244 244-244 244 109.2 244 244-109.2 244-244 244z"}},{tag:"path",attrs:{d:"M512 392c-32.1 0-62.1 12.4-84.8 35.2-22.7 22.7-35.2 52.7-35.2 84.8s12.5 62.1 35.2 84.8C449.9 619.4 480 632 512 632s62.1-12.5 84.8-35.2C619.4 574.1 632 544 632 512s-12.5-62.1-35.2-84.8A118.57 118.57 0 00512 392z"}}]},name:"aim",theme:"outlined"}},99271:(e,t,r)=>{r.d(t,{A:()=>o});var a=r(97109),n=r(39415),l=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 o=a.forwardRef((e,t)=>a.createElement(l.A,c({},e,{ref:t,icon:n.A})))},99811:(e,t,r)=>{r.d(t,{A:()=>o});var a=r(97109),n=r(14995),l=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 o=a.forwardRef((e,t)=>a.createElement(l.A,c({},e,{ref:t,icon:n.A})))}}]);
@@ -0,0 +1,10 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[787],{68787:(e,t,a)=>{a.d(t,{A:()=>S});var r=a(97109),i=a(42644),n=a(3638),o=a(92162),d=a(74567),l=a(27273),s=a(73134),c=a(88762),$=a(58569);let g=({prefixCls:e,className:t,hoverable:a=!0,...i})=>{let{getPrefixCls:o}=r.useContext(d.QO),l=o("card",e),s=(0,n.$)(`${l}-grid`,t,{[`${l}-grid-hoverable`]:a});return r.createElement("div",{...i,className:s})};var m=a(15561),h=a(7961),p=a(10540),b=a(28403);let u=(0,p.OF)("Card",e=>{let t=(0,b.oX)(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[(e=>{let{componentCls:t,cardShadow:a,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:n,bodyPadding:o,extraColor:d,motionDurationMid:l}=e;return{[t]:{...(0,h.dF)(e),position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:n},[`${t}-head`]:(e=>{let{antCls:t,componentCls:a,headerHeight:r,headerPadding:i,tabsMarginBottom:n}=e;return{display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${(0,m.zA)(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${(0,m.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${(0,m.zA)(e.borderRadiusLG)} ${(0,m.zA)(e.borderRadiusLG)} 0 0`,...(0,h.t6)(),"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":{display:"inline-block",flex:1,...h.L9,[`
2
+ > ${a}-typography,
3
+ > ${a}-typography-edit-content
4
+ `]:{insetInlineStart:0,marginTop:0,marginBottom:0}},[`${t}-tabs-top`]:{clear:"both",marginBottom:n,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${(0,m.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}}})(e),[`${t}-extra`]:{marginInlineStart:"auto",color:d,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:o,borderRadius:`0 0 ${(0,m.zA)(e.borderRadiusLG)} ${(0,m.zA)(e.borderRadiusLG)}`,"&:first-child":{borderStartStartRadius:e.borderRadiusLG,borderStartEndRadius:e.borderRadiusLG},"&:not(:last-child)":{borderEndStartRadius:0,borderEndEndRadius:0}},[`${t}-grid`]:(e=>{let{cardPaddingBase:t,colorBorderSecondary:a,cardShadow:r,lineWidth:i}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
5
+ ${(0,m.zA)(i)} 0 0 0 ${a},
6
+ 0 ${(0,m.zA)(i)} 0 0 ${a},
7
+ ${(0,m.zA)(i)} ${(0,m.zA)(i)} 0 0 ${a},
8
+ ${(0,m.zA)(i)} 0 0 0 ${a} inset,
9
+ 0 ${(0,m.zA)(i)} 0 0 ${a} inset;
10
+ `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}})(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${(0,m.zA)(e.borderRadiusLG)} ${(0,m.zA)(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:(e=>{let{componentCls:t,iconCls:a,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:n,actionsBg:o}=e;return{margin:0,padding:0,listStyle:"none",background:o,borderTop:`${(0,m.zA)(e.lineWidth)} ${e.lineType} ${n}`,display:"flex",borderRadius:`0 0 ${(0,m.zA)(e.borderRadiusLG)} ${(0,m.zA)(e.borderRadiusLG)}`,...(0,h.t6)(),"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${a}`]:{display:"inline-block",width:"100%",color:e.colorIcon,lineHeight:(0,m.zA)(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${a}`]:{fontSize:i,lineHeight:(0,m.zA)(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${(0,m.zA)(e.lineWidth)} ${e.lineType} ${n}`}}}})(e),[`${t}-meta`]:(e=>({margin:`${(0,m.zA)(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex",...(0,h.t6)(),"&-avatar":{paddingInlineEnd:e.padding},"&-section":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,...h.L9},"&-description":{color:e.colorTextDescription}}))(e)},[`${t}-bordered`]:{border:`${(0,m.zA)(e.lineWidth)} ${e.lineType} ${i}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:["box-shadow","border-color"].map(e=>`${e} ${l}`).join(", "),"&:hover":{borderColor:"transparent",boxShadow:a}},[`${t}-contain-grid`]:{borderRadius:`${(0,m.zA)(e.borderRadiusLG)} ${(0,m.zA)(e.borderRadiusLG)} 0 0 `,[`&:not(:has(> ${t}-head))`]:{borderRadius:0},[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:(e=>{let{componentCls:t,colorFillAlter:a,headerPadding:r,bodyPadding:i}=e;return{[`${t}-head`]:{padding:`0 ${(0,m.zA)(r)}`,background:a,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${(0,m.zA)(e.padding)} ${(0,m.zA)(i)}`}}})(e),[`${t}-loading`]:(e=>{let{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}})(e),[`${t}-rtl`]:{direction:"rtl"}}})(t),(e=>{let{componentCls:t,bodyPaddingSM:a,headerPaddingSM:r,headerHeightSM:i,headerFontSizeSM:n}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:i,padding:`0 ${(0,m.zA)(r)}`,fontSize:n,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:a}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}})(t)]},e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+2*e.padding,headerHeightSM:e.fontSize*e.lineHeight+2*e.paddingXS,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:e.bodyPadding??e.paddingLG,headerPadding:e.headerPadding??e.paddingLG})),y=e=>{let{actionClasses:t,actions:a=[],actionStyle:i}=e;return r.createElement("ul",{className:t,style:i},a.map((e,t)=>{let i=`action-${t}`;return r.createElement("li",{style:{width:`${100/a.length}%`},key:i},r.createElement("span",null,e))}))},z=r.forwardRef((e,t)=>{let a,{prefixCls:m,className:h,rootClassName:p,style:b,extra:z,headStyle:S={},bodyStyle:f={},title:v,loading:A,bordered:x,variant:E,size:R,type:T,cover:L,actions:w,tabList:N,children:G,activeTabKey:B,defaultActiveTabKey:C,tabBarExtraContent:H,hoverable:W,tabProps:k={},classNames:M,styles:I,...P}=e,{getPrefixCls:X,direction:D,className:q,style:F,classNames:_,styles:V}=(0,d.TP)("card"),[j]=(0,s.A)("card",E,x),K=(0,l.A)(R),O={...e,size:K,variant:j},J=(0,o.XT)(F),Q=(0,o.XT)(b),[U,Y]=(0,o.AV)([_,M],[V,J,I,Q],{props:O}),Z=r.useMemo(()=>(0,i.$r)(G),[G]),ee=r.useMemo(()=>Z.some(e=>r.isValidElement(e)&&e.type===g),[Z]),et=X("card",m),[ea,er]=u(et),ei=r.createElement(c.A,{loading:!0,active:!0,paragraph:{rows:4},title:!1},G),en=void 0!==B,eo={...k,[en?"activeKey":"defaultActiveKey"]:en?B:C,tabBarExtraContent:H},ed=N?r.createElement($.A,{size:"small"!==K?"large":K,...eo,className:`${et}-head-tabs`,onChange:t=>{e.onTabChange?.(t)},items:N.map(({tab:e,...t})=>({label:e,...t}))}):null;if(v||z||ed){let e=(0,n.$)(`${et}-head`,U.header),t=(0,n.$)(`${et}-head-title`,U.title),i=(0,n.$)(`${et}-extra`,U.extra),o={...S,...Y.header};a=r.createElement("div",{className:e,style:o},r.createElement("div",{className:`${et}-head-wrapper`},v&&r.createElement("div",{className:t,style:Y.title},v),z&&r.createElement("div",{className:i,style:Y.extra},z)),ed)}let el=(0,n.$)(`${et}-cover`,U.cover),es=L?r.createElement("div",{className:el,style:Y.cover},L):null,ec=(0,n.$)(`${et}-body`,U.body),e$={...f,...Y.body},eg=A||Z.length?r.createElement("div",{className:ec,style:e$},A?ei:G):null,em=(0,n.$)(`${et}-actions`,U.actions),eh=w?.length?r.createElement(y,{actionClasses:em,actionStyle:Y.actions,actions:w}):null,ep=(0,i.cJ)(P,["onTabChange"]),eb=(0,n.$)(et,q,{[`${et}-loading`]:A,[`${et}-bordered`]:"borderless"!==j,[`${et}-hoverable`]:W,[`${et}-contain-grid`]:ee,[`${et}-contain-tabs`]:N?.length,[`${et}-small`]:"small"===K,[`${et}-type-${T}`]:!!T,[`${et}-rtl`]:"rtl"===D},h,p,ea,er,U.root),eu={...Y.root};return r.createElement("div",{ref:t,...ep,className:eb,style:eu},a,es,eg,eh)});z.Grid=g,z.Meta=e=>{let{prefixCls:t,className:a,avatar:i,title:l,description:s,style:c,classNames:$,styles:g,...m}=e,{getPrefixCls:h,className:p,style:b,classNames:u,styles:y}=(0,d.TP)("cardMeta"),z=h("card",t),S=`${z}-meta`,f=(0,o.XT)(b),v=(0,o.XT)(c),[A,x]=(0,o.AV)([u,$],[y,f,g,v],{props:e}),E=(0,n.$)(S,a,p,A.root),R={...x.root},T=(0,n.$)(`${S}-avatar`,A.avatar),L=(0,n.$)(`${S}-title`,A.title),w=(0,n.$)(`${S}-description`,A.description),N=(0,n.$)(`${S}-section`,A.section),G=i?r.createElement("div",{className:T,style:x.avatar},i):null,B=l?r.createElement("div",{className:L,style:x.title},l):null,C=s?r.createElement("div",{className:w,style:x.description},s):null,H=B||C?r.createElement("div",{className:N,style:x.section},B,C):null;return r.createElement("div",{...m,className:E,style:R},G,H)};let S=z}}]);