@kweaver-ai/chatkit 0.1.18 → 0.1.19

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.
@@ -530,7 +530,7 @@ echarts.use([`+B+"]);":"Unknown series "+R))}return}if(h==="tooltip"){if(x){proc
530
530
  .animate-slide-in-right {
531
531
  animation: slide-in-right 0.3s ease-out;
532
532
  }
533
- `})]});return T6.createPortal(Ae,u)};function zme(t){switch(t){case"table":return"表格";case"Line":return"折线图";case"Column":return"柱状图";case"Circle":return"环形图";case"Pie":return"饼图";default:return String(t)}}function Hme(t){switch(t){case"table":return S.jsx(My,{});case"Line":return S.jsx(Dy,{});case"Column":return S.jsx(VA,{});case"Circle":case"Pie":return S.jsx(HA,{});default:return S.jsx(My,{})}}const Vme=({open:t,onClose:e,data:r,initialViewType:n})=>{const[a,i]=re.useState("Line");re.useEffect(()=>{if(t){const h=n||r.chartType||"Line";i(h)}},[t,n,r.chartType]);const o=re.useCallback(h=>{i(h)},[]);if(re.useEffect(()=>{if(!t)return;const h=f=>{f.key==="Escape"&&e()};return window.addEventListener("keydown",h),()=>{window.removeEventListener("keydown",h)}},[t,e]),!t)return null;const s=a==="table",l=s?r.chartType||"Line":a,u=s?null:pg(r,l),c=["table","Circle","Column","Line","Pie"];return S.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",onClick:e,"aria-modal":"true","aria-labelledby":"chart-modal-title",children:S.jsxs("div",{className:"relative bg-white rounded-lg shadow-lg flex flex-col w-[90vw] max-w-[1200px] h-[90vh] max-h-[800px] p-5",onClick:h=>h.stopPropagation(),children:[S.jsx("button",{onClick:e,className:"absolute top-4 right-4 w-8 h-8 flex items-center justify-center text-gray-500 hover:text-gray-700 hover:bg-gray-100 rounded-full transition-colors z-10","aria-label":"关闭",children:S.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:S.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),S.jsx("div",{className:"flex items-center justify-between mb-4 pb-3 border-b border-gray-200 flex-shrink-0",children:S.jsx("div",{className:"flex items-center",children:S.jsx("span",{className:"text-lg font-medium text-gray-900",children:r.title||"图表"})})}),S.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden min-h-0",children:[S.jsx("div",{className:"flex justify-center mb-4 flex-shrink-0",children:S.jsx("div",{className:"inline-flex items-center rounded border border-gray-300 bg-gray-50 relative",children:c.map((h,f)=>{const d=a===h,p=f===c.length-1;return S.jsx(re.Fragment,{children:S.jsxs("button",{onClick:()=>o(h),className:`px-4 py-2 text-sm transition-colors flex items-center gap-2 relative ${d?"bg-white text-blue-600 border border-blue-600 z-[1] -mt-px -mb-px":"text-gray-900 bg-transparent z-0"} ${!p&&!d?"border-r border-gray-300":""} ${f>0&&!d?"border-l border-gray-300":""} ${d&&f>0?"-ml-px":""} ${d&&!p?"-mr-px":""}`,children:[Hme(h),S.jsx("span",{children:zme(h)})]})},h)})})}),S.jsx("div",{className:"flex-1 overflow-hidden pt-4 pb-4",children:s?S.jsx("div",{className:"w-full h-full overflow-auto",children:S.jsx(jp,{data:r,maxHeight:"100%"})}):u?S.jsx("div",{className:"flex items-center justify-center h-full text-gray-500",children:u}):S.jsx("div",{className:"w-full h-full",children:S.jsx(JB,{data:r,chartType:l,width:"100%",height:"100%"})})})]})]})})},Ume=({block:t,width:e="100%",height:r="400px"})=>{const[n,a]=re.useState(!1),i=t.content,o=re.useCallback(()=>{a(!0)},[]),s=re.useCallback(()=>{a(!1)},[]);return!i.rows||i.rows.length===0?S.jsx("div",{className:"flex items-center justify-center text-gray-500 border border-gray-200 rounded-lg p-4",style:{width:e,height:r,minWidth:"300px",minHeight:"200px"},children:"暂无数据"}):S.jsxs(S.Fragment,{children:[S.jsx("div",{className:"mb-16",children:S.jsx(g5,{block:{type:$e.TOOL,content:{name:"json2plot",title:i.title||"图表",icon:S.jsx(bF,{}),input:i,output:{data:i}},consumeTime:t.consumeTime}})}),S.jsx(eF,{data:i,width:e,height:r,onChartClick:o}),S.jsx(Vme,{open:n,onClose:s,data:i,initialViewType:i.chartType})]})},Gme=t=>S.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[S.jsx("path",{d:"M48 37.1149C48 43.1267 43.1265 48 37.1152 48H10.8849C4.87371 48 0 43.1266 0 37.1149V10.8851C0 4.87339 4.87363 0 10.8849 0H37.1152C43.1265 0 48 4.87339 48 10.8851V37.1149Z",fill:"#E6F2FE"}),S.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.6128 25.8479L33.8956 24.5114L33.9069 22.6834L37.1117 20.7876C37.1117 20.7876 38.6688 24.6019 36.1188 28.7542C33.5689 32.9065 28.4457 32.9292 28.4457 32.9292L32.6128 25.8479Z",fill:"url(#paint0_linear_2797_3498)",fillOpacity:"0.75"}),S.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.2528 32.9968L32.6002 25.873L28.445 32.9289L20.2528 32.9968Z",fill:"url(#paint1_linear_2797_3498)",fillOpacity:"0.75"}),S.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.4997 21.8178C32.4997 21.8178 32.5931 21.914 32.6737 22.0229C33.4438 23.0638 33.5795 24.2291 33.0379 25.1456C32.8908 25.3938 32.2911 26.0514 32.2911 26.0514C32.2911 26.0514 37.9214 23.1826 37.0664 20.5393C35.9746 17.162 33.1171 15.1226 28.6034 14.728L32.4997 21.8178Z",fill:"url(#paint2_linear_2797_3498)",fillOpacity:"0.75"}),S.jsx("path",{opacity:"0.05",fillRule:"evenodd",clipRule:"evenodd",d:"M37.0721 20.5387C37.0226 20.3852 36.9653 20.2375 36.908 20.0897L36.8055 19.8337C36.6697 19.4957 36.5057 19.1704 36.314 18.8599L36.068 18.4731L36.4194 20.9085C36.6103 22.0081 35.0836 23.4917 33.2493 24.6733C33.197 24.8353 33.1326 24.9944 33.0442 25.145C32.8971 25.3932 32.2975 26.0508 32.2975 26.0508C32.2975 26.0508 37.927 23.1827 37.0721 20.5387Z",fill:"black"}),S.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.4997 21.8175L20.6134 14.7271H28.6027L32.4997 21.8175Z",fill:"url(#paint3_linear_2797_3498)",fillOpacity:"0.75"}),S.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.4793 21.6742L20.5913 14.5864L24.3886 21.6156L32.4793 21.6742Z",fill:"url(#paint4_linear_2797_3498)",fillOpacity:"0.75"}),S.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.726 23.4722L16.6415 30.1299V31.8001L19.8688 37.3745C19.8688 37.3745 15.4457 37.284 13.3016 34.0121C11.1576 30.7401 10.3225 27.0383 12.726 23.4722Z",fill:"url(#paint5_linear_2797_3498)",fillOpacity:"0.75"}),S.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.6357 30.4858V34.6891C16.6357 34.6891 16.8896 37.4314 20.4557 37.4314C21.428 37.4314 22.3183 37.2772 23.1004 37.0523C24.8654 36.5453 26.4084 35.4606 27.5589 34.03L28.445 32.929L20.0724 32.9969C18.7755 32.9679 18.0444 32.6419 17.3238 31.8082C17.1138 31.5649 16.9462 31.2828 16.8295 30.9837L16.6357 30.4858Z",fill:"url(#paint6_linear_2797_3498)",fillOpacity:"0.75"}),S.jsx("path",{opacity:"0.05",fillRule:"evenodd",clipRule:"evenodd",d:"M19.6142 36.6519C17.6661 36.3266 17.3747 34.8543 17.3436 34.6457V34.2554L17.3471 31.8327C17.3394 31.8242 17.3316 31.8172 17.3238 31.808C17.1138 31.5647 16.9462 31.2826 16.8295 30.9834L16.6365 30.4863V34.6896C16.6365 34.6896 16.8529 36.922 19.5237 37.3534L19.6029 37.3675C20.3645 37.5061 21.0907 37.4234 21.9054 37.3138L21.9004 37.3067L19.6142 36.6519Z",fill:"black"}),S.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5797 23.7657L16.7094 16.7466C16.7094 16.7466 17.7701 13.7901 20.6135 14.7271H22.848L15.6543 11.3335L13.4707 13.2209C13.4707 13.2209 10.8642 16.2955 11.3832 20.0193C11.3832 20.0193 11.6993 22.7276 12.5797 23.7657Z",fill:"url(#paint7_linear_2797_3498)",fillOpacity:"0.75"}),S.jsx("path",{opacity:"0.05",fillRule:"evenodd",clipRule:"evenodd",d:"M22.7101 14.7272L15.522 11.5005C15.522 11.5005 13.9281 12.7344 13.472 13.2245C13.32 13.3871 12.9706 13.914 12.948 13.9472C12.7649 14.218 12.5181 14.6642 12.5181 14.6642L13.7761 13.7032C14.2159 13.4069 14.6409 13.192 15.1741 13.1234C15.2823 13.1092 15.3933 13.1022 15.5036 13.1022C16.0361 13.1022 16.5898 13.262 17.1039 13.5646L18.8455 14.6338C19.3024 14.5398 19.8115 14.4627 20.595 14.7116L22.7101 14.7272Z",fill:"black"}),S.jsx("path",{opacity:"0.07",fillRule:"evenodd",clipRule:"evenodd",d:"M16.9879 34.6549L16.9886 32.368L16.9893 32.3701L16.9929 31.3165C16.9335 31.2076 16.8741 31.098 16.8295 30.982L16.6365 30.4849V34.6881C16.6365 34.6881 16.8522 36.9135 19.511 37.3505L19.6694 37.3759C20.0725 37.4403 20.4819 37.4544 20.8885 37.4184L20.9932 37.4092L19.5563 36.9997C17.2036 36.608 16.99 34.6747 16.9879 34.6549Z",fill:"black"}),S.jsx("path",{opacity:"0.07",fillRule:"evenodd",clipRule:"evenodd",d:"M22.8055 14.718L15.6542 11.3521L13.4896 13.204C13.4896 13.204 13.385 13.3271 13.3751 13.3398C13.2047 13.5541 12.9543 13.9487 12.9543 13.9487L13.636 13.4565C14.1459 13.1121 14.66 12.8703 15.266 12.7918C15.389 12.7762 15.5149 12.7677 15.6408 12.7677C16.2362 12.7677 16.8514 12.9445 17.4206 13.279L19.5491 14.5462C19.8567 14.5526 20.2428 14.6049 20.607 14.7244L22.8055 14.718Z",fill:"black"}),S.jsx("path",{opacity:"0.07",fillRule:"evenodd",clipRule:"evenodd",d:"M37.0763 20.5773C37.0643 20.5384 37.0346 20.4295 37.0218 20.3913C36.8818 19.9579 36.5184 19.2231 36.5184 19.2231L36.7496 20.8482C37.048 22.5693 34.2619 24.4722 32.9409 25.2692C32.7238 25.5634 32.2791 26.0506 32.2791 26.0506C32.2791 26.0506 34.6614 24.8463 36.0912 23.2715C36.8479 22.4392 37.3577 21.5001 37.0763 20.5773Z",fill:"black"}),S.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5796 23.7659L16.6357 30.4859L16.7093 16.7476L12.5796 23.7659Z",fill:"url(#paint8_linear_2797_3498)",fillOpacity:"0.75"}),S.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.6134 14.7271L17.6003 12.9557C16.8825 12.5336 16.0474 12.3165 15.2215 12.4225C14.6515 12.4961 14.0229 12.7132 13.4706 13.2209C13.4706 13.2209 16.2129 9.53105 21.189 9.93695C26.1651 10.3428 28.6026 14.7271 28.6026 14.7271H20.6134Z",fill:"url(#paint9_linear_2797_3498)",fillOpacity:"0.75"}),S.jsxs("defs",{children:[S.jsxs("linearGradient",{id:"paint0_linear_2797_3498",x1:"30.8989",y1:"18.9619",x2:"23.8496",y2:"27.9788",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]}),S.jsxs("linearGradient",{id:"paint1_linear_2797_3498",x1:"23.5682",y1:"24.8019",x2:"20.9739",y2:"32.4452",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]}),S.jsxs("linearGradient",{id:"paint2_linear_2797_3498",x1:"30.8995",y1:"13.0254",x2:"24.3309",y2:"21.4573",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]}),S.jsxs("linearGradient",{id:"paint3_linear_2797_3498",x1:"23.805",y1:"13.6609",x2:"21.154",y2:"21.2147",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]}),S.jsxs("linearGradient",{id:"paint4_linear_2797_3498",x1:"21.1702",y1:"17.9012",x2:"26.5562",y2:"11.9785",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]}),S.jsxs("linearGradient",{id:"paint5_linear_2797_3498",x1:"13.5776",y1:"21.3818",x2:"5.27072",y2:"30.1169",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]}),S.jsxs("linearGradient",{id:"paint6_linear_2797_3498",x1:"19.8066",y1:"29.4415",x2:"17.2385",y2:"36.8635",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]}),S.jsxs("linearGradient",{id:"paint7_linear_2797_3498",x1:"14.4116",y1:"9.46414",x2:"7.68365",y2:"20.0732",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]}),S.jsxs("linearGradient",{id:"paint8_linear_2797_3498",x1:"13.6884",y1:"14.6818",x2:"7.02802",y2:"18.085",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]}),S.jsxs("linearGradient",{id:"paint9_linear_2797_3498",x1:"17.5337",y1:"9.1808",x2:"16.489",y2:"14.7539",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]})]})]}),jme=t=>S.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 49 49",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[S.jsx("path",{d:"M48.0203 37.1882C48.0203 43.1999 43.1468 48.0732 37.1354 48.0732H10.9052C4.89397 48.0732 0.0202637 43.1999 0.0202637 37.1882V10.9583C0.0202637 4.94663 4.89389 0.0732422 10.9052 0.0732422H37.1354C43.1468 0.0732422 48.0203 4.94663 48.0203 10.9583V37.1882Z",fill:"#E6F2FE"}),S.jsxs("g",{opacity:"0.75",children:[S.jsx("path",{d:"M37.7422 29.4049V19.5395C37.7422 17.5264 36.682 15.6663 34.9603 14.6598L26.5241 9.72707C24.8029 8.72053 22.682 8.72053 20.9603 9.72707L12.5241 14.6598C10.8029 15.6663 9.74219 17.5264 9.74219 19.5395V29.4049C9.74219 31.418 10.8024 33.278 12.5241 34.2845L20.9603 39.2173C22.6815 40.2238 24.8024 40.2238 26.5241 39.2173L34.9603 34.2845C36.6815 33.278 37.7422 31.418 37.7422 29.4049Z",fill:"url(#paint0_linear_2797_3529)"}),S.jsx("path",{d:"M23.7422 32.6879C23.23 32.6879 22.8151 32.2677 22.8151 31.7489V24.4721C22.8151 23.9534 23.23 23.5332 23.7422 23.5332C24.2545 23.5332 24.6694 23.9534 24.6694 24.4721V31.7489C24.6694 32.2677 24.2545 32.6879 23.7422 32.6879Z",fill:"white"}),S.jsx("path",{d:"M23.7468 25.4231C23.5897 25.4231 23.4302 25.3828 23.2842 25.2973L17.0616 21.6589C16.618 21.3998 16.4664 20.8256 16.7223 20.3763C16.9782 19.927 17.5451 19.7735 17.9887 20.0327L24.2113 23.6711C24.655 23.9302 24.8066 24.5044 24.5507 24.9537C24.3791 25.2551 24.0672 25.4231 23.7468 25.4231Z",fill:"white"}),S.jsx("path",{d:"M23.7608 25.3997C23.4405 25.3997 23.129 25.2311 22.957 24.9302C22.7011 24.4809 22.8527 23.9068 23.2963 23.6476L29.5189 20.0092C29.9626 19.7501 30.5295 19.9036 30.7854 20.3529C31.0413 20.8022 30.8897 21.3763 30.4461 21.6355L24.2235 25.2739C24.0829 25.3563 23.9233 25.3998 23.7608 25.3997Z",fill:"white"})]}),S.jsx("defs",{children:S.jsxs("linearGradient",{id:"paint0_linear_2797_3529",x1:"17.2604",y1:"4.31088",x2:"0.29693",y2:"30.3547",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]})})]}),Wme=t=>S.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[S.jsx("path",{d:"M48 37.1149C48 43.1267 43.1265 48 37.1152 48H10.8849C4.87371 48 0 43.1266 0 37.1149V10.8851C0 4.87339 4.87363 0 10.8849 0H37.1152C43.1265 0 48 4.87339 48 10.8851V37.1149Z",fill:"#E6F2FE"}),S.jsx("path",{opacity:"0.75",d:"M36.3962 12.5049H14.7313C14.1831 12.5049 13.7298 12.6999 13.3713 13.09C13.0128 13.48 12.8336 13.9703 12.8336 14.5606V17.2806C12.8336 17.8288 13.0339 18.298 13.4344 18.688C13.8351 19.0782 14.3096 19.2732 14.8578 19.2732H36.3961C37.0074 19.2732 37.5083 19.0254 37.8984 18.53C38.2885 18.0344 38.4835 17.4492 38.4835 16.7747V14.8453C38.4835 14.2338 38.2833 13.6909 37.8825 13.2165C37.4821 12.742 36.9865 12.5049 36.3962 12.5049ZM11.5053 27.0851H32.9171C33.7185 27.0851 34.2826 26.8795 34.6091 26.4684C34.936 26.0572 35.0994 25.546 35.0994 24.9344V23.1633C35.0994 22.9102 35.0625 22.6468 34.9887 22.3726C34.9148 22.0986 34.7884 21.8561 34.6091 21.6452C34.4299 21.4343 34.2085 21.2603 33.945 21.1232C33.6814 20.9863 33.3598 20.9176 32.9802 20.9176H11.4105C10.8623 20.9176 10.4037 21.1075 10.0347 21.487C9.69035 21.8411 9.50892 22.2696 9.48578 22.7704V25.188C9.509 25.6562 9.70091 26.0834 10.0663 26.4684C10.4564 26.8796 10.9361 27.0851 11.5053 27.0851ZM10.0663 34.9604C10.4564 35.2977 10.8833 35.4663 11.3472 35.4663H32.9802C33.6551 35.4663 34.177 35.2607 34.5458 34.8497C34.9148 34.4383 35.0994 33.9587 35.0994 33.4106V31.1967C35.0994 30.9014 35.0677 30.6063 35.0046 30.3111C34.9413 30.0159 34.8359 29.7524 34.6882 29.5204C34.5404 29.2885 34.3455 29.0987 34.1029 28.951C33.8605 28.8034 33.5602 28.7297 33.2016 28.7297H11.6003C11.0098 28.7297 10.5091 28.9405 10.0979 29.3622C9.72042 29.7494 9.51674 30.2346 9.48586 30.8174V33.706C9.509 34.2254 9.70099 34.6444 10.0663 34.9604Z",fill:"url(#paint0_linear_2797_3395)"}),S.jsx("defs",{children:S.jsxs("linearGradient",{id:"paint0_linear_2797_3395",x1:"17.2719",y1:"9.05232",x2:"6.75533",y2:"31.6276",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]})})]}),Yme=t=>S.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[S.jsx("path",{d:"M48 37.1149C48 43.1267 43.1265 48 37.1152 48H10.8849C4.87371 48 0 43.1266 0 37.1149V10.8851C0 4.87339 4.87363 0 10.8849 0H37.1152C43.1265 0 48 4.87339 48 10.8851V37.1149Z",fill:"#E6F2FE"}),S.jsxs("g",{opacity:"0.75",children:[S.jsx("path",{d:"M21.7049 9.79639C15.1607 9.79639 9.87137 14.2916 9.87137 19.8364C9.87137 23.0447 11.1355 25.7738 13.5132 27.7361V32.7425L18.6427 29.8582C19.3501 29.9723 20.9611 30.091 21.7049 30.091C28.2401 30.091 32.6258 25.3767 32.6258 19.8364C32.6258 14.2916 27.1448 9.79639 21.7049 9.79639ZM22.1796 27.3847C21.8555 27.7088 21.4083 27.9096 20.9154 27.9096C20.4226 27.9096 19.9753 27.7088 19.6513 27.3847C19.3273 27.0607 19.1265 26.6089 19.1265 26.116C19.1265 25.1257 19.9251 24.3225 20.9154 24.3225C21.4083 24.3225 21.8555 24.5233 22.1796 24.8473C22.5036 25.1714 22.7044 25.6232 22.7044 26.116C22.7044 26.6135 22.5036 27.0607 22.1796 27.3847ZM23.7403 20.4571C23.357 20.6533 23.0467 20.95 22.8322 21.3014C22.5766 21.7167 22.4579 22.2141 22.5081 22.7207C22.5264 22.8713 22.4032 23.0036 22.2526 23.0036H19.9479C19.6422 23.0036 19.3912 22.7572 19.3912 22.4514C19.3912 20.4023 20.5458 18.5404 22.3575 17.5592C22.75 17.3447 23.0193 17.0161 23.0147 16.5095C23.0101 15.825 22.4397 15.2773 21.7551 15.2773H20.9474C20.4317 15.2773 19.9844 15.5785 19.7791 16.0167C19.6924 16.1946 19.5098 16.3087 19.309 16.3087H17.1413C16.8127 16.3087 16.5663 16.0075 16.6347 15.6926C16.6621 15.5512 16.6986 15.4143 16.7397 15.2819C17.2919 13.493 18.9667 12.1923 20.9519 12.1923H21.7278C22.9417 12.1923 24.0461 12.6806 24.8402 13.4747C25.6388 14.2688 26.1317 15.3595 26.1317 16.5689C26.1226 18.2574 25.1551 19.7269 23.7403 20.4571Z",fill:"url(#paint0_linear_2797_3351)"}),S.jsx("path",{d:"M34.4695 17.8237L34.5152 18.5859C34.5197 19.3069 34.5152 19.243 34.5152 19.9093C34.5152 26.9465 28.7969 31.8205 20.8607 31.8205H18.1316C20.2994 33.8741 22.8185 35.1291 26.3234 35.1291C27.0536 35.1246 27.7838 35.0698 28.5048 34.9511L33.607 37.9997V32.9933C36.3726 31.1587 38.157 28.3065 38.157 25.0936C38.157 22.2322 36.7377 19.6538 34.4695 17.8237Z",fill:"url(#paint1_linear_2797_3351)"})]}),S.jsxs("defs",{children:[S.jsxs("linearGradient",{id:"paint0_linear_2797_3351",x1:"15.9811",y1:"6.34612",x2:"3.93292",y2:"26.6544",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]}),S.jsxs("linearGradient",{id:"paint1_linear_2797_3351",x1:"23.5086",y1:"14.79",x2:"12.9195",y2:"32.6549",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]})]})]}),$me=t=>S.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[S.jsx("path",{d:"M48 37.1149C48 43.1267 43.1265 48 37.1152 48H10.8849C4.87371 48 0 43.1266 0 37.1149V10.8851C0 4.87339 4.87363 0 10.8849 0H37.1152C43.1265 0 48 4.87339 48 10.8851V37.1149Z",fill:"#E6F2FE"}),S.jsxs("g",{opacity:"0.75",children:[S.jsx("path",{d:"M37.4289 35.1042C36.963 34.1058 36.2773 33.2404 35.5119 32.4483C34.4735 31.3833 33.2753 30.478 32.0306 29.6593C30.7592 28.8339 29.4279 28.0884 28.05 27.4627C29.1616 26.7238 30.0137 25.6521 30.6194 24.4739C31.4448 22.8697 31.8841 21.0991 32.1304 19.3152C32.3767 17.4248 32.4299 15.5077 32.2768 13.604C33.5549 13.0981 34.8329 12.5856 36.1109 12.073C36.5835 11.8733 37.0695 11.7003 37.5487 11.4939C32.9957 9.92302 28.4361 8.35211 23.8831 6.78785C23.8032 6.74791 23.7234 6.80782 23.6501 6.82779C19.3634 8.38539 15.0767 9.93633 10.7899 11.4939C12.3475 12.2195 13.9185 12.9317 15.4894 13.6573C15.1432 15.8539 15.2031 18.1304 15.7689 20.2937C16.1284 21.6649 16.6809 22.9829 17.4064 24.201C18.132 25.3992 19.004 26.5241 20.0623 27.4427C18.1586 28.0617 16.3081 28.8805 14.6706 30.0387C13.5457 30.8308 12.5273 31.7694 11.7085 32.8743C10.7966 34.0991 10.1443 35.5302 9.85804 37.0279C9.7116 37.8001 9.6517 38.5855 9.73157 39.3643C14.198 41.2548 19.0639 42.18 23.9164 42.1134C22.4187 40.8421 20.9077 39.564 19.4033 38.2927C20.6015 35.4038 21.7996 32.5082 22.9978 29.6193C23.0111 29.5661 23.0644 29.5062 23.0244 29.4529C22.685 28.8938 22.3388 28.3413 22.006 27.7755C22.5851 28.0817 23.2241 28.2748 23.8831 28.2814C24.4755 28.2881 25.0613 28.115 25.5472 27.7755C25.1878 28.3147 24.8217 28.8539 24.4556 29.3997C25.1611 31.0039 25.8734 32.6014 26.579 34.2056C27.1647 35.5436 27.7638 36.8748 28.3362 38.2061C26.8585 39.5041 25.3941 40.8154 23.923 42.1201C27.4975 42.0735 31.0587 41.521 34.4735 40.4959C35.5252 40.1698 36.5636 39.817 37.562 39.3643C37.8216 38.7653 37.9681 38.1196 37.9814 37.4673C37.9881 36.6685 37.775 35.8498 37.4289 35.1042Z",fill:"url(#paint0_linear_2797_3417)"}),S.jsx("path",{d:"M12.0946 19.2886H12.5273V19.7345H13.3793V19.2886H13.812V18.2502H13.3793V13.0781H12.5273C12.5206 14.8021 12.5273 16.5328 12.5273 18.2568H12.0946V19.2886Z",fill:"url(#paint1_linear_2797_3417)"})]}),S.jsxs("defs",{children:[S.jsxs("linearGradient",{id:"paint0_linear_2797_3417",x1:"17.2909",y1:"1.4597",x2:"-2.89257",y2:"28.9145",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]}),S.jsxs("linearGradient",{id:"paint1_linear_2797_3417",x1:"12.5557",y1:"12.0772",x2:"9.62625",y2:"13.3619",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]})]})]}),qme=t=>S.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[S.jsx("path",{d:"M48 37.1149C48 43.1267 43.1265 48 37.1152 48H10.8849C4.87371 48 0 43.1266 0 37.1149V10.8851C0 4.87339 4.87363 0 10.8849 0H37.1152C43.1265 0 48 4.87339 48 10.8851V37.1149Z",fill:"#E6F2FE"}),S.jsx("path",{opacity:"0.75",d:"M30.575 12.6359C26.8407 12.6359 24.9168 13.7188 24.0092 14.4747C23.0522 13.6626 21.1777 12.6359 17.3448 12.6359C12.4414 12.6257 9.87134 14.5003 9.87134 15.2307V33.9509C9.87134 34.6558 10.4238 35.2483 11.0848 35.2483C11.0848 35.2483 13.9608 34.5996 17.0981 34.5996C20.2799 34.5996 23.7181 35.2483 23.7181 35.2483C23.8168 35.2483 23.9204 35.2483 24.0191 35.1922C24.1177 35.1922 24.2213 35.2483 24.32 35.2483C24.32 35.2483 27.1959 34.5996 30.3332 34.5996C33.5051 34.6048 36.9434 35.2534 36.9434 35.2534C37.5995 35.2534 38.1569 34.6609 38.1569 33.9561V15.2358C38.152 14.2909 34.8074 12.4674 30.575 12.6359ZM22.2383 27.5202C22.2383 27.8982 21.8338 28.1689 21.3306 28.1689H13.3491C12.841 28.1689 12.4414 27.8982 12.4414 27.5202V26.8715C12.4414 26.4935 12.8459 26.2228 13.3491 26.2228H21.3257C21.8338 26.2228 22.2333 26.4935 22.2333 26.8715V27.5202H22.2383ZM22.2383 21.6717C22.2383 22.0497 21.8338 22.3204 21.3306 22.3204H13.3491C12.841 22.3204 12.4414 22.0497 12.4414 21.6717V21.023C12.4414 20.645 12.8459 20.3743 13.3491 20.3743H21.3257C21.8338 20.3743 22.2333 20.645 22.2333 21.023V21.6717H22.2383ZM36.534 32.6587C36.534 33.3635 35.9815 33.3074 35.3205 33.3074C35.3205 33.3074 32.8441 32.6587 30.5207 32.6587C28.3502 32.6587 26.3277 33.3074 26.3277 33.3074C25.6716 33.3074 25.1142 33.3635 25.1142 32.6587V16.5332C25.1142 16.5332 26.0712 15.1796 28.7004 14.7455V24.9203L31.1225 22.9691L33.5446 24.9203V14.9089C35.868 15.4503 36.5734 16.5332 36.5734 16.5332V32.6587H36.534Z",fill:"url(#paint0_linear_2797_3459)"}),S.jsx("defs",{children:S.jsxs("linearGradient",{id:"paint0_linear_2797_3459",x1:"17.4662",y1:"9.2225",x2:"7.03386",y2:"31.3885",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]})})]}),Xme=t=>S.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[S.jsx("path",{d:"M48 37.1149C48 43.1267 43.1265 48 37.1152 48H10.8849C4.87371 48 0 43.1266 0 37.1149V10.8851C0 4.87339 4.87363 0 10.8849 0H37.1152C43.1265 0 48 4.87339 48 10.8851V37.1149Z",fill:"#E6F2FE"}),S.jsx("path",{opacity:"0.75",d:"M36.5367 28.1017C36.5367 32.8586 30.7991 33.7114 23.7206 33.7114C16.6421 33.7114 10.9044 32.8586 10.9044 28.1017C10.9044 23.3448 16.6421 15.2334 23.7206 15.2334C30.7991 15.2334 36.5367 23.3495 36.5367 28.1017Z",fill:"url(#paint0_linear_2797_3474)"}),S.jsx("path",{d:"M33.0544 26.8226C33.0544 29.978 28.8755 29.9686 23.7206 29.9686C18.5657 29.9686 14.3868 29.978 14.3868 26.8226C14.3868 23.6671 18.5657 17.6973 23.7206 17.6973C28.8755 17.6973 33.0544 23.6671 33.0544 26.8226Z",fill:"url(#paint1_linear_2797_3474)"}),S.jsx("path",{d:"M24.5498 24.8938C24.5498 25.18 24.5921 25.4634 24.6742 25.7279C24.7564 25.9923 24.8768 26.2325 25.0286 26.4349C25.1804 26.6373 25.3605 26.7978 25.5589 26.9074C25.7572 27.0169 25.9697 27.0733 26.1844 27.0733C26.3991 27.0733 26.6116 27.0169 26.8099 26.9074C27.0082 26.7978 27.1884 26.6373 27.3402 26.4349C27.492 26.2325 27.6124 25.9923 27.6946 25.7279C27.7767 25.4634 27.819 25.18 27.819 24.8938C27.819 24.6076 27.7767 24.3242 27.6946 24.0598C27.6124 23.7953 27.492 23.5551 27.3402 23.3527C27.1884 23.1503 27.0082 22.9898 26.8099 22.8803C26.6116 22.7707 26.3991 22.7144 26.1844 22.7144C25.9697 22.7144 25.7572 22.7707 25.5589 22.8803C25.3605 22.9898 25.1804 23.1503 25.0286 23.3527C24.8768 23.5551 24.7564 23.7953 24.6742 24.0598C24.5921 24.3242 24.5498 24.6076 24.5498 24.8938Z",fill:"white"}),S.jsx("path",{d:"M18.0114 24.8938C18.0114 25.4718 18.1836 26.0262 18.4901 26.4349C18.7967 26.8436 19.2124 27.0733 19.6459 27.0733C20.0795 27.0733 20.4952 26.8436 20.8018 26.4349C21.1083 26.0262 21.2805 25.4718 21.2805 24.8938C21.2805 24.3158 21.1083 23.7614 20.8018 23.3527C20.4952 22.944 20.0795 22.7144 19.6459 22.7144C19.2124 22.7144 18.7967 22.944 18.4901 23.3527C18.1836 23.7614 18.0114 24.3158 18.0114 24.8938Z",fill:"white"}),S.jsx("path",{d:"M10.6815 16.011L11.5157 15.1768L15.8241 19.4851L14.9899 20.3193L10.6815 16.011Z",fill:"white"}),S.jsx("path",{opacity:"0.75",d:"M10.6815 16.011L11.5157 15.1768L15.8241 19.4851L14.9899 20.3193L10.6815 16.011Z",fill:"url(#paint2_linear_2797_3474)"}),S.jsx("path",{opacity:"0.75",d:"M33.2676 15.655C33.2676 16.2331 33.4972 16.7874 33.9059 17.1962C34.3147 17.6049 34.869 17.8345 35.447 17.8345C36.0251 17.8345 36.5794 17.6049 36.9881 17.1962C37.3969 16.7874 37.6265 16.2331 37.6265 15.655C37.6265 15.077 37.3969 14.5227 36.9881 14.1139C36.5794 13.7052 36.0251 13.4756 35.447 13.4756C34.869 13.4756 34.3147 13.7052 33.9059 14.1139C33.4972 14.5227 33.2676 15.077 33.2676 15.655Z",fill:"url(#paint3_linear_2797_3474)"}),S.jsx("path",{opacity:"0.75",d:"M32.1643 20.3159L31.3301 19.4817L35.6384 15.1733L36.4726 16.0076L32.1643 20.3159Z",fill:"url(#paint4_linear_2797_3474)"}),S.jsx("path",{opacity:"0.75",d:"M9.34094 15.655C9.34094 16.2331 9.57056 16.7874 9.97929 17.1962C10.388 17.6049 10.9424 17.8345 11.5204 17.8345C12.0984 17.8345 12.6528 17.6049 13.0615 17.1962C13.4702 16.7874 13.6999 16.2331 13.6999 15.655C13.6999 15.077 13.4702 14.5227 13.0615 14.1139C12.6528 13.7052 12.0984 13.4756 11.5204 13.4756C10.9424 13.4756 10.388 13.7052 9.97929 14.1139C9.57056 14.5227 9.34094 15.077 9.34094 15.655Z",fill:"url(#paint5_linear_2797_3474)"}),S.jsxs("defs",{children:[S.jsxs("linearGradient",{id:"paint0_linear_2797_3474",x1:"17.7869",y1:"12.455",x2:"9.83949",y2:"31.1942",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]}),S.jsxs("linearGradient",{id:"paint1_linear_2797_3474",x1:"19.3992",y1:"15.8521",x2:"14.4596",y2:"28.6249",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]}),S.jsxs("linearGradient",{id:"paint2_linear_2797_3474",x1:"12.0623",y1:"14.4035",x2:"9.37306",y2:"18.9747",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]}),S.jsxs("linearGradient",{id:"paint3_linear_2797_3474",x1:"34.438",y1:"12.8202",x2:"32.1585",y2:"16.6948",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]}),S.jsxs("linearGradient",{id:"paint4_linear_2797_3474",x1:"32.7109",y1:"14.4001",x2:"30.0216",y2:"18.9713",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]}),S.jsxs("linearGradient",{id:"paint5_linear_2797_3474",x1:"10.5113",y1:"12.8202",x2:"8.23188",y2:"16.6948",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]})]})]}),Zme=t=>S.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[S.jsx("path",{d:"M48 37.1149C48 43.1267 43.1265 48 37.1152 48H10.8849C4.87371 48 0 43.1266 0 37.1149V10.8851C0 4.87339 4.87363 0 10.8849 0H37.1152C43.1265 0 48 4.87339 48 10.8851V37.1149Z",fill:"#E6F2FE"}),S.jsxs("g",{opacity:"0.75",children:[S.jsx("path",{d:"M34.9102 27.0534C34.9102 27.5371 34.5144 27.9329 34.0263 27.9329H31.6647C31.1766 27.9329 30.7808 27.5371 30.7808 27.0534C30.7808 26.5696 31.1766 26.1738 31.6647 26.1738H34.0263C34.5144 26.1738 34.9102 26.5696 34.9102 27.0534Z",fill:"#6161F2"}),S.jsx("path",{d:"M37.3948 32.5506H35.6886C35.0421 32.5506 34.5232 32.0273 34.5232 31.3852V25.6331C34.5232 24.9867 35.0465 24.4678 35.6886 24.4678H37.3948C38.0413 24.4678 38.5602 24.9911 38.5602 25.6331V31.3808C38.5602 32.0273 38.0413 32.5506 37.3948 32.5506Z",fill:"url(#paint0_linear_2797_3368)"}),S.jsx("path",{d:"M37.3861 32.5506H35.6754C35.0289 32.5506 34.5056 32.0273 34.5056 31.3809V25.6288C34.5056 24.9823 35.0289 24.459 35.6754 24.459H37.3861C38.0325 24.459 38.5558 24.9823 38.5558 25.6288V31.3853C38.5558 32.0273 38.0325 32.5506 37.3861 32.5506Z",fill:"white",fillOpacity:"0.45"}),S.jsx("path",{d:"M13.1463 32.5506H11.44C10.7936 32.5506 10.2747 32.0273 10.2747 31.3852V25.6331C10.2747 24.9867 10.798 24.4678 11.44 24.4678H13.1463C13.7928 24.4678 14.3117 24.9911 14.3117 25.6331V31.3808C14.3161 32.0273 13.7928 32.5506 13.1463 32.5506Z",fill:"url(#paint1_linear_2797_3368)"}),S.jsx("path",{d:"M13.1551 32.5506H11.4444C10.798 32.5506 10.2747 32.0273 10.2747 31.3809V25.6288C10.2747 24.9823 10.798 24.459 11.4444 24.459H13.1551C13.8016 24.459 14.3249 24.9823 14.3249 25.6288V31.3853C14.3249 32.0273 13.8016 32.5506 13.1551 32.5506Z",fill:"white",fillOpacity:"0.45"}),S.jsx("path",{d:"M32.4915 36.5964H16.3434C14.1094 36.5964 12.302 34.7845 12.302 32.5549V24.4545C12.302 22.2205 14.1138 20.4131 16.3434 20.4131H32.4915C34.7255 20.4131 36.5329 22.2249 36.5329 24.4545V32.5549C36.5329 34.7845 34.7211 36.5964 32.4915 36.5964Z",fill:"url(#paint2_linear_2797_3368)"}),S.jsx("path",{d:"M15.6881 29.0103C15.6881 29.9492 16.0611 30.8496 16.725 31.5135C17.3889 32.1774 18.2893 32.5504 19.2282 32.5504C20.1671 32.5504 21.0676 32.1774 21.7315 31.5135C22.3954 30.8496 22.7683 29.9492 22.7683 29.0103C22.7683 28.0714 22.3954 27.171 21.7315 26.5071C21.0676 25.8432 20.1671 25.4702 19.2282 25.4702C18.2893 25.4702 17.3889 25.8432 16.725 26.5071C16.0611 27.171 15.6881 28.0714 15.6881 29.0103Z",fill:"#3285F7"}),S.jsx("path",{d:"M17.0954 29.0103C17.0954 29.576 17.3201 30.1185 17.7201 30.5184C18.1201 30.9184 18.6626 31.1431 19.2282 31.1431C19.7939 31.1431 20.3364 30.9184 20.7364 30.5184C21.1364 30.1185 21.3611 29.576 21.3611 29.0103C21.3611 28.4446 21.1364 27.9021 20.7364 27.5021C20.3364 27.1022 19.7939 26.8774 19.2282 26.8774C18.6626 26.8774 18.1201 27.1022 17.7201 27.5021C17.3201 27.9021 17.0954 28.4446 17.0954 29.0103Z",fill:"#A0BEFD"}),S.jsx("path",{d:"M25.8027 29.0103C25.8027 29.4752 25.8943 29.9355 26.0722 30.365C26.2501 30.7945 26.5108 31.1848 26.8396 31.5135C27.1683 31.8423 27.5586 32.103 27.9881 32.2809C28.4176 32.4588 28.8779 32.5504 29.3428 32.5504C29.8077 32.5504 30.268 32.4588 30.6975 32.2809C31.127 32.103 31.5173 31.8423 31.846 31.5135C32.1747 31.1848 32.4355 30.7945 32.6134 30.365C32.7913 29.9355 32.8829 29.4752 32.8829 29.0103C32.8829 28.5454 32.7913 28.0851 32.6134 27.6556C32.4355 27.2261 32.1747 26.8358 31.846 26.5071C31.5173 26.1784 31.127 25.9176 30.6975 25.7397C30.268 25.5618 29.8077 25.4702 29.3428 25.4702C28.8779 25.4702 28.4176 25.5618 27.9881 25.7397C27.5586 25.9176 27.1683 26.1784 26.8396 26.5071C26.5108 26.8358 26.2501 27.2261 26.0722 27.6556C25.8943 28.0851 25.8027 28.5454 25.8027 29.0103Z",fill:"#3285F7"}),S.jsx("path",{d:"M27.2099 29.0103C27.2099 29.576 27.4346 30.1185 27.8346 30.5184C28.2346 30.9184 28.7771 31.1431 29.3428 31.1431C29.9084 31.1431 30.4509 30.9184 30.8509 30.5184C31.2509 30.1185 31.4756 29.576 31.4756 29.0103C31.4756 28.4446 31.2509 27.9021 30.8509 27.5021C30.4509 27.1022 29.9084 26.8774 29.3428 26.8774C28.7771 26.8774 28.2346 27.1022 27.8346 27.5021C27.4346 27.9021 27.2099 28.4446 27.2099 29.0103Z",fill:"#A0BEFD"}),S.jsx("path",{d:"M22.1526 13.8387C22.1526 14.5093 22.4191 15.1525 22.8933 15.6267C23.3675 16.1009 24.0107 16.3673 24.6813 16.3673C25.3519 16.3673 25.9951 16.1009 26.4693 15.6267C26.9435 15.1525 27.2099 14.5093 27.2099 13.8387C27.2099 13.1681 26.9435 12.5249 26.4693 12.0507C25.9951 11.5765 25.3519 11.3101 24.6813 11.3101C24.0107 11.3101 23.3675 11.5765 22.8933 12.0507C22.4191 12.5249 22.1526 13.1681 22.1526 13.8387Z",fill:"url(#paint3_linear_2797_3368)"}),S.jsx("path",{d:"M23.6479 15.356H25.6708V23.4476H23.6479V15.356Z",fill:"url(#paint4_linear_2797_3368)"})]}),S.jsxs("defs",{children:[S.jsxs("linearGradient",{id:"paint0_linear_2797_3368",x1:"35.6072",y1:"23.2524",x2:"30.8355",y2:"27.3034",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]}),S.jsxs("linearGradient",{id:"paint1_linear_2797_3368",x1:"11.3586",y1:"23.2524",x2:"6.58699",y2:"27.3034",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]}),S.jsxs("linearGradient",{id:"paint2_linear_2797_3368",x1:"18.8082",y1:"17.9797",x2:"12.2172",y2:"34.754",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]}),S.jsxs("linearGradient",{id:"paint3_linear_2797_3368",x1:"23.5106",y1:"10.5496",x2:"20.8659",y2:"15.045",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]}),S.jsxs("linearGradient",{id:"paint4_linear_2797_3368",x1:"24.191",y1:"14.1393",x2:"20.706",y2:"15.6202",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]})]})]}),Kme=t=>S.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[S.jsx("path",{d:"M48 37.1149C48 43.1267 43.1265 48 37.1152 48H10.8849C4.87371 48 0 43.1266 0 37.1149V10.8851C0 4.87339 4.87363 0 10.8849 0H37.1152C43.1265 0 48 4.87339 48 10.8851V37.1149Z",fill:"#E6F2FE"}),S.jsxs("g",{opacity:"0.75",children:[S.jsx("path",{d:"M32.7773 14.8871H38.1936C37.4094 14.131 35.8523 12.6747 34.34 11.2688C33.3038 10.3054 32.318 9.37562 31.7579 8.84912V13.8677C31.7579 14.4334 32.2116 14.8871 32.7773 14.8871Z",fill:"url(#paint0_linear_2797_3441)"}),S.jsx("path",{d:"M32.7774 16.8812C31.1194 16.8812 29.764 15.5257 29.764 13.8678V8.21631H13.5208C11.8348 8.21631 10.457 9.58858 10.457 11.2801V35.376C10.457 37.062 11.8292 38.4398 13.5208 38.4398H35.6787C37.3647 38.4398 38.7425 37.0676 38.7425 35.376V16.8812H32.7774ZM29.6631 33.0516H19.7268C19.1779 33.0516 18.7298 32.6035 18.7298 32.0546C18.7298 31.5057 19.1779 31.0576 19.7268 31.0576H29.6631C30.2121 31.0576 30.6601 31.5057 30.6601 32.0546C30.6601 32.6035 30.2177 33.0516 29.6631 33.0516ZM30.9906 20.1579L28.4421 22.6503L29.0414 26.151C29.1086 26.5207 28.9518 26.9072 28.6437 27.1256C28.3357 27.3497 27.9324 27.3777 27.5963 27.1984L24.4485 25.5461L21.3007 27.1984C21.1495 27.2713 20.9926 27.3161 20.8358 27.3161C20.6286 27.3161 20.4213 27.2488 20.2477 27.1256C19.9396 26.9016 19.7884 26.5263 19.85 26.151L20.4493 22.6503L17.9008 20.1691C17.6264 19.9058 17.5368 19.5025 17.6488 19.1497C17.7664 18.7912 18.0801 18.5279 18.4553 18.4719L21.9784 17.9566L23.5579 14.7696C23.7204 14.4279 24.0732 14.2095 24.4541 14.2095C24.835 14.2095 25.1767 14.4279 25.3503 14.7696L26.9298 17.9566L30.4529 18.4719C30.8226 18.5279 31.1418 18.7856 31.2595 19.1497C31.3547 19.4969 31.2651 19.8946 30.9906 20.1579Z",fill:"url(#paint1_linear_2797_3441)"}),S.jsx("path",{d:"M25.3615 19.301L24.4485 17.4526L23.5356 19.301C23.3955 19.5923 23.1099 19.7995 22.785 19.8499L20.7462 20.1468L22.2249 21.5806C22.4602 21.8159 22.5666 22.1408 22.5162 22.4656L22.1633 24.4988L23.9893 23.5354C24.2805 23.3842 24.6278 23.3842 24.919 23.5354L26.745 24.4988L26.3921 22.4656C26.3361 22.1408 26.4425 21.8103 26.6834 21.5806L28.1621 20.1468L26.1233 19.8499C25.7816 19.7995 25.5015 19.5923 25.3615 19.301Z",fill:"url(#paint2_linear_2797_3441)"})]}),S.jsxs("defs",{children:[S.jsxs("linearGradient",{id:"paint0_linear_2797_3441",x1:"33.486",y1:"7.94123",x2:"30.4294",y2:"13.4789",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]}),S.jsxs("linearGradient",{id:"paint1_linear_2797_3441",x1:"18.0518",y1:"3.67178",x2:"1.75752",y2:"29.5927",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]}),S.jsxs("linearGradient",{id:"paint2_linear_2797_3441",x1:"22.7374",y1:"16.3931",x2:"19.1466",y2:"22.817",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]})]})]}),Qme=t=>S.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[S.jsx("path",{d:"M48 37.1149C48 43.1267 43.1265 48 37.1152 48H10.8849C4.87371 48 0 43.1266 0 37.1149V10.8851C0 4.87339 4.87363 0 10.8849 0H37.1152C43.1265 0 48 4.87339 48 10.8851V37.1149Z",fill:"#E6F2FE"}),S.jsxs("g",{opacity:"0.75",children:[S.jsx("path",{d:"M34.195 14.2599L38.1569 16.5461V22.1761L31.4076 26.0729L31.391 20.603L27.1962 18.1744L34.195 14.2599ZM19.6068 38.4974V30.9986L24.0809 33.5663L28.5187 31.0085L28.4844 38.4687L24.0125 41.0386L19.6101 38.4996L19.6068 38.4974ZM21.4315 18.1137L16.7697 20.7829V26.031L9.87137 22.0116V16.5517L14.2947 13.9961L21.4382 18.1148L21.4315 18.1137ZM24.3161 19.7828L28.5617 22.2324L28.5352 27.7266L24.0776 30.3009L19.6013 27.6879V22.4156L24.3183 19.7828H24.3161Z",fill:"url(#paint0_linear_2797_3564)"}),S.jsx("path",{d:"M31.1901 12.527L24.273 16.4868L17.1296 12.3559L24.0136 8.38184L31.1901 12.527ZM16.7498 36.8484L9.87137 32.8744V25.4163L16.7598 29.3761V36.8551L16.7498 36.8484ZM38.1569 25.4395V32.8777L31.4374 36.7524L31.4175 29.3253L38.1514 25.4351L38.1569 25.4395Z",fill:"url(#paint1_linear_2797_3564)"})]}),S.jsxs("defs",{children:[S.jsxs("linearGradient",{id:"paint0_linear_2797_3564",x1:"17.4662",y1:"9.92987",x2:"3.64041",y2:"34.5111",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]}),S.jsxs("linearGradient",{id:"paint1_linear_2797_3564",x1:"17.4662",y1:"4.10049",x2:"2.52871",y2:"29.3238",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]})]})]}),Jme={1:Gme,2:jme,3:Wme,4:Yme,5:$me,6:qme,7:Xme,8:Zme,9:Kme,10:Qme},vg=({name:t,...e})=>{const r=Jme[t];return r?S.jsx(r,{...e}):null},e2e=({messageId:t,onRegenerate:e,disabled:r=!1,className:n=""})=>{const a=async()=>{if(!r)try{await e(t)}catch(i){console.error("重新生成失败:",i)}};return S.jsx("button",{onClick:a,disabled:r,className:`flex items-center justify-center w-[24px] h-[24px] rounded hover:bg-[rgba(0,0,0,0.05)] ${r?"opacity-50 cursor-not-allowed":""} ${n}`,title:"重新生成",children:S.jsx(YA,{className:"w-[14px] h-[14px] text-[rgba(0,0,0,0.45)]"})})},t2e=({elapsedSeconds:t,totalTokens:e,className:r=""})=>{if(t==null&&e==null)return null;const n=[];if(t!=null){const i=Math.max(0,t).toFixed(2);n.push(`耗时: ${i}s`)}if(e!=null){const a=e.toLocaleString("en-US");n.push(`Token: ${a}`)}return S.jsx("div",{className:`flex items-center text-[12px] text-[rgba(0,0,0,0.45)] ${r}`,style:{fontFamily:"Noto Sans SC"},children:S.jsx("span",{className:"leading-[20px] whitespace-nowrap",children:n.join(" ")})})},r2e=({questions:t,onSelectQuestion:e,className:r=""})=>{if(!t||t.length===0)return null;const n=a=>{e&&e(a)};return S.jsxs("div",{className:`flex flex-wrap gap-[8px] ${r} flex-col`,style:{fontFamily:"Noto Sans SC"},children:[S.jsx("div",{className:"flex flex-col gap-[8px]",children:"您是否想了解下面的内容:"}),t.map((a,i)=>S.jsx("div",{tabIndex:0,onClick:()=>n(a),onKeyDown:o=>{(o.key==="Enter"||o.key===" ")&&(o.preventDefault(),n(a))},className:"inline-flex items-center justify-center text-left w-fit max-w-[320px] px-[12px] py-[8px] rounded-[6px] text-[14px] leading-[22px] text-[rgba(0,0,0,0.85)] break-words whitespace-normal border border-white/50 shadow-sm cursor-pointer transition-all duration-200 hover:border-[#126EE3]/40 hover:shadow-md bg-[linear-gradient(135deg,rgba(246,247,255,0.92)_0%,rgba(242,251,255,0.92)_40%,rgba(255,246,251,0.92)_100%),radial-gradient(circle_at_70%_30%,rgba(99,102,241,0.12)_0%,transparent_70%),radial-gradient(circle_at_30%_70%,rgba(236,72,153,0.08)_0%,transparent_60%)] backdrop-blur-sm hover:bg-[linear-gradient(135deg,rgba(240,242,255,0.95)_0%,rgba(232,248,255,0.95)_40%,rgba(255,239,248,0.95)_100%),radial-gradient(circle_at_70%_30%,rgba(99,102,241,0.16)_0%,transparent_70%),radial-gradient(circle_at_30%_70%,rgba(236,72,153,0.1)_0%,transparent_60%)]",title:a,children:S.jsx("span",{children:a})},`${a}-${i}`))]})},n2e=({message:t,isStreaming:e=!1,agentAvatar:r,onRegenerate:n,isLastAssistantMessage:a=!1,onSelectQuestion:i})=>{var p,v,g;const o=t.role.type===kn.USER,[s,l]=re.useState(!1),u=()=>{var m;return Array.isArray(t.content)?t.content.some(y=>{var x;return y.type===$e.TEXT||y.type===$e.MARKDOWN?((x=y.content)==null?void 0:x.trim().length)>0:!0}):((m=t.content)==null?void 0:m.trim().length)>0},c=async()=>{await kL(t)&&(l(!0),setTimeout(()=>l(!1),1e3))},h=()=>S.jsx("span",{className:"shiny-text text-[14px]",style:{fontFamily:"Noto Sans SC"},children:"正在思考..."}),f=(m,y)=>{if(!(y!=null&&y.length)||m.type!==$e.TEXT&&m.type!==$e.MARKDOWN)return!1;const x=typeof m.content=="string"?m.content.trim():"";if(!x)return!1;try{const b=JSON.parse(x);return!Array.isArray(b)||b.length!==y.length?!1:b.every((T,_)=>T===y[_])}catch{return!1}},d=()=>{var m;if(e&&!u())return h();if(Array.isArray(t.content)){const y=(m=t.messageContext)==null?void 0:m.relatedQuestions;return S.jsx("div",{className:"space-y-2",children:t.content.map((x,b)=>{if(f(x,y))return null;switch(x.type){case $e.TEXT:return S.jsx(PX,{block:x},b);case $e.MARKDOWN:return S.jsx(UL,{block:x},b);case $e.WEB_SEARCH:return S.jsx(BX,{block:x},b);case $e.JSON2PLOT:return S.jsx(Ume,{block:x},b);case $e.WEB_PROCESSOR:return S.jsx(iL,{block:x},b);case $e.TOOL:return S.jsx(g5,{block:x},b);default:return null}})})}return S.jsx("p",{className:"text-[14px] whitespace-pre-wrap break-words leading-[24px]",children:t.content})};return S.jsxs("div",{className:`flex ${o?"justify-end":"justify-start"} mb-2 group`,children:[!o&&S.jsx("div",{className:"w-[21px] h-[21px] mr-2 flex-shrink-0",children:r?S.jsx(vg,{name:r,className:"w-[21px] h-[21px]"}):S.jsx(_6,{className:"w-[21px] h-[21px]"})}),S.jsxs("div",{className:`flex flex-col gap-2 ${o?"max-w-[calc(100%-30px)]":"w-[calc(100%-30px)]"}`,children:[o&&t.applicationContext&&t.applicationContext.title&&S.jsx("div",{className:"self-end",children:S.jsx("span",{className:"inline-block bg-[rgba(18,110,227,0.04)] rounded-[8px] px-[14px] py-[5px] text-[12px] leading-[24px] text-[rgba(0,0,0,0.85)]",style:{fontFamily:"Noto Sans SC"},children:t.applicationContext.title})}),S.jsx("div",{className:`rounded-[6px] ${o?"bg-[#DBE8FF] text-[rgba(0,0,0,0.85)] px-[14px] py-[5px]":"bg-white text-black"}`,style:{fontFamily:"Noto Sans SC"},children:d()}),!o&&!e&&u()&&S.jsxs("div",{className:"flex items-center justify-between gap-2",children:[S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx("button",{onClick:c,className:"flex items-center justify-center w-[24px] h-[24px] rounded hover:bg-[rgba(0,0,0,0.05)]",title:s?"已复制":"复制",children:S.jsx(WA,{className:`w-[14px] h-[14px] ${s?"text-[#126EE3]":"text-[rgba(0,0,0,0.45)]"}`})}),n&&a&&S.jsx(e2e,{messageId:t.messageId,onRegenerate:n,disabled:e})]}),S.jsx(t2e,{elapsedSeconds:(p=t.messageContext)==null?void 0:p.elapsedSeconds,totalTokens:(v=t.messageContext)==null?void 0:v.totalTokens})]}),!o&&a&&!e&&S.jsx(r2e,{questions:((g=t.messageContext)==null?void 0:g.relatedQuestions)??[],onSelectQuestion:i,className:"mt-2"})]})]})},a2e=({messageId:t,onHeightChange:e,className:r,children:n})=>{const a=re.useRef(null);return re.useEffect(()=>{const i=a.current;if(!i||!e)return;const o=()=>{const l=i.getBoundingClientRect();l.height>0&&e(t,l.height)};o();const s=new ResizeObserver(()=>{o()});return s.observe(i),()=>{s.disconnect()}},[t,e]),S.jsx("div",{ref:a,className:r,children:n})},i2e=({messageCount:t,onExpand:e})=>S.jsx("div",{className:"w-full flex justify-center my-2",children:S.jsxs("button",{type:"button",onClick:e,className:"px-3 py-1 rounded-full bg-[rgba(0,0,0,0.04)] hover:bg-[rgba(0,0,0,0.08)] text-[12px] leading-[20px] text-[rgba(0,0,0,0.65)] transition-colors",style:{fontFamily:"Noto Sans SC"},children:["展开更早的对话(共 ",t," 条)"]})});function o2e(t){const{getOrderedMessageIds:e,shouldUseAnchor:r}=t,n=re.useRef(null),a=re.useRef(null),i=re.useRef(new Map),o=re.useRef(new Map),s=re.useRef(null),l=re.useCallback(v=>{n.current=v},[]),u=re.useCallback((v,g)=>{const m=e();if(!m.length)return null;let y=0;for(let x=0;x<m.length;x++){const b=m[x];if(b===v)return y;const T=g.get(b);typeof T=="number"&&(y+=T)}return null},[e]),c=re.useCallback(()=>{if(r&&!r())return;const v=n.current,g=a.current;if(!v||!g)return;const m=i.current,y=u(g.messageId,m);if(y==null)return;const x=Math.max(0,y-g.offset);v.scrollTop=x},[u]),h=re.useCallback(()=>{if(s.current=null,!o.current.size)return;const v=new Map(i.current);o.current.forEach((g,m)=>{v.set(m,g)}),o.current.clear(),i.current=v,c()},[c]),f=re.useCallback(()=>{s.current==null&&(s.current=window.requestAnimationFrame(h))},[h]),d=re.useCallback((v,g)=>{g<=0||(o.current.set(v,g),f())},[f]),p=re.useCallback(v=>{const m=v.currentTarget.scrollTop,y=i.current,x=e();if(!x.length)return;let b=0,T=x[0],_=0;for(let E=0;E<x.length;E++){const N=x[E],A=y.get(N)??0,D=b+A;if(D>m){T=N,_=m-b;break}b=D}a.current={messageId:T,offset:_}},[e]);return re.useEffect(()=>()=>{s.current!=null&&cancelAnimationFrame(s.current)},[]),{handleMessageHeightChange:d,handleScroll:p,registerScrollContainer:l,restoreScrollByAnchor:c}}const s2e=80,l2e=24,u2e=150,c2e=({messages:t,streamingMessageId:e,agentAvatar:r,onRegenerate:n,onSelectQuestion:a})=>{var N;const i=re.useRef(null),o=re.useRef(!0),s=re.useRef(null),[l,u]=re.useState(()=>new Set),c=re.useMemo(()=>{for(let A=t.length-1;A>=0;A--)if(t[A].role.type===kn.ASSISTANT)return A;return-1},[t]),h=re.useMemo(()=>{const A=[];if(!t.length)return A;let D=null;for(let R=0;R<t.length;R++){const B=t[R];B.role.type===kn.USER||!D?(D={id:`chunk-${B.messageId}`,messageIds:[B.messageId],startIndex:R,endIndex:R},A.push(D)):(D.messageIds.push(B.messageId),D.endIndex=R)}return A},[t]),f=re.useMemo(()=>{const A=new Set;if(!h.length)return A;let D=u2e;for(let R=h.length-1;R>=0&&D>0;R--){const B=h[R];A.add(B.id),D-=B.messageIds.length}return A},[h]),d=re.useMemo(()=>{const A=new Set(f);return l.forEach(D=>A.add(D)),A},[f,l]),p=re.useMemo(()=>{if(!t.length||!h.length)return[];const A=[];return h.forEach(D=>{if(d.has(D.id))for(let B=D.startIndex;B<=D.endIndex;B++)A.push(t[B].messageId)}),A},[t,h,d]),{handleMessageHeightChange:v,handleScroll:g,registerScrollContainer:m}=o2e({getOrderedMessageIds:()=>p,shouldUseAnchor:()=>!o.current}),y=re.useCallback(A=>{const D=A.currentTarget,R=D.scrollHeight-(D.scrollTop+D.clientHeight);o.current=R<=s2e,g(A)},[g]),x=re.useCallback(A=>{i.current=A,m(A)},[m]),b=re.useCallback(A=>{u(D=>{if(D.has(A))return D;const R=new Set(D);return R.add(A),R})},[]),T=re.useCallback(A=>{for(let D=A-1;D>=0;D--)if(t[D].role.type===kn.USER)return t[D];return null},[t]),_=re.useCallback(async(A,D)=>{if(!n)return;const R=T(D);R&&await n(A,R)},[n,T]);re.useEffect(()=>{if(!i.current||!t.length)return;const D=t[t.length-1],R=(D==null?void 0:D.messageId)??null,B=s.current;s.current=R,o.current&&(B!==null&&B===R||requestAnimationFrame(()=>{if(!i.current)return;const{scrollHeight:M,clientHeight:w}=i.current;i.current.scrollTop=Math.max(0,M-w)}))},[t.length,(N=t[t.length-1])==null?void 0:N.messageId]),re.useEffect(()=>{if(!t.length||!i.current)return;const A=t[t.length-1];if((A==null?void 0:A.messageId)!==e||!o.current)return;const D=requestAnimationFrame(()=>{if(!i.current)return;const{scrollHeight:R,clientHeight:B}=i.current;i.current.scrollTop=Math.max(0,R-B)});return()=>cancelAnimationFrame(D)},[t,e]);const E=re.useMemo(()=>{if(!t.length||!h.length)return null;const A=[];return h.forEach(D=>{if(!d.has(D.id)){const B=D.messageIds.length;A.push(S.jsx(i2e,{messageCount:B,onExpand:()=>b(D.id)},D.id));return}for(let B=D.startIndex;B<=D.endIndex;B++){const M=t[B],w=B;A.push(S.jsx(a2e,{messageId:M.messageId,onHeightChange:v,className:"flex flex-col gap-0",children:S.jsx(n2e,{message:M,isStreaming:M.messageId===e,agentAvatar:r,onRegenerate:n?L=>_(L,w):void 0,isLastAssistantMessage:w===c,onSelectQuestion:a})},M.messageId))}}),A},[t,h,d,b,v,e,r,n,c,a]);return S.jsx("div",{className:"w-full flex flex-col items-center justify-center h-full min-h-0",children:S.jsx("div",{ref:x,className:"w-full max-w-[960px] flex-1 min-h-0 overflow-y-auto overflow-x-hidden py-6",style:{marginBottom:l2e},onScroll:y,children:S.jsx("div",{className:"flex flex-col gap-6 flex-shrink-0",children:E})})})},h2e={fontFamily:"Noto Sans SC"},f2e=re.memo(function(){return S.jsxs("div",{className:"flex items-center","aria-hidden":!0,children:[S.jsx("div",{className:"h-[5px] w-[5px] rounded-full mr-[10px] task-dot bg-[#b3d4fc]"}),S.jsx("div",{className:"h-[5px] w-[5px] rounded-full mr-[10px] task-dot bg-[#b3d4fc]"}),S.jsx("div",{className:"h-[5px] w-[5px] rounded-full mr-[10px] task-dot bg-[#b3d4fc]"}),S.jsx("div",{className:"h-[5px] w-[5px] rounded-full mr-[10px] task-dot bg-[#b3d4fc]"}),S.jsx("div",{className:"h-[5px] w-[5px] rounded-full task-dot bg-[#b3d4fc]"})]})}),d2e=re.memo(function({className:e=""}){return S.jsxs("div",{className:`inline-flex items-center px-4 py-2 rounded-lg ${e}`,style:{contain:"layout style paint"},children:[S.jsx("span",{className:"text-[14px] text-[rgba(0,0,0,0.65)] mr-2",style:h2e,children:"任务正在进行中"}),S.jsx(f2e,{})]})}),p2e=({value:t,onChange:e,onSend:r,context:n,onRemoveContext:a,disabled:i=!1,isStreaming:o=!1,onStop:s})=>{const[l,u]=re.useState(!1),c=async()=>{if(!(l||!t.trim()||i))try{u(!0),await r()}finally{u(!1)}},h=f=>{f.key==="Enter"&&!f.shiftKey&&(f.preventDefault(),c())};return S.jsx("div",{className:"w-full flex justify-center pr-1.5",children:S.jsxs("div",{className:"w-full max-w-[960px] px-5 pb-3",children:[n&&n.title&&S.jsxs("div",{className:"mb-2 bg-[rgba(18,110,227,0.04)] rounded-lg px-4 py-2 flex items-center",children:[S.jsx("p",{className:"text-[12px] leading-6 text-[rgba(0,0,0,0.85)] truncate",style:{fontFamily:"Noto Sans SC"},children:n.title}),S.jsx("button",{onClick:a,className:"ml-auto text-[rgba(0,0,0,0.45)] hover:text-[rgba(0,0,0,0.85)] transition-colors flex-shrink-0",title:"移除上下文",children:S.jsx(rf,{})})]}),o&&S.jsx("div",{className:"flex justify-center mb-[12px]",children:S.jsx(d2e,{})}),S.jsxs("div",{className:"relative bg-white rounded-[12px] overflow-hidden",style:{background:"linear-gradient(#fff,#fff) padding-box, linear-gradient(45.59deg, #3B9BE0 -3.35%, #FFAA00 57.9%, rgba(50, 50, 50, 0.646918) 102.8%) border-box",border:"1.5px solid transparent"},children:[S.jsx("textarea",{value:t,onChange:f=>e(f.target.value),onKeyDown:h,placeholder:"请输入要查找的内容",disabled:i,className:"w-full h-[110px] resize-none px-4 py-3 text-[14px] leading-[22px] text-black placeholder:text-[rgba(0,0,0,0.3)] focus:outline-none disabled:bg-gray-50 disabled:cursor-not-allowed",style:{fontFamily:"Noto Sans SC"},maxLength:4e3}),o?S.jsx("button",{onClick:s,className:"absolute bottom-3 right-4 w-[32px] h-[32px] rounded-md transition-colors stop-button-loading",title:"停止响应",children:S.jsxs("div",{className:"stop-button-outer",children:[S.jsx("div",{className:"stop-button-ring"}),S.jsx("div",{className:"stop-button-middle",children:S.jsx("div",{className:"stop-button-inner"})})]})}):S.jsx("button",{onClick:c,disabled:i||l||!t.trim(),className:"absolute bottom-3 right-4 w-8 h-8 flex items-center justify-center bg-[#126EE3] hover:bg-[#126EE3] rounded-md transition-colors disabled:opacity-25 disabled:cursor-not-allowed transition-opacity",title:i||l?"正在发送...":"发送消息",children:S.jsx(zA,{disabled:i||l||!t.trim()})})]}),S.jsx("p",{className:"mt-2 text-center text-[12px] leading-[18px] text-[rgba(0,0,0,0.55)]",style:{fontFamily:"Noto Sans SC"},children:"回答的内容由 AI 生成,不能保证完全真实准确,请仔细甄别"})]})})},v2e=({label:t,onClick:e,disabled:r=!1,className:n=""})=>{const a=()=>{r||e(t)};return S.jsx("div",{onClick:a,className:`inline-flex items-center justify-center text-left w-fit px-[12px] py-[8px] rounded-[6px] text-[14px] leading-[22px] text-[rgba(0,0,0,0.85)] break-words whitespace-normal border border-white/50 shadow-sm cursor-pointer transition-all duration-200 hover:border-[#126EE3]/40 hover:shadow-md bg-[#F8F9FC] backdrop-blur-sm hover:bg-[#F0F2FF] ${r?"opacity-50 cursor-not-allowed":""} ${n}`,style:{fontFamily:"Noto Sans SC"},children:S.jsx("span",{children:t})})},g2e=({onQuestionClick:t,prologue:e,predefinedQuestions:r,agentInfo:n})=>{const a=r||[],i=o=>{t&&t(o)};return S.jsx("div",{className:"w-full flex justify-center",children:S.jsxs("div",{className:"w-full max-w-[960px] px-5 py-8",children:[(n==null?void 0:n.name)&&S.jsxs("p",{className:"text-2xl text-[rgba(0,0,0,0.85)] font-normal mb-6 flex items-center gap-5",style:{fontFamily:"Noto Sans SC"},children:[(n==null?void 0:n.avatar)&&S.jsx(vg,{name:n.avatar,width:48,height:48}),n.name]}),e&&S.jsx("div",{className:"mb-6 bg-[rgba(248,249,252,1)] rounded-[12px] px-4 py-3",style:{fontFamily:"Noto Sans SC"},children:S.jsx("div",{className:"text-[14px] leading-[22px] text-[rgba(0,0,0,0.85)]",children:S.jsx(UL,{block:{type:$e.MARKDOWN,content:e},fontSize:14})})}),a.length>0&&S.jsxs(S.Fragment,{children:[S.jsx("p",{className:"mb-4 text-[14px] leading-[24px] text-[rgba(0,0,0,0.85)] font-medium",style:{fontFamily:"Noto Sans SC"},children:"你可以问我:"}),S.jsx("div",{className:"flex flex-col gap-3",children:a.map(o=>S.jsx(v2e,{label:o,onClick:i},o))})]})]})})},m2e=({visible:t,onClose:e,onGetConversations:r,onLoadConversation:n,onDeleteConversation:a,agentInfo:i})=>{const[o,s]=re.useState([]),[l,u]=re.useState(!1),[c,h]=re.useState(null),[f,d]=re.useState(null),[p,v]=re.useState(null),g=async()=>{u(!0),h(null);try{const T=await r(1,1e3);s(T)}catch(T){h(T instanceof Error?T.message:"获取历史会话失败"),console.error("获取历史会话失败:",T)}finally{u(!1)}},m=async(T,_)=>{if(_.stopPropagation(),!!confirm("确定要删除这条会话吗?")){d(T);try{await a(T),await g()}catch(E){h(E instanceof Error?E.message:"删除会话失败"),console.error("删除会话失败:",E)}finally{d(null)}}},y={[Yt.Minute]:1e3*60,[Yt.Hour]:1e3*60*60,[Yt.ToDay]:1e3*60*60*24,[Yt.Yesterday]:1e3*60*60*24*2,[Yt.SixDay]:1e3*60*60*24*6,[Yt.Month]:1e3*60*60*24*30,[Yt.Year]:1e3*60*60*24*30*12},x=(T=Date.now())=>new Date(T).setHours(0,0,0,0),b=(T,_)=>{const E=T<1e12?T*1e3:T,N=x(E),A=x(),D=x(Date.now()-y.sixDay),R=A-N,B=new Date().getFullYear(),M=new Date(E).getFullYear();switch(!0){case(_.includes(Yt.ToDay)&&A<E):return new Date(E).getHours().toString().padStart(2,"0")+":"+new Date(E).getMinutes().toString().padStart(2,"0");case(_.includes(Yt.SixDay)&&D<E):return`${Math.floor(R/(1e3*60*60*24))}天前`;case(_.includes(Yt.Year)&&B===M):return new Date(E).getMonth().toString().padStart(2,"0")+"-"+new Date(E).getDate().toString().padStart(2,"0");default:try{return new Date(E).getFullYear().toString()+"-"+new Date(E).getMonth().toString().padStart(2,"0")+"-"+new Date(E).getDate().toString().padStart(2,"0")}catch{return"时间格式化错误"}}};return re.useEffect(()=>{t&&g()},[t]),t?S.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 z-50",onClick:e,children:S.jsxs("div",{className:"absolute right-0 top-0 h-full w-[400px] bg-white shadow-[0px_9px_56px_0px_rgba(0,0,0,0.08)]",onClick:T=>T.stopPropagation(),children:[S.jsxs("div",{className:"h-[64px] px-[24px] flex items-center justify-between",children:[S.jsx("h2",{className:"text-[18px] font-medium text-black",style:{fontFamily:"Noto Sans SC"},children:"相关历史对话"}),S.jsx("button",{onClick:e,className:"w-[24px] h-[24px] flex items-center justify-center text-[rgba(0,0,0,0.65)] hover:text-[rgba(0,0,0,1)] transition-colors",children:S.jsx(rf,{})})]}),S.jsxs("div",{className:"h-[calc(100%-64px)] overflow-y-auto",children:[l&&S.jsx("div",{className:"flex items-center justify-center py-12",children:S.jsx("div",{className:"text-[14px] text-[rgba(0,0,0,0.45)]",style:{fontFamily:"Noto Sans SC"},children:"加载中..."})}),c&&S.jsx("div",{className:"flex items-center justify-center py-12",children:S.jsx("div",{className:"text-[14px] text-red-500",style:{fontFamily:"Noto Sans SC"},children:c})}),!l&&!c&&o.length===0&&S.jsx("div",{className:"flex items-center justify-center py-12",children:S.jsx("div",{className:"text-[14px] text-[rgba(0,0,0,0.45)]",style:{fontFamily:"Noto Sans SC"},children:"暂无历史会话"})}),!l&&!c&&o.length>0&&S.jsxs("div",{className:"px-[14px] pb-[14px]",children:[(i==null?void 0:i.name)&&S.jsxs("div",{className:"mb-[14px] flex flex-col items-center gap-y-[10px]",children:[S.jsx(vg,{name:i.avatar,width:64,height:64}),S.jsx("p",{className:"text-[16px] font-medium text-[rgba(0,0,0,0.85)]",style:{fontFamily:"Noto Sans SC"},children:i.name})]}),S.jsx("div",{className:"space-y-[2px]",children:o.map(T=>S.jsxs("div",{className:`
533
+ `})]});return T6.createPortal(Ae,u)};function zme(t){switch(t){case"table":return"表格";case"Line":return"折线图";case"Column":return"柱状图";case"Circle":return"环形图";case"Pie":return"饼图";default:return String(t)}}function Hme(t){switch(t){case"table":return S.jsx(My,{});case"Line":return S.jsx(Dy,{});case"Column":return S.jsx(VA,{});case"Circle":case"Pie":return S.jsx(HA,{});default:return S.jsx(My,{})}}const Vme=({open:t,onClose:e,data:r,initialViewType:n})=>{const[a,i]=re.useState("Line");re.useEffect(()=>{if(t){const h=n||r.chartType||"Line";i(h)}},[t,n,r.chartType]);const o=re.useCallback(h=>{i(h)},[]);if(re.useEffect(()=>{if(!t)return;const h=f=>{f.key==="Escape"&&e()};return window.addEventListener("keydown",h),()=>{window.removeEventListener("keydown",h)}},[t,e]),!t)return null;const s=a==="table",l=s?r.chartType||"Line":a,u=s?null:pg(r,l),c=["table","Circle","Column","Line","Pie"];return S.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",onClick:e,"aria-modal":"true","aria-labelledby":"chart-modal-title",children:S.jsxs("div",{className:"relative bg-white rounded-lg shadow-lg flex flex-col w-[90vw] max-w-[1200px] h-[90vh] max-h-[800px] p-5",onClick:h=>h.stopPropagation(),children:[S.jsx("button",{onClick:e,className:"absolute top-4 right-4 w-8 h-8 flex items-center justify-center text-gray-500 hover:text-gray-700 hover:bg-gray-100 rounded-full transition-colors z-10","aria-label":"关闭",children:S.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:S.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),S.jsx("div",{className:"flex items-center justify-between mb-4 pb-3 border-b border-gray-200 flex-shrink-0",children:S.jsx("div",{className:"flex items-center",children:S.jsx("span",{className:"text-lg font-medium text-gray-900",children:r.title||"图表"})})}),S.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden min-h-0",children:[S.jsx("div",{className:"flex justify-center mb-4 flex-shrink-0",children:S.jsx("div",{className:"inline-flex items-center rounded border border-gray-300 bg-gray-50 relative",children:c.map((h,f)=>{const d=a===h,p=f===c.length-1;return S.jsx(re.Fragment,{children:S.jsxs("button",{onClick:()=>o(h),className:`px-4 py-2 text-sm transition-colors flex items-center gap-2 relative ${d?"bg-white text-blue-600 border border-blue-600 z-[1] -mt-px -mb-px":"text-gray-900 bg-transparent z-0"} ${!p&&!d?"border-r border-gray-300":""} ${f>0&&!d?"border-l border-gray-300":""} ${d&&f>0?"-ml-px":""} ${d&&!p?"-mr-px":""}`,children:[Hme(h),S.jsx("span",{children:zme(h)})]})},h)})})}),S.jsx("div",{className:"flex-1 overflow-hidden pt-4 pb-4",children:s?S.jsx("div",{className:"w-full h-full overflow-auto",children:S.jsx(jp,{data:r,maxHeight:"100%"})}):u?S.jsx("div",{className:"flex items-center justify-center h-full text-gray-500",children:u}):S.jsx("div",{className:"w-full h-full",children:S.jsx(JB,{data:r,chartType:l,width:"100%",height:"100%"})})})]})]})})},Ume=({block:t,width:e="100%",height:r="400px"})=>{const[n,a]=re.useState(!1),i=t.content,o=re.useCallback(()=>{a(!0)},[]),s=re.useCallback(()=>{a(!1)},[]);return!i.rows||i.rows.length===0?S.jsx("div",{className:"flex items-center justify-center text-gray-500 border border-gray-200 rounded-lg p-4",style:{width:e,height:r,minWidth:"300px",minHeight:"200px"},children:"暂无数据"}):S.jsxs(S.Fragment,{children:[S.jsx("div",{className:"mb-16",children:S.jsx(g5,{block:{type:$e.TOOL,content:{name:"json2plot",title:i.title||"图表",icon:S.jsx(bF,{}),input:i,output:{data:i}},consumeTime:t.consumeTime}})}),S.jsx(eF,{data:i,width:e,height:r,onChartClick:o}),S.jsx(Vme,{open:n,onClose:s,data:i,initialViewType:i.chartType})]})},Gme=t=>S.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[S.jsx("path",{d:"M48 37.1149C48 43.1267 43.1265 48 37.1152 48H10.8849C4.87371 48 0 43.1266 0 37.1149V10.8851C0 4.87339 4.87363 0 10.8849 0H37.1152C43.1265 0 48 4.87339 48 10.8851V37.1149Z",fill:"#E6F2FE"}),S.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.6128 25.8479L33.8956 24.5114L33.9069 22.6834L37.1117 20.7876C37.1117 20.7876 38.6688 24.6019 36.1188 28.7542C33.5689 32.9065 28.4457 32.9292 28.4457 32.9292L32.6128 25.8479Z",fill:"url(#paint0_linear_2797_3498)",fillOpacity:"0.75"}),S.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.2528 32.9968L32.6002 25.873L28.445 32.9289L20.2528 32.9968Z",fill:"url(#paint1_linear_2797_3498)",fillOpacity:"0.75"}),S.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.4997 21.8178C32.4997 21.8178 32.5931 21.914 32.6737 22.0229C33.4438 23.0638 33.5795 24.2291 33.0379 25.1456C32.8908 25.3938 32.2911 26.0514 32.2911 26.0514C32.2911 26.0514 37.9214 23.1826 37.0664 20.5393C35.9746 17.162 33.1171 15.1226 28.6034 14.728L32.4997 21.8178Z",fill:"url(#paint2_linear_2797_3498)",fillOpacity:"0.75"}),S.jsx("path",{opacity:"0.05",fillRule:"evenodd",clipRule:"evenodd",d:"M37.0721 20.5387C37.0226 20.3852 36.9653 20.2375 36.908 20.0897L36.8055 19.8337C36.6697 19.4957 36.5057 19.1704 36.314 18.8599L36.068 18.4731L36.4194 20.9085C36.6103 22.0081 35.0836 23.4917 33.2493 24.6733C33.197 24.8353 33.1326 24.9944 33.0442 25.145C32.8971 25.3932 32.2975 26.0508 32.2975 26.0508C32.2975 26.0508 37.927 23.1827 37.0721 20.5387Z",fill:"black"}),S.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.4997 21.8175L20.6134 14.7271H28.6027L32.4997 21.8175Z",fill:"url(#paint3_linear_2797_3498)",fillOpacity:"0.75"}),S.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.4793 21.6742L20.5913 14.5864L24.3886 21.6156L32.4793 21.6742Z",fill:"url(#paint4_linear_2797_3498)",fillOpacity:"0.75"}),S.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.726 23.4722L16.6415 30.1299V31.8001L19.8688 37.3745C19.8688 37.3745 15.4457 37.284 13.3016 34.0121C11.1576 30.7401 10.3225 27.0383 12.726 23.4722Z",fill:"url(#paint5_linear_2797_3498)",fillOpacity:"0.75"}),S.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.6357 30.4858V34.6891C16.6357 34.6891 16.8896 37.4314 20.4557 37.4314C21.428 37.4314 22.3183 37.2772 23.1004 37.0523C24.8654 36.5453 26.4084 35.4606 27.5589 34.03L28.445 32.929L20.0724 32.9969C18.7755 32.9679 18.0444 32.6419 17.3238 31.8082C17.1138 31.5649 16.9462 31.2828 16.8295 30.9837L16.6357 30.4858Z",fill:"url(#paint6_linear_2797_3498)",fillOpacity:"0.75"}),S.jsx("path",{opacity:"0.05",fillRule:"evenodd",clipRule:"evenodd",d:"M19.6142 36.6519C17.6661 36.3266 17.3747 34.8543 17.3436 34.6457V34.2554L17.3471 31.8327C17.3394 31.8242 17.3316 31.8172 17.3238 31.808C17.1138 31.5647 16.9462 31.2826 16.8295 30.9834L16.6365 30.4863V34.6896C16.6365 34.6896 16.8529 36.922 19.5237 37.3534L19.6029 37.3675C20.3645 37.5061 21.0907 37.4234 21.9054 37.3138L21.9004 37.3067L19.6142 36.6519Z",fill:"black"}),S.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5797 23.7657L16.7094 16.7466C16.7094 16.7466 17.7701 13.7901 20.6135 14.7271H22.848L15.6543 11.3335L13.4707 13.2209C13.4707 13.2209 10.8642 16.2955 11.3832 20.0193C11.3832 20.0193 11.6993 22.7276 12.5797 23.7657Z",fill:"url(#paint7_linear_2797_3498)",fillOpacity:"0.75"}),S.jsx("path",{opacity:"0.05",fillRule:"evenodd",clipRule:"evenodd",d:"M22.7101 14.7272L15.522 11.5005C15.522 11.5005 13.9281 12.7344 13.472 13.2245C13.32 13.3871 12.9706 13.914 12.948 13.9472C12.7649 14.218 12.5181 14.6642 12.5181 14.6642L13.7761 13.7032C14.2159 13.4069 14.6409 13.192 15.1741 13.1234C15.2823 13.1092 15.3933 13.1022 15.5036 13.1022C16.0361 13.1022 16.5898 13.262 17.1039 13.5646L18.8455 14.6338C19.3024 14.5398 19.8115 14.4627 20.595 14.7116L22.7101 14.7272Z",fill:"black"}),S.jsx("path",{opacity:"0.07",fillRule:"evenodd",clipRule:"evenodd",d:"M16.9879 34.6549L16.9886 32.368L16.9893 32.3701L16.9929 31.3165C16.9335 31.2076 16.8741 31.098 16.8295 30.982L16.6365 30.4849V34.6881C16.6365 34.6881 16.8522 36.9135 19.511 37.3505L19.6694 37.3759C20.0725 37.4403 20.4819 37.4544 20.8885 37.4184L20.9932 37.4092L19.5563 36.9997C17.2036 36.608 16.99 34.6747 16.9879 34.6549Z",fill:"black"}),S.jsx("path",{opacity:"0.07",fillRule:"evenodd",clipRule:"evenodd",d:"M22.8055 14.718L15.6542 11.3521L13.4896 13.204C13.4896 13.204 13.385 13.3271 13.3751 13.3398C13.2047 13.5541 12.9543 13.9487 12.9543 13.9487L13.636 13.4565C14.1459 13.1121 14.66 12.8703 15.266 12.7918C15.389 12.7762 15.5149 12.7677 15.6408 12.7677C16.2362 12.7677 16.8514 12.9445 17.4206 13.279L19.5491 14.5462C19.8567 14.5526 20.2428 14.6049 20.607 14.7244L22.8055 14.718Z",fill:"black"}),S.jsx("path",{opacity:"0.07",fillRule:"evenodd",clipRule:"evenodd",d:"M37.0763 20.5773C37.0643 20.5384 37.0346 20.4295 37.0218 20.3913C36.8818 19.9579 36.5184 19.2231 36.5184 19.2231L36.7496 20.8482C37.048 22.5693 34.2619 24.4722 32.9409 25.2692C32.7238 25.5634 32.2791 26.0506 32.2791 26.0506C32.2791 26.0506 34.6614 24.8463 36.0912 23.2715C36.8479 22.4392 37.3577 21.5001 37.0763 20.5773Z",fill:"black"}),S.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5796 23.7659L16.6357 30.4859L16.7093 16.7476L12.5796 23.7659Z",fill:"url(#paint8_linear_2797_3498)",fillOpacity:"0.75"}),S.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.6134 14.7271L17.6003 12.9557C16.8825 12.5336 16.0474 12.3165 15.2215 12.4225C14.6515 12.4961 14.0229 12.7132 13.4706 13.2209C13.4706 13.2209 16.2129 9.53105 21.189 9.93695C26.1651 10.3428 28.6026 14.7271 28.6026 14.7271H20.6134Z",fill:"url(#paint9_linear_2797_3498)",fillOpacity:"0.75"}),S.jsxs("defs",{children:[S.jsxs("linearGradient",{id:"paint0_linear_2797_3498",x1:"30.8989",y1:"18.9619",x2:"23.8496",y2:"27.9788",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]}),S.jsxs("linearGradient",{id:"paint1_linear_2797_3498",x1:"23.5682",y1:"24.8019",x2:"20.9739",y2:"32.4452",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]}),S.jsxs("linearGradient",{id:"paint2_linear_2797_3498",x1:"30.8995",y1:"13.0254",x2:"24.3309",y2:"21.4573",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]}),S.jsxs("linearGradient",{id:"paint3_linear_2797_3498",x1:"23.805",y1:"13.6609",x2:"21.154",y2:"21.2147",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]}),S.jsxs("linearGradient",{id:"paint4_linear_2797_3498",x1:"21.1702",y1:"17.9012",x2:"26.5562",y2:"11.9785",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]}),S.jsxs("linearGradient",{id:"paint5_linear_2797_3498",x1:"13.5776",y1:"21.3818",x2:"5.27072",y2:"30.1169",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]}),S.jsxs("linearGradient",{id:"paint6_linear_2797_3498",x1:"19.8066",y1:"29.4415",x2:"17.2385",y2:"36.8635",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]}),S.jsxs("linearGradient",{id:"paint7_linear_2797_3498",x1:"14.4116",y1:"9.46414",x2:"7.68365",y2:"20.0732",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]}),S.jsxs("linearGradient",{id:"paint8_linear_2797_3498",x1:"13.6884",y1:"14.6818",x2:"7.02802",y2:"18.085",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]}),S.jsxs("linearGradient",{id:"paint9_linear_2797_3498",x1:"17.5337",y1:"9.1808",x2:"16.489",y2:"14.7539",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]})]})]}),jme=t=>S.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 49 49",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[S.jsx("path",{d:"M48.0203 37.1882C48.0203 43.1999 43.1468 48.0732 37.1354 48.0732H10.9052C4.89397 48.0732 0.0202637 43.1999 0.0202637 37.1882V10.9583C0.0202637 4.94663 4.89389 0.0732422 10.9052 0.0732422H37.1354C43.1468 0.0732422 48.0203 4.94663 48.0203 10.9583V37.1882Z",fill:"#E6F2FE"}),S.jsxs("g",{opacity:"0.75",children:[S.jsx("path",{d:"M37.7422 29.4049V19.5395C37.7422 17.5264 36.682 15.6663 34.9603 14.6598L26.5241 9.72707C24.8029 8.72053 22.682 8.72053 20.9603 9.72707L12.5241 14.6598C10.8029 15.6663 9.74219 17.5264 9.74219 19.5395V29.4049C9.74219 31.418 10.8024 33.278 12.5241 34.2845L20.9603 39.2173C22.6815 40.2238 24.8024 40.2238 26.5241 39.2173L34.9603 34.2845C36.6815 33.278 37.7422 31.418 37.7422 29.4049Z",fill:"url(#paint0_linear_2797_3529)"}),S.jsx("path",{d:"M23.7422 32.6879C23.23 32.6879 22.8151 32.2677 22.8151 31.7489V24.4721C22.8151 23.9534 23.23 23.5332 23.7422 23.5332C24.2545 23.5332 24.6694 23.9534 24.6694 24.4721V31.7489C24.6694 32.2677 24.2545 32.6879 23.7422 32.6879Z",fill:"white"}),S.jsx("path",{d:"M23.7468 25.4231C23.5897 25.4231 23.4302 25.3828 23.2842 25.2973L17.0616 21.6589C16.618 21.3998 16.4664 20.8256 16.7223 20.3763C16.9782 19.927 17.5451 19.7735 17.9887 20.0327L24.2113 23.6711C24.655 23.9302 24.8066 24.5044 24.5507 24.9537C24.3791 25.2551 24.0672 25.4231 23.7468 25.4231Z",fill:"white"}),S.jsx("path",{d:"M23.7608 25.3997C23.4405 25.3997 23.129 25.2311 22.957 24.9302C22.7011 24.4809 22.8527 23.9068 23.2963 23.6476L29.5189 20.0092C29.9626 19.7501 30.5295 19.9036 30.7854 20.3529C31.0413 20.8022 30.8897 21.3763 30.4461 21.6355L24.2235 25.2739C24.0829 25.3563 23.9233 25.3998 23.7608 25.3997Z",fill:"white"})]}),S.jsx("defs",{children:S.jsxs("linearGradient",{id:"paint0_linear_2797_3529",x1:"17.2604",y1:"4.31088",x2:"0.29693",y2:"30.3547",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]})})]}),Wme=t=>S.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[S.jsx("path",{d:"M48 37.1149C48 43.1267 43.1265 48 37.1152 48H10.8849C4.87371 48 0 43.1266 0 37.1149V10.8851C0 4.87339 4.87363 0 10.8849 0H37.1152C43.1265 0 48 4.87339 48 10.8851V37.1149Z",fill:"#E6F2FE"}),S.jsx("path",{opacity:"0.75",d:"M36.3962 12.5049H14.7313C14.1831 12.5049 13.7298 12.6999 13.3713 13.09C13.0128 13.48 12.8336 13.9703 12.8336 14.5606V17.2806C12.8336 17.8288 13.0339 18.298 13.4344 18.688C13.8351 19.0782 14.3096 19.2732 14.8578 19.2732H36.3961C37.0074 19.2732 37.5083 19.0254 37.8984 18.53C38.2885 18.0344 38.4835 17.4492 38.4835 16.7747V14.8453C38.4835 14.2338 38.2833 13.6909 37.8825 13.2165C37.4821 12.742 36.9865 12.5049 36.3962 12.5049ZM11.5053 27.0851H32.9171C33.7185 27.0851 34.2826 26.8795 34.6091 26.4684C34.936 26.0572 35.0994 25.546 35.0994 24.9344V23.1633C35.0994 22.9102 35.0625 22.6468 34.9887 22.3726C34.9148 22.0986 34.7884 21.8561 34.6091 21.6452C34.4299 21.4343 34.2085 21.2603 33.945 21.1232C33.6814 20.9863 33.3598 20.9176 32.9802 20.9176H11.4105C10.8623 20.9176 10.4037 21.1075 10.0347 21.487C9.69035 21.8411 9.50892 22.2696 9.48578 22.7704V25.188C9.509 25.6562 9.70091 26.0834 10.0663 26.4684C10.4564 26.8796 10.9361 27.0851 11.5053 27.0851ZM10.0663 34.9604C10.4564 35.2977 10.8833 35.4663 11.3472 35.4663H32.9802C33.6551 35.4663 34.177 35.2607 34.5458 34.8497C34.9148 34.4383 35.0994 33.9587 35.0994 33.4106V31.1967C35.0994 30.9014 35.0677 30.6063 35.0046 30.3111C34.9413 30.0159 34.8359 29.7524 34.6882 29.5204C34.5404 29.2885 34.3455 29.0987 34.1029 28.951C33.8605 28.8034 33.5602 28.7297 33.2016 28.7297H11.6003C11.0098 28.7297 10.5091 28.9405 10.0979 29.3622C9.72042 29.7494 9.51674 30.2346 9.48586 30.8174V33.706C9.509 34.2254 9.70099 34.6444 10.0663 34.9604Z",fill:"url(#paint0_linear_2797_3395)"}),S.jsx("defs",{children:S.jsxs("linearGradient",{id:"paint0_linear_2797_3395",x1:"17.2719",y1:"9.05232",x2:"6.75533",y2:"31.6276",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]})})]}),Yme=t=>S.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[S.jsx("path",{d:"M48 37.1149C48 43.1267 43.1265 48 37.1152 48H10.8849C4.87371 48 0 43.1266 0 37.1149V10.8851C0 4.87339 4.87363 0 10.8849 0H37.1152C43.1265 0 48 4.87339 48 10.8851V37.1149Z",fill:"#E6F2FE"}),S.jsxs("g",{opacity:"0.75",children:[S.jsx("path",{d:"M21.7049 9.79639C15.1607 9.79639 9.87137 14.2916 9.87137 19.8364C9.87137 23.0447 11.1355 25.7738 13.5132 27.7361V32.7425L18.6427 29.8582C19.3501 29.9723 20.9611 30.091 21.7049 30.091C28.2401 30.091 32.6258 25.3767 32.6258 19.8364C32.6258 14.2916 27.1448 9.79639 21.7049 9.79639ZM22.1796 27.3847C21.8555 27.7088 21.4083 27.9096 20.9154 27.9096C20.4226 27.9096 19.9753 27.7088 19.6513 27.3847C19.3273 27.0607 19.1265 26.6089 19.1265 26.116C19.1265 25.1257 19.9251 24.3225 20.9154 24.3225C21.4083 24.3225 21.8555 24.5233 22.1796 24.8473C22.5036 25.1714 22.7044 25.6232 22.7044 26.116C22.7044 26.6135 22.5036 27.0607 22.1796 27.3847ZM23.7403 20.4571C23.357 20.6533 23.0467 20.95 22.8322 21.3014C22.5766 21.7167 22.4579 22.2141 22.5081 22.7207C22.5264 22.8713 22.4032 23.0036 22.2526 23.0036H19.9479C19.6422 23.0036 19.3912 22.7572 19.3912 22.4514C19.3912 20.4023 20.5458 18.5404 22.3575 17.5592C22.75 17.3447 23.0193 17.0161 23.0147 16.5095C23.0101 15.825 22.4397 15.2773 21.7551 15.2773H20.9474C20.4317 15.2773 19.9844 15.5785 19.7791 16.0167C19.6924 16.1946 19.5098 16.3087 19.309 16.3087H17.1413C16.8127 16.3087 16.5663 16.0075 16.6347 15.6926C16.6621 15.5512 16.6986 15.4143 16.7397 15.2819C17.2919 13.493 18.9667 12.1923 20.9519 12.1923H21.7278C22.9417 12.1923 24.0461 12.6806 24.8402 13.4747C25.6388 14.2688 26.1317 15.3595 26.1317 16.5689C26.1226 18.2574 25.1551 19.7269 23.7403 20.4571Z",fill:"url(#paint0_linear_2797_3351)"}),S.jsx("path",{d:"M34.4695 17.8237L34.5152 18.5859C34.5197 19.3069 34.5152 19.243 34.5152 19.9093C34.5152 26.9465 28.7969 31.8205 20.8607 31.8205H18.1316C20.2994 33.8741 22.8185 35.1291 26.3234 35.1291C27.0536 35.1246 27.7838 35.0698 28.5048 34.9511L33.607 37.9997V32.9933C36.3726 31.1587 38.157 28.3065 38.157 25.0936C38.157 22.2322 36.7377 19.6538 34.4695 17.8237Z",fill:"url(#paint1_linear_2797_3351)"})]}),S.jsxs("defs",{children:[S.jsxs("linearGradient",{id:"paint0_linear_2797_3351",x1:"15.9811",y1:"6.34612",x2:"3.93292",y2:"26.6544",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]}),S.jsxs("linearGradient",{id:"paint1_linear_2797_3351",x1:"23.5086",y1:"14.79",x2:"12.9195",y2:"32.6549",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]})]})]}),$me=t=>S.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[S.jsx("path",{d:"M48 37.1149C48 43.1267 43.1265 48 37.1152 48H10.8849C4.87371 48 0 43.1266 0 37.1149V10.8851C0 4.87339 4.87363 0 10.8849 0H37.1152C43.1265 0 48 4.87339 48 10.8851V37.1149Z",fill:"#E6F2FE"}),S.jsxs("g",{opacity:"0.75",children:[S.jsx("path",{d:"M37.4289 35.1042C36.963 34.1058 36.2773 33.2404 35.5119 32.4483C34.4735 31.3833 33.2753 30.478 32.0306 29.6593C30.7592 28.8339 29.4279 28.0884 28.05 27.4627C29.1616 26.7238 30.0137 25.6521 30.6194 24.4739C31.4448 22.8697 31.8841 21.0991 32.1304 19.3152C32.3767 17.4248 32.4299 15.5077 32.2768 13.604C33.5549 13.0981 34.8329 12.5856 36.1109 12.073C36.5835 11.8733 37.0695 11.7003 37.5487 11.4939C32.9957 9.92302 28.4361 8.35211 23.8831 6.78785C23.8032 6.74791 23.7234 6.80782 23.6501 6.82779C19.3634 8.38539 15.0767 9.93633 10.7899 11.4939C12.3475 12.2195 13.9185 12.9317 15.4894 13.6573C15.1432 15.8539 15.2031 18.1304 15.7689 20.2937C16.1284 21.6649 16.6809 22.9829 17.4064 24.201C18.132 25.3992 19.004 26.5241 20.0623 27.4427C18.1586 28.0617 16.3081 28.8805 14.6706 30.0387C13.5457 30.8308 12.5273 31.7694 11.7085 32.8743C10.7966 34.0991 10.1443 35.5302 9.85804 37.0279C9.7116 37.8001 9.6517 38.5855 9.73157 39.3643C14.198 41.2548 19.0639 42.18 23.9164 42.1134C22.4187 40.8421 20.9077 39.564 19.4033 38.2927C20.6015 35.4038 21.7996 32.5082 22.9978 29.6193C23.0111 29.5661 23.0644 29.5062 23.0244 29.4529C22.685 28.8938 22.3388 28.3413 22.006 27.7755C22.5851 28.0817 23.2241 28.2748 23.8831 28.2814C24.4755 28.2881 25.0613 28.115 25.5472 27.7755C25.1878 28.3147 24.8217 28.8539 24.4556 29.3997C25.1611 31.0039 25.8734 32.6014 26.579 34.2056C27.1647 35.5436 27.7638 36.8748 28.3362 38.2061C26.8585 39.5041 25.3941 40.8154 23.923 42.1201C27.4975 42.0735 31.0587 41.521 34.4735 40.4959C35.5252 40.1698 36.5636 39.817 37.562 39.3643C37.8216 38.7653 37.9681 38.1196 37.9814 37.4673C37.9881 36.6685 37.775 35.8498 37.4289 35.1042Z",fill:"url(#paint0_linear_2797_3417)"}),S.jsx("path",{d:"M12.0946 19.2886H12.5273V19.7345H13.3793V19.2886H13.812V18.2502H13.3793V13.0781H12.5273C12.5206 14.8021 12.5273 16.5328 12.5273 18.2568H12.0946V19.2886Z",fill:"url(#paint1_linear_2797_3417)"})]}),S.jsxs("defs",{children:[S.jsxs("linearGradient",{id:"paint0_linear_2797_3417",x1:"17.2909",y1:"1.4597",x2:"-2.89257",y2:"28.9145",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]}),S.jsxs("linearGradient",{id:"paint1_linear_2797_3417",x1:"12.5557",y1:"12.0772",x2:"9.62625",y2:"13.3619",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]})]})]}),qme=t=>S.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[S.jsx("path",{d:"M48 37.1149C48 43.1267 43.1265 48 37.1152 48H10.8849C4.87371 48 0 43.1266 0 37.1149V10.8851C0 4.87339 4.87363 0 10.8849 0H37.1152C43.1265 0 48 4.87339 48 10.8851V37.1149Z",fill:"#E6F2FE"}),S.jsx("path",{opacity:"0.75",d:"M30.575 12.6359C26.8407 12.6359 24.9168 13.7188 24.0092 14.4747C23.0522 13.6626 21.1777 12.6359 17.3448 12.6359C12.4414 12.6257 9.87134 14.5003 9.87134 15.2307V33.9509C9.87134 34.6558 10.4238 35.2483 11.0848 35.2483C11.0848 35.2483 13.9608 34.5996 17.0981 34.5996C20.2799 34.5996 23.7181 35.2483 23.7181 35.2483C23.8168 35.2483 23.9204 35.2483 24.0191 35.1922C24.1177 35.1922 24.2213 35.2483 24.32 35.2483C24.32 35.2483 27.1959 34.5996 30.3332 34.5996C33.5051 34.6048 36.9434 35.2534 36.9434 35.2534C37.5995 35.2534 38.1569 34.6609 38.1569 33.9561V15.2358C38.152 14.2909 34.8074 12.4674 30.575 12.6359ZM22.2383 27.5202C22.2383 27.8982 21.8338 28.1689 21.3306 28.1689H13.3491C12.841 28.1689 12.4414 27.8982 12.4414 27.5202V26.8715C12.4414 26.4935 12.8459 26.2228 13.3491 26.2228H21.3257C21.8338 26.2228 22.2333 26.4935 22.2333 26.8715V27.5202H22.2383ZM22.2383 21.6717C22.2383 22.0497 21.8338 22.3204 21.3306 22.3204H13.3491C12.841 22.3204 12.4414 22.0497 12.4414 21.6717V21.023C12.4414 20.645 12.8459 20.3743 13.3491 20.3743H21.3257C21.8338 20.3743 22.2333 20.645 22.2333 21.023V21.6717H22.2383ZM36.534 32.6587C36.534 33.3635 35.9815 33.3074 35.3205 33.3074C35.3205 33.3074 32.8441 32.6587 30.5207 32.6587C28.3502 32.6587 26.3277 33.3074 26.3277 33.3074C25.6716 33.3074 25.1142 33.3635 25.1142 32.6587V16.5332C25.1142 16.5332 26.0712 15.1796 28.7004 14.7455V24.9203L31.1225 22.9691L33.5446 24.9203V14.9089C35.868 15.4503 36.5734 16.5332 36.5734 16.5332V32.6587H36.534Z",fill:"url(#paint0_linear_2797_3459)"}),S.jsx("defs",{children:S.jsxs("linearGradient",{id:"paint0_linear_2797_3459",x1:"17.4662",y1:"9.2225",x2:"7.03386",y2:"31.3885",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]})})]}),Xme=t=>S.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[S.jsx("path",{d:"M48 37.1149C48 43.1267 43.1265 48 37.1152 48H10.8849C4.87371 48 0 43.1266 0 37.1149V10.8851C0 4.87339 4.87363 0 10.8849 0H37.1152C43.1265 0 48 4.87339 48 10.8851V37.1149Z",fill:"#E6F2FE"}),S.jsx("path",{opacity:"0.75",d:"M36.5367 28.1017C36.5367 32.8586 30.7991 33.7114 23.7206 33.7114C16.6421 33.7114 10.9044 32.8586 10.9044 28.1017C10.9044 23.3448 16.6421 15.2334 23.7206 15.2334C30.7991 15.2334 36.5367 23.3495 36.5367 28.1017Z",fill:"url(#paint0_linear_2797_3474)"}),S.jsx("path",{d:"M33.0544 26.8226C33.0544 29.978 28.8755 29.9686 23.7206 29.9686C18.5657 29.9686 14.3868 29.978 14.3868 26.8226C14.3868 23.6671 18.5657 17.6973 23.7206 17.6973C28.8755 17.6973 33.0544 23.6671 33.0544 26.8226Z",fill:"url(#paint1_linear_2797_3474)"}),S.jsx("path",{d:"M24.5498 24.8938C24.5498 25.18 24.5921 25.4634 24.6742 25.7279C24.7564 25.9923 24.8768 26.2325 25.0286 26.4349C25.1804 26.6373 25.3605 26.7978 25.5589 26.9074C25.7572 27.0169 25.9697 27.0733 26.1844 27.0733C26.3991 27.0733 26.6116 27.0169 26.8099 26.9074C27.0082 26.7978 27.1884 26.6373 27.3402 26.4349C27.492 26.2325 27.6124 25.9923 27.6946 25.7279C27.7767 25.4634 27.819 25.18 27.819 24.8938C27.819 24.6076 27.7767 24.3242 27.6946 24.0598C27.6124 23.7953 27.492 23.5551 27.3402 23.3527C27.1884 23.1503 27.0082 22.9898 26.8099 22.8803C26.6116 22.7707 26.3991 22.7144 26.1844 22.7144C25.9697 22.7144 25.7572 22.7707 25.5589 22.8803C25.3605 22.9898 25.1804 23.1503 25.0286 23.3527C24.8768 23.5551 24.7564 23.7953 24.6742 24.0598C24.5921 24.3242 24.5498 24.6076 24.5498 24.8938Z",fill:"white"}),S.jsx("path",{d:"M18.0114 24.8938C18.0114 25.4718 18.1836 26.0262 18.4901 26.4349C18.7967 26.8436 19.2124 27.0733 19.6459 27.0733C20.0795 27.0733 20.4952 26.8436 20.8018 26.4349C21.1083 26.0262 21.2805 25.4718 21.2805 24.8938C21.2805 24.3158 21.1083 23.7614 20.8018 23.3527C20.4952 22.944 20.0795 22.7144 19.6459 22.7144C19.2124 22.7144 18.7967 22.944 18.4901 23.3527C18.1836 23.7614 18.0114 24.3158 18.0114 24.8938Z",fill:"white"}),S.jsx("path",{d:"M10.6815 16.011L11.5157 15.1768L15.8241 19.4851L14.9899 20.3193L10.6815 16.011Z",fill:"white"}),S.jsx("path",{opacity:"0.75",d:"M10.6815 16.011L11.5157 15.1768L15.8241 19.4851L14.9899 20.3193L10.6815 16.011Z",fill:"url(#paint2_linear_2797_3474)"}),S.jsx("path",{opacity:"0.75",d:"M33.2676 15.655C33.2676 16.2331 33.4972 16.7874 33.9059 17.1962C34.3147 17.6049 34.869 17.8345 35.447 17.8345C36.0251 17.8345 36.5794 17.6049 36.9881 17.1962C37.3969 16.7874 37.6265 16.2331 37.6265 15.655C37.6265 15.077 37.3969 14.5227 36.9881 14.1139C36.5794 13.7052 36.0251 13.4756 35.447 13.4756C34.869 13.4756 34.3147 13.7052 33.9059 14.1139C33.4972 14.5227 33.2676 15.077 33.2676 15.655Z",fill:"url(#paint3_linear_2797_3474)"}),S.jsx("path",{opacity:"0.75",d:"M32.1643 20.3159L31.3301 19.4817L35.6384 15.1733L36.4726 16.0076L32.1643 20.3159Z",fill:"url(#paint4_linear_2797_3474)"}),S.jsx("path",{opacity:"0.75",d:"M9.34094 15.655C9.34094 16.2331 9.57056 16.7874 9.97929 17.1962C10.388 17.6049 10.9424 17.8345 11.5204 17.8345C12.0984 17.8345 12.6528 17.6049 13.0615 17.1962C13.4702 16.7874 13.6999 16.2331 13.6999 15.655C13.6999 15.077 13.4702 14.5227 13.0615 14.1139C12.6528 13.7052 12.0984 13.4756 11.5204 13.4756C10.9424 13.4756 10.388 13.7052 9.97929 14.1139C9.57056 14.5227 9.34094 15.077 9.34094 15.655Z",fill:"url(#paint5_linear_2797_3474)"}),S.jsxs("defs",{children:[S.jsxs("linearGradient",{id:"paint0_linear_2797_3474",x1:"17.7869",y1:"12.455",x2:"9.83949",y2:"31.1942",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]}),S.jsxs("linearGradient",{id:"paint1_linear_2797_3474",x1:"19.3992",y1:"15.8521",x2:"14.4596",y2:"28.6249",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]}),S.jsxs("linearGradient",{id:"paint2_linear_2797_3474",x1:"12.0623",y1:"14.4035",x2:"9.37306",y2:"18.9747",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]}),S.jsxs("linearGradient",{id:"paint3_linear_2797_3474",x1:"34.438",y1:"12.8202",x2:"32.1585",y2:"16.6948",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]}),S.jsxs("linearGradient",{id:"paint4_linear_2797_3474",x1:"32.7109",y1:"14.4001",x2:"30.0216",y2:"18.9713",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]}),S.jsxs("linearGradient",{id:"paint5_linear_2797_3474",x1:"10.5113",y1:"12.8202",x2:"8.23188",y2:"16.6948",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]})]})]}),Zme=t=>S.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[S.jsx("path",{d:"M48 37.1149C48 43.1267 43.1265 48 37.1152 48H10.8849C4.87371 48 0 43.1266 0 37.1149V10.8851C0 4.87339 4.87363 0 10.8849 0H37.1152C43.1265 0 48 4.87339 48 10.8851V37.1149Z",fill:"#E6F2FE"}),S.jsxs("g",{opacity:"0.75",children:[S.jsx("path",{d:"M34.9102 27.0534C34.9102 27.5371 34.5144 27.9329 34.0263 27.9329H31.6647C31.1766 27.9329 30.7808 27.5371 30.7808 27.0534C30.7808 26.5696 31.1766 26.1738 31.6647 26.1738H34.0263C34.5144 26.1738 34.9102 26.5696 34.9102 27.0534Z",fill:"#6161F2"}),S.jsx("path",{d:"M37.3948 32.5506H35.6886C35.0421 32.5506 34.5232 32.0273 34.5232 31.3852V25.6331C34.5232 24.9867 35.0465 24.4678 35.6886 24.4678H37.3948C38.0413 24.4678 38.5602 24.9911 38.5602 25.6331V31.3808C38.5602 32.0273 38.0413 32.5506 37.3948 32.5506Z",fill:"url(#paint0_linear_2797_3368)"}),S.jsx("path",{d:"M37.3861 32.5506H35.6754C35.0289 32.5506 34.5056 32.0273 34.5056 31.3809V25.6288C34.5056 24.9823 35.0289 24.459 35.6754 24.459H37.3861C38.0325 24.459 38.5558 24.9823 38.5558 25.6288V31.3853C38.5558 32.0273 38.0325 32.5506 37.3861 32.5506Z",fill:"white",fillOpacity:"0.45"}),S.jsx("path",{d:"M13.1463 32.5506H11.44C10.7936 32.5506 10.2747 32.0273 10.2747 31.3852V25.6331C10.2747 24.9867 10.798 24.4678 11.44 24.4678H13.1463C13.7928 24.4678 14.3117 24.9911 14.3117 25.6331V31.3808C14.3161 32.0273 13.7928 32.5506 13.1463 32.5506Z",fill:"url(#paint1_linear_2797_3368)"}),S.jsx("path",{d:"M13.1551 32.5506H11.4444C10.798 32.5506 10.2747 32.0273 10.2747 31.3809V25.6288C10.2747 24.9823 10.798 24.459 11.4444 24.459H13.1551C13.8016 24.459 14.3249 24.9823 14.3249 25.6288V31.3853C14.3249 32.0273 13.8016 32.5506 13.1551 32.5506Z",fill:"white",fillOpacity:"0.45"}),S.jsx("path",{d:"M32.4915 36.5964H16.3434C14.1094 36.5964 12.302 34.7845 12.302 32.5549V24.4545C12.302 22.2205 14.1138 20.4131 16.3434 20.4131H32.4915C34.7255 20.4131 36.5329 22.2249 36.5329 24.4545V32.5549C36.5329 34.7845 34.7211 36.5964 32.4915 36.5964Z",fill:"url(#paint2_linear_2797_3368)"}),S.jsx("path",{d:"M15.6881 29.0103C15.6881 29.9492 16.0611 30.8496 16.725 31.5135C17.3889 32.1774 18.2893 32.5504 19.2282 32.5504C20.1671 32.5504 21.0676 32.1774 21.7315 31.5135C22.3954 30.8496 22.7683 29.9492 22.7683 29.0103C22.7683 28.0714 22.3954 27.171 21.7315 26.5071C21.0676 25.8432 20.1671 25.4702 19.2282 25.4702C18.2893 25.4702 17.3889 25.8432 16.725 26.5071C16.0611 27.171 15.6881 28.0714 15.6881 29.0103Z",fill:"#3285F7"}),S.jsx("path",{d:"M17.0954 29.0103C17.0954 29.576 17.3201 30.1185 17.7201 30.5184C18.1201 30.9184 18.6626 31.1431 19.2282 31.1431C19.7939 31.1431 20.3364 30.9184 20.7364 30.5184C21.1364 30.1185 21.3611 29.576 21.3611 29.0103C21.3611 28.4446 21.1364 27.9021 20.7364 27.5021C20.3364 27.1022 19.7939 26.8774 19.2282 26.8774C18.6626 26.8774 18.1201 27.1022 17.7201 27.5021C17.3201 27.9021 17.0954 28.4446 17.0954 29.0103Z",fill:"#A0BEFD"}),S.jsx("path",{d:"M25.8027 29.0103C25.8027 29.4752 25.8943 29.9355 26.0722 30.365C26.2501 30.7945 26.5108 31.1848 26.8396 31.5135C27.1683 31.8423 27.5586 32.103 27.9881 32.2809C28.4176 32.4588 28.8779 32.5504 29.3428 32.5504C29.8077 32.5504 30.268 32.4588 30.6975 32.2809C31.127 32.103 31.5173 31.8423 31.846 31.5135C32.1747 31.1848 32.4355 30.7945 32.6134 30.365C32.7913 29.9355 32.8829 29.4752 32.8829 29.0103C32.8829 28.5454 32.7913 28.0851 32.6134 27.6556C32.4355 27.2261 32.1747 26.8358 31.846 26.5071C31.5173 26.1784 31.127 25.9176 30.6975 25.7397C30.268 25.5618 29.8077 25.4702 29.3428 25.4702C28.8779 25.4702 28.4176 25.5618 27.9881 25.7397C27.5586 25.9176 27.1683 26.1784 26.8396 26.5071C26.5108 26.8358 26.2501 27.2261 26.0722 27.6556C25.8943 28.0851 25.8027 28.5454 25.8027 29.0103Z",fill:"#3285F7"}),S.jsx("path",{d:"M27.2099 29.0103C27.2099 29.576 27.4346 30.1185 27.8346 30.5184C28.2346 30.9184 28.7771 31.1431 29.3428 31.1431C29.9084 31.1431 30.4509 30.9184 30.8509 30.5184C31.2509 30.1185 31.4756 29.576 31.4756 29.0103C31.4756 28.4446 31.2509 27.9021 30.8509 27.5021C30.4509 27.1022 29.9084 26.8774 29.3428 26.8774C28.7771 26.8774 28.2346 27.1022 27.8346 27.5021C27.4346 27.9021 27.2099 28.4446 27.2099 29.0103Z",fill:"#A0BEFD"}),S.jsx("path",{d:"M22.1526 13.8387C22.1526 14.5093 22.4191 15.1525 22.8933 15.6267C23.3675 16.1009 24.0107 16.3673 24.6813 16.3673C25.3519 16.3673 25.9951 16.1009 26.4693 15.6267C26.9435 15.1525 27.2099 14.5093 27.2099 13.8387C27.2099 13.1681 26.9435 12.5249 26.4693 12.0507C25.9951 11.5765 25.3519 11.3101 24.6813 11.3101C24.0107 11.3101 23.3675 11.5765 22.8933 12.0507C22.4191 12.5249 22.1526 13.1681 22.1526 13.8387Z",fill:"url(#paint3_linear_2797_3368)"}),S.jsx("path",{d:"M23.6479 15.356H25.6708V23.4476H23.6479V15.356Z",fill:"url(#paint4_linear_2797_3368)"})]}),S.jsxs("defs",{children:[S.jsxs("linearGradient",{id:"paint0_linear_2797_3368",x1:"35.6072",y1:"23.2524",x2:"30.8355",y2:"27.3034",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]}),S.jsxs("linearGradient",{id:"paint1_linear_2797_3368",x1:"11.3586",y1:"23.2524",x2:"6.58699",y2:"27.3034",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]}),S.jsxs("linearGradient",{id:"paint2_linear_2797_3368",x1:"18.8082",y1:"17.9797",x2:"12.2172",y2:"34.754",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]}),S.jsxs("linearGradient",{id:"paint3_linear_2797_3368",x1:"23.5106",y1:"10.5496",x2:"20.8659",y2:"15.045",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]}),S.jsxs("linearGradient",{id:"paint4_linear_2797_3368",x1:"24.191",y1:"14.1393",x2:"20.706",y2:"15.6202",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]})]})]}),Kme=t=>S.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[S.jsx("path",{d:"M48 37.1149C48 43.1267 43.1265 48 37.1152 48H10.8849C4.87371 48 0 43.1266 0 37.1149V10.8851C0 4.87339 4.87363 0 10.8849 0H37.1152C43.1265 0 48 4.87339 48 10.8851V37.1149Z",fill:"#E6F2FE"}),S.jsxs("g",{opacity:"0.75",children:[S.jsx("path",{d:"M32.7773 14.8871H38.1936C37.4094 14.131 35.8523 12.6747 34.34 11.2688C33.3038 10.3054 32.318 9.37562 31.7579 8.84912V13.8677C31.7579 14.4334 32.2116 14.8871 32.7773 14.8871Z",fill:"url(#paint0_linear_2797_3441)"}),S.jsx("path",{d:"M32.7774 16.8812C31.1194 16.8812 29.764 15.5257 29.764 13.8678V8.21631H13.5208C11.8348 8.21631 10.457 9.58858 10.457 11.2801V35.376C10.457 37.062 11.8292 38.4398 13.5208 38.4398H35.6787C37.3647 38.4398 38.7425 37.0676 38.7425 35.376V16.8812H32.7774ZM29.6631 33.0516H19.7268C19.1779 33.0516 18.7298 32.6035 18.7298 32.0546C18.7298 31.5057 19.1779 31.0576 19.7268 31.0576H29.6631C30.2121 31.0576 30.6601 31.5057 30.6601 32.0546C30.6601 32.6035 30.2177 33.0516 29.6631 33.0516ZM30.9906 20.1579L28.4421 22.6503L29.0414 26.151C29.1086 26.5207 28.9518 26.9072 28.6437 27.1256C28.3357 27.3497 27.9324 27.3777 27.5963 27.1984L24.4485 25.5461L21.3007 27.1984C21.1495 27.2713 20.9926 27.3161 20.8358 27.3161C20.6286 27.3161 20.4213 27.2488 20.2477 27.1256C19.9396 26.9016 19.7884 26.5263 19.85 26.151L20.4493 22.6503L17.9008 20.1691C17.6264 19.9058 17.5368 19.5025 17.6488 19.1497C17.7664 18.7912 18.0801 18.5279 18.4553 18.4719L21.9784 17.9566L23.5579 14.7696C23.7204 14.4279 24.0732 14.2095 24.4541 14.2095C24.835 14.2095 25.1767 14.4279 25.3503 14.7696L26.9298 17.9566L30.4529 18.4719C30.8226 18.5279 31.1418 18.7856 31.2595 19.1497C31.3547 19.4969 31.2651 19.8946 30.9906 20.1579Z",fill:"url(#paint1_linear_2797_3441)"}),S.jsx("path",{d:"M25.3615 19.301L24.4485 17.4526L23.5356 19.301C23.3955 19.5923 23.1099 19.7995 22.785 19.8499L20.7462 20.1468L22.2249 21.5806C22.4602 21.8159 22.5666 22.1408 22.5162 22.4656L22.1633 24.4988L23.9893 23.5354C24.2805 23.3842 24.6278 23.3842 24.919 23.5354L26.745 24.4988L26.3921 22.4656C26.3361 22.1408 26.4425 21.8103 26.6834 21.5806L28.1621 20.1468L26.1233 19.8499C25.7816 19.7995 25.5015 19.5923 25.3615 19.301Z",fill:"url(#paint2_linear_2797_3441)"})]}),S.jsxs("defs",{children:[S.jsxs("linearGradient",{id:"paint0_linear_2797_3441",x1:"33.486",y1:"7.94123",x2:"30.4294",y2:"13.4789",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]}),S.jsxs("linearGradient",{id:"paint1_linear_2797_3441",x1:"18.0518",y1:"3.67178",x2:"1.75752",y2:"29.5927",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]}),S.jsxs("linearGradient",{id:"paint2_linear_2797_3441",x1:"22.7374",y1:"16.3931",x2:"19.1466",y2:"22.817",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]})]})]}),Qme=t=>S.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[S.jsx("path",{d:"M48 37.1149C48 43.1267 43.1265 48 37.1152 48H10.8849C4.87371 48 0 43.1266 0 37.1149V10.8851C0 4.87339 4.87363 0 10.8849 0H37.1152C43.1265 0 48 4.87339 48 10.8851V37.1149Z",fill:"#E6F2FE"}),S.jsxs("g",{opacity:"0.75",children:[S.jsx("path",{d:"M34.195 14.2599L38.1569 16.5461V22.1761L31.4076 26.0729L31.391 20.603L27.1962 18.1744L34.195 14.2599ZM19.6068 38.4974V30.9986L24.0809 33.5663L28.5187 31.0085L28.4844 38.4687L24.0125 41.0386L19.6101 38.4996L19.6068 38.4974ZM21.4315 18.1137L16.7697 20.7829V26.031L9.87137 22.0116V16.5517L14.2947 13.9961L21.4382 18.1148L21.4315 18.1137ZM24.3161 19.7828L28.5617 22.2324L28.5352 27.7266L24.0776 30.3009L19.6013 27.6879V22.4156L24.3183 19.7828H24.3161Z",fill:"url(#paint0_linear_2797_3564)"}),S.jsx("path",{d:"M31.1901 12.527L24.273 16.4868L17.1296 12.3559L24.0136 8.38184L31.1901 12.527ZM16.7498 36.8484L9.87137 32.8744V25.4163L16.7598 29.3761V36.8551L16.7498 36.8484ZM38.1569 25.4395V32.8777L31.4374 36.7524L31.4175 29.3253L38.1514 25.4351L38.1569 25.4395Z",fill:"url(#paint1_linear_2797_3564)"})]}),S.jsxs("defs",{children:[S.jsxs("linearGradient",{id:"paint0_linear_2797_3564",x1:"17.4662",y1:"9.92987",x2:"3.64041",y2:"34.5111",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]}),S.jsxs("linearGradient",{id:"paint1_linear_2797_3564",x1:"17.4662",y1:"4.10049",x2:"2.52871",y2:"29.3238",gradientUnits:"userSpaceOnUse",children:[S.jsx("stop",{stopColor:"#1C4DFA"}),S.jsx("stop",{offset:"1",stopColor:"#3FA9F5"})]})]})]}),Jme={1:Gme,2:jme,3:Wme,4:Yme,5:$me,6:qme,7:Xme,8:Zme,9:Kme,10:Qme},vg=({name:t,...e})=>{const r=Jme[t];return r?S.jsx(r,{...e}):null},e2e=({messageId:t,onRegenerate:e,disabled:r=!1,className:n=""})=>{const a=async()=>{if(!r)try{await e(t)}catch(i){console.error("重新生成失败:",i)}};return S.jsx("button",{onClick:a,disabled:r,className:`flex items-center justify-center w-[24px] h-[24px] rounded hover:bg-[rgba(0,0,0,0.05)] ${r?"opacity-50 cursor-not-allowed":""} ${n}`,title:"重新生成",children:S.jsx(YA,{className:"w-[14px] h-[14px] text-[rgba(0,0,0,0.45)]"})})},t2e=({elapsedSeconds:t,totalTokens:e,className:r=""})=>{if(t==null&&e==null)return null;const n=[];if(t!=null){const i=Math.max(0,t).toFixed(2);n.push(`耗时: ${i}s`)}if(e!=null){const a=e.toLocaleString("en-US");n.push(`Token: ${a}`)}return S.jsx("div",{className:`flex items-center text-[12px] text-[rgba(0,0,0,0.45)] ${r}`,style:{fontFamily:"Noto Sans SC"},children:S.jsx("span",{className:"leading-[20px] whitespace-nowrap",children:n.join(" ")})})},r2e=({questions:t,onSelectQuestion:e,className:r=""})=>{if(!t||t.length===0)return null;const n=a=>{e&&e(a)};return S.jsxs("div",{className:`flex flex-wrap gap-[8px] ${r} flex-col`,style:{fontFamily:"Noto Sans SC"},children:[S.jsx("div",{className:"flex flex-col gap-[8px]",children:"您是否想了解下面的内容:"}),t.map((a,i)=>S.jsx("div",{tabIndex:0,onClick:()=>n(a),onKeyDown:o=>{(o.key==="Enter"||o.key===" ")&&(o.preventDefault(),n(a))},className:"inline-flex items-center justify-center text-left w-fit max-w-[320px] px-[12px] py-[8px] rounded-[6px] text-[14px] leading-[22px] text-[rgba(0,0,0,0.85)] break-words whitespace-normal border border-white/50 shadow-sm cursor-pointer transition-all duration-200 hover:border-[#126EE3]/40 hover:shadow-md bg-[linear-gradient(135deg,rgba(246,247,255,0.92)_0%,rgba(242,251,255,0.92)_40%,rgba(255,246,251,0.92)_100%),radial-gradient(circle_at_70%_30%,rgba(99,102,241,0.12)_0%,transparent_70%),radial-gradient(circle_at_30%_70%,rgba(236,72,153,0.08)_0%,transparent_60%)] backdrop-blur-sm hover:bg-[linear-gradient(135deg,rgba(240,242,255,0.95)_0%,rgba(232,248,255,0.95)_40%,rgba(255,239,248,0.95)_100%),radial-gradient(circle_at_70%_30%,rgba(99,102,241,0.16)_0%,transparent_70%),radial-gradient(circle_at_30%_70%,rgba(236,72,153,0.1)_0%,transparent_60%)]",title:a,children:S.jsx("span",{children:a})},`${a}-${i}`))]})},n2e=({message:t,isStreaming:e=!1,agentAvatar:r,onRegenerate:n,isLastAssistantMessage:a=!1,onSelectQuestion:i})=>{var p,v,g;const o=t.role.type===kn.USER,[s,l]=re.useState(!1),u=()=>{var m;return Array.isArray(t.content)?t.content.some(y=>{var x;return y.type===$e.TEXT||y.type===$e.MARKDOWN?((x=y.content)==null?void 0:x.trim().length)>0:!0}):((m=t.content)==null?void 0:m.trim().length)>0},c=async()=>{await kL(t)&&(l(!0),setTimeout(()=>l(!1),1e3))},h=()=>S.jsx("span",{className:"shiny-text text-[14px]",style:{fontFamily:"Noto Sans SC"},children:"正在思考..."}),f=(m,y)=>{if(!(y!=null&&y.length)||m.type!==$e.TEXT&&m.type!==$e.MARKDOWN)return!1;const x=typeof m.content=="string"?m.content.trim():"";if(!x)return!1;try{const b=JSON.parse(x);return!Array.isArray(b)||b.length!==y.length?!1:b.every((T,_)=>T===y[_])}catch{return!1}},d=()=>{var m;if(e&&!u())return h();if(Array.isArray(t.content)){const y=(m=t.messageContext)==null?void 0:m.relatedQuestions;return S.jsx("div",{className:"space-y-2",children:t.content.map((x,b)=>{if(f(x,y))return null;switch(x.type){case $e.TEXT:return S.jsx(PX,{block:x},b);case $e.MARKDOWN:return S.jsx(UL,{block:x},b);case $e.WEB_SEARCH:return S.jsx(BX,{block:x},b);case $e.JSON2PLOT:return S.jsx(Ume,{block:x},b);case $e.WEB_PROCESSOR:return S.jsx(iL,{block:x},b);case $e.TOOL:return S.jsx(g5,{block:x},b);default:return null}})})}return S.jsx("p",{className:"text-[14px] whitespace-pre-wrap break-words leading-[24px]",children:t.content})};return S.jsxs("div",{className:`flex ${o?"justify-end":"justify-start"} mb-2 group`,children:[!o&&S.jsx("div",{className:"w-[21px] h-[21px] mr-2 flex-shrink-0",children:r?S.jsx(vg,{name:r,className:"w-[21px] h-[21px]"}):S.jsx(_6,{className:"w-[21px] h-[21px]"})}),S.jsxs("div",{className:`flex flex-col gap-2 ${o?"max-w-[calc(100%-30px)]":"w-[calc(100%-30px)]"}`,children:[o&&t.applicationContext&&t.applicationContext.title&&S.jsx("div",{className:"self-end",children:S.jsx("span",{className:"inline-block bg-[rgba(18,110,227,0.04)] rounded-[8px] px-[14px] py-[5px] text-[12px] leading-[24px] text-[rgba(0,0,0,0.85)]",style:{fontFamily:"Noto Sans SC"},children:t.applicationContext.title})}),S.jsx("div",{className:`rounded-[6px] ${o?"bg-[#DBE8FF] text-[rgba(0,0,0,0.85)] px-[14px] py-[5px]":"bg-white text-black"}`,style:{fontFamily:"Noto Sans SC"},children:d()}),!o&&!e&&u()&&S.jsxs("div",{className:"flex items-center justify-between gap-2",children:[S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx("button",{onClick:c,className:"flex items-center justify-center w-[24px] h-[24px] rounded hover:bg-[rgba(0,0,0,0.05)]",title:s?"已复制":"复制",children:S.jsx(WA,{className:`w-[14px] h-[14px] ${s?"text-[#126EE3]":"text-[rgba(0,0,0,0.45)]"}`})}),n&&a&&S.jsx(e2e,{messageId:t.messageId,onRegenerate:n,disabled:e})]}),S.jsx(t2e,{elapsedSeconds:(p=t.messageContext)==null?void 0:p.elapsedSeconds,totalTokens:(v=t.messageContext)==null?void 0:v.totalTokens})]}),!o&&a&&!e&&S.jsx(r2e,{questions:((g=t.messageContext)==null?void 0:g.relatedQuestions)??[],onSelectQuestion:i,className:"mt-2"})]})]})},a2e=({messageId:t,onHeightChange:e,className:r,children:n})=>{const a=re.useRef(null);return re.useEffect(()=>{const i=a.current;if(!i||!e)return;const o=()=>{const l=i.getBoundingClientRect();l.height>0&&e(t,l.height)};o();const s=new ResizeObserver(()=>{o()});return s.observe(i),()=>{s.disconnect()}},[t,e]),S.jsx("div",{ref:a,className:r,children:n})},i2e=({messageCount:t,onExpand:e})=>S.jsx("div",{className:"w-full flex justify-center my-2",children:S.jsxs("button",{type:"button",onClick:e,className:"px-3 py-1 rounded-full bg-[rgba(0,0,0,0.04)] hover:bg-[rgba(0,0,0,0.08)] text-[12px] leading-[20px] text-[rgba(0,0,0,0.65)] transition-colors",style:{fontFamily:"Noto Sans SC"},children:["展开更早的对话(共 ",t," 条)"]})});function o2e(t){const{getOrderedMessageIds:e,shouldUseAnchor:r}=t,n=re.useRef(null),a=re.useRef(null),i=re.useRef(new Map),o=re.useRef(new Map),s=re.useRef(null),l=re.useCallback(v=>{n.current=v},[]),u=re.useCallback((v,g)=>{const m=e();if(!m.length)return null;let y=0;for(let x=0;x<m.length;x++){const b=m[x];if(b===v)return y;const T=g.get(b);typeof T=="number"&&(y+=T)}return null},[e]),c=re.useCallback(()=>{if(r&&!r())return;const v=n.current,g=a.current;if(!v||!g)return;const m=i.current,y=u(g.messageId,m);if(y==null)return;const x=Math.max(0,y-g.offset);v.scrollTop=x},[u]),h=re.useCallback(()=>{if(s.current=null,!o.current.size)return;const v=new Map(i.current);o.current.forEach((g,m)=>{v.set(m,g)}),o.current.clear(),i.current=v,c()},[c]),f=re.useCallback(()=>{s.current==null&&(s.current=window.requestAnimationFrame(h))},[h]),d=re.useCallback((v,g)=>{g<=0||(o.current.set(v,g),f())},[f]),p=re.useCallback(v=>{const m=v.currentTarget.scrollTop,y=i.current,x=e();if(!x.length)return;let b=0,T=x[0],_=0;for(let E=0;E<x.length;E++){const N=x[E],A=y.get(N)??0,D=b+A;if(D>m){T=N,_=m-b;break}b=D}a.current={messageId:T,offset:_}},[e]);return re.useEffect(()=>()=>{s.current!=null&&cancelAnimationFrame(s.current)},[]),{handleMessageHeightChange:d,handleScroll:p,registerScrollContainer:l,restoreScrollByAnchor:c}}const s2e=80,l2e=24,u2e=150,c2e=({messages:t,streamingMessageId:e,agentAvatar:r,onRegenerate:n,onSelectQuestion:a})=>{var N;const i=re.useRef(null),o=re.useRef(!0),s=re.useRef(null),[l,u]=re.useState(()=>new Set),c=re.useMemo(()=>{for(let A=t.length-1;A>=0;A--)if(t[A].role.type===kn.ASSISTANT)return A;return-1},[t]),h=re.useMemo(()=>{const A=[];if(!t.length)return A;let D=null;for(let R=0;R<t.length;R++){const B=t[R];B.role.type===kn.USER||!D?(D={id:`chunk-${B.messageId}`,messageIds:[B.messageId],startIndex:R,endIndex:R},A.push(D)):(D.messageIds.push(B.messageId),D.endIndex=R)}return A},[t]),f=re.useMemo(()=>{const A=new Set;if(!h.length)return A;let D=u2e;for(let R=h.length-1;R>=0&&D>0;R--){const B=h[R];A.add(B.id),D-=B.messageIds.length}return A},[h]),d=re.useMemo(()=>{const A=new Set(f);return l.forEach(D=>A.add(D)),A},[f,l]),p=re.useMemo(()=>{if(!t.length||!h.length)return[];const A=[];return h.forEach(D=>{if(d.has(D.id))for(let B=D.startIndex;B<=D.endIndex;B++)A.push(t[B].messageId)}),A},[t,h,d]),{handleMessageHeightChange:v,handleScroll:g,registerScrollContainer:m}=o2e({getOrderedMessageIds:()=>p,shouldUseAnchor:()=>!o.current}),y=re.useCallback(A=>{const D=A.currentTarget,R=D.scrollHeight-(D.scrollTop+D.clientHeight);o.current=R<=s2e,g(A)},[g]),x=re.useCallback(A=>{i.current=A,m(A)},[m]),b=re.useCallback(A=>{u(D=>{if(D.has(A))return D;const R=new Set(D);return R.add(A),R})},[]),T=re.useCallback(A=>{for(let D=A-1;D>=0;D--)if(t[D].role.type===kn.USER)return t[D];return null},[t]),_=re.useCallback(async(A,D)=>{if(!n)return;const R=T(D);R&&await n(A,R)},[n,T]);re.useEffect(()=>{if(!i.current||!t.length)return;const D=t[t.length-1],R=(D==null?void 0:D.messageId)??null,B=s.current;s.current=R,o.current&&(B!==null&&B===R||requestAnimationFrame(()=>{if(!i.current)return;const{scrollHeight:M,clientHeight:w}=i.current;i.current.scrollTop=Math.max(0,M-w)}))},[t.length,(N=t[t.length-1])==null?void 0:N.messageId]),re.useEffect(()=>{if(!t.length||!i.current)return;const A=t[t.length-1];if((A==null?void 0:A.messageId)!==e||!o.current)return;const D=requestAnimationFrame(()=>{if(!i.current)return;const{scrollHeight:R,clientHeight:B}=i.current;i.current.scrollTop=Math.max(0,R-B)});return()=>cancelAnimationFrame(D)},[t,e]);const E=re.useMemo(()=>{if(!t.length||!h.length)return null;const A=[];return h.forEach(D=>{if(!d.has(D.id)){const B=D.messageIds.length;A.push(S.jsx(i2e,{messageCount:B,onExpand:()=>b(D.id)},D.id));return}for(let B=D.startIndex;B<=D.endIndex;B++){const M=t[B],w=B;A.push(S.jsx(a2e,{messageId:M.messageId,onHeightChange:v,className:"flex flex-col gap-0",children:S.jsx(n2e,{message:M,isStreaming:M.messageId===e,agentAvatar:r,onRegenerate:n?L=>_(L,w):void 0,isLastAssistantMessage:w===c,onSelectQuestion:a})},M.messageId))}}),A},[t,h,d,b,v,e,r,n,c,a]);return S.jsx("div",{className:"w-full flex flex-col items-center justify-center h-full min-h-0",children:S.jsx("div",{ref:x,className:"w-full max-w-[960px] flex-1 min-h-0 overflow-y-auto overflow-x-hidden py-6",style:{marginBottom:l2e},onScroll:y,children:S.jsx("div",{className:"flex flex-col gap-6 flex-shrink-0",children:E})})})},h2e={fontFamily:"Noto Sans SC"},f2e=re.memo(function(){return S.jsxs("div",{className:"flex items-center","aria-hidden":!0,children:[S.jsx("div",{className:"h-[5px] w-[5px] rounded-full mr-[10px] task-dot bg-[#b3d4fc]"}),S.jsx("div",{className:"h-[5px] w-[5px] rounded-full mr-[10px] task-dot bg-[#b3d4fc]"}),S.jsx("div",{className:"h-[5px] w-[5px] rounded-full mr-[10px] task-dot bg-[#b3d4fc]"}),S.jsx("div",{className:"h-[5px] w-[5px] rounded-full mr-[10px] task-dot bg-[#b3d4fc]"}),S.jsx("div",{className:"h-[5px] w-[5px] rounded-full task-dot bg-[#b3d4fc]"})]})}),d2e=re.memo(function({className:e=""}){return S.jsxs("div",{className:`inline-flex items-center px-4 py-2 rounded-lg ${e}`,style:{contain:"layout style paint"},children:[S.jsx("span",{className:"text-[14px] text-[rgba(0,0,0,0.65)] mr-2",style:h2e,children:"任务正在进行中"}),S.jsx(f2e,{})]})}),p2e=({value:t,onChange:e,onSend:r,context:n,onRemoveContext:a,disabled:i=!1,isStreaming:o=!1,onStop:s})=>{const[l,u]=re.useState(!1),c=async()=>{if(!(l||!t.trim()||i))try{u(!0),await r()}finally{u(!1)}},h=f=>{f.key==="Enter"&&!f.shiftKey&&(f.preventDefault(),c())};return S.jsx("div",{className:"w-full flex justify-center pr-1.5",children:S.jsxs("div",{className:"w-full max-w-[960px] px-5 pb-3",children:[n&&n.title&&S.jsxs("div",{className:"mb-2 bg-[rgba(18,110,227,0.04)] rounded-lg px-4 py-2 flex items-center",children:[S.jsx("p",{className:"text-[12px] leading-6 text-[rgba(0,0,0,0.85)] truncate",style:{fontFamily:"Noto Sans SC"},children:n.title}),S.jsx("button",{onClick:a,className:"ml-auto text-[rgba(0,0,0,0.45)] hover:text-[rgba(0,0,0,0.85)] transition-colors flex-shrink-0",title:"移除上下文",children:S.jsx(rf,{})})]}),o&&S.jsx("div",{className:"flex justify-center mb-[12px]",children:S.jsx(d2e,{})}),S.jsxs("div",{className:"relative bg-white rounded-[12px] overflow-hidden",style:{background:"linear-gradient(#fff,#fff) padding-box, linear-gradient(45.59deg, #3B9BE0 -3.35%, #FFAA00 57.9%, rgba(50, 50, 50, 0.646918) 102.8%) border-box",border:"1.5px solid transparent"},children:[S.jsx("textarea",{value:t,onChange:f=>e(f.target.value),onKeyDown:h,placeholder:"请输入要查找的内容",disabled:i,className:"w-full h-[110px] resize-none px-4 py-3 text-[14px] leading-[22px] text-black placeholder:text-[rgba(0,0,0,0.3)] focus:outline-none disabled:bg-gray-50 disabled:cursor-not-allowed",style:{fontFamily:"Noto Sans SC"},maxLength:4e3}),o?S.jsx("button",{onClick:s,className:"absolute bottom-3 right-4 w-[32px] h-[32px] rounded-md transition-colors stop-button-loading",title:"停止响应",children:S.jsxs("div",{className:"stop-button-outer",children:[S.jsx("div",{className:"stop-button-ring"}),S.jsx("div",{className:"stop-button-middle",children:S.jsx("div",{className:"stop-button-inner"})})]})}):S.jsx("button",{onClick:c,disabled:i||l||!t.trim(),className:"absolute bottom-3 right-4 w-8 h-8 flex items-center justify-center bg-[#126EE3] hover:bg-[#126EE3] rounded-md transition-colors disabled:opacity-25 disabled:cursor-not-allowed transition-opacity",title:i||l?"正在发送...":"发送消息",children:S.jsx(zA,{disabled:i||l||!t.trim()})})]}),S.jsx("p",{className:"mt-2 text-center text-[12px] leading-[18px] text-[rgba(0,0,0,0.55)]",style:{fontFamily:"Noto Sans SC"},children:"答案由大模型生成,请仔细甄别"})]})})},v2e=({label:t,onClick:e,disabled:r=!1,className:n=""})=>{const a=()=>{r||e(t)};return S.jsx("div",{onClick:a,className:`inline-flex items-center justify-center text-left w-fit px-[12px] py-[8px] rounded-[6px] text-[14px] leading-[22px] text-[rgba(0,0,0,0.85)] break-words whitespace-normal border border-white/50 shadow-sm cursor-pointer transition-all duration-200 hover:border-[#126EE3]/40 hover:shadow-md bg-[#F8F9FC] backdrop-blur-sm hover:bg-[#F0F2FF] ${r?"opacity-50 cursor-not-allowed":""} ${n}`,style:{fontFamily:"Noto Sans SC"},children:S.jsx("span",{children:t})})},g2e=({onQuestionClick:t,prologue:e,predefinedQuestions:r,agentInfo:n})=>{const a=r||[],i=o=>{t&&t(o)};return S.jsx("div",{className:"w-full flex justify-center",children:S.jsxs("div",{className:"w-full max-w-[960px] px-5 py-8",children:[(n==null?void 0:n.name)&&S.jsxs("p",{className:"text-2xl text-[rgba(0,0,0,0.85)] font-normal mb-6 flex items-center gap-5",style:{fontFamily:"Noto Sans SC"},children:[(n==null?void 0:n.avatar)&&S.jsx(vg,{name:n.avatar,width:48,height:48}),n.name]}),e&&S.jsx("div",{className:"mb-6 bg-[rgba(248,249,252,1)] rounded-[12px] px-4 py-3",style:{fontFamily:"Noto Sans SC"},children:S.jsx("div",{className:"text-[14px] leading-[22px] text-[rgba(0,0,0,0.85)]",children:S.jsx(UL,{block:{type:$e.MARKDOWN,content:e},fontSize:14})})}),a.length>0&&S.jsxs(S.Fragment,{children:[S.jsx("p",{className:"mb-4 text-[14px] leading-[24px] text-[rgba(0,0,0,0.85)] font-medium",style:{fontFamily:"Noto Sans SC"},children:"你可以问我:"}),S.jsx("div",{className:"flex flex-col gap-3",children:a.map(o=>S.jsx(v2e,{label:o,onClick:i},o))})]})]})})},m2e=({visible:t,onClose:e,onGetConversations:r,onLoadConversation:n,onDeleteConversation:a,agentInfo:i})=>{const[o,s]=re.useState([]),[l,u]=re.useState(!1),[c,h]=re.useState(null),[f,d]=re.useState(null),[p,v]=re.useState(null),g=async()=>{u(!0),h(null);try{const T=await r(1,1e3);s(T)}catch(T){h(T instanceof Error?T.message:"获取历史会话失败"),console.error("获取历史会话失败:",T)}finally{u(!1)}},m=async(T,_)=>{if(_.stopPropagation(),!!confirm("确定要删除这条会话吗?")){d(T);try{await a(T),await g()}catch(E){h(E instanceof Error?E.message:"删除会话失败"),console.error("删除会话失败:",E)}finally{d(null)}}},y={[Yt.Minute]:1e3*60,[Yt.Hour]:1e3*60*60,[Yt.ToDay]:1e3*60*60*24,[Yt.Yesterday]:1e3*60*60*24*2,[Yt.SixDay]:1e3*60*60*24*6,[Yt.Month]:1e3*60*60*24*30,[Yt.Year]:1e3*60*60*24*30*12},x=(T=Date.now())=>new Date(T).setHours(0,0,0,0),b=(T,_)=>{const E=T<1e12?T*1e3:T,N=x(E),A=x(),D=x(Date.now()-y.sixDay),R=A-N,B=new Date().getFullYear(),M=new Date(E).getFullYear();switch(!0){case(_.includes(Yt.ToDay)&&A<E):return new Date(E).getHours().toString().padStart(2,"0")+":"+new Date(E).getMinutes().toString().padStart(2,"0");case(_.includes(Yt.SixDay)&&D<E):return`${Math.floor(R/(1e3*60*60*24))}天前`;case(_.includes(Yt.Year)&&B===M):return new Date(E).getMonth().toString().padStart(2,"0")+"-"+new Date(E).getDate().toString().padStart(2,"0");default:try{return new Date(E).getFullYear().toString()+"-"+new Date(E).getMonth().toString().padStart(2,"0")+"-"+new Date(E).getDate().toString().padStart(2,"0")}catch{return"时间格式化错误"}}};return re.useEffect(()=>{t&&g()},[t]),t?S.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 z-50",onClick:e,children:S.jsxs("div",{className:"absolute right-0 top-0 h-full w-[400px] bg-white shadow-[0px_9px_56px_0px_rgba(0,0,0,0.08)]",onClick:T=>T.stopPropagation(),children:[S.jsxs("div",{className:"h-[64px] px-[24px] flex items-center justify-between",children:[S.jsx("h2",{className:"text-[18px] font-medium text-black",style:{fontFamily:"Noto Sans SC"},children:"相关历史对话"}),S.jsx("button",{onClick:e,className:"w-[24px] h-[24px] flex items-center justify-center text-[rgba(0,0,0,0.65)] hover:text-[rgba(0,0,0,1)] transition-colors",children:S.jsx(rf,{})})]}),S.jsxs("div",{className:"h-[calc(100%-64px)] overflow-y-auto",children:[l&&S.jsx("div",{className:"flex items-center justify-center py-12",children:S.jsx("div",{className:"text-[14px] text-[rgba(0,0,0,0.45)]",style:{fontFamily:"Noto Sans SC"},children:"加载中..."})}),c&&S.jsx("div",{className:"flex items-center justify-center py-12",children:S.jsx("div",{className:"text-[14px] text-red-500",style:{fontFamily:"Noto Sans SC"},children:c})}),!l&&!c&&o.length===0&&S.jsx("div",{className:"flex items-center justify-center py-12",children:S.jsx("div",{className:"text-[14px] text-[rgba(0,0,0,0.45)]",style:{fontFamily:"Noto Sans SC"},children:"暂无历史会话"})}),!l&&!c&&o.length>0&&S.jsxs("div",{className:"px-[14px] pb-[14px]",children:[(i==null?void 0:i.name)&&S.jsxs("div",{className:"mb-[14px] flex flex-col items-center gap-y-[10px]",children:[S.jsx(vg,{name:i.avatar,width:64,height:64}),S.jsx("p",{className:"text-[16px] font-medium text-[rgba(0,0,0,0.85)]",style:{fontFamily:"Noto Sans SC"},children:i.name})]}),S.jsx("div",{className:"space-y-[2px]",children:o.map(T=>S.jsxs("div",{className:`
534
534
  h-[36px] px-[10px] flex items-center justify-between cursor-pointer
535
535
  ${p===T.conversationID?"bg-[#f0f0f0]":"bg-transparent"}
536
536
  rounded-[6px] transition-colors
@@ -81544,7 +81544,7 @@ const m2e = 80, y2e = 24, x2e = 150, b2e = ({
81544
81544
  ]
81545
81545
  }
81546
81546
  ),
81547
- /* @__PURE__ */ S.jsx("p", { className: "mt-2 text-center text-[12px] leading-[18px] text-[rgba(0,0,0,0.55)]", style: { fontFamily: "Noto Sans SC" }, children: "回答的内容由 AI 生成,不能保证完全真实准确,请仔细甄别" })
81547
+ /* @__PURE__ */ S.jsx("p", { className: "mt-2 text-center text-[12px] leading-[18px] text-[rgba(0,0,0,0.55)]", style: { fontFamily: "Noto Sans SC" }, children: "答案由大模型生成,请仔细甄别" })
81548
81548
  ] }) });
81549
81549
  }, C2e = ({
81550
81550
  label: t,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kweaver-ai/chatkit",
3
- "version": "0.1.18",
3
+ "version": "0.1.19",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },