@infinilabs/chat-message 0.0.6 → 0.0.7

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.
@@ -1,5 +1,5 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var r=document.createElement("style");r.appendChild(document.createTextNode('/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-blue-500:oklch(62.3% .214 259.815);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--leading-relaxed:1.625;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.top-20{top:calc(var(--spacing)*20)}.top-21{top:calc(var(--spacing)*21)}.top-full{top:100%}.right-4{right:calc(var(--spacing)*4)}.right-5{right:calc(var(--spacing)*5)}.right-full{right:100%}.bottom-2{bottom:calc(var(--spacing)*2)}.bottom-20{bottom:calc(var(--spacing)*20)}.bottom-full{bottom:100%}.left-2{left:calc(var(--spacing)*2)}.left-full{left:100%}.z-50{z-index:50}.z-1000{z-index:1000}.-mx-6{margin-inline:calc(var(--spacing)*-6)}.my-3{margin-block:calc(var(--spacing)*3)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-3{margin-top:calc(var(--spacing)*3)}.mt-4{margin-top:calc(var(--spacing)*4)}.mr-2{margin-right:calc(var(--spacing)*2)}.-mb-0\\.5{margin-bottom:calc(var(--spacing)*-.5)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.ml-0\\.5{margin-left:calc(var(--spacing)*.5)}.ml-1\\.5{margin-left:calc(var(--spacing)*1.5)}.ml-2{margin-left:calc(var(--spacing)*2)}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.flex{display:flex}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.size-4{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-5{width:calc(var(--spacing)*5);height:calc(var(--spacing)*5)}.size-6{width:calc(var(--spacing)*6);height:calc(var(--spacing)*6)}.h-3{height:calc(var(--spacing)*3)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.w-1\\.5{width:calc(var(--spacing)*1.5)}.w-3{width:calc(var(--spacing)*3)}.w-4{width:calc(var(--spacing)*4)}.w-6{width:calc(var(--spacing)*6)}.w-\\[75\\%\\]{width:75%}.w-fit{width:fit-content}.w-full{width:100%}.w-full\\!{width:100%!important}.max-w-\\[85\\%\\]{max-width:85%}.max-w-full{max-width:100%}.max-w-none{max-width:none}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-32{min-width:calc(var(--spacing)*32)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-spin{animation:var(--animate-spin)}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.flex-row-reverse{flex-direction:row-reverse}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-\\[\\#E4E5EF\\]{border-color:#e4e5ef}.border-\\[\\#E6E6E6\\]{border-color:#e6e6e6}.border-\\[\\#e5e5e5\\]{border-color:#e5e5e5}.border-black\\/12{border-color:#0000001f}@supports (color:color-mix(in lab,red,red)){.border-black\\/12{border-color:color-mix(in oklab,var(--color-black)12%,transparent)}}.border-black\\/15{border-color:#00000026}@supports (color:color-mix(in lab,red,red)){.border-black\\/15{border-color:color-mix(in oklab,var(--color-black)15%,transparent)}}.bg-\\[\\#1a1a1a\\]{background-color:#1a1a1a}.bg-\\[\\#666666\\]{background-color:#666}.bg-\\[\\#F5F5F5\\]{background-color:#f5f5f5}.bg-\\[\\#F7F7F7\\]{background-color:#f7f7f7}.bg-blue-500{background-color:var(--color-blue-500)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-white{background-color:var(--color-white)}.p-0{padding:calc(var(--spacing)*0)}.p-0\\!{padding:calc(var(--spacing)*0)!important}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-\\[2px\\]{padding:2px}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-8{padding-block:calc(var(--spacing)*8)}.pt-1{padding-top:calc(var(--spacing)*1)}.pr-3{padding-right:calc(var(--spacing)*3)}.pl-2{padding-left:calc(var(--spacing)*2)}.pl-7{padding-left:calc(var(--spacing)*7)}.text-left{text-align:left}.text-right{text-align:right}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-4{--tw-leading:calc(var(--spacing)*4);line-height:calc(var(--spacing)*4)}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.wrap-break-word{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-\\[\\#8b8b8b\\]{color:#8b8b8b}.text-\\[\\#38C200\\]{color:#38c200}.text-\\[\\#333\\]{color:#333}.text-\\[\\#1990FF\\]{color:#1990ff}.text-\\[\\#333333\\]{color:#333}.text-\\[\\#666666\\]{color:#666}.text-\\[\\#999999\\]{color:#999}.text-black{color:var(--color-black)}.text-gray-600{color:var(--color-gray-600)}.text-white{color:var(--color-white)}.italic{font-style:italic}.opacity-0{opacity:0}.shadow-\\[0_2px_20px_rgba\\(0\\,0\\,0\\,0\\.1\\)\\]{--tw-shadow:0 2px 20px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.outline-none{--tw-outline-style:none;outline-style:none}@media (hover:hover){.group-hover\\:text-\\[\\#0072FF\\]:is(:where(.group):hover *){color:#0072ff}}.last\\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}@media (hover:hover){.hover\\:border-\\[\\#0072ff\\]\\!:hover{border-color:#0072ff!important}.hover\\:bg-\\[\\#EDEDED\\]:hover{background-color:#ededed}.hover\\:bg-\\[\\#F7F7F7\\]:hover{background-color:#f7f7f7}.hover\\:bg-black\\/5:hover{background-color:#0000000d}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-black\\/5:hover{background-color:color-mix(in oklab,var(--color-black)5%,transparent)}}.hover\\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\\:text-\\[\\#0072ff\\]\\!:hover{color:#0072ff!important}.hover\\:text-\\[\\#ff4d4f\\]\\!:hover{color:#ff4d4f!important}}@media (min-width:48rem){.md\\:w-\\[610px\\]{width:610px}}.dark\\:border-\\[\\#3A3A3A\\]:where(.dark,.dark *){border-color:#3a3a3a}.dark\\:border-\\[\\#4e4e56\\]:where(.dark,.dark *){border-color:#4e4e56}.dark\\:border-\\[\\#272626\\]:where(.dark,.dark *){border-color:#272626}.dark\\:border-black\\/15:where(.dark,.dark *){border-color:#00000026}@supports (color:color-mix(in lab,red,red)){.dark\\:border-black\\/15:where(.dark,.dark *){border-color:color-mix(in oklab,var(--color-black)15%,transparent)}}.dark\\:border-white\\/15:where(.dark,.dark *){border-color:#ffffff26}@supports (color:color-mix(in lab,red,red)){.dark\\:border-white\\/15:where(.dark,.dark *){border-color:color-mix(in oklab,var(--color-white)15%,transparent)}}.dark\\:bg-\\[\\#1E1E1E\\]:where(.dark,.dark *){background-color:#1e1e1e}.dark\\:bg-\\[\\#2A2A2A\\]:where(.dark,.dark *){background-color:#2a2a2a}.dark\\:bg-\\[\\#202126\\]\\!:where(.dark,.dark *){background-color:#202126!important}.dark\\:bg-\\[\\#A3A3A3\\]:where(.dark,.dark *){background-color:#a3a3a3}.dark\\:bg-black:where(.dark,.dark *){background-color:var(--color-black)}.dark\\:bg-gray-700:where(.dark,.dark *){background-color:var(--color-gray-700)}.dark\\:text-\\[\\#38C200\\]:where(.dark,.dark *){color:#38c200}.dark\\:text-\\[\\#1990FF\\]:where(.dark,.dark *){color:#1990ff}.dark\\:text-\\[\\#808080\\]:where(.dark,.dark *){color:gray}.dark\\:text-\\[\\#999999\\]:where(.dark,.dark *){color:#999}.dark\\:text-\\[\\#A3A3A3\\]:where(.dark,.dark *){color:#a3a3a3}.dark\\:text-\\[\\#D8D8D8\\]:where(.dark,.dark *){color:#d8d8d8}.dark\\:text-\\[\\#a6a6a6\\]:where(.dark,.dark *){color:#a6a6a6}.dark\\:text-gray-300:where(.dark,.dark *){color:var(--color-gray-300)}.dark\\:text-white:where(.dark,.dark *){color:var(--color-white)}.dark\\:shadow-\\[0_2px_20px_rgba\\(255\\,255\\,255\\,0\\.1\\)\\]:where(.dark,.dark *){--tw-shadow:0 2px 20px var(--tw-shadow-color,#ffffff1a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.dark\\:drop-shadow-\\[0_0_6px_rgb\\(255\\,255\\,255\\)\\]:where(.dark,.dark *){--tw-drop-shadow-size:drop-shadow(0 0 6px var(--tw-drop-shadow-color,#fff));--tw-drop-shadow:var(--tw-drop-shadow-size);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}@media (hover:hover){.dark\\:group-hover\\:text-\\[\\#0072FF\\]:where(.dark,.dark *):is(:where(.group):hover *){color:#0072ff}.dark\\:hover\\:bg-\\[\\#2C2C2C\\]:where(.dark,.dark *):hover{background-color:#2c2c2c}.dark\\:hover\\:bg-\\[\\#3A3A3A\\]:where(.dark,.dark *):hover{background-color:#3a3a3a}.dark\\:hover\\:bg-white\\/5:where(.dark,.dark *):hover{background-color:#ffffff0d}@supports (color:color-mix(in lab,red,red)){.dark\\:hover\\:bg-white\\/5:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--color-white)5%,transparent)}}}.\\[\\&_\\.ant-btn-icon\\]\\:flex .ant-btn-icon{display:flex}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}')),document.head.appendChild(r)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),K=require("react-i18next"),he=require("clsx"),At=require("i18next"),Ze=require("@ant-design/x-markdown"),E=require("lucide-react"),kt=require("ahooks"),vt=require("@infinilabs/attachments");var Ce={exports:{}},ue={};/**
1
+ (function(){"use strict";try{if(typeof document<"u"){var r=document.createElement("style");r.appendChild(document.createTextNode('/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-blue-50:oklch(97% .014 254.604);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--leading-relaxed:1.625;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:calc(var(--spacing)*0)}.top-0{top:calc(var(--spacing)*0)}.top-20{top:calc(var(--spacing)*20)}.top-21{top:calc(var(--spacing)*21)}.top-full{top:100%}.right-4{right:calc(var(--spacing)*4)}.right-5{right:calc(var(--spacing)*5)}.right-full{right:100%}.bottom-2{bottom:calc(var(--spacing)*2)}.bottom-20{bottom:calc(var(--spacing)*20)}.bottom-full{bottom:100%}.left-0{left:calc(var(--spacing)*0)}.left-2{left:calc(var(--spacing)*2)}.left-2\\.5{left:calc(var(--spacing)*2.5)}.left-full{left:100%}.z-50{z-index:50}.z-999{z-index:999}.z-1000{z-index:1000}.-mx-6{margin-inline:calc(var(--spacing)*-6)}.my-3{margin-block:calc(var(--spacing)*3)}.mt-0\\.5{margin-top:calc(var(--spacing)*.5)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-3{margin-top:calc(var(--spacing)*3)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-5{margin-top:calc(var(--spacing)*5)}.mr-2{margin-right:calc(var(--spacing)*2)}.-mb-0\\.5{margin-bottom:calc(var(--spacing)*-.5)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.ml-0\\.5{margin-left:calc(var(--spacing)*.5)}.ml-1\\.5{margin-left:calc(var(--spacing)*1.5)}.ml-2{margin-left:calc(var(--spacing)*2)}.line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.flex{display:flex}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.size-4{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-5{width:calc(var(--spacing)*5);height:calc(var(--spacing)*5)}.size-6{width:calc(var(--spacing)*6);height:calc(var(--spacing)*6)}.h-2{height:calc(var(--spacing)*2)}.h-3{height:calc(var(--spacing)*3)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-10{height:calc(var(--spacing)*10)}.h-full{height:100%}.w-1\\.5{width:calc(var(--spacing)*1.5)}.w-3{width:calc(var(--spacing)*3)}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-10{width:calc(var(--spacing)*10)}.w-\\[75\\%\\]{width:75%}.w-fit{width:fit-content}.w-full{width:100%}.w-full\\!{width:100%!important}.max-w-\\[85\\%\\]{max-width:85%}.max-w-\\[520px\\]{max-width:520px}.max-w-\\[730px\\]{max-width:730px}.max-w-full{max-width:100%}.max-w-none{max-width:none}.max-w-sm{max-width:var(--container-sm)}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-32{min-width:calc(var(--spacing)*32)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.flex-row-reverse{flex-direction:row-reverse}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-none{--tw-border-style:none;border-style:none}.border-\\[\\#018AE5\\]{border-color:#018ae5}.border-\\[\\#E4E5EF\\]{border-color:#e4e5ef}.border-\\[\\#E6E6E6\\]{border-color:#e6e6e6}.border-\\[\\#EEF0F3\\]{border-color:#eef0f3}.border-\\[\\#e5e5e5\\]{border-color:#e5e5e5}.border-black\\/12{border-color:#0000001f}@supports (color:color-mix(in lab,red,red)){.border-black\\/12{border-color:color-mix(in oklab,var(--color-black)12%,transparent)}}.border-black\\/15{border-color:#00000026}@supports (color:color-mix(in lab,red,red)){.border-black\\/15{border-color:color-mix(in oklab,var(--color-black)15%,transparent)}}.border-blue-100{border-color:var(--color-blue-100)}.border-blue-500{border-color:var(--color-blue-500)}.border-gray-100{border-color:var(--color-gray-100)}.border-gray-200{border-color:var(--color-gray-200)}.bg-\\[\\#00C868\\]{background-color:#00c868}.bg-\\[\\#1a1a1a\\]{background-color:#1a1a1a}.bg-\\[\\#1784FC\\]{background-color:#1784fc}.bg-\\[\\#666666\\]{background-color:#666}.bg-\\[\\#E9F0FE\\]{background-color:#e9f0fe}.bg-\\[\\#F3F4F6\\]{background-color:#f3f4f6}.bg-\\[\\#F5F5F5\\]{background-color:#f5f5f5}.bg-\\[\\#F7F7F7\\]{background-color:#f7f7f7}.bg-black\\/20{background-color:#0003}@supports (color:color-mix(in lab,red,red)){.bg-black\\/20{background-color:color-mix(in oklab,var(--color-black)20%,transparent)}}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-50\\/30{background-color:#eff6ff4d}@supports (color:color-mix(in lab,red,red)){.bg-blue-50\\/30{background-color:color-mix(in oklab,var(--color-blue-50)30%,transparent)}}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-white{background-color:var(--color-white)}.p-0{padding:calc(var(--spacing)*0)}.p-0\\!{padding:calc(var(--spacing)*0)!important}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-\\[2px\\]{padding:2px}.px-1{padding-inline:calc(var(--spacing)*1)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-0\\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-8{padding-block:calc(var(--spacing)*8)}.pt-1{padding-top:calc(var(--spacing)*1)}.pt-2{padding-top:calc(var(--spacing)*2)}.pt-6{padding-top:calc(var(--spacing)*6)}.pr-3{padding-right:calc(var(--spacing)*3)}.pr-6{padding-right:calc(var(--spacing)*6)}.pb-4{padding-bottom:calc(var(--spacing)*4)}.pb-8{padding-bottom:calc(var(--spacing)*8)}.pl-0{padding-left:calc(var(--spacing)*0)}.pl-2{padding-left:calc(var(--spacing)*2)}.pl-4{padding-left:calc(var(--spacing)*4)}.pl-6{padding-left:calc(var(--spacing)*6)}.pl-7{padding-left:calc(var(--spacing)*7)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-4{--tw-leading:calc(var(--spacing)*4);line-height:calc(var(--spacing)*4)}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.wrap-break-word{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-\\[\\#8b8b8b\\]{color:#8b8b8b}.text-\\[\\#018AE5\\]{color:#018ae5}.text-\\[\\#22C55E\\]{color:#22c55e}.text-\\[\\#38C200\\]{color:#38c200}.text-\\[\\#148EFF\\]{color:#148eff}.text-\\[\\#333\\]{color:#333}.text-\\[\\#999\\]{color:#999}.text-\\[\\#1784FC\\]{color:#1784fc}.text-\\[\\#1990FF\\]{color:#1990ff}.text-\\[\\#333333\\]{color:#333}.text-\\[\\#666666\\]{color:#666}.text-\\[\\#999999\\]{color:#999}.text-\\[\\#C8C8C8\\]{color:#c8c8c8}.text-black{color:var(--color-black)}.text-blue-500{color:var(--color-blue-500)}.text-blue-600{color:var(--color-blue-600)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-900{color:var(--color-gray-900)}.text-white{color:var(--color-white)}.italic{font-style:italic}.opacity-0{opacity:0}.shadow-\\[0_2px_20px_rgba\\(0\\,0\\,0\\,0\\.1\\)\\]{--tw-shadow:0 2px 20px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.outline-none{--tw-outline-style:none;outline-style:none}@media (hover:hover){.group-hover\\:text-\\[\\#0072FF\\]:is(:where(.group):hover *){color:#0072ff}.group-hover\\:text-\\[\\#1784FC\\]:is(:where(.group):hover *){color:#1784fc}}.last\\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.last\\:pb-0:last-child{padding-bottom:calc(var(--spacing)*0)}@media (hover:hover){.hover\\:border-\\[\\#0072ff\\]\\!:hover{border-color:#0072ff!important}.hover\\:border-blue-200:hover{border-color:var(--color-blue-200)}.hover\\:bg-\\[\\#E0E9FD\\]:hover{background-color:#e0e9fd}.hover\\:bg-\\[\\#EDEDED\\]:hover{background-color:#ededed}.hover\\:bg-\\[\\#F7F7F7\\]:hover{background-color:#f7f7f7}.hover\\:bg-black\\/5:hover{background-color:#0000000d}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-black\\/5:hover{background-color:color-mix(in oklab,var(--color-black)5%,transparent)}}.hover\\:bg-blue-50:hover{background-color:var(--color-blue-50)}.hover\\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\\:text-\\[\\#0072ff\\]\\!:hover{color:#0072ff!important}.hover\\:text-\\[\\#ff4d4f\\]\\!:hover{color:#ff4d4f!important}.hover\\:text-blue-600:hover{color:var(--color-blue-600)}.hover\\:text-gray-600:hover{color:var(--color-gray-600)}.hover\\:opacity-80:hover{opacity:.8}}@media (min-width:48rem){.md\\:w-\\[610px\\]{width:610px}}.dark\\:border-\\[\\#1D3A6F\\]:where(.dark,.dark *){border-color:#1d3a6f}.dark\\:border-\\[\\#3A3A3A\\]:where(.dark,.dark *){border-color:#3a3a3a}.dark\\:border-\\[\\#4e4e56\\]:where(.dark,.dark *){border-color:#4e4e56}.dark\\:border-\\[\\#272626\\]:where(.dark,.dark *){border-color:#272626}.dark\\:border-black\\/15:where(.dark,.dark *){border-color:#00000026}@supports (color:color-mix(in lab,red,red)){.dark\\:border-black\\/15:where(.dark,.dark *){border-color:color-mix(in oklab,var(--color-black)15%,transparent)}}.dark\\:border-blue-900\\/30:where(.dark,.dark *){border-color:#1c398e4d}@supports (color:color-mix(in lab,red,red)){.dark\\:border-blue-900\\/30:where(.dark,.dark *){border-color:color-mix(in oklab,var(--color-blue-900)30%,transparent)}}.dark\\:border-gray-700:where(.dark,.dark *){border-color:var(--color-gray-700)}.dark\\:border-gray-800:where(.dark,.dark *){border-color:var(--color-gray-800)}.dark\\:border-white\\/15:where(.dark,.dark *){border-color:#ffffff26}@supports (color:color-mix(in lab,red,red)){.dark\\:border-white\\/15:where(.dark,.dark *){border-color:color-mix(in oklab,var(--color-white)15%,transparent)}}.dark\\:bg-\\[\\#1E1E1E\\]:where(.dark,.dark *){background-color:#1e1e1e}.dark\\:bg-\\[\\#1F2937\\]:where(.dark,.dark *){background-color:#1f2937}.dark\\:bg-\\[\\#2A2A2A\\]:where(.dark,.dark *){background-color:#2a2a2a}.dark\\:bg-\\[\\#020617\\]:where(.dark,.dark *){background-color:#020617}.dark\\:bg-\\[\\#020817\\]:where(.dark,.dark *){background-color:#020817}.dark\\:bg-\\[\\#111827\\]:where(.dark,.dark *){background-color:#111827}.dark\\:bg-\\[\\#202126\\]:where(.dark,.dark *){background-color:#202126}.dark\\:bg-\\[\\#202126\\]\\!:where(.dark,.dark *){background-color:#202126!important}.dark\\:bg-\\[\\#A3A3A3\\]:where(.dark,.dark *){background-color:#a3a3a3}.dark\\:bg-black:where(.dark,.dark *){background-color:var(--color-black)}.dark\\:bg-blue-900\\/10:where(.dark,.dark *){background-color:#1c398e1a}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-blue-900\\/10:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-blue-900)10%,transparent)}}.dark\\:bg-blue-900\\/20:where(.dark,.dark *){background-color:#1c398e33}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-blue-900\\/20:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-blue-900)20%,transparent)}}.dark\\:bg-blue-900\\/30:where(.dark,.dark *){background-color:#1c398e4d}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-blue-900\\/30:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-blue-900)30%,transparent)}}.dark\\:bg-gray-700:where(.dark,.dark *){background-color:var(--color-gray-700)}.dark\\:bg-gray-900:where(.dark,.dark *){background-color:var(--color-gray-900)}.dark\\:text-\\[\\#38C200\\]:where(.dark,.dark *){color:#38c200}.dark\\:text-\\[\\#666\\]:where(.dark,.dark *){color:#666}.dark\\:text-\\[\\#1990FF\\]:where(.dark,.dark *){color:#1990ff}.dark\\:text-\\[\\#808080\\]:where(.dark,.dark *){color:gray}.dark\\:text-\\[\\#999999\\]:where(.dark,.dark *){color:#999}.dark\\:text-\\[\\#A3A3A3\\]:where(.dark,.dark *){color:#a3a3a3}.dark\\:text-\\[\\#A6A6A6\\]:where(.dark,.dark *){color:#a6a6a6}.dark\\:text-\\[\\#D1D5DB\\]:where(.dark,.dark *){color:#d1d5db}.dark\\:text-\\[\\#D8D8D8\\]:where(.dark,.dark *){color:#d8d8d8}.dark\\:text-\\[\\#E5E7EB\\]:where(.dark,.dark *){color:#e5e7eb}.dark\\:text-\\[\\#a6a6a6\\]:where(.dark,.dark *){color:#a6a6a6}.dark\\:text-blue-400:where(.dark,.dark *){color:var(--color-blue-400)}.dark\\:text-gray-100:where(.dark,.dark *){color:var(--color-gray-100)}.dark\\:text-gray-300:where(.dark,.dark *){color:var(--color-gray-300)}.dark\\:text-gray-400:where(.dark,.dark *){color:var(--color-gray-400)}.dark\\:text-white:where(.dark,.dark *){color:var(--color-white)}.dark\\:shadow-\\[0_2px_20px_rgba\\(255\\,255\\,255\\,0\\.1\\)\\]:where(.dark,.dark *){--tw-shadow:0 2px 20px var(--tw-shadow-color,#ffffff1a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.dark\\:drop-shadow-\\[0_0_6px_rgb\\(255\\,255\\,255\\)\\]:where(.dark,.dark *){--tw-drop-shadow-size:drop-shadow(0 0 6px var(--tw-drop-shadow-color,#fff));--tw-drop-shadow:var(--tw-drop-shadow-size);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}@media (hover:hover){.dark\\:group-hover\\:text-\\[\\#0072FF\\]:where(.dark,.dark *):is(:where(.group):hover *){color:#0072ff}.dark\\:hover\\:border-blue-800:where(.dark,.dark *):hover{border-color:var(--color-blue-800)}.dark\\:hover\\:bg-\\[\\#1F2937\\]:where(.dark,.dark *):hover{background-color:#1f2937}.dark\\:hover\\:bg-\\[\\#2C2C2C\\]:where(.dark,.dark *):hover{background-color:#2c2c2c}.dark\\:hover\\:bg-\\[\\#3A3A3A\\]:where(.dark,.dark *):hover{background-color:#3a3a3a}.dark\\:hover\\:bg-\\[\\#111827\\]:where(.dark,.dark *):hover{background-color:#111827}.dark\\:hover\\:bg-blue-900\\/20:where(.dark,.dark *):hover{background-color:#1c398e33}@supports (color:color-mix(in lab,red,red)){.dark\\:hover\\:bg-blue-900\\/20:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--color-blue-900)20%,transparent)}}.dark\\:hover\\:bg-blue-900\\/50:where(.dark,.dark *):hover{background-color:#1c398e80}@supports (color:color-mix(in lab,red,red)){.dark\\:hover\\:bg-blue-900\\/50:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--color-blue-900)50%,transparent)}}.dark\\:hover\\:bg-white\\/5:where(.dark,.dark *):hover{background-color:#ffffff0d}@supports (color:color-mix(in lab,red,red)){.dark\\:hover\\:bg-white\\/5:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--color-white)5%,transparent)}}.dark\\:hover\\:text-blue-400:where(.dark,.dark *):hover{color:var(--color-blue-400)}}.\\[\\&_\\.ant-btn-icon\\]\\:flex .ant-btn-icon{display:flex}}.cm-deep-research-segmented .ant-segmented-item-label{font-size:16px}.cm-deep-research-segmented .ant-segmented-group{background-color:#fff;padding:2px}.cm-deep-research-segmented .ant-segmented-item{background-color:#fff}.cm-deep-research-segmented .ant-segmented-item:not(:last-child){margin-right:2px}.cm-deep-research-segmented .ant-segmented-item-selected{background-color:#018ae517}.cm-deep-research-segmented .ant-segmented-item-selected .ant-segmented-item-label{color:#1784fc}.cm-deep-research-segmented .ant-segmented-item:not(.ant-segmented-item-selected) .ant-segmented-item-label{color:#333}.cm-deep-research-segmented .ant-segmented-item:not(.ant-segmented-item-selected):hover{background-color:#018ae517}.cm-deep-research-segmented .ant-segmented-item:not(.ant-segmented-item-selected):hover .ant-segmented-item-label{color:#1784fc}.cm-markdown h1,.cm-markdown h2,.cm-markdown h3,.cm-markdown h4,.cm-markdown h5,.cm-markdown h6,.cm-markdown p,.cm-markdown ul,.cm-markdown ol{all:revert}.cm-markdown h1{margin-bottom:16px;font-size:24px;font-weight:600;line-height:32px}.cm-markdown h2{margin-top:24px;margin-bottom:8px;font-size:18px;font-weight:600;line-height:26px}.cm-markdown ol{margin-left:24px;list-style:decimal}.cm-markdown p{margin:4px 0;line-height:1.7}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}')),document.head.appendChild(r)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react"),ce=require("react-i18next"),Ft=require("clsx"),ra=require("i18next"),bn=require("@infinilabs/markdown"),R=require("lucide-react"),ia=require("ahooks"),oa=require("@infinilabs/attachments"),er=require("antd"),aa=require("@infinilabs/search-results");function la(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const s in e)if(s!=="default"){const n=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(t,s,n.get?n:{enumerable:!0,get:()=>e[s]})}}return t.default=e,Object.freeze(t)}const gs=la(g);var ts={exports:{}},Et={};/**
3
3
  * @license React
4
4
  * react-jsx-runtime.production.min.js
5
5
  *
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * This source code is licensed under the MIT license found in the
9
9
  * LICENSE file in the root directory of this source tree.
10
- */var Ke;function yt(){if(Ke)return ue;Ke=1;var r=o,n=Symbol.for("react.element"),f=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,c=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,v={key:!0,ref:!0,__self:!0,__source:!0};function y(x,i,g){var l,C={},m=null,b=null;g!==void 0&&(m=""+g),i.key!==void 0&&(m=""+i.key),i.ref!==void 0&&(b=i.ref);for(l in i)u.call(i,l)&&!v.hasOwnProperty(l)&&(C[l]=i[l]);if(x&&x.defaultProps)for(l in i=x.defaultProps,i)C[l]===void 0&&(C[l]=i[l]);return{$$typeof:n,type:x,key:m,ref:b,props:C,_owner:c.current}}return ue.Fragment=f,ue.jsx=y,ue.jsxs=y,ue}var fe={};/**
10
+ */var tr;function ca(){if(tr)return Et;tr=1;var e=g,t=Symbol.for("react.element"),s=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,r=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function i(a,c,d){var u,h={},p=null,m=null;d!==void 0&&(p=""+d),c.key!==void 0&&(p=""+c.key),c.ref!==void 0&&(m=c.ref);for(u in c)n.call(c,u)&&!o.hasOwnProperty(u)&&(h[u]=c[u]);if(a&&a.defaultProps)for(u in c=a.defaultProps,c)h[u]===void 0&&(h[u]=c[u]);return{$$typeof:t,type:a,key:p,ref:m,props:h,_owner:r.current}}return Et.Fragment=s,Et.jsx=i,Et.jsxs=i,Et}var Pt={};/**
11
11
  * @license React
12
12
  * react-jsx-runtime.development.js
13
13
  *
@@ -15,19 +15,27 @@
15
15
  *
16
16
  * This source code is licensed under the MIT license found in the
17
17
  * LICENSE file in the root directory of this source tree.
18
- */var De;function wt(){return De||(De=1,process.env.NODE_ENV!=="production"&&(function(){var r=o,n=Symbol.for("react.element"),f=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),y=Symbol.for("react.provider"),x=Symbol.for("react.context"),i=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),F=Symbol.iterator,Y="@@iterator";function w(e){if(e===null||typeof e!="object")return null;var s=F&&e[F]||e[Y];return typeof s=="function"?s:null}var h=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function S(e){{for(var s=arguments.length,a=new Array(s>1?s-1:0),d=1;d<s;d++)a[d-1]=arguments[d];_("error",e,a)}}function _(e,s,a){{var d=h.ReactDebugCurrentFrame,j=d.getStackAddendum();j!==""&&(s+="%s",a=a.concat([j]));var N=a.map(function(k){return String(k)});N.unshift("Warning: "+s),Function.prototype.apply.call(console[e],console,N)}}var I=!1,ne=!1,ae=!1,L=!1,oe=!1,xe;xe=Symbol.for("react.module.reference");function ie(e){return!!(typeof e=="string"||typeof e=="function"||e===u||e===v||oe||e===c||e===g||e===l||L||e===b||I||ne||ae||typeof e=="object"&&e!==null&&(e.$$typeof===m||e.$$typeof===C||e.$$typeof===y||e.$$typeof===x||e.$$typeof===i||e.$$typeof===xe||e.getModuleId!==void 0))}function le(e,s,a){var d=e.displayName;if(d)return d;var j=s.displayName||s.name||"";return j!==""?a+"("+j+")":a}function ge(e){return e.displayName||"Context"}function M(e){if(e==null)return null;if(typeof e.tag=="number"&&S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case u:return"Fragment";case f:return"Portal";case v:return"Profiler";case c:return"StrictMode";case g:return"Suspense";case l:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case x:var s=e;return ge(s)+".Consumer";case y:var a=e;return ge(a._context)+".Provider";case i:return le(e,e.render,"ForwardRef");case C:var d=e.displayName||null;return d!==null?d:M(e.type)||"Memo";case m:{var j=e,N=j._payload,k=j._init;try{return M(k(N))}catch{return null}}}return null}var V=Object.assign,Z=0,me,pe,$,P,Ae,ke,ce;function W(){}W.__reactDisabledLog=!0;function ee(){{if(Z===0){me=console.log,pe=console.info,$=console.warn,P=console.error,Ae=console.group,ke=console.groupCollapsed,ce=console.groupEnd;var e={configurable:!0,enumerable:!0,value:W,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Z++}}function Q(){{if(Z--,Z===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:V({},e,{value:me}),info:V({},e,{value:pe}),warn:V({},e,{value:$}),error:V({},e,{value:P}),group:V({},e,{value:Ae}),groupCollapsed:V({},e,{value:ke}),groupEnd:V({},e,{value:ce})})}Z<0&&S("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var z=h.ReactCurrentDispatcher,X;function U(e,s,a){{if(X===void 0)try{throw Error()}catch(j){var d=j.stack.trim().match(/\n( *(at )?)/);X=d&&d[1]||""}return`
19
- `+X+e}}var de=!1,J;{var ve=typeof WeakMap=="function"?WeakMap:Map;J=new ve}function ye(e,s){if(!e||de)return"";{var a=J.get(e);if(a!==void 0)return a}var d;de=!0;var j=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var N;N=z.current,z.current=null,ee();try{if(s){var k=function(){throw Error()};if(Object.defineProperty(k.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(k,[])}catch(q){d=q}Reflect.construct(e,[],k)}else{try{k.call()}catch(q){d=q}e.call(k.prototype)}}else{try{throw Error()}catch(q){d=q}e()}}catch(q){if(q&&d&&typeof q.stack=="string"){for(var A=q.stack.split(`
20
- `),R=d.stack.split(`
21
- `),T=A.length-1,B=R.length-1;T>=1&&B>=0&&A[T]!==R[B];)B--;for(;T>=1&&B>=0;T--,B--)if(A[T]!==R[B]){if(T!==1||B!==1)do if(T--,B--,B<0||A[T]!==R[B]){var O=`
22
- `+A[T].replace(" at new "," at ");return e.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",e.displayName)),typeof e=="function"&&J.set(e,O),O}while(T>=1&&B>=0);break}}}finally{de=!1,z.current=N,Q(),Error.prepareStackTrace=j}var re=e?e.displayName||e.name:"",H=re?U(re):"";return typeof e=="function"&&J.set(e,H),H}function je(e,s,a){return ye(e,!1)}function Ee(e){var s=e.prototype;return!!(s&&s.isReactComponent)}function te(e,s,a){if(e==null)return"";if(typeof e=="function")return ye(e,Ee(e));if(typeof e=="string")return U(e);switch(e){case g:return U("Suspense");case l:return U("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case i:return je(e.render);case C:return te(e.type,s,a);case m:{var d=e,j=d._payload,N=d._init;try{return te(N(j),s,a)}catch{}}}return""}var G=Object.prototype.hasOwnProperty,p={},D=h.ReactDebugCurrentFrame;function we(e){if(e){var s=e._owner,a=te(e.type,e._source,s?s.type:null);D.setExtraStackFrame(a)}else D.setExtraStackFrame(null)}function Ge(e,s,a,d,j){{var N=Function.call.bind(G);for(var k in e)if(N(e,k)){var A=void 0;try{if(typeof e[k]!="function"){var R=Error((d||"React class")+": "+a+" type `"+k+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[k]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw R.name="Invariant Violation",R}A=e[k](s,k,d,a,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(T){A=T}A&&!(A instanceof Error)&&(we(j),S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",d||"React class",a,k,typeof A),we(null)),A instanceof Error&&!(A.message in p)&&(p[A.message]=!0,we(j),S("Failed %s type: %s",a,A.message),we(null))}}}var He=Array.isArray;function Ne(e){return He(e)}function _e(e){{var s=typeof Symbol=="function"&&Symbol.toStringTag,a=s&&e[Symbol.toStringTag]||e.constructor.name||"Object";return a}}function $e(e){try{return Re(e),!1}catch{return!0}}function Re(e){return""+e}function Fe(e){if($e(e))return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",_e(e)),Re(e)}var qe=h.ReactCurrentOwner,et={key:!0,ref:!0,__self:!0,__source:!0},Le,Oe;function tt(e){if(G.call(e,"ref")){var s=Object.getOwnPropertyDescriptor(e,"ref").get;if(s&&s.isReactWarning)return!1}return e.ref!==void 0}function st(e){if(G.call(e,"key")){var s=Object.getOwnPropertyDescriptor(e,"key").get;if(s&&s.isReactWarning)return!1}return e.key!==void 0}function rt(e,s){typeof e.ref=="string"&&qe.current}function nt(e,s){{var a=function(){Le||(Le=!0,S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",s))};a.isReactWarning=!0,Object.defineProperty(e,"key",{get:a,configurable:!0})}}function at(e,s){{var a=function(){Oe||(Oe=!0,S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",s))};a.isReactWarning=!0,Object.defineProperty(e,"ref",{get:a,configurable:!0})}}var ot=function(e,s,a,d,j,N,k){var A={$$typeof:n,type:e,key:s,ref:a,props:k,_owner:N};return A._store={},Object.defineProperty(A._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(A,"_self",{configurable:!1,enumerable:!1,writable:!1,value:d}),Object.defineProperty(A,"_source",{configurable:!1,enumerable:!1,writable:!1,value:j}),Object.freeze&&(Object.freeze(A.props),Object.freeze(A)),A};function it(e,s,a,d,j){{var N,k={},A=null,R=null;a!==void 0&&(Fe(a),A=""+a),st(s)&&(Fe(s.key),A=""+s.key),tt(s)&&(R=s.ref,rt(s,j));for(N in s)G.call(s,N)&&!et.hasOwnProperty(N)&&(k[N]=s[N]);if(e&&e.defaultProps){var T=e.defaultProps;for(N in T)k[N]===void 0&&(k[N]=T[N])}if(A||R){var B=typeof e=="function"?e.displayName||e.name||"Unknown":e;A&&nt(k,B),R&&at(k,B)}return ot(e,A,R,j,d,qe.current,k)}}var Se=h.ReactCurrentOwner,Je=h.ReactDebugCurrentFrame;function se(e){if(e){var s=e._owner,a=te(e.type,e._source,s?s.type:null);Je.setExtraStackFrame(a)}else Je.setExtraStackFrame(null)}var Te;Te=!1;function Be(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function Me(){{if(Se.current){var e=M(Se.current.type);if(e)return`
18
+ */var sr;function ua(){return sr||(sr=1,process.env.NODE_ENV!=="production"&&(function(){var e=g,t=Symbol.for("react.element"),s=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),x=Symbol.iterator,w="@@iterator";function v(f){if(f===null||typeof f!="object")return null;var b=x&&f[x]||f[w];return typeof b=="function"?b:null}var y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function C(f){{for(var b=arguments.length,T=new Array(b>1?b-1:0),V=1;V<b;V++)T[V-1]=arguments[V];A("error",f,T)}}function A(f,b,T){{var V=y.ReactDebugCurrentFrame,I=V.getStackAddendum();I!==""&&(b+="%s",T=T.concat([I]));var B=T.map(function(F){return String(F)});B.unshift("Warning: "+b),Function.prototype.apply.call(console[f],console,B)}}var N=!1,P=!1,D=!1,j=!1,E=!1,U;U=Symbol.for("react.module.reference");function J(f){return!!(typeof f=="string"||typeof f=="function"||f===n||f===o||E||f===r||f===d||f===u||j||f===m||N||P||D||typeof f=="object"&&f!==null&&(f.$$typeof===p||f.$$typeof===h||f.$$typeof===i||f.$$typeof===a||f.$$typeof===c||f.$$typeof===U||f.getModuleId!==void 0))}function oe(f,b,T){var V=f.displayName;if(V)return V;var I=b.displayName||b.name||"";return I!==""?T+"("+I+")":T}function ke(f){return f.displayName||"Context"}function ue(f){if(f==null)return null;if(typeof f.tag=="number"&&C("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof f=="function")return f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case n:return"Fragment";case s:return"Portal";case o:return"Profiler";case r:return"StrictMode";case d:return"Suspense";case u:return"SuspenseList"}if(typeof f=="object")switch(f.$$typeof){case a:var b=f;return ke(b)+".Consumer";case i:var T=f;return ke(T._context)+".Provider";case c:return oe(f,f.render,"ForwardRef");case h:var V=f.displayName||null;return V!==null?V:ue(f.type)||"Memo";case p:{var I=f,B=I._payload,F=I._init;try{return ue(F(B))}catch{return null}}}return null}var de=Object.assign,xe=0,mt,q,X,re,ae,Be,gt;function Yt(){}Yt.__reactDisabledLog=!0;function yt(){{if(xe===0){mt=console.log,q=console.info,X=console.warn,re=console.error,ae=console.group,Be=console.groupCollapsed,gt=console.groupEnd;var f={configurable:!0,enumerable:!0,value:Yt,writable:!0};Object.defineProperties(console,{info:f,log:f,warn:f,error:f,group:f,groupCollapsed:f,groupEnd:f})}xe++}}function As(){{if(xe--,xe===0){var f={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:de({},f,{value:mt}),info:de({},f,{value:q}),warn:de({},f,{value:X}),error:de({},f,{value:re}),group:de({},f,{value:ae}),groupCollapsed:de({},f,{value:Be}),groupEnd:de({},f,{value:gt})})}xe<0&&C("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Oe=y.ReactCurrentDispatcher,xt;function je(f,b,T){{if(xt===void 0)try{throw Error()}catch(I){var V=I.stack.trim().match(/\n( *(at )?)/);xt=V&&V[1]||""}return`
19
+ `+xt+f}}var vt=!1,Ie;{var zt=typeof WeakMap=="function"?WeakMap:Map;Ie=new zt}function Je(f,b){if(!f||vt)return"";{var T=Ie.get(f);if(T!==void 0)return T}var V;vt=!0;var I=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var B;B=Oe.current,Oe.current=null,yt();try{if(b){var F=function(){throw Error()};if(Object.defineProperty(F.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(F,[])}catch(O){V=O}Reflect.construct(f,[],F)}else{try{F.call()}catch(O){V=O}f.call(F.prototype)}}else{try{throw Error()}catch(O){V=O}f()}}catch(O){if(O&&V&&typeof O.stack=="string"){for(var L=O.stack.split(`
20
+ `),$=V.stack.split(`
21
+ `),K=L.length-1,G=$.length-1;K>=1&&G>=0&&L[K]!==$[G];)G--;for(;K>=1&&G>=0;K--,G--)if(L[K]!==$[G]){if(K!==1||G!==1)do if(K--,G--,G<0||L[K]!==$[G]){var ie=`
22
+ `+L[K].replace(" at new "," at ");return f.displayName&&ie.includes("<anonymous>")&&(ie=ie.replace("<anonymous>",f.displayName)),typeof f=="function"&&Ie.set(f,ie),ie}while(K>=1&&G>=0);break}}}finally{vt=!1,Oe.current=B,As(),Error.prepareStackTrace=I}var k=f?f.displayName||f.name:"",M=k?je(k):"";return typeof f=="function"&&Ie.set(f,M),M}function Gt(f,b,T){return Je(f,!1)}function Jt(f){var b=f.prototype;return!!(b&&b.isReactComponent)}function Qe(f,b,T){if(f==null)return"";if(typeof f=="function")return Je(f,Jt(f));if(typeof f=="string")return je(f);switch(f){case d:return je("Suspense");case u:return je("SuspenseList")}if(typeof f=="object")switch(f.$$typeof){case c:return Gt(f.render);case h:return Qe(f.type,b,T);case p:{var V=f,I=V._payload,B=V._init;try{return Qe(B(I),b,T)}catch{}}}return""}var Re=Object.prototype.hasOwnProperty,Qt={},He=y.ReactDebugCurrentFrame;function Xe(f){if(f){var b=f._owner,T=Qe(f.type,f._source,b?b.type:null);He.setExtraStackFrame(T)}else He.setExtraStackFrame(null)}function Cs(f,b,T,V,I){{var B=Function.call.bind(Re);for(var F in f)if(B(f,F)){var L=void 0;try{if(typeof f[F]!="function"){var $=Error((V||"React class")+": "+T+" type `"+F+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof f[F]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw $.name="Invariant Violation",$}L=f[F](b,F,V,T,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(K){L=K}L&&!(L instanceof Error)&&(Xe(I),C("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",V||"React class",T,F,typeof L),Xe(null)),L instanceof Error&&!(L.message in Qt)&&(Qt[L.message]=!0,Xe(I),C("Failed %s type: %s",T,L.message),Xe(null))}}}var ks=Array.isArray;function bt(f){return ks(f)}function Ts(f){{var b=typeof Symbol=="function"&&Symbol.toStringTag,T=b&&f[Symbol.toStringTag]||f.constructor.name||"Object";return T}}function Ss(f){try{return Ze(f),!1}catch{return!0}}function Ze(f){return""+f}function Z(f){if(Ss(f))return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ts(f)),Ze(f)}var Ht=y.ReactCurrentOwner,Es={key:!0,ref:!0,__self:!0,__source:!0},wt,Te;function le(f){if(Re.call(f,"ref")){var b=Object.getOwnPropertyDescriptor(f,"ref").get;if(b&&b.isReactWarning)return!1}return f.ref!==void 0}function Se(f){if(Re.call(f,"key")){var b=Object.getOwnPropertyDescriptor(f,"key").get;if(b&&b.isReactWarning)return!1}return f.key!==void 0}function Ps(f,b){typeof f.ref=="string"&&Ht.current}function $e(f,b){{var T=function(){wt||(wt=!0,C("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",b))};T.isReactWarning=!0,Object.defineProperty(f,"key",{get:T,configurable:!0})}}function et(f,b){{var T=function(){Te||(Te=!0,C("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",b))};T.isReactWarning=!0,Object.defineProperty(f,"ref",{get:T,configurable:!0})}}var At=function(f,b,T,V,I,B,F){var L={$$typeof:t,type:f,key:b,ref:T,props:F,_owner:B};return L._store={},Object.defineProperty(L._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(L,"_self",{configurable:!1,enumerable:!1,writable:!1,value:V}),Object.defineProperty(L,"_source",{configurable:!1,enumerable:!1,writable:!1,value:I}),Object.freeze&&(Object.freeze(L.props),Object.freeze(L)),L};function Ue(f,b,T,V,I){{var B,F={},L=null,$=null;T!==void 0&&(Z(T),L=""+T),Se(b)&&(Z(b.key),L=""+b.key),le(b)&&($=b.ref,Ps(b,I));for(B in b)Re.call(b,B)&&!Es.hasOwnProperty(B)&&(F[B]=b[B]);if(f&&f.defaultProps){var K=f.defaultProps;for(B in K)F[B]===void 0&&(F[B]=K[B])}if(L||$){var G=typeof f=="function"?f.displayName||f.name||"Unknown":f;L&&$e(F,G),$&&et(F,G)}return At(f,L,$,I,V,Ht.current,F)}}var Ct=y.ReactCurrentOwner,We=y.ReactDebugCurrentFrame;function ve(f){if(f){var b=f._owner,T=Qe(f.type,f._source,b?b.type:null);We.setExtraStackFrame(T)}else We.setExtraStackFrame(null)}var kt;kt=!1;function Tt(f){return typeof f=="object"&&f!==null&&f.$$typeof===t}function Xt(){{if(Ct.current){var f=ue(Ct.current.type);if(f)return`
23
23
 
24
- Check the render method of \``+e+"`."}return""}}function lt(e){return""}var Qe={};function ct(e){{var s=Me();if(!s){var a=typeof e=="string"?e:e.displayName||e.name;a&&(s=`
24
+ Check the render method of \``+f+"`."}return""}}function js(f){return""}var Zt={};function Rs(f){{var b=Xt();if(!b){var T=typeof f=="string"?f:f.displayName||f.name;T&&(b=`
25
25
 
26
- Check the top-level render call using <`+a+">.")}return s}}function Ye(e,s){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var a=ct(s);if(Qe[a])return;Qe[a]=!0;var d="";e&&e._owner&&e._owner!==Se.current&&(d=" It was passed a child from "+M(e._owner.type)+"."),se(e),S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',a,d),se(null)}}function Ve(e,s){{if(typeof e!="object")return;if(Ne(e))for(var a=0;a<e.length;a++){var d=e[a];Be(d)&&Ye(d,s)}else if(Be(e))e._store&&(e._store.validated=!0);else if(e){var j=w(e);if(typeof j=="function"&&j!==e.entries)for(var N=j.call(e),k;!(k=N.next()).done;)Be(k.value)&&Ye(k.value,s)}}}function dt(e){{var s=e.type;if(s==null||typeof s=="string")return;var a;if(typeof s=="function")a=s.propTypes;else if(typeof s=="object"&&(s.$$typeof===i||s.$$typeof===C))a=s.propTypes;else return;if(a){var d=M(s);Ge(a,e.props,"prop",d,e)}else if(s.PropTypes!==void 0&&!Te){Te=!0;var j=M(s);S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",j||"Unknown")}typeof s.getDefaultProps=="function"&&!s.getDefaultProps.isReactClassApproved&&S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ut(e){{for(var s=Object.keys(e.props),a=0;a<s.length;a++){var d=s[a];if(d!=="children"&&d!=="key"){se(e),S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",d),se(null);break}}e.ref!==null&&(se(e),S("Invalid attribute `ref` supplied to `React.Fragment`."),se(null))}}var We={};function Ue(e,s,a,d,j,N){{var k=ie(e);if(!k){var A="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(A+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var R=lt();R?A+=R:A+=Me();var T;e===null?T="null":Ne(e)?T="array":e!==void 0&&e.$$typeof===n?(T="<"+(M(e.type)||"Unknown")+" />",A=" Did you accidentally export a JSX literal instead of a component?"):T=typeof e,S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",T,A)}var B=it(e,s,a,j,N);if(B==null)return B;if(k){var O=s.children;if(O!==void 0)if(d)if(Ne(O)){for(var re=0;re<O.length;re++)Ve(O[re],e);Object.freeze&&Object.freeze(O)}else S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ve(O,e)}if(G.call(s,"key")){var H=M(e),q=Object.keys(s).filter(function(pt){return pt!=="key"}),Pe=q.length>0?"{key: someKey, "+q.join(": ..., ")+": ...}":"{key: someKey}";if(!We[H+Pe]){var mt=q.length>0?"{"+q.join(": ..., ")+": ...}":"{}";S(`A props object containing a "key" prop is being spread into JSX:
26
+ Check the top-level render call using <`+T+">.")}return b}}function Ne(f,b){{if(!f._store||f._store.validated||f.key!=null)return;f._store.validated=!0;var T=Rs(b);if(Zt[T])return;Zt[T]=!0;var V="";f&&f._owner&&f._owner!==Ct.current&&(V=" It was passed a child from "+ue(f._owner.type)+"."),ve(f),C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',T,V),ve(null)}}function $t(f,b){{if(typeof f!="object")return;if(bt(f))for(var T=0;T<f.length;T++){var V=f[T];Tt(V)&&Ne(V,b)}else if(Tt(f))f._store&&(f._store.validated=!0);else if(f){var I=v(f);if(typeof I=="function"&&I!==f.entries)for(var B=I.call(f),F;!(F=B.next()).done;)Tt(F.value)&&Ne(F.value,b)}}}function Ns(f){{var b=f.type;if(b==null||typeof b=="string")return;var T;if(typeof b=="function")T=b.propTypes;else if(typeof b=="object"&&(b.$$typeof===c||b.$$typeof===h))T=b.propTypes;else return;if(T){var V=ue(b);Cs(T,f.props,"prop",V,f)}else if(b.PropTypes!==void 0&&!kt){kt=!0;var I=ue(b);C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",I||"Unknown")}typeof b.getDefaultProps=="function"&&!b.getDefaultProps.isReactClassApproved&&C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Vs(f){{for(var b=Object.keys(f.props),T=0;T<b.length;T++){var V=b[T];if(V!=="children"&&V!=="key"){ve(f),C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",V),ve(null);break}}f.ref!==null&&(ve(f),C("Invalid attribute `ref` supplied to `React.Fragment`."),ve(null))}}var es={};function tt(f,b,T,V,I,B){{var F=J(f);if(!F){var L="";(f===void 0||typeof f=="object"&&f!==null&&Object.keys(f).length===0)&&(L+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var $=js();$?L+=$:L+=Xt();var K;f===null?K="null":bt(f)?K="array":f!==void 0&&f.$$typeof===t?(K="<"+(ue(f.type)||"Unknown")+" />",L=" Did you accidentally export a JSX literal instead of a component?"):K=typeof f,C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",K,L)}var G=Ue(f,b,T,I,B);if(G==null)return G;if(F){var ie=b.children;if(ie!==void 0)if(V)if(bt(ie)){for(var k=0;k<ie.length;k++)$t(ie[k],f);Object.freeze&&Object.freeze(ie)}else C("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else $t(ie,f)}if(Re.call(b,"key")){var M=ue(f),O=Object.keys(b).filter(function(qe){return qe!=="key"}),_=O.length>0?"{key: someKey, "+O.join(": ..., ")+": ...}":"{key: someKey}";if(!es[M+_]){var he=O.length>0?"{"+O.join(": ..., ")+": ...}":"{}";C(`A props object containing a "key" prop is being spread into JSX:
27
27
  let props = %s;
28
28
  <%s {...props} />
29
29
  React keys must be passed directly to JSX without using spread:
30
30
  let props = %s;
31
- <%s key={someKey} {...props} />`,Pe,H,mt,H),We[H+Pe]=!0}}return e===u?ut(B):dt(B),B}}function ft(e,s,a){return Ue(e,s,a,!0)}function ht(e,s,a){return Ue(e,s,a,!1)}var xt=ht,gt=ft;fe.Fragment=u,fe.jsx=xt,fe.jsxs=gt})()),fe}var Ie;function Ct(){return Ie||(Ie=1,process.env.NODE_ENV==="production"?Ce.exports=yt():Ce.exports=wt()),Ce.exports}var t=Ct();const bt={en:{translation:{assistant:{message:{logo:"Coco AI Logo",aiName:"Coco AI",thinkingButton:"View thinking process",steps:{query_intent:"Understand the query",tools:"Call LLM Tools",source_zero:"Searching for relevant documents",fetch_source:"Retrieve {{count}} documents",pick_source:"Intelligent pick {{count}} results",pick_source_start:"Intelligently pre-selecting",deep_read:"Deep reading",think:"AI is thinking...",thoughtTime:"Thought for a few seconds",keywords:"Keywords",questionType:"Query Type",userIntent:"User Intent",relatedQuestions:"Query",suggestion:"Suggestion",informationSeeking:"Information Seeking"}}},sessionFiles:{labels:{all:"All"},modal:{title:"Files in the conversation",description:"Only the selected files will participate in the current conversation."}}}},zh:{translation:{assistant:{message:{logo:"Coco AI 图标",aiName:"Coco AI",thinkingButton:"查看思考过程",steps:{query_intent:"理解查询",tools:"调用大模型工具",source_zero:"正在搜索相关文档",fetch_source:"检索 {{count}} 份文档",pick_source:"智能预选 {{count}} 个结果",pick_source_start:"正在智能预选",deep_read:"深度阅读",think:"AI 正在思考...",thoughtTime:"思考了数秒",keywords:"关键词",questionType:"查询类型",userIntent:"用户意图",relatedQuestions:"查询",suggestion:"建议",informationSeeking:"信息查询"}}},sessionFiles:{labels:{all:"全部"},modal:{title:"会话中的文件",description:"只有选定的文件才会参与当前会话。"}}}}},ze=At.createInstance();ze.use(K.initReactI18next).init({resources:bt,lng:"en",fallbackLng:"en",interpolation:{escapeValue:!1},react:{useSuspense:!1}});const jt="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='128px'%20height='128px'%20viewBox='0%200%20128%20128'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e画板备份%203%3c/title%3e%3cdefs%3e%3crect%20id='path-1'%20x='0'%20y='0'%20width='56.7563872'%20height='56.5910836'%3e%3c/rect%3e%3c/defs%3e%3cg%20id='画板备份-3'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='编组-10'%20transform='translate(-5,%203)'%3e%3cpath%20d='M49.6992377,22.7719612%20C58.1101609,25.9729736%2065.0982993,25.8953017%2070.6636528,22.5389454%20C76.9251416,26.1589087%2083.1644474,26.6306437%2089.3815702,23.9541503%20C94.3476152,26.8551486%20100.059595,27.9853608%20106.517509,27.3447869%20C105.549313,31.0257953%20104.78819,34.4219965%20104.234139,37.5333904%20C81.4253389,37.5754718%2069.9035445,37.5822249%2069.6687554,37.5536499%20C69.4339664,37.5250748%2062.9957895,35.2408431%2050.3542249,30.7009547%20L49.6992377,22.7719612%20Z'%20id='路径-3'%20stroke='%235B1602'%20stroke-width='7.69374265'%20fill='%23FFFFFF'%20stroke-linejoin='round'%20transform='translate(78.1084,%2030.055)%20rotate(8)%20translate(-78.1084,%20-30.055)'%3e%3c/path%3e%3cpolyline%20id='吸管'%20stroke='%2300DBFF'%20stroke-width='7.69374265'%20stroke-linecap='round'%20stroke-linejoin='round'%20transform='translate(94.5873,%2044.3095)%20rotate(8)%20translate(-94.5873,%20-44.3095)'%20points='69.7189682%2082.7157791%2094.9436643%2013.1617143%20119.455672%205.90320063'%3e%3c/polyline%3e%3cpath%20d='M28.5919021,37.2052044%20C35.1462633,34.1433307%2041.4986116,29.0645287%2047.648947,21.9687984%20C52.2899688,28.8461867%2058.8106823,31.3991807%2067.2110875,29.6277804%20C71.408497,35.0913641%2080.5237233,36.438679%2086.7804548,32.5606249%20C94.0739201,34.0827033%2099.969508,32.0763696%20104.467218,26.5416241%20C107.701536,33.3599985%20112.68013,39.7771777%20119.403001,45.7931616%20L122.450975,53.5823748%20L114.651272,66.2383977%20L48.9468343,66.658491%20L20.2297176,54.2394236%20L28.5919021,37.2052044%20Z'%20id='路径-2'%20stroke='%235B1602'%20stroke-width='7.69374265'%20fill='%23FFFFFF'%20stroke-linejoin='round'%20transform='translate(71.3403,%2044.3136)%20rotate(8)%20translate(-71.3403,%20-44.3136)'%3e%3c/path%3e%3cpath%20d='M113.7015,44.8147987%20C116.157193,49.6714382%20117.446928,55.630252%20117.446928,62.8127672%20C117.446928,77.2276123%20111.577947,90.2770579%20102.091381,99.7232825%20C92.5988687,109.175428%2079.4847008,115.020307%2065,115.020307%20C50.5152992,115.020307%2037.4011313,109.175428%2027.9086192,99.7232825%20C18.422053,90.2770579%2012.5530717,77.2276123%2012.5530717,62.8127672%20C12.5530717,56.4626483%2013.8289507,51.0821645%2016.1681126,46.5747014%20C17.316091,48.0863106%2018.6633413,49.4215856%2020.2147206,50.5328434%20C23.2818168,52.7298139%2027.1658894,54.0895553%2032.0119555,54.0895553%20C37.5035054,54.0895553%2042.5852688,52.6067922%2046.7606738,50.1072637%20C51.767509,52.6154402%2057.7465462,54.0895553%2064.1766873,54.0895553%20C70.5217766,54.0895553%2076.4277658,52.6542274%2081.3936205,50.2068646%20C85.4809466,52.6541473%2090.3819582,54.0895553%2095.6570631,54.0895553%20C101.044745,54.0895553%20105.465622,52.4873581%20108.935094,49.8692709%20C110.797344,48.4640036%20112.390496,46.7556533%20113.7015,44.8147987%20Z'%20id='形状结合'%20stroke='%235B1602'%20stroke-width='7.69374265'%20fill='%238C3201'%20transform='translate(65,%2077.9373)%20rotate(15)%20translate(-65,%20-77.9373)'%3e%3c/path%3e%3cg%20id='线'%20transform='translate(60.1411,%2097.2296)%20rotate(15)%20translate(-60.1411,%20-97.2296)translate(38.5104,%2076.2266)'%20fill='%235B1602'%3e%3cpath%20d='M41.2225105,-3.01584387%20C43.3464343,-2.96351324%2045.0257924,-1.19931046%2044.9734617,0.92461333%20C44.7662096,9.33627924%2043.0482281,16.8196882%2039.7969064,23.3391624%20C36.6036716,29.7421619%2032.6440639,35.1156647%2027.9160763,39.4350584%20C26.3475323,40.8680484%2023.9143082,40.7581602%2022.4813182,39.1896162%20C21.0483281,37.6210722%2021.1582163,35.1878481%2022.7267604,33.754858%20C26.7326835,30.0951278%2030.1283866,25.4868885%2032.9118625,19.9055277%20C35.6372515,14.4406416%2037.1015188,8.06239408%2037.2820533,0.73510735%20C37.3343839,-1.38881644%2039.0985867,-3.0681745%2041.2225105,-3.01584387%20Z'%20id='路径-5'%20fill-rule='nonzero'%20transform='translate(33.2246,%2018.7124)%20rotate(-7)%20translate(-33.2246,%20-18.7124)'%3e%3c/path%3e%3cpath%20d='M6.42487569,17.8933379%20C7.13185699,15.8898489%209.32912731,14.8388217%2011.3326163,15.545803%20C13.3361053,16.2527843%2014.3871325,18.4500547%2013.6801512,20.4535437%20C12.3896494,24.1106505%2011.1503014,26.9971555%209.93186972,29.1456361%20C8.855525,31.0435724%206.81922579,33.9549835%203.77060698,37.9798302%20C2.4878057,39.6734097%200.0749723254,40.0064113%20-1.61860721,38.72361%20C-3.31218674,37.4408088%20-3.64518832,35.0279754%20-2.36238705,33.3343959%20C0.49243929,29.5653978%202.37716504,26.8706998%203.23942508,25.3502625%20C4.20071135,23.6552106%205.27260735,21.1587099%206.42487569,17.8933379%20Z'%20id='路径-5备份'%20fill-rule='nonzero'%20transform='translate(5.3787,%2027.4149)%20scale(-1,%201)%20rotate(-5)%20translate(-5.3787,%20-27.4149)'%3e%3c/path%3e%3cpath%20d='M17.3200105,31.8134059%20C24.2042447,31.6746843%2030.788371,26.5487636%2037.0723895,16.4356439%20C43.356408,6.32252418%2040.2906703,13.3246347%2027.8751764,37.4419755%20L17.3200105,31.8134059%20Z'%20id='路径-8'%20transform='translate(28.78,%2024.6979)%20rotate(-15)%20translate(-28.78,%20-24.6979)'%3e%3c/path%3e%3cpath%20d='M2.25547257,26.2454347%20C5.78878997,32.5137001%2012.2314539,33.0051199%2021.5834643,27.7196939%20C18.6128112,31.1984141%2014.8144813,34.3358838%2010.1884745,37.1321031%20C6.83289255,33.8641134%204.51390502,31.3598101%203.23151188,29.6191934%20C1.94911874,27.8785768%201.6237723,26.7539905%202.25547257,26.2454347%20Z'%20id='路径-8'%20transform='translate(11.7631,%2031.6888)%20scale(-1,%201)%20rotate(-38)%20translate(-11.7631,%20-31.6888)'%3e%3c/path%3e%3c/g%3e%3cg%20id='花'%20transform='translate(16.0836,%200)'%3e%3cmask%20id='mask-2'%20fill='white'%3e%3cuse%20xlink:href='%23path-1'%3e%3c/use%3e%3c/mask%3e%3cg%20id='蒙版'%3e%3c/g%3e%3cimage%20mask='url(%23mask-2)'%20x='-24.9033127'%20y='-24.2533216'%20width='105.404719'%20height='105.097727'%20xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALYAAAC2CAYAAAB08HcEAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAtqADAAQAAAABAAAAtgAAAAD4KVXeAAA4v0lEQVR4Ae2dC9RmV1nfz3lv38zkMjNMLtwCmQQESbnItVyXAUUBQYI0IlCQVAIVhIKFhatcYqutKFJqFypBRxQKCMvWYlkgFCIWIbWphbJYQC4TApS7SSCQzMz3fe/p7/ff53wzCUkkrFJz5t175rx7n72f/ey9n/3fz3n25ZyvaaqrEqgSqBKoEqgSqBKoEqgSqBKoEqgSqBKoEqgSqBKoEqgSqBKoEqgSqBKoEqgSqBKoEqgSqBKoEqgSqBKoEqgSqBKoEqgSqBKoEqgSqBKoEqgSqBKoEqgSqBKoEqgSqBKoEqgSqBKoEqgSqBKoEqgSqBKoEqgSqBKoEqgSqBKoEqgSqBKoEqgSqBKoEqgSqBKoEqgSqBKoEqgSqBKoEqgSqBKoEqgSqBKoEqgSqBKoEqgSqBKoEqgSqBKoEqgSqBKoEqgSqBKoEqgSqBKoEqgSqBKoEqgSq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Ud2MS8AXYq05Yvopz2S9CWe+IsYu0XDv2xJ52sBM6Ab3JJrmTPNI2MGXOX581L9915/83H5i58rJuJ0r54YD3VOqwE3PDl9f3U/6nj93bfuzG6l7jMuirGG5OAtd8uTtpc7N5MV9VfRJq8q6APEtuaswB7MR9ibQ/YZL328edenh38eb41rTvrwSqxr4F8uWPeJ6KprwXIN7NStsOTOkv8Hnu/be5U/MpVjTQ49VVCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJfC8S+L8Vg5EuY3PbmAAAAABJRU5ErkJggg=='%3e%3c/image%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e";function be({size:r=18,children:n,className:f,title:u,onClick:c,action:v=!1,...y}){const x=i=>{c?.(i)};return t.jsx("i",{style:{width:r,height:r},title:u,onClick:x,className:he("inline-flex items-center justify-center rounded-sm p-[2px] transition-all",{"cursor-pointer":v},f),children:t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",style:{width:"100%",height:"100%"},...y,children:n})})}function Et(r){return t.jsx(be,{...r,viewBox:"0 0 16 16",children:t.jsx("g",{id:"Understand",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsxs("g",{id:"编组",transform:"translate(0.5, 0.5)",stroke:"currentColor",strokeWidth:"1.25",children:[t.jsx("path",{d:"M7.44444444,3 C9.89904333,3 11.8888889,4.95366655 11.8888889,7.36363636 C11.8888889,9.06711551 10.8946979,10.5426108 9.44492275,11.2613085 L9.44444444,12.2727273 C9.44444444,13.3772968 8.54901394,14.2727273 7.44444444,14.2727273 C6.33987494,14.2727273 5.44444444,13.3772968 5.44444444,12.2727273 L5.44396614,11.2613085 C3.99419095,10.5426108 3,9.06711551 3,7.36363636 C3,4.95366655 4.98984556,3 7.44444444,3 Z",id:"形状结合"}),t.jsx("line",{x1:"5.5",y1:"11.2156017",x2:"9.5",y2:"11.2156017",id:"路径-11"}),t.jsx("line",{x1:"7.44444444",y1:"10.6363636",x2:"7.44444444",y2:"8.45454545",id:"路径-12"}),t.jsx("line",{x1:"7.44444444",y1:"0.818181818",x2:"7.44444444",y2:"0.272727273",id:"路径-12备份"}),t.jsx("line",{x1:"12.352383",y1:"2.81770629",x2:"12.3574335",y2:"2.26720124",id:"路径-12备份",transform:"translate(12.3549, 2.5425) rotate(45) translate(-12.3549, -2.5425)"}),t.jsx("line",{x1:"14.3888889",y1:"7.64141414",x2:"14.3888889",y2:"7.08585859",id:"路径-12备份",transform:"translate(14.3889, 7.3636) rotate(90) translate(-14.3889, -7.3636)"}),t.jsx("line",{x1:"12.3574335",y1:"12.4600715",x2:"12.352383",y2:"11.9095664",id:"路径-12备份",transform:"translate(12.3549, 12.1848) rotate(135) translate(-12.3549, -12.1848)"}),t.jsx("line",{x1:"2.53145543",y1:"12.4600715",x2:"2.53650594",y2:"11.9095664",id:"路径-12备份",transform:"translate(2.534, 12.1848) rotate(225) translate(-2.534, -12.1848)"}),t.jsx("line",{x1:"0.5",y1:"7.64141414",x2:"0.5",y2:"7.08585859",id:"路径-12备份",transform:"translate(0.5, 7.3636) rotate(270) translate(-0.5, -7.3636)"}),t.jsx("line",{x1:"2.53650594",y1:"2.81770629",x2:"2.53145543",y2:"2.26720124",id:"路径-12备份",transform:"translate(2.534, 2.5425) rotate(315) translate(-2.534, -2.5425)"}),t.jsx("polyline",{id:"路径-15",transform:"translate(7.4398, 6.7308) rotate(-45) translate(-7.4398, -6.7308)",points:"6.33632897 5.60310185 6.3568375 7.83853192 8.5432888 7.85859111"})]})})})}const Nt=({Detail:r,ChunkData:n,getSuggestion:f,loading:u})=>{const{t:c}=K.useTranslation(),[v,y]=o.useState(!1),[x,i]=o.useState(null);return o.useEffect(()=>{r?.payload&&(i(r?.payload),r?.payload?.suggestion&&f&&f(r?.payload?.suggestion))},[r?.payload,f]),o.useEffect(()=>{if(n?.message_chunk&&!u)try{const l=n.message_chunk.replace(/^"|"$/g,"").match(/<JSON>([\s\S]*?)<\/JSON>/g);if(l){const m=l[l.length-1].replace(/<JSON>|<\/JSON>/g,""),b=JSON.parse(m);b?.suggestion&&f&&f(b?.suggestion),i(b)}}catch(g){console.error("Failed to process message chunk in QueryIntent:",g)}},[n?.message_chunk,u,f]),!n&&!r?null:t.jsxs("div",{className:"space-y-2 mb-3 w-full",children:[t.jsxs("button",{onClick:()=>y(g=>!g),className:"inline-flex items-center gap-2 px-2 py-1 rounded-xl transition-colors border border-[#E6E6E6] dark:border-[#272626]",children:[u?t.jsxs(t.Fragment,{children:[t.jsx(E.Loader,{className:"w-4 h-4 animate-spin text-[#1990FF]"}),t.jsx("span",{className:"text-xs text-[#999999] italic",children:c(`assistant.message.steps.${n?.chunk_type||r.type}`)})]}):t.jsxs(t.Fragment,{children:[t.jsx(Et,{className:"w-4 h-4 text-[#38C200]"}),t.jsx("span",{className:"text-xs text-[#999999]",children:c(`assistant.message.steps.${n?.chunk_type||r.type}`)})]}),v?t.jsx(E.ChevronUp,{className:"w-4 h-4"}):t.jsx(E.ChevronDown,{className:"w-4 h-4"})]}),v&&t.jsx("div",{className:"pl-2 pt-1 border-l-2 border-[#e5e5e5] dark:border-[#4e4e56]",children:t.jsx("div",{className:"text-[#8b8b8b] dark:text-[#a6a6a6] space-y-2",children:t.jsxs("div",{className:"mb-4 space-y-2 text-xs",children:[x?.keyword?t.jsxs("div",{className:"flex gap-1",children:[t.jsxs("span",{className:"text-[#999999]",children:["- ",c("assistant.message.steps.keywords"),":"]}),t.jsx("div",{className:"flex flex-wrap gap-1",children:x?.keyword?.map((g,l)=>t.jsxs("span",{className:"text-[#333333] dark:text-[#D8D8D8]",children:[g,l<2&&"、"]},g+l))})]}):null,x?.category?t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsxs("span",{className:"text-[#999999]",children:["- ",c("assistant.message.steps.questionType"),":"]}),t.jsx("span",{className:"text-[#333333] dark:text-[#D8D8D8]",children:x?.category})]}):null,x?.intent?t.jsxs("div",{className:"flex items-start gap-1",children:[t.jsxs("span",{className:"text-[#999999]",children:["- ",c("assistant.message.steps.userIntent"),":"]}),t.jsx("div",{className:"flex-1 text-[#333333] dark:text-[#D8D8D8]",children:x?.intent})]}):null,x?.query?t.jsxs("div",{className:"flex items-start gap-1",children:[t.jsxs("span",{className:"text-[#999999]",children:["- ",c("assistant.message.steps.relatedQuestions"),":"]}),t.jsx("div",{className:"flex-1 flex flex-col text-[#333333] dark:text-[#D8D8D8]",children:x?.query?.map((g,l)=>t.jsxs("span",{children:["- ",g]},g+l))})]}):null]})})})]})},St=({Detail:r,ChunkData:n,loading:f})=>{const{t:u}=K.useTranslation(),[c,v]=o.useState(!1),[y,x]=o.useState("");return o.useEffect(()=>{r?.description&&x(r?.description)},[r?.description]),o.useEffect(()=>{n?.message_chunk&&x(n?.message_chunk)},[n?.message_chunk,y]),!n&&!r?null:t.jsxs("div",{className:"space-y-2 mb-3 w-full",children:[t.jsxs("button",{onClick:()=>v(i=>!i),className:"inline-flex items-center gap-2 px-2 py-1 rounded-xl transition-colors border border-[#E6E6E6] dark:border-[#272626]",children:[f?t.jsxs(t.Fragment,{children:[t.jsx(E.Loader,{className:"w-4 h-4 animate-spin text-[#1990FF]"}),t.jsx("span",{className:"text-xs text-[#999999] italic",children:u(`assistant.message.steps.${n?.chunk_type}`)})]}):t.jsxs(t.Fragment,{children:[t.jsx(E.Hammer,{className:"w-4 h-4 text-[#38C200]"}),t.jsx("span",{className:"text-xs text-[#999999]",children:u(`assistant.message.steps.${n?.chunk_type}`)})]}),c?t.jsx(E.ChevronUp,{className:"w-4 h-4"}):t.jsx(E.ChevronDown,{className:"w-4 h-4"})]}),c&&t.jsx("div",{className:"pl-2 pt-1 border-l-2 border-[#e5e5e5] dark:border-[#4e4e56]",children:t.jsx("div",{className:"text-[#8b8b8b] dark:text-[#a6a6a6] space-y-2",children:t.jsx(Ze.XMarkdown,{content:y||""})})})]})},Xe=async r=>{navigator.clipboard?await navigator.clipboard.writeText(r):console.log("Clipboard not available",r)},Tt=r=>{window.open(r,"_blank")};function Bt(r){return t.jsx(be,{...r,viewBox:"0 0 16 16",children:t.jsxs("g",{id:"Retrieve",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("line",{x1:"10.8977456",y1:"14.5",x2:"14",y2:"10.9204757",id:"路径",stroke:"currentColor",strokeWidth:"1.25",transform:"translate(12.4489, 12.7102) scale(-1, 1) translate(-12.4489, -12.7102)"}),t.jsx("circle",{id:"椭圆形",stroke:"currentColor",strokeWidth:"1.25",transform:"translate(7.5, 7) scale(-1, 1) translate(-7.5, -7)",cx:"7.5",cy:"7",r:"5"})]})})}const Pt=({Detail:r,ChunkData:n,loading:f,formatUrl:u})=>{const{t:c}=K.useTranslation(),[v,y]=o.useState(!1),[x,i]=o.useState(0),[g,l]=o.useState([]);o.useEffect(()=>{r?.payload&&(l(r?.payload),i(r?.payload.length))},[r?.payload]),o.useEffect(()=>{if(n?.message_chunk&&!f)try{const m=n.message_chunk.match(/<Payload total=(\d+)>/);m&&i(Number(m[1]));const b=n.message_chunk.match(/\[([\s\S]*)\]/);if(b){const F=JSON.parse(b[0]);l(F)}}catch(m){console.error("Failed to parse fetch source data:",m)}},[n?.message_chunk,f]);const C=m=>()=>{const b=u&&u(m)||m.url;b&&Tt(b)};return!n&&!r?null:t.jsxs("div",{className:`mt-2 mb-2 max-w-full w-full md:w-[610px] ${v?"rounded-lg overflow-hidden border border-[#E6E6E6] dark:border-[#272626]":""}`,children:[t.jsxs("button",{onClick:()=>y(m=>!m),className:`inline-flex justify-between items-center gap-2 px-2 py-1 rounded-xl transition-colors whitespace-nowrap ${v?"w-full":"border border-[#E6E6E6] dark:border-[#272626]"}`,children:[t.jsxs("div",{className:"flex-1 min-w-0 flex items-center gap-2",children:[t.jsx(Bt,{className:"w-4 h-4 text-[#38C200] shrink-0"}),t.jsx("span",{className:"text-xs text-[#999999]",children:c(`assistant.message.steps.${n?.chunk_type||r.type}`,{count:Number(x)})})]}),v?t.jsx(E.ChevronUp,{className:"w-4 h-4 text-[#999999]"}):t.jsx(E.ChevronDown,{className:"w-4 h-4 text-[#999999]"})]}),v&&t.jsx(t.Fragment,{children:g?.map((m,b)=>t.jsx("div",{onClick:C(m),className:"group flex items-center p-2 hover:bg-[#F7F7F7] dark:hover:bg-[#2C2C2C] border-b border-[#E6E6E6] dark:border-[#272626] last:border-b-0 cursor-pointer transition-colors",children:t.jsxs("div",{className:"w-full flex items-center gap-2",children:[t.jsxs("div",{className:"w-[75%] mobile:w-full flex items-center gap-1",children:[t.jsx(E.Globe,{className:"w-3 h-3 shrink-0"}),t.jsx("div",{className:"text-xs text-[#333333] dark:text-[#D8D8D8] truncate font-normal group-hover:text-[#0072FF] dark:group-hover:text-[#0072FF]",children:m.title||m.category})]}),t.jsxs("div",{className:"flex-1 mobile:hidden flex items-center justify-end gap-2",children:[t.jsx("span",{className:"text-xs text-[#999999] dark:text-[#999999] truncate",children:m.source?.name||m?.category}),t.jsx(E.SquareArrowOutUpRight,{className:"w-3 h-3 text-[#999999] dark:text-[#999999] shrink-0"})]})]})},b))})]})};function Rt(r){return t.jsx(be,{...r,viewBox:"0 0 16 16",children:t.jsx("g",{id:"selection",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:t.jsxs("g",{id:"编组",transform:"translate(1.4813, 1)",stroke:"currentColor",strokeWidth:"1.25",children:[t.jsx("line",{x1:"6.7986538",y1:"2.8",x2:"6.7986538",y2:"2.07241631e-17",id:"路径",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("circle",{id:"椭圆形",fill:"#000000",cx:"6.7986538",cy:"6.72",r:"1"}),t.jsx("line",{x1:"2.17440858e-17",y1:"13.5186538",x2:"4.62042688",y2:"8.89822692",id:"路径",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("line",{x1:"10.1008425",y1:"4.16781133",x2:"10.1008425",y2:"2.66781133",id:"路径",strokeLinecap:"round",strokeLinejoin:"round",transform:"translate(10.1008, 3.4178) rotate(45) translate(-10.1008, -3.4178)"}),t.jsx("line",{x1:"12.1186538",y1:"8.12",x2:"12.1186538",y2:"5.32",id:"路径",strokeLinecap:"round",strokeLinejoin:"round",transform:"translate(12.1187, 6.72) rotate(90) translate(-12.1187, -6.72)"}),t.jsx("line",{x1:"10.1008425",y1:"10.7721887",x2:"10.1008425",y2:"9.27218867",id:"路径",strokeLinecap:"round",strokeLinejoin:"round",transform:"translate(10.1008, 10.0222) rotate(135) translate(-10.1008, -10.0222)"}),t.jsx("line",{x1:"6.7986538",y1:"13.44",x2:"6.7986538",y2:"10.64",id:"路径",strokeLinecap:"round",strokeLinejoin:"round",transform:"translate(6.7987, 12.04) rotate(180) translate(-6.7987, -12.04)"}),t.jsx("line",{x1:"1.4786538",y1:"8.12",x2:"1.4786538",y2:"5.32",id:"路径",strokeLinecap:"round",strokeLinejoin:"round",transform:"translate(1.4787, 6.72) rotate(270) translate(-1.4787, -6.72)"}),t.jsx("line",{x1:"3.49646513",y1:"4.16781133",x2:"3.49646513",y2:"2.66781133",id:"路径",strokeLinecap:"round",strokeLinejoin:"round",transform:"translate(3.4965, 3.4178) rotate(315) translate(-3.4965, -3.4178)"})]})})})}const Ft=({Detail:r,ChunkData:n,loading:f})=>{const{t:u}=K.useTranslation(),[c,v]=o.useState(!1),[y,x]=o.useState([]);return o.useEffect(()=>{r?.payload&&x(r?.payload)},[r?.payload]),o.useEffect(()=>{if(n?.message_chunk&&!f)try{const g=n.message_chunk.replace(/^"|"$/g,"").match(/<JSON>([\s\S]*?)<\/JSON>/g);if(g)for(let l=g.length-1;l>=0;l--)try{const C=g[l].replace(/<JSON>|<\/JSON>|<think>|<\/think>/g,""),m=JSON.parse(C.trim());if(Array.isArray(m)&&m.every(b=>b.id&&b.title&&b.explain)){x(m);break}}catch{continue}}catch(i){console.error("Failed to parse pick source data:",i)}},[n?.message_chunk,f]),!n&&!r?null:t.jsxs("div",{className:"space-y-2 mb-3 w-full",children:[t.jsxs("button",{onClick:()=>v(i=>!i),className:"inline-flex items-center gap-2 px-2 py-1 rounded-xl transition-colors border border-[#E6E6E6] dark:border-[#272626]",children:[f?t.jsxs(t.Fragment,{children:[t.jsx(E.Loader,{className:"w-4 h-4 animate-spin text-[#1990FF]"}),t.jsx("span",{className:"text-xs text-[#999999] italic",children:u("assistant.message.steps.pick_source_start")})]}):t.jsxs(t.Fragment,{children:[t.jsx(Rt,{className:"w-4 h-4 text-[#38C200]"}),t.jsx("span",{className:"text-xs text-[#999999]",children:u(`assistant.message.steps.${n?.chunk_type||r.type}`,{count:y?.length})})]}),c?t.jsx(E.ChevronUp,{className:"w-4 h-4"}):t.jsx(E.ChevronDown,{className:"w-4 h-4"})]}),c&&t.jsx("div",{className:"pl-2 pt-1 border-l-2 border-[#e5e5e5] dark:border-[#4e4e56]",children:t.jsx("div",{className:"text-[#8b8b8b] dark:text-[#a6a6a6] space-y-2",children:t.jsx("div",{className:"mb-4 space-y-3 text-xs",children:y?.map(i=>t.jsx("div",{className:"p-3 rounded-lg border border-[#E6E6E6] dark:border-[#272626] bg-white dark:bg-[#1E1E1E] hover:bg-gray-50 dark:hover:bg-[#2C2C2C] transition-colors",children:t.jsxs("div",{className:"flex flex-col gap-2",children:[t.jsx("div",{className:"text-sm font-medium text-[#333333] dark:text-[#D8D8D8]",children:i.title}),t.jsx("div",{className:"text-xs text-[#666666] dark:text-[#A3A3A3] line-clamp-2",children:i.explain})]})},i.id))})})})]})};function qt(r){return t.jsx(be,{...r,viewBox:"0 0 16 16",children:t.jsxs("g",{id:"deading",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[t.jsx("circle",{id:"椭圆形",stroke:"currentColor",strokeWidth:"1.25",cx:"8",cy:"3",r:"1.375"}),t.jsx("circle",{id:"椭圆形备份-2",stroke:"currentColor",strokeWidth:"1.25",cx:"3",cy:"5",r:"1.375"}),t.jsx("circle",{id:"椭圆形备份-4",stroke:"currentColor",strokeWidth:"1.25",cx:"13",cy:"5",r:"1.375"}),t.jsx("circle",{id:"椭圆形备份",stroke:"currentColor",strokeWidth:"1.25",cx:"8",cy:"13",r:"1.375"}),t.jsx("circle",{id:"椭圆形备份-3",stroke:"currentColor",strokeWidth:"1.25",cx:"3",cy:"11",r:"1.375"}),t.jsx("circle",{id:"椭圆形备份-5",stroke:"currentColor",strokeWidth:"1.25",cx:"13",cy:"11",r:"1.375"}),t.jsx("path",{d:"M8.0070039,4.03345364 L8.0070039,8.50590493 L4.1923477,10.2855921",id:"路径-13",stroke:"currentColor",strokeWidth:"1.25"}),t.jsx("line",{x1:"11.7924093",y1:"8.47550067",x2:"8",y2:"10.2754456",id:"路径-13备份",stroke:"currentColor",strokeWidth:"1.25",transform:"translate(9.8962, 9.3755) scale(-1, 1) translate(-9.8962, -9.3755)"}),t.jsx("path",{d:"M4.17568738,4.53038288 L6.65384701,3.54050563 M9.35480875,3.53987819 L11.7283558,4.49062879",id:"形状",stroke:"currentColor",strokeWidth:"1.25"}),t.jsx("line",{x1:"3",y1:"6.06946104",x2:"3",y2:"9.97988046",id:"路径-14",stroke:"currentColor",strokeWidth:"1.25"}),t.jsx("line",{x1:"13",y1:"6.06946104",x2:"13",y2:"9.97988046",id:"路径-14备份",stroke:"currentColor",strokeWidth:"1.25"})]})})}const Lt=({Detail:r,ChunkData:n,loading:f})=>{const{t:u}=K.useTranslation(),[c,v]=o.useState(!1),[y,x]=o.useState([]),[i,g]=o.useState("");return o.useEffect(()=>{r?.description&&g(r?.description)},[r?.description]),o.useEffect(()=>{if(n?.message_chunk)try{if(n.message_chunk.includes("&")){const l=n.message_chunk.split("&").filter(Boolean);x(l)}else x([n.message_chunk])}catch(l){console.error("Failed to parse query data:",l)}},[n?.message_chunk]),!n&&!r?null:t.jsxs("div",{className:"space-y-2 mb-3 w-full",children:[t.jsxs("button",{onClick:()=>v(l=>!l),className:"inline-flex items-center gap-2 px-2 py-1 rounded-xl transition-colors border border-[#E6E6E6] dark:border-[#272626]",children:[f?t.jsxs(t.Fragment,{children:[t.jsx(E.Loader,{className:"w-4 h-4 animate-spin text-[#1990FF]"}),t.jsx("span",{className:"text-xs text-[#999999] italic",children:u(`assistant.message.steps.${n?.chunk_type||r?.type}`)})]}):t.jsxs(t.Fragment,{children:[t.jsx(qt,{className:"w-4 h-4 text-[#38C200]"}),t.jsx("span",{className:"text-xs text-[#999999]",children:u(`assistant.message.steps.${n?.chunk_type||r?.type}`,{count:Number(y.length)})})]}),c?t.jsx(E.ChevronUp,{className:"w-4 h-4"}):t.jsx(E.ChevronDown,{className:"w-4 h-4"})]}),c&&t.jsx("div",{className:"pl-2 pt-1 border-l-2 border-[#e5e5e5] dark:border-[#4e4e56]",children:t.jsx("div",{className:"text-[#8b8b8b] dark:text-[#a6a6a6] space-y-2",children:t.jsxs("div",{className:"mb-4 space-y-3 text-xs",children:[y?.map(l=>t.jsx("div",{className:"flex flex-col gap-2",children:t.jsxs("div",{className:"text-xs text-[#999999] dark:text-[#808080]",children:["- ",l]})},l)),i?.split(`
32
- `).map((l,C)=>l.trim()&&t.jsx("p",{className:"text-sm",children:l},C))]})})})]})},Ot=({Detail:r,ChunkData:n,loading:f})=>{const{t:u}=K.useTranslation(),[c,v]=o.useState(!0),[y,x]=o.useState("");return o.useEffect(()=>{r?.description&&x(r?.description)},[r?.description]),o.useEffect(()=>{n?.message_chunk&&x(n?.message_chunk)},[n?.message_chunk,y]),!n&&!r?null:t.jsxs("div",{className:"space-y-2 mb-3 w-full",children:[t.jsxs("button",{onClick:()=>v(i=>!i),className:"inline-flex items-center gap-2 px-2 py-1 rounded-xl transition-colors border border-[#E6E6E6] dark:border-[#272626]",children:[f?t.jsxs(t.Fragment,{children:[t.jsx(E.Loader,{className:"w-4 h-4 animate-spin text-[#1990FF]"}),t.jsx("span",{className:"text-xs text-[#999999] italic",children:u(`assistant.message.steps.${n?.chunk_type}`)})]}):t.jsxs(t.Fragment,{children:[t.jsx(E.Brain,{className:"w-4 h-4 text-[#38C200]"}),t.jsx("span",{className:"text-xs text-[#999999]",children:u("assistant.message.steps.thoughtTime")})]}),c?t.jsx(E.ChevronUp,{className:"w-4 h-4"}):t.jsx(E.ChevronDown,{className:"w-4 h-4"})]}),c&&t.jsx("div",{className:"pl-2 pt-1 border-l-2 border-[#e5e5e5] dark:border-[#4e4e56]",children:t.jsx("div",{className:"text-[#8b8b8b] dark:text-[#a6a6a6] space-y-2",children:y?.split(`
33
- `).map((i,g)=>i.trim()&&t.jsx("p",{className:"text-sm",children:i},g))})})]})},Jt=["timedout","error"],Mt=({id:r,content:n,question:f,actionClassName:u,actionIconSize:c,copyButtonId:v,onResend:y})=>{const[x,i]=o.useState(!1),[g,l]=o.useState(!1),[C,m]=o.useState(!1),[b,F]=o.useState(!1),[Y,w]=o.useState(!1),h=Jt.includes(r),S=async()=>{try{await Xe(n),i(!0);const L=setTimeout(()=>{i(!1),clearTimeout(L)},2e3)}catch(L){console.error("copy error:",L)}},_=()=>{l(!g),m(!1)},I=()=>{m(!C),l(!1)},ne=async()=>{if("speechSynthesis"in window){if(b){window.speechSynthesis.cancel(),F(!1);return}const L=new SpeechSynthesisUtterance(n);L.lang="zh-CN",L.onend=()=>{F(!1)},F(!0),window.speechSynthesis.speak(L)}},ae=()=>{if(y){w(!0),y();const L=setTimeout(()=>{w(!1),clearTimeout(L)},1e3)}};return t.jsxs("div",{className:he("flex items-center gap-2 mt-2",u),children:[!h&&t.jsx("button",{id:v,onClick:S,className:"p-1 hover:bg-black/5 dark:hover:bg-white/5 rounded-lg transition-colors",children:x?t.jsx(E.Check,{className:"w-4 h-4 text-[#38C200] dark:text-[#38C200]",style:{width:c,height:c}}):t.jsx(E.Copy,{className:"w-4 h-4 text-[#666666] dark:text-[#A3A3A3]",style:{width:c,height:c}})}),!h&&t.jsx("button",{onClick:_,className:`p-1 hover:bg-black/5 dark:hover:bg-white/5 rounded-lg transition-colors ${g?"animate-shake":""}`,children:t.jsx(E.ThumbsUp,{className:`w-4 h-4 ${g?"text-[#1990FF] dark:text-[#1990FF]":"text-[#666666] dark:text-[#A3A3A3]"}`,style:{width:c,height:c}})}),!h&&t.jsx("button",{onClick:I,className:`p-1 hover:bg-black/5 dark:hover:bg-white/5 rounded-lg transition-colors ${C?"animate-shake":""}`,children:t.jsx(E.ThumbsDown,{className:`w-4 h-4 ${C?"text-[#1990FF] dark:text-[#1990FF]":"text-[#666666] dark:text-[#A3A3A3]"}`,style:{width:c,height:c}})}),!h&&t.jsx(t.Fragment,{children:t.jsx("button",{onClick:ne,className:"p-1 hover:bg-black/5 dark:hover:bg-white/5 rounded-lg transition-colors",children:t.jsx(E.Volume2,{className:`w-4 h-4 ${b?"text-[#1990FF] dark:text-[#1990FF]":"text-[#666666] dark:text-[#A3A3A3]"}`,style:{width:c,height:c}})})}),f&&t.jsx("button",{onClick:ae,className:`p-1 hover:bg-black/5 dark:hover:bg-white/5 rounded-lg transition-colors ${Y?"animate-spin":""}`,children:t.jsx(E.RotateCcw,{className:`w-4 h-4 ${Y?"text-[#1990FF] dark:text-[#1990FF]":"text-[#666666] dark:text-[#A3A3A3]"}`,style:{width:c,height:c}})})]})};function Qt({suggestions:r,onSelect:n}){return!r||r.length===0?null:t.jsx("div",{className:"mt-4 flex flex-col gap-2",children:r.map((f,u)=>t.jsxs("button",{onClick:()=>n(f),className:"text-left inline-flex items-center px-3 py-1.5 rounded-full bg-[#F5F5F5] dark:bg-[#2A2A2A] border border-[#E4E5EF] dark:border-[#3A3A3A] text-sm text-[#333333] dark:text-white hover:bg-[#EDEDED] dark:hover:bg-[#3A3A3A] transition-colors w-fit max-w-full wrap-break-word whitespace-pre-wrap",children:[t.jsx("span",{className:"break-all",children:f}),t.jsx(E.MoveRight,{className:"w-3 h-3 ml-1.5 shrink-0"})]},u))})}const Yt=({textToCopy:r})=>{const[n,f]=o.useState(!1),u=async()=>{try{await Xe(r),f(!0);const c=setTimeout(()=>{f(!1),clearTimeout(c)},2e3)}catch(c){console.error("copy error:",c)}};return t.jsx("button",{className:"p-1 bg-gray-200 dark:bg-gray-700 rounded",onClick:u,children:n?t.jsx(E.Check,{className:"w-4 h-4 text-[#38C200] dark:text-[#38C200]"}):t.jsx(E.Copy,{className:"w-4 h-4 text-gray-600 dark:text-gray-300"})})},Vt=r=>{const{message:n,attachments:f}=r,[u,c]=o.useState(!1),[v,y]=o.useState([]),x=i=>{if(typeof window<"u"&&typeof document<"u"){const g=window.getSelection(),l=document.createRange();if(i.currentTarget&&g&&l)try{l.selectNodeContents(i.currentTarget),g.removeAllRanges(),g.addRange(l)}catch(C){console.error("Selection failed:",C)}}};return kt.useAsyncEffect(async()=>{try{if(f.length===0)return;y({}?.hits?.hits)}catch(i){console.error("Get attachment failed:",String(i))}},[f]),t.jsxs(t.Fragment,{children:[n&&t.jsxs("div",{className:"flex gap-1 items-center justify-end",onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),children:[t.jsx("div",{className:he("size-6 transition",{"opacity-0":!u}),children:t.jsx(Yt,{textToCopy:n})}),t.jsx("div",{className:"max-w-[85%] overflow-auto text-left px-3 py-2 bg-white dark:bg-[#202126]! rounded-xl border border-black/12 dark:border-black/15 font-normal text-sm text-[#333333] dark:text-white cursor-pointer user-select-text whitespace-pre-wrap",onDoubleClick:x,children:n})]}),v&&v.length>0&&t.jsx("div",{className:he("w-full",{"mt-3":n}),children:t.jsx(vt.Attachments,{data:v.map(i=>({id:i._source.id,filename:i._source.name,extname:i._source.icon,size:i._source.size,status:"uploaded"})),className:"text-left"})})]})},Wt=({name:r,className:n,style:f,...u})=>t.jsx("svg",{className:`icon dark:drop-shadow-[0_0_6px_rgb(255,255,255)] ${n||""}`,style:f,...u,children:t.jsx("use",{xlinkHref:`#${r}`})});function Ut(){const[r,n]=o.useState(),[f,u]=o.useState(),[c,v]=o.useState(),[y,x]=o.useState(),[i,g]=o.useState(),[l,C]=o.useState(),[m,b]=o.useState(),F={deal_query_intent:o.useCallback(w=>{n(h=>h?{...h,message_chunk:(h.message_chunk||"")+(w.message_chunk||"")}:w)},[]),deal_tools:o.useCallback(w=>{u(h=>h?{...h,message_chunk:(h.message_chunk||"")+(w.message_chunk||"")}:w)},[]),deal_fetch_source:o.useCallback(w=>{v(h=>h?{...h,message_chunk:(h.message_chunk||"")+(w.message_chunk||"")}:w)},[]),deal_pick_source:o.useCallback(w=>{x(h=>h?{...h,message_chunk:(h.message_chunk||"")+(w.message_chunk||"")}:w)},[]),deal_deep_read:o.useCallback(w=>{g(h=>h?{...h,message_chunk:(h.message_chunk||"")+"&"+(w.message_chunk||"")}:w)},[]),deal_think:o.useCallback(w=>{C(h=>h?{...h,message_chunk:(h.message_chunk||"")+(w.message_chunk||"")}:w)},[]),deal_response:o.useCallback(w=>{b(h=>h?{...h,message_chunk:(h.message_chunk||"")+(w.message_chunk||"")}:w)},[])};return{data:{query_intent:r,tools:f,fetch_source:c,pick_source:y,deep_read:i,think:l,response:m},handlers:F,clearAllChunkData:()=>new Promise(w=>{n(void 0),u(void 0),v(void 0),x(void 0),g(void 0),C(void 0),b(void 0),setTimeout(w,0)})}}function Kt(r){if(r)return r==="light"?"light":r==="dark"||typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}const Dt=o.memo(o.forwardRef(function({message:n,isTyping:f,onResend:u,hide_assistant:c=!1,rootClassName:v,actionClassName:y,actionIconSize:x,copyButtonId:i,formatUrl:g,theme:l,locale:C,query_intent:m,tools:b,fetch_source:F,pick_source:Y,deep_read:w,think:h,response:S,currentAssistant:_,assistantList:I,loadingStep:ne},ae){const{t:L,i18n:oe}=K.useTranslation(),xe=Kt(l),[ie,le]=o.useState({}),{data:{query_intent:ge,tools:M,fetch_source:V,pick_source:Z,deep_read:me,think:pe,response:$},handlers:P,clearAllChunkData:Ae}=Ut();o.useEffect(()=>{m&&P.deal_query_intent(m)},[m]),o.useEffect(()=>{b&&P.deal_tools(b)},[b]),o.useEffect(()=>{F&&P.deal_fetch_source(F)},[F]),o.useEffect(()=>{Y&&P.deal_pick_source(Y)},[Y]),o.useEffect(()=>{w&&P.deal_deep_read(w)},[w]),o.useEffect(()=>{h&&P.deal_think(h)},[h]),o.useEffect(()=>{S&&P.deal_response(S)},[S]);const[ke,ce]=o.useState({query_intent:!1,tools:!1,fetch_source:!1,pick_source:!1,deep_read:!1,think:!1,response:!1}),W=ne||ke,ee=o.useRef(!1);o.useImperativeHandle(ae,()=>({addChunk:p=>{if(ce(()=>({query_intent:!1,tools:!1,fetch_source:!1,pick_source:!1,deep_read:!1,think:!1,response:!1,[p.chunk_type||""]:!0})),p.chunk_type==="query_intent")P.deal_query_intent(p);else if(p.chunk_type==="tools")P.deal_tools(p);else if(p.chunk_type==="fetch_source")P.deal_fetch_source(p);else if(p.chunk_type==="pick_source")P.deal_pick_source(p);else if(p.chunk_type==="deep_read")P.deal_deep_read(p);else if(p.chunk_type==="think")P.deal_think(p);else if(p.chunk_type==="response"){const D=p.message_chunk;if(typeof D=="string"){if(D.includes("<think>")||D.includes("<think>")){ee.current=!0;return}else if(D.includes("</think>")||D.includes("</think>")){ee.current=!1;return}ee.current?P.deal_think({...p,chunk_type:"think"}):P.deal_response(p)}}},reset:()=>{Ae(),ce({query_intent:!1,tools:!1,fetch_source:!1,pick_source:!1,deep_read:!1,think:!1,response:!1}),ee.current=!1}}));const Q=n?._source?.type==="assistant",z=n?._source?.assistant_id,X=n?._source?.assistant_item;o.useEffect(()=>{C&&oe.language!==C&&oe.changeLanguage(C)},[C,oe]),o.useEffect(()=>{if(X){le(X);return}if(Q&&z&&Array.isArray(I)){le(I.find(p=>p._id===z)??{});return}le(_)},[Q,X,z,I,_]);const U=n?._source?.message||"",de=n?._source?.attachments??[],J=n?._source?.details||[],ve=n?._source?.question||"",ye=f===!1&&(U||$?.message_chunk),[je,Ee]=o.useState([]),te=p=>{Ee(p)},G=()=>Q?t.jsxs(t.Fragment,{children:[t.jsx(Nt,{Detail:J.find(p=>p.type==="query_intent"),ChunkData:ge,getSuggestion:te,loading:W?.query_intent}),t.jsx(St,{Detail:J.find(p=>p.type==="tools"),ChunkData:M,loading:W?.tools}),t.jsx(Pt,{Detail:J.find(p=>p.type==="fetch_source"),ChunkData:V,loading:W?.fetch_source,formatUrl:g}),t.jsx(Ft,{Detail:J.find(p=>p.type==="pick_source"),ChunkData:Z,loading:W?.pick_source}),t.jsx(Lt,{Detail:J.find(p=>p.type==="deep_read"),ChunkData:me,loading:W?.deep_read}),t.jsx(Ot,{Detail:J.find(p=>p.type==="think"),ChunkData:pe,loading:W?.think}),t.jsx(Ze.XMarkdown,{content:U||$?.message_chunk||""}),f&&t.jsx("div",{className:"inline-block w-1.5 h-5 ml-0.5 -mb-0.5 bg-[#666666] dark:bg-[#A3A3A3] rounded-sm animate-typing"}),ye&&t.jsx(Mt,{id:n._id??"",content:U||$?.message_chunk||"",question:ve,actionClassName:y,actionIconSize:x,copyButtonId:i,onResend:()=>{u&&u(ve)}}),!f&&t.jsx(Qt,{suggestions:je,onSelect:p=>u&&u(p)})]}):t.jsx(Vt,{message:U,attachments:de});return t.jsx("div",{className:he("w-full py-8 flex",[Q?"justify-start":"justify-end"],xe==="dark"&&"dark",v),children:t.jsx("div",{className:`w-full px-4 flex gap-4 ${Q?"w-full":"flex-row-reverse"}`,children:t.jsxs("div",{className:`w-full space-y-2 ${Q?"text-left":"text-right"}`,children:[!c&&t.jsxs("div",{className:"w-full flex items-center gap-1 font-semibold text-sm text-[#333] dark:text-white",children:[Q?t.jsx("div",{className:"w-6 h-6 flex justify-center items-center rounded-full bg-white dark:bg-[#2A2A2A] border border-[#E6E6E6] dark:border-[#3A3A3A]",children:ie?._source?.icon?.startsWith("font_")?t.jsx(Wt,{name:ie._source.icon,className:"w-4 h-4"}):t.jsx("img",{src:jt,className:"w-4 h-4",alt:L("assistant.message.logo")})}):null,Q?ie?._source?.name||"Coco AI":""]}),t.jsx("div",{className:"w-full prose dark:prose-invert prose-sm max-w-none",children:t.jsx("div",{className:"w-full pl-7 text-[#333] dark:text-white leading-relaxed",children:G()})})]})})})})),It=o.memo(o.forwardRef((r,n)=>t.jsx(K.I18nextProvider,{i18n:ze,children:t.jsx(Dt,{...r,ref:n})})));exports.ChatMessage=It;
31
+ <%s key={someKey} {...props} />`,_,M,he,M),es[M+_]=!0}}return f===n?Vs(G):Ns(G),G}}function Ms(f,b,T){return tt(f,b,T,!0)}function st(f,b,T){return tt(f,b,T,!1)}var be=st,St=Ms;Pt.Fragment=n,Pt.jsx=be,Pt.jsxs=St})()),Pt}var nr;function da(){return nr||(nr=1,process.env.NODE_ENV==="production"?ts.exports=ca():ts.exports=ua()),ts.exports}var l=da();const ha={en:{translation:{assistant:{message:{logo:"Coco AI Logo",aiName:"Coco AI",thinkingButton:"View thinking process",steps:{query_intent:"Understand the query",tools:"Call LLM Tools",source_zero:"Searching for relevant documents",fetch_source:"Retrieve {{count}} documents",pick_source:"Intelligent pick {{count}} results",pick_source_start:"Intelligently pre-selecting",deep_read:"Deep reading",think:"AI is thinking...",thoughtTime:"Thought for a few seconds",keywords:"Keywords",questionType:"Query Type",userIntent:"User Intent",relatedQuestions:"Query",suggestion:"Suggestion",informationSeeking:"Information Seeking"}}},deepResearch:{status:{completedWithCount:"Deep research completed · Found {{count}} related results",completed:"Deep research completed",running:"Deep research in progress",preparing:"Preparing deep research"},button:{view:"View",download:"Download",share:"Share"},tab:{report:"Research Report",steps:"Research Steps",searchResults:"Search Results"},report:{generatingTitle:"Generating research report",generatingDescription:"Running a complete research workflow based on your question and compiling a structured report. It will appear here once ready.",defaultTitle:"Research Report"},steps:{intro:"I will collect and analyze information related to this topic, including its definition, use cases, market landscape and common questions. If it refers to a specific domain, I will further study its concrete applications and impact in that domain, and then report the results to you.",planTitle:"Plan research steps",planDescription:"I am planning a research workflow around this topic.",generatedPlans:"Generated plans",executeTitle:"Execute research plans",searching:"Searching",searchTitle:"Search sources",optimizePlan:"Optimize research plan",reportTitle:"Write research report"}},sessionFiles:{labels:{all:"All"},modal:{title:"Files in the conversation",description:"Only the selected files will participate in the current conversation."}}}},zh:{translation:{assistant:{message:{logo:"Coco AI 图标",aiName:"Coco AI",thinkingButton:"查看思考过程",steps:{query_intent:"理解查询",tools:"调用大模型工具",source_zero:"正在搜索相关文档",fetch_source:"检索 {{count}} 份文档",pick_source:"智能预选 {{count}} 个结果",pick_source_start:"正在智能预选",deep_read:"深度阅读",think:"AI 正在思考...",thoughtTime:"思考了数秒",keywords:"关键词",questionType:"查询类型",userIntent:"用户意图",relatedQuestions:"查询",suggestion:"建议",informationSeeking:"信息查询"}}},deepResearch:{status:{completedWithCount:"深度研究完成 · 找到 {{count}} 条相关结果",completed:"深度研究完成",running:"正在执行深度研究",preparing:"正在准备深度研究"},button:{view:"查看",download:"下载",share:"分享"},tab:{report:"研究报告",steps:"研究步骤",searchResults:"搜索结果"},report:{generatingTitle:"研究报告生成中",generatingDescription:"我正在根据你的问题执行完整的研究流程,整理结构化的研究报告。研究完成后,报告会自动展示在这里。",defaultTitle:"研究报告"},steps:{intro:"将为你整理与该主题相关的信息,包括其定义、用途、市场情况以及常见问题。如果是指特定领域的主题,我还会进一步深入研究其在该领域的具体应用和影响。完成后我会向你汇报结果。",planTitle:"规划研究计划",planDescription:"我正在针对该主题,进行规划研究计划",generatedPlans:"生成的计划",executeTitle:"执行研究计划",searching:"正在搜索",searchTitle:"搜索资料",optimizePlan:"优化研究计划",reportTitle:"编写研究报告"}},sessionFiles:{labels:{all:"全部"},modal:{title:"会话中的文件",description:"只有选定的文件才会参与当前会话。"}}}}},wi=ra.createInstance();wi.use(ce.initReactI18next).init({resources:ha,lng:"en",fallbackLng:"en",interpolation:{escapeValue:!1},react:{useSuspense:!1}});const fa="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='128px'%20height='128px'%20viewBox='0%200%20128%20128'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e画板备份%203%3c/title%3e%3cdefs%3e%3crect%20id='path-1'%20x='0'%20y='0'%20width='56.7563872'%20height='56.5910836'%3e%3c/rect%3e%3c/defs%3e%3cg%20id='画板备份-3'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='编组-10'%20transform='translate(-5,%203)'%3e%3cpath%20d='M49.6992377,22.7719612%20C58.1101609,25.9729736%2065.0982993,25.8953017%2070.6636528,22.5389454%20C76.9251416,26.1589087%2083.1644474,26.6306437%2089.3815702,23.9541503%20C94.3476152,26.8551486%20100.059595,27.9853608%20106.517509,27.3447869%20C105.549313,31.0257953%20104.78819,34.4219965%20104.234139,37.5333904%20C81.4253389,37.5754718%2069.9035445,37.5822249%2069.6687554,37.5536499%20C69.4339664,37.5250748%2062.9957895,35.2408431%2050.3542249,30.7009547%20L49.6992377,22.7719612%20Z'%20id='路径-3'%20stroke='%235B1602'%20stroke-width='7.69374265'%20fill='%23FFFFFF'%20stroke-linejoin='round'%20transform='translate(78.1084,%2030.055)%20rotate(8)%20translate(-78.1084,%20-30.055)'%3e%3c/path%3e%3cpolyline%20id='吸管'%20stroke='%2300DBFF'%20stroke-width='7.69374265'%20stroke-linecap='round'%20stroke-linejoin='round'%20transform='translate(94.5873,%2044.3095)%20rotate(8)%20translate(-94.5873,%20-44.3095)'%20points='69.7189682%2082.7157791%2094.9436643%2013.1617143%20119.455672%205.90320063'%3e%3c/polyline%3e%3cpath%20d='M28.5919021,37.2052044%20C35.1462633,34.1433307%2041.4986116,29.0645287%2047.648947,21.9687984%20C52.2899688,28.8461867%2058.8106823,31.3991807%2067.2110875,29.6277804%20C71.408497,35.0913641%2080.5237233,36.438679%2086.7804548,32.5606249%20C94.0739201,34.0827033%2099.969508,32.0763696%20104.467218,26.5416241%20C107.701536,33.3599985%20112.68013,39.7771777%20119.403001,45.7931616%20L122.450975,53.5823748%20L114.651272,66.2383977%20L48.9468343,66.658491%20L20.2297176,54.2394236%20L28.5919021,37.2052044%20Z'%20id='路径-2'%20stroke='%235B1602'%20stroke-width='7.69374265'%20fill='%23FFFFFF'%20stroke-linejoin='round'%20transform='translate(71.3403,%2044.3136)%20rotate(8)%20translate(-71.3403,%20-44.3136)'%3e%3c/path%3e%3cpath%20d='M113.7015,44.8147987%20C116.157193,49.6714382%20117.446928,55.630252%20117.446928,62.8127672%20C117.446928,77.2276123%20111.577947,90.2770579%20102.091381,99.7232825%20C92.5988687,109.175428%2079.4847008,115.020307%2065,115.020307%20C50.5152992,115.020307%2037.4011313,109.175428%2027.9086192,99.7232825%20C18.422053,90.2770579%2012.5530717,77.2276123%2012.5530717,62.8127672%20C12.5530717,56.4626483%2013.8289507,51.0821645%2016.1681126,46.5747014%20C17.316091,48.0863106%2018.6633413,49.4215856%2020.2147206,50.5328434%20C23.2818168,52.7298139%2027.1658894,54.0895553%2032.0119555,54.0895553%20C37.5035054,54.0895553%2042.5852688,52.6067922%2046.7606738,50.1072637%20C51.767509,52.6154402%2057.7465462,54.0895553%2064.1766873,54.0895553%20C70.5217766,54.0895553%2076.4277658,52.6542274%2081.3936205,50.2068646%20C85.4809466,52.6541473%2090.3819582,54.0895553%2095.6570631,54.0895553%20C101.044745,54.0895553%20105.465622,52.4873581%20108.935094,49.8692709%20C110.797344,48.4640036%20112.390496,46.7556533%20113.7015,44.8147987%20Z'%20id='形状结合'%20stroke='%235B1602'%20stroke-width='7.69374265'%20fill='%238C3201'%20transform='translate(65,%2077.9373)%20rotate(15)%20translate(-65,%20-77.9373)'%3e%3c/path%3e%3cg%20id='线'%20transform='translate(60.1411,%2097.2296)%20rotate(15)%20translate(-60.1411,%20-97.2296)translate(38.5104,%2076.2266)'%20fill='%235B1602'%3e%3cpath%20d='M41.2225105,-3.01584387%20C43.3464343,-2.96351324%2045.0257924,-1.19931046%2044.9734617,0.92461333%20C44.7662096,9.33627924%2043.0482281,16.8196882%2039.7969064,23.3391624%20C36.6036716,29.7421619%2032.6440639,35.1156647%2027.9160763,39.4350584%20C26.3475323,40.8680484%2023.9143082,40.7581602%2022.4813182,39.1896162%20C21.0483281,37.6210722%2021.1582163,35.1878481%2022.7267604,33.754858%20C26.7326835,30.0951278%2030.1283866,25.4868885%2032.9118625,19.9055277%20C35.6372515,14.4406416%2037.1015188,8.06239408%2037.2820533,0.73510735%20C37.3343839,-1.38881644%2039.0985867,-3.0681745%2041.2225105,-3.01584387%20Z'%20id='路径-5'%20fill-rule='nonzero'%20transform='translate(33.2246,%2018.7124)%20rotate(-7)%20translate(-33.2246,%20-18.7124)'%3e%3c/path%3e%3cpath%20d='M6.42487569,17.8933379%20C7.13185699,15.8898489%209.32912731,14.8388217%2011.3326163,15.545803%20C13.3361053,16.2527843%2014.3871325,18.4500547%2013.6801512,20.4535437%20C12.3896494,24.1106505%2011.1503014,26.9971555%209.93186972,29.1456361%20C8.855525,31.0435724%206.81922579,33.9549835%203.77060698,37.9798302%20C2.4878057,39.6734097%200.0749723254,40.0064113%20-1.61860721,38.72361%20C-3.31218674,37.4408088%20-3.64518832,35.0279754%20-2.36238705,33.3343959%20C0.49243929,29.5653978%202.37716504,26.8706998%203.23942508,25.3502625%20C4.20071135,23.6552106%205.27260735,21.1587099%206.42487569,17.8933379%20Z'%20id='路径-5备份'%20fill-rule='nonzero'%20transform='translate(5.3787,%2027.4149)%20scale(-1,%201)%20rotate(-5)%20translate(-5.3787,%20-27.4149)'%3e%3c/path%3e%3cpath%20d='M17.3200105,31.8134059%20C24.2042447,31.6746843%2030.788371,26.5487636%2037.0723895,16.4356439%20C43.356408,6.32252418%2040.2906703,13.3246347%2027.8751764,37.4419755%20L17.3200105,31.8134059%20Z'%20id='路径-8'%20transform='translate(28.78,%2024.6979)%20rotate(-15)%20translate(-28.78,%20-24.6979)'%3e%3c/path%3e%3cpath%20d='M2.25547257,26.2454347%20C5.78878997,32.5137001%2012.2314539,33.0051199%2021.5834643,27.7196939%20C18.6128112,31.1984141%2014.8144813,34.3358838%2010.1884745,37.1321031%20C6.83289255,33.8641134%204.51390502,31.3598101%203.23151188,29.6191934%20C1.94911874,27.8785768%201.6237723,26.7539905%202.25547257,26.2454347%20Z'%20id='路径-8'%20transform='translate(11.7631,%2031.6888)%20scale(-1,%201)%20rotate(-38)%20translate(-11.7631,%20-31.6888)'%3e%3c/path%3e%3c/g%3e%3cg%20id='花'%20transform='translate(16.0836,%200)'%3e%3cmask%20id='mask-2'%20fill='white'%3e%3cuse%20xlink:href='%23path-1'%3e%3c/use%3e%3c/mask%3e%3cg%20id='蒙版'%3e%3c/g%3e%3cimage%20mask='url(%23mask-2)'%20x='-24.9033127'%20y='-24.2533216'%20width='105.404719'%20height='105.097727'%20xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALYAAAC2CAYAAAB08HcEAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAtqADAAQAAAABAAAAtgAAAAD4KVXeAAA4v0lEQVR4Ae2dC9RmV1nfz3lv38zkMjNMLtwCmQQESbnItVyXAUUBQYI0IlCQVAIVhIKFhatcYqutKFJqFypBRxQKCMvWYlkgFCIWIbWphbJYQC4TApS7SSCQzMz3fe/p7/ff53wzCUkkrFJz5t175rx7n72f/ey9n/3fz3n25ZyvaaqrEqgSqBKoEqgSqBKoEqgSqBKoEqgSqBKoEqgSqBKoEqgSqBKoEqgSqBKoEqgSqBKoEqgSqBKoEqgSqBKoEqgSqBKoEqgSqBKoEqgSqBKoEqgSqBKoEqgSqBKoEqgSqBKoEqgSqBKoEqgSqBKoEqgSqBKo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TCdTfwxL46uXdbcHNO/gm4MMFlO9IaiOoNT2N5wcePdyXFwKI941GwRZTQHNg0lzMUtvjdp7Rfk8bJL4kcc1nmidQzC9Sq4dQqCuRWZ+2DoJeUON9FkC/nYH1W8ec2n7pcAtqCNlUd2MS8AXYq05Yvopz2S9CWe+IsYu0XDv2xJ52sBM6Ab3JJrmTPNI2MGXOX581L9915/83H5i58rJuJ0r54YD3VOqwE3PDl9f3U/6nj93bfuzG6l7jMuirGG5OAtd8uTtpc7N5MV9VfRJq8q6APEtuaswB7MR9ibQ/YZL328edenh38eb41rTvrwSqxr4F8uWPeJ6KprwXIN7NStsOTOkv8Hnu/be5U/MpVjTQ49VVCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJfC8S+L8Vg5EuY3PbmAAAAABJRU5ErkJggg=='%3e%3c/image%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e";function ys({size:e=18,children:t,className:s,title:n,onClick:r,action:o=!1,...i}){const a=c=>{r?.(c)};return l.jsx("i",{style:{width:e,height:e},title:n,onClick:a,className:Ft("inline-flex items-center justify-center rounded-sm p-[2px] transition-all",{"cursor-pointer":o},s),children:l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",style:{width:"100%",height:"100%"},...i,children:t})})}function pa(e){return l.jsx(ys,{...e,viewBox:"0 0 16 16",children:l.jsx("g",{id:"Understand",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",children:l.jsxs("g",{id:"编组",transform:"translate(0.5, 0.5)",stroke:"currentColor",strokeWidth:"1.25",children:[l.jsx("path",{d:"M7.44444444,3 C9.89904333,3 11.8888889,4.95366655 11.8888889,7.36363636 C11.8888889,9.06711551 10.8946979,10.5426108 9.44492275,11.2613085 L9.44444444,12.2727273 C9.44444444,13.3772968 8.54901394,14.2727273 7.44444444,14.2727273 C6.33987494,14.2727273 5.44444444,13.3772968 5.44444444,12.2727273 L5.44396614,11.2613085 C3.99419095,10.5426108 3,9.06711551 3,7.36363636 C3,4.95366655 4.98984556,3 7.44444444,3 Z",id:"形状结合"}),l.jsx("line",{x1:"5.5",y1:"11.2156017",x2:"9.5",y2:"11.2156017",id:"路径-11"}),l.jsx("line",{x1:"7.44444444",y1:"10.6363636",x2:"7.44444444",y2:"8.45454545",id:"路径-12"}),l.jsx("line",{x1:"7.44444444",y1:"0.818181818",x2:"7.44444444",y2:"0.272727273",id:"路径-12备份"}),l.jsx("line",{x1:"12.352383",y1:"2.81770629",x2:"12.3574335",y2:"2.26720124",id:"路径-12备份",transform:"translate(12.3549, 2.5425) rotate(45) translate(-12.3549, -2.5425)"}),l.jsx("line",{x1:"14.3888889",y1:"7.64141414",x2:"14.3888889",y2:"7.08585859",id:"路径-12备份",transform:"translate(14.3889, 7.3636) rotate(90) translate(-14.3889, -7.3636)"}),l.jsx("line",{x1:"12.3574335",y1:"12.4600715",x2:"12.352383",y2:"11.9095664",id:"路径-12备份",transform:"translate(12.3549, 12.1848) rotate(135) translate(-12.3549, -12.1848)"}),l.jsx("line",{x1:"2.53145543",y1:"12.4600715",x2:"2.53650594",y2:"11.9095664",id:"路径-12备份",transform:"translate(2.534, 12.1848) rotate(225) translate(-2.534, -12.1848)"}),l.jsx("line",{x1:"0.5",y1:"7.64141414",x2:"0.5",y2:"7.08585859",id:"路径-12备份",transform:"translate(0.5, 7.3636) rotate(270) translate(-0.5, -7.3636)"}),l.jsx("line",{x1:"2.53650594",y1:"2.81770629",x2:"2.53145543",y2:"2.26720124",id:"路径-12备份",transform:"translate(2.534, 2.5425) rotate(315) translate(-2.534, -2.5425)"}),l.jsx("polyline",{id:"路径-15",transform:"translate(7.4398, 6.7308) rotate(-45) translate(-7.4398, -6.7308)",points:"6.33632897 5.60310185 6.3568375 7.83853192 8.5432888 7.85859111"})]})})})}const ma=({Detail:e,ChunkData:t,getSuggestion:s,loading:n})=>{const{t:r}=ce.useTranslation(),[o,i]=g.useState(!1),[a,c]=g.useState(null);return g.useEffect(()=>{e?.payload&&(c(e?.payload),e?.payload?.suggestion&&s&&s(e?.payload?.suggestion))},[e?.payload,s]),g.useEffect(()=>{if(t?.message_chunk&&!n)try{const u=t.message_chunk.replace(/^"|"$/g,"").match(/<JSON>([\s\S]*?)<\/JSON>/g);if(u){const p=u[u.length-1].replace(/<JSON>|<\/JSON>/g,""),m=JSON.parse(p);m?.suggestion&&s&&s(m?.suggestion),c(m)}}catch(d){console.error("Failed to process message chunk in QueryIntent:",d)}},[t?.message_chunk,n,s]),!t&&!e?null:l.jsxs("div",{className:"space-y-2 mb-3 w-full",children:[l.jsxs("button",{onClick:()=>i(d=>!d),className:"inline-flex items-center gap-2 px-2 py-1 rounded-xl transition-colors border border-[#E6E6E6] dark:border-[#272626]",children:[n?l.jsxs(l.Fragment,{children:[l.jsx(R.Loader,{className:"w-4 h-4 animate-spin text-[#1990FF]"}),l.jsx("span",{className:"text-xs text-[#999999] italic",children:r(`assistant.message.steps.${t?.chunk_type||e.type}`)})]}):l.jsxs(l.Fragment,{children:[l.jsx(pa,{className:"w-4 h-4 text-[#38C200]"}),l.jsx("span",{className:"text-xs text-[#999999]",children:r(`assistant.message.steps.${t?.chunk_type||e.type}`)})]}),o?l.jsx(R.ChevronUp,{className:"w-4 h-4"}):l.jsx(R.ChevronDown,{className:"w-4 h-4"})]}),o&&l.jsx("div",{className:"pl-2 pt-1 border-l-2 border-[#e5e5e5] dark:border-[#4e4e56]",children:l.jsx("div",{className:"text-[#8b8b8b] dark:text-[#a6a6a6] space-y-2",children:l.jsxs("div",{className:"mb-4 space-y-2 text-xs",children:[a?.keyword?l.jsxs("div",{className:"flex gap-1",children:[l.jsxs("span",{className:"text-[#999999]",children:["- ",r("assistant.message.steps.keywords"),":"]}),l.jsx("div",{className:"flex flex-wrap gap-1",children:a?.keyword?.map((d,u)=>l.jsxs("span",{className:"text-[#333333] dark:text-[#D8D8D8]",children:[d,u<2&&"、"]},d+u))})]}):null,a?.category?l.jsxs("div",{className:"flex items-center gap-1",children:[l.jsxs("span",{className:"text-[#999999]",children:["- ",r("assistant.message.steps.questionType"),":"]}),l.jsx("span",{className:"text-[#333333] dark:text-[#D8D8D8]",children:a?.category})]}):null,a?.intent?l.jsxs("div",{className:"flex items-start gap-1",children:[l.jsxs("span",{className:"text-[#999999]",children:["- ",r("assistant.message.steps.userIntent"),":"]}),l.jsx("div",{className:"flex-1 text-[#333333] dark:text-[#D8D8D8]",children:a?.intent})]}):null,a?.query?l.jsxs("div",{className:"flex items-start gap-1",children:[l.jsxs("span",{className:"text-[#999999]",children:["- ",r("assistant.message.steps.relatedQuestions"),":"]}),l.jsx("div",{className:"flex-1 flex flex-col text-[#333333] dark:text-[#D8D8D8]",children:a?.query?.map((d,u)=>l.jsxs("span",{children:["- ",d]},d+u))})]}):null]})})})]})},ga=({Detail:e,ChunkData:t,loading:s})=>{const{t:n}=ce.useTranslation(),[r,o]=g.useState(!1),[i,a]=g.useState("");return g.useEffect(()=>{e?.description&&a(e?.description)},[e?.description]),g.useEffect(()=>{t?.message_chunk&&a(t?.message_chunk)},[t?.message_chunk,i]),!t&&!e?null:l.jsxs("div",{className:"space-y-2 mb-3 w-full",children:[l.jsxs("button",{onClick:()=>o(c=>!c),className:"inline-flex items-center gap-2 px-2 py-1 rounded-xl transition-colors border border-[#E6E6E6] dark:border-[#272626]",children:[s?l.jsxs(l.Fragment,{children:[l.jsx(R.Loader,{className:"w-4 h-4 animate-spin text-[#1990FF]"}),l.jsx("span",{className:"text-xs text-[#999999] italic",children:n(`assistant.message.steps.${t?.chunk_type}`)})]}):l.jsxs(l.Fragment,{children:[l.jsx(R.Hammer,{className:"w-4 h-4 text-[#38C200]"}),l.jsx("span",{className:"text-xs text-[#999999]",children:n(`assistant.message.steps.${t?.chunk_type}`)})]}),r?l.jsx(R.ChevronUp,{className:"w-4 h-4"}):l.jsx(R.ChevronDown,{className:"w-4 h-4"})]}),r&&l.jsx("div",{className:"pl-2 pt-1 border-l-2 border-[#e5e5e5] dark:border-[#4e4e56]",children:l.jsx("div",{className:"text-[#8b8b8b] dark:text-[#a6a6a6] space-y-2 cm-markdown",children:l.jsx(bn,{content:i||""})})})]})},Ai=async e=>{navigator.clipboard?await navigator.clipboard.writeText(e):console.log("Clipboard not available",e)},ya=e=>{window.open(e,"_blank")};function xa(e){return l.jsx(ys,{...e,viewBox:"0 0 16 16",children:l.jsxs("g",{id:"Retrieve",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",children:[l.jsx("line",{x1:"10.8977456",y1:"14.5",x2:"14",y2:"10.9204757",id:"路径",stroke:"currentColor",strokeWidth:"1.25",transform:"translate(12.4489, 12.7102) scale(-1, 1) translate(-12.4489, -12.7102)"}),l.jsx("circle",{id:"椭圆形",stroke:"currentColor",strokeWidth:"1.25",transform:"translate(7.5, 7) scale(-1, 1) translate(-7.5, -7)",cx:"7.5",cy:"7",r:"5"})]})})}const va=({Detail:e,ChunkData:t,loading:s,formatUrl:n})=>{const{t:r}=ce.useTranslation(),[o,i]=g.useState(!1),[a,c]=g.useState(0),[d,u]=g.useState([]);g.useEffect(()=>{e?.payload&&(u(e?.payload),c(e?.payload.length))},[e?.payload]),g.useEffect(()=>{if(t?.message_chunk&&!s)try{const p=t.message_chunk.match(/<Payload total=(\d+)>/);p&&c(Number(p[1]));const m=t.message_chunk.match(/\[([\s\S]*)\]/);if(m){const x=JSON.parse(m[0]);u(x)}}catch(p){console.error("Failed to parse fetch source data:",p)}},[t?.message_chunk,s]);const h=p=>()=>{const m=n&&n(p)||p.url;m&&ya(m)};return!t&&!e?null:l.jsxs("div",{className:`mt-2 mb-2 max-w-full w-full md:w-[610px] ${o?"rounded-lg overflow-hidden border border-[#E6E6E6] dark:border-[#272626]":""}`,children:[l.jsxs("button",{onClick:()=>i(p=>!p),className:`inline-flex justify-between items-center gap-2 px-2 py-1 rounded-xl transition-colors whitespace-nowrap ${o?"w-full":"border border-[#E6E6E6] dark:border-[#272626]"}`,children:[l.jsxs("div",{className:"flex-1 min-w-0 flex items-center gap-2",children:[l.jsx(xa,{className:"w-4 h-4 text-[#38C200] shrink-0"}),l.jsx("span",{className:"text-xs text-[#999999]",children:r(`assistant.message.steps.${t?.chunk_type||e.type}`,{count:Number(a)})})]}),o?l.jsx(R.ChevronUp,{className:"w-4 h-4 text-[#999999]"}):l.jsx(R.ChevronDown,{className:"w-4 h-4 text-[#999999]"})]}),o&&l.jsx(l.Fragment,{children:d?.map((p,m)=>l.jsx("div",{onClick:h(p),className:"group flex items-center p-2 hover:bg-[#F7F7F7] dark:hover:bg-[#2C2C2C] border-b border-[#E6E6E6] dark:border-[#272626] last:border-b-0 cursor-pointer transition-colors",children:l.jsxs("div",{className:"w-full flex items-center gap-2",children:[l.jsxs("div",{className:"w-[75%] mobile:w-full flex items-center gap-1",children:[l.jsx(R.Globe,{className:"w-3 h-3 shrink-0"}),l.jsx("div",{className:"text-xs text-[#333333] dark:text-[#D8D8D8] truncate font-normal group-hover:text-[#0072FF] dark:group-hover:text-[#0072FF]",children:p.title||p.category})]}),l.jsxs("div",{className:"flex-1 mobile:hidden flex items-center justify-end gap-2",children:[l.jsx("span",{className:"text-xs text-[#999999] dark:text-[#999999] truncate",children:p.source?.name||p?.category}),l.jsx(R.SquareArrowOutUpRight,{className:"w-3 h-3 text-[#999999] dark:text-[#999999] shrink-0"})]})]})},m))})]})};function ba(e){return l.jsx(ys,{...e,viewBox:"0 0 16 16",children:l.jsx("g",{id:"selection",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:l.jsxs("g",{id:"编组",transform:"translate(1.4813, 1)",stroke:"currentColor",strokeWidth:"1.25",children:[l.jsx("line",{x1:"6.7986538",y1:"2.8",x2:"6.7986538",y2:"2.07241631e-17",id:"路径",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("circle",{id:"椭圆形",fill:"#000000",cx:"6.7986538",cy:"6.72",r:"1"}),l.jsx("line",{x1:"2.17440858e-17",y1:"13.5186538",x2:"4.62042688",y2:"8.89822692",id:"路径",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("line",{x1:"10.1008425",y1:"4.16781133",x2:"10.1008425",y2:"2.66781133",id:"路径",strokeLinecap:"round",strokeLinejoin:"round",transform:"translate(10.1008, 3.4178) rotate(45) translate(-10.1008, -3.4178)"}),l.jsx("line",{x1:"12.1186538",y1:"8.12",x2:"12.1186538",y2:"5.32",id:"路径",strokeLinecap:"round",strokeLinejoin:"round",transform:"translate(12.1187, 6.72) rotate(90) translate(-12.1187, -6.72)"}),l.jsx("line",{x1:"10.1008425",y1:"10.7721887",x2:"10.1008425",y2:"9.27218867",id:"路径",strokeLinecap:"round",strokeLinejoin:"round",transform:"translate(10.1008, 10.0222) rotate(135) translate(-10.1008, -10.0222)"}),l.jsx("line",{x1:"6.7986538",y1:"13.44",x2:"6.7986538",y2:"10.64",id:"路径",strokeLinecap:"round",strokeLinejoin:"round",transform:"translate(6.7987, 12.04) rotate(180) translate(-6.7987, -12.04)"}),l.jsx("line",{x1:"1.4786538",y1:"8.12",x2:"1.4786538",y2:"5.32",id:"路径",strokeLinecap:"round",strokeLinejoin:"round",transform:"translate(1.4787, 6.72) rotate(270) translate(-1.4787, -6.72)"}),l.jsx("line",{x1:"3.49646513",y1:"4.16781133",x2:"3.49646513",y2:"2.66781133",id:"路径",strokeLinecap:"round",strokeLinejoin:"round",transform:"translate(3.4965, 3.4178) rotate(315) translate(-3.4965, -3.4178)"})]})})})}const wa=({Detail:e,ChunkData:t,loading:s})=>{const{t:n}=ce.useTranslation(),[r,o]=g.useState(!1),[i,a]=g.useState([]);return g.useEffect(()=>{e?.payload&&a(e?.payload)},[e?.payload]),g.useEffect(()=>{if(t?.message_chunk&&!s)try{const d=t.message_chunk.replace(/^"|"$/g,"").match(/<JSON>([\s\S]*?)<\/JSON>/g);if(d)for(let u=d.length-1;u>=0;u--)try{const h=d[u].replace(/<JSON>|<\/JSON>|<think>|<\/think>/g,""),p=JSON.parse(h.trim());if(Array.isArray(p)&&p.every(m=>m.id&&m.title&&m.explain)){a(p);break}}catch{continue}}catch(c){console.error("Failed to parse pick source data:",c)}},[t?.message_chunk,s]),!t&&!e?null:l.jsxs("div",{className:"space-y-2 mb-3 w-full",children:[l.jsxs("button",{onClick:()=>o(c=>!c),className:"inline-flex items-center gap-2 px-2 py-1 rounded-xl transition-colors border border-[#E6E6E6] dark:border-[#272626]",children:[s?l.jsxs(l.Fragment,{children:[l.jsx(R.Loader,{className:"w-4 h-4 animate-spin text-[#1990FF]"}),l.jsx("span",{className:"text-xs text-[#999999] italic",children:n("assistant.message.steps.pick_source_start")})]}):l.jsxs(l.Fragment,{children:[l.jsx(ba,{className:"w-4 h-4 text-[#38C200]"}),l.jsx("span",{className:"text-xs text-[#999999]",children:n(`assistant.message.steps.${t?.chunk_type||e.type}`,{count:i?.length})})]}),r?l.jsx(R.ChevronUp,{className:"w-4 h-4"}):l.jsx(R.ChevronDown,{className:"w-4 h-4"})]}),r&&l.jsx("div",{className:"pl-2 pt-1 border-l-2 border-[#e5e5e5] dark:border-[#4e4e56]",children:l.jsx("div",{className:"text-[#8b8b8b] dark:text-[#a6a6a6] space-y-2",children:l.jsx("div",{className:"mb-4 space-y-3 text-xs",children:i?.map(c=>l.jsx("div",{className:"p-3 rounded-lg border border-[#E6E6E6] dark:border-[#272626] bg-white dark:bg-[#1E1E1E] hover:bg-gray-50 dark:hover:bg-[#2C2C2C] transition-colors",children:l.jsxs("div",{className:"flex flex-col gap-2",children:[l.jsx("div",{className:"text-sm font-medium text-[#333333] dark:text-[#D8D8D8]",children:c.title}),l.jsx("div",{className:"text-xs text-[#666666] dark:text-[#A3A3A3] line-clamp-2",children:c.explain})]})},c.id))})})})]})};function Aa(e){return l.jsx(ys,{...e,viewBox:"0 0 16 16",children:l.jsxs("g",{id:"deading",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[l.jsx("circle",{id:"椭圆形",stroke:"currentColor",strokeWidth:"1.25",cx:"8",cy:"3",r:"1.375"}),l.jsx("circle",{id:"椭圆形备份-2",stroke:"currentColor",strokeWidth:"1.25",cx:"3",cy:"5",r:"1.375"}),l.jsx("circle",{id:"椭圆形备份-4",stroke:"currentColor",strokeWidth:"1.25",cx:"13",cy:"5",r:"1.375"}),l.jsx("circle",{id:"椭圆形备份",stroke:"currentColor",strokeWidth:"1.25",cx:"8",cy:"13",r:"1.375"}),l.jsx("circle",{id:"椭圆形备份-3",stroke:"currentColor",strokeWidth:"1.25",cx:"3",cy:"11",r:"1.375"}),l.jsx("circle",{id:"椭圆形备份-5",stroke:"currentColor",strokeWidth:"1.25",cx:"13",cy:"11",r:"1.375"}),l.jsx("path",{d:"M8.0070039,4.03345364 L8.0070039,8.50590493 L4.1923477,10.2855921",id:"路径-13",stroke:"currentColor",strokeWidth:"1.25"}),l.jsx("line",{x1:"11.7924093",y1:"8.47550067",x2:"8",y2:"10.2754456",id:"路径-13备份",stroke:"currentColor",strokeWidth:"1.25",transform:"translate(9.8962, 9.3755) scale(-1, 1) translate(-9.8962, -9.3755)"}),l.jsx("path",{d:"M4.17568738,4.53038288 L6.65384701,3.54050563 M9.35480875,3.53987819 L11.7283558,4.49062879",id:"形状",stroke:"currentColor",strokeWidth:"1.25"}),l.jsx("line",{x1:"3",y1:"6.06946104",x2:"3",y2:"9.97988046",id:"路径-14",stroke:"currentColor",strokeWidth:"1.25"}),l.jsx("line",{x1:"13",y1:"6.06946104",x2:"13",y2:"9.97988046",id:"路径-14备份",stroke:"currentColor",strokeWidth:"1.25"})]})})}const Ca=({Detail:e,ChunkData:t,loading:s})=>{const{t:n}=ce.useTranslation(),[r,o]=g.useState(!1),[i,a]=g.useState([]),[c,d]=g.useState("");return g.useEffect(()=>{e?.description&&d(e?.description)},[e?.description]),g.useEffect(()=>{if(t?.message_chunk)try{if(t.message_chunk.includes("&")){const u=t.message_chunk.split("&").filter(Boolean);a(u)}else a([t.message_chunk])}catch(u){console.error("Failed to parse query data:",u)}},[t?.message_chunk]),!t&&!e?null:l.jsxs("div",{className:"space-y-2 mb-3 w-full",children:[l.jsxs("button",{onClick:()=>o(u=>!u),className:"inline-flex items-center gap-2 px-2 py-1 rounded-xl transition-colors border border-[#E6E6E6] dark:border-[#272626]",children:[s?l.jsxs(l.Fragment,{children:[l.jsx(R.Loader,{className:"w-4 h-4 animate-spin text-[#1990FF]"}),l.jsx("span",{className:"text-xs text-[#999999] italic",children:n(`assistant.message.steps.${t?.chunk_type||e?.type}`)})]}):l.jsxs(l.Fragment,{children:[l.jsx(Aa,{className:"w-4 h-4 text-[#38C200]"}),l.jsx("span",{className:"text-xs text-[#999999]",children:n(`assistant.message.steps.${t?.chunk_type||e?.type}`,{count:Number(i.length)})})]}),r?l.jsx(R.ChevronUp,{className:"w-4 h-4"}):l.jsx(R.ChevronDown,{className:"w-4 h-4"})]}),r&&l.jsx("div",{className:"pl-2 pt-1 border-l-2 border-[#e5e5e5] dark:border-[#4e4e56]",children:l.jsx("div",{className:"text-[#8b8b8b] dark:text-[#a6a6a6] space-y-2",children:l.jsxs("div",{className:"mb-4 space-y-3 text-xs",children:[i?.map(u=>l.jsx("div",{className:"flex flex-col gap-2",children:l.jsxs("div",{className:"text-xs text-[#999999] dark:text-[#808080]",children:["- ",u]})},u)),c?.split(`
32
+ `).map((u,h)=>u.trim()&&l.jsx("p",{className:"text-sm",children:u},h))]})})})]})},ka=({Detail:e,ChunkData:t,loading:s})=>{const{t:n}=ce.useTranslation(),[r,o]=g.useState(!0),[i,a]=g.useState("");return g.useEffect(()=>{e?.description&&a(e?.description)},[e?.description]),g.useEffect(()=>{t?.message_chunk&&a(t?.message_chunk)},[t?.message_chunk,i]),!t&&!e?null:l.jsxs("div",{className:"space-y-2 mb-3 w-full",children:[l.jsxs("button",{onClick:()=>o(c=>!c),className:"inline-flex items-center gap-2 px-2 py-1 rounded-xl transition-colors border border-[#E6E6E6] dark:border-[#272626]",children:[s?l.jsxs(l.Fragment,{children:[l.jsx(R.Loader,{className:"w-4 h-4 animate-spin text-[#1990FF]"}),l.jsx("span",{className:"text-xs text-[#999999] italic",children:n(`assistant.message.steps.${t?.chunk_type}`)})]}):l.jsxs(l.Fragment,{children:[l.jsx(R.Brain,{className:"w-4 h-4 text-[#38C200]"}),l.jsx("span",{className:"text-xs text-[#999999]",children:n("assistant.message.steps.thoughtTime")})]}),r?l.jsx(R.ChevronUp,{className:"w-4 h-4"}):l.jsx(R.ChevronDown,{className:"w-4 h-4"})]}),r&&l.jsx("div",{className:"pl-2 pt-1 border-l-2 border-[#e5e5e5] dark:border-[#4e4e56]",children:l.jsx("div",{className:"text-[#8b8b8b] dark:text-[#a6a6a6] space-y-2",children:i?.split(`
33
+ `).map((c,d)=>c.trim()&&l.jsx("p",{className:"text-sm",children:c},d))})})]})},Ta=["timedout","error"],Sa=({id:e,content:t,question:s,actionClassName:n,actionIconSize:r,copyButtonId:o,onResend:i})=>{const[a,c]=g.useState(!1),[d,u]=g.useState(!1),[h,p]=g.useState(!1),[m,x]=g.useState(!1),[w,v]=g.useState(!1),y=Ta.includes(e),C=async()=>{try{await Ai(t),c(!0);const j=setTimeout(()=>{c(!1),clearTimeout(j)},2e3)}catch(j){console.error("copy error:",j)}},A=()=>{u(!d),p(!1)},N=()=>{p(!h),u(!1)},P=async()=>{if("speechSynthesis"in window){if(m){window.speechSynthesis.cancel(),x(!1);return}const j=new SpeechSynthesisUtterance(t);j.lang="zh-CN",j.onend=()=>{x(!1)},x(!0),window.speechSynthesis.speak(j)}},D=()=>{if(i){v(!0),i();const j=setTimeout(()=>{v(!1),clearTimeout(j)},1e3)}};return l.jsxs("div",{className:Ft("flex items-center gap-2 mt-2",n),children:[!y&&l.jsx("button",{id:o,onClick:C,className:"p-1 hover:bg-black/5 dark:hover:bg-white/5 rounded-lg transition-colors",children:a?l.jsx(R.Check,{className:"w-4 h-4 text-[#38C200] dark:text-[#38C200]",style:{width:r,height:r}}):l.jsx(R.Copy,{className:"w-4 h-4 text-[#666666] dark:text-[#A3A3A3]",style:{width:r,height:r}})}),!y&&l.jsx("button",{onClick:A,className:`p-1 hover:bg-black/5 dark:hover:bg-white/5 rounded-lg transition-colors ${d?"animate-shake":""}`,children:l.jsx(R.ThumbsUp,{className:`w-4 h-4 ${d?"text-[#1990FF] dark:text-[#1990FF]":"text-[#666666] dark:text-[#A3A3A3]"}`,style:{width:r,height:r}})}),!y&&l.jsx("button",{onClick:N,className:`p-1 hover:bg-black/5 dark:hover:bg-white/5 rounded-lg transition-colors ${h?"animate-shake":""}`,children:l.jsx(R.ThumbsDown,{className:`w-4 h-4 ${h?"text-[#1990FF] dark:text-[#1990FF]":"text-[#666666] dark:text-[#A3A3A3]"}`,style:{width:r,height:r}})}),!y&&l.jsx(l.Fragment,{children:l.jsx("button",{onClick:P,className:"p-1 hover:bg-black/5 dark:hover:bg-white/5 rounded-lg transition-colors",children:l.jsx(R.Volume2,{className:`w-4 h-4 ${m?"text-[#1990FF] dark:text-[#1990FF]":"text-[#666666] dark:text-[#A3A3A3]"}`,style:{width:r,height:r}})})}),s&&l.jsx("button",{onClick:D,className:`p-1 hover:bg-black/5 dark:hover:bg-white/5 rounded-lg transition-colors ${w?"animate-spin":""}`,children:l.jsx(R.RotateCcw,{className:`w-4 h-4 ${w?"text-[#1990FF] dark:text-[#1990FF]":"text-[#666666] dark:text-[#A3A3A3]"}`,style:{width:r,height:r}})})]})};function Ea({suggestions:e,onSelect:t}){return!e||e.length===0?null:l.jsx("div",{className:"mt-4 flex flex-col gap-2",children:e.map((s,n)=>l.jsxs("button",{onClick:()=>t(s),className:"text-left inline-flex items-center px-3 py-1.5 rounded-full bg-[#F5F5F5] dark:bg-[#2A2A2A] border border-[#E4E5EF] dark:border-[#3A3A3A] text-sm text-[#333333] dark:text-white hover:bg-[#EDEDED] dark:hover:bg-[#3A3A3A] transition-colors w-fit max-w-full wrap-break-word whitespace-pre-wrap",children:[l.jsx("span",{className:"break-all",children:s}),l.jsx(R.MoveRight,{className:"w-3 h-3 ml-1.5 shrink-0"})]},n))})}const Pa=({textToCopy:e})=>{const[t,s]=g.useState(!1),n=async()=>{try{await Ai(e),s(!0);const r=setTimeout(()=>{s(!1),clearTimeout(r)},2e3)}catch(r){console.error("copy error:",r)}};return l.jsx("button",{className:"p-1 bg-gray-200 dark:bg-gray-700 rounded",onClick:n,children:t?l.jsx(R.Check,{className:"w-4 h-4 text-[#38C200] dark:text-[#38C200]"}):l.jsx(R.Copy,{className:"w-4 h-4 text-gray-600 dark:text-gray-300"})})},ja=e=>{const{message:t,attachments:s}=e,[n,r]=g.useState(!1),[o,i]=g.useState([]),a=c=>{if(typeof window<"u"&&typeof document<"u"){const d=window.getSelection(),u=document.createRange();if(c.currentTarget&&d&&u)try{u.selectNodeContents(c.currentTarget),d.removeAllRanges(),d.addRange(u)}catch(h){console.error("Selection failed:",h)}}};return ia.useAsyncEffect(async()=>{try{if(s.length===0)return;i({}?.hits?.hits)}catch(c){console.error("Get attachment failed:",String(c))}},[s]),l.jsxs(l.Fragment,{children:[t&&l.jsxs("div",{className:"flex gap-1 items-center justify-end",onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),children:[l.jsx("div",{className:Ft("size-6 transition",{"opacity-0":!n}),children:l.jsx(Pa,{textToCopy:t})}),l.jsx("div",{className:"max-w-[85%] overflow-auto text-left px-3 py-2 bg-white dark:bg-[#202126]! rounded-xl border border-black/12 dark:border-black/15 font-normal text-sm text-[#333333] dark:text-white cursor-pointer user-select-text whitespace-pre-wrap",onDoubleClick:a,children:t})]}),o&&o.length>0&&l.jsx("div",{className:Ft("w-full",{"mt-3":t}),children:l.jsx(oa.Attachments,{data:o.map(c=>({id:c._source.id,filename:c._source.name,extname:c._source.icon,size:c._source.size,status:"uploaded"})),className:"text-left"})})]})},Ra=({name:e,className:t,style:s,...n})=>l.jsx("svg",{className:`icon dark:drop-shadow-[0_0_6px_rgb(255,255,255)] ${t||""}`,style:s,...n,children:l.jsx("use",{xlinkHref:`#${e}`})});function Na(){const[e,t]=g.useState(),[s,n]=g.useState(),[r,o]=g.useState(),[i,a]=g.useState(),[c,d]=g.useState(),[u,h]=g.useState(),[p,m]=g.useState(),x={deal_query_intent:g.useCallback(v=>{t(y=>y?{...y,message_chunk:(y.message_chunk||"")+(v.message_chunk||"")}:v)},[]),deal_tools:g.useCallback(v=>{n(y=>y?{...y,message_chunk:(y.message_chunk||"")+(v.message_chunk||"")}:v)},[]),deal_fetch_source:g.useCallback(v=>{o(y=>y?{...y,message_chunk:(y.message_chunk||"")+(v.message_chunk||"")}:v)},[]),deal_pick_source:g.useCallback(v=>{a(y=>y?{...y,message_chunk:(y.message_chunk||"")+(v.message_chunk||"")}:v)},[]),deal_deep_read:g.useCallback(v=>{d(y=>y?{...y,message_chunk:(y.message_chunk||"")+"&"+(v.message_chunk||"")}:v)},[]),deal_think:g.useCallback(v=>{h(y=>y?{...y,message_chunk:(y.message_chunk||"")+(v.message_chunk||"")}:v)},[]),deal_response:g.useCallback(v=>{m(y=>y?{...y,message_chunk:(y.message_chunk||"")+(v.message_chunk||"")}:v)},[])};return{data:{query_intent:e,tools:s,fetch_source:r,pick_source:i,deep_read:c,think:u,response:p},handlers:x,clearAllChunkData:()=>new Promise(v=>{t(void 0),n(void 0),o(void 0),a(void 0),d(void 0),h(void 0),m(void 0),setTimeout(v,0)})}}const wn=g.createContext({});function An(e){const t=g.useRef(null);return t.current===null&&(t.current=e()),t.current}const Cn=typeof window<"u",Ci=Cn?g.useLayoutEffect:g.useEffect,xs=g.createContext(null);function kn(e,t){e.indexOf(t)===-1&&e.push(t)}function Tn(e,t){const s=e.indexOf(t);s>-1&&e.splice(s,1)}const Ce=(e,t,s)=>s>t?t:s<e?e:s;function Hs(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let dt=()=>{},Ee=()=>{};typeof process<"u"&&process.env?.NODE_ENV!=="production"&&(dt=(e,t,s)=>{!e&&typeof console<"u"&&console.warn(Hs(t,s))},Ee=(e,t,s)=>{if(!e)throw new Error(Hs(t,s))});const Pe={},ki=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Ti(e){return typeof e=="object"&&e!==null}const Si=e=>/^0[^.\s]+$/u.test(e);function Sn(e){let t;return()=>(t===void 0&&(t=e()),t)}const me=e=>e,Va=(e,t)=>s=>t(e(s)),Wt=(...e)=>e.reduce(Va),Lt=(e,t,s)=>{const n=t-e;return n===0?1:(s-e)/n};class En{constructor(){this.subscriptions=[]}add(t){return kn(this.subscriptions,t),()=>Tn(this.subscriptions,t)}notify(t,s,n){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,s,n);else for(let o=0;o<r;o++){const i=this.subscriptions[o];i&&i(t,s,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const we=e=>e*1e3,pe=e=>e/1e3;function Ei(e,t){return t?e*(1e3/t):0}const rr=new Set;function Pn(e,t,s){e||rr.has(t)||(console.warn(Hs(t,s)),rr.add(t))}const Pi=(e,t,s)=>(((1-3*s+3*t)*e+(3*s-6*t))*e+3*t)*e,Ma=1e-7,Da=12;function Fa(e,t,s,n,r){let o,i,a=0;do i=t+(s-t)/2,o=Pi(i,n,r)-e,o>0?s=i:t=i;while(Math.abs(o)>Ma&&++a<Da);return i}function qt(e,t,s,n){if(e===t&&s===n)return me;const r=o=>Fa(o,0,1,e,s);return o=>o===0||o===1?o:Pi(r(o),t,n)}const ji=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ri=e=>t=>1-e(1-t),Ni=qt(.33,1.53,.69,.99),jn=Ri(Ni),Vi=ji(jn),Mi=e=>(e*=2)<1?.5*jn(e):.5*(2-Math.pow(2,-10*(e-1))),Rn=e=>1-Math.sin(Math.acos(e)),Di=Ri(Rn),Fi=ji(Rn),La=qt(.42,0,1,1),Ba=qt(0,0,.58,1),Li=qt(.42,0,.58,1),Oa=e=>Array.isArray(e)&&typeof e[0]!="number",Bi=e=>Array.isArray(e)&&typeof e[0]=="number",ir={linear:me,easeIn:La,easeInOut:Li,easeOut:Ba,circIn:Rn,circInOut:Fi,circOut:Di,backIn:jn,backInOut:Vi,backOut:Ni,anticipate:Mi},Ia=e=>typeof e=="string",or=e=>{if(Bi(e)){Ee(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,s,n,r]=e;return qt(t,s,n,r)}else if(Ia(e))return Ee(ir[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),ir[e];return e},ss=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Ua(e,t){let s=new Set,n=new Set,r=!1,o=!1;const i=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function c(u){i.has(u)&&(d.schedule(u),e()),u(a)}const d={schedule:(u,h=!1,p=!1)=>{const x=p&&r?s:n;return h&&i.add(u),x.has(u)||x.add(u),u},cancel:u=>{n.delete(u),i.delete(u)},process:u=>{if(a=u,r){o=!0;return}r=!0,[s,n]=[n,s],s.forEach(c),s.clear(),r=!1,o&&(o=!1,d.process(u))}};return d}const Wa=40;function Oi(e,t){let s=!1,n=!0;const r={delta:0,timestamp:0,isProcessing:!1},o=()=>s=!0,i=ss.reduce((A,N)=>(A[N]=Ua(o),A),{}),{setup:a,read:c,resolveKeyframes:d,preUpdate:u,update:h,preRender:p,render:m,postRender:x}=i,w=()=>{const A=Pe.useManualTiming?r.timestamp:performance.now();s=!1,Pe.useManualTiming||(r.delta=n?1e3/60:Math.max(Math.min(A-r.timestamp,Wa),1)),r.timestamp=A,r.isProcessing=!0,a.process(r),c.process(r),d.process(r),u.process(r),h.process(r),p.process(r),m.process(r),x.process(r),r.isProcessing=!1,s&&t&&(n=!1,e(w))},v=()=>{s=!0,n=!0,r.isProcessing||e(w)};return{schedule:ss.reduce((A,N)=>{const P=i[N];return A[N]=(D,j=!1,E=!1)=>(s||v(),P.schedule(D,j,E)),A},{}),cancel:A=>{for(let N=0;N<ss.length;N++)i[ss[N]].cancel(A)},state:r,steps:i}}const{schedule:W,cancel:De,state:ee,steps:Ds}=Oi(typeof requestAnimationFrame<"u"?requestAnimationFrame:me,!0);let os;function qa(){os=void 0}const se={now:()=>(os===void 0&&se.set(ee.isProcessing||Pe.useManualTiming?ee.timestamp:performance.now()),os),set:e=>{os=e,queueMicrotask(qa)}},Ii=e=>t=>typeof t=="string"&&t.startsWith(e),Ui=Ii("--"),_a=Ii("var(--"),Nn=e=>_a(e)?Ka.test(e.split("/*")[0].trim()):!1,Ka=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ar(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const ht={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Bt={...ht,transform:e=>Ce(0,1,e)},ns={...ht,default:1},Vt=e=>Math.round(e*1e5)/1e5,Vn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ya(e){return e==null}const za=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Mn=(e,t)=>s=>!!(typeof s=="string"&&za.test(s)&&s.startsWith(e)||t&&!Ya(s)&&Object.prototype.hasOwnProperty.call(s,t)),Wi=(e,t,s)=>n=>{if(typeof n!="string")return n;const[r,o,i,a]=n.match(Vn);return{[e]:parseFloat(r),[t]:parseFloat(o),[s]:parseFloat(i),alpha:a!==void 0?parseFloat(a):1}},Ga=e=>Ce(0,255,e),Fs={...ht,transform:e=>Math.round(Ga(e))},Ye={test:Mn("rgb","red"),parse:Wi("red","green","blue"),transform:({red:e,green:t,blue:s,alpha:n=1})=>"rgba("+Fs.transform(e)+", "+Fs.transform(t)+", "+Fs.transform(s)+", "+Vt(Bt.transform(n))+")"};function Ja(e){let t="",s="",n="",r="";return e.length>5?(t=e.substring(1,3),s=e.substring(3,5),n=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),s=e.substring(2,3),n=e.substring(3,4),r=e.substring(4,5),t+=t,s+=s,n+=n,r+=r),{red:parseInt(t,16),green:parseInt(s,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}}const Xs={test:Mn("#"),parse:Ja,transform:Ye.transform},_t=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ve=_t("deg"),Ae=_t("%"),S=_t("px"),Qa=_t("vh"),Ha=_t("vw"),lr={...Ae,parse:e=>Ae.parse(e)/100,transform:e=>Ae.transform(e*100)},nt={test:Mn("hsl","hue"),parse:Wi("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:s,alpha:n=1})=>"hsla("+Math.round(e)+", "+Ae.transform(Vt(t))+", "+Ae.transform(Vt(s))+", "+Vt(Bt.transform(n))+")"},Q={test:e=>Ye.test(e)||Xs.test(e)||nt.test(e),parse:e=>Ye.test(e)?Ye.parse(e):nt.test(e)?nt.parse(e):Xs.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ye.transform(e):nt.transform(e),getAnimatableNone:e=>{const t=Q.parse(e);return t.alpha=0,Q.transform(t)}},Xa=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Za(e){return isNaN(e)&&typeof e=="string"&&(e.match(Vn)?.length||0)+(e.match(Xa)?.length||0)>0}const qi="number",_i="color",$a="var",el="var(",cr="${}",tl=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ot(e){const t=e.toString(),s=[],n={color:[],number:[],var:[]},r=[];let o=0;const a=t.replace(tl,c=>(Q.test(c)?(n.color.push(o),r.push(_i),s.push(Q.parse(c))):c.startsWith(el)?(n.var.push(o),r.push($a),s.push(c)):(n.number.push(o),r.push(qi),s.push(parseFloat(c))),++o,cr)).split(cr);return{values:s,split:a,indexes:n,types:r}}function Ki(e){return Ot(e).values}function Yi(e){const{split:t,types:s}=Ot(e),n=t.length;return r=>{let o="";for(let i=0;i<n;i++)if(o+=t[i],r[i]!==void 0){const a=s[i];a===qi?o+=Vt(r[i]):a===_i?o+=Q.transform(r[i]):o+=r[i]}return o}}const sl=e=>typeof e=="number"?0:Q.test(e)?Q.getAnimatableNone(e):e;function nl(e){const t=Ki(e);return Yi(e)(t.map(sl))}const Fe={test:Za,parse:Ki,createTransformer:Yi,getAnimatableNone:nl};function Ls(e,t,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?e+(t-e)*6*s:s<1/2?t:s<2/3?e+(t-e)*(2/3-s)*6:e}function rl({hue:e,saturation:t,lightness:s,alpha:n}){e/=360,t/=100,s/=100;let r=0,o=0,i=0;if(!t)r=o=i=s;else{const a=s<.5?s*(1+t):s+t-s*t,c=2*s-a;r=Ls(c,a,e+1/3),o=Ls(c,a,e),i=Ls(c,a,e-1/3)}return{red:Math.round(r*255),green:Math.round(o*255),blue:Math.round(i*255),alpha:n}}function us(e,t){return s=>s>0?t:e}const z=(e,t,s)=>e+(t-e)*s,Bs=(e,t,s)=>{const n=e*e,r=s*(t*t-n)+n;return r<0?0:Math.sqrt(r)},il=[Xs,Ye,nt],ol=e=>il.find(t=>t.test(e));function ur(e){const t=ol(e);if(dt(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let s=t.parse(e);return t===nt&&(s=rl(s)),s}const dr=(e,t)=>{const s=ur(e),n=ur(t);if(!s||!n)return us(e,t);const r={...s};return o=>(r.red=Bs(s.red,n.red,o),r.green=Bs(s.green,n.green,o),r.blue=Bs(s.blue,n.blue,o),r.alpha=z(s.alpha,n.alpha,o),Ye.transform(r))},Zs=new Set(["none","hidden"]);function al(e,t){return Zs.has(e)?s=>s<=0?e:t:s=>s>=1?t:e}function ll(e,t){return s=>z(e,t,s)}function Dn(e){return typeof e=="number"?ll:typeof e=="string"?Nn(e)?us:Q.test(e)?dr:dl:Array.isArray(e)?zi:typeof e=="object"?Q.test(e)?dr:cl:us}function zi(e,t){const s=[...e],n=s.length,r=e.map((o,i)=>Dn(o)(o,t[i]));return o=>{for(let i=0;i<n;i++)s[i]=r[i](o);return s}}function cl(e,t){const s={...e,...t},n={};for(const r in s)e[r]!==void 0&&t[r]!==void 0&&(n[r]=Dn(e[r])(e[r],t[r]));return r=>{for(const o in n)s[o]=n[o](r);return s}}function ul(e,t){const s=[],n={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){const o=t.types[r],i=e.indexes[o][n[o]],a=e.values[i]??0;s[r]=a,n[o]++}return s}const dl=(e,t)=>{const s=Fe.createTransformer(t),n=Ot(e),r=Ot(t);return n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length?Zs.has(e)&&!r.values.length||Zs.has(t)&&!n.values.length?al(e,t):Wt(zi(ul(n,r),r.values),s):(dt(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),us(e,t))};function Gi(e,t,s){return typeof e=="number"&&typeof t=="number"&&typeof s=="number"?z(e,t,s):Dn(e)(e,t)}const hl=e=>{const t=({timestamp:s})=>e(s);return{start:(s=!0)=>W.update(t,s),stop:()=>De(t),now:()=>ee.isProcessing?ee.timestamp:se.now()}},Ji=(e,t,s=10)=>{let n="";const r=Math.max(Math.round(t/s),2);for(let o=0;o<r;o++)n+=Math.round(e(o/(r-1))*1e4)/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},ds=2e4;function Fn(e){let t=0;const s=50;let n=e.next(t);for(;!n.done&&t<ds;)t+=s,n=e.next(t);return t>=ds?1/0:t}function fl(e,t=100,s){const n=s({...e,keyframes:[0,t]}),r=Math.min(Fn(n),ds);return{type:"keyframes",ease:o=>n.next(r*o).value/t,duration:pe(r)}}const pl=5;function Qi(e,t,s){const n=Math.max(t-pl,0);return Ei(s-e(n),t-n)}const Y={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Os=.001;function ml({duration:e=Y.duration,bounce:t=Y.bounce,velocity:s=Y.velocity,mass:n=Y.mass}){let r,o;dt(e<=we(Y.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let i=1-t;i=Ce(Y.minDamping,Y.maxDamping,i),e=Ce(Y.minDuration,Y.maxDuration,pe(e)),i<1?(r=d=>{const u=d*i,h=u*e,p=u-s,m=$s(d,i),x=Math.exp(-h);return Os-p/m*x},o=d=>{const h=d*i*e,p=h*s+s,m=Math.pow(i,2)*Math.pow(d,2)*e,x=Math.exp(-h),w=$s(Math.pow(d,2),i);return(-r(d)+Os>0?-1:1)*((p-m)*x)/w}):(r=d=>{const u=Math.exp(-d*e),h=(d-s)*e+1;return-Os+u*h},o=d=>{const u=Math.exp(-d*e),h=(s-d)*(e*e);return u*h});const a=5/e,c=yl(r,o,a);if(e=we(e),isNaN(c))return{stiffness:Y.stiffness,damping:Y.damping,duration:e};{const d=Math.pow(c,2)*n;return{stiffness:d,damping:i*2*Math.sqrt(n*d),duration:e}}}const gl=12;function yl(e,t,s){let n=s;for(let r=1;r<gl;r++)n=n-e(n)/t(n);return n}function $s(e,t){return e*Math.sqrt(1-t*t)}const xl=["duration","bounce"],vl=["stiffness","damping","mass"];function hr(e,t){return t.some(s=>e[s]!==void 0)}function bl(e){let t={velocity:Y.velocity,stiffness:Y.stiffness,damping:Y.damping,mass:Y.mass,isResolvedFromDuration:!1,...e};if(!hr(e,vl)&&hr(e,xl))if(e.visualDuration){const s=e.visualDuration,n=2*Math.PI/(s*1.2),r=n*n,o=2*Ce(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:Y.mass,stiffness:r,damping:o}}else{const s=ml(e);t={...t,...s,mass:Y.mass},t.isResolvedFromDuration=!0}return t}function hs(e=Y.visualDuration,t=Y.bounce){const s=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:n,restDelta:r}=s;const o=s.keyframes[0],i=s.keyframes[s.keyframes.length-1],a={done:!1,value:o},{stiffness:c,damping:d,mass:u,duration:h,velocity:p,isResolvedFromDuration:m}=bl({...s,velocity:-pe(s.velocity||0)}),x=p||0,w=d/(2*Math.sqrt(c*u)),v=i-o,y=pe(Math.sqrt(c/u)),C=Math.abs(v)<5;n||(n=C?Y.restSpeed.granular:Y.restSpeed.default),r||(r=C?Y.restDelta.granular:Y.restDelta.default);let A;if(w<1){const P=$s(y,w);A=D=>{const j=Math.exp(-w*y*D);return i-j*((x+w*y*v)/P*Math.sin(P*D)+v*Math.cos(P*D))}}else if(w===1)A=P=>i-Math.exp(-y*P)*(v+(x+y*v)*P);else{const P=y*Math.sqrt(w*w-1);A=D=>{const j=Math.exp(-w*y*D),E=Math.min(P*D,300);return i-j*((x+w*y*v)*Math.sinh(E)+P*v*Math.cosh(E))/P}}const N={calculatedDuration:m&&h||null,next:P=>{const D=A(P);if(m)a.done=P>=h;else{let j=P===0?x:0;w<1&&(j=P===0?we(x):Qi(A,P,D));const E=Math.abs(j)<=n,U=Math.abs(i-D)<=r;a.done=E&&U}return a.value=a.done?i:D,a},toString:()=>{const P=Math.min(Fn(N),ds),D=Ji(j=>N.next(P*j).value,P,30);return P+"ms "+D},toTransition:()=>{}};return N}hs.applyToOptions=e=>{const t=fl(e,100,hs);return e.ease=t.ease,e.duration=we(t.duration),e.type="keyframes",e};function en({keyframes:e,velocity:t=0,power:s=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:o=500,modifyTarget:i,min:a,max:c,restDelta:d=.5,restSpeed:u}){const h=e[0],p={done:!1,value:h},m=E=>a!==void 0&&E<a||c!==void 0&&E>c,x=E=>a===void 0?c:c===void 0||Math.abs(a-E)<Math.abs(c-E)?a:c;let w=s*t;const v=h+w,y=i===void 0?v:i(v);y!==v&&(w=y-h);const C=E=>-w*Math.exp(-E/n),A=E=>y+C(E),N=E=>{const U=C(E),J=A(E);p.done=Math.abs(U)<=d,p.value=p.done?y:J};let P,D;const j=E=>{m(p.value)&&(P=E,D=hs({keyframes:[p.value,x(p.value)],velocity:Qi(A,E,p.value),damping:r,stiffness:o,restDelta:d,restSpeed:u}))};return j(0),{calculatedDuration:null,next:E=>{let U=!1;return!D&&P===void 0&&(U=!0,N(E),j(E)),P!==void 0&&E>=P?D.next(E-P):(!U&&N(E),p)}}}function wl(e,t,s){const n=[],r=s||Pe.mix||Gi,o=e.length-1;for(let i=0;i<o;i++){let a=r(e[i],e[i+1]);if(t){const c=Array.isArray(t)?t[i]||me:t;a=Wt(c,a)}n.push(a)}return n}function Al(e,t,{clamp:s=!0,ease:n,mixer:r}={}){const o=e.length;if(Ee(o===t.length,"Both input and output ranges must be the same length","range-length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const i=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=wl(t,n,r),c=a.length,d=u=>{if(i&&u<e[0])return t[0];let h=0;if(c>1)for(;h<e.length-2&&!(u<e[h+1]);h++);const p=Lt(e[h],e[h+1],u);return a[h](p)};return s?u=>d(Ce(e[0],e[o-1],u)):d}function Cl(e,t){const s=e[e.length-1];for(let n=1;n<=t;n++){const r=Lt(0,t,n);e.push(z(s,1,r))}}function kl(e){const t=[0];return Cl(t,e.length-1),t}function Tl(e,t){return e.map(s=>s*t)}function Sl(e,t){return e.map(()=>t||Li).splice(0,e.length-1)}function rt({duration:e=300,keyframes:t,times:s,ease:n="easeInOut"}){const r=Oa(n)?n.map(or):or(n),o={done:!1,value:t[0]},i=Tl(s&&s.length===t.length?s:kl(t),e),a=Al(i,t,{ease:Array.isArray(r)?r:Sl(t,r)});return{calculatedDuration:e,next:c=>(o.value=a(c),o.done=c>=e,o)}}const El=e=>e!==null;function Ln(e,{repeat:t,repeatType:s="loop"},n,r=1){const o=e.filter(El),a=r<0||t&&s!=="loop"&&t%2===1?0:o.length-1;return!a||n===void 0?o[a]:n}const Pl={decay:en,inertia:en,tween:rt,keyframes:rt,spring:hs};function Hi(e){typeof e.type=="string"&&(e.type=Pl[e.type])}class Bn{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,s){return this.finished.then(t,s)}}const jl=e=>e/100;class On extends Bn{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:s}=this.options;s&&s.updatedAt!==se.now()&&this.tick(se.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Hi(t);const{type:s=rt,repeat:n=0,repeatDelay:r=0,repeatType:o,velocity:i=0}=t;let{keyframes:a}=t;const c=s||rt;process.env.NODE_ENV!=="production"&&c!==rt&&Ee(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),c!==rt&&typeof a[0]!="number"&&(this.mixKeyframes=Wt(jl,Gi(a[0],a[1])),a=[0,100]);const d=c({...t,keyframes:a});o==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...a].reverse(),velocity:-i})),d.calculatedDuration===null&&(d.calculatedDuration=Fn(d));const{calculatedDuration:u}=d;this.calculatedDuration=u,this.resolvedDuration=u+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=d}updateTime(t){const s=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=s}tick(t,s=!1){const{generator:n,totalDuration:r,mixKeyframes:o,mirroredGenerator:i,resolvedDuration:a,calculatedDuration:c}=this;if(this.startTime===null)return n.next(0);const{delay:d=0,keyframes:u,repeat:h,repeatType:p,repeatDelay:m,type:x,onUpdate:w,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),s?this.currentTime=t:this.updateTime(t);const y=this.currentTime-d*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?y<0:y>r;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=r);let A=this.currentTime,N=n;if(h){const E=Math.min(this.currentTime,r)/a;let U=Math.floor(E),J=E%1;!J&&E>=1&&(J=1),J===1&&U--,U=Math.min(U,h+1),!!(U%2)&&(p==="reverse"?(J=1-J,m&&(J-=m/a)):p==="mirror"&&(N=i)),A=Ce(0,1,J)*a}const P=C?{done:!1,value:u[0]}:N.next(A);o&&(P.value=o(P.value));let{done:D}=P;!C&&c!==null&&(D=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const j=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&D);return j&&x!==en&&(P.value=Ln(u,this.options,v,this.speed)),w&&w(P.value),j&&this.finish(),P}then(t,s){return this.finished.then(t,s)}get duration(){return pe(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+pe(t)}get time(){return pe(this.currentTime)}set time(t){t=we(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(se.now());const s=this.playbackSpeed!==t;this.playbackSpeed=t,s&&(this.time=pe(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=hl,startTime:s}=this.options;this.driver||(this.driver=t(r=>this.tick(r))),this.options.onPlay?.();const n=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=n):this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime||(this.startTime=s??n),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(se.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function Rl(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const ze=e=>e*180/Math.PI,tn=e=>{const t=ze(Math.atan2(e[1],e[0]));return sn(t)},Nl={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:tn,rotateZ:tn,skewX:e=>ze(Math.atan(e[1])),skewY:e=>ze(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},sn=e=>(e=e%360,e<0&&(e+=360),e),fr=tn,pr=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),mr=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Vl={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:pr,scaleY:mr,scale:e=>(pr(e)+mr(e))/2,rotateX:e=>sn(ze(Math.atan2(e[6],e[5]))),rotateY:e=>sn(ze(Math.atan2(-e[2],e[0]))),rotateZ:fr,rotate:fr,skewX:e=>ze(Math.atan(e[4])),skewY:e=>ze(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function nn(e){return e.includes("scale")?1:0}function rn(e,t){if(!e||e==="none")return nn(t);const s=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,r;if(s)n=Vl,r=s;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=Nl,r=a}if(!r)return nn(t);const o=n[t],i=r[1].split(",").map(Dl);return typeof o=="function"?o(i):i[o]}const Ml=(e,t)=>{const{transform:s="none"}=getComputedStyle(e);return rn(s,t)};function Dl(e){return parseFloat(e.trim())}const ft=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],pt=new Set(ft),gr=e=>e===ht||e===S,Fl=new Set(["x","y","z"]),Ll=ft.filter(e=>!Fl.has(e));function Bl(e){const t=[];return Ll.forEach(s=>{const n=e.getValue(s);n!==void 0&&(t.push([s,n.get()]),n.set(s.startsWith("scale")?1:0))}),t}const Me={width:({x:e},{paddingLeft:t="0",paddingRight:s="0"})=>e.max-e.min-parseFloat(t)-parseFloat(s),height:({y:e},{paddingTop:t="0",paddingBottom:s="0"})=>e.max-e.min-parseFloat(t)-parseFloat(s),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>rn(t,"x"),y:(e,{transform:t})=>rn(t,"y")};Me.translateX=Me.x;Me.translateY=Me.y;const Ge=new Set;let on=!1,an=!1,ln=!1;function Xi(){if(an){const e=Array.from(Ge).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),s=new Map;t.forEach(n=>{const r=Bl(n);r.length&&(s.set(n,r),n.render())}),e.forEach(n=>n.measureInitialState()),t.forEach(n=>{n.render();const r=s.get(n);r&&r.forEach(([o,i])=>{n.getValue(o)?.set(i)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}an=!1,on=!1,Ge.forEach(e=>e.complete(ln)),Ge.clear()}function Zi(){Ge.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(an=!0)})}function Ol(){ln=!0,Zi(),Xi(),ln=!1}class In{constructor(t,s,n,r,o,i=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=s,this.name=n,this.motionValue=r,this.element=o,this.isAsync=i}scheduleResolve(){this.state="scheduled",this.isAsync?(Ge.add(this),on||(on=!0,W.read(Zi),W.resolveKeyframes(Xi))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:s,element:n,motionValue:r}=this;if(t[0]===null){const o=r?.get(),i=t[t.length-1];if(o!==void 0)t[0]=o;else if(n&&s){const a=n.readValue(s,i);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=i),r&&o===void 0&&r.set(t[0])}Rl(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Ge.delete(this)}cancel(){this.state==="scheduled"&&(Ge.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Il=e=>e.startsWith("--");function Ul(e,t,s){Il(t)?e.style.setProperty(t,s):e.style[t]=s}const Wl=Sn(()=>window.ScrollTimeline!==void 0),ql={};function _l(e,t){const s=Sn(e);return()=>ql[t]??s()}const $i=_l(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Rt=([e,t,s,n])=>`cubic-bezier(${e}, ${t}, ${s}, ${n})`,yr={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Rt([0,.65,.55,1]),circOut:Rt([.55,0,1,.45]),backIn:Rt([.31,.01,.66,-.59]),backOut:Rt([.33,1.53,.69,.99])};function eo(e,t){if(e)return typeof e=="function"?$i()?Ji(e,t):"ease-out":Bi(e)?Rt(e):Array.isArray(e)?e.map(s=>eo(s,t)||yr.easeOut):yr[e]}function Kl(e,t,s,{delay:n=0,duration:r=300,repeat:o=0,repeatType:i="loop",ease:a="easeOut",times:c}={},d=void 0){const u={[t]:s};c&&(u.offset=c);const h=eo(a,r);Array.isArray(h)&&(u.easing=h);const p={delay:n,duration:r,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:i==="reverse"?"alternate":"normal"};return d&&(p.pseudoElement=d),e.animate(u,p)}function to(e){return typeof e=="function"&&"applyToOptions"in e}function Yl({type:e,...t}){return to(e)&&$i()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class zl extends Bn{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:s,name:n,keyframes:r,pseudoElement:o,allowFlatten:i=!1,finalKeyframe:a,onComplete:c}=t;this.isPseudoElement=!!o,this.allowFlatten=i,this.options=t,Ee(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const d=Yl(t);this.animation=Kl(s,n,r,d,o),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const u=Ln(r,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):Ul(s,n,u),this.animation.cancel()}c?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return pe(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+pe(t)}get time(){return pe(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=we(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:s}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&Wl()?(this.animation.timeline=t,me):s(this)}}const so={anticipate:Mi,backInOut:Vi,circInOut:Fi};function Gl(e){return e in so}function Jl(e){typeof e.ease=="string"&&Gl(e.ease)&&(e.ease=so[e.ease])}const Is=10;class Ql extends zl{constructor(t){Jl(t),Hi(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:s,onUpdate:n,onComplete:r,element:o,...i}=this.options;if(!s)return;if(t!==void 0){s.set(t);return}const a=new On({...i,autoplay:!1}),c=Math.max(Is,se.now()-this.startTime),d=Ce(0,Is,c-Is);s.setWithVelocity(a.sample(Math.max(0,c-d)).value,a.sample(c).value,d),a.stop()}}const xr=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Fe.test(e)||e==="0")&&!e.startsWith("url("));function Hl(e){const t=e[0];if(e.length===1)return!0;for(let s=0;s<e.length;s++)if(e[s]!==t)return!0}function Xl(e,t,s,n){const r=e[0];if(r===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],i=xr(r,t),a=xr(o,t);return dt(i===a,`You are trying to animate ${t} from "${r}" to "${o}". "${i?o:r}" is not an animatable value.`,"value-not-animatable"),!i||!a?!1:Hl(e)||(s==="spring"||to(s))&&n}function cn(e){e.duration=0,e.type="keyframes"}const Zl=new Set(["opacity","clipPath","filter","transform"]),$l=Sn(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function ec(e){const{motionValue:t,name:s,repeatDelay:n,repeatType:r,damping:o,type:i}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:d}=t.owner.getProps();return $l()&&s&&Zl.has(s)&&(s!=="transform"||!d)&&!c&&!n&&r!=="mirror"&&o!==0&&i!=="inertia"}const tc=40;class sc extends Bn{constructor({autoplay:t=!0,delay:s=0,type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i="loop",keyframes:a,name:c,motionValue:d,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=se.now();const p={autoplay:t,delay:s,type:n,repeat:r,repeatDelay:o,repeatType:i,name:c,motionValue:d,element:u,...h},m=u?.KeyframeResolver||In;this.keyframeResolver=new m(a,(x,w,v)=>this.onKeyframesResolved(x,w,p,!v),c,d,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,s,n,r){this.keyframeResolver=void 0;const{name:o,type:i,velocity:a,delay:c,isHandoff:d,onUpdate:u}=n;this.resolvedAt=se.now(),Xl(t,o,i,a)||((Pe.instantAnimations||!c)&&u?.(Ln(t,n,s)),t[0]=t[t.length-1],cn(n),n.repeat=0);const p={startTime:r?this.resolvedAt?this.resolvedAt-this.createdAt>tc?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:s,...n,keyframes:t},m=!d&&ec(p)?new Ql({...p,element:p.motionValue.owner.current}):new On(p);m.finished.then(()=>this.notifyFinished()).catch(me),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(t,s){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Ol()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const nc=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function rc(e){const t=nc.exec(e);if(!t)return[,];const[,s,n,r]=t;return[`--${s??n}`,r]}const ic=4;function no(e,t,s=1){Ee(s<=ic,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[n,r]=rc(e);if(!n)return;const o=window.getComputedStyle(t).getPropertyValue(n);if(o){const i=o.trim();return ki(i)?parseFloat(i):i}return Nn(r)?no(r,t,s+1):r}function Un(e,t){return e?.[t]??e?.default??e}const ro=new Set(["width","height","top","left","right","bottom",...ft]),oc={test:e=>e==="auto",parse:e=>e},io=e=>t=>t.test(e),oo=[ht,S,Ae,Ve,Ha,Qa,oc],vr=e=>oo.find(io(e));function ac(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Si(e):!0}const lc=new Set(["brightness","contrast","saturate","opacity"]);function cc(e){const[t,s]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=s.match(Vn)||[];if(!n)return e;const r=s.replace(n,"");let o=lc.has(t)?1:0;return n!==s&&(o*=100),t+"("+o+r+")"}const uc=/\b([a-z-]*)\(.*?\)/gu,un={...Fe,getAnimatableNone:e=>{const t=e.match(uc);return t?t.map(cc).join(" "):e}},br={...ht,transform:Math.round},dc={rotate:Ve,rotateX:Ve,rotateY:Ve,rotateZ:Ve,scale:ns,scaleX:ns,scaleY:ns,scaleZ:ns,skew:Ve,skewX:Ve,skewY:Ve,distance:S,translateX:S,translateY:S,translateZ:S,x:S,y:S,z:S,perspective:S,transformPerspective:S,opacity:Bt,originX:lr,originY:lr,originZ:S},Wn={borderWidth:S,borderTopWidth:S,borderRightWidth:S,borderBottomWidth:S,borderLeftWidth:S,borderRadius:S,radius:S,borderTopLeftRadius:S,borderTopRightRadius:S,borderBottomRightRadius:S,borderBottomLeftRadius:S,width:S,maxWidth:S,height:S,maxHeight:S,top:S,right:S,bottom:S,left:S,inset:S,insetBlock:S,insetBlockStart:S,insetBlockEnd:S,insetInline:S,insetInlineStart:S,insetInlineEnd:S,padding:S,paddingTop:S,paddingRight:S,paddingBottom:S,paddingLeft:S,paddingBlock:S,paddingBlockStart:S,paddingBlockEnd:S,paddingInline:S,paddingInlineStart:S,paddingInlineEnd:S,margin:S,marginTop:S,marginRight:S,marginBottom:S,marginLeft:S,marginBlock:S,marginBlockStart:S,marginBlockEnd:S,marginInline:S,marginInlineStart:S,marginInlineEnd:S,backgroundPositionX:S,backgroundPositionY:S,...dc,zIndex:br,fillOpacity:Bt,strokeOpacity:Bt,numOctaves:br},hc={...Wn,color:Q,backgroundColor:Q,outlineColor:Q,fill:Q,stroke:Q,borderColor:Q,borderTopColor:Q,borderRightColor:Q,borderBottomColor:Q,borderLeftColor:Q,filter:un,WebkitFilter:un},ao=e=>hc[e];function lo(e,t){let s=ao(e);return s!==un&&(s=Fe),s.getAnimatableNone?s.getAnimatableNone(t):void 0}const fc=new Set(["auto","none","0"]);function pc(e,t,s){let n=0,r;for(;n<e.length&&!r;){const o=e[n];typeof o=="string"&&!fc.has(o)&&Ot(o).values.length&&(r=e[n]),n++}if(r&&s)for(const o of t)e[o]=lo(s,r)}class mc extends In{constructor(t,s,n,r,o){super(t,s,n,r,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:s,name:n}=this;if(!s||!s.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let h=t[u];if(typeof h=="string"&&(h=h.trim(),Nn(h))){const p=no(h,s.current);p!==void 0&&(t[u]=p),u===t.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!ro.has(n)||t.length!==2)return;const[r,o]=t,i=vr(r),a=vr(o),c=ar(r),d=ar(o);if(c!==d&&Me[n]){this.needsMeasurement=!0;return}if(i!==a)if(gr(i)&&gr(a))for(let u=0;u<t.length;u++){const h=t[u];typeof h=="string"&&(t[u]=parseFloat(h))}else Me[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:s}=this,n=[];for(let r=0;r<t.length;r++)(t[r]===null||ac(t[r]))&&n.push(r);n.length&&pc(t,n,s)}measureInitialState(){const{element:t,unresolvedKeyframes:s,name:n}=this;if(!t||!t.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Me[n](t.measureViewportBox(),window.getComputedStyle(t.current)),s[0]=this.measuredOrigin;const r=s[s.length-1];r!==void 0&&t.getValue(n,r).jump(r,!1)}measureEndState(){const{element:t,name:s,unresolvedKeyframes:n}=this;if(!t||!t.current)return;const r=t.getValue(s);r&&r.jump(this.measuredOrigin,!1);const o=n.length-1,i=n[o];n[o]=Me[s](t.measureViewportBox(),window.getComputedStyle(t.current)),i!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=i),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,c])=>{t.getValue(a).set(c)}),this.resolveNoneKeyframes()}}function gc(e,t,s){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let n=document;const r=s?.[e]??n.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e)}const co=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function uo(e){return Ti(e)&&"offsetHeight"in e}const wr=30,yc=e=>!isNaN(parseFloat(e));class xc{constructor(t,s={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=n=>{const r=se.now();if(this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=s.owner}setCurrent(t){this.current=t,this.updatedAt=se.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=yc(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Pn(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,s){this.events[t]||(this.events[t]=new En);const n=this.events[t].add(s);return t==="change"?()=>{n(),W.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,s){this.passiveEffect=t,this.stopPassiveEffect=s}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,s,n){this.set(s),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,s=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=se.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>wr)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,wr);return Ei(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(t){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=t(s),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ct(e,t){return new xc(e,t)}const{schedule:qn}=Oi(queueMicrotask,!1),ye={x:!1,y:!1};function ho(){return ye.x||ye.y}function vc(e){return e==="x"||e==="y"?ye[e]?null:(ye[e]=!0,()=>{ye[e]=!1}):ye.x||ye.y?null:(ye.x=ye.y=!0,()=>{ye.x=ye.y=!1})}function fo(e,t){const s=gc(e),n=new AbortController,r={passive:!0,...t,signal:n.signal};return[s,r,()=>n.abort()]}function Ar(e){return!(e.pointerType==="touch"||ho())}function bc(e,t,s={}){const[n,r,o]=fo(e,s),i=a=>{if(!Ar(a))return;const{target:c}=a,d=t(c,a);if(typeof d!="function"||!c)return;const u=h=>{Ar(h)&&(d(h),c.removeEventListener("pointerleave",u))};c.addEventListener("pointerleave",u,r)};return n.forEach(a=>{a.addEventListener("pointerenter",i,r)}),o}const po=(e,t)=>t?e===t?!0:po(e,t.parentElement):!1,_n=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,wc=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function mo(e){return wc.has(e.tagName)||e.isContentEditable===!0}const as=new WeakSet;function Cr(e){return t=>{t.key==="Enter"&&e(t)}}function Us(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Ac=(e,t)=>{const s=e.currentTarget;if(!s)return;const n=Cr(()=>{if(as.has(s))return;Us(s,"down");const r=Cr(()=>{Us(s,"up")}),o=()=>Us(s,"cancel");s.addEventListener("keyup",r,t),s.addEventListener("blur",o,t)});s.addEventListener("keydown",n,t),s.addEventListener("blur",()=>s.removeEventListener("keydown",n),t)};function kr(e){return _n(e)&&!ho()}function Cc(e,t,s={}){const[n,r,o]=fo(e,s),i=a=>{const c=a.currentTarget;if(!kr(a))return;as.add(c);const d=t(c,a),u=(m,x)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",p),as.has(c)&&as.delete(c),kr(m)&&typeof d=="function"&&d(m,{success:x})},h=m=>{u(m,c===window||c===document||s.useGlobalTarget||po(c,m.target))},p=m=>{u(m,!1)};window.addEventListener("pointerup",h,r),window.addEventListener("pointercancel",p,r)};return n.forEach(a=>{(s.useGlobalTarget?window:a).addEventListener("pointerdown",i,r),uo(a)&&(a.addEventListener("focus",d=>Ac(d,r)),!mo(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function go(e){return Ti(e)&&"ownerSVGElement"in e}function kc(e){return go(e)&&e.tagName==="svg"}const te=e=>!!(e&&e.getVelocity),Tc=[...oo,Q,Fe],Sc=e=>Tc.find(io(e)),Kn=g.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Tr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ec(...e){return t=>{let s=!1;const n=e.map(r=>{const o=Tr(r,t);return!s&&typeof o=="function"&&(s=!0),o});if(s)return()=>{for(let r=0;r<n.length;r++){const o=n[r];typeof o=="function"?o():Tr(e[r],null)}}}}function Pc(...e){return gs.useCallback(Ec(...e),e)}class jc extends gs.Component{getSnapshotBeforeUpdate(t){const s=this.props.childRef.current;if(s&&t.isPresent&&!this.props.isPresent){const n=s.offsetParent,r=uo(n)&&n.offsetWidth||0,o=this.props.sizeRef.current;o.height=s.offsetHeight||0,o.width=s.offsetWidth||0,o.top=s.offsetTop,o.left=s.offsetLeft,o.right=r-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Rc({children:e,isPresent:t,anchorX:s,root:n}){const r=g.useId(),o=g.useRef(null),i=g.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=g.useContext(Kn),c=e.props?.ref??e?.ref,d=Pc(o,c);return g.useInsertionEffect(()=>{const{width:u,height:h,top:p,left:m,right:x}=i.current;if(t||!o.current||!u||!h)return;const w=s==="left"?`left: ${m}`:`right: ${x}`;o.current.dataset.motionPopId=r;const v=document.createElement("style");a&&(v.nonce=a);const y=n??document.head;return y.appendChild(v),v.sheet&&v.sheet.insertRule(`
34
+ [data-motion-pop-id="${r}"] {
35
+ position: absolute !important;
36
+ width: ${u}px !important;
37
+ height: ${h}px !important;
38
+ ${w}px !important;
39
+ top: ${p}px !important;
40
+ }
41
+ `),()=>{y.contains(v)&&y.removeChild(v)}},[t]),l.jsx(jc,{isPresent:t,childRef:o,sizeRef:i,children:gs.cloneElement(e,{ref:d})})}const Nc=({children:e,initial:t,isPresent:s,onExitComplete:n,custom:r,presenceAffectsLayout:o,mode:i,anchorX:a,root:c})=>{const d=An(Vc),u=g.useId();let h=!0,p=g.useMemo(()=>(h=!1,{id:u,initial:t,isPresent:s,custom:r,onExitComplete:m=>{d.set(m,!0);for(const x of d.values())if(!x)return;n&&n()},register:m=>(d.set(m,!1),()=>d.delete(m))}),[s,d,n]);return o&&h&&(p={...p}),g.useMemo(()=>{d.forEach((m,x)=>d.set(x,!1))},[s]),gs.useEffect(()=>{!s&&!d.size&&n&&n()},[s]),i==="popLayout"&&(e=l.jsx(Rc,{isPresent:s,anchorX:a,root:c,children:e})),l.jsx(xs.Provider,{value:p,children:e})};function Vc(){return new Map}function yo(e=!0){const t=g.useContext(xs);if(t===null)return[!0,null];const{isPresent:s,onExitComplete:n,register:r}=t,o=g.useId();g.useEffect(()=>{if(e)return r(o)},[e]);const i=g.useCallback(()=>e&&n&&n(o),[o,n,e]);return!s&&n?[!1,i]:[!0]}const rs=e=>e.key||"";function Sr(e){const t=[];return g.Children.forEach(e,s=>{g.isValidElement(s)&&t.push(s)}),t}const Mc=({children:e,custom:t,initial:s=!0,onExitComplete:n,presenceAffectsLayout:r=!0,mode:o="sync",propagate:i=!1,anchorX:a="left",root:c})=>{const[d,u]=yo(i),h=g.useMemo(()=>Sr(e),[e]),p=i&&!d?[]:h.map(rs),m=g.useRef(!0),x=g.useRef(h),w=An(()=>new Map),v=g.useRef(new Set),[y,C]=g.useState(h),[A,N]=g.useState(h);Ci(()=>{m.current=!1,x.current=h;for(let j=0;j<A.length;j++){const E=rs(A[j]);p.includes(E)?(w.delete(E),v.current.delete(E)):w.get(E)!==!0&&w.set(E,!1)}},[A,p.length,p.join("-")]);const P=[];if(h!==y){let j=[...h];for(let E=0;E<A.length;E++){const U=A[E],J=rs(U);p.includes(J)||(j.splice(E,0,U),P.push(U))}return o==="wait"&&P.length&&(j=P),N(Sr(j)),C(h),null}process.env.NODE_ENV!=="production"&&o==="wait"&&A.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:D}=g.useContext(wn);return l.jsx(l.Fragment,{children:A.map(j=>{const E=rs(j),U=i&&!d?!1:h===A||p.includes(E),J=()=>{if(v.current.has(E))return;if(v.current.add(E),w.has(E))w.set(E,!0);else return;let oe=!0;w.forEach(ke=>{ke||(oe=!1)}),oe&&(D?.(),N(x.current),i&&u?.(),n&&n())};return l.jsx(Nc,{isPresent:U,initial:!m.current||s?void 0:!1,custom:t,presenceAffectsLayout:r,mode:o,root:c,onExitComplete:U?void 0:J,anchorX:a,children:j},E)})})},xo=g.createContext({strict:!1}),Er={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ut={};for(const e in Er)ut[e]={isEnabled:t=>Er[e].some(s=>!!t[s])};function Dc(e){for(const t in e)ut[t]={...ut[t],...e[t]}}const Fc=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function fs(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Fc.has(e)}let vo=e=>!fs(e);function Lc(e){typeof e=="function"&&(vo=t=>t.startsWith("on")?!fs(t):e(t))}try{Lc(require("@emotion/is-prop-valid").default)}catch{}function Bc(e,t,s){const n={};for(const r in e)r==="values"&&typeof e.values=="object"||(vo(r)||s===!0&&fs(r)||!t&&!fs(r)||e.draggable&&r.startsWith("onDrag"))&&(n[r]=e[r]);return n}const vs=g.createContext({});function bs(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function It(e){return typeof e=="string"||Array.isArray(e)}const Yn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],zn=["initial",...Yn];function ws(e){return bs(e.animate)||zn.some(t=>It(e[t]))}function bo(e){return!!(ws(e)||e.variants)}function Oc(e,t){if(ws(e)){const{initial:s,animate:n}=e;return{initial:s===!1||It(s)?s:void 0,animate:It(n)?n:void 0}}return e.inherit!==!1?t:{}}function Ic(e){const{initial:t,animate:s}=Oc(e,g.useContext(vs));return g.useMemo(()=>({initial:t,animate:s}),[Pr(t),Pr(s)])}function Pr(e){return Array.isArray(e)?e.join(" "):e}function jr(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const jt={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(S.test(e))e=parseFloat(e);else return e;const s=jr(e,t.target.x),n=jr(e,t.target.y);return`${s}% ${n}%`}},Uc={correct:(e,{treeScale:t,projectionDelta:s})=>{const n=e,r=Fe.parse(e);if(r.length>5)return n;const o=Fe.createTransformer(e),i=typeof r[0]!="number"?1:0,a=s.x.scale*t.x,c=s.y.scale*t.y;r[0+i]/=a,r[1+i]/=c;const d=z(a,c,.5);return typeof r[2+i]=="number"&&(r[2+i]/=d),typeof r[3+i]=="number"&&(r[3+i]/=d),o(r)}},dn={borderRadius:{...jt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:jt,borderTopRightRadius:jt,borderBottomLeftRadius:jt,borderBottomRightRadius:jt,boxShadow:Uc};function wo(e,{layout:t,layoutId:s}){return pt.has(e)||e.startsWith("origin")||(t||s!==void 0)&&(!!dn[e]||e==="opacity")}const Wc={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},qc=ft.length;function _c(e,t,s){let n="",r=!0;for(let o=0;o<qc;o++){const i=ft[o],a=e[i];if(a===void 0)continue;let c=!0;if(typeof a=="number"?c=a===(i.startsWith("scale")?1:0):c=parseFloat(a)===0,!c||s){const d=co(a,Wn[i]);if(!c){r=!1;const u=Wc[i]||i;n+=`${u}(${d}) `}s&&(t[i]=d)}}return n=n.trim(),s?n=s(t,r?"":n):r&&(n="none"),n}function Gn(e,t,s){const{style:n,vars:r,transformOrigin:o}=e;let i=!1,a=!1;for(const c in t){const d=t[c];if(pt.has(c)){i=!0;continue}else if(Ui(c)){r[c]=d;continue}else{const u=co(d,Wn[c]);c.startsWith("origin")?(a=!0,o[c]=u):n[c]=u}}if(t.transform||(i||s?n.transform=_c(t,e.transform,s):n.transform&&(n.transform="none")),a){const{originX:c="50%",originY:d="50%",originZ:u=0}=o;n.transformOrigin=`${c} ${d} ${u}`}}const Jn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ao(e,t,s){for(const n in t)!te(t[n])&&!wo(n,s)&&(e[n]=t[n])}function Kc({transformTemplate:e},t){return g.useMemo(()=>{const s=Jn();return Gn(s,t,e),Object.assign({},s.vars,s.style)},[t])}function Yc(e,t){const s=e.style||{},n={};return Ao(n,s,e),Object.assign(n,Kc(e,t)),n}function zc(e,t){const s={},n=Yc(e,t);return e.drag&&e.dragListener!==!1&&(s.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(s.tabIndex=0),s.style=n,s}const Gc={offset:"stroke-dashoffset",array:"stroke-dasharray"},Jc={offset:"strokeDashoffset",array:"strokeDasharray"};function Qc(e,t,s=1,n=0,r=!0){e.pathLength=1;const o=r?Gc:Jc;e[o.offset]=S.transform(-n);const i=S.transform(t),a=S.transform(s);e[o.array]=`${i} ${a}`}const Hc=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Co(e,{attrX:t,attrY:s,attrScale:n,pathLength:r,pathSpacing:o=1,pathOffset:i=0,...a},c,d,u){if(Gn(e,a,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:p}=e;h.transform&&(p.transform=h.transform,delete h.transform),(p.transform||h.transformOrigin)&&(p.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),p.transform&&(p.transformBox=u?.transformBox??"fill-box",delete h.transformBox);for(const m of Hc)h[m]!==void 0&&(p[m]=h[m],delete h[m]);t!==void 0&&(h.x=t),s!==void 0&&(h.y=s),n!==void 0&&(h.scale=n),r!==void 0&&Qc(h,r,o,i,!1)}const ko=()=>({...Jn(),attrs:{}}),To=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Xc(e,t,s,n){const r=g.useMemo(()=>{const o=ko();return Co(o,t,To(n),e.transformTemplate,e.style),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Ao(o,e.style,e),r.style={...o,...r.style}}return r}const Zc=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Qn(e){return typeof e!="string"||e.includes("-")?!1:!!(Zc.indexOf(e)>-1||/[A-Z]/u.test(e))}function $c(e,t,s,{latestValues:n},r,o=!1,i){const c=(i??Qn(e)?Xc:zc)(t,n,r,e),d=Bc(t,typeof e=="string",o),u=e!==g.Fragment?{...d,...c,ref:s}:{},{children:h}=t,p=g.useMemo(()=>te(h)?h.get():h,[h]);return g.createElement(e,{...u,children:p})}function Rr(e){const t=[{},{}];return e?.values.forEach((s,n)=>{t[0][n]=s.get(),t[1][n]=s.getVelocity()}),t}function Hn(e,t,s,n){if(typeof t=="function"){const[r,o]=Rr(n);t=t(s!==void 0?s:e.custom,r,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[r,o]=Rr(n);t=t(s!==void 0?s:e.custom,r,o)}return t}function ls(e){return te(e)?e.get():e}function eu({scrapeMotionValuesFromProps:e,createRenderState:t},s,n,r){return{latestValues:tu(s,n,r,e),renderState:t()}}function tu(e,t,s,n){const r={},o=n(e,{});for(const p in o)r[p]=ls(o[p]);let{initial:i,animate:a}=e;const c=ws(e),d=bo(e);t&&d&&!c&&e.inherit!==!1&&(i===void 0&&(i=t.initial),a===void 0&&(a=t.animate));let u=s?s.initial===!1:!1;u=u||i===!1;const h=u?a:i;if(h&&typeof h!="boolean"&&!bs(h)){const p=Array.isArray(h)?h:[h];for(let m=0;m<p.length;m++){const x=Hn(e,p[m]);if(x){const{transitionEnd:w,transition:v,...y}=x;for(const C in y){let A=y[C];if(Array.isArray(A)){const N=u?A.length-1:0;A=A[N]}A!==null&&(r[C]=A)}for(const C in w)r[C]=w[C]}}}return r}const So=e=>(t,s)=>{const n=g.useContext(vs),r=g.useContext(xs),o=()=>eu(e,t,n,r);return s?o():An(o)};function Xn(e,t,s){const{style:n}=e,r={};for(const o in n)(te(n[o])||t.style&&te(t.style[o])||wo(o,e)||s?.getValue(o)?.liveStyle!==void 0)&&(r[o]=n[o]);return r}const su=So({scrapeMotionValuesFromProps:Xn,createRenderState:Jn});function Eo(e,t,s){const n=Xn(e,t,s);for(const r in e)if(te(e[r])||te(t[r])){const o=ft.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[o]=e[r]}return n}const nu=So({scrapeMotionValuesFromProps:Eo,createRenderState:ko}),ru=Symbol.for("motionComponentSymbol");function iu(e,t,s){const n=g.useRef(s);g.useInsertionEffect(()=>{n.current=s});const r=g.useRef(null);return g.useCallback(o=>{o&&e.onMount?.(o),t&&(o?t.mount(o):t.unmount());const i=n.current;if(typeof i=="function")if(o){const a=i(o);typeof a=="function"&&(r.current=a)}else r.current?(r.current(),r.current=null):i(o);else i&&(i.current=o)},[t])}const Zn=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ou="framerAppearId",Po="data-"+Zn(ou),jo=g.createContext({});function Nt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function au(e,t,s,n,r,o){const{visualElement:i}=g.useContext(vs),a=g.useContext(xo),c=g.useContext(xs),d=g.useContext(Kn).reducedMotion,u=g.useRef(null);n=n||a.renderer,!u.current&&n&&(u.current=n(e,{visualState:t,parent:i,props:s,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:d,isSVG:o}));const h=u.current,p=g.useContext(jo);h&&!h.projection&&r&&(h.type==="html"||h.type==="svg")&&lu(u.current,s,r,p);const m=g.useRef(!1);g.useInsertionEffect(()=>{h&&m.current&&h.update(s,c)});const x=s[Po],w=g.useRef(!!x&&!window.MotionHandoffIsComplete?.(x)&&window.MotionHasOptimisedAnimation?.(x));return Ci(()=>{h&&(m.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),w.current&&h.animationState&&h.animationState.animateChanges())}),g.useEffect(()=>{h&&(!w.current&&h.animationState&&h.animationState.animateChanges(),w.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(x)}),w.current=!1),h.enteringChildren=void 0)}),h}function lu(e,t,s,n){const{layoutId:r,layout:o,drag:i,dragConstraints:a,layoutScroll:c,layoutRoot:d,layoutCrossfade:u}=t;e.projection=new s(e.latestValues,t["data-framer-portal-id"]?void 0:Ro(e.parent)),e.projection.setOptions({layoutId:r,layout:o,alwaysMeasureLayout:!!i||a&&Nt(a),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:n,crossfade:u,layoutScroll:c,layoutRoot:d})}function Ro(e){if(e)return e.options.allowProjection!==!1?e.projection:Ro(e.parent)}function Ws(e,{forwardMotionProps:t=!1,type:s}={},n,r){n&&Dc(n);const o=s?s==="svg":Qn(e),i=o?nu:su;function a(d,u){let h;const p={...g.useContext(Kn),...d,layoutId:cu(d)},{isStatic:m}=p,x=Ic(d),w=i(d,m);if(!m&&Cn){uu(p,n);const v=du(p);h=v.MeasureLayout,x.visualElement=au(e,w,p,r,v.ProjectionNode,o)}return l.jsxs(vs.Provider,{value:x,children:[h&&x.visualElement?l.jsx(h,{visualElement:x.visualElement,...p}):null,$c(e,d,iu(w,x.visualElement,u),w,m,t,o)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const c=g.forwardRef(a);return c[ru]=e,c}function cu({layoutId:e}){const t=g.useContext(wn).id;return t&&e!==void 0?t+"-"+e:e}function uu(e,t){const s=g.useContext(xo).strict;if(process.env.NODE_ENV!=="production"&&t&&s){const n="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?dt(!1,n,"lazy-strict-mode"):Ee(!1,n,"lazy-strict-mode")}}function du(e){const{drag:t,layout:s}=ut;if(!t&&!s)return{};const n={...t,...s};return{MeasureLayout:t?.isEnabled(e)||s?.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}function hu(e,t){if(typeof Proxy>"u")return Ws;const s=new Map,n=(o,i)=>Ws(o,i,e,t),r=(o,i)=>(process.env.NODE_ENV!=="production"&&Pn(!1,"motion() is deprecated. Use motion.create() instead."),n(o,i));return new Proxy(r,{get:(o,i)=>i==="create"?n:(s.has(i)||s.set(i,Ws(i,void 0,e,t)),s.get(i))})}function No({top:e,left:t,right:s,bottom:n}){return{x:{min:t,max:s},y:{min:e,max:n}}}function fu({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function pu(e,t){if(!t)return e;const s=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:s.y,left:s.x,bottom:n.y,right:n.x}}function qs(e){return e===void 0||e===1}function hn({scale:e,scaleX:t,scaleY:s}){return!qs(e)||!qs(t)||!qs(s)}function Ke(e){return hn(e)||Vo(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Vo(e){return Nr(e.x)||Nr(e.y)}function Nr(e){return e&&e!=="0%"}function ps(e,t,s){const n=e-s,r=t*n;return s+r}function Vr(e,t,s,n,r){return r!==void 0&&(e=ps(e,r,n)),ps(e,s,n)+t}function fn(e,t=0,s=1,n,r){e.min=Vr(e.min,t,s,n,r),e.max=Vr(e.max,t,s,n,r)}function Mo(e,{x:t,y:s}){fn(e.x,t.translate,t.scale,t.originPoint),fn(e.y,s.translate,s.scale,s.originPoint)}const Mr=.999999999999,Dr=1.0000000000001;function mu(e,t,s,n=!1){const r=s.length;if(!r)return;t.x=t.y=1;let o,i;for(let a=0;a<r;a++){o=s[a],i=o.projectionDelta;const{visualElement:c}=o.options;c&&c.props.style&&c.props.style.display==="contents"||(n&&o.options.layoutScroll&&o.scroll&&o!==o.root&&ot(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),i&&(t.x*=i.x.scale,t.y*=i.y.scale,Mo(e,i)),n&&Ke(o.latestValues)&&ot(e,o.latestValues))}t.x<Dr&&t.x>Mr&&(t.x=1),t.y<Dr&&t.y>Mr&&(t.y=1)}function it(e,t){e.min=e.min+t,e.max=e.max+t}function Fr(e,t,s,n,r=.5){const o=z(e.min,e.max,r);fn(e,t,s,o,n)}function ot(e,t){Fr(e.x,t.x,t.scaleX,t.scale,t.originX),Fr(e.y,t.y,t.scaleY,t.scale,t.originY)}function Do(e,t){return No(pu(e.getBoundingClientRect(),t))}function gu(e,t,s){const n=Do(e,s),{scroll:r}=t;return r&&(it(n.x,r.offset.x),it(n.y,r.offset.y)),n}const Lr=()=>({translate:0,scale:1,origin:0,originPoint:0}),at=()=>({x:Lr(),y:Lr()}),Br=()=>({min:0,max:0}),H=()=>({x:Br(),y:Br()}),pn={current:null},Fo={current:!1};function yu(){if(Fo.current=!0,!!Cn)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>pn.current=e.matches;e.addEventListener("change",t),t()}else pn.current=!1}const xu=new WeakMap;function vu(e,t,s){for(const n in t){const r=t[n],o=s[n];if(te(r))e.addValue(n,r);else if(te(o))e.addValue(n,ct(r,{owner:e}));else if(o!==r)if(e.hasValue(n)){const i=e.getValue(n);i.liveStyle===!0?i.jump(r):i.hasAnimated||i.set(r)}else{const i=e.getStaticValue(n);e.addValue(n,ct(i!==void 0?i:r,{owner:e}))}}for(const n in s)t[n]===void 0&&e.removeValue(n);return t}const Or=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class bu{scrapeMotionValuesFromProps(t,s,n){return{}}constructor({parent:t,props:s,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:o,visualState:i},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=In,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const p=se.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,W.render(this.render,!1,!0))};const{latestValues:c,renderState:d}=i;this.latestValues=c,this.baseTarget={...c},this.initialValues=s.initial?{...c}:{},this.renderState=d,this.parent=t,this.props=s,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=ws(s),this.isVariantNode=bo(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...h}=this.scrapeMotionValuesFromProps(s,{},this);for(const p in h){const m=h[p];c[p]!==void 0&&te(m)&&m.set(c[p])}}mount(t){this.current=t,xu.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,n)=>this.bindToMotionValue(n,s)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Fo.current||yu(),this.shouldReduceMotion=pn.current),process.env.NODE_ENV!=="production"&&Pn(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),De(this.notifyUpdate),De(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const s=this.features[t];s&&(s.unmount(),s.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,s){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=pt.has(t);n&&this.onBindTransform&&this.onBindTransform();const r=s.on("change",i=>{this.latestValues[t]=i,this.props.onUpdate&&W.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,s)),this.valueSubscriptions.set(t,()=>{r(),o&&o(),s.owner&&s.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ut){const s=ut[t];if(!s)continue;const{isEnabled:n,Feature:r}=s;if(!this.features[t]&&r&&n(this.props)&&(this.features[t]=new r(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):H()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,s){this.latestValues[t]=s}update(t,s){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let n=0;n<Or.length;n++){const r=Or[n];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const o="on"+r,i=t[o];i&&(this.propEventSubscriptions[r]=this.on(r,i))}this.prevMotionValues=vu(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const s=this.getClosestVariantNode();if(s)return s.variantChildren&&s.variantChildren.add(t),()=>s.variantChildren.delete(t)}addValue(t,s){const n=this.values.get(t);s!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,s),this.values.set(t,s),this.latestValues[t]=s.get())}removeValue(t){this.values.delete(t);const s=this.valueSubscriptions.get(t);s&&(s(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,s){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&s!==void 0&&(n=ct(s===null?void 0:s,{owner:this}),this.addValue(t,n)),n}readValue(t,s){let n=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return n!=null&&(typeof n=="string"&&(ki(n)||Si(n))?n=parseFloat(n):!Sc(n)&&Fe.test(s)&&(n=lo(t,s)),this.setBaseTarget(t,te(n)?n.get():n)),te(n)?n.get():n}setBaseTarget(t,s){this.baseTarget[t]=s}getBaseTarget(t){const{initial:s}=this.props;let n;if(typeof s=="string"||typeof s=="object"){const o=Hn(this.props,s,this.presenceContext?.custom);o&&(n=o[t])}if(s&&n!==void 0)return n;const r=this.getBaseTargetFromProps(this.props,t);return r!==void 0&&!te(r)?r:this.initialValues[t]!==void 0&&n===void 0?void 0:this.baseTarget[t]}on(t,s){return this.events[t]||(this.events[t]=new En),this.events[t].add(s)}notify(t,...s){this.events[t]&&this.events[t].notify(...s)}scheduleRenderMicrotask(){qn.render(this.render)}}class Lo extends bu{constructor(){super(...arguments),this.KeyframeResolver=mc}sortInstanceNodePosition(t,s){return t.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(t,s){return t.style?t.style[s]:void 0}removeValueFromRenderState(t,{vars:s,style:n}){delete s[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;te(t)&&(this.childSubscription=t.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}function Bo(e,{style:t,vars:s},n,r){const o=e.style;let i;for(i in t)o[i]=t[i];r?.applyProjectionStyles(o,n);for(i in s)o.setProperty(i,s[i])}function wu(e){return window.getComputedStyle(e)}class Au extends Lo{constructor(){super(...arguments),this.type="html",this.renderInstance=Bo}readValueFromInstance(t,s){if(pt.has(s))return this.projection?.isProjecting?nn(s):Ml(t,s);{const n=wu(t),r=(Ui(s)?n.getPropertyValue(s):n[s])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:s}){return Do(t,s)}build(t,s,n){Gn(t,s,n.transformTemplate)}scrapeMotionValuesFromProps(t,s,n){return Xn(t,s,n)}}const Oo=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Cu(e,t,s,n){Bo(e,t,void 0,n);for(const r in t.attrs)e.setAttribute(Oo.has(r)?r:Zn(r),t.attrs[r])}class ku extends Lo{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=H}getBaseTargetFromProps(t,s){return t[s]}readValueFromInstance(t,s){if(pt.has(s)){const n=ao(s);return n&&n.default||0}return s=Oo.has(s)?s:Zn(s),t.getAttribute(s)}scrapeMotionValuesFromProps(t,s,n){return Eo(t,s,n)}build(t,s,n){Co(t,s,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,s,n,r){Cu(t,s,n,r)}mount(t){this.isSVGTag=To(t.tagName),super.mount(t)}}const Tu=(e,t)=>t.isSVG??Qn(e)?new ku(t):new Au(t,{allowProjection:e!==g.Fragment});function lt(e,t,s){const n=e.getProps();return Hn(n,t,s!==void 0?s:n.custom,e)}const mn=e=>Array.isArray(e);function Su(e,t,s){e.hasValue(t)?e.getValue(t).set(s):e.addValue(t,ct(s))}function Eu(e){return mn(e)?e[e.length-1]||0:e}function Pu(e,t){const s=lt(e,t);let{transitionEnd:n={},transition:r={},...o}=s||{};o={...o,...n};for(const i in o){const a=Eu(o[i]);Su(e,i,a)}}function ju(e){return!!(te(e)&&e.add)}function gn(e,t){const s=e.getValue("willChange");if(ju(s))return s.add(t);if(!s&&Pe.WillChange){const n=new Pe.WillChange("auto");e.addValue("willChange",n),n.add(t)}}function Io(e){return e.props[Po]}const Ru=e=>e!==null;function Nu(e,{repeat:t,repeatType:s="loop"},n){const r=e.filter(Ru),o=t&&s!=="loop"&&t%2===1?0:r.length-1;return r[o]}const Vu={type:"spring",stiffness:500,damping:25,restSpeed:10},Mu=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Du={type:"keyframes",duration:.8},Fu={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Lu=(e,{keyframes:t})=>t.length>2?Du:pt.has(e)?e.startsWith("scale")?Mu(t[1]):Vu:Fu;function Bu({when:e,delay:t,delayChildren:s,staggerChildren:n,staggerDirection:r,repeat:o,repeatType:i,repeatDelay:a,from:c,elapsed:d,...u}){return!!Object.keys(u).length}const $n=(e,t,s,n={},r,o)=>i=>{const a=Un(n,e)||{},c=a.delay||n.delay||0;let{elapsed:d=0}=n;d=d-we(c);const u={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-d,onUpdate:p=>{t.set(p),a.onUpdate&&a.onUpdate(p)},onComplete:()=>{i(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:r};Bu(a)||Object.assign(u,Lu(e,u)),u.duration&&(u.duration=we(u.duration)),u.repeatDelay&&(u.repeatDelay=we(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let h=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(cn(u),u.delay===0&&(h=!0)),(Pe.instantAnimations||Pe.skipAnimations)&&(h=!0,cn(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,h&&!o&&t.get()!==void 0){const p=Nu(u.keyframes,a);if(p!==void 0){W.update(()=>{u.onUpdate(p),u.onComplete()});return}}return a.isSync?new On(u):new sc(u)};function Ou({protectedKeys:e,needsAnimating:t},s){const n=e.hasOwnProperty(s)&&t[s]!==!0;return t[s]=!1,n}function Uo(e,t,{delay:s=0,transitionOverride:n,type:r}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:i,...a}=t;n&&(o=n);const c=[],d=r&&e.animationState&&e.animationState.getState()[r];for(const u in a){const h=e.getValue(u,e.latestValues[u]??null),p=a[u];if(p===void 0||d&&Ou(d,u))continue;const m={delay:s,...Un(o||{},u)},x=h.get();if(x!==void 0&&!h.isAnimating&&!Array.isArray(p)&&p===x&&!m.velocity)continue;let w=!1;if(window.MotionHandoffAnimation){const y=Io(e);if(y){const C=window.MotionHandoffAnimation(y,u,W);C!==null&&(m.startTime=C,w=!0)}}gn(e,u),h.start($n(u,h,p,e.shouldReduceMotion&&ro.has(u)?{type:!1}:m,e,w));const v=h.animation;v&&c.push(v)}return i&&Promise.all(c).then(()=>{W.update(()=>{i&&Pu(e,i)})}),c}function Wo(e,t,s,n=0,r=1){const o=Array.from(e).sort((d,u)=>d.sortNodePosition(u)).indexOf(t),i=e.size,a=(i-1)*n;return typeof s=="function"?s(o,i):r===1?o*n:a-o*n}function yn(e,t,s={}){const n=lt(e,t,s.type==="exit"?e.presenceContext?.custom:void 0);let{transition:r=e.getDefaultTransition()||{}}=n||{};s.transitionOverride&&(r=s.transitionOverride);const o=n?()=>Promise.all(Uo(e,n,s)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:u,staggerDirection:h}=r;return Iu(e,t,c,d,u,h,s)}:()=>Promise.resolve(),{when:a}=r;if(a){const[c,d]=a==="beforeChildren"?[o,i]:[i,o];return c().then(()=>d())}else return Promise.all([o(),i(s.delay)])}function Iu(e,t,s=0,n=0,r=0,o=1,i){const a=[];for(const c of e.variantChildren)c.notify("AnimationStart",t),a.push(yn(c,t,{...i,delay:s+(typeof n=="function"?0:n)+Wo(e.variantChildren,c,n,r,o)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(a)}function Uu(e,t,s={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const r=t.map(o=>yn(e,o,s));n=Promise.all(r)}else if(typeof t=="string")n=yn(e,t,s);else{const r=typeof t=="function"?lt(e,t,s.custom):t;n=Promise.all(Uo(e,r,s))}return n.then(()=>{e.notify("AnimationComplete",t)})}function qo(e,t){if(!Array.isArray(t))return!1;const s=t.length;if(s!==e.length)return!1;for(let n=0;n<s;n++)if(t[n]!==e[n])return!1;return!0}const Wu=zn.length;function _o(e){if(!e)return;if(!e.isControllingVariants){const s=e.parent?_o(e.parent)||{}:{};return e.props.initial!==void 0&&(s.initial=e.props.initial),s}const t={};for(let s=0;s<Wu;s++){const n=zn[s],r=e.props[n];(It(r)||r===!1)&&(t[n]=r)}return t}const qu=[...Yn].reverse(),_u=Yn.length;function Ku(e){return t=>Promise.all(t.map(({animation:s,options:n})=>Uu(e,s,n)))}function Yu(e){let t=Ku(e),s=Ir(),n=!0;const r=c=>(d,u)=>{const h=lt(e,u,c==="exit"?e.presenceContext?.custom:void 0);if(h){const{transition:p,transitionEnd:m,...x}=h;d={...d,...x,...m}}return d};function o(c){t=c(e)}function i(c){const{props:d}=e,u=_o(e.parent)||{},h=[],p=new Set;let m={},x=1/0;for(let v=0;v<_u;v++){const y=qu[v],C=s[y],A=d[y]!==void 0?d[y]:u[y],N=It(A),P=y===c?C.isActive:null;P===!1&&(x=v);let D=A===u[y]&&A!==d[y]&&N;if(D&&n&&e.manuallyAnimateOnMount&&(D=!1),C.protectedKeys={...m},!C.isActive&&P===null||!A&&!C.prevProp||bs(A)||typeof A=="boolean")continue;const j=zu(C.prevProp,A);let E=j||y===c&&C.isActive&&!D&&N||v>x&&N,U=!1;const J=Array.isArray(A)?A:[A];let oe=J.reduce(r(y),{});P===!1&&(oe={});const{prevResolvedValues:ke={}}=C,ue={...ke,...oe},de=q=>{E=!0,p.has(q)&&(U=!0,p.delete(q)),C.needsAnimating[q]=!0;const X=e.getValue(q);X&&(X.liveStyle=!1)};for(const q in ue){const X=oe[q],re=ke[q];if(m.hasOwnProperty(q))continue;let ae=!1;mn(X)&&mn(re)?ae=!qo(X,re):ae=X!==re,ae?X!=null?de(q):p.add(q):X!==void 0&&p.has(q)?de(q):C.protectedKeys[q]=!0}C.prevProp=A,C.prevResolvedValues=oe,C.isActive&&(m={...m,...oe}),n&&e.blockInitialAnimation&&(E=!1);const xe=D&&j;E&&(!xe||U)&&h.push(...J.map(q=>{const X={type:y};if(typeof q=="string"&&n&&!xe&&e.manuallyAnimateOnMount&&e.parent){const{parent:re}=e,ae=lt(re,q);if(re.enteringChildren&&ae){const{delayChildren:Be}=ae.transition||{};X.delay=Wo(re.enteringChildren,e,Be)}}return{animation:q,options:X}}))}if(p.size){const v={};if(typeof d.initial!="boolean"){const y=lt(e,Array.isArray(d.initial)?d.initial[0]:d.initial);y&&y.transition&&(v.transition=y.transition)}p.forEach(y=>{const C=e.getBaseTarget(y),A=e.getValue(y);A&&(A.liveStyle=!0),v[y]=C??null}),h.push({animation:v})}let w=!!h.length;return n&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(w=!1),n=!1,w?t(h):Promise.resolve()}function a(c,d){if(s[c].isActive===d)return Promise.resolve();e.variantChildren?.forEach(h=>h.animationState?.setActive(c,d)),s[c].isActive=d;const u=i(c);for(const h in s)s[h].protectedKeys={};return u}return{animateChanges:i,setActive:a,setAnimateFunction:o,getState:()=>s,reset:()=>{s=Ir()}}}function zu(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!qo(t,e):!1}function _e(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ir(){return{animate:_e(!0),whileInView:_e(),whileHover:_e(),whileTap:_e(),whileDrag:_e(),whileFocus:_e(),exit:_e()}}class Le{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Gu extends Le{constructor(t){super(t),t.animationState||(t.animationState=Yu(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();bs(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:s}=this.node.prevProps||{};t!==s&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let Ju=0;class Qu extends Le{constructor(){super(...arguments),this.id=Ju++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:s}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const r=this.node.animationState.setActive("exit",!t);s&&!t&&r.then(()=>{s(this.id)})}mount(){const{register:t,onExitComplete:s}=this.node.presenceContext||{};s&&s(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const Hu={animation:{Feature:Gu},exit:{Feature:Qu}};function Ut(e,t,s,n={passive:!0}){return e.addEventListener(t,s,n),()=>e.removeEventListener(t,s)}function Kt(e){return{point:{x:e.pageX,y:e.pageY}}}const Xu=e=>t=>_n(t)&&e(t,Kt(t));function Mt(e,t,s,n){return Ut(e,t,Xu(s),n)}const Ko=1e-4,Zu=1-Ko,$u=1+Ko,Yo=.01,ed=0-Yo,td=0+Yo;function ne(e){return e.max-e.min}function sd(e,t,s){return Math.abs(e-t)<=s}function Ur(e,t,s,n=.5){e.origin=n,e.originPoint=z(t.min,t.max,e.origin),e.scale=ne(s)/ne(t),e.translate=z(s.min,s.max,e.origin)-e.originPoint,(e.scale>=Zu&&e.scale<=$u||isNaN(e.scale))&&(e.scale=1),(e.translate>=ed&&e.translate<=td||isNaN(e.translate))&&(e.translate=0)}function Dt(e,t,s,n){Ur(e.x,t.x,s.x,n?n.originX:void 0),Ur(e.y,t.y,s.y,n?n.originY:void 0)}function Wr(e,t,s){e.min=s.min+t.min,e.max=e.min+ne(t)}function nd(e,t,s){Wr(e.x,t.x,s.x),Wr(e.y,t.y,s.y)}function qr(e,t,s){e.min=t.min-s.min,e.max=e.min+ne(t)}function ms(e,t,s){qr(e.x,t.x,s.x),qr(e.y,t.y,s.y)}function fe(e){return[e("x"),e("y")]}const zo=({current:e})=>e?e.ownerDocument.defaultView:null,_r=(e,t)=>Math.abs(e-t);function rd(e,t){const s=_r(e.x,t.x),n=_r(e.y,t.y);return Math.sqrt(s**2+n**2)}const Kr=new Set(["auto","scroll"]);class Go{constructor(t,s,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:o=!1,distanceThreshold:i=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=m=>{this.handleScroll(m.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=Ks(this.lastMoveEventInfo,this.history),x=this.startEvent!==null,w=rd(m.offset,{x:0,y:0})>=this.distanceThreshold;if(!x&&!w)return;const{point:v}=m,{timestamp:y}=ee;this.history.push({...v,timestamp:y});const{onStart:C,onMove:A}=this.handlers;x||(C&&C(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),A&&A(this.lastMoveEvent,m)},this.handlePointerMove=(m,x)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=_s(x,this.transformPagePoint),W.update(this.updatePoint,!0)},this.handlePointerUp=(m,x)=>{this.end();const{onEnd:w,onSessionEnd:v,resumeAnimation:y}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=Ks(m.type==="pointercancel"?this.lastMoveEventInfo:_s(x,this.transformPagePoint),this.history);this.startEvent&&w&&w(m,C),v&&v(m,C)},!_n(t))return;this.dragSnapToOrigin=o,this.handlers=s,this.transformPagePoint=n,this.distanceThreshold=i,this.contextWindow=r||window;const c=Kt(t),d=_s(c,this.transformPagePoint),{point:u}=d,{timestamp:h}=ee;this.history=[{...u,timestamp:h}];const{onSessionStart:p}=s;p&&p(t,Ks(d,this.history)),this.removeListeners=Wt(Mt(this.contextWindow,"pointermove",this.handlePointerMove),Mt(this.contextWindow,"pointerup",this.handlePointerUp),Mt(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(t){let s=t.parentElement;for(;s;){const n=getComputedStyle(s);(Kr.has(n.overflowX)||Kr.has(n.overflowY))&&this.scrollPositions.set(s,{x:s.scrollLeft,y:s.scrollTop}),s=s.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const s=this.scrollPositions.get(t);if(!s)return;const n=t===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},o={x:r.x-s.x,y:r.y-s.y};o.x===0&&o.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=o.x,this.lastMoveEventInfo.point.y+=o.y):this.history.length>0&&(this.history[0].x-=o.x,this.history[0].y-=o.y),this.scrollPositions.set(t,r),W.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),De(this.updatePoint)}}function _s(e,t){return t?{point:t(e.point)}:e}function Yr(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ks({point:e},t){return{point:e,delta:Yr(e,Jo(t)),offset:Yr(e,id(t)),velocity:od(t,.1)}}function id(e){return e[0]}function Jo(e){return e[e.length-1]}function od(e,t){if(e.length<2)return{x:0,y:0};let s=e.length-1,n=null;const r=Jo(e);for(;s>=0&&(n=e[s],!(r.timestamp-n.timestamp>we(t)));)s--;if(!n)return{x:0,y:0};const o=pe(r.timestamp-n.timestamp);if(o===0)return{x:0,y:0};const i={x:(r.x-n.x)/o,y:(r.y-n.y)/o};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function ad(e,{min:t,max:s},n){return t!==void 0&&e<t?e=n?z(t,e,n.min):Math.max(e,t):s!==void 0&&e>s&&(e=n?z(s,e,n.max):Math.min(e,s)),e}function zr(e,t,s){return{min:t!==void 0?e.min+t:void 0,max:s!==void 0?e.max+s-(e.max-e.min):void 0}}function ld(e,{top:t,left:s,bottom:n,right:r}){return{x:zr(e.x,s,r),y:zr(e.y,t,n)}}function Gr(e,t){let s=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([s,n]=[n,s]),{min:s,max:n}}function cd(e,t){return{x:Gr(e.x,t.x),y:Gr(e.y,t.y)}}function ud(e,t){let s=.5;const n=ne(e),r=ne(t);return r>n?s=Lt(t.min,t.max-n,e.min):n>r&&(s=Lt(e.min,e.max-r,t.min)),Ce(0,1,s)}function dd(e,t){const s={};return t.min!==void 0&&(s.min=t.min-e.min),t.max!==void 0&&(s.max=t.max-e.min),s}const xn=.35;function hd(e=xn){return e===!1?e=0:e===!0&&(e=xn),{x:Jr(e,"left","right"),y:Jr(e,"top","bottom")}}function Jr(e,t,s){return{min:Qr(e,t),max:Qr(e,s)}}function Qr(e,t){return typeof e=="number"?e:e[t]||0}const fd=new WeakMap;class pd{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=H(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:s=!1,distanceThreshold:n}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=h=>{s?(this.stopAnimation(),this.snapToCursor(Kt(h).point)):this.pauseAnimation()},i=(h,p)=>{this.stopAnimation();const{drag:m,dragPropagation:x,onDragStart:w}=this.getProps();if(m&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=vc(m),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=p,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),fe(y=>{let C=this.getAxisMotionValue(y).get()||0;if(Ae.test(C)){const{projection:A}=this.visualElement;if(A&&A.layout){const N=A.layout.layoutBox[y];N&&(C=ne(N)*(parseFloat(C)/100))}}this.originPoint[y]=C}),w&&W.postRender(()=>w(h,p)),gn(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},a=(h,p)=>{this.latestPointerEvent=h,this.latestPanInfo=p;const{dragPropagation:m,dragDirectionLock:x,onDirectionLock:w,onDrag:v}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:y}=p;if(x&&this.currentDirection===null){this.currentDirection=md(y),this.currentDirection!==null&&w&&w(this.currentDirection);return}this.updateAxis("x",p.point,y),this.updateAxis("y",p.point,y),this.visualElement.render(),v&&v(h,p)},c=(h,p)=>{this.latestPointerEvent=h,this.latestPanInfo=p,this.stop(h,p),this.latestPointerEvent=null,this.latestPanInfo=null},d=()=>fe(h=>this.getAnimationState(h)==="paused"&&this.getAxisMotionValue(h).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Go(t,{onSessionStart:o,onStart:i,onMove:a,onSessionEnd:c,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:n,contextWindow:zo(this.visualElement),element:this.visualElement.current})}stop(t,s){const n=t||this.latestPointerEvent,r=s||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!r||!n)return;const{velocity:i}=r;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&W.postRender(()=>a(n,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:s}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),s&&s.setActive("whileDrag",!1)}updateAxis(t,s,n){const{drag:r}=this.getProps();if(!n||!is(t,r,this.currentDirection))return;const o=this.getAxisMotionValue(t);let i=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(i=ad(i,this.constraints[t],this.elastic[t])),o.set(i)}resolveConstraints(){const{dragConstraints:t,dragElastic:s}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;t&&Nt(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=ld(n.layoutBox,t):this.constraints=!1,this.elastic=hd(s),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&fe(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=dd(n.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:s}=this.getProps();if(!t||!Nt(t))return!1;const n=t.current;Ee(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=gu(n,r.root,this.visualElement.getTransformPagePoint());let i=cd(r.layout.layoutBox,o);if(s){const a=s(fu(i));this.hasMutatedConstraints=!!a,a&&(i=No(a))}return i}startAnimation(t){const{drag:s,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},d=fe(u=>{if(!is(u,s,this.currentDirection))return;let h=c&&c[u]||{};i&&(h={min:0,max:0});const p=r?200:1e6,m=r?40:1e7,x={type:"inertia",velocity:n?t[u]:0,bounceStiffness:p,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(u,x)});return Promise.all(d).then(a)}startAxisValueAnimation(t,s){const n=this.getAxisMotionValue(t);return gn(this.visualElement,t),n.start($n(t,n,0,s,this.visualElement,!1))}stopAnimation(){fe(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){fe(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const s=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),r=n[s];return r||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){fe(s=>{const{drag:n}=this.getProps();if(!is(s,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(s);if(r&&r.layout){const{min:i,max:a}=r.layout.layoutBox[s],c=o.get()||0;o.set(t[s]-z(i,a,.5)+c)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:s}=this.getProps(),{projection:n}=this.visualElement;if(!Nt(s)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};fe(i=>{const a=this.getAxisMotionValue(i);if(a&&this.constraints!==!1){const c=a.get();r[i]=ud({min:c,max:c},this.constraints[i])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),fe(i=>{if(!is(i,t,null))return;const a=this.getAxisMotionValue(i),{min:c,max:d}=this.constraints[i];a.set(z(c,d,r[i]))})}addListeners(){if(!this.visualElement.current)return;fd.set(this.visualElement,this);const t=this.visualElement.current,s=Mt(t,"pointerdown",c=>{const{drag:d,dragListener:u=!0}=this.getProps();d&&u&&!mo(c.target)&&this.start(c)}),n=()=>{const{dragConstraints:c}=this.getProps();Nt(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,o=r.addEventListener("measure",n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),W.read(n);const i=Ut(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",(({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(fe(u=>{const h=this.getAxisMotionValue(u);h&&(this.originPoint[u]+=c[u].translate,h.set(h.get()+c[u].translate))}),this.visualElement.render())}));return()=>{i(),s(),o(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=xn,dragMomentum:a=!0}=t;return{...t,drag:s,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function is(e,t,s){return(t===!0||t===e)&&(s===null||s===e)}function md(e,t=10){let s=null;return Math.abs(e.y)>t?s="y":Math.abs(e.x)>t&&(s="x"),s}class gd extends Le{constructor(t){super(t),this.removeGroupControls=me,this.removeListeners=me,this.controls=new pd(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||me}update(){const{dragControls:t}=this.node.getProps(),{dragControls:s}=this.node.prevProps||{};t!==s&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners()}}const Hr=e=>(t,s)=>{e&&W.postRender(()=>e(t,s))};class yd extends Le{constructor(){super(...arguments),this.removePointerDownListener=me}onPointerDown(t){this.session=new Go(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:zo(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:s,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Hr(t),onStart:Hr(s),onMove:n,onEnd:(o,i)=>{delete this.session,r&&W.postRender(()=>r(o,i))}}}mount(){this.removePointerDownListener=Mt(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const cs={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let Ys=!1;class xd extends g.Component{componentDidMount(){const{visualElement:t,layoutGroup:s,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=t;o&&(s.group&&s.group.add(o),n&&n.register&&r&&n.register(o),Ys&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),cs.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:s,visualElement:n,drag:r,isPresent:o}=this.props,{projection:i}=n;return i&&(i.isPresent=o,Ys=!0,r||t.layoutDependency!==s||s===void 0||t.isPresent!==o?i.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?i.promote():i.relegate()||W.postRender(()=>{const a=i.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),qn.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:s,switchLayoutGroup:n}=this.props,{projection:r}=t;Ys=!0,r&&(r.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Qo(e){const[t,s]=yo(),n=g.useContext(wn);return l.jsx(xd,{...e,layoutGroup:n,switchLayoutGroup:g.useContext(jo),isPresent:t,safeToRemove:s})}function vd(e,t,s){const n=te(e)?e:ct(e);return n.start($n("",n,t,s)),n.animation}const bd=(e,t)=>e.depth-t.depth;class wd{constructor(){this.children=[],this.isDirty=!1}add(t){kn(this.children,t),this.isDirty=!0}remove(t){Tn(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(bd),this.isDirty=!1,this.children.forEach(t)}}function Ad(e,t){const s=se.now(),n=({timestamp:r})=>{const o=r-s;o>=t&&(De(n),e(o-t))};return W.setup(n,!0),()=>De(n)}const Ho=["TopLeft","TopRight","BottomLeft","BottomRight"],Cd=Ho.length,Xr=e=>typeof e=="string"?parseFloat(e):e,Zr=e=>typeof e=="number"||S.test(e);function kd(e,t,s,n,r,o){r?(e.opacity=z(0,s.opacity??1,Td(n)),e.opacityExit=z(t.opacity??1,0,Sd(n))):o&&(e.opacity=z(t.opacity??1,s.opacity??1,n));for(let i=0;i<Cd;i++){const a=`border${Ho[i]}Radius`;let c=$r(t,a),d=$r(s,a);if(c===void 0&&d===void 0)continue;c||(c=0),d||(d=0),c===0||d===0||Zr(c)===Zr(d)?(e[a]=Math.max(z(Xr(c),Xr(d),n),0),(Ae.test(d)||Ae.test(c))&&(e[a]+="%")):e[a]=d}(t.rotate||s.rotate)&&(e.rotate=z(t.rotate||0,s.rotate||0,n))}function $r(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Td=Xo(0,.5,Di),Sd=Xo(.5,.95,me);function Xo(e,t,s){return n=>n<e?0:n>t?1:s(Lt(e,t,n))}function ei(e,t){e.min=t.min,e.max=t.max}function ge(e,t){ei(e.x,t.x),ei(e.y,t.y)}function ti(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function si(e,t,s,n,r){return e-=t,e=ps(e,1/s,n),r!==void 0&&(e=ps(e,1/r,n)),e}function Ed(e,t=0,s=1,n=.5,r,o=e,i=e){if(Ae.test(t)&&(t=parseFloat(t),t=z(i.min,i.max,t/100)-i.min),typeof t!="number")return;let a=z(o.min,o.max,n);e===o&&(a-=t),e.min=si(e.min,t,s,a,r),e.max=si(e.max,t,s,a,r)}function ni(e,t,[s,n,r],o,i){Ed(e,t[s],t[n],t[r],t.scale,o,i)}const Pd=["x","scaleX","originX"],jd=["y","scaleY","originY"];function ri(e,t,s,n){ni(e.x,t,Pd,s?s.x:void 0,n?n.x:void 0),ni(e.y,t,jd,s?s.y:void 0,n?n.y:void 0)}function ii(e){return e.translate===0&&e.scale===1}function Zo(e){return ii(e.x)&&ii(e.y)}function oi(e,t){return e.min===t.min&&e.max===t.max}function Rd(e,t){return oi(e.x,t.x)&&oi(e.y,t.y)}function ai(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function $o(e,t){return ai(e.x,t.x)&&ai(e.y,t.y)}function li(e){return ne(e.x)/ne(e.y)}function ci(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Nd{constructor(){this.members=[]}add(t){kn(this.members,t),t.scheduleRender()}remove(t){if(Tn(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(t){const s=this.members.findIndex(r=>t===r);if(s===0)return!1;let n;for(let r=s;r>=0;r--){const o=this.members[r];if(o.isPresent!==!1){n=o;break}}return n?(this.promote(n),!0):!1}promote(t,s){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,s&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:r}=t.options;r===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:s,resumingFrom:n}=t;s.onExitComplete&&s.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Vd(e,t,s){let n="";const r=e.x.translate/t.x,o=e.y.translate/t.y,i=s?.z||0;if((r||o||i)&&(n=`translate3d(${r}px, ${o}px, ${i}px) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),s){const{transformPerspective:d,rotate:u,rotateX:h,rotateY:p,skewX:m,skewY:x}=s;d&&(n=`perspective(${d}px) ${n}`),u&&(n+=`rotate(${u}deg) `),h&&(n+=`rotateX(${h}deg) `),p&&(n+=`rotateY(${p}deg) `),m&&(n+=`skewX(${m}deg) `),x&&(n+=`skewY(${x}deg) `)}const a=e.x.scale*t.x,c=e.y.scale*t.y;return(a!==1||c!==1)&&(n+=`scale(${a}, ${c})`),n||"none"}const zs=["","X","Y","Z"],Md=1e3;let Dd=0;function Gs(e,t,s,n){const{latestValues:r}=t;r[e]&&(s[e]=r[e],t.setStaticValue(e,0),n&&(n[e]=0))}function ea(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const s=Io(t);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:r,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",W,!(r||o))}const{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&ea(n)}function ta({attachResizeListener:e,defaultParent:t,measureScroll:s,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(i={},a=t?.()){this.id=Dd++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Bd),this.nodes.forEach(Wd),this.nodes.forEach(qd),this.nodes.forEach(Od)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new wd)}addEventListener(i,a){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new En),this.eventHandlers.get(i).add(a)}notifyListeners(i,...a){const c=this.eventHandlers.get(i);c&&c.notify(...a)}hasListeners(i){return this.eventHandlers.has(i)}mount(i){if(this.instance)return;this.isSVG=go(i)&&!kc(i),this.instance=i;const{layoutId:a,layout:c,visualElement:d}=this.options;if(d&&!d.current&&d.mount(i),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||a)&&(this.isLayoutDirty=!0),e){let u,h=0;const p=()=>this.root.updateBlockedByResize=!1;W.read(()=>{h=window.innerWidth}),e(i,()=>{const m=window.innerWidth;m!==h&&(h=m,this.root.updateBlockedByResize=!0,u&&u(),u=Ad(p,250),cs.hasAnimatedSinceResize&&(cs.hasAnimatedSinceResize=!1,this.nodes.forEach(hi)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&d&&(a||c)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:h,hasRelativeLayoutChanged:p,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||d.getDefaultTransition()||Gd,{onLayoutAnimationStart:w,onLayoutAnimationComplete:v}=d.getProps(),y=!this.targetLayout||!$o(this.targetLayout,m),C=!h&&p;if(this.options.layoutRoot||this.resumeFrom||C||h&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const A={...Un(x,"layout"),onPlay:w,onComplete:v};(d.shouldReduceMotion||this.options.layoutRoot)&&(A.delay=0,A.type=!1),this.startAnimation(A),this.setAnimationOrigin(u,C)}else h||hi(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),De(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(_d),this.animationId++)}getTransformTemplate(){const{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ea(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const h=this.path[u];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:c}=this.options;if(a===void 0&&!c)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),i&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ui);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(di);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Ud),this.nodes.forEach(Fd),this.nodes.forEach(Ld)):this.nodes.forEach(di),this.clearAllSnapshots();const a=se.now();ee.delta=Ce(0,1e3/60,a-ee.timestamp),ee.timestamp=a,ee.isProcessing=!0,Ds.update.process(ee),Ds.preRender.process(ee),Ds.render.process(ee),ee.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,qn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Id),this.sharedNodes.forEach(Kd)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,W.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){W.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ne(this.snapshot.measuredBox.x)&&!ne(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const i=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=H(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,i?i.layoutBox:void 0)}updateScroll(i="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===i&&(a=!1),a&&this.instance){const c=n(this.instance);this.scroll={animationId:this.root.animationId,phase:i,isRoot:c,offset:s(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!r)return;const i=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Zo(this.projectionDelta),c=this.getTransformTemplate(),d=c?c(this.latestValues,""):void 0,u=d!==this.prevTransformTemplateValue;i&&this.instance&&(a||Ke(this.latestValues)||u)&&(r(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(i=!0){const a=this.measurePageBox();let c=this.removeElementScroll(a);return i&&(c=this.removeTransform(c)),Jd(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:i}=this.options;if(!i)return H();const a=i.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Qd))){const{scroll:d}=this.root;d&&(it(a.x,d.offset.x),it(a.y,d.offset.y))}return a}removeElementScroll(i){const a=H();if(ge(a,i),this.scroll?.wasRoot)return a;for(let c=0;c<this.path.length;c++){const d=this.path[c],{scroll:u,options:h}=d;d!==this.root&&u&&h.layoutScroll&&(u.wasRoot&&ge(a,i),it(a.x,u.offset.x),it(a.y,u.offset.y))}return a}applyTransform(i,a=!1){const c=H();ge(c,i);for(let d=0;d<this.path.length;d++){const u=this.path[d];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&ot(c,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),Ke(u.latestValues)&&ot(c,u.latestValues)}return Ke(this.latestValues)&&ot(c,this.latestValues),c}removeTransform(i){const a=H();ge(a,i);for(let c=0;c<this.path.length;c++){const d=this.path[c];if(!d.instance||!Ke(d.latestValues))continue;hn(d.latestValues)&&d.updateSnapshot();const u=H(),h=d.measurePageBox();ge(u,h),ri(a,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,u)}return Ke(this.latestValues)&&ri(a,this.latestValues),a}setTargetDelta(i){this.targetDelta=i,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(i){this.options={...this.options,...i,crossfade:i.crossfade!==void 0?i.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ee.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(i=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==a;if(!(i||c&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:h}=this.options;if(!this.layout||!(u||h))return;this.resolvedRelativeTargetAt=ee.timestamp;const p=this.getClosestProjectingParent();p&&this.linkedParentVersion!==p.layoutVersion&&!p.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(p&&p.layout?this.createRelativeTarget(p,this.layout.layoutBox,p.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=H(),this.targetWithTransforms=H()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),nd(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ge(this.target,this.layout.layoutBox),Mo(this.target,this.targetDelta)):ge(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?this.createRelativeTarget(p,this.target,p.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||hn(this.parent.latestValues)||Vo(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(i,a,c){this.relativeParent=i,this.linkedParentVersion=i.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=H(),this.relativeTargetOrigin=H(),ms(this.relativeTargetOrigin,a,c),ge(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const i=this.getLead(),a=!!this.resumingFrom||this!==i;let c=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===ee.timestamp&&(c=!1),c)return;const{layout:d,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||u))return;ge(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,p=this.treeScale.y;mu(this.layoutCorrected,this.treeScale,this.path,a),i.layout&&!i.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(i.target=i.layout.layoutBox,i.targetWithTransforms=H());const{target:m}=i;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ti(this.prevProjectionDelta.x,this.projectionDelta.x),ti(this.prevProjectionDelta.y,this.projectionDelta.y)),Dt(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==p||!ci(this.projectionDelta.x,this.prevProjectionDelta.x)||!ci(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(i=!0){if(this.options.visualElement?.scheduleRender(),i){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=at(),this.projectionDelta=at(),this.projectionDeltaWithTransform=at()}setAnimationOrigin(i,a=!1){const c=this.snapshot,d=c?c.latestValues:{},u={...this.latestValues},h=at();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const p=H(),m=c?c.source:void 0,x=this.layout?this.layout.source:void 0,w=m!==x,v=this.getStack(),y=!v||v.members.length<=1,C=!!(w&&!y&&this.options.crossfade===!0&&!this.path.some(zd));this.animationProgress=0;let A;this.mixTargetDelta=N=>{const P=N/1e3;fi(h.x,i.x,P),fi(h.y,i.y,P),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ms(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Yd(this.relativeTarget,this.relativeTargetOrigin,p,P),A&&Rd(this.relativeTarget,A)&&(this.isProjectionDirty=!1),A||(A=H()),ge(A,this.relativeTarget)),w&&(this.animationValues=u,kd(u,d,this.latestValues,P,C,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(De(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=W.update(()=>{cs.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ct(0)),this.currentAnimation=vd(this.motionValue,[0,1e3],{...i,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),i.onUpdate&&i.onUpdate(a)},onStop:()=>{},onComplete:()=>{i.onComplete&&i.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Md),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const i=this.getLead();let{targetWithTransforms:a,target:c,layout:d,latestValues:u}=i;if(!(!a||!c||!d)){if(this!==i&&this.layout&&d&&sa(this.options.animationType,this.layout.layoutBox,d.layoutBox)){c=this.target||H();const h=ne(this.layout.layoutBox.x);c.x.min=i.target.x.min,c.x.max=c.x.min+h;const p=ne(this.layout.layoutBox.y);c.y.min=i.target.y.min,c.y.max=c.y.min+p}ge(a,c),ot(a,u),Dt(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(i,a){this.sharedNodes.has(i)||this.sharedNodes.set(i,new Nd),this.sharedNodes.get(i).add(a);const d=a.options.initialPromotionConfig;a.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(a):void 0})}isLead(){const i=this.getStack();return i?i.lead===this:!0}getLead(){const{layoutId:i}=this.options;return i?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:i}=this.options;return i?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:a,preserveFollowOpacity:c}={}){const d=this.getStack();d&&d.promote(this,c),i&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const i=this.getStack();return i?i.relegate(this):!1}resetSkewAndRotation(){const{visualElement:i}=this.options;if(!i)return;let a=!1;const{latestValues:c}=i;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(a=!0),!a)return;const d={};c.z&&Gs("z",i,d,this.animationValues);for(let u=0;u<zs.length;u++)Gs(`rotate${zs[u]}`,i,d,this.animationValues),Gs(`skew${zs[u]}`,i,d,this.animationValues);i.render();for(const u in d)i.setStaticValue(u,d[u]),this.animationValues&&(this.animationValues[u]=d[u]);i.scheduleRender()}applyProjectionStyles(i,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){i.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,i.visibility="",i.opacity="",i.pointerEvents=ls(a?.pointerEvents)||"",i.transform=c?c(this.latestValues,""):"none";return}const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){this.options.layoutId&&(i.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,i.pointerEvents=ls(a?.pointerEvents)||""),this.hasProjected&&!Ke(this.latestValues)&&(i.transform=c?c({},""):"none",this.hasProjected=!1);return}i.visibility="";const u=d.animationValues||d.latestValues;this.applyTransformsToTarget();let h=Vd(this.projectionDeltaWithTransform,this.treeScale,u);c&&(h=c(u,h)),i.transform=h;const{x:p,y:m}=this.projectionDelta;i.transformOrigin=`${p.origin*100}% ${m.origin*100}% 0`,d.animationValues?i.opacity=d===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:i.opacity=d===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const x in dn){if(u[x]===void 0)continue;const{correct:w,applyTo:v,isCSSVariable:y}=dn[x],C=h==="none"?u[x]:w(u[x],d);if(v){const A=v.length;for(let N=0;N<A;N++)i[v[N]]=C}else y?this.options.visualElement.renderState.vars[x]=C:i[x]=C}this.options.layoutId&&(i.pointerEvents=d===this?ls(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>i.currentAnimation?.stop()),this.root.nodes.forEach(ui),this.root.sharedNodes.clear()}}}function Fd(e){e.updateLayout()}function Ld(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:n}=e.layout,{animationType:r}=e.options,o=t.source!==e.layout.source;r==="size"?fe(u=>{const h=o?t.measuredBox[u]:t.layoutBox[u],p=ne(h);h.min=s[u].min,h.max=h.min+p}):sa(r,t.layoutBox,s)&&fe(u=>{const h=o?t.measuredBox[u]:t.layoutBox[u],p=ne(s[u]);h.max=h.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[u].max=e.relativeTarget[u].min+p)});const i=at();Dt(i,s,t.layoutBox);const a=at();o?Dt(a,e.applyTransform(n,!0),t.measuredBox):Dt(a,s,t.layoutBox);const c=!Zo(i);let d=!1;if(!e.resumeFrom){const u=e.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:h,layout:p}=u;if(h&&p){const m=H();ms(m,t.layoutBox,h.layoutBox);const x=H();ms(x,s,p.layoutBox),$o(m,x)||(d=!0),u.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=m,e.relativeParent=u)}}}e.notifyListeners("didUpdate",{layout:s,snapshot:t,delta:a,layoutDelta:i,hasLayoutChanged:c,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:s}=e.options;s&&s()}e.options.transition=void 0}function Bd(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Od(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Id(e){e.clearSnapshot()}function ui(e){e.clearMeasurements()}function di(e){e.isLayoutDirty=!1}function Ud(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function hi(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Wd(e){e.resolveTargetDelta()}function qd(e){e.calcProjection()}function _d(e){e.resetSkewAndRotation()}function Kd(e){e.removeLeadSnapshot()}function fi(e,t,s){e.translate=z(t.translate,0,s),e.scale=z(t.scale,1,s),e.origin=t.origin,e.originPoint=t.originPoint}function pi(e,t,s,n){e.min=z(t.min,s.min,n),e.max=z(t.max,s.max,n)}function Yd(e,t,s,n){pi(e.x,t.x,s.x,n),pi(e.y,t.y,s.y,n)}function zd(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Gd={duration:.45,ease:[.4,0,.1,1]},mi=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),gi=mi("applewebkit/")&&!mi("chrome/")?Math.round:me;function yi(e){e.min=gi(e.min),e.max=gi(e.max)}function Jd(e){yi(e.x),yi(e.y)}function sa(e,t,s){return e==="position"||e==="preserve-aspect"&&!sd(li(t),li(s),.2)}function Qd(e){return e!==e.root&&e.scroll?.wasRoot}const Hd=ta({attachResizeListener:(e,t)=>Ut(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Js={current:void 0},na=ta({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Js.current){const e=new Hd({});e.mount(window),e.setOptions({layoutScroll:!0}),Js.current=e}return Js.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Xd={pan:{Feature:yd},drag:{Feature:gd,ProjectionNode:na,MeasureLayout:Qo}};function xi(e,t,s){const{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover",s==="Start");const r="onHover"+s,o=n[r];o&&W.postRender(()=>o(t,Kt(t)))}class Zd extends Le{mount(){const{current:t}=this.node;t&&(this.unmount=bc(t,(s,n)=>(xi(this.node,n,"Start"),r=>xi(this.node,r,"End"))))}unmount(){}}class $d extends Le{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Wt(Ut(this.node.current,"focus",()=>this.onFocus()),Ut(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function vi(e,t,s){const{props:n}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap",s==="Start");const r="onTap"+(s==="End"?"":s),o=n[r];o&&W.postRender(()=>o(t,Kt(t)))}class eh extends Le{mount(){const{current:t}=this.node;t&&(this.unmount=Cc(t,(s,n)=>(vi(this.node,n,"Start"),(r,{success:o})=>vi(this.node,r,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const vn=new WeakMap,Qs=new WeakMap,th=e=>{const t=vn.get(e.target);t&&t(e)},sh=e=>{e.forEach(th)};function nh({root:e,...t}){const s=e||document;Qs.has(s)||Qs.set(s,{});const n=Qs.get(s),r=JSON.stringify(t);return n[r]||(n[r]=new IntersectionObserver(sh,{root:e,...t})),n[r]}function rh(e,t,s){const n=nh(t);return vn.set(e,s),n.observe(e),()=>{vn.delete(e),n.unobserve(e)}}const ih={some:0,all:1};class oh extends Le{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:s,margin:n,amount:r="some",once:o}=t,i={root:s?s.current:void 0,rootMargin:n,threshold:typeof r=="number"?r:ih[r]},a=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:u,onViewportLeave:h}=this.node.getProps(),p=d?u:h;p&&p(c)};return rh(this.node.current,i,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:s}=this.node;["amount","margin","root"].some(ah(t,s))&&this.startObserver()}unmount(){}}function ah({viewport:e={}},{viewport:t={}}={}){return s=>e[s]!==t[s]}const lh={inView:{Feature:oh},tap:{Feature:eh},focus:{Feature:$d},hover:{Feature:Zd}},ch={layout:{ProjectionNode:na,MeasureLayout:Qo}},uh={...Hu,...lh,...Xd,...ch},bi=hu(uh,Tu),dh=({steps:e,plannerStatus:t,executionStatus:s,reportStatus:n})=>{const{t:r}=ce.useTranslation(),o=e??[],[i,a]=g.useState(new Set),[c,d]=g.useState(!1),u=y=>{a(C=>{const A=new Set(C);return A.has(y)?A.delete(y):A.add(y),A})},h=o.findIndex(y=>y.status!=="pending"),p=o.reduce((y,C,A)=>C.status!=="pending"?A:y,-1),m=o.length?o.some(y=>y.status==="in_progress")?"in_progress":o.some(y=>y.status==="done")?"done":"pending":"pending",x=t??(o.length?"done":"pending"),w=s??m,v=n??"pending";return l.jsxs("div",{className:"space-y-6 pr-6",children:[l.jsx("div",{className:"text-sm text-[#333] dark:text-[#E5E7EB]",children:r("deepResearch.steps.intro")}),l.jsxs("div",{className:"space-y-4",children:[l.jsxs("div",{className:`flex items-center gap-2 text-base font-medium ${x==="pending"?"text-[#999] dark:text-[#666]":"text-[#333] dark:text-[#E5E7EB]"}`,children:[l.jsx(R.PencilLine,{className:"w-4 h-4 text-[#1784FC]"}),r("deepResearch.steps.planTitle")]}),l.jsx("div",{className:" text-[#999] dark:text-[#A6A6A6] text-sm mb-2",children:r("deepResearch.steps.planDescription")}),l.jsxs("div",{className:"border border-[#EEF0F3] dark:border-[#1D3A6F] rounded-lg p-3 bg-white dark:bg-[#020817] flex justify-between items-center cursor-pointer hover:bg-gray-50 dark:hover:bg-[#111827] transition-colors",onClick:()=>d(y=>!y),children:[l.jsxs("div",{className:"flex items-center gap-2 text-sm text-[#333] dark:text-[#E5E7EB]",children:[l.jsx(R.List,{className:"w-4 h-4 text-[#1784FC]"}),r("deepResearch.steps.generatedPlans")]}),c?l.jsx(R.ChevronUp,{className:"w-4 h-4 text-gray-400"}):l.jsx(R.ChevronDown,{className:"w-4 h-4 text-gray-400"})]}),c&&o.length>0&&l.jsx("div",{className:"mt-2 space-y-1 rounded-lg bg-white dark:bg-[#020817] border border-[#EEF0F3] dark:border-[#1D3A6F] p-3",children:o.map((y,C)=>l.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[l.jsxs("span",{className:"text-[#999] dark:text-[#A6A6A6]",children:[C+1,"."]}),l.jsx("span",{className:"text-[#333] dark:text-[#E5E7EB]",children:y.title})]},y.id))})]}),l.jsxs("div",{className:"pt-2",children:[l.jsxs("div",{className:`flex items-center gap-2 text-base font-medium mb-4 ${w==="pending"?"text-[#999] dark:text-[#666]":"text-[#333] dark:text-[#E5E7EB]"}`,children:[l.jsx(R.List,{className:"w-4 h-4 text-[#1784FC]"}),r("deepResearch.steps.executeTitle")]}),o.map((y,C)=>{const A=y.status!=="pending",N=C===h,P=C===p,D=y.status==="pending"&&!y.searches;return l.jsxs("div",{className:`relative ${D?"pl-0 pb-4":"pl-6 pb-8 last:pb-0"}`,children:[A&&h!==-1&&p!==-1&&l.jsx("div",{className:"absolute left-2.5 border-l border-dashed border-gray-200 dark:border-gray-700",style:{top:N?10:0,bottom:P?10:0}}),y.status==="done"&&l.jsx("div",{className:"absolute left-0 top-0 w-5 h-5 bg-blue-500 rounded-full flex items-center justify-center",children:l.jsx(R.CheckCircle,{className:"w-3 h-3 text-white"})}),y.status==="in_progress"&&l.jsx("div",{className:"absolute left-0 top-0 w-5 h-5 bg-white dark:bg-[#020817] border-2 border-blue-500 rounded-full flex items-center justify-center",children:l.jsx(R.Loader,{className:"w-3 h-3 text-blue-500 animate-spin"})}),D?l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(R.List,{className:"w-4 h-4 text-[#C8C8C8]"}),l.jsx("div",{className:"text-sm text-[#999999] dark:text-[#666]",children:y.title})]}):l.jsxs(l.Fragment,{children:[l.jsx("h3",{className:`text-sm font-bold mb-1 ${y.status==="pending"?"text-[#999999] dark:text-[#666]":"text-[#333333] dark:text-[#E5E7EB]"}`,children:y.title}),y.description&&l.jsx("p",{className:"text-[#999] dark:text-[#A6A6A6] text-sm mt-4",children:y.description}),y.searches&&l.jsxs("div",{className:"mt-2 space-y-3",children:[y.searches.map(j=>j.status==="searching"?l.jsx("div",{className:"flex items-center justify-between border border-blue-100 dark:border-blue-900/30 bg-blue-50/30 dark:bg-blue-900/10 rounded-lg p-3",children:l.jsxs("div",{className:"flex items-center gap-2 text-sm overflow-hidden",children:[l.jsx(R.Search,{className:"w-4 h-4 text-[#1784FC] animate-pulse shrink-0"}),l.jsx("span",{className:"text-[#333] dark:text-[#E5E7EB] shrink-0",children:r("deepResearch.steps.searching")}),l.jsxs("span",{className:"text-[#999] dark:text-[#A6A6A6] truncate",children:["| ",j.query]})]})},j.id):l.jsxs("div",{children:[l.jsxs("div",{className:"flex items-center justify-between border border-gray-200 dark:border-[#1D3A6F] rounded-lg p-3 bg-gray-50 dark:bg-[#111827] cursor-pointer hover:bg-gray-100 dark:hover:bg-[#1F2937] transition-colors",onClick:()=>u(j.id),children:[l.jsxs("div",{className:"flex items-center gap-2 text-sm overflow-hidden",children:[l.jsx(R.Search,{className:"w-4 h-4 text-[#1784FC] shrink-0"}),l.jsx("span",{className:"text-[#333] dark:text-[#E5E7EB] shrink-0",children:r("deepResearch.steps.searchTitle")}),l.jsxs("span",{className:"text-[#999] dark:text-[#A6A6A6] truncate",children:["| ",j.query]})]}),typeof j.resultCount=="number"&&l.jsxs("div",{className:"flex items-center gap-1",children:[l.jsx("div",{className:"bg-blue-50 dark:bg-blue-900/20 text-[#1784FC] px-2 py-0.5 rounded-full text-xs font-medium",children:j.resultCount}),i.has(j.id)?l.jsx(R.ChevronUp,{className:"w-4 h-4 text-[#999]"}):l.jsx(R.ChevronDown,{className:"w-4 h-4 text-[#999]"})]})]}),i.has(j.id)&&j.hits&&l.jsx("div",{className:"mt-2 space-y-2 pl-4",children:j.hits.map((E,U)=>l.jsx("div",{className:"p-3 bg-white dark:bg-[#020817] border border-gray-100 dark:border-[#1D3A6F] rounded-lg hover:border-blue-200 dark:hover:border-blue-800 transition-colors cursor-pointer group",onClick:()=>E.url&&window.open(E.url,"_blank"),children:l.jsx("div",{className:"flex items-start gap-2",children:l.jsxs("div",{className:"min-w-0 flex-1",children:[l.jsx("div",{className:"text-sm font-medium text-[#333] dark:text-[#E5E7EB] group-hover:text-[#1784FC] transition-colors line-clamp-1",children:E.title}),E.content&&l.jsx("div",{className:"text-xs text-[#999] dark:text-[#A6A6A6] mt-1 line-clamp-2",children:E.content})]})})},U))}),j.note&&l.jsx("p",{className:"text-[#999] dark:text-[#A6A6A6] text-sm mt-4 mb-2",children:j.note})]},j.id)),y.showOptimizePlan&&l.jsxs("div",{className:"border border-gray-200 dark:border-[#1D3A6F] rounded-lg p-3 bg-white dark:bg-[#020817] flex justify-between items-center cursor-pointer hover:bg-gray-50 dark:hover:bg-[#111827] transition-colors",children:[l.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[l.jsx(R.FileText,{className:"w-4 h-4 text-[#1784FC]"}),l.jsx("span",{className:"text-[#333] dark:text-[#E5E7EB]",children:r("deepResearch.steps.optimizePlan")})]}),l.jsx(R.ChevronDown,{className:"w-4 h-4 text-[#999]"})]})]})]})]},y.id)}),l.jsx("div",{className:"pt-2",children:l.jsxs("div",{className:`flex items-center gap-2 text-base font-medium mb-4 ${v==="pending"?"text-[#999] dark:text-[#666]":"text-[#333] dark:text-[#E5E7EB]"}`,children:[l.jsx(R.BookOpenText,{className:`w-4 h-4 ${v==="pending"?"text-[#999]":"text-[#1784FC]"}`}),r("deepResearch.steps.reportTitle")]})})]})]})},hh=({content:e,data:t,formatUrl:s})=>{const{t:n}=ce.useTranslation();return!e&&!t?l.jsxs("div",{className:"px-6 pb-8 max-w-[730px] h-full flex flex-col items-center justify-center text-center",children:[l.jsx("div",{className:"mb-2 text-base font-medium text-[#333333] dark:text-[#E5E7EB]",children:n("deepResearch.report.generatingTitle")}),l.jsx("div",{className:"text-sm text-[#999999] dark:text-[#A6A6A6] max-w-[520px] leading-relaxed",children:n("deepResearch.report.generatingDescription")})]}):l.jsxs("div",{className:"px-2 pb-8 max-w-[730px]",children:[t&&l.jsxs("div",{className:"mb-6 p-4 border border-gray-200 dark:border-gray-800 rounded-xl bg-gray-50 dark:bg-gray-900 flex items-center justify-between",children:[l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx("div",{className:"w-10 h-10 rounded-lg bg-blue-100 dark:bg-blue-900/30 flex items-center justify-center text-blue-600 dark:text-blue-400",children:l.jsx(R.FileText,{className:"w-6 h-6"})}),l.jsxs("div",{children:[l.jsx("div",{className:"font-medium text-gray-900 dark:text-gray-100",children:t.title||n("deepResearch.report.defaultTitle")}),l.jsx("div",{className:"text-xs text-gray-500",children:t.created?new Date(t.created).toLocaleString():""})]})]}),t.url&&l.jsx("a",{href:s?s({url:t.url}):t.url,target:"_blank",rel:"noopener noreferrer",className:"p-2 text-gray-500 hover:text-blue-600 dark:hover:text-blue-400 transition-colors cursor-pointer",title:n("deepResearch.button.view"),children:l.jsx(R.ExternalLink,{className:"w-5 h-5"})})]}),e&&l.jsx("div",{className:"cm-markdown",children:l.jsx(bn,{content:e})})]})},fh=({hits:e,theme:t})=>{const s=g.useMemo(()=>{if(!e||!Array.isArray(e))return[];const n=new Map;for(const o of e){if(!o||typeof o!="object")continue;const i=typeof o.title=="string"?o.title:"";i&&(n.has(i)||n.set(i,o))}const r=[];return n.forEach(o=>{const i=typeof o.title=="string"?o.title:"",a=typeof o.url=="string"?o.url:void 0,c=typeof o.content=="string"?o.content:void 0,d={title:i,summary:c,url:a,source:typeof o.source=="string"?{name:o.source}:void 0,metadata:typeof o.score=="number"?{score:o.score}:void 0};r.push(d)}),r},[e]);return l.jsx("div",{className:"pb-8 max-w-[730px]",children:l.jsx(aa,{section:s,theme:t||"light",hideHeader:!0,onRecordClick:n=>{typeof n.url=="string"&&window.open(n.url)}})})},ph=({open:e,onClose:t,defaultActiveTab:s,steps:n,plannerStatus:r,executionStatus:o,reportStatus:i,reportData:a,reportContent:c,searchHits:d,formatUrl:u,theme:h})=>{const{t:p}=ce.useTranslation(),[m,x]=g.useState(s||p("deepResearch.tab.steps"));return g.useEffect(()=>{s&&x(s)},[s]),l.jsx(Mc,{children:e&&l.jsxs(l.Fragment,{children:[l.jsx(bi.div,{className:"fixed inset-0 z-999 bg-black/20",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:t}),l.jsxs(bi.div,{className:"fixed z-1000 top-20 bottom-20 right-4 flex flex-col rounded-xl overflow-hidden bg-white dark:bg-black shadow-[0_2px_20px_rgba(0,0,0,0.1)] dark:shadow-[0_2px_20px_rgba(255,255,255,0.1)]",initial:{width:0,height:0,opacity:0,padding:0},animate:{width:800,height:"auto",opacity:1,padding:24},exit:{width:0,height:0,opacity:0,padding:0},children:[l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsx(er.Segmented,{className:"cm-deep-research-segmented",value:m,style:{marginBottom:8},onChange:w=>x(w),options:[p("deepResearch.tab.report"),p("deepResearch.tab.steps"),p("deepResearch.tab.searchResults")]}),l.jsxs("div",{className:"flex items-center gap-2",children:[m===p("deepResearch.tab.report")&&l.jsxs(l.Fragment,{children:[l.jsxs("button",{type:"button",className:"flex items-center gap-1 px-2 py-1 rounded-full bg-[#E9F0FE] dark:bg-blue-900/30 text-sm text-[#1784FC] dark:text-blue-400 hover:bg-[#E0E9FD] dark:hover:bg-blue-900/50 border-none outline-none cursor-pointer",onClick:()=>a?.url&&window.open(u?.({url:a.url})||a.url,"_blank"),children:[l.jsx(R.Download,{className:"w-4 h-4"}),l.jsx("span",{children:p("deepResearch.button.download")})]}),l.jsxs("button",{type:"button",className:"flex items-center gap-1 px-2 py-1 rounded-full bg-[#E9F0FE] dark:bg-blue-900/30 text-sm text-[#1784FC] dark:text-blue-400 hover:bg-[#E0E9FD] dark:hover:bg-blue-900/50 border-none outline-none cursor-pointer",children:[l.jsx(R.Share2,{className:"w-4 h-4"}),l.jsx("span",{children:p("deepResearch.button.share")})]})]}),l.jsx(er.Button,{type:"text",onClick:t,className:"text-[#999] hover:text-gray-600 flex items-center justify-center",children:l.jsx(R.X,{className:"w-5 h-5"})})]})]}),l.jsxs("div",{className:"pt-6 flex-1 overflow-y-auto bg-white dark:bg-black",children:[m===p("deepResearch.tab.report")&&l.jsx(hh,{content:c,data:a,formatUrl:u}),m===p("deepResearch.tab.steps")&&l.jsx(dh,{steps:n,plannerStatus:r,executionStatus:o,reportStatus:i}),m===p("deepResearch.tab.searchResults")&&l.jsx(fh,{hits:d,theme:h})]})]})]})})},mh=({stepTitle:e,description:t,query:s,statusText:n,resultCount:r,progress:o,steps:i,plannerStatus:a,executionStatus:c,reportStatus:d,reportData:u,reportContent:h,searchHits:p,formatUrl:m,theme:x})=>{const{t:w}=ce.useTranslation(),[v,y]=g.useState(!1),[C,A]=g.useState(w("deepResearch.tab.steps")),N=g.useMemo(()=>typeof o!="number"||Number.isNaN(o)||o<0?0:o>1?1:o,[o]),P=g.useMemo(()=>n||(N>=1?typeof r=="number"?w("deepResearch.status.completedWithCount",{count:r}):w("deepResearch.status.completed"):N>0?w("deepResearch.status.running"):w("deepResearch.status.preparing")),[n,N,r,w]);return l.jsxs(l.Fragment,{children:[l.jsx("div",{className:"w-full my-3 cursor-pointer",onClick:()=>{A(w("deepResearch.tab.steps")),y(!0)},children:l.jsxs("div",{className:"w-full rounded-xl border border-[#EEF0F3] bg-[#F3F4F6] dark:border-[#1D3A6F] dark:bg-[#020817] p-4",children:[l.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[l.jsx(R.Hourglass,{className:"h-4 w-4 text-[#148EFF] cm-hourglass-rotate"}),l.jsx("div",{className:"text-sm font-medium text-[#333] dark:text-[#E5E7EB] truncate",children:e})]}),t?l.jsx("div",{className:"text-sm text-[#999] dark:text-[#A6A6A6]",children:t}):null,l.jsxs("div",{className:"mt-2 flex items-center justify-between rounded-full bg-white px-3 py-2 text-sm text-[#333] dark:bg-[#111827] dark:text-[#D1D5DB]",children:[l.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[N>=1?l.jsx(R.Check,{className:"h-3 w-3 text-[#22C55E]"}):l.jsx(R.Loader,{className:"h-3 w-3 animate-spin text-[#148EFF]"}),l.jsxs("span",{className:"",children:[P,l.jsxs("span",{className:"text-[#999] dark:text-[#A6A6A6] truncate",children:["| ",s]})]})]}),l.jsxs("div",{className:"ml-2 flex items-center gap-2",children:[N<1&&typeof r=="number"?l.jsx("div",{className:"flex py-0.5 px-1 items-center justify-center rounded-full border border-[#018AE5] bg-white text-xs font-medium text-[#018AE5] dark:bg-[#020617]",children:r}):null,N>=1&&l.jsx("button",{type:"button",className:"px-3 py-1 text-xs font-medium rounded-full bg-[#E9F0FE] dark:bg-blue-900/30 text-[#1784FC] dark:text-blue-400 hover:bg-[#E0E9FD] dark:hover:bg-blue-900/50 cursor-pointer",onClick:D=>{D.stopPropagation(),A(w("deepResearch.tab.report")),y(!0)},children:w("deepResearch.button.view")})]})]}),l.jsxs("div",{className:"mt-5 w-full flex items-center gap-2 overflow-hidden",children:[l.jsx("div",{className:"h-2 rounded-full flex-1 items-center bg-white dark:bg-[#1F2937]",children:l.jsx("div",{className:`h-full rounded-full transition-all ${N>=1?"bg-[#00C868]":"bg-[#1784FC]"}`,style:{width:`${N*100}%`}})}),l.jsx("div",{className:"flex items-center justify-center cursor-pointer hover:opacity-80 transition-opacity",children:N>=1?l.jsx(R.Check,{className:"h-4 w-4 text-[#22C55E]"}):l.jsx(R.CirclePause,{className:"h-4 w-4 text-[#1784FC]"})})]})]})}),l.jsx(ph,{open:v,onClose:()=>y(!1),defaultActiveTab:C,steps:i,plannerStatus:a,executionStatus:c,reportStatus:d,reportData:u,reportContent:h,searchHits:p,formatUrl:m,theme:x})]})},gh=({payload:e,formatUrl:t})=>{const s=n=>{try{const r=new Date(n),o=r.getFullYear(),i=String(r.getMonth()+1).padStart(2,"0"),a=String(r.getDate()).padStart(2,"0"),c=String(r.getHours()).padStart(2,"0"),d=String(r.getMinutes()).padStart(2,"0"),u=String(r.getSeconds()).padStart(2,"0");return`${o}-${i}-${a} ${c}:${d}:${u}`}catch(r){return console.error(r),String(n)}};return!e?.title||!e?.url?null:l.jsx("div",{className:"mt-3",children:l.jsxs("div",{className:"flex items-center gap-3 p-3 bg-gray-50 dark:bg-[#202126] rounded-lg border border-gray-200 dark:border-gray-800 max-w-sm",children:[l.jsx("div",{className:"shrink-0",children:l.jsx(R.FileText,{className:"w-6 h-6 text-blue-500"})}),l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsx("div",{className:"text-sm font-medium text-gray-900 dark:text-gray-100 truncate",title:e.title,children:e.title}),e.created&&l.jsx("div",{className:"text-xs text-gray-500 dark:text-gray-400 mt-0.5",children:s(e.created)})]}),l.jsx("a",{href:t?t({url:e.url}):e.url,target:"_blank",rel:"noopener noreferrer",className:"shrink-0 p-2 text-blue-600 dark:text-blue-400 hover:bg-blue-50 dark:hover:bg-blue-900/20 rounded-md transition-colors cursor-pointer",title:"Open Link",children:l.jsx(R.ExternalLink,{className:"w-5 h-5"})})]})})};function yh(e){if(e)return e==="light"?"light":e==="dark"||typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}const xh=g.memo(g.forwardRef(function({message:t,isTyping:s,onResend:n,hide_assistant:r=!1,rootClassName:o,actionClassName:i,actionIconSize:a,copyButtonId:c,formatUrl:d,theme:u,locale:h,query_intent:p,tools:m,fetch_source:x,pick_source:w,deep_read:v,think:y,response:C,currentAssistant:A,assistantList:N,loadingStep:P,deepResearchPlans:D,deepResearchCurrentStepIndex:j,deepResearchQuery:E,deepResearchResultCount:U,deepResearchResearcherStarted:J,deepResearchReporterStarted:oe,deepResearchReporterFinished:ke,deepResearchReportData:ue,deepResearchSearchMap:de},xe){const{t:mt,i18n:q}=ce.useTranslation(),X=yh(u),[re,ae]=g.useState({}),[Be,gt]=g.useState([]),[Yt,yt]=g.useState(-1),[As,Oe]=g.useState(""),[xt,je]=g.useState(void 0),[vt,Ie]=g.useState(!1),[zt,Je]=g.useState(!1),[Gt,Jt]=g.useState(!1),[Qe,Re]=g.useState(void 0),[Qt,He]=g.useState({}),{data:{query_intent:Xe,tools:Cs,fetch_source:ks,pick_source:bt,deep_read:Ts,think:Ss,response:Ze},handlers:Z,clearAllChunkData:Ht}=Na();g.useEffect(()=>{p&&Z.deal_query_intent(p)},[p]),g.useEffect(()=>{m&&Z.deal_tools(m)},[m]),g.useEffect(()=>{x&&Z.deal_fetch_source(x)},[x]),g.useEffect(()=>{w&&Z.deal_pick_source(w)},[w]),g.useEffect(()=>{v&&Z.deal_deep_read(v)},[v]),g.useEffect(()=>{y&&Z.deal_think(y)},[y]),g.useEffect(()=>{C&&Z.deal_response(C)},[C]);const[Es,wt]=g.useState({query_intent:!1,tools:!1,fetch_source:!1,pick_source:!1,deep_read:!1,think:!1,response:!1}),Te=P||Es,le=D??Be,Se=j??Yt,Ps=E??As,$e=U??xt,et=J??vt,At=oe??zt,Ue=ke??Gt,Ct=ue??Qe,We=de??Qt,ve=le.length>0&&Se>=0&&Se<le.length,kt=ve?le[Se]:"",Tt=le.length>0?1:0,Xt=ve?(Se+1)/le.length:0,js=Ue?1:At?.5:0,Zt=(Tt+Xt+js)/3,Rs=g.useMemo(()=>{if(Ue)return typeof $e=="number"?`深度研究完成 · 找到 ${$e} 条相关结果`:"深度研究完成";if(At)return"正在编写研究报告";if(et)return"正在执行研究计划";if(le.length>0)return"正在规划研究计划"},[Ue,$e,At,et,le.length]),Ne=g.useMemo(()=>le.length?le.map((k,M)=>{let O="pending";Ue?O="done":et&&(M<Se?O="done":M===Se&&(O="in_progress"));const _=We[k],he=_?.query?[{id:`step-${M+1}-search-1`,query:_.query,resultCount:_.resultCount,status:typeof _.resultCount=="number"?"done":"searching",hits:_.hits}]:void 0;return{id:`step-${M+1}`,title:k,status:O,searches:he,showOptimizePlan:!1}}):[],[le,Se,et,Ue,We]),$t=g.useMemo(()=>{const k=[];return Object.values(We).forEach(M=>{M.hits&&Array.isArray(M.hits)&&k.push(...M.hits)}),k},[We]),Ns=le.length?"done":"pending",Vs=g.useMemo(()=>Ne.length?Ne.some(k=>k.status==="in_progress")?"in_progress":Ne.some(k=>k.status==="done")?"done":"pending":"pending",[Ne]),es=Gt?"done":zt?"in_progress":"pending",tt=()=>{gt([]),yt(-1),Oe(""),je(void 0),Ie(!1),Je(!1),Jt(!1),Re(void 0),He({})},Ms=k=>{if(k.chunk_type==="research_planner_start"){tt();return}if(k.chunk_type==="research_planner_end"){if(typeof k.message_chunk=="string")try{const M=JSON.parse(k.message_chunk);if(Array.isArray(M)){const O=M.map(_=>String(_));gt(O),yt(O.length>0?0:-1)}}catch(M){console.error(M)}return}if(k.chunk_type==="research_researcher_start"){if(typeof k.message_chunk=="string"&&k.message_chunk)try{const M=JSON.parse(k.message_chunk),O=typeof M?.plan=="string"?M.plan:"";O&&(Ie(!0),yt(_=>{const he=Be.findIndex(qe=>qe===O);return he!==-1?he:_>=0?_:0}))}catch(M){console.error(M)}return}if(k.chunk_type==="research_researcher_step_start"){if(typeof k.message_chunk=="string"&&k.message_chunk)try{const M=JSON.parse(k.message_chunk),O=typeof M?.plan=="string"?M.plan:"",_=M?.step?.payload?.query;typeof _=="string"&&Oe(_),je(void 0),O&&typeof _=="string"&&He(he=>{const qe=he[O]??{};return{...he,[O]:{...qe,query:_}}})}catch(M){console.error(M)}return}if(k.chunk_type==="research_researcher_step_end"){if(typeof k.message_chunk=="string"&&k.message_chunk)try{const M=JSON.parse(k.message_chunk),O=typeof M?.plan=="string"?M.plan:"",_=M?.step?.payload?.hits;Array.isArray(_)&&(je(_.length),O&&He(he=>{const qe=he[O]??{};return{...he,[O]:{...qe,resultCount:_.length,hits:_}}}))}catch(M){console.error(M)}return}if(k.chunk_type==="research_researcher_end"){Oe("");return}if(k.chunk_type==="research_reporter_start"){Je(!0);return}if(k.chunk_type==="research_reporter_end"&&(Je(!0),Jt(!0),typeof k.message_chunk=="string"&&k.message_chunk))try{const M=JSON.parse(k.message_chunk);Re(M)}catch(M){console.error(M)}},st=g.useRef(!1);g.useImperativeHandle(xe,()=>({addChunk:k=>{if(wt(()=>({query_intent:!1,tools:!1,fetch_source:!1,pick_source:!1,deep_read:!1,think:!1,response:!1,[k.chunk_type||""]:!0})),k.chunk_type==="reply_start")tt();else if(k.chunk_type==="query_intent")Z.deal_query_intent(k);else if(k.chunk_type==="tools")Z.deal_tools(k);else if(k.chunk_type==="fetch_source")Z.deal_fetch_source(k);else if(k.chunk_type==="pick_source")Z.deal_pick_source(k);else if(k.chunk_type==="deep_read")Z.deal_deep_read(k);else if(k.chunk_type==="think")Z.deal_think(k);else if(k.chunk_type==="response"){const M=k.message_chunk;if(typeof M=="string"){if(M.includes("<think>")||M.includes("<think>")){st.current=!0;return}else if(M.includes("</think>")||M.includes("</think>")){st.current=!1;return}st.current?Z.deal_think({...k,chunk_type:"think"}):Z.deal_response(k)}}else(k.chunk_type==="research_planner_start"||k.chunk_type==="research_planner_end"||k.chunk_type==="research_researcher_start"||k.chunk_type==="research_researcher_step_start"||k.chunk_type==="research_researcher_step_end"||k.chunk_type==="research_researcher_end"||k.chunk_type==="research_reporter_start"||k.chunk_type==="research_reporter_end")&&Ms(k)},reset:()=>{Ht(),wt({query_intent:!1,tools:!1,fetch_source:!1,pick_source:!1,deep_read:!1,think:!1,response:!1}),tt(),st.current=!1}}));const be=t?._source?.type==="assistant",St=t?._source?.assistant_id,f=t?._source?.assistant_item;g.useEffect(()=>{h&&q.language!==h&&q.changeLanguage(h)},[h,q]),g.useEffect(()=>{if(f){ae(f);return}if(be&&St&&Array.isArray(N)){ae(N.find(k=>k._id===St)??{});return}ae(A)},[be,f,St,N,A]);const b=t?._source,T=b?.message||"",V=b?.payload,I=b?.attachments??[],B=b?.details||[],F=b?.question||"",L=s===!1&&(T||Ze?.message_chunk),[$,K]=g.useState([]),G=k=>{K(k)},ie=()=>be?l.jsxs(l.Fragment,{children:[l.jsx(ma,{Detail:B.find(k=>k.type==="query_intent"),ChunkData:Xe,getSuggestion:G,loading:Te?.query_intent}),l.jsx(ga,{Detail:B.find(k=>k.type==="tools"),ChunkData:Cs,loading:Te?.tools}),l.jsx(va,{Detail:B.find(k=>k.type==="fetch_source"),ChunkData:ks,loading:Te?.fetch_source,formatUrl:d}),l.jsx(wa,{Detail:B.find(k=>k.type==="pick_source"),ChunkData:bt,loading:Te?.pick_source}),l.jsx(Ca,{Detail:B.find(k=>k.type==="deep_read"),ChunkData:Ts,loading:Te?.deep_read}),l.jsx(ka,{Detail:B.find(k=>k.type==="think"),ChunkData:Ss,loading:Te?.think}),l.jsx("div",{className:"cm-markdown",children:l.jsx(bn,{content:T||Ze?.message_chunk||""})}),l.jsx(gh,{payload:V,formatUrl:d}),ve&&l.jsx(mh,{stepTitle:kt,query:Ps||F,resultCount:$e,progress:Zt,statusText:Rs,steps:Ne,plannerStatus:Ns,executionStatus:Vs,reportStatus:es,reportData:Ct,searchHits:$t,formatUrl:d,theme:X}),s&&l.jsx("div",{className:"inline-block w-1.5 h-5 ml-0.5 -mb-0.5 bg-[#666666] dark:bg-[#A3A3A3] rounded-sm animate-typing"}),L&&l.jsx(Sa,{id:t._id??"",content:T||Ze?.message_chunk||"",question:F,actionClassName:i,actionIconSize:a,copyButtonId:c,onResend:()=>{n&&n(F)}}),!s&&l.jsx(Ea,{suggestions:$,onSelect:k=>n&&n(k)})]}):l.jsx(ja,{message:T,attachments:I});return l.jsx("div",{className:Ft("w-full py-8 flex",[be?"justify-start":"justify-end"],X==="dark"&&"dark",o),children:l.jsx("div",{className:`w-full px-4 flex gap-4 ${be?"w-full":"flex-row-reverse"}`,children:l.jsxs("div",{className:`w-full space-y-2 ${be?"text-left":"text-right"}`,children:[!r&&l.jsxs("div",{className:"w-full flex items-center gap-1 font-semibold text-sm text-[#333] dark:text-white",children:[be?l.jsx("div",{className:"w-6 h-6 flex justify-center items-center rounded-full bg-white dark:bg-[#2A2A2A] border border-[#E6E6E6] dark:border-[#3A3A3A]",children:re?._source?.icon?.startsWith("font_")?l.jsx(Ra,{name:re._source.icon,className:"w-4 h-4"}):l.jsx("img",{src:fa,className:"w-4 h-4",alt:mt("assistant.message.logo")})}):null,be?re?._source?.name||"Coco AI":""]}),l.jsx("div",{className:"w-full prose dark:prose-invert prose-sm max-w-none",children:l.jsx("div",{className:"w-full pl-7 text-[#333] dark:text-white leading-relaxed",children:ie()})})]})})})})),vh=g.memo(g.forwardRef((e,t)=>l.jsx(ce.I18nextProvider,{i18n:wi,children:l.jsx(xh,{...e,ref:t})})));exports.ChatMessage=vh;