ai-chatbot-widget 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- var ChatbotWidget=function(qe,vt,Fl){"use strict";var Dv=Object.defineProperty;var Mv=(qe,vt,Fl)=>vt in qe?Dv(qe,vt,{enumerable:!0,configurable:!0,writable:!0,value:Fl}):qe[vt]=Fl;var mt=(qe,vt,Fl)=>Mv(qe,typeof vt!="symbol"?vt+"":vt,Fl);var ir;var Tc=document.createElement("style");Tc.textContent=`/*! tailwindcss v4.1.10 | 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-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--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-space-x-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--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-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease: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-red-500:oklch(63.7% .237 25.331);--color-cyan-400:oklch(78.9% .154 211.53);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-purple-100:oklch(94.6% .033 307.174);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-500:oklch(62.7% .265 303.9);--color-purple-600:oklch(55.8% .288 302.321);--color-purple-700:oklch(49.6% .265 301.924);--color-purple-900:oklch(38.1% .176 304.987);--color-pink-200:oklch(89.9% .061 343.231);--color-pink-500:oklch(65.6% .241 354.308);--color-pink-600:oklch(59.2% .249 .584);--color-slate-400:oklch(70.4% .04 256.788);--color-slate-600:oklch(44.6% .043 257.281);--color-slate-700:oklch(37.2% .044 257.287);--color-slate-800:oklch(27.9% .041 260.031);--color-slate-900:oklch(20.8% .042 265.755);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--font-weight-semibold:600;--font-weight-bold:700;--leading-relaxed:1.625;--radius-xl:.75rem;--radius-2xl:1rem;--radius-4xl:2rem;--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--animate-bounce:bounce 1s infinite;--blur-xl:24px;--blur-3xl:64px;--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%;-moz-tab-size:4;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}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance: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{.pointer-events-none{pointer-events:none}.absolute{position:absolute}.fixed{position:fixed}.-top-2{top:calc(var(--spacing)*-2)}.right-0{right:calc(var(--spacing)*0)}.right-6{right:calc(var(--spacing)*6)}.bottom-6{bottom:calc(var(--spacing)*6)}.bottom-16{bottom:calc(var(--spacing)*16)}.-left-2{left:calc(var(--spacing)*-2)}.z-50{z-index:50}.mt-0\\.5{margin-top:calc(var(--spacing)*.5)}.mr-4{margin-right:calc(var(--spacing)*4)}.ml-4{margin-left:calc(var(--spacing)*4)}.flex{display:flex}.h-2{height:calc(var(--spacing)*2)}.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-14{height:calc(var(--spacing)*14)}.h-\\[700px\\]{height:700px}.h-full{height:100%}.w-2{width:calc(var(--spacing)*2)}.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-14{width:calc(var(--spacing)*14)}.w-96{width:calc(var(--spacing)*96)}.max-w-\\[80\\%\\]{max-width:80%}.max-w-\\[100\\%\\]{max-width:100%}.flex-1{flex:1}.flex-shrink-0{flex-shrink:0}.origin-bottom-right{transform-origin:100% 100%}.scale-0{--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.rotate-0{rotate:none}.rotate-180{rotate:180deg}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-bounce{animation:var(--animate-bounce)}.animate-pulse{animation:var(--animate-pulse)}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.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-2{gap:calc(var(--spacing)*2)}: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-x-1>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*1)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-3>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*3)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-x-reverse)))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-4xl{border-radius:var(--radius-4xl)}.rounded-full{border-radius:3.40282e38px}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-purple-500\\/20{border-color:#ac4bff33}@supports (color:color-mix(in lab,red,red)){.border-purple-500\\/20{border-color:color-mix(in oklab,var(--color-purple-500)20%,transparent)}}.border-purple-500\\/30{border-color:#ac4bff4d}@supports (color:color-mix(in lab,red,red)){.border-purple-500\\/30{border-color:color-mix(in oklab,var(--color-purple-500)30%,transparent)}}.bg-black\\/50{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.bg-black\\/50{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}.bg-black\\/80{background-color:#000c}@supports (color:color-mix(in lab,red,red)){.bg-black\\/80{background-color:color-mix(in oklab,var(--color-black)80%,transparent)}}.bg-black\\/90{background-color:#000000e6}@supports (color:color-mix(in lab,red,red)){.bg-black\\/90{background-color:color-mix(in oklab,var(--color-black)90%,transparent)}}.bg-purple-400{background-color:var(--color-purple-400)}.bg-purple-500{background-color:var(--color-purple-500)}.bg-slate-800\\/50{background-color:#1d293d80}@supports (color:color-mix(in lab,red,red)){.bg-slate-800\\/50{background-color:color-mix(in oklab,var(--color-slate-800)50%,transparent)}}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-gradient-to-br{--tw-gradient-position:to bottom right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-r{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-black\\/80{--tw-gradient-from:#000c}@supports (color:color-mix(in lab,red,red)){.from-black\\/80{--tw-gradient-from:color-mix(in oklab,var(--color-black)80%,transparent)}}.from-black\\/80{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-pink-500{--tw-gradient-from:var(--color-pink-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-purple-500{--tw-gradient-from:var(--color-purple-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-purple-600{--tw-gradient-from:var(--color-purple-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-slate-700{--tw-gradient-from:var(--color-slate-700);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-slate-900{--tw-gradient-from:var(--color-slate-900);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.via-purple-900{--tw-gradient-via:var(--color-purple-900);--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.to-black\\/90{--tw-gradient-to:#000000e6}@supports (color:color-mix(in lab,red,red)){.to-black\\/90{--tw-gradient-to:color-mix(in oklab,var(--color-black)90%,transparent)}}.to-black\\/90{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-blue-600{--tw-gradient-to:var(--color-blue-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-pink-500{--tw-gradient-to:var(--color-pink-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-red-500{--tw-gradient-to:var(--color-red-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-slate-600{--tw-gradient-to:var(--color-slate-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-slate-900{--tw-gradient-to:var(--color-slate-900);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.p-1{padding:calc(var(--spacing)*1)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.px-4{padding-inline:calc(var(--spacing)*4)}.py-2{padding-block:calc(var(--spacing)*2)}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.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-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-cyan-400{color:var(--color-cyan-400)}.text-pink-200{color:var(--color-pink-200)}.text-purple-100{color:var(--color-purple-100)}.text-purple-500{color:var(--color-purple-500)}.text-white{color:var(--color-white)}.placeholder-slate-400::placeholder{color:var(--color-slate-400)}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px 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)}.backdrop-blur-3xl{--tw-backdrop-blur:blur(var(--blur-3xl));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-blur-xl{--tw-backdrop-blur:blur(var(--blur-xl));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.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,visibility,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))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}@media (hover:hover){.hover\\:scale-98:hover{--tw-scale-x:98%;--tw-scale-y:98%;--tw-scale-z:98%;scale:var(--tw-scale-x)var(--tw-scale-y)}.hover\\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x)var(--tw-scale-y)}.hover\\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.hover\\:bg-white\\/20:hover{background-color:#fff3}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-white\\/20:hover{background-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.hover\\:from-purple-600:hover{--tw-gradient-from:var(--color-purple-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.hover\\:from-purple-700:hover{--tw-gradient-from:var(--color-purple-700);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.hover\\:to-blue-700:hover{--tw-gradient-to:var(--color-blue-700);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.hover\\:to-pink-600:hover{--tw-gradient-to:var(--color-pink-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}}.focus\\:border-transparent:focus{border-color:#0000}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-purple-500:focus{--tw-ring-color:var(--color-purple-500)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.active\\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x)var(--tw-scale-y)}.disabled\\:scale-100:disabled{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:from-slate-600:disabled{--tw-gradient-from:var(--color-slate-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.disabled\\:to-slate-600:disabled{--tw-gradient-to:var(--color-slate-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}}.animate-fade-in{animation:.3s ease-out forwards fade-in}.scrollbar-thin{scrollbar-width:thin}.scrollbar-thumb-purple-500\\/50::-webkit-scrollbar-thumb{background-color:#a855f780;border-radius:9999px}.scrollbar-track-transparent::-webkit-scrollbar-track{background-color:#0000}.scrollbar-thin::-webkit-scrollbar{width:6px}.message{flex-direction:column;gap:4px;display:flex}.message a{text-underline-offset:2px;text-decoration:underline}.message h1,.message h2,.message h3,.message h4,.message h5,.message h6{font-weight:700}.message ol,.message ul{margin-left:5px;list-style:outside}.message b,.message strong{font-weight:700}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@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-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@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-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}}
2
- /*$vite$:1*/`,document.head.appendChild(Tc);function kp(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Mu={exports:{}},La={};/**
1
+ var ChatbotWidget=function(q,F,C){"use strict";var Fi=Object.defineProperty;var Mi=(q,F,C)=>F in q?Fi(q,F,{enumerable:!0,configurable:!0,writable:!0,value:C}):q[F]=C;var R=(q,F,C)=>Mi(q,typeof F!="symbol"?F+"":F,C);var tt;var ot=document.createElement("style");ot.textContent=`/*! tailwindcss v4.1.10 | 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-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--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-space-x-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--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-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease: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-red-500:oklch(63.7% .237 25.331);--color-cyan-400:oklch(78.9% .154 211.53);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-purple-100:oklch(94.6% .033 307.174);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-500:oklch(62.7% .265 303.9);--color-purple-600:oklch(55.8% .288 302.321);--color-purple-700:oklch(49.6% .265 301.924);--color-purple-900:oklch(38.1% .176 304.987);--color-pink-200:oklch(89.9% .061 343.231);--color-pink-500:oklch(65.6% .241 354.308);--color-pink-600:oklch(59.2% .249 .584);--color-slate-400:oklch(70.4% .04 256.788);--color-slate-600:oklch(44.6% .043 257.281);--color-slate-700:oklch(37.2% .044 257.287);--color-slate-800:oklch(27.9% .041 260.031);--color-slate-900:oklch(20.8% .042 265.755);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--font-weight-semibold:600;--font-weight-bold:700;--leading-relaxed:1.625;--radius-xl:.75rem;--radius-2xl:1rem;--radius-4xl:2rem;--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--animate-bounce:bounce 1s infinite;--blur-xl:24px;--blur-3xl:64px;--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%;-moz-tab-size:4;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}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance: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{.pointer-events-none{pointer-events:none}.absolute{position:absolute}.fixed{position:fixed}.-top-2{top:calc(var(--spacing)*-2)}.right-0{right:calc(var(--spacing)*0)}.right-6{right:calc(var(--spacing)*6)}.bottom-6{bottom:calc(var(--spacing)*6)}.bottom-16{bottom:calc(var(--spacing)*16)}.-left-2{left:calc(var(--spacing)*-2)}.z-50{z-index:50}.mt-0\\.5{margin-top:calc(var(--spacing)*.5)}.mr-4{margin-right:calc(var(--spacing)*4)}.ml-4{margin-left:calc(var(--spacing)*4)}.flex{display:flex}.h-2{height:calc(var(--spacing)*2)}.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-14{height:calc(var(--spacing)*14)}.h-\\[700px\\]{height:700px}.h-full{height:100%}.w-2{width:calc(var(--spacing)*2)}.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-14{width:calc(var(--spacing)*14)}.w-96{width:calc(var(--spacing)*96)}.max-w-\\[80\\%\\]{max-width:80%}.max-w-\\[100\\%\\]{max-width:100%}.flex-1{flex:1}.flex-shrink-0{flex-shrink:0}.origin-bottom-right{transform-origin:100% 100%}.scale-0{--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.rotate-0{rotate:none}.rotate-180{rotate:180deg}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-bounce{animation:var(--animate-bounce)}.animate-pulse{animation:var(--animate-pulse)}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.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-2{gap:calc(var(--spacing)*2)}: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-x-1>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*1)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-3>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*3)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-x-reverse)))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-4xl{border-radius:var(--radius-4xl)}.rounded-full{border-radius:3.40282e38px}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-purple-500\\/20{border-color:#ac4bff33}@supports (color:color-mix(in lab,red,red)){.border-purple-500\\/20{border-color:color-mix(in oklab,var(--color-purple-500)20%,transparent)}}.border-purple-500\\/30{border-color:#ac4bff4d}@supports (color:color-mix(in lab,red,red)){.border-purple-500\\/30{border-color:color-mix(in oklab,var(--color-purple-500)30%,transparent)}}.bg-black\\/50{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.bg-black\\/50{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}.bg-black\\/80{background-color:#000c}@supports (color:color-mix(in lab,red,red)){.bg-black\\/80{background-color:color-mix(in oklab,var(--color-black)80%,transparent)}}.bg-black\\/90{background-color:#000000e6}@supports (color:color-mix(in lab,red,red)){.bg-black\\/90{background-color:color-mix(in oklab,var(--color-black)90%,transparent)}}.bg-purple-400{background-color:var(--color-purple-400)}.bg-purple-500{background-color:var(--color-purple-500)}.bg-slate-800\\/50{background-color:#1d293d80}@supports (color:color-mix(in lab,red,red)){.bg-slate-800\\/50{background-color:color-mix(in oklab,var(--color-slate-800)50%,transparent)}}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-gradient-to-br{--tw-gradient-position:to bottom right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-r{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-black\\/80{--tw-gradient-from:#000c}@supports (color:color-mix(in lab,red,red)){.from-black\\/80{--tw-gradient-from:color-mix(in oklab,var(--color-black)80%,transparent)}}.from-black\\/80{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-pink-500{--tw-gradient-from:var(--color-pink-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-purple-500{--tw-gradient-from:var(--color-purple-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-purple-600{--tw-gradient-from:var(--color-purple-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-slate-700{--tw-gradient-from:var(--color-slate-700);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-slate-900{--tw-gradient-from:var(--color-slate-900);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.via-purple-900{--tw-gradient-via:var(--color-purple-900);--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.to-black\\/90{--tw-gradient-to:#000000e6}@supports (color:color-mix(in lab,red,red)){.to-black\\/90{--tw-gradient-to:color-mix(in oklab,var(--color-black)90%,transparent)}}.to-black\\/90{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-blue-600{--tw-gradient-to:var(--color-blue-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-pink-500{--tw-gradient-to:var(--color-pink-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-red-500{--tw-gradient-to:var(--color-red-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-slate-600{--tw-gradient-to:var(--color-slate-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-slate-900{--tw-gradient-to:var(--color-slate-900);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.p-1{padding:calc(var(--spacing)*1)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.px-4{padding-inline:calc(var(--spacing)*4)}.py-2{padding-block:calc(var(--spacing)*2)}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.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-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-cyan-400{color:var(--color-cyan-400)}.text-pink-200{color:var(--color-pink-200)}.text-purple-100{color:var(--color-purple-100)}.text-purple-500{color:var(--color-purple-500)}.text-white{color:var(--color-white)}.placeholder-slate-400::placeholder{color:var(--color-slate-400)}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px 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)}.backdrop-blur-3xl{--tw-backdrop-blur:blur(var(--blur-3xl));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-blur-xl{--tw-backdrop-blur:blur(var(--blur-xl));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.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,visibility,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))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}@media (hover:hover){.hover\\:scale-98:hover{--tw-scale-x:98%;--tw-scale-y:98%;--tw-scale-z:98%;scale:var(--tw-scale-x)var(--tw-scale-y)}.hover\\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x)var(--tw-scale-y)}.hover\\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.hover\\:bg-white\\/20:hover{background-color:#fff3}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-white\\/20:hover{background-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.hover\\:from-purple-600:hover{--tw-gradient-from:var(--color-purple-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.hover\\:from-purple-700:hover{--tw-gradient-from:var(--color-purple-700);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.hover\\:to-blue-700:hover{--tw-gradient-to:var(--color-blue-700);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.hover\\:to-pink-600:hover{--tw-gradient-to:var(--color-pink-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}}.focus\\:border-transparent:focus{border-color:#0000}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-purple-500:focus{--tw-ring-color:var(--color-purple-500)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.active\\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x)var(--tw-scale-y)}.disabled\\:scale-100:disabled{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:from-slate-600:disabled{--tw-gradient-from:var(--color-slate-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.disabled\\:to-slate-600:disabled{--tw-gradient-to:var(--color-slate-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}}.animate-fade-in{animation:.3s ease-out forwards fade-in}.scrollbar-thin{scrollbar-width:thin}.scrollbar-thumb-purple-500\\/50::-webkit-scrollbar-thumb{background-color:#a855f780;border-radius:9999px}.scrollbar-track-transparent::-webkit-scrollbar-track{background-color:#0000}.scrollbar-thin::-webkit-scrollbar{width:6px}.message{flex-direction:column;gap:4px;display:flex}.message a{text-underline-offset:2px;text-decoration:underline}.message h1,.message h2,.message h3,.message h4,.message h5,.message h6{font-weight:700}.message ol,.message ul{margin-left:5px;list-style:outside}.message b,.message strong{font-weight:700}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@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-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@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-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}}
2
+ /*$vite$:1*/`,document.head.appendChild(ot);var $e={exports:{}},te={};/**
3
3
  * @license React
4
4
  * react-jsx-runtime.production.js
5
5
  *
@@ -7,145 +7,121 @@ var ChatbotWidget=function(qe,vt,Fl){"use strict";var Dv=Object.defineProperty;v
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 Ac;function Op(){if(Ac)return La;Ac=1;var r=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(c,o,h){var p=null;if(h!==void 0&&(p=""+h),o.key!==void 0&&(p=""+o.key),"key"in o){h={};for(var g in o)g!=="key"&&(h[g]=o[g])}else h=o;return o=h.ref,{$$typeof:r,type:c,key:p,ref:o!==void 0?o:null,props:h}}return La.Fragment=i,La.jsx=s,La.jsxs=s,La}var Ec;function _p(){return Ec||(Ec=1,Mu.exports=Op()),Mu.exports}var X=_p(),Uu={exports:{}},Ya={},Nu={exports:{}},Bu={};/**
11
- * @license React
12
- * scheduler.production.js
13
- *
14
- * Copyright (c) Meta Platforms, Inc. and affiliates.
15
- *
16
- * This source code is licensed under the MIT license found in the
17
- * LICENSE file in the root directory of this source tree.
18
- */var zc;function Dp(){return zc||(zc=1,function(r){function i(N,U){var q=N.length;N.push(U);t:for(;0<q;){var rt=q-1>>>1,Tt=N[rt];if(0<o(Tt,U))N[rt]=U,N[q]=Tt,q=rt;else break t}}function s(N){return N.length===0?null:N[0]}function c(N){if(N.length===0)return null;var U=N[0],q=N.pop();if(q!==U){N[0]=q;t:for(var rt=0,Tt=N.length,Ae=Tt>>>1;rt<Ae;){var Vt=2*(rt+1)-1,At=N[Vt],I=Vt+1,Kt=N[I];if(0>o(At,q))I<Tt&&0>o(Kt,At)?(N[rt]=Kt,N[I]=q,rt=I):(N[rt]=At,N[Vt]=q,rt=Vt);else if(I<Tt&&0>o(Kt,q))N[rt]=Kt,N[I]=q,rt=I;else break t}}return U}function o(N,U){var q=N.sortIndex-U.sortIndex;return q!==0?q:N.id-U.id}if(r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;r.unstable_now=function(){return h.now()}}else{var p=Date,g=p.now();r.unstable_now=function(){return p.now()-g}}var S=[],b=[],y=1,R=null,D=3,Y=!1,M=!1,B=!1,H=!1,F=typeof setTimeout=="function"?setTimeout:null,at=typeof clearTimeout=="function"?clearTimeout:null,nt=typeof setImmediate<"u"?setImmediate:null;function ut(N){for(var U=s(b);U!==null;){if(U.callback===null)c(b);else if(U.startTime<=N)c(b),U.sortIndex=U.expirationTime,i(S,U);else break;U=s(b)}}function ht(N){if(B=!1,ut(N),!M)if(s(S)!==null)M=!0,yt||(yt=!0,Zt());else{var U=s(b);U!==null&&Ml(ht,U.startTime-N)}}var yt=!1,pt=-1,le=5,J=-1;function Ot(){return H?!0:!(r.unstable_now()-J<le)}function de(){if(H=!1,yt){var N=r.unstable_now();J=N;var U=!0;try{t:{M=!1,B&&(B=!1,at(pt),pt=-1),Y=!0;var q=D;try{e:{for(ut(N),R=s(S);R!==null&&!(R.expirationTime>N&&Ot());){var rt=R.callback;if(typeof rt=="function"){R.callback=null,D=R.priorityLevel;var Tt=rt(R.expirationTime<=N);if(N=r.unstable_now(),typeof Tt=="function"){R.callback=Tt,ut(N),U=!0;break e}R===s(S)&&c(S),ut(N)}else c(S);R=s(S)}if(R!==null)U=!0;else{var Ae=s(b);Ae!==null&&Ml(ht,Ae.startTime-N),U=!1}}break t}finally{R=null,D=q,Y=!1}U=void 0}}finally{U?Zt():yt=!1}}}var Zt;if(typeof nt=="function")Zt=function(){nt(de)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,Dl=he.port2;he.port1.onmessage=de,Zt=function(){Dl.postMessage(null)}}else Zt=function(){F(de,0)};function Ml(N,U){pt=F(function(){N(r.unstable_now())},U)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(N){N.callback=null},r.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):le=0<N?Math.floor(1e3/N):5},r.unstable_getCurrentPriorityLevel=function(){return D},r.unstable_next=function(N){switch(D){case 1:case 2:case 3:var U=3;break;default:U=D}var q=D;D=U;try{return N()}finally{D=q}},r.unstable_requestPaint=function(){H=!0},r.unstable_runWithPriority=function(N,U){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var q=D;D=N;try{return U()}finally{D=q}},r.unstable_scheduleCallback=function(N,U,q){var rt=r.unstable_now();switch(typeof q=="object"&&q!==null?(q=q.delay,q=typeof q=="number"&&0<q?rt+q:rt):q=rt,N){case 1:var Tt=-1;break;case 2:Tt=250;break;case 5:Tt=1073741823;break;case 4:Tt=1e4;break;default:Tt=5e3}return Tt=q+Tt,N={id:y++,callback:U,priorityLevel:N,startTime:q,expirationTime:Tt,sortIndex:-1},q>rt?(N.sortIndex=q,i(b,N),s(S)===null&&N===s(b)&&(B?(at(pt),pt=-1):B=!0,Ml(ht,q-rt))):(N.sortIndex=Tt,i(S,N),M||Y||(M=!0,yt||(yt=!0,Zt()))),N},r.unstable_shouldYield=Ot,r.unstable_wrapCallback=function(N){var U=D;return function(){var q=D;D=U;try{return N.apply(this,arguments)}finally{D=q}}}}(Bu)),Bu}var Rc;function Mp(){return Rc||(Rc=1,Nu.exports=Dp()),Nu.exports}var kc;function Up(){if(kc)return Ya;kc=1;var r={env:{NODE_ENV:"production"}};/**
19
- * @license React
20
- * react-dom-client.production.js
21
- *
22
- * Copyright (c) Meta Platforms, Inc. and affiliates.
23
- *
24
- * This source code is licensed under the MIT license found in the
25
- * LICENSE file in the root directory of this source tree.
26
- */var i=Mp(),s=vt,c=Fl;function o(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)e+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function h(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function p(t){var e=t,l=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(l=e.return),t=e.return;while(t)}return e.tag===3?l:null}function g(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function S(t){if(p(t)!==t)throw Error(o(188))}function b(t){var e=t.alternate;if(!e){if(e=p(t),e===null)throw Error(o(188));return e!==t?null:t}for(var l=t,a=e;;){var n=l.return;if(n===null)break;var u=n.alternate;if(u===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===l)return S(n),t;if(u===a)return S(n),e;u=u.sibling}throw Error(o(188))}if(l.return!==a.return)l=n,a=u;else{for(var f=!1,d=n.child;d;){if(d===l){f=!0,l=n,a=u;break}if(d===a){f=!0,a=n,l=u;break}d=d.sibling}if(!f){for(d=u.child;d;){if(d===l){f=!0,l=u,a=n;break}if(d===a){f=!0,a=u,l=n;break}d=d.sibling}if(!f)throw Error(o(189))}}if(l.alternate!==a)throw Error(o(190))}if(l.tag!==3)throw Error(o(188));return l.stateNode.current===l?t:e}function y(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=y(t),e!==null)return e;t=t.sibling}return null}var R=Object.assign,D=Symbol.for("react.element"),Y=Symbol.for("react.transitional.element"),M=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),H=Symbol.for("react.strict_mode"),F=Symbol.for("react.profiler"),at=Symbol.for("react.provider"),nt=Symbol.for("react.consumer"),ut=Symbol.for("react.context"),ht=Symbol.for("react.forward_ref"),yt=Symbol.for("react.suspense"),pt=Symbol.for("react.suspense_list"),le=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),Ot=Symbol.for("react.activity"),de=Symbol.for("react.memo_cache_sentinel"),Zt=Symbol.iterator;function he(t){return t===null||typeof t!="object"?null:(t=Zt&&t[Zt]||t["@@iterator"],typeof t=="function"?t:null)}var Dl=Symbol.for("react.client.reference");function Ml(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Dl?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case B:return"Fragment";case F:return"Profiler";case H:return"StrictMode";case yt:return"Suspense";case pt:return"SuspenseList";case Ot:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case M:return"Portal";case ut:return(t.displayName||"Context")+".Provider";case nt:return(t._context.displayName||"Context")+".Consumer";case ht:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case le:return e=t.displayName||null,e!==null?e:Ml(t.type)||"Memo";case J:e=t._payload,t=t._init;try{return Ml(t(e))}catch{}}return null}var N=Array.isArray,U=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,rt={pending:!1,data:null,method:null,action:null},Tt=[],Ae=-1;function Vt(t){return{current:t}}function At(t){0>Ae||(t.current=Tt[Ae],Tt[Ae]=null,Ae--)}function I(t,e){Ae++,Tt[Ae]=t.current,t.current=e}var Kt=Vt(null),Fa=Vt(null),el=Vt(null),gi=Vt(null);function mi(t,e){switch(I(el,e),I(Fa,t),I(Kt,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?ep(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=ep(e),t=lp(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}At(Kt),I(Kt,t)}function ta(){At(Kt),At(Fa),At(el)}function ur(t){t.memoizedState!==null&&I(gi,t);var e=Kt.current,l=lp(e,t.type);e!==l&&(I(Fa,t),I(Kt,l))}function bi(t){Fa.current===t&&(At(Kt),At(Fa)),gi.current===t&&(At(gi),Zn._currentValue=rt)}var rr=Object.prototype.hasOwnProperty,sr=i.unstable_scheduleCallback,cr=i.unstable_cancelCallback,cm=i.unstable_shouldYield,om=i.unstable_requestPaint,_e=i.unstable_now,fm=i.unstable_getCurrentPriorityLevel,No=i.unstable_ImmediatePriority,Bo=i.unstable_UserBlockingPriority,vi=i.unstable_NormalPriority,dm=i.unstable_LowPriority,qo=i.unstable_IdlePriority,hm=i.log,pm=i.unstable_setDisableYieldValue,Pa=null,ae=null;function ll(t){if(typeof hm=="function"&&pm(t),ae&&typeof ae.setStrictMode=="function")try{ae.setStrictMode(Pa,t)}catch{}}var ne=Math.clz32?Math.clz32:bm,gm=Math.log,mm=Math.LN2;function bm(t){return t>>>=0,t===0?32:31-(gm(t)/mm|0)|0}var yi=256,wi=4194304;function Ul(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function xi(t,e,l){var a=t.pendingLanes;if(a===0)return 0;var n=0,u=t.suspendedLanes,f=t.pingedLanes;t=t.warmLanes;var d=a&134217727;return d!==0?(a=d&~u,a!==0?n=Ul(a):(f&=d,f!==0?n=Ul(f):l||(l=d&~t,l!==0&&(n=Ul(l))))):(d=a&~u,d!==0?n=Ul(d):f!==0?n=Ul(f):l||(l=a&~t,l!==0&&(n=Ul(l)))),n===0?0:e!==0&&e!==n&&(e&u)===0&&(u=n&-n,l=e&-e,u>=l||u===32&&(l&4194048)!==0)?e:n}function Ia(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function vm(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ho(){var t=yi;return yi<<=1,(yi&4194048)===0&&(yi=256),t}function Co(){var t=wi;return wi<<=1,(wi&62914560)===0&&(wi=4194304),t}function or(t){for(var e=[],l=0;31>l;l++)e.push(t);return e}function tn(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function ym(t,e,l,a,n,u){var f=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var d=t.entanglements,m=t.expirationTimes,T=t.hiddenUpdates;for(l=f&~l;0<l;){var k=31-ne(l),_=1<<k;d[k]=0,m[k]=-1;var A=T[k];if(A!==null)for(T[k]=null,k=0;k<A.length;k++){var E=A[k];E!==null&&(E.lane&=-536870913)}l&=~_}a!==0&&jo(t,a,0),u!==0&&n===0&&t.tag!==0&&(t.suspendedLanes|=u&~(f&~e))}function jo(t,e,l){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-ne(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|l&4194090}function Lo(t,e){var l=t.entangledLanes|=e;for(t=t.entanglements;l;){var a=31-ne(l),n=1<<a;n&e|t[a]&e&&(t[a]|=e),l&=~n}}function fr(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function dr(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Yo(){var t=q.p;return t!==0?t:(t=window.event,t===void 0?32:xp(t.type))}function wm(t,e){var l=q.p;try{return q.p=t,e()}finally{q.p=l}}var al=Math.random().toString(36).slice(2),Gt="__reactFiber$"+al,Ft="__reactProps$"+al,ea="__reactContainer$"+al,hr="__reactEvents$"+al,xm="__reactListeners$"+al,Sm="__reactHandles$"+al,Go="__reactResources$"+al,en="__reactMarker$"+al;function pr(t){delete t[Gt],delete t[Ft],delete t[hr],delete t[xm],delete t[Sm]}function la(t){var e=t[Gt];if(e)return e;for(var l=t.parentNode;l;){if(e=l[ea]||l[Gt]){if(l=e.alternate,e.child!==null||l!==null&&l.child!==null)for(t=up(t);t!==null;){if(l=t[Gt])return l;t=up(t)}return e}t=l,l=t.parentNode}return null}function aa(t){if(t=t[Gt]||t[ea]){var e=t.tag;if(e===5||e===6||e===13||e===26||e===27||e===3)return t}return null}function ln(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(o(33))}function na(t){var e=t[Go];return e||(e=t[Go]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Nt(t){t[en]=!0}var Xo=new Set,Qo={};function Nl(t,e){ia(t,e),ia(t+"Capture",e)}function ia(t,e){for(Qo[t]=e,t=0;t<e.length;t++)Xo.add(e[t])}var Tm=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Zo={},Vo={};function Am(t){return rr.call(Vo,t)?!0:rr.call(Zo,t)?!1:Tm.test(t)?Vo[t]=!0:(Zo[t]=!0,!1)}function Si(t,e,l){if(Am(e))if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var a=e.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+l)}}function Ti(t,e,l){if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+l)}}function Le(t,e,l,a){if(a===null)t.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(e,l,""+a)}}var gr,Ko;function ua(t){if(gr===void 0)try{throw Error()}catch(l){var e=l.stack.trim().match(/\n( *(at )?)/);gr=e&&e[1]||"",Ko=-1<l.stack.indexOf(`
27
- at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
28
- `+gr+t+Ko}var mr=!1;function br(t,e){if(!t||mr)return"";mr=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(e){var _=function(){throw Error()};if(Object.defineProperty(_.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_,[])}catch(E){var A=E}Reflect.construct(t,[],_)}else{try{_.call()}catch(E){A=E}t.call(_.prototype)}}else{try{throw Error()}catch(E){A=E}(_=t())&&typeof _.catch=="function"&&_.catch(function(){})}}catch(E){if(E&&A&&typeof E.stack=="string")return[E.stack,A.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),f=u[0],d=u[1];if(f&&d){var m=f.split(`
29
- `),T=d.split(`
30
- `);for(n=a=0;a<m.length&&!m[a].includes("DetermineComponentFrameRoot");)a++;for(;n<T.length&&!T[n].includes("DetermineComponentFrameRoot");)n++;if(a===m.length||n===T.length)for(a=m.length-1,n=T.length-1;1<=a&&0<=n&&m[a]!==T[n];)n--;for(;1<=a&&0<=n;a--,n--)if(m[a]!==T[n]){if(a!==1||n!==1)do if(a--,n--,0>n||m[a]!==T[n]){var k=`
31
- `+m[a].replace(" at new "," at ");return t.displayName&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",t.displayName)),k}while(1<=a&&0<=n);break}}}finally{mr=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?ua(l):""}function Em(t){switch(t.tag){case 26:case 27:case 5:return ua(t.type);case 16:return ua("Lazy");case 13:return ua("Suspense");case 19:return ua("SuspenseList");case 0:case 15:return br(t.type,!1);case 11:return br(t.type.render,!1);case 1:return br(t.type,!0);case 31:return ua("Activity");default:return""}}function Jo(t){try{var e="";do e+=Em(t),t=t.return;while(t);return e}catch(l){return`
32
- Error generating stack: `+l.message+`
33
- `+l.stack}}function pe(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function $o(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function zm(t){var e=$o(t)?"checked":"value",l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),a=""+t[e];if(!t.hasOwnProperty(e)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var n=l.get,u=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return n.call(this)},set:function(f){a=""+f,u.call(this,f)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(f){a=""+f},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Ai(t){t._valueTracker||(t._valueTracker=zm(t))}function Wo(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var l=e.getValue(),a="";return t&&(a=$o(t)?t.checked?"true":"false":t.value),t=a,t!==l?(e.setValue(t),!0):!1}function Ei(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Rm=/[\n"\\]/g;function ge(t){return t.replace(Rm,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function vr(t,e,l,a,n,u,f,d){t.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.type=f:t.removeAttribute("type"),e!=null?f==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+pe(e)):t.value!==""+pe(e)&&(t.value=""+pe(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?yr(t,f,pe(e)):l!=null?yr(t,f,pe(l)):a!=null&&t.removeAttribute("value"),n==null&&u!=null&&(t.defaultChecked=!!u),n!=null&&(t.checked=n&&typeof n!="function"&&typeof n!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?t.name=""+pe(d):t.removeAttribute("name")}function Fo(t,e,l,a,n,u,f,d){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),e!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||e!=null))return;l=l!=null?""+pe(l):"",e=e!=null?""+pe(e):l,d||e===t.value||(t.value=e),t.defaultValue=e}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=d?t.checked:!!a,t.defaultChecked=!!a,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.name=f)}function yr(t,e,l){e==="number"&&Ei(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function ra(t,e,l,a){if(t=t.options,e){e={};for(var n=0;n<l.length;n++)e["$"+l[n]]=!0;for(l=0;l<t.length;l++)n=e.hasOwnProperty("$"+t[l].value),t[l].selected!==n&&(t[l].selected=n),n&&a&&(t[l].defaultSelected=!0)}else{for(l=""+pe(l),e=null,n=0;n<t.length;n++){if(t[n].value===l){t[n].selected=!0,a&&(t[n].defaultSelected=!0);return}e!==null||t[n].disabled||(e=t[n])}e!==null&&(e.selected=!0)}}function Po(t,e,l){if(e!=null&&(e=""+pe(e),e!==t.value&&(t.value=e),l==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=l!=null?""+pe(l):""}function Io(t,e,l,a){if(e==null){if(a!=null){if(l!=null)throw Error(o(92));if(N(a)){if(1<a.length)throw Error(o(93));a=a[0]}l=a}l==null&&(l=""),e=l}l=pe(e),t.defaultValue=l,a=t.textContent,a===l&&a!==""&&a!==null&&(t.value=a)}function sa(t,e){if(e){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=e;return}}t.textContent=e}var km=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function tf(t,e,l){var a=e.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":a?t.setProperty(e,l):typeof l!="number"||l===0||km.has(e)?e==="float"?t.cssFloat=l:t[e]=(""+l).trim():t[e]=l+"px"}function ef(t,e,l){if(e!=null&&typeof e!="object")throw Error(o(62));if(t=t.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||e!=null&&e.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="");for(var n in e)a=e[n],e.hasOwnProperty(n)&&l[n]!==a&&tf(t,n,a)}else for(var u in e)e.hasOwnProperty(u)&&tf(t,u,e[u])}function wr(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Om=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),_m=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function zi(t){return _m.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var xr=null;function Sr(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ca=null,oa=null;function lf(t){var e=aa(t);if(e&&(t=e.stateNode)){var l=t[Ft]||null;t:switch(t=e.stateNode,e.type){case"input":if(vr(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),e=l.name,l.type==="radio"&&e!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+ge(""+e)+'"][type="radio"]'),e=0;e<l.length;e++){var a=l[e];if(a!==t&&a.form===t.form){var n=a[Ft]||null;if(!n)throw Error(o(90));vr(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(e=0;e<l.length;e++)a=l[e],a.form===t.form&&Wo(a)}break t;case"textarea":Po(t,l.value,l.defaultValue);break t;case"select":e=l.value,e!=null&&ra(t,!!l.multiple,e,!1)}}}var Tr=!1;function af(t,e,l){if(Tr)return t(e,l);Tr=!0;try{var a=t(e);return a}finally{if(Tr=!1,(ca!==null||oa!==null)&&(fu(),ca&&(e=ca,t=oa,oa=ca=null,lf(e),t)))for(e=0;e<t.length;e++)lf(t[e])}}function an(t,e){var l=t.stateNode;if(l===null)return null;var a=l[Ft]||null;if(a===null)return null;l=a[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break t;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(o(231,e,typeof l));return l}var Ye=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ar=!1;if(Ye)try{var nn={};Object.defineProperty(nn,"passive",{get:function(){Ar=!0}}),window.addEventListener("test",nn,nn),window.removeEventListener("test",nn,nn)}catch{Ar=!1}var nl=null,Er=null,Ri=null;function nf(){if(Ri)return Ri;var t,e=Er,l=e.length,a,n="value"in nl?nl.value:nl.textContent,u=n.length;for(t=0;t<l&&e[t]===n[t];t++);var f=l-t;for(a=1;a<=f&&e[l-a]===n[u-a];a++);return Ri=n.slice(t,1<a?1-a:void 0)}function ki(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Oi(){return!0}function uf(){return!1}function Pt(t){function e(l,a,n,u,f){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=f,this.currentTarget=null;for(var d in t)t.hasOwnProperty(d)&&(l=t[d],this[d]=l?l(u):u[d]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Oi:uf,this.isPropagationStopped=uf,this}return R(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Oi)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Oi)},persist:function(){},isPersistent:Oi}),e}var Bl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_i=Pt(Bl),un=R({},Bl,{view:0,detail:0}),Dm=Pt(un),zr,Rr,rn,Di=R({},un,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Or,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==rn&&(rn&&t.type==="mousemove"?(zr=t.screenX-rn.screenX,Rr=t.screenY-rn.screenY):Rr=zr=0,rn=t),zr)},movementY:function(t){return"movementY"in t?t.movementY:Rr}}),rf=Pt(Di),Mm=R({},Di,{dataTransfer:0}),Um=Pt(Mm),Nm=R({},un,{relatedTarget:0}),kr=Pt(Nm),Bm=R({},Bl,{animationName:0,elapsedTime:0,pseudoElement:0}),qm=Pt(Bm),Hm=R({},Bl,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Cm=Pt(Hm),jm=R({},Bl,{data:0}),sf=Pt(jm),Lm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ym={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Gm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Xm(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Gm[t])?!!e[t]:!1}function Or(){return Xm}var Qm=R({},un,{key:function(t){if(t.key){var e=Lm[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=ki(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Ym[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Or,charCode:function(t){return t.type==="keypress"?ki(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?ki(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Zm=Pt(Qm),Vm=R({},Di,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),cf=Pt(Vm),Km=R({},un,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Or}),Jm=Pt(Km),$m=R({},Bl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Wm=Pt($m),Fm=R({},Di,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Pm=Pt(Fm),Im=R({},Bl,{newState:0,oldState:0}),tb=Pt(Im),eb=[9,13,27,32],_r=Ye&&"CompositionEvent"in window,sn=null;Ye&&"documentMode"in document&&(sn=document.documentMode);var lb=Ye&&"TextEvent"in window&&!sn,of=Ye&&(!_r||sn&&8<sn&&11>=sn),ff=" ",df=!1;function hf(t,e){switch(t){case"keyup":return eb.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pf(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var fa=!1;function ab(t,e){switch(t){case"compositionend":return pf(e);case"keypress":return e.which!==32?null:(df=!0,ff);case"textInput":return t=e.data,t===ff&&df?null:t;default:return null}}function nb(t,e){if(fa)return t==="compositionend"||!_r&&hf(t,e)?(t=nf(),Ri=Er=nl=null,fa=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return of&&e.locale!=="ko"?null:e.data;default:return null}}var ib={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function gf(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!ib[t.type]:e==="textarea"}function mf(t,e,l,a){ca?oa?oa.push(a):oa=[a]:ca=a,e=bu(e,"onChange"),0<e.length&&(l=new _i("onChange","change",null,l,a),t.push({event:l,listeners:e}))}var cn=null,on=null;function ub(t){Wh(t,0)}function Mi(t){var e=ln(t);if(Wo(e))return t}function bf(t,e){if(t==="change")return e}var vf=!1;if(Ye){var Dr;if(Ye){var Mr="oninput"in document;if(!Mr){var yf=document.createElement("div");yf.setAttribute("oninput","return;"),Mr=typeof yf.oninput=="function"}Dr=Mr}else Dr=!1;vf=Dr&&(!document.documentMode||9<document.documentMode)}function wf(){cn&&(cn.detachEvent("onpropertychange",xf),on=cn=null)}function xf(t){if(t.propertyName==="value"&&Mi(on)){var e=[];mf(e,on,t,Sr(t)),af(ub,e)}}function rb(t,e,l){t==="focusin"?(wf(),cn=e,on=l,cn.attachEvent("onpropertychange",xf)):t==="focusout"&&wf()}function sb(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Mi(on)}function cb(t,e){if(t==="click")return Mi(e)}function ob(t,e){if(t==="input"||t==="change")return Mi(e)}function fb(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var ie=typeof Object.is=="function"?Object.is:fb;function fn(t,e){if(ie(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var l=Object.keys(t),a=Object.keys(e);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!rr.call(e,n)||!ie(t[n],e[n]))return!1}return!0}function Sf(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Tf(t,e){var l=Sf(t);t=0;for(var a;l;){if(l.nodeType===3){if(a=t+l.textContent.length,t<=e&&a>=e)return{node:l,offset:e-t};t=a}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=Sf(l)}}function Af(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Af(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Ef(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Ei(t.document);e instanceof t.HTMLIFrameElement;){try{var l=typeof e.contentWindow.location.href=="string"}catch{l=!1}if(l)t=e.contentWindow;else break;e=Ei(t.document)}return e}function Ur(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var db=Ye&&"documentMode"in document&&11>=document.documentMode,da=null,Nr=null,dn=null,Br=!1;function zf(t,e,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Br||da==null||da!==Ei(a)||(a=da,"selectionStart"in a&&Ur(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),dn&&fn(dn,a)||(dn=a,a=bu(Nr,"onSelect"),0<a.length&&(e=new _i("onSelect","select",null,e,l),t.push({event:e,listeners:a}),e.target=da)))}function ql(t,e){var l={};return l[t.toLowerCase()]=e.toLowerCase(),l["Webkit"+t]="webkit"+e,l["Moz"+t]="moz"+e,l}var ha={animationend:ql("Animation","AnimationEnd"),animationiteration:ql("Animation","AnimationIteration"),animationstart:ql("Animation","AnimationStart"),transitionrun:ql("Transition","TransitionRun"),transitionstart:ql("Transition","TransitionStart"),transitioncancel:ql("Transition","TransitionCancel"),transitionend:ql("Transition","TransitionEnd")},qr={},Rf={};Ye&&(Rf=document.createElement("div").style,"AnimationEvent"in window||(delete ha.animationend.animation,delete ha.animationiteration.animation,delete ha.animationstart.animation),"TransitionEvent"in window||delete ha.transitionend.transition);function Hl(t){if(qr[t])return qr[t];if(!ha[t])return t;var e=ha[t],l;for(l in e)if(e.hasOwnProperty(l)&&l in Rf)return qr[t]=e[l];return t}var kf=Hl("animationend"),Of=Hl("animationiteration"),_f=Hl("animationstart"),hb=Hl("transitionrun"),pb=Hl("transitionstart"),gb=Hl("transitioncancel"),Df=Hl("transitionend"),Mf=new Map,Hr="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Hr.push("scrollEnd");function Ee(t,e){Mf.set(t,e),Nl(e,[t])}var Uf=new WeakMap;function me(t,e){if(typeof t=="object"&&t!==null){var l=Uf.get(t);return l!==void 0?l:(e={value:t,source:e,stack:Jo(e)},Uf.set(t,e),e)}return{value:t,source:e,stack:Jo(e)}}var be=[],pa=0,Cr=0;function Ui(){for(var t=pa,e=Cr=pa=0;e<t;){var l=be[e];be[e++]=null;var a=be[e];be[e++]=null;var n=be[e];be[e++]=null;var u=be[e];if(be[e++]=null,a!==null&&n!==null){var f=a.pending;f===null?n.next=n:(n.next=f.next,f.next=n),a.pending=n}u!==0&&Nf(l,n,u)}}function Ni(t,e,l,a){be[pa++]=t,be[pa++]=e,be[pa++]=l,be[pa++]=a,Cr|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function jr(t,e,l,a){return Ni(t,e,l,a),Bi(t)}function ga(t,e){return Ni(t,null,null,e),Bi(t)}function Nf(t,e,l){t.lanes|=l;var a=t.alternate;a!==null&&(a.lanes|=l);for(var n=!1,u=t.return;u!==null;)u.childLanes|=l,a=u.alternate,a!==null&&(a.childLanes|=l),u.tag===22&&(t=u.stateNode,t===null||t._visibility&1||(n=!0)),t=u,u=u.return;return t.tag===3?(u=t.stateNode,n&&e!==null&&(n=31-ne(l),t=u.hiddenUpdates,a=t[n],a===null?t[n]=[e]:a.push(e),e.lane=l|536870912),u):null}function Bi(t){if(50<Hn)throw Hn=0,Zs=null,Error(o(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var ma={};function mb(t,e,l,a){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ue(t,e,l,a){return new mb(t,e,l,a)}function Lr(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Ge(t,e){var l=t.alternate;return l===null?(l=ue(t.tag,e,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=e,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,e=t.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function Bf(t,e){t.flags&=65011714;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,e=l.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function qi(t,e,l,a,n,u){var f=0;if(a=t,typeof t=="function")Lr(t)&&(f=1);else if(typeof t=="string")f=vv(t,l,Kt.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case Ot:return t=ue(31,l,e,n),t.elementType=Ot,t.lanes=u,t;case B:return Cl(l.children,n,u,e);case H:f=8,n|=24;break;case F:return t=ue(12,l,e,n|2),t.elementType=F,t.lanes=u,t;case yt:return t=ue(13,l,e,n),t.elementType=yt,t.lanes=u,t;case pt:return t=ue(19,l,e,n),t.elementType=pt,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case at:case ut:f=10;break t;case nt:f=9;break t;case ht:f=11;break t;case le:f=14;break t;case J:f=16,a=null;break t}f=29,l=Error(o(130,t===null?"null":typeof t,"")),a=null}return e=ue(f,l,e,n),e.elementType=t,e.type=a,e.lanes=u,e}function Cl(t,e,l,a){return t=ue(7,t,a,e),t.lanes=l,t}function Yr(t,e,l){return t=ue(6,t,null,e),t.lanes=l,t}function Gr(t,e,l){return e=ue(4,t.children!==null?t.children:[],t.key,e),e.lanes=l,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var ba=[],va=0,Hi=null,Ci=0,ve=[],ye=0,jl=null,Xe=1,Qe="";function Ll(t,e){ba[va++]=Ci,ba[va++]=Hi,Hi=t,Ci=e}function qf(t,e,l){ve[ye++]=Xe,ve[ye++]=Qe,ve[ye++]=jl,jl=t;var a=Xe;t=Qe;var n=32-ne(a)-1;a&=~(1<<n),l+=1;var u=32-ne(e)+n;if(30<u){var f=n-n%5;u=(a&(1<<f)-1).toString(32),a>>=f,n-=f,Xe=1<<32-ne(e)+n|l<<n|a,Qe=u+t}else Xe=1<<u|l<<n|a,Qe=t}function Xr(t){t.return!==null&&(Ll(t,1),qf(t,1,0))}function Qr(t){for(;t===Hi;)Hi=ba[--va],ba[va]=null,Ci=ba[--va],ba[va]=null;for(;t===jl;)jl=ve[--ye],ve[ye]=null,Qe=ve[--ye],ve[ye]=null,Xe=ve[--ye],ve[ye]=null}var Jt=null,Et=null,et=!1,Yl=null,De=!1,Zr=Error(o(519));function Gl(t){var e=Error(o(418,""));throw gn(me(e,t)),Zr}function Hf(t){var e=t.stateNode,l=t.type,a=t.memoizedProps;switch(e[Gt]=t,e[Ft]=a,l){case"dialog":W("cancel",e),W("close",e);break;case"iframe":case"object":case"embed":W("load",e);break;case"video":case"audio":for(l=0;l<jn.length;l++)W(jn[l],e);break;case"source":W("error",e);break;case"img":case"image":case"link":W("error",e),W("load",e);break;case"details":W("toggle",e);break;case"input":W("invalid",e),Fo(e,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0),Ai(e);break;case"select":W("invalid",e);break;case"textarea":W("invalid",e),Io(e,a.value,a.defaultValue,a.children),Ai(e)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||e.textContent===""+l||a.suppressHydrationWarning===!0||tp(e.textContent,l)?(a.popover!=null&&(W("beforetoggle",e),W("toggle",e)),a.onScroll!=null&&W("scroll",e),a.onScrollEnd!=null&&W("scrollend",e),a.onClick!=null&&(e.onclick=vu),e=!0):e=!1,e||Gl(t)}function Cf(t){for(Jt=t.return;Jt;)switch(Jt.tag){case 5:case 13:De=!1;return;case 27:case 3:De=!0;return;default:Jt=Jt.return}}function hn(t){if(t!==Jt)return!1;if(!et)return Cf(t),et=!0,!1;var e=t.tag,l;if((l=e!==3&&e!==27)&&((l=e===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||rc(t.type,t.memoizedProps)),l=!l),l&&Et&&Gl(t),Cf(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));t:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8)if(l=t.data,l==="/$"){if(e===0){Et=Re(t.nextSibling);break t}e--}else l!=="$"&&l!=="$!"&&l!=="$?"||e++;t=t.nextSibling}Et=null}}else e===27?(e=Et,wl(t.type)?(t=fc,fc=null,Et=t):Et=e):Et=Jt?Re(t.stateNode.nextSibling):null;return!0}function pn(){Et=Jt=null,et=!1}function jf(){var t=Yl;return t!==null&&(ee===null?ee=t:ee.push.apply(ee,t),Yl=null),t}function gn(t){Yl===null?Yl=[t]:Yl.push(t)}var Vr=Vt(null),Xl=null,Ze=null;function il(t,e,l){I(Vr,e._currentValue),e._currentValue=l}function Ve(t){t._currentValue=Vr.current,At(Vr)}function Kr(t,e,l){for(;t!==null;){var a=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,a!==null&&(a.childLanes|=e)):a!==null&&(a.childLanes&e)!==e&&(a.childLanes|=e),t===l)break;t=t.return}}function Jr(t,e,l,a){var n=t.child;for(n!==null&&(n.return=t);n!==null;){var u=n.dependencies;if(u!==null){var f=n.child;u=u.firstContext;t:for(;u!==null;){var d=u;u=n;for(var m=0;m<e.length;m++)if(d.context===e[m]){u.lanes|=l,d=u.alternate,d!==null&&(d.lanes|=l),Kr(u.return,l,t),a||(f=null);break t}u=d.next}}else if(n.tag===18){if(f=n.return,f===null)throw Error(o(341));f.lanes|=l,u=f.alternate,u!==null&&(u.lanes|=l),Kr(f,l,t),f=null}else f=n.child;if(f!==null)f.return=n;else for(f=n;f!==null;){if(f===t){f=null;break}if(n=f.sibling,n!==null){n.return=f.return,f=n;break}f=f.return}n=f}}function mn(t,e,l,a){t=null;for(var n=e,u=!1;n!==null;){if(!u){if((n.flags&524288)!==0)u=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var f=n.alternate;if(f===null)throw Error(o(387));if(f=f.memoizedProps,f!==null){var d=n.type;ie(n.pendingProps.value,f.value)||(t!==null?t.push(d):t=[d])}}else if(n===gi.current){if(f=n.alternate,f===null)throw Error(o(387));f.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(t!==null?t.push(Zn):t=[Zn])}n=n.return}t!==null&&Jr(e,t,l,a),e.flags|=262144}function ji(t){for(t=t.firstContext;t!==null;){if(!ie(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Ql(t){Xl=t,Ze=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Xt(t){return Lf(Xl,t)}function Li(t,e){return Xl===null&&Ql(t),Lf(t,e)}function Lf(t,e){var l=e._currentValue;if(e={context:e,memoizedValue:l,next:null},Ze===null){if(t===null)throw Error(o(308));Ze=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Ze=Ze.next=e;return l}var bb=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(l,a){t.push(a)}};this.abort=function(){e.aborted=!0,t.forEach(function(l){return l()})}},vb=i.unstable_scheduleCallback,yb=i.unstable_NormalPriority,Mt={$$typeof:ut,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function $r(){return{controller:new bb,data:new Map,refCount:0}}function bn(t){t.refCount--,t.refCount===0&&vb(yb,function(){t.controller.abort()})}var vn=null,Wr=0,ya=0,wa=null;function wb(t,e){if(vn===null){var l=vn=[];Wr=0,ya=Ps(),wa={status:"pending",value:void 0,then:function(a){l.push(a)}}}return Wr++,e.then(Yf,Yf),e}function Yf(){if(--Wr===0&&vn!==null){wa!==null&&(wa.status="fulfilled");var t=vn;vn=null,ya=0,wa=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function xb(t,e){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return t.then(function(){a.status="fulfilled",a.value=e;for(var n=0;n<l.length;n++)(0,l[n])(e)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var Gf=U.S;U.S=function(t,e){typeof e=="object"&&e!==null&&typeof e.then=="function"&&wb(t,e),Gf!==null&&Gf(t,e)};var Zl=Vt(null);function Fr(){var t=Zl.current;return t!==null?t:bt.pooledCache}function Yi(t,e){e===null?I(Zl,Zl.current):I(Zl,e.pool)}function Xf(){var t=Fr();return t===null?null:{parent:Mt._currentValue,pool:t}}var yn=Error(o(460)),Qf=Error(o(474)),Gi=Error(o(542)),Pr={then:function(){}};function Zf(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Xi(){}function Vf(t,e,l){switch(l=t[l],l===void 0?t.push(e):l!==e&&(e.then(Xi,Xi),e=l),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Jf(t),t;default:if(typeof e.status=="string")e.then(Xi,Xi);else{if(t=bt,t!==null&&100<t.shellSuspendCounter)throw Error(o(482));t=e,t.status="pending",t.then(function(a){if(e.status==="pending"){var n=e;n.status="fulfilled",n.value=a}},function(a){if(e.status==="pending"){var n=e;n.status="rejected",n.reason=a}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Jf(t),t}throw wn=e,yn}}var wn=null;function Kf(){if(wn===null)throw Error(o(459));var t=wn;return wn=null,t}function Jf(t){if(t===yn||t===Gi)throw Error(o(483))}var ul=!1;function Ir(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ts(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function rl(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function sl(t,e,l){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(st&2)!==0){var n=a.pending;return n===null?e.next=e:(e.next=n.next,n.next=e),a.pending=e,e=Bi(t),Nf(t,null,l),e}return Ni(t,a,e,l),Bi(t)}function xn(t,e,l){if(e=e.updateQueue,e!==null&&(e=e.shared,(l&4194048)!==0)){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,Lo(t,l)}}function es(t,e){var l=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var f={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?n=u=f:u=u.next=f,l=l.next}while(l!==null);u===null?n=u=e:u=u.next=e}else n=u=e;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=e:t.next=e,l.lastBaseUpdate=e}var ls=!1;function Sn(){if(ls){var t=wa;if(t!==null)throw t}}function Tn(t,e,l,a){ls=!1;var n=t.updateQueue;ul=!1;var u=n.firstBaseUpdate,f=n.lastBaseUpdate,d=n.shared.pending;if(d!==null){n.shared.pending=null;var m=d,T=m.next;m.next=null,f===null?u=T:f.next=T,f=m;var k=t.alternate;k!==null&&(k=k.updateQueue,d=k.lastBaseUpdate,d!==f&&(d===null?k.firstBaseUpdate=T:d.next=T,k.lastBaseUpdate=m))}if(u!==null){var _=n.baseState;f=0,k=T=m=null,d=u;do{var A=d.lane&-536870913,E=A!==d.lane;if(E?(P&A)===A:(a&A)===A){A!==0&&A===ya&&(ls=!0),k!==null&&(k=k.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});t:{var Q=t,L=d;A=e;var dt=l;switch(L.tag){case 1:if(Q=L.payload,typeof Q=="function"){_=Q.call(dt,_,A);break t}_=Q;break t;case 3:Q.flags=Q.flags&-65537|128;case 0:if(Q=L.payload,A=typeof Q=="function"?Q.call(dt,_,A):Q,A==null)break t;_=R({},_,A);break t;case 2:ul=!0}}A=d.callback,A!==null&&(t.flags|=64,E&&(t.flags|=8192),E=n.callbacks,E===null?n.callbacks=[A]:E.push(A))}else E={lane:A,tag:d.tag,payload:d.payload,callback:d.callback,next:null},k===null?(T=k=E,m=_):k=k.next=E,f|=A;if(d=d.next,d===null){if(d=n.shared.pending,d===null)break;E=d,d=E.next,E.next=null,n.lastBaseUpdate=E,n.shared.pending=null}}while(!0);k===null&&(m=_),n.baseState=m,n.firstBaseUpdate=T,n.lastBaseUpdate=k,u===null&&(n.shared.lanes=0),ml|=f,t.lanes=f,t.memoizedState=_}}function $f(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function Wf(t,e){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)$f(l[t],e)}var xa=Vt(null),Qi=Vt(0);function Ff(t,e){t=Ie,I(Qi,t),I(xa,e),Ie=t|e.baseLanes}function as(){I(Qi,Ie),I(xa,xa.current)}function ns(){Ie=Qi.current,At(xa),At(Qi)}var cl=0,V=null,ot=null,_t=null,Zi=!1,Sa=!1,Vl=!1,Vi=0,An=0,Ta=null,Sb=0;function Rt(){throw Error(o(321))}function is(t,e){if(e===null)return!1;for(var l=0;l<e.length&&l<t.length;l++)if(!ie(t[l],e[l]))return!1;return!0}function us(t,e,l,a,n,u){return cl=u,V=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,U.H=t===null||t.memoizedState===null?Nd:Bd,Vl=!1,u=l(a,n),Vl=!1,Sa&&(u=If(e,l,a,n)),Pf(t),u}function Pf(t){U.H=Pi;var e=ot!==null&&ot.next!==null;if(cl=0,_t=ot=V=null,Zi=!1,An=0,Ta=null,e)throw Error(o(300));t===null||Bt||(t=t.dependencies,t!==null&&ji(t)&&(Bt=!0))}function If(t,e,l,a){V=t;var n=0;do{if(Sa&&(Ta=null),An=0,Sa=!1,25<=n)throw Error(o(301));if(n+=1,_t=ot=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}U.H=Ob,u=e(l,a)}while(Sa);return u}function Tb(){var t=U.H,e=t.useState()[0];return e=typeof e.then=="function"?En(e):e,t=t.useState()[0],(ot!==null?ot.memoizedState:null)!==t&&(V.flags|=1024),e}function rs(){var t=Vi!==0;return Vi=0,t}function ss(t,e,l){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~l}function cs(t){if(Zi){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Zi=!1}cl=0,_t=ot=V=null,Sa=!1,An=Vi=0,Ta=null}function It(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return _t===null?V.memoizedState=_t=t:_t=_t.next=t,_t}function Dt(){if(ot===null){var t=V.alternate;t=t!==null?t.memoizedState:null}else t=ot.next;var e=_t===null?V.memoizedState:_t.next;if(e!==null)_t=e,ot=t;else{if(t===null)throw V.alternate===null?Error(o(467)):Error(o(310));ot=t,t={memoizedState:ot.memoizedState,baseState:ot.baseState,baseQueue:ot.baseQueue,queue:ot.queue,next:null},_t===null?V.memoizedState=_t=t:_t=_t.next=t}return _t}function os(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function En(t){var e=An;return An+=1,Ta===null&&(Ta=[]),t=Vf(Ta,t,e),e=V,(_t===null?e.memoizedState:_t.next)===null&&(e=e.alternate,U.H=e===null||e.memoizedState===null?Nd:Bd),t}function Ki(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return En(t);if(t.$$typeof===ut)return Xt(t)}throw Error(o(438,String(t)))}function fs(t){var e=null,l=V.updateQueue;if(l!==null&&(e=l.memoCache),e==null){var a=V.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(e={data:a.data.map(function(n){return n.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),l===null&&(l=os(),V.updateQueue=l),l.memoCache=e,l=e.data[e.index],l===void 0)for(l=e.data[e.index]=Array(t),a=0;a<t;a++)l[a]=de;return e.index++,l}function Ke(t,e){return typeof e=="function"?e(t):e}function Ji(t){var e=Dt();return ds(e,ot,t)}function ds(t,e,l){var a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=l;var n=t.baseQueue,u=a.pending;if(u!==null){if(n!==null){var f=n.next;n.next=u.next,u.next=f}e.baseQueue=n=u,a.pending=null}if(u=t.baseState,n===null)t.memoizedState=u;else{e=n.next;var d=f=null,m=null,T=e,k=!1;do{var _=T.lane&-536870913;if(_!==T.lane?(P&_)===_:(cl&_)===_){var A=T.revertLane;if(A===0)m!==null&&(m=m.next={lane:0,revertLane:0,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null}),_===ya&&(k=!0);else if((cl&A)===A){T=T.next,A===ya&&(k=!0);continue}else _={lane:0,revertLane:T.revertLane,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},m===null?(d=m=_,f=u):m=m.next=_,V.lanes|=A,ml|=A;_=T.action,Vl&&l(u,_),u=T.hasEagerState?T.eagerState:l(u,_)}else A={lane:_,revertLane:T.revertLane,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},m===null?(d=m=A,f=u):m=m.next=A,V.lanes|=_,ml|=_;T=T.next}while(T!==null&&T!==e);if(m===null?f=u:m.next=d,!ie(u,t.memoizedState)&&(Bt=!0,k&&(l=wa,l!==null)))throw l;t.memoizedState=u,t.baseState=f,t.baseQueue=m,a.lastRenderedState=u}return n===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function hs(t){var e=Dt(),l=e.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=t;var a=l.dispatch,n=l.pending,u=e.memoizedState;if(n!==null){l.pending=null;var f=n=n.next;do u=t(u,f.action),f=f.next;while(f!==n);ie(u,e.memoizedState)||(Bt=!0),e.memoizedState=u,e.baseQueue===null&&(e.baseState=u),l.lastRenderedState=u}return[u,a]}function td(t,e,l){var a=V,n=Dt(),u=et;if(u){if(l===void 0)throw Error(o(407));l=l()}else l=e();var f=!ie((ot||n).memoizedState,l);f&&(n.memoizedState=l,Bt=!0),n=n.queue;var d=ad.bind(null,a,n,t);if(zn(2048,8,d,[t]),n.getSnapshot!==e||f||_t!==null&&_t.memoizedState.tag&1){if(a.flags|=2048,Aa(9,$i(),ld.bind(null,a,n,l,e),null),bt===null)throw Error(o(349));u||(cl&124)!==0||ed(a,e,l)}return l}function ed(t,e,l){t.flags|=16384,t={getSnapshot:e,value:l},e=V.updateQueue,e===null?(e=os(),V.updateQueue=e,e.stores=[t]):(l=e.stores,l===null?e.stores=[t]:l.push(t))}function ld(t,e,l,a){e.value=l,e.getSnapshot=a,nd(e)&&id(t)}function ad(t,e,l){return l(function(){nd(e)&&id(t)})}function nd(t){var e=t.getSnapshot;t=t.value;try{var l=e();return!ie(t,l)}catch{return!0}}function id(t){var e=ga(t,2);e!==null&&fe(e,t,2)}function ps(t){var e=It();if(typeof t=="function"){var l=t;if(t=l(),Vl){ll(!0);try{l()}finally{ll(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ke,lastRenderedState:t},e}function ud(t,e,l,a){return t.baseState=l,ds(t,ot,typeof a=="function"?a:Ke)}function Ab(t,e,l,a,n){if(Fi(t))throw Error(o(485));if(t=e.action,t!==null){var u={payload:n,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){u.listeners.push(f)}};U.T!==null?l(!0):u.isTransition=!1,a(u),l=e.pending,l===null?(u.next=e.pending=u,rd(e,u)):(u.next=l.next,e.pending=l.next=u)}}function rd(t,e){var l=e.action,a=e.payload,n=t.state;if(e.isTransition){var u=U.T,f={};U.T=f;try{var d=l(n,a),m=U.S;m!==null&&m(f,d),sd(t,e,d)}catch(T){gs(t,e,T)}finally{U.T=u}}else try{u=l(n,a),sd(t,e,u)}catch(T){gs(t,e,T)}}function sd(t,e,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){cd(t,e,a)},function(a){return gs(t,e,a)}):cd(t,e,l)}function cd(t,e,l){e.status="fulfilled",e.value=l,od(e),t.state=l,e=t.pending,e!==null&&(l=e.next,l===e?t.pending=null:(l=l.next,e.next=l,rd(t,l)))}function gs(t,e,l){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=l,od(e),e=e.next;while(e!==a)}t.action=null}function od(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function fd(t,e){return e}function dd(t,e){if(et){var l=bt.formState;if(l!==null){t:{var a=V;if(et){if(Et){e:{for(var n=Et,u=De;n.nodeType!==8;){if(!u){n=null;break e}if(n=Re(n.nextSibling),n===null){n=null;break e}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){Et=Re(n.nextSibling),a=n.data==="F!";break t}}Gl(a)}a=!1}a&&(e=l[0])}}return l=It(),l.memoizedState=l.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fd,lastRenderedState:e},l.queue=a,l=Dd.bind(null,V,a),a.dispatch=l,a=ps(!1),u=ws.bind(null,V,!1,a.queue),a=It(),n={state:e,dispatch:null,action:t,pending:null},a.queue=n,l=Ab.bind(null,V,n,u,l),n.dispatch=l,a.memoizedState=t,[e,l,!1]}function hd(t){var e=Dt();return pd(e,ot,t)}function pd(t,e,l){if(e=ds(t,e,fd)[0],t=Ji(Ke)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=En(e)}catch(f){throw f===yn?Gi:f}else a=e;e=Dt();var n=e.queue,u=n.dispatch;return l!==e.memoizedState&&(V.flags|=2048,Aa(9,$i(),Eb.bind(null,n,l),null)),[a,u,t]}function Eb(t,e){t.action=e}function gd(t){var e=Dt(),l=ot;if(l!==null)return pd(e,l,t);Dt(),e=e.memoizedState,l=Dt();var a=l.queue.dispatch;return l.memoizedState=t,[e,a,!1]}function Aa(t,e,l,a){return t={tag:t,create:l,deps:a,inst:e,next:null},e=V.updateQueue,e===null&&(e=os(),V.updateQueue=e),l=e.lastEffect,l===null?e.lastEffect=t.next=t:(a=l.next,l.next=t,t.next=a,e.lastEffect=t),t}function $i(){return{destroy:void 0,resource:void 0}}function md(){return Dt().memoizedState}function Wi(t,e,l,a){var n=It();a=a===void 0?null:a,V.flags|=t,n.memoizedState=Aa(1|e,$i(),l,a)}function zn(t,e,l,a){var n=Dt();a=a===void 0?null:a;var u=n.memoizedState.inst;ot!==null&&a!==null&&is(a,ot.memoizedState.deps)?n.memoizedState=Aa(e,u,l,a):(V.flags|=t,n.memoizedState=Aa(1|e,u,l,a))}function bd(t,e){Wi(8390656,8,t,e)}function vd(t,e){zn(2048,8,t,e)}function yd(t,e){return zn(4,2,t,e)}function wd(t,e){return zn(4,4,t,e)}function xd(t,e){if(typeof e=="function"){t=t();var l=e(t);return function(){typeof l=="function"?l():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Sd(t,e,l){l=l!=null?l.concat([t]):null,zn(4,4,xd.bind(null,e,t),l)}function ms(){}function Td(t,e){var l=Dt();e=e===void 0?null:e;var a=l.memoizedState;return e!==null&&is(e,a[1])?a[0]:(l.memoizedState=[t,e],t)}function Ad(t,e){var l=Dt();e=e===void 0?null:e;var a=l.memoizedState;if(e!==null&&is(e,a[1]))return a[0];if(a=t(),Vl){ll(!0);try{t()}finally{ll(!1)}}return l.memoizedState=[a,e],a}function bs(t,e,l){return l===void 0||(cl&1073741824)!==0?t.memoizedState=e:(t.memoizedState=l,t=Rh(),V.lanes|=t,ml|=t,l)}function Ed(t,e,l,a){return ie(l,e)?l:xa.current!==null?(t=bs(t,l,a),ie(t,e)||(Bt=!0),t):(cl&42)===0?(Bt=!0,t.memoizedState=l):(t=Rh(),V.lanes|=t,ml|=t,e)}function zd(t,e,l,a,n){var u=q.p;q.p=u!==0&&8>u?u:8;var f=U.T,d={};U.T=d,ws(t,!1,e,l);try{var m=n(),T=U.S;if(T!==null&&T(d,m),m!==null&&typeof m=="object"&&typeof m.then=="function"){var k=xb(m,a);Rn(t,e,k,oe(t))}else Rn(t,e,a,oe(t))}catch(_){Rn(t,e,{then:function(){},status:"rejected",reason:_},oe())}finally{q.p=u,U.T=f}}function zb(){}function vs(t,e,l,a){if(t.tag!==5)throw Error(o(476));var n=Rd(t).queue;zd(t,n,e,rt,l===null?zb:function(){return kd(t),l(a)})}function Rd(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:rt,baseState:rt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ke,lastRenderedState:rt},next:null};var l={};return e.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ke,lastRenderedState:l},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function kd(t){var e=Rd(t).next.queue;Rn(t,e,{},oe())}function ys(){return Xt(Zn)}function Od(){return Dt().memoizedState}function _d(){return Dt().memoizedState}function Rb(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var l=oe();t=rl(l);var a=sl(e,t,l);a!==null&&(fe(a,e,l),xn(a,e,l)),e={cache:$r()},t.payload=e;return}e=e.return}}function kb(t,e,l){var a=oe();l={lane:a,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null},Fi(t)?Md(e,l):(l=jr(t,e,l,a),l!==null&&(fe(l,t,a),Ud(l,e,a)))}function Dd(t,e,l){var a=oe();Rn(t,e,l,a)}function Rn(t,e,l,a){var n={lane:a,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null};if(Fi(t))Md(e,n);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var f=e.lastRenderedState,d=u(f,l);if(n.hasEagerState=!0,n.eagerState=d,ie(d,f))return Ni(t,e,n,0),bt===null&&Ui(),!1}catch{}finally{}if(l=jr(t,e,n,a),l!==null)return fe(l,t,a),Ud(l,e,a),!0}return!1}function ws(t,e,l,a){if(a={lane:2,revertLane:Ps(),action:a,hasEagerState:!1,eagerState:null,next:null},Fi(t)){if(e)throw Error(o(479))}else e=jr(t,l,a,2),e!==null&&fe(e,t,2)}function Fi(t){var e=t.alternate;return t===V||e!==null&&e===V}function Md(t,e){Sa=Zi=!0;var l=t.pending;l===null?e.next=e:(e.next=l.next,l.next=e),t.pending=e}function Ud(t,e,l){if((l&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,Lo(t,l)}}var Pi={readContext:Xt,use:Ki,useCallback:Rt,useContext:Rt,useEffect:Rt,useImperativeHandle:Rt,useLayoutEffect:Rt,useInsertionEffect:Rt,useMemo:Rt,useReducer:Rt,useRef:Rt,useState:Rt,useDebugValue:Rt,useDeferredValue:Rt,useTransition:Rt,useSyncExternalStore:Rt,useId:Rt,useHostTransitionStatus:Rt,useFormState:Rt,useActionState:Rt,useOptimistic:Rt,useMemoCache:Rt,useCacheRefresh:Rt},Nd={readContext:Xt,use:Ki,useCallback:function(t,e){return It().memoizedState=[t,e===void 0?null:e],t},useContext:Xt,useEffect:bd,useImperativeHandle:function(t,e,l){l=l!=null?l.concat([t]):null,Wi(4194308,4,xd.bind(null,e,t),l)},useLayoutEffect:function(t,e){return Wi(4194308,4,t,e)},useInsertionEffect:function(t,e){Wi(4,2,t,e)},useMemo:function(t,e){var l=It();e=e===void 0?null:e;var a=t();if(Vl){ll(!0);try{t()}finally{ll(!1)}}return l.memoizedState=[a,e],a},useReducer:function(t,e,l){var a=It();if(l!==void 0){var n=l(e);if(Vl){ll(!0);try{l(e)}finally{ll(!1)}}}else n=e;return a.memoizedState=a.baseState=n,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:n},a.queue=t,t=t.dispatch=kb.bind(null,V,t),[a.memoizedState,t]},useRef:function(t){var e=It();return t={current:t},e.memoizedState=t},useState:function(t){t=ps(t);var e=t.queue,l=Dd.bind(null,V,e);return e.dispatch=l,[t.memoizedState,l]},useDebugValue:ms,useDeferredValue:function(t,e){var l=It();return bs(l,t,e)},useTransition:function(){var t=ps(!1);return t=zd.bind(null,V,t.queue,!0,!1),It().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,l){var a=V,n=It();if(et){if(l===void 0)throw Error(o(407));l=l()}else{if(l=e(),bt===null)throw Error(o(349));(P&124)!==0||ed(a,e,l)}n.memoizedState=l;var u={value:l,getSnapshot:e};return n.queue=u,bd(ad.bind(null,a,u,t),[t]),a.flags|=2048,Aa(9,$i(),ld.bind(null,a,u,l,e),null),l},useId:function(){var t=It(),e=bt.identifierPrefix;if(et){var l=Qe,a=Xe;l=(a&~(1<<32-ne(a)-1)).toString(32)+l,e="«"+e+"R"+l,l=Vi++,0<l&&(e+="H"+l.toString(32)),e+="»"}else l=Sb++,e="«"+e+"r"+l.toString(32)+"»";return t.memoizedState=e},useHostTransitionStatus:ys,useFormState:dd,useActionState:dd,useOptimistic:function(t){var e=It();e.memoizedState=e.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=l,e=ws.bind(null,V,!0,l),l.dispatch=e,[t,e]},useMemoCache:fs,useCacheRefresh:function(){return It().memoizedState=Rb.bind(null,V)}},Bd={readContext:Xt,use:Ki,useCallback:Td,useContext:Xt,useEffect:vd,useImperativeHandle:Sd,useInsertionEffect:yd,useLayoutEffect:wd,useMemo:Ad,useReducer:Ji,useRef:md,useState:function(){return Ji(Ke)},useDebugValue:ms,useDeferredValue:function(t,e){var l=Dt();return Ed(l,ot.memoizedState,t,e)},useTransition:function(){var t=Ji(Ke)[0],e=Dt().memoizedState;return[typeof t=="boolean"?t:En(t),e]},useSyncExternalStore:td,useId:Od,useHostTransitionStatus:ys,useFormState:hd,useActionState:hd,useOptimistic:function(t,e){var l=Dt();return ud(l,ot,t,e)},useMemoCache:fs,useCacheRefresh:_d},Ob={readContext:Xt,use:Ki,useCallback:Td,useContext:Xt,useEffect:vd,useImperativeHandle:Sd,useInsertionEffect:yd,useLayoutEffect:wd,useMemo:Ad,useReducer:hs,useRef:md,useState:function(){return hs(Ke)},useDebugValue:ms,useDeferredValue:function(t,e){var l=Dt();return ot===null?bs(l,t,e):Ed(l,ot.memoizedState,t,e)},useTransition:function(){var t=hs(Ke)[0],e=Dt().memoizedState;return[typeof t=="boolean"?t:En(t),e]},useSyncExternalStore:td,useId:Od,useHostTransitionStatus:ys,useFormState:gd,useActionState:gd,useOptimistic:function(t,e){var l=Dt();return ot!==null?ud(l,ot,t,e):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:fs,useCacheRefresh:_d},Ea=null,kn=0;function Ii(t){var e=kn;return kn+=1,Ea===null&&(Ea=[]),Vf(Ea,t,e)}function On(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function tu(t,e){throw e.$$typeof===D?Error(o(525)):(t=Object.prototype.toString.call(e),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function qd(t){var e=t._init;return e(t._payload)}function Hd(t){function e(w,v){if(t){var x=w.deletions;x===null?(w.deletions=[v],w.flags|=16):x.push(v)}}function l(w,v){if(!t)return null;for(;v!==null;)e(w,v),v=v.sibling;return null}function a(w){for(var v=new Map;w!==null;)w.key!==null?v.set(w.key,w):v.set(w.index,w),w=w.sibling;return v}function n(w,v){return w=Ge(w,v),w.index=0,w.sibling=null,w}function u(w,v,x){return w.index=x,t?(x=w.alternate,x!==null?(x=x.index,x<v?(w.flags|=67108866,v):x):(w.flags|=67108866,v)):(w.flags|=1048576,v)}function f(w){return t&&w.alternate===null&&(w.flags|=67108866),w}function d(w,v,x,O){return v===null||v.tag!==6?(v=Yr(x,w.mode,O),v.return=w,v):(v=n(v,x),v.return=w,v)}function m(w,v,x,O){var C=x.type;return C===B?k(w,v,x.props.children,O,x.key):v!==null&&(v.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===J&&qd(C)===v.type)?(v=n(v,x.props),On(v,x),v.return=w,v):(v=qi(x.type,x.key,x.props,null,w.mode,O),On(v,x),v.return=w,v)}function T(w,v,x,O){return v===null||v.tag!==4||v.stateNode.containerInfo!==x.containerInfo||v.stateNode.implementation!==x.implementation?(v=Gr(x,w.mode,O),v.return=w,v):(v=n(v,x.children||[]),v.return=w,v)}function k(w,v,x,O,C){return v===null||v.tag!==7?(v=Cl(x,w.mode,O,C),v.return=w,v):(v=n(v,x),v.return=w,v)}function _(w,v,x){if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return v=Yr(""+v,w.mode,x),v.return=w,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Y:return x=qi(v.type,v.key,v.props,null,w.mode,x),On(x,v),x.return=w,x;case M:return v=Gr(v,w.mode,x),v.return=w,v;case J:var O=v._init;return v=O(v._payload),_(w,v,x)}if(N(v)||he(v))return v=Cl(v,w.mode,x,null),v.return=w,v;if(typeof v.then=="function")return _(w,Ii(v),x);if(v.$$typeof===ut)return _(w,Li(w,v),x);tu(w,v)}return null}function A(w,v,x,O){var C=v!==null?v.key:null;if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return C!==null?null:d(w,v,""+x,O);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Y:return x.key===C?m(w,v,x,O):null;case M:return x.key===C?T(w,v,x,O):null;case J:return C=x._init,x=C(x._payload),A(w,v,x,O)}if(N(x)||he(x))return C!==null?null:k(w,v,x,O,null);if(typeof x.then=="function")return A(w,v,Ii(x),O);if(x.$$typeof===ut)return A(w,v,Li(w,x),O);tu(w,x)}return null}function E(w,v,x,O,C){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return w=w.get(x)||null,d(v,w,""+O,C);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case Y:return w=w.get(O.key===null?x:O.key)||null,m(v,w,O,C);case M:return w=w.get(O.key===null?x:O.key)||null,T(v,w,O,C);case J:var K=O._init;return O=K(O._payload),E(w,v,x,O,C)}if(N(O)||he(O))return w=w.get(x)||null,k(v,w,O,C,null);if(typeof O.then=="function")return E(w,v,x,Ii(O),C);if(O.$$typeof===ut)return E(w,v,x,Li(v,O),C);tu(v,O)}return null}function Q(w,v,x,O){for(var C=null,K=null,j=v,G=v=0,Ht=null;j!==null&&G<x.length;G++){j.index>G?(Ht=j,j=null):Ht=j.sibling;var tt=A(w,j,x[G],O);if(tt===null){j===null&&(j=Ht);break}t&&j&&tt.alternate===null&&e(w,j),v=u(tt,v,G),K===null?C=tt:K.sibling=tt,K=tt,j=Ht}if(G===x.length)return l(w,j),et&&Ll(w,G),C;if(j===null){for(;G<x.length;G++)j=_(w,x[G],O),j!==null&&(v=u(j,v,G),K===null?C=j:K.sibling=j,K=j);return et&&Ll(w,G),C}for(j=a(j);G<x.length;G++)Ht=E(j,w,G,x[G],O),Ht!==null&&(t&&Ht.alternate!==null&&j.delete(Ht.key===null?G:Ht.key),v=u(Ht,v,G),K===null?C=Ht:K.sibling=Ht,K=Ht);return t&&j.forEach(function(El){return e(w,El)}),et&&Ll(w,G),C}function L(w,v,x,O){if(x==null)throw Error(o(151));for(var C=null,K=null,j=v,G=v=0,Ht=null,tt=x.next();j!==null&&!tt.done;G++,tt=x.next()){j.index>G?(Ht=j,j=null):Ht=j.sibling;var El=A(w,j,tt.value,O);if(El===null){j===null&&(j=Ht);break}t&&j&&El.alternate===null&&e(w,j),v=u(El,v,G),K===null?C=El:K.sibling=El,K=El,j=Ht}if(tt.done)return l(w,j),et&&Ll(w,G),C;if(j===null){for(;!tt.done;G++,tt=x.next())tt=_(w,tt.value,O),tt!==null&&(v=u(tt,v,G),K===null?C=tt:K.sibling=tt,K=tt);return et&&Ll(w,G),C}for(j=a(j);!tt.done;G++,tt=x.next())tt=E(j,w,G,tt.value,O),tt!==null&&(t&&tt.alternate!==null&&j.delete(tt.key===null?G:tt.key),v=u(tt,v,G),K===null?C=tt:K.sibling=tt,K=tt);return t&&j.forEach(function(_v){return e(w,_v)}),et&&Ll(w,G),C}function dt(w,v,x,O){if(typeof x=="object"&&x!==null&&x.type===B&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Y:t:{for(var C=x.key;v!==null;){if(v.key===C){if(C=x.type,C===B){if(v.tag===7){l(w,v.sibling),O=n(v,x.props.children),O.return=w,w=O;break t}}else if(v.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===J&&qd(C)===v.type){l(w,v.sibling),O=n(v,x.props),On(O,x),O.return=w,w=O;break t}l(w,v);break}else e(w,v);v=v.sibling}x.type===B?(O=Cl(x.props.children,w.mode,O,x.key),O.return=w,w=O):(O=qi(x.type,x.key,x.props,null,w.mode,O),On(O,x),O.return=w,w=O)}return f(w);case M:t:{for(C=x.key;v!==null;){if(v.key===C)if(v.tag===4&&v.stateNode.containerInfo===x.containerInfo&&v.stateNode.implementation===x.implementation){l(w,v.sibling),O=n(v,x.children||[]),O.return=w,w=O;break t}else{l(w,v);break}else e(w,v);v=v.sibling}O=Gr(x,w.mode,O),O.return=w,w=O}return f(w);case J:return C=x._init,x=C(x._payload),dt(w,v,x,O)}if(N(x))return Q(w,v,x,O);if(he(x)){if(C=he(x),typeof C!="function")throw Error(o(150));return x=C.call(x),L(w,v,x,O)}if(typeof x.then=="function")return dt(w,v,Ii(x),O);if(x.$$typeof===ut)return dt(w,v,Li(w,x),O);tu(w,x)}return typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint"?(x=""+x,v!==null&&v.tag===6?(l(w,v.sibling),O=n(v,x),O.return=w,w=O):(l(w,v),O=Yr(x,w.mode,O),O.return=w,w=O),f(w)):l(w,v)}return function(w,v,x,O){try{kn=0;var C=dt(w,v,x,O);return Ea=null,C}catch(j){if(j===yn||j===Gi)throw j;var K=ue(29,j,null,w.mode);return K.lanes=O,K.return=w,K}finally{}}}var za=Hd(!0),Cd=Hd(!1),we=Vt(null),Me=null;function ol(t){var e=t.alternate;I(Ut,Ut.current&1),I(we,t),Me===null&&(e===null||xa.current!==null||e.memoizedState!==null)&&(Me=t)}function jd(t){if(t.tag===22){if(I(Ut,Ut.current),I(we,t),Me===null){var e=t.alternate;e!==null&&e.memoizedState!==null&&(Me=t)}}else fl()}function fl(){I(Ut,Ut.current),I(we,we.current)}function Je(t){At(we),Me===t&&(Me=null),At(Ut)}var Ut=Vt(0);function eu(t){for(var e=t;e!==null;){if(e.tag===13){var l=e.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||oc(l)))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}function xs(t,e,l,a){e=t.memoizedState,l=l(a,e),l=l==null?e:R({},e,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var Ss={enqueueSetState:function(t,e,l){t=t._reactInternals;var a=oe(),n=rl(a);n.payload=e,l!=null&&(n.callback=l),e=sl(t,n,a),e!==null&&(fe(e,t,a),xn(e,t,a))},enqueueReplaceState:function(t,e,l){t=t._reactInternals;var a=oe(),n=rl(a);n.tag=1,n.payload=e,l!=null&&(n.callback=l),e=sl(t,n,a),e!==null&&(fe(e,t,a),xn(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var l=oe(),a=rl(l);a.tag=2,e!=null&&(a.callback=e),e=sl(t,a,l),e!==null&&(fe(e,t,l),xn(e,t,l))}};function Ld(t,e,l,a,n,u,f){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,u,f):e.prototype&&e.prototype.isPureReactComponent?!fn(l,a)||!fn(n,u):!0}function Yd(t,e,l,a){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(l,a),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(l,a),e.state!==t&&Ss.enqueueReplaceState(e,e.state,null)}function Kl(t,e){var l=e;if("ref"in e){l={};for(var a in e)a!=="ref"&&(l[a]=e[a])}if(t=t.defaultProps){l===e&&(l=R({},l));for(var n in t)l[n]===void 0&&(l[n]=t[n])}return l}var lu=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof r=="object"&&typeof r.emit=="function"){r.emit("uncaughtException",t);return}console.error(t)};function Gd(t){lu(t)}function Xd(t){console.error(t)}function Qd(t){lu(t)}function au(t,e){try{var l=t.onUncaughtError;l(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function Zd(t,e,l){try{var a=t.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Ts(t,e,l){return l=rl(l),l.tag=3,l.payload={element:null},l.callback=function(){au(t,e)},l}function Vd(t){return t=rl(t),t.tag=3,t}function Kd(t,e,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var u=a.value;t.payload=function(){return n(u)},t.callback=function(){Zd(e,l,a)}}var f=l.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){Zd(e,l,a),typeof n!="function"&&(bl===null?bl=new Set([this]):bl.add(this));var d=a.stack;this.componentDidCatch(a.value,{componentStack:d!==null?d:""})})}function _b(t,e,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=l.alternate,e!==null&&mn(e,l,n,!0),l=we.current,l!==null){switch(l.tag){case 13:return Me===null?Ks():l.alternate===null&&zt===0&&(zt=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===Pr?l.flags|=16384:(e=l.updateQueue,e===null?l.updateQueue=new Set([a]):e.add(a),$s(t,a,n)),!1;case 22:return l.flags|=65536,a===Pr?l.flags|=16384:(e=l.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=e):(l=e.retryQueue,l===null?e.retryQueue=new Set([a]):l.add(a)),$s(t,a,n)),!1}throw Error(o(435,l.tag))}return $s(t,a,n),Ks(),!1}if(et)return e=we.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=n,a!==Zr&&(t=Error(o(422),{cause:a}),gn(me(t,l)))):(a!==Zr&&(e=Error(o(423),{cause:a}),gn(me(e,l))),t=t.current.alternate,t.flags|=65536,n&=-n,t.lanes|=n,a=me(a,l),n=Ts(t.stateNode,a,n),es(t,n),zt!==4&&(zt=2)),!1;var u=Error(o(520),{cause:a});if(u=me(u,l),qn===null?qn=[u]:qn.push(u),zt!==4&&(zt=2),e===null)return!0;a=me(a,l),l=e;do{switch(l.tag){case 3:return l.flags|=65536,t=n&-n,l.lanes|=t,t=Ts(l.stateNode,a,t),es(l,t),!1;case 1:if(e=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(bl===null||!bl.has(u))))return l.flags|=65536,n&=-n,l.lanes|=n,n=Vd(n),Kd(n,t,l,a),es(l,n),!1}l=l.return}while(l!==null);return!1}var Jd=Error(o(461)),Bt=!1;function Ct(t,e,l,a){e.child=t===null?Cd(e,null,l,a):za(e,t.child,l,a)}function $d(t,e,l,a,n){l=l.render;var u=e.ref;if("ref"in a){var f={};for(var d in a)d!=="ref"&&(f[d]=a[d])}else f=a;return Ql(e),a=us(t,e,l,f,u,n),d=rs(),t!==null&&!Bt?(ss(t,e,n),$e(t,e,n)):(et&&d&&Xr(e),e.flags|=1,Ct(t,e,a,n),e.child)}function Wd(t,e,l,a,n){if(t===null){var u=l.type;return typeof u=="function"&&!Lr(u)&&u.defaultProps===void 0&&l.compare===null?(e.tag=15,e.type=u,Fd(t,e,u,a,n)):(t=qi(l.type,null,a,e,e.mode,n),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!Ds(t,n)){var f=u.memoizedProps;if(l=l.compare,l=l!==null?l:fn,l(f,a)&&t.ref===e.ref)return $e(t,e,n)}return e.flags|=1,t=Ge(u,a),t.ref=e.ref,t.return=e,e.child=t}function Fd(t,e,l,a,n){if(t!==null){var u=t.memoizedProps;if(fn(u,a)&&t.ref===e.ref)if(Bt=!1,e.pendingProps=a=u,Ds(t,n))(t.flags&131072)!==0&&(Bt=!0);else return e.lanes=t.lanes,$e(t,e,n)}return As(t,e,l,a,n)}function Pd(t,e,l){var a=e.pendingProps,n=a.children,u=t!==null?t.memoizedState:null;if(a.mode==="hidden"){if((e.flags&128)!==0){if(a=u!==null?u.baseLanes|l:l,t!==null){for(n=e.child=t.child,u=0;n!==null;)u=u|n.lanes|n.childLanes,n=n.sibling;e.childLanes=u&~a}else e.childLanes=0,e.child=null;return Id(t,e,a,l)}if((l&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Yi(e,u!==null?u.cachePool:null),u!==null?Ff(e,u):as(),jd(e);else return e.lanes=e.childLanes=536870912,Id(t,e,u!==null?u.baseLanes|l:l,l)}else u!==null?(Yi(e,u.cachePool),Ff(e,u),fl(),e.memoizedState=null):(t!==null&&Yi(e,null),as(),fl());return Ct(t,e,n,l),e.child}function Id(t,e,l,a){var n=Fr();return n=n===null?null:{parent:Mt._currentValue,pool:n},e.memoizedState={baseLanes:l,cachePool:n},t!==null&&Yi(e,null),as(),jd(e),t!==null&&mn(t,e,a,!0),null}function nu(t,e){var l=e.ref;if(l===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(o(284));(t===null||t.ref!==l)&&(e.flags|=4194816)}}function As(t,e,l,a,n){return Ql(e),l=us(t,e,l,a,void 0,n),a=rs(),t!==null&&!Bt?(ss(t,e,n),$e(t,e,n)):(et&&a&&Xr(e),e.flags|=1,Ct(t,e,l,n),e.child)}function th(t,e,l,a,n,u){return Ql(e),e.updateQueue=null,l=If(e,a,l,n),Pf(t),a=rs(),t!==null&&!Bt?(ss(t,e,u),$e(t,e,u)):(et&&a&&Xr(e),e.flags|=1,Ct(t,e,l,u),e.child)}function eh(t,e,l,a,n){if(Ql(e),e.stateNode===null){var u=ma,f=l.contextType;typeof f=="object"&&f!==null&&(u=Xt(f)),u=new l(a,u),e.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Ss,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=a,u.state=e.memoizedState,u.refs={},Ir(e),f=l.contextType,u.context=typeof f=="object"&&f!==null?Xt(f):ma,u.state=e.memoizedState,f=l.getDerivedStateFromProps,typeof f=="function"&&(xs(e,l,f,a),u.state=e.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(f=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),f!==u.state&&Ss.enqueueReplaceState(u,u.state,null),Tn(e,a,u,n),Sn(),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308),a=!0}else if(t===null){u=e.stateNode;var d=e.memoizedProps,m=Kl(l,d);u.props=m;var T=u.context,k=l.contextType;f=ma,typeof k=="object"&&k!==null&&(f=Xt(k));var _=l.getDerivedStateFromProps;k=typeof _=="function"||typeof u.getSnapshotBeforeUpdate=="function",d=e.pendingProps!==d,k||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(d||T!==f)&&Yd(e,u,a,f),ul=!1;var A=e.memoizedState;u.state=A,Tn(e,a,u,n),Sn(),T=e.memoizedState,d||A!==T||ul?(typeof _=="function"&&(xs(e,l,_,a),T=e.memoizedState),(m=ul||Ld(e,l,m,a,A,T,f))?(k||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(e.flags|=4194308)):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=T),u.props=a,u.state=T,u.context=f,a=m):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{u=e.stateNode,ts(t,e),f=e.memoizedProps,k=Kl(l,f),u.props=k,_=e.pendingProps,A=u.context,T=l.contextType,m=ma,typeof T=="object"&&T!==null&&(m=Xt(T)),d=l.getDerivedStateFromProps,(T=typeof d=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(f!==_||A!==m)&&Yd(e,u,a,m),ul=!1,A=e.memoizedState,u.state=A,Tn(e,a,u,n),Sn();var E=e.memoizedState;f!==_||A!==E||ul||t!==null&&t.dependencies!==null&&ji(t.dependencies)?(typeof d=="function"&&(xs(e,l,d,a),E=e.memoizedState),(k=ul||Ld(e,l,k,a,A,E,m)||t!==null&&t.dependencies!==null&&ji(t.dependencies))?(T||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,E,m),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,E,m)),typeof u.componentDidUpdate=="function"&&(e.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof u.componentDidUpdate!="function"||f===t.memoizedProps&&A===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&A===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=E),u.props=a,u.state=E,u.context=m,a=k):(typeof u.componentDidUpdate!="function"||f===t.memoizedProps&&A===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&A===t.memoizedState||(e.flags|=1024),a=!1)}return u=a,nu(t,e),a=(e.flags&128)!==0,u||a?(u=e.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:u.render(),e.flags|=1,t!==null&&a?(e.child=za(e,t.child,null,n),e.child=za(e,null,l,n)):Ct(t,e,l,n),e.memoizedState=u.state,t=e.child):t=$e(t,e,n),t}function lh(t,e,l,a){return pn(),e.flags|=256,Ct(t,e,l,a),e.child}var Es={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function zs(t){return{baseLanes:t,cachePool:Xf()}}function Rs(t,e,l){return t=t!==null?t.childLanes&~l:0,e&&(t|=xe),t}function ah(t,e,l){var a=e.pendingProps,n=!1,u=(e.flags&128)!==0,f;if((f=u)||(f=t!==null&&t.memoizedState===null?!1:(Ut.current&2)!==0),f&&(n=!0,e.flags&=-129),f=(e.flags&32)!==0,e.flags&=-33,t===null){if(et){if(n?ol(e):fl(),et){var d=Et,m;if(m=d){t:{for(m=d,d=De;m.nodeType!==8;){if(!d){d=null;break t}if(m=Re(m.nextSibling),m===null){d=null;break t}}d=m}d!==null?(e.memoizedState={dehydrated:d,treeContext:jl!==null?{id:Xe,overflow:Qe}:null,retryLane:536870912,hydrationErrors:null},m=ue(18,null,null,0),m.stateNode=d,m.return=e,e.child=m,Jt=e,Et=null,m=!0):m=!1}m||Gl(e)}if(d=e.memoizedState,d!==null&&(d=d.dehydrated,d!==null))return oc(d)?e.lanes=32:e.lanes=536870912,null;Je(e)}return d=a.children,a=a.fallback,n?(fl(),n=e.mode,d=iu({mode:"hidden",children:d},n),a=Cl(a,n,l,null),d.return=e,a.return=e,d.sibling=a,e.child=d,n=e.child,n.memoizedState=zs(l),n.childLanes=Rs(t,f,l),e.memoizedState=Es,a):(ol(e),ks(e,d))}if(m=t.memoizedState,m!==null&&(d=m.dehydrated,d!==null)){if(u)e.flags&256?(ol(e),e.flags&=-257,e=Os(t,e,l)):e.memoizedState!==null?(fl(),e.child=t.child,e.flags|=128,e=null):(fl(),n=a.fallback,d=e.mode,a=iu({mode:"visible",children:a.children},d),n=Cl(n,d,l,null),n.flags|=2,a.return=e,n.return=e,a.sibling=n,e.child=a,za(e,t.child,null,l),a=e.child,a.memoizedState=zs(l),a.childLanes=Rs(t,f,l),e.memoizedState=Es,e=n);else if(ol(e),oc(d)){if(f=d.nextSibling&&d.nextSibling.dataset,f)var T=f.dgst;f=T,a=Error(o(419)),a.stack="",a.digest=f,gn({value:a,source:null,stack:null}),e=Os(t,e,l)}else if(Bt||mn(t,e,l,!1),f=(l&t.childLanes)!==0,Bt||f){if(f=bt,f!==null&&(a=l&-l,a=(a&42)!==0?1:fr(a),a=(a&(f.suspendedLanes|l))!==0?0:a,a!==0&&a!==m.retryLane))throw m.retryLane=a,ga(t,a),fe(f,t,a),Jd;d.data==="$?"||Ks(),e=Os(t,e,l)}else d.data==="$?"?(e.flags|=192,e.child=t.child,e=null):(t=m.treeContext,Et=Re(d.nextSibling),Jt=e,et=!0,Yl=null,De=!1,t!==null&&(ve[ye++]=Xe,ve[ye++]=Qe,ve[ye++]=jl,Xe=t.id,Qe=t.overflow,jl=e),e=ks(e,a.children),e.flags|=4096);return e}return n?(fl(),n=a.fallback,d=e.mode,m=t.child,T=m.sibling,a=Ge(m,{mode:"hidden",children:a.children}),a.subtreeFlags=m.subtreeFlags&65011712,T!==null?n=Ge(T,n):(n=Cl(n,d,l,null),n.flags|=2),n.return=e,a.return=e,a.sibling=n,e.child=a,a=n,n=e.child,d=t.child.memoizedState,d===null?d=zs(l):(m=d.cachePool,m!==null?(T=Mt._currentValue,m=m.parent!==T?{parent:T,pool:T}:m):m=Xf(),d={baseLanes:d.baseLanes|l,cachePool:m}),n.memoizedState=d,n.childLanes=Rs(t,f,l),e.memoizedState=Es,a):(ol(e),l=t.child,t=l.sibling,l=Ge(l,{mode:"visible",children:a.children}),l.return=e,l.sibling=null,t!==null&&(f=e.deletions,f===null?(e.deletions=[t],e.flags|=16):f.push(t)),e.child=l,e.memoizedState=null,l)}function ks(t,e){return e=iu({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function iu(t,e){return t=ue(22,t,null,e),t.lanes=0,t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function Os(t,e,l){return za(e,t.child,null,l),t=ks(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function nh(t,e,l){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),Kr(t.return,e,l)}function _s(t,e,l,a,n){var u=t.memoizedState;u===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n}:(u.isBackwards=e,u.rendering=null,u.renderingStartTime=0,u.last=a,u.tail=l,u.tailMode=n)}function ih(t,e,l){var a=e.pendingProps,n=a.revealOrder,u=a.tail;if(Ct(t,e,a.children,l),a=Ut.current,(a&2)!==0)a=a&1|2,e.flags|=128;else{if(t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&nh(t,l,e);else if(t.tag===19)nh(t,l,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}a&=1}switch(I(Ut,a),n){case"forwards":for(l=e.child,n=null;l!==null;)t=l.alternate,t!==null&&eu(t)===null&&(n=l),l=l.sibling;l=n,l===null?(n=e.child,e.child=null):(n=l.sibling,l.sibling=null),_s(e,!1,n,l,u);break;case"backwards":for(l=null,n=e.child,e.child=null;n!==null;){if(t=n.alternate,t!==null&&eu(t)===null){e.child=n;break}t=n.sibling,n.sibling=l,l=n,n=t}_s(e,!0,l,null,u);break;case"together":_s(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function $e(t,e,l){if(t!==null&&(e.dependencies=t.dependencies),ml|=e.lanes,(l&e.childLanes)===0)if(t!==null){if(mn(t,e,l,!1),(l&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(o(153));if(e.child!==null){for(t=e.child,l=Ge(t,t.pendingProps),e.child=l,l.return=e;t.sibling!==null;)t=t.sibling,l=l.sibling=Ge(t,t.pendingProps),l.return=e;l.sibling=null}return e.child}function Ds(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&ji(t)))}function Db(t,e,l){switch(e.tag){case 3:mi(e,e.stateNode.containerInfo),il(e,Mt,t.memoizedState.cache),pn();break;case 27:case 5:ur(e);break;case 4:mi(e,e.stateNode.containerInfo);break;case 10:il(e,e.type,e.memoizedProps.value);break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(ol(e),e.flags|=128,null):(l&e.child.childLanes)!==0?ah(t,e,l):(ol(e),t=$e(t,e,l),t!==null?t.sibling:null);ol(e);break;case 19:var n=(t.flags&128)!==0;if(a=(l&e.childLanes)!==0,a||(mn(t,e,l,!1),a=(l&e.childLanes)!==0),n){if(a)return ih(t,e,l);e.flags|=128}if(n=e.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),I(Ut,Ut.current),a)break;return null;case 22:case 23:return e.lanes=0,Pd(t,e,l);case 24:il(e,Mt,t.memoizedState.cache)}return $e(t,e,l)}function uh(t,e,l){if(t!==null)if(t.memoizedProps!==e.pendingProps)Bt=!0;else{if(!Ds(t,l)&&(e.flags&128)===0)return Bt=!1,Db(t,e,l);Bt=(t.flags&131072)!==0}else Bt=!1,et&&(e.flags&1048576)!==0&&qf(e,Ci,e.index);switch(e.lanes=0,e.tag){case 16:t:{t=e.pendingProps;var a=e.elementType,n=a._init;if(a=n(a._payload),e.type=a,typeof a=="function")Lr(a)?(t=Kl(a,t),e.tag=1,e=eh(null,e,a,t,l)):(e.tag=0,e=As(null,e,a,t,l));else{if(a!=null){if(n=a.$$typeof,n===ht){e.tag=11,e=$d(null,e,a,t,l);break t}else if(n===le){e.tag=14,e=Wd(null,e,a,t,l);break t}}throw e=Ml(a)||a,Error(o(306,e,""))}}return e;case 0:return As(t,e,e.type,e.pendingProps,l);case 1:return a=e.type,n=Kl(a,e.pendingProps),eh(t,e,a,n,l);case 3:t:{if(mi(e,e.stateNode.containerInfo),t===null)throw Error(o(387));a=e.pendingProps;var u=e.memoizedState;n=u.element,ts(t,e),Tn(e,a,null,l);var f=e.memoizedState;if(a=f.cache,il(e,Mt,a),a!==u.cache&&Jr(e,[Mt],l,!0),Sn(),a=f.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:f.cache},e.updateQueue.baseState=u,e.memoizedState=u,e.flags&256){e=lh(t,e,a,l);break t}else if(a!==n){n=me(Error(o(424)),e),gn(n),e=lh(t,e,a,l);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Et=Re(t.firstChild),Jt=e,et=!0,Yl=null,De=!0,l=Cd(e,null,a,l),e.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(pn(),a===n){e=$e(t,e,l);break t}Ct(t,e,a,l)}e=e.child}return e;case 26:return nu(t,e),t===null?(l=op(e.type,null,e.pendingProps,null))?e.memoizedState=l:et||(l=e.type,t=e.pendingProps,a=yu(el.current).createElement(l),a[Gt]=e,a[Ft]=t,Lt(a,l,t),Nt(a),e.stateNode=a):e.memoizedState=op(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return ur(e),t===null&&et&&(a=e.stateNode=rp(e.type,e.pendingProps,el.current),Jt=e,De=!0,n=Et,wl(e.type)?(fc=n,Et=Re(a.firstChild)):Et=n),Ct(t,e,e.pendingProps.children,l),nu(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&et&&((n=a=Et)&&(a=iv(a,e.type,e.pendingProps,De),a!==null?(e.stateNode=a,Jt=e,Et=Re(a.firstChild),De=!1,n=!0):n=!1),n||Gl(e)),ur(e),n=e.type,u=e.pendingProps,f=t!==null?t.memoizedProps:null,a=u.children,rc(n,u)?a=null:f!==null&&rc(n,f)&&(e.flags|=32),e.memoizedState!==null&&(n=us(t,e,Tb,null,null,l),Zn._currentValue=n),nu(t,e),Ct(t,e,a,l),e.child;case 6:return t===null&&et&&((t=l=Et)&&(l=uv(l,e.pendingProps,De),l!==null?(e.stateNode=l,Jt=e,Et=null,t=!0):t=!1),t||Gl(e)),null;case 13:return ah(t,e,l);case 4:return mi(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=za(e,null,a,l):Ct(t,e,a,l),e.child;case 11:return $d(t,e,e.type,e.pendingProps,l);case 7:return Ct(t,e,e.pendingProps,l),e.child;case 8:return Ct(t,e,e.pendingProps.children,l),e.child;case 12:return Ct(t,e,e.pendingProps.children,l),e.child;case 10:return a=e.pendingProps,il(e,e.type,a.value),Ct(t,e,a.children,l),e.child;case 9:return n=e.type._context,a=e.pendingProps.children,Ql(e),n=Xt(n),a=a(n),e.flags|=1,Ct(t,e,a,l),e.child;case 14:return Wd(t,e,e.type,e.pendingProps,l);case 15:return Fd(t,e,e.type,e.pendingProps,l);case 19:return ih(t,e,l);case 31:return a=e.pendingProps,l=e.mode,a={mode:a.mode,children:a.children},t===null?(l=iu(a,l),l.ref=e.ref,e.child=l,l.return=e,e=l):(l=Ge(t.child,a),l.ref=e.ref,e.child=l,l.return=e,e=l),e;case 22:return Pd(t,e,l);case 24:return Ql(e),a=Xt(Mt),t===null?(n=Fr(),n===null&&(n=bt,u=$r(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=l),n=u),e.memoizedState={parent:a,cache:n},Ir(e),il(e,Mt,n)):((t.lanes&l)!==0&&(ts(t,e),Tn(e,null,null,l),Sn()),n=t.memoizedState,u=e.memoizedState,n.parent!==a?(n={parent:a,cache:a},e.memoizedState=n,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=n),il(e,Mt,a)):(a=u.cache,il(e,Mt,a),a!==n.cache&&Jr(e,[Mt],l,!0))),Ct(t,e,e.pendingProps.children,l),e.child;case 29:throw e.pendingProps}throw Error(o(156,e.tag))}function We(t){t.flags|=4}function rh(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!gp(e)){if(e=we.current,e!==null&&((P&4194048)===P?Me!==null:(P&62914560)!==P&&(P&536870912)===0||e!==Me))throw wn=Pr,Qf;t.flags|=8192}}function uu(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Co():536870912,t.lanes|=e,_a|=e)}function _n(t,e){if(!et)switch(t.tailMode){case"hidden":e=t.tail;for(var l=null;e!==null;)e.alternate!==null&&(l=e),e=e.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function xt(t){var e=t.alternate!==null&&t.alternate.child===t.child,l=0,a=0;if(e)for(var n=t.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=t,n=n.sibling;else for(n=t.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=t,n=n.sibling;return t.subtreeFlags|=a,t.childLanes=l,e}function Mb(t,e,l){var a=e.pendingProps;switch(Qr(e),e.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return xt(e),null;case 1:return xt(e),null;case 3:return l=e.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),Ve(Mt),ta(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(hn(e)?We(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,jf())),xt(e),null;case 26:return l=e.memoizedState,t===null?(We(e),l!==null?(xt(e),rh(e,l)):(xt(e),e.flags&=-16777217)):l?l!==t.memoizedState?(We(e),xt(e),rh(e,l)):(xt(e),e.flags&=-16777217):(t.memoizedProps!==a&&We(e),xt(e),e.flags&=-16777217),null;case 27:bi(e),l=el.current;var n=e.type;if(t!==null&&e.stateNode!=null)t.memoizedProps!==a&&We(e);else{if(!a){if(e.stateNode===null)throw Error(o(166));return xt(e),null}t=Kt.current,hn(e)?Hf(e):(t=rp(n,a,l),e.stateNode=t,We(e))}return xt(e),null;case 5:if(bi(e),l=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&We(e);else{if(!a){if(e.stateNode===null)throw Error(o(166));return xt(e),null}if(t=Kt.current,hn(e))Hf(e);else{switch(n=yu(el.current),t){case 1:t=n.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:t=n.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":t=n.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":t=n.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":t=n.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof a.is=="string"?n.createElement("select",{is:a.is}):n.createElement("select"),a.multiple?t.multiple=!0:a.size&&(t.size=a.size);break;default:t=typeof a.is=="string"?n.createElement(l,{is:a.is}):n.createElement(l)}}t[Gt]=e,t[Ft]=a;t:for(n=e.child;n!==null;){if(n.tag===5||n.tag===6)t.appendChild(n.stateNode);else if(n.tag!==4&&n.tag!==27&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break t;for(;n.sibling===null;){if(n.return===null||n.return===e)break t;n=n.return}n.sibling.return=n.return,n=n.sibling}e.stateNode=t;t:switch(Lt(t,l,a),l){case"button":case"input":case"select":case"textarea":t=!!a.autoFocus;break t;case"img":t=!0;break t;default:t=!1}t&&We(e)}}return xt(e),e.flags&=-16777217,null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&We(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(o(166));if(t=el.current,hn(e)){if(t=e.stateNode,l=e.memoizedProps,a=null,n=Jt,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}t[Gt]=e,t=!!(t.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||tp(t.nodeValue,l)),t||Gl(e)}else t=yu(t).createTextNode(a),t[Gt]=e,e.stateNode=t}return xt(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(n=hn(e),a!==null&&a.dehydrated!==null){if(t===null){if(!n)throw Error(o(318));if(n=e.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(o(317));n[Gt]=e}else pn(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;xt(e),n=!1}else n=jf(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),n=!0;if(!n)return e.flags&256?(Je(e),e):(Je(e),null)}if(Je(e),(e.flags&128)!==0)return e.lanes=l,e;if(l=a!==null,t=t!==null&&t.memoizedState!==null,l){a=e.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool);var u=null;a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==n&&(a.flags|=2048)}return l!==t&&l&&(e.child.flags|=8192),uu(e,e.updateQueue),xt(e),null;case 4:return ta(),t===null&&lc(e.stateNode.containerInfo),xt(e),null;case 10:return Ve(e.type),xt(e),null;case 19:if(At(Ut),n=e.memoizedState,n===null)return xt(e),null;if(a=(e.flags&128)!==0,u=n.rendering,u===null)if(a)_n(n,!1);else{if(zt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=eu(t),u!==null){for(e.flags|=128,_n(n,!1),t=u.updateQueue,e.updateQueue=t,uu(e,t),e.subtreeFlags=0,t=l,l=e.child;l!==null;)Bf(l,t),l=l.sibling;return I(Ut,Ut.current&1|2),e.child}t=t.sibling}n.tail!==null&&_e()>cu&&(e.flags|=128,a=!0,_n(n,!1),e.lanes=4194304)}else{if(!a)if(t=eu(u),t!==null){if(e.flags|=128,a=!0,t=t.updateQueue,e.updateQueue=t,uu(e,t),_n(n,!0),n.tail===null&&n.tailMode==="hidden"&&!u.alternate&&!et)return xt(e),null}else 2*_e()-n.renderingStartTime>cu&&l!==536870912&&(e.flags|=128,a=!0,_n(n,!1),e.lanes=4194304);n.isBackwards?(u.sibling=e.child,e.child=u):(t=n.last,t!==null?t.sibling=u:e.child=u,n.last=u)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=_e(),e.sibling=null,t=Ut.current,I(Ut,a?t&1|2:t&1),e):(xt(e),null);case 22:case 23:return Je(e),ns(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?(l&536870912)!==0&&(e.flags&128)===0&&(xt(e),e.subtreeFlags&6&&(e.flags|=8192)):xt(e),l=e.updateQueue,l!==null&&uu(e,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==l&&(e.flags|=2048),t!==null&&At(Zl),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),Ve(Mt),xt(e),null;case 25:return null;case 30:return null}throw Error(o(156,e.tag))}function Ub(t,e){switch(Qr(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Ve(Mt),ta(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return bi(e),null;case 13:if(Je(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(o(340));pn()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return At(Ut),null;case 4:return ta(),null;case 10:return Ve(e.type),null;case 22:case 23:return Je(e),ns(),t!==null&&At(Zl),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Ve(Mt),null;case 25:return null;default:return null}}function sh(t,e){switch(Qr(e),e.tag){case 3:Ve(Mt),ta();break;case 26:case 27:case 5:bi(e);break;case 4:ta();break;case 13:Je(e);break;case 19:At(Ut);break;case 10:Ve(e.type);break;case 22:case 23:Je(e),ns(),t!==null&&At(Zl);break;case 24:Ve(Mt)}}function Dn(t,e){try{var l=e.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&t)===t){a=void 0;var u=l.create,f=l.inst;a=u(),f.destroy=a}l=l.next}while(l!==n)}}catch(d){gt(e,e.return,d)}}function dl(t,e,l){try{var a=e.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&t)===t){var f=a.inst,d=f.destroy;if(d!==void 0){f.destroy=void 0,n=e;var m=l,T=d;try{T()}catch(k){gt(n,m,k)}}}a=a.next}while(a!==u)}}catch(k){gt(e,e.return,k)}}function ch(t){var e=t.updateQueue;if(e!==null){var l=t.stateNode;try{Wf(e,l)}catch(a){gt(t,t.return,a)}}}function oh(t,e,l){l.props=Kl(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(a){gt(t,e,a)}}function Mn(t,e){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof l=="function"?t.refCleanup=l(a):l.current=a}}catch(n){gt(t,e,n)}}function Ue(t,e){var l=t.ref,a=t.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){gt(t,e,n)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){gt(t,e,n)}else l.current=null}function fh(t){var e=t.type,l=t.memoizedProps,a=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break t;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){gt(t,t.return,n)}}function Ms(t,e,l){try{var a=t.stateNode;tv(a,t.type,l,e),a[Ft]=e}catch(n){gt(t,t.return,n)}}function dh(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&wl(t.type)||t.tag===4}function Us(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||dh(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&wl(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Ns(t,e,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(t,e):(e=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,e.appendChild(t),l=l._reactRootContainer,l!=null||e.onclick!==null||(e.onclick=vu));else if(a!==4&&(a===27&&wl(t.type)&&(l=t.stateNode,e=null),t=t.child,t!==null))for(Ns(t,e,l),t=t.sibling;t!==null;)Ns(t,e,l),t=t.sibling}function ru(t,e,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?l.insertBefore(t,e):l.appendChild(t);else if(a!==4&&(a===27&&wl(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(ru(t,e,l),t=t.sibling;t!==null;)ru(t,e,l),t=t.sibling}function hh(t){var e=t.stateNode,l=t.memoizedProps;try{for(var a=t.type,n=e.attributes;n.length;)e.removeAttributeNode(n[0]);Lt(e,a,l),e[Gt]=t,e[Ft]=l}catch(u){gt(t,t.return,u)}}var Fe=!1,kt=!1,Bs=!1,ph=typeof WeakSet=="function"?WeakSet:Set,qt=null;function Nb(t,e){if(t=t.containerInfo,ic=Eu,t=Ef(t),Ur(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else t:{l=(l=t.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break t}var f=0,d=-1,m=-1,T=0,k=0,_=t,A=null;e:for(;;){for(var E;_!==l||n!==0&&_.nodeType!==3||(d=f+n),_!==u||a!==0&&_.nodeType!==3||(m=f+a),_.nodeType===3&&(f+=_.nodeValue.length),(E=_.firstChild)!==null;)A=_,_=E;for(;;){if(_===t)break e;if(A===l&&++T===n&&(d=f),A===u&&++k===a&&(m=f),(E=_.nextSibling)!==null)break;_=A,A=_.parentNode}_=E}l=d===-1||m===-1?null:{start:d,end:m}}else l=null}l=l||{start:0,end:0}}else l=null;for(uc={focusedElem:t,selectionRange:l},Eu=!1,qt=e;qt!==null;)if(e=qt,t=e.child,(e.subtreeFlags&1024)!==0&&t!==null)t.return=e,qt=t;else for(;qt!==null;){switch(e=qt,u=e.alternate,t=e.flags,e.tag){case 0:break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,l=e,n=u.memoizedProps,u=u.memoizedState,a=l.stateNode;try{var Q=Kl(l.type,n,l.elementType===l.type);t=a.getSnapshotBeforeUpdate(Q,u),a.__reactInternalSnapshotBeforeUpdate=t}catch(L){gt(l,l.return,L)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,l=t.nodeType,l===9)cc(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":cc(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(o(163))}if(t=e.sibling,t!==null){t.return=e.return,qt=t;break}qt=e.return}}function gh(t,e,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:hl(t,l),a&4&&Dn(5,l);break;case 1:if(hl(t,l),a&4)if(t=l.stateNode,e===null)try{t.componentDidMount()}catch(f){gt(l,l.return,f)}else{var n=Kl(l.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(n,e,t.__reactInternalSnapshotBeforeUpdate)}catch(f){gt(l,l.return,f)}}a&64&&ch(l),a&512&&Mn(l,l.return);break;case 3:if(hl(t,l),a&64&&(t=l.updateQueue,t!==null)){if(e=null,l.child!==null)switch(l.child.tag){case 27:case 5:e=l.child.stateNode;break;case 1:e=l.child.stateNode}try{Wf(t,e)}catch(f){gt(l,l.return,f)}}break;case 27:e===null&&a&4&&hh(l);case 26:case 5:hl(t,l),e===null&&a&4&&fh(l),a&512&&Mn(l,l.return);break;case 12:hl(t,l);break;case 13:hl(t,l),a&4&&vh(t,l),a&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=Xb.bind(null,l),rv(t,l))));break;case 22:if(a=l.memoizedState!==null||Fe,!a){e=e!==null&&e.memoizedState!==null||kt,n=Fe;var u=kt;Fe=a,(kt=e)&&!u?pl(t,l,(l.subtreeFlags&8772)!==0):hl(t,l),Fe=n,kt=u}break;case 30:break;default:hl(t,l)}}function mh(t){var e=t.alternate;e!==null&&(t.alternate=null,mh(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&pr(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var wt=null,te=!1;function Pe(t,e,l){for(l=l.child;l!==null;)bh(t,e,l),l=l.sibling}function bh(t,e,l){if(ae&&typeof ae.onCommitFiberUnmount=="function")try{ae.onCommitFiberUnmount(Pa,l)}catch{}switch(l.tag){case 26:kt||Ue(l,e),Pe(t,e,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:kt||Ue(l,e);var a=wt,n=te;wl(l.type)&&(wt=l.stateNode,te=!1),Pe(t,e,l),Yn(l.stateNode),wt=a,te=n;break;case 5:kt||Ue(l,e);case 6:if(a=wt,n=te,wt=null,Pe(t,e,l),wt=a,te=n,wt!==null)if(te)try{(wt.nodeType===9?wt.body:wt.nodeName==="HTML"?wt.ownerDocument.body:wt).removeChild(l.stateNode)}catch(u){gt(l,e,u)}else try{wt.removeChild(l.stateNode)}catch(u){gt(l,e,u)}break;case 18:wt!==null&&(te?(t=wt,ip(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),$n(t)):ip(wt,l.stateNode));break;case 4:a=wt,n=te,wt=l.stateNode.containerInfo,te=!0,Pe(t,e,l),wt=a,te=n;break;case 0:case 11:case 14:case 15:kt||dl(2,l,e),kt||dl(4,l,e),Pe(t,e,l);break;case 1:kt||(Ue(l,e),a=l.stateNode,typeof a.componentWillUnmount=="function"&&oh(l,e,a)),Pe(t,e,l);break;case 21:Pe(t,e,l);break;case 22:kt=(a=kt)||l.memoizedState!==null,Pe(t,e,l),kt=a;break;default:Pe(t,e,l)}}function vh(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{$n(t)}catch(l){gt(e,e.return,l)}}function Bb(t){switch(t.tag){case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new ph),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new ph),e;default:throw Error(o(435,t.tag))}}function qs(t,e){var l=Bb(t);e.forEach(function(a){var n=Qb.bind(null,t,a);l.has(a)||(l.add(a),a.then(n,n))})}function re(t,e){var l=e.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],u=t,f=e,d=f;t:for(;d!==null;){switch(d.tag){case 27:if(wl(d.type)){wt=d.stateNode,te=!1;break t}break;case 5:wt=d.stateNode,te=!1;break t;case 3:case 4:wt=d.stateNode.containerInfo,te=!0;break t}d=d.return}if(wt===null)throw Error(o(160));bh(u,f,n),wt=null,te=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(e.subtreeFlags&13878)for(e=e.child;e!==null;)yh(e,t),e=e.sibling}var ze=null;function yh(t,e){var l=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:re(e,t),se(t),a&4&&(dl(3,t,t.return),Dn(3,t),dl(5,t,t.return));break;case 1:re(e,t),se(t),a&512&&(kt||l===null||Ue(l,l.return)),a&64&&Fe&&(t=t.updateQueue,t!==null&&(a=t.callbacks,a!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=ze;if(re(e,t),se(t),a&512&&(kt||l===null||Ue(l,l.return)),a&4){var u=l!==null?l.memoizedState:null;if(a=t.memoizedState,l===null)if(a===null)if(t.stateNode===null){t:{a=t.type,l=t.memoizedProps,n=n.ownerDocument||n;e:switch(a){case"title":u=n.getElementsByTagName("title")[0],(!u||u[en]||u[Gt]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),Lt(u,a,l),u[Gt]=t,Nt(u),a=u;break t;case"link":var f=hp("link","href",n).get(a+(l.href||""));if(f){for(var d=0;d<f.length;d++)if(u=f[d],u.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&u.getAttribute("rel")===(l.rel==null?null:l.rel)&&u.getAttribute("title")===(l.title==null?null:l.title)&&u.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){f.splice(d,1);break e}}u=n.createElement(a),Lt(u,a,l),n.head.appendChild(u);break;case"meta":if(f=hp("meta","content",n).get(a+(l.content||""))){for(d=0;d<f.length;d++)if(u=f[d],u.getAttribute("content")===(l.content==null?null:""+l.content)&&u.getAttribute("name")===(l.name==null?null:l.name)&&u.getAttribute("property")===(l.property==null?null:l.property)&&u.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&u.getAttribute("charset")===(l.charSet==null?null:l.charSet)){f.splice(d,1);break e}}u=n.createElement(a),Lt(u,a,l),n.head.appendChild(u);break;default:throw Error(o(468,a))}u[Gt]=t,Nt(u),a=u}t.stateNode=a}else pp(n,t.type,t.stateNode);else t.stateNode=dp(n,a,t.memoizedProps);else u!==a?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,a===null?pp(n,t.type,t.stateNode):dp(n,a,t.memoizedProps)):a===null&&t.stateNode!==null&&Ms(t,t.memoizedProps,l.memoizedProps)}break;case 27:re(e,t),se(t),a&512&&(kt||l===null||Ue(l,l.return)),l!==null&&a&4&&Ms(t,t.memoizedProps,l.memoizedProps);break;case 5:if(re(e,t),se(t),a&512&&(kt||l===null||Ue(l,l.return)),t.flags&32){n=t.stateNode;try{sa(n,"")}catch(E){gt(t,t.return,E)}}a&4&&t.stateNode!=null&&(n=t.memoizedProps,Ms(t,n,l!==null?l.memoizedProps:n)),a&1024&&(Bs=!0);break;case 6:if(re(e,t),se(t),a&4){if(t.stateNode===null)throw Error(o(162));a=t.memoizedProps,l=t.stateNode;try{l.nodeValue=a}catch(E){gt(t,t.return,E)}}break;case 3:if(Su=null,n=ze,ze=wu(e.containerInfo),re(e,t),ze=n,se(t),a&4&&l!==null&&l.memoizedState.isDehydrated)try{$n(e.containerInfo)}catch(E){gt(t,t.return,E)}Bs&&(Bs=!1,wh(t));break;case 4:a=ze,ze=wu(t.stateNode.containerInfo),re(e,t),se(t),ze=a;break;case 12:re(e,t),se(t);break;case 13:re(e,t),se(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Gs=_e()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,qs(t,a)));break;case 22:n=t.memoizedState!==null;var m=l!==null&&l.memoizedState!==null,T=Fe,k=kt;if(Fe=T||n,kt=k||m,re(e,t),kt=k,Fe=T,se(t),a&8192)t:for(e=t.stateNode,e._visibility=n?e._visibility&-2:e._visibility|1,n&&(l===null||m||Fe||kt||Jl(t)),l=null,e=t;;){if(e.tag===5||e.tag===26){if(l===null){m=l=e;try{if(u=m.stateNode,n)f=u.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{d=m.stateNode;var _=m.memoizedProps.style,A=_!=null&&_.hasOwnProperty("display")?_.display:null;d.style.display=A==null||typeof A=="boolean"?"":(""+A).trim()}}catch(E){gt(m,m.return,E)}}}else if(e.tag===6){if(l===null){m=e;try{m.stateNode.nodeValue=n?"":m.memoizedProps}catch(E){gt(m,m.return,E)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;l===e&&(l=null),e=e.return}l===e&&(l=null),e.sibling.return=e.return,e=e.sibling}a&4&&(a=t.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,qs(t,l))));break;case 19:re(e,t),se(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,qs(t,a)));break;case 30:break;case 21:break;default:re(e,t),se(t)}}function se(t){var e=t.flags;if(e&2){try{for(var l,a=t.return;a!==null;){if(dh(a)){l=a;break}a=a.return}if(l==null)throw Error(o(160));switch(l.tag){case 27:var n=l.stateNode,u=Us(t);ru(t,u,n);break;case 5:var f=l.stateNode;l.flags&32&&(sa(f,""),l.flags&=-33);var d=Us(t);ru(t,d,f);break;case 3:case 4:var m=l.stateNode.containerInfo,T=Us(t);Ns(t,T,m);break;default:throw Error(o(161))}}catch(k){gt(t,t.return,k)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function wh(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;wh(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function hl(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)gh(t,e.alternate,e),e=e.sibling}function Jl(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:dl(4,e,e.return),Jl(e);break;case 1:Ue(e,e.return);var l=e.stateNode;typeof l.componentWillUnmount=="function"&&oh(e,e.return,l),Jl(e);break;case 27:Yn(e.stateNode);case 26:case 5:Ue(e,e.return),Jl(e);break;case 22:e.memoizedState===null&&Jl(e);break;case 30:Jl(e);break;default:Jl(e)}t=t.sibling}}function pl(t,e,l){for(l=l&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var a=e.alternate,n=t,u=e,f=u.flags;switch(u.tag){case 0:case 11:case 15:pl(n,u,l),Dn(4,u);break;case 1:if(pl(n,u,l),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(T){gt(a,a.return,T)}if(a=u,n=a.updateQueue,n!==null){var d=a.stateNode;try{var m=n.shared.hiddenCallbacks;if(m!==null)for(n.shared.hiddenCallbacks=null,n=0;n<m.length;n++)$f(m[n],d)}catch(T){gt(a,a.return,T)}}l&&f&64&&ch(u),Mn(u,u.return);break;case 27:hh(u);case 26:case 5:pl(n,u,l),l&&a===null&&f&4&&fh(u),Mn(u,u.return);break;case 12:pl(n,u,l);break;case 13:pl(n,u,l),l&&f&4&&vh(n,u);break;case 22:u.memoizedState===null&&pl(n,u,l),Mn(u,u.return);break;case 30:break;default:pl(n,u,l)}e=e.sibling}}function Hs(t,e){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&bn(l))}function Cs(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&bn(t))}function Ne(t,e,l,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)xh(t,e,l,a),e=e.sibling}function xh(t,e,l,a){var n=e.flags;switch(e.tag){case 0:case 11:case 15:Ne(t,e,l,a),n&2048&&Dn(9,e);break;case 1:Ne(t,e,l,a);break;case 3:Ne(t,e,l,a),n&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&bn(t)));break;case 12:if(n&2048){Ne(t,e,l,a),t=e.stateNode;try{var u=e.memoizedProps,f=u.id,d=u.onPostCommit;typeof d=="function"&&d(f,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(m){gt(e,e.return,m)}}else Ne(t,e,l,a);break;case 13:Ne(t,e,l,a);break;case 23:break;case 22:u=e.stateNode,f=e.alternate,e.memoizedState!==null?u._visibility&2?Ne(t,e,l,a):Un(t,e):u._visibility&2?Ne(t,e,l,a):(u._visibility|=2,Ra(t,e,l,a,(e.subtreeFlags&10256)!==0)),n&2048&&Hs(f,e);break;case 24:Ne(t,e,l,a),n&2048&&Cs(e.alternate,e);break;default:Ne(t,e,l,a)}}function Ra(t,e,l,a,n){for(n=n&&(e.subtreeFlags&10256)!==0,e=e.child;e!==null;){var u=t,f=e,d=l,m=a,T=f.flags;switch(f.tag){case 0:case 11:case 15:Ra(u,f,d,m,n),Dn(8,f);break;case 23:break;case 22:var k=f.stateNode;f.memoizedState!==null?k._visibility&2?Ra(u,f,d,m,n):Un(u,f):(k._visibility|=2,Ra(u,f,d,m,n)),n&&T&2048&&Hs(f.alternate,f);break;case 24:Ra(u,f,d,m,n),n&&T&2048&&Cs(f.alternate,f);break;default:Ra(u,f,d,m,n)}e=e.sibling}}function Un(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var l=t,a=e,n=a.flags;switch(a.tag){case 22:Un(l,a),n&2048&&Hs(a.alternate,a);break;case 24:Un(l,a),n&2048&&Cs(a.alternate,a);break;default:Un(l,a)}e=e.sibling}}var Nn=8192;function ka(t){if(t.subtreeFlags&Nn)for(t=t.child;t!==null;)Sh(t),t=t.sibling}function Sh(t){switch(t.tag){case 26:ka(t),t.flags&Nn&&t.memoizedState!==null&&wv(ze,t.memoizedState,t.memoizedProps);break;case 5:ka(t);break;case 3:case 4:var e=ze;ze=wu(t.stateNode.containerInfo),ka(t),ze=e;break;case 22:t.memoizedState===null&&(e=t.alternate,e!==null&&e.memoizedState!==null?(e=Nn,Nn=16777216,ka(t),Nn=e):ka(t));break;default:ka(t)}}function Th(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Bn(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var a=e[l];qt=a,Eh(a,t)}Th(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ah(t),t=t.sibling}function Ah(t){switch(t.tag){case 0:case 11:case 15:Bn(t),t.flags&2048&&dl(9,t,t.return);break;case 3:Bn(t);break;case 12:Bn(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,su(t)):Bn(t);break;default:Bn(t)}}function su(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var a=e[l];qt=a,Eh(a,t)}Th(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:dl(8,e,e.return),su(e);break;case 22:l=e.stateNode,l._visibility&2&&(l._visibility&=-3,su(e));break;default:su(e)}t=t.sibling}}function Eh(t,e){for(;qt!==null;){var l=qt;switch(l.tag){case 0:case 11:case 15:dl(8,l,e);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:bn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,qt=a;else t:for(l=t;qt!==null;){a=qt;var n=a.sibling,u=a.return;if(mh(a),a===l){qt=null;break t}if(n!==null){n.return=u,qt=n;break t}qt=u}}}var qb={getCacheForType:function(t){var e=Xt(Mt),l=e.data.get(t);return l===void 0&&(l=t(),e.data.set(t,l)),l}},Hb=typeof WeakMap=="function"?WeakMap:Map,st=0,bt=null,$=null,P=0,ct=0,ce=null,gl=!1,Oa=!1,js=!1,Ie=0,zt=0,ml=0,$l=0,Ls=0,xe=0,_a=0,qn=null,ee=null,Ys=!1,Gs=0,cu=1/0,ou=null,bl=null,jt=0,vl=null,Da=null,Ma=0,Xs=0,Qs=null,zh=null,Hn=0,Zs=null;function oe(){if((st&2)!==0&&P!==0)return P&-P;if(U.T!==null){var t=ya;return t!==0?t:Ps()}return Yo()}function Rh(){xe===0&&(xe=(P&536870912)===0||et?Ho():536870912);var t=we.current;return t!==null&&(t.flags|=32),xe}function fe(t,e,l){(t===bt&&(ct===2||ct===9)||t.cancelPendingCommit!==null)&&(Ua(t,0),yl(t,P,xe,!1)),tn(t,l),((st&2)===0||t!==bt)&&(t===bt&&((st&2)===0&&($l|=l),zt===4&&yl(t,P,xe,!1)),Be(t))}function kh(t,e,l){if((st&6)!==0)throw Error(o(327));var a=!l&&(e&124)===0&&(e&t.expiredLanes)===0||Ia(t,e),n=a?Lb(t,e):Js(t,e,!0),u=a;do{if(n===0){Oa&&!a&&yl(t,e,0,!1);break}else{if(l=t.current.alternate,u&&!Cb(l)){n=Js(t,e,!1),u=!1;continue}if(n===2){if(u=e,t.errorRecoveryDisabledLanes&u)var f=0;else f=t.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){e=f;t:{var d=t;n=qn;var m=d.current.memoizedState.isDehydrated;if(m&&(Ua(d,f).flags|=256),f=Js(d,f,!1),f!==2){if(js&&!m){d.errorRecoveryDisabledLanes|=u,$l|=u,n=4;break t}u=ee,ee=n,u!==null&&(ee===null?ee=u:ee.push.apply(ee,u))}n=f}if(u=!1,n!==2)continue}}if(n===1){Ua(t,0),yl(t,e,0,!0);break}t:{switch(a=t,u=n,u){case 0:case 1:throw Error(o(345));case 4:if((e&4194048)!==e)break;case 6:yl(a,e,xe,!gl);break t;case 2:ee=null;break;case 3:case 5:break;default:throw Error(o(329))}if((e&62914560)===e&&(n=Gs+300-_e(),10<n)){if(yl(a,e,xe,!gl),xi(a,0,!0)!==0)break t;a.timeoutHandle=ap(Oh.bind(null,a,l,ee,ou,Ys,e,xe,$l,_a,gl,u,2,-0,0),n);break t}Oh(a,l,ee,ou,Ys,e,xe,$l,_a,gl,u,0,-0,0)}}break}while(!0);Be(t)}function Oh(t,e,l,a,n,u,f,d,m,T,k,_,A,E){if(t.timeoutHandle=-1,_=e.subtreeFlags,(_&8192||(_&16785408)===16785408)&&(Qn={stylesheets:null,count:0,unsuspend:yv},Sh(e),_=xv(),_!==null)){t.cancelPendingCommit=_(qh.bind(null,t,e,u,l,a,n,f,d,m,k,1,A,E)),yl(t,u,f,!T);return}qh(t,e,u,l,a,n,f,d,m)}function Cb(t){for(var e=t;;){var l=e.tag;if((l===0||l===11||l===15)&&e.flags&16384&&(l=e.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],u=n.getSnapshot;n=n.value;try{if(!ie(u(),n))return!1}catch{return!1}}if(l=e.child,e.subtreeFlags&16384&&l!==null)l.return=e,e=l;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function yl(t,e,l,a){e&=~Ls,e&=~$l,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var n=e;0<n;){var u=31-ne(n),f=1<<u;a[u]=-1,n&=~f}l!==0&&jo(t,l,e)}function fu(){return(st&6)===0?(Cn(0),!1):!0}function Vs(){if($!==null){if(ct===0)var t=$.return;else t=$,Ze=Xl=null,cs(t),Ea=null,kn=0,t=$;for(;t!==null;)sh(t.alternate,t),t=t.return;$=null}}function Ua(t,e){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,lv(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),Vs(),bt=t,$=l=Ge(t.current,null),P=e,ct=0,ce=null,gl=!1,Oa=Ia(t,e),js=!1,_a=xe=Ls=$l=ml=zt=0,ee=qn=null,Ys=!1,(e&8)!==0&&(e|=e&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=e;0<a;){var n=31-ne(a),u=1<<n;e|=t[n],a&=~u}return Ie=e,Ui(),l}function _h(t,e){V=null,U.H=Pi,e===yn||e===Gi?(e=Kf(),ct=3):e===Qf?(e=Kf(),ct=4):ct=e===Jd?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,ce=e,$===null&&(zt=1,au(t,me(e,t.current)))}function Dh(){var t=U.H;return U.H=Pi,t===null?Pi:t}function Mh(){var t=U.A;return U.A=qb,t}function Ks(){zt=4,gl||(P&4194048)!==P&&we.current!==null||(Oa=!0),(ml&134217727)===0&&($l&134217727)===0||bt===null||yl(bt,P,xe,!1)}function Js(t,e,l){var a=st;st|=2;var n=Dh(),u=Mh();(bt!==t||P!==e)&&(ou=null,Ua(t,e)),e=!1;var f=zt;t:do try{if(ct!==0&&$!==null){var d=$,m=ce;switch(ct){case 8:Vs(),f=6;break t;case 3:case 2:case 9:case 6:we.current===null&&(e=!0);var T=ct;if(ct=0,ce=null,Na(t,d,m,T),l&&Oa){f=0;break t}break;default:T=ct,ct=0,ce=null,Na(t,d,m,T)}}jb(),f=zt;break}catch(k){_h(t,k)}while(!0);return e&&t.shellSuspendCounter++,Ze=Xl=null,st=a,U.H=n,U.A=u,$===null&&(bt=null,P=0,Ui()),f}function jb(){for(;$!==null;)Uh($)}function Lb(t,e){var l=st;st|=2;var a=Dh(),n=Mh();bt!==t||P!==e?(ou=null,cu=_e()+500,Ua(t,e)):Oa=Ia(t,e);t:do try{if(ct!==0&&$!==null){e=$;var u=ce;e:switch(ct){case 1:ct=0,ce=null,Na(t,e,u,1);break;case 2:case 9:if(Zf(u)){ct=0,ce=null,Nh(e);break}e=function(){ct!==2&&ct!==9||bt!==t||(ct=7),Be(t)},u.then(e,e);break t;case 3:ct=7;break t;case 4:ct=5;break t;case 7:Zf(u)?(ct=0,ce=null,Nh(e)):(ct=0,ce=null,Na(t,e,u,7));break;case 5:var f=null;switch($.tag){case 26:f=$.memoizedState;case 5:case 27:var d=$;if(!f||gp(f)){ct=0,ce=null;var m=d.sibling;if(m!==null)$=m;else{var T=d.return;T!==null?($=T,du(T)):$=null}break e}}ct=0,ce=null,Na(t,e,u,5);break;case 6:ct=0,ce=null,Na(t,e,u,6);break;case 8:Vs(),zt=6;break t;default:throw Error(o(462))}}Yb();break}catch(k){_h(t,k)}while(!0);return Ze=Xl=null,U.H=a,U.A=n,st=l,$!==null?0:(bt=null,P=0,Ui(),zt)}function Yb(){for(;$!==null&&!cm();)Uh($)}function Uh(t){var e=uh(t.alternate,t,Ie);t.memoizedProps=t.pendingProps,e===null?du(t):$=e}function Nh(t){var e=t,l=e.alternate;switch(e.tag){case 15:case 0:e=th(l,e,e.pendingProps,e.type,void 0,P);break;case 11:e=th(l,e,e.pendingProps,e.type.render,e.ref,P);break;case 5:cs(e);default:sh(l,e),e=$=Bf(e,Ie),e=uh(l,e,Ie)}t.memoizedProps=t.pendingProps,e===null?du(t):$=e}function Na(t,e,l,a){Ze=Xl=null,cs(e),Ea=null,kn=0;var n=e.return;try{if(_b(t,n,e,l,P)){zt=1,au(t,me(l,t.current)),$=null;return}}catch(u){if(n!==null)throw $=n,u;zt=1,au(t,me(l,t.current)),$=null;return}e.flags&32768?(et||a===1?t=!0:Oa||(P&536870912)!==0?t=!1:(gl=t=!0,(a===2||a===9||a===3||a===6)&&(a=we.current,a!==null&&a.tag===13&&(a.flags|=16384))),Bh(e,t)):du(e)}function du(t){var e=t;do{if((e.flags&32768)!==0){Bh(e,gl);return}t=e.return;var l=Mb(e.alternate,e,Ie);if(l!==null){$=l;return}if(e=e.sibling,e!==null){$=e;return}$=e=t}while(e!==null);zt===0&&(zt=5)}function Bh(t,e){do{var l=Ub(t.alternate,t);if(l!==null){l.flags&=32767,$=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!e&&(t=t.sibling,t!==null)){$=t;return}$=t=l}while(t!==null);zt=6,$=null}function qh(t,e,l,a,n,u,f,d,m){t.cancelPendingCommit=null;do hu();while(jt!==0);if((st&6)!==0)throw Error(o(327));if(e!==null){if(e===t.current)throw Error(o(177));if(u=e.lanes|e.childLanes,u|=Cr,ym(t,l,u,f,d,m),t===bt&&($=bt=null,P=0),Da=e,vl=t,Ma=l,Xs=u,Qs=n,zh=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Zb(vi,function(){return Yh(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=U.T,U.T=null,n=q.p,q.p=2,f=st,st|=4;try{Nb(t,e,l)}finally{st=f,q.p=n,U.T=a}}jt=1,Hh(),Ch(),jh()}}function Hh(){if(jt===1){jt=0;var t=vl,e=Da,l=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||l){l=U.T,U.T=null;var a=q.p;q.p=2;var n=st;st|=4;try{yh(e,t);var u=uc,f=Ef(t.containerInfo),d=u.focusedElem,m=u.selectionRange;if(f!==d&&d&&d.ownerDocument&&Af(d.ownerDocument.documentElement,d)){if(m!==null&&Ur(d)){var T=m.start,k=m.end;if(k===void 0&&(k=T),"selectionStart"in d)d.selectionStart=T,d.selectionEnd=Math.min(k,d.value.length);else{var _=d.ownerDocument||document,A=_&&_.defaultView||window;if(A.getSelection){var E=A.getSelection(),Q=d.textContent.length,L=Math.min(m.start,Q),dt=m.end===void 0?L:Math.min(m.end,Q);!E.extend&&L>dt&&(f=dt,dt=L,L=f);var w=Tf(d,L),v=Tf(d,dt);if(w&&v&&(E.rangeCount!==1||E.anchorNode!==w.node||E.anchorOffset!==w.offset||E.focusNode!==v.node||E.focusOffset!==v.offset)){var x=_.createRange();x.setStart(w.node,w.offset),E.removeAllRanges(),L>dt?(E.addRange(x),E.extend(v.node,v.offset)):(x.setEnd(v.node,v.offset),E.addRange(x))}}}}for(_=[],E=d;E=E.parentNode;)E.nodeType===1&&_.push({element:E,left:E.scrollLeft,top:E.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<_.length;d++){var O=_[d];O.element.scrollLeft=O.left,O.element.scrollTop=O.top}}Eu=!!ic,uc=ic=null}finally{st=n,q.p=a,U.T=l}}t.current=e,jt=2}}function Ch(){if(jt===2){jt=0;var t=vl,e=Da,l=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||l){l=U.T,U.T=null;var a=q.p;q.p=2;var n=st;st|=4;try{gh(t,e.alternate,e)}finally{st=n,q.p=a,U.T=l}}jt=3}}function jh(){if(jt===4||jt===3){jt=0,om();var t=vl,e=Da,l=Ma,a=zh;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?jt=5:(jt=0,Da=vl=null,Lh(t,t.pendingLanes));var n=t.pendingLanes;if(n===0&&(bl=null),dr(l),e=e.stateNode,ae&&typeof ae.onCommitFiberRoot=="function")try{ae.onCommitFiberRoot(Pa,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=U.T,n=q.p,q.p=2,U.T=null;try{for(var u=t.onRecoverableError,f=0;f<a.length;f++){var d=a[f];u(d.value,{componentStack:d.stack})}}finally{U.T=e,q.p=n}}(Ma&3)!==0&&hu(),Be(t),n=t.pendingLanes,(l&4194090)!==0&&(n&42)!==0?t===Zs?Hn++:(Hn=0,Zs=t):Hn=0,Cn(0)}}function Lh(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,bn(e)))}function hu(t){return Hh(),Ch(),jh(),Yh()}function Yh(){if(jt!==5)return!1;var t=vl,e=Xs;Xs=0;var l=dr(Ma),a=U.T,n=q.p;try{q.p=32>l?32:l,U.T=null,l=Qs,Qs=null;var u=vl,f=Ma;if(jt=0,Da=vl=null,Ma=0,(st&6)!==0)throw Error(o(331));var d=st;if(st|=4,Ah(u.current),xh(u,u.current,f,l),st=d,Cn(0,!1),ae&&typeof ae.onPostCommitFiberRoot=="function")try{ae.onPostCommitFiberRoot(Pa,u)}catch{}return!0}finally{q.p=n,U.T=a,Lh(t,e)}}function Gh(t,e,l){e=me(l,e),e=Ts(t.stateNode,e,2),t=sl(t,e,2),t!==null&&(tn(t,2),Be(t))}function gt(t,e,l){if(t.tag===3)Gh(t,t,l);else for(;e!==null;){if(e.tag===3){Gh(e,t,l);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(bl===null||!bl.has(a))){t=me(l,t),l=Vd(2),a=sl(e,l,2),a!==null&&(Kd(l,a,e,t),tn(a,2),Be(a));break}}e=e.return}}function $s(t,e,l){var a=t.pingCache;if(a===null){a=t.pingCache=new Hb;var n=new Set;a.set(e,n)}else n=a.get(e),n===void 0&&(n=new Set,a.set(e,n));n.has(l)||(js=!0,n.add(l),t=Gb.bind(null,t,e,l),e.then(t,t))}function Gb(t,e,l){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,bt===t&&(P&l)===l&&(zt===4||zt===3&&(P&62914560)===P&&300>_e()-Gs?(st&2)===0&&Ua(t,0):Ls|=l,_a===P&&(_a=0)),Be(t)}function Xh(t,e){e===0&&(e=Co()),t=ga(t,e),t!==null&&(tn(t,e),Be(t))}function Xb(t){var e=t.memoizedState,l=0;e!==null&&(l=e.retryLane),Xh(t,l)}function Qb(t,e){var l=0;switch(t.tag){case 13:var a=t.stateNode,n=t.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(o(314))}a!==null&&a.delete(e),Xh(t,l)}function Zb(t,e){return sr(t,e)}var pu=null,Ba=null,Ws=!1,gu=!1,Fs=!1,Wl=0;function Be(t){t!==Ba&&t.next===null&&(Ba===null?pu=Ba=t:Ba=Ba.next=t),gu=!0,Ws||(Ws=!0,Kb())}function Cn(t,e){if(!Fs&&gu){Fs=!0;do for(var l=!1,a=pu;a!==null;){if(t!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var f=a.suspendedLanes,d=a.pingedLanes;u=(1<<31-ne(42|t)+1)-1,u&=n&~(f&~d),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,Kh(a,u))}else u=P,u=xi(a,a===bt?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||Ia(a,u)||(l=!0,Kh(a,u));a=a.next}while(l);Fs=!1}}function Vb(){Qh()}function Qh(){gu=Ws=!1;var t=0;Wl!==0&&(ev()&&(t=Wl),Wl=0);for(var e=_e(),l=null,a=pu;a!==null;){var n=a.next,u=Zh(a,e);u===0?(a.next=null,l===null?pu=n:l.next=n,n===null&&(Ba=l)):(l=a,(t!==0||(u&3)!==0)&&(gu=!0)),a=n}Cn(t)}function Zh(t,e){for(var l=t.suspendedLanes,a=t.pingedLanes,n=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var f=31-ne(u),d=1<<f,m=n[f];m===-1?((d&l)===0||(d&a)!==0)&&(n[f]=vm(d,e)):m<=e&&(t.expiredLanes|=d),u&=~d}if(e=bt,l=P,l=xi(t,t===e?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,l===0||t===e&&(ct===2||ct===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&cr(a),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||Ia(t,l)){if(e=l&-l,e===t.callbackPriority)return e;switch(a!==null&&cr(a),dr(l)){case 2:case 8:l=Bo;break;case 32:l=vi;break;case 268435456:l=qo;break;default:l=vi}return a=Vh.bind(null,t),l=sr(l,a),t.callbackPriority=e,t.callbackNode=l,e}return a!==null&&a!==null&&cr(a),t.callbackPriority=2,t.callbackNode=null,2}function Vh(t,e){if(jt!==0&&jt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(hu()&&t.callbackNode!==l)return null;var a=P;return a=xi(t,t===bt?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(kh(t,a,e),Zh(t,_e()),t.callbackNode!=null&&t.callbackNode===l?Vh.bind(null,t):null)}function Kh(t,e){if(hu())return null;kh(t,e,!0)}function Kb(){av(function(){(st&6)!==0?sr(No,Vb):Qh()})}function Ps(){return Wl===0&&(Wl=Ho()),Wl}function Jh(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:zi(""+t)}function $h(t,e){var l=e.ownerDocument.createElement("input");return l.name=e.name,l.value=e.value,t.id&&l.setAttribute("form",t.id),e.parentNode.insertBefore(l,e),t=new FormData(t),l.parentNode.removeChild(l),t}function Jb(t,e,l,a,n){if(e==="submit"&&l&&l.stateNode===n){var u=Jh((n[Ft]||null).action),f=a.submitter;f&&(e=(e=f[Ft]||null)?Jh(e.formAction):f.getAttribute("formAction"),e!==null&&(u=e,f=null));var d=new _i("action","action",null,a,n);t.push({event:d,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Wl!==0){var m=f?$h(n,f):new FormData(n);vs(l,{pending:!0,data:m,method:n.method,action:u},null,m)}}else typeof u=="function"&&(d.preventDefault(),m=f?$h(n,f):new FormData(n),vs(l,{pending:!0,data:m,method:n.method,action:u},u,m))},currentTarget:n}]})}}for(var Is=0;Is<Hr.length;Is++){var tc=Hr[Is],$b=tc.toLowerCase(),Wb=tc[0].toUpperCase()+tc.slice(1);Ee($b,"on"+Wb)}Ee(kf,"onAnimationEnd"),Ee(Of,"onAnimationIteration"),Ee(_f,"onAnimationStart"),Ee("dblclick","onDoubleClick"),Ee("focusin","onFocus"),Ee("focusout","onBlur"),Ee(hb,"onTransitionRun"),Ee(pb,"onTransitionStart"),Ee(gb,"onTransitionCancel"),Ee(Df,"onTransitionEnd"),ia("onMouseEnter",["mouseout","mouseover"]),ia("onMouseLeave",["mouseout","mouseover"]),ia("onPointerEnter",["pointerout","pointerover"]),ia("onPointerLeave",["pointerout","pointerover"]),Nl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Nl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Nl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Nl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Nl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Nl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var jn="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Fb=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(jn));function Wh(t,e){e=(e&4)!==0;for(var l=0;l<t.length;l++){var a=t[l],n=a.event;a=a.listeners;t:{var u=void 0;if(e)for(var f=a.length-1;0<=f;f--){var d=a[f],m=d.instance,T=d.currentTarget;if(d=d.listener,m!==u&&n.isPropagationStopped())break t;u=d,n.currentTarget=T;try{u(n)}catch(k){lu(k)}n.currentTarget=null,u=m}else for(f=0;f<a.length;f++){if(d=a[f],m=d.instance,T=d.currentTarget,d=d.listener,m!==u&&n.isPropagationStopped())break t;u=d,n.currentTarget=T;try{u(n)}catch(k){lu(k)}n.currentTarget=null,u=m}}}}function W(t,e){var l=e[hr];l===void 0&&(l=e[hr]=new Set);var a=t+"__bubble";l.has(a)||(Fh(e,t,2,!1),l.add(a))}function ec(t,e,l){var a=0;e&&(a|=4),Fh(l,t,a,e)}var mu="_reactListening"+Math.random().toString(36).slice(2);function lc(t){if(!t[mu]){t[mu]=!0,Xo.forEach(function(l){l!=="selectionchange"&&(Fb.has(l)||ec(l,!1,t),ec(l,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[mu]||(e[mu]=!0,ec("selectionchange",!1,e))}}function Fh(t,e,l,a){switch(xp(e)){case 2:var n=Av;break;case 8:n=Ev;break;default:n=mc}l=n.bind(null,e,l,t),n=void 0,!Ar||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(n=!0),a?n!==void 0?t.addEventListener(e,l,{capture:!0,passive:n}):t.addEventListener(e,l,!0):n!==void 0?t.addEventListener(e,l,{passive:n}):t.addEventListener(e,l,!1)}function ac(t,e,l,a,n){var u=a;if((e&1)===0&&(e&2)===0&&a!==null)t:for(;;){if(a===null)return;var f=a.tag;if(f===3||f===4){var d=a.stateNode.containerInfo;if(d===n)break;if(f===4)for(f=a.return;f!==null;){var m=f.tag;if((m===3||m===4)&&f.stateNode.containerInfo===n)return;f=f.return}for(;d!==null;){if(f=la(d),f===null)return;if(m=f.tag,m===5||m===6||m===26||m===27){a=u=f;continue t}d=d.parentNode}}a=a.return}af(function(){var T=u,k=Sr(l),_=[];t:{var A=Mf.get(t);if(A!==void 0){var E=_i,Q=t;switch(t){case"keypress":if(ki(l)===0)break t;case"keydown":case"keyup":E=Zm;break;case"focusin":Q="focus",E=kr;break;case"focusout":Q="blur",E=kr;break;case"beforeblur":case"afterblur":E=kr;break;case"click":if(l.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":E=rf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":E=Um;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":E=Jm;break;case kf:case Of:case _f:E=qm;break;case Df:E=Wm;break;case"scroll":case"scrollend":E=Dm;break;case"wheel":E=Pm;break;case"copy":case"cut":case"paste":E=Cm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":E=cf;break;case"toggle":case"beforetoggle":E=tb}var L=(e&4)!==0,dt=!L&&(t==="scroll"||t==="scrollend"),w=L?A!==null?A+"Capture":null:A;L=[];for(var v=T,x;v!==null;){var O=v;if(x=O.stateNode,O=O.tag,O!==5&&O!==26&&O!==27||x===null||w===null||(O=an(v,w),O!=null&&L.push(Ln(v,O,x))),dt)break;v=v.return}0<L.length&&(A=new E(A,Q,null,l,k),_.push({event:A,listeners:L}))}}if((e&7)===0){t:{if(A=t==="mouseover"||t==="pointerover",E=t==="mouseout"||t==="pointerout",A&&l!==xr&&(Q=l.relatedTarget||l.fromElement)&&(la(Q)||Q[ea]))break t;if((E||A)&&(A=k.window===k?k:(A=k.ownerDocument)?A.defaultView||A.parentWindow:window,E?(Q=l.relatedTarget||l.toElement,E=T,Q=Q?la(Q):null,Q!==null&&(dt=p(Q),L=Q.tag,Q!==dt||L!==5&&L!==27&&L!==6)&&(Q=null)):(E=null,Q=T),E!==Q)){if(L=rf,O="onMouseLeave",w="onMouseEnter",v="mouse",(t==="pointerout"||t==="pointerover")&&(L=cf,O="onPointerLeave",w="onPointerEnter",v="pointer"),dt=E==null?A:ln(E),x=Q==null?A:ln(Q),A=new L(O,v+"leave",E,l,k),A.target=dt,A.relatedTarget=x,O=null,la(k)===T&&(L=new L(w,v+"enter",Q,l,k),L.target=x,L.relatedTarget=dt,O=L),dt=O,E&&Q)e:{for(L=E,w=Q,v=0,x=L;x;x=qa(x))v++;for(x=0,O=w;O;O=qa(O))x++;for(;0<v-x;)L=qa(L),v--;for(;0<x-v;)w=qa(w),x--;for(;v--;){if(L===w||w!==null&&L===w.alternate)break e;L=qa(L),w=qa(w)}L=null}else L=null;E!==null&&Ph(_,A,E,L,!1),Q!==null&&dt!==null&&Ph(_,dt,Q,L,!0)}}t:{if(A=T?ln(T):window,E=A.nodeName&&A.nodeName.toLowerCase(),E==="select"||E==="input"&&A.type==="file")var C=bf;else if(gf(A))if(vf)C=ob;else{C=sb;var K=rb}else E=A.nodeName,!E||E.toLowerCase()!=="input"||A.type!=="checkbox"&&A.type!=="radio"?T&&wr(T.elementType)&&(C=bf):C=cb;if(C&&(C=C(t,T))){mf(_,C,l,k);break t}K&&K(t,A,T),t==="focusout"&&T&&A.type==="number"&&T.memoizedProps.value!=null&&yr(A,"number",A.value)}switch(K=T?ln(T):window,t){case"focusin":(gf(K)||K.contentEditable==="true")&&(da=K,Nr=T,dn=null);break;case"focusout":dn=Nr=da=null;break;case"mousedown":Br=!0;break;case"contextmenu":case"mouseup":case"dragend":Br=!1,zf(_,l,k);break;case"selectionchange":if(db)break;case"keydown":case"keyup":zf(_,l,k)}var j;if(_r)t:{switch(t){case"compositionstart":var G="onCompositionStart";break t;case"compositionend":G="onCompositionEnd";break t;case"compositionupdate":G="onCompositionUpdate";break t}G=void 0}else fa?hf(t,l)&&(G="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(G="onCompositionStart");G&&(of&&l.locale!=="ko"&&(fa||G!=="onCompositionStart"?G==="onCompositionEnd"&&fa&&(j=nf()):(nl=k,Er="value"in nl?nl.value:nl.textContent,fa=!0)),K=bu(T,G),0<K.length&&(G=new sf(G,t,null,l,k),_.push({event:G,listeners:K}),j?G.data=j:(j=pf(l),j!==null&&(G.data=j)))),(j=lb?ab(t,l):nb(t,l))&&(G=bu(T,"onBeforeInput"),0<G.length&&(K=new sf("onBeforeInput","beforeinput",null,l,k),_.push({event:K,listeners:G}),K.data=j)),Jb(_,t,T,l,k)}Wh(_,e)})}function Ln(t,e,l){return{instance:t,listener:e,currentTarget:l}}function bu(t,e){for(var l=e+"Capture",a=[];t!==null;){var n=t,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=an(t,l),n!=null&&a.unshift(Ln(t,n,u)),n=an(t,e),n!=null&&a.push(Ln(t,n,u))),t.tag===3)return a;t=t.return}return[]}function qa(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Ph(t,e,l,a,n){for(var u=e._reactName,f=[];l!==null&&l!==a;){var d=l,m=d.alternate,T=d.stateNode;if(d=d.tag,m!==null&&m===a)break;d!==5&&d!==26&&d!==27||T===null||(m=T,n?(T=an(l,u),T!=null&&f.unshift(Ln(l,T,m))):n||(T=an(l,u),T!=null&&f.push(Ln(l,T,m)))),l=l.return}f.length!==0&&t.push({event:e,listeners:f})}var Pb=/\r\n?/g,Ib=/\u0000|\uFFFD/g;function Ih(t){return(typeof t=="string"?t:""+t).replace(Pb,`
34
- `).replace(Ib,"")}function tp(t,e){return e=Ih(e),Ih(t)===e}function vu(){}function ft(t,e,l,a,n,u){switch(l){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||sa(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&sa(t,""+a);break;case"className":Ti(t,"class",a);break;case"tabIndex":Ti(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Ti(t,l,a);break;case"style":ef(t,a,u);break;case"data":if(e!=="object"){Ti(t,"data",a);break}case"src":case"href":if(a===""&&(e!=="a"||l!=="href")){t.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=zi(""+a),t.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){t.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(l==="formAction"?(e!=="input"&&ft(t,e,"name",n.name,n,null),ft(t,e,"formEncType",n.formEncType,n,null),ft(t,e,"formMethod",n.formMethod,n,null),ft(t,e,"formTarget",n.formTarget,n,null)):(ft(t,e,"encType",n.encType,n,null),ft(t,e,"method",n.method,n,null),ft(t,e,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=zi(""+a),t.setAttribute(l,a);break;case"onClick":a!=null&&(t.onclick=vu);break;case"onScroll":a!=null&&W("scroll",t);break;case"onScrollEnd":a!=null&&W("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(o(60));t.innerHTML=l}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){t.removeAttribute("xlink:href");break}l=zi(""+a),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,""+a):t.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":a===!0?t.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,a):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(l,a):t.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(l):t.setAttribute(l,a);break;case"popover":W("beforetoggle",t),W("toggle",t),Si(t,"popover",a);break;case"xlinkActuate":Le(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Le(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Le(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Le(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Le(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Le(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Le(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Le(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Le(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Si(t,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Om.get(l)||l,Si(t,l,a))}}function nc(t,e,l,a,n,u){switch(l){case"style":ef(t,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(o(60));t.innerHTML=l}}break;case"children":typeof a=="string"?sa(t,a):(typeof a=="number"||typeof a=="bigint")&&sa(t,""+a);break;case"onScroll":a!=null&&W("scroll",t);break;case"onScrollEnd":a!=null&&W("scrollend",t);break;case"onClick":a!=null&&(t.onclick=vu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Qo.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),e=l.slice(2,n?l.length-7:void 0),u=t[Ft]||null,u=u!=null?u[l]:null,typeof u=="function"&&t.removeEventListener(e,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(e,a,n);break t}l in t?t[l]=a:a===!0?t.setAttribute(l,""):Si(t,l,a)}}}function Lt(t,e,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":W("error",t),W("load",t);var a=!1,n=!1,u;for(u in l)if(l.hasOwnProperty(u)){var f=l[u];if(f!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:ft(t,e,u,f,l,null)}}n&&ft(t,e,"srcSet",l.srcSet,l,null),a&&ft(t,e,"src",l.src,l,null);return;case"input":W("invalid",t);var d=u=f=n=null,m=null,T=null;for(a in l)if(l.hasOwnProperty(a)){var k=l[a];if(k!=null)switch(a){case"name":n=k;break;case"type":f=k;break;case"checked":m=k;break;case"defaultChecked":T=k;break;case"value":u=k;break;case"defaultValue":d=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(o(137,e));break;default:ft(t,e,a,k,l,null)}}Fo(t,u,d,m,T,f,n,!1),Ai(t);return;case"select":W("invalid",t),a=f=u=null;for(n in l)if(l.hasOwnProperty(n)&&(d=l[n],d!=null))switch(n){case"value":u=d;break;case"defaultValue":f=d;break;case"multiple":a=d;default:ft(t,e,n,d,l,null)}e=u,l=f,t.multiple=!!a,e!=null?ra(t,!!a,e,!1):l!=null&&ra(t,!!a,l,!0);return;case"textarea":W("invalid",t),u=n=a=null;for(f in l)if(l.hasOwnProperty(f)&&(d=l[f],d!=null))switch(f){case"value":a=d;break;case"defaultValue":n=d;break;case"children":u=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(o(91));break;default:ft(t,e,f,d,l,null)}Io(t,a,n,u),Ai(t);return;case"option":for(m in l)if(l.hasOwnProperty(m)&&(a=l[m],a!=null))switch(m){case"selected":t.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:ft(t,e,m,a,l,null)}return;case"dialog":W("beforetoggle",t),W("toggle",t),W("cancel",t),W("close",t);break;case"iframe":case"object":W("load",t);break;case"video":case"audio":for(a=0;a<jn.length;a++)W(jn[a],t);break;case"image":W("error",t),W("load",t);break;case"details":W("toggle",t);break;case"embed":case"source":case"link":W("error",t),W("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(T in l)if(l.hasOwnProperty(T)&&(a=l[T],a!=null))switch(T){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:ft(t,e,T,a,l,null)}return;default:if(wr(e)){for(k in l)l.hasOwnProperty(k)&&(a=l[k],a!==void 0&&nc(t,e,k,a,l,void 0));return}}for(d in l)l.hasOwnProperty(d)&&(a=l[d],a!=null&&ft(t,e,d,a,l,null))}function tv(t,e,l,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,f=null,d=null,m=null,T=null,k=null;for(E in l){var _=l[E];if(l.hasOwnProperty(E)&&_!=null)switch(E){case"checked":break;case"value":break;case"defaultValue":m=_;default:a.hasOwnProperty(E)||ft(t,e,E,null,a,_)}}for(var A in a){var E=a[A];if(_=l[A],a.hasOwnProperty(A)&&(E!=null||_!=null))switch(A){case"type":u=E;break;case"name":n=E;break;case"checked":T=E;break;case"defaultChecked":k=E;break;case"value":f=E;break;case"defaultValue":d=E;break;case"children":case"dangerouslySetInnerHTML":if(E!=null)throw Error(o(137,e));break;default:E!==_&&ft(t,e,A,E,a,_)}}vr(t,f,d,m,T,k,u,n);return;case"select":E=f=d=A=null;for(u in l)if(m=l[u],l.hasOwnProperty(u)&&m!=null)switch(u){case"value":break;case"multiple":E=m;default:a.hasOwnProperty(u)||ft(t,e,u,null,a,m)}for(n in a)if(u=a[n],m=l[n],a.hasOwnProperty(n)&&(u!=null||m!=null))switch(n){case"value":A=u;break;case"defaultValue":d=u;break;case"multiple":f=u;default:u!==m&&ft(t,e,n,u,a,m)}e=d,l=f,a=E,A!=null?ra(t,!!l,A,!1):!!a!=!!l&&(e!=null?ra(t,!!l,e,!0):ra(t,!!l,l?[]:"",!1));return;case"textarea":E=A=null;for(d in l)if(n=l[d],l.hasOwnProperty(d)&&n!=null&&!a.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:ft(t,e,d,null,a,n)}for(f in a)if(n=a[f],u=l[f],a.hasOwnProperty(f)&&(n!=null||u!=null))switch(f){case"value":A=n;break;case"defaultValue":E=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(o(91));break;default:n!==u&&ft(t,e,f,n,a,u)}Po(t,A,E);return;case"option":for(var Q in l)if(A=l[Q],l.hasOwnProperty(Q)&&A!=null&&!a.hasOwnProperty(Q))switch(Q){case"selected":t.selected=!1;break;default:ft(t,e,Q,null,a,A)}for(m in a)if(A=a[m],E=l[m],a.hasOwnProperty(m)&&A!==E&&(A!=null||E!=null))switch(m){case"selected":t.selected=A&&typeof A!="function"&&typeof A!="symbol";break;default:ft(t,e,m,A,a,E)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var L in l)A=l[L],l.hasOwnProperty(L)&&A!=null&&!a.hasOwnProperty(L)&&ft(t,e,L,null,a,A);for(T in a)if(A=a[T],E=l[T],a.hasOwnProperty(T)&&A!==E&&(A!=null||E!=null))switch(T){case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(o(137,e));break;default:ft(t,e,T,A,a,E)}return;default:if(wr(e)){for(var dt in l)A=l[dt],l.hasOwnProperty(dt)&&A!==void 0&&!a.hasOwnProperty(dt)&&nc(t,e,dt,void 0,a,A);for(k in a)A=a[k],E=l[k],!a.hasOwnProperty(k)||A===E||A===void 0&&E===void 0||nc(t,e,k,A,a,E);return}}for(var w in l)A=l[w],l.hasOwnProperty(w)&&A!=null&&!a.hasOwnProperty(w)&&ft(t,e,w,null,a,A);for(_ in a)A=a[_],E=l[_],!a.hasOwnProperty(_)||A===E||A==null&&E==null||ft(t,e,_,A,a,E)}var ic=null,uc=null;function yu(t){return t.nodeType===9?t:t.ownerDocument}function ep(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function lp(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function rc(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var sc=null;function ev(){var t=window.event;return t&&t.type==="popstate"?t===sc?!1:(sc=t,!0):(sc=null,!1)}var ap=typeof setTimeout=="function"?setTimeout:void 0,lv=typeof clearTimeout=="function"?clearTimeout:void 0,np=typeof Promise=="function"?Promise:void 0,av=typeof queueMicrotask=="function"?queueMicrotask:typeof np<"u"?function(t){return np.resolve(null).then(t).catch(nv)}:ap;function nv(t){setTimeout(function(){throw t})}function wl(t){return t==="head"}function ip(t,e){var l=e,a=0,n=0;do{var u=l.nextSibling;if(t.removeChild(l),u&&u.nodeType===8)if(l=u.data,l==="/$"){if(0<a&&8>a){l=a;var f=t.ownerDocument;if(l&1&&Yn(f.documentElement),l&2&&Yn(f.body),l&4)for(l=f.head,Yn(l),f=l.firstChild;f;){var d=f.nextSibling,m=f.nodeName;f[en]||m==="SCRIPT"||m==="STYLE"||m==="LINK"&&f.rel.toLowerCase()==="stylesheet"||l.removeChild(f),f=d}}if(n===0){t.removeChild(u),$n(e);return}n--}else l==="$"||l==="$?"||l==="$!"?n++:a=l.charCodeAt(0)-48;else a=0;l=u}while(l);$n(e)}function cc(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var l=e;switch(e=e.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":cc(l),pr(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function iv(t,e,l,a){for(;t.nodeType===1;){var n=l;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[en])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(u=t.getAttribute("rel"),u==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(u!==n.rel||t.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||t.getAttribute("title")!==(n.title==null?null:n.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(u=t.getAttribute("src"),(u!==(n.src==null?null:n.src)||t.getAttribute("type")!==(n.type==null?null:n.type)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&t.getAttribute("name")===u)return t}else return t;if(t=Re(t.nextSibling),t===null)break}return null}function uv(t,e,l){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=Re(t.nextSibling),t===null))return null;return t}function oc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState==="complete"}function rv(t,e){var l=t.ownerDocument;if(t.data!=="$?"||l.readyState==="complete")e();else{var a=function(){e(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}function Re(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="F!"||e==="F")break;if(e==="/$")return null}}return t}var fc=null;function up(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"){if(e===0)return t;e--}else l==="/$"&&e++}t=t.previousSibling}return null}function rp(t,e,l){switch(e=yu(l),t){case"html":if(t=e.documentElement,!t)throw Error(o(452));return t;case"head":if(t=e.head,!t)throw Error(o(453));return t;case"body":if(t=e.body,!t)throw Error(o(454));return t;default:throw Error(o(451))}}function Yn(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);pr(t)}var Se=new Map,sp=new Set;function wu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var tl=q.d;q.d={f:sv,r:cv,D:ov,C:fv,L:dv,m:hv,X:gv,S:pv,M:mv};function sv(){var t=tl.f(),e=fu();return t||e}function cv(t){var e=aa(t);e!==null&&e.tag===5&&e.type==="form"?kd(e):tl.r(t)}var Ha=typeof document>"u"?null:document;function cp(t,e,l){var a=Ha;if(a&&typeof e=="string"&&e){var n=ge(e);n='link[rel="'+t+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),sp.has(n)||(sp.add(n),t={rel:t,crossOrigin:l,href:e},a.querySelector(n)===null&&(e=a.createElement("link"),Lt(e,"link",t),Nt(e),a.head.appendChild(e)))}}function ov(t){tl.D(t),cp("dns-prefetch",t,null)}function fv(t,e){tl.C(t,e),cp("preconnect",t,e)}function dv(t,e,l){tl.L(t,e,l);var a=Ha;if(a&&t&&e){var n='link[rel="preload"][as="'+ge(e)+'"]';e==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+ge(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+ge(l.imageSizes)+'"]')):n+='[href="'+ge(t)+'"]';var u=n;switch(e){case"style":u=Ca(t);break;case"script":u=ja(t)}Se.has(u)||(t=R({rel:"preload",href:e==="image"&&l&&l.imageSrcSet?void 0:t,as:e},l),Se.set(u,t),a.querySelector(n)!==null||e==="style"&&a.querySelector(Gn(u))||e==="script"&&a.querySelector(Xn(u))||(e=a.createElement("link"),Lt(e,"link",t),Nt(e),a.head.appendChild(e)))}}function hv(t,e){tl.m(t,e);var l=Ha;if(l&&t){var a=e&&typeof e.as=="string"?e.as:"script",n='link[rel="modulepreload"][as="'+ge(a)+'"][href="'+ge(t)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=ja(t)}if(!Se.has(u)&&(t=R({rel:"modulepreload",href:t},e),Se.set(u,t),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Xn(u)))return}a=l.createElement("link"),Lt(a,"link",t),Nt(a),l.head.appendChild(a)}}}function pv(t,e,l){tl.S(t,e,l);var a=Ha;if(a&&t){var n=na(a).hoistableStyles,u=Ca(t);e=e||"default";var f=n.get(u);if(!f){var d={loading:0,preload:null};if(f=a.querySelector(Gn(u)))d.loading=5;else{t=R({rel:"stylesheet",href:t,"data-precedence":e},l),(l=Se.get(u))&&dc(t,l);var m=f=a.createElement("link");Nt(m),Lt(m,"link",t),m._p=new Promise(function(T,k){m.onload=T,m.onerror=k}),m.addEventListener("load",function(){d.loading|=1}),m.addEventListener("error",function(){d.loading|=2}),d.loading|=4,xu(f,e,a)}f={type:"stylesheet",instance:f,count:1,state:d},n.set(u,f)}}}function gv(t,e){tl.X(t,e);var l=Ha;if(l&&t){var a=na(l).hoistableScripts,n=ja(t),u=a.get(n);u||(u=l.querySelector(Xn(n)),u||(t=R({src:t,async:!0},e),(e=Se.get(n))&&hc(t,e),u=l.createElement("script"),Nt(u),Lt(u,"link",t),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function mv(t,e){tl.M(t,e);var l=Ha;if(l&&t){var a=na(l).hoistableScripts,n=ja(t),u=a.get(n);u||(u=l.querySelector(Xn(n)),u||(t=R({src:t,async:!0,type:"module"},e),(e=Se.get(n))&&hc(t,e),u=l.createElement("script"),Nt(u),Lt(u,"link",t),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function op(t,e,l,a){var n=(n=el.current)?wu(n):null;if(!n)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(e=Ca(l.href),l=na(n).hoistableStyles,a=l.get(e),a||(a={type:"style",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=Ca(l.href);var u=na(n).hoistableStyles,f=u.get(t);if(f||(n=n.ownerDocument||n,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,f),(u=n.querySelector(Gn(t)))&&!u._p&&(f.instance=u,f.state.loading=5),Se.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Se.set(t,l),u||bv(n,t,l,f.state))),e&&a===null)throw Error(o(528,""));return f}if(e&&a!==null)throw Error(o(529,""));return null;case"script":return e=l.async,l=l.src,typeof l=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=ja(l),l=na(n).hoistableScripts,a=l.get(e),a||(a={type:"script",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function Ca(t){return'href="'+ge(t)+'"'}function Gn(t){return'link[rel="stylesheet"]['+t+"]"}function fp(t){return R({},t,{"data-precedence":t.precedence,precedence:null})}function bv(t,e,l,a){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=t.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),Lt(e,"link",l),Nt(e),t.head.appendChild(e))}function ja(t){return'[src="'+ge(t)+'"]'}function Xn(t){return"script[async]"+t}function dp(t,e,l){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+ge(l.href)+'"]');if(a)return e.instance=a,Nt(a),a;var n=R({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),Nt(a),Lt(a,"style",n),xu(a,l.precedence,t),e.instance=a;case"stylesheet":n=Ca(l.href);var u=t.querySelector(Gn(n));if(u)return e.state.loading|=4,e.instance=u,Nt(u),u;a=fp(l),(n=Se.get(n))&&dc(a,n),u=(t.ownerDocument||t).createElement("link"),Nt(u);var f=u;return f._p=new Promise(function(d,m){f.onload=d,f.onerror=m}),Lt(u,"link",a),e.state.loading|=4,xu(u,l.precedence,t),e.instance=u;case"script":return u=ja(l.src),(n=t.querySelector(Xn(u)))?(e.instance=n,Nt(n),n):(a=l,(n=Se.get(u))&&(a=R({},l),hc(a,n)),t=t.ownerDocument||t,n=t.createElement("script"),Nt(n),Lt(n,"link",a),t.head.appendChild(n),e.instance=n);case"void":return null;default:throw Error(o(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,xu(a,l.precedence,t));return e.instance}function xu(t,e,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,f=0;f<a.length;f++){var d=a[f];if(d.dataset.precedence===e)u=d;else if(u!==n)break}u?u.parentNode.insertBefore(t,u.nextSibling):(e=l.nodeType===9?l.head:l,e.insertBefore(t,e.firstChild))}function dc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function hc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Su=null;function hp(t,e,l){if(Su===null){var a=new Map,n=Su=new Map;n.set(l,a)}else n=Su,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(t))return a;for(a.set(t,null),l=l.getElementsByTagName(t),n=0;n<l.length;n++){var u=l[n];if(!(u[en]||u[Gt]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var f=u.getAttribute(e)||"";f=t+f;var d=a.get(f);d?d.push(u):a.set(f,[u])}}return a}function pp(t,e,l){t=t.ownerDocument||t,t.head.insertBefore(l,e==="title"?t.querySelector("head > title"):null)}function vv(t,e,l){if(l===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function gp(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}var Qn=null;function yv(){}function wv(t,e,l){if(Qn===null)throw Error(o(475));var a=Qn;if(e.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(e.state.loading&4)===0){if(e.instance===null){var n=Ca(l.href),u=t.querySelector(Gn(n));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(a.count++,a=Tu.bind(a),t.then(a,a)),e.state.loading|=4,e.instance=u,Nt(u);return}u=t.ownerDocument||t,l=fp(l),(n=Se.get(n))&&dc(l,n),u=u.createElement("link"),Nt(u);var f=u;f._p=new Promise(function(d,m){f.onload=d,f.onerror=m}),Lt(u,"link",l),e.instance=u}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(e,t),(t=e.state.preload)&&(e.state.loading&3)===0&&(a.count++,e=Tu.bind(a),t.addEventListener("load",e),t.addEventListener("error",e))}}function xv(){if(Qn===null)throw Error(o(475));var t=Qn;return t.stylesheets&&t.count===0&&pc(t,t.stylesheets),0<t.count?function(e){var l=setTimeout(function(){if(t.stylesheets&&pc(t,t.stylesheets),t.unsuspend){var a=t.unsuspend;t.unsuspend=null,a()}},6e4);return t.unsuspend=e,function(){t.unsuspend=null,clearTimeout(l)}}:null}function Tu(){if(this.count--,this.count===0){if(this.stylesheets)pc(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Au=null;function pc(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Au=new Map,e.forEach(Sv,t),Au=null,Tu.call(t))}function Sv(t,e){if(!(e.state.loading&4)){var l=Au.get(t);if(l)var a=l.get(null);else{l=new Map,Au.set(t,l);for(var n=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var f=n[u];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(l.set(f.dataset.precedence,f),a=f)}a&&l.set(null,a)}n=e.instance,f=n.getAttribute("data-precedence"),u=l.get(f)||a,u===a&&l.set(null,n),l.set(f,n),this.count++,a=Tu.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(n,t.firstChild)),e.state.loading|=4}}var Zn={$$typeof:ut,Provider:null,Consumer:null,_currentValue:rt,_currentValue2:rt,_threadCount:0};function Tv(t,e,l,a,n,u,f,d){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=or(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=or(0),this.hiddenUpdates=or(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=d,this.incompleteTransitions=new Map}function mp(t,e,l,a,n,u,f,d,m,T,k,_){return t=new Tv(t,e,l,f,d,m,T,_),e=1,u===!0&&(e|=24),u=ue(3,null,null,e),t.current=u,u.stateNode=t,e=$r(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:e},Ir(u),t}function bp(t){return t?(t=ma,t):ma}function vp(t,e,l,a,n,u){n=bp(n),a.context===null?a.context=n:a.pendingContext=n,a=rl(e),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=sl(t,a,e),l!==null&&(fe(l,t,e),xn(l,t,e))}function yp(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<e?l:e}}function gc(t,e){yp(t,e),(t=t.alternate)&&yp(t,e)}function wp(t){if(t.tag===13){var e=ga(t,67108864);e!==null&&fe(e,t,67108864),gc(t,67108864)}}var Eu=!0;function Av(t,e,l,a){var n=U.T;U.T=null;var u=q.p;try{q.p=2,mc(t,e,l,a)}finally{q.p=u,U.T=n}}function Ev(t,e,l,a){var n=U.T;U.T=null;var u=q.p;try{q.p=8,mc(t,e,l,a)}finally{q.p=u,U.T=n}}function mc(t,e,l,a){if(Eu){var n=bc(a);if(n===null)ac(t,e,a,zu,l),Sp(t,a);else if(Rv(n,t,e,l,a))a.stopPropagation();else if(Sp(t,a),e&4&&-1<zv.indexOf(t)){for(;n!==null;){var u=aa(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var f=Ul(u.pendingLanes);if(f!==0){var d=u;for(d.pendingLanes|=2,d.entangledLanes|=2;f;){var m=1<<31-ne(f);d.entanglements[1]|=m,f&=~m}Be(u),(st&6)===0&&(cu=_e()+500,Cn(0))}}break;case 13:d=ga(u,2),d!==null&&fe(d,u,2),fu(),gc(u,2)}if(u=bc(a),u===null&&ac(t,e,a,zu,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else ac(t,e,a,null,l)}}function bc(t){return t=Sr(t),vc(t)}var zu=null;function vc(t){if(zu=null,t=la(t),t!==null){var e=p(t);if(e===null)t=null;else{var l=e.tag;if(l===13){if(t=g(e),t!==null)return t;t=null}else if(l===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return zu=t,null}function xp(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(fm()){case No:return 2;case Bo:return 8;case vi:case dm:return 32;case qo:return 268435456;default:return 32}default:return 32}}var yc=!1,xl=null,Sl=null,Tl=null,Vn=new Map,Kn=new Map,Al=[],zv="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Sp(t,e){switch(t){case"focusin":case"focusout":xl=null;break;case"dragenter":case"dragleave":Sl=null;break;case"mouseover":case"mouseout":Tl=null;break;case"pointerover":case"pointerout":Vn.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Kn.delete(e.pointerId)}}function Jn(t,e,l,a,n,u){return t===null||t.nativeEvent!==u?(t={blockedOn:e,domEventName:l,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},e!==null&&(e=aa(e),e!==null&&wp(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,n!==null&&e.indexOf(n)===-1&&e.push(n),t)}function Rv(t,e,l,a,n){switch(e){case"focusin":return xl=Jn(xl,t,e,l,a,n),!0;case"dragenter":return Sl=Jn(Sl,t,e,l,a,n),!0;case"mouseover":return Tl=Jn(Tl,t,e,l,a,n),!0;case"pointerover":var u=n.pointerId;return Vn.set(u,Jn(Vn.get(u)||null,t,e,l,a,n)),!0;case"gotpointercapture":return u=n.pointerId,Kn.set(u,Jn(Kn.get(u)||null,t,e,l,a,n)),!0}return!1}function Tp(t){var e=la(t.target);if(e!==null){var l=p(e);if(l!==null){if(e=l.tag,e===13){if(e=g(l),e!==null){t.blockedOn=e,wm(t.priority,function(){if(l.tag===13){var a=oe();a=fr(a);var n=ga(l,a);n!==null&&fe(n,l,a),gc(l,a)}});return}}else if(e===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Ru(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var l=bc(t.nativeEvent);if(l===null){l=t.nativeEvent;var a=new l.constructor(l.type,l);xr=a,l.target.dispatchEvent(a),xr=null}else return e=aa(l),e!==null&&wp(e),t.blockedOn=l,!1;e.shift()}return!0}function Ap(t,e,l){Ru(t)&&l.delete(e)}function kv(){yc=!1,xl!==null&&Ru(xl)&&(xl=null),Sl!==null&&Ru(Sl)&&(Sl=null),Tl!==null&&Ru(Tl)&&(Tl=null),Vn.forEach(Ap),Kn.forEach(Ap)}function ku(t,e){t.blockedOn===e&&(t.blockedOn=null,yc||(yc=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,kv)))}var Ou=null;function Ep(t){Ou!==t&&(Ou=t,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Ou===t&&(Ou=null);for(var e=0;e<t.length;e+=3){var l=t[e],a=t[e+1],n=t[e+2];if(typeof a!="function"){if(vc(a||l)===null)continue;break}var u=aa(l);u!==null&&(t.splice(e,3),e-=3,vs(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function $n(t){function e(m){return ku(m,t)}xl!==null&&ku(xl,t),Sl!==null&&ku(Sl,t),Tl!==null&&ku(Tl,t),Vn.forEach(e),Kn.forEach(e);for(var l=0;l<Al.length;l++){var a=Al[l];a.blockedOn===t&&(a.blockedOn=null)}for(;0<Al.length&&(l=Al[0],l.blockedOn===null);)Tp(l),l.blockedOn===null&&Al.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],u=l[a+1],f=n[Ft]||null;if(typeof u=="function")f||Ep(l);else if(f){var d=null;if(u&&u.hasAttribute("formAction")){if(n=u,f=u[Ft]||null)d=f.formAction;else if(vc(n)!==null)continue}else d=f.action;typeof d=="function"?l[a+1]=d:(l.splice(a,3),a-=3),Ep(l)}}}function wc(t){this._internalRoot=t}_u.prototype.render=wc.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(o(409));var l=e.current,a=oe();vp(l,a,t,e,null,null)},_u.prototype.unmount=wc.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;vp(t.current,2,null,t,null,null),fu(),e[ea]=null}};function _u(t){this._internalRoot=t}_u.prototype.unstable_scheduleHydration=function(t){if(t){var e=Yo();t={blockedOn:null,target:t,priority:e};for(var l=0;l<Al.length&&e!==0&&e<Al[l].priority;l++);Al.splice(l,0,t),l===0&&Tp(t)}};var zp=s.version;if(zp!=="19.1.0")throw Error(o(527,zp,"19.1.0"));q.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=b(e),t=t!==null?y(t):null,t=t===null?null:t.stateNode,t};var Ov={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Du=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Du.isDisabled&&Du.supportsFiber)try{Pa=Du.inject(Ov),ae=Du}catch{}}return Ya.createRoot=function(t,e){if(!h(t))throw Error(o(299));var l=!1,a="",n=Gd,u=Xd,f=Qd,d=null;return e!=null&&(e.unstable_strictMode===!0&&(l=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(n=e.onUncaughtError),e.onCaughtError!==void 0&&(u=e.onCaughtError),e.onRecoverableError!==void 0&&(f=e.onRecoverableError),e.unstable_transitionCallbacks!==void 0&&(d=e.unstable_transitionCallbacks)),e=mp(t,1,!1,null,null,l,a,n,u,f,d,null),t[ea]=e.current,lc(t),new wc(e)},Ya.hydrateRoot=function(t,e,l){if(!h(t))throw Error(o(299));var a=!1,n="",u=Gd,f=Xd,d=Qd,m=null,T=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(f=l.onCaughtError),l.onRecoverableError!==void 0&&(d=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(m=l.unstable_transitionCallbacks),l.formState!==void 0&&(T=l.formState)),e=mp(t,1,!0,e,l??null,a,n,u,f,d,m,T),e.context=bp(null),l=e.current,a=oe(),a=fr(a),n=rl(a),n.callback=null,sl(l,n,a),l=a,e.current.lanes=l,tn(e,l),Be(e),t[ea]=e.current,lc(t),new _u(e)},Ya.version="19.1.0",Ya}var Oc;function Np(){if(Oc)return Uu.exports;Oc=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(i){console.error(i)}}return r(),Uu.exports=Up(),Uu.exports}var Bp=Np();const qp=kp(Bp);/**
10
+ */var at;function hr(){if(at)return te;at=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function r(n,i,s){var o=null;if(s!==void 0&&(o=""+s),i.key!==void 0&&(o=""+i.key),"key"in i){s={};for(var a in i)a!=="key"&&(s[a]=i[a])}else s=i;return i=s.ref,{$$typeof:t,type:n,key:o,ref:i!==void 0?i:null,props:s}}return te.Fragment=e,te.jsx=r,te.jsxs=r,te}var lt;function fr(){return lt||(lt=1,$e.exports=hr()),$e.exports}var m=fr();/**
35
11
  * @license lucide-react v0.515.0 - ISC
36
12
  *
37
13
  * This source code is licensed under the ISC license.
38
14
  * See the LICENSE file in the root directory of this source tree.
39
- */const Hp=r=>r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Cp=r=>r.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,s,c)=>c?c.toUpperCase():s.toLowerCase()),_c=r=>{const i=Cp(r);return i.charAt(0).toUpperCase()+i.slice(1)},Dc=(...r)=>r.filter((i,s,c)=>!!i&&i.trim()!==""&&c.indexOf(i)===s).join(" ").trim(),jp=r=>{for(const i in r)if(i.startsWith("aria-")||i==="role"||i==="title")return!0};/**
15
+ */const gr=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),wr=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,r,n)=>n?n.toUpperCase():r.toLowerCase()),ct=t=>{const e=wr(t);return e.charAt(0).toUpperCase()+e.slice(1)},ut=(...t)=>t.filter((e,r,n)=>!!e&&e.trim()!==""&&n.indexOf(e)===r).join(" ").trim(),mr=t=>{for(const e in t)if(e.startsWith("aria-")||e==="role"||e==="title")return!0};/**
40
16
  * @license lucide-react v0.515.0 - ISC
41
17
  *
42
18
  * This source code is licensed under the ISC license.
43
19
  * See the LICENSE file in the root directory of this source tree.
44
- */var Lp={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
20
+ */var br={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
45
21
  * @license lucide-react v0.515.0 - ISC
46
22
  *
47
23
  * This source code is licensed under the ISC license.
48
24
  * See the LICENSE file in the root directory of this source tree.
49
- */const Yp=vt.forwardRef(({color:r="currentColor",size:i=24,strokeWidth:s=2,absoluteStrokeWidth:c,className:o="",children:h,iconNode:p,...g},S)=>vt.createElement("svg",{ref:S,...Lp,width:i,height:i,stroke:r,strokeWidth:c?Number(s)*24/Number(i):s,className:Dc("lucide",o),...!h&&!jp(g)&&{"aria-hidden":"true"},...g},[...p.map(([b,y])=>vt.createElement(b,y)),...Array.isArray(h)?h:[h]]));/**
25
+ */const xr=C.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:i="",children:s,iconNode:o,...a},u)=>C.createElement("svg",{ref:u,...br,width:e,height:e,stroke:t,strokeWidth:n?Number(r)*24/Number(e):r,className:ut("lucide",i),...!s&&!mr(a)&&{"aria-hidden":"true"},...a},[...o.map(([l,c])=>C.createElement(l,c)),...Array.isArray(s)?s:[s]]));/**
50
26
  * @license lucide-react v0.515.0 - ISC
51
27
  *
52
28
  * This source code is licensed under the ISC license.
53
29
  * See the LICENSE file in the root directory of this source tree.
54
- */const Ga=(r,i)=>{const s=vt.forwardRef(({className:c,...o},h)=>vt.createElement(Yp,{ref:h,iconNode:i,className:Dc(`lucide-${Hp(_c(r))}`,`lucide-${r}`,c),...o}));return s.displayName=_c(r),s};/**
30
+ */const re=(t,e)=>{const r=C.forwardRef(({className:n,...i},s)=>C.createElement(xr,{ref:s,iconNode:e,className:ut(`lucide-${gr(ct(t))}`,`lucide-${t}`,n),...i}));return r.displayName=ct(t),r};/**
55
31
  * @license lucide-react v0.515.0 - ISC
56
32
  *
57
33
  * This source code is licensed under the ISC license.
58
34
  * See the LICENSE file in the root directory of this source tree.
59
- */const qu=Ga("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
35
+ */const Ne=re("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
60
36
  * @license lucide-react v0.515.0 - ISC
61
37
  *
62
38
  * This source code is licensed under the ISC license.
63
39
  * See the LICENSE file in the root directory of this source tree.
64
- */const Gp=Ga("message-circle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/**
40
+ */const kr=re("message-circle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/**
65
41
  * @license lucide-react v0.515.0 - ISC
66
42
  *
67
43
  * This source code is licensed under the ISC license.
68
44
  * See the LICENSE file in the root directory of this source tree.
69
- */const Xp=Ga("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
45
+ */const yr=re("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
70
46
  * @license lucide-react v0.515.0 - ISC
71
47
  *
72
48
  * This source code is licensed under the ISC license.
73
49
  * See the LICENSE file in the root directory of this source tree.
74
- */const Qp=Ga("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
50
+ */const vr=re("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
75
51
  * @license lucide-react v0.515.0 - ISC
76
52
  *
77
53
  * This source code is licensed under the ISC license.
78
54
  * See the LICENSE file in the root directory of this source tree.
79
- */const Mc=Ga("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Zp={futuristic:{mainBackground:"bg-gradient-to-br from-slate-900 via-purple-900 to-slate-900",header:"from-purple-600 to-blue-600",headerLogoBg:"bg-purple-500",headerLogoIcon:"text-white",messageBot:"bg-gradient-to-r from-purple-500 to-pink-500 text-white",messageUser:"bg-transparent backdrop-blur-3xl text-white",input:"bg-slate-800/50 border-purple-500/30 text-white placeholder-slate-400 focus:ring-purple-500 focus:border-transparent",sendButton:"text-white",prompt:"bg-black/50 backdrop-blur-3xl text-white"},boring:{mainBackground:"bg-white",header:"bg-black/90",headerLogoIcon:"text-white",messageBot:"bg-gradient-to-r from-purple-500 to-pink-500 text-white",messageUser:"bg-black/80 text-white",input:"border-purple-500/30 placeholder-slate-400 focus:ring-purple-500 focus:border-transparent",sendButton:"text-purple-500",prompt:"bg-gradient-to-br from-black/80 to-black/90 text-white"}},He=(r,i)=>Zp[r][i]??"";function Vp({setIsOpen:r,theme:i}){return X.jsxs("div",{className:`bg-gradient-to-r ${He(i,"header")} p-4 flex items-center justify-between`,children:[X.jsxs("div",{className:"flex items-center space-x-3",children:[X.jsx("div",{className:`w-10 h-10 ${He(i,"headerLogoBg")} rounded-full flex items-center justify-center`,children:X.jsx(qu,{className:`w-6 h-6 ${He(i,"headerLogoIcon")}`})}),X.jsxs("div",{children:[X.jsx("h3",{className:"text-white font-semibold",children:"AI Assistant"}),X.jsx("p",{className:"text-purple-100 text-sm",children:"Online"})]})]}),X.jsx("button",{onClick:()=>r(!1),className:"text-white hover:bg-white/20 rounded-full p-1 transition-colors",children:X.jsx(Mc,{className:"w-5 h-5"})})]})}function Hu(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var zl=Hu();function Uc(r){zl=r}var Xa={exec:()=>null};function lt(r,i=""){let s=typeof r=="string"?r:r.source;const c={replace:(o,h)=>{let p=typeof h=="string"?h:h.source;return p=p.replace(Qt.caret,"$1"),s=s.replace(o,p),c},getRegex:()=>new RegExp(s,i)};return c}var Qt={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:r=>new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}#`),htmlBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}<(?:[a-z].*>|!--)`,"i")},Kp=/^(?:[ \t]*(?:\n|$))+/,Jp=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,$p=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Qa=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Wp=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Cu=/(?:[*+-]|\d{1,9}[.)])/,Nc=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Bc=lt(Nc).replace(/bull/g,Cu).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Fp=lt(Nc).replace(/bull/g,Cu).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),ju=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Pp=/^[^\n]+/,Lu=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Ip=lt(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Lu).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),t0=lt(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Cu).getRegex(),Wn="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Yu=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,e0=lt("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Yu).replace("tag",Wn).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),qc=lt(ju).replace("hr",Qa).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Wn).getRegex(),l0=lt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",qc).getRegex(),Gu={blockquote:l0,code:Jp,def:Ip,fences:$p,heading:Wp,hr:Qa,html:e0,lheading:Bc,list:t0,newline:Kp,paragraph:qc,table:Xa,text:Pp},Hc=lt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Qa).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Wn).getRegex(),a0={...Gu,lheading:Fp,table:Hc,paragraph:lt(ju).replace("hr",Qa).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Hc).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Wn).getRegex()},n0={...Gu,html:lt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Yu).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Xa,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:lt(ju).replace("hr",Qa).replace("heading",` *#{1,6} *[^
80
- ]`).replace("lheading",Bc).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},i0=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,u0=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Cc=/^( {2,}|\\)\n(?!\s*$)/,r0=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Fn=/[\p{P}\p{S}]/u,Xu=/[\s\p{P}\p{S}]/u,jc=/[^\s\p{P}\p{S}]/u,s0=lt(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Xu).getRegex(),Lc=/(?!~)[\p{P}\p{S}]/u,c0=/(?!~)[\s\p{P}\p{S}]/u,o0=/(?:[^\s\p{P}\p{S}]|~)/u,f0=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,Yc=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,d0=lt(Yc,"u").replace(/punct/g,Fn).getRegex(),h0=lt(Yc,"u").replace(/punct/g,Lc).getRegex(),Gc="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",p0=lt(Gc,"gu").replace(/notPunctSpace/g,jc).replace(/punctSpace/g,Xu).replace(/punct/g,Fn).getRegex(),g0=lt(Gc,"gu").replace(/notPunctSpace/g,o0).replace(/punctSpace/g,c0).replace(/punct/g,Lc).getRegex(),m0=lt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,jc).replace(/punctSpace/g,Xu).replace(/punct/g,Fn).getRegex(),b0=lt(/\\(punct)/,"gu").replace(/punct/g,Fn).getRegex(),v0=lt(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),y0=lt(Yu).replace("(?:-->|$)","-->").getRegex(),w0=lt("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",y0).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Pn=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,x0=lt(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Pn).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Xc=lt(/^!?\[(label)\]\[(ref)\]/).replace("label",Pn).replace("ref",Lu).getRegex(),Qc=lt(/^!?\[(ref)\](?:\[\])?/).replace("ref",Lu).getRegex(),S0=lt("reflink|nolink(?!\\()","g").replace("reflink",Xc).replace("nolink",Qc).getRegex(),Qu={_backpedal:Xa,anyPunctuation:b0,autolink:v0,blockSkip:f0,br:Cc,code:u0,del:Xa,emStrongLDelim:d0,emStrongRDelimAst:p0,emStrongRDelimUnd:m0,escape:i0,link:x0,nolink:Qc,punctuation:s0,reflink:Xc,reflinkSearch:S0,tag:w0,text:r0,url:Xa},T0={...Qu,link:lt(/^!?\[(label)\]\((.*?)\)/).replace("label",Pn).getRegex(),reflink:lt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Pn).getRegex()},Zu={...Qu,emStrongRDelimAst:g0,emStrongLDelim:h0,url:lt(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},A0={...Zu,br:lt(Cc).replace("{2,}","*").getRegex(),text:lt(Zu.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},In={normal:Gu,gfm:a0,pedantic:n0},Za={normal:Qu,gfm:Zu,breaks:A0,pedantic:T0},E0={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Zc=r=>E0[r];function ke(r,i){if(i){if(Qt.escapeTest.test(r))return r.replace(Qt.escapeReplace,Zc)}else if(Qt.escapeTestNoEncode.test(r))return r.replace(Qt.escapeReplaceNoEncode,Zc);return r}function Vc(r){try{r=encodeURI(r).replace(Qt.percentDecode,"%")}catch{return null}return r}function Kc(r,i){var h;const s=r.replace(Qt.findPipe,(p,g,S)=>{let b=!1,y=g;for(;--y>=0&&S[y]==="\\";)b=!b;return b?"|":" |"}),c=s.split(Qt.splitPipe);let o=0;if(c[0].trim()||c.shift(),c.length>0&&!((h=c.at(-1))!=null&&h.trim())&&c.pop(),i)if(c.length>i)c.splice(i);else for(;c.length<i;)c.push("");for(;o<c.length;o++)c[o]=c[o].trim().replace(Qt.slashPipe,"|");return c}function Va(r,i,s){const c=r.length;if(c===0)return"";let o=0;for(;o<c&&r.charAt(c-o-1)===i;)o++;return r.slice(0,c-o)}function z0(r,i){if(r.indexOf(i[1])===-1)return-1;let s=0;for(let c=0;c<r.length;c++)if(r[c]==="\\")c++;else if(r[c]===i[0])s++;else if(r[c]===i[1]&&(s--,s<0))return c;return s>0?-2:-1}function Jc(r,i,s,c,o){const h=i.href,p=i.title||null,g=r[1].replace(o.other.outputLinkReplace,"$1");c.state.inLink=!0;const S={type:r[0].charAt(0)==="!"?"image":"link",raw:s,href:h,title:p,text:g,tokens:c.inlineTokens(g)};return c.state.inLink=!1,S}function R0(r,i,s){const c=r.match(s.other.indentCodeCompensation);if(c===null)return i;const o=c[1];return i.split(`
81
- `).map(h=>{const p=h.match(s.other.beginningSpace);if(p===null)return h;const[g]=p;return g.length>=o.length?h.slice(o.length):h}).join(`
82
- `)}var ti=class{constructor(r){mt(this,"options");mt(this,"rules");mt(this,"lexer");this.options=r||zl}space(r){const i=this.rules.block.newline.exec(r);if(i&&i[0].length>0)return{type:"space",raw:i[0]}}code(r){const i=this.rules.block.code.exec(r);if(i){const s=i[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:i[0],codeBlockStyle:"indented",text:this.options.pedantic?s:Va(s,`
83
- `)}}}fences(r){const i=this.rules.block.fences.exec(r);if(i){const s=i[0],c=R0(s,i[3]||"",this.rules);return{type:"code",raw:s,lang:i[2]?i[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):i[2],text:c}}}heading(r){const i=this.rules.block.heading.exec(r);if(i){let s=i[2].trim();if(this.rules.other.endingHash.test(s)){const c=Va(s,"#");(this.options.pedantic||!c||this.rules.other.endingSpaceChar.test(c))&&(s=c.trim())}return{type:"heading",raw:i[0],depth:i[1].length,text:s,tokens:this.lexer.inline(s)}}}hr(r){const i=this.rules.block.hr.exec(r);if(i)return{type:"hr",raw:Va(i[0],`
84
- `)}}blockquote(r){const i=this.rules.block.blockquote.exec(r);if(i){let s=Va(i[0],`
55
+ */const pt=re("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Rr={futuristic:{mainBackground:"bg-gradient-to-br from-slate-900 via-purple-900 to-slate-900",header:"from-purple-600 to-blue-600",headerLogoBg:"bg-purple-500",headerLogoIcon:"text-white",messageBot:"bg-gradient-to-r from-purple-500 to-pink-500 text-white",messageUser:"bg-transparent backdrop-blur-3xl text-white",input:"bg-slate-800/50 border-purple-500/30 text-white placeholder-slate-400 focus:ring-purple-500 focus:border-transparent",sendButton:"text-white",prompt:"bg-black/50 backdrop-blur-3xl text-white"},boring:{mainBackground:"bg-white",header:"bg-black/90",headerLogoIcon:"text-white",messageBot:"bg-gradient-to-r from-purple-500 to-pink-500 text-white",messageUser:"bg-black/80 text-white",input:"border-purple-500/30 placeholder-slate-400 focus:ring-purple-500 focus:border-transparent",sendButton:"text-purple-500",prompt:"bg-gradient-to-br from-black/80 to-black/90 text-white"}},M=(t,e)=>Rr[t][e]??"";function Sr({setIsOpen:t,theme:e}){return m.jsxs("div",{className:`bg-gradient-to-r ${M(e,"header")} p-4 flex items-center justify-between`,children:[m.jsxs("div",{className:"flex items-center space-x-3",children:[m.jsx("div",{className:`w-10 h-10 ${M(e,"headerLogoBg")} rounded-full flex items-center justify-center`,children:m.jsx(Ne,{className:`w-6 h-6 ${M(e,"headerLogoIcon")}`})}),m.jsxs("div",{children:[m.jsx("h3",{className:"text-white font-semibold",children:"AI Assistant"}),m.jsx("p",{className:"text-purple-100 text-sm",children:"Online"})]})]}),m.jsx("button",{onClick:()=>t(!1),className:"text-white hover:bg-white/20 rounded-full p-1 transition-colors",children:m.jsx(pt,{className:"w-5 h-5"})})]})}function Pe(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Z=Pe();function dt(t){Z=t}var ne={exec:()=>null};function k(t,e=""){let r=typeof t=="string"?t:t.source;const n={replace:(i,s)=>{let o=typeof s=="string"?s:s.source;return o=o.replace(N.caret,"$1"),r=r.replace(i,o),n},getRegex:()=>new RegExp(r,e)};return n}var N={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i")},Er=/^(?:[ \t]*(?:\n|$))+/,Tr=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Ar=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,ie=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Cr=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,je=/(?:[*+-]|\d{1,9}[.)])/,ht=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ft=k(ht).replace(/bull/g,je).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),_r=k(ht).replace(/bull/g,je).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),ze=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Or=/^[^\n]+/,Le=/(?!\s*\])(?:\\.|[^\[\]\\])+/,$r=k(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Le).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Nr=k(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,je).getRegex(),de="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Be=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Pr=k("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Be).replace("tag",de).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),gt=k(ze).replace("hr",ie).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",de).getRegex(),jr=k(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",gt).getRegex(),Ie={blockquote:jr,code:Tr,def:$r,fences:Ar,heading:Cr,hr:ie,html:Pr,lheading:ft,list:Nr,newline:Er,paragraph:gt,table:ne,text:Or},wt=k("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ie).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",de).getRegex(),zr={...Ie,lheading:_r,table:wt,paragraph:k(ze).replace("hr",ie).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",wt).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",de).getRegex()},Lr={...Ie,html:k(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Be).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:ne,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:k(ze).replace("hr",ie).replace("heading",` *#{1,6} *[^
56
+ ]`).replace("lheading",ft).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Br=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Ir=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,mt=/^( {2,}|\\)\n(?!\s*$)/,Dr=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,he=/[\p{P}\p{S}]/u,De=/[\s\p{P}\p{S}]/u,bt=/[^\s\p{P}\p{S}]/u,Ur=k(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,De).getRegex(),xt=/(?!~)[\p{P}\p{S}]/u,qr=/(?!~)[\s\p{P}\p{S}]/u,Fr=/(?:[^\s\p{P}\p{S}]|~)/u,Mr=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,kt=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Hr=k(kt,"u").replace(/punct/g,he).getRegex(),Jr=k(kt,"u").replace(/punct/g,xt).getRegex(),yt="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Zr=k(yt,"gu").replace(/notPunctSpace/g,bt).replace(/punctSpace/g,De).replace(/punct/g,he).getRegex(),Wr=k(yt,"gu").replace(/notPunctSpace/g,Fr).replace(/punctSpace/g,qr).replace(/punct/g,xt).getRegex(),Vr=k("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,bt).replace(/punctSpace/g,De).replace(/punct/g,he).getRegex(),Gr=k(/\\(punct)/,"gu").replace(/punct/g,he).getRegex(),Kr=k(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Xr=k(Be).replace("(?:-->|$)","-->").getRegex(),Qr=k("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Xr).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),fe=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Yr=k(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",fe).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),vt=k(/^!?\[(label)\]\[(ref)\]/).replace("label",fe).replace("ref",Le).getRegex(),Rt=k(/^!?\[(ref)\](?:\[\])?/).replace("ref",Le).getRegex(),en=k("reflink|nolink(?!\\()","g").replace("reflink",vt).replace("nolink",Rt).getRegex(),Ue={_backpedal:ne,anyPunctuation:Gr,autolink:Kr,blockSkip:Mr,br:mt,code:Ir,del:ne,emStrongLDelim:Hr,emStrongRDelimAst:Zr,emStrongRDelimUnd:Vr,escape:Br,link:Yr,nolink:Rt,punctuation:Ur,reflink:vt,reflinkSearch:en,tag:Qr,text:Dr,url:ne},tn={...Ue,link:k(/^!?\[(label)\]\((.*?)\)/).replace("label",fe).getRegex(),reflink:k(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",fe).getRegex()},qe={...Ue,emStrongRDelimAst:Wr,emStrongLDelim:Jr,url:k(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},rn={...qe,br:k(mt).replace("{2,}","*").getRegex(),text:k(qe.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ge={normal:Ie,gfm:zr,pedantic:Lr},se={normal:Ue,gfm:qe,breaks:rn,pedantic:tn},nn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},St=t=>nn[t];function D(t,e){if(e){if(N.escapeTest.test(t))return t.replace(N.escapeReplace,St)}else if(N.escapeTestNoEncode.test(t))return t.replace(N.escapeReplaceNoEncode,St);return t}function Et(t){try{t=encodeURI(t).replace(N.percentDecode,"%")}catch{return null}return t}function Tt(t,e){var s;const r=t.replace(N.findPipe,(o,a,u)=>{let l=!1,c=a;for(;--c>=0&&u[c]==="\\";)l=!l;return l?"|":" |"}),n=r.split(N.splitPipe);let i=0;if(n[0].trim()||n.shift(),n.length>0&&!((s=n.at(-1))!=null&&s.trim())&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;i<n.length;i++)n[i]=n[i].trim().replace(N.slashPipe,"|");return n}function oe(t,e,r){const n=t.length;if(n===0)return"";let i=0;for(;i<n&&t.charAt(n-i-1)===e;)i++;return t.slice(0,n-i)}function sn(t,e){if(t.indexOf(e[1])===-1)return-1;let r=0;for(let n=0;n<t.length;n++)if(t[n]==="\\")n++;else if(t[n]===e[0])r++;else if(t[n]===e[1]&&(r--,r<0))return n;return r>0?-2:-1}function At(t,e,r,n,i){const s=e.href,o=e.title||null,a=t[1].replace(i.other.outputLinkReplace,"$1");n.state.inLink=!0;const u={type:t[0].charAt(0)==="!"?"image":"link",raw:r,href:s,title:o,text:a,tokens:n.inlineTokens(a)};return n.state.inLink=!1,u}function on(t,e,r){const n=t.match(r.other.indentCodeCompensation);if(n===null)return e;const i=n[1];return e.split(`
57
+ `).map(s=>{const o=s.match(r.other.beginningSpace);if(o===null)return s;const[a]=o;return a.length>=i.length?s.slice(i.length):s}).join(`
58
+ `)}var we=class{constructor(t){R(this,"options");R(this,"rules");R(this,"lexer");this.options=t||Z}space(t){const e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){const e=this.rules.block.code.exec(t);if(e){const r=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?r:oe(r,`
59
+ `)}}}fences(t){const e=this.rules.block.fences.exec(t);if(e){const r=e[0],n=on(r,e[3]||"",this.rules);return{type:"code",raw:r,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:n}}}heading(t){const e=this.rules.block.heading.exec(t);if(e){let r=e[2].trim();if(this.rules.other.endingHash.test(r)){const n=oe(r,"#");(this.options.pedantic||!n||this.rules.other.endingSpaceChar.test(n))&&(r=n.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(t){const e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:oe(e[0],`
60
+ `)}}blockquote(t){const e=this.rules.block.blockquote.exec(t);if(e){let r=oe(e[0],`
85
61
  `).split(`
86
- `),c="",o="";const h=[];for(;s.length>0;){let p=!1;const g=[];let S;for(S=0;S<s.length;S++)if(this.rules.other.blockquoteStart.test(s[S]))g.push(s[S]),p=!0;else if(!p)g.push(s[S]);else break;s=s.slice(S);const b=g.join(`
87
- `),y=b.replace(this.rules.other.blockquoteSetextReplace,`
88
- $1`).replace(this.rules.other.blockquoteSetextReplace2,"");c=c?`${c}
89
- ${b}`:b,o=o?`${o}
90
- ${y}`:y;const R=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(y,h,!0),this.lexer.state.top=R,s.length===0)break;const D=h.at(-1);if((D==null?void 0:D.type)==="code")break;if((D==null?void 0:D.type)==="blockquote"){const Y=D,M=Y.raw+`
91
- `+s.join(`
92
- `),B=this.blockquote(M);h[h.length-1]=B,c=c.substring(0,c.length-Y.raw.length)+B.raw,o=o.substring(0,o.length-Y.text.length)+B.text;break}else if((D==null?void 0:D.type)==="list"){const Y=D,M=Y.raw+`
93
- `+s.join(`
94
- `),B=this.list(M);h[h.length-1]=B,c=c.substring(0,c.length-D.raw.length)+B.raw,o=o.substring(0,o.length-Y.raw.length)+B.raw,s=M.substring(h.at(-1).raw.length).split(`
95
- `);continue}}return{type:"blockquote",raw:c,tokens:h,text:o}}}list(r){let i=this.rules.block.list.exec(r);if(i){let s=i[1].trim();const c=s.length>1,o={type:"list",raw:"",ordered:c,start:c?+s.slice(0,-1):"",loose:!1,items:[]};s=c?`\\d{1,9}\\${s.slice(-1)}`:`\\${s}`,this.options.pedantic&&(s=c?s:"[*+-]");const h=this.rules.other.listItemRegex(s);let p=!1;for(;r;){let S=!1,b="",y="";if(!(i=h.exec(r))||this.rules.block.hr.test(r))break;b=i[0],r=r.substring(b.length);let R=i[2].split(`
96
- `,1)[0].replace(this.rules.other.listReplaceTabs,F=>" ".repeat(3*F.length)),D=r.split(`
97
- `,1)[0],Y=!R.trim(),M=0;if(this.options.pedantic?(M=2,y=R.trimStart()):Y?M=i[1].length+1:(M=i[2].search(this.rules.other.nonSpaceChar),M=M>4?1:M,y=R.slice(M),M+=i[1].length),Y&&this.rules.other.blankLine.test(D)&&(b+=D+`
98
- `,r=r.substring(D.length+1),S=!0),!S){const F=this.rules.other.nextBulletRegex(M),at=this.rules.other.hrRegex(M),nt=this.rules.other.fencesBeginRegex(M),ut=this.rules.other.headingBeginRegex(M),ht=this.rules.other.htmlBeginRegex(M);for(;r;){const yt=r.split(`
99
- `,1)[0];let pt;if(D=yt,this.options.pedantic?(D=D.replace(this.rules.other.listReplaceNesting," "),pt=D):pt=D.replace(this.rules.other.tabCharGlobal," "),nt.test(D)||ut.test(D)||ht.test(D)||F.test(D)||at.test(D))break;if(pt.search(this.rules.other.nonSpaceChar)>=M||!D.trim())y+=`
100
- `+pt.slice(M);else{if(Y||R.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||nt.test(R)||ut.test(R)||at.test(R))break;y+=`
101
- `+D}!Y&&!D.trim()&&(Y=!0),b+=yt+`
102
- `,r=r.substring(yt.length+1),R=pt.slice(M)}}o.loose||(p?o.loose=!0:this.rules.other.doubleBlankLine.test(b)&&(p=!0));let B=null,H;this.options.gfm&&(B=this.rules.other.listIsTask.exec(y),B&&(H=B[0]!=="[ ] ",y=y.replace(this.rules.other.listReplaceTask,""))),o.items.push({type:"list_item",raw:b,task:!!B,checked:H,loose:!1,text:y,tokens:[]}),o.raw+=b}const g=o.items.at(-1);if(g)g.raw=g.raw.trimEnd(),g.text=g.text.trimEnd();else return;o.raw=o.raw.trimEnd();for(let S=0;S<o.items.length;S++)if(this.lexer.state.top=!1,o.items[S].tokens=this.lexer.blockTokens(o.items[S].text,[]),!o.loose){const b=o.items[S].tokens.filter(R=>R.type==="space"),y=b.length>0&&b.some(R=>this.rules.other.anyLine.test(R.raw));o.loose=y}if(o.loose)for(let S=0;S<o.items.length;S++)o.items[S].loose=!0;return o}}html(r){const i=this.rules.block.html.exec(r);if(i)return{type:"html",block:!0,raw:i[0],pre:i[1]==="pre"||i[1]==="script"||i[1]==="style",text:i[0]}}def(r){const i=this.rules.block.def.exec(r);if(i){const s=i[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),c=i[2]?i[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=i[3]?i[3].substring(1,i[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):i[3];return{type:"def",tag:s,raw:i[0],href:c,title:o}}}table(r){var p;const i=this.rules.block.table.exec(r);if(!i||!this.rules.other.tableDelimiter.test(i[2]))return;const s=Kc(i[1]),c=i[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=(p=i[3])!=null&&p.trim()?i[3].replace(this.rules.other.tableRowBlankLine,"").split(`
103
- `):[],h={type:"table",raw:i[0],header:[],align:[],rows:[]};if(s.length===c.length){for(const g of c)this.rules.other.tableAlignRight.test(g)?h.align.push("right"):this.rules.other.tableAlignCenter.test(g)?h.align.push("center"):this.rules.other.tableAlignLeft.test(g)?h.align.push("left"):h.align.push(null);for(let g=0;g<s.length;g++)h.header.push({text:s[g],tokens:this.lexer.inline(s[g]),header:!0,align:h.align[g]});for(const g of o)h.rows.push(Kc(g,h.header.length).map((S,b)=>({text:S,tokens:this.lexer.inline(S),header:!1,align:h.align[b]})));return h}}lheading(r){const i=this.rules.block.lheading.exec(r);if(i)return{type:"heading",raw:i[0],depth:i[2].charAt(0)==="="?1:2,text:i[1],tokens:this.lexer.inline(i[1])}}paragraph(r){const i=this.rules.block.paragraph.exec(r);if(i){const s=i[1].charAt(i[1].length-1)===`
104
- `?i[1].slice(0,-1):i[1];return{type:"paragraph",raw:i[0],text:s,tokens:this.lexer.inline(s)}}}text(r){const i=this.rules.block.text.exec(r);if(i)return{type:"text",raw:i[0],text:i[0],tokens:this.lexer.inline(i[0])}}escape(r){const i=this.rules.inline.escape.exec(r);if(i)return{type:"escape",raw:i[0],text:i[1]}}tag(r){const i=this.rules.inline.tag.exec(r);if(i)return!this.lexer.state.inLink&&this.rules.other.startATag.test(i[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(i[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(i[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(i[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:i[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:i[0]}}link(r){const i=this.rules.inline.link.exec(r);if(i){const s=i[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(s)){if(!this.rules.other.endAngleBracket.test(s))return;const h=Va(s.slice(0,-1),"\\");if((s.length-h.length)%2===0)return}else{const h=z0(i[2],"()");if(h===-2)return;if(h>-1){const g=(i[0].indexOf("!")===0?5:4)+i[1].length+h;i[2]=i[2].substring(0,h),i[0]=i[0].substring(0,g).trim(),i[3]=""}}let c=i[2],o="";if(this.options.pedantic){const h=this.rules.other.pedanticHrefTitle.exec(c);h&&(c=h[1],o=h[3])}else o=i[3]?i[3].slice(1,-1):"";return c=c.trim(),this.rules.other.startAngleBracket.test(c)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(s)?c=c.slice(1):c=c.slice(1,-1)),Jc(i,{href:c&&c.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},i[0],this.lexer,this.rules)}}reflink(r,i){let s;if((s=this.rules.inline.reflink.exec(r))||(s=this.rules.inline.nolink.exec(r))){const c=(s[2]||s[1]).replace(this.rules.other.multipleSpaceGlobal," "),o=i[c.toLowerCase()];if(!o){const h=s[0].charAt(0);return{type:"text",raw:h,text:h}}return Jc(s,o,s[0],this.lexer,this.rules)}}emStrong(r,i,s=""){let c=this.rules.inline.emStrongLDelim.exec(r);if(!c||c[3]&&s.match(this.rules.other.unicodeAlphaNumeric))return;if(!(c[1]||c[2]||"")||!s||this.rules.inline.punctuation.exec(s)){const h=[...c[0]].length-1;let p,g,S=h,b=0;const y=c[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(y.lastIndex=0,i=i.slice(-1*r.length+h);(c=y.exec(i))!=null;){if(p=c[1]||c[2]||c[3]||c[4]||c[5]||c[6],!p)continue;if(g=[...p].length,c[3]||c[4]){S+=g;continue}else if((c[5]||c[6])&&h%3&&!((h+g)%3)){b+=g;continue}if(S-=g,S>0)continue;g=Math.min(g,g+S+b);const R=[...c[0]][0].length,D=r.slice(0,h+c.index+R+g);if(Math.min(h,g)%2){const M=D.slice(1,-1);return{type:"em",raw:D,text:M,tokens:this.lexer.inlineTokens(M)}}const Y=D.slice(2,-2);return{type:"strong",raw:D,text:Y,tokens:this.lexer.inlineTokens(Y)}}}}codespan(r){const i=this.rules.inline.code.exec(r);if(i){let s=i[2].replace(this.rules.other.newLineCharGlobal," ");const c=this.rules.other.nonSpaceChar.test(s),o=this.rules.other.startingSpaceChar.test(s)&&this.rules.other.endingSpaceChar.test(s);return c&&o&&(s=s.substring(1,s.length-1)),{type:"codespan",raw:i[0],text:s}}}br(r){const i=this.rules.inline.br.exec(r);if(i)return{type:"br",raw:i[0]}}del(r){const i=this.rules.inline.del.exec(r);if(i)return{type:"del",raw:i[0],text:i[2],tokens:this.lexer.inlineTokens(i[2])}}autolink(r){const i=this.rules.inline.autolink.exec(r);if(i){let s,c;return i[2]==="@"?(s=i[1],c="mailto:"+s):(s=i[1],c=s),{type:"link",raw:i[0],text:s,href:c,tokens:[{type:"text",raw:s,text:s}]}}}url(r){var s;let i;if(i=this.rules.inline.url.exec(r)){let c,o;if(i[2]==="@")c=i[0],o="mailto:"+c;else{let h;do h=i[0],i[0]=((s=this.rules.inline._backpedal.exec(i[0]))==null?void 0:s[0])??"";while(h!==i[0]);c=i[0],i[1]==="www."?o="http://"+i[0]:o=i[0]}return{type:"link",raw:i[0],text:c,href:o,tokens:[{type:"text",raw:c,text:c}]}}}inlineText(r){const i=this.rules.inline.text.exec(r);if(i){const s=this.lexer.state.inRawBlock;return{type:"text",raw:i[0],text:i[0],escaped:s}}}},Ce=class xc{constructor(i){mt(this,"tokens");mt(this,"options");mt(this,"state");mt(this,"tokenizer");mt(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=i||zl,this.options.tokenizer=this.options.tokenizer||new ti,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const s={other:Qt,block:In.normal,inline:Za.normal};this.options.pedantic?(s.block=In.pedantic,s.inline=Za.pedantic):this.options.gfm&&(s.block=In.gfm,this.options.breaks?s.inline=Za.breaks:s.inline=Za.gfm),this.tokenizer.rules=s}static get rules(){return{block:In,inline:Za}}static lex(i,s){return new xc(s).lex(i)}static lexInline(i,s){return new xc(s).inlineTokens(i)}lex(i){i=i.replace(Qt.carriageReturn,`
105
- `),this.blockTokens(i,this.tokens);for(let s=0;s<this.inlineQueue.length;s++){const c=this.inlineQueue[s];this.inlineTokens(c.src,c.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(i,s=[],c=!1){var o,h,p;for(this.options.pedantic&&(i=i.replace(Qt.tabCharGlobal," ").replace(Qt.spaceLine,""));i;){let g;if((h=(o=this.options.extensions)==null?void 0:o.block)!=null&&h.some(b=>(g=b.call({lexer:this},i,s))?(i=i.substring(g.raw.length),s.push(g),!0):!1))continue;if(g=this.tokenizer.space(i)){i=i.substring(g.raw.length);const b=s.at(-1);g.raw.length===1&&b!==void 0?b.raw+=`
106
- `:s.push(g);continue}if(g=this.tokenizer.code(i)){i=i.substring(g.raw.length);const b=s.at(-1);(b==null?void 0:b.type)==="paragraph"||(b==null?void 0:b.type)==="text"?(b.raw+=`
107
- `+g.raw,b.text+=`
108
- `+g.text,this.inlineQueue.at(-1).src=b.text):s.push(g);continue}if(g=this.tokenizer.fences(i)){i=i.substring(g.raw.length),s.push(g);continue}if(g=this.tokenizer.heading(i)){i=i.substring(g.raw.length),s.push(g);continue}if(g=this.tokenizer.hr(i)){i=i.substring(g.raw.length),s.push(g);continue}if(g=this.tokenizer.blockquote(i)){i=i.substring(g.raw.length),s.push(g);continue}if(g=this.tokenizer.list(i)){i=i.substring(g.raw.length),s.push(g);continue}if(g=this.tokenizer.html(i)){i=i.substring(g.raw.length),s.push(g);continue}if(g=this.tokenizer.def(i)){i=i.substring(g.raw.length);const b=s.at(-1);(b==null?void 0:b.type)==="paragraph"||(b==null?void 0:b.type)==="text"?(b.raw+=`
109
- `+g.raw,b.text+=`
110
- `+g.raw,this.inlineQueue.at(-1).src=b.text):this.tokens.links[g.tag]||(this.tokens.links[g.tag]={href:g.href,title:g.title});continue}if(g=this.tokenizer.table(i)){i=i.substring(g.raw.length),s.push(g);continue}if(g=this.tokenizer.lheading(i)){i=i.substring(g.raw.length),s.push(g);continue}let S=i;if((p=this.options.extensions)!=null&&p.startBlock){let b=1/0;const y=i.slice(1);let R;this.options.extensions.startBlock.forEach(D=>{R=D.call({lexer:this},y),typeof R=="number"&&R>=0&&(b=Math.min(b,R))}),b<1/0&&b>=0&&(S=i.substring(0,b+1))}if(this.state.top&&(g=this.tokenizer.paragraph(S))){const b=s.at(-1);c&&(b==null?void 0:b.type)==="paragraph"?(b.raw+=`
111
- `+g.raw,b.text+=`
112
- `+g.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=b.text):s.push(g),c=S.length!==i.length,i=i.substring(g.raw.length);continue}if(g=this.tokenizer.text(i)){i=i.substring(g.raw.length);const b=s.at(-1);(b==null?void 0:b.type)==="text"?(b.raw+=`
113
- `+g.raw,b.text+=`
114
- `+g.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=b.text):s.push(g);continue}if(i){const b="Infinite loop on byte: "+i.charCodeAt(0);if(this.options.silent){console.error(b);break}else throw new Error(b)}}return this.state.top=!0,s}inline(i,s=[]){return this.inlineQueue.push({src:i,tokens:s}),s}inlineTokens(i,s=[]){var g,S,b;let c=i,o=null;if(this.tokens.links){const y=Object.keys(this.tokens.links);if(y.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(c))!=null;)y.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(c=c.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(c))!=null;)c=c.slice(0,o.index)+"++"+c.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(o=this.tokenizer.rules.inline.blockSkip.exec(c))!=null;)c=c.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let h=!1,p="";for(;i;){h||(p=""),h=!1;let y;if((S=(g=this.options.extensions)==null?void 0:g.inline)!=null&&S.some(D=>(y=D.call({lexer:this},i,s))?(i=i.substring(y.raw.length),s.push(y),!0):!1))continue;if(y=this.tokenizer.escape(i)){i=i.substring(y.raw.length),s.push(y);continue}if(y=this.tokenizer.tag(i)){i=i.substring(y.raw.length),s.push(y);continue}if(y=this.tokenizer.link(i)){i=i.substring(y.raw.length),s.push(y);continue}if(y=this.tokenizer.reflink(i,this.tokens.links)){i=i.substring(y.raw.length);const D=s.at(-1);y.type==="text"&&(D==null?void 0:D.type)==="text"?(D.raw+=y.raw,D.text+=y.text):s.push(y);continue}if(y=this.tokenizer.emStrong(i,c,p)){i=i.substring(y.raw.length),s.push(y);continue}if(y=this.tokenizer.codespan(i)){i=i.substring(y.raw.length),s.push(y);continue}if(y=this.tokenizer.br(i)){i=i.substring(y.raw.length),s.push(y);continue}if(y=this.tokenizer.del(i)){i=i.substring(y.raw.length),s.push(y);continue}if(y=this.tokenizer.autolink(i)){i=i.substring(y.raw.length),s.push(y);continue}if(!this.state.inLink&&(y=this.tokenizer.url(i))){i=i.substring(y.raw.length),s.push(y);continue}let R=i;if((b=this.options.extensions)!=null&&b.startInline){let D=1/0;const Y=i.slice(1);let M;this.options.extensions.startInline.forEach(B=>{M=B.call({lexer:this},Y),typeof M=="number"&&M>=0&&(D=Math.min(D,M))}),D<1/0&&D>=0&&(R=i.substring(0,D+1))}if(y=this.tokenizer.inlineText(R)){i=i.substring(y.raw.length),y.raw.slice(-1)!=="_"&&(p=y.raw.slice(-1)),h=!0;const D=s.at(-1);(D==null?void 0:D.type)==="text"?(D.raw+=y.raw,D.text+=y.text):s.push(y);continue}if(i){const D="Infinite loop on byte: "+i.charCodeAt(0);if(this.options.silent){console.error(D);break}else throw new Error(D)}}return s}},ei=class{constructor(r){mt(this,"options");mt(this,"parser");this.options=r||zl}space(r){return""}code({text:r,lang:i,escaped:s}){var h;const c=(h=(i||"").match(Qt.notSpaceStart))==null?void 0:h[0],o=r.replace(Qt.endingNewline,"")+`
115
- `;return c?'<pre><code class="language-'+ke(c)+'">'+(s?o:ke(o,!0))+`</code></pre>
116
- `:"<pre><code>"+(s?o:ke(o,!0))+`</code></pre>
117
- `}blockquote({tokens:r}){return`<blockquote>
118
- ${this.parser.parse(r)}</blockquote>
119
- `}html({text:r}){return r}heading({tokens:r,depth:i}){return`<h${i}>${this.parser.parseInline(r)}</h${i}>
120
- `}hr(r){return`<hr>
121
- `}list(r){const i=r.ordered,s=r.start;let c="";for(let p=0;p<r.items.length;p++){const g=r.items[p];c+=this.listitem(g)}const o=i?"ol":"ul",h=i&&s!==1?' start="'+s+'"':"";return"<"+o+h+`>
122
- `+c+"</"+o+`>
123
- `}listitem(r){var s;let i="";if(r.task){const c=this.checkbox({checked:!!r.checked});r.loose?((s=r.tokens[0])==null?void 0:s.type)==="paragraph"?(r.tokens[0].text=c+" "+r.tokens[0].text,r.tokens[0].tokens&&r.tokens[0].tokens.length>0&&r.tokens[0].tokens[0].type==="text"&&(r.tokens[0].tokens[0].text=c+" "+ke(r.tokens[0].tokens[0].text),r.tokens[0].tokens[0].escaped=!0)):r.tokens.unshift({type:"text",raw:c+" ",text:c+" ",escaped:!0}):i+=c+" "}return i+=this.parser.parse(r.tokens,!!r.loose),`<li>${i}</li>
124
- `}checkbox({checked:r}){return"<input "+(r?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:r}){return`<p>${this.parser.parseInline(r)}</p>
125
- `}table(r){let i="",s="";for(let o=0;o<r.header.length;o++)s+=this.tablecell(r.header[o]);i+=this.tablerow({text:s});let c="";for(let o=0;o<r.rows.length;o++){const h=r.rows[o];s="";for(let p=0;p<h.length;p++)s+=this.tablecell(h[p]);c+=this.tablerow({text:s})}return c&&(c=`<tbody>${c}</tbody>`),`<table>
62
+ `),n="",i="";const s=[];for(;r.length>0;){let o=!1;const a=[];let u;for(u=0;u<r.length;u++)if(this.rules.other.blockquoteStart.test(r[u]))a.push(r[u]),o=!0;else if(!o)a.push(r[u]);else break;r=r.slice(u);const l=a.join(`
63
+ `),c=l.replace(this.rules.other.blockquoteSetextReplace,`
64
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
65
+ ${l}`:l,i=i?`${i}
66
+ ${c}`:c;const h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,s,!0),this.lexer.state.top=h,r.length===0)break;const d=s.at(-1);if((d==null?void 0:d.type)==="code")break;if((d==null?void 0:d.type)==="blockquote"){const x=d,f=x.raw+`
67
+ `+r.join(`
68
+ `),g=this.blockquote(f);s[s.length-1]=g,n=n.substring(0,n.length-x.raw.length)+g.raw,i=i.substring(0,i.length-x.text.length)+g.text;break}else if((d==null?void 0:d.type)==="list"){const x=d,f=x.raw+`
69
+ `+r.join(`
70
+ `),g=this.list(f);s[s.length-1]=g,n=n.substring(0,n.length-d.raw.length)+g.raw,i=i.substring(0,i.length-x.raw.length)+g.raw,r=f.substring(s.at(-1).raw.length).split(`
71
+ `);continue}}return{type:"blockquote",raw:n,tokens:s,text:i}}}list(t){let e=this.rules.block.list.exec(t);if(e){let r=e[1].trim();const n=r.length>1,i={type:"list",raw:"",ordered:n,start:n?+r.slice(0,-1):"",loose:!1,items:[]};r=n?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=n?r:"[*+-]");const s=this.rules.other.listItemRegex(r);let o=!1;for(;t;){let u=!1,l="",c="";if(!(e=s.exec(t))||this.rules.block.hr.test(t))break;l=e[0],t=t.substring(l.length);let h=e[2].split(`
72
+ `,1)[0].replace(this.rules.other.listReplaceTabs,v=>" ".repeat(3*v.length)),d=t.split(`
73
+ `,1)[0],x=!h.trim(),f=0;if(this.options.pedantic?(f=2,c=h.trimStart()):x?f=e[1].length+1:(f=e[2].search(this.rules.other.nonSpaceChar),f=f>4?1:f,c=h.slice(f),f+=e[1].length),x&&this.rules.other.blankLine.test(d)&&(l+=d+`
74
+ `,t=t.substring(d.length+1),u=!0),!u){const v=this.rules.other.nextBulletRegex(f),S=this.rules.other.hrRegex(f),T=this.rules.other.fencesBeginRegex(f),z=this.rules.other.headingBeginRegex(f),_=this.rules.other.htmlBeginRegex(f);for(;t;){const L=t.split(`
75
+ `,1)[0];let O;if(d=L,this.options.pedantic?(d=d.replace(this.rules.other.listReplaceNesting," "),O=d):O=d.replace(this.rules.other.tabCharGlobal," "),T.test(d)||z.test(d)||_.test(d)||v.test(d)||S.test(d))break;if(O.search(this.rules.other.nonSpaceChar)>=f||!d.trim())c+=`
76
+ `+O.slice(f);else{if(x||h.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||T.test(h)||z.test(h)||S.test(h))break;c+=`
77
+ `+d}!x&&!d.trim()&&(x=!0),l+=L+`
78
+ `,t=t.substring(L.length+1),h=O.slice(f)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(l)&&(o=!0));let g=null,w;this.options.gfm&&(g=this.rules.other.listIsTask.exec(c),g&&(w=g[0]!=="[ ] ",c=c.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:l,task:!!g,checked:w,loose:!1,text:c,tokens:[]}),i.raw+=l}const a=i.items.at(-1);if(a)a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let u=0;u<i.items.length;u++)if(this.lexer.state.top=!1,i.items[u].tokens=this.lexer.blockTokens(i.items[u].text,[]),!i.loose){const l=i.items[u].tokens.filter(h=>h.type==="space"),c=l.length>0&&l.some(h=>this.rules.other.anyLine.test(h.raw));i.loose=c}if(i.loose)for(let u=0;u<i.items.length;u++)i.items[u].loose=!0;return i}}html(t){const e=this.rules.block.html.exec(t);if(e)return{type:"html",block:!0,raw:e[0],pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:e[0]}}def(t){const e=this.rules.block.def.exec(t);if(e){const r=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:r,raw:e[0],href:n,title:i}}}table(t){var o;const e=this.rules.block.table.exec(t);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;const r=Tt(e[1]),n=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=(o=e[3])!=null&&o.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
79
+ `):[],s={type:"table",raw:e[0],header:[],align:[],rows:[]};if(r.length===n.length){for(const a of n)this.rules.other.tableAlignRight.test(a)?s.align.push("right"):this.rules.other.tableAlignCenter.test(a)?s.align.push("center"):this.rules.other.tableAlignLeft.test(a)?s.align.push("left"):s.align.push(null);for(let a=0;a<r.length;a++)s.header.push({text:r[a],tokens:this.lexer.inline(r[a]),header:!0,align:s.align[a]});for(const a of i)s.rows.push(Tt(a,s.header.length).map((u,l)=>({text:u,tokens:this.lexer.inline(u),header:!1,align:s.align[l]})));return s}}lheading(t){const e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(t){const e=this.rules.block.paragraph.exec(t);if(e){const r=e[1].charAt(e[1].length-1)===`
80
+ `?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:r,tokens:this.lexer.inline(r)}}}text(t){const e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){const e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){const e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){const e=this.rules.inline.link.exec(t);if(e){const r=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;const s=oe(r.slice(0,-1),"\\");if((r.length-s.length)%2===0)return}else{const s=sn(e[2],"()");if(s===-2)return;if(s>-1){const a=(e[0].indexOf("!")===0?5:4)+e[1].length+s;e[2]=e[2].substring(0,s),e[0]=e[0].substring(0,a).trim(),e[3]=""}}let n=e[2],i="";if(this.options.pedantic){const s=this.rules.other.pedanticHrefTitle.exec(n);s&&(n=s[1],i=s[3])}else i=e[3]?e[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?n=n.slice(1):n=n.slice(1,-1)),At(e,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(t,e){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){const n=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=e[n.toLowerCase()];if(!i){const s=r[0].charAt(0);return{type:"text",raw:s,text:s}}return At(r,i,r[0],this.lexer,this.rules)}}emStrong(t,e,r=""){let n=this.rules.inline.emStrongLDelim.exec(t);if(!n||n[3]&&r.match(this.rules.other.unicodeAlphaNumeric))return;if(!(n[1]||n[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const s=[...n[0]].length-1;let o,a,u=s,l=0;const c=n[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,e=e.slice(-1*t.length+s);(n=c.exec(e))!=null;){if(o=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!o)continue;if(a=[...o].length,n[3]||n[4]){u+=a;continue}else if((n[5]||n[6])&&s%3&&!((s+a)%3)){l+=a;continue}if(u-=a,u>0)continue;a=Math.min(a,a+u+l);const h=[...n[0]][0].length,d=t.slice(0,s+n.index+h+a);if(Math.min(s,a)%2){const f=d.slice(1,-1);return{type:"em",raw:d,text:f,tokens:this.lexer.inlineTokens(f)}}const x=d.slice(2,-2);return{type:"strong",raw:d,text:x,tokens:this.lexer.inlineTokens(x)}}}}codespan(t){const e=this.rules.inline.code.exec(t);if(e){let r=e[2].replace(this.rules.other.newLineCharGlobal," ");const n=this.rules.other.nonSpaceChar.test(r),i=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return n&&i&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:e[0],text:r}}}br(t){const e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t){const e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(t){const e=this.rules.inline.autolink.exec(t);if(e){let r,n;return e[2]==="@"?(r=e[1],n="mailto:"+r):(r=e[1],n=r),{type:"link",raw:e[0],text:r,href:n,tokens:[{type:"text",raw:r,text:r}]}}}url(t){var r;let e;if(e=this.rules.inline.url.exec(t)){let n,i;if(e[2]==="@")n=e[0],i="mailto:"+n;else{let s;do s=e[0],e[0]=((r=this.rules.inline._backpedal.exec(e[0]))==null?void 0:r[0])??"";while(s!==e[0]);n=e[0],e[1]==="www."?i="http://"+e[0]:i=e[0]}return{type:"link",raw:e[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(t){const e=this.rules.inline.text.exec(t);if(e){const r=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:r}}}},H=class it{constructor(e){R(this,"tokens");R(this,"options");R(this,"state");R(this,"tokenizer");R(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Z,this.options.tokenizer=this.options.tokenizer||new we,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const r={other:N,block:ge.normal,inline:se.normal};this.options.pedantic?(r.block=ge.pedantic,r.inline=se.pedantic):this.options.gfm&&(r.block=ge.gfm,this.options.breaks?r.inline=se.breaks:r.inline=se.gfm),this.tokenizer.rules=r}static get rules(){return{block:ge,inline:se}}static lex(e,r){return new it(r).lex(e)}static lexInline(e,r){return new it(r).inlineTokens(e)}lex(e){e=e.replace(N.carriageReturn,`
81
+ `),this.blockTokens(e,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){const n=this.inlineQueue[r];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,r=[],n=!1){var i,s,o;for(this.options.pedantic&&(e=e.replace(N.tabCharGlobal," ").replace(N.spaceLine,""));e;){let a;if((s=(i=this.options.extensions)==null?void 0:i.block)!=null&&s.some(l=>(a=l.call({lexer:this},e,r))?(e=e.substring(a.raw.length),r.push(a),!0):!1))continue;if(a=this.tokenizer.space(e)){e=e.substring(a.raw.length);const l=r.at(-1);a.raw.length===1&&l!==void 0?l.raw+=`
82
+ `:r.push(a);continue}if(a=this.tokenizer.code(e)){e=e.substring(a.raw.length);const l=r.at(-1);(l==null?void 0:l.type)==="paragraph"||(l==null?void 0:l.type)==="text"?(l.raw+=`
83
+ `+a.raw,l.text+=`
84
+ `+a.text,this.inlineQueue.at(-1).src=l.text):r.push(a);continue}if(a=this.tokenizer.fences(e)){e=e.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.heading(e)){e=e.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.hr(e)){e=e.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.blockquote(e)){e=e.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.list(e)){e=e.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.html(e)){e=e.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.def(e)){e=e.substring(a.raw.length);const l=r.at(-1);(l==null?void 0:l.type)==="paragraph"||(l==null?void 0:l.type)==="text"?(l.raw+=`
85
+ `+a.raw,l.text+=`
86
+ `+a.raw,this.inlineQueue.at(-1).src=l.text):this.tokens.links[a.tag]||(this.tokens.links[a.tag]={href:a.href,title:a.title});continue}if(a=this.tokenizer.table(e)){e=e.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.lheading(e)){e=e.substring(a.raw.length),r.push(a);continue}let u=e;if((o=this.options.extensions)!=null&&o.startBlock){let l=1/0;const c=e.slice(1);let h;this.options.extensions.startBlock.forEach(d=>{h=d.call({lexer:this},c),typeof h=="number"&&h>=0&&(l=Math.min(l,h))}),l<1/0&&l>=0&&(u=e.substring(0,l+1))}if(this.state.top&&(a=this.tokenizer.paragraph(u))){const l=r.at(-1);n&&(l==null?void 0:l.type)==="paragraph"?(l.raw+=`
87
+ `+a.raw,l.text+=`
88
+ `+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):r.push(a),n=u.length!==e.length,e=e.substring(a.raw.length);continue}if(a=this.tokenizer.text(e)){e=e.substring(a.raw.length);const l=r.at(-1);(l==null?void 0:l.type)==="text"?(l.raw+=`
89
+ `+a.raw,l.text+=`
90
+ `+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):r.push(a);continue}if(e){const l="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return this.state.top=!0,r}inline(e,r=[]){return this.inlineQueue.push({src:e,tokens:r}),r}inlineTokens(e,r=[]){var a,u,l;let n=e,i=null;if(this.tokens.links){const c=Object.keys(this.tokens.links);if(c.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)c.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,i.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(i=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)n=n.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let s=!1,o="";for(;e;){s||(o=""),s=!1;let c;if((u=(a=this.options.extensions)==null?void 0:a.inline)!=null&&u.some(d=>(c=d.call({lexer:this},e,r))?(e=e.substring(c.raw.length),r.push(c),!0):!1))continue;if(c=this.tokenizer.escape(e)){e=e.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.tag(e)){e=e.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.link(e)){e=e.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(c.raw.length);const d=r.at(-1);c.type==="text"&&(d==null?void 0:d.type)==="text"?(d.raw+=c.raw,d.text+=c.text):r.push(c);continue}if(c=this.tokenizer.emStrong(e,n,o)){e=e.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.codespan(e)){e=e.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.br(e)){e=e.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.del(e)){e=e.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.autolink(e)){e=e.substring(c.raw.length),r.push(c);continue}if(!this.state.inLink&&(c=this.tokenizer.url(e))){e=e.substring(c.raw.length),r.push(c);continue}let h=e;if((l=this.options.extensions)!=null&&l.startInline){let d=1/0;const x=e.slice(1);let f;this.options.extensions.startInline.forEach(g=>{f=g.call({lexer:this},x),typeof f=="number"&&f>=0&&(d=Math.min(d,f))}),d<1/0&&d>=0&&(h=e.substring(0,d+1))}if(c=this.tokenizer.inlineText(h)){e=e.substring(c.raw.length),c.raw.slice(-1)!=="_"&&(o=c.raw.slice(-1)),s=!0;const d=r.at(-1);(d==null?void 0:d.type)==="text"?(d.raw+=c.raw,d.text+=c.text):r.push(c);continue}if(e){const d="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(d);break}else throw new Error(d)}}return r}},me=class{constructor(t){R(this,"options");R(this,"parser");this.options=t||Z}space(t){return""}code({text:t,lang:e,escaped:r}){var s;const n=(s=(e||"").match(N.notSpaceStart))==null?void 0:s[0],i=t.replace(N.endingNewline,"")+`
91
+ `;return n?'<pre><code class="language-'+D(n)+'">'+(r?i:D(i,!0))+`</code></pre>
92
+ `:"<pre><code>"+(r?i:D(i,!0))+`</code></pre>
93
+ `}blockquote({tokens:t}){return`<blockquote>
94
+ ${this.parser.parse(t)}</blockquote>
95
+ `}html({text:t}){return t}heading({tokens:t,depth:e}){return`<h${e}>${this.parser.parseInline(t)}</h${e}>
96
+ `}hr(t){return`<hr>
97
+ `}list(t){const e=t.ordered,r=t.start;let n="";for(let o=0;o<t.items.length;o++){const a=t.items[o];n+=this.listitem(a)}const i=e?"ol":"ul",s=e&&r!==1?' start="'+r+'"':"";return"<"+i+s+`>
98
+ `+n+"</"+i+`>
99
+ `}listitem(t){var r;let e="";if(t.task){const n=this.checkbox({checked:!!t.checked});t.loose?((r=t.tokens[0])==null?void 0:r.type)==="paragraph"?(t.tokens[0].text=n+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=n+" "+D(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):e+=n+" "}return e+=this.parser.parse(t.tokens,!!t.loose),`<li>${e}</li>
100
+ `}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
101
+ `}table(t){let e="",r="";for(let i=0;i<t.header.length;i++)r+=this.tablecell(t.header[i]);e+=this.tablerow({text:r});let n="";for(let i=0;i<t.rows.length;i++){const s=t.rows[i];r="";for(let o=0;o<s.length;o++)r+=this.tablecell(s[o]);n+=this.tablerow({text:r})}return n&&(n=`<tbody>${n}</tbody>`),`<table>
126
102
  <thead>
127
- `+i+`</thead>
128
- `+c+`</table>
129
- `}tablerow({text:r}){return`<tr>
130
- ${r}</tr>
131
- `}tablecell(r){const i=this.parser.parseInline(r.tokens),s=r.header?"th":"td";return(r.align?`<${s} align="${r.align}">`:`<${s}>`)+i+`</${s}>
132
- `}strong({tokens:r}){return`<strong>${this.parser.parseInline(r)}</strong>`}em({tokens:r}){return`<em>${this.parser.parseInline(r)}</em>`}codespan({text:r}){return`<code>${ke(r,!0)}</code>`}br(r){return"<br>"}del({tokens:r}){return`<del>${this.parser.parseInline(r)}</del>`}link({href:r,title:i,tokens:s}){const c=this.parser.parseInline(s),o=Vc(r);if(o===null)return c;r=o;let h='<a href="'+r+'"';return i&&(h+=' title="'+ke(i)+'"'),h+=">"+c+"</a>",h}image({href:r,title:i,text:s,tokens:c}){c&&(s=this.parser.parseInline(c,this.parser.textRenderer));const o=Vc(r);if(o===null)return ke(s);r=o;let h=`<img src="${r}" alt="${s}"`;return i&&(h+=` title="${ke(i)}"`),h+=">",h}text(r){return"tokens"in r&&r.tokens?this.parser.parseInline(r.tokens):"escaped"in r&&r.escaped?r.text:ke(r.text)}},Vu=class{strong({text:r}){return r}em({text:r}){return r}codespan({text:r}){return r}del({text:r}){return r}html({text:r}){return r}text({text:r}){return r}link({text:r}){return""+r}image({text:r}){return""+r}br(){return""}},je=class Sc{constructor(i){mt(this,"options");mt(this,"renderer");mt(this,"textRenderer");this.options=i||zl,this.options.renderer=this.options.renderer||new ei,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Vu}static parse(i,s){return new Sc(s).parse(i)}static parseInline(i,s){return new Sc(s).parseInline(i)}parse(i,s=!0){var o,h;let c="";for(let p=0;p<i.length;p++){const g=i[p];if((h=(o=this.options.extensions)==null?void 0:o.renderers)!=null&&h[g.type]){const b=g,y=this.options.extensions.renderers[b.type].call({parser:this},b);if(y!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(b.type)){c+=y||"";continue}}const S=g;switch(S.type){case"space":{c+=this.renderer.space(S);continue}case"hr":{c+=this.renderer.hr(S);continue}case"heading":{c+=this.renderer.heading(S);continue}case"code":{c+=this.renderer.code(S);continue}case"table":{c+=this.renderer.table(S);continue}case"blockquote":{c+=this.renderer.blockquote(S);continue}case"list":{c+=this.renderer.list(S);continue}case"html":{c+=this.renderer.html(S);continue}case"paragraph":{c+=this.renderer.paragraph(S);continue}case"text":{let b=S,y=this.renderer.text(b);for(;p+1<i.length&&i[p+1].type==="text";)b=i[++p],y+=`
133
- `+this.renderer.text(b);s?c+=this.renderer.paragraph({type:"paragraph",raw:y,text:y,tokens:[{type:"text",raw:y,text:y,escaped:!0}]}):c+=y;continue}default:{const b='Token with "'+S.type+'" type was not found.';if(this.options.silent)return console.error(b),"";throw new Error(b)}}}return c}parseInline(i,s=this.renderer){var o,h;let c="";for(let p=0;p<i.length;p++){const g=i[p];if((h=(o=this.options.extensions)==null?void 0:o.renderers)!=null&&h[g.type]){const b=this.options.extensions.renderers[g.type].call({parser:this},g);if(b!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(g.type)){c+=b||"";continue}}const S=g;switch(S.type){case"escape":{c+=s.text(S);break}case"html":{c+=s.html(S);break}case"link":{c+=s.link(S);break}case"image":{c+=s.image(S);break}case"strong":{c+=s.strong(S);break}case"em":{c+=s.em(S);break}case"codespan":{c+=s.codespan(S);break}case"br":{c+=s.br(S);break}case"del":{c+=s.del(S);break}case"text":{c+=s.text(S);break}default:{const b='Token with "'+S.type+'" type was not found.';if(this.options.silent)return console.error(b),"";throw new Error(b)}}}return c}},li=(ir=class{constructor(r){mt(this,"options");mt(this,"block");this.options=r||zl}preprocess(r){return r}postprocess(r){return r}processAllTokens(r){return r}provideLexer(){return this.block?Ce.lex:Ce.lexInline}provideParser(){return this.block?je.parse:je.parseInline}},mt(ir,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"])),ir),k0=class{constructor(...r){mt(this,"defaults",Hu());mt(this,"options",this.setOptions);mt(this,"parse",this.parseMarkdown(!0));mt(this,"parseInline",this.parseMarkdown(!1));mt(this,"Parser",je);mt(this,"Renderer",ei);mt(this,"TextRenderer",Vu);mt(this,"Lexer",Ce);mt(this,"Tokenizer",ti);mt(this,"Hooks",li);this.use(...r)}walkTokens(r,i){var c,o;let s=[];for(const h of r)switch(s=s.concat(i.call(this,h)),h.type){case"table":{const p=h;for(const g of p.header)s=s.concat(this.walkTokens(g.tokens,i));for(const g of p.rows)for(const S of g)s=s.concat(this.walkTokens(S.tokens,i));break}case"list":{const p=h;s=s.concat(this.walkTokens(p.items,i));break}default:{const p=h;(o=(c=this.defaults.extensions)==null?void 0:c.childTokens)!=null&&o[p.type]?this.defaults.extensions.childTokens[p.type].forEach(g=>{const S=p[g].flat(1/0);s=s.concat(this.walkTokens(S,i))}):p.tokens&&(s=s.concat(this.walkTokens(p.tokens,i)))}}return s}use(...r){const i=this.defaults.extensions||{renderers:{},childTokens:{}};return r.forEach(s=>{const c={...s};if(c.async=this.defaults.async||c.async||!1,s.extensions&&(s.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){const h=i.renderers[o.name];h?i.renderers[o.name]=function(...p){let g=o.renderer.apply(this,p);return g===!1&&(g=h.apply(this,p)),g}:i.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const h=i[o.level];h?h.unshift(o.tokenizer):i[o.level]=[o.tokenizer],o.start&&(o.level==="block"?i.startBlock?i.startBlock.push(o.start):i.startBlock=[o.start]:o.level==="inline"&&(i.startInline?i.startInline.push(o.start):i.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(i.childTokens[o.name]=o.childTokens)}),c.extensions=i),s.renderer){const o=this.defaults.renderer||new ei(this.defaults);for(const h in s.renderer){if(!(h in o))throw new Error(`renderer '${h}' does not exist`);if(["options","parser"].includes(h))continue;const p=h,g=s.renderer[p],S=o[p];o[p]=(...b)=>{let y=g.apply(o,b);return y===!1&&(y=S.apply(o,b)),y||""}}c.renderer=o}if(s.tokenizer){const o=this.defaults.tokenizer||new ti(this.defaults);for(const h in s.tokenizer){if(!(h in o))throw new Error(`tokenizer '${h}' does not exist`);if(["options","rules","lexer"].includes(h))continue;const p=h,g=s.tokenizer[p],S=o[p];o[p]=(...b)=>{let y=g.apply(o,b);return y===!1&&(y=S.apply(o,b)),y}}c.tokenizer=o}if(s.hooks){const o=this.defaults.hooks||new li;for(const h in s.hooks){if(!(h in o))throw new Error(`hook '${h}' does not exist`);if(["options","block"].includes(h))continue;const p=h,g=s.hooks[p],S=o[p];li.passThroughHooks.has(h)?o[p]=b=>{if(this.defaults.async)return Promise.resolve(g.call(o,b)).then(R=>S.call(o,R));const y=g.call(o,b);return S.call(o,y)}:o[p]=(...b)=>{let y=g.apply(o,b);return y===!1&&(y=S.apply(o,b)),y}}c.hooks=o}if(s.walkTokens){const o=this.defaults.walkTokens,h=s.walkTokens;c.walkTokens=function(p){let g=[];return g.push(h.call(this,p)),o&&(g=g.concat(o.call(this,p))),g}}this.defaults={...this.defaults,...c}}),this}setOptions(r){return this.defaults={...this.defaults,...r},this}lexer(r,i){return Ce.lex(r,i??this.defaults)}parser(r,i){return je.parse(r,i??this.defaults)}parseMarkdown(r){return(s,c)=>{const o={...c},h={...this.defaults,...o},p=this.onError(!!h.silent,!!h.async);if(this.defaults.async===!0&&o.async===!1)return p(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof s>"u"||s===null)return p(new Error("marked(): input parameter is undefined or null"));if(typeof s!="string")return p(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(s)+", string expected"));h.hooks&&(h.hooks.options=h,h.hooks.block=r);const g=h.hooks?h.hooks.provideLexer():r?Ce.lex:Ce.lexInline,S=h.hooks?h.hooks.provideParser():r?je.parse:je.parseInline;if(h.async)return Promise.resolve(h.hooks?h.hooks.preprocess(s):s).then(b=>g(b,h)).then(b=>h.hooks?h.hooks.processAllTokens(b):b).then(b=>h.walkTokens?Promise.all(this.walkTokens(b,h.walkTokens)).then(()=>b):b).then(b=>S(b,h)).then(b=>h.hooks?h.hooks.postprocess(b):b).catch(p);try{h.hooks&&(s=h.hooks.preprocess(s));let b=g(s,h);h.hooks&&(b=h.hooks.processAllTokens(b)),h.walkTokens&&this.walkTokens(b,h.walkTokens);let y=S(b,h);return h.hooks&&(y=h.hooks.postprocess(y)),y}catch(b){return p(b)}}}onError(r,i){return s=>{if(s.message+=`
134
- Please report this to https://github.com/markedjs/marked.`,r){const c="<p>An error occurred:</p><pre>"+ke(s.message+"",!0)+"</pre>";return i?Promise.resolve(c):c}if(i)return Promise.reject(s);throw s}}},Rl=new k0;function it(r,i){return Rl.parse(r,i)}it.options=it.setOptions=function(r){return Rl.setOptions(r),it.defaults=Rl.defaults,Uc(it.defaults),it},it.getDefaults=Hu,it.defaults=zl,it.use=function(...r){return Rl.use(...r),it.defaults=Rl.defaults,Uc(it.defaults),it},it.walkTokens=function(r,i){return Rl.walkTokens(r,i)},it.parseInline=Rl.parseInline,it.Parser=je,it.parser=je.parse,it.Renderer=ei,it.TextRenderer=Vu,it.Lexer=Ce,it.lexer=Ce.lex,it.Tokenizer=ti,it.Hooks=li,it.parse=it,it.options,it.setOptions,it.use,it.walkTokens,it.parseInline,je.parse,Ce.lex;function O0({message:r,index:i,theme:s}){const c=vt.useMemo(()=>it(r.content.replaceAll("```",""),{gfm:!0,breaks:!0}),[r.content]);return X.jsx("div",{className:`flex ${r.sender==="user"?"justify-end":"justify-start"}`,style:{animationDelay:`${i*.1}s`},children:X.jsx("div",{className:`
103
+ `+e+`</thead>
104
+ `+n+`</table>
105
+ `}tablerow({text:t}){return`<tr>
106
+ ${t}</tr>
107
+ `}tablecell(t){const e=this.parser.parseInline(t.tokens),r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+e+`</${r}>
108
+ `}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${D(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:r}){const n=this.parser.parseInline(r),i=Et(t);if(i===null)return n;t=i;let s='<a href="'+t+'"';return e&&(s+=' title="'+D(e)+'"'),s+=">"+n+"</a>",s}image({href:t,title:e,text:r,tokens:n}){n&&(r=this.parser.parseInline(n,this.parser.textRenderer));const i=Et(t);if(i===null)return D(r);t=i;let s=`<img src="${t}" alt="${r}"`;return e&&(s+=` title="${D(e)}"`),s+=">",s}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:D(t.text)}},Fe=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}},J=class st{constructor(e){R(this,"options");R(this,"renderer");R(this,"textRenderer");this.options=e||Z,this.options.renderer=this.options.renderer||new me,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Fe}static parse(e,r){return new st(r).parse(e)}static parseInline(e,r){return new st(r).parseInline(e)}parse(e,r=!0){var i,s;let n="";for(let o=0;o<e.length;o++){const a=e[o];if((s=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&s[a.type]){const l=a,c=this.options.extensions.renderers[l.type].call({parser:this},l);if(c!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(l.type)){n+=c||"";continue}}const u=a;switch(u.type){case"space":{n+=this.renderer.space(u);continue}case"hr":{n+=this.renderer.hr(u);continue}case"heading":{n+=this.renderer.heading(u);continue}case"code":{n+=this.renderer.code(u);continue}case"table":{n+=this.renderer.table(u);continue}case"blockquote":{n+=this.renderer.blockquote(u);continue}case"list":{n+=this.renderer.list(u);continue}case"html":{n+=this.renderer.html(u);continue}case"paragraph":{n+=this.renderer.paragraph(u);continue}case"text":{let l=u,c=this.renderer.text(l);for(;o+1<e.length&&e[o+1].type==="text";)l=e[++o],c+=`
109
+ `+this.renderer.text(l);r?n+=this.renderer.paragraph({type:"paragraph",raw:c,text:c,tokens:[{type:"text",raw:c,text:c,escaped:!0}]}):n+=c;continue}default:{const l='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return n}parseInline(e,r=this.renderer){var i,s;let n="";for(let o=0;o<e.length;o++){const a=e[o];if((s=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&s[a.type]){const l=this.options.extensions.renderers[a.type].call({parser:this},a);if(l!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){n+=l||"";continue}}const u=a;switch(u.type){case"escape":{n+=r.text(u);break}case"html":{n+=r.html(u);break}case"link":{n+=r.link(u);break}case"image":{n+=r.image(u);break}case"strong":{n+=r.strong(u);break}case"em":{n+=r.em(u);break}case"codespan":{n+=r.codespan(u);break}case"br":{n+=r.br(u);break}case"del":{n+=r.del(u);break}case"text":{n+=r.text(u);break}default:{const l='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return n}},be=(tt=class{constructor(t){R(this,"options");R(this,"block");this.options=t||Z}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}provideLexer(){return this.block?H.lex:H.lexInline}provideParser(){return this.block?J.parse:J.parseInline}},R(tt,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"])),tt),an=class{constructor(...t){R(this,"defaults",Pe());R(this,"options",this.setOptions);R(this,"parse",this.parseMarkdown(!0));R(this,"parseInline",this.parseMarkdown(!1));R(this,"Parser",J);R(this,"Renderer",me);R(this,"TextRenderer",Fe);R(this,"Lexer",H);R(this,"Tokenizer",we);R(this,"Hooks",be);this.use(...t)}walkTokens(t,e){var n,i;let r=[];for(const s of t)switch(r=r.concat(e.call(this,s)),s.type){case"table":{const o=s;for(const a of o.header)r=r.concat(this.walkTokens(a.tokens,e));for(const a of o.rows)for(const u of a)r=r.concat(this.walkTokens(u.tokens,e));break}case"list":{const o=s;r=r.concat(this.walkTokens(o.items,e));break}default:{const o=s;(i=(n=this.defaults.extensions)==null?void 0:n.childTokens)!=null&&i[o.type]?this.defaults.extensions.childTokens[o.type].forEach(a=>{const u=o[a].flat(1/0);r=r.concat(this.walkTokens(u,e))}):o.tokens&&(r=r.concat(this.walkTokens(o.tokens,e)))}}return r}use(...t){const e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(r=>{const n={...r};if(n.async=this.defaults.async||n.async||!1,r.extensions&&(r.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){const s=e.renderers[i.name];s?e.renderers[i.name]=function(...o){let a=i.renderer.apply(this,o);return a===!1&&(a=s.apply(this,o)),a}:e.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const s=e[i.level];s?s.unshift(i.tokenizer):e[i.level]=[i.tokenizer],i.start&&(i.level==="block"?e.startBlock?e.startBlock.push(i.start):e.startBlock=[i.start]:i.level==="inline"&&(e.startInline?e.startInline.push(i.start):e.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(e.childTokens[i.name]=i.childTokens)}),n.extensions=e),r.renderer){const i=this.defaults.renderer||new me(this.defaults);for(const s in r.renderer){if(!(s in i))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;const o=s,a=r.renderer[o],u=i[o];i[o]=(...l)=>{let c=a.apply(i,l);return c===!1&&(c=u.apply(i,l)),c||""}}n.renderer=i}if(r.tokenizer){const i=this.defaults.tokenizer||new we(this.defaults);for(const s in r.tokenizer){if(!(s in i))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;const o=s,a=r.tokenizer[o],u=i[o];i[o]=(...l)=>{let c=a.apply(i,l);return c===!1&&(c=u.apply(i,l)),c}}n.tokenizer=i}if(r.hooks){const i=this.defaults.hooks||new be;for(const s in r.hooks){if(!(s in i))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;const o=s,a=r.hooks[o],u=i[o];be.passThroughHooks.has(s)?i[o]=l=>{if(this.defaults.async)return Promise.resolve(a.call(i,l)).then(h=>u.call(i,h));const c=a.call(i,l);return u.call(i,c)}:i[o]=(...l)=>{let c=a.apply(i,l);return c===!1&&(c=u.apply(i,l)),c}}n.hooks=i}if(r.walkTokens){const i=this.defaults.walkTokens,s=r.walkTokens;n.walkTokens=function(o){let a=[];return a.push(s.call(this,o)),i&&(a=a.concat(i.call(this,o))),a}}this.defaults={...this.defaults,...n}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return H.lex(t,e??this.defaults)}parser(t,e){return J.parse(t,e??this.defaults)}parseMarkdown(t){return(r,n)=>{const i={...n},s={...this.defaults,...i},o=this.onError(!!s.silent,!!s.async);if(this.defaults.async===!0&&i.async===!1)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return o(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));s.hooks&&(s.hooks.options=s,s.hooks.block=t);const a=s.hooks?s.hooks.provideLexer():t?H.lex:H.lexInline,u=s.hooks?s.hooks.provideParser():t?J.parse:J.parseInline;if(s.async)return Promise.resolve(s.hooks?s.hooks.preprocess(r):r).then(l=>a(l,s)).then(l=>s.hooks?s.hooks.processAllTokens(l):l).then(l=>s.walkTokens?Promise.all(this.walkTokens(l,s.walkTokens)).then(()=>l):l).then(l=>u(l,s)).then(l=>s.hooks?s.hooks.postprocess(l):l).catch(o);try{s.hooks&&(r=s.hooks.preprocess(r));let l=a(r,s);s.hooks&&(l=s.hooks.processAllTokens(l)),s.walkTokens&&this.walkTokens(l,s.walkTokens);let c=u(l,s);return s.hooks&&(c=s.hooks.postprocess(c)),c}catch(l){return o(l)}}}onError(t,e){return r=>{if(r.message+=`
110
+ Please report this to https://github.com/markedjs/marked.`,t){const n="<p>An error occurred:</p><pre>"+D(r.message+"",!0)+"</pre>";return e?Promise.resolve(n):n}if(e)return Promise.reject(r);throw r}}},W=new an;function y(t,e){return W.parse(t,e)}y.options=y.setOptions=function(t){return W.setOptions(t),y.defaults=W.defaults,dt(y.defaults),y},y.getDefaults=Pe,y.defaults=Z,y.use=function(...t){return W.use(...t),y.defaults=W.defaults,dt(y.defaults),y},y.walkTokens=function(t,e){return W.walkTokens(t,e)},y.parseInline=W.parseInline,y.Parser=J,y.parser=J.parse,y.Renderer=me,y.TextRenderer=Fe,y.Lexer=H,y.lexer=H.lex,y.Tokenizer=we,y.Hooks=be,y.parse=y,y.options,y.setOptions,y.use,y.walkTokens,y.parseInline,J.parse,H.lex;function ln({message:t,index:e,theme:r}){const n=C.useMemo(()=>y(t.content.replaceAll("```",""),{gfm:!0,breaks:!0}),[t.content]);return m.jsx("div",{className:`flex ${t.sender==="user"?"justify-end":"justify-start"}`,style:{animationDelay:`${e*.1}s`},children:m.jsx("div",{className:`
135
111
  rounded-2xl p-3 shadow-lg
136
- ${r.sender==="user"?`${He(s,"messageUser")} ml-4 max-w-[80%]`:`${He(s,"messageBot")} mr-4 max-w-[100%]`}
137
- `,children:X.jsxs("div",{className:"flex items-start space-x-2",children:[r.sender==="bot"&&X.jsx(qu,{className:"w-4 h-4 mt-0.5 text-pink-200 flex-shrink-0"}),r.sender==="user"&&X.jsx(Qp,{className:"w-4 h-4 mt-0.5 text-pink-200 flex-shrink-0"}),X.jsx("div",{className:"text-sm leading-relaxed message",dangerouslySetInnerHTML:{__html:c}})]})})})}function _0(){return X.jsx("div",{className:"flex justify-start",children:X.jsx("div",{className:"bg-gradient-to-r from-slate-700 to-slate-600 rounded-2xl p-3 mr-4",children:X.jsxs("div",{className:"flex items-center space-x-2",children:[X.jsx(qu,{className:"w-4 h-4 text-cyan-400"}),X.jsxs("div",{className:"flex space-x-1",children:[X.jsx("div",{className:"w-2 h-2 bg-purple-400 rounded-full animate-bounce"}),X.jsx("div",{className:"w-2 h-2 bg-purple-400 rounded-full animate-bounce",style:{animationDelay:"0.1s"}}),X.jsx("div",{className:"w-2 h-2 bg-purple-400 rounded-full animate-bounce",style:{animationDelay:"0.2s"}})]})]})})})}function D0(){return X.jsx("div",{className:"absolute -top-2 -left-2 w-6 h-6 bg-gradient-to-r from-pink-500 to-red-500 rounded-full flex items-center justify-center animate-pulse",children:X.jsx("span",{className:"text-white text-xs font-bold",children:"1"})})}function M0({inputValue:r,setInputValue:i,handleSendMessage:s,handleKeyPress:c,theme:o}){return X.jsx("div",{className:"p-4 border-t border-purple-500/20",children:X.jsxs("div",{className:"flex space-x-2",children:[X.jsx("textarea",{value:r,onChange:h=>i(h.target.value),onKeyPress:c,placeholder:"Type your message...",className:`flex-1 border ${He(o,"input")} rounded-xl px-4 py-2 focus:outline-none focus:ring-2 transition-all`}),X.jsx("button",{onClick:s,disabled:!r.trim(),children:X.jsx(Xp,{className:`w-4 h-4 ${He(o,"sendButton")} cursor-pointer`})})]})})}function U0({setIsOpen:r,isOpen:i}){return X.jsx("button",{onClick:()=>r(!i),className:`
112
+ ${t.sender==="user"?`${M(r,"messageUser")} ml-4 max-w-[80%]`:`${M(r,"messageBot")} mr-4 max-w-[100%]`}
113
+ `,children:m.jsxs("div",{className:"flex items-start space-x-2",children:[t.sender==="bot"&&m.jsx(Ne,{className:"w-4 h-4 mt-0.5 text-pink-200 flex-shrink-0"}),t.sender==="user"&&m.jsx(vr,{className:"w-4 h-4 mt-0.5 text-pink-200 flex-shrink-0"}),m.jsx("div",{className:"text-sm leading-relaxed message",dangerouslySetInnerHTML:{__html:n}})]})})})}function cn(){return m.jsx("div",{className:"flex justify-start",children:m.jsx("div",{className:"bg-gradient-to-r from-slate-700 to-slate-600 rounded-2xl p-3 mr-4",children:m.jsxs("div",{className:"flex items-center space-x-2",children:[m.jsx(Ne,{className:"w-4 h-4 text-cyan-400"}),m.jsxs("div",{className:"flex space-x-1",children:[m.jsx("div",{className:"w-2 h-2 bg-purple-400 rounded-full animate-bounce"}),m.jsx("div",{className:"w-2 h-2 bg-purple-400 rounded-full animate-bounce",style:{animationDelay:"0.1s"}}),m.jsx("div",{className:"w-2 h-2 bg-purple-400 rounded-full animate-bounce",style:{animationDelay:"0.2s"}})]})]})})})}function un(){return m.jsx("div",{className:"absolute -top-2 -left-2 w-6 h-6 bg-gradient-to-r from-pink-500 to-red-500 rounded-full flex items-center justify-center animate-pulse",children:m.jsx("span",{className:"text-white text-xs font-bold",children:"1"})})}function pn({inputValue:t,setInputValue:e,handleSendMessage:r,handleKeyPress:n,theme:i}){return m.jsx("div",{className:"p-4 border-t border-purple-500/20",children:m.jsxs("div",{className:"flex space-x-2",children:[m.jsx("textarea",{value:t,onChange:s=>e(s.target.value),onKeyPress:n,placeholder:"Type your message...",className:`flex-1 border ${M(i,"input")} rounded-xl px-4 py-2 focus:outline-none focus:ring-2 transition-all`}),m.jsx("button",{onClick:r,disabled:!t.trim(),children:m.jsx(yr,{className:`w-4 h-4 ${M(i,"sendButton")} cursor-pointer`})})]})})}function dn({setIsOpen:t,isOpen:e}){return m.jsx("button",{onClick:()=>t(!e),className:`
138
114
  w-14 h-14 bg-gradient-to-r from-purple-600 to-blue-600 hover:from-purple-700 hover:to-blue-700
139
115
  rounded-full shadow-2xl flex items-center justify-center text-white
140
116
  transition-all duration-300 transform hover:scale-110 active:scale-95 cursor-pointer
141
- ${i?"rotate-180":"rotate-0"}
142
- `,style:{boxShadow:"0 0 30px rgba(147, 51, 234, 0.5)"},children:i?X.jsx(Mc,{className:"w-6 h-6"}):X.jsx(Gp,{className:"w-6 h-6"})})}function N0(r){return new Promise(i=>setTimeout(i,r))}function B0({prompt:r,handleSendMessage:i,theme:s}){const c=()=>{i(r)};return X.jsx("div",{onClick:c,className:`${He(s,"prompt")} text-sm rounded-full transition hover:scale-98 cursor-pointer px-4 py-2`,children:r})}function $c(r,i){return function(){return r.apply(i,arguments)}}var Wc={};const{toString:q0}=Object.prototype,{getPrototypeOf:Ku}=Object,{iterator:ai,toStringTag:Fc}=Symbol,ni=(r=>i=>{const s=q0.call(i);return r[s]||(r[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),Te=r=>(r=r.toLowerCase(),i=>ni(i)===r),ii=r=>i=>typeof i===r,{isArray:Pl}=Array,Ka=ii("undefined");function H0(r){return r!==null&&!Ka(r)&&r.constructor!==null&&!Ka(r.constructor)&&$t(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}const Pc=Te("ArrayBuffer");function C0(r){let i;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?i=ArrayBuffer.isView(r):i=r&&r.buffer&&Pc(r.buffer),i}const j0=ii("string"),$t=ii("function"),Ic=ii("number"),ui=r=>r!==null&&typeof r=="object",L0=r=>r===!0||r===!1,ri=r=>{if(ni(r)!=="object")return!1;const i=Ku(r);return(i===null||i===Object.prototype||Object.getPrototypeOf(i)===null)&&!(Fc in r)&&!(ai in r)},Y0=Te("Date"),G0=Te("File"),X0=Te("Blob"),Q0=Te("FileList"),Z0=r=>ui(r)&&$t(r.pipe),V0=r=>{let i;return r&&(typeof FormData=="function"&&r instanceof FormData||$t(r.append)&&((i=ni(r))==="formdata"||i==="object"&&$t(r.toString)&&r.toString()==="[object FormData]"))},K0=Te("URLSearchParams"),[J0,$0,W0,F0]=["ReadableStream","Request","Response","Headers"].map(Te),P0=r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ja(r,i,{allOwnKeys:s=!1}={}){if(r===null||typeof r>"u")return;let c,o;if(typeof r!="object"&&(r=[r]),Pl(r))for(c=0,o=r.length;c<o;c++)i.call(null,r[c],c,r);else{const h=s?Object.getOwnPropertyNames(r):Object.keys(r),p=h.length;let g;for(c=0;c<p;c++)g=h[c],i.call(null,r[g],g,r)}}function to(r,i){i=i.toLowerCase();const s=Object.keys(r);let c=s.length,o;for(;c-- >0;)if(o=s[c],i===o.toLowerCase())return o;return null}const kl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,eo=r=>!Ka(r)&&r!==kl;function Ju(){const{caseless:r}=eo(this)&&this||{},i={},s=(c,o)=>{const h=r&&to(i,o)||o;ri(i[h])&&ri(c)?i[h]=Ju(i[h],c):ri(c)?i[h]=Ju({},c):Pl(c)?i[h]=c.slice():i[h]=c};for(let c=0,o=arguments.length;c<o;c++)arguments[c]&&Ja(arguments[c],s);return i}const I0=(r,i,s,{allOwnKeys:c}={})=>(Ja(i,(o,h)=>{s&&$t(o)?r[h]=$c(o,s):r[h]=o},{allOwnKeys:c}),r),tg=r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),eg=(r,i,s,c)=>{r.prototype=Object.create(i.prototype,c),r.prototype.constructor=r,Object.defineProperty(r,"super",{value:i.prototype}),s&&Object.assign(r.prototype,s)},lg=(r,i,s,c)=>{let o,h,p;const g={};if(i=i||{},r==null)return i;do{for(o=Object.getOwnPropertyNames(r),h=o.length;h-- >0;)p=o[h],(!c||c(p,r,i))&&!g[p]&&(i[p]=r[p],g[p]=!0);r=s!==!1&&Ku(r)}while(r&&(!s||s(r,i))&&r!==Object.prototype);return i},ag=(r,i,s)=>{r=String(r),(s===void 0||s>r.length)&&(s=r.length),s-=i.length;const c=r.indexOf(i,s);return c!==-1&&c===s},ng=r=>{if(!r)return null;if(Pl(r))return r;let i=r.length;if(!Ic(i))return null;const s=new Array(i);for(;i-- >0;)s[i]=r[i];return s},ig=(r=>i=>r&&i instanceof r)(typeof Uint8Array<"u"&&Ku(Uint8Array)),ug=(r,i)=>{const c=(r&&r[ai]).call(r);let o;for(;(o=c.next())&&!o.done;){const h=o.value;i.call(r,h[0],h[1])}},rg=(r,i)=>{let s;const c=[];for(;(s=r.exec(i))!==null;)c.push(s);return c},sg=Te("HTMLFormElement"),cg=r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(s,c,o){return c.toUpperCase()+o}),lo=(({hasOwnProperty:r})=>(i,s)=>r.call(i,s))(Object.prototype),og=Te("RegExp"),ao=(r,i)=>{const s=Object.getOwnPropertyDescriptors(r),c={};Ja(s,(o,h)=>{let p;(p=i(o,h,r))!==!1&&(c[h]=p||o)}),Object.defineProperties(r,c)},fg=r=>{ao(r,(i,s)=>{if($t(r)&&["arguments","caller","callee"].indexOf(s)!==-1)return!1;const c=r[s];if($t(c)){if(i.enumerable=!1,"writable"in i){i.writable=!1;return}i.set||(i.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},dg=(r,i)=>{const s={},c=o=>{o.forEach(h=>{s[h]=!0})};return Pl(r)?c(r):c(String(r).split(i)),s},hg=()=>{},pg=(r,i)=>r!=null&&Number.isFinite(r=+r)?r:i;function gg(r){return!!(r&&$t(r.append)&&r[Fc]==="FormData"&&r[ai])}const mg=r=>{const i=new Array(10),s=(c,o)=>{if(ui(c)){if(i.indexOf(c)>=0)return;if(!("toJSON"in c)){i[o]=c;const h=Pl(c)?[]:{};return Ja(c,(p,g)=>{const S=s(p,o+1);!Ka(S)&&(h[g]=S)}),i[o]=void 0,h}}return c};return s(r,0)},bg=Te("AsyncFunction"),vg=r=>r&&(ui(r)||$t(r))&&$t(r.then)&&$t(r.catch),no=((r,i)=>r?setImmediate:i?((s,c)=>(kl.addEventListener("message",({source:o,data:h})=>{o===kl&&h===s&&c.length&&c.shift()()},!1),o=>{c.push(o),kl.postMessage(s,"*")}))(`axios@${Math.random()}`,[]):s=>setTimeout(s))(typeof setImmediate=="function",$t(kl.postMessage)),yg=typeof queueMicrotask<"u"?queueMicrotask.bind(kl):typeof Wc<"u"&&Wc.nextTick||no,z={isArray:Pl,isArrayBuffer:Pc,isBuffer:H0,isFormData:V0,isArrayBufferView:C0,isString:j0,isNumber:Ic,isBoolean:L0,isObject:ui,isPlainObject:ri,isReadableStream:J0,isRequest:$0,isResponse:W0,isHeaders:F0,isUndefined:Ka,isDate:Y0,isFile:G0,isBlob:X0,isRegExp:og,isFunction:$t,isStream:Z0,isURLSearchParams:K0,isTypedArray:ig,isFileList:Q0,forEach:Ja,merge:Ju,extend:I0,trim:P0,stripBOM:tg,inherits:eg,toFlatObject:lg,kindOf:ni,kindOfTest:Te,endsWith:ag,toArray:ng,forEachEntry:ug,matchAll:rg,isHTMLForm:sg,hasOwnProperty:lo,hasOwnProp:lo,reduceDescriptors:ao,freezeMethods:fg,toObjectSet:dg,toCamelCase:cg,noop:hg,toFiniteNumber:pg,findKey:to,global:kl,isContextDefined:eo,isSpecCompliantForm:gg,toJSONObject:mg,isAsyncFn:bg,isThenable:vg,setImmediate:no,asap:yg,isIterable:r=>r!=null&&$t(r[ai])};function Z(r,i,s,c,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=r,this.name="AxiosError",i&&(this.code=i),s&&(this.config=s),c&&(this.request=c),o&&(this.response=o,this.status=o.status?o.status:null)}z.inherits(Z,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:z.toJSONObject(this.config),code:this.code,status:this.status}}});const io=Z.prototype,uo={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(r=>{uo[r]={value:r}}),Object.defineProperties(Z,uo),Object.defineProperty(io,"isAxiosError",{value:!0}),Z.from=(r,i,s,c,o,h)=>{const p=Object.create(io);return z.toFlatObject(r,p,function(S){return S!==Error.prototype},g=>g!=="isAxiosError"),Z.call(p,r.message,i,s,c,o),p.cause=r,p.name=r.name,h&&Object.assign(p,h),p};const wg=null;function $u(r){return z.isPlainObject(r)||z.isArray(r)}function ro(r){return z.endsWith(r,"[]")?r.slice(0,-2):r}function so(r,i,s){return r?r.concat(i).map(function(o,h){return o=ro(o),!s&&h?"["+o+"]":o}).join(s?".":""):i}function xg(r){return z.isArray(r)&&!r.some($u)}const Sg=z.toFlatObject(z,{},null,function(i){return/^is[A-Z]/.test(i)});function si(r,i,s){if(!z.isObject(r))throw new TypeError("target must be an object");i=i||new FormData,s=z.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(B,H){return!z.isUndefined(H[B])});const c=s.metaTokens,o=s.visitor||y,h=s.dots,p=s.indexes,S=(s.Blob||typeof Blob<"u"&&Blob)&&z.isSpecCompliantForm(i);if(!z.isFunction(o))throw new TypeError("visitor must be a function");function b(M){if(M===null)return"";if(z.isDate(M))return M.toISOString();if(z.isBoolean(M))return M.toString();if(!S&&z.isBlob(M))throw new Z("Blob is not supported. Use a Buffer instead.");return z.isArrayBuffer(M)||z.isTypedArray(M)?S&&typeof Blob=="function"?new Blob([M]):Buffer.from(M):M}function y(M,B,H){let F=M;if(M&&!H&&typeof M=="object"){if(z.endsWith(B,"{}"))B=c?B:B.slice(0,-2),M=JSON.stringify(M);else if(z.isArray(M)&&xg(M)||(z.isFileList(M)||z.endsWith(B,"[]"))&&(F=z.toArray(M)))return B=ro(B),F.forEach(function(nt,ut){!(z.isUndefined(nt)||nt===null)&&i.append(p===!0?so([B],ut,h):p===null?B:B+"[]",b(nt))}),!1}return $u(M)?!0:(i.append(so(H,B,h),b(M)),!1)}const R=[],D=Object.assign(Sg,{defaultVisitor:y,convertValue:b,isVisitable:$u});function Y(M,B){if(!z.isUndefined(M)){if(R.indexOf(M)!==-1)throw Error("Circular reference detected in "+B.join("."));R.push(M),z.forEach(M,function(F,at){(!(z.isUndefined(F)||F===null)&&o.call(i,F,z.isString(at)?at.trim():at,B,D))===!0&&Y(F,B?B.concat(at):[at])}),R.pop()}}if(!z.isObject(r))throw new TypeError("data must be an object");return Y(r),i}function co(r){const i={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g,function(c){return i[c]})}function Wu(r,i){this._pairs=[],r&&si(r,this,i)}const oo=Wu.prototype;oo.append=function(i,s){this._pairs.push([i,s])},oo.toString=function(i){const s=i?function(c){return i.call(this,c,co)}:co;return this._pairs.map(function(o){return s(o[0])+"="+s(o[1])},"").join("&")};function Tg(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function fo(r,i,s){if(!i)return r;const c=s&&s.encode||Tg;z.isFunction(s)&&(s={serialize:s});const o=s&&s.serialize;let h;if(o?h=o(i,s):h=z.isURLSearchParams(i)?i.toString():new Wu(i,s).toString(c),h){const p=r.indexOf("#");p!==-1&&(r=r.slice(0,p)),r+=(r.indexOf("?")===-1?"?":"&")+h}return r}class ho{constructor(){this.handlers=[]}use(i,s,c){return this.handlers.push({fulfilled:i,rejected:s,synchronous:c?c.synchronous:!1,runWhen:c?c.runWhen:null}),this.handlers.length-1}eject(i){this.handlers[i]&&(this.handlers[i]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(i){z.forEach(this.handlers,function(c){c!==null&&i(c)})}}const po={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ag={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Wu,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Fu=typeof window<"u"&&typeof document<"u",Pu=typeof navigator=="object"&&navigator||void 0,Eg=Fu&&(!Pu||["ReactNative","NativeScript","NS"].indexOf(Pu.product)<0),zg=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Rg=Fu&&window.location.href||"http://localhost",Yt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Fu,hasStandardBrowserEnv:Eg,hasStandardBrowserWebWorkerEnv:zg,navigator:Pu,origin:Rg},Symbol.toStringTag,{value:"Module"})),...Ag};function kg(r,i){return si(r,new Yt.classes.URLSearchParams,Object.assign({visitor:function(s,c,o,h){return Yt.isNode&&z.isBuffer(s)?(this.append(c,s.toString("base64")),!1):h.defaultVisitor.apply(this,arguments)}},i))}function Og(r){return z.matchAll(/\w+|\[(\w*)]/g,r).map(i=>i[0]==="[]"?"":i[1]||i[0])}function _g(r){const i={},s=Object.keys(r);let c;const o=s.length;let h;for(c=0;c<o;c++)h=s[c],i[h]=r[h];return i}function go(r){function i(s,c,o,h){let p=s[h++];if(p==="__proto__")return!0;const g=Number.isFinite(+p),S=h>=s.length;return p=!p&&z.isArray(o)?o.length:p,S?(z.hasOwnProp(o,p)?o[p]=[o[p],c]:o[p]=c,!g):((!o[p]||!z.isObject(o[p]))&&(o[p]=[]),i(s,c,o[p],h)&&z.isArray(o[p])&&(o[p]=_g(o[p])),!g)}if(z.isFormData(r)&&z.isFunction(r.entries)){const s={};return z.forEachEntry(r,(c,o)=>{i(Og(c),o,s,0)}),s}return null}function Dg(r,i,s){if(z.isString(r))try{return(i||JSON.parse)(r),z.trim(r)}catch(c){if(c.name!=="SyntaxError")throw c}return(s||JSON.stringify)(r)}const $a={transitional:po,adapter:["xhr","http","fetch"],transformRequest:[function(i,s){const c=s.getContentType()||"",o=c.indexOf("application/json")>-1,h=z.isObject(i);if(h&&z.isHTMLForm(i)&&(i=new FormData(i)),z.isFormData(i))return o?JSON.stringify(go(i)):i;if(z.isArrayBuffer(i)||z.isBuffer(i)||z.isStream(i)||z.isFile(i)||z.isBlob(i)||z.isReadableStream(i))return i;if(z.isArrayBufferView(i))return i.buffer;if(z.isURLSearchParams(i))return s.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),i.toString();let g;if(h){if(c.indexOf("application/x-www-form-urlencoded")>-1)return kg(i,this.formSerializer).toString();if((g=z.isFileList(i))||c.indexOf("multipart/form-data")>-1){const S=this.env&&this.env.FormData;return si(g?{"files[]":i}:i,S&&new S,this.formSerializer)}}return h||o?(s.setContentType("application/json",!1),Dg(i)):i}],transformResponse:[function(i){const s=this.transitional||$a.transitional,c=s&&s.forcedJSONParsing,o=this.responseType==="json";if(z.isResponse(i)||z.isReadableStream(i))return i;if(i&&z.isString(i)&&(c&&!this.responseType||o)){const p=!(s&&s.silentJSONParsing)&&o;try{return JSON.parse(i)}catch(g){if(p)throw g.name==="SyntaxError"?Z.from(g,Z.ERR_BAD_RESPONSE,this,null,this.response):g}}return i}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Yt.classes.FormData,Blob:Yt.classes.Blob},validateStatus:function(i){return i>=200&&i<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};z.forEach(["delete","get","head","post","put","patch"],r=>{$a.headers[r]={}});const Mg=z.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ug=r=>{const i={};let s,c,o;return r&&r.split(`
143
- `).forEach(function(p){o=p.indexOf(":"),s=p.substring(0,o).trim().toLowerCase(),c=p.substring(o+1).trim(),!(!s||i[s]&&Mg[s])&&(s==="set-cookie"?i[s]?i[s].push(c):i[s]=[c]:i[s]=i[s]?i[s]+", "+c:c)}),i},mo=Symbol("internals");function Wa(r){return r&&String(r).trim().toLowerCase()}function ci(r){return r===!1||r==null?r:z.isArray(r)?r.map(ci):String(r)}function Ng(r){const i=Object.create(null),s=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let c;for(;c=s.exec(r);)i[c[1]]=c[2];return i}const Bg=r=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());function Iu(r,i,s,c,o){if(z.isFunction(c))return c.call(this,i,s);if(o&&(i=s),!!z.isString(i)){if(z.isString(c))return i.indexOf(c)!==-1;if(z.isRegExp(c))return c.test(i)}}function qg(r){return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(i,s,c)=>s.toUpperCase()+c)}function Hg(r,i){const s=z.toCamelCase(" "+i);["get","set","has"].forEach(c=>{Object.defineProperty(r,c+s,{value:function(o,h,p){return this[c].call(this,i,o,h,p)},configurable:!0})})}let Wt=class{constructor(i){i&&this.set(i)}set(i,s,c){const o=this;function h(g,S,b){const y=Wa(S);if(!y)throw new Error("header name must be a non-empty string");const R=z.findKey(o,y);(!R||o[R]===void 0||b===!0||b===void 0&&o[R]!==!1)&&(o[R||S]=ci(g))}const p=(g,S)=>z.forEach(g,(b,y)=>h(b,y,S));if(z.isPlainObject(i)||i instanceof this.constructor)p(i,s);else if(z.isString(i)&&(i=i.trim())&&!Bg(i))p(Ug(i),s);else if(z.isObject(i)&&z.isIterable(i)){let g={},S,b;for(const y of i){if(!z.isArray(y))throw TypeError("Object iterator must return a key-value pair");g[b=y[0]]=(S=g[b])?z.isArray(S)?[...S,y[1]]:[S,y[1]]:y[1]}p(g,s)}else i!=null&&h(s,i,c);return this}get(i,s){if(i=Wa(i),i){const c=z.findKey(this,i);if(c){const o=this[c];if(!s)return o;if(s===!0)return Ng(o);if(z.isFunction(s))return s.call(this,o,c);if(z.isRegExp(s))return s.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(i,s){if(i=Wa(i),i){const c=z.findKey(this,i);return!!(c&&this[c]!==void 0&&(!s||Iu(this,this[c],c,s)))}return!1}delete(i,s){const c=this;let o=!1;function h(p){if(p=Wa(p),p){const g=z.findKey(c,p);g&&(!s||Iu(c,c[g],g,s))&&(delete c[g],o=!0)}}return z.isArray(i)?i.forEach(h):h(i),o}clear(i){const s=Object.keys(this);let c=s.length,o=!1;for(;c--;){const h=s[c];(!i||Iu(this,this[h],h,i,!0))&&(delete this[h],o=!0)}return o}normalize(i){const s=this,c={};return z.forEach(this,(o,h)=>{const p=z.findKey(c,h);if(p){s[p]=ci(o),delete s[h];return}const g=i?qg(h):String(h).trim();g!==h&&delete s[h],s[g]=ci(o),c[g]=!0}),this}concat(...i){return this.constructor.concat(this,...i)}toJSON(i){const s=Object.create(null);return z.forEach(this,(c,o)=>{c!=null&&c!==!1&&(s[o]=i&&z.isArray(c)?c.join(", "):c)}),s}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([i,s])=>i+": "+s).join(`
144
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(i){return i instanceof this?i:new this(i)}static concat(i,...s){const c=new this(i);return s.forEach(o=>c.set(o)),c}static accessor(i){const c=(this[mo]=this[mo]={accessors:{}}).accessors,o=this.prototype;function h(p){const g=Wa(p);c[g]||(Hg(o,p),c[g]=!0)}return z.isArray(i)?i.forEach(h):h(i),this}};Wt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),z.reduceDescriptors(Wt.prototype,({value:r},i)=>{let s=i[0].toUpperCase()+i.slice(1);return{get:()=>r,set(c){this[s]=c}}}),z.freezeMethods(Wt);function tr(r,i){const s=this||$a,c=i||s,o=Wt.from(c.headers);let h=c.data;return z.forEach(r,function(g){h=g.call(s,h,o.normalize(),i?i.status:void 0)}),o.normalize(),h}function bo(r){return!!(r&&r.__CANCEL__)}function Il(r,i,s){Z.call(this,r??"canceled",Z.ERR_CANCELED,i,s),this.name="CanceledError"}z.inherits(Il,Z,{__CANCEL__:!0});function vo(r,i,s){const c=s.config.validateStatus;!s.status||!c||c(s.status)?r(s):i(new Z("Request failed with status code "+s.status,[Z.ERR_BAD_REQUEST,Z.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s))}function Cg(r){const i=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return i&&i[1]||""}function jg(r,i){r=r||10;const s=new Array(r),c=new Array(r);let o=0,h=0,p;return i=i!==void 0?i:1e3,function(S){const b=Date.now(),y=c[h];p||(p=b),s[o]=S,c[o]=b;let R=h,D=0;for(;R!==o;)D+=s[R++],R=R%r;if(o=(o+1)%r,o===h&&(h=(h+1)%r),b-p<i)return;const Y=y&&b-y;return Y?Math.round(D*1e3/Y):void 0}}function Lg(r,i){let s=0,c=1e3/i,o,h;const p=(b,y=Date.now())=>{s=y,o=null,h&&(clearTimeout(h),h=null),r.apply(null,b)};return[(...b)=>{const y=Date.now(),R=y-s;R>=c?p(b,y):(o=b,h||(h=setTimeout(()=>{h=null,p(o)},c-R)))},()=>o&&p(o)]}const oi=(r,i,s=3)=>{let c=0;const o=jg(50,250);return Lg(h=>{const p=h.loaded,g=h.lengthComputable?h.total:void 0,S=p-c,b=o(S),y=p<=g;c=p;const R={loaded:p,total:g,progress:g?p/g:void 0,bytes:S,rate:b||void 0,estimated:b&&g&&y?(g-p)/b:void 0,event:h,lengthComputable:g!=null,[i?"download":"upload"]:!0};r(R)},s)},yo=(r,i)=>{const s=r!=null;return[c=>i[0]({lengthComputable:s,total:r,loaded:c}),i[1]]},wo=r=>(...i)=>z.asap(()=>r(...i)),Yg=Yt.hasStandardBrowserEnv?((r,i)=>s=>(s=new URL(s,Yt.origin),r.protocol===s.protocol&&r.host===s.host&&(i||r.port===s.port)))(new URL(Yt.origin),Yt.navigator&&/(msie|trident)/i.test(Yt.navigator.userAgent)):()=>!0,Gg=Yt.hasStandardBrowserEnv?{write(r,i,s,c,o,h){const p=[r+"="+encodeURIComponent(i)];z.isNumber(s)&&p.push("expires="+new Date(s).toGMTString()),z.isString(c)&&p.push("path="+c),z.isString(o)&&p.push("domain="+o),h===!0&&p.push("secure"),document.cookie=p.join("; ")},read(r){const i=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove(r){this.write(r,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Xg(r){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}function Qg(r,i){return i?r.replace(/\/?\/$/,"")+"/"+i.replace(/^\/+/,""):r}function xo(r,i,s){let c=!Xg(i);return r&&(c||s==!1)?Qg(r,i):i}const So=r=>r instanceof Wt?{...r}:r;function Ol(r,i){i=i||{};const s={};function c(b,y,R,D){return z.isPlainObject(b)&&z.isPlainObject(y)?z.merge.call({caseless:D},b,y):z.isPlainObject(y)?z.merge({},y):z.isArray(y)?y.slice():y}function o(b,y,R,D){if(z.isUndefined(y)){if(!z.isUndefined(b))return c(void 0,b,R,D)}else return c(b,y,R,D)}function h(b,y){if(!z.isUndefined(y))return c(void 0,y)}function p(b,y){if(z.isUndefined(y)){if(!z.isUndefined(b))return c(void 0,b)}else return c(void 0,y)}function g(b,y,R){if(R in i)return c(b,y);if(R in r)return c(void 0,b)}const S={url:h,method:h,data:h,baseURL:p,transformRequest:p,transformResponse:p,paramsSerializer:p,timeout:p,timeoutMessage:p,withCredentials:p,withXSRFToken:p,adapter:p,responseType:p,xsrfCookieName:p,xsrfHeaderName:p,onUploadProgress:p,onDownloadProgress:p,decompress:p,maxContentLength:p,maxBodyLength:p,beforeRedirect:p,transport:p,httpAgent:p,httpsAgent:p,cancelToken:p,socketPath:p,responseEncoding:p,validateStatus:g,headers:(b,y,R)=>o(So(b),So(y),R,!0)};return z.forEach(Object.keys(Object.assign({},r,i)),function(y){const R=S[y]||o,D=R(r[y],i[y],y);z.isUndefined(D)&&R!==g||(s[y]=D)}),s}const To=r=>{const i=Ol({},r);let{data:s,withXSRFToken:c,xsrfHeaderName:o,xsrfCookieName:h,headers:p,auth:g}=i;i.headers=p=Wt.from(p),i.url=fo(xo(i.baseURL,i.url,i.allowAbsoluteUrls),r.params,r.paramsSerializer),g&&p.set("Authorization","Basic "+btoa((g.username||"")+":"+(g.password?unescape(encodeURIComponent(g.password)):"")));let S;if(z.isFormData(s)){if(Yt.hasStandardBrowserEnv||Yt.hasStandardBrowserWebWorkerEnv)p.setContentType(void 0);else if((S=p.getContentType())!==!1){const[b,...y]=S?S.split(";").map(R=>R.trim()).filter(Boolean):[];p.setContentType([b||"multipart/form-data",...y].join("; "))}}if(Yt.hasStandardBrowserEnv&&(c&&z.isFunction(c)&&(c=c(i)),c||c!==!1&&Yg(i.url))){const b=o&&h&&Gg.read(h);b&&p.set(o,b)}return i},Zg=typeof XMLHttpRequest<"u"&&function(r){return new Promise(function(s,c){const o=To(r);let h=o.data;const p=Wt.from(o.headers).normalize();let{responseType:g,onUploadProgress:S,onDownloadProgress:b}=o,y,R,D,Y,M;function B(){Y&&Y(),M&&M(),o.cancelToken&&o.cancelToken.unsubscribe(y),o.signal&&o.signal.removeEventListener("abort",y)}let H=new XMLHttpRequest;H.open(o.method.toUpperCase(),o.url,!0),H.timeout=o.timeout;function F(){if(!H)return;const nt=Wt.from("getAllResponseHeaders"in H&&H.getAllResponseHeaders()),ht={data:!g||g==="text"||g==="json"?H.responseText:H.response,status:H.status,statusText:H.statusText,headers:nt,config:r,request:H};vo(function(pt){s(pt),B()},function(pt){c(pt),B()},ht),H=null}"onloadend"in H?H.onloadend=F:H.onreadystatechange=function(){!H||H.readyState!==4||H.status===0&&!(H.responseURL&&H.responseURL.indexOf("file:")===0)||setTimeout(F)},H.onabort=function(){H&&(c(new Z("Request aborted",Z.ECONNABORTED,r,H)),H=null)},H.onerror=function(){c(new Z("Network Error",Z.ERR_NETWORK,r,H)),H=null},H.ontimeout=function(){let ut=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const ht=o.transitional||po;o.timeoutErrorMessage&&(ut=o.timeoutErrorMessage),c(new Z(ut,ht.clarifyTimeoutError?Z.ETIMEDOUT:Z.ECONNABORTED,r,H)),H=null},h===void 0&&p.setContentType(null),"setRequestHeader"in H&&z.forEach(p.toJSON(),function(ut,ht){H.setRequestHeader(ht,ut)}),z.isUndefined(o.withCredentials)||(H.withCredentials=!!o.withCredentials),g&&g!=="json"&&(H.responseType=o.responseType),b&&([D,M]=oi(b,!0),H.addEventListener("progress",D)),S&&H.upload&&([R,Y]=oi(S),H.upload.addEventListener("progress",R),H.upload.addEventListener("loadend",Y)),(o.cancelToken||o.signal)&&(y=nt=>{H&&(c(!nt||nt.type?new Il(null,r,H):nt),H.abort(),H=null)},o.cancelToken&&o.cancelToken.subscribe(y),o.signal&&(o.signal.aborted?y():o.signal.addEventListener("abort",y)));const at=Cg(o.url);if(at&&Yt.protocols.indexOf(at)===-1){c(new Z("Unsupported protocol "+at+":",Z.ERR_BAD_REQUEST,r));return}H.send(h||null)})},Vg=(r,i)=>{const{length:s}=r=r?r.filter(Boolean):[];if(i||s){let c=new AbortController,o;const h=function(b){if(!o){o=!0,g();const y=b instanceof Error?b:this.reason;c.abort(y instanceof Z?y:new Il(y instanceof Error?y.message:y))}};let p=i&&setTimeout(()=>{p=null,h(new Z(`timeout ${i} of ms exceeded`,Z.ETIMEDOUT))},i);const g=()=>{r&&(p&&clearTimeout(p),p=null,r.forEach(b=>{b.unsubscribe?b.unsubscribe(h):b.removeEventListener("abort",h)}),r=null)};r.forEach(b=>b.addEventListener("abort",h));const{signal:S}=c;return S.unsubscribe=()=>z.asap(g),S}},Kg=function*(r,i){let s=r.byteLength;if(s<i){yield r;return}let c=0,o;for(;c<s;)o=c+i,yield r.slice(c,o),c=o},Jg=async function*(r,i){for await(const s of $g(r))yield*Kg(s,i)},$g=async function*(r){if(r[Symbol.asyncIterator]){yield*r;return}const i=r.getReader();try{for(;;){const{done:s,value:c}=await i.read();if(s)break;yield c}}finally{await i.cancel()}},Ao=(r,i,s,c)=>{const o=Jg(r,i);let h=0,p,g=S=>{p||(p=!0,c&&c(S))};return new ReadableStream({async pull(S){try{const{done:b,value:y}=await o.next();if(b){g(),S.close();return}let R=y.byteLength;if(s){let D=h+=R;s(D)}S.enqueue(new Uint8Array(y))}catch(b){throw g(b),b}},cancel(S){return g(S),o.return()}},{highWaterMark:2})},fi=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Eo=fi&&typeof ReadableStream=="function",Wg=fi&&(typeof TextEncoder=="function"?(r=>i=>r.encode(i))(new TextEncoder):async r=>new Uint8Array(await new Response(r).arrayBuffer())),zo=(r,...i)=>{try{return!!r(...i)}catch{return!1}},Fg=Eo&&zo(()=>{let r=!1;const i=new Request(Yt.origin,{body:new ReadableStream,method:"POST",get duplex(){return r=!0,"half"}}).headers.has("Content-Type");return r&&!i}),Ro=64*1024,er=Eo&&zo(()=>z.isReadableStream(new Response("").body)),di={stream:er&&(r=>r.body)};fi&&(r=>{["text","arrayBuffer","blob","formData","stream"].forEach(i=>{!di[i]&&(di[i]=z.isFunction(r[i])?s=>s[i]():(s,c)=>{throw new Z(`Response type '${i}' is not supported`,Z.ERR_NOT_SUPPORT,c)})})})(new Response);const Pg=async r=>{if(r==null)return 0;if(z.isBlob(r))return r.size;if(z.isSpecCompliantForm(r))return(await new Request(Yt.origin,{method:"POST",body:r}).arrayBuffer()).byteLength;if(z.isArrayBufferView(r)||z.isArrayBuffer(r))return r.byteLength;if(z.isURLSearchParams(r)&&(r=r+""),z.isString(r))return(await Wg(r)).byteLength},Ig=async(r,i)=>{const s=z.toFiniteNumber(r.getContentLength());return s??Pg(i)},lr={http:wg,xhr:Zg,fetch:fi&&(async r=>{let{url:i,method:s,data:c,signal:o,cancelToken:h,timeout:p,onDownloadProgress:g,onUploadProgress:S,responseType:b,headers:y,withCredentials:R="same-origin",fetchOptions:D}=To(r);b=b?(b+"").toLowerCase():"text";let Y=Vg([o,h&&h.toAbortSignal()],p),M;const B=Y&&Y.unsubscribe&&(()=>{Y.unsubscribe()});let H;try{if(S&&Fg&&s!=="get"&&s!=="head"&&(H=await Ig(y,c))!==0){let ht=new Request(i,{method:"POST",body:c,duplex:"half"}),yt;if(z.isFormData(c)&&(yt=ht.headers.get("content-type"))&&y.setContentType(yt),ht.body){const[pt,le]=yo(H,oi(wo(S)));c=Ao(ht.body,Ro,pt,le)}}z.isString(R)||(R=R?"include":"omit");const F="credentials"in Request.prototype;M=new Request(i,{...D,signal:Y,method:s.toUpperCase(),headers:y.normalize().toJSON(),body:c,duplex:"half",credentials:F?R:void 0});let at=await fetch(M,D);const nt=er&&(b==="stream"||b==="response");if(er&&(g||nt&&B)){const ht={};["status","statusText","headers"].forEach(J=>{ht[J]=at[J]});const yt=z.toFiniteNumber(at.headers.get("content-length")),[pt,le]=g&&yo(yt,oi(wo(g),!0))||[];at=new Response(Ao(at.body,Ro,pt,()=>{le&&le(),B&&B()}),ht)}b=b||"text";let ut=await di[z.findKey(di,b)||"text"](at,r);return!nt&&B&&B(),await new Promise((ht,yt)=>{vo(ht,yt,{data:ut,headers:Wt.from(at.headers),status:at.status,statusText:at.statusText,config:r,request:M})})}catch(F){throw B&&B(),F&&F.name==="TypeError"&&/Load failed|fetch/i.test(F.message)?Object.assign(new Z("Network Error",Z.ERR_NETWORK,r,M),{cause:F.cause||F}):Z.from(F,F&&F.code,r,M)}})};z.forEach(lr,(r,i)=>{if(r){try{Object.defineProperty(r,"name",{value:i})}catch{}Object.defineProperty(r,"adapterName",{value:i})}});const ko=r=>`- ${r}`,tm=r=>z.isFunction(r)||r===null||r===!1,Oo={getAdapter:r=>{r=z.isArray(r)?r:[r];const{length:i}=r;let s,c;const o={};for(let h=0;h<i;h++){s=r[h];let p;if(c=s,!tm(s)&&(c=lr[(p=String(s)).toLowerCase()],c===void 0))throw new Z(`Unknown adapter '${p}'`);if(c)break;o[p||"#"+h]=c}if(!c){const h=Object.entries(o).map(([g,S])=>`adapter ${g} `+(S===!1?"is not supported by the environment":"is not available in the build"));let p=i?h.length>1?`since :
145
- `+h.map(ko).join(`
146
- `):" "+ko(h[0]):"as no adapter specified";throw new Z("There is no suitable adapter to dispatch the request "+p,"ERR_NOT_SUPPORT")}return c},adapters:lr};function ar(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new Il(null,r)}function _o(r){return ar(r),r.headers=Wt.from(r.headers),r.data=tr.call(r,r.transformRequest),["post","put","patch"].indexOf(r.method)!==-1&&r.headers.setContentType("application/x-www-form-urlencoded",!1),Oo.getAdapter(r.adapter||$a.adapter)(r).then(function(c){return ar(r),c.data=tr.call(r,r.transformResponse,c),c.headers=Wt.from(c.headers),c},function(c){return bo(c)||(ar(r),c&&c.response&&(c.response.data=tr.call(r,r.transformResponse,c.response),c.response.headers=Wt.from(c.response.headers))),Promise.reject(c)})}const Do="1.10.0",hi={};["object","boolean","number","function","string","symbol"].forEach((r,i)=>{hi[r]=function(c){return typeof c===r||"a"+(i<1?"n ":" ")+r}});const Mo={};hi.transitional=function(i,s,c){function o(h,p){return"[Axios v"+Do+"] Transitional option '"+h+"'"+p+(c?". "+c:"")}return(h,p,g)=>{if(i===!1)throw new Z(o(p," has been removed"+(s?" in "+s:"")),Z.ERR_DEPRECATED);return s&&!Mo[p]&&(Mo[p]=!0,console.warn(o(p," has been deprecated since v"+s+" and will be removed in the near future"))),i?i(h,p,g):!0}},hi.spelling=function(i){return(s,c)=>(console.warn(`${c} is likely a misspelling of ${i}`),!0)};function em(r,i,s){if(typeof r!="object")throw new Z("options must be an object",Z.ERR_BAD_OPTION_VALUE);const c=Object.keys(r);let o=c.length;for(;o-- >0;){const h=c[o],p=i[h];if(p){const g=r[h],S=g===void 0||p(g,h,r);if(S!==!0)throw new Z("option "+h+" must be "+S,Z.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new Z("Unknown option "+h,Z.ERR_BAD_OPTION)}}const pi={assertOptions:em,validators:hi},Oe=pi.validators;let _l=class{constructor(i){this.defaults=i||{},this.interceptors={request:new ho,response:new ho}}async request(i,s){try{return await this._request(i,s)}catch(c){if(c instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const h=o.stack?o.stack.replace(/^.+\n/,""):"";try{c.stack?h&&!String(c.stack).endsWith(h.replace(/^.+\n.+\n/,""))&&(c.stack+=`
147
- `+h):c.stack=h}catch{}}throw c}}_request(i,s){typeof i=="string"?(s=s||{},s.url=i):s=i||{},s=Ol(this.defaults,s);const{transitional:c,paramsSerializer:o,headers:h}=s;c!==void 0&&pi.assertOptions(c,{silentJSONParsing:Oe.transitional(Oe.boolean),forcedJSONParsing:Oe.transitional(Oe.boolean),clarifyTimeoutError:Oe.transitional(Oe.boolean)},!1),o!=null&&(z.isFunction(o)?s.paramsSerializer={serialize:o}:pi.assertOptions(o,{encode:Oe.function,serialize:Oe.function},!0)),s.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?s.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:s.allowAbsoluteUrls=!0),pi.assertOptions(s,{baseUrl:Oe.spelling("baseURL"),withXsrfToken:Oe.spelling("withXSRFToken")},!0),s.method=(s.method||this.defaults.method||"get").toLowerCase();let p=h&&z.merge(h.common,h[s.method]);h&&z.forEach(["delete","get","head","post","put","patch","common"],M=>{delete h[M]}),s.headers=Wt.concat(p,h);const g=[];let S=!0;this.interceptors.request.forEach(function(B){typeof B.runWhen=="function"&&B.runWhen(s)===!1||(S=S&&B.synchronous,g.unshift(B.fulfilled,B.rejected))});const b=[];this.interceptors.response.forEach(function(B){b.push(B.fulfilled,B.rejected)});let y,R=0,D;if(!S){const M=[_o.bind(this),void 0];for(M.unshift.apply(M,g),M.push.apply(M,b),D=M.length,y=Promise.resolve(s);R<D;)y=y.then(M[R++],M[R++]);return y}D=g.length;let Y=s;for(R=0;R<D;){const M=g[R++],B=g[R++];try{Y=M(Y)}catch(H){B.call(this,H);break}}try{y=_o.call(this,Y)}catch(M){return Promise.reject(M)}for(R=0,D=b.length;R<D;)y=y.then(b[R++],b[R++]);return y}getUri(i){i=Ol(this.defaults,i);const s=xo(i.baseURL,i.url,i.allowAbsoluteUrls);return fo(s,i.params,i.paramsSerializer)}};z.forEach(["delete","get","head","options"],function(i){_l.prototype[i]=function(s,c){return this.request(Ol(c||{},{method:i,url:s,data:(c||{}).data}))}}),z.forEach(["post","put","patch"],function(i){function s(c){return function(h,p,g){return this.request(Ol(g||{},{method:i,headers:c?{"Content-Type":"multipart/form-data"}:{},url:h,data:p}))}}_l.prototype[i]=s(),_l.prototype[i+"Form"]=s(!0)});let lm=class Rp{constructor(i){if(typeof i!="function")throw new TypeError("executor must be a function.");let s;this.promise=new Promise(function(h){s=h});const c=this;this.promise.then(o=>{if(!c._listeners)return;let h=c._listeners.length;for(;h-- >0;)c._listeners[h](o);c._listeners=null}),this.promise.then=o=>{let h;const p=new Promise(g=>{c.subscribe(g),h=g}).then(o);return p.cancel=function(){c.unsubscribe(h)},p},i(function(h,p,g){c.reason||(c.reason=new Il(h,p,g),s(c.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(i){if(this.reason){i(this.reason);return}this._listeners?this._listeners.push(i):this._listeners=[i]}unsubscribe(i){if(!this._listeners)return;const s=this._listeners.indexOf(i);s!==-1&&this._listeners.splice(s,1)}toAbortSignal(){const i=new AbortController,s=c=>{i.abort(c)};return this.subscribe(s),i.signal.unsubscribe=()=>this.unsubscribe(s),i.signal}static source(){let i;return{token:new Rp(function(o){i=o}),cancel:i}}};function am(r){return function(s){return r.apply(null,s)}}function nm(r){return z.isObject(r)&&r.isAxiosError===!0}const nr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(nr).forEach(([r,i])=>{nr[i]=r});function Uo(r){const i=new _l(r),s=$c(_l.prototype.request,i);return z.extend(s,_l.prototype,i,{allOwnKeys:!0}),z.extend(s,i,null,{allOwnKeys:!0}),s.create=function(o){return Uo(Ol(r,o))},s}const St=Uo($a);St.Axios=_l,St.CanceledError=Il,St.CancelToken=lm,St.isCancel=bo,St.VERSION=Do,St.toFormData=si,St.AxiosError=Z,St.Cancel=St.CanceledError,St.all=function(i){return Promise.all(i)},St.spread=am,St.isAxiosError=nm,St.mergeConfig=Ol,St.AxiosHeaders=Wt,St.formToJSON=r=>go(z.isHTMLForm(r)?new FormData(r):r),St.getAdapter=Oo.getAdapter,St.HttpStatusCode=nr,St.default=St;const{Axios:Zv,AxiosError:Vv,CanceledError:Kv,isCancel:Jv,CancelToken:$v,VERSION:Wv,all:Fv,Cancel:Pv,isAxiosError:Iv,spread:ty,toFormData:ey,AxiosHeaders:ly,HttpStatusCode:ay,formToJSON:ny,getAdapter:iy,mergeConfig:uy}=St,im=async(r,i)=>{var o;const s=(o=window.location.search.replace("?","").split("&").find(h=>h.includes("utm")))==null?void 0:o.split("=")[1];return(await St.post(i,{message:r},{headers:{utm:s}})).data.output},um=async r=>{const i=await St.get(r),s=[];for(const c of i.data.propertyName){const o=JSON.parse(c);s.push(o)}return s.reverse()};function rm({theme:r="boring",notificationBadge:i=!0,greeting:s,pageContext:c,chatPrompts:o=[],chatbotUrl:h,dialogeBaseUrl:p}){const g=s?[{content:s,sender:"bot"}]:[],[S,b]=vt.useState(!1),[y,R]=vt.useState(s?g:[]),[D,Y]=vt.useState(""),[M,B]=vt.useState(!1),[H,F]=vt.useState(!0),at=vt.useRef(null),[nt,ut]=vt.useState(o),ht=()=>{var J;(J=at.current)==null||J.scrollIntoView({behavior:"smooth"})};vt.useEffect(()=>{y.filter(Ot=>Ot.sender==="user").length>0?F(!1):F(!0),ht()},[y]),vt.useEffect(()=>{y.length<=1&&um(p).then(J=>{const Ot=J.map(de=>({content:de.data.content,sender:de.type==="human"?"user":"bot"}));R([...g,...Ot])})},[p]),vt.useEffect(()=>{const J=window.location.pathname;if(c){for(const[Ot,{exec:de,timer:Zt}]of Object.entries(c))if(Ot===J){yt(Zt,de);break}}},[c]);const yt=async(J,Ot)=>{await N0(J),Ot({open:{isOpen:S,setIsOpen:b},messageOptions:{messages:y,setMessages:R},input:{inputValue:D,setInputValue:Y},promptsOptions:{prompts:nt,setPrompts:ut},scrollToBottom:ht})},pt=async J=>{const Ot=J||D.trim();if(!Ot)return;const de={content:Ot,sender:"user"};R(Zt=>[...Zt,de]),Y(""),B(!0);try{const he={content:await im(Ot,h),sender:"bot"};R(Dl=>[...Dl,he])}catch{const he={content:"Unfortunately, an error occurred while processing your request.",sender:"bot"};R(Dl=>[...Dl,he])}finally{B(!1)}},le=async J=>{J.key==="Enter"&&!J.shiftKey&&(J.preventDefault(),await pt())};return X.jsxs("div",{className:"fixed bottom-6 right-6 z-50",children:[X.jsx("div",{className:`
117
+ ${e?"rotate-180":"rotate-0"}
118
+ `,style:{boxShadow:"0 0 30px rgba(147, 51, 234, 0.5)"},children:e?m.jsx(pt,{className:"w-6 h-6"}):m.jsx(kr,{className:"w-6 h-6"})})}function hn(t){return new Promise(e=>setTimeout(e,t))}function fn({prompt:t,handleSendMessage:e,theme:r}){const n=()=>{e(t)};return m.jsx("div",{onClick:n,className:`${M(r,"prompt")} text-sm rounded-full transition hover:scale-98 cursor-pointer px-4 py-2`,children:t})}function Ct(t,e){return function(){return t.apply(e,arguments)}}var _t={};const{toString:gn}=Object.prototype,{getPrototypeOf:Me}=Object,{iterator:xe,toStringTag:Ot}=Symbol,ke=(t=>e=>{const r=gn.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),I=t=>(t=t.toLowerCase(),e=>ke(e)===t),ye=t=>e=>typeof e===t,{isArray:X}=Array,ae=ye("undefined");function wn(t){return t!==null&&!ae(t)&&t.constructor!==null&&!ae(t.constructor)&&P(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const $t=I("ArrayBuffer");function mn(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&$t(t.buffer),e}const bn=ye("string"),P=ye("function"),Nt=ye("number"),ve=t=>t!==null&&typeof t=="object",xn=t=>t===!0||t===!1,Re=t=>{if(ke(t)!=="object")return!1;const e=Me(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Ot in t)&&!(xe in t)},kn=I("Date"),yn=I("File"),vn=I("Blob"),Rn=I("FileList"),Sn=t=>ve(t)&&P(t.pipe),En=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||P(t.append)&&((e=ke(t))==="formdata"||e==="object"&&P(t.toString)&&t.toString()==="[object FormData]"))},Tn=I("URLSearchParams"),[An,Cn,_n,On]=["ReadableStream","Request","Response","Headers"].map(I),$n=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function le(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,i;if(typeof t!="object"&&(t=[t]),X(t))for(n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else{const s=r?Object.getOwnPropertyNames(t):Object.keys(t),o=s.length;let a;for(n=0;n<o;n++)a=s[n],e.call(null,t[a],a,t)}}function Pt(t,e){e=e.toLowerCase();const r=Object.keys(t);let n=r.length,i;for(;n-- >0;)if(i=r[n],e===i.toLowerCase())return i;return null}const V=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,jt=t=>!ae(t)&&t!==V;function He(){const{caseless:t}=jt(this)&&this||{},e={},r=(n,i)=>{const s=t&&Pt(e,i)||i;Re(e[s])&&Re(n)?e[s]=He(e[s],n):Re(n)?e[s]=He({},n):X(n)?e[s]=n.slice():e[s]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&le(arguments[n],r);return e}const Nn=(t,e,r,{allOwnKeys:n}={})=>(le(e,(i,s)=>{r&&P(i)?t[s]=Ct(i,r):t[s]=i},{allOwnKeys:n}),t),Pn=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),jn=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},zn=(t,e,r,n)=>{let i,s,o;const a={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),s=i.length;s-- >0;)o=i[s],(!n||n(o,t,e))&&!a[o]&&(e[o]=t[o],a[o]=!0);t=r!==!1&&Me(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},Ln=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return n!==-1&&n===r},Bn=t=>{if(!t)return null;if(X(t))return t;let e=t.length;if(!Nt(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},In=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Me(Uint8Array)),Dn=(t,e)=>{const n=(t&&t[xe]).call(t);let i;for(;(i=n.next())&&!i.done;){const s=i.value;e.call(t,s[0],s[1])}},Un=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},qn=I("HTMLFormElement"),Fn=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),zt=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),Mn=I("RegExp"),Lt=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};le(r,(i,s)=>{let o;(o=e(i,s,t))!==!1&&(n[s]=o||i)}),Object.defineProperties(t,n)},Hn=t=>{Lt(t,(e,r)=>{if(P(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=t[r];if(P(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Jn=(t,e)=>{const r={},n=i=>{i.forEach(s=>{r[s]=!0})};return X(t)?n(t):n(String(t).split(e)),r},Zn=()=>{},Wn=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function Vn(t){return!!(t&&P(t.append)&&t[Ot]==="FormData"&&t[xe])}const Gn=t=>{const e=new Array(10),r=(n,i)=>{if(ve(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[i]=n;const s=X(n)?[]:{};return le(n,(o,a)=>{const u=r(o,i+1);!ae(u)&&(s[a]=u)}),e[i]=void 0,s}}return n};return r(t,0)},Kn=I("AsyncFunction"),Xn=t=>t&&(ve(t)||P(t))&&P(t.then)&&P(t.catch),Bt=((t,e)=>t?setImmediate:e?((r,n)=>(V.addEventListener("message",({source:i,data:s})=>{i===V&&s===r&&n.length&&n.shift()()},!1),i=>{n.push(i),V.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",P(V.postMessage)),Qn=typeof queueMicrotask<"u"?queueMicrotask.bind(V):typeof _t<"u"&&_t.nextTick||Bt,p={isArray:X,isArrayBuffer:$t,isBuffer:wn,isFormData:En,isArrayBufferView:mn,isString:bn,isNumber:Nt,isBoolean:xn,isObject:ve,isPlainObject:Re,isReadableStream:An,isRequest:Cn,isResponse:_n,isHeaders:On,isUndefined:ae,isDate:kn,isFile:yn,isBlob:vn,isRegExp:Mn,isFunction:P,isStream:Sn,isURLSearchParams:Tn,isTypedArray:In,isFileList:Rn,forEach:le,merge:He,extend:Nn,trim:$n,stripBOM:Pn,inherits:jn,toFlatObject:zn,kindOf:ke,kindOfTest:I,endsWith:Ln,toArray:Bn,forEachEntry:Dn,matchAll:Un,isHTMLForm:qn,hasOwnProperty:zt,hasOwnProp:zt,reduceDescriptors:Lt,freezeMethods:Hn,toObjectSet:Jn,toCamelCase:Fn,noop:Zn,toFiniteNumber:Wn,findKey:Pt,global:V,isContextDefined:jt,isSpecCompliantForm:Vn,toJSONObject:Gn,isAsyncFn:Kn,isThenable:Xn,setImmediate:Bt,asap:Qn,isIterable:t=>t!=null&&P(t[xe])};function b(t,e,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}p.inherits(b,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:p.toJSONObject(this.config),code:this.code,status:this.status}}});const It=b.prototype,Dt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Dt[t]={value:t}}),Object.defineProperties(b,Dt),Object.defineProperty(It,"isAxiosError",{value:!0}),b.from=(t,e,r,n,i,s)=>{const o=Object.create(It);return p.toFlatObject(t,o,function(u){return u!==Error.prototype},a=>a!=="isAxiosError"),b.call(o,t.message,e,r,n,i),o.cause=t,o.name=t.name,s&&Object.assign(o,s),o};const Yn=null;function Je(t){return p.isPlainObject(t)||p.isArray(t)}function Ut(t){return p.endsWith(t,"[]")?t.slice(0,-2):t}function qt(t,e,r){return t?t.concat(e).map(function(i,s){return i=Ut(i),!r&&s?"["+i+"]":i}).join(r?".":""):e}function ei(t){return p.isArray(t)&&!t.some(Je)}const ti=p.toFlatObject(p,{},null,function(e){return/^is[A-Z]/.test(e)});function Se(t,e,r){if(!p.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=p.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,w){return!p.isUndefined(w[g])});const n=r.metaTokens,i=r.visitor||c,s=r.dots,o=r.indexes,u=(r.Blob||typeof Blob<"u"&&Blob)&&p.isSpecCompliantForm(e);if(!p.isFunction(i))throw new TypeError("visitor must be a function");function l(f){if(f===null)return"";if(p.isDate(f))return f.toISOString();if(p.isBoolean(f))return f.toString();if(!u&&p.isBlob(f))throw new b("Blob is not supported. Use a Buffer instead.");return p.isArrayBuffer(f)||p.isTypedArray(f)?u&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function c(f,g,w){let v=f;if(f&&!w&&typeof f=="object"){if(p.endsWith(g,"{}"))g=n?g:g.slice(0,-2),f=JSON.stringify(f);else if(p.isArray(f)&&ei(f)||(p.isFileList(f)||p.endsWith(g,"[]"))&&(v=p.toArray(f)))return g=Ut(g),v.forEach(function(T,z){!(p.isUndefined(T)||T===null)&&e.append(o===!0?qt([g],z,s):o===null?g:g+"[]",l(T))}),!1}return Je(f)?!0:(e.append(qt(w,g,s),l(f)),!1)}const h=[],d=Object.assign(ti,{defaultVisitor:c,convertValue:l,isVisitable:Je});function x(f,g){if(!p.isUndefined(f)){if(h.indexOf(f)!==-1)throw Error("Circular reference detected in "+g.join("."));h.push(f),p.forEach(f,function(v,S){(!(p.isUndefined(v)||v===null)&&i.call(e,v,p.isString(S)?S.trim():S,g,d))===!0&&x(v,g?g.concat(S):[S])}),h.pop()}}if(!p.isObject(t))throw new TypeError("data must be an object");return x(t),e}function Ft(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function Ze(t,e){this._pairs=[],t&&Se(t,this,e)}const Mt=Ze.prototype;Mt.append=function(e,r){this._pairs.push([e,r])},Mt.toString=function(e){const r=e?function(n){return e.call(this,n,Ft)}:Ft;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function ri(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ht(t,e,r){if(!e)return t;const n=r&&r.encode||ri;p.isFunction(r)&&(r={serialize:r});const i=r&&r.serialize;let s;if(i?s=i(e,r):s=p.isURLSearchParams(e)?e.toString():new Ze(e,r).toString(n),s){const o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}class Jt{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){p.forEach(this.handlers,function(n){n!==null&&e(n)})}}const Zt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ni={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Ze,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},We=typeof window<"u"&&typeof document<"u",Ve=typeof navigator=="object"&&navigator||void 0,ii=We&&(!Ve||["ReactNative","NativeScript","NS"].indexOf(Ve.product)<0),si=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",oi=We&&window.location.href||"http://localhost",$={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:We,hasStandardBrowserEnv:ii,hasStandardBrowserWebWorkerEnv:si,navigator:Ve,origin:oi},Symbol.toStringTag,{value:"Module"})),...ni};function ai(t,e){return Se(t,new $.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,s){return $.isNode&&p.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function li(t){return p.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function ci(t){const e={},r=Object.keys(t);let n;const i=r.length;let s;for(n=0;n<i;n++)s=r[n],e[s]=t[s];return e}function Wt(t){function e(r,n,i,s){let o=r[s++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),u=s>=r.length;return o=!o&&p.isArray(i)?i.length:o,u?(p.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!a):((!i[o]||!p.isObject(i[o]))&&(i[o]=[]),e(r,n,i[o],s)&&p.isArray(i[o])&&(i[o]=ci(i[o])),!a)}if(p.isFormData(t)&&p.isFunction(t.entries)){const r={};return p.forEachEntry(t,(n,i)=>{e(li(n),i,r,0)}),r}return null}function ui(t,e,r){if(p.isString(t))try{return(e||JSON.parse)(t),p.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const ce={transitional:Zt,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){const n=r.getContentType()||"",i=n.indexOf("application/json")>-1,s=p.isObject(e);if(s&&p.isHTMLForm(e)&&(e=new FormData(e)),p.isFormData(e))return i?JSON.stringify(Wt(e)):e;if(p.isArrayBuffer(e)||p.isBuffer(e)||p.isStream(e)||p.isFile(e)||p.isBlob(e)||p.isReadableStream(e))return e;if(p.isArrayBufferView(e))return e.buffer;if(p.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return ai(e,this.formSerializer).toString();if((a=p.isFileList(e))||n.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Se(a?{"files[]":e}:e,u&&new u,this.formSerializer)}}return s||i?(r.setContentType("application/json",!1),ui(e)):e}],transformResponse:[function(e){const r=this.transitional||ce.transitional,n=r&&r.forcedJSONParsing,i=this.responseType==="json";if(p.isResponse(e)||p.isReadableStream(e))return e;if(e&&p.isString(e)&&(n&&!this.responseType||i)){const o=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(a){if(o)throw a.name==="SyntaxError"?b.from(a,b.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:$.classes.FormData,Blob:$.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};p.forEach(["delete","get","head","post","put","patch"],t=>{ce.headers[t]={}});const pi=p.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),di=t=>{const e={};let r,n,i;return t&&t.split(`
119
+ `).forEach(function(o){i=o.indexOf(":"),r=o.substring(0,i).trim().toLowerCase(),n=o.substring(i+1).trim(),!(!r||e[r]&&pi[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e},Vt=Symbol("internals");function ue(t){return t&&String(t).trim().toLowerCase()}function Ee(t){return t===!1||t==null?t:p.isArray(t)?t.map(Ee):String(t)}function hi(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}const fi=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Ge(t,e,r,n,i){if(p.isFunction(n))return n.call(this,e,r);if(i&&(e=r),!!p.isString(e)){if(p.isString(n))return e.indexOf(n)!==-1;if(p.isRegExp(n))return n.test(e)}}function gi(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function wi(t,e){const r=p.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(i,s,o){return this[n].call(this,e,i,s,o)},configurable:!0})})}let j=class{constructor(e){e&&this.set(e)}set(e,r,n){const i=this;function s(a,u,l){const c=ue(u);if(!c)throw new Error("header name must be a non-empty string");const h=p.findKey(i,c);(!h||i[h]===void 0||l===!0||l===void 0&&i[h]!==!1)&&(i[h||u]=Ee(a))}const o=(a,u)=>p.forEach(a,(l,c)=>s(l,c,u));if(p.isPlainObject(e)||e instanceof this.constructor)o(e,r);else if(p.isString(e)&&(e=e.trim())&&!fi(e))o(di(e),r);else if(p.isObject(e)&&p.isIterable(e)){let a={},u,l;for(const c of e){if(!p.isArray(c))throw TypeError("Object iterator must return a key-value pair");a[l=c[0]]=(u=a[l])?p.isArray(u)?[...u,c[1]]:[u,c[1]]:c[1]}o(a,r)}else e!=null&&s(r,e,n);return this}get(e,r){if(e=ue(e),e){const n=p.findKey(this,e);if(n){const i=this[n];if(!r)return i;if(r===!0)return hi(i);if(p.isFunction(r))return r.call(this,i,n);if(p.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=ue(e),e){const n=p.findKey(this,e);return!!(n&&this[n]!==void 0&&(!r||Ge(this,this[n],n,r)))}return!1}delete(e,r){const n=this;let i=!1;function s(o){if(o=ue(o),o){const a=p.findKey(n,o);a&&(!r||Ge(n,n[a],a,r))&&(delete n[a],i=!0)}}return p.isArray(e)?e.forEach(s):s(e),i}clear(e){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const s=r[n];(!e||Ge(this,this[s],s,e,!0))&&(delete this[s],i=!0)}return i}normalize(e){const r=this,n={};return p.forEach(this,(i,s)=>{const o=p.findKey(n,s);if(o){r[o]=Ee(i),delete r[s];return}const a=e?gi(s):String(s).trim();a!==s&&delete r[s],r[a]=Ee(i),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const r=Object.create(null);return p.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=e&&p.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join(`
120
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){const n=new this(e);return r.forEach(i=>n.set(i)),n}static accessor(e){const n=(this[Vt]=this[Vt]={accessors:{}}).accessors,i=this.prototype;function s(o){const a=ue(o);n[a]||(wi(i,o),n[a]=!0)}return p.isArray(e)?e.forEach(s):s(e),this}};j.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),p.reduceDescriptors(j.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[r]=n}}}),p.freezeMethods(j);function Ke(t,e){const r=this||ce,n=e||r,i=j.from(n.headers);let s=n.data;return p.forEach(t,function(a){s=a.call(r,s,i.normalize(),e?e.status:void 0)}),i.normalize(),s}function Gt(t){return!!(t&&t.__CANCEL__)}function Q(t,e,r){b.call(this,t??"canceled",b.ERR_CANCELED,e,r),this.name="CanceledError"}p.inherits(Q,b,{__CANCEL__:!0});function Kt(t,e,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new b("Request failed with status code "+r.status,[b.ERR_BAD_REQUEST,b.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function mi(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function bi(t,e){t=t||10;const r=new Array(t),n=new Array(t);let i=0,s=0,o;return e=e!==void 0?e:1e3,function(u){const l=Date.now(),c=n[s];o||(o=l),r[i]=u,n[i]=l;let h=s,d=0;for(;h!==i;)d+=r[h++],h=h%t;if(i=(i+1)%t,i===s&&(s=(s+1)%t),l-o<e)return;const x=c&&l-c;return x?Math.round(d*1e3/x):void 0}}function xi(t,e){let r=0,n=1e3/e,i,s;const o=(l,c=Date.now())=>{r=c,i=null,s&&(clearTimeout(s),s=null),t.apply(null,l)};return[(...l)=>{const c=Date.now(),h=c-r;h>=n?o(l,c):(i=l,s||(s=setTimeout(()=>{s=null,o(i)},n-h)))},()=>i&&o(i)]}const Te=(t,e,r=3)=>{let n=0;const i=bi(50,250);return xi(s=>{const o=s.loaded,a=s.lengthComputable?s.total:void 0,u=o-n,l=i(u),c=o<=a;n=o;const h={loaded:o,total:a,progress:a?o/a:void 0,bytes:u,rate:l||void 0,estimated:l&&a&&c?(a-o)/l:void 0,event:s,lengthComputable:a!=null,[e?"download":"upload"]:!0};t(h)},r)},Xt=(t,e)=>{const r=t!=null;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},Qt=t=>(...e)=>p.asap(()=>t(...e)),ki=$.hasStandardBrowserEnv?((t,e)=>r=>(r=new URL(r,$.origin),t.protocol===r.protocol&&t.host===r.host&&(e||t.port===r.port)))(new URL($.origin),$.navigator&&/(msie|trident)/i.test($.navigator.userAgent)):()=>!0,yi=$.hasStandardBrowserEnv?{write(t,e,r,n,i,s){const o=[t+"="+encodeURIComponent(e)];p.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),p.isString(n)&&o.push("path="+n),p.isString(i)&&o.push("domain="+i),s===!0&&o.push("secure"),document.cookie=o.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function vi(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Ri(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Yt(t,e,r){let n=!vi(e);return t&&(n||r==!1)?Ri(t,e):e}const er=t=>t instanceof j?{...t}:t;function G(t,e){e=e||{};const r={};function n(l,c,h,d){return p.isPlainObject(l)&&p.isPlainObject(c)?p.merge.call({caseless:d},l,c):p.isPlainObject(c)?p.merge({},c):p.isArray(c)?c.slice():c}function i(l,c,h,d){if(p.isUndefined(c)){if(!p.isUndefined(l))return n(void 0,l,h,d)}else return n(l,c,h,d)}function s(l,c){if(!p.isUndefined(c))return n(void 0,c)}function o(l,c){if(p.isUndefined(c)){if(!p.isUndefined(l))return n(void 0,l)}else return n(void 0,c)}function a(l,c,h){if(h in e)return n(l,c);if(h in t)return n(void 0,l)}const u={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(l,c,h)=>i(er(l),er(c),h,!0)};return p.forEach(Object.keys(Object.assign({},t,e)),function(c){const h=u[c]||i,d=h(t[c],e[c],c);p.isUndefined(d)&&h!==a||(r[c]=d)}),r}const tr=t=>{const e=G({},t);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:s,headers:o,auth:a}=e;e.headers=o=j.from(o),e.url=Ht(Yt(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let u;if(p.isFormData(r)){if($.hasStandardBrowserEnv||$.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((u=o.getContentType())!==!1){const[l,...c]=u?u.split(";").map(h=>h.trim()).filter(Boolean):[];o.setContentType([l||"multipart/form-data",...c].join("; "))}}if($.hasStandardBrowserEnv&&(n&&p.isFunction(n)&&(n=n(e)),n||n!==!1&&ki(e.url))){const l=i&&s&&yi.read(s);l&&o.set(i,l)}return e},Si=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(r,n){const i=tr(t);let s=i.data;const o=j.from(i.headers).normalize();let{responseType:a,onUploadProgress:u,onDownloadProgress:l}=i,c,h,d,x,f;function g(){x&&x(),f&&f(),i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let w=new XMLHttpRequest;w.open(i.method.toUpperCase(),i.url,!0),w.timeout=i.timeout;function v(){if(!w)return;const T=j.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),_={data:!a||a==="text"||a==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:T,config:t,request:w};Kt(function(O){r(O),g()},function(O){n(O),g()},_),w=null}"onloadend"in w?w.onloadend=v:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(v)},w.onabort=function(){w&&(n(new b("Request aborted",b.ECONNABORTED,t,w)),w=null)},w.onerror=function(){n(new b("Network Error",b.ERR_NETWORK,t,w)),w=null},w.ontimeout=function(){let z=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const _=i.transitional||Zt;i.timeoutErrorMessage&&(z=i.timeoutErrorMessage),n(new b(z,_.clarifyTimeoutError?b.ETIMEDOUT:b.ECONNABORTED,t,w)),w=null},s===void 0&&o.setContentType(null),"setRequestHeader"in w&&p.forEach(o.toJSON(),function(z,_){w.setRequestHeader(_,z)}),p.isUndefined(i.withCredentials)||(w.withCredentials=!!i.withCredentials),a&&a!=="json"&&(w.responseType=i.responseType),l&&([d,f]=Te(l,!0),w.addEventListener("progress",d)),u&&w.upload&&([h,x]=Te(u),w.upload.addEventListener("progress",h),w.upload.addEventListener("loadend",x)),(i.cancelToken||i.signal)&&(c=T=>{w&&(n(!T||T.type?new Q(null,t,w):T),w.abort(),w=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const S=mi(i.url);if(S&&$.protocols.indexOf(S)===-1){n(new b("Unsupported protocol "+S+":",b.ERR_BAD_REQUEST,t));return}w.send(s||null)})},Ei=(t,e)=>{const{length:r}=t=t?t.filter(Boolean):[];if(e||r){let n=new AbortController,i;const s=function(l){if(!i){i=!0,a();const c=l instanceof Error?l:this.reason;n.abort(c instanceof b?c:new Q(c instanceof Error?c.message:c))}};let o=e&&setTimeout(()=>{o=null,s(new b(`timeout ${e} of ms exceeded`,b.ETIMEDOUT))},e);const a=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach(l=>{l.unsubscribe?l.unsubscribe(s):l.removeEventListener("abort",s)}),t=null)};t.forEach(l=>l.addEventListener("abort",s));const{signal:u}=n;return u.unsubscribe=()=>p.asap(a),u}},Ti=function*(t,e){let r=t.byteLength;if(r<e){yield t;return}let n=0,i;for(;n<r;)i=n+e,yield t.slice(n,i),n=i},Ai=async function*(t,e){for await(const r of Ci(t))yield*Ti(r,e)},Ci=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:r,value:n}=await e.read();if(r)break;yield n}}finally{await e.cancel()}},rr=(t,e,r,n)=>{const i=Ai(t,e);let s=0,o,a=u=>{o||(o=!0,n&&n(u))};return new ReadableStream({async pull(u){try{const{done:l,value:c}=await i.next();if(l){a(),u.close();return}let h=c.byteLength;if(r){let d=s+=h;r(d)}u.enqueue(new Uint8Array(c))}catch(l){throw a(l),l}},cancel(u){return a(u),i.return()}},{highWaterMark:2})},Ae=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",nr=Ae&&typeof ReadableStream=="function",_i=Ae&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),ir=(t,...e)=>{try{return!!t(...e)}catch{return!1}},Oi=nr&&ir(()=>{let t=!1;const e=new Request($.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),sr=64*1024,Xe=nr&&ir(()=>p.isReadableStream(new Response("").body)),Ce={stream:Xe&&(t=>t.body)};Ae&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Ce[e]&&(Ce[e]=p.isFunction(t[e])?r=>r[e]():(r,n)=>{throw new b(`Response type '${e}' is not supported`,b.ERR_NOT_SUPPORT,n)})})})(new Response);const $i=async t=>{if(t==null)return 0;if(p.isBlob(t))return t.size;if(p.isSpecCompliantForm(t))return(await new Request($.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(p.isArrayBufferView(t)||p.isArrayBuffer(t))return t.byteLength;if(p.isURLSearchParams(t)&&(t=t+""),p.isString(t))return(await _i(t)).byteLength},Ni=async(t,e)=>{const r=p.toFiniteNumber(t.getContentLength());return r??$i(e)},Qe={http:Yn,xhr:Si,fetch:Ae&&(async t=>{let{url:e,method:r,data:n,signal:i,cancelToken:s,timeout:o,onDownloadProgress:a,onUploadProgress:u,responseType:l,headers:c,withCredentials:h="same-origin",fetchOptions:d}=tr(t);l=l?(l+"").toLowerCase():"text";let x=Ei([i,s&&s.toAbortSignal()],o),f;const g=x&&x.unsubscribe&&(()=>{x.unsubscribe()});let w;try{if(u&&Oi&&r!=="get"&&r!=="head"&&(w=await Ni(c,n))!==0){let _=new Request(e,{method:"POST",body:n,duplex:"half"}),L;if(p.isFormData(n)&&(L=_.headers.get("content-type"))&&c.setContentType(L),_.body){const[O,Y]=Xt(w,Te(Qt(u)));n=rr(_.body,sr,O,Y)}}p.isString(h)||(h=h?"include":"omit");const v="credentials"in Request.prototype;f=new Request(e,{...d,signal:x,method:r.toUpperCase(),headers:c.normalize().toJSON(),body:n,duplex:"half",credentials:v?h:void 0});let S=await fetch(f,d);const T=Xe&&(l==="stream"||l==="response");if(Xe&&(a||T&&g)){const _={};["status","statusText","headers"].forEach(E=>{_[E]=S[E]});const L=p.toFiniteNumber(S.headers.get("content-length")),[O,Y]=a&&Xt(L,Te(Qt(a),!0))||[];S=new Response(rr(S.body,sr,O,()=>{Y&&Y(),g&&g()}),_)}l=l||"text";let z=await Ce[p.findKey(Ce,l)||"text"](S,t);return!T&&g&&g(),await new Promise((_,L)=>{Kt(_,L,{data:z,headers:j.from(S.headers),status:S.status,statusText:S.statusText,config:t,request:f})})}catch(v){throw g&&g(),v&&v.name==="TypeError"&&/Load failed|fetch/i.test(v.message)?Object.assign(new b("Network Error",b.ERR_NETWORK,t,f),{cause:v.cause||v}):b.from(v,v&&v.code,t,f)}})};p.forEach(Qe,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const or=t=>`- ${t}`,Pi=t=>p.isFunction(t)||t===null||t===!1,ar={getAdapter:t=>{t=p.isArray(t)?t:[t];const{length:e}=t;let r,n;const i={};for(let s=0;s<e;s++){r=t[s];let o;if(n=r,!Pi(r)&&(n=Qe[(o=String(r)).toLowerCase()],n===void 0))throw new b(`Unknown adapter '${o}'`);if(n)break;i[o||"#"+s]=n}if(!n){const s=Object.entries(i).map(([a,u])=>`adapter ${a} `+(u===!1?"is not supported by the environment":"is not available in the build"));let o=e?s.length>1?`since :
121
+ `+s.map(or).join(`
122
+ `):" "+or(s[0]):"as no adapter specified";throw new b("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n},adapters:Qe};function Ye(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Q(null,t)}function lr(t){return Ye(t),t.headers=j.from(t.headers),t.data=Ke.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),ar.getAdapter(t.adapter||ce.adapter)(t).then(function(n){return Ye(t),n.data=Ke.call(t,t.transformResponse,n),n.headers=j.from(n.headers),n},function(n){return Gt(n)||(Ye(t),n&&n.response&&(n.response.data=Ke.call(t,t.transformResponse,n.response),n.response.headers=j.from(n.response.headers))),Promise.reject(n)})}const cr="1.10.0",_e={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{_e[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const ur={};_e.transitional=function(e,r,n){function i(s,o){return"[Axios v"+cr+"] Transitional option '"+s+"'"+o+(n?". "+n:"")}return(s,o,a)=>{if(e===!1)throw new b(i(o," has been removed"+(r?" in "+r:"")),b.ERR_DEPRECATED);return r&&!ur[o]&&(ur[o]=!0,console.warn(i(o," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(s,o,a):!0}},_e.spelling=function(e){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function ji(t,e,r){if(typeof t!="object")throw new b("options must be an object",b.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let i=n.length;for(;i-- >0;){const s=n[i],o=e[s];if(o){const a=t[s],u=a===void 0||o(a,s,t);if(u!==!0)throw new b("option "+s+" must be "+u,b.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new b("Unknown option "+s,b.ERR_BAD_OPTION)}}const Oe={assertOptions:ji,validators:_e},U=Oe.validators;let K=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Jt,response:new Jt}}async request(e,r){try{return await this._request(e,r)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?s&&!String(n.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(n.stack+=`
123
+ `+s):n.stack=s}catch{}}throw n}}_request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=G(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:s}=r;n!==void 0&&Oe.assertOptions(n,{silentJSONParsing:U.transitional(U.boolean),forcedJSONParsing:U.transitional(U.boolean),clarifyTimeoutError:U.transitional(U.boolean)},!1),i!=null&&(p.isFunction(i)?r.paramsSerializer={serialize:i}:Oe.assertOptions(i,{encode:U.function,serialize:U.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Oe.assertOptions(r,{baseUrl:U.spelling("baseURL"),withXsrfToken:U.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=s&&p.merge(s.common,s[r.method]);s&&p.forEach(["delete","get","head","post","put","patch","common"],f=>{delete s[f]}),r.headers=j.concat(o,s);const a=[];let u=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(r)===!1||(u=u&&g.synchronous,a.unshift(g.fulfilled,g.rejected))});const l=[];this.interceptors.response.forEach(function(g){l.push(g.fulfilled,g.rejected)});let c,h=0,d;if(!u){const f=[lr.bind(this),void 0];for(f.unshift.apply(f,a),f.push.apply(f,l),d=f.length,c=Promise.resolve(r);h<d;)c=c.then(f[h++],f[h++]);return c}d=a.length;let x=r;for(h=0;h<d;){const f=a[h++],g=a[h++];try{x=f(x)}catch(w){g.call(this,w);break}}try{c=lr.call(this,x)}catch(f){return Promise.reject(f)}for(h=0,d=l.length;h<d;)c=c.then(l[h++],l[h++]);return c}getUri(e){e=G(this.defaults,e);const r=Yt(e.baseURL,e.url,e.allowAbsoluteUrls);return Ht(r,e.params,e.paramsSerializer)}};p.forEach(["delete","get","head","options"],function(e){K.prototype[e]=function(r,n){return this.request(G(n||{},{method:e,url:r,data:(n||{}).data}))}}),p.forEach(["post","put","patch"],function(e){function r(n){return function(s,o,a){return this.request(G(a||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:s,data:o}))}}K.prototype[e]=r(),K.prototype[e+"Form"]=r(!0)});let zi=class dr{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(s){r=s});const n=this;this.promise.then(i=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](i);n._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(a=>{n.subscribe(a),s=a}).then(i);return o.cancel=function(){n.unsubscribe(s)},o},e(function(s,o,a){n.reason||(n.reason=new Q(s,o,a),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const e=new AbortController,r=n=>{e.abort(n)};return this.subscribe(r),e.signal.unsubscribe=()=>this.unsubscribe(r),e.signal}static source(){let e;return{token:new dr(function(i){e=i}),cancel:e}}};function Li(t){return function(r){return t.apply(null,r)}}function Bi(t){return p.isObject(t)&&t.isAxiosError===!0}const et={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(et).forEach(([t,e])=>{et[e]=t});function pr(t){const e=new K(t),r=Ct(K.prototype.request,e);return p.extend(r,K.prototype,e,{allOwnKeys:!0}),p.extend(r,e,null,{allOwnKeys:!0}),r.create=function(i){return pr(G(t,i))},r}const A=pr(ce);A.Axios=K,A.CanceledError=Q,A.CancelToken=zi,A.isCancel=Gt,A.VERSION=cr,A.toFormData=Se,A.AxiosError=b,A.Cancel=A.CanceledError,A.all=function(e){return Promise.all(e)},A.spread=Li,A.isAxiosError=Bi,A.mergeConfig=G,A.AxiosHeaders=j,A.formToJSON=t=>Wt(p.isHTMLForm(t)?new FormData(t):t),A.getAdapter=ar.getAdapter,A.HttpStatusCode=et,A.default=A;const{Axios:rs,AxiosError:ns,CanceledError:is,isCancel:ss,CancelToken:os,VERSION:as,all:ls,Cancel:cs,isAxiosError:us,spread:ps,toFormData:ds,AxiosHeaders:hs,HttpStatusCode:fs,formToJSON:gs,getAdapter:ws,mergeConfig:ms}=A,Ii=async(t,e)=>{var i;const r=(i=window.location.search.replace("?","").split("&").find(s=>s.includes("utm")))==null?void 0:i.split("=")[1];return(await A.post(e,{message:t},{headers:{utm:r}})).data.output},Di=async t=>{const e=await A.get(t),r=[];for(const n of e.data.propertyName){const i=JSON.parse(n);r.push(i)}return r.reverse()};function Ui({theme:t="boring",notificationBadge:e=!0,greeting:r,pageContext:n,chatPrompts:i=[],chatbotUrl:s,dialogeBaseUrl:o}){const a=r?[{content:r,sender:"bot"}]:[],[u,l]=C.useState(!1),[c,h]=C.useState(r?a:[]),[d,x]=C.useState(""),[f,g]=C.useState(!1),[w,v]=C.useState(!0),S=C.useRef(null),[T,z]=C.useState(i),_=()=>{var E;(E=S.current)==null||E.scrollIntoView({behavior:"smooth"})};C.useEffect(()=>{c.filter(B=>B.sender==="user").length>0?v(!1):v(!0),_()},[c]),C.useEffect(()=>{c.length<=1&&Di(o).then(E=>{const B=E.map(ee=>({content:ee.data.content,sender:ee.type==="human"?"user":"bot"}));h([...a,...B])})},[o]),C.useEffect(()=>{const E=window.location.pathname;if(n){for(const[B,{exec:ee,timer:pe}]of Object.entries(n))if(B===E){L(pe,ee);break}}},[n]);const L=async(E,B)=>{await hn(E),B({open:{isOpen:u,setIsOpen:l},messageOptions:{messages:c,setMessages:h},input:{inputValue:d,setInputValue:x},promptsOptions:{prompts:T,setPrompts:z},scrollToBottom:_})},O=async E=>{const B=E||d.trim();if(!B)return;const ee={content:B,sender:"user"};h(pe=>[...pe,ee]),x(""),g(!0);try{const rt={content:await Ii(B,s),sender:"bot"};h(nt=>[...nt,rt])}catch{const rt={content:"Unfortunately, an error occurred while processing your request.",sender:"bot"};h(nt=>[...nt,rt])}finally{g(!1)}},Y=async E=>{E.key==="Enter"&&!E.shiftKey&&(E.preventDefault(),await O())};return m.jsxs("div",{className:"fixed bottom-6 right-6 z-50",children:[m.jsx("div",{className:`
148
124
  absolute bottom-16 right-0 w-96 h-[700px]
149
125
  transform transition-all duration-300 ease-in-out origin-bottom-right
150
- ${S?"scale-100 opacity-100":"scale-0 opacity-0 pointer-events-none"}
151
- `,children:X.jsxs("div",{className:`${He(r,"mainBackground")} rounded-4xl shadow-2xl backdrop-blur-xl h-full flex flex-col overflow-hidden`,children:[X.jsx(Vp,{setIsOpen:b,theme:r}),X.jsxs("div",{className:"flex-1 flex flex-col h-full justify-between overflow-y-auto p-4 space-y-4 scrollbar-thin scrollbar-thumb-purple-500/50 scrollbar-track-transparent",children:[X.jsxs("div",{className:"space-y-4 ",children:[y.map((J,Ot)=>X.jsx(O0,{message:J,index:Ot,theme:r},J.content)),M&&X.jsx(_0,{}),X.jsx("div",{ref:at})]}),H&&X.jsx("div",{className:"flex gap-2 flex-wrap",children:nt.map(J=>X.jsx(B0,{prompt:J,handleSendMessage:pt,theme:r},J))})]}),X.jsx(M0,{handleKeyPress:le,inputValue:D,setInputValue:Y,handleSendMessage:()=>pt(),theme:r})]})}),X.jsx(U0,{isOpen:S,setIsOpen:b}),!S&&i&&X.jsx(D0,{})]})}function sm(r,i={}){const s=typeof r=="string"?document.querySelector(r):r;qp.createRoot(s).render(X.jsx(rm,{...i}))}return qe.mountChatbotWidget=sm,Object.defineProperty(qe,Symbol.toStringTag,{value:"Module"}),qe}({},React,ReactDOM);
126
+ ${u?"scale-100 opacity-100":"scale-0 opacity-0 pointer-events-none"}
127
+ `,children:m.jsxs("div",{className:`${M(t,"mainBackground")} rounded-4xl shadow-2xl backdrop-blur-xl h-full flex flex-col overflow-hidden`,children:[m.jsx(Sr,{setIsOpen:l,theme:t}),m.jsxs("div",{className:"flex-1 flex flex-col h-full justify-between overflow-y-auto p-4 space-y-4 scrollbar-thin scrollbar-thumb-purple-500/50 scrollbar-track-transparent",children:[m.jsxs("div",{className:"space-y-4 ",children:[c.map((E,B)=>m.jsx(ln,{message:E,index:B,theme:t},E.content)),f&&m.jsx(cn,{}),m.jsx("div",{ref:S})]}),w&&m.jsx("div",{className:"flex gap-2 flex-wrap",children:T.map(E=>m.jsx(fn,{prompt:E,handleSendMessage:O,theme:t},E))})]}),m.jsx(pn,{handleKeyPress:Y,inputValue:d,setInputValue:x,handleSendMessage:()=>O(),theme:t})]})}),m.jsx(dn,{isOpen:u,setIsOpen:l}),!u&&e&&m.jsx(un,{})]})}function qi(t,e={}){const r=typeof t=="string"?document.querySelector(t):t;F.createRoot(r).render(m.jsx(Ui,{...e}))}return q.mountChatbotWidget=qi,Object.defineProperty(q,Symbol.toStringTag,{value:"Module"}),q}({},ReactDOM,React);