@axiom-lattice/react-sdk 8.1.2 → 8.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/dist/{AgentDetailSideApp-ZSEYYLLD.mjs → AgentDetailSideApp-PNN6EZAK.mjs} +11 -11
  2. package/dist/AgentGovernanceWorkbench-RHZHXKXL.mjs +24 -0
  3. package/dist/{LangfuseDashboard-OHQOU74U.mjs → LangfuseDashboard-LRYMXATJ.mjs} +2 -2
  4. package/dist/{MessageGraph-AJYUV6KO.mjs → MessageGraph-G4S25PLS.mjs} +7 -7
  5. package/dist/{ReactChart-PVQCB6DJ.mjs → ReactChart-UNBTHGFX.mjs} +7 -7
  6. package/dist/SkillFlow-ZZZGU7G5.mjs +14 -0
  7. package/dist/{TasksSideApp-OJ5NHBIJ.mjs → TasksSideApp-PKIA6WVE.mjs} +8 -8
  8. package/dist/ThreadMaintenancePanel-HJQ24NMZ.mjs +12 -0
  9. package/dist/{TopologyRuntimeView-N7HDB2ZH.mjs → TopologyRuntimeView-EQIYLMTF.mjs} +8 -8
  10. package/dist/WorkflowAutomationView-WR4LQ7CY.mjs +22 -0
  11. package/dist/{chunk-B7CF2V4Z.mjs → chunk-6KAXO3UV.mjs} +4 -4
  12. package/dist/{chunk-H3WEVZMT.mjs → chunk-7IRISB5X.mjs} +2 -2
  13. package/dist/{chunk-RSVCJORT.mjs → chunk-FXPJL27K.mjs} +4 -4
  14. package/dist/{chunk-YMMOZ4SQ.mjs → chunk-HJBIRTLF.mjs} +3 -3
  15. package/dist/{chunk-NTGALUWV.mjs → chunk-M5PVHJ2T.mjs} +10 -10
  16. package/dist/{chunk-QEZDPFJD.mjs → chunk-MDGPZ6PT.mjs} +6952 -6305
  17. package/dist/chunk-MDGPZ6PT.mjs.map +1 -0
  18. package/dist/{chunk-RSKPM2EX.mjs → chunk-MI623NH3.mjs} +3 -3
  19. package/dist/{chunk-WQEQWSBD.mjs → chunk-O6LQDULL.mjs} +8 -8
  20. package/dist/{chunk-5RH6VC6U.mjs → chunk-ON5OXKYT.mjs} +3 -3
  21. package/dist/{chunk-CEC7VWIE.mjs → chunk-PT4E2OUU.mjs} +3 -3
  22. package/dist/{chunk-CBOSLYWQ.mjs → chunk-THI4W7JV.mjs} +3 -3
  23. package/dist/{chunk-VZS7AXE2.mjs → chunk-UAZQVVSC.mjs} +7 -7
  24. package/dist/{chunk-MCSBXLVL.mjs → chunk-UHXZUMQE.mjs} +3 -3
  25. package/dist/{chunk-YYBZ2KBD.mjs → chunk-ZZ23HKVT.mjs} +4 -4
  26. package/dist/{embed-page-AgentDetailSideApp-23TCREK6.js → embed-page-AgentDetailSideApp-RY4FAEAM.js} +1 -1
  27. package/dist/{embed-page-AgentGovernanceWorkbench-N3F65F3W.js → embed-page-AgentGovernanceWorkbench-UFDULZ5A.js} +1 -1
  28. package/dist/{embed-page-LangfuseDashboard-WBE7GJPU.js → embed-page-LangfuseDashboard-GNNJGAA2.js} +1 -1
  29. package/dist/{embed-page-MessageGraph-T3EFAXTX.js → embed-page-MessageGraph-S7GCLNLR.js} +1 -1
  30. package/dist/{embed-page-ReactChart-FJFQU4IV.js → embed-page-ReactChart-LWZPH244.js} +1 -1
  31. package/dist/{embed-page-SkillFlow-2BUXCLAL.js → embed-page-SkillFlow-OVIGJFUH.js} +1 -1
  32. package/dist/{embed-page-TasksSideApp-VFKEYFGR.js → embed-page-TasksSideApp-AOS4MZAI.js} +1 -1
  33. package/dist/{embed-page-ThreadMaintenancePanel-EPBJ4J3L.js → embed-page-ThreadMaintenancePanel-PXL2TJBO.js} +1 -1
  34. package/dist/{embed-page-TopologyRuntimeView-OWESU7IK.js → embed-page-TopologyRuntimeView-GRM34Z2Z.js} +1 -1
  35. package/dist/{embed-page-WorkflowAutomationView-5J2RQTZ7.js → embed-page-WorkflowAutomationView-JV26AHRB.js} +1 -1
  36. package/dist/{embed-page-chunk-WKQHSEZ4.js → embed-page-chunk-3UK7XM33.js} +1 -1
  37. package/dist/{embed-page-chunk-6QLLZJVH.js → embed-page-chunk-5XP4FJW7.js} +1 -1
  38. package/dist/{embed-page-chunk-R7TLHZR3.js → embed-page-chunk-6ZHR5GWS.js} +1 -1
  39. package/dist/{embed-page-chunk-2ZBEWYJQ.js → embed-page-chunk-ABGWNVMG.js} +1 -1
  40. package/dist/{embed-page-chunk-JMTQCORF.js → embed-page-chunk-NNQHJZ5Q.js} +1 -1
  41. package/dist/{embed-page-chunk-CQLDPGEG.js → embed-page-chunk-ONXC5S22.js} +1 -1
  42. package/dist/{embed-page-chunk-BFVNPGSW.js → embed-page-chunk-OQUMCCF5.js} +1 -1
  43. package/dist/{embed-page-chunk-CKUSXUKW.js → embed-page-chunk-SQSVDSG6.js} +176 -176
  44. package/dist/{embed-page-chunk-L7TDL27M.js → embed-page-chunk-YCTDKWKW.js} +1 -1
  45. package/dist/{embed-page-chunk-EU32IF7M.js → embed-page-chunk-YM76GTXK.js} +1 -1
  46. package/dist/{embed-page-en-TSCGSJAI.js → embed-page-en-ISNUZBPO.js} +1 -1
  47. package/dist/{embed-page-zh-Q22DIOB3.js → embed-page-zh-MDJTBW2K.js} +1 -1
  48. package/dist/embed-page.js +1 -1
  49. package/dist/{en-46QZD2TW.mjs → en-YVYTG3D2.mjs} +32 -8
  50. package/dist/{en-46QZD2TW.mjs.map → en-YVYTG3D2.mjs.map} +1 -1
  51. package/dist/index.d.mts +31 -7
  52. package/dist/index.d.ts +31 -7
  53. package/dist/index.js +4322 -3612
  54. package/dist/index.js.map +1 -1
  55. package/dist/index.mjs +14 -14
  56. package/dist/web-app.js +62 -14
  57. package/dist/web-app.js.map +1 -1
  58. package/dist/web-app.mjs +2 -2
  59. package/dist/{zh-2SMAXRUF.mjs → zh-RPVSLAR6.mjs} +32 -8
  60. package/dist/{zh-2SMAXRUF.mjs.map → zh-RPVSLAR6.mjs.map} +1 -1
  61. package/package.json +3 -3
  62. package/dist/AgentGovernanceWorkbench-NVQXK3VM.mjs +0 -24
  63. package/dist/SkillFlow-IRNQI55E.mjs +0 -14
  64. package/dist/ThreadMaintenancePanel-BGBGVU3W.mjs +0 -12
  65. package/dist/WorkflowAutomationView-TN4NHNLD.mjs +0 -22
  66. package/dist/chunk-QEZDPFJD.mjs.map +0 -1
  67. /package/dist/{AgentDetailSideApp-ZSEYYLLD.mjs.map → AgentDetailSideApp-PNN6EZAK.mjs.map} +0 -0
  68. /package/dist/{AgentGovernanceWorkbench-NVQXK3VM.mjs.map → AgentGovernanceWorkbench-RHZHXKXL.mjs.map} +0 -0
  69. /package/dist/{LangfuseDashboard-OHQOU74U.mjs.map → LangfuseDashboard-LRYMXATJ.mjs.map} +0 -0
  70. /package/dist/{MessageGraph-AJYUV6KO.mjs.map → MessageGraph-G4S25PLS.mjs.map} +0 -0
  71. /package/dist/{ReactChart-PVQCB6DJ.mjs.map → ReactChart-UNBTHGFX.mjs.map} +0 -0
  72. /package/dist/{SkillFlow-IRNQI55E.mjs.map → SkillFlow-ZZZGU7G5.mjs.map} +0 -0
  73. /package/dist/{TasksSideApp-OJ5NHBIJ.mjs.map → TasksSideApp-PKIA6WVE.mjs.map} +0 -0
  74. /package/dist/{ThreadMaintenancePanel-BGBGVU3W.mjs.map → ThreadMaintenancePanel-HJQ24NMZ.mjs.map} +0 -0
  75. /package/dist/{TopologyRuntimeView-N7HDB2ZH.mjs.map → TopologyRuntimeView-EQIYLMTF.mjs.map} +0 -0
  76. /package/dist/{WorkflowAutomationView-TN4NHNLD.mjs.map → WorkflowAutomationView-WR4LQ7CY.mjs.map} +0 -0
  77. /package/dist/{chunk-B7CF2V4Z.mjs.map → chunk-6KAXO3UV.mjs.map} +0 -0
  78. /package/dist/{chunk-H3WEVZMT.mjs.map → chunk-7IRISB5X.mjs.map} +0 -0
  79. /package/dist/{chunk-RSVCJORT.mjs.map → chunk-FXPJL27K.mjs.map} +0 -0
  80. /package/dist/{chunk-YMMOZ4SQ.mjs.map → chunk-HJBIRTLF.mjs.map} +0 -0
  81. /package/dist/{chunk-NTGALUWV.mjs.map → chunk-M5PVHJ2T.mjs.map} +0 -0
  82. /package/dist/{chunk-RSKPM2EX.mjs.map → chunk-MI623NH3.mjs.map} +0 -0
  83. /package/dist/{chunk-WQEQWSBD.mjs.map → chunk-O6LQDULL.mjs.map} +0 -0
  84. /package/dist/{chunk-5RH6VC6U.mjs.map → chunk-ON5OXKYT.mjs.map} +0 -0
  85. /package/dist/{chunk-CEC7VWIE.mjs.map → chunk-PT4E2OUU.mjs.map} +0 -0
  86. /package/dist/{chunk-CBOSLYWQ.mjs.map → chunk-THI4W7JV.mjs.map} +0 -0
  87. /package/dist/{chunk-VZS7AXE2.mjs.map → chunk-UAZQVVSC.mjs.map} +0 -0
  88. /package/dist/{chunk-MCSBXLVL.mjs.map → chunk-UHXZUMQE.mjs.map} +0 -0
  89. /package/dist/{chunk-YYBZ2KBD.mjs.map → chunk-ZZ23HKVT.mjs.map} +0 -0
@@ -1,3 +1,3 @@
1
- import{A as C,B as j,a as S,s as T}from"./embed-page-chunk-CKUSXUKW.js";import{o as x}from"./embed-page-chunk-R7TLHZR3.js";import{k as d}from"./embed-page-chunk-L7TDL27M.js";import{a as p}from"./embed-page-chunk-QV7QAJ4N.js";import{z as P}from"./embed-page-chunk-B2KNZ3EW.js";import{W as v,_ as b,bb as I}from"./embed-page-chunk-F7TA3LRH.js";import{a as M}from"./embed-page-chunk-R5QL57JJ.js";import{f as a}from"./embed-page-chunk-QBTAJ2YI.js";var h=a(M());var t=a(p()),{Text:c}=I,_=({workflowContext:e,onClose:g,onToolCompleted:m,initialMessageRequest:n,onInitialMessageSubmitted:u,attemptedInitialMessageRequestIdsRef:f,rawInitialMessage:o,showHeader:s=!0})=>{let r=d(),$=x("agent-architect"),y=e?.id?`${$.tenantId}:${e.id}`:null,A=(0,h.useMemo)(()=>{if(e?.id&&e?.name)return e.type==="agent"?`[Context: You're viewing agent "${e.name}" (assistant: ${e.id})]`:`[Context: You're viewing workflow "${e.name}" (agent: ${e.id})]`},[e]),L=(0,h.useMemo)(()=>{if(!n||!e?.id)return null;if(o)return n;let l;return e.type==="workflow"?l=[`Purpose: ${n.content.trim()}`,"",`Workflow "${e.id}" has been created with an empty YAML DSL. Based on the purpose above, load the 'create-workflow' skill, design the workflow using the YAML needs+if DSL, and update it via update_workflow. Make sure to include a descriptive name.`].join(`
1
+ import{A as C,B as j,a as S,s as T}from"./embed-page-chunk-SQSVDSG6.js";import{o as x}from"./embed-page-chunk-6ZHR5GWS.js";import{k as d}from"./embed-page-chunk-YCTDKWKW.js";import{a as p}from"./embed-page-chunk-QV7QAJ4N.js";import{z as P}from"./embed-page-chunk-B2KNZ3EW.js";import{W as v,_ as b,bb as I}from"./embed-page-chunk-F7TA3LRH.js";import{a as M}from"./embed-page-chunk-R5QL57JJ.js";import{f as a}from"./embed-page-chunk-QBTAJ2YI.js";var h=a(M());var t=a(p()),{Text:c}=I,_=({workflowContext:e,onClose:g,onToolCompleted:m,initialMessageRequest:n,onInitialMessageSubmitted:u,attemptedInitialMessageRequestIdsRef:f,rawInitialMessage:o,showHeader:s=!0})=>{let r=d(),$=x("agent-architect"),y=e?.id?`${$.tenantId}:${e.id}`:null,A=(0,h.useMemo)(()=>{if(e?.id&&e?.name)return e.type==="agent"?`[Context: You're viewing agent "${e.name}" (assistant: ${e.id})]`:`[Context: You're viewing workflow "${e.name}" (agent: ${e.id})]`},[e]),L=(0,h.useMemo)(()=>{if(!n||!e?.id)return null;if(o)return n;let l;return e.type==="workflow"?l=[`Purpose: ${n.content.trim()}`,"",`Workflow "${e.id}" has been created with an empty YAML DSL. Based on the purpose above, load the 'create-workflow' skill, design the workflow using the YAML needs+if DSL, and update it via update_workflow. Make sure to include a descriptive name.`].join(`
2
2
  `):l=[`Purpose: ${n.content.trim()}`,"",`Configure the topology for workflow "${e.id}" based on this purpose. Create sub-agents, set up the processing pipeline, and wire them together with topology edges.`,"The current name is a placeholder \u2014 feel free to update it via update_processing_agent if you have a better one."].join(`
3
3
  `),{...n,content:l}},[n?.requestId,n?.content,e?.id,e?.type,o]);return(0,t.jsxs)("div",{style:{height:"100%",display:"flex",flexDirection:"column",borderLeft:"1px solid #f0f0f0",background:"rgba(255, 255, 255, 0.92)"},children:[s&&(0,t.jsxs)("div",{style:{padding:"12px 12px",borderBottom:"1px solid #f0f0f0",display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(c,{strong:!0,children:r("chat.copilot.agentBuilder")}),e&&(0,t.jsx)("div",{children:(0,t.jsx)(c,{type:"secondary",style:{fontSize:12},children:r("chat.copilot.viewing",{name:e.name})})})]}),g&&(0,t.jsx)(b,{type:"text",size:"small","aria-label":r("chat.copilot.close"),icon:(0,t.jsx)(P,{}),onClick:g})]}),y?(0,t.jsxs)(S,{threadId:y,assistantId:"agent-architect",options:{streaming:!0},onToolCompleted:m,children:[(0,t.jsx)(C,{request:L,onSubmitted:u,attemptedRequestIdsRef:f}),(0,t.jsx)(j,{showHeader:!1,showEmptyState:!1,showDatabaseSlot:!1,showSkillSlot:!1,showAgentSlot:!1,showMetricsDataSourceSlot:!1,systemContext:A})]}):(0,t.jsxs)("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100%",textAlign:"center",gap:4,padding:"0 8px"},children:[(0,t.jsx)(c,{strong:!0,children:r("chat.copilot.agentBuilder")}),(0,t.jsx)(c,{type:"secondary",children:r("chat.copilot.selectWorkflow")})]})]})};var i=a(p()),O=({project:e,projects:g,value:m,onChange:n,selectable:u=!0,loading:f})=>{let o=d();return e?(0,i.jsxs)("div",{"data-testid":"training-context-card",style:{display:"flex",alignItems:"center",gap:8},children:[(0,i.jsx)("span",{style:{fontSize:12,color:"rgba(0,0,0,0.45)",flexShrink:0},children:o("governance.learning.projectLabel")}),u?(0,i.jsx)(T,{kind:"training",value:m??e.id,onChange:s=>{s&&n?.(s)},style:{minWidth:0}}):(0,i.jsx)("span",{style:{fontSize:12,fontWeight:500},children:e.name})]}):f?null:(0,i.jsx)(v,{type:"warning",showIcon:!0,message:o("governance.learning.noProject"),description:o("governance.learning.noProjectDescription")})};export{O as a,_ as b};
@@ -1,4 +1,4 @@
1
- import{f as $r,h as Mr,j as Ir,l as we,o as ht,t as gt}from"./embed-page-chunk-R7TLHZR3.js";import{b as Rr,k as Ce}from"./embed-page-chunk-L7TDL27M.js";import{a as _}from"./embed-page-chunk-QV7QAJ4N.js";import{La as Ar,M as pt,Ma as kr,N as ne,Na as Er,O as Oe,P as Sr,Q as Me,R as k,U as Tr,V as Pr,_a as Ie,b as br,bb as mt,j as Cr,o as wr}from"./embed-page-chunk-F7TA3LRH.js";import{a as z}from"./embed-page-chunk-R5QL57JJ.js";import{c as Kt,f as y}from"./embed-page-chunk-QBTAJ2YI.js";var bo=Kt(W=>{"use strict";var J=typeof Symbol=="function"&&Symbol.for,tr=J?Symbol.for("react.element"):60103,rr=J?Symbol.for("react.portal"):60106,At=J?Symbol.for("react.fragment"):60107,kt=J?Symbol.for("react.strict_mode"):60108,Et=J?Symbol.for("react.profiler"):60114,Rt=J?Symbol.for("react.provider"):60109,$t=J?Symbol.for("react.context"):60110,or=J?Symbol.for("react.async_mode"):60111,Mt=J?Symbol.for("react.concurrent_mode"):60111,It=J?Symbol.for("react.forward_ref"):60112,Ft=J?Symbol.for("react.suspense"):60113,ps=J?Symbol.for("react.suspense_list"):60120,Nt=J?Symbol.for("react.memo"):60115,Lt=J?Symbol.for("react.lazy"):60116,ms=J?Symbol.for("react.block"):60121,hs=J?Symbol.for("react.fundamental"):60117,gs=J?Symbol.for("react.responder"):60118,xs=J?Symbol.for("react.scope"):60119;function ie(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case tr:switch(e=e.type,e){case or:case Mt:case At:case Et:case kt:case Ft:return e;default:switch(e=e&&e.$$typeof,e){case $t:case It:case Lt:case Nt:case Rt:return e;default:return t}}case rr:return t}}}function vo(e){return ie(e)===Mt}W.AsyncMode=or;W.ConcurrentMode=Mt;W.ContextConsumer=$t;W.ContextProvider=Rt;W.Element=tr;W.ForwardRef=It;W.Fragment=At;W.Lazy=Lt;W.Memo=Nt;W.Portal=rr;W.Profiler=Et;W.StrictMode=kt;W.Suspense=Ft;W.isAsyncMode=function(e){return vo(e)||ie(e)===or};W.isConcurrentMode=vo;W.isContextConsumer=function(e){return ie(e)===$t};W.isContextProvider=function(e){return ie(e)===Rt};W.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===tr};W.isForwardRef=function(e){return ie(e)===It};W.isFragment=function(e){return ie(e)===At};W.isLazy=function(e){return ie(e)===Lt};W.isMemo=function(e){return ie(e)===Nt};W.isPortal=function(e){return ie(e)===rr};W.isProfiler=function(e){return ie(e)===Et};W.isStrictMode=function(e){return ie(e)===kt};W.isSuspense=function(e){return ie(e)===Ft};W.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===At||e===Mt||e===Et||e===kt||e===Ft||e===ps||typeof e=="object"&&e!==null&&(e.$$typeof===Lt||e.$$typeof===Nt||e.$$typeof===Rt||e.$$typeof===$t||e.$$typeof===It||e.$$typeof===hs||e.$$typeof===gs||e.$$typeof===xs||e.$$typeof===ms)};W.typeOf=ie});var wo=Kt((vi,Co)=>{"use strict";Co.exports=bo()});var Ro=Kt((bi,Eo)=>{"use strict";var nr=wo(),ys={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},vs={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},bs={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ao={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},sr={};sr[nr.ForwardRef]=bs;sr[nr.Memo]=Ao;function So(e){return nr.isMemo(e)?Ao:sr[e.$$typeof]||ys}var Cs=Object.defineProperty,ws=Object.getOwnPropertyNames,To=Object.getOwnPropertySymbols,Ss=Object.getOwnPropertyDescriptor,Ts=Object.getPrototypeOf,Po=Object.prototype;function ko(e,t,r){if(typeof t!="string"){if(Po){var o=Ts(t);o&&o!==Po&&ko(e,o,r)}var n=ws(t);To&&(n=n.concat(To(t)));for(var s=So(e),a=So(t),c=0;c<n.length;++c){var i=n[c];if(!vs[i]&&!(r&&r[i])&&!(a&&a[i])&&!(s&&s[i])){var l=Ss(t,i);try{Cs(e,i,l)}catch{}}}}return e}Eo.exports=ko});var qn=!1;function Kn(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Xn(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Fr=(function(){function e(r){var o=this;this._insertTag=function(n){var s;o.tags.length===0?o.insertionPoint?s=o.insertionPoint.nextSibling:o.prepend?s=o.container.firstChild:s=o.before:s=o.tags[o.tags.length-1].nextSibling,o.container.insertBefore(n,s),o.tags.push(n)},this.isSpeedy=r.speedy===void 0?!qn:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(o){o.forEach(this._insertTag)},t.insert=function(o){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Xn(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var s=Kn(n);try{s.insertRule(o,s.cssRules.length)}catch{}}else n.appendChild(document.createTextNode(o));this.ctr++},t.flush=function(){this.tags.forEach(function(o){var n;return(n=o.parentNode)==null?void 0:n.removeChild(o)}),this.tags=[],this.ctr=0},e})();var Q="-ms-",rt="-moz-",j="-webkit-",xt="comm",We="rule",Be="decl";var Nr="@import";var yt="@keyframes";var Lr="@layer";var jr=Math.abs,Fe=String.fromCharCode,zr=Object.assign;function Or(e,t){return H(e,0)^45?(((t<<2^H(e,0))<<2^H(e,1))<<2^H(e,2))<<2^H(e,3):0}function vt(e){return e.trim()}function Xt(e,t){return(e=t.exec(e))?e[0]:e}function F(e,t,r){return e.replace(t,r)}function ot(e,t){return e.indexOf(t)}function H(e,t){return e.charCodeAt(t)|0}function Se(e,t,r){return e.slice(t,r)}function te(e){return e.length}function Ue(e){return e.length}function De(e,t){return t.push(e),e}function Yt(e,t){return e.map(t).join("")}var bt=1,_e=1,Wr=0,re=0,K=0,He="";function nt(e,t,r,o,n,s,a){return{value:e,root:t,parent:r,type:o,props:n,children:s,line:bt,column:_e,length:a,return:""}}function Ge(e,t){return zr(nt("",null,null,"",null,null,0),e,{length:-e.length},t)}function Br(){return K}function Ur(){return K=re>0?H(He,--re):0,_e--,K===10&&(_e=1,bt--),K}function oe(){return K=re<Wr?H(He,re++):0,_e++,K===10&&(_e=1,bt++),K}function de(){return H(He,re)}function st(){return re}function qe(e,t){return Se(He,e,t)}function Ve(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ct(e){return bt=_e=1,Wr=te(He=e),re=0,[]}function wt(e){return He="",e}function Ke(e){return vt(qe(re-1,Jt(e===91?e+2:e===40?e+1:e)))}function Dr(e){for(;(K=de())&&K<33;)oe();return Ve(e)>2||Ve(K)>3?"":" "}function _r(e,t){for(;--t&&oe()&&!(K<48||K>102||K>57&&K<65||K>70&&K<97););return qe(e,st()+(t<6&&de()==32&&oe()==32))}function Jt(e){for(;oe();)switch(K){case e:return re;case 34:case 39:e!==34&&e!==39&&Jt(K);break;case 40:e===41&&Jt(e);break;case 92:oe();break}return re}function Vr(e,t){for(;oe()&&e+K!==57;)if(e+K===84&&de()===47)break;return"/*"+qe(t,re-1)+"*"+Fe(e===47?e:oe())}function Hr(e){for(;!Ve(de());)oe();return qe(e,re)}function Kr(e){return wt(St("",null,null,null,[""],e=Ct(e),0,[0],e))}function St(e,t,r,o,n,s,a,c,i){for(var l=0,p=0,x=a,u=0,b=0,h=0,m=1,d=1,f=1,g=0,T="",N=n,O=s,$=o,w=T;d;)switch(h=g,g=oe()){case 40:if(h!=108&&H(w,x-1)==58){ot(w+=F(Ke(g),"&","&\f"),"&\f")!=-1&&(f=-1);break}case 34:case 39:case 91:w+=Ke(g);break;case 9:case 10:case 13:case 32:w+=Dr(h);break;case 92:w+=_r(st()-1,7);continue;case 47:switch(de()){case 42:case 47:De(Yn(Vr(oe(),st()),t,r),i);break;default:w+="/"}break;case 123*m:c[l++]=te(w)*f;case 125*m:case 59:case 0:switch(g){case 0:case 125:d=0;case 59+p:f==-1&&(w=F(w,/\f/g,"")),b>0&&te(w)-x&&De(b>32?qr(w+";",o,r,x-1):qr(F(w," ","")+";",o,r,x-2),i);break;case 59:w+=";";default:if(De($=Gr(w,t,r,l,p,n,c,T,N=[],O=[],x),s),g===123)if(p===0)St(w,t,$,$,N,s,x,c,O);else switch(u===99&&H(w,3)===110?100:u){case 100:case 108:case 109:case 115:St(e,$,$,o&&De(Gr(e,$,$,0,0,n,c,T,n,N=[],x),O),n,O,x,c,o?N:O);break;default:St(w,$,$,$,[""],O,0,c,O)}}l=p=b=0,m=f=1,T=w="",x=a;break;case 58:x=1+te(w),b=h;default:if(m<1){if(g==123)--m;else if(g==125&&m++==0&&Ur()==125)continue}switch(w+=Fe(g),g*m){case 38:f=p>0?1:(w+="\f",-1);break;case 44:c[l++]=(te(w)-1)*f,f=1;break;case 64:de()===45&&(w+=Ke(oe())),u=de(),p=x=te(T=w+=Hr(st())),g++;break;case 45:h===45&&te(w)==2&&(m=0)}}return s}function Gr(e,t,r,o,n,s,a,c,i,l,p){for(var x=n-1,u=n===0?s:[""],b=Ue(u),h=0,m=0,d=0;h<o;++h)for(var f=0,g=Se(e,x+1,x=jr(m=a[h])),T=e;f<b;++f)(T=vt(m>0?u[f]+" "+g:F(g,/&\f/g,u[f])))&&(i[d++]=T);return nt(e,t,r,n===0?We:c,i,l,p)}function Yn(e,t,r){return nt(e,t,r,xt,Fe(Br()),Se(e,2,-2),0)}function qr(e,t,r,o){return nt(e,t,r,Be,Se(e,0,o),Se(e,o+1,-1),o)}function Ne(e,t){for(var r="",o=Ue(e),n=0;n<o;n++)r+=t(e[n],n,e,t)||"";return r}function Xr(e,t,r,o){switch(e.type){case Lr:if(e.children.length)break;case Nr:case Be:return e.return=e.return||e.value;case xt:return"";case yt:return e.return=e.value+"{"+Ne(e.children,o)+"}";case We:e.value=e.props.join(",")}return te(r=Ne(e.children,o))?e.return=e.value+"{"+r+"}":""}function Yr(e){var t=Ue(e);return function(r,o,n,s){for(var a="",c=0;c<t;c++)a+=e[c](r,o,n,s)||"";return a}}function Jr(e){return function(t){t.root||(t=t.return)&&e(t)}}var Qt=function(t){var r=new WeakMap;return function(o){if(r.has(o))return r.get(o);var n=t(o);return r.set(o,n),n}};function Qr(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Jn=function(t,r,o){for(var n=0,s=0;n=s,s=de(),n===38&&s===12&&(r[o]=1),!Ve(s);)oe();return qe(t,re)},Qn=function(t,r){var o=-1,n=44;do switch(Ve(n)){case 0:n===38&&de()===12&&(r[o]=1),t[o]+=Jn(re-1,r,o);break;case 2:t[o]+=Ke(n);break;case 4:if(n===44){t[++o]=de()===58?"&\f":"",r[o]=t[o].length;break}default:t[o]+=Fe(n)}while(n=oe());return t},Zn=function(t,r){return wt(Qn(Ct(t),r))},Zr=new WeakMap,es=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,o=t.parent,n=t.column===o.column&&t.line===o.line;o.type!=="rule";)if(o=o.parent,!o)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Zr.get(o))&&!n){Zr.set(t,!0);for(var s=[],a=Zn(r,s),c=o.props,i=0,l=0;i<a.length;i++)for(var p=0;p<c.length;p++,l++)t.props[l]=s[i]?a[i].replace(/&\f/g,c[p]):c[p]+" "+a[i]}}},ts=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function eo(e,t){switch(Or(e,t)){case 5103:return j+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return j+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return j+e+rt+e+Q+e+e;case 6828:case 4268:return j+e+Q+e+e;case 6165:return j+e+Q+"flex-"+e+e;case 5187:return j+e+F(e,/(\w+).+(:[^]+)/,j+"box-$1$2"+Q+"flex-$1$2")+e;case 5443:return j+e+Q+"flex-item-"+F(e,/flex-|-self/,"")+e;case 4675:return j+e+Q+"flex-line-pack"+F(e,/align-content|flex-|-self/,"")+e;case 5548:return j+e+Q+F(e,"shrink","negative")+e;case 5292:return j+e+Q+F(e,"basis","preferred-size")+e;case 6060:return j+"box-"+F(e,"-grow","")+j+e+Q+F(e,"grow","positive")+e;case 4554:return j+F(e,/([^-])(transform)/g,"$1"+j+"$2")+e;case 6187:return F(F(F(e,/(zoom-|grab)/,j+"$1"),/(image-set)/,j+"$1"),e,"")+e;case 5495:case 3959:return F(e,/(image-set\([^]*)/,j+"$1$`$1");case 4968:return F(F(e,/(.+:)(flex-)?(.*)/,j+"box-pack:$3"+Q+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+j+e+e;case 4095:case 3583:case 4068:case 2532:return F(e,/(.+)-inline(.+)/,j+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(te(e)-1-t>6)switch(H(e,t+1)){case 109:if(H(e,t+4)!==45)break;case 102:return F(e,/(.+:)(.+)-([^]+)/,"$1"+j+"$2-$3$1"+rt+(H(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ot(e,"stretch")?eo(F(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(H(e,t+1)!==115)break;case 6444:switch(H(e,te(e)-3-(~ot(e,"!important")&&10))){case 107:return F(e,":",":"+j)+e;case 101:return F(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+j+(H(e,14)===45?"inline-":"")+"box$3$1"+j+"$2$3$1"+Q+"$2box$3")+e}break;case 5936:switch(H(e,t+11)){case 114:return j+e+Q+F(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return j+e+Q+F(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return j+e+Q+F(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return j+e+Q+e+e}return e}var rs=function(t,r,o,n){if(t.length>-1&&!t.return)switch(t.type){case Be:t.return=eo(t.value,t.length);break;case yt:return Ne([Ge(t,{value:F(t.value,"@","@"+j)})],n);case We:if(t.length)return Yt(t.props,function(s){switch(Xt(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ne([Ge(t,{props:[F(s,/:(read-\w+)/,":"+rt+"$1")]})],n);case"::placeholder":return Ne([Ge(t,{props:[F(s,/:(plac\w+)/,":"+j+"input-$1")]}),Ge(t,{props:[F(s,/:(plac\w+)/,":"+rt+"$1")]}),Ge(t,{props:[F(s,/:(plac\w+)/,Q+"input-$1")]})],n)}return""})}},os=[rs],Tt=function(t){var r=t.key;if(r==="css"){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(m){var d=m.getAttribute("data-emotion");d.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=t.stylisPlugins||os,s={},a,c=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(m){for(var d=m.getAttribute("data-emotion").split(" "),f=1;f<d.length;f++)s[d[f]]=!0;c.push(m)});var i,l=[es,ts];{var p,x=[Xr,Jr(function(m){p.insert(m)})],u=Yr(l.concat(n,x)),b=function(d){return Ne(Kr(d),u)};i=function(d,f,g,T){p=g,b(d?d+"{"+f.styles+"}":f.styles),T&&(h.inserted[f.name]=!0)}}var h={key:r,sheet:new Fr({key:r,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:i};return h.sheet.hydrate(c),h};function to(e){for(var t=0,r,o=0,n=e.length;n>=4;++o,n-=4)r=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var ro={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var ns=!1,ss=/[A-Z]|^ms/g,as=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ao=function(t){return t.charCodeAt(1)===45},oo=function(t){return t!=null&&typeof t!="boolean"},Zt=Qr(function(e){return ao(e)?e:e.replace(ss,"-$&").toLowerCase()}),no=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(as,function(o,n,s){return ge={name:n,styles:s,next:ge},n})}return ro[t]!==1&&!ao(t)&&typeof r=="number"&&r!==0?r+"px":r},is="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function at(e,t,r){if(r==null)return"";var o=r;if(o.__emotion_styles!==void 0)return o;switch(typeof r){case"boolean":return"";case"object":{var n=r;if(n.anim===1)return ge={name:n.name,styles:n.styles,next:ge},n.name;var s=r;if(s.styles!==void 0){var a=s.next;if(a!==void 0)for(;a!==void 0;)ge={name:a.name,styles:a.styles,next:ge},a=a.next;var c=s.styles+";";return c}return cs(e,t,r)}case"function":{if(e!==void 0){var i=ge,l=r(e);return ge=i,at(e,t,l)}break}}var p=r;if(t==null)return p;var x=t[p];return x!==void 0?x:p}function cs(e,t,r){var o="";if(Array.isArray(r))for(var n=0;n<r.length;n++)o+=at(e,t,r[n])+";";else for(var s in r){var a=r[s];if(typeof a!="object"){var c=a;t!=null&&t[c]!==void 0?o+=s+"{"+t[c]+"}":oo(c)&&(o+=Zt(s)+":"+no(s,c)+";")}else{if(s==="NO_COMPONENT_SELECTOR"&&ns)throw new Error(is);if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var i=0;i<a.length;i++)oo(a[i])&&(o+=Zt(s)+":"+no(s,a[i])+";");else{var l=at(e,t,a);switch(s){case"animation":case"animationName":{o+=Zt(s)+":"+l+";";break}default:o+=s+"{"+l+"}"}}}}return o}var so=/label:\s*([^\s;{]+)\s*(;|$)/g,ge;function se(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,n="";ge=void 0;var s=e[0];if(s==null||s.raw===void 0)o=!1,n+=at(r,t,s);else{var a=s;n+=a[0]}for(var c=1;c<e.length;c++)if(n+=at(r,t,e[c]),o){var i=s;n+=i[c]}so.lastIndex=0;for(var l="",p;(p=so.exec(n))!==null;)l+="-"+p[1];var x=to(n)+l;return{name:x,styles:n,next:ge}}var ls=!0;function Te(e,t,r){var o="";return r.split(" ").forEach(function(n){e[n]!==void 0?t.push(e[n]+";"):n&&(o+=n+" ")}),o}var Xe=function(t,r,o){var n=t.key+"-"+r.name;(o===!1||ls===!1)&&t.registered[n]===void 0&&(t.registered[n]=r.styles)},Ye=function(t,r,o){Xe(t,r,o);var n=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var s=r;do t.insert(r===s?"."+n:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function io(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function co(e,t,r){var o=[],n=Te(e,o,r);return o.length<2?r:n+t(o)}var Le=function(t){var r=Tt(t);r.sheet.speedy=function(c){this.isSpeedy=c},r.compat=!0;var o=function(){for(var i=arguments.length,l=new Array(i),p=0;p<i;p++)l[p]=arguments[p];var x=se(l,r.registered,void 0);return Ye(r,x,!1),r.key+"-"+x.name},n=function(){for(var i=arguments.length,l=new Array(i),p=0;p<i;p++)l[p]=arguments[p];var x=se(l,r.registered),u="animation-"+x.name;return io(r,{name:x.name,styles:"@keyframes "+u+"{"+x.styles+"}"}),u},s=function(){for(var i=arguments.length,l=new Array(i),p=0;p<i;p++)l[p]=arguments[p];var x=se(l,r.registered);io(r,x)},a=function(){for(var i=arguments.length,l=new Array(i),p=0;p<i;p++)l[p]=arguments[p];return co(r.registered,o,ds(l))};return{css:o,cx:a,injectGlobal:s,keyframes:n,hydrate:function(i){i.forEach(function(l){r.inserted[l]=!0})},flush:function(){r.registered={},r.inserted={},r.sheet.flush()},sheet:r.sheet,cache:r,getRegisteredStyles:Te.bind(null,r.registered),merge:co.bind(null,r.registered,o)}},ds=function e(t){for(var r="",o=0;o<t.length;o++){var n=t[o];if(n!=null){var s=void 0;switch(typeof n){case"boolean":break;case"object":{if(Array.isArray(n))s=e(n);else{s="";for(var a in n)n[a]&&a&&(s&&(s+=" "),s+=a)}break}default:s=n}s&&(r&&(r+=" "),r+=s)}}return r};var xe=Le({key:"css"}),Oa=xe.flush,Wa=xe.hydrate,Ba=xe.cx,Ua=xe.merge,Da=xe.getRegisteredStyles,_a=xe.injectGlobal,Va=xe.keyframes,Ha=xe.css,Ga=xe.sheet,lo=xe.cache;var uo=(function(){function e(){Tr(this,e),Sr(this,"_cacheList",[lo])}return Pr(e,[{key:"add",value:function(r){var o=this.getCache(r.key);return o||(this._cacheList.push(r),r)}},{key:"delete",value:function(r){this._cacheList=this._cacheList.filter(function(o){return o.key!==r.key})}},{key:"hasCache",value:function(r){return this._cacheList.some(function(o){return o.key===r.key})}},{key:"getCache",value:function(r){return this._cacheList.find(function(o){return o.key===r})}},{key:"getCacheList",value:function(){return this._cacheList}}]),e})();var fo=typeof document<"u",er=function(t,r){return"".concat(t,"-").concat(r)},po=function(t,r,o,n){var s=n.hashPriority||"high";Xe(t,r,o);var a=".".concat(er(t.key,r.name)),c=s==="low"?":where(".concat(a,")"):a;if(t.inserted[r.name]===void 0){var i="",l=r;do{var p=t.insert(r===l?c:"",l,t.sheet,!0);!fo&&p!==void 0&&(i+=p),l=l.next}while(l!==void 0);if(!fo&&i.length!==0)return i}};var Je=function(t){return Oe(t)==="object"&&"styles"in t&&"name"in t&&"toString"in t},mo=function e(t){for(var r="",o=0;o<t.length;o++){var n=t[o];if(n!==null){var s=void 0;switch(Oe(n)){case"boolean":break;case"object":{if(Array.isArray(n))s=e(n);else{s="";for(var a in n)n[a]&&a&&(s&&(s+=" "),s+=a)}break}default:s=n}s&&(r&&(r+=" "),r+=s)}}return r},ho=function(t,r,o){var n=[],s=Te(t,n,o);return n.length<2?o:s+r(n)};var us=function(t,r){return function(){for(var o=arguments.length,n=new Array(o),s=0;s<o;s++)n[s]=arguments[s];var a=se(n,t.registered,void 0);return po(t,a,!1,r),er(t.key,a.name)}},fs=function(t,r){return function(){for(var o=arguments.length,n=new Array(o),s=0;s<o;s++)n[s]=arguments[s];var a=n.map(function(c){return Je(c)?r(c):c});return ho(t.registered,r,mo(a))}},Pt=function(t,r){var o=us(t,{hashPriority:r.hashPriority||"high",label:r.label}),n=fs(t,o);return{css:o,cx:n}};var pe=function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return se(r)};var go="acss";var hr=y(z());var xo=y(z()),yo=function(t){return(0,xo.createContext)(t)};var ae=y(z()),jt=y(z());var it=y(z()),Ps=function(t){return t()},$o=it.useInsertionEffect?it.useInsertionEffect:!1,ar=$o||Ps,ir=$o||it.useLayoutEffect;var Mo=!1,Io=ae.createContext(typeof HTMLElement<"u"?Tt({key:"css"}):null),As=Io.Provider;var zt=function(t){return(0,jt.forwardRef)(function(r,o){var n=(0,jt.useContext)(Io);return t(r,n,o)})},Pe=ae.createContext({});var ks=function(t,r){if(typeof r=="function"){var o=r(t);return o}return br({},t,r)},Es=Qt(function(e){return Qt(function(t){return ks(e,t)})}),lr=function(t){var r=ae.useContext(Pe);return t.theme!==r&&(r=Es(r)(t.theme)),ae.createElement(Pe.Provider,{value:r},t.children)};var Ot={}.hasOwnProperty,cr="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Fo=function(t,r){var o={};for(var n in r)Ot.call(r,n)&&(o[n]=r[n]);return o[cr]=t,o},Rs=function(t){var r=t.cache,o=t.serialized,n=t.isStringTag;return Xe(r,o,n),ar(function(){return Ye(r,o,n)}),null},$s=zt(function(e,t,r){var o=e.css;typeof o=="string"&&t.registered[o]!==void 0&&(o=t.registered[o]);var n=e[cr],s=[o],a="";typeof e.className=="string"?a=Te(t.registered,s,e.className):e.className!=null&&(a=e.className+" ");var c=se(s,void 0,ae.useContext(Pe));a+=t.key+"-"+c.name;var i={};for(var l in e)Ot.call(e,l)&&l!=="css"&&l!==cr&&!Mo&&(i[l]=e[l]);return i.className=a,r&&(i.ref=r),ae.createElement(ae.Fragment,null,ae.createElement(Rs,{cache:t,serialized:c,isStringTag:typeof n=="string"}),ae.createElement(n,i))}),No=$s;var Ae=y(z());var Wi=y(Ro()),Lo=function(t,r){var o=arguments;if(r==null||!Ot.call(r,"css"))return Ae.createElement.apply(void 0,o);var n=o.length,s=new Array(n);s[0]=No,s[1]=Fo(t,r);for(var a=2;a<n;a++)s[a]=o[a];return Ae.createElement.apply(null,s)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Lo||(Lo={}));var jo=zt(function(e,t){var r=e.styles,o=se([r],void 0,Ae.useContext(Pe)),n=Ae.useRef();return ir(function(){var s=t.key+"-global",a=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),c=!1,i=document.querySelector('style[data-emotion="'+s+" "+o.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),i!==null&&(c=!0,i.setAttribute("data-emotion",s),a.hydrate([i])),n.current=[a,c],function(){a.flush()}},[t]),ir(function(){var s=n.current,a=s[0],c=s[1];if(c){s[1]=!1;return}if(o.next!==void 0&&Ye(t,o.next,!0),a.tags.length){var i=a.tags[a.tags.length-1].nextElementSibling;a.before=i,a.flush()}t.insert("",o,a,!1)},[t,o.name]),null});var zo=y(z()),Oo=y(_()),Wo=function(t){return function(){for(var r=arguments.length,o=new Array(r),n=0;n<r;n++)o[n]=arguments[n];return(0,zo.memo)(function(s){var a=t();return(0,Oo.jsx)(jo,{styles:se(o,void 0,k(k({},s),{},{theme:a}))})})}};var Bo=function(t){return function(r){var o=t(r);return function(n){var s=o(n),a=s.styles;return a}}};var ke=y(z()),dr=y(_()),Ms=["children","prefix","speedy","getStyleManager","container","nonce","insertionPoint","stylisPlugins","linters"],Uo=function(t){return(0,ke.memo)(function(r){var o=r.children,n=r.prefix,s=r.speedy,a=r.getStyleManager,c=r.container,i=r.nonce,l=r.insertionPoint,p=r.stylisPlugins,x=r.linters,u=Me(r,Ms),b=(0,ke.useContext)(t),h=n??b.sheet.key,m=c??b.sheet.container,d=s??b.sheet.isSpeedy,f=(0,ke.useMemo)(function(){var T=!1,N=Le({speedy:d??T,key:h,container:m,nonce:i,insertionPoint:l,stylisPlugins:p});if(typeof global<"u"){var O=global.__ANTD_STYLE_CACHE_MANAGER_FOR_SSR__;O&&(N.cache=O.add(N.cache))}return N},[h,d,m,i,l,p]);(0,ke.useEffect)(function(){a?.(f)},[f]);var g=(0,dr.jsx)(t.Provider,{value:f,children:o});return Object.keys(u).length||m?(0,dr.jsx)(wr,k(k({linters:x,container:m},u),{},{children:g})):g})};var ct=y(z());var Go=y(z());var Do=function(t){var r=t.css,o=t.token;return{buttonDefaultHover:r({backgroundColor:o.colorBgContainer,border:"1px solid ".concat(o.colorBorder),cursor:"pointer",":hover":{color:o.colorPrimaryHover,borderColor:o.colorPrimaryHover},":active":{color:o.colorPrimaryActive,borderColor:o.colorPrimaryActive}})}};var _o=function(t){return Object.fromEntries(Object.entries(t).map(function(r){var o=ne(r,2),n=o[0],s=o[1];return[n,s.styles]}))};var Qe=function(){var t=Ie.useToken(),r=t.token;return r};var Ho=y(z());var Vo=y(z());var Ee=function(t){return typeof window<"u"?matchMedia&&matchMedia("(prefers-color-scheme: ".concat(t,")")):{matches:!1}};var ur,Wt=(0,Vo.createContext)({appearance:"light",setAppearance:function(){},isDarkMode:!1,themeMode:"light",setThemeMode:function(){},browserPrefers:(ur=Ee("dark"))!==null&&ur!==void 0&&ur.matches?"dark":"light"});var Re=function(){return(0,Ho.useContext)(Wt)};var qo=function(){var t=Qe(),r=Re(),o=r.appearance,n=r.isDarkMode;return(0,Go.useMemo)(function(){return _o(Do({token:t,css:pe,appearance:o,isDarkMode:n}))},[t,o,n])};var Ko=y(z());var Bt=function(){var t=Qe(),r=qo();return(0,Ko.useMemo)(function(){return k(k({},t),{},{stylish:r})},[t,r])};var Xo=function(t){return k(k({},t),{},{mobile:t.xs,tablet:t.md,laptop:t.lg,desktop:t.xxl})};var Yo=y(z()),Jo=function(){var t=Qe(),r={xs:"@media (max-width: ".concat(t.screenXSMax,"px)"),sm:"@media (max-width: ".concat(t.screenSMMax,"px)"),md:"@media (max-width: ".concat(t.screenMDMax,"px)"),lg:"@media (max-width: ".concat(t.screenLGMax,"px)"),xl:"@media (max-width: ".concat(t.screenXLMax,"px)"),xxl:"@media (min-width: ".concat(t.screenXXLMin,"px)")};return(0,Yo.useMemo)(function(){return Xo(r)},[t])},Qo=function(t,r){return Object.entries(t).map(function(o){var n=ne(o,2),s=n[0],a=n[1],c=a;return Je(a)||(c=pe(a)),r[s]?"".concat(r[s]," {").concat(c.styles,"}"):""}).join("")};var Is=["stylish","appearance","isDarkMode","prefixCls","iconPrefixCls"],Fs=["prefixCls","iconPrefixCls"],Zo=function(t){var r=t.hashPriority,o=t.useTheme,n=t.EmotionContext;return function(s,a){var c=a?.__BABEL_FILE_NAME__,i=!!c;return function(l){var p=o(),x=(0,ct.useContext)(n),u=x.cache,b=Pt(u,{hashPriority:a?.hashPriority||r,label:a?.label}),h=b.cx,m=b.css,d=Jo(),f=(0,ct.useMemo)(function(){var g;if(s instanceof Function){var T=p.stylish,N=p.appearance,O=p.isDarkMode,$=p.prefixCls,w=p.iconPrefixCls,Z=Me(p,Is),ee=function(E){return Qo(E,d)};Object.assign(ee,d),g=s({token:Z,stylish:T,appearance:N,isDarkMode:O,prefixCls:$,iconPrefixCls:w,cx:h,css:pe,responsive:ee},l)}else g=s;return Oe(g)==="object"&&(Je(g)?g=m(g):g=Object.fromEntries(Object.entries(g).map(function(ce){var E=ne(ce,2),be=E[0],D=E[1],A=i?"".concat(c,"-").concat(be):void 0;return Oe(D)==="object"?i?[be,m(D,"label:".concat(A))]:[be,m(D)]:[be,D]}))),g},[l,p]);return(0,ct.useMemo)(function(){var g=p.prefixCls,T=p.iconPrefixCls,N=Me(p,Fs);return{styles:f,cx:h,theme:N,prefixCls:g,iconPrefixCls:T}},[f,p])}}};var ut=y(z());var en=y(_()),fr=function(t){if(t.ThemeProvider)return t.ThemeProvider;var r=t.ThemeContext;return function(o){return(0,en.jsx)(r.Provider,{value:o.theme,children:o.children})}};var tn=lr,Ut=Pe;var Ze=y(z());var rn=y(_()),on=(0,Ze.memo)(function(e){var t=e.children,r=e.theme,o=e.prefixCls,n=e.getStaticInstance,s=e.staticInstanceConfig,a=Re(),c=a.appearance,i=a.isDarkMode,l=Ar.useMessage(s?.message),p=ne(l,2),x=p[0],u=p[1],b=Er.useNotification(s?.notification),h=ne(b,2),m=h[0],d=h[1],f=kr.useModal(),g=ne(f,2),T=g[0],N=g[1];(0,Ze.useEffect)(function(){n?.({message:x,modal:T,notification:m})},[]);var O=(0,Ze.useMemo)(function(){var $=i?Ie.darkAlgorithm:Ie.defaultAlgorithm,w=r;if(typeof r=="function"&&(w=r(c)),!w)return{algorithm:$};var Z=w.algorithm?w.algorithm instanceof Array?w.algorithm:[w.algorithm]:[];return k(k({},w),{},{algorithm:w.algorithm?[$].concat(Cr(Z)):$})},[r,i]);return(0,rn.jsxs)(pt,{prefixCls:o,theme:O,children:[u,d,N,t]})});on.displayName="AntdProvider";var nn=on;var je=y(z());var an=y(z());function Ns(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var o,n,s,a,c=[],i=!0,l=!1;try{if(s=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;i=!1}else for(;!(i=(o=s.call(r)).done)&&(c.push(o.value),c.length!==t);i=!0);}catch(p){l=!0,n=p}finally{try{if(!i&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw n}}return c}}function Ls(e,t){return js(e)||Ns(e,t)||zs(e,t)||Os()}function js(e){if(Array.isArray(e))return e}function zs(e,t){if(e){if(typeof e=="string")return sn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sn(e,t)}}function sn(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function Os(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ import{f as $r,h as Mr,j as Ir,l as we,o as ht,t as gt}from"./embed-page-chunk-6ZHR5GWS.js";import{b as Rr,k as Ce}from"./embed-page-chunk-YCTDKWKW.js";import{a as _}from"./embed-page-chunk-QV7QAJ4N.js";import{La as Ar,M as pt,Ma as kr,N as ne,Na as Er,O as Oe,P as Sr,Q as Me,R as k,U as Tr,V as Pr,_a as Ie,b as br,bb as mt,j as Cr,o as wr}from"./embed-page-chunk-F7TA3LRH.js";import{a as z}from"./embed-page-chunk-R5QL57JJ.js";import{c as Kt,f as y}from"./embed-page-chunk-QBTAJ2YI.js";var bo=Kt(W=>{"use strict";var J=typeof Symbol=="function"&&Symbol.for,tr=J?Symbol.for("react.element"):60103,rr=J?Symbol.for("react.portal"):60106,At=J?Symbol.for("react.fragment"):60107,kt=J?Symbol.for("react.strict_mode"):60108,Et=J?Symbol.for("react.profiler"):60114,Rt=J?Symbol.for("react.provider"):60109,$t=J?Symbol.for("react.context"):60110,or=J?Symbol.for("react.async_mode"):60111,Mt=J?Symbol.for("react.concurrent_mode"):60111,It=J?Symbol.for("react.forward_ref"):60112,Ft=J?Symbol.for("react.suspense"):60113,ps=J?Symbol.for("react.suspense_list"):60120,Nt=J?Symbol.for("react.memo"):60115,Lt=J?Symbol.for("react.lazy"):60116,ms=J?Symbol.for("react.block"):60121,hs=J?Symbol.for("react.fundamental"):60117,gs=J?Symbol.for("react.responder"):60118,xs=J?Symbol.for("react.scope"):60119;function ie(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case tr:switch(e=e.type,e){case or:case Mt:case At:case Et:case kt:case Ft:return e;default:switch(e=e&&e.$$typeof,e){case $t:case It:case Lt:case Nt:case Rt:return e;default:return t}}case rr:return t}}}function vo(e){return ie(e)===Mt}W.AsyncMode=or;W.ConcurrentMode=Mt;W.ContextConsumer=$t;W.ContextProvider=Rt;W.Element=tr;W.ForwardRef=It;W.Fragment=At;W.Lazy=Lt;W.Memo=Nt;W.Portal=rr;W.Profiler=Et;W.StrictMode=kt;W.Suspense=Ft;W.isAsyncMode=function(e){return vo(e)||ie(e)===or};W.isConcurrentMode=vo;W.isContextConsumer=function(e){return ie(e)===$t};W.isContextProvider=function(e){return ie(e)===Rt};W.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===tr};W.isForwardRef=function(e){return ie(e)===It};W.isFragment=function(e){return ie(e)===At};W.isLazy=function(e){return ie(e)===Lt};W.isMemo=function(e){return ie(e)===Nt};W.isPortal=function(e){return ie(e)===rr};W.isProfiler=function(e){return ie(e)===Et};W.isStrictMode=function(e){return ie(e)===kt};W.isSuspense=function(e){return ie(e)===Ft};W.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===At||e===Mt||e===Et||e===kt||e===Ft||e===ps||typeof e=="object"&&e!==null&&(e.$$typeof===Lt||e.$$typeof===Nt||e.$$typeof===Rt||e.$$typeof===$t||e.$$typeof===It||e.$$typeof===hs||e.$$typeof===gs||e.$$typeof===xs||e.$$typeof===ms)};W.typeOf=ie});var wo=Kt((vi,Co)=>{"use strict";Co.exports=bo()});var Ro=Kt((bi,Eo)=>{"use strict";var nr=wo(),ys={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},vs={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},bs={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ao={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},sr={};sr[nr.ForwardRef]=bs;sr[nr.Memo]=Ao;function So(e){return nr.isMemo(e)?Ao:sr[e.$$typeof]||ys}var Cs=Object.defineProperty,ws=Object.getOwnPropertyNames,To=Object.getOwnPropertySymbols,Ss=Object.getOwnPropertyDescriptor,Ts=Object.getPrototypeOf,Po=Object.prototype;function ko(e,t,r){if(typeof t!="string"){if(Po){var o=Ts(t);o&&o!==Po&&ko(e,o,r)}var n=ws(t);To&&(n=n.concat(To(t)));for(var s=So(e),a=So(t),c=0;c<n.length;++c){var i=n[c];if(!vs[i]&&!(r&&r[i])&&!(a&&a[i])&&!(s&&s[i])){var l=Ss(t,i);try{Cs(e,i,l)}catch{}}}}return e}Eo.exports=ko});var qn=!1;function Kn(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Xn(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Fr=(function(){function e(r){var o=this;this._insertTag=function(n){var s;o.tags.length===0?o.insertionPoint?s=o.insertionPoint.nextSibling:o.prepend?s=o.container.firstChild:s=o.before:s=o.tags[o.tags.length-1].nextSibling,o.container.insertBefore(n,s),o.tags.push(n)},this.isSpeedy=r.speedy===void 0?!qn:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(o){o.forEach(this._insertTag)},t.insert=function(o){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Xn(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var s=Kn(n);try{s.insertRule(o,s.cssRules.length)}catch{}}else n.appendChild(document.createTextNode(o));this.ctr++},t.flush=function(){this.tags.forEach(function(o){var n;return(n=o.parentNode)==null?void 0:n.removeChild(o)}),this.tags=[],this.ctr=0},e})();var Q="-ms-",rt="-moz-",j="-webkit-",xt="comm",We="rule",Be="decl";var Nr="@import";var yt="@keyframes";var Lr="@layer";var jr=Math.abs,Fe=String.fromCharCode,zr=Object.assign;function Or(e,t){return H(e,0)^45?(((t<<2^H(e,0))<<2^H(e,1))<<2^H(e,2))<<2^H(e,3):0}function vt(e){return e.trim()}function Xt(e,t){return(e=t.exec(e))?e[0]:e}function F(e,t,r){return e.replace(t,r)}function ot(e,t){return e.indexOf(t)}function H(e,t){return e.charCodeAt(t)|0}function Se(e,t,r){return e.slice(t,r)}function te(e){return e.length}function Ue(e){return e.length}function De(e,t){return t.push(e),e}function Yt(e,t){return e.map(t).join("")}var bt=1,_e=1,Wr=0,re=0,K=0,He="";function nt(e,t,r,o,n,s,a){return{value:e,root:t,parent:r,type:o,props:n,children:s,line:bt,column:_e,length:a,return:""}}function Ge(e,t){return zr(nt("",null,null,"",null,null,0),e,{length:-e.length},t)}function Br(){return K}function Ur(){return K=re>0?H(He,--re):0,_e--,K===10&&(_e=1,bt--),K}function oe(){return K=re<Wr?H(He,re++):0,_e++,K===10&&(_e=1,bt++),K}function de(){return H(He,re)}function st(){return re}function qe(e,t){return Se(He,e,t)}function Ve(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ct(e){return bt=_e=1,Wr=te(He=e),re=0,[]}function wt(e){return He="",e}function Ke(e){return vt(qe(re-1,Jt(e===91?e+2:e===40?e+1:e)))}function Dr(e){for(;(K=de())&&K<33;)oe();return Ve(e)>2||Ve(K)>3?"":" "}function _r(e,t){for(;--t&&oe()&&!(K<48||K>102||K>57&&K<65||K>70&&K<97););return qe(e,st()+(t<6&&de()==32&&oe()==32))}function Jt(e){for(;oe();)switch(K){case e:return re;case 34:case 39:e!==34&&e!==39&&Jt(K);break;case 40:e===41&&Jt(e);break;case 92:oe();break}return re}function Vr(e,t){for(;oe()&&e+K!==57;)if(e+K===84&&de()===47)break;return"/*"+qe(t,re-1)+"*"+Fe(e===47?e:oe())}function Hr(e){for(;!Ve(de());)oe();return qe(e,re)}function Kr(e){return wt(St("",null,null,null,[""],e=Ct(e),0,[0],e))}function St(e,t,r,o,n,s,a,c,i){for(var l=0,p=0,x=a,u=0,b=0,h=0,m=1,d=1,f=1,g=0,T="",N=n,O=s,$=o,w=T;d;)switch(h=g,g=oe()){case 40:if(h!=108&&H(w,x-1)==58){ot(w+=F(Ke(g),"&","&\f"),"&\f")!=-1&&(f=-1);break}case 34:case 39:case 91:w+=Ke(g);break;case 9:case 10:case 13:case 32:w+=Dr(h);break;case 92:w+=_r(st()-1,7);continue;case 47:switch(de()){case 42:case 47:De(Yn(Vr(oe(),st()),t,r),i);break;default:w+="/"}break;case 123*m:c[l++]=te(w)*f;case 125*m:case 59:case 0:switch(g){case 0:case 125:d=0;case 59+p:f==-1&&(w=F(w,/\f/g,"")),b>0&&te(w)-x&&De(b>32?qr(w+";",o,r,x-1):qr(F(w," ","")+";",o,r,x-2),i);break;case 59:w+=";";default:if(De($=Gr(w,t,r,l,p,n,c,T,N=[],O=[],x),s),g===123)if(p===0)St(w,t,$,$,N,s,x,c,O);else switch(u===99&&H(w,3)===110?100:u){case 100:case 108:case 109:case 115:St(e,$,$,o&&De(Gr(e,$,$,0,0,n,c,T,n,N=[],x),O),n,O,x,c,o?N:O);break;default:St(w,$,$,$,[""],O,0,c,O)}}l=p=b=0,m=f=1,T=w="",x=a;break;case 58:x=1+te(w),b=h;default:if(m<1){if(g==123)--m;else if(g==125&&m++==0&&Ur()==125)continue}switch(w+=Fe(g),g*m){case 38:f=p>0?1:(w+="\f",-1);break;case 44:c[l++]=(te(w)-1)*f,f=1;break;case 64:de()===45&&(w+=Ke(oe())),u=de(),p=x=te(T=w+=Hr(st())),g++;break;case 45:h===45&&te(w)==2&&(m=0)}}return s}function Gr(e,t,r,o,n,s,a,c,i,l,p){for(var x=n-1,u=n===0?s:[""],b=Ue(u),h=0,m=0,d=0;h<o;++h)for(var f=0,g=Se(e,x+1,x=jr(m=a[h])),T=e;f<b;++f)(T=vt(m>0?u[f]+" "+g:F(g,/&\f/g,u[f])))&&(i[d++]=T);return nt(e,t,r,n===0?We:c,i,l,p)}function Yn(e,t,r){return nt(e,t,r,xt,Fe(Br()),Se(e,2,-2),0)}function qr(e,t,r,o){return nt(e,t,r,Be,Se(e,0,o),Se(e,o+1,-1),o)}function Ne(e,t){for(var r="",o=Ue(e),n=0;n<o;n++)r+=t(e[n],n,e,t)||"";return r}function Xr(e,t,r,o){switch(e.type){case Lr:if(e.children.length)break;case Nr:case Be:return e.return=e.return||e.value;case xt:return"";case yt:return e.return=e.value+"{"+Ne(e.children,o)+"}";case We:e.value=e.props.join(",")}return te(r=Ne(e.children,o))?e.return=e.value+"{"+r+"}":""}function Yr(e){var t=Ue(e);return function(r,o,n,s){for(var a="",c=0;c<t;c++)a+=e[c](r,o,n,s)||"";return a}}function Jr(e){return function(t){t.root||(t=t.return)&&e(t)}}var Qt=function(t){var r=new WeakMap;return function(o){if(r.has(o))return r.get(o);var n=t(o);return r.set(o,n),n}};function Qr(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Jn=function(t,r,o){for(var n=0,s=0;n=s,s=de(),n===38&&s===12&&(r[o]=1),!Ve(s);)oe();return qe(t,re)},Qn=function(t,r){var o=-1,n=44;do switch(Ve(n)){case 0:n===38&&de()===12&&(r[o]=1),t[o]+=Jn(re-1,r,o);break;case 2:t[o]+=Ke(n);break;case 4:if(n===44){t[++o]=de()===58?"&\f":"",r[o]=t[o].length;break}default:t[o]+=Fe(n)}while(n=oe());return t},Zn=function(t,r){return wt(Qn(Ct(t),r))},Zr=new WeakMap,es=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,o=t.parent,n=t.column===o.column&&t.line===o.line;o.type!=="rule";)if(o=o.parent,!o)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Zr.get(o))&&!n){Zr.set(t,!0);for(var s=[],a=Zn(r,s),c=o.props,i=0,l=0;i<a.length;i++)for(var p=0;p<c.length;p++,l++)t.props[l]=s[i]?a[i].replace(/&\f/g,c[p]):c[p]+" "+a[i]}}},ts=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function eo(e,t){switch(Or(e,t)){case 5103:return j+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return j+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return j+e+rt+e+Q+e+e;case 6828:case 4268:return j+e+Q+e+e;case 6165:return j+e+Q+"flex-"+e+e;case 5187:return j+e+F(e,/(\w+).+(:[^]+)/,j+"box-$1$2"+Q+"flex-$1$2")+e;case 5443:return j+e+Q+"flex-item-"+F(e,/flex-|-self/,"")+e;case 4675:return j+e+Q+"flex-line-pack"+F(e,/align-content|flex-|-self/,"")+e;case 5548:return j+e+Q+F(e,"shrink","negative")+e;case 5292:return j+e+Q+F(e,"basis","preferred-size")+e;case 6060:return j+"box-"+F(e,"-grow","")+j+e+Q+F(e,"grow","positive")+e;case 4554:return j+F(e,/([^-])(transform)/g,"$1"+j+"$2")+e;case 6187:return F(F(F(e,/(zoom-|grab)/,j+"$1"),/(image-set)/,j+"$1"),e,"")+e;case 5495:case 3959:return F(e,/(image-set\([^]*)/,j+"$1$`$1");case 4968:return F(F(e,/(.+:)(flex-)?(.*)/,j+"box-pack:$3"+Q+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+j+e+e;case 4095:case 3583:case 4068:case 2532:return F(e,/(.+)-inline(.+)/,j+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(te(e)-1-t>6)switch(H(e,t+1)){case 109:if(H(e,t+4)!==45)break;case 102:return F(e,/(.+:)(.+)-([^]+)/,"$1"+j+"$2-$3$1"+rt+(H(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ot(e,"stretch")?eo(F(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(H(e,t+1)!==115)break;case 6444:switch(H(e,te(e)-3-(~ot(e,"!important")&&10))){case 107:return F(e,":",":"+j)+e;case 101:return F(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+j+(H(e,14)===45?"inline-":"")+"box$3$1"+j+"$2$3$1"+Q+"$2box$3")+e}break;case 5936:switch(H(e,t+11)){case 114:return j+e+Q+F(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return j+e+Q+F(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return j+e+Q+F(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return j+e+Q+e+e}return e}var rs=function(t,r,o,n){if(t.length>-1&&!t.return)switch(t.type){case Be:t.return=eo(t.value,t.length);break;case yt:return Ne([Ge(t,{value:F(t.value,"@","@"+j)})],n);case We:if(t.length)return Yt(t.props,function(s){switch(Xt(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ne([Ge(t,{props:[F(s,/:(read-\w+)/,":"+rt+"$1")]})],n);case"::placeholder":return Ne([Ge(t,{props:[F(s,/:(plac\w+)/,":"+j+"input-$1")]}),Ge(t,{props:[F(s,/:(plac\w+)/,":"+rt+"$1")]}),Ge(t,{props:[F(s,/:(plac\w+)/,Q+"input-$1")]})],n)}return""})}},os=[rs],Tt=function(t){var r=t.key;if(r==="css"){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(m){var d=m.getAttribute("data-emotion");d.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=t.stylisPlugins||os,s={},a,c=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(m){for(var d=m.getAttribute("data-emotion").split(" "),f=1;f<d.length;f++)s[d[f]]=!0;c.push(m)});var i,l=[es,ts];{var p,x=[Xr,Jr(function(m){p.insert(m)})],u=Yr(l.concat(n,x)),b=function(d){return Ne(Kr(d),u)};i=function(d,f,g,T){p=g,b(d?d+"{"+f.styles+"}":f.styles),T&&(h.inserted[f.name]=!0)}}var h={key:r,sheet:new Fr({key:r,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:i};return h.sheet.hydrate(c),h};function to(e){for(var t=0,r,o=0,n=e.length;n>=4;++o,n-=4)r=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var ro={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var ns=!1,ss=/[A-Z]|^ms/g,as=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ao=function(t){return t.charCodeAt(1)===45},oo=function(t){return t!=null&&typeof t!="boolean"},Zt=Qr(function(e){return ao(e)?e:e.replace(ss,"-$&").toLowerCase()}),no=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(as,function(o,n,s){return ge={name:n,styles:s,next:ge},n})}return ro[t]!==1&&!ao(t)&&typeof r=="number"&&r!==0?r+"px":r},is="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function at(e,t,r){if(r==null)return"";var o=r;if(o.__emotion_styles!==void 0)return o;switch(typeof r){case"boolean":return"";case"object":{var n=r;if(n.anim===1)return ge={name:n.name,styles:n.styles,next:ge},n.name;var s=r;if(s.styles!==void 0){var a=s.next;if(a!==void 0)for(;a!==void 0;)ge={name:a.name,styles:a.styles,next:ge},a=a.next;var c=s.styles+";";return c}return cs(e,t,r)}case"function":{if(e!==void 0){var i=ge,l=r(e);return ge=i,at(e,t,l)}break}}var p=r;if(t==null)return p;var x=t[p];return x!==void 0?x:p}function cs(e,t,r){var o="";if(Array.isArray(r))for(var n=0;n<r.length;n++)o+=at(e,t,r[n])+";";else for(var s in r){var a=r[s];if(typeof a!="object"){var c=a;t!=null&&t[c]!==void 0?o+=s+"{"+t[c]+"}":oo(c)&&(o+=Zt(s)+":"+no(s,c)+";")}else{if(s==="NO_COMPONENT_SELECTOR"&&ns)throw new Error(is);if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var i=0;i<a.length;i++)oo(a[i])&&(o+=Zt(s)+":"+no(s,a[i])+";");else{var l=at(e,t,a);switch(s){case"animation":case"animationName":{o+=Zt(s)+":"+l+";";break}default:o+=s+"{"+l+"}"}}}}return o}var so=/label:\s*([^\s;{]+)\s*(;|$)/g,ge;function se(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,n="";ge=void 0;var s=e[0];if(s==null||s.raw===void 0)o=!1,n+=at(r,t,s);else{var a=s;n+=a[0]}for(var c=1;c<e.length;c++)if(n+=at(r,t,e[c]),o){var i=s;n+=i[c]}so.lastIndex=0;for(var l="",p;(p=so.exec(n))!==null;)l+="-"+p[1];var x=to(n)+l;return{name:x,styles:n,next:ge}}var ls=!0;function Te(e,t,r){var o="";return r.split(" ").forEach(function(n){e[n]!==void 0?t.push(e[n]+";"):n&&(o+=n+" ")}),o}var Xe=function(t,r,o){var n=t.key+"-"+r.name;(o===!1||ls===!1)&&t.registered[n]===void 0&&(t.registered[n]=r.styles)},Ye=function(t,r,o){Xe(t,r,o);var n=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var s=r;do t.insert(r===s?"."+n:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function io(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function co(e,t,r){var o=[],n=Te(e,o,r);return o.length<2?r:n+t(o)}var Le=function(t){var r=Tt(t);r.sheet.speedy=function(c){this.isSpeedy=c},r.compat=!0;var o=function(){for(var i=arguments.length,l=new Array(i),p=0;p<i;p++)l[p]=arguments[p];var x=se(l,r.registered,void 0);return Ye(r,x,!1),r.key+"-"+x.name},n=function(){for(var i=arguments.length,l=new Array(i),p=0;p<i;p++)l[p]=arguments[p];var x=se(l,r.registered),u="animation-"+x.name;return io(r,{name:x.name,styles:"@keyframes "+u+"{"+x.styles+"}"}),u},s=function(){for(var i=arguments.length,l=new Array(i),p=0;p<i;p++)l[p]=arguments[p];var x=se(l,r.registered);io(r,x)},a=function(){for(var i=arguments.length,l=new Array(i),p=0;p<i;p++)l[p]=arguments[p];return co(r.registered,o,ds(l))};return{css:o,cx:a,injectGlobal:s,keyframes:n,hydrate:function(i){i.forEach(function(l){r.inserted[l]=!0})},flush:function(){r.registered={},r.inserted={},r.sheet.flush()},sheet:r.sheet,cache:r,getRegisteredStyles:Te.bind(null,r.registered),merge:co.bind(null,r.registered,o)}},ds=function e(t){for(var r="",o=0;o<t.length;o++){var n=t[o];if(n!=null){var s=void 0;switch(typeof n){case"boolean":break;case"object":{if(Array.isArray(n))s=e(n);else{s="";for(var a in n)n[a]&&a&&(s&&(s+=" "),s+=a)}break}default:s=n}s&&(r&&(r+=" "),r+=s)}}return r};var xe=Le({key:"css"}),Oa=xe.flush,Wa=xe.hydrate,Ba=xe.cx,Ua=xe.merge,Da=xe.getRegisteredStyles,_a=xe.injectGlobal,Va=xe.keyframes,Ha=xe.css,Ga=xe.sheet,lo=xe.cache;var uo=(function(){function e(){Tr(this,e),Sr(this,"_cacheList",[lo])}return Pr(e,[{key:"add",value:function(r){var o=this.getCache(r.key);return o||(this._cacheList.push(r),r)}},{key:"delete",value:function(r){this._cacheList=this._cacheList.filter(function(o){return o.key!==r.key})}},{key:"hasCache",value:function(r){return this._cacheList.some(function(o){return o.key===r.key})}},{key:"getCache",value:function(r){return this._cacheList.find(function(o){return o.key===r})}},{key:"getCacheList",value:function(){return this._cacheList}}]),e})();var fo=typeof document<"u",er=function(t,r){return"".concat(t,"-").concat(r)},po=function(t,r,o,n){var s=n.hashPriority||"high";Xe(t,r,o);var a=".".concat(er(t.key,r.name)),c=s==="low"?":where(".concat(a,")"):a;if(t.inserted[r.name]===void 0){var i="",l=r;do{var p=t.insert(r===l?c:"",l,t.sheet,!0);!fo&&p!==void 0&&(i+=p),l=l.next}while(l!==void 0);if(!fo&&i.length!==0)return i}};var Je=function(t){return Oe(t)==="object"&&"styles"in t&&"name"in t&&"toString"in t},mo=function e(t){for(var r="",o=0;o<t.length;o++){var n=t[o];if(n!==null){var s=void 0;switch(Oe(n)){case"boolean":break;case"object":{if(Array.isArray(n))s=e(n);else{s="";for(var a in n)n[a]&&a&&(s&&(s+=" "),s+=a)}break}default:s=n}s&&(r&&(r+=" "),r+=s)}}return r},ho=function(t,r,o){var n=[],s=Te(t,n,o);return n.length<2?o:s+r(n)};var us=function(t,r){return function(){for(var o=arguments.length,n=new Array(o),s=0;s<o;s++)n[s]=arguments[s];var a=se(n,t.registered,void 0);return po(t,a,!1,r),er(t.key,a.name)}},fs=function(t,r){return function(){for(var o=arguments.length,n=new Array(o),s=0;s<o;s++)n[s]=arguments[s];var a=n.map(function(c){return Je(c)?r(c):c});return ho(t.registered,r,mo(a))}},Pt=function(t,r){var o=us(t,{hashPriority:r.hashPriority||"high",label:r.label}),n=fs(t,o);return{css:o,cx:n}};var pe=function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return se(r)};var go="acss";var hr=y(z());var xo=y(z()),yo=function(t){return(0,xo.createContext)(t)};var ae=y(z()),jt=y(z());var it=y(z()),Ps=function(t){return t()},$o=it.useInsertionEffect?it.useInsertionEffect:!1,ar=$o||Ps,ir=$o||it.useLayoutEffect;var Mo=!1,Io=ae.createContext(typeof HTMLElement<"u"?Tt({key:"css"}):null),As=Io.Provider;var zt=function(t){return(0,jt.forwardRef)(function(r,o){var n=(0,jt.useContext)(Io);return t(r,n,o)})},Pe=ae.createContext({});var ks=function(t,r){if(typeof r=="function"){var o=r(t);return o}return br({},t,r)},Es=Qt(function(e){return Qt(function(t){return ks(e,t)})}),lr=function(t){var r=ae.useContext(Pe);return t.theme!==r&&(r=Es(r)(t.theme)),ae.createElement(Pe.Provider,{value:r},t.children)};var Ot={}.hasOwnProperty,cr="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Fo=function(t,r){var o={};for(var n in r)Ot.call(r,n)&&(o[n]=r[n]);return o[cr]=t,o},Rs=function(t){var r=t.cache,o=t.serialized,n=t.isStringTag;return Xe(r,o,n),ar(function(){return Ye(r,o,n)}),null},$s=zt(function(e,t,r){var o=e.css;typeof o=="string"&&t.registered[o]!==void 0&&(o=t.registered[o]);var n=e[cr],s=[o],a="";typeof e.className=="string"?a=Te(t.registered,s,e.className):e.className!=null&&(a=e.className+" ");var c=se(s,void 0,ae.useContext(Pe));a+=t.key+"-"+c.name;var i={};for(var l in e)Ot.call(e,l)&&l!=="css"&&l!==cr&&!Mo&&(i[l]=e[l]);return i.className=a,r&&(i.ref=r),ae.createElement(ae.Fragment,null,ae.createElement(Rs,{cache:t,serialized:c,isStringTag:typeof n=="string"}),ae.createElement(n,i))}),No=$s;var Ae=y(z());var Wi=y(Ro()),Lo=function(t,r){var o=arguments;if(r==null||!Ot.call(r,"css"))return Ae.createElement.apply(void 0,o);var n=o.length,s=new Array(n);s[0]=No,s[1]=Fo(t,r);for(var a=2;a<n;a++)s[a]=o[a];return Ae.createElement.apply(null,s)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Lo||(Lo={}));var jo=zt(function(e,t){var r=e.styles,o=se([r],void 0,Ae.useContext(Pe)),n=Ae.useRef();return ir(function(){var s=t.key+"-global",a=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),c=!1,i=document.querySelector('style[data-emotion="'+s+" "+o.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),i!==null&&(c=!0,i.setAttribute("data-emotion",s),a.hydrate([i])),n.current=[a,c],function(){a.flush()}},[t]),ir(function(){var s=n.current,a=s[0],c=s[1];if(c){s[1]=!1;return}if(o.next!==void 0&&Ye(t,o.next,!0),a.tags.length){var i=a.tags[a.tags.length-1].nextElementSibling;a.before=i,a.flush()}t.insert("",o,a,!1)},[t,o.name]),null});var zo=y(z()),Oo=y(_()),Wo=function(t){return function(){for(var r=arguments.length,o=new Array(r),n=0;n<r;n++)o[n]=arguments[n];return(0,zo.memo)(function(s){var a=t();return(0,Oo.jsx)(jo,{styles:se(o,void 0,k(k({},s),{},{theme:a}))})})}};var Bo=function(t){return function(r){var o=t(r);return function(n){var s=o(n),a=s.styles;return a}}};var ke=y(z()),dr=y(_()),Ms=["children","prefix","speedy","getStyleManager","container","nonce","insertionPoint","stylisPlugins","linters"],Uo=function(t){return(0,ke.memo)(function(r){var o=r.children,n=r.prefix,s=r.speedy,a=r.getStyleManager,c=r.container,i=r.nonce,l=r.insertionPoint,p=r.stylisPlugins,x=r.linters,u=Me(r,Ms),b=(0,ke.useContext)(t),h=n??b.sheet.key,m=c??b.sheet.container,d=s??b.sheet.isSpeedy,f=(0,ke.useMemo)(function(){var T=!1,N=Le({speedy:d??T,key:h,container:m,nonce:i,insertionPoint:l,stylisPlugins:p});if(typeof global<"u"){var O=global.__ANTD_STYLE_CACHE_MANAGER_FOR_SSR__;O&&(N.cache=O.add(N.cache))}return N},[h,d,m,i,l,p]);(0,ke.useEffect)(function(){a?.(f)},[f]);var g=(0,dr.jsx)(t.Provider,{value:f,children:o});return Object.keys(u).length||m?(0,dr.jsx)(wr,k(k({linters:x,container:m},u),{},{children:g})):g})};var ct=y(z());var Go=y(z());var Do=function(t){var r=t.css,o=t.token;return{buttonDefaultHover:r({backgroundColor:o.colorBgContainer,border:"1px solid ".concat(o.colorBorder),cursor:"pointer",":hover":{color:o.colorPrimaryHover,borderColor:o.colorPrimaryHover},":active":{color:o.colorPrimaryActive,borderColor:o.colorPrimaryActive}})}};var _o=function(t){return Object.fromEntries(Object.entries(t).map(function(r){var o=ne(r,2),n=o[0],s=o[1];return[n,s.styles]}))};var Qe=function(){var t=Ie.useToken(),r=t.token;return r};var Ho=y(z());var Vo=y(z());var Ee=function(t){return typeof window<"u"?matchMedia&&matchMedia("(prefers-color-scheme: ".concat(t,")")):{matches:!1}};var ur,Wt=(0,Vo.createContext)({appearance:"light",setAppearance:function(){},isDarkMode:!1,themeMode:"light",setThemeMode:function(){},browserPrefers:(ur=Ee("dark"))!==null&&ur!==void 0&&ur.matches?"dark":"light"});var Re=function(){return(0,Ho.useContext)(Wt)};var qo=function(){var t=Qe(),r=Re(),o=r.appearance,n=r.isDarkMode;return(0,Go.useMemo)(function(){return _o(Do({token:t,css:pe,appearance:o,isDarkMode:n}))},[t,o,n])};var Ko=y(z());var Bt=function(){var t=Qe(),r=qo();return(0,Ko.useMemo)(function(){return k(k({},t),{},{stylish:r})},[t,r])};var Xo=function(t){return k(k({},t),{},{mobile:t.xs,tablet:t.md,laptop:t.lg,desktop:t.xxl})};var Yo=y(z()),Jo=function(){var t=Qe(),r={xs:"@media (max-width: ".concat(t.screenXSMax,"px)"),sm:"@media (max-width: ".concat(t.screenSMMax,"px)"),md:"@media (max-width: ".concat(t.screenMDMax,"px)"),lg:"@media (max-width: ".concat(t.screenLGMax,"px)"),xl:"@media (max-width: ".concat(t.screenXLMax,"px)"),xxl:"@media (min-width: ".concat(t.screenXXLMin,"px)")};return(0,Yo.useMemo)(function(){return Xo(r)},[t])},Qo=function(t,r){return Object.entries(t).map(function(o){var n=ne(o,2),s=n[0],a=n[1],c=a;return Je(a)||(c=pe(a)),r[s]?"".concat(r[s]," {").concat(c.styles,"}"):""}).join("")};var Is=["stylish","appearance","isDarkMode","prefixCls","iconPrefixCls"],Fs=["prefixCls","iconPrefixCls"],Zo=function(t){var r=t.hashPriority,o=t.useTheme,n=t.EmotionContext;return function(s,a){var c=a?.__BABEL_FILE_NAME__,i=!!c;return function(l){var p=o(),x=(0,ct.useContext)(n),u=x.cache,b=Pt(u,{hashPriority:a?.hashPriority||r,label:a?.label}),h=b.cx,m=b.css,d=Jo(),f=(0,ct.useMemo)(function(){var g;if(s instanceof Function){var T=p.stylish,N=p.appearance,O=p.isDarkMode,$=p.prefixCls,w=p.iconPrefixCls,Z=Me(p,Is),ee=function(E){return Qo(E,d)};Object.assign(ee,d),g=s({token:Z,stylish:T,appearance:N,isDarkMode:O,prefixCls:$,iconPrefixCls:w,cx:h,css:pe,responsive:ee},l)}else g=s;return Oe(g)==="object"&&(Je(g)?g=m(g):g=Object.fromEntries(Object.entries(g).map(function(ce){var E=ne(ce,2),be=E[0],D=E[1],A=i?"".concat(c,"-").concat(be):void 0;return Oe(D)==="object"?i?[be,m(D,"label:".concat(A))]:[be,m(D)]:[be,D]}))),g},[l,p]);return(0,ct.useMemo)(function(){var g=p.prefixCls,T=p.iconPrefixCls,N=Me(p,Fs);return{styles:f,cx:h,theme:N,prefixCls:g,iconPrefixCls:T}},[f,p])}}};var ut=y(z());var en=y(_()),fr=function(t){if(t.ThemeProvider)return t.ThemeProvider;var r=t.ThemeContext;return function(o){return(0,en.jsx)(r.Provider,{value:o.theme,children:o.children})}};var tn=lr,Ut=Pe;var Ze=y(z());var rn=y(_()),on=(0,Ze.memo)(function(e){var t=e.children,r=e.theme,o=e.prefixCls,n=e.getStaticInstance,s=e.staticInstanceConfig,a=Re(),c=a.appearance,i=a.isDarkMode,l=Ar.useMessage(s?.message),p=ne(l,2),x=p[0],u=p[1],b=Er.useNotification(s?.notification),h=ne(b,2),m=h[0],d=h[1],f=kr.useModal(),g=ne(f,2),T=g[0],N=g[1];(0,Ze.useEffect)(function(){n?.({message:x,modal:T,notification:m})},[]);var O=(0,Ze.useMemo)(function(){var $=i?Ie.darkAlgorithm:Ie.defaultAlgorithm,w=r;if(typeof r=="function"&&(w=r(c)),!w)return{algorithm:$};var Z=w.algorithm?w.algorithm instanceof Array?w.algorithm:[w.algorithm]:[];return k(k({},w),{},{algorithm:w.algorithm?[$].concat(Cr(Z)):$})},[r,i]);return(0,rn.jsxs)(pt,{prefixCls:o,theme:O,children:[u,d,N,t]})});on.displayName="AntdProvider";var nn=on;var je=y(z());var an=y(z());function Ns(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var o,n,s,a,c=[],i=!0,l=!1;try{if(s=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;i=!1}else for(;!(i=(o=s.call(r)).done)&&(c.push(o.value),c.length!==t);i=!0);}catch(p){l=!0,n=p}finally{try{if(!i&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw n}}return c}}function Ls(e,t){return js(e)||Ns(e,t)||zs(e,t)||Os()}function js(e){if(Array.isArray(e))return e}function zs(e,t){if(e){if(typeof e=="string")return sn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sn(e,t)}}function sn(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function Os(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ws(e,t){var r=t||{},o=r.defaultValue,n=r.value,s=r.onChange,a=r.postState,c=an.default.useState(function(){return n!==void 0?n:o!==void 0?typeof o=="function"?o():o:typeof e=="function"?e():e}),i=Ls(c,2),l=i[0],p=i[1],x=n!==void 0?n:l;a&&(x=a(x));function u(b){p(b),x!==b&&s&&s(b,x)}return[x,u]}var pr=Ws;var mr=y(z()),Dt=function(t){typeof mr.startTransition=="function"?(0,mr.startTransition)(t):t()};var cn=y(_()),ln=y(_()),$e,Bs=function(t){var r=t.themeMode,o=t.setAppearance,n=t.setBrowserPrefers,s=function(){Dt(function(){Ee("dark").matches?o("dark"):o("light")})},a=function(){Dt(function(){Ee("dark").matches?n("dark"):n("light")})};return(0,je.useLayoutEffect)(function(){if(r!=="auto"){Dt(function(){o(r)});return}return setTimeout(s,1),$e||($e=Ee("dark")),$e.addEventListener("change",s),function(){$e.removeEventListener("change",s)}},[r]),(0,je.useLayoutEffect)(function(){return $e||($e=Ee("dark")),$e.addEventListener("change",a),function(){$e.removeEventListener("change",a)}},[]),null},dn=(0,je.memo)(function(e){var t,r=e.children,o=e.appearance,n=e.defaultAppearance,s=e.onAppearanceChange,a=e.themeMode,c=e.defaultThemeMode,i=e.onThemeModeChange,l=e.useTheme,p=l(),x=p.appearance,u=p.themeMode,b=pr("light",{value:a,defaultValue:c??u,onChange:function(ce){return i?.(ce)}}),h=ne(b,2),m=h[0],d=h[1],f=pr("light",{value:o,defaultValue:n??x,onChange:function(ce){return s?.(ce)}}),g=ne(f,2),T=g[0],N=g[1],O=(0,je.useState)((t=Ee("dark"))!==null&&t!==void 0&&t.matches?"dark":"light"),$=ne(O,2),w=$[0],Z=$[1];return(0,ln.jsxs)(Wt.Provider,{value:{themeMode:m,setThemeMode:d,appearance:T,setAppearance:N,isDarkMode:T==="dark",browserPrefers:w},children:[typeof window<"u"&&(0,cn.jsx)(Bs,{themeMode:m,setAppearance:N,setBrowserPrefers:Z}),r]})});dn.displayName="ThemeSwitcher";var un=dn;var lt=y(z());var fn=y(_()),Us=["stylish"],Ds=function(t){var r=t.children,o=t.customToken,n=t.defaultCustomToken,s=t.customStylish,a=t.prefixCls,c=t.StyledThemeProvider,i=Re(),l=i.appearance,p=i.isDarkMode,x=Bt(),u=x.stylish,b=Me(x,Us),h=(0,lt.useMemo)(function(){return n?n instanceof Function?n({token:b,appearance:l,isDarkMode:p}):n:{}},[n,b,l]),m=(0,lt.useMemo)(function(){return o instanceof Function?k(k({},h),o({token:b,appearance:l,isDarkMode:p})):k(k({},h),o)},[h,o,b,l]),d=(0,lt.useMemo)(function(){return s?s({token:k(k({},b),m),stylish:u,appearance:l,isDarkMode:p,css:pe}):{}},[s,b,m,u,l]),f=(0,lt.useMemo)(function(){return k(k({},d),u)},[d,u]),g=k(k(k(k({},b),m),{},{stylish:f},i),{},{prefixCls:a});return(0,fn.jsx)(c,{theme:g,children:r})},pn=Ds;var dt=y(_()),mn=function(t){var r=t.styledConfig?fr(t.styledConfig):void 0,o=t.StyleEngineContext;return(0,ut.memo)(function(n){var s=n.children,a=n.customToken,c=n.customStylish,i=n.theme,l=n.getStaticInstance,p=n.prefixCls,x=n.staticInstanceConfig,u=n.appearance,b=n.defaultAppearance,h=n.onAppearanceChange,m=n.themeMode,d=n.defaultThemeMode,f=n.onThemeModeChange,g=n.styled,T=(0,ut.useContext)(o),N=T.prefixCls,O=T.StyledThemeContext,$=T.CustomThemeContext,w=(0,ut.useContext)($),Z=g?fr(g):r||tn,ee=p||N;return(0,dt.jsx)(o.Provider,{value:{prefixCls:ee,StyledThemeContext:g?.ThemeContext||O||Ut,CustomThemeContext:$},children:(0,dt.jsx)(un,{themeMode:m,defaultThemeMode:d,onThemeModeChange:f,defaultAppearance:b,appearance:u,onAppearanceChange:h,useTheme:t.useTheme,children:(0,dt.jsx)(nn,{prefixCls:ee,staticInstanceConfig:x,theme:i,getStaticInstance:l,children:(0,dt.jsx)(pn,{prefixCls:ee,customToken:a,defaultCustomToken:w,customStylish:c,StyledThemeProvider:Z,children:s})})})})})};var ze=y(z());var hn=function(t){return function(){var r=t.StyleEngineContext,o=(0,ze.useContext)(r),n=o.StyledThemeContext,s=o.CustomThemeContext,a=o.prefixCls,c=Bt(),i=Re(),l=(0,ze.useContext)(s),p=(0,ze.useContext)(n??Ut)||{},x=(0,ze.useContext)(pt.ConfigContext),u=x.iconPrefixCls,b=x.getPrefixCls,h=b(),m=a&&a!=="ant"?a:h,d=(0,ze.useMemo)(function(){return k(k(k(k({},c),i),l),{},{prefixCls:m,iconPrefixCls:u})},[c,i,l,m,u]);return!p||Object.keys(p).length===0?d:k(k({},p),{},{prefixCls:m,iconPrefixCls:u})}};var gn=new uo;typeof global<"u"&&(global.__ANTD_STYLE_CACHE_MANAGER_FOR_SSR__=gn);var xn=function(t){var r,o,n,s=k(k({},t),{},{key:(r=t.key)!==null&&r!==void 0?r:"zcss",speedy:(o=t.speedy)!==null&&o!==void 0?o:!1}),a=Le({key:s.key,speedy:s.speedy,container:s.container}),c=yo(a),i=Uo(c);a.cache=gn.add(a.cache);var l=(0,hr.createContext)(s.customToken?s.customToken:{}),p=(n=s.styled)===null||n===void 0?void 0:n.ThemeContext,x=(0,hr.createContext)({CustomThemeContext:l,StyledThemeContext:p,prefixCls:s?.prefixCls,iconPrefixCls:s?.iconPrefixCls}),u=hn({StyleEngineContext:x}),b=Zo({hashPriority:s.hashPriority,useTheme:u,EmotionContext:c}),h=Wo(u),m=Bo(b),d=mn({styledConfig:s.styled,StyleEngineContext:x,useTheme:u});d.displayName="AntdStyleThemeProvider";var f=Pt(a.cache,{hashPriority:s.hashPriority}),g=f.cx,T=a.injectGlobal,N=a.keyframes;return{createStyles:b,createGlobalStyle:h,createStylish:m,css:pe,cx:g,keyframes:N,injectGlobal:T,styleManager:a,useTheme:u,StyleProvider:i,ThemeProvider:d}};var me=xn({key:go,speedy:!1}),yn=me.createStyles,Al=me.createGlobalStyle,kl=me.createStylish,El=me.css,Rl=me.cx,$l=me.keyframes,Ml=me.injectGlobal,Il=me.styleManager,Fl=me.ThemeProvider,Nl=me.StyleProvider,Ll=me.useTheme;var C=y(z());var qs=y(z());var vn={primary:{50:"#f0f4ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},success:"#22c55e",warning:"#f59e0b",error:"#ef4444",info:"#3b82f6",light:{bg:"#fafafa",surface:"rgba(255, 255, 255, 1)",surfaceHover:"#f9fafb",surfaceActive:"#f3f4f6",border:"#e5e7eb",borderHover:"#d1d5db",text:"#111827",textSecondary:"#6b7280",textMuted:"#9ca3af"},dark:{bg:"#0a0a0a",surface:"rgba(23, 23, 23, 0.95)",surfaceHover:"#1f1f1f",surfaceActive:"#262626",border:"#27272a",borderHover:"#3f3f46",text:"#fafafa",textSecondary:"#a1a1aa",textMuted:"#71717a"}},bn={none:"0",sm:"4px",md:"10px",lg:"16px",xl:"20px",xxl:"28px",xxxl:"32px",full:"9999px"},Cn={0:"0",1:"4px",2:"8px",3:"12px",4:"16px",5:"20px",6:"24px",8:"32px",10:"40px",12:"48px"},wn={none:"none",sm:"0 1px 2px rgba(0, 0, 0, 0.04)",md:"0 2px 8px rgba(0, 0, 0, 0.06)",lg:"0 4px 12px rgba(0, 0, 0, 0.08)",xl:"0 8px 24px rgba(0, 0, 0, 0.1)"},Sn={fontFamily:'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',sizes:{xs:{size:"12px",lineHeight:"16px",weight:400},sm:{size:"14px",lineHeight:"20px",weight:400},base:{size:"16px",lineHeight:"24px",weight:400},lg:{size:"18px",lineHeight:"28px",weight:500},xl:{size:"20px",lineHeight:"28px",weight:600},"2xl":{size:"24px",lineHeight:"32px",weight:600}}},Tn={duration:{fast:"150ms",normal:"250ms",slow:"350ms"},easing:{default:"cubic-bezier(0.4, 0, 0.2, 1)",bounce:"cubic-bezier(0.68, -0.55, 0.265, 1.55)"}},I={colors:vn,radius:bn,spacing:Cn,shadows:wn,typography:Sn,animation:Tn};var ft={token:{colorPrimary:I.colors.primary[500],colorPrimaryHover:I.colors.primary[600],colorPrimaryActive:I.colors.primary[700],colorSuccess:I.colors.success,colorWarning:I.colors.warning,colorError:I.colors.error,colorInfo:I.colors.info,colorText:I.colors.light.text,colorTextSecondary:I.colors.light.textSecondary,colorTextTertiary:I.colors.light.textMuted,colorBgContainer:I.colors.light.surface,colorBgElevated:I.colors.light.surface,colorBgLayout:I.colors.light.bg,colorBorder:I.colors.light.border,colorBorderSecondary:I.colors.light.borderHover,fontFamily:I.typography.fontFamily,fontSize:16,fontSizeSM:14,fontSizeLG:18,lineHeight:1.5,borderRadius:8,borderRadiusLG:12,borderRadiusSM:4,borderRadiusXS:2,boxShadow:I.shadows.md,boxShadowSecondary:I.shadows.lg,boxShadowTertiary:I.shadows.xl,motionDurationFast:I.animation.duration.fast,motionDurationMid:I.animation.duration.normal,motionDurationSlow:I.animation.duration.slow},components:{Card:{borderRadius:12,boxShadow:"0 2px 8px rgba(0, 0, 0, 0.06)"},Button:{borderRadius:8,controlHeight:40,controlHeightLG:44,controlHeightSM:32},Input:{borderRadius:8,controlHeight:40},Modal:{borderRadius:16},Select:{borderRadius:8,controlHeight:40},Tag:{borderRadius:4},Alert:{borderRadius:8},Menu:{borderRadius:8},Dropdown:{borderRadius:8}}},_s={...ft,token:{...ft.token,colorText:I.colors.dark.text,colorTextSecondary:I.colors.dark.textSecondary,colorTextTertiary:I.colors.dark.textMuted,colorBgContainer:I.colors.dark.surface,colorBgElevated:I.colors.dark.surface,colorBgLayout:I.colors.dark.bg,colorBgMask:"rgba(0, 0, 0, 0.7)",colorBorder:I.colors.dark.border,colorBorderSecondary:I.colors.dark.borderHover},components:{...ft.components,Modal:{...ft.components?.Modal,colorBgElevated:I.colors.dark.surface}}};var{colors:Ul,radius:Dl,spacing:_l,shadows:Vl,typography:Hl,animation:Gl}=I;var An=y(_()),{Text:ad}=mt;var gr=y(_()),{Text:pd}=mt;var _t=y(z());var kn=y(z());var Xs=y(_());var Ys=y(z());var En=y(_()),{useToken:Rd}=Ie;var $d=yn(({token:e,css:t})=>({surface:t`
3
3
  position: relative;
4
4
  display: flex;
@@ -1 +1 @@
1
- import{c as L,o as j}from"./embed-page-chunk-R7TLHZR3.js";import{k as P}from"./embed-page-chunk-L7TDL27M.js";import{a as _}from"./embed-page-chunk-QV7QAJ4N.js";import{Ja as V}from"./embed-page-chunk-B2KNZ3EW.js";import{Da as g,Ia as v,La as b,Ma as M,_ as R,_a as U,bb as O,za as E}from"./embed-page-chunk-F7TA3LRH.js";import{a as D}from"./embed-page-chunk-R5QL57JJ.js";import{f as w}from"./embed-page-chunk-QBTAJ2YI.js";var d=w(D());function G(f){let k=j("__GLOBAL__"),[z,a]=(0,d.useState)(!1),[u,S]=(0,d.useState)(null),x=(0,d.useCallback)(()=>{f?.onUnauthorized?f.onUnauthorized():window.dispatchEvent(new CustomEvent("lattice:unauthorized"))},[f?.onUnauthorized]),s=(0,d.useCallback)(async(l,o,n,F)=>{a(!0),S(null);try{return await k.request(o,{method:l,body:n,headers:F?.headers})}catch(C){throw C instanceof L&&x(),S(C),C}finally{a(!1)}},[k,x]),I=(0,d.useCallback)((l,o)=>s("GET",l,void 0,o),[s]),r=(0,d.useCallback)((l,o,n)=>s("POST",l,o,n),[s]),t=(0,d.useCallback)((l,o,n)=>s("PUT",l,o,n),[s]),m=(0,d.useCallback)((l,o)=>s("DELETE",l,void 0,o),[s]);return{get:I,post:r,put:t,del:m,isLoading:z,error:u}}var T=w(D());var e=w(_()),{TextArea:W}=v,{Text:h}=O,H=({open:f,onCancel:k,onSuccess:z,skill:a})=>{let[u]=g.useForm(),[S,x]=(0,T.useState)(!1),{post:s,put:I}=G(),{token:r}=U.useToken(),t=P(),m=!!a,l=[{key:"category",value:"global"}],[o,n]=(0,T.useState)(l);(0,T.useEffect)(()=>{f&&a?(u.setFieldsValue({name:a.name,description:a.description,license:a.license||"",compatibility:a.compatibility||"",content:a.content||""}),a.metadata?n(Object.entries(a.metadata).map(([i,c])=>({key:i,value:c}))):n(l)):f&&!a&&(u.resetFields(),n(l))},[f,a]);let F=async()=>{try{let i=await u.validateFields();x(!0);let c=o.length>0?o.reduce((B,q)=>(q.key&&(B[q.key]=q.value),B),{}):void 0,p={id:i.name,name:i.name,description:i.description,license:i.license||void 0,compatibility:i.compatibility||void 0,metadata:c,content:i.content||void 0,subSkills:void 0},y;m?y=await I(`/api/skills/${a.id}`,p):y=await s("/api/skills",p),y.success?(b.success(t(m?"chatConfig.skill.updated":"chatConfig.skill.created")),u.resetFields(),n(l),z?.(),k()):b.error(y.message||t(m?"chatConfig.skill.updateFailed":"chatConfig.skill.createFailed"))}catch(i){if(i.errorFields)return;b.error(i.message||t(m?"chatConfig.skill.updateError":"chatConfig.skill.createError"))}finally{x(!1)}},C=()=>{u.resetFields(),n(l),k()},A=(i,c,p)=>{let y=[...o];y[i]={...y[i],[c]:p},n(y)},$=()=>{n([...o,{key:"",value:""}])};return(0,e.jsx)(M,{title:t(m?"chatConfig.skill.edit.title":"chatConfig.skill.create.title"),open:f,onCancel:C,footer:null,width:520,destroyOnClose:!0,styles:{body:{padding:16}},children:(0,e.jsx)(g,{form:u,layout:"vertical",onFinish:F,autoComplete:"off",children:(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:12},children:[(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[(0,e.jsx)(h,{style:{fontSize:12,color:r.colorTextSecondary},children:t("chatConfig.skill.field.name")}),(0,e.jsx)(g.Item,{name:"name",rules:[{required:!0,message:t("chatConfig.skill.validation.nameRequired")},{pattern:/^[a-z0-9]+(-[a-z0-9]+)*$/,message:t("chatConfig.skill.validation.namePattern")},{min:1,max:64,message:t("chatConfig.skill.validation.nameLength")}],style:{marginBottom:0},children:(0,e.jsx)(v,{placeholder:"e.g., data-analysis",disabled:m})})]}),(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[(0,e.jsx)(h,{style:{fontSize:12,color:r.colorTextSecondary},children:t("chatConfig.skill.field.description")}),(0,e.jsx)(g.Item,{name:"description",rules:[{required:!0,message:t("chatConfig.skill.validation.descriptionRequired")}],style:{marginBottom:0},children:(0,e.jsx)(W,{placeholder:t("chatConfig.skill.placeholder.description"),autoSize:{minRows:2,maxRows:4}})})]}),(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[(0,e.jsx)(h,{style:{fontSize:12,color:r.colorTextSecondary},children:t("chatConfig.skill.field.license")}),(0,e.jsx)(g.Item,{name:"license",style:{marginBottom:0},children:(0,e.jsx)(v,{placeholder:t("chatConfig.skill.placeholder.license")})})]}),(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[(0,e.jsx)(h,{style:{fontSize:12,color:r.colorTextSecondary},children:t("chatConfig.skill.field.compatibility")}),(0,e.jsx)(g.Item,{name:"compatibility",style:{marginBottom:0},children:(0,e.jsx)(v,{placeholder:t("chatConfig.skill.placeholder.compatibility")})})]}),(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[(0,e.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8},children:[(0,e.jsx)(h,{style:{fontSize:12,color:r.colorTextSecondary,fontWeight:500},children:t("chatConfig.skill.field.metadata")}),(0,e.jsx)(R,{size:"small",icon:(0,e.jsx)(V,{}),onClick:$,children:t("chatConfig.skill.metadata.add")})]}),(0,e.jsxs)(E,{direction:"vertical",size:8,style:{width:"100%"},children:[o.length===0&&(0,e.jsx)(h,{style:{fontSize:11,color:r.colorTextTertiary},children:t("chatConfig.skill.metadata.empty")}),o.map((i,c)=>(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:4,width:"100%"},children:[(0,e.jsx)(h,{style:{fontSize:11,color:r.colorTextSecondary},children:t("chatConfig.skill.metadata.row",{index:c+1})}),(0,e.jsxs)(E,{style:{width:"100%"},size:8,wrap:!0,children:[(0,e.jsx)(v,{value:i.key,placeholder:t("chatConfig.keyValue.key"),style:{width:140},onChange:p=>A(c,"key",p.target.value)}),(0,e.jsx)(v,{value:i.value,placeholder:t("chatConfig.keyValue.value"),style:{flex:1,minWidth:200},onChange:p=>A(c,"value",p.target.value)})]})]},c))]})]}),(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[(0,e.jsx)(h,{style:{fontSize:12,color:r.colorTextSecondary},children:t("chatConfig.skill.field.content")}),(0,e.jsx)(g.Item,{name:"content",style:{marginBottom:0},children:(0,e.jsx)(W,{placeholder:t("chatConfig.skill.placeholder.content"),autoSize:{minRows:4,maxRows:8}})})]}),(0,e.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:8,marginTop:8},children:[(0,e.jsx)(R,{onClick:C,children:t("common.cancel")}),(0,e.jsx)(R,{type:"primary",htmlType:"submit",loading:S,children:t(m?"chatConfig.skill.action.save":"chatConfig.skill.action.create")})]})]})})})},ie=H;export{G as a,ie as b};
1
+ import{c as L,o as j}from"./embed-page-chunk-6ZHR5GWS.js";import{k as P}from"./embed-page-chunk-YCTDKWKW.js";import{a as _}from"./embed-page-chunk-QV7QAJ4N.js";import{Ja as V}from"./embed-page-chunk-B2KNZ3EW.js";import{Da as g,Ia as v,La as b,Ma as M,_ as R,_a as U,bb as O,za as E}from"./embed-page-chunk-F7TA3LRH.js";import{a as D}from"./embed-page-chunk-R5QL57JJ.js";import{f as w}from"./embed-page-chunk-QBTAJ2YI.js";var d=w(D());function G(f){let k=j("__GLOBAL__"),[z,a]=(0,d.useState)(!1),[u,S]=(0,d.useState)(null),x=(0,d.useCallback)(()=>{f?.onUnauthorized?f.onUnauthorized():window.dispatchEvent(new CustomEvent("lattice:unauthorized"))},[f?.onUnauthorized]),s=(0,d.useCallback)(async(l,o,n,F)=>{a(!0),S(null);try{return await k.request(o,{method:l,body:n,headers:F?.headers})}catch(C){throw C instanceof L&&x(),S(C),C}finally{a(!1)}},[k,x]),I=(0,d.useCallback)((l,o)=>s("GET",l,void 0,o),[s]),r=(0,d.useCallback)((l,o,n)=>s("POST",l,o,n),[s]),t=(0,d.useCallback)((l,o,n)=>s("PUT",l,o,n),[s]),m=(0,d.useCallback)((l,o)=>s("DELETE",l,void 0,o),[s]);return{get:I,post:r,put:t,del:m,isLoading:z,error:u}}var T=w(D());var e=w(_()),{TextArea:W}=v,{Text:h}=O,H=({open:f,onCancel:k,onSuccess:z,skill:a})=>{let[u]=g.useForm(),[S,x]=(0,T.useState)(!1),{post:s,put:I}=G(),{token:r}=U.useToken(),t=P(),m=!!a,l=[{key:"category",value:"global"}],[o,n]=(0,T.useState)(l);(0,T.useEffect)(()=>{f&&a?(u.setFieldsValue({name:a.name,description:a.description,license:a.license||"",compatibility:a.compatibility||"",content:a.content||""}),a.metadata?n(Object.entries(a.metadata).map(([i,c])=>({key:i,value:c}))):n(l)):f&&!a&&(u.resetFields(),n(l))},[f,a]);let F=async()=>{try{let i=await u.validateFields();x(!0);let c=o.length>0?o.reduce((B,q)=>(q.key&&(B[q.key]=q.value),B),{}):void 0,p={id:i.name,name:i.name,description:i.description,license:i.license||void 0,compatibility:i.compatibility||void 0,metadata:c,content:i.content||void 0,subSkills:void 0},y;m?y=await I(`/api/skills/${a.id}`,p):y=await s("/api/skills",p),y.success?(b.success(t(m?"chatConfig.skill.updated":"chatConfig.skill.created")),u.resetFields(),n(l),z?.(),k()):b.error(y.message||t(m?"chatConfig.skill.updateFailed":"chatConfig.skill.createFailed"))}catch(i){if(i.errorFields)return;b.error(i.message||t(m?"chatConfig.skill.updateError":"chatConfig.skill.createError"))}finally{x(!1)}},C=()=>{u.resetFields(),n(l),k()},A=(i,c,p)=>{let y=[...o];y[i]={...y[i],[c]:p},n(y)},$=()=>{n([...o,{key:"",value:""}])};return(0,e.jsx)(M,{title:t(m?"chatConfig.skill.edit.title":"chatConfig.skill.create.title"),open:f,onCancel:C,footer:null,width:520,destroyOnClose:!0,styles:{body:{padding:16}},children:(0,e.jsx)(g,{form:u,layout:"vertical",onFinish:F,autoComplete:"off",children:(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:12},children:[(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[(0,e.jsx)(h,{style:{fontSize:12,color:r.colorTextSecondary},children:t("chatConfig.skill.field.name")}),(0,e.jsx)(g.Item,{name:"name",rules:[{required:!0,message:t("chatConfig.skill.validation.nameRequired")},{pattern:/^[a-z0-9]+(-[a-z0-9]+)*$/,message:t("chatConfig.skill.validation.namePattern")},{min:1,max:64,message:t("chatConfig.skill.validation.nameLength")}],style:{marginBottom:0},children:(0,e.jsx)(v,{placeholder:"e.g., data-analysis",disabled:m})})]}),(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[(0,e.jsx)(h,{style:{fontSize:12,color:r.colorTextSecondary},children:t("chatConfig.skill.field.description")}),(0,e.jsx)(g.Item,{name:"description",rules:[{required:!0,message:t("chatConfig.skill.validation.descriptionRequired")}],style:{marginBottom:0},children:(0,e.jsx)(W,{placeholder:t("chatConfig.skill.placeholder.description"),autoSize:{minRows:2,maxRows:4}})})]}),(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[(0,e.jsx)(h,{style:{fontSize:12,color:r.colorTextSecondary},children:t("chatConfig.skill.field.license")}),(0,e.jsx)(g.Item,{name:"license",style:{marginBottom:0},children:(0,e.jsx)(v,{placeholder:t("chatConfig.skill.placeholder.license")})})]}),(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[(0,e.jsx)(h,{style:{fontSize:12,color:r.colorTextSecondary},children:t("chatConfig.skill.field.compatibility")}),(0,e.jsx)(g.Item,{name:"compatibility",style:{marginBottom:0},children:(0,e.jsx)(v,{placeholder:t("chatConfig.skill.placeholder.compatibility")})})]}),(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[(0,e.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8},children:[(0,e.jsx)(h,{style:{fontSize:12,color:r.colorTextSecondary,fontWeight:500},children:t("chatConfig.skill.field.metadata")}),(0,e.jsx)(R,{size:"small",icon:(0,e.jsx)(V,{}),onClick:$,children:t("chatConfig.skill.metadata.add")})]}),(0,e.jsxs)(E,{direction:"vertical",size:8,style:{width:"100%"},children:[o.length===0&&(0,e.jsx)(h,{style:{fontSize:11,color:r.colorTextTertiary},children:t("chatConfig.skill.metadata.empty")}),o.map((i,c)=>(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:4,width:"100%"},children:[(0,e.jsx)(h,{style:{fontSize:11,color:r.colorTextSecondary},children:t("chatConfig.skill.metadata.row",{index:c+1})}),(0,e.jsxs)(E,{style:{width:"100%"},size:8,wrap:!0,children:[(0,e.jsx)(v,{value:i.key,placeholder:t("chatConfig.keyValue.key"),style:{width:140},onChange:p=>A(c,"key",p.target.value)}),(0,e.jsx)(v,{value:i.value,placeholder:t("chatConfig.keyValue.value"),style:{flex:1,minWidth:200},onChange:p=>A(c,"value",p.target.value)})]})]},c))]})]}),(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[(0,e.jsx)(h,{style:{fontSize:12,color:r.colorTextSecondary},children:t("chatConfig.skill.field.content")}),(0,e.jsx)(g.Item,{name:"content",style:{marginBottom:0},children:(0,e.jsx)(W,{placeholder:t("chatConfig.skill.placeholder.content"),autoSize:{minRows:4,maxRows:8}})})]}),(0,e.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:8,marginTop:8},children:[(0,e.jsx)(R,{onClick:C,children:t("common.cancel")}),(0,e.jsx)(R,{type:"primary",htmlType:"submit",loading:S,children:t(m?"chatConfig.skill.action.save":"chatConfig.skill.action.create")})]})]})})})},ie=H;export{G as a,ie as b};
@@ -1,4 +1,4 @@
1
- import{a as gr,b as Sn}from"./embed-page-chunk-2ZBEWYJQ.js";import{b as qi,c as $i}from"./embed-page-chunk-WKQHSEZ4.js";import{a as Io}from"./embed-page-chunk-6QLLZJVH.js";import{c as xo,d as To}from"./embed-page-chunk-GSUSX54K.js";import{b as st,c as Mi,d as ko,e as Rt,f as wo,g as Ni,h as Rn,i as In,j as Oi,l as Fi,m as _i}from"./embed-page-chunk-DJKD2PHO.js";import{a as cn}from"./embed-page-chunk-D7YTSCUO.js";import{a as Ki,b as Hi}from"./embed-page-chunk-EU32IF7M.js";import{J as Wi,K as Ro,L as Co,M as So,N as zi,O as Ao,P as Bi,Q as ji,R as Po,S as Cn,U as pr,V as Gi,b as Si,d as mo,e as Ai,f as yo,g as vo,j as xn,o as Tn,p as ho,q as Pi,t as Ei,u as Di,v as Li,w as bo}from"./embed-page-chunk-CKUSXUKW.js";import{g as Ci,i as Nt}from"./embed-page-chunk-JMTQCORF.js";import{a as et}from"./embed-page-chunk-CQLDPGEG.js";import{b as Xr,j as Jr,l as ei,o as vt,t as co}from"./embed-page-chunk-R7TLHZR3.js";import{Da as xi,H as ui,J as pi,La as Ti,N as gi,Q as fi,S as mi,Sa as fo,Ta as Ri,U as go,Ua as Ii,ba as yi,g as li,m as di,n as Gn,ra as vi,sa as hi,ta as bi,va as ki,wa as wi,z as ci}from"./embed-page-chunk-F7ZUYG42.js";import{k as W}from"./embed-page-chunk-L7TDL27M.js";import{a as z}from"./embed-page-chunk-QV7QAJ4N.js";import{B as oi,G as uo,Ja as Mt,Oa as ii,P as wn,Q as ri,Qa as ai,Ra as cr,Sa as ur,bb as si,ea as dr,i as ti,s as ni,sa as po,z as jn}from"./embed-page-chunk-B2KNZ3EW.js";import{Da as ge,Ia as Me,Ja as Tt,La as at,Ma as We,W as Qt,Ya as lo,Za as He,_ as U,_a as Qr,aa as kn,ba as Gt,bb as Be,db as Yr,fa as it,ha as Yt,ja as sr,ka as lr,pa as Ur,sa as dn,va as Zr,ya as Vr,za as Lt}from"./embed-page-chunk-F7TA3LRH.js";import{a as Ce}from"./embed-page-chunk-R5QL57JJ.js";import{f as C}from"./embed-page-chunk-QBTAJ2YI.js";var Hs={react:{label:"capability",color:"blue"},capability:{label:"capability",color:"blue"},deep_agent:{label:"orchestrator",color:"orange"},orchestrator:{label:"orchestrator",color:"orange"},processing:{label:"workflow",color:"purple"},workflow:{label:"workflow",color:"purple"},a2a_remote:{label:"remote",color:"cyan"},remote:{label:"remote",color:"cyan"}};function An(e){return Hs[e]??{label:"capability",color:"blue"}}var Us={enabled:"green",draft:"orange",disabled:"default"};function Zi(e){return Us[e]??"default"}var Ui={blue:"#3b82f6",orange:"#f59e0b",green:"#22c55e",purple:"#a855f7",cyan:"#06b6d4"};function Kn(e){return Ui[e]??Ui.cyan}function Yd(e){let t={enabled:"#22c55e",draft:"#f59e0b",disabled:"#d9d9d9"};return t[e]??t.disabled}function Pn(e){return typeof e.graphDefinition=="object"&&e.graphDefinition!==null?e.graphDefinition:{}}function mr(e){return((Pn(e).metadata??{}).tags??"").split(",").map(r=>r.trim()).filter(Boolean)}function yr(e){let o=(Pn(e).metadata??{}).version;return o?o.startsWith("v")?o:`v${o}`:"v1"}function vr(e){let o=(Pn(e).metadata??{}).status??"enabled";return o==="draft"||o==="disabled"?o:"enabled"}function fr(e){let n=Pn(e).subAgents??[],o=Array.isArray(n)?n.filter(Boolean):[];return Array.from(new Set(o))}function Xd(e){return e.map(t=>{let n=Pn(t),o=String(n.type??"react");return{id:t.id,name:t.name,description:t.description,type:An(o).label,tags:mr(t),version:yr(t),status:vr(t),subAgents:fr(t)}})}function Jd(e){let t=new Set(e.map(r=>r.id)),n=e.map(r=>({id:r.id,label:r.name,type:An(String(Pn(r).type??"react")).label,subAgentCount:fr(r).length})),o=[];for(let r of e)for(let i of fr(r))t.has(i)&&o.push({source:r.id,target:i});return{nodes:n,edges:o}}var Se=C(Ce());var te=C(Ce());var b=C(z()),{TextArea:Zs}=Me,{Text:It}=Be,Vi=["data","execution","workflow","assistant"],Qi={data:"chatConfig.agentPanel.category.data",execution:"chatConfig.agentPanel.category.execution",workflow:"chatConfig.agentPanel.category.workflow",assistant:"chatConfig.agentPanel.category.assistant",other:"chatConfig.agentPanel.category.other"},Vs={react:"chatConfig.agentPanel.typeDesc.react",deep_agent:"chatConfig.agentPanel.typeDesc.deepAgent",processing:"chatConfig.agentPanel.typeDesc.processing"},qn=(e,t)=>{if(Array.isArray(e)){let n=e.map(o=>qn(o));return(t==="tools"||t==="subAgents")&&n.every(o=>typeof o=="string")?[...n].sort():n}return e!==null&&typeof e=="object"?Object.fromEntries(Object.entries(e).sort(([n],[o])=>n.localeCompare(o)).map(([n,o])=>[n,qn(o,n)])):e},Yi=e=>{if(typeof e!="string")return qn(e??null);try{return qn(JSON.parse(e))}catch{return e}},Xi=e=>JSON.stringify(qn({...e,tools:[...e.tools].sort(),subAgents:[...e.subAgents].sort()})),Qs=Ci(({token:e,css:t})=>({modalBody:t`
1
+ import{a as gr,b as Sn}from"./embed-page-chunk-ABGWNVMG.js";import{b as qi,c as $i}from"./embed-page-chunk-3UK7XM33.js";import{a as Io}from"./embed-page-chunk-5XP4FJW7.js";import{c as xo,d as To}from"./embed-page-chunk-GSUSX54K.js";import{b as st,c as Mi,d as ko,e as Rt,f as wo,g as Ni,h as Rn,i as In,j as Oi,l as Fi,m as _i}from"./embed-page-chunk-DJKD2PHO.js";import{a as cn}from"./embed-page-chunk-D7YTSCUO.js";import{a as Ki,b as Hi}from"./embed-page-chunk-YM76GTXK.js";import{J as Wi,K as Ro,L as Co,M as So,N as zi,O as Ao,P as Bi,Q as ji,R as Po,S as Cn,U as pr,V as Gi,b as Si,d as mo,e as Ai,f as yo,g as vo,j as xn,o as Tn,p as ho,q as Pi,t as Ei,u as Di,v as Li,w as bo}from"./embed-page-chunk-SQSVDSG6.js";import{g as Ci,i as Nt}from"./embed-page-chunk-NNQHJZ5Q.js";import{a as et}from"./embed-page-chunk-ONXC5S22.js";import{b as Xr,j as Jr,l as ei,o as vt,t as co}from"./embed-page-chunk-6ZHR5GWS.js";import{Da as xi,H as ui,J as pi,La as Ti,N as gi,Q as fi,S as mi,Sa as fo,Ta as Ri,U as go,Ua as Ii,ba as yi,g as li,m as di,n as Gn,ra as vi,sa as hi,ta as bi,va as ki,wa as wi,z as ci}from"./embed-page-chunk-F7ZUYG42.js";import{k as W}from"./embed-page-chunk-YCTDKWKW.js";import{a as z}from"./embed-page-chunk-QV7QAJ4N.js";import{B as oi,G as uo,Ja as Mt,Oa as ii,P as wn,Q as ri,Qa as ai,Ra as cr,Sa as ur,bb as si,ea as dr,i as ti,s as ni,sa as po,z as jn}from"./embed-page-chunk-B2KNZ3EW.js";import{Da as ge,Ia as Me,Ja as Tt,La as at,Ma as We,W as Qt,Ya as lo,Za as He,_ as U,_a as Qr,aa as kn,ba as Gt,bb as Be,db as Yr,fa as it,ha as Yt,ja as sr,ka as lr,pa as Ur,sa as dn,va as Zr,ya as Vr,za as Lt}from"./embed-page-chunk-F7TA3LRH.js";import{a as Ce}from"./embed-page-chunk-R5QL57JJ.js";import{f as C}from"./embed-page-chunk-QBTAJ2YI.js";var Hs={react:{label:"capability",color:"blue"},capability:{label:"capability",color:"blue"},deep_agent:{label:"orchestrator",color:"orange"},orchestrator:{label:"orchestrator",color:"orange"},processing:{label:"workflow",color:"purple"},workflow:{label:"workflow",color:"purple"},a2a_remote:{label:"remote",color:"cyan"},remote:{label:"remote",color:"cyan"}};function An(e){return Hs[e]??{label:"capability",color:"blue"}}var Us={enabled:"green",draft:"orange",disabled:"default"};function Zi(e){return Us[e]??"default"}var Ui={blue:"#3b82f6",orange:"#f59e0b",green:"#22c55e",purple:"#a855f7",cyan:"#06b6d4"};function Kn(e){return Ui[e]??Ui.cyan}function Yd(e){let t={enabled:"#22c55e",draft:"#f59e0b",disabled:"#d9d9d9"};return t[e]??t.disabled}function Pn(e){return typeof e.graphDefinition=="object"&&e.graphDefinition!==null?e.graphDefinition:{}}function mr(e){return((Pn(e).metadata??{}).tags??"").split(",").map(r=>r.trim()).filter(Boolean)}function yr(e){let o=(Pn(e).metadata??{}).version;return o?o.startsWith("v")?o:`v${o}`:"v1"}function vr(e){let o=(Pn(e).metadata??{}).status??"enabled";return o==="draft"||o==="disabled"?o:"enabled"}function fr(e){let n=Pn(e).subAgents??[],o=Array.isArray(n)?n.filter(Boolean):[];return Array.from(new Set(o))}function Xd(e){return e.map(t=>{let n=Pn(t),o=String(n.type??"react");return{id:t.id,name:t.name,description:t.description,type:An(o).label,tags:mr(t),version:yr(t),status:vr(t),subAgents:fr(t)}})}function Jd(e){let t=new Set(e.map(r=>r.id)),n=e.map(r=>({id:r.id,label:r.name,type:An(String(Pn(r).type??"react")).label,subAgentCount:fr(r).length})),o=[];for(let r of e)for(let i of fr(r))t.has(i)&&o.push({source:r.id,target:i});return{nodes:n,edges:o}}var Se=C(Ce());var te=C(Ce());var b=C(z()),{TextArea:Zs}=Me,{Text:It}=Be,Vi=["data","execution","workflow","assistant"],Qi={data:"chatConfig.agentPanel.category.data",execution:"chatConfig.agentPanel.category.execution",workflow:"chatConfig.agentPanel.category.workflow",assistant:"chatConfig.agentPanel.category.assistant",other:"chatConfig.agentPanel.category.other"},Vs={react:"chatConfig.agentPanel.typeDesc.react",deep_agent:"chatConfig.agentPanel.typeDesc.deepAgent",processing:"chatConfig.agentPanel.typeDesc.processing"},qn=(e,t)=>{if(Array.isArray(e)){let n=e.map(o=>qn(o));return(t==="tools"||t==="subAgents")&&n.every(o=>typeof o=="string")?[...n].sort():n}return e!==null&&typeof e=="object"?Object.fromEntries(Object.entries(e).sort(([n],[o])=>n.localeCompare(o)).map(([n,o])=>[n,qn(o,n)])):e},Yi=e=>{if(typeof e!="string")return qn(e??null);try{return qn(JSON.parse(e))}catch{return e}},Xi=e=>JSON.stringify(qn({...e,tools:[...e.tools].sort(),subAgents:[...e.subAgents].sort()})),Qs=Ci(({token:e,css:t})=>({modalBody:t`
2
2
  padding: 0;
3
3
  height: 92vh;
4
4
  width: 100%;