@customize-agent/server 4.60.1 → 4.60.3

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 (124) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +128 -81
  3. package/.next/prerender-manifest.json +3 -3
  4. package/.next/required-server-files.json +1 -1
  5. package/.next/routes-manifest.json +22 -0
  6. package/.next/server/chunks/1243.js +1 -1
  7. package/.next/server/chunks/1936.js +2 -2
  8. package/.next/server/chunks/2328.js +1 -1
  9. package/.next/server/chunks/4683.js +142 -0
  10. package/.next/server/chunks/5304.js +1 -1
  11. package/.next/server/chunks/6321.js +1 -1
  12. package/.next/server/chunks/6822.js +1 -0
  13. package/.next/server/chunks/8204.js +1 -1
  14. package/.next/server/chunks/9399.js +1 -0
  15. package/.next/server/chunks/9666.js +59 -58
  16. package/.next/server/instrumentation.js +1 -1
  17. package/.next/server/instrumentation.js.nft.json +1 -1
  18. package/.next/server/middleware-build-manifest.js +1 -1
  19. package/.next/server/pages/404.html +1 -1
  20. package/.next/server/pages/500.html +1 -1
  21. package/.next/server/pages/api/documents/export.js +2 -2
  22. package/.next/server/pages/api/documents/export.js.nft.json +1 -1
  23. package/.next/server/pages/api/documents/generate/preview.js +1 -1
  24. package/.next/server/pages/api/documents/generate.js +1 -1
  25. package/.next/server/pages/api/health.js +1 -1
  26. package/.next/server/pages/api/kb/files/detail.js +1 -1
  27. package/.next/server/pages/api/kb/files/source-preview.js +1 -1
  28. package/.next/server/pages/canvas/[id].html +1 -1
  29. package/.next/server/pages/canvas.html +1 -1
  30. package/.next/server/pages/documents.html +1 -1
  31. package/.next/server/pages/guide.html +1 -1
  32. package/.next/server/pages/index.html +1 -1
  33. package/.next/server/pages/knowledge/file-detail.html +1 -1
  34. package/.next/server/pages/knowledge/files.html +1 -1
  35. package/.next/server/pages/knowledge/manage.html +1 -1
  36. package/.next/server/pages/knowledge/source-preview.html +1 -1
  37. package/.next/server/pages/knowledge.html +1 -1
  38. package/.next/server/pages/models.html +1 -1
  39. package/.next/server/pages/overview.html +1 -1
  40. package/.next/server/pages/prompt.html +1 -1
  41. package/.next/server/pages/settings.html +1 -1
  42. package/.next/server/pages/skills/[id]/edit.html +1 -0
  43. package/.next/server/pages/skills/[id]/edit.js.nft.json +1 -0
  44. package/.next/server/pages/skills/[id].html +1 -0
  45. package/.next/server/pages/skills/[id].js.nft.json +1 -0
  46. package/.next/server/pages/skills/new.html +1 -0
  47. package/.next/server/pages/skills/new.js.nft.json +1 -0
  48. package/.next/server/pages/skills.html +1 -1
  49. package/.next/server/pages/system/logs.html +1 -1
  50. package/.next/server/pages-manifest.json +37 -34
  51. package/.next/static/7ea0ee326182fc159e629b4cd9354c5c800c7d5e156fcd6533182444b20d26cf/_buildManifest.js +1 -0
  52. package/.next/static/chunks/{511-75b881093a3e908b.js → 127-7d37d37dab02bd10.js} +1 -1
  53. package/.next/static/chunks/162-a5be07e04aedf98a.js +8 -0
  54. package/.next/static/chunks/2-8570cd2beee4da6e.js +1 -0
  55. package/.next/static/chunks/257-3ea888b096943bc8.js +1 -0
  56. package/.next/static/chunks/280-3ce590d421b5c47d.js +16 -0
  57. package/.next/static/chunks/318-ca122b774ea4ee84.js +1 -0
  58. package/.next/static/chunks/324-650dc02536b071bf.js +4 -0
  59. package/.next/static/chunks/338-19ccbaec57a7bf9c.js +4 -0
  60. package/.next/static/chunks/425-42f2568bcdd98f4c.js +1 -0
  61. package/.next/static/chunks/499-2233cadc6d4da647.js +10 -0
  62. package/.next/static/chunks/530-a5a65dc8adb1ee11.js +1 -0
  63. package/.next/static/chunks/564-d3426eef3e3e415b.js +4 -0
  64. package/.next/static/chunks/576-6699fed6c88502fe.js +1 -0
  65. package/.next/static/chunks/579-fc0a2eb64aedb001.js +1 -0
  66. package/.next/static/chunks/665-0634aa49137defc4.js +1 -0
  67. package/.next/static/chunks/{426-22c4cedb04b0d45d.js → 711-40c1a2dbd15c2807.js} +6 -6
  68. package/.next/static/chunks/781-a6b83dbcd1a33cab.js +1 -0
  69. package/.next/static/chunks/{795-48065c56c3b80339.js → 795-1c1cb3bf1f600e99.js} +1 -1
  70. package/.next/static/chunks/{665-9607db8f8b43e52e.js → 808-0506edc7454b5c0e.js} +1 -1
  71. package/.next/static/chunks/819-96247c9054ad9683.js +1 -0
  72. package/.next/static/chunks/964-569c27befeaff602.js +78 -0
  73. package/.next/static/chunks/pages/{_app-c11b5e8072f49bcc.js → _app-10f13111671af8a4.js} +15 -15
  74. package/.next/static/chunks/pages/canvas/[id]-534b45f39f39630c.js +1 -0
  75. package/.next/static/chunks/pages/canvas-ffb08963e5cf9558.js +1 -0
  76. package/.next/static/chunks/pages/{guide-a8eecc6c02b5bb9c.js → guide-82ae330966139191.js} +1 -1
  77. package/.next/static/chunks/pages/knowledge/file-detail-4ccc50ced6382dab.js +1 -0
  78. package/.next/static/chunks/pages/knowledge/source-preview-56ce59763fa015db.js +1 -0
  79. package/.next/static/chunks/pages/knowledge-84e386d765ddd311.js +1 -0
  80. package/.next/static/chunks/pages/models-5eee2d09deb081fb.js +1 -0
  81. package/.next/static/chunks/pages/prompt-f00bf2272142bfa1.js +1 -0
  82. package/.next/static/chunks/pages/{settings-81dffd92939c1d36.js → settings-f6dfff648cf9ac0e.js} +1 -1
  83. package/.next/static/chunks/pages/skills/[id]/edit-89bbed9a3a854b04.js +1 -0
  84. package/.next/static/chunks/pages/skills/[id]-101d753aa8fbf7a9.js +1 -0
  85. package/.next/static/chunks/pages/skills/new-124599c772150a1d.js +1 -0
  86. package/.next/static/chunks/pages/skills-476714776be63ce5.js +1 -0
  87. package/.next/static/chunks/pages/system/logs-40edb648d89b0749.js +1 -0
  88. package/.next/static/css/{ad5a592c79d1448b.css → 2da1c822e3bdb4bb.css} +1 -1
  89. package/.next/static/css/e67420f8d0ea180d.css +1 -0
  90. package/messages/en-US.json +5 -1
  91. package/messages/zh-CN.json +5 -1
  92. package/package.json +1 -1
  93. package/public/apple-touch-icon.png +0 -0
  94. package/public/favicon.ico +0 -0
  95. package/public/favicon.svg +7 -0
  96. package/scripts/generate-brand-assets.cjs +109 -0
  97. package/.next/server/chunks/7848.js +0 -141
  98. package/.next/static/chunks/127-20f09f6ebe1e6c1f.js +0 -1
  99. package/.next/static/chunks/174-1bc48f295d7dd075.js +0 -10
  100. package/.next/static/chunks/189-3f4f4e237056adaf.js +0 -4
  101. package/.next/static/chunks/269-7a3502478bf67fff.js +0 -11
  102. package/.next/static/chunks/278-31fbe7e1b733a9b7.js +0 -1
  103. package/.next/static/chunks/310-6c678cb70e4ba2d6.js +0 -19
  104. package/.next/static/chunks/530-d9f0418ec7ab040f.js +0 -1
  105. package/.next/static/chunks/700-5d29b0475311f590.js +0 -1
  106. package/.next/static/chunks/709-a7c652953ccd3b4b.js +0 -1
  107. package/.next/static/chunks/823-ff35afb174f7998b.js +0 -1
  108. package/.next/static/chunks/835-d29f4cc7a3679606.js +0 -1
  109. package/.next/static/chunks/873-16d052cdd3768758.js +0 -1
  110. package/.next/static/chunks/914-292edce0ba2a212d.js +0 -1
  111. package/.next/static/chunks/964-7e9fe2d80a53aeee.js +0 -78
  112. package/.next/static/chunks/992-8032f477230baaaf.js +0 -1
  113. package/.next/static/chunks/pages/canvas/[id]-37bee3f7b816ed18.js +0 -1
  114. package/.next/static/chunks/pages/canvas-97971ae159337676.js +0 -1
  115. package/.next/static/chunks/pages/knowledge/file-detail-f89e6044f752277c.js +0 -1
  116. package/.next/static/chunks/pages/knowledge/source-preview-4a303fadb123430a.js +0 -1
  117. package/.next/static/chunks/pages/knowledge-a65ec687334ffed0.js +0 -1
  118. package/.next/static/chunks/pages/models-3e486e49cca91e5a.js +0 -1
  119. package/.next/static/chunks/pages/prompt-b8af2cef904e3e19.js +0 -1
  120. package/.next/static/chunks/pages/skills-77ba363270239bbf.js +0 -1
  121. package/.next/static/chunks/pages/system/logs-1f54b6c8791daa77.js +0 -1
  122. package/.next/static/css/1a59bfb0aa677e69.css +0 -1
  123. package/.next/static/d863db1ff37d0934ebbb671f5c8dc07e5943c77d9b554215ce9e64fd8dc26727/_buildManifest.js +0 -1
  124. /package/.next/static/{d863db1ff37d0934ebbb671f5c8dc07e5943c77d9b554215ce9e64fd8dc26727 → 7ea0ee326182fc159e629b4cd9354c5c800c7d5e156fcd6533182444b20d26cf}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[530],{8090:(e,t,n)=>{n.d(t,{EL:()=>et,zT:()=>ee,II:()=>$,bJ:()=>eo,Jr:()=>V,O0:()=>eh,uj:()=>U,GC:()=>H,qj:()=>es,x8:()=>Z,Kg:()=>el,uH:()=>ep,Qs:()=>J,PI:()=>ei,dB:()=>eg,Jy:()=>em,uv:()=>O,vp:()=>Q,m_:()=>P,kH:()=>K,z9:()=>X,Aq:()=>ed,RV:()=>ec,Kq:()=>en});var r=n(97109),l=n(84662),a=n(30486),o=n(4527),i=n(80042),c=n(99650),s=n(25345),u=n(7851),d=n(33555),m=n(43240),p=n(26619),f=n(23216),h=n(46791),g=n(8579),v=n(26631),x=n(35459),y=n(64629),w=n(76824),b=n(83374),k=n(81668),j=n(39356),A=n(8263),I=n(61024),S=n(32919),M=n(96538);let C=["failed","paused","repairing","blocked","running","pending","completed"],E=["chars","costUsd"];function R(e,t){return e.seq!==t.seq?e.seq-t.seq:e.id===t.id?0:e.id<t.id?-1:1}function N(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(R);return t}function _(e){let t=new Map(e.map(e=>[e.id,e])),n=new Map;for(let r of e){let e=0,l=r,a=new Set([r.id]);for(;(null==l?void 0:l.parentId)!==void 0;){let n=t.get(l.parentId);if(!n||a.has(n.id))break;a.add(n.id),e+=1,l=n}n.set(r.id,e)}return n}let T=new Set(["prepare","understand","plan","blueprint","write","close","deliver","chapter","block","turn","round","round.decide","round.fix","repair.request","repair.localize","repair.impact","repair.transaction","repair.recheck","supervisor","resume.plan","skill.load"]),B=new Set(["failed","paused","repairing","blocked","running","pending","completed"]);var D=n(94394);let q={pending:{key:"common.statusWaiting",text:"等待中",color:"default"},running:{key:"common.statusRunning",text:D.uh.running,color:"processing"},completed:{key:"common.statusCompleted",text:D.uh.success,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 z(e,t,n,r){let l=e[t];if(!l)return"未知".concat(n,"(").concat(t||"空",")");if(l.key&&r){let e=r(l.key);if(e&&e!==l.key)return e}return l.text}function P(e,t){return z(q,e,"状态",t)}function O(e){var t,n;return null!=(n=null==(t=q[e])?void 0:t.color)?n:"default"}let F={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 H(e,t){return z(F,e,"记录状态",t)}function U(e){var t,n;return null!=(n=null==(t=F[e])?void 0:t.color)?n:"default"}let L=["failed","paused","repairing","blocked","running","pending","completed"];function Q(e){let t=L.indexOf(e);return t>=0?t:L.length}let Y={prepare:"生成准备",understand:"资料理解",plan:"规划",blueprint:"蓝图",write:"正文撰写",close:"收口",deliver:"交付",chapter:"章节",block:"块",turn:"轮次",round:"收口轮","round.decide":"收口\xb7判定","round.fix":"收口\xb7修复","repair.request":"修复\xb7请求","repair.localize":"修复\xb7定位","repair.impact":"修复\xb7影响面","repair.transaction":"修复\xb7事务","repair.recheck":"修复\xb7复检","skill.load":"技能命中",supervisor:"调度决策","resume.plan":"续跑任务书"};function X(e){var t;return e?null!=(t=Y[e])?t:e:"未知节点"}let G={role_binding:(0,r.createElement)(l.A),knowledge_retrieval:(0,r.createElement)(a.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)(p.A),plan:(0,r.createElement)(f.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)(b.A),deliver:(0,r.createElement)(k.A),repair:(0,r.createElement)(j.A),skill:(0,r.createElement)(A.A),supervisor:(0,r.createElement)(I.A),resume:(0,r.createElement)(S.A),default:(0,r.createElement)(m.A)};function K(e){var t;return null!=(t=G[e.split(".")[0]||e])?t:G.default}function J(e){var t;return null!=(t=G[e])?t:G.default}function W(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)&&B.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 V(e,t){let n=new Map(e.map(e=>[e.id,e]));return(function(e,t){let n=function(e){let t=N(e),n=_(e),r=[...e].sort((e,t)=>{var r,l;return(null!=(r=n.get(t.id))?r:0)-(null!=(l=n.get(e.id))?l:0)||R(e,t)}),l=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=l.get(e.id))?t:e});l.set(e.id,function(e,t){var n,r,l;if(0===t.length)return{...e};let a=[...t].sort(R),o={...null!=(r=e.metrics)?r:{}};for(let t of E){let n=function(e,t,n){var r,l;let a=0,o=!1,i=null==(r=e.metrics)?void 0:r[n];for(let e of("number"==typeof i&&Number.isFinite(i)&&(a+=i,o=!0),t)){let t=null==(l=e.metrics)?void 0:l[n];"number"==typeof t&&Number.isFinite(t)&&(a+=t,o=!0)}return o?a:void 0}(e,a,t);void 0===n?delete o[t]:o[t]=n}let i=null==(n=e.progress)?void 0:n.label,c={current:a.filter(e=>"completed"===e.status).length,total:a.length,...void 0!==i?{label:i}:{}},s=function(e){let t=new Set,n=[];for(let l of e){var r;let e=null==(r=l.provenance)?void 0:r.fingerprint;if("string"==typeof e&&e.length>0){if(t.has(e))continue;t.add(e)}n.push(l)}return n}(a.flatMap(e=>{var t;return null!=(t=e.issues)?t:[]})),u=null!=(l=function(e){let t,n=1/0;for(let r of e){let e=function(e){let t=C.indexOf(e);return t>=0?t:0}(r);e<n&&(n=e,t=r)}return t}(a.map(e=>e.status)))?l: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(R).map(e=>{var t;return null!=(t=l.get(e.id))?t:e})}(e),r=N(n),l=new Set(n.map(e=>e.id)),a=1/0,o=(e,t)=>{var n;let l=t+1<a?(null!=(n=r.get(e.id))?n:[]).filter(t=>t.id!==e.id).map(e=>o(e,t+1)):[];return{...e,children:l}},i=n.filter(e=>void 0===e.parentId||!l.has(e.parentId)).sort(R).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=_(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(W),t)).map(e=>(function e(t,n){var r,l;let a=n.get(t.id),o=null!=(r=null==a?void 0:a.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!=(l=t.metrics)?l:{},issues:Array.isArray(i)?i:[],...void 0!==t.payloadRef?{payloadRef:t.payloadRef}:{},children:t.children.map(t=>e(t,n))}})(e,n))}function Z(e){let t=[],n=e=>{for(let r of e)t.push(r),n(r.children)};return n(e),t.sort(R)}function $(e,t){let n=[],r=(e,l)=>{for(let a of e){if(a.id===t)return n.push(...l),!0;if(r(a.children,[...l,a.id]))return!0}return!1};return r(e,[]),n}let ee=236,et=76;function en(e,t){var n;if(!t)return e;let r=new Map(e),l=null!=(n=r.get(t.id))?n:{dx:0,dy:0};return r.set(t.id,{dx:l.dx+t.dx,dy:l.dy+t.dy}),r}let er=new Set(["running","repairing"]);function el(e){let t=new Set(e.nodes.filter(e=>er.has(e.node.status)).map(e=>e.node.id));if(0===t.size)return ea;let n=new Set;for(let r of e.edges)t.has(r.fromId)&&n.add(r.id);return n}let ea=new Set;function eo(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,l,a;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!=(l=null==i?void 0:i.dx)?l:0),y2:e.y2+(null!=(a=null==i?void 0:i.dy)?a:0)}:e});return{...e,nodes:n,edges:r}}function ei(e){let t=[],n=[],r=0,l=(e,a)=>{let o,i=e.children,c=40+a*(ee+72),s=i.map(e=>({id:e.id,...l(e,a+1)}));for(let l of(0===s.length?(o=40+r*(et+22),r+=1):o=(s[0].y+s[s.length-1].y)/2,t.push({node:e,x:c,y:o,depth:a}),s))n.push({id:"".concat(e.id,"->").concat(l.id),fromId:e.id,toId:l.id,x1:c+ee/2,y1:o+et,x2:l.x+ee/2,y2:l.y});return{x:c,y:o}};for(let t of e)l(t,0),r+=1;let a=t.reduce((e,t)=>Math.max(e,t.x+ee),0),o=t.reduce((e,t)=>Math.max(e,t.y+et),0);return{nodes:t,edges:n,width:a+40,height:o+40}}function ec(e,t){let n=["影响面:".concat(t.kind),"波及 ".concat(t.affectedNodeIds.length," 个节点"),...t.escalate?["超出阈值需人工确认"]:[],...t.rollbackable?[]:["不可回滚:按 11.1 需回滚或重新校准,不得当普通改动提交"]];return"请修复节点「".concat(e,"」(").concat(n.join(","),")")}function es(e,t){let n=t>0?t:1;return{dx:e.dx/n,dy:e.dy/n}}let eu=(e,t)=>e.left<t.right&&e.right>t.left&&e.top<t.bottom&&e.bottom>t.top;function ed(e){var t;let{node:n,view:r,box:l,panelWidth:a,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(a,Math.max(0,l.width-2*c)),m=n.x*r.k+r.x,p=n.y*r.k+r.y,f=p+et*r.k,h={left:m,top:p,right:m+ee*r.k,bottom:f},g=l.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(l.height-c,...n,l.height-c)-t)},x=e=>{let t=l.height-e-c,n=(n,r)=>{if(n<c||r<c||n>g||r>t)return!1;let l={left:n,top:r,right:n+d,bottom:r+e};return!s.some(e=>eu(l,e))},a=m+(ee+i)*r.k,o=m-d-i*r.k,x=f+i,y=p-e-i;for(let[e,t]of[[a,x],[a,y],[o,x],[o,y]])if(n(e,t))return{left:e,top:t,maxHeight:Math.max(0,Math.min(v(e,t),l.height-t-c))};let w=[a,o,c,g],b=[x,y,c,t,...s.flatMap(t=>[t.bottom+i,t.top-e-i])],k=null,j=1/0;for(let r of w)for(let l of b){let a=u(r,c,g),o=u(l,c,Math.max(c,t));if(!n(a,o))continue;let i={left:a,top:o,right:a+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*!!eu(i,h);s<j&&(j=s,k={left:a,top:o})}return k?{...k,maxHeight:v(k.left,k.top)}:null};if(e.pin){let t=u(e.pin.left,c,g),n=u(e.pin.top,c,Math.max(c,l.height-2*c));return{left:t,top:n,maxHeight:Math.max(0,Math.min(v(t,n),l.height-n-c))}}let y=Math.min(o,Math.max(0,l.height-2*c)),w=x(y);if(w)return w;let b=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:8,r=e.height-n,l=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),a=0,o=n;for(let e of l)e.start>o&&(a=Math.max(a,e.start-o)),o=Math.max(o,e.end);return Math.max(a,r-o)}(l,s,c)-i;if(b>0&&b<y){let e=x(Math.max(120,b));if(e)return e}return null!=(t=null!=w?w:x(Math.max(120,b)))?t:{left:u(m+(ee+i)*r.k,c,g),top:c,maxHeight:Math.max(0,l.height-2*c)}}function em(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 ep(e){return void 0===e?"—":(0,M.a)(e,{unit:"ms",style:"fine"})}let ef=[{key:"note",format:e=>String(e)},{key:"chars",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 eh(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=[];for(let{key:r,format:l}of ef){let a=e[r];if(void 0===a||""===a||!1===a)continue;let o=l(a);if(o.trim()&&(n.push(o),n.length>=t))break}return n}function eg(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,{_:()=>x});var r=n(65321),l=n(97109),a=n(48399),o=n(33442),i=n(14932),c=n(11702),s=n(85114),u=n(55897),d=n(57271),m=n(7576),p=n(54746),f=n(7492),h=n(96651),g=n(60470);let{Text:v}=a.A;function x(e){let{value:t,onChange:n,onSend:a,generating:x,submitting:y,disabled:w,disabledReason:b,selectedNode:k,onMentionSelected:j,resumable:A,onContinue:I,quickActions:S,requireGenerationSetup:M=!1,promptOptions:C=[],projectOptions:E=[],selectedPrompts:R=[],selectedProject:N=null,onSelectPrompts:_,onSelectProject:T,onPreviewStructure:B,collapsed:D=!1,onToggleCollapsed:q}=e,[z,P]=(0,l.useState)(!D);(0,l.useEffect)(()=>{if(!D)return void P(!0);let e=window.setTimeout(()=>P(!1),200);return()=>window.clearTimeout(e)},[D]);let O=(0,l.useRef)(null);(0,l.useEffect)(()=>{var e;D||null==(e=O.current)||e.focus()},[D,z]);let[F,H]=(0,l.useState)(!1),U=M?[0===R.length?"提示词":"",!N?"项目":""].filter(Boolean):[],L=U.length>0,Q=w?b||"当前不可发起生成":L?"请先用左侧「+」选择".concat(U.join(" 与 "),"——未选齐时不能发起生成"):x?"有任务正在运行:发送将加入生成队列(前面任务完成后自动开始)":"发送后将创建生成任务,画布随节点日志实时增长";return(0,r.jsxs)("div",{className:"canvasInputBar".concat(D&&!z?" canvasInputBarCollapsed":""),children:[z&&(0,r.jsxs)("div",{className:"canvasInputPanel".concat(D?" isLeaving":""),children:[(0,r.jsxs)(o.A,{wrap:!0,size:6,style:{marginBottom:6},children:[k&&(0,r.jsx)(i.A,{title:"把「@".concat(k.title,"」插入输入框(可见文本,可自行修改)"),children:(0,r.jsx)(c.A,{color:"blue",style:{cursor:"pointer"},onClick:j,children:"@ ".concat(k.title)})}),!k&&(0,r.jsx)(v,{type:"secondary",style:{fontSize:12},children:"点选一个节点后可 @ 提及它"}),A&&!x&&(0,r.jsx)(s.Ay,{size:"small",type:"link",onClick:I,children:"继续生成"}),null==S?void 0:S.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:F,onOpenChange:H,content:(0,r.jsxs)("div",{style:{width:360,display:"flex",flexDirection:"column",gap:8},children:[M&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(v,{strong:!0,style:{fontSize:13},children:"提示词"}),(0,r.jsx)(d.A,{mode:"multiple",style:{width:"100%",marginTop:4},value:R.map(e=>e.value),placeholder:0===C.length?"该项目暂无提示词":"选择提示词(至少一份;可多选)",options:C,onChange:e=>null==_?void 0:_(e)})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)(v,{strong:!0,style:{fontSize:13},children:"项目"}),(0,r.jsx)(d.A,{style:{width:"100%",marginTop:4},value:null==N?void 0:N.value,showSearch:!0,optionFilterProp:"label",placeholder:0===E.length?"本项目知识库里还没有资料:先到知识库页上传并入库":"选择项目(= 知识库里这个项目的资料,决定本次用哪份材料)",options:E,onChange:e=>null==T?void 0:T(e)})]}),(0,r.jsx)(v,{type:"secondary",style:{fontSize:12},children:"两者选齐后才能点「生成」。「项目」选的是入库到本地知识库的那份项目资料(清单/图纸/招标文件都在其中)——本次生成只用它,不会把库里别的项目材料混进来。提示词的正文按名字进入对应链路(总控/写作 → 写作链,清单/图纸/提取 → 事实抽取链,排版 → 格式链);章节大纲取自其中带 <OUTLINE> 的那一份,且只能有一份声明大纲。"})]}),!M&&(0,r.jsx)(v,{type:"secondary",style:{fontSize:12},children:"提示词与项目取自这条记录本身(章节结构由记录里那份提示词的大纲派生),不需要在这里再选。"}),(0,r.jsx)("div",{children:(0,r.jsx)(s.Ay,{size:"small",block:!0,disabled:L,onClick:()=>{H(!1),null==B||B()},children:"结构预览(章清单与小节)"})})]}),children:(0,r.jsx)(s.Ay,{style:{marginLeft:"5px"},size:"small",icon:(0,r.jsx)(p.A,{}),type:L?"primary":"default",children:"提示词 / 项目"})}),R.map(e=>(0,r.jsx)(c.A,{color:"blue",closable:!0,onClose:t=>{t.preventDefault(),null==_||_(R.filter(t=>t.value!==e.value).map(e=>e.value))},children:"提示词:".concat(e.label)},e.value)),N&&(0,r.jsx)(c.A,{color:"geekblue",closable:!0,onClose:e=>{e.preventDefault(),null==T||T("")},children:"项目:".concat(N.label)})]}),(0,r.jsxs)(o.A.Compact,{style:{width:"100%"},children:[(0,r.jsx)(m.A.TextArea,{ref:O,value:t,onChange:e=>n(e.target.value),onPressEnter:e=>{!e.shiftKey&&(e.preventDefault(),w||y||a())},autoSize:{minRows:1,maxRows:5},placeholder:"描述你的需求;可用上面的 @ 提及把节点带进正文(Enter 发送,Shift+Enter 换行)。篇幅由招标文件页数上限与标书类型自动决定:需求里写字数/页数不会改变篇幅目标",disabled:w}),(0,r.jsx)(i.A,{title:Q,children:(0,r.jsx)(s.Ay,{type:"primary",icon:(0,r.jsx)(f.A,{}),loading:y,disabled:w||L||!t.trim(),onClick:a,children:x?"排队提交":"生成"})})]})]}),(0,r.jsx)("div",{className:"canvasInputHandleRow",children:D&&!z?(0,r.jsx)(i.A,{title:"展开输入框:写要求、@ 节点、发起或排队生成",placement:"top",children:(0,r.jsx)("button",{type:"button",className:"canvasInputHandle isCollapsed","aria-expanded":!1,"aria-label":"展开输入框",onClick:()=>null==q?void 0:q(!1),children:(0,r.jsx)(h.A,{})})}):(0,r.jsx)(i.A,{title:"收起输入框(画布上只留一个把手,随时点回来)",placement:"top",children:(0,r.jsx)("button",{type:"button",className:"canvasInputHandle","aria-label":"收起输入框",onClick:()=>null==q?void 0:q(!0),children:(0,r.jsx)(g.A,{})})})})]})}},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),l=n(48399),a=n(25258),o=n(85114),i=n(85493),c=n(38332);let{Paragraph:s}=l.A;function u(e){let{open:t,title:n,chapters:l,outlineSource:u,materialScope:d,onClose:m}=e,p=l.length>0?"结构预览:".concat(n,"(").concat(l.length," 章").concat(u?",大纲来源:".concat(u):"",")"):"结构预览:".concat(n);return(0,r.jsxs)(a.A,{open:t,title:p,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:"章和已声明小节来自用户提示词大纲。技能候选尚未确定位置;生成时会结合真实资料和技术职责进行专业规划,可能合并、调整或归入其他章节。 最终目录以完成规划后的文档为准。"}),d&&(0,r.jsx)(i.A,{type:"info",showIcon:!0,style:{marginBottom:8},message:"本次项目资料:".concat(d.root||"(未指定)","(").concat(d.fileCount," 份文件)"),description:"资料范围已锁定在所选项目资料内:库里其它项目的材料不会进入本篇。"}),0===l.length&&(0,r.jsx)(i.A,{type:"info",showIcon:!0,message:"本次没有派生出章清单",description:"派生的硬约束是提示词(或输入框要求)里要有 ≥2 章的显式大纲;缺大纲时服务端会直接拒绝这次生成,并在提示里说清缺什么。"}),(0,r.jsx)(c.A,{size:"small",dataSource:l,renderItem:(e,t)=>{var n;return(0,r.jsx)(c.A.Item,{children:(0,r.jsx)(c.A.Item.Meta,{title:"".concat(t+1,". ").concat(e.title),description:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{children:["用户声明:",(0,r.jsx)("span",{children:e.sections.length>0?e.sections.join("、"):"(未声明小节)"})]}),(null==(n=e.candidateSections)?void 0:n.length)?(0,r.jsxs)("div",{children:["技能候选(待规划):",(0,r.jsx)("span",{children:e.candidateSections.join("、")})]}):null]})})})}})]})}},45551:(e,t,n)=>{n.d(t,{Jm:()=>c,fw:()=>a,je:()=>r.j,mc:()=>s,z3:()=>l});var r=n(96538);function l(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";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),l=Math.floor(r/24);return l>30?new Date(e).toLocaleDateString(t):"en-US"===t?l>0?"".concat(l,"d ago"):r>0?"".concat(r,"h ago"):n>0?"".concat(n,"m ago"):"Just now":l>0?"".concat(l," 天前"):r>0?"".concat(r," 小时前"):n>0?"".concat(n," 分钟前"):"刚刚"}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:()=>s,VF:()=>a,WF:()=>i,be:()=>c,s_:()=>u,xA:()=>o});var r=n(97109),l=n(8090);let a=24;function o(e,t,n,r){let l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.15,a=r&&r.right>r.left&&r.bottom>r.top?r:{left:0,top:0,right:n.width,bottom:n.height},o=Math.max(1,a.right-a.left),i=Math.max(1,a.bottom-a.top),c=e.x*t.k+t.x,s=e.y*t.k+t.y,u=c+e.width*t.k,d=s+e.height*t.k,m=a.left+o*l,p=a.right-o*l,f=a.top+i*l,h=a.bottom-i*l;return c<m||s<f||u>p||d>h}let i=12e3;function c(e){if(!e.following)return{label:"跟随最新",title:"跟随已关闭:点一下重新打开(打开后会跟着当前活跃节点走)",paused:!1};if(e.pausedUntil>e.now){let t=Math.max(1,Math.ceil((e.pausedUntil-e.now)/1e3));return{label:"跟随暂停中",title:"跟随暂停:".concat(t,"s 后自动恢复(你刚动过视口;不是关掉了)"),paused:!0}}return e.node?{label:"跟随中",title:"正在跟随:".concat(e.node.title).concat(void 0!==e.node.round?"(第 ".concat(e.node.round," 轮)"):""),paused:!1}:{label:"跟随中",title:"跟随中:当前没有活跃节点可跟(生成开始后会自动跟上)",paused:!1}}function s(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:24,l=t.x,a=t.y,o=t.x+e.width*t.k,i=t.y+e.height*t.k,c=Math.min(o,n.right)-Math.max(l,n.left),s=Math.min(i,n.bottom)-Math.max(a,n.top);return c>=r&&s>=r?{dx:0,dy:0}:{dx:n.left+r-l,dy:n.top+r-a}}function u(){let[e,t]=(0,r.useState)({x:0,y:0,k:1}),n=(0,r.useRef)(null),a=(0,r.useRef)(null),o=(0,r.useRef)(e);(0,r.useEffect)(()=>{o.current=e},[e]);let i=(0,r.useCallback)((e,r,l)=>{t(t=>{var a;let o=Math.min(2,Math.max(.1,t.k*e)),i=null==(a=n.current)?void 0:a.getBoundingClientRect();if(!i||void 0===r||void 0===l)return{...t,k:o};let c=(r-i.left-t.x)/t.k,s=(l-i.top-t.y)/t.k;return{k:o,x:r-i.left-c*o,y:l-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;a.current={pointerId:e.pointerId,startX:e.clientX,startY:e.clientY,originX:t.x,originY:t.y}},[]),d=(0,r.useCallback)(e=>{let n=a.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)(()=>{a.current=null},[]),p=(0,r.useCallback)(()=>t({x:0,y:0,k:1}),[]),f=(e,t)=>null!=t?t:{left:0,top:0,right:e.width,bottom:e.height},h=(0,r.useCallback)((e,r,l)=>{t(t=>{var a;let o=null==(a=n.current)?void 0:a.getBoundingClientRect();if(!o||e<=0||r<=0)return{...t,x:0,y:0};let i=f(o,l),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,a,o)=>{t(t=>{var i;let c=null==(i=n.current)?void 0:i.getBoundingClientRect();if(!c)return t;let s=f(c,o),u=null!=a?a:t.k,d=(s.left+s.right)/2,m=(s.top+s.bottom)/2;return{k:u,x:d-(e+l.zT/2)*u,y:m-(r+l.EL/2)*u}})},[]);return{view:e,containerRef:n,zoomAt:i,onPointerDown:u,onPointerMove:d,endDrag:m,reset:p,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),l=n(97109),a=n(17807),o=n(42700),i=n(84253),c=n(32965),s=n(14932),u=n(75174),d=n(1310),m=n(58209),p=n(39507),f=n(6578),h=n(93533),g=n(45551);let v="canvas:recordsBallPos";function x(e){let{currentDocumentId:t,projectRoot:n,onSelect:x,onCurrentDeleted:w}=e,b=(0,p.Vr)(),{message:k}=a.A.useApp(),j=(0,l.useRef)(null),[A,I]=(0,l.useState)([]),[S,M]=(0,l.useState)(!1),[C,E]=(0,l.useState)(!1),[R,N]=(0,l.useState)(1),[_,T]=(0,l.useState)(!1),[B,D]=(0,l.useState)([]),[q,z]=(0,l.useState)(!1),[P,O]=(0,l.useState)(null),[F,H]=(0,l.useState)(!0),U=(0,l.useRef)(null);(0,l.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=j.current)||null==(e=t.parentElement)?void 0:e.getBoundingClientRect();if(!r)return void O(n);O({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 L=(0,l.useCallback)(async()=>{M(!0);try{let e=await (0,f.cQ)(n||void 0);I(e.documents||[])}catch(e){I([])}finally{M(!1)}},[n]);(0,l.useEffect)(()=>{L()},[L]),(0,l.useEffect)(()=>{C&&L()},[C,L]),(0,l.useEffect)(()=>{let e=setInterval(()=>{L()},3e3);return()=>clearInterval(e)},[L]),(0,l.useEffect)(()=>{N(1),D([])},[C]);let Q=(0,l.useMemo)(()=>A.slice((R-1)*8,8*R),[A,R]),Y=(0,l.useCallback)(e=>!(0,h.Ce)(e.status),[]),X=Q.filter(Y).map(e=>e.id),G=()=>{if(!C){var e,t,n;let r=null==(t=j.current)||null==(e=t.parentElement)?void 0:e.getBoundingClientRect(),l=null==(n=j.current)?void 0:n.getBoundingClientRect();H(!r||!l||l.top-r.top>252)}E(e=>!e)},K=async e=>{try{await (0,f.QG)(e.id,e.projectRoot||n||void 0),k.success(b("common.success")),D(t=>t.filter(t=>t!==e.id)),e.id===t&&w(),await L()}catch(e){k.error(b("common.error"))}},J=async()=>{let e=A.filter(e=>B.includes(e.id)&&Y(e));if(0!==e.length){z(!0);try{await Promise.all(e.map(e=>(0,f.QG)(e.id,e.projectRoot||n||void 0))),k.success(b("records.deletedCount").replace("{count}",String(e.length))),t&&e.some(e=>e.id===t)&&w(),D([]),T(!1),await L()}catch(e){k.error(b("common.error"))}finally{z(!1)}}},W=P?{left:P.left,top:P.top}:{right:24,bottom:96};return(0,r.jsxs)("div",{className:"canvasRecordsBall",ref:j,style:{position:"absolute",zIndex:3,...W},children:[C&&(0,r.jsxs)("div",{className:"canvasRecordsPanel",style:{position:"absolute",right:0,width:320,maxHeight:420,display:"flex",flexDirection:"column",...F?{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:[b("records.title"),(0,r.jsx)("span",{className:"ml-2 font-normal text-xs text-[var(--colorTextTertiary)]",children:A.length})]}),(0,r.jsx)("button",{type:"button",className:"canvasRecordsLink",onClick:()=>{T(e=>!e),D([])},children:_?b("common.cancel"):b("records.batch")})]}),(0,r.jsx)("div",{className:"flex-1 min-h-0 overflow-y-auto",children:S&&0===A.length?(0,r.jsx)("div",{className:"py-10 text-center",children:(0,r.jsx)(o.A,{size:"small"})}):0===A.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:b("records.empty")})})}):Q.map(e=>{var n;let l=e.id===t,a=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(l?"bg-[var(--colorBgSelected)]":"hover:bg-[var(--colorBgHover)]"),children:[_&&(0,r.jsx)("input",{type:"checkbox",className:"mt-1 shrink-0",disabled:!a,checked:B.includes(e.id),onChange:t=>D(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),E(!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(l?"font-semibold text-[var(--colorText)]":"text-[var(--colorText)]"),children:e.title}),l&&(0,r.jsx)("span",{className:"shrink-0 text-[10px] text-[var(--colorTextTertiary)]",children:b("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")]})]}),!_&&a&&(0,r.jsx)(c.A,{title:b("records.confirmDelete"),description:b("records.deleteHint"),onConfirm:()=>{K(e)},okText:b("common.confirm"),cancelText:b("common.cancel"),children:(0,r.jsx)("button",{type:"button",className:"canvasRecordsDelete",title:b("common.delete"),children:(0,r.jsx)(m.A,{})})}),!_&&!a&&(0,r.jsx)(s.A,{title:b("records.inFlightHint"),children:(0,r.jsx)("span",{className:"canvasRecordsDelete isDisabled",children:(0,r.jsx)(m.A,{})})})]},e.id)})}),A.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:A.length,pageSize:8,onChange:N})}),_&&(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:b("records.checkedCount").replace("{count}",String(B.length))}),(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("button",{type:"button",className:"canvasRecordsLink",onClick:()=>D(B.length===X.length?[]:X),children:B.length===X.length&&X.length>0?b("records.clearSelect"):b("records.selectPage")}),(0,r.jsx)(c.A,{title:b("records.confirmDeleteSelected").replace("{count}",String(B.length)),description:b("records.deleteHint"),disabled:0===B.length,onConfirm:()=>{J()},okText:b("common.confirm"),cancelText:b("common.cancel"),children:(0,r.jsxs)("button",{type:"button",className:"canvasRecordsDanger",disabled:0===B.length||q,children:[(0,r.jsx)(m.A,{className:"mr-1"}),b("records.deleteSelected")]})})]})]})]}),(0,r.jsxs)("div",{className:"canvasRecordsBallBtn",role:"button",tabIndex:0,"aria-label":"".concat(b("records.title"),"(").concat(A.length,")"),style:{width:44,height:44},onPointerDown:e=>{var t,n,r;let l=null==(n=j.current)||null==(t=n.parentElement)?void 0:t.getBoundingClientRect(),a=null==(r=j.current)?void 0:r.getBoundingClientRect();if(l&&a){U.current={pointerId:e.pointerId,startX:e.clientX,startY:e.clientY,originLeft:a.left-l.left,originTop:a.top-l.top,moved:!1};try{e.currentTarget.setPointerCapture(e.pointerId)}catch(e){}}},onPointerMove:e=>{var t,n;let r=U.current,l=null==(n=j.current)||null==(t=n.parentElement)?void 0:t.getBoundingClientRect();if(!r||r.pointerId!==e.pointerId||!l)return;let a=e.clientX-r.startX,o=e.clientY-r.startY;!r.moved&&5>Math.hypot(a,o)||(r.moved=!0,O({left:Math.min(Math.max(8,r.originLeft+a),Math.max(8,l.width-44-8)),top:Math.min(Math.max(8,r.originTop+o),Math.max(8,l.height-44-8))}))},onPointerUp:e=>{let t=U.current;U.current=null;try{e.currentTarget.releasePointerCapture(e.pointerId)}catch(e){}if(t){if(t.moved)return void O(e=>{if(e)try{window.localStorage.setItem(v,JSON.stringify(e))}catch(e){}return e});G()}},onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),G())},children:[(0,r.jsx)(d.A,{}),(0,r.jsx)("span",{className:"canvasRecordsBallBadge".concat(0===A.length?" isZero":""),children:A.length>99?"99+":A.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)]"}},93533:(e,t,n)=>{n.d(t,{Ce:()=>k,tl:()=>A});var r=n(97109),l=n(96538),a=n(94394),o=n(23216),i=n(26619),c=n(8263),s=n(16285),u=n(8579),d=n(29071),m=n(7851),p=n(1310),f=n(26631),h=n(83914),g=n(6578);async function v(e){let t,n=0;for(;;){var r,l;let a;if(e.cancelled())throw Error("用户中止");try{a=await e.read(t)}catch(t){if(e.cancelled())throw Error("用户中止",{cause:t});1===(n+=1)&&(null==(r=e.connectionInterrupted)||r.call(e,t)),await e.delay(Math.min(2e3*n,15e3));continue}n=0;let o=a.document;if(!o){if(!a.unchanged&&!a.status)throw Error("未找到生成记录,无法读取该任务进度");["paused","failed","aborted","completed","completed_with_issues","warning"].includes(null!=(l=a.status)?l:"")&&(t=void 0),await e.delay(1500);continue}if(t=o.updatedAt,e.apply(o),"paused"===o.status)return o;if("failed"===o.status||"aborted"===o.status)throw Error(o.error||("aborted"===o.status?"生成已中止":"生成失败"));if(["completed","completed_with_issues","warning"].includes(o.status)){if(o.draft)return o;throw Error(o.error||"服务任务已结束,但最终成稿未完成;已保存的正文可在生成记录中查看")}await e.delay(1500)}}let x=null,y=!1;function w(){null==x||x.listeners.forEach(e=>e())}let b=a.i_;function k(e){return"completed"!==e&&"completed_with_issues"!==e&&"warning"!==e&&"failed"!==e&&"aborted"!==e&&"paused"!==e}function j(e){var t,n,l,a,h,g,v,x,y;let w=null==(t=e.agentWorkflow)?void 0:t.nodes;if(!w||0===w.length)return null;let k=[...w].sort((e,t)=>{var n,r;return(null!=(n=e.seq)?n:0)-(null!=(r=t.seq)?r:0)}).map(e=>{let t=b[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",l=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:l,status:n,icon:function(e){let t=e.split(".")[0]||e;return"role_binding"===e||"prepare"===t?(0,r.createElement)(o.A):"knowledge_retrieval"===e||"understand"===t?(0,r.createElement)(i.A):"file_understanding"===e||"skill"===t?(0,r.createElement)(c.A):"fact_extraction"===e?(0,r.createElement)(s.A):"chapter_generation"===e||"chapter"===t||"write"===t?(0,r.createElement)(u.A):"llm_review"===e||"turn"===t||"round"===t?(0,r.createElement)(d.A):"validation"===e||"repair"===t||"recheck"===t?(0,r.createElement)(m.A):"plan"===t||"blueprint"===t?(0,r.createElement)(o.A):"rollback"===t||"snapshot"===t?(0,r.createElement)(p.A):(0,r.createElement)(f.A)}(e.type),subSteps:[]}}),j="generating"===e.status||"queued"===e.status?null!=(v=null!=(g=null==(n=k.find(e=>"process"===e.status))?void 0:n.key)?g:null==(l=k.at(-1))?void 0:l.key)?v:null:("failed"===e.status||"aborted"===e.status)&&null!=(y=null!=(x=null==(a=k.find(e=>"error"===e.status))?void 0:a.key)?x:null==(h=k.at(-1))?void 0:h.key)?y:null;return{steps:k,activeKey:j}}function A(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{projectRoot:a,documents:o,onNotice:i,t:c,onGenerated:s}=n,[u,d]=(0,r.useState)([]),[m,p]=(0,r.useState)(null),[f,b]=(0,r.useState)(!1),[A,I]=(0,r.useState)(null),[S,M]=(0,r.useState)(""),[C,E]=(0,r.useState)(null),[R,N]=(0,r.useState)(null!=(e=n.documentId)?e:null),[_,T]=(0,r.useState)(null),[B,D]=(0,r.useState)(null!=o?o:[]),[q,z]=(0,r.useState)(0),[P,O]=(0,r.useState)(null),[F,H]=(0,r.useState)([]),[U,L]=(0,r.useState)(null),[Q,Y]=(0,r.useState)(null),X=(0,r.useRef)(""),G=(0,r.useRef)(new Map),K=(0,r.useRef)(new Map),J=(0,r.useRef)(!1),W=(0,r.useRef)(a),V=(0,r.useRef)(R),Z=(0,r.useRef)(u),$=(0,r.useRef)(m),ee=(0,r.useRef)(f),et=(0,r.useRef)(c),en=(0,r.useRef)(i),er=(0,r.useRef)(s);(0,r.useEffect)(()=>{W.current=a},[a]),(0,r.useEffect)(()=>{V.current=R},[R]),(0,r.useEffect)(()=>{Z.current=u},[u]),(0,r.useEffect)(()=>{$.current=m},[m]),(0,r.useEffect)(()=>{ee.current=f},[f]),(0,r.useEffect)(()=>{et.current=c},[c]),(0,r.useEffect)(()=>{en.current=i},[i]),(0,r.useEffect)(()=>{er.current=s},[s]);let el=(0,r.useMemo)(()=>"activeGenDocId:".concat(a||"default"),[a]),ea=(0,r.useCallback)(e=>{var t;null==(t=en.current)||t.call(en,e)},[]),eo=(0,r.useCallback)((e,t)=>{var n,r;return null!=(r=null==(n=et.current)?void 0:n.call(et,e))?r:t},[]);(0,r.useEffect)(()=>{let e=()=>{let e=x;e&&(d(e.flowSteps),p(e.activeFlowKey),b(e.loading),e.documentId&&N(e.documentId),e.draft&&I(e.draft),void 0!==e.content&&M(e.content))},t=x;return null==t||t.listeners.add(e),e(),()=>{null==t||t.listeners.delete(e)}},[]);let ei=(0,r.useRef)(!1),ec=(0,r.useCallback)(async()=>{try{D((await (0,g.cQ)(W.current||void 0)).documents),ei.current=!1}catch(e){ei.current||(ei.current=!0,ea({kind:"error",text:"生成记录列表读取失败——界面显示的可能不是最新内容,请稍后重试或查看服务端日志"}))}},[ea]);(0,r.useEffect)(()=>{o&&D(o)},[o]),(0,r.useEffect)(()=>{void 0!==n.documentId&&null!==n.documentId&&N(n.documentId)},[n.documentId]);let es=(0,r.useCallback)(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ee.current;(null==x?void 0:x.loading)&&(x.flowSteps=e,x.activeFlowKey=t,x.loading=n,w())},[]),eu=(0,r.useCallback)(e=>{let t=Date.now();for(let n of e){let e=G.current.get(n.key);"process"!==n.status||e?("finish"===n.status||"error"===n.status||"warning"===n.status)&&e&&!e.endedAt&&G.current.set(n.key,{...e,endedAt:t}):G.current.set(n.key,{startedAt:t})}},[]),ed=(0,r.useCallback)(e=>{var t,n,r,l,a,o,i,c,s,u,m;let f=(null==(t=e.agentWorkflow)?void 0:t.nodes)||[],h="".concat(e.id,"|").concat(e.updatedAt,"|").concat(e.status,"|").concat(e.error||"","|n").concat(f.length,":").concat(f.map(e=>{var t,n,r,l;return"".concat(e.id,"=").concat(e.status,":").concat(null!=(r=null==(t=e.progress)?void 0:t.current)?r:0,"/").concat(null!=(l=null==(n=e.progress)?void 0:n.total)?l:0)}).join(","));if(X.current===h)return;X.current=h,E(e);let{steps:g,activeKey:v}=function(e){var t;return arguments.length>1&&void 0!==arguments[1]&&arguments[1],null!=(t=j(e))?t:{steps:[],activeKey:null}}(e);eu(g);let x=k(e.status);d(g),p(v),b(x),es(g,v,x),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),M(e.editedMarkdown||e.markdown),H(e.exportReports||[]),Y({docId:e.id,...(null==(n=e.deliveryQuality)?void 0:n.receipt)||(null==(r=e.reviewMetadata)?void 0:r.contractQuality)?{contractQuality:null!=(u=null==(l=e.deliveryQuality)?void 0:l.receipt)?u:e.reviewMetadata.contractQuality}:{},...(null==(a=e.deliveryQuality)?void 0:a.stale)||(null==(o=e.reviewMetadata)?void 0:o.contractQualityStale)?{contractQualityStale:null!=(m=null==(i=e.deliveryQuality)?void 0:i.stale)?m:e.reviewMetadata.contractQualityStale}:{},...e.projectRoot?{projectRoot:e.projectRoot}:{},...(null==(s=e.reviewMetadata)||null==(c=s.telemetry)?void 0:c.repairChainNetChars)?{netChars:e.reviewMetadata.telemetry.repairChainNetChars}:{}}))},[es,eu]),em=(0,r.useCallback)(e=>{e.id&&N(e.id),ed(e)},[ed]),ep=(0,r.useCallback)((e,t)=>v({cancelled:()=>!!(null==t?void 0:t.aborted),apply:ed,delay:e=>new Promise(t=>window.setTimeout(t,e)),connectionInterrupted:()=>ea({kind:"warning",text:"暂时无法读取生成进度,正在重新连接;生成状态以服务端回执为准"}),read:async n=>{let r=new AbortController;t&&(t.pollController=r);try{return await (0,g.v7)(e,!0,W.current||void 0,r.signal,n)}finally{(null==t?void 0:t.pollController)===r&&(t.pollController=void 0)}}}),[ed,ea]),ef=(0,r.useCallback)(async(e,t)=>{if(!e.specId)return;let n=e.title,l=e.promptIds,a=e.projectRoot||W.current;if((null==x?void 0:x.aborted)&&(x=null),null==x?void 0:x.loading){if(J.current)return;if(!a)return void ea({kind:"error",text:"未识别当前项目,请先选择或打开项目后再生成文件"});J.current=!0;try{let e=await (0,g.OX)({promptIds:l,...n?{title:n}:{},requirement:t,projectRoot:a});await ec(),ea({kind:"info",text:e.queuePosition?"已加入生成队列(第 ".concat(e.queuePosition," 位):前面任务完成后将自动开始"):"生成任务已创建"})}catch(e){ea({kind:"error",text:e instanceof Error?e.message:"创建生成任务失败"})}finally{J.current=!1}return}if(!a)return void ea({kind:"error",text:"未识别当前项目,请先选择或打开项目后再生成文件"});b(!0);let o=Z.current,i=o.length>0?o:[{key:"prepare",title:"正在创建生成任务",description:"系统正在创建后台生成任务,请稍候。",status:"process",icon:(0,r.createElement)(h.A),subSteps:[{key:"start",title:"准备生成任务",status:"process"}]}],c=$.current||"prepare";d(i),p(c);let s=(0,g.OX)({promptIds:l,...n?{title:n}:{},requirement:t,projectRoot:a});x={id:Date.now(),specId:e.specId,loading:!0,flowSteps:i,activeFlowKey:c,promise:s,listeners:new Set};try{var u,m,f,v,k,A;let t=await s;t.documentId&&(localStorage.setItem(el,t.documentId),N(t.documentId),(null==x?void 0:x.promise)===s&&(x.documentId=t.documentId)),await ec(),t.queuePosition&&ea({kind:"info",text:"已加入生成队列(第 ".concat(t.queuePosition," 位):前面任务完成后将自动开始")});let n=t.documentId?await ep(t.documentId,(null==x?void 0:x.promise)===s?x:void 0):void 0;if((null==n?void 0:n.status)==="paused"){(null==x?void 0:x.promise)===s&&(x.loading=!1,w(),x=null),localStorage.removeItem(el),await ec(),ea({kind:"info",text:"生成已在节点边界暂停,已保存实际正文和执行状态"});return}let r=t.draft||(null==n?void 0:n.draft);if(!r)throw Error("生成结果为空");(t.documentId||(null==n?void 0:n.id))&&N(t.documentId||n.id),I(r),M((null==n?void 0:n.editedMarkdown)||(null==n?void 0:n.markdown)||r.markdown),(null==x?void 0:x.promise)===s&&(x.draft=r,x.content=(null==n?void 0:n.editedMarkdown)||(null==n?void 0:n.markdown)||r.markdown);let l=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==(f=t.record)?void 0:f.templateName)||(null==(v=t.documentSpec)?void 0:v.title),title:r.title,requirement:r.requirement,projectRoot:r.projectRoot||W.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:a}=null!=(A=j(l))?A:{steps:[],activeKey:null};d(a),es(a,"done",!1),p("done"),(null==x?void 0:x.promise)===s&&(x.activeFlowKey="done",x.loading=!1,w(),x=null),localStorage.removeItem(el),await ec(),ea("completed"===l.status?{kind:"success",text:"生成完成,专业交付检查已通过"}:{kind:"warning",text:"本轮运行已结束,实际稿仍有问题待复核,可导出审阅稿"}),(t.documentId||(null==n?void 0:n.id))&&(null==(k=er.current)||k.call(er,t.documentId||n.id))}catch(r){localStorage.removeItem(el);let e=r instanceof Error?r.message:eo("common.error","出错了"),t=y;y=!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 es(n,$.current,!1),n}),(null==x?void 0:x.promise)===s&&(x.loading=!1,x.error=e,w(),x=null),await ec(),n?ea({kind:"warning",text:"生成任务已被中止(可能来自其他窗口):可在列表中点击「继续生成」恢复"}):t||ea({kind:"error",text:e})}finally{b(!1),y=!1,(null==x?void 0:x.promise)===s&&(x.loading=!1,w())}},[ea,ec,es,el,eo,ep]),eh=(0,r.useCallback)(e=>{let t=K.current.get(e);t&&(clearInterval(t),K.current.delete(e))},[]),eg=(0,r.useCallback)((e,t)=>{eh(e);let n=setInterval(()=>{(async()=>{try{let{document:n}=await (0,g.v7)(e,!0,t||W.current||void 0);if(!n)return;ed(n),await ec(),k(n.status)||(eh(e),localStorage.removeItem(el))}catch(e){}})()},2e3);K.current.set(e,n)},[ed,ec,eh,el]);(0,r.useEffect)(()=>()=>{for(let e of K.current.values())clearInterval(e);K.current.clear()},[]),(0,r.useEffect)(()=>{if(0===B.length)return;let e=localStorage.getItem(el);if(!e)return;if(!B.find(t=>t.id===e&&("generating"===t.status||"queued"===t.status)))return void localStorage.removeItem(el);N(e);let t=setInterval(()=>{(async()=>{try{let{document:n}=await (0,g.v7)(e,!1,W.current||void 0);if(!n)return;await ec(),"generating"!==n.status&&"queued"!==n.status&&(localStorage.removeItem(el),clearInterval(t))}catch(e){clearInterval(t)}})()},3e3);return()=>clearInterval(t)},[B,ec,el]),(0,r.useEffect)(()=>{var e;if(!R)return;let t=B.find(e=>e.id===R),n=null!=(e=null==t?void 0:t.status)?e:null==C?void 0:C.status;n&&k(n)?eg(R,(null==t?void 0:t.projectRoot)||W.current):eh(R)},[R,B,eg,eh,null==C?void 0:C.status]),(0,r.useEffect)(()=>{if(!f||!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 es(t,m),t}),1400);return()=>window.clearInterval(e)},[m,f,es]),(0,r.useEffect)(()=>{if(!f)return;let e=window.setInterval(()=>z(e=>e+1),1e3);return()=>window.clearInterval(e)},[f]);let ev=(0,r.useCallback)(e=>{var t;let n=G.current.get(e);if(!n)return null;let r=null!=(t=n.endedAt)?t:Date.now(),a=(0,l.a)(r-n.startedAt,{unit:"ms",style:"fine"});return n.endedAt?a:"".concat(a,"(运行中)")},[q]),ex=(0,r.useCallback)(async e=>{x&&(y=!0);let t=V.current,n=null;if(t&&await (0,g.r)(t,e||W.current||void 0).catch(e=>{n=e}),x){var r;x.aborted=!0,null==(r=x.pollController)||r.abort(),x.loading=!1,x.error="用户中止",w(),x=null}for(let e of(localStorage.removeItem(el),K.current.values()))clearInterval(e);K.current.clear(),b(!1),d([]),p(null),T("用户中止"),await ec(),ea(n?{kind:"error",text:"本地已停止跟踪,但服务端未确认中止(".concat(n instanceof Error?n.message:String(n),")——任务可能仍在后台运行,请稍后重试或查看服务端日志")}:{kind:"success",text:"已中止生成任务"})},[ea,ec,el]),ey=(0,r.useCallback)(async e=>{if((null==x?void 0:x.loading)&&x.documentId===e.id){var t;y=!0,x.aborted=!0,null==(t=x.pollController)||t.abort(),x.loading=!1,x.error="用户中止",w(),x=null,b(!1)}localStorage.removeItem(el),eh(e.id);try{await (0,g.r)(e.id,e.projectRoot||W.current||void 0),ea({kind:"success",text:"queued"===e.status?"已取消排队任务":"已中止生成任务"})}catch(e){ea({kind:"info",text:"任务已不在运行,已刷新状态"})}finally{await ec(),V.current===e.id&&(N(null),E(null),I(null),M(""))}},[ea,ec,eh,el]),ew=(0,r.useCallback)(async e=>{try{N(e.id),b(!0);let t=await (0,g.UQ)(e.id,e.projectRoot||W.current||void 0);localStorage.setItem(el,t.documentId),await ec();let n=await ep(t.documentId);n.draft&&(I(n.draft),M(n.editedMarkdown||n.markdown||n.draft.markdown)),localStorage.removeItem(el),await ec(),ea("paused"===n.status?{kind:"info",text:"生成已暂停,实际稿已保存"}:"completed"===n.status?{kind:"success",text:"已继续生成并通过专业交付检查"}:{kind:"warning",text:"继续生成已结束,实际稿仍待复核,可导出审阅稿"})}catch(e){ea({kind:"error",text:e instanceof Error?e.message:"继续生成失败"})}finally{b(!1)}},[ea,ec,el,ep]),eb=(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||W.current||void 0})});if(!n.ok)throw Error(await n.text()||"HTTP ".concat(n.status));let r=await n.json();return ea({kind:"success",text:r.message||"已请求暂停:正在取消模型调用并保存已完成正文"}),await ec(),eg(e,t),r},[ea,ec,eg]),ek=(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||W.current||void 0})});if(!n.ok)throw Error(await n.text()||"HTTP ".concat(n.status));let r=await n.json().catch(()=>void 0),l=null==r?void 0:r.resumeReuse;ea(l?{kind:0===l.blockers.length?"info":"warning",text:"已请求继续:".concat(l.reason)}:{kind:"info",text:"已请求继续:将复用已保存的检查点"}),await ec()},[ea,ec]),ej=(0,r.useCallback)((e,t,n)=>{let r=new Blob([e],{type:n}),l=URL.createObjectURL(r),a=document.createElement("a");a.href=l,a.download=t,a.target="_self",a.rel="noopener",a.style.display="none",document.body.appendChild(a),a.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window})),a.remove(),window.setTimeout(()=>URL.revokeObjectURL(l),1e3)},[]),eA=(0,r.useCallback)(async(e,t)=>{let n=await (0,g.hU)(e,t);ej(n.blob,n.filename,"application/json;charset=utf-8")},[ej]),eI=(0,r.useCallback)(async(e,t,n)=>{try{let{blob:r,filename:l,receipt:a,gateIssues:o}=await (0,g.UE)(e);ej(r,l||t,n),L("review"===a.exportPurpose?{at:Date.now(),count:o.length,issues:o}:null),a.issuesReport&&await eA(e,a.issuesReport)}catch(t){throw t instanceof g.GA&&t.receipt.issuesReport&&await eA(e,t.receipt.issuesReport),t}},[ej,eA]),eS=(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"}),[]),eM=(0,r.useCallback)(async(e,t)=>{var n,r;let l=void 0!==e.editedMarkdown?e.editedMarkdown:e.markdown||(null==(n=e.draft)?void 0:n.markdown)||"",a=void 0===e.editedMarkdown&&(null==(r=e.checkpointChapters)?void 0:r.some(e=>{var t;return null==(t=e.content)?void 0:t.trim()}));if(!l.trim()&&!a)return void ea({kind:"warning",text:"该记录暂无可导出的正文内容"});O(t);let o={exportPurpose:"review",documentId:e.id,title:e.title,format:t,projectRoot:e.projectRoot||W.current||void 0};try{await eI(o,"".concat(e.title,".").concat("markdown"===t?"md":t),eS[t])}catch(e){ea({kind:"error",text:e instanceof Error?e.message:"导出失败"})}finally{O(null)}},[eI,eS,ea]),eC=(0,r.useCallback)(async e=>{if(!A)return;O(e);let t={exportPurpose:"review",documentId:V.current||void 0,title:A.title,markdown:S,format:e,exportGate:A.exportGate,useClientMarkdown:!0,projectRoot:A.projectRoot||W.current||void 0};try{if(await eI(t,"".concat(A.title,".").concat("markdown"===e?"md":e),eS[e]),V.current)try{let{document:e}=await (0,g.v7)(V.current,!1,A.projectRoot||W.current||void 0);e&&H(e.exportReports||[])}catch(e){}}catch(e){ea({kind:"error",text:e instanceof Error?e.message:"导出失败"})}finally{O(null)}},[S,eI,A,eS,ea]),eE=R&&null!=(t=B.find(e=>e.id===R))?t:C,eR=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==eE?void 0:eE.status,f);return{flowSteps:u,activeFlowKey:m,loading:f,draft:A,content:S,workflowRecord:C,documentId:R,documents:B,error:_,phase:eR,flowTick:q,boundRecord:eE,canResume:function(e){var t,n,r,l,a,o,i,c;if(!e)return{resumable:!1,kind:"not-resumable",reason:"记录不存在"};let s=String(e.status||""),u=null!=(r=null==(t=e.checkpointChapters)?void 0:t.length)?r:0,d=u>0,m="number"==typeof e.interruptedAt||!!e.interruptionReason;if(null!=(l=e.running)?l:"generating"===s||"queued"===s)return{resumable:!1,kind:"not-resumable",reason:"这次生成还在跑(续跑入口不该在运行态出现)"};if("paused"===s)return{resumable:!0,kind:"paused",reason:"暂停是可逆的:从检查点接着跑,未受影响的章会被复用"};if(m)return d?{resumable:!0,kind:"interrupted",reason:"上次运行被中断(".concat(null!=(a=e.interruptionReason)?a:"中断标记",")且留有 ").concat(u," 个检查点章:续跑只补未完成的章")}:{resumable:!1,kind:"not-resumable",reason:"这次运行被中断且**没有检查点章**:续跑等于全量重跑,请用新建生成(这里不伪装成续跑)"};if("warning"===s)return d?{resumable:!0,kind:"interrupted",reason:"上次运行留下了 ".concat(u," 个检查点章(状态 warning):续跑只补未完成的章")}:{resumable:!1,kind:"not-resumable",reason:"warning 且没有检查点章:没有可接着跑的东西,请用新建生成"};let p=null!=(o=null==(n=e.draft)?void 0:n.exportGate)?o:e.exportGate;if((null==p?void 0:p.passed)===!1){let e=null!=(c=null==(i=p.blockingIssues)?void 0:i.length)?c:0;return{resumable:!0,kind:"gate-blocked-repair",reason:"门禁未过(".concat(e>0?"".concat(e," 项阻断"):"阻断清单未随记录落盘","):续跑把阻断项交回生成侧修复(回源修复,不是重新生成)")}}return"completed"===s?{resumable:!1,kind:"not-resumable",reason:'这份稿已完成:要再跑请新建生成("继续"会把已定的交付物再推一遍)'}:"completed_with_issues"===s||"failed"===s||"aborted"===s?{resumable:!0,kind:"resumable-terminal",reason:"completed_with_issues"===s?"已收口但有未过项:续跑把未过项交回生成侧修复(回源修复,不是重新生成)".concat(d?";复用 ".concat(u," 个检查点章"):""):"aborted"===s?"这份稿被中止过:续跑从中断处接着跑".concat(d?"(复用 ".concat(u," 个检查点章)"):"(无检查点 ⇒ 全量重跑)"):"上次生成失败:续跑接着跑".concat(d?"(复用 ".concat(u," 个检查点章)"):"(无检查点 ⇒ 全量重跑)")}:{resumable:!1,kind:"not-resumable",reason:"当前状态(".concat(s||"未知",")没有可续跑的线索")}}(eE).resumable,startGeneration:ef,abortGeneration:ex,abortDocument:ey,resumeDocument:ew,pauseDocument:eb,resumePausedDocument:ek,applyRecord:em,refreshDocuments:ec,waitForDoc:ep,stepDurationText:ev,setDraft:I,setContent:M,setExportReports:H,export:{exporting:P,nonDeliverableExport:U,exportRecord:eM,exportEditor:eC,downloadExport:eI,exportReports:F},deliveryReadings:Q}}},94394:(e,t,n)=>{n.d(t,{i_:()=>r,uh:()=>l});let r={role_binding:"项目角色配置绑定",knowledge_retrieval:"知识库证据检索",file_understanding:"项目资料理解",fact_extraction:"事实抽取",chapter_generation:"章节正文生成",llm_review:"独立复核",validation:"规则与准入校验",reference:"资料增强"},l={success:"完成",running:"进行中",failed:"失败",skipped:"跳过",partial:"部分生效",pending:"等待中"}},96538:(e,t,n)=>{n.d(t,{a:()=>l,j:()=>a});let r={coarse:function(e,t){let n=Math.floor(e/1e3),r=Math.floor(n/86400),l=Math.floor(n%86400/3600),a=Math.floor(n%3600/60),o="en-US"===t;return r>0?o?"".concat(r,"d ").concat(l,"h"):"".concat(r," 天 ").concat(l," 小时"):l>0?o?"".concat(l,"h ").concat(a,"m"):"".concat(l," 小时 ").concat(a," 分"):a>0?o?"".concat(a,"m"):"".concat(a," 分"):o?"Just now":"刚刚"},fine:function(e){let t=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," 分")},"fine-decimal":function(e){return e>=6e4?"".concat(Math.floor(e/6e4)," 分 ").concat(Math.round(e%6e4/1e3)," 秒"):"".concat((e/1e3).toFixed(1)," 秒")},metric:function(e){return e<1e3?"".concat(Math.round(e),"ms"):e<6e4?"".concat((e/1e3).toFixed(1),"s"):"".concat((e/6e4).toFixed(1),"min")}};function l(e,t){var n;return r[t.style](function(e,t){let n="s"===t?1e3*e:e;return Number.isFinite(n)&&n>0?n:0}(e,t.unit),null!=(n=t.locale)?n:"zh-CN")}function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"zh-CN";return l(e,{unit:"s",style:"coarse",locale:t})}}}]);
@@ -0,0 +1,4 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[564],{24716:(e,t,r)=>{r.d(t,{A:()=>p});var n=r(97109),o=r(3638),a=r(4034),l=r(74567),i=r(49644),s=r(7961),c=r(77032),d=r(10540);let m=(0,d.OF)("Addon",e=>[(e=>{let{componentCls:t,borderRadius:r,paddingSM:n,colorBorder:o,paddingXS:a,fontSizeLG:l,fontSizeSM:i,borderRadiusLG:c,borderRadiusSM:m,colorBgContainerDisabled:p,lineWidth:u,antCls:f}=e,[g,y]=(0,d.PN)(f,"space-addon");return{[t]:[{...(0,s.dF)(e),display:"inline-flex",alignItems:"center",gap:0,whiteSpace:"nowrap",paddingInline:n,margin:0,borderWidth:u,borderStyle:"solid",borderRadius:r,"&:hover":{zIndex:0},[`&${t}-disabled`]:{color:e.colorTextDisabled},"&-large":{fontSize:l,borderRadius:c},"&-small":{paddingInline:a,borderRadius:m,fontSize:i},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0},"&-compact-item:not(:first-child)":{borderInlineStartWidth:0}},{[g("addon-border-color")]:o,[g("addon-background")]:p,[g("addon-border-color-outlined")]:o,[g("addon-background-filled")]:p,borderColor:y("addon-border-color"),background:y("addon-background"),"&-variant-outlined":{[g("addon-border-color")]:y("addon-border-color-outlined")},"&-variant-filled":{[g("addon-border-color")]:"transparent",[g("addon-background")]:y("addon-background-filled"),[`&${t}-disabled`]:{[g("addon-border-color")]:o,[g("addon-background")]:p}},"&-variant-borderless":{border:"none",background:"transparent"},"&-variant-underlined":{border:"none",background:"transparent"}},{"&-status-error":{[g("addon-border-color-outlined")]:e.colorError,[g("addon-background-filled")]:e.colorErrorBg,color:e.colorError},"&-status-warning":{[g("addon-border-color-outlined")]:e.colorWarning,[g("addon-background-filled")]:e.colorWarningBg,color:e.colorWarning}}]}})(e),(0,c.G)(e,{focus:!1})]),p=n.forwardRef((e,t)=>{let{className:r,children:s,style:c,prefixCls:d,variant:p="outlined",disabled:u,status:f,...g}=e,{getPrefixCls:y,direction:b}=n.useContext(l.QO),v=y("space-addon",d),[$,h]=m(v),{compactItemClassnames:E,compactSize:S}=(0,i.RQ)(v,b),w=(0,a.L)(v,f),A=(0,o.$)(v,$,E,h,`${v}-variant-${p}`,w,{[`${v}-${S}`]:S,[`${v}-disabled`]:u},r);return n.createElement("div",{ref:t,className:A,style:c,...g},s)})},33442:(e,t,r)=>{r.d(t,{A:()=>E});var n=r(97109),o=r(42644),a=r(3638),l=r(26047);function i(e){return["small","middle","medium","large"].includes(e)}function s(e){return!!e&&(0,l.Et)(e)}var c=r(5045),d=r(92162),m=r(74567),p=r(24716),u=r(49644);let f=n.createContext({latestIndex:0}),g=f.Provider,y=e=>{let{className:t,prefix:r,index:o,children:i,separator:s,style:c,classNames:d,styles:m}=e,{latestIndex:p}=n.useContext(f);return(0,l.AZ)(i)?n.createElement(n.Fragment,null,n.createElement("div",{className:t,style:c},i),o<p&&s&&n.createElement("span",{className:(0,a.$)(`${r}-item-separator`,d?.separator),style:m?.separator},s)):null};var b=r(10540),v=r(28403);let $=(0,b.OF)("Space",e=>{let t=(0,v.oX)(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[(e=>{let{componentCls:t,antCls:r}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${r}-badge-not-a-wrapper:only-child`]:{display:"block"}}}})(t),(e=>{let{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-medium, &-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-medium, &-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}})(t)]},()=>({}),{resetStyle:!1}),h=n.forwardRef((e,t)=>{let{getPrefixCls:r,direction:p,size:u,className:f,style:b,classNames:v,styles:h}=(0,m.TP)("space"),{size:E=u??"small",align:S,className:w,rootClassName:A,children:I,direction:x,orientation:N,prefixCls:k,split:C,separator:M,style:O,vertical:R,wrap:z=!1,classNames:G,styles:L,...P}=e,[X,D]=Array.isArray(E)?E:[E,E],K=i(D),H=i(X),T=s(D),W=s(X),F=(0,o.$r)(I,{keepEmpty:!0}),[Y,_]=(0,c.M)(N,R,x),Q=void 0!==S||_?S:"center",B=M??C,j=r("space",k),[V,U]=$(j),Z={...e,size:E,orientation:Y,align:Q},[J,q]=(0,d.AV)([v,G],[h,L],{props:Z}),ee=(0,a.$)(j,f,V,`${j}-${Y}`,{[`${j}-rtl`]:"rtl"===p,[`${j}-align-${Q}`]:Q,[`${j}-gap-row-${D}`]:K,[`${j}-gap-col-${X}`]:H},w,A,U,J.root),et=(0,a.$)(`${j}-item`,J.item),er=F.map((e,t)=>{let r=e?.key||`${et}-${t}`;return n.createElement(y,{prefix:j,classNames:J,styles:q,className:et,key:r,index:t,separator:B,style:q.item},e)}),en=n.useMemo(()=>({latestIndex:F.reduce((e,t,r)=>(0,l.AZ)(t)?r:e,0)}),[F]);if(0===F.length)return null;let eo={};return z&&(eo.flexWrap="wrap"),!H&&W&&(eo.columnGap=X),!K&&T&&(eo.rowGap=D),n.createElement("div",{ref:t,className:ee,style:{...eo,...q.root,...b,...O},...P},n.createElement(g,{value:en},er))});h.Compact=u.Ay,h.Addon=p.A;let E=h},47210:(e,t,r)=>{r.d(t,{A:()=>i});var n=r(97109),o=r(58970),a=r(88483);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let i=n.forwardRef((e,t)=>n.createElement(a.A,l({},e,{ref:t,icon:o.A})))},58970:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"}},61910:(e,t,r)=>{r.d(t,{A:()=>h});var n=r(64446),o=r(97109),a=r(3638),l=r(20008),i=r(73473);let s=void 0,c=o.forwardRef(function(e,t){let r,{prefixCls:i,invalidate:c,item:d,renderItem:m,responsive:p,responsiveDisabled:u,registerSize:f,itemKey:g,className:y,style:b,children:v,display:$,order:h,component:E="div",...S}=e,w=p&&!$;o.useEffect(()=>()=>{f(g,null)},[]);let A=m&&d!==s?m(d,{index:h}):v;c||(r={opacity:+!w,height:w?0:s,overflowY:w?"hidden":s,order:p?h:s,pointerEvents:w?"none":s,position:w?"absolute":s});let I={};w&&(I["aria-hidden"]=!0);let x=o.createElement(E,(0,n.A)({className:(0,a.$)(!c&&i,y),style:{...r,...b}},I,S,{ref:t}),A);return p&&(x=o.createElement(l.Ay,{onResize:({offsetWidth:e})=>{f(g,e)},disabled:u},x)),x});var d=r(19750),m=r(61222),p=r(49127);function u(e,t){let[r,n]=o.useState(t);return[r,(0,d.A)(t=>{e(()=>{n(t)})})]}let f=o.createContext(null),g=o.forwardRef((e,t)=>{let r=o.useContext(f);if(!r){let{component:r="div",...a}=e;return o.createElement(r,(0,n.A)({},a,{ref:t}))}let{className:l,...i}=r,{className:s,...d}=e;return o.createElement(f.Provider,{value:null},o.createElement(c,(0,n.A)({ref:t,className:(0,a.$)(l,s)},i,d)))}),y="responsive",b="invalidate";function v(e){return`+ ${e.length} ...`}let $=o.forwardRef(function(e,t){let{prefixCls:r="rc-overflow",data:s=[],renderItem:d,renderRawItem:g,itemKey:$,itemWidth:h=10,ssr:E,style:S,className:w,maxCount:A,renderRest:I,renderRawRest:x,prefix:N,suffix:k,component:C="div",itemComponent:M,onVisibleChange:O,...R}=e,z="full"===E,G=function(){let e=o.useRef(null);return t=>{if(!e.current){e.current=[];var r=()=>{(0,m.unstable_batchedUpdates)(()=>{e.current.forEach(e=>{e()}),e.current=null})};if("undefined"==typeof MessageChannel)(0,p.A)(r);else{let e=new MessageChannel;e.port1.onmessage=()=>r(),e.port2.postMessage(void 0)}}e.current.push(t)}}(),[L,P]=u(G,null),X=L||0,[D,K]=u(G,new Map),[H,T]=u(G,0),[W,F]=u(G,0),[Y,_]=u(G,0),[Q,B]=u(G,0),[j,V]=(0,o.useState)(null),[U,Z]=(0,o.useState)(null),J=o.useMemo(()=>null===U&&z?Number.MAX_SAFE_INTEGER:U||0,[U,L]),[q,ee]=(0,o.useState)(!1),et=`${r}-item`,er=Math.max(H,W),en=A===y,eo=s.length&&en,ea=A===b,el=eo||"number"==typeof A&&s.length>A,ei=(0,o.useMemo)(()=>{let e=s;return eo?e=null===L&&z?s:s.slice(0,Math.min(s.length,X/h)):"number"==typeof A&&(e=s.slice(0,A)),e},[s,h,L,A,eo]),es=(0,o.useMemo)(()=>eo?s.slice(J+1):s.slice(ei.length),[s,ei,eo,J]),ec=(0,o.useCallback)((e,t)=>"function"==typeof $?$(e):($&&e?.[$])??t,[$]),ed=(0,o.useCallback)(d||(e=>e),[d]);function em(e,t,r){(U!==e||void 0!==t&&t!==j)&&(Z(e),r||(ee(e<s.length-1),O?.(e)),void 0!==t&&V(t))}function ep(e,t){K(r=>{let n=new Map(r);return null===t?n.delete(e):n.set(e,t),n})}function eu(e){return D.get(ec(ei[e],e))}(0,i.A)(()=>{if(X&&"number"==typeof er&&ei){let e=Y+Q,t=ei.length,r=t-1;if(!t)return void em(0,null);for(let n=0;n<t;n+=1){let t=eu(n);if(z&&(t=t||0),void 0===t){em(n-1,void 0,!0);break}if(e+=t,0===r&&e<=X||n===r-1&&e+eu(r)<=X){em(r,null);break}if(e+er>X){em(n-1,e-t-Q+W);break}}k&&eu(0)+Q>X&&V(null)}},[X,D,W,Y,Q,ec,ei]);let ef=q&&!!es.length,eg={};null!==j&&eo&&(eg={position:"absolute",top:0,insetInlineStart:j});let ey={prefixCls:et,responsive:eo,component:M,invalidate:ea},eb=g?(e,t)=>{let r=ec(e,t);return o.createElement(f.Provider,{key:r,value:{...ey,order:t,item:e,itemKey:r,registerSize:ep,display:t<=J}},g(e,t))}:(e,t)=>{let r=ec(e,t);return o.createElement(c,(0,n.A)({},ey,{order:t,key:r,item:e,renderItem:ed,itemKey:r,registerSize:ep,display:t<=J}))},ev={order:ef?J:Number.MAX_SAFE_INTEGER,className:`${et}-rest`,registerSize:function(e,t){F(t),T(W)},display:ef},e$=I||v,eh=x?o.createElement(f.Provider,{value:{...ey,...ev}},x(es)):o.createElement(c,(0,n.A)({},ey,ev),"function"==typeof e$?e$(es):e$),eE=o.createElement(C,(0,n.A)({className:(0,a.$)(!ea&&r,w),style:S,ref:t},R),N&&o.createElement(c,(0,n.A)({},ey,{responsive:en,responsiveDisabled:!eo,order:-1,className:`${et}-prefix`,registerSize:function(e,t){_(t)},display:!0}),N),ei.map(eb),el?eh:null,k&&o.createElement(c,(0,n.A)({},ey,{responsive:en,responsiveDisabled:!eo,order:J,className:`${et}-suffix`,registerSize:function(e,t){B(t)},display:!0,style:eg}),k));return en?o.createElement(l.Ay,{onResize:function(e,t){P(t.clientWidth)},disabled:!eo},eE):eE});$.Item=g,$.RESPONSIVE=y,$.INVALIDATE=b;let h=$},64446:(e,t,r)=>{r.d(t,{A:()=>n});function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}},85493:(e,t,r)=>{r.d(t,{A:()=>M});var n=r(97109),o=r(59188),a=r(4216),l=r(45042),i=r(97137),s=r(62188),c=r(67189),d=r(42644),m=r(3638),p=r(92162),u=r(26047),f=r(74567),g=r(15561),y=r(7961),b=r(10540);let v=(e,t,r)=>({background:e,[`${r}-icon`]:{color:t}}),$=(0,b.OF)("Alert",e=>[(e=>{let{componentCls:t,motionDurationSlow:r,marginXS:n,marginSM:o,fontSize:a,fontSizeLG:l,lineHeight:i,borderRadiusLG:s,motionEaseInOutCirc:c,withDescriptionIconSize:d,colorText:m,colorTextHeading:p,withDescriptionPadding:u,defaultPadding:f,lineWidth:b,lineType:v,colorSuccessBorder:$,colorWarningBorder:h,colorErrorBorder:E,colorInfoBorder:S}=e;return{[t]:{...(0,y.dF)(e),position:"relative",display:"flex",alignItems:"center",padding:f,wordWrap:"break-word",borderRadius:s,borderWidth:(0,g.zA)(b),borderStyle:v,[`&${t}-success`]:{borderColor:$},[`&${t}-info`]:{borderColor:S},[`&${t}-warning`]:{borderColor:h},[`&${t}-error`]:{borderColor:E},[`&${t}-filled`]:{borderColor:"transparent"},[`&${t}-rtl`]:{direction:"rtl"},[`${t}-section`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:n,lineHeight:0},"&-description":{display:"none",fontSize:a,lineHeight:i},"&-title":{color:p},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:["max-height","opacity","padding-top","padding-bottom","margin-bottom"].map(e=>`${e} ${r} ${c}`).join(", ")},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0},[`&${t}-with-description`]:{alignItems:"flex-start",padding:u,[`${t}-icon`]:{marginInlineEnd:o,fontSize:d,lineHeight:0},[`${t}-title`]:{display:"block",marginBottom:n,color:p,fontSize:l},[`${t}-description`]:{display:"block",color:m}},[`&${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}}})(e),(e=>{let{componentCls:t,colorSuccess:r,colorSuccessBg:n,colorWarning:o,colorWarningBg:a,colorError:l,colorErrorBg:i,colorInfo:s,colorInfoBg:c}=e;return{[t]:{"&-success":v(n,r,t),"&-info":v(c,s,t),"&-warning":v(a,o,t),"&-error":{...v(i,l,t),[`${t}-description > pre`]:{margin:0,padding:0}}}}})(e),(e=>{let{componentCls:t,iconCls:r,motionDurationMid:n,marginXS:o,fontSizeIcon:a,colorIcon:l,colorIconHover:i}=e;return{[t]:{[`${t}-actions`]:{marginInlineStart:o},[`${t}-close-icon`]:{marginInlineStart:o,padding:0,overflow:"hidden",fontSize:a,lineHeight:(0,g.zA)(a),backgroundColor:"transparent",border:"none",cursor:"pointer",...(0,y.K8)(e),[`${r}-close`]:{color:l,transition:`color ${n}`,"&:hover":{color:i}}},"&-close-text":{color:l,transition:`color ${n}`,"&:hover":{color:i}}}}})(e)],e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`})),h=e=>{let{icon:t,type:r,className:l,style:c,successIcon:d,infoIcon:m,warningIcon:p,errorIcon:u}=e,f={success:d??n.createElement(o.A,null),info:m??n.createElement(s.A,null),error:u??n.createElement(a.A,null),warning:p??n.createElement(i.A,null)};return n.createElement("span",{className:l,style:c},t??f[r])},E=e=>{let{isClosable:t,prefixCls:r,closeIcon:o,handleClose:a,ariaProps:i,className:s,style:c}=e,d=!0===o||void 0===o?n.createElement(l.A,null):o;return t?n.createElement("button",{type:"button",onClick:a,className:(0,m.$)(`${r}-close-icon`,s),tabIndex:0,style:c,...i},d):null},S=n.forwardRef((e,t)=>{let{description:r,prefixCls:o,message:a,title:l,banner:i,className:s,rootClassName:g,style:y,onMouseEnter:b,onMouseLeave:v,onClick:S,afterClose:w,showIcon:A,closable:I,closeText:x,closeIcon:N,action:k,id:C,styles:M,classNames:O,...R}=e,z=l??a,[G,L]=n.useState(!1),P=n.useRef(null);n.useImperativeHandle(t,()=>({nativeElement:P.current}));let{getPrefixCls:X,direction:D,variant:K,closable:H,closeIcon:T,className:W,style:F,classNames:Y,styles:_,successIcon:Q,infoIcon:B,warningIcon:j,errorIcon:V}=(0,f.TP)("alert"),U=X("alert",o),[Z,J]=$(U),{onClose:q,afterClose:ee}=(0,u.Qd)(I)?I:{},et=t=>{L(!0),(q??e.onClose)?.(t)},er=n.useMemo(()=>void 0!==e.type?e.type:i?"warning":"info",[e.type,i]),en=e.variant??K??"outlined",eo=n.useMemo(()=>!!(0,u.Qd)(I)&&!!I.closeIcon||!!x||("boolean"==typeof I?I:!!(!1!==N&&(0,u.R)(N))||!!H),[x,N,I,H]),ea=!!i&&void 0===A||A,el={...e,prefixCls:U,variant:en,type:er,showIcon:ea,closable:eo},ei=(0,p.XT)(F),es=(0,p.XT)(y),[ec,ed]=(0,p.AV)([Y,O],[_,ei,M,es],{props:el}),em=(0,m.$)(U,`${U}-${er}`,`${U}-${en}`,{[`${U}-with-description`]:!!r,[`${U}-no-icon`]:!ea,[`${U}-banner`]:!!i,[`${U}-rtl`]:"rtl"===D},W,s,g,ec.root,J,Z),ep=(0,d.KE)(R,{aria:!0,data:!0}),eu=n.useMemo(()=>(0,u.Qd)(I)&&I.closeIcon?I.closeIcon:x||(void 0!==N?N:(0,u.Qd)(H)&&H.closeIcon?H.closeIcon:T),[N,I,H,x,T]),ef=n.useMemo(()=>{let e=I??H;return(0,u.Qd)(e)?(0,d.KE)(e,{data:!0,aria:!0}):{}},[I,H]);return n.createElement(c.Ay,{visible:!G,motionName:`${U}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:ee??w},({className:t,style:o},a)=>n.createElement("div",{id:C,ref:(0,d.K4)(P,a),"data-show":!G,className:(0,m.$)(em,t),style:{...ed.root,...o},onMouseEnter:b,onMouseLeave:v,onClick:S,role:"alert",...ep},ea?n.createElement(h,{className:(0,m.$)(`${U}-icon`,ec.icon),style:ed.icon,description:r,icon:e.icon,prefixCls:U,type:er,successIcon:Q,infoIcon:B,warningIcon:j,errorIcon:V}):null,n.createElement("div",{className:(0,m.$)(`${U}-section`,ec.section),style:ed.section},z?n.createElement("div",{className:(0,m.$)(`${U}-title`,ec.title),style:ed.title},z):null,r?n.createElement("div",{className:(0,m.$)(`${U}-description`,ec.description),style:ed.description},r):null),k?n.createElement("div",{className:(0,m.$)(`${U}-actions`,ec.actions),style:ed.actions},k):null,n.createElement(E,{className:ec.close,style:ed.close,isClosable:eo,prefixCls:U,closeIcon:eu,handleClose:et,ariaProps:ef})))});var w=r(41113),A=r(49939),I=r(90218),x=r(13076),N=r(83784),k=r(15472);let C=function(e){function t(){var e,r,n;return(0,w.A)(this,t),r=t,n=arguments,r=(0,I.A)(r),(e=(0,N.A)(this,(0,x.A)()?Reflect.construct(r,n||[],(0,I.A)(this).constructor):r.apply(this,n))).state={error:void 0,info:{}},e}return(0,k.A)(t,e),(0,A.A)(t,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,info:t})}},{key:"render",value:function(){let{message:e,title:t,description:r,id:o,children:a}=this.props,{error:l,info:i}=this.state,s=t??e,c=i?.componentStack||null,d=(0,u.R)(s)?s:l?.toString(),m=(0,u.R)(r)?r:c;return l?n.createElement(S,{id:o,type:"error",title:d,description:n.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},m)}):a}}])}(n.PureComponent);S.ErrorBoundary=C;let M=S},86827:(e,t,r)=>{r.d(t,{EZ:()=>p,J6:()=>d,L2:()=>m,YU:()=>s,_j:()=>f,gx:()=>c,nP:()=>i,ox:()=>a,vR:()=>l});var n=r(15561),o=r(5688);let a=new n.Mo("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),l=new n.Mo("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),i=new n.Mo("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),s=new n.Mo("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),c=new n.Mo("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),d=new n.Mo("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),m=new n.Mo("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),p=new n.Mo("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),u={"slide-up":{inKeyframes:a,outKeyframes:l},"slide-down":{inKeyframes:i,outKeyframes:s},"slide-left":{inKeyframes:c,outKeyframes:d},"slide-right":{inKeyframes:m,outKeyframes:p}},f=(e,t)=>{let{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:a,outKeyframes:l}=u[t];return[(0,o.b)(n,a,l,e.motionDurationMid),{[`
2
+ ${n}-enter,
3
+ ${n}-appear
4
+ `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[576],{7576:(e,t,r)=>{r.d(t,{A:()=>j});var n=r(97109),a=r(3638),l=r(74567),s=r(55359),o=r(33442),i=r(44390),u=r(78902),c=r(9750),p=r(42644),m=r(92162),d=r(26047),f=r(4034),g=r(27273),$=r(10540),h=r(28403),b=r(84767);let v=(0,$.OF)(["Input","OTP"],e=>(e=>{let{componentCls:t,paddingXS:r}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:r,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:e.colorText,"&::selection":{color:"transparent"}},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}})((0,h.oX)(e,(0,b.C)(e))),b.b),y=n.forwardRef((e,t)=>{let{className:r,value:s,onChange:o,onActiveChange:i,index:c,mask:m,onFocus:d,...f}=e,{getPrefixCls:g}=n.useContext(l.QO),$=g("otp"),h="string"==typeof m?m:s,b=n.useRef(null);n.useImperativeHandle(t,()=>b.current);let v=()=>{(0,p.er)(()=>{let e=b.current?.input;document.activeElement===e&&e&&e.select()})};return n.createElement("span",{className:`${$}-input-wrapper`,role:"presentation"},m&&""!==s&&void 0!==s&&n.createElement("span",{className:`${$}-mask-icon`,"aria-hidden":"true"},h),n.createElement(u.A,{"aria-label":`OTP Input ${c+1}`,type:!0===m?"password":"text",...f,ref:b,value:s,onInput:e=>{o(c,e.target.value)},onFocus:e=>{d?.(e),v()},onKeyDown:e=>{let{key:t,ctrlKey:r,metaKey:n}=e;"ArrowLeft"===t?i(c-1):"ArrowRight"===t?i(c+1):"z"===t&&(r||n)?e.preventDefault():"Backspace"!==t||s||i(c-1),v()},onMouseDown:v,onMouseUp:v,className:(0,a.$)(r,{[`${$}-mask-input`]:m})}))});function A(e){return(e||"").split("")}let C=e=>{let{index:t,prefixCls:r,separator:l,className:s,style:o}=e,i=(0,d.Tn)(l)?l(t):l;return i?n.createElement("span",{className:(0,a.$)(`${r}-separator`,s),style:o},i):null},w=n.forwardRef((e,t)=>{let{prefixCls:r,length:o=6,size:i,defaultValue:u,value:d,onChange:$,formatter:h,separator:b,variant:w,disabled:E,status:x,autoFocus:k,mask:N,type:z,autoComplete:M,onInput:O,onFocus:I,inputMode:R,classNames:T,styles:P,className:S,style:F,...L}=e,{classNames:B,styles:X,getPrefixCls:D,direction:Q,style:W,className:_}=(0,l.TP)("otp"),j=D("otp",r),q={...e,length:o},H=(0,m.XT)(W),K=(0,m.XT)(F),[V,G]=(0,m.AV)([B,T],[X,H,P,K],{props:q}),J=(0,p.KE)(L,{aria:!0,data:!0,attr:!0}),[U,Y]=v(j),Z=(0,g.A)(e=>i??e),ee=n.useContext(s.$W),et=(0,f.v)(ee.status,x),er=n.useMemo(()=>({...ee,status:et,hasFeedback:!1,feedbackIcon:null}),[ee,et]),en=n.useRef(null),ea=n.useRef({});n.useImperativeHandle(t,()=>({focus:()=>{ea.current[0]?.focus()},blur:()=>{for(let e=0;e<o;e+=1)ea.current[e]?.blur()},nativeElement:en.current}));let el=e=>h?h(e):e,[es,eo]=n.useState(()=>A(el(u||"")));n.useEffect(()=>{void 0!==d&&eo(A(d))},[d]);let ei=(0,p._q)(e=>{eo(e),O&&O(e),$&&e.length===o&&e.every(e=>e)&&e.some((e,t)=>es[t]!==e)&&$(e.join(""))}),eu=(0,p._q)((e,t)=>{let r=(0,c.A)(es);for(let t=0;t<e;t+=1)r[t]||(r[t]="");t.length<=1?r[e]=t:r=r.slice(0,e).concat(A(t)),r=r.slice(0,o);for(let e=r.length-1;e>=0&&!r[e];e-=1)r.pop();return r=A(el(r.map(e=>e||" ").join(""))).map((e,t)=>" "!==e||r[t]?e:r[t])}),ec=(e,t)=>{let r=eu(e,t),n=Math.min(e+t.length,o-1);n!==e&&void 0!==r[e]&&ea.current[n]?.focus(),ei(r)},ep=e=>{ea.current[e]?.focus()},em={variant:w,disabled:E,status:et,mask:N,type:z,inputMode:R,autoComplete:M};return n.createElement("div",{...J,ref:en,className:(0,a.$)(S,j,{[`${j}-sm`]:"small"===Z,[`${j}-lg`]:"large"===Z,[`${j}-rtl`]:"rtl"===Q},Y,U,_,V.root),style:G.root,role:"group"},n.createElement(s.$W.Provider,{value:er},Array.from({length:o}).map((e,t)=>{let r=`otp-${t}`,l=es[t]||"";return n.createElement(n.Fragment,{key:r},n.createElement(y,{ref:e=>{ea.current[t]=e},index:t,size:Z,htmlSize:1,className:(0,a.$)(V.input,`${j}-input`),style:G.input,onChange:ec,value:l,onActiveChange:ep,autoFocus:0===t&&k,onFocus:e=>((e,t)=>{for(let e=0;e<t;e+=1)if(!ea.current[e]?.input?.value){ea.current[e]?.focus();break}I?.(e)})(e,t),...em}),t<o-1&&n.createElement(C,{separator:b,index:t,prefixCls:j,className:(0,a.$)(V.separator),style:G.separator}))})))});var E=r(70542),x=r(88483);function k(){return(k=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let N=n.forwardRef((e,t)=>n.createElement(x.A,k({},e,{ref:t,icon:E.A})));var z=r(8263),M=r(6831),O=r(69925),I=r(62116);let R={click:"onClick",hover:"onMouseOver"},T=n.forwardRef((e,t)=>{let{disabled:r,action:s="click",visibilityToggle:o=!0,iconRender:i,prefixCls:c,inputPrefixCls:f,suffix:g,className:$,style:h,classNames:b,styles:v,...y}=e,{getPrefixCls:A,className:C,style:w,classNames:E,styles:x,iconRender:k}=(0,l.TP)("inputPassword"),[T]=(0,O.A)("global"),P=n.useContext(M.A),S=r??P,F={...e,disabled:S},[L,B]=(0,m.AV)([E,b],[x,v],{props:F}),X=(0,d.Qd)(o)&&void 0!==o.visible,[D,Q]=(0,n.useState)(()=>!!X&&o.visible),W=(0,n.useRef)(null);n.useEffect(()=>{X&&Q(o.visible)},[X,o]);let _=(0,I.A)(W),j=()=>{if(S)return;D&&_();let e=!D;Q(e),(0,d.Qd)(o)&&o.onVisibleChange?.(e)},q=A("input",f),H=A("input-password",c),K=o&&(e=>{let t=R[s]||"",r=(i||k||(e=>e?n.createElement(z.A,null):n.createElement(N,null)))(D),a=(0,d.Qd)(o)?o.tabIndex:void 0;return n.createElement("span",{key:"passwordIcon",role:"button",tabIndex:S?-1:a??0,className:`${e}-icon`,"aria-disabled":S,"aria-pressed":D,"aria-label":D?T.hide:T.show,onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()},onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),j())},[t]:j},r)})(H),V=(0,a.$)(H,C,$,{[`${H}-${e.size}`]:!!e.size}),G={...y,type:D?"text":"password",prefixCls:q,suffix:n.createElement(n.Fragment,null,K,g),disabled:S,className:V,style:{...w,...h},classNames:L,styles:B};return n.createElement(u.A,{ref:(0,p.K4)(t,W),...G})});var P=r(30486),S=r(112),F=r(52690),L=r(9290),B=r(49644),X=r(15561);let D=(0,$.OF)(["Input","Search"],e=>(e=>{let{componentCls:t,antCls:r,calc:n,max:a}=e,l=`${t}-btn`,[s,o]=(0,$.PN)(r,"input-search"),i=e.inputFontSizeSM??e.fontSize,u=a(e.controlHeightSM,n(i).mul(e.lineHeight).add(n(e.paddingBlockSM).mul(2)).add(n(e.lineWidth).mul(2)).equal());return{[t]:{[s("btn-height")]:(0,X.zA)(e.controlHeight),width:"100%",[l]:{height:o("btn-height"),[`&${r}-btn-icon-only`]:{width:o("btn-height")},"&-filled":{background:e.colorFillTertiary,"&:not(:disabled)":{"&:hover":{background:e.colorFillSecondary},"&:active":{background:e.colorFill}}}},[`&${t}-large`]:{[s("btn-height")]:(0,X.zA)(e.controlHeightLG)},[`&${t}-small`]:{[s("btn-height")]:(0,X.zA)(e.controlHeightSM)},[`&${t}-small ${l}`]:{minHeight:u,[`&${e.antCls}-btn-icon-only`]:{minWidth:u}}}}})((0,h.oX)(e,(0,b.C)(e))),b.b),Q=n.forwardRef((e,t)=>{let r,{prefixCls:s,inputPrefixCls:o,className:i,size:c,style:d,enterButton:f=!1,searchIcon:$,addonAfter:h,loading:b,disabled:v,onSearch:y,onChange:A,onCompositionStart:C,onCompositionEnd:w,variant:E,onPressEnter:x,classNames:k,styles:N,hidden:z,...M}=e,{direction:O,getPrefixCls:I,className:R,style:T,classNames:X,styles:Q,searchIcon:W}=(0,l.TP)("inputSearch"),_={...e,enterButton:f},[j,q]=(0,m.AV)([X,k],[Q,N],{props:_},{button:{_default:"root"}}),H=n.useRef(!1),K=I("input-search",s),V=I("input",o),[G,J]=D(K),{compactSize:U}=(0,B.RQ)(K,O),Y=(0,g.A)(e=>c??U??e),Z=n.useRef(null),ee=e=>{document.activeElement===Z.current?.input&&e.preventDefault()},et=e=>{y&&y(Z.current?.input?.value,e,{source:"input"})},er="boolean"==typeof f?(0,S.A)($,W,n.createElement(P.A,null)):null,en=`${K}-btn`,ea=(0,a.$)(en,{[`${en}-${E}`]:E}),el=f||{},es=el.type&&!0===el.type.__ANT_BUTTON;if(es||"button"===el.type){let e=el.props;r=(0,F.Ob)(el,{onMouseDown:ee,onClick:e=>{el?.props?.onClick?.(e),et(e)},key:"enterButton",...es?{className:(0,a.$)(ea,e.className),size:Y}:{}})}else r=n.createElement(L.A,{classNames:j.button,styles:q.button,className:ea,color:f?"primary":"default",size:Y,disabled:v,key:"enterButton",onMouseDown:ee,onClick:et,loading:b,icon:er,variant:"borderless"===E||"filled"===E||"underlined"===E?"text":f?"solid":void 0},f);h&&(r=[r,(0,F.Ob)(h,{key:"addonAfter"})]);let eo=(0,a.$)(K,J,{[`${K}-rtl`]:"rtl"===O,[`${K}-${Y}`]:!!Y,[`${K}-with-button`]:!!f},i,R,G,j.root),ei=(0,p.KE)(M,{data:!0}),eu=(0,p.cJ)({...M,classNames:(0,p.cJ)(j,["button","root"]),styles:(0,p.cJ)(q,["button","root"]),prefixCls:V,type:"search",size:Y,variant:E,onPressEnter:e=>{H.current||b||(x?.(e),et(e))},onCompositionStart:e=>{H.current=!0,C?.(e)},onCompositionEnd:e=>{H.current=!1,w?.(e)},onChange:e=>{e?.target&&"click"===e.type&&y&&y(e.target.value,e,{source:"clear"}),A?.(e)},disabled:v},Object.keys(ei));return n.createElement(B.Ay,{className:eo,style:{...q.root,...T,...d},...ei,hidden:z},n.createElement(u.A,{ref:(0,p.K4)(Z,t),...eu}),r)});var W=r(1210);let _=u.A;_.Group=e=>{let{getPrefixCls:t,direction:r}=(0,n.useContext)(l.QO),{prefixCls:u,className:c}=e,p=t("input-group",u),m=t("input"),[d,f]=(0,i.Ay)(m),g=(0,a.$)(p,f,{[`${p}-lg`]:"large"===e.size,[`${p}-sm`]:"small"===e.size,[`${p}-compact`]:e.compact,[`${p}-rtl`]:"rtl"===r},d,c),$=(0,n.useContext)(s.$W),h=(0,n.useMemo)(()=>({...$,isFormItemInput:!1}),[$]);return n.createElement(s.$W.Provider,{value:h},n.createElement(o.A.Compact,{className:g,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children))},_.Search=Q,_.TextArea=W.A,_.Password=T,_.OTP=w;let j=_},8263:(e,t,r)=>{r.d(t,{A:()=>o});var n=r(97109),a=r(24983),l=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 n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let o=n.forwardRef((e,t)=>n.createElement(l.A,s({},e,{ref:t,icon:a.A})))},24983:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"}},62116:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(97109);function a(e,t){let r=(0,n.useRef)([]),a=()=>{r.current.push(setTimeout(()=>{e.current?.input&&e.current?.input.getAttribute("type")==="password"&&e.current?.input.hasAttribute("value")&&e.current?.input.removeAttribute("value")}))};return(0,n.useEffect)(()=>(t&&a(),()=>r.current.forEach(e=>{e&&clearTimeout(e)})),[]),a}},70542:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"}},78902:(e,t,r)=>{r.d(t,{A:()=>y});var n=r(97109),a=r(39019),l=r(42644),s=r(3638),o=r(44137),i=r(76631),u=r(92162),c=r(4034),p=r(74567),m=r(6831),d=r(632),f=r(27273),g=r(55359),$=r(73134),h=r(49644),b=r(62116),v=r(44390);let y=(0,n.forwardRef)((e,t)=>{let{prefixCls:r,bordered:y=!0,status:A,size:C,disabled:w,onBlur:E,onFocus:x,suffix:k,allowClear:N,addonAfter:z,addonBefore:M,className:O,style:I,styles:R,rootClassName:T,onChange:P,classNames:S,variant:F,...L}=e,{getPrefixCls:B,direction:X,allowClear:D,autoComplete:Q,className:W,style:_,classNames:j,styles:q}=(0,p.TP)("input"),H=B("input",r),K=(0,n.useRef)(null),V=(0,d.A)(H),[G,J]=(0,v.MG)(H,T);(0,v.Ay)(H,V);let{compactSize:U,compactItemClassnames:Y}=(0,h.RQ)(H,X),Z=(0,f.A)(e=>C??U??e),ee=n.useContext(m.A),et=w??ee,er={...e,size:Z,disabled:et},en=(0,u.XT)(_),ea=(0,u.XT)(I),[el,es]=(0,u.AV)([j,S],[q,en,R,ea],{props:er}),{status:eo,hasFeedback:ei,feedbackIcon:eu}=(0,n.useContext)(g.$W),ec=(0,c.v)(eo,A),ep=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(e)||!!ei;(0,n.useRef)(ep);let em=(0,b.A)(K,!0),ed=(ei||k)&&n.createElement(n.Fragment,null,k,ei&&eu),ef=(0,i.O)({allowClear:N,contextAllowClear:D,componentName:"Input"}),[eg,e$]=(0,$.A)("input",F,y);return n.createElement(a.Ay,{ref:(0,l.K4)(t,K),prefixCls:H,autoComplete:Q,...L,disabled:et,onBlur:e=>{em(),E?.(e)},onFocus:e=>{em(),x?.(e)},style:es.root,styles:es,suffix:ed,allowClear:ef,className:(0,s.$)(O,T,J,V,Y,W,el.root),onChange:e=>{em(),P?.(e)},addonBefore:M&&n.createElement(o.A,{form:!0,space:!0},M),addonAfter:z&&n.createElement(o.A,{form:!0,space:!0},z),classNames:{...el,input:(0,s.$)({[`${H}-sm`]:"small"===Z,[`${H}-lg`]:"large"===Z,[`${H}-rtl`]:"rtl"===X},el.input,G),variant:(0,s.$)({[`${H}-${eg}`]:e$},(0,c.L)(H,ec)),affixWrapper:(0,s.$)({[`${H}-affix-wrapper-sm`]:"small"===Z,[`${H}-affix-wrapper-lg`]:"large"===Z,[`${H}-affix-wrapper-rtl`]:"rtl"===X},G),wrapper:(0,s.$)({[`${H}-group-rtl`]:"rtl"===X},G),groupWrapper:(0,s.$)({[`${H}-group-wrapper-sm`]:"small"===Z,[`${H}-group-wrapper-lg`]:"large"===Z,[`${H}-group-wrapper-rtl`]:"rtl"===X,[`${H}-group-wrapper-${eg}`]:e$},(0,c.L)(`${H}-group-wrapper`,ec,ei),G)}})})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[579],{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"}},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,a)=>{a.d(t,{Ay:()=>z});var r=a(97109),n=a(59188),l=a(4216),c=a(97137),o=a(40992),i=a(88483);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(this,arguments)}let d=r.forwardRef((e,t)=>r.createElement(i.A,s({},e,{ref:t,icon:o.A})));var h=a(42644),m=a(3638),p=a(92162),E=a(26047),k=a(74567),f=a(15561),u=a(10540),F=a(28403);let M=(0,u.OF)("Result",e=>{let t=e.colorInfo,a=e.colorError,r=e.colorSuccess,n=e.colorWarning;return(e=>[(e=>{let{componentCls:t,lineHeightHeading3:a,iconCls:r,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",[`& > ${r}`]:{fontSize:e.iconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:a,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:a,resultSuccessIconColor:r,resultWarningIconColor:n,imageWidth:250,imageHeight:295}))},e=>{let{fontSizeHeading3:t,fontSize:a,paddingLG:r}=e;return{titleFontSize:t,subtitleFontSize:a,iconFontSize:(0,E.Et)(t)?3*t:`calc(${t} * 3)`,extraMargin:`${r}px 0 0 0`}}),v={success:n.A,error:l.A,info:c.A,warning:d},g={404:()=>r.createElement("svg",{width:"252",height:"294"},r.createElement("title",null,"No Found"),r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("circle",{cx:"126.75",cy:"128.1",r:"126",fill:"#E4EBF7"}),r.createElement("circle",{cx:"31.55",cy:"130.8",r:"8.3",fill:"#FFF"}),r.createElement("path",{stroke:"#FFF",d:"m37 134.3 10.5 6m.9 6.2-12.7 10.8",strokeWidth:"2"}),r.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"}),r.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"}),r.createElement("path",{stroke:"#FFF",d:"m179.3 141.8 12.6 7.1m1.1 7.6-15.2 13",strokeWidth:"2"}),r.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"}),r.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"}),r.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"}),r.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"}),r.createElement("circle",{cx:"204.3",cy:"30",r:"29.5",fill:"#1677ff"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.createElement("path",{stroke:"#648BD8",d:"M107.3 222.1s2.7-1.1 6-3.9",strokeLinecap:"round",strokeLinejoin:"round"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.createElement("path",{stroke:"#DB836E",d:"m110.1 74.8-.9 1.7-.3 4.3h-2.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{stroke:"#5C2552",d:"M110.8 74.5s1.8-.7 2.6.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.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"}),r.createElement("path",{stroke:"#5C2552",d:"M103.3 73s1.8 1 4.1.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.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"}),r.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"}),r.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"}),r.createElement("path",{fill:"#F4D19D",d:"M150.3 151.2h-19.9v-33.7h20.8v32.8a1 1 0 0 1-1 1"}),r.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"}),r.createElement("path",{fill:"#CC9B6E",d:"M123.7 128.4H99.2v-.5h24.2l7.2-10.2.4.3z"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.createElement("path",{stroke:"#E4EBF7",d:"M89 89.5s7.8 5.4 16.6 2.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}))),500:()=>r.createElement("svg",{width:"254",height:"294"},r.createElement("title",null,"Server Error"),r.createElement("g",{fill:"none",fillRule:"evenodd"},r.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"}),r.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"}),r.createElement("path",{stroke:"#FFF",d:"m37.2 135.6 10.5 6m1 6.3-12.8 10.8",strokeWidth:"2"}),r.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"}),r.createElement("circle",{cx:"201.35",cy:"30.2",r:"29.7",fill:"#FF603B"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.createElement("path",{stroke:"#DB836E",d:"m99.2 73.6-.9 1.7-.3 4.3h-2.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{stroke:"#5C2552",d:"M100 73.3s1.7-.7 2.4.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.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"}),r.createElement("path",{stroke:"#5C2552",d:"M92.3 71.7s1.9 1.1 4.2 1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.createElement("path",{stroke:"#648BD8",d:"M97 219.4s2.9-1.2 6.3-4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.createElement("path",{stroke:"#E4EBF7",d:"M109.3 112.5s3.4-3.6 7.6-4.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{stroke:"#E59788",d:"M107.4 123s9.7-2.7 11.4-.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),r.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"}),r.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"}),r.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"}),r.createElement("path",{fill:"#A3B4C6",d:"M154.1 190.1h70.5v-84.6h-70.5z"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.createElement("path",{stroke:"#A3B4C6",d:"M177.3 207.2v11.5m23.8-11.5v11.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.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"}),r.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"}),r.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:()=>r.createElement("svg",{width:"251",height:"294"},r.createElement("title",null,"Unauthorized"),r.createElement("g",{fill:"none",fillRule:"evenodd"},r.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"}),r.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"}),r.createElement("path",{stroke:"#FFF",d:"m38.7 136.4 10.4 5.9m.9 6.2-12.6 10.7",strokeWidth:"2"}),r.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"}),r.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"}),r.createElement("path",{stroke:"#FFF",d:"m180.2 143.8 12.5 7.1m1.1 7.5-15.1 13",strokeWidth:"2"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.createElement("path",{stroke:"#E4EBF7",d:"M78.2 94.7s.9 7.4-5 13",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.createElement("path",{stroke:"#DB836E",d:"M91.1 86.8s5.3 5 12.7 2.3",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.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"}),r.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"}),r.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"}),r.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"}),r.createElement("path",{stroke:"#DB836E",d:"M64 84.8s-6 10-13.5 10",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),r.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"}),r.createElement("path",{stroke:"#DB836E",d:"M130.5 85.5s4.6 5.7 11.7 6.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),r.createElement("path",{stroke:"#E4EBF7",d:"M121.7 105.7s-.4 8.6-1.3 13.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{stroke:"#648BD8",d:"M115.8 161.5s-3.6-1.5-2.7-7.1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.createElement("path",{stroke:"#648BD8",d:"M108.5 221s2.7-1.2 6-4",strokeLinecap:"round",strokeLinejoin:"round"}),r.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"}),r.createElement("path",{fill:"#192064",d:"M117.4 147.4s-17-3-35.7.2v4.2s14.6-2.9 35.5-.4l.2-4"}),r.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"}),r.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"}),r.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:a,style:n})=>{if(A.includes(`${t}`)){let e=g[t];return r.createElement("div",{className:a,style:n},r.createElement(e,null))}let l=r.createElement(v[t]);return null===e||!1===e?null:r.createElement("div",{className:a,style:n},e||l)},B=({className:e,extra:t,style:a})=>(0,E.AZ)(t)?r.createElement("div",{className:e,style:a},t):null,L=e=>{let{prefixCls:t,className:a,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),V=(0,m.$)(S,`${S}-${s}`,a,z,n,{[`${S}-rtl`]:"rtl"===L},O,H,w.root),I=(0,m.$)(`${S}-title`,w.title),N=(0,m.$)(`${S}-subtitle`,w.subTitle),T=(0,m.$)(`${S}-extra`,w.extra),P=(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 r.createElement("div",{...G,className:V,style:_},r.createElement($,{className:R,style:x.icon,status:s,icon:d}),(0,E.AZ)(c)&&r.createElement("div",{className:I,style:x.title},c),(0,E.AZ)(l)&&r.createElement("div",{className:N,style:x.subTitle},l),r.createElement(B,{className:T,extra:f,style:x.extra}),(0,E.AZ)(i)&&r.createElement("div",{className:P,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},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"}},44400:(e,t,a)=>{a.d(t,{A:()=>o});var r=a(97109),n=a(66400),l=a(88483);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(this,arguments)}let o=r.forwardRef((e,t)=>r.createElement(l.A,c({},e,{ref:t,icon:n.A})))},48156:(e,t,a)=>{a.d(t,{A:()=>o});var r=a(97109),n=a(1676),l=a(88483);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(this,arguments)}let o=r.forwardRef((e,t)=>r.createElement(l.A,c({},e,{ref:t,icon:n.A})))},49075:(e,t,a)=>{a.d(t,{A:()=>o});var r=a(97109),n=a(87715),l=a(88483);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(this,arguments)}let o=r.forwardRef((e,t)=>r.createElement(l.A,c({},e,{ref:t,icon:n.A})))},55122:(e,t,a)=>{a.d(t,{A:()=>f});var r=a(97109),n=a(3638),l=a(5045),c=a(92162),o=a(26047),i=a(74567),s=a(27273),d=a(15561),h=a(7961),m=a(10540),p=a(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:a,colorSplit:r,lineWidth:n,textPaddingInline:l,orientationMargin:c,verticalMarginInline:o}=e,i=`${t}-rail`;return{[t]:{...(0,h.dF)(e),borderBlockStart:`${(0,d.zA)(n)} solid ${r}`,[i]:{borderBlockStart:`${(0,d.zA)(n)} solid ${r}`},"&-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 ${r}`},"&-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 ${r}`,[`${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:r,borderStyle:"dashed",borderWidth:`${(0,d.zA)(n)} 0 0`,[i]:{borderBlockStart:`${(0,d.zA)(n)} dashed ${r}`}},[`&-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:r,borderStyle:"dotted",borderWidth:`${(0,d.zA)(n)} 0 0`,[i]:{borderBlockStart:`${(0,d.zA)(n)} dotted ${r}`}},[`&-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:a}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{[`${i}-start`]:{width:"100%"},[`${i}-end`]:{width:0},[`${t}-inner-text`]:{paddingInlineEnd:a}}}}})(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:a,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),V=!!B,I=k.includes(F||""),N=r.useMemo(()=>{let e=v??(I?F:"center");return"left"===e?"rtl"===a?"end":"start":"right"===e?"rtl"===a?"start":"end":e},[a,F,v,I]),T="start"===N&&null!=g,P="end"===N&&null!=g,[R,_]=(0,l.M)(F,M,u),G={...e,orientation:R,titlePlacement:N,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`]:V,[`${w}-with-text-${N}`]:V,[`${w}-dashed`]:!!L,[`${w}-${z}`]:"solid"!==z,[`${w}-plain`]:!!b,[`${w}-rtl`]:"rtl"===a,[`${w}-no-default-orientation-margin-start`]:T,[`${w}-no-default-orientation-margin-end`]:P,[`${w}-md`]:"medium"===H||"middle"===H,[`${w}-sm`]:"small"===H,[x]:!B,[X.rail]:X.rail&&!B},A,$,X.root),K=r.useMemo(()=>(0,o.Et)(g)?g:/^\d+$/.test(g)?Number(g):g,[g]);return r.createElement("div",{className:q,style:{...h,...Z.root,...B?{}:Z.rail,...j},...y,role:"separator"},B&&!_&&r.createElement(r.Fragment,null,r.createElement("div",{className:(0,n.$)(x,`${x}-start`,X.rail),style:Z.rail}),r.createElement("span",{className:(0,n.$)(`${w}-inner-text`,X.content),style:{marginInlineStart:T?K:void 0,marginInlineEnd:P?K:void 0,...Z.content}},B),r.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,a)=>{a.d(t,{A:()=>o});var r=a(97109),n=a(60182),l=a(88483);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(this,arguments)}let o=r.forwardRef((e,t)=>r.createElement(l.A,c({},e,{ref:t,icon:n.A})))},64068:(e,t,a)=>{a.d(t,{A:()=>o});var r=a(97109),n=a(76148),l=a(88483);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(this,arguments)}let o=r.forwardRef((e,t)=>r.createElement(l.A,c({},e,{ref:t,icon:n.A})))},66400:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M320 224h-66v-56c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v56h-66c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8h66v56c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8v-56h66c4.4 0 8-3.6 8-8V232c0-4.4-3.6-8-8-8zm-60 508h-80V292h80v440zm644-436h-66v-96c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v96h-66c-4.4 0-8 3.6-8 8v416c0 4.4 3.6 8 8 8h66v96c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8v-96h66c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8zm-60 364h-80V364h80v296zM612 404h-66V232c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v172h-66c-4.4 0-8 3.6-8 8v200c0 4.4 3.6 8 8 8h66v172c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V620h66c4.4 0 8-3.6 8-8V412c0-4.4-3.6-8-8-8zm-60 145a3 3 0 01-3 3h-74a3 3 0 01-3-3v-74a3 3 0 013-3h74a3 3 0 013 3v74z"}}]},name:"sliders",theme:"outlined"}},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,a)=>{a.d(t,{A:()=>o});var r=a(97109),n=a(56398),l=a(88483);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(this,arguments)}let o=r.forwardRef((e,t)=>r.createElement(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"}},99811:(e,t,a)=>{a.d(t,{A:()=>o});var r=a(97109),n=a(14995),l=a(88483);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(this,arguments)}let o=r.forwardRef((e,t)=>r.createElement(l.A,c({},e,{ref:t,icon:n.A})))}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[665],{20241:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(97109),l=n(89857),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 r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let a=r.forwardRef((e,t)=>r.createElement(o.A,i({},e,{ref:t,icon:l.A})))},29292:(e,t,n)=>{n.d(t,{cG:()=>el,q7:()=>V,te:()=>ea,Dr:()=>V,g8:()=>er,Ay:()=>em,Wj:()=>v});var r=n(3638),l=n(61910),o=n(42644),i=n(97109),a=n(61222);let s=i.createContext(null);function u(e){var t;return t=i.useContext(s),`${t}-${e}`}let c=i.createContext(null);function f({children:e,locked:t,...n}){let r=i.useContext(c),l=(0,o.Kr)(()=>(function(e,t){let n={...e};return Object.keys(t).forEach(e=>{let r=t[e];void 0!==r&&(n[e]=r)}),n})(r,n),[r,n],(e,n)=>!t&&(e[0]!==n[0]||!(0,o.n4)(e[1],n[1],!0)));return i.createElement(c.Provider,{value:l},e)}let p=i.createContext(null);function m(){return i.useContext(p)}let d=i.createContext([]);function v(e){let t=i.useContext(d);return i.useMemo(()=>void 0!==e?[...t,e]:t,[t,e])}let b=i.createContext(null),h=i.createContext({}),{LEFT:g,RIGHT:y,UP:E,DOWN:w,ENTER:C,ESC:$,HOME:R,END:k}=o.DD,O=[E,w,g,y];function x(e,t){return(0,o.jD)(e,!0).filter(e=>t.has(e))}function P(e,t,n,r=1){if(!e)return null;let l=x(e,t),o=l.length,i=l.findIndex(e=>n===e);return r<0?-1===i?i=o-1:i-=1:r>0&&(i+=1),l[i=(i+o)%o]}let N=(e,t)=>{let n=new Set,r=new Map,l=new Map;return e.forEach(e=>{let o=document.querySelector(`[data-menu-id='${t}-${e}']`);o&&(n.add(o),l.set(o,e),r.set(e,o))}),{elements:n,key2element:r,element2key:l}},j="__RC_UTIL_PATH_SPLIT__",A=e=>e.join(j),M="rc-menu-more";function S(e){let t=i.useRef(e);t.current=e;let n=i.useCallback((...e)=>t.current?.(...e),[]);return e?n:void 0}function I(e,t,n,r){let{activeKey:l,onActive:o,onInactive:a}=i.useContext(c),s={active:l===e};return t||(s.onMouseEnter=t=>{n?.({key:e,domEvent:t}),o(e)},s.onMouseLeave=t=>{r?.({key:e,domEvent:t}),a(e)}),s}function D(e){let{mode:t,rtl:n,inlineIndent:r}=i.useContext(c);return"inline"!==t?null:n?{paddingRight:e*r}:{paddingLeft:e*r}}function L({icon:e,props:t,children:n}){let r;return null===e||!1===e?null:("function"==typeof e?r=i.createElement(e,{...t}):"boolean"!=typeof e&&(r=e),r||n||null)}function T({item:e,...t}){return Object.defineProperty(t,"item",{get:()=>((0,o.$e)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e)}),t}function K(){return(K=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)}class z extends i.Component{render(){let{title:e,attribute:t,elementRef:n,...r}=this.props,a=(0,o.cJ)(r,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,o.$e)(!t,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),i.createElement(l.A.Item,K({},t,{title:"string"==typeof e?e:void 0},a,{ref:n}))}}let _=i.forwardRef((e,t)=>{let{style:n,className:l,eventKey:a,warnKey:s,disabled:f,itemIcon:p,children:m,itemData:d,role:b,onMouseEnter:g,onMouseLeave:y,onClick:E,onKeyDown:w,onFocus:C,...$}=e,R=u(a),{prefixCls:k,onItemClick:O,disabled:x,overflowDisabled:P,itemIcon:N,selectedKeys:j,onActive:A}=i.useContext(c),{_internalRenderMenuItem:M}=i.useContext(h),S=`${k}-item`,_=i.useRef(),V=i.useRef(),W=x||f,B=(0,o.xK)(t,V),F=v(a),q=t=>{let n=d||{key:a||"",label:m,itemIcon:p,extra:e.extra,title:e.title};return{key:a,keyPath:[...F].reverse(),item:_.current,domEvent:t,itemData:d||n}},{active:H,...J}=I(a,W,g,y),G=j.includes(a),X=D(F.length),Y={};"option"===e.role&&(Y["aria-selected"]=G);let U=i.createElement(z,K({ref:_,elementRef:B,role:null===b?"none":b||"menuitem",tabIndex:f?null:-1,"data-menu-id":P&&R?null:R},(0,o.cJ)($,["extra"]),J,Y,{component:"li","aria-disabled":f,style:{...X,...n},className:(0,r.$)(S,{[`${S}-active`]:H,[`${S}-selected`]:G,[`${S}-disabled`]:W},l),onClick:e=>{if(W)return;let t=q(e);E?.(T(t)),O(t)},onKeyDown:e=>{if(w?.(e),e.which===o.DD.ENTER){let t=q(e);E?.(T(t)),O(t)}},onFocus:e=>{A(a),C?.(e)}}),m,i.createElement(L,{props:{...e,isSelected:G},icon:p||N}));return M&&(U=M(U,e,{selected:G})),U}),V=i.forwardRef(function(e,t){let{eventKey:n}=e,r=m(),l=v(n);return(i.useEffect(()=>{if(r)return r.registerPath(n,l),()=>{r.unregisterPath(n,l)}},[l]),r)?null:i.createElement(_,K({},e,{ref:t}))});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 r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let B=i.forwardRef(({className:e,children:t,...n},l)=>{let{prefixCls:o,mode:a,rtl:s}=i.useContext(c);return i.createElement("ul",W({className:(0,r.$)(o,s&&`${o}-rtl`,`${o}-sub`,`${o}-${"inline"===a?"inline":"vertical"}`,e),role:"menu"},n,{"data-menu-list":!0,ref:l}),t)});function F(e,t){return(0,o.$r)(e).map((e,n)=>{if(i.isValidElement(e)){let{key:r}=e,l=e.props?.eventKey??r;null==l&&(l=`tmp_key-${[...t,n].join("-")}`);let o={key:l,eventKey:l};return i.cloneElement(e,o)}return e})}var q=n(82865);let H={adjustX:1,adjustY:1},J={topLeft:{points:["bl","tl"],overflow:H},topRight:{points:["br","tr"],overflow:H},bottomLeft:{points:["tl","bl"],overflow:H},bottomRight:{points:["tr","br"],overflow:H},leftTop:{points:["tr","tl"],overflow:H},leftBottom:{points:["br","bl"],overflow:H},rightTop:{points:["tl","tr"],overflow:H},rightBottom:{points:["bl","br"],overflow:H}},G={topLeft:{points:["bl","tl"],overflow:H},topRight:{points:["br","tr"],overflow:H},bottomLeft:{points:["tl","bl"],overflow:H},bottomRight:{points:["tr","br"],overflow:H},rightTop:{points:["tr","tl"],overflow:H},rightBottom:{points:["br","bl"],overflow:H},leftTop:{points:["tl","tr"],overflow:H},leftBottom:{points:["bl","br"],overflow:H}};function X(e,t,n){return t||(n?n[e]||n.other:void 0)}let Y={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function U({prefixCls:e,visible:t,children:n,popup:l,popupStyle:a,popupClassName:s,popupOffset:u,disabled:f,mode:p,onVisibleChange:m}){let{getPopupContainer:d,rtl:v,subMenuOpenDelay:b,subMenuCloseDelay:h,builtinPlacements:g,triggerSubMenuAction:y,forceSubMenuRender:E,rootClassName:w,motion:C,defaultMotions:$}=i.useContext(c),[R,k]=i.useState(!1),O=v?{...G,...g}:{...J,...g},x=Y[p],P=X(p,C,$),N=i.useRef(P);"inline"!==p&&(N.current=P);let j={...N.current,leavedClassName:`${e}-hidden`,removeOnLeave:!1,motionAppear:!0},A=i.useRef();return i.useEffect(()=>(A.current=(0,o.er)(()=>{k(t)}),()=>{o.er.cancel(A.current)}),[t]),i.createElement(q.Ay,{prefixCls:e,popupClassName:(0,r.$)(`${e}-popup`,{[`${e}-rtl`]:v},s,w),stretch:"horizontal"===p?"minWidth":null,getPopupContainer:d,builtinPlacements:O,popupPlacement:x,popupVisible:R,popup:l,popupStyle:a,popupAlign:u&&{offset:u},action:f?[]:[y],mouseEnterDelay:b,mouseLeaveDelay:h,onPopupVisibleChange:m,forceRender:E,popupMotion:j,fresh:!0},n)}var Q=n(67189);function Z(){return(Z=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)}function ee({id:e,open:t,keyPath:n,children:r}){let l="inline",{prefixCls:o,forceSubMenuRender:a,motion:s,defaultMotions:u,mode:p}=i.useContext(c),m=i.useRef(!1);m.current=p===l;let[d,v]=i.useState(!m.current),b=!!m.current&&t;i.useEffect(()=>{m.current&&v(!1)},[p]);let h={...X(l,s,u)};n.length>1&&(h.motionAppear=!1);let g=h.onVisibleChanged;return(h.onVisibleChanged=e=>(m.current||e||v(!0),g?.(e)),d)?null:i.createElement(f,{mode:l,locked:!m.current},i.createElement(Q.Ay,Z({visible:b},h,{forceRender:a,removeOnLeave:!1,leavedClassName:`${o}-hidden`}),({className:t,style:n})=>i.createElement(B,{id:e,className:t,style:n},r)))}function et(){return(et=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 en=i.forwardRef((e,t)=>{let{style:n,className:o,styles:a,classNames:s,title:p,eventKey:m,warnKey:d,disabled:g,internalPopupClose:y,children:E,itemIcon:w,expandIcon:C,popupClassName:$,popupOffset:R,popupStyle:k,onClick:O,onMouseEnter:x,onMouseLeave:P,onTitleClick:N,onTitleMouseEnter:j,onTitleMouseLeave:A,popupRender:M,...K}=e,z=u(m),{prefixCls:_,mode:V,openKeys:W,disabled:F,overflowDisabled:q,activeKey:H,selectedKeys:J,itemIcon:G,expandIcon:X,onItemClick:Y,onOpenChange:Q,onActive:Z,popupRender:en}=i.useContext(c),{_internalRenderSubMenuItem:er}=i.useContext(h),{isSubPathKey:el}=i.useContext(b),eo=v(),ei=`${_}-submenu`,ea=F||g,es=i.useRef(),eu=i.useRef(),ec=C??X,ef=W.includes(m),ep=!q&&ef,em=el(J,m),{active:ed,...ev}=I(m,ea,j,A),[eb,eh]=i.useState(!1),eg=e=>{ea||eh(e)},ey=i.useMemo(()=>ed||"inline"!==V&&(eb||el([H],m)),[V,ed,H,eb,m,el]),eE=D(eo.length),ew=S(e=>{O?.(T(e)),Y(e)}),eC=z&&`${z}-popup`,e$=i.useMemo(()=>i.createElement(L,{icon:"horizontal"!==V?ec:void 0,props:{...e,isOpen:ep,isSubMenu:!0}},i.createElement("i",{className:`${ei}-arrow`})),[V,ec,e,ep,ei]),eR=i.createElement("div",et({role:"menuitem",style:eE,className:`${ei}-title`,tabIndex:ea?null:-1,ref:es,title:"string"==typeof p?p:null,"data-menu-id":q&&z?null:z,"aria-expanded":ep,"aria-haspopup":!0,"aria-controls":eC,"aria-disabled":ea,onClick:e=>{ea||(N?.({key:m,domEvent:e}),"inline"===V&&Q(m,!ef))},onFocus:()=>{Z(m)}},ev),p,e$),ek=i.useRef(V);"inline"!==V&&eo.length>1?ek.current="vertical":ek.current=V;let eO=ek.current,ex=i.useMemo(()=>{let t=i.createElement(f,{classNames:s,styles:a,mode:"horizontal"===eO?"vertical":eO},i.createElement(B,{id:eC,ref:eu},E)),n=M||en;return n?n(t,{item:e,keys:eo}):t},[M,en,eo,eC,E,e,eO]);if(!q){let e=ek.current;eR=i.createElement(U,{mode:e,prefixCls:ei,visible:!y&&ep&&"inline"!==V,popupClassName:$,popupOffset:R,popupStyle:k,popup:ex,disabled:ea,onVisibleChange:e=>{"inline"!==V&&Q(m,e)}},eR)}let eP=i.createElement(l.A.Item,et({ref:t,role:"none"},K,{component:"li",style:n,className:(0,r.$)(ei,`${ei}-${V}`,o,{[`${ei}-open`]:ep,[`${ei}-active`]:ey,[`${ei}-selected`]:em,[`${ei}-disabled`]:ea}),onMouseEnter:e=>{eg(!0),x?.({key:m,domEvent:e})},onMouseLeave:e=>{eg(!1),P?.({key:m,domEvent:e})}}),eR,!q&&i.createElement(ee,{id:eC,open:ep,keyPath:eo},E));return er&&(eP=er(eP,e,{selected:em,active:ey,open:ep,disabled:ea})),i.createElement(f,{classNames:s,styles:a,onItemClick:ew,mode:"horizontal"===V?"vertical":V,itemIcon:w??G,expandIcon:ec},eP)}),er=i.forwardRef((e,t)=>{let n,{eventKey:r,children:l}=e,o=v(r),a=F(l,o),s=m();return i.useEffect(()=>{if(s)return s.registerPath(r,o),()=>{s.unregisterPath(r,o)}},[o]),n=s?a:i.createElement(en,et({ref:t},e),a),i.createElement(d.Provider,{value:o},n)});function el({className:e,style:t}){let{prefixCls:n}=i.useContext(c);return m()?null:i.createElement("li",{role:"separator",className:(0,r.$)(`${n}-item-divider`,e),style:t})}function eo(){return(eo=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 ei=i.forwardRef((e,t)=>{let{className:n,title:l,eventKey:o,children:a,...s}=e,{prefixCls:u,classNames:f,styles:p}=i.useContext(c),m=`${u}-item-group`;return i.createElement("li",eo({ref:t,role:"presentation"},s,{onClick:e=>e.stopPropagation(),className:(0,r.$)(m,n)}),i.createElement("div",{role:"presentation",className:(0,r.$)(`${m}-title`,f?.listTitle),style:p?.listTitle,title:"string"==typeof l?l:void 0},l),i.createElement("ul",{role:"group",className:(0,r.$)(`${m}-list`,f?.list),style:p?.list},a))}),ea=i.forwardRef((e,t)=>{let{eventKey:n,children:r}=e,l=F(r,v(n));return m()?l:i.createElement(ei,eo({ref:t},(0,o.cJ)(e,["warnKey"])),l)});function es(){return(es=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)}function eu(e,t,n,r,l){let o=e,a={divider:el,item:V,group:ea,submenu:er,...r};return t&&(o=function e(t,n,r){let{item:l,group:o,submenu:a,divider:s}=n;return(t||[]).map((t,u)=>{if(t&&"object"==typeof t){let{label:c,children:f,key:p,type:m,extra:d,...v}=t,b=p??`tmp-${u}`;if(f||"group"===m)return"group"===m?i.createElement(o,es({key:b},v,{title:c}),e(f,n,r)):i.createElement(a,es({key:b},v,{title:c}),e(f,n,r));if("divider"===m)return i.createElement(s,es({key:b},v));let h=!!d||0===d;return i.createElement(l,es({key:b},v,{extra:d,itemData:{...t,key:b}}),h?i.createElement(i.Fragment,null,i.createElement("span",{className:`${r}-item-label`},c),i.createElement("span",{className:`${r}-item-extra`},d)):c)}return null}).filter(e=>e)}(t,a,l)),F(o,n)}function ec(){return(ec=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 ef=[],ep=i.forwardRef((e,t)=>{let{prefixCls:n="rc-menu",rootClassName:u,style:c,className:m,styles:d,classNames:v,tabIndex:I=0,items:D,children:L,direction:K,id:z,mode:_="vertical",inlineCollapsed:W,disabled:B,disabledOverflow:F,subMenuOpenDelay:q=.1,subMenuCloseDelay:H=.1,forceSubMenuRender:J,defaultOpenKeys:G,openKeys:X,activeKey:Y,defaultActiveFirst:U,selectable:Q=!0,multiple:Z=!1,defaultSelectedKeys:ee,selectedKeys:et,onSelect:en,onDeselect:el,inlineIndent:eo=24,motion:ei,defaultMotions:ea,triggerSubMenuAction:es="hover",builtinPlacements:ep,itemIcon:em,expandIcon:ed,overflowedIndicator:ev="...",overflowedIndicatorPopupClassName:eb,getPopupContainer:eh,onClick:eg,onOpenChange:ey,onKeyDown:eE,openAnimation:ew,openTransitionName:eC,_internalRenderMenuItem:e$,_internalRenderSubMenuItem:eR,_internalComponents:ek,popupRender:eO,...ex}=e,[eP,eN]=i.useMemo(()=>[eu(L,D,ef,ek,n),eu(L,D,ef,{},n)],[L,D,ek]),[ej,eA]=i.useState(!1),eM=i.useRef(),eS=(0,o.Bi)(z?`rc-menu-uuid-${z}`:"rc-menu-uuid"),eI="rtl"===K,[eD,eL]=(0,o.PW)(G,X),eT=eD||ef,eK=(e,t=!1)=>{function n(){eL(e),ey?.(e)}t?(0,a.flushSync)(n):n()},[ez,e_]=i.useState(eT),eV=i.useRef(!1),[eW,eB]=i.useMemo(()=>("inline"===_||"vertical"===_)&&W?["vertical",W]:[_,!1],[_,W]),eF="inline"===eW,[eq,eH]=i.useState(eW),[eJ,eG]=i.useState(eB);i.useEffect(()=>{eH(eW),eG(eB),eV.current&&(eF?eL(ez):eK(ef))},[eW,eB]);let[eX,eY]=i.useState(0),eU=eX>=eP.length-1||"horizontal"!==eq||F;i.useEffect(()=>{eF&&e_(eT)},[eT]),i.useEffect(()=>(eV.current=!0,()=>{eV.current=!1}),[]);let{registerPath:eQ,unregisterPath:eZ,refreshOverflowKeys:e0,isSubPathKey:e1,getKeyPath:e6,getKeys:e2,getSubPathKeys:e5}=function(){let[,e]=i.useState({}),t=(0,i.useRef)(new Map),n=(0,i.useRef)(new Map),[r,l]=i.useState([]),o=(0,i.useRef)(0),a=(0,i.useRef)(!1),s=(0,i.useCallback)((r,l)=>{let i=A(l);n.current.set(i,r),t.current.set(r,i),o.current+=1;let s=o.current;Promise.resolve().then(()=>{s===o.current&&(a.current||e({}))})},[]),u=(0,i.useCallback)((e,r)=>{let l=A(r);n.current.delete(l),t.current.delete(e)},[]),c=(0,i.useCallback)(e=>{l(e)},[]),f=(0,i.useCallback)((e,n)=>{let l=(t.current.get(e)||"").split(j);return n&&r.includes(l[0])&&l.unshift(M),l},[r]),p=(0,i.useCallback)((e,t)=>e.filter(e=>void 0!==e).some(e=>f(e,!0).includes(t)),[f]),m=(0,i.useCallback)(e=>{let r=`${t.current.get(e)}${j}`,l=new Set;return[...n.current.keys()].forEach(e=>{e.startsWith(r)&&l.add(n.current.get(e))}),l},[]);return i.useEffect(()=>()=>{a.current=!0},[]),{registerPath:s,unregisterPath:u,refreshOverflowKeys:c,isSubPathKey:p,getKeyPath:f,getKeys:()=>{let e=[...t.current.keys()];return r.length&&e.push(M),e},getSubPathKeys:m}}(),e4=i.useMemo(()=>({registerPath:eQ,unregisterPath:eZ}),[eQ,eZ]),e8=i.useMemo(()=>({isSubPathKey:e1}),[e1]);i.useEffect(()=>{e0(eU?ef:eP.slice(eX+1).map(e=>e.key))},[eX,eU]);let[e9,e7]=(0,o.PW)(Y||U&&eP[0]?.key,Y),e3=S(e=>{e7(e)}),te=S(()=>{e7(void 0)});(0,i.useImperativeHandle)(t,()=>({list:eM.current,focus:e=>{let t,n=e2(),{elements:r,key2element:l,element2key:o}=N(n,eS),i=x(eM.current,r);t=e9&&n.includes(e9)?e9:i[0]?o.get(i[0]):eP.find(e=>!e.props.disabled)?.key;let a=l.get(t);t&&a&&a?.focus?.(e)},findItem:({key:e})=>{let{key2element:t}=N(e2(),eS);return t.get(e)||null}}));let[tt,tn]=(0,o.PW)(ee||[],et),tr=i.useMemo(()=>Array.isArray(tt)?tt:null==tt?ef:[tt],[tt]),tl=S(e=>{eg?.(T(e)),(e=>{if(Q){let t,{key:n}=e,r=tr.includes(n);tn(t=Z?r?tr.filter(e=>e!==n):[...tr,n]:[n]);let l={...e,selectedKeys:t};r?el?.(l):en?.(l)}!Z&&eT.length&&"inline"!==eq&&eK(ef)})(e)}),to=S((e,t)=>{let n=eT.filter(t=>t!==e);if(t)n.push(e);else if("inline"!==eq){let t=e5(e);n=n.filter(e=>!t.has(e))}(0,o.n4)(eT,n,!0)||eK(n,!0)}),ti=function(e,t,n,r,l,a,s,u,c,f){let p=i.useRef(),m=i.useRef();m.current=t;let d=()=>{o.er.cancel(p.current)};return i.useEffect(()=>()=>{d()},[]),i=>{let{which:v}=i;if([...O,C,$,R,k].includes(v)){let f=a(),b=N(f,r),{elements:h,key2element:j,element2key:A}=b,M=function(e,t){let n=e||document.activeElement;for(;n;){if(t.has(n))return n;n=n.parentElement}return null}(j.get(t),h),S=A.get(M),I=function(e,t,n,r){let l="prev",o="next",i="children",a="parent";if("inline"===e&&r===C)return{inlineTrigger:!0};let s={[E]:l,[w]:o},u={[E]:l,[w]:o,[C]:i,[$]:a,[g]:n?i:a,[y]:n?a:i};switch(({inline:s,horizontal:{[g]:n?o:l,[y]:n?l:o,[w]:i,[C]:i},vertical:u,inlineSub:s,horizontalSub:u,verticalSub:u})[`${e}${t?"":"Sub"}`]?.[r]){case l:return{offset:-1,sibling:!0};case o:return{offset:1,sibling:!0};case a:return{offset:-1,sibling:!1};case i:return{offset:1,sibling:!1};default:return null}}(e,1===s(S,!0).length,n,v);if(!I&&v!==R&&v!==k)return;(O.includes(v)||[R,k].includes(v))&&i.preventDefault();let D=e=>{if(e){let t=e,n=e.querySelector("a");n?.getAttribute("href")&&(t=n);let r=A.get(e);u(r),d(),p.current=(0,o.er)(()=>{m.current===r&&t.focus()})}};if([R,k].includes(v)||I.sibling||!M){let t,n=x(t=M&&"inline"!==e?function(e){let t=e;for(;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(M):l.current,h);D(v===R?n[0]:v===k?n[n.length-1]:P(t,h,M,I.offset))}else if(I.inlineTrigger)c(S);else if(I.offset>0)c(S,!0),d(),p.current=(0,o.er)(()=>{b=N(f,r);let e=M.getAttribute("aria-controls");D(P(document.getElementById(e),b.elements))},5);else if(I.offset<0){let e=s(S,!0),t=e[e.length-2],n=j.get(t);c(t,!1),D(n)}}f?.(i)}}(eq,e9,eI,eS,eM,e2,e6,e7,(e,t)=>{let n=t??!eT.includes(e);to(e,n)},eE);i.useEffect(()=>{eA(!0)},[]);let ta=i.useMemo(()=>({_internalRenderMenuItem:e$,_internalRenderSubMenuItem:eR}),[e$,eR]),ts="horizontal"!==eq||F?eP:eP.map((e,t)=>i.createElement(f,{key:e.key,overflowDisabled:t>eX,classNames:v,styles:d},e)),tu=i.createElement(l.A,ec({id:z,ref:eM,prefixCls:`${n}-overflow`,component:"ul",itemComponent:V,className:(0,r.$)(n,`${n}-root`,`${n}-${eq}`,m,{[`${n}-inline-collapsed`]:eJ,[`${n}-rtl`]:eI},u),dir:K,style:c,role:"menu",tabIndex:I,data:ts,renderRawItem:e=>e,renderRawRest:e=>{let t=e.length,n=t?eP.slice(-t):null;return i.createElement(er,{eventKey:M,title:ev,disabled:eU,internalPopupClose:0===t,popupClassName:eb},n)},maxCount:"horizontal"!==eq||F?l.A.INVALIDATE:l.A.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:e=>{eY(e)},onKeyDown:ti},ex));return i.createElement(h.Provider,{value:ta},i.createElement(s.Provider,{value:eS},i.createElement(f,{prefixCls:n,rootClassName:u,classNames:v,styles:d,mode:eq,openKeys:eT,rtl:eI,disabled:B,motion:ej?ei:null,defaultMotions:ej?ea:null,activeKey:e9,onActive:e3,onInactive:te,selectedKeys:tr,inlineIndent:eo,subMenuOpenDelay:q,subMenuCloseDelay:H,forceSubMenuRender:J,builtinPlacements:ep,triggerSubMenuAction:es,getPopupContainer:eh,itemIcon:em,expandIcon:ed,onItemClick:tl,onOpenChange:to,popupRender:eO},i.createElement(b.Provider,{value:e8},tu),i.createElement("div",{style:{display:"none"},"aria-hidden":!0},i.createElement(p.Provider,{value:e4},eN)))))});ep.Item=V,ep.SubMenu=er,ep.ItemGroup=ea,ep.Divider=el;let em=ep},31566:(e,t,n)=>{n.d(t,{A:()=>b});var r=n(82865),l=n(77611),o=n(3638),i=n(97109),a=n(99452),s=n(49127);let{ESC:u,TAB:c}=a.A,f=(0,i.forwardRef)((e,t)=>{let{overlay:n,arrow:r,prefixCls:o}=e,a=(0,i.useMemo)(()=>"function"==typeof n?n():n,[n]),s=(0,l.K4)(t,(0,l.A9)(a));return i.createElement(i.Fragment,null,r&&i.createElement("div",{className:`${o}-arrow`}),i.cloneElement(a,{ref:(0,l.f3)(a)?s:void 0}))}),p={adjustX:1,adjustY:1},m=[0,0],d={topLeft:{points:["bl","tl"],overflow:p,offset:[0,-4],targetOffset:m},top:{points:["bc","tc"],overflow:p,offset:[0,-4],targetOffset:m},topRight:{points:["br","tr"],overflow:p,offset:[0,-4],targetOffset:m},bottomLeft:{points:["tl","bl"],overflow:p,offset:[0,4],targetOffset:m},bottom:{points:["tc","bc"],overflow:p,offset:[0,4],targetOffset:m},bottomRight:{points:["tr","br"],overflow:p,offset:[0,4],targetOffset:m}};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 b=i.forwardRef((e,t)=>{let{arrow:n=!1,prefixCls:a="rc-dropdown",transitionName:p,animation:m,align:b,placement:h="bottomLeft",placements:g=d,getPopupContainer:y,showAction:E,hideAction:w,overlayClassName:C,overlayStyle:$,visible:R,trigger:k=["hover"],autoFocus:O,overlay:x,children:P,onVisibleChange:N,...j}=e,[A,M]=i.useState(),S="visible"in e?R:A,I=m?`${a}-${m}`:p,D=i.useRef(null),L=i.useRef(null),T=i.useRef(null);i.useImperativeHandle(t,()=>D.current);let K=e=>{M(e),N?.(e)};!function({visible:e,triggerRef:t,onVisibleChange:n,autoFocus:r,overlayRef:l}){let o=i.useRef(!1),a=()=>{e&&(t.current?.focus?.(),n?.(!1))},f=()=>!!l.current?.focus&&(l.current.focus(),o.current=!0,!0),p=e=>{switch(e.keyCode){case u:a();break;case c:{let t=!1;o.current||(t=f()),t?e.preventDefault():a()}}};i.useEffect(()=>e?(window.addEventListener("keydown",p),r&&(0,s.A)(f,3),()=>{window.removeEventListener("keydown",p),o.current=!1}):()=>{o.current=!1},[e])}({visible:S,triggerRef:T,onVisibleChange:K,autoFocus:O,overlayRef:L});let z=()=>i.createElement(f,{ref:L,overlay:x,prefixCls:a,arrow:n}),_=i.cloneElement(P,{className:(0,o.$)(P.props?.className,S&&(()=>{let{openClassName:t}=e;return void 0!==t?t:`${a}-open`})()),ref:(0,l.f3)(P)?(0,l.K4)(T,(0,l.A9)(P)):void 0}),V=w;return V||-1===k.indexOf("contextMenu")||(V=["click"]),i.createElement(r.Ay,v({builtinPlacements:g},j,{prefixCls:a,ref:D,popupClassName:(0,o.$)(C,{[`${a}-show-arrow`]:n}),popupStyle:$,action:k,showAction:E,hideAction:V,popupPlacement:h,popupAlign:b,popupMotion:{motionName:I},popupVisible:S,stretch:(()=>{let{minOverlayWidthMatchTrigger:t,alignPoint:n}=e;return"minOverlayWidthMatchTrigger"in e?t:!n})()?"minWidth":"",popup:"function"==typeof x?z:z(),onOpenChange:K,onPopupClick:t=>{let{onOverlayClick:n}=e;M(!1),n&&n(t)},getPopupContainer:y}),_)})},89857:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"}}}]);