chainlesschain 0.157.0 → 0.157.1

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 (114) hide show
  1. package/bin/chainlesschain.js +0 -0
  2. package/package.json +2 -2
  3. package/src/assets/web-panel/.build-hash +1 -1
  4. package/src/assets/web-panel/assets/{ActionButton-CCj9oE5_.js → ActionButton-Dp5EHuSs.js} +1 -1
  5. package/src/assets/web-panel/assets/{Analytics-RMqXlyHE.js → Analytics-Dt69R7IX.js} +2 -2
  6. package/src/assets/web-panel/assets/AppLayout-BiOlkA-r.js +1 -0
  7. package/src/assets/web-panel/assets/AppLayout-Wr63FaJ2.css +1 -0
  8. package/src/assets/web-panel/assets/{Backup-bes7wE_k.js → Backup-sEweroFg.js} +1 -1
  9. package/src/assets/web-panel/assets/{BaseInput-BKgAovqI.js → BaseInput-CMHSpW6z.js} +1 -1
  10. package/src/assets/web-panel/assets/{Chat-Duckao6i.js → Chat-DQusK0UJ.js} +2 -2
  11. package/src/assets/web-panel/assets/{Checkbox-BaBBUZnH.js → Checkbox-DXQE64jQ.js} +1 -1
  12. package/src/assets/web-panel/assets/{Col-B6iQKzFs.js → Col-GesfSTFv.js} +1 -1
  13. package/src/assets/web-panel/assets/{Compact-Fwt0CbI5.js → Compact-DOVOXT5H.js} +1 -1
  14. package/src/assets/web-panel/assets/{Cowork-DNy50_Cp.js → Cowork-BaJ4irYi.js} +3 -3
  15. package/src/assets/web-panel/assets/{Cron-CBREJypB.js → Cron-DLx6zElQ.js} +2 -2
  16. package/src/assets/web-panel/assets/DID-BDvsVa08.css +1 -0
  17. package/src/assets/web-panel/assets/DID-O2dY9RPB.js +2 -0
  18. package/src/assets/web-panel/assets/Dashboard-BReDcgB_.js +3 -0
  19. package/src/assets/web-panel/assets/{Dropdown-B3vdFzOi.js → Dropdown-O-lFvQpB.js} +1 -1
  20. package/src/assets/web-panel/assets/{FormItemContext-RYn2zMn5.js → FormItemContext-Dld2C8JQ.js} +1 -1
  21. package/src/assets/web-panel/assets/{Git-7TolKe3c.js → Git-hvFWgySH.js} +2 -2
  22. package/src/assets/web-panel/assets/{KnowledgeGraph-4b9v3wYV.js → KnowledgeGraph-B_y3Ap4i.js} +1 -1
  23. package/src/assets/web-panel/assets/{Logs-BZgM3Q4b.js → Logs-DhFPaoDT.js} +2 -2
  24. package/src/assets/web-panel/assets/{McpTools-5Wrif1R_.js → McpTools-D0XTOWu9.js} +2 -2
  25. package/src/assets/web-panel/assets/{Memory-D8YRnt51.js → Memory-DW_B6rnE.js} +2 -2
  26. package/src/assets/web-panel/assets/{Notes-CWTUG8hk.js → Notes-BbyhsweS.js} +2 -2
  27. package/src/assets/web-panel/assets/{Organization-DvJzrIES.js → Organization-CChT-ntv.js} +4 -4
  28. package/src/assets/web-panel/assets/{Overflow-tpvXbZkh.js → Overflow-CZx2xJzC.js} +1 -1
  29. package/src/assets/web-panel/assets/{P2P-C-AoKbTs.js → P2P-CwaXSJZR.js} +2 -2
  30. package/src/assets/web-panel/assets/{Permissions-cIclKlQB.js → Permissions-D5U7ha3z.js} +4 -4
  31. package/src/assets/web-panel/assets/ProjectSettings-BQX5tF8E.js +2 -0
  32. package/src/assets/web-panel/assets/ProjectSettings-pLSae-wy.css +1 -0
  33. package/src/assets/web-panel/assets/{Projects-CDKdsdit.js → Projects-CLL9WS2z.js} +2 -2
  34. package/src/assets/web-panel/assets/{Providers-C33u4Mka.js → Providers-fjohdAMK.js} +2 -2
  35. package/src/assets/web-panel/assets/{Row-DVscVTtp.js → Row-C-bX9EFG.js} +1 -1
  36. package/src/assets/web-panel/assets/{RssFeed-CGC4w7VD.js → RssFeed-BsKQE8pe.js} +3 -3
  37. package/src/assets/web-panel/assets/{Security-ymR0We-P.js → Security-DXW6YBaw.js} +3 -3
  38. package/src/assets/web-panel/assets/{Services-Gydt4uVC.js → Services-BnNYoCwx.js} +2 -2
  39. package/src/assets/web-panel/assets/{Skeleton-CfLdvEpu.js → Skeleton-B-K9_08N.js} +1 -1
  40. package/src/assets/web-panel/assets/{Skills-C_SrPIFZ.js → Skills-DB8Qba_i.js} +1 -1
  41. package/src/assets/web-panel/assets/Tasks-0fHss8Sn.js +1 -0
  42. package/src/assets/web-panel/assets/{Templates-Bj1wDexb.js → Templates-Cfch0kkR.js} +1 -1
  43. package/src/assets/web-panel/assets/{Trigger-CIW_GVYA.js → Trigger-CAZQ8LeJ.js} +1 -1
  44. package/src/assets/web-panel/assets/{VideoEditing-CQOwjQFu.js → VideoEditing-CiTgOTo4.js} +1 -1
  45. package/src/assets/web-panel/assets/{Wallet-0kSZ-ENs.js → Wallet-BQiQ4WyF.js} +4 -4
  46. package/src/assets/web-panel/assets/{WebAuthn-CrZlAr6l.js → WebAuthn-Dq27qj5Y.js} +5 -5
  47. package/src/assets/web-panel/assets/{WorkflowEditor-DbdF8700.js → WorkflowEditor-BSXLy_fi.js} +1 -1
  48. package/src/assets/web-panel/assets/{colors-BgoKrIXh.js → colors-CHcJ8oqQ.js} +1 -1
  49. package/src/assets/web-panel/assets/{compact-item-COAuztwB.js → compact-item-BIM24cFh.js} +1 -1
  50. package/src/assets/web-panel/assets/{createContext-BTceykzK.js → createContext-yGfIqyCQ.js} +1 -1
  51. package/src/assets/web-panel/assets/{hasIn-BNooGgXx.js → hasIn-BXMsXiz7.js} +1 -1
  52. package/src/assets/web-panel/assets/{icons-DzieZiVh.js → icons-DEoqYzGZ.js} +4 -4
  53. package/src/assets/web-panel/assets/{index-CjOtB4wg.js → index-36fB-tdr.js} +3 -3
  54. package/src/assets/web-panel/assets/{index-BqJS8Rje.js → index-B-tWHvIW.js} +1 -1
  55. package/src/assets/web-panel/assets/{index-D1SCFE25.js → index-B50P9i-m.js} +1 -1
  56. package/src/assets/web-panel/assets/{index-Cf1n_3VC.js → index-BDzwtAvJ.js} +1 -1
  57. package/src/assets/web-panel/assets/{index-D6w1kIHg.js → index-BEPQ53hT.js} +1 -1
  58. package/src/assets/web-panel/assets/{index-vHj3UTBK.js → index-BPRyVdxV.js} +1 -1
  59. package/src/assets/web-panel/assets/{index-DbxkO9Uy.js → index-BPln_4T8.js} +1 -1
  60. package/src/assets/web-panel/assets/index-BPzN5a2A.js +36 -0
  61. package/src/assets/web-panel/assets/{index-Z9wFemG0.js → index-BaV1qPw2.js} +1 -1
  62. package/src/assets/web-panel/assets/{index-BbBjevdP.js → index-Bm7xqsYQ.js} +1 -1
  63. package/src/assets/web-panel/assets/{index-BMU9I-F6.js → index-BsSnr41N.js} +1 -1
  64. package/src/assets/web-panel/assets/{index-BRBeeCRz.js → index-BtfOEVOq.js} +2 -2
  65. package/src/assets/web-panel/assets/{index-Z5CuKqcS.js → index-C6RUQfzA.js} +1 -1
  66. package/src/assets/web-panel/assets/{index-Bn7dXbEh.js → index-CEBBaWRc.js} +1 -1
  67. package/src/assets/web-panel/assets/{index-DC-nDpH_.js → index-CELIaC07.js} +2 -2
  68. package/src/assets/web-panel/assets/{index-CZ3YetO8.js → index-CN1O5Ka0.js} +1 -1
  69. package/src/assets/web-panel/assets/{index-DDgwb3KP.js → index-CPzBvwi4.js} +1 -1
  70. package/src/assets/web-panel/assets/{index-g7FAcG7B.js → index-CSzJBDW_.js} +1 -1
  71. package/src/assets/web-panel/assets/{index-BEbmwv5T.js → index-CWRVLGUY.js} +3 -3
  72. package/src/assets/web-panel/assets/{index-KEQgDCwj.js → index-CWhMnsWX.js} +1 -1
  73. package/src/assets/web-panel/assets/{index-DnoNK5Gb.js → index-C_VBCJdj.js} +1 -1
  74. package/src/assets/web-panel/assets/{index-81NIDNcI.js → index-CfXwGGJa.js} +1 -1
  75. package/src/assets/web-panel/assets/{index-CpFrvhnj.js → index-Csq1ymAd.js} +1 -1
  76. package/src/assets/web-panel/assets/{index-Bjf02LQY.js → index-CvI-6roc.js} +1 -1
  77. package/src/assets/web-panel/assets/{index-eVLTVVvL.js → index-D2aA1Eww.js} +1 -1
  78. package/src/assets/web-panel/assets/{index-BLzkplpf.js → index-DNwo9Dzx.js} +1 -1
  79. package/src/assets/web-panel/assets/{index-nw5SqpgZ.js → index-DViNLv05.js} +2 -2
  80. package/src/assets/web-panel/assets/index-DX3NKnlx.js +1 -0
  81. package/src/assets/web-panel/assets/{index-C7uW3zj4.js → index-DYbkrS1k.js} +1 -1
  82. package/src/assets/web-panel/assets/index-D_E9PBtZ.js +1 -0
  83. package/src/assets/web-panel/assets/{index-B7gZm05C.js → index-DlqQ3NPc.js} +1 -1
  84. package/src/assets/web-panel/assets/{index-BAPulPv1.js → index-DrBsteza.js} +1 -1
  85. package/src/assets/web-panel/assets/{index-O-dqdn3q.js → index-Mc421_zZ.js} +1 -1
  86. package/src/assets/web-panel/assets/{index-D5wFryiJ.js → index-OcnmMROX.js} +2 -2
  87. package/src/assets/web-panel/assets/{index-cF6gfPY3.js → index-PbAFYgta.js} +1 -1
  88. package/src/assets/web-panel/assets/{index-lrfnKtkl.js → index-T5htsJq3.js} +1 -1
  89. package/src/assets/web-panel/assets/index-lx2gVL_l.js +1 -0
  90. package/src/assets/web-panel/assets/{index-C1BBkQIj.js → index-pj_DB3gf.js} +1 -1
  91. package/src/assets/web-panel/assets/{initDefaultProps-_t-PG0bz.js → initDefaultProps-DR3dFRrN.js} +1 -1
  92. package/src/assets/web-panel/assets/{motion-DPnqtODq.js → motion-Dab0Jzue.js} +1 -1
  93. package/src/assets/web-panel/assets/{move-kO9NQRyb.js → move-CbXivKK7.js} +1 -1
  94. package/src/assets/web-panel/assets/{omit-DD9MqVt0.js → omit-CyPQ4Rvu.js} +1 -1
  95. package/src/assets/web-panel/assets/{pickAttrs-D4u5AYq1.js → pickAttrs-DLkAq0jb.js} +1 -1
  96. package/src/assets/web-panel/assets/{placementArrow-BUkUxlJc.js → placementArrow-OJpzGLKb.js} +1 -1
  97. package/src/assets/web-panel/assets/{responsiveObserve-DA_o8FHw.js → responsiveObserve-BSL-2rcG.js} +1 -1
  98. package/src/assets/web-panel/assets/{slide-DSmAtCrK.js → slide-CSTFi1jq.js} +1 -1
  99. package/src/assets/web-panel/assets/{statusUtils-Bn00xQ4D.js → statusUtils-DYDvuHx4.js} +1 -1
  100. package/src/assets/web-panel/assets/{styleChecker-phGTLjuN.js → styleChecker-BMkbm-8r.js} +1 -1
  101. package/src/assets/web-panel/assets/{transition-exl3w1iN.js → transition-B3-w1SVL.js} +1 -1
  102. package/src/assets/web-panel/assets/{useConfigInject-C2E3Qsop.js → useConfigInject-DIr4olCu.js} +2 -2
  103. package/src/assets/web-panel/assets/{useFlexGapSupport-tlovsMBV.js → useFlexGapSupport-d0_YPT4c.js} +1 -1
  104. package/src/assets/web-panel/assets/{vnode-CIbqhcnZ.js → vnode-Df_mZ5AJ.js} +1 -1
  105. package/src/assets/web-panel/assets/{zoom-Ck9WbYsZ.js → zoom-CY5xo2Ia.js} +1 -1
  106. package/src/assets/web-panel/index.html +2 -2
  107. package/src/assets/web-panel/assets/AppLayout-CSmBboZB.css +0 -1
  108. package/src/assets/web-panel/assets/AppLayout-CV6gWn1r.js +0 -1
  109. package/src/assets/web-panel/assets/Dashboard-DnJ1aZvj.js +0 -3
  110. package/src/assets/web-panel/assets/Tasks-BchvT4YD.js +0 -1
  111. package/src/assets/web-panel/assets/index-4C1c4hkZ.js +0 -36
  112. package/src/assets/web-panel/assets/index-C4YPr8e8.js +0 -1
  113. package/src/assets/web-panel/assets/index-DYDvGZbQ.js +0 -1
  114. package/src/assets/web-panel/assets/index-DeN7D3FZ.js +0 -1
@@ -0,0 +1,36 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./AppLayout-BiOlkA-r.js","./vendor-aH7YaPZi.js","./ws-BTS8ehTm.js","./_plugin-vue_export-helper-DlAUqK2U.js","./icons-DEoqYzGZ.js","./AppLayout-Wr63FaJ2.css","./Dashboard-BReDcgB_.js","./chat-BNXQJRrX.js","./Dashboard-Cviwdc26.css","./Chat-DQusK0UJ.js","./markdown-vYH_ziAO.js","./markdown-xjUYbPSW.js","./markdown-Dfs9RUU9.css","./Chat-DmX5bWvL.css","./Cowork-BaJ4irYi.js","./Cowork-DsOst4XK.css","./Services-BnNYoCwx.js","./Services-C8Qs6KXv.css","./Logs-DhFPaoDT.js","./Logs-Gf_Mv9Nx.css","./Skills-DB8Qba_i.js","./parsers-DftYMnlk.js","./Skills-BdjRyorN.css","./Providers-fjohdAMK.js","./index-36fB-tdr.js","./useConfigInject-DIr4olCu.js","./transition-B3-w1SVL.js","./Keyframes-C7fCrnlS.js","./Portal-DXIqogG2.js","./index-U4Zd5IK6.js","./Providers-BEakqcO5.css","./McpTools-D0XTOWu9.js","./McpTools-CyhSLDwf.css","./ProjectSettings-BQX5tF8E.js","./ProjectSettings-pLSae-wy.css","./Notes-BbyhsweS.js","./Notes-BG69sJKi.css","./Memory-DW_B6rnE.js","./Memory-DRghrGJr.css","./KnowledgeGraph-B_y3Ap4i.js","./KnowledgeGraph-U8ps3aGJ.css","./Cron-DLx6zElQ.js","./WorkflowEditor-BSXLy_fi.js","./WorkflowEditor-D5bX6woe.css","./Tasks-0fHss8Sn.js","./Tasks-BJjN_YEm.css","./Security-DXW6YBaw.js","./Security-Dwxw7rfP.css","./DID-O2dY9RPB.js","./DID-BDvsVa08.css","./Permissions-D5U7ha3z.js","./Permissions-C9WlkGl-.css","./P2P-CwaXSJZR.js","./P2P-OEzOeMZX.css","./Git-hvFWgySH.js","./Git-DGcuBXST.css","./Projects-CLL9WS2z.js","./Projects-DxKelI5h.css","./Wallet-BQiQ4WyF.js","./Wallet-DnIumafl.css","./Organization-CChT-ntv.js","./Organization-DdOOM4ic.css","./Analytics-Dt69R7IX.js","./Analytics-BFI7jbwM.css","./Templates-Cfch0kkR.js","./Templates-DOY_oZnm.css","./Backup-sEweroFg.js","./Backup-fZqtfC1m.css","./RssFeed-BsKQE8pe.js","./RssFeed-BlFC20eg.css","./WebAuthn-Dq27qj5Y.js","./WebAuthn-CNPl2VQR.css","./VideoEditing-CiTgOTo4.js","./VideoEditing-BA1N-5kq.css","./index-BtfOEVOq.js","./vnode-Df_mZ5AJ.js","./index-CN1O5Ka0.js","./colors-CHcJ8oqQ.js","./isNumeric-DjvBa-1E.js","./index-CPzBvwi4.js","./index-DlqQ3NPc.js","./isVisible-C7tPsqfj.js","./useState-CSbzOa8O.js","./raf-Deuc0E8-.js","./devWarning-CNIS3FrJ.js","./warning-Pq00owYb.js","./compact-item-BIM24cFh.js","./createContext-yGfIqyCQ.js","./Compact-DOVOXT5H.js","./_getTag-CWA3v-Ds.js","./initDefaultProps-DR3dFRrN.js","./index-CvI-6roc.js","./index-C6RUQfzA.js","./KeyCode-D63Tfrq7.js","./index-DNwo9Dzx.js","./Trigger-CAZQ8LeJ.js","./motion-Dab0Jzue.js","./ResizeObserver.es-D6qJbdzf.js","./_arrayIncludes-B8uzE354.js","./injectionKey-BXVc-oGP.js","./Overflow-CZx2xJzC.js","./index-Bm7xqsYQ.js","./index-T5htsJq3.js","./placementArrow-OJpzGLKb.js","./firstNotUndefined-CLFzEa0p.js","./zoom-CY5xo2Ia.js","./collapseMotion-CSS8MlIE.js","./slide-CSTFi1jq.js","./OverrideContext-9ePmgwvW.js","./Dropdown-O-lFvQpB.js","./useRefs-C8A7zAB_.js","./hasIn-BXMsXiz7.js","./isSymbol-CsP9Ob42.js","./isMobile--2fOlCHx.js","./useMergedState-DUMpRiCy.js","./omit-CyPQ4Rvu.js","./isPlainObject-DSTnI585.js","./Skeleton-B-K9_08N.js","./index-CfXwGGJa.js","./Checkbox-DXQE64jQ.js","./FormItemContext-Dld2C8JQ.js","./index-D_E9PBtZ.js","./Col-GesfSTFv.js","./index-BPRyVdxV.js","./index-CWRVLGUY.js","./index-BPln_4T8.js","./responsiveObserve-BSL-2rcG.js","./index-C_VBCJdj.js","./index-DViNLv05.js","./move-CbXivKK7.js","./index-BDzwtAvJ.js","./Row-C-bX9EFG.js","./useFlexGapSupport-d0_YPT4c.js","./styleChecker-BMkbm-8r.js","./debounce-Q0BOJsYd.js","./index-CELIaC07.js","./statusUtils-DYDvuHx4.js","./BaseInput-CMHSpW6z.js","./index-BsSnr41N.js","./index-pj_DB3gf.js","./index-BEPQ53hT.js","./index-D2aA1Eww.js","./index-PbAFYgta.js","./index-OcnmMROX.js","./index-CWhMnsWX.js","./pickAttrs-DLkAq0jb.js","./index-DYbkrS1k.js","./ActionButton-Dp5EHuSs.js","./index-CSzJBDW_.js","./index-BaV1qPw2.js","./index-DrBsteza.js","./index-lx2gVL_l.js","./index-B50P9i-m.js","./index-DX3NKnlx.js","./index-CEBBaWRc.js","./index-B-tWHvIW.js","./index-Mc421_zZ.js","./index-Csq1ymAd.js"])))=>i.map(i=>d[i]);
2
+ import{b as Ie,e as Le,i as le,s as D,g as Ce,d as se,w as U,u as w,p as ue,f as De,o as Re,j as E,r as de,t as Oe,k as Be,l as we,m as Me,q as J,v as ke,x as Ve,c as He,y as ze,z as Xe,A as Fe}from"./vendor-aH7YaPZi.js";import{T as b,g as k}from"./icons-DEoqYzGZ.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const c of i.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&n(c)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();const Ne="modulepreload",$e=function(e,t){return new URL(e,t).href},Z={},a=function(t,r,n){let o=Promise.resolve();if(r&&r.length>0){let m=function(f){return Promise.all(f.map(d=>Promise.resolve(d).then(_=>({status:"fulfilled",value:_}),_=>({status:"rejected",reason:_}))))};const c=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),p=s?.nonce||s?.getAttribute("nonce");o=m(r.map(f=>{if(f=$e(f,n),f in Z)return;Z[f]=!0;const d=f.endsWith(".css"),_=d?'[rel="stylesheet"]':"";if(n)for(let h=c.length-1;h>=0;h--){const v=c[h];if(v.href===f&&(!d||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${f}"]${_}`))return;const g=document.createElement("link");if(g.rel=d?"stylesheet":Ne,d||(g.as="script"),g.crossOrigin="",g.href=f,p&&g.setAttribute("nonce",p),document.head.appendChild(g),d)return new Promise((h,v)=>{g.addEventListener("load",h),g.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${f}`)))})}))}function i(c){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=c,window.dispatchEvent(s),!s.defaultPrevented)throw c}return o.then(c=>{for(const s of c||[])s.status==="rejected"&&i(s.reason);return t().catch(i)})},Ge=[{path:"/",component:()=>a(()=>import("./AppLayout-BiOlkA-r.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url),children:[{path:"",redirect:"/dashboard"},{path:"dashboard",name:"Dashboard",component:()=>a(()=>import("./Dashboard-BReDcgB_.js"),__vite__mapDeps([6,1,2,7,3,4,8]),import.meta.url)},{path:"chat",name:"Chat",component:()=>a(()=>import("./Chat-DQusK0UJ.js"),__vite__mapDeps([9,1,7,2,3,4,10,11,12,13]),import.meta.url)},{path:"cowork",name:"Cowork",component:()=>a(()=>import("./Cowork-BaJ4irYi.js"),__vite__mapDeps([14,1,2,7,10,11,12,3,4,15]),import.meta.url)},{path:"services",name:"Services",component:()=>a(()=>import("./Services-BnNYoCwx.js"),__vite__mapDeps([16,2,1,3,4,17]),import.meta.url)},{path:"logs",name:"Logs",component:()=>a(()=>import("./Logs-DhFPaoDT.js"),__vite__mapDeps([18,2,1,3,4,19]),import.meta.url)},{path:"skills",name:"Skills",component:()=>a(()=>import("./Skills-DB8Qba_i.js"),__vite__mapDeps([20,1,2,21,7,3,4,22]),import.meta.url)},{path:"providers",name:"Providers",component:()=>a(()=>import("./Providers-fjohdAMK.js"),__vite__mapDeps([23,1,2,21,3,24,25,4,26,27,28,29,30]),import.meta.url)},{path:"mcp",name:"McpTools",component:()=>a(()=>import("./McpTools-D0XTOWu9.js"),__vite__mapDeps([31,2,1,3,4,32]),import.meta.url)},{path:"project-settings",name:"ProjectSettings",component:()=>a(()=>import("./ProjectSettings-BQX5tF8E.js"),__vite__mapDeps([33,2,1,3,24,25,4,26,27,28,29,34]),import.meta.url)},{path:"notes",name:"Notes",component:()=>a(()=>import("./Notes-BbyhsweS.js"),__vite__mapDeps([35,2,1,3,4,24,25,26,27,28,29,36]),import.meta.url)},{path:"memory",name:"Memory",component:()=>a(()=>import("./Memory-DW_B6rnE.js"),__vite__mapDeps([37,2,1,3,4,24,25,26,27,28,29,38]),import.meta.url)},{path:"knowledge",name:"Knowledge",component:()=>a(()=>import("./KnowledgeGraph-B_y3Ap4i.js"),__vite__mapDeps([39,1,2,3,24,25,4,26,27,28,29,40]),import.meta.url)},{path:"cron",name:"Cron",component:()=>a(()=>import("./Cron-DLx6zElQ.js"),__vite__mapDeps([41,2,1,4,24,25,26,27,28,29]),import.meta.url)},{path:"workflow",name:"Workflow",component:()=>a(()=>import("./WorkflowEditor-BSXLy_fi.js"),__vite__mapDeps([42,1,2,3,4,24,25,26,27,28,29,43]),import.meta.url)},{path:"tasks",name:"Tasks",component:()=>a(()=>import("./Tasks-0fHss8Sn.js"),__vite__mapDeps([44,1,2,3,4,45]),import.meta.url)},{path:"security",name:"Security",component:()=>a(()=>import("./Security-DXW6YBaw.js"),__vite__mapDeps([46,2,1,3,24,25,4,26,27,28,29,47]),import.meta.url)},{path:"did",name:"DID",component:()=>a(()=>import("./DID-O2dY9RPB.js"),__vite__mapDeps([48,2,1,3,24,25,4,26,27,28,29,49]),import.meta.url)},{path:"permissions",name:"Permissions",component:()=>a(()=>import("./Permissions-D5U7ha3z.js"),__vite__mapDeps([50,2,1,3,24,25,4,26,27,28,29,51]),import.meta.url)},{path:"p2p",name:"P2P",component:()=>a(()=>import("./P2P-CwaXSJZR.js"),__vite__mapDeps([52,2,1,3,4,53]),import.meta.url)},{path:"git",name:"Git",component:()=>a(()=>import("./Git-hvFWgySH.js"),__vite__mapDeps([54,2,1,3,4,24,25,26,27,28,29,55]),import.meta.url)},{path:"projects",name:"Projects",component:()=>a(()=>import("./Projects-CLL9WS2z.js"),__vite__mapDeps([56,2,1,3,4,57]),import.meta.url)},{path:"wallet",name:"Wallet",component:()=>a(()=>import("./Wallet-BQiQ4WyF.js"),__vite__mapDeps([58,2,1,3,24,25,4,26,27,28,29,59]),import.meta.url)},{path:"organization",name:"Organization",component:()=>a(()=>import("./Organization-CChT-ntv.js"),__vite__mapDeps([60,1,2,3,24,25,4,26,27,28,29,61]),import.meta.url)},{path:"analytics",name:"Analytics",component:()=>a(()=>import("./Analytics-Dt69R7IX.js"),__vite__mapDeps([62,2,1,3,4,24,25,26,27,28,29,63]),import.meta.url)},{path:"templates",name:"Templates",component:()=>a(()=>import("./Templates-Cfch0kkR.js"),__vite__mapDeps([64,1,2,3,4,24,25,26,27,28,29,65]),import.meta.url)},{path:"backup",name:"Backup",component:()=>a(()=>import("./Backup-sEweroFg.js"),__vite__mapDeps([66,2,1,3,4,67]),import.meta.url)},{path:"rssfeed",name:"RssFeed",component:()=>a(()=>import("./RssFeed-BsKQE8pe.js"),__vite__mapDeps([68,1,2,3,4,24,25,26,27,28,29,69]),import.meta.url)},{path:"webauthn",name:"WebAuthn",component:()=>a(()=>import("./WebAuthn-Dq27qj5Y.js"),__vite__mapDeps([70,2,1,3,24,25,4,26,27,28,29,71]),import.meta.url)},{path:"video",name:"VideoEditing",component:()=>a(()=>import("./VideoEditing-CiTgOTo4.js"),__vite__mapDeps([72,2,1,3,4,24,25,26,27,28,29,73]),import.meta.url)}]}],je=Ie({history:Le(),routes:Ge});function u(){return u=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},u.apply(null,arguments)}const $t=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t},We=e=>{const t=e;return t.install=function(r){r.component(t.displayName||t.name,e)},e};function Gt(){return{type:[Function,Array]}}function me(e){return{type:Object,default:e}}function z(e){return{type:Boolean,default:e}}function jt(e){return{type:Function,default:e}}function Ue(e,t){const r={validator:()=>!0,default:e};return r}function Wt(){return{validator:()=>!0}}function ee(e){return{type:Array,default:e}}function te(e){return{type:String,default:e}}function Ke(e,t){return e?{type:e,default:t}:Ue(t)}function pe(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}const oe="%";class qe{constructor(t){this.cache=new Map,this.instanceId=t}get(t){return this.cache.get(Array.isArray(t)?t.join(oe):t)||null}update(t,r){const n=Array.isArray(t)?t.join(oe):t,o=this.cache.get(n),i=r(o);i===null?this.cache.delete(n):this.cache.set(n,i)}}const Qe="data-token-hash",X="data-css-hash",I="__cssinjs_instance__";function R(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${X}]`)||[],{firstChild:r}=document.head;Array.from(t).forEach(o=>{o[I]=o[I]||e,o[I]===e&&document.head.insertBefore(o,r)});const n={};Array.from(document.querySelectorAll(`style[${X}]`)).forEach(o=>{var i;const c=o.getAttribute(X);n[c]?o[I]===e&&((i=o.parentNode)===null||i===void 0||i.removeChild(o)):n[c]=!0})}return new qe(e)}const fe=Symbol("StyleContextKey"),Ye=()=>{var e,t,r;const n=Ce();let o;if(n&&n.appContext){const i=(r=(t=(e=n.appContext)===null||e===void 0?void 0:e.config)===null||t===void 0?void 0:t.globalProperties)===null||r===void 0?void 0:r.__ANTDV_CSSINJS_CACHE__;i?o=i:(o=R(),n.appContext.config.globalProperties&&(n.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__=o))}else o=R();return o},_e={cache:R(),defaultCache:!0,hashPriority:"low"},K=()=>{const e=Ye();return le(fe,D(u(u({},_e),{cache:e})))},Je=e=>{const t=K(),r=D(u(u({},_e),{cache:R()}));return U([()=>w(e),t],()=>{const n=u({},t.value),o=w(e);Object.keys(o).forEach(c=>{const s=o[c];o[c]!==void 0&&(n[c]=s)});const{cache:i}=o;n.cache=n.cache||R(),n.defaultCache=!i&&t.value.defaultCache,r.value=n},{immediate:!0}),ue(fe,r),r},Ze=()=>({autoClear:z(),mock:te(),cache:me(),defaultCache:z(),hashPriority:te(),container:Ke(),ssrInline:z(),transformers:ee(),linters:ee()});We(se({name:"AStyleProvider",inheritAttrs:!1,props:Ze(),setup(e,t){let{slots:r}=t;return Je(e),()=>{var n;return(n=r.default)===null||n===void 0?void 0:n.call(r)}}}));function et(e,t,r,n){const o=K(),i=D(""),c=D();De(()=>{i.value=[e,...t.value].join("%")});const s=p=>{o.value.cache.update(p,m=>{const[f=0,d]=m||[];return f-1===0?(n?.(d,!1),null):[f-1,d]})};return U(i,(p,m)=>{m&&s(m),o.value.cache.update(p,f=>{const[d=0,_]=f||[],h=_||r();return[d+1,h]}),c.value=o.value.cache.get(i.value)[1]},{immediate:!0}),Re(()=>{s(i.value)}),c}function ge(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function tt(e,t){return e&&e.contains?e.contains(t):!1}const re="data-vc-order",ot="vc-util-key",j=new Map;function he(){let{mark:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return e?e.startsWith("data-")?e:`data-${e}`:ot}function V(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function rt(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function ve(e){return Array.from((j.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function Ee(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ge())return null;const{csp:r,prepend:n}=t,o=document.createElement("style");o.setAttribute(re,rt(n)),r?.nonce&&(o.nonce=r?.nonce),o.innerHTML=e;const i=V(t),{firstChild:c}=i;if(n){if(n==="queue"){const s=ve(i).filter(p=>["prepend","prependQueue"].includes(p.getAttribute(re)));if(s.length)return i.insertBefore(o,s[s.length-1].nextSibling),o}i.insertBefore(o,c)}else i.appendChild(o);return o}function be(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=V(t);return ve(r).find(n=>n.getAttribute(he(t))===e)}function nt(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=be(e,t);r&&V(t).removeChild(r)}function it(e,t){const r=j.get(e);if(!r||!tt(document,r)){const n=Ee("",t),{parentNode:o}=n;j.set(e,o),e.removeChild(n)}}function at(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var n,o,i;const c=V(r);it(c,r);const s=be(t,r);if(s)return!((n=r.csp)===null||n===void 0)&&n.nonce&&s.nonce!==((o=r.csp)===null||o===void 0?void 0:o.nonce)&&(s.nonce=(i=r.csp)===null||i===void 0?void 0:i.nonce),s.innerHTML!==e&&(s.innerHTML=e),s;const p=Ee(e,r);return p.setAttribute(he(r),t),p}function ct(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}class S{constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n={map:this.cache};return t.forEach(o=>{var i;n?n=(i=n?.map)===null||i===void 0?void 0:i.get(o):n=void 0}),n?.value&&r&&(n.value[1]=this.cacheCallTimes++),n?.value}get(t){var r;return(r=this.internalGet(t,!0))===null||r===void 0?void 0:r[0]}has(t){return!!this.internalGet(t)}set(t,r){if(!this.has(t)){if(this.size()+1>S.MAX_CACHE_SIZE+S.MAX_CACHE_OFFSET){const[o]=this.keys.reduce((i,c)=>{const[,s]=i;return this.internalGet(c)[1]<s?[c,this.internalGet(c)[1]]:i},[this.keys[0],this.cacheCallTimes]);this.delete(o)}this.keys.push(t)}let n=this.cache;t.forEach((o,i)=>{if(i===t.length-1)n.set(o,{value:[r,this.cacheCallTimes++]});else{const c=n.get(o);c?c.map||(c.map=new Map):n.set(o,{map:new Map}),n=n.get(o).map}})}deleteByPath(t,r){var n;const o=t.get(r[0]);if(r.length===1)return o.map?t.set(r[0],{map:o.map}):t.delete(r[0]),(n=o.value)===null||n===void 0?void 0:n[0];const i=this.deleteByPath(o.map,r.slice(1));return(!o.map||o.map.size===0)&&!o.value&&t.delete(r[0]),i}delete(t){if(this.has(t))return this.keys=this.keys.filter(r=>!ct(r,t)),this.deleteByPath(this.cache,t)}}S.MAX_CACHE_SIZE=20;S.MAX_CACHE_OFFSET=5;function lt(){}let st=lt,ne=0;class Ae{constructor(t){this.derivatives=Array.isArray(t)?t:[t],this.id=ne,t.length===0&&st(t.length>0),ne+=1}getDerivativeToken(t){return this.derivatives.reduce((r,n)=>n(t,r),void 0)}}const F=new S;function ut(e){const t=Array.isArray(e)?e:[e];return F.has(t)||F.set(t,new Ae(t)),F.get(t)}const ie=new WeakMap;function M(e){let t=ie.get(e)||"";return t||(Object.keys(e).forEach(r=>{const n=e[r];t+=r,n instanceof Ae?t+=n.id:n&&typeof n=="object"?t+=M(n):t+=n}),ie.set(e,t)),t}function dt(e,t){return pe(`${t}_${M(e)}`)}const C=`random-${Date.now()}-${Math.random()}`.replace(/\./g,""),Te="_bAmBoO_";function mt(e,t,r){var n,o;if(ge()){at(e,C);const i=document.createElement("div");i.style.position="fixed",i.style.left="0",i.style.top="0",t?.(i),document.body.appendChild(i);const c=r?r(i):(n=getComputedStyle(i).content)===null||n===void 0?void 0:n.includes(Te);return(o=i.parentNode)===null||o===void 0||o.removeChild(i),nt(C),c}return!1}let N;function Ut(){return N===void 0&&(N=mt(`@layer ${C} { .${C} { content: "${Te}"!important; } }`,e=>{e.className=C})),N}const ae={},pt="css",y=new Map;function ft(e){y.set(e,(y.get(e)||0)+1)}function _t(e,t){typeof document<"u"&&document.querySelectorAll(`style[${Qe}="${e}"]`).forEach(n=>{var o;n[I]===t&&((o=n.parentNode)===null||o===void 0||o.removeChild(n))})}const gt=0;function ht(e,t){y.set(e,(y.get(e)||0)-1);const r=Array.from(y.keys()),n=r.filter(o=>(y.get(o)||0)<=0);r.length-n.length>gt&&n.forEach(o=>{_t(o,t),y.delete(o)})}const vt=(e,t,r,n)=>{const o=r.getDerivativeToken(e);let i=u(u({},o),t);return n&&(i=n(i)),i};function Et(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:de({});const n=K(),o=E(()=>u({},...t.value)),i=E(()=>M(o.value)),c=E(()=>M(r.value.override||ae));return et("token",E(()=>[r.value.salt||"",e.value.id,i.value,c.value]),()=>{const{salt:p="",override:m=ae,formatToken:f,getComputedToken:d}=r.value,_=d?d(o.value,m,e.value):vt(o.value,m,e.value,f),g=dt(_,p);_._tokenKey=g,ft(g);const h=`${pt}-${pe(g)}`;return _._hashId=h,[_,h]},p=>{var m;ht(p[0]._tokenKey,(m=n.value)===null||m===void 0?void 0:m.cache.instanceId)})}const bt="4.2.6",At=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function Tt(e){const{sizeUnit:t,sizeStep:r}=e;return{sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}const q={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},Q=u(u({},q),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
3
+ 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
4
+ 'Noto Color Emoji'`,fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1});function ye(e,t){let{generateColorPalettes:r,generateNeutralColorPalettes:n}=t;const{colorSuccess:o,colorWarning:i,colorError:c,colorInfo:s,colorPrimary:p,colorBgBase:m,colorTextBase:f}=e,d=r(p),_=r(o),g=r(i),h=r(c),v=r(s),Pe=n(m,f);return u(u({},Pe),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:_[1],colorSuccessBgHover:_[2],colorSuccessBorder:_[3],colorSuccessBorderHover:_[4],colorSuccessHover:_[4],colorSuccess:_[6],colorSuccessActive:_[7],colorSuccessTextHover:_[8],colorSuccessText:_[9],colorSuccessTextActive:_[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorBgMask:new b("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const yt=e=>{let t=e,r=e,n=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e>16?16:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:o}};function xt(e){const{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:o}=e;return u({motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:o+1},yt(n))}const A=(e,t)=>new b(e).setAlpha(t).toRgbString(),P=(e,t)=>new b(e).darken(t).toHexString(),St=e=>{const t=k(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},Pt=(e,t)=>{const r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:A(n,.88),colorTextSecondary:A(n,.65),colorTextTertiary:A(n,.45),colorTextQuaternary:A(n,.25),colorFill:A(n,.15),colorFillSecondary:A(n,.06),colorFillTertiary:A(n,.04),colorFillQuaternary:A(n,.02),colorBgLayout:P(r,4),colorBgContainer:P(r,0),colorBgElevated:P(r,0),colorBgSpotlight:A(n,.85),colorBorder:P(r,15),colorBorderSecondary:P(r,6)}};function It(e){const t=new Array(10).fill(null).map((r,n)=>{const o=n-1,i=e*Math.pow(2.71828,o/5),c=n>1?Math.floor(i):Math.ceil(i);return Math.floor(c/2)*2});return t[1]=e,t.map(r=>{const n=r+8;return{size:r,lineHeight:n/r}})}const Lt=e=>{const t=It(e),r=t.map(o=>o.size),n=t.map(o=>o.lineHeight);return{fontSizeSM:r[0],fontSize:r[1],fontSizeLG:r[2],fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:n[1],lineHeightLG:n[2],lineHeightSM:n[0],lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}};function Y(e){const t=Object.keys(q).map(r=>{const n=k(e[r]);return new Array(10).fill(1).reduce((o,i,c)=>(o[`${r}-${c+1}`]=n[c],o),{})}).reduce((r,n)=>(r=u(u({},r),n),r),{});return u(u(u(u(u(u(u({},e),t),ye(e,{generateColorPalettes:St,generateNeutralColorPalettes:Pt})),Lt(e.fontSize)),Tt(e)),At(e)),xt(e))}function $(e){return e>=0&&e<=255}function O(e,t){const{r,g:n,b:o,a:i}=new b(e).toRgb();if(i<1)return e;const{r:c,g:s,b:p}=new b(t).toRgb();for(let m=.01;m<=1;m+=.01){const f=Math.round((r-c*(1-m))/m),d=Math.round((n-s*(1-m))/m),_=Math.round((o-p*(1-m))/m);if($(f)&&$(d)&&$(_))return new b({r:f,g:d,b:_,a:Math.round(m*100)/100}).toRgbString()}return new b({r,g:n,b:o,a:1}).toRgbString()}var Ct=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function Dt(e){const{override:t}=e,r=Ct(e,["override"]),n=u({},t);Object.keys(Q).forEach(g=>{delete n[g]});const o=u(u({},r),n),i=480,c=576,s=768,p=992,m=1200,f=1600,d=2e3;return u(u(u({},o),{colorLink:o.colorInfoText,colorLinkHover:o.colorInfoHover,colorLinkActive:o.colorInfoActive,colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:O(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:O(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:O(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:O(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
5
+ 0 1px 2px 0 rgba(0, 0, 0, 0.03),
6
+ 0 1px 6px -1px rgba(0, 0, 0, 0.02),
7
+ 0 2px 4px 0 rgba(0, 0, 0, 0.02)
8
+ `,boxShadowSecondary:`
9
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
10
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
11
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
12
+ `,boxShadowTertiary:`
13
+ 0 1px 2px 0 rgba(0, 0, 0, 0.03),
14
+ 0 1px 6px -1px rgba(0, 0, 0, 0.02),
15
+ 0 2px 4px 0 rgba(0, 0, 0, 0.02)
16
+ `,screenXS:i,screenXSMin:i,screenXSMax:c-1,screenSM:c,screenSMMin:c,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:p-1,screenLG:p,screenLGMin:p,screenLGMax:m-1,screenXL:m,screenXLMin:m,screenXLMax:f-1,screenXXL:f,screenXXLMin:f,screenXXLMax:d-1,screenXXXL:d,screenXXXLMin:d,boxShadowPopoverArrow:"3px 3px 7px rgba(0, 0, 0, 0.1)",boxShadowCard:`
17
+ 0 1px 2px -2px ${new b("rgba(0, 0, 0, 0.16)").toRgbString()},
18
+ 0 3px 6px 0 ${new b("rgba(0, 0, 0, 0.12)").toRgbString()},
19
+ 0 5px 12px 4px ${new b("rgba(0, 0, 0, 0.09)").toRgbString()}
20
+ `,boxShadowDrawerRight:`
21
+ -6px 0 16px 0 rgba(0, 0, 0, 0.08),
22
+ -3px 0 6px -4px rgba(0, 0, 0, 0.12),
23
+ -9px 0 28px 8px rgba(0, 0, 0, 0.05)
24
+ `,boxShadowDrawerLeft:`
25
+ 6px 0 16px 0 rgba(0, 0, 0, 0.08),
26
+ 3px 0 6px -4px rgba(0, 0, 0, 0.12),
27
+ 9px 0 28px 8px rgba(0, 0, 0, 0.05)
28
+ `,boxShadowDrawerUp:`
29
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
30
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
31
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
32
+ `,boxShadowDrawerDown:`
33
+ 0 -6px 16px 0 rgba(0, 0, 0, 0.08),
34
+ 0 -3px 6px -4px rgba(0, 0, 0, 0.12),
35
+ 0 -9px 28px 8px rgba(0, 0, 0, 0.05)
36
+ `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),n)}const Rt=ut(Y),xe={token:Q,hashed:!0},Se=Symbol("DesignTokenContext"),W=D(),Ot=e=>{ue(Se,e),U(e,()=>{W.value=w(e),Oe(W)},{immediate:!0,deep:!0})},Kt=se({props:{value:me()},setup(e,t){let{slots:r}=t;return Ot(E(()=>e.value)),()=>{var n;return(n=r.default)===null||n===void 0?void 0:n.call(r)}}});function qt(){const e=le(Se,E(()=>W.value||xe)),t=E(()=>`${bt}-${e.value.hashed||""}`),r=E(()=>e.value.theme||Rt),n=Et(r,E(()=>[Q,e.value.token]),E(()=>({salt:t.value,override:u({override:e.value.token},e.value.components),formatToken:Dt})));return[r,E(()=>n.value[0]),E(()=>e.value.hashed?n.value[1]:"")]}const T=(e,t)=>new b(e).setAlpha(t).toRgbString(),x=(e,t)=>new b(e).lighten(t).toHexString(),Bt=e=>{const t=k(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},wt=(e,t)=>{const r=e||"#000",n=t||"#fff";return{colorBgBase:r,colorTextBase:n,colorText:T(n,.85),colorTextSecondary:T(n,.65),colorTextTertiary:T(n,.45),colorTextQuaternary:T(n,.25),colorFill:T(n,.18),colorFillSecondary:T(n,.12),colorFillTertiary:T(n,.08),colorFillQuaternary:T(n,.04),colorBgElevated:x(r,12),colorBgContainer:x(r,8),colorBgLayout:x(r,0),colorBgSpotlight:x(r,26),colorBorder:x(r,26),colorBorderSecondary:x(r,19)}},Mt=(e,t)=>{const r=Object.keys(q).map(o=>{const i=k(e[o],{theme:"dark"});return new Array(10).fill(1).reduce((c,s,p)=>(c[`${o}-${p+1}`]=i[p],c),{})}).reduce((o,i)=>(o=u(u({},o),i),o),{}),n=t??Y(e);return u(u(u({},n),r),ye(e,{generateColorPalettes:Bt,generateNeutralColorPalettes:wt}))},B={defaultSeed:xe.token,defaultAlgorithm:Y,darkAlgorithm:Mt},ce="cc_theme",G={dark:{label:"暗黑",icon:"🌑",antd:{algorithm:B.darkAlgorithm,token:{colorPrimary:"#1677ff",colorBgBase:"#141414",colorBgContainer:"#1f1f1f",colorBgElevated:"#2a2a2a",borderRadius:8,fontFamily:'system-ui, -apple-system, "Segoe UI", sans-serif'},components:{Layout:{siderBg:"#1c1c1c",headerBg:"#1c1c1c",bodyBg:"#141414"},Menu:{darkItemBg:"#1c1c1c",darkSubMenuItemBg:"#171717"}}},vars:{"--bg-base":"#141414","--bg-sidebar":"#1c1c1c","--bg-header":"#1c1c1c","--bg-card":"#1f1f1f","--bg-card-hover":"#262626","--border-color":"#252525","--border-subtle":"#1e1e1e","--text-primary":"#e0e0e0","--text-secondary":"#888","--text-muted":"#444","--logo-text":"#ffffff","--menu-mode":"dark","--shadow-card":"0 2px 8px rgba(0,0,0,.45)","--group-title":"#3a3a3a"}},light:{label:"亮白",icon:"☀️",antd:{algorithm:B.defaultAlgorithm,token:{colorPrimary:"#1677ff",colorBgBase:"#ffffff",colorBgContainer:"#ffffff",colorBgElevated:"#ffffff",borderRadius:8,fontFamily:'system-ui, -apple-system, "Segoe UI", sans-serif'},components:{Layout:{siderBg:"#ffffff",headerBg:"#ffffff",bodyBg:"#f4f6fb"},Menu:{itemBg:"#ffffff"}}},vars:{"--bg-base":"#f4f6fb","--bg-sidebar":"#ffffff","--bg-header":"#ffffff","--bg-card":"#ffffff","--bg-card-hover":"#f0f4ff","--border-color":"#e8edf5","--border-subtle":"#f0f0f0","--text-primary":"#1a1a2e","--text-secondary":"#5a6474","--text-muted":"#b0b8c8","--logo-text":"#1a1a2e","--menu-mode":"light","--shadow-card":"0 2px 12px rgba(0,0,0,.07)","--group-title":"#aab0bc"}},blue:{label:"深蓝",icon:"🌊",antd:{algorithm:B.darkAlgorithm,token:{colorPrimary:"#2f80ed",colorBgBase:"#0d1117",colorBgContainer:"#161b22",colorBgElevated:"#1c2230",borderRadius:8,fontFamily:'system-ui, -apple-system, "Segoe UI", sans-serif'},components:{Layout:{siderBg:"#0f1923",headerBg:"#0f1923",bodyBg:"#0d1117"},Menu:{darkItemBg:"#0f1923",darkSubMenuItemBg:"#0b1520"}}},vars:{"--bg-base":"#0d1117","--bg-sidebar":"#0f1923","--bg-header":"#0f1923","--bg-card":"#161b22","--bg-card-hover":"#1c2230","--border-color":"#21303f","--border-subtle":"#182030","--text-primary":"#c9d8ef","--text-secondary":"#6e8caa","--text-muted":"#2d4060","--logo-text":"#e0eeff","--menu-mode":"dark","--shadow-card":"0 2px 8px rgba(0,40,80,.5)","--group-title":"#2d4060"}},green:{label:"翠绿",icon:"🌿",antd:{algorithm:B.darkAlgorithm,token:{colorPrimary:"#29a270",colorBgBase:"#0a1a12",colorBgContainer:"#0f2318",colorBgElevated:"#152e20",borderRadius:8,fontFamily:'system-ui, -apple-system, "Segoe UI", sans-serif'},components:{Layout:{siderBg:"#0c1e14",headerBg:"#0c1e14",bodyBg:"#0a1a12"},Menu:{darkItemBg:"#0c1e14",darkSubMenuItemBg:"#091810"}}},vars:{"--bg-base":"#0a1a12","--bg-sidebar":"#0c1e14","--bg-header":"#0c1e14","--bg-card":"#0f2318","--bg-card-hover":"#152e20","--border-color":"#1a3828","--border-subtle":"#122a1c","--text-primary":"#c0e8c8","--text-secondary":"#5a9a6a","--text-muted":"#1e4028","--logo-text":"#d8f0e0","--menu-mode":"dark","--shadow-card":"0 2px 8px rgba(0,40,20,.5)","--group-title":"#1e4028"}}},kt=Be("theme",()=>{const e=de(localStorage.getItem(ce)||"light"),t=E(()=>G[e.value]||G.dark),r=E(()=>t.value.antd),n=E(()=>e.value!=="light");function o(){const s=t.value.vars,p=document.documentElement;for(const[m,f]of Object.entries(s))p.style.setProperty(m,f);p.setAttribute("data-theme",e.value)}function i(s){G[s]&&(e.value=s,localStorage.setItem(ce,s),o())}function c(){o()}return{current:e,config:t,antdTheme:r,isDark:n,setTheme:i,init:c}}),Vt={__name:"App",setup(e){const t=kt();return we(()=>t.init()),(r,n)=>{const o=J("router-view"),i=J("a-config-provider");return ke(),Me(i,{theme:w(t).antdTheme},{default:Ve(()=>[He(o)]),_:1},8,["theme"])}}};function l(e,t=r=>r.default){return ze({suspensible:!1,loader:()=>e().then(r=>t(r))})}const Ht={AAlert:l(()=>a(()=>import("./index-BtfOEVOq.js"),__vite__mapDeps([74,25,1,4,29,26,75]),import.meta.url)),ABadge:l(()=>a(()=>import("./index-CN1O5Ka0.js"),__vite__mapDeps([76,25,1,4,29,75,26,27,77,78]),import.meta.url)),AButton:l(()=>a(()=>import("./index-CPzBvwi4.js").then(e=>e.i),__vite__mapDeps([79,25,1,4,80,81,82,83,29,84,85,86,87,88,89,90]),import.meta.url)),ACard:l(()=>a(()=>import("./index-CvI-6roc.js"),__vite__mapDeps([91,25,1,4,92,83,93,94,84,85,95,29,96,28,75,81,97,89,26,98,99,100,101,102,103,104,77,105,27,90,106,107,108,109,82,110,111,112,113,114,115,116,117]),import.meta.url)),ACheckbox:l(()=>a(()=>import("./index-CfXwGGJa.js").then(e=>e.i),__vite__mapDeps([118,25,1,4,119,29,90,120,87,27]),import.meta.url)),ACol:l(()=>a(()=>import("./index-D_E9PBtZ.js"),__vite__mapDeps([121,122,25,1,4,123]),import.meta.url)),ACollapse:l(()=>a(()=>import("./index-CWRVLGUY.js"),__vite__mapDeps([124,25,1,4,75,29,104,106,90,84,85]),import.meta.url)),ACollapsePanel:l(()=>a(()=>import("./index-CWRVLGUY.js"),__vite__mapDeps([124,25,1,4,75,29,104,106,90,84,85]),import.meta.url),e=>e.default.Panel||e.CollapsePanel),AConfigProvider:l(()=>a(()=>import("./index-36fB-tdr.js").then(e=>e.i),__vite__mapDeps([24,25,1,4,26,27,28,29]),import.meta.url)),ADescriptions:l(()=>a(()=>import("./index-BPln_4T8.js"),__vite__mapDeps([125,25,1,4,126,29,75]),import.meta.url)),ADescriptionsItem:l(()=>a(()=>import("./index-BPln_4T8.js"),__vite__mapDeps([125,25,1,4,126,29,75]),import.meta.url),e=>e.DescriptionsItem),ADivider:l(()=>a(()=>import("./index-C_VBCJdj.js"),__vite__mapDeps([127,25,1,4]),import.meta.url)),ADropdown:l(()=>a(()=>import("./index-DViNLv05.js"),__vite__mapDeps([128,109,25,1,4,29,95,83,96,28,75,81,97,89,26,79,80,82,84,85,86,87,88,90,103,129,27,107,105,115,108]),import.meta.url)),AEmpty:l(()=>a(()=>import("./useConfigInject-DIr4olCu.js").then(e=>e.$),__vite__mapDeps([25,1,4]),import.meta.url)),AForm:l(()=>a(()=>import("./index-BDzwtAvJ.js"),__vite__mapDeps([130,25,1,4,29,95,83,96,28,75,81,97,89,26,111,112,116,131,126,132,133,123,85,98,134,122,102,103,104,77,105,27,90,106,120,87]),import.meta.url)),AFormItem:l(()=>a(()=>import("./index-BDzwtAvJ.js"),__vite__mapDeps([130,25,1,4,29,95,83,96,28,75,81,97,89,26,111,112,116,131,126,132,133,123,85,98,134,122,102,103,104,77,105,27,90,106,120,87]),import.meta.url),e=>e.default.Item||e.FormItem),AInput:l(()=>a(()=>import("./index-CELIaC07.js"),__vite__mapDeps([135,25,1,4,120,87,136,115,29,75,137,88,89,138,86,79,80,81,82,83,84,85,90,116,101,97]),import.meta.url)),AInputGroup:l(()=>a(()=>import("./index-CELIaC07.js"),__vite__mapDeps([135,25,1,4,120,87,136,115,29,75,137,88,89,138,86,79,80,81,82,83,84,85,90,116,101,97]),import.meta.url),e=>e.default.Group||e.InputGroup),AInputNumber:l(()=>a(()=>import("./index-pj_DB3gf.js"),__vite__mapDeps([139,25,1,4,113,85,83,93,120,87,75,115,29,136,138,86,88,89]),import.meta.url)),AInputPassword:l(()=>a(()=>import("./index-CELIaC07.js"),__vite__mapDeps([135,25,1,4,120,87,136,115,29,75,137,88,89,138,86,79,80,81,82,83,84,85,90,116,101,97]),import.meta.url),e=>e.default.Password||e.InputPassword),AInputSearch:l(()=>a(()=>import("./index-CELIaC07.js"),__vite__mapDeps([135,25,1,4,120,87,136,115,29,75,137,88,89,138,86,79,80,81,82,83,84,85,90,116,101,97]),import.meta.url),e=>e.default.Search||e.InputSearch),ALayout:l(()=>a(()=>import("./index-BEPQ53hT.js"),__vite__mapDeps([140,25,1,4,99,29,90,78]),import.meta.url)),ALayoutContent:l(()=>a(()=>import("./index-BEPQ53hT.js"),__vite__mapDeps([140,25,1,4,99,29,90,78]),import.meta.url),e=>e.LayoutContent||e.default.Content),ALayoutHeader:l(()=>a(()=>import("./index-BEPQ53hT.js"),__vite__mapDeps([140,25,1,4,99,29,90,78]),import.meta.url),e=>e.LayoutHeader||e.default.Header),ALayoutSider:l(()=>a(()=>import("./index-BEPQ53hT.js"),__vite__mapDeps([140,25,1,4,99,29,90,78]),import.meta.url),e=>e.LayoutSider||e.default.Sider),AList:l(()=>a(()=>import("./index-D2aA1Eww.js"),__vite__mapDeps([141,25,1,4,142,29,90,27,143,144,95,83,96,28,75,81,97,89,26,93,137,145,100,101,113,115,114,82,120,87,136,88,129,107,86,126,138,104,131,132,133,123,122]),import.meta.url)),AListItem:l(()=>a(()=>import("./index-D2aA1Eww.js"),__vite__mapDeps([141,25,1,4,142,29,90,27,143,144,95,83,96,28,75,81,97,89,26,93,137,145,100,101,113,115,114,82,120,87,136,88,129,107,86,126,138,104,131,132,133,123,122]),import.meta.url),e=>e.default.Item||e.Item),AMenu:l(()=>a(()=>import("./index-DNwo9Dzx.js"),__vite__mapDeps([94,25,1,4,84,85,95,29,83,96,28,75,81,97,89,26,98,99,100,101,102,103,104,77,105,27,90,93,106,107,108]),import.meta.url)),AMenuDivider:l(()=>a(()=>import("./index-DNwo9Dzx.js"),__vite__mapDeps([94,25,1,4,84,85,95,29,83,96,28,75,81,97,89,26,98,99,100,101,102,103,104,77,105,27,90,93,106,107,108]),import.meta.url),e=>e.default.Divider||e.Divider),AMenuItem:l(()=>a(()=>import("./index-DNwo9Dzx.js"),__vite__mapDeps([94,25,1,4,84,85,95,29,83,96,28,75,81,97,89,26,98,99,100,101,102,103,104,77,105,27,90,93,106,107,108]),import.meta.url),e=>e.default.Item||e.Item),AMenuItemGroup:l(()=>a(()=>import("./index-DNwo9Dzx.js"),__vite__mapDeps([94,25,1,4,84,85,95,29,83,96,28,75,81,97,89,26,98,99,100,101,102,103,104,77,105,27,90,93,106,107,108]),import.meta.url),e=>e.default.ItemGroup||e.ItemGroup),AModal:l(()=>a(()=>import("./index-DYbkrS1k.js"),__vite__mapDeps([146,25,1,4,93,115,145,90,26,29,96,28,83,79,80,81,82,84,85,86,87,88,89,133,27,105,147,24,75]),import.meta.url)),APopconfirm:l(()=>a(()=>import("./index-CSzJBDW_.js"),__vite__mapDeps([148,25,1,4,102,29,95,83,96,28,75,81,97,89,26,103,104,77,105,27,90,115,79,80,82,84,85,86,87,88,114,93,147]),import.meta.url)),AProgress:l(()=>a(()=>import("./index-BaV1qPw2.js"),__vite__mapDeps([149,25,1,4,90,84,85,110,102,29,95,83,96,28,75,81,97,89,26,103,104,77,105,27]),import.meta.url)),ARadioButton:l(()=>a(()=>import("./index-DrBsteza.js"),__vite__mapDeps([150,25,1,4,29,119,90,120,87,115,27]),import.meta.url),e=>e.default.Button||e.RadioButton),ARadioGroup:l(()=>a(()=>import("./index-DrBsteza.js"),__vite__mapDeps([150,25,1,4,29,119,90,120,87,115,27]),import.meta.url),e=>e.default.Group||e.RadioGroup),ARow:l(()=>a(()=>import("./index-lx2gVL_l.js"),__vite__mapDeps([151,131,25,1,4,126,132,133,123]),import.meta.url)),ASelect:l(()=>a(()=>import("./index-CWhMnsWX.js").then(e=>e.i),__vite__mapDeps([144,25,1,4,95,29,83,96,28,75,81,97,89,26,93,137,145,100,101,113,90,115,114,82,120,87,136,88,129,27,107,86]),import.meta.url)),ASelectOption:l(()=>a(()=>import("./index-CWhMnsWX.js").then(e=>e.i),__vite__mapDeps([144,25,1,4,95,29,83,96,28,75,81,97,89,26,93,137,145,100,101,113,90,115,114,82,120,87,136,88,129,27,107,86]),import.meta.url),e=>e.default.Option||e.Option),ASlider:l(()=>a(()=>import("./index-B50P9i-m.js"),__vite__mapDeps([152,25,1,4,29,95,83,96,28,75,81,97,89,26,93,90,102,103,104,77,105,27,120,87]),import.meta.url)),ASpace:l(()=>a(()=>import("./index-DX3NKnlx.js"),__vite__mapDeps([153,25,1,4,29,132,133,88,87,89]),import.meta.url)),ASpin:l(()=>a(()=>import("./index-PbAFYgta.js"),__vite__mapDeps([142,25,1,4,29,90,27]),import.meta.url)),AStatistic:l(()=>a(()=>import("./index-CEBBaWRc.js"),__vite__mapDeps([154,25,1,4,90,117,27,115]),import.meta.url)),ASwitch:l(()=>a(()=>import("./index-B-tWHvIW.js"),__vite__mapDeps([155,25,1,4,29,93,80,81,82,83,120,87,115]),import.meta.url)),ATable:l(()=>a(()=>import("./index-Mc421_zZ.js"),__vite__mapDeps([156,25,1,4,133,143,144,95,29,83,96,28,75,81,97,89,26,93,137,145,100,101,113,90,115,114,82,120,87,136,88,129,27,107,86,126,138,104,106,84,85,142,118,119,128,109,79,80,103,105,108,94,98,99,102,77,150,135,116,134,112]),import.meta.url)),ATabPane:l(()=>a(()=>import("./index-C6RUQfzA.js"),__vite__mapDeps([92,25,1,4,83,93,94,84,85,95,29,96,28,75,81,97,89,26,98,99,100,101,102,103,104,77,105,27,90,106,107,108,109,82,110,111,112,113,114,115]),import.meta.url),e=>e.default.TabPane||e.TabPane),ATabs:l(()=>a(()=>import("./index-C6RUQfzA.js"),__vite__mapDeps([92,25,1,4,83,93,94,84,85,95,29,96,28,75,81,97,89,26,98,99,100,101,102,103,104,77,105,27,90,106,107,108,109,82,110,111,112,113,114,115]),import.meta.url)),ATag:l(()=>a(()=>import("./index-Csq1ymAd.js"),__vite__mapDeps([157,25,1,4,29,80,81,82,83,77]),import.meta.url)),ATextarea:l(()=>a(()=>import("./index-CELIaC07.js"),__vite__mapDeps([135,25,1,4,120,87,136,115,29,75,137,88,89,138,86,79,80,81,82,83,84,85,90,116,101,97]),import.meta.url),e=>e.default.TextArea||e.Textarea),ATooltip:l(()=>a(()=>import("./index-T5htsJq3.js").then(e=>e.i),__vite__mapDeps([102,29,95,83,25,1,4,96,28,75,81,97,89,26,103,104,77,105,27,90]),import.meta.url))};function zt(e){Object.entries(Ht).forEach(([t,r])=>{e.component(t,r)})}const Xt=new URL(""+new URL("favicon-FSU2gSy6.ico",import.meta.url).href,import.meta.url).href;let L=document.querySelector('link[rel="icon"]');L||(L=document.createElement("link"),L.rel="icon",document.head.appendChild(L));L.href=Xt;const H=Xe(Vt);H.use(Fe());H.use(je);zt(H);H.mount("#app");export{X as A,I as C,Kt as D,G as T,u as _,st as a,at as b,ge as c,qt as d,xe as e,ut as f,K as g,et as h,Qe as i,Ut as j,Ue as k,Gt as l,pe as m,z as n,me as o,jt as p,ee as q,nt as r,Q as s,$t as t,kt as u,Wt as v,We as w,te as x,Ke as y,tt as z};
@@ -1,3 +1,3 @@
1
- import{_ as $,g as G,m as K,r as V,u as Y}from"./useConfigInject-C2E3Qsop.js";import{i as _}from"./initDefaultProps-_t-PG0bz.js";import{as as A,ah as z,a7 as q,v as Q,a2 as U}from"./icons-DzieZiVh.js";import{x as w,y as X,o as J,k as E,n as Z,p as ee,_ as x,w as te}from"./index-4C1c4hkZ.js";import{d as re}from"./devWarning-CNIS3FrJ.js";import{d as I,c as g,H as F,j as u,a1 as oe,r as B}from"./vendor-aH7YaPZi.js";import{u as se}from"./useRefs-C8A7zAB_.js";import{T as ne}from"./index-lrfnKtkl.js";import{K as ie}from"./Keyframes-C7fCrnlS.js";import"./warning-Pq00owYb.js";import"./index-U4Zd5IK6.js";import"./Trigger-CIW_GVYA.js";import"./raf-Deuc0E8-.js";import"./motion-DPnqtODq.js";import"./Portal-DXIqogG2.js";import"./vnode-CIbqhcnZ.js";import"./isVisible-C7tPsqfj.js";import"./ResizeObserver.es-D6qJbdzf.js";import"./_getTag-CWA3v-Ds.js";import"./transition-exl3w1iN.js";import"./placementArrow-BUkUxlJc.js";import"./firstNotUndefined-CLFzEa0p.js";import"./colors-BgoKrIXh.js";import"./zoom-Ck9WbYsZ.js";const le=["normal","exception","active","success"],j=()=>({prefixCls:String,type:w(),percent:Number,format:ee(),status:w(),showInfo:Z(),strokeWidth:Number,strokeLinecap:w(),strokeColor:E(),trailColor:String,width:Number,success:J(),gapDegree:Number,gapPosition:w(),size:X([String,Number,Array]),steps:Number,successPercent:Number,title:String,progressStatus:w()});function P(e){return!e||e<0?0:e>100?100:e}function D(e){let{success:t,successPercent:o}=e,r=o;return t&&"progress"in t&&(re(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),r=t.progress),t&&"percent"in t&&(r=t.percent),r}function ae(e){let{percent:t,success:o,successPercent:r}=e;const s=P(D({success:o,successPercent:r}));return[s,P(P(t)-s)]}function ce(e){let{success:t={},strokeColor:o}=e;const{strokeColor:r}=t;return[r||A.green,o||null]}const W=(e,t,o)=>{var r,s,f,i;let n=-1,l=-1;if(t==="step"){const v=o.steps,d=o.strokeWidth;typeof e=="string"||typeof e>"u"?(n=e==="small"?2:14,l=d??8):typeof e=="number"?[n,l]=[e,e]:[n=14,l=8]=e,n*=v}else if(t==="line"){const v=o?.strokeWidth;typeof e=="string"||typeof e>"u"?l=v||(e==="small"?6:8):typeof e=="number"?[n,l]=[e,e]:[n=-1,l=8]=e}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[n,l]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[n,l]=[e,e]:(n=(s=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&s!==void 0?s:120,l=(i=(f=e[0])!==null&&f!==void 0?f:e[1])!==null&&i!==void 0?i:120));return{width:n,height:l}};var ue=function(e,t){var o={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(o[r[s]]=e[r[s]]);return o};const de=()=>x(x({},j()),{strokeColor:E(),direction:w()}),ge=e=>{let t=[];return Object.keys(e).forEach(o=>{const r=parseFloat(o.replace(/%/g,""));isNaN(r)||t.push({key:r,value:e[o]})}),t=t.sort((o,r)=>o.key-r.key),t.map(o=>{let{key:r,value:s}=o;return`${s} ${r}%`}).join(", ")},pe=(e,t)=>{const{from:o=A.blue,to:r=A.blue,direction:s=t==="rtl"?"to left":"to right"}=e,f=ue(e,["from","to","direction"]);if(Object.keys(f).length!==0){const i=ge(f);return{backgroundImage:`linear-gradient(${s}, ${i})`}}return{backgroundImage:`linear-gradient(${s}, ${o}, ${r})`}},fe=I({compatConfig:{MODE:3},name:"ProgressLine",inheritAttrs:!1,props:de(),setup(e,t){let{slots:o,attrs:r}=t;const s=u(()=>{const{strokeColor:a,direction:p}=e;return a&&typeof a!="string"?pe(a,p):{backgroundColor:a}}),f=u(()=>e.strokeLinecap==="square"||e.strokeLinecap==="butt"?0:void 0),i=u(()=>e.trailColor?{backgroundColor:e.trailColor}:void 0),n=u(()=>{var a;return(a=e.size)!==null&&a!==void 0?a:[-1,e.strokeWidth||(e.size==="small"?6:8)]}),l=u(()=>W(n.value,"line",{strokeWidth:e.strokeWidth})),v=u(()=>{const{percent:a}=e;return x({width:`${P(a)}%`,height:`${l.value.height}px`,borderRadius:f.value},s.value)}),d=u(()=>D(e)),C=u(()=>{const{success:a}=e;return{width:`${P(d.value)}%`,height:`${l.value.height}px`,borderRadius:f.value,backgroundColor:a?.strokeColor}}),m={width:l.value.width<0?"100%":l.value.width,height:`${l.value.height}px`};return()=>{var a;return g(F,null,[g("div",$($({},r),{},{class:[`${e.prefixCls}-outer`,r.class],style:[r.style,m]}),[g("div",{class:`${e.prefixCls}-inner`,style:i.value},[g("div",{class:`${e.prefixCls}-bg`,style:v.value},null),d.value!==void 0?g("div",{class:`${e.prefixCls}-success-bg`,style:C.value},null):null])]),(a=o.default)===null||a===void 0?void 0:a.call(o)])}}}),me={percent:0,prefixCls:"vc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1},ve=e=>{const t=B(null);return oe(()=>{const o=Date.now();let r=!1;e.value.forEach(s=>{const f=s?.$el||s;if(!f)return;r=!0;const i=f.style;i.transitionDuration=".3s, .3s, .3s, .06s",t.value&&o-t.value<100&&(i.transitionDuration="0s, 0s")}),r&&(t.value=Date.now())}),e},he={gapDegree:Number,gapPosition:{type:String},percent:{type:[Array,Number]},prefixCls:String,strokeColor:{type:[Object,String,Array]},strokeLinecap:{type:String},strokeWidth:Number,trailColor:String,trailWidth:Number,transition:String};var ye=function(e,t){var o={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(o[r[s]]=e[r[s]]);return o};let N=0;function R(e){return+e.replace("%","")}function T(e){return Array.isArray(e)?e:[e]}function M(e,t,o,r){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,f=arguments.length>5?arguments[5]:void 0;const i=50-r/2;let n=0,l=-i,v=0,d=-2*i;switch(f){case"left":n=-i,l=0,v=2*i,d=0;break;case"right":n=i,l=0,v=-2*i,d=0;break;case"bottom":l=i,d=2*i;break}const C=`M 50,50 m ${n},${l}
1
+ import{_ as $,g as G,m as K,r as V,u as Y}from"./useConfigInject-DIr4olCu.js";import{i as _}from"./initDefaultProps-DR3dFRrN.js";import{au as A,aj as z,a9 as q,w as Q,a4 as U}from"./icons-DEoqYzGZ.js";import{x as w,y as X,o as J,k as E,n as Z,p as ee,_ as x,w as te}from"./index-BPzN5a2A.js";import{d as re}from"./devWarning-CNIS3FrJ.js";import{d as I,c as g,H as F,j as u,a1 as oe,r as B}from"./vendor-aH7YaPZi.js";import{u as se}from"./useRefs-C8A7zAB_.js";import{T as ne}from"./index-T5htsJq3.js";import{K as ie}from"./Keyframes-C7fCrnlS.js";import"./warning-Pq00owYb.js";import"./index-U4Zd5IK6.js";import"./Trigger-CAZQ8LeJ.js";import"./raf-Deuc0E8-.js";import"./motion-Dab0Jzue.js";import"./Portal-DXIqogG2.js";import"./vnode-Df_mZ5AJ.js";import"./isVisible-C7tPsqfj.js";import"./ResizeObserver.es-D6qJbdzf.js";import"./_getTag-CWA3v-Ds.js";import"./transition-B3-w1SVL.js";import"./placementArrow-OJpzGLKb.js";import"./firstNotUndefined-CLFzEa0p.js";import"./colors-CHcJ8oqQ.js";import"./zoom-CY5xo2Ia.js";const le=["normal","exception","active","success"],j=()=>({prefixCls:String,type:w(),percent:Number,format:ee(),status:w(),showInfo:Z(),strokeWidth:Number,strokeLinecap:w(),strokeColor:E(),trailColor:String,width:Number,success:J(),gapDegree:Number,gapPosition:w(),size:X([String,Number,Array]),steps:Number,successPercent:Number,title:String,progressStatus:w()});function P(e){return!e||e<0?0:e>100?100:e}function D(e){let{success:t,successPercent:o}=e,r=o;return t&&"progress"in t&&(re(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),r=t.progress),t&&"percent"in t&&(r=t.percent),r}function ae(e){let{percent:t,success:o,successPercent:r}=e;const s=P(D({success:o,successPercent:r}));return[s,P(P(t)-s)]}function ce(e){let{success:t={},strokeColor:o}=e;const{strokeColor:r}=t;return[r||A.green,o||null]}const W=(e,t,o)=>{var r,s,f,i;let n=-1,l=-1;if(t==="step"){const v=o.steps,d=o.strokeWidth;typeof e=="string"||typeof e>"u"?(n=e==="small"?2:14,l=d??8):typeof e=="number"?[n,l]=[e,e]:[n=14,l=8]=e,n*=v}else if(t==="line"){const v=o?.strokeWidth;typeof e=="string"||typeof e>"u"?l=v||(e==="small"?6:8):typeof e=="number"?[n,l]=[e,e]:[n=-1,l=8]=e}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[n,l]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[n,l]=[e,e]:(n=(s=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&s!==void 0?s:120,l=(i=(f=e[0])!==null&&f!==void 0?f:e[1])!==null&&i!==void 0?i:120));return{width:n,height:l}};var ue=function(e,t){var o={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(o[r[s]]=e[r[s]]);return o};const de=()=>x(x({},j()),{strokeColor:E(),direction:w()}),ge=e=>{let t=[];return Object.keys(e).forEach(o=>{const r=parseFloat(o.replace(/%/g,""));isNaN(r)||t.push({key:r,value:e[o]})}),t=t.sort((o,r)=>o.key-r.key),t.map(o=>{let{key:r,value:s}=o;return`${s} ${r}%`}).join(", ")},pe=(e,t)=>{const{from:o=A.blue,to:r=A.blue,direction:s=t==="rtl"?"to left":"to right"}=e,f=ue(e,["from","to","direction"]);if(Object.keys(f).length!==0){const i=ge(f);return{backgroundImage:`linear-gradient(${s}, ${i})`}}return{backgroundImage:`linear-gradient(${s}, ${o}, ${r})`}},fe=I({compatConfig:{MODE:3},name:"ProgressLine",inheritAttrs:!1,props:de(),setup(e,t){let{slots:o,attrs:r}=t;const s=u(()=>{const{strokeColor:a,direction:p}=e;return a&&typeof a!="string"?pe(a,p):{backgroundColor:a}}),f=u(()=>e.strokeLinecap==="square"||e.strokeLinecap==="butt"?0:void 0),i=u(()=>e.trailColor?{backgroundColor:e.trailColor}:void 0),n=u(()=>{var a;return(a=e.size)!==null&&a!==void 0?a:[-1,e.strokeWidth||(e.size==="small"?6:8)]}),l=u(()=>W(n.value,"line",{strokeWidth:e.strokeWidth})),v=u(()=>{const{percent:a}=e;return x({width:`${P(a)}%`,height:`${l.value.height}px`,borderRadius:f.value},s.value)}),d=u(()=>D(e)),C=u(()=>{const{success:a}=e;return{width:`${P(d.value)}%`,height:`${l.value.height}px`,borderRadius:f.value,backgroundColor:a?.strokeColor}}),m={width:l.value.width<0?"100%":l.value.width,height:`${l.value.height}px`};return()=>{var a;return g(F,null,[g("div",$($({},r),{},{class:[`${e.prefixCls}-outer`,r.class],style:[r.style,m]}),[g("div",{class:`${e.prefixCls}-inner`,style:i.value},[g("div",{class:`${e.prefixCls}-bg`,style:v.value},null),d.value!==void 0?g("div",{class:`${e.prefixCls}-success-bg`,style:C.value},null):null])]),(a=o.default)===null||a===void 0?void 0:a.call(o)])}}}),me={percent:0,prefixCls:"vc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1},ve=e=>{const t=B(null);return oe(()=>{const o=Date.now();let r=!1;e.value.forEach(s=>{const f=s?.$el||s;if(!f)return;r=!0;const i=f.style;i.transitionDuration=".3s, .3s, .3s, .06s",t.value&&o-t.value<100&&(i.transitionDuration="0s, 0s")}),r&&(t.value=Date.now())}),e},he={gapDegree:Number,gapPosition:{type:String},percent:{type:[Array,Number]},prefixCls:String,strokeColor:{type:[Object,String,Array]},strokeLinecap:{type:String},strokeWidth:Number,trailColor:String,trailWidth:Number,transition:String};var ye=function(e,t){var o={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(o[r[s]]=e[r[s]]);return o};let N=0;function R(e){return+e.replace("%","")}function T(e){return Array.isArray(e)?e:[e]}function M(e,t,o,r){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,f=arguments.length>5?arguments[5]:void 0;const i=50-r/2;let n=0,l=-i,v=0,d=-2*i;switch(f){case"left":n=-i,l=0,v=2*i,d=0;break;case"right":n=i,l=0,v=-2*i,d=0;break;case"bottom":l=i,d=2*i;break}const C=`M 50,50 m ${n},${l}
2
2
  a ${i},${i} 0 1 1 ${v},${-d}
3
3
  a ${i},${i} 0 1 1 ${-v},${d}`,m=Math.PI*2*i,a={stroke:o,strokeDasharray:`${t/100*(m-s)}px ${m}px`,strokeDashoffset:`-${s/2+e/100*(m-s)}px`,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s"};return{pathString:C,pathStyle:a}}const Ce=I({compatConfig:{MODE:3},name:"VCCircle",props:_(he,me),setup(e){N+=1;const t=B(N),o=u(()=>T(e.percent)),r=u(()=>T(e.strokeColor)),[s,f]=se();ve(f);const i=()=>{const{prefixCls:n,strokeWidth:l,strokeLinecap:v,gapDegree:d,gapPosition:C}=e;let m=0;return o.value.map((a,p)=>{const c=r.value[p]||r.value[r.value.length-1],b=Object.prototype.toString.call(c)==="[object Object]"?`url(#${n}-gradient-${t.value})`:"",{pathString:y,pathStyle:S}=M(m,a,c,l,d,C);m+=a;const k={key:p,d:y,stroke:b,"stroke-linecap":v,"stroke-width":l,opacity:a===0?0:1,"fill-opacity":"0",class:`${n}-circle-path`,style:S};return g("path",$({ref:s(p)},k),null)})};return()=>{const{prefixCls:n,strokeWidth:l,trailWidth:v,gapDegree:d,gapPosition:C,trailColor:m,strokeLinecap:a,strokeColor:p}=e,c=ye(e,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","strokeColor"]),{pathString:b,pathStyle:y}=M(0,100,m,l,d,C);delete c.percent;const S=r.value.find(h=>Object.prototype.toString.call(h)==="[object Object]"),k={d:b,stroke:m,"stroke-linecap":a,"stroke-width":v||l,"fill-opacity":"0",class:`${n}-circle-trail`,style:y};return g("svg",$({class:`${n}-circle`,viewBox:"0 0 100 100"},c),[S&&g("defs",null,[g("linearGradient",{id:`${n}-gradient-${t.value}`,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[Object.keys(S).sort((h,O)=>R(h)-R(O)).map((h,O)=>g("stop",{key:O,offset:h,"stop-color":S[h]},null))])]),g("path",k,null),i().reverse()])}}}),be=()=>x(x({},j()),{strokeColor:E()}),$e=3,Se=e=>$e/e*100,ke=I({compatConfig:{MODE:3},name:"ProgressCircle",inheritAttrs:!1,props:_(be(),{trailColor:null}),setup(e,t){let{slots:o,attrs:r}=t;const s=u(()=>{var c;return(c=e.width)!==null&&c!==void 0?c:120}),f=u(()=>{var c;return(c=e.size)!==null&&c!==void 0?c:[s.value,s.value]}),i=u(()=>W(f.value,"circle")),n=u(()=>{if(e.gapDegree||e.gapDegree===0)return e.gapDegree;if(e.type==="dashboard")return 75}),l=u(()=>({width:`${i.value.width}px`,height:`${i.value.height}px`,fontSize:`${i.value.width*.15+6}px`})),v=u(()=>{var c;return(c=e.strokeWidth)!==null&&c!==void 0?c:Math.max(Se(i.value.width),6)}),d=u(()=>e.gapPosition||e.type==="dashboard"&&"bottom"||void 0),C=u(()=>ae(e)),m=u(()=>Object.prototype.toString.call(e.strokeColor)==="[object Object]"),a=u(()=>ce({success:e.success,strokeColor:e.strokeColor})),p=u(()=>({[`${e.prefixCls}-inner`]:!0,[`${e.prefixCls}-circle-gradient`]:m.value}));return()=>{var c;const b=g(Ce,{percent:C.value,strokeWidth:v.value,trailWidth:v.value,strokeColor:a.value,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,prefixCls:e.prefixCls,gapDegree:n.value,gapPosition:d.value},null);return g("div",$($({},r),{},{class:[p.value,r.class],style:[r.style,l.value]}),[i.value.width<=20?g(ne,null,{default:()=>[g("span",null,[b])],title:o.default}):g(F,null,[b,(c=o.default)===null||c===void 0?void 0:c.call(o)])])}}}),xe=()=>x(x({},j()),{steps:Number,strokeColor:X(),trailColor:String}),Pe=I({compatConfig:{MODE:3},name:"Steps",props:xe(),setup(e,t){let{slots:o}=t;const r=u(()=>Math.round(e.steps*((e.percent||0)/100))),s=u(()=>{var n;return(n=e.size)!==null&&n!==void 0?n:[e.size==="small"?2:14,e.strokeWidth||8]}),f=u(()=>W(s.value,"step",{steps:e.steps,strokeWidth:e.strokeWidth||8})),i=u(()=>{const{steps:n,strokeColor:l,trailColor:v,prefixCls:d}=e,C=[];for(let m=0;m<n;m+=1){const a=Array.isArray(l)?l[m]:l,p={[`${d}-steps-item`]:!0,[`${d}-steps-item-active`]:m<=r.value-1};C.push(g("div",{key:m,class:p,style:{backgroundColor:m<=r.value-1?a:v,width:`${f.value.width/n}px`,height:`${f.value.height}px`}},null))}return C});return()=>{var n;return g("div",{class:`${e.prefixCls}-steps-outer`},[i.value,(n=o.default)===null||n===void 0?void 0:n.call(o)])}}}),we=new ie("antProgressActive",{"0%":{transform:"translateX(-100%) scaleX(0)",opacity:.1},"20%":{transform:"translateX(-100%) scaleX(0)",opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}}),Oe=e=>{const{componentCls:t,iconCls:o}=e;return{[t]:x(x({},V(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize,marginInlineEnd:e.marginXS,marginBottom:e.marginXS},[`${t}-outer`]:{display:"inline-block",width:"100%"},[`&${t}-show-info`]:{[`${t}-outer`]:{marginInlineEnd:`calc(-2em - ${e.marginXS}px)`,paddingInlineEnd:`calc(2em + ${e.paddingXS}px)`}},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.progressRemainingColor,borderRadius:e.progressLineRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorInfo}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",backgroundColor:e.colorInfo,borderRadius:e.progressLineRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.progressInfoTextColor,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[o]:{fontSize:e.fontSize}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.progressLineRadius,opacity:0,animationName:we,animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},Ie=e=>{const{componentCls:t,iconCls:o}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.progressRemainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.colorText,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[o]:{fontSize:`${e.fontSize/e.fontSizeSM}em`}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},De=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.progressRemainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.colorInfo}}}}}},je=e=>{const{componentCls:t,iconCls:o}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${o}`]:{fontSize:e.fontSizeSM}}}},We=G("Progress",e=>{const t=e.marginXXS/2,o=K(e,{progressLineRadius:100,progressInfoTextColor:e.colorText,progressDefaultColor:e.colorInfo,progressRemainingColor:e.colorFillSecondary,progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[Oe(o),Ie(o),De(o),je(o)]});var Ae=function(e,t){var o={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(o[r[s]]=e[r[s]]);return o};const _e=I({compatConfig:{MODE:3},name:"AProgress",inheritAttrs:!1,props:_(j(),{type:"line",percent:0,showInfo:!0,trailColor:null,size:"default",strokeLinecap:"round"}),slots:Object,setup(e,t){let{slots:o,attrs:r}=t;const{prefixCls:s,direction:f}=Y("progress",e),[i,n]=We(s),l=u(()=>Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor),v=u(()=>{const{percent:p=0}=e,c=D(e);return parseInt(c!==void 0?c.toString():p.toString(),10)}),d=u(()=>{const{status:p}=e;return!le.includes(p)&&v.value>=100?"success":p||"normal"}),C=u(()=>{const{type:p,showInfo:c,size:b}=e,y=s.value;return{[y]:!0,[`${y}-inline-circle`]:p==="circle"&&W(b,"circle").width<=20,[`${y}-${p==="dashboard"&&"circle"||p}`]:!0,[`${y}-status-${d.value}`]:!0,[`${y}-show-info`]:c,[`${y}-${b}`]:b,[`${y}-rtl`]:f.value==="rtl",[n.value]:!0}}),m=u(()=>typeof e.strokeColor=="string"||Array.isArray(e.strokeColor)?e.strokeColor:void 0),a=()=>{const{showInfo:p,format:c,type:b,percent:y,title:S}=e,k=D(e);if(!p)return null;let h;const O=c||o?.format||(H=>`${H}%`),L=b==="line";return c||o?.format||d.value!=="exception"&&d.value!=="success"?h=O(P(y),P(k)):d.value==="exception"?h=L?g(z,null,null):g(q,null,null):d.value==="success"&&(h=L?g(Q,null,null):g(U,null,null)),g("span",{class:`${s.value}-text`,title:S===void 0&&typeof h=="string"?h:void 0},[h])};return()=>{const{type:p,steps:c,title:b}=e,{class:y}=r,S=Ae(r,["class"]),k=a();let h;return p==="line"?h=c?g(Pe,$($({},e),{},{strokeColor:m.value,prefixCls:s.value,steps:c}),{default:()=>[k]}):g(fe,$($({},e),{},{strokeColor:l.value,prefixCls:s.value,direction:f.value}),{default:()=>[k]}):(p==="circle"||p==="dashboard")&&(h=g(ke,$($({},e),{},{prefixCls:s.value,strokeColor:l.value,progressStatus:d.value}),{default:()=>[k]})),i(g("div",$($({role:"progressbar"},S),{},{class:[C.value,y],title:b}),[h]))}}}),st=te(_e);export{st as default};
@@ -1 +1 @@
1
- import{_ as l}from"./index-4C1c4hkZ.js";import{i as O}from"./ResizeObserver.es-D6qJbdzf.js";import{y as R}from"./useConfigInject-C2E3Qsop.js";import{d as C,l as M,a1 as x,M as H,w as W,g as _,a as y}from"./vendor-aH7YaPZi.js";const F=C({compatConfig:{MODE:3},name:"ResizeObserver",props:{disabled:Boolean,onResize:Function},emits:["resize"],setup(i,v){let{slots:c}=v;const n=y({width:0,height:0,offsetHeight:0,offsetWidth:0});let h=null,s=null;const r=()=>{s&&(s.disconnect(),s=null)},b=e=>{const{onResize:t}=i,o=e[0].target,{width:z,height:w}=o.getBoundingClientRect(),{offsetWidth:d,offsetHeight:f}=o,g=Math.floor(z),m=Math.floor(w);if(n.width!==g||n.height!==m||n.offsetWidth!==d||n.offsetHeight!==f){const u={width:g,height:m,offsetWidth:d,offsetHeight:f};l(n,u),t&&Promise.resolve().then(()=>{t(l(l({},u),{offsetWidth:d,offsetHeight:f}),o)})}},p=_(),a=()=>{const{disabled:e}=i;if(e){r();return}const t=R(p);t!==h&&(r(),h=t),!s&&t&&(s=new O(b),s.observe(t))};return M(()=>{a()}),x(()=>{a()}),H(()=>{r()}),W(()=>i.disabled,()=>{a()},{flush:"post"}),()=>{var e;return(e=c.default)===null||e===void 0?void 0:e.call(c)[0]}}});export{F as R};
1
+ import{_ as l}from"./index-BPzN5a2A.js";import{i as O}from"./ResizeObserver.es-D6qJbdzf.js";import{y as R}from"./useConfigInject-DIr4olCu.js";import{d as C,l as M,a1 as x,M as H,w as W,g as _,a as y}from"./vendor-aH7YaPZi.js";const F=C({compatConfig:{MODE:3},name:"ResizeObserver",props:{disabled:Boolean,onResize:Function},emits:["resize"],setup(i,v){let{slots:c}=v;const n=y({width:0,height:0,offsetHeight:0,offsetWidth:0});let h=null,s=null;const r=()=>{s&&(s.disconnect(),s=null)},b=e=>{const{onResize:t}=i,o=e[0].target,{width:z,height:w}=o.getBoundingClientRect(),{offsetWidth:d,offsetHeight:f}=o,g=Math.floor(z),m=Math.floor(w);if(n.width!==g||n.height!==m||n.offsetWidth!==d||n.offsetHeight!==f){const u={width:g,height:m,offsetWidth:d,offsetHeight:f};l(n,u),t&&Promise.resolve().then(()=>{t(l(l({},u),{offsetWidth:d,offsetHeight:f}),o)})}},p=_(),a=()=>{const{disabled:e}=i;if(e){r();return}const t=R(p);t!==h&&(r(),h=t),!s&&t&&(s=new O(b),s.observe(t))};return M(()=>{a()}),x(()=>{a()}),H(()=>{r()}),W(()=>i.disabled,()=>{a()},{flush:"post"}),()=>{var e;return(e=c.default)===null||e===void 0?void 0:e.call(c)[0]}}});export{F as R};
@@ -1,4 +1,4 @@
1
- import{_ as e}from"./index-4C1c4hkZ.js";import{g as S,m as l,r as u,z as x}from"./useConfigInject-C2E3Qsop.js";import{g as m}from"./compact-item-COAuztwB.js";const H=r=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:r,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),p=r=>({borderColor:r.inputBorderHoverColor,borderInlineEndWidth:r.lineWidth}),c=r=>({borderColor:r.inputBorderHoverColor,boxShadow:`0 0 0 ${r.controlOutlineWidth}px ${r.controlOutline}`,borderInlineEndWidth:r.lineWidth,outline:0}),R=r=>({color:r.colorTextDisabled,backgroundColor:r.colorBgContainerDisabled,borderColor:r.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":e({},p(l(r,{inputBorderHoverColor:r.colorBorder})))}),g=r=>{const{inputPaddingVerticalLG:i,fontSizeLG:o,lineHeightLG:t,borderRadiusLG:d,inputPaddingHorizontalLG:n}=r;return{padding:`${i}px ${n}px`,fontSize:o,lineHeight:t,borderRadius:d}},h=r=>({padding:`${r.inputPaddingVerticalSM}px ${r.controlPaddingHorizontalSM-1}px`,borderRadius:r.borderRadiusSM}),$=(r,i)=>{const{componentCls:o,colorError:t,colorWarning:d,colorErrorOutline:n,colorWarningOutline:a,colorErrorBorderHover:s,colorWarningBorderHover:f}=r;return{[`&-status-error:not(${i}-disabled):not(${i}-borderless)${i}`]:{borderColor:t,"&:hover":{borderColor:s},"&:focus, &-focused":e({},c(l(r,{inputBorderActiveColor:t,inputBorderHoverColor:t,controlOutline:n}))),[`${o}-prefix`]:{color:t}},[`&-status-warning:not(${i}-disabled):not(${i}-borderless)${i}`]:{borderColor:d,"&:hover":{borderColor:f},"&:focus, &-focused":e({},c(l(r,{inputBorderActiveColor:d,inputBorderHoverColor:d,controlOutline:a}))),[`${o}-prefix`]:{color:d}}}},b=r=>e(e({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${r.inputPaddingVertical}px ${r.inputPaddingHorizontal}px`,color:r.colorText,fontSize:r.fontSize,lineHeight:r.lineHeight,backgroundColor:r.colorBgContainer,backgroundImage:"none",borderWidth:r.lineWidth,borderStyle:r.lineType,borderColor:r.colorBorder,borderRadius:r.borderRadius,transition:`all ${r.motionDurationMid}`},H(r.colorTextPlaceholder)),{"&:hover":e({},p(r)),"&:focus, &-focused":e({},c(r)),"&-disabled, &[disabled]":e({},R(r)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:r.controlHeight,lineHeight:r.lineHeight,verticalAlign:"bottom",transition:`all ${r.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":e({},g(r)),"&-sm":e({},h(r)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),I=r=>{const{componentCls:i,antCls:o}=r;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:r.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${i}, &-lg > ${i}-group-addon`]:e({},g(r)),[`&-sm ${i}, &-sm > ${i}-group-addon`]:e({},h(r)),[`> ${i}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${i}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${r.inputPaddingHorizontal}px`,color:r.colorText,fontWeight:"normal",fontSize:r.fontSize,textAlign:"center",backgroundColor:r.colorFillAlter,border:`${r.lineWidth}px ${r.lineType} ${r.colorBorder}`,borderRadius:r.borderRadius,transition:`all ${r.motionDurationSlow}`,lineHeight:1,[`${o}-select`]:{margin:`-${r.inputPaddingVertical+1}px -${r.inputPaddingHorizontal}px`,[`&${o}-select-single:not(${o}-select-customize-input)`]:{[`${o}-select-selector`]:{backgroundColor:"inherit",border:`${r.lineWidth}px ${r.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${o}-select-selector`]:{color:r.colorPrimary}}},[`${o}-cascader-picker`]:{margin:`-9px -${r.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${o}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${i}`]:{float:"inline-start",width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${i}-search-with-button &`]:{zIndex:0}}},[`> ${i}:first-child, ${i}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${o}-select ${o}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${i}-affix-wrapper`]:{[`&:not(:first-child) ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${i}:last-child, ${i}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${o}-select ${o}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${i}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${i}-search &`]:{borderStartStartRadius:r.borderRadius,borderEndStartRadius:r.borderRadius}},[`&:not(:first-child), ${i}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${i}-group-compact`]:e(e({display:"block"},x()),{[`${i}-group-addon, ${i}-group-wrap, > ${i}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:r.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`& > ${i}-affix-wrapper`]:{display:"inline-flex"},[`& > ${o}-picker-range`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-r.lineWidth,borderInlineEndWidth:r.lineWidth},[`${i}`]:{float:"none"},[`& > ${o}-select > ${o}-select-selector,
1
+ import{_ as e}from"./index-BPzN5a2A.js";import{g as S,m as l,r as u,z as x}from"./useConfigInject-DIr4olCu.js";import{g as m}from"./compact-item-BIM24cFh.js";const H=r=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:r,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),p=r=>({borderColor:r.inputBorderHoverColor,borderInlineEndWidth:r.lineWidth}),c=r=>({borderColor:r.inputBorderHoverColor,boxShadow:`0 0 0 ${r.controlOutlineWidth}px ${r.controlOutline}`,borderInlineEndWidth:r.lineWidth,outline:0}),R=r=>({color:r.colorTextDisabled,backgroundColor:r.colorBgContainerDisabled,borderColor:r.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":e({},p(l(r,{inputBorderHoverColor:r.colorBorder})))}),g=r=>{const{inputPaddingVerticalLG:i,fontSizeLG:o,lineHeightLG:t,borderRadiusLG:d,inputPaddingHorizontalLG:n}=r;return{padding:`${i}px ${n}px`,fontSize:o,lineHeight:t,borderRadius:d}},h=r=>({padding:`${r.inputPaddingVerticalSM}px ${r.controlPaddingHorizontalSM-1}px`,borderRadius:r.borderRadiusSM}),$=(r,i)=>{const{componentCls:o,colorError:t,colorWarning:d,colorErrorOutline:n,colorWarningOutline:a,colorErrorBorderHover:s,colorWarningBorderHover:f}=r;return{[`&-status-error:not(${i}-disabled):not(${i}-borderless)${i}`]:{borderColor:t,"&:hover":{borderColor:s},"&:focus, &-focused":e({},c(l(r,{inputBorderActiveColor:t,inputBorderHoverColor:t,controlOutline:n}))),[`${o}-prefix`]:{color:t}},[`&-status-warning:not(${i}-disabled):not(${i}-borderless)${i}`]:{borderColor:d,"&:hover":{borderColor:f},"&:focus, &-focused":e({},c(l(r,{inputBorderActiveColor:d,inputBorderHoverColor:d,controlOutline:a}))),[`${o}-prefix`]:{color:d}}}},b=r=>e(e({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${r.inputPaddingVertical}px ${r.inputPaddingHorizontal}px`,color:r.colorText,fontSize:r.fontSize,lineHeight:r.lineHeight,backgroundColor:r.colorBgContainer,backgroundImage:"none",borderWidth:r.lineWidth,borderStyle:r.lineType,borderColor:r.colorBorder,borderRadius:r.borderRadius,transition:`all ${r.motionDurationMid}`},H(r.colorTextPlaceholder)),{"&:hover":e({},p(r)),"&:focus, &-focused":e({},c(r)),"&-disabled, &[disabled]":e({},R(r)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:r.controlHeight,lineHeight:r.lineHeight,verticalAlign:"bottom",transition:`all ${r.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":e({},g(r)),"&-sm":e({},h(r)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),I=r=>{const{componentCls:i,antCls:o}=r;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:r.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${i}, &-lg > ${i}-group-addon`]:e({},g(r)),[`&-sm ${i}, &-sm > ${i}-group-addon`]:e({},h(r)),[`> ${i}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${i}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${r.inputPaddingHorizontal}px`,color:r.colorText,fontWeight:"normal",fontSize:r.fontSize,textAlign:"center",backgroundColor:r.colorFillAlter,border:`${r.lineWidth}px ${r.lineType} ${r.colorBorder}`,borderRadius:r.borderRadius,transition:`all ${r.motionDurationSlow}`,lineHeight:1,[`${o}-select`]:{margin:`-${r.inputPaddingVertical+1}px -${r.inputPaddingHorizontal}px`,[`&${o}-select-single:not(${o}-select-customize-input)`]:{[`${o}-select-selector`]:{backgroundColor:"inherit",border:`${r.lineWidth}px ${r.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${o}-select-selector`]:{color:r.colorPrimary}}},[`${o}-cascader-picker`]:{margin:`-9px -${r.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${o}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${i}`]:{float:"inline-start",width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${i}-search-with-button &`]:{zIndex:0}}},[`> ${i}:first-child, ${i}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${o}-select ${o}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${i}-affix-wrapper`]:{[`&:not(:first-child) ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${i}:last-child, ${i}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${o}-select ${o}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${i}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${i}-search &`]:{borderStartStartRadius:r.borderRadius,borderEndStartRadius:r.borderRadius}},[`&:not(:first-child), ${i}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${i}-group-compact`]:e(e({display:"block"},x()),{[`${i}-group-addon, ${i}-group-wrap, > ${i}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:r.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`& > ${i}-affix-wrapper`]:{display:"inline-flex"},[`& > ${o}-picker-range`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-r.lineWidth,borderInlineEndWidth:r.lineWidth},[`${i}`]:{float:"none"},[`& > ${o}-select > ${o}-select-selector,
2
2
  & > ${o}-select-auto-complete ${i},
3
3
  & > ${o}-cascader-picker ${i},
4
4
  & > ${i}-group-wrapper ${i}`]:{borderInlineEndWidth:r.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${o}-select-focused`]:{zIndex:1},[`& > ${o}-select > ${o}-select-arrow`]:{zIndex:1},[`& > *:first-child,
@@ -1,3 +1,3 @@
1
- import{g as q,m as J,r as K,u as Y,c as Z,i as oo,_ as j}from"./useConfigInject-C2E3Qsop.js";import{d as eo,c as r,S as no,T as to,U as lo,s as w,j as io}from"./vendor-aH7YaPZi.js";import{ae as ao,af as ro,I as so,Q as co,ag as uo,ah as go,ai as mo,v as po,a7 as fo}from"./icons-DzieZiVh.js";import{P as v}from"./index-U4Zd5IK6.js";import{g as vo}from"./transition-exl3w1iN.js";import{_ as T,w as $o,t as ho}from"./index-4C1c4hkZ.js";import{c as yo}from"./vnode-CIbqhcnZ.js";const B=(o,e,n,i,a)=>({backgroundColor:o,border:`${i.lineWidth}px ${i.lineType} ${e}`,[`${a}-icon`]:{color:n}}),Co=o=>{const{componentCls:e,motionDurationSlow:n,marginXS:i,marginSM:a,fontSize:u,fontSizeLG:s,lineHeight:g,borderRadiusLG:$,motionEaseInOutCirc:c,alertIconSizeLG:d,colorText:p,paddingContentVerticalSM:f,alertPaddingHorizontal:h,paddingMD:C,paddingContentHorizontalLG:S}=o;return{[e]:T(T({},K(o)),{position:"relative",display:"flex",alignItems:"center",padding:`${f}px ${h}px`,wordWrap:"break-word",borderRadius:$,[`&${e}-rtl`]:{direction:"rtl"},[`${e}-content`]:{flex:1,minWidth:0},[`${e}-icon`]:{marginInlineEnd:i,lineHeight:0},"&-description":{display:"none",fontSize:u,lineHeight:g},"&-message":{color:p},[`&${e}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${c}, opacity ${n} ${c},
1
+ import{g as J,m as K,r as Q,u as Y,c as Z,i as oo,_ as R}from"./useConfigInject-DIr4olCu.js";import{d as eo,c as r,S as no,T as to,U as lo,s as w,j as io}from"./vendor-aH7YaPZi.js";import{ag as ao,ah as ro,q as so,U as co,ai as uo,aj as go,ak as mo,w as po,a9 as fo}from"./icons-DEoqYzGZ.js";import{P as v}from"./index-U4Zd5IK6.js";import{g as vo}from"./transition-B3-w1SVL.js";import{_ as T,w as $o,t as ho}from"./index-BPzN5a2A.js";import{c as yo}from"./vnode-Df_mZ5AJ.js";const B=(o,e,n,i,a)=>({backgroundColor:o,border:`${i.lineWidth}px ${i.lineType} ${e}`,[`${a}-icon`]:{color:n}}),Co=o=>{const{componentCls:e,motionDurationSlow:n,marginXS:i,marginSM:a,fontSize:u,fontSizeLG:s,lineHeight:g,borderRadiusLG:$,motionEaseInOutCirc:c,alertIconSizeLG:d,colorText:p,paddingContentVerticalSM:f,alertPaddingHorizontal:h,paddingMD:C,paddingContentHorizontalLG:S}=o;return{[e]:T(T({},Q(o)),{position:"relative",display:"flex",alignItems:"center",padding:`${f}px ${h}px`,wordWrap:"break-word",borderRadius:$,[`&${e}-rtl`]:{direction:"rtl"},[`${e}-content`]:{flex:1,minWidth:0},[`${e}-icon`]:{marginInlineEnd:i,lineHeight:0},"&-description":{display:"none",fontSize:u,lineHeight:g},"&-message":{color:p},[`&${e}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${c}, opacity ${n} ${c},
2
2
  padding-top ${n} ${c}, padding-bottom ${n} ${c},
3
- margin-bottom ${n} ${c}`},[`&${e}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${e}-with-description`]:{alignItems:"flex-start",paddingInline:S,paddingBlock:C,[`${e}-icon`]:{marginInlineEnd:a,fontSize:d,lineHeight:0},[`${e}-message`]:{display:"block",marginBottom:i,color:p,fontSize:s},[`${e}-description`]:{display:"block"}},[`${e}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},So=o=>{const{componentCls:e,colorSuccess:n,colorSuccessBorder:i,colorSuccessBg:a,colorWarning:u,colorWarningBorder:s,colorWarningBg:g,colorError:$,colorErrorBorder:c,colorErrorBg:d,colorInfo:p,colorInfoBorder:f,colorInfoBg:h}=o;return{[e]:{"&-success":B(a,i,n,o,e),"&-info":B(h,f,p,o,e),"&-warning":B(g,s,u,o,e),"&-error":T(T({},B(d,c,$,o,e)),{[`${e}-description > pre`]:{margin:0,padding:0}})}}},xo=o=>{const{componentCls:e,iconCls:n,motionDurationMid:i,marginXS:a,fontSizeIcon:u,colorIcon:s,colorIconHover:g}=o;return{[e]:{"&-action":{marginInlineStart:a},[`${e}-close-icon`]:{marginInlineStart:a,padding:0,overflow:"hidden",fontSize:u,lineHeight:`${u}px`,backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:s,transition:`color ${i}`,"&:hover":{color:g}}},"&-close-text":{color:s,transition:`color ${i}`,"&:hover":{color:g}}}}},Io=o=>[Co(o),So(o),xo(o)],bo=q("Alert",o=>{const{fontSizeHeading3:e}=o,n=J(o,{alertIconSizeLG:e,alertPaddingHorizontal:12});return[Io(n)]}),wo={success:po,info:mo,error:go,warning:uo},Bo={success:co,info:so,error:ro,warning:ao},To=ho("success","info","warning","error"),Ho=()=>({type:v.oneOf(To),closable:{type:Boolean,default:void 0},closeText:v.any,message:v.any,description:v.any,afterClose:Function,showIcon:{type:Boolean,default:void 0},prefixCls:String,banner:{type:Boolean,default:void 0},icon:v.any,closeIcon:v.any,onClose:Function}),_o=eo({compatConfig:{MODE:3},name:"AAlert",inheritAttrs:!1,props:Ho(),setup(o,e){let{slots:n,emit:i,attrs:a,expose:u}=e;const{prefixCls:s,direction:g}=Y("alert",o),[$,c]=bo(s),d=w(!1),p=w(!1),f=w(),h=l=>{l.preventDefault();const m=f.value;m.style.height=`${m.offsetHeight}px`,m.style.height=`${m.offsetHeight}px`,d.value=!0,i("close",l)},C=()=>{var l;d.value=!1,p.value=!0,(l=o.afterClose)===null||l===void 0||l.call(o)},S=io(()=>{const{type:l}=o;return l!==void 0?l:o.banner?"warning":"info"});u({animationEnd:C});const N=w({});return()=>{var l,m,H,_,z,E,A,O,L,F;const{banner:D,closeIcon:W=(l=n.closeIcon)===null||l===void 0?void 0:l.call(n)}=o;let{closable:M,showIcon:y}=o;const P=(m=o.closeText)!==null&&m!==void 0?m:(H=n.closeText)===null||H===void 0?void 0:H.call(n),x=(_=o.description)!==null&&_!==void 0?_:(z=n.description)===null||z===void 0?void 0:z.call(n),G=(E=o.message)!==null&&E!==void 0?E:(A=n.message)===null||A===void 0?void 0:A.call(n),I=(O=o.icon)!==null&&O!==void 0?O:(L=n.icon)===null||L===void 0?void 0:L.call(n),R=(F=n.action)===null||F===void 0?void 0:F.call(n);y=D&&y===void 0?!0:y;const V=(x?Bo:wo)[S.value]||null;P&&(M=!0);const t=s.value,k=Z(t,{[`${t}-${S.value}`]:!0,[`${t}-closing`]:d.value,[`${t}-with-description`]:!!x,[`${t}-no-icon`]:!y,[`${t}-banner`]:!!D,[`${t}-closable`]:M,[`${t}-rtl`]:g.value==="rtl",[c.value]:!0}),X=M?r("button",{type:"button",onClick:h,class:`${t}-close-icon`,tabindex:0},[P?r("span",{class:`${t}-close-text`},[P]):W===void 0?r(fo,null,null):W]):null,Q=I&&(oo(I)?yo(I,{class:`${t}-icon`}):r("span",{class:`${t}-icon`},[I]))||r(V,{class:`${t}-icon`},null),U=vo(`${t}-motion`,{appear:!1,css:!0,onAfterLeave:C,onBeforeLeave:b=>{b.style.maxHeight=`${b.offsetHeight}px`},onLeave:b=>{b.style.maxHeight="0px"}});return $(p.value?null:r(lo,U,{default:()=>[no(r("div",j(j({role:"alert"},a),{},{style:[a.style,N.value],class:[a.class,k],"data-show":!d.value,ref:f}),[y?Q:null,r("div",{class:`${t}-content`},[G?r("div",{class:`${t}-message`},[G]):null,x?r("div",{class:`${t}-description`},[x]):null]),R?r("div",{class:`${t}-action`},[R]):null,X]),[[to,!d.value]])]}))}}}),Po=$o(_o);export{Ho as alertProps,Po as default};
3
+ margin-bottom ${n} ${c}`},[`&${e}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${e}-with-description`]:{alignItems:"flex-start",paddingInline:S,paddingBlock:C,[`${e}-icon`]:{marginInlineEnd:a,fontSize:d,lineHeight:0},[`${e}-message`]:{display:"block",marginBottom:i,color:p,fontSize:s},[`${e}-description`]:{display:"block"}},[`${e}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},So=o=>{const{componentCls:e,colorSuccess:n,colorSuccessBorder:i,colorSuccessBg:a,colorWarning:u,colorWarningBorder:s,colorWarningBg:g,colorError:$,colorErrorBorder:c,colorErrorBg:d,colorInfo:p,colorInfoBorder:f,colorInfoBg:h}=o;return{[e]:{"&-success":B(a,i,n,o,e),"&-info":B(h,f,p,o,e),"&-warning":B(g,s,u,o,e),"&-error":T(T({},B(d,c,$,o,e)),{[`${e}-description > pre`]:{margin:0,padding:0}})}}},xo=o=>{const{componentCls:e,iconCls:n,motionDurationMid:i,marginXS:a,fontSizeIcon:u,colorIcon:s,colorIconHover:g}=o;return{[e]:{"&-action":{marginInlineStart:a},[`${e}-close-icon`]:{marginInlineStart:a,padding:0,overflow:"hidden",fontSize:u,lineHeight:`${u}px`,backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:s,transition:`color ${i}`,"&:hover":{color:g}}},"&-close-text":{color:s,transition:`color ${i}`,"&:hover":{color:g}}}}},Io=o=>[Co(o),So(o),xo(o)],bo=J("Alert",o=>{const{fontSizeHeading3:e}=o,n=K(o,{alertIconSizeLG:e,alertPaddingHorizontal:12});return[Io(n)]}),wo={success:po,info:mo,error:go,warning:uo},Bo={success:co,info:so,error:ro,warning:ao},To=ho("success","info","warning","error"),Ho=()=>({type:v.oneOf(To),closable:{type:Boolean,default:void 0},closeText:v.any,message:v.any,description:v.any,afterClose:Function,showIcon:{type:Boolean,default:void 0},prefixCls:String,banner:{type:Boolean,default:void 0},icon:v.any,closeIcon:v.any,onClose:Function}),_o=eo({compatConfig:{MODE:3},name:"AAlert",inheritAttrs:!1,props:Ho(),setup(o,e){let{slots:n,emit:i,attrs:a,expose:u}=e;const{prefixCls:s,direction:g}=Y("alert",o),[$,c]=bo(s),d=w(!1),p=w(!1),f=w(),h=l=>{l.preventDefault();const m=f.value;m.style.height=`${m.offsetHeight}px`,m.style.height=`${m.offsetHeight}px`,d.value=!0,i("close",l)},C=()=>{var l;d.value=!1,p.value=!0,(l=o.afterClose)===null||l===void 0||l.call(o)},S=io(()=>{const{type:l}=o;return l!==void 0?l:o.banner?"warning":"info"});u({animationEnd:C});const k=w({});return()=>{var l,m,H,_,z,E,A,O,L,F;const{banner:D,closeIcon:W=(l=n.closeIcon)===null||l===void 0?void 0:l.call(n)}=o;let{closable:M,showIcon:y}=o;const P=(m=o.closeText)!==null&&m!==void 0?m:(H=n.closeText)===null||H===void 0?void 0:H.call(n),x=(_=o.description)!==null&&_!==void 0?_:(z=n.description)===null||z===void 0?void 0:z.call(n),j=(E=o.message)!==null&&E!==void 0?E:(A=n.message)===null||A===void 0?void 0:A.call(n),I=(O=o.icon)!==null&&O!==void 0?O:(L=n.icon)===null||L===void 0?void 0:L.call(n),G=(F=n.action)===null||F===void 0?void 0:F.call(n);y=D&&y===void 0?!0:y;const N=(x?Bo:wo)[S.value]||null;P&&(M=!0);const t=s.value,V=Z(t,{[`${t}-${S.value}`]:!0,[`${t}-closing`]:d.value,[`${t}-with-description`]:!!x,[`${t}-no-icon`]:!y,[`${t}-banner`]:!!D,[`${t}-closable`]:M,[`${t}-rtl`]:g.value==="rtl",[c.value]:!0}),U=M?r("button",{type:"button",onClick:h,class:`${t}-close-icon`,tabindex:0},[P?r("span",{class:`${t}-close-text`},[P]):W===void 0?r(fo,null,null):W]):null,X=I&&(oo(I)?yo(I,{class:`${t}-icon`}):r("span",{class:`${t}-icon`},[I]))||r(N,{class:`${t}-icon`},null),q=vo(`${t}-motion`,{appear:!1,css:!0,onAfterLeave:C,onBeforeLeave:b=>{b.style.maxHeight=`${b.offsetHeight}px`},onLeave:b=>{b.style.maxHeight="0px"}});return $(p.value?null:r(lo,q,{default:()=>[no(r("div",R(R({role:"alert"},a),{},{style:[a.style,k.value],class:[a.class,V],"data-show":!d.value,ref:f}),[y?X:null,r("div",{class:`${t}-content`},[j?r("div",{class:`${t}-message`},[j]):null,x?r("div",{class:`${t}-description`},[x]):null]),G?r("div",{class:`${t}-action`},[G]):null,U]),[[to,!d.value]])]}))}}}),Po=$o(_o);export{Ho as alertProps,Po as default};
@@ -1,3 +1,3 @@
1
- import{c as ie,D as me,_ as te,g as bt,m as ft,r as tt,A as mt,v as at,b as ht,i as gt,E as $t,u as yt}from"./useConfigInject-C2E3Qsop.js";import{_ as T,p as j,o as he,q as xt,x as xe,n as St,y as _t}from"./index-4C1c4hkZ.js";import{w as ge}from"./raf-Deuc0E8-.js";import{s as W,o as Me,d as re,c as h,r as J,j as H,f as Ce,l as Te,w as oe,i as Ct,p as Tt}from"./vendor-aH7YaPZi.js";import{K as q}from"./KeyCode-D63Tfrq7.js";import wt,{Item as Pt}from"./index-BLzkplpf.js";import{D as Rt}from"./Dropdown-B3vdFzOi.js";import{P as we}from"./index-U4Zd5IK6.js";import{u as D}from"./useState-CSbzOa8O.js";import{aj as It,X as Et,a7 as Bt}from"./icons-DzieZiVh.js";import{u as Lt}from"./OverrideContext-9ePmgwvW.js";import{R as Xe}from"./index-BbBjevdP.js";import{u as At}from"./useRefs-C8A7zAB_.js";import{c as nt,t as Dt,a as kt,b as Mt,h as Nt,f as Ot}from"./hasIn-BNooGgXx.js";import{i as Wt}from"./Trigger-CIW_GVYA.js";import{h as Fe}from"./_getTag-CWA3v-Ds.js";import{c as Ht}from"./vnode-CIbqhcnZ.js";import{i as zt}from"./isMobile--2fOlCHx.js";import{u as je}from"./useMergedState-DUMpRiCy.js";import{d as De}from"./devWarning-CNIS3FrJ.js";import{o as Kt}from"./omit-DD9MqVt0.js";import{i as Ve}from"./slide-DSmAtCrK.js";import{i as ot}from"./initDefaultProps-_t-PG0bz.js";import"./_arrayIncludes-B8uzE354.js";import"./injectionKey-BXVc-oGP.js";import"./Overflow-tpvXbZkh.js";import"./index-lrfnKtkl.js";import"./placementArrow-BUkUxlJc.js";import"./firstNotUndefined-CLFzEa0p.js";import"./colors-BgoKrIXh.js";import"./zoom-Ck9WbYsZ.js";import"./Keyframes-C7fCrnlS.js";import"./motion-DPnqtODq.js";import"./Portal-DXIqogG2.js";import"./transition-exl3w1iN.js";import"./collapseMotion-CSS8MlIE.js";import"./ResizeObserver.es-D6qJbdzf.js";import"./isSymbol-CsP9Ob42.js";import"./isVisible-C7tPsqfj.js";import"./warning-Pq00owYb.js";function Gt(e,t,a,i){if(!Fe(e))return e;t=nt(t,e);for(var o=-1,r=t.length,n=r-1,s=e;s!=null&&++o<r;){var v=Dt(t[o]),d=a;if(v==="__proto__"||v==="constructor"||v==="prototype")return e;if(o!=n){var b=s[v];d=void 0,d===void 0&&(d=Fe(b)?b:Wt(t[o+1])?[]:{})}kt(s,v,d),s=s[v]}return e}function Xt(e,t,a){for(var i=-1,o=t.length,r={};++i<o;){var n=t[i],s=Mt(e,n);a(s,n)&&Gt(r,nt(n,e),s)}return r}function Ft(e,t){return Xt(e,t,function(a,i){return Nt(e,i)})}var it=Ot(function(e,t){return e==null?{}:Ft(e,t)});function jt(e){const t=W(),a=W(!1);function i(){for(var o=arguments.length,r=new Array(o),n=0;n<o;n++)r[n]=arguments[n];a.value||(ge.cancel(t.value),t.value=ge(()=>{e(...r)}))}return Me(()=>{a.value=!0,ge.cancel(t.value)}),i}function Vt(e){const t=W([]),a=W(typeof e=="function"?e():e),i=jt(()=>{let r=a.value;t.value.forEach(n=>{r=n(r)}),t.value=[],a.value=r});function o(r){t.value.push(r),i()}return[a,o]}const Yt=re({compatConfig:{MODE:3},name:"TabNode",props:{id:{type:String},prefixCls:{type:String},tab:{type:Object},active:{type:Boolean},closable:{type:Boolean},editable:{type:Object},onClick:{type:Function},onResize:{type:Function},renderWrapper:{type:Function},removeAriaLabel:{type:String},onFocus:{type:Function}},emits:["click","resize","remove","focus"],setup(e,t){let{expose:a,attrs:i}=t;const o=J();function r(v){var d;!((d=e.tab)===null||d===void 0)&&d.disabled||e.onClick(v)}a({domRef:o});function n(v){var d;v.preventDefault(),v.stopPropagation(),e.editable.onEdit("remove",{key:(d=e.tab)===null||d===void 0?void 0:d.key,event:v})}const s=H(()=>{var v;return e.editable&&e.closable!==!1&&!(!((v=e.tab)===null||v===void 0)&&v.disabled)});return()=>{var v;const{prefixCls:d,id:b,active:_,tab:{key:m,tab:c,disabled:y,closeIcon:x},renderWrapper:w,removeAriaLabel:C,editable:k,onFocus:K}=e,M=`${d}-tab`,l=h("div",{key:m,ref:o,class:ie(M,{[`${M}-with-remove`]:s.value,[`${M}-active`]:_,[`${M}-disabled`]:y}),style:i.style,onClick:r},[h("div",{role:"tab","aria-selected":_,id:b&&`${b}-tab-${m}`,class:`${M}-btn`,"aria-controls":b&&`${b}-panel-${m}`,"aria-disabled":y,tabindex:y?null:0,onClick:g=>{g.stopPropagation(),r(g)},onKeydown:g=>{[q.SPACE,q.ENTER].includes(g.which)&&(g.preventDefault(),r(g))},onFocus:K},[typeof c=="function"?c():c]),s.value&&h("button",{type:"button","aria-label":C||"remove",tabindex:0,class:`${M}-remove`,onClick:g=>{g.stopPropagation(),n(g)}},[x?.()||((v=k.removeIcon)===null||v===void 0?void 0:v.call(k))||"×"])]);return w?w(l):l}}}),Ye={width:0,height:0,left:0,top:0};function Ut(e,t){const a=J(new Map);return Ce(()=>{var i,o;const r=new Map,n=e.value,s=t.value.get((i=n[0])===null||i===void 0?void 0:i.key)||Ye,v=s.left+s.width;for(let d=0;d<n.length;d+=1){const{key:b}=n[d];let _=t.value.get(b);_||(_=t.value.get((o=n[d-1])===null||o===void 0?void 0:o.key)||Ye);const m=r.get(b)||T({},_);m.right=v-m.left-m.width,r.set(b,m)}a.value=new Map(r)}),a}const rt=re({compatConfig:{MODE:3},name:"AddButton",inheritAttrs:!1,props:{prefixCls:String,editable:{type:Object},locale:{type:Object,default:void 0}},setup(e,t){let{expose:a,attrs:i}=t;const o=J();return a({domRef:o}),()=>{const{prefixCls:r,editable:n,locale:s}=e;return!n||n.showAdd===!1?null:h("button",{ref:o,type:"button",class:`${r}-nav-add`,style:i.style,"aria-label":s?.addAriaLabel||"Add tab",onClick:v=>{n.onEdit("add",{event:v})}},[n.addIcon?n.addIcon():"+"])}}}),Zt={prefixCls:{type:String},id:{type:String},tabs:{type:Object},rtl:{type:Boolean},tabBarGutter:{type:Number},activeKey:{type:[String,Number]},mobile:{type:Boolean},moreIcon:we.any,moreTransitionName:{type:String},editable:{type:Object},locale:{type:Object,default:void 0},removeAriaLabel:String,onTabClick:{type:Function},popupClassName:String,getPopupContainer:j()},qt=re({compatConfig:{MODE:3},name:"OperationNode",inheritAttrs:!1,props:Zt,emits:["tabClick"],slots:Object,setup(e,t){let{attrs:a,slots:i}=t;const[o,r]=D(!1),[n,s]=D(null),v=c=>{const y=e.tabs.filter(C=>!C.disabled);let x=y.findIndex(C=>C.key===n.value)||0;const w=y.length;for(let C=0;C<w;C+=1){x=(x+c+w)%w;const k=y[x];if(!k.disabled){s(k.key);return}}},d=c=>{const{which:y}=c;if(!o.value){[q.DOWN,q.SPACE,q.ENTER].includes(y)&&(r(!0),c.preventDefault());return}switch(y){case q.UP:v(-1),c.preventDefault();break;case q.DOWN:v(1),c.preventDefault();break;case q.ESC:r(!1);break;case q.SPACE:case q.ENTER:n.value!==null&&e.onTabClick(n.value,c);break}},b=H(()=>`${e.id}-more-popup`),_=H(()=>n.value!==null?`${b.value}-${n.value}`:null),m=(c,y)=>{c.preventDefault(),c.stopPropagation(),e.editable.onEdit("remove",{key:y,event:c})};return Te(()=>{oe(n,()=>{const c=document.getElementById(_.value);c&&c.scrollIntoView&&c.scrollIntoView(!1)},{flush:"post",immediate:!0})}),oe(o,()=>{o.value||s(null)}),Lt({}),()=>{var c;const{prefixCls:y,id:x,tabs:w,locale:C,mobile:k,moreIcon:K=((c=i.moreIcon)===null||c===void 0?void 0:c.call(i))||h(It,null,null),moreTransitionName:M,editable:l,tabBarGutter:g,rtl:u,onTabClick:$,popupClassName:E}=e;if(!w.length)return null;const R=`${y}-dropdown`,G=C?.dropdownAriaLabel,le={[u?"marginRight":"marginLeft"]:g};w.length||(le.visibility="hidden",le.order=1);const se=ie({[`${R}-rtl`]:u,[`${E}`]:!0}),ce=k?null:h(Rt,{prefixCls:R,trigger:["hover"],visible:o.value,transitionName:M,onVisibleChange:r,overlayClassName:se,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:e.getPopupContainer},{overlay:()=>h(wt,{onClick:I=>{let{key:Q,domEvent:N}=I;$(Q,N),r(!1)},id:b.value,tabindex:-1,role:"listbox","aria-activedescendant":_.value,selectedKeys:[n.value],"aria-label":G!==void 0?G:"expanded dropdown"},{default:()=>[w.map(I=>{var Q,N;const V=l&&I.closable!==!1&&!I.disabled;return h(Pt,{key:I.key,id:`${b.value}-${I.key}`,role:"option","aria-controls":x&&`${x}-panel-${I.key}`,disabled:I.disabled},{default:()=>[h("span",null,[typeof I.tab=="function"?I.tab():I.tab]),V&&h("button",{type:"button","aria-label":e.removeAriaLabel||"remove",tabindex:0,class:`${R}-menu-item-remove`,onClick:Y=>{Y.stopPropagation(),m(Y,I.key)}},[((Q=I.closeIcon)===null||Q===void 0?void 0:Q.call(I))||((N=l.removeIcon)===null||N===void 0?void 0:N.call(l))||"×"])]})})]}),default:()=>h("button",{type:"button",class:`${y}-nav-more`,style:le,tabindex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":b.value,id:`${x}-more`,"aria-expanded":o.value,onKeydown:d},[K])});return h("div",{class:ie(`${y}-nav-operations`,a.class),style:a.style},[ce,h(rt,{prefixCls:y,locale:C,editable:l},null)])}}}),lt=Symbol("tabsContextKey"),Jt=e=>{Tt(lt,e)},st=()=>Ct(lt,{tabs:J([]),prefixCls:J()}),Qt=.1,Ue=.01,Se=20,Ze=Math.pow(.995,Se);function ea(e,t){const[a,i]=D(),[o,r]=D(0),[n,s]=D(0),[v,d]=D(),b=J();function _(l){const{screenX:g,screenY:u}=l.touches[0];i({x:g,y:u}),clearInterval(b.value)}function m(l){if(!a.value)return;l.preventDefault();const{screenX:g,screenY:u}=l.touches[0],$=g-a.value.x,E=u-a.value.y;t($,E),i({x:g,y:u});const R=Date.now();s(R-o.value),r(R),d({x:$,y:E})}function c(){if(!a.value)return;const l=v.value;if(i(null),d(null),l){const g=l.x/n.value,u=l.y/n.value,$=Math.abs(g),E=Math.abs(u);if(Math.max($,E)<Qt)return;let R=g,G=u;b.value=setInterval(()=>{if(Math.abs(R)<Ue&&Math.abs(G)<Ue){clearInterval(b.value);return}R*=Ze,G*=Ze,t(R*Se,G*Se)},Se)}}const y=J();function x(l){const{deltaX:g,deltaY:u}=l;let $=0;const E=Math.abs(g),R=Math.abs(u);E===R?$=y.value==="x"?g:u:E>R?($=g,y.value="x"):($=u,y.value="y"),t(-$,-$)&&l.preventDefault()}const w=J({onTouchStart:_,onTouchMove:m,onTouchEnd:c,onWheel:x});function C(l){w.value.onTouchStart(l)}function k(l){w.value.onTouchMove(l)}function K(l){w.value.onTouchEnd(l)}function M(l){w.value.onWheel(l)}Te(()=>{var l,g;document.addEventListener("touchmove",k,{passive:!1}),document.addEventListener("touchend",K,{passive:!1}),(l=e.value)===null||l===void 0||l.addEventListener("touchstart",C,{passive:!1}),(g=e.value)===null||g===void 0||g.addEventListener("wheel",M,{passive:!1})}),Me(()=>{document.removeEventListener("touchmove",k),document.removeEventListener("touchend",K)})}function qe(e,t){const a=J(e);function i(o){const r=typeof o=="function"?o(a.value):o;r!==a.value&&t(r,a.value),a.value=r}return[a,i]}const Je={width:0,height:0,left:0,top:0,right:0},ta=()=>({id:{type:String},tabPosition:{type:String},activeKey:{type:[String,Number]},rtl:{type:Boolean},animated:he(),editable:he(),moreIcon:we.any,moreTransitionName:{type:String},mobile:{type:Boolean},tabBarGutter:{type:Number},renderTabBar:{type:Function},locale:he(),popupClassName:String,getPopupContainer:j(),onTabClick:{type:Function},onTabScroll:{type:Function}}),aa=(e,t)=>{const{offsetWidth:a,offsetHeight:i,offsetTop:o,offsetLeft:r}=e,{width:n,height:s,x:v,y:d}=e.getBoundingClientRect();return Math.abs(n-a)<1?[n,s,v-t.x,d-t.y]:[a,i,r,o]},Qe=re({compatConfig:{MODE:3},name:"TabNavList",inheritAttrs:!1,props:ta(),slots:Object,emits:["tabClick","tabScroll"],setup(e,t){let{attrs:a,slots:i}=t;const{tabs:o,prefixCls:r}=st(),n=W(),s=W(),v=W(),d=W(),[b,_]=At(),m=H(()=>e.tabPosition==="top"||e.tabPosition==="bottom"),[c,y]=qe(0,(f,p)=>{m.value&&e.onTabScroll&&e.onTabScroll({direction:f>p?"left":"right"})}),[x,w]=qe(0,(f,p)=>{!m.value&&e.onTabScroll&&e.onTabScroll({direction:f>p?"top":"bottom"})}),[C,k]=D(0),[K,M]=D(0),[l,g]=D(null),[u,$]=D(null),[E,R]=D(0),[G,le]=D(0),[se,ce]=Vt(new Map),I=Ut(o,se),Q=H(()=>`${r.value}-nav-operations-hidden`),N=W(0),V=W(0);Ce(()=>{m.value?e.rtl?(N.value=0,V.value=Math.max(0,C.value-l.value)):(N.value=Math.min(0,l.value-C.value),V.value=0):(N.value=Math.min(0,u.value-K.value),V.value=0)});const Y=f=>f<N.value?N.value:f>V.value?V.value:f,ue=W(),[z,ve]=D(),pe=()=>{ve(Date.now())},be=()=>{clearTimeout(ue.value)},$e=(f,p)=>{f(S=>Y(S+p))};ea(n,(f,p)=>{if(m.value){if(l.value>=C.value)return!1;$e(y,f)}else{if(u.value>=K.value)return!1;$e(w,p)}return be(),pe(),!0}),oe(z,()=>{be(),z.value&&(ue.value=setTimeout(()=>{ve(0)},100))});const de=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activeKey;const p=I.value.get(f)||{width:0,height:0,left:0,right:0,top:0};if(m.value){let S=c.value;e.rtl?p.right<c.value?S=p.right:p.right+p.width>c.value+l.value&&(S=p.right+p.width-l.value):p.left<-c.value?S=-p.left:p.left+p.width>-c.value+l.value&&(S=-(p.left+p.width-l.value)),w(0),y(Y(S))}else{let S=x.value;p.top<-x.value?S=-p.top:p.top+p.height>-x.value+u.value&&(S=-(p.top+p.height-u.value)),y(0),w(Y(S))}},Pe=W(0),Re=W(0);Ce(()=>{let f,p,S,P,L,B;const U=I.value;["top","bottom"].includes(e.tabPosition)?(f="width",P=l.value,L=C.value,B=E.value,p=e.rtl?"right":"left",S=Math.abs(c.value)):(f="height",P=u.value,L=C.value,B=G.value,p="top",S=-x.value);let O=P;L+B>P&&L<P&&(O=P-B);const F=o.value;if(!F.length)return[Pe.value,Re.value]=[0,0];const Z=F.length;let ne=Z;for(let X=0;X<Z;X+=1){const ee=U.get(F[X].key)||Je;if(ee[p]+ee[f]>S+O){ne=X-1;break}}let A=0;for(let X=Z-1;X>=0;X-=1)if((U.get(F[X].key)||Je)[p]<S){A=X+1;break}return[Pe.value,Re.value]=[A,ne]});const Ne=()=>{ce(()=>{var f;const p=new Map,S=(f=s.value)===null||f===void 0?void 0:f.getBoundingClientRect();return o.value.forEach(P=>{let{key:L}=P;const B=_.value.get(L),U=B?.$el||B;if(U){const[O,F,Z,ne]=aa(U,S);p.set(L,{width:O,height:F,left:Z,top:ne})}}),p})};oe(()=>o.value.map(f=>f.key).join("%%"),()=>{Ne()},{flush:"post"});const Ie=()=>{var f,p,S,P,L;const B=((f=n.value)===null||f===void 0?void 0:f.offsetWidth)||0,U=((p=n.value)===null||p===void 0?void 0:p.offsetHeight)||0,O=((S=d.value)===null||S===void 0?void 0:S.$el)||{},F=O.offsetWidth||0,Z=O.offsetHeight||0;g(B),$(U),R(F),le(Z);const ne=(((P=s.value)===null||P===void 0?void 0:P.offsetWidth)||0)-F,A=(((L=s.value)===null||L===void 0?void 0:L.offsetHeight)||0)-Z;k(ne),M(A),Ne()},Oe=H(()=>[...o.value.slice(0,Pe.value),...o.value.slice(Re.value+1)]),[ct,ut]=D(),ae=H(()=>I.value.get(e.activeKey)),We=W(),He=()=>{ge.cancel(We.value)};oe([ae,m,()=>e.rtl],()=>{const f={};ae.value&&(m.value?(e.rtl?f.right=me(ae.value.right):f.left=me(ae.value.left),f.width=me(ae.value.width)):(f.top=me(ae.value.top),f.height=me(ae.value.height))),He(),We.value=ge(()=>{ut(f)})}),oe([()=>e.activeKey,ae,I,m],()=>{de()},{flush:"post"}),oe([()=>e.rtl,()=>e.tabBarGutter,()=>e.activeKey,()=>o.value],()=>{Ie()},{flush:"post"});const Ee=f=>{let{position:p,prefixCls:S,extra:P}=f;if(!P)return null;const L=P?.({position:p});return L?h("div",{class:`${S}-extra-content`},[L]):null};return Me(()=>{be(),He()}),()=>{const{id:f,animated:p,activeKey:S,rtl:P,editable:L,locale:B,tabPosition:U,tabBarGutter:O,onTabClick:F}=e,{class:Z,style:ne}=a,A=r.value,X=!!Oe.value.length,ee=`${A}-nav-wrap`;let Be,Le,ze,Ke;m.value?P?(Le=c.value>0,Be=c.value+l.value<C.value):(Be=c.value<0,Le=-c.value+l.value<C.value):(ze=x.value<0,Ke=-x.value+u.value<K.value);const ye={};U==="top"||U==="bottom"?ye[P?"marginRight":"marginLeft"]=typeof O=="number"?`${O}px`:O:ye.marginTop=typeof O=="number"?`${O}px`:O;const Ge=o.value.map((Ae,vt)=>{const{key:fe}=Ae;return h(Yt,{id:f,prefixCls:A,key:fe,tab:Ae,style:vt===0?void 0:ye,closable:Ae.closable,editable:L,active:fe===S,removeAriaLabel:B?.removeAriaLabel,ref:b(fe),onClick:pt=>{F(fe,pt)},onFocus:()=>{de(fe),pe(),n.value&&(P||(n.value.scrollLeft=0),n.value.scrollTop=0)}},i)});return h("div",{role:"tablist",class:ie(`${A}-nav`,Z),style:ne,onKeydown:()=>{pe()}},[h(Ee,{position:"left",prefixCls:A,extra:i.leftExtra},null),h(Xe,{onResize:Ie},{default:()=>[h("div",{class:ie(ee,{[`${ee}-ping-left`]:Be,[`${ee}-ping-right`]:Le,[`${ee}-ping-top`]:ze,[`${ee}-ping-bottom`]:Ke}),ref:n},[h(Xe,{onResize:Ie},{default:()=>[h("div",{ref:s,class:`${A}-nav-list`,style:{transform:`translate(${c.value}px, ${x.value}px)`,transition:z.value?"none":void 0}},[Ge,h(rt,{ref:d,prefixCls:A,locale:B,editable:L,style:T(T({},Ge.length===0?void 0:ye),{visibility:X?"hidden":null})},null),h("div",{class:ie(`${A}-ink-bar`,{[`${A}-ink-bar-animated`]:p.inkBar}),style:ct.value},null)])]})])]}),h(qt,te(te({},e),{},{removeAriaLabel:B?.removeAriaLabel,ref:v,prefixCls:A,tabs:Oe.value,class:!X&&Q.value}),it(i,["moreIcon"])),h(Ee,{position:"right",prefixCls:A,extra:i.rightExtra},null),h(Ee,{position:"right",prefixCls:A,extra:i.tabBarExtraContent},null)])}}}),na=re({compatConfig:{MODE:3},name:"TabPanelList",inheritAttrs:!1,props:{activeKey:{type:[String,Number]},id:{type:String},rtl:{type:Boolean},animated:{type:Object,default:void 0},tabPosition:{type:String},destroyInactiveTabPane:{type:Boolean}},setup(e){const{tabs:t,prefixCls:a}=st();return()=>{const{id:i,activeKey:o,animated:r,tabPosition:n,rtl:s,destroyInactiveTabPane:v}=e,d=r.tabPane,b=a.value,_=t.value.findIndex(m=>m.key===o);return h("div",{class:`${b}-content-holder`},[h("div",{class:[`${b}-content`,`${b}-content-${n}`,{[`${b}-content-animated`]:d}],style:_&&d?{[s?"marginRight":"marginLeft"]:`-${_}00%`}:null},[t.value.map(m=>Ht(m.node,{key:m.key,prefixCls:b,tabKey:m.key,id:i,animated:d,active:m.key===o,destroyInactiveTabPane:v}))])])}}}),oa=e=>{const{componentCls:t,motionDurationSlow:a}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${a}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${a}`}}}}},[Ve(e,"slide-up"),Ve(e,"slide-down")]]},ia=e=>{const{componentCls:t,tabsCardHorizontalPadding:a,tabsCardHeadBackground:i,tabsCardGutter:o,colorSplit:r}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:a,background:i,border:`${e.lineWidth}px ${e.lineType} ${r}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:e.colorPrimary,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${o}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${o}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},ra=e=>{const{componentCls:t,tabsHoverColor:a,dropdownEdgeChildVerticalPadding:i}=e;return{[`${t}-dropdown`]:T(T({},tt(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${i}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":T(T({},mt),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:a}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},la=e=>{const{componentCls:t,margin:a,colorSplit:i}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:`0 0 ${a}px 0`,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${i}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
1
+ import{c as ie,D as me,_ as te,g as bt,m as ft,r as tt,A as mt,v as at,t as ht,i as gt,E as $t,u as yt}from"./useConfigInject-DIr4olCu.js";import{_ as T,p as j,o as he,q as xt,x as xe,n as St,y as _t}from"./index-BPzN5a2A.js";import{w as ge}from"./raf-Deuc0E8-.js";import{s as W,o as Me,d as re,c as h,r as J,j as H,f as Ce,l as Te,w as oe,i as Ct,p as Tt}from"./vendor-aH7YaPZi.js";import{K as q}from"./KeyCode-D63Tfrq7.js";import wt,{Item as Pt}from"./index-DNwo9Dzx.js";import{D as Rt}from"./Dropdown-O-lFvQpB.js";import{P as we}from"./index-U4Zd5IK6.js";import{u as D}from"./useState-CSbzOa8O.js";import{al as It,Y as Et,a9 as Bt}from"./icons-DEoqYzGZ.js";import{u as Lt}from"./OverrideContext-9ePmgwvW.js";import{R as Xe}from"./index-Bm7xqsYQ.js";import{u as At}from"./useRefs-C8A7zAB_.js";import{c as nt,t as Dt,a as kt,b as Mt,h as Nt,f as Ot}from"./hasIn-BXMsXiz7.js";import{i as Wt}from"./Trigger-CAZQ8LeJ.js";import{h as Fe}from"./_getTag-CWA3v-Ds.js";import{c as Ht}from"./vnode-Df_mZ5AJ.js";import{i as zt}from"./isMobile--2fOlCHx.js";import{u as je}from"./useMergedState-DUMpRiCy.js";import{d as De}from"./devWarning-CNIS3FrJ.js";import{o as Kt}from"./omit-CyPQ4Rvu.js";import{i as Ve}from"./slide-CSTFi1jq.js";import{i as ot}from"./initDefaultProps-DR3dFRrN.js";import"./_arrayIncludes-B8uzE354.js";import"./injectionKey-BXVc-oGP.js";import"./Overflow-CZx2xJzC.js";import"./index-T5htsJq3.js";import"./placementArrow-OJpzGLKb.js";import"./firstNotUndefined-CLFzEa0p.js";import"./colors-CHcJ8oqQ.js";import"./zoom-CY5xo2Ia.js";import"./Keyframes-C7fCrnlS.js";import"./motion-Dab0Jzue.js";import"./Portal-DXIqogG2.js";import"./transition-B3-w1SVL.js";import"./collapseMotion-CSS8MlIE.js";import"./ResizeObserver.es-D6qJbdzf.js";import"./isSymbol-CsP9Ob42.js";import"./isVisible-C7tPsqfj.js";import"./warning-Pq00owYb.js";function Gt(e,t,a,i){if(!Fe(e))return e;t=nt(t,e);for(var o=-1,r=t.length,n=r-1,s=e;s!=null&&++o<r;){var v=Dt(t[o]),d=a;if(v==="__proto__"||v==="constructor"||v==="prototype")return e;if(o!=n){var b=s[v];d=void 0,d===void 0&&(d=Fe(b)?b:Wt(t[o+1])?[]:{})}kt(s,v,d),s=s[v]}return e}function Xt(e,t,a){for(var i=-1,o=t.length,r={};++i<o;){var n=t[i],s=Mt(e,n);a(s,n)&&Gt(r,nt(n,e),s)}return r}function Ft(e,t){return Xt(e,t,function(a,i){return Nt(e,i)})}var it=Ot(function(e,t){return e==null?{}:Ft(e,t)});function jt(e){const t=W(),a=W(!1);function i(){for(var o=arguments.length,r=new Array(o),n=0;n<o;n++)r[n]=arguments[n];a.value||(ge.cancel(t.value),t.value=ge(()=>{e(...r)}))}return Me(()=>{a.value=!0,ge.cancel(t.value)}),i}function Vt(e){const t=W([]),a=W(typeof e=="function"?e():e),i=jt(()=>{let r=a.value;t.value.forEach(n=>{r=n(r)}),t.value=[],a.value=r});function o(r){t.value.push(r),i()}return[a,o]}const Yt=re({compatConfig:{MODE:3},name:"TabNode",props:{id:{type:String},prefixCls:{type:String},tab:{type:Object},active:{type:Boolean},closable:{type:Boolean},editable:{type:Object},onClick:{type:Function},onResize:{type:Function},renderWrapper:{type:Function},removeAriaLabel:{type:String},onFocus:{type:Function}},emits:["click","resize","remove","focus"],setup(e,t){let{expose:a,attrs:i}=t;const o=J();function r(v){var d;!((d=e.tab)===null||d===void 0)&&d.disabled||e.onClick(v)}a({domRef:o});function n(v){var d;v.preventDefault(),v.stopPropagation(),e.editable.onEdit("remove",{key:(d=e.tab)===null||d===void 0?void 0:d.key,event:v})}const s=H(()=>{var v;return e.editable&&e.closable!==!1&&!(!((v=e.tab)===null||v===void 0)&&v.disabled)});return()=>{var v;const{prefixCls:d,id:b,active:_,tab:{key:m,tab:c,disabled:y,closeIcon:x},renderWrapper:w,removeAriaLabel:C,editable:k,onFocus:K}=e,M=`${d}-tab`,l=h("div",{key:m,ref:o,class:ie(M,{[`${M}-with-remove`]:s.value,[`${M}-active`]:_,[`${M}-disabled`]:y}),style:i.style,onClick:r},[h("div",{role:"tab","aria-selected":_,id:b&&`${b}-tab-${m}`,class:`${M}-btn`,"aria-controls":b&&`${b}-panel-${m}`,"aria-disabled":y,tabindex:y?null:0,onClick:g=>{g.stopPropagation(),r(g)},onKeydown:g=>{[q.SPACE,q.ENTER].includes(g.which)&&(g.preventDefault(),r(g))},onFocus:K},[typeof c=="function"?c():c]),s.value&&h("button",{type:"button","aria-label":C||"remove",tabindex:0,class:`${M}-remove`,onClick:g=>{g.stopPropagation(),n(g)}},[x?.()||((v=k.removeIcon)===null||v===void 0?void 0:v.call(k))||"×"])]);return w?w(l):l}}}),Ye={width:0,height:0,left:0,top:0};function Ut(e,t){const a=J(new Map);return Ce(()=>{var i,o;const r=new Map,n=e.value,s=t.value.get((i=n[0])===null||i===void 0?void 0:i.key)||Ye,v=s.left+s.width;for(let d=0;d<n.length;d+=1){const{key:b}=n[d];let _=t.value.get(b);_||(_=t.value.get((o=n[d-1])===null||o===void 0?void 0:o.key)||Ye);const m=r.get(b)||T({},_);m.right=v-m.left-m.width,r.set(b,m)}a.value=new Map(r)}),a}const rt=re({compatConfig:{MODE:3},name:"AddButton",inheritAttrs:!1,props:{prefixCls:String,editable:{type:Object},locale:{type:Object,default:void 0}},setup(e,t){let{expose:a,attrs:i}=t;const o=J();return a({domRef:o}),()=>{const{prefixCls:r,editable:n,locale:s}=e;return!n||n.showAdd===!1?null:h("button",{ref:o,type:"button",class:`${r}-nav-add`,style:i.style,"aria-label":s?.addAriaLabel||"Add tab",onClick:v=>{n.onEdit("add",{event:v})}},[n.addIcon?n.addIcon():"+"])}}}),Zt={prefixCls:{type:String},id:{type:String},tabs:{type:Object},rtl:{type:Boolean},tabBarGutter:{type:Number},activeKey:{type:[String,Number]},mobile:{type:Boolean},moreIcon:we.any,moreTransitionName:{type:String},editable:{type:Object},locale:{type:Object,default:void 0},removeAriaLabel:String,onTabClick:{type:Function},popupClassName:String,getPopupContainer:j()},qt=re({compatConfig:{MODE:3},name:"OperationNode",inheritAttrs:!1,props:Zt,emits:["tabClick"],slots:Object,setup(e,t){let{attrs:a,slots:i}=t;const[o,r]=D(!1),[n,s]=D(null),v=c=>{const y=e.tabs.filter(C=>!C.disabled);let x=y.findIndex(C=>C.key===n.value)||0;const w=y.length;for(let C=0;C<w;C+=1){x=(x+c+w)%w;const k=y[x];if(!k.disabled){s(k.key);return}}},d=c=>{const{which:y}=c;if(!o.value){[q.DOWN,q.SPACE,q.ENTER].includes(y)&&(r(!0),c.preventDefault());return}switch(y){case q.UP:v(-1),c.preventDefault();break;case q.DOWN:v(1),c.preventDefault();break;case q.ESC:r(!1);break;case q.SPACE:case q.ENTER:n.value!==null&&e.onTabClick(n.value,c);break}},b=H(()=>`${e.id}-more-popup`),_=H(()=>n.value!==null?`${b.value}-${n.value}`:null),m=(c,y)=>{c.preventDefault(),c.stopPropagation(),e.editable.onEdit("remove",{key:y,event:c})};return Te(()=>{oe(n,()=>{const c=document.getElementById(_.value);c&&c.scrollIntoView&&c.scrollIntoView(!1)},{flush:"post",immediate:!0})}),oe(o,()=>{o.value||s(null)}),Lt({}),()=>{var c;const{prefixCls:y,id:x,tabs:w,locale:C,mobile:k,moreIcon:K=((c=i.moreIcon)===null||c===void 0?void 0:c.call(i))||h(It,null,null),moreTransitionName:M,editable:l,tabBarGutter:g,rtl:u,onTabClick:$,popupClassName:E}=e;if(!w.length)return null;const R=`${y}-dropdown`,G=C?.dropdownAriaLabel,le={[u?"marginRight":"marginLeft"]:g};w.length||(le.visibility="hidden",le.order=1);const se=ie({[`${R}-rtl`]:u,[`${E}`]:!0}),ce=k?null:h(Rt,{prefixCls:R,trigger:["hover"],visible:o.value,transitionName:M,onVisibleChange:r,overlayClassName:se,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:e.getPopupContainer},{overlay:()=>h(wt,{onClick:I=>{let{key:Q,domEvent:N}=I;$(Q,N),r(!1)},id:b.value,tabindex:-1,role:"listbox","aria-activedescendant":_.value,selectedKeys:[n.value],"aria-label":G!==void 0?G:"expanded dropdown"},{default:()=>[w.map(I=>{var Q,N;const V=l&&I.closable!==!1&&!I.disabled;return h(Pt,{key:I.key,id:`${b.value}-${I.key}`,role:"option","aria-controls":x&&`${x}-panel-${I.key}`,disabled:I.disabled},{default:()=>[h("span",null,[typeof I.tab=="function"?I.tab():I.tab]),V&&h("button",{type:"button","aria-label":e.removeAriaLabel||"remove",tabindex:0,class:`${R}-menu-item-remove`,onClick:Y=>{Y.stopPropagation(),m(Y,I.key)}},[((Q=I.closeIcon)===null||Q===void 0?void 0:Q.call(I))||((N=l.removeIcon)===null||N===void 0?void 0:N.call(l))||"×"])]})})]}),default:()=>h("button",{type:"button",class:`${y}-nav-more`,style:le,tabindex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":b.value,id:`${x}-more`,"aria-expanded":o.value,onKeydown:d},[K])});return h("div",{class:ie(`${y}-nav-operations`,a.class),style:a.style},[ce,h(rt,{prefixCls:y,locale:C,editable:l},null)])}}}),lt=Symbol("tabsContextKey"),Jt=e=>{Tt(lt,e)},st=()=>Ct(lt,{tabs:J([]),prefixCls:J()}),Qt=.1,Ue=.01,Se=20,Ze=Math.pow(.995,Se);function ea(e,t){const[a,i]=D(),[o,r]=D(0),[n,s]=D(0),[v,d]=D(),b=J();function _(l){const{screenX:g,screenY:u}=l.touches[0];i({x:g,y:u}),clearInterval(b.value)}function m(l){if(!a.value)return;l.preventDefault();const{screenX:g,screenY:u}=l.touches[0],$=g-a.value.x,E=u-a.value.y;t($,E),i({x:g,y:u});const R=Date.now();s(R-o.value),r(R),d({x:$,y:E})}function c(){if(!a.value)return;const l=v.value;if(i(null),d(null),l){const g=l.x/n.value,u=l.y/n.value,$=Math.abs(g),E=Math.abs(u);if(Math.max($,E)<Qt)return;let R=g,G=u;b.value=setInterval(()=>{if(Math.abs(R)<Ue&&Math.abs(G)<Ue){clearInterval(b.value);return}R*=Ze,G*=Ze,t(R*Se,G*Se)},Se)}}const y=J();function x(l){const{deltaX:g,deltaY:u}=l;let $=0;const E=Math.abs(g),R=Math.abs(u);E===R?$=y.value==="x"?g:u:E>R?($=g,y.value="x"):($=u,y.value="y"),t(-$,-$)&&l.preventDefault()}const w=J({onTouchStart:_,onTouchMove:m,onTouchEnd:c,onWheel:x});function C(l){w.value.onTouchStart(l)}function k(l){w.value.onTouchMove(l)}function K(l){w.value.onTouchEnd(l)}function M(l){w.value.onWheel(l)}Te(()=>{var l,g;document.addEventListener("touchmove",k,{passive:!1}),document.addEventListener("touchend",K,{passive:!1}),(l=e.value)===null||l===void 0||l.addEventListener("touchstart",C,{passive:!1}),(g=e.value)===null||g===void 0||g.addEventListener("wheel",M,{passive:!1})}),Me(()=>{document.removeEventListener("touchmove",k),document.removeEventListener("touchend",K)})}function qe(e,t){const a=J(e);function i(o){const r=typeof o=="function"?o(a.value):o;r!==a.value&&t(r,a.value),a.value=r}return[a,i]}const Je={width:0,height:0,left:0,top:0,right:0},ta=()=>({id:{type:String},tabPosition:{type:String},activeKey:{type:[String,Number]},rtl:{type:Boolean},animated:he(),editable:he(),moreIcon:we.any,moreTransitionName:{type:String},mobile:{type:Boolean},tabBarGutter:{type:Number},renderTabBar:{type:Function},locale:he(),popupClassName:String,getPopupContainer:j(),onTabClick:{type:Function},onTabScroll:{type:Function}}),aa=(e,t)=>{const{offsetWidth:a,offsetHeight:i,offsetTop:o,offsetLeft:r}=e,{width:n,height:s,x:v,y:d}=e.getBoundingClientRect();return Math.abs(n-a)<1?[n,s,v-t.x,d-t.y]:[a,i,r,o]},Qe=re({compatConfig:{MODE:3},name:"TabNavList",inheritAttrs:!1,props:ta(),slots:Object,emits:["tabClick","tabScroll"],setup(e,t){let{attrs:a,slots:i}=t;const{tabs:o,prefixCls:r}=st(),n=W(),s=W(),v=W(),d=W(),[b,_]=At(),m=H(()=>e.tabPosition==="top"||e.tabPosition==="bottom"),[c,y]=qe(0,(f,p)=>{m.value&&e.onTabScroll&&e.onTabScroll({direction:f>p?"left":"right"})}),[x,w]=qe(0,(f,p)=>{!m.value&&e.onTabScroll&&e.onTabScroll({direction:f>p?"top":"bottom"})}),[C,k]=D(0),[K,M]=D(0),[l,g]=D(null),[u,$]=D(null),[E,R]=D(0),[G,le]=D(0),[se,ce]=Vt(new Map),I=Ut(o,se),Q=H(()=>`${r.value}-nav-operations-hidden`),N=W(0),V=W(0);Ce(()=>{m.value?e.rtl?(N.value=0,V.value=Math.max(0,C.value-l.value)):(N.value=Math.min(0,l.value-C.value),V.value=0):(N.value=Math.min(0,u.value-K.value),V.value=0)});const Y=f=>f<N.value?N.value:f>V.value?V.value:f,ue=W(),[z,ve]=D(),pe=()=>{ve(Date.now())},be=()=>{clearTimeout(ue.value)},$e=(f,p)=>{f(S=>Y(S+p))};ea(n,(f,p)=>{if(m.value){if(l.value>=C.value)return!1;$e(y,f)}else{if(u.value>=K.value)return!1;$e(w,p)}return be(),pe(),!0}),oe(z,()=>{be(),z.value&&(ue.value=setTimeout(()=>{ve(0)},100))});const de=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activeKey;const p=I.value.get(f)||{width:0,height:0,left:0,right:0,top:0};if(m.value){let S=c.value;e.rtl?p.right<c.value?S=p.right:p.right+p.width>c.value+l.value&&(S=p.right+p.width-l.value):p.left<-c.value?S=-p.left:p.left+p.width>-c.value+l.value&&(S=-(p.left+p.width-l.value)),w(0),y(Y(S))}else{let S=x.value;p.top<-x.value?S=-p.top:p.top+p.height>-x.value+u.value&&(S=-(p.top+p.height-u.value)),y(0),w(Y(S))}},Pe=W(0),Re=W(0);Ce(()=>{let f,p,S,P,L,B;const U=I.value;["top","bottom"].includes(e.tabPosition)?(f="width",P=l.value,L=C.value,B=E.value,p=e.rtl?"right":"left",S=Math.abs(c.value)):(f="height",P=u.value,L=C.value,B=G.value,p="top",S=-x.value);let O=P;L+B>P&&L<P&&(O=P-B);const F=o.value;if(!F.length)return[Pe.value,Re.value]=[0,0];const Z=F.length;let ne=Z;for(let X=0;X<Z;X+=1){const ee=U.get(F[X].key)||Je;if(ee[p]+ee[f]>S+O){ne=X-1;break}}let A=0;for(let X=Z-1;X>=0;X-=1)if((U.get(F[X].key)||Je)[p]<S){A=X+1;break}return[Pe.value,Re.value]=[A,ne]});const Ne=()=>{ce(()=>{var f;const p=new Map,S=(f=s.value)===null||f===void 0?void 0:f.getBoundingClientRect();return o.value.forEach(P=>{let{key:L}=P;const B=_.value.get(L),U=B?.$el||B;if(U){const[O,F,Z,ne]=aa(U,S);p.set(L,{width:O,height:F,left:Z,top:ne})}}),p})};oe(()=>o.value.map(f=>f.key).join("%%"),()=>{Ne()},{flush:"post"});const Ie=()=>{var f,p,S,P,L;const B=((f=n.value)===null||f===void 0?void 0:f.offsetWidth)||0,U=((p=n.value)===null||p===void 0?void 0:p.offsetHeight)||0,O=((S=d.value)===null||S===void 0?void 0:S.$el)||{},F=O.offsetWidth||0,Z=O.offsetHeight||0;g(B),$(U),R(F),le(Z);const ne=(((P=s.value)===null||P===void 0?void 0:P.offsetWidth)||0)-F,A=(((L=s.value)===null||L===void 0?void 0:L.offsetHeight)||0)-Z;k(ne),M(A),Ne()},Oe=H(()=>[...o.value.slice(0,Pe.value),...o.value.slice(Re.value+1)]),[ct,ut]=D(),ae=H(()=>I.value.get(e.activeKey)),We=W(),He=()=>{ge.cancel(We.value)};oe([ae,m,()=>e.rtl],()=>{const f={};ae.value&&(m.value?(e.rtl?f.right=me(ae.value.right):f.left=me(ae.value.left),f.width=me(ae.value.width)):(f.top=me(ae.value.top),f.height=me(ae.value.height))),He(),We.value=ge(()=>{ut(f)})}),oe([()=>e.activeKey,ae,I,m],()=>{de()},{flush:"post"}),oe([()=>e.rtl,()=>e.tabBarGutter,()=>e.activeKey,()=>o.value],()=>{Ie()},{flush:"post"});const Ee=f=>{let{position:p,prefixCls:S,extra:P}=f;if(!P)return null;const L=P?.({position:p});return L?h("div",{class:`${S}-extra-content`},[L]):null};return Me(()=>{be(),He()}),()=>{const{id:f,animated:p,activeKey:S,rtl:P,editable:L,locale:B,tabPosition:U,tabBarGutter:O,onTabClick:F}=e,{class:Z,style:ne}=a,A=r.value,X=!!Oe.value.length,ee=`${A}-nav-wrap`;let Be,Le,ze,Ke;m.value?P?(Le=c.value>0,Be=c.value+l.value<C.value):(Be=c.value<0,Le=-c.value+l.value<C.value):(ze=x.value<0,Ke=-x.value+u.value<K.value);const ye={};U==="top"||U==="bottom"?ye[P?"marginRight":"marginLeft"]=typeof O=="number"?`${O}px`:O:ye.marginTop=typeof O=="number"?`${O}px`:O;const Ge=o.value.map((Ae,vt)=>{const{key:fe}=Ae;return h(Yt,{id:f,prefixCls:A,key:fe,tab:Ae,style:vt===0?void 0:ye,closable:Ae.closable,editable:L,active:fe===S,removeAriaLabel:B?.removeAriaLabel,ref:b(fe),onClick:pt=>{F(fe,pt)},onFocus:()=>{de(fe),pe(),n.value&&(P||(n.value.scrollLeft=0),n.value.scrollTop=0)}},i)});return h("div",{role:"tablist",class:ie(`${A}-nav`,Z),style:ne,onKeydown:()=>{pe()}},[h(Ee,{position:"left",prefixCls:A,extra:i.leftExtra},null),h(Xe,{onResize:Ie},{default:()=>[h("div",{class:ie(ee,{[`${ee}-ping-left`]:Be,[`${ee}-ping-right`]:Le,[`${ee}-ping-top`]:ze,[`${ee}-ping-bottom`]:Ke}),ref:n},[h(Xe,{onResize:Ie},{default:()=>[h("div",{ref:s,class:`${A}-nav-list`,style:{transform:`translate(${c.value}px, ${x.value}px)`,transition:z.value?"none":void 0}},[Ge,h(rt,{ref:d,prefixCls:A,locale:B,editable:L,style:T(T({},Ge.length===0?void 0:ye),{visibility:X?"hidden":null})},null),h("div",{class:ie(`${A}-ink-bar`,{[`${A}-ink-bar-animated`]:p.inkBar}),style:ct.value},null)])]})])]}),h(qt,te(te({},e),{},{removeAriaLabel:B?.removeAriaLabel,ref:v,prefixCls:A,tabs:Oe.value,class:!X&&Q.value}),it(i,["moreIcon"])),h(Ee,{position:"right",prefixCls:A,extra:i.rightExtra},null),h(Ee,{position:"right",prefixCls:A,extra:i.tabBarExtraContent},null)])}}}),na=re({compatConfig:{MODE:3},name:"TabPanelList",inheritAttrs:!1,props:{activeKey:{type:[String,Number]},id:{type:String},rtl:{type:Boolean},animated:{type:Object,default:void 0},tabPosition:{type:String},destroyInactiveTabPane:{type:Boolean}},setup(e){const{tabs:t,prefixCls:a}=st();return()=>{const{id:i,activeKey:o,animated:r,tabPosition:n,rtl:s,destroyInactiveTabPane:v}=e,d=r.tabPane,b=a.value,_=t.value.findIndex(m=>m.key===o);return h("div",{class:`${b}-content-holder`},[h("div",{class:[`${b}-content`,`${b}-content-${n}`,{[`${b}-content-animated`]:d}],style:_&&d?{[s?"marginRight":"marginLeft"]:`-${_}00%`}:null},[t.value.map(m=>Ht(m.node,{key:m.key,prefixCls:b,tabKey:m.key,id:i,animated:d,active:m.key===o,destroyInactiveTabPane:v}))])])}}}),oa=e=>{const{componentCls:t,motionDurationSlow:a}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${a}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${a}`}}}}},[Ve(e,"slide-up"),Ve(e,"slide-down")]]},ia=e=>{const{componentCls:t,tabsCardHorizontalPadding:a,tabsCardHeadBackground:i,tabsCardGutter:o,colorSplit:r}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:a,background:i,border:`${e.lineWidth}px ${e.lineType} ${r}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:e.colorPrimary,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${o}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${o}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},ra=e=>{const{componentCls:t,tabsHoverColor:a,dropdownEdgeChildVerticalPadding:i}=e;return{[`${t}-dropdown`]:T(T({},tt(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${i}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":T(T({},mt),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:a}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},la=e=>{const{componentCls:t,margin:a,colorSplit:i}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:`0 0 ${a}px 0`,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${i}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
2
2
  right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
3
3
  > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:`${a}px`,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:e.controlHeight*1.25,[`${t}-tab`]:{padding:`${e.paddingXS}px ${e.paddingLG}px`,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:`${e.margin}px 0 0 0`},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},sa=e=>{const{componentCls:t,padding:a}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px 0`,fontSize:e.fontSize}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${a}px 0`,fontSize:e.fontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXXS*1.5}px ${a}px`}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px ${a}px ${e.paddingXXS*1.5}px`}}}}}},da=e=>{const{componentCls:t,tabsActiveColor:a,tabsHoverColor:i,iconCls:o,tabsHorizontalGutter:r}=e,n=`${t}-tab`;return{[n]:{position:"relative",display:"inline-flex",alignItems:"center",padding:`${e.paddingSM}px 0`,fontSize:`${e.fontSize}px`,background:"transparent",border:0,outline:"none",cursor:"pointer","&-btn, &-remove":T({"&:focus:not(:focus-visible), &:active":{color:a}},at(e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-e.marginXXS},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:i},[`&${n}-active ${n}-btn`]:{color:e.colorPrimary,textShadow:e.tabsActiveTextShadow},[`&${n}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-disabled ${n}-btn, &${n}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${n}-remove ${o}`]:{margin:0},[o]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${n} + ${n}`]:{margin:{_skip_check_:!0,value:`0 0 0 ${r}px`}}}},ca=e=>{const{componentCls:t,tabsHorizontalGutter:a,iconCls:i,tabsCardGutter:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:`0 0 0 ${a}px`},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[i]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${e.marginSM}px`}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${e.marginXXS}px`},[i]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:`${o}px`},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},ua=e=>{const{componentCls:t,tabsCardHorizontalPadding:a,tabsCardHeight:i,tabsCardGutter:o,tabsHoverColor:r,tabsActiveColor:n,colorSplit:s}=e;return{[t]:T(T(T(T({},tt(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:a,background:"transparent",border:0,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:T({minWidth:`${i}px`,marginLeft:{_skip_check_:!0,value:`${o}px`},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${s}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:r},"&:active, &:focus:not(:focus-visible)":{color:n}},at(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.colorPrimary,pointerEvents:"none"}}),da(e)),{[`${t}-content`]:{position:"relative",display:"flex",width:"100%","&-animated":{transition:"margin 0.3s"}},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none",flex:"none",width:"100%"}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},va=bt("Tabs",e=>{const t=e.controlHeightLG,a=ft(e,{tabsHoverColor:e.colorPrimaryHover,tabsActiveColor:e.colorPrimaryActive,tabsCardHorizontalPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,tabsCardHeight:t,tabsCardGutter:e.marginXXS/2,tabsHorizontalGutter:32,tabsCardHeadBackground:e.colorFillAlter,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120});return[sa(a),ca(a),la(a),ra(a),ia(a),ua(a),oa(a)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));let et=0;const dt=()=>({prefixCls:{type:String},id:{type:String},popupClassName:String,getPopupContainer:j(),activeKey:{type:[String,Number]},defaultActiveKey:{type:[String,Number]},direction:xe(),animated:_t([Boolean,Object]),renderTabBar:j(),tabBarGutter:{type:Number},tabBarStyle:he(),tabPosition:xe(),destroyInactiveTabPane:St(),hideAdd:Boolean,type:xe(),size:xe(),centered:Boolean,onEdit:j(),onChange:j(),onTabClick:j(),onTabScroll:j(),"onUpdate:activeKey":j(),locale:he(),onPrevClick:j(),onNextClick:j(),tabBarExtraContent:we.any});function pa(e){return e.map(t=>{if(gt(t)){const a=T({},t.props||{});for(const[m,c]of Object.entries(a))delete a[m],a[$t(m)]=c;const i=t.children||{},o=t.key!==void 0?t.key:void 0,{tab:r=i.tab,disabled:n,forceRender:s,closable:v,animated:d,active:b,destroyInactiveTabPane:_}=a;return T(T({key:o},a),{node:t,closeIcon:i.closeIcon,tab:r,disabled:n===""||n,forceRender:s===""||s,closable:v===""||v,animated:d===""||d,active:b===""||b,destroyInactiveTabPane:_===""||_})}return null}).filter(t=>t)}const ba=re({compatConfig:{MODE:3},name:"InternalTabs",inheritAttrs:!1,props:T(T({},ot(dt(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}})),{tabs:xt()}),slots:Object,setup(e,t){let{attrs:a,slots:i}=t;De(e.onPrevClick===void 0&&e.onNextClick===void 0,"Tabs","`onPrevClick / @prevClick` and `onNextClick / @nextClick` has been removed. Please use `onTabScroll / @tabScroll` instead."),De(e.tabBarExtraContent===void 0,"Tabs","`tabBarExtraContent` prop has been removed. Please use `rightExtra` slot instead."),De(i.tabBarExtraContent===void 0,"Tabs","`tabBarExtraContent` slot is deprecated. Please use `rightExtra` slot instead.");const{prefixCls:o,direction:r,size:n,rootPrefixCls:s,getPopupContainer:v}=yt("tabs",e),[d,b]=va(o),_=H(()=>r.value==="rtl"),m=H(()=>{const{animated:u,tabPosition:$}=e;return u===!1||["left","right"].includes($)?{inkBar:!1,tabPane:!1}:u===!0?{inkBar:!0,tabPane:!0}:T({inkBar:!0,tabPane:!1},typeof u=="object"?u:{})}),[c,y]=D(!1);Te(()=>{y(zt())});const[x,w]=je(()=>{var u;return(u=e.tabs[0])===null||u===void 0?void 0:u.key},{value:H(()=>e.activeKey),defaultValue:e.defaultActiveKey}),[C,k]=D(()=>e.tabs.findIndex(u=>u.key===x.value));Ce(()=>{var u;let $=e.tabs.findIndex(E=>E.key===x.value);$===-1&&($=Math.max(0,Math.min(C.value,e.tabs.length-1)),w((u=e.tabs[$])===null||u===void 0?void 0:u.key)),k($)});const[K,M]=je(null,{value:H(()=>e.id)}),l=H(()=>c.value&&!["left","right"].includes(e.tabPosition)?"top":e.tabPosition);Te(()=>{e.id||(M(`rc-tabs-${et}`),et+=1)});const g=(u,$)=>{var E,R;(E=e.onTabClick)===null||E===void 0||E.call(e,u,$);const G=u!==x.value;w(u),G&&((R=e.onChange)===null||R===void 0||R.call(e,u))};return Jt({tabs:H(()=>e.tabs),prefixCls:o}),()=>{const{id:u,type:$,tabBarGutter:E,tabBarStyle:R,locale:G,destroyInactiveTabPane:le,renderTabBar:se=i.renderTabBar,onTabScroll:ce,hideAdd:I,centered:Q}=e,N={id:K.value,activeKey:x.value,animated:m.value,tabPosition:l.value,rtl:_.value,mobile:c.value};let V;$==="editable-card"&&(V={onEdit:(ve,pe)=>{let{key:be,event:$e}=pe;var de;(de=e.onEdit)===null||de===void 0||de.call(e,ve==="add"?$e:be,ve)},removeIcon:()=>h(Bt,null,null),addIcon:i.addIcon?i.addIcon:()=>h(Et,null,null),showAdd:I!==!0});let Y;const ue=T(T({},N),{moreTransitionName:`${s.value}-slide-up`,editable:V,locale:G,tabBarGutter:E,onTabClick:g,onTabScroll:ce,style:R,getPopupContainer:v.value,popupClassName:ie(e.popupClassName,b.value)});se?Y=se(T(T({},ue),{DefaultTabBar:Qe})):Y=h(Qe,ue,it(i,["moreIcon","leftExtra","rightExtra","tabBarExtraContent"]));const z=o.value;return d(h("div",te(te({},a),{},{id:u,class:ie(z,`${z}-${l.value}`,{[b.value]:!0,[`${z}-${n.value}`]:n.value,[`${z}-card`]:["card","editable-card"].includes($),[`${z}-editable-card`]:$==="editable-card",[`${z}-centered`]:Q,[`${z}-mobile`]:c.value,[`${z}-editable`]:$==="editable-card",[`${z}-rtl`]:_.value},a.class)}),[Y,h(na,te(te({destroyInactiveTabPane:le},N),{},{animated:m.value}),null)]))}}}),_e=re({compatConfig:{MODE:3},name:"ATabs",inheritAttrs:!1,props:ot(dt(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}}),slots:Object,setup(e,t){let{attrs:a,slots:i,emit:o}=t;const r=n=>{o("update:activeKey",n),o("change",n)};return()=>{var n;const s=pa(ht((n=i.default)===null||n===void 0?void 0:n.call(i)));return h(ba,te(te(te({},Kt(e,["onUpdate:activeKey"])),a),{},{onChange:r,tabs:s}),i)}}}),fa=()=>({tab:we.any,disabled:{type:Boolean},forceRender:{type:Boolean},closable:{type:Boolean},animated:{type:Boolean},active:{type:Boolean},destroyInactiveTabPane:{type:Boolean},prefixCls:{type:String},tabKey:{type:[String,Number]},id:{type:String}}),ke=re({compatConfig:{MODE:3},name:"ATabPane",inheritAttrs:!1,__ANT_TAB_PANE:!0,props:fa(),slots:Object,setup(e,t){let{attrs:a,slots:i}=t;const o=J(e.forceRender);oe([()=>e.active,()=>e.destroyInactiveTabPane],()=>{e.active?o.value=!0:e.destroyInactiveTabPane&&(o.value=!1)},{immediate:!0});const r=H(()=>e.active?{}:e.animated?{visibility:"hidden",height:0,overflowY:"hidden"}:{display:"none"});return()=>{var n;const{prefixCls:s,forceRender:v,id:d,active:b,tabKey:_}=e;return h("div",{id:d&&`${d}-panel-${_}`,role:"tabpanel",tabindex:b?0:-1,"aria-labelledby":d&&`${d}-tab-${_}`,"aria-hidden":!b,style:[r.value,a.style],class:[`${s}-tabpane`,b&&`${s}-tabpane-active`,a.class]},[(b||o.value||v)&&((n=i.default)===null||n===void 0?void 0:n.call(i))])}}});_e.TabPane=ke;_e.install=function(e){return e.component(_e.name,_e),e.component(ke.name,ke),e};export{ke as TabPane,_e as default};
@@ -1 +1 @@
1
- import{g as j,m as M,r as O,u as A,_ as y}from"./useConfigInject-C2E3Qsop.js";import{_ as p,n as U,v as $,k as B,p as P,y as _}from"./index-4C1c4hkZ.js";import{i as N}from"./initDefaultProps-_t-PG0bz.js";import{c as f,d as R,l as L,a1 as V,o as X,r as D}from"./vendor-aH7YaPZi.js";import{S as Y}from"./Skeleton-CfLdvEpu.js";import{o as q}from"./omit-DD9MqVt0.js";import"./icons-DzieZiVh.js";import"./Keyframes-C7fCrnlS.js";const k=t=>{const{value:n,formatter:e,precision:a,decimalSeparator:s,groupSeparator:u="",prefixCls:r}=t;let c;if(typeof e=="function")c=e({value:n});else{const i=String(n),m=i.match(/^(-?)(\d*)(\.(\d+))?$/);if(!m)c=i;else{const d=m[1];let o=m[2]||"0",l=m[4]||"";o=o.replace(/\B(?=(\d{3})+(?!\d))/g,u),typeof a=="number"&&(l=l.padEnd(a,"0").slice(0,a>0?a:0)),l&&(l=`${s}${l}`),c=[f("span",{key:"int",class:`${r}-content-value-int`},[d,o]),l&&f("span",{key:"decimal",class:`${r}-content-value-decimal`},[l])]}}return f("span",{class:`${r}-content-value`},[c])};k.displayName="StatisticNumber";const G=t=>{const{componentCls:n,marginXXS:e,padding:a,colorTextDescription:s,statisticTitleFontSize:u,colorTextHeading:r,statisticContentFontSize:c,statisticFontFamily:i}=t;return{[`${n}`]:p(p({},O(t)),{[`${n}-title`]:{marginBottom:e,color:s,fontSize:u},[`${n}-skeleton`]:{paddingTop:a},[`${n}-content`]:{color:r,fontSize:c,fontFamily:i,[`${n}-content-value`]:{display:"inline-block",direction:"ltr"},[`${n}-content-prefix, ${n}-content-suffix`]:{display:"inline-block"},[`${n}-content-prefix`]:{marginInlineEnd:e},[`${n}-content-suffix`]:{marginInlineStart:e}}})}},J=j("Statistic",t=>{const{fontSizeHeading3:n,fontSize:e,fontFamily:a}=t,s=M(t,{statisticTitleFontSize:e,statisticContentFontSize:n,statisticFontFamily:a});return[G(s)]}),z=()=>({prefixCls:String,decimalSeparator:String,groupSeparator:String,format:String,value:_([Number,String,Object]),valueStyle:{type:Object,default:void 0},valueRender:P(),formatter:B(),precision:Number,prefix:$(),suffix:$(),title:$(),loading:U()}),v=R({compatConfig:{MODE:3},name:"AStatistic",inheritAttrs:!1,props:N(z(),{decimalSeparator:".",groupSeparator:",",loading:!1}),slots:Object,setup(t,n){let{slots:e,attrs:a}=n;const{prefixCls:s,direction:u}=A("statistic",t),[r,c]=J(s);return()=>{var i,m,d,o,l,g,S;const{value:E=0,valueStyle:H,valueRender:T}=t,x=s.value,h=(i=t.title)!==null&&i!==void 0?i:(m=e.title)===null||m===void 0?void 0:m.call(e),b=(d=t.prefix)!==null&&d!==void 0?d:(o=e.prefix)===null||o===void 0?void 0:o.call(e),F=(l=t.suffix)!==null&&l!==void 0?l:(g=e.suffix)===null||g===void 0?void 0:g.call(e),I=(S=t.formatter)!==null&&S!==void 0?S:e.formatter;let C=f(k,y({"data-for-update":Date.now()},p(p({},t),{prefixCls:x,value:E,formatter:I})),null);return T&&(C=T(C)),r(f("div",y(y({},a),{},{class:[x,{[`${x}-rtl`]:u.value==="rtl"},a.class,c.value]}),[h&&f("div",{class:`${x}-title`},[h]),f(Y,{paragraph:!1,loading:t.loading},{default:()=>[f("div",{style:H,class:`${x}-content`},[b&&f("span",{class:`${x}-content-prefix`},[b]),C,F&&f("span",{class:`${x}-content-suffix`},[F])])]})]))}}}),K=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function Q(t,n){let e=t;const a=/\[[^\]]*]/g,s=(n.match(a)||[]).map(i=>i.slice(1,-1)),u=n.replace(a,"[]"),r=K.reduce((i,m)=>{let[d,o]=m;if(i.includes(d)){const l=Math.floor(e/o);return e-=l*o,i.replace(new RegExp(`${d}+`,"g"),g=>{const S=g.length;return l.toString().padStart(S,"0")})}return i},u);let c=0;return r.replace(a,()=>{const i=s[c];return c+=1,i})}function W(t,n){const{format:e=""}=n,a=new Date(t).getTime(),s=Date.now(),u=Math.max(a-s,0);return Q(u,e)}const Z=1e3/30;function w(t){return new Date(t).getTime()}const tt=()=>p(p({},z()),{value:_([Number,String,Object]),format:String,onFinish:Function,onChange:Function}),et=R({compatConfig:{MODE:3},name:"AStatisticCountdown",props:N(tt(),{format:"HH:mm:ss"}),setup(t,n){let{emit:e,slots:a}=n;const s=D(),u=D(),r=()=>{const{value:o}=t;w(o)>=Date.now()?c():i()},c=()=>{if(s.value)return;const o=w(t.value);s.value=setInterval(()=>{u.value.$forceUpdate(),o>Date.now()&&e("change",o-Date.now()),r()},Z)},i=()=>{const{value:o}=t;s.value&&(clearInterval(s.value),s.value=void 0,w(o)<Date.now()&&e("finish"))},m=o=>{let{value:l,config:g}=o;const{format:S}=t;return W(l,p(p({},g),{format:S}))},d=o=>o;return L(()=>{r()}),V(()=>{r()}),X(()=>{i()}),()=>{const o=t.value;return f(v,y({ref:u},p(p({},q(t,["onFinish","onChange"])),{value:o,valueRender:d,formatter:m})),a)}}});v.Countdown=et;v.install=function(t){return t.component(v.name,v),t.component(v.Countdown.name,v.Countdown),t};const ut=v.Countdown;export{ut as StatisticCountdown,v as default};
1
+ import{g as j,m as M,r as O,u as A,_ as y}from"./useConfigInject-DIr4olCu.js";import{_ as p,n as U,v as $,k as B,p as P,y as _}from"./index-BPzN5a2A.js";import{i as N}from"./initDefaultProps-DR3dFRrN.js";import{c as f,d as R,l as L,a1 as V,o as X,r as D}from"./vendor-aH7YaPZi.js";import{S as Y}from"./Skeleton-B-K9_08N.js";import{o as q}from"./omit-CyPQ4Rvu.js";import"./icons-DEoqYzGZ.js";import"./Keyframes-C7fCrnlS.js";const k=t=>{const{value:n,formatter:e,precision:a,decimalSeparator:s,groupSeparator:u="",prefixCls:r}=t;let c;if(typeof e=="function")c=e({value:n});else{const i=String(n),m=i.match(/^(-?)(\d*)(\.(\d+))?$/);if(!m)c=i;else{const d=m[1];let o=m[2]||"0",l=m[4]||"";o=o.replace(/\B(?=(\d{3})+(?!\d))/g,u),typeof a=="number"&&(l=l.padEnd(a,"0").slice(0,a>0?a:0)),l&&(l=`${s}${l}`),c=[f("span",{key:"int",class:`${r}-content-value-int`},[d,o]),l&&f("span",{key:"decimal",class:`${r}-content-value-decimal`},[l])]}}return f("span",{class:`${r}-content-value`},[c])};k.displayName="StatisticNumber";const G=t=>{const{componentCls:n,marginXXS:e,padding:a,colorTextDescription:s,statisticTitleFontSize:u,colorTextHeading:r,statisticContentFontSize:c,statisticFontFamily:i}=t;return{[`${n}`]:p(p({},O(t)),{[`${n}-title`]:{marginBottom:e,color:s,fontSize:u},[`${n}-skeleton`]:{paddingTop:a},[`${n}-content`]:{color:r,fontSize:c,fontFamily:i,[`${n}-content-value`]:{display:"inline-block",direction:"ltr"},[`${n}-content-prefix, ${n}-content-suffix`]:{display:"inline-block"},[`${n}-content-prefix`]:{marginInlineEnd:e},[`${n}-content-suffix`]:{marginInlineStart:e}}})}},J=j("Statistic",t=>{const{fontSizeHeading3:n,fontSize:e,fontFamily:a}=t,s=M(t,{statisticTitleFontSize:e,statisticContentFontSize:n,statisticFontFamily:a});return[G(s)]}),z=()=>({prefixCls:String,decimalSeparator:String,groupSeparator:String,format:String,value:_([Number,String,Object]),valueStyle:{type:Object,default:void 0},valueRender:P(),formatter:B(),precision:Number,prefix:$(),suffix:$(),title:$(),loading:U()}),v=R({compatConfig:{MODE:3},name:"AStatistic",inheritAttrs:!1,props:N(z(),{decimalSeparator:".",groupSeparator:",",loading:!1}),slots:Object,setup(t,n){let{slots:e,attrs:a}=n;const{prefixCls:s,direction:u}=A("statistic",t),[r,c]=J(s);return()=>{var i,m,d,o,l,g,S;const{value:E=0,valueStyle:H,valueRender:T}=t,x=s.value,h=(i=t.title)!==null&&i!==void 0?i:(m=e.title)===null||m===void 0?void 0:m.call(e),b=(d=t.prefix)!==null&&d!==void 0?d:(o=e.prefix)===null||o===void 0?void 0:o.call(e),F=(l=t.suffix)!==null&&l!==void 0?l:(g=e.suffix)===null||g===void 0?void 0:g.call(e),I=(S=t.formatter)!==null&&S!==void 0?S:e.formatter;let C=f(k,y({"data-for-update":Date.now()},p(p({},t),{prefixCls:x,value:E,formatter:I})),null);return T&&(C=T(C)),r(f("div",y(y({},a),{},{class:[x,{[`${x}-rtl`]:u.value==="rtl"},a.class,c.value]}),[h&&f("div",{class:`${x}-title`},[h]),f(Y,{paragraph:!1,loading:t.loading},{default:()=>[f("div",{style:H,class:`${x}-content`},[b&&f("span",{class:`${x}-content-prefix`},[b]),C,F&&f("span",{class:`${x}-content-suffix`},[F])])]})]))}}}),K=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function Q(t,n){let e=t;const a=/\[[^\]]*]/g,s=(n.match(a)||[]).map(i=>i.slice(1,-1)),u=n.replace(a,"[]"),r=K.reduce((i,m)=>{let[d,o]=m;if(i.includes(d)){const l=Math.floor(e/o);return e-=l*o,i.replace(new RegExp(`${d}+`,"g"),g=>{const S=g.length;return l.toString().padStart(S,"0")})}return i},u);let c=0;return r.replace(a,()=>{const i=s[c];return c+=1,i})}function W(t,n){const{format:e=""}=n,a=new Date(t).getTime(),s=Date.now(),u=Math.max(a-s,0);return Q(u,e)}const Z=1e3/30;function w(t){return new Date(t).getTime()}const tt=()=>p(p({},z()),{value:_([Number,String,Object]),format:String,onFinish:Function,onChange:Function}),et=R({compatConfig:{MODE:3},name:"AStatisticCountdown",props:N(tt(),{format:"HH:mm:ss"}),setup(t,n){let{emit:e,slots:a}=n;const s=D(),u=D(),r=()=>{const{value:o}=t;w(o)>=Date.now()?c():i()},c=()=>{if(s.value)return;const o=w(t.value);s.value=setInterval(()=>{u.value.$forceUpdate(),o>Date.now()&&e("change",o-Date.now()),r()},Z)},i=()=>{const{value:o}=t;s.value&&(clearInterval(s.value),s.value=void 0,w(o)<Date.now()&&e("finish"))},m=o=>{let{value:l,config:g}=o;const{format:S}=t;return W(l,p(p({},g),{format:S}))},d=o=>o;return L(()=>{r()}),V(()=>{r()}),X(()=>{i()}),()=>{const o=t.value;return f(v,y({ref:u},p(p({},q(t,["onFinish","onChange"])),{value:o,valueRender:d,formatter:m})),a)}}});v.Countdown=et;v.install=function(t){return t.component(v.name,v),t.component(v.Countdown.name,v.Countdown),t};const ut=v.Countdown;export{ut as StatisticCountdown,v as default};