@infinilabs/chat-message 0.0.7 → 0.0.9
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.
- package/dist/ChatMessage.cjs +15 -15
- package/dist/ChatMessage.iife.js +15 -15
- package/dist/ChatMessage.js +2971 -2934
- package/dist/ChatMessage.umd.cjs +15 -15
- package/dist/components/DeepResearch/DeepResearchDrawer.d.ts +2 -1
- package/dist/components/DeepResearch/ResearchReportContent.d.ts +1 -1
- package/dist/components/DeepResearch/ResearchStepsContent.d.ts +24 -0
- package/dist/components/DeepResearch/index.d.ts +4 -16
- package/dist/components/PayloadCard.d.ts +2 -0
- package/dist/components/index.d.ts +1 -24
- package/dist/hooks/useMessageChunkData.d.ts +2 -0
- package/dist/mockRealData.d.ts +25 -0
- package/dist/types/chat.d.ts +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/package.json +3 -2
package/dist/ChatMessage.iife.js
CHANGED
|
@@ -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-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
|
-
var ChatMessage=(function(
|
|
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-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--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{margin-left:calc(var(--spacing)*1)}.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-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--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-gray-800:where(.dark,.dark *):hover{background-color:var(--color-gray-800)}.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
|
+
var ChatMessage=(function(zt,g,ce,Ze,Bo,wt,j,Oo,Io,yn,_o){"use strict";function Uo(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 At=Uo(g);var Ct={exports:{}},$e={};/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react-jsx-runtime.production.min.js
|
|
5
5
|
*
|
|
@@ -7,7 +7,7 @@ var ChatMessage=(function(As,m,oe,mt,ia,Cs,N,oa,aa,tr,la){"use strict";function
|
|
|
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
|
|
10
|
+
*/var xn;function Wo(){if(xn)return $e;xn=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,i={key:!0,ref:!0,__self:!0,__source:!0};function o(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)&&!i.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 $e.Fragment=s,$e.jsx=o,$e.jsxs=o,$e}var et={};/**
|
|
11
11
|
* @license React
|
|
12
12
|
* react-jsx-runtime.development.js
|
|
13
13
|
*
|
|
@@ -15,27 +15,27 @@ var ChatMessage=(function(As,m,oe,mt,ia,Cs,N,oa,aa,tr,la){"use strict";function
|
|
|
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
|
|
19
|
-
`+
|
|
20
|
-
`),
|
|
21
|
-
`),z=
|
|
22
|
-
`+
|
|
18
|
+
*/var vn;function qo(){return vn||(vn=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"),i=Symbol.for("react.profiler"),o=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"),b=Symbol.iterator,A="@@iterator";function C(f){if(f===null||typeof f!="object")return null;var w=b&&f[b]||f[A];return typeof w=="function"?w:null}var y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(f){{for(var w=arguments.length,k=new Array(w>1?w-1:0),V=1;V<w;V++)k[V-1]=arguments[V];x("error",f,k)}}function x(f,w,k){{var V=y.ReactDebugCurrentFrame,I=V.getStackAddendum();I!==""&&(w+="%s",k=k.concat([I]));var _=k.map(function(L){return String(L)});_.unshift("Warning: "+w),Function.prototype.apply.call(console[f],console,_)}}var N=!1,P=!1,D=!1,E=!1,S=!1,R;R=Symbol.for("react.module.reference");function U(f){return!!(typeof f=="string"||typeof f=="function"||f===n||f===i||S||f===r||f===d||f===u||E||f===m||N||P||D||typeof f=="object"&&f!==null&&(f.$$typeof===p||f.$$typeof===h||f.$$typeof===o||f.$$typeof===a||f.$$typeof===c||f.$$typeof===R||f.getModuleId!==void 0))}function X(f,w,k){var V=f.displayName;if(V)return V;var I=w.displayName||w.name||"";return I!==""?k+"("+I+")":k}function Z(f){return f.displayName||"Context"}function ae(f){if(f==null)return null;if(typeof f.tag=="number"&&v("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 i:return"Profiler";case r:return"StrictMode";case d:return"Suspense";case u:return"SuspenseList"}if(typeof f=="object")switch(f.$$typeof){case a:var w=f;return Z(w)+".Consumer";case o:var k=f;return Z(k._context)+".Provider";case c:return X(f,f.render,"ForwardRef");case h:var V=f.displayName||null;return V!==null?V:ae(f.type)||"Memo";case p:{var I=f,_=I._payload,L=I._init;try{return ae(L(_))}catch{return null}}}return null}var $=Object.assign,ue=0,ee,B,O,Y,J,ie,Ge;function qt(){}qt.__reactDisabledLog=!0;function Ee(){{if(ue===0){ee=console.log,B=console.info,O=console.warn,Y=console.error,J=console.group,ie=console.groupCollapsed,Ge=console.groupEnd;var f={configurable:!0,enumerable:!0,value:qt,writable:!0};Object.defineProperties(console,{info:f,log:f,warn:f,error:f,group:f,groupCollapsed:f,groupEnd:f})}ue++}}function gt(){{if(ue--,ue===0){var f={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:$({},f,{value:ee}),info:$({},f,{value:B}),warn:$({},f,{value:O}),error:$({},f,{value:Y}),group:$({},f,{value:J}),groupCollapsed:$({},f,{value:ie}),groupEnd:$({},f,{value:Ge})})}ue<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var yt=y.ReactCurrentDispatcher,xt;function Je(f,w,k){{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,Qe;{var M=typeof WeakMap=="function"?WeakMap:Map;Qe=new M}function Pe(f,w){if(!f||vt)return"";{var k=Qe.get(f);if(k!==void 0)return k}var V;vt=!0;var I=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var _;_=yt.current,yt.current=null,Ee();try{if(w){var L=function(){throw Error()};if(Object.defineProperty(L.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(L,[])}catch(le){V=le}Reflect.construct(f,[],L)}else{try{L.call()}catch(le){V=le}f.call(L.prototype)}}else{try{throw Error()}catch(le){V=le}f()}}catch(le){if(le&&V&&typeof le.stack=="string"){for(var F=le.stack.split(`
|
|
20
|
+
`),oe=V.stack.split(`
|
|
21
|
+
`),z=F.length-1,Q=oe.length-1;z>=1&&Q>=0&&F[z]!==oe[Q];)Q--;for(;z>=1&&Q>=0;z--,Q--)if(F[z]!==oe[Q]){if(z!==1||Q!==1)do if(z--,Q--,Q<0||F[z]!==oe[Q]){var pe=`
|
|
22
|
+
`+F[z].replace(" at new "," at ");return f.displayName&&pe.includes("<anonymous>")&&(pe=pe.replace("<anonymous>",f.displayName)),typeof f=="function"&&Qe.set(f,pe),pe}while(z>=1&&Q>=0);break}}}finally{vt=!1,yt.current=_,gt(),Error.prepareStackTrace=I}var Xe=f?f.displayName||f.name:"",Fe=Xe?Je(Xe):"";return typeof f=="function"&&Qe.set(f,Fe),Fe}function Hd(f,w,k){return Pe(f,!1)}function Xd(f){var w=f.prototype;return!!(w&&w.isReactComponent)}function Kt(f,w,k){if(f==null)return"";if(typeof f=="function")return Pe(f,Xd(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 Hd(f.render);case h:return Kt(f.type,w,k);case p:{var V=f,I=V._payload,_=V._init;try{return Kt(_(I),w,k)}catch{}}}return""}var bt=Object.prototype.hasOwnProperty,Co={},ko=y.ReactDebugCurrentFrame;function Yt(f){if(f){var w=f._owner,k=Kt(f.type,f._source,w?w.type:null);ko.setExtraStackFrame(k)}else ko.setExtraStackFrame(null)}function Zd(f,w,k,V,I){{var _=Function.call.bind(bt);for(var L in f)if(_(f,L)){var F=void 0;try{if(typeof f[L]!="function"){var oe=Error((V||"React class")+": "+k+" type `"+L+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof f[L]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw oe.name="Invariant Violation",oe}F=f[L](w,L,V,k,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(z){F=z}F&&!(F instanceof Error)&&(Yt(I),v("%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",k,L,typeof F),Yt(null)),F instanceof Error&&!(F.message in Co)&&(Co[F.message]=!0,Yt(I),v("Failed %s type: %s",k,F.message),Yt(null))}}}var $d=Array.isArray;function hn(f){return $d(f)}function eh(f){{var w=typeof Symbol=="function"&&Symbol.toStringTag,k=w&&f[Symbol.toStringTag]||f.constructor.name||"Object";return k}}function th(f){try{return To(f),!1}catch{return!0}}function To(f){return""+f}function So(f){if(th(f))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",eh(f)),To(f)}var Eo=y.ReactCurrentOwner,sh={key:!0,ref:!0,__self:!0,__source:!0},Po,jo;function nh(f){if(bt.call(f,"ref")){var w=Object.getOwnPropertyDescriptor(f,"ref").get;if(w&&w.isReactWarning)return!1}return f.ref!==void 0}function rh(f){if(bt.call(f,"key")){var w=Object.getOwnPropertyDescriptor(f,"key").get;if(w&&w.isReactWarning)return!1}return f.key!==void 0}function ih(f,w){typeof f.ref=="string"&&Eo.current}function oh(f,w){{var k=function(){Po||(Po=!0,v("%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)",w))};k.isReactWarning=!0,Object.defineProperty(f,"key",{get:k,configurable:!0})}}function ah(f,w){{var k=function(){jo||(jo=!0,v("%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)",w))};k.isReactWarning=!0,Object.defineProperty(f,"ref",{get:k,configurable:!0})}}var lh=function(f,w,k,V,I,_,L){var F={$$typeof:t,type:f,key:w,ref:k,props:L,_owner:_};return F._store={},Object.defineProperty(F._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(F,"_self",{configurable:!1,enumerable:!1,writable:!1,value:V}),Object.defineProperty(F,"_source",{configurable:!1,enumerable:!1,writable:!1,value:I}),Object.freeze&&(Object.freeze(F.props),Object.freeze(F)),F};function ch(f,w,k,V,I){{var _,L={},F=null,oe=null;k!==void 0&&(So(k),F=""+k),rh(w)&&(So(w.key),F=""+w.key),nh(w)&&(oe=w.ref,ih(w,I));for(_ in w)bt.call(w,_)&&!sh.hasOwnProperty(_)&&(L[_]=w[_]);if(f&&f.defaultProps){var z=f.defaultProps;for(_ in z)L[_]===void 0&&(L[_]=z[_])}if(F||oe){var Q=typeof f=="function"?f.displayName||f.name||"Unknown":f;F&&oh(L,Q),oe&&ah(L,Q)}return lh(f,F,oe,I,V,Eo.current,L)}}var fn=y.ReactCurrentOwner,No=y.ReactDebugCurrentFrame;function He(f){if(f){var w=f._owner,k=Kt(f.type,f._source,w?w.type:null);No.setExtraStackFrame(k)}else No.setExtraStackFrame(null)}var pn;pn=!1;function mn(f){return typeof f=="object"&&f!==null&&f.$$typeof===t}function Vo(){{if(fn.current){var f=ae(fn.current.type);if(f)return`
|
|
23
23
|
|
|
24
|
-
Check the render method of \``+f+"`."}return""}}function
|
|
24
|
+
Check the render method of \``+f+"`."}return""}}function uh(f){return""}var Mo={};function dh(f){{var w=Vo();if(!w){var k=typeof f=="string"?f:f.displayName||f.name;k&&(w=`
|
|
25
25
|
|
|
26
|
-
Check the top-level render call using <`+
|
|
26
|
+
Check the top-level render call using <`+k+">.")}return w}}function Do(f,w){{if(!f._store||f._store.validated||f.key!=null)return;f._store.validated=!0;var k=dh(w);if(Mo[k])return;Mo[k]=!0;var V="";f&&f._owner&&f._owner!==fn.current&&(V=" It was passed a child from "+ae(f._owner.type)+"."),He(f),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',k,V),He(null)}}function Fo(f,w){{if(typeof f!="object")return;if(hn(f))for(var k=0;k<f.length;k++){var V=f[k];mn(V)&&Do(V,w)}else if(mn(f))f._store&&(f._store.validated=!0);else if(f){var I=C(f);if(typeof I=="function"&&I!==f.entries)for(var _=I.call(f),L;!(L=_.next()).done;)mn(L.value)&&Do(L.value,w)}}}function hh(f){{var w=f.type;if(w==null||typeof w=="string")return;var k;if(typeof w=="function")k=w.propTypes;else if(typeof w=="object"&&(w.$$typeof===c||w.$$typeof===h))k=w.propTypes;else return;if(k){var V=ae(w);Zd(k,f.props,"prop",V,f)}else if(w.PropTypes!==void 0&&!pn){pn=!0;var I=ae(w);v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",I||"Unknown")}typeof w.getDefaultProps=="function"&&!w.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function fh(f){{for(var w=Object.keys(f.props),k=0;k<w.length;k++){var V=w[k];if(V!=="children"&&V!=="key"){He(f),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",V),He(null);break}}f.ref!==null&&(He(f),v("Invalid attribute `ref` supplied to `React.Fragment`."),He(null))}}var Ro={};function Lo(f,w,k,V,I,_){{var L=U(f);if(!L){var F="";(f===void 0||typeof f=="object"&&f!==null&&Object.keys(f).length===0)&&(F+=" 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 oe=uh();oe?F+=oe:F+=Vo();var z;f===null?z="null":hn(f)?z="array":f!==void 0&&f.$$typeof===t?(z="<"+(ae(f.type)||"Unknown")+" />",F=" Did you accidentally export a JSX literal instead of a component?"):z=typeof f,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",z,F)}var Q=ch(f,w,k,I,_);if(Q==null)return Q;if(L){var pe=w.children;if(pe!==void 0)if(V)if(hn(pe)){for(var Xe=0;Xe<pe.length;Xe++)Fo(pe[Xe],f);Object.freeze&&Object.freeze(pe)}else v("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 Fo(pe,f)}if(bt.call(w,"key")){var Fe=ae(f),le=Object.keys(w).filter(function(vh){return vh!=="key"}),gn=le.length>0?"{key: someKey, "+le.join(": ..., ")+": ...}":"{key: someKey}";if(!Ro[Fe+gn]){var xh=le.length>0?"{"+le.join(": ..., ")+": ...}":"{}";v(`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} />`,_,D,me,D),ws[D+_]=!0}}return f===n?$n(G):Zn(G),G}}function er(f,b,T){return ft(f,b,T,!0)}function pt(f,b,T){return ft(f,b,T,!1)}var Ce=pt,Kt=er;yt.Fragment=n,yt.jsx=Ce,yt.jsxs=Kt})()),yt}var rr;function ha(){return rr||(rr=1,process.env.NODE_ENV==="production"?zt.exports=ua():zt.exports=da()),zt.exports}var l=ha();const fa={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:"只有选定的文件才会参与当前会话。"}}}}},ir=ia.createInstance();ir.use(oe.initReactI18next).init({resources:fa,lng:"en",fallbackLng:"en",interpolation:{escapeValue:!1},react:{useSuspense:!1}});const pa="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/3fz3n25ZyvaaqrE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3LbmUe3tb/54bslxdP8inuoGCbT3b9e3z9onsYt4sRNDdxwFl4atpoWA4kxJtKdLcAEcvqAaNGfMCU/uTZq/ZUf+SSfe/cZt66HMI/3d92j/iEHyALTzx12ys4wMEIuyPJ1lEdbsCKYL8K+hnv/8uM81T6ig3hJTCdTfwxL46uXdbcHNO/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 Gt({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:mt("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 ma(e){return l.jsx(Gt,{...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 ga=({Detail:e,ChunkData:t,getSuggestion:s,loading:n})=>{const{t:r}=oe.useTranslation(),[o,i]=m.useState(!1),[a,c]=m.useState(null);return m.useEffect(()=>{e?.payload&&(c(e?.payload),e?.payload?.suggestion&&s&&s(e?.payload?.suggestion))},[e?.payload,s]),m.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,""),g=JSON.parse(p);g?.suggestion&&s&&s(g?.suggestion),c(g)}}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(N.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(ma,{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(N.ChevronUp,{className:"w-4 h-4"}):l.jsx(N.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]})})})]})},ya=({Detail:e,ChunkData:t,loading:s})=>{const{t:n}=oe.useTranslation(),[r,o]=m.useState(!1),[i,a]=m.useState("");return m.useEffect(()=>{e?.description&&a(e?.description)},[e?.description]),m.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(N.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(N.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(N.ChevronUp,{className:"w-4 h-4"}):l.jsx(N.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(Cs,{content:i||""})})})]})},or=async e=>{navigator.clipboard?await navigator.clipboard.writeText(e):console.log("Clipboard not available",e)},xa=e=>{window.open(e,"_blank")};function va(e){return l.jsx(Gt,{...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 ba=({Detail:e,ChunkData:t,loading:s,formatUrl:n})=>{const{t:r}=oe.useTranslation(),[o,i]=m.useState(!1),[a,c]=m.useState(0),[d,u]=m.useState([]);m.useEffect(()=>{e?.payload&&(u(e?.payload),c(e?.payload.length))},[e?.payload]),m.useEffect(()=>{if(t?.message_chunk&&!s)try{const p=t.message_chunk.match(/<Payload total=(\d+)>/);p&&c(Number(p[1]));const g=t.message_chunk.match(/\[([\s\S]*)\]/);if(g){const x=JSON.parse(g[0]);u(x)}}catch(p){console.error("Failed to parse fetch source data:",p)}},[t?.message_chunk,s]);const h=p=>()=>{const g=n&&n(p)||p.url;g&&xa(g)};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(va,{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(N.ChevronUp,{className:"w-4 h-4 text-[#999999]"}):l.jsx(N.ChevronDown,{className:"w-4 h-4 text-[#999999]"})]}),o&&l.jsx(l.Fragment,{children:d?.map((p,g)=>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(N.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(N.SquareArrowOutUpRight,{className:"w-3 h-3 text-[#999999] dark:text-[#999999] shrink-0"})]})]})},g))})]})};function wa(e){return l.jsx(Gt,{...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 Aa=({Detail:e,ChunkData:t,loading:s})=>{const{t:n}=oe.useTranslation(),[r,o]=m.useState(!1),[i,a]=m.useState([]);return m.useEffect(()=>{e?.payload&&a(e?.payload)},[e?.payload]),m.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(g=>g.id&&g.title&&g.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(N.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(wa,{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(N.ChevronUp,{className:"w-4 h-4"}):l.jsx(N.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 Ca(e){return l.jsx(Gt,{...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 ka=({Detail:e,ChunkData:t,loading:s})=>{const{t:n}=oe.useTranslation(),[r,o]=m.useState(!1),[i,a]=m.useState([]),[c,d]=m.useState("");return m.useEffect(()=>{e?.description&&d(e?.description)},[e?.description]),m.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(N.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(Ca,{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(N.ChevronUp,{className:"w-4 h-4"}):l.jsx(N.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))]})})})]})},
|
|
33
|
-
`).map((c,d)=>c.trim()&&l.jsx("p",{className:"text-sm",children:c},d))})})]})},Sa=["timedout","error"],Ea=({id:e,content:t,question:s,actionClassName:n,actionIconSize:r,copyButtonId:o,onResend:i})=>{const[a,c]=m.useState(!1),[d,u]=m.useState(!1),[h,p]=m.useState(!1),[g,x]=m.useState(!1),[w,v]=m.useState(!1),y=Sa.includes(e),C=async()=>{try{await or(t),c(!0);const j=setTimeout(()=>{c(!1),clearTimeout(j)},2e3)}catch(j){console.error("copy error:",j)}},A=()=>{u(!d),p(!1)},V=()=>{p(!h),u(!1)},P=async()=>{if("speechSynthesis"in window){if(g){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)}},F=()=>{if(i){v(!0),i();const j=setTimeout(()=>{v(!1),clearTimeout(j)},1e3)}};return l.jsxs("div",{className:mt("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(N.Check,{className:"w-4 h-4 text-[#38C200] dark:text-[#38C200]",style:{width:r,height:r}}):l.jsx(N.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(N.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:V,className:`p-1 hover:bg-black/5 dark:hover:bg-white/5 rounded-lg transition-colors ${h?"animate-shake":""}`,children:l.jsx(N.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(N.Volume2,{className:`w-4 h-4 ${g?"text-[#1990FF] dark:text-[#1990FF]":"text-[#666666] dark:text-[#A3A3A3]"}`,style:{width:r,height:r}})})}),s&&l.jsx("button",{onClick:F,className:`p-1 hover:bg-black/5 dark:hover:bg-white/5 rounded-lg transition-colors ${w?"animate-spin":""}`,children:l.jsx(N.RotateCcw,{className:`w-4 h-4 ${w?"text-[#1990FF] dark:text-[#1990FF]":"text-[#666666] dark:text-[#A3A3A3]"}`,style:{width:r,height:r}})})]})};function Pa({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(N.MoveRight,{className:"w-3 h-3 ml-1.5 shrink-0"})]},n))})}const ja=({textToCopy:e})=>{const[t,s]=m.useState(!1),n=async()=>{try{await or(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(N.Check,{className:"w-4 h-4 text-[#38C200] dark:text-[#38C200]"}):l.jsx(N.Copy,{className:"w-4 h-4 text-gray-600 dark:text-gray-300"})})},Na=e=>{const{message:t,attachments:s}=e,[n,r]=m.useState(!1),[o,i]=m.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 oa.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:mt("size-6 transition",{"opacity-0":!n}),children:l.jsx(ja,{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:mt("w-full",{"mt-3":t}),children:l.jsx(aa.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"})})]})},Va=({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 Ma(){const[e,t]=m.useState(),[s,n]=m.useState(),[r,o]=m.useState(),[i,a]=m.useState(),[c,d]=m.useState(),[u,h]=m.useState(),[p,g]=m.useState(),x={deal_query_intent:m.useCallback(v=>{t(y=>y?{...y,message_chunk:(y.message_chunk||"")+(v.message_chunk||"")}:v)},[]),deal_tools:m.useCallback(v=>{n(y=>y?{...y,message_chunk:(y.message_chunk||"")+(v.message_chunk||"")}:v)},[]),deal_fetch_source:m.useCallback(v=>{o(y=>y?{...y,message_chunk:(y.message_chunk||"")+(v.message_chunk||"")}:v)},[]),deal_pick_source:m.useCallback(v=>{a(y=>y?{...y,message_chunk:(y.message_chunk||"")+(v.message_chunk||"")}:v)},[]),deal_deep_read:m.useCallback(v=>{d(y=>y?{...y,message_chunk:(y.message_chunk||"")+"&"+(v.message_chunk||"")}:v)},[]),deal_think:m.useCallback(v=>{h(y=>y?{...y,message_chunk:(y.message_chunk||"")+(v.message_chunk||"")}:v)},[]),deal_response:m.useCallback(v=>{g(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),g(void 0),setTimeout(v,0)})}}const ks=m.createContext({});function Ts(e){const t=m.useRef(null);return t.current===null&&(t.current=e()),t.current}const Ss=typeof window<"u",ar=Ss?m.useLayoutEffect:m.useEffect,Jt=m.createContext(null);function Es(e,t){e.indexOf(t)===-1&&e.push(t)}function Ps(e,t){const s=e.indexOf(t);s>-1&&e.splice(s,1)}const xe=(e,t,s)=>s>t?t:s<e?e:s;function js(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let Je=()=>{},ke=()=>{};typeof process<"u"&&process.env?.NODE_ENV!=="production"&&(Je=(e,t,s)=>{!e&&typeof console<"u"&&console.warn(js(t,s))},ke=(e,t,s)=>{if(!e)throw new Error(js(t,s))});const Te={},lr=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function cr(e){return typeof e=="object"&&e!==null}const ur=e=>/^0[^.\s]+$/u.test(e);function Ns(e){let t;return()=>(t===void 0&&(t=e()),t)}const ue=e=>e,Da=(e,t)=>s=>t(e(s)),xt=(...e)=>e.reduce(Da),vt=(e,t,s)=>{const n=t-e;return n===0?1:(s-e)/n};class Vs{constructor(){this.subscriptions=[]}add(t){return Es(this.subscriptions,t),()=>Ps(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 ve=e=>e*1e3,de=e=>e/1e3;function dr(e,t){return t?e*(1e3/t):0}const hr=new Set;function Ms(e,t,s){e||hr.has(t)||(console.warn(js(t,s)),hr.add(t))}const fr=(e,t,s)=>(((1-3*s+3*t)*e+(3*s-6*t))*e+3*t)*e,Fa=1e-7,La=12;function Ba(e,t,s,n,r){let o,i,a=0;do i=t+(s-t)/2,o=fr(i,n,r)-e,o>0?s=i:t=i;while(Math.abs(o)>Fa&&++a<La);return i}function bt(e,t,s,n){if(e===t&&s===n)return ue;const r=o=>Ba(o,0,1,e,s);return o=>o===0||o===1?o:fr(r(o),t,n)}const pr=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,mr=e=>t=>1-e(1-t),gr=bt(.33,1.53,.69,.99),Ds=mr(gr),yr=pr(Ds),xr=e=>(e*=2)<1?.5*Ds(e):.5*(2-Math.pow(2,-10*(e-1))),Fs=e=>1-Math.sin(Math.acos(e)),vr=mr(Fs),br=pr(Fs),Ra=bt(.42,0,1,1),Oa=bt(0,0,.58,1),wr=bt(.42,0,.58,1),Ia=e=>Array.isArray(e)&&typeof e[0]!="number",Ar=e=>Array.isArray(e)&&typeof e[0]=="number",Cr={linear:ue,easeIn:Ra,easeInOut:wr,easeOut:Oa,circIn:Fs,circInOut:br,circOut:vr,backIn:Ds,backInOut:yr,backOut:gr,anticipate:xr},Ua=e=>typeof e=="string",kr=e=>{if(Ar(e)){ke(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,s,n,r]=e;return bt(t,s,n,r)}else if(Ua(e))return ke(Cr[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Cr[e];return e},Qt=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Wa(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 qa=40;function Tr(e,t){let s=!1,n=!0;const r={delta:0,timestamp:0,isProcessing:!1},o=()=>s=!0,i=Qt.reduce((A,V)=>(A[V]=Wa(o),A),{}),{setup:a,read:c,resolveKeyframes:d,preUpdate:u,update:h,preRender:p,render:g,postRender:x}=i,w=()=>{const A=Te.useManualTiming?r.timestamp:performance.now();s=!1,Te.useManualTiming||(r.delta=n?1e3/60:Math.max(Math.min(A-r.timestamp,qa),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),g.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:Qt.reduce((A,V)=>{const P=i[V];return A[V]=(F,j=!1,E=!1)=>(s||v(),P.schedule(F,j,E)),A},{}),cancel:A=>{for(let V=0;V<Qt.length;V++)i[Qt[V]].cancel(A)},state:r,steps:i}}const{schedule:W,cancel:je,state:$,steps:Ls}=Tr(typeof requestAnimationFrame<"u"?requestAnimationFrame:ue,!0);let Ht;function _a(){Ht=void 0}const se={now:()=>(Ht===void 0&&se.set($.isProcessing||Te.useManualTiming?$.timestamp:performance.now()),Ht),set:e=>{Ht=e,queueMicrotask(_a)}},Sr=e=>t=>typeof t=="string"&&t.startsWith(e),Er=Sr("--"),Ka=Sr("var(--"),Bs=e=>Ka(e)?Ya.test(e.split("/*")[0].trim()):!1,Ya=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Pr(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Qe={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},wt={...Qe,transform:e=>xe(0,1,e)},Xt={...Qe,default:1},At=e=>Math.round(e*1e5)/1e5,Rs=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function za(e){return e==null}const Ga=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Os=(e,t)=>s=>!!(typeof s=="string"&&Ga.test(s)&&s.startsWith(e)||t&&!za(s)&&Object.prototype.hasOwnProperty.call(s,t)),jr=(e,t,s)=>n=>{if(typeof n!="string")return n;const[r,o,i,a]=n.match(Rs);return{[e]:parseFloat(r),[t]:parseFloat(o),[s]:parseFloat(i),alpha:a!==void 0?parseFloat(a):1}},Ja=e=>xe(0,255,e),Is={...Qe,transform:e=>Math.round(Ja(e))},Re={test:Os("rgb","red"),parse:jr("red","green","blue"),transform:({red:e,green:t,blue:s,alpha:n=1})=>"rgba("+Is.transform(e)+", "+Is.transform(t)+", "+Is.transform(s)+", "+At(wt.transform(n))+")"};function Qa(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 Us={test:Os("#"),parse:Qa,transform:Re.transform},Ct=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ne=Ct("deg"),be=Ct("%"),S=Ct("px"),Ha=Ct("vh"),Xa=Ct("vw"),Nr={...be,parse:e=>be.parse(e)/100,transform:e=>be.transform(e*100)},He={test:Os("hsl","hue"),parse:jr("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:s,alpha:n=1})=>"hsla("+Math.round(e)+", "+be.transform(At(t))+", "+be.transform(At(s))+", "+At(wt.transform(n))+")"},J={test:e=>Re.test(e)||Us.test(e)||He.test(e),parse:e=>Re.test(e)?Re.parse(e):He.test(e)?He.parse(e):Us.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Re.transform(e):He.transform(e),getAnimatableNone:e=>{const t=J.parse(e);return t.alpha=0,J.transform(t)}},Za=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function $a(e){return isNaN(e)&&typeof e=="string"&&(e.match(Rs)?.length||0)+(e.match(Za)?.length||0)>0}const Vr="number",Mr="color",el="var",tl="var(",Dr="${}",sl=/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 kt(e){const t=e.toString(),s=[],n={color:[],number:[],var:[]},r=[];let o=0;const a=t.replace(sl,c=>(J.test(c)?(n.color.push(o),r.push(Mr),s.push(J.parse(c))):c.startsWith(tl)?(n.var.push(o),r.push(el),s.push(c)):(n.number.push(o),r.push(Vr),s.push(parseFloat(c))),++o,Dr)).split(Dr);return{values:s,split:a,indexes:n,types:r}}function Fr(e){return kt(e).values}function Lr(e){const{split:t,types:s}=kt(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===Vr?o+=At(r[i]):a===Mr?o+=J.transform(r[i]):o+=r[i]}return o}}const nl=e=>typeof e=="number"?0:J.test(e)?J.getAnimatableNone(e):e;function rl(e){const t=Fr(e);return Lr(e)(t.map(nl))}const Ve={test:$a,parse:Fr,createTransformer:Lr,getAnimatableNone:rl};function Ws(e,t,s){return s<0&&(s+=1),s>1&&(s-=1),s<.16666666666666666?e+(t-e)*6*s:s<.5?t:s<.6666666666666666?e+(t-e)*(.6666666666666666-s)*6:e}function il({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=Ws(c,a,e+.3333333333333333),o=Ws(c,a,e),i=Ws(c,a,e-.3333333333333333)}return{red:Math.round(r*255),green:Math.round(o*255),blue:Math.round(i*255),alpha:n}}function Zt(e,t){return s=>s>0?t:e}const K=(e,t,s)=>e+(t-e)*s,qs=(e,t,s)=>{const n=e*e,r=s*(t*t-n)+n;return r<0?0:Math.sqrt(r)},ol=[Us,Re,He],al=e=>ol.find(t=>t.test(e));function Br(e){const t=al(e);if(Je(!!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===He&&(s=il(s)),s}const Rr=(e,t)=>{const s=Br(e),n=Br(t);if(!s||!n)return Zt(e,t);const r={...s};return o=>(r.red=qs(s.red,n.red,o),r.green=qs(s.green,n.green,o),r.blue=qs(s.blue,n.blue,o),r.alpha=K(s.alpha,n.alpha,o),Re.transform(r))},_s=new Set(["none","hidden"]);function ll(e,t){return _s.has(e)?s=>s<=0?e:t:s=>s>=1?t:e}function cl(e,t){return s=>K(e,t,s)}function Ks(e){return typeof e=="number"?cl:typeof e=="string"?Bs(e)?Zt:J.test(e)?Rr:hl:Array.isArray(e)?Or:typeof e=="object"?J.test(e)?Rr:ul:Zt}function Or(e,t){const s=[...e],n=s.length,r=e.map((o,i)=>Ks(o)(o,t[i]));return o=>{for(let i=0;i<n;i++)s[i]=r[i](o);return s}}function ul(e,t){const s={...e,...t},n={};for(const r in s)e[r]!==void 0&&t[r]!==void 0&&(n[r]=Ks(e[r])(e[r],t[r]));return r=>{for(const o in n)s[o]=n[o](r);return s}}function dl(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 hl=(e,t)=>{const s=Ve.createTransformer(t),n=kt(e),r=kt(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?_s.has(e)&&!r.values.length||_s.has(t)&&!n.values.length?ll(e,t):xt(Or(dl(n,r),r.values),s):(Je(!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"),Zt(e,t))};function Ir(e,t,s){return typeof e=="number"&&typeof t=="number"&&typeof s=="number"?K(e,t,s):Ks(e)(e,t)}const fl=e=>{const t=({timestamp:s})=>e(s);return{start:(s=!0)=>W.update(t,s),stop:()=>je(t),now:()=>$.isProcessing?$.timestamp:se.now()}},Ur=(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)})`},$t=2e4;function Ys(e){let t=0;const s=50;let n=e.next(t);for(;!n.done&&t<$t;)t+=s,n=e.next(t);return t>=$t?1/0:t}function pl(e,t=100,s){const n=s({...e,keyframes:[0,t]}),r=Math.min(Ys(n),$t);return{type:"keyframes",ease:o=>n.next(r*o).value/t,duration:de(r)}}const ml=5;function Wr(e,t,s){const n=Math.max(t-ml,0);return dr(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},zs=.001;function gl({duration:e=Y.duration,bounce:t=Y.bounce,velocity:s=Y.velocity,mass:n=Y.mass}){let r,o;Je(e<=ve(Y.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let i=1-t;i=xe(Y.minDamping,Y.maxDamping,i),e=xe(Y.minDuration,Y.maxDuration,de(e)),i<1?(r=d=>{const u=d*i,h=u*e,p=u-s,g=Gs(d,i),x=Math.exp(-h);return zs-p/g*x},o=d=>{const h=d*i*e,p=h*s+s,g=Math.pow(i,2)*Math.pow(d,2)*e,x=Math.exp(-h),w=Gs(Math.pow(d,2),i);return(-r(d)+zs>0?-1:1)*((p-g)*x)/w}):(r=d=>{const u=Math.exp(-d*e),h=(d-s)*e+1;return-zs+u*h},o=d=>{const u=Math.exp(-d*e),h=(s-d)*(e*e);return u*h});const a=5/e,c=xl(r,o,a);if(e=ve(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 yl=12;function xl(e,t,s){let n=s;for(let r=1;r<yl;r++)n=n-e(n)/t(n);return n}function Gs(e,t){return e*Math.sqrt(1-t*t)}const vl=["duration","bounce"],bl=["stiffness","damping","mass"];function qr(e,t){return t.some(s=>e[s]!==void 0)}function wl(e){let t={velocity:Y.velocity,stiffness:Y.stiffness,damping:Y.damping,mass:Y.mass,isResolvedFromDuration:!1,...e};if(!qr(e,bl)&&qr(e,vl))if(e.visualDuration){const s=e.visualDuration,n=2*Math.PI/(s*1.2),r=n*n,o=2*xe(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:Y.mass,stiffness:r,damping:o}}else{const s=gl(e);t={...t,...s,mass:Y.mass},t.isResolvedFromDuration=!0}return t}function es(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:g}=wl({...s,velocity:-de(s.velocity||0)}),x=p||0,w=d/(2*Math.sqrt(c*u)),v=i-o,y=de(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=Gs(y,w);A=F=>{const j=Math.exp(-w*y*F);return i-j*((x+w*y*v)/P*Math.sin(P*F)+v*Math.cos(P*F))}}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=F=>{const j=Math.exp(-w*y*F),E=Math.min(P*F,300);return i-j*((x+w*y*v)*Math.sinh(E)+P*v*Math.cosh(E))/P}}const V={calculatedDuration:g&&h||null,next:P=>{const F=A(P);if(g)a.done=P>=h;else{let j=P===0?x:0;w<1&&(j=P===0?ve(x):Wr(A,P,F));const E=Math.abs(j)<=n,U=Math.abs(i-F)<=r;a.done=E&&U}return a.value=a.done?i:F,a},toString:()=>{const P=Math.min(Ys(V),$t),F=Ur(j=>V.next(P*j).value,P,30);return P+"ms "+F},toTransition:()=>{}};return V}es.applyToOptions=e=>{const t=pl(e,100,es);return e.ease=t.ease,e.duration=ve(t.duration),e.type="keyframes",e};function Js({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},g=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),V=E=>{const U=C(E),Q=A(E);p.done=Math.abs(U)<=d,p.value=p.done?y:Q};let P,F;const j=E=>{g(p.value)&&(P=E,F=es({keyframes:[p.value,x(p.value)],velocity:Wr(A,E,p.value),damping:r,stiffness:o,restDelta:d,restSpeed:u}))};return j(0),{calculatedDuration:null,next:E=>{let U=!1;return!F&&P===void 0&&(U=!0,V(E),j(E)),P!==void 0&&E>=P?F.next(E-P):(!U&&V(E),p)}}}function Al(e,t,s){const n=[],r=s||Te.mix||Ir,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]||ue:t;a=xt(c,a)}n.push(a)}return n}function Cl(e,t,{clamp:s=!0,ease:n,mixer:r}={}){const o=e.length;if(ke(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=Al(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=vt(e[h],e[h+1],u);return a[h](p)};return s?u=>d(xe(e[0],e[o-1],u)):d}function kl(e,t){const s=e[e.length-1];for(let n=1;n<=t;n++){const r=vt(0,t,n);e.push(K(s,1,r))}}function Tl(e){const t=[0];return kl(t,e.length-1),t}function Sl(e,t){return e.map(s=>s*t)}function El(e,t){return e.map(()=>t||wr).splice(0,e.length-1)}function Xe({duration:e=300,keyframes:t,times:s,ease:n="easeInOut"}){const r=Ia(n)?n.map(kr):kr(n),o={done:!1,value:t[0]},i=Sl(s&&s.length===t.length?s:Tl(t),e),a=Cl(i,t,{ease:Array.isArray(r)?r:El(t,r)});return{calculatedDuration:e,next:c=>(o.value=a(c),o.done=c>=e,o)}}const Pl=e=>e!==null;function Qs(e,{repeat:t,repeatType:s="loop"},n,r=1){const o=e.filter(Pl),a=r<0||t&&s!=="loop"&&t%2===1?0:o.length-1;return!a||n===void 0?o[a]:n}const jl={decay:Js,inertia:Js,tween:Xe,keyframes:Xe,spring:es};function _r(e){typeof e.type=="string"&&(e.type=jl[e.type])}class Hs{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 Nl=e=>e/100;class Xs extends Hs{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;_r(t);const{type:s=Xe,repeat:n=0,repeatDelay:r=0,repeatType:o,velocity:i=0}=t;let{keyframes:a}=t;const c=s||Xe;process.env.NODE_ENV!=="production"&&c!==Xe&&ke(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),c!==Xe&&typeof a[0]!="number"&&(this.mixKeyframes=xt(Nl,Ir(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=Ys(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:g,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,V=n;if(h){const E=Math.min(this.currentTime,r)/a;let U=Math.floor(E),Q=E%1;!Q&&E>=1&&(Q=1),Q===1&&U--,U=Math.min(U,h+1),!!(U%2)&&(p==="reverse"?(Q=1-Q,g&&(Q-=g/a)):p==="mirror"&&(V=i)),A=xe(0,1,Q)*a}const P=C?{done:!1,value:u[0]}:V.next(A);o&&(P.value=o(P.value));let{done:F}=P;!C&&c!==null&&(F=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const j=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&F);return j&&x!==Js&&(P.value=Qs(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 de(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+de(t)}get time(){return de(this.currentTime)}set time(t){t=ve(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=de(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=fl,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 Vl(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Oe=e=>e*180/Math.PI,Zs=e=>{const t=Oe(Math.atan2(e[1],e[0]));return $s(t)},Ml={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Zs,rotateZ:Zs,skewX:e=>Oe(Math.atan(e[1])),skewY:e=>Oe(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},$s=e=>(e=e%360,e<0&&(e+=360),e),Kr=Zs,Yr=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),zr=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Dl={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Yr,scaleY:zr,scale:e=>(Yr(e)+zr(e))/2,rotateX:e=>$s(Oe(Math.atan2(e[6],e[5]))),rotateY:e=>$s(Oe(Math.atan2(-e[2],e[0]))),rotateZ:Kr,rotate:Kr,skewX:e=>Oe(Math.atan(e[4])),skewY:e=>Oe(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function en(e){return e.includes("scale")?1:0}function tn(e,t){if(!e||e==="none")return en(t);const s=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,r;if(s)n=Dl,r=s;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=Ml,r=a}if(!r)return en(t);const o=n[t],i=r[1].split(",").map(Ll);return typeof o=="function"?o(i):i[o]}const Fl=(e,t)=>{const{transform:s="none"}=getComputedStyle(e);return tn(s,t)};function Ll(e){return parseFloat(e.trim())}const Ze=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],$e=new Set(Ze),Gr=e=>e===Qe||e===S,Bl=new Set(["x","y","z"]),Rl=Ze.filter(e=>!Bl.has(e));function Ol(e){const t=[];return Rl.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})=>tn(t,"x"),y:(e,{transform:t})=>tn(t,"y")};Me.translateX=Me.x,Me.translateY=Me.y;const Ie=new Set;let sn=!1,nn=!1,rn=!1;function Jr(){if(nn){const e=Array.from(Ie).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),s=new Map;t.forEach(n=>{const r=Ol(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)})}nn=!1,sn=!1,Ie.forEach(e=>e.complete(rn)),Ie.clear()}function Qr(){Ie.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(nn=!0)})}function Il(){rn=!0,Qr(),Jr(),rn=!1}class on{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?(Ie.add(this),sn||(sn=!0,W.read(Qr),W.resolveKeyframes(Jr))):(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])}Vl(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Ie.delete(this)}cancel(){this.state==="scheduled"&&(Ie.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Ul=e=>e.startsWith("--");function Wl(e,t,s){Ul(t)?e.style.setProperty(t,s):e.style[t]=s}const ql=Ns(()=>window.ScrollTimeline!==void 0),_l={};function Kl(e,t){const s=Ns(e);return()=>_l[t]??s()}const Hr=Kl(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Tt=([e,t,s,n])=>`cubic-bezier(${e}, ${t}, ${s}, ${n})`,Xr={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Tt([0,.65,.55,1]),circOut:Tt([.55,0,1,.45]),backIn:Tt([.31,.01,.66,-.59]),backOut:Tt([.33,1.53,.69,.99])};function Zr(e,t){if(e)return typeof e=="function"?Hr()?Ur(e,t):"ease-out":Ar(e)?Tt(e):Array.isArray(e)?e.map(s=>Zr(s,t)||Xr.easeOut):Xr[e]}function Yl(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=Zr(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 $r(e){return typeof e=="function"&&"applyToOptions"in e}function zl({type:e,...t}){return $r(e)&&Hr()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Gl extends Hs{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,ke(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const d=zl(t);this.animation=Yl(s,n,r,d,o),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const u=Qs(r,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):Wl(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 de(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+de(t)}get time(){return de(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ve(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&&ql()?(this.animation.timeline=t,ue):s(this)}}const ei={anticipate:xr,backInOut:yr,circInOut:br};function Jl(e){return e in ei}function Ql(e){typeof e.ease=="string"&&Jl(e.ease)&&(e.ease=ei[e.ease])}const an=10;class Hl extends Gl{constructor(t){Ql(t),_r(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 Xs({...i,autoplay:!1}),c=Math.max(an,se.now()-this.startTime),d=xe(0,an,c-an);s.setWithVelocity(a.sample(Math.max(0,c-d)).value,a.sample(c).value,d),a.stop()}}const ti=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ve.test(e)||e==="0")&&!e.startsWith("url("));function Xl(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 Zl(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=ti(r,t),a=ti(o,t);return Je(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:Xl(e)||(s==="spring"||$r(s))&&n}function ln(e){e.duration=0,e.type="keyframes"}const $l=new Set(["opacity","clipPath","filter","transform"]),ec=Ns(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function tc(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 ec()&&s&&$l.has(s)&&(s!=="transform"||!d)&&!c&&!n&&r!=="mirror"&&o!==0&&i!=="inertia"}const sc=40;class nc extends Hs{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},g=u?.KeyframeResolver||on;this.keyframeResolver=new g(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(),Zl(t,o,i,a)||((Te.instantAnimations||!c)&&u?.(Qs(t,n,s)),t[0]=t[t.length-1],ln(n),n.repeat=0);const p={startTime:r?this.resolvedAt?this.resolvedAt-this.createdAt>sc?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:s,...n,keyframes:t},g=!d&&tc(p)?new Hl({...p,element:p.motionValue.owner.current}):new Xs(p);g.finished.then(()=>this.notifyFinished()).catch(ue),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}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(),Il()),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 rc=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ic(e){const t=rc.exec(e);if(!t)return[,];const[,s,n,r]=t;return[`--${s??n}`,r]}const oc=4;function si(e,t,s=1){ke(s<=oc,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[n,r]=ic(e);if(!n)return;const o=window.getComputedStyle(t).getPropertyValue(n);if(o){const i=o.trim();return lr(i)?parseFloat(i):i}return Bs(r)?si(r,t,s+1):r}function cn(e,t){return e?.[t]??e?.default??e}const ni=new Set(["width","height","top","left","right","bottom",...Ze]),ac={test:e=>e==="auto",parse:e=>e},ri=e=>t=>t.test(e),ii=[Qe,S,be,Ne,Xa,Ha,ac],oi=e=>ii.find(ri(e));function lc(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ur(e):!0}const cc=new Set(["brightness","contrast","saturate","opacity"]);function uc(e){const[t,s]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=s.match(Rs)||[];if(!n)return e;const r=s.replace(n,"");let o=cc.has(t)?1:0;return n!==s&&(o*=100),t+"("+o+r+")"}const dc=/\b([a-z-]*)\(.*?\)/gu,un={...Ve,getAnimatableNone:e=>{const t=e.match(dc);return t?t.map(uc).join(" "):e}},ai={...Qe,transform:Math.round},dn={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,...{rotate:Ne,rotateX:Ne,rotateY:Ne,rotateZ:Ne,scale:Xt,scaleX:Xt,scaleY:Xt,scaleZ:Xt,skew:Ne,skewX:Ne,skewY:Ne,distance:S,translateX:S,translateY:S,translateZ:S,x:S,y:S,z:S,perspective:S,transformPerspective:S,opacity:wt,originX:Nr,originY:Nr,originZ:S},zIndex:ai,fillOpacity:wt,strokeOpacity:wt,numOctaves:ai},hc={...dn,color:J,backgroundColor:J,outlineColor:J,fill:J,stroke:J,borderColor:J,borderTopColor:J,borderRightColor:J,borderBottomColor:J,borderLeftColor:J,filter:un,WebkitFilter:un},li=e=>hc[e];function ci(e,t){let s=li(e);return s!==un&&(s=Ve),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)&&kt(o).values.length&&(r=e[n]),n++}if(r&&s)for(const o of t)e[o]=ci(s,r)}class mc extends on{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(),Bs(h))){const p=si(h,s.current);p!==void 0&&(t[u]=p),u===t.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!ni.has(n)||t.length!==2)return;const[r,o]=t,i=oi(r),a=oi(o),c=Pr(r),d=Pr(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||lc(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 ui=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function di(e){return cr(e)&&"offsetHeight"in e}const hi=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"&&Ms(!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 Vs);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>hi)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,hi);return dr(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 et(e,t){return new xc(e,t)}const{schedule:hn}=Tr(queueMicrotask,!1),ge={x:!1,y:!1};function fi(){return ge.x||ge.y}function vc(e){return e==="x"||e==="y"?ge[e]?null:(ge[e]=!0,()=>{ge[e]=!1}):ge.x||ge.y?null:(ge.x=ge.y=!0,()=>{ge.x=ge.y=!1})}function pi(e,t){const s=gc(e),n=new AbortController,r={passive:!0,...t,signal:n.signal};return[s,r,()=>n.abort()]}function mi(e){return!(e.pointerType==="touch"||fi())}function bc(e,t,s={}){const[n,r,o]=pi(e,s),i=a=>{if(!mi(a))return;const{target:c}=a,d=t(c,a);if(typeof d!="function"||!c)return;const u=h=>{mi(h)&&(d(h),c.removeEventListener("pointerleave",u))};c.addEventListener("pointerleave",u,r)};return n.forEach(a=>{a.addEventListener("pointerenter",i,r)}),o}const gi=(e,t)=>t?e===t?!0:gi(e,t.parentElement):!1,fn=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,wc=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function yi(e){return wc.has(e.tagName)||e.isContentEditable===!0}const ts=new WeakSet;function xi(e){return t=>{t.key==="Enter"&&e(t)}}function pn(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=xi(()=>{if(ts.has(s))return;pn(s,"down");const r=xi(()=>{pn(s,"up")}),o=()=>pn(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 vi(e){return fn(e)&&!fi()}function Cc(e,t,s={}){const[n,r,o]=pi(e,s),i=a=>{const c=a.currentTarget;if(!vi(a))return;ts.add(c);const d=t(c,a),u=(g,x)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",p),ts.has(c)&&ts.delete(c),vi(g)&&typeof d=="function"&&d(g,{success:x})},h=g=>{u(g,c===window||c===document||s.useGlobalTarget||gi(c,g.target))},p=g=>{u(g,!1)};window.addEventListener("pointerup",h,r),window.addEventListener("pointercancel",p,r)};return n.forEach(a=>{(s.useGlobalTarget?window:a).addEventListener("pointerdown",i,r),di(a)&&(a.addEventListener("focus",d=>Ac(d,r)),!yi(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function bi(e){return cr(e)&&"ownerSVGElement"in e}function kc(e){return bi(e)&&e.tagName==="svg"}const te=e=>!!(e&&e.getVelocity),Tc=[...ii,J,Ve],Sc=e=>Tc.find(ri(e)),mn=m.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function wi(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=wi(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():wi(e[r],null)}}}}function Pc(...e){return Yt.useCallback(Ec(...e),e)}class jc extends Yt.Component{getSnapshotBeforeUpdate(t){const s=this.props.childRef.current;if(s&&t.isPresent&&!this.props.isPresent){const n=s.offsetParent,r=di(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 Nc({children:e,isPresent:t,anchorX:s,root:n}){const r=m.useId(),o=m.useRef(null),i=m.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=m.useContext(mn),c=e.props?.ref??e?.ref,d=Pc(o,c);return m.useInsertionEffect(()=>{const{width:u,height:h,top:p,left:g,right:x}=i.current;if(t||!o.current||!u||!h)return;const w=s==="left"?`left: ${g}`:`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(`
|
|
31
|
+
<%s key={someKey} {...props} />`,gn,Fe,xh,Fe),Ro[Fe+gn]=!0}}return f===n?fh(Q):hh(Q),Q}}function ph(f,w,k){return Lo(f,w,k,!0)}function mh(f,w,k){return Lo(f,w,k,!1)}var gh=mh,yh=ph;et.Fragment=n,et.jsx=gh,et.jsxs=yh})()),et}var bn;function Ko(){return bn||(bn=1,process.env.NODE_ENV==="production"?Ct.exports=Wo():Ct.exports=qo()),Ct.exports}var l=Ko();const Yo={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:"Generate 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:"只有选定的文件才会参与当前会话。"}}}}},wn=Bo.createInstance();wn.use(ce.initReactI18next).init({resources:Yo,lng:"en",fallbackLng:"en",interpolation:{escapeValue:!1},react:{useSuspense:!1}});const zo="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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CVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJVAlUCVQJfC8S+L8Vg5EuY3PbmAAAAABJRU5ErkJggg=='%3e%3c/image%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e";function kt({size:e=18,children:t,className:s,title:n,onClick:r,action:i=!1,...o}){const a=c=>{r?.(c)};return l.jsx("i",{style:{width:e,height:e},title:n,onClick:a,className:Ze("inline-flex items-center justify-center rounded-sm p-[2px] transition-all",{"cursor-pointer":i},s),children:l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",style:{width:"100%",height:"100%"},...o,children:t})})}function Go(e){return l.jsx(kt,{...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 Jo=({Detail:e,ChunkData:t,getSuggestion:s,loading:n})=>{const{t:r}=ce.useTranslation(),[i,o]=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:()=>o(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(j.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(Go,{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}`)})]}),i?l.jsx(j.ChevronUp,{className:"w-4 h-4"}):l.jsx(j.ChevronDown,{className:"w-4 h-4"})]}),i&&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]})})})]})},Qo=({Detail:e,ChunkData:t,loading:s})=>{const{t:n}=ce.useTranslation(),[r,i]=g.useState(!1),[o,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,o]),!t&&!e?null:l.jsxs("div",{className:"space-y-2 mb-3 w-full",children:[l.jsxs("button",{onClick:()=>i(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(j.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(j.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(j.ChevronUp,{className:"w-4 h-4"}):l.jsx(j.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(wt,{content:o||""})})})]})},An=async e=>{navigator.clipboard?await navigator.clipboard.writeText(e):console.log("Clipboard not available",e)},Ho=e=>{window.open(e,"_blank")},Cn=e=>{try{const t=new Date(e),s=t.getFullYear(),n=String(t.getMonth()+1).padStart(2,"0"),r=String(t.getDate()).padStart(2,"0"),i=String(t.getHours()).padStart(2,"0"),o=String(t.getMinutes()).padStart(2,"0"),a=String(t.getSeconds()).padStart(2,"0");return`${s}-${n}-${r} ${i}:${o}:${a}`}catch(t){return console.error(t),String(e)}};function Xo(e){return l.jsx(kt,{...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 Zo=({Detail:e,ChunkData:t,loading:s,formatUrl:n})=>{const{t:r}=ce.useTranslation(),[i,o]=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 b=JSON.parse(m[0]);u(b)}}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&&Ho(m)};return!t&&!e?null:l.jsxs("div",{className:`mt-2 mb-2 max-w-full w-full md:w-[610px] ${i?"rounded-lg overflow-hidden border border-[#E6E6E6] dark:border-[#272626]":""}`,children:[l.jsxs("button",{onClick:()=>o(p=>!p),className:`inline-flex justify-between items-center gap-2 px-2 py-1 rounded-xl transition-colors whitespace-nowrap ${i?"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(Xo,{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)})})]}),i?l.jsx(j.ChevronUp,{className:"w-4 h-4 text-[#999999]"}):l.jsx(j.ChevronDown,{className:"w-4 h-4 text-[#999999]"})]}),i&&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(j.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(j.SquareArrowOutUpRight,{className:"w-3 h-3 text-[#999999] dark:text-[#999999] shrink-0"})]})]})},m))})]})};function $o(e){return l.jsx(kt,{...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 ea=({Detail:e,ChunkData:t,loading:s})=>{const{t:n}=ce.useTranslation(),[r,i]=g.useState(!1),[o,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:()=>i(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(j.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($o,{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:o?.length})})]}),r?l.jsx(j.ChevronUp,{className:"w-4 h-4"}):l.jsx(j.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:o?.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 ta(e){return l.jsx(kt,{...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 sa=({Detail:e,ChunkData:t,loading:s})=>{const{t:n}=ce.useTranslation(),[r,i]=g.useState(!1),[o,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:()=>i(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(j.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(ta,{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(o.length)})})]}),r?l.jsx(j.ChevronUp,{className:"w-4 h-4"}):l.jsx(j.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:[o?.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))]})})})]})},na=({Detail:e,ChunkData:t,loading:s})=>{const{t:n}=ce.useTranslation(),[r,i]=g.useState(!0),[o,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,o]),!t&&!e?null:l.jsxs("div",{className:"space-y-2 mb-3 w-full",children:[l.jsxs("button",{onClick:()=>i(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(j.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(j.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(j.ChevronUp,{className:"w-4 h-4"}):l.jsx(j.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:o?.split(`
|
|
33
|
+
`).map((c,d)=>c.trim()&&l.jsx("p",{className:"text-sm",children:c},d))})})]})},ra=["timedout","error"],ia=({id:e,content:t,question:s,actionClassName:n,actionIconSize:r,copyButtonId:i,onResend:o})=>{const[a,c]=g.useState(!1),[d,u]=g.useState(!1),[h,p]=g.useState(!1),[m,b]=g.useState(!1),[A,C]=g.useState(!1),y=ra.includes(e),v=async()=>{try{await An(t),c(!0);const E=setTimeout(()=>{c(!1),clearTimeout(E)},2e3)}catch(E){console.error("copy error:",E)}},x=()=>{u(!d),p(!1)},N=()=>{p(!h),u(!1)},P=async()=>{if("speechSynthesis"in window){if(m){window.speechSynthesis.cancel(),b(!1);return}const E=new SpeechSynthesisUtterance(t);E.lang="zh-CN",E.onend=()=>{b(!1)},b(!0),window.speechSynthesis.speak(E)}},D=()=>{if(o){C(!0),o();const E=setTimeout(()=>{C(!1),clearTimeout(E)},1e3)}};return l.jsxs("div",{className:Ze("flex items-center gap-2 mt-2",n),children:[!y&&l.jsx("button",{id:i,onClick:v,className:"p-1 hover:bg-black/5 dark:hover:bg-white/5 rounded-lg transition-colors",children:a?l.jsx(j.Check,{className:"w-4 h-4 text-[#38C200] dark:text-[#38C200]",style:{width:r,height:r}}):l.jsx(j.Copy,{className:"w-4 h-4 text-[#666666] dark:text-[#A3A3A3]",style:{width:r,height:r}})}),!y&&l.jsx("button",{onClick:x,className:`p-1 hover:bg-black/5 dark:hover:bg-white/5 rounded-lg transition-colors ${d?"animate-shake":""}`,children:l.jsx(j.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(j.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(j.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 ${A?"animate-spin":""}`,children:l.jsx(j.RotateCcw,{className:`w-4 h-4 ${A?"text-[#1990FF] dark:text-[#1990FF]":"text-[#666666] dark:text-[#A3A3A3]"}`,style:{width:r,height:r}})})]})};function oa({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(j.MoveRight,{className:"w-3 h-3 ml-1.5 shrink-0"})]},n))})}const aa=({textToCopy:e})=>{const[t,s]=g.useState(!1),n=async()=>{try{await An(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(j.Check,{className:"w-4 h-4 text-[#38C200] dark:text-[#38C200]"}):l.jsx(j.Copy,{className:"w-4 h-4 text-gray-600 dark:text-gray-300"})})},la=e=>{const{message:t,attachments:s}=e,[n,r]=g.useState(!1),[i,o]=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 Oo.useAsyncEffect(async()=>{try{if(s.length===0)return;o({}?.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:Ze("size-6 transition",{"opacity-0":!n}),children:l.jsx(aa,{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})]}),i&&i.length>0&&l.jsx("div",{className:Ze("w-full",{"mt-3":t}),children:l.jsx(Io.Attachments,{data:i.map(c=>({id:c._source.id,filename:c._source.name,extname:c._source.icon,size:c._source.size,status:"uploaded"})),className:"text-left"})})]})},ca=({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 ua(){const[e,t]=g.useState(),[s,n]=g.useState(),[r,i]=g.useState(),[o,a]=g.useState(),[c,d]=g.useState(),[u,h]=g.useState(),[p,m]=g.useState(),[b,A]=g.useState([]),C={deal_query_intent:g.useCallback(v=>{t(x=>x?{...x,message_chunk:(x.message_chunk||"")+(v.message_chunk||"")}:v)},[]),deal_tools:g.useCallback(v=>{n(x=>x?{...x,message_chunk:(x.message_chunk||"")+(v.message_chunk||"")}:v)},[]),deal_fetch_source:g.useCallback(v=>{i(x=>x?{...x,message_chunk:(x.message_chunk||"")+(v.message_chunk||"")}:v)},[]),deal_pick_source:g.useCallback(v=>{a(x=>x?{...x,message_chunk:(x.message_chunk||"")+(v.message_chunk||"")}:v)},[]),deal_deep_read:g.useCallback(v=>{d(x=>x?{...x,message_chunk:(x.message_chunk||"")+"&"+(v.message_chunk||"")}:v)},[]),deal_think:g.useCallback(v=>{h(x=>x?{...x,message_chunk:(x.message_chunk||"")+(v.message_chunk||"")}:v)},[]),deal_response:g.useCallback(v=>{m(x=>x?{...x,message_chunk:(x.message_chunk||"")+(v.message_chunk||"")}:v)},[]),deal_deep_research:g.useCallback(v=>{A(x=>[...x,v])},[])};return{data:{query_intent:e,tools:s,fetch_source:r,pick_source:o,deep_read:c,think:u,response:p,deepResearch:b},handlers:C,clearAllChunkData:()=>new Promise(v=>{t(void 0),n(void 0),i(void 0),a(void 0),d(void 0),h(void 0),m(void 0),A([]),setTimeout(v,0)})}}const Gt=g.createContext({});function Jt(e){const t=g.useRef(null);return t.current===null&&(t.current=e()),t.current}const Qt=typeof window<"u",kn=Qt?g.useLayoutEffect:g.useEffect,Tt=g.createContext(null);function Ht(e,t){e.indexOf(t)===-1&&e.push(t)}function Xt(e,t){const s=e.indexOf(t);s>-1&&e.splice(s,1)}const ye=(e,t,s)=>s>t?t:s<e?e:s;function Zt(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let Re=()=>{},be=()=>{};typeof process<"u"&&process.env?.NODE_ENV!=="production"&&(Re=(e,t,s)=>{!e&&typeof console<"u"&&console.warn(Zt(t,s))},be=(e,t,s)=>{if(!e)throw new Error(Zt(t,s))});const we={},Tn=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Sn(e){return typeof e=="object"&&e!==null}const En=e=>/^0[^.\s]+$/u.test(e);function $t(e){let t;return()=>(t===void 0&&(t=e()),t)}const de=e=>e,da=(e,t)=>s=>t(e(s)),tt=(...e)=>e.reduce(da),st=(e,t,s)=>{const n=t-e;return n===0?1:(s-e)/n};class es{constructor(){this.subscriptions=[]}add(t){return Ht(this.subscriptions,t),()=>Xt(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 i=0;i<r;i++){const o=this.subscriptions[i];o&&o(t,s,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const xe=e=>e*1e3,he=e=>e/1e3;function Pn(e,t){return t?e*(1e3/t):0}const jn=new Set;function ts(e,t,s){e||jn.has(t)||(console.warn(Zt(t,s)),jn.add(t))}const Nn=(e,t,s)=>(((1-3*s+3*t)*e+(3*s-6*t))*e+3*t)*e,ha=1e-7,fa=12;function pa(e,t,s,n,r){let i,o,a=0;do o=t+(s-t)/2,i=Nn(o,n,r)-e,i>0?s=o:t=o;while(Math.abs(i)>ha&&++a<fa);return o}function nt(e,t,s,n){if(e===t&&s===n)return de;const r=i=>pa(i,0,1,e,s);return i=>i===0||i===1?i:Nn(r(i),t,n)}const Vn=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Mn=e=>t=>1-e(1-t),Dn=nt(.33,1.53,.69,.99),ss=Mn(Dn),Fn=Vn(ss),Rn=e=>(e*=2)<1?.5*ss(e):.5*(2-Math.pow(2,-10*(e-1))),ns=e=>1-Math.sin(Math.acos(e)),Ln=Mn(ns),Bn=Vn(ns),ma=nt(.42,0,1,1),ga=nt(0,0,.58,1),On=nt(.42,0,.58,1),ya=e=>Array.isArray(e)&&typeof e[0]!="number",In=e=>Array.isArray(e)&&typeof e[0]=="number",_n={linear:de,easeIn:ma,easeInOut:On,easeOut:ga,circIn:ns,circInOut:Bn,circOut:Ln,backIn:ss,backInOut:Fn,backOut:Dn,anticipate:Rn},xa=e=>typeof e=="string",Un=e=>{if(In(e)){be(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,s,n,r]=e;return nt(t,s,n,r)}else if(xa(e))return be(_n[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),_n[e];return e},St=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function va(e,t){let s=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function c(u){o.has(u)&&(d.schedule(u),e()),u(a)}const d={schedule:(u,h=!1,p=!1)=>{const b=p&&r?s:n;return h&&o.add(u),b.has(u)||b.add(u),u},cancel:u=>{n.delete(u),o.delete(u)},process:u=>{if(a=u,r){i=!0;return}r=!0,[s,n]=[n,s],s.forEach(c),s.clear(),r=!1,i&&(i=!1,d.process(u))}};return d}const ba=40;function Wn(e,t){let s=!1,n=!0;const r={delta:0,timestamp:0,isProcessing:!1},i=()=>s=!0,o=St.reduce((x,N)=>(x[N]=va(i),x),{}),{setup:a,read:c,resolveKeyframes:d,preUpdate:u,update:h,preRender:p,render:m,postRender:b}=o,A=()=>{const x=we.useManualTiming?r.timestamp:performance.now();s=!1,we.useManualTiming||(r.delta=n?1e3/60:Math.max(Math.min(x-r.timestamp,ba),1)),r.timestamp=x,r.isProcessing=!0,a.process(r),c.process(r),d.process(r),u.process(r),h.process(r),p.process(r),m.process(r),b.process(r),r.isProcessing=!1,s&&t&&(n=!1,e(A))},C=()=>{s=!0,n=!0,r.isProcessing||e(A)};return{schedule:St.reduce((x,N)=>{const P=o[N];return x[N]=(D,E=!1,S=!1)=>(s||C(),P.schedule(D,E,S)),x},{}),cancel:x=>{for(let N=0;N<St.length;N++)o[St[N]].cancel(x)},state:r,steps:o}}const{schedule:W,cancel:Ae,state:te,steps:rs}=Wn(typeof requestAnimationFrame<"u"?requestAnimationFrame:de,!0);let Et;function wa(){Et=void 0}const ne={now:()=>(Et===void 0&&ne.set(te.isProcessing||we.useManualTiming?te.timestamp:performance.now()),Et),set:e=>{Et=e,queueMicrotask(wa)}},qn=e=>t=>typeof t=="string"&&t.startsWith(e),Kn=qn("--"),Aa=qn("var(--"),is=e=>Aa(e)?Ca.test(e.split("/*")[0].trim()):!1,Ca=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Yn(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Le={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},rt={...Le,transform:e=>ye(0,1,e)},Pt={...Le,default:1},it=e=>Math.round(e*1e5)/1e5,os=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ka(e){return e==null}const Ta=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,as=(e,t)=>s=>!!(typeof s=="string"&&Ta.test(s)&&s.startsWith(e)||t&&!ka(s)&&Object.prototype.hasOwnProperty.call(s,t)),zn=(e,t,s)=>n=>{if(typeof n!="string")return n;const[r,i,o,a]=n.match(os);return{[e]:parseFloat(r),[t]:parseFloat(i),[s]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Sa=e=>ye(0,255,e),ls={...Le,transform:e=>Math.round(Sa(e))},je={test:as("rgb","red"),parse:zn("red","green","blue"),transform:({red:e,green:t,blue:s,alpha:n=1})=>"rgba("+ls.transform(e)+", "+ls.transform(t)+", "+ls.transform(s)+", "+it(rt.transform(n))+")"};function Ea(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 cs={test:as("#"),parse:Ea,transform:je.transform},ot=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ce=ot("deg"),ve=ot("%"),T=ot("px"),Pa=ot("vh"),ja=ot("vw"),Gn={...ve,parse:e=>ve.parse(e)/100,transform:e=>ve.transform(e*100)},Be={test:as("hsl","hue"),parse:zn("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:s,alpha:n=1})=>"hsla("+Math.round(e)+", "+ve.transform(it(t))+", "+ve.transform(it(s))+", "+it(rt.transform(n))+")"},G={test:e=>je.test(e)||cs.test(e)||Be.test(e),parse:e=>je.test(e)?je.parse(e):Be.test(e)?Be.parse(e):cs.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?je.transform(e):Be.transform(e),getAnimatableNone:e=>{const t=G.parse(e);return t.alpha=0,G.transform(t)}},Na=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Va(e){return isNaN(e)&&typeof e=="string"&&(e.match(os)?.length||0)+(e.match(Na)?.length||0)>0}const Jn="number",Qn="color",Ma="var",Da="var(",Hn="${}",Fa=/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 at(e){const t=e.toString(),s=[],n={color:[],number:[],var:[]},r=[];let i=0;const a=t.replace(Fa,c=>(G.test(c)?(n.color.push(i),r.push(Qn),s.push(G.parse(c))):c.startsWith(Da)?(n.var.push(i),r.push(Ma),s.push(c)):(n.number.push(i),r.push(Jn),s.push(parseFloat(c))),++i,Hn)).split(Hn);return{values:s,split:a,indexes:n,types:r}}function Xn(e){return at(e).values}function Zn(e){const{split:t,types:s}=at(e),n=t.length;return r=>{let i="";for(let o=0;o<n;o++)if(i+=t[o],r[o]!==void 0){const a=s[o];a===Jn?i+=it(r[o]):a===Qn?i+=G.transform(r[o]):i+=r[o]}return i}}const Ra=e=>typeof e=="number"?0:G.test(e)?G.getAnimatableNone(e):e;function La(e){const t=Xn(e);return Zn(e)(t.map(Ra))}const ke={test:Va,parse:Xn,createTransformer:Zn,getAnimatableNone:La};function us(e,t,s){return s<0&&(s+=1),s>1&&(s-=1),s<.16666666666666666?e+(t-e)*6*s:s<.5?t:s<.6666666666666666?e+(t-e)*(.6666666666666666-s)*6:e}function Ba({hue:e,saturation:t,lightness:s,alpha:n}){e/=360,t/=100,s/=100;let r=0,i=0,o=0;if(!t)r=i=o=s;else{const a=s<.5?s*(1+t):s+t-s*t,c=2*s-a;r=us(c,a,e+.3333333333333333),i=us(c,a,e),o=us(c,a,e-.3333333333333333)}return{red:Math.round(r*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:n}}function jt(e,t){return s=>s>0?t:e}const q=(e,t,s)=>e+(t-e)*s,ds=(e,t,s)=>{const n=e*e,r=s*(t*t-n)+n;return r<0?0:Math.sqrt(r)},Oa=[cs,je,Be],Ia=e=>Oa.find(t=>t.test(e));function $n(e){const t=Ia(e);if(Re(!!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===Be&&(s=Ba(s)),s}const er=(e,t)=>{const s=$n(e),n=$n(t);if(!s||!n)return jt(e,t);const r={...s};return i=>(r.red=ds(s.red,n.red,i),r.green=ds(s.green,n.green,i),r.blue=ds(s.blue,n.blue,i),r.alpha=q(s.alpha,n.alpha,i),je.transform(r))},hs=new Set(["none","hidden"]);function _a(e,t){return hs.has(e)?s=>s<=0?e:t:s=>s>=1?t:e}function Ua(e,t){return s=>q(e,t,s)}function fs(e){return typeof e=="number"?Ua:typeof e=="string"?is(e)?jt:G.test(e)?er:Ka:Array.isArray(e)?tr:typeof e=="object"?G.test(e)?er:Wa:jt}function tr(e,t){const s=[...e],n=s.length,r=e.map((i,o)=>fs(i)(i,t[o]));return i=>{for(let o=0;o<n;o++)s[o]=r[o](i);return s}}function Wa(e,t){const s={...e,...t},n={};for(const r in s)e[r]!==void 0&&t[r]!==void 0&&(n[r]=fs(e[r])(e[r],t[r]));return r=>{for(const i in n)s[i]=n[i](r);return s}}function qa(e,t){const s=[],n={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){const i=t.types[r],o=e.indexes[i][n[i]],a=e.values[o]??0;s[r]=a,n[i]++}return s}const Ka=(e,t)=>{const s=ke.createTransformer(t),n=at(e),r=at(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?hs.has(e)&&!r.values.length||hs.has(t)&&!n.values.length?_a(e,t):tt(tr(qa(n,r),r.values),s):(Re(!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"),jt(e,t))};function sr(e,t,s){return typeof e=="number"&&typeof t=="number"&&typeof s=="number"?q(e,t,s):fs(e)(e,t)}const Ya=e=>{const t=({timestamp:s})=>e(s);return{start:(s=!0)=>W.update(t,s),stop:()=>Ae(t),now:()=>te.isProcessing?te.timestamp:ne.now()}},nr=(e,t,s=10)=>{let n="";const r=Math.max(Math.round(t/s),2);for(let i=0;i<r;i++)n+=Math.round(e(i/(r-1))*1e4)/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},Nt=2e4;function ps(e){let t=0;const s=50;let n=e.next(t);for(;!n.done&&t<Nt;)t+=s,n=e.next(t);return t>=Nt?1/0:t}function za(e,t=100,s){const n=s({...e,keyframes:[0,t]}),r=Math.min(ps(n),Nt);return{type:"keyframes",ease:i=>n.next(r*i).value/t,duration:he(r)}}const Ga=5;function rr(e,t,s){const n=Math.max(t-Ga,0);return Pn(s-e(n),t-n)}const K={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},ms=.001;function Ja({duration:e=K.duration,bounce:t=K.bounce,velocity:s=K.velocity,mass:n=K.mass}){let r,i;Re(e<=xe(K.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-t;o=ye(K.minDamping,K.maxDamping,o),e=ye(K.minDuration,K.maxDuration,he(e)),o<1?(r=d=>{const u=d*o,h=u*e,p=u-s,m=gs(d,o),b=Math.exp(-h);return ms-p/m*b},i=d=>{const h=d*o*e,p=h*s+s,m=Math.pow(o,2)*Math.pow(d,2)*e,b=Math.exp(-h),A=gs(Math.pow(d,2),o);return(-r(d)+ms>0?-1:1)*((p-m)*b)/A}):(r=d=>{const u=Math.exp(-d*e),h=(d-s)*e+1;return-ms+u*h},i=d=>{const u=Math.exp(-d*e),h=(s-d)*(e*e);return u*h});const a=5/e,c=Ha(r,i,a);if(e=xe(e),isNaN(c))return{stiffness:K.stiffness,damping:K.damping,duration:e};{const d=Math.pow(c,2)*n;return{stiffness:d,damping:o*2*Math.sqrt(n*d),duration:e}}}const Qa=12;function Ha(e,t,s){let n=s;for(let r=1;r<Qa;r++)n=n-e(n)/t(n);return n}function gs(e,t){return e*Math.sqrt(1-t*t)}const Xa=["duration","bounce"],Za=["stiffness","damping","mass"];function ir(e,t){return t.some(s=>e[s]!==void 0)}function $a(e){let t={velocity:K.velocity,stiffness:K.stiffness,damping:K.damping,mass:K.mass,isResolvedFromDuration:!1,...e};if(!ir(e,Za)&&ir(e,Xa))if(e.visualDuration){const s=e.visualDuration,n=2*Math.PI/(s*1.2),r=n*n,i=2*ye(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:K.mass,stiffness:r,damping:i}}else{const s=Ja(e);t={...t,...s,mass:K.mass},t.isResolvedFromDuration=!0}return t}function Vt(e=K.visualDuration,t=K.bounce){const s=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:n,restDelta:r}=s;const i=s.keyframes[0],o=s.keyframes[s.keyframes.length-1],a={done:!1,value:i},{stiffness:c,damping:d,mass:u,duration:h,velocity:p,isResolvedFromDuration:m}=$a({...s,velocity:-he(s.velocity||0)}),b=p||0,A=d/(2*Math.sqrt(c*u)),C=o-i,y=he(Math.sqrt(c/u)),v=Math.abs(C)<5;n||(n=v?K.restSpeed.granular:K.restSpeed.default),r||(r=v?K.restDelta.granular:K.restDelta.default);let x;if(A<1){const P=gs(y,A);x=D=>{const E=Math.exp(-A*y*D);return o-E*((b+A*y*C)/P*Math.sin(P*D)+C*Math.cos(P*D))}}else if(A===1)x=P=>o-Math.exp(-y*P)*(C+(b+y*C)*P);else{const P=y*Math.sqrt(A*A-1);x=D=>{const E=Math.exp(-A*y*D),S=Math.min(P*D,300);return o-E*((b+A*y*C)*Math.sinh(S)+P*C*Math.cosh(S))/P}}const N={calculatedDuration:m&&h||null,next:P=>{const D=x(P);if(m)a.done=P>=h;else{let E=P===0?b:0;A<1&&(E=P===0?xe(b):rr(x,P,D));const S=Math.abs(E)<=n,R=Math.abs(o-D)<=r;a.done=S&&R}return a.value=a.done?o:D,a},toString:()=>{const P=Math.min(ps(N),Nt),D=nr(E=>N.next(P*E).value,P,30);return P+"ms "+D},toTransition:()=>{}};return N}Vt.applyToOptions=e=>{const t=za(e,100,Vt);return e.ease=t.ease,e.duration=xe(t.duration),e.type="keyframes",e};function ys({keyframes:e,velocity:t=0,power:s=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:c,restDelta:d=.5,restSpeed:u}){const h=e[0],p={done:!1,value:h},m=S=>a!==void 0&&S<a||c!==void 0&&S>c,b=S=>a===void 0?c:c===void 0||Math.abs(a-S)<Math.abs(c-S)?a:c;let A=s*t;const C=h+A,y=o===void 0?C:o(C);y!==C&&(A=y-h);const v=S=>-A*Math.exp(-S/n),x=S=>y+v(S),N=S=>{const R=v(S),U=x(S);p.done=Math.abs(R)<=d,p.value=p.done?y:U};let P,D;const E=S=>{m(p.value)&&(P=S,D=Vt({keyframes:[p.value,b(p.value)],velocity:rr(x,S,p.value),damping:r,stiffness:i,restDelta:d,restSpeed:u}))};return E(0),{calculatedDuration:null,next:S=>{let R=!1;return!D&&P===void 0&&(R=!0,N(S),E(S)),P!==void 0&&S>=P?D.next(S-P):(!R&&N(S),p)}}}function el(e,t,s){const n=[],r=s||we.mix||sr,i=e.length-1;for(let o=0;o<i;o++){let a=r(e[o],e[o+1]);if(t){const c=Array.isArray(t)?t[o]||de:t;a=tt(c,a)}n.push(a)}return n}function tl(e,t,{clamp:s=!0,ease:n,mixer:r}={}){const i=e.length;if(be(i===t.length,"Both input and output ranges must be the same length","range-length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=el(t,n,r),c=a.length,d=u=>{if(o&&u<e[0])return t[0];let h=0;if(c>1)for(;h<e.length-2&&!(u<e[h+1]);h++);const p=st(e[h],e[h+1],u);return a[h](p)};return s?u=>d(ye(e[0],e[i-1],u)):d}function sl(e,t){const s=e[e.length-1];for(let n=1;n<=t;n++){const r=st(0,t,n);e.push(q(s,1,r))}}function nl(e){const t=[0];return sl(t,e.length-1),t}function rl(e,t){return e.map(s=>s*t)}function il(e,t){return e.map(()=>t||On).splice(0,e.length-1)}function Oe({duration:e=300,keyframes:t,times:s,ease:n="easeInOut"}){const r=ya(n)?n.map(Un):Un(n),i={done:!1,value:t[0]},o=rl(s&&s.length===t.length?s:nl(t),e),a=tl(o,t,{ease:Array.isArray(r)?r:il(t,r)});return{calculatedDuration:e,next:c=>(i.value=a(c),i.done=c>=e,i)}}const ol=e=>e!==null;function xs(e,{repeat:t,repeatType:s="loop"},n,r=1){const i=e.filter(ol),a=r<0||t&&s!=="loop"&&t%2===1?0:i.length-1;return!a||n===void 0?i[a]:n}const al={decay:ys,inertia:ys,tween:Oe,keyframes:Oe,spring:Vt};function or(e){typeof e.type=="string"&&(e.type=al[e.type])}class vs{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 ll=e=>e/100;class bs extends vs{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!==ne.now()&&this.tick(ne.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;or(t);const{type:s=Oe,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:o=0}=t;let{keyframes:a}=t;const c=s||Oe;process.env.NODE_ENV!=="production"&&c!==Oe&&be(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),c!==Oe&&typeof a[0]!="number"&&(this.mixKeyframes=tt(ll,sr(a[0],a[1])),a=[0,100]);const d=c({...t,keyframes:a});i==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...a].reverse(),velocity:-o})),d.calculatedDuration===null&&(d.calculatedDuration=ps(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:i,mirroredGenerator:o,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:b,onUpdate:A,finalKeyframe:C}=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),v=this.playbackSpeed>=0?y<0:y>r;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=r);let x=this.currentTime,N=n;if(h){const S=Math.min(this.currentTime,r)/a;let R=Math.floor(S),U=S%1;!U&&S>=1&&(U=1),U===1&&R--,R=Math.min(R,h+1),!!(R%2)&&(p==="reverse"?(U=1-U,m&&(U-=m/a)):p==="mirror"&&(N=o)),x=ye(0,1,U)*a}const P=v?{done:!1,value:u[0]}:N.next(x);i&&(P.value=i(P.value));let{done:D}=P;!v&&c!==null&&(D=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&D);return E&&b!==ys&&(P.value=xs(u,this.options,C,this.speed)),A&&A(P.value),E&&this.finish(),P}then(t,s){return this.finished.then(t,s)}get duration(){return he(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+he(t)}get time(){return he(this.currentTime)}set time(t){t=xe(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(ne.now());const s=this.playbackSpeed!==t;this.playbackSpeed=t,s&&(this.time=he(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Ya,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(ne.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 cl(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Ne=e=>e*180/Math.PI,ws=e=>{const t=Ne(Math.atan2(e[1],e[0]));return As(t)},ul={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ws,rotateZ:ws,skewX:e=>Ne(Math.atan(e[1])),skewY:e=>Ne(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},As=e=>(e=e%360,e<0&&(e+=360),e),ar=ws,lr=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),cr=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),dl={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:lr,scaleY:cr,scale:e=>(lr(e)+cr(e))/2,rotateX:e=>As(Ne(Math.atan2(e[6],e[5]))),rotateY:e=>As(Ne(Math.atan2(-e[2],e[0]))),rotateZ:ar,rotate:ar,skewX:e=>Ne(Math.atan(e[4])),skewY:e=>Ne(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Cs(e){return e.includes("scale")?1:0}function ks(e,t){if(!e||e==="none")return Cs(t);const s=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,r;if(s)n=dl,r=s;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=ul,r=a}if(!r)return Cs(t);const i=n[t],o=r[1].split(",").map(fl);return typeof i=="function"?i(o):o[i]}const hl=(e,t)=>{const{transform:s="none"}=getComputedStyle(e);return ks(s,t)};function fl(e){return parseFloat(e.trim())}const Ie=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],_e=new Set(Ie),ur=e=>e===Le||e===T,pl=new Set(["x","y","z"]),ml=Ie.filter(e=>!pl.has(e));function gl(e){const t=[];return ml.forEach(s=>{const n=e.getValue(s);n!==void 0&&(t.push([s,n.get()]),n.set(s.startsWith("scale")?1:0))}),t}const Te={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})=>ks(t,"x"),y:(e,{transform:t})=>ks(t,"y")};Te.translateX=Te.x,Te.translateY=Te.y;const Ve=new Set;let Ts=!1,Ss=!1,Es=!1;function dr(){if(Ss){const e=Array.from(Ve).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),s=new Map;t.forEach(n=>{const r=gl(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(([i,o])=>{n.getValue(i)?.set(o)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}Ss=!1,Ts=!1,Ve.forEach(e=>e.complete(Es)),Ve.clear()}function hr(){Ve.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ss=!0)})}function yl(){Es=!0,hr(),dr(),Es=!1}class Ps{constructor(t,s,n,r,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=s,this.name=n,this.motionValue=r,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(Ve.add(this),Ts||(Ts=!0,W.read(hr),W.resolveKeyframes(dr))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:s,element:n,motionValue:r}=this;if(t[0]===null){const i=r?.get(),o=t[t.length-1];if(i!==void 0)t[0]=i;else if(n&&s){const a=n.readValue(s,o);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=o),r&&i===void 0&&r.set(t[0])}cl(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Ve.delete(this)}cancel(){this.state==="scheduled"&&(Ve.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const xl=e=>e.startsWith("--");function vl(e,t,s){xl(t)?e.style.setProperty(t,s):e.style[t]=s}const bl=$t(()=>window.ScrollTimeline!==void 0),wl={};function Al(e,t){const s=$t(e);return()=>wl[t]??s()}const fr=Al(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),lt=([e,t,s,n])=>`cubic-bezier(${e}, ${t}, ${s}, ${n})`,pr={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:lt([0,.65,.55,1]),circOut:lt([.55,0,1,.45]),backIn:lt([.31,.01,.66,-.59]),backOut:lt([.33,1.53,.69,.99])};function mr(e,t){if(e)return typeof e=="function"?fr()?nr(e,t):"ease-out":In(e)?lt(e):Array.isArray(e)?e.map(s=>mr(s,t)||pr.easeOut):pr[e]}function Cl(e,t,s,{delay:n=0,duration:r=300,repeat:i=0,repeatType:o="loop",ease:a="easeOut",times:c}={},d=void 0){const u={[t]:s};c&&(u.offset=c);const h=mr(a,r);Array.isArray(h)&&(u.easing=h);const p={delay:n,duration:r,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"};return d&&(p.pseudoElement=d),e.animate(u,p)}function gr(e){return typeof e=="function"&&"applyToOptions"in e}function kl({type:e,...t}){return gr(e)&&fr()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Tl extends vs{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:s,name:n,keyframes:r,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:a,onComplete:c}=t;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=t,be(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const d=kl(t);this.animation=Cl(s,n,r,d,i),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const u=xs(r,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):vl(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 he(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+he(t)}get time(){return he(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=xe(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&&bl()?(this.animation.timeline=t,de):s(this)}}const yr={anticipate:Rn,backInOut:Fn,circInOut:Bn};function Sl(e){return e in yr}function El(e){typeof e.ease=="string"&&Sl(e.ease)&&(e.ease=yr[e.ease])}const js=10;class Pl extends Tl{constructor(t){El(t),or(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:s,onUpdate:n,onComplete:r,element:i,...o}=this.options;if(!s)return;if(t!==void 0){s.set(t);return}const a=new bs({...o,autoplay:!1}),c=Math.max(js,ne.now()-this.startTime),d=ye(0,js,c-js);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"&&(ke.test(e)||e==="0")&&!e.startsWith("url("));function jl(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 Nl(e,t,s,n){const r=e[0];if(r===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],o=xr(r,t),a=xr(i,t);return Re(o===a,`You are trying to animate ${t} from "${r}" to "${i}". "${o?i:r}" is not an animatable value.`,"value-not-animatable"),!o||!a?!1:jl(e)||(s==="spring"||gr(s))&&n}function Ns(e){e.duration=0,e.type="keyframes"}const Vl=new Set(["opacity","clipPath","filter","transform"]),Ml=$t(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Dl(e){const{motionValue:t,name:s,repeatDelay:n,repeatType:r,damping:i,type:o}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:d}=t.owner.getProps();return Ml()&&s&&Vl.has(s)&&(s!=="transform"||!d)&&!c&&!n&&r!=="mirror"&&i!==0&&o!=="inertia"}const Fl=40;class Rl extends vs{constructor({autoplay:t=!0,delay:s=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o="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=ne.now();const p={autoplay:t,delay:s,type:n,repeat:r,repeatDelay:i,repeatType:o,name:c,motionValue:d,element:u,...h},m=u?.KeyframeResolver||Ps;this.keyframeResolver=new m(a,(b,A,C)=>this.onKeyframesResolved(b,A,p,!C),c,d,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,s,n,r){this.keyframeResolver=void 0;const{name:i,type:o,velocity:a,delay:c,isHandoff:d,onUpdate:u}=n;this.resolvedAt=ne.now(),Nl(t,i,o,a)||((we.instantAnimations||!c)&&u?.(xs(t,n,s)),t[0]=t[t.length-1],Ns(n),n.repeat=0);const p={startTime:r?this.resolvedAt?this.resolvedAt-this.createdAt>Fl?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:s,...n,keyframes:t},m=!d&&Dl(p)?new Pl({...p,element:p.motionValue.owner.current}):new bs(p);m.finished.then(()=>this.notifyFinished()).catch(de),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(),yl()),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 Ll=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Bl(e){const t=Ll.exec(e);if(!t)return[,];const[,s,n,r]=t;return[`--${s??n}`,r]}const Ol=4;function vr(e,t,s=1){be(s<=Ol,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[n,r]=Bl(e);if(!n)return;const i=window.getComputedStyle(t).getPropertyValue(n);if(i){const o=i.trim();return Tn(o)?parseFloat(o):o}return is(r)?vr(r,t,s+1):r}function Vs(e,t){return e?.[t]??e?.default??e}const br=new Set(["width","height","top","left","right","bottom",...Ie]),Il={test:e=>e==="auto",parse:e=>e},wr=e=>t=>t.test(e),Ar=[Le,T,ve,Ce,ja,Pa,Il],Cr=e=>Ar.find(wr(e));function _l(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||En(e):!0}const Ul=new Set(["brightness","contrast","saturate","opacity"]);function Wl(e){const[t,s]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=s.match(os)||[];if(!n)return e;const r=s.replace(n,"");let i=Ul.has(t)?1:0;return n!==s&&(i*=100),t+"("+i+r+")"}const ql=/\b([a-z-]*)\(.*?\)/gu,Ms={...ke,getAnimatableNone:e=>{const t=e.match(ql);return t?t.map(Wl).join(" "):e}},kr={...Le,transform:Math.round},Ds={borderWidth:T,borderTopWidth:T,borderRightWidth:T,borderBottomWidth:T,borderLeftWidth:T,borderRadius:T,radius:T,borderTopLeftRadius:T,borderTopRightRadius:T,borderBottomRightRadius:T,borderBottomLeftRadius:T,width:T,maxWidth:T,height:T,maxHeight:T,top:T,right:T,bottom:T,left:T,inset:T,insetBlock:T,insetBlockStart:T,insetBlockEnd:T,insetInline:T,insetInlineStart:T,insetInlineEnd:T,padding:T,paddingTop:T,paddingRight:T,paddingBottom:T,paddingLeft:T,paddingBlock:T,paddingBlockStart:T,paddingBlockEnd:T,paddingInline:T,paddingInlineStart:T,paddingInlineEnd:T,margin:T,marginTop:T,marginRight:T,marginBottom:T,marginLeft:T,marginBlock:T,marginBlockStart:T,marginBlockEnd:T,marginInline:T,marginInlineStart:T,marginInlineEnd:T,backgroundPositionX:T,backgroundPositionY:T,...{rotate:Ce,rotateX:Ce,rotateY:Ce,rotateZ:Ce,scale:Pt,scaleX:Pt,scaleY:Pt,scaleZ:Pt,skew:Ce,skewX:Ce,skewY:Ce,distance:T,translateX:T,translateY:T,translateZ:T,x:T,y:T,z:T,perspective:T,transformPerspective:T,opacity:rt,originX:Gn,originY:Gn,originZ:T},zIndex:kr,fillOpacity:rt,strokeOpacity:rt,numOctaves:kr},Kl={...Ds,color:G,backgroundColor:G,outlineColor:G,fill:G,stroke:G,borderColor:G,borderTopColor:G,borderRightColor:G,borderBottomColor:G,borderLeftColor:G,filter:Ms,WebkitFilter:Ms},Tr=e=>Kl[e];function Sr(e,t){let s=Tr(e);return s!==Ms&&(s=ke),s.getAnimatableNone?s.getAnimatableNone(t):void 0}const Yl=new Set(["auto","none","0"]);function zl(e,t,s){let n=0,r;for(;n<e.length&&!r;){const i=e[n];typeof i=="string"&&!Yl.has(i)&&at(i).values.length&&(r=e[n]),n++}if(r&&s)for(const i of t)e[i]=Sr(s,r)}class Gl extends Ps{constructor(t,s,n,r,i){super(t,s,n,r,i,!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(),is(h))){const p=vr(h,s.current);p!==void 0&&(t[u]=p),u===t.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!br.has(n)||t.length!==2)return;const[r,i]=t,o=Cr(r),a=Cr(i),c=Yn(r),d=Yn(i);if(c!==d&&Te[n]){this.needsMeasurement=!0;return}if(o!==a)if(ur(o)&&ur(a))for(let u=0;u<t.length;u++){const h=t[u];typeof h=="string"&&(t[u]=parseFloat(h))}else Te[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:s}=this,n=[];for(let r=0;r<t.length;r++)(t[r]===null||_l(t[r]))&&n.push(r);n.length&&zl(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=Te[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 i=n.length-1,o=n[i];n[i]=Te[s](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,c])=>{t.getValue(a).set(c)}),this.resolveNoneKeyframes()}}function Jl(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 Er=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Pr(e){return Sn(e)&&"offsetHeight"in e}const jr=30,Ql=e=>!isNaN(parseFloat(e));class Hl{constructor(t,s={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=n=>{const r=ne.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 i of this.dependents)i.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=s.owner}setCurrent(t){this.current=t,this.updatedAt=ne.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Ql(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&ts(!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 es);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=ne.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>jr)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,jr);return Pn(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 Ue(e,t){return new Hl(e,t)}const{schedule:Fs}=Wn(queueMicrotask,!1),me={x:!1,y:!1};function Nr(){return me.x||me.y}function Xl(e){return e==="x"||e==="y"?me[e]?null:(me[e]=!0,()=>{me[e]=!1}):me.x||me.y?null:(me.x=me.y=!0,()=>{me.x=me.y=!1})}function Vr(e,t){const s=Jl(e),n=new AbortController,r={passive:!0,...t,signal:n.signal};return[s,r,()=>n.abort()]}function Mr(e){return!(e.pointerType==="touch"||Nr())}function Zl(e,t,s={}){const[n,r,i]=Vr(e,s),o=a=>{if(!Mr(a))return;const{target:c}=a,d=t(c,a);if(typeof d!="function"||!c)return;const u=h=>{Mr(h)&&(d(h),c.removeEventListener("pointerleave",u))};c.addEventListener("pointerleave",u,r)};return n.forEach(a=>{a.addEventListener("pointerenter",o,r)}),i}const Dr=(e,t)=>t?e===t?!0:Dr(e,t.parentElement):!1,Rs=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,$l=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Fr(e){return $l.has(e.tagName)||e.isContentEditable===!0}const Mt=new WeakSet;function Rr(e){return t=>{t.key==="Enter"&&e(t)}}function Ls(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const ec=(e,t)=>{const s=e.currentTarget;if(!s)return;const n=Rr(()=>{if(Mt.has(s))return;Ls(s,"down");const r=Rr(()=>{Ls(s,"up")}),i=()=>Ls(s,"cancel");s.addEventListener("keyup",r,t),s.addEventListener("blur",i,t)});s.addEventListener("keydown",n,t),s.addEventListener("blur",()=>s.removeEventListener("keydown",n),t)};function Lr(e){return Rs(e)&&!Nr()}function tc(e,t,s={}){const[n,r,i]=Vr(e,s),o=a=>{const c=a.currentTarget;if(!Lr(a))return;Mt.add(c);const d=t(c,a),u=(m,b)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",p),Mt.has(c)&&Mt.delete(c),Lr(m)&&typeof d=="function"&&d(m,{success:b})},h=m=>{u(m,c===window||c===document||s.useGlobalTarget||Dr(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",o,r),Pr(a)&&(a.addEventListener("focus",d=>ec(d,r)),!Fr(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}function Br(e){return Sn(e)&&"ownerSVGElement"in e}function sc(e){return Br(e)&&e.tagName==="svg"}const se=e=>!!(e&&e.getVelocity),nc=[...Ar,G,ke],rc=e=>nc.find(wr(e)),Bs=g.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Or(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ic(...e){return t=>{let s=!1;const n=e.map(r=>{const i=Or(r,t);return!s&&typeof i=="function"&&(s=!0),i});if(s)return()=>{for(let r=0;r<n.length;r++){const i=n[r];typeof i=="function"?i():Or(e[r],null)}}}}function oc(...e){return At.useCallback(ic(...e),e)}class ac extends At.Component{getSnapshotBeforeUpdate(t){const s=this.props.childRef.current;if(s&&t.isPresent&&!this.props.isPresent){const n=s.offsetParent,r=Pr(n)&&n.offsetWidth||0,i=this.props.sizeRef.current;i.height=s.offsetHeight||0,i.width=s.offsetWidth||0,i.top=s.offsetTop,i.left=s.offsetLeft,i.right=r-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function lc({children:e,isPresent:t,anchorX:s,root:n}){const r=g.useId(),i=g.useRef(null),o=g.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=g.useContext(Bs),c=e.props?.ref??e?.ref,d=oc(i,c);return g.useInsertionEffect(()=>{const{width:u,height:h,top:p,left:m,right:b}=o.current;if(t||!i.current||!u||!h)return;const A=s==="left"?`left: ${m}`:`right: ${b}`;i.current.dataset.motionPopId=r;const C=document.createElement("style");a&&(C.nonce=a);const y=n??document.head;return y.appendChild(C),C.sheet&&C.sheet.insertRule(`
|
|
34
34
|
[data-motion-pop-id="${r}"] {
|
|
35
35
|
position: absolute !important;
|
|
36
36
|
width: ${u}px !important;
|
|
37
37
|
height: ${h}px !important;
|
|
38
|
-
${
|
|
38
|
+
${A}px !important;
|
|
39
39
|
top: ${p}px !important;
|
|
40
40
|
}
|
|
41
|
-
`),()=>{y.contains(v)&&y.removeChild(v)}},[t]),l.jsx(jc,{isPresent:t,childRef:o,sizeRef:i,children:Yt.cloneElement(e,{ref:d})})}const Vc=({children:e,initial:t,isPresent:s,onExitComplete:n,custom:r,presenceAffectsLayout:o,mode:i,anchorX:a,root:c})=>{const d=Ts(Mc),u=m.useId();let h=!0,p=m.useMemo(()=>(h=!1,{id:u,initial:t,isPresent:s,custom:r,onExitComplete:g=>{d.set(g,!0);for(const x of d.values())if(!x)return;n&&n()},register:g=>(d.set(g,!1),()=>d.delete(g))}),[s,d,n]);return o&&h&&(p={...p}),m.useMemo(()=>{d.forEach((g,x)=>d.set(x,!1))},[s]),Yt.useEffect(()=>{!s&&!d.size&&n&&n()},[s]),i==="popLayout"&&(e=l.jsx(Nc,{isPresent:s,anchorX:a,root:c,children:e})),l.jsx(Jt.Provider,{value:p,children:e})};function Mc(){return new Map}function Ai(e=!0){const t=m.useContext(Jt);if(t===null)return[!0,null];const{isPresent:s,onExitComplete:n,register:r}=t,o=m.useId();m.useEffect(()=>{if(e)return r(o)},[e]);const i=m.useCallback(()=>e&&n&&n(o),[o,n,e]);return!s&&n?[!1,i]:[!0]}const ss=e=>e.key||"";function Ci(e){const t=[];return m.Children.forEach(e,s=>{m.isValidElement(s)&&t.push(s)}),t}const Dc=({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]=Ai(i),h=m.useMemo(()=>Ci(e),[e]),p=i&&!d?[]:h.map(ss),g=m.useRef(!0),x=m.useRef(h),w=Ts(()=>new Map),v=m.useRef(new Set),[y,C]=m.useState(h),[A,V]=m.useState(h);ar(()=>{g.current=!1,x.current=h;for(let j=0;j<A.length;j++){const E=ss(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],Q=ss(U);p.includes(Q)||(j.splice(E,0,U),P.push(U))}return o==="wait"&&P.length&&(j=P),V(Ci(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:F}=m.useContext(ks);return l.jsx(l.Fragment,{children:A.map(j=>{const E=ss(j),U=i&&!d?!1:h===A||p.includes(E),Q=()=>{if(v.current.has(E))return;if(v.current.add(E),w.has(E))w.set(E,!0);else return;let ae=!0;w.forEach(Se=>{Se||(ae=!1)}),ae&&(F?.(),V(x.current),i&&u?.(),n&&n())};return l.jsx(Vc,{isPresent:U,initial:!g.current||s?void 0:!1,custom:t,presenceAffectsLayout:r,mode:o,root:c,onExitComplete:U?void 0:Q,anchorX:a,children:j},E)})})},ki=m.createContext({strict:!1}),Ti={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"]},tt={};for(const e in Ti)tt[e]={isEnabled:t=>Ti[e].some(s=>!!t[s])};function Fc(e){for(const t in e)tt[t]={...tt[t],...e[t]}}const Lc=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 ns(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Lc.has(e)}let Si=e=>!ns(e);function Bc(e){typeof e=="function"&&(Si=t=>t.startsWith("on")?!ns(t):e(t))}try{Bc(require("@emotion/is-prop-valid").default)}catch{}function Rc(e,t,s){const n={};for(const r in e)r==="values"&&typeof e.values=="object"||(Si(r)||s===!0&&ns(r)||!t&&!ns(r)||e.draggable&&r.startsWith("onDrag"))&&(n[r]=e[r]);return n}const rs=m.createContext({});function is(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function St(e){return typeof e=="string"||Array.isArray(e)}const gn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],yn=["initial",...gn];function os(e){return is(e.animate)||yn.some(t=>St(e[t]))}function Ei(e){return!!(os(e)||e.variants)}function Oc(e,t){if(os(e)){const{initial:s,animate:n}=e;return{initial:s===!1||St(s)?s:void 0,animate:St(n)?n:void 0}}return e.inherit!==!1?t:{}}function Ic(e){const{initial:t,animate:s}=Oc(e,m.useContext(rs));return m.useMemo(()=>({initial:t,animate:s}),[Pi(t),Pi(s)])}function Pi(e){return Array.isArray(e)?e.join(" "):e}function ji(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Et={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(S.test(e))e=parseFloat(e);else return e;const s=ji(e,t.target.x),n=ji(e,t.target.y);return`${s}% ${n}%`}},Uc={correct:(e,{treeScale:t,projectionDelta:s})=>{const n=e,r=Ve.parse(e);if(r.length>5)return n;const o=Ve.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=K(a,c,.5);return typeof r[2+i]=="number"&&(r[2+i]/=d),typeof r[3+i]=="number"&&(r[3+i]/=d),o(r)}},xn={borderRadius:{...Et,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Et,borderTopRightRadius:Et,borderBottomLeftRadius:Et,borderBottomRightRadius:Et,boxShadow:Uc};function Ni(e,{layout:t,layoutId:s}){return $e.has(e)||e.startsWith("origin")||(t||s!==void 0)&&(!!xn[e]||e==="opacity")}const Wc={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},qc=Ze.length;function _c(e,t,s){let n="",r=!0;for(let o=0;o<qc;o++){const i=Ze[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=ui(a,dn[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 vn(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($e.has(c)){i=!0;continue}else if(Er(c)){r[c]=d;continue}else{const u=ui(d,dn[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 bn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Vi(e,t,s){for(const n in t)!te(t[n])&&!Ni(n,s)&&(e[n]=t[n])}function Kc({transformTemplate:e},t){return m.useMemo(()=>{const s=bn();return vn(s,t,e),Object.assign({},s.vars,s.style)},[t])}function Yc(e,t){const s=e.style||{},n={};return Vi(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 Mi(e,{attrX:t,attrY:s,attrScale:n,pathLength:r,pathSpacing:o=1,pathOffset:i=0,...a},c,d,u){if(vn(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 g of Hc)h[g]!==void 0&&(p[g]=h[g],delete h[g]);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 Di=()=>({...bn(),attrs:{}}),Fi=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Xc(e,t,s,n){const r=m.useMemo(()=>{const o=Di();return Mi(o,t,Fi(n),e.transformTemplate,e.style),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Vi(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 wn(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??wn(e)?Xc:zc)(t,n,r,e),d=Rc(t,typeof e=="string",o),u=e!==m.Fragment?{...d,...c,ref:s}:{},{children:h}=t,p=m.useMemo(()=>te(h)?h.get():h,[h]);return m.createElement(e,{...u,children:p})}function Li(e){const t=[{},{}];return e?.values.forEach((s,n)=>{t[0][n]=s.get(),t[1][n]=s.getVelocity()}),t}function An(e,t,s,n){if(typeof t=="function"){const[r,o]=Li(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]=Li(n);t=t(s!==void 0?s:e.custom,r,o)}return t}function as(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]=as(o[p]);let{initial:i,animate:a}=e;const c=os(e),d=Ei(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"&&!is(h)){const p=Array.isArray(h)?h:[h];for(let g=0;g<p.length;g++){const x=An(e,p[g]);if(x){const{transitionEnd:w,transition:v,...y}=x;for(const C in y){let A=y[C];if(Array.isArray(A)){const V=u?A.length-1:0;A=A[V]}A!==null&&(r[C]=A)}for(const C in w)r[C]=w[C]}}}return r}const Bi=e=>(t,s)=>{const n=m.useContext(rs),r=m.useContext(Jt),o=()=>eu(e,t,n,r);return s?o():Ts(o)};function Cn(e,t,s){const{style:n}=e,r={};for(const o in n)(te(n[o])||t.style&&te(t.style[o])||Ni(o,e)||s?.getValue(o)?.liveStyle!==void 0)&&(r[o]=n[o]);return r}const su=Bi({scrapeMotionValuesFromProps:Cn,createRenderState:bn});function Ri(e,t,s){const n=Cn(e,t,s);for(const r in e)if(te(e[r])||te(t[r])){const o=Ze.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[o]=e[r]}return n}const nu=Bi({scrapeMotionValuesFromProps:Ri,createRenderState:Di}),ru=Symbol.for("motionComponentSymbol");function iu(e,t,s){const n=m.useRef(s);m.useInsertionEffect(()=>{n.current=s});const r=m.useRef(null);return m.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 kn=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Oi="data-"+kn("framerAppearId"),Ii=m.createContext({});function Pt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function ou(e,t,s,n,r,o){const{visualElement:i}=m.useContext(rs),a=m.useContext(ki),c=m.useContext(Jt),d=m.useContext(mn).reducedMotion,u=m.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=m.useContext(Ii);h&&!h.projection&&r&&(h.type==="html"||h.type==="svg")&&au(u.current,s,r,p);const g=m.useRef(!1);m.useInsertionEffect(()=>{h&&g.current&&h.update(s,c)});const x=s[Oi],w=m.useRef(!!x&&!window.MotionHandoffIsComplete?.(x)&&window.MotionHasOptimisedAnimation?.(x));return ar(()=>{h&&(g.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),w.current&&h.animationState&&h.animationState.animateChanges())}),m.useEffect(()=>{h&&(!w.current&&h.animationState&&h.animationState.animateChanges(),w.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(x)}),w.current=!1),h.enteringChildren=void 0)}),h}function au(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:Ui(e.parent)),e.projection.setOptions({layoutId:r,layout:o,alwaysMeasureLayout:!!i||a&&Pt(a),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:n,crossfade:u,layoutScroll:c,layoutRoot:d})}function Ui(e){if(e)return e.options.allowProjection!==!1?e.projection:Ui(e.parent)}function Tn(e,{forwardMotionProps:t=!1,type:s}={},n,r){n&&Fc(n);const o=s?s==="svg":wn(e),i=o?nu:su;function a(d,u){let h;const p={...m.useContext(mn),...d,layoutId:lu(d)},{isStatic:g}=p,x=Ic(d),w=i(d,g);if(!g&&Ss){cu(p,n);const v=uu(p);h=v.MeasureLayout,x.visualElement=ou(e,w,p,r,v.ProjectionNode,o)}return l.jsxs(rs.Provider,{value:x,children:[h&&x.visualElement?l.jsx(h,{visualElement:x.visualElement,...p}):null,$c(e,d,iu(w,x.visualElement,u),w,g,t,o)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const c=m.forwardRef(a);return c[ru]=e,c}function lu({layoutId:e}){const t=m.useContext(ks).id;return t&&e!==void 0?t+"-"+e:e}function cu(e,t){const s=m.useContext(ki).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?Je(!1,n,"lazy-strict-mode"):ke(!1,n,"lazy-strict-mode")}}function uu(e){const{drag:t,layout:s}=tt;if(!t&&!s)return{};const n={...t,...s};return{MeasureLayout:t?.isEnabled(e)||s?.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}function du(e,t){if(typeof Proxy>"u")return Tn;const s=new Map,n=(o,i)=>Tn(o,i,e,t),r=(o,i)=>(process.env.NODE_ENV!=="production"&&Ms(!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,Tn(i,void 0,e,t)),s.get(i))})}function Wi({top:e,left:t,right:s,bottom:n}){return{x:{min:t,max:s},y:{min:e,max:n}}}function hu({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function fu(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 Sn(e){return e===void 0||e===1}function En({scale:e,scaleX:t,scaleY:s}){return!Sn(e)||!Sn(t)||!Sn(s)}function Ue(e){return En(e)||qi(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function qi(e){return _i(e.x)||_i(e.y)}function _i(e){return e&&e!=="0%"}function ls(e,t,s){const n=e-s,r=t*n;return s+r}function Ki(e,t,s,n,r){return r!==void 0&&(e=ls(e,r,n)),ls(e,s,n)+t}function Pn(e,t=0,s=1,n,r){e.min=Ki(e.min,t,s,n,r),e.max=Ki(e.max,t,s,n,r)}function Yi(e,{x:t,y:s}){Pn(e.x,t.translate,t.scale,t.originPoint),Pn(e.y,s.translate,s.scale,s.originPoint)}const zi=.999999999999,Gi=1.0000000000001;function pu(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&&nt(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),i&&(t.x*=i.x.scale,t.y*=i.y.scale,Yi(e,i)),n&&Ue(o.latestValues)&&nt(e,o.latestValues))}t.x<Gi&&t.x>zi&&(t.x=1),t.y<Gi&&t.y>zi&&(t.y=1)}function st(e,t){e.min=e.min+t,e.max=e.max+t}function Ji(e,t,s,n,r=.5){const o=K(e.min,e.max,r);Pn(e,t,s,o,n)}function nt(e,t){Ji(e.x,t.x,t.scaleX,t.scale,t.originX),Ji(e.y,t.y,t.scaleY,t.scale,t.originY)}function Qi(e,t){return Wi(fu(e.getBoundingClientRect(),t))}function mu(e,t,s){const n=Qi(e,s),{scroll:r}=t;return r&&(st(n.x,r.offset.x),st(n.y,r.offset.y)),n}const Hi=()=>({translate:0,scale:1,origin:0,originPoint:0}),rt=()=>({x:Hi(),y:Hi()}),Xi=()=>({min:0,max:0}),H=()=>({x:Xi(),y:Xi()}),jn={current:null},Zi={current:!1};function gu(){if(Zi.current=!0,!!Ss)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>jn.current=e.matches;e.addEventListener("change",t),t()}else jn.current=!1}const yu=new WeakMap;function xu(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,et(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,et(i!==void 0?i:r,{owner:e}))}}for(const n in s)t[n]===void 0&&e.removeValue(n);return t}const $i=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class vu{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=on,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=os(s),this.isVariantNode=Ei(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 g=h[p];c[p]!==void 0&&te(g)&&g.set(c[p])}}mount(t){this.current=t,yu.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:(Zi.current||gu(),this.shouldReduceMotion=jn.current),process.env.NODE_ENV!=="production"&&Ms(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(),je(this.notifyUpdate),je(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=$e.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 tt){const s=tt[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<$i.length;n++){const r=$i[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=xu(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=et(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"&&(lr(n)||ur(n))?n=parseFloat(n):!Sc(n)&&Ve.test(s)&&(n=ci(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=An(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 Vs),this.events[t].add(s)}notify(t,...s){this.events[t]&&this.events[t].notify(...s)}scheduleRenderMicrotask(){hn.render(this.render)}}class eo extends vu{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 to(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 bu(e){return window.getComputedStyle(e)}class wu extends eo{constructor(){super(...arguments),this.type="html",this.renderInstance=to}readValueFromInstance(t,s){if($e.has(s))return this.projection?.isProjecting?en(s):Fl(t,s);{const n=bu(t),r=(Er(s)?n.getPropertyValue(s):n[s])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:s}){return Qi(t,s)}build(t,s,n){vn(t,s,n.transformTemplate)}scrapeMotionValuesFromProps(t,s,n){return Cn(t,s,n)}}const so=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 Au(e,t,s,n){to(e,t,void 0,n);for(const r in t.attrs)e.setAttribute(so.has(r)?r:kn(r),t.attrs[r])}class Cu extends eo{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=H}getBaseTargetFromProps(t,s){return t[s]}readValueFromInstance(t,s){if($e.has(s)){const n=li(s);return n&&n.default||0}return s=so.has(s)?s:kn(s),t.getAttribute(s)}scrapeMotionValuesFromProps(t,s,n){return Ri(t,s,n)}build(t,s,n){Mi(t,s,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,s,n,r){Au(t,s,n,r)}mount(t){this.isSVGTag=Fi(t.tagName),super.mount(t)}}const ku=(e,t)=>t.isSVG??wn(e)?new Cu(t):new wu(t,{allowProjection:e!==m.Fragment});function it(e,t,s){const n=e.getProps();return An(n,t,s!==void 0?s:n.custom,e)}const Nn=e=>Array.isArray(e);function Tu(e,t,s){e.hasValue(t)?e.getValue(t).set(s):e.addValue(t,et(s))}function Su(e){return Nn(e)?e[e.length-1]||0:e}function Eu(e,t){const s=it(e,t);let{transitionEnd:n={},transition:r={},...o}=s||{};o={...o,...n};for(const i in o){const a=Su(o[i]);Tu(e,i,a)}}function Pu(e){return!!(te(e)&&e.add)}function Vn(e,t){const s=e.getValue("willChange");if(Pu(s))return s.add(t);if(!s&&Te.WillChange){const n=new Te.WillChange("auto");e.addValue("willChange",n),n.add(t)}}function no(e){return e.props[Oi]}const ju=e=>e!==null;function Nu(e,{repeat:t,repeatType:s="loop"},n){const r=e.filter(ju),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:$e.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 Mn=(e,t,s,n={},r,o)=>i=>{const a=cn(n,e)||{},c=a.delay||n.delay||0;let{elapsed:d=0}=n;d=d-ve(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=ve(u.duration)),u.repeatDelay&&(u.repeatDelay=ve(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let h=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(ln(u),u.delay===0&&(h=!0)),(Te.instantAnimations||Te.skipAnimations)&&(h=!0,ln(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 Xs(u):new nc(u)};function Ru({protectedKeys:e,needsAnimating:t},s){const n=e.hasOwnProperty(s)&&t[s]!==!0;return t[s]=!1,n}function ro(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&&Ru(d,u))continue;const g={delay:s,...cn(o||{},u)},x=h.get();if(x!==void 0&&!h.isAnimating&&!Array.isArray(p)&&p===x&&!g.velocity)continue;let w=!1;if(window.MotionHandoffAnimation){const y=no(e);if(y){const C=window.MotionHandoffAnimation(y,u,W);C!==null&&(g.startTime=C,w=!0)}}Vn(e,u),h.start(Mn(u,h,p,e.shouldReduceMotion&&ni.has(u)?{type:!1}:g,e,w));const v=h.animation;v&&c.push(v)}return i&&Promise.all(c).then(()=>{W.update(()=>{i&&Eu(e,i)})}),c}function io(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 Dn(e,t,s={}){const n=it(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(ro(e,n,s)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:u,staggerDirection:h}=r;return Ou(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 Ou(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(Dn(c,t,{...i,delay:s+(typeof n=="function"?0:n)+io(e.variantChildren,c,n,r,o)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(a)}function Iu(e,t,s={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const r=t.map(o=>Dn(e,o,s));n=Promise.all(r)}else if(typeof t=="string")n=Dn(e,t,s);else{const r=typeof t=="function"?it(e,t,s.custom):t;n=Promise.all(ro(e,r,s))}return n.then(()=>{e.notify("AnimationComplete",t)})}function oo(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 Uu=yn.length;function ao(e){if(!e)return;if(!e.isControllingVariants){const s=e.parent?ao(e.parent)||{}:{};return e.props.initial!==void 0&&(s.initial=e.props.initial),s}const t={};for(let s=0;s<Uu;s++){const n=yn[s],r=e.props[n];(St(r)||r===!1)&&(t[n]=r)}return t}const Wu=[...gn].reverse(),qu=gn.length;function _u(e){return t=>Promise.all(t.map(({animation:s,options:n})=>Iu(e,s,n)))}function Ku(e){let t=_u(e),s=lo(),n=!0;const r=c=>(d,u)=>{const h=it(e,u,c==="exit"?e.presenceContext?.custom:void 0);if(h){const{transition:p,transitionEnd:g,...x}=h;d={...d,...x,...g}}return d};function o(c){t=c(e)}function i(c){const{props:d}=e,u=ao(e.parent)||{},h=[],p=new Set;let g={},x=1/0;for(let v=0;v<qu;v++){const y=Wu[v],C=s[y],A=d[y]!==void 0?d[y]:u[y],V=St(A),P=y===c?C.isActive:null;P===!1&&(x=v);let F=A===u[y]&&A!==d[y]&&V;if(F&&n&&e.manuallyAnimateOnMount&&(F=!1),C.protectedKeys={...g},!C.isActive&&P===null||!A&&!C.prevProp||is(A)||typeof A=="boolean")continue;const j=Yu(C.prevProp,A);let E=j||y===c&&C.isActive&&!F&&V||v>x&&V,U=!1;const Q=Array.isArray(A)?A:[A];let ae=Q.reduce(r(y),{});P===!1&&(ae={});const{prevResolvedValues:Se={}}=C,fe={...Se,...ae},pe=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 fe){const X=ae[q],re=Se[q];if(g.hasOwnProperty(q))continue;let le=!1;Nn(X)&&Nn(re)?le=!oo(X,re):le=X!==re,le?X!=null?pe(q):p.add(q):X!==void 0&&p.has(q)?pe(q):C.protectedKeys[q]=!0}C.prevProp=A,C.prevResolvedValues=ae,C.isActive&&(g={...g,...ae}),n&&e.blockInitialAnimation&&(E=!1);const we=F&&j;E&&(!we||U)&&h.push(...Q.map(q=>{const X={type:y};if(typeof q=="string"&&n&&!we&&e.manuallyAnimateOnMount&&e.parent){const{parent:re}=e,le=it(re,q);if(re.enteringChildren&&le){const{delayChildren:qe}=le.transition||{};X.delay=io(re.enteringChildren,e,qe)}}return{animation:q,options:X}}))}if(p.size){const v={};if(typeof d.initial!="boolean"){const y=it(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=lo()}}}function Yu(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!oo(t,e):!1}function We(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function lo(){return{animate:We(!0),whileInView:We(),whileHover:We(),whileTap:We(),whileDrag:We(),whileFocus:We(),exit:We()}}class De{constructor(t){this.isMounted=!1,this.node=t}update(){}}class zu extends De{constructor(t){super(t),t.animationState||(t.animationState=Ku(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();is(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 Gu=0;class Ju extends De{constructor(){super(...arguments),this.id=Gu++}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 Qu={animation:{Feature:zu},exit:{Feature:Ju}};function jt(e,t,s,n={passive:!0}){return e.addEventListener(t,s,n),()=>e.removeEventListener(t,s)}function Nt(e){return{point:{x:e.pageX,y:e.pageY}}}const Hu=e=>t=>fn(t)&&e(t,Nt(t));function Vt(e,t,s,n){return jt(e,t,Hu(s),n)}const co=1e-4,Xu=1-co,Zu=1+co,uo=.01,$u=0-uo,ed=0+uo;function ne(e){return e.max-e.min}function td(e,t,s){return Math.abs(e-t)<=s}function ho(e,t,s,n=.5){e.origin=n,e.originPoint=K(t.min,t.max,e.origin),e.scale=ne(s)/ne(t),e.translate=K(s.min,s.max,e.origin)-e.originPoint,(e.scale>=Xu&&e.scale<=Zu||isNaN(e.scale))&&(e.scale=1),(e.translate>=$u&&e.translate<=ed||isNaN(e.translate))&&(e.translate=0)}function Mt(e,t,s,n){ho(e.x,t.x,s.x,n?n.originX:void 0),ho(e.y,t.y,s.y,n?n.originY:void 0)}function fo(e,t,s){e.min=s.min+t.min,e.max=e.min+ne(t)}function sd(e,t,s){fo(e.x,t.x,s.x),fo(e.y,t.y,s.y)}function po(e,t,s){e.min=t.min-s.min,e.max=e.min+ne(t)}function cs(e,t,s){po(e.x,t.x,s.x),po(e.y,t.y,s.y)}function he(e){return[e("x"),e("y")]}const mo=({current:e})=>e?e.ownerDocument.defaultView:null,go=(e,t)=>Math.abs(e-t);function nd(e,t){const s=go(e.x,t.x),n=go(e.y,t.y);return Math.sqrt(s**2+n**2)}const yo=new Set(["auto","scroll"]);class xo{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=g=>{this.handleScroll(g.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=Ln(this.lastMoveEventInfo,this.history),x=this.startEvent!==null,w=nd(g.offset,{x:0,y:0})>=this.distanceThreshold;if(!x&&!w)return;const{point:v}=g,{timestamp:y}=$;this.history.push({...v,timestamp:y});const{onStart:C,onMove:A}=this.handlers;x||(C&&C(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),A&&A(this.lastMoveEvent,g)},this.handlePointerMove=(g,x)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=Fn(x,this.transformPagePoint),W.update(this.updatePoint,!0)},this.handlePointerUp=(g,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=Ln(g.type==="pointercancel"?this.lastMoveEventInfo:Fn(x,this.transformPagePoint),this.history);this.startEvent&&w&&w(g,C),v&&v(g,C)},!fn(t))return;this.dragSnapToOrigin=o,this.handlers=s,this.transformPagePoint=n,this.distanceThreshold=i,this.contextWindow=r||window;const c=Nt(t),d=Fn(c,this.transformPagePoint),{point:u}=d,{timestamp:h}=$;this.history=[{...u,timestamp:h}];const{onSessionStart:p}=s;p&&p(t,Ln(d,this.history)),this.removeListeners=xt(Vt(this.contextWindow,"pointermove",this.handlePointerMove),Vt(this.contextWindow,"pointerup",this.handlePointerUp),Vt(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(t){let s=t.parentElement;for(;s;){const n=getComputedStyle(s);(yo.has(n.overflowX)||yo.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(),je(this.updatePoint)}}function Fn(e,t){return t?{point:t(e.point)}:e}function vo(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ln({point:e},t){return{point:e,delta:vo(e,bo(t)),offset:vo(e,rd(t)),velocity:id(t,.1)}}function rd(e){return e[0]}function bo(e){return e[e.length-1]}function id(e,t){if(e.length<2)return{x:0,y:0};let s=e.length-1,n=null;const r=bo(e);for(;s>=0&&(n=e[s],!(r.timestamp-n.timestamp>ve(t)));)s--;if(!n)return{x:0,y:0};const o=de(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 od(e,{min:t,max:s},n){return t!==void 0&&e<t?e=n?K(t,e,n.min):Math.max(e,t):s!==void 0&&e>s&&(e=n?K(s,e,n.max):Math.min(e,s)),e}function wo(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 ad(e,{top:t,left:s,bottom:n,right:r}){return{x:wo(e.x,s,r),y:wo(e.y,t,n)}}function Ao(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 ld(e,t){return{x:Ao(e.x,t.x),y:Ao(e.y,t.y)}}function cd(e,t){let s=.5;const n=ne(e),r=ne(t);return r>n?s=vt(t.min,t.max-n,e.min):n>r&&(s=vt(e.min,e.max-r,t.min)),xe(0,1,s)}function ud(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 Bn=.35;function dd(e=Bn){return e===!1?e=0:e===!0&&(e=Bn),{x:Co(e,"left","right"),y:Co(e,"top","bottom")}}function Co(e,t,s){return{min:ko(e,t),max:ko(e,s)}}function ko(e,t){return typeof e=="number"?e:e[t]||0}const hd=new WeakMap;class fd{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(Nt(h).point)):this.pauseAnimation()},i=(h,p)=>{this.stopAnimation();const{drag:g,dragPropagation:x,onDragStart:w}=this.getProps();if(g&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=vc(g),!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),he(y=>{let C=this.getAxisMotionValue(y).get()||0;if(be.test(C)){const{projection:A}=this.visualElement;if(A&&A.layout){const V=A.layout.layoutBox[y];V&&(C=ne(V)*(parseFloat(C)/100))}}this.originPoint[y]=C}),w&&W.postRender(()=>w(h,p)),Vn(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},a=(h,p)=>{this.latestPointerEvent=h,this.latestPanInfo=p;const{dragPropagation:g,dragDirectionLock:x,onDirectionLock:w,onDrag:v}=this.getProps();if(!g&&!this.openDragLock)return;const{offset:y}=p;if(x&&this.currentDirection===null){this.currentDirection=pd(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=()=>he(h=>this.getAnimationState(h)==="paused"&&this.getAxisMotionValue(h).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new xo(t,{onSessionStart:o,onStart:i,onMove:a,onSessionEnd:c,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:n,contextWindow:mo(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||!us(t,r,this.currentDirection))return;const o=this.getAxisMotionValue(t);let i=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(i=od(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&&Pt(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=ad(n.layoutBox,t):this.constraints=!1,this.elastic=dd(s),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&he(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=ud(n.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:s}=this.getProps();if(!t||!Pt(t))return!1;const n=t.current;ke(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=mu(n,r.root,this.visualElement.getTransformPagePoint());let i=ld(r.layout.layoutBox,o);if(s){const a=s(hu(i));this.hasMutatedConstraints=!!a,a&&(i=Wi(a))}return i}startAnimation(t){const{drag:s,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},d=he(u=>{if(!us(u,s,this.currentDirection))return;let h=c&&c[u]||{};i&&(h={min:0,max:0});const p=r?200:1e6,g=r?40:1e7,x={type:"inertia",velocity:n?t[u]:0,bounceStiffness:p,bounceDamping:g,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 Vn(this.visualElement,t),n.start(Mn(t,n,0,s,this.visualElement,!1))}stopAnimation(){he(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){he(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){he(s=>{const{drag:n}=this.getProps();if(!us(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]-K(i,a,.5)+c)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:s}=this.getProps(),{projection:n}=this.visualElement;if(!Pt(s)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};he(i=>{const a=this.getAxisMotionValue(i);if(a&&this.constraints!==!1){const c=a.get();r[i]=cd({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(),he(i=>{if(!us(i,t,null))return;const a=this.getAxisMotionValue(i),{min:c,max:d}=this.constraints[i];a.set(K(c,d,r[i]))})}addListeners(){if(!this.visualElement.current)return;hd.set(this.visualElement,this);const t=this.visualElement.current,s=Vt(t,"pointerdown",c=>{const{drag:d,dragListener:u=!0}=this.getProps();d&&u&&!yi(c.target)&&this.start(c)}),n=()=>{const{dragConstraints:c}=this.getProps();Pt(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=jt(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",(({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(he(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=Bn,dragMomentum:a=!0}=t;return{...t,drag:s,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function us(e,t,s){return(t===!0||t===e)&&(s===null||s===e)}function pd(e,t=10){let s=null;return Math.abs(e.y)>t?s="y":Math.abs(e.x)>t&&(s="x"),s}class md extends De{constructor(t){super(t),this.removeGroupControls=ue,this.removeListeners=ue,this.controls=new fd(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ue}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 To=e=>(t,s)=>{e&&W.postRender(()=>e(t,s))};class gd extends De{constructor(){super(...arguments),this.removePointerDownListener=ue}onPointerDown(t){this.session=new xo(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:mo(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:s,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:To(t),onStart:To(s),onMove:n,onEnd:(o,i)=>{delete this.session,r&&W.postRender(()=>r(o,i))}}}mount(){this.removePointerDownListener=Vt(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 ds={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let Rn=!1;class yd extends m.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),Rn&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),ds.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:s,visualElement:n,drag:r,isPresent:o}=this.props,{projection:i}=n;return i&&(i.isPresent=o,Rn=!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(),hn.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:s,switchLayoutGroup:n}=this.props,{projection:r}=t;Rn=!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 So(e){const[t,s]=Ai(),n=m.useContext(ks);return l.jsx(yd,{...e,layoutGroup:n,switchLayoutGroup:m.useContext(Ii),isPresent:t,safeToRemove:s})}function xd(e,t,s){const n=te(e)?e:et(e);return n.start(Mn("",n,t,s)),n.animation}const vd=(e,t)=>e.depth-t.depth;class bd{constructor(){this.children=[],this.isDirty=!1}add(t){Es(this.children,t),this.isDirty=!0}remove(t){Ps(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(vd),this.isDirty=!1,this.children.forEach(t)}}function wd(e,t){const s=se.now(),n=({timestamp:r})=>{const o=r-s;o>=t&&(je(n),e(o-t))};return W.setup(n,!0),()=>je(n)}const Eo=["TopLeft","TopRight","BottomLeft","BottomRight"],Ad=Eo.length,Po=e=>typeof e=="string"?parseFloat(e):e,jo=e=>typeof e=="number"||S.test(e);function Cd(e,t,s,n,r,o){r?(e.opacity=K(0,s.opacity??1,kd(n)),e.opacityExit=K(t.opacity??1,0,Td(n))):o&&(e.opacity=K(t.opacity??1,s.opacity??1,n));for(let i=0;i<Ad;i++){const a=`border${Eo[i]}Radius`;let c=No(t,a),d=No(s,a);if(c===void 0&&d===void 0)continue;c||(c=0),d||(d=0),c===0||d===0||jo(c)===jo(d)?(e[a]=Math.max(K(Po(c),Po(d),n),0),(be.test(d)||be.test(c))&&(e[a]+="%")):e[a]=d}(t.rotate||s.rotate)&&(e.rotate=K(t.rotate||0,s.rotate||0,n))}function No(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const kd=Vo(0,.5,vr),Td=Vo(.5,.95,ue);function Vo(e,t,s){return n=>n<e?0:n>t?1:s(vt(e,t,n))}function Mo(e,t){e.min=t.min,e.max=t.max}function ye(e,t){Mo(e.x,t.x),Mo(e.y,t.y)}function Do(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Fo(e,t,s,n,r){return e-=t,e=ls(e,1/s,n),r!==void 0&&(e=ls(e,1/r,n)),e}function Sd(e,t=0,s=1,n=.5,r,o=e,i=e){if(be.test(t)&&(t=parseFloat(t),t=K(i.min,i.max,t/100)-i.min),typeof t!="number")return;let a=K(o.min,o.max,n);e===o&&(a-=t),e.min=Fo(e.min,t,s,a,r),e.max=Fo(e.max,t,s,a,r)}function Lo(e,t,[s,n,r],o,i){Sd(e,t[s],t[n],t[r],t.scale,o,i)}const Ed=["x","scaleX","originX"],Pd=["y","scaleY","originY"];function Bo(e,t,s,n){Lo(e.x,t,Ed,s?s.x:void 0,n?n.x:void 0),Lo(e.y,t,Pd,s?s.y:void 0,n?n.y:void 0)}function Ro(e){return e.translate===0&&e.scale===1}function Oo(e){return Ro(e.x)&&Ro(e.y)}function Io(e,t){return e.min===t.min&&e.max===t.max}function jd(e,t){return Io(e.x,t.x)&&Io(e.y,t.y)}function Uo(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Wo(e,t){return Uo(e.x,t.x)&&Uo(e.y,t.y)}function qo(e){return ne(e.x)/ne(e.y)}function _o(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Nd{constructor(){this.members=[]}add(t){Es(this.members,t),t.scheduleRender()}remove(t){if(Ps(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:g,skewY:x}=s;d&&(n=`perspective(${d}px) ${n}`),u&&(n+=`rotate(${u}deg) `),h&&(n+=`rotateX(${h}deg) `),p&&(n+=`rotateY(${p}deg) `),g&&(n+=`skewX(${g}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 On=["","X","Y","Z"],Md=1e3;let Dd=0;function In(e,t,s,n){const{latestValues:r}=t;r[e]&&(s[e]=r[e],t.setStaticValue(e,0),n&&(n[e]=0))}function Ko(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const s=no(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&&Ko(n)}function Yo({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(Ud),this.nodes.forEach(Wd),this.nodes.forEach(Rd)},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 bd)}addEventListener(i,a){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new Vs),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=bi(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 g=window.innerWidth;g!==h&&(h=g,this.root.updateBlockedByResize=!0,u&&u(),u=wd(p,250),ds.hasAnimatedSinceResize&&(ds.hasAnimatedSinceResize=!1,this.nodes.forEach(Jo)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&d&&(a||c)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:h,hasRelativeLayoutChanged:p,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||d.getDefaultTransition()||zd,{onLayoutAnimationStart:w,onLayoutAnimationComplete:v}=d.getProps(),y=!this.targetLayout||!Wo(this.targetLayout,g),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={...cn(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||Jo(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}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(),je(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(qd),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&&Ko(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(zo);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Go);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Id),this.nodes.forEach(Fd),this.nodes.forEach(Ld)):this.nodes.forEach(Go),this.clearAllSnapshots();const a=se.now();$.delta=xe(0,16.666666666666668,a-$.timestamp),$.timestamp=a,$.isProcessing=!0,Ls.update.process($),Ls.preRender.process($),Ls.render.process($),$.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,hn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Od),this.sharedNodes.forEach(_d)}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&&!Oo(this.projectionDelta),c=this.getTransformTemplate(),d=c?c(this.latestValues,""):void 0,u=d!==this.prevTransformTemplateValue;i&&this.instance&&(a||Ue(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)),Gd(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(Jd))){const{scroll:d}=this.root;d&&(st(a.x,d.offset.x),st(a.y,d.offset.y))}return a}removeElementScroll(i){const a=H();if(ye(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&&ye(a,i),st(a.x,u.offset.x),st(a.y,u.offset.y))}return a}applyTransform(i,a=!1){const c=H();ye(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&&nt(c,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),Ue(u.latestValues)&&nt(c,u.latestValues)}return Ue(this.latestValues)&&nt(c,this.latestValues),c}removeTransform(i){const a=H();ye(a,i);for(let c=0;c<this.path.length;c++){const d=this.path[c];if(!d.instance||!Ue(d.latestValues))continue;En(d.latestValues)&&d.updateSnapshot();const u=H(),h=d.measurePageBox();ye(u,h),Bo(a,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,u)}return Ue(this.latestValues)&&Bo(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!==$.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=$.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(),sd(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ye(this.target,this.layout.layoutBox),Yi(this.target,this.targetDelta)):ye(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||En(this.parent.latestValues)||qi(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(),cs(this.relativeTargetOrigin,a,c),ye(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===$.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;ye(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,p=this.treeScale.y;pu(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:g}=i;if(!g){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Do(this.prevProjectionDelta.x,this.projectionDelta.x),Do(this.prevProjectionDelta.y,this.projectionDelta.y)),Mt(this.projectionDelta,this.layoutCorrected,g,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==p||!_o(this.projectionDelta.x,this.prevProjectionDelta.x)||!_o(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g))}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=rt(),this.projectionDelta=rt(),this.projectionDeltaWithTransform=rt()}setAnimationOrigin(i,a=!1){const c=this.snapshot,d=c?c.latestValues:{},u={...this.latestValues},h=rt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const p=H(),g=c?c.source:void 0,x=this.layout?this.layout.source:void 0,w=g!==x,v=this.getStack(),y=!v||v.members.length<=1,C=!!(w&&!y&&this.options.crossfade===!0&&!this.path.some(Yd));this.animationProgress=0;let A;this.mixTargetDelta=V=>{const P=V/1e3;Qo(h.x,i.x,P),Qo(h.y,i.y,P),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(cs(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Kd(this.relativeTarget,this.relativeTargetOrigin,p,P),A&&jd(this.relativeTarget,A)&&(this.isProjectionDirty=!1),A||(A=H()),ye(A,this.relativeTarget)),w&&(this.animationValues=u,Cd(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&&(je(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=W.update(()=>{ds.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=et(0)),this.currentAnimation=xd(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&&ea(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}ye(a,c),nt(a,u),Mt(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&&In("z",i,d,this.animationValues);for(let u=0;u<On.length;u++)In(`rotate${On[u]}`,i,d,this.animationValues),In(`skew${On[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=as(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=as(a?.pointerEvents)||""),this.hasProjected&&!Ue(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:g}=this.projectionDelta;i.transformOrigin=`${p.origin*100}% ${g.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 xn){if(u[x]===void 0)continue;const{correct:w,applyTo:v,isCSSVariable:y}=xn[x],C=h==="none"?u[x]:w(u[x],d);if(v){const A=v.length;for(let V=0;V<A;V++)i[v[V]]=C}else y?this.options.visualElement.renderState.vars[x]=C:i[x]=C}this.options.layoutId&&(i.pointerEvents=d===this?as(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>i.currentAnimation?.stop()),this.root.nodes.forEach(zo),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"?he(u=>{const h=o?t.measuredBox[u]:t.layoutBox[u],p=ne(h);h.min=s[u].min,h.max=h.min+p}):ea(r,t.layoutBox,s)&&he(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=rt();Mt(i,s,t.layoutBox);const a=rt();o?Mt(a,e.applyTransform(n,!0),t.measuredBox):Mt(a,s,t.layoutBox);const c=!Oo(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 g=H();cs(g,t.layoutBox,h.layoutBox);const x=H();cs(x,s,p.layoutBox),Wo(g,x)||(d=!0),u.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=g,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 Rd(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Od(e){e.clearSnapshot()}function zo(e){e.clearMeasurements()}function Go(e){e.isLayoutDirty=!1}function Id(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Jo(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Ud(e){e.resolveTargetDelta()}function Wd(e){e.calcProjection()}function qd(e){e.resetSkewAndRotation()}function _d(e){e.removeLeadSnapshot()}function Qo(e,t,s){e.translate=K(t.translate,0,s),e.scale=K(t.scale,1,s),e.origin=t.origin,e.originPoint=t.originPoint}function Ho(e,t,s,n){e.min=K(t.min,s.min,n),e.max=K(t.max,s.max,n)}function Kd(e,t,s,n){Ho(e.x,t.x,s.x,n),Ho(e.y,t.y,s.y,n)}function Yd(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const zd={duration:.45,ease:[.4,0,.1,1]},Xo=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Zo=Xo("applewebkit/")&&!Xo("chrome/")?Math.round:ue;function $o(e){e.min=Zo(e.min),e.max=Zo(e.max)}function Gd(e){$o(e.x),$o(e.y)}function ea(e,t,s){return e==="position"||e==="preserve-aspect"&&!td(qo(t),qo(s),.2)}function Jd(e){return e!==e.root&&e.scroll?.wasRoot}const Qd=Yo({attachResizeListener:(e,t)=>jt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Un={current:void 0},ta=Yo({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Un.current){const e=new Qd({});e.mount(window),e.setOptions({layoutScroll:!0}),Un.current=e}return Un.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Hd={pan:{Feature:gd},drag:{Feature:md,ProjectionNode:ta,MeasureLayout:So}};function sa(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,Nt(t)))}class Xd extends De{mount(){const{current:t}=this.node;t&&(this.unmount=bc(t,(s,n)=>(sa(this.node,n,"Start"),r=>sa(this.node,r,"End"))))}unmount(){}}class Zd extends De{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=xt(jt(this.node.current,"focus",()=>this.onFocus()),jt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function na(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,Nt(t)))}class $d extends De{mount(){const{current:t}=this.node;t&&(this.unmount=Cc(t,(s,n)=>(na(this.node,n,"Start"),(r,{success:o})=>na(this.node,r,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Wn=new WeakMap,qn=new WeakMap,eh=e=>{const t=Wn.get(e.target);t&&t(e)},th=e=>{e.forEach(eh)};function sh({root:e,...t}){const s=e||document;qn.has(s)||qn.set(s,{});const n=qn.get(s),r=JSON.stringify(t);return n[r]||(n[r]=new IntersectionObserver(th,{root:e,...t})),n[r]}function nh(e,t,s){const n=sh(t);return Wn.set(e,s),n.observe(e),()=>{Wn.delete(e),n.unobserve(e)}}const rh={some:0,all:1};class ih extends De{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:rh[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 nh(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(oh(t,s))&&this.startObserver()}unmount(){}}function oh({viewport:e={}},{viewport:t={}}={}){return s=>e[s]!==t[s]}const ah={...Qu,...{inView:{Feature:ih},tap:{Feature:$d},focus:{Feature:Zd},hover:{Feature:Xd}},...Hd,...{layout:{ProjectionNode:ta,MeasureLayout:So}}},ra=du(ah,ku),lh=({steps:e,plannerStatus:t,executionStatus:s,reportStatus:n})=>{const{t:r}=oe.useTranslation(),o=e??[],[i,a]=m.useState(new Set),[c,d]=m.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),g=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??g,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(N.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(N.List,{className:"w-4 h-4 text-[#1784FC]"}),r("deepResearch.steps.generatedPlans")]}),c?l.jsx(N.ChevronUp,{className:"w-4 h-4 text-gray-400"}):l.jsx(N.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(N.List,{className:"w-4 h-4 text-[#1784FC]"}),r("deepResearch.steps.executeTitle")]}),o.map((y,C)=>{const A=y.status!=="pending",V=C===h,P=C===p,F=y.status==="pending"&&!y.searches;return l.jsxs("div",{className:`relative ${F?"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:V?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(N.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(N.Loader,{className:"w-3 h-3 text-blue-500 animate-spin"})}),F?l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(N.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(N.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(N.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(N.ChevronUp,{className:"w-4 h-4 text-[#999]"}):l.jsx(N.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(N.FileText,{className:"w-4 h-4 text-[#1784FC]"}),l.jsx("span",{className:"text-[#333] dark:text-[#E5E7EB]",children:r("deepResearch.steps.optimizePlan")})]}),l.jsx(N.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(N.BookOpenText,{className:`w-4 h-4 ${v==="pending"?"text-[#999]":"text-[#1784FC]"}`}),r("deepResearch.steps.reportTitle")]})})]})]})},ch=({content:e,data:t,formatUrl:s})=>{const{t:n}=oe.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(N.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(N.ExternalLink,{className:"w-5 h-5"})})]}),e&&l.jsx("div",{className:"cm-markdown",children:l.jsx(Cs,{content:e})})]})},uh=({hits:e,theme:t})=>{const s=m.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(la,{section:s,theme:t||"light",hideHeader:!0,onRecordClick:n=>{typeof n.url=="string"&&window.open(n.url)}})})},dh=({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}=oe.useTranslation(),[g,x]=m.useState(s||p("deepResearch.tab.steps"));return m.useEffect(()=>{s&&x(s)},[s]),l.jsx(Dc,{children:e&&l.jsxs(l.Fragment,{children:[l.jsx(ra.div,{className:"fixed inset-0 z-999 bg-black/20",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:t}),l.jsxs(ra.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(tr.Segmented,{className:"cm-deep-research-segmented",value:g,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:[g===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(N.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(N.Share2,{className:"w-4 h-4"}),l.jsx("span",{children:p("deepResearch.button.share")})]})]}),l.jsx(tr.Button,{type:"text",onClick:t,className:"text-[#999] hover:text-gray-600 flex items-center justify-center",children:l.jsx(N.X,{className:"w-5 h-5"})})]})]}),l.jsxs("div",{className:"pt-6 flex-1 overflow-y-auto bg-white dark:bg-black",children:[g===p("deepResearch.tab.report")&&l.jsx(ch,{content:c,data:a,formatUrl:u}),g===p("deepResearch.tab.steps")&&l.jsx(lh,{steps:n,plannerStatus:r,executionStatus:o,reportStatus:i}),g===p("deepResearch.tab.searchResults")&&l.jsx(uh,{hits:d,theme:h})]})]})]})})},hh=({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:g,theme:x})=>{const{t:w}=oe.useTranslation(),[v,y]=m.useState(!1),[C,A]=m.useState(w("deepResearch.tab.steps")),V=m.useMemo(()=>typeof o!="number"||Number.isNaN(o)||o<0?0:o>1?1:o,[o]),P=m.useMemo(()=>n||(V>=1?typeof r=="number"?w("deepResearch.status.completedWithCount",{count:r}):w("deepResearch.status.completed"):V>0?w("deepResearch.status.running"):w("deepResearch.status.preparing")),[n,V,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(N.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:[V>=1?l.jsx(N.Check,{className:"h-3 w-3 text-[#22C55E]"}):l.jsx(N.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:[V<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,V>=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:F=>{F.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 ${V>=1?"bg-[#00C868]":"bg-[#1784FC]"}`,style:{width:`${V*100}%`}})}),l.jsx("div",{className:"flex items-center justify-center cursor-pointer hover:opacity-80 transition-opacity",children:V>=1?l.jsx(N.Check,{className:"h-4 w-4 text-[#22C55E]"}):l.jsx(N.CirclePause,{className:"h-4 w-4 text-[#1784FC]"})})]})]})}),l.jsx(dh,{open:v,onClose:()=>y(!1),defaultActiveTab:C,steps:i,plannerStatus:a,executionStatus:c,reportStatus:d,reportData:u,reportContent:h,searchHits:p,formatUrl:g,theme:x})]})},fh=({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(N.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(N.ExternalLink,{className:"w-5 h-5"})})]})})};function ph(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 mh=m.memo(m.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:g,fetch_source:x,pick_source:w,deep_read:v,think:y,response:C,currentAssistant:A,assistantList:V,loadingStep:P,deepResearchPlans:F,deepResearchCurrentStepIndex:j,deepResearchQuery:E,deepResearchResultCount:U,deepResearchResearcherStarted:Q,deepResearchReporterStarted:ae,deepResearchReporterFinished:Se,deepResearchReportData:fe,deepResearchSearchMap:pe},we){const{t:Dt,i18n:q}=oe.useTranslation(),X=ph(u),[re,le]=m.useState({}),[qe,Ft]=m.useState([]),[hs,Lt]=m.useState(-1),[_n,_e]=m.useState(""),[Bt,Fe]=m.useState(void 0),[Rt,Ke]=m.useState(!1),[fs,ot]=m.useState(!1),[ps,ms]=m.useState(!1),[at,Le]=m.useState(void 0),[gs,lt]=m.useState({}),{data:{query_intent:ct,tools:Kn,fetch_source:Yn,pick_source:Ot,deep_read:zn,think:Gn,response:ut},handlers:Z,clearAllChunkData:ys}=Ma();m.useEffect(()=>{p&&Z.deal_query_intent(p)},[p]),m.useEffect(()=>{g&&Z.deal_tools(g)},[g]),m.useEffect(()=>{x&&Z.deal_fetch_source(x)},[x]),m.useEffect(()=>{w&&Z.deal_pick_source(w)},[w]),m.useEffect(()=>{v&&Z.deal_deep_read(v)},[v]),m.useEffect(()=>{y&&Z.deal_think(y)},[y]),m.useEffect(()=>{C&&Z.deal_response(C)},[C]);const[Jn,It]=m.useState({query_intent:!1,tools:!1,fetch_source:!1,pick_source:!1,deep_read:!1,think:!1,response:!1}),Ee=P||Jn,ce=F??qe,Pe=j??hs,Qn=E??_n,dt=U??Bt,ht=Q??Rt,Ut=ae??fs,Ye=Se??ps,Wt=fe??at,ze=pe??gs,Ae=ce.length>0&&Pe>=0&&Pe<ce.length,qt=Ae?ce[Pe]:"",_t=ce.length>0?1:0,xs=Ae?(Pe+1)/ce.length:0,Hn=Ye?1:Ut?.5:0,vs=(_t+xs+Hn)/3,Xn=m.useMemo(()=>{if(Ye)return typeof dt=="number"?`深度研究完成 · 找到 ${dt} 条相关结果`:"深度研究完成";if(Ut)return"正在编写研究报告";if(ht)return"正在执行研究计划";if(ce.length>0)return"正在规划研究计划"},[Ye,dt,Ut,ht,ce.length]),Be=m.useMemo(()=>ce.length?ce.map((k,D)=>{let O="pending";Ye?O="done":ht&&(D<Pe?O="done":D===Pe&&(O="in_progress"));const _=ze[k],me=_?.query?[{id:`step-${D+1}-search-1`,query:_.query,resultCount:_.resultCount,status:typeof _.resultCount=="number"?"done":"searching",hits:_.hits}]:void 0;return{id:`step-${D+1}`,title:k,status:O,searches:me,showOptimizePlan:!1}}):[],[ce,Pe,ht,Ye,ze]),bs=m.useMemo(()=>{const k=[];return Object.values(ze).forEach(D=>{D.hits&&Array.isArray(D.hits)&&k.push(...D.hits)}),k},[ze]),Zn=ce.length?"done":"pending",$n=m.useMemo(()=>Be.length?Be.some(k=>k.status==="in_progress")?"in_progress":Be.some(k=>k.status==="done")?"done":"pending":"pending",[Be]),ws=ps?"done":fs?"in_progress":"pending",ft=()=>{Ft([]),Lt(-1),_e(""),Fe(void 0),Ke(!1),ot(!1),ms(!1),Le(void 0),lt({})},er=k=>{if(k.chunk_type==="research_planner_start"){ft();return}if(k.chunk_type==="research_planner_end"){if(typeof k.message_chunk=="string")try{const D=JSON.parse(k.message_chunk);if(Array.isArray(D)){const O=D.map(_=>String(_));Ft(O),Lt(O.length>0?0:-1)}}catch(D){console.error(D)}return}if(k.chunk_type==="research_researcher_start"){if(typeof k.message_chunk=="string"&&k.message_chunk)try{const D=JSON.parse(k.message_chunk),O=typeof D?.plan=="string"?D.plan:"";O&&(Ke(!0),Lt(_=>{const me=qe.findIndex(Ge=>Ge===O);return me!==-1?me:_>=0?_:0}))}catch(D){console.error(D)}return}if(k.chunk_type==="research_researcher_step_start"){if(typeof k.message_chunk=="string"&&k.message_chunk)try{const D=JSON.parse(k.message_chunk),O=typeof D?.plan=="string"?D.plan:"",_=D?.step?.payload?.query;typeof _=="string"&&_e(_),Fe(void 0),O&&typeof _=="string"&<(me=>{const Ge=me[O]??{};return{...me,[O]:{...Ge,query:_}}})}catch(D){console.error(D)}return}if(k.chunk_type==="research_researcher_step_end"){if(typeof k.message_chunk=="string"&&k.message_chunk)try{const D=JSON.parse(k.message_chunk),O=typeof D?.plan=="string"?D.plan:"",_=D?.step?.payload?.hits;Array.isArray(_)&&(Fe(_.length),O&<(me=>{const Ge=me[O]??{};return{...me,[O]:{...Ge,resultCount:_.length,hits:_}}}))}catch(D){console.error(D)}return}if(k.chunk_type==="research_researcher_end"){_e("");return}if(k.chunk_type==="research_reporter_start"){ot(!0);return}if(k.chunk_type==="research_reporter_end"&&(ot(!0),ms(!0),typeof k.message_chunk=="string"&&k.message_chunk))try{const D=JSON.parse(k.message_chunk);Le(D)}catch(D){console.error(D)}},pt=m.useRef(!1);m.useImperativeHandle(we,()=>({addChunk:k=>{if(It(()=>({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")ft();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 D=k.message_chunk;if(typeof D=="string"){if(D.includes("<think>")||D.includes("<think>")){pt.current=!0;return}else if(D.includes("</think>")||D.includes("</think>")){pt.current=!1;return}pt.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")&&er(k)},reset:()=>{ys(),It({query_intent:!1,tools:!1,fetch_source:!1,pick_source:!1,deep_read:!1,think:!1,response:!1}),ft(),pt.current=!1}}));const Ce=t?._source?.type==="assistant",Kt=t?._source?.assistant_id,f=t?._source?.assistant_item;m.useEffect(()=>{h&&q.language!==h&&q.changeLanguage(h)},[h,q]),m.useEffect(()=>{if(f){le(f);return}if(Ce&&Kt&&Array.isArray(V)){le(V.find(k=>k._id===Kt)??{});return}le(A)},[Ce,f,Kt,V,A]);const b=t?._source,T=b?.message||"",M=b?.payload,I=b?.attachments??[],R=b?.details||[],L=b?.question||"",B=s===!1&&(T||ut?.message_chunk),[ee,z]=m.useState([]),G=k=>{z(k)},ie=()=>Ce?l.jsxs(l.Fragment,{children:[l.jsx(ga,{Detail:R.find(k=>k.type==="query_intent"),ChunkData:ct,getSuggestion:G,loading:Ee?.query_intent}),l.jsx(ya,{Detail:R.find(k=>k.type==="tools"),ChunkData:Kn,loading:Ee?.tools}),l.jsx(ba,{Detail:R.find(k=>k.type==="fetch_source"),ChunkData:Yn,loading:Ee?.fetch_source,formatUrl:d}),l.jsx(Aa,{Detail:R.find(k=>k.type==="pick_source"),ChunkData:Ot,loading:Ee?.pick_source}),l.jsx(ka,{Detail:R.find(k=>k.type==="deep_read"),ChunkData:zn,loading:Ee?.deep_read}),l.jsx(Ta,{Detail:R.find(k=>k.type==="think"),ChunkData:Gn,loading:Ee?.think}),l.jsx("div",{className:"cm-markdown",children:l.jsx(Cs,{content:T||ut?.message_chunk||""})}),l.jsx(fh,{payload:M,formatUrl:d}),Ae&&l.jsx(hh,{stepTitle:qt,query:Qn||L,resultCount:dt,progress:vs,statusText:Xn,steps:Be,plannerStatus:Zn,executionStatus:$n,reportStatus:ws,reportData:Wt,searchHits:bs,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"}),B&&l.jsx(Ea,{id:t._id??"",content:T||ut?.message_chunk||"",question:L,actionClassName:i,actionIconSize:a,copyButtonId:c,onResend:()=>{n&&n(L)}}),!s&&l.jsx(Pa,{suggestions:ee,onSelect:k=>n&&n(k)})]}):l.jsx(Na,{message:T,attachments:I});return l.jsx("div",{className:mt("w-full py-8 flex",[Ce?"justify-start":"justify-end"],X==="dark"&&"dark",o),children:l.jsx("div",{className:`w-full px-4 flex gap-4 ${Ce?"w-full":"flex-row-reverse"}`,children:l.jsxs("div",{className:`w-full space-y-2 ${Ce?"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:[Ce?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(Va,{name:re._source.icon,className:"w-4 h-4"}):l.jsx("img",{src:pa,className:"w-4 h-4",alt:Dt("assistant.message.logo")})}):null,Ce?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()})})]})})})})),gh=m.memo(m.forwardRef((e,t)=>l.jsx(oe.I18nextProvider,{i18n:ir,children:l.jsx(mh,{...e,ref:t})})));return As.ChatMessage=gh,Object.defineProperty(As,Symbol.toStringTag,{value:"Module"}),As})({},React,ReactI18next,clsx,i18n,Markdown,LucideReact,ahooks,attachments,antd,SearchResults);
|
|
41
|
+
`),()=>{y.contains(C)&&y.removeChild(C)}},[t]),l.jsx(ac,{isPresent:t,childRef:i,sizeRef:o,children:At.cloneElement(e,{ref:d})})}const cc=({children:e,initial:t,isPresent:s,onExitComplete:n,custom:r,presenceAffectsLayout:i,mode:o,anchorX:a,root:c})=>{const d=Jt(uc),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 b of d.values())if(!b)return;n&&n()},register:m=>(d.set(m,!1),()=>d.delete(m))}),[s,d,n]);return i&&h&&(p={...p}),g.useMemo(()=>{d.forEach((m,b)=>d.set(b,!1))},[s]),At.useEffect(()=>{!s&&!d.size&&n&&n()},[s]),o==="popLayout"&&(e=l.jsx(lc,{isPresent:s,anchorX:a,root:c,children:e})),l.jsx(Tt.Provider,{value:p,children:e})};function uc(){return new Map}function Ir(e=!0){const t=g.useContext(Tt);if(t===null)return[!0,null];const{isPresent:s,onExitComplete:n,register:r}=t,i=g.useId();g.useEffect(()=>{if(e)return r(i)},[e]);const o=g.useCallback(()=>e&&n&&n(i),[i,n,e]);return!s&&n?[!1,o]:[!0]}const Dt=e=>e.key||"";function _r(e){const t=[];return g.Children.forEach(e,s=>{g.isValidElement(s)&&t.push(s)}),t}const dc=({children:e,custom:t,initial:s=!0,onExitComplete:n,presenceAffectsLayout:r=!0,mode:i="sync",propagate:o=!1,anchorX:a="left",root:c})=>{const[d,u]=Ir(o),h=g.useMemo(()=>_r(e),[e]),p=o&&!d?[]:h.map(Dt),m=g.useRef(!0),b=g.useRef(h),A=Jt(()=>new Map),C=g.useRef(new Set),[y,v]=g.useState(h),[x,N]=g.useState(h);kn(()=>{m.current=!1,b.current=h;for(let E=0;E<x.length;E++){const S=Dt(x[E]);p.includes(S)?(A.delete(S),C.current.delete(S)):A.get(S)!==!0&&A.set(S,!1)}},[x,p.length,p.join("-")]);const P=[];if(h!==y){let E=[...h];for(let S=0;S<x.length;S++){const R=x[S],U=Dt(R);p.includes(U)||(E.splice(S,0,R),P.push(R))}return i==="wait"&&P.length&&(E=P),N(_r(E)),v(h),null}process.env.NODE_ENV!=="production"&&i==="wait"&&x.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(Gt);return l.jsx(l.Fragment,{children:x.map(E=>{const S=Dt(E),R=o&&!d?!1:h===x||p.includes(S),U=()=>{if(C.current.has(S))return;if(C.current.add(S),A.has(S))A.set(S,!0);else return;let X=!0;A.forEach(Z=>{Z||(X=!1)}),X&&(D?.(),N(b.current),o&&u?.(),n&&n())};return l.jsx(cc,{isPresent:R,initial:!m.current||s?void 0:!1,custom:t,presenceAffectsLayout:r,mode:i,root:c,onExitComplete:R?void 0:U,anchorX:a,children:E},S)})})},Ur=g.createContext({strict:!1}),Wr={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"]},We={};for(const e in Wr)We[e]={isEnabled:t=>Wr[e].some(s=>!!t[s])};function hc(e){for(const t in e)We[t]={...We[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 Ft(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 qr=e=>!Ft(e);function pc(e){typeof e=="function"&&(qr=t=>t.startsWith("on")?!Ft(t):e(t))}try{pc(require("@emotion/is-prop-valid").default)}catch{}function mc(e,t,s){const n={};for(const r in e)r==="values"&&typeof e.values=="object"||(qr(r)||s===!0&&Ft(r)||!t&&!Ft(r)||e.draggable&&r.startsWith("onDrag"))&&(n[r]=e[r]);return n}const Rt=g.createContext({});function Lt(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function ct(e){return typeof e=="string"||Array.isArray(e)}const Os=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Is=["initial",...Os];function Bt(e){return Lt(e.animate)||Is.some(t=>ct(e[t]))}function Kr(e){return!!(Bt(e)||e.variants)}function gc(e,t){if(Bt(e)){const{initial:s,animate:n}=e;return{initial:s===!1||ct(s)?s:void 0,animate:ct(n)?n:void 0}}return e.inherit!==!1?t:{}}function yc(e){const{initial:t,animate:s}=gc(e,g.useContext(Rt));return g.useMemo(()=>({initial:t,animate:s}),[Yr(t),Yr(s)])}function Yr(e){return Array.isArray(e)?e.join(" "):e}function zr(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ut={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(T.test(e))e=parseFloat(e);else return e;const s=zr(e,t.target.x),n=zr(e,t.target.y);return`${s}% ${n}%`}},xc={correct:(e,{treeScale:t,projectionDelta:s})=>{const n=e,r=ke.parse(e);if(r.length>5)return n;const i=ke.createTransformer(e),o=typeof r[0]!="number"?1:0,a=s.x.scale*t.x,c=s.y.scale*t.y;r[0+o]/=a,r[1+o]/=c;const d=q(a,c,.5);return typeof r[2+o]=="number"&&(r[2+o]/=d),typeof r[3+o]=="number"&&(r[3+o]/=d),i(r)}},_s={borderRadius:{...ut,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ut,borderTopRightRadius:ut,borderBottomLeftRadius:ut,borderBottomRightRadius:ut,boxShadow:xc};function Gr(e,{layout:t,layoutId:s}){return _e.has(e)||e.startsWith("origin")||(t||s!==void 0)&&(!!_s[e]||e==="opacity")}const vc={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},bc=Ie.length;function wc(e,t,s){let n="",r=!0;for(let i=0;i<bc;i++){const o=Ie[i],a=e[o];if(a===void 0)continue;let c=!0;if(typeof a=="number"?c=a===(o.startsWith("scale")?1:0):c=parseFloat(a)===0,!c||s){const d=Er(a,Ds[o]);if(!c){r=!1;const u=vc[o]||o;n+=`${u}(${d}) `}s&&(t[o]=d)}}return n=n.trim(),s?n=s(t,r?"":n):r&&(n="none"),n}function Us(e,t,s){const{style:n,vars:r,transformOrigin:i}=e;let o=!1,a=!1;for(const c in t){const d=t[c];if(_e.has(c)){o=!0;continue}else if(Kn(c)){r[c]=d;continue}else{const u=Er(d,Ds[c]);c.startsWith("origin")?(a=!0,i[c]=u):n[c]=u}}if(t.transform||(o||s?n.transform=wc(t,e.transform,s):n.transform&&(n.transform="none")),a){const{originX:c="50%",originY:d="50%",originZ:u=0}=i;n.transformOrigin=`${c} ${d} ${u}`}}const Ws=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Jr(e,t,s){for(const n in t)!se(t[n])&&!Gr(n,s)&&(e[n]=t[n])}function Ac({transformTemplate:e},t){return g.useMemo(()=>{const s=Ws();return Us(s,t,e),Object.assign({},s.vars,s.style)},[t])}function Cc(e,t){const s=e.style||{},n={};return Jr(n,s,e),Object.assign(n,Ac(e,t)),n}function kc(e,t){const s={},n=Cc(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 Tc={offset:"stroke-dashoffset",array:"stroke-dasharray"},Sc={offset:"strokeDashoffset",array:"strokeDasharray"};function Ec(e,t,s=1,n=0,r=!0){e.pathLength=1;const i=r?Tc:Sc;e[i.offset]=T.transform(-n);const o=T.transform(t),a=T.transform(s);e[i.array]=`${o} ${a}`}const Pc=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Qr(e,{attrX:t,attrY:s,attrScale:n,pathLength:r,pathSpacing:i=1,pathOffset:o=0,...a},c,d,u){if(Us(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 Pc)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&&Ec(h,r,i,o,!1)}const Hr=()=>({...Ws(),attrs:{}}),Xr=e=>typeof e=="string"&&e.toLowerCase()==="svg";function jc(e,t,s,n){const r=g.useMemo(()=>{const i=Hr();return Qr(i,t,Xr(n),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Jr(i,e.style,e),r.style={...i,...r.style}}return r}const Nc=["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 qs(e){return typeof e!="string"||e.includes("-")?!1:!!(Nc.indexOf(e)>-1||/[A-Z]/u.test(e))}function Vc(e,t,s,{latestValues:n},r,i=!1,o){const c=(o??qs(e)?jc:kc)(t,n,r,e),d=mc(t,typeof e=="string",i),u=e!==g.Fragment?{...d,...c,ref:s}:{},{children:h}=t,p=g.useMemo(()=>se(h)?h.get():h,[h]);return g.createElement(e,{...u,children:p})}function Zr(e){const t=[{},{}];return e?.values.forEach((s,n)=>{t[0][n]=s.get(),t[1][n]=s.getVelocity()}),t}function Ks(e,t,s,n){if(typeof t=="function"){const[r,i]=Zr(n);t=t(s!==void 0?s:e.custom,r,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[r,i]=Zr(n);t=t(s!==void 0?s:e.custom,r,i)}return t}function Ot(e){return se(e)?e.get():e}function Mc({scrapeMotionValuesFromProps:e,createRenderState:t},s,n,r){return{latestValues:Dc(s,n,r,e),renderState:t()}}function Dc(e,t,s,n){const r={},i=n(e,{});for(const p in i)r[p]=Ot(i[p]);let{initial:o,animate:a}=e;const c=Bt(e),d=Kr(e);t&&d&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let u=s?s.initial===!1:!1;u=u||o===!1;const h=u?a:o;if(h&&typeof h!="boolean"&&!Lt(h)){const p=Array.isArray(h)?h:[h];for(let m=0;m<p.length;m++){const b=Ks(e,p[m]);if(b){const{transitionEnd:A,transition:C,...y}=b;for(const v in y){let x=y[v];if(Array.isArray(x)){const N=u?x.length-1:0;x=x[N]}x!==null&&(r[v]=x)}for(const v in A)r[v]=A[v]}}}return r}const $r=e=>(t,s)=>{const n=g.useContext(Rt),r=g.useContext(Tt),i=()=>Mc(e,t,n,r);return s?i():Jt(i)};function Ys(e,t,s){const{style:n}=e,r={};for(const i in n)(se(n[i])||t.style&&se(t.style[i])||Gr(i,e)||s?.getValue(i)?.liveStyle!==void 0)&&(r[i]=n[i]);return r}const Fc=$r({scrapeMotionValuesFromProps:Ys,createRenderState:Ws});function ei(e,t,s){const n=Ys(e,t,s);for(const r in e)if(se(e[r])||se(t[r])){const i=Ie.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}const Rc=$r({scrapeMotionValuesFromProps:ei,createRenderState:Hr}),Lc=Symbol.for("motionComponentSymbol");function Bc(e,t,s){const n=g.useRef(s);g.useInsertionEffect(()=>{n.current=s});const r=g.useRef(null);return g.useCallback(i=>{i&&e.onMount?.(i),t&&(i?t.mount(i):t.unmount());const o=n.current;if(typeof o=="function")if(i){const a=o(i);typeof a=="function"&&(r.current=a)}else r.current?(r.current(),r.current=null):o(i);else o&&(o.current=i)},[t])}const zs=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ti="data-"+zs("framerAppearId"),si=g.createContext({});function dt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Oc(e,t,s,n,r,i){const{visualElement:o}=g.useContext(Rt),a=g.useContext(Ur),c=g.useContext(Tt),d=g.useContext(Bs).reducedMotion,u=g.useRef(null);n=n||a.renderer,!u.current&&n&&(u.current=n(e,{visualState:t,parent:o,props:s,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:d,isSVG:i}));const h=u.current,p=g.useContext(si);h&&!h.projection&&r&&(h.type==="html"||h.type==="svg")&&Ic(u.current,s,r,p);const m=g.useRef(!1);g.useInsertionEffect(()=>{h&&m.current&&h.update(s,c)});const b=s[ti],A=g.useRef(!!b&&!window.MotionHandoffIsComplete?.(b)&&window.MotionHasOptimisedAnimation?.(b));return kn(()=>{h&&(m.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),A.current&&h.animationState&&h.animationState.animateChanges())}),g.useEffect(()=>{h&&(!A.current&&h.animationState&&h.animationState.animateChanges(),A.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(b)}),A.current=!1),h.enteringChildren=void 0)}),h}function Ic(e,t,s,n){const{layoutId:r,layout:i,drag:o,dragConstraints:a,layoutScroll:c,layoutRoot:d,layoutCrossfade:u}=t;e.projection=new s(e.latestValues,t["data-framer-portal-id"]?void 0:ni(e.parent)),e.projection.setOptions({layoutId:r,layout:i,alwaysMeasureLayout:!!o||a&&dt(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:n,crossfade:u,layoutScroll:c,layoutRoot:d})}function ni(e){if(e)return e.options.allowProjection!==!1?e.projection:ni(e.parent)}function Gs(e,{forwardMotionProps:t=!1,type:s}={},n,r){n&&hc(n);const i=s?s==="svg":qs(e),o=i?Rc:Fc;function a(d,u){let h;const p={...g.useContext(Bs),...d,layoutId:_c(d)},{isStatic:m}=p,b=yc(d),A=o(d,m);if(!m&&Qt){Uc(p,n);const C=Wc(p);h=C.MeasureLayout,b.visualElement=Oc(e,A,p,r,C.ProjectionNode,i)}return l.jsxs(Rt.Provider,{value:b,children:[h&&b.visualElement?l.jsx(h,{visualElement:b.visualElement,...p}):null,Vc(e,d,Bc(A,b.visualElement,u),A,m,t,i)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const c=g.forwardRef(a);return c[Lc]=e,c}function _c({layoutId:e}){const t=g.useContext(Gt).id;return t&&e!==void 0?t+"-"+e:e}function Uc(e,t){const s=g.useContext(Ur).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?Re(!1,n,"lazy-strict-mode"):be(!1,n,"lazy-strict-mode")}}function Wc(e){const{drag:t,layout:s}=We;if(!t&&!s)return{};const n={...t,...s};return{MeasureLayout:t?.isEnabled(e)||s?.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}function qc(e,t){if(typeof Proxy>"u")return Gs;const s=new Map,n=(i,o)=>Gs(i,o,e,t),r=(i,o)=>(process.env.NODE_ENV!=="production"&&ts(!1,"motion() is deprecated. Use motion.create() instead."),n(i,o));return new Proxy(r,{get:(i,o)=>o==="create"?n:(s.has(o)||s.set(o,Gs(o,void 0,e,t)),s.get(o))})}function ri({top:e,left:t,right:s,bottom:n}){return{x:{min:t,max:s},y:{min:e,max:n}}}function Kc({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Yc(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 Js(e){return e===void 0||e===1}function Qs({scale:e,scaleX:t,scaleY:s}){return!Js(e)||!Js(t)||!Js(s)}function Me(e){return Qs(e)||ii(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ii(e){return oi(e.x)||oi(e.y)}function oi(e){return e&&e!=="0%"}function It(e,t,s){const n=e-s,r=t*n;return s+r}function ai(e,t,s,n,r){return r!==void 0&&(e=It(e,r,n)),It(e,s,n)+t}function Hs(e,t=0,s=1,n,r){e.min=ai(e.min,t,s,n,r),e.max=ai(e.max,t,s,n,r)}function li(e,{x:t,y:s}){Hs(e.x,t.translate,t.scale,t.originPoint),Hs(e.y,s.translate,s.scale,s.originPoint)}const ci=.999999999999,ui=1.0000000000001;function zc(e,t,s,n=!1){const r=s.length;if(!r)return;t.x=t.y=1;let i,o;for(let a=0;a<r;a++){i=s[a],o=i.projectionDelta;const{visualElement:c}=i.options;c&&c.props.style&&c.props.style.display==="contents"||(n&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Ke(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,li(e,o)),n&&Me(i.latestValues)&&Ke(e,i.latestValues))}t.x<ui&&t.x>ci&&(t.x=1),t.y<ui&&t.y>ci&&(t.y=1)}function qe(e,t){e.min=e.min+t,e.max=e.max+t}function di(e,t,s,n,r=.5){const i=q(e.min,e.max,r);Hs(e,t,s,i,n)}function Ke(e,t){di(e.x,t.x,t.scaleX,t.scale,t.originX),di(e.y,t.y,t.scaleY,t.scale,t.originY)}function hi(e,t){return ri(Yc(e.getBoundingClientRect(),t))}function Gc(e,t,s){const n=hi(e,s),{scroll:r}=t;return r&&(qe(n.x,r.offset.x),qe(n.y,r.offset.y)),n}const fi=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ye=()=>({x:fi(),y:fi()}),pi=()=>({min:0,max:0}),H=()=>({x:pi(),y:pi()}),Xs={current:null},mi={current:!1};function Jc(){if(mi.current=!0,!!Qt)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Xs.current=e.matches;e.addEventListener("change",t),t()}else Xs.current=!1}const Qc=new WeakMap;function Hc(e,t,s){for(const n in t){const r=t[n],i=s[n];if(se(r))e.addValue(n,r);else if(se(i))e.addValue(n,Ue(r,{owner:e}));else if(i!==r)if(e.hasValue(n)){const o=e.getValue(n);o.liveStyle===!0?o.jump(r):o.hasAnimated||o.set(r)}else{const o=e.getStaticValue(n);e.addValue(n,Ue(o!==void 0?o:r,{owner:e}))}}for(const n in s)t[n]===void 0&&e.removeValue(n);return t}const gi=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Xc{scrapeMotionValuesFromProps(t,s,n){return{}}constructor({parent:t,props:s,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:i,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ps,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=ne.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,W.render(this.render,!1,!0))};const{latestValues:c,renderState:d}=o;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=!!i,this.isControllingVariants=Bt(s),this.isVariantNode=Kr(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&&se(m)&&m.set(c[p])}}mount(t){this.current=t,Qc.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:(mi.current||Jc(),this.shouldReduceMotion=Xs.current),process.env.NODE_ENV!=="production"&&ts(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(),Ae(this.notifyUpdate),Ae(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=_e.has(t);n&&this.onBindTransform&&this.onBindTransform();const r=s.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&W.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,s)),this.valueSubscriptions.set(t,()=>{r(),i&&i(),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 We){const s=We[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 i=this.features[t];i.isMounted?i.update():(i.mount(),i.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<gi.length;n++){const r=gi[n];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const i="on"+r,o=t[i];o&&(this.propEventSubscriptions[r]=this.on(r,o))}this.prevMotionValues=Hc(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=Ue(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"&&(Tn(n)||En(n))?n=parseFloat(n):!rc(n)&&ke.test(s)&&(n=Sr(t,s)),this.setBaseTarget(t,se(n)?n.get():n)),se(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 i=Ks(this.props,s,this.presenceContext?.custom);i&&(n=i[t])}if(s&&n!==void 0)return n;const r=this.getBaseTargetFromProps(this.props,t);return r!==void 0&&!se(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 es),this.events[t].add(s)}notify(t,...s){this.events[t]&&this.events[t].notify(...s)}scheduleRenderMicrotask(){Fs.render(this.render)}}class yi extends Xc{constructor(){super(...arguments),this.KeyframeResolver=Gl}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;se(t)&&(this.childSubscription=t.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}function xi(e,{style:t,vars:s},n,r){const i=e.style;let o;for(o in t)i[o]=t[o];r?.applyProjectionStyles(i,n);for(o in s)i.setProperty(o,s[o])}function Zc(e){return window.getComputedStyle(e)}class $c extends yi{constructor(){super(...arguments),this.type="html",this.renderInstance=xi}readValueFromInstance(t,s){if(_e.has(s))return this.projection?.isProjecting?Cs(s):hl(t,s);{const n=Zc(t),r=(Kn(s)?n.getPropertyValue(s):n[s])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:s}){return hi(t,s)}build(t,s,n){Us(t,s,n.transformTemplate)}scrapeMotionValuesFromProps(t,s,n){return Ys(t,s,n)}}const vi=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 eu(e,t,s,n){xi(e,t,void 0,n);for(const r in t.attrs)e.setAttribute(vi.has(r)?r:zs(r),t.attrs[r])}class tu extends yi{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=H}getBaseTargetFromProps(t,s){return t[s]}readValueFromInstance(t,s){if(_e.has(s)){const n=Tr(s);return n&&n.default||0}return s=vi.has(s)?s:zs(s),t.getAttribute(s)}scrapeMotionValuesFromProps(t,s,n){return ei(t,s,n)}build(t,s,n){Qr(t,s,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,s,n,r){eu(t,s,n,r)}mount(t){this.isSVGTag=Xr(t.tagName),super.mount(t)}}const su=(e,t)=>t.isSVG??qs(e)?new tu(t):new $c(t,{allowProjection:e!==g.Fragment});function ze(e,t,s){const n=e.getProps();return Ks(n,t,s!==void 0?s:n.custom,e)}const Zs=e=>Array.isArray(e);function nu(e,t,s){e.hasValue(t)?e.getValue(t).set(s):e.addValue(t,Ue(s))}function ru(e){return Zs(e)?e[e.length-1]||0:e}function iu(e,t){const s=ze(e,t);let{transitionEnd:n={},transition:r={},...i}=s||{};i={...i,...n};for(const o in i){const a=ru(i[o]);nu(e,o,a)}}function ou(e){return!!(se(e)&&e.add)}function $s(e,t){const s=e.getValue("willChange");if(ou(s))return s.add(t);if(!s&&we.WillChange){const n=new we.WillChange("auto");e.addValue("willChange",n),n.add(t)}}function bi(e){return e.props[ti]}const au=e=>e!==null;function lu(e,{repeat:t,repeatType:s="loop"},n){const r=e.filter(au),i=t&&s!=="loop"&&t%2===1?0:r.length-1;return r[i]}const cu={type:"spring",stiffness:500,damping:25,restSpeed:10},uu=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),du={type:"keyframes",duration:.8},hu={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},fu=(e,{keyframes:t})=>t.length>2?du:_e.has(e)?e.startsWith("scale")?uu(t[1]):cu:hu;function pu({when:e,delay:t,delayChildren:s,staggerChildren:n,staggerDirection:r,repeat:i,repeatType:o,repeatDelay:a,from:c,elapsed:d,...u}){return!!Object.keys(u).length}const en=(e,t,s,n={},r,i)=>o=>{const a=Vs(n,e)||{},c=a.delay||n.delay||0;let{elapsed:d=0}=n;d=d-xe(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:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:r};pu(a)||Object.assign(u,fu(e,u)),u.duration&&(u.duration=xe(u.duration)),u.repeatDelay&&(u.repeatDelay=xe(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let h=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Ns(u),u.delay===0&&(h=!0)),(we.instantAnimations||we.skipAnimations)&&(h=!0,Ns(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,h&&!i&&t.get()!==void 0){const p=lu(u.keyframes,a);if(p!==void 0){W.update(()=>{u.onUpdate(p),u.onComplete()});return}}return a.isSync?new bs(u):new Rl(u)};function mu({protectedKeys:e,needsAnimating:t},s){const n=e.hasOwnProperty(s)&&t[s]!==!0;return t[s]=!1,n}function wi(e,t,{delay:s=0,transitionOverride:n,type:r}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:o,...a}=t;n&&(i=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&&mu(d,u))continue;const m={delay:s,...Vs(i||{},u)},b=h.get();if(b!==void 0&&!h.isAnimating&&!Array.isArray(p)&&p===b&&!m.velocity)continue;let A=!1;if(window.MotionHandoffAnimation){const y=bi(e);if(y){const v=window.MotionHandoffAnimation(y,u,W);v!==null&&(m.startTime=v,A=!0)}}$s(e,u),h.start(en(u,h,p,e.shouldReduceMotion&&br.has(u)?{type:!1}:m,e,A));const C=h.animation;C&&c.push(C)}return o&&Promise.all(c).then(()=>{W.update(()=>{o&&iu(e,o)})}),c}function Ai(e,t,s,n=0,r=1){const i=Array.from(e).sort((d,u)=>d.sortNodePosition(u)).indexOf(t),o=e.size,a=(o-1)*n;return typeof s=="function"?s(i,o):r===1?i*n:a-i*n}function tn(e,t,s={}){const n=ze(e,t,s.type==="exit"?e.presenceContext?.custom:void 0);let{transition:r=e.getDefaultTransition()||{}}=n||{};s.transitionOverride&&(r=s.transitionOverride);const i=n?()=>Promise.all(wi(e,n,s)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:u,staggerDirection:h}=r;return gu(e,t,c,d,u,h,s)}:()=>Promise.resolve(),{when:a}=r;if(a){const[c,d]=a==="beforeChildren"?[i,o]:[o,i];return c().then(()=>d())}else return Promise.all([i(),o(s.delay)])}function gu(e,t,s=0,n=0,r=0,i=1,o){const a=[];for(const c of e.variantChildren)c.notify("AnimationStart",t),a.push(tn(c,t,{...o,delay:s+(typeof n=="function"?0:n)+Ai(e.variantChildren,c,n,r,i)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(a)}function yu(e,t,s={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const r=t.map(i=>tn(e,i,s));n=Promise.all(r)}else if(typeof t=="string")n=tn(e,t,s);else{const r=typeof t=="function"?ze(e,t,s.custom):t;n=Promise.all(wi(e,r,s))}return n.then(()=>{e.notify("AnimationComplete",t)})}function Ci(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 xu=Is.length;function ki(e){if(!e)return;if(!e.isControllingVariants){const s=e.parent?ki(e.parent)||{}:{};return e.props.initial!==void 0&&(s.initial=e.props.initial),s}const t={};for(let s=0;s<xu;s++){const n=Is[s],r=e.props[n];(ct(r)||r===!1)&&(t[n]=r)}return t}const vu=[...Os].reverse(),bu=Os.length;function wu(e){return t=>Promise.all(t.map(({animation:s,options:n})=>yu(e,s,n)))}function Au(e){let t=wu(e),s=Ti(),n=!0;const r=c=>(d,u)=>{const h=ze(e,u,c==="exit"?e.presenceContext?.custom:void 0);if(h){const{transition:p,transitionEnd:m,...b}=h;d={...d,...b,...m}}return d};function i(c){t=c(e)}function o(c){const{props:d}=e,u=ki(e.parent)||{},h=[],p=new Set;let m={},b=1/0;for(let C=0;C<bu;C++){const y=vu[C],v=s[y],x=d[y]!==void 0?d[y]:u[y],N=ct(x),P=y===c?v.isActive:null;P===!1&&(b=C);let D=x===u[y]&&x!==d[y]&&N;if(D&&n&&e.manuallyAnimateOnMount&&(D=!1),v.protectedKeys={...m},!v.isActive&&P===null||!x&&!v.prevProp||Lt(x)||typeof x=="boolean")continue;const E=Cu(v.prevProp,x);let S=E||y===c&&v.isActive&&!D&&N||C>b&&N,R=!1;const U=Array.isArray(x)?x:[x];let X=U.reduce(r(y),{});P===!1&&(X={});const{prevResolvedValues:Z={}}=v,ae={...Z,...X},$=B=>{S=!0,p.has(B)&&(R=!0,p.delete(B)),v.needsAnimating[B]=!0;const O=e.getValue(B);O&&(O.liveStyle=!1)};for(const B in ae){const O=X[B],Y=Z[B];if(m.hasOwnProperty(B))continue;let J=!1;Zs(O)&&Zs(Y)?J=!Ci(O,Y):J=O!==Y,J?O!=null?$(B):p.add(B):O!==void 0&&p.has(B)?$(B):v.protectedKeys[B]=!0}v.prevProp=x,v.prevResolvedValues=X,v.isActive&&(m={...m,...X}),n&&e.blockInitialAnimation&&(S=!1);const ue=D&&E;S&&(!ue||R)&&h.push(...U.map(B=>{const O={type:y};if(typeof B=="string"&&n&&!ue&&e.manuallyAnimateOnMount&&e.parent){const{parent:Y}=e,J=ze(Y,B);if(Y.enteringChildren&&J){const{delayChildren:ie}=J.transition||{};O.delay=Ai(Y.enteringChildren,e,ie)}}return{animation:B,options:O}}))}if(p.size){const C={};if(typeof d.initial!="boolean"){const y=ze(e,Array.isArray(d.initial)?d.initial[0]:d.initial);y&&y.transition&&(C.transition=y.transition)}p.forEach(y=>{const v=e.getBaseTarget(y),x=e.getValue(y);x&&(x.liveStyle=!0),C[y]=v??null}),h.push({animation:C})}let A=!!h.length;return n&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(A=!1),n=!1,A?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=o(c);for(const h in s)s[h].protectedKeys={};return u}return{animateChanges:o,setActive:a,setAnimateFunction:i,getState:()=>s,reset:()=>{s=Ti()}}}function Cu(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Ci(t,e):!1}function De(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ti(){return{animate:De(!0),whileInView:De(),whileHover:De(),whileTap:De(),whileDrag:De(),whileFocus:De(),exit:De()}}class Se{constructor(t){this.isMounted=!1,this.node=t}update(){}}class ku extends Se{constructor(t){super(t),t.animationState||(t.animationState=Au(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Lt(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 Tu=0;class Su extends Se{constructor(){super(...arguments),this.id=Tu++}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 Eu={animation:{Feature:ku},exit:{Feature:Su}};function ht(e,t,s,n={passive:!0}){return e.addEventListener(t,s,n),()=>e.removeEventListener(t,s)}function ft(e){return{point:{x:e.pageX,y:e.pageY}}}const Pu=e=>t=>Rs(t)&&e(t,ft(t));function pt(e,t,s,n){return ht(e,t,Pu(s),n)}const Si=1e-4,ju=1-Si,Nu=1+Si,Ei=.01,Vu=0-Ei,Mu=0+Ei;function re(e){return e.max-e.min}function Du(e,t,s){return Math.abs(e-t)<=s}function Pi(e,t,s,n=.5){e.origin=n,e.originPoint=q(t.min,t.max,e.origin),e.scale=re(s)/re(t),e.translate=q(s.min,s.max,e.origin)-e.originPoint,(e.scale>=ju&&e.scale<=Nu||isNaN(e.scale))&&(e.scale=1),(e.translate>=Vu&&e.translate<=Mu||isNaN(e.translate))&&(e.translate=0)}function mt(e,t,s,n){Pi(e.x,t.x,s.x,n?n.originX:void 0),Pi(e.y,t.y,s.y,n?n.originY:void 0)}function ji(e,t,s){e.min=s.min+t.min,e.max=e.min+re(t)}function Fu(e,t,s){ji(e.x,t.x,s.x),ji(e.y,t.y,s.y)}function Ni(e,t,s){e.min=t.min-s.min,e.max=e.min+re(t)}function _t(e,t,s){Ni(e.x,t.x,s.x),Ni(e.y,t.y,s.y)}function fe(e){return[e("x"),e("y")]}const Vi=({current:e})=>e?e.ownerDocument.defaultView:null,Mi=(e,t)=>Math.abs(e-t);function Ru(e,t){const s=Mi(e.x,t.x),n=Mi(e.y,t.y);return Math.sqrt(s**2+n**2)}const Di=new Set(["auto","scroll"]);class Fi{constructor(t,s,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:o=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=nn(this.lastMoveEventInfo,this.history),b=this.startEvent!==null,A=Ru(m.offset,{x:0,y:0})>=this.distanceThreshold;if(!b&&!A)return;const{point:C}=m,{timestamp:y}=te;this.history.push({...C,timestamp:y});const{onStart:v,onMove:x}=this.handlers;b||(v&&v(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,m)},this.handlePointerMove=(m,b)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=sn(b,this.transformPagePoint),W.update(this.updatePoint,!0)},this.handlePointerUp=(m,b)=>{this.end();const{onEnd:A,onSessionEnd:C,resumeAnimation:y}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=nn(m.type==="pointercancel"?this.lastMoveEventInfo:sn(b,this.transformPagePoint),this.history);this.startEvent&&A&&A(m,v),C&&C(m,v)},!Rs(t))return;this.dragSnapToOrigin=i,this.handlers=s,this.transformPagePoint=n,this.distanceThreshold=o,this.contextWindow=r||window;const c=ft(t),d=sn(c,this.transformPagePoint),{point:u}=d,{timestamp:h}=te;this.history=[{...u,timestamp:h}];const{onSessionStart:p}=s;p&&p(t,nn(d,this.history)),this.removeListeners=tt(pt(this.contextWindow,"pointermove",this.handlePointerMove),pt(this.contextWindow,"pointerup",this.handlePointerUp),pt(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(t){let s=t.parentElement;for(;s;){const n=getComputedStyle(s);(Di.has(n.overflowX)||Di.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},i={x:r.x-s.x,y:r.y-s.y};i.x===0&&i.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.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(),Ae(this.updatePoint)}}function sn(e,t){return t?{point:t(e.point)}:e}function Ri(e,t){return{x:e.x-t.x,y:e.y-t.y}}function nn({point:e},t){return{point:e,delta:Ri(e,Li(t)),offset:Ri(e,Lu(t)),velocity:Bu(t,.1)}}function Lu(e){return e[0]}function Li(e){return e[e.length-1]}function Bu(e,t){if(e.length<2)return{x:0,y:0};let s=e.length-1,n=null;const r=Li(e);for(;s>=0&&(n=e[s],!(r.timestamp-n.timestamp>xe(t)));)s--;if(!n)return{x:0,y:0};const i=he(r.timestamp-n.timestamp);if(i===0)return{x:0,y:0};const o={x:(r.x-n.x)/i,y:(r.y-n.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Ou(e,{min:t,max:s},n){return t!==void 0&&e<t?e=n?q(t,e,n.min):Math.max(e,t):s!==void 0&&e>s&&(e=n?q(s,e,n.max):Math.min(e,s)),e}function Bi(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 Iu(e,{top:t,left:s,bottom:n,right:r}){return{x:Bi(e.x,s,r),y:Bi(e.y,t,n)}}function Oi(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 _u(e,t){return{x:Oi(e.x,t.x),y:Oi(e.y,t.y)}}function Uu(e,t){let s=.5;const n=re(e),r=re(t);return r>n?s=st(t.min,t.max-n,e.min):n>r&&(s=st(e.min,e.max-r,t.min)),ye(0,1,s)}function Wu(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 rn=.35;function qu(e=rn){return e===!1?e=0:e===!0&&(e=rn),{x:Ii(e,"left","right"),y:Ii(e,"top","bottom")}}function Ii(e,t,s){return{min:_i(e,t),max:_i(e,s)}}function _i(e,t){return typeof e=="number"?e:e[t]||0}const Ku=new WeakMap;class Yu{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 i=h=>{s?(this.stopAnimation(),this.snapToCursor(ft(h).point)):this.pauseAnimation()},o=(h,p)=>{this.stopAnimation();const{drag:m,dragPropagation:b,onDragStart:A}=this.getProps();if(m&&!b&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Xl(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 v=this.getAxisMotionValue(y).get()||0;if(ve.test(v)){const{projection:x}=this.visualElement;if(x&&x.layout){const N=x.layout.layoutBox[y];N&&(v=re(N)*(parseFloat(v)/100))}}this.originPoint[y]=v}),A&&W.postRender(()=>A(h,p)),$s(this.visualElement,"transform");const{animationState:C}=this.visualElement;C&&C.setActive("whileDrag",!0)},a=(h,p)=>{this.latestPointerEvent=h,this.latestPanInfo=p;const{dragPropagation:m,dragDirectionLock:b,onDirectionLock:A,onDrag:C}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:y}=p;if(b&&this.currentDirection===null){this.currentDirection=zu(y),this.currentDirection!==null&&A&&A(this.currentDirection);return}this.updateAxis("x",p.point,y),this.updateAxis("y",p.point,y),this.visualElement.render(),C&&C(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 Fi(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:n,contextWindow:Vi(this.visualElement),element:this.visualElement.current})}stop(t,s){const n=t||this.latestPointerEvent,r=s||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;const{velocity:o}=r;this.startAnimation(o);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||!Ut(t,r,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=Ou(o,this.constraints[t],this.elastic[t])),i.set(o)}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&&dt(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=Iu(n.layoutBox,t):this.constraints=!1,this.elastic=qu(s),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&fe(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=Wu(n.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:s}=this.getProps();if(!t||!dt(t))return!1;const n=t.current;be(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 i=Gc(n,r.root,this.visualElement.getTransformPagePoint());let o=_u(r.layout.layoutBox,i);if(s){const a=s(Kc(o));this.hasMutatedConstraints=!!a,a&&(o=ri(a))}return o}startAnimation(t){const{drag:s,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},d=fe(u=>{if(!Ut(u,s,this.currentDirection))return;let h=c&&c[u]||{};o&&(h={min:0,max:0});const p=r?200:1e6,m=r?40:1e7,b={type:"inertia",velocity:n?t[u]:0,bounceStiffness:p,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...i,...h};return this.startAxisValueAnimation(u,b)});return Promise.all(d).then(a)}startAxisValueAnimation(t,s){const n=this.getAxisMotionValue(t);return $s(this.visualElement,t),n.start(en(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(!Ut(s,n,this.currentDirection))return;const{projection:r}=this.visualElement,i=this.getAxisMotionValue(s);if(r&&r.layout){const{min:o,max:a}=r.layout.layoutBox[s],c=i.get()||0;i.set(t[s]-q(o,a,.5)+c)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:s}=this.getProps(),{projection:n}=this.visualElement;if(!dt(s)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};fe(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const c=a.get();r[o]=Uu({min:c,max:c},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),fe(o=>{if(!Ut(o,t,null))return;const a=this.getAxisMotionValue(o),{min:c,max:d}=this.constraints[o];a.set(q(c,d,r[o]))})}addListeners(){if(!this.visualElement.current)return;Ku.set(this.visualElement,this);const t=this.visualElement.current,s=pt(t,"pointerdown",c=>{const{drag:d,dragListener:u=!0}=this.getProps();d&&u&&!Fr(c.target)&&this.start(c)}),n=()=>{const{dragConstraints:c}=this.getProps();dt(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener("measure",n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),W.read(n);const o=ht(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()=>{o(),s(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=rn,dragMomentum:a=!0}=t;return{...t,drag:s,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function Ut(e,t,s){return(t===!0||t===e)&&(s===null||s===e)}function zu(e,t=10){let s=null;return Math.abs(e.y)>t?s="y":Math.abs(e.x)>t&&(s="x"),s}class Gu extends Se{constructor(t){super(t),this.removeGroupControls=de,this.removeListeners=de,this.controls=new Yu(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||de}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 Ui=e=>(t,s)=>{e&&W.postRender(()=>e(t,s))};class Ju extends Se{constructor(){super(...arguments),this.removePointerDownListener=de}onPointerDown(t){this.session=new Fi(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Vi(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:s,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Ui(t),onStart:Ui(s),onMove:n,onEnd:(i,o)=>{delete this.session,r&&W.postRender(()=>r(i,o))}}}mount(){this.removePointerDownListener=pt(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 Wt={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let on=!1;class Qu extends g.Component{componentDidMount(){const{visualElement:t,layoutGroup:s,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=t;i&&(s.group&&s.group.add(i),n&&n.register&&r&&n.register(i),on&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Wt.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:s,visualElement:n,drag:r,isPresent:i}=this.props,{projection:o}=n;return o&&(o.isPresent=i,on=!0,r||t.layoutDependency!==s||s===void 0||t.isPresent!==i?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||W.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Fs.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:s,switchLayoutGroup:n}=this.props,{projection:r}=t;on=!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 Wi(e){const[t,s]=Ir(),n=g.useContext(Gt);return l.jsx(Qu,{...e,layoutGroup:n,switchLayoutGroup:g.useContext(si),isPresent:t,safeToRemove:s})}function Hu(e,t,s){const n=se(e)?e:Ue(e);return n.start(en("",n,t,s)),n.animation}const Xu=(e,t)=>e.depth-t.depth;class Zu{constructor(){this.children=[],this.isDirty=!1}add(t){Ht(this.children,t),this.isDirty=!0}remove(t){Xt(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Xu),this.isDirty=!1,this.children.forEach(t)}}function $u(e,t){const s=ne.now(),n=({timestamp:r})=>{const i=r-s;i>=t&&(Ae(n),e(i-t))};return W.setup(n,!0),()=>Ae(n)}const qi=["TopLeft","TopRight","BottomLeft","BottomRight"],ed=qi.length,Ki=e=>typeof e=="string"?parseFloat(e):e,Yi=e=>typeof e=="number"||T.test(e);function td(e,t,s,n,r,i){r?(e.opacity=q(0,s.opacity??1,sd(n)),e.opacityExit=q(t.opacity??1,0,nd(n))):i&&(e.opacity=q(t.opacity??1,s.opacity??1,n));for(let o=0;o<ed;o++){const a=`border${qi[o]}Radius`;let c=zi(t,a),d=zi(s,a);if(c===void 0&&d===void 0)continue;c||(c=0),d||(d=0),c===0||d===0||Yi(c)===Yi(d)?(e[a]=Math.max(q(Ki(c),Ki(d),n),0),(ve.test(d)||ve.test(c))&&(e[a]+="%")):e[a]=d}(t.rotate||s.rotate)&&(e.rotate=q(t.rotate||0,s.rotate||0,n))}function zi(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const sd=Gi(0,.5,Ln),nd=Gi(.5,.95,de);function Gi(e,t,s){return n=>n<e?0:n>t?1:s(st(e,t,n))}function Ji(e,t){e.min=t.min,e.max=t.max}function ge(e,t){Ji(e.x,t.x),Ji(e.y,t.y)}function Qi(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Hi(e,t,s,n,r){return e-=t,e=It(e,1/s,n),r!==void 0&&(e=It(e,1/r,n)),e}function rd(e,t=0,s=1,n=.5,r,i=e,o=e){if(ve.test(t)&&(t=parseFloat(t),t=q(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=q(i.min,i.max,n);e===i&&(a-=t),e.min=Hi(e.min,t,s,a,r),e.max=Hi(e.max,t,s,a,r)}function Xi(e,t,[s,n,r],i,o){rd(e,t[s],t[n],t[r],t.scale,i,o)}const id=["x","scaleX","originX"],od=["y","scaleY","originY"];function Zi(e,t,s,n){Xi(e.x,t,id,s?s.x:void 0,n?n.x:void 0),Xi(e.y,t,od,s?s.y:void 0,n?n.y:void 0)}function $i(e){return e.translate===0&&e.scale===1}function eo(e){return $i(e.x)&&$i(e.y)}function to(e,t){return e.min===t.min&&e.max===t.max}function ad(e,t){return to(e.x,t.x)&&to(e.y,t.y)}function so(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function no(e,t){return so(e.x,t.x)&&so(e.y,t.y)}function ro(e){return re(e.x)/re(e.y)}function io(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class ld{constructor(){this.members=[]}add(t){Ht(this.members,t),t.scheduleRender()}remove(t){if(Xt(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 i=this.members[r];if(i.isPresent!==!1){n=i;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 cd(e,t,s){let n="";const r=e.x.translate/t.x,i=e.y.translate/t.y,o=s?.z||0;if((r||i||o)&&(n=`translate3d(${r}px, ${i}px, ${o}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:b}=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) `),b&&(n+=`skewY(${b}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 an=["","X","Y","Z"],ud=1e3;let dd=0;function ln(e,t,s,n){const{latestValues:r}=t;r[e]&&(s[e]=r[e],t.setStaticValue(e,0),n&&(n[e]=0))}function oo(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const s=bi(t);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:r,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",W,!(r||i))}const{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&oo(n)}function ao({attachResizeListener:e,defaultParent:t,measureScroll:s,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(o={},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(pd),this.nodes.forEach(xd),this.nodes.forEach(vd),this.nodes.forEach(md)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,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 Zu)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new es),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const c=this.eventHandlers.get(o);c&&c.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=Br(o)&&!sc(o),this.instance=o;const{layoutId:a,layout:c,visualElement:d}=this.options;if(d&&!d.current&&d.mount(o),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(o,()=>{const m=window.innerWidth;m!==h&&(h=m,this.root.updateBlockedByResize=!0,u&&u(),u=$u(p,250),Wt.hasAnimatedSinceResize&&(Wt.hasAnimatedSinceResize=!1,this.nodes.forEach(uo)))})}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 b=this.options.transition||d.getDefaultTransition()||kd,{onLayoutAnimationStart:A,onLayoutAnimationComplete:C}=d.getProps(),y=!this.targetLayout||!no(this.targetLayout,m),v=!h&&p;if(this.options.layoutRoot||this.resumeFrom||v||h&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const x={...Vs(b,"layout"),onPlay:A,onComplete:C};(d.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x),this.setAnimationOrigin(u,v)}else h||uo(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ae(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(bd),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&oo(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(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(lo);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(co);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(yd),this.nodes.forEach(hd),this.nodes.forEach(fd)):this.nodes.forEach(co),this.clearAllSnapshots();const a=ne.now();te.delta=ye(0,16.666666666666668,a-te.timestamp),te.timestamp=a,te.isProcessing=!0,rs.update.process(te),rs.preRender.process(te),rs.render.process(te),te.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Fs.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(gd),this.sharedNodes.forEach(wd)}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&&!re(this.snapshot.measuredBox.x)&&!re(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 o=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,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a&&this.instance){const c=n(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:c,offset:s(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!r)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!eo(this.projectionDelta),c=this.getTransformTemplate(),d=c?c(this.latestValues,""):void 0,u=d!==this.prevTransformTemplateValue;o&&this.instance&&(a||Me(this.latestValues)||u)&&(r(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let c=this.removeElementScroll(a);return o&&(c=this.removeTransform(c)),Td(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:o}=this.options;if(!o)return H();const a=o.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Sd))){const{scroll:d}=this.root;d&&(qe(a.x,d.offset.x),qe(a.y,d.offset.y))}return a}removeElementScroll(o){const a=H();if(ge(a,o),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,o),qe(a.x,u.offset.x),qe(a.y,u.offset.y))}return a}applyTransform(o,a=!1){const c=H();ge(c,o);for(let d=0;d<this.path.length;d++){const u=this.path[d];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Ke(c,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),Me(u.latestValues)&&Ke(c,u.latestValues)}return Me(this.latestValues)&&Ke(c,this.latestValues),c}removeTransform(o){const a=H();ge(a,o);for(let c=0;c<this.path.length;c++){const d=this.path[c];if(!d.instance||!Me(d.latestValues))continue;Qs(d.latestValues)&&d.updateSnapshot();const u=H(),h=d.measurePageBox();ge(u,h),Zi(a,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,u)}return Me(this.latestValues)&&Zi(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.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!==te.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!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(!(o||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=te.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(),Fu(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ge(this.target,this.layout.layoutBox),li(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||Qs(this.parent.latestValues)||ii(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,a,c){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=H(),this.relativeTargetOrigin=H(),_t(this.relativeTargetOrigin,a,c),ge(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const o=this.getLead(),a=!!this.resumingFrom||this!==o;let c=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===te.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;zc(this.layoutCorrected,this.treeScale,this.path,a),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=H());const{target:m}=o;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Qi(this.prevProjectionDelta.x,this.projectionDelta.x),Qi(this.prevProjectionDelta.y,this.projectionDelta.y)),mt(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==p||!io(this.projectionDelta.x,this.prevProjectionDelta.x)||!io(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){if(this.options.visualElement?.scheduleRender(),o){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ye(),this.projectionDelta=Ye(),this.projectionDeltaWithTransform=Ye()}setAnimationOrigin(o,a=!1){const c=this.snapshot,d=c?c.latestValues:{},u={...this.latestValues},h=Ye();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const p=H(),m=c?c.source:void 0,b=this.layout?this.layout.source:void 0,A=m!==b,C=this.getStack(),y=!C||C.members.length<=1,v=!!(A&&!y&&this.options.crossfade===!0&&!this.path.some(Cd));this.animationProgress=0;let x;this.mixTargetDelta=N=>{const P=N/1e3;ho(h.x,o.x,P),ho(h.y,o.y,P),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(_t(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Ad(this.relativeTarget,this.relativeTargetOrigin,p,P),x&&ad(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=H()),ge(x,this.relativeTarget)),A&&(this.animationValues=u,td(u,d,this.latestValues,P,v,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Ae(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=W.update(()=>{Wt.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ue(0)),this.currentAnimation=Hu(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.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 o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(ud),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:c,layout:d,latestValues:u}=o;if(!(!a||!c||!d)){if(this!==o&&this.layout&&d&&yo(this.options.animationType,this.layout.layoutBox,d.layoutBox)){c=this.target||H();const h=re(this.layout.layoutBox.x);c.x.min=o.target.x.min,c.x.max=c.x.min+h;const p=re(this.layout.layoutBox.y);c.y.min=o.target.y.min,c.y.max=c.y.min+p}ge(a,c),Ke(a,u),mt(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new ld),this.sharedNodes.get(o).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 o=this.getStack();return o?o.lead===this:!0}getLead(){const{layoutId:o}=this.options;return o?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:o}=this.options;return o?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:c}={}){const d=this.getStack();d&&d.promote(this,c),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:c}=o;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(a=!0),!a)return;const d={};c.z&&ln("z",o,d,this.animationValues);for(let u=0;u<an.length;u++)ln(`rotate${an[u]}`,o,d,this.animationValues),ln(`skew${an[u]}`,o,d,this.animationValues);o.render();for(const u in d)o.setStaticValue(u,d[u]),this.animationValues&&(this.animationValues[u]=d[u]);o.scheduleRender()}applyProjectionStyles(o,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=Ot(a?.pointerEvents)||"",o.transform=c?c(this.latestValues,""):"none";return}const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=Ot(a?.pointerEvents)||""),this.hasProjected&&!Me(this.latestValues)&&(o.transform=c?c({},""):"none",this.hasProjected=!1);return}o.visibility="";const u=d.animationValues||d.latestValues;this.applyTransformsToTarget();let h=cd(this.projectionDeltaWithTransform,this.treeScale,u);c&&(h=c(u,h)),o.transform=h;const{x:p,y:m}=this.projectionDelta;o.transformOrigin=`${p.origin*100}% ${m.origin*100}% 0`,d.animationValues?o.opacity=d===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:o.opacity=d===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const b in _s){if(u[b]===void 0)continue;const{correct:A,applyTo:C,isCSSVariable:y}=_s[b],v=h==="none"?u[b]:A(u[b],d);if(C){const x=C.length;for(let N=0;N<x;N++)o[C[N]]=v}else y?this.options.visualElement.renderState.vars[b]=v:o[b]=v}this.options.layoutId&&(o.pointerEvents=d===this?Ot(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>o.currentAnimation?.stop()),this.root.nodes.forEach(lo),this.root.sharedNodes.clear()}}}function hd(e){e.updateLayout()}function fd(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,i=t.source!==e.layout.source;r==="size"?fe(u=>{const h=i?t.measuredBox[u]:t.layoutBox[u],p=re(h);h.min=s[u].min,h.max=h.min+p}):yo(r,t.layoutBox,s)&&fe(u=>{const h=i?t.measuredBox[u]:t.layoutBox[u],p=re(s[u]);h.max=h.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[u].max=e.relativeTarget[u].min+p)});const o=Ye();mt(o,s,t.layoutBox);const a=Ye();i?mt(a,e.applyTransform(n,!0),t.measuredBox):mt(a,s,t.layoutBox);const c=!eo(o);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();_t(m,t.layoutBox,h.layoutBox);const b=H();_t(b,s,p.layoutBox),no(m,b)||(d=!0),u.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=m,e.relativeParent=u)}}}e.notifyListeners("didUpdate",{layout:s,snapshot:t,delta:a,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:s}=e.options;s&&s()}e.options.transition=void 0}function pd(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 md(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function gd(e){e.clearSnapshot()}function lo(e){e.clearMeasurements()}function co(e){e.isLayoutDirty=!1}function yd(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function uo(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function xd(e){e.resolveTargetDelta()}function vd(e){e.calcProjection()}function bd(e){e.resetSkewAndRotation()}function wd(e){e.removeLeadSnapshot()}function ho(e,t,s){e.translate=q(t.translate,0,s),e.scale=q(t.scale,1,s),e.origin=t.origin,e.originPoint=t.originPoint}function fo(e,t,s,n){e.min=q(t.min,s.min,n),e.max=q(t.max,s.max,n)}function Ad(e,t,s,n){fo(e.x,t.x,s.x,n),fo(e.y,t.y,s.y,n)}function Cd(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const kd={duration:.45,ease:[.4,0,.1,1]},po=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),mo=po("applewebkit/")&&!po("chrome/")?Math.round:de;function go(e){e.min=mo(e.min),e.max=mo(e.max)}function Td(e){go(e.x),go(e.y)}function yo(e,t,s){return e==="position"||e==="preserve-aspect"&&!Du(ro(t),ro(s),.2)}function Sd(e){return e!==e.root&&e.scroll?.wasRoot}const Ed=ao({attachResizeListener:(e,t)=>ht(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),cn={current:void 0},xo=ao({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!cn.current){const e=new Ed({});e.mount(window),e.setOptions({layoutScroll:!0}),cn.current=e}return cn.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Pd={pan:{Feature:Ju},drag:{Feature:Gu,ProjectionNode:xo,MeasureLayout:Wi}};function vo(e,t,s){const{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover",s==="Start");const r="onHover"+s,i=n[r];i&&W.postRender(()=>i(t,ft(t)))}class jd extends Se{mount(){const{current:t}=this.node;t&&(this.unmount=Zl(t,(s,n)=>(vo(this.node,n,"Start"),r=>vo(this.node,r,"End"))))}unmount(){}}class Nd extends Se{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=tt(ht(this.node.current,"focus",()=>this.onFocus()),ht(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function bo(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),i=n[r];i&&W.postRender(()=>i(t,ft(t)))}class Vd extends Se{mount(){const{current:t}=this.node;t&&(this.unmount=tc(t,(s,n)=>(bo(this.node,n,"Start"),(r,{success:i})=>bo(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const un=new WeakMap,dn=new WeakMap,Md=e=>{const t=un.get(e.target);t&&t(e)},Dd=e=>{e.forEach(Md)};function Fd({root:e,...t}){const s=e||document;dn.has(s)||dn.set(s,{});const n=dn.get(s),r=JSON.stringify(t);return n[r]||(n[r]=new IntersectionObserver(Dd,{root:e,...t})),n[r]}function Rd(e,t,s){const n=Fd(t);return un.set(e,s),n.observe(e),()=>{un.delete(e),n.unobserve(e)}}const Ld={some:0,all:1};class Bd extends Se{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:i}=t,o={root:s?s.current:void 0,rootMargin:n,threshold:typeof r=="number"?r:Ld[r]},a=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,i&&!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 Rd(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:s}=this.node;["amount","margin","root"].some(Od(t,s))&&this.startObserver()}unmount(){}}function Od({viewport:e={}},{viewport:t={}}={}){return s=>e[s]!==t[s]}const Id={...Eu,...{inView:{Feature:Bd},tap:{Feature:Vd},focus:{Feature:Nd},hover:{Feature:jd}},...Pd,...{layout:{ProjectionNode:xo,MeasureLayout:Wi}}},wo=qc(Id,su),_d=({steps:e,plannerStatus:t,executionStatus:s,reportStatus:n})=>{const{t:r}=ce.useTranslation(),i=e??[],[o,a]=g.useState(new Set),[c,d]=g.useState(!1),u=y=>{a(v=>{const x=new Set(v);return x.has(y)?x.delete(y):x.add(y),x})},h=i.findIndex(y=>y.status!=="pending"),p=i.reduce((y,v,x)=>v.status!=="pending"?x:y,-1),m=i.length?i.some(y=>y.status==="in_progress")?"in_progress":i.every(y=>y.status==="done")?"done":i.some(y=>y.status==="done")?"in_progress":"pending":"pending",b=t??(i.length?"done":"pending"),A=s??m,C=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 ${b==="pending"?"text-[#999] dark:text-[#666]":"text-[#333] dark:text-[#E5E7EB]"}`,children:[b==="in_progress"?l.jsx("div",{className:"w-5 h-5 bg-white dark:bg-[#020817] border-2 border-blue-500 rounded-full flex items-center justify-center",children:l.jsx(j.Loader,{className:"w-3 h-3 text-blue-500 animate-spin"})}):l.jsx(j.PencilLine,{className:`w-4 h-4 ${b==="pending"?"text-[#999]":"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(j.List,{className:"w-4 h-4 text-[#1784FC]"}),r("deepResearch.steps.generatedPlans")]}),c?l.jsx(j.ChevronUp,{className:"w-4 h-4 text-gray-400"}):l.jsx(j.ChevronDown,{className:"w-4 h-4 text-gray-400"})]}),c&&i.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:i.map((y,v)=>l.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[l.jsxs("span",{className:"text-[#999] dark:text-[#A6A6A6]",children:[v+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 ${A==="pending"?"text-[#999] dark:text-[#666]":"text-[#333] dark:text-[#E5E7EB]"}`,children:[l.jsx(j.List,{className:"w-4 h-4 text-[#1784FC]"}),r("deepResearch.steps.executeTitle")]}),i.map((y,v)=>{const x=y.status!=="pending",N=v===h,P=v===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:[x&&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(j.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(j.Loader,{className:"w-3 h-3 text-blue-500 animate-spin"})}),D?l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(j.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(E=>E.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(j.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:["| ",E.query]})]})},E.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(E.id),children:[l.jsxs("div",{className:"flex items-center gap-2 text-sm overflow-hidden",children:[l.jsx(j.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:["| ",E.query]})]}),typeof E.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:E.resultCount}),o.has(E.id)?l.jsx(j.ChevronUp,{className:"w-4 h-4 text-[#999]"}):l.jsx(j.ChevronDown,{className:"w-4 h-4 text-[#999]"})]})]}),o.has(E.id)&&E.hits&&l.jsx("div",{className:"mt-2 space-y-2 pl-4",children:E.hits.map((S,R)=>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:()=>S.url&&window.open(S.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:S.title}),S.content&&l.jsx("div",{className:"text-xs text-[#999] dark:text-[#A6A6A6] mt-1 line-clamp-2",children:S.content})]})})},R))}),E.note&&l.jsx("p",{className:"text-[#999] dark:text-[#A6A6A6] text-sm mt-4 mb-2",children:E.note})]},E.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(j.FileText,{className:"w-4 h-4 text-[#1784FC]"}),l.jsx("span",{className:"text-[#333] dark:text-[#E5E7EB]",children:r("deepResearch.steps.optimizePlan")})]}),l.jsx(j.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 ${C==="pending"?"text-[#999] dark:text-[#666]":"text-[#333] dark:text-[#E5E7EB]"}`,children:[C==="in_progress"?l.jsx("div",{className:"w-5 h-5 bg-white dark:bg-[#020817] border-2 border-blue-500 rounded-full flex items-center justify-center",children:l.jsx(j.Loader,{className:"w-3 h-3 text-blue-500 animate-spin"})}):l.jsx(j.BookOpenText,{className:`w-4 h-4 ${C==="pending"?"text-[#999]":"text-[#1784FC]"}`}),r("deepResearch.steps.reportTitle")]})})]})]})},Ud=({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(j.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?Cn(t.created):""})]})]}),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(j.ExternalLink,{className:"w-5 h-5"})})]}),e&&l.jsx("div",{className:"cm-markdown",children:l.jsx(wt,{content:e})}),t?.url&&l.jsx("div",{className:"cm-markdown",children:l.jsx(wt,{url:s?s({url:t.url}):t.url})})]})},Wd=({hits:e,theme:t})=>{const s=g.useMemo(()=>{if(!e||!Array.isArray(e))return[];const n=new Map;for(const i of e){if(!i||typeof i!="object")continue;const o=typeof i.title=="string"?i.title:"";o&&(n.has(o)||n.set(o,i))}const r=[];return n.forEach(i=>{const o=typeof i.title=="string"?i.title:"",a=typeof i.url=="string"?i.url:void 0,c=typeof i.content=="string"?i.content:void 0,d={title:o,summary:c,url:a,source:typeof i.source=="string"?{name:i.source}:void 0,metadata:typeof i.score=="number"?{score:i.score}:void 0};r.push(d)}),r},[e]);return l.jsx("div",{className:"pb-8 max-w-[730px]",children:l.jsx(_o,{section:s,theme:t||"light",hideHeader:!0,onRecordClick:n=>{typeof n.url=="string"&&window.open(n.url)}})})},Ao=({open:e,onClose:t,defaultActiveTab:s,steps:n,plannerStatus:r,executionStatus:i,reportStatus:o,reportData:a,reportContent:c,searchHits:d,formatUrl:u,theme:h,showReportOnly:p=!1})=>{const{t:m}=ce.useTranslation(),[b,A]=g.useState(s||m("deepResearch.tab.steps"));return g.useEffect(()=>{p?A(m("deepResearch.tab.report")):s&&A(s)},[s,p,m]),l.jsx(dc,{children:e&&l.jsxs(l.Fragment,{children:[l.jsx(wo.div,{className:"fixed inset-0 z-999 bg-black/20",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:t}),l.jsxs(wo.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:[p?l.jsx("div",{className:"text-lg font-medium text-gray-900 dark:text-gray-100 mb-2",children:m("deepResearch.tab.report")}):l.jsx(yn.Segmented,{className:"cm-deep-research-segmented",value:b,style:{marginBottom:8},onChange:C=>A(C),options:[m("deepResearch.tab.report"),m("deepResearch.tab.steps"),m("deepResearch.tab.searchResults")]}),l.jsxs("div",{className:"flex items-center gap-2",children:[b===m("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(j.Download,{className:"w-4 h-4"}),l.jsx("span",{children:m("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(j.Share2,{className:"w-4 h-4"}),l.jsx("span",{children:m("deepResearch.button.share")})]})]}),l.jsx(yn.Button,{type:"text",onClick:t,className:"text-[#999] hover:text-gray-600 flex items-center justify-center",children:l.jsx(j.X,{className:"w-5 h-5"})})]})]}),l.jsxs("div",{className:"pt-6 flex-1 overflow-y-auto bg-white dark:bg-black",children:[b===m("deepResearch.tab.report")&&l.jsx(Ud,{content:c,data:a,formatUrl:u}),b===m("deepResearch.tab.steps")&&l.jsx(_d,{steps:n,plannerStatus:r,executionStatus:i,reportStatus:o}),b===m("deepResearch.tab.searchResults")&&l.jsx(Wd,{hits:d,theme:h})]})]})]})})},qd=e=>{const t={deepResearchPlans:[],deepResearchCurrentStepIndex:-1,deepResearchCurrentStepFinished:!1,deepResearchQuery:"",deepResearchResultCount:void 0,deepResearchPlannerStarted:!1,deepResearchResearcherStarted:!1,deepResearchReporterStarted:!1,deepResearchReporterFinished:!1,deepResearchReportData:void 0,deepResearchSearchMap:{}};return e.forEach(s=>{if(s.chunk_type==="research_planner_start"){t.deepResearchPlans=[],t.deepResearchCurrentStepIndex=-1,t.deepResearchCurrentStepFinished=!1,t.deepResearchQuery="",t.deepResearchResultCount=void 0,t.deepResearchPlannerStarted=!0,t.deepResearchResearcherStarted=!1,t.deepResearchReporterStarted=!1,t.deepResearchReporterFinished=!1,t.deepResearchReportData=void 0,t.deepResearchSearchMap={};return}if(s.chunk_type==="research_planner_end"){if(typeof s.message_chunk=="string")try{const n=JSON.parse(s.message_chunk);if(Array.isArray(n)){const r=n.map(i=>String(i));t.deepResearchPlans=r,t.deepResearchCurrentStepIndex=r.length>0?0:-1}t.deepResearchPlannerStarted=!1}catch(n){console.error(n)}return}if(s.chunk_type==="research_researcher_start"){if(typeof s.message_chunk=="string"&&s.message_chunk)try{const n=JSON.parse(s.message_chunk),r=typeof n?.plan=="string"?n.plan:"";if(r){t.deepResearchResearcherStarted=!0,t.deepResearchCurrentStepFinished=!1;let i=t.deepResearchPlans.findIndex(o=>o===r);i===-1&&(t.deepResearchPlans.push(r),i=t.deepResearchPlans.length-1),t.deepResearchCurrentStepIndex=i}}catch(n){console.error(n)}return}if(s.chunk_type==="research_researcher_step_start"){if(typeof s.message_chunk=="string"&&s.message_chunk)try{const n=JSON.parse(s.message_chunk),r=typeof n?.plan=="string"?n.plan:"",i=n?.step?.payload?.query;if(r&&!t.deepResearchPlans.includes(r)&&(t.deepResearchPlans.push(r),t.deepResearchCurrentStepIndex===-1&&(t.deepResearchCurrentStepIndex=t.deepResearchPlans.length-1)),typeof i=="string"&&(t.deepResearchQuery=i),t.deepResearchResultCount=void 0,r&&typeof i=="string"){const o=t.deepResearchSearchMap[r]??{};t.deepResearchSearchMap[r]={...o,query:i}}}catch(n){console.error(n)}return}if(s.chunk_type==="research_researcher_step_end"){if(typeof s.message_chunk=="string"&&s.message_chunk)try{const n=JSON.parse(s.message_chunk),r=typeof n?.plan=="string"?n.plan:"",i=n?.step?.payload?.hits;if(Array.isArray(i)&&(t.deepResearchResultCount=i.length,r)){const o=t.deepResearchSearchMap[r]??{};t.deepResearchSearchMap[r]={...o,resultCount:i.length,hits:i}}}catch(n){console.error(n)}return}if(s.chunk_type==="research_researcher_end"){t.deepResearchQuery="",t.deepResearchCurrentStepFinished=!0;return}if(s.chunk_type==="research_reporter_start"){t.deepResearchReporterStarted=!0;return}if(s.chunk_type==="research_reporter_end"&&(t.deepResearchReporterStarted=!0,t.deepResearchReporterFinished=!0,typeof s.message_chunk=="string"&&s.message_chunk))try{const n=JSON.parse(s.message_chunk);t.deepResearchReportData=n}catch(n){console.error(n)}}),t},Kd=({ChunkData:e=[],question:t,formatUrl:s,theme:n})=>{const{t:r}=ce.useTranslation(),[i,o]=g.useState(!1),[a,c]=g.useState(r("deepResearch.tab.steps"));console.log(111111111,e);const{deepResearchPlans:d,deepResearchCurrentStepIndex:u,deepResearchCurrentStepFinished:h,deepResearchQuery:p,deepResearchResultCount:m,deepResearchPlannerStarted:b,deepResearchResearcherStarted:A,deepResearchReporterStarted:C,deepResearchReporterFinished:y,deepResearchReportData:v,deepResearchSearchMap:x}=g.useMemo(()=>qd(e),[e]),N=d.length>0&&u>=0&&u<d.length,P=N?d[u]:"",D=d.length>0?1:0,E=N?(u+1)/d.length:0,S=y?1:C?.5:0,R=(D+E+S)/3,U=g.useMemo(()=>{if(y)return typeof m=="number"?`深度研究完成 · 找到 ${m} 条相关结果`:"深度研究完成";if(C)return"正在编写研究报告";if(A)return"正在执行研究计划";if(d.length>0)return"正在规划研究计划"},[y,m,C,A,d.length]),X=g.useMemo(()=>d.length?d.map((O,Y)=>{let J="pending";y||C?J="done":A&&(Y<u?J="done":Y===u&&(J=h?"done":"in_progress"));const ie=x[O],Ge=ie?.query?[{id:`step-${Y+1}-search-1`,query:ie.query,resultCount:ie.resultCount,status:typeof ie.resultCount=="number"?"done":"searching",hits:ie.hits}]:void 0;return{id:`step-${Y+1}`,title:O,status:J,searches:Ge,showOptimizePlan:!1}}):[],[d,y,C,A,x,u,h]),Z=g.useMemo(()=>{const O=[];return Object.values(x).forEach(Y=>{Y.hits&&Array.isArray(Y.hits)&&O.push(...Y.hits)}),O},[x]),ae=d.length?"done":b?"in_progress":"pending",$=g.useMemo(()=>X.length?X.some(O=>O.status==="in_progress")?"in_progress":X.some(O=>O.status==="done")?"done":"pending":"pending",[X]),ue=y?"done":C?"in_progress":"pending",ee=g.useMemo(()=>typeof R!="number"||Number.isNaN(R)||R<0?0:R>1?1:R,[R]),B=g.useMemo(()=>U||(ee>=1?typeof m=="number"?r("deepResearch.status.completedWithCount",{count:m}):r("deepResearch.status.completed"):ee>0?r("deepResearch.status.running"):r("deepResearch.status.preparing")),[U,ee,m,r]);return e.length?l.jsxs(l.Fragment,{children:[l.jsx("div",{className:"w-full my-3 cursor-pointer",onClick:()=>{c(r("deepResearch.tab.steps")),o(!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(j.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:P||"-"})]}),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 flex-1",children:[ee>=1?l.jsx(j.Check,{className:"h-4 w-4 text-[#22C55E] shrink-0"}):l.jsx(j.Loader,{className:"h-4 w-4 animate-spin text-[#148EFF] shrink-0"}),l.jsxs("div",{className:"flex min-w-0 items-center flex-1",children:[l.jsx("span",{className:"whitespace-nowrap shrink-0",children:B}),l.jsxs("span",{className:"text-[#999] dark:text-[#A6A6A6] truncate ml-1",children:["| ",p||t]})]})]}),l.jsxs("div",{className:"ml-2 flex items-center gap-2 shrink-0",children:[ee<1&&typeof m=="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:m}):null,ee>=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:O=>{O.stopPropagation(),c(r("deepResearch.tab.report")),o(!0)},children:r("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 ${ee>=1?"bg-[#00C868]":"bg-[#1784FC]"}`,style:{width:`${ee*100}%`}})}),l.jsx("div",{className:"flex items-center justify-center cursor-pointer hover:opacity-80 transition-opacity",children:ee>=1?l.jsx(j.Check,{className:"h-4 w-4 text-[#22C55E]"}):l.jsx(j.CirclePause,{className:"h-4 w-4 text-[#1784FC]"})})]})]})}),l.jsx(Ao,{open:i,onClose:()=>o(!1),defaultActiveTab:a,steps:X,plannerStatus:ae,executionStatus:$,reportStatus:ue,reportData:v,searchHits:Z,formatUrl:s,theme:n})]}):null},Yd=({payload:e,formatUrl:t})=>{const[s,n]=g.useState(!1);return!e?.title||!e?.url?null:l.jsxs(l.Fragment,{children:[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 cursor-pointer transition-colors hover:bg-gray-100 dark:hover:bg-gray-800",onClick:()=>n(!0),children:[l.jsx("div",{className:"shrink-0",children:l.jsx(j.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:Cn(e.created)})]}),e.url&&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",onClick:r=>r.stopPropagation(),children:l.jsx(j.ExternalLink,{className:"w-5 h-5"})})]})}),l.jsx(Ao,{open:s,onClose:()=>n(!1),reportContent:e.content,reportData:e,formatUrl:t,showReportOnly:!0})]})},zd=["research_planner_start","research_planner_progress","research_planner_end","research_researcher_start","research_researcher_step_start","research_researcher_step_end","research_researcher_end","research_reporter_start","research_reporter_end"];function Gd(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 Jd=g.memo(g.forwardRef(function({message:t,isTyping:s,onResend:n,hide_assistant:r=!1,rootClassName:i,actionClassName:o,actionIconSize:a,copyButtonId:c,formatUrl:d,theme:u,locale:h,assistantList:p,currentAssistant:m},b){const{t:A,i18n:C}=ce.useTranslation(),y=Gd(u),[v,x]=g.useState({}),{data:{query_intent:N,tools:P,fetch_source:D,pick_source:E,deep_read:S,think:R,response:U,deepResearch:X},handlers:Z,clearAllChunkData:ae}=ua(),[$,ue]=g.useState({query_intent:!1,tools:!1,fetch_source:!1,pick_source:!1,deep_read:!1,think:!1,response:!1,deepResearch:!1}),ee=g.useRef(!1);g.useImperativeHandle(b,()=>({addChunk:M=>{if(ue(()=>({query_intent:!1,tools:!1,fetch_source:!1,pick_source:!1,deep_read:!1,think:!1,response:!1,deepResearch:!1,[M.chunk_type||""]:!0})),M.chunk_type!=="reply_start")if(M.chunk_type==="query_intent")Z.deal_query_intent(M);else if(M.chunk_type==="tools")Z.deal_tools(M);else if(M.chunk_type==="fetch_source")Z.deal_fetch_source(M);else if(M.chunk_type==="pick_source")Z.deal_pick_source(M);else if(M.chunk_type==="deep_read")Z.deal_deep_read(M);else if(M.chunk_type==="think")Z.deal_think(M);else if(M.chunk_type==="response"){const Pe=M.message_chunk;if(typeof Pe=="string"){if(Pe.includes("<think>")||Pe.includes("<think>")){ee.current=!0;return}else if(Pe.includes("</think>")||Pe.includes("</think>")){ee.current=!1;return}ee.current?Z.deal_think({...M,chunk_type:"think"}):Z.deal_response(M)}}else zd.includes(M.chunk_type||"")?Z.deal_deep_research(M):M.chunk_type},reset:()=>{ae(),ue({query_intent:!1,tools:!1,fetch_source:!1,pick_source:!1,deep_read:!1,think:!1,response:!1,deepResearch:!1}),ee.current=!1}}));const B=t?._source?.type==="assistant",O=t?._source?.assistant_id,Y=t?._source?.assistant_item;g.useEffect(()=>{h&&C.language!==h&&C.changeLanguage(h)},[h,C]),g.useEffect(()=>{if(Y){x(Y);return}if(B&&O&&Array.isArray(p)){x(p.find(M=>M._id===O)??{});return}x(m)},[B,Y,O,p,m]);const J=t?._source,ie=J?.message||"",Ge=J?.payload,qt=J?.attachments??[],Ee=J?.details||[],gt=J?.question||"",yt=s===!1&&(ie||U?.message_chunk),[xt,Je]=g.useState([]),vt=M=>{Je(M)},Qe=()=>B?l.jsxs(l.Fragment,{children:[l.jsx(Jo,{Detail:Ee.find(M=>M.type==="query_intent"),ChunkData:N,getSuggestion:vt,loading:$?.query_intent}),l.jsx(Qo,{Detail:Ee.find(M=>M.type==="tools"),ChunkData:P,loading:$?.tools}),l.jsx(Zo,{Detail:Ee.find(M=>M.type==="fetch_source"),ChunkData:D,loading:$?.fetch_source,formatUrl:d}),l.jsx(ea,{Detail:Ee.find(M=>M.type==="pick_source"),ChunkData:E,loading:$?.pick_source}),l.jsx(sa,{Detail:Ee.find(M=>M.type==="deep_read"),ChunkData:S,loading:$?.deep_read}),l.jsx(na,{Detail:Ee.find(M=>M.type==="think"),ChunkData:R,loading:$?.think}),l.jsx("div",{className:"cm-markdown",children:l.jsx(wt,{content:ie||U?.message_chunk||""})}),l.jsx(Yd,{payload:Ge,formatUrl:d}),l.jsx(Kd,{ChunkData:X,question:gt,formatUrl:d,theme:y}),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"}),yt&&l.jsx(ia,{id:t._id??"",content:ie||U?.message_chunk||"",question:gt,actionClassName:o,actionIconSize:a,copyButtonId:c,onResend:()=>{n&&n(gt)}}),!s&&l.jsx(oa,{suggestions:xt,onSelect:M=>n&&n(M)})]}):l.jsx(la,{message:ie,attachments:qt});return l.jsx("div",{className:Ze("w-full py-8 flex",[B?"justify-start":"justify-end"],y==="dark"&&"dark",i),children:l.jsx("div",{className:`w-full px-4 flex gap-4 ${B?"w-full":"flex-row-reverse"}`,children:l.jsxs("div",{className:`w-full space-y-2 ${B?"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:[B?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:v?._source?.icon?.startsWith("font_")?l.jsx(ca,{name:v._source.icon,className:"w-4 h-4"}):l.jsx("img",{src:zo,className:"w-4 h-4",alt:A("assistant.message.logo")})}):null,B?v?._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:Qe()})})]})})})})),Qd=g.memo(g.forwardRef((e,t)=>l.jsx(ce.I18nextProvider,{i18n:wn,children:l.jsx(Jd,{...e,ref:t})})));return zt.ChatMessage=Qd,Object.defineProperty(zt,Symbol.toStringTag,{value:"Module"}),zt})({},React,ReactI18next,clsx,i18n,Markdown,LucideReact,ahooks,attachments,antd,SearchResults);
|