@baishuyun/chat-sdk 0.0.11 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/package.json +4 -4
- package/src/components/biz-comp/FieldCheckerListMsg.tsx +12 -2
- package/src/components/biz-comp/FieldValueChecker.tsx +27 -1
- package/src/components/biz-comp/SubformFieldsValueChecker.tsx +22 -1
- package/src/components/biz-comp/chat-client.tsx +4 -2
- package/src/components/biz-comp/multi-modal-input/index.tsx +31 -34
- package/src/components/biz-comp/multi-modal-input/prompt-input.tsx +1 -4
- package/src/components/biz-comp/opening-lines.tsx +1 -1
- package/src/components/biz-comp/preview-message-wrapper.tsx +8 -1
- package/src/components/biz-comp/preview-message.tsx +10 -1
- package/src/components/bs-ui/attachments-previewer.tsx +124 -32
- package/src/components/bs-ui/bot-avatar-name.tsx +1 -1
- package/src/components/bs-ui/card.tsx +1 -1
- package/src/components/bs-ui/fields-previewer.tsx +5 -0
- package/src/components/bs-ui/form-info-editor.tsx +2 -3
- package/src/components/bs-ui/line-checker.tsx +6 -1
- package/src/components/bs-ui/previewer-header.tsx +32 -5
- package/src/components/bs-ui/tab-radio-group.tsx +12 -3
- package/src/components/bs-ui/tooltip.tsx +37 -2
- package/src/components/ui/tooltip.tsx +37 -18
- package/src/plugins/form-builder-plugin/index.ts +3 -0
- package/src/plugins/form-filling-plugin/components/FormFillingOpeningLines.tsx +1 -1
- package/src/plugins/form-filling-plugin/components/mode-select.tsx +10 -2
- package/src/plugins/form-filling-plugin/components/msg-part.tsx +26 -1
- package/src/plugins/form-filling-plugin/const.ts +1 -1
- package/src/plugins/form-filling-plugin/index.ts +9 -0
- package/src/plugins/report-query-plugin/index.ts +2 -2
- package/src/stories/AttachmentsPreviewer.stories.tsx +118 -0
- package/src/style.css +20 -0
- package/dist/chat-sdk.js +0 -58809
- package/dist/chat-sdk.js.map +0 -1
- package/dist/chat-sdk.umd.cjs +0 -663
- package/dist/chat-sdk.umd.cjs.map +0 -1
- package/dist/index.css +0 -1
package/dist/chat-sdk.umd.cjs
DELETED
|
@@ -1,663 +0,0 @@
|
|
|
1
|
-
(function(Gr,Po){typeof exports=="object"&&typeof module!="undefined"?Po(exports):typeof define=="function"&&define.amd?define(["exports"],Po):(Gr=typeof globalThis!="undefined"?globalThis:Gr||self,Po(Gr["bs-chat-sdk"]={}))})(this,function(Gr){"use strict";var R1e=Object.defineProperty;var M1e=(Gr,Po,Yf)=>Po in Gr?R1e(Gr,Po,{enumerable:!0,configurable:!0,writable:!0,value:Yf}):Gr[Po]=Yf;var qe=(Gr,Po,Yf)=>M1e(Gr,typeof Po!="symbol"?Po+"":Po,Yf);var qN,GN,YN,JN,Eg;var Po=document.createElement("style");Po.textContent=`/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--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-pan-x:initial;--tw-pan-y:initial;--tw-pinch-zoom:initial;--tw-space-y-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-tracking: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-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--tw-content:"";--tw-space-x-reverse:0;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@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-green-500:oklch(72.3% .219 149.579);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-lg:32rem;--container-4xl:56rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-widest:.1em;--leading-normal:1.5;--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--radius:.625rem;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-shadow:0 0 #0000;--tw-inset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-translate-x:0;--tw-translate-y:0;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0;--background:oklch(100% 0 0);--foreground:oklch(12.9% .042 264.695);--card:oklch(100% 0 0);--card-foreground:oklch(12.9% .042 264.695);--popover:oklch(100% 0 0);--popover-foreground:oklch(12.9% .042 264.695);--primary:oklch(20.8% .042 265.755);--primary-foreground:oklch(98.4% .003 247.858);--secondary:oklch(96.8% .007 247.896);--secondary-foreground:oklch(20.8% .042 265.755);--muted:oklch(96.8% .007 247.896);--muted-foreground:oklch(55.4% .046 257.417);--accent:oklch(96.8% .007 247.896);--accent-foreground:oklch(20.8% .042 265.755);--destructive:oklch(57.7% .245 27.325);--border:oklch(92.9% .013 255.508);--input:oklch(92.9% .013 255.508);--ring:oklch(70.4% .04 256.788);--chart-1:oklch(64.6% .222 41.116);--chart-2:oklch(60% .118 184.704);--chart-3:oklch(39.8% .07 227.392);--chart-4:oklch(82.8% .189 84.429);--chart-5:oklch(76.9% .188 70.08);--sidebar:oklch(98.4% .003 247.858);--sidebar-foreground:oklch(12.9% .042 264.695);--sidebar-primary:oklch(20.8% .042 265.755);--sidebar-primary-foreground:oklch(98.4% .003 247.858);--sidebar-accent:oklch(96.8% .007 247.896);--sidebar-accent-foreground:oklch(20.8% .042 265.755);--sidebar-border:oklch(92.9% .013 255.508);--sidebar-ring:oklch(70.4% .04 256.788)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--border);outline-color:#90a1b980}@supports (color:color-mix(in lab,red,red)){*{outline-color:color-mix(in oklab,var(--ring)50%,transparent)}}body{background-color:var(--background);color:var(--foreground)}html{font-size:14px}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.inset-0{inset:calc(var(--spacing)*0)}.inset-x-0{inset-inline:calc(var(--spacing)*0)}.-top-4{top:calc(var(--spacing)*-4)}.-top-\\[6px\\]{top:-6px}.top-0\\.5{top:calc(var(--spacing)*.5)}.top-1\\/2{top:50%}.top-\\[3px\\]{top:3px}.top-\\[8px\\]{top:8px}.top-\\[50\\%\\]{top:50%}.top-full{top:100%}.-right-\\[6px\\]{right:-6px}.right-0{right:calc(var(--spacing)*0)}.right-0\\.5{right:calc(var(--spacing)*.5)}.right-2{right:calc(var(--spacing)*2)}.bottom-0{bottom:calc(var(--spacing)*0)}.bottom-\\[30px\\]{bottom:30px}.-left-4{left:calc(var(--spacing)*-4)}.-left-\\[4px\\]{left:-4px}.left-0{left:calc(var(--spacing)*0)}.left-1\\/2{left:50%}.left-2{left:calc(var(--spacing)*2)}.left-\\[50\\%\\]{left:50%}.z-10{z-index:10}.z-50{z-index:50}.z-\\[5\\]{z-index:5}.order-first{order:-9999}.order-last{order:9999}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.m-64{margin:calc(var(--spacing)*64)}.m-96{margin:calc(var(--spacing)*96)}.m-128{margin:calc(var(--spacing)*128)}.m-160{margin:calc(var(--spacing)*160)}.m-256{margin:calc(var(--spacing)*256)}.m-288{margin:calc(var(--spacing)*288)}.m-320{margin:calc(var(--spacing)*320)}.m-640{margin:calc(var(--spacing)*640)}.m-768{margin:calc(var(--spacing)*768)}.m-\\[20px\\]{margin:20px}.-mx-1{margin-inline:calc(var(--spacing)*-1)}.mx-\\[12px\\]{margin-inline:12px}.mx-auto{margin-inline:auto}.my-1{margin-block:calc(var(--spacing)*1)}.my-4{margin-block:calc(var(--spacing)*4)}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);margin-top:1.2em;margin-bottom:1.2em;font-size:1.25em;line-height:1.6}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);font-weight:500;text-decoration:underline}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:decimal}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:disc}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-counters);font-weight:400}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.25em;font-weight:600}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em;font-style:italic;font-weight:500}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:0;margin-bottom:.888889em;font-size:2.25em;font-weight:800;line-height:1.11111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:900}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:2em;margin-bottom:1em;font-size:1.5em;font-weight:700;line-height:1.33333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:800}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.6em;margin-bottom:.6em;font-size:1.25em;font-weight:600;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.5em;margin-bottom:.5em;font-weight:600;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em;display:block}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-kbd);box-shadow:0 0 0 1px var(--tw-prose-kbd-shadows),0 3px 0 var(--tw-prose-kbd-shadows);padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;border-radius:.3125rem;padding-inline-start:.375em;font-family:inherit;font-size:.875em;font-weight:500}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-size:.875em;font-weight:600}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"\`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);padding-top:.857143em;padding-inline-end:1.14286em;padding-bottom:.857143em;border-radius:.375rem;margin-top:1.71429em;margin-bottom:1.71429em;padding-inline-start:1.14286em;font-size:.875em;font-weight:400;line-height:1.71429;overflow-x:auto}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit;background-color:#0000;border-width:0;border-radius:0;padding:0}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){table-layout:auto;width:100%;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.71429}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);vertical-align:bottom;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em;font-weight:600}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);margin-top:.857143em;font-size:.875em;line-height:1.42857}.prose{--tw-prose-body:oklch(37.3% .034 259.733);--tw-prose-headings:oklch(21% .034 264.665);--tw-prose-lead:oklch(44.6% .03 256.802);--tw-prose-links:oklch(21% .034 264.665);--tw-prose-bold:oklch(21% .034 264.665);--tw-prose-counters:oklch(55.1% .027 264.364);--tw-prose-bullets:oklch(87.2% .01 258.338);--tw-prose-hr:oklch(92.8% .006 264.531);--tw-prose-quotes:oklch(21% .034 264.665);--tw-prose-quote-borders:oklch(92.8% .006 264.531);--tw-prose-captions:oklch(55.1% .027 264.364);--tw-prose-kbd:oklch(21% .034 264.665);--tw-prose-kbd-shadows:oklab(21% -.00316127 -.0338527/.1);--tw-prose-code:oklch(21% .034 264.665);--tw-prose-pre-code:oklch(92.8% .006 264.531);--tw-prose-pre-bg:oklch(27.8% .033 256.848);--tw-prose-th-borders:oklch(87.2% .01 258.338);--tw-prose-td-borders:oklch(92.8% .006 264.531);--tw-prose-invert-body:oklch(87.2% .01 258.338);--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:oklch(70.7% .022 261.325);--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:oklch(70.7% .022 261.325);--tw-prose-invert-bullets:oklch(44.6% .03 256.802);--tw-prose-invert-hr:oklch(37.3% .034 259.733);--tw-prose-invert-quotes:oklch(96.7% .003 264.542);--tw-prose-invert-quote-borders:oklch(37.3% .034 259.733);--tw-prose-invert-captions:oklch(70.7% .022 261.325);--tw-prose-invert-kbd:#fff;--tw-prose-invert-kbd-shadows:#ffffff1a;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:oklch(87.2% .01 258.338);--tw-prose-invert-pre-bg:#00000080;--tw-prose-invert-th-borders:oklch(44.6% .03 256.802);--tw-prose-invert-td-borders:oklch(37.3% .034 259.733);font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.571429em;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-\\[2px\\]{margin-top:2px}.mt-\\[4px\\]{margin-top:4px}.mt-\\[20px\\]{margin-top:20px}.mr-\\[10px\\]{margin-right:10px}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-\\[10px\\]{margin-bottom:10px}.ml-\\[16px\\]{margin-left:16px}.ml-auto{margin-left:auto}.box-border{box-sizing:border-box}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.field-sizing-content{field-sizing:content}.field-sizing-fixed{field-sizing:fixed}.aspect-square{aspect-ratio:1}.size-0\\.5{width:calc(var(--spacing)*.5);height:calc(var(--spacing)*.5)}.size-4{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-6{width:calc(var(--spacing)*6);height:calc(var(--spacing)*6)}.size-8{width:calc(var(--spacing)*8);height:calc(var(--spacing)*8)}.size-16{width:calc(var(--spacing)*16);height:calc(var(--spacing)*16)}.size-\\[30px\\]{width:30px;height:30px}.size-\\[36px\\]{width:36px;height:36px}.size-full{width:100%;height:100%}.h-2{height:calc(var(--spacing)*2)}.h-3\\.5{height:calc(var(--spacing)*3.5)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.h-10{height:calc(var(--spacing)*10)}.h-\\[1px\\]{height:1px}.h-\\[2px\\]{height:2px}.h-\\[5px\\]{height:5px}.h-\\[8px\\]{height:8px}.h-\\[16px\\]{height:16px}.h-\\[24px\\]{height:24px}.h-\\[26px\\]{height:26px}.h-\\[30px\\]{height:30px}.h-\\[31px\\]{height:31px}.h-\\[32px\\]{height:32px}.h-\\[34px\\]{height:34px}.h-\\[36px\\]{height:36px}.h-\\[40px\\]{height:40px}.h-\\[52px\\]{height:52px}.h-\\[56px\\]{height:56px}.h-\\[calc\\(100\\%-62px\\)\\]{height:calc(100% - 62px)}.h-\\[calc\\(100\\%-90px\\)\\]{height:calc(100% - 90px)}.h-\\[var\\(--radix-select-trigger-height\\)\\]{height:var(--radix-select-trigger-height)}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.max-h-\\[--radix-select-content-available-height\\]{max-height:--radix-select-content-available-height}.max-h-\\[6lh\\]{max-height:6lh}.max-h-\\[var\\(--radix-dropdown-menu-content-available-height\\)\\]{max-height:var(--radix-dropdown-menu-content-available-height)}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-96{min-height:calc(var(--spacing)*96)}.min-h-\\[60px\\]{min-height:60px}.w-2{width:calc(var(--spacing)*2)}.w-3\\.5{width:calc(var(--spacing)*3.5)}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-\\[2px\\]{width:2px}.w-\\[5px\\]{width:5px}.w-\\[8px\\]{width:8px}.w-\\[16px\\]{width:16px}.w-\\[24px\\]{width:24px}.w-\\[26px\\]{width:26px}.w-\\[36px\\]{width:36px}.w-\\[40px\\]{width:40px}.w-\\[94px\\]{width:94px}.w-\\[100px\\]{width:100px}.w-\\[115px\\]{width:115px}.w-\\[160px\\]{width:160px}.w-\\[200px\\]{width:200px}.w-\\[300px\\]{width:300px}.w-\\[308px\\]{width:308px}.w-\\[328px\\]{width:328px}.w-\\[360px\\]{width:360px}.w-\\[380px\\]{width:380px}.w-\\[400px\\]{width:400px}.w-\\[420px\\]{width:420px}.w-\\[480px\\]{width:480px}.w-\\[500px\\]{width:500px}.w-\\[calc\\(100\\%-24px\\)\\]{width:calc(100% - 24px)}.w-\\[calc\\(100\\%-40px\\)\\]{width:calc(100% - 40px)}.w-fit{width:fit-content}.w-full{width:100%}.max-w-4xl{max-width:var(--container-4xl)}.max-w-\\[288px\\]{max-width:288px}.max-w-\\[350px\\]{max-width:350px}.max-w-\\[480px\\]{max-width:480px}.max-w-\\[calc\\(100\\%-2\\.5rem\\)\\]{max-width:calc(100% - 2.5rem)}.max-w-full{max-width:100%}.max-w-lg{max-width:var(--container-lg)}.max-w-sm{max-width:var(--container-sm)}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-\\[8rem\\]{min-width:8rem}.min-w-\\[100px\\]{min-width:100px}.min-w-\\[200px\\]{min-width:200px}.min-w-\\[var\\(--radix-select-trigger-width\\)\\]{min-width:var(--radix-select-trigger-width)}.flex-0{flex:0}.flex-1{flex:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow-1,.grow{flex-grow:1}.grow-0{flex-grow:0}.origin-\\[--radix-dropdown-menu-content-transform-origin\\]{transform-origin:--radix-dropdown-menu-content-transform-origin}.origin-\\[--radix-select-content-transform-origin\\]{transform-origin:--radix-select-content-transform-origin}.origin-\\[--radix-tooltip-content-transform-origin\\]{transform-origin:--radix-tooltip-content-transform-origin}.-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-\\[-50\\%\\]{--tw-translate-x:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-\\[-50\\%\\]{--tw-translate-y:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.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)}.scale-\\[1\\.01\\]{scale:1.01}.-rotate-45{rotate:-45deg}.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-in{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.animate-spin{animation:var(--animate-spin)}.cursor-default{cursor:default}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.touch-pan-y{--tw-pan-y:pan-y;touch-action:var(--tw-pan-x,)var(--tw-pan-y,)var(--tw-pinch-zoom,)}.resize{resize:both}.resize-none{resize:none}.grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.place-content-center{place-content:center}.content-center{align-content:center}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.\\!justify-between{justify-content:space-between!important}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-start{justify-content:flex-start}.gap-0{gap:calc(var(--spacing)*0)}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-2\\.5{gap:calc(var(--spacing)*2.5)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-\\[2px\\]{gap:2px}.gap-\\[6px\\]{gap:6px}.gap-\\[8px\\]{gap:8px}.gap-\\[10px\\]{gap:10px}.gap-\\[12px\\]{gap:12px}.gap-\\[22px\\]{gap:22px}:where(.space-y-1\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1.5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1.5)*calc(1 - var(--tw-space-y-reverse)))}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-x-scroll{overflow-x:scroll}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.625rem}.rounded-\\[2px\\]{border-radius:2px}.rounded-\\[4px\\]{border-radius:4px}.rounded-\\[5px\\]{border-radius:5px}.rounded-\\[6px\\]{border-radius:6px}.rounded-\\[9\\.5px\\]{border-radius:9.5px}.rounded-\\[10px\\]{border-radius:10px}.rounded-\\[18px\\]{border-radius:18px}.rounded-\\[100px\\]{border-radius:100px}.rounded-\\[calc\\(var\\(--radius\\)-5px\\)\\]{border-radius:calc(var(--radius) - 5px)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-none{border-radius:0}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:calc(var(--radius) + 4px)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-0\\!{border-style:var(--tw-border-style)!important;border-width:0!important}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t-0\\!{border-top-style:var(--tw-border-style)!important;border-top-width:0!important}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-none{--tw-border-style:none;border-style:none}.border-none\\!{--tw-border-style:none!important;border-style:none!important}.border-solid{--tw-border-style:solid;border-style:solid}.border-\\[\\#0265ff\\]{border-color:#0265ff}.border-\\[\\#E0E0E0\\]{border-color:#e0e0e0}.border-\\[\\#EFF0F6\\]{border-color:#eff0f6}.border-\\[\\#e0e0e0\\]{border-color:#e0e0e0}.border-\\[var\\(--e0e0e0\\,\\#E0E0E0\\)\\]{border-color:var(--e0e0e0,#e0e0e0)}.border-input{border-color:var(--input)}.border-primary{border-color:var(--primary)}.border-transparent{border-color:#0000}.\\!bg-\\[\\#E5E6EB\\]{background-color:#e5e6eb!important}.bg-\\[\\#2E60FF\\]{background-color:#2e60ff}.bg-\\[\\#0265FF\\],.bg-\\[\\#0265ff\\]{background-color:#0265ff}.bg-\\[\\#999\\]{background-color:#999}.bg-\\[\\#525867\\]{background-color:#525867}.bg-\\[\\#E0E0E0\\]{background-color:#e0e0e0}.bg-\\[\\#EFF0F6\\]{background-color:#eff0f6}.bg-\\[\\#F0F6FF\\]{background-color:#f0f6ff}.bg-\\[\\#F5F7FA\\]{background-color:#f5f7fa}.bg-\\[\\#f0f0f0\\]{background-color:#f0f0f0}.bg-\\[\\#fafafa\\]{background-color:#fafafa}.bg-\\[\\#fff\\]{background-color:#fff}.bg-background{background-color:var(--background)}.bg-black\\/30{background-color:#0000004d}@supports (color:color-mix(in lab,red,red)){.bg-black\\/30{background-color:color-mix(in oklab,var(--color-black)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-card{background-color:var(--card)}.bg-destructive{background-color:var(--destructive)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-muted{background-color:var(--muted)}.bg-popover{background-color:var(--popover)}.bg-primary{background-color:var(--primary)}.bg-secondary{background-color:var(--secondary)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-linear-to-t{--tw-gradient-position:to top}@supports (background-image:linear-gradient(in lab,red,red)){.bg-linear-to-t{--tw-gradient-position:to top in oklab}}.bg-linear-to-t{background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-b{--tw-gradient-position:to bottom in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-l{--tw-gradient-position:to left 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))}.bg-\\[linear-gradient\\(180deg\\,\\#DBE9FF_0\\%\\,\\#E9FFFD_100\\%\\)\\]{background-image:linear-gradient(#dbe9ff,#e9fffd)}.from-\\[\\#84B4FF\\]{--tw-gradient-from:#84b4ff;--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-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-white{--tw-gradient-from:var(--color-white);--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-white{--tw-gradient-via:var(--color-white);--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)}.via-\\[63\\.57\\%\\]{--tw-gradient-via-position:63.57%}.to-\\[\\#B1FAFF\\]{--tw-gradient-to:#b1faff;--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-transparent{--tw-gradient-to:transparent;--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))}.bg-center{background-position:50%}.bg-no-repeat{background-repeat:no-repeat}.fill-\\[\\#525867\\]{fill:#525867}.fill-current{fill:currentColor}.object-cover{object-fit:cover}.p-0{padding:calc(var(--spacing)*0)}.p-1{padding:calc(var(--spacing)*1)}.p-2\\.5{padding:calc(var(--spacing)*2.5)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-9{padding:calc(var(--spacing)*9)}.p-\\[1px\\]{padding:1px}.p-\\[2px\\]{padding:2px}.p-\\[4px\\]{padding:4px}.p-\\[10px\\]{padding:10px}.p-\\[12px\\]{padding:12px}.px-0{padding-inline:calc(var(--spacing)*0)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-1\\.5{padding-inline:calc(var(--spacing)*1.5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-2\\.5{padding-inline:calc(var(--spacing)*2.5)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-5{padding-inline:calc(var(--spacing)*5)}.px-8{padding-inline:calc(var(--spacing)*8)}.px-\\[6px\\]{padding-inline:6px}.px-\\[10px\\]{padding-inline:10px}.px-\\[16px\\]{padding-inline:16px}.px-\\[20px\\]{padding-inline:20px}.py-0{padding-block:calc(var(--spacing)*0)}.py-0\\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.py-\\[6px\\]{padding-block:6px}.py-\\[7px\\]{padding-block:7px}.py-\\[8px\\]{padding-block:8px}.py-\\[10px\\]{padding-block:10px}.pt-0{padding-top:calc(var(--spacing)*0)}.pt-3{padding-top:calc(var(--spacing)*3)}.pt-6{padding-top:calc(var(--spacing)*6)}.pr-2{padding-right:calc(var(--spacing)*2)}.pr-3{padding-right:calc(var(--spacing)*3)}.pr-8{padding-right:calc(var(--spacing)*8)}.pb-0{padding-bottom:calc(var(--spacing)*0)}.pb-3{padding-bottom:calc(var(--spacing)*3)}.pb-\\[20px\\]{padding-bottom:20px}.pl-2{padding-left:calc(var(--spacing)*2)}.pl-3{padding-left:calc(var(--spacing)*3)}.pl-6{padding-left:calc(var(--spacing)*6)}.pl-8{padding-left:calc(var(--spacing)*8)}.pl-\\[36px\\]{padding-left:36px}.pl-\\[38px\\]{padding-left:38px}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-\\[\\'Alibaba_PuHuiTi_2\\.0\\:55_Regular\\'\\,sans-serif\\]{font-family:"Alibaba PuHuiTi 2.0:55 Regular",sans-serif}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[10px\\]{font-size:10px}.text-\\[12px\\]{font-size:12px}.text-\\[13px\\]{font-size:13px}.text-\\[14px\\]{font-size:14px}.text-\\[16px\\]{font-size:16px}.text-\\[18px\\]{font-size:18px}.leading-5{--tw-leading:calc(var(--spacing)*5);line-height:calc(var(--spacing)*5)}.leading-\\[16px\\]{--tw-leading:16px;line-height:16px}.leading-\\[20px\\]{--tw-leading:20px;line-height:20px}.leading-\\[normal\\]{--tw-leading:normal;line-height:normal}.leading-none{--tw-leading:1;line-height:1}.leading-normal{--tw-leading:var(--leading-normal);line-height:var(--leading-normal)}.font-\\[400\\]{--tw-font-weight:400;font-weight:400}.font-\\[500\\]{--tw-font-weight:500;font-weight:500}.font-\\[700\\]{--tw-font-weight:700;font-weight:700}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.break-words{overflow-wrap:break-word}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.\\!text-\\[\\#121111\\]{color:#121111!important}.text-\\[\\#4D609F\\],.text-\\[\\#4d609f\\]{color:#4d609f}.text-\\[\\#6F829E\\],.text-\\[\\#6f829e\\]{color:#6f829e}.text-\\[\\#0265FF\\],.text-\\[\\#0265ff\\]{color:#0265ff}.text-\\[\\#666\\]{color:#666}.text-\\[\\#999\\]{color:#999}.text-\\[\\#12111\\]{color:#12111}.text-\\[\\#030303\\]{color:#030303}.text-\\[\\#121111\\]{color:#121111}.text-\\[\\#999999\\]{color:#999}.text-\\[\\#C2C2C2\\]{color:#c2c2c2}.text-black{color:var(--color-black)}.text-card-foreground{color:var(--card-foreground)}.text-current{color:currentColor}.text-foreground{color:var(--foreground)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-green-500{color:var(--color-green-500)}.text-muted-foreground{color:var(--muted-foreground)}.text-popover-foreground{color:var(--popover-foreground)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--primary-foreground)}.text-secondary-foreground{color:var(--secondary-foreground)}.text-white{color:var(--color-white)}.italic{font-style:italic}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-80{opacity:.8}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-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-\\[0px_0px_10px_0px_rgba\\(0\\,0\\,0\\,0\\.04\\)\\]{--tw-shadow:0px 0px 10px 0px var(--tw-shadow-color,#0000000a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\\[0px_0px_10px_0px_rgba\\(0\\,0\\,0\\,0\\.06\\)\\]{--tw-shadow:0px 0px 10px 0px var(--tw-shadow-color,#0000000f);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\\[0px_0px_14px_0px_rgba\\(0\\,0\\,0\\,0\\.1\\)\\]{--tw-shadow:0px 0px 14px 0px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-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)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-0{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + 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)}.ring-offset-background{--tw-ring-offset-color:var(--background)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur-\\[7px\\]{--tw-blur:blur(7px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition-\\[color\\,box-shadow\\]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.will-change-scroll{will-change:scroll-position}.animate-in{--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial;animation-name:enter;animation-duration:.15s}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.\\[-ms-overflow-style\\:none\\]{-ms-overflow-style:none}.\\[scrollbar-width\\:none\\]{scrollbar-width:none}.duration-100{animation-duration:.1s}.duration-200{animation-duration:.2s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}.fade-in-0{--tw-enter-opacity:0}.zoom-in-95{--tw-enter-scale:.95}@media (hover:hover){.group-hover\\:text-\\[\\#0265FF\\]:is(:where(.group):hover *){color:#0265ff}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}}.group-has-\\[\\>input\\]\\/input-group\\:pt-2\\.5:is(:where(.group\\/input-group):has(>input) *){padding-top:calc(var(--spacing)*2.5)}.group-has-\\[\\>input\\]\\/input-group\\:pb-2\\.5:is(:where(.group\\/input-group):has(>input) *){padding-bottom:calc(var(--spacing)*2.5)}.group-data-\\[disabled\\=true\\]\\/input-group\\:opacity-50:is(:where(.group\\/input-group)[data-disabled=true] *){opacity:.5}.group-\\[\\.is-assistant\\]\\:bg-secondary:is(:where(.group).is-assistant *){background-color:var(--secondary)}.group-\\[\\.is-assistant\\]\\:text-foreground:is(:where(.group).is-assistant *){color:var(--foreground)}.group-\\[\\.is-user\\]\\:bg-primary:is(:where(.group).is-user *){background-color:var(--primary)}.group-\\[\\.is-user\\]\\:text-primary-foreground:is(:where(.group).is-user *){color:var(--primary-foreground)}.peer-disabled\\:cursor-not-allowed:is(:where(.peer):disabled~*){cursor:not-allowed}.peer-disabled\\:opacity-70:is(:where(.peer):disabled~*){opacity:.7}.file\\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\\:bg-transparent::file-selector-button{background-color:#0000}.file\\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.file\\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.file\\:text-foreground::file-selector-button{color:var(--foreground)}.placeholder\\:text-\\[\\#999\\]::placeholder{color:#999}.placeholder\\:text-muted-foreground::placeholder{color:var(--muted-foreground)}.before\\:absolute:before{content:var(--tw-content);position:absolute}.before\\:inset-0:before{content:var(--tw-content);inset:calc(var(--spacing)*0)}.before\\:z-0:before{content:var(--tw-content);z-index:0}.before\\:bg-\\[linear-gradient\\(180deg\\,\\#267AFF_0\\%\\,\\#B2EEFF_100\\%\\)\\]:before{content:var(--tw-content);background-image:linear-gradient(#267aff,#b2eeff)}.before\\:opacity-0:before{content:var(--tw-content);opacity:0}.before\\:transition-opacity:before{content:var(--tw-content);transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.before\\:duration-200:before{content:var(--tw-content);--tw-duration:.2s;transition-duration:.2s}.before\\:ease-out:before{content:var(--tw-content);--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.before\\:content-\\[\\'\\'\\]:before{--tw-content:"";content:var(--tw-content)}.before\\:duration-200:before{content:var(--tw-content);animation-duration:.2s}.before\\:ease-out:before{content:var(--tw-content);animation-timing-function:cubic-bezier(0,0,.2,1)}.focus-within\\:border-border:focus-within{border-color:var(--border)}@media (hover:hover){.hover\\:border-\\[\\#0265FF\\]:hover,.hover\\:border-\\[\\#0265ff\\]:hover{border-color:#0265ff}.hover\\:border-\\[\\#E0E0E0\\]:hover,.hover\\:border-\\[\\#e0e0e0\\]:hover{border-color:#e0e0e0}.hover\\:border-transparent:hover{border-color:#0000}.hover\\:\\!bg-\\[\\#EFF0F6\\]:hover{background-color:#eff0f6!important}.hover\\:\\!bg-\\[\\#ffffff\\]:hover{background-color:#fff!important}.hover\\:bg-\\[\\#0265FF\\]:hover{background-color:#0265ff}.hover\\:bg-\\[\\#0265FF\\]\\/90:hover{background-color:#0265ffe6}.hover\\:bg-\\[\\#0265ff\\]\\/80:hover{background-color:#0265ffcc}.hover\\:bg-\\[\\#EFF0F6\\]:hover,.hover\\:bg-\\[\\#eff0f6\\]:hover{background-color:#eff0f6}.hover\\:bg-\\[\\#f0f0f0\\]:hover{background-color:#f0f0f0}.hover\\:bg-\\[\\#f5f9ff\\]:hover{background-color:#f5f9ff}.hover\\:bg-\\[\\#fafafa\\]:hover{background-color:#fafafa}.hover\\:bg-accent:hover{background-color:var(--accent)}.hover\\:bg-destructive\\/80:hover{background-color:#e40014cc}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-destructive\\/80:hover{background-color:color-mix(in oklab,var(--destructive)80%,transparent)}}.hover\\:bg-destructive\\/90:hover{background-color:#e40014e6}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-destructive\\/90:hover{background-color:color-mix(in oklab,var(--destructive)90%,transparent)}}.hover\\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\\:bg-primary\\/80:hover{background-color:#0f172bcc}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-primary\\/80:hover{background-color:color-mix(in oklab,var(--primary)80%,transparent)}}.hover\\:bg-primary\\/90:hover{background-color:#0f172be6}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-primary\\/90:hover{background-color:color-mix(in oklab,var(--primary)90%,transparent)}}.hover\\:bg-secondary\\/80:hover{background-color:#f1f5f9cc}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-secondary\\/80:hover{background-color:color-mix(in oklab,var(--secondary)80%,transparent)}}.hover\\:bg-white:hover{background-color:var(--color-white)}.hover\\:text-\\[\\#0265FF\\]:hover{color:#0265ff}.hover\\:text-\\[\\#0265ff\\]\\/80:hover{color:#0265ffcc}.hover\\:text-\\[\\#333\\]:hover{color:#333}.hover\\:text-\\[\\#121111\\]:hover{color:#121111}.hover\\:text-accent-foreground:hover{color:var(--accent-foreground)}.hover\\:text-foreground:hover{color:var(--foreground)}.hover\\:text-white:hover{color:var(--color-white)}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-70:hover{opacity:.7}.hover\\:opacity-90:hover{opacity:.9}.hover\\:shadow-\\[0px_14px_14px_0px_rgba\\(0\\,0\\,0\\,0\\.14\\)\\]:hover{--tw-shadow:0px 14px 14px 0px var(--tw-shadow-color,#00000024);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\\:shadow-md:hover{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\\:before\\:opacity-100:hover:before{content:var(--tw-content);opacity:1}}.focus\\:border-\\[\\#0265ff\\]:focus{border-color:#0265ff}.focus\\:bg-accent:focus{background-color:var(--accent)}.focus\\:text-accent-foreground:focus{color:var(--accent-foreground)}.focus\\:ring-1:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + 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-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-ring:focus{--tw-ring-color:var(--ring)}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\\:ring-0:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + 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-visible\\:ring-1:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + 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-visible\\:ring-2:focus-visible{--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-visible\\:ring-\\[\\#0265FF\\]:focus-visible{--tw-ring-color:#0265ff}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color:var(--ring)}.focus-visible\\:ring-offset-0:focus-visible{--tw-ring-offset-width:0px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-visible\\:ring-offset-1:focus-visible{--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:border-\\[\\#C2C2C2\\]:disabled{border-color:#c2c2c2}.disabled\\:bg-\\[\\#E5E6EB\\]:disabled{background-color:#e5e6eb}.disabled\\:bg-\\[\\#F0F0F0\\]:disabled{background-color:#f0f0f0}.disabled\\:text-white:disabled{color:var(--color-white)}.disabled\\:\\!opacity-100:disabled{opacity:1!important}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:opacity-95:disabled{opacity:.95}.disabled\\:opacity-100:disabled{opacity:1}.has-\\[\\[data-slot\\=input-group-control\\]\\:focus-visible\\]\\:ring-1:has([data-slot=input-group-control]:focus-visible){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + 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)}.has-\\[\\[data-slot\\=input-group-control\\]\\:focus-visible\\]\\:ring-ring:has([data-slot=input-group-control]:focus-visible){--tw-ring-color:var(--ring)}.has-\\[\\[data-slot\\]\\[aria-invalid\\=true\\]\\]\\:border-destructive:has([data-slot][aria-invalid=true]){border-color:var(--destructive)}.has-\\[\\[data-slot\\]\\[aria-invalid\\=true\\]\\]\\:ring-destructive\\/20:has([data-slot][aria-invalid=true]){--tw-ring-color:#e4001433}@supports (color:color-mix(in lab,red,red)){.has-\\[\\[data-slot\\]\\[aria-invalid\\=true\\]\\]\\:ring-destructive\\/20:has([data-slot][aria-invalid=true]){--tw-ring-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.has-\\[\\>\\[data-align\\=block-end\\]\\]\\:h-auto:has(>[data-align=block-end]){height:auto}.has-\\[\\>\\[data-align\\=block-end\\]\\]\\:flex-col:has(>[data-align=block-end]){flex-direction:column}.has-\\[\\>\\[data-align\\=block-start\\]\\]\\:h-auto:has(>[data-align=block-start]){height:auto}.has-\\[\\>\\[data-align\\=block-start\\]\\]\\:flex-col:has(>[data-align=block-start]){flex-direction:column}.has-\\[\\>button\\]\\:mr-\\[-0\\.4rem\\]:has(>button){margin-right:-.4rem}.has-\\[\\>button\\]\\:ml-\\[-0\\.45rem\\]:has(>button){margin-left:-.45rem}.has-\\[\\>kbd\\]\\:mr-\\[-0\\.35rem\\]:has(>kbd){margin-right:-.35rem}.has-\\[\\>kbd\\]\\:ml-\\[-0\\.35rem\\]:has(>kbd){margin-left:-.35rem}.has-\\[\\>svg\\]\\:p-0:has(>svg){padding:calc(var(--spacing)*0)}.has-\\[\\>svg\\]\\:px-2:has(>svg){padding-inline:calc(var(--spacing)*2)}.has-\\[\\>svg\\]\\:px-2\\.5:has(>svg){padding-inline:calc(var(--spacing)*2.5)}.has-\\[\\>textarea\\]\\:h-auto:has(>textarea){height:auto}.aria-expanded\\:bg-accent[aria-expanded=true]{background-color:var(--accent)}.aria-expanded\\:text-foreground[aria-expanded=true]{color:var(--foreground)}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[placeholder\\]\\:text-muted-foreground[data-placeholder]{color:var(--muted-foreground)}.data-\\[side\\=bottom\\]\\:translate-y-1[data-side=bottom]{--tw-translate-y:calc(var(--spacing)*1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:calc(2*var(--spacing)*-1)}.data-\\[side\\=left\\]\\:-translate-x-1[data-side=left]{--tw-translate-x:calc(var(--spacing)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:calc(2*var(--spacing))}.data-\\[side\\=right\\]\\:translate-x-1[data-side=right]{--tw-translate-x:calc(var(--spacing)*1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.data-\\[side\\=top\\]\\:-translate-y-1[data-side=top]{--tw-translate-y:calc(var(--spacing)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:calc(2*var(--spacing))}.data-\\[state\\=active\\]\\:bg-background[data-state=active]{background-color:var(--background)}.data-\\[state\\=active\\]\\:text-foreground[data-state=active]{color:var(--foreground)}.data-\\[state\\=active\\]\\:shadow[data-state=active]{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px 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)}.data-\\[state\\=checked\\]\\:border-\\[\\#0265FF\\][data-state=checked],.data-\\[state\\=checked\\]\\:border-\\[\\#0265ff\\][data-state=checked]{border-color:#0265ff}.data-\\[state\\=checked\\]\\:border-\\[\\#E0E0E0\\][data-state=checked]{border-color:#e0e0e0}.data-\\[state\\=checked\\]\\:bg-\\[\\#0265FF\\][data-state=checked],.data-\\[state\\=checked\\]\\:bg-\\[\\#0265ff\\][data-state=checked]{background-color:#0265ff}.data-\\[state\\=checked\\]\\:bg-primary[data-state=checked]{background-color:var(--primary)}.data-\\[state\\=checked\\]\\:bg-white[data-state=checked]{background-color:var(--color-white)}.data-\\[state\\=checked\\]\\:text-\\[\\#0265FF\\][data-state=checked]{color:#0265ff}.data-\\[state\\=checked\\]\\:text-primary-foreground[data-state=checked]{color:var(--primary-foreground)}.disabled\\:data-\\[state\\=checked\\]\\:border-\\[\\#C2C2C2\\]:disabled[data-state=checked]{border-color:#c2c2c2}.disabled\\:data-\\[state\\=checked\\]\\:bg-\\[\\#C2C2C2\\]:disabled[data-state=checked]{background-color:#c2c2c2}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none);--tw-exit-opacity:initial;--tw-exit-scale:initial;--tw-exit-rotate:initial;--tw-exit-translate-x:initial;--tw-exit-translate-y:initial;animation-name:exit;animation-duration:.15s}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\\[state\\=closed\\]\\:slide-out-to-left-1\\/2[data-state=closed]{--tw-exit-translate-x: -50% }.data-\\[state\\=closed\\]\\:slide-out-to-top-\\[48\\%\\][data-state=closed]{--tw-exit-translate-y: -48% }.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:var(--accent)}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial;animation-name:enter;animation-duration:.15s}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\\[state\\=open\\]\\:slide-in-from-left-1\\/2[data-state=open]{--tw-enter-translate-x: -50% }.data-\\[state\\=open\\]\\:slide-in-from-top-\\[48\\%\\][data-state=open]{--tw-enter-translate-y: -48% }.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}@media (min-width:40rem){.sm\\:max-w-\\[min\\(fit-content\\,80\\%\\)\\]{max-width:min(fit-content,80%)}.sm\\:flex-row{flex-direction:row}.sm\\:justify-end{justify-content:flex-end}.sm\\:gap-2{gap:calc(var(--spacing)*2)}:where(.sm\\: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)))}.sm\\:rounded-lg{border-radius:var(--radius)}.sm\\:text-left{text-align:left}}@media (min-width:48rem){.md\\:px-4{padding-inline:calc(var(--spacing)*4)}.md\\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}.dark\\:border-0:is(.dark *){border-style:var(--tw-border-style);border-width:0}.dark\\:border-transparent\\!:is(.dark *){border-color:#0000!important}.dark\\:bg-input\\/30:is(.dark *){background-color:#e2e8f04d}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-input\\/30:is(.dark *){background-color:color-mix(in oklab,var(--input)30%,transparent)}}.dark\\:bg-transparent:is(.dark *){background-color:#0000}.dark\\:has-\\[\\[data-slot\\]\\[aria-invalid\\=true\\]\\]\\:ring-destructive\\/40:is(.dark *):has([data-slot][aria-invalid=true]){--tw-ring-color:#e4001466}@supports (color:color-mix(in lab,red,red)){.dark\\:has-\\[\\[data-slot\\]\\[aria-invalid\\=true\\]\\]\\:ring-destructive\\/40:is(.dark *):has([data-slot][aria-invalid=true]){--tw-ring-color:color-mix(in oklab,var(--destructive)40%,transparent)}}.\\[\\&_button\\:first-child\\]\\:rounded-bl-xl button:first-child{border-bottom-left-radius:calc(var(--radius) + 4px)}.\\[\\&_code\\]\\:whitespace-pre-wrap code{white-space:pre-wrap}.\\[\\&_pre\\]\\:max-w-full pre{max-width:100%}.\\[\\&_pre\\]\\:overflow-x-auto pre{overflow-x:auto}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:size-4 svg{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.\\[\\&_svg\\:not\\(\\[class\\*\\=\\'size-\\'\\]\\)\\]\\:size-4 svg:not([class*=size-]){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\\[\\&\\:\\:-webkit-scrollbar\\]\\:hidden::-webkit-scrollbar{display:none}.\\[\\.border-b\\]\\:pb-3.border-b{padding-bottom:calc(var(--spacing)*3)}.\\[\\.border-t\\]\\:pt-3.border-t{padding-top:calc(var(--spacing)*3)}.\\[\\&\\>\\*\\:first-child\\]\\:mt-0>:first-child{margin-top:calc(var(--spacing)*0)}.\\[\\&\\>\\*\\:last-child\\]\\:mb-0>:last-child{margin-bottom:calc(var(--spacing)*0)}.\\[\\&\\>button\\]\\:hidden>button{display:none}.has-\\[\\>\\[data-align\\=block-end\\]\\]\\:\\[\\&\\>input\\]\\:pt-3:has(>[data-align=block-end])>input{padding-top:calc(var(--spacing)*3)}.has-\\[\\>\\[data-align\\=block-start\\]\\]\\:\\[\\&\\>input\\]\\:pb-3:has(>[data-align=block-start])>input{padding-bottom:calc(var(--spacing)*3)}.has-\\[\\>\\[data-align\\=inline-end\\]\\]\\:\\[\\&\\>input\\]\\:pr-2:has(>[data-align=inline-end])>input{padding-right:calc(var(--spacing)*2)}.has-\\[\\>\\[data-align\\=inline-start\\]\\]\\:\\[\\&\\>input\\]\\:pl-2:has(>[data-align=inline-start])>input{padding-left:calc(var(--spacing)*2)}.\\[\\&\\>kbd\\]\\:rounded-\\[calc\\(var\\(--radius\\)-5px\\)\\]>kbd{border-radius:calc(var(--radius) - 5px)}.\\[\\&\\>span\\]\\:line-clamp-1>span{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.\\[\\&\\>svg\\]\\:size-4>svg{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\\[\\&\\>svg\\]\\:shrink-0>svg{flex-shrink:0}.\\[\\&\\>svg\\:not\\(\\[class\\*\\=\\'size-\\'\\]\\)\\]\\:size-3\\.5>svg:not([class*=size-]){width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.\\[\\&\\>svg\\:not\\(\\[class\\*\\=\\'size-\\'\\]\\)\\]\\:size-4>svg:not([class*=size-]){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}.dark{--background:oklch(12.9% .042 264.695);--foreground:oklch(98.4% .003 247.858);--card:oklch(20.8% .042 265.755);--card-foreground:oklch(98.4% .003 247.858);--popover:oklch(20.8% .042 265.755);--popover-foreground:oklch(98.4% .003 247.858);--primary:oklch(92.9% .013 255.508);--primary-foreground:oklch(20.8% .042 265.755);--secondary:oklch(27.9% .041 260.031);--secondary-foreground:oklch(98.4% .003 247.858);--muted:oklch(27.9% .041 260.031);--muted-foreground:oklch(70.4% .04 256.788);--accent:oklch(27.9% .041 260.031);--accent-foreground:#eff0f6;--destructive:oklch(70.4% .191 22.216);--border:oklch(100% 0 0/.1);--input:oklch(100% 0 0/.15);--ring:oklch(55.1% .027 264.364);--chart-1:oklch(48.8% .243 264.376);--chart-2:oklch(69.6% .17 162.48);--chart-3:oklch(76.9% .188 70.08);--chart-4:oklch(62.7% .265 303.9);--chart-5:oklch(64.5% .246 16.439);--sidebar:oklch(20.8% .042 265.755);--sidebar-foreground:oklch(98.4% .003 247.858);--sidebar-primary:oklch(48.8% .243 264.376);--sidebar-primary-foreground:oklch(98.4% .003 247.858);--sidebar-accent:oklch(27.9% .041 260.031);--sidebar-accent-foreground:oklch(98.4% .003 247.858);--sidebar-border:oklch(100% 0 0/.1);--sidebar-ring:oklch(55.1% .027 264.364)}.prose{--tw-prose-body:#121111}.scrollbar-hide::-webkit-scrollbar{display:none}.scrollbar-hide{-ms-overflow-style:none;scrollbar-width:none}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0))}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@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-pan-x{syntax:"*";inherits:false}@property --tw-pan-y{syntax:"*";inherits:false}@property --tw-pinch-zoom{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-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-tracking{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-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@keyframes spin{to{transform:rotate(360deg)}}
|
|
2
|
-
/*$vite$:1*/`,document.head.appendChild(Po);function Yf(e,t){for(var n=0;n<t.length;n++){const a=t[n];if(typeof a!="string"&&!Array.isArray(a)){for(const i in a)if(i!=="default"&&!(i in e)){const l=Object.getOwnPropertyDescriptor(a,i);l&&Object.defineProperty(e,i,l.get?l:{enumerable:!0,get:()=>a[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var T4=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Wu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var v9={exports:{}},kh={},y9={exports:{}},gn={};/**
|
|
3
|
-
* @license React
|
|
4
|
-
* react.production.min.js
|
|
5
|
-
*
|
|
6
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7
|
-
*
|
|
8
|
-
* This source code is licensed under the MIT license found in the
|
|
9
|
-
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var ow;function ID(){if(ow)return gn;ow=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),y=Symbol.iterator;function k(X){return X===null||typeof X!="object"?null:(X=y&&X[y]||X["@@iterator"],typeof X=="function"?X:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,R={};function N(X,pe,Z){this.props=X,this.context=pe,this.refs=R,this.updater=Z||b}N.prototype.isReactComponent={},N.prototype.setState=function(X,pe){if(typeof X!="object"&&typeof X!="function"&&X!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,X,pe,"setState")},N.prototype.forceUpdate=function(X){this.updater.enqueueForceUpdate(this,X,"forceUpdate")};function O(){}O.prototype=N.prototype;function P(X,pe,Z){this.props=X,this.context=pe,this.refs=R,this.updater=Z||b}var z=P.prototype=new O;z.constructor=P,T(z,N.prototype),z.isPureReactComponent=!0;var j=Array.isArray,V=Object.prototype.hasOwnProperty,H={current:null},W={key:!0,ref:!0,__self:!0,__source:!0};function G(X,pe,Z){var ze,st={},Ve=null,_e=null;if(pe!=null)for(ze in pe.ref!==void 0&&(_e=pe.ref),pe.key!==void 0&&(Ve=""+pe.key),pe)V.call(pe,ze)&&!W.hasOwnProperty(ze)&&(st[ze]=pe[ze]);var Ze=arguments.length-2;if(Ze===1)st.children=Z;else if(1<Ze){for(var Ke=Array(Ze),We=0;We<Ze;We++)Ke[We]=arguments[We+2];st.children=Ke}if(X&&X.defaultProps)for(ze in Ze=X.defaultProps,Ze)st[ze]===void 0&&(st[ze]=Ze[ze]);return{$$typeof:e,type:X,key:Ve,ref:_e,props:st,_owner:H.current}}function ae(X,pe){return{$$typeof:e,type:X.type,key:pe,ref:X.ref,props:X.props,_owner:X._owner}}function ye(X){return typeof X=="object"&&X!==null&&X.$$typeof===e}function ce(X){var pe={"=":"=0",":":"=2"};return"$"+X.replace(/[=:]/g,function(Z){return pe[Z]})}var he=/\/+/g;function ue(X,pe){return typeof X=="object"&&X!==null&&X.key!=null?ce(""+X.key):pe.toString(36)}function Te(X,pe,Z,ze,st){var Ve=typeof X;(Ve==="undefined"||Ve==="boolean")&&(X=null);var _e=!1;if(X===null)_e=!0;else switch(Ve){case"string":case"number":_e=!0;break;case"object":switch(X.$$typeof){case e:case t:_e=!0}}if(_e)return _e=X,st=st(_e),X=ze===""?"."+ue(_e,0):ze,j(st)?(Z="",X!=null&&(Z=X.replace(he,"$&/")+"/"),Te(st,pe,Z,"",function(We){return We})):st!=null&&(ye(st)&&(st=ae(st,Z+(!st.key||_e&&_e.key===st.key?"":(""+st.key).replace(he,"$&/")+"/")+X)),pe.push(st)),1;if(_e=0,ze=ze===""?".":ze+":",j(X))for(var Ze=0;Ze<X.length;Ze++){Ve=X[Ze];var Ke=ze+ue(Ve,Ze);_e+=Te(Ve,pe,Z,Ke,st)}else if(Ke=k(X),typeof Ke=="function")for(X=Ke.call(X),Ze=0;!(Ve=X.next()).done;)Ve=Ve.value,Ke=ze+ue(Ve,Ze++),_e+=Te(Ve,pe,Z,Ke,st);else if(Ve==="object")throw pe=String(X),Error("Objects are not valid as a React child (found: "+(pe==="[object Object]"?"object with keys {"+Object.keys(X).join(", ")+"}":pe)+"). If you meant to render a collection of children, use an array instead.");return _e}function ke(X,pe,Z){if(X==null)return X;var ze=[],st=0;return Te(X,ze,"","",function(Ve){return pe.call(Z,Ve,st++)}),ze}function Ee(X){if(X._status===-1){var pe=X._result;pe=pe(),pe.then(function(Z){(X._status===0||X._status===-1)&&(X._status=1,X._result=Z)},function(Z){(X._status===0||X._status===-1)&&(X._status=2,X._result=Z)}),X._status===-1&&(X._status=0,X._result=pe)}if(X._status===1)return X._result.default;throw X._result}var xe={current:null},K={transition:null},Ae={ReactCurrentDispatcher:xe,ReactCurrentBatchConfig:K,ReactCurrentOwner:H};function B(){throw Error("act(...) is not supported in production builds of React.")}return gn.Children={map:ke,forEach:function(X,pe,Z){ke(X,function(){pe.apply(this,arguments)},Z)},count:function(X){var pe=0;return ke(X,function(){pe++}),pe},toArray:function(X){return ke(X,function(pe){return pe})||[]},only:function(X){if(!ye(X))throw Error("React.Children.only expected to receive a single React element child.");return X}},gn.Component=N,gn.Fragment=n,gn.Profiler=i,gn.PureComponent=P,gn.StrictMode=a,gn.Suspense=h,gn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ae,gn.act=B,gn.cloneElement=function(X,pe,Z){if(X==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+X+".");var ze=T({},X.props),st=X.key,Ve=X.ref,_e=X._owner;if(pe!=null){if(pe.ref!==void 0&&(Ve=pe.ref,_e=H.current),pe.key!==void 0&&(st=""+pe.key),X.type&&X.type.defaultProps)var Ze=X.type.defaultProps;for(Ke in pe)V.call(pe,Ke)&&!W.hasOwnProperty(Ke)&&(ze[Ke]=pe[Ke]===void 0&&Ze!==void 0?Ze[Ke]:pe[Ke])}var Ke=arguments.length-2;if(Ke===1)ze.children=Z;else if(1<Ke){Ze=Array(Ke);for(var We=0;We<Ke;We++)Ze[We]=arguments[We+2];ze.children=Ze}return{$$typeof:e,type:X.type,key:st,ref:Ve,props:ze,_owner:_e}},gn.createContext=function(X){return X={$$typeof:u,_currentValue:X,_currentValue2:X,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},X.Provider={$$typeof:l,_context:X},X.Consumer=X},gn.createElement=G,gn.createFactory=function(X){var pe=G.bind(null,X);return pe.type=X,pe},gn.createRef=function(){return{current:null}},gn.forwardRef=function(X){return{$$typeof:f,render:X}},gn.isValidElement=ye,gn.lazy=function(X){return{$$typeof:x,_payload:{_status:-1,_result:X},_init:Ee}},gn.memo=function(X,pe){return{$$typeof:g,type:X,compare:pe===void 0?null:pe}},gn.startTransition=function(X){var pe=K.transition;K.transition={};try{X()}finally{K.transition=pe}},gn.unstable_act=B,gn.useCallback=function(X,pe){return xe.current.useCallback(X,pe)},gn.useContext=function(X){return xe.current.useContext(X)},gn.useDebugValue=function(){},gn.useDeferredValue=function(X){return xe.current.useDeferredValue(X)},gn.useEffect=function(X,pe){return xe.current.useEffect(X,pe)},gn.useId=function(){return xe.current.useId()},gn.useImperativeHandle=function(X,pe,Z){return xe.current.useImperativeHandle(X,pe,Z)},gn.useInsertionEffect=function(X,pe){return xe.current.useInsertionEffect(X,pe)},gn.useLayoutEffect=function(X,pe){return xe.current.useLayoutEffect(X,pe)},gn.useMemo=function(X,pe){return xe.current.useMemo(X,pe)},gn.useReducer=function(X,pe,Z){return xe.current.useReducer(X,pe,Z)},gn.useRef=function(X){return xe.current.useRef(X)},gn.useState=function(X){return xe.current.useState(X)},gn.useSyncExternalStore=function(X,pe,Z){return xe.current.useSyncExternalStore(X,pe,Z)},gn.useTransition=function(){return xe.current.useTransition()},gn.version="18.3.1",gn}var Eh={exports:{}};/**
|
|
11
|
-
* @license React
|
|
12
|
-
* react.development.js
|
|
13
|
-
*
|
|
14
|
-
* Copyright (c) Facebook, Inc. and its 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
|
-
*/Eh.exports;var iw;function DD(){return iw||(iw=1,function(e,t){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var n="18.3.1",a=Symbol.for("react.element"),i=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),h=Symbol.for("react.provider"),g=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),N=Symbol.iterator,O="@@iterator";function P(D){if(D===null||typeof D!="object")return null;var Y=N&&D[N]||D[O];return typeof Y=="function"?Y:null}var z={current:null},j={transition:null},V={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},H={current:null},W={},G=null;function ae(D){G=D}W.setExtraStackFrame=function(D){G=D},W.getCurrentStack=null,W.getStackAddendum=function(){var D="";G&&(D+=G);var Y=W.getCurrentStack;return Y&&(D+=Y()||""),D};var ye=!1,ce=!1,he=!1,ue=!1,Te=!1,ke={ReactCurrentDispatcher:z,ReactCurrentBatchConfig:j,ReactCurrentOwner:H};ke.ReactDebugCurrentFrame=W,ke.ReactCurrentActQueue=V;function Ee(D){{for(var Y=arguments.length,fe=new Array(Y>1?Y-1:0),we=1;we<Y;we++)fe[we-1]=arguments[we];K("warn",D,fe)}}function xe(D){{for(var Y=arguments.length,fe=new Array(Y>1?Y-1:0),we=1;we<Y;we++)fe[we-1]=arguments[we];K("error",D,fe)}}function K(D,Y,fe){{var we=ke.ReactDebugCurrentFrame,Ue=we.getStackAddendum();Ue!==""&&(Y+="%s",fe=fe.concat([Ue]));var Nt=fe.map(function(Xe){return String(Xe)});Nt.unshift("Warning: "+Y),Function.prototype.apply.call(console[D],console,Nt)}}var Ae={};function B(D,Y){{var fe=D.constructor,we=fe&&(fe.displayName||fe.name)||"ReactClass",Ue=we+"."+Y;if(Ae[Ue])return;xe("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",Y,we),Ae[Ue]=!0}}var X={isMounted:function(D){return!1},enqueueForceUpdate:function(D,Y,fe){B(D,"forceUpdate")},enqueueReplaceState:function(D,Y,fe,we){B(D,"replaceState")},enqueueSetState:function(D,Y,fe,we){B(D,"setState")}},pe=Object.assign,Z={};Object.freeze(Z);function ze(D,Y,fe){this.props=D,this.context=Y,this.refs=Z,this.updater=fe||X}ze.prototype.isReactComponent={},ze.prototype.setState=function(D,Y){if(typeof D!="object"&&typeof D!="function"&&D!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,D,Y,"setState")},ze.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};{var st={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},Ve=function(D,Y){Object.defineProperty(ze.prototype,D,{get:function(){Ee("%s(...) is deprecated in plain JavaScript React classes. %s",Y[0],Y[1])}})};for(var _e in st)st.hasOwnProperty(_e)&&Ve(_e,st[_e])}function Ze(){}Ze.prototype=ze.prototype;function Ke(D,Y,fe){this.props=D,this.context=Y,this.refs=Z,this.updater=fe||X}var We=Ke.prototype=new Ze;We.constructor=Ke,pe(We,ze.prototype),We.isPureReactComponent=!0;function et(){var D={current:null};return Object.seal(D),D}var Et=Array.isArray;function bt(D){return Et(D)}function ct(D){{var Y=typeof Symbol=="function"&&Symbol.toStringTag,fe=Y&&D[Symbol.toStringTag]||D.constructor.name||"Object";return fe}}function yt(D){try{return Pt(D),!1}catch(Y){return!0}}function Pt(D){return""+D}function St(D){if(yt(D))return xe("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ct(D)),Pt(D)}function jn(D,Y,fe){var we=D.displayName;if(we)return we;var Ue=Y.displayName||Y.name||"";return Ue!==""?fe+"("+Ue+")":fe}function Bn(D){return D.displayName||"Context"}function He(D){if(D==null)return null;if(typeof D.tag=="number"&&xe("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof D=="function")return D.displayName||D.name||null;if(typeof D=="string")return D;switch(D){case l:return"Fragment";case i:return"Portal";case f:return"Profiler";case u:return"StrictMode";case y:return"Suspense";case k:return"SuspenseList"}if(typeof D=="object")switch(D.$$typeof){case g:var Y=D;return Bn(Y)+".Consumer";case h:var fe=D;return Bn(fe._context)+".Provider";case x:return jn(D,D.render,"ForwardRef");case b:var we=D.displayName||null;return we!==null?we:He(D.type)||"Memo";case T:{var Ue=D,Nt=Ue._payload,Xe=Ue._init;try{return He(Xe(Nt))}catch(Dt){return null}}}return null}var Mt=Object.prototype.hasOwnProperty,Pn={key:!0,ref:!0,__self:!0,__source:!0},Wt,hr,$n;$n={};function ve(D){if(Mt.call(D,"ref")){var Y=Object.getOwnPropertyDescriptor(D,"ref").get;if(Y&&Y.isReactWarning)return!1}return D.ref!==void 0}function Ne(D){if(Mt.call(D,"key")){var Y=Object.getOwnPropertyDescriptor(D,"key").get;if(Y&&Y.isReactWarning)return!1}return D.key!==void 0}function dt(D,Y){var fe=function(){Wt||(Wt=!0,xe("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Y))};fe.isReactWarning=!0,Object.defineProperty(D,"key",{get:fe,configurable:!0})}function It(D,Y){var fe=function(){hr||(hr=!0,xe("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Y))};fe.isReactWarning=!0,Object.defineProperty(D,"ref",{get:fe,configurable:!0})}function Me(D){if(typeof D.ref=="string"&&H.current&&D.__self&&H.current.stateNode!==D.__self){var Y=He(H.current.type);$n[Y]||(xe('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',Y,D.ref),$n[Y]=!0)}}var Ye=function(D,Y,fe,we,Ue,Nt,Xe){var Dt={$$typeof:a,type:D,key:Y,ref:fe,props:Xe,_owner:Nt};return Dt._store={},Object.defineProperty(Dt._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Dt,"_self",{configurable:!1,enumerable:!1,writable:!1,value:we}),Object.defineProperty(Dt,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Ue}),Object.freeze&&(Object.freeze(Dt.props),Object.freeze(Dt)),Dt};function At(D,Y,fe){var we,Ue={},Nt=null,Xe=null,Dt=null,cn=null;if(Y!=null){ve(Y)&&(Xe=Y.ref,Me(Y)),Ne(Y)&&(St(Y.key),Nt=""+Y.key),Dt=Y.__self===void 0?null:Y.__self,cn=Y.__source===void 0?null:Y.__source;for(we in Y)Mt.call(Y,we)&&!Pn.hasOwnProperty(we)&&(Ue[we]=Y[we])}var Sn=arguments.length-2;if(Sn===1)Ue.children=fe;else if(Sn>1){for(var rr=Array(Sn),Wn=0;Wn<Sn;Wn++)rr[Wn]=arguments[Wn+2];Object.freeze&&Object.freeze(rr),Ue.children=rr}if(D&&D.defaultProps){var rn=D.defaultProps;for(we in rn)Ue[we]===void 0&&(Ue[we]=rn[we])}if(Nt||Xe){var qn=typeof D=="function"?D.displayName||D.name||"Unknown":D;Nt&&dt(Ue,qn),Xe&&It(Ue,qn)}return Ye(D,Nt,Xe,Dt,cn,H.current,Ue)}function xt(D,Y){var fe=Ye(D.type,Y,D.ref,D._self,D._source,D._owner,D.props);return fe}function Kt(D,Y,fe){if(D==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+D+".");var we,Ue=pe({},D.props),Nt=D.key,Xe=D.ref,Dt=D._self,cn=D._source,Sn=D._owner;if(Y!=null){ve(Y)&&(Xe=Y.ref,Sn=H.current),Ne(Y)&&(St(Y.key),Nt=""+Y.key);var rr;D.type&&D.type.defaultProps&&(rr=D.type.defaultProps);for(we in Y)Mt.call(Y,we)&&!Pn.hasOwnProperty(we)&&(Y[we]===void 0&&rr!==void 0?Ue[we]=rr[we]:Ue[we]=Y[we])}var Wn=arguments.length-2;if(Wn===1)Ue.children=fe;else if(Wn>1){for(var rn=Array(Wn),qn=0;qn<Wn;qn++)rn[qn]=arguments[qn+2];Ue.children=rn}return Ye(D.type,Nt,Xe,Dt,cn,Sn,Ue)}function ln(D){return typeof D=="object"&&D!==null&&D.$$typeof===a}var Qt=".",Qn=":";function dn(D){var Y=/[=:]/g,fe={"=":"=0",":":"=2"},we=D.replace(Y,function(Ue){return fe[Ue]});return"$"+we}var En=!1,Rn=/\/+/g;function da(D){return D.replace(Rn,"$&/")}function Fr(D,Y){return typeof D=="object"&&D!==null&&D.key!=null?(St(D.key),dn(""+D.key)):Y.toString(36)}function Jr(D,Y,fe,we,Ue){var Nt=typeof D;(Nt==="undefined"||Nt==="boolean")&&(D=null);var Xe=!1;if(D===null)Xe=!0;else switch(Nt){case"string":case"number":Xe=!0;break;case"object":switch(D.$$typeof){case a:case i:Xe=!0}}if(Xe){var Dt=D,cn=Ue(Dt),Sn=we===""?Qt+Fr(Dt,0):we;if(bt(cn)){var rr="";Sn!=null&&(rr=da(Sn)+"/"),Jr(cn,Y,rr,"",function(Em){return Em})}else cn!=null&&(ln(cn)&&(cn.key&&(!Dt||Dt.key!==cn.key)&&St(cn.key),cn=xt(cn,fe+(cn.key&&(!Dt||Dt.key!==cn.key)?da(""+cn.key)+"/":"")+Sn)),Y.push(cn));return 1}var Wn,rn,qn=0,xr=we===""?Qt:we+Qn;if(bt(D))for(var pl=0;pl<D.length;pl++)Wn=D[pl],rn=xr+Fr(Wn,pl),qn+=Jr(Wn,Y,fe,rn,Ue);else{var Pd=P(D);if(typeof Pd=="function"){var Ss=D;Pd===Ss.entries&&(En||Ee("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),En=!0);for(var Fd=Pd.call(Ss),su,km=0;!(su=Fd.next()).done;)Wn=su.value,rn=xr+Fr(Wn,km++),qn+=Jr(Wn,Y,fe,rn,Ue)}else if(Nt==="object"){var U1=String(D);throw new Error("Objects are not valid as a React child (found: "+(U1==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":U1)+"). If you meant to render a collection of children, use an array instead.")}}return qn}function Rr(D,Y,fe){if(D==null)return D;var we=[],Ue=0;return Jr(D,we,"","",function(Nt){return Y.call(fe,Nt,Ue++)}),we}function vi(D){var Y=0;return Rr(D,function(){Y++}),Y}function Hi(D,Y,fe){Rr(D,function(){Y.apply(this,arguments)},fe)}function Xr(D){return Rr(D,function(Y){return Y})||[]}function yi(D){if(!ln(D))throw new Error("React.Children.only expected to receive a single React element child.");return D}function _t(D){var Y={$$typeof:g,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};Y.Provider={$$typeof:h,_context:Y};var fe=!1,we=!1,Ue=!1;{var Nt={$$typeof:g,_context:Y};Object.defineProperties(Nt,{Provider:{get:function(){return we||(we=!0,xe("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),Y.Provider},set:function(Xe){Y.Provider=Xe}},_currentValue:{get:function(){return Y._currentValue},set:function(Xe){Y._currentValue=Xe}},_currentValue2:{get:function(){return Y._currentValue2},set:function(Xe){Y._currentValue2=Xe}},_threadCount:{get:function(){return Y._threadCount},set:function(Xe){Y._threadCount=Xe}},Consumer:{get:function(){return fe||(fe=!0,xe("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),Y.Consumer}},displayName:{get:function(){return Y.displayName},set:function(Xe){Ue||(Ee("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",Xe),Ue=!0)}}}),Y.Consumer=Nt}return Y._currentRenderer=null,Y._currentRenderer2=null,Y}var _n=-1,Mr=0,yr=1,Oa=2;function Ar(D){if(D._status===_n){var Y=D._result,fe=Y();if(fe.then(function(Nt){if(D._status===Mr||D._status===_n){var Xe=D;Xe._status=yr,Xe._result=Nt}},function(Nt){if(D._status===Mr||D._status===_n){var Xe=D;Xe._status=Oa,Xe._result=Nt}}),D._status===_n){var we=D;we._status=Mr,we._result=fe}}if(D._status===yr){var Ue=D._result;return Ue===void 0&&xe(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
19
|
-
|
|
20
|
-
Your code should look like:
|
|
21
|
-
const MyComponent = lazy(() => import('./MyComponent'))
|
|
22
|
-
|
|
23
|
-
Did you accidentally put curly braces around the import?`,Ue),"default"in Ue||xe(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
24
|
-
|
|
25
|
-
Your code should look like:
|
|
26
|
-
const MyComponent = lazy(() => import('./MyComponent'))`,Ue),Ue.default}else throw D._result}function ko(D){var Y={_status:_n,_result:D},fe={$$typeof:T,_payload:Y,_init:Ar};{var we,Ue;Object.defineProperties(fe,{defaultProps:{configurable:!0,get:function(){return we},set:function(Nt){xe("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),we=Nt,Object.defineProperty(fe,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return Ue},set:function(Nt){xe("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),Ue=Nt,Object.defineProperty(fe,"propTypes",{enumerable:!0})}}})}return fe}function tr(D){D!=null&&D.$$typeof===b?xe("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof D!="function"?xe("forwardRef requires a render function but was given %s.",D===null?"null":typeof D):D.length!==0&&D.length!==2&&xe("forwardRef render functions accept exactly two parameters: props and ref. %s",D.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),D!=null&&(D.defaultProps!=null||D.propTypes!=null)&&xe("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var Y={$$typeof:x,render:D};{var fe;Object.defineProperty(Y,"displayName",{enumerable:!1,configurable:!0,get:function(){return fe},set:function(we){fe=we,!D.name&&!D.displayName&&(D.displayName=we)}})}return Y}var J;J=Symbol.for("react.module.reference");function Le(D){return!!(typeof D=="string"||typeof D=="function"||D===l||D===f||Te||D===u||D===y||D===k||ue||D===R||ye||ce||he||typeof D=="object"&&D!==null&&(D.$$typeof===T||D.$$typeof===b||D.$$typeof===h||D.$$typeof===g||D.$$typeof===x||D.$$typeof===J||D.getModuleId!==void 0))}function Qe(D,Y){Le(D)||xe("memo: The first argument must be a component. Instead received: %s",D===null?"null":typeof D);var fe={$$typeof:b,type:D,compare:Y===void 0?null:Y};{var we;Object.defineProperty(fe,"displayName",{enumerable:!1,configurable:!0,get:function(){return we},set:function(Ue){we=Ue,!D.name&&!D.displayName&&(D.displayName=Ue)}})}return fe}function ut(){var D=z.current;return D===null&&xe(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
27
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
28
|
-
2. You might be breaking the Rules of Hooks
|
|
29
|
-
3. You might have more than one copy of React in the same app
|
|
30
|
-
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),D}function Gt(D){var Y=ut();if(D._context!==void 0){var fe=D._context;fe.Consumer===D?xe("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):fe.Provider===D&&xe("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return Y.useContext(D)}function Bt(D){var Y=ut();return Y.useState(D)}function un(D,Y,fe){var we=ut();return we.useReducer(D,Y,fe)}function an(D){var Y=ut();return Y.useRef(D)}function Nr(D,Y){var fe=ut();return fe.useEffect(D,Y)}function nr(D,Y){var fe=ut();return fe.useInsertionEffect(D,Y)}function ir(D,Y){var fe=ut();return fe.useLayoutEffect(D,Y)}function fa(D,Y){var fe=ut();return fe.useCallback(D,Y)}function xi(D,Y){var fe=ut();return fe.useMemo(D,Y)}function wi(D,Y,fe){var we=ut();return we.useImperativeHandle(D,Y,fe)}function Yt(D,Y){{var fe=ut();return fe.useDebugValue(D,Y)}}function en(){var D=ut();return D.useTransition()}function bi(D){var Y=ut();return Y.useDeferredValue(D)}function tu(){var D=ut();return D.useId()}function nu(D,Y,fe){var we=ut();return we.useSyncExternalStore(D,Y,fe)}var il=0,fc,sl,eo,Od,Ia,z1,H1;function pc(){}pc.__reactDisabledLog=!0;function ll(){{if(il===0){fc=console.log,sl=console.info,eo=console.warn,Od=console.error,Ia=console.group,z1=console.groupCollapsed,H1=console.groupEnd;var D={configurable:!0,enumerable:!0,value:pc,writable:!0};Object.defineProperties(console,{info:D,log:D,warn:D,error:D,group:D,groupCollapsed:D,groupEnd:D})}il++}}function Eo(){{if(il--,il===0){var D={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:pe({},D,{value:fc}),info:pe({},D,{value:sl}),warn:pe({},D,{value:eo}),error:pe({},D,{value:Od}),group:pe({},D,{value:Ia}),groupCollapsed:pe({},D,{value:z1}),groupEnd:pe({},D,{value:H1})})}il<0&&xe("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ci=ke.ReactCurrentDispatcher,Si;function hc(D,Y,fe){{if(Si===void 0)try{throw Error()}catch(Ue){var we=Ue.stack.trim().match(/\n( *(at )?)/);Si=we&&we[1]||""}return`
|
|
31
|
-
`+Si+D}}var ru=!1,ul;{var mc=typeof WeakMap=="function"?WeakMap:Map;ul=new mc}function gc(D,Y){if(!D||ru)return"";{var fe=ul.get(D);if(fe!==void 0)return fe}var we;ru=!0;var Ue=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Nt;Nt=Ci.current,Ci.current=null,ll();try{if(Y){var Xe=function(){throw Error()};if(Object.defineProperty(Xe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Xe,[])}catch(xr){we=xr}Reflect.construct(D,[],Xe)}else{try{Xe.call()}catch(xr){we=xr}D.call(Xe.prototype)}}else{try{throw Error()}catch(xr){we=xr}D()}}catch(xr){if(xr&&we&&typeof xr.stack=="string"){for(var Dt=xr.stack.split(`
|
|
32
|
-
`),cn=we.stack.split(`
|
|
33
|
-
`),Sn=Dt.length-1,rr=cn.length-1;Sn>=1&&rr>=0&&Dt[Sn]!==cn[rr];)rr--;for(;Sn>=1&&rr>=0;Sn--,rr--)if(Dt[Sn]!==cn[rr]){if(Sn!==1||rr!==1)do if(Sn--,rr--,rr<0||Dt[Sn]!==cn[rr]){var Wn=`
|
|
34
|
-
`+Dt[Sn].replace(" at new "," at ");return D.displayName&&Wn.includes("<anonymous>")&&(Wn=Wn.replace("<anonymous>",D.displayName)),typeof D=="function"&&ul.set(D,Wn),Wn}while(Sn>=1&&rr>=0);break}}}finally{ru=!1,Ci.current=Nt,Eo(),Error.prepareStackTrace=Ue}var rn=D?D.displayName||D.name:"",qn=rn?hc(rn):"";return typeof D=="function"&&ul.set(D,qn),qn}function bs(D,Y,fe){return gc(D,!1)}function Cm(D){var Y=D.prototype;return!!(Y&&Y.isReactComponent)}function Cs(D,Y,fe){if(D==null)return"";if(typeof D=="function")return gc(D,Cm(D));if(typeof D=="string")return hc(D);switch(D){case y:return hc("Suspense");case k:return hc("SuspenseList")}if(typeof D=="object")switch(D.$$typeof){case x:return bs(D.render);case b:return Cs(D.type,Y,fe);case T:{var we=D,Ue=we._payload,Nt=we._init;try{return Cs(Nt(Ue),Y,fe)}catch(Xe){}}}return""}var Mn={},vc=ke.ReactDebugCurrentFrame;function Cn(D){if(D){var Y=D._owner,fe=Cs(D.type,D._source,Y?Y.type:null);vc.setExtraStackFrame(fe)}else vc.setExtraStackFrame(null)}function Id(D,Y,fe,we,Ue){{var Nt=Function.call.bind(Mt);for(var Xe in D)if(Nt(D,Xe)){var Dt=void 0;try{if(typeof D[Xe]!="function"){var cn=Error((we||"React class")+": "+fe+" type `"+Xe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof D[Xe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw cn.name="Invariant Violation",cn}Dt=D[Xe](Y,Xe,we,fe,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Sn){Dt=Sn}Dt&&!(Dt instanceof Error)&&(Cn(Ue),xe("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",we||"React class",fe,Xe,typeof Dt),Cn(null)),Dt instanceof Error&&!(Dt.message in Mn)&&(Mn[Dt.message]=!0,Cn(Ue),xe("Failed %s type: %s",fe,Dt.message),Cn(null))}}}function Ui(D){if(D){var Y=D._owner,fe=Cs(D.type,D._source,Y?Y.type:null);ae(fe)}else ae(null)}var Ut;Ut=!1;function yc(){if(H.current){var D=He(H.current.type);if(D)return`
|
|
35
|
-
|
|
36
|
-
Check the render method of \``+D+"`."}return""}function pa(D){if(D!==void 0){var Y=D.fileName.replace(/^.*[\\\/]/,""),fe=D.lineNumber;return`
|
|
37
|
-
|
|
38
|
-
Check your code at `+Y+":"+fe+"."}return""}function Bi(D){return D!=null?pa(D.__source):""}var Da={};function Vi(D){var Y=yc();if(!Y){var fe=typeof D=="string"?D:D.displayName||D.name;fe&&(Y=`
|
|
39
|
-
|
|
40
|
-
Check the top-level render call using <`+fe+">.")}return Y}function sr(D,Y){if(!(!D._store||D._store.validated||D.key!=null)){D._store.validated=!0;var fe=Vi(Y);if(!Da[fe]){Da[fe]=!0;var we="";D&&D._owner&&D._owner!==H.current&&(we=" It was passed a child from "+He(D._owner.type)+"."),Ui(D),xe('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',fe,we),Ui(null)}}}function Zn(D,Y){if(typeof D=="object"){if(bt(D))for(var fe=0;fe<D.length;fe++){var we=D[fe];ln(we)&&sr(we,Y)}else if(ln(D))D._store&&(D._store.validated=!0);else if(D){var Ue=P(D);if(typeof Ue=="function"&&Ue!==D.entries)for(var Nt=Ue.call(D),Xe;!(Xe=Nt.next()).done;)ln(Xe.value)&&sr(Xe.value,Y)}}}function cl(D){{var Y=D.type;if(Y==null||typeof Y=="string")return;var fe;if(typeof Y=="function")fe=Y.propTypes;else if(typeof Y=="object"&&(Y.$$typeof===x||Y.$$typeof===b))fe=Y.propTypes;else return;if(fe){var we=He(Y);Id(fe,D.props,"prop",we,D)}else if(Y.PropTypes!==void 0&&!Ut){Ut=!0;var Ue=He(Y);xe("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ue||"Unknown")}typeof Y.getDefaultProps=="function"&&!Y.getDefaultProps.isReactClassApproved&&xe("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Kr(D){{for(var Y=Object.keys(D.props),fe=0;fe<Y.length;fe++){var we=Y[fe];if(we!=="children"&&we!=="key"){Ui(D),xe("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",we),Ui(null);break}}D.ref!==null&&(Ui(D),xe("Invalid attribute `ref` supplied to `React.Fragment`."),Ui(null))}}function ja(D,Y,fe){var we=Le(D);if(!we){var Ue="";(D===void 0||typeof D=="object"&&D!==null&&Object.keys(D).length===0)&&(Ue+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Nt=Bi(Y);Nt?Ue+=Nt:Ue+=yc();var Xe;D===null?Xe="null":bt(D)?Xe="array":D!==void 0&&D.$$typeof===a?(Xe="<"+(He(D.type)||"Unknown")+" />",Ue=" Did you accidentally export a JSX literal instead of a component?"):Xe=typeof D,xe("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Xe,Ue)}var Dt=At.apply(this,arguments);if(Dt==null)return Dt;if(we)for(var cn=2;cn<arguments.length;cn++)Zn(arguments[cn],D);return D===l?Kr(Dt):cl(Dt),Dt}var Wo=!1;function au(D){var Y=ja.bind(null,D);return Y.type=D,Wo||(Wo=!0,Ee("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(Y,"type",{enumerable:!1,get:function(){return Ee("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:D}),D}}),Y}function Dd(D,Y,fe){for(var we=Kt.apply(this,arguments),Ue=2;Ue<arguments.length;Ue++)Zn(arguments[Ue],we.type);return cl(we),we}function jd(D,Y){var fe=j.transition;j.transition={};var we=j.transition;j.transition._updatedFibers=new Set;try{D()}finally{if(j.transition=fe,fe===null&&we._updatedFibers){var Ue=we._updatedFibers.size;Ue>10&&Ee("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),we._updatedFibers.clear()}}}var dl=!1,ou=null;function Sm(D){if(ou===null)try{var Y=("require"+Math.random()).slice(0,7),fe=e&&e[Y];ou=fe.call(e,"timers").setImmediate}catch(we){ou=function(Ue){dl===!1&&(dl=!0,typeof MessageChannel=="undefined"&&xe("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var Nt=new MessageChannel;Nt.port1.onmessage=Ue,Nt.port2.postMessage(void 0)}}return ou(D)}var qo=0,ki=!1;function $i(D){{var Y=qo;qo++,V.current===null&&(V.current=[]);var fe=V.isBatchingLegacy,we;try{if(V.isBatchingLegacy=!0,we=D(),!fe&&V.didScheduleLegacyUpdate){var Ue=V.current;Ue!==null&&(V.didScheduleLegacyUpdate=!1,fl(Ue))}}catch(rn){throw Go(Y),rn}finally{V.isBatchingLegacy=fe}if(we!==null&&typeof we=="object"&&typeof we.then=="function"){var Nt=we,Xe=!1,Dt={then:function(rn,qn){Xe=!0,Nt.then(function(xr){Go(Y),qo===0?xc(xr,rn,qn):rn(xr)},function(xr){Go(Y),qn(xr)})}};return!ki&&typeof Promise!="undefined"&&Promise.resolve().then(function(){}).then(function(){Xe||(ki=!0,xe("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),Dt}else{var cn=we;if(Go(Y),qo===0){var Sn=V.current;Sn!==null&&(fl(Sn),V.current=null);var rr={then:function(rn,qn){V.current===null?(V.current=[],xc(cn,rn,qn)):rn(cn)}};return rr}else{var Wn={then:function(rn,qn){rn(cn)}};return Wn}}}}function Go(D){D!==qo-1&&xe("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),qo=D}function xc(D,Y,fe){{var we=V.current;if(we!==null)try{fl(we),Sm(function(){we.length===0?(V.current=null,Y(D)):xc(D,Y,fe)})}catch(Ue){fe(Ue)}else Y(D)}}var wc=!1;function fl(D){if(!wc){wc=!0;var Y=0;try{for(;Y<D.length;Y++){var fe=D[Y];do fe=fe(!0);while(fe!==null)}D.length=0}catch(we){throw D=D.slice(Y+1),we}finally{wc=!1}}}var iu=ja,bc=Dd,Cc=au,Ei={map:Rr,forEach:Hi,count:vi,toArray:Xr,only:yi};t.Children=Ei,t.Component=ze,t.Fragment=l,t.Profiler=f,t.PureComponent=Ke,t.StrictMode=u,t.Suspense=y,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ke,t.act=$i,t.cloneElement=bc,t.createContext=_t,t.createElement=iu,t.createFactory=Cc,t.createRef=et,t.forwardRef=tr,t.isValidElement=ln,t.lazy=ko,t.memo=Qe,t.startTransition=jd,t.unstable_act=$i,t.useCallback=fa,t.useContext=Gt,t.useDebugValue=Yt,t.useDeferredValue=bi,t.useEffect=Nr,t.useId=tu,t.useImperativeHandle=wi,t.useInsertionEffect=nr,t.useLayoutEffect=ir,t.useMemo=xi,t.useReducer=un,t.useRef=an,t.useState=Bt,t.useSyncExternalStore=nu,t.useTransition=en,t.version=n,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(Eh,Eh.exports)),Eh.exports}process.env.NODE_ENV==="production"?y9.exports=ID():y9.exports=DD();var L=y9.exports;const Fo=Wu(L),x9=Yf({__proto__:null,default:Fo},[L]);/**
|
|
41
|
-
* @license React
|
|
42
|
-
* react-jsx-runtime.production.min.js
|
|
43
|
-
*
|
|
44
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
45
|
-
*
|
|
46
|
-
* This source code is licensed under the MIT license found in the
|
|
47
|
-
* LICENSE file in the root directory of this source tree.
|
|
48
|
-
*/var sw;function jD(){if(sw)return kh;sw=1;var e=L,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(f,h,g){var x,y={},k=null,b=null;g!==void 0&&(k=""+g),h.key!==void 0&&(k=""+h.key),h.ref!==void 0&&(b=h.ref);for(x in h)a.call(h,x)&&!l.hasOwnProperty(x)&&(y[x]=h[x]);if(f&&f.defaultProps)for(x in h=f.defaultProps,h)y[x]===void 0&&(y[x]=h[x]);return{$$typeof:t,type:f,key:k,ref:b,props:y,_owner:i.current}}return kh.Fragment=n,kh.jsx=u,kh.jsxs=u,kh}var _h={};/**
|
|
49
|
-
* @license React
|
|
50
|
-
* react-jsx-runtime.development.js
|
|
51
|
-
*
|
|
52
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
53
|
-
*
|
|
54
|
-
* This source code is licensed under the MIT license found in the
|
|
55
|
-
* LICENSE file in the root directory of this source tree.
|
|
56
|
-
*/var lw;function PD(){return lw||(lw=1,process.env.NODE_ENV!=="production"&&function(){var e=L,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),T=Symbol.iterator,R="@@iterator";function N(J){if(J===null||typeof J!="object")return null;var Le=T&&J[T]||J[R];return typeof Le=="function"?Le:null}var O=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function P(J){{for(var Le=arguments.length,Qe=new Array(Le>1?Le-1:0),ut=1;ut<Le;ut++)Qe[ut-1]=arguments[ut];z("error",J,Qe)}}function z(J,Le,Qe){{var ut=O.ReactDebugCurrentFrame,Gt=ut.getStackAddendum();Gt!==""&&(Le+="%s",Qe=Qe.concat([Gt]));var Bt=Qe.map(function(un){return String(un)});Bt.unshift("Warning: "+Le),Function.prototype.apply.call(console[J],console,Bt)}}var j=!1,V=!1,H=!1,W=!1,G=!1,ae;ae=Symbol.for("react.module.reference");function ye(J){return!!(typeof J=="string"||typeof J=="function"||J===a||J===l||G||J===i||J===g||J===x||W||J===b||j||V||H||typeof J=="object"&&J!==null&&(J.$$typeof===k||J.$$typeof===y||J.$$typeof===u||J.$$typeof===f||J.$$typeof===h||J.$$typeof===ae||J.getModuleId!==void 0))}function ce(J,Le,Qe){var ut=J.displayName;if(ut)return ut;var Gt=Le.displayName||Le.name||"";return Gt!==""?Qe+"("+Gt+")":Qe}function he(J){return J.displayName||"Context"}function ue(J){if(J==null)return null;if(typeof J.tag=="number"&&P("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof J=="function")return J.displayName||J.name||null;if(typeof J=="string")return J;switch(J){case a:return"Fragment";case n:return"Portal";case l:return"Profiler";case i:return"StrictMode";case g:return"Suspense";case x:return"SuspenseList"}if(typeof J=="object")switch(J.$$typeof){case f:var Le=J;return he(Le)+".Consumer";case u:var Qe=J;return he(Qe._context)+".Provider";case h:return ce(J,J.render,"ForwardRef");case y:var ut=J.displayName||null;return ut!==null?ut:ue(J.type)||"Memo";case k:{var Gt=J,Bt=Gt._payload,un=Gt._init;try{return ue(un(Bt))}catch(an){return null}}}return null}var Te=Object.assign,ke=0,Ee,xe,K,Ae,B,X,pe;function Z(){}Z.__reactDisabledLog=!0;function ze(){{if(ke===0){Ee=console.log,xe=console.info,K=console.warn,Ae=console.error,B=console.group,X=console.groupCollapsed,pe=console.groupEnd;var J={configurable:!0,enumerable:!0,value:Z,writable:!0};Object.defineProperties(console,{info:J,log:J,warn:J,error:J,group:J,groupCollapsed:J,groupEnd:J})}ke++}}function st(){{if(ke--,ke===0){var J={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Te({},J,{value:Ee}),info:Te({},J,{value:xe}),warn:Te({},J,{value:K}),error:Te({},J,{value:Ae}),group:Te({},J,{value:B}),groupCollapsed:Te({},J,{value:X}),groupEnd:Te({},J,{value:pe})})}ke<0&&P("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ve=O.ReactCurrentDispatcher,_e;function Ze(J,Le,Qe){{if(_e===void 0)try{throw Error()}catch(Gt){var ut=Gt.stack.trim().match(/\n( *(at )?)/);_e=ut&&ut[1]||""}return`
|
|
57
|
-
`+_e+J}}var Ke=!1,We;{var et=typeof WeakMap=="function"?WeakMap:Map;We=new et}function Et(J,Le){if(!J||Ke)return"";{var Qe=We.get(J);if(Qe!==void 0)return Qe}var ut;Ke=!0;var Gt=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Bt;Bt=Ve.current,Ve.current=null,ze();try{if(Le){var un=function(){throw Error()};if(Object.defineProperty(un.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(un,[])}catch(Yt){ut=Yt}Reflect.construct(J,[],un)}else{try{un.call()}catch(Yt){ut=Yt}J.call(un.prototype)}}else{try{throw Error()}catch(Yt){ut=Yt}J()}}catch(Yt){if(Yt&&ut&&typeof Yt.stack=="string"){for(var an=Yt.stack.split(`
|
|
58
|
-
`),Nr=ut.stack.split(`
|
|
59
|
-
`),nr=an.length-1,ir=Nr.length-1;nr>=1&&ir>=0&&an[nr]!==Nr[ir];)ir--;for(;nr>=1&&ir>=0;nr--,ir--)if(an[nr]!==Nr[ir]){if(nr!==1||ir!==1)do if(nr--,ir--,ir<0||an[nr]!==Nr[ir]){var fa=`
|
|
60
|
-
`+an[nr].replace(" at new "," at ");return J.displayName&&fa.includes("<anonymous>")&&(fa=fa.replace("<anonymous>",J.displayName)),typeof J=="function"&&We.set(J,fa),fa}while(nr>=1&&ir>=0);break}}}finally{Ke=!1,Ve.current=Bt,st(),Error.prepareStackTrace=Gt}var xi=J?J.displayName||J.name:"",wi=xi?Ze(xi):"";return typeof J=="function"&&We.set(J,wi),wi}function bt(J,Le,Qe){return Et(J,!1)}function ct(J){var Le=J.prototype;return!!(Le&&Le.isReactComponent)}function yt(J,Le,Qe){if(J==null)return"";if(typeof J=="function")return Et(J,ct(J));if(typeof J=="string")return Ze(J);switch(J){case g:return Ze("Suspense");case x:return Ze("SuspenseList")}if(typeof J=="object")switch(J.$$typeof){case h:return bt(J.render);case y:return yt(J.type,Le,Qe);case k:{var ut=J,Gt=ut._payload,Bt=ut._init;try{return yt(Bt(Gt),Le,Qe)}catch(un){}}}return""}var Pt=Object.prototype.hasOwnProperty,St={},jn=O.ReactDebugCurrentFrame;function Bn(J){if(J){var Le=J._owner,Qe=yt(J.type,J._source,Le?Le.type:null);jn.setExtraStackFrame(Qe)}else jn.setExtraStackFrame(null)}function He(J,Le,Qe,ut,Gt){{var Bt=Function.call.bind(Pt);for(var un in J)if(Bt(J,un)){var an=void 0;try{if(typeof J[un]!="function"){var Nr=Error((ut||"React class")+": "+Qe+" type `"+un+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof J[un]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Nr.name="Invariant Violation",Nr}an=J[un](Le,un,ut,Qe,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(nr){an=nr}an&&!(an instanceof Error)&&(Bn(Gt),P("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ut||"React class",Qe,un,typeof an),Bn(null)),an instanceof Error&&!(an.message in St)&&(St[an.message]=!0,Bn(Gt),P("Failed %s type: %s",Qe,an.message),Bn(null))}}}var Mt=Array.isArray;function Pn(J){return Mt(J)}function Wt(J){{var Le=typeof Symbol=="function"&&Symbol.toStringTag,Qe=Le&&J[Symbol.toStringTag]||J.constructor.name||"Object";return Qe}}function hr(J){try{return $n(J),!1}catch(Le){return!0}}function $n(J){return""+J}function ve(J){if(hr(J))return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Wt(J)),$n(J)}var Ne=O.ReactCurrentOwner,dt={key:!0,ref:!0,__self:!0,__source:!0},It,Me;function Ye(J){if(Pt.call(J,"ref")){var Le=Object.getOwnPropertyDescriptor(J,"ref").get;if(Le&&Le.isReactWarning)return!1}return J.ref!==void 0}function At(J){if(Pt.call(J,"key")){var Le=Object.getOwnPropertyDescriptor(J,"key").get;if(Le&&Le.isReactWarning)return!1}return J.key!==void 0}function xt(J,Le){typeof J.ref=="string"&&Ne.current}function Kt(J,Le){{var Qe=function(){It||(It=!0,P("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Le))};Qe.isReactWarning=!0,Object.defineProperty(J,"key",{get:Qe,configurable:!0})}}function ln(J,Le){{var Qe=function(){Me||(Me=!0,P("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Le))};Qe.isReactWarning=!0,Object.defineProperty(J,"ref",{get:Qe,configurable:!0})}}var Qt=function(J,Le,Qe,ut,Gt,Bt,un){var an={$$typeof:t,type:J,key:Le,ref:Qe,props:un,_owner:Bt};return an._store={},Object.defineProperty(an._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(an,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ut}),Object.defineProperty(an,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Gt}),Object.freeze&&(Object.freeze(an.props),Object.freeze(an)),an};function Qn(J,Le,Qe,ut,Gt){{var Bt,un={},an=null,Nr=null;Qe!==void 0&&(ve(Qe),an=""+Qe),At(Le)&&(ve(Le.key),an=""+Le.key),Ye(Le)&&(Nr=Le.ref,xt(Le,Gt));for(Bt in Le)Pt.call(Le,Bt)&&!dt.hasOwnProperty(Bt)&&(un[Bt]=Le[Bt]);if(J&&J.defaultProps){var nr=J.defaultProps;for(Bt in nr)un[Bt]===void 0&&(un[Bt]=nr[Bt])}if(an||Nr){var ir=typeof J=="function"?J.displayName||J.name||"Unknown":J;an&&Kt(un,ir),Nr&&ln(un,ir)}return Qt(J,an,Nr,Gt,ut,Ne.current,un)}}var dn=O.ReactCurrentOwner,En=O.ReactDebugCurrentFrame;function Rn(J){if(J){var Le=J._owner,Qe=yt(J.type,J._source,Le?Le.type:null);En.setExtraStackFrame(Qe)}else En.setExtraStackFrame(null)}var da;da=!1;function Fr(J){return typeof J=="object"&&J!==null&&J.$$typeof===t}function Jr(){{if(dn.current){var J=ue(dn.current.type);if(J)return`
|
|
61
|
-
|
|
62
|
-
Check the render method of \``+J+"`."}return""}}function Rr(J){return""}var vi={};function Hi(J){{var Le=Jr();if(!Le){var Qe=typeof J=="string"?J:J.displayName||J.name;Qe&&(Le=`
|
|
63
|
-
|
|
64
|
-
Check the top-level render call using <`+Qe+">.")}return Le}}function Xr(J,Le){{if(!J._store||J._store.validated||J.key!=null)return;J._store.validated=!0;var Qe=Hi(Le);if(vi[Qe])return;vi[Qe]=!0;var ut="";J&&J._owner&&J._owner!==dn.current&&(ut=" It was passed a child from "+ue(J._owner.type)+"."),Rn(J),P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Qe,ut),Rn(null)}}function yi(J,Le){{if(typeof J!="object")return;if(Pn(J))for(var Qe=0;Qe<J.length;Qe++){var ut=J[Qe];Fr(ut)&&Xr(ut,Le)}else if(Fr(J))J._store&&(J._store.validated=!0);else if(J){var Gt=N(J);if(typeof Gt=="function"&&Gt!==J.entries)for(var Bt=Gt.call(J),un;!(un=Bt.next()).done;)Fr(un.value)&&Xr(un.value,Le)}}}function _t(J){{var Le=J.type;if(Le==null||typeof Le=="string")return;var Qe;if(typeof Le=="function")Qe=Le.propTypes;else if(typeof Le=="object"&&(Le.$$typeof===h||Le.$$typeof===y))Qe=Le.propTypes;else return;if(Qe){var ut=ue(Le);He(Qe,J.props,"prop",ut,J)}else if(Le.PropTypes!==void 0&&!da){da=!0;var Gt=ue(Le);P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Gt||"Unknown")}typeof Le.getDefaultProps=="function"&&!Le.getDefaultProps.isReactClassApproved&&P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function _n(J){{for(var Le=Object.keys(J.props),Qe=0;Qe<Le.length;Qe++){var ut=Le[Qe];if(ut!=="children"&&ut!=="key"){Rn(J),P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ut),Rn(null);break}}J.ref!==null&&(Rn(J),P("Invalid attribute `ref` supplied to `React.Fragment`."),Rn(null))}}var Mr={};function yr(J,Le,Qe,ut,Gt,Bt){{var un=ye(J);if(!un){var an="";(J===void 0||typeof J=="object"&&J!==null&&Object.keys(J).length===0)&&(an+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Nr=Rr();Nr?an+=Nr:an+=Jr();var nr;J===null?nr="null":Pn(J)?nr="array":J!==void 0&&J.$$typeof===t?(nr="<"+(ue(J.type)||"Unknown")+" />",an=" Did you accidentally export a JSX literal instead of a component?"):nr=typeof J,P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",nr,an)}var ir=Qn(J,Le,Qe,Gt,Bt);if(ir==null)return ir;if(un){var fa=Le.children;if(fa!==void 0)if(ut)if(Pn(fa)){for(var xi=0;xi<fa.length;xi++)yi(fa[xi],J);Object.freeze&&Object.freeze(fa)}else P("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else yi(fa,J)}if(Pt.call(Le,"key")){var wi=ue(J),Yt=Object.keys(Le).filter(function(tu){return tu!=="key"}),en=Yt.length>0?"{key: someKey, "+Yt.join(": ..., ")+": ...}":"{key: someKey}";if(!Mr[wi+en]){var bi=Yt.length>0?"{"+Yt.join(": ..., ")+": ...}":"{}";P(`A props object containing a "key" prop is being spread into JSX:
|
|
65
|
-
let props = %s;
|
|
66
|
-
<%s {...props} />
|
|
67
|
-
React keys must be passed directly to JSX without using spread:
|
|
68
|
-
let props = %s;
|
|
69
|
-
<%s key={someKey} {...props} />`,en,wi,bi,wi),Mr[wi+en]=!0}}return J===a?_n(ir):_t(ir),ir}}function Oa(J,Le,Qe){return yr(J,Le,Qe,!0)}function Ar(J,Le,Qe){return yr(J,Le,Qe,!1)}var ko=Ar,tr=Oa;_h.Fragment=a,_h.jsx=ko,_h.jsxs=tr}()),_h}process.env.NODE_ENV==="production"?v9.exports=jD():v9.exports=PD();var C=v9.exports,w9={exports:{}},zo={},R4={exports:{}},b9={};/**
|
|
70
|
-
* @license React
|
|
71
|
-
* scheduler.production.min.js
|
|
72
|
-
*
|
|
73
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
74
|
-
*
|
|
75
|
-
* This source code is licensed under the MIT license found in the
|
|
76
|
-
* LICENSE file in the root directory of this source tree.
|
|
77
|
-
*/var uw;function FD(){return uw||(uw=1,function(e){function t(K,Ae){var B=K.length;K.push(Ae);e:for(;0<B;){var X=B-1>>>1,pe=K[X];if(0<i(pe,Ae))K[X]=Ae,K[B]=pe,B=X;else break e}}function n(K){return K.length===0?null:K[0]}function a(K){if(K.length===0)return null;var Ae=K[0],B=K.pop();if(B!==Ae){K[0]=B;e:for(var X=0,pe=K.length,Z=pe>>>1;X<Z;){var ze=2*(X+1)-1,st=K[ze],Ve=ze+1,_e=K[Ve];if(0>i(st,B))Ve<pe&&0>i(_e,st)?(K[X]=_e,K[Ve]=B,X=Ve):(K[X]=st,K[ze]=B,X=ze);else if(Ve<pe&&0>i(_e,B))K[X]=_e,K[Ve]=B,X=Ve;else break e}}return Ae}function i(K,Ae){var B=K.sortIndex-Ae.sortIndex;return B!==0?B:K.id-Ae.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var u=Date,f=u.now();e.unstable_now=function(){return u.now()-f}}var h=[],g=[],x=1,y=null,k=3,b=!1,T=!1,R=!1,N=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function z(K){for(var Ae=n(g);Ae!==null;){if(Ae.callback===null)a(g);else if(Ae.startTime<=K)a(g),Ae.sortIndex=Ae.expirationTime,t(h,Ae);else break;Ae=n(g)}}function j(K){if(R=!1,z(K),!T)if(n(h)!==null)T=!0,Ee(V);else{var Ae=n(g);Ae!==null&&xe(j,Ae.startTime-K)}}function V(K,Ae){T=!1,R&&(R=!1,O(G),G=-1),b=!0;var B=k;try{for(z(Ae),y=n(h);y!==null&&(!(y.expirationTime>Ae)||K&&!ce());){var X=y.callback;if(typeof X=="function"){y.callback=null,k=y.priorityLevel;var pe=X(y.expirationTime<=Ae);Ae=e.unstable_now(),typeof pe=="function"?y.callback=pe:y===n(h)&&a(h),z(Ae)}else a(h);y=n(h)}if(y!==null)var Z=!0;else{var ze=n(g);ze!==null&&xe(j,ze.startTime-Ae),Z=!1}return Z}finally{y=null,k=B,b=!1}}var H=!1,W=null,G=-1,ae=5,ye=-1;function ce(){return!(e.unstable_now()-ye<ae)}function he(){if(W!==null){var K=e.unstable_now();ye=K;var Ae=!0;try{Ae=W(!0,K)}finally{Ae?ue():(H=!1,W=null)}}else H=!1}var ue;if(typeof P=="function")ue=function(){P(he)};else if(typeof MessageChannel!="undefined"){var Te=new MessageChannel,ke=Te.port2;Te.port1.onmessage=he,ue=function(){ke.postMessage(null)}}else ue=function(){N(he,0)};function Ee(K){W=K,H||(H=!0,ue())}function xe(K,Ae){G=N(function(){K(e.unstable_now())},Ae)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(K){K.callback=null},e.unstable_continueExecution=function(){T||b||(T=!0,Ee(V))},e.unstable_forceFrameRate=function(K){0>K||125<K?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ae=0<K?Math.floor(1e3/K):5},e.unstable_getCurrentPriorityLevel=function(){return k},e.unstable_getFirstCallbackNode=function(){return n(h)},e.unstable_next=function(K){switch(k){case 1:case 2:case 3:var Ae=3;break;default:Ae=k}var B=k;k=Ae;try{return K()}finally{k=B}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(K,Ae){switch(K){case 1:case 2:case 3:case 4:case 5:break;default:K=3}var B=k;k=K;try{return Ae()}finally{k=B}},e.unstable_scheduleCallback=function(K,Ae,B){var X=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?X+B:X):B=X,K){case 1:var pe=-1;break;case 2:pe=250;break;case 5:pe=1073741823;break;case 4:pe=1e4;break;default:pe=5e3}return pe=B+pe,K={id:x++,callback:Ae,priorityLevel:K,startTime:B,expirationTime:pe,sortIndex:-1},B>X?(K.sortIndex=B,t(g,K),n(h)===null&&K===n(g)&&(R?(O(G),G=-1):R=!0,xe(j,B-X))):(K.sortIndex=pe,t(h,K),T||b||(T=!0,Ee(V))),K},e.unstable_shouldYield=ce,e.unstable_wrapCallback=function(K){var Ae=k;return function(){var B=k;k=Ae;try{return K.apply(this,arguments)}finally{k=B}}}}(b9)),b9}var C9={};/**
|
|
78
|
-
* @license React
|
|
79
|
-
* scheduler.development.js
|
|
80
|
-
*
|
|
81
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
82
|
-
*
|
|
83
|
-
* This source code is licensed under the MIT license found in the
|
|
84
|
-
* LICENSE file in the root directory of this source tree.
|
|
85
|
-
*/var cw;function zD(){return cw||(cw=1,function(e){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var t=!1,n=5;function a(Me,Ye){var At=Me.length;Me.push(Ye),u(Me,Ye,At)}function i(Me){return Me.length===0?null:Me[0]}function l(Me){if(Me.length===0)return null;var Ye=Me[0],At=Me.pop();return At!==Ye&&(Me[0]=At,f(Me,At,0)),Ye}function u(Me,Ye,At){for(var xt=At;xt>0;){var Kt=xt-1>>>1,ln=Me[Kt];if(h(ln,Ye)>0)Me[Kt]=Ye,Me[xt]=ln,xt=Kt;else return}}function f(Me,Ye,At){for(var xt=At,Kt=Me.length,ln=Kt>>>1;xt<ln;){var Qt=(xt+1)*2-1,Qn=Me[Qt],dn=Qt+1,En=Me[dn];if(h(Qn,Ye)<0)dn<Kt&&h(En,Qn)<0?(Me[xt]=En,Me[dn]=Ye,xt=dn):(Me[xt]=Qn,Me[Qt]=Ye,xt=Qt);else if(dn<Kt&&h(En,Ye)<0)Me[xt]=En,Me[dn]=Ye,xt=dn;else return}}function h(Me,Ye){var At=Me.sortIndex-Ye.sortIndex;return At!==0?At:Me.id-Ye.id}var g=1,x=2,y=3,k=4,b=5;function T(Me,Ye){}var R=typeof performance=="object"&&typeof performance.now=="function";if(R){var N=performance;e.unstable_now=function(){return N.now()}}else{var O=Date,P=O.now();e.unstable_now=function(){return O.now()-P}}var z=1073741823,j=-1,V=250,H=5e3,W=1e4,G=z,ae=[],ye=[],ce=1,he=null,ue=y,Te=!1,ke=!1,Ee=!1,xe=typeof setTimeout=="function"?setTimeout:null,K=typeof clearTimeout=="function"?clearTimeout:null,Ae=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function B(Me){for(var Ye=i(ye);Ye!==null;){if(Ye.callback===null)l(ye);else if(Ye.startTime<=Me)l(ye),Ye.sortIndex=Ye.expirationTime,a(ae,Ye);else return;Ye=i(ye)}}function X(Me){if(Ee=!1,B(Me),!ke)if(i(ae)!==null)ke=!0,$n(pe);else{var Ye=i(ye);Ye!==null&&ve(X,Ye.startTime-Me)}}function pe(Me,Ye){ke=!1,Ee&&(Ee=!1,Ne()),Te=!0;var At=ue;try{var xt;if(!t)return Z(Me,Ye)}finally{he=null,ue=At,Te=!1}}function Z(Me,Ye){var At=Ye;for(B(At),he=i(ae);he!==null&&!(he.expirationTime>At&&(!Me||jn()));){var xt=he.callback;if(typeof xt=="function"){he.callback=null,ue=he.priorityLevel;var Kt=he.expirationTime<=At,ln=xt(Kt);At=e.unstable_now(),typeof ln=="function"?he.callback=ln:he===i(ae)&&l(ae),B(At)}else l(ae);he=i(ae)}if(he!==null)return!0;var Qt=i(ye);return Qt!==null&&ve(X,Qt.startTime-At),!1}function ze(Me,Ye){switch(Me){case g:case x:case y:case k:case b:break;default:Me=y}var At=ue;ue=Me;try{return Ye()}finally{ue=At}}function st(Me){var Ye;switch(ue){case g:case x:case y:Ye=y;break;default:Ye=ue;break}var At=ue;ue=Ye;try{return Me()}finally{ue=At}}function Ve(Me){var Ye=ue;return function(){var At=ue;ue=Ye;try{return Me.apply(this,arguments)}finally{ue=At}}}function _e(Me,Ye,At){var xt=e.unstable_now(),Kt;if(typeof At=="object"&&At!==null){var ln=At.delay;typeof ln=="number"&&ln>0?Kt=xt+ln:Kt=xt}else Kt=xt;var Qt;switch(Me){case g:Qt=j;break;case x:Qt=V;break;case b:Qt=G;break;case k:Qt=W;break;case y:default:Qt=H;break}var Qn=Kt+Qt,dn={id:ce++,callback:Ye,priorityLevel:Me,startTime:Kt,expirationTime:Qn,sortIndex:-1};return Kt>xt?(dn.sortIndex=Kt,a(ye,dn),i(ae)===null&&dn===i(ye)&&(Ee?Ne():Ee=!0,ve(X,Kt-xt))):(dn.sortIndex=Qn,a(ae,dn),!ke&&!Te&&(ke=!0,$n(pe))),dn}function Ze(){}function Ke(){!ke&&!Te&&(ke=!0,$n(pe))}function We(){return i(ae)}function et(Me){Me.callback=null}function Et(){return ue}var bt=!1,ct=null,yt=-1,Pt=n,St=-1;function jn(){var Me=e.unstable_now()-St;return!(Me<Pt)}function Bn(){}function He(Me){if(Me<0||Me>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}Me>0?Pt=Math.floor(1e3/Me):Pt=n}var Mt=function(){if(ct!==null){var Me=e.unstable_now();St=Me;var Ye=!0,At=!0;try{At=ct(Ye,Me)}finally{At?Pn():(bt=!1,ct=null)}}else bt=!1},Pn;if(typeof Ae=="function")Pn=function(){Ae(Mt)};else if(typeof MessageChannel!="undefined"){var Wt=new MessageChannel,hr=Wt.port2;Wt.port1.onmessage=Mt,Pn=function(){hr.postMessage(null)}}else Pn=function(){xe(Mt,0)};function $n(Me){ct=Me,bt||(bt=!0,Pn())}function ve(Me,Ye){yt=xe(function(){Me(e.unstable_now())},Ye)}function Ne(){K(yt),yt=-1}var dt=Bn,It=null;e.unstable_IdlePriority=b,e.unstable_ImmediatePriority=g,e.unstable_LowPriority=k,e.unstable_NormalPriority=y,e.unstable_Profiling=It,e.unstable_UserBlockingPriority=x,e.unstable_cancelCallback=et,e.unstable_continueExecution=Ke,e.unstable_forceFrameRate=He,e.unstable_getCurrentPriorityLevel=Et,e.unstable_getFirstCallbackNode=We,e.unstable_next=st,e.unstable_pauseExecution=Ze,e.unstable_requestPaint=dt,e.unstable_runWithPriority=ze,e.unstable_scheduleCallback=_e,e.unstable_shouldYield=jn,e.unstable_wrapCallback=Ve,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(C9)),C9}var dw;function fw(){return dw||(dw=1,process.env.NODE_ENV==="production"?R4.exports=FD():R4.exports=zD()),R4.exports}/**
|
|
86
|
-
* @license React
|
|
87
|
-
* react-dom.production.min.js
|
|
88
|
-
*
|
|
89
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
90
|
-
*
|
|
91
|
-
* This source code is licensed under the MIT license found in the
|
|
92
|
-
* LICENSE file in the root directory of this source tree.
|
|
93
|
-
*/var pw;function HD(){if(pw)return zo;pw=1;var e=L,t=fw();function n(s){for(var c="https://reactjs.org/docs/error-decoder.html?invariant="+s,m=1;m<arguments.length;m++)c+="&args[]="+encodeURIComponent(arguments[m]);return"Minified React error #"+s+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,i={};function l(s,c){u(s,c),u(s+"Capture",c)}function u(s,c){for(i[s]=c,s=0;s<c.length;s++)a.add(c[s])}var f=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),h=Object.prototype.hasOwnProperty,g=/^[: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]*$/,x={},y={};function k(s){return h.call(y,s)?!0:h.call(x,s)?!1:g.test(s)?y[s]=!0:(x[s]=!0,!1)}function b(s,c,m,w){if(m!==null&&m.type===0)return!1;switch(typeof c){case"function":case"symbol":return!0;case"boolean":return w?!1:m!==null?!m.acceptsBooleans:(s=s.toLowerCase().slice(0,5),s!=="data-"&&s!=="aria-");default:return!1}}function T(s,c,m,w){if(c===null||typeof c=="undefined"||b(s,c,m,w))return!0;if(w)return!1;if(m!==null)switch(m.type){case 3:return!c;case 4:return c===!1;case 5:return isNaN(c);case 6:return isNaN(c)||1>c}return!1}function R(s,c,m,w,E,M,F){this.acceptsBooleans=c===2||c===3||c===4,this.attributeName=w,this.attributeNamespace=E,this.mustUseProperty=m,this.propertyName=s,this.type=c,this.sanitizeURL=M,this.removeEmptyString=F}var N={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(s){N[s]=new R(s,0,!1,s,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(s){var c=s[0];N[c]=new R(c,1,!1,s[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(s){N[s]=new R(s,2,!1,s.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(s){N[s]=new R(s,2,!1,s,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(s){N[s]=new R(s,3,!1,s.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(s){N[s]=new R(s,3,!0,s,null,!1,!1)}),["capture","download"].forEach(function(s){N[s]=new R(s,4,!1,s,null,!1,!1)}),["cols","rows","size","span"].forEach(function(s){N[s]=new R(s,6,!1,s,null,!1,!1)}),["rowSpan","start"].forEach(function(s){N[s]=new R(s,5,!1,s.toLowerCase(),null,!1,!1)});var O=/[\-:]([a-z])/g;function P(s){return s[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(s){var c=s.replace(O,P);N[c]=new R(c,1,!1,s,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(s){var c=s.replace(O,P);N[c]=new R(c,1,!1,s,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(s){var c=s.replace(O,P);N[c]=new R(c,1,!1,s,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(s){N[s]=new R(s,1,!1,s.toLowerCase(),null,!1,!1)}),N.xlinkHref=new R("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(s){N[s]=new R(s,1,!1,s.toLowerCase(),null,!0,!0)});function z(s,c,m,w){var E=N.hasOwnProperty(c)?N[c]:null;(E!==null?E.type!==0:w||!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(T(c,m,E,w)&&(m=null),w||E===null?k(c)&&(m===null?s.removeAttribute(c):s.setAttribute(c,""+m)):E.mustUseProperty?s[E.propertyName]=m===null?E.type===3?!1:"":m:(c=E.attributeName,w=E.attributeNamespace,m===null?s.removeAttribute(c):(E=E.type,m=E===3||E===4&&m===!0?"":""+m,w?s.setAttributeNS(w,c,m):s.setAttribute(c,m))))}var j=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,V=Symbol.for("react.element"),H=Symbol.for("react.portal"),W=Symbol.for("react.fragment"),G=Symbol.for("react.strict_mode"),ae=Symbol.for("react.profiler"),ye=Symbol.for("react.provider"),ce=Symbol.for("react.context"),he=Symbol.for("react.forward_ref"),ue=Symbol.for("react.suspense"),Te=Symbol.for("react.suspense_list"),ke=Symbol.for("react.memo"),Ee=Symbol.for("react.lazy"),xe=Symbol.for("react.offscreen"),K=Symbol.iterator;function Ae(s){return s===null||typeof s!="object"?null:(s=K&&s[K]||s["@@iterator"],typeof s=="function"?s:null)}var B=Object.assign,X;function pe(s){if(X===void 0)try{throw Error()}catch(m){var c=m.stack.trim().match(/\n( *(at )?)/);X=c&&c[1]||""}return`
|
|
94
|
-
`+X+s}var Z=!1;function ze(s,c){if(!s||Z)return"";Z=!0;var m=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(c)if(c=function(){throw Error()},Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(c,[])}catch(me){var w=me}Reflect.construct(s,[],c)}else{try{c.call()}catch(me){w=me}s.call(c.prototype)}else{try{throw Error()}catch(me){w=me}s()}}catch(me){if(me&&w&&typeof me.stack=="string"){for(var E=me.stack.split(`
|
|
95
|
-
`),M=w.stack.split(`
|
|
96
|
-
`),F=E.length-1,q=M.length-1;1<=F&&0<=q&&E[F]!==M[q];)q--;for(;1<=F&&0<=q;F--,q--)if(E[F]!==M[q]){if(F!==1||q!==1)do if(F--,q--,0>q||E[F]!==M[q]){var Q=`
|
|
97
|
-
`+E[F].replace(" at new "," at ");return s.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",s.displayName)),Q}while(1<=F&&0<=q);break}}}finally{Z=!1,Error.prepareStackTrace=m}return(s=s?s.displayName||s.name:"")?pe(s):""}function st(s){switch(s.tag){case 5:return pe(s.type);case 16:return pe("Lazy");case 13:return pe("Suspense");case 19:return pe("SuspenseList");case 0:case 2:case 15:return s=ze(s.type,!1),s;case 11:return s=ze(s.type.render,!1),s;case 1:return s=ze(s.type,!0),s;default:return""}}function Ve(s){if(s==null)return null;if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case W:return"Fragment";case H:return"Portal";case ae:return"Profiler";case G:return"StrictMode";case ue:return"Suspense";case Te:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case ce:return(s.displayName||"Context")+".Consumer";case ye:return(s._context.displayName||"Context")+".Provider";case he:var c=s.render;return s=s.displayName,s||(s=c.displayName||c.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case ke:return c=s.displayName||null,c!==null?c:Ve(s.type)||"Memo";case Ee:c=s._payload,s=s._init;try{return Ve(s(c))}catch(m){}}return null}function _e(s){var c=s.type;switch(s.tag){case 24:return"Cache";case 9:return(c.displayName||"Context")+".Consumer";case 10:return(c._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return s=c.render,s=s.displayName||s.name||"",c.displayName||(s!==""?"ForwardRef("+s+")":"ForwardRef");case 7:return"Fragment";case 5:return c;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ve(c);case 8:return c===G?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c}return null}function Ze(s){switch(typeof s){case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function Ke(s){var c=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function We(s){var c=Ke(s)?"checked":"value",m=Object.getOwnPropertyDescriptor(s.constructor.prototype,c),w=""+s[c];if(!s.hasOwnProperty(c)&&typeof m!="undefined"&&typeof m.get=="function"&&typeof m.set=="function"){var E=m.get,M=m.set;return Object.defineProperty(s,c,{configurable:!0,get:function(){return E.call(this)},set:function(F){w=""+F,M.call(this,F)}}),Object.defineProperty(s,c,{enumerable:m.enumerable}),{getValue:function(){return w},setValue:function(F){w=""+F},stopTracking:function(){s._valueTracker=null,delete s[c]}}}}function et(s){s._valueTracker||(s._valueTracker=We(s))}function Et(s){if(!s)return!1;var c=s._valueTracker;if(!c)return!0;var m=c.getValue(),w="";return s&&(w=Ke(s)?s.checked?"true":"false":s.value),s=w,s!==m?(c.setValue(s),!0):!1}function bt(s){if(s=s||(typeof document!="undefined"?document:void 0),typeof s=="undefined")return null;try{return s.activeElement||s.body}catch(c){return s.body}}function ct(s,c){var m=c.checked;return B({},c,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:m!=null?m:s._wrapperState.initialChecked})}function yt(s,c){var m=c.defaultValue==null?"":c.defaultValue,w=c.checked!=null?c.checked:c.defaultChecked;m=Ze(c.value!=null?c.value:m),s._wrapperState={initialChecked:w,initialValue:m,controlled:c.type==="checkbox"||c.type==="radio"?c.checked!=null:c.value!=null}}function Pt(s,c){c=c.checked,c!=null&&z(s,"checked",c,!1)}function St(s,c){Pt(s,c);var m=Ze(c.value),w=c.type;if(m!=null)w==="number"?(m===0&&s.value===""||s.value!=m)&&(s.value=""+m):s.value!==""+m&&(s.value=""+m);else if(w==="submit"||w==="reset"){s.removeAttribute("value");return}c.hasOwnProperty("value")?Bn(s,c.type,m):c.hasOwnProperty("defaultValue")&&Bn(s,c.type,Ze(c.defaultValue)),c.checked==null&&c.defaultChecked!=null&&(s.defaultChecked=!!c.defaultChecked)}function jn(s,c,m){if(c.hasOwnProperty("value")||c.hasOwnProperty("defaultValue")){var w=c.type;if(!(w!=="submit"&&w!=="reset"||c.value!==void 0&&c.value!==null))return;c=""+s._wrapperState.initialValue,m||c===s.value||(s.value=c),s.defaultValue=c}m=s.name,m!==""&&(s.name=""),s.defaultChecked=!!s._wrapperState.initialChecked,m!==""&&(s.name=m)}function Bn(s,c,m){(c!=="number"||bt(s.ownerDocument)!==s)&&(m==null?s.defaultValue=""+s._wrapperState.initialValue:s.defaultValue!==""+m&&(s.defaultValue=""+m))}var He=Array.isArray;function Mt(s,c,m,w){if(s=s.options,c){c={};for(var E=0;E<m.length;E++)c["$"+m[E]]=!0;for(m=0;m<s.length;m++)E=c.hasOwnProperty("$"+s[m].value),s[m].selected!==E&&(s[m].selected=E),E&&w&&(s[m].defaultSelected=!0)}else{for(m=""+Ze(m),c=null,E=0;E<s.length;E++){if(s[E].value===m){s[E].selected=!0,w&&(s[E].defaultSelected=!0);return}c!==null||s[E].disabled||(c=s[E])}c!==null&&(c.selected=!0)}}function Pn(s,c){if(c.dangerouslySetInnerHTML!=null)throw Error(n(91));return B({},c,{value:void 0,defaultValue:void 0,children:""+s._wrapperState.initialValue})}function Wt(s,c){var m=c.value;if(m==null){if(m=c.children,c=c.defaultValue,m!=null){if(c!=null)throw Error(n(92));if(He(m)){if(1<m.length)throw Error(n(93));m=m[0]}c=m}c==null&&(c=""),m=c}s._wrapperState={initialValue:Ze(m)}}function hr(s,c){var m=Ze(c.value),w=Ze(c.defaultValue);m!=null&&(m=""+m,m!==s.value&&(s.value=m),c.defaultValue==null&&s.defaultValue!==m&&(s.defaultValue=m)),w!=null&&(s.defaultValue=""+w)}function $n(s){var c=s.textContent;c===s._wrapperState.initialValue&&c!==""&&c!==null&&(s.value=c)}function ve(s){switch(s){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ne(s,c){return s==null||s==="http://www.w3.org/1999/xhtml"?ve(c):s==="http://www.w3.org/2000/svg"&&c==="foreignObject"?"http://www.w3.org/1999/xhtml":s}var dt,It=function(s){return typeof MSApp!="undefined"&&MSApp.execUnsafeLocalFunction?function(c,m,w,E){MSApp.execUnsafeLocalFunction(function(){return s(c,m,w,E)})}:s}(function(s,c){if(s.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in s)s.innerHTML=c;else{for(dt=dt||document.createElement("div"),dt.innerHTML="<svg>"+c.valueOf().toString()+"</svg>",c=dt.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;c.firstChild;)s.appendChild(c.firstChild)}});function Me(s,c){if(c){var m=s.firstChild;if(m&&m===s.lastChild&&m.nodeType===3){m.nodeValue=c;return}}s.textContent=c}var Ye={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},At=["Webkit","ms","Moz","O"];Object.keys(Ye).forEach(function(s){At.forEach(function(c){c=c+s.charAt(0).toUpperCase()+s.substring(1),Ye[c]=Ye[s]})});function xt(s,c,m){return c==null||typeof c=="boolean"||c===""?"":m||typeof c!="number"||c===0||Ye.hasOwnProperty(s)&&Ye[s]?(""+c).trim():c+"px"}function Kt(s,c){s=s.style;for(var m in c)if(c.hasOwnProperty(m)){var w=m.indexOf("--")===0,E=xt(m,c[m],w);m==="float"&&(m="cssFloat"),w?s.setProperty(m,E):s[m]=E}}var ln=B({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Qt(s,c){if(c){if(ln[s]&&(c.children!=null||c.dangerouslySetInnerHTML!=null))throw Error(n(137,s));if(c.dangerouslySetInnerHTML!=null){if(c.children!=null)throw Error(n(60));if(typeof c.dangerouslySetInnerHTML!="object"||!("__html"in c.dangerouslySetInnerHTML))throw Error(n(61))}if(c.style!=null&&typeof c.style!="object")throw Error(n(62))}}function Qn(s,c){if(s.indexOf("-")===-1)return typeof c.is=="string";switch(s){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 dn=null;function En(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var Rn=null,da=null,Fr=null;function Jr(s){if(s=Tt(s)){if(typeof Rn!="function")throw Error(n(280));var c=s.stateNode;c&&(c=wr(c),Rn(s.stateNode,s.type,c))}}function Rr(s){da?Fr?Fr.push(s):Fr=[s]:da=s}function vi(){if(da){var s=da,c=Fr;if(Fr=da=null,Jr(s),c)for(s=0;s<c.length;s++)Jr(c[s])}}function Hi(s,c){return s(c)}function Xr(){}var yi=!1;function _t(s,c,m){if(yi)return s(c,m);yi=!0;try{return Hi(s,c,m)}finally{yi=!1,(da!==null||Fr!==null)&&(Xr(),vi())}}function _n(s,c){var m=s.stateNode;if(m===null)return null;var w=wr(m);if(w===null)return null;m=w[c];e:switch(c){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(w=!w.disabled)||(s=s.type,w=!(s==="button"||s==="input"||s==="select"||s==="textarea")),s=!w;break e;default:s=!1}if(s)return null;if(m&&typeof m!="function")throw Error(n(231,c,typeof m));return m}var Mr=!1;if(f)try{var yr={};Object.defineProperty(yr,"passive",{get:function(){Mr=!0}}),window.addEventListener("test",yr,yr),window.removeEventListener("test",yr,yr)}catch(s){Mr=!1}function Oa(s,c,m,w,E,M,F,q,Q){var me=Array.prototype.slice.call(arguments,3);try{c.apply(m,me)}catch(De){this.onError(De)}}var Ar=!1,ko=null,tr=!1,J=null,Le={onError:function(s){Ar=!0,ko=s}};function Qe(s,c,m,w,E,M,F,q,Q){Ar=!1,ko=null,Oa.apply(Le,arguments)}function ut(s,c,m,w,E,M,F,q,Q){if(Qe.apply(this,arguments),Ar){if(Ar){var me=ko;Ar=!1,ko=null}else throw Error(n(198));tr||(tr=!0,J=me)}}function Gt(s){var c=s,m=s;if(s.alternate)for(;c.return;)c=c.return;else{s=c;do c=s,c.flags&4098&&(m=c.return),s=c.return;while(s)}return c.tag===3?m:null}function Bt(s){if(s.tag===13){var c=s.memoizedState;if(c===null&&(s=s.alternate,s!==null&&(c=s.memoizedState)),c!==null)return c.dehydrated}return null}function un(s){if(Gt(s)!==s)throw Error(n(188))}function an(s){var c=s.alternate;if(!c){if(c=Gt(s),c===null)throw Error(n(188));return c!==s?null:s}for(var m=s,w=c;;){var E=m.return;if(E===null)break;var M=E.alternate;if(M===null){if(w=E.return,w!==null){m=w;continue}break}if(E.child===M.child){for(M=E.child;M;){if(M===m)return un(E),s;if(M===w)return un(E),c;M=M.sibling}throw Error(n(188))}if(m.return!==w.return)m=E,w=M;else{for(var F=!1,q=E.child;q;){if(q===m){F=!0,m=E,w=M;break}if(q===w){F=!0,w=E,m=M;break}q=q.sibling}if(!F){for(q=M.child;q;){if(q===m){F=!0,m=M,w=E;break}if(q===w){F=!0,w=M,m=E;break}q=q.sibling}if(!F)throw Error(n(189))}}if(m.alternate!==w)throw Error(n(190))}if(m.tag!==3)throw Error(n(188));return m.stateNode.current===m?s:c}function Nr(s){return s=an(s),s!==null?nr(s):null}function nr(s){if(s.tag===5||s.tag===6)return s;for(s=s.child;s!==null;){var c=nr(s);if(c!==null)return c;s=s.sibling}return null}var ir=t.unstable_scheduleCallback,fa=t.unstable_cancelCallback,xi=t.unstable_shouldYield,wi=t.unstable_requestPaint,Yt=t.unstable_now,en=t.unstable_getCurrentPriorityLevel,bi=t.unstable_ImmediatePriority,tu=t.unstable_UserBlockingPriority,nu=t.unstable_NormalPriority,il=t.unstable_LowPriority,fc=t.unstable_IdlePriority,sl=null,eo=null;function Od(s){if(eo&&typeof eo.onCommitFiberRoot=="function")try{eo.onCommitFiberRoot(sl,s,void 0,(s.current.flags&128)===128)}catch(c){}}var Ia=Math.clz32?Math.clz32:pc,z1=Math.log,H1=Math.LN2;function pc(s){return s>>>=0,s===0?32:31-(z1(s)/H1|0)|0}var ll=64,Eo=4194304;function Ci(s){switch(s&-s){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: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 s&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return s&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return s}}function Si(s,c){var m=s.pendingLanes;if(m===0)return 0;var w=0,E=s.suspendedLanes,M=s.pingedLanes,F=m&268435455;if(F!==0){var q=F&~E;q!==0?w=Ci(q):(M&=F,M!==0&&(w=Ci(M)))}else F=m&~E,F!==0?w=Ci(F):M!==0&&(w=Ci(M));if(w===0)return 0;if(c!==0&&c!==w&&!(c&E)&&(E=w&-w,M=c&-c,E>=M||E===16&&(M&4194240)!==0))return c;if(w&4&&(w|=m&16),c=s.entangledLanes,c!==0)for(s=s.entanglements,c&=w;0<c;)m=31-Ia(c),E=1<<m,w|=s[m],c&=~E;return w}function hc(s,c){switch(s){case 1:case 2:case 4:return c+250;case 8:case 16:case 32:case 64: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 c+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ru(s,c){for(var m=s.suspendedLanes,w=s.pingedLanes,E=s.expirationTimes,M=s.pendingLanes;0<M;){var F=31-Ia(M),q=1<<F,Q=E[F];Q===-1?(!(q&m)||q&w)&&(E[F]=hc(q,c)):Q<=c&&(s.expiredLanes|=q),M&=~q}}function ul(s){return s=s.pendingLanes&-1073741825,s!==0?s:s&1073741824?1073741824:0}function mc(){var s=ll;return ll<<=1,!(ll&4194240)&&(ll=64),s}function gc(s){for(var c=[],m=0;31>m;m++)c.push(s);return c}function bs(s,c,m){s.pendingLanes|=c,c!==536870912&&(s.suspendedLanes=0,s.pingedLanes=0),s=s.eventTimes,c=31-Ia(c),s[c]=m}function Cm(s,c){var m=s.pendingLanes&~c;s.pendingLanes=c,s.suspendedLanes=0,s.pingedLanes=0,s.expiredLanes&=c,s.mutableReadLanes&=c,s.entangledLanes&=c,c=s.entanglements;var w=s.eventTimes;for(s=s.expirationTimes;0<m;){var E=31-Ia(m),M=1<<E;c[E]=0,w[E]=-1,s[E]=-1,m&=~M}}function Cs(s,c){var m=s.entangledLanes|=c;for(s=s.entanglements;m;){var w=31-Ia(m),E=1<<w;E&c|s[w]&c&&(s[w]|=c),m&=~E}}var Mn=0;function vc(s){return s&=-s,1<s?4<s?s&268435455?16:536870912:4:1}var Cn,Id,Ui,Ut,yc,pa=!1,Bi=[],Da=null,Vi=null,sr=null,Zn=new Map,cl=new Map,Kr=[],ja="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 submit".split(" ");function Wo(s,c){switch(s){case"focusin":case"focusout":Da=null;break;case"dragenter":case"dragleave":Vi=null;break;case"mouseover":case"mouseout":sr=null;break;case"pointerover":case"pointerout":Zn.delete(c.pointerId);break;case"gotpointercapture":case"lostpointercapture":cl.delete(c.pointerId)}}function au(s,c,m,w,E,M){return s===null||s.nativeEvent!==M?(s={blockedOn:c,domEventName:m,eventSystemFlags:w,nativeEvent:M,targetContainers:[E]},c!==null&&(c=Tt(c),c!==null&&Id(c)),s):(s.eventSystemFlags|=w,c=s.targetContainers,E!==null&&c.indexOf(E)===-1&&c.push(E),s)}function Dd(s,c,m,w,E){switch(c){case"focusin":return Da=au(Da,s,c,m,w,E),!0;case"dragenter":return Vi=au(Vi,s,c,m,w,E),!0;case"mouseover":return sr=au(sr,s,c,m,w,E),!0;case"pointerover":var M=E.pointerId;return Zn.set(M,au(Zn.get(M)||null,s,c,m,w,E)),!0;case"gotpointercapture":return M=E.pointerId,cl.set(M,au(cl.get(M)||null,s,c,m,w,E)),!0}return!1}function jd(s){var c=pu(s.target);if(c!==null){var m=Gt(c);if(m!==null){if(c=m.tag,c===13){if(c=Bt(m),c!==null){s.blockedOn=c,yc(s.priority,function(){Ui(m)});return}}else if(c===3&&m.stateNode.current.memoizedState.isDehydrated){s.blockedOn=m.tag===3?m.stateNode.containerInfo:null;return}}}s.blockedOn=null}function dl(s){if(s.blockedOn!==null)return!1;for(var c=s.targetContainers;0<c.length;){var m=bc(s.domEventName,s.eventSystemFlags,c[0],s.nativeEvent);if(m===null){m=s.nativeEvent;var w=new m.constructor(m.type,m);dn=w,m.target.dispatchEvent(w),dn=null}else return c=Tt(m),c!==null&&Id(c),s.blockedOn=m,!1;c.shift()}return!0}function ou(s,c,m){dl(s)&&m.delete(c)}function Sm(){pa=!1,Da!==null&&dl(Da)&&(Da=null),Vi!==null&&dl(Vi)&&(Vi=null),sr!==null&&dl(sr)&&(sr=null),Zn.forEach(ou),cl.forEach(ou)}function qo(s,c){s.blockedOn===c&&(s.blockedOn=null,pa||(pa=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Sm)))}function ki(s){function c(E){return qo(E,s)}if(0<Bi.length){qo(Bi[0],s);for(var m=1;m<Bi.length;m++){var w=Bi[m];w.blockedOn===s&&(w.blockedOn=null)}}for(Da!==null&&qo(Da,s),Vi!==null&&qo(Vi,s),sr!==null&&qo(sr,s),Zn.forEach(c),cl.forEach(c),m=0;m<Kr.length;m++)w=Kr[m],w.blockedOn===s&&(w.blockedOn=null);for(;0<Kr.length&&(m=Kr[0],m.blockedOn===null);)jd(m),m.blockedOn===null&&Kr.shift()}var $i=j.ReactCurrentBatchConfig,Go=!0;function xc(s,c,m,w){var E=Mn,M=$i.transition;$i.transition=null;try{Mn=1,fl(s,c,m,w)}finally{Mn=E,$i.transition=M}}function wc(s,c,m,w){var E=Mn,M=$i.transition;$i.transition=null;try{Mn=4,fl(s,c,m,w)}finally{Mn=E,$i.transition=M}}function fl(s,c,m,w){if(Go){var E=bc(s,c,m,w);if(E===null)K1(s,c,w,iu,m),Wo(s,w);else if(Dd(E,s,c,m,w))w.stopPropagation();else if(Wo(s,w),c&4&&-1<ja.indexOf(s)){for(;E!==null;){var M=Tt(E);if(M!==null&&Cn(M),M=bc(s,c,m,w),M===null&&K1(s,c,w,iu,m),M===E)break;E=M}E!==null&&w.stopPropagation()}else K1(s,c,w,null,m)}}var iu=null;function bc(s,c,m,w){if(iu=null,s=En(w),s=pu(s),s!==null)if(c=Gt(s),c===null)s=null;else if(m=c.tag,m===13){if(s=Bt(c),s!==null)return s;s=null}else if(m===3){if(c.stateNode.current.memoizedState.isDehydrated)return c.tag===3?c.stateNode.containerInfo:null;s=null}else c!==s&&(s=null);return iu=s,null}function Cc(s){switch(s){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(en()){case bi:return 1;case tu:return 4;case nu:case il:return 16;case fc:return 536870912;default:return 16}default:return 16}}var Ei=null,D=null,Y=null;function fe(){if(Y)return Y;var s,c=D,m=c.length,w,E="value"in Ei?Ei.value:Ei.textContent,M=E.length;for(s=0;s<m&&c[s]===E[s];s++);var F=m-s;for(w=1;w<=F&&c[m-w]===E[M-w];w++);return Y=E.slice(s,1<w?1-w:void 0)}function we(s){var c=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&c===13&&(s=13)):s=c,s===10&&(s=13),32<=s||s===13?s:0}function Ue(){return!0}function Nt(){return!1}function Xe(s){function c(m,w,E,M,F){this._reactName=m,this._targetInst=E,this.type=w,this.nativeEvent=M,this.target=F,this.currentTarget=null;for(var q in s)s.hasOwnProperty(q)&&(m=s[q],this[q]=m?m(M):M[q]);return this.isDefaultPrevented=(M.defaultPrevented!=null?M.defaultPrevented:M.returnValue===!1)?Ue:Nt,this.isPropagationStopped=Nt,this}return B(c.prototype,{preventDefault:function(){this.defaultPrevented=!0;var m=this.nativeEvent;m&&(m.preventDefault?m.preventDefault():typeof m.returnValue!="unknown"&&(m.returnValue=!1),this.isDefaultPrevented=Ue)},stopPropagation:function(){var m=this.nativeEvent;m&&(m.stopPropagation?m.stopPropagation():typeof m.cancelBubble!="unknown"&&(m.cancelBubble=!0),this.isPropagationStopped=Ue)},persist:function(){},isPersistent:Ue}),c}var Dt={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=Xe(Dt),Sn=B({},Dt,{view:0,detail:0}),rr=Xe(Sn),Wn,rn,qn,xr=B({},Sn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rm,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return"movementX"in s?s.movementX:(s!==qn&&(qn&&s.type==="mousemove"?(Wn=s.screenX-qn.screenX,rn=s.screenY-qn.screenY):rn=Wn=0,qn=s),Wn)},movementY:function(s){return"movementY"in s?s.movementY:rn}}),pl=Xe(xr),Pd=B({},xr,{dataTransfer:0}),Ss=Xe(Pd),Fd=B({},Sn,{relatedTarget:0}),su=Xe(Fd),km=B({},Dt,{animationName:0,elapsedTime:0,pseudoElement:0}),U1=Xe(km),Em=B({},Dt,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),_g=Xe(Em),_m=B({},Dt,{data:0}),Tm=Xe(_m),Tg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Rg={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"},H6={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ks(s){var c=this.nativeEvent;return c.getModifierState?c.getModifierState(s):(s=H6[s])?!!c[s]:!1}function Rm(){return ks}var Mm=B({},Sn,{key:function(s){if(s.key){var c=Tg[s.key]||s.key;if(c!=="Unidentified")return c}return s.type==="keypress"?(s=we(s),s===13?"Enter":String.fromCharCode(s)):s.type==="keydown"||s.type==="keyup"?Rg[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rm,charCode:function(s){return s.type==="keypress"?we(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?we(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),Am=Xe(Mm),Nm=B({},xr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Mg=Xe(Nm),B1=B({},Sn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rm}),Ag=Xe(B1),to=B({},Dt,{propertyName:0,elapsedTime:0,pseudoElement:0}),Es=Xe(to),zr=B({},xr,{deltaX:function(s){return"deltaX"in s?s.deltaX:"wheelDeltaX"in s?-s.wheelDeltaX:0},deltaY:function(s){return"deltaY"in s?s.deltaY:"wheelDeltaY"in s?-s.wheelDeltaY:"wheelDelta"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),_s=Xe(zr),Lm=[9,13,27,32],Sc=f&&"CompositionEvent"in window,zd=null;f&&"documentMode"in document&&(zd=document.documentMode);var Hd=f&&"TextEvent"in window&&!zd,Ng=f&&(!Sc||zd&&8<zd&&11>=zd),Lg=" ",V1=!1;function Og(s,c){switch(s){case"keyup":return Lm.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ig(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var kc=!1;function Dg(s,c){switch(s){case"compositionend":return Ig(c);case"keypress":return c.which!==32?null:(V1=!0,Lg);case"textInput":return s=c.data,s===Lg&&V1?null:s;default:return null}}function U6(s,c){if(kc)return s==="compositionend"||!Sc&&Og(s,c)?(s=fe(),Y=D=Ei=null,kc=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1<c.char.length)return c.char;if(c.which)return String.fromCharCode(c.which)}return null;case"compositionend":return Ng&&c.locale!=="ko"?null:c.data;default:return null}}var B6={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 jg(s){var c=s&&s.nodeName&&s.nodeName.toLowerCase();return c==="input"?!!B6[s.type]:c==="textarea"}function Om(s,c,m,w){Rr(w),c=Wd(c,"onChange"),0<c.length&&(m=new cn("onChange","change",null,m,w),s.push({event:m,listeners:c}))}var Zi=null,lu=null;function Pg(s){du(s,0)}function Ud(s){var c=Ti(s);if(Et(c))return s}function V6(s,c){if(s==="change")return c}var Fg=!1;if(f){var Im;if(f){var Dm="oninput"in document;if(!Dm){var zg=document.createElement("div");zg.setAttribute("oninput","return;"),Dm=typeof zg.oninput=="function"}Im=Dm}else Im=!1;Fg=Im&&(!document.documentMode||9<document.documentMode)}function Hg(){Zi&&(Zi.detachEvent("onpropertychange",Ug),lu=Zi=null)}function Ug(s){if(s.propertyName==="value"&&Ud(lu)){var c=[];Om(c,lu,s,En(s)),_t(Pg,c)}}function $6(s,c,m){s==="focusin"?(Hg(),Zi=c,lu=m,Zi.attachEvent("onpropertychange",Ug)):s==="focusout"&&Hg()}function Bg(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return Ud(lu)}function Z6(s,c){if(s==="click")return Ud(c)}function Vg(s,c){if(s==="input"||s==="change")return Ud(c)}function W6(s,c){return s===c&&(s!==0||1/s===1/c)||s!==s&&c!==c}var _i=typeof Object.is=="function"?Object.is:W6;function Bd(s,c){if(_i(s,c))return!0;if(typeof s!="object"||s===null||typeof c!="object"||c===null)return!1;var m=Object.keys(s),w=Object.keys(c);if(m.length!==w.length)return!1;for(w=0;w<m.length;w++){var E=m[w];if(!h.call(c,E)||!_i(s[E],c[E]))return!1}return!0}function $g(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function $1(s,c){var m=$g(s);s=0;for(var w;m;){if(m.nodeType===3){if(w=s+m.textContent.length,s<=c&&w>=c)return{node:m,offset:c-s};s=w}e:{for(;m;){if(m.nextSibling){m=m.nextSibling;break e}m=m.parentNode}m=void 0}m=$g(m)}}function hl(s,c){return s&&c?s===c?!0:s&&s.nodeType===3?!1:c&&c.nodeType===3?hl(s,c.parentNode):"contains"in s?s.contains(c):s.compareDocumentPosition?!!(s.compareDocumentPosition(c)&16):!1:!1}function Vd(){for(var s=window,c=bt();c instanceof s.HTMLIFrameElement;){try{var m=typeof c.contentWindow.location.href=="string"}catch(w){m=!1}if(m)s=c.contentWindow;else break;c=bt(s.document)}return c}function Z1(s){var c=s&&s.nodeName&&s.nodeName.toLowerCase();return c&&(c==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||c==="textarea"||s.contentEditable==="true")}function Ec(s){var c=Vd(),m=s.focusedElem,w=s.selectionRange;if(c!==m&&m&&m.ownerDocument&&hl(m.ownerDocument.documentElement,m)){if(w!==null&&Z1(m)){if(c=w.start,s=w.end,s===void 0&&(s=c),"selectionStart"in m)m.selectionStart=c,m.selectionEnd=Math.min(s,m.value.length);else if(s=(c=m.ownerDocument||document)&&c.defaultView||window,s.getSelection){s=s.getSelection();var E=m.textContent.length,M=Math.min(w.start,E);w=w.end===void 0?M:Math.min(w.end,E),!s.extend&&M>w&&(E=w,w=M,M=E),E=$1(m,M);var F=$1(m,w);E&&F&&(s.rangeCount!==1||s.anchorNode!==E.node||s.anchorOffset!==E.offset||s.focusNode!==F.node||s.focusOffset!==F.offset)&&(c=c.createRange(),c.setStart(E.node,E.offset),s.removeAllRanges(),M>w?(s.addRange(c),s.extend(F.node,F.offset)):(c.setEnd(F.node,F.offset),s.addRange(c)))}}for(c=[],s=m;s=s.parentNode;)s.nodeType===1&&c.push({element:s,left:s.scrollLeft,top:s.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<c.length;m++)s=c[m],s.element.scrollLeft=s.left,s.element.scrollTop=s.top}}var q6=f&&"documentMode"in document&&11>=document.documentMode,_c=null,jm=null,$d=null,Pm=!1;function Fm(s,c,m){var w=m.window===m?m.document:m.nodeType===9?m:m.ownerDocument;Pm||_c==null||_c!==bt(w)||(w=_c,"selectionStart"in w&&Z1(w)?w={start:w.selectionStart,end:w.selectionEnd}:(w=(w.ownerDocument&&w.ownerDocument.defaultView||window).getSelection(),w={anchorNode:w.anchorNode,anchorOffset:w.anchorOffset,focusNode:w.focusNode,focusOffset:w.focusOffset}),$d&&Bd($d,w)||($d=w,w=Wd(jm,"onSelect"),0<w.length&&(c=new cn("onSelect","select",null,c,m),s.push({event:c,listeners:w}),c.target=_c)))}function W1(s,c){var m={};return m[s.toLowerCase()]=c.toLowerCase(),m["Webkit"+s]="webkit"+c,m["Moz"+s]="moz"+c,m}var uu={animationend:W1("Animation","AnimationEnd"),animationiteration:W1("Animation","AnimationIteration"),animationstart:W1("Animation","AnimationStart"),transitionend:W1("Transition","TransitionEnd")},ha={},zm={};f&&(zm=document.createElement("div").style,"AnimationEvent"in window||(delete uu.animationend.animation,delete uu.animationiteration.animation,delete uu.animationstart.animation),"TransitionEvent"in window||delete uu.transitionend.transition);function q1(s){if(ha[s])return ha[s];if(!uu[s])return s;var c=uu[s],m;for(m in c)if(c.hasOwnProperty(m)&&m in zm)return ha[s]=c[m];return s}var Zg=q1("animationend"),Wg=q1("animationiteration"),qg=q1("animationstart"),Gg=q1("transitionend"),Hm=new Map,G1="abort auxClick 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(" ");function Yo(s,c){Hm.set(s,c),l(c,[s])}for(var Um=0;Um<G1.length;Um++){var cu=G1[Um],G6=cu.toLowerCase(),Y6=cu[0].toUpperCase()+cu.slice(1);Yo(G6,"on"+Y6)}Yo(Zg,"onAnimationEnd"),Yo(Wg,"onAnimationIteration"),Yo(qg,"onAnimationStart"),Yo("dblclick","onDoubleClick"),Yo("focusin","onFocus"),Yo("focusout","onBlur"),Yo(Gg,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Zd="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(" "),Bm=new Set("cancel close invalid load scroll toggle".split(" ").concat(Zd));function Y1(s,c,m){var w=s.type||"unknown-event";s.currentTarget=m,ut(w,c,void 0,s),s.currentTarget=null}function du(s,c){c=(c&4)!==0;for(var m=0;m<s.length;m++){var w=s[m],E=w.event;w=w.listeners;e:{var M=void 0;if(c)for(var F=w.length-1;0<=F;F--){var q=w[F],Q=q.instance,me=q.currentTarget;if(q=q.listener,Q!==M&&E.isPropagationStopped())break e;Y1(E,q,me),M=Q}else for(F=0;F<w.length;F++){if(q=w[F],Q=q.instance,me=q.currentTarget,q=q.listener,Q!==M&&E.isPropagationStopped())break e;Y1(E,q,me),M=Q}}}if(tr)throw s=J,tr=!1,J=null,s}function Fn(s,c){var m=c[Yd];m===void 0&&(m=c[Yd]=new Set);var w=s+"__bubble";m.has(w)||(Yg(c,s,2,!1),m.add(w))}function J1(s,c,m){var w=0;c&&(w|=4),Yg(m,s,w,c)}var X1="_reactListening"+Math.random().toString(36).slice(2);function Tc(s){if(!s[X1]){s[X1]=!0,a.forEach(function(m){m!=="selectionchange"&&(Bm.has(m)||J1(m,!1,s),J1(m,!0,s))});var c=s.nodeType===9?s:s.ownerDocument;c===null||c[X1]||(c[X1]=!0,J1("selectionchange",!1,c))}}function Yg(s,c,m,w){switch(Cc(c)){case 1:var E=xc;break;case 4:E=wc;break;default:E=fl}m=E.bind(null,c,m,s),E=void 0,!Mr||c!=="touchstart"&&c!=="touchmove"&&c!=="wheel"||(E=!0),w?E!==void 0?s.addEventListener(c,m,{capture:!0,passive:E}):s.addEventListener(c,m,!0):E!==void 0?s.addEventListener(c,m,{passive:E}):s.addEventListener(c,m,!1)}function K1(s,c,m,w,E){var M=w;if(!(c&1)&&!(c&2)&&w!==null)e:for(;;){if(w===null)return;var F=w.tag;if(F===3||F===4){var q=w.stateNode.containerInfo;if(q===E||q.nodeType===8&&q.parentNode===E)break;if(F===4)for(F=w.return;F!==null;){var Q=F.tag;if((Q===3||Q===4)&&(Q=F.stateNode.containerInfo,Q===E||Q.nodeType===8&&Q.parentNode===E))return;F=F.return}for(;q!==null;){if(F=pu(q),F===null)return;if(Q=F.tag,Q===5||Q===6){w=M=F;continue e}q=q.parentNode}}w=w.return}_t(function(){var me=M,De=En(m),Pe=[];e:{var Ie=Hm.get(s);if(Ie!==void 0){var at=cn,ft=s;switch(s){case"keypress":if(we(m)===0)break e;case"keydown":case"keyup":at=Am;break;case"focusin":ft="focus",at=su;break;case"focusout":ft="blur",at=su;break;case"beforeblur":case"afterblur":at=su;break;case"click":if(m.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":at=pl;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":at=Ss;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":at=Ag;break;case Zg:case Wg:case qg:at=U1;break;case Gg:at=Es;break;case"scroll":at=rr;break;case"wheel":at=_s;break;case"copy":case"cut":case"paste":at=_g;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":at=Mg}var vt=(c&4)!==0,jr=!vt&&s==="scroll",oe=vt?Ie!==null?Ie+"Capture":null:Ie;vt=[];for(var ne=me,le;ne!==null;){le=ne;var je=le.stateNode;if(le.tag===5&&je!==null&&(le=je,oe!==null&&(je=_n(ne,oe),je!=null&&vt.push(Rc(ne,je,le)))),jr)break;ne=ne.return}0<vt.length&&(Ie=new at(Ie,ft,null,m,De),Pe.push({event:Ie,listeners:vt}))}}if(!(c&7)){e:{if(Ie=s==="mouseover"||s==="pointerover",at=s==="mouseout"||s==="pointerout",Ie&&m!==dn&&(ft=m.relatedTarget||m.fromElement)&&(pu(ft)||ft[Ts]))break e;if((at||Ie)&&(Ie=De.window===De?De:(Ie=De.ownerDocument)?Ie.defaultView||Ie.parentWindow:window,at?(ft=m.relatedTarget||m.toElement,at=me,ft=ft?pu(ft):null,ft!==null&&(jr=Gt(ft),ft!==jr||ft.tag!==5&&ft.tag!==6)&&(ft=null)):(at=null,ft=me),at!==ft)){if(vt=pl,je="onMouseLeave",oe="onMouseEnter",ne="mouse",(s==="pointerout"||s==="pointerover")&&(vt=Mg,je="onPointerLeave",oe="onPointerEnter",ne="pointer"),jr=at==null?Ie:Ti(at),le=ft==null?Ie:Ti(ft),Ie=new vt(je,ne+"leave",at,m,De),Ie.target=jr,Ie.relatedTarget=le,je=null,pu(De)===me&&(vt=new vt(oe,ne+"enter",ft,m,De),vt.target=le,vt.relatedTarget=jr,je=vt),jr=je,at&&ft)t:{for(vt=at,oe=ft,ne=0,le=vt;le;le=ml(le))ne++;for(le=0,je=oe;je;je=ml(je))le++;for(;0<ne-le;)vt=ml(vt),ne--;for(;0<le-ne;)oe=ml(oe),le--;for(;ne--;){if(vt===oe||oe!==null&&vt===oe.alternate)break t;vt=ml(vt),oe=ml(oe)}vt=null}else vt=null;at!==null&&Jg(Pe,Ie,at,vt,!1),ft!==null&&jr!==null&&Jg(Pe,jr,ft,vt,!0)}}e:{if(Ie=me?Ti(me):window,at=Ie.nodeName&&Ie.nodeName.toLowerCase(),at==="select"||at==="input"&&Ie.type==="file")var pt=V6;else if(jg(Ie))if(Fg)pt=Vg;else{pt=Bg;var Ot=$6}else(at=Ie.nodeName)&&at.toLowerCase()==="input"&&(Ie.type==="checkbox"||Ie.type==="radio")&&(pt=Z6);if(pt&&(pt=pt(s,me))){Om(Pe,pt,m,De);break e}Ot&&Ot(s,Ie,me),s==="focusout"&&(Ot=Ie._wrapperState)&&Ot.controlled&&Ie.type==="number"&&Bn(Ie,"number",Ie.value)}switch(Ot=me?Ti(me):window,s){case"focusin":(jg(Ot)||Ot.contentEditable==="true")&&(_c=Ot,jm=me,$d=null);break;case"focusout":$d=jm=_c=null;break;case"mousedown":Pm=!0;break;case"contextmenu":case"mouseup":case"dragend":Pm=!1,Fm(Pe,m,De);break;case"selectionchange":if(q6)break;case"keydown":case"keyup":Fm(Pe,m,De)}var jt;if(Sc)e:{switch(s){case"compositionstart":var Ht="onCompositionStart";break e;case"compositionend":Ht="onCompositionEnd";break e;case"compositionupdate":Ht="onCompositionUpdate";break e}Ht=void 0}else kc?Og(s,m)&&(Ht="onCompositionEnd"):s==="keydown"&&m.keyCode===229&&(Ht="onCompositionStart");Ht&&(Ng&&m.locale!=="ko"&&(kc||Ht!=="onCompositionStart"?Ht==="onCompositionEnd"&&kc&&(jt=fe()):(Ei=De,D="value"in Ei?Ei.value:Ei.textContent,kc=!0)),Ot=Wd(me,Ht),0<Ot.length&&(Ht=new Tm(Ht,s,null,m,De),Pe.push({event:Ht,listeners:Ot}),jt?Ht.data=jt:(jt=Ig(m),jt!==null&&(Ht.data=jt)))),(jt=Hd?Dg(s,m):U6(s,m))&&(me=Wd(me,"onBeforeInput"),0<me.length&&(De=new Tm("onBeforeInput","beforeinput",null,m,De),Pe.push({event:De,listeners:me}),De.data=jt))}du(Pe,c)})}function Rc(s,c,m){return{instance:s,listener:c,currentTarget:m}}function Wd(s,c){for(var m=c+"Capture",w=[];s!==null;){var E=s,M=E.stateNode;E.tag===5&&M!==null&&(E=M,M=_n(s,m),M!=null&&w.unshift(Rc(s,M,E)),M=_n(s,c),M!=null&&w.push(Rc(s,M,E))),s=s.return}return w}function ml(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5);return s||null}function Jg(s,c,m,w,E){for(var M=c._reactName,F=[];m!==null&&m!==w;){var q=m,Q=q.alternate,me=q.stateNode;if(Q!==null&&Q===w)break;q.tag===5&&me!==null&&(q=me,E?(Q=_n(m,M),Q!=null&&F.unshift(Rc(m,Q,q))):E||(Q=_n(m,M),Q!=null&&F.push(Rc(m,Q,q)))),m=m.return}F.length!==0&&s.push({event:c,listeners:F})}var Xg=/\r\n?/g,J6=/\u0000|\uFFFD/g;function Kg(s){return(typeof s=="string"?s:""+s).replace(Xg,`
|
|
98
|
-
`).replace(J6,"")}function Q1(s,c,m){if(c=Kg(c),Kg(s)!==c&&m)throw Error(n(425))}function gl(){}var qd=null,fu=null;function ep(s,c){return s==="textarea"||s==="noscript"||typeof c.children=="string"||typeof c.children=="number"||typeof c.dangerouslySetInnerHTML=="object"&&c.dangerouslySetInnerHTML!==null&&c.dangerouslySetInnerHTML.__html!=null}var tp=typeof setTimeout=="function"?setTimeout:void 0,Vm=typeof clearTimeout=="function"?clearTimeout:void 0,Qg=typeof Promise=="function"?Promise:void 0,Mc=typeof queueMicrotask=="function"?queueMicrotask:typeof Qg!="undefined"?function(s){return Qg.resolve(null).then(s).catch(np)}:tp;function np(s){setTimeout(function(){throw s})}function Ac(s,c){var m=c,w=0;do{var E=m.nextSibling;if(s.removeChild(m),E&&E.nodeType===8)if(m=E.data,m==="/$"){if(w===0){s.removeChild(E),ki(c);return}w--}else m!=="$"&&m!=="$?"&&m!=="$!"||w++;m=E}while(m);ki(c)}function Wi(s){for(;s!=null;s=s.nextSibling){var c=s.nodeType;if(c===1||c===3)break;if(c===8){if(c=s.data,c==="$"||c==="$!"||c==="$?")break;if(c==="/$")return null}}return s}function ev(s){s=s.previousSibling;for(var c=0;s;){if(s.nodeType===8){var m=s.data;if(m==="$"||m==="$!"||m==="$?"){if(c===0)return s;c--}else m==="/$"&&c++}s=s.previousSibling}return null}var vl=Math.random().toString(36).slice(2),qi="__reactFiber$"+vl,Gd="__reactProps$"+vl,Ts="__reactContainer$"+vl,Yd="__reactEvents$"+vl,Nc="__reactListeners$"+vl,X6="__reactHandles$"+vl;function pu(s){var c=s[qi];if(c)return c;for(var m=s.parentNode;m;){if(c=m[Ts]||m[qi]){if(m=c.alternate,c.child!==null||m!==null&&m.child!==null)for(s=ev(s);s!==null;){if(m=s[qi])return m;s=ev(s)}return c}s=m,m=s.parentNode}return null}function Tt(s){return s=s[qi]||s[Ts],!s||s.tag!==5&&s.tag!==6&&s.tag!==13&&s.tag!==3?null:s}function Ti(s){if(s.tag===5||s.tag===6)return s.stateNode;throw Error(n(33))}function wr(s){return s[Gd]||null}var yn=[],Jo=-1;function Xo(s){return{current:s}}function ar(s){0>Jo||(s.current=yn[Jo],yn[Jo]=null,Jo--)}function kt(s,c){Jo++,yn[Jo]=s.current,s.current=c}var Ra={},Er=Xo(Ra),Qr=Xo(!1),no=Ra;function ro(s,c){var m=s.type.contextTypes;if(!m)return Ra;var w=s.stateNode;if(w&&w.__reactInternalMemoizedUnmaskedChildContext===c)return w.__reactInternalMemoizedMaskedChildContext;var E={},M;for(M in m)E[M]=c[M];return w&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=c,s.__reactInternalMemoizedMaskedChildContext=E),E}function Hr(s){return s=s.childContextTypes,s!=null}function Lc(){ar(Qr),ar(Er)}function tv(s,c,m){if(Er.current!==Ra)throw Error(n(168));kt(Er,c),kt(Qr,m)}function Jd(s,c,m){var w=s.stateNode;if(c=c.childContextTypes,typeof w.getChildContext!="function")return m;w=w.getChildContext();for(var E in w)if(!(E in c))throw Error(n(108,_e(s)||"Unknown",E));return B({},m,w)}function aa(s){return s=(s=s.stateNode)&&s.__reactInternalMemoizedMergedChildContext||Ra,no=Er.current,kt(Er,s),kt(Qr,Qr.current),!0}function rp(s,c,m){var w=s.stateNode;if(!w)throw Error(n(169));m?(s=Jd(s,c,no),w.__reactInternalMemoizedMergedChildContext=s,ar(Qr),ar(Er),kt(Er,s)):ar(Qr),kt(Qr,m)}var Gi=null,Oc=!1,Rs=!1;function ap(s){Gi===null?Gi=[s]:Gi.push(s)}function yl(s){Oc=!0,ap(s)}function Yi(){if(!Rs&&Gi!==null){Rs=!0;var s=0,c=Mn;try{var m=Gi;for(Mn=1;s<m.length;s++){var w=m[s];do w=w(!0);while(w!==null)}Gi=null,Oc=!1}catch(E){throw Gi!==null&&(Gi=Gi.slice(s+1)),ir(bi,Yi),E}finally{Mn=c,Rs=!1}}return null}var xl=[],wl=0,bl=null,Ms=0,Ur=[],Ko=0,_o=null,Ji=1,Xi="";function hu(s,c){xl[wl++]=Ms,xl[wl++]=bl,bl=s,Ms=c}function nv(s,c,m){Ur[Ko++]=Ji,Ur[Ko++]=Xi,Ur[Ko++]=_o,_o=s;var w=Ji;s=Xi;var E=32-Ia(w)-1;w&=~(1<<E),m+=1;var M=32-Ia(c)+E;if(30<M){var F=E-E%5;M=(w&(1<<F)-1).toString(32),w>>=F,E-=F,Ji=1<<32-Ia(c)+E|m<<E|w,Xi=M+s}else Ji=1<<M|m<<E|w,Xi=s}function op(s){s.return!==null&&(hu(s,1),nv(s,1,0))}function ip(s){for(;s===bl;)bl=xl[--wl],xl[wl]=null,Ms=xl[--wl],xl[wl]=null;for(;s===_o;)_o=Ur[--Ko],Ur[Ko]=null,Xi=Ur[--Ko],Ur[Ko]=null,Ji=Ur[--Ko],Ur[Ko]=null}var ao=null,oo=null,mr=!1,Qo=null;function $m(s,c){var m=ai(5,null,null,0);m.elementType="DELETED",m.stateNode=c,m.return=s,c=s.deletions,c===null?(s.deletions=[m],s.flags|=16):c.push(m)}function rv(s,c){switch(s.tag){case 5:var m=s.type;return c=c.nodeType!==1||m.toLowerCase()!==c.nodeName.toLowerCase()?null:c,c!==null?(s.stateNode=c,ao=s,oo=Wi(c.firstChild),!0):!1;case 6:return c=s.pendingProps===""||c.nodeType!==3?null:c,c!==null?(s.stateNode=c,ao=s,oo=null,!0):!1;case 13:return c=c.nodeType!==8?null:c,c!==null?(m=_o!==null?{id:Ji,overflow:Xi}:null,s.memoizedState={dehydrated:c,treeContext:m,retryLane:1073741824},m=ai(18,null,null,0),m.stateNode=c,m.return=s,s.child=m,ao=s,oo=null,!0):!1;default:return!1}}function Zm(s){return(s.mode&1)!==0&&(s.flags&128)===0}function Wm(s){if(mr){var c=oo;if(c){var m=c;if(!rv(s,c)){if(Zm(s))throw Error(n(418));c=Wi(m.nextSibling);var w=ao;c&&rv(s,c)?$m(w,m):(s.flags=s.flags&-4097|2,mr=!1,ao=s)}}else{if(Zm(s))throw Error(n(418));s.flags=s.flags&-4097|2,mr=!1,ao=s}}}function ea(s){for(s=s.return;s!==null&&s.tag!==5&&s.tag!==3&&s.tag!==13;)s=s.return;ao=s}function sp(s){if(s!==ao)return!1;if(!mr)return ea(s),mr=!0,!1;var c;if((c=s.tag!==3)&&!(c=s.tag!==5)&&(c=s.type,c=c!=="head"&&c!=="body"&&!ep(s.type,s.memoizedProps)),c&&(c=oo)){if(Zm(s))throw Xd(),Error(n(418));for(;c;)$m(s,c),c=Wi(c.nextSibling)}if(ea(s),s.tag===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(n(317));e:{for(s=s.nextSibling,c=0;s;){if(s.nodeType===8){var m=s.data;if(m==="/$"){if(c===0){oo=Wi(s.nextSibling);break e}c--}else m!=="$"&&m!=="$!"&&m!=="$?"||c++}s=s.nextSibling}oo=null}}else oo=ao?Wi(s.stateNode.nextSibling):null;return!0}function Xd(){for(var s=oo;s;)s=Wi(s.nextSibling)}function Cl(){oo=ao=null,mr=!1}function As(s){Qo===null?Qo=[s]:Qo.push(s)}var K6=j.ReactCurrentBatchConfig;function mu(s,c,m){if(s=m.ref,s!==null&&typeof s!="function"&&typeof s!="object"){if(m._owner){if(m=m._owner,m){if(m.tag!==1)throw Error(n(309));var w=m.stateNode}if(!w)throw Error(n(147,s));var E=w,M=""+s;return c!==null&&c.ref!==null&&typeof c.ref=="function"&&c.ref._stringRef===M?c.ref:(c=function(F){var q=E.refs;F===null?delete q[M]:q[M]=F},c._stringRef=M,c)}if(typeof s!="string")throw Error(n(284));if(!m._owner)throw Error(n(290,s))}return s}function lp(s,c){throw s=Object.prototype.toString.call(c),Error(n(31,s==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":s))}function av(s){var c=s._init;return c(s._payload)}function gu(s){function c(oe,ne){if(s){var le=oe.deletions;le===null?(oe.deletions=[ne],oe.flags|=16):le.push(ne)}}function m(oe,ne){if(!s)return null;for(;ne!==null;)c(oe,ne),ne=ne.sibling;return null}function w(oe,ne){for(oe=new Map;ne!==null;)ne.key!==null?oe.set(ne.key,ne):oe.set(ne.index,ne),ne=ne.sibling;return oe}function E(oe,ne){return oe=Al(oe,ne),oe.index=0,oe.sibling=null,oe}function M(oe,ne,le){return oe.index=le,s?(le=oe.alternate,le!==null?(le=le.index,le<ne?(oe.flags|=2,ne):le):(oe.flags|=2,ne)):(oe.flags|=1048576,ne)}function F(oe){return s&&oe.alternate===null&&(oe.flags|=2),oe}function q(oe,ne,le,je){return ne===null||ne.tag!==6?(ne=S0(le,oe.mode,je),ne.return=oe,ne):(ne=E(ne,le),ne.return=oe,ne)}function Q(oe,ne,le,je){var pt=le.type;return pt===W?De(oe,ne,le.props.children,je,le.key):ne!==null&&(ne.elementType===pt||typeof pt=="object"&&pt!==null&&pt.$$typeof===Ee&&av(pt)===ne.type)?(je=E(ne,le.props),je.ref=mu(oe,ne,le),je.return=oe,je):(je=Rf(le.type,le.key,le.props,null,oe.mode,je),je.ref=mu(oe,ne,le),je.return=oe,je)}function me(oe,ne,le,je){return ne===null||ne.tag!==4||ne.stateNode.containerInfo!==le.containerInfo||ne.stateNode.implementation!==le.implementation?(ne=Up(le,oe.mode,je),ne.return=oe,ne):(ne=E(ne,le.children||[]),ne.return=oe,ne)}function De(oe,ne,le,je,pt){return ne===null||ne.tag!==7?(ne=js(le,oe.mode,je,pt),ne.return=oe,ne):(ne=E(ne,le),ne.return=oe,ne)}function Pe(oe,ne,le){if(typeof ne=="string"&&ne!==""||typeof ne=="number")return ne=S0(""+ne,oe.mode,le),ne.return=oe,ne;if(typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case V:return le=Rf(ne.type,ne.key,ne.props,null,oe.mode,le),le.ref=mu(oe,null,ne),le.return=oe,le;case H:return ne=Up(ne,oe.mode,le),ne.return=oe,ne;case Ee:var je=ne._init;return Pe(oe,je(ne._payload),le)}if(He(ne)||Ae(ne))return ne=js(ne,oe.mode,le,null),ne.return=oe,ne;lp(oe,ne)}return null}function Ie(oe,ne,le,je){var pt=ne!==null?ne.key:null;if(typeof le=="string"&&le!==""||typeof le=="number")return pt!==null?null:q(oe,ne,""+le,je);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case V:return le.key===pt?Q(oe,ne,le,je):null;case H:return le.key===pt?me(oe,ne,le,je):null;case Ee:return pt=le._init,Ie(oe,ne,pt(le._payload),je)}if(He(le)||Ae(le))return pt!==null?null:De(oe,ne,le,je,null);lp(oe,le)}return null}function at(oe,ne,le,je,pt){if(typeof je=="string"&&je!==""||typeof je=="number")return oe=oe.get(le)||null,q(ne,oe,""+je,pt);if(typeof je=="object"&&je!==null){switch(je.$$typeof){case V:return oe=oe.get(je.key===null?le:je.key)||null,Q(ne,oe,je,pt);case H:return oe=oe.get(je.key===null?le:je.key)||null,me(ne,oe,je,pt);case Ee:var Ot=je._init;return at(oe,ne,le,Ot(je._payload),pt)}if(He(je)||Ae(je))return oe=oe.get(le)||null,De(ne,oe,je,pt,null);lp(ne,je)}return null}function ft(oe,ne,le,je){for(var pt=null,Ot=null,jt=ne,Ht=ne=0,sa=null;jt!==null&&Ht<le.length;Ht++){jt.index>Ht?(sa=jt,jt=null):sa=jt.sibling;var Ln=Ie(oe,jt,le[Ht],je);if(Ln===null){jt===null&&(jt=sa);break}s&&jt&&Ln.alternate===null&&c(oe,jt),ne=M(Ln,ne,Ht),Ot===null?pt=Ln:Ot.sibling=Ln,Ot=Ln,jt=sa}if(Ht===le.length)return m(oe,jt),mr&&hu(oe,Ht),pt;if(jt===null){for(;Ht<le.length;Ht++)jt=Pe(oe,le[Ht],je),jt!==null&&(ne=M(jt,ne,Ht),Ot===null?pt=jt:Ot.sibling=jt,Ot=jt);return mr&&hu(oe,Ht),pt}for(jt=w(oe,jt);Ht<le.length;Ht++)sa=at(jt,oe,Ht,le[Ht],je),sa!==null&&(s&&sa.alternate!==null&&jt.delete(sa.key===null?Ht:sa.key),ne=M(sa,ne,Ht),Ot===null?pt=sa:Ot.sibling=sa,Ot=sa);return s&&jt.forEach(function(Ol){return c(oe,Ol)}),mr&&hu(oe,Ht),pt}function vt(oe,ne,le,je){var pt=Ae(le);if(typeof pt!="function")throw Error(n(150));if(le=pt.call(le),le==null)throw Error(n(151));for(var Ot=pt=null,jt=ne,Ht=ne=0,sa=null,Ln=le.next();jt!==null&&!Ln.done;Ht++,Ln=le.next()){jt.index>Ht?(sa=jt,jt=null):sa=jt.sibling;var Ol=Ie(oe,jt,Ln.value,je);if(Ol===null){jt===null&&(jt=sa);break}s&&jt&&Ol.alternate===null&&c(oe,jt),ne=M(Ol,ne,Ht),Ot===null?pt=Ol:Ot.sibling=Ol,Ot=Ol,jt=sa}if(Ln.done)return m(oe,jt),mr&&hu(oe,Ht),pt;if(jt===null){for(;!Ln.done;Ht++,Ln=le.next())Ln=Pe(oe,Ln.value,je),Ln!==null&&(ne=M(Ln,ne,Ht),Ot===null?pt=Ln:Ot.sibling=Ln,Ot=Ln);return mr&&hu(oe,Ht),pt}for(jt=w(oe,jt);!Ln.done;Ht++,Ln=le.next())Ln=at(jt,oe,Ht,Ln.value,je),Ln!==null&&(s&&Ln.alternate!==null&&jt.delete(Ln.key===null?Ht:Ln.key),ne=M(Ln,ne,Ht),Ot===null?pt=Ln:Ot.sibling=Ln,Ot=Ln);return s&&jt.forEach(function(Hv){return c(oe,Hv)}),mr&&hu(oe,Ht),pt}function jr(oe,ne,le,je){if(typeof le=="object"&&le!==null&&le.type===W&&le.key===null&&(le=le.props.children),typeof le=="object"&&le!==null){switch(le.$$typeof){case V:e:{for(var pt=le.key,Ot=ne;Ot!==null;){if(Ot.key===pt){if(pt=le.type,pt===W){if(Ot.tag===7){m(oe,Ot.sibling),ne=E(Ot,le.props.children),ne.return=oe,oe=ne;break e}}else if(Ot.elementType===pt||typeof pt=="object"&&pt!==null&&pt.$$typeof===Ee&&av(pt)===Ot.type){m(oe,Ot.sibling),ne=E(Ot,le.props),ne.ref=mu(oe,Ot,le),ne.return=oe,oe=ne;break e}m(oe,Ot);break}else c(oe,Ot);Ot=Ot.sibling}le.type===W?(ne=js(le.props.children,oe.mode,je,le.key),ne.return=oe,oe=ne):(je=Rf(le.type,le.key,le.props,null,oe.mode,je),je.ref=mu(oe,ne,le),je.return=oe,oe=je)}return F(oe);case H:e:{for(Ot=le.key;ne!==null;){if(ne.key===Ot)if(ne.tag===4&&ne.stateNode.containerInfo===le.containerInfo&&ne.stateNode.implementation===le.implementation){m(oe,ne.sibling),ne=E(ne,le.children||[]),ne.return=oe,oe=ne;break e}else{m(oe,ne);break}else c(oe,ne);ne=ne.sibling}ne=Up(le,oe.mode,je),ne.return=oe,oe=ne}return F(oe);case Ee:return Ot=le._init,jr(oe,ne,Ot(le._payload),je)}if(He(le))return ft(oe,ne,le,je);if(Ae(le))return vt(oe,ne,le,je);lp(oe,le)}return typeof le=="string"&&le!==""||typeof le=="number"?(le=""+le,ne!==null&&ne.tag===6?(m(oe,ne.sibling),ne=E(ne,le),ne.return=oe,oe=ne):(m(oe,ne),ne=S0(le,oe.mode,je),ne.return=oe,oe=ne),F(oe)):m(oe,ne)}return jr}var Lr=gu(!0),tt=gu(!1),To=Xo(null),io=null,Ic=null,qm=null;function Gm(){qm=Ic=io=null}function Ym(s){var c=To.current;ar(To),s._currentValue=c}function Jm(s,c,m){for(;s!==null;){var w=s.alternate;if((s.childLanes&c)!==c?(s.childLanes|=c,w!==null&&(w.childLanes|=c)):w!==null&&(w.childLanes&c)!==c&&(w.childLanes|=c),s===m)break;s=s.return}}function br(s,c){io=s,qm=Ic=null,s=s.dependencies,s!==null&&s.firstContext!==null&&(s.lanes&c&&(Vr=!0),s.firstContext=null)}function ei(s){var c=s._currentValue;if(qm!==s)if(s={context:s,memoizedValue:c,next:null},Ic===null){if(io===null)throw Error(n(308));Ic=s,io.dependencies={lanes:0,firstContext:s}}else Ic=Ic.next=s;return c}var vu=null;function Xm(s){vu===null?vu=[s]:vu.push(s)}function Km(s,c,m,w){var E=c.interleaved;return E===null?(m.next=m,Xm(c)):(m.next=E.next,E.next=m),c.interleaved=m,Ro(s,w)}function Ro(s,c){s.lanes|=c;var m=s.alternate;for(m!==null&&(m.lanes|=c),m=s,s=s.return;s!==null;)s.childLanes|=c,m=s.alternate,m!==null&&(m.childLanes|=c),m=s,s=s.return;return m.tag===3?m.stateNode:null}var Mo=!1;function Qm(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ov(s,c){s=s.updateQueue,c.updateQueue===s&&(c.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,effects:s.effects})}function Ns(s,c){return{eventTime:s,lane:c,tag:0,payload:null,callback:null,next:null}}function Sl(s,c,m){var w=s.updateQueue;if(w===null)return null;if(w=w.shared,xn&2){var E=w.pending;return E===null?c.next=c:(c.next=E.next,E.next=c),w.pending=c,Ro(s,m)}return E=w.interleaved,E===null?(c.next=c,Xm(w)):(c.next=E.next,E.next=c),w.interleaved=c,Ro(s,m)}function up(s,c,m){if(c=c.updateQueue,c!==null&&(c=c.shared,(m&4194240)!==0)){var w=c.lanes;w&=s.pendingLanes,m|=w,c.lanes=m,Cs(s,m)}}function iv(s,c){var m=s.updateQueue,w=s.alternate;if(w!==null&&(w=w.updateQueue,m===w)){var E=null,M=null;if(m=m.firstBaseUpdate,m!==null){do{var F={eventTime:m.eventTime,lane:m.lane,tag:m.tag,payload:m.payload,callback:m.callback,next:null};M===null?E=M=F:M=M.next=F,m=m.next}while(m!==null);M===null?E=M=c:M=M.next=c}else E=M=c;m={baseState:w.baseState,firstBaseUpdate:E,lastBaseUpdate:M,shared:w.shared,effects:w.effects},s.updateQueue=m;return}s=m.lastBaseUpdate,s===null?m.firstBaseUpdate=c:s.next=c,m.lastBaseUpdate=c}function Kd(s,c,m,w){var E=s.updateQueue;Mo=!1;var M=E.firstBaseUpdate,F=E.lastBaseUpdate,q=E.shared.pending;if(q!==null){E.shared.pending=null;var Q=q,me=Q.next;Q.next=null,F===null?M=me:F.next=me,F=Q;var De=s.alternate;De!==null&&(De=De.updateQueue,q=De.lastBaseUpdate,q!==F&&(q===null?De.firstBaseUpdate=me:q.next=me,De.lastBaseUpdate=Q))}if(M!==null){var Pe=E.baseState;F=0,De=me=Q=null,q=M;do{var Ie=q.lane,at=q.eventTime;if((w&Ie)===Ie){De!==null&&(De=De.next={eventTime:at,lane:0,tag:q.tag,payload:q.payload,callback:q.callback,next:null});e:{var ft=s,vt=q;switch(Ie=c,at=m,vt.tag){case 1:if(ft=vt.payload,typeof ft=="function"){Pe=ft.call(at,Pe,Ie);break e}Pe=ft;break e;case 3:ft.flags=ft.flags&-65537|128;case 0:if(ft=vt.payload,Ie=typeof ft=="function"?ft.call(at,Pe,Ie):ft,Ie==null)break e;Pe=B({},Pe,Ie);break e;case 2:Mo=!0}}q.callback!==null&&q.lane!==0&&(s.flags|=64,Ie=E.effects,Ie===null?E.effects=[q]:Ie.push(q))}else at={eventTime:at,lane:Ie,tag:q.tag,payload:q.payload,callback:q.callback,next:null},De===null?(me=De=at,Q=Pe):De=De.next=at,F|=Ie;if(q=q.next,q===null){if(q=E.shared.pending,q===null)break;Ie=q,q=Ie.next,Ie.next=null,E.lastBaseUpdate=Ie,E.shared.pending=null}}while(!0);if(De===null&&(Q=Pe),E.baseState=Q,E.firstBaseUpdate=me,E.lastBaseUpdate=De,c=E.shared.interleaved,c!==null){E=c;do F|=E.lane,E=E.next;while(E!==c)}else M===null&&(E.shared.lanes=0);ns|=F,s.lanes=F,s.memoizedState=Pe}}function e0(s,c,m){if(s=c.effects,c.effects=null,s!==null)for(c=0;c<s.length;c++){var w=s[c],E=w.callback;if(E!==null){if(w.callback=null,w=m,typeof E!="function")throw Error(n(191,E));E.call(w)}}}var Qd={},Ki=Xo(Qd),ef=Xo(Qd),tf=Xo(Qd);function yu(s){if(s===Qd)throw Error(n(174));return s}function t0(s,c){switch(kt(tf,c),kt(ef,s),kt(Ki,Qd),s=c.nodeType,s){case 9:case 11:c=(c=c.documentElement)?c.namespaceURI:Ne(null,"");break;default:s=s===8?c.parentNode:c,c=s.namespaceURI||null,s=s.tagName,c=Ne(c,s)}ar(Ki),kt(Ki,c)}function xu(){ar(Ki),ar(ef),ar(tf)}function sv(s){yu(tf.current);var c=yu(Ki.current),m=Ne(c,s.type);c!==m&&(kt(ef,s),kt(Ki,m))}function cp(s){ef.current===s&&(ar(Ki),ar(ef))}var Cr=Xo(0);function dp(s){for(var c=s;c!==null;){if(c.tag===13){var m=c.memoizedState;if(m!==null&&(m=m.dehydrated,m===null||m.data==="$?"||m.data==="$!"))return c}else if(c.tag===19&&c.memoizedProps.revealOrder!==void 0){if(c.flags&128)return c}else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===s)break;for(;c.sibling===null;){if(c.return===null||c.return===s)return null;c=c.return}c.sibling.return=c.return,c=c.sibling}return null}var nf=[];function Rt(){for(var s=0;s<nf.length;s++)nf[s]._workInProgressVersionPrimary=null;nf.length=0}var on=j.ReactCurrentDispatcher,An=j.ReactCurrentBatchConfig,Gn=0,Nn=null,Br=null,oa=null,fp=!1,rf=!1,wu=0,Oe=0;function Tn(){throw Error(n(321))}function Ft(s,c){if(c===null)return!1;for(var m=0;m<c.length&&m<s.length;m++)if(!_i(s[m],c[m]))return!1;return!0}function kl(s,c,m,w,E,M){if(Gn=M,Nn=c,c.memoizedState=null,c.updateQueue=null,c.lanes=0,on.current=s===null||s.memoizedState===null?Tp:cf,s=m(w,E),rf){M=0;do{if(rf=!1,wu=0,25<=M)throw Error(n(301));M+=1,oa=Br=null,c.updateQueue=null,on.current=Rp,s=m(w,E)}while(rf)}if(on.current=Eu,c=Br!==null&&Br.next!==null,Gn=0,oa=Br=Nn=null,fp=!1,c)throw Error(n(300));return s}function Ri(){var s=wu!==0;return wu=0,s}function Ma(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return oa===null?Nn.memoizedState=oa=s:oa=oa.next=s,oa}function Or(){if(Br===null){var s=Nn.alternate;s=s!==null?s.memoizedState:null}else s=Br.next;var c=oa===null?Nn.memoizedState:oa.next;if(c!==null)oa=c,Br=s;else{if(s===null)throw Error(n(310));Br=s,s={memoizedState:Br.memoizedState,baseState:Br.baseState,baseQueue:Br.baseQueue,queue:Br.queue,next:null},oa===null?Nn.memoizedState=oa=s:oa=oa.next=s}return oa}function Ls(s,c){return typeof c=="function"?c(s):c}function El(s){var c=Or(),m=c.queue;if(m===null)throw Error(n(311));m.lastRenderedReducer=s;var w=Br,E=w.baseQueue,M=m.pending;if(M!==null){if(E!==null){var F=E.next;E.next=M.next,M.next=F}w.baseQueue=E=M,m.pending=null}if(E!==null){M=E.next,w=w.baseState;var q=F=null,Q=null,me=M;do{var De=me.lane;if((Gn&De)===De)Q!==null&&(Q=Q.next={lane:0,action:me.action,hasEagerState:me.hasEagerState,eagerState:me.eagerState,next:null}),w=me.hasEagerState?me.eagerState:s(w,me.action);else{var Pe={lane:De,action:me.action,hasEagerState:me.hasEagerState,eagerState:me.eagerState,next:null};Q===null?(q=Q=Pe,F=w):Q=Q.next=Pe,Nn.lanes|=De,ns|=De}me=me.next}while(me!==null&&me!==M);Q===null?F=w:Q.next=q,_i(w,c.memoizedState)||(Vr=!0),c.memoizedState=w,c.baseState=F,c.baseQueue=Q,m.lastRenderedState=w}if(s=m.interleaved,s!==null){E=s;do M=E.lane,Nn.lanes|=M,ns|=M,E=E.next;while(E!==s)}else E===null&&(m.lanes=0);return[c.memoizedState,m.dispatch]}function bu(s){var c=Or(),m=c.queue;if(m===null)throw Error(n(311));m.lastRenderedReducer=s;var w=m.dispatch,E=m.pending,M=c.memoizedState;if(E!==null){m.pending=null;var F=E=E.next;do M=s(M,F.action),F=F.next;while(F!==E);_i(M,c.memoizedState)||(Vr=!0),c.memoizedState=M,c.baseQueue===null&&(c.baseState=M),m.lastRenderedState=M}return[M,w]}function pp(){}function hp(s,c){var m=Nn,w=Or(),E=c(),M=!_i(w.memoizedState,E);if(M&&(w.memoizedState=E,Vr=!0),w=w.queue,af(vp.bind(null,m,w,s),[s]),w.getSnapshot!==c||M||oa!==null&&oa.memoizedState.tag&1){if(m.flags|=2048,Cu(9,gp.bind(null,m,w,E,c),void 0,null),ta===null)throw Error(n(349));Gn&30||mp(m,c,E)}return E}function mp(s,c,m){s.flags|=16384,s={getSnapshot:c,value:m},c=Nn.updateQueue,c===null?(c={lastEffect:null,stores:null},Nn.updateQueue=c,c.stores=[s]):(m=c.stores,m===null?c.stores=[s]:m.push(s))}function gp(s,c,m,w){c.value=m,c.getSnapshot=w,yp(c)&&xp(s)}function vp(s,c,m){return m(function(){yp(c)&&xp(s)})}function yp(s){var c=s.getSnapshot;s=s.value;try{var m=c();return!_i(s,m)}catch(w){return!0}}function xp(s){var c=Ro(s,1);c!==null&&Ha(c,s,1,-1)}function wp(s){var c=Ma();return typeof s=="function"&&(s=s()),c.memoizedState=c.baseState=s,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ls,lastRenderedState:s},c.queue=s,s=s.dispatch=ku.bind(null,Nn,s),[c.memoizedState,s]}function Cu(s,c,m,w){return s={tag:s,create:c,destroy:m,deps:w,next:null},c=Nn.updateQueue,c===null?(c={lastEffect:null,stores:null},Nn.updateQueue=c,c.lastEffect=s.next=s):(m=c.lastEffect,m===null?c.lastEffect=s.next=s:(w=m.next,m.next=s,s.next=w,c.lastEffect=s)),s}function bp(){return Or().memoizedState}function Dc(s,c,m,w){var E=Ma();Nn.flags|=s,E.memoizedState=Cu(1|c,m,void 0,w===void 0?null:w)}function jc(s,c,m,w){var E=Or();w=w===void 0?null:w;var M=void 0;if(Br!==null){var F=Br.memoizedState;if(M=F.destroy,w!==null&&Ft(w,F.deps)){E.memoizedState=Cu(c,m,M,w);return}}Nn.flags|=s,E.memoizedState=Cu(1|c,m,M,w)}function Cp(s,c){return Dc(8390656,8,s,c)}function af(s,c){return jc(2048,8,s,c)}function Sp(s,c){return jc(4,2,s,c)}function of(s,c){return jc(4,4,s,c)}function Su(s,c){if(typeof c=="function")return s=s(),c(s),function(){c(null)};if(c!=null)return s=s(),c.current=s,function(){c.current=null}}function kp(s,c,m){return m=m!=null?m.concat([s]):null,jc(4,4,Su.bind(null,c,s),m)}function sf(){}function Ep(s,c){var m=Or();c=c===void 0?null:c;var w=m.memoizedState;return w!==null&&c!==null&&Ft(c,w[1])?w[0]:(m.memoizedState=[s,c],s)}function _p(s,c){var m=Or();c=c===void 0?null:c;var w=m.memoizedState;return w!==null&&c!==null&&Ft(c,w[1])?w[0]:(s=s(),m.memoizedState=[s,c],s)}function n0(s,c,m){return Gn&21?(_i(m,c)||(m=mc(),Nn.lanes|=m,ns|=m,s.baseState=!0),c):(s.baseState&&(s.baseState=!1,Vr=!0),s.memoizedState=m)}function lf(s,c){var m=Mn;Mn=m!==0&&4>m?m:4,s(!0);var w=An.transition;An.transition={};try{s(!1),c()}finally{Mn=m,An.transition=w}}function r0(){return Or().memoizedState}function uf(s,c,m){var w=rs(s);if(m={lane:w,action:m,hasEagerState:!1,eagerState:null,next:null},so(s))lv(c,m);else if(m=Km(s,c,m,w),m!==null){var E=Wr();Ha(m,s,w,E),er(m,c,w)}}function ku(s,c,m){var w=rs(s),E={lane:w,action:m,hasEagerState:!1,eagerState:null,next:null};if(so(s))lv(c,E);else{var M=s.alternate;if(s.lanes===0&&(M===null||M.lanes===0)&&(M=c.lastRenderedReducer,M!==null))try{var F=c.lastRenderedState,q=M(F,m);if(E.hasEagerState=!0,E.eagerState=q,_i(q,F)){var Q=c.interleaved;Q===null?(E.next=E,Xm(c)):(E.next=Q.next,Q.next=E),c.interleaved=E;return}}catch(me){}finally{}m=Km(s,c,E,w),m!==null&&(E=Wr(),Ha(m,s,w,E),er(m,c,w))}}function so(s){var c=s.alternate;return s===Nn||c!==null&&c===Nn}function lv(s,c){rf=fp=!0;var m=s.pending;m===null?c.next=c:(c.next=m.next,m.next=c),s.pending=c}function er(s,c,m){if(m&4194240){var w=c.lanes;w&=s.pendingLanes,m|=w,c.lanes=m,Cs(s,m)}}var Eu={readContext:ei,useCallback:Tn,useContext:Tn,useEffect:Tn,useImperativeHandle:Tn,useInsertionEffect:Tn,useLayoutEffect:Tn,useMemo:Tn,useReducer:Tn,useRef:Tn,useState:Tn,useDebugValue:Tn,useDeferredValue:Tn,useTransition:Tn,useMutableSource:Tn,useSyncExternalStore:Tn,useId:Tn,unstable_isNewReconciler:!1},Tp={readContext:ei,useCallback:function(s,c){return Ma().memoizedState=[s,c===void 0?null:c],s},useContext:ei,useEffect:Cp,useImperativeHandle:function(s,c,m){return m=m!=null?m.concat([s]):null,Dc(4194308,4,Su.bind(null,c,s),m)},useLayoutEffect:function(s,c){return Dc(4194308,4,s,c)},useInsertionEffect:function(s,c){return Dc(4,2,s,c)},useMemo:function(s,c){var m=Ma();return c=c===void 0?null:c,s=s(),m.memoizedState=[s,c],s},useReducer:function(s,c,m){var w=Ma();return c=m!==void 0?m(c):c,w.memoizedState=w.baseState=c,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:c},w.queue=s,s=s.dispatch=uf.bind(null,Nn,s),[w.memoizedState,s]},useRef:function(s){var c=Ma();return s={current:s},c.memoizedState=s},useState:wp,useDebugValue:sf,useDeferredValue:function(s){return Ma().memoizedState=s},useTransition:function(){var s=wp(!1),c=s[0];return s=lf.bind(null,s[1]),Ma().memoizedState=s,[c,s]},useMutableSource:function(){},useSyncExternalStore:function(s,c,m){var w=Nn,E=Ma();if(mr){if(m===void 0)throw Error(n(407));m=m()}else{if(m=c(),ta===null)throw Error(n(349));Gn&30||mp(w,c,m)}E.memoizedState=m;var M={value:m,getSnapshot:c};return E.queue=M,Cp(vp.bind(null,w,M,s),[s]),w.flags|=2048,Cu(9,gp.bind(null,w,M,m,c),void 0,null),m},useId:function(){var s=Ma(),c=ta.identifierPrefix;if(mr){var m=Xi,w=Ji;m=(w&~(1<<32-Ia(w)-1)).toString(32)+m,c=":"+c+"R"+m,m=wu++,0<m&&(c+="H"+m.toString(32)),c+=":"}else m=Oe++,c=":"+c+"r"+m.toString(32)+":";return s.memoizedState=c},unstable_isNewReconciler:!1},cf={readContext:ei,useCallback:Ep,useContext:ei,useEffect:af,useImperativeHandle:kp,useInsertionEffect:Sp,useLayoutEffect:of,useMemo:_p,useReducer:El,useRef:bp,useState:function(){return El(Ls)},useDebugValue:sf,useDeferredValue:function(s){var c=Or();return n0(c,Br.memoizedState,s)},useTransition:function(){var s=El(Ls)[0],c=Or().memoizedState;return[s,c]},useMutableSource:pp,useSyncExternalStore:hp,useId:r0,unstable_isNewReconciler:!1},Rp={readContext:ei,useCallback:Ep,useContext:ei,useEffect:af,useImperativeHandle:kp,useInsertionEffect:Sp,useLayoutEffect:of,useMemo:_p,useReducer:bu,useRef:bp,useState:function(){return bu(Ls)},useDebugValue:sf,useDeferredValue:function(s){var c=Or();return Br===null?c.memoizedState=s:n0(c,Br.memoizedState,s)},useTransition:function(){var s=bu(Ls)[0],c=Or().memoizedState;return[s,c]},useMutableSource:pp,useSyncExternalStore:hp,useId:r0,unstable_isNewReconciler:!1};function Mi(s,c){if(s&&s.defaultProps){c=B({},c),s=s.defaultProps;for(var m in s)c[m]===void 0&&(c[m]=s[m]);return c}return c}function a0(s,c,m,w){c=s.memoizedState,m=m(w,c),m=m==null?c:B({},c,m),s.memoizedState=m,s.lanes===0&&(s.updateQueue.baseState=m)}var Mp={isMounted:function(s){return(s=s._reactInternals)?Gt(s)===s:!1},enqueueSetState:function(s,c,m){s=s._reactInternals;var w=Wr(),E=rs(s),M=Ns(w,E);M.payload=c,m!=null&&(M.callback=m),c=Sl(s,M,E),c!==null&&(Ha(c,s,E,w),up(c,s,E))},enqueueReplaceState:function(s,c,m){s=s._reactInternals;var w=Wr(),E=rs(s),M=Ns(w,E);M.tag=1,M.payload=c,m!=null&&(M.callback=m),c=Sl(s,M,E),c!==null&&(Ha(c,s,E,w),up(c,s,E))},enqueueForceUpdate:function(s,c){s=s._reactInternals;var m=Wr(),w=rs(s),E=Ns(m,w);E.tag=2,c!=null&&(E.callback=c),c=Sl(s,E,w),c!==null&&(Ha(c,s,w,m),up(c,s,w))}};function uv(s,c,m,w,E,M,F){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(w,M,F):c.prototype&&c.prototype.isPureReactComponent?!Bd(m,w)||!Bd(E,M):!0}function Ap(s,c,m){var w=!1,E=Ra,M=c.contextType;return typeof M=="object"&&M!==null?M=ei(M):(E=Hr(c)?no:Er.current,w=c.contextTypes,M=(w=w!=null)?ro(s,E):Ra),c=new c(m,M),s.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Mp,s.stateNode=c,c._reactInternals=s,w&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=E,s.__reactInternalMemoizedMaskedChildContext=M),c}function cv(s,c,m,w){s=c.state,typeof c.componentWillReceiveProps=="function"&&c.componentWillReceiveProps(m,w),typeof c.UNSAFE_componentWillReceiveProps=="function"&&c.UNSAFE_componentWillReceiveProps(m,w),c.state!==s&&Mp.enqueueReplaceState(c,c.state,null)}function df(s,c,m,w){var E=s.stateNode;E.props=m,E.state=s.memoizedState,E.refs={},Qm(s);var M=c.contextType;typeof M=="object"&&M!==null?E.context=ei(M):(M=Hr(c)?no:Er.current,E.context=ro(s,M)),E.state=s.memoizedState,M=c.getDerivedStateFromProps,typeof M=="function"&&(a0(s,c,M,m),E.state=s.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof E.getSnapshotBeforeUpdate=="function"||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(c=E.state,typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount(),c!==E.state&&Mp.enqueueReplaceState(E,E.state,null),Kd(s,m,E,w),E.state=s.memoizedState),typeof E.componentDidMount=="function"&&(s.flags|=4194308)}function _u(s,c){try{var m="",w=c;do m+=st(w),w=w.return;while(w);var E=m}catch(M){E=`
|
|
99
|
-
Error generating stack: `+M.message+`
|
|
100
|
-
`+M.stack}return{value:s,source:c,stack:E,digest:null}}function o0(s,c,m){return{value:s,source:null,stack:m!=null?m:null,digest:c!=null?c:null}}function i0(s,c){try{console.error(c.value)}catch(m){setTimeout(function(){throw m})}}var Np=typeof WeakMap=="function"?WeakMap:Map;function dv(s,c,m){m=Ns(-1,m),m.tag=3,m.payload={element:null};var w=c.value;return m.callback=function(){Bc||(Bc=!0,Mu=w),i0(s,c)},m}function s0(s,c,m){m=Ns(-1,m),m.tag=3;var w=s.type.getDerivedStateFromError;if(typeof w=="function"){var E=c.value;m.payload=function(){return w(E)},m.callback=function(){i0(s,c)}}var M=s.stateNode;return M!==null&&typeof M.componentDidCatch=="function"&&(m.callback=function(){i0(s,c),typeof w!="function"&&(Rl===null?Rl=new Set([this]):Rl.add(this));var F=c.stack;this.componentDidCatch(c.value,{componentStack:F!==null?F:""})}),m}function l0(s,c,m){var w=s.pingCache;if(w===null){w=s.pingCache=new Np;var E=new Set;w.set(c,E)}else E=w.get(c),E===void 0&&(E=new Set,w.set(c,E));E.has(m)||(E.add(m),s=o8.bind(null,s,c,m),c.then(s,s))}function fv(s){do{var c;if((c=s.tag===13)&&(c=s.memoizedState,c=c!==null?c.dehydrated!==null:!0),c)return s;s=s.return}while(s!==null);return null}function _l(s,c,m,w,E){return s.mode&1?(s.flags|=65536,s.lanes=E,s):(s===c?s.flags|=65536:(s.flags|=128,m.flags|=131072,m.flags&=-52805,m.tag===1&&(m.alternate===null?m.tag=17:(c=Ns(-1,1),c.tag=2,Sl(m,c,1))),m.lanes|=1),s)}var ff=j.ReactCurrentOwner,Vr=!1;function ma(s,c,m,w){c.child=s===null?tt(c,null,m,w):Lr(c,s.child,m,w)}function lo(s,c,m,w,E){m=m.render;var M=c.ref;return br(c,E),w=kl(s,c,m,w,M,E),m=Ri(),s!==null&&!Vr?(c.updateQueue=s.updateQueue,c.flags&=-2053,s.lanes&=~E,ni(s,c,E)):(mr&&m&&op(c),c.flags|=1,ma(s,c,w,E),c.child)}function Tu(s,c,m,w,E){if(s===null){var M=m.type;return typeof M=="function"&&!C0(M)&&M.defaultProps===void 0&&m.compare===null&&m.defaultProps===void 0?(c.tag=15,c.type=M,Xt(s,c,M,w,E)):(s=Rf(m.type,null,w,c,c.mode,E),s.ref=c.ref,s.return=c,c.child=s)}if(M=s.child,!(s.lanes&E)){var F=M.memoizedProps;if(m=m.compare,m=m!==null?m:Bd,m(F,w)&&s.ref===c.ref)return ni(s,c,E)}return c.flags|=1,s=Al(M,w),s.ref=c.ref,s.return=c,c.child=s}function Xt(s,c,m,w,E){if(s!==null){var M=s.memoizedProps;if(Bd(M,w)&&s.ref===c.ref)if(Vr=!1,c.pendingProps=w=M,(s.lanes&E)!==0)s.flags&131072&&(Vr=!0);else return c.lanes=s.lanes,ni(s,c,E)}return pv(s,c,m,w,E)}function pf(s,c,m){var w=c.pendingProps,E=w.children,M=s!==null?s.memoizedState:null;if(w.mode==="hidden")if(!(c.mode&1))c.memoizedState={baseLanes:0,cachePool:null,transitions:null},kt(zc,Ao),Ao|=m;else{if(!(m&1073741824))return s=M!==null?M.baseLanes|m:m,c.lanes=c.childLanes=1073741824,c.memoizedState={baseLanes:s,cachePool:null,transitions:null},c.updateQueue=null,kt(zc,Ao),Ao|=s,null;c.memoizedState={baseLanes:0,cachePool:null,transitions:null},w=M!==null?M.baseLanes:m,kt(zc,Ao),Ao|=w}else M!==null?(w=M.baseLanes|m,c.memoizedState=null):w=m,kt(zc,Ao),Ao|=w;return ma(s,c,E,m),c.child}function u0(s,c){var m=c.ref;(s===null&&m!==null||s!==null&&s.ref!==m)&&(c.flags|=512,c.flags|=2097152)}function pv(s,c,m,w,E){var M=Hr(m)?no:Er.current;return M=ro(c,M),br(c,E),m=kl(s,c,m,w,M,E),w=Ri(),s!==null&&!Vr?(c.updateQueue=s.updateQueue,c.flags&=-2053,s.lanes&=~E,ni(s,c,E)):(mr&&w&&op(c),c.flags|=1,ma(s,c,m,E),c.child)}function hv(s,c,m,w,E){if(Hr(m)){var M=!0;aa(c)}else M=!1;if(br(c,E),c.stateNode===null)ti(s,c),Ap(c,m,w),df(c,m,w,E),w=!0;else if(s===null){var F=c.stateNode,q=c.memoizedProps;F.props=q;var Q=F.context,me=m.contextType;typeof me=="object"&&me!==null?me=ei(me):(me=Hr(m)?no:Er.current,me=ro(c,me));var De=m.getDerivedStateFromProps,Pe=typeof De=="function"||typeof F.getSnapshotBeforeUpdate=="function";Pe||typeof F.UNSAFE_componentWillReceiveProps!="function"&&typeof F.componentWillReceiveProps!="function"||(q!==w||Q!==me)&&cv(c,F,w,me),Mo=!1;var Ie=c.memoizedState;F.state=Ie,Kd(c,w,F,E),Q=c.memoizedState,q!==w||Ie!==Q||Qr.current||Mo?(typeof De=="function"&&(a0(c,m,De,w),Q=c.memoizedState),(q=Mo||uv(c,m,q,w,Ie,Q,me))?(Pe||typeof F.UNSAFE_componentWillMount!="function"&&typeof F.componentWillMount!="function"||(typeof F.componentWillMount=="function"&&F.componentWillMount(),typeof F.UNSAFE_componentWillMount=="function"&&F.UNSAFE_componentWillMount()),typeof F.componentDidMount=="function"&&(c.flags|=4194308)):(typeof F.componentDidMount=="function"&&(c.flags|=4194308),c.memoizedProps=w,c.memoizedState=Q),F.props=w,F.state=Q,F.context=me,w=q):(typeof F.componentDidMount=="function"&&(c.flags|=4194308),w=!1)}else{F=c.stateNode,ov(s,c),q=c.memoizedProps,me=c.type===c.elementType?q:Mi(c.type,q),F.props=me,Pe=c.pendingProps,Ie=F.context,Q=m.contextType,typeof Q=="object"&&Q!==null?Q=ei(Q):(Q=Hr(m)?no:Er.current,Q=ro(c,Q));var at=m.getDerivedStateFromProps;(De=typeof at=="function"||typeof F.getSnapshotBeforeUpdate=="function")||typeof F.UNSAFE_componentWillReceiveProps!="function"&&typeof F.componentWillReceiveProps!="function"||(q!==Pe||Ie!==Q)&&cv(c,F,w,Q),Mo=!1,Ie=c.memoizedState,F.state=Ie,Kd(c,w,F,E);var ft=c.memoizedState;q!==Pe||Ie!==ft||Qr.current||Mo?(typeof at=="function"&&(a0(c,m,at,w),ft=c.memoizedState),(me=Mo||uv(c,m,me,w,Ie,ft,Q)||!1)?(De||typeof F.UNSAFE_componentWillUpdate!="function"&&typeof F.componentWillUpdate!="function"||(typeof F.componentWillUpdate=="function"&&F.componentWillUpdate(w,ft,Q),typeof F.UNSAFE_componentWillUpdate=="function"&&F.UNSAFE_componentWillUpdate(w,ft,Q)),typeof F.componentDidUpdate=="function"&&(c.flags|=4),typeof F.getSnapshotBeforeUpdate=="function"&&(c.flags|=1024)):(typeof F.componentDidUpdate!="function"||q===s.memoizedProps&&Ie===s.memoizedState||(c.flags|=4),typeof F.getSnapshotBeforeUpdate!="function"||q===s.memoizedProps&&Ie===s.memoizedState||(c.flags|=1024),c.memoizedProps=w,c.memoizedState=ft),F.props=w,F.state=ft,F.context=Q,w=me):(typeof F.componentDidUpdate!="function"||q===s.memoizedProps&&Ie===s.memoizedState||(c.flags|=4),typeof F.getSnapshotBeforeUpdate!="function"||q===s.memoizedProps&&Ie===s.memoizedState||(c.flags|=1024),w=!1)}return hf(s,c,m,w,M,E)}function hf(s,c,m,w,E,M){u0(s,c);var F=(c.flags&128)!==0;if(!w&&!F)return E&&rp(c,m,!1),ni(s,c,M);w=c.stateNode,ff.current=c;var q=F&&typeof m.getDerivedStateFromError!="function"?null:w.render();return c.flags|=1,s!==null&&F?(c.child=Lr(c,s.child,null,M),c.child=Lr(c,null,q,M)):ma(s,c,q,M),c.memoizedState=w.state,E&&rp(c,m,!0),c.child}function Pc(s){var c=s.stateNode;c.pendingContext?tv(s,c.pendingContext,c.pendingContext!==c.context):c.context&&tv(s,c.context,!1),t0(s,c.containerInfo)}function mv(s,c,m,w,E){return Cl(),As(E),c.flags|=256,ma(s,c,m,w),c.child}var Lp={dehydrated:null,treeContext:null,retryLane:0};function c0(s){return{baseLanes:s,cachePool:null,transitions:null}}function Op(s,c,m){var w=c.pendingProps,E=Cr.current,M=!1,F=(c.flags&128)!==0,q;if((q=F)||(q=s!==null&&s.memoizedState===null?!1:(E&2)!==0),q?(M=!0,c.flags&=-129):(s===null||s.memoizedState!==null)&&(E|=1),kt(Cr,E&1),s===null)return Wm(c),s=c.memoizedState,s!==null&&(s=s.dehydrated,s!==null)?(c.mode&1?s.data==="$!"?c.lanes=8:c.lanes=1073741824:c.lanes=1,null):(F=w.children,s=w.fallback,M?(w=c.mode,M=c.child,F={mode:"hidden",children:F},!(w&1)&&M!==null?(M.childLanes=0,M.pendingProps=F):M=Nl(F,w,0,null),s=js(s,w,m,null),M.return=c,s.return=c,M.sibling=s,c.child=M,c.child.memoizedState=c0(m),c.memoizedState=Lp,s):d0(c,F));if(E=s.memoizedState,E!==null&&(q=E.dehydrated,q!==null))return gv(s,c,F,w,q,E,m);if(M){M=w.fallback,F=c.mode,E=s.child,q=E.sibling;var Q={mode:"hidden",children:w.children};return!(F&1)&&c.child!==E?(w=c.child,w.childLanes=0,w.pendingProps=Q,c.deletions=null):(w=Al(E,Q),w.subtreeFlags=E.subtreeFlags&14680064),q!==null?M=Al(q,M):(M=js(M,F,m,null),M.flags|=2),M.return=c,w.return=c,w.sibling=M,c.child=w,w=M,M=c.child,F=s.child.memoizedState,F=F===null?c0(m):{baseLanes:F.baseLanes|m,cachePool:null,transitions:F.transitions},M.memoizedState=F,M.childLanes=s.childLanes&~m,c.memoizedState=Lp,w}return M=s.child,s=M.sibling,w=Al(M,{mode:"visible",children:w.children}),!(c.mode&1)&&(w.lanes=m),w.return=c,w.sibling=null,s!==null&&(m=c.deletions,m===null?(c.deletions=[s],c.flags|=16):m.push(s)),c.child=w,c.memoizedState=null,w}function d0(s,c){return c=Nl({mode:"visible",children:c},s.mode,0,null),c.return=s,s.child=c}function mf(s,c,m,w){return w!==null&&As(w),Lr(c,s.child,null,m),s=d0(c,c.pendingProps.children),s.flags|=2,c.memoizedState=null,s}function gv(s,c,m,w,E,M,F){if(m)return c.flags&256?(c.flags&=-257,w=o0(Error(n(422))),mf(s,c,F,w)):c.memoizedState!==null?(c.child=s.child,c.flags|=128,null):(M=w.fallback,E=c.mode,w=Nl({mode:"visible",children:w.children},E,0,null),M=js(M,E,F,null),M.flags|=2,w.return=c,M.return=c,w.sibling=M,c.child=w,c.mode&1&&Lr(c,s.child,null,F),c.child.memoizedState=c0(F),c.memoizedState=Lp,M);if(!(c.mode&1))return mf(s,c,F,null);if(E.data==="$!"){if(w=E.nextSibling&&E.nextSibling.dataset,w)var q=w.dgst;return w=q,M=Error(n(419)),w=o0(M,w,void 0),mf(s,c,F,w)}if(q=(F&s.childLanes)!==0,Vr||q){if(w=ta,w!==null){switch(F&-F){case 4:E=2;break;case 16:E=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:E=32;break;case 536870912:E=268435456;break;default:E=0}E=E&(w.suspendedLanes|F)?0:E,E!==0&&E!==M.retryLane&&(M.retryLane=E,Ro(s,E),Ha(w,s,E,-1))}return b0(),w=o0(Error(n(421))),mf(s,c,F,w)}return E.data==="$?"?(c.flags|=128,c.child=s.child,c=i8.bind(null,s),E._reactRetry=c,null):(s=M.treeContext,oo=Wi(E.nextSibling),ao=c,mr=!0,Qo=null,s!==null&&(Ur[Ko++]=Ji,Ur[Ko++]=Xi,Ur[Ko++]=_o,Ji=s.id,Xi=s.overflow,_o=c),c=d0(c,w.children),c.flags|=4096,c)}function f0(s,c,m){s.lanes|=c;var w=s.alternate;w!==null&&(w.lanes|=c),Jm(s.return,c,m)}function Pa(s,c,m,w,E){var M=s.memoizedState;M===null?s.memoizedState={isBackwards:c,rendering:null,renderingStartTime:0,last:w,tail:m,tailMode:E}:(M.isBackwards=c,M.rendering=null,M.renderingStartTime=0,M.last=w,M.tail=m,M.tailMode=E)}function Qi(s,c,m){var w=c.pendingProps,E=w.revealOrder,M=w.tail;if(ma(s,c,w.children,m),w=Cr.current,w&2)w=w&1|2,c.flags|=128;else{if(s!==null&&s.flags&128)e:for(s=c.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&f0(s,m,c);else if(s.tag===19)f0(s,m,c);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===c)break e;for(;s.sibling===null;){if(s.return===null||s.return===c)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}w&=1}if(kt(Cr,w),!(c.mode&1))c.memoizedState=null;else switch(E){case"forwards":for(m=c.child,E=null;m!==null;)s=m.alternate,s!==null&&dp(s)===null&&(E=m),m=m.sibling;m=E,m===null?(E=c.child,c.child=null):(E=m.sibling,m.sibling=null),Pa(c,!1,E,m,M);break;case"backwards":for(m=null,E=c.child,c.child=null;E!==null;){if(s=E.alternate,s!==null&&dp(s)===null){c.child=E;break}s=E.sibling,E.sibling=m,m=E,E=s}Pa(c,!0,m,null,M);break;case"together":Pa(c,!1,null,null,void 0);break;default:c.memoizedState=null}return c.child}function ti(s,c){!(c.mode&1)&&s!==null&&(s.alternate=null,c.alternate=null,c.flags|=2)}function ni(s,c,m){if(s!==null&&(c.dependencies=s.dependencies),ns|=c.lanes,!(m&c.childLanes))return null;if(s!==null&&c.child!==s.child)throw Error(n(153));if(c.child!==null){for(s=c.child,m=Al(s,s.pendingProps),c.child=m,m.return=c;s.sibling!==null;)s=s.sibling,m=m.sibling=Al(s,s.pendingProps),m.return=c;m.sibling=null}return c.child}function gf(s,c,m){switch(c.tag){case 3:Pc(c),Cl();break;case 5:sv(c);break;case 1:Hr(c.type)&&aa(c);break;case 4:t0(c,c.stateNode.containerInfo);break;case 10:var w=c.type._context,E=c.memoizedProps.value;kt(To,w._currentValue),w._currentValue=E;break;case 13:if(w=c.memoizedState,w!==null)return w.dehydrated!==null?(kt(Cr,Cr.current&1),c.flags|=128,null):m&c.child.childLanes?Op(s,c,m):(kt(Cr,Cr.current&1),s=ni(s,c,m),s!==null?s.sibling:null);kt(Cr,Cr.current&1);break;case 19:if(w=(m&c.childLanes)!==0,s.flags&128){if(w)return Qi(s,c,m);c.flags|=128}if(E=c.memoizedState,E!==null&&(E.rendering=null,E.tail=null,E.lastEffect=null),kt(Cr,Cr.current),w)break;return null;case 22:case 23:return c.lanes=0,pf(s,c,m)}return ni(s,c,m)}var ri,$r,vv,yv;ri=function(s,c){for(var m=c.child;m!==null;){if(m.tag===5||m.tag===6)s.appendChild(m.stateNode);else if(m.tag!==4&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===c)break;for(;m.sibling===null;){if(m.return===null||m.return===c)return;m=m.return}m.sibling.return=m.return,m=m.sibling}},$r=function(){},vv=function(s,c,m,w){var E=s.memoizedProps;if(E!==w){s=c.stateNode,yu(Ki.current);var M=null;switch(m){case"input":E=ct(s,E),w=ct(s,w),M=[];break;case"select":E=B({},E,{value:void 0}),w=B({},w,{value:void 0}),M=[];break;case"textarea":E=Pn(s,E),w=Pn(s,w),M=[];break;default:typeof E.onClick!="function"&&typeof w.onClick=="function"&&(s.onclick=gl)}Qt(m,w);var F;m=null;for(me in E)if(!w.hasOwnProperty(me)&&E.hasOwnProperty(me)&&E[me]!=null)if(me==="style"){var q=E[me];for(F in q)q.hasOwnProperty(F)&&(m||(m={}),m[F]="")}else me!=="dangerouslySetInnerHTML"&&me!=="children"&&me!=="suppressContentEditableWarning"&&me!=="suppressHydrationWarning"&&me!=="autoFocus"&&(i.hasOwnProperty(me)?M||(M=[]):(M=M||[]).push(me,null));for(me in w){var Q=w[me];if(q=E!=null?E[me]:void 0,w.hasOwnProperty(me)&&Q!==q&&(Q!=null||q!=null))if(me==="style")if(q){for(F in q)!q.hasOwnProperty(F)||Q&&Q.hasOwnProperty(F)||(m||(m={}),m[F]="");for(F in Q)Q.hasOwnProperty(F)&&q[F]!==Q[F]&&(m||(m={}),m[F]=Q[F])}else m||(M||(M=[]),M.push(me,m)),m=Q;else me==="dangerouslySetInnerHTML"?(Q=Q?Q.__html:void 0,q=q?q.__html:void 0,Q!=null&&q!==Q&&(M=M||[]).push(me,Q)):me==="children"?typeof Q!="string"&&typeof Q!="number"||(M=M||[]).push(me,""+Q):me!=="suppressContentEditableWarning"&&me!=="suppressHydrationWarning"&&(i.hasOwnProperty(me)?(Q!=null&&me==="onScroll"&&Fn("scroll",s),M||q===Q||(M=[])):(M=M||[]).push(me,Q))}m&&(M=M||[]).push("style",m);var me=M;(c.updateQueue=me)&&(c.flags|=4)}},yv=function(s,c,m,w){m!==w&&(c.flags|=4)};function vf(s,c){if(!mr)switch(s.tailMode){case"hidden":c=s.tail;for(var m=null;c!==null;)c.alternate!==null&&(m=c),c=c.sibling;m===null?s.tail=null:m.sibling=null;break;case"collapsed":m=s.tail;for(var w=null;m!==null;)m.alternate!==null&&(w=m),m=m.sibling;w===null?c||s.tail===null?s.tail=null:s.tail.sibling=null:w.sibling=null}}function ia(s){var c=s.alternate!==null&&s.alternate.child===s.child,m=0,w=0;if(c)for(var E=s.child;E!==null;)m|=E.lanes|E.childLanes,w|=E.subtreeFlags&14680064,w|=E.flags&14680064,E.return=s,E=E.sibling;else for(E=s.child;E!==null;)m|=E.lanes|E.childLanes,w|=E.subtreeFlags,w|=E.flags,E.return=s,E=E.sibling;return s.subtreeFlags|=w,s.childLanes=m,c}function xv(s,c,m){var w=c.pendingProps;switch(ip(c),c.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ia(c),null;case 1:return Hr(c.type)&&Lc(),ia(c),null;case 3:return w=c.stateNode,xu(),ar(Qr),ar(Er),Rt(),w.pendingContext&&(w.context=w.pendingContext,w.pendingContext=null),(s===null||s.child===null)&&(sp(c)?c.flags|=4:s===null||s.memoizedState.isDehydrated&&!(c.flags&256)||(c.flags|=1024,Qo!==null&&(Au(Qo),Qo=null))),$r(s,c),ia(c),null;case 5:cp(c);var E=yu(tf.current);if(m=c.type,s!==null&&c.stateNode!=null)vv(s,c,m,w,E),s.ref!==c.ref&&(c.flags|=512,c.flags|=2097152);else{if(!w){if(c.stateNode===null)throw Error(n(166));return ia(c),null}if(s=yu(Ki.current),sp(c)){w=c.stateNode,m=c.type;var M=c.memoizedProps;switch(w[qi]=c,w[Gd]=M,s=(c.mode&1)!==0,m){case"dialog":Fn("cancel",w),Fn("close",w);break;case"iframe":case"object":case"embed":Fn("load",w);break;case"video":case"audio":for(E=0;E<Zd.length;E++)Fn(Zd[E],w);break;case"source":Fn("error",w);break;case"img":case"image":case"link":Fn("error",w),Fn("load",w);break;case"details":Fn("toggle",w);break;case"input":yt(w,M),Fn("invalid",w);break;case"select":w._wrapperState={wasMultiple:!!M.multiple},Fn("invalid",w);break;case"textarea":Wt(w,M),Fn("invalid",w)}Qt(m,M),E=null;for(var F in M)if(M.hasOwnProperty(F)){var q=M[F];F==="children"?typeof q=="string"?w.textContent!==q&&(M.suppressHydrationWarning!==!0&&Q1(w.textContent,q,s),E=["children",q]):typeof q=="number"&&w.textContent!==""+q&&(M.suppressHydrationWarning!==!0&&Q1(w.textContent,q,s),E=["children",""+q]):i.hasOwnProperty(F)&&q!=null&&F==="onScroll"&&Fn("scroll",w)}switch(m){case"input":et(w),jn(w,M,!0);break;case"textarea":et(w),$n(w);break;case"select":case"option":break;default:typeof M.onClick=="function"&&(w.onclick=gl)}w=E,c.updateQueue=w,w!==null&&(c.flags|=4)}else{F=E.nodeType===9?E:E.ownerDocument,s==="http://www.w3.org/1999/xhtml"&&(s=ve(m)),s==="http://www.w3.org/1999/xhtml"?m==="script"?(s=F.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild)):typeof w.is=="string"?s=F.createElement(m,{is:w.is}):(s=F.createElement(m),m==="select"&&(F=s,w.multiple?F.multiple=!0:w.size&&(F.size=w.size))):s=F.createElementNS(s,m),s[qi]=c,s[Gd]=w,ri(s,c,!1,!1),c.stateNode=s;e:{switch(F=Qn(m,w),m){case"dialog":Fn("cancel",s),Fn("close",s),E=w;break;case"iframe":case"object":case"embed":Fn("load",s),E=w;break;case"video":case"audio":for(E=0;E<Zd.length;E++)Fn(Zd[E],s);E=w;break;case"source":Fn("error",s),E=w;break;case"img":case"image":case"link":Fn("error",s),Fn("load",s),E=w;break;case"details":Fn("toggle",s),E=w;break;case"input":yt(s,w),E=ct(s,w),Fn("invalid",s);break;case"option":E=w;break;case"select":s._wrapperState={wasMultiple:!!w.multiple},E=B({},w,{value:void 0}),Fn("invalid",s);break;case"textarea":Wt(s,w),E=Pn(s,w),Fn("invalid",s);break;default:E=w}Qt(m,E),q=E;for(M in q)if(q.hasOwnProperty(M)){var Q=q[M];M==="style"?Kt(s,Q):M==="dangerouslySetInnerHTML"?(Q=Q?Q.__html:void 0,Q!=null&&It(s,Q)):M==="children"?typeof Q=="string"?(m!=="textarea"||Q!=="")&&Me(s,Q):typeof Q=="number"&&Me(s,""+Q):M!=="suppressContentEditableWarning"&&M!=="suppressHydrationWarning"&&M!=="autoFocus"&&(i.hasOwnProperty(M)?Q!=null&&M==="onScroll"&&Fn("scroll",s):Q!=null&&z(s,M,Q,F))}switch(m){case"input":et(s),jn(s,w,!1);break;case"textarea":et(s),$n(s);break;case"option":w.value!=null&&s.setAttribute("value",""+Ze(w.value));break;case"select":s.multiple=!!w.multiple,M=w.value,M!=null?Mt(s,!!w.multiple,M,!1):w.defaultValue!=null&&Mt(s,!!w.multiple,w.defaultValue,!0);break;default:typeof E.onClick=="function"&&(s.onclick=gl)}switch(m){case"button":case"input":case"select":case"textarea":w=!!w.autoFocus;break e;case"img":w=!0;break e;default:w=!1}}w&&(c.flags|=4)}c.ref!==null&&(c.flags|=512,c.flags|=2097152)}return ia(c),null;case 6:if(s&&c.stateNode!=null)yv(s,c,s.memoizedProps,w);else{if(typeof w!="string"&&c.stateNode===null)throw Error(n(166));if(m=yu(tf.current),yu(Ki.current),sp(c)){if(w=c.stateNode,m=c.memoizedProps,w[qi]=c,(M=w.nodeValue!==m)&&(s=ao,s!==null))switch(s.tag){case 3:Q1(w.nodeValue,m,(s.mode&1)!==0);break;case 5:s.memoizedProps.suppressHydrationWarning!==!0&&Q1(w.nodeValue,m,(s.mode&1)!==0)}M&&(c.flags|=4)}else w=(m.nodeType===9?m:m.ownerDocument).createTextNode(w),w[qi]=c,c.stateNode=w}return ia(c),null;case 13:if(ar(Cr),w=c.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(mr&&oo!==null&&c.mode&1&&!(c.flags&128))Xd(),Cl(),c.flags|=98560,M=!1;else if(M=sp(c),w!==null&&w.dehydrated!==null){if(s===null){if(!M)throw Error(n(318));if(M=c.memoizedState,M=M!==null?M.dehydrated:null,!M)throw Error(n(317));M[qi]=c}else Cl(),!(c.flags&128)&&(c.memoizedState=null),c.flags|=4;ia(c),M=!1}else Qo!==null&&(Au(Qo),Qo=null),M=!0;if(!M)return c.flags&65536?c:null}return c.flags&128?(c.lanes=m,c):(w=w!==null,w!==(s!==null&&s.memoizedState!==null)&&w&&(c.child.flags|=8192,c.mode&1&&(s===null||Cr.current&1?Dr===0&&(Dr=3):b0())),c.updateQueue!==null&&(c.flags|=4),ia(c),null);case 4:return xu(),$r(s,c),s===null&&Tc(c.stateNode.containerInfo),ia(c),null;case 10:return Ym(c.type._context),ia(c),null;case 17:return Hr(c.type)&&Lc(),ia(c),null;case 19:if(ar(Cr),M=c.memoizedState,M===null)return ia(c),null;if(w=(c.flags&128)!==0,F=M.rendering,F===null)if(w)vf(M,!1);else{if(Dr!==0||s!==null&&s.flags&128)for(s=c.child;s!==null;){if(F=dp(s),F!==null){for(c.flags|=128,vf(M,!1),w=F.updateQueue,w!==null&&(c.updateQueue=w,c.flags|=4),c.subtreeFlags=0,w=m,m=c.child;m!==null;)M=m,s=w,M.flags&=14680066,F=M.alternate,F===null?(M.childLanes=0,M.lanes=s,M.child=null,M.subtreeFlags=0,M.memoizedProps=null,M.memoizedState=null,M.updateQueue=null,M.dependencies=null,M.stateNode=null):(M.childLanes=F.childLanes,M.lanes=F.lanes,M.child=F.child,M.subtreeFlags=0,M.deletions=null,M.memoizedProps=F.memoizedProps,M.memoizedState=F.memoizedState,M.updateQueue=F.updateQueue,M.type=F.type,s=F.dependencies,M.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),m=m.sibling;return kt(Cr,Cr.current&1|2),c.child}s=s.sibling}M.tail!==null&&Yt()>Uc&&(c.flags|=128,w=!0,vf(M,!1),c.lanes=4194304)}else{if(!w)if(s=dp(F),s!==null){if(c.flags|=128,w=!0,m=s.updateQueue,m!==null&&(c.updateQueue=m,c.flags|=4),vf(M,!0),M.tail===null&&M.tailMode==="hidden"&&!F.alternate&&!mr)return ia(c),null}else 2*Yt()-M.renderingStartTime>Uc&&m!==1073741824&&(c.flags|=128,w=!0,vf(M,!1),c.lanes=4194304);M.isBackwards?(F.sibling=c.child,c.child=F):(m=M.last,m!==null?m.sibling=F:c.child=F,M.last=F)}return M.tail!==null?(c=M.tail,M.rendering=c,M.tail=c.sibling,M.renderingStartTime=Yt(),c.sibling=null,m=Cr.current,kt(Cr,w?m&1|2:m&1),c):(ia(c),null);case 22:case 23:return w0(),w=c.memoizedState!==null,s!==null&&s.memoizedState!==null!==w&&(c.flags|=8192),w&&c.mode&1?Ao&1073741824&&(ia(c),c.subtreeFlags&6&&(c.flags|=8192)):ia(c),null;case 24:return null;case 25:return null}throw Error(n(156,c.tag))}function Ip(s,c){switch(ip(c),c.tag){case 1:return Hr(c.type)&&Lc(),s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 3:return xu(),ar(Qr),ar(Er),Rt(),s=c.flags,s&65536&&!(s&128)?(c.flags=s&-65537|128,c):null;case 5:return cp(c),null;case 13:if(ar(Cr),s=c.memoizedState,s!==null&&s.dehydrated!==null){if(c.alternate===null)throw Error(n(340));Cl()}return s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 19:return ar(Cr),null;case 4:return xu(),null;case 10:return Ym(c.type._context),null;case 22:case 23:return w0(),null;case 24:return null;default:return null}}var yf=!1,Aa=!1,Q6=typeof WeakSet=="function"?WeakSet:Set,lt=null;function Fc(s,c){var m=s.ref;if(m!==null)if(typeof m=="function")try{m(null)}catch(w){gr(s,c,w)}else m.current=null}function Dp(s,c,m){try{m()}catch(w){gr(s,c,w)}}var wv=!1;function bv(s,c){if(qd=Go,s=Vd(),Z1(s)){if("selectionStart"in s)var m={start:s.selectionStart,end:s.selectionEnd};else e:{m=(m=s.ownerDocument)&&m.defaultView||window;var w=m.getSelection&&m.getSelection();if(w&&w.rangeCount!==0){m=w.anchorNode;var E=w.anchorOffset,M=w.focusNode;w=w.focusOffset;try{m.nodeType,M.nodeType}catch(je){m=null;break e}var F=0,q=-1,Q=-1,me=0,De=0,Pe=s,Ie=null;t:for(;;){for(var at;Pe!==m||E!==0&&Pe.nodeType!==3||(q=F+E),Pe!==M||w!==0&&Pe.nodeType!==3||(Q=F+w),Pe.nodeType===3&&(F+=Pe.nodeValue.length),(at=Pe.firstChild)!==null;)Ie=Pe,Pe=at;for(;;){if(Pe===s)break t;if(Ie===m&&++me===E&&(q=F),Ie===M&&++De===w&&(Q=F),(at=Pe.nextSibling)!==null)break;Pe=Ie,Ie=Pe.parentNode}Pe=at}m=q===-1||Q===-1?null:{start:q,end:Q}}else m=null}m=m||{start:0,end:0}}else m=null;for(fu={focusedElem:s,selectionRange:m},Go=!1,lt=c;lt!==null;)if(c=lt,s=c.child,(c.subtreeFlags&1028)!==0&&s!==null)s.return=c,lt=s;else for(;lt!==null;){c=lt;try{var ft=c.alternate;if(c.flags&1024)switch(c.tag){case 0:case 11:case 15:break;case 1:if(ft!==null){var vt=ft.memoizedProps,jr=ft.memoizedState,oe=c.stateNode,ne=oe.getSnapshotBeforeUpdate(c.elementType===c.type?vt:Mi(c.type,vt),jr);oe.__reactInternalSnapshotBeforeUpdate=ne}break;case 3:var le=c.stateNode.containerInfo;le.nodeType===1?le.textContent="":le.nodeType===9&&le.documentElement&&le.removeChild(le.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(je){gr(c,c.return,je)}if(s=c.sibling,s!==null){s.return=c.return,lt=s;break}lt=c.return}return ft=wv,wv=!1,ft}function xf(s,c,m){var w=c.updateQueue;if(w=w!==null?w.lastEffect:null,w!==null){var E=w=w.next;do{if((E.tag&s)===s){var M=E.destroy;E.destroy=void 0,M!==void 0&&Dp(c,m,M)}E=E.next}while(E!==w)}}function wf(s,c){if(c=c.updateQueue,c=c!==null?c.lastEffect:null,c!==null){var m=c=c.next;do{if((m.tag&s)===s){var w=m.create;m.destroy=w()}m=m.next}while(m!==c)}}function p0(s){var c=s.ref;if(c!==null){var m=s.stateNode;switch(s.tag){case 5:s=m;break;default:s=m}typeof c=="function"?c(s):c.current=s}}function jp(s){var c=s.alternate;c!==null&&(s.alternate=null,jp(c)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(c=s.stateNode,c!==null&&(delete c[qi],delete c[Gd],delete c[Yd],delete c[Nc],delete c[X6])),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}function bf(s){return s.tag===5||s.tag===3||s.tag===4}function Os(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||bf(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function es(s,c,m){var w=s.tag;if(w===5||w===6)s=s.stateNode,c?m.nodeType===8?m.parentNode.insertBefore(s,c):m.insertBefore(s,c):(m.nodeType===8?(c=m.parentNode,c.insertBefore(s,m)):(c=m,c.appendChild(s)),m=m._reactRootContainer,m!=null||c.onclick!==null||(c.onclick=gl));else if(w!==4&&(s=s.child,s!==null))for(es(s,c,m),s=s.sibling;s!==null;)es(s,c,m),s=s.sibling}function ts(s,c,m){var w=s.tag;if(w===5||w===6)s=s.stateNode,c?m.insertBefore(s,c):m.appendChild(s);else if(w!==4&&(s=s.child,s!==null))for(ts(s,c,m),s=s.sibling;s!==null;)ts(s,c,m),s=s.sibling}var Ir=null,Fa=!1;function za(s,c,m){for(m=m.child;m!==null;)Cv(s,c,m),m=m.sibling}function Cv(s,c,m){if(eo&&typeof eo.onCommitFiberUnmount=="function")try{eo.onCommitFiberUnmount(sl,m)}catch(q){}switch(m.tag){case 5:Aa||Fc(m,c);case 6:var w=Ir,E=Fa;Ir=null,za(s,c,m),Ir=w,Fa=E,Ir!==null&&(Fa?(s=Ir,m=m.stateNode,s.nodeType===8?s.parentNode.removeChild(m):s.removeChild(m)):Ir.removeChild(m.stateNode));break;case 18:Ir!==null&&(Fa?(s=Ir,m=m.stateNode,s.nodeType===8?Ac(s.parentNode,m):s.nodeType===1&&Ac(s,m),ki(s)):Ac(Ir,m.stateNode));break;case 4:w=Ir,E=Fa,Ir=m.stateNode.containerInfo,Fa=!0,za(s,c,m),Ir=w,Fa=E;break;case 0:case 11:case 14:case 15:if(!Aa&&(w=m.updateQueue,w!==null&&(w=w.lastEffect,w!==null))){E=w=w.next;do{var M=E,F=M.destroy;M=M.tag,F!==void 0&&(M&2||M&4)&&Dp(m,c,F),E=E.next}while(E!==w)}za(s,c,m);break;case 1:if(!Aa&&(Fc(m,c),w=m.stateNode,typeof w.componentWillUnmount=="function"))try{w.props=m.memoizedProps,w.state=m.memoizedState,w.componentWillUnmount()}catch(q){gr(m,c,q)}za(s,c,m);break;case 21:za(s,c,m);break;case 22:m.mode&1?(Aa=(w=Aa)||m.memoizedState!==null,za(s,c,m),Aa=w):za(s,c,m);break;default:za(s,c,m)}}function Sv(s){var c=s.updateQueue;if(c!==null){s.updateQueue=null;var m=s.stateNode;m===null&&(m=s.stateNode=new Q6),c.forEach(function(w){var E=Lv.bind(null,s,w);m.has(w)||(m.add(w),w.then(E,E))})}}function Ai(s,c){var m=c.deletions;if(m!==null)for(var w=0;w<m.length;w++){var E=m[w];try{var M=s,F=c,q=F;e:for(;q!==null;){switch(q.tag){case 5:Ir=q.stateNode,Fa=!1;break e;case 3:Ir=q.stateNode.containerInfo,Fa=!0;break e;case 4:Ir=q.stateNode.containerInfo,Fa=!0;break e}q=q.return}if(Ir===null)throw Error(n(160));Cv(M,F,E),Ir=null,Fa=!1;var Q=E.alternate;Q!==null&&(Q.return=null),E.return=null}catch(me){gr(E,c,me)}}if(c.subtreeFlags&12854)for(c=c.child;c!==null;)h0(c,s),c=c.sibling}function h0(s,c){var m=s.alternate,w=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:if(Ai(c,s),uo(s),w&4){try{xf(3,s,s.return),wf(3,s)}catch(vt){gr(s,s.return,vt)}try{xf(5,s,s.return)}catch(vt){gr(s,s.return,vt)}}break;case 1:Ai(c,s),uo(s),w&512&&m!==null&&Fc(m,m.return);break;case 5:if(Ai(c,s),uo(s),w&512&&m!==null&&Fc(m,m.return),s.flags&32){var E=s.stateNode;try{Me(E,"")}catch(vt){gr(s,s.return,vt)}}if(w&4&&(E=s.stateNode,E!=null)){var M=s.memoizedProps,F=m!==null?m.memoizedProps:M,q=s.type,Q=s.updateQueue;if(s.updateQueue=null,Q!==null)try{q==="input"&&M.type==="radio"&&M.name!=null&&Pt(E,M),Qn(q,F);var me=Qn(q,M);for(F=0;F<Q.length;F+=2){var De=Q[F],Pe=Q[F+1];De==="style"?Kt(E,Pe):De==="dangerouslySetInnerHTML"?It(E,Pe):De==="children"?Me(E,Pe):z(E,De,Pe,me)}switch(q){case"input":St(E,M);break;case"textarea":hr(E,M);break;case"select":var Ie=E._wrapperState.wasMultiple;E._wrapperState.wasMultiple=!!M.multiple;var at=M.value;at!=null?Mt(E,!!M.multiple,at,!1):Ie!==!!M.multiple&&(M.defaultValue!=null?Mt(E,!!M.multiple,M.defaultValue,!0):Mt(E,!!M.multiple,M.multiple?[]:"",!1))}E[Gd]=M}catch(vt){gr(s,s.return,vt)}}break;case 6:if(Ai(c,s),uo(s),w&4){if(s.stateNode===null)throw Error(n(162));E=s.stateNode,M=s.memoizedProps;try{E.nodeValue=M}catch(vt){gr(s,s.return,vt)}}break;case 3:if(Ai(c,s),uo(s),w&4&&m!==null&&m.memoizedState.isDehydrated)try{ki(c.containerInfo)}catch(vt){gr(s,s.return,vt)}break;case 4:Ai(c,s),uo(s);break;case 13:Ai(c,s),uo(s),E=s.child,E.flags&8192&&(M=E.memoizedState!==null,E.stateNode.isHidden=M,!M||E.alternate!==null&&E.alternate.memoizedState!==null||(v0=Yt())),w&4&&Sv(s);break;case 22:if(De=m!==null&&m.memoizedState!==null,s.mode&1?(Aa=(me=Aa)||De,Ai(c,s),Aa=me):Ai(c,s),uo(s),w&8192){if(me=s.memoizedState!==null,(s.stateNode.isHidden=me)&&!De&&s.mode&1)for(lt=s,De=s.child;De!==null;){for(Pe=lt=De;lt!==null;){switch(Ie=lt,at=Ie.child,Ie.tag){case 0:case 11:case 14:case 15:xf(4,Ie,Ie.return);break;case 1:Fc(Ie,Ie.return);var ft=Ie.stateNode;if(typeof ft.componentWillUnmount=="function"){w=Ie,m=Ie.return;try{c=w,ft.props=c.memoizedProps,ft.state=c.memoizedState,ft.componentWillUnmount()}catch(vt){gr(w,m,vt)}}break;case 5:Fc(Ie,Ie.return);break;case 22:if(Ie.memoizedState!==null){Cf(Pe);continue}}at!==null?(at.return=Ie,lt=at):Cf(Pe)}De=De.sibling}e:for(De=null,Pe=s;;){if(Pe.tag===5){if(De===null){De=Pe;try{E=Pe.stateNode,me?(M=E.style,typeof M.setProperty=="function"?M.setProperty("display","none","important"):M.display="none"):(q=Pe.stateNode,Q=Pe.memoizedProps.style,F=Q!=null&&Q.hasOwnProperty("display")?Q.display:null,q.style.display=xt("display",F))}catch(vt){gr(s,s.return,vt)}}}else if(Pe.tag===6){if(De===null)try{Pe.stateNode.nodeValue=me?"":Pe.memoizedProps}catch(vt){gr(s,s.return,vt)}}else if((Pe.tag!==22&&Pe.tag!==23||Pe.memoizedState===null||Pe===s)&&Pe.child!==null){Pe.child.return=Pe,Pe=Pe.child;continue}if(Pe===s)break e;for(;Pe.sibling===null;){if(Pe.return===null||Pe.return===s)break e;De===Pe&&(De=null),Pe=Pe.return}De===Pe&&(De=null),Pe.sibling.return=Pe.return,Pe=Pe.sibling}}break;case 19:Ai(c,s),uo(s),w&4&&Sv(s);break;case 21:break;default:Ai(c,s),uo(s)}}function uo(s){var c=s.flags;if(c&2){try{e:{for(var m=s.return;m!==null;){if(bf(m)){var w=m;break e}m=m.return}throw Error(n(160))}switch(w.tag){case 5:var E=w.stateNode;w.flags&32&&(Me(E,""),w.flags&=-33);var M=Os(s);ts(s,M,E);break;case 3:case 4:var F=w.stateNode.containerInfo,q=Os(s);es(s,q,F);break;default:throw Error(n(161))}}catch(Q){gr(s,s.return,Q)}s.flags&=-3}c&4096&&(s.flags&=-4097)}function e8(s,c,m){lt=s,m0(s)}function m0(s,c,m){for(var w=(s.mode&1)!==0;lt!==null;){var E=lt,M=E.child;if(E.tag===22&&w){var F=E.memoizedState!==null||yf;if(!F){var q=E.alternate,Q=q!==null&&q.memoizedState!==null||Aa;q=yf;var me=Aa;if(yf=F,(Aa=Q)&&!me)for(lt=E;lt!==null;)F=lt,Q=F.child,F.tag===22&&F.memoizedState!==null?g0(E):Q!==null?(Q.return=F,lt=Q):g0(E);for(;M!==null;)lt=M,m0(M),M=M.sibling;lt=E,yf=q,Aa=me}kv(s)}else E.subtreeFlags&8772&&M!==null?(M.return=E,lt=M):kv(s)}}function kv(s){for(;lt!==null;){var c=lt;if(c.flags&8772){var m=c.alternate;try{if(c.flags&8772)switch(c.tag){case 0:case 11:case 15:Aa||wf(5,c);break;case 1:var w=c.stateNode;if(c.flags&4&&!Aa)if(m===null)w.componentDidMount();else{var E=c.elementType===c.type?m.memoizedProps:Mi(c.type,m.memoizedProps);w.componentDidUpdate(E,m.memoizedState,w.__reactInternalSnapshotBeforeUpdate)}var M=c.updateQueue;M!==null&&e0(c,M,w);break;case 3:var F=c.updateQueue;if(F!==null){if(m=null,c.child!==null)switch(c.child.tag){case 5:m=c.child.stateNode;break;case 1:m=c.child.stateNode}e0(c,F,m)}break;case 5:var q=c.stateNode;if(m===null&&c.flags&4){m=q;var Q=c.memoizedProps;switch(c.type){case"button":case"input":case"select":case"textarea":Q.autoFocus&&m.focus();break;case"img":Q.src&&(m.src=Q.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(c.memoizedState===null){var me=c.alternate;if(me!==null){var De=me.memoizedState;if(De!==null){var Pe=De.dehydrated;Pe!==null&&ki(Pe)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Aa||c.flags&512&&p0(c)}catch(Ie){gr(c,c.return,Ie)}}if(c===s){lt=null;break}if(m=c.sibling,m!==null){m.return=c.return,lt=m;break}lt=c.return}}function Cf(s){for(;lt!==null;){var c=lt;if(c===s){lt=null;break}var m=c.sibling;if(m!==null){m.return=c.return,lt=m;break}lt=c.return}}function g0(s){for(;lt!==null;){var c=lt;try{switch(c.tag){case 0:case 11:case 15:var m=c.return;try{wf(4,c)}catch(Q){gr(c,m,Q)}break;case 1:var w=c.stateNode;if(typeof w.componentDidMount=="function"){var E=c.return;try{w.componentDidMount()}catch(Q){gr(c,E,Q)}}var M=c.return;try{p0(c)}catch(Q){gr(c,M,Q)}break;case 5:var F=c.return;try{p0(c)}catch(Q){gr(c,F,Q)}}}catch(Q){gr(c,c.return,Q)}if(c===s){lt=null;break}var q=c.sibling;if(q!==null){q.return=c.return,lt=q;break}lt=c.return}}var t8=Math.ceil,Tl=j.ReactCurrentDispatcher,Ru=j.ReactCurrentOwner,ga=j.ReactCurrentBatchConfig,xn=0,ta=null,Zr=null,va=0,Ao=0,zc=Xo(0),Dr=0,Sf=null,ns=0,Hc=0,Pp=0,kf=null,co=null,v0=0,Uc=1/0,No=null,Bc=!1,Mu=null,Rl=null,Fp=!1,Is=null,Ef=0,Ml=0,Vc=null,_f=-1,Na=0;function Wr(){return xn&6?Yt():_f!==-1?_f:_f=Yt()}function rs(s){return s.mode&1?xn&2&&va!==0?va&-va:K6.transition!==null?(Na===0&&(Na=mc()),Na):(s=Mn,s!==0||(s=window.event,s=s===void 0?16:Cc(s.type)),s):1}function Ha(s,c,m,w){if(50<Ml)throw Ml=0,Vc=null,Error(n(185));bs(s,m,w),(!(xn&2)||s!==ta)&&(s===ta&&(!(xn&2)&&(Hc|=m),Dr===4&&Ni(s,va)),fo(s,w),m===1&&xn===0&&!(c.mode&1)&&(Uc=Yt()+500,Oc&&Yi()))}function fo(s,c){var m=s.callbackNode;ru(s,c);var w=Si(s,s===ta?va:0);if(w===0)m!==null&&fa(m),s.callbackNode=null,s.callbackPriority=0;else if(c=w&-w,s.callbackPriority!==c){if(m!=null&&fa(m),c===1)s.tag===0?yl(y0.bind(null,s)):ap(y0.bind(null,s)),Mc(function(){!(xn&6)&&Yi()}),m=null;else{switch(vc(w)){case 1:m=bi;break;case 4:m=tu;break;case 16:m=nu;break;case 536870912:m=fc;break;default:m=nu}m=Iv(m,zp.bind(null,s))}s.callbackPriority=c,s.callbackNode=m}}function zp(s,c){if(_f=-1,Na=0,xn&6)throw Error(n(327));var m=s.callbackNode;if($c()&&s.callbackNode!==m)return null;var w=Si(s,s===ta?va:0);if(w===0)return null;if(w&30||w&s.expiredLanes||c)c=Hp(s,w);else{c=w;var E=xn;xn|=2;var M=_v();(ta!==s||va!==c)&&(No=null,Uc=Yt()+500,Ds(s,c));do try{Tv();break}catch(q){Ev(s,q)}while(!0);Gm(),Tl.current=M,xn=E,Zr!==null?c=0:(ta=null,va=0,c=Dr)}if(c!==0){if(c===2&&(E=ul(s),E!==0&&(w=E,c=Tf(s,E))),c===1)throw m=Sf,Ds(s,0),Ni(s,w),fo(s,Yt()),m;if(c===6)Ni(s,w);else{if(E=s.current.alternate,!(w&30)&&!n8(E)&&(c=Hp(s,w),c===2&&(M=ul(s),M!==0&&(w=M,c=Tf(s,M))),c===1))throw m=Sf,Ds(s,0),Ni(s,w),fo(s,Yt()),m;switch(s.finishedWork=E,s.finishedLanes=w,c){case 0:case 1:throw Error(n(345));case 2:Lu(s,co,No);break;case 3:if(Ni(s,w),(w&130023424)===w&&(c=v0+500-Yt(),10<c)){if(Si(s,0)!==0)break;if(E=s.suspendedLanes,(E&w)!==w){Wr(),s.pingedLanes|=s.suspendedLanes&E;break}s.timeoutHandle=tp(Lu.bind(null,s,co,No),c);break}Lu(s,co,No);break;case 4:if(Ni(s,w),(w&4194240)===w)break;for(c=s.eventTimes,E=-1;0<w;){var F=31-Ia(w);M=1<<F,F=c[F],F>E&&(E=F),w&=~M}if(w=E,w=Yt()-w,w=(120>w?120:480>w?480:1080>w?1080:1920>w?1920:3e3>w?3e3:4320>w?4320:1960*t8(w/1960))-w,10<w){s.timeoutHandle=tp(Lu.bind(null,s,co,No),w);break}Lu(s,co,No);break;case 5:Lu(s,co,No);break;default:throw Error(n(329))}}}return fo(s,Yt()),s.callbackNode===m?zp.bind(null,s):null}function Tf(s,c){var m=kf;return s.current.memoizedState.isDehydrated&&(Ds(s,c).flags|=256),s=Hp(s,c),s!==2&&(c=co,co=m,c!==null&&Au(c)),s}function Au(s){co===null?co=s:co.push.apply(co,s)}function n8(s){for(var c=s;;){if(c.flags&16384){var m=c.updateQueue;if(m!==null&&(m=m.stores,m!==null))for(var w=0;w<m.length;w++){var E=m[w],M=E.getSnapshot;E=E.value;try{if(!_i(M(),E))return!1}catch(F){return!1}}}if(m=c.child,c.subtreeFlags&16384&&m!==null)m.return=c,c=m;else{if(c===s)break;for(;c.sibling===null;){if(c.return===null||c.return===s)return!0;c=c.return}c.sibling.return=c.return,c=c.sibling}}return!0}function Ni(s,c){for(c&=~Pp,c&=~Hc,s.suspendedLanes|=c,s.pingedLanes&=~c,s=s.expirationTimes;0<c;){var m=31-Ia(c),w=1<<m;s[m]=-1,c&=~w}}function y0(s){if(xn&6)throw Error(n(327));$c();var c=Si(s,0);if(!(c&1))return fo(s,Yt()),null;var m=Hp(s,c);if(s.tag!==0&&m===2){var w=ul(s);w!==0&&(c=w,m=Tf(s,w))}if(m===1)throw m=Sf,Ds(s,0),Ni(s,c),fo(s,Yt()),m;if(m===6)throw Error(n(345));return s.finishedWork=s.current.alternate,s.finishedLanes=c,Lu(s,co,No),fo(s,Yt()),null}function x0(s,c){var m=xn;xn|=1;try{return s(c)}finally{xn=m,xn===0&&(Uc=Yt()+500,Oc&&Yi())}}function Nu(s){Is!==null&&Is.tag===0&&!(xn&6)&&$c();var c=xn;xn|=1;var m=ga.transition,w=Mn;try{if(ga.transition=null,Mn=1,s)return s()}finally{Mn=w,ga.transition=m,xn=c,!(xn&6)&&Yi()}}function w0(){Ao=zc.current,ar(zc)}function Ds(s,c){s.finishedWork=null,s.finishedLanes=0;var m=s.timeoutHandle;if(m!==-1&&(s.timeoutHandle=-1,Vm(m)),Zr!==null)for(m=Zr.return;m!==null;){var w=m;switch(ip(w),w.tag){case 1:w=w.type.childContextTypes,w!=null&&Lc();break;case 3:xu(),ar(Qr),ar(Er),Rt();break;case 5:cp(w);break;case 4:xu();break;case 13:ar(Cr);break;case 19:ar(Cr);break;case 10:Ym(w.type._context);break;case 22:case 23:w0()}m=m.return}if(ta=s,Zr=s=Al(s.current,null),va=Ao=c,Dr=0,Sf=null,Pp=Hc=ns=0,co=kf=null,vu!==null){for(c=0;c<vu.length;c++)if(m=vu[c],w=m.interleaved,w!==null){m.interleaved=null;var E=w.next,M=m.pending;if(M!==null){var F=M.next;M.next=E,w.next=F}m.pending=w}vu=null}return s}function Ev(s,c){do{var m=Zr;try{if(Gm(),on.current=Eu,fp){for(var w=Nn.memoizedState;w!==null;){var E=w.queue;E!==null&&(E.pending=null),w=w.next}fp=!1}if(Gn=0,oa=Br=Nn=null,rf=!1,wu=0,Ru.current=null,m===null||m.return===null){Dr=1,Sf=c,Zr=null;break}e:{var M=s,F=m.return,q=m,Q=c;if(c=va,q.flags|=32768,Q!==null&&typeof Q=="object"&&typeof Q.then=="function"){var me=Q,De=q,Pe=De.tag;if(!(De.mode&1)&&(Pe===0||Pe===11||Pe===15)){var Ie=De.alternate;Ie?(De.updateQueue=Ie.updateQueue,De.memoizedState=Ie.memoizedState,De.lanes=Ie.lanes):(De.updateQueue=null,De.memoizedState=null)}var at=fv(F);if(at!==null){at.flags&=-257,_l(at,F,q,M,c),at.mode&1&&l0(M,me,c),c=at,Q=me;var ft=c.updateQueue;if(ft===null){var vt=new Set;vt.add(Q),c.updateQueue=vt}else ft.add(Q);break e}else{if(!(c&1)){l0(M,me,c),b0();break e}Q=Error(n(426))}}else if(mr&&q.mode&1){var jr=fv(F);if(jr!==null){!(jr.flags&65536)&&(jr.flags|=256),_l(jr,F,q,M,c),As(_u(Q,q));break e}}M=Q=_u(Q,q),Dr!==4&&(Dr=2),kf===null?kf=[M]:kf.push(M),M=F;do{switch(M.tag){case 3:M.flags|=65536,c&=-c,M.lanes|=c;var oe=dv(M,Q,c);iv(M,oe);break e;case 1:q=Q;var ne=M.type,le=M.stateNode;if(!(M.flags&128)&&(typeof ne.getDerivedStateFromError=="function"||le!==null&&typeof le.componentDidCatch=="function"&&(Rl===null||!Rl.has(le)))){M.flags|=65536,c&=-c,M.lanes|=c;var je=s0(M,q,c);iv(M,je);break e}}M=M.return}while(M!==null)}Mv(m)}catch(pt){c=pt,Zr===m&&m!==null&&(Zr=m=m.return);continue}break}while(!0)}function _v(){var s=Tl.current;return Tl.current=Eu,s===null?Eu:s}function b0(){(Dr===0||Dr===3||Dr===2)&&(Dr=4),ta===null||!(ns&268435455)&&!(Hc&268435455)||Ni(ta,va)}function Hp(s,c){var m=xn;xn|=2;var w=_v();(ta!==s||va!==c)&&(No=null,Ds(s,c));do try{r8();break}catch(E){Ev(s,E)}while(!0);if(Gm(),xn=m,Tl.current=w,Zr!==null)throw Error(n(261));return ta=null,va=0,Dr}function r8(){for(;Zr!==null;)Rv(Zr)}function Tv(){for(;Zr!==null&&!xi();)Rv(Zr)}function Rv(s){var c=Ov(s.alternate,s,Ao);s.memoizedProps=s.pendingProps,c===null?Mv(s):Zr=c,Ru.current=null}function Mv(s){var c=s;do{var m=c.alternate;if(s=c.return,c.flags&32768){if(m=Ip(m,c),m!==null){m.flags&=32767,Zr=m;return}if(s!==null)s.flags|=32768,s.subtreeFlags=0,s.deletions=null;else{Dr=6,Zr=null;return}}else if(m=xv(m,c,Ao),m!==null){Zr=m;return}if(c=c.sibling,c!==null){Zr=c;return}Zr=c=s}while(c!==null);Dr===0&&(Dr=5)}function Lu(s,c,m){var w=Mn,E=ga.transition;try{ga.transition=null,Mn=1,a8(s,c,m,w)}finally{ga.transition=E,Mn=w}return null}function a8(s,c,m,w){do $c();while(Is!==null);if(xn&6)throw Error(n(327));m=s.finishedWork;var E=s.finishedLanes;if(m===null)return null;if(s.finishedWork=null,s.finishedLanes=0,m===s.current)throw Error(n(177));s.callbackNode=null,s.callbackPriority=0;var M=m.lanes|m.childLanes;if(Cm(s,M),s===ta&&(Zr=ta=null,va=0),!(m.subtreeFlags&2064)&&!(m.flags&2064)||Fp||(Fp=!0,Iv(nu,function(){return $c(),null})),M=(m.flags&15990)!==0,m.subtreeFlags&15990||M){M=ga.transition,ga.transition=null;var F=Mn;Mn=1;var q=xn;xn|=4,Ru.current=null,bv(s,m),h0(m,s),Ec(fu),Go=!!qd,fu=qd=null,s.current=m,e8(m),wi(),xn=q,Mn=F,ga.transition=M}else s.current=m;if(Fp&&(Fp=!1,Is=s,Ef=E),M=s.pendingLanes,M===0&&(Rl=null),Od(m.stateNode),fo(s,Yt()),c!==null)for(w=s.onRecoverableError,m=0;m<c.length;m++)E=c[m],w(E.value,{componentStack:E.stack,digest:E.digest});if(Bc)throw Bc=!1,s=Mu,Mu=null,s;return Ef&1&&s.tag!==0&&$c(),M=s.pendingLanes,M&1?s===Vc?Ml++:(Ml=0,Vc=s):Ml=0,Yi(),null}function $c(){if(Is!==null){var s=vc(Ef),c=ga.transition,m=Mn;try{if(ga.transition=null,Mn=16>s?16:s,Is===null)var w=!1;else{if(s=Is,Is=null,Ef=0,xn&6)throw Error(n(331));var E=xn;for(xn|=4,lt=s.current;lt!==null;){var M=lt,F=M.child;if(lt.flags&16){var q=M.deletions;if(q!==null){for(var Q=0;Q<q.length;Q++){var me=q[Q];for(lt=me;lt!==null;){var De=lt;switch(De.tag){case 0:case 11:case 15:xf(8,De,M)}var Pe=De.child;if(Pe!==null)Pe.return=De,lt=Pe;else for(;lt!==null;){De=lt;var Ie=De.sibling,at=De.return;if(jp(De),De===me){lt=null;break}if(Ie!==null){Ie.return=at,lt=Ie;break}lt=at}}}var ft=M.alternate;if(ft!==null){var vt=ft.child;if(vt!==null){ft.child=null;do{var jr=vt.sibling;vt.sibling=null,vt=jr}while(vt!==null)}}lt=M}}if(M.subtreeFlags&2064&&F!==null)F.return=M,lt=F;else e:for(;lt!==null;){if(M=lt,M.flags&2048)switch(M.tag){case 0:case 11:case 15:xf(9,M,M.return)}var oe=M.sibling;if(oe!==null){oe.return=M.return,lt=oe;break e}lt=M.return}}var ne=s.current;for(lt=ne;lt!==null;){F=lt;var le=F.child;if(F.subtreeFlags&2064&&le!==null)le.return=F,lt=le;else e:for(F=ne;lt!==null;){if(q=lt,q.flags&2048)try{switch(q.tag){case 0:case 11:case 15:wf(9,q)}}catch(pt){gr(q,q.return,pt)}if(q===F){lt=null;break e}var je=q.sibling;if(je!==null){je.return=q.return,lt=je;break e}lt=q.return}}if(xn=E,Yi(),eo&&typeof eo.onPostCommitFiberRoot=="function")try{eo.onPostCommitFiberRoot(sl,s)}catch(pt){}w=!0}return w}finally{Mn=m,ga.transition=c}}return!1}function Av(s,c,m){c=_u(m,c),c=dv(s,c,1),s=Sl(s,c,1),c=Wr(),s!==null&&(bs(s,1,c),fo(s,c))}function gr(s,c,m){if(s.tag===3)Av(s,s,m);else for(;c!==null;){if(c.tag===3){Av(c,s,m);break}else if(c.tag===1){var w=c.stateNode;if(typeof c.type.getDerivedStateFromError=="function"||typeof w.componentDidCatch=="function"&&(Rl===null||!Rl.has(w))){s=_u(m,s),s=s0(c,s,1),c=Sl(c,s,1),s=Wr(),c!==null&&(bs(c,1,s),fo(c,s));break}}c=c.return}}function o8(s,c,m){var w=s.pingCache;w!==null&&w.delete(c),c=Wr(),s.pingedLanes|=s.suspendedLanes&m,ta===s&&(va&m)===m&&(Dr===4||Dr===3&&(va&130023424)===va&&500>Yt()-v0?Ds(s,0):Pp|=m),fo(s,c)}function Nv(s,c){c===0&&(s.mode&1?(c=Eo,Eo<<=1,!(Eo&130023424)&&(Eo=4194304)):c=1);var m=Wr();s=Ro(s,c),s!==null&&(bs(s,c,m),fo(s,m))}function i8(s){var c=s.memoizedState,m=0;c!==null&&(m=c.retryLane),Nv(s,m)}function Lv(s,c){var m=0;switch(s.tag){case 13:var w=s.stateNode,E=s.memoizedState;E!==null&&(m=E.retryLane);break;case 19:w=s.stateNode;break;default:throw Error(n(314))}w!==null&&w.delete(c),Nv(s,m)}var Ov;Ov=function(s,c,m){if(s!==null)if(s.memoizedProps!==c.pendingProps||Qr.current)Vr=!0;else{if(!(s.lanes&m)&&!(c.flags&128))return Vr=!1,gf(s,c,m);Vr=!!(s.flags&131072)}else Vr=!1,mr&&c.flags&1048576&&nv(c,Ms,c.index);switch(c.lanes=0,c.tag){case 2:var w=c.type;ti(s,c),s=c.pendingProps;var E=ro(c,Er.current);br(c,m),E=kl(null,c,w,s,E,m);var M=Ri();return c.flags|=1,typeof E=="object"&&E!==null&&typeof E.render=="function"&&E.$$typeof===void 0?(c.tag=1,c.memoizedState=null,c.updateQueue=null,Hr(w)?(M=!0,aa(c)):M=!1,c.memoizedState=E.state!==null&&E.state!==void 0?E.state:null,Qm(c),E.updater=Mp,c.stateNode=E,E._reactInternals=c,df(c,w,s,m),c=hf(null,c,w,!0,M,m)):(c.tag=0,mr&&M&&op(c),ma(null,c,E,m),c=c.child),c;case 16:w=c.elementType;e:{switch(ti(s,c),s=c.pendingProps,E=w._init,w=E(w._payload),c.type=w,E=c.tag=l8(w),s=Mi(w,s),E){case 0:c=pv(null,c,w,s,m);break e;case 1:c=hv(null,c,w,s,m);break e;case 11:c=lo(null,c,w,s,m);break e;case 14:c=Tu(null,c,w,Mi(w.type,s),m);break e}throw Error(n(306,w,""))}return c;case 0:return w=c.type,E=c.pendingProps,E=c.elementType===w?E:Mi(w,E),pv(s,c,w,E,m);case 1:return w=c.type,E=c.pendingProps,E=c.elementType===w?E:Mi(w,E),hv(s,c,w,E,m);case 3:e:{if(Pc(c),s===null)throw Error(n(387));w=c.pendingProps,M=c.memoizedState,E=M.element,ov(s,c),Kd(c,w,null,m);var F=c.memoizedState;if(w=F.element,M.isDehydrated)if(M={element:w,isDehydrated:!1,cache:F.cache,pendingSuspenseBoundaries:F.pendingSuspenseBoundaries,transitions:F.transitions},c.updateQueue.baseState=M,c.memoizedState=M,c.flags&256){E=_u(Error(n(423)),c),c=mv(s,c,w,m,E);break e}else if(w!==E){E=_u(Error(n(424)),c),c=mv(s,c,w,m,E);break e}else for(oo=Wi(c.stateNode.containerInfo.firstChild),ao=c,mr=!0,Qo=null,m=tt(c,null,w,m),c.child=m;m;)m.flags=m.flags&-3|4096,m=m.sibling;else{if(Cl(),w===E){c=ni(s,c,m);break e}ma(s,c,w,m)}c=c.child}return c;case 5:return sv(c),s===null&&Wm(c),w=c.type,E=c.pendingProps,M=s!==null?s.memoizedProps:null,F=E.children,ep(w,E)?F=null:M!==null&&ep(w,M)&&(c.flags|=32),u0(s,c),ma(s,c,F,m),c.child;case 6:return s===null&&Wm(c),null;case 13:return Op(s,c,m);case 4:return t0(c,c.stateNode.containerInfo),w=c.pendingProps,s===null?c.child=Lr(c,null,w,m):ma(s,c,w,m),c.child;case 11:return w=c.type,E=c.pendingProps,E=c.elementType===w?E:Mi(w,E),lo(s,c,w,E,m);case 7:return ma(s,c,c.pendingProps,m),c.child;case 8:return ma(s,c,c.pendingProps.children,m),c.child;case 12:return ma(s,c,c.pendingProps.children,m),c.child;case 10:e:{if(w=c.type._context,E=c.pendingProps,M=c.memoizedProps,F=E.value,kt(To,w._currentValue),w._currentValue=F,M!==null)if(_i(M.value,F)){if(M.children===E.children&&!Qr.current){c=ni(s,c,m);break e}}else for(M=c.child,M!==null&&(M.return=c);M!==null;){var q=M.dependencies;if(q!==null){F=M.child;for(var Q=q.firstContext;Q!==null;){if(Q.context===w){if(M.tag===1){Q=Ns(-1,m&-m),Q.tag=2;var me=M.updateQueue;if(me!==null){me=me.shared;var De=me.pending;De===null?Q.next=Q:(Q.next=De.next,De.next=Q),me.pending=Q}}M.lanes|=m,Q=M.alternate,Q!==null&&(Q.lanes|=m),Jm(M.return,m,c),q.lanes|=m;break}Q=Q.next}}else if(M.tag===10)F=M.type===c.type?null:M.child;else if(M.tag===18){if(F=M.return,F===null)throw Error(n(341));F.lanes|=m,q=F.alternate,q!==null&&(q.lanes|=m),Jm(F,m,c),F=M.sibling}else F=M.child;if(F!==null)F.return=M;else for(F=M;F!==null;){if(F===c){F=null;break}if(M=F.sibling,M!==null){M.return=F.return,F=M;break}F=F.return}M=F}ma(s,c,E.children,m),c=c.child}return c;case 9:return E=c.type,w=c.pendingProps.children,br(c,m),E=ei(E),w=w(E),c.flags|=1,ma(s,c,w,m),c.child;case 14:return w=c.type,E=Mi(w,c.pendingProps),E=Mi(w.type,E),Tu(s,c,w,E,m);case 15:return Xt(s,c,c.type,c.pendingProps,m);case 17:return w=c.type,E=c.pendingProps,E=c.elementType===w?E:Mi(w,E),ti(s,c),c.tag=1,Hr(w)?(s=!0,aa(c)):s=!1,br(c,m),Ap(c,w,E),df(c,w,E,m),hf(null,c,w,!0,s,m);case 19:return Qi(s,c,m);case 22:return pf(s,c,m)}throw Error(n(156,c.tag))};function Iv(s,c){return ir(s,c)}function s8(s,c,m,w){this.tag=s,this.key=m,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=c,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=w,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ai(s,c,m,w){return new s8(s,c,m,w)}function C0(s){return s=s.prototype,!(!s||!s.isReactComponent)}function l8(s){if(typeof s=="function")return C0(s)?1:0;if(s!=null){if(s=s.$$typeof,s===he)return 11;if(s===ke)return 14}return 2}function Al(s,c){var m=s.alternate;return m===null?(m=ai(s.tag,c,s.key,s.mode),m.elementType=s.elementType,m.type=s.type,m.stateNode=s.stateNode,m.alternate=s,s.alternate=m):(m.pendingProps=c,m.type=s.type,m.flags=0,m.subtreeFlags=0,m.deletions=null),m.flags=s.flags&14680064,m.childLanes=s.childLanes,m.lanes=s.lanes,m.child=s.child,m.memoizedProps=s.memoizedProps,m.memoizedState=s.memoizedState,m.updateQueue=s.updateQueue,c=s.dependencies,m.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},m.sibling=s.sibling,m.index=s.index,m.ref=s.ref,m}function Rf(s,c,m,w,E,M){var F=2;if(w=s,typeof s=="function")C0(s)&&(F=1);else if(typeof s=="string")F=5;else e:switch(s){case W:return js(m.children,E,M,c);case G:F=8,E|=8;break;case ae:return s=ai(12,m,c,E|2),s.elementType=ae,s.lanes=M,s;case ue:return s=ai(13,m,c,E),s.elementType=ue,s.lanes=M,s;case Te:return s=ai(19,m,c,E),s.elementType=Te,s.lanes=M,s;case xe:return Nl(m,E,M,c);default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case ye:F=10;break e;case ce:F=9;break e;case he:F=11;break e;case ke:F=14;break e;case Ee:F=16,w=null;break e}throw Error(n(130,s==null?s:typeof s,""))}return c=ai(F,m,c,E),c.elementType=s,c.type=w,c.lanes=M,c}function js(s,c,m,w){return s=ai(7,s,w,c),s.lanes=m,s}function Nl(s,c,m,w){return s=ai(22,s,w,c),s.elementType=xe,s.lanes=m,s.stateNode={isHidden:!1},s}function S0(s,c,m){return s=ai(6,s,null,c),s.lanes=m,s}function Up(s,c,m){return c=ai(4,s.children!==null?s.children:[],s.key,c),c.lanes=m,c.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},c}function Dv(s,c,m,w,E){this.tag=c,this.containerInfo=s,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gc(0),this.expirationTimes=gc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gc(0),this.identifierPrefix=w,this.onRecoverableError=E,this.mutableSourceEagerHydrationData=null}function Bp(s,c,m,w,E,M,F,q,Q){return s=new Dv(s,c,m,q,Q),c===1?(c=1,M===!0&&(c|=8)):c=0,M=ai(3,null,null,c),s.current=M,M.stateNode=s,M.memoizedState={element:w,isDehydrated:m,cache:null,transitions:null,pendingSuspenseBoundaries:null},Qm(M),s}function u8(s,c,m){var w=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:H,key:w==null?null:""+w,children:s,containerInfo:c,implementation:m}}function k0(s){if(!s)return Ra;s=s._reactInternals;e:{if(Gt(s)!==s||s.tag!==1)throw Error(n(170));var c=s;do{switch(c.tag){case 3:c=c.stateNode.context;break e;case 1:if(Hr(c.type)){c=c.stateNode.__reactInternalMemoizedMergedChildContext;break e}}c=c.return}while(c!==null);throw Error(n(171))}if(s.tag===1){var m=s.type;if(Hr(m))return Jd(s,m,c)}return c}function jv(s,c,m,w,E,M,F,q,Q){return s=Bp(m,w,!0,s,E,M,F,q,Q),s.context=k0(null),m=s.current,w=Wr(),E=rs(m),M=Ns(w,E),M.callback=c!=null?c:null,Sl(m,M,E),s.current.lanes=E,bs(s,E,w),fo(s,w),s}function Vp(s,c,m,w){var E=c.current,M=Wr(),F=rs(E);return m=k0(m),c.context===null?c.context=m:c.pendingContext=m,c=Ns(M,F),c.payload={element:s},w=w===void 0?null:w,w!==null&&(c.callback=w),s=Sl(E,c,F),s!==null&&(Ha(s,E,F,M),up(s,E,F)),F}function $p(s){if(s=s.current,!s.child)return null;switch(s.child.tag){case 5:return s.child.stateNode;default:return s.child.stateNode}}function E0(s,c){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var m=s.retryLane;s.retryLane=m!==0&&m<c?m:c}}function Zp(s,c){E0(s,c),(s=s.alternate)&&E0(s,c)}function Pv(){return null}var Ou=typeof reportError=="function"?reportError:function(s){console.error(s)};function _0(s){this._internalRoot=s}Wp.prototype.render=_0.prototype.render=function(s){var c=this._internalRoot;if(c===null)throw Error(n(409));Vp(s,c,null,null)},Wp.prototype.unmount=_0.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var c=s.containerInfo;Nu(function(){Vp(null,s,null,null)}),c[Ts]=null}};function Wp(s){this._internalRoot=s}Wp.prototype.unstable_scheduleHydration=function(s){if(s){var c=Ut();s={blockedOn:null,target:s,priority:c};for(var m=0;m<Kr.length&&c!==0&&c<Kr[m].priority;m++);Kr.splice(m,0,s),m===0&&jd(s)}};function T0(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function qp(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11&&(s.nodeType!==8||s.nodeValue!==" react-mount-point-unstable "))}function Fv(){}function c8(s,c,m,w,E){if(E){if(typeof w=="function"){var M=w;w=function(){var me=$p(F);M.call(me)}}var F=jv(c,w,s,0,null,!1,!1,"",Fv);return s._reactRootContainer=F,s[Ts]=F.current,Tc(s.nodeType===8?s.parentNode:s),Nu(),F}for(;E=s.lastChild;)s.removeChild(E);if(typeof w=="function"){var q=w;w=function(){var me=$p(Q);q.call(me)}}var Q=Bp(s,0,!1,null,null,!1,!1,"",Fv);return s._reactRootContainer=Q,s[Ts]=Q.current,Tc(s.nodeType===8?s.parentNode:s),Nu(function(){Vp(c,Q,m,w)}),Q}function Mf(s,c,m,w,E){var M=m._reactRootContainer;if(M){var F=M;if(typeof E=="function"){var q=E;E=function(){var Q=$p(F);q.call(Q)}}Vp(c,F,s,E)}else F=c8(m,c,s,E,w);return $p(F)}Cn=function(s){switch(s.tag){case 3:var c=s.stateNode;if(c.current.memoizedState.isDehydrated){var m=Ci(c.pendingLanes);m!==0&&(Cs(c,m|1),fo(c,Yt()),!(xn&6)&&(Uc=Yt()+500,Yi()))}break;case 13:Nu(function(){var w=Ro(s,1);if(w!==null){var E=Wr();Ha(w,s,1,E)}}),Zp(s,1)}},Id=function(s){if(s.tag===13){var c=Ro(s,134217728);if(c!==null){var m=Wr();Ha(c,s,134217728,m)}Zp(s,134217728)}},Ui=function(s){if(s.tag===13){var c=rs(s),m=Ro(s,c);if(m!==null){var w=Wr();Ha(m,s,c,w)}Zp(s,c)}},Ut=function(){return Mn},yc=function(s,c){var m=Mn;try{return Mn=s,c()}finally{Mn=m}},Rn=function(s,c,m){switch(c){case"input":if(St(s,m),c=m.name,m.type==="radio"&&c!=null){for(m=s;m.parentNode;)m=m.parentNode;for(m=m.querySelectorAll("input[name="+JSON.stringify(""+c)+'][type="radio"]'),c=0;c<m.length;c++){var w=m[c];if(w!==s&&w.form===s.form){var E=wr(w);if(!E)throw Error(n(90));Et(w),St(w,E)}}}break;case"textarea":hr(s,m);break;case"select":c=m.value,c!=null&&Mt(s,!!m.multiple,c,!1)}},Hi=x0,Xr=Nu;var d8={usingClientEntryPoint:!1,Events:[Tt,Ti,wr,Rr,vi,x0]},Af={findFiberByHostInstance:pu,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},zv={bundleType:Af.bundleType,version:Af.version,rendererPackageName:Af.rendererPackageName,rendererConfig:Af.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:j.ReactCurrentDispatcher,findHostInstanceByFiber:function(s){return s=Nr(s),s===null?null:s.stateNode},findFiberByHostInstance:Af.findFiberByHostInstance||Pv,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"){var Ll=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ll.isDisabled&&Ll.supportsFiber)try{sl=Ll.inject(zv),eo=Ll}catch(s){}}return zo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=d8,zo.createPortal=function(s,c){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!T0(c))throw Error(n(200));return u8(s,c,null,m)},zo.createRoot=function(s,c){if(!T0(s))throw Error(n(299));var m=!1,w="",E=Ou;return c!=null&&(c.unstable_strictMode===!0&&(m=!0),c.identifierPrefix!==void 0&&(w=c.identifierPrefix),c.onRecoverableError!==void 0&&(E=c.onRecoverableError)),c=Bp(s,1,!1,null,null,m,!1,w,E),s[Ts]=c.current,Tc(s.nodeType===8?s.parentNode:s),new _0(c)},zo.findDOMNode=function(s){if(s==null)return null;if(s.nodeType===1)return s;var c=s._reactInternals;if(c===void 0)throw typeof s.render=="function"?Error(n(188)):(s=Object.keys(s).join(","),Error(n(268,s)));return s=Nr(c),s=s===null?null:s.stateNode,s},zo.flushSync=function(s){return Nu(s)},zo.hydrate=function(s,c,m){if(!qp(c))throw Error(n(200));return Mf(null,s,c,!0,m)},zo.hydrateRoot=function(s,c,m){if(!T0(s))throw Error(n(405));var w=m!=null&&m.hydratedSources||null,E=!1,M="",F=Ou;if(m!=null&&(m.unstable_strictMode===!0&&(E=!0),m.identifierPrefix!==void 0&&(M=m.identifierPrefix),m.onRecoverableError!==void 0&&(F=m.onRecoverableError)),c=jv(c,null,s,1,m!=null?m:null,E,!1,M,F),s[Ts]=c.current,Tc(s),w)for(s=0;s<w.length;s++)m=w[s],E=m._getVersion,E=E(m._source),c.mutableSourceEagerHydrationData==null?c.mutableSourceEagerHydrationData=[m,E]:c.mutableSourceEagerHydrationData.push(m,E);return new Wp(c)},zo.render=function(s,c,m){if(!qp(c))throw Error(n(200));return Mf(null,s,c,!1,m)},zo.unmountComponentAtNode=function(s){if(!qp(s))throw Error(n(40));return s._reactRootContainer?(Nu(function(){Mf(null,null,s,!1,function(){s._reactRootContainer=null,s[Ts]=null})}),!0):!1},zo.unstable_batchedUpdates=x0,zo.unstable_renderSubtreeIntoContainer=function(s,c,m,w){if(!qp(m))throw Error(n(200));if(s==null||s._reactInternals===void 0)throw Error(n(38));return Mf(s,c,m,!1,w)},zo.version="18.3.1-next-f1338f8080-20240426",zo}var Ho={};/**
|
|
101
|
-
* @license React
|
|
102
|
-
* react-dom.development.js
|
|
103
|
-
*
|
|
104
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
105
|
-
*
|
|
106
|
-
* This source code is licensed under the MIT license found in the
|
|
107
|
-
* LICENSE file in the root directory of this source tree.
|
|
108
|
-
*/var hw;function UD(){return hw||(hw=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=L,t=fw(),n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,a=!1;function i(r){a=r}function l(r){if(!a){for(var o=arguments.length,d=new Array(o>1?o-1:0),p=1;p<o;p++)d[p-1]=arguments[p];f("warn",r,d)}}function u(r){if(!a){for(var o=arguments.length,d=new Array(o>1?o-1:0),p=1;p<o;p++)d[p-1]=arguments[p];f("error",r,d)}}function f(r,o,d){{var p=n.ReactDebugCurrentFrame,v=p.getStackAddendum();v!==""&&(o+="%s",d=d.concat([v]));var S=d.map(function(_){return String(_)});S.unshift("Warning: "+o),Function.prototype.apply.call(console[r],console,S)}}var h=0,g=1,x=2,y=3,k=4,b=5,T=6,R=7,N=8,O=9,P=10,z=11,j=12,V=13,H=14,W=15,G=16,ae=17,ye=18,ce=19,he=21,ue=22,Te=23,ke=24,Ee=25,xe=!0,K=!1,Ae=!1,B=!1,X=!1,pe=!0,Z=!0,ze=!0,st=!0,Ve=new Set,_e={},Ze={};function Ke(r,o){We(r,o),We(r+"Capture",o)}function We(r,o){_e[r]&&u("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",r),_e[r]=o;{var d=r.toLowerCase();Ze[d]=r,r==="onDoubleClick"&&(Ze.ondblclick=r)}for(var p=0;p<o.length;p++)Ve.add(o[p])}var et=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",Et=Object.prototype.hasOwnProperty;function bt(r){{var o=typeof Symbol=="function"&&Symbol.toStringTag,d=o&&r[Symbol.toStringTag]||r.constructor.name||"Object";return d}}function ct(r){try{return yt(r),!1}catch(o){return!0}}function yt(r){return""+r}function Pt(r,o){if(ct(r))return u("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",o,bt(r)),yt(r)}function St(r){if(ct(r))return u("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",bt(r)),yt(r)}function jn(r,o){if(ct(r))return u("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",o,bt(r)),yt(r)}function Bn(r,o){if(ct(r))return u("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",o,bt(r)),yt(r)}function He(r){if(ct(r))return u("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",bt(r)),yt(r)}function Mt(r){if(ct(r))return u("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.",bt(r)),yt(r)}var Pn=0,Wt=1,hr=2,$n=3,ve=4,Ne=5,dt=6,It=":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",Me=It+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Ye=new RegExp("^["+It+"]["+Me+"]*$"),At={},xt={};function Kt(r){return Et.call(xt,r)?!0:Et.call(At,r)?!1:Ye.test(r)?(xt[r]=!0,!0):(At[r]=!0,u("Invalid attribute name: `%s`",r),!1)}function ln(r,o,d){return o!==null?o.type===Pn:d?!1:r.length>2&&(r[0]==="o"||r[0]==="O")&&(r[1]==="n"||r[1]==="N")}function Qt(r,o,d,p){if(d!==null&&d.type===Pn)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":{if(p)return!1;if(d!==null)return!d.acceptsBooleans;var v=r.toLowerCase().slice(0,5);return v!=="data-"&&v!=="aria-"}default:return!1}}function Qn(r,o,d,p){if(o===null||typeof o=="undefined"||Qt(r,o,d,p))return!0;if(p)return!1;if(d!==null)switch(d.type){case $n:return!o;case ve:return o===!1;case Ne:return isNaN(o);case dt:return isNaN(o)||o<1}return!1}function dn(r){return Rn.hasOwnProperty(r)?Rn[r]:null}function En(r,o,d,p,v,S,_){this.acceptsBooleans=o===hr||o===$n||o===ve,this.attributeName=p,this.attributeNamespace=v,this.mustUseProperty=d,this.propertyName=r,this.type=o,this.sanitizeURL=S,this.removeEmptyString=_}var Rn={},da=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];da.forEach(function(r){Rn[r]=new En(r,Pn,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var o=r[0],d=r[1];Rn[o]=new En(o,Wt,!1,d,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){Rn[r]=new En(r,hr,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){Rn[r]=new En(r,hr,!1,r,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(r){Rn[r]=new En(r,$n,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){Rn[r]=new En(r,$n,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){Rn[r]=new En(r,ve,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){Rn[r]=new En(r,dt,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){Rn[r]=new En(r,Ne,!1,r.toLowerCase(),null,!1,!1)});var Fr=/[\-\:]([a-z])/g,Jr=function(r){return r[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(r){var o=r.replace(Fr,Jr);Rn[o]=new En(o,Wt,!1,r,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(r){var o=r.replace(Fr,Jr);Rn[o]=new En(o,Wt,!1,r,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(r){var o=r.replace(Fr,Jr);Rn[o]=new En(o,Wt,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){Rn[r]=new En(r,Wt,!1,r.toLowerCase(),null,!1,!1)});var Rr="xlinkHref";Rn[Rr]=new En("xlinkHref",Wt,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){Rn[r]=new En(r,Wt,!1,r.toLowerCase(),null,!0,!0)});var vi=/^[\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,Hi=!1;function Xr(r){!Hi&&vi.test(r)&&(Hi=!0,u("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(r)))}function yi(r,o,d,p){if(p.mustUseProperty){var v=p.propertyName;return r[v]}else{Pt(d,o),p.sanitizeURL&&Xr(""+d);var S=p.attributeName,_=null;if(p.type===ve){if(r.hasAttribute(S)){var A=r.getAttribute(S);return A===""?!0:Qn(o,d,p,!1)?A:A===""+d?d:A}}else if(r.hasAttribute(S)){if(Qn(o,d,p,!1))return r.getAttribute(S);if(p.type===$n)return d;_=r.getAttribute(S)}return Qn(o,d,p,!1)?_===null?d:_:_===""+d?d:_}}function _t(r,o,d,p){{if(!Kt(o))return;if(!r.hasAttribute(o))return d===void 0?void 0:null;var v=r.getAttribute(o);return Pt(d,o),v===""+d?d:v}}function _n(r,o,d,p){var v=dn(o);if(!ln(o,v,p)){if(Qn(o,d,v,p)&&(d=null),p||v===null){if(Kt(o)){var S=o;d===null?r.removeAttribute(S):(Pt(d,o),r.setAttribute(S,""+d))}return}var _=v.mustUseProperty;if(_){var A=v.propertyName;if(d===null){var I=v.type;r[A]=I===$n?!1:""}else r[A]=d;return}var U=v.attributeName,$=v.attributeNamespace;if(d===null)r.removeAttribute(U);else{var re=v.type,te;re===$n||re===ve&&d===!0?te="":(Pt(d,U),te=""+d,v.sanitizeURL&&Xr(te.toString())),$?r.setAttributeNS($,U,te):r.setAttribute(U,te)}}}var Mr=Symbol.for("react.element"),yr=Symbol.for("react.portal"),Oa=Symbol.for("react.fragment"),Ar=Symbol.for("react.strict_mode"),ko=Symbol.for("react.profiler"),tr=Symbol.for("react.provider"),J=Symbol.for("react.context"),Le=Symbol.for("react.forward_ref"),Qe=Symbol.for("react.suspense"),ut=Symbol.for("react.suspense_list"),Gt=Symbol.for("react.memo"),Bt=Symbol.for("react.lazy"),un=Symbol.for("react.scope"),an=Symbol.for("react.debug_trace_mode"),Nr=Symbol.for("react.offscreen"),nr=Symbol.for("react.legacy_hidden"),ir=Symbol.for("react.cache"),fa=Symbol.for("react.tracing_marker"),xi=Symbol.iterator,wi="@@iterator";function Yt(r){if(r===null||typeof r!="object")return null;var o=xi&&r[xi]||r[wi];return typeof o=="function"?o:null}var en=Object.assign,bi=0,tu,nu,il,fc,sl,eo,Od;function Ia(){}Ia.__reactDisabledLog=!0;function z1(){{if(bi===0){tu=console.log,nu=console.info,il=console.warn,fc=console.error,sl=console.group,eo=console.groupCollapsed,Od=console.groupEnd;var r={configurable:!0,enumerable:!0,value:Ia,writable:!0};Object.defineProperties(console,{info:r,log:r,warn:r,error:r,group:r,groupCollapsed:r,groupEnd:r})}bi++}}function H1(){{if(bi--,bi===0){var r={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:en({},r,{value:tu}),info:en({},r,{value:nu}),warn:en({},r,{value:il}),error:en({},r,{value:fc}),group:en({},r,{value:sl}),groupCollapsed:en({},r,{value:eo}),groupEnd:en({},r,{value:Od})})}bi<0&&u("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var pc=n.ReactCurrentDispatcher,ll;function Eo(r,o,d){{if(ll===void 0)try{throw Error()}catch(v){var p=v.stack.trim().match(/\n( *(at )?)/);ll=p&&p[1]||""}return`
|
|
109
|
-
`+ll+r}}var Ci=!1,Si;{var hc=typeof WeakMap=="function"?WeakMap:Map;Si=new hc}function ru(r,o){if(!r||Ci)return"";{var d=Si.get(r);if(d!==void 0)return d}var p;Ci=!0;var v=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var S;S=pc.current,pc.current=null,z1();try{if(o){var _=function(){throw Error()};if(Object.defineProperty(_.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_,[])}catch(ge){p=ge}Reflect.construct(r,[],_)}else{try{_.call()}catch(ge){p=ge}r.call(_.prototype)}}else{try{throw Error()}catch(ge){p=ge}r()}}catch(ge){if(ge&&p&&typeof ge.stack=="string"){for(var A=ge.stack.split(`
|
|
110
|
-
`),I=p.stack.split(`
|
|
111
|
-
`),U=A.length-1,$=I.length-1;U>=1&&$>=0&&A[U]!==I[$];)$--;for(;U>=1&&$>=0;U--,$--)if(A[U]!==I[$]){if(U!==1||$!==1)do if(U--,$--,$<0||A[U]!==I[$]){var re=`
|
|
112
|
-
`+A[U].replace(" at new "," at ");return r.displayName&&re.includes("<anonymous>")&&(re=re.replace("<anonymous>",r.displayName)),typeof r=="function"&&Si.set(r,re),re}while(U>=1&&$>=0);break}}}finally{Ci=!1,pc.current=S,H1(),Error.prepareStackTrace=v}var te=r?r.displayName||r.name:"",de=te?Eo(te):"";return typeof r=="function"&&Si.set(r,de),de}function ul(r,o,d){return ru(r,!0)}function mc(r,o,d){return ru(r,!1)}function gc(r){var o=r.prototype;return!!(o&&o.isReactComponent)}function bs(r,o,d){if(r==null)return"";if(typeof r=="function")return ru(r,gc(r));if(typeof r=="string")return Eo(r);switch(r){case Qe:return Eo("Suspense");case ut:return Eo("SuspenseList")}if(typeof r=="object")switch(r.$$typeof){case Le:return mc(r.render);case Gt:return bs(r.type,o,d);case Bt:{var p=r,v=p._payload,S=p._init;try{return bs(S(v),o,d)}catch(_){}}}return""}function Cm(r){switch(r._debugOwner&&r._debugOwner.type,r._debugSource,r.tag){case b:return Eo(r.type);case G:return Eo("Lazy");case V:return Eo("Suspense");case ce:return Eo("SuspenseList");case h:case x:case W:return mc(r.type);case z:return mc(r.type.render);case g:return ul(r.type);default:return""}}function Cs(r){try{var o="",d=r;do o+=Cm(d),d=d.return;while(d);return o}catch(p){return`
|
|
113
|
-
Error generating stack: `+p.message+`
|
|
114
|
-
`+p.stack}}function Mn(r,o,d){var p=r.displayName;if(p)return p;var v=o.displayName||o.name||"";return v!==""?d+"("+v+")":d}function vc(r){return r.displayName||"Context"}function Cn(r){if(r==null)return null;if(typeof r.tag=="number"&&u("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case Oa:return"Fragment";case yr:return"Portal";case ko:return"Profiler";case Ar:return"StrictMode";case Qe:return"Suspense";case ut:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case J:var o=r;return vc(o)+".Consumer";case tr:var d=r;return vc(d._context)+".Provider";case Le:return Mn(r,r.render,"ForwardRef");case Gt:var p=r.displayName||null;return p!==null?p:Cn(r.type)||"Memo";case Bt:{var v=r,S=v._payload,_=v._init;try{return Cn(_(S))}catch(A){return null}}}return null}function Id(r,o,d){var p=o.displayName||o.name||"";return r.displayName||(p!==""?d+"("+p+")":d)}function Ui(r){return r.displayName||"Context"}function Ut(r){var o=r.tag,d=r.type;switch(o){case ke:return"Cache";case O:var p=d;return Ui(p)+".Consumer";case P:var v=d;return Ui(v._context)+".Provider";case ye:return"DehydratedFragment";case z:return Id(d,d.render,"ForwardRef");case R:return"Fragment";case b:return d;case k:return"Portal";case y:return"Root";case T:return"Text";case G:return Cn(d);case N:return d===Ar?"StrictMode":"Mode";case ue:return"Offscreen";case j:return"Profiler";case he:return"Scope";case V:return"Suspense";case ce:return"SuspenseList";case Ee:return"TracingMarker";case g:case h:case ae:case x:case H:case W:if(typeof d=="function")return d.displayName||d.name||null;if(typeof d=="string")return d;break}return null}var yc=n.ReactDebugCurrentFrame,pa=null,Bi=!1;function Da(){{if(pa===null)return null;var r=pa._debugOwner;if(r!==null&&typeof r!="undefined")return Ut(r)}return null}function Vi(){return pa===null?"":Cs(pa)}function sr(){yc.getCurrentStack=null,pa=null,Bi=!1}function Zn(r){yc.getCurrentStack=r===null?null:Vi,pa=r,Bi=!1}function cl(){return pa}function Kr(r){Bi=r}function ja(r){return""+r}function Wo(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return Mt(r),r;default:return""}}var au={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Dd(r,o){au[o.type]||o.onChange||o.onInput||o.readOnly||o.disabled||o.value==null||u("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),o.onChange||o.readOnly||o.disabled||o.checked==null||u("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function jd(r){var o=r.type,d=r.nodeName;return d&&d.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function dl(r){return r._valueTracker}function ou(r){r._valueTracker=null}function Sm(r){var o="";return r&&(jd(r)?o=r.checked?"true":"false":o=r.value),o}function qo(r){var o=jd(r)?"checked":"value",d=Object.getOwnPropertyDescriptor(r.constructor.prototype,o);Mt(r[o]);var p=""+r[o];if(!(r.hasOwnProperty(o)||typeof d=="undefined"||typeof d.get!="function"||typeof d.set!="function")){var v=d.get,S=d.set;Object.defineProperty(r,o,{configurable:!0,get:function(){return v.call(this)},set:function(A){Mt(A),p=""+A,S.call(this,A)}}),Object.defineProperty(r,o,{enumerable:d.enumerable});var _={getValue:function(){return p},setValue:function(A){Mt(A),p=""+A},stopTracking:function(){ou(r),delete r[o]}};return _}}function ki(r){dl(r)||(r._valueTracker=qo(r))}function $i(r){if(!r)return!1;var o=dl(r);if(!o)return!0;var d=o.getValue(),p=Sm(r);return p!==d?(o.setValue(p),!0):!1}function Go(r){if(r=r||(typeof document!="undefined"?document:void 0),typeof r=="undefined")return null;try{return r.activeElement||r.body}catch(o){return r.body}}var xc=!1,wc=!1,fl=!1,iu=!1;function bc(r){var o=r.type==="checkbox"||r.type==="radio";return o?r.checked!=null:r.value!=null}function Cc(r,o){var d=r,p=o.checked,v=en({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:p!=null?p:d._wrapperState.initialChecked});return v}function Ei(r,o){Dd("input",o),o.checked!==void 0&&o.defaultChecked!==void 0&&!wc&&(u("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",Da()||"A component",o.type),wc=!0),o.value!==void 0&&o.defaultValue!==void 0&&!xc&&(u("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",Da()||"A component",o.type),xc=!0);var d=r,p=o.defaultValue==null?"":o.defaultValue;d._wrapperState={initialChecked:o.checked!=null?o.checked:o.defaultChecked,initialValue:Wo(o.value!=null?o.value:p),controlled:bc(o)}}function D(r,o){var d=r,p=o.checked;p!=null&&_n(d,"checked",p,!1)}function Y(r,o){var d=r;{var p=bc(o);!d._wrapperState.controlled&&p&&!iu&&(u("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),iu=!0),d._wrapperState.controlled&&!p&&!fl&&(u("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),fl=!0)}D(r,o);var v=Wo(o.value),S=o.type;if(v!=null)S==="number"?(v===0&&d.value===""||d.value!=v)&&(d.value=ja(v)):d.value!==ja(v)&&(d.value=ja(v));else if(S==="submit"||S==="reset"){d.removeAttribute("value");return}o.hasOwnProperty("value")?Nt(d,o.type,v):o.hasOwnProperty("defaultValue")&&Nt(d,o.type,Wo(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(d.defaultChecked=!!o.defaultChecked)}function fe(r,o,d){var p=r;if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var v=o.type,S=v==="submit"||v==="reset";if(S&&(o.value===void 0||o.value===null))return;var _=ja(p._wrapperState.initialValue);d||_!==p.value&&(p.value=_),p.defaultValue=_}var A=p.name;A!==""&&(p.name=""),p.defaultChecked=!p.defaultChecked,p.defaultChecked=!!p._wrapperState.initialChecked,A!==""&&(p.name=A)}function we(r,o){var d=r;Y(d,o),Ue(d,o)}function Ue(r,o){var d=o.name;if(o.type==="radio"&&d!=null){for(var p=r;p.parentNode;)p=p.parentNode;Pt(d,"name");for(var v=p.querySelectorAll("input[name="+JSON.stringify(""+d)+'][type="radio"]'),S=0;S<v.length;S++){var _=v[S];if(!(_===r||_.form!==r.form)){var A=r3(_);if(!A)throw new Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");$i(_),Y(_,A)}}}}function Nt(r,o,d){(o!=="number"||Go(r.ownerDocument)!==r)&&(d==null?r.defaultValue=ja(r._wrapperState.initialValue):r.defaultValue!==ja(d)&&(r.defaultValue=ja(d)))}var Xe=!1,Dt=!1,cn=!1;function Sn(r,o){o.value==null&&(typeof o.children=="object"&&o.children!==null?e.Children.forEach(o.children,function(d){d!=null&&(typeof d=="string"||typeof d=="number"||Dt||(Dt=!0,u("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}):o.dangerouslySetInnerHTML!=null&&(cn||(cn=!0,u("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),o.selected!=null&&!Xe&&(u("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Xe=!0)}function rr(r,o){o.value!=null&&r.setAttribute("value",ja(Wo(o.value)))}var Wn=Array.isArray;function rn(r){return Wn(r)}var qn;qn=!1;function xr(){var r=Da();return r?`
|
|
115
|
-
|
|
116
|
-
Check the render method of \``+r+"`.":""}var pl=["value","defaultValue"];function Pd(r){{Dd("select",r);for(var o=0;o<pl.length;o++){var d=pl[o];if(r[d]!=null){var p=rn(r[d]);r.multiple&&!p?u("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",d,xr()):!r.multiple&&p&&u("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",d,xr())}}}}function Ss(r,o,d,p){var v=r.options;if(o){for(var S=d,_={},A=0;A<S.length;A++)_["$"+S[A]]=!0;for(var I=0;I<v.length;I++){var U=_.hasOwnProperty("$"+v[I].value);v[I].selected!==U&&(v[I].selected=U),U&&p&&(v[I].defaultSelected=!0)}}else{for(var $=ja(Wo(d)),re=null,te=0;te<v.length;te++){if(v[te].value===$){v[te].selected=!0,p&&(v[te].defaultSelected=!0);return}re===null&&!v[te].disabled&&(re=v[te])}re!==null&&(re.selected=!0)}}function Fd(r,o){return en({},o,{value:void 0})}function su(r,o){var d=r;Pd(o),d._wrapperState={wasMultiple:!!o.multiple},o.value!==void 0&&o.defaultValue!==void 0&&!qn&&(u("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),qn=!0)}function km(r,o){var d=r;d.multiple=!!o.multiple;var p=o.value;p!=null?Ss(d,!!o.multiple,p,!1):o.defaultValue!=null&&Ss(d,!!o.multiple,o.defaultValue,!0)}function U1(r,o){var d=r,p=d._wrapperState.wasMultiple;d._wrapperState.wasMultiple=!!o.multiple;var v=o.value;v!=null?Ss(d,!!o.multiple,v,!1):p!==!!o.multiple&&(o.defaultValue!=null?Ss(d,!!o.multiple,o.defaultValue,!0):Ss(d,!!o.multiple,o.multiple?[]:"",!1))}function Em(r,o){var d=r,p=o.value;p!=null&&Ss(d,!!o.multiple,p,!1)}var _g=!1;function _m(r,o){var d=r;if(o.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var p=en({},o,{value:void 0,defaultValue:void 0,children:ja(d._wrapperState.initialValue)});return p}function Tm(r,o){var d=r;Dd("textarea",o),o.value!==void 0&&o.defaultValue!==void 0&&!_g&&(u("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components",Da()||"A component"),_g=!0);var p=o.value;if(p==null){var v=o.children,S=o.defaultValue;if(v!=null){u("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(S!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(rn(v)){if(v.length>1)throw new Error("<textarea> can only have at most one child.");v=v[0]}S=v}}S==null&&(S=""),p=S}d._wrapperState={initialValue:Wo(p)}}function Tg(r,o){var d=r,p=Wo(o.value),v=Wo(o.defaultValue);if(p!=null){var S=ja(p);S!==d.value&&(d.value=S),o.defaultValue==null&&d.defaultValue!==S&&(d.defaultValue=S)}v!=null&&(d.defaultValue=ja(v))}function Rg(r,o){var d=r,p=d.textContent;p===d._wrapperState.initialValue&&p!==""&&p!==null&&(d.value=p)}function H6(r,o){Tg(r,o)}var ks="http://www.w3.org/1999/xhtml",Rm="http://www.w3.org/1998/Math/MathML",Mm="http://www.w3.org/2000/svg";function Am(r){switch(r){case"svg":return Mm;case"math":return Rm;default:return ks}}function Nm(r,o){return r==null||r===ks?Am(o):r===Mm&&o==="foreignObject"?ks:r}var Mg=function(r){return typeof MSApp!="undefined"&&MSApp.execUnsafeLocalFunction?function(o,d,p,v){MSApp.execUnsafeLocalFunction(function(){return r(o,d,p,v)})}:r},B1,Ag=Mg(function(r,o){if(r.namespaceURI===Mm&&!("innerHTML"in r)){B1=B1||document.createElement("div"),B1.innerHTML="<svg>"+o.valueOf().toString()+"</svg>";for(var d=B1.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;d.firstChild;)r.appendChild(d.firstChild);return}r.innerHTML=o}),to=1,Es=3,zr=8,_s=9,Lm=11,Sc=function(r,o){if(o){var d=r.firstChild;if(d&&d===r.lastChild&&d.nodeType===Es){d.nodeValue=o;return}}r.textContent=o},zd={animation:["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction"],background:["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"],backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:["borderBottomColor","borderBottomStyle","borderBottomWidth","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRightColor","borderRightStyle","borderRightWidth","borderTopColor","borderTopStyle","borderTopWidth"],borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:["fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontWeight","lineHeight"],fontVariant:["fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition"],gap:["columnGap","rowGap"],grid:["gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:["maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPositionX","maskPositionY","maskRepeat","maskSize"],maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},Hd={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function Ng(r,o){return r+o.charAt(0).toUpperCase()+o.substring(1)}var Lg=["Webkit","ms","Moz","O"];Object.keys(Hd).forEach(function(r){Lg.forEach(function(o){Hd[Ng(o,r)]=Hd[r]})});function V1(r,o,d){var p=o==null||typeof o=="boolean"||o==="";return p?"":!d&&typeof o=="number"&&o!==0&&!(Hd.hasOwnProperty(r)&&Hd[r])?o+"px":(Bn(o,r),(""+o).trim())}var Og=/([A-Z])/g,Ig=/^ms-/;function kc(r){return r.replace(Og,"-$1").toLowerCase().replace(Ig,"-ms-")}var Dg=function(){};{var U6=/^(?:webkit|moz|o)[A-Z]/,B6=/^-ms-/,jg=/-(.)/g,Om=/;\s*$/,Zi={},lu={},Pg=!1,Ud=!1,V6=function(r){return r.replace(jg,function(o,d){return d.toUpperCase()})},Fg=function(r){Zi.hasOwnProperty(r)&&Zi[r]||(Zi[r]=!0,u("Unsupported style property %s. Did you mean %s?",r,V6(r.replace(B6,"ms-"))))},Im=function(r){Zi.hasOwnProperty(r)&&Zi[r]||(Zi[r]=!0,u("Unsupported vendor-prefixed style property %s. Did you mean %s?",r,r.charAt(0).toUpperCase()+r.slice(1)))},Dm=function(r,o){lu.hasOwnProperty(o)&&lu[o]||(lu[o]=!0,u(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,r,o.replace(Om,"")))},zg=function(r,o){Pg||(Pg=!0,u("`NaN` is an invalid value for the `%s` css style property.",r))},Hg=function(r,o){Ud||(Ud=!0,u("`Infinity` is an invalid value for the `%s` css style property.",r))};Dg=function(r,o){r.indexOf("-")>-1?Fg(r):U6.test(r)?Im(r):Om.test(o)&&Dm(r,o),typeof o=="number"&&(isNaN(o)?zg(r,o):isFinite(o)||Hg(r,o))}}var Ug=Dg;function $6(r){{var o="",d="";for(var p in r)if(r.hasOwnProperty(p)){var v=r[p];if(v!=null){var S=p.indexOf("--")===0;o+=d+(S?p:kc(p))+":",o+=V1(p,v,S),d=";"}}return o||null}}function Bg(r,o){var d=r.style;for(var p in o)if(o.hasOwnProperty(p)){var v=p.indexOf("--")===0;v||Ug(p,o[p]);var S=V1(p,o[p],v);p==="float"&&(p="cssFloat"),v?d.setProperty(p,S):d[p]=S}}function Z6(r){return r==null||typeof r=="boolean"||r===""}function Vg(r){var o={};for(var d in r)for(var p=zd[d]||[d],v=0;v<p.length;v++)o[p[v]]=d;return o}function W6(r,o){{if(!o)return;var d=Vg(r),p=Vg(o),v={};for(var S in d){var _=d[S],A=p[S];if(A&&_!==A){var I=_+","+A;if(v[I])continue;v[I]=!0,u("%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",Z6(r[_])?"Removing":"Updating",_,A)}}}}var _i={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},Bd=en({menuitem:!0},_i),$g="__html";function $1(r,o){if(o){if(Bd[r]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw new Error(r+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof o.dangerouslySetInnerHTML!="object"||!($g in o.dangerouslySetInnerHTML))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.")}if(!o.suppressContentEditableWarning&&o.contentEditable&&o.children!=null&&u("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),o.style!=null&&typeof o.style!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.")}}function hl(r,o){if(r.indexOf("-")===-1)return typeof o.is=="string";switch(r){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 Vd={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},Z1={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Ec={},q6=new RegExp("^(aria)-["+Me+"]*$"),_c=new RegExp("^(aria)[A-Z]["+Me+"]*$");function jm(r,o){{if(Et.call(Ec,o)&&Ec[o])return!0;if(_c.test(o)){var d="aria-"+o.slice(4).toLowerCase(),p=Z1.hasOwnProperty(d)?d:null;if(p==null)return u("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",o),Ec[o]=!0,!0;if(o!==p)return u("Invalid ARIA attribute `%s`. Did you mean `%s`?",o,p),Ec[o]=!0,!0}if(q6.test(o)){var v=o.toLowerCase(),S=Z1.hasOwnProperty(v)?v:null;if(S==null)return Ec[o]=!0,!1;if(o!==S)return u("Unknown ARIA attribute `%s`. Did you mean `%s`?",o,S),Ec[o]=!0,!0}}return!0}function $d(r,o){{var d=[];for(var p in o){var v=jm(r,p);v||d.push(p)}var S=d.map(function(_){return"`"+_+"`"}).join(", ");d.length===1?u("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",S,r):d.length>1&&u("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",S,r)}}function Pm(r,o){hl(r,o)||$d(r,o)}var Fm=!1;function W1(r,o){{if(r!=="input"&&r!=="textarea"&&r!=="select")return;o!=null&&o.value===null&&!Fm&&(Fm=!0,r==="select"&&o.multiple?u("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",r):u("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",r))}}var uu=function(){};{var ha={},zm=/^on./,q1=/^on[^A-Z]/,Zg=new RegExp("^(aria)-["+Me+"]*$"),Wg=new RegExp("^(aria)[A-Z]["+Me+"]*$");uu=function(r,o,d,p){if(Et.call(ha,o)&&ha[o])return!0;var v=o.toLowerCase();if(v==="onfocusin"||v==="onfocusout")return u("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),ha[o]=!0,!0;if(p!=null){var S=p.registrationNameDependencies,_=p.possibleRegistrationNames;if(S.hasOwnProperty(o))return!0;var A=_.hasOwnProperty(v)?_[v]:null;if(A!=null)return u("Invalid event handler property `%s`. Did you mean `%s`?",o,A),ha[o]=!0,!0;if(zm.test(o))return u("Unknown event handler property `%s`. It will be ignored.",o),ha[o]=!0,!0}else if(zm.test(o))return q1.test(o)&&u("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",o),ha[o]=!0,!0;if(Zg.test(o)||Wg.test(o))return!0;if(v==="innerhtml")return u("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),ha[o]=!0,!0;if(v==="aria")return u("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),ha[o]=!0,!0;if(v==="is"&&d!==null&&d!==void 0&&typeof d!="string")return u("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof d),ha[o]=!0,!0;if(typeof d=="number"&&isNaN(d))return u("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",o),ha[o]=!0,!0;var I=dn(o),U=I!==null&&I.type===Pn;if(Vd.hasOwnProperty(v)){var $=Vd[v];if($!==o)return u("Invalid DOM property `%s`. Did you mean `%s`?",o,$),ha[o]=!0,!0}else if(!U&&o!==v)return u("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",o,v),ha[o]=!0,!0;return typeof d=="boolean"&&Qt(o,d,I,!1)?(d?u('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',d,o,o,d,o):u('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',d,o,o,d,o,o,o),ha[o]=!0,!0):U?!0:Qt(o,d,I,!1)?(ha[o]=!0,!1):((d==="false"||d==="true")&&I!==null&&I.type===$n&&(u("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",d,o,d==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',o,d),ha[o]=!0),!0)}}var qg=function(r,o,d){{var p=[];for(var v in o){var S=uu(r,v,o[v],d);S||p.push(v)}var _=p.map(function(A){return"`"+A+"`"}).join(", ");p.length===1?u("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",_,r):p.length>1&&u("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",_,r)}};function Gg(r,o,d){hl(r,o)||qg(r,o,d)}var Hm=1,G1=2,Yo=4,Um=Hm|G1|Yo,cu=null;function G6(r){cu!==null&&u("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),cu=r}function Y6(){cu===null&&u("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),cu=null}function Zd(r){return r===cu}function Bm(r){var o=r.target||r.srcElement||window;return o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===Es?o.parentNode:o}var Y1=null,du=null,Fn=null;function J1(r){var o=qc(r);if(o){if(typeof Y1!="function")throw new Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.");var d=o.stateNode;if(d){var p=r3(d);Y1(o.stateNode,o.type,p)}}}function X1(r){Y1=r}function Tc(r){du?Fn?Fn.push(r):Fn=[r]:du=r}function Yg(){return du!==null||Fn!==null}function K1(){if(du){var r=du,o=Fn;if(du=null,Fn=null,J1(r),o)for(var d=0;d<o.length;d++)J1(o[d])}}var Rc=function(r,o){return r(o)},Wd=function(){},ml=!1;function Jg(){var r=Yg();r&&(Wd(),K1())}function Xg(r,o,d){if(ml)return r(o,d);ml=!0;try{return Rc(r,o,d)}finally{ml=!1,Jg()}}function J6(r,o,d){Rc=r,Wd=d}function Kg(r){return r==="button"||r==="input"||r==="select"||r==="textarea"}function Q1(r,o,d){switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!!(d.disabled&&Kg(o));default:return!1}}function gl(r,o){var d=r.stateNode;if(d===null)return null;var p=r3(d);if(p===null)return null;var v=p[o];if(Q1(o,r.type,p))return null;if(v&&typeof v!="function")throw new Error("Expected `"+o+"` listener to be a function, instead got a value of `"+typeof v+"` type.");return v}var qd=!1;if(et)try{var fu={};Object.defineProperty(fu,"passive",{get:function(){qd=!0}}),window.addEventListener("test",fu,fu),window.removeEventListener("test",fu,fu)}catch(r){qd=!1}function ep(r,o,d,p,v,S,_,A,I){var U=Array.prototype.slice.call(arguments,3);try{o.apply(d,U)}catch($){this.onError($)}}var tp=ep;if(typeof window!="undefined"&&typeof window.dispatchEvent=="function"&&typeof document!="undefined"&&typeof document.createEvent=="function"){var Vm=document.createElement("react");tp=function(o,d,p,v,S,_,A,I,U){if(typeof document=="undefined"||document===null)throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var $=document.createEvent("Event"),re=!1,te=!0,de=window.event,ge=Object.getOwnPropertyDescriptor(window,"event");function be(){Vm.removeEventListener(Ce,Lt,!1),typeof window.event!="undefined"&&window.hasOwnProperty("event")&&(window.event=de)}var nt=Array.prototype.slice.call(arguments,3);function Lt(){re=!0,be(),d.apply(p,nt),te=!1}var Ct,bn=!1,mn=!1;function ie(se){if(Ct=se.error,bn=!0,Ct===null&&se.colno===0&&se.lineno===0&&(mn=!0),se.defaultPrevented&&Ct!=null&&typeof Ct=="object")try{Ct._suppressLogging=!0}catch(Fe){}}var Ce="react-"+(o||"invokeguardedcallback");if(window.addEventListener("error",ie),Vm.addEventListener(Ce,Lt,!1),$.initEvent(Ce,!1,!1),Vm.dispatchEvent($),ge&&Object.defineProperty(window,"event",ge),re&&te&&(bn?mn&&(Ct=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")):Ct=new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`),this.onError(Ct)),window.removeEventListener("error",ie),!re)return be(),ep.apply(this,arguments)}}var Qg=tp,Mc=!1,np=null,Ac=!1,Wi=null,ev={onError:function(r){Mc=!0,np=r}};function vl(r,o,d,p,v,S,_,A,I){Mc=!1,np=null,Qg.apply(ev,arguments)}function qi(r,o,d,p,v,S,_,A,I){if(vl.apply(this,arguments),Mc){var U=Yd();Ac||(Ac=!0,Wi=U)}}function Gd(){if(Ac){var r=Wi;throw Ac=!1,Wi=null,r}}function Ts(){return Mc}function Yd(){if(Mc){var r=np;return Mc=!1,np=null,r}else throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}function Nc(r){return r._reactInternals}function X6(r){return r._reactInternals!==void 0}function pu(r,o){r._reactInternals=o}var Tt=0,Ti=1,wr=2,yn=4,Jo=16,Xo=32,ar=64,kt=128,Ra=256,Er=512,Qr=1024,no=2048,ro=4096,Hr=8192,Lc=16384,tv=32767,Jd=32768,aa=65536,rp=131072,Gi=1048576,Oc=2097152,Rs=4194304,ap=8388608,yl=16777216,Yi=33554432,xl=yn|Qr|0,wl=wr|yn|Jo|Xo|Er|ro|Hr,bl=yn|ar|Er|Hr,Ms=no|Jo,Ur=Rs|ap|Oc,Ko=n.ReactCurrentOwner;function _o(r){var o=r,d=r;if(r.alternate)for(;o.return;)o=o.return;else{var p=o;do o=p,(o.flags&(wr|ro))!==Tt&&(d=o.return),p=o.return;while(p)}return o.tag===y?d:null}function Ji(r){if(r.tag===V){var o=r.memoizedState;if(o===null){var d=r.alternate;d!==null&&(o=d.memoizedState)}if(o!==null)return o.dehydrated}return null}function Xi(r){return r.tag===y?r.stateNode.containerInfo:null}function hu(r){return _o(r)===r}function nv(r){{var o=Ko.current;if(o!==null&&o.tag===g){var d=o,p=d.stateNode;p._warnedAboutRefsInRender||u("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",Ut(d)||"A component"),p._warnedAboutRefsInRender=!0}}var v=Nc(r);return v?_o(v)===v:!1}function op(r){if(_o(r)!==r)throw new Error("Unable to find node on an unmounted component.")}function ip(r){var o=r.alternate;if(!o){var d=_o(r);if(d===null)throw new Error("Unable to find node on an unmounted component.");return d!==r?null:r}for(var p=r,v=o;;){var S=p.return;if(S===null)break;var _=S.alternate;if(_===null){var A=S.return;if(A!==null){p=v=A;continue}break}if(S.child===_.child){for(var I=S.child;I;){if(I===p)return op(S),r;if(I===v)return op(S),o;I=I.sibling}throw new Error("Unable to find node on an unmounted component.")}if(p.return!==v.return)p=S,v=_;else{for(var U=!1,$=S.child;$;){if($===p){U=!0,p=S,v=_;break}if($===v){U=!0,v=S,p=_;break}$=$.sibling}if(!U){for($=_.child;$;){if($===p){U=!0,p=_,v=S;break}if($===v){U=!0,v=_,p=S;break}$=$.sibling}if(!U)throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(p.alternate!==v)throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(p.tag!==y)throw new Error("Unable to find node on an unmounted component.");return p.stateNode.current===p?r:o}function ao(r){var o=ip(r);return o!==null?oo(o):null}function oo(r){if(r.tag===b||r.tag===T)return r;for(var o=r.child;o!==null;){var d=oo(o);if(d!==null)return d;o=o.sibling}return null}function mr(r){var o=ip(r);return o!==null?Qo(o):null}function Qo(r){if(r.tag===b||r.tag===T)return r;for(var o=r.child;o!==null;){if(o.tag!==k){var d=Qo(o);if(d!==null)return d}o=o.sibling}return null}var $m=t.unstable_scheduleCallback,rv=t.unstable_cancelCallback,Zm=t.unstable_shouldYield,Wm=t.unstable_requestPaint,ea=t.unstable_now,sp=t.unstable_getCurrentPriorityLevel,Xd=t.unstable_ImmediatePriority,Cl=t.unstable_UserBlockingPriority,As=t.unstable_NormalPriority,K6=t.unstable_LowPriority,mu=t.unstable_IdlePriority,lp=t.unstable_yieldValue,av=t.unstable_setDisableYieldValue,gu=null,Lr=null,tt=null,To=!1,io=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined";function Ic(r){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined")return!1;var o=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(o.isDisabled)return!0;if(!o.supportsFiber)return u("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"),!0;try{Z&&(r=en({},r,{getLaneLabelMap:vu,injectProfilingHooks:ei})),gu=o.inject(r),Lr=o}catch(d){u("React instrumentation encountered an error: %s.",d)}return!!o.checkDCE}function qm(r,o){if(Lr&&typeof Lr.onScheduleFiberRoot=="function")try{Lr.onScheduleFiberRoot(gu,r,o)}catch(d){To||(To=!0,u("React instrumentation encountered an error: %s",d))}}function Gm(r,o){if(Lr&&typeof Lr.onCommitFiberRoot=="function")try{var d=(r.current.flags&kt)===kt;if(ze){var p;switch(o){case Pa:p=Xd;break;case Qi:p=Cl;break;case ti:p=As;break;case ni:p=mu;break;default:p=As;break}Lr.onCommitFiberRoot(gu,r,p,d)}}catch(v){To||(To=!0,u("React instrumentation encountered an error: %s",v))}}function Ym(r){if(Lr&&typeof Lr.onPostCommitFiberRoot=="function")try{Lr.onPostCommitFiberRoot(gu,r)}catch(o){To||(To=!0,u("React instrumentation encountered an error: %s",o))}}function Jm(r){if(Lr&&typeof Lr.onCommitFiberUnmount=="function")try{Lr.onCommitFiberUnmount(gu,r)}catch(o){To||(To=!0,u("React instrumentation encountered an error: %s",o))}}function br(r){if(typeof lp=="function"&&(av(r),i(r)),Lr&&typeof Lr.setStrictMode=="function")try{Lr.setStrictMode(gu,r)}catch(o){To||(To=!0,u("React instrumentation encountered an error: %s",o))}}function ei(r){tt=r}function vu(){{for(var r=new Map,o=1,d=0;d<wu;d++){var p=lv(o);r.set(o,p),o*=2}return r}}function Xm(r){tt!==null&&typeof tt.markCommitStarted=="function"&&tt.markCommitStarted(r)}function Km(){tt!==null&&typeof tt.markCommitStopped=="function"&&tt.markCommitStopped()}function Ro(r){tt!==null&&typeof tt.markComponentRenderStarted=="function"&&tt.markComponentRenderStarted(r)}function Mo(){tt!==null&&typeof tt.markComponentRenderStopped=="function"&&tt.markComponentRenderStopped()}function Qm(r){tt!==null&&typeof tt.markComponentPassiveEffectMountStarted=="function"&&tt.markComponentPassiveEffectMountStarted(r)}function ov(){tt!==null&&typeof tt.markComponentPassiveEffectMountStopped=="function"&&tt.markComponentPassiveEffectMountStopped()}function Ns(r){tt!==null&&typeof tt.markComponentPassiveEffectUnmountStarted=="function"&&tt.markComponentPassiveEffectUnmountStarted(r)}function Sl(){tt!==null&&typeof tt.markComponentPassiveEffectUnmountStopped=="function"&&tt.markComponentPassiveEffectUnmountStopped()}function up(r){tt!==null&&typeof tt.markComponentLayoutEffectMountStarted=="function"&&tt.markComponentLayoutEffectMountStarted(r)}function iv(){tt!==null&&typeof tt.markComponentLayoutEffectMountStopped=="function"&&tt.markComponentLayoutEffectMountStopped()}function Kd(r){tt!==null&&typeof tt.markComponentLayoutEffectUnmountStarted=="function"&&tt.markComponentLayoutEffectUnmountStarted(r)}function e0(){tt!==null&&typeof tt.markComponentLayoutEffectUnmountStopped=="function"&&tt.markComponentLayoutEffectUnmountStopped()}function Qd(r,o,d){tt!==null&&typeof tt.markComponentErrored=="function"&&tt.markComponentErrored(r,o,d)}function Ki(r,o,d){tt!==null&&typeof tt.markComponentSuspended=="function"&&tt.markComponentSuspended(r,o,d)}function ef(r){tt!==null&&typeof tt.markLayoutEffectsStarted=="function"&&tt.markLayoutEffectsStarted(r)}function tf(){tt!==null&&typeof tt.markLayoutEffectsStopped=="function"&&tt.markLayoutEffectsStopped()}function yu(r){tt!==null&&typeof tt.markPassiveEffectsStarted=="function"&&tt.markPassiveEffectsStarted(r)}function t0(){tt!==null&&typeof tt.markPassiveEffectsStopped=="function"&&tt.markPassiveEffectsStopped()}function xu(r){tt!==null&&typeof tt.markRenderStarted=="function"&&tt.markRenderStarted(r)}function sv(){tt!==null&&typeof tt.markRenderYielded=="function"&&tt.markRenderYielded()}function cp(){tt!==null&&typeof tt.markRenderStopped=="function"&&tt.markRenderStopped()}function Cr(r){tt!==null&&typeof tt.markRenderScheduled=="function"&&tt.markRenderScheduled(r)}function dp(r,o){tt!==null&&typeof tt.markForceUpdateScheduled=="function"&&tt.markForceUpdateScheduled(r,o)}function nf(r,o){tt!==null&&typeof tt.markStateUpdateScheduled=="function"&&tt.markStateUpdateScheduled(r,o)}var Rt=0,on=1,An=2,Gn=8,Nn=16,Br=Math.clz32?Math.clz32:rf,oa=Math.log,fp=Math.LN2;function rf(r){var o=r>>>0;return o===0?32:31-(oa(o)/fp|0)|0}var wu=31,Oe=0,Tn=0,Ft=1,kl=2,Ri=4,Ma=8,Or=16,Ls=32,El=4194240,bu=64,pp=128,hp=256,mp=512,gp=1024,vp=2048,yp=4096,xp=8192,wp=16384,Cu=32768,bp=65536,Dc=131072,jc=262144,Cp=524288,af=1048576,Sp=2097152,of=130023424,Su=4194304,kp=8388608,sf=16777216,Ep=33554432,_p=67108864,n0=Su,lf=134217728,r0=268435455,uf=268435456,ku=536870912,so=1073741824;function lv(r){{if(r&Ft)return"Sync";if(r&kl)return"InputContinuousHydration";if(r&Ri)return"InputContinuous";if(r&Ma)return"DefaultHydration";if(r&Or)return"Default";if(r&Ls)return"TransitionHydration";if(r&El)return"Transition";if(r&of)return"Retry";if(r&lf)return"SelectiveHydration";if(r&uf)return"IdleHydration";if(r&ku)return"Idle";if(r&so)return"Offscreen"}}var er=-1,Eu=bu,Tp=Su;function cf(r){switch(_l(r)){case Ft:return Ft;case kl:return kl;case Ri:return Ri;case Ma:return Ma;case Or:return Or;case Ls:return Ls;case bu:case pp:case hp:case mp:case gp:case vp:case yp:case xp:case wp:case Cu:case bp:case Dc:case jc:case Cp:case af:case Sp:return r&El;case Su:case kp:case sf:case Ep:case _p:return r&of;case lf:return lf;case uf:return uf;case ku:return ku;case so:return so;default:return u("Should have found matching lanes. This is a bug in React."),r}}function Rp(r,o){var d=r.pendingLanes;if(d===Oe)return Oe;var p=Oe,v=r.suspendedLanes,S=r.pingedLanes,_=d&r0;if(_!==Oe){var A=_&~v;if(A!==Oe)p=cf(A);else{var I=_&S;I!==Oe&&(p=cf(I))}}else{var U=d&~v;U!==Oe?p=cf(U):S!==Oe&&(p=cf(S))}if(p===Oe)return Oe;if(o!==Oe&&o!==p&&(o&v)===Oe){var $=_l(p),re=_l(o);if($>=re||$===Or&&(re&El)!==Oe)return o}(p&Ri)!==Oe&&(p|=d&Or);var te=r.entangledLanes;if(te!==Oe)for(var de=r.entanglements,ge=p&te;ge>0;){var be=Vr(ge),nt=1<<be;p|=de[be],ge&=~nt}return p}function Mi(r,o){for(var d=r.eventTimes,p=er;o>0;){var v=Vr(o),S=1<<v,_=d[v];_>p&&(p=_),o&=~S}return p}function a0(r,o){switch(r){case Ft:case kl:case Ri:return o+250;case Ma:case Or:case Ls:case bu:case pp:case hp:case mp:case gp:case vp:case yp:case xp:case wp:case Cu:case bp:case Dc:case jc:case Cp:case af:case Sp:return o+5e3;case Su:case kp:case sf:case Ep:case _p:return er;case lf:case uf:case ku:case so:return er;default:return u("Should have found matching lanes. This is a bug in React."),er}}function Mp(r,o){for(var d=r.pendingLanes,p=r.suspendedLanes,v=r.pingedLanes,S=r.expirationTimes,_=d;_>0;){var A=Vr(_),I=1<<A,U=S[A];U===er?((I&p)===Oe||(I&v)!==Oe)&&(S[A]=a0(I,o)):U<=o&&(r.expiredLanes|=I),_&=~I}}function uv(r){return cf(r.pendingLanes)}function Ap(r){var o=r.pendingLanes&~so;return o!==Oe?o:o&so?so:Oe}function cv(r){return(r&Ft)!==Oe}function df(r){return(r&r0)!==Oe}function _u(r){return(r&of)===r}function o0(r){var o=Ft|Ri|Or;return(r&o)===Oe}function i0(r){return(r&El)===r}function Np(r,o){var d=kl|Ri|Ma|Or;return(o&d)!==Oe}function dv(r,o){return(o&r.expiredLanes)!==Oe}function s0(r){return(r&El)!==Oe}function l0(){var r=Eu;return Eu<<=1,(Eu&El)===Oe&&(Eu=bu),r}function fv(){var r=Tp;return Tp<<=1,(Tp&of)===Oe&&(Tp=Su),r}function _l(r){return r&-r}function ff(r){return _l(r)}function Vr(r){return 31-Br(r)}function ma(r){return Vr(r)}function lo(r,o){return(r&o)!==Oe}function Tu(r,o){return(r&o)===o}function Xt(r,o){return r|o}function pf(r,o){return r&~o}function u0(r,o){return r&o}function pv(r){return r}function hv(r,o){return r!==Tn&&r<o?r:o}function hf(r){for(var o=[],d=0;d<wu;d++)o.push(r);return o}function Pc(r,o,d){r.pendingLanes|=o,o!==ku&&(r.suspendedLanes=Oe,r.pingedLanes=Oe);var p=r.eventTimes,v=ma(o);p[v]=d}function mv(r,o){r.suspendedLanes|=o,r.pingedLanes&=~o;for(var d=r.expirationTimes,p=o;p>0;){var v=Vr(p),S=1<<v;d[v]=er,p&=~S}}function Lp(r,o,d){r.pingedLanes|=r.suspendedLanes&o}function c0(r,o){var d=r.pendingLanes&~o;r.pendingLanes=o,r.suspendedLanes=Oe,r.pingedLanes=Oe,r.expiredLanes&=o,r.mutableReadLanes&=o,r.entangledLanes&=o;for(var p=r.entanglements,v=r.eventTimes,S=r.expirationTimes,_=d;_>0;){var A=Vr(_),I=1<<A;p[A]=Oe,v[A]=er,S[A]=er,_&=~I}}function Op(r,o){for(var d=r.entangledLanes|=o,p=r.entanglements,v=d;v;){var S=Vr(v),_=1<<S;_&o|p[S]&o&&(p[S]|=o),v&=~_}}function d0(r,o){var d=_l(o),p;switch(d){case Ri:p=kl;break;case Or:p=Ma;break;case bu:case pp:case hp:case mp:case gp:case vp:case yp:case xp:case wp:case Cu:case bp:case Dc:case jc:case Cp:case af:case Sp:case Su:case kp:case sf:case Ep:case _p:p=Ls;break;case ku:p=uf;break;default:p=Tn;break}return(p&(r.suspendedLanes|o))!==Tn?Tn:p}function mf(r,o,d){if(io)for(var p=r.pendingUpdatersLaneMap;d>0;){var v=ma(d),S=1<<v,_=p[v];_.add(o),d&=~S}}function gv(r,o){if(io)for(var d=r.pendingUpdatersLaneMap,p=r.memoizedUpdaters;o>0;){var v=ma(o),S=1<<v,_=d[v];_.size>0&&(_.forEach(function(A){var I=A.alternate;(I===null||!p.has(I))&&p.add(A)}),_.clear()),o&=~S}}function f0(r,o){return null}var Pa=Ft,Qi=Ri,ti=Or,ni=ku,gf=Tn;function ri(){return gf}function $r(r){gf=r}function vv(r,o){var d=gf;try{return gf=r,o()}finally{gf=d}}function yv(r,o){return r!==0&&r<o?r:o}function vf(r,o){return r>o?r:o}function ia(r,o){return r!==0&&r<o}function xv(r){var o=_l(r);return ia(Pa,o)?ia(Qi,o)?df(o)?ti:ni:Qi:Pa}function Ip(r){var o=r.current.memoizedState;return o.isDehydrated}var yf;function Aa(r){yf=r}function Q6(r){yf(r)}var lt;function Fc(r){lt=r}var Dp;function wv(r){Dp=r}var bv;function xf(r){bv=r}var wf;function p0(r){wf=r}var jp=!1,bf=[],Os=null,es=null,ts=null,Ir=new Map,Fa=new Map,za=[],Cv=["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","submit"];function Sv(r){return Cv.indexOf(r)>-1}function Ai(r,o,d,p,v){return{blockedOn:r,domEventName:o,eventSystemFlags:d,nativeEvent:v,targetContainers:[p]}}function h0(r,o){switch(r){case"focusin":case"focusout":Os=null;break;case"dragenter":case"dragleave":es=null;break;case"mouseover":case"mouseout":ts=null;break;case"pointerover":case"pointerout":{var d=o.pointerId;Ir.delete(d);break}case"gotpointercapture":case"lostpointercapture":{var p=o.pointerId;Fa.delete(p);break}}}function uo(r,o,d,p,v,S){if(r===null||r.nativeEvent!==S){var _=Ai(o,d,p,v,S);if(o!==null){var A=qc(o);A!==null&<(A)}return _}r.eventSystemFlags|=p;var I=r.targetContainers;return v!==null&&I.indexOf(v)===-1&&I.push(v),r}function e8(r,o,d,p,v){switch(o){case"focusin":{var S=v;return Os=uo(Os,r,o,d,p,S),!0}case"dragenter":{var _=v;return es=uo(es,r,o,d,p,_),!0}case"mouseover":{var A=v;return ts=uo(ts,r,o,d,p,A),!0}case"pointerover":{var I=v,U=I.pointerId;return Ir.set(U,uo(Ir.get(U)||null,r,o,d,p,I)),!0}case"gotpointercapture":{var $=v,re=$.pointerId;return Fa.set(re,uo(Fa.get(re)||null,r,o,d,p,$)),!0}}return!1}function m0(r){var o=Of(r.target);if(o!==null){var d=_o(o);if(d!==null){var p=d.tag;if(p===V){var v=Ji(d);if(v!==null){r.blockedOn=v,wf(r.priority,function(){Dp(d)});return}}else if(p===y){var S=d.stateNode;if(Ip(S)){r.blockedOn=Xi(d);return}}}}r.blockedOn=null}function kv(r){for(var o=bv(),d={blockedOn:null,target:r,priority:o},p=0;p<za.length&&ia(o,za[p].priority);p++);za.splice(p,0,d),p===0&&m0(d)}function Cf(r){if(r.blockedOn!==null)return!1;for(var o=r.targetContainers;o.length>0;){var d=o[0],p=Hc(r.domEventName,r.eventSystemFlags,d,r.nativeEvent);if(p===null){var v=r.nativeEvent,S=new v.constructor(v.type,v);G6(S),v.target.dispatchEvent(S),Y6()}else{var _=qc(p);return _!==null&<(_),r.blockedOn=p,!1}o.shift()}return!0}function g0(r,o,d){Cf(r)&&d.delete(o)}function t8(){jp=!1,Os!==null&&Cf(Os)&&(Os=null),es!==null&&Cf(es)&&(es=null),ts!==null&&Cf(ts)&&(ts=null),Ir.forEach(g0),Fa.forEach(g0)}function Tl(r,o){r.blockedOn===o&&(r.blockedOn=null,jp||(jp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,t8)))}function Ru(r){if(bf.length>0){Tl(bf[0],r);for(var o=1;o<bf.length;o++){var d=bf[o];d.blockedOn===r&&(d.blockedOn=null)}}Os!==null&&Tl(Os,r),es!==null&&Tl(es,r),ts!==null&&Tl(ts,r);var p=function(A){return Tl(A,r)};Ir.forEach(p),Fa.forEach(p);for(var v=0;v<za.length;v++){var S=za[v];S.blockedOn===r&&(S.blockedOn=null)}for(;za.length>0;){var _=za[0];if(_.blockedOn!==null)break;m0(_),_.blockedOn===null&&za.shift()}}var ga=n.ReactCurrentBatchConfig,xn=!0;function ta(r){xn=!!r}function Zr(){return xn}function va(r,o,d){var p=Pp(o),v;switch(p){case Pa:v=Ao;break;case Qi:v=zc;break;case ti:default:v=Dr;break}return v.bind(null,o,d,r)}function Ao(r,o,d,p){var v=ri(),S=ga.transition;ga.transition=null;try{$r(Pa),Dr(r,o,d,p)}finally{$r(v),ga.transition=S}}function zc(r,o,d,p){var v=ri(),S=ga.transition;ga.transition=null;try{$r(Qi),Dr(r,o,d,p)}finally{$r(v),ga.transition=S}}function Dr(r,o,d,p){xn&&Sf(r,o,d,p)}function Sf(r,o,d,p){var v=Hc(r,o,d,p);if(v===null){y8(r,o,p,ns,d),h0(r,p);return}if(e8(v,r,o,d,p)){p.stopPropagation();return}if(h0(r,p),o&Yo&&Sv(r)){for(;v!==null;){var S=qc(v);S!==null&&Q6(S);var _=Hc(r,o,d,p);if(_===null&&y8(r,o,p,ns,d),_===v)break;v=_}v!==null&&p.stopPropagation();return}y8(r,o,p,null,d)}var ns=null;function Hc(r,o,d,p){ns=null;var v=Bm(p),S=Of(v);if(S!==null){var _=_o(S);if(_===null)S=null;else{var A=_.tag;if(A===V){var I=Ji(_);if(I!==null)return I;S=null}else if(A===y){var U=_.stateNode;if(Ip(U))return Xi(_);S=null}else _!==S&&(S=null)}}return ns=S,null}function Pp(r){switch(r){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"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 Pa;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return Qi;case"message":{var o=sp();switch(o){case Xd:return Pa;case Cl:return Qi;case As:case K6:return ti;case mu:return ni;default:return ti}}default:return ti}}function kf(r,o,d){return r.addEventListener(o,d,!1),d}function co(r,o,d){return r.addEventListener(o,d,!0),d}function v0(r,o,d,p){return r.addEventListener(o,d,{capture:!0,passive:p}),d}function Uc(r,o,d,p){return r.addEventListener(o,d,{passive:p}),d}var No=null,Bc=null,Mu=null;function Rl(r){return No=r,Bc=Ef(),!0}function Fp(){No=null,Bc=null,Mu=null}function Is(){if(Mu)return Mu;var r,o=Bc,d=o.length,p,v=Ef(),S=v.length;for(r=0;r<d&&o[r]===v[r];r++);var _=d-r;for(p=1;p<=_&&o[d-p]===v[S-p];p++);var A=p>1?1-p:void 0;return Mu=v.slice(r,A),Mu}function Ef(){return"value"in No?No.value:No.textContent}function Ml(r){var o,d=r.keyCode;return"charCode"in r?(o=r.charCode,o===0&&d===13&&(o=13)):o=d,o===10&&(o=13),o>=32||o===13?o:0}function Vc(){return!0}function _f(){return!1}function Na(r){function o(d,p,v,S,_){this._reactName=d,this._targetInst=v,this.type=p,this.nativeEvent=S,this.target=_,this.currentTarget=null;for(var A in r)if(r.hasOwnProperty(A)){var I=r[A];I?this[A]=I(S):this[A]=S[A]}var U=S.defaultPrevented!=null?S.defaultPrevented:S.returnValue===!1;return U?this.isDefaultPrevented=Vc:this.isDefaultPrevented=_f,this.isPropagationStopped=_f,this}return en(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var d=this.nativeEvent;d&&(d.preventDefault?d.preventDefault():typeof d.returnValue!="unknown"&&(d.returnValue=!1),this.isDefaultPrevented=Vc)},stopPropagation:function(){var d=this.nativeEvent;d&&(d.stopPropagation?d.stopPropagation():typeof d.cancelBubble!="unknown"&&(d.cancelBubble=!0),this.isPropagationStopped=Vc)},persist:function(){},isPersistent:Vc}),o}var Wr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},rs=Na(Wr),Ha=en({},Wr,{view:0,detail:0}),fo=Na(Ha),zp,Tf,Au;function n8(r){r!==Au&&(Au&&r.type==="mousemove"?(zp=r.screenX-Au.screenX,Tf=r.screenY-Au.screenY):(zp=0,Tf=0),Au=r)}var Ni=en({},Ha,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gr,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(n8(r),zp)},movementY:function(r){return"movementY"in r?r.movementY:Tf}}),y0=Na(Ni),x0=en({},Ni,{dataTransfer:0}),Nu=Na(x0),w0=en({},Ha,{relatedTarget:0}),Ds=Na(w0),Ev=en({},Wr,{animationName:0,elapsedTime:0,pseudoElement:0}),_v=Na(Ev),b0=en({},Wr,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),Hp=Na(b0),r8=en({},Wr,{data:0}),Tv=Na(r8),Rv=Tv,Mv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Lu={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"};function a8(r){if(r.key){var o=Mv[r.key]||r.key;if(o!=="Unidentified")return o}if(r.type==="keypress"){var d=Ml(r);return d===13?"Enter":String.fromCharCode(d)}return r.type==="keydown"||r.type==="keyup"?Lu[r.keyCode]||"Unidentified":""}var $c={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Av(r){var o=this,d=o.nativeEvent;if(d.getModifierState)return d.getModifierState(r);var p=$c[r];return p?!!d[p]:!1}function gr(r){return Av}var o8=en({},Ha,{key:a8,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gr,charCode:function(r){return r.type==="keypress"?Ml(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Ml(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),Nv=Na(o8),i8=en({},Ni,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Lv=Na(i8),Ov=en({},Ha,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gr}),Iv=Na(Ov),s8=en({},Wr,{propertyName:0,elapsedTime:0,pseudoElement:0}),ai=Na(s8),C0=en({},Ni,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),l8=Na(C0),Al=[9,13,27,32],Rf=229,js=et&&"CompositionEvent"in window,Nl=null;et&&"documentMode"in document&&(Nl=document.documentMode);var S0=et&&"TextEvent"in window&&!Nl,Up=et&&(!js||Nl&&Nl>8&&Nl<=11),Dv=32,Bp=String.fromCharCode(Dv);function u8(){Ke("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ke("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),Ke("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),Ke("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var k0=!1;function jv(r){return(r.ctrlKey||r.altKey||r.metaKey)&&!(r.ctrlKey&&r.altKey)}function Vp(r){switch(r){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function $p(r,o){return r==="keydown"&&o.keyCode===Rf}function E0(r,o){switch(r){case"keyup":return Al.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==Rf;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Zp(r){var o=r.detail;return typeof o=="object"&&"data"in o?o.data:null}function Pv(r){return r.locale==="ko"}var Ou=!1;function _0(r,o,d,p,v){var S,_;if(js?S=Vp(o):Ou?E0(o,p)&&(S="onCompositionEnd"):$p(o,p)&&(S="onCompositionStart"),!S)return null;Up&&!Pv(p)&&(!Ou&&S==="onCompositionStart"?Ou=Rl(v):S==="onCompositionEnd"&&Ou&&(_=Is()));var A=$v(d,S);if(A.length>0){var I=new Tv(S,o,null,p,v);if(r.push({event:I,listeners:A}),_)I.data=_;else{var U=Zp(p);U!==null&&(I.data=U)}}}function Wp(r,o){switch(r){case"compositionend":return Zp(o);case"keypress":var d=o.which;return d!==Dv?null:(k0=!0,Bp);case"textInput":var p=o.data;return p===Bp&&k0?null:p;default:return null}}function T0(r,o){if(Ou){if(r==="compositionend"||!js&&E0(r,o)){var d=Is();return Fp(),Ou=!1,d}return null}switch(r){case"paste":return null;case"keypress":if(!jv(o)){if(o.char&&o.char.length>1)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return Up&&!Pv(o)?null:o.data;default:return null}}function qp(r,o,d,p,v){var S;if(S0?S=Wp(o,p):S=T0(o,p),!S)return null;var _=$v(d,"onBeforeInput");if(_.length>0){var A=new Rv("onBeforeInput","beforeinput",null,p,v);r.push({event:A,listeners:_}),A.data=S}}function Fv(r,o,d,p,v,S,_){_0(r,o,d,p,v),qp(r,o,d,p,v)}var c8={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 Mf(r){var o=r&&r.nodeName&&r.nodeName.toLowerCase();return o==="input"?!!c8[r.type]:o==="textarea"}/**
|
|
117
|
-
* Checks if an event is supported in the current execution environment.
|
|
118
|
-
*
|
|
119
|
-
* NOTE: This will not work correctly for non-generic events such as `change`,
|
|
120
|
-
* `reset`, `load`, `error`, and `select`.
|
|
121
|
-
*
|
|
122
|
-
* Borrows from Modernizr.
|
|
123
|
-
*
|
|
124
|
-
* @param {string} eventNameSuffix Event name, e.g. "click".
|
|
125
|
-
* @return {boolean} True if the event is supported.
|
|
126
|
-
* @internal
|
|
127
|
-
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
128
|
-
*/function d8(r){if(!et)return!1;var o="on"+r,d=o in document;if(!d){var p=document.createElement("div");p.setAttribute(o,"return;"),d=typeof p[o]=="function"}return d}function Af(){Ke("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function zv(r,o,d,p){Tc(p);var v=$v(o,"onChange");if(v.length>0){var S=new rs("onChange","change",null,d,p);r.push({event:S,listeners:v})}}var Ll=null,s=null;function c(r){var o=r.nodeName&&r.nodeName.toLowerCase();return o==="select"||o==="input"&&r.type==="file"}function m(r){var o=[];zv(o,s,r,Bm(r)),Xg(w,o)}function w(r){lL(r,0)}function E(r){var o=Qp(r);if($i(o))return r}function M(r,o){if(r==="change")return o}var F=!1;et&&(F=d8("input")&&(!document.documentMode||document.documentMode>9));function q(r,o){Ll=r,s=o,Ll.attachEvent("onpropertychange",me)}function Q(){Ll&&(Ll.detachEvent("onpropertychange",me),Ll=null,s=null)}function me(r){r.propertyName==="value"&&E(s)&&m(r)}function De(r,o,d){r==="focusin"?(Q(),q(o,d)):r==="focusout"&&Q()}function Pe(r,o){if(r==="selectionchange"||r==="keyup"||r==="keydown")return E(s)}function Ie(r){var o=r.nodeName;return o&&o.toLowerCase()==="input"&&(r.type==="checkbox"||r.type==="radio")}function at(r,o){if(r==="click")return E(o)}function ft(r,o){if(r==="input"||r==="change")return E(o)}function vt(r){var o=r._wrapperState;!o||!o.controlled||r.type!=="number"||Nt(r,"number",r.value)}function jr(r,o,d,p,v,S,_){var A=d?Qp(d):window,I,U;if(c(A)?I=M:Mf(A)?F?I=ft:(I=Pe,U=De):Ie(A)&&(I=at),I){var $=I(o,d);if($){zv(r,$,p,v);return}}U&&U(o,A,d),o==="focusout"&&vt(A)}function oe(){We("onMouseEnter",["mouseout","mouseover"]),We("onMouseLeave",["mouseout","mouseover"]),We("onPointerEnter",["pointerout","pointerover"]),We("onPointerLeave",["pointerout","pointerover"])}function ne(r,o,d,p,v,S,_){var A=o==="mouseover"||o==="pointerover",I=o==="mouseout"||o==="pointerout";if(A&&!Zd(p)){var U=p.relatedTarget||p.fromElement;if(U&&(Of(U)||U0(U)))return}if(!(!I&&!A)){var $;if(v.window===v)$=v;else{var re=v.ownerDocument;re?$=re.defaultView||re.parentWindow:$=window}var te,de;if(I){var ge=p.relatedTarget||p.toElement;if(te=d,de=ge?Of(ge):null,de!==null){var be=_o(de);(de!==be||de.tag!==b&&de.tag!==T)&&(de=null)}}else te=null,de=d;if(te!==de){var nt=y0,Lt="onMouseLeave",Ct="onMouseEnter",bn="mouse";(o==="pointerout"||o==="pointerover")&&(nt=Lv,Lt="onPointerLeave",Ct="onPointerEnter",bn="pointer");var mn=te==null?$:Qp(te),ie=de==null?$:Qp(de),Ce=new nt(Lt,bn+"leave",te,p,v);Ce.target=mn,Ce.relatedTarget=ie;var se=null,Fe=Of(v);if(Fe===d){var it=new nt(Ct,bn+"enter",de,p,v);it.target=ie,it.relatedTarget=mn,se=it}ile(r,Ce,se,te,de)}}}function le(r,o){return r===o&&(r!==0||1/r===1/o)||r!==r&&o!==o}var je=typeof Object.is=="function"?Object.is:le;function pt(r,o){if(je(r,o))return!0;if(typeof r!="object"||r===null||typeof o!="object"||o===null)return!1;var d=Object.keys(r),p=Object.keys(o);if(d.length!==p.length)return!1;for(var v=0;v<d.length;v++){var S=d[v];if(!Et.call(o,S)||!je(r[S],o[S]))return!1}return!0}function Ot(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function jt(r){for(;r;){if(r.nextSibling)return r.nextSibling;r=r.parentNode}}function Ht(r,o){for(var d=Ot(r),p=0,v=0;d;){if(d.nodeType===Es){if(v=p+d.textContent.length,p<=o&&v>=o)return{node:d,offset:o-p};p=v}d=Ot(jt(d))}}function sa(r){var o=r.ownerDocument,d=o&&o.defaultView||window,p=d.getSelection&&d.getSelection();if(!p||p.rangeCount===0)return null;var v=p.anchorNode,S=p.anchorOffset,_=p.focusNode,A=p.focusOffset;try{v.nodeType,_.nodeType}catch(I){return null}return Ln(r,v,S,_,A)}function Ln(r,o,d,p,v){var S=0,_=-1,A=-1,I=0,U=0,$=r,re=null;e:for(;;){for(var te=null;$===o&&(d===0||$.nodeType===Es)&&(_=S+d),$===p&&(v===0||$.nodeType===Es)&&(A=S+v),$.nodeType===Es&&(S+=$.nodeValue.length),(te=$.firstChild)!==null;)re=$,$=te;for(;;){if($===r)break e;if(re===o&&++I===d&&(_=S),re===p&&++U===v&&(A=S),(te=$.nextSibling)!==null)break;$=re,re=$.parentNode}$=te}return _===-1||A===-1?null:{start:_,end:A}}function Ol(r,o){var d=r.ownerDocument||document,p=d&&d.defaultView||window;if(p.getSelection){var v=p.getSelection(),S=r.textContent.length,_=Math.min(o.start,S),A=o.end===void 0?_:Math.min(o.end,S);if(!v.extend&&_>A){var I=A;A=_,_=I}var U=Ht(r,_),$=Ht(r,A);if(U&&$){if(v.rangeCount===1&&v.anchorNode===U.node&&v.anchorOffset===U.offset&&v.focusNode===$.node&&v.focusOffset===$.offset)return;var re=d.createRange();re.setStart(U.node,U.offset),v.removeAllRanges(),_>A?(v.addRange(re),v.extend($.node,$.offset)):(re.setEnd($.node,$.offset),v.addRange(re))}}}function Hv(r){return r&&r.nodeType===Es}function XN(r,o){return!r||!o?!1:r===o?!0:Hv(r)?!1:Hv(o)?XN(r,o.parentNode):"contains"in r?r.contains(o):r.compareDocumentPosition?!!(r.compareDocumentPosition(o)&16):!1}function Bse(r){return r&&r.ownerDocument&&XN(r.ownerDocument.documentElement,r)}function Vse(r){try{return typeof r.contentWindow.location.href=="string"}catch(o){return!1}}function KN(){for(var r=window,o=Go();o instanceof r.HTMLIFrameElement;){if(Vse(o))r=o.contentWindow;else return o;o=Go(r.document)}return o}function f8(r){var o=r&&r.nodeName&&r.nodeName.toLowerCase();return o&&(o==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||o==="textarea"||r.contentEditable==="true")}function $se(){var r=KN();return{focusedElem:r,selectionRange:f8(r)?Wse(r):null}}function Zse(r){var o=KN(),d=r.focusedElem,p=r.selectionRange;if(o!==d&&Bse(d)){p!==null&&f8(d)&&qse(d,p);for(var v=[],S=d;S=S.parentNode;)S.nodeType===to&&v.push({element:S,left:S.scrollLeft,top:S.scrollTop});typeof d.focus=="function"&&d.focus();for(var _=0;_<v.length;_++){var A=v[_];A.element.scrollLeft=A.left,A.element.scrollTop=A.top}}}function Wse(r){var o;return"selectionStart"in r?o={start:r.selectionStart,end:r.selectionEnd}:o=sa(r),o||{start:0,end:0}}function qse(r,o){var d=o.start,p=o.end;p===void 0&&(p=d),"selectionStart"in r?(r.selectionStart=d,r.selectionEnd=Math.min(p,r.value.length)):Ol(r,o)}var Gse=et&&"documentMode"in document&&document.documentMode<=11;function Yse(){Ke("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var Gp=null,p8=null,R0=null,h8=!1;function Jse(r){if("selectionStart"in r&&f8(r))return{start:r.selectionStart,end:r.selectionEnd};var o=r.ownerDocument&&r.ownerDocument.defaultView||window,d=o.getSelection();return{anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}}function Xse(r){return r.window===r?r.document:r.nodeType===_s?r:r.ownerDocument}function QN(r,o,d){var p=Xse(d);if(!(h8||Gp==null||Gp!==Go(p))){var v=Jse(Gp);if(!R0||!pt(R0,v)){R0=v;var S=$v(p8,"onSelect");if(S.length>0){var _=new rs("onSelect","select",null,o,d);r.push({event:_,listeners:S}),_.target=Gp}}}}function Kse(r,o,d,p,v,S,_){var A=d?Qp(d):window;switch(o){case"focusin":(Mf(A)||A.contentEditable==="true")&&(Gp=A,p8=d,R0=null);break;case"focusout":Gp=null,p8=null,R0=null;break;case"mousedown":h8=!0;break;case"contextmenu":case"mouseup":case"dragend":h8=!1,QN(r,p,v);break;case"selectionchange":if(Gse)break;case"keydown":case"keyup":QN(r,p,v)}}function Uv(r,o){var d={};return d[r.toLowerCase()]=o.toLowerCase(),d["Webkit"+r]="webkit"+o,d["Moz"+r]="moz"+o,d}var Yp={animationend:Uv("Animation","AnimationEnd"),animationiteration:Uv("Animation","AnimationIteration"),animationstart:Uv("Animation","AnimationStart"),transitionend:Uv("Transition","TransitionEnd")},m8={},eL={};et&&(eL=document.createElement("div").style,"AnimationEvent"in window||(delete Yp.animationend.animation,delete Yp.animationiteration.animation,delete Yp.animationstart.animation),"TransitionEvent"in window||delete Yp.transitionend.transition);function Bv(r){if(m8[r])return m8[r];if(!Yp[r])return r;var o=Yp[r];for(var d in o)if(o.hasOwnProperty(d)&&d in eL)return m8[r]=o[d];return r}var tL=Bv("animationend"),nL=Bv("animationiteration"),rL=Bv("animationstart"),aL=Bv("transitionend"),oL=new Map,iL=["abort","auxClick","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"];function Zc(r,o){oL.set(r,o),Ke(o,[r])}function Qse(){for(var r=0;r<iL.length;r++){var o=iL[r],d=o.toLowerCase(),p=o[0].toUpperCase()+o.slice(1);Zc(d,"on"+p)}Zc(tL,"onAnimationEnd"),Zc(nL,"onAnimationIteration"),Zc(rL,"onAnimationStart"),Zc("dblclick","onDoubleClick"),Zc("focusin","onFocus"),Zc("focusout","onBlur"),Zc(aL,"onTransitionEnd")}function ele(r,o,d,p,v,S,_){var A=oL.get(o);if(A!==void 0){var I=rs,U=o;switch(o){case"keypress":if(Ml(p)===0)return;case"keydown":case"keyup":I=Nv;break;case"focusin":U="focus",I=Ds;break;case"focusout":U="blur",I=Ds;break;case"beforeblur":case"afterblur":I=Ds;break;case"click":if(p.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":I=y0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":I=Nu;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":I=Iv;break;case tL:case nL:case rL:I=_v;break;case aL:I=ai;break;case"scroll":I=fo;break;case"wheel":I=l8;break;case"copy":case"cut":case"paste":I=Hp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":I=Lv;break}var $=(S&Yo)!==0;{var re=!$&&o==="scroll",te=ale(d,A,p.type,$,re);if(te.length>0){var de=new I(A,U,null,p,v);r.push({event:de,listeners:te})}}}}Qse(),oe(),Af(),Yse(),u8();function tle(r,o,d,p,v,S,_){ele(r,o,d,p,v,S);var A=(S&Um)===0;A&&(ne(r,o,d,p,v),jr(r,o,d,p,v),Kse(r,o,d,p,v),Fv(r,o,d,p,v))}var M0=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],g8=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(M0));function sL(r,o,d){var p=r.type||"unknown-event";r.currentTarget=d,qi(p,o,void 0,r),r.currentTarget=null}function nle(r,o,d){var p;if(d)for(var v=o.length-1;v>=0;v--){var S=o[v],_=S.instance,A=S.currentTarget,I=S.listener;if(_!==p&&r.isPropagationStopped())return;sL(r,I,A),p=_}else for(var U=0;U<o.length;U++){var $=o[U],re=$.instance,te=$.currentTarget,de=$.listener;if(re!==p&&r.isPropagationStopped())return;sL(r,de,te),p=re}}function lL(r,o){for(var d=(o&Yo)!==0,p=0;p<r.length;p++){var v=r[p],S=v.event,_=v.listeners;nle(S,_,d)}Gd()}function rle(r,o,d,p,v){var S=Bm(d),_=[];tle(_,r,p,d,S,o),lL(_,o)}function Sr(r,o){g8.has(r)||u('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',r);var d=!1,p=Oue(o),v=sle(r);p.has(v)||(uL(o,r,G1,d),p.add(v))}function v8(r,o,d){g8.has(r)&&!o&&u('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',r);var p=0;o&&(p|=Yo),uL(d,r,p,o)}var Vv="_reactListening"+Math.random().toString(36).slice(2);function A0(r){if(!r[Vv]){r[Vv]=!0,Ve.forEach(function(d){d!=="selectionchange"&&(g8.has(d)||v8(d,!1,r),v8(d,!0,r))});var o=r.nodeType===_s?r:r.ownerDocument;o!==null&&(o[Vv]||(o[Vv]=!0,v8("selectionchange",!1,o)))}}function uL(r,o,d,p,v){var S=va(r,o,d),_=void 0;qd&&(o==="touchstart"||o==="touchmove"||o==="wheel")&&(_=!0),r=r,p?_!==void 0?v0(r,o,S,_):co(r,o,S):_!==void 0?Uc(r,o,S,_):kf(r,o,S)}function cL(r,o){return r===o||r.nodeType===zr&&r.parentNode===o}function y8(r,o,d,p,v){var S=p;if(!(o&Hm)&&!(o&G1)){var _=v;if(p!==null){var A=p;e:for(;;){if(A===null)return;var I=A.tag;if(I===y||I===k){var U=A.stateNode.containerInfo;if(cL(U,_))break;if(I===k)for(var $=A.return;$!==null;){var re=$.tag;if(re===y||re===k){var te=$.stateNode.containerInfo;if(cL(te,_))return}$=$.return}for(;U!==null;){var de=Of(U);if(de===null)return;var ge=de.tag;if(ge===b||ge===T){A=S=de;continue e}U=U.parentNode}}A=A.return}}}Xg(function(){return rle(r,o,d,S)})}function N0(r,o,d){return{instance:r,listener:o,currentTarget:d}}function ale(r,o,d,p,v,S){for(var _=o!==null?o+"Capture":null,A=p?_:o,I=[],U=r,$=null;U!==null;){var re=U,te=re.stateNode,de=re.tag;if(de===b&&te!==null&&($=te,A!==null)){var ge=gl(U,A);ge!=null&&I.push(N0(U,ge,$))}if(v)break;U=U.return}return I}function $v(r,o){for(var d=o+"Capture",p=[],v=r;v!==null;){var S=v,_=S.stateNode,A=S.tag;if(A===b&&_!==null){var I=_,U=gl(v,d);U!=null&&p.unshift(N0(v,U,I));var $=gl(v,o);$!=null&&p.push(N0(v,$,I))}v=v.return}return p}function Jp(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==b);return r||null}function ole(r,o){for(var d=r,p=o,v=0,S=d;S;S=Jp(S))v++;for(var _=0,A=p;A;A=Jp(A))_++;for(;v-_>0;)d=Jp(d),v--;for(;_-v>0;)p=Jp(p),_--;for(var I=v;I--;){if(d===p||p!==null&&d===p.alternate)return d;d=Jp(d),p=Jp(p)}return null}function dL(r,o,d,p,v){for(var S=o._reactName,_=[],A=d;A!==null&&A!==p;){var I=A,U=I.alternate,$=I.stateNode,re=I.tag;if(U!==null&&U===p)break;if(re===b&&$!==null){var te=$;if(v){var de=gl(A,S);de!=null&&_.unshift(N0(A,de,te))}else if(!v){var ge=gl(A,S);ge!=null&&_.push(N0(A,ge,te))}}A=A.return}_.length!==0&&r.push({event:o,listeners:_})}function ile(r,o,d,p,v){var S=p&&v?ole(p,v):null;p!==null&&dL(r,o,p,S,!1),v!==null&&d!==null&&dL(r,d,v,S,!0)}function sle(r,o){return r+"__bubble"}var oi=!1,L0="dangerouslySetInnerHTML",Zv="suppressContentEditableWarning",Wc="suppressHydrationWarning",fL="autoFocus",Nf="children",Lf="style",Wv="__html",x8,qv,O0,pL,Gv,hL,mL;x8={dialog:!0,webview:!0},qv=function(r,o){Pm(r,o),W1(r,o),Gg(r,o,{registrationNameDependencies:_e,possibleRegistrationNames:Ze})},hL=et&&!document.documentMode,O0=function(r,o,d){if(!oi){var p=Yv(d),v=Yv(o);v!==p&&(oi=!0,u("Prop `%s` did not match. Server: %s Client: %s",r,JSON.stringify(v),JSON.stringify(p)))}},pL=function(r){if(!oi){oi=!0;var o=[];r.forEach(function(d){o.push(d)}),u("Extra attributes from the server: %s",o)}},Gv=function(r,o){o===!1?u("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",r,r,r):u("Expected `%s` listener to be a function, instead got a value of `%s` type.",r,typeof o)},mL=function(r,o){var d=r.namespaceURI===ks?r.ownerDocument.createElement(r.tagName):r.ownerDocument.createElementNS(r.namespaceURI,r.tagName);return d.innerHTML=o,d.innerHTML};var lle=/\r\n?/g,ule=/\u0000|\uFFFD/g;function Yv(r){He(r);var o=typeof r=="string"?r:""+r;return o.replace(lle,`
|
|
129
|
-
`).replace(ule,"")}function Jv(r,o,d,p){var v=Yv(o),S=Yv(r);if(S!==v&&(p&&(oi||(oi=!0,u('Text content did not match. Server: "%s" Client: "%s"',S,v))),d&&xe))throw new Error("Text content does not match server-rendered HTML.")}function gL(r){return r.nodeType===_s?r:r.ownerDocument}function cle(){}function Xv(r){r.onclick=cle}function dle(r,o,d,p,v){for(var S in p)if(p.hasOwnProperty(S)){var _=p[S];if(S===Lf)_&&Object.freeze(_),Bg(o,_);else if(S===L0){var A=_?_[Wv]:void 0;A!=null&&Ag(o,A)}else if(S===Nf)if(typeof _=="string"){var I=r!=="textarea"||_!=="";I&&Sc(o,_)}else typeof _=="number"&&Sc(o,""+_);else S===Zv||S===Wc||S===fL||(_e.hasOwnProperty(S)?_!=null&&(typeof _!="function"&&Gv(S,_),S==="onScroll"&&Sr("scroll",o)):_!=null&&_n(o,S,_,v))}}function fle(r,o,d,p){for(var v=0;v<o.length;v+=2){var S=o[v],_=o[v+1];S===Lf?Bg(r,_):S===L0?Ag(r,_):S===Nf?Sc(r,_):_n(r,S,_,p)}}function ple(r,o,d,p){var v,S=gL(d),_,A=p;if(A===ks&&(A=Am(r)),A===ks){if(v=hl(r,o),!v&&r!==r.toLowerCase()&&u("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",r),r==="script"){var I=S.createElement("div");I.innerHTML="<script><\/script>";var U=I.firstChild;_=I.removeChild(U)}else if(typeof o.is=="string")_=S.createElement(r,{is:o.is});else if(_=S.createElement(r),r==="select"){var $=_;o.multiple?$.multiple=!0:o.size&&($.size=o.size)}}else _=S.createElementNS(A,r);return A===ks&&!v&&Object.prototype.toString.call(_)==="[object HTMLUnknownElement]"&&!Et.call(x8,r)&&(x8[r]=!0,u("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",r)),_}function hle(r,o){return gL(o).createTextNode(r)}function mle(r,o,d,p){var v=hl(o,d);qv(o,d);var S;switch(o){case"dialog":Sr("cancel",r),Sr("close",r),S=d;break;case"iframe":case"object":case"embed":Sr("load",r),S=d;break;case"video":case"audio":for(var _=0;_<M0.length;_++)Sr(M0[_],r);S=d;break;case"source":Sr("error",r),S=d;break;case"img":case"image":case"link":Sr("error",r),Sr("load",r),S=d;break;case"details":Sr("toggle",r),S=d;break;case"input":Ei(r,d),S=Cc(r,d),Sr("invalid",r);break;case"option":Sn(r,d),S=d;break;case"select":su(r,d),S=Fd(r,d),Sr("invalid",r);break;case"textarea":Tm(r,d),S=_m(r,d),Sr("invalid",r);break;default:S=d}switch($1(o,S),dle(o,r,p,S,v),o){case"input":ki(r),fe(r,d,!1);break;case"textarea":ki(r),Rg(r);break;case"option":rr(r,d);break;case"select":km(r,d);break;default:typeof S.onClick=="function"&&Xv(r);break}}function gle(r,o,d,p,v){qv(o,p);var S=null,_,A;switch(o){case"input":_=Cc(r,d),A=Cc(r,p),S=[];break;case"select":_=Fd(r,d),A=Fd(r,p),S=[];break;case"textarea":_=_m(r,d),A=_m(r,p),S=[];break;default:_=d,A=p,typeof _.onClick!="function"&&typeof A.onClick=="function"&&Xv(r);break}$1(o,A);var I,U,$=null;for(I in _)if(!(A.hasOwnProperty(I)||!_.hasOwnProperty(I)||_[I]==null))if(I===Lf){var re=_[I];for(U in re)re.hasOwnProperty(U)&&($||($={}),$[U]="")}else I===L0||I===Nf||I===Zv||I===Wc||I===fL||(_e.hasOwnProperty(I)?S||(S=[]):(S=S||[]).push(I,null));for(I in A){var te=A[I],de=_!=null?_[I]:void 0;if(!(!A.hasOwnProperty(I)||te===de||te==null&&de==null))if(I===Lf)if(te&&Object.freeze(te),de){for(U in de)de.hasOwnProperty(U)&&(!te||!te.hasOwnProperty(U))&&($||($={}),$[U]="");for(U in te)te.hasOwnProperty(U)&&de[U]!==te[U]&&($||($={}),$[U]=te[U])}else $||(S||(S=[]),S.push(I,$)),$=te;else if(I===L0){var ge=te?te[Wv]:void 0,be=de?de[Wv]:void 0;ge!=null&&be!==ge&&(S=S||[]).push(I,ge)}else I===Nf?(typeof te=="string"||typeof te=="number")&&(S=S||[]).push(I,""+te):I===Zv||I===Wc||(_e.hasOwnProperty(I)?(te!=null&&(typeof te!="function"&&Gv(I,te),I==="onScroll"&&Sr("scroll",r)),!S&&de!==te&&(S=[])):(S=S||[]).push(I,te))}return $&&(W6($,A[Lf]),(S=S||[]).push(Lf,$)),S}function vle(r,o,d,p,v){d==="input"&&v.type==="radio"&&v.name!=null&&D(r,v);var S=hl(d,p),_=hl(d,v);switch(fle(r,o,S,_),d){case"input":Y(r,v);break;case"textarea":Tg(r,v);break;case"select":U1(r,v);break}}function yle(r){{var o=r.toLowerCase();return Vd.hasOwnProperty(o)&&Vd[o]||null}}function xle(r,o,d,p,v,S,_){var A,I;switch(A=hl(o,d),qv(o,d),o){case"dialog":Sr("cancel",r),Sr("close",r);break;case"iframe":case"object":case"embed":Sr("load",r);break;case"video":case"audio":for(var U=0;U<M0.length;U++)Sr(M0[U],r);break;case"source":Sr("error",r);break;case"img":case"image":case"link":Sr("error",r),Sr("load",r);break;case"details":Sr("toggle",r);break;case"input":Ei(r,d),Sr("invalid",r);break;case"option":Sn(r,d);break;case"select":su(r,d),Sr("invalid",r);break;case"textarea":Tm(r,d),Sr("invalid",r);break}$1(o,d);{I=new Set;for(var $=r.attributes,re=0;re<$.length;re++){var te=$[re].name.toLowerCase();switch(te){case"value":break;case"checked":break;case"selected":break;default:I.add($[re].name)}}}var de=null;for(var ge in d)if(d.hasOwnProperty(ge)){var be=d[ge];if(ge===Nf)typeof be=="string"?r.textContent!==be&&(d[Wc]!==!0&&Jv(r.textContent,be,S,_),de=[Nf,be]):typeof be=="number"&&r.textContent!==""+be&&(d[Wc]!==!0&&Jv(r.textContent,be,S,_),de=[Nf,""+be]);else if(_e.hasOwnProperty(ge))be!=null&&(typeof be!="function"&&Gv(ge,be),ge==="onScroll"&&Sr("scroll",r));else if(_&&typeof A=="boolean"){var nt=void 0,Lt=dn(ge);if(d[Wc]!==!0){if(!(ge===Zv||ge===Wc||ge==="value"||ge==="checked"||ge==="selected")){if(ge===L0){var Ct=r.innerHTML,bn=be?be[Wv]:void 0;if(bn!=null){var mn=mL(r,bn);mn!==Ct&&O0(ge,Ct,mn)}}else if(ge===Lf){if(I.delete(ge),hL){var ie=$6(be);nt=r.getAttribute("style"),ie!==nt&&O0(ge,nt,ie)}}else if(A&&!X)I.delete(ge.toLowerCase()),nt=_t(r,ge,be),be!==nt&&O0(ge,nt,be);else if(!ln(ge,Lt,A)&&!Qn(ge,be,Lt,A)){var Ce=!1;if(Lt!==null)I.delete(Lt.attributeName),nt=yi(r,ge,be,Lt);else{var se=p;if(se===ks&&(se=Am(o)),se===ks)I.delete(ge.toLowerCase());else{var Fe=yle(ge);Fe!==null&&Fe!==ge&&(Ce=!0,I.delete(Fe)),I.delete(ge)}nt=_t(r,ge,be)}var it=X;!it&&be!==nt&&!Ce&&O0(ge,nt,be)}}}}}switch(_&&I.size>0&&d[Wc]!==!0&&pL(I),o){case"input":ki(r),fe(r,d,!0);break;case"textarea":ki(r),Rg(r);break;case"select":case"option":break;default:typeof d.onClick=="function"&&Xv(r);break}return de}function wle(r,o,d){var p=r.nodeValue!==o;return p}function w8(r,o){{if(oi)return;oi=!0,u("Did not expect server HTML to contain a <%s> in <%s>.",o.nodeName.toLowerCase(),r.nodeName.toLowerCase())}}function b8(r,o){{if(oi)return;oi=!0,u('Did not expect server HTML to contain the text node "%s" in <%s>.',o.nodeValue,r.nodeName.toLowerCase())}}function C8(r,o,d){{if(oi)return;oi=!0,u("Expected server HTML to contain a matching <%s> in <%s>.",o,r.nodeName.toLowerCase())}}function S8(r,o){{if(o===""||oi)return;oi=!0,u('Expected server HTML to contain a matching text node for "%s" in <%s>.',o,r.nodeName.toLowerCase())}}function ble(r,o,d){switch(o){case"input":we(r,d);return;case"textarea":H6(r,d);return;case"select":Em(r,d);return}}var I0=function(){},D0=function(){};{var Cle=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],vL=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],Sle=vL.concat(["button"]),kle=["dd","dt","li","option","optgroup","p","rp","rt"],yL={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};D0=function(r,o){var d=en({},r||yL),p={tag:o};return vL.indexOf(o)!==-1&&(d.aTagInScope=null,d.buttonTagInScope=null,d.nobrTagInScope=null),Sle.indexOf(o)!==-1&&(d.pTagInButtonScope=null),Cle.indexOf(o)!==-1&&o!=="address"&&o!=="div"&&o!=="p"&&(d.listItemTagAutoclosing=null,d.dlItemTagAutoclosing=null),d.current=p,o==="form"&&(d.formTag=p),o==="a"&&(d.aTagInScope=p),o==="button"&&(d.buttonTagInScope=p),o==="nobr"&&(d.nobrTagInScope=p),o==="p"&&(d.pTagInButtonScope=p),o==="li"&&(d.listItemTagAutoclosing=p),(o==="dd"||o==="dt")&&(d.dlItemTagAutoclosing=p),d};var Ele=function(r,o){switch(o){case"select":return r==="option"||r==="optgroup"||r==="#text";case"optgroup":return r==="option"||r==="#text";case"option":return r==="#text";case"tr":return r==="th"||r==="td"||r==="style"||r==="script"||r==="template";case"tbody":case"thead":case"tfoot":return r==="tr"||r==="style"||r==="script"||r==="template";case"colgroup":return r==="col"||r==="template";case"table":return r==="caption"||r==="colgroup"||r==="tbody"||r==="tfoot"||r==="thead"||r==="style"||r==="script"||r==="template";case"head":return r==="base"||r==="basefont"||r==="bgsound"||r==="link"||r==="meta"||r==="title"||r==="noscript"||r==="noframes"||r==="style"||r==="script"||r==="template";case"html":return r==="head"||r==="body"||r==="frameset";case"frameset":return r==="frame";case"#document":return r==="html"}switch(r){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return o!=="h1"&&o!=="h2"&&o!=="h3"&&o!=="h4"&&o!=="h5"&&o!=="h6";case"rp":case"rt":return kle.indexOf(o)===-1;case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return o==null}return!0},_le=function(r,o){switch(r){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return o.pTagInButtonScope;case"form":return o.formTag||o.pTagInButtonScope;case"li":return o.listItemTagAutoclosing;case"dd":case"dt":return o.dlItemTagAutoclosing;case"button":return o.buttonTagInScope;case"a":return o.aTagInScope;case"nobr":return o.nobrTagInScope}return null},xL={};I0=function(r,o,d){d=d||yL;var p=d.current,v=p&&p.tag;o!=null&&(r!=null&&u("validateDOMNesting: when childText is passed, childTag should be null"),r="#text");var S=Ele(r,v)?null:p,_=S?null:_le(r,d),A=S||_;if(A){var I=A.tag,U=!!S+"|"+r+"|"+I;if(!xL[U]){xL[U]=!0;var $=r,re="";if(r==="#text"?/\S/.test(o)?$="Text nodes":($="Whitespace text nodes",re=" Make sure you don't have any extra whitespace between tags on each line of your source code."):$="<"+r+">",S){var te="";I==="table"&&r==="tr"&&(te+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),u("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",$,I,re,te)}else u("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",$,I)}}}}var Kv="suppressHydrationWarning",Qv="$",e3="/$",j0="$?",P0="$!",Tle="style",k8=null,E8=null;function Rle(r){var o,d,p=r.nodeType;switch(p){case _s:case Lm:{o=p===_s?"#document":"#fragment";var v=r.documentElement;d=v?v.namespaceURI:Nm(null,"");break}default:{var S=p===zr?r.parentNode:r,_=S.namespaceURI||null;o=S.tagName,d=Nm(_,o);break}}{var A=o.toLowerCase(),I=D0(null,A);return{namespace:d,ancestorInfo:I}}}function Mle(r,o,d){{var p=r,v=Nm(p.namespace,o),S=D0(p.ancestorInfo,o);return{namespace:v,ancestorInfo:S}}}function ape(r){return r}function Ale(r){k8=Zr(),E8=$se();var o=null;return ta(!1),o}function Nle(r){Zse(E8),ta(k8),k8=null,E8=null}function Lle(r,o,d,p,v){var S;{var _=p;if(I0(r,null,_.ancestorInfo),typeof o.children=="string"||typeof o.children=="number"){var A=""+o.children,I=D0(_.ancestorInfo,r);I0(null,A,I)}S=_.namespace}var U=ple(r,o,d,S);return H0(v,U),O8(U,o),U}function Ole(r,o){r.appendChild(o)}function Ile(r,o,d,p,v){switch(mle(r,o,d,p),o){case"button":case"input":case"select":case"textarea":return!!d.autoFocus;case"img":return!0;default:return!1}}function Dle(r,o,d,p,v,S){{var _=S;if(typeof p.children!=typeof d.children&&(typeof p.children=="string"||typeof p.children=="number")){var A=""+p.children,I=D0(_.ancestorInfo,o);I0(null,A,I)}}return gle(r,o,d,p)}function _8(r,o){return r==="textarea"||r==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}function jle(r,o,d,p){{var v=d;I0(null,r,v.ancestorInfo)}var S=hle(r,o);return H0(p,S),S}function Ple(){var r=window.event;return r===void 0?ti:Pp(r.type)}var T8=typeof setTimeout=="function"?setTimeout:void 0,Fle=typeof clearTimeout=="function"?clearTimeout:void 0,R8=-1,wL=typeof Promise=="function"?Promise:void 0,zle=typeof queueMicrotask=="function"?queueMicrotask:typeof wL!="undefined"?function(r){return wL.resolve(null).then(r).catch(Hle)}:T8;function Hle(r){setTimeout(function(){throw r})}function Ule(r,o,d,p){switch(o){case"button":case"input":case"select":case"textarea":d.autoFocus&&r.focus();return;case"img":{d.src&&(r.src=d.src);return}}}function Ble(r,o,d,p,v,S){vle(r,o,d,p,v),O8(r,v)}function bL(r){Sc(r,"")}function Vle(r,o,d){r.nodeValue=d}function $le(r,o){r.appendChild(o)}function Zle(r,o){var d;r.nodeType===zr?(d=r.parentNode,d.insertBefore(o,r)):(d=r,d.appendChild(o));var p=r._reactRootContainer;p==null&&d.onclick===null&&Xv(d)}function Wle(r,o,d){r.insertBefore(o,d)}function qle(r,o,d){r.nodeType===zr?r.parentNode.insertBefore(o,d):r.insertBefore(o,d)}function Gle(r,o){r.removeChild(o)}function Yle(r,o){r.nodeType===zr?r.parentNode.removeChild(o):r.removeChild(o)}function M8(r,o){var d=o,p=0;do{var v=d.nextSibling;if(r.removeChild(d),v&&v.nodeType===zr){var S=v.data;if(S===e3)if(p===0){r.removeChild(v),Ru(o);return}else p--;else(S===Qv||S===j0||S===P0)&&p++}d=v}while(d);Ru(o)}function Jle(r,o){r.nodeType===zr?M8(r.parentNode,o):r.nodeType===to&&M8(r,o),Ru(r)}function Xle(r){r=r;var o=r.style;typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"}function Kle(r){r.nodeValue=""}function Qle(r,o){r=r;var d=o[Tle],p=d!=null&&d.hasOwnProperty("display")?d.display:null;r.style.display=V1("display",p)}function eue(r,o){r.nodeValue=o}function tue(r){r.nodeType===to?r.textContent="":r.nodeType===_s&&r.documentElement&&r.removeChild(r.documentElement)}function nue(r,o,d){return r.nodeType!==to||o.toLowerCase()!==r.nodeName.toLowerCase()?null:r}function rue(r,o){return o===""||r.nodeType!==Es?null:r}function aue(r){return r.nodeType!==zr?null:r}function CL(r){return r.data===j0}function A8(r){return r.data===P0}function oue(r){var o=r.nextSibling&&r.nextSibling.dataset,d,p,v;return o&&(d=o.dgst,p=o.msg,v=o.stck),{message:p,digest:d,stack:v}}function iue(r,o){r._reactRetry=o}function t3(r){for(;r!=null;r=r.nextSibling){var o=r.nodeType;if(o===to||o===Es)break;if(o===zr){var d=r.data;if(d===Qv||d===P0||d===j0)break;if(d===e3)return null}}return r}function F0(r){return t3(r.nextSibling)}function sue(r){return t3(r.firstChild)}function lue(r){return t3(r.firstChild)}function uue(r){return t3(r.nextSibling)}function cue(r,o,d,p,v,S,_){H0(S,r),O8(r,d);var A;{var I=v;A=I.namespace}var U=(S.mode&on)!==Rt;return xle(r,o,d,A,p,U,_)}function due(r,o,d,p){return H0(d,r),d.mode&on,wle(r,o)}function fue(r,o){H0(o,r)}function pue(r){for(var o=r.nextSibling,d=0;o;){if(o.nodeType===zr){var p=o.data;if(p===e3){if(d===0)return F0(o);d--}else(p===Qv||p===P0||p===j0)&&d++}o=o.nextSibling}return null}function SL(r){for(var o=r.previousSibling,d=0;o;){if(o.nodeType===zr){var p=o.data;if(p===Qv||p===P0||p===j0){if(d===0)return o;d--}else p===e3&&d++}o=o.previousSibling}return null}function hue(r){Ru(r)}function mue(r){Ru(r)}function gue(r){return r!=="head"&&r!=="body"}function vue(r,o,d,p){var v=!0;Jv(o.nodeValue,d,p,v)}function yue(r,o,d,p,v,S){if(o[Kv]!==!0){var _=!0;Jv(p.nodeValue,v,S,_)}}function xue(r,o){o.nodeType===to?w8(r,o):o.nodeType===zr||b8(r,o)}function wue(r,o){{var d=r.parentNode;d!==null&&(o.nodeType===to?w8(d,o):o.nodeType===zr||b8(d,o))}}function bue(r,o,d,p,v){(v||o[Kv]!==!0)&&(p.nodeType===to?w8(d,p):p.nodeType===zr||b8(d,p))}function Cue(r,o,d){C8(r,o)}function Sue(r,o){S8(r,o)}function kue(r,o,d){{var p=r.parentNode;p!==null&&C8(p,o)}}function Eue(r,o){{var d=r.parentNode;d!==null&&S8(d,o)}}function _ue(r,o,d,p,v,S){(S||o[Kv]!==!0)&&C8(d,p)}function Tue(r,o,d,p,v){(v||o[Kv]!==!0)&&S8(d,p)}function Rue(r){u("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",r.nodeName.toLowerCase())}function Mue(r){A0(r)}var Xp=Math.random().toString(36).slice(2),Kp="__reactFiber$"+Xp,N8="__reactProps$"+Xp,z0="__reactContainer$"+Xp,L8="__reactEvents$"+Xp,Aue="__reactListeners$"+Xp,Nue="__reactHandles$"+Xp;function Lue(r){delete r[Kp],delete r[N8],delete r[L8],delete r[Aue],delete r[Nue]}function H0(r,o){o[Kp]=r}function n3(r,o){o[z0]=r}function kL(r){r[z0]=null}function U0(r){return!!r[z0]}function Of(r){var o=r[Kp];if(o)return o;for(var d=r.parentNode;d;){if(o=d[z0]||d[Kp],o){var p=o.alternate;if(o.child!==null||p!==null&&p.child!==null)for(var v=SL(r);v!==null;){var S=v[Kp];if(S)return S;v=SL(v)}return o}r=d,d=r.parentNode}return null}function qc(r){var o=r[Kp]||r[z0];return o&&(o.tag===b||o.tag===T||o.tag===V||o.tag===y)?o:null}function Qp(r){if(r.tag===b||r.tag===T)return r.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function r3(r){return r[N8]||null}function O8(r,o){r[N8]=o}function Oue(r){var o=r[L8];return o===void 0&&(o=r[L8]=new Set),o}var EL={},_L=n.ReactDebugCurrentFrame;function a3(r){if(r){var o=r._owner,d=bs(r.type,r._source,o?o.type:null);_L.setExtraStackFrame(d)}else _L.setExtraStackFrame(null)}function Ps(r,o,d,p,v){{var S=Function.call.bind(Et);for(var _ in r)if(S(r,_)){var A=void 0;try{if(typeof r[_]!="function"){var I=Error((p||"React class")+": "+d+" type `"+_+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[_]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw I.name="Invariant Violation",I}A=r[_](o,_,p,d,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(U){A=U}A&&!(A instanceof Error)&&(a3(v),u("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",p||"React class",d,_,typeof A),a3(null)),A instanceof Error&&!(A.message in EL)&&(EL[A.message]=!0,a3(v),u("Failed %s type: %s",d,A.message),a3(null))}}}var I8=[],o3;o3=[];var Iu=-1;function Gc(r){return{current:r}}function po(r,o){if(Iu<0){u("Unexpected pop.");return}o!==o3[Iu]&&u("Unexpected Fiber popped."),r.current=I8[Iu],I8[Iu]=null,o3[Iu]=null,Iu--}function ho(r,o,d){Iu++,I8[Iu]=r.current,o3[Iu]=d,r.current=o}var D8;D8={};var Li={};Object.freeze(Li);var Du=Gc(Li),Il=Gc(!1),j8=Li;function eh(r,o,d){return d&&Dl(o)?j8:Du.current}function TL(r,o,d){{var p=r.stateNode;p.__reactInternalMemoizedUnmaskedChildContext=o,p.__reactInternalMemoizedMaskedChildContext=d}}function th(r,o){{var d=r.type,p=d.contextTypes;if(!p)return Li;var v=r.stateNode;if(v&&v.__reactInternalMemoizedUnmaskedChildContext===o)return v.__reactInternalMemoizedMaskedChildContext;var S={};for(var _ in p)S[_]=o[_];{var A=Ut(r)||"Unknown";Ps(p,S,"context",A)}return v&&TL(r,o,S),S}}function i3(){return Il.current}function Dl(r){{var o=r.childContextTypes;return o!=null}}function s3(r){po(Il,r),po(Du,r)}function P8(r){po(Il,r),po(Du,r)}function RL(r,o,d){{if(Du.current!==Li)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");ho(Du,o,r),ho(Il,d,r)}}function ML(r,o,d){{var p=r.stateNode,v=o.childContextTypes;if(typeof p.getChildContext!="function"){{var S=Ut(r)||"Unknown";D8[S]||(D8[S]=!0,u("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",S,S))}return d}var _=p.getChildContext();for(var A in _)if(!(A in v))throw new Error((Ut(r)||"Unknown")+'.getChildContext(): key "'+A+'" is not defined in childContextTypes.');{var I=Ut(r)||"Unknown";Ps(v,_,"child context",I)}return en({},d,_)}}function l3(r){{var o=r.stateNode,d=o&&o.__reactInternalMemoizedMergedChildContext||Li;return j8=Du.current,ho(Du,d,r),ho(Il,Il.current,r),!0}}function AL(r,o,d){{var p=r.stateNode;if(!p)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(d){var v=ML(r,o,j8);p.__reactInternalMemoizedMergedChildContext=v,po(Il,r),po(Du,r),ho(Du,v,r),ho(Il,d,r)}else po(Il,r),ho(Il,d,r)}}function Iue(r){{if(!hu(r)||r.tag!==g)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var o=r;do{switch(o.tag){case y:return o.stateNode.context;case g:{var d=o.type;if(Dl(d))return o.stateNode.__reactInternalMemoizedMergedChildContext;break}}o=o.return}while(o!==null);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var Yc=0,u3=1,ju=null,F8=!1,z8=!1;function NL(r){ju===null?ju=[r]:ju.push(r)}function Due(r){F8=!0,NL(r)}function LL(){F8&&Jc()}function Jc(){if(!z8&&ju!==null){z8=!0;var r=0,o=ri();try{var d=!0,p=ju;for($r(Pa);r<p.length;r++){var v=p[r];do v=v(d);while(v!==null)}ju=null,F8=!1}catch(S){throw ju!==null&&(ju=ju.slice(r+1)),$m(Xd,Jc),S}finally{$r(o),z8=!1}}return null}var nh=[],rh=0,c3=null,d3=0,as=[],os=0,If=null,Pu=1,Fu="";function jue(r){return jf(),(r.flags&Gi)!==Tt}function Pue(r){return jf(),d3}function Fue(){var r=Fu,o=Pu,d=o&~zue(o);return d.toString(32)+r}function Df(r,o){jf(),nh[rh++]=d3,nh[rh++]=c3,c3=r,d3=o}function OL(r,o,d){jf(),as[os++]=Pu,as[os++]=Fu,as[os++]=If,If=r;var p=Pu,v=Fu,S=f3(p)-1,_=p&~(1<<S),A=d+1,I=f3(o)+S;if(I>30){var U=S-S%5,$=(1<<U)-1,re=(_&$).toString(32),te=_>>U,de=S-U,ge=f3(o)+de,be=A<<de,nt=be|te,Lt=re+v;Pu=1<<ge|nt,Fu=Lt}else{var Ct=A<<S,bn=Ct|_,mn=v;Pu=1<<I|bn,Fu=mn}}function H8(r){jf();var o=r.return;if(o!==null){var d=1,p=0;Df(r,d),OL(r,d,p)}}function f3(r){return 32-Br(r)}function zue(r){return 1<<f3(r)-1}function U8(r){for(;r===c3;)c3=nh[--rh],nh[rh]=null,d3=nh[--rh],nh[rh]=null;for(;r===If;)If=as[--os],as[os]=null,Fu=as[--os],as[os]=null,Pu=as[--os],as[os]=null}function Hue(){return jf(),If!==null?{id:Pu,overflow:Fu}:null}function Uue(r,o){jf(),as[os++]=Pu,as[os++]=Fu,as[os++]=If,Pu=o.id,Fu=o.overflow,If=r}function jf(){Ba()||u("Expected to be hydrating. This is a bug in React. Please file an issue.")}var Ua=null,is=null,Fs=!1,Pf=!1,Xc=null;function Bue(){Fs&&u("We should not be hydrating here. This is a bug in React. Please file a bug.")}function IL(){Pf=!0}function Vue(){return Pf}function $ue(r){var o=r.stateNode.containerInfo;return is=lue(o),Ua=r,Fs=!0,Xc=null,Pf=!1,!0}function Zue(r,o,d){return is=uue(o),Ua=r,Fs=!0,Xc=null,Pf=!1,d!==null&&Uue(r,d),!0}function DL(r,o){switch(r.tag){case y:{xue(r.stateNode.containerInfo,o);break}case b:{var d=(r.mode&on)!==Rt;bue(r.type,r.memoizedProps,r.stateNode,o,d);break}case V:{var p=r.memoizedState;p.dehydrated!==null&&wue(p.dehydrated,o);break}}}function jL(r,o){DL(r,o);var d=Yfe();d.stateNode=o,d.return=r;var p=r.deletions;p===null?(r.deletions=[d],r.flags|=Jo):p.push(d)}function B8(r,o){{if(Pf)return;switch(r.tag){case y:{var d=r.stateNode.containerInfo;switch(o.tag){case b:var p=o.type;o.pendingProps,Cue(d,p);break;case T:var v=o.pendingProps;Sue(d,v);break}break}case b:{var S=r.type,_=r.memoizedProps,A=r.stateNode;switch(o.tag){case b:{var I=o.type,U=o.pendingProps,$=(r.mode&on)!==Rt;_ue(S,_,A,I,U,$);break}case T:{var re=o.pendingProps,te=(r.mode&on)!==Rt;Tue(S,_,A,re,te);break}}break}case V:{var de=r.memoizedState,ge=de.dehydrated;if(ge!==null)switch(o.tag){case b:var be=o.type;o.pendingProps,kue(ge,be);break;case T:var nt=o.pendingProps;Eue(ge,nt);break}break}default:return}}}function PL(r,o){o.flags=o.flags&~ro|wr,B8(r,o)}function FL(r,o){switch(r.tag){case b:{var d=r.type;r.pendingProps;var p=nue(o,d);return p!==null?(r.stateNode=p,Ua=r,is=sue(p),!0):!1}case T:{var v=r.pendingProps,S=rue(o,v);return S!==null?(r.stateNode=S,Ua=r,is=null,!0):!1}case V:{var _=aue(o);if(_!==null){var A={dehydrated:_,treeContext:Hue(),retryLane:so};r.memoizedState=A;var I=Jfe(_);return I.return=r,r.child=I,Ua=r,is=null,!0}return!1}default:return!1}}function V8(r){return(r.mode&on)!==Rt&&(r.flags&kt)===Tt}function $8(r){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function Z8(r){if(Fs){var o=is;if(!o){V8(r)&&(B8(Ua,r),$8()),PL(Ua,r),Fs=!1,Ua=r;return}var d=o;if(!FL(r,o)){V8(r)&&(B8(Ua,r),$8()),o=F0(d);var p=Ua;if(!o||!FL(r,o)){PL(Ua,r),Fs=!1,Ua=r;return}jL(p,d)}}}function Wue(r,o,d){var p=r.stateNode,v=!Pf,S=cue(p,r.type,r.memoizedProps,o,d,r,v);return r.updateQueue=S,S!==null}function que(r){var o=r.stateNode,d=r.memoizedProps,p=due(o,d,r);if(p){var v=Ua;if(v!==null)switch(v.tag){case y:{var S=v.stateNode.containerInfo,_=(v.mode&on)!==Rt;vue(S,o,d,_);break}case b:{var A=v.type,I=v.memoizedProps,U=v.stateNode,$=(v.mode&on)!==Rt;yue(A,I,U,o,d,$);break}}}return p}function Gue(r){var o=r.memoizedState,d=o!==null?o.dehydrated:null;if(!d)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");fue(d,r)}function Yue(r){var o=r.memoizedState,d=o!==null?o.dehydrated:null;if(!d)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return pue(d)}function zL(r){for(var o=r.return;o!==null&&o.tag!==b&&o.tag!==y&&o.tag!==V;)o=o.return;Ua=o}function p3(r){if(r!==Ua)return!1;if(!Fs)return zL(r),Fs=!0,!1;if(r.tag!==y&&(r.tag!==b||gue(r.type)&&!_8(r.type,r.memoizedProps))){var o=is;if(o)if(V8(r))HL(r),$8();else for(;o;)jL(r,o),o=F0(o)}return zL(r),r.tag===V?is=Yue(r):is=Ua?F0(r.stateNode):null,!0}function Jue(){return Fs&&is!==null}function HL(r){for(var o=is;o;)DL(r,o),o=F0(o)}function ah(){Ua=null,is=null,Fs=!1,Pf=!1}function UL(){Xc!==null&&(II(Xc),Xc=null)}function Ba(){return Fs}function W8(r){Xc===null?Xc=[r]:Xc.push(r)}var Xue=n.ReactCurrentBatchConfig,Kue=null;function Que(){return Xue.transition}var zs={recordUnsafeLifecycleWarnings:function(r,o){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(r,o){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var ece=function(r){for(var o=null,d=r;d!==null;)d.mode&Gn&&(o=d),d=d.return;return o},Ff=function(r){var o=[];return r.forEach(function(d){o.push(d)}),o.sort().join(", ")},B0=[],V0=[],$0=[],Z0=[],W0=[],q0=[],zf=new Set;zs.recordUnsafeLifecycleWarnings=function(r,o){zf.has(r.type)||(typeof o.componentWillMount=="function"&&o.componentWillMount.__suppressDeprecationWarning!==!0&&B0.push(r),r.mode&Gn&&typeof o.UNSAFE_componentWillMount=="function"&&V0.push(r),typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&$0.push(r),r.mode&Gn&&typeof o.UNSAFE_componentWillReceiveProps=="function"&&Z0.push(r),typeof o.componentWillUpdate=="function"&&o.componentWillUpdate.__suppressDeprecationWarning!==!0&&W0.push(r),r.mode&Gn&&typeof o.UNSAFE_componentWillUpdate=="function"&&q0.push(r))},zs.flushPendingUnsafeLifecycleWarnings=function(){var r=new Set;B0.length>0&&(B0.forEach(function(te){r.add(Ut(te)||"Component"),zf.add(te.type)}),B0=[]);var o=new Set;V0.length>0&&(V0.forEach(function(te){o.add(Ut(te)||"Component"),zf.add(te.type)}),V0=[]);var d=new Set;$0.length>0&&($0.forEach(function(te){d.add(Ut(te)||"Component"),zf.add(te.type)}),$0=[]);var p=new Set;Z0.length>0&&(Z0.forEach(function(te){p.add(Ut(te)||"Component"),zf.add(te.type)}),Z0=[]);var v=new Set;W0.length>0&&(W0.forEach(function(te){v.add(Ut(te)||"Component"),zf.add(te.type)}),W0=[]);var S=new Set;if(q0.length>0&&(q0.forEach(function(te){S.add(Ut(te)||"Component"),zf.add(te.type)}),q0=[]),o.size>0){var _=Ff(o);u(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
130
|
-
|
|
131
|
-
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
132
|
-
|
|
133
|
-
Please update the following components: %s`,_)}if(p.size>0){var A=Ff(p);u(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
134
|
-
|
|
135
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
136
|
-
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
|
|
137
|
-
|
|
138
|
-
Please update the following components: %s`,A)}if(S.size>0){var I=Ff(S);u(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
139
|
-
|
|
140
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
141
|
-
|
|
142
|
-
Please update the following components: %s`,I)}if(r.size>0){var U=Ff(r);l(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
143
|
-
|
|
144
|
-
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
145
|
-
* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
146
|
-
|
|
147
|
-
Please update the following components: %s`,U)}if(d.size>0){var $=Ff(d);l(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
148
|
-
|
|
149
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
150
|
-
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
|
|
151
|
-
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
152
|
-
|
|
153
|
-
Please update the following components: %s`,$)}if(v.size>0){var re=Ff(v);l(`componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
154
|
-
|
|
155
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
156
|
-
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
157
|
-
|
|
158
|
-
Please update the following components: %s`,re)}};var h3=new Map,BL=new Set;zs.recordLegacyContextWarning=function(r,o){var d=ece(r);if(d===null){u("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.");return}if(!BL.has(r.type)){var p=h3.get(d);(r.type.contextTypes!=null||r.type.childContextTypes!=null||o!==null&&typeof o.getChildContext=="function")&&(p===void 0&&(p=[],h3.set(d,p)),p.push(r))}},zs.flushLegacyContextWarning=function(){h3.forEach(function(r,o){if(r.length!==0){var d=r[0],p=new Set;r.forEach(function(S){p.add(Ut(S)||"Component"),BL.add(S.type)});var v=Ff(p);try{Zn(d),u(`Legacy context API has been detected within a strict-mode tree.
|
|
159
|
-
|
|
160
|
-
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
161
|
-
|
|
162
|
-
Please update the following components: %s
|
|
163
|
-
|
|
164
|
-
Learn more about this warning here: https://reactjs.org/link/legacy-context`,v)}finally{sr()}}})},zs.discardPendingWarnings=function(){B0=[],V0=[],$0=[],Z0=[],W0=[],q0=[],h3=new Map}}var q8,G8,Y8,J8,X8,VL=function(r,o){};q8=!1,G8=!1,Y8={},J8={},X8={},VL=function(r,o){if(!(r===null||typeof r!="object")&&!(!r._store||r._store.validated||r.key!=null)){if(typeof r._store!="object")throw new Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");r._store.validated=!0;var d=Ut(o)||"Component";J8[d]||(J8[d]=!0,u('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};function tce(r){return r.prototype&&r.prototype.isReactComponent}function G0(r,o,d){var p=d.ref;if(p!==null&&typeof p!="function"&&typeof p!="object"){if((r.mode&Gn||pe)&&!(d._owner&&d._self&&d._owner.stateNode!==d._self)&&!(d._owner&&d._owner.tag!==g)&&!(typeof d.type=="function"&&!tce(d.type))&&d._owner){var v=Ut(r)||"Component";Y8[v]||(u('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',v,p),Y8[v]=!0)}if(d._owner){var S=d._owner,_;if(S){var A=S;if(A.tag!==g)throw new Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");_=A.stateNode}if(!_)throw new Error("Missing owner for string ref "+p+". This error is likely caused by a bug in React. Please file an issue.");var I=_;jn(p,"ref");var U=""+p;if(o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===U)return o.ref;var $=function(re){var te=I.refs;re===null?delete te[U]:te[U]=re};return $._stringRef=U,$}else{if(typeof p!="string")throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!d._owner)throw new Error("Element ref was specified as a string ("+p+`) but no owner was set. This could happen for one of the following reasons:
|
|
165
|
-
1. You may be adding a ref to a function component
|
|
166
|
-
2. You may be adding a ref to a component that was not created inside a component's render method
|
|
167
|
-
3. You have multiple copies of React loaded
|
|
168
|
-
See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return p}function m3(r,o){var d=Object.prototype.toString.call(o);throw new Error("Objects are not valid as a React child (found: "+(d==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":d)+"). If you meant to render a collection of children, use an array instead.")}function g3(r){{var o=Ut(r)||"Component";if(X8[o])return;X8[o]=!0,u("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}}function $L(r){var o=r._payload,d=r._init;return d(o)}function ZL(r){function o(ie,Ce){if(r){var se=ie.deletions;se===null?(ie.deletions=[Ce],ie.flags|=Jo):se.push(Ce)}}function d(ie,Ce){if(!r)return null;for(var se=Ce;se!==null;)o(ie,se),se=se.sibling;return null}function p(ie,Ce){for(var se=new Map,Fe=Ce;Fe!==null;)Fe.key!==null?se.set(Fe.key,Fe):se.set(Fe.index,Fe),Fe=Fe.sibling;return se}function v(ie,Ce){var se=Gf(ie,Ce);return se.index=0,se.sibling=null,se}function S(ie,Ce,se){if(ie.index=se,!r)return ie.flags|=Gi,Ce;var Fe=ie.alternate;if(Fe!==null){var it=Fe.index;return it<Ce?(ie.flags|=wr,Ce):it}else return ie.flags|=wr,Ce}function _(ie){return r&&ie.alternate===null&&(ie.flags|=wr),ie}function A(ie,Ce,se,Fe){if(Ce===null||Ce.tag!==T){var it=Wx(se,ie.mode,Fe);return it.return=ie,it}else{var rt=v(Ce,se);return rt.return=ie,rt}}function I(ie,Ce,se,Fe){var it=se.type;if(it===Oa)return $(ie,Ce,se.props.children,Fe,se.key);if(Ce!==null&&(Ce.elementType===it||JI(Ce,se)||typeof it=="object"&&it!==null&&it.$$typeof===Bt&&$L(it)===Ce.type)){var rt=v(Ce,se.props);return rt.ref=G0(ie,Ce,se),rt.return=ie,rt._debugSource=se._source,rt._debugOwner=se._owner,rt}var zt=Zx(se,ie.mode,Fe);return zt.ref=G0(ie,Ce,se),zt.return=ie,zt}function U(ie,Ce,se,Fe){if(Ce===null||Ce.tag!==k||Ce.stateNode.containerInfo!==se.containerInfo||Ce.stateNode.implementation!==se.implementation){var it=qx(se,ie.mode,Fe);return it.return=ie,it}else{var rt=v(Ce,se.children||[]);return rt.return=ie,rt}}function $(ie,Ce,se,Fe,it){if(Ce===null||Ce.tag!==R){var rt=ld(se,ie.mode,Fe,it);return rt.return=ie,rt}else{var zt=v(Ce,se);return zt.return=ie,zt}}function re(ie,Ce,se){if(typeof Ce=="string"&&Ce!==""||typeof Ce=="number"){var Fe=Wx(""+Ce,ie.mode,se);return Fe.return=ie,Fe}if(typeof Ce=="object"&&Ce!==null){switch(Ce.$$typeof){case Mr:{var it=Zx(Ce,ie.mode,se);return it.ref=G0(ie,null,Ce),it.return=ie,it}case yr:{var rt=qx(Ce,ie.mode,se);return rt.return=ie,rt}case Bt:{var zt=Ce._payload,qt=Ce._init;return re(ie,qt(zt),se)}}if(rn(Ce)||Yt(Ce)){var Jn=ld(Ce,ie.mode,se,null);return Jn.return=ie,Jn}m3(ie,Ce)}return typeof Ce=="function"&&g3(ie),null}function te(ie,Ce,se,Fe){var it=Ce!==null?Ce.key:null;if(typeof se=="string"&&se!==""||typeof se=="number")return it!==null?null:A(ie,Ce,""+se,Fe);if(typeof se=="object"&&se!==null){switch(se.$$typeof){case Mr:return se.key===it?I(ie,Ce,se,Fe):null;case yr:return se.key===it?U(ie,Ce,se,Fe):null;case Bt:{var rt=se._payload,zt=se._init;return te(ie,Ce,zt(rt),Fe)}}if(rn(se)||Yt(se))return it!==null?null:$(ie,Ce,se,Fe,null);m3(ie,se)}return typeof se=="function"&&g3(ie),null}function de(ie,Ce,se,Fe,it){if(typeof Fe=="string"&&Fe!==""||typeof Fe=="number"){var rt=ie.get(se)||null;return A(Ce,rt,""+Fe,it)}if(typeof Fe=="object"&&Fe!==null){switch(Fe.$$typeof){case Mr:{var zt=ie.get(Fe.key===null?se:Fe.key)||null;return I(Ce,zt,Fe,it)}case yr:{var qt=ie.get(Fe.key===null?se:Fe.key)||null;return U(Ce,qt,Fe,it)}case Bt:var Jn=Fe._payload,On=Fe._init;return de(ie,Ce,se,On(Jn),it)}if(rn(Fe)||Yt(Fe)){var na=ie.get(se)||null;return $(Ce,na,Fe,it,null)}m3(Ce,Fe)}return typeof Fe=="function"&&g3(Ce),null}function ge(ie,Ce,se){{if(typeof ie!="object"||ie===null)return Ce;switch(ie.$$typeof){case Mr:case yr:VL(ie,se);var Fe=ie.key;if(typeof Fe!="string")break;if(Ce===null){Ce=new Set,Ce.add(Fe);break}if(!Ce.has(Fe)){Ce.add(Fe);break}u("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",Fe);break;case Bt:var it=ie._payload,rt=ie._init;ge(rt(it),Ce,se);break}}return Ce}function be(ie,Ce,se,Fe){for(var it=null,rt=0;rt<se.length;rt++){var zt=se[rt];it=ge(zt,it,ie)}for(var qt=null,Jn=null,On=Ce,na=0,In=0,qr=null;On!==null&&In<se.length;In++){On.index>In?(qr=On,On=null):qr=On.sibling;var go=te(ie,On,se[In],Fe);if(go===null){On===null&&(On=qr);break}r&&On&&go.alternate===null&&o(ie,On),na=S(go,na,In),Jn===null?qt=go:Jn.sibling=go,Jn=go,On=qr}if(In===se.length){if(d(ie,On),Ba()){var Ya=In;Df(ie,Ya)}return qt}if(On===null){for(;In<se.length;In++){var Ii=re(ie,se[In],Fe);Ii!==null&&(na=S(Ii,na,In),Jn===null?qt=Ii:Jn.sibling=Ii,Jn=Ii)}if(Ba()){var Do=In;Df(ie,Do)}return qt}for(var jo=p(ie,On);In<se.length;In++){var vo=de(jo,ie,In,se[In],Fe);vo!==null&&(r&&vo.alternate!==null&&jo.delete(vo.key===null?In:vo.key),na=S(vo,na,In),Jn===null?qt=vo:Jn.sibling=vo,Jn=vo)}if(r&&jo.forEach(function(Sh){return o(ie,Sh)}),Ba()){var Zu=In;Df(ie,Zu)}return qt}function nt(ie,Ce,se,Fe){var it=Yt(se);if(typeof it!="function")throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");{typeof Symbol=="function"&&se[Symbol.toStringTag]==="Generator"&&(G8||u("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),G8=!0),se.entries===it&&(q8||u("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),q8=!0);var rt=it.call(se);if(rt)for(var zt=null,qt=rt.next();!qt.done;qt=rt.next()){var Jn=qt.value;zt=ge(Jn,zt,ie)}}var On=it.call(se);if(On==null)throw new Error("An iterable object provided no iterator.");for(var na=null,In=null,qr=Ce,go=0,Ya=0,Ii=null,Do=On.next();qr!==null&&!Do.done;Ya++,Do=On.next()){qr.index>Ya?(Ii=qr,qr=null):Ii=qr.sibling;var jo=te(ie,qr,Do.value,Fe);if(jo===null){qr===null&&(qr=Ii);break}r&&qr&&jo.alternate===null&&o(ie,qr),go=S(jo,go,Ya),In===null?na=jo:In.sibling=jo,In=jo,qr=Ii}if(Do.done){if(d(ie,qr),Ba()){var vo=Ya;Df(ie,vo)}return na}if(qr===null){for(;!Do.done;Ya++,Do=On.next()){var Zu=re(ie,Do.value,Fe);Zu!==null&&(go=S(Zu,go,Ya),In===null?na=Zu:In.sibling=Zu,In=Zu)}if(Ba()){var Sh=Ya;Df(ie,Sh)}return na}for(var _4=p(ie,qr);!Do.done;Ya++,Do=On.next()){var Vl=de(_4,ie,Ya,Do.value,Fe);Vl!==null&&(r&&Vl.alternate!==null&&_4.delete(Vl.key===null?Ya:Vl.key),go=S(Vl,go,Ya),In===null?na=Vl:In.sibling=Vl,In=Vl)}if(r&&_4.forEach(function(T1e){return o(ie,T1e)}),Ba()){var _1e=Ya;Df(ie,_1e)}return na}function Lt(ie,Ce,se,Fe){if(Ce!==null&&Ce.tag===T){d(ie,Ce.sibling);var it=v(Ce,se);return it.return=ie,it}d(ie,Ce);var rt=Wx(se,ie.mode,Fe);return rt.return=ie,rt}function Ct(ie,Ce,se,Fe){for(var it=se.key,rt=Ce;rt!==null;){if(rt.key===it){var zt=se.type;if(zt===Oa){if(rt.tag===R){d(ie,rt.sibling);var qt=v(rt,se.props.children);return qt.return=ie,qt._debugSource=se._source,qt._debugOwner=se._owner,qt}}else if(rt.elementType===zt||JI(rt,se)||typeof zt=="object"&&zt!==null&&zt.$$typeof===Bt&&$L(zt)===rt.type){d(ie,rt.sibling);var Jn=v(rt,se.props);return Jn.ref=G0(ie,rt,se),Jn.return=ie,Jn._debugSource=se._source,Jn._debugOwner=se._owner,Jn}d(ie,rt);break}else o(ie,rt);rt=rt.sibling}if(se.type===Oa){var On=ld(se.props.children,ie.mode,Fe,se.key);return On.return=ie,On}else{var na=Zx(se,ie.mode,Fe);return na.ref=G0(ie,Ce,se),na.return=ie,na}}function bn(ie,Ce,se,Fe){for(var it=se.key,rt=Ce;rt!==null;){if(rt.key===it)if(rt.tag===k&&rt.stateNode.containerInfo===se.containerInfo&&rt.stateNode.implementation===se.implementation){d(ie,rt.sibling);var zt=v(rt,se.children||[]);return zt.return=ie,zt}else{d(ie,rt);break}else o(ie,rt);rt=rt.sibling}var qt=qx(se,ie.mode,Fe);return qt.return=ie,qt}function mn(ie,Ce,se,Fe){var it=typeof se=="object"&&se!==null&&se.type===Oa&&se.key===null;if(it&&(se=se.props.children),typeof se=="object"&&se!==null){switch(se.$$typeof){case Mr:return _(Ct(ie,Ce,se,Fe));case yr:return _(bn(ie,Ce,se,Fe));case Bt:var rt=se._payload,zt=se._init;return mn(ie,Ce,zt(rt),Fe)}if(rn(se))return be(ie,Ce,se,Fe);if(Yt(se))return nt(ie,Ce,se,Fe);m3(ie,se)}return typeof se=="string"&&se!==""||typeof se=="number"?_(Lt(ie,Ce,""+se,Fe)):(typeof se=="function"&&g3(ie),d(ie,Ce))}return mn}var oh=ZL(!0),WL=ZL(!1);function nce(r,o){if(r!==null&&o.child!==r.child)throw new Error("Resuming work not yet implemented.");if(o.child!==null){var d=o.child,p=Gf(d,d.pendingProps);for(o.child=p,p.return=o;d.sibling!==null;)d=d.sibling,p=p.sibling=Gf(d,d.pendingProps),p.return=o;p.sibling=null}}function rce(r,o){for(var d=r.child;d!==null;)$fe(d,o),d=d.sibling}var K8=Gc(null),Q8;Q8={};var v3=null,ih=null,e7=null,y3=!1;function x3(){v3=null,ih=null,e7=null,y3=!1}function qL(){y3=!0}function GL(){y3=!1}function YL(r,o,d){ho(K8,o._currentValue,r),o._currentValue=d,o._currentRenderer!==void 0&&o._currentRenderer!==null&&o._currentRenderer!==Q8&&u("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),o._currentRenderer=Q8}function t7(r,o){var d=K8.current;po(K8,o),r._currentValue=d}function n7(r,o,d){for(var p=r;p!==null;){var v=p.alternate;if(Tu(p.childLanes,o)?v!==null&&!Tu(v.childLanes,o)&&(v.childLanes=Xt(v.childLanes,o)):(p.childLanes=Xt(p.childLanes,o),v!==null&&(v.childLanes=Xt(v.childLanes,o))),p===d)break;p=p.return}p!==d&&u("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function ace(r,o,d){oce(r,o,d)}function oce(r,o,d){var p=r.child;for(p!==null&&(p.return=r);p!==null;){var v=void 0,S=p.dependencies;if(S!==null){v=p.child;for(var _=S.firstContext;_!==null;){if(_.context===o){if(p.tag===g){var A=ff(d),I=zu(er,A);I.tag=b3;var U=p.updateQueue;if(U!==null){var $=U.shared,re=$.pending;re===null?I.next=I:(I.next=re.next,re.next=I),$.pending=I}}p.lanes=Xt(p.lanes,d);var te=p.alternate;te!==null&&(te.lanes=Xt(te.lanes,d)),n7(p.return,d,r),S.lanes=Xt(S.lanes,d);break}_=_.next}}else if(p.tag===P)v=p.type===r.type?null:p.child;else if(p.tag===ye){var de=p.return;if(de===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");de.lanes=Xt(de.lanes,d);var ge=de.alternate;ge!==null&&(ge.lanes=Xt(ge.lanes,d)),n7(de,d,r),v=p.sibling}else v=p.child;if(v!==null)v.return=p;else for(v=p;v!==null;){if(v===r){v=null;break}var be=v.sibling;if(be!==null){be.return=v.return,v=be;break}v=v.return}p=v}}function sh(r,o){v3=r,ih=null,e7=null;var d=r.dependencies;if(d!==null){var p=d.firstContext;p!==null&&(lo(d.lanes,o)&&u4(),d.firstContext=null)}}function la(r){y3&&u("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");var o=r._currentValue;if(e7!==r){var d={context:r,memoizedValue:o,next:null};if(ih===null){if(v3===null)throw new Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");ih=d,v3.dependencies={lanes:Oe,firstContext:d}}else ih=ih.next=d}return o}var Hf=null;function r7(r){Hf===null?Hf=[r]:Hf.push(r)}function ice(){if(Hf!==null){for(var r=0;r<Hf.length;r++){var o=Hf[r],d=o.interleaved;if(d!==null){o.interleaved=null;var p=d.next,v=o.pending;if(v!==null){var S=v.next;v.next=p,d.next=S}o.pending=d}}Hf=null}}function JL(r,o,d,p){var v=o.interleaved;return v===null?(d.next=d,r7(o)):(d.next=v.next,v.next=d),o.interleaved=d,w3(r,p)}function sce(r,o,d,p){var v=o.interleaved;v===null?(d.next=d,r7(o)):(d.next=v.next,v.next=d),o.interleaved=d}function lce(r,o,d,p){var v=o.interleaved;return v===null?(d.next=d,r7(o)):(d.next=v.next,v.next=d),o.interleaved=d,w3(r,p)}function ii(r,o){return w3(r,o)}var uce=w3;function w3(r,o){r.lanes=Xt(r.lanes,o);var d=r.alternate;d!==null&&(d.lanes=Xt(d.lanes,o)),d===null&&(r.flags&(wr|ro))!==Tt&&WI(r);for(var p=r,v=r.return;v!==null;)v.childLanes=Xt(v.childLanes,o),d=v.alternate,d!==null?d.childLanes=Xt(d.childLanes,o):(v.flags&(wr|ro))!==Tt&&WI(r),p=v,v=v.return;if(p.tag===y){var S=p.stateNode;return S}else return null}var XL=0,KL=1,b3=2,a7=3,C3=!1,o7,S3;o7=!1,S3=null;function i7(r){var o={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:Oe},effects:null};r.updateQueue=o}function QL(r,o){var d=o.updateQueue,p=r.updateQueue;if(d===p){var v={baseState:p.baseState,firstBaseUpdate:p.firstBaseUpdate,lastBaseUpdate:p.lastBaseUpdate,shared:p.shared,effects:p.effects};o.updateQueue=v}}function zu(r,o){var d={eventTime:r,lane:o,tag:XL,payload:null,callback:null,next:null};return d}function Kc(r,o,d){var p=r.updateQueue;if(p===null)return null;var v=p.shared;if(S3===v&&!o7&&(u("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),o7=!0),sfe()){var S=v.pending;return S===null?o.next=o:(o.next=S.next,S.next=o),v.pending=o,uce(r,d)}else return lce(r,v,o,d)}function k3(r,o,d){var p=o.updateQueue;if(p!==null){var v=p.shared;if(s0(d)){var S=v.lanes;S=u0(S,r.pendingLanes);var _=Xt(S,d);v.lanes=_,Op(r,_)}}}function s7(r,o){var d=r.updateQueue,p=r.alternate;if(p!==null){var v=p.updateQueue;if(d===v){var S=null,_=null,A=d.firstBaseUpdate;if(A!==null){var I=A;do{var U={eventTime:I.eventTime,lane:I.lane,tag:I.tag,payload:I.payload,callback:I.callback,next:null};_===null?S=_=U:(_.next=U,_=U),I=I.next}while(I!==null);_===null?S=_=o:(_.next=o,_=o)}else S=_=o;d={baseState:v.baseState,firstBaseUpdate:S,lastBaseUpdate:_,shared:v.shared,effects:v.effects},r.updateQueue=d;return}}var $=d.lastBaseUpdate;$===null?d.firstBaseUpdate=o:$.next=o,d.lastBaseUpdate=o}function cce(r,o,d,p,v,S){switch(d.tag){case KL:{var _=d.payload;if(typeof _=="function"){qL();var A=_.call(S,p,v);{if(r.mode&Gn){br(!0);try{_.call(S,p,v)}finally{br(!1)}}GL()}return A}return _}case a7:r.flags=r.flags&~aa|kt;case XL:{var I=d.payload,U;if(typeof I=="function"){qL(),U=I.call(S,p,v);{if(r.mode&Gn){br(!0);try{I.call(S,p,v)}finally{br(!1)}}GL()}}else U=I;return U==null?p:en({},p,U)}case b3:return C3=!0,p}return p}function E3(r,o,d,p){var v=r.updateQueue;C3=!1,S3=v.shared;var S=v.firstBaseUpdate,_=v.lastBaseUpdate,A=v.shared.pending;if(A!==null){v.shared.pending=null;var I=A,U=I.next;I.next=null,_===null?S=U:_.next=U,_=I;var $=r.alternate;if($!==null){var re=$.updateQueue,te=re.lastBaseUpdate;te!==_&&(te===null?re.firstBaseUpdate=U:te.next=U,re.lastBaseUpdate=I)}}if(S!==null){var de=v.baseState,ge=Oe,be=null,nt=null,Lt=null,Ct=S;do{var bn=Ct.lane,mn=Ct.eventTime;if(Tu(p,bn)){if(Lt!==null){var Ce={eventTime:mn,lane:Tn,tag:Ct.tag,payload:Ct.payload,callback:Ct.callback,next:null};Lt=Lt.next=Ce}de=cce(r,v,Ct,de,o,d);var se=Ct.callback;if(se!==null&&Ct.lane!==Tn){r.flags|=ar;var Fe=v.effects;Fe===null?v.effects=[Ct]:Fe.push(Ct)}}else{var ie={eventTime:mn,lane:bn,tag:Ct.tag,payload:Ct.payload,callback:Ct.callback,next:null};Lt===null?(nt=Lt=ie,be=de):Lt=Lt.next=ie,ge=Xt(ge,bn)}if(Ct=Ct.next,Ct===null){if(A=v.shared.pending,A===null)break;var it=A,rt=it.next;it.next=null,Ct=rt,v.lastBaseUpdate=it,v.shared.pending=null}}while(!0);Lt===null&&(be=de),v.baseState=be,v.firstBaseUpdate=nt,v.lastBaseUpdate=Lt;var zt=v.shared.interleaved;if(zt!==null){var qt=zt;do ge=Xt(ge,qt.lane),qt=qt.next;while(qt!==zt)}else S===null&&(v.shared.lanes=Oe);b4(ge),r.lanes=ge,r.memoizedState=de}S3=null}function dce(r,o){if(typeof r!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+r));r.call(o)}function eO(){C3=!1}function _3(){return C3}function tO(r,o,d){var p=o.effects;if(o.effects=null,p!==null)for(var v=0;v<p.length;v++){var S=p[v],_=S.callback;_!==null&&(S.callback=null,dce(_,d))}}var Y0={},Qc=Gc(Y0),J0=Gc(Y0),T3=Gc(Y0);function R3(r){if(r===Y0)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return r}function nO(){var r=R3(T3.current);return r}function l7(r,o){ho(T3,o,r),ho(J0,r,r),ho(Qc,Y0,r);var d=Rle(o);po(Qc,r),ho(Qc,d,r)}function lh(r){po(Qc,r),po(J0,r),po(T3,r)}function u7(){var r=R3(Qc.current);return r}function rO(r){R3(T3.current);var o=R3(Qc.current),d=Mle(o,r.type);o!==d&&(ho(J0,r,r),ho(Qc,d,r))}function c7(r){J0.current===r&&(po(Qc,r),po(J0,r))}var fce=0,aO=1,oO=1,X0=2,Hs=Gc(fce);function d7(r,o){return(r&o)!==0}function uh(r){return r&aO}function f7(r,o){return r&aO|o}function pce(r,o){return r|o}function ed(r,o){ho(Hs,o,r)}function ch(r){po(Hs,r)}function hce(r,o){var d=r.memoizedState;return d!==null?d.dehydrated!==null:(r.memoizedProps,!0)}function M3(r){for(var o=r;o!==null;){if(o.tag===V){var d=o.memoizedState;if(d!==null){var p=d.dehydrated;if(p===null||CL(p)||A8(p))return o}}else if(o.tag===ce&&o.memoizedProps.revealOrder!==void 0){var v=(o.flags&kt)!==Tt;if(v)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===r)return null;for(;o.sibling===null;){if(o.return===null||o.return===r)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var si=0,ya=1,jl=2,xa=4,Va=8,p7=[];function h7(){for(var r=0;r<p7.length;r++){var o=p7[r];o._workInProgressVersionPrimary=null}p7.length=0}function mce(r,o){var d=o._getVersion,p=d(o._source);r.mutableSourceEagerHydrationData==null?r.mutableSourceEagerHydrationData=[o,p]:r.mutableSourceEagerHydrationData.push(o,p)}var ot=n.ReactCurrentDispatcher,K0=n.ReactCurrentBatchConfig,m7,dh;m7=new Set;var Uf=Oe,Yn=null,wa=null,ba=null,A3=!1,Q0=!1,e4=0,gce=0,vce=25,Re=null,ss=null,td=-1,g7=!1;function zn(){{var r=Re;ss===null?ss=[r]:ss.push(r)}}function Je(){{var r=Re;ss!==null&&(td++,ss[td]!==r&&yce(r))}}function fh(r){r!=null&&!rn(r)&&u("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Re,typeof r)}function yce(r){{var o=Ut(Yn);if(!m7.has(o)&&(m7.add(o),ss!==null)){for(var d="",p=30,v=0;v<=td;v++){for(var S=ss[v],_=v===td?r:S,A=v+1+". "+S;A.length<p;)A+=" ";A+=_+`
|
|
169
|
-
`,d+=A}u(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks
|
|
170
|
-
|
|
171
|
-
Previous render Next render
|
|
172
|
-
------------------------------------------------------
|
|
173
|
-
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
174
|
-
`,o,d)}}}function mo(){throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
175
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
176
|
-
2. You might be breaking the Rules of Hooks
|
|
177
|
-
3. You might have more than one copy of React in the same app
|
|
178
|
-
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function v7(r,o){if(g7)return!1;if(o===null)return u("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Re),!1;r.length!==o.length&&u(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
179
|
-
|
|
180
|
-
Previous: %s
|
|
181
|
-
Incoming: %s`,Re,"["+o.join(", ")+"]","["+r.join(", ")+"]");for(var d=0;d<o.length&&d<r.length;d++)if(!je(r[d],o[d]))return!1;return!0}function ph(r,o,d,p,v,S){Uf=S,Yn=o,ss=r!==null?r._debugHookTypes:null,td=-1,g7=r!==null&&r.type!==o.type,o.memoizedState=null,o.updateQueue=null,o.lanes=Oe,r!==null&&r.memoizedState!==null?ot.current=TO:ss!==null?ot.current=_O:ot.current=EO;var _=d(p,v);if(Q0){var A=0;do{if(Q0=!1,e4=0,A>=vce)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");A+=1,g7=!1,wa=null,ba=null,o.updateQueue=null,td=-1,ot.current=RO,_=d(p,v)}while(Q0)}ot.current=V3,o._debugHookTypes=ss;var I=wa!==null&&wa.next!==null;if(Uf=Oe,Yn=null,wa=null,ba=null,Re=null,ss=null,td=-1,r!==null&&(r.flags&Ur)!==(o.flags&Ur)&&(r.mode&on)!==Rt&&u("Internal React error: Expected static flag was missing. Please notify the React team."),A3=!1,I)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return _}function hh(){var r=e4!==0;return e4=0,r}function iO(r,o,d){o.updateQueue=r.updateQueue,(o.mode&Nn)!==Rt?o.flags&=-50333701:o.flags&=-2053,r.lanes=pf(r.lanes,d)}function sO(){if(ot.current=V3,A3){for(var r=Yn.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}A3=!1}Uf=Oe,Yn=null,wa=null,ba=null,ss=null,td=-1,Re=null,wO=!1,Q0=!1,e4=0}function Pl(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ba===null?Yn.memoizedState=ba=r:ba=ba.next=r,ba}function ls(){var r;if(wa===null){var o=Yn.alternate;o!==null?r=o.memoizedState:r=null}else r=wa.next;var d;if(ba===null?d=Yn.memoizedState:d=ba.next,d!==null)ba=d,d=ba.next,wa=r;else{if(r===null)throw new Error("Rendered more hooks than during the previous render.");wa=r;var p={memoizedState:wa.memoizedState,baseState:wa.baseState,baseQueue:wa.baseQueue,queue:wa.queue,next:null};ba===null?Yn.memoizedState=ba=p:ba=ba.next=p}return ba}function lO(){return{lastEffect:null,stores:null}}function y7(r,o){return typeof o=="function"?o(r):o}function x7(r,o,d){var p=Pl(),v;d!==void 0?v=d(o):v=o,p.memoizedState=p.baseState=v;var S={pending:null,interleaved:null,lanes:Oe,dispatch:null,lastRenderedReducer:r,lastRenderedState:v};p.queue=S;var _=S.dispatch=Cce.bind(null,Yn,S);return[p.memoizedState,_]}function w7(r,o,d){var p=ls(),v=p.queue;if(v===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");v.lastRenderedReducer=r;var S=wa,_=S.baseQueue,A=v.pending;if(A!==null){if(_!==null){var I=_.next,U=A.next;_.next=U,A.next=I}S.baseQueue!==_&&u("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),S.baseQueue=_=A,v.pending=null}if(_!==null){var $=_.next,re=S.baseState,te=null,de=null,ge=null,be=$;do{var nt=be.lane;if(Tu(Uf,nt)){if(ge!==null){var Ct={lane:Tn,action:be.action,hasEagerState:be.hasEagerState,eagerState:be.eagerState,next:null};ge=ge.next=Ct}if(be.hasEagerState)re=be.eagerState;else{var bn=be.action;re=r(re,bn)}}else{var Lt={lane:nt,action:be.action,hasEagerState:be.hasEagerState,eagerState:be.eagerState,next:null};ge===null?(de=ge=Lt,te=re):ge=ge.next=Lt,Yn.lanes=Xt(Yn.lanes,nt),b4(nt)}be=be.next}while(be!==null&&be!==$);ge===null?te=re:ge.next=de,je(re,p.memoizedState)||u4(),p.memoizedState=re,p.baseState=te,p.baseQueue=ge,v.lastRenderedState=re}var mn=v.interleaved;if(mn!==null){var ie=mn;do{var Ce=ie.lane;Yn.lanes=Xt(Yn.lanes,Ce),b4(Ce),ie=ie.next}while(ie!==mn)}else _===null&&(v.lanes=Oe);var se=v.dispatch;return[p.memoizedState,se]}function b7(r,o,d){var p=ls(),v=p.queue;if(v===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");v.lastRenderedReducer=r;var S=v.dispatch,_=v.pending,A=p.memoizedState;if(_!==null){v.pending=null;var I=_.next,U=I;do{var $=U.action;A=r(A,$),U=U.next}while(U!==I);je(A,p.memoizedState)||u4(),p.memoizedState=A,p.baseQueue===null&&(p.baseState=A),v.lastRenderedState=A}return[A,S]}function ope(r,o,d){}function ipe(r,o,d){}function C7(r,o,d){var p=Yn,v=Pl(),S,_=Ba();if(_){if(d===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");S=d(),dh||S!==d()&&(u("The result of getServerSnapshot should be cached to avoid an infinite loop"),dh=!0)}else{if(S=o(),!dh){var A=o();je(S,A)||(u("The result of getSnapshot should be cached to avoid an infinite loop"),dh=!0)}var I=l9();if(I===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");Np(I,Uf)||uO(p,o,S)}v.memoizedState=S;var U={value:S,getSnapshot:o};return v.queue=U,D3(dO.bind(null,p,U,r),[r]),p.flags|=no,t4(ya|Va,cO.bind(null,p,U,S,o),void 0,null),S}function N3(r,o,d){var p=Yn,v=ls(),S=o();if(!dh){var _=o();je(S,_)||(u("The result of getSnapshot should be cached to avoid an infinite loop"),dh=!0)}var A=v.memoizedState,I=!je(A,S);I&&(v.memoizedState=S,u4());var U=v.queue;if(r4(dO.bind(null,p,U,r),[r]),U.getSnapshot!==o||I||ba!==null&&ba.memoizedState.tag&ya){p.flags|=no,t4(ya|Va,cO.bind(null,p,U,S,o),void 0,null);var $=l9();if($===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");Np($,Uf)||uO(p,o,S)}return S}function uO(r,o,d){r.flags|=Lc;var p={getSnapshot:o,value:d},v=Yn.updateQueue;if(v===null)v=lO(),Yn.updateQueue=v,v.stores=[p];else{var S=v.stores;S===null?v.stores=[p]:S.push(p)}}function cO(r,o,d,p){o.value=d,o.getSnapshot=p,fO(o)&&pO(r)}function dO(r,o,d){var p=function(){fO(o)&&pO(r)};return d(p)}function fO(r){var o=r.getSnapshot,d=r.value;try{var p=o();return!je(d,p)}catch(v){return!0}}function pO(r){var o=ii(r,Ft);o!==null&&Ea(o,r,Ft,er)}function L3(r){var o=Pl();typeof r=="function"&&(r=r()),o.memoizedState=o.baseState=r;var d={pending:null,interleaved:null,lanes:Oe,dispatch:null,lastRenderedReducer:y7,lastRenderedState:r};o.queue=d;var p=d.dispatch=Sce.bind(null,Yn,d);return[o.memoizedState,p]}function S7(r){return w7(y7)}function k7(r){return b7(y7)}function t4(r,o,d,p){var v={tag:r,create:o,destroy:d,deps:p,next:null},S=Yn.updateQueue;if(S===null)S=lO(),Yn.updateQueue=S,S.lastEffect=v.next=v;else{var _=S.lastEffect;if(_===null)S.lastEffect=v.next=v;else{var A=_.next;_.next=v,v.next=A,S.lastEffect=v}}return v}function E7(r){var o=Pl();{var d={current:r};return o.memoizedState=d,d}}function O3(r){var o=ls();return o.memoizedState}function n4(r,o,d,p){var v=Pl(),S=p===void 0?null:p;Yn.flags|=r,v.memoizedState=t4(ya|o,d,void 0,S)}function I3(r,o,d,p){var v=ls(),S=p===void 0?null:p,_=void 0;if(wa!==null){var A=wa.memoizedState;if(_=A.destroy,S!==null){var I=A.deps;if(v7(S,I)){v.memoizedState=t4(o,d,_,S);return}}}Yn.flags|=r,v.memoizedState=t4(ya|o,d,_,S)}function D3(r,o){return(Yn.mode&Nn)!==Rt?n4(Yi|no|ap,Va,r,o):n4(no|ap,Va,r,o)}function r4(r,o){return I3(no,Va,r,o)}function _7(r,o){return n4(yn,jl,r,o)}function j3(r,o){return I3(yn,jl,r,o)}function T7(r,o){var d=yn;return d|=Rs,(Yn.mode&Nn)!==Rt&&(d|=yl),n4(d,xa,r,o)}function P3(r,o){return I3(yn,xa,r,o)}function hO(r,o){if(typeof o=="function"){var d=o,p=r();return d(p),function(){d(null)}}else if(o!=null){var v=o;v.hasOwnProperty("current")||u("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(v).join(", ")+"}");var S=r();return v.current=S,function(){v.current=null}}}function R7(r,o,d){typeof o!="function"&&u("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",o!==null?typeof o:"null");var p=d!=null?d.concat([r]):null,v=yn;return v|=Rs,(Yn.mode&Nn)!==Rt&&(v|=yl),n4(v,xa,hO.bind(null,o,r),p)}function F3(r,o,d){typeof o!="function"&&u("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",o!==null?typeof o:"null");var p=d!=null?d.concat([r]):null;return I3(yn,xa,hO.bind(null,o,r),p)}function xce(r,o){}var z3=xce;function M7(r,o){var d=Pl(),p=o===void 0?null:o;return d.memoizedState=[r,p],r}function H3(r,o){var d=ls(),p=o===void 0?null:o,v=d.memoizedState;if(v!==null&&p!==null){var S=v[1];if(v7(p,S))return v[0]}return d.memoizedState=[r,p],r}function A7(r,o){var d=Pl(),p=o===void 0?null:o,v=r();return d.memoizedState=[v,p],v}function U3(r,o){var d=ls(),p=o===void 0?null:o,v=d.memoizedState;if(v!==null&&p!==null){var S=v[1];if(v7(p,S))return v[0]}var _=r();return d.memoizedState=[_,p],_}function N7(r){var o=Pl();return o.memoizedState=r,r}function mO(r){var o=ls(),d=wa,p=d.memoizedState;return vO(o,p,r)}function gO(r){var o=ls();if(wa===null)return o.memoizedState=r,r;var d=wa.memoizedState;return vO(o,d,r)}function vO(r,o,d){var p=!o0(Uf);if(p){if(!je(d,o)){var v=l0();Yn.lanes=Xt(Yn.lanes,v),b4(v),r.baseState=!0}return o}else return r.baseState&&(r.baseState=!1,u4()),r.memoizedState=d,d}function wce(r,o,d){var p=ri();$r(yv(p,Qi)),r(!0);var v=K0.transition;K0.transition={};var S=K0.transition;K0.transition._updatedFibers=new Set;try{r(!1),o()}finally{if($r(p),K0.transition=v,v===null&&S._updatedFibers){var _=S._updatedFibers.size;_>10&&l("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),S._updatedFibers.clear()}}}function L7(){var r=L3(!1),o=r[0],d=r[1],p=wce.bind(null,d),v=Pl();return v.memoizedState=p,[o,p]}function yO(){var r=S7(),o=r[0],d=ls(),p=d.memoizedState;return[o,p]}function xO(){var r=k7(),o=r[0],d=ls(),p=d.memoizedState;return[o,p]}var wO=!1;function bce(){return wO}function O7(){var r=Pl(),o=l9(),d=o.identifierPrefix,p;if(Ba()){var v=Fue();p=":"+d+"R"+v;var S=e4++;S>0&&(p+="H"+S.toString(32)),p+=":"}else{var _=gce++;p=":"+d+"r"+_.toString(32)+":"}return r.memoizedState=p,p}function B3(){var r=ls(),o=r.memoizedState;return o}function Cce(r,o,d){typeof arguments[3]=="function"&&u("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var p=id(r),v={lane:p,action:d,hasEagerState:!1,eagerState:null,next:null};if(bO(r))CO(o,v);else{var S=JL(r,o,v,p);if(S!==null){var _=Io();Ea(S,r,p,_),SO(S,o,p)}}kO(r,p)}function Sce(r,o,d){typeof arguments[3]=="function"&&u("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var p=id(r),v={lane:p,action:d,hasEagerState:!1,eagerState:null,next:null};if(bO(r))CO(o,v);else{var S=r.alternate;if(r.lanes===Oe&&(S===null||S.lanes===Oe)){var _=o.lastRenderedReducer;if(_!==null){var A;A=ot.current,ot.current=Us;try{var I=o.lastRenderedState,U=_(I,d);if(v.hasEagerState=!0,v.eagerState=U,je(U,I)){sce(r,o,v,p);return}}catch(te){}finally{ot.current=A}}}var $=JL(r,o,v,p);if($!==null){var re=Io();Ea($,r,p,re),SO($,o,p)}}kO(r,p)}function bO(r){var o=r.alternate;return r===Yn||o!==null&&o===Yn}function CO(r,o){Q0=A3=!0;var d=r.pending;d===null?o.next=o:(o.next=d.next,d.next=o),r.pending=o}function SO(r,o,d){if(s0(d)){var p=o.lanes;p=u0(p,r.pendingLanes);var v=Xt(p,d);o.lanes=v,Op(r,v)}}function kO(r,o,d){nf(r,o)}var V3={readContext:la,useCallback:mo,useContext:mo,useEffect:mo,useImperativeHandle:mo,useInsertionEffect:mo,useLayoutEffect:mo,useMemo:mo,useReducer:mo,useRef:mo,useState:mo,useDebugValue:mo,useDeferredValue:mo,useTransition:mo,useMutableSource:mo,useSyncExternalStore:mo,useId:mo,unstable_isNewReconciler:K},EO=null,_O=null,TO=null,RO=null,Fl=null,Us=null,$3=null;{var I7=function(){u("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")},Vt=function(){u("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks")};EO={readContext:function(r){return la(r)},useCallback:function(r,o){return Re="useCallback",zn(),fh(o),M7(r,o)},useContext:function(r){return Re="useContext",zn(),la(r)},useEffect:function(r,o){return Re="useEffect",zn(),fh(o),D3(r,o)},useImperativeHandle:function(r,o,d){return Re="useImperativeHandle",zn(),fh(d),R7(r,o,d)},useInsertionEffect:function(r,o){return Re="useInsertionEffect",zn(),fh(o),_7(r,o)},useLayoutEffect:function(r,o){return Re="useLayoutEffect",zn(),fh(o),T7(r,o)},useMemo:function(r,o){Re="useMemo",zn(),fh(o);var d=ot.current;ot.current=Fl;try{return A7(r,o)}finally{ot.current=d}},useReducer:function(r,o,d){Re="useReducer",zn();var p=ot.current;ot.current=Fl;try{return x7(r,o,d)}finally{ot.current=p}},useRef:function(r){return Re="useRef",zn(),E7(r)},useState:function(r){Re="useState",zn();var o=ot.current;ot.current=Fl;try{return L3(r)}finally{ot.current=o}},useDebugValue:function(r,o){return Re="useDebugValue",zn(),void 0},useDeferredValue:function(r){return Re="useDeferredValue",zn(),N7(r)},useTransition:function(){return Re="useTransition",zn(),L7()},useMutableSource:function(r,o,d){return Re="useMutableSource",zn(),void 0},useSyncExternalStore:function(r,o,d){return Re="useSyncExternalStore",zn(),C7(r,o,d)},useId:function(){return Re="useId",zn(),O7()},unstable_isNewReconciler:K},_O={readContext:function(r){return la(r)},useCallback:function(r,o){return Re="useCallback",Je(),M7(r,o)},useContext:function(r){return Re="useContext",Je(),la(r)},useEffect:function(r,o){return Re="useEffect",Je(),D3(r,o)},useImperativeHandle:function(r,o,d){return Re="useImperativeHandle",Je(),R7(r,o,d)},useInsertionEffect:function(r,o){return Re="useInsertionEffect",Je(),_7(r,o)},useLayoutEffect:function(r,o){return Re="useLayoutEffect",Je(),T7(r,o)},useMemo:function(r,o){Re="useMemo",Je();var d=ot.current;ot.current=Fl;try{return A7(r,o)}finally{ot.current=d}},useReducer:function(r,o,d){Re="useReducer",Je();var p=ot.current;ot.current=Fl;try{return x7(r,o,d)}finally{ot.current=p}},useRef:function(r){return Re="useRef",Je(),E7(r)},useState:function(r){Re="useState",Je();var o=ot.current;ot.current=Fl;try{return L3(r)}finally{ot.current=o}},useDebugValue:function(r,o){return Re="useDebugValue",Je(),void 0},useDeferredValue:function(r){return Re="useDeferredValue",Je(),N7(r)},useTransition:function(){return Re="useTransition",Je(),L7()},useMutableSource:function(r,o,d){return Re="useMutableSource",Je(),void 0},useSyncExternalStore:function(r,o,d){return Re="useSyncExternalStore",Je(),C7(r,o,d)},useId:function(){return Re="useId",Je(),O7()},unstable_isNewReconciler:K},TO={readContext:function(r){return la(r)},useCallback:function(r,o){return Re="useCallback",Je(),H3(r,o)},useContext:function(r){return Re="useContext",Je(),la(r)},useEffect:function(r,o){return Re="useEffect",Je(),r4(r,o)},useImperativeHandle:function(r,o,d){return Re="useImperativeHandle",Je(),F3(r,o,d)},useInsertionEffect:function(r,o){return Re="useInsertionEffect",Je(),j3(r,o)},useLayoutEffect:function(r,o){return Re="useLayoutEffect",Je(),P3(r,o)},useMemo:function(r,o){Re="useMemo",Je();var d=ot.current;ot.current=Us;try{return U3(r,o)}finally{ot.current=d}},useReducer:function(r,o,d){Re="useReducer",Je();var p=ot.current;ot.current=Us;try{return w7(r,o,d)}finally{ot.current=p}},useRef:function(r){return Re="useRef",Je(),O3()},useState:function(r){Re="useState",Je();var o=ot.current;ot.current=Us;try{return S7(r)}finally{ot.current=o}},useDebugValue:function(r,o){return Re="useDebugValue",Je(),z3()},useDeferredValue:function(r){return Re="useDeferredValue",Je(),mO(r)},useTransition:function(){return Re="useTransition",Je(),yO()},useMutableSource:function(r,o,d){return Re="useMutableSource",Je(),void 0},useSyncExternalStore:function(r,o,d){return Re="useSyncExternalStore",Je(),N3(r,o)},useId:function(){return Re="useId",Je(),B3()},unstable_isNewReconciler:K},RO={readContext:function(r){return la(r)},useCallback:function(r,o){return Re="useCallback",Je(),H3(r,o)},useContext:function(r){return Re="useContext",Je(),la(r)},useEffect:function(r,o){return Re="useEffect",Je(),r4(r,o)},useImperativeHandle:function(r,o,d){return Re="useImperativeHandle",Je(),F3(r,o,d)},useInsertionEffect:function(r,o){return Re="useInsertionEffect",Je(),j3(r,o)},useLayoutEffect:function(r,o){return Re="useLayoutEffect",Je(),P3(r,o)},useMemo:function(r,o){Re="useMemo",Je();var d=ot.current;ot.current=$3;try{return U3(r,o)}finally{ot.current=d}},useReducer:function(r,o,d){Re="useReducer",Je();var p=ot.current;ot.current=$3;try{return b7(r,o,d)}finally{ot.current=p}},useRef:function(r){return Re="useRef",Je(),O3()},useState:function(r){Re="useState",Je();var o=ot.current;ot.current=$3;try{return k7(r)}finally{ot.current=o}},useDebugValue:function(r,o){return Re="useDebugValue",Je(),z3()},useDeferredValue:function(r){return Re="useDeferredValue",Je(),gO(r)},useTransition:function(){return Re="useTransition",Je(),xO()},useMutableSource:function(r,o,d){return Re="useMutableSource",Je(),void 0},useSyncExternalStore:function(r,o,d){return Re="useSyncExternalStore",Je(),N3(r,o)},useId:function(){return Re="useId",Je(),B3()},unstable_isNewReconciler:K},Fl={readContext:function(r){return I7(),la(r)},useCallback:function(r,o){return Re="useCallback",Vt(),zn(),M7(r,o)},useContext:function(r){return Re="useContext",Vt(),zn(),la(r)},useEffect:function(r,o){return Re="useEffect",Vt(),zn(),D3(r,o)},useImperativeHandle:function(r,o,d){return Re="useImperativeHandle",Vt(),zn(),R7(r,o,d)},useInsertionEffect:function(r,o){return Re="useInsertionEffect",Vt(),zn(),_7(r,o)},useLayoutEffect:function(r,o){return Re="useLayoutEffect",Vt(),zn(),T7(r,o)},useMemo:function(r,o){Re="useMemo",Vt(),zn();var d=ot.current;ot.current=Fl;try{return A7(r,o)}finally{ot.current=d}},useReducer:function(r,o,d){Re="useReducer",Vt(),zn();var p=ot.current;ot.current=Fl;try{return x7(r,o,d)}finally{ot.current=p}},useRef:function(r){return Re="useRef",Vt(),zn(),E7(r)},useState:function(r){Re="useState",Vt(),zn();var o=ot.current;ot.current=Fl;try{return L3(r)}finally{ot.current=o}},useDebugValue:function(r,o){return Re="useDebugValue",Vt(),zn(),void 0},useDeferredValue:function(r){return Re="useDeferredValue",Vt(),zn(),N7(r)},useTransition:function(){return Re="useTransition",Vt(),zn(),L7()},useMutableSource:function(r,o,d){return Re="useMutableSource",Vt(),zn(),void 0},useSyncExternalStore:function(r,o,d){return Re="useSyncExternalStore",Vt(),zn(),C7(r,o,d)},useId:function(){return Re="useId",Vt(),zn(),O7()},unstable_isNewReconciler:K},Us={readContext:function(r){return I7(),la(r)},useCallback:function(r,o){return Re="useCallback",Vt(),Je(),H3(r,o)},useContext:function(r){return Re="useContext",Vt(),Je(),la(r)},useEffect:function(r,o){return Re="useEffect",Vt(),Je(),r4(r,o)},useImperativeHandle:function(r,o,d){return Re="useImperativeHandle",Vt(),Je(),F3(r,o,d)},useInsertionEffect:function(r,o){return Re="useInsertionEffect",Vt(),Je(),j3(r,o)},useLayoutEffect:function(r,o){return Re="useLayoutEffect",Vt(),Je(),P3(r,o)},useMemo:function(r,o){Re="useMemo",Vt(),Je();var d=ot.current;ot.current=Us;try{return U3(r,o)}finally{ot.current=d}},useReducer:function(r,o,d){Re="useReducer",Vt(),Je();var p=ot.current;ot.current=Us;try{return w7(r,o,d)}finally{ot.current=p}},useRef:function(r){return Re="useRef",Vt(),Je(),O3()},useState:function(r){Re="useState",Vt(),Je();var o=ot.current;ot.current=Us;try{return S7(r)}finally{ot.current=o}},useDebugValue:function(r,o){return Re="useDebugValue",Vt(),Je(),z3()},useDeferredValue:function(r){return Re="useDeferredValue",Vt(),Je(),mO(r)},useTransition:function(){return Re="useTransition",Vt(),Je(),yO()},useMutableSource:function(r,o,d){return Re="useMutableSource",Vt(),Je(),void 0},useSyncExternalStore:function(r,o,d){return Re="useSyncExternalStore",Vt(),Je(),N3(r,o)},useId:function(){return Re="useId",Vt(),Je(),B3()},unstable_isNewReconciler:K},$3={readContext:function(r){return I7(),la(r)},useCallback:function(r,o){return Re="useCallback",Vt(),Je(),H3(r,o)},useContext:function(r){return Re="useContext",Vt(),Je(),la(r)},useEffect:function(r,o){return Re="useEffect",Vt(),Je(),r4(r,o)},useImperativeHandle:function(r,o,d){return Re="useImperativeHandle",Vt(),Je(),F3(r,o,d)},useInsertionEffect:function(r,o){return Re="useInsertionEffect",Vt(),Je(),j3(r,o)},useLayoutEffect:function(r,o){return Re="useLayoutEffect",Vt(),Je(),P3(r,o)},useMemo:function(r,o){Re="useMemo",Vt(),Je();var d=ot.current;ot.current=Us;try{return U3(r,o)}finally{ot.current=d}},useReducer:function(r,o,d){Re="useReducer",Vt(),Je();var p=ot.current;ot.current=Us;try{return b7(r,o,d)}finally{ot.current=p}},useRef:function(r){return Re="useRef",Vt(),Je(),O3()},useState:function(r){Re="useState",Vt(),Je();var o=ot.current;ot.current=Us;try{return k7(r)}finally{ot.current=o}},useDebugValue:function(r,o){return Re="useDebugValue",Vt(),Je(),z3()},useDeferredValue:function(r){return Re="useDeferredValue",Vt(),Je(),gO(r)},useTransition:function(){return Re="useTransition",Vt(),Je(),xO()},useMutableSource:function(r,o,d){return Re="useMutableSource",Vt(),Je(),void 0},useSyncExternalStore:function(r,o,d){return Re="useSyncExternalStore",Vt(),Je(),N3(r,o)},useId:function(){return Re="useId",Vt(),Je(),B3()},unstable_isNewReconciler:K}}var nd=t.unstable_now,MO=0,Z3=-1,a4=-1,W3=-1,D7=!1,q3=!1;function AO(){return D7}function kce(){q3=!0}function Ece(){D7=!1,q3=!1}function _ce(){D7=q3,q3=!1}function NO(){return MO}function LO(){MO=nd()}function j7(r){a4=nd(),r.actualStartTime<0&&(r.actualStartTime=nd())}function OO(r){a4=-1}function G3(r,o){if(a4>=0){var d=nd()-a4;r.actualDuration+=d,o&&(r.selfBaseDuration=d),a4=-1}}function zl(r){if(Z3>=0){var o=nd()-Z3;Z3=-1;for(var d=r.return;d!==null;){switch(d.tag){case y:var p=d.stateNode;p.effectDuration+=o;return;case j:var v=d.stateNode;v.effectDuration+=o;return}d=d.return}}}function P7(r){if(W3>=0){var o=nd()-W3;W3=-1;for(var d=r.return;d!==null;){switch(d.tag){case y:var p=d.stateNode;p!==null&&(p.passiveEffectDuration+=o);return;case j:var v=d.stateNode;v!==null&&(v.passiveEffectDuration+=o);return}d=d.return}}}function Hl(){Z3=nd()}function F7(){W3=nd()}function z7(r){for(var o=r.child;o;)r.actualDuration+=o.actualDuration,o=o.sibling}function Bs(r,o){if(r&&r.defaultProps){var d=en({},o),p=r.defaultProps;for(var v in p)d[v]===void 0&&(d[v]=p[v]);return d}return o}var H7={},U7,B7,V7,$7,Z7,IO,Y3,W7,q7,G7,o4;{U7=new Set,B7=new Set,V7=new Set,$7=new Set,W7=new Set,Z7=new Set,q7=new Set,G7=new Set,o4=new Set;var DO=new Set;Y3=function(r,o){if(!(r===null||typeof r=="function")){var d=o+"_"+r;DO.has(d)||(DO.add(d),u("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",o,r))}},IO=function(r,o){if(o===void 0){var d=Cn(r)||"Component";Z7.has(d)||(Z7.add(d),u("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",d))}},Object.defineProperty(H7,"_processChildContext",{enumerable:!1,value:function(){throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(H7)}function Y7(r,o,d,p){var v=r.memoizedState,S=d(p,v);{if(r.mode&Gn){br(!0);try{S=d(p,v)}finally{br(!1)}}IO(o,S)}var _=S==null?v:en({},v,S);if(r.memoizedState=_,r.lanes===Oe){var A=r.updateQueue;A.baseState=_}}var J7={isMounted:nv,enqueueSetState:function(r,o,d){var p=Nc(r),v=Io(),S=id(p),_=zu(v,S);_.payload=o,d!=null&&(Y3(d,"setState"),_.callback=d);var A=Kc(p,_,S);A!==null&&(Ea(A,p,S,v),k3(A,p,S)),nf(p,S)},enqueueReplaceState:function(r,o,d){var p=Nc(r),v=Io(),S=id(p),_=zu(v,S);_.tag=KL,_.payload=o,d!=null&&(Y3(d,"replaceState"),_.callback=d);var A=Kc(p,_,S);A!==null&&(Ea(A,p,S,v),k3(A,p,S)),nf(p,S)},enqueueForceUpdate:function(r,o){var d=Nc(r),p=Io(),v=id(d),S=zu(p,v);S.tag=b3,o!=null&&(Y3(o,"forceUpdate"),S.callback=o);var _=Kc(d,S,v);_!==null&&(Ea(_,d,v,p),k3(_,d,v)),dp(d,v)}};function jO(r,o,d,p,v,S,_){var A=r.stateNode;if(typeof A.shouldComponentUpdate=="function"){var I=A.shouldComponentUpdate(p,S,_);{if(r.mode&Gn){br(!0);try{I=A.shouldComponentUpdate(p,S,_)}finally{br(!1)}}I===void 0&&u("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",Cn(o)||"Component")}return I}return o.prototype&&o.prototype.isPureReactComponent?!pt(d,p)||!pt(v,S):!0}function Tce(r,o,d){var p=r.stateNode;{var v=Cn(o)||"Component",S=p.render;S||(o.prototype&&typeof o.prototype.render=="function"?u("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",v):u("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",v)),p.getInitialState&&!p.getInitialState.isReactClassApproved&&!p.state&&u("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",v),p.getDefaultProps&&!p.getDefaultProps.isReactClassApproved&&u("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",v),p.propTypes&&u("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",v),p.contextType&&u("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",v),o.childContextTypes&&!o4.has(o)&&(r.mode&Gn)===Rt&&(o4.add(o),u(`%s uses the legacy childContextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() instead
|
|
182
|
-
|
|
183
|
-
.Learn more about this warning here: https://reactjs.org/link/legacy-context`,v)),o.contextTypes&&!o4.has(o)&&(r.mode&Gn)===Rt&&(o4.add(o),u(`%s uses the legacy contextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() with static contextType instead.
|
|
184
|
-
|
|
185
|
-
Learn more about this warning here: https://reactjs.org/link/legacy-context`,v)),p.contextTypes&&u("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",v),o.contextType&&o.contextTypes&&!q7.has(o)&&(q7.add(o),u("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",v)),typeof p.componentShouldUpdate=="function"&&u("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",v),o.prototype&&o.prototype.isPureReactComponent&&typeof p.shouldComponentUpdate!="undefined"&&u("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",Cn(o)||"A pure component"),typeof p.componentDidUnmount=="function"&&u("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",v),typeof p.componentDidReceiveProps=="function"&&u("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",v),typeof p.componentWillRecieveProps=="function"&&u("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",v),typeof p.UNSAFE_componentWillRecieveProps=="function"&&u("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",v);var _=p.props!==d;p.props!==void 0&&_&&u("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",v,v),p.defaultProps&&u("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",v,v),typeof p.getSnapshotBeforeUpdate=="function"&&typeof p.componentDidUpdate!="function"&&!V7.has(o)&&(V7.add(o),u("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Cn(o))),typeof p.getDerivedStateFromProps=="function"&&u("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",v),typeof p.getDerivedStateFromError=="function"&&u("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",v),typeof o.getSnapshotBeforeUpdate=="function"&&u("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",v);var A=p.state;A&&(typeof A!="object"||rn(A))&&u("%s.state: must be set to an object or null",v),typeof p.getChildContext=="function"&&typeof o.childContextTypes!="object"&&u("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",v)}}function PO(r,o){o.updater=J7,r.stateNode=o,pu(o,r),o._reactInternalInstance=H7}function FO(r,o,d){var p=!1,v=Li,S=Li,_=o.contextType;if("contextType"in o){var A=_===null||_!==void 0&&_.$$typeof===J&&_._context===void 0;if(!A&&!G7.has(o)){G7.add(o);var I="";_===void 0?I=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof _!="object"?I=" However, it is set to a "+typeof _+".":_.$$typeof===tr?I=" Did you accidentally pass the Context.Provider instead?":_._context!==void 0?I=" Did you accidentally pass the Context.Consumer instead?":I=" However, it is set to an object with keys {"+Object.keys(_).join(", ")+"}.",u("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Cn(o)||"Component",I)}}if(typeof _=="object"&&_!==null)S=la(_);else{v=eh(r,o,!0);var U=o.contextTypes;p=U!=null,S=p?th(r,v):Li}var $=new o(d,S);if(r.mode&Gn){br(!0);try{$=new o(d,S)}finally{br(!1)}}var re=r.memoizedState=$.state!==null&&$.state!==void 0?$.state:null;PO(r,$);{if(typeof o.getDerivedStateFromProps=="function"&&re===null){var te=Cn(o)||"Component";B7.has(te)||(B7.add(te),u("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",te,$.state===null?"null":"undefined",te))}if(typeof o.getDerivedStateFromProps=="function"||typeof $.getSnapshotBeforeUpdate=="function"){var de=null,ge=null,be=null;if(typeof $.componentWillMount=="function"&&$.componentWillMount.__suppressDeprecationWarning!==!0?de="componentWillMount":typeof $.UNSAFE_componentWillMount=="function"&&(de="UNSAFE_componentWillMount"),typeof $.componentWillReceiveProps=="function"&&$.componentWillReceiveProps.__suppressDeprecationWarning!==!0?ge="componentWillReceiveProps":typeof $.UNSAFE_componentWillReceiveProps=="function"&&(ge="UNSAFE_componentWillReceiveProps"),typeof $.componentWillUpdate=="function"&&$.componentWillUpdate.__suppressDeprecationWarning!==!0?be="componentWillUpdate":typeof $.UNSAFE_componentWillUpdate=="function"&&(be="UNSAFE_componentWillUpdate"),de!==null||ge!==null||be!==null){var nt=Cn(o)||"Component",Lt=typeof o.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";$7.has(nt)||($7.add(nt),u(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
186
|
-
|
|
187
|
-
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
188
|
-
|
|
189
|
-
The above lifecycles should be removed. Learn more about this warning here:
|
|
190
|
-
https://reactjs.org/link/unsafe-component-lifecycles`,nt,Lt,de!==null?`
|
|
191
|
-
`+de:"",ge!==null?`
|
|
192
|
-
`+ge:"",be!==null?`
|
|
193
|
-
`+be:""))}}}return p&&TL(r,v,S),$}function Rce(r,o){var d=o.state;typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),d!==o.state&&(u("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Ut(r)||"Component"),J7.enqueueReplaceState(o,o.state,null))}function zO(r,o,d,p){var v=o.state;if(typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(d,p),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(d,p),o.state!==v){{var S=Ut(r)||"Component";U7.has(S)||(U7.add(S),u("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",S))}J7.enqueueReplaceState(o,o.state,null)}}function X7(r,o,d,p){Tce(r,o,d);var v=r.stateNode;v.props=d,v.state=r.memoizedState,v.refs={},i7(r);var S=o.contextType;if(typeof S=="object"&&S!==null)v.context=la(S);else{var _=eh(r,o,!0);v.context=th(r,_)}{if(v.state===d){var A=Cn(o)||"Component";W7.has(A)||(W7.add(A),u("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",A))}r.mode&Gn&&zs.recordLegacyContextWarning(r,v),zs.recordUnsafeLifecycleWarnings(r,v)}v.state=r.memoizedState;var I=o.getDerivedStateFromProps;if(typeof I=="function"&&(Y7(r,o,I,d),v.state=r.memoizedState),typeof o.getDerivedStateFromProps!="function"&&typeof v.getSnapshotBeforeUpdate!="function"&&(typeof v.UNSAFE_componentWillMount=="function"||typeof v.componentWillMount=="function")&&(Rce(r,v),E3(r,d,v,p),v.state=r.memoizedState),typeof v.componentDidMount=="function"){var U=yn;U|=Rs,(r.mode&Nn)!==Rt&&(U|=yl),r.flags|=U}}function Mce(r,o,d,p){var v=r.stateNode,S=r.memoizedProps;v.props=S;var _=v.context,A=o.contextType,I=Li;if(typeof A=="object"&&A!==null)I=la(A);else{var U=eh(r,o,!0);I=th(r,U)}var $=o.getDerivedStateFromProps,re=typeof $=="function"||typeof v.getSnapshotBeforeUpdate=="function";!re&&(typeof v.UNSAFE_componentWillReceiveProps=="function"||typeof v.componentWillReceiveProps=="function")&&(S!==d||_!==I)&&zO(r,v,d,I),eO();var te=r.memoizedState,de=v.state=te;if(E3(r,d,v,p),de=r.memoizedState,S===d&&te===de&&!i3()&&!_3()){if(typeof v.componentDidMount=="function"){var ge=yn;ge|=Rs,(r.mode&Nn)!==Rt&&(ge|=yl),r.flags|=ge}return!1}typeof $=="function"&&(Y7(r,o,$,d),de=r.memoizedState);var be=_3()||jO(r,o,S,d,te,de,I);if(be){if(!re&&(typeof v.UNSAFE_componentWillMount=="function"||typeof v.componentWillMount=="function")&&(typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount()),typeof v.componentDidMount=="function"){var nt=yn;nt|=Rs,(r.mode&Nn)!==Rt&&(nt|=yl),r.flags|=nt}}else{if(typeof v.componentDidMount=="function"){var Lt=yn;Lt|=Rs,(r.mode&Nn)!==Rt&&(Lt|=yl),r.flags|=Lt}r.memoizedProps=d,r.memoizedState=de}return v.props=d,v.state=de,v.context=I,be}function Ace(r,o,d,p,v){var S=o.stateNode;QL(r,o);var _=o.memoizedProps,A=o.type===o.elementType?_:Bs(o.type,_);S.props=A;var I=o.pendingProps,U=S.context,$=d.contextType,re=Li;if(typeof $=="object"&&$!==null)re=la($);else{var te=eh(o,d,!0);re=th(o,te)}var de=d.getDerivedStateFromProps,ge=typeof de=="function"||typeof S.getSnapshotBeforeUpdate=="function";!ge&&(typeof S.UNSAFE_componentWillReceiveProps=="function"||typeof S.componentWillReceiveProps=="function")&&(_!==I||U!==re)&&zO(o,S,p,re),eO();var be=o.memoizedState,nt=S.state=be;if(E3(o,p,S,v),nt=o.memoizedState,_===I&&be===nt&&!i3()&&!_3()&&!Ae)return typeof S.componentDidUpdate=="function"&&(_!==r.memoizedProps||be!==r.memoizedState)&&(o.flags|=yn),typeof S.getSnapshotBeforeUpdate=="function"&&(_!==r.memoizedProps||be!==r.memoizedState)&&(o.flags|=Qr),!1;typeof de=="function"&&(Y7(o,d,de,p),nt=o.memoizedState);var Lt=_3()||jO(o,d,A,p,be,nt,re)||Ae;return Lt?(!ge&&(typeof S.UNSAFE_componentWillUpdate=="function"||typeof S.componentWillUpdate=="function")&&(typeof S.componentWillUpdate=="function"&&S.componentWillUpdate(p,nt,re),typeof S.UNSAFE_componentWillUpdate=="function"&&S.UNSAFE_componentWillUpdate(p,nt,re)),typeof S.componentDidUpdate=="function"&&(o.flags|=yn),typeof S.getSnapshotBeforeUpdate=="function"&&(o.flags|=Qr)):(typeof S.componentDidUpdate=="function"&&(_!==r.memoizedProps||be!==r.memoizedState)&&(o.flags|=yn),typeof S.getSnapshotBeforeUpdate=="function"&&(_!==r.memoizedProps||be!==r.memoizedState)&&(o.flags|=Qr),o.memoizedProps=p,o.memoizedState=nt),S.props=p,S.state=nt,S.context=re,Lt}function Bf(r,o){return{value:r,source:o,stack:Cs(o),digest:null}}function K7(r,o,d){return{value:r,source:null,stack:d!=null?d:null,digest:o!=null?o:null}}function Nce(r,o){return!0}function Q7(r,o){try{var d=Nce(r,o);if(d===!1)return;var p=o.value,v=o.source,S=o.stack,_=S!==null?S:"";if(p!=null&&p._suppressLogging){if(r.tag===g)return;console.error(p)}var A=v?Ut(v):null,I=A?"The above error occurred in the <"+A+"> component:":"The above error occurred in one of your React components:",U;if(r.tag===y)U=`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
194
|
-
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;else{var $=Ut(r)||"Anonymous";U="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+$+".")}var re=I+`
|
|
195
|
-
`+_+`
|
|
196
|
-
|
|
197
|
-
`+(""+U);console.error(re)}catch(te){setTimeout(function(){throw te})}}var Lce=typeof WeakMap=="function"?WeakMap:Map;function HO(r,o,d){var p=zu(er,d);p.tag=a7,p.payload={element:null};var v=o.value;return p.callback=function(){kfe(v),Q7(r,o)},p}function ex(r,o,d){var p=zu(er,d);p.tag=a7;var v=r.type.getDerivedStateFromError;if(typeof v=="function"){var S=o.value;p.payload=function(){return v(S)},p.callback=function(){XI(r),Q7(r,o)}}var _=r.stateNode;return _!==null&&typeof _.componentDidCatch=="function"&&(p.callback=function(){XI(r),Q7(r,o),typeof v!="function"&&Cfe(this);var I=o.value,U=o.stack;this.componentDidCatch(I,{componentStack:U!==null?U:""}),typeof v!="function"&&(lo(r.lanes,Ft)||u("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",Ut(r)||"Unknown"))}),p}function UO(r,o,d){var p=r.pingCache,v;if(p===null?(p=r.pingCache=new Lce,v=new Set,p.set(o,v)):(v=p.get(o),v===void 0&&(v=new Set,p.set(o,v))),!v.has(d)){v.add(d);var S=Efe.bind(null,r,o,d);io&&C4(r,d),o.then(S,S)}}function Oce(r,o,d,p){var v=r.updateQueue;if(v===null){var S=new Set;S.add(d),r.updateQueue=S}else v.add(d)}function Ice(r,o){var d=r.tag;if((r.mode&on)===Rt&&(d===h||d===z||d===W)){var p=r.alternate;p?(r.updateQueue=p.updateQueue,r.memoizedState=p.memoizedState,r.lanes=p.lanes):(r.updateQueue=null,r.memoizedState=null)}}function BO(r){var o=r;do{if(o.tag===V&&hce(o))return o;o=o.return}while(o!==null);return null}function VO(r,o,d,p,v){if((r.mode&on)===Rt){if(r===o)r.flags|=aa;else{if(r.flags|=kt,d.flags|=rp,d.flags&=-52805,d.tag===g){var S=d.alternate;if(S===null)d.tag=ae;else{var _=zu(er,Ft);_.tag=b3,Kc(d,_,Ft)}}d.lanes=Xt(d.lanes,Ft)}return r}return r.flags|=aa,r.lanes=v,r}function Dce(r,o,d,p,v){if(d.flags|=Jd,io&&C4(r,v),p!==null&&typeof p=="object"&&typeof p.then=="function"){var S=p;Ice(d),Ba()&&d.mode&on&&IL();var _=BO(o);if(_!==null){_.flags&=~Ra,VO(_,o,d,r,v),_.mode&on&&UO(r,S,v),Oce(_,r,S);return}else{if(!cv(v)){UO(r,S,v),Ox();return}var A=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");p=A}}else if(Ba()&&d.mode&on){IL();var I=BO(o);if(I!==null){(I.flags&aa)===Tt&&(I.flags|=Ra),VO(I,o,d,r,v),W8(Bf(p,d));return}}p=Bf(p,d),hfe(p);var U=o;do{switch(U.tag){case y:{var $=p;U.flags|=aa;var re=ff(v);U.lanes=Xt(U.lanes,re);var te=HO(U,$,re);s7(U,te);return}case g:var de=p,ge=U.type,be=U.stateNode;if((U.flags&kt)===Tt&&(typeof ge.getDerivedStateFromError=="function"||be!==null&&typeof be.componentDidCatch=="function"&&!BI(be))){U.flags|=aa;var nt=ff(v);U.lanes=Xt(U.lanes,nt);var Lt=ex(U,de,nt);s7(U,Lt);return}break}U=U.return}while(U!==null)}function jce(){return null}var i4=n.ReactCurrentOwner,Vs=!1,tx,s4,nx,rx,ax,Vf,ox,J3,l4;tx={},s4={},nx={},rx={},ax={},Vf=!1,ox={},J3={},l4={};function Lo(r,o,d,p){r===null?o.child=WL(o,null,d,p):o.child=oh(o,r.child,d,p)}function Pce(r,o,d,p){o.child=oh(o,r.child,null,p),o.child=oh(o,null,d,p)}function $O(r,o,d,p,v){if(o.type!==o.elementType){var S=d.propTypes;S&&Ps(S,p,"prop",Cn(d))}var _=d.render,A=o.ref,I,U;sh(o,v),Ro(o);{if(i4.current=o,Kr(!0),I=ph(r,o,_,p,A,v),U=hh(),o.mode&Gn){br(!0);try{I=ph(r,o,_,p,A,v),U=hh()}finally{br(!1)}}Kr(!1)}return Mo(),r!==null&&!Vs?(iO(r,o,v),Hu(r,o,v)):(Ba()&&U&&H8(o),o.flags|=Ti,Lo(r,o,I,v),o.child)}function ZO(r,o,d,p,v){if(r===null){var S=d.type;if(Bfe(S)&&d.compare===null&&d.defaultProps===void 0){var _=S;return _=Ch(S),o.tag=W,o.type=_,lx(o,S),WO(r,o,_,p,v)}{var A=S.propTypes;if(A&&Ps(A,p,"prop",Cn(S)),d.defaultProps!==void 0){var I=Cn(S)||"Unknown";l4[I]||(u("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.",I),l4[I]=!0)}}var U=$x(d.type,null,p,o,o.mode,v);return U.ref=o.ref,U.return=o,o.child=U,U}{var $=d.type,re=$.propTypes;re&&Ps(re,p,"prop",Cn($))}var te=r.child,de=hx(r,v);if(!de){var ge=te.memoizedProps,be=d.compare;if(be=be!==null?be:pt,be(ge,p)&&r.ref===o.ref)return Hu(r,o,v)}o.flags|=Ti;var nt=Gf(te,p);return nt.ref=o.ref,nt.return=o,o.child=nt,nt}function WO(r,o,d,p,v){if(o.type!==o.elementType){var S=o.elementType;if(S.$$typeof===Bt){var _=S,A=_._payload,I=_._init;try{S=I(A)}catch(re){S=null}var U=S&&S.propTypes;U&&Ps(U,p,"prop",Cn(S))}}if(r!==null){var $=r.memoizedProps;if(pt($,p)&&r.ref===o.ref&&o.type===r.type)if(Vs=!1,o.pendingProps=p=$,hx(r,v))(r.flags&rp)!==Tt&&(Vs=!0);else return o.lanes=r.lanes,Hu(r,o,v)}return ix(r,o,d,p,v)}function qO(r,o,d){var p=o.pendingProps,v=p.children,S=r!==null?r.memoizedState:null;if(p.mode==="hidden"||B)if((o.mode&on)===Rt){var _={baseLanes:Oe,cachePool:null,transitions:null};o.memoizedState=_,u9(o,d)}else if(lo(d,so)){var re={baseLanes:Oe,cachePool:null,transitions:null};o.memoizedState=re;var te=S!==null?S.baseLanes:d;u9(o,te)}else{var A=null,I;if(S!==null){var U=S.baseLanes;I=Xt(U,d)}else I=d;o.lanes=o.childLanes=so;var $={baseLanes:I,cachePool:A,transitions:null};return o.memoizedState=$,o.updateQueue=null,u9(o,I),null}else{var de;S!==null?(de=Xt(S.baseLanes,d),o.memoizedState=null):de=d,u9(o,de)}return Lo(r,o,v,d),o.child}function Fce(r,o,d){var p=o.pendingProps;return Lo(r,o,p,d),o.child}function zce(r,o,d){var p=o.pendingProps.children;return Lo(r,o,p,d),o.child}function Hce(r,o,d){{o.flags|=yn;{var p=o.stateNode;p.effectDuration=0,p.passiveEffectDuration=0}}var v=o.pendingProps,S=v.children;return Lo(r,o,S,d),o.child}function GO(r,o){var d=o.ref;(r===null&&d!==null||r!==null&&r.ref!==d)&&(o.flags|=Er,o.flags|=Oc)}function ix(r,o,d,p,v){if(o.type!==o.elementType){var S=d.propTypes;S&&Ps(S,p,"prop",Cn(d))}var _;{var A=eh(o,d,!0);_=th(o,A)}var I,U;sh(o,v),Ro(o);{if(i4.current=o,Kr(!0),I=ph(r,o,d,p,_,v),U=hh(),o.mode&Gn){br(!0);try{I=ph(r,o,d,p,_,v),U=hh()}finally{br(!1)}}Kr(!1)}return Mo(),r!==null&&!Vs?(iO(r,o,v),Hu(r,o,v)):(Ba()&&U&&H8(o),o.flags|=Ti,Lo(r,o,I,v),o.child)}function YO(r,o,d,p,v){{switch(r1e(o)){case!1:{var S=o.stateNode,_=o.type,A=new _(o.memoizedProps,S.context),I=A.state;S.updater.enqueueSetState(S,I,null);break}case!0:{o.flags|=kt,o.flags|=aa;var U=new Error("Simulated error coming from DevTools"),$=ff(v);o.lanes=Xt(o.lanes,$);var re=ex(o,Bf(U,o),$);s7(o,re);break}}if(o.type!==o.elementType){var te=d.propTypes;te&&Ps(te,p,"prop",Cn(d))}}var de;Dl(d)?(de=!0,l3(o)):de=!1,sh(o,v);var ge=o.stateNode,be;ge===null?(K3(r,o),FO(o,d,p),X7(o,d,p,v),be=!0):r===null?be=Mce(o,d,p,v):be=Ace(r,o,d,p,v);var nt=sx(r,o,d,be,de,v);{var Lt=o.stateNode;be&&Lt.props!==p&&(Vf||u("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Ut(o)||"a component"),Vf=!0)}return nt}function sx(r,o,d,p,v,S){GO(r,o);var _=(o.flags&kt)!==Tt;if(!p&&!_)return v&&AL(o,d,!1),Hu(r,o,S);var A=o.stateNode;i4.current=o;var I;if(_&&typeof d.getDerivedStateFromError!="function")I=null,OO();else{Ro(o);{if(Kr(!0),I=A.render(),o.mode&Gn){br(!0);try{A.render()}finally{br(!1)}}Kr(!1)}Mo()}return o.flags|=Ti,r!==null&&_?Pce(r,o,I,S):Lo(r,o,I,S),o.memoizedState=A.state,v&&AL(o,d,!0),o.child}function JO(r){var o=r.stateNode;o.pendingContext?RL(r,o.pendingContext,o.pendingContext!==o.context):o.context&&RL(r,o.context,!1),l7(r,o.containerInfo)}function Uce(r,o,d){if(JO(o),r===null)throw new Error("Should have a current fiber. This is a bug in React.");var p=o.pendingProps,v=o.memoizedState,S=v.element;QL(r,o),E3(o,p,null,d);var _=o.memoizedState;o.stateNode;var A=_.element;if(v.isDehydrated){var I={element:A,isDehydrated:!1,cache:_.cache,pendingSuspenseBoundaries:_.pendingSuspenseBoundaries,transitions:_.transitions},U=o.updateQueue;if(U.baseState=I,o.memoizedState=I,o.flags&Ra){var $=Bf(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),o);return XO(r,o,A,d,$)}else if(A!==S){var re=Bf(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),o);return XO(r,o,A,d,re)}else{$ue(o);var te=WL(o,null,A,d);o.child=te;for(var de=te;de;)de.flags=de.flags&~wr|ro,de=de.sibling}}else{if(ah(),A===S)return Hu(r,o,d);Lo(r,o,A,d)}return o.child}function XO(r,o,d,p,v){return ah(),W8(v),o.flags|=Ra,Lo(r,o,d,p),o.child}function Bce(r,o,d){rO(o),r===null&&Z8(o);var p=o.type,v=o.pendingProps,S=r!==null?r.memoizedProps:null,_=v.children,A=_8(p,v);return A?_=null:S!==null&&_8(p,S)&&(o.flags|=Xo),GO(r,o),Lo(r,o,_,d),o.child}function Vce(r,o){return r===null&&Z8(o),null}function $ce(r,o,d,p){K3(r,o);var v=o.pendingProps,S=d,_=S._payload,A=S._init,I=A(_);o.type=I;var U=o.tag=Vfe(I),$=Bs(I,v),re;switch(U){case h:return lx(o,I),o.type=I=Ch(I),re=ix(null,o,I,$,p),re;case g:return o.type=I=Fx(I),re=YO(null,o,I,$,p),re;case z:return o.type=I=zx(I),re=$O(null,o,I,$,p),re;case H:{if(o.type!==o.elementType){var te=I.propTypes;te&&Ps(te,$,"prop",Cn(I))}return re=ZO(null,o,I,Bs(I.type,$),p),re}}var de="";throw I!==null&&typeof I=="object"&&I.$$typeof===Bt&&(de=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+I+". "+("Lazy element type must resolve to a class or function."+de))}function Zce(r,o,d,p,v){K3(r,o),o.tag=g;var S;return Dl(d)?(S=!0,l3(o)):S=!1,sh(o,v),FO(o,d,p),X7(o,d,p,v),sx(null,o,d,!0,S,v)}function Wce(r,o,d,p){K3(r,o);var v=o.pendingProps,S;{var _=eh(o,d,!1);S=th(o,_)}sh(o,p);var A,I;Ro(o);{if(d.prototype&&typeof d.prototype.render=="function"){var U=Cn(d)||"Unknown";tx[U]||(u("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",U,U),tx[U]=!0)}o.mode&Gn&&zs.recordLegacyContextWarning(o,null),Kr(!0),i4.current=o,A=ph(null,o,d,v,S,p),I=hh(),Kr(!1)}if(Mo(),o.flags|=Ti,typeof A=="object"&&A!==null&&typeof A.render=="function"&&A.$$typeof===void 0){var $=Cn(d)||"Unknown";s4[$]||(u("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",$,$,$),s4[$]=!0)}if(typeof A=="object"&&A!==null&&typeof A.render=="function"&&A.$$typeof===void 0){{var re=Cn(d)||"Unknown";s4[re]||(u("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",re,re,re),s4[re]=!0)}o.tag=g,o.memoizedState=null,o.updateQueue=null;var te=!1;return Dl(d)?(te=!0,l3(o)):te=!1,o.memoizedState=A.state!==null&&A.state!==void 0?A.state:null,i7(o),PO(o,A),X7(o,d,v,p),sx(null,o,d,!0,te,p)}else{if(o.tag=h,o.mode&Gn){br(!0);try{A=ph(null,o,d,v,S,p),I=hh()}finally{br(!1)}}return Ba()&&I&&H8(o),Lo(null,o,A,p),lx(o,d),o.child}}function lx(r,o){{if(o&&o.childContextTypes&&u("%s(...): childContextTypes cannot be defined on a function component.",o.displayName||o.name||"Component"),r.ref!==null){var d="",p=Da();p&&(d+=`
|
|
198
|
-
|
|
199
|
-
Check the render method of \``+p+"`.");var v=p||"",S=r._debugSource;S&&(v=S.fileName+":"+S.lineNumber),ax[v]||(ax[v]=!0,u("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",d))}if(o.defaultProps!==void 0){var _=Cn(o)||"Unknown";l4[_]||(u("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",_),l4[_]=!0)}if(typeof o.getDerivedStateFromProps=="function"){var A=Cn(o)||"Unknown";rx[A]||(u("%s: Function components do not support getDerivedStateFromProps.",A),rx[A]=!0)}if(typeof o.contextType=="object"&&o.contextType!==null){var I=Cn(o)||"Unknown";nx[I]||(u("%s: Function components do not support contextType.",I),nx[I]=!0)}}}var ux={dehydrated:null,treeContext:null,retryLane:Tn};function cx(r){return{baseLanes:r,cachePool:jce(),transitions:null}}function qce(r,o){var d=null;return{baseLanes:Xt(r.baseLanes,o),cachePool:d,transitions:r.transitions}}function Gce(r,o,d,p){if(o!==null){var v=o.memoizedState;if(v===null)return!1}return d7(r,X0)}function Yce(r,o){return pf(r.childLanes,o)}function KO(r,o,d){var p=o.pendingProps;a1e(o)&&(o.flags|=kt);var v=Hs.current,S=!1,_=(o.flags&kt)!==Tt;if(_||Gce(v,r)?(S=!0,o.flags&=~kt):(r===null||r.memoizedState!==null)&&(v=pce(v,oO)),v=uh(v),ed(o,v),r===null){Z8(o);var A=o.memoizedState;if(A!==null){var I=A.dehydrated;if(I!==null)return ede(o,I)}var U=p.children,$=p.fallback;if(S){var re=Jce(o,U,$,d),te=o.child;return te.memoizedState=cx(d),o.memoizedState=ux,re}else return dx(o,U)}else{var de=r.memoizedState;if(de!==null){var ge=de.dehydrated;if(ge!==null)return tde(r,o,_,p,ge,de,d)}if(S){var be=p.fallback,nt=p.children,Lt=Kce(r,o,nt,be,d),Ct=o.child,bn=r.child.memoizedState;return Ct.memoizedState=bn===null?cx(d):qce(bn,d),Ct.childLanes=Yce(r,d),o.memoizedState=ux,Lt}else{var mn=p.children,ie=Xce(r,o,mn,d);return o.memoizedState=null,ie}}}function dx(r,o,d){var p=r.mode,v={mode:"visible",children:o},S=fx(v,p);return S.return=r,r.child=S,S}function Jce(r,o,d,p){var v=r.mode,S=r.child,_={mode:"hidden",children:o},A,I;return(v&on)===Rt&&S!==null?(A=S,A.childLanes=Oe,A.pendingProps=_,r.mode&An&&(A.actualDuration=0,A.actualStartTime=-1,A.selfBaseDuration=0,A.treeBaseDuration=0),I=ld(d,v,p,null)):(A=fx(_,v),I=ld(d,v,p,null)),A.return=r,I.return=r,A.sibling=I,r.child=A,I}function fx(r,o,d){return QI(r,o,Oe,null)}function QO(r,o){return Gf(r,o)}function Xce(r,o,d,p){var v=r.child,S=v.sibling,_=QO(v,{mode:"visible",children:d});if((o.mode&on)===Rt&&(_.lanes=p),_.return=o,_.sibling=null,S!==null){var A=o.deletions;A===null?(o.deletions=[S],o.flags|=Jo):A.push(S)}return o.child=_,_}function Kce(r,o,d,p,v){var S=o.mode,_=r.child,A=_.sibling,I={mode:"hidden",children:d},U;if((S&on)===Rt&&o.child!==_){var $=o.child;U=$,U.childLanes=Oe,U.pendingProps=I,o.mode&An&&(U.actualDuration=0,U.actualStartTime=-1,U.selfBaseDuration=_.selfBaseDuration,U.treeBaseDuration=_.treeBaseDuration),o.deletions=null}else U=QO(_,I),U.subtreeFlags=_.subtreeFlags&Ur;var re;return A!==null?re=Gf(A,p):(re=ld(p,S,v,null),re.flags|=wr),re.return=o,U.return=o,U.sibling=re,o.child=U,re}function X3(r,o,d,p){p!==null&&W8(p),oh(o,r.child,null,d);var v=o.pendingProps,S=v.children,_=dx(o,S);return _.flags|=wr,o.memoizedState=null,_}function Qce(r,o,d,p,v){var S=o.mode,_={mode:"visible",children:d},A=fx(_,S),I=ld(p,S,v,null);return I.flags|=wr,A.return=o,I.return=o,A.sibling=I,o.child=A,(o.mode&on)!==Rt&&oh(o,r.child,null,v),I}function ede(r,o,d){return(r.mode&on)===Rt?(u("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),r.lanes=Ft):A8(o)?r.lanes=Ma:r.lanes=so,null}function tde(r,o,d,p,v,S,_){if(d)if(o.flags&Ra){o.flags&=~Ra;var ie=K7(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return X3(r,o,_,ie)}else{if(o.memoizedState!==null)return o.child=r.child,o.flags|=kt,null;var Ce=p.children,se=p.fallback,Fe=Qce(r,o,Ce,se,_),it=o.child;return it.memoizedState=cx(_),o.memoizedState=ux,Fe}else{if(Bue(),(o.mode&on)===Rt)return X3(r,o,_,null);if(A8(v)){var A,I,U;{var $=oue(v);A=$.digest,I=$.message,U=$.stack}var re;I?re=new Error(I):re=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var te=K7(re,A,U);return X3(r,o,_,te)}var de=lo(_,r.childLanes);if(Vs||de){var ge=l9();if(ge!==null){var be=d0(ge,_);if(be!==Tn&&be!==S.retryLane){S.retryLane=be;var nt=er;ii(r,be),Ea(ge,r,be,nt)}}Ox();var Lt=K7(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."));return X3(r,o,_,Lt)}else if(CL(v)){o.flags|=kt,o.child=r.child;var Ct=_fe.bind(null,r);return iue(v,Ct),null}else{Zue(o,v,S.treeContext);var bn=p.children,mn=dx(o,bn);return mn.flags|=ro,mn}}}function eI(r,o,d){r.lanes=Xt(r.lanes,o);var p=r.alternate;p!==null&&(p.lanes=Xt(p.lanes,o)),n7(r.return,o,d)}function nde(r,o,d){for(var p=o;p!==null;){if(p.tag===V){var v=p.memoizedState;v!==null&&eI(p,d,r)}else if(p.tag===ce)eI(p,d,r);else if(p.child!==null){p.child.return=p,p=p.child;continue}if(p===r)return;for(;p.sibling===null;){if(p.return===null||p.return===r)return;p=p.return}p.sibling.return=p.return,p=p.sibling}}function rde(r){for(var o=r,d=null;o!==null;){var p=o.alternate;p!==null&&M3(p)===null&&(d=o),o=o.sibling}return d}function ade(r){if(r!==void 0&&r!=="forwards"&&r!=="backwards"&&r!=="together"&&!ox[r])if(ox[r]=!0,typeof r=="string")switch(r.toLowerCase()){case"together":case"forwards":case"backwards":{u('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',r,r.toLowerCase());break}case"forward":case"backward":{u('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',r,r.toLowerCase());break}default:u('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',r);break}else u('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',r)}function ode(r,o){r!==void 0&&!J3[r]&&(r!=="collapsed"&&r!=="hidden"?(J3[r]=!0,u('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',r)):o!=="forwards"&&o!=="backwards"&&(J3[r]=!0,u('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',r)))}function tI(r,o){{var d=rn(r),p=!d&&typeof Yt(r)=="function";if(d||p){var v=d?"array":"iterable";return u("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",v,o,v),!1}}return!0}function ide(r,o){if((o==="forwards"||o==="backwards")&&r!==void 0&&r!==null&&r!==!1)if(rn(r)){for(var d=0;d<r.length;d++)if(!tI(r[d],d))return}else{var p=Yt(r);if(typeof p=="function"){var v=p.call(r);if(v)for(var S=v.next(),_=0;!S.done;S=v.next()){if(!tI(S.value,_))return;_++}}else u('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',o)}}function px(r,o,d,p,v){var S=r.memoizedState;S===null?r.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:p,tail:d,tailMode:v}:(S.isBackwards=o,S.rendering=null,S.renderingStartTime=0,S.last=p,S.tail=d,S.tailMode=v)}function nI(r,o,d){var p=o.pendingProps,v=p.revealOrder,S=p.tail,_=p.children;ade(v),ode(S,v),ide(_,v),Lo(r,o,_,d);var A=Hs.current,I=d7(A,X0);if(I)A=f7(A,X0),o.flags|=kt;else{var U=r!==null&&(r.flags&kt)!==Tt;U&&nde(o,o.child,d),A=uh(A)}if(ed(o,A),(o.mode&on)===Rt)o.memoizedState=null;else switch(v){case"forwards":{var $=rde(o.child),re;$===null?(re=o.child,o.child=null):(re=$.sibling,$.sibling=null),px(o,!1,re,$,S);break}case"backwards":{var te=null,de=o.child;for(o.child=null;de!==null;){var ge=de.alternate;if(ge!==null&&M3(ge)===null){o.child=de;break}var be=de.sibling;de.sibling=te,te=de,de=be}px(o,!0,te,null,S);break}case"together":{px(o,!1,null,null,void 0);break}default:o.memoizedState=null}return o.child}function sde(r,o,d){l7(o,o.stateNode.containerInfo);var p=o.pendingProps;return r===null?o.child=oh(o,null,p,d):Lo(r,o,p,d),o.child}var rI=!1;function lde(r,o,d){var p=o.type,v=p._context,S=o.pendingProps,_=o.memoizedProps,A=S.value;{"value"in S||rI||(rI=!0,u("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var I=o.type.propTypes;I&&Ps(I,S,"prop","Context.Provider")}if(YL(o,v,A),_!==null){var U=_.value;if(je(U,A)){if(_.children===S.children&&!i3())return Hu(r,o,d)}else ace(o,v,d)}var $=S.children;return Lo(r,o,$,d),o.child}var aI=!1;function ude(r,o,d){var p=o.type;p._context===void 0?p!==p.Consumer&&(aI||(aI=!0,u("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):p=p._context;var v=o.pendingProps,S=v.children;typeof S!="function"&&u("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),sh(o,d);var _=la(p);Ro(o);var A;return i4.current=o,Kr(!0),A=S(_),Kr(!1),Mo(),o.flags|=Ti,Lo(r,o,A,d),o.child}function u4(){Vs=!0}function K3(r,o){(o.mode&on)===Rt&&r!==null&&(r.alternate=null,o.alternate=null,o.flags|=wr)}function Hu(r,o,d){return r!==null&&(o.dependencies=r.dependencies),OO(),b4(o.lanes),lo(d,o.childLanes)?(nce(r,o),o.child):null}function cde(r,o,d){{var p=o.return;if(p===null)throw new Error("Cannot swap the root fiber.");if(r.alternate=null,o.alternate=null,d.index=o.index,d.sibling=o.sibling,d.return=o.return,d.ref=o.ref,o===p.child)p.child=d;else{var v=p.child;if(v===null)throw new Error("Expected parent to have a child.");for(;v.sibling!==o;)if(v=v.sibling,v===null)throw new Error("Expected to find the previous sibling.");v.sibling=d}var S=p.deletions;return S===null?(p.deletions=[r],p.flags|=Jo):S.push(r),d.flags|=wr,d}}function hx(r,o){var d=r.lanes;return!!lo(d,o)}function dde(r,o,d){switch(o.tag){case y:JO(o),o.stateNode,ah();break;case b:rO(o);break;case g:{var p=o.type;Dl(p)&&l3(o);break}case k:l7(o,o.stateNode.containerInfo);break;case P:{var v=o.memoizedProps.value,S=o.type._context;YL(o,S,v);break}case j:{var _=lo(d,o.childLanes);_&&(o.flags|=yn);{var A=o.stateNode;A.effectDuration=0,A.passiveEffectDuration=0}}break;case V:{var I=o.memoizedState;if(I!==null){if(I.dehydrated!==null)return ed(o,uh(Hs.current)),o.flags|=kt,null;var U=o.child,$=U.childLanes;if(lo(d,$))return KO(r,o,d);ed(o,uh(Hs.current));var re=Hu(r,o,d);return re!==null?re.sibling:null}else ed(o,uh(Hs.current));break}case ce:{var te=(r.flags&kt)!==Tt,de=lo(d,o.childLanes);if(te){if(de)return nI(r,o,d);o.flags|=kt}var ge=o.memoizedState;if(ge!==null&&(ge.rendering=null,ge.tail=null,ge.lastEffect=null),ed(o,Hs.current),de)break;return null}case ue:case Te:return o.lanes=Oe,qO(r,o,d)}return Hu(r,o,d)}function oI(r,o,d){if(o._debugNeedsRemount&&r!==null)return cde(r,o,$x(o.type,o.key,o.pendingProps,o._debugOwner||null,o.mode,o.lanes));if(r!==null){var p=r.memoizedProps,v=o.pendingProps;if(p!==v||i3()||o.type!==r.type)Vs=!0;else{var S=hx(r,d);if(!S&&(o.flags&kt)===Tt)return Vs=!1,dde(r,o,d);(r.flags&rp)!==Tt?Vs=!0:Vs=!1}}else if(Vs=!1,Ba()&&jue(o)){var _=o.index,A=Pue();OL(o,A,_)}switch(o.lanes=Oe,o.tag){case x:return Wce(r,o,o.type,d);case G:{var I=o.elementType;return $ce(r,o,I,d)}case h:{var U=o.type,$=o.pendingProps,re=o.elementType===U?$:Bs(U,$);return ix(r,o,U,re,d)}case g:{var te=o.type,de=o.pendingProps,ge=o.elementType===te?de:Bs(te,de);return YO(r,o,te,ge,d)}case y:return Uce(r,o,d);case b:return Bce(r,o,d);case T:return Vce(r,o);case V:return KO(r,o,d);case k:return sde(r,o,d);case z:{var be=o.type,nt=o.pendingProps,Lt=o.elementType===be?nt:Bs(be,nt);return $O(r,o,be,Lt,d)}case R:return Fce(r,o,d);case N:return zce(r,o,d);case j:return Hce(r,o,d);case P:return lde(r,o,d);case O:return ude(r,o,d);case H:{var Ct=o.type,bn=o.pendingProps,mn=Bs(Ct,bn);if(o.type!==o.elementType){var ie=Ct.propTypes;ie&&Ps(ie,mn,"prop",Cn(Ct))}return mn=Bs(Ct.type,mn),ZO(r,o,Ct,mn,d)}case W:return WO(r,o,o.type,o.pendingProps,d);case ae:{var Ce=o.type,se=o.pendingProps,Fe=o.elementType===Ce?se:Bs(Ce,se);return Zce(r,o,Ce,Fe,d)}case ce:return nI(r,o,d);case he:break;case ue:return qO(r,o,d)}throw new Error("Unknown unit of work tag ("+o.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function mh(r){r.flags|=yn}function iI(r){r.flags|=Er,r.flags|=Oc}var sI,mx,lI,uI;sI=function(r,o,d,p){for(var v=o.child;v!==null;){if(v.tag===b||v.tag===T)Ole(r,v.stateNode);else if(v.tag!==k){if(v.child!==null){v.child.return=v,v=v.child;continue}}if(v===o)return;for(;v.sibling===null;){if(v.return===null||v.return===o)return;v=v.return}v.sibling.return=v.return,v=v.sibling}},mx=function(r,o){},lI=function(r,o,d,p,v){var S=r.memoizedProps;if(S!==p){var _=o.stateNode,A=u7(),I=Dle(_,d,S,p,v,A);o.updateQueue=I,I&&mh(o)}},uI=function(r,o,d,p){d!==p&&mh(o)};function c4(r,o){if(!Ba())switch(r.tailMode){case"hidden":{for(var d=r.tail,p=null;d!==null;)d.alternate!==null&&(p=d),d=d.sibling;p===null?r.tail=null:p.sibling=null;break}case"collapsed":{for(var v=r.tail,S=null;v!==null;)v.alternate!==null&&(S=v),v=v.sibling;S===null?!o&&r.tail!==null?r.tail.sibling=null:r.tail=null:S.sibling=null;break}}}function $a(r){var o=r.alternate!==null&&r.alternate.child===r.child,d=Oe,p=Tt;if(o){if((r.mode&An)!==Rt){for(var I=r.selfBaseDuration,U=r.child;U!==null;)d=Xt(d,Xt(U.lanes,U.childLanes)),p|=U.subtreeFlags&Ur,p|=U.flags&Ur,I+=U.treeBaseDuration,U=U.sibling;r.treeBaseDuration=I}else for(var $=r.child;$!==null;)d=Xt(d,Xt($.lanes,$.childLanes)),p|=$.subtreeFlags&Ur,p|=$.flags&Ur,$.return=r,$=$.sibling;r.subtreeFlags|=p}else{if((r.mode&An)!==Rt){for(var v=r.actualDuration,S=r.selfBaseDuration,_=r.child;_!==null;)d=Xt(d,Xt(_.lanes,_.childLanes)),p|=_.subtreeFlags,p|=_.flags,v+=_.actualDuration,S+=_.treeBaseDuration,_=_.sibling;r.actualDuration=v,r.treeBaseDuration=S}else for(var A=r.child;A!==null;)d=Xt(d,Xt(A.lanes,A.childLanes)),p|=A.subtreeFlags,p|=A.flags,A.return=r,A=A.sibling;r.subtreeFlags|=p}return r.childLanes=d,o}function fde(r,o,d){if(Jue()&&(o.mode&on)!==Rt&&(o.flags&kt)===Tt)return HL(o),ah(),o.flags|=Ra|Jd|aa,!1;var p=p3(o);if(d!==null&&d.dehydrated!==null)if(r===null){if(!p)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(Gue(o),$a(o),(o.mode&An)!==Rt){var v=d!==null;if(v){var S=o.child;S!==null&&(o.treeBaseDuration-=S.treeBaseDuration)}}return!1}else{if(ah(),(o.flags&kt)===Tt&&(o.memoizedState=null),o.flags|=yn,$a(o),(o.mode&An)!==Rt){var _=d!==null;if(_){var A=o.child;A!==null&&(o.treeBaseDuration-=A.treeBaseDuration)}}return!1}else return UL(),!0}function cI(r,o,d){var p=o.pendingProps;switch(U8(o),o.tag){case x:case G:case W:case h:case z:case R:case N:case j:case O:case H:return $a(o),null;case g:{var v=o.type;return Dl(v)&&s3(o),$a(o),null}case y:{var S=o.stateNode;if(lh(o),P8(o),h7(),S.pendingContext&&(S.context=S.pendingContext,S.pendingContext=null),r===null||r.child===null){var _=p3(o);if(_)mh(o);else if(r!==null){var A=r.memoizedState;(!A.isDehydrated||(o.flags&Ra)!==Tt)&&(o.flags|=Qr,UL())}}return mx(r,o),$a(o),null}case b:{c7(o);var I=nO(),U=o.type;if(r!==null&&o.stateNode!=null)lI(r,o,U,p,I),r.ref!==o.ref&&iI(o);else{if(!p){if(o.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return $a(o),null}var $=u7(),re=p3(o);if(re)Wue(o,I,$)&&mh(o);else{var te=Lle(U,p,I,$,o);sI(te,o,!1,!1),o.stateNode=te,Ile(te,U,p,I)&&mh(o)}o.ref!==null&&iI(o)}return $a(o),null}case T:{var de=p;if(r&&o.stateNode!=null){var ge=r.memoizedProps;uI(r,o,ge,de)}else{if(typeof de!="string"&&o.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var be=nO(),nt=u7(),Lt=p3(o);Lt?que(o)&&mh(o):o.stateNode=jle(de,be,nt,o)}return $a(o),null}case V:{ch(o);var Ct=o.memoizedState;if(r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){var bn=fde(r,o,Ct);if(!bn)return o.flags&aa?o:null}if((o.flags&kt)!==Tt)return o.lanes=d,(o.mode&An)!==Rt&&z7(o),o;var mn=Ct!==null,ie=r!==null&&r.memoizedState!==null;if(mn!==ie&&mn){var Ce=o.child;if(Ce.flags|=Hr,(o.mode&on)!==Rt){var se=r===null&&(o.memoizedProps.unstable_avoidThisFallback!==!0||!0);se||d7(Hs.current,oO)?pfe():Ox()}}var Fe=o.updateQueue;if(Fe!==null&&(o.flags|=yn),$a(o),(o.mode&An)!==Rt&&mn){var it=o.child;it!==null&&(o.treeBaseDuration-=it.treeBaseDuration)}return null}case k:return lh(o),mx(r,o),r===null&&Mue(o.stateNode.containerInfo),$a(o),null;case P:var rt=o.type._context;return t7(rt,o),$a(o),null;case ae:{var zt=o.type;return Dl(zt)&&s3(o),$a(o),null}case ce:{ch(o);var qt=o.memoizedState;if(qt===null)return $a(o),null;var Jn=(o.flags&kt)!==Tt,On=qt.rendering;if(On===null)if(Jn)c4(qt,!1);else{var na=mfe()&&(r===null||(r.flags&kt)===Tt);if(!na)for(var In=o.child;In!==null;){var qr=M3(In);if(qr!==null){Jn=!0,o.flags|=kt,c4(qt,!1);var go=qr.updateQueue;return go!==null&&(o.updateQueue=go,o.flags|=yn),o.subtreeFlags=Tt,rce(o,d),ed(o,f7(Hs.current,X0)),o.child}In=In.sibling}qt.tail!==null&&ea()>NI()&&(o.flags|=kt,Jn=!0,c4(qt,!1),o.lanes=n0)}else{if(!Jn){var Ya=M3(On);if(Ya!==null){o.flags|=kt,Jn=!0;var Ii=Ya.updateQueue;if(Ii!==null&&(o.updateQueue=Ii,o.flags|=yn),c4(qt,!0),qt.tail===null&&qt.tailMode==="hidden"&&!On.alternate&&!Ba())return $a(o),null}else ea()*2-qt.renderingStartTime>NI()&&d!==so&&(o.flags|=kt,Jn=!0,c4(qt,!1),o.lanes=n0)}if(qt.isBackwards)On.sibling=o.child,o.child=On;else{var Do=qt.last;Do!==null?Do.sibling=On:o.child=On,qt.last=On}}if(qt.tail!==null){var jo=qt.tail;qt.rendering=jo,qt.tail=jo.sibling,qt.renderingStartTime=ea(),jo.sibling=null;var vo=Hs.current;return Jn?vo=f7(vo,X0):vo=uh(vo),ed(o,vo),jo}return $a(o),null}case he:break;case ue:case Te:{Lx(o);var Zu=o.memoizedState,Sh=Zu!==null;if(r!==null){var _4=r.memoizedState,Vl=_4!==null;Vl!==Sh&&!B&&(o.flags|=Hr)}return!Sh||(o.mode&on)===Rt?$a(o):lo(Bl,so)&&($a(o),o.subtreeFlags&(wr|yn)&&(o.flags|=Hr)),null}case ke:return null;case Ee:return null}throw new Error("Unknown unit of work tag ("+o.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function pde(r,o,d){switch(U8(o),o.tag){case g:{var p=o.type;Dl(p)&&s3(o);var v=o.flags;return v&aa?(o.flags=v&~aa|kt,(o.mode&An)!==Rt&&z7(o),o):null}case y:{o.stateNode,lh(o),P8(o),h7();var S=o.flags;return(S&aa)!==Tt&&(S&kt)===Tt?(o.flags=S&~aa|kt,o):null}case b:return c7(o),null;case V:{ch(o);var _=o.memoizedState;if(_!==null&&_.dehydrated!==null){if(o.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");ah()}var A=o.flags;return A&aa?(o.flags=A&~aa|kt,(o.mode&An)!==Rt&&z7(o),o):null}case ce:return ch(o),null;case k:return lh(o),null;case P:var I=o.type._context;return t7(I,o),null;case ue:case Te:return Lx(o),null;case ke:return null;default:return null}}function dI(r,o,d){switch(U8(o),o.tag){case g:{var p=o.type.childContextTypes;p!=null&&s3(o);break}case y:{o.stateNode,lh(o),P8(o),h7();break}case b:{c7(o);break}case k:lh(o);break;case V:ch(o);break;case ce:ch(o);break;case P:var v=o.type._context;t7(v,o);break;case ue:case Te:Lx(o);break}}var fI=null;fI=new Set;var Q3=!1,Za=!1,hde=typeof WeakSet=="function"?WeakSet:Set,ht=null,gh=null,vh=null;function mde(r){vl(null,function(){throw r}),Yd()}var gde=function(r,o){if(o.props=r.memoizedProps,o.state=r.memoizedState,r.mode&An)try{Hl(),o.componentWillUnmount()}finally{zl(r)}else o.componentWillUnmount()};function pI(r,o){try{rd(xa,r)}catch(d){lr(r,o,d)}}function gx(r,o,d){try{gde(r,d)}catch(p){lr(r,o,p)}}function vde(r,o,d){try{d.componentDidMount()}catch(p){lr(r,o,p)}}function hI(r,o){try{gI(r)}catch(d){lr(r,o,d)}}function yh(r,o){var d=r.ref;if(d!==null)if(typeof d=="function"){var p;try{if(ze&&st&&r.mode&An)try{Hl(),p=d(null)}finally{zl(r)}else p=d(null)}catch(v){lr(r,o,v)}typeof p=="function"&&u("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Ut(r))}else d.current=null}function e9(r,o,d){try{d()}catch(p){lr(r,o,p)}}var mI=!1;function yde(r,o){Ale(r.containerInfo),ht=o,xde();var d=mI;return mI=!1,d}function xde(){for(;ht!==null;){var r=ht,o=r.child;(r.subtreeFlags&xl)!==Tt&&o!==null?(o.return=r,ht=o):wde()}}function wde(){for(;ht!==null;){var r=ht;Zn(r);try{bde(r)}catch(d){lr(r,r.return,d)}sr();var o=r.sibling;if(o!==null){o.return=r.return,ht=o;return}ht=r.return}}function bde(r){var o=r.alternate,d=r.flags;if((d&Qr)!==Tt){switch(Zn(r),r.tag){case h:case z:case W:break;case g:{if(o!==null){var p=o.memoizedProps,v=o.memoizedState,S=r.stateNode;r.type===r.elementType&&!Vf&&(S.props!==r.memoizedProps&&u("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Ut(r)||"instance"),S.state!==r.memoizedState&&u("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Ut(r)||"instance"));var _=S.getSnapshotBeforeUpdate(r.elementType===r.type?p:Bs(r.type,p),v);{var A=fI;_===void 0&&!A.has(r.type)&&(A.add(r.type),u("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Ut(r)))}S.__reactInternalSnapshotBeforeUpdate=_}break}case y:{{var I=r.stateNode;tue(I.containerInfo)}break}case b:case T:case k:case ae:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}sr()}}function $s(r,o,d){var p=o.updateQueue,v=p!==null?p.lastEffect:null;if(v!==null){var S=v.next,_=S;do{if((_.tag&r)===r){var A=_.destroy;_.destroy=void 0,A!==void 0&&((r&Va)!==si?Ns(o):(r&xa)!==si&&Kd(o),(r&jl)!==si&&S4(!0),e9(o,d,A),(r&jl)!==si&&S4(!1),(r&Va)!==si?Sl():(r&xa)!==si&&e0())}_=_.next}while(_!==S)}}function rd(r,o){var d=o.updateQueue,p=d!==null?d.lastEffect:null;if(p!==null){var v=p.next,S=v;do{if((S.tag&r)===r){(r&Va)!==si?Qm(o):(r&xa)!==si&&up(o);var _=S.create;(r&jl)!==si&&S4(!0),S.destroy=_(),(r&jl)!==si&&S4(!1),(r&Va)!==si?ov():(r&xa)!==si&&iv();{var A=S.destroy;if(A!==void 0&&typeof A!="function"){var I=void 0;(S.tag&xa)!==Tt?I="useLayoutEffect":(S.tag&jl)!==Tt?I="useInsertionEffect":I="useEffect";var U=void 0;A===null?U=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof A.then=="function"?U=`
|
|
200
|
-
|
|
201
|
-
It looks like you wrote `+I+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
202
|
-
|
|
203
|
-
`+I+`(() => {
|
|
204
|
-
async function fetchData() {
|
|
205
|
-
// You can await here
|
|
206
|
-
const response = await MyAPI.getData(someId);
|
|
207
|
-
// ...
|
|
208
|
-
}
|
|
209
|
-
fetchData();
|
|
210
|
-
}, [someId]); // Or [] if effect doesn't need props or state
|
|
211
|
-
|
|
212
|
-
Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:U=" You returned: "+A,u("%s must not return anything besides a function, which is used for clean-up.%s",I,U)}}}S=S.next}while(S!==v)}}function Cde(r,o){if((o.flags&yn)!==Tt)switch(o.tag){case j:{var d=o.stateNode.passiveEffectDuration,p=o.memoizedProps,v=p.id,S=p.onPostCommit,_=NO(),A=o.alternate===null?"mount":"update";AO()&&(A="nested-update"),typeof S=="function"&&S(v,A,d,_);var I=o.return;e:for(;I!==null;){switch(I.tag){case y:var U=I.stateNode;U.passiveEffectDuration+=d;break e;case j:var $=I.stateNode;$.passiveEffectDuration+=d;break e}I=I.return}break}}}function Sde(r,o,d,p){if((d.flags&bl)!==Tt)switch(d.tag){case h:case z:case W:{if(!Za)if(d.mode&An)try{Hl(),rd(xa|ya,d)}finally{zl(d)}else rd(xa|ya,d);break}case g:{var v=d.stateNode;if(d.flags&yn&&!Za)if(o===null)if(d.type===d.elementType&&!Vf&&(v.props!==d.memoizedProps&&u("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Ut(d)||"instance"),v.state!==d.memoizedState&&u("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Ut(d)||"instance")),d.mode&An)try{Hl(),v.componentDidMount()}finally{zl(d)}else v.componentDidMount();else{var S=d.elementType===d.type?o.memoizedProps:Bs(d.type,o.memoizedProps),_=o.memoizedState;if(d.type===d.elementType&&!Vf&&(v.props!==d.memoizedProps&&u("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Ut(d)||"instance"),v.state!==d.memoizedState&&u("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Ut(d)||"instance")),d.mode&An)try{Hl(),v.componentDidUpdate(S,_,v.__reactInternalSnapshotBeforeUpdate)}finally{zl(d)}else v.componentDidUpdate(S,_,v.__reactInternalSnapshotBeforeUpdate)}var A=d.updateQueue;A!==null&&(d.type===d.elementType&&!Vf&&(v.props!==d.memoizedProps&&u("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Ut(d)||"instance"),v.state!==d.memoizedState&&u("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Ut(d)||"instance")),tO(d,A,v));break}case y:{var I=d.updateQueue;if(I!==null){var U=null;if(d.child!==null)switch(d.child.tag){case b:U=d.child.stateNode;break;case g:U=d.child.stateNode;break}tO(d,I,U)}break}case b:{var $=d.stateNode;if(o===null&&d.flags&yn){var re=d.type,te=d.memoizedProps;Ule($,re,te)}break}case T:break;case k:break;case j:{{var de=d.memoizedProps,ge=de.onCommit,be=de.onRender,nt=d.stateNode.effectDuration,Lt=NO(),Ct=o===null?"mount":"update";AO()&&(Ct="nested-update"),typeof be=="function"&&be(d.memoizedProps.id,Ct,d.actualDuration,d.treeBaseDuration,d.actualStartTime,Lt);{typeof ge=="function"&&ge(d.memoizedProps.id,Ct,nt,Lt),wfe(d);var bn=d.return;e:for(;bn!==null;){switch(bn.tag){case y:var mn=bn.stateNode;mn.effectDuration+=nt;break e;case j:var ie=bn.stateNode;ie.effectDuration+=nt;break e}bn=bn.return}}}break}case V:{Nde(r,d);break}case ce:case ae:case he:case ue:case Te:case Ee:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}Za||d.flags&Er&&gI(d)}function kde(r){switch(r.tag){case h:case z:case W:{if(r.mode&An)try{Hl(),pI(r,r.return)}finally{zl(r)}else pI(r,r.return);break}case g:{var o=r.stateNode;typeof o.componentDidMount=="function"&&vde(r,r.return,o),hI(r,r.return);break}case b:{hI(r,r.return);break}}}function Ede(r,o){for(var d=null,p=r;;){if(p.tag===b){if(d===null){d=p;try{var v=p.stateNode;o?Xle(v):Qle(p.stateNode,p.memoizedProps)}catch(_){lr(r,r.return,_)}}}else if(p.tag===T){if(d===null)try{var S=p.stateNode;o?Kle(S):eue(S,p.memoizedProps)}catch(_){lr(r,r.return,_)}}else if(!((p.tag===ue||p.tag===Te)&&p.memoizedState!==null&&p!==r)){if(p.child!==null){p.child.return=p,p=p.child;continue}}if(p===r)return;for(;p.sibling===null;){if(p.return===null||p.return===r)return;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}function gI(r){var o=r.ref;if(o!==null){var d=r.stateNode,p;switch(r.tag){case b:p=d;break;default:p=d}if(typeof o=="function"){var v;if(r.mode&An)try{Hl(),v=o(p)}finally{zl(r)}else v=o(p);typeof v=="function"&&u("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Ut(r))}else o.hasOwnProperty("current")||u("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",Ut(r)),o.current=p}}function _de(r){var o=r.alternate;o!==null&&(o.return=null),r.return=null}function vI(r){var o=r.alternate;o!==null&&(r.alternate=null,vI(o));{if(r.child=null,r.deletions=null,r.sibling=null,r.tag===b){var d=r.stateNode;d!==null&&Lue(d)}r.stateNode=null,r._debugOwner=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}}function Tde(r){for(var o=r.return;o!==null;){if(yI(o))return o;o=o.return}throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function yI(r){return r.tag===b||r.tag===y||r.tag===k}function xI(r){var o=r;e:for(;;){for(;o.sibling===null;){if(o.return===null||yI(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==b&&o.tag!==T&&o.tag!==ye;){if(o.flags&wr||o.child===null||o.tag===k)continue e;o.child.return=o,o=o.child}if(!(o.flags&wr))return o.stateNode}}function Rde(r){var o=Tde(r);switch(o.tag){case b:{var d=o.stateNode;o.flags&Xo&&(bL(d),o.flags&=~Xo);var p=xI(r);yx(r,p,d);break}case y:case k:{var v=o.stateNode.containerInfo,S=xI(r);vx(r,S,v);break}default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function vx(r,o,d){var p=r.tag,v=p===b||p===T;if(v){var S=r.stateNode;o?qle(d,S,o):Zle(d,S)}else if(p!==k){var _=r.child;if(_!==null){vx(_,o,d);for(var A=_.sibling;A!==null;)vx(A,o,d),A=A.sibling}}}function yx(r,o,d){var p=r.tag,v=p===b||p===T;if(v){var S=r.stateNode;o?Wle(d,S,o):$le(d,S)}else if(p!==k){var _=r.child;if(_!==null){yx(_,o,d);for(var A=_.sibling;A!==null;)yx(A,o,d),A=A.sibling}}}var Wa=null,Zs=!1;function Mde(r,o,d){{var p=o;e:for(;p!==null;){switch(p.tag){case b:{Wa=p.stateNode,Zs=!1;break e}case y:{Wa=p.stateNode.containerInfo,Zs=!0;break e}case k:{Wa=p.stateNode.containerInfo,Zs=!0;break e}}p=p.return}if(Wa===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");wI(r,o,d),Wa=null,Zs=!1}_de(d)}function ad(r,o,d){for(var p=d.child;p!==null;)wI(r,o,p),p=p.sibling}function wI(r,o,d){switch(Jm(d),d.tag){case b:Za||yh(d,o);case T:{{var p=Wa,v=Zs;Wa=null,ad(r,o,d),Wa=p,Zs=v,Wa!==null&&(Zs?Yle(Wa,d.stateNode):Gle(Wa,d.stateNode))}return}case ye:{Wa!==null&&(Zs?Jle(Wa,d.stateNode):M8(Wa,d.stateNode));return}case k:{{var S=Wa,_=Zs;Wa=d.stateNode.containerInfo,Zs=!0,ad(r,o,d),Wa=S,Zs=_}return}case h:case z:case H:case W:{if(!Za){var A=d.updateQueue;if(A!==null){var I=A.lastEffect;if(I!==null){var U=I.next,$=U;do{var re=$,te=re.destroy,de=re.tag;te!==void 0&&((de&jl)!==si?e9(d,o,te):(de&xa)!==si&&(Kd(d),d.mode&An?(Hl(),e9(d,o,te),zl(d)):e9(d,o,te),e0())),$=$.next}while($!==U)}}}ad(r,o,d);return}case g:{if(!Za){yh(d,o);var ge=d.stateNode;typeof ge.componentWillUnmount=="function"&&gx(d,o,ge)}ad(r,o,d);return}case he:{ad(r,o,d);return}case ue:{if(d.mode&on){var be=Za;Za=be||d.memoizedState!==null,ad(r,o,d),Za=be}else ad(r,o,d);break}default:{ad(r,o,d);return}}}function Ade(r){r.memoizedState}function Nde(r,o){var d=o.memoizedState;if(d===null){var p=o.alternate;if(p!==null){var v=p.memoizedState;if(v!==null){var S=v.dehydrated;S!==null&&mue(S)}}}}function bI(r){var o=r.updateQueue;if(o!==null){r.updateQueue=null;var d=r.stateNode;d===null&&(d=r.stateNode=new hde),o.forEach(function(p){var v=Tfe.bind(null,r,p);if(!d.has(p)){if(d.add(p),io)if(gh!==null&&vh!==null)C4(vh,gh);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");p.then(v,v)}})}}function Lde(r,o,d){gh=d,vh=r,Zn(o),CI(o,r),Zn(o),gh=null,vh=null}function Ws(r,o,d){var p=o.deletions;if(p!==null)for(var v=0;v<p.length;v++){var S=p[v];try{Mde(r,o,S)}catch(I){lr(S,o,I)}}var _=cl();if(o.subtreeFlags&wl)for(var A=o.child;A!==null;)Zn(A),CI(A,r),A=A.sibling;Zn(_)}function CI(r,o,d){var p=r.alternate,v=r.flags;switch(r.tag){case h:case z:case H:case W:{if(Ws(o,r),Ul(r),v&yn){try{$s(jl|ya,r,r.return),rd(jl|ya,r)}catch(zt){lr(r,r.return,zt)}if(r.mode&An){try{Hl(),$s(xa|ya,r,r.return)}catch(zt){lr(r,r.return,zt)}zl(r)}else try{$s(xa|ya,r,r.return)}catch(zt){lr(r,r.return,zt)}}return}case g:{Ws(o,r),Ul(r),v&Er&&p!==null&&yh(p,p.return);return}case b:{Ws(o,r),Ul(r),v&Er&&p!==null&&yh(p,p.return);{if(r.flags&Xo){var S=r.stateNode;try{bL(S)}catch(zt){lr(r,r.return,zt)}}if(v&yn){var _=r.stateNode;if(_!=null){var A=r.memoizedProps,I=p!==null?p.memoizedProps:A,U=r.type,$=r.updateQueue;if(r.updateQueue=null,$!==null)try{Ble(_,$,U,I,A,r)}catch(zt){lr(r,r.return,zt)}}}}return}case T:{if(Ws(o,r),Ul(r),v&yn){if(r.stateNode===null)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var re=r.stateNode,te=r.memoizedProps,de=p!==null?p.memoizedProps:te;try{Vle(re,de,te)}catch(zt){lr(r,r.return,zt)}}return}case y:{if(Ws(o,r),Ul(r),v&yn&&p!==null){var ge=p.memoizedState;if(ge.isDehydrated)try{hue(o.containerInfo)}catch(zt){lr(r,r.return,zt)}}return}case k:{Ws(o,r),Ul(r);return}case V:{Ws(o,r),Ul(r);var be=r.child;if(be.flags&Hr){var nt=be.stateNode,Lt=be.memoizedState,Ct=Lt!==null;if(nt.isHidden=Ct,Ct){var bn=be.alternate!==null&&be.alternate.memoizedState!==null;bn||ffe()}}if(v&yn){try{Ade(r)}catch(zt){lr(r,r.return,zt)}bI(r)}return}case ue:{var mn=p!==null&&p.memoizedState!==null;if(r.mode&on){var ie=Za;Za=ie||mn,Ws(o,r),Za=ie}else Ws(o,r);if(Ul(r),v&Hr){var Ce=r.stateNode,se=r.memoizedState,Fe=se!==null,it=r;if(Ce.isHidden=Fe,Fe&&!mn&&(it.mode&on)!==Rt){ht=it;for(var rt=it.child;rt!==null;)ht=rt,Ide(rt),rt=rt.sibling}Ede(it,Fe)}return}case ce:{Ws(o,r),Ul(r),v&yn&&bI(r);return}case he:return;default:{Ws(o,r),Ul(r);return}}}function Ul(r){var o=r.flags;if(o&wr){try{Rde(r)}catch(d){lr(r,r.return,d)}r.flags&=~wr}o&ro&&(r.flags&=~ro)}function Ode(r,o,d){gh=d,vh=o,ht=r,SI(r,o,d),gh=null,vh=null}function SI(r,o,d){for(var p=(r.mode&on)!==Rt;ht!==null;){var v=ht,S=v.child;if(v.tag===ue&&p){var _=v.memoizedState!==null,A=_||Q3;if(A){xx(r,o,d);continue}else{var I=v.alternate,U=I!==null&&I.memoizedState!==null,$=U||Za,re=Q3,te=Za;Q3=A,Za=$,Za&&!te&&(ht=v,Dde(v));for(var de=S;de!==null;)ht=de,SI(de,o,d),de=de.sibling;ht=v,Q3=re,Za=te,xx(r,o,d);continue}}(v.subtreeFlags&bl)!==Tt&&S!==null?(S.return=v,ht=S):xx(r,o,d)}}function xx(r,o,d){for(;ht!==null;){var p=ht;if((p.flags&bl)!==Tt){var v=p.alternate;Zn(p);try{Sde(o,v,p,d)}catch(_){lr(p,p.return,_)}sr()}if(p===r){ht=null;return}var S=p.sibling;if(S!==null){S.return=p.return,ht=S;return}ht=p.return}}function Ide(r){for(;ht!==null;){var o=ht,d=o.child;switch(o.tag){case h:case z:case H:case W:{if(o.mode&An)try{Hl(),$s(xa,o,o.return)}finally{zl(o)}else $s(xa,o,o.return);break}case g:{yh(o,o.return);var p=o.stateNode;typeof p.componentWillUnmount=="function"&&gx(o,o.return,p);break}case b:{yh(o,o.return);break}case ue:{var v=o.memoizedState!==null;if(v){kI(r);continue}break}}d!==null?(d.return=o,ht=d):kI(r)}}function kI(r){for(;ht!==null;){var o=ht;if(o===r){ht=null;return}var d=o.sibling;if(d!==null){d.return=o.return,ht=d;return}ht=o.return}}function Dde(r){for(;ht!==null;){var o=ht,d=o.child;if(o.tag===ue){var p=o.memoizedState!==null;if(p){EI(r);continue}}d!==null?(d.return=o,ht=d):EI(r)}}function EI(r){for(;ht!==null;){var o=ht;Zn(o);try{kde(o)}catch(p){lr(o,o.return,p)}if(sr(),o===r){ht=null;return}var d=o.sibling;if(d!==null){d.return=o.return,ht=d;return}ht=o.return}}function jde(r,o,d,p){ht=o,Pde(o,r,d,p)}function Pde(r,o,d,p){for(;ht!==null;){var v=ht,S=v.child;(v.subtreeFlags&Ms)!==Tt&&S!==null?(S.return=v,ht=S):Fde(r,o,d,p)}}function Fde(r,o,d,p){for(;ht!==null;){var v=ht;if((v.flags&no)!==Tt){Zn(v);try{zde(o,v,d,p)}catch(_){lr(v,v.return,_)}sr()}if(v===r){ht=null;return}var S=v.sibling;if(S!==null){S.return=v.return,ht=S;return}ht=v.return}}function zde(r,o,d,p){switch(o.tag){case h:case z:case W:{if(o.mode&An){F7();try{rd(Va|ya,o)}finally{P7(o)}}else rd(Va|ya,o);break}}}function Hde(r){ht=r,Ude()}function Ude(){for(;ht!==null;){var r=ht,o=r.child;if((ht.flags&Jo)!==Tt){var d=r.deletions;if(d!==null){for(var p=0;p<d.length;p++){var v=d[p];ht=v,$de(v,r)}{var S=r.alternate;if(S!==null){var _=S.child;if(_!==null){S.child=null;do{var A=_.sibling;_.sibling=null,_=A}while(_!==null)}}}ht=r}}(r.subtreeFlags&Ms)!==Tt&&o!==null?(o.return=r,ht=o):Bde()}}function Bde(){for(;ht!==null;){var r=ht;(r.flags&no)!==Tt&&(Zn(r),Vde(r),sr());var o=r.sibling;if(o!==null){o.return=r.return,ht=o;return}ht=r.return}}function Vde(r){switch(r.tag){case h:case z:case W:{r.mode&An?(F7(),$s(Va|ya,r,r.return),P7(r)):$s(Va|ya,r,r.return);break}}}function $de(r,o){for(;ht!==null;){var d=ht;Zn(d),Wde(d,o),sr();var p=d.child;p!==null?(p.return=d,ht=p):Zde(r)}}function Zde(r){for(;ht!==null;){var o=ht,d=o.sibling,p=o.return;if(vI(o),o===r){ht=null;return}if(d!==null){d.return=p,ht=d;return}ht=p}}function Wde(r,o){switch(r.tag){case h:case z:case W:{r.mode&An?(F7(),$s(Va,r,o),P7(r)):$s(Va,r,o);break}}}function qde(r){switch(r.tag){case h:case z:case W:{try{rd(xa|ya,r)}catch(d){lr(r,r.return,d)}break}case g:{var o=r.stateNode;try{o.componentDidMount()}catch(d){lr(r,r.return,d)}break}}}function Gde(r){switch(r.tag){case h:case z:case W:{try{rd(Va|ya,r)}catch(o){lr(r,r.return,o)}break}}}function Yde(r){switch(r.tag){case h:case z:case W:{try{$s(xa|ya,r,r.return)}catch(d){lr(r,r.return,d)}break}case g:{var o=r.stateNode;typeof o.componentWillUnmount=="function"&&gx(r,r.return,o);break}}}function Jde(r){switch(r.tag){case h:case z:case W:try{$s(Va|ya,r,r.return)}catch(o){lr(r,r.return,o)}}}if(typeof Symbol=="function"&&Symbol.for){var d4=Symbol.for;d4("selector.component"),d4("selector.has_pseudo_class"),d4("selector.role"),d4("selector.test_id"),d4("selector.text")}var Xde=[];function Kde(){Xde.forEach(function(r){return r()})}var Qde=n.ReactCurrentActQueue;function efe(r){{var o=typeof IS_REACT_ACT_ENVIRONMENT!="undefined"?IS_REACT_ACT_ENVIRONMENT:void 0,d=typeof jest!="undefined";return d&&o!==!1}}function _I(){{var r=typeof IS_REACT_ACT_ENVIRONMENT!="undefined"?IS_REACT_ACT_ENVIRONMENT:void 0;return!r&&Qde.current!==null&&u("The current testing environment is not configured to support act(...)"),r}}var tfe=Math.ceil,wx=n.ReactCurrentDispatcher,bx=n.ReactCurrentOwner,qa=n.ReactCurrentBatchConfig,qs=n.ReactCurrentActQueue,Ca=0,TI=1,Ga=2,us=4,Uu=0,f4=1,$f=2,t9=3,p4=4,RI=5,Cx=6,wn=Ca,Oo=null,Pr=null,Sa=Oe,Bl=Oe,Sx=Gc(Oe),ka=Uu,h4=null,n9=Oe,m4=Oe,r9=Oe,g4=null,li=null,kx=0,MI=500,AI=1/0,nfe=500,Bu=null;function v4(){AI=ea()+nfe}function NI(){return AI}var a9=!1,Ex=null,xh=null,Zf=!1,od=null,y4=Oe,_x=[],Tx=null,rfe=50,x4=0,Rx=null,Mx=!1,o9=!1,afe=50,wh=0,i9=null,w4=er,s9=Oe,LI=!1;function l9(){return Oo}function Io(){return(wn&(Ga|us))!==Ca?ea():(w4!==er||(w4=ea()),w4)}function id(r){var o=r.mode;if((o&on)===Rt)return Ft;if((wn&Ga)!==Ca&&Sa!==Oe)return ff(Sa);var d=Que()!==Kue;if(d){if(qa.transition!==null){var p=qa.transition;p._updatedFibers||(p._updatedFibers=new Set),p._updatedFibers.add(r)}return s9===Tn&&(s9=l0()),s9}var v=ri();if(v!==Tn)return v;var S=Ple();return S}function ofe(r){var o=r.mode;return(o&on)===Rt?Ft:fv()}function Ea(r,o,d,p){Mfe(),LI&&u("useInsertionEffect must not schedule updates."),Mx&&(o9=!0),Pc(r,d,p),(wn&Ga)!==Oe&&r===Oo?Lfe(o):(io&&mf(r,o,d),Ofe(o),r===Oo&&((wn&Ga)===Ca&&(m4=Xt(m4,d)),ka===p4&&sd(r,Sa)),ui(r,p),d===Ft&&wn===Ca&&(o.mode&on)===Rt&&!qs.isBatchingLegacy&&(v4(),LL()))}function ife(r,o,d){var p=r.current;p.lanes=o,Pc(r,o,d),ui(r,d)}function sfe(r){return(wn&Ga)!==Ca}function ui(r,o){var d=r.callbackNode;Mp(r,o);var p=Rp(r,r===Oo?Sa:Oe);if(p===Oe){d!==null&&GI(d),r.callbackNode=null,r.callbackPriority=Tn;return}var v=_l(p),S=r.callbackPriority;if(S===v&&!(qs.current!==null&&d!==jx)){d==null&&S!==Ft&&u("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}d!=null&&GI(d);var _;if(v===Ft)r.tag===Yc?(qs.isBatchingLegacy!==null&&(qs.didScheduleLegacyUpdate=!0),Due(DI.bind(null,r))):NL(DI.bind(null,r)),qs.current!==null?qs.current.push(Jc):zle(function(){(wn&(Ga|us))===Ca&&Jc()}),_=null;else{var A;switch(xv(p)){case Pa:A=Xd;break;case Qi:A=Cl;break;case ti:A=As;break;case ni:A=mu;break;default:A=As;break}_=Px(A,OI.bind(null,r))}r.callbackPriority=v,r.callbackNode=_}function OI(r,o){if(Ece(),w4=er,s9=Oe,(wn&(Ga|us))!==Ca)throw new Error("Should not already be working.");var d=r.callbackNode,p=$u();if(p&&r.callbackNode!==d)return null;var v=Rp(r,r===Oo?Sa:Oe);if(v===Oe)return null;var S=!Np(r,v)&&!dv(r,v)&&!o,_=S?vfe(r,v):c9(r,v);if(_!==Uu){if(_===$f){var A=Ap(r);A!==Oe&&(v=A,_=Ax(r,A))}if(_===f4){var I=h4;throw Wf(r,Oe),sd(r,v),ui(r,ea()),I}if(_===Cx)sd(r,v);else{var U=!Np(r,v),$=r.current.alternate;if(U&&!ufe($)){if(_=c9(r,v),_===$f){var re=Ap(r);re!==Oe&&(v=re,_=Ax(r,re))}if(_===f4){var te=h4;throw Wf(r,Oe),sd(r,v),ui(r,ea()),te}}r.finishedWork=$,r.finishedLanes=v,lfe(r,_,v)}}return ui(r,ea()),r.callbackNode===d?OI.bind(null,r):null}function Ax(r,o){var d=g4;if(Ip(r)){var p=Wf(r,o);p.flags|=Ra,Rue(r.containerInfo)}var v=c9(r,o);if(v!==$f){var S=li;li=d,S!==null&&II(S)}return v}function II(r){li===null?li=r:li.push.apply(li,r)}function lfe(r,o,d){switch(o){case Uu:case f4:throw new Error("Root did not complete. This is a bug in React.");case $f:{qf(r,li,Bu);break}case t9:{if(sd(r,d),_u(d)&&!YI()){var p=kx+MI-ea();if(p>10){var v=Rp(r,Oe);if(v!==Oe)break;var S=r.suspendedLanes;if(!Tu(S,d)){Io(),Lp(r,S);break}r.timeoutHandle=T8(qf.bind(null,r,li,Bu),p);break}}qf(r,li,Bu);break}case p4:{if(sd(r,d),i0(d))break;if(!YI()){var _=Mi(r,d),A=_,I=ea()-A,U=Rfe(I)-I;if(U>10){r.timeoutHandle=T8(qf.bind(null,r,li,Bu),U);break}}qf(r,li,Bu);break}case RI:{qf(r,li,Bu);break}default:throw new Error("Unknown root exit status.")}}function ufe(r){for(var o=r;;){if(o.flags&Lc){var d=o.updateQueue;if(d!==null){var p=d.stores;if(p!==null)for(var v=0;v<p.length;v++){var S=p[v],_=S.getSnapshot,A=S.value;try{if(!je(_(),A))return!1}catch(U){return!1}}}}var I=o.child;if(o.subtreeFlags&Lc&&I!==null){I.return=o,o=I;continue}if(o===r)return!0;for(;o.sibling===null;){if(o.return===null||o.return===r)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}return!0}function sd(r,o){o=pf(o,r9),o=pf(o,m4),mv(r,o)}function DI(r){if(_ce(),(wn&(Ga|us))!==Ca)throw new Error("Should not already be working.");$u();var o=Rp(r,Oe);if(!lo(o,Ft))return ui(r,ea()),null;var d=c9(r,o);if(r.tag!==Yc&&d===$f){var p=Ap(r);p!==Oe&&(o=p,d=Ax(r,p))}if(d===f4){var v=h4;throw Wf(r,Oe),sd(r,o),ui(r,ea()),v}if(d===Cx)throw new Error("Root did not complete. This is a bug in React.");var S=r.current.alternate;return r.finishedWork=S,r.finishedLanes=o,qf(r,li,Bu),ui(r,ea()),null}function cfe(r,o){o!==Oe&&(Op(r,Xt(o,Ft)),ui(r,ea()),(wn&(Ga|us))===Ca&&(v4(),Jc()))}function Nx(r,o){var d=wn;wn|=TI;try{return r(o)}finally{wn=d,wn===Ca&&!qs.isBatchingLegacy&&(v4(),LL())}}function dfe(r,o,d,p,v){var S=ri(),_=qa.transition;try{return qa.transition=null,$r(Pa),r(o,d,p,v)}finally{$r(S),qa.transition=_,wn===Ca&&v4()}}function Vu(r){od!==null&&od.tag===Yc&&(wn&(Ga|us))===Ca&&$u();var o=wn;wn|=TI;var d=qa.transition,p=ri();try{return qa.transition=null,$r(Pa),r?r():void 0}finally{$r(p),qa.transition=d,wn=o,(wn&(Ga|us))===Ca&&Jc()}}function jI(){return(wn&(Ga|us))!==Ca}function u9(r,o){ho(Sx,Bl,r),Bl=Xt(Bl,o)}function Lx(r){Bl=Sx.current,po(Sx,r)}function Wf(r,o){r.finishedWork=null,r.finishedLanes=Oe;var d=r.timeoutHandle;if(d!==R8&&(r.timeoutHandle=R8,Fle(d)),Pr!==null)for(var p=Pr.return;p!==null;){var v=p.alternate;dI(v,p),p=p.return}Oo=r;var S=Gf(r.current,null);return Pr=S,Sa=Bl=o,ka=Uu,h4=null,n9=Oe,m4=Oe,r9=Oe,g4=null,li=null,ice(),zs.discardPendingWarnings(),S}function PI(r,o){do{var d=Pr;try{if(x3(),sO(),sr(),bx.current=null,d===null||d.return===null){ka=f4,h4=o,Pr=null;return}if(ze&&d.mode&An&&G3(d,!0),Z)if(Mo(),o!==null&&typeof o=="object"&&typeof o.then=="function"){var p=o;Ki(d,p,Sa)}else Qd(d,o,Sa);Dce(r,d.return,d,o,Sa),UI(d)}catch(v){o=v,Pr===d&&d!==null?(d=d.return,Pr=d):d=Pr;continue}return}while(!0)}function FI(){var r=wx.current;return wx.current=V3,r===null?V3:r}function zI(r){wx.current=r}function ffe(){kx=ea()}function b4(r){n9=Xt(r,n9)}function pfe(){ka===Uu&&(ka=t9)}function Ox(){(ka===Uu||ka===t9||ka===$f)&&(ka=p4),Oo!==null&&(df(n9)||df(m4))&&sd(Oo,Sa)}function hfe(r){ka!==p4&&(ka=$f),g4===null?g4=[r]:g4.push(r)}function mfe(){return ka===Uu}function c9(r,o){var d=wn;wn|=Ga;var p=FI();if(Oo!==r||Sa!==o){if(io){var v=r.memoizedUpdaters;v.size>0&&(C4(r,Sa),v.clear()),gv(r,o)}Bu=f0(),Wf(r,o)}xu(o);do try{gfe();break}catch(S){PI(r,S)}while(!0);if(x3(),wn=d,zI(p),Pr!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return cp(),Oo=null,Sa=Oe,ka}function gfe(){for(;Pr!==null;)HI(Pr)}function vfe(r,o){var d=wn;wn|=Ga;var p=FI();if(Oo!==r||Sa!==o){if(io){var v=r.memoizedUpdaters;v.size>0&&(C4(r,Sa),v.clear()),gv(r,o)}Bu=f0(),v4(),Wf(r,o)}xu(o);do try{yfe();break}catch(S){PI(r,S)}while(!0);return x3(),zI(p),wn=d,Pr!==null?(sv(),Uu):(cp(),Oo=null,Sa=Oe,ka)}function yfe(){for(;Pr!==null&&!Zm();)HI(Pr)}function HI(r){var o=r.alternate;Zn(r);var d;(r.mode&An)!==Rt?(j7(r),d=Ix(o,r,Bl),G3(r,!0)):d=Ix(o,r,Bl),sr(),r.memoizedProps=r.pendingProps,d===null?UI(r):Pr=d,bx.current=null}function UI(r){var o=r;do{var d=o.alternate,p=o.return;if((o.flags&Jd)===Tt){Zn(o);var v=void 0;if((o.mode&An)===Rt?v=cI(d,o,Bl):(j7(o),v=cI(d,o,Bl),G3(o,!1)),sr(),v!==null){Pr=v;return}}else{var S=pde(d,o);if(S!==null){S.flags&=tv,Pr=S;return}if((o.mode&An)!==Rt){G3(o,!1);for(var _=o.actualDuration,A=o.child;A!==null;)_+=A.actualDuration,A=A.sibling;o.actualDuration=_}if(p!==null)p.flags|=Jd,p.subtreeFlags=Tt,p.deletions=null;else{ka=Cx,Pr=null;return}}var I=o.sibling;if(I!==null){Pr=I;return}o=p,Pr=o}while(o!==null);ka===Uu&&(ka=RI)}function qf(r,o,d){var p=ri(),v=qa.transition;try{qa.transition=null,$r(Pa),xfe(r,o,d,p)}finally{qa.transition=v,$r(p)}return null}function xfe(r,o,d,p){do $u();while(od!==null);if(Afe(),(wn&(Ga|us))!==Ca)throw new Error("Should not already be working.");var v=r.finishedWork,S=r.finishedLanes;if(Xm(S),v===null)return Km(),null;if(S===Oe&&u("root.finishedLanes should not be empty during a commit. This is a bug in React."),r.finishedWork=null,r.finishedLanes=Oe,v===r.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");r.callbackNode=null,r.callbackPriority=Tn;var _=Xt(v.lanes,v.childLanes);c0(r,_),r===Oo&&(Oo=null,Pr=null,Sa=Oe),((v.subtreeFlags&Ms)!==Tt||(v.flags&Ms)!==Tt)&&(Zf||(Zf=!0,Tx=d,Px(As,function(){return $u(),null})));var A=(v.subtreeFlags&(xl|wl|bl|Ms))!==Tt,I=(v.flags&(xl|wl|bl|Ms))!==Tt;if(A||I){var U=qa.transition;qa.transition=null;var $=ri();$r(Pa);var re=wn;wn|=us,bx.current=null,yde(r,v),LO(),Lde(r,v,S),Nle(r.containerInfo),r.current=v,ef(S),Ode(v,r,S),tf(),Wm(),wn=re,$r($),qa.transition=U}else r.current=v,LO();var te=Zf;if(Zf?(Zf=!1,od=r,y4=S):(wh=0,i9=null),_=r.pendingLanes,_===Oe&&(xh=null),te||ZI(r.current,!1),Gm(v.stateNode,p),io&&r.memoizedUpdaters.clear(),Kde(),ui(r,ea()),o!==null)for(var de=r.onRecoverableError,ge=0;ge<o.length;ge++){var be=o[ge],nt=be.stack,Lt=be.digest;de(be.value,{componentStack:nt,digest:Lt})}if(a9){a9=!1;var Ct=Ex;throw Ex=null,Ct}return lo(y4,Ft)&&r.tag!==Yc&&$u(),_=r.pendingLanes,lo(_,Ft)?(kce(),r===Rx?x4++:(x4=0,Rx=r)):x4=0,Jc(),Km(),null}function $u(){if(od!==null){var r=xv(y4),o=vf(ti,r),d=qa.transition,p=ri();try{return qa.transition=null,$r(o),bfe()}finally{$r(p),qa.transition=d}}return!1}function wfe(r){_x.push(r),Zf||(Zf=!0,Px(As,function(){return $u(),null}))}function bfe(){if(od===null)return!1;var r=Tx;Tx=null;var o=od,d=y4;if(od=null,y4=Oe,(wn&(Ga|us))!==Ca)throw new Error("Cannot flush passive effects while already rendering.");Mx=!0,o9=!1,yu(d);var p=wn;wn|=us,Hde(o.current),jde(o,o.current,d,r);{var v=_x;_x=[];for(var S=0;S<v.length;S++){var _=v[S];Cde(o,_)}}t0(),ZI(o.current,!0),wn=p,Jc(),o9?o===i9?wh++:(wh=0,i9=o):wh=0,Mx=!1,o9=!1,Ym(o);{var A=o.current.stateNode;A.effectDuration=0,A.passiveEffectDuration=0}return!0}function BI(r){return xh!==null&&xh.has(r)}function Cfe(r){xh===null?xh=new Set([r]):xh.add(r)}function Sfe(r){a9||(a9=!0,Ex=r)}var kfe=Sfe;function VI(r,o,d){var p=Bf(d,o),v=HO(r,p,Ft),S=Kc(r,v,Ft),_=Io();S!==null&&(Pc(S,Ft,_),ui(S,_))}function lr(r,o,d){if(mde(d),S4(!1),r.tag===y){VI(r,r,d);return}var p=null;for(p=o;p!==null;){if(p.tag===y){VI(p,r,d);return}else if(p.tag===g){var v=p.type,S=p.stateNode;if(typeof v.getDerivedStateFromError=="function"||typeof S.componentDidCatch=="function"&&!BI(S)){var _=Bf(d,r),A=ex(p,_,Ft),I=Kc(p,A,Ft),U=Io();I!==null&&(Pc(I,Ft,U),ui(I,U));return}}p=p.return}u(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
213
|
-
|
|
214
|
-
Error message:
|
|
215
|
-
|
|
216
|
-
%s`,d)}function Efe(r,o,d){var p=r.pingCache;p!==null&&p.delete(o);var v=Io();Lp(r,d),Ife(r),Oo===r&&Tu(Sa,d)&&(ka===p4||ka===t9&&_u(Sa)&&ea()-kx<MI?Wf(r,Oe):r9=Xt(r9,d)),ui(r,v)}function $I(r,o){o===Tn&&(o=ofe(r));var d=Io(),p=ii(r,o);p!==null&&(Pc(p,o,d),ui(p,d))}function _fe(r){var o=r.memoizedState,d=Tn;o!==null&&(d=o.retryLane),$I(r,d)}function Tfe(r,o){var d=Tn,p;switch(r.tag){case V:p=r.stateNode;var v=r.memoizedState;v!==null&&(d=v.retryLane);break;case ce:p=r.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}p!==null&&p.delete(o),$I(r,d)}function Rfe(r){return r<120?120:r<480?480:r<1080?1080:r<1920?1920:r<3e3?3e3:r<4320?4320:tfe(r/1960)*1960}function Mfe(){if(x4>rfe)throw x4=0,Rx=null,new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");wh>afe&&(wh=0,i9=null,u("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."))}function Afe(){zs.flushLegacyContextWarning(),zs.flushPendingUnsafeLifecycleWarnings()}function ZI(r,o){Zn(r),d9(r,yl,Yde),o&&d9(r,Yi,Jde),d9(r,yl,qde),o&&d9(r,Yi,Gde),sr()}function d9(r,o,d){for(var p=r,v=null;p!==null;){var S=p.subtreeFlags&o;p!==v&&p.child!==null&&S!==Tt?p=p.child:((p.flags&o)!==Tt&&d(p),p.sibling!==null?p=p.sibling:p=v=p.return)}}var f9=null;function WI(r){{if((wn&Ga)!==Ca||!(r.mode&on))return;var o=r.tag;if(o!==x&&o!==y&&o!==g&&o!==h&&o!==z&&o!==H&&o!==W)return;var d=Ut(r)||"ReactComponent";if(f9!==null){if(f9.has(d))return;f9.add(d)}else f9=new Set([d]);var p=pa;try{Zn(r),u("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")}finally{p?Zn(r):sr()}}}var Ix;{var Nfe=null;Ix=function(r,o,d){var p=eD(Nfe,o);try{return oI(r,o,d)}catch(S){if(Vue()||S!==null&&typeof S=="object"&&typeof S.then=="function")throw S;if(x3(),sO(),dI(r,o),eD(o,p),o.mode&An&&j7(o),vl(null,oI,null,r,o,d),Ts()){var v=Yd();typeof v=="object"&&v!==null&&v._suppressLogging&&typeof S=="object"&&S!==null&&!S._suppressLogging&&(S._suppressLogging=!0)}throw S}}}var qI=!1,Dx;Dx=new Set;function Lfe(r){if(Bi&&!bce())switch(r.tag){case h:case z:case W:{var o=Pr&&Ut(Pr)||"Unknown",d=o;if(!Dx.has(d)){Dx.add(d);var p=Ut(r)||"Unknown";u("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render",p,o,o)}break}case g:{qI||(u("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),qI=!0);break}}}function C4(r,o){if(io){var d=r.memoizedUpdaters;d.forEach(function(p){mf(r,p,o)})}}var jx={};function Px(r,o){{var d=qs.current;return d!==null?(d.push(o),jx):$m(r,o)}}function GI(r){if(r!==jx)return rv(r)}function YI(){return qs.current!==null}function Ofe(r){{if(r.mode&on){if(!_I())return}else if(!efe()||wn!==Ca||r.tag!==h&&r.tag!==z&&r.tag!==W)return;if(qs.current===null){var o=pa;try{Zn(r),u(`An update to %s inside a test was not wrapped in act(...).
|
|
217
|
-
|
|
218
|
-
When testing, code that causes React state updates should be wrapped into act(...):
|
|
219
|
-
|
|
220
|
-
act(() => {
|
|
221
|
-
/* fire events that update state */
|
|
222
|
-
});
|
|
223
|
-
/* assert on the output */
|
|
224
|
-
|
|
225
|
-
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`,Ut(r))}finally{o?Zn(r):sr()}}}}function Ife(r){r.tag!==Yc&&_I()&&qs.current===null&&u(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
226
|
-
|
|
227
|
-
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
228
|
-
|
|
229
|
-
act(() => {
|
|
230
|
-
/* finish loading suspended data */
|
|
231
|
-
});
|
|
232
|
-
/* assert on the output */
|
|
233
|
-
|
|
234
|
-
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`)}function S4(r){LI=r}var cs=null,bh=null,Dfe=function(r){cs=r};function Ch(r){{if(cs===null)return r;var o=cs(r);return o===void 0?r:o.current}}function Fx(r){return Ch(r)}function zx(r){{if(cs===null)return r;var o=cs(r);if(o===void 0){if(r!=null&&typeof r.render=="function"){var d=Ch(r.render);if(r.render!==d){var p={$$typeof:Le,render:d};return r.displayName!==void 0&&(p.displayName=r.displayName),p}}return r}return o.current}}function JI(r,o){{if(cs===null)return!1;var d=r.elementType,p=o.type,v=!1,S=typeof p=="object"&&p!==null?p.$$typeof:null;switch(r.tag){case g:{typeof p=="function"&&(v=!0);break}case h:{(typeof p=="function"||S===Bt)&&(v=!0);break}case z:{(S===Le||S===Bt)&&(v=!0);break}case H:case W:{(S===Gt||S===Bt)&&(v=!0);break}default:return!1}if(v){var _=cs(d);if(_!==void 0&&_===cs(p))return!0}return!1}}function XI(r){{if(cs===null||typeof WeakSet!="function")return;bh===null&&(bh=new WeakSet),bh.add(r)}}var jfe=function(r,o){{if(cs===null)return;var d=o.staleFamilies,p=o.updatedFamilies;$u(),Vu(function(){Hx(r.current,p,d)})}},Pfe=function(r,o){{if(r.context!==Li)return;$u(),Vu(function(){k4(o,r,null,null)})}};function Hx(r,o,d){{var p=r.alternate,v=r.child,S=r.sibling,_=r.tag,A=r.type,I=null;switch(_){case h:case W:case g:I=A;break;case z:I=A.render;break}if(cs===null)throw new Error("Expected resolveFamily to be set during hot reload.");var U=!1,$=!1;if(I!==null){var re=cs(I);re!==void 0&&(d.has(re)?$=!0:o.has(re)&&(_===g?$=!0:U=!0))}if(bh!==null&&(bh.has(r)||p!==null&&bh.has(p))&&($=!0),$&&(r._debugNeedsRemount=!0),$||U){var te=ii(r,Ft);te!==null&&Ea(te,r,Ft,er)}v!==null&&!$&&Hx(v,o,d),S!==null&&Hx(S,o,d)}}var Ffe=function(r,o){{var d=new Set,p=new Set(o.map(function(v){return v.current}));return Ux(r.current,p,d),d}};function Ux(r,o,d){{var p=r.child,v=r.sibling,S=r.tag,_=r.type,A=null;switch(S){case h:case W:case g:A=_;break;case z:A=_.render;break}var I=!1;A!==null&&o.has(A)&&(I=!0),I?zfe(r,d):p!==null&&Ux(p,o,d),v!==null&&Ux(v,o,d)}}function zfe(r,o){{var d=Hfe(r,o);if(d)return;for(var p=r;;){switch(p.tag){case b:o.add(p.stateNode);return;case k:o.add(p.stateNode.containerInfo);return;case y:o.add(p.stateNode.containerInfo);return}if(p.return===null)throw new Error("Expected to reach root first.");p=p.return}}}function Hfe(r,o){for(var d=r,p=!1;;){if(d.tag===b)p=!0,o.add(d.stateNode);else if(d.child!==null){d.child.return=d,d=d.child;continue}if(d===r)return p;for(;d.sibling===null;){if(d.return===null||d.return===r)return p;d=d.return}d.sibling.return=d.return,d=d.sibling}return!1}var Bx;{Bx=!1;try{var KI=Object.preventExtensions({})}catch(r){Bx=!0}}function Ufe(r,o,d,p){this.tag=r,this.key=d,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=o,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=p,this.flags=Tt,this.subtreeFlags=Tt,this.deletions=null,this.lanes=Oe,this.childLanes=Oe,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,!Bx&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var Oi=function(r,o,d,p){return new Ufe(r,o,d,p)};function Vx(r){var o=r.prototype;return!!(o&&o.isReactComponent)}function Bfe(r){return typeof r=="function"&&!Vx(r)&&r.defaultProps===void 0}function Vfe(r){if(typeof r=="function")return Vx(r)?g:h;if(r!=null){var o=r.$$typeof;if(o===Le)return z;if(o===Gt)return H}return x}function Gf(r,o){var d=r.alternate;d===null?(d=Oi(r.tag,o,r.key,r.mode),d.elementType=r.elementType,d.type=r.type,d.stateNode=r.stateNode,d._debugSource=r._debugSource,d._debugOwner=r._debugOwner,d._debugHookTypes=r._debugHookTypes,d.alternate=r,r.alternate=d):(d.pendingProps=o,d.type=r.type,d.flags=Tt,d.subtreeFlags=Tt,d.deletions=null,d.actualDuration=0,d.actualStartTime=-1),d.flags=r.flags&Ur,d.childLanes=r.childLanes,d.lanes=r.lanes,d.child=r.child,d.memoizedProps=r.memoizedProps,d.memoizedState=r.memoizedState,d.updateQueue=r.updateQueue;var p=r.dependencies;switch(d.dependencies=p===null?null:{lanes:p.lanes,firstContext:p.firstContext},d.sibling=r.sibling,d.index=r.index,d.ref=r.ref,d.selfBaseDuration=r.selfBaseDuration,d.treeBaseDuration=r.treeBaseDuration,d._debugNeedsRemount=r._debugNeedsRemount,d.tag){case x:case h:case W:d.type=Ch(r.type);break;case g:d.type=Fx(r.type);break;case z:d.type=zx(r.type);break}return d}function $fe(r,o){r.flags&=Ur|wr;var d=r.alternate;if(d===null)r.childLanes=Oe,r.lanes=o,r.child=null,r.subtreeFlags=Tt,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null,r.selfBaseDuration=0,r.treeBaseDuration=0;else{r.childLanes=d.childLanes,r.lanes=d.lanes,r.child=d.child,r.subtreeFlags=Tt,r.deletions=null,r.memoizedProps=d.memoizedProps,r.memoizedState=d.memoizedState,r.updateQueue=d.updateQueue,r.type=d.type;var p=d.dependencies;r.dependencies=p===null?null:{lanes:p.lanes,firstContext:p.firstContext},r.selfBaseDuration=d.selfBaseDuration,r.treeBaseDuration=d.treeBaseDuration}return r}function Zfe(r,o,d){var p;return r===u3?(p=on,o===!0&&(p|=Gn,p|=Nn)):p=Rt,io&&(p|=An),Oi(y,null,null,p)}function $x(r,o,d,p,v,S){var _=x,A=r;if(typeof r=="function")Vx(r)?(_=g,A=Fx(A)):A=Ch(A);else if(typeof r=="string")_=b;else e:switch(r){case Oa:return ld(d.children,v,S,o);case Ar:_=N,v|=Gn,(v&on)!==Rt&&(v|=Nn);break;case ko:return Wfe(d,v,S,o);case Qe:return qfe(d,v,S,o);case ut:return Gfe(d,v,S,o);case Nr:return QI(d,v,S,o);case nr:case un:case ir:case fa:case an:default:{if(typeof r=="object"&&r!==null)switch(r.$$typeof){case tr:_=P;break e;case J:_=O;break e;case Le:_=z,A=zx(A);break e;case Gt:_=H;break e;case Bt:_=G,A=null;break e}var I="";{(r===void 0||typeof r=="object"&&r!==null&&Object.keys(r).length===0)&&(I+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var U=p?Ut(p):null;U&&(I+=`
|
|
235
|
-
|
|
236
|
-
Check the render method of \``+U+"`.")}throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(r==null?r:typeof r)+"."+I))}}var $=Oi(_,d,o,v);return $.elementType=r,$.type=A,$.lanes=S,$._debugOwner=p,$}function Zx(r,o,d){var p=null;p=r._owner;var v=r.type,S=r.key,_=r.props,A=$x(v,S,_,p,o,d);return A._debugSource=r._source,A._debugOwner=r._owner,A}function ld(r,o,d,p){var v=Oi(R,r,p,o);return v.lanes=d,v}function Wfe(r,o,d,p){typeof r.id!="string"&&u('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof r.id);var v=Oi(j,r,p,o|An);return v.elementType=ko,v.lanes=d,v.stateNode={effectDuration:0,passiveEffectDuration:0},v}function qfe(r,o,d,p){var v=Oi(V,r,p,o);return v.elementType=Qe,v.lanes=d,v}function Gfe(r,o,d,p){var v=Oi(ce,r,p,o);return v.elementType=ut,v.lanes=d,v}function QI(r,o,d,p){var v=Oi(ue,r,p,o);v.elementType=Nr,v.lanes=d;var S={isHidden:!1};return v.stateNode=S,v}function Wx(r,o,d){var p=Oi(T,r,null,o);return p.lanes=d,p}function Yfe(){var r=Oi(b,null,null,Rt);return r.elementType="DELETED",r}function Jfe(r){var o=Oi(ye,null,null,Rt);return o.stateNode=r,o}function qx(r,o,d){var p=r.children!==null?r.children:[],v=Oi(k,p,r.key,o);return v.lanes=d,v.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},v}function eD(r,o){return r===null&&(r=Oi(x,null,null,Rt)),r.tag=o.tag,r.key=o.key,r.elementType=o.elementType,r.type=o.type,r.stateNode=o.stateNode,r.return=o.return,r.child=o.child,r.sibling=o.sibling,r.index=o.index,r.ref=o.ref,r.pendingProps=o.pendingProps,r.memoizedProps=o.memoizedProps,r.updateQueue=o.updateQueue,r.memoizedState=o.memoizedState,r.dependencies=o.dependencies,r.mode=o.mode,r.flags=o.flags,r.subtreeFlags=o.subtreeFlags,r.deletions=o.deletions,r.lanes=o.lanes,r.childLanes=o.childLanes,r.alternate=o.alternate,r.actualDuration=o.actualDuration,r.actualStartTime=o.actualStartTime,r.selfBaseDuration=o.selfBaseDuration,r.treeBaseDuration=o.treeBaseDuration,r._debugSource=o._debugSource,r._debugOwner=o._debugOwner,r._debugNeedsRemount=o._debugNeedsRemount,r._debugHookTypes=o._debugHookTypes,r}function Xfe(r,o,d,p,v){this.tag=o,this.containerInfo=r,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=R8,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=Tn,this.eventTimes=hf(Oe),this.expirationTimes=hf(er),this.pendingLanes=Oe,this.suspendedLanes=Oe,this.pingedLanes=Oe,this.expiredLanes=Oe,this.mutableReadLanes=Oe,this.finishedLanes=Oe,this.entangledLanes=Oe,this.entanglements=hf(Oe),this.identifierPrefix=p,this.onRecoverableError=v,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;for(var S=this.pendingUpdatersLaneMap=[],_=0;_<wu;_++)S.push(new Set)}switch(o){case u3:this._debugRootType=d?"hydrateRoot()":"createRoot()";break;case Yc:this._debugRootType=d?"hydrate()":"render()";break}}function tD(r,o,d,p,v,S,_,A,I,U){var $=new Xfe(r,o,d,A,I),re=Zfe(o,S);$.current=re,re.stateNode=$;{var te={element:p,isDehydrated:d,cache:null,transitions:null,pendingSuspenseBoundaries:null};re.memoizedState=te}return i7(re),$}var Gx="18.3.1";function Kfe(r,o,d){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return St(p),{$$typeof:yr,key:p==null?null:""+p,children:r,containerInfo:o,implementation:d}}var Yx,Jx;Yx=!1,Jx={};function nD(r){if(!r)return Li;var o=Nc(r),d=Iue(o);if(o.tag===g){var p=o.type;if(Dl(p))return ML(o,p,d)}return d}function Qfe(r,o){{var d=Nc(r);if(d===void 0){if(typeof r.render=="function")throw new Error("Unable to find node on an unmounted component.");var p=Object.keys(r).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+p)}var v=ao(d);if(v===null)return null;if(v.mode&Gn){var S=Ut(d)||"Component";if(!Jx[S]){Jx[S]=!0;var _=pa;try{Zn(v),d.mode&Gn?u("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",o,o,S):u("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",o,o,S)}finally{_?Zn(_):sr()}}}return v.stateNode}}function rD(r,o,d,p,v,S,_,A){var I=!1,U=null;return tD(r,o,I,U,d,p,v,S,_)}function aD(r,o,d,p,v,S,_,A,I,U){var $=!0,re=tD(d,p,$,r,v,S,_,A,I);re.context=nD(null);var te=re.current,de=Io(),ge=id(te),be=zu(de,ge);return be.callback=o!=null?o:null,Kc(te,be,ge),ife(re,ge,de),re}function k4(r,o,d,p){qm(o,r);var v=o.current,S=Io(),_=id(v);Cr(_);var A=nD(d);o.context===null?o.context=A:o.pendingContext=A,Bi&&pa!==null&&!Yx&&(Yx=!0,u(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
|
|
237
|
-
|
|
238
|
-
Check the render method of %s.`,Ut(pa)||"Unknown"));var I=zu(S,_);I.payload={element:r},p=p===void 0?null:p,p!==null&&(typeof p!="function"&&u("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",p),I.callback=p);var U=Kc(v,I,_);return U!==null&&(Ea(U,v,_,S),k3(U,v,_)),_}function p9(r){var o=r.current;if(!o.child)return null;switch(o.child.tag){case b:return o.child.stateNode;default:return o.child.stateNode}}function e1e(r){switch(r.tag){case y:{var o=r.stateNode;if(Ip(o)){var d=uv(o);cfe(o,d)}break}case V:{Vu(function(){var v=ii(r,Ft);if(v!==null){var S=Io();Ea(v,r,Ft,S)}});var p=Ft;Xx(r,p);break}}}function oD(r,o){var d=r.memoizedState;d!==null&&d.dehydrated!==null&&(d.retryLane=hv(d.retryLane,o))}function Xx(r,o){oD(r,o);var d=r.alternate;d&&oD(d,o)}function t1e(r){if(r.tag===V){var o=lf,d=ii(r,o);if(d!==null){var p=Io();Ea(d,r,o,p)}Xx(r,o)}}function n1e(r){if(r.tag===V){var o=id(r),d=ii(r,o);if(d!==null){var p=Io();Ea(d,r,o,p)}Xx(r,o)}}function iD(r){var o=mr(r);return o===null?null:o.stateNode}var sD=function(r){return null};function r1e(r){return sD(r)}var lD=function(r){return!1};function a1e(r){return lD(r)}var uD=null,cD=null,dD=null,fD=null,pD=null,hD=null,mD=null,gD=null,vD=null;{var yD=function(r,o,d){var p=o[d],v=rn(r)?r.slice():en({},r);return d+1===o.length?(rn(v)?v.splice(p,1):delete v[p],v):(v[p]=yD(r[p],o,d+1),v)},xD=function(r,o){return yD(r,o,0)},wD=function(r,o,d,p){var v=o[p],S=rn(r)?r.slice():en({},r);if(p+1===o.length){var _=d[p];S[_]=S[v],rn(S)?S.splice(v,1):delete S[v]}else S[v]=wD(r[v],o,d,p+1);return S},bD=function(r,o,d){if(o.length!==d.length){l("copyWithRename() expects paths of the same length");return}else for(var p=0;p<d.length-1;p++)if(o[p]!==d[p]){l("copyWithRename() expects paths to be the same except for the deepest key");return}return wD(r,o,d,0)},CD=function(r,o,d,p){if(d>=o.length)return p;var v=o[d],S=rn(r)?r.slice():en({},r);return S[v]=CD(r[v],o,d+1,p),S},SD=function(r,o,d){return CD(r,o,0,d)},Kx=function(r,o){for(var d=r.memoizedState;d!==null&&o>0;)d=d.next,o--;return d};uD=function(r,o,d,p){var v=Kx(r,o);if(v!==null){var S=SD(v.memoizedState,d,p);v.memoizedState=S,v.baseState=S,r.memoizedProps=en({},r.memoizedProps);var _=ii(r,Ft);_!==null&&Ea(_,r,Ft,er)}},cD=function(r,o,d){var p=Kx(r,o);if(p!==null){var v=xD(p.memoizedState,d);p.memoizedState=v,p.baseState=v,r.memoizedProps=en({},r.memoizedProps);var S=ii(r,Ft);S!==null&&Ea(S,r,Ft,er)}},dD=function(r,o,d,p){var v=Kx(r,o);if(v!==null){var S=bD(v.memoizedState,d,p);v.memoizedState=S,v.baseState=S,r.memoizedProps=en({},r.memoizedProps);var _=ii(r,Ft);_!==null&&Ea(_,r,Ft,er)}},fD=function(r,o,d){r.pendingProps=SD(r.memoizedProps,o,d),r.alternate&&(r.alternate.pendingProps=r.pendingProps);var p=ii(r,Ft);p!==null&&Ea(p,r,Ft,er)},pD=function(r,o){r.pendingProps=xD(r.memoizedProps,o),r.alternate&&(r.alternate.pendingProps=r.pendingProps);var d=ii(r,Ft);d!==null&&Ea(d,r,Ft,er)},hD=function(r,o,d){r.pendingProps=bD(r.memoizedProps,o,d),r.alternate&&(r.alternate.pendingProps=r.pendingProps);var p=ii(r,Ft);p!==null&&Ea(p,r,Ft,er)},mD=function(r){var o=ii(r,Ft);o!==null&&Ea(o,r,Ft,er)},gD=function(r){sD=r},vD=function(r){lD=r}}function o1e(r){var o=ao(r);return o===null?null:o.stateNode}function i1e(r){return null}function s1e(){return pa}function l1e(r){var o=r.findFiberByHostInstance,d=n.ReactCurrentDispatcher;return Ic({bundleType:r.bundleType,version:r.version,rendererPackageName:r.rendererPackageName,rendererConfig:r.rendererConfig,overrideHookState:uD,overrideHookStateDeletePath:cD,overrideHookStateRenamePath:dD,overrideProps:fD,overridePropsDeletePath:pD,overridePropsRenamePath:hD,setErrorHandler:gD,setSuspenseHandler:vD,scheduleUpdate:mD,currentDispatcherRef:d,findHostInstanceByFiber:o1e,findFiberByHostInstance:o||i1e,findHostInstancesForRefresh:Ffe,scheduleRefresh:jfe,scheduleRoot:Pfe,setRefreshHandler:Dfe,getCurrentFiber:s1e,reconcilerVersion:Gx})}var kD=typeof reportError=="function"?reportError:function(r){console.error(r)};function Qx(r){this._internalRoot=r}h9.prototype.render=Qx.prototype.render=function(r){var o=this._internalRoot;if(o===null)throw new Error("Cannot update an unmounted root.");{typeof arguments[1]=="function"?u("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):m9(arguments[1])?u("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof arguments[1]!="undefined"&&u("You passed a second argument to root.render(...) but it only accepts one argument.");var d=o.containerInfo;if(d.nodeType!==zr){var p=iD(o.current);p&&p.parentNode!==d&&u("render(...): It looks like the React-rendered content of the root container was removed without using React. This is not supported and will cause errors. Instead, call root.unmount() to empty a root's container.")}}k4(r,o,null,null)},h9.prototype.unmount=Qx.prototype.unmount=function(){typeof arguments[0]=="function"&&u("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var r=this._internalRoot;if(r!==null){this._internalRoot=null;var o=r.containerInfo;jI()&&u("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),Vu(function(){k4(null,r,null,null)}),kL(o)}};function u1e(r,o){if(!m9(r))throw new Error("createRoot(...): Target container is not a DOM element.");ED(r);var d=!1,p=!1,v="",S=kD;o!=null&&(o.hydrate?l("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof o=="object"&&o!==null&&o.$$typeof===Mr&&u(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
239
|
-
|
|
240
|
-
let root = createRoot(domContainer);
|
|
241
|
-
root.render(<App />);`),o.unstable_strictMode===!0&&(d=!0),o.identifierPrefix!==void 0&&(v=o.identifierPrefix),o.onRecoverableError!==void 0&&(S=o.onRecoverableError),o.transitionCallbacks!==void 0&&o.transitionCallbacks);var _=rD(r,u3,null,d,p,v,S);n3(_.current,r);var A=r.nodeType===zr?r.parentNode:r;return A0(A),new Qx(_)}function h9(r){this._internalRoot=r}function c1e(r){r&&kv(r)}h9.prototype.unstable_scheduleHydration=c1e;function d1e(r,o,d){if(!m9(r))throw new Error("hydrateRoot(...): Target container is not a DOM element.");ED(r),o===void 0&&u("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var p=d!=null?d:null,v=d!=null&&d.hydratedSources||null,S=!1,_=!1,A="",I=kD;d!=null&&(d.unstable_strictMode===!0&&(S=!0),d.identifierPrefix!==void 0&&(A=d.identifierPrefix),d.onRecoverableError!==void 0&&(I=d.onRecoverableError));var U=aD(o,null,r,u3,p,S,_,A,I);if(n3(U.current,r),A0(r),v)for(var $=0;$<v.length;$++){var re=v[$];mce(U,re)}return new h9(U)}function m9(r){return!!(r&&(r.nodeType===to||r.nodeType===_s||r.nodeType===Lm))}function E4(r){return!!(r&&(r.nodeType===to||r.nodeType===_s||r.nodeType===Lm||r.nodeType===zr&&r.nodeValue===" react-mount-point-unstable "))}function ED(r){r.nodeType===to&&r.tagName&&r.tagName.toUpperCase()==="BODY"&&u("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."),U0(r)&&(r._reactRootContainer?u("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):u("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}var f1e=n.ReactCurrentOwner,_D;_D=function(r){if(r._reactRootContainer&&r.nodeType!==zr){var o=iD(r._reactRootContainer.current);o&&o.parentNode!==r&&u("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var d=!!r._reactRootContainer,p=ew(r),v=!!(p&&qc(p));v&&!d&&u("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),r.nodeType===to&&r.tagName&&r.tagName.toUpperCase()==="BODY"&&u("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")};function ew(r){return r?r.nodeType===_s?r.documentElement:r.firstChild:null}function TD(){}function p1e(r,o,d,p,v){if(v){if(typeof p=="function"){var S=p;p=function(){var te=p9(_);S.call(te)}}var _=aD(o,p,r,Yc,null,!1,!1,"",TD);r._reactRootContainer=_,n3(_.current,r);var A=r.nodeType===zr?r.parentNode:r;return A0(A),Vu(),_}else{for(var I;I=r.lastChild;)r.removeChild(I);if(typeof p=="function"){var U=p;p=function(){var te=p9($);U.call(te)}}var $=rD(r,Yc,null,!1,!1,"",TD);r._reactRootContainer=$,n3($.current,r);var re=r.nodeType===zr?r.parentNode:r;return A0(re),Vu(function(){k4(o,$,d,p)}),$}}function h1e(r,o){r!==null&&typeof r!="function"&&u("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",o,r)}function g9(r,o,d,p,v){_D(d),h1e(v===void 0?null:v,"render");var S=d._reactRootContainer,_;if(!S)_=p1e(d,o,r,v,p);else{if(_=S,typeof v=="function"){var A=v;v=function(){var I=p9(_);A.call(I)}}k4(o,_,r,v)}return p9(_)}var RD=!1;function m1e(r){{RD||(RD=!0,u("findDOMNode is deprecated and will be removed in the next major release. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node"));var o=f1e.current;if(o!==null&&o.stateNode!==null){var d=o.stateNode._warnedAboutRefsInRender;d||u("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",Cn(o.type)||"A component"),o.stateNode._warnedAboutRefsInRender=!0}}return r==null?null:r.nodeType===to?r:Qfe(r,"findDOMNode")}function g1e(r,o,d){if(u("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!E4(o))throw new Error("Target container is not a DOM element.");{var p=U0(o)&&o._reactRootContainer===void 0;p&&u("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?")}return g9(null,r,o,!0,d)}function v1e(r,o,d){if(u("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!E4(o))throw new Error("Target container is not a DOM element.");{var p=U0(o)&&o._reactRootContainer===void 0;p&&u("You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?")}return g9(null,r,o,!1,d)}function y1e(r,o,d,p){if(u("ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!E4(d))throw new Error("Target container is not a DOM element.");if(r==null||!X6(r))throw new Error("parentComponent must be a valid React Component");return g9(r,o,d,!1,p)}var MD=!1;function x1e(r){if(MD||(MD=!0,u("unmountComponentAtNode is deprecated and will be removed in the next major release. Switch to the createRoot API. Learn more: https://reactjs.org/link/switch-to-createroot")),!E4(r))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var o=U0(r)&&r._reactRootContainer===void 0;o&&u("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?")}if(r._reactRootContainer){{var d=ew(r),p=d&&!qc(d);p&&u("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return Vu(function(){g9(null,null,r,!1,function(){r._reactRootContainer=null,kL(r)})}),!0}else{{var v=ew(r),S=!!(v&&qc(v)),_=r.nodeType===to&&E4(r.parentNode)&&!!r.parentNode._reactRootContainer;S&&u("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",_?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component.")}return!1}}Aa(e1e),Fc(t1e),wv(n1e),xf(ri),p0(vv),(typeof Map!="function"||Map.prototype==null||typeof Map.prototype.forEach!="function"||typeof Set!="function"||Set.prototype==null||typeof Set.prototype.clear!="function"||typeof Set.prototype.forEach!="function")&&u("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),X1(ble),J6(Nx,dfe,Vu);function w1e(r,o){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!m9(o))throw new Error("Target container is not a DOM element.");return Kfe(r,o,null,d)}function b1e(r,o,d,p){return y1e(r,o,d,p)}var tw={usingClientEntryPoint:!1,Events:[qc,Qp,r3,Tc,K1,Nx]};function C1e(r,o){return tw.usingClientEntryPoint||u('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),u1e(r,o)}function S1e(r,o,d){return tw.usingClientEntryPoint||u('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),d1e(r,o,d)}function k1e(r){return jI()&&u("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."),Vu(r)}var E1e=l1e({findFiberByHostInstance:Of,bundleType:1,version:Gx,rendererPackageName:"react-dom"});if(!E1e&&et&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var AD=window.location.protocol;/^(https?|file):$/.test(AD)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(AD==="file:"?`
|
|
242
|
-
You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}Ho.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tw,Ho.createPortal=w1e,Ho.createRoot=C1e,Ho.findDOMNode=m1e,Ho.flushSync=k1e,Ho.hydrate=g1e,Ho.hydrateRoot=S1e,Ho.render=v1e,Ho.unmountComponentAtNode=x1e,Ho.unstable_batchedUpdates=Nx,Ho.unstable_renderSubtreeIntoContainer=b1e,Ho.version=Gx,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),Ho}function mw(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(mw)}catch(e){console.error(e)}}}process.env.NODE_ENV==="production"?(mw(),w9.exports=HD()):w9.exports=UD();var $l=w9.exports;const BD=Wu($l);var M4,A4=$l;if(process.env.NODE_ENV==="production")M4=A4.createRoot,A4.hydrateRoot;else{var gw=A4.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;M4=function(e,t){gw.usingClientEntryPoint=!0;try{return A4.createRoot(e,t)}finally{gw.usingClientEntryPoint=!1}}}const vw=e=>{let t;const n=new Set,a=(g,x)=>{const y=typeof g=="function"?g(t):g;if(!Object.is(y,t)){const k=t;t=(x!=null?x:typeof y!="object"||y===null)?y:Object.assign({},t,y),n.forEach(b=>b(t,k))}},i=()=>t,f={setState:a,getState:i,getInitialState:()=>h,subscribe:g=>(n.add(g),()=>n.delete(g))},h=t=e(a,i,f);return f},VD=e=>e?vw(e):vw,$D=e=>e;function ZD(e,t=$D){const n=Fo.useSyncExternalStore(e.subscribe,Fo.useCallback(()=>t(e.getState()),[e,t]),Fo.useCallback(()=>t(e.getInitialState()),[e,t]));return Fo.useDebugValue(n),n}const yw=e=>{const t=VD(e),n=a=>ZD(t,a);return Object.assign(n,t),n},WD=e=>e?yw(e):yw,qD=e=>(t,n,a)=>{const i=a.subscribe;return a.subscribe=(u,f,h)=>{let g=u;if(f){const x=(h==null?void 0:h.equalityFn)||Object.is;let y=u(a.getState());g=k=>{const b=u(k);if(!x(y,b)){const T=y;f(y=b,T)}},h!=null&&h.fireImmediately&&f(y,y)}return i(g)},e(t,n,a)},GD=e=>{var n;const t={chatStatus:((n=e.options)==null?void 0:n.chatStatus)||"hide",chatEntryVisible:!1,chatEntryVariant:"default",chatAreaPluginInstList:[],chatAreaPluginMap:new Map,chatEntryButtons:new Map,eventBus:e.eventBus,clientStyle:"",msgClearTimestamp:Date.now()};return WD()(qD(a=>({...t,setClientStyle:i=>a(()=>({clientStyle:i})),clearMessages:()=>a(()=>({msgClearTimestamp:Date.now()})),setChatStatus:i=>a(()=>({chatStatus:i})),setChatAreaPluginInstList:i=>a(()=>{let l=new Map;return i.forEach(u=>{l.set(u.pluginName,u)}),{chatAreaPluginMap:l,chatAreaPluginInstList:i}}),setChatAreaContainer:i=>a(()=>({chatAreaContainer:i})),setChatEntryVisible:(i,l)=>a(()=>({chatEntryVisible:i,chatEntryElWrapper:l})),setChatEntryVariant:i=>a(()=>({chatEntryVariant:i})),upsertChatEntryButton:i=>a(l=>{const u=new Map(l.chatEntryButtons);return u.set(i.id,i),{chatEntryButtons:u}}),removeChatEntryButton:i=>a(l=>{const u=new Map(l.chatEntryButtons);return u.delete(i),{chatEntryButtons:u}}),setChatEntryButtonVisible:(i,l)=>a(u=>{const f=u.chatEntryButtons.get(i);if(!f)return u;const h=new Map(u.chatEntryButtons);return h.set(i,{...f,visible:l}),{chatEntryButtons:h}})})))},YD=(e,t)=>{e.subscribe(n=>n.chatStatus,n=>{var l;const a=e.getState().eventBus,i=n!=="hide";(l=t.onChatStatusChange)==null||l.call(t,n),a.emit("chat-area-visibility-change",{visible:i,status:n}),console.log("chat status changed:",n)})},xw=e=>Symbol.iterator in e,ww=e=>"entries"in e,bw=(e,t)=>{const n=e instanceof Map?e:new Map(e.entries()),a=t instanceof Map?t:new Map(t.entries());if(n.size!==a.size)return!1;for(const[i,l]of n)if(!a.has(i)||!Object.is(l,a.get(i)))return!1;return!0},JD=(e,t)=>{const n=e[Symbol.iterator](),a=t[Symbol.iterator]();let i=n.next(),l=a.next();for(;!i.done&&!l.done;){if(!Object.is(i.value,l.value))return!1;i=n.next(),l=a.next()}return!!i.done&&!!l.done};function XD(e,t){return Object.is(e,t)?!0:typeof e!="object"||e===null||typeof t!="object"||t===null||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t)?!1:xw(e)&&xw(t)?ww(e)&&ww(t)?bw(e,t):JD(e,t):bw({entries:()=>Object.entries(e)},{entries:()=>Object.entries(t)})}var S9={exports:{}},k9={},E9={exports:{}},_9={};/**
|
|
243
|
-
* @license React
|
|
244
|
-
* use-sync-external-store-shim.production.js
|
|
245
|
-
*
|
|
246
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
247
|
-
*
|
|
248
|
-
* This source code is licensed under the MIT license found in the
|
|
249
|
-
* LICENSE file in the root directory of this source tree.
|
|
250
|
-
*/var Cw;function KD(){if(Cw)return _9;Cw=1;var e=L;function t(y,k){return y===k&&(y!==0||1/y===1/k)||y!==y&&k!==k}var n=typeof Object.is=="function"?Object.is:t,a=e.useState,i=e.useEffect,l=e.useLayoutEffect,u=e.useDebugValue;function f(y,k){var b=k(),T=a({inst:{value:b,getSnapshot:k}}),R=T[0].inst,N=T[1];return l(function(){R.value=b,R.getSnapshot=k,h(R)&&N({inst:R})},[y,b,k]),i(function(){return h(R)&&N({inst:R}),y(function(){h(R)&&N({inst:R})})},[y]),u(b),b}function h(y){var k=y.getSnapshot;y=y.value;try{var b=k();return!n(y,b)}catch(T){return!0}}function g(y,k){return k()}var x=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?g:f;return _9.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:x,_9}var T9={};/**
|
|
251
|
-
* @license React
|
|
252
|
-
* use-sync-external-store-shim.development.js
|
|
253
|
-
*
|
|
254
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
255
|
-
*
|
|
256
|
-
* This source code is licensed under the MIT license found in the
|
|
257
|
-
* LICENSE file in the root directory of this source tree.
|
|
258
|
-
*/var Sw;function QD(){return Sw||(Sw=1,process.env.NODE_ENV!=="production"&&function(){function e(b,T){return b===T&&(b!==0||1/b===1/T)||b!==b&&T!==T}function t(b,T){x||i.startTransition===void 0||(x=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var R=T();if(!y){var N=T();l(R,N)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),y=!0)}N=u({inst:{value:R,getSnapshot:T}});var O=N[0].inst,P=N[1];return h(function(){O.value=R,O.getSnapshot=T,n(O)&&P({inst:O})},[b,R,T]),f(function(){return n(O)&&P({inst:O}),b(function(){n(O)&&P({inst:O})})},[b]),g(R),R}function n(b){var T=b.getSnapshot;b=b.value;try{var R=T();return!l(b,R)}catch(N){return!0}}function a(b,T){return T()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=L,l=typeof Object.is=="function"?Object.is:e,u=i.useState,f=i.useEffect,h=i.useLayoutEffect,g=i.useDebugValue,x=!1,y=!1,k=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?a:t;T9.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:k,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),T9}process.env.NODE_ENV==="production"?E9.exports=KD():E9.exports=QD();var kw=E9.exports;/**
|
|
259
|
-
* @license React
|
|
260
|
-
* use-sync-external-store-shim/with-selector.production.js
|
|
261
|
-
*
|
|
262
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
263
|
-
*
|
|
264
|
-
* This source code is licensed under the MIT license found in the
|
|
265
|
-
* LICENSE file in the root directory of this source tree.
|
|
266
|
-
*/var Ew;function ej(){if(Ew)return k9;Ew=1;var e=L,t=kw;function n(g,x){return g===x&&(g!==0||1/g===1/x)||g!==g&&x!==x}var a=typeof Object.is=="function"?Object.is:n,i=t.useSyncExternalStore,l=e.useRef,u=e.useEffect,f=e.useMemo,h=e.useDebugValue;return k9.useSyncExternalStoreWithSelector=function(g,x,y,k,b){var T=l(null);if(T.current===null){var R={hasValue:!1,value:null};T.current=R}else R=T.current;T=f(function(){function O(H){if(!P){if(P=!0,z=H,H=k(H),b!==void 0&&R.hasValue){var W=R.value;if(b(W,H))return j=W}return j=H}if(W=j,a(z,H))return W;var G=k(H);return b!==void 0&&b(W,G)?(z=H,W):(z=H,j=G)}var P=!1,z,j,V=y===void 0?null:y;return[function(){return O(x())},V===null?void 0:function(){return O(V())}]},[x,y,k,b]);var N=i(g,T[0],T[1]);return u(function(){R.hasValue=!0,R.value=N},[N]),h(N),N},k9}var R9={};/**
|
|
267
|
-
* @license React
|
|
268
|
-
* use-sync-external-store-shim/with-selector.development.js
|
|
269
|
-
*
|
|
270
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
271
|
-
*
|
|
272
|
-
* This source code is licensed under the MIT license found in the
|
|
273
|
-
* LICENSE file in the root directory of this source tree.
|
|
274
|
-
*/var _w;function tj(){return _w||(_w=1,process.env.NODE_ENV!=="production"&&function(){function e(g,x){return g===x&&(g!==0||1/g===1/x)||g!==g&&x!==x}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=L,n=kw,a=typeof Object.is=="function"?Object.is:e,i=n.useSyncExternalStore,l=t.useRef,u=t.useEffect,f=t.useMemo,h=t.useDebugValue;R9.useSyncExternalStoreWithSelector=function(g,x,y,k,b){var T=l(null);if(T.current===null){var R={hasValue:!1,value:null};T.current=R}else R=T.current;T=f(function(){function O(H){if(!P){if(P=!0,z=H,H=k(H),b!==void 0&&R.hasValue){var W=R.value;if(b(W,H))return j=W}return j=H}if(W=j,a(z,H))return W;var G=k(H);return b!==void 0&&b(W,G)?(z=H,W):(z=H,j=G)}var P=!1,z,j,V=y===void 0?null:y;return[function(){return O(x())},V===null?void 0:function(){return O(V())}]},[x,y,k,b]);var N=i(g,T[0],T[1]);return u(function(){R.hasValue=!0,R.value=N},[N]),h(N),N},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),R9}process.env.NODE_ENV==="production"?S9.exports=ej():S9.exports=tj();var nj=S9.exports;const rj=Wu(nj),{useSyncExternalStoreWithSelector:aj}=rj,oj=e=>e;function ij(e,t=oj,n){const a=aj(e.subscribe,e.getState,e.getInitialState,t,n);return Fo.useDebugValue(a),a}const Tw=L.createContext(void 0),sj=({store:e,children:t})=>C.jsx(Tw.Provider,{value:{chatStore:e},children:t}),Zl=e=>{const t=L.useContext(Tw).chatStore;return ij(t,e,XD)};var Rw="vercel.ai.error",lj=Symbol.for(Rw),Mw,Aw,Jt=class ND extends(Aw=Error,Mw=lj,Aw){constructor({name:t,message:n,cause:a}){super(n),this[Mw]=!0,this.name=t,this.cause=a}static isInstance(t){return ND.hasMarker(t,Rw)}static hasMarker(t,n){const a=Symbol.for(n);return t!=null&&typeof t=="object"&&a in t&&typeof t[a]=="boolean"&&t[a]===!0}},Nw="AI_APICallError",Lw=`vercel.ai.error.${Nw}`,uj=Symbol.for(Lw),Ow,Iw,yo=class extends(Iw=Jt,Ow=uj,Iw){constructor({message:e,url:t,requestBodyValues:n,statusCode:a,responseHeaders:i,responseBody:l,cause:u,isRetryable:f=a!=null&&(a===408||a===409||a===429||a>=500),data:h}){super({name:Nw,message:e,cause:u}),this[Ow]=!0,this.url=t,this.requestBodyValues=n,this.statusCode=a,this.responseHeaders=i,this.responseBody=l,this.isRetryable=f,this.data=h}static isInstance(e){return Jt.hasMarker(e,Lw)}},Dw="AI_EmptyResponseBodyError",jw=`vercel.ai.error.${Dw}`,cj=Symbol.for(jw),Pw,Fw,dj=class extends(Fw=Jt,Pw=cj,Fw){constructor({message:e="Empty response body"}={}){super({name:Dw,message:e}),this[Pw]=!0}static isInstance(e){return Jt.hasMarker(e,jw)}};function Jf(e){return e==null?"unknown error":typeof e=="string"?e:e instanceof Error?e.message:JSON.stringify(e)}var zw="AI_InvalidArgumentError",Hw=`vercel.ai.error.${zw}`,fj=Symbol.for(Hw),Uw,Bw,Vw=class extends(Bw=Jt,Uw=fj,Bw){constructor({message:t,cause:n,argument:a}){super({name:zw,message:t,cause:n}),this[Uw]=!0,this.argument=a}static isInstance(t){return Jt.hasMarker(t,Hw)}},$w="AI_InvalidPromptError",Zw=`vercel.ai.error.${$w}`,pj=Symbol.for(Zw),Ww,qw,Xf=class extends(qw=Jt,Ww=pj,qw){constructor({prompt:e,message:t,cause:n}){super({name:$w,message:`Invalid prompt: ${t}`,cause:n}),this[Ww]=!0,this.prompt=e}static isInstance(e){return Jt.hasMarker(e,Zw)}},Gw="AI_InvalidResponseDataError",Yw=`vercel.ai.error.${Gw}`,hj=Symbol.for(Yw),Jw,Xw,Kw=class extends(Xw=Jt,Jw=hj,Xw){constructor({data:e,message:t=`Invalid response data: ${JSON.stringify(e)}.`}){super({name:Gw,message:t}),this[Jw]=!0,this.data=e}static isInstance(e){return Jt.hasMarker(e,Yw)}},Qw="AI_JSONParseError",eb=`vercel.ai.error.${Qw}`,mj=Symbol.for(eb),tb,nb,N4=class extends(nb=Jt,tb=mj,nb){constructor({text:e,cause:t}){super({name:Qw,message:`JSON parsing failed: Text: ${e}.
|
|
275
|
-
Error message: ${Jf(t)}`,cause:t}),this[tb]=!0,this.text=e}static isInstance(e){return Jt.hasMarker(e,eb)}},rb="AI_LoadAPIKeyError",ab=`vercel.ai.error.${rb}`,gj=Symbol.for(ab),ob,ib,L4=class extends(ib=Jt,ob=gj,ib){constructor({message:e}){super({name:rb,message:e}),this[ob]=!0}static isInstance(e){return Jt.hasMarker(e,ab)}},sb="AI_NoSuchModelError",lb=`vercel.ai.error.${sb}`,vj=Symbol.for(lb),ub,cb,db=class extends(cb=Jt,ub=vj,cb){constructor({errorName:e=sb,modelId:t,modelType:n,message:a=`No such ${n}: ${t}`}){super({name:e,message:a}),this[ub]=!0,this.modelId=t,this.modelType=n}static isInstance(e){return Jt.hasMarker(e,lb)}},fb="AI_TypeValidationError",pb=`vercel.ai.error.${fb}`,yj=Symbol.for(pb),hb,mb,Th=class nw extends(mb=Jt,hb=yj,mb){constructor({value:t,cause:n}){super({name:fb,message:`Type validation failed: Value: ${JSON.stringify(t)}.
|
|
276
|
-
Error message: ${Jf(n)}`,cause:n}),this[hb]=!0,this.value=t}static isInstance(t){return Jt.hasMarker(t,pb)}static wrap({value:t,cause:n}){return nw.isInstance(n)&&n.value===t?n:new nw({value:t,cause:n})}},gb="AI_UnsupportedFunctionalityError",vb=`vercel.ai.error.${gb}`,xj=Symbol.for(vb),yb,xb,wj=class extends(xb=Jt,yb=xj,xb){constructor({functionality:e,message:t=`'${e}' functionality not supported.`}){super({name:gb,message:t}),this[yb]=!0,this.functionality=e}static isInstance(e){return Jt.hasMarker(e,vb)}};class wb extends Error{constructor(t,n){super(t),this.name="ParseError",this.type=n.type,this.field=n.field,this.value=n.value,this.line=n.line}}function M9(e){}function bj(e){if(typeof e=="function")throw new TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");const{onEvent:t=M9,onError:n=M9,onRetry:a=M9,onComment:i}=e;let l="",u=!0,f,h="",g="";function x(R){const N=u?R.replace(/^\xEF\xBB\xBF/,""):R,[O,P]=Cj(`${l}${N}`);for(const z of O)y(z);l=P,u=!1}function y(R){if(R===""){b();return}if(R.startsWith(":")){i&&i(R.slice(R.startsWith(": ")?2:1));return}const N=R.indexOf(":");if(N!==-1){const O=R.slice(0,N),P=R[N+1]===" "?2:1,z=R.slice(N+P);k(O,z,R);return}k(R,"",R)}function k(R,N,O){switch(R){case"event":g=N;break;case"data":h=`${h}${N}
|
|
277
|
-
`;break;case"id":f=N.includes("\0")?void 0:N;break;case"retry":/^\d+$/.test(N)?a(parseInt(N,10)):n(new wb(`Invalid \`retry\` value: "${N}"`,{type:"invalid-retry",value:N,line:O}));break;default:n(new wb(`Unknown field "${R.length>20?`${R.slice(0,20)}…`:R}"`,{type:"unknown-field",field:R,value:N,line:O}));break}}function b(){h.length>0&&t({id:f,event:g||void 0,data:h.endsWith(`
|
|
278
|
-
`)?h.slice(0,-1):h}),f=void 0,h="",g=""}function T(R={}){l&&R.consume&&y(l),u=!0,f=void 0,h="",g="",l=""}return{feed:x,reset:T}}function Cj(e){const t=[];let n="",a=0;for(;a<e.length;){const i=e.indexOf("\r",a),l=e.indexOf(`
|
|
279
|
-
`,a);let u=-1;if(i!==-1&&l!==-1?u=Math.min(i,l):i!==-1?i===e.length-1?u=-1:u=i:l!==-1&&(u=l),u===-1){n=e.slice(a);break}else{const f=e.slice(a,u);t.push(f),a=u+1,e[a-1]==="\r"&&e[a]===`
|
|
280
|
-
`&&a++}}return[t,n]}class Sj extends TransformStream{constructor({onError:t,onRetry:n,onComment:a}={}){let i;super({start(l){i=bj({onEvent:u=>{l.enqueue(u)},onError(u){t==="terminate"?l.error(u):typeof t=="function"&&t(u)},onRetry:n,onComment:a})},transform(l){i.feed(l)}})}}function Se(e,t,n){var f;function a(h,g){if(h._zod||Object.defineProperty(h,"_zod",{value:{def:g,constr:u,traits:new Set},enumerable:!1}),h._zod.traits.has(e))return;h._zod.traits.add(e),t(h,g);const x=u.prototype,y=Object.keys(x);for(let k=0;k<y.length;k++){const b=y[k];b in h||(h[b]=x[b].bind(h))}}const i=(f=n==null?void 0:n.Parent)!=null?f:Object;class l extends i{}Object.defineProperty(l,"name",{value:e});function u(h){var y;var g;const x=n!=null&&n.Parent?new l:this;a(x,h),(y=(g=x._zod).deferred)!=null||(g.deferred=[]);for(const k of x._zod.deferred)k();return x}return Object.defineProperty(u,"init",{value:a}),Object.defineProperty(u,Symbol.hasInstance,{value:h=>{var g,x;return n!=null&&n.Parent&&h instanceof n.Parent?!0:(x=(g=h==null?void 0:h._zod)==null?void 0:g.traits)==null?void 0:x.has(e)}}),Object.defineProperty(u,"name",{value:e}),u}class Kf extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class bb extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const Cb={};function qu(e){return Cb}function Sb(e){const t=Object.values(e).filter(a=>typeof a=="number");return Object.entries(e).filter(([a,i])=>t.indexOf(+a)===-1).map(([a,i])=>i)}function A9(e,t){return typeof t=="bigint"?t.toString():t}function O4(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function N9(e){return e==null}function L9(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function kj(e,t){const n=(e.toString().split(".")[1]||"").length,a=t.toString();let i=(a.split(".")[1]||"").length;if(i===0&&/\d?e-\d?/.test(a)){const h=a.match(/\d?e-(\d?)/);h!=null&&h[1]&&(i=Number.parseInt(h[1]))}const l=n>i?n:i,u=Number.parseInt(e.toFixed(l).replace(".","")),f=Number.parseInt(t.toFixed(l).replace(".",""));return u%f/10**l}const kb=Symbol("evaluating");function kn(e,t,n){let a;Object.defineProperty(e,t,{get(){if(a!==kb)return a===void 0&&(a=kb,a=n()),a},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function ud(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Gu(...e){const t={};for(const n of e){const a=Object.getOwnPropertyDescriptors(n);Object.assign(t,a)}return Object.defineProperties({},t)}function Eb(e){return JSON.stringify(e)}function Ej(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const _b="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Rh(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const _j=O4(()=>{var e;if(typeof navigator!="undefined"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{const t=Function;return new t(""),!0}catch(t){return!1}});function Qf(e){if(Rh(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Rh(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Tb(e){return Qf(e)?{...e}:Array.isArray(e)?[...e]:e}const Tj=new Set(["string","number","symbol"]);function e1(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Yu(e,t,n){const a=new e._zod.constr(t!=null?t:e._zod.def);return(!t||n!=null&&n.parent)&&(a._zod.parent=e),a}function wt(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function Rj(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const Mj={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Aj(e,t){const n=e._zod.def,a=n.checks;if(a&&a.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const l=Gu(e._zod.def,{get shape(){const u={};for(const f in t){if(!(f in n.shape))throw new Error(`Unrecognized key: "${f}"`);t[f]&&(u[f]=n.shape[f])}return ud(this,"shape",u),u},checks:[]});return Yu(e,l)}function Nj(e,t){const n=e._zod.def,a=n.checks;if(a&&a.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const l=Gu(e._zod.def,{get shape(){const u={...e._zod.def.shape};for(const f in t){if(!(f in n.shape))throw new Error(`Unrecognized key: "${f}"`);t[f]&&delete u[f]}return ud(this,"shape",u),u},checks:[]});return Yu(e,l)}function Lj(e,t){if(!Qf(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const l=e._zod.def.shape;for(const u in t)if(Object.getOwnPropertyDescriptor(l,u)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const i=Gu(e._zod.def,{get shape(){const l={...e._zod.def.shape,...t};return ud(this,"shape",l),l}});return Yu(e,i)}function Oj(e,t){if(!Qf(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=Gu(e._zod.def,{get shape(){const a={...e._zod.def.shape,...t};return ud(this,"shape",a),a}});return Yu(e,n)}function Ij(e,t){const n=Gu(e._zod.def,{get shape(){const a={...e._zod.def.shape,...t._zod.def.shape};return ud(this,"shape",a),a},get catchall(){return t._zod.def.catchall},checks:[]});return Yu(e,n)}function Dj(e,t,n){const i=t._zod.def.checks;if(i&&i.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const u=Gu(t._zod.def,{get shape(){const f=t._zod.def.shape,h={...f};if(n)for(const g in n){if(!(g in f))throw new Error(`Unrecognized key: "${g}"`);n[g]&&(h[g]=e?new e({type:"optional",innerType:f[g]}):f[g])}else for(const g in f)h[g]=e?new e({type:"optional",innerType:f[g]}):f[g];return ud(this,"shape",h),h},checks:[]});return Yu(t,u)}function jj(e,t,n){const a=Gu(t._zod.def,{get shape(){const i=t._zod.def.shape,l={...i};if(n)for(const u in n){if(!(u in l))throw new Error(`Unrecognized key: "${u}"`);n[u]&&(l[u]=new e({type:"nonoptional",innerType:i[u]}))}else for(const u in i)l[u]=new e({type:"nonoptional",innerType:i[u]});return ud(this,"shape",l),l}});return Yu(t,a)}function t1(e,t=0){var n;if(e.aborted===!0)return!0;for(let a=t;a<e.issues.length;a++)if(((n=e.issues[a])==null?void 0:n.continue)!==!0)return!0;return!1}function n1(e,t){return t.map(n=>{var i;var a;return(i=(a=n).path)!=null||(a.path=[]),n.path.unshift(e),n})}function I4(e){return typeof e=="string"?e:e==null?void 0:e.message}function Ju(e,t,n){var i,l,u,f,h,g,x,y,k,b,T;const a={...e,path:(i=e.path)!=null?i:[]};if(!e.message){const R=(T=(b=(y=(g=I4((f=(u=(l=e.inst)==null?void 0:l._zod.def)==null?void 0:u.error)==null?void 0:f.call(u,e)))!=null?g:I4((h=t==null?void 0:t.error)==null?void 0:h.call(t,e)))!=null?y:I4((x=n.customError)==null?void 0:x.call(n,e)))!=null?b:I4((k=n.localeError)==null?void 0:k.call(n,e)))!=null?T:"Invalid input";a.message=R}return delete a.inst,delete a.continue,t!=null&&t.reportInput||delete a.input,a}function O9(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Mh(...e){const[t,n,a]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:a}:{...t}}const Rb=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,A9,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Mb=Se("$ZodError",Rb),Ab=Se("$ZodError",Rb,{Parent:Error});function Pj(e,t=n=>n.message){const n={},a=[];for(const i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):a.push(t(i));return{formErrors:a,fieldErrors:n}}function Fj(e,t=n=>n.message){const n={_errors:[]},a=i=>{for(const l of i.issues)if(l.code==="invalid_union"&&l.errors.length)l.errors.map(u=>a({issues:u}));else if(l.code==="invalid_key")a({issues:l.issues});else if(l.code==="invalid_element")a({issues:l.issues});else if(l.path.length===0)n._errors.push(t(l));else{let u=n,f=0;for(;f<l.path.length;){const h=l.path[f];f===l.path.length-1?(u[h]=u[h]||{_errors:[]},u[h]._errors.push(t(l))):u[h]=u[h]||{_errors:[]},u=u[h],f++}}};return a(e),n}const I9=e=>(t,n,a,i)=>{var f;const l=a?Object.assign(a,{async:!1}):{async:!1},u=t._zod.run({value:n,issues:[]},l);if(u instanceof Promise)throw new Kf;if(u.issues.length){const h=new((f=i==null?void 0:i.Err)!=null?f:e)(u.issues.map(g=>Ju(g,l,qu())));throw _b(h,i==null?void 0:i.callee),h}return u.value},D9=e=>async(t,n,a,i)=>{var f;const l=a?Object.assign(a,{async:!0}):{async:!0};let u=t._zod.run({value:n,issues:[]},l);if(u instanceof Promise&&(u=await u),u.issues.length){const h=new((f=i==null?void 0:i.Err)!=null?f:e)(u.issues.map(g=>Ju(g,l,qu())));throw _b(h,i==null?void 0:i.callee),h}return u.value},D4=e=>(t,n,a)=>{const i=a?{...a,async:!1}:{async:!1},l=t._zod.run({value:n,issues:[]},i);if(l instanceof Promise)throw new Kf;return l.issues.length?{success:!1,error:new(e!=null?e:Mb)(l.issues.map(u=>Ju(u,i,qu())))}:{success:!0,data:l.value}},zj=D4(Ab),j4=e=>async(t,n,a)=>{const i=a?Object.assign(a,{async:!0}):{async:!0};let l=t._zod.run({value:n,issues:[]},i);return l instanceof Promise&&(l=await l),l.issues.length?{success:!1,error:new e(l.issues.map(u=>Ju(u,i,qu())))}:{success:!0,data:l.value}},Hj=j4(Ab),Uj=e=>(t,n,a)=>{const i=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return I9(e)(t,n,i)},Bj=e=>(t,n,a)=>I9(e)(t,n,a),Vj=e=>async(t,n,a)=>{const i=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return D9(e)(t,n,i)},$j=e=>async(t,n,a)=>D9(e)(t,n,a),Zj=e=>(t,n,a)=>{const i=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return D4(e)(t,n,i)},Wj=e=>(t,n,a)=>D4(e)(t,n,a),qj=e=>async(t,n,a)=>{const i=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return j4(e)(t,n,i)},Gj=e=>async(t,n,a)=>j4(e)(t,n,a),Yj=/^[cC][^\s-]{8,}$/,Jj=/^[0-9a-z]+$/,Xj=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Kj=/^[0-9a-vA-V]{20}$/,Qj=/^[A-Za-z0-9]{27}$/,eP=/^[a-zA-Z0-9_-]{21}$/,tP=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,nP=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Nb=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,rP=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,aP="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function oP(){return new RegExp(aP,"u")}const iP=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,sP=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,lP=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,uP=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,cP=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Lb=/^[A-Za-z0-9_-]*$/,dP=/^\+[1-9]\d{6,14}$/,Ob="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",fP=new RegExp(`^${Ob}$`);function Ib(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function pP(e){return new RegExp(`^${Ib(e)}$`)}function hP(e){const t=Ib({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const a=`${t}(?:${n.join("|")})`;return new RegExp(`^${Ob}T(?:${a})$`)}const mP=e=>{var n,a;const t=e?`[\\s\\S]{${(n=e==null?void 0:e.minimum)!=null?n:0},${(a=e==null?void 0:e.maximum)!=null?a:""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},gP=/^-?\d+$/,Db=/^-?\d+(?:\.\d+)?$/,vP=/^(?:true|false)$/i,yP=/^null$/i,xP=/^[^A-Z]*$/,wP=/^[^a-z]*$/,Uo=Se("$ZodCheck",(e,t)=>{var a,i;var n;(a=e._zod)!=null||(e._zod={}),e._zod.def=t,(i=(n=e._zod).onattach)!=null||(n.onattach=[])}),jb={number:"number",bigint:"bigint",object:"date"},Pb=Se("$ZodCheckLessThan",(e,t)=>{Uo.init(e,t);const n=jb[typeof t.value];e._zod.onattach.push(a=>{var u;const i=a._zod.bag,l=(u=t.inclusive?i.maximum:i.exclusiveMaximum)!=null?u:Number.POSITIVE_INFINITY;t.value<l&&(t.inclusive?i.maximum=t.value:i.exclusiveMaximum=t.value)}),e._zod.check=a=>{(t.inclusive?a.value<=t.value:a.value<t.value)||a.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:a.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Fb=Se("$ZodCheckGreaterThan",(e,t)=>{Uo.init(e,t);const n=jb[typeof t.value];e._zod.onattach.push(a=>{var u;const i=a._zod.bag,l=(u=t.inclusive?i.minimum:i.exclusiveMinimum)!=null?u:Number.NEGATIVE_INFINITY;t.value>l&&(t.inclusive?i.minimum=t.value:i.exclusiveMinimum=t.value)}),e._zod.check=a=>{(t.inclusive?a.value>=t.value:a.value>t.value)||a.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:a.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),bP=Se("$ZodCheckMultipleOf",(e,t)=>{Uo.init(e,t),e._zod.onattach.push(n=>{var i;var a;(i=(a=n._zod.bag).multipleOf)!=null||(a.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):kj(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),CP=Se("$ZodCheckNumberFormat",(e,t)=>{var u;Uo.init(e,t),t.format=t.format||"float64";const n=(u=t.format)==null?void 0:u.includes("int"),a=n?"int":"number",[i,l]=Mj[t.format];e._zod.onattach.push(f=>{const h=f._zod.bag;h.format=t.format,h.minimum=i,h.maximum=l,n&&(h.pattern=gP)}),e._zod.check=f=>{const h=f.value;if(n){if(!Number.isInteger(h)){f.issues.push({expected:a,format:t.format,code:"invalid_type",continue:!1,input:h,inst:e});return}if(!Number.isSafeInteger(h)){h>0?f.issues.push({input:h,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:a,inclusive:!0,continue:!t.abort}):f.issues.push({input:h,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:a,inclusive:!0,continue:!t.abort});return}}h<i&&f.issues.push({origin:"number",input:h,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),h>l&&f.issues.push({origin:"number",input:h,code:"too_big",maximum:l,inclusive:!0,inst:e,continue:!t.abort})}}),SP=Se("$ZodCheckMaxLength",(e,t)=>{var a;var n;Uo.init(e,t),(a=(n=e._zod.def).when)!=null||(n.when=i=>{const l=i.value;return!N9(l)&&l.length!==void 0}),e._zod.onattach.push(i=>{var u;const l=(u=i._zod.bag.maximum)!=null?u:Number.POSITIVE_INFINITY;t.maximum<l&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{const l=i.value;if(l.length<=t.maximum)return;const f=O9(l);i.issues.push({origin:f,code:"too_big",maximum:t.maximum,inclusive:!0,input:l,inst:e,continue:!t.abort})}}),kP=Se("$ZodCheckMinLength",(e,t)=>{var a;var n;Uo.init(e,t),(a=(n=e._zod.def).when)!=null||(n.when=i=>{const l=i.value;return!N9(l)&&l.length!==void 0}),e._zod.onattach.push(i=>{var u;const l=(u=i._zod.bag.minimum)!=null?u:Number.NEGATIVE_INFINITY;t.minimum>l&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{const l=i.value;if(l.length>=t.minimum)return;const f=O9(l);i.issues.push({origin:f,code:"too_small",minimum:t.minimum,inclusive:!0,input:l,inst:e,continue:!t.abort})}}),EP=Se("$ZodCheckLengthEquals",(e,t)=>{var a;var n;Uo.init(e,t),(a=(n=e._zod.def).when)!=null||(n.when=i=>{const l=i.value;return!N9(l)&&l.length!==void 0}),e._zod.onattach.push(i=>{const l=i._zod.bag;l.minimum=t.length,l.maximum=t.length,l.length=t.length}),e._zod.check=i=>{const l=i.value,u=l.length;if(u===t.length)return;const f=O9(l),h=u>t.length;i.issues.push({origin:f,...h?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),P4=Se("$ZodCheckStringFormat",(e,t)=>{var i,l;var n,a;Uo.init(e,t),e._zod.onattach.push(u=>{var h;const f=u._zod.bag;f.format=t.format,t.pattern&&((h=f.patterns)!=null||(f.patterns=new Set),f.patterns.add(t.pattern))}),t.pattern?(i=(n=e._zod).check)!=null||(n.check=u=>{t.pattern.lastIndex=0,!t.pattern.test(u.value)&&u.issues.push({origin:"string",code:"invalid_format",format:t.format,input:u.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(l=(a=e._zod).check)!=null||(a.check=()=>{})}),_P=Se("$ZodCheckRegex",(e,t)=>{P4.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),TP=Se("$ZodCheckLowerCase",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=xP),P4.init(e,t)}),RP=Se("$ZodCheckUpperCase",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=wP),P4.init(e,t)}),MP=Se("$ZodCheckIncludes",(e,t)=>{Uo.init(e,t);const n=e1(t.includes),a=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=a,e._zod.onattach.push(i=>{var u;const l=i._zod.bag;(u=l.patterns)!=null||(l.patterns=new Set),l.patterns.add(a)}),e._zod.check=i=>{i.value.includes(t.includes,t.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:i.value,inst:e,continue:!t.abort})}}),AP=Se("$ZodCheckStartsWith",(e,t)=>{var a;Uo.init(e,t);const n=new RegExp(`^${e1(t.prefix)}.*`);(a=t.pattern)!=null||(t.pattern=n),e._zod.onattach.push(i=>{var u;const l=i._zod.bag;(u=l.patterns)!=null||(l.patterns=new Set),l.patterns.add(n)}),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),NP=Se("$ZodCheckEndsWith",(e,t)=>{var a;Uo.init(e,t);const n=new RegExp(`.*${e1(t.suffix)}$`);(a=t.pattern)!=null||(t.pattern=n),e._zod.onattach.push(i=>{var u;const l=i._zod.bag;(u=l.patterns)!=null||(l.patterns=new Set),l.patterns.add(n)}),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}}),LP=Se("$ZodCheckOverwrite",(e,t)=>{Uo.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class OP{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const a=t.split(`
|
|
281
|
-
`).filter(u=>u),i=Math.min(...a.map(u=>u.length-u.trimStart().length)),l=a.map(u=>u.slice(i)).map(u=>" ".repeat(this.indent*2)+u);for(const u of l)this.content.push(u)}compile(){var l;const t=Function,n=this==null?void 0:this.args,i=[...((l=this==null?void 0:this.content)!=null?l:[""]).map(u=>` ${u}`)];return new t(...n,i.join(`
|
|
282
|
-
`))}}const IP={major:4,minor:3,patch:5},ur=Se("$ZodType",(e,t)=>{var i,l,u;var n;e!=null||(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=IP;const a=[...(i=e._zod.def.checks)!=null?i:[]];e._zod.traits.has("$ZodCheck")&&a.unshift(e);for(const f of a)for(const h of f._zod.onattach)h(e);if(a.length===0)(l=(n=e._zod).deferred)!=null||(n.deferred=[]),(u=e._zod.deferred)==null||u.push(()=>{e._zod.run=e._zod.parse});else{const f=(g,x,y)=>{let k=t1(g),b;for(const T of x){if(T._zod.def.when){if(!T._zod.def.when(g))continue}else if(k)continue;const R=g.issues.length,N=T._zod.check(g);if(N instanceof Promise&&(y==null?void 0:y.async)===!1)throw new Kf;if(b||N instanceof Promise)b=(b!=null?b:Promise.resolve()).then(async()=>{await N,g.issues.length!==R&&(k||(k=t1(g,R)))});else{if(g.issues.length===R)continue;k||(k=t1(g,R))}}return b?b.then(()=>g):g},h=(g,x,y)=>{if(t1(g))return g.aborted=!0,g;const k=f(x,a,y);if(k instanceof Promise){if(y.async===!1)throw new Kf;return k.then(b=>e._zod.parse(b,y))}return e._zod.parse(k,y)};e._zod.run=(g,x)=>{if(x.skipChecks)return e._zod.parse(g,x);if(x.direction==="backward"){const k=e._zod.parse({value:g.value,issues:[]},{...x,skipChecks:!0});return k instanceof Promise?k.then(b=>h(b,g,x)):h(k,g,x)}const y=e._zod.parse(g,x);if(y instanceof Promise){if(x.async===!1)throw new Kf;return y.then(k=>f(k,a,x))}return f(y,a,x)}}kn(e,"~standard",()=>({validate:f=>{var h;try{const g=zj(e,f);return g.success?{value:g.data}:{issues:(h=g.error)==null?void 0:h.issues}}catch(g){return Hj(e,f).then(x=>{var y;return x.success?{value:x.data}:{issues:(y=x.error)==null?void 0:y.issues}})}},vendor:"zod",version:1}))}),j9=Se("$ZodString",(e,t)=>{var n,a,i;ur.init(e,t),e._zod.pattern=(i=[...(a=(n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)!=null?a:[]].pop())!=null?i:mP(e._zod.bag),e._zod.parse=(l,u)=>{if(t.coerce)try{l.value=String(l.value)}catch(f){}return typeof l.value=="string"||l.issues.push({expected:"string",code:"invalid_type",input:l.value,inst:e}),l}}),kr=Se("$ZodStringFormat",(e,t)=>{P4.init(e,t),j9.init(e,t)}),DP=Se("$ZodGUID",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=nP),kr.init(e,t)}),jP=Se("$ZodUUID",(e,t)=>{var n,a;if(t.version){const l={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(l===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);(n=t.pattern)!=null||(t.pattern=Nb(l))}else(a=t.pattern)!=null||(t.pattern=Nb());kr.init(e,t)}),PP=Se("$ZodEmail",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=rP),kr.init(e,t)}),FP=Se("$ZodURL",(e,t)=>{kr.init(e,t),e._zod.check=n=>{try{const a=n.value.trim(),i=new URL(a);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=a;return}catch(a){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),zP=Se("$ZodEmoji",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=oP()),kr.init(e,t)}),HP=Se("$ZodNanoID",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=eP),kr.init(e,t)}),UP=Se("$ZodCUID",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=Yj),kr.init(e,t)}),BP=Se("$ZodCUID2",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=Jj),kr.init(e,t)}),VP=Se("$ZodULID",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=Xj),kr.init(e,t)}),$P=Se("$ZodXID",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=Kj),kr.init(e,t)}),ZP=Se("$ZodKSUID",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=Qj),kr.init(e,t)}),WP=Se("$ZodISODateTime",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=hP(t)),kr.init(e,t)}),qP=Se("$ZodISODate",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=fP),kr.init(e,t)}),GP=Se("$ZodISOTime",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=pP(t)),kr.init(e,t)}),YP=Se("$ZodISODuration",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=tP),kr.init(e,t)}),JP=Se("$ZodIPv4",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=iP),kr.init(e,t),e._zod.bag.format="ipv4"}),XP=Se("$ZodIPv6",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=sP),kr.init(e,t),e._zod.bag.format="ipv6",e._zod.check=a=>{try{new URL(`http://[${a.value}]`)}catch(i){a.issues.push({code:"invalid_format",format:"ipv6",input:a.value,inst:e,continue:!t.abort})}}}),KP=Se("$ZodCIDRv4",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=lP),kr.init(e,t)}),QP=Se("$ZodCIDRv6",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=uP),kr.init(e,t),e._zod.check=a=>{const i=a.value.split("/");try{if(i.length!==2)throw new Error;const[l,u]=i;if(!u)throw new Error;const f=Number(u);if(`${f}`!==u)throw new Error;if(f<0||f>128)throw new Error;new URL(`http://[${l}]`)}catch(l){a.issues.push({code:"invalid_format",format:"cidrv6",input:a.value,inst:e,continue:!t.abort})}}});function zb(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch(t){return!1}}const eF=Se("$ZodBase64",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=cP),kr.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=a=>{zb(a.value)||a.issues.push({code:"invalid_format",format:"base64",input:a.value,inst:e,continue:!t.abort})}});function tF(e){if(!Lb.test(e))return!1;const t=e.replace(/[-_]/g,a=>a==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return zb(n)}const nF=Se("$ZodBase64URL",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=Lb),kr.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=a=>{tF(a.value)||a.issues.push({code:"invalid_format",format:"base64url",input:a.value,inst:e,continue:!t.abort})}}),rF=Se("$ZodE164",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=dP),kr.init(e,t)});function aF(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[a]=n;if(!a)return!1;const i=JSON.parse(atob(a));return!("typ"in i&&(i==null?void 0:i.typ)!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch(n){return!1}}const oF=Se("$ZodJWT",(e,t)=>{kr.init(e,t),e._zod.check=n=>{aF(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Hb=Se("$ZodNumber",(e,t)=>{var n;ur.init(e,t),e._zod.pattern=(n=e._zod.bag.pattern)!=null?n:Db,e._zod.parse=(a,i)=>{if(t.coerce)try{a.value=Number(a.value)}catch(f){}const l=a.value;if(typeof l=="number"&&!Number.isNaN(l)&&Number.isFinite(l))return a;const u=typeof l=="number"?Number.isNaN(l)?"NaN":Number.isFinite(l)?void 0:"Infinity":void 0;return a.issues.push({expected:"number",code:"invalid_type",input:l,inst:e,...u?{received:u}:{}}),a}}),iF=Se("$ZodNumberFormat",(e,t)=>{CP.init(e,t),Hb.init(e,t)}),sF=Se("$ZodBoolean",(e,t)=>{ur.init(e,t),e._zod.pattern=vP,e._zod.parse=(n,a)=>{if(t.coerce)try{n.value=!!n.value}catch(l){}const i=n.value;return typeof i=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),n}}),lF=Se("$ZodNull",(e,t)=>{ur.init(e,t),e._zod.pattern=yP,e._zod.values=new Set([null]),e._zod.parse=(n,a)=>{const i=n.value;return i===null||n.issues.push({expected:"null",code:"invalid_type",input:i,inst:e}),n}}),uF=Se("$ZodAny",(e,t)=>{ur.init(e,t),e._zod.parse=n=>n}),cF=Se("$ZodUnknown",(e,t)=>{ur.init(e,t),e._zod.parse=n=>n}),dF=Se("$ZodNever",(e,t)=>{ur.init(e,t),e._zod.parse=(n,a)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function Ub(e,t,n){e.issues.length&&t.issues.push(...n1(n,e.issues)),t.value[n]=e.value}const fF=Se("$ZodArray",(e,t)=>{ur.init(e,t),e._zod.parse=(n,a)=>{const i=n.value;if(!Array.isArray(i))return n.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),n;n.value=Array(i.length);const l=[];for(let u=0;u<i.length;u++){const f=i[u],h=t.element._zod.run({value:f,issues:[]},a);h instanceof Promise?l.push(h.then(g=>Ub(g,n,u))):Ub(h,n,u)}return l.length?Promise.all(l).then(()=>n):n}});function F4(e,t,n,a,i){if(e.issues.length){if(i&&!(n in a))return;t.issues.push(...n1(n,e.issues))}e.value===void 0?n in a&&(t.value[n]=void 0):t.value[n]=e.value}function Bb(e){var a,i,l,u;const t=Object.keys(e.shape);for(const f of t)if(!((u=(l=(i=(a=e.shape)==null?void 0:a[f])==null?void 0:i._zod)==null?void 0:l.traits)!=null&&u.has("$ZodType")))throw new Error(`Invalid element at key "${f}": expected a Zod schema`);const n=Rj(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Vb(e,t,n,a,i,l){const u=[],f=i.keySet,h=i.catchall._zod,g=h.def.type,x=h.optout==="optional";for(const y in t){if(f.has(y))continue;if(g==="never"){u.push(y);continue}const k=h.run({value:t[y],issues:[]},a);k instanceof Promise?e.push(k.then(b=>F4(b,n,y,t,x))):F4(k,n,y,t,x)}return u.length&&n.issues.push({code:"unrecognized_keys",keys:u,input:t,inst:l}),e.length?Promise.all(e).then(()=>n):n}const pF=Se("$ZodObject",(e,t)=>{ur.init(e,t);const n=Object.getOwnPropertyDescriptor(t,"shape");if(!(n!=null&&n.get)){const f=t.shape;Object.defineProperty(t,"shape",{get:()=>{const h={...f};return Object.defineProperty(t,"shape",{value:h}),h}})}const a=O4(()=>Bb(t));kn(e._zod,"propValues",()=>{var g;const f=t.shape,h={};for(const x in f){const y=f[x]._zod;if(y.values){(g=h[x])!=null||(h[x]=new Set);for(const k of y.values)h[x].add(k)}}return h});const i=Rh,l=t.catchall;let u;e._zod.parse=(f,h)=>{u!=null||(u=a.value);const g=f.value;if(!i(g))return f.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),f;f.value={};const x=[],y=u.shape;for(const k of u.keys){const b=y[k],T=b._zod.optout==="optional",R=b._zod.run({value:g[k],issues:[]},h);R instanceof Promise?x.push(R.then(N=>F4(N,f,k,g,T))):F4(R,f,k,g,T)}return l?Vb(x,g,f,h,a.value,e):x.length?Promise.all(x).then(()=>f):f}}),hF=Se("$ZodObjectJIT",(e,t)=>{pF.init(e,t);const n=e._zod.parse,a=O4(()=>Bb(t)),i=k=>{var z;const b=new OP(["shape","payload","ctx"]),T=a.value,R=j=>{const V=Eb(j);return`shape[${V}]._zod.run({ value: input[${V}], issues: [] }, ctx)`};b.write("const input = payload.value;");const N=Object.create(null);let O=0;for(const j of T.keys)N[j]=`key_${O++}`;b.write("const newResult = {};");for(const j of T.keys){const V=N[j],H=Eb(j),W=k[j],G=((z=W==null?void 0:W._zod)==null?void 0:z.optout)==="optional";b.write(`const ${V} = ${R(j)};`),G?b.write(`
|
|
283
|
-
if (${V}.issues.length) {
|
|
284
|
-
if (${H} in input) {
|
|
285
|
-
payload.issues = payload.issues.concat(${V}.issues.map(iss => ({
|
|
286
|
-
...iss,
|
|
287
|
-
path: iss.path ? [${H}, ...iss.path] : [${H}]
|
|
288
|
-
})));
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
if (${V}.value === undefined) {
|
|
293
|
-
if (${H} in input) {
|
|
294
|
-
newResult[${H}] = undefined;
|
|
295
|
-
}
|
|
296
|
-
} else {
|
|
297
|
-
newResult[${H}] = ${V}.value;
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
`):b.write(`
|
|
301
|
-
if (${V}.issues.length) {
|
|
302
|
-
payload.issues = payload.issues.concat(${V}.issues.map(iss => ({
|
|
303
|
-
...iss,
|
|
304
|
-
path: iss.path ? [${H}, ...iss.path] : [${H}]
|
|
305
|
-
})));
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
if (${V}.value === undefined) {
|
|
309
|
-
if (${H} in input) {
|
|
310
|
-
newResult[${H}] = undefined;
|
|
311
|
-
}
|
|
312
|
-
} else {
|
|
313
|
-
newResult[${H}] = ${V}.value;
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
`)}b.write("payload.value = newResult;"),b.write("return payload;");const P=b.compile();return(j,V)=>P(k,j,V)};let l;const u=Rh,f=!Cb.jitless,g=f&&_j.value,x=t.catchall;let y;e._zod.parse=(k,b)=>{y!=null||(y=a.value);const T=k.value;return u(T)?f&&g&&(b==null?void 0:b.async)===!1&&b.jitless!==!0?(l||(l=i(t.shape)),k=l(k,b),x?Vb([],T,k,b,y,e):k):n(k,b):(k.issues.push({expected:"object",code:"invalid_type",input:T,inst:e}),k)}});function $b(e,t,n,a){for(const l of e)if(l.issues.length===0)return t.value=l.value,t;const i=e.filter(l=>!t1(l));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(l=>l.issues.map(u=>Ju(u,a,qu())))}),t)}const Zb=Se("$ZodUnion",(e,t)=>{ur.init(e,t),kn(e._zod,"optin",()=>t.options.some(i=>i._zod.optin==="optional")?"optional":void 0),kn(e._zod,"optout",()=>t.options.some(i=>i._zod.optout==="optional")?"optional":void 0),kn(e._zod,"values",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),kn(e._zod,"pattern",()=>{if(t.options.every(i=>i._zod.pattern)){const i=t.options.map(l=>l._zod.pattern);return new RegExp(`^(${i.map(l=>L9(l.source)).join("|")})$`)}});const n=t.options.length===1,a=t.options[0]._zod.run;e._zod.parse=(i,l)=>{if(n)return a(i,l);let u=!1;const f=[];for(const h of t.options){const g=h._zod.run({value:i.value,issues:[]},l);if(g instanceof Promise)f.push(g),u=!0;else{if(g.issues.length===0)return g;f.push(g)}}return u?Promise.all(f).then(h=>$b(h,i,e,l)):$b(f,i,e,l)}}),mF=Se("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Zb.init(e,t);const n=e._zod.parse;kn(e._zod,"propValues",()=>{const i={};for(const l of t.options){const u=l._zod.propValues;if(!u||Object.keys(u).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(l)}"`);for(const[f,h]of Object.entries(u)){i[f]||(i[f]=new Set);for(const g of h)i[f].add(g)}}return i});const a=O4(()=>{var u;const i=t.options,l=new Map;for(const f of i){const h=(u=f._zod.propValues)==null?void 0:u[t.discriminator];if(!h||h.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(f)}"`);for(const g of h){if(l.has(g))throw new Error(`Duplicate discriminator value "${String(g)}"`);l.set(g,f)}}return l});e._zod.parse=(i,l)=>{const u=i.value;if(!Rh(u))return i.issues.push({code:"invalid_type",expected:"object",input:u,inst:e}),i;const f=a.value.get(u==null?void 0:u[t.discriminator]);return f?f._zod.run(i,l):t.unionFallback?n(i,l):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:u,path:[t.discriminator],inst:e}),i)}}),gF=Se("$ZodIntersection",(e,t)=>{ur.init(e,t),e._zod.parse=(n,a)=>{const i=n.value,l=t.left._zod.run({value:i,issues:[]},a),u=t.right._zod.run({value:i,issues:[]},a);return l instanceof Promise||u instanceof Promise?Promise.all([l,u]).then(([h,g])=>Wb(n,h,g)):Wb(n,l,u)}});function P9(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Qf(e)&&Qf(t)){const n=Object.keys(t),a=Object.keys(e).filter(l=>n.indexOf(l)!==-1),i={...e,...t};for(const l of a){const u=P9(e[l],t[l]);if(!u.valid)return{valid:!1,mergeErrorPath:[l,...u.mergeErrorPath]};i[l]=u.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let a=0;a<e.length;a++){const i=e[a],l=t[a],u=P9(i,l);if(!u.valid)return{valid:!1,mergeErrorPath:[a,...u.mergeErrorPath]};n.push(u.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Wb(e,t,n){const a=new Map;let i;for(const f of t.issues)if(f.code==="unrecognized_keys"){i!=null||(i=f);for(const h of f.keys)a.has(h)||a.set(h,{}),a.get(h).l=!0}else e.issues.push(f);for(const f of n.issues)if(f.code==="unrecognized_keys")for(const h of f.keys)a.has(h)||a.set(h,{}),a.get(h).r=!0;else e.issues.push(f);const l=[...a].filter(([,f])=>f.l&&f.r).map(([f])=>f);if(l.length&&i&&e.issues.push({...i,keys:l}),t1(e))return e;const u=P9(t.value,n.value);if(!u.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(u.mergeErrorPath)}`);return e.value=u.data,e}const vF=Se("$ZodRecord",(e,t)=>{ur.init(e,t),e._zod.parse=(n,a)=>{const i=n.value;if(!Qf(i))return n.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),n;const l=[],u=t.keyType._zod.values;if(u){n.value={};const f=new Set;for(const g of u)if(typeof g=="string"||typeof g=="number"||typeof g=="symbol"){f.add(typeof g=="number"?g.toString():g);const x=t.valueType._zod.run({value:i[g],issues:[]},a);x instanceof Promise?l.push(x.then(y=>{y.issues.length&&n.issues.push(...n1(g,y.issues)),n.value[g]=y.value})):(x.issues.length&&n.issues.push(...n1(g,x.issues)),n.value[g]=x.value)}let h;for(const g in i)f.has(g)||(h=h!=null?h:[],h.push(g));h&&h.length>0&&n.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:h})}else{n.value={};for(const f of Reflect.ownKeys(i)){if(f==="__proto__")continue;let h=t.keyType._zod.run({value:f,issues:[]},a);if(h instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof f=="string"&&Db.test(f)&&h.issues.length&&h.issues.some(y=>y.code==="invalid_type"&&y.expected==="number")){const y=t.keyType._zod.run({value:Number(f),issues:[]},a);if(y instanceof Promise)throw new Error("Async schemas not supported in object keys currently");y.issues.length===0&&(h=y)}if(h.issues.length){t.mode==="loose"?n.value[f]=i[f]:n.issues.push({code:"invalid_key",origin:"record",issues:h.issues.map(y=>Ju(y,a,qu())),input:f,path:[f],inst:e});continue}const x=t.valueType._zod.run({value:i[f],issues:[]},a);x instanceof Promise?l.push(x.then(y=>{y.issues.length&&n.issues.push(...n1(f,y.issues)),n.value[h.value]=y.value})):(x.issues.length&&n.issues.push(...n1(f,x.issues)),n.value[h.value]=x.value)}}return l.length?Promise.all(l).then(()=>n):n}}),yF=Se("$ZodEnum",(e,t)=>{ur.init(e,t);const n=Sb(t.entries),a=new Set(n);e._zod.values=a,e._zod.pattern=new RegExp(`^(${n.filter(i=>Tj.has(typeof i)).map(i=>typeof i=="string"?e1(i):i.toString()).join("|")})$`),e._zod.parse=(i,l)=>{const u=i.value;return a.has(u)||i.issues.push({code:"invalid_value",values:n,input:u,inst:e}),i}}),xF=Se("$ZodLiteral",(e,t)=>{if(ur.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(a=>typeof a=="string"?e1(a):a?e1(a.toString()):String(a)).join("|")})$`),e._zod.parse=(a,i)=>{const l=a.value;return n.has(l)||a.issues.push({code:"invalid_value",values:t.values,input:l,inst:e}),a}}),wF=Se("$ZodTransform",(e,t)=>{ur.init(e,t),e._zod.parse=(n,a)=>{if(a.direction==="backward")throw new bb(e.constructor.name);const i=t.transform(n.value,n);if(a.async)return(i instanceof Promise?i:Promise.resolve(i)).then(u=>(n.value=u,n));if(i instanceof Promise)throw new Kf;return n.value=i,n}});function qb(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const Gb=Se("$ZodOptional",(e,t)=>{ur.init(e,t),e._zod.optin="optional",e._zod.optout="optional",kn(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),kn(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${L9(n.source)})?$`):void 0}),e._zod.parse=(n,a)=>{if(t.innerType._zod.optin==="optional"){const i=t.innerType._zod.run(n,a);return i instanceof Promise?i.then(l=>qb(l,n.value)):qb(i,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,a)}}),bF=Se("$ZodExactOptional",(e,t)=>{Gb.init(e,t),kn(e._zod,"values",()=>t.innerType._zod.values),kn(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,a)=>t.innerType._zod.run(n,a)}),CF=Se("$ZodNullable",(e,t)=>{ur.init(e,t),kn(e._zod,"optin",()=>t.innerType._zod.optin),kn(e._zod,"optout",()=>t.innerType._zod.optout),kn(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${L9(n.source)}|null)$`):void 0}),kn(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,a)=>n.value===null?n:t.innerType._zod.run(n,a)}),SF=Se("$ZodDefault",(e,t)=>{ur.init(e,t),e._zod.optin="optional",kn(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,a)=>{if(a.direction==="backward")return t.innerType._zod.run(n,a);if(n.value===void 0)return n.value=t.defaultValue,n;const i=t.innerType._zod.run(n,a);return i instanceof Promise?i.then(l=>Yb(l,t)):Yb(i,t)}});function Yb(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const kF=Se("$ZodPrefault",(e,t)=>{ur.init(e,t),e._zod.optin="optional",kn(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,a)=>(a.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,a))}),EF=Se("$ZodNonOptional",(e,t)=>{ur.init(e,t),kn(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(a=>a!==void 0)):void 0}),e._zod.parse=(n,a)=>{const i=t.innerType._zod.run(n,a);return i instanceof Promise?i.then(l=>Jb(l,e)):Jb(i,e)}});function Jb(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const _F=Se("$ZodCatch",(e,t)=>{ur.init(e,t),kn(e._zod,"optin",()=>t.innerType._zod.optin),kn(e._zod,"optout",()=>t.innerType._zod.optout),kn(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,a)=>{if(a.direction==="backward")return t.innerType._zod.run(n,a);const i=t.innerType._zod.run(n,a);return i instanceof Promise?i.then(l=>(n.value=l.value,l.issues.length&&(n.value=t.catchValue({...n,error:{issues:l.issues.map(u=>Ju(u,a,qu()))},input:n.value}),n.issues=[]),n)):(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(l=>Ju(l,a,qu()))},input:n.value}),n.issues=[]),n)}}),TF=Se("$ZodPipe",(e,t)=>{ur.init(e,t),kn(e._zod,"values",()=>t.in._zod.values),kn(e._zod,"optin",()=>t.in._zod.optin),kn(e._zod,"optout",()=>t.out._zod.optout),kn(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,a)=>{if(a.direction==="backward"){const l=t.out._zod.run(n,a);return l instanceof Promise?l.then(u=>z4(u,t.in,a)):z4(l,t.in,a)}const i=t.in._zod.run(n,a);return i instanceof Promise?i.then(l=>z4(l,t.out,a)):z4(i,t.out,a)}});function z4(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const RF=Se("$ZodReadonly",(e,t)=>{ur.init(e,t),kn(e._zod,"propValues",()=>t.innerType._zod.propValues),kn(e._zod,"values",()=>t.innerType._zod.values),kn(e._zod,"optin",()=>{var n,a;return(a=(n=t.innerType)==null?void 0:n._zod)==null?void 0:a.optin}),kn(e._zod,"optout",()=>{var n,a;return(a=(n=t.innerType)==null?void 0:n._zod)==null?void 0:a.optout}),e._zod.parse=(n,a)=>{if(a.direction==="backward")return t.innerType._zod.run(n,a);const i=t.innerType._zod.run(n,a);return i instanceof Promise?i.then(Xb):Xb(i)}});function Xb(e){return e.value=Object.freeze(e.value),e}const MF=Se("$ZodLazy",(e,t)=>{ur.init(e,t),kn(e._zod,"innerType",()=>t.getter()),kn(e._zod,"pattern",()=>{var n,a;return(a=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:a.pattern}),kn(e._zod,"propValues",()=>{var n,a;return(a=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:a.propValues}),kn(e._zod,"optin",()=>{var n,a,i;return(i=(a=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:a.optin)!=null?i:void 0}),kn(e._zod,"optout",()=>{var n,a,i;return(i=(a=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:a.optout)!=null?i:void 0}),e._zod.parse=(n,a)=>e._zod.innerType._zod.run(n,a)}),AF=Se("$ZodCustom",(e,t)=>{Uo.init(e,t),ur.init(e,t),e._zod.parse=(n,a)=>n,e._zod.check=n=>{const a=n.value,i=t.fn(a);if(i instanceof Promise)return i.then(l=>Kb(l,n,a,e));Kb(i,n,a,e)}});function Kb(e,t,n,a){var i;if(!e){const l={code:"custom",input:n,inst:a,path:[...(i=a._zod.def.path)!=null?i:[]],continue:!a._zod.def.abort};a._zod.def.params&&(l.params=a._zod.def.params),t.issues.push(Mh(l))}}var Qb;class NF{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const a=n[0];return this._map.set(t,a),a&&typeof a=="object"&&"id"in a&&this._idmap.set(a.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){var a;const n=t._zod.parent;if(n){const i={...(a=this.get(n))!=null?a:{}};delete i.id;const l={...i,...this._map.get(t)};return Object.keys(l).length?l:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function LF(){return new NF}(qN=(Qb=globalThis).__zod_globalRegistry)!=null||(Qb.__zod_globalRegistry=LF());const Ah=globalThis.__zod_globalRegistry;function OF(e,t){return new e({type:"string",...wt(t)})}function IF(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...wt(t)})}function eC(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...wt(t)})}function DF(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...wt(t)})}function jF(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...wt(t)})}function PF(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...wt(t)})}function FF(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...wt(t)})}function zF(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...wt(t)})}function HF(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...wt(t)})}function UF(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...wt(t)})}function BF(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...wt(t)})}function VF(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...wt(t)})}function $F(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...wt(t)})}function ZF(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...wt(t)})}function WF(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...wt(t)})}function qF(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...wt(t)})}function GF(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...wt(t)})}function YF(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...wt(t)})}function JF(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...wt(t)})}function XF(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...wt(t)})}function KF(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...wt(t)})}function QF(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...wt(t)})}function ez(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...wt(t)})}function tz(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...wt(t)})}function nz(e,t){return new e({type:"string",format:"date",check:"string_format",...wt(t)})}function rz(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...wt(t)})}function az(e,t){return new e({type:"string",format:"duration",check:"string_format",...wt(t)})}function oz(e,t){return new e({type:"number",checks:[],...wt(t)})}function iz(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...wt(t)})}function sz(e,t){return new e({type:"boolean",...wt(t)})}function lz(e,t){return new e({type:"null",...wt(t)})}function uz(e){return new e({type:"any"})}function cz(e){return new e({type:"unknown"})}function dz(e,t){return new e({type:"never",...wt(t)})}function tC(e,t){return new Pb({check:"less_than",...wt(t),value:e,inclusive:!1})}function F9(e,t){return new Pb({check:"less_than",...wt(t),value:e,inclusive:!0})}function nC(e,t){return new Fb({check:"greater_than",...wt(t),value:e,inclusive:!1})}function z9(e,t){return new Fb({check:"greater_than",...wt(t),value:e,inclusive:!0})}function rC(e,t){return new bP({check:"multiple_of",...wt(t),value:e})}function aC(e,t){return new SP({check:"max_length",...wt(t),maximum:e})}function H4(e,t){return new kP({check:"min_length",...wt(t),minimum:e})}function oC(e,t){return new EP({check:"length_equals",...wt(t),length:e})}function fz(e,t){return new _P({check:"string_format",format:"regex",...wt(t),pattern:e})}function pz(e){return new TP({check:"string_format",format:"lowercase",...wt(e)})}function hz(e){return new RP({check:"string_format",format:"uppercase",...wt(e)})}function mz(e,t){return new MP({check:"string_format",format:"includes",...wt(t),includes:e})}function gz(e,t){return new AP({check:"string_format",format:"starts_with",...wt(t),prefix:e})}function vz(e,t){return new NP({check:"string_format",format:"ends_with",...wt(t),suffix:e})}function r1(e){return new LP({check:"overwrite",tx:e})}function yz(e){return r1(t=>t.normalize(e))}function xz(){return r1(e=>e.trim())}function wz(){return r1(e=>e.toLowerCase())}function bz(){return r1(e=>e.toUpperCase())}function Cz(){return r1(e=>Ej(e))}function Sz(e,t,n){return new e({type:"array",element:t,...wt(n)})}function kz(e,t,n){var l;const a=wt(n);return(l=a.abort)!=null||(a.abort=!0),new e({type:"custom",check:"custom",fn:t,...a})}function Ez(e,t,n){return new e({type:"custom",check:"custom",fn:t,...wt(n)})}function _z(e){const t=Tz(n=>(n.addIssue=a=>{var i,l,u,f;if(typeof a=="string")n.issues.push(Mh(a,n.value,t._zod.def));else{const h=a;h.fatal&&(h.continue=!1),(i=h.code)!=null||(h.code="custom"),(l=h.input)!=null||(h.input=n.value),(u=h.inst)!=null||(h.inst=t),(f=h.continue)!=null||(h.continue=!t._zod.def.abort),n.issues.push(Mh(h))}},e(n.value,n)));return t}function Tz(e,t){const n=new Uo({check:"custom",...wt(t)});return n._zod.check=e,n}function U4(e){var n,a,i,l,u,f,h,g,x;let t=(n=e==null?void 0:e.target)!=null?n:"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:(a=e.processors)!=null?a:{},metadataRegistry:(i=e==null?void 0:e.metadata)!=null?i:Ah,target:t,unrepresentable:(l=e==null?void 0:e.unrepresentable)!=null?l:"throw",override:(u=e==null?void 0:e.override)!=null?u:()=>{},io:(f=e==null?void 0:e.io)!=null?f:"output",counter:0,seen:new Map,cycles:(h=e==null?void 0:e.cycles)!=null?h:"ref",reused:(g=e==null?void 0:e.reused)!=null?g:"inline",external:(x=e==null?void 0:e.external)!=null?x:void 0}}function cr(e,t,n={path:[],schemaPath:[]}){var x,y,k;var a;const i=e._zod.def,l=t.seen.get(e);if(l)return l.count++,n.schemaPath.includes(e)&&(l.cycle=n.path),l.schema;const u={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,u);const f=(y=(x=e._zod).toJSONSchema)==null?void 0:y.call(x);if(f)u.schema=f;else{const b={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,u.schema,b);else{const R=u.schema,N=t.processors[i.type];if(!N)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);N(e,t,R,b)}const T=e._zod.parent;T&&(u.ref||(u.ref=T),cr(T,t,b),t.seen.get(T).isParent=!0)}const h=t.metadataRegistry.get(e);return h&&Object.assign(u.schema,h),t.io==="input"&&xo(e)&&(delete u.schema.examples,delete u.schema.default),t.io==="input"&&u.schema._prefault&&((k=(a=u.schema).default)!=null||(a.default=u.schema._prefault)),delete u.schema._prefault,t.seen.get(e).schema}function B4(e,t){var u,f,h,g;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const a=new Map;for(const x of e.seen.entries()){const y=(u=e.metadataRegistry.get(x[0]))==null?void 0:u.id;if(y){const k=a.get(y);if(k&&k!==x[0])throw new Error(`Duplicate schema id "${y}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);a.set(y,x[0])}}const i=x=>{var R,N,O,P,z;const y=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const j=(R=e.external.registry.get(x[0]))==null?void 0:R.id,V=(N=e.external.uri)!=null?N:W=>W;if(j)return{ref:V(j)};const H=(P=(O=x[1].defId)!=null?O:x[1].schema.id)!=null?P:`schema${e.counter++}`;return x[1].defId=H,{defId:H,ref:`${V("__shared")}#/${y}/${H}`}}if(x[1]===n)return{ref:"#"};const b=`#/${y}/`,T=(z=x[1].schema.id)!=null?z:`__schema${e.counter++}`;return{defId:T,ref:b+T}},l=x=>{if(x[1].schema.$ref)return;const y=x[1],{ref:k,defId:b}=i(x);y.def={...y.schema},b&&(y.defId=b);const T=y.schema;for(const R in T)delete T[R];T.$ref=k};if(e.cycles==="throw")for(const x of e.seen.entries()){const y=x[1];if(y.cycle)throw new Error(`Cycle detected: #/${(f=y.cycle)==null?void 0:f.join("/")}/<root>
|
|
317
|
-
|
|
318
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const x of e.seen.entries()){const y=x[1];if(t===x[0]){l(x);continue}if(e.external){const b=(h=e.external.registry.get(x[0]))==null?void 0:h.id;if(t!==x[0]&&b){l(x);continue}}if((g=e.metadataRegistry.get(x[0]))==null?void 0:g.id){l(x);continue}if(y.cycle){l(x);continue}if(y.count>1&&e.reused==="ref"){l(x);continue}}}function V4(e,t){var u,f,h,g,x;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const a=y=>{var O,P,z;const k=e.seen.get(y);if(k.ref===null)return;const b=(O=k.def)!=null?O:k.schema,T={...b},R=k.ref;if(k.ref=null,R){a(R);const j=e.seen.get(R),V=j.schema;if(V.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(b.allOf=(P=b.allOf)!=null?P:[],b.allOf.push(V)):Object.assign(b,V),Object.assign(b,T),y._zod.parent===R)for(const W in b)W==="$ref"||W==="allOf"||W in T||delete b[W];if(V.$ref)for(const W in b)W==="$ref"||W==="allOf"||W in j.def&&JSON.stringify(b[W])===JSON.stringify(j.def[W])&&delete b[W]}const N=y._zod.parent;if(N&&N!==R){a(N);const j=e.seen.get(N);if(j!=null&&j.schema.$ref&&(b.$ref=j.schema.$ref,j.def))for(const V in b)V==="$ref"||V==="allOf"||V in j.def&&JSON.stringify(b[V])===JSON.stringify(j.def[V])&&delete b[V]}e.override({zodSchema:y,jsonSchema:b,path:(z=k.path)!=null?z:[]})};for(const y of[...e.seen.entries()].reverse())a(y[0]);const i={};if(e.target==="draft-2020-12"?i.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?i.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?i.$schema="http://json-schema.org/draft-04/schema#":e.target,(u=e.external)!=null&&u.uri){const y=(f=e.external.registry.get(t))==null?void 0:f.id;if(!y)throw new Error("Schema is missing an `id` property");i.$id=e.external.uri(y)}Object.assign(i,(h=n.def)!=null?h:n.schema);const l=(x=(g=e.external)==null?void 0:g.defs)!=null?x:{};for(const y of e.seen.entries()){const k=y[1];k.def&&k.defId&&(l[k.defId]=k.def)}e.external||Object.keys(l).length>0&&(e.target==="draft-2020-12"?i.$defs=l:i.definitions=l);try{const y=JSON.parse(JSON.stringify(i));return Object.defineProperty(y,"~standard",{value:{...t["~standard"],jsonSchema:{input:$4(t,"input",e.processors),output:$4(t,"output",e.processors)}},enumerable:!1,writable:!1}),y}catch(y){throw new Error("Error converting schema to JSON.")}}function xo(e,t){const n=t!=null?t:{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const a=e._zod.def;if(a.type==="transform")return!0;if(a.type==="array")return xo(a.element,n);if(a.type==="set")return xo(a.valueType,n);if(a.type==="lazy")return xo(a.getter(),n);if(a.type==="promise"||a.type==="optional"||a.type==="nonoptional"||a.type==="nullable"||a.type==="readonly"||a.type==="default"||a.type==="prefault")return xo(a.innerType,n);if(a.type==="intersection")return xo(a.left,n)||xo(a.right,n);if(a.type==="record"||a.type==="map")return xo(a.keyType,n)||xo(a.valueType,n);if(a.type==="pipe")return xo(a.in,n)||xo(a.out,n);if(a.type==="object"){for(const i in a.shape)if(xo(a.shape[i],n))return!0;return!1}if(a.type==="union"){for(const i of a.options)if(xo(i,n))return!0;return!1}if(a.type==="tuple"){for(const i of a.items)if(xo(i,n))return!0;return!!(a.rest&&xo(a.rest,n))}return!1}const Rz=(e,t={})=>n=>{const a=U4({...n,processors:t});return cr(e,a),B4(a,e),V4(a,e)},$4=(e,t,n={})=>a=>{const{libraryOptions:i,target:l}=a!=null?a:{},u=U4({...i!=null?i:{},target:l,io:t,processors:n});return cr(e,u),B4(u,e),V4(u,e)},Mz={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},iC=(e,t,n,a)=>{var x;const i=n;i.type="string";const{minimum:l,maximum:u,format:f,patterns:h,contentEncoding:g}=e._zod.bag;if(typeof l=="number"&&(i.minLength=l),typeof u=="number"&&(i.maxLength=u),f&&(i.format=(x=Mz[f])!=null?x:f,i.format===""&&delete i.format,f==="time"&&delete i.format),g&&(i.contentEncoding=g),h&&h.size>0){const y=[...h];y.length===1?i.pattern=y[0].source:y.length>1&&(i.allOf=[...y.map(k=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:k.source}))])}},sC=(e,t,n,a)=>{const i=n,{minimum:l,maximum:u,format:f,multipleOf:h,exclusiveMaximum:g,exclusiveMinimum:x}=e._zod.bag;typeof f=="string"&&f.includes("int")?i.type="integer":i.type="number",typeof x=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(i.minimum=x,i.exclusiveMinimum=!0):i.exclusiveMinimum=x),typeof l=="number"&&(i.minimum=l,typeof x=="number"&&t.target!=="draft-04"&&(x>=l?delete i.minimum:delete i.exclusiveMinimum)),typeof g=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(i.maximum=g,i.exclusiveMaximum=!0):i.exclusiveMaximum=g),typeof u=="number"&&(i.maximum=u,typeof g=="number"&&t.target!=="draft-04"&&(g<=u?delete i.maximum:delete i.exclusiveMaximum)),typeof h=="number"&&(i.multipleOf=h)},lC=(e,t,n,a)=>{n.type="boolean"},Az=(e,t,n,a)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},Nz=(e,t,n,a)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},uC=(e,t,n,a)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},Lz=(e,t,n,a)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},Oz=(e,t,n,a)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},cC=(e,t,n,a)=>{n.not={}},dC=(e,t,n,a)=>{},fC=(e,t,n,a)=>{},Iz=(e,t,n,a)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},pC=(e,t,n,a)=>{const i=e._zod.def,l=Sb(i.entries);l.every(u=>typeof u=="number")&&(n.type="number"),l.every(u=>typeof u=="string")&&(n.type="string"),n.enum=l},hC=(e,t,n,a)=>{const i=e._zod.def,l=[];for(const u of i.values)if(u===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof u=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");l.push(Number(u))}else l.push(u);if(l.length!==0)if(l.length===1){const u=l[0];n.type=u===null?"null":typeof u,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[u]:n.const=u}else l.every(u=>typeof u=="number")&&(n.type="number"),l.every(u=>typeof u=="string")&&(n.type="string"),l.every(u=>typeof u=="boolean")&&(n.type="boolean"),l.every(u=>u===null)&&(n.type="null"),n.enum=l},Dz=(e,t,n,a)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},jz=(e,t,n,a)=>{const i=n,l=e._zod.pattern;if(!l)throw new Error("Pattern not found in template literal");i.type="string",i.pattern=l.source},Pz=(e,t,n,a)=>{const i=n,l={type:"string",format:"binary",contentEncoding:"binary"},{minimum:u,maximum:f,mime:h}=e._zod.bag;u!==void 0&&(l.minLength=u),f!==void 0&&(l.maxLength=f),h?h.length===1?(l.contentMediaType=h[0],Object.assign(i,l)):(Object.assign(i,l),i.anyOf=h.map(g=>({contentMediaType:g}))):Object.assign(i,l)},Fz=(e,t,n,a)=>{n.type="boolean"},mC=(e,t,n,a)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},zz=(e,t,n,a)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},gC=(e,t,n,a)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Hz=(e,t,n,a)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},Uz=(e,t,n,a)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},vC=(e,t,n,a)=>{const i=n,l=e._zod.def,{minimum:u,maximum:f}=e._zod.bag;typeof u=="number"&&(i.minItems=u),typeof f=="number"&&(i.maxItems=f),i.type="array",i.items=cr(l.element,t,{...a,path:[...a.path,"items"]})},yC=(e,t,n,a)=>{var g;const i=n,l=e._zod.def;i.type="object",i.properties={};const u=l.shape;for(const x in u)i.properties[x]=cr(u[x],t,{...a,path:[...a.path,"properties",x]});const f=new Set(Object.keys(u)),h=new Set([...f].filter(x=>{const y=l.shape[x]._zod;return t.io==="input"?y.optin===void 0:y.optout===void 0}));h.size>0&&(i.required=Array.from(h)),((g=l.catchall)==null?void 0:g._zod.def.type)==="never"?i.additionalProperties=!1:l.catchall?l.catchall&&(i.additionalProperties=cr(l.catchall,t,{...a,path:[...a.path,"additionalProperties"]})):t.io==="output"&&(i.additionalProperties=!1)},xC=(e,t,n,a)=>{const i=e._zod.def,l=i.inclusive===!1,u=i.options.map((f,h)=>cr(f,t,{...a,path:[...a.path,l?"oneOf":"anyOf",h]}));l?n.oneOf=u:n.anyOf=u},wC=(e,t,n,a)=>{const i=e._zod.def,l=cr(i.left,t,{...a,path:[...a.path,"allOf",0]}),u=cr(i.right,t,{...a,path:[...a.path,"allOf",1]}),f=g=>"allOf"in g&&Object.keys(g).length===1,h=[...f(l)?l.allOf:[l],...f(u)?u.allOf:[u]];n.allOf=h},Bz=(e,t,n,a)=>{const i=n,l=e._zod.def;i.type="array";const u=t.target==="draft-2020-12"?"prefixItems":"items",f=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",h=l.items.map((k,b)=>cr(k,t,{...a,path:[...a.path,u,b]})),g=l.rest?cr(l.rest,t,{...a,path:[...a.path,f,...t.target==="openapi-3.0"?[l.items.length]:[]]}):null;t.target==="draft-2020-12"?(i.prefixItems=h,g&&(i.items=g)):t.target==="openapi-3.0"?(i.items={anyOf:h},g&&i.items.anyOf.push(g),i.minItems=h.length,g||(i.maxItems=h.length)):(i.items=h,g&&(i.additionalItems=g));const{minimum:x,maximum:y}=e._zod.bag;typeof x=="number"&&(i.minItems=x),typeof y=="number"&&(i.maxItems=y)},bC=(e,t,n,a)=>{const i=n,l=e._zod.def;i.type="object";const u=l.keyType,f=u._zod.bag,h=f==null?void 0:f.patterns;if(l.mode==="loose"&&h&&h.size>0){const x=cr(l.valueType,t,{...a,path:[...a.path,"patternProperties","*"]});i.patternProperties={};for(const y of h)i.patternProperties[y.source]=x}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(i.propertyNames=cr(l.keyType,t,{...a,path:[...a.path,"propertyNames"]})),i.additionalProperties=cr(l.valueType,t,{...a,path:[...a.path,"additionalProperties"]});const g=u._zod.values;if(g){const x=[...g].filter(y=>typeof y=="string"||typeof y=="number");x.length>0&&(i.required=x)}},CC=(e,t,n,a)=>{const i=e._zod.def,l=cr(i.innerType,t,a),u=t.seen.get(e);t.target==="openapi-3.0"?(u.ref=i.innerType,n.nullable=!0):n.anyOf=[l,{type:"null"}]},SC=(e,t,n,a)=>{const i=e._zod.def;cr(i.innerType,t,a);const l=t.seen.get(e);l.ref=i.innerType},kC=(e,t,n,a)=>{const i=e._zod.def;cr(i.innerType,t,a);const l=t.seen.get(e);l.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},EC=(e,t,n,a)=>{const i=e._zod.def;cr(i.innerType,t,a);const l=t.seen.get(e);l.ref=i.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},_C=(e,t,n,a)=>{const i=e._zod.def;cr(i.innerType,t,a);const l=t.seen.get(e);l.ref=i.innerType;let u;try{u=i.catchValue(void 0)}catch(f){throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=u},TC=(e,t,n,a)=>{const i=e._zod.def,l=t.io==="input"?i.in._zod.def.type==="transform"?i.out:i.in:i.out;cr(l,t,a);const u=t.seen.get(e);u.ref=l},RC=(e,t,n,a)=>{const i=e._zod.def;cr(i.innerType,t,a);const l=t.seen.get(e);l.ref=i.innerType,n.readOnly=!0},Vz=(e,t,n,a)=>{const i=e._zod.def;cr(i.innerType,t,a);const l=t.seen.get(e);l.ref=i.innerType},H9=(e,t,n,a)=>{const i=e._zod.def;cr(i.innerType,t,a);const l=t.seen.get(e);l.ref=i.innerType},MC=(e,t,n,a)=>{const i=e._zod.innerType;cr(i,t,a);const l=t.seen.get(e);l.ref=i},AC={string:iC,number:sC,boolean:lC,bigint:Az,symbol:Nz,null:uC,undefined:Lz,void:Oz,never:cC,any:dC,unknown:fC,date:Iz,enum:pC,literal:hC,nan:Dz,template_literal:jz,file:Pz,success:Fz,custom:mC,function:zz,transform:gC,map:Hz,set:Uz,array:vC,object:yC,union:xC,intersection:wC,tuple:Bz,record:bC,nullable:CC,nonoptional:SC,default:kC,prefault:EC,catch:_C,pipe:TC,readonly:RC,promise:Vz,optional:H9,lazy:MC};function $z(e,t){if("_idmap"in e){const a=e,i=U4({...t,processors:AC}),l={};for(const h of a._idmap.entries()){const[g,x]=h;cr(x,i)}const u={},f={registry:a,uri:t==null?void 0:t.uri,defs:l};i.external=f;for(const h of a._idmap.entries()){const[g,x]=h;B4(i,x),u[g]=V4(i,x)}if(Object.keys(l).length>0){const h=i.target==="draft-2020-12"?"$defs":"definitions";u.__shared={[h]:l}}return{schemas:u}}const n=U4({...t,processors:AC});return cr(e,n),B4(n,e),V4(n,e)}const Zz=Se("ZodISODateTime",(e,t)=>{WP.init(e,t),_r.init(e,t)});function Wz(e){return tz(Zz,e)}const qz=Se("ZodISODate",(e,t)=>{qP.init(e,t),_r.init(e,t)});function Gz(e){return nz(qz,e)}const Yz=Se("ZodISOTime",(e,t)=>{GP.init(e,t),_r.init(e,t)});function Jz(e){return rz(Yz,e)}const Xz=Se("ZodISODuration",(e,t)=>{YP.init(e,t),_r.init(e,t)});function Kz(e){return az(Xz,e)}const Di=Se("ZodError",(e,t)=>{Mb.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Fj(e,n)},flatten:{value:n=>Pj(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,A9,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,A9,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),Qz=I9(Di),eH=D9(Di),tH=D4(Di),NC=j4(Di),nH=Uj(Di),rH=Bj(Di),aH=Vj(Di),oH=$j(Di),iH=Zj(Di),sH=Wj(Di),lH=qj(Di),uH=Gj(Di),dr=Se("ZodType",(e,t)=>(ur.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:$4(e,"input"),output:$4(e,"output")}}),e.toJSONSchema=Rz(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>{var a;return e.clone(Gu(t,{checks:[...(a=t.checks)!=null?a:[],...n.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),{parent:!0})},e.with=e.check,e.clone=(n,a)=>Yu(e,n,a),e.brand=()=>e,e.register=(n,a)=>(n.add(e,a),e),e.parse=(n,a)=>Qz(e,n,a,{callee:e.parse}),e.safeParse=(n,a)=>tH(e,n,a),e.parseAsync=async(n,a)=>eH(e,n,a,{callee:e.parseAsync}),e.safeParseAsync=async(n,a)=>NC(e,n,a),e.spa=e.safeParseAsync,e.encode=(n,a)=>nH(e,n,a),e.decode=(n,a)=>rH(e,n,a),e.encodeAsync=async(n,a)=>aH(e,n,a),e.decodeAsync=async(n,a)=>oH(e,n,a),e.safeEncode=(n,a)=>iH(e,n,a),e.safeDecode=(n,a)=>sH(e,n,a),e.safeEncodeAsync=async(n,a)=>lH(e,n,a),e.safeDecodeAsync=async(n,a)=>uH(e,n,a),e.refine=(n,a)=>e.check(oU(n,a)),e.superRefine=n=>e.check(iU(n)),e.overwrite=n=>e.check(r1(n)),e.optional=()=>B9(e),e.exactOptional=()=>ZH(e),e.nullable=()=>HC(e),e.nullish=()=>B9(HC(e)),e.nonoptional=n=>XH(e,n),e.array=()=>Hn(e),e.or=n=>ua([e,n]),e.and=n=>zH(e,n),e.transform=n=>BC(e,VH(n)),e.default=n=>GH(e,n),e.prefault=n=>JH(e,n),e.catch=n=>QH(e,n),e.pipe=n=>BC(e,n),e.readonly=()=>nU(e),e.describe=n=>{const a=e.clone();return Ah.add(a,{description:n}),a},Object.defineProperty(e,"description",{get(){var n;return(n=Ah.get(e))==null?void 0:n.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return Ah.get(e);const a=e.clone();return Ah.add(a,n[0]),a},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=n=>n(e),e)),LC=Se("_ZodString",(e,t)=>{var a,i,l;j9.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(u,f,h)=>iC(e,u,f);const n=e._zod.bag;e.format=(a=n.format)!=null?a:null,e.minLength=(i=n.minimum)!=null?i:null,e.maxLength=(l=n.maximum)!=null?l:null,e.regex=(...u)=>e.check(fz(...u)),e.includes=(...u)=>e.check(mz(...u)),e.startsWith=(...u)=>e.check(gz(...u)),e.endsWith=(...u)=>e.check(vz(...u)),e.min=(...u)=>e.check(H4(...u)),e.max=(...u)=>e.check(aC(...u)),e.length=(...u)=>e.check(oC(...u)),e.nonempty=(...u)=>e.check(H4(1,...u)),e.lowercase=u=>e.check(pz(u)),e.uppercase=u=>e.check(hz(u)),e.trim=()=>e.check(xz()),e.normalize=(...u)=>e.check(yz(...u)),e.toLowerCase=()=>e.check(wz()),e.toUpperCase=()=>e.check(bz()),e.slugify=()=>e.check(Cz())}),cH=Se("ZodString",(e,t)=>{j9.init(e,t),LC.init(e,t),e.email=n=>e.check(IF(dH,n)),e.url=n=>e.check(zF(fH,n)),e.jwt=n=>e.check(ez(TH,n)),e.emoji=n=>e.check(HF(pH,n)),e.guid=n=>e.check(eC(OC,n)),e.uuid=n=>e.check(DF(Z4,n)),e.uuidv4=n=>e.check(jF(Z4,n)),e.uuidv6=n=>e.check(PF(Z4,n)),e.uuidv7=n=>e.check(FF(Z4,n)),e.nanoid=n=>e.check(UF(hH,n)),e.guid=n=>e.check(eC(OC,n)),e.cuid=n=>e.check(BF(mH,n)),e.cuid2=n=>e.check(VF(gH,n)),e.ulid=n=>e.check($F(vH,n)),e.base64=n=>e.check(XF(kH,n)),e.base64url=n=>e.check(KF(EH,n)),e.xid=n=>e.check(ZF(yH,n)),e.ksuid=n=>e.check(WF(xH,n)),e.ipv4=n=>e.check(qF(wH,n)),e.ipv6=n=>e.check(GF(bH,n)),e.cidrv4=n=>e.check(YF(CH,n)),e.cidrv6=n=>e.check(JF(SH,n)),e.e164=n=>e.check(QF(_H,n)),e.datetime=n=>e.check(Wz(n)),e.date=n=>e.check(Gz(n)),e.time=n=>e.check(Jz(n)),e.duration=n=>e.check(Kz(n))});function ee(e){return OF(cH,e)}const _r=Se("ZodStringFormat",(e,t)=>{kr.init(e,t),LC.init(e,t)}),dH=Se("ZodEmail",(e,t)=>{PP.init(e,t),_r.init(e,t)}),OC=Se("ZodGUID",(e,t)=>{DP.init(e,t),_r.init(e,t)}),Z4=Se("ZodUUID",(e,t)=>{jP.init(e,t),_r.init(e,t)}),fH=Se("ZodURL",(e,t)=>{FP.init(e,t),_r.init(e,t)}),pH=Se("ZodEmoji",(e,t)=>{zP.init(e,t),_r.init(e,t)}),hH=Se("ZodNanoID",(e,t)=>{HP.init(e,t),_r.init(e,t)}),mH=Se("ZodCUID",(e,t)=>{UP.init(e,t),_r.init(e,t)}),gH=Se("ZodCUID2",(e,t)=>{BP.init(e,t),_r.init(e,t)}),vH=Se("ZodULID",(e,t)=>{VP.init(e,t),_r.init(e,t)}),yH=Se("ZodXID",(e,t)=>{$P.init(e,t),_r.init(e,t)}),xH=Se("ZodKSUID",(e,t)=>{ZP.init(e,t),_r.init(e,t)}),wH=Se("ZodIPv4",(e,t)=>{JP.init(e,t),_r.init(e,t)}),bH=Se("ZodIPv6",(e,t)=>{XP.init(e,t),_r.init(e,t)}),CH=Se("ZodCIDRv4",(e,t)=>{KP.init(e,t),_r.init(e,t)}),SH=Se("ZodCIDRv6",(e,t)=>{QP.init(e,t),_r.init(e,t)}),kH=Se("ZodBase64",(e,t)=>{eF.init(e,t),_r.init(e,t)}),EH=Se("ZodBase64URL",(e,t)=>{nF.init(e,t),_r.init(e,t)}),_H=Se("ZodE164",(e,t)=>{rF.init(e,t),_r.init(e,t)}),TH=Se("ZodJWT",(e,t)=>{oF.init(e,t),_r.init(e,t)}),IC=Se("ZodNumber",(e,t)=>{var a,i,l,u,f,h,g,x,y;Hb.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(k,b,T)=>sC(e,k,b),e.gt=(k,b)=>e.check(nC(k,b)),e.gte=(k,b)=>e.check(z9(k,b)),e.min=(k,b)=>e.check(z9(k,b)),e.lt=(k,b)=>e.check(tC(k,b)),e.lte=(k,b)=>e.check(F9(k,b)),e.max=(k,b)=>e.check(F9(k,b)),e.int=k=>e.check(DC(k)),e.safe=k=>e.check(DC(k)),e.positive=k=>e.check(nC(0,k)),e.nonnegative=k=>e.check(z9(0,k)),e.negative=k=>e.check(tC(0,k)),e.nonpositive=k=>e.check(F9(0,k)),e.multipleOf=(k,b)=>e.check(rC(k,b)),e.step=(k,b)=>e.check(rC(k,b)),e.finite=()=>e;const n=e._zod.bag;e.minValue=(l=Math.max((a=n.minimum)!=null?a:Number.NEGATIVE_INFINITY,(i=n.exclusiveMinimum)!=null?i:Number.NEGATIVE_INFINITY))!=null?l:null,e.maxValue=(h=Math.min((u=n.maximum)!=null?u:Number.POSITIVE_INFINITY,(f=n.exclusiveMaximum)!=null?f:Number.POSITIVE_INFINITY))!=null?h:null,e.isInt=((g=n.format)!=null?g:"").includes("int")||Number.isSafeInteger((x=n.multipleOf)!=null?x:.5),e.isFinite=!0,e.format=(y=n.format)!=null?y:null});function or(e){return oz(IC,e)}const RH=Se("ZodNumberFormat",(e,t)=>{iF.init(e,t),IC.init(e,t)});function DC(e){return iz(RH,e)}const MH=Se("ZodBoolean",(e,t)=>{sF.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(n,a,i)=>lC(e,n,a)});function fn(e){return sz(MH,e)}const AH=Se("ZodNull",(e,t)=>{lF.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(n,a,i)=>uC(e,n,a)});function NH(e){return lz(AH,e)}const LH=Se("ZodAny",(e,t)=>{uF.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(n,a,i)=>dC()});function Wl(){return uz(LH)}const OH=Se("ZodUnknown",(e,t)=>{cF.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(n,a,i)=>fC()});function Bo(){return cz(OH)}const IH=Se("ZodNever",(e,t)=>{dF.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(n,a,i)=>cC(e,n,a)});function jC(e){return dz(IH,e)}const DH=Se("ZodArray",(e,t)=>{fF.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(n,a,i)=>vC(e,n,a,i),e.element=t.element,e.min=(n,a)=>e.check(H4(n,a)),e.nonempty=n=>e.check(H4(1,n)),e.max=(n,a)=>e.check(aC(n,a)),e.length=(n,a)=>e.check(oC(n,a)),e.unwrap=()=>e.element});function Hn(e,t){return Sz(DH,e,t)}const PC=Se("ZodObject",(e,t)=>{hF.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(n,a,i)=>yC(e,n,a,i),kn(e,"shape",()=>t.shape),e.keyof=()=>vn(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Bo()}),e.loose=()=>e.clone({...e._zod.def,catchall:Bo()}),e.strict=()=>e.clone({...e._zod.def,catchall:jC()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>Lj(e,n),e.safeExtend=n=>Oj(e,n),e.merge=n=>Ij(e,n),e.pick=n=>Aj(e,n),e.omit=n=>Nj(e,n),e.partial=(...n)=>Dj(zC,e,n[0]),e.required=(...n)=>jj(UC,e,n[0])});function $e(e,t){const n={type:"object",shape:e!=null?e:{},...wt(t)};return new PC(n)}function Tr(e,t){return new PC({type:"object",shape:e,catchall:jC(),...wt(t)})}const FC=Se("ZodUnion",(e,t)=>{Zb.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(n,a,i)=>xC(e,n,a,i),e.options=t.options});function ua(e,t){return new FC({type:"union",options:e,...wt(t)})}const jH=Se("ZodDiscriminatedUnion",(e,t)=>{FC.init(e,t),mF.init(e,t)});function PH(e,t,n){return new jH({type:"union",options:t,discriminator:e,...wt(n)})}const FH=Se("ZodIntersection",(e,t)=>{gF.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(n,a,i)=>wC(e,n,a,i)});function zH(e,t){return new FH({type:"intersection",left:e,right:t})}const HH=Se("ZodRecord",(e,t)=>{vF.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(n,a,i)=>bC(e,n,a,i),e.keyType=t.keyType,e.valueType=t.valueType});function a1(e,t,n){return new HH({type:"record",keyType:e,valueType:t,...wt(n)})}const U9=Se("ZodEnum",(e,t)=>{yF.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(a,i,l)=>pC(e,a,i),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(a,i)=>{const l={};for(const u of a)if(n.has(u))l[u]=t.entries[u];else throw new Error(`Key ${u} not found in enum`);return new U9({...t,checks:[],...wt(i),entries:l})},e.exclude=(a,i)=>{const l={...t.entries};for(const u of a)if(n.has(u))delete l[u];else throw new Error(`Key ${u} not found in enum`);return new U9({...t,checks:[],...wt(i),entries:l})}});function vn(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(a=>[a,a])):e;return new U9({type:"enum",entries:n,...wt(t)})}const UH=Se("ZodLiteral",(e,t)=>{xF.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(n,a,i)=>hC(e,n,a),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function $t(e,t){return new UH({type:"literal",values:Array.isArray(e)?e:[e],...wt(t)})}const BH=Se("ZodTransform",(e,t)=>{wF.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(n,a,i)=>gC(e,n),e._zod.parse=(n,a)=>{if(a.direction==="backward")throw new bb(e.constructor.name);n.addIssue=l=>{var u,f,h;if(typeof l=="string")n.issues.push(Mh(l,n.value,t));else{const g=l;g.fatal&&(g.continue=!1),(u=g.code)!=null||(g.code="custom"),(f=g.input)!=null||(g.input=n.value),(h=g.inst)!=null||(g.inst=e),n.issues.push(Mh(g))}};const i=t.transform(n.value,n);return i instanceof Promise?i.then(l=>(n.value=l,n)):(n.value=i,n)}});function VH(e){return new BH({type:"transform",transform:e})}const zC=Se("ZodOptional",(e,t)=>{Gb.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(n,a,i)=>H9(e,n,a,i),e.unwrap=()=>e._zod.def.innerType});function B9(e){return new zC({type:"optional",innerType:e})}const $H=Se("ZodExactOptional",(e,t)=>{bF.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(n,a,i)=>H9(e,n,a,i),e.unwrap=()=>e._zod.def.innerType});function ZH(e){return new $H({type:"optional",innerType:e})}const WH=Se("ZodNullable",(e,t)=>{CF.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(n,a,i)=>CC(e,n,a,i),e.unwrap=()=>e._zod.def.innerType});function HC(e){return new WH({type:"nullable",innerType:e})}const qH=Se("ZodDefault",(e,t)=>{SF.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(n,a,i)=>kC(e,n,a,i),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function GH(e,t){return new qH({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Tb(t)}})}const YH=Se("ZodPrefault",(e,t)=>{kF.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(n,a,i)=>EC(e,n,a,i),e.unwrap=()=>e._zod.def.innerType});function JH(e,t){return new YH({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Tb(t)}})}const UC=Se("ZodNonOptional",(e,t)=>{EF.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(n,a,i)=>SC(e,n,a,i),e.unwrap=()=>e._zod.def.innerType});function XH(e,t){return new UC({type:"nonoptional",innerType:e,...wt(t)})}const KH=Se("ZodCatch",(e,t)=>{_F.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(n,a,i)=>_C(e,n,a,i),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function QH(e,t){return new KH({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const eU=Se("ZodPipe",(e,t)=>{TF.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(n,a,i)=>TC(e,n,a,i),e.in=t.in,e.out=t.out});function BC(e,t){return new eU({type:"pipe",in:e,out:t})}const tU=Se("ZodReadonly",(e,t)=>{RF.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(n,a,i)=>RC(e,n,a,i),e.unwrap=()=>e._zod.def.innerType});function nU(e){return new tU({type:"readonly",innerType:e})}const rU=Se("ZodLazy",(e,t)=>{MF.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(n,a,i)=>MC(e,n,a,i),e.unwrap=()=>e._zod.def.getter()});function aU(e){return new rU({type:"lazy",getter:e})}const V9=Se("ZodCustom",(e,t)=>{AF.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(n,a,i)=>mC(e,n)});function VC(e,t){return kz(V9,e!=null?e:()=>!0,t)}function oU(e,t={}){return Ez(V9,e,t)}function iU(e){return _z(e)}function W4(e,t={}){const n=new V9({type:"custom",check:"custom",fn:a=>a instanceof e,abort:!0,...wt(t)});return n._zod.bag.Class=e,n._zod.check=a=>{var i;a.value instanceof e||a.issues.push({code:"invalid_type",expected:e.name,input:a.value,inst:n,path:[...(i=n._zod.def.path)!=null?i:[]]})},n}var Nh;(function(e){e.assertEqual=i=>{};function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const l={};for(const u of i)l[u]=u;return l},e.getValidEnumValues=i=>{const l=e.objectKeys(i).filter(f=>typeof i[i[f]]!="number"),u={};for(const f of l)u[f]=i[f];return e.objectValues(u)},e.objectValues=i=>e.objectKeys(i).map(function(l){return i[l]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const l=[];for(const u in i)Object.prototype.hasOwnProperty.call(i,u)&&l.push(u);return l},e.find=(i,l)=>{for(const u of i)if(l(u))return u},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&Number.isFinite(i)&&Math.floor(i)===i;function a(i,l=" | "){return i.map(u=>typeof u=="string"?`'${u}'`:u).join(l)}e.joinValues=a,e.jsonStringifyReplacer=(i,l)=>typeof l=="bigint"?l.toString():l})(Nh||(Nh={}));var $C;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})($C||($C={})),Nh.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Nh.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class q4 extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=a=>{this.issues=[...this.issues,a]},this.addIssues=(a=[])=>{this.issues=[...this.issues,...a]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(l){return l.message},a={_errors:[]},i=l=>{for(const u of l.issues)if(u.code==="invalid_union")u.unionErrors.map(i);else if(u.code==="invalid_return_type")i(u.returnTypeError);else if(u.code==="invalid_arguments")i(u.argumentsError);else if(u.path.length===0)a._errors.push(n(u));else{let f=a,h=0;for(;h<u.path.length;){const g=u.path[h];h===u.path.length-1?(f[g]=f[g]||{_errors:[]},f[g]._errors.push(n(u))):f[g]=f[g]||{_errors:[]},f=f[g],h++}}};return i(this),a}static assert(t){if(!(t instanceof q4))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Nh.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n=Object.create(null),a=[];for(const i of this.issues)if(i.path.length>0){const l=i.path[0];n[l]=n[l]||[],n[l].push(t(i))}else a.push(t(i));return{formErrors:a,fieldErrors:n}}get formErrors(){return this.flatten()}}q4.create=e=>new q4(e);var ZC;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(ZC||(ZC={}));var tn;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(tn||(tn={}));function o1(...e){return e.reduce((t,n)=>({...t,...n!=null?n:{}}),{})}async function sU(e,t){if(e==null)return Promise.resolve();const n=t==null?void 0:t.abortSignal;return new Promise((a,i)=>{if(n!=null&&n.aborted){i(WC());return}const l=setTimeout(()=>{u(),a()},e),u=()=>{clearTimeout(l),n==null||n.removeEventListener("abort",f)},f=()=>{u(),i(WC())};n==null||n.addEventListener("abort",f)})}function WC(){return new DOMException("Delay was aborted","AbortError")}var G4=class{constructor(){this.status={type:"pending"},this._resolve=void 0,this._reject=void 0}get promise(){return this._promise?this._promise:(this._promise=new Promise((e,t)=>{this.status.type==="resolved"?e(this.status.value):this.status.type==="rejected"&&t(this.status.error),this._resolve=e,this._reject=t}),this._promise)}resolve(e){var t;this.status={type:"resolved",value:e},this._promise&&((t=this._resolve)==null||t.call(this,e))}reject(e){var t;this.status={type:"rejected",error:e},this._promise&&((t=this._reject)==null||t.call(this,e))}isResolved(){return this.status.type==="resolved"}isRejected(){return this.status.type==="rejected"}isPending(){return this.status.type==="pending"}};function Lh(e){return Object.fromEntries([...e.headers])}var Oh=({prefix:e,size:t=16,alphabet:n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:a="-"}={})=>{const i=()=>{const l=n.length,u=new Array(t);for(let f=0;f<t;f++)u[f]=n[Math.random()*l|0];return u.join("")};if(e==null)return i;if(n.includes(a))throw new Vw({argument:"separator",message:`The separator "${a}" must not be part of the alphabet "${n}".`});return()=>`${e}${a}${i()}`},cd=Oh();function Y4(e){return e==null?"unknown error":typeof e=="string"?e:e instanceof Error?e.message:JSON.stringify(e)}function dd(e){return(e instanceof Error||e instanceof DOMException)&&(e.name==="AbortError"||e.name==="ResponseAborted"||e.name==="TimeoutError")}var lU=["fetch failed","failed to fetch"];function qC({error:e,url:t,requestBodyValues:n}){if(dd(e))return e;if(e instanceof TypeError&&lU.includes(e.message.toLowerCase())){const a=e.cause;if(a!=null)return new yo({message:`Cannot connect to API: ${a.message}`,cause:a,url:t,requestBodyValues:n,isRetryable:!0})}return e}function Ih(e=globalThis){var t,n,a;return e.window?"runtime/browser":(t=e.navigator)!=null&&t.userAgent?`runtime/${e.navigator.userAgent.toLowerCase()}`:(a=(n=e.process)==null?void 0:n.versions)!=null&&a.node?`runtime/node.js/${e.process.version.substring(0)}`:e.EdgeRuntime?"runtime/vercel-edge":"runtime/unknown"}function fd(e){if(e==null)return{};const t={};if(e instanceof Headers)e.forEach((n,a)=>{t[a.toLowerCase()]=n});else{Array.isArray(e)||(e=Object.entries(e));for(const[n,a]of e)a!=null&&(t[n.toLowerCase()]=a)}return t}function Xu(e,...t){const n=new Headers(fd(e)),a=n.get("user-agent")||"";return n.set("user-agent",[a,...t].filter(Boolean).join(" ")),Object.fromEntries(n.entries())}var GC="3.0.20",uU=()=>globalThis.fetch,YC=async({url:e,headers:t={},successfulResponseHandler:n,failedResponseHandler:a,abortSignal:i,fetch:l=uU()})=>{try{const u=await l(e,{method:"GET",headers:Xu(t,`ai-sdk/provider-utils/${GC}`,Ih()),signal:i}),f=Lh(u);if(!u.ok){let h;try{h=await a({response:u,url:e,requestBodyValues:{}})}catch(g){throw dd(g)||yo.isInstance(g)?g:new yo({message:"Failed to process error response",cause:g,statusCode:u.status,url:e,responseHeaders:f,requestBodyValues:{}})}throw h.value}try{return await n({response:u,url:e,requestBodyValues:{}})}catch(h){throw h instanceof Error&&(dd(h)||yo.isInstance(h))?h:new yo({message:"Failed to process successful response",cause:h,statusCode:u.status,url:e,responseHeaders:f,requestBodyValues:{}})}}catch(u){throw qC({error:u,url:e,requestBodyValues:{}})}};function cU({mediaType:e,url:t,supportedUrls:n}){return t=t.toLowerCase(),e=e.toLowerCase(),Object.entries(n).map(([a,i])=>{const l=a.toLowerCase();return l==="*"||l==="*/*"?{mediaTypePrefix:"",regexes:i}:{mediaTypePrefix:l.replace(/\*/,""),regexes:i}}).filter(({mediaTypePrefix:a})=>e.startsWith(a)).flatMap(({regexes:a})=>a).some(a=>a.test(t))}function dU({apiKey:e,environmentVariableName:t,apiKeyParameterName:n="apiKey",description:a}){if(typeof e=="string")return e;if(e!=null)throw new L4({message:`${a} API key must be a string.`});if(typeof process=="undefined")throw new L4({message:`${a} API key is missing. Pass it using the '${n}' parameter. Environment variables is not supported in this environment.`});if(e=process.env[t],e==null)throw new L4({message:`${a} API key is missing. Pass it using the '${n}' parameter or the ${t} environment variable.`});if(typeof e!="string")throw new L4({message:`${a} API key must be a string. The value of the ${t} environment variable is not a string.`});return e}function J4({settingValue:e,environmentVariableName:t}){if(typeof e=="string")return e;if(!(e!=null||typeof process=="undefined")&&(e=process.env[t],!(e==null||typeof e!="string")))return e}var fU=/"__proto__"\s*:/,pU=/"constructor"\s*:/;function JC(e){const t=JSON.parse(e);return t===null||typeof t!="object"||fU.test(e)===!1&&pU.test(e)===!1?t:hU(t)}function hU(e){let t=[e];for(;t.length;){const n=t;t=[];for(const a of n){if(Object.prototype.hasOwnProperty.call(a,"__proto__"))throw new SyntaxError("Object contains forbidden prototype property");if(Object.prototype.hasOwnProperty.call(a,"constructor")&&Object.prototype.hasOwnProperty.call(a.constructor,"prototype"))throw new SyntaxError("Object contains forbidden prototype property");for(const i in a){const l=a[i];l&&typeof l=="object"&&t.push(l)}}}return e}function $9(e){const{stackTraceLimit:t}=Error;try{Error.stackTraceLimit=0}catch(n){return JC(e)}try{return JC(e)}finally{Error.stackTraceLimit=t}}var X4=Symbol.for("vercel.ai.validator");function mU(e){return{[X4]:!0,validate:e}}function gU(e){return typeof e=="object"&&e!==null&&X4 in e&&e[X4]===!0&&"validate"in e}function pd(e){let t;return()=>(t==null&&(t=e()),t)}function vU(e){return gU(e)?e:typeof e=="function"?e():yU(e)}function yU(e){return mU(async t=>{const n=await e["~standard"].validate(t);return n.issues==null?{success:!0,value:n.value}:{success:!1,error:new Th({value:t,cause:n.issues})}})}async function Z9({value:e,schema:t}){const n=await ql({value:e,schema:t});if(!n.success)throw Th.wrap({value:e,cause:n.error});return n.value}async function ql({value:e,schema:t}){const n=vU(t);try{if(n.validate==null)return{success:!0,value:e,rawValue:e};const a=await n.validate(e);return a.success?{success:!0,value:a.value,rawValue:e}:{success:!1,error:Th.wrap({value:e,cause:a.error}),rawValue:e}}catch(a){return{success:!1,error:Th.wrap({value:e,cause:a}),rawValue:e}}}async function xU({text:e,schema:t}){try{const n=$9(e);return t==null?n:Z9({value:n,schema:t})}catch(n){throw N4.isInstance(n)||Th.isInstance(n)?n:new N4({text:e,cause:n})}}async function hd({text:e,schema:t}){try{const n=$9(e);return t==null?{success:!0,value:n,rawValue:n}:await ql({value:n,schema:t})}catch(n){return{success:!1,error:N4.isInstance(n)?n:new N4({text:e,cause:n}),rawValue:void 0}}}function XC(e){try{return $9(e),!0}catch(t){return!1}}function KC({stream:e,schema:t}){return e.pipeThrough(new TextDecoderStream).pipeThrough(new Sj).pipeThrough(new TransformStream({async transform({data:n},a){n!=="[DONE]"&&a.enqueue(await hd({text:n,schema:t}))}}))}async function wU({provider:e,providerOptions:t,schema:n}){if((t==null?void 0:t[e])==null)return;const a=await ql({value:t[e],schema:n});if(!a.success)throw new Vw({argument:"providerOptions",message:`invalid ${e} provider options`,cause:a.error});return a.value}var bU=()=>globalThis.fetch,i1=async({url:e,headers:t,body:n,failedResponseHandler:a,successfulResponseHandler:i,abortSignal:l,fetch:u})=>CU({url:e,headers:{"Content-Type":"application/json",...t},body:{content:JSON.stringify(n),values:n},failedResponseHandler:a,successfulResponseHandler:i,abortSignal:l,fetch:u}),CU=async({url:e,headers:t={},body:n,successfulResponseHandler:a,failedResponseHandler:i,abortSignal:l,fetch:u=bU()})=>{try{const f=await u(e,{method:"POST",headers:Xu(t,`ai-sdk/provider-utils/${GC}`,Ih()),body:n.content,signal:l}),h=Lh(f);if(!f.ok){let g;try{g=await i({response:f,url:e,requestBodyValues:n.values})}catch(x){throw dd(x)||yo.isInstance(x)?x:new yo({message:"Failed to process error response",cause:x,statusCode:f.status,url:e,responseHeaders:h,requestBodyValues:n.values})}throw g.value}try{return await a({response:f,url:e,requestBodyValues:n.values})}catch(g){throw g instanceof Error&&(dd(g)||yo.isInstance(g))?g:new yo({message:"Failed to process successful response",cause:g,statusCode:f.status,url:e,responseHeaders:h,requestBodyValues:n.values})}}catch(f){throw qC({error:f,url:e,requestBodyValues:n.values})}};function L1e(e){return e}function SU({id:e,name:t,inputSchema:n,outputSchema:a}){return({execute:i,toModelOutput:l,onInputStart:u,onInputDelta:f,onInputAvailable:h,...g})=>({type:"provider-defined",id:e,name:t,args:g,inputSchema:n,outputSchema:a,execute:i,toModelOutput:l,onInputStart:u,onInputDelta:f,onInputAvailable:h})}async function Ja(e){return typeof e=="function"&&(e=e()),Promise.resolve(e)}var md=({errorSchema:e,errorToMessage:t,isRetryable:n})=>async({response:a,url:i,requestBodyValues:l})=>{const u=await a.text(),f=Lh(a);if(u.trim()==="")return{responseHeaders:f,value:new yo({message:a.statusText,url:i,requestBodyValues:l,statusCode:a.status,responseHeaders:f,responseBody:u,isRetryable:n==null?void 0:n(a)})};try{const h=await xU({text:u,schema:e});return{responseHeaders:f,value:new yo({message:t(h),url:i,requestBodyValues:l,statusCode:a.status,responseHeaders:f,responseBody:u,data:h,isRetryable:n==null?void 0:n(a,h)})}}catch(h){return{responseHeaders:f,value:new yo({message:a.statusText,url:i,requestBodyValues:l,statusCode:a.status,responseHeaders:f,responseBody:u,isRetryable:n==null?void 0:n(a)})}}},QC=e=>async({response:t})=>{const n=Lh(t);if(t.body==null)throw new dj({});return{responseHeaders:n,value:KC({stream:t.body,schema:e})}},s1=e=>async({response:t,url:n,requestBodyValues:a})=>{const i=await t.text(),l=await hd({text:i,schema:e}),u=Lh(t);if(!l.success)throw new yo({message:"Invalid JSON response",cause:l.error,statusCode:t.status,responseHeaders:u,responseBody:i,url:n,requestBodyValues:a});return{responseHeaders:u,value:l.value,rawValue:l.rawValue}};function K4(e){if(e.type==="object"){e.additionalProperties=!1;const t=e.properties;if(t!=null)for(const n in t)t[n]=K4(t[n])}return e.type==="array"&&e.items!=null&&(Array.isArray(e.items)?e.items=e.items.map(t=>K4(t)):e.items=K4(e.items)),e}var kU=(e,t)=>{let n=0;for(;n<e.length&&n<t.length&&e[n]===t[n];n++);return[(e.length-n).toString(),...t.slice(n)].join("/")},EU=Symbol("Let zodToJsonSchema decide on which parser to use"),eS={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",strictUnions:!1,definitions:{},errorMessages:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"},_U=e=>typeof e=="string"?{...eS,name:e}:{...eS,...e};function ci(){return{}}function TU(e,t){var n,a,i;const l={type:"array"};return(n=e.type)!=null&&n._def&&((i=(a=e.type)==null?void 0:a._def)==null?void 0:i.typeName)!==tn.ZodAny&&(l.items=Xn(e.type._def,{...t,currentPath:[...t.currentPath,"items"]})),e.minLength&&(l.minItems=e.minLength.value),e.maxLength&&(l.maxItems=e.maxLength.value),e.exactLength&&(l.minItems=e.exactLength.value,l.maxItems=e.exactLength.value),l}function RU(e){const t={type:"integer",format:"int64"};if(!e.checks)return t;for(const n of e.checks)switch(n.kind){case"min":n.inclusive?t.minimum=n.value:t.exclusiveMinimum=n.value;break;case"max":n.inclusive?t.maximum=n.value:t.exclusiveMaximum=n.value;break;case"multipleOf":t.multipleOf=n.value;break}return t}function MU(){return{type:"boolean"}}function tS(e,t){return Xn(e.type._def,t)}var AU=(e,t)=>Xn(e.innerType._def,t);function nS(e,t,n){const a=n!=null?n:t.dateStrategy;if(Array.isArray(a))return{anyOf:a.map((i,l)=>nS(e,t,i))};switch(a){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return NU(e)}}var NU=e=>{const t={type:"integer",format:"unix-time"};for(const n of e.checks)switch(n.kind){case"min":t.minimum=n.value;break;case"max":t.maximum=n.value;break}return t};function LU(e,t){return{...Xn(e.innerType._def,t),default:e.defaultValue()}}function OU(e,t){return t.effectStrategy==="input"?Xn(e.schema._def,t):ci()}function IU(e){return{type:"string",enum:Array.from(e.values)}}var DU=e=>"type"in e&&e.type==="string"?!1:"allOf"in e;function jU(e,t){const n=[Xn(e.left._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),Xn(e.right._def,{...t,currentPath:[...t.currentPath,"allOf","1"]})].filter(i=>!!i),a=[];return n.forEach(i=>{if(DU(i))a.push(...i.allOf);else{let l=i;if("additionalProperties"in i&&i.additionalProperties===!1){const{additionalProperties:u,...f}=i;l=f}a.push(l)}}),a.length?{allOf:a}:void 0}function PU(e){const t=typeof e.value;return t!=="bigint"&&t!=="number"&&t!=="boolean"&&t!=="string"?{type:Array.isArray(e.value)?"array":"object"}:{type:t==="bigint"?"integer":t,const:e.value}}var W9=void 0,ds={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(W9===void 0&&(W9=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),W9),uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function rS(e,t){const n={type:"string"};if(e.checks)for(const a of e.checks)switch(a.kind){case"min":n.minLength=typeof n.minLength=="number"?Math.max(n.minLength,a.value):a.value;break;case"max":n.maxLength=typeof n.maxLength=="number"?Math.min(n.maxLength,a.value):a.value;break;case"email":switch(t.emailStrategy){case"format:email":fs(n,"email",a.message,t);break;case"format:idn-email":fs(n,"idn-email",a.message,t);break;case"pattern:zod":wo(n,ds.email,a.message,t);break}break;case"url":fs(n,"uri",a.message,t);break;case"uuid":fs(n,"uuid",a.message,t);break;case"regex":wo(n,a.regex,a.message,t);break;case"cuid":wo(n,ds.cuid,a.message,t);break;case"cuid2":wo(n,ds.cuid2,a.message,t);break;case"startsWith":wo(n,RegExp(`^${q9(a.value,t)}`),a.message,t);break;case"endsWith":wo(n,RegExp(`${q9(a.value,t)}$`),a.message,t);break;case"datetime":fs(n,"date-time",a.message,t);break;case"date":fs(n,"date",a.message,t);break;case"time":fs(n,"time",a.message,t);break;case"duration":fs(n,"duration",a.message,t);break;case"length":n.minLength=typeof n.minLength=="number"?Math.max(n.minLength,a.value):a.value,n.maxLength=typeof n.maxLength=="number"?Math.min(n.maxLength,a.value):a.value;break;case"includes":{wo(n,RegExp(q9(a.value,t)),a.message,t);break}case"ip":{a.version!=="v6"&&fs(n,"ipv4",a.message,t),a.version!=="v4"&&fs(n,"ipv6",a.message,t);break}case"base64url":wo(n,ds.base64url,a.message,t);break;case"jwt":wo(n,ds.jwt,a.message,t);break;case"cidr":{a.version!=="v6"&&wo(n,ds.ipv4Cidr,a.message,t),a.version!=="v4"&&wo(n,ds.ipv6Cidr,a.message,t);break}case"emoji":wo(n,ds.emoji(),a.message,t);break;case"ulid":{wo(n,ds.ulid,a.message,t);break}case"base64":{switch(t.base64Strategy){case"format:binary":{fs(n,"binary",a.message,t);break}case"contentEncoding:base64":{n.contentEncoding="base64";break}case"pattern:zod":{wo(n,ds.base64,a.message,t);break}}break}case"nanoid":wo(n,ds.nanoid,a.message,t)}return n}function q9(e,t){return t.patternStrategy==="escape"?zU(e):e}var FU=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function zU(e){let t="";for(let n=0;n<e.length;n++)FU.has(e[n])||(t+="\\"),t+=e[n];return t}function fs(e,t,n,a){var i;e.format||(i=e.anyOf)!=null&&i.some(l=>l.format)?(e.anyOf||(e.anyOf=[]),e.format&&(e.anyOf.push({format:e.format}),delete e.format),e.anyOf.push({format:t,...n&&a.errorMessages&&{errorMessage:{format:n}}})):e.format=t}function wo(e,t,n,a){var i;e.pattern||(i=e.allOf)!=null&&i.some(l=>l.pattern)?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push({pattern:e.pattern}),delete e.pattern),e.allOf.push({pattern:aS(t,a),...n&&a.errorMessages&&{errorMessage:{pattern:n}}})):e.pattern=aS(t,a)}function aS(e,t){var n;if(!t.applyRegexFlags||!e.flags)return e.source;const a={i:e.flags.includes("i"),m:e.flags.includes("m"),s:e.flags.includes("s")},i=a.i?e.source.toLowerCase():e.source;let l="",u=!1,f=!1,h=!1;for(let g=0;g<i.length;g++){if(u){l+=i[g],u=!1;continue}if(a.i){if(f){if(i[g].match(/[a-z]/)){h?(l+=i[g],l+=`${i[g-2]}-${i[g]}`.toUpperCase(),h=!1):i[g+1]==="-"&&((n=i[g+2])!=null&&n.match(/[a-z]/))?(l+=i[g],h=!0):l+=`${i[g]}${i[g].toUpperCase()}`;continue}}else if(i[g].match(/[a-z]/)){l+=`[${i[g]}${i[g].toUpperCase()}]`;continue}}if(a.m){if(i[g]==="^"){l+=`(^|(?<=[\r
|
|
319
|
-
]))`;continue}else if(i[g]==="$"){l+=`($|(?=[\r
|
|
320
|
-
]))`;continue}}if(a.s&&i[g]==="."){l+=f?`${i[g]}\r
|
|
321
|
-
`:`[${i[g]}\r
|
|
322
|
-
]`;continue}l+=i[g],i[g]==="\\"?u=!0:f&&i[g]==="]"?f=!1:!f&&i[g]==="["&&(f=!0)}try{new RegExp(l)}catch(g){return console.warn(`Could not convert regex pattern at ${t.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),e.source}return l}function oS(e,t){var n,a,i,l,u,f;const h={type:"object",additionalProperties:(n=Xn(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]}))!=null?n:t.allowedAdditionalProperties};if(((a=e.keyType)==null?void 0:a._def.typeName)===tn.ZodString&&((i=e.keyType._def.checks)!=null&&i.length)){const{type:g,...x}=rS(e.keyType._def,t);return{...h,propertyNames:x}}else{if(((l=e.keyType)==null?void 0:l._def.typeName)===tn.ZodEnum)return{...h,propertyNames:{enum:e.keyType._def.values}};if(((u=e.keyType)==null?void 0:u._def.typeName)===tn.ZodBranded&&e.keyType._def.type._def.typeName===tn.ZodString&&((f=e.keyType._def.type._def.checks)!=null&&f.length)){const{type:g,...x}=tS(e.keyType._def,t);return{...h,propertyNames:x}}}return h}function HU(e,t){if(t.mapStrategy==="record")return oS(e,t);const n=Xn(e.keyType._def,{...t,currentPath:[...t.currentPath,"items","items","0"]})||ci(),a=Xn(e.valueType._def,{...t,currentPath:[...t.currentPath,"items","items","1"]})||ci();return{type:"array",maxItems:125,items:{type:"array",items:[n,a],minItems:2,maxItems:2}}}function UU(e){const t=e.values,a=Object.keys(e.values).filter(l=>typeof t[t[l]]!="number").map(l=>t[l]),i=Array.from(new Set(a.map(l=>typeof l)));return{type:i.length===1?i[0]==="string"?"string":"number":["string","number"],enum:a}}function BU(){return{not:ci()}}function VU(){return{type:"null"}}var G9={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function $U(e,t){const n=e.options instanceof Map?Array.from(e.options.values()):e.options;if(n.every(a=>a._def.typeName in G9&&(!a._def.checks||!a._def.checks.length))){const a=n.reduce((i,l)=>{const u=G9[l._def.typeName];return u&&!i.includes(u)?[...i,u]:i},[]);return{type:a.length>1?a:a[0]}}else if(n.every(a=>a._def.typeName==="ZodLiteral"&&!a.description)){const a=n.reduce((i,l)=>{const u=typeof l._def.value;switch(u){case"string":case"number":case"boolean":return[...i,u];case"bigint":return[...i,"integer"];case"object":if(l._def.value===null)return[...i,"null"];case"symbol":case"undefined":case"function":default:return i}},[]);if(a.length===n.length){const i=a.filter((l,u,f)=>f.indexOf(l)===u);return{type:i.length>1?i:i[0],enum:n.reduce((l,u)=>l.includes(u._def.value)?l:[...l,u._def.value],[])}}}else if(n.every(a=>a._def.typeName==="ZodEnum"))return{type:"string",enum:n.reduce((a,i)=>[...a,...i._def.values.filter(l=>!a.includes(l))],[])};return ZU(e,t)}var ZU=(e,t)=>{const n=(e.options instanceof Map?Array.from(e.options.values()):e.options).map((a,i)=>Xn(a._def,{...t,currentPath:[...t.currentPath,"anyOf",`${i}`]})).filter(a=>!!a&&(!t.strictUnions||typeof a=="object"&&Object.keys(a).length>0));return n.length?{anyOf:n}:void 0};function WU(e,t){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(e.innerType._def.typeName)&&(!e.innerType._def.checks||!e.innerType._def.checks.length))return{type:[G9[e.innerType._def.typeName],"null"]};const n=Xn(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","0"]});return n&&{anyOf:[n,{type:"null"}]}}function qU(e){const t={type:"number"};if(!e.checks)return t;for(const n of e.checks)switch(n.kind){case"int":t.type="integer";break;case"min":n.inclusive?t.minimum=n.value:t.exclusiveMinimum=n.value;break;case"max":n.inclusive?t.maximum=n.value:t.exclusiveMaximum=n.value;break;case"multipleOf":t.multipleOf=n.value;break}return t}function GU(e,t){const n={type:"object",properties:{}},a=[],i=e.shape();for(const u in i){let f=i[u];if(f===void 0||f._def===void 0)continue;const h=JU(f),g=Xn(f._def,{...t,currentPath:[...t.currentPath,"properties",u],propertyPath:[...t.currentPath,"properties",u]});g!==void 0&&(n.properties[u]=g,h||a.push(u))}a.length&&(n.required=a);const l=YU(e,t);return l!==void 0&&(n.additionalProperties=l),n}function YU(e,t){if(e.catchall._def.typeName!=="ZodNever")return Xn(e.catchall._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]});switch(e.unknownKeys){case"passthrough":return t.allowedAdditionalProperties;case"strict":return t.rejectedAdditionalProperties;case"strip":return t.removeAdditionalStrategy==="strict"?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}function JU(e){try{return e.isOptional()}catch(t){return!0}}var XU=(e,t)=>{var n;if(t.currentPath.toString()===((n=t.propertyPath)==null?void 0:n.toString()))return Xn(e.innerType._def,t);const a=Xn(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","1"]});return a?{anyOf:[{not:ci()},a]}:ci()},KU=(e,t)=>{if(t.pipeStrategy==="input")return Xn(e.in._def,t);if(t.pipeStrategy==="output")return Xn(e.out._def,t);const n=Xn(e.in._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),a=Xn(e.out._def,{...t,currentPath:[...t.currentPath,"allOf",n?"1":"0"]});return{allOf:[n,a].filter(i=>i!==void 0)}};function QU(e,t){return Xn(e.type._def,t)}function eB(e,t){const a={type:"array",uniqueItems:!0,items:Xn(e.valueType._def,{...t,currentPath:[...t.currentPath,"items"]})};return e.minSize&&(a.minItems=e.minSize.value),e.maxSize&&(a.maxItems=e.maxSize.value),a}function tB(e,t){return e.rest?{type:"array",minItems:e.items.length,items:e.items.map((n,a)=>Xn(n._def,{...t,currentPath:[...t.currentPath,"items",`${a}`]})).reduce((n,a)=>a===void 0?n:[...n,a],[]),additionalItems:Xn(e.rest._def,{...t,currentPath:[...t.currentPath,"additionalItems"]})}:{type:"array",minItems:e.items.length,maxItems:e.items.length,items:e.items.map((n,a)=>Xn(n._def,{...t,currentPath:[...t.currentPath,"items",`${a}`]})).reduce((n,a)=>a===void 0?n:[...n,a],[])}}function nB(){return{not:ci()}}function rB(){return ci()}var aB=(e,t)=>Xn(e.innerType._def,t),oB=(e,t,n)=>{switch(t){case tn.ZodString:return rS(e,n);case tn.ZodNumber:return qU(e);case tn.ZodObject:return GU(e,n);case tn.ZodBigInt:return RU(e);case tn.ZodBoolean:return MU();case tn.ZodDate:return nS(e,n);case tn.ZodUndefined:return nB();case tn.ZodNull:return VU();case tn.ZodArray:return TU(e,n);case tn.ZodUnion:case tn.ZodDiscriminatedUnion:return $U(e,n);case tn.ZodIntersection:return jU(e,n);case tn.ZodTuple:return tB(e,n);case tn.ZodRecord:return oS(e,n);case tn.ZodLiteral:return PU(e);case tn.ZodEnum:return IU(e);case tn.ZodNativeEnum:return UU(e);case tn.ZodNullable:return WU(e,n);case tn.ZodOptional:return XU(e,n);case tn.ZodMap:return HU(e,n);case tn.ZodSet:return eB(e,n);case tn.ZodLazy:return()=>e.getter()._def;case tn.ZodPromise:return QU(e,n);case tn.ZodNaN:case tn.ZodNever:return BU();case tn.ZodEffects:return OU(e,n);case tn.ZodAny:return ci();case tn.ZodUnknown:return rB();case tn.ZodDefault:return LU(e,n);case tn.ZodBranded:return tS(e,n);case tn.ZodReadonly:return aB(e,n);case tn.ZodCatch:return AU(e,n);case tn.ZodPipeline:return KU(e,n);case tn.ZodFunction:case tn.ZodVoid:case tn.ZodSymbol:return;default:return(a=>{})()}};function Xn(e,t,n=!1){var a;const i=t.seen.get(e);if(t.override){const h=(a=t.override)==null?void 0:a.call(t,e,t,i,n);if(h!==EU)return h}if(i&&!n){const h=iB(i,t);if(h!==void 0)return h}const l={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,l);const u=oB(e,e.typeName,t),f=typeof u=="function"?Xn(u(),t):u;if(f&&sB(e,t,f),t.postProcess){const h=t.postProcess(f,e,t);return l.jsonSchema=f,h}return l.jsonSchema=f,f}var iB=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:kU(t.currentPath,e.path)};case"none":case"seen":return e.path.length<t.currentPath.length&&e.path.every((n,a)=>t.currentPath[a]===n)?(console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),ci()):t.$refStrategy==="seen"?ci():void 0}},sB=(e,t,n)=>(e.description&&(n.description=e.description),n),lB=e=>{const t=_U(e),n=t.name!==void 0?[...t.basePath,t.definitionPath,t.name]:t.basePath;return{...t,currentPath:n,propertyPath:void 0,seen:new Map(Object.entries(t.definitions).map(([a,i])=>[i._def,{def:i._def,path:[...t.basePath,t.definitionPath,a],jsonSchema:void 0}]))}},uB=(e,t)=>{var n;const a=lB(t);let i=typeof t=="object"&&t.definitions?Object.entries(t.definitions).reduce((g,[x,y])=>{var k;return{...g,[x]:(k=Xn(y._def,{...a,currentPath:[...a.basePath,a.definitionPath,x]},!0))!=null?k:ci()}},{}):void 0;const l=typeof t=="string"?t:(t==null?void 0:t.nameStrategy)==="title"||t==null?void 0:t.name,u=(n=Xn(e._def,l===void 0?a:{...a,currentPath:[...a.basePath,a.definitionPath,l]},!1))!=null?n:ci(),f=typeof t=="object"&&t.name!==void 0&&t.nameStrategy==="title"?t.name:void 0;f!==void 0&&(u.title=f);const h=l===void 0?i?{...u,[a.definitionPath]:i}:u:{$ref:[...a.$refStrategy==="relative"?[]:a.basePath,a.definitionPath,l].join("/"),[a.definitionPath]:{...i,[l]:u}};return h.$schema="http://json-schema.org/draft-07/schema#",h},cB=uB;function dB(e,t){var n;const a=(n=void 0)!=null?n:!1;return X9(()=>cB(e,{$refStrategy:a?"root":"none"}),{validate:async i=>{const l=await e.safeParseAsync(i);return l.success?{success:!0,value:l.data}:{success:!1,error:l.error}}})}function fB(e,t){var n;const a=(n=void 0)!=null?n:!1;return X9(()=>K4($z(e,{target:"draft-7",io:"input",reused:a?"ref":"inline"})),{validate:async i=>{const l=await NC(e,i);return l.success?{success:!0,value:l.data}:{success:!1,error:l.error}}})}function pB(e){return"_zod"in e}function ps(e,t){return pB(e)?fB(e):dB(e)}var Y9=Symbol.for("vercel.ai.schema");function J9(e){let t;return()=>(t==null&&(t=e()),t)}function X9(e,{validate:t}={}){return{[Y9]:!0,_type:void 0,[X4]:!0,get jsonSchema(){return typeof e=="function"&&(e=e()),e},validate:t}}function hB(e){return typeof e=="object"&&e!==null&&Y9 in e&&e[Y9]===!0&&"jsonSchema"in e&&"validate"in e}function Q4(e){return e==null?X9({properties:{},additionalProperties:!1}):hB(e)?e:typeof e=="function"?e():ps(e)}var{btoa:mB,atob:gB}=globalThis;function K9(e){const t=e.replace(/-/g,"+").replace(/_/g,"/"),n=gB(t);return Uint8Array.from(n,a=>a.codePointAt(0))}function Q9(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCodePoint(e[n]);return mB(t)}function iS(e){return e==null?void 0:e.replace(/\/$/,"")}function vB(e){return e!=null&&typeof e[Symbol.asyncIterator]=="function"}async function*sS({execute:e,input:t,options:n}){const a=e(t,n);if(vB(a)){let i;for await(const l of a)i=l,yield{type:"preliminary",output:l};yield{type:"final",output:i}}else yield{type:"final",output:await a}}var e5=Object.defineProperty,yB=Object.getOwnPropertyDescriptor,xB=Object.getOwnPropertyNames,wB=Object.prototype.hasOwnProperty,bB=(e,t)=>{for(var n in t)e5(e,n,{get:t[n],enumerable:!0})},CB=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of xB(t))!wB.call(e,i)&&i!==n&&e5(e,i,{get:()=>t[i],enumerable:!(a=yB(t,i))||a.enumerable});return e},SB=e=>CB(e5({},"__esModule",{value:!0}),e),lS={};bB(lS,{SYMBOL_FOR_REQ_CONTEXT:()=>uS,getContext:()=>EB});var kB=SB(lS);const uS=Symbol.for("@vercel/request-context");function EB(){var t,n,a;return(a=(n=(t=globalThis[uS])==null?void 0:t.get)==null?void 0:n.call(t))!=null?a:{}}var t5=Object.defineProperty,_B=Object.getOwnPropertyDescriptor,TB=Object.getOwnPropertyNames,RB=Object.prototype.hasOwnProperty,MB=(e,t)=>{for(var n in t)t5(e,n,{get:t[n],enumerable:!0})},AB=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of TB(t))!RB.call(e,i)&&i!==n&&t5(e,i,{get:()=>t[i],enumerable:!(a=_B(t,i))||a.enumerable});return e},NB=e=>AB(t5({},"__esModule",{value:!0}),e),cS={};MB(cS,{getContext:()=>LB.getContext,getVercelOidcToken:()=>OB,getVercelOidcTokenSync:()=>IB});var dS=NB(cS),LB=kB;async function OB(){return""}function IB(){return""}var DB="vercel.ai.gateway.error",n5=Symbol.for(DB),fS,pS,di=class LD extends(pS=Error,fS=n5,pS){constructor({message:t,statusCode:n=500,cause:a}){super(t),this[fS]=!0,this.statusCode=n,this.cause=a}static isInstance(t){return LD.hasMarker(t)}static hasMarker(t){return typeof t=="object"&&t!==null&&n5 in t&&t[n5]===!0}},hS="GatewayAuthenticationError",jB=`vercel.ai.gateway.error.${hS}`,mS=Symbol.for(jB),gS,vS,r5=class OD extends(vS=di,gS=mS,vS){constructor({message:t="Authentication failed",statusCode:n=401,cause:a}={}){super({message:t,statusCode:n,cause:a}),this[gS]=!0,this.name=hS,this.type="authentication_error"}static isInstance(t){return di.hasMarker(t)&&mS in t}static createContextualError({apiKeyProvided:t,oidcTokenProvided:n,message:a="Authentication failed",statusCode:i=401,cause:l}){let u;return t?u=`AI Gateway authentication failed: Invalid API key.
|
|
323
|
-
|
|
324
|
-
Create a new API key: https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys
|
|
325
|
-
|
|
326
|
-
Provide via 'apiKey' option or 'AI_GATEWAY_API_KEY' environment variable.`:n?u=`AI Gateway authentication failed: Invalid OIDC token.
|
|
327
|
-
|
|
328
|
-
Run 'npx vercel link' to link your project, then 'vc env pull' to fetch the token.
|
|
329
|
-
|
|
330
|
-
Alternatively, use an API key: https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys`:u=`AI Gateway authentication failed: No authentication provided.
|
|
331
|
-
|
|
332
|
-
Option 1 - API key:
|
|
333
|
-
Create an API key: https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys
|
|
334
|
-
Provide via 'apiKey' option or 'AI_GATEWAY_API_KEY' environment variable.
|
|
335
|
-
|
|
336
|
-
Option 2 - OIDC token:
|
|
337
|
-
Run 'npx vercel link' to link your project, then 'vc env pull' to fetch the token.`,new OD({message:u,statusCode:i,cause:l})}},yS="GatewayInvalidRequestError",PB=`vercel.ai.gateway.error.${yS}`,xS=Symbol.for(PB),wS,bS,FB=class extends(bS=di,wS=xS,bS){constructor({message:e="Invalid request",statusCode:t=400,cause:n}={}){super({message:e,statusCode:t,cause:n}),this[wS]=!0,this.name=yS,this.type="invalid_request_error"}static isInstance(e){return di.hasMarker(e)&&xS in e}},CS="GatewayRateLimitError",zB=`vercel.ai.gateway.error.${CS}`,SS=Symbol.for(zB),kS,ES,HB=class extends(ES=di,kS=SS,ES){constructor({message:e="Rate limit exceeded",statusCode:t=429,cause:n}={}){super({message:e,statusCode:t,cause:n}),this[kS]=!0,this.name=CS,this.type="rate_limit_exceeded"}static isInstance(e){return di.hasMarker(e)&&SS in e}},_S="GatewayModelNotFoundError",UB=`vercel.ai.gateway.error.${_S}`,TS=Symbol.for(UB),BB=pd(()=>ps($e({modelId:ee()}))),RS,MS,VB=class extends(MS=di,RS=TS,MS){constructor({message:e="Model not found",statusCode:t=404,modelId:n,cause:a}={}){super({message:e,statusCode:t,cause:a}),this[RS]=!0,this.name=_S,this.type="model_not_found",this.modelId=n}static isInstance(e){return di.hasMarker(e)&&TS in e}},AS="GatewayInternalServerError",$B=`vercel.ai.gateway.error.${AS}`,NS=Symbol.for($B),LS,OS,IS=class extends(OS=di,LS=NS,OS){constructor({message:e="Internal server error",statusCode:t=500,cause:n}={}){super({message:e,statusCode:t,cause:n}),this[LS]=!0,this.name=AS,this.type="internal_server_error"}static isInstance(e){return di.hasMarker(e)&&NS in e}},DS="GatewayResponseError",ZB=`vercel.ai.gateway.error.${DS}`,jS=Symbol.for(ZB),PS,FS,WB=class extends(FS=di,PS=jS,FS){constructor({message:e="Invalid response from Gateway",statusCode:t=502,response:n,validationError:a,cause:i}={}){super({message:e,statusCode:t,cause:i}),this[PS]=!0,this.name=DS,this.type="response_error",this.response=n,this.validationError=a}static isInstance(e){return di.hasMarker(e)&&jS in e}};async function zS({response:e,statusCode:t,defaultMessage:n="Gateway request failed",cause:a,authMethod:i}){const l=await ql({value:e,schema:qB});if(!l.success)return new WB({message:`Invalid error response format: ${n}`,statusCode:t,response:e,validationError:l.error,cause:a});const u=l.value,f=u.error.type,h=u.error.message;switch(f){case"authentication_error":return r5.createContextualError({apiKeyProvided:i==="api-key",oidcTokenProvided:i==="oidc",statusCode:t,cause:a});case"invalid_request_error":return new FB({message:h,statusCode:t,cause:a});case"rate_limit_exceeded":return new HB({message:h,statusCode:t,cause:a});case"model_not_found":{const g=await ql({value:u.error.param,schema:BB});return new VB({message:h,statusCode:t,modelId:g.success?g.value.modelId:void 0,cause:a})}case"internal_server_error":return new IS({message:h,statusCode:t,cause:a});default:return new IS({message:h,statusCode:t,cause:a})}}var qB=pd(()=>ps($e({error:$e({message:ee(),type:ee().nullish(),param:Bo().nullish(),code:ua([ee(),or()]).nullish()})})));function Ku(e,t){var n;return di.isInstance(e)?e:yo.isInstance(e)?zS({response:GB(e),statusCode:(n=e.statusCode)!=null?n:500,defaultMessage:"Gateway request failed",cause:e,authMethod:t}):zS({response:{},statusCode:500,defaultMessage:e instanceof Error?`Gateway request failed: ${e.message}`:"Unknown Gateway error",cause:e,authMethod:t})}function GB(e){if(e.data!==void 0)return e.data;if(e.responseBody!=null)try{return JSON.parse(e.responseBody)}catch(t){return e.responseBody}return{}}var HS="ai-gateway-auth-method";async function l1(e){const t=await ql({value:e[HS],schema:YB});return t.success?t.value:void 0}var YB=pd(()=>ps(ua([$t("api-key"),$t("oidc")]))),US=class{constructor(e){this.config=e}async getAvailableModels(){try{const{value:e}=await YC({url:`${this.config.baseURL}/config`,headers:await Ja(this.config.headers()),successfulResponseHandler:s1(JB),failedResponseHandler:md({errorSchema:Wl(),errorToMessage:t=>t}),fetch:this.config.fetch});return e}catch(e){throw await Ku(e)}}async getCredits(){try{const e=new URL(this.config.baseURL),{value:t}=await YC({url:`${e.origin}/v1/credits`,headers:await Ja(this.config.headers()),successfulResponseHandler:s1(XB),failedResponseHandler:md({errorSchema:Wl(),errorToMessage:n=>n}),fetch:this.config.fetch});return t}catch(e){throw await Ku(e)}}},JB=pd(()=>ps($e({models:Hn($e({id:ee(),name:ee(),description:ee().nullish(),pricing:$e({input:ee(),output:ee(),input_cache_read:ee().nullish(),input_cache_write:ee().nullish()}).transform(({input:e,output:t,input_cache_read:n,input_cache_write:a})=>({input:e,output:t,...n?{cachedInputTokens:n}:{},...a?{cacheCreationInputTokens:a}:{}})).nullish(),specification:$e({specificationVersion:$t("v2"),provider:ee(),modelId:ee()}),modelType:vn(["language","embedding","image"]).nullish()}))}))),XB=pd(()=>ps($e({balance:ee(),total_used:ee()}).transform(({balance:e,total_used:t})=>({balance:e,totalUsed:t})))),KB=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v2",this.supportedUrls={"*/*":[/.*/]}}get provider(){return this.config.provider}async getArgs(e){const{abortSignal:t,...n}=e;return{args:this.maybeEncodeFileParts(n),warnings:[]}}async doGenerate(e){const{args:t,warnings:n}=await this.getArgs(e),{abortSignal:a}=e,i=await Ja(this.config.headers());try{const{responseHeaders:l,value:u,rawValue:f}=await i1({url:this.getUrl(),headers:o1(i,e.headers,this.getModelConfigHeaders(this.modelId,!1),await Ja(this.config.o11yHeaders)),body:t,successfulResponseHandler:s1(Wl()),failedResponseHandler:md({errorSchema:Wl(),errorToMessage:h=>h}),...a&&{abortSignal:a},fetch:this.config.fetch});return{...u,request:{body:t},response:{headers:l,body:f},warnings:n}}catch(l){throw await Ku(l,await l1(i))}}async doStream(e){const{args:t,warnings:n}=await this.getArgs(e),{abortSignal:a}=e,i=await Ja(this.config.headers());try{const{value:l,responseHeaders:u}=await i1({url:this.getUrl(),headers:o1(i,e.headers,this.getModelConfigHeaders(this.modelId,!0),await Ja(this.config.o11yHeaders)),body:t,successfulResponseHandler:QC(Wl()),failedResponseHandler:md({errorSchema:Wl(),errorToMessage:f=>f}),...a&&{abortSignal:a},fetch:this.config.fetch});return{stream:l.pipeThrough(new TransformStream({start(f){n.length>0&&f.enqueue({type:"stream-start",warnings:n})},transform(f,h){if(f.success){const g=f.value;if(g.type==="raw"&&!e.includeRawChunks)return;g.type==="response-metadata"&&g.timestamp&&typeof g.timestamp=="string"&&(g.timestamp=new Date(g.timestamp)),h.enqueue(g)}else h.error(f.error)}})),request:{body:t},response:{headers:u}}}catch(l){throw await Ku(l,await l1(i))}}isFilePart(e){return e&&typeof e=="object"&&"type"in e&&e.type==="file"}maybeEncodeFileParts(e){for(const t of e.prompt)for(const n of t.content)if(this.isFilePart(n)){const a=n;if(a.data instanceof Uint8Array){const i=Uint8Array.from(a.data),l=Buffer.from(i).toString("base64");a.data=new URL(`data:${a.mediaType||"application/octet-stream"};base64,${l}`)}}return e}getUrl(){return`${this.config.baseURL}/language-model`}getModelConfigHeaders(e,t){return{"ai-language-model-specification-version":"2","ai-language-model-id":e,"ai-language-model-streaming":String(t)}}},QB=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v2",this.maxEmbeddingsPerCall=2048,this.supportsParallelCalls=!0}get provider(){return this.config.provider}async doEmbed({values:e,headers:t,abortSignal:n,providerOptions:a}){var i;const l=await Ja(this.config.headers());try{const{responseHeaders:u,value:f,rawValue:h}=await i1({url:this.getUrl(),headers:o1(l,t!=null?t:{},this.getModelConfigHeaders(),await Ja(this.config.o11yHeaders)),body:{input:e.length===1?e[0]:e,...a?{providerOptions:a}:{}},successfulResponseHandler:s1(eV),failedResponseHandler:md({errorSchema:Wl(),errorToMessage:g=>g}),...n&&{abortSignal:n},fetch:this.config.fetch});return{embeddings:f.embeddings,usage:(i=f.usage)!=null?i:void 0,providerMetadata:f.providerMetadata,response:{headers:u,body:h}}}catch(u){throw await Ku(u,await l1(l))}}getUrl(){return`${this.config.baseURL}/embedding-model`}getModelConfigHeaders(){return{"ai-embedding-model-specification-version":"2","ai-model-id":this.modelId}}},eV=pd(()=>ps($e({embeddings:Hn(Hn(or())),usage:$e({tokens:or()}).nullish(),providerMetadata:a1(ee(),a1(ee(),Bo())).optional()}))),tV=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v2",this.maxImagesPerCall=Number.MAX_SAFE_INTEGER}get provider(){return this.config.provider}async doGenerate({prompt:e,n:t,size:n,aspectRatio:a,seed:i,providerOptions:l,headers:u,abortSignal:f}){var h;const g=await Ja(this.config.headers());try{const{responseHeaders:x,value:y,rawValue:k}=await i1({url:this.getUrl(),headers:o1(g,u!=null?u:{},this.getModelConfigHeaders(),await Ja(this.config.o11yHeaders)),body:{prompt:e,n:t,...n&&{size:n},...a&&{aspectRatio:a},...i&&{seed:i},...l&&{providerOptions:l}},successfulResponseHandler:s1(rV),failedResponseHandler:md({errorSchema:Wl(),errorToMessage:b=>b}),...f&&{abortSignal:f},fetch:this.config.fetch});return{images:y.images,warnings:(h=y.warnings)!=null?h:[],providerMetadata:y.providerMetadata,response:{timestamp:new Date,modelId:this.modelId,headers:x}}}catch(x){throw Ku(x,await l1(g))}}getUrl(){return`${this.config.baseURL}/image-model`}getModelConfigHeaders(){return{"ai-image-model-specification-version":"2","ai-model-id":this.modelId}}},nV=$e({images:Hn(Bo()).optional()}).catchall(Bo()),rV=$e({images:Hn(ee()),warnings:Hn($e({type:$t("other"),message:ee()})).optional(),providerMetadata:a1(ee(),nV).optional()}),aV=J9(()=>ps($e({query:ua([ee(),Hn(ee())]).describe("Search query (string) or multiple queries (array of up to 5 strings). Multi-query searches return combined results from all queries."),max_results:or().optional().describe("Maximum number of search results to return (1-20, default: 10)"),max_tokens_per_page:or().optional().describe("Maximum number of tokens to extract per search result page (256-2048, default: 2048)"),max_tokens:or().optional().describe("Maximum total tokens across all search results (default: 25000, max: 1000000)"),country:ee().optional().describe("Two-letter ISO 3166-1 alpha-2 country code for regional search results (e.g., 'US', 'GB', 'FR')"),search_domain_filter:Hn(ee()).optional().describe("List of domains to include or exclude from search results (max 20). To include: ['nature.com', 'science.org']. To exclude: ['-example.com', '-spam.net']"),search_language_filter:Hn(ee()).optional().describe("List of ISO 639-1 language codes to filter results (max 10, lowercase). Examples: ['en', 'fr', 'de']"),search_after_date:ee().optional().describe("Include only results published after this date. Format: 'MM/DD/YYYY' (e.g., '3/1/2025'). Cannot be used with search_recency_filter."),search_before_date:ee().optional().describe("Include only results published before this date. Format: 'MM/DD/YYYY' (e.g., '3/15/2025'). Cannot be used with search_recency_filter."),last_updated_after_filter:ee().optional().describe("Include only results last updated after this date. Format: 'MM/DD/YYYY' (e.g., '3/1/2025'). Cannot be used with search_recency_filter."),last_updated_before_filter:ee().optional().describe("Include only results last updated before this date. Format: 'MM/DD/YYYY' (e.g., '3/15/2025'). Cannot be used with search_recency_filter."),search_recency_filter:vn(["day","week","month","year"]).optional().describe("Filter results by relative time period. Cannot be used with search_after_date or search_before_date.")}))),oV=J9(()=>ps(ua([$e({results:Hn($e({title:ee(),url:ee(),snippet:ee(),date:ee().optional(),lastUpdated:ee().optional()})),id:ee()}),$e({error:vn(["api_error","rate_limit","timeout","invalid_input","unknown"]),statusCode:or().optional(),message:ee()})]))),iV=SU({id:"gateway.perplexity_search",name:"perplexity_search",inputSchema:aV,outputSchema:oV}),sV=(e={})=>iV(e),lV={perplexitySearch:sV};async function uV(){var e;return(e=dS.getContext().headers)==null?void 0:e["x-vercel-id"]}var cV="2.0.27",dV="0.0.1";function fV(e={}){var t,n;let a=null,i=null;const l=(t=e.metadataCacheRefreshMillis)!=null?t:1e3*60*5;let u=0;const f=(n=iS(e.baseURL))!=null?n:"https://ai-gateway.vercel.sh/v1/ai",h=async()=>{const T=await hV(e);if(T)return Xu({Authorization:`Bearer ${T.token}`,"ai-gateway-protocol-version":dV,[HS]:T.authMethod,...e.headers},`ai-sdk/gateway/${cV}`);throw r5.createContextualError({apiKeyProvided:!1,oidcTokenProvided:!1,statusCode:401})},g=()=>{const T=J4({settingValue:void 0,environmentVariableName:"VERCEL_DEPLOYMENT_ID"}),R=J4({settingValue:void 0,environmentVariableName:"VERCEL_ENV"}),N=J4({settingValue:void 0,environmentVariableName:"VERCEL_REGION"});return async()=>{const O=await uV();return{...T&&{"ai-o11y-deployment-id":T},...R&&{"ai-o11y-environment":R},...N&&{"ai-o11y-region":N},...O&&{"ai-o11y-request-id":O}}}},x=T=>new KB(T,{provider:"gateway",baseURL:f,headers:h,fetch:e.fetch,o11yHeaders:g()}),y=async()=>{var T,R,N;const O=(N=(R=(T=e._internal)==null?void 0:T.currentDate)==null?void 0:R.call(T).getTime())!=null?N:Date.now();return(!a||O-u>l)&&(u=O,a=new US({baseURL:f,headers:h,fetch:e.fetch}).getAvailableModels().then(P=>(i=P,P)).catch(async P=>{throw await Ku(P,await l1(await h()))})),i?Promise.resolve(i):a},k=async()=>new US({baseURL:f,headers:h,fetch:e.fetch}).getCredits().catch(async T=>{throw await Ku(T,await l1(await h()))}),b=function(T){if(new.target)throw new Error("The Gateway Provider model function cannot be called with the new keyword.");return x(T)};return b.getAvailableModels=y,b.getCredits=k,b.imageModel=T=>new tV(T,{provider:"gateway",baseURL:f,headers:h,fetch:e.fetch,o11yHeaders:g()}),b.languageModel=x,b.textEmbeddingModel=T=>new QB(T,{provider:"gateway",baseURL:f,headers:h,fetch:e.fetch,o11yHeaders:g()}),b.tools=lV,b}var pV=fV();async function hV(e){const t=J4({settingValue:e.apiKey,environmentVariableName:"AI_GATEWAY_API_KEY"});if(t)return{token:t,authMethod:"api-key"};try{return{token:await dS.getVercelOidcToken(),authMethod:"oidc"}}catch(n){return null}}var mV=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},gd="1.9.0",BS=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function gV(e){var t=new Set([e]),n=new Set,a=e.match(BS);if(!a)return function(){return!1};var i={major:+a[1],minor:+a[2],patch:+a[3],prerelease:a[4]};if(i.prerelease!=null)return function(h){return h===e};function l(f){return n.add(f),!1}function u(f){return t.add(f),!0}return function(h){if(t.has(h))return!0;if(n.has(h))return!1;var g=h.match(BS);if(!g)return l(h);var x={major:+g[1],minor:+g[2],patch:+g[3],prerelease:g[4]};return x.prerelease!=null||i.major!==x.major?l(h):i.major===0?i.minor===x.minor&&i.patch<=x.patch?u(h):l(h):i.minor<=x.minor?u(h):l(h)}}var vV=gV(gd),yV=gd.split(".")[0],Dh=Symbol.for("opentelemetry.js.api."+yV),jh=mV;function Ph(e,t,n,a){var i;a===void 0&&(a=!1);var l=jh[Dh]=(i=jh[Dh])!==null&&i!==void 0?i:{version:gd};if(!a&&l[e]){var u=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return n.error(u.stack||u.message),!1}if(l.version!==gd){var u=new Error("@opentelemetry/api: Registration of version v"+l.version+" for "+e+" does not match previously registered API v"+gd);return n.error(u.stack||u.message),!1}return l[e]=t,n.debug("@opentelemetry/api: Registered a global for "+e+" v"+gd+"."),!0}function vd(e){var t,n,a=(t=jh[Dh])===null||t===void 0?void 0:t.version;if(!(!a||!vV(a)))return(n=jh[Dh])===null||n===void 0?void 0:n[e]}function Fh(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+gd+".");var n=jh[Dh];n&&delete n[e]}var xV=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var a=n.call(e),i,l=[],u;try{for(;(t===void 0||t-- >0)&&!(i=a.next()).done;)l.push(i.value)}catch(f){u={error:f}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(u)throw u.error}}return l},wV=function(e,t,n){if(n||arguments.length===2)for(var a=0,i=t.length,l;a<i;a++)(l||!(a in t))&&(l||(l=Array.prototype.slice.call(t,0,a)),l[a]=t[a]);return e.concat(l||Array.prototype.slice.call(t))},bV=function(){function e(t){this._namespace=t.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return zh("debug",this._namespace,t)},e.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return zh("error",this._namespace,t)},e.prototype.info=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return zh("info",this._namespace,t)},e.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return zh("warn",this._namespace,t)},e.prototype.verbose=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return zh("verbose",this._namespace,t)},e}();function zh(e,t,n){var a=vd("diag");if(a)return n.unshift(t),a[e].apply(a,wV([],xV(n),!1))}var fi;(function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"})(fi||(fi={}));function CV(e,t){e<fi.NONE?e=fi.NONE:e>fi.ALL&&(e=fi.ALL),t=t||{};function n(a,i){var l=t[a];return typeof l=="function"&&e>=i?l.bind(t):function(){}}return{error:n("error",fi.ERROR),warn:n("warn",fi.WARN),info:n("info",fi.INFO),debug:n("debug",fi.DEBUG),verbose:n("verbose",fi.VERBOSE)}}var SV=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var a=n.call(e),i,l=[],u;try{for(;(t===void 0||t-- >0)&&!(i=a.next()).done;)l.push(i.value)}catch(f){u={error:f}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(u)throw u.error}}return l},kV=function(e,t,n){if(n||arguments.length===2)for(var a=0,i=t.length,l;a<i;a++)(l||!(a in t))&&(l||(l=Array.prototype.slice.call(t,0,a)),l[a]=t[a]);return e.concat(l||Array.prototype.slice.call(t))},EV="diag",Gs=function(){function e(){function t(i){return function(){for(var l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];var f=vd("diag");if(f)return f[i].apply(f,kV([],SV(l),!1))}}var n=this,a=function(i,l){var u,f,h;if(l===void 0&&(l={logLevel:fi.INFO}),i===n){var g=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return n.error((u=g.stack)!==null&&u!==void 0?u:g.message),!1}typeof l=="number"&&(l={logLevel:l});var x=vd("diag"),y=CV((f=l.logLevel)!==null&&f!==void 0?f:fi.INFO,i);if(x&&!l.suppressOverrideMessage){var k=(h=new Error().stack)!==null&&h!==void 0?h:"<failed to generate stacktrace>";x.warn("Current logger will be overwritten from "+k),y.warn("Current logger will overwrite one already registered from "+k)}return Ph("diag",y,n,!0)};n.setLogger=a,n.disable=function(){Fh(EV,n)},n.createComponentLogger=function(i){return new bV(i)},n.verbose=t("verbose"),n.debug=t("debug"),n.info=t("info"),n.warn=t("warn"),n.error=t("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}(),_V=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var a=n.call(e),i,l=[],u;try{for(;(t===void 0||t-- >0)&&!(i=a.next()).done;)l.push(i.value)}catch(f){u={error:f}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(u)throw u.error}}return l},TV=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],a=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},RV=function(){function e(t){this._entries=t?new Map(t):new Map}return e.prototype.getEntry=function(t){var n=this._entries.get(t);if(n)return Object.assign({},n)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var n=_V(t,2),a=n[0],i=n[1];return[a,i]})},e.prototype.setEntry=function(t,n){var a=new e(this._entries);return a._entries.set(t,n),a},e.prototype.removeEntry=function(t){var n=new e(this._entries);return n._entries.delete(t),n},e.prototype.removeEntries=function(){for(var t,n,a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];var l=new e(this._entries);try{for(var u=TV(a),f=u.next();!f.done;f=u.next()){var h=f.value;l._entries.delete(h)}}catch(g){t={error:g}}finally{try{f&&!f.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}return l},e.prototype.clear=function(){return new e},e}();Gs.instance();function MV(e){return e===void 0&&(e={}),new RV(new Map(Object.entries(e)))}function VS(e){return Symbol.for(e)}var AV=function(){function e(t){var n=this;n._currentContext=t?new Map(t):new Map,n.getValue=function(a){return n._currentContext.get(a)},n.setValue=function(a,i){var l=new e(n._currentContext);return l._currentContext.set(a,i),l},n.deleteValue=function(a){var i=new e(n._currentContext);return i._currentContext.delete(a),i}}return e}(),NV=new AV,yd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,i){a.__proto__=i}||function(a,i){for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(a[l]=i[l])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function a(){this.constructor=t}t.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),LV=function(){function e(){}return e.prototype.createGauge=function(t,n){return BV},e.prototype.createHistogram=function(t,n){return VV},e.prototype.createCounter=function(t,n){return UV},e.prototype.createUpDownCounter=function(t,n){return $V},e.prototype.createObservableGauge=function(t,n){return WV},e.prototype.createObservableCounter=function(t,n){return ZV},e.prototype.createObservableUpDownCounter=function(t,n){return qV},e.prototype.addBatchObservableCallback=function(t,n){},e.prototype.removeBatchObservableCallback=function(t){},e}(),e2=function(){function e(){}return e}(),OV=function(e){yd(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(n,a){},t}(e2),IV=function(e){yd(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(n,a){},t}(e2),DV=function(e){yd(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(n,a){},t}(e2),jV=function(e){yd(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(n,a){},t}(e2),a5=function(){function e(){}return e.prototype.addCallback=function(t){},e.prototype.removeCallback=function(t){},e}(),PV=function(e){yd(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(a5),FV=function(e){yd(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(a5),zV=function(e){yd(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(a5),HV=new LV,UV=new OV,BV=new DV,VV=new jV,$V=new IV,ZV=new PV,WV=new FV,qV=new zV,GV={get:function(e,t){if(e!=null)return e[t]},keys:function(e){return e==null?[]:Object.keys(e)}},YV={set:function(e,t,n){e!=null&&(e[t]=n)}},JV=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var a=n.call(e),i,l=[],u;try{for(;(t===void 0||t-- >0)&&!(i=a.next()).done;)l.push(i.value)}catch(f){u={error:f}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(u)throw u.error}}return l},XV=function(e,t,n){if(n||arguments.length===2)for(var a=0,i=t.length,l;a<i;a++)(l||!(a in t))&&(l||(l=Array.prototype.slice.call(t,0,a)),l[a]=t[a]);return e.concat(l||Array.prototype.slice.call(t))},KV=function(){function e(){}return e.prototype.active=function(){return NV},e.prototype.with=function(t,n,a){for(var i=[],l=3;l<arguments.length;l++)i[l-3]=arguments[l];return n.call.apply(n,XV([a],JV(i),!1))},e.prototype.bind=function(t,n){return n},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}(),QV=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var a=n.call(e),i,l=[],u;try{for(;(t===void 0||t-- >0)&&!(i=a.next()).done;)l.push(i.value)}catch(f){u={error:f}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(u)throw u.error}}return l},e$=function(e,t,n){if(n||arguments.length===2)for(var a=0,i=t.length,l;a<i;a++)(l||!(a in t))&&(l||(l=Array.prototype.slice.call(t,0,a)),l[a]=t[a]);return e.concat(l||Array.prototype.slice.call(t))},o5="context",t$=new KV,t2=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(t){return Ph(o5,t,Gs.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(t,n,a){for(var i,l=[],u=3;u<arguments.length;u++)l[u-3]=arguments[u];return(i=this._getContextManager()).with.apply(i,e$([t,n,a],QV(l),!1))},e.prototype.bind=function(t,n){return this._getContextManager().bind(t,n)},e.prototype._getContextManager=function(){return vd(o5)||t$},e.prototype.disable=function(){this._getContextManager().disable(),Fh(o5,Gs.instance())},e}(),i5;(function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"})(i5||(i5={}));var $S="0000000000000000",ZS="00000000000000000000000000000000",n$={traceId:ZS,spanId:$S,traceFlags:i5.NONE},Hh=function(){function e(t){t===void 0&&(t=n$),this._spanContext=t}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(t,n){return this},e.prototype.setAttributes=function(t){return this},e.prototype.addEvent=function(t,n){return this},e.prototype.addLink=function(t){return this},e.prototype.addLinks=function(t){return this},e.prototype.setStatus=function(t){return this},e.prototype.updateName=function(t){return this},e.prototype.end=function(t){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(t,n){},e}(),s5=VS("OpenTelemetry Context Key SPAN");function l5(e){return e.getValue(s5)||void 0}function r$(){return l5(t2.getInstance().active())}function u5(e,t){return e.setValue(s5,t)}function a$(e){return e.deleteValue(s5)}function o$(e,t){return u5(e,new Hh(t))}function WS(e){var t;return(t=l5(e))===null||t===void 0?void 0:t.spanContext()}var i$=/^([0-9a-f]{32})$/i,s$=/^[0-9a-f]{16}$/i;function l$(e){return i$.test(e)&&e!==ZS}function u$(e){return s$.test(e)&&e!==$S}function qS(e){return l$(e.traceId)&&u$(e.spanId)}function c$(e){return new Hh(e)}var c5=t2.getInstance(),GS=function(){function e(){}return e.prototype.startSpan=function(t,n,a){a===void 0&&(a=c5.active());var i=!!(n!=null&&n.root);if(i)return new Hh;var l=a&&WS(a);return d$(l)&&qS(l)?new Hh(l):new Hh},e.prototype.startActiveSpan=function(t,n,a,i){var l,u,f;if(!(arguments.length<2)){arguments.length===2?f=n:arguments.length===3?(l=n,f=a):(l=n,u=a,f=i);var h=u!=null?u:c5.active(),g=this.startSpan(t,l,h),x=u5(h,g);return c5.with(x,f,void 0,g)}},e}();function d$(e){return typeof e=="object"&&typeof e.spanId=="string"&&typeof e.traceId=="string"&&typeof e.traceFlags=="number"}var f$=new GS,p$=function(){function e(t,n,a,i){this._provider=t,this.name=n,this.version=a,this.options=i}return e.prototype.startSpan=function(t,n,a){return this._getTracer().startSpan(t,n,a)},e.prototype.startActiveSpan=function(t,n,a,i){var l=this._getTracer();return Reflect.apply(l.startActiveSpan,l,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var t=this._provider.getDelegateTracer(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):f$},e}(),h$=function(){function e(){}return e.prototype.getTracer=function(t,n,a){return new GS},e}(),m$=new h$,YS=function(){function e(){}return e.prototype.getTracer=function(t,n,a){var i;return(i=this.getDelegateTracer(t,n,a))!==null&&i!==void 0?i:new p$(this,t,n,a)},e.prototype.getDelegate=function(){var t;return(t=this._delegate)!==null&&t!==void 0?t:m$},e.prototype.setDelegate=function(t){this._delegate=t},e.prototype.getDelegateTracer=function(t,n,a){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getTracer(t,n,a)},e}(),n2;(function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"})(n2||(n2={})),t2.getInstance(),Gs.instance();var g$=function(){function e(){}return e.prototype.getMeter=function(t,n,a){return HV},e}(),v$=new g$,d5="metrics",y$=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalMeterProvider=function(t){return Ph(d5,t,Gs.instance())},e.prototype.getMeterProvider=function(){return vd(d5)||v$},e.prototype.getMeter=function(t,n,a){return this.getMeterProvider().getMeter(t,n,a)},e.prototype.disable=function(){Fh(d5,Gs.instance())},e}();y$.getInstance();var x$=function(){function e(){}return e.prototype.inject=function(t,n){},e.prototype.extract=function(t,n){return t},e.prototype.fields=function(){return[]},e}(),f5=VS("OpenTelemetry Baggage Key");function JS(e){return e.getValue(f5)||void 0}function w$(){return JS(t2.getInstance().active())}function b$(e,t){return e.setValue(f5,t)}function C$(e){return e.deleteValue(f5)}var p5="propagation",S$=new x$,k$=function(){function e(){this.createBaggage=MV,this.getBaggage=JS,this.getActiveBaggage=w$,this.setBaggage=b$,this.deleteBaggage=C$}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(t){return Ph(p5,t,Gs.instance())},e.prototype.inject=function(t,n,a){return a===void 0&&(a=YV),this._getGlobalPropagator().inject(t,n,a)},e.prototype.extract=function(t,n,a){return a===void 0&&(a=GV),this._getGlobalPropagator().extract(t,n,a)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){Fh(p5,Gs.instance())},e.prototype._getGlobalPropagator=function(){return vd(p5)||S$},e}();k$.getInstance();var h5="trace",E$=function(){function e(){this._proxyTracerProvider=new YS,this.wrapSpanContext=c$,this.isSpanContextValid=qS,this.deleteSpan=a$,this.getSpan=l5,this.getActiveSpan=r$,this.getSpanContext=WS,this.setSpan=u5,this.setSpanContext=o$}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(t){var n=Ph(h5,this._proxyTracerProvider,Gs.instance());return n&&this._proxyTracerProvider.setDelegate(t),n},e.prototype.getTracerProvider=function(){return vd(h5)||this._proxyTracerProvider},e.prototype.getTracer=function(t,n){return this.getTracerProvider().getTracer(t,n)},e.prototype.disable=function(){Fh(h5,Gs.instance()),this._proxyTracerProvider=new YS},e}(),_$=E$.getInstance(),T$=Object.defineProperty,R$=(e,t)=>{for(var n in t)T$(e,n,{get:t[n],enumerable:!0})},XS="AI_NoOutputSpecifiedError",KS=`vercel.ai.error.${XS}`,M$=Symbol.for(KS),QS,ek=class extends Jt{constructor({message:e="No output specified."}={}){super({name:XS,message:e}),this[QS]=!0}static isInstance(e){return Jt.hasMarker(e,KS)}};QS=M$;function A$(e){const t="AI SDK Warning:";switch(e.type){case"unsupported-setting":{let n=`${t} The "${e.setting}" setting is not supported by this model`;return e.details&&(n+=` - ${e.details}`),n}case"unsupported-tool":{const n="name"in e.tool?e.tool.name:"unknown tool";let a=`${t} The tool "${n}" is not supported by this model`;return e.details&&(a+=` - ${e.details}`),a}case"other":return`${t} ${e.message}`;default:return`${t} ${JSON.stringify(e,null,2)}`}}var N$="AI SDK Warning System: To turn off warning logging, set the AI_SDK_LOG_WARNINGS global to false.",tk=!1,nk=e=>{if(e.length===0)return;const t=globalThis.AI_SDK_LOG_WARNINGS;if(t!==!1){if(typeof t=="function"){t(e);return}tk||(tk=!0,console.info(N$));for(const n of e)console.warn(A$(n))}},rk="AI_InvalidArgumentError",ak=`vercel.ai.error.${rk}`,L$=Symbol.for(ak),ok,Ys=class extends Jt{constructor({parameter:e,value:t,message:n}){super({name:rk,message:`Invalid argument for parameter ${e}: ${n}`}),this[ok]=!0,this.parameter=e,this.value=t}static isInstance(e){return Jt.hasMarker(e,ak)}};ok=L$;var ik="AI_InvalidToolInputError",sk=`vercel.ai.error.${ik}`,O$=Symbol.for(sk),lk,uk=class extends Jt{constructor({toolInput:e,toolName:t,cause:n,message:a=`Invalid input for tool ${t}: ${Jf(n)}`}){super({name:ik,message:a,cause:n}),this[lk]=!0,this.toolInput=e,this.toolName=t}static isInstance(e){return Jt.hasMarker(e,sk)}};lk=O$;var ck="AI_NoObjectGeneratedError",dk=`vercel.ai.error.${ck}`,I$=Symbol.for(dk),fk,pk=class extends Jt{constructor({message:e="No object generated.",cause:t,text:n,response:a,usage:i,finishReason:l}){super({name:ck,message:e,cause:t}),this[fk]=!0,this.text=n,this.response=a,this.usage=i,this.finishReason=l}static isInstance(e){return Jt.hasMarker(e,dk)}};fk=I$;var hk="AI_NoOutputGeneratedError",mk=`vercel.ai.error.${hk}`,D$=Symbol.for(mk),gk,j$=class extends Jt{constructor({message:e="No output generated.",cause:t}={}){super({name:hk,message:e,cause:t}),this[gk]=!0}static isInstance(e){return Jt.hasMarker(e,mk)}};gk=D$;var vk="AI_NoSuchToolError",yk=`vercel.ai.error.${vk}`,P$=Symbol.for(yk),xk,m5=class extends Jt{constructor({toolName:e,availableTools:t=void 0,message:n=`Model tried to call unavailable tool '${e}'. ${t===void 0?"No tools are available.":`Available tools: ${t.join(", ")}.`}`}){super({name:vk,message:n}),this[xk]=!0,this.toolName=e,this.availableTools=t}static isInstance(e){return Jt.hasMarker(e,yk)}};xk=P$;var wk="AI_ToolCallRepairError",bk=`vercel.ai.error.${wk}`,F$=Symbol.for(bk),Ck,z$=class extends Jt{constructor({cause:e,originalError:t,message:n=`Error repairing tool call: ${Jf(e)}`}){super({name:wk,message:n,cause:e}),this[Ck]=!0,this.originalError=t}static isInstance(e){return Jt.hasMarker(e,bk)}};Ck=F$;var H$=class extends Jt{constructor(e){super({name:"AI_UnsupportedModelVersionError",message:`Unsupported model version ${e.version} for provider "${e.provider}" and model "${e.modelId}". AI SDK 5 only supports models that implement specification version "v2".`}),this.version=e.version,this.provider=e.provider,this.modelId=e.modelId}},Sk="AI_InvalidMessageRoleError",kk=`vercel.ai.error.${Sk}`,U$=Symbol.for(kk),Ek,B$=class extends Jt{constructor({role:e,message:t=`Invalid message role: '${e}'. Must be one of: "system", "user", "assistant", "tool".`}){super({name:Sk,message:t}),this[Ek]=!0,this.role=e}static isInstance(e){return Jt.hasMarker(e,kk)}};Ek=U$;var _k="AI_MessageConversionError",Tk=`vercel.ai.error.${_k}`,V$=Symbol.for(Tk),Rk,$$=class extends Jt{constructor({originalMessage:e,message:t}){super({name:_k,message:t}),this[Rk]=!0,this.originalMessage=e}static isInstance(e){return Jt.hasMarker(e,Tk)}};Rk=V$;var Mk="AI_DownloadError",Ak=`vercel.ai.error.${Mk}`,Z$=Symbol.for(Ak),Nk,g5=class extends Jt{constructor({url:e,statusCode:t,statusText:n,cause:a,message:i=a==null?`Failed to download ${e}: ${t} ${n}`:`Failed to download ${e}: ${a}`}){super({name:Mk,message:i,cause:a}),this[Nk]=!0,this.url=e,this.statusCode=t,this.statusText=n}static isInstance(e){return Jt.hasMarker(e,Ak)}};Nk=Z$;var Lk="AI_RetryError",Ok=`vercel.ai.error.${Lk}`,W$=Symbol.for(Ok),Ik,Dk=class extends Jt{constructor({message:e,reason:t,errors:n}){super({name:Lk,message:e}),this[Ik]=!0,this.reason=t,this.errors=n,this.lastError=n[n.length-1]}static isInstance(e){return Jt.hasMarker(e,Ok)}};Ik=W$;function r2(e){if(typeof e!="string"){if(e.specificationVersion!=="v2")throw new H$({version:e.specificationVersion,provider:e.provider,modelId:e.modelId});return e}return q$().languageModel(e)}function q$(){var e;return(e=globalThis.AI_SDK_DEFAULT_PROVIDER)!=null?e:pV}var G$=[{mediaType:"image/gif",bytesPrefix:[71,73,70]},{mediaType:"image/png",bytesPrefix:[137,80,78,71]},{mediaType:"image/jpeg",bytesPrefix:[255,216]},{mediaType:"image/webp",bytesPrefix:[82,73,70,70,null,null,null,null,87,69,66,80]},{mediaType:"image/bmp",bytesPrefix:[66,77]},{mediaType:"image/tiff",bytesPrefix:[73,73,42,0]},{mediaType:"image/tiff",bytesPrefix:[77,77,0,42]},{mediaType:"image/avif",bytesPrefix:[0,0,0,32,102,116,121,112,97,118,105,102]},{mediaType:"image/heic",bytesPrefix:[0,0,0,32,102,116,121,112,104,101,105,99]}],Y$=e=>{const t=typeof e=="string"?K9(e):e,n=(t[6]&127)<<21|(t[7]&127)<<14|(t[8]&127)<<7|t[9]&127;return t.slice(n+10)};function J$(e){return typeof e=="string"&&e.startsWith("SUQz")||typeof e!="string"&&e.length>10&&e[0]===73&&e[1]===68&&e[2]===51?Y$(e):e}function X$({data:e,signatures:t}){const n=J$(e),a=typeof n=="string"?K9(n.substring(0,Math.min(n.length,24))):n;for(const i of t)if(a.length>=i.bytesPrefix.length&&i.bytesPrefix.every((l,u)=>l===null||a[u]===l))return i.mediaType}var a2="5.0.121",K$=async({url:e})=>{var t;const n=e.toString();try{const a=await fetch(n,{headers:Xu({},`ai-sdk/${a2}`,Ih())});if(!a.ok)throw new g5({url:n,statusCode:a.status,statusText:a.statusText});return{data:new Uint8Array(await a.arrayBuffer()),mediaType:(t=a.headers.get("content-type"))!=null?t:void 0}}catch(a){throw g5.isInstance(a)?a:new g5({url:n,cause:a})}},Q$=(e=K$)=>t=>Promise.all(t.map(async n=>n.isUrlSupportedByModel?null:e(n)));function eZ(e){try{const[t,n]=e.split(",");return{mediaType:t.split(";")[0].split(":")[1],base64Content:n}}catch(t){return{mediaType:void 0,base64Content:void 0}}}var jk=ua([ee(),W4(Uint8Array),W4(ArrayBuffer),VC(e=>{var t,n;return(n=(t=globalThis.Buffer)==null?void 0:t.isBuffer(e))!=null?n:!1},{message:"Must be a Buffer"})]);function Pk(e){if(e instanceof Uint8Array)return{data:e,mediaType:void 0};if(e instanceof ArrayBuffer)return{data:new Uint8Array(e),mediaType:void 0};if(typeof e=="string")try{e=new URL(e)}catch(t){}if(e instanceof URL&&e.protocol==="data:"){const{mediaType:t,base64Content:n}=eZ(e.toString());if(t==null||n==null)throw new Jt({name:"InvalidDataContentError",message:`Invalid data URL format in content ${e.toString()}`});return{data:n,mediaType:t}}return{data:e,mediaType:void 0}}function tZ(e){return typeof e=="string"?e:e instanceof ArrayBuffer?Q9(new Uint8Array(e)):Q9(e)}async function Fk({prompt:e,supportedUrls:t,download:n=Q$()}){const a=await rZ(e.messages,n,t);return[...e.system!=null?[{role:"system",content:e.system}]:[],...e.messages.map(i=>nZ({message:i,downloadedAssets:a}))]}function nZ({message:e,downloadedAssets:t}){const n=e.role;switch(n){case"system":return{role:"system",content:e.content,providerOptions:e.providerOptions};case"user":return typeof e.content=="string"?{role:"user",content:[{type:"text",text:e.content}],providerOptions:e.providerOptions}:{role:"user",content:e.content.map(a=>aZ(a,t)).filter(a=>a.type!=="text"||a.text!==""),providerOptions:e.providerOptions};case"assistant":return typeof e.content=="string"?{role:"assistant",content:[{type:"text",text:e.content}],providerOptions:e.providerOptions}:{role:"assistant",content:e.content.filter(a=>a.type!=="text"||a.text!==""||a.providerOptions!=null).map(a=>{const i=a.providerOptions;switch(a.type){case"file":{const{data:l,mediaType:u}=Pk(a.data);return{type:"file",data:l,filename:a.filename,mediaType:u!=null?u:a.mediaType,providerOptions:i}}case"reasoning":return{type:"reasoning",text:a.text,providerOptions:i};case"text":return{type:"text",text:a.text,providerOptions:i};case"tool-call":return{type:"tool-call",toolCallId:a.toolCallId,toolName:a.toolName,input:a.input,providerExecuted:a.providerExecuted,providerOptions:i};case"tool-result":return{type:"tool-result",toolCallId:a.toolCallId,toolName:a.toolName,output:a.output,providerOptions:i}}}),providerOptions:e.providerOptions};case"tool":return{role:"tool",content:e.content.map(a=>({type:"tool-result",toolCallId:a.toolCallId,toolName:a.toolName,output:a.output,providerOptions:a.providerOptions})),providerOptions:e.providerOptions};default:{const a=n;throw new B$({role:a})}}}async function rZ(e,t,n){const a=e.filter(l=>l.role==="user").map(l=>l.content).filter(l=>Array.isArray(l)).flat().filter(l=>l.type==="image"||l.type==="file").map(l=>{var u;const f=(u=l.mediaType)!=null?u:l.type==="image"?"image/*":void 0;let h=l.type==="image"?l.image:l.data;if(typeof h=="string")try{h=new URL(h)}catch(g){}return{mediaType:f,data:h}}).filter(l=>l.data instanceof URL).map(l=>({url:l.data,isUrlSupportedByModel:l.mediaType!=null&&cU({url:l.data.toString(),mediaType:l.mediaType,supportedUrls:n})})),i=await t(a);return Object.fromEntries(i.map((l,u)=>l==null?null:[a[u].url.toString(),{data:l.data,mediaType:l.mediaType}]).filter(l=>l!=null))}function aZ(e,t){var n;if(e.type==="text")return{type:"text",text:e.text,providerOptions:e.providerOptions};let a;const i=e.type;switch(i){case"image":a=e.image;break;case"file":a=e.data;break;default:throw new Error(`Unsupported part type: ${i}`)}const{data:l,mediaType:u}=Pk(a);let f=u!=null?u:e.mediaType,h=l;if(h instanceof URL){const g=t[h.toString()];g&&(h=g.data,f!=null||(f=g.mediaType))}switch(i){case"image":return(h instanceof Uint8Array||typeof h=="string")&&(f=(n=X$({data:h,signatures:G$}))!=null?n:f),{type:"file",mediaType:f!=null?f:"image/*",filename:void 0,data:h,providerOptions:e.providerOptions};case"file":{if(f==null)throw new Error("Media type is missing for file part");return{type:"file",mediaType:f,filename:e.filename,data:h,providerOptions:e.providerOptions}}}}function v5({maxOutputTokens:e,temperature:t,topP:n,topK:a,presencePenalty:i,frequencyPenalty:l,seed:u,stopSequences:f}){if(e!=null){if(!Number.isInteger(e))throw new Ys({parameter:"maxOutputTokens",value:e,message:"maxOutputTokens must be an integer"});if(e<1)throw new Ys({parameter:"maxOutputTokens",value:e,message:"maxOutputTokens must be >= 1"})}if(t!=null&&typeof t!="number")throw new Ys({parameter:"temperature",value:t,message:"temperature must be a number"});if(n!=null&&typeof n!="number")throw new Ys({parameter:"topP",value:n,message:"topP must be a number"});if(a!=null&&typeof a!="number")throw new Ys({parameter:"topK",value:a,message:"topK must be a number"});if(i!=null&&typeof i!="number")throw new Ys({parameter:"presencePenalty",value:i,message:"presencePenalty must be a number"});if(l!=null&&typeof l!="number")throw new Ys({parameter:"frequencyPenalty",value:l,message:"frequencyPenalty must be a number"});if(u!=null&&!Number.isInteger(u))throw new Ys({parameter:"seed",value:u,message:"seed must be an integer"});return{maxOutputTokens:e,temperature:t,topP:n,topK:a,presencePenalty:i,frequencyPenalty:l,stopSequences:f,seed:u}}function oZ(e){return e!=null&&Object.keys(e).length>0}function zk({tools:e,toolChoice:t,activeTools:n}){return oZ(e)?{tools:(n!=null?Object.entries(e).filter(([i])=>n.includes(i)):Object.entries(e)).map(([i,l])=>{const u=l.type;switch(u){case void 0:case"dynamic":case"function":return{type:"function",name:i,description:l.description,inputSchema:Q4(l.inputSchema).jsonSchema,providerOptions:l.providerOptions};case"provider-defined":return{type:"provider-defined",name:i,id:l.id,args:l.args};default:{const f=u;throw new Error(`Unsupported tool type: ${f}`)}}}),toolChoice:t==null?{type:"auto"}:typeof t=="string"?{type:t}:{type:"tool",toolName:t.toolName}}:{tools:void 0,toolChoice:void 0}}var Uh=aU(()=>ua([NH(),ee(),or(),fn(),a1(ee(),Uh),Hn(Uh)])),Yr=a1(ee(),a1(ee(),Uh)),Hk=$e({type:$t("text"),text:ee(),providerOptions:Yr.optional()}),iZ=$e({type:$t("image"),image:ua([jk,W4(URL)]),mediaType:ee().optional(),providerOptions:Yr.optional()}),Uk=$e({type:$t("file"),data:ua([jk,W4(URL)]),filename:ee().optional(),mediaType:ee(),providerOptions:Yr.optional()}),sZ=$e({type:$t("reasoning"),text:ee(),providerOptions:Yr.optional()}),lZ=$e({type:$t("tool-call"),toolCallId:ee(),toolName:ee(),input:Bo(),providerOptions:Yr.optional(),providerExecuted:fn().optional()}),uZ=PH("type",[$e({type:$t("text"),value:ee()}),$e({type:$t("json"),value:Uh}),$e({type:$t("error-text"),value:ee()}),$e({type:$t("error-json"),value:Uh}),$e({type:$t("content"),value:Hn(ua([$e({type:$t("text"),text:ee()}),$e({type:$t("media"),data:ee(),mediaType:ee()})]))})]),Bk=$e({type:$t("tool-result"),toolCallId:ee(),toolName:ee(),output:uZ,providerOptions:Yr.optional()}),cZ=$e({role:$t("system"),content:ee(),providerOptions:Yr.optional()}),dZ=$e({role:$t("user"),content:ua([ee(),Hn(ua([Hk,iZ,Uk]))]),providerOptions:Yr.optional()}),fZ=$e({role:$t("assistant"),content:ua([ee(),Hn(ua([Hk,Uk,sZ,lZ,Bk]))]),providerOptions:Yr.optional()}),pZ=$e({role:$t("tool"),content:Hn(Bk),providerOptions:Yr.optional()}),hZ=ua([cZ,dZ,fZ,pZ]);async function Vk(e){if(e.prompt==null&&e.messages==null)throw new Xf({prompt:e,message:"prompt or messages must be defined"});if(e.prompt!=null&&e.messages!=null)throw new Xf({prompt:e,message:"prompt and messages cannot be defined at the same time"});if(e.system!=null&&typeof e.system!="string")throw new Xf({prompt:e,message:"system must be a string"});let t;if(e.prompt!=null&&typeof e.prompt=="string")t=[{role:"user",content:e.prompt}];else if(e.prompt!=null&&Array.isArray(e.prompt))t=e.prompt;else if(e.messages!=null)t=e.messages;else throw new Xf({prompt:e,message:"prompt or messages must be defined"});if(t.length===0)throw new Xf({prompt:e,message:"messages must not be empty"});const n=await ql({value:t,schema:Hn(hZ)});if(!n.success)throw new Xf({prompt:e,message:"The messages must be a ModelMessage[]. If you have passed a UIMessage[], you can use convertToModelMessages to convert them.",cause:n.error});return{messages:t,system:e.system}}function $k(e){if(!r5.isInstance(e))return e;const t=(process==null?void 0:process.env.NODE_ENV)==="production",n="https://v5.ai-sdk.dev/unauthenticated-ai-gateway";return t?new Jt({name:"GatewayError",message:`Unauthenticated. Configure AI_GATEWAY_API_KEY or use a provider module. Learn more: ${n}`}):Object.assign(new Error(`\x1B[1m\x1B[31mUnauthenticated request to AI Gateway.\x1B[0m
|
|
338
|
-
|
|
339
|
-
To authenticate, set the \x1B[33mAI_GATEWAY_API_KEY\x1B[0m environment variable with your API key.
|
|
340
|
-
|
|
341
|
-
Alternatively, you can use a provider module instead of the AI Gateway.
|
|
342
|
-
|
|
343
|
-
Learn more: \x1B[34m${n}\x1B[0m
|
|
344
|
-
|
|
345
|
-
`),{name:"GatewayAuthenticationError"})}function u1({operationId:e,telemetry:t}){return{"operation.name":`${e}${(t==null?void 0:t.functionId)!=null?` ${t.functionId}`:""}`,"resource.name":t==null?void 0:t.functionId,"ai.operationId":e,"ai.telemetry.functionId":t==null?void 0:t.functionId}}function Zk({model:e,settings:t,telemetry:n,headers:a}){var i;return{"ai.model.provider":e.provider,"ai.model.id":e.modelId,...Object.entries(t).reduce((l,[u,f])=>(l[`ai.settings.${u}`]=f,l),{}),...Object.entries((i=n==null?void 0:n.metadata)!=null?i:{}).reduce((l,[u,f])=>(l[`ai.telemetry.metadata.${u}`]=f,l),{}),...Object.entries(a!=null?a:{}).reduce((l,[u,f])=>(f!==void 0&&(l[`ai.request.headers.${u}`]=f),l),{})}}var mZ={startSpan(){return o2},startActiveSpan(e,t,n,a){if(typeof t=="function")return t(o2);if(typeof n=="function")return n(o2);if(typeof a=="function")return a(o2)}},o2={spanContext(){return gZ},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},addLink(){return this},addLinks(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this}},gZ={traceId:"",spanId:"",traceFlags:0};function Wk({isEnabled:e=!1,tracer:t}={}){return e?t||_$.getTracer("ai"):mZ}function c1({name:e,tracer:t,attributes:n,fn:a,endWhenDone:i=!0}){return t.startActiveSpan(e,{attributes:n},async l=>{try{const u=await a(l);return i&&l.end(),u}catch(u){try{y5(l,u)}finally{l.end()}throw u}})}function y5(e,t){t instanceof Error?(e.recordException({name:t.name,message:t.message,stack:t.stack}),e.setStatus({code:n2.ERROR,message:t.message})):e.setStatus({code:n2.ERROR})}function ji({telemetry:e,attributes:t}){return(e==null?void 0:e.isEnabled)!==!0?{}:Object.entries(t).reduce((n,[a,i])=>{if(i==null)return n;if(typeof i=="object"&&"input"in i&&typeof i.input=="function"){if((e==null?void 0:e.recordInputs)===!1)return n;const l=i.input();return l==null?n:{...n,[a]:l}}if(typeof i=="object"&&"output"in i&&typeof i.output=="function"){if((e==null?void 0:e.recordOutputs)===!1)return n;const l=i.output();return l==null?n:{...n,[a]:l}}return{...n,[a]:i}},{})}function qk(e){return JSON.stringify(e.map(t=>({...t,content:typeof t.content=="string"?t.content:t.content.map(n=>n.type==="file"?{...n,data:n.data instanceof Uint8Array?tZ(n.data):n.data}:n)})))}function Gk(e,t){return{inputTokens:Bh(e.inputTokens,t.inputTokens),outputTokens:Bh(e.outputTokens,t.outputTokens),totalTokens:Bh(e.totalTokens,t.totalTokens),reasoningTokens:Bh(e.reasoningTokens,t.reasoningTokens),cachedInputTokens:Bh(e.cachedInputTokens,t.cachedInputTokens)}}function Bh(e,t){return e==null&&t==null?void 0:(e!=null?e:0)+(t!=null?t:0)}function x5(e){return e===void 0?[]:Array.isArray(e)?e:[e]}function vZ({error:e,exponentialBackoffDelay:t}){const n=e.responseHeaders;if(!n)return t;let a;const i=n["retry-after-ms"];if(i){const u=parseFloat(i);Number.isNaN(u)||(a=u)}const l=n["retry-after"];if(l&&a===void 0){const u=parseFloat(l);Number.isNaN(u)?a=Date.parse(l)-Date.now():a=u*1e3}return a!=null&&!Number.isNaN(a)&&0<=a&&(a<60*1e3||a<t)?a:t}var yZ=({maxRetries:e=2,initialDelayInMs:t=2e3,backoffFactor:n=2,abortSignal:a}={})=>async i=>Yk(i,{maxRetries:e,delayInMs:t,backoffFactor:n,abortSignal:a});async function Yk(e,{maxRetries:t,delayInMs:n,backoffFactor:a,abortSignal:i},l=[]){try{return await e()}catch(u){if(dd(u)||t===0)throw u;const f=Y4(u),h=[...l,u],g=h.length;if(g>t)throw new Dk({message:`Failed after ${g} attempts. Last error: ${f}`,reason:"maxRetriesExceeded",errors:h});if(u instanceof Error&&yo.isInstance(u)&&u.isRetryable===!0&&g<=t)return await sU(vZ({error:u,exponentialBackoffDelay:n}),{abortSignal:i}),Yk(e,{maxRetries:t,delayInMs:a*n,backoffFactor:a,abortSignal:i},h);throw g===1?u:new Dk({message:`Failed after ${g} attempts with non-retryable error: '${f}'`,reason:"errorNotRetryable",errors:h})}}function Jk({maxRetries:e,abortSignal:t}){if(e!=null){if(!Number.isInteger(e))throw new Ys({parameter:"maxRetries",value:e,message:"maxRetries must be an integer"});if(e<0)throw new Ys({parameter:"maxRetries",value:e,message:"maxRetries must be >= 0"})}const n=e!=null?e:2;return{maxRetries:n,retry:yZ({maxRetries:n,abortSignal:t})}}function Xk(e){const t=e.filter(n=>n.type==="text");if(t.length!==0)return t.map(n=>n.text).join("")}var Kk=class{constructor({data:e,mediaType:t}){const n=e instanceof Uint8Array;this.base64Data=n?void 0:e,this.uint8ArrayData=n?e:void 0,this.mediaType=t}get base64(){return this.base64Data==null&&(this.base64Data=Q9(this.uint8ArrayData)),this.base64Data}get uint8Array(){return this.uint8ArrayData==null&&(this.uint8ArrayData=K9(this.base64Data)),this.uint8ArrayData}},xZ=class extends Kk{constructor(e){super(e),this.type="file"}};async function Qk({toolCall:e,tools:t,repairToolCall:n,system:a,messages:i}){try{if(t==null)throw new m5({toolName:e.toolName});try{return await eE({toolCall:e,tools:t})}catch(l){if(n==null||!(m5.isInstance(l)||uk.isInstance(l)))throw l;let u=null;try{u=await n({toolCall:e,tools:t,inputSchema:({toolName:f})=>{const{inputSchema:h}=t[f];return Q4(h).jsonSchema},system:a,messages:i,error:l})}catch(f){throw new z$({cause:f,originalError:l})}if(u==null)throw l;return await eE({toolCall:u,tools:t})}}catch(l){const u=await hd({text:e.input}),f=u.success?u.value:e.input;return{type:"tool-call",toolCallId:e.toolCallId,toolName:e.toolName,input:f,dynamic:!0,invalid:!0,error:l,providerMetadata:e.providerMetadata}}}async function eE({toolCall:e,tools:t}){const n=e.toolName,a=t[n];if(a==null)throw new m5({toolName:e.toolName,availableTools:Object.keys(t)});const i=Q4(a.inputSchema),l=e.input.trim()===""?await ql({value:{},schema:i}):await hd({text:e.input,schema:i});if(l.success===!1)throw new uk({toolName:n,toolInput:e.input,cause:l.error});return a.type==="dynamic"?{type:"tool-call",toolCallId:e.toolCallId,toolName:e.toolName,input:l.value,providerExecuted:e.providerExecuted,providerMetadata:e.providerMetadata,dynamic:!0}:{type:"tool-call",toolCallId:e.toolCallId,toolName:n,input:l.value,providerExecuted:e.providerExecuted,providerMetadata:e.providerMetadata}}var tE=class{constructor({content:e,finishReason:t,usage:n,warnings:a,request:i,response:l,providerMetadata:u}){this.content=e,this.finishReason=t,this.usage=n,this.warnings=a,this.request=i,this.response=l,this.providerMetadata=u}get text(){return this.content.filter(e=>e.type==="text").map(e=>e.text).join("")}get reasoning(){return this.content.filter(e=>e.type==="reasoning")}get reasoningText(){return this.reasoning.length===0?void 0:this.reasoning.map(e=>e.text).join("")}get files(){return this.content.filter(e=>e.type==="file").map(e=>e.file)}get sources(){return this.content.filter(e=>e.type==="source")}get toolCalls(){return this.content.filter(e=>e.type==="tool-call")}get staticToolCalls(){return this.toolCalls.filter(e=>e.dynamic!==!0)}get dynamicToolCalls(){return this.toolCalls.filter(e=>e.dynamic===!0)}get toolResults(){return this.content.filter(e=>e.type==="tool-result")}get staticToolResults(){return this.toolResults.filter(e=>e.dynamic!==!0)}get dynamicToolResults(){return this.toolResults.filter(e=>e.dynamic===!0)}};function nE(e){return({steps:t})=>t.length===e}async function rE({stopConditions:e,steps:t}){return(await Promise.all(e.map(n=>n({steps:t})))).some(n=>n)}function Vh({output:e,tool:t,errorMode:n}){return n==="text"?{type:"error-text",value:Jf(e)}:n==="json"?{type:"error-json",value:aE(e)}:t!=null&&t.toModelOutput?t.toModelOutput(e):typeof e=="string"?{type:"text",value:e}:{type:"json",value:aE(e)}}function aE(e){return e===void 0?null:e}function w5({content:e,tools:t}){const n=[],a=e.filter(l=>l.type!=="source").filter(l=>(l.type!=="tool-result"||l.providerExecuted)&&(l.type!=="tool-error"||l.providerExecuted)).filter(l=>l.type!=="text"||l.text.length>0).map(l=>{switch(l.type){case"text":return{type:"text",text:l.text,providerOptions:l.providerMetadata};case"reasoning":return{type:"reasoning",text:l.text,providerOptions:l.providerMetadata};case"file":return{type:"file",data:l.file.base64,mediaType:l.file.mediaType,providerOptions:l.providerMetadata};case"tool-call":return{type:"tool-call",toolCallId:l.toolCallId,toolName:l.toolName,input:l.input,providerExecuted:l.providerExecuted,providerOptions:l.providerMetadata};case"tool-result":return{type:"tool-result",toolCallId:l.toolCallId,toolName:l.toolName,output:Vh({tool:t==null?void 0:t[l.toolName],output:l.output,errorMode:"none"}),providerExecuted:!0,providerOptions:l.providerMetadata};case"tool-error":return{type:"tool-result",toolCallId:l.toolCallId,toolName:l.toolName,output:Vh({tool:t==null?void 0:t[l.toolName],output:l.error,errorMode:"json"}),providerOptions:l.providerMetadata}}});a.length>0&&n.push({role:"assistant",content:a});const i=e.filter(l=>l.type==="tool-result"||l.type==="tool-error").filter(l=>!l.providerExecuted).map(l=>({type:"tool-result",toolCallId:l.toolCallId,toolName:l.toolName,output:Vh({tool:t==null?void 0:t[l.toolName],output:l.type==="tool-result"?l.output:l.error,errorMode:l.type==="tool-error"?"text":"none"}),...l.providerMetadata!=null?{providerOptions:l.providerMetadata}:{}}));return i.length>0&&n.push({role:"tool",content:i}),n}var wZ=Oh({prefix:"aitxt",size:24});async function bZ({model:e,tools:t,toolChoice:n,system:a,prompt:i,messages:l,maxRetries:u,abortSignal:f,headers:h,stopWhen:g=nE(1),experimental_output:x,experimental_telemetry:y,providerOptions:k,experimental_activeTools:b,activeTools:T=b,experimental_prepareStep:R,prepareStep:N=R,experimental_repairToolCall:O,experimental_download:P,experimental_context:z,_internal:{generateId:j=wZ,currentDate:V=()=>new Date}={},onStepFinish:H,...W}){const G=r2(e),ae=x5(g),{maxRetries:ye,retry:ce}=Jk({maxRetries:u,abortSignal:f}),he=v5(W),ue=Xu(h!=null?h:{},`ai/${a2}`),Te=Zk({model:G,telemetry:y,headers:ue,settings:{...he,maxRetries:ye}}),ke=await Vk({system:a,prompt:i,messages:l}),Ee=Wk(y);try{return await c1({name:"ai.generateText",attributes:ji({telemetry:y,attributes:{...u1({operationId:"ai.generateText",telemetry:y}),...Te,"ai.model.provider":G.provider,"ai.model.id":G.modelId,"ai.prompt":{input:()=>JSON.stringify({system:a,prompt:i,messages:l})}}}),tracer:Ee,fn:async xe=>{var K,Ae,B,X,pe,Z,ze;const st=v5(W);let Ve,_e=[],Ze=[];const Ke=[],We=[];do{const bt=[...ke.messages,...Ke],ct=await(N==null?void 0:N({model:G,steps:We,stepNumber:We.length,messages:bt})),yt=r2((K=ct==null?void 0:ct.model)!=null?K:G),Pt=await Fk({prompt:{system:(Ae=ct==null?void 0:ct.system)!=null?Ae:ke.system,messages:(B=ct==null?void 0:ct.messages)!=null?B:bt},supportedUrls:await yt.supportedUrls,download:P}),{toolChoice:St,tools:jn}=zk({tools:t,toolChoice:(X=ct==null?void 0:ct.toolChoice)!=null?X:n,activeTools:(pe=ct==null?void 0:ct.activeTools)!=null?pe:T});Ve=await ce(()=>{var Wt;return c1({name:"ai.generateText.doGenerate",attributes:ji({telemetry:y,attributes:{...u1({operationId:"ai.generateText.doGenerate",telemetry:y}),...Te,"ai.model.provider":yt.provider,"ai.model.id":yt.modelId,"ai.prompt.messages":{input:()=>qk(Pt)},"ai.prompt.tools":{input:()=>jn==null?void 0:jn.map(hr=>JSON.stringify(hr))},"ai.prompt.toolChoice":{input:()=>St!=null?JSON.stringify(St):void 0},"gen_ai.system":yt.provider,"gen_ai.request.model":yt.modelId,"gen_ai.request.frequency_penalty":W.frequencyPenalty,"gen_ai.request.max_tokens":W.maxOutputTokens,"gen_ai.request.presence_penalty":W.presencePenalty,"gen_ai.request.stop_sequences":W.stopSequences,"gen_ai.request.temperature":(Wt=W.temperature)!=null?Wt:void 0,"gen_ai.request.top_k":W.topK,"gen_ai.request.top_p":W.topP}}),tracer:Ee,fn:async hr=>{var $n,ve,Ne,dt,It,Me,Ye,At;const xt=await yt.doGenerate({...st,tools:jn,toolChoice:St,responseFormat:x==null?void 0:x.responseFormat,prompt:Pt,providerOptions:k,abortSignal:f,headers:ue}),Kt={id:(ve=($n=xt.response)==null?void 0:$n.id)!=null?ve:j(),timestamp:(dt=(Ne=xt.response)==null?void 0:Ne.timestamp)!=null?dt:V(),modelId:(Me=(It=xt.response)==null?void 0:It.modelId)!=null?Me:yt.modelId,headers:(Ye=xt.response)==null?void 0:Ye.headers,body:(At=xt.response)==null?void 0:At.body};return hr.setAttributes(ji({telemetry:y,attributes:{"ai.response.finishReason":xt.finishReason,"ai.response.text":{output:()=>Xk(xt.content)},"ai.response.toolCalls":{output:()=>{const ln=oE(xt.content);return ln==null?void 0:JSON.stringify(ln)}},"ai.response.id":Kt.id,"ai.response.model":Kt.modelId,"ai.response.timestamp":Kt.timestamp.toISOString(),"ai.response.providerMetadata":JSON.stringify(xt.providerMetadata),"ai.usage.promptTokens":xt.usage.inputTokens,"ai.usage.completionTokens":xt.usage.outputTokens,"gen_ai.response.finish_reasons":[xt.finishReason],"gen_ai.response.id":Kt.id,"gen_ai.response.model":Kt.modelId,"gen_ai.usage.input_tokens":xt.usage.inputTokens,"gen_ai.usage.output_tokens":xt.usage.outputTokens}})),{...xt,response:Kt}}})});const Bn=await Promise.all(Ve.content.filter(Wt=>Wt.type==="tool-call").map(Wt=>Qk({toolCall:Wt,tools:t,repairToolCall:O,system:a,messages:bt})));for(const Wt of Bn){if(Wt.invalid)continue;const hr=t[Wt.toolName];(hr==null?void 0:hr.onInputAvailable)!=null&&await hr.onInputAvailable({input:Wt.input,toolCallId:Wt.toolCallId,messages:bt,abortSignal:f,experimental_context:z})}const He=Bn.filter(Wt=>Wt.invalid&&Wt.dynamic);Ze=[];for(const Wt of He)Ze.push({type:"tool-error",toolCallId:Wt.toolCallId,toolName:Wt.toolName,input:Wt.input,error:Y4(Wt.error),dynamic:!0});_e=Bn.filter(Wt=>!Wt.providerExecuted),t!=null&&Ze.push(...await CZ({toolCalls:_e.filter(Wt=>!Wt.invalid),tools:t,tracer:Ee,telemetry:y,messages:bt,abortSignal:f,experimental_context:z}));const Mt=kZ({content:Ve.content,toolCalls:Bn,toolOutputs:Ze});Ke.push(...w5({content:Mt,tools:t}));const Pn=new tE({content:Mt,finishReason:Ve.finishReason,usage:Ve.usage,warnings:Ve.warnings,providerMetadata:Ve.providerMetadata,request:(Z=Ve.request)!=null?Z:{},response:{...Ve.response,messages:structuredClone(Ke)}});nk((ze=Ve.warnings)!=null?ze:[]),We.push(Pn),await(H==null?void 0:H(Pn))}while(_e.length>0&&Ze.length===_e.length&&!await rE({stopConditions:ae,steps:We}));xe.setAttributes(ji({telemetry:y,attributes:{"ai.response.finishReason":Ve.finishReason,"ai.response.text":{output:()=>Xk(Ve.content)},"ai.response.toolCalls":{output:()=>{const bt=oE(Ve.content);return bt==null?void 0:JSON.stringify(bt)}},"ai.response.providerMetadata":JSON.stringify(Ve.providerMetadata),"ai.usage.promptTokens":Ve.usage.inputTokens,"ai.usage.completionTokens":Ve.usage.outputTokens}}));const et=We[We.length-1];let Et;return et.finishReason==="stop"&&(Et=await(x==null?void 0:x.parseOutput({text:et.text},{response:et.response,usage:et.usage,finishReason:et.finishReason}))),new SZ({steps:We,resolvedOutput:Et})}})}catch(xe){throw $k(xe)}}async function CZ({toolCalls:e,tools:t,tracer:n,telemetry:a,messages:i,abortSignal:l,experimental_context:u}){return(await Promise.all(e.map(async({toolCallId:h,toolName:g,input:x})=>{const y=t[g];if((y==null?void 0:y.execute)!=null)return c1({name:"ai.toolCall",attributes:ji({telemetry:a,attributes:{...u1({operationId:"ai.toolCall",telemetry:a}),"ai.toolCall.name":g,"ai.toolCall.id":h,"ai.toolCall.args":{output:()=>JSON.stringify(x)}}}),tracer:n,fn:async k=>{try{const b=sS({execute:y.execute.bind(y),input:x,options:{toolCallId:h,messages:i,abortSignal:l,experimental_context:u}});let T;for await(const R of b)R.type==="final"&&(T=R.output);try{k.setAttributes(ji({telemetry:a,attributes:{"ai.toolCall.result":{output:()=>JSON.stringify(T)}}}))}catch(R){}return{type:"tool-result",toolCallId:h,toolName:g,input:x,output:T,dynamic:y.type==="dynamic"}}catch(b){return y5(k,b),{type:"tool-error",toolCallId:h,toolName:g,input:x,error:b,dynamic:y.type==="dynamic"}}}})}))).filter(h=>h!=null)}var SZ=class{constructor(e){this.steps=e.steps,this.resolvedOutput=e.resolvedOutput}get finalStep(){return this.steps[this.steps.length-1]}get content(){return this.finalStep.content}get text(){return this.finalStep.text}get files(){return this.finalStep.files}get reasoningText(){return this.finalStep.reasoningText}get reasoning(){return this.finalStep.reasoning}get toolCalls(){return this.finalStep.toolCalls}get staticToolCalls(){return this.finalStep.staticToolCalls}get dynamicToolCalls(){return this.finalStep.dynamicToolCalls}get toolResults(){return this.finalStep.toolResults}get staticToolResults(){return this.finalStep.staticToolResults}get dynamicToolResults(){return this.finalStep.dynamicToolResults}get sources(){return this.finalStep.sources}get finishReason(){return this.finalStep.finishReason}get warnings(){return this.finalStep.warnings}get providerMetadata(){return this.finalStep.providerMetadata}get response(){return this.finalStep.response}get request(){return this.finalStep.request}get usage(){return this.finalStep.usage}get totalUsage(){return this.steps.reduce((e,t)=>Gk(e,t.usage),{inputTokens:void 0,outputTokens:void 0,totalTokens:void 0,reasoningTokens:void 0,cachedInputTokens:void 0})}get experimental_output(){if(this.resolvedOutput==null)throw new ek;return this.resolvedOutput}};function oE(e){const t=e.filter(n=>n.type==="tool-call");if(t.length!==0)return t.map(n=>({toolCallId:n.toolCallId,toolName:n.toolName,input:n.input}))}function kZ({content:e,toolCalls:t,toolOutputs:n}){return[...e.map(a=>{switch(a.type){case"text":case"reasoning":case"source":return a;case"file":return{type:"file",file:new Kk(a)};case"tool-call":return t.find(i=>i.toolCallId===a.toolCallId);case"tool-result":{const i=t.find(l=>l.toolCallId===a.toolCallId);if(i==null)throw new Error(`Tool call ${a.toolCallId} not found.`);return a.isError?{type:"tool-error",toolCallId:a.toolCallId,toolName:a.toolName,input:i.input,error:a.result,providerExecuted:!0,dynamic:i.dynamic}:{type:"tool-result",toolCallId:a.toolCallId,toolName:a.toolName,input:i.input,output:a.result,providerExecuted:!0,dynamic:i.dynamic}}}}),...n]}function i2(e,t){const n=new Headers(e!=null?e:{});for(const[a,i]of Object.entries(t))n.has(a)||n.set(a,i);return n}function EZ({status:e,statusText:t,headers:n,textStream:a}){return new Response(a.pipeThrough(new TextEncoderStream),{status:e!=null?e:200,statusText:t,headers:i2(n,{"content-type":"text/plain; charset=utf-8"})})}function iE({response:e,status:t,statusText:n,headers:a,stream:i}){const l=t!=null?t:200;n!==void 0?e.writeHead(l,n,a):e.writeHead(l,a);const u=i.getReader();(async()=>{try{for(;;){const{done:h,value:g}=await u.read();if(h)break;e.write(g)||await new Promise(y=>{e.once("drain",y)})}}catch(h){throw h}finally{e.end()}})()}function _Z({response:e,status:t,statusText:n,headers:a,textStream:i}){iE({response:e,status:t,statusText:n,headers:Object.fromEntries(i2(a,{"content-type":"text/plain; charset=utf-8"}).entries()),stream:i.pipeThrough(new TextEncoderStream)})}var sE=class extends TransformStream{constructor(){super({transform(e,t){t.enqueue(`data: ${JSON.stringify(e)}
|
|
346
|
-
|
|
347
|
-
`)},flush(e){e.enqueue(`data: [DONE]
|
|
348
|
-
|
|
349
|
-
`)}})}},lE={"content-type":"text/event-stream","cache-control":"no-cache",connection:"keep-alive","x-vercel-ai-ui-message-stream":"v1","x-accel-buffering":"no"};function uE({status:e,statusText:t,headers:n,stream:a,consumeSseStream:i}){let l=a.pipeThrough(new sE);if(i){const[u,f]=l.tee();l=u,i({stream:f})}return new Response(l.pipeThrough(new TextEncoderStream),{status:e,statusText:t,headers:i2(n,lE)})}function TZ({originalMessages:e,responseMessageId:t}){if(e==null)return;const n=e[e.length-1];return(n==null?void 0:n.role)==="assistant"?n.id:typeof t=="function"?t():t}var RZ=pd(()=>ps(ua([Tr({type:$t("text-start"),id:ee(),providerMetadata:Yr.optional()}),Tr({type:$t("text-delta"),id:ee(),delta:ee(),providerMetadata:Yr.optional()}),Tr({type:$t("text-end"),id:ee(),providerMetadata:Yr.optional()}),Tr({type:$t("error"),errorText:ee()}),Tr({type:$t("tool-input-start"),toolCallId:ee(),toolName:ee(),providerExecuted:fn().optional(),dynamic:fn().optional()}),Tr({type:$t("tool-input-delta"),toolCallId:ee(),inputTextDelta:ee()}),Tr({type:$t("tool-input-available"),toolCallId:ee(),toolName:ee(),input:Bo(),providerExecuted:fn().optional(),providerMetadata:Yr.optional(),dynamic:fn().optional()}),Tr({type:$t("tool-input-error"),toolCallId:ee(),toolName:ee(),input:Bo(),providerExecuted:fn().optional(),providerMetadata:Yr.optional(),dynamic:fn().optional(),errorText:ee()}),Tr({type:$t("tool-output-available"),toolCallId:ee(),output:Bo(),providerExecuted:fn().optional(),dynamic:fn().optional(),preliminary:fn().optional()}),Tr({type:$t("tool-output-error"),toolCallId:ee(),errorText:ee(),providerExecuted:fn().optional(),dynamic:fn().optional()}),Tr({type:$t("reasoning-start"),id:ee(),providerMetadata:Yr.optional()}),Tr({type:$t("reasoning-delta"),id:ee(),delta:ee(),providerMetadata:Yr.optional()}),Tr({type:$t("reasoning-end"),id:ee(),providerMetadata:Yr.optional()}),Tr({type:$t("source-url"),sourceId:ee(),url:ee(),title:ee().optional(),providerMetadata:Yr.optional()}),Tr({type:$t("source-document"),sourceId:ee(),mediaType:ee(),title:ee(),filename:ee().optional(),providerMetadata:Yr.optional()}),Tr({type:$t("file"),url:ee(),mediaType:ee(),providerMetadata:Yr.optional()}),Tr({type:VC(e=>typeof e=="string"&&e.startsWith("data-"),{message:'Type must start with "data-"'}),id:ee().optional(),data:Bo(),transient:fn().optional()}),Tr({type:$t("start-step")}),Tr({type:$t("finish-step")}),Tr({type:$t("start"),messageId:ee().optional(),messageMetadata:Bo().optional()}),Tr({type:$t("finish"),finishReason:vn(["stop","length","content-filter","tool-calls","error","other","unknown"]).optional(),messageMetadata:Bo().optional()}),Tr({type:$t("abort")}),Tr({type:$t("message-metadata"),messageMetadata:Bo()})])));function MZ(e){return e.type.startsWith("data-")}function cE(e,t){if(e===void 0&&t===void 0)return;if(e===void 0)return t;if(t===void 0)return e;const n={...e};for(const a in t)if(Object.prototype.hasOwnProperty.call(t,a)){const i=t[a];if(i===void 0)continue;const l=a in e?e[a]:void 0,u=i!==null&&typeof i=="object"&&!Array.isArray(i)&&!(i instanceof Date)&&!(i instanceof RegExp),f=l!=null&&typeof l=="object"&&!Array.isArray(l)&&!(l instanceof Date)&&!(l instanceof RegExp);u&&f?n[a]=cE(l,i):n[a]=i}return n}function AZ(e){const t=["ROOT"];let n=-1,a=null;function i(h,g,x){switch(h){case'"':{n=g,t.pop(),t.push(x),t.push("INSIDE_STRING");break}case"f":case"t":case"n":{n=g,a=g,t.pop(),t.push(x),t.push("INSIDE_LITERAL");break}case"-":{t.pop(),t.push(x),t.push("INSIDE_NUMBER");break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{n=g,t.pop(),t.push(x),t.push("INSIDE_NUMBER");break}case"{":{n=g,t.pop(),t.push(x),t.push("INSIDE_OBJECT_START");break}case"[":{n=g,t.pop(),t.push(x),t.push("INSIDE_ARRAY_START");break}}}function l(h,g){switch(h){case",":{t.pop(),t.push("INSIDE_OBJECT_AFTER_COMMA");break}case"}":{n=g,t.pop();break}}}function u(h,g){switch(h){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{n=g,t.pop();break}}}for(let h=0;h<e.length;h++){const g=e[h];switch(t[t.length-1]){case"ROOT":i(g,h,"FINISH");break;case"INSIDE_OBJECT_START":{switch(g){case'"':{t.pop(),t.push("INSIDE_OBJECT_KEY");break}case"}":{n=h,t.pop();break}}break}case"INSIDE_OBJECT_AFTER_COMMA":{switch(g){case'"':{t.pop(),t.push("INSIDE_OBJECT_KEY");break}}break}case"INSIDE_OBJECT_KEY":{switch(g){case'"':{t.pop(),t.push("INSIDE_OBJECT_AFTER_KEY");break}}break}case"INSIDE_OBJECT_AFTER_KEY":{switch(g){case":":{t.pop(),t.push("INSIDE_OBJECT_BEFORE_VALUE");break}}break}case"INSIDE_OBJECT_BEFORE_VALUE":{i(g,h,"INSIDE_OBJECT_AFTER_VALUE");break}case"INSIDE_OBJECT_AFTER_VALUE":{l(g,h);break}case"INSIDE_STRING":{switch(g){case'"':{t.pop(),n=h;break}case"\\":{t.push("INSIDE_STRING_ESCAPE");break}default:n=h}break}case"INSIDE_ARRAY_START":{switch(g){case"]":{n=h,t.pop();break}default:{n=h,i(g,h,"INSIDE_ARRAY_AFTER_VALUE");break}}break}case"INSIDE_ARRAY_AFTER_VALUE":{switch(g){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{n=h,t.pop();break}default:{n=h;break}}break}case"INSIDE_ARRAY_AFTER_COMMA":{i(g,h,"INSIDE_ARRAY_AFTER_VALUE");break}case"INSIDE_STRING_ESCAPE":{t.pop(),n=h;break}case"INSIDE_NUMBER":{switch(g){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{n=h;break}case"e":case"E":case"-":case".":break;case",":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&u(g,h),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&l(g,h);break}case"}":{t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&l(g,h);break}case"]":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&u(g,h);break}default:{t.pop();break}}break}case"INSIDE_LITERAL":{const y=e.substring(a,h+1);!"false".startsWith(y)&&!"true".startsWith(y)&&!"null".startsWith(y)?(t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"?l(g,h):t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&u(g,h)):n=h;break}}}let f=e.slice(0,n+1);for(let h=t.length-1;h>=0;h--)switch(t[h]){case"INSIDE_STRING":{f+='"';break}case"INSIDE_OBJECT_KEY":case"INSIDE_OBJECT_AFTER_KEY":case"INSIDE_OBJECT_AFTER_COMMA":case"INSIDE_OBJECT_START":case"INSIDE_OBJECT_BEFORE_VALUE":case"INSIDE_OBJECT_AFTER_VALUE":{f+="}";break}case"INSIDE_ARRAY_START":case"INSIDE_ARRAY_AFTER_COMMA":case"INSIDE_ARRAY_AFTER_VALUE":{f+="]";break}case"INSIDE_LITERAL":{const x=e.substring(a,e.length);"true".startsWith(x)?f+="true".slice(x.length):"false".startsWith(x)?f+="false".slice(x.length):"null".startsWith(x)&&(f+="null".slice(x.length))}}return f}async function dE(e){if(e===void 0)return{value:void 0,state:"undefined-input"};let t=await hd({text:e});return t.success?{value:t.value,state:"successful-parse"}:(t=await hd({text:AZ(e)}),t.success?{value:t.value,state:"repaired-parse"}:{value:void 0,state:"failed-parse"})}function b5(e){return e.type.startsWith("data-")}function C5(e){return e.type==="text"}function S5(e){return e.type==="file"}function fE(e){return e.type==="reasoning"}function xd(e){return e.type.startsWith("tool-")}function k5(e){return e.type==="dynamic-tool"}function s2(e){return xd(e)||k5(e)}function $h(e){return e.type.split("-").slice(1).join("-")}function NZ(e){return k5(e)?e.toolName:$h(e)}function pE({lastMessage:e,messageId:t}){return{message:(e==null?void 0:e.role)==="assistant"?e:{id:t,metadata:void 0,role:"assistant",parts:[]},activeTextParts:{},activeReasoningParts:{},partialToolCalls:{}}}function hE({stream:e,messageMetadataSchema:t,dataPartSchemas:n,runUpdateMessageJob:a,onError:i,onToolCall:l,onData:u}){return e.pipeThrough(new TransformStream({async transform(f,h){await a(async({state:g,write:x})=>{var y,k,b,T;function R(j){const H=g.message.parts.filter(xd).find(W=>W.toolCallId===j);if(H==null)throw new Error("tool-output-error must be preceded by a tool-input-available");return H}function N(j){const H=g.message.parts.filter(W=>W.type==="dynamic-tool").find(W=>W.toolCallId===j);if(H==null)throw new Error("tool-output-error must be preceded by a tool-input-available");return H}function O(j){var V;const H=g.message.parts.find(ae=>xd(ae)&&ae.toolCallId===j.toolCallId),W=j,G=H;H!=null?(H.state=j.state,G.input=W.input,G.output=W.output,G.errorText=W.errorText,G.rawInput=W.rawInput,G.preliminary=W.preliminary,G.providerExecuted=(V=W.providerExecuted)!=null?V:H.providerExecuted,W.providerMetadata!=null&&H.state==="input-available"&&(H.callProviderMetadata=W.providerMetadata)):g.message.parts.push({type:`tool-${j.toolName}`,toolCallId:j.toolCallId,state:j.state,input:W.input,output:W.output,rawInput:W.rawInput,errorText:W.errorText,providerExecuted:W.providerExecuted,preliminary:W.preliminary,...W.providerMetadata!=null?{callProviderMetadata:W.providerMetadata}:{}})}function P(j){var V,H;const W=g.message.parts.find(ye=>ye.type==="dynamic-tool"&&ye.toolCallId===j.toolCallId),G=j,ae=W;W!=null?(W.state=j.state,ae.toolName=j.toolName,ae.input=G.input,ae.output=G.output,ae.errorText=G.errorText,ae.rawInput=(V=G.rawInput)!=null?V:ae.rawInput,ae.preliminary=G.preliminary,ae.providerExecuted=(H=G.providerExecuted)!=null?H:W.providerExecuted,G.providerMetadata!=null&&W.state==="input-available"&&(W.callProviderMetadata=G.providerMetadata)):g.message.parts.push({type:"dynamic-tool",toolName:j.toolName,toolCallId:j.toolCallId,state:j.state,input:G.input,output:G.output,errorText:G.errorText,preliminary:G.preliminary,providerExecuted:G.providerExecuted,...G.providerMetadata!=null?{callProviderMetadata:G.providerMetadata}:{}})}async function z(j){if(j!=null){const V=g.message.metadata!=null?cE(g.message.metadata,j):j;t!=null&&await Z9({value:V,schema:t}),g.message.metadata=V}}switch(f.type){case"text-start":{const j={type:"text",text:"",providerMetadata:f.providerMetadata,state:"streaming"};g.activeTextParts[f.id]=j,g.message.parts.push(j),x();break}case"text-delta":{const j=g.activeTextParts[f.id];j.text+=f.delta,j.providerMetadata=(y=f.providerMetadata)!=null?y:j.providerMetadata,x();break}case"text-end":{const j=g.activeTextParts[f.id];j.state="done",j.providerMetadata=(k=f.providerMetadata)!=null?k:j.providerMetadata,delete g.activeTextParts[f.id],x();break}case"reasoning-start":{const j={type:"reasoning",text:"",providerMetadata:f.providerMetadata,state:"streaming"};g.activeReasoningParts[f.id]=j,g.message.parts.push(j),x();break}case"reasoning-delta":{const j=g.activeReasoningParts[f.id];j.text+=f.delta,j.providerMetadata=(b=f.providerMetadata)!=null?b:j.providerMetadata,x();break}case"reasoning-end":{const j=g.activeReasoningParts[f.id];j.providerMetadata=(T=f.providerMetadata)!=null?T:j.providerMetadata,j.state="done",delete g.activeReasoningParts[f.id],x();break}case"file":{g.message.parts.push({type:"file",mediaType:f.mediaType,url:f.url}),x();break}case"source-url":{g.message.parts.push({type:"source-url",sourceId:f.sourceId,url:f.url,title:f.title,providerMetadata:f.providerMetadata}),x();break}case"source-document":{g.message.parts.push({type:"source-document",sourceId:f.sourceId,mediaType:f.mediaType,title:f.title,filename:f.filename,providerMetadata:f.providerMetadata}),x();break}case"tool-input-start":{const j=g.message.parts.filter(xd);g.partialToolCalls[f.toolCallId]={text:"",toolName:f.toolName,index:j.length,dynamic:f.dynamic},f.dynamic?P({toolCallId:f.toolCallId,toolName:f.toolName,state:"input-streaming",input:void 0,providerExecuted:f.providerExecuted}):O({toolCallId:f.toolCallId,toolName:f.toolName,state:"input-streaming",input:void 0,providerExecuted:f.providerExecuted}),x();break}case"tool-input-delta":{const j=g.partialToolCalls[f.toolCallId];j.text+=f.inputTextDelta;const{value:V}=await dE(j.text);j.dynamic?P({toolCallId:f.toolCallId,toolName:j.toolName,state:"input-streaming",input:V}):O({toolCallId:f.toolCallId,toolName:j.toolName,state:"input-streaming",input:V}),x();break}case"tool-input-available":{f.dynamic?P({toolCallId:f.toolCallId,toolName:f.toolName,state:"input-available",input:f.input,providerExecuted:f.providerExecuted,providerMetadata:f.providerMetadata}):O({toolCallId:f.toolCallId,toolName:f.toolName,state:"input-available",input:f.input,providerExecuted:f.providerExecuted,providerMetadata:f.providerMetadata}),x(),l&&!f.providerExecuted&&await l({toolCall:f});break}case"tool-input-error":{f.dynamic?P({toolCallId:f.toolCallId,toolName:f.toolName,state:"output-error",input:f.input,errorText:f.errorText,providerExecuted:f.providerExecuted,providerMetadata:f.providerMetadata}):O({toolCallId:f.toolCallId,toolName:f.toolName,state:"output-error",input:void 0,rawInput:f.input,errorText:f.errorText,providerExecuted:f.providerExecuted,providerMetadata:f.providerMetadata}),x();break}case"tool-output-available":{if(f.dynamic){const j=N(f.toolCallId);P({toolCallId:f.toolCallId,toolName:j.toolName,state:"output-available",input:j.input,output:f.output,preliminary:f.preliminary})}else{const j=R(f.toolCallId);O({toolCallId:f.toolCallId,toolName:$h(j),state:"output-available",input:j.input,output:f.output,providerExecuted:f.providerExecuted,preliminary:f.preliminary})}x();break}case"tool-output-error":{if(f.dynamic){const j=N(f.toolCallId);P({toolCallId:f.toolCallId,toolName:j.toolName,state:"output-error",input:j.input,errorText:f.errorText,providerExecuted:f.providerExecuted})}else{const j=R(f.toolCallId);O({toolCallId:f.toolCallId,toolName:$h(j),state:"output-error",input:j.input,rawInput:j.rawInput,errorText:f.errorText,providerExecuted:f.providerExecuted})}x();break}case"start-step":{g.message.parts.push({type:"step-start"});break}case"finish-step":{g.activeTextParts={},g.activeReasoningParts={};break}case"start":{f.messageId!=null&&(g.message.id=f.messageId),await z(f.messageMetadata),(f.messageId!=null||f.messageMetadata!=null)&&x();break}case"finish":{f.finishReason!=null&&(g.finishReason=f.finishReason),await z(f.messageMetadata),f.messageMetadata!=null&&x();break}case"message-metadata":{await z(f.messageMetadata),f.messageMetadata!=null&&x();break}case"error":{i==null||i(new Error(f.errorText));break}default:if(MZ(f)){(n==null?void 0:n[f.type])!=null&&await Z9({value:f.data,schema:n[f.type]});const j=f;if(j.transient){u==null||u(j);break}const V=j.id!=null?g.message.parts.find(H=>j.type===H.type&&j.id===H.id):void 0;V!=null?V.data=j.data:g.message.parts.push(j),u==null||u(j),x()}}h.enqueue(f)})}}))}function mE({messageId:e,originalMessages:t=[],onFinish:n,onError:a,stream:i}){let l=t==null?void 0:t[t.length-1];(l==null?void 0:l.role)!=="assistant"?l=void 0:e=l.id;let u=!1;const f=i.pipeThrough(new TransformStream({transform(k,b){if(k.type==="start"){const T=k;T.messageId==null&&e!=null&&(T.messageId=e)}k.type==="abort"&&(u=!0),b.enqueue(k)}}));if(n==null)return f;const h=pE({lastMessage:l?structuredClone(l):void 0,messageId:e!=null?e:""}),g=async k=>{await k({state:h,write:()=>{}})};let x=!1;const y=async()=>{if(x||!n)return;x=!0;const k=h.message.id===(l==null?void 0:l.id);await n({isAborted:u,isContinuation:k,responseMessage:h.message,messages:[...k?t.slice(0,-1):t,h.message],finishReason:h.finishReason})};return hE({stream:f,runUpdateMessageJob:g,onError:a}).pipeThrough(new TransformStream({transform(k,b){b.enqueue(k)},async cancel(){await y()},async flush(){await y()}}))}function LZ({response:e,status:t,statusText:n,headers:a,stream:i,consumeSseStream:l}){let u=i.pipeThrough(new sE);if(l){const[f,h]=u.tee();u=f,l({stream:h})}iE({response:e,status:t,statusText:n,headers:Object.fromEntries(i2(a,lE).entries()),stream:u.pipeThrough(new TextEncoderStream)})}function l2(e){const t=e.pipeThrough(new TransformStream);return t[Symbol.asyncIterator]=function(){const n=this.getReader();let a=!1;async function i(l){var u;a=!0;try{l&&await((u=n.cancel)==null?void 0:u.call(n))}finally{try{n.releaseLock()}catch(f){}}}return{async next(){if(a)return{done:!0,value:void 0};const{done:l,value:u}=await n.read();return l?(await i(!0),{done:!0,value:void 0}):{done:!1,value:u}},async return(){return await i(!0),{done:!0,value:void 0}},async throw(l){throw await i(!0),l}}},t}async function gE({stream:e,onError:t}){const n=e.getReader();try{for(;;){const{done:a}=await n.read();if(a)break}}catch(a){t==null||t(a)}finally{n.releaseLock()}}function vE(){let e,t;return{promise:new Promise((a,i)=>{e=a,t=i}),resolve:e,reject:t}}function OZ(){let e=[],t=null,n=!1,a=vE();const i=()=>{n=!0,a.resolve(),e.forEach(u=>u.cancel()),e=[],t==null||t.close()},l=async()=>{if(n&&e.length===0){t==null||t.close();return}if(e.length===0)return a=vE(),await a.promise,l();try{const{value:u,done:f}=await e[0].read();f?(e.shift(),e.length>0?await l():n&&(t==null||t.close())):t==null||t.enqueue(u)}catch(u){t==null||t.error(u),e.shift(),i()}};return{stream:new ReadableStream({start(u){t=u},pull:l,async cancel(){for(const u of e)await u.cancel();e=[],n=!0}}),addStream:u=>{if(n)throw new Error("Cannot add inner stream: outer stream is closed");e.push(u.getReader()),a.resolve()},close:()=>{n=!0,a.resolve(),e.length===0&&(t==null||t.close())},terminate:i}}function IZ(){var e,t;return(t=(e=globalThis==null?void 0:globalThis.performance)==null?void 0:e.now())!=null?t:Date.now()}function DZ({tools:e,generatorStream:t,tracer:n,telemetry:a,system:i,messages:l,abortSignal:u,repairToolCall:f,experimental_context:h}){let g=null;const x=new ReadableStream({start(O){g=O}}),y=new Set,k=new Map;let b=!1,T;function R(){b&&y.size===0&&(T!=null&&g.enqueue(T),g.close())}const N=new TransformStream({async transform(O,P){const z=O.type;switch(z){case"stream-start":case"text-start":case"text-delta":case"text-end":case"reasoning-start":case"reasoning-delta":case"reasoning-end":case"tool-input-start":case"tool-input-delta":case"tool-input-end":case"source":case"response-metadata":case"error":case"raw":{P.enqueue(O);break}case"file":{P.enqueue({type:"file",file:new xZ({data:O.data,mediaType:O.mediaType})});break}case"finish":{T={type:"finish",finishReason:O.finishReason,usage:O.usage,providerMetadata:O.providerMetadata};break}case"tool-call":{try{const j=await Qk({toolCall:O,tools:e,repairToolCall:f,system:i,messages:l});if(P.enqueue(j),j.invalid){g.enqueue({type:"tool-error",toolCallId:j.toolCallId,toolName:j.toolName,input:j.input,error:Y4(j.error),dynamic:!0});break}const V=e[j.toolName];if(k.set(j.toolCallId,j.input),V.onInputAvailable!=null&&await V.onInputAvailable({input:j.input,toolCallId:j.toolCallId,messages:l,abortSignal:u,experimental_context:h}),V.execute!=null&&j.providerExecuted!==!0){const H=cd();y.add(H),c1({name:"ai.toolCall",attributes:ji({telemetry:a,attributes:{...u1({operationId:"ai.toolCall",telemetry:a}),"ai.toolCall.name":j.toolName,"ai.toolCall.id":j.toolCallId,"ai.toolCall.args":{output:()=>JSON.stringify(j.input)}}}),tracer:n,fn:async W=>{let G;try{const ae=sS({execute:V.execute.bind(V),input:j.input,options:{toolCallId:j.toolCallId,messages:l,abortSignal:u,experimental_context:h}});for await(const ye of ae)g.enqueue({...j,type:"tool-result",output:ye.output,...ye.type==="preliminary"&&{preliminary:!0}}),ye.type==="final"&&(G=ye.output)}catch(ae){y5(W,ae),g.enqueue({...j,type:"tool-error",error:ae}),y.delete(H),R();return}y.delete(H),R();try{W.setAttributes(ji({telemetry:a,attributes:{"ai.toolCall.result":{output:()=>JSON.stringify(G)}}}))}catch(ae){}}})}}catch(j){g.enqueue({type:"error",error:j})}break}case"tool-result":{const j=O.toolName;O.isError?g.enqueue({type:"tool-error",toolCallId:O.toolCallId,toolName:j,input:k.get(O.toolCallId),providerExecuted:O.providerExecuted,error:O.result}):P.enqueue({type:"tool-result",toolCallId:O.toolCallId,toolName:j,input:k.get(O.toolCallId),output:O.result,providerExecuted:O.providerExecuted});break}default:{const j=z;throw new Error(`Unhandled chunk type: ${j}`)}}},flush(){b=!0,R()}});return new ReadableStream({async start(O){return Promise.all([t.pipeThrough(N).pipeTo(new WritableStream({write(P){O.enqueue(P)},close(){}})),x.pipeTo(new WritableStream({write(P){O.enqueue(P)},close(){O.close()}}))])}})}var jZ=Oh({prefix:"aitxt",size:24});function PZ({model:e,tools:t,toolChoice:n,system:a,prompt:i,messages:l,maxRetries:u,abortSignal:f,headers:h,stopWhen:g=nE(1),experimental_output:x,experimental_telemetry:y,prepareStep:k,providerOptions:b,experimental_activeTools:T,activeTools:R=T,experimental_repairToolCall:N,experimental_transform:O,experimental_download:P,includeRawChunks:z=!1,onChunk:j,onError:V=({error:Te})=>{console.error(Te)},onFinish:H,onAbort:W,onStepFinish:G,experimental_context:ae,_internal:{now:ye=IZ,generateId:ce=jZ,currentDate:he=()=>new Date}={},...ue}){return new zZ({model:r2(e),telemetry:y,headers:h,settings:ue,maxRetries:u,abortSignal:f,system:a,prompt:i,messages:l,tools:t,toolChoice:n,transforms:x5(O),activeTools:R,repairToolCall:N,stopConditions:x5(g),output:x,providerOptions:b,prepareStep:k,includeRawChunks:z,onChunk:j,onError:V,onFinish:H,onAbort:W,onStepFinish:G,now:ye,currentDate:he,generateId:ce,experimental_context:ae,download:P})}function FZ(e){if(!e)return new TransformStream({transform(u,f){f.enqueue({part:u,partialOutput:void 0})}});let t,n="",a="",i="";function l({controller:u,partialOutput:f=void 0}){u.enqueue({part:{type:"text-delta",id:t,text:a},partialOutput:f}),a=""}return new TransformStream({async transform(u,f){if(u.type==="finish-step"&&a.length>0&&l({controller:f}),u.type!=="text-delta"&&u.type!=="text-start"&&u.type!=="text-end"){f.enqueue({part:u,partialOutput:void 0});return}if(t==null)t=u.id;else if(u.id!==t){f.enqueue({part:u,partialOutput:void 0});return}if(u.type==="text-start"){f.enqueue({part:u,partialOutput:void 0});return}if(u.type==="text-end"){a.length>0&&l({controller:f}),f.enqueue({part:u,partialOutput:void 0});return}n+=u.text,a+=u.text;const h=await e.parsePartial({text:n});if(h!=null){const g=JSON.stringify(h.partial);g!==i&&(l({controller:f,partialOutput:h.partial}),i=g)}}})}var zZ=class{constructor({model:e,telemetry:t,headers:n,settings:a,maxRetries:i,abortSignal:l,system:u,prompt:f,messages:h,tools:g,toolChoice:x,transforms:y,activeTools:k,repairToolCall:b,stopConditions:T,output:R,providerOptions:N,prepareStep:O,includeRawChunks:P,now:z,currentDate:j,generateId:V,onChunk:H,onError:W,onFinish:G,onAbort:ae,onStepFinish:ye,experimental_context:ce,download:he}){this._totalUsage=new G4,this._finishReason=new G4,this._steps=new G4,this.output=R,this.includeRawChunks=P,this.tools=g;let ue,Te=[];const ke=[];let Ee,xe,K={},Ae=[];const B=[];let X,pe={},Z={};const ze=new TransformStream({async transform(ct,yt){var Pt,St,jn,Bn;yt.enqueue(ct);const{part:He}=ct;if((He.type==="text-delta"||He.type==="reasoning-delta"||He.type==="source"||He.type==="tool-call"||He.type==="tool-result"||He.type==="tool-input-start"||He.type==="tool-input-delta"||He.type==="raw")&&await(H==null?void 0:H({chunk:He})),He.type==="error"&&await W({error:$k(He.error)}),He.type==="text-start"&&(pe[He.id]={type:"text",text:"",providerMetadata:He.providerMetadata},Te.push(pe[He.id])),He.type==="text-delta"){const Mt=pe[He.id];if(Mt==null){yt.enqueue({part:{type:"error",error:`text part ${He.id} not found`},partialOutput:void 0});return}Mt.text+=He.text,Mt.providerMetadata=(Pt=He.providerMetadata)!=null?Pt:Mt.providerMetadata}if(He.type==="text-end"){const Mt=pe[He.id];if(Mt==null){yt.enqueue({part:{type:"error",error:`text part ${He.id} not found`},partialOutput:void 0});return}Mt.providerMetadata=(St=He.providerMetadata)!=null?St:Mt.providerMetadata,delete pe[He.id]}if(He.type==="reasoning-start"&&(Z[He.id]={type:"reasoning",text:"",providerMetadata:He.providerMetadata},Te.push(Z[He.id])),He.type==="reasoning-delta"){const Mt=Z[He.id];if(Mt==null){yt.enqueue({part:{type:"error",error:`reasoning part ${He.id} not found`},partialOutput:void 0});return}Mt.text+=He.text,Mt.providerMetadata=(jn=He.providerMetadata)!=null?jn:Mt.providerMetadata}if(He.type==="reasoning-end"){const Mt=Z[He.id];if(Mt==null){yt.enqueue({part:{type:"error",error:`reasoning part ${He.id} not found`},partialOutput:void 0});return}Mt.providerMetadata=(Bn=He.providerMetadata)!=null?Bn:Mt.providerMetadata,delete Z[He.id]}if(He.type==="file"&&Te.push({type:"file",file:He.file}),He.type==="source"&&Te.push(He),He.type==="tool-call"&&Te.push(He),He.type==="tool-result"&&!He.preliminary&&Te.push(He),He.type==="tool-error"&&Te.push(He),He.type==="start-step"&&(K=He.request,Ae=He.warnings),He.type==="finish-step"){const Mt=w5({content:Te,tools:g}),Pn=new tE({content:Te,finishReason:He.finishReason,usage:He.usage,warnings:Ae,request:K,response:{...He.response,messages:[...ke,...Mt]},providerMetadata:He.providerMetadata});await(ye==null?void 0:ye(Pn)),nk(Ae),B.push(Pn),Te=[],Z={},pe={},ke.push(...Mt),ue.resolve()}He.type==="finish"&&(xe=He.totalUsage,Ee=He.finishReason)},async flush(ct){try{if(B.length===0){const jn=new j$({message:"No output generated. Check the stream for errors."});bt._finishReason.reject(jn),bt._totalUsage.reject(jn),bt._steps.reject(jn);return}const yt=Ee!=null?Ee:"unknown",Pt=xe!=null?xe:{inputTokens:void 0,outputTokens:void 0,totalTokens:void 0};bt._finishReason.resolve(yt),bt._totalUsage.resolve(Pt),bt._steps.resolve(B);const St=B[B.length-1];await(G==null?void 0:G({finishReason:yt,totalUsage:Pt,usage:St.usage,content:St.content,text:St.text,reasoningText:St.reasoningText,reasoning:St.reasoning,files:St.files,sources:St.sources,toolCalls:St.toolCalls,staticToolCalls:St.staticToolCalls,dynamicToolCalls:St.dynamicToolCalls,toolResults:St.toolResults,staticToolResults:St.staticToolResults,dynamicToolResults:St.dynamicToolResults,request:St.request,response:St.response,warnings:St.warnings,providerMetadata:St.providerMetadata,steps:B})),X.setAttributes(ji({telemetry:t,attributes:{"ai.response.finishReason":yt,"ai.response.text":{output:()=>St.text},"ai.response.toolCalls":{output:()=>{var jn;return(jn=St.toolCalls)!=null&&jn.length?JSON.stringify(St.toolCalls):void 0}},"ai.response.providerMetadata":JSON.stringify(St.providerMetadata),"ai.usage.inputTokens":Pt.inputTokens,"ai.usage.outputTokens":Pt.outputTokens,"ai.usage.totalTokens":Pt.totalTokens,"ai.usage.reasoningTokens":Pt.reasoningTokens,"ai.usage.cachedInputTokens":Pt.cachedInputTokens}}))}catch(yt){ct.error(yt)}finally{X.end()}}}),st=OZ();this.addStream=st.addStream,this.closeStream=st.close;const Ve=st.stream.getReader();let _e=new ReadableStream({async start(ct){ct.enqueue({type:"start"})},async pull(ct){function yt(){ae==null||ae({steps:B}),ct.enqueue({type:"abort"}),ct.close()}try{const{done:Pt,value:St}=await Ve.read();if(Pt){ct.close();return}if(l!=null&&l.aborted){yt();return}ct.enqueue(St)}catch(Pt){dd(Pt)&&(l!=null&&l.aborted)?yt():ct.error(Pt)}},cancel(ct){return st.stream.cancel(ct)}});for(const ct of y)_e=_e.pipeThrough(ct({tools:g,stopStream(){st.terminate()}}));this.baseStream=_e.pipeThrough(FZ(R)).pipeThrough(ze);const{maxRetries:Ze,retry:Ke}=Jk({maxRetries:i,abortSignal:l}),We=Wk(t),et=v5(a),Et=Zk({model:e,telemetry:t,headers:n,settings:{...et,maxRetries:Ze}}),bt=this;c1({name:"ai.streamText",attributes:ji({telemetry:t,attributes:{...u1({operationId:"ai.streamText",telemetry:t}),...Et,"ai.prompt":{input:()=>JSON.stringify({system:u,prompt:f,messages:h})}}}),tracer:We,endWhenDone:!1,fn:async ct=>{X=ct;async function yt({currentStep:Pt,responseMessages:St,usage:jn}){var Bn,He,Mt,Pn,Wt;const hr=bt.includeRawChunks;ue=new G4;const $n=await Vk({system:u,prompt:f,messages:h}),ve=[...$n.messages,...St],Ne=await(O==null?void 0:O({model:e,steps:B,stepNumber:B.length,messages:ve})),dt=r2((Bn=Ne==null?void 0:Ne.model)!=null?Bn:e),It=await Fk({prompt:{system:(He=Ne==null?void 0:Ne.system)!=null?He:$n.system,messages:(Mt=Ne==null?void 0:Ne.messages)!=null?Mt:ve},supportedUrls:await dt.supportedUrls,download:he}),{toolChoice:Me,tools:Ye}=zk({tools:g,toolChoice:(Pn=Ne==null?void 0:Ne.toolChoice)!=null?Pn:x,activeTools:(Wt=Ne==null?void 0:Ne.activeTools)!=null?Wt:k}),{result:{stream:At,response:xt,request:Kt},doStreamSpan:ln,startTimestampMs:Qt}=await Ke(()=>c1({name:"ai.streamText.doStream",attributes:ji({telemetry:t,attributes:{...u1({operationId:"ai.streamText.doStream",telemetry:t}),...Et,"ai.model.provider":dt.provider,"ai.model.id":dt.modelId,"ai.prompt.messages":{input:()=>qk(It)},"ai.prompt.tools":{input:()=>Ye==null?void 0:Ye.map(_t=>JSON.stringify(_t))},"ai.prompt.toolChoice":{input:()=>Me!=null?JSON.stringify(Me):void 0},"gen_ai.system":dt.provider,"gen_ai.request.model":dt.modelId,"gen_ai.request.frequency_penalty":et.frequencyPenalty,"gen_ai.request.max_tokens":et.maxOutputTokens,"gen_ai.request.presence_penalty":et.presencePenalty,"gen_ai.request.stop_sequences":et.stopSequences,"gen_ai.request.temperature":et.temperature,"gen_ai.request.top_k":et.topK,"gen_ai.request.top_p":et.topP}}),tracer:We,endWhenDone:!1,fn:async _t=>({startTimestampMs:z(),doStreamSpan:_t,result:await dt.doStream({...et,tools:Ye,toolChoice:Me,responseFormat:R==null?void 0:R.responseFormat,prompt:It,providerOptions:N,abortSignal:l,headers:n,includeRawChunks:hr})})})),Qn=DZ({tools:g,generatorStream:At,tracer:We,telemetry:t,system:u,messages:ve,repairToolCall:b,abortSignal:l,experimental_context:ce}),dn=Kt!=null?Kt:{},En=[],Rn=[];let da;const Fr={};let Jr="unknown",Rr={inputTokens:void 0,outputTokens:void 0,totalTokens:void 0},vi,Hi=!0,Xr={id:V(),timestamp:j(),modelId:e.modelId},yi="";bt.addStream(Qn.pipeThrough(new TransformStream({async transform(_t,_n){var Mr,yr,Oa,Ar;if(_t.type==="stream-start"){da=_t.warnings;return}if(Hi){const tr=z()-Qt;Hi=!1,ln.addEvent("ai.stream.firstChunk",{"ai.response.msToFirstChunk":tr}),ln.setAttributes({"ai.response.msToFirstChunk":tr}),_n.enqueue({type:"start-step",request:dn,warnings:da!=null?da:[]})}const ko=_t.type;switch(ko){case"text-start":case"text-end":{_n.enqueue(_t);break}case"text-delta":{_t.delta.length>0&&(_n.enqueue({type:"text-delta",id:_t.id,text:_t.delta,providerMetadata:_t.providerMetadata}),yi+=_t.delta);break}case"reasoning-start":case"reasoning-end":{_n.enqueue(_t);break}case"reasoning-delta":{_n.enqueue({type:"reasoning-delta",id:_t.id,text:_t.delta,providerMetadata:_t.providerMetadata});break}case"tool-call":{_n.enqueue(_t),En.push(_t);break}case"tool-result":{_n.enqueue(_t),_t.preliminary||Rn.push(_t);break}case"tool-error":{_n.enqueue(_t),Rn.push(_t);break}case"response-metadata":{Xr={id:(Mr=_t.id)!=null?Mr:Xr.id,timestamp:(yr=_t.timestamp)!=null?yr:Xr.timestamp,modelId:(Oa=_t.modelId)!=null?Oa:Xr.modelId};break}case"finish":{Rr=_t.usage,Jr=_t.finishReason,vi=_t.providerMetadata;const tr=z()-Qt;ln.addEvent("ai.stream.finish"),ln.setAttributes({"ai.response.msToFinish":tr,"ai.response.avgOutputTokensPerSecond":1e3*((Ar=Rr.outputTokens)!=null?Ar:0)/tr});break}case"file":{_n.enqueue(_t);break}case"source":{_n.enqueue(_t);break}case"tool-input-start":{Fr[_t.id]=_t.toolName;const tr=g==null?void 0:g[_t.toolName];(tr==null?void 0:tr.onInputStart)!=null&&await tr.onInputStart({toolCallId:_t.id,messages:ve,abortSignal:l,experimental_context:ce}),_n.enqueue({..._t,dynamic:(tr==null?void 0:tr.type)==="dynamic"});break}case"tool-input-end":{delete Fr[_t.id],_n.enqueue(_t);break}case"tool-input-delta":{const tr=Fr[_t.id],J=g==null?void 0:g[tr];(J==null?void 0:J.onInputDelta)!=null&&await J.onInputDelta({inputTextDelta:_t.delta,toolCallId:_t.id,messages:ve,abortSignal:l,experimental_context:ce}),_n.enqueue(_t);break}case"error":{_n.enqueue(_t),Jr="error";break}case"raw":{hr&&_n.enqueue(_t);break}default:{const tr=ko;throw new Error(`Unknown chunk type: ${tr}`)}}},async flush(_t){const _n=En.length>0?JSON.stringify(En):void 0;try{ln.setAttributes(ji({telemetry:t,attributes:{"ai.response.finishReason":Jr,"ai.response.text":{output:()=>yi},"ai.response.toolCalls":{output:()=>_n},"ai.response.id":Xr.id,"ai.response.model":Xr.modelId,"ai.response.timestamp":Xr.timestamp.toISOString(),"ai.response.providerMetadata":JSON.stringify(vi),"ai.usage.inputTokens":Rr.inputTokens,"ai.usage.outputTokens":Rr.outputTokens,"ai.usage.totalTokens":Rr.totalTokens,"ai.usage.reasoningTokens":Rr.reasoningTokens,"ai.usage.cachedInputTokens":Rr.cachedInputTokens,"gen_ai.response.finish_reasons":[Jr],"gen_ai.response.id":Xr.id,"gen_ai.response.model":Xr.modelId,"gen_ai.usage.input_tokens":Rr.inputTokens,"gen_ai.usage.output_tokens":Rr.outputTokens}}))}catch(Ar){}finally{ln.end()}_t.enqueue({type:"finish-step",finishReason:Jr,usage:Rr,providerMetadata:vi,response:{...Xr,headers:xt==null?void 0:xt.headers}});const Mr=Gk(jn,Rr);await ue.promise;const yr=En.filter(Ar=>Ar.providerExecuted!==!0),Oa=Rn.filter(Ar=>Ar.providerExecuted!==!0);if(yr.length>0&&Oa.length===yr.length&&!await rE({stopConditions:T,steps:B})){St.push(...w5({content:B[B.length-1].content,tools:g}));try{await yt({currentStep:Pt+1,responseMessages:St,usage:Mr})}catch(Ar){_t.enqueue({type:"error",error:Ar}),bt.closeStream()}}else _t.enqueue({type:"finish",finishReason:Jr,totalUsage:Mr}),bt.closeStream()}})))}await yt({currentStep:0,responseMessages:[],usage:{inputTokens:void 0,outputTokens:void 0,totalTokens:void 0}})}}).catch(ct=>{bt.addStream(new ReadableStream({start(yt){yt.enqueue({type:"error",error:ct}),yt.close()}})),bt.closeStream()})}get steps(){return this.consumeStream(),this._steps.promise}get finalStep(){return this.steps.then(e=>e[e.length-1])}get content(){return this.finalStep.then(e=>e.content)}get warnings(){return this.finalStep.then(e=>e.warnings)}get providerMetadata(){return this.finalStep.then(e=>e.providerMetadata)}get text(){return this.finalStep.then(e=>e.text)}get reasoningText(){return this.finalStep.then(e=>e.reasoningText)}get reasoning(){return this.finalStep.then(e=>e.reasoning)}get sources(){return this.finalStep.then(e=>e.sources)}get files(){return this.finalStep.then(e=>e.files)}get toolCalls(){return this.finalStep.then(e=>e.toolCalls)}get staticToolCalls(){return this.finalStep.then(e=>e.staticToolCalls)}get dynamicToolCalls(){return this.finalStep.then(e=>e.dynamicToolCalls)}get toolResults(){return this.finalStep.then(e=>e.toolResults)}get staticToolResults(){return this.finalStep.then(e=>e.staticToolResults)}get dynamicToolResults(){return this.finalStep.then(e=>e.dynamicToolResults)}get usage(){return this.finalStep.then(e=>e.usage)}get request(){return this.finalStep.then(e=>e.request)}get response(){return this.finalStep.then(e=>e.response)}get totalUsage(){return this.consumeStream(),this._totalUsage.promise}get finishReason(){return this.consumeStream(),this._finishReason.promise}teeStream(){const[e,t]=this.baseStream.tee();return this.baseStream=t,e}get textStream(){return l2(this.teeStream().pipeThrough(new TransformStream({transform({part:e},t){e.type==="text-delta"&&t.enqueue(e.text)}})))}get fullStream(){return l2(this.teeStream().pipeThrough(new TransformStream({transform({part:e},t){t.enqueue(e)}})))}async consumeStream(e){var t;try{await gE({stream:this.fullStream,onError:e==null?void 0:e.onError})}catch(n){(t=e==null?void 0:e.onError)==null||t.call(e,n)}}get experimental_partialOutputStream(){if(this.output==null)throw new ek;return l2(this.teeStream().pipeThrough(new TransformStream({transform({partialOutput:e},t){e!=null&&t.enqueue(e)}})))}toUIMessageStream({originalMessages:e,generateMessageId:t,onFinish:n,messageMetadata:a,sendReasoning:i=!0,sendSources:l=!1,sendStart:u=!0,sendFinish:f=!0,onError:h=Jf}={}){const g=t!=null?TZ({originalMessages:e,responseMessageId:t}):void 0,x={},y=b=>{var T,R;const N=x[b];return((R=(T=this.tools)==null?void 0:T[N])==null?void 0:R.type)==="dynamic"?!0:void 0},k=this.fullStream.pipeThrough(new TransformStream({transform:async(b,T)=>{const R=a==null?void 0:a({part:b}),N=b.type;switch(N){case"text-start":{T.enqueue({type:"text-start",id:b.id,...b.providerMetadata!=null?{providerMetadata:b.providerMetadata}:{}});break}case"text-delta":{T.enqueue({type:"text-delta",id:b.id,delta:b.text,...b.providerMetadata!=null?{providerMetadata:b.providerMetadata}:{}});break}case"text-end":{T.enqueue({type:"text-end",id:b.id,...b.providerMetadata!=null?{providerMetadata:b.providerMetadata}:{}});break}case"reasoning-start":{T.enqueue({type:"reasoning-start",id:b.id,...b.providerMetadata!=null?{providerMetadata:b.providerMetadata}:{}});break}case"reasoning-delta":{i&&T.enqueue({type:"reasoning-delta",id:b.id,delta:b.text,...b.providerMetadata!=null?{providerMetadata:b.providerMetadata}:{}});break}case"reasoning-end":{T.enqueue({type:"reasoning-end",id:b.id,...b.providerMetadata!=null?{providerMetadata:b.providerMetadata}:{}});break}case"file":{T.enqueue({type:"file",mediaType:b.file.mediaType,url:`data:${b.file.mediaType};base64,${b.file.base64}`});break}case"source":{l&&b.sourceType==="url"&&T.enqueue({type:"source-url",sourceId:b.id,url:b.url,title:b.title,...b.providerMetadata!=null?{providerMetadata:b.providerMetadata}:{}}),l&&b.sourceType==="document"&&T.enqueue({type:"source-document",sourceId:b.id,mediaType:b.mediaType,title:b.title,filename:b.filename,...b.providerMetadata!=null?{providerMetadata:b.providerMetadata}:{}});break}case"tool-input-start":{x[b.id]=b.toolName;const O=y(b.id);T.enqueue({type:"tool-input-start",toolCallId:b.id,toolName:b.toolName,...b.providerExecuted!=null?{providerExecuted:b.providerExecuted}:{},...O!=null?{dynamic:O}:{}});break}case"tool-input-delta":{T.enqueue({type:"tool-input-delta",toolCallId:b.id,inputTextDelta:b.delta});break}case"tool-call":{x[b.toolCallId]=b.toolName;const O=y(b.toolCallId);b.invalid?T.enqueue({type:"tool-input-error",toolCallId:b.toolCallId,toolName:b.toolName,input:b.input,...b.providerExecuted!=null?{providerExecuted:b.providerExecuted}:{},...b.providerMetadata!=null?{providerMetadata:b.providerMetadata}:{},...O!=null?{dynamic:O}:{},errorText:h(b.error)}):T.enqueue({type:"tool-input-available",toolCallId:b.toolCallId,toolName:b.toolName,input:b.input,...b.providerExecuted!=null?{providerExecuted:b.providerExecuted}:{},...b.providerMetadata!=null?{providerMetadata:b.providerMetadata}:{},...O!=null?{dynamic:O}:{}});break}case"tool-result":{const O=y(b.toolCallId);T.enqueue({type:"tool-output-available",toolCallId:b.toolCallId,output:b.output,...b.providerExecuted!=null?{providerExecuted:b.providerExecuted}:{},...b.preliminary!=null?{preliminary:b.preliminary}:{},...O!=null?{dynamic:O}:{}});break}case"tool-error":{const O=y(b.toolCallId);T.enqueue({type:"tool-output-error",toolCallId:b.toolCallId,errorText:h(b.error),...b.providerExecuted!=null?{providerExecuted:b.providerExecuted}:{},...O!=null?{dynamic:O}:{}});break}case"error":{T.enqueue({type:"error",errorText:h(b.error)});break}case"start-step":{T.enqueue({type:"start-step"});break}case"finish-step":{T.enqueue({type:"finish-step"});break}case"start":{u&&T.enqueue({type:"start",...R!=null?{messageMetadata:R}:{},...g!=null?{messageId:g}:{}});break}case"finish":{f&&T.enqueue({type:"finish",finishReason:b.finishReason,...R!=null?{messageMetadata:R}:{}});break}case"abort":{T.enqueue(b);break}case"tool-input-end":break;case"raw":break;default:{const O=N;throw new Error(`Unknown chunk type: ${O}`)}}R!=null&&N!=="start"&&N!=="finish"&&T.enqueue({type:"message-metadata",messageMetadata:R})}}));return l2(mE({stream:k,messageId:g!=null?g:t==null?void 0:t(),originalMessages:e,onFinish:n,onError:h}))}pipeUIMessageStreamToResponse(e,{originalMessages:t,generateMessageId:n,onFinish:a,messageMetadata:i,sendReasoning:l,sendSources:u,sendFinish:f,sendStart:h,onError:g,...x}={}){LZ({response:e,stream:this.toUIMessageStream({originalMessages:t,generateMessageId:n,onFinish:a,messageMetadata:i,sendReasoning:l,sendSources:u,sendFinish:f,sendStart:h,onError:g}),...x})}pipeTextStreamToResponse(e,t){_Z({response:e,textStream:this.textStream,...t})}toUIMessageStreamResponse({originalMessages:e,generateMessageId:t,onFinish:n,messageMetadata:a,sendReasoning:i,sendSources:l,sendFinish:u,sendStart:f,onError:h,...g}={}){return uE({stream:this.toUIMessageStream({originalMessages:e,generateMessageId:t,onFinish:n,messageMetadata:a,sendReasoning:i,sendSources:l,sendFinish:u,sendStart:f,onError:h}),...g})}toTextStreamResponse(e){return EZ({textStream:this.textStream,...e})}};function yE(e,t){const n=[];t!=null&&t.ignoreIncompleteToolCalls&&(e=e.map(a=>({...a,parts:a.parts.filter(i=>!s2(i)||i.state!=="input-streaming"&&i.state!=="input-available")})));for(const a of e)switch(a.role){case"system":{const i=a.parts.filter(u=>u.type==="text"),l=i.reduce((u,f)=>f.providerMetadata!=null?{...u,...f.providerMetadata}:u,{});n.push({role:"system",content:i.map(u=>u.text).join(""),...Object.keys(l).length>0?{providerOptions:l}:{}});break}case"user":{n.push({role:"user",content:a.parts.map(i=>{var l;if(C5(i))return{type:"text",text:i.text,...i.providerMetadata!=null?{providerOptions:i.providerMetadata}:{}};if(S5(i))return{type:"file",mediaType:i.mediaType,filename:i.filename,data:i.url,...i.providerMetadata!=null?{providerOptions:i.providerMetadata}:{}};if(b5(i))return(l=t==null?void 0:t.convertDataPart)==null?void 0:l.call(t,i)}).filter(i=>i!=null)});break}case"assistant":{if(a.parts!=null){let i=function(){var u,f,h;if(l.length===0)return;const g=[];for(const y of l)if(C5(y))g.push({type:"text",text:y.text,...y.providerMetadata!=null?{providerOptions:y.providerMetadata}:{}});else if(S5(y))g.push({type:"file",mediaType:y.mediaType,filename:y.filename,data:y.url});else if(fE(y))g.push({type:"reasoning",text:y.text,providerOptions:y.providerMetadata});else if(k5(y)){const k=y.toolName;y.state!=="input-streaming"&&g.push({type:"tool-call",toolCallId:y.toolCallId,toolName:k,input:y.input,...y.callProviderMetadata!=null?{providerOptions:y.callProviderMetadata}:{}})}else if(xd(y)){const k=$h(y);y.state!=="input-streaming"&&(g.push({type:"tool-call",toolCallId:y.toolCallId,toolName:k,input:y.state==="output-error"?(u=y.input)!=null?u:y.rawInput:y.input,providerExecuted:y.providerExecuted,...y.callProviderMetadata!=null?{providerOptions:y.callProviderMetadata}:{}}),y.providerExecuted===!0&&(y.state==="output-available"||y.state==="output-error")&&g.push({type:"tool-result",toolCallId:y.toolCallId,toolName:k,output:Vh({output:y.state==="output-error"?y.errorText:y.output,tool:(f=t==null?void 0:t.tools)==null?void 0:f[k],errorMode:y.state==="output-error"?"json":"none"}),...y.callProviderMetadata!=null?{providerOptions:y.callProviderMetadata}:{}}))}else if(b5(y)){const k=(h=t==null?void 0:t.convertDataPart)==null?void 0:h.call(t,y);k!=null&&g.push(k)}else{const k=y;throw new Error(`Unsupported part: ${k}`)}n.push({role:"assistant",content:g});const x=l.filter(y=>xd(y)&&y.providerExecuted!==!0||y.type==="dynamic-tool");x.length>0&&n.push({role:"tool",content:x.map(y=>{var k;switch(y.state){case"output-error":case"output-available":{const b=NZ(y);return{type:"tool-result",toolCallId:y.toolCallId,toolName:b,output:Vh({output:y.state==="output-error"?y.errorText:y.output,tool:(k=t==null?void 0:t.tools)==null?void 0:k[b],errorMode:y.state==="output-error"?"text":"none"}),...y.callProviderMetadata!=null?{providerOptions:y.callProviderMetadata}:{}}}default:return null}}).filter(y=>y!=null)}),l=[]},l=[];for(const u of a.parts)C5(u)||fE(u)||S5(u)||s2(u)||b5(u)?l.push(u):u.type==="step-start"&&i();i();break}break}default:{const i=a.role;throw new $$({originalMessage:a,message:`Unsupported role: ${i}`})}}return n}var HZ=class{constructor(e){this.settings=e}get tools(){return this.settings.tools}async generate(e){return bZ({...this.settings,...e})}stream(e){return PZ({...this.settings,...e})}respond(e){return this.stream({prompt:yE(e.messages)}).toUIMessageStreamResponse()}};Oh({prefix:"aiobj",size:24});var UZ=class{constructor(){this.queue=[],this.isProcessing=!1}async processQueue(){if(!this.isProcessing){for(this.isProcessing=!0;this.queue.length>0;)await this.queue[0](),this.queue.shift();this.isProcessing=!1}}async run(e){return new Promise((t,n)=>{this.queue.push(async()=>{try{await e(),t()}catch(a){n(a)}}),this.processQueue()})}};Oh({prefix:"aiobj",size:24});var BZ={};R$(BZ,{object:()=>$Z,text:()=>VZ});var VZ=()=>({type:"text",responseFormat:{type:"text"},async parsePartial({text:e}){return{partial:e}},async parseOutput({text:e}){return e}}),$Z=({schema:e})=>{const t=Q4(e);return{type:"object",responseFormat:{type:"json",schema:t.jsonSchema},async parsePartial({text:n}){const a=await dE(n);switch(a.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return{partial:a.value};default:{const i=a.state;throw new Error(`Unsupported parse state: ${i}`)}}},async parseOutput({text:n},a){const i=await hd({text:n});if(!i.success)throw new pk({message:"No object generated: could not parse the response.",cause:i.error,text:n,response:a.response,usage:a.usage,finishReason:a.finishReason});const l=await ql({value:i.value,schema:t});if(!l.success)throw new pk({message:"No object generated: response did not match schema.",cause:l.error,text:n,response:a.response,usage:a.usage,finishReason:a.finishReason});return l.value}}};async function ZZ(e){if(e==null)return[];if(!globalThis.FileList||!(e instanceof globalThis.FileList))throw new Error("FileList is not supported in the current environment");return Promise.all(Array.from(e).map(async t=>{const{name:n,type:a}=t,i=await new Promise((l,u)=>{const f=new FileReader;f.onload=h=>{var g;l((g=h.target)==null?void 0:g.result)},f.onerror=h=>u(h),f.readAsDataURL(t)});return{type:"file",mediaType:a,filename:n,url:i}}))}var WZ=class{constructor({api:e="/api/chat",credentials:t,headers:n,body:a,fetch:i,prepareSendMessagesRequest:l,prepareReconnectToStreamRequest:u}){this.api=e,this.credentials=t,this.headers=n,this.body=a,this.fetch=i,this.prepareSendMessagesRequest=l,this.prepareReconnectToStreamRequest=u}async sendMessages({abortSignal:e,...t}){var n,a,i,l,u;const f=await Ja(this.body),h=await Ja(this.headers),g=await Ja(this.credentials),x={...fd(h),...fd(t.headers)},y=await((n=this.prepareSendMessagesRequest)==null?void 0:n.call(this,{api:this.api,id:t.chatId,messages:t.messages,body:{...f,...t.body},headers:x,credentials:g,requestMetadata:t.metadata,trigger:t.trigger,messageId:t.messageId})),k=(a=y==null?void 0:y.api)!=null?a:this.api,b=(y==null?void 0:y.headers)!==void 0?fd(y.headers):x,T=(y==null?void 0:y.body)!==void 0?y.body:{...f,...t.body,id:t.chatId,messages:t.messages,trigger:t.trigger,messageId:t.messageId},R=(i=y==null?void 0:y.credentials)!=null?i:g,O=await((l=this.fetch)!=null?l:globalThis.fetch)(k,{method:"POST",headers:Xu({"Content-Type":"application/json",...b},`ai-sdk/${a2}`,Ih()),body:JSON.stringify(T),credentials:R,signal:e});if(!O.ok)throw new Error((u=await O.text())!=null?u:"Failed to fetch the chat response.");if(!O.body)throw new Error("The response body is empty.");return this.processResponseStream(O.body)}async reconnectToStream(e){var t,n,a,i,l;const u=await Ja(this.body),f=await Ja(this.headers),h=await Ja(this.credentials),g={...fd(f),...fd(e.headers)},x=await((t=this.prepareReconnectToStreamRequest)==null?void 0:t.call(this,{api:this.api,id:e.chatId,body:{...u,...e.body},headers:g,credentials:h,requestMetadata:e.metadata})),y=(n=x==null?void 0:x.api)!=null?n:`${this.api}/${e.chatId}/stream`,k=(x==null?void 0:x.headers)!==void 0?fd(x.headers):g,b=(a=x==null?void 0:x.credentials)!=null?a:h,R=await((i=this.fetch)!=null?i:globalThis.fetch)(y,{method:"GET",headers:Xu(k,`ai-sdk/${a2}`,Ih()),credentials:b});if(R.status===204)return null;if(!R.ok)throw new Error((l=await R.text())!=null?l:"Failed to fetch the chat response.");if(!R.body)throw new Error("The response body is empty.");return this.processResponseStream(R.body)}},E5=class extends WZ{constructor(e={}){super(e)}processResponseStream(e){return KC({stream:e,schema:RZ}).pipeThrough(new TransformStream({async transform(t,n){if(!t.success)throw t.error;n.enqueue(t.value)}}))}},qZ=class{constructor({generateId:e=cd,id:t=e(),transport:n=new E5,messageMetadataSchema:a,dataPartSchemas:i,state:l,onError:u,onToolCall:f,onFinish:h,onData:g,sendAutomaticallyWhen:x}){this.activeResponse=void 0,this.jobExecutor=new UZ,this.sendMessage=async(y,k)=>{var b,T,R,N;if(y==null){await this.makeRequest({trigger:"submit-message",messageId:(b=this.lastMessage)==null?void 0:b.id,...k});return}let O;if("text"in y||"files"in y?O={parts:[...Array.isArray(y.files)?y.files:await ZZ(y.files),..."text"in y&&y.text!=null?[{type:"text",text:y.text}]:[]]}:O=y,y.messageId!=null){const P=this.state.messages.findIndex(z=>z.id===y.messageId);if(P===-1)throw new Error(`message with id ${y.messageId} not found`);if(this.state.messages[P].role!=="user")throw new Error(`message with id ${y.messageId} is not a user message`);this.state.messages=this.state.messages.slice(0,P+1),this.state.replaceMessage(P,{...O,id:y.messageId,role:(T=O.role)!=null?T:"user",metadata:y.metadata})}else this.state.pushMessage({...O,id:(R=O.id)!=null?R:this.generateId(),role:(N=O.role)!=null?N:"user",metadata:y.metadata});await this.makeRequest({trigger:"submit-message",messageId:y.messageId,...k})},this.regenerate=async({messageId:y,...k}={})=>{const b=y==null?this.state.messages.length-1:this.state.messages.findIndex(T=>T.id===y);if(b===-1)throw new Error(`message ${y} not found`);this.state.messages=this.state.messages.slice(0,this.messages[b].role==="assistant"?b:b+1),await this.makeRequest({trigger:"regenerate-message",messageId:y,...k})},this.resumeStream=async(y={})=>{await this.makeRequest({trigger:"resume-stream",...y})},this.clearError=()=>{this.status==="error"&&(this.state.error=void 0,this.setStatus({status:"ready"}))},this.addToolOutput=async({state:y="output-available",tool:k,toolCallId:b,output:T,errorText:R})=>this.jobExecutor.run(async()=>{var N,O;const P=this.state.messages,z=P[P.length-1];this.state.replaceMessage(P.length-1,{...z,parts:z.parts.map(j=>s2(j)&&j.toolCallId===b?{...j,state:y,output:T,errorText:R}:j)}),this.activeResponse&&(this.activeResponse.state.message.parts=this.activeResponse.state.message.parts.map(j=>s2(j)&&j.toolCallId===b?{...j,state:y,output:T,errorText:R}:j)),this.status!=="streaming"&&this.status!=="submitted"&&((N=this.sendAutomaticallyWhen)!=null&&N.call(this,{messages:this.state.messages}))&&this.makeRequest({trigger:"submit-message",messageId:(O=this.lastMessage)==null?void 0:O.id})}),this.addToolResult=this.addToolOutput,this.stop=async()=>{var y;this.status!=="streaming"&&this.status!=="submitted"||(y=this.activeResponse)!=null&&y.abortController&&this.activeResponse.abortController.abort()},this.id=t,this.transport=n,this.generateId=e,this.messageMetadataSchema=a,this.dataPartSchemas=i,this.state=l,this.onError=u,this.onToolCall=f,this.onFinish=h,this.onData=g,this.sendAutomaticallyWhen=x}get status(){return this.state.status}setStatus({status:e,error:t}){this.status!==e&&(this.state.status=e,this.state.error=t)}get error(){return this.state.error}get messages(){return this.state.messages}get lastMessage(){return this.state.messages[this.state.messages.length-1]}set messages(e){this.state.messages=e}async makeRequest({trigger:e,metadata:t,headers:n,body:a,messageId:i}){var l,u,f,h;this.setStatus({status:"submitted",error:void 0});const g=this.lastMessage;let x=!1,y=!1,k=!1;try{const b={state:pE({lastMessage:this.state.snapshot(g),messageId:this.generateId()}),abortController:new AbortController};b.abortController.signal.addEventListener("abort",()=>{x=!0}),this.activeResponse=b;let T;if(e==="resume-stream"){const N=await this.transport.reconnectToStream({chatId:this.id,metadata:t,headers:n,body:a});if(N==null){this.setStatus({status:"ready"});return}T=N}else T=await this.transport.sendMessages({chatId:this.id,messages:this.state.messages,abortSignal:b.abortController.signal,metadata:t,headers:n,body:a,trigger:e,messageId:i});const R=N=>this.jobExecutor.run(()=>N({state:b.state,write:()=>{var O;this.setStatus({status:"streaming"}),b.state.message.id===((O=this.lastMessage)==null?void 0:O.id)?this.state.replaceMessage(this.state.messages.length-1,b.state.message):this.state.pushMessage(b.state.message)}}));await gE({stream:hE({stream:T,onToolCall:this.onToolCall,onData:this.onData,messageMetadataSchema:this.messageMetadataSchema,dataPartSchemas:this.dataPartSchemas,runUpdateMessageJob:R,onError:N=>{throw N}}),onError:N=>{throw N}}),this.setStatus({status:"ready"})}catch(b){if(x||b.name==="AbortError")return x=!0,this.setStatus({status:"ready"}),null;k=!0,b instanceof TypeError&&(b.message.toLowerCase().includes("fetch")||b.message.toLowerCase().includes("network"))&&(y=!0),this.onError&&b instanceof Error&&this.onError(b),this.setStatus({status:"error",error:b})}finally{try{(u=this.onFinish)==null||u.call(this,{message:this.activeResponse.state.message,messages:this.state.messages,isAbort:x,isDisconnect:y,isError:k,finishReason:(l=this.activeResponse)==null?void 0:l.state.finishReason})}catch(b){console.error(b)}this.activeResponse=void 0}(f=this.sendAutomaticallyWhen)!=null&&f.call(this,{messages:this.state.messages})&&!k&&await this.makeRequest({trigger:"submit-message",messageId:(h=this.lastMessage)==null?void 0:h.id,metadata:t,headers:n,body:a})}};function GZ({execute:e,onError:t=Y4,originalMessages:n,onFinish:a,generateId:i=cd}){let l;const u=[],f=new ReadableStream({start(x){l=x}});function h(x){try{l.enqueue(x)}catch(y){}}try{const x=e({writer:{write(y){h(y)},merge(y){u.push((async()=>{const k=y.getReader();for(;;){const{done:b,value:T}=await k.read();if(b)break;h(T)}})().catch(k=>{h({type:"error",errorText:t(k)})}))},onError:t}});x&&u.push(x.catch(y=>{h({type:"error",errorText:t(y)})}))}catch(x){h({type:"error",errorText:t(x)})}return new Promise(async x=>{for(;u.length>0;)await u.shift();x()}).finally(()=>{try{l.close()}catch(x){}}),mE({stream:f,messageId:i(),originalMessages:n,onFinish:a,onError:t})}const YZ=e=>{const{messagesArea:t,inputArea:n}=e;return C.jsxs("div",{className:"chat-frame flex flex-col h-full min-h-0",children:[C.jsx("div",{className:"messages-area flex-1 flex m-h-0",style:{flex:"1 1 auto",minHeight:0},children:t}),C.jsx("div",{style:{flex:"0 0 auto",minHeight:100},className:"input-area flex-0 shrink-0 p-4",children:n})]})};/*!---------------------------------------------------------------------------------------------
|
|
350
|
-
* Copyright (c) StackBlitz. All rights reserved.
|
|
351
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
352
|
-
*--------------------------------------------------------------------------------------------*/const JZ={damping:.7,stiffness:.05,mass:1.25},XZ=70,KZ=1e3/60,QZ=350;let u2=!1;(GN=globalThis.document)==null||GN.addEventListener("mousedown",()=>{u2=!0}),(YN=globalThis.document)==null||YN.addEventListener("mouseup",()=>{u2=!1}),(JN=globalThis.document)==null||JN.addEventListener("click",()=>{u2=!1});const eW=(e={})=>{const[t,n]=L.useState(!1),[a,i]=L.useState(e.initial!==!1),[l,u]=L.useState(!1),f=L.useRef(null);f.current=e;const h=L.useCallback(()=>{var j;if(!u2)return!1;const P=window.getSelection();if(!P||!P.rangeCount)return!1;const z=P.getRangeAt(0);return z.commonAncestorContainer.contains(N.current)||((j=N.current)==null?void 0:j.contains(z.commonAncestorContainer))},[]),g=L.useCallback(P=>{y.isAtBottom=P,i(P)},[]),x=L.useCallback(P=>{y.escapedFromLock=P,n(P)},[]),y=L.useMemo(()=>{let P;return{escapedFromLock:t,isAtBottom:a,resizeDifference:0,accumulated:0,velocity:0,listeners:new Set,get scrollTop(){var z,j;return(j=(z=N.current)==null?void 0:z.scrollTop)!=null?j:0},set scrollTop(z){N.current&&(N.current.scrollTop=z,y.ignoreScrollToTop=N.current.scrollTop)},get targetScrollTop(){return!N.current||!O.current?0:N.current.scrollHeight-1-N.current.clientHeight},get calculatedTargetScrollTop(){if(!N.current||!O.current)return 0;const{targetScrollTop:z}=this;if(!e.targetScrollTop)return z;if((P==null?void 0:P.targetScrollTop)===z)return P.calculatedScrollTop;const j=Math.max(Math.min(e.targetScrollTop(z,{scrollElement:N.current,contentElement:O.current}),z),0);return P={targetScrollTop:z,calculatedScrollTop:j},requestAnimationFrame(()=>{P=void 0}),j},get scrollDifference(){return this.calculatedTargetScrollTop-this.scrollTop},get isNearBottom(){return this.scrollDifference<=XZ}}},[]),k=L.useCallback((P={})=>{var ae,ye;typeof P=="string"&&(P={animation:P}),P.preserveScrollPosition||g(!0);const z=Date.now()+(Number(P.wait)||0),j=T5(f.current,P.animation),{ignoreEscapes:V=!1}=P;let H,W=y.calculatedTargetScrollTop;P.duration instanceof Promise?P.duration.finally(()=>{H=Date.now()}):H=z+((ae=P.duration)!=null?ae:0);const G=async()=>{const ce=new Promise(requestAnimationFrame).then(()=>{var ke,Ee;if(!y.isAtBottom)return y.animation=void 0,!1;const{scrollTop:he}=y,ue=performance.now(),Te=(ue-((ke=y.lastTick)!=null?ke:ue))/KZ;if(y.animation||(y.animation={behavior:j,promise:ce,ignoreEscapes:V}),y.animation.behavior===j&&(y.lastTick=ue),h()||z>Date.now())return G();if(he<Math.min(W,y.calculatedTargetScrollTop)){if(((Ee=y.animation)==null?void 0:Ee.behavior)===j){if(j==="instant")return y.scrollTop=y.calculatedTargetScrollTop,G();y.velocity=(j.damping*y.velocity+j.stiffness*y.scrollDifference)/j.mass,y.accumulated+=y.velocity*Te,y.scrollTop+=y.accumulated,y.scrollTop!==he&&(y.accumulated=0)}return G()}return H>Date.now()?(W=y.calculatedTargetScrollTop,G()):(y.animation=void 0,y.scrollTop<y.calculatedTargetScrollTop?k({animation:T5(f.current,f.current.resize),ignoreEscapes:V,duration:Math.max(0,H-Date.now())||void 0}):y.isAtBottom)});return ce.then(he=>(requestAnimationFrame(()=>{y.animation||(y.lastTick=void 0,y.velocity=0)}),he))};return P.wait!==!0&&(y.animation=void 0),((ye=y.animation)==null?void 0:ye.behavior)===j?y.animation.promise:G()},[g,h,y]),b=L.useCallback(()=>{x(!0),g(!1)},[x,g]),T=L.useCallback(({target:P})=>{if(P!==N.current)return;const{scrollTop:z,ignoreScrollToTop:j}=y;let{lastScrollTop:V=z}=y;y.lastScrollTop=z,y.ignoreScrollToTop=void 0,j&&j>z&&(V=j),u(y.isNearBottom),setTimeout(()=>{var G;if(y.resizeDifference||z===j)return;if(h()){x(!0),g(!1);return}const H=z>V,W=z<V;if((G=y.animation)!=null&&G.ignoreEscapes){y.scrollTop=V;return}W&&(x(!0),g(!1)),H&&x(!1),!y.escapedFromLock&&y.isNearBottom&&g(!0)},1)},[x,g,h,y]),R=L.useCallback(({target:P,deltaY:z})=>{var V;let j=P;for(;!["scroll","auto"].includes(getComputedStyle(j).overflow);){if(!j.parentElement)return;j=j.parentElement}j===N.current&&z<0&&N.current.scrollHeight>N.current.clientHeight&&!((V=y.animation)!=null&&V.ignoreEscapes)&&(x(!0),g(!1))},[x,g,y]),N=xE(P=>{var z,j;(z=N.current)==null||z.removeEventListener("scroll",T),(j=N.current)==null||j.removeEventListener("wheel",R),P==null||P.addEventListener("scroll",T,{passive:!0}),P==null||P.addEventListener("wheel",R,{passive:!0})},[]),O=xE(P=>{var j,V;if((j=y.resizeObserver)==null||j.disconnect(),!P)return;let z;y.resizeObserver=new ResizeObserver(([H])=>{const{height:W}=H.contentRect,G=W-(z!=null?z:W);if(y.resizeDifference=G,y.scrollTop>y.targetScrollTop&&(y.scrollTop=y.targetScrollTop),u(y.isNearBottom),G>=0){const ae=T5(f.current,z?f.current.resize:f.current.initial);k({animation:ae,wait:!0,preserveScrollPosition:!0,duration:ae==="instant"?void 0:QZ})}else y.isNearBottom&&(x(!1),g(!0));z=W,requestAnimationFrame(()=>{setTimeout(()=>{y.resizeDifference===G&&(y.resizeDifference=0)},1)})}),(V=y.resizeObserver)==null||V.observe(P)},[]);return{contentRef:O,scrollRef:N,scrollToBottom:k,stopScroll:b,isAtBottom:a||l,isNearBottom:l,escapedFromLock:t,state:y}};function xE(e,t){const n=L.useCallback(a=>(n.current=a,e(a)),t);return n}const _5=new Map;function T5(...e){var i,l,u;const t={...JZ};let n=!1;for(const f of e){if(f==="instant"){n=!0;continue}typeof f=="object"&&(n=!1,t.damping=(i=f.damping)!=null?i:t.damping,t.stiffness=(l=f.stiffness)!=null?l:t.stiffness,t.mass=(u=f.mass)!=null?u:t.mass)}const a=JSON.stringify(t);return _5.has(a)||_5.set(a,Object.freeze(t)),n?"instant":_5.get(a)}const wE=L.createContext(null),tW=typeof window!="undefined"?L.useLayoutEffect:L.useEffect;function c2({instance:e,children:t,resize:n,initial:a,mass:i,damping:l,stiffness:u,targetScrollTop:f,contextRef:h,...g}){const x=L.useRef(null),y=L.useCallback((V,H)=>{var G,ae;const W=(G=j==null?void 0:j.targetScrollTop)!=null?G:f;return(ae=W==null?void 0:W(V,H))!=null?ae:V},[f]),k=eW({mass:i,damping:l,stiffness:u,resize:n,initial:a,targetScrollTop:y}),{scrollRef:b,contentRef:T,scrollToBottom:R,stopScroll:N,isAtBottom:O,escapedFromLock:P,state:z}=e!=null?e:k,j=L.useMemo(()=>({scrollToBottom:R,stopScroll:N,scrollRef:b,isAtBottom:O,escapedFromLock:P,contentRef:T,state:z,get targetScrollTop(){return x.current},set targetScrollTop(V){x.current=V}}),[R,O,T,b,N,P,z]);return L.useImperativeHandle(h,()=>j,[j]),tW(()=>{b.current&&getComputedStyle(b.current).overflow==="visible"&&(b.current.style.overflow="auto")},[]),C.jsx(wE.Provider,{value:j,children:C.jsx("div",{...g,children:typeof t=="function"?t(j):t})})}(function(e){function t({children:n,...a}){const i=bE();return C.jsx("div",{ref:i.scrollRef,style:{height:"100%",width:"100%"},children:C.jsx("div",{...a,ref:i.contentRef,children:typeof n=="function"?n(i):n})})}e.Content=t})(c2||(c2={}));function bE(){const e=L.useContext(wE);if(!e)throw new Error("use-stick-to-bottom component context must be used within a StickToBottom component");return e}var CE={exports:{}};/*!
|
|
353
|
-
Copyright (c) 2018 Jed Watson.
|
|
354
|
-
Licensed under the MIT License (MIT), see
|
|
355
|
-
http://jedwatson.github.io/classnames
|
|
356
|
-
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var l="",u=0;u<arguments.length;u++){var f=arguments[u];f&&(l=i(l,a(f)))}return l}function a(l){if(typeof l=="string"||typeof l=="number")return l;if(typeof l!="object")return"";if(Array.isArray(l))return n.apply(null,l);if(l.toString!==Object.prototype.toString&&!l.toString.toString().includes("[native code]"))return l.toString();var u="";for(var f in l)t.call(l,f)&&l[f]&&(u=i(u,f));return u}function i(l,u){return u?l?l+" "+u:l+u:l}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(CE);var nW=CE.exports;const _a=Wu(nW);function SE(e){var t,n,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=SE(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function kE(){for(var e,t,n=0,a="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=SE(e))&&(a&&(a+=" "),a+=t);return a}const rW=(e,t)=>{const n=new Array(e.length+t.length);for(let a=0;a<e.length;a++)n[a]=e[a];for(let a=0;a<t.length;a++)n[e.length+a]=t[a];return n},aW=(e,t)=>({classGroupId:e,validator:t}),EE=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),d2="-",_E=[],oW="arbitrary..",iW=e=>{const t=lW(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return sW(u);const f=u.split(d2),h=f[0]===""&&f.length>1?1:0;return TE(f,h,t)},getConflictingClassGroupIds:(u,f)=>{if(f){const h=a[u],g=n[u];return h?g?rW(g,h):h:g||_E}return n[u]||_E}}},TE=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],l=n.nextPart.get(i);if(l){const g=TE(e,t+1,l);if(g)return g}const u=n.validators;if(u===null)return;const f=t===0?e.join(d2):e.slice(t).join(d2),h=u.length;for(let g=0;g<h;g++){const x=u[g];if(x.validator(f))return x.classGroupId}},sW=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),a=t.slice(0,n);return a?oW+a:void 0})(),lW=e=>{const{theme:t,classGroups:n}=e;return uW(n,t)},uW=(e,t)=>{const n=EE();for(const a in e){const i=e[a];R5(i,n,a,t)}return n},R5=(e,t,n,a)=>{const i=e.length;for(let l=0;l<i;l++){const u=e[l];cW(u,t,n,a)}},cW=(e,t,n,a)=>{if(typeof e=="string"){dW(e,t,n);return}if(typeof e=="function"){fW(e,t,n,a);return}pW(e,t,n,a)},dW=(e,t,n)=>{const a=e===""?t:RE(t,e);a.classGroupId=n},fW=(e,t,n,a)=>{if(hW(e)){R5(e(a),t,n,a);return}t.validators===null&&(t.validators=[]),t.validators.push(aW(n,e))},pW=(e,t,n,a)=>{const i=Object.entries(e),l=i.length;for(let u=0;u<l;u++){const[f,h]=i[u];R5(h,RE(t,f),n,a)}},RE=(e,t)=>{let n=e;const a=t.split(d2),i=a.length;for(let l=0;l<i;l++){const u=a[l];let f=n.nextPart.get(u);f||(f=EE(),n.nextPart.set(u,f)),n=f}return n},hW=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,mW=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),a=Object.create(null);const i=(l,u)=>{n[l]=u,t++,t>e&&(t=0,a=n,n=Object.create(null))};return{get(l){let u=n[l];if(u!==void 0)return u;if((u=a[l])!==void 0)return i(l,u),u},set(l,u){l in n?n[l]=u:i(l,u)}}},M5="!",ME=":",gW=[],AE=(e,t,n,a,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:a,isExternal:i}),vW=e=>{const{prefix:t,experimentalParseClassName:n}=e;let a=i=>{const l=[];let u=0,f=0,h=0,g;const x=i.length;for(let R=0;R<x;R++){const N=i[R];if(u===0&&f===0){if(N===ME){l.push(i.slice(h,R)),h=R+1;continue}if(N==="/"){g=R;continue}}N==="["?u++:N==="]"?u--:N==="("?f++:N===")"&&f--}const y=l.length===0?i:i.slice(h);let k=y,b=!1;y.endsWith(M5)?(k=y.slice(0,-1),b=!0):y.startsWith(M5)&&(k=y.slice(1),b=!0);const T=g&&g>h?g-h:void 0;return AE(l,b,k,T)};if(t){const i=t+ME,l=a;a=u=>u.startsWith(i)?l(u.slice(i.length)):AE(gW,!1,u,void 0,!0)}if(n){const i=a;a=l=>n({className:l,parseClassName:i})}return a},yW=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,a)=>{t.set(n,1e6+a)}),n=>{const a=[];let i=[];for(let l=0;l<n.length;l++){const u=n[l],f=u[0]==="[",h=t.has(u);f||h?(i.length>0&&(i.sort(),a.push(...i),i=[]),a.push(u)):i.push(u)}return i.length>0&&(i.sort(),a.push(...i)),a}},xW=e=>({cache:mW(e.cacheSize),parseClassName:vW(e),sortModifiers:yW(e),...iW(e)}),wW=/\s+/,bW=(e,t)=>{const{parseClassName:n,getClassGroupId:a,getConflictingClassGroupIds:i,sortModifiers:l}=t,u=[],f=e.trim().split(wW);let h="";for(let g=f.length-1;g>=0;g-=1){const x=f[g],{isExternal:y,modifiers:k,hasImportantModifier:b,baseClassName:T,maybePostfixModifierPosition:R}=n(x);if(y){h=x+(h.length>0?" "+h:h);continue}let N=!!R,O=a(N?T.substring(0,R):T);if(!O){if(!N){h=x+(h.length>0?" "+h:h);continue}if(O=a(T),!O){h=x+(h.length>0?" "+h:h);continue}N=!1}const P=k.length===0?"":k.length===1?k[0]:l(k).join(":"),z=b?P+M5:P,j=z+O;if(u.indexOf(j)>-1)continue;u.push(j);const V=i(O,N);for(let H=0;H<V.length;++H){const W=V[H];u.push(z+W)}h=x+(h.length>0?" "+h:h)}return h},CW=(...e)=>{let t=0,n,a,i="";for(;t<e.length;)(n=e[t++])&&(a=NE(n))&&(i&&(i+=" "),i+=a);return i},NE=e=>{if(typeof e=="string")return e;let t,n="";for(let a=0;a<e.length;a++)e[a]&&(t=NE(e[a]))&&(n&&(n+=" "),n+=t);return n},SW=(e,...t)=>{let n,a,i,l;const u=h=>{const g=t.reduce((x,y)=>y(x),e());return n=xW(g),a=n.cache.get,i=n.cache.set,l=f,f(h)},f=h=>{const g=a(h);if(g)return g;const x=bW(h,n);return i(h,x),x};return l=u,(...h)=>l(CW(...h))},kW=[],ca=e=>{const t=n=>n[e]||kW;return t.isThemeGetter=!0,t},LE=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,OE=/^\((?:(\w[\w-]*):)?(.+)\)$/i,EW=/^\d+\/\d+$/,_W=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,TW=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,RW=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,MW=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,AW=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,d1=e=>EW.test(e),pn=e=>!!e&&!Number.isNaN(Number(e)),Qu=e=>!!e&&Number.isInteger(Number(e)),A5=e=>e.endsWith("%")&&pn(e.slice(0,-1)),Gl=e=>_W.test(e),NW=()=>!0,LW=e=>TW.test(e)&&!RW.test(e),IE=()=>!1,OW=e=>MW.test(e),IW=e=>AW.test(e),DW=e=>!mt(e)&&!gt(e),jW=e=>f1(e,zE,IE),mt=e=>LE.test(e),wd=e=>f1(e,HE,LW),N5=e=>f1(e,UW,pn),DE=e=>f1(e,PE,IE),PW=e=>f1(e,FE,IW),f2=e=>f1(e,UE,OW),gt=e=>OE.test(e),Zh=e=>p1(e,HE),FW=e=>p1(e,BW),jE=e=>p1(e,PE),zW=e=>p1(e,zE),HW=e=>p1(e,FE),p2=e=>p1(e,UE,!0),f1=(e,t,n)=>{const a=LE.exec(e);return a?a[1]?t(a[1]):n(a[2]):!1},p1=(e,t,n=!1)=>{const a=OE.exec(e);return a?a[1]?t(a[1]):n:!1},PE=e=>e==="position"||e==="percentage",FE=e=>e==="image"||e==="url",zE=e=>e==="length"||e==="size"||e==="bg-size",HE=e=>e==="length",UW=e=>e==="number",BW=e=>e==="family-name",UE=e=>e==="shadow",VW=SW(()=>{const e=ca("color"),t=ca("font"),n=ca("text"),a=ca("font-weight"),i=ca("tracking"),l=ca("leading"),u=ca("breakpoint"),f=ca("container"),h=ca("spacing"),g=ca("radius"),x=ca("shadow"),y=ca("inset-shadow"),k=ca("text-shadow"),b=ca("drop-shadow"),T=ca("blur"),R=ca("perspective"),N=ca("aspect"),O=ca("ease"),P=ca("animate"),z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],j=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],V=()=>[...j(),gt,mt],H=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto","contain","none"],G=()=>[gt,mt,h],ae=()=>[d1,"full","auto",...G()],ye=()=>[Qu,"none","subgrid",gt,mt],ce=()=>["auto",{span:["full",Qu,gt,mt]},Qu,gt,mt],he=()=>[Qu,"auto",gt,mt],ue=()=>["auto","min","max","fr",gt,mt],Te=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ke=()=>["start","end","center","stretch","center-safe","end-safe"],Ee=()=>["auto",...G()],xe=()=>[d1,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...G()],K=()=>[e,gt,mt],Ae=()=>[...j(),jE,DE,{position:[gt,mt]}],B=()=>["no-repeat",{repeat:["","x","y","space","round"]}],X=()=>["auto","cover","contain",zW,jW,{size:[gt,mt]}],pe=()=>[A5,Zh,wd],Z=()=>["","none","full",g,gt,mt],ze=()=>["",pn,Zh,wd],st=()=>["solid","dashed","dotted","double"],Ve=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],_e=()=>[pn,A5,jE,DE],Ze=()=>["","none",T,gt,mt],Ke=()=>["none",pn,gt,mt],We=()=>["none",pn,gt,mt],et=()=>[pn,gt,mt],Et=()=>[d1,"full",...G()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Gl],breakpoint:[Gl],color:[NW],container:[Gl],"drop-shadow":[Gl],ease:["in","out","in-out"],font:[DW],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Gl],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Gl],shadow:[Gl],spacing:["px",pn],text:[Gl],"text-shadow":[Gl],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",d1,mt,gt,N]}],container:["container"],columns:[{columns:[pn,mt,gt,f]}],"break-after":[{"break-after":z()}],"break-before":[{"break-before":z()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:V()}],overflow:[{overflow:H()}],"overflow-x":[{"overflow-x":H()}],"overflow-y":[{"overflow-y":H()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ae()}],"inset-x":[{"inset-x":ae()}],"inset-y":[{"inset-y":ae()}],start:[{start:ae()}],end:[{end:ae()}],top:[{top:ae()}],right:[{right:ae()}],bottom:[{bottom:ae()}],left:[{left:ae()}],visibility:["visible","invisible","collapse"],z:[{z:[Qu,"auto",gt,mt]}],basis:[{basis:[d1,"full","auto",f,...G()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[pn,d1,"auto","initial","none",mt]}],grow:[{grow:["",pn,gt,mt]}],shrink:[{shrink:["",pn,gt,mt]}],order:[{order:[Qu,"first","last","none",gt,mt]}],"grid-cols":[{"grid-cols":ye()}],"col-start-end":[{col:ce()}],"col-start":[{"col-start":he()}],"col-end":[{"col-end":he()}],"grid-rows":[{"grid-rows":ye()}],"row-start-end":[{row:ce()}],"row-start":[{"row-start":he()}],"row-end":[{"row-end":he()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ue()}],"auto-rows":[{"auto-rows":ue()}],gap:[{gap:G()}],"gap-x":[{"gap-x":G()}],"gap-y":[{"gap-y":G()}],"justify-content":[{justify:[...Te(),"normal"]}],"justify-items":[{"justify-items":[...ke(),"normal"]}],"justify-self":[{"justify-self":["auto",...ke()]}],"align-content":[{content:["normal",...Te()]}],"align-items":[{items:[...ke(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ke(),{baseline:["","last"]}]}],"place-content":[{"place-content":Te()}],"place-items":[{"place-items":[...ke(),"baseline"]}],"place-self":[{"place-self":["auto",...ke()]}],p:[{p:G()}],px:[{px:G()}],py:[{py:G()}],ps:[{ps:G()}],pe:[{pe:G()}],pt:[{pt:G()}],pr:[{pr:G()}],pb:[{pb:G()}],pl:[{pl:G()}],m:[{m:Ee()}],mx:[{mx:Ee()}],my:[{my:Ee()}],ms:[{ms:Ee()}],me:[{me:Ee()}],mt:[{mt:Ee()}],mr:[{mr:Ee()}],mb:[{mb:Ee()}],ml:[{ml:Ee()}],"space-x":[{"space-x":G()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":G()}],"space-y-reverse":["space-y-reverse"],size:[{size:xe()}],w:[{w:[f,"screen",...xe()]}],"min-w":[{"min-w":[f,"screen","none",...xe()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[u]},...xe()]}],h:[{h:["screen","lh",...xe()]}],"min-h":[{"min-h":["screen","lh","none",...xe()]}],"max-h":[{"max-h":["screen","lh",...xe()]}],"font-size":[{text:["base",n,Zh,wd]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,gt,N5]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",A5,mt]}],"font-family":[{font:[FW,mt,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,gt,mt]}],"line-clamp":[{"line-clamp":[pn,"none",gt,N5]}],leading:[{leading:[l,...G()]}],"list-image":[{"list-image":["none",gt,mt]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",gt,mt]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:K()}],"text-color":[{text:K()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...st(),"wavy"]}],"text-decoration-thickness":[{decoration:[pn,"from-font","auto",gt,wd]}],"text-decoration-color":[{decoration:K()}],"underline-offset":[{"underline-offset":[pn,"auto",gt,mt]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:G()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",gt,mt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",gt,mt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Ae()}],"bg-repeat":[{bg:B()}],"bg-size":[{bg:X()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Qu,gt,mt],radial:["",gt,mt],conic:[Qu,gt,mt]},HW,PW]}],"bg-color":[{bg:K()}],"gradient-from-pos":[{from:pe()}],"gradient-via-pos":[{via:pe()}],"gradient-to-pos":[{to:pe()}],"gradient-from":[{from:K()}],"gradient-via":[{via:K()}],"gradient-to":[{to:K()}],rounded:[{rounded:Z()}],"rounded-s":[{"rounded-s":Z()}],"rounded-e":[{"rounded-e":Z()}],"rounded-t":[{"rounded-t":Z()}],"rounded-r":[{"rounded-r":Z()}],"rounded-b":[{"rounded-b":Z()}],"rounded-l":[{"rounded-l":Z()}],"rounded-ss":[{"rounded-ss":Z()}],"rounded-se":[{"rounded-se":Z()}],"rounded-ee":[{"rounded-ee":Z()}],"rounded-es":[{"rounded-es":Z()}],"rounded-tl":[{"rounded-tl":Z()}],"rounded-tr":[{"rounded-tr":Z()}],"rounded-br":[{"rounded-br":Z()}],"rounded-bl":[{"rounded-bl":Z()}],"border-w":[{border:ze()}],"border-w-x":[{"border-x":ze()}],"border-w-y":[{"border-y":ze()}],"border-w-s":[{"border-s":ze()}],"border-w-e":[{"border-e":ze()}],"border-w-t":[{"border-t":ze()}],"border-w-r":[{"border-r":ze()}],"border-w-b":[{"border-b":ze()}],"border-w-l":[{"border-l":ze()}],"divide-x":[{"divide-x":ze()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ze()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...st(),"hidden","none"]}],"divide-style":[{divide:[...st(),"hidden","none"]}],"border-color":[{border:K()}],"border-color-x":[{"border-x":K()}],"border-color-y":[{"border-y":K()}],"border-color-s":[{"border-s":K()}],"border-color-e":[{"border-e":K()}],"border-color-t":[{"border-t":K()}],"border-color-r":[{"border-r":K()}],"border-color-b":[{"border-b":K()}],"border-color-l":[{"border-l":K()}],"divide-color":[{divide:K()}],"outline-style":[{outline:[...st(),"none","hidden"]}],"outline-offset":[{"outline-offset":[pn,gt,mt]}],"outline-w":[{outline:["",pn,Zh,wd]}],"outline-color":[{outline:K()}],shadow:[{shadow:["","none",x,p2,f2]}],"shadow-color":[{shadow:K()}],"inset-shadow":[{"inset-shadow":["none",y,p2,f2]}],"inset-shadow-color":[{"inset-shadow":K()}],"ring-w":[{ring:ze()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:K()}],"ring-offset-w":[{"ring-offset":[pn,wd]}],"ring-offset-color":[{"ring-offset":K()}],"inset-ring-w":[{"inset-ring":ze()}],"inset-ring-color":[{"inset-ring":K()}],"text-shadow":[{"text-shadow":["none",k,p2,f2]}],"text-shadow-color":[{"text-shadow":K()}],opacity:[{opacity:[pn,gt,mt]}],"mix-blend":[{"mix-blend":[...Ve(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ve()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[pn]}],"mask-image-linear-from-pos":[{"mask-linear-from":_e()}],"mask-image-linear-to-pos":[{"mask-linear-to":_e()}],"mask-image-linear-from-color":[{"mask-linear-from":K()}],"mask-image-linear-to-color":[{"mask-linear-to":K()}],"mask-image-t-from-pos":[{"mask-t-from":_e()}],"mask-image-t-to-pos":[{"mask-t-to":_e()}],"mask-image-t-from-color":[{"mask-t-from":K()}],"mask-image-t-to-color":[{"mask-t-to":K()}],"mask-image-r-from-pos":[{"mask-r-from":_e()}],"mask-image-r-to-pos":[{"mask-r-to":_e()}],"mask-image-r-from-color":[{"mask-r-from":K()}],"mask-image-r-to-color":[{"mask-r-to":K()}],"mask-image-b-from-pos":[{"mask-b-from":_e()}],"mask-image-b-to-pos":[{"mask-b-to":_e()}],"mask-image-b-from-color":[{"mask-b-from":K()}],"mask-image-b-to-color":[{"mask-b-to":K()}],"mask-image-l-from-pos":[{"mask-l-from":_e()}],"mask-image-l-to-pos":[{"mask-l-to":_e()}],"mask-image-l-from-color":[{"mask-l-from":K()}],"mask-image-l-to-color":[{"mask-l-to":K()}],"mask-image-x-from-pos":[{"mask-x-from":_e()}],"mask-image-x-to-pos":[{"mask-x-to":_e()}],"mask-image-x-from-color":[{"mask-x-from":K()}],"mask-image-x-to-color":[{"mask-x-to":K()}],"mask-image-y-from-pos":[{"mask-y-from":_e()}],"mask-image-y-to-pos":[{"mask-y-to":_e()}],"mask-image-y-from-color":[{"mask-y-from":K()}],"mask-image-y-to-color":[{"mask-y-to":K()}],"mask-image-radial":[{"mask-radial":[gt,mt]}],"mask-image-radial-from-pos":[{"mask-radial-from":_e()}],"mask-image-radial-to-pos":[{"mask-radial-to":_e()}],"mask-image-radial-from-color":[{"mask-radial-from":K()}],"mask-image-radial-to-color":[{"mask-radial-to":K()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":j()}],"mask-image-conic-pos":[{"mask-conic":[pn]}],"mask-image-conic-from-pos":[{"mask-conic-from":_e()}],"mask-image-conic-to-pos":[{"mask-conic-to":_e()}],"mask-image-conic-from-color":[{"mask-conic-from":K()}],"mask-image-conic-to-color":[{"mask-conic-to":K()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Ae()}],"mask-repeat":[{mask:B()}],"mask-size":[{mask:X()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",gt,mt]}],filter:[{filter:["","none",gt,mt]}],blur:[{blur:Ze()}],brightness:[{brightness:[pn,gt,mt]}],contrast:[{contrast:[pn,gt,mt]}],"drop-shadow":[{"drop-shadow":["","none",b,p2,f2]}],"drop-shadow-color":[{"drop-shadow":K()}],grayscale:[{grayscale:["",pn,gt,mt]}],"hue-rotate":[{"hue-rotate":[pn,gt,mt]}],invert:[{invert:["",pn,gt,mt]}],saturate:[{saturate:[pn,gt,mt]}],sepia:[{sepia:["",pn,gt,mt]}],"backdrop-filter":[{"backdrop-filter":["","none",gt,mt]}],"backdrop-blur":[{"backdrop-blur":Ze()}],"backdrop-brightness":[{"backdrop-brightness":[pn,gt,mt]}],"backdrop-contrast":[{"backdrop-contrast":[pn,gt,mt]}],"backdrop-grayscale":[{"backdrop-grayscale":["",pn,gt,mt]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[pn,gt,mt]}],"backdrop-invert":[{"backdrop-invert":["",pn,gt,mt]}],"backdrop-opacity":[{"backdrop-opacity":[pn,gt,mt]}],"backdrop-saturate":[{"backdrop-saturate":[pn,gt,mt]}],"backdrop-sepia":[{"backdrop-sepia":["",pn,gt,mt]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":G()}],"border-spacing-x":[{"border-spacing-x":G()}],"border-spacing-y":[{"border-spacing-y":G()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",gt,mt]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[pn,"initial",gt,mt]}],ease:[{ease:["linear","initial",O,gt,mt]}],delay:[{delay:[pn,gt,mt]}],animate:[{animate:["none",P,gt,mt]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[R,gt,mt]}],"perspective-origin":[{"perspective-origin":V()}],rotate:[{rotate:Ke()}],"rotate-x":[{"rotate-x":Ke()}],"rotate-y":[{"rotate-y":Ke()}],"rotate-z":[{"rotate-z":Ke()}],scale:[{scale:We()}],"scale-x":[{"scale-x":We()}],"scale-y":[{"scale-y":We()}],"scale-z":[{"scale-z":We()}],"scale-3d":["scale-3d"],skew:[{skew:et()}],"skew-x":[{"skew-x":et()}],"skew-y":[{"skew-y":et()}],transform:[{transform:[gt,mt,"","none","gpu","cpu"]}],"transform-origin":[{origin:V()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Et()}],"translate-x":[{"translate-x":Et()}],"translate-y":[{"translate-y":Et()}],"translate-z":[{"translate-z":Et()}],"translate-none":["translate-none"],accent:[{accent:K()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:K()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",gt,mt]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":G()}],"scroll-mx":[{"scroll-mx":G()}],"scroll-my":[{"scroll-my":G()}],"scroll-ms":[{"scroll-ms":G()}],"scroll-me":[{"scroll-me":G()}],"scroll-mt":[{"scroll-mt":G()}],"scroll-mr":[{"scroll-mr":G()}],"scroll-mb":[{"scroll-mb":G()}],"scroll-ml":[{"scroll-ml":G()}],"scroll-p":[{"scroll-p":G()}],"scroll-px":[{"scroll-px":G()}],"scroll-py":[{"scroll-py":G()}],"scroll-ps":[{"scroll-ps":G()}],"scroll-pe":[{"scroll-pe":G()}],"scroll-pt":[{"scroll-pt":G()}],"scroll-pr":[{"scroll-pr":G()}],"scroll-pb":[{"scroll-pb":G()}],"scroll-pl":[{"scroll-pl":G()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",gt,mt]}],fill:[{fill:["none",...K()]}],"stroke-w":[{stroke:[pn,Zh,wd,N5]}],stroke:[{stroke:["none",...K()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function Ge(...e){return VW(kE(e))}const Pi=e=>{if(e.type!=="text"||!e.providerMetadata||!e.providerMetadata.raw||!e.providerMetadata.raw.data)return null;if(typeof e.providerMetadata.raw.data!="string")return e.providerMetadata.raw.data;let t;try{t=JSON.parse(e.providerMetadata.raw.data)}catch(n){console.error("invalid raw data")}return t||e.providerMetadata.raw.data},h2=e=>{const t=Pi(e);return(t==null?void 0:t.type)==="mcp-fields-json"},$W=e=>{const t=Pi(e);return(t==null?void 0:t.type)==="query-stream-parsed-info"},ZW=e=>{const t=Pi(e);if((t==null?void 0:t.type)!=="query-stream-parsed-info")return null;const n=t.result;console.log("query result raw data:",n);try{return JSON.parse(n)}catch(a){return console.error("invalid query result data"),null}},BE=e=>{if((e==null?void 0:e.type)==="error")return!0;const t=Pi(e);return(t==null?void 0:t.type)==="agent-error"},WW=e=>(e==null?void 0:e.type)==="file",qW=e=>{if(!Array.isArray(e))return!1;for(const t of e)if((t==null?void 0:t.type)==="file")return!0;return!1},GW=e=>{const t=Pi(e);return(t==null?void 0:t.type)==="agent-loading"},YW=e=>{const t=Pi(e);return(t==null?void 0:t.type)!=="agent-loading"?"":(t==null?void 0:t.label)||"加载中"},JW=e=>{if(!BE(e))return"";if(e!=null&&e.errorText)return e.errorText;const t=Pi(e);return(t==null?void 0:t.error)||"未知错误"},VE=e=>{const t=Pi(e);return(t==null?void 0:t.type)!=="mcp-fields-json"?null:(t==null?void 0:t.field)||null},XW=e=>{const t=Pi(e);return(t==null?void 0:t.type)==="suggestion"},$E=e=>{const t=Pi(e);return(t==null?void 0:t.appendConfirm)==="save-fields"},KW=e=>{var a;return(((a=/现在要创建一张表:“([^”]+)”/g.exec(e))==null?void 0:a[1])||"").replace(/(.*\)/,"")};function m2(e){return e.replace("<has_function_call>","")}function QW(e,t){if(!Array.isArray(e)||e.length===0)return[];const n=[e[0]];for(let a=1;a<e.length;a++){const i=e[a],l=n[n.length-1];t(l,i)?n[n.length-1]=i:n.push(i)}return n}const eq=(e,t,n="value")=>{var l,u;if(((l=e==null?void 0:e.widget)==null?void 0:l.type)!=="subform"||((u=t==null?void 0:t.widget)==null?void 0:u.type)!=="subform")return!0;const a=(e==null?void 0:e.widget[n])||[],i=(t==null?void 0:t.widget[n])||[];if(a.length!==i.length)return!1;for(let f=0;f<a.length;f++){const h=a[f],g=i[f];if(h.length!==g.length)return!1}return!0};function L5(e,t,n=1){const a=[],i=[];for(const l of e)t(l)?i.push(l):(i.length>0&&(a.push(i.length>=n?[...i]:i[0]),i.length=0),a.push(l));return i.length>0&&a.push(i.length>=2?[...i]:i[0]),a}const tq=e=>L5(e,t=>t.type==="file",2),nq=`
|
|
357
|
-
url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABMdSURBVHgB7VoJlF1Vld33vffnX79+TalKqpKQEQQiGhIUJYDKqIZBxVYQW9FWWQuWK7at3SBL2rZdirYRAV3gkrZbXS3EAUEMtEoEHJgbYiDzWEmlUuOv+vN/793b+9z3E7FAkkjbq9tVN3n577//hrvvOWfvc84LMD2mx/SYHtNjekyP6XFkQ3Fzzj///MQVV1wxq3kshr/gob770NNXjWpj+qvabJ5oDDePu/hLHOdceOHs0BizuWTCX48as2EsCB7oL/zyaO7h4P/RWPraMxfcuqWOsQYc7Wgg6Thtyj/+aO6h8OcZcl8jO5dccomb5PD9WOurXnVix0S5lHW0VhJ5TuiEqdZ8cf0TTxe2locLT95zT2XKPXDwPgfHt31TfmZXkFzW5ah4SmPR4NBnlszt/cep5/05hyUSOzNj1Gc+8/kl996/7tPb+wcfm2gEE2UerHOrcpsIo09fNsahH2rj+6EJxU85eEhPFP3hnbv3/2bNmvs//dFPfOrYKc+JXf31x97X8pXAfKzujz21ZdM/NX/7X/HUQ0C/9rXbzti3f+SRSmD0+qGieXS4ZDaU62bAD0yBaAq1uhkr+2a0WONWN+Plhhnh/hj3J3heteqbet03OgiMCULTmAxNraB1vazNEBfioW171q1effNSedaNu4zJf9yYqXM4mkn/KcPjFtxz3y/e/5Zz33jz9n1jaU5cz+7OO62pBGgwiNdqo6E5H36zj7KzlLkqx84y0PKV54RAqDW36DqXs0qSd1NJBwnHQX+guChGFROYvOCfg5zetflDI3e+8l/lFjjKcbR0blf0hhtu6Lr3p/ftjSez7yxVfa+3J69mdrSoWDzGCXPS9iwF+SN/HcU9EwERgyi7BMp+OgSvHAOX57uuYz/lRFmMybrBaDlAi6vUExtDrLm3nnjDSY5ZckX2FbP6J7/53HOPhzjK2D0aC9tzN2/e+p5Fixf++8DgaNAxo92DiixpjShgQwPjRKDUwdsrHuNxsa62to0AG/mj7WV22nILcQD5HvJLSNQCvB4YxDwX4yXgGz8pYvUlaV1oTzgbnt3xlvOXL1jbnJs+YhBHDHbrrisXLZxzS7EWaM9xHceNAqgRRp8kHTGsXXLVtOMfApIfxSh0c+6GdhGUnBX9bqJHad0EzIt9Im6EDsHzOQEXkuxeKWmclDd6wPOcidLgh1+7sO8bOEJLH2nAu/fd9+hpixbOvaXOYIvFXCcRZ3wRMBceyXj0NMdOvunKEqpye4lX2RzZeI4b48aJ85hnj6not+baa33Qwtrum0OLZawnFasBXT3Aff3G6W3UdVvrzFvvWff063GE4XkkFvZIlGIWXff9IFSul/TUIaE1z3NdkqwFKC5sv4fRhAWUalpeLGt9T0CJlYkuFNLi96ChrRt7Ap8XykN936DSMKB6cZ/W5TOqPK/acFBrBHhbrwrrszPuuy94c3Lt2rVCYuHLBYw9ewbWdXV3nF5vaCeXTTajD81/lbVOQHOI1Yq1ELv6C9i0fRjrN+/Djh3D2LVrEGOjRVSqPvx6w8a4F4vD4Saf2XwGuXwKPT15zJ3djrlzO7F4YTf6ZuQgDKhrAeKeg1LNIfiAYA3KDYVipY5W2nVRJhVk51afnN+Zf+3hsHiH+d25/PLLO/Md7WcWxoqY0dNxUFys6cRVa75GgSBvv/NpfO/b92Pj+u20dAOZfBKnnTIP8bhCT95DW1YmKBN2Ua2HKBQnUCQDiwwNDhEXzR2SlU01hKnz/ty89hwWnLwA571xMd721mX2ebEY7+HrQwQ33NYC1ALv+Hzraz73uc91XXPNNaN4CQI7nIXVw488c+uEH37gjGUnOpmkF9GhsK2JHPnaGx/GF69djVNPPwEXvfVUHDu/G9/98aP42VM7kYwplCs1iD/HmnKjjBPFtsSkaK8y0f10JKoB40A3A9lMEnw1y+uzMIHCpVeehquvOIMLDIxXNMrpBLTHhefCdZ0c0+lnNt95ztJXXIqXILCXAmzDdKQelp94dmvqnFcfq6wrN6VFGOI1Z38B4yM7cNMXr0JhoojRQokT1kgnkrjpjnUYLlSprXKNYxMMideDU5EQCC1oYz+FzQNxXx3YfSOAhRJ2jwnTcc3iMG4veubkceedV2J3UaGaS9mYd8jcyfYAr+uIVxZ4KoPn5fJTh/NHgKqTP/Qh7/M333H6/tFCuqctrw4mcxKnNbLkxR9cg7A2iNtvXoXd+4YIuEJAyrro2GQFl567lIzaoKHcaJGsTkds60t2pSICCyVIuBM2WSHKyHiNaF65TuCevZ55J1dkJw5UYnjvB2/HvKwDHUQyqMgJpXGNfhfpT3723tOvv/569cfwvagsffOeTR+/+8ZbG+df+I4Hh0bH/I5sxrqdjDLj9dnnCrj7B9/HzV+6Epu2DUBEJRQr0ioBt0wqhtX/8Svk6HKGSE3TsKETJZmyBSJhYXRPa3j5bs8jYMvyPOtAWbQucu96Aea4M6HnzsGO9btx74Nb0epXuTA8n8BVxcV62vvkmec8ePHKT4df/WH/bXiRWFYv8t3c8ltjnt2odU+r4/TGt+Kv3jQXynUtU1ZILOde8QMs7R3GqctORI0MKiAl9kigBBvHTd/7JQbGKtRpYxfBaigXRds9xyYVmkoXWT6K4SjDanqCCPa2wcgexuDQisGH94YPwBRG0V7aj2/dsQr99GePF6X56wMxjR/9g2MVeeWbHDx895uT29aubeB57j3VwmrVDWtWNHhKLdROb14jT+u6XkRWkhNLevfYA7/BqUsXE2zDWlCyfwGWSydx909/hclUK8J4HEG5BJ8hEPIxgY3hKHsSsEJ6Yk2bYh60rDylWILbP4j4icfTqiP4g1D0J3mME2jrxvC2vZicqCIpS0gUAUG2Pa6RbDGYpDJ8Zx1w8ZtXXTDVwlNlSS9/+8ofhgNBuGKR68bDGl53Yidj1keChYEkD7sP1KDHh9Cay6EyNG4tJERFF8Bj67dg2ec/AYx4KDDG1t9yF5zf/pJP8Q6lkNaNVTNRsSFLy7tROKBUxuJTTkHq2o9gdDhAfYaHkdPfCVNzbEqqyEd6dC88ElfQ0o59ewvozWfR4L3Jk2iMEzQXbVgYdabRd6kzbufemucDfEEM93Qn0mXfcYdGmeEwXjXNLe4sTing9gwU4CUDWtNDPpdGLptCOh1HW8xg4riT8LOdDiYpGRgIMP/KlSjuGmCcedCOY+NWpEdcv1HzEU7WEAxNQO8bg9k9DL1zM7qu+Rsc2EwrlhqI76wj88lPMUbHotgTIiuNR7POdeHAyARi9LAE1zNBCRwdLiLLhanX7OI6YXfcPZyF8egwnHQV+PEm4LQ+jfseG8NfXzAXdT9kCsgkg9Kjcnms/MhtyOaYJRFsV3srZqVdPHLKeZhPy1rJSVBvueqGCUaJoCxKvxEx1CEqaaaiAsflVNwkdnJRYrkkFwg2x44lm78zVg1DR/E+UkYq0fhiFfFmtc1sF2mvAhPP8pyoro63vFB2XwB4L/PVnz0VudswBb7DVG3s2pqWW40WFz31vTgzHg/VSYPd42PwuRAnnENWTvI8ma1gSUQyw3SMx3xraeVEFRTM72NTUboEuGEp5KaILU1AFgXvk5A5uxawkh91JEOKTF7nfQWo9POEzDPJGiaSlLKA8yDoDucIZOm4mTzI6kfHREaUnURzWk09bE44KgjBZoStVa16ZmO2LS7XeykCT4tIejbDMl7MNgWsvkqJ5QoIz+q6kZCx3QE2ARKwIB1e7yRJSAnhDnJwImvPl+ssBZAXhExtpSVZn6yfx+wrFmBGKwmUi724EzishVvZtHh1B92FVUp7XDVdrtnq4M3FrUFHclQ0QaWbmsmHm8IEsllWM/SMuAp5FqQEai5ttCi6VIHKpCzJCUmZ9jwUExlrb+2iJcUYjNteCGSNahU2MhNtTKXStoJCKh1ZiQhTrEs1H+a5cbi0kMeFmsd6Y6zO67lwmfgLdfgFFnZZjkgOGYbSknGQTSatZaNoMEiSDg21lyWxjUcp6Soy4ZiH9X93I8u4EnoWOug5xsMjZ/89VM+cyDuG9mPeg19F9vKLm3VjiOwH34Xe//wimXeEjkAgM+dh89tXo+cED3NOdNCSrWP/J1eTetshNGyyLbR8GtJKkpjLMbWUhXdlfiTKrtYEjulmNUdjpfTBfsphLNw9MvZ9N+x8X5Y+loknEI+Ws9l/Ajq7JFVNMrxCrqyDztaIqbMsLOD0Ycd5H8NzXZ0Y3bANXlsH4rSCkJiZORvbT/oAetZ+AR2fvdjGXvXJIexddjXUzPlRA4ENQDM2iV/NvhrJBb3w+vfhmFOXoCGLWqPnsOPhcz5lk4YuV9HXmWVoO6izsopRJTzG+Y59jpW+RlmHS+vDD0/Fp17E4vrrvzbmyac0Znc6mJ0awXtXdliO8RhnD22q4YwVn8J7Lp6PCXYfpAVTJ5GxxWpzZJuqNaVW2ZzZ2ITD6iyZuNZ/AA1eJwWFw0Ql0dtj+12KXCE6LTGtTURMNrvmtdLY8xi7Hn1cmgkSVhNDCXz5X1aiszNnCVIWdR8Zd/WPXOwZj2P5cgd3rYqiHc/rbr4g8ZB/lrRVfjeeSy4xkwFWvD4XVTnyI6l+Rs7BzMXzMVIxtlKRtoslHsaopHhhszKykw61LfajPJzaSAWI9XSzheJFgEhoAtYwnkPbKRES8qwaGD5Luc3WD0FqHqeB2b5lYsH09rwVx6GvtwW1qixIiNaMi/knxMyN3zdqUbcyFy1rbL0rwhRMtejUETvt+MwrE4WfnrX8+PHfzJmlaEEmIKFYMsAx7QofvvIs/OLno2hLOra+FTiusC8iBpVCXeJfUbqE9MR6jkgO6dt1GA5ynPvKSRAUY86VzkcL3FiO+ko39Vqp4SSzOLckmw4JfsbSlKw8ktk86+DXYd5bj6Pb1mmxgOFBd6atwpyLd501cf+rUnesfN+KhLy1iB3Opace5+sQUwnDMNnwpfYLSRgetjCLuuaWB/DQ2o0469Up6nGDcRYeqmtt2xaRpQ/myZJaSkUktw5V3C6OVlIGCviElT/mTDzMOZLAlHxaLyApUWiTDt+geSk8MTkX7zg3jY+d68EraqsckrPEKEndfWk/p+zNX/S91EsBPvT7I09t+FZP3yve09USONR5uqAmQTn43X7g69/7NW7/t0exoC+LHibt8WZzzxbygW+lJWq/6qgJIK5v00vPJhG8guCpp7Sk5jxDhyzMODXxzCHA4kENnjNMKSu4aaxaPo6LTnKQM/QYEpbIeZq6voUs5anJO06fd8ylLwnoMICdyy67LHvDV741Ua35piPvKOki+mwSZ5nA1k0c+8dq+O5dG/D44wPYtrfIaqrI2G0gQU1MkeJjjDmPE5JP+qh1XwEq5WLo5m06CTfD6ipPYC2oJ3PcmMFRDAKmqW67odyEODNRw2UzC5jVleXCxm160ELLpmn9TC5u7qkZdetVl+d/vmZNES+jp2VBb9i0/cvxIHd1vpeMpaU5HlpWFELJJBmfnjTXSFpVjcliHQOjJWzaM4mdg5MYmiTJFAOMTjakHmC/jbm2uC83lWL145GpM3RhamyChJthltTaqtCZUZhJML2eT66gxrIJnlRRCZmhBHWy9m3j+Q4l8SHKQ2HkwE0X9vWtwmEa8kcEWFZsuFLduHnH+MIl3TnPYxIwSh0Mg+D3tbkVUseCly62YjIcd2JRK6f5IGnn2AZ72GzcSW+a3uKHLqJ2r7ZtH6Eg212mnRqIihG5QZz3ZL2CHubaOeYiFHl2PhtBwnP3JJLxBQfn+nIBy7Ba9uzg6H/9ZOPuk4bHRsz7l5/szEhnWBfUm/2qqGoRnYx6V0250k4Uw7bToW1HMrDFgxO9StHK9sLC5huLwLZ4XDuzqBnLRSRZplgdtJCYZmRdtHcmJJU1gZbXq2ZbPBE/FlP09uUCPgT6wae2/W1y/uwvDW3dw2SnihV9xzqxVA37mdMysigRjm2p1iURCUzE1JLm2QpKW60VApO2kGH+XReCE0b3vKjf5UTZlLbvZWh13kexVaRiPo6ZlcbCZIyvkAOTcT1nX/++z/bN6bsOkfz4RwLiaN8PN4tThD9e9+j1K15/ykfbfOQRDzGwoYEJ6mB/dZDtqEHMacmgk7luhjKWIHtLjItWs6xmhlbHECWlWKqxxKOkSatWqiB2UTQlrioszWKhMSvHJLZu2zjVXf1Ug3acP6OzsWXr5u9cd+11V61Zs6benNcRvTn8UwA/H7h90AXvfnf3yvMuOnvBkqUX6QUzlqS8bM9xnHp1ogzix04hN0fqf74FlAuTbJ4LYzOGyzw2ydx5dGQMhVIJY/SAOqujGWefgTZpz6ZRV9XauN49smn3M8/+pLTz8R/efN11O/H7N//h0U78f+I/tbxI09uoM898QyLV1dXitc1KFZl6LTl+fjpMtsRr5XIq0GHSDWPa1EMVVoxJ6oqfcbO1Lds3ljKzZpb3bNpYDGZnqk/edtsRuen0mB7TY3pMj+kxPabH9Pi/MP4bmKmJQPnWQYkAAAAASUVORK5CYII=)
|
|
358
|
-
`,rq=`
|
|
359
|
-
url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPAAAACaCAMAAACg5DWcAAAC/VBMVEUAAADF3v70+P/z+P/+///x9//3+v/3+//u9P/v9v/3+f/l8P/r8//r8//s9P/i7v/k7//0+f/+/v/h7f/f7f/d6//Y6P/b6v/c6v+72v7Z6f/////8///o8v+/3f/w9f+32P3q8//X5//n8f/W5//e7P/k7//V5v/S5f/U5f/n8P/Q4//R5P/P4v/m7//d6//N4f/o8f++1P7N4f/J3//L4P/I3v+uyf/H3v/F2v/G3f/F3P/D3P+1zf+u0v9xm/xllvXD2//y+v+22P+71v90oP3C2//A2f+/2f/J4v++2P/09f/O4f7z+P+01f7U5f/o8v/S5f5rlfbO4P9vlvs/dftilPq91/95o/yix/6ozP5KhPtDd/s2bvtEgPpxmPxvmvlwmvp6pf241P+v0P682f54o/2x1P7M4/5ynPZ9pv2RuP2bwf2t1P6e0P7K4f5Ggvt/qP2r0PxtmfqeyPy+1/6ew/9vl/uBqv3E3v6ErP6Yvfza6f+Uv/200f+Ms/95qvxWivpllvxlm/yUuv2eyv7A3f+t0/y51P+ItP2tzv9hlPtxnvxPifu50P57q/ttm/xTivxck/yf0P9wo/x3qfxonPtdk/uIr/3L3/+HtvyMuf9Fgfpqm/1xoPxakfyzzP+Ls/6n0Pu/3P+xzf+61f+CrP3I3P6PvfxTjvxckfxNh/tXj/yl1v9jmfyGr/601f6x1vt2ovu71f7F3v90nPrB2/5Nh/u71P/s9Pyn0/10p/vA3/+Ou/z5+/y31P6px/yArv641/7a5/+au/ejwf3A2f+r4v7F3P+Mz/qr2v6NsPq1zv/F2/7R5f7v9fqDrPqq1f++2P/K4v/T5f+92P/Q4PTn8fpQhvxlkf2PuvjA2f+l1f+Vufrf7PiYwPudu//d6P////9qmvxwnv1div1nmPxZj/xSifxtnP1dkf1Ug/xLffwxa/pklv0XV/lYh/wQUvpXjPxQgfw7cfsjYPtik/xHefwdXPlfk/wtZ/snZPpOhv0KTfiCqP8BpNwVAAAA4nRSTlMAWSUpBi0ZFjk1HllFQT1hXSEJZWlxgXl1WX0OEk1ZMllJhVGJbVWNlZFVnJigUW2kSp+osKy0s7iWvMDEqllWBsgxWuL+zNDUWdgRjg1eh06HC44j/v7c+HJp/f7+/SkQGPDoZF37VU0d6aGBfXxU8d9fFGEaeTHWXcyLfGvdsZz586eWVlBDxH/t6ObVp4r17snFuKuS1r+TknTk18e2sKmSStHPw5qH/fXk4cu/uIR01q1wRQzGu7uqgHli/e/sdGUw+r6zsao16dW3oXfx7pqLZjwr+r6pa0o03snIud4hjhNXlwAADUhJREFUeNrs2edPU1EYBvDyT5jUD4RvmqiJceG2puJMSDSljjJVpIhYB4gjVkGBWlCrdW8pqKgoyHCh4sa994yohWqpIiCIGN/3nHPvue4W5y0+jo+SX55zz3vOUfE/vznRZ8IVKpVK0Vxy+vTVbncVw5qN+HSs3mBoeWZY+LDmIT7jrx80Y8ag4qkRU5uH2OozCMAzrh2KiG4W4lEZ+kGDfGbM8ClO0EQ0g1UdbgUvBDoeqdFEeD84I9aAXh8AFxeGef+ijmYF+6B4YlhYRLiXg08fMyCXVBxZ0CdM4+UV2w7oSb8QAPsWJ4RFe/e+ZTVQLyYyMvLabI13Vzwyw8C8g3x8IyHFhV9W7EX+8By6oGkQTEZTuEqkFlrPLVaovOZecSXPAFwWX6w4sKCPdDTlfXj27Fm6ItxL7hVncCRxMIghsZLRlPohEcAvDqqmeoNYpTgdSQrmYGVkYGDBIXHfioZ+MWkq7ziPJB/QC15ecaA6lo0mleoE4b569apQ4w1iVU4K9fKCScXHZpN9S6V4rGXgFxunarzgBDYx1yD1UrA6MDAwF4/U4Yo5z6kXwImaBPmP53irHqEcjGJoeOzYURM0mmjF0YBEoeAXb+54wSH7QJ5ByvWBeiFqAI/M6KMJL/wg9gvglRH4XSvkHHjX+XSDxvjBih47auSEmOiwD88crF8Ev0lIkPtV2ar8bD0zMHpnxRy9zPpl4JcrNDJf01Ou6PEAzftFsFqJ3mkT5sc80Apg0u+bl0siEmQ9mYbl6KX9pqbaUlMilWRBT4OC5+xOf8W9mNA+8l7T8K7Dtyvf1FuHn1y6mBpJPmD0rpp5Tku9rOCXbzdGh0XLd01r+EjyhX4vPcG0iCILetb8zbtnTp88+sUrvqABPEnWoxjedbg3pcUTksOp1BszZ8v0yeMv11IvchEcfCdMvqetu3CIlhS8/wlNwVjcsGBBg3f0iBEvWL/E+zZ4IYziqTIdxVYDX9AScN4o6p1JvOPK3gCYeQEcnCDbNZ2XoZeOXw5mG9b08ePBGzCOf8AIDpLtKA7P4V6ltOFY3LBW4YY1GrwBARUv0cv6DQ5aF5EgzzUN7zoCWAlg3nAu26DHgxfAT8e9Ai4EvAiulukoDrNKF7QUnIEbtOgFccBbScFB1bflOYqtgQbeL/7FwXzDQu7TpwH2twCmXgAHy3IUw7sOX9B4guZgsmEx71NMWUAwKzgIE3InQX6jGN51mFe8EorgR7vRO1rotwKiDab9YsHVIXtleCuGdx3GZRd+P2XqLQFMN6wRgresouwpHLHYggZwiPxGcYRVz/slYLVaBD8gXt5vGeR59VvaL4KdK2T30sPedejni/3ClT9ZAJ9j/TIwcp8/1QWJ3hDnugiZ/Y/5mUd6oV72AcMjZfJDAcw3aOSi93llWbXgBbCzUGajOEdJvT7SNywRfJkPJNFbWVYOYvQi+N1tjay2rbgremm/fvTN7hAHUy8DAxdSW1Etep3OEFmN4iJrCnIxyAWvmlz589l92AJeCHIrKki/Wm1trdbupB8wpkFWozgj9lOwmj3pLKYvHiUI5hs0gsFb6ygLAi71vmuQ0yiOt9rYAGYLGrxjyRPH8pvQ74kkcT0LC1pbWVtbX+/QvmPgdxAZjWJ81yFWseApY9mVf8Oe9DQLn8C8X229w+GoDHWCl4Lr5DOK4V1HGMB8QU8TrvzSDRrB7ANGr6OqEiqm/TbUyGcU5/gZ+PxVix9wDL/yC/sz9SK4HsB2u92he8e8ELmM4pHwrgNeoV8/5mVXfu4VJzD2C2A7pKoe1jPz1t3WyOFWHB9FRpKS1qsUBhJ68cqfZBmnLZOesCrBy/p9Zq+qyi6voeCahhpnxoTkM/9wxfG2Y1dMxiPmPANwGZh62YaF3puHYZd2APhr/QK4vD4EvQCuqXGdMJvNRtOiPNsNxT+WG365+cYxY47ALzM83FEwtEs2LOhXeJNNo3P4RKU4gHnBkGwAl2fXoBfBdYlmyJEj8A8b83P9/hF1PFgHj+ExBxqE/yEUT1jiBn2CnbQS6YKmXC16EVyVDd5ye1ANchFcU1JiNo/hyc+1xSv+ZuKPXTX1+zTmA3pfKZj/JxJZ0E9oxpVV8H6ZtwpSDnlvF8GvL5tLANxPGlOHqL9SNWKzhvf7ImdT+AsHgumJg71RWo4wsEVYz5V44GD9Mu/78tA6sqDr6lzBxhKjsZ8Yjk75s00X3Ss2DecZTP/CmDNSqFetVlIwKRgmMH2Tpd5L5RXCABa8VRjifa+zg5eCXSUANrJ/Hv/wmK7eU/yZFEV2yBr8jRjv2+gBGsXEy75g9ghdeYJ8wlo+kGBB834ZWKdzgRfBry1GyOCB3/hx3X570agd+J2cjTUI3y94pWBsGA6VSSOO3CxJfE4Kxn5rHZ96kftel+0ELRbsagBv1uDv/MTfuriLfDsM+G6MOXrhPIlB8BRhj4aKgTzakrQ9yWKxsAksWdCUC2BIaLaLgRsfZ2ZmZX3/p/4mc9G9bv2/n6z+Z9WkXj+1FMxOWSCenE5iwSQlJWkxjnq7OJA4WFftAi6Cl2RlZkF+8KOv2n41915B974/zH3/FHrgENLbD8G4S4N4y8w9GGJOS0+i2Q4Bb6K4YSE4NBQqpuDXrkyouO+Pc6r4V9Z8vVtPd2JOEe6DArh37yk4h7etidk8B8hbNmzYAOb1kPQ0EhBDEkkQjFySoNd1BNw4OTPT1NOtdPtFNRfN6NLDrZyFkcS56IXQiretAfLm5ct3L1u2bANmPUnaSqJegkGyLlEniN/XIff168YgU6bJ1MO9lBp+vub4a526uxcTjCQAqyX1CmIkg3nN3Llzl0OWQah6JWYnZgnJpEmTdJNCaRoBjOJMBHd3Nz+5suMLurqds3kGvp7Ry8Agng3kBQsWABrVEKbetWvX0qVLRfSOJTt2TCIBtK4BtAhON5n27evqfgrif4Lbxf2YcsgXzLlcHBc3avbskWvXrl2AWQyZS9Xz5jE0qhcuXLgDs46Jyxtpww37AHyqiwdpIrnoWidPcvaY0le6Qasl5DjMbMjaz9XzMBsZeiEEwOsoudzZSCt+sA/AnTxKE8hFhnadPcmpzBQ1/4B7wyj+tGRm5mqKXrFiBUNv3AjkvWhmZF0ogDF79p0/dapTZ4/SzuDpjX51R89SarSx4yQjS5OMf8WxHBLQRxccPHgQ0RBihuzdi2YU67IpuNF17vz5U6WlnTt6ltXXPeAOudje4+QUp/hFKaP8or6W5KhkCPyFiUuOOwQB+FHIQcwKhr4tmGFM1TeSuJznz5/PLy1t73GuDXHXa2vdzuO0b3cgNzc39rNMhN9fzwQYVJA1GD6t8FuGLTtte3Z20rn160LqXHVB/v7+m/JL27fzPK1tbtbbpim50Cb2bmFhn5/O0W0xJzGb/Ddtyvc/eTIfvRcutGvTlFx0o+Tjrdo2KVu3Xli0qNcm/1+ZTTSLFl3Y2qZtkzL0h1+yoXVTA+IOQP5lWSSmQ4etW1s3NfofLOeP7JJNbhpBEIVLgME/SRwgQBQHoRAwCgsQ2XmbLYwwylnY+SJzAm6QC3AFX8A3Sb/urn6DYWIhUBY03/RU16t+VQ2CH56BJixgIeSRrlY/jw++7SpNefW+/OtvvWwNXtMbvAF9szRNH45J+pCaZZjN9v9UpJX7jV+avQOY93qz2W8wM2BHaiVebgjuTFP2eQ+eDJh9AM2l7GTdPZRFd74A88XcsED0ryuignOU6MFSA4Qauibagd2DWe/8vs0TZi1bFL4YnhCw5cCj/FPmCG92MHvSQF4rjrPmXCucm2x942WjddI0KrJBUv984tQTyXLbOHluSkKe++Nxf4yAx+4ACqKPDdrVLHoOuwtwee0c3qa5bjTb+QG9QKu200qvtJHBz6CwNm4caHiWwMunKCiLclOPgvCnXt9Gwlosfz7Ggv+Jr26ioSiG0uReGbowHA6RYoXU7Faqz7q0zQvtgMQKblUQBCJ08/Q+TMLSE14O2AEjAqS6obF4v3pH+ImvR98NI/O44BNECF8EasSZi1jWAZzKjnGn6kce3LwCki16ApymcqZsAz8jJ3uN4BbQGVURuWy32494sSwUm4VHCuSU2QY8WdDHGv3ZWbyS0ODsGtjG851tmRpdlyK1b4bJZOJfBFSw+TjRDLk71zIW8Jpn2NgFE6L62cRR4VpfpV+PkGliHrqgEOkIx2z300tSeRcVZSm8j4qCXHyIiqJcXEZFR67ioiOdTueXf5C6yGDqrAGkqPtdO1w/NKLXnKjmDkHON4BOlnWmOrKXwGuDdnIsLYgbN8lFZEgxMqRaOEmKOfVrqVS3KVQJ2ct4+IDDZzLlXpbpdVRMpVaOippIJSpEJPlqmCJgdwnzKR4Eu2hFibUcaGFl+wX0EUhmvJVlSHa7nGPpY+udiJTuLAmCQpVQbUMDIjVT/yZBU9JGLwsbBgOKic13TWEOp2ashQtKYqgFkloOPP8PJEfwJjlCQCke5MyZM3/bg0MCAAAAAEH/X3vCCAAAAAAAAAAAALMAtVxBZCV0s74AAAAASUVORK5CYII=)`,aq="url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAtAAAABoBAMAAAAqf9qeAAAAD1BMVEXx/+by/+ry/+7z//Hz//QpjUuZAAAIvUlEQVR42uSaW5KjMAxFfXcgZQfADpjeQWf/a5oqLDmPwXLhAH2ZPh+dfBrVaeVaKN0X/lQZ1xm0SWJHm9zGderluteoFno2xgq3jK6AdxIR8kCRWSmwM64zGxsK3W/0kAmMlkIiAgWtM2TOMHoyqkZrDSihyE9Gv8ut/2IPx240rmW0kBudWa3zRXq0oTv26K8DjM4EPfrhMZXRBfxE6vje02g3hdJoPLiI0c3UIZw9Whxtp45xq9FfZ6YOyvI6QCrU6+0PN1bw6tAZzVTzd6NlV6PP7NHK3KPxIDVbtN52N/p7q9HjltRBZXRBDWiNY412fonRGhk9Mhg9GFfv0UHq4DBaq4CvumupIxre6cJFjFbOS/gORk8UPVoUBmPnQMGN7ujR03R+6ggH0g6T0VK+NEOHnmr0vMFoh9do8Bo9/689Wts3w/EMo2dne+ogrK7zfKpoeGefDEYPwzWHHVHo+Nzoe1DozGajh0sOpIGEQqtHsxh9zWFHOQqaqYPdaAiz0Q/skD1Gz5meQv+WHi0pHTPq6C90y2it47Ikh0ZpAHiRWxG8YOlY6+gx2qgavSFIE70Hf0sd+HmjJ2N76lBYjcVhMXrx+eViGI2jOYwOhx32AMkAT+wovxeB0Q6H0eGqEq/RCY4bjWDUwWF00KNdF4PKaGvTAEvq6F/sUHGj2VIHFvI3bY46LmC0gjZIJ5HjjP6KCn3AYofXWGGwKI2n2GFH7Ni8m7w2HUZ3vGIZgtThTToZNEY//rsUGhFPSfcyOn7F4kSLHaqMG9JA/iNSTvix0Z8X2pnj7bvYaMnQKJ0PAwDSbtEnGT07QewIeDaZRenngYCdMBh10Bk9rAkNM9rgCdIpyavR4Dc6U2kcT7cvsOwbYGFpIFHoaPdoi9EHGd0/7KBJ0iXTe8+QfVPH/WSjFa9Gg+NuCOSPFIcOHVr3lT6jj7waImWDyIwGUqRye6bUZfQRww6FCbM4xBKkUXp0kiB0qJnTYfT9bKMdmENEd0NLHVcyOp52mC+LQhyXQzgpDB3FnxuL0W5yaLR3RordDs/0CRqHjvi+0mt0e9jRvVBqnxx3QzvCx0ZPXpogdASF3vVq6ECX5swykhYDbrSiZ6bkNe4o9P7DDlHbmsi9keAtC4xliwbt0KEji9F/mzvDJKdhGIxaN5B7gyY3oHsD9v5nYvpZsgkzlliliiPKFn7FEa/ys+yU7X+J5pusDdv1lehpdKDvQ7RrHfDpco+WNEnIaoURRomeEq25CSc64TEWqtRovscuizp90RRHpANbs4Z0eImOi/QsyUo0lTswrQMA0Tq+kEYr0YFER0W6h0E0+LmFSXMPUqKNnaw7ES35tYnG+w12WYiG/5BNtNMk1dx8nmhjNrQ6pfjRNo7ucLhjTBWinjOkPelAfJJoXzvMr2Tj2om+gUlDfiSKnjyxSvRz+zHRX06i4yLddzGtbum7Rt9hl2X0EGX57YRL9OlEnycaoURXKjc43KEjGETX2KGObZfcxBMd0I4HwiaairK8FGnw3MIm2rW700QHtMP2DiWaynKTVp4xAh2e+dDsPNF3I5qVaC58B5NuQwDQp4j+hTCkI4Ho7WkXaRB9B5MWnjXqNPzT/rsSHUh0XKT76OwaDZ7WqrRcW6TD14653bUIER0XaXsJTnjdwaQPPHP9ANH7nkJ0UDsIRFcBeSnSOkUwV1KiyTrsn0C0L9KvoHaAaNzi2pP/JFHwspv++oefE/3lJPq0diCmRIvgrTVpXHWArDNihOiXEh1JdFykzSJNevQfDxquQ5pItAOj4EocL9GbfthfOUTHtIPqIBqxCmnugTQTGngx6ZBqejHRm0O0zIS1rDRp0DzAZqylyADalI450d9OotO0Q2uHzIcLkeZ+8ULA+f2LalA6EK9gouMi7Zzt0J0WxJpzpXQMFDQ+IR2I/WKiN0s7qHfX5WHwJedKAXRv4FVuMsRR6cgl+rXFWtJ6gKJSWYY0HYKbCRnbso50TOPLS3RUO/xNluZ2LeOjQi9BWi8PlAk/AtJhPG9vJFoTfUY7fKK1yd6l42qkiQ7WAaLZ210xSnQi0b52IObFo8+FgvTFROOKEhXGWcPN6F3jXKI/rR3UiK4C9opnDuWKjWrdlmen0xEi+ttLdKJ2KNHUpsNSFpwrHRfEpIwB4WdYoxGBRGdqRzPoA9FUrmQaQPdCLVMhuA5KRxbRvnY8+yDnfdL2ajW6OFU6CWj8Fn+eO4fczBaRDj/Rad0OnQfbuaXCdPVZaQDdC7RWaFQyWzpcoiOJTtUOXR2ihpRy/QEP8KxvVTJMU+3wpCONaF87tHY8LaLRMSvA60rzoOMVtZk40bsBy3wuPEN0qnYo0XhJXOnShwVpFaINnrOkw0+0T7RzFp1Zya7ljZeSlh4DaNWO8VVPU4sOlOhQouPaMUOaDyfSiwJtVOksoIvsYEKkp0TjXlzpyEi0rx0aBtHd8ACYUaVzgMYVWf/VrUZHReU4Kx1+on+Hi7RxXElaDCC61WbDpVOAhnaQToKE14RpLFcSpAOJPqkdGOHcpIn6zQEtoy+dCTSBaM+i3/JkzIVriUbdcB6Ea9ZR/2p2BPrScaBZzz1Uyzr0PtztlT2W6LPdjqeQMENai+M4V2qsD3OAlq/IVMecAC3JTpAOJPqsdqB2WERLcex84d1AOgVolA0xDsui4RyedOQkepcwZ8M6N2mqUhzxF6HZQDoDaCoMnDGMWYkG1OZyJZ9ov0jPTVpb/7hJzW4+0vxvhZYJ2WpFt0/mFt5e8RN9vtvh/D+/uiOKrnQ60qD4ADTyLN3xGdCN6PrwiU5J9IjNN+nHjGii/tEFawbSKUCzzBQ20bAOY7mSS7S/Ntzw/LSFNBbgoIrR7UhmGhQfKrS4TzMOq3WHEp0gHUj0+SIttj/1DhDNyDSI7kgnMS0ky5sSDcWc1Q5F5RFYF4YSHWzgYaBTosf5IEKNTkVaLzCAFtcw0vwYkSMd338AsPwZPYZjSIIAAAAASUVORK5CYII=)",Xa="transition-all duration-200 ease-out",oq=()=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:C.jsx("path",{d:"M13 2C13.5304 2 14.039 2.21086 14.4141 2.58594C14.7891 2.96101 15 3.46957 15 4V12C15 12.5304 14.7891 13.039 14.4141 13.4141C14.039 13.7891 13.5304 14 13 14H3C2.46957 14 1.96101 13.7891 1.58594 13.4141C1.21086 13.039 1 12.5304 1 12V4C1 3.46957 1.21086 2.96101 1.58594 2.58594C1.96101 2.21086 2.46957 2 3 2H13ZM3 3C2.7551 3.00003 2.51896 3.09021 2.33594 3.25293C2.15294 3.41565 2.03553 3.63963 2.00684 3.88281L2 4V12C2.00003 12.2449 2.09021 12.481 2.25293 12.6641C2.41565 12.8471 2.63963 12.9645 2.88281 12.9932L3 13H11V3H3Z"})}),iq=()=>C.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:[C.jsx("path",{d:"M13 2C13.5304 2 14.039 2.21086 14.4141 2.58594C14.7891 2.96101 15 3.46957 15 4V12C15 12.5304 14.7891 13.039 14.4141 13.4141C14.039 13.7891 13.5304 14 13 14H3C2.46957 14 1.96101 13.7891 1.58594 13.4141C1.21086 13.039 1 12.5304 1 12V4C1 3.46957 1.21086 2.96101 1.58594 2.58594C1.96101 2.21086 2.46957 2 3 2H13ZM3 3C2.7551 3.00003 2.51896 3.09021 2.33594 3.25293C2.15294 3.41565 2.03553 3.63963 2.00684 3.88281L2 4V12C2.00003 12.2449 2.09021 12.481 2.25293 12.6641C2.41565 12.8471 2.63963 12.9645 2.88281 12.9932L3 13H13C13.2449 13 13.481 12.9098 13.6641 12.7471C13.8471 12.5843 13.9645 12.3604 13.9932 12.1172L14 12V4C14 3.7551 13.9098 3.51896 13.7471 3.33594C13.5843 3.15294 13.3604 3.03553 13.1172 3.00684L13 3H3ZM12.5 4C12.7761 4 13 4.22386 13 4.5V11.5C13 11.7761 12.7761 12 12.5 12H10.5C10.2239 12 10 11.7761 10 11.5V4.5C10 4.22386 10.2239 4 10.5 4H12.5Z"}),C.jsx("path",{d:"M13 2C13.5304 2 14.039 2.21086 14.4141 2.58594C14.7891 2.96101 15 3.46957 15 4V12C15 12.5304 14.7891 13.039 14.4141 13.4141C14.039 13.7891 13.5304 14 13 14H3C2.46957 14 1.96101 13.7891 1.58594 13.4141C1.21086 13.039 1 12.5304 1 12V4C1 3.46957 1.21086 2.96101 1.58594 2.58594C1.96101 2.21086 2.46957 2 3 2H13ZM3 3C2.7551 3.00003 2.51896 3.09021 2.33594 3.25293C2.15294 3.41565 2.03553 3.63963 2.00684 3.88281L2 4V12C2.00003 12.2449 2.09021 12.481 2.25293 12.6641C2.41565 12.8471 2.63963 12.9645 2.88281 12.9932L3 13H13C13.2449 13 13.481 12.9098 13.6641 12.7471C13.8471 12.5843 13.9645 12.3604 13.9932 12.1172L14 12V4C14 3.7551 13.9098 3.51896 13.7471 3.33594C13.5843 3.15294 13.3604 3.03553 13.1172 3.00684L13 3H3ZM12.5 4C12.7761 4 13 4.22386 13 4.5V11.5C13 11.7761 12.7761 12 12.5 12H10.5C10.2239 12 10 11.7761 10 11.5V4.5C10 4.22386 10.2239 4 10.5 4H12.5Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M13 2C13.5304 2 14.039 2.21086 14.4141 2.58594C14.7891 2.96101 15 3.46957 15 4V12C15 12.5304 14.7891 13.039 14.4141 13.4141C14.039 13.7891 13.5304 14 13 14H3C2.46957 14 1.96101 13.7891 1.58594 13.4141C1.21086 13.039 1 12.5304 1 12V4C1 3.46957 1.21086 2.96101 1.58594 2.58594C1.96101 2.21086 2.46957 2 3 2H13ZM3 3C2.7551 3.00003 2.51896 3.09021 2.33594 3.25293C2.15294 3.41565 2.03553 3.63963 2.00684 3.88281L2 4V12C2.00003 12.2449 2.09021 12.481 2.25293 12.6641C2.41565 12.8471 2.63963 12.9645 2.88281 12.9932L3 13H13C13.2449 13 13.481 12.9098 13.6641 12.7471C13.8471 12.5843 13.9645 12.3604 13.9932 12.1172L14 12V4C14 3.7551 13.9098 3.51896 13.7471 3.33594C13.5843 3.15294 13.3604 3.03553 13.1172 3.00684L13 3H3ZM12.5 4C12.7761 4 13 4.22386 13 4.5V11.5C13 11.7761 12.7761 12 12.5 12H10.5C10.2239 12 10 11.7761 10 11.5V4.5C10 4.22386 10.2239 4 10.5 4H12.5Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M13 2C13.5304 2 14.039 2.21086 14.4141 2.58594C14.7891 2.96101 15 3.46957 15 4V12C15 12.5304 14.7891 13.039 14.4141 13.4141C14.039 13.7891 13.5304 14 13 14H3C2.46957 14 1.96101 13.7891 1.58594 13.4141C1.21086 13.039 1 12.5304 1 12V4C1 3.46957 1.21086 2.96101 1.58594 2.58594C1.96101 2.21086 2.46957 2 3 2H13ZM3 3C2.7551 3.00003 2.51896 3.09021 2.33594 3.25293C2.15294 3.41565 2.03553 3.63963 2.00684 3.88281L2 4V12C2.00003 12.2449 2.09021 12.481 2.25293 12.6641C2.41565 12.8471 2.63963 12.9645 2.88281 12.9932L3 13H13C13.2449 13 13.481 12.9098 13.6641 12.7471C13.8471 12.5843 13.9645 12.3604 13.9932 12.1172L14 12V4C14 3.7551 13.9098 3.51896 13.7471 3.33594C13.5843 3.15294 13.3604 3.03553 13.1172 3.00684L13 3H3ZM12.5 4C12.7761 4 13 4.22386 13 4.5V11.5C13 11.7761 12.7761 12 12.5 12H10.5C10.2239 12 10 11.7761 10 11.5V4.5C10 4.22386 10.2239 4 10.5 4H12.5Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M13 2C13.5304 2 14.039 2.21086 14.4141 2.58594C14.7891 2.96101 15 3.46957 15 4V12C15 12.5304 14.7891 13.039 14.4141 13.4141C14.039 13.7891 13.5304 14 13 14H3C2.46957 14 1.96101 13.7891 1.58594 13.4141C1.21086 13.039 1 12.5304 1 12V4C1 3.46957 1.21086 2.96101 1.58594 2.58594C1.96101 2.21086 2.46957 2 3 2H13ZM3 3C2.7551 3.00003 2.51896 3.09021 2.33594 3.25293C2.15294 3.41565 2.03553 3.63963 2.00684 3.88281L2 4V12C2.00003 12.2449 2.09021 12.481 2.25293 12.6641C2.41565 12.8471 2.63963 12.9645 2.88281 12.9932L3 13H13C13.2449 13 13.481 12.9098 13.6641 12.7471C13.8471 12.5843 13.9645 12.3604 13.9932 12.1172L14 12V4C14 3.7551 13.9098 3.51896 13.7471 3.33594C13.5843 3.15294 13.3604 3.03553 13.1172 3.00684L13 3H3ZM12.5 4C12.7761 4 13 4.22386 13 4.5V11.5C13 11.7761 12.7761 12 12.5 12H10.5C10.2239 12 10 11.7761 10 11.5V4.5C10 4.22386 10.2239 4 10.5 4H12.5Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M13 2C13.5304 2 14.039 2.21086 14.4141 2.58594C14.7891 2.96101 15 3.46957 15 4V12C15 12.5304 14.7891 13.039 14.4141 13.4141C14.039 13.7891 13.5304 14 13 14H3C2.46957 14 1.96101 13.7891 1.58594 13.4141C1.21086 13.039 1 12.5304 1 12V4C1 3.46957 1.21086 2.96101 1.58594 2.58594C1.96101 2.21086 2.46957 2 3 2H13ZM3 3C2.7551 3.00003 2.51896 3.09021 2.33594 3.25293C2.15294 3.41565 2.03553 3.63963 2.00684 3.88281L2 4V12C2.00003 12.2449 2.09021 12.481 2.25293 12.6641C2.41565 12.8471 2.63963 12.9645 2.88281 12.9932L3 13H13C13.2449 13 13.481 12.9098 13.6641 12.7471C13.8471 12.5843 13.9645 12.3604 13.9932 12.1172L14 12V4C14 3.7551 13.9098 3.51896 13.7471 3.33594C13.5843 3.15294 13.3604 3.03553 13.1172 3.00684L13 3H3ZM12.5 4C12.7761 4 13 4.22386 13 4.5V11.5C13 11.7761 12.7761 12 12.5 12H10.5C10.2239 12 10 11.7761 10 11.5V4.5C10 4.22386 10.2239 4 10.5 4H12.5Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M13 2C13.5304 2 14.039 2.21086 14.4141 2.58594C14.7891 2.96101 15 3.46957 15 4V12C15 12.5304 14.7891 13.039 14.4141 13.4141C14.039 13.7891 13.5304 14 13 14H3C2.46957 14 1.96101 13.7891 1.58594 13.4141C1.21086 13.039 1 12.5304 1 12V4C1 3.46957 1.21086 2.96101 1.58594 2.58594C1.96101 2.21086 2.46957 2 3 2H13ZM3 3C2.7551 3.00003 2.51896 3.09021 2.33594 3.25293C2.15294 3.41565 2.03553 3.63963 2.00684 3.88281L2 4V12C2.00003 12.2449 2.09021 12.481 2.25293 12.6641C2.41565 12.8471 2.63963 12.9645 2.88281 12.9932L3 13H13C13.2449 13 13.481 12.9098 13.6641 12.7471C13.8471 12.5843 13.9645 12.3604 13.9932 12.1172L14 12V4C14 3.7551 13.9098 3.51896 13.7471 3.33594C13.5843 3.15294 13.3604 3.03553 13.1172 3.00684L13 3H3ZM12.5 4C12.7761 4 13 4.22386 13 4.5V11.5C13 11.7761 12.7761 12 12.5 12H10.5C10.2239 12 10 11.7761 10 11.5V4.5C10 4.22386 10.2239 4 10.5 4H12.5Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M13 2C13.5304 2 14.039 2.21086 14.4141 2.58594C14.7891 2.96101 15 3.46957 15 4V12C15 12.5304 14.7891 13.039 14.4141 13.4141C14.039 13.7891 13.5304 14 13 14H3C2.46957 14 1.96101 13.7891 1.58594 13.4141C1.21086 13.039 1 12.5304 1 12V4C1 3.46957 1.21086 2.96101 1.58594 2.58594C1.96101 2.21086 2.46957 2 3 2H13ZM3 3C2.7551 3.00003 2.51896 3.09021 2.33594 3.25293C2.15294 3.41565 2.03553 3.63963 2.00684 3.88281L2 4V12C2.00003 12.2449 2.09021 12.481 2.25293 12.6641C2.41565 12.8471 2.63963 12.9645 2.88281 12.9932L3 13H13C13.2449 13 13.481 12.9098 13.6641 12.7471C13.8471 12.5843 13.9645 12.3604 13.9932 12.1172L14 12V4C14 3.7551 13.9098 3.51896 13.7471 3.33594C13.5843 3.15294 13.3604 3.03553 13.1172 3.00684L13 3H3ZM12.5 4C12.7761 4 13 4.22386 13 4.5V11.5C13 11.7761 12.7761 12 12.5 12H10.5C10.2239 12 10 11.7761 10 11.5V4.5C10 4.22386 10.2239 4 10.5 4H12.5Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M13 2C13.5304 2 14.039 2.21086 14.4141 2.58594C14.7891 2.96101 15 3.46957 15 4V12C15 12.5304 14.7891 13.039 14.4141 13.4141C14.039 13.7891 13.5304 14 13 14H3C2.46957 14 1.96101 13.7891 1.58594 13.4141C1.21086 13.039 1 12.5304 1 12V4C1 3.46957 1.21086 2.96101 1.58594 2.58594C1.96101 2.21086 2.46957 2 3 2H13ZM3 3C2.7551 3.00003 2.51896 3.09021 2.33594 3.25293C2.15294 3.41565 2.03553 3.63963 2.00684 3.88281L2 4V12C2.00003 12.2449 2.09021 12.481 2.25293 12.6641C2.41565 12.8471 2.63963 12.9645 2.88281 12.9932L3 13H13C13.2449 13 13.481 12.9098 13.6641 12.7471C13.8471 12.5843 13.9645 12.3604 13.9932 12.1172L14 12V4C14 3.7551 13.9098 3.51896 13.7471 3.33594C13.5843 3.15294 13.3604 3.03553 13.1172 3.00684L13 3H3ZM12.5 4C12.7761 4 13 4.22386 13 4.5V11.5C13 11.7761 12.7761 12 12.5 12H10.5C10.2239 12 10 11.7761 10 11.5V4.5C10 4.22386 10.2239 4 10.5 4H12.5Z","fill-opacity":"0.2"})]}),sq=()=>C.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:[C.jsx("path",{d:"M9.00669 7.99894L14.2992 2.7038C14.4278 2.57406 14.5 2.39872 14.5 2.21597C14.5 2.03322 14.4278 1.85788 14.2992 1.72814L14.271 1.69996C14.1411 1.57218 13.9662 1.50058 13.784 1.50058C13.6018 1.50058 13.4269 1.57218 13.297 1.69996L8.00217 7.00331L2.70967 1.69996C2.57969 1.57183 2.40454 1.5 2.22207 1.5C2.0396 1.5 1.86446 1.57183 1.73448 1.69996L1.70515 1.72814C1.64021 1.79157 1.58861 1.86735 1.55338 1.95103C1.51815 2.0347 1.5 2.12458 1.5 2.21538C1.5 2.30618 1.51815 2.39606 1.55338 2.47974C1.58861 2.56341 1.64021 2.6392 1.70515 2.70263L6.99765 7.99894L1.70515 13.2964C1.57687 13.4261 1.50492 13.6012 1.50492 13.7837C1.50492 13.9661 1.57687 14.1412 1.70515 14.2709L1.73448 14.2991C1.86411 14.4274 2.03912 14.4994 2.22149 14.4994C2.40386 14.4994 2.57886 14.4274 2.70849 14.2991L8.00217 9.00396L13.2947 14.2991C13.4243 14.4278 13.5996 14.5 13.7823 14.5C13.9649 14.5 14.1402 14.4278 14.2699 14.2991L14.2992 14.2709C14.4275 14.1412 14.4994 13.9661 14.4994 13.7837C14.4994 13.6012 14.4275 13.4261 14.2992 13.2964L9.00786 7.99894H9.00669Z"}),C.jsx("path",{d:"M9.00669 7.99894L14.2992 2.7038C14.4278 2.57406 14.5 2.39872 14.5 2.21597C14.5 2.03322 14.4278 1.85788 14.2992 1.72814L14.271 1.69996C14.1411 1.57218 13.9662 1.50058 13.784 1.50058C13.6018 1.50058 13.4269 1.57218 13.297 1.69996L8.00217 7.00331L2.70967 1.69996C2.57969 1.57183 2.40454 1.5 2.22207 1.5C2.0396 1.5 1.86446 1.57183 1.73448 1.69996L1.70515 1.72814C1.64021 1.79157 1.58861 1.86735 1.55338 1.95103C1.51815 2.0347 1.5 2.12458 1.5 2.21538C1.5 2.30618 1.51815 2.39606 1.55338 2.47974C1.58861 2.56341 1.64021 2.6392 1.70515 2.70263L6.99765 7.99894L1.70515 13.2964C1.57687 13.4261 1.50492 13.6012 1.50492 13.7837C1.50492 13.9661 1.57687 14.1412 1.70515 14.2709L1.73448 14.2991C1.86411 14.4274 2.03912 14.4994 2.22149 14.4994C2.40386 14.4994 2.57886 14.4274 2.70849 14.2991L8.00217 9.00396L13.2947 14.2991C13.4243 14.4278 13.5996 14.5 13.7823 14.5C13.9649 14.5 14.1402 14.4278 14.2699 14.2991L14.2992 14.2709C14.4275 14.1412 14.4994 13.9661 14.4994 13.7837C14.4994 13.6012 14.4275 13.4261 14.2992 13.2964L9.00786 7.99894H9.00669Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M9.00669 7.99894L14.2992 2.7038C14.4278 2.57406 14.5 2.39872 14.5 2.21597C14.5 2.03322 14.4278 1.85788 14.2992 1.72814L14.271 1.69996C14.1411 1.57218 13.9662 1.50058 13.784 1.50058C13.6018 1.50058 13.4269 1.57218 13.297 1.69996L8.00217 7.00331L2.70967 1.69996C2.57969 1.57183 2.40454 1.5 2.22207 1.5C2.0396 1.5 1.86446 1.57183 1.73448 1.69996L1.70515 1.72814C1.64021 1.79157 1.58861 1.86735 1.55338 1.95103C1.51815 2.0347 1.5 2.12458 1.5 2.21538C1.5 2.30618 1.51815 2.39606 1.55338 2.47974C1.58861 2.56341 1.64021 2.6392 1.70515 2.70263L6.99765 7.99894L1.70515 13.2964C1.57687 13.4261 1.50492 13.6012 1.50492 13.7837C1.50492 13.9661 1.57687 14.1412 1.70515 14.2709L1.73448 14.2991C1.86411 14.4274 2.03912 14.4994 2.22149 14.4994C2.40386 14.4994 2.57886 14.4274 2.70849 14.2991L8.00217 9.00396L13.2947 14.2991C13.4243 14.4278 13.5996 14.5 13.7823 14.5C13.9649 14.5 14.1402 14.4278 14.2699 14.2991L14.2992 14.2709C14.4275 14.1412 14.4994 13.9661 14.4994 13.7837C14.4994 13.6012 14.4275 13.4261 14.2992 13.2964L9.00786 7.99894H9.00669Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M9.00669 7.99894L14.2992 2.7038C14.4278 2.57406 14.5 2.39872 14.5 2.21597C14.5 2.03322 14.4278 1.85788 14.2992 1.72814L14.271 1.69996C14.1411 1.57218 13.9662 1.50058 13.784 1.50058C13.6018 1.50058 13.4269 1.57218 13.297 1.69996L8.00217 7.00331L2.70967 1.69996C2.57969 1.57183 2.40454 1.5 2.22207 1.5C2.0396 1.5 1.86446 1.57183 1.73448 1.69996L1.70515 1.72814C1.64021 1.79157 1.58861 1.86735 1.55338 1.95103C1.51815 2.0347 1.5 2.12458 1.5 2.21538C1.5 2.30618 1.51815 2.39606 1.55338 2.47974C1.58861 2.56341 1.64021 2.6392 1.70515 2.70263L6.99765 7.99894L1.70515 13.2964C1.57687 13.4261 1.50492 13.6012 1.50492 13.7837C1.50492 13.9661 1.57687 14.1412 1.70515 14.2709L1.73448 14.2991C1.86411 14.4274 2.03912 14.4994 2.22149 14.4994C2.40386 14.4994 2.57886 14.4274 2.70849 14.2991L8.00217 9.00396L13.2947 14.2991C13.4243 14.4278 13.5996 14.5 13.7823 14.5C13.9649 14.5 14.1402 14.4278 14.2699 14.2991L14.2992 14.2709C14.4275 14.1412 14.4994 13.9661 14.4994 13.7837C14.4994 13.6012 14.4275 13.4261 14.2992 13.2964L9.00786 7.99894H9.00669Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M9.00669 7.99894L14.2992 2.7038C14.4278 2.57406 14.5 2.39872 14.5 2.21597C14.5 2.03322 14.4278 1.85788 14.2992 1.72814L14.271 1.69996C14.1411 1.57218 13.9662 1.50058 13.784 1.50058C13.6018 1.50058 13.4269 1.57218 13.297 1.69996L8.00217 7.00331L2.70967 1.69996C2.57969 1.57183 2.40454 1.5 2.22207 1.5C2.0396 1.5 1.86446 1.57183 1.73448 1.69996L1.70515 1.72814C1.64021 1.79157 1.58861 1.86735 1.55338 1.95103C1.51815 2.0347 1.5 2.12458 1.5 2.21538C1.5 2.30618 1.51815 2.39606 1.55338 2.47974C1.58861 2.56341 1.64021 2.6392 1.70515 2.70263L6.99765 7.99894L1.70515 13.2964C1.57687 13.4261 1.50492 13.6012 1.50492 13.7837C1.50492 13.9661 1.57687 14.1412 1.70515 14.2709L1.73448 14.2991C1.86411 14.4274 2.03912 14.4994 2.22149 14.4994C2.40386 14.4994 2.57886 14.4274 2.70849 14.2991L8.00217 9.00396L13.2947 14.2991C13.4243 14.4278 13.5996 14.5 13.7823 14.5C13.9649 14.5 14.1402 14.4278 14.2699 14.2991L14.2992 14.2709C14.4275 14.1412 14.4994 13.9661 14.4994 13.7837C14.4994 13.6012 14.4275 13.4261 14.2992 13.2964L9.00786 7.99894H9.00669Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M9.00669 7.99894L14.2992 2.7038C14.4278 2.57406 14.5 2.39872 14.5 2.21597C14.5 2.03322 14.4278 1.85788 14.2992 1.72814L14.271 1.69996C14.1411 1.57218 13.9662 1.50058 13.784 1.50058C13.6018 1.50058 13.4269 1.57218 13.297 1.69996L8.00217 7.00331L2.70967 1.69996C2.57969 1.57183 2.40454 1.5 2.22207 1.5C2.0396 1.5 1.86446 1.57183 1.73448 1.69996L1.70515 1.72814C1.64021 1.79157 1.58861 1.86735 1.55338 1.95103C1.51815 2.0347 1.5 2.12458 1.5 2.21538C1.5 2.30618 1.51815 2.39606 1.55338 2.47974C1.58861 2.56341 1.64021 2.6392 1.70515 2.70263L6.99765 7.99894L1.70515 13.2964C1.57687 13.4261 1.50492 13.6012 1.50492 13.7837C1.50492 13.9661 1.57687 14.1412 1.70515 14.2709L1.73448 14.2991C1.86411 14.4274 2.03912 14.4994 2.22149 14.4994C2.40386 14.4994 2.57886 14.4274 2.70849 14.2991L8.00217 9.00396L13.2947 14.2991C13.4243 14.4278 13.5996 14.5 13.7823 14.5C13.9649 14.5 14.1402 14.4278 14.2699 14.2991L14.2992 14.2709C14.4275 14.1412 14.4994 13.9661 14.4994 13.7837C14.4994 13.6012 14.4275 13.4261 14.2992 13.2964L9.00786 7.99894H9.00669Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M9.00669 7.99894L14.2992 2.7038C14.4278 2.57406 14.5 2.39872 14.5 2.21597C14.5 2.03322 14.4278 1.85788 14.2992 1.72814L14.271 1.69996C14.1411 1.57218 13.9662 1.50058 13.784 1.50058C13.6018 1.50058 13.4269 1.57218 13.297 1.69996L8.00217 7.00331L2.70967 1.69996C2.57969 1.57183 2.40454 1.5 2.22207 1.5C2.0396 1.5 1.86446 1.57183 1.73448 1.69996L1.70515 1.72814C1.64021 1.79157 1.58861 1.86735 1.55338 1.95103C1.51815 2.0347 1.5 2.12458 1.5 2.21538C1.5 2.30618 1.51815 2.39606 1.55338 2.47974C1.58861 2.56341 1.64021 2.6392 1.70515 2.70263L6.99765 7.99894L1.70515 13.2964C1.57687 13.4261 1.50492 13.6012 1.50492 13.7837C1.50492 13.9661 1.57687 14.1412 1.70515 14.2709L1.73448 14.2991C1.86411 14.4274 2.03912 14.4994 2.22149 14.4994C2.40386 14.4994 2.57886 14.4274 2.70849 14.2991L8.00217 9.00396L13.2947 14.2991C13.4243 14.4278 13.5996 14.5 13.7823 14.5C13.9649 14.5 14.1402 14.4278 14.2699 14.2991L14.2992 14.2709C14.4275 14.1412 14.4994 13.9661 14.4994 13.7837C14.4994 13.6012 14.4275 13.4261 14.2992 13.2964L9.00786 7.99894H9.00669Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M9.00669 7.99894L14.2992 2.7038C14.4278 2.57406 14.5 2.39872 14.5 2.21597C14.5 2.03322 14.4278 1.85788 14.2992 1.72814L14.271 1.69996C14.1411 1.57218 13.9662 1.50058 13.784 1.50058C13.6018 1.50058 13.4269 1.57218 13.297 1.69996L8.00217 7.00331L2.70967 1.69996C2.57969 1.57183 2.40454 1.5 2.22207 1.5C2.0396 1.5 1.86446 1.57183 1.73448 1.69996L1.70515 1.72814C1.64021 1.79157 1.58861 1.86735 1.55338 1.95103C1.51815 2.0347 1.5 2.12458 1.5 2.21538C1.5 2.30618 1.51815 2.39606 1.55338 2.47974C1.58861 2.56341 1.64021 2.6392 1.70515 2.70263L6.99765 7.99894L1.70515 13.2964C1.57687 13.4261 1.50492 13.6012 1.50492 13.7837C1.50492 13.9661 1.57687 14.1412 1.70515 14.2709L1.73448 14.2991C1.86411 14.4274 2.03912 14.4994 2.22149 14.4994C2.40386 14.4994 2.57886 14.4274 2.70849 14.2991L8.00217 9.00396L13.2947 14.2991C13.4243 14.4278 13.5996 14.5 13.7823 14.5C13.9649 14.5 14.1402 14.4278 14.2699 14.2991L14.2992 14.2709C14.4275 14.1412 14.4994 13.9661 14.4994 13.7837C14.4994 13.6012 14.4275 13.4261 14.2992 13.2964L9.00786 7.99894H9.00669Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M9.00669 7.99894L14.2992 2.7038C14.4278 2.57406 14.5 2.39872 14.5 2.21597C14.5 2.03322 14.4278 1.85788 14.2992 1.72814L14.271 1.69996C14.1411 1.57218 13.9662 1.50058 13.784 1.50058C13.6018 1.50058 13.4269 1.57218 13.297 1.69996L8.00217 7.00331L2.70967 1.69996C2.57969 1.57183 2.40454 1.5 2.22207 1.5C2.0396 1.5 1.86446 1.57183 1.73448 1.69996L1.70515 1.72814C1.64021 1.79157 1.58861 1.86735 1.55338 1.95103C1.51815 2.0347 1.5 2.12458 1.5 2.21538C1.5 2.30618 1.51815 2.39606 1.55338 2.47974C1.58861 2.56341 1.64021 2.6392 1.70515 2.70263L6.99765 7.99894L1.70515 13.2964C1.57687 13.4261 1.50492 13.6012 1.50492 13.7837C1.50492 13.9661 1.57687 14.1412 1.70515 14.2709L1.73448 14.2991C1.86411 14.4274 2.03912 14.4994 2.22149 14.4994C2.40386 14.4994 2.57886 14.4274 2.70849 14.2991L8.00217 9.00396L13.2947 14.2991C13.4243 14.4278 13.5996 14.5 13.7823 14.5C13.9649 14.5 14.1402 14.4278 14.2699 14.2991L14.2992 14.2709C14.4275 14.1412 14.4994 13.9661 14.4994 13.7837C14.4994 13.6012 14.4275 13.4261 14.2992 13.2964L9.00786 7.99894H9.00669Z","fill-opacity":"0.2"})]}),ZE=()=>C.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:[C.jsx("path",{d:"M13.334 14.3031H2.66732C1.93065 14.3031 1.33398 13.7064 1.33398 12.9697V12.6064C1.33398 10.5997 2.96065 8.96973 4.97065 8.96973H11.0307C13.0373 8.96973 14.6673 10.5964 14.6673 12.6064V12.9697C14.6673 13.7064 14.0707 14.3031 13.334 14.3031Z"}),C.jsx("path",{d:"M4.66602 4.97005C4.66602 5.85411 5.01721 6.70195 5.64233 7.32707C6.26745 7.9522 7.11529 8.30338 7.99935 8.30338C8.8834 8.30338 9.73125 7.9522 10.3564 7.32707C10.9815 6.70195 11.3327 5.85411 11.3327 4.97005C11.3327 4.53231 11.2465 4.09886 11.0789 3.69444C10.9114 3.29002 10.6659 2.92256 10.3564 2.61303C10.0468 2.3035 9.67938 2.05797 9.27496 1.89045C8.87054 1.72294 8.43709 1.63672 7.99935 1.63672C7.56161 1.63672 7.12816 1.72294 6.72374 1.89045C6.31932 2.05797 5.95185 2.3035 5.64233 2.61303C5.3328 2.92256 5.08727 3.29002 4.91975 3.69444C4.75224 4.09886 4.66602 4.53231 4.66602 4.97005Z"})]}),WE=()=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:C.jsx("path",{d:"M4.17666 2.53223H11.8185C12.3729 2.53223 12.848 2.94798 12.9074 3.50231L13.8577 12.2331C13.8973 12.5498 13.7983 12.8468 13.5805 13.0844C13.3825 13.3219 13.0856 13.4407 12.7688 13.4407H3.20658C2.88982 13.4407 2.59285 13.3021 2.39488 13.0844C2.1969 12.8468 2.09792 12.5498 2.11772 12.2331L3.08781 3.52211C3.1472 2.96778 3.62234 2.53224 4.17668 2.53224L4.17666 2.53223ZM5.26553 5.81863C5.26553 7.32326 6.49298 8.5507 7.9976 8.5507C9.50222 8.5507 10.7297 7.32326 10.7297 5.81863C10.7297 5.52167 10.4921 5.2643 10.1753 5.2643C9.87837 5.2643 9.621 5.50187 9.621 5.81863C9.621 6.72933 8.88848 7.46183 7.9778 7.46183C7.06712 7.46183 6.3346 6.72932 6.3346 5.81863C6.3346 5.62065 6.23562 5.44248 6.05744 5.34349C5.87926 5.24451 5.68128 5.24451 5.5031 5.34349C5.36451 5.44248 5.26553 5.62065 5.26553 5.81863Z"})}),qE=()=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:C.jsx("path",{d:"M10 1.81287V14.4799H2.667C2.267 14.4799 2 14.2129 2 13.8129V3.67987C2 3.34687 2.2 3.07987 2.533 3.01287L9.2 1.34687C9.533 1.27987 9.867 1.47987 10 1.81287ZM10.667 7.81287L13.6 8.94687C13.867 9.07987 14 9.27987 14 9.54687V13.8129C14 14.2129 13.733 14.4799 13.333 14.4799H10.667V7.81287ZM7.333 8.47987H4.667C4.267 8.47987 4 8.74687 4 9.14687C4 9.47987 4.267 9.74687 4.6 9.81287H7.333C7.733 9.81287 8 9.54687 8 9.14687C8 8.74687 7.733 8.47987 7.333 8.47987ZM7.333 5.14687H4.667C4.267 5.14687 4 5.41287 4 5.81287C4 6.14687 4.267 6.41287 4.6 6.47987H7.333C7.733 6.47987 8 6.21287 8 5.81287C8 5.41287 7.733 5.14687 7.333 5.14687Z"})}),lq=()=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:C.jsx("path",{d:"M3.99999 6.66646L9.46666 7.99979L3.99999 9.33313L2.89399 12.2825C2.57533 13.1331 3.46466 13.9338 4.27799 13.5278L13.5447 8.89446C14.2813 8.52579 14.2813 7.47446 13.5447 7.10513L4.27799 2.47179C3.46466 2.06513 2.57533 2.86646 2.89399 3.71779L4.00066 6.66646H3.99999Z"})}),uq=()=>C.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:[C.jsx("path",{d:"M9.99974 1C10.3726 1.00002 10.732 1.13413 11.008 1.37618C11.284 1.61824 11.4567 1.95088 11.4925 2.30924L11.4995 2.44828V4.37931H14.4991C14.6241 4.37909 14.7446 4.42404 14.8369 4.50532C14.9292 4.5866 14.9867 4.6983 14.998 4.81845C15.0092 4.93859 14.9735 5.05846 14.8979 5.15446C14.8222 5.25045 14.7121 5.31561 14.5891 5.3371L14.4991 5.34483H13.9292L12.4934 14.5887C12.4781 14.6881 12.4311 14.7804 12.3588 14.8527C12.2866 14.9251 12.1928 14.9739 12.0905 14.9923L11.9995 15H4.00053C3.89643 15.0001 3.7949 14.9687 3.71012 14.9104C3.62534 14.8521 3.56153 14.7697 3.52759 14.6746L3.50659 14.5887L2.06978 5.34483H1.50086C1.37593 5.34505 1.25544 5.3001 1.16312 5.21882C1.0708 5.13754 1.01333 5.02583 1.00205 4.90569C0.990758 4.78555 1.02646 4.66567 1.10213 4.56968C1.17779 4.47369 1.28794 4.40853 1.41087 4.38703L1.50086 4.37931H4.50046V2.44828C4.50048 2.08825 4.63936 1.74114 4.89003 1.47463C5.14069 1.20812 5.48517 1.04132 5.85628 1.00676L6.00026 1H9.99974ZM12.9184 5.34483H3.08065L4.43047 14.0345H11.5685L12.9184 5.34483ZM5.96427 5.82855C6.081 5.82046 6.19697 5.85217 6.29198 5.91815C6.38698 5.98414 6.45501 6.08022 6.4842 6.18966L6.4992 6.27655L6.99913 13.0352C7.00801 13.1554 6.97 13.2744 6.89259 13.369C6.81518 13.4635 6.70395 13.5266 6.58078 13.546C6.4576 13.5653 6.33138 13.5395 6.22692 13.4736C6.12247 13.4076 6.04732 13.3064 6.01626 13.1897L6.00026 13.1028L5.50033 6.34414C5.49098 6.2165 5.53449 6.0905 5.62129 5.99382C5.7081 5.89715 5.8311 5.8377 5.96327 5.82855H5.96427ZM10.0357 5.82855C10.1524 5.83668 10.2623 5.88402 10.3465 5.96234C10.4308 6.04067 10.4839 6.14501 10.4967 6.25724L10.4987 6.34414L9.99874 13.1028C9.99035 13.2232 9.93551 13.3363 9.84502 13.4197C9.75454 13.503 9.63499 13.5506 9.50997 13.553C9.38494 13.5555 9.26351 13.5126 9.16963 13.4328C9.07576 13.353 9.01626 13.2421 9.00287 13.1221L8.99987 13.0352L9.4998 6.27655C9.50437 6.21318 9.52184 6.15131 9.55121 6.09447C9.58058 6.03764 9.62128 5.98696 9.67098 5.94534C9.72067 5.90372 9.77838 5.87198 9.8408 5.85194C9.90322 5.8319 9.96912 5.82395 10.0347 5.82855H10.0357ZM9.99974 1.96552H6.00026C5.88325 1.96548 5.76994 2.00508 5.68005 2.07741C5.59016 2.14974 5.52939 2.25023 5.50833 2.36138L5.50033 2.44828V4.37931H10.4997V2.44828C10.4997 2.33529 10.4587 2.22586 10.3838 2.13906C10.3089 2.05226 10.2048 1.99358 10.0897 1.97324L9.99974 1.96552Z"}),C.jsx("path",{d:"M9.99974 1C10.3726 1.00002 10.732 1.13413 11.008 1.37618C11.284 1.61824 11.4567 1.95088 11.4925 2.30924L11.4995 2.44828V4.37931H14.4991C14.6241 4.37909 14.7446 4.42404 14.8369 4.50532C14.9292 4.5866 14.9867 4.6983 14.998 4.81845C15.0092 4.93859 14.9735 5.05846 14.8979 5.15446C14.8222 5.25045 14.7121 5.31561 14.5891 5.3371L14.4991 5.34483H13.9292L12.4934 14.5887C12.4781 14.6881 12.4311 14.7804 12.3588 14.8527C12.2866 14.9251 12.1928 14.9739 12.0905 14.9923L11.9995 15H4.00053C3.89643 15.0001 3.7949 14.9687 3.71012 14.9104C3.62534 14.8521 3.56153 14.7697 3.52759 14.6746L3.50659 14.5887L2.06978 5.34483H1.50086C1.37593 5.34505 1.25544 5.3001 1.16312 5.21882C1.0708 5.13754 1.01333 5.02583 1.00205 4.90569C0.990758 4.78555 1.02646 4.66567 1.10213 4.56968C1.17779 4.47369 1.28794 4.40853 1.41087 4.38703L1.50086 4.37931H4.50046V2.44828C4.50048 2.08825 4.63936 1.74114 4.89003 1.47463C5.14069 1.20812 5.48517 1.04132 5.85628 1.00676L6.00026 1H9.99974ZM12.9184 5.34483H3.08065L4.43047 14.0345H11.5685L12.9184 5.34483ZM5.96427 5.82855C6.081 5.82046 6.19697 5.85217 6.29198 5.91815C6.38698 5.98414 6.45501 6.08022 6.4842 6.18966L6.4992 6.27655L6.99913 13.0352C7.00801 13.1554 6.97 13.2744 6.89259 13.369C6.81518 13.4635 6.70395 13.5266 6.58078 13.546C6.4576 13.5653 6.33138 13.5395 6.22692 13.4736C6.12247 13.4076 6.04732 13.3064 6.01626 13.1897L6.00026 13.1028L5.50033 6.34414C5.49098 6.2165 5.53449 6.0905 5.62129 5.99382C5.7081 5.89715 5.8311 5.8377 5.96327 5.82855H5.96427ZM10.0357 5.82855C10.1524 5.83668 10.2623 5.88402 10.3465 5.96234C10.4308 6.04067 10.4839 6.14501 10.4967 6.25724L10.4987 6.34414L9.99874 13.1028C9.99035 13.2232 9.93551 13.3363 9.84502 13.4197C9.75454 13.503 9.63499 13.5506 9.50997 13.553C9.38494 13.5555 9.26351 13.5126 9.16963 13.4328C9.07576 13.353 9.01626 13.2421 9.00287 13.1221L8.99987 13.0352L9.4998 6.27655C9.50437 6.21318 9.52184 6.15131 9.55121 6.09447C9.58058 6.03764 9.62128 5.98696 9.67098 5.94534C9.72067 5.90372 9.77838 5.87198 9.8408 5.85194C9.90322 5.8319 9.96912 5.82395 10.0347 5.82855H10.0357ZM9.99974 1.96552H6.00026C5.88325 1.96548 5.76994 2.00508 5.68005 2.07741C5.59016 2.14974 5.52939 2.25023 5.50833 2.36138L5.50033 2.44828V4.37931H10.4997V2.44828C10.4997 2.33529 10.4587 2.22586 10.3838 2.13906C10.3089 2.05226 10.2048 1.99358 10.0897 1.97324L9.99974 1.96552Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M9.99974 1C10.3726 1.00002 10.732 1.13413 11.008 1.37618C11.284 1.61824 11.4567 1.95088 11.4925 2.30924L11.4995 2.44828V4.37931H14.4991C14.6241 4.37909 14.7446 4.42404 14.8369 4.50532C14.9292 4.5866 14.9867 4.6983 14.998 4.81845C15.0092 4.93859 14.9735 5.05846 14.8979 5.15446C14.8222 5.25045 14.7121 5.31561 14.5891 5.3371L14.4991 5.34483H13.9292L12.4934 14.5887C12.4781 14.6881 12.4311 14.7804 12.3588 14.8527C12.2866 14.9251 12.1928 14.9739 12.0905 14.9923L11.9995 15H4.00053C3.89643 15.0001 3.7949 14.9687 3.71012 14.9104C3.62534 14.8521 3.56153 14.7697 3.52759 14.6746L3.50659 14.5887L2.06978 5.34483H1.50086C1.37593 5.34505 1.25544 5.3001 1.16312 5.21882C1.0708 5.13754 1.01333 5.02583 1.00205 4.90569C0.990758 4.78555 1.02646 4.66567 1.10213 4.56968C1.17779 4.47369 1.28794 4.40853 1.41087 4.38703L1.50086 4.37931H4.50046V2.44828C4.50048 2.08825 4.63936 1.74114 4.89003 1.47463C5.14069 1.20812 5.48517 1.04132 5.85628 1.00676L6.00026 1H9.99974ZM12.9184 5.34483H3.08065L4.43047 14.0345H11.5685L12.9184 5.34483ZM5.96427 5.82855C6.081 5.82046 6.19697 5.85217 6.29198 5.91815C6.38698 5.98414 6.45501 6.08022 6.4842 6.18966L6.4992 6.27655L6.99913 13.0352C7.00801 13.1554 6.97 13.2744 6.89259 13.369C6.81518 13.4635 6.70395 13.5266 6.58078 13.546C6.4576 13.5653 6.33138 13.5395 6.22692 13.4736C6.12247 13.4076 6.04732 13.3064 6.01626 13.1897L6.00026 13.1028L5.50033 6.34414C5.49098 6.2165 5.53449 6.0905 5.62129 5.99382C5.7081 5.89715 5.8311 5.8377 5.96327 5.82855H5.96427ZM10.0357 5.82855C10.1524 5.83668 10.2623 5.88402 10.3465 5.96234C10.4308 6.04067 10.4839 6.14501 10.4967 6.25724L10.4987 6.34414L9.99874 13.1028C9.99035 13.2232 9.93551 13.3363 9.84502 13.4197C9.75454 13.503 9.63499 13.5506 9.50997 13.553C9.38494 13.5555 9.26351 13.5126 9.16963 13.4328C9.07576 13.353 9.01626 13.2421 9.00287 13.1221L8.99987 13.0352L9.4998 6.27655C9.50437 6.21318 9.52184 6.15131 9.55121 6.09447C9.58058 6.03764 9.62128 5.98696 9.67098 5.94534C9.72067 5.90372 9.77838 5.87198 9.8408 5.85194C9.90322 5.8319 9.96912 5.82395 10.0347 5.82855H10.0357ZM9.99974 1.96552H6.00026C5.88325 1.96548 5.76994 2.00508 5.68005 2.07741C5.59016 2.14974 5.52939 2.25023 5.50833 2.36138L5.50033 2.44828V4.37931H10.4997V2.44828C10.4997 2.33529 10.4587 2.22586 10.3838 2.13906C10.3089 2.05226 10.2048 1.99358 10.0897 1.97324L9.99974 1.96552Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M9.99974 1C10.3726 1.00002 10.732 1.13413 11.008 1.37618C11.284 1.61824 11.4567 1.95088 11.4925 2.30924L11.4995 2.44828V4.37931H14.4991C14.6241 4.37909 14.7446 4.42404 14.8369 4.50532C14.9292 4.5866 14.9867 4.6983 14.998 4.81845C15.0092 4.93859 14.9735 5.05846 14.8979 5.15446C14.8222 5.25045 14.7121 5.31561 14.5891 5.3371L14.4991 5.34483H13.9292L12.4934 14.5887C12.4781 14.6881 12.4311 14.7804 12.3588 14.8527C12.2866 14.9251 12.1928 14.9739 12.0905 14.9923L11.9995 15H4.00053C3.89643 15.0001 3.7949 14.9687 3.71012 14.9104C3.62534 14.8521 3.56153 14.7697 3.52759 14.6746L3.50659 14.5887L2.06978 5.34483H1.50086C1.37593 5.34505 1.25544 5.3001 1.16312 5.21882C1.0708 5.13754 1.01333 5.02583 1.00205 4.90569C0.990758 4.78555 1.02646 4.66567 1.10213 4.56968C1.17779 4.47369 1.28794 4.40853 1.41087 4.38703L1.50086 4.37931H4.50046V2.44828C4.50048 2.08825 4.63936 1.74114 4.89003 1.47463C5.14069 1.20812 5.48517 1.04132 5.85628 1.00676L6.00026 1H9.99974ZM12.9184 5.34483H3.08065L4.43047 14.0345H11.5685L12.9184 5.34483ZM5.96427 5.82855C6.081 5.82046 6.19697 5.85217 6.29198 5.91815C6.38698 5.98414 6.45501 6.08022 6.4842 6.18966L6.4992 6.27655L6.99913 13.0352C7.00801 13.1554 6.97 13.2744 6.89259 13.369C6.81518 13.4635 6.70395 13.5266 6.58078 13.546C6.4576 13.5653 6.33138 13.5395 6.22692 13.4736C6.12247 13.4076 6.04732 13.3064 6.01626 13.1897L6.00026 13.1028L5.50033 6.34414C5.49098 6.2165 5.53449 6.0905 5.62129 5.99382C5.7081 5.89715 5.8311 5.8377 5.96327 5.82855H5.96427ZM10.0357 5.82855C10.1524 5.83668 10.2623 5.88402 10.3465 5.96234C10.4308 6.04067 10.4839 6.14501 10.4967 6.25724L10.4987 6.34414L9.99874 13.1028C9.99035 13.2232 9.93551 13.3363 9.84502 13.4197C9.75454 13.503 9.63499 13.5506 9.50997 13.553C9.38494 13.5555 9.26351 13.5126 9.16963 13.4328C9.07576 13.353 9.01626 13.2421 9.00287 13.1221L8.99987 13.0352L9.4998 6.27655C9.50437 6.21318 9.52184 6.15131 9.55121 6.09447C9.58058 6.03764 9.62128 5.98696 9.67098 5.94534C9.72067 5.90372 9.77838 5.87198 9.8408 5.85194C9.90322 5.8319 9.96912 5.82395 10.0347 5.82855H10.0357ZM9.99974 1.96552H6.00026C5.88325 1.96548 5.76994 2.00508 5.68005 2.07741C5.59016 2.14974 5.52939 2.25023 5.50833 2.36138L5.50033 2.44828V4.37931H10.4997V2.44828C10.4997 2.33529 10.4587 2.22586 10.3838 2.13906C10.3089 2.05226 10.2048 1.99358 10.0897 1.97324L9.99974 1.96552Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M9.99974 1C10.3726 1.00002 10.732 1.13413 11.008 1.37618C11.284 1.61824 11.4567 1.95088 11.4925 2.30924L11.4995 2.44828V4.37931H14.4991C14.6241 4.37909 14.7446 4.42404 14.8369 4.50532C14.9292 4.5866 14.9867 4.6983 14.998 4.81845C15.0092 4.93859 14.9735 5.05846 14.8979 5.15446C14.8222 5.25045 14.7121 5.31561 14.5891 5.3371L14.4991 5.34483H13.9292L12.4934 14.5887C12.4781 14.6881 12.4311 14.7804 12.3588 14.8527C12.2866 14.9251 12.1928 14.9739 12.0905 14.9923L11.9995 15H4.00053C3.89643 15.0001 3.7949 14.9687 3.71012 14.9104C3.62534 14.8521 3.56153 14.7697 3.52759 14.6746L3.50659 14.5887L2.06978 5.34483H1.50086C1.37593 5.34505 1.25544 5.3001 1.16312 5.21882C1.0708 5.13754 1.01333 5.02583 1.00205 4.90569C0.990758 4.78555 1.02646 4.66567 1.10213 4.56968C1.17779 4.47369 1.28794 4.40853 1.41087 4.38703L1.50086 4.37931H4.50046V2.44828C4.50048 2.08825 4.63936 1.74114 4.89003 1.47463C5.14069 1.20812 5.48517 1.04132 5.85628 1.00676L6.00026 1H9.99974ZM12.9184 5.34483H3.08065L4.43047 14.0345H11.5685L12.9184 5.34483ZM5.96427 5.82855C6.081 5.82046 6.19697 5.85217 6.29198 5.91815C6.38698 5.98414 6.45501 6.08022 6.4842 6.18966L6.4992 6.27655L6.99913 13.0352C7.00801 13.1554 6.97 13.2744 6.89259 13.369C6.81518 13.4635 6.70395 13.5266 6.58078 13.546C6.4576 13.5653 6.33138 13.5395 6.22692 13.4736C6.12247 13.4076 6.04732 13.3064 6.01626 13.1897L6.00026 13.1028L5.50033 6.34414C5.49098 6.2165 5.53449 6.0905 5.62129 5.99382C5.7081 5.89715 5.8311 5.8377 5.96327 5.82855H5.96427ZM10.0357 5.82855C10.1524 5.83668 10.2623 5.88402 10.3465 5.96234C10.4308 6.04067 10.4839 6.14501 10.4967 6.25724L10.4987 6.34414L9.99874 13.1028C9.99035 13.2232 9.93551 13.3363 9.84502 13.4197C9.75454 13.503 9.63499 13.5506 9.50997 13.553C9.38494 13.5555 9.26351 13.5126 9.16963 13.4328C9.07576 13.353 9.01626 13.2421 9.00287 13.1221L8.99987 13.0352L9.4998 6.27655C9.50437 6.21318 9.52184 6.15131 9.55121 6.09447C9.58058 6.03764 9.62128 5.98696 9.67098 5.94534C9.72067 5.90372 9.77838 5.87198 9.8408 5.85194C9.90322 5.8319 9.96912 5.82395 10.0347 5.82855H10.0357ZM9.99974 1.96552H6.00026C5.88325 1.96548 5.76994 2.00508 5.68005 2.07741C5.59016 2.14974 5.52939 2.25023 5.50833 2.36138L5.50033 2.44828V4.37931H10.4997V2.44828C10.4997 2.33529 10.4587 2.22586 10.3838 2.13906C10.3089 2.05226 10.2048 1.99358 10.0897 1.97324L9.99974 1.96552Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M9.99974 1C10.3726 1.00002 10.732 1.13413 11.008 1.37618C11.284 1.61824 11.4567 1.95088 11.4925 2.30924L11.4995 2.44828V4.37931H14.4991C14.6241 4.37909 14.7446 4.42404 14.8369 4.50532C14.9292 4.5866 14.9867 4.6983 14.998 4.81845C15.0092 4.93859 14.9735 5.05846 14.8979 5.15446C14.8222 5.25045 14.7121 5.31561 14.5891 5.3371L14.4991 5.34483H13.9292L12.4934 14.5887C12.4781 14.6881 12.4311 14.7804 12.3588 14.8527C12.2866 14.9251 12.1928 14.9739 12.0905 14.9923L11.9995 15H4.00053C3.89643 15.0001 3.7949 14.9687 3.71012 14.9104C3.62534 14.8521 3.56153 14.7697 3.52759 14.6746L3.50659 14.5887L2.06978 5.34483H1.50086C1.37593 5.34505 1.25544 5.3001 1.16312 5.21882C1.0708 5.13754 1.01333 5.02583 1.00205 4.90569C0.990758 4.78555 1.02646 4.66567 1.10213 4.56968C1.17779 4.47369 1.28794 4.40853 1.41087 4.38703L1.50086 4.37931H4.50046V2.44828C4.50048 2.08825 4.63936 1.74114 4.89003 1.47463C5.14069 1.20812 5.48517 1.04132 5.85628 1.00676L6.00026 1H9.99974ZM12.9184 5.34483H3.08065L4.43047 14.0345H11.5685L12.9184 5.34483ZM5.96427 5.82855C6.081 5.82046 6.19697 5.85217 6.29198 5.91815C6.38698 5.98414 6.45501 6.08022 6.4842 6.18966L6.4992 6.27655L6.99913 13.0352C7.00801 13.1554 6.97 13.2744 6.89259 13.369C6.81518 13.4635 6.70395 13.5266 6.58078 13.546C6.4576 13.5653 6.33138 13.5395 6.22692 13.4736C6.12247 13.4076 6.04732 13.3064 6.01626 13.1897L6.00026 13.1028L5.50033 6.34414C5.49098 6.2165 5.53449 6.0905 5.62129 5.99382C5.7081 5.89715 5.8311 5.8377 5.96327 5.82855H5.96427ZM10.0357 5.82855C10.1524 5.83668 10.2623 5.88402 10.3465 5.96234C10.4308 6.04067 10.4839 6.14501 10.4967 6.25724L10.4987 6.34414L9.99874 13.1028C9.99035 13.2232 9.93551 13.3363 9.84502 13.4197C9.75454 13.503 9.63499 13.5506 9.50997 13.553C9.38494 13.5555 9.26351 13.5126 9.16963 13.4328C9.07576 13.353 9.01626 13.2421 9.00287 13.1221L8.99987 13.0352L9.4998 6.27655C9.50437 6.21318 9.52184 6.15131 9.55121 6.09447C9.58058 6.03764 9.62128 5.98696 9.67098 5.94534C9.72067 5.90372 9.77838 5.87198 9.8408 5.85194C9.90322 5.8319 9.96912 5.82395 10.0347 5.82855H10.0357ZM9.99974 1.96552H6.00026C5.88325 1.96548 5.76994 2.00508 5.68005 2.07741C5.59016 2.14974 5.52939 2.25023 5.50833 2.36138L5.50033 2.44828V4.37931H10.4997V2.44828C10.4997 2.33529 10.4587 2.22586 10.3838 2.13906C10.3089 2.05226 10.2048 1.99358 10.0897 1.97324L9.99974 1.96552Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M9.99974 1C10.3726 1.00002 10.732 1.13413 11.008 1.37618C11.284 1.61824 11.4567 1.95088 11.4925 2.30924L11.4995 2.44828V4.37931H14.4991C14.6241 4.37909 14.7446 4.42404 14.8369 4.50532C14.9292 4.5866 14.9867 4.6983 14.998 4.81845C15.0092 4.93859 14.9735 5.05846 14.8979 5.15446C14.8222 5.25045 14.7121 5.31561 14.5891 5.3371L14.4991 5.34483H13.9292L12.4934 14.5887C12.4781 14.6881 12.4311 14.7804 12.3588 14.8527C12.2866 14.9251 12.1928 14.9739 12.0905 14.9923L11.9995 15H4.00053C3.89643 15.0001 3.7949 14.9687 3.71012 14.9104C3.62534 14.8521 3.56153 14.7697 3.52759 14.6746L3.50659 14.5887L2.06978 5.34483H1.50086C1.37593 5.34505 1.25544 5.3001 1.16312 5.21882C1.0708 5.13754 1.01333 5.02583 1.00205 4.90569C0.990758 4.78555 1.02646 4.66567 1.10213 4.56968C1.17779 4.47369 1.28794 4.40853 1.41087 4.38703L1.50086 4.37931H4.50046V2.44828C4.50048 2.08825 4.63936 1.74114 4.89003 1.47463C5.14069 1.20812 5.48517 1.04132 5.85628 1.00676L6.00026 1H9.99974ZM12.9184 5.34483H3.08065L4.43047 14.0345H11.5685L12.9184 5.34483ZM5.96427 5.82855C6.081 5.82046 6.19697 5.85217 6.29198 5.91815C6.38698 5.98414 6.45501 6.08022 6.4842 6.18966L6.4992 6.27655L6.99913 13.0352C7.00801 13.1554 6.97 13.2744 6.89259 13.369C6.81518 13.4635 6.70395 13.5266 6.58078 13.546C6.4576 13.5653 6.33138 13.5395 6.22692 13.4736C6.12247 13.4076 6.04732 13.3064 6.01626 13.1897L6.00026 13.1028L5.50033 6.34414C5.49098 6.2165 5.53449 6.0905 5.62129 5.99382C5.7081 5.89715 5.8311 5.8377 5.96327 5.82855H5.96427ZM10.0357 5.82855C10.1524 5.83668 10.2623 5.88402 10.3465 5.96234C10.4308 6.04067 10.4839 6.14501 10.4967 6.25724L10.4987 6.34414L9.99874 13.1028C9.99035 13.2232 9.93551 13.3363 9.84502 13.4197C9.75454 13.503 9.63499 13.5506 9.50997 13.553C9.38494 13.5555 9.26351 13.5126 9.16963 13.4328C9.07576 13.353 9.01626 13.2421 9.00287 13.1221L8.99987 13.0352L9.4998 6.27655C9.50437 6.21318 9.52184 6.15131 9.55121 6.09447C9.58058 6.03764 9.62128 5.98696 9.67098 5.94534C9.72067 5.90372 9.77838 5.87198 9.8408 5.85194C9.90322 5.8319 9.96912 5.82395 10.0347 5.82855H10.0357ZM9.99974 1.96552H6.00026C5.88325 1.96548 5.76994 2.00508 5.68005 2.07741C5.59016 2.14974 5.52939 2.25023 5.50833 2.36138L5.50033 2.44828V4.37931H10.4997V2.44828C10.4997 2.33529 10.4587 2.22586 10.3838 2.13906C10.3089 2.05226 10.2048 1.99358 10.0897 1.97324L9.99974 1.96552Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M9.99974 1C10.3726 1.00002 10.732 1.13413 11.008 1.37618C11.284 1.61824 11.4567 1.95088 11.4925 2.30924L11.4995 2.44828V4.37931H14.4991C14.6241 4.37909 14.7446 4.42404 14.8369 4.50532C14.9292 4.5866 14.9867 4.6983 14.998 4.81845C15.0092 4.93859 14.9735 5.05846 14.8979 5.15446C14.8222 5.25045 14.7121 5.31561 14.5891 5.3371L14.4991 5.34483H13.9292L12.4934 14.5887C12.4781 14.6881 12.4311 14.7804 12.3588 14.8527C12.2866 14.9251 12.1928 14.9739 12.0905 14.9923L11.9995 15H4.00053C3.89643 15.0001 3.7949 14.9687 3.71012 14.9104C3.62534 14.8521 3.56153 14.7697 3.52759 14.6746L3.50659 14.5887L2.06978 5.34483H1.50086C1.37593 5.34505 1.25544 5.3001 1.16312 5.21882C1.0708 5.13754 1.01333 5.02583 1.00205 4.90569C0.990758 4.78555 1.02646 4.66567 1.10213 4.56968C1.17779 4.47369 1.28794 4.40853 1.41087 4.38703L1.50086 4.37931H4.50046V2.44828C4.50048 2.08825 4.63936 1.74114 4.89003 1.47463C5.14069 1.20812 5.48517 1.04132 5.85628 1.00676L6.00026 1H9.99974ZM12.9184 5.34483H3.08065L4.43047 14.0345H11.5685L12.9184 5.34483ZM5.96427 5.82855C6.081 5.82046 6.19697 5.85217 6.29198 5.91815C6.38698 5.98414 6.45501 6.08022 6.4842 6.18966L6.4992 6.27655L6.99913 13.0352C7.00801 13.1554 6.97 13.2744 6.89259 13.369C6.81518 13.4635 6.70395 13.5266 6.58078 13.546C6.4576 13.5653 6.33138 13.5395 6.22692 13.4736C6.12247 13.4076 6.04732 13.3064 6.01626 13.1897L6.00026 13.1028L5.50033 6.34414C5.49098 6.2165 5.53449 6.0905 5.62129 5.99382C5.7081 5.89715 5.8311 5.8377 5.96327 5.82855H5.96427ZM10.0357 5.82855C10.1524 5.83668 10.2623 5.88402 10.3465 5.96234C10.4308 6.04067 10.4839 6.14501 10.4967 6.25724L10.4987 6.34414L9.99874 13.1028C9.99035 13.2232 9.93551 13.3363 9.84502 13.4197C9.75454 13.503 9.63499 13.5506 9.50997 13.553C9.38494 13.5555 9.26351 13.5126 9.16963 13.4328C9.07576 13.353 9.01626 13.2421 9.00287 13.1221L8.99987 13.0352L9.4998 6.27655C9.50437 6.21318 9.52184 6.15131 9.55121 6.09447C9.58058 6.03764 9.62128 5.98696 9.67098 5.94534C9.72067 5.90372 9.77838 5.87198 9.8408 5.85194C9.90322 5.8319 9.96912 5.82395 10.0347 5.82855H10.0357ZM9.99974 1.96552H6.00026C5.88325 1.96548 5.76994 2.00508 5.68005 2.07741C5.59016 2.14974 5.52939 2.25023 5.50833 2.36138L5.50033 2.44828V4.37931H10.4997V2.44828C10.4997 2.33529 10.4587 2.22586 10.3838 2.13906C10.3089 2.05226 10.2048 1.99358 10.0897 1.97324L9.99974 1.96552Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M9.99974 1C10.3726 1.00002 10.732 1.13413 11.008 1.37618C11.284 1.61824 11.4567 1.95088 11.4925 2.30924L11.4995 2.44828V4.37931H14.4991C14.6241 4.37909 14.7446 4.42404 14.8369 4.50532C14.9292 4.5866 14.9867 4.6983 14.998 4.81845C15.0092 4.93859 14.9735 5.05846 14.8979 5.15446C14.8222 5.25045 14.7121 5.31561 14.5891 5.3371L14.4991 5.34483H13.9292L12.4934 14.5887C12.4781 14.6881 12.4311 14.7804 12.3588 14.8527C12.2866 14.9251 12.1928 14.9739 12.0905 14.9923L11.9995 15H4.00053C3.89643 15.0001 3.7949 14.9687 3.71012 14.9104C3.62534 14.8521 3.56153 14.7697 3.52759 14.6746L3.50659 14.5887L2.06978 5.34483H1.50086C1.37593 5.34505 1.25544 5.3001 1.16312 5.21882C1.0708 5.13754 1.01333 5.02583 1.00205 4.90569C0.990758 4.78555 1.02646 4.66567 1.10213 4.56968C1.17779 4.47369 1.28794 4.40853 1.41087 4.38703L1.50086 4.37931H4.50046V2.44828C4.50048 2.08825 4.63936 1.74114 4.89003 1.47463C5.14069 1.20812 5.48517 1.04132 5.85628 1.00676L6.00026 1H9.99974ZM12.9184 5.34483H3.08065L4.43047 14.0345H11.5685L12.9184 5.34483ZM5.96427 5.82855C6.081 5.82046 6.19697 5.85217 6.29198 5.91815C6.38698 5.98414 6.45501 6.08022 6.4842 6.18966L6.4992 6.27655L6.99913 13.0352C7.00801 13.1554 6.97 13.2744 6.89259 13.369C6.81518 13.4635 6.70395 13.5266 6.58078 13.546C6.4576 13.5653 6.33138 13.5395 6.22692 13.4736C6.12247 13.4076 6.04732 13.3064 6.01626 13.1897L6.00026 13.1028L5.50033 6.34414C5.49098 6.2165 5.53449 6.0905 5.62129 5.99382C5.7081 5.89715 5.8311 5.8377 5.96327 5.82855H5.96427ZM10.0357 5.82855C10.1524 5.83668 10.2623 5.88402 10.3465 5.96234C10.4308 6.04067 10.4839 6.14501 10.4967 6.25724L10.4987 6.34414L9.99874 13.1028C9.99035 13.2232 9.93551 13.3363 9.84502 13.4197C9.75454 13.503 9.63499 13.5506 9.50997 13.553C9.38494 13.5555 9.26351 13.5126 9.16963 13.4328C9.07576 13.353 9.01626 13.2421 9.00287 13.1221L8.99987 13.0352L9.4998 6.27655C9.50437 6.21318 9.52184 6.15131 9.55121 6.09447C9.58058 6.03764 9.62128 5.98696 9.67098 5.94534C9.72067 5.90372 9.77838 5.87198 9.8408 5.85194C9.90322 5.8319 9.96912 5.82395 10.0347 5.82855H10.0357ZM9.99974 1.96552H6.00026C5.88325 1.96548 5.76994 2.00508 5.68005 2.07741C5.59016 2.14974 5.52939 2.25023 5.50833 2.36138L5.50033 2.44828V4.37931H10.4997V2.44828C10.4997 2.33529 10.4587 2.22586 10.3838 2.13906C10.3089 2.05226 10.2048 1.99358 10.0897 1.97324L9.99974 1.96552Z","fill-opacity":"0.2"})]}),GE=()=>C.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:[C.jsx("path",{d:"M11.7497 4.22129L11.7581 4.2618C11.7838 4.4337 11.7584 4.91737 11.3386 5.77311C10.852 6.76434 10.0245 7.866 9.01143 8.87879C7.99806 9.89217 6.89698 10.7194 5.90605 11.2059C4.96901 11.6651 4.47747 11.6523 4.35364 11.6168L4.34548 11.576C4.32014 11.4041 4.34548 10.9201 4.76505 10.0641C5.25193 9.07284 6.0797 7.97148 7.09249 6.95869C8.10587 5.94502 9.20694 5.11812 10.1979 4.63125C11.1343 4.17293 11.6259 4.18546 11.7497 4.221V4.22129ZM12.4752 3.4955C11.5629 2.58294 8.91353 3.75656 6.50568 6.11227L6.37456 6.24192C3.93291 8.68387 2.69897 11.4137 3.62814 12.3426C4.54041 13.2551 7.18981 12.0812 9.59766 9.7258L9.72878 9.59614C12.1704 7.15419 13.4044 4.42438 12.4752 3.4955ZM9.01143 6.95927C10.0248 7.97264 10.852 9.07372 11.3389 10.0647C11.7984 11.0023 11.7852 11.4932 11.7503 11.6176L11.7095 11.6258C11.537 11.6511 11.0533 11.6258 10.1973 11.2062C9.20636 10.7194 8.1047 9.89158 7.09191 8.87879C6.07854 7.86542 5.25134 6.76434 4.76447 5.77311C4.30557 4.83637 4.3181 4.34483 4.35364 4.221L4.39443 4.21285C4.56692 4.1875 5.05059 4.21285 5.90663 4.63241C6.89728 5.1187 7.99864 5.94648 9.01143 6.95927ZM9.85844 6.37304L9.72878 6.24192C7.28683 3.80027 4.55702 2.56633 3.62814 3.4955C2.71558 4.40777 3.8892 7.05717 6.2449 9.46502L6.37456 9.59614C8.81651 12.0378 11.551 13.2668 12.4752 12.3426C13.3878 11.4303 12.2138 8.78089 9.85844 6.37304ZM13.4321 7.33455C13.3495 7.41272 13.2835 7.50663 13.2379 7.61074C13.1923 7.71484 13.168 7.82703 13.1665 7.94068C13.165 8.05433 13.1862 8.16714 13.229 8.27244C13.2718 8.37774 13.3352 8.47339 13.4156 8.55376C13.496 8.63413 13.5916 8.69758 13.6969 8.74037C13.8022 8.78316 13.915 8.80441 14.0287 8.80288C14.1423 8.80134 14.2545 8.77705 14.3586 8.73144C14.4627 8.68583 14.5566 8.61982 14.6348 8.53731C14.7873 8.3764 14.8709 8.16233 14.8679 7.94068C14.8649 7.71904 14.7755 7.50731 14.6188 7.35056C14.4621 7.19382 14.2503 7.10444 14.0287 7.10145C13.807 7.09846 13.593 7.18209 13.4321 7.33455ZM7.35122 1.25372C7.26937 1.33207 7.20398 1.42597 7.15891 1.52993C7.11384 1.63388 7.08999 1.74579 7.08875 1.85909C7.08751 1.97239 7.10892 2.0848 7.15172 2.18971C7.19451 2.29462 7.25783 2.38993 7.33796 2.47004C7.41809 2.55015 7.51342 2.61345 7.61834 2.65622C7.72326 2.69899 7.83567 2.72037 7.94897 2.71911C8.06227 2.71784 8.17418 2.69396 8.27812 2.64887C8.38207 2.60377 8.47595 2.53836 8.55428 2.45649C8.70801 2.29578 8.79271 2.08127 8.79023 1.85889C8.78775 1.63651 8.69829 1.42393 8.54102 1.2667C8.38374 1.10946 8.17115 1.02005 7.94877 1.01763C7.72638 1.0152 7.51189 1.09995 7.35122 1.25372ZM1.27419 7.36077C1.19314 7.43929 1.12852 7.53315 1.08409 7.63688C1.03966 7.74061 1.01632 7.85215 1.01541 7.96499C1.0145 8.07783 1.03605 8.18972 1.0788 8.29416C1.12155 8.39859 1.18465 8.49348 1.26443 8.57329C1.3442 8.6531 1.43906 8.71625 1.54347 8.75905C1.64788 8.80186 1.75977 8.82346 1.87261 8.8226C1.98545 8.82175 2.097 8.79846 2.20075 8.75408C2.3045 8.7097 2.39839 8.64513 2.47695 8.56412C2.63243 8.40378 2.71863 8.18874 2.71694 7.9654C2.71525 7.74206 2.62581 7.52835 2.46792 7.37038C2.31003 7.21242 2.09636 7.12287 1.87302 7.12107C1.64969 7.11928 1.4346 7.20537 1.27419 7.36077ZM7.45116 13.5383C7.37015 13.6169 7.30558 13.7108 7.2612 13.8145C7.21682 13.9183 7.19353 14.0298 7.19268 14.1427C7.19182 14.2555 7.21343 14.3674 7.25623 14.4718C7.29903 14.5762 7.36218 14.6711 7.44199 14.7509C7.5218 14.8306 7.61669 14.8937 7.72112 14.9365C7.82556 14.9792 7.93745 15.0008 8.05029 14.9999C8.16313 14.999 8.27467 14.9756 8.3784 14.9312C8.48213 14.8868 8.57599 14.8221 8.65451 14.7411C8.80991 14.5807 8.89601 14.3656 8.89421 14.1423C8.89241 13.9189 8.80286 13.7053 8.6449 13.5474C8.48693 13.3895 8.27322 13.3 8.04988 13.2983C7.82655 13.2967 7.6115 13.3828 7.45116 13.5383Z"}),C.jsx("path",{d:"M11.7497 4.22129L11.7581 4.2618C11.7838 4.4337 11.7584 4.91737 11.3386 5.77311C10.852 6.76434 10.0245 7.866 9.01143 8.87879C7.99806 9.89217 6.89698 10.7194 5.90605 11.2059C4.96901 11.6651 4.47747 11.6523 4.35364 11.6168L4.34548 11.576C4.32014 11.4041 4.34548 10.9201 4.76505 10.0641C5.25193 9.07284 6.0797 7.97148 7.09249 6.95869C8.10587 5.94502 9.20694 5.11812 10.1979 4.63125C11.1343 4.17293 11.6259 4.18546 11.7497 4.221V4.22129ZM12.4752 3.4955C11.5629 2.58294 8.91353 3.75656 6.50568 6.11227L6.37456 6.24192C3.93291 8.68387 2.69897 11.4137 3.62814 12.3426C4.54041 13.2551 7.18981 12.0812 9.59766 9.7258L9.72878 9.59614C12.1704 7.15419 13.4044 4.42438 12.4752 3.4955ZM9.01143 6.95927C10.0248 7.97264 10.852 9.07372 11.3389 10.0647C11.7984 11.0023 11.7852 11.4932 11.7503 11.6176L11.7095 11.6258C11.537 11.6511 11.0533 11.6258 10.1973 11.2062C9.20636 10.7194 8.1047 9.89158 7.09191 8.87879C6.07854 7.86542 5.25134 6.76434 4.76447 5.77311C4.30557 4.83637 4.3181 4.34483 4.35364 4.221L4.39443 4.21285C4.56692 4.1875 5.05059 4.21285 5.90663 4.63241C6.89728 5.1187 7.99864 5.94648 9.01143 6.95927ZM9.85844 6.37304L9.72878 6.24192C7.28683 3.80027 4.55702 2.56633 3.62814 3.4955C2.71558 4.40777 3.8892 7.05717 6.2449 9.46502L6.37456 9.59614C8.81651 12.0378 11.551 13.2668 12.4752 12.3426C13.3878 11.4303 12.2138 8.78089 9.85844 6.37304ZM13.4321 7.33455C13.3495 7.41272 13.2835 7.50663 13.2379 7.61074C13.1923 7.71484 13.168 7.82703 13.1665 7.94068C13.165 8.05433 13.1862 8.16714 13.229 8.27244C13.2718 8.37774 13.3352 8.47339 13.4156 8.55376C13.496 8.63413 13.5916 8.69758 13.6969 8.74037C13.8022 8.78316 13.915 8.80441 14.0287 8.80288C14.1423 8.80134 14.2545 8.77705 14.3586 8.73144C14.4627 8.68583 14.5566 8.61982 14.6348 8.53731C14.7873 8.3764 14.8709 8.16233 14.8679 7.94068C14.8649 7.71904 14.7755 7.50731 14.6188 7.35056C14.4621 7.19382 14.2503 7.10444 14.0287 7.10145C13.807 7.09846 13.593 7.18209 13.4321 7.33455ZM7.35122 1.25372C7.26937 1.33207 7.20398 1.42597 7.15891 1.52993C7.11384 1.63388 7.08999 1.74579 7.08875 1.85909C7.08751 1.97239 7.10892 2.0848 7.15172 2.18971C7.19451 2.29462 7.25783 2.38993 7.33796 2.47004C7.41809 2.55015 7.51342 2.61345 7.61834 2.65622C7.72326 2.69899 7.83567 2.72037 7.94897 2.71911C8.06227 2.71784 8.17418 2.69396 8.27812 2.64887C8.38207 2.60377 8.47595 2.53836 8.55428 2.45649C8.70801 2.29578 8.79271 2.08127 8.79023 1.85889C8.78775 1.63651 8.69829 1.42393 8.54102 1.2667C8.38374 1.10946 8.17115 1.02005 7.94877 1.01763C7.72638 1.0152 7.51189 1.09995 7.35122 1.25372ZM1.27419 7.36077C1.19314 7.43929 1.12852 7.53315 1.08409 7.63688C1.03966 7.74061 1.01632 7.85215 1.01541 7.96499C1.0145 8.07783 1.03605 8.18972 1.0788 8.29416C1.12155 8.39859 1.18465 8.49348 1.26443 8.57329C1.3442 8.6531 1.43906 8.71625 1.54347 8.75905C1.64788 8.80186 1.75977 8.82346 1.87261 8.8226C1.98545 8.82175 2.097 8.79846 2.20075 8.75408C2.3045 8.7097 2.39839 8.64513 2.47695 8.56412C2.63243 8.40378 2.71863 8.18874 2.71694 7.9654C2.71525 7.74206 2.62581 7.52835 2.46792 7.37038C2.31003 7.21242 2.09636 7.12287 1.87302 7.12107C1.64969 7.11928 1.4346 7.20537 1.27419 7.36077ZM7.45116 13.5383C7.37015 13.6169 7.30558 13.7108 7.2612 13.8145C7.21682 13.9183 7.19353 14.0298 7.19268 14.1427C7.19182 14.2555 7.21343 14.3674 7.25623 14.4718C7.29903 14.5762 7.36218 14.6711 7.44199 14.7509C7.5218 14.8306 7.61669 14.8937 7.72112 14.9365C7.82556 14.9792 7.93745 15.0008 8.05029 14.9999C8.16313 14.999 8.27467 14.9756 8.3784 14.9312C8.48213 14.8868 8.57599 14.8221 8.65451 14.7411C8.80991 14.5807 8.89601 14.3656 8.89421 14.1423C8.89241 13.9189 8.80286 13.7053 8.6449 13.5474C8.48693 13.3895 8.27322 13.3 8.04988 13.2983C7.82655 13.2967 7.6115 13.3828 7.45116 13.5383Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M11.7497 4.22129L11.7581 4.2618C11.7838 4.4337 11.7584 4.91737 11.3386 5.77311C10.852 6.76434 10.0245 7.866 9.01143 8.87879C7.99806 9.89217 6.89698 10.7194 5.90605 11.2059C4.96901 11.6651 4.47747 11.6523 4.35364 11.6168L4.34548 11.576C4.32014 11.4041 4.34548 10.9201 4.76505 10.0641C5.25193 9.07284 6.0797 7.97148 7.09249 6.95869C8.10587 5.94502 9.20694 5.11812 10.1979 4.63125C11.1343 4.17293 11.6259 4.18546 11.7497 4.221V4.22129ZM12.4752 3.4955C11.5629 2.58294 8.91353 3.75656 6.50568 6.11227L6.37456 6.24192C3.93291 8.68387 2.69897 11.4137 3.62814 12.3426C4.54041 13.2551 7.18981 12.0812 9.59766 9.7258L9.72878 9.59614C12.1704 7.15419 13.4044 4.42438 12.4752 3.4955ZM9.01143 6.95927C10.0248 7.97264 10.852 9.07372 11.3389 10.0647C11.7984 11.0023 11.7852 11.4932 11.7503 11.6176L11.7095 11.6258C11.537 11.6511 11.0533 11.6258 10.1973 11.2062C9.20636 10.7194 8.1047 9.89158 7.09191 8.87879C6.07854 7.86542 5.25134 6.76434 4.76447 5.77311C4.30557 4.83637 4.3181 4.34483 4.35364 4.221L4.39443 4.21285C4.56692 4.1875 5.05059 4.21285 5.90663 4.63241C6.89728 5.1187 7.99864 5.94648 9.01143 6.95927ZM9.85844 6.37304L9.72878 6.24192C7.28683 3.80027 4.55702 2.56633 3.62814 3.4955C2.71558 4.40777 3.8892 7.05717 6.2449 9.46502L6.37456 9.59614C8.81651 12.0378 11.551 13.2668 12.4752 12.3426C13.3878 11.4303 12.2138 8.78089 9.85844 6.37304ZM13.4321 7.33455C13.3495 7.41272 13.2835 7.50663 13.2379 7.61074C13.1923 7.71484 13.168 7.82703 13.1665 7.94068C13.165 8.05433 13.1862 8.16714 13.229 8.27244C13.2718 8.37774 13.3352 8.47339 13.4156 8.55376C13.496 8.63413 13.5916 8.69758 13.6969 8.74037C13.8022 8.78316 13.915 8.80441 14.0287 8.80288C14.1423 8.80134 14.2545 8.77705 14.3586 8.73144C14.4627 8.68583 14.5566 8.61982 14.6348 8.53731C14.7873 8.3764 14.8709 8.16233 14.8679 7.94068C14.8649 7.71904 14.7755 7.50731 14.6188 7.35056C14.4621 7.19382 14.2503 7.10444 14.0287 7.10145C13.807 7.09846 13.593 7.18209 13.4321 7.33455ZM7.35122 1.25372C7.26937 1.33207 7.20398 1.42597 7.15891 1.52993C7.11384 1.63388 7.08999 1.74579 7.08875 1.85909C7.08751 1.97239 7.10892 2.0848 7.15172 2.18971C7.19451 2.29462 7.25783 2.38993 7.33796 2.47004C7.41809 2.55015 7.51342 2.61345 7.61834 2.65622C7.72326 2.69899 7.83567 2.72037 7.94897 2.71911C8.06227 2.71784 8.17418 2.69396 8.27812 2.64887C8.38207 2.60377 8.47595 2.53836 8.55428 2.45649C8.70801 2.29578 8.79271 2.08127 8.79023 1.85889C8.78775 1.63651 8.69829 1.42393 8.54102 1.2667C8.38374 1.10946 8.17115 1.02005 7.94877 1.01763C7.72638 1.0152 7.51189 1.09995 7.35122 1.25372ZM1.27419 7.36077C1.19314 7.43929 1.12852 7.53315 1.08409 7.63688C1.03966 7.74061 1.01632 7.85215 1.01541 7.96499C1.0145 8.07783 1.03605 8.18972 1.0788 8.29416C1.12155 8.39859 1.18465 8.49348 1.26443 8.57329C1.3442 8.6531 1.43906 8.71625 1.54347 8.75905C1.64788 8.80186 1.75977 8.82346 1.87261 8.8226C1.98545 8.82175 2.097 8.79846 2.20075 8.75408C2.3045 8.7097 2.39839 8.64513 2.47695 8.56412C2.63243 8.40378 2.71863 8.18874 2.71694 7.9654C2.71525 7.74206 2.62581 7.52835 2.46792 7.37038C2.31003 7.21242 2.09636 7.12287 1.87302 7.12107C1.64969 7.11928 1.4346 7.20537 1.27419 7.36077ZM7.45116 13.5383C7.37015 13.6169 7.30558 13.7108 7.2612 13.8145C7.21682 13.9183 7.19353 14.0298 7.19268 14.1427C7.19182 14.2555 7.21343 14.3674 7.25623 14.4718C7.29903 14.5762 7.36218 14.6711 7.44199 14.7509C7.5218 14.8306 7.61669 14.8937 7.72112 14.9365C7.82556 14.9792 7.93745 15.0008 8.05029 14.9999C8.16313 14.999 8.27467 14.9756 8.3784 14.9312C8.48213 14.8868 8.57599 14.8221 8.65451 14.7411C8.80991 14.5807 8.89601 14.3656 8.89421 14.1423C8.89241 13.9189 8.80286 13.7053 8.6449 13.5474C8.48693 13.3895 8.27322 13.3 8.04988 13.2983C7.82655 13.2967 7.6115 13.3828 7.45116 13.5383Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M11.7497 4.22129L11.7581 4.2618C11.7838 4.4337 11.7584 4.91737 11.3386 5.77311C10.852 6.76434 10.0245 7.866 9.01143 8.87879C7.99806 9.89217 6.89698 10.7194 5.90605 11.2059C4.96901 11.6651 4.47747 11.6523 4.35364 11.6168L4.34548 11.576C4.32014 11.4041 4.34548 10.9201 4.76505 10.0641C5.25193 9.07284 6.0797 7.97148 7.09249 6.95869C8.10587 5.94502 9.20694 5.11812 10.1979 4.63125C11.1343 4.17293 11.6259 4.18546 11.7497 4.221V4.22129ZM12.4752 3.4955C11.5629 2.58294 8.91353 3.75656 6.50568 6.11227L6.37456 6.24192C3.93291 8.68387 2.69897 11.4137 3.62814 12.3426C4.54041 13.2551 7.18981 12.0812 9.59766 9.7258L9.72878 9.59614C12.1704 7.15419 13.4044 4.42438 12.4752 3.4955ZM9.01143 6.95927C10.0248 7.97264 10.852 9.07372 11.3389 10.0647C11.7984 11.0023 11.7852 11.4932 11.7503 11.6176L11.7095 11.6258C11.537 11.6511 11.0533 11.6258 10.1973 11.2062C9.20636 10.7194 8.1047 9.89158 7.09191 8.87879C6.07854 7.86542 5.25134 6.76434 4.76447 5.77311C4.30557 4.83637 4.3181 4.34483 4.35364 4.221L4.39443 4.21285C4.56692 4.1875 5.05059 4.21285 5.90663 4.63241C6.89728 5.1187 7.99864 5.94648 9.01143 6.95927ZM9.85844 6.37304L9.72878 6.24192C7.28683 3.80027 4.55702 2.56633 3.62814 3.4955C2.71558 4.40777 3.8892 7.05717 6.2449 9.46502L6.37456 9.59614C8.81651 12.0378 11.551 13.2668 12.4752 12.3426C13.3878 11.4303 12.2138 8.78089 9.85844 6.37304ZM13.4321 7.33455C13.3495 7.41272 13.2835 7.50663 13.2379 7.61074C13.1923 7.71484 13.168 7.82703 13.1665 7.94068C13.165 8.05433 13.1862 8.16714 13.229 8.27244C13.2718 8.37774 13.3352 8.47339 13.4156 8.55376C13.496 8.63413 13.5916 8.69758 13.6969 8.74037C13.8022 8.78316 13.915 8.80441 14.0287 8.80288C14.1423 8.80134 14.2545 8.77705 14.3586 8.73144C14.4627 8.68583 14.5566 8.61982 14.6348 8.53731C14.7873 8.3764 14.8709 8.16233 14.8679 7.94068C14.8649 7.71904 14.7755 7.50731 14.6188 7.35056C14.4621 7.19382 14.2503 7.10444 14.0287 7.10145C13.807 7.09846 13.593 7.18209 13.4321 7.33455ZM7.35122 1.25372C7.26937 1.33207 7.20398 1.42597 7.15891 1.52993C7.11384 1.63388 7.08999 1.74579 7.08875 1.85909C7.08751 1.97239 7.10892 2.0848 7.15172 2.18971C7.19451 2.29462 7.25783 2.38993 7.33796 2.47004C7.41809 2.55015 7.51342 2.61345 7.61834 2.65622C7.72326 2.69899 7.83567 2.72037 7.94897 2.71911C8.06227 2.71784 8.17418 2.69396 8.27812 2.64887C8.38207 2.60377 8.47595 2.53836 8.55428 2.45649C8.70801 2.29578 8.79271 2.08127 8.79023 1.85889C8.78775 1.63651 8.69829 1.42393 8.54102 1.2667C8.38374 1.10946 8.17115 1.02005 7.94877 1.01763C7.72638 1.0152 7.51189 1.09995 7.35122 1.25372ZM1.27419 7.36077C1.19314 7.43929 1.12852 7.53315 1.08409 7.63688C1.03966 7.74061 1.01632 7.85215 1.01541 7.96499C1.0145 8.07783 1.03605 8.18972 1.0788 8.29416C1.12155 8.39859 1.18465 8.49348 1.26443 8.57329C1.3442 8.6531 1.43906 8.71625 1.54347 8.75905C1.64788 8.80186 1.75977 8.82346 1.87261 8.8226C1.98545 8.82175 2.097 8.79846 2.20075 8.75408C2.3045 8.7097 2.39839 8.64513 2.47695 8.56412C2.63243 8.40378 2.71863 8.18874 2.71694 7.9654C2.71525 7.74206 2.62581 7.52835 2.46792 7.37038C2.31003 7.21242 2.09636 7.12287 1.87302 7.12107C1.64969 7.11928 1.4346 7.20537 1.27419 7.36077ZM7.45116 13.5383C7.37015 13.6169 7.30558 13.7108 7.2612 13.8145C7.21682 13.9183 7.19353 14.0298 7.19268 14.1427C7.19182 14.2555 7.21343 14.3674 7.25623 14.4718C7.29903 14.5762 7.36218 14.6711 7.44199 14.7509C7.5218 14.8306 7.61669 14.8937 7.72112 14.9365C7.82556 14.9792 7.93745 15.0008 8.05029 14.9999C8.16313 14.999 8.27467 14.9756 8.3784 14.9312C8.48213 14.8868 8.57599 14.8221 8.65451 14.7411C8.80991 14.5807 8.89601 14.3656 8.89421 14.1423C8.89241 13.9189 8.80286 13.7053 8.6449 13.5474C8.48693 13.3895 8.27322 13.3 8.04988 13.2983C7.82655 13.2967 7.6115 13.3828 7.45116 13.5383Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M11.7497 4.22129L11.7581 4.2618C11.7838 4.4337 11.7584 4.91737 11.3386 5.77311C10.852 6.76434 10.0245 7.866 9.01143 8.87879C7.99806 9.89217 6.89698 10.7194 5.90605 11.2059C4.96901 11.6651 4.47747 11.6523 4.35364 11.6168L4.34548 11.576C4.32014 11.4041 4.34548 10.9201 4.76505 10.0641C5.25193 9.07284 6.0797 7.97148 7.09249 6.95869C8.10587 5.94502 9.20694 5.11812 10.1979 4.63125C11.1343 4.17293 11.6259 4.18546 11.7497 4.221V4.22129ZM12.4752 3.4955C11.5629 2.58294 8.91353 3.75656 6.50568 6.11227L6.37456 6.24192C3.93291 8.68387 2.69897 11.4137 3.62814 12.3426C4.54041 13.2551 7.18981 12.0812 9.59766 9.7258L9.72878 9.59614C12.1704 7.15419 13.4044 4.42438 12.4752 3.4955ZM9.01143 6.95927C10.0248 7.97264 10.852 9.07372 11.3389 10.0647C11.7984 11.0023 11.7852 11.4932 11.7503 11.6176L11.7095 11.6258C11.537 11.6511 11.0533 11.6258 10.1973 11.2062C9.20636 10.7194 8.1047 9.89158 7.09191 8.87879C6.07854 7.86542 5.25134 6.76434 4.76447 5.77311C4.30557 4.83637 4.3181 4.34483 4.35364 4.221L4.39443 4.21285C4.56692 4.1875 5.05059 4.21285 5.90663 4.63241C6.89728 5.1187 7.99864 5.94648 9.01143 6.95927ZM9.85844 6.37304L9.72878 6.24192C7.28683 3.80027 4.55702 2.56633 3.62814 3.4955C2.71558 4.40777 3.8892 7.05717 6.2449 9.46502L6.37456 9.59614C8.81651 12.0378 11.551 13.2668 12.4752 12.3426C13.3878 11.4303 12.2138 8.78089 9.85844 6.37304ZM13.4321 7.33455C13.3495 7.41272 13.2835 7.50663 13.2379 7.61074C13.1923 7.71484 13.168 7.82703 13.1665 7.94068C13.165 8.05433 13.1862 8.16714 13.229 8.27244C13.2718 8.37774 13.3352 8.47339 13.4156 8.55376C13.496 8.63413 13.5916 8.69758 13.6969 8.74037C13.8022 8.78316 13.915 8.80441 14.0287 8.80288C14.1423 8.80134 14.2545 8.77705 14.3586 8.73144C14.4627 8.68583 14.5566 8.61982 14.6348 8.53731C14.7873 8.3764 14.8709 8.16233 14.8679 7.94068C14.8649 7.71904 14.7755 7.50731 14.6188 7.35056C14.4621 7.19382 14.2503 7.10444 14.0287 7.10145C13.807 7.09846 13.593 7.18209 13.4321 7.33455ZM7.35122 1.25372C7.26937 1.33207 7.20398 1.42597 7.15891 1.52993C7.11384 1.63388 7.08999 1.74579 7.08875 1.85909C7.08751 1.97239 7.10892 2.0848 7.15172 2.18971C7.19451 2.29462 7.25783 2.38993 7.33796 2.47004C7.41809 2.55015 7.51342 2.61345 7.61834 2.65622C7.72326 2.69899 7.83567 2.72037 7.94897 2.71911C8.06227 2.71784 8.17418 2.69396 8.27812 2.64887C8.38207 2.60377 8.47595 2.53836 8.55428 2.45649C8.70801 2.29578 8.79271 2.08127 8.79023 1.85889C8.78775 1.63651 8.69829 1.42393 8.54102 1.2667C8.38374 1.10946 8.17115 1.02005 7.94877 1.01763C7.72638 1.0152 7.51189 1.09995 7.35122 1.25372ZM1.27419 7.36077C1.19314 7.43929 1.12852 7.53315 1.08409 7.63688C1.03966 7.74061 1.01632 7.85215 1.01541 7.96499C1.0145 8.07783 1.03605 8.18972 1.0788 8.29416C1.12155 8.39859 1.18465 8.49348 1.26443 8.57329C1.3442 8.6531 1.43906 8.71625 1.54347 8.75905C1.64788 8.80186 1.75977 8.82346 1.87261 8.8226C1.98545 8.82175 2.097 8.79846 2.20075 8.75408C2.3045 8.7097 2.39839 8.64513 2.47695 8.56412C2.63243 8.40378 2.71863 8.18874 2.71694 7.9654C2.71525 7.74206 2.62581 7.52835 2.46792 7.37038C2.31003 7.21242 2.09636 7.12287 1.87302 7.12107C1.64969 7.11928 1.4346 7.20537 1.27419 7.36077ZM7.45116 13.5383C7.37015 13.6169 7.30558 13.7108 7.2612 13.8145C7.21682 13.9183 7.19353 14.0298 7.19268 14.1427C7.19182 14.2555 7.21343 14.3674 7.25623 14.4718C7.29903 14.5762 7.36218 14.6711 7.44199 14.7509C7.5218 14.8306 7.61669 14.8937 7.72112 14.9365C7.82556 14.9792 7.93745 15.0008 8.05029 14.9999C8.16313 14.999 8.27467 14.9756 8.3784 14.9312C8.48213 14.8868 8.57599 14.8221 8.65451 14.7411C8.80991 14.5807 8.89601 14.3656 8.89421 14.1423C8.89241 13.9189 8.80286 13.7053 8.6449 13.5474C8.48693 13.3895 8.27322 13.3 8.04988 13.2983C7.82655 13.2967 7.6115 13.3828 7.45116 13.5383Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M11.7497 4.22129L11.7581 4.2618C11.7838 4.4337 11.7584 4.91737 11.3386 5.77311C10.852 6.76434 10.0245 7.866 9.01143 8.87879C7.99806 9.89217 6.89698 10.7194 5.90605 11.2059C4.96901 11.6651 4.47747 11.6523 4.35364 11.6168L4.34548 11.576C4.32014 11.4041 4.34548 10.9201 4.76505 10.0641C5.25193 9.07284 6.0797 7.97148 7.09249 6.95869C8.10587 5.94502 9.20694 5.11812 10.1979 4.63125C11.1343 4.17293 11.6259 4.18546 11.7497 4.221V4.22129ZM12.4752 3.4955C11.5629 2.58294 8.91353 3.75656 6.50568 6.11227L6.37456 6.24192C3.93291 8.68387 2.69897 11.4137 3.62814 12.3426C4.54041 13.2551 7.18981 12.0812 9.59766 9.7258L9.72878 9.59614C12.1704 7.15419 13.4044 4.42438 12.4752 3.4955ZM9.01143 6.95927C10.0248 7.97264 10.852 9.07372 11.3389 10.0647C11.7984 11.0023 11.7852 11.4932 11.7503 11.6176L11.7095 11.6258C11.537 11.6511 11.0533 11.6258 10.1973 11.2062C9.20636 10.7194 8.1047 9.89158 7.09191 8.87879C6.07854 7.86542 5.25134 6.76434 4.76447 5.77311C4.30557 4.83637 4.3181 4.34483 4.35364 4.221L4.39443 4.21285C4.56692 4.1875 5.05059 4.21285 5.90663 4.63241C6.89728 5.1187 7.99864 5.94648 9.01143 6.95927ZM9.85844 6.37304L9.72878 6.24192C7.28683 3.80027 4.55702 2.56633 3.62814 3.4955C2.71558 4.40777 3.8892 7.05717 6.2449 9.46502L6.37456 9.59614C8.81651 12.0378 11.551 13.2668 12.4752 12.3426C13.3878 11.4303 12.2138 8.78089 9.85844 6.37304ZM13.4321 7.33455C13.3495 7.41272 13.2835 7.50663 13.2379 7.61074C13.1923 7.71484 13.168 7.82703 13.1665 7.94068C13.165 8.05433 13.1862 8.16714 13.229 8.27244C13.2718 8.37774 13.3352 8.47339 13.4156 8.55376C13.496 8.63413 13.5916 8.69758 13.6969 8.74037C13.8022 8.78316 13.915 8.80441 14.0287 8.80288C14.1423 8.80134 14.2545 8.77705 14.3586 8.73144C14.4627 8.68583 14.5566 8.61982 14.6348 8.53731C14.7873 8.3764 14.8709 8.16233 14.8679 7.94068C14.8649 7.71904 14.7755 7.50731 14.6188 7.35056C14.4621 7.19382 14.2503 7.10444 14.0287 7.10145C13.807 7.09846 13.593 7.18209 13.4321 7.33455ZM7.35122 1.25372C7.26937 1.33207 7.20398 1.42597 7.15891 1.52993C7.11384 1.63388 7.08999 1.74579 7.08875 1.85909C7.08751 1.97239 7.10892 2.0848 7.15172 2.18971C7.19451 2.29462 7.25783 2.38993 7.33796 2.47004C7.41809 2.55015 7.51342 2.61345 7.61834 2.65622C7.72326 2.69899 7.83567 2.72037 7.94897 2.71911C8.06227 2.71784 8.17418 2.69396 8.27812 2.64887C8.38207 2.60377 8.47595 2.53836 8.55428 2.45649C8.70801 2.29578 8.79271 2.08127 8.79023 1.85889C8.78775 1.63651 8.69829 1.42393 8.54102 1.2667C8.38374 1.10946 8.17115 1.02005 7.94877 1.01763C7.72638 1.0152 7.51189 1.09995 7.35122 1.25372ZM1.27419 7.36077C1.19314 7.43929 1.12852 7.53315 1.08409 7.63688C1.03966 7.74061 1.01632 7.85215 1.01541 7.96499C1.0145 8.07783 1.03605 8.18972 1.0788 8.29416C1.12155 8.39859 1.18465 8.49348 1.26443 8.57329C1.3442 8.6531 1.43906 8.71625 1.54347 8.75905C1.64788 8.80186 1.75977 8.82346 1.87261 8.8226C1.98545 8.82175 2.097 8.79846 2.20075 8.75408C2.3045 8.7097 2.39839 8.64513 2.47695 8.56412C2.63243 8.40378 2.71863 8.18874 2.71694 7.9654C2.71525 7.74206 2.62581 7.52835 2.46792 7.37038C2.31003 7.21242 2.09636 7.12287 1.87302 7.12107C1.64969 7.11928 1.4346 7.20537 1.27419 7.36077ZM7.45116 13.5383C7.37015 13.6169 7.30558 13.7108 7.2612 13.8145C7.21682 13.9183 7.19353 14.0298 7.19268 14.1427C7.19182 14.2555 7.21343 14.3674 7.25623 14.4718C7.29903 14.5762 7.36218 14.6711 7.44199 14.7509C7.5218 14.8306 7.61669 14.8937 7.72112 14.9365C7.82556 14.9792 7.93745 15.0008 8.05029 14.9999C8.16313 14.999 8.27467 14.9756 8.3784 14.9312C8.48213 14.8868 8.57599 14.8221 8.65451 14.7411C8.80991 14.5807 8.89601 14.3656 8.89421 14.1423C8.89241 13.9189 8.80286 13.7053 8.6449 13.5474C8.48693 13.3895 8.27322 13.3 8.04988 13.2983C7.82655 13.2967 7.6115 13.3828 7.45116 13.5383Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M11.7497 4.22129L11.7581 4.2618C11.7838 4.4337 11.7584 4.91737 11.3386 5.77311C10.852 6.76434 10.0245 7.866 9.01143 8.87879C7.99806 9.89217 6.89698 10.7194 5.90605 11.2059C4.96901 11.6651 4.47747 11.6523 4.35364 11.6168L4.34548 11.576C4.32014 11.4041 4.34548 10.9201 4.76505 10.0641C5.25193 9.07284 6.0797 7.97148 7.09249 6.95869C8.10587 5.94502 9.20694 5.11812 10.1979 4.63125C11.1343 4.17293 11.6259 4.18546 11.7497 4.221V4.22129ZM12.4752 3.4955C11.5629 2.58294 8.91353 3.75656 6.50568 6.11227L6.37456 6.24192C3.93291 8.68387 2.69897 11.4137 3.62814 12.3426C4.54041 13.2551 7.18981 12.0812 9.59766 9.7258L9.72878 9.59614C12.1704 7.15419 13.4044 4.42438 12.4752 3.4955ZM9.01143 6.95927C10.0248 7.97264 10.852 9.07372 11.3389 10.0647C11.7984 11.0023 11.7852 11.4932 11.7503 11.6176L11.7095 11.6258C11.537 11.6511 11.0533 11.6258 10.1973 11.2062C9.20636 10.7194 8.1047 9.89158 7.09191 8.87879C6.07854 7.86542 5.25134 6.76434 4.76447 5.77311C4.30557 4.83637 4.3181 4.34483 4.35364 4.221L4.39443 4.21285C4.56692 4.1875 5.05059 4.21285 5.90663 4.63241C6.89728 5.1187 7.99864 5.94648 9.01143 6.95927ZM9.85844 6.37304L9.72878 6.24192C7.28683 3.80027 4.55702 2.56633 3.62814 3.4955C2.71558 4.40777 3.8892 7.05717 6.2449 9.46502L6.37456 9.59614C8.81651 12.0378 11.551 13.2668 12.4752 12.3426C13.3878 11.4303 12.2138 8.78089 9.85844 6.37304ZM13.4321 7.33455C13.3495 7.41272 13.2835 7.50663 13.2379 7.61074C13.1923 7.71484 13.168 7.82703 13.1665 7.94068C13.165 8.05433 13.1862 8.16714 13.229 8.27244C13.2718 8.37774 13.3352 8.47339 13.4156 8.55376C13.496 8.63413 13.5916 8.69758 13.6969 8.74037C13.8022 8.78316 13.915 8.80441 14.0287 8.80288C14.1423 8.80134 14.2545 8.77705 14.3586 8.73144C14.4627 8.68583 14.5566 8.61982 14.6348 8.53731C14.7873 8.3764 14.8709 8.16233 14.8679 7.94068C14.8649 7.71904 14.7755 7.50731 14.6188 7.35056C14.4621 7.19382 14.2503 7.10444 14.0287 7.10145C13.807 7.09846 13.593 7.18209 13.4321 7.33455ZM7.35122 1.25372C7.26937 1.33207 7.20398 1.42597 7.15891 1.52993C7.11384 1.63388 7.08999 1.74579 7.08875 1.85909C7.08751 1.97239 7.10892 2.0848 7.15172 2.18971C7.19451 2.29462 7.25783 2.38993 7.33796 2.47004C7.41809 2.55015 7.51342 2.61345 7.61834 2.65622C7.72326 2.69899 7.83567 2.72037 7.94897 2.71911C8.06227 2.71784 8.17418 2.69396 8.27812 2.64887C8.38207 2.60377 8.47595 2.53836 8.55428 2.45649C8.70801 2.29578 8.79271 2.08127 8.79023 1.85889C8.78775 1.63651 8.69829 1.42393 8.54102 1.2667C8.38374 1.10946 8.17115 1.02005 7.94877 1.01763C7.72638 1.0152 7.51189 1.09995 7.35122 1.25372ZM1.27419 7.36077C1.19314 7.43929 1.12852 7.53315 1.08409 7.63688C1.03966 7.74061 1.01632 7.85215 1.01541 7.96499C1.0145 8.07783 1.03605 8.18972 1.0788 8.29416C1.12155 8.39859 1.18465 8.49348 1.26443 8.57329C1.3442 8.6531 1.43906 8.71625 1.54347 8.75905C1.64788 8.80186 1.75977 8.82346 1.87261 8.8226C1.98545 8.82175 2.097 8.79846 2.20075 8.75408C2.3045 8.7097 2.39839 8.64513 2.47695 8.56412C2.63243 8.40378 2.71863 8.18874 2.71694 7.9654C2.71525 7.74206 2.62581 7.52835 2.46792 7.37038C2.31003 7.21242 2.09636 7.12287 1.87302 7.12107C1.64969 7.11928 1.4346 7.20537 1.27419 7.36077ZM7.45116 13.5383C7.37015 13.6169 7.30558 13.7108 7.2612 13.8145C7.21682 13.9183 7.19353 14.0298 7.19268 14.1427C7.19182 14.2555 7.21343 14.3674 7.25623 14.4718C7.29903 14.5762 7.36218 14.6711 7.44199 14.7509C7.5218 14.8306 7.61669 14.8937 7.72112 14.9365C7.82556 14.9792 7.93745 15.0008 8.05029 14.9999C8.16313 14.999 8.27467 14.9756 8.3784 14.9312C8.48213 14.8868 8.57599 14.8221 8.65451 14.7411C8.80991 14.5807 8.89601 14.3656 8.89421 14.1423C8.89241 13.9189 8.80286 13.7053 8.6449 13.5474C8.48693 13.3895 8.27322 13.3 8.04988 13.2983C7.82655 13.2967 7.6115 13.3828 7.45116 13.5383Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M11.7497 4.22129L11.7581 4.2618C11.7838 4.4337 11.7584 4.91737 11.3386 5.77311C10.852 6.76434 10.0245 7.866 9.01143 8.87879C7.99806 9.89217 6.89698 10.7194 5.90605 11.2059C4.96901 11.6651 4.47747 11.6523 4.35364 11.6168L4.34548 11.576C4.32014 11.4041 4.34548 10.9201 4.76505 10.0641C5.25193 9.07284 6.0797 7.97148 7.09249 6.95869C8.10587 5.94502 9.20694 5.11812 10.1979 4.63125C11.1343 4.17293 11.6259 4.18546 11.7497 4.221V4.22129ZM12.4752 3.4955C11.5629 2.58294 8.91353 3.75656 6.50568 6.11227L6.37456 6.24192C3.93291 8.68387 2.69897 11.4137 3.62814 12.3426C4.54041 13.2551 7.18981 12.0812 9.59766 9.7258L9.72878 9.59614C12.1704 7.15419 13.4044 4.42438 12.4752 3.4955ZM9.01143 6.95927C10.0248 7.97264 10.852 9.07372 11.3389 10.0647C11.7984 11.0023 11.7852 11.4932 11.7503 11.6176L11.7095 11.6258C11.537 11.6511 11.0533 11.6258 10.1973 11.2062C9.20636 10.7194 8.1047 9.89158 7.09191 8.87879C6.07854 7.86542 5.25134 6.76434 4.76447 5.77311C4.30557 4.83637 4.3181 4.34483 4.35364 4.221L4.39443 4.21285C4.56692 4.1875 5.05059 4.21285 5.90663 4.63241C6.89728 5.1187 7.99864 5.94648 9.01143 6.95927ZM9.85844 6.37304L9.72878 6.24192C7.28683 3.80027 4.55702 2.56633 3.62814 3.4955C2.71558 4.40777 3.8892 7.05717 6.2449 9.46502L6.37456 9.59614C8.81651 12.0378 11.551 13.2668 12.4752 12.3426C13.3878 11.4303 12.2138 8.78089 9.85844 6.37304ZM13.4321 7.33455C13.3495 7.41272 13.2835 7.50663 13.2379 7.61074C13.1923 7.71484 13.168 7.82703 13.1665 7.94068C13.165 8.05433 13.1862 8.16714 13.229 8.27244C13.2718 8.37774 13.3352 8.47339 13.4156 8.55376C13.496 8.63413 13.5916 8.69758 13.6969 8.74037C13.8022 8.78316 13.915 8.80441 14.0287 8.80288C14.1423 8.80134 14.2545 8.77705 14.3586 8.73144C14.4627 8.68583 14.5566 8.61982 14.6348 8.53731C14.7873 8.3764 14.8709 8.16233 14.8679 7.94068C14.8649 7.71904 14.7755 7.50731 14.6188 7.35056C14.4621 7.19382 14.2503 7.10444 14.0287 7.10145C13.807 7.09846 13.593 7.18209 13.4321 7.33455ZM7.35122 1.25372C7.26937 1.33207 7.20398 1.42597 7.15891 1.52993C7.11384 1.63388 7.08999 1.74579 7.08875 1.85909C7.08751 1.97239 7.10892 2.0848 7.15172 2.18971C7.19451 2.29462 7.25783 2.38993 7.33796 2.47004C7.41809 2.55015 7.51342 2.61345 7.61834 2.65622C7.72326 2.69899 7.83567 2.72037 7.94897 2.71911C8.06227 2.71784 8.17418 2.69396 8.27812 2.64887C8.38207 2.60377 8.47595 2.53836 8.55428 2.45649C8.70801 2.29578 8.79271 2.08127 8.79023 1.85889C8.78775 1.63651 8.69829 1.42393 8.54102 1.2667C8.38374 1.10946 8.17115 1.02005 7.94877 1.01763C7.72638 1.0152 7.51189 1.09995 7.35122 1.25372ZM1.27419 7.36077C1.19314 7.43929 1.12852 7.53315 1.08409 7.63688C1.03966 7.74061 1.01632 7.85215 1.01541 7.96499C1.0145 8.07783 1.03605 8.18972 1.0788 8.29416C1.12155 8.39859 1.18465 8.49348 1.26443 8.57329C1.3442 8.6531 1.43906 8.71625 1.54347 8.75905C1.64788 8.80186 1.75977 8.82346 1.87261 8.8226C1.98545 8.82175 2.097 8.79846 2.20075 8.75408C2.3045 8.7097 2.39839 8.64513 2.47695 8.56412C2.63243 8.40378 2.71863 8.18874 2.71694 7.9654C2.71525 7.74206 2.62581 7.52835 2.46792 7.37038C2.31003 7.21242 2.09636 7.12287 1.87302 7.12107C1.64969 7.11928 1.4346 7.20537 1.27419 7.36077ZM7.45116 13.5383C7.37015 13.6169 7.30558 13.7108 7.2612 13.8145C7.21682 13.9183 7.19353 14.0298 7.19268 14.1427C7.19182 14.2555 7.21343 14.3674 7.25623 14.4718C7.29903 14.5762 7.36218 14.6711 7.44199 14.7509C7.5218 14.8306 7.61669 14.8937 7.72112 14.9365C7.82556 14.9792 7.93745 15.0008 8.05029 14.9999C8.16313 14.999 8.27467 14.9756 8.3784 14.9312C8.48213 14.8868 8.57599 14.8221 8.65451 14.7411C8.80991 14.5807 8.89601 14.3656 8.89421 14.1423C8.89241 13.9189 8.80286 13.7053 8.6449 13.5474C8.48693 13.3895 8.27322 13.3 8.04988 13.2983C7.82655 13.2967 7.6115 13.3828 7.45116 13.5383Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M11.7497 4.22129L11.7581 4.2618C11.7838 4.4337 11.7584 4.91737 11.3386 5.77311C10.852 6.76434 10.0245 7.866 9.01143 8.87879C7.99806 9.89217 6.89698 10.7194 5.90605 11.2059C4.96901 11.6651 4.47747 11.6523 4.35364 11.6168L4.34548 11.576C4.32014 11.4041 4.34548 10.9201 4.76505 10.0641C5.25193 9.07284 6.0797 7.97148 7.09249 6.95869C8.10587 5.94502 9.20694 5.11812 10.1979 4.63125C11.1343 4.17293 11.6259 4.18546 11.7497 4.221V4.22129ZM12.4752 3.4955C11.5629 2.58294 8.91353 3.75656 6.50568 6.11227L6.37456 6.24192C3.93291 8.68387 2.69897 11.4137 3.62814 12.3426C4.54041 13.2551 7.18981 12.0812 9.59766 9.7258L9.72878 9.59614C12.1704 7.15419 13.4044 4.42438 12.4752 3.4955ZM9.01143 6.95927C10.0248 7.97264 10.852 9.07372 11.3389 10.0647C11.7984 11.0023 11.7852 11.4932 11.7503 11.6176L11.7095 11.6258C11.537 11.6511 11.0533 11.6258 10.1973 11.2062C9.20636 10.7194 8.1047 9.89158 7.09191 8.87879C6.07854 7.86542 5.25134 6.76434 4.76447 5.77311C4.30557 4.83637 4.3181 4.34483 4.35364 4.221L4.39443 4.21285C4.56692 4.1875 5.05059 4.21285 5.90663 4.63241C6.89728 5.1187 7.99864 5.94648 9.01143 6.95927ZM9.85844 6.37304L9.72878 6.24192C7.28683 3.80027 4.55702 2.56633 3.62814 3.4955C2.71558 4.40777 3.8892 7.05717 6.2449 9.46502L6.37456 9.59614C8.81651 12.0378 11.551 13.2668 12.4752 12.3426C13.3878 11.4303 12.2138 8.78089 9.85844 6.37304ZM13.4321 7.33455C13.3495 7.41272 13.2835 7.50663 13.2379 7.61074C13.1923 7.71484 13.168 7.82703 13.1665 7.94068C13.165 8.05433 13.1862 8.16714 13.229 8.27244C13.2718 8.37774 13.3352 8.47339 13.4156 8.55376C13.496 8.63413 13.5916 8.69758 13.6969 8.74037C13.8022 8.78316 13.915 8.80441 14.0287 8.80288C14.1423 8.80134 14.2545 8.77705 14.3586 8.73144C14.4627 8.68583 14.5566 8.61982 14.6348 8.53731C14.7873 8.3764 14.8709 8.16233 14.8679 7.94068C14.8649 7.71904 14.7755 7.50731 14.6188 7.35056C14.4621 7.19382 14.2503 7.10444 14.0287 7.10145C13.807 7.09846 13.593 7.18209 13.4321 7.33455ZM7.35122 1.25372C7.26937 1.33207 7.20398 1.42597 7.15891 1.52993C7.11384 1.63388 7.08999 1.74579 7.08875 1.85909C7.08751 1.97239 7.10892 2.0848 7.15172 2.18971C7.19451 2.29462 7.25783 2.38993 7.33796 2.47004C7.41809 2.55015 7.51342 2.61345 7.61834 2.65622C7.72326 2.69899 7.83567 2.72037 7.94897 2.71911C8.06227 2.71784 8.17418 2.69396 8.27812 2.64887C8.38207 2.60377 8.47595 2.53836 8.55428 2.45649C8.70801 2.29578 8.79271 2.08127 8.79023 1.85889C8.78775 1.63651 8.69829 1.42393 8.54102 1.2667C8.38374 1.10946 8.17115 1.02005 7.94877 1.01763C7.72638 1.0152 7.51189 1.09995 7.35122 1.25372ZM1.27419 7.36077C1.19314 7.43929 1.12852 7.53315 1.08409 7.63688C1.03966 7.74061 1.01632 7.85215 1.01541 7.96499C1.0145 8.07783 1.03605 8.18972 1.0788 8.29416C1.12155 8.39859 1.18465 8.49348 1.26443 8.57329C1.3442 8.6531 1.43906 8.71625 1.54347 8.75905C1.64788 8.80186 1.75977 8.82346 1.87261 8.8226C1.98545 8.82175 2.097 8.79846 2.20075 8.75408C2.3045 8.7097 2.39839 8.64513 2.47695 8.56412C2.63243 8.40378 2.71863 8.18874 2.71694 7.9654C2.71525 7.74206 2.62581 7.52835 2.46792 7.37038C2.31003 7.21242 2.09636 7.12287 1.87302 7.12107C1.64969 7.11928 1.4346 7.20537 1.27419 7.36077ZM7.45116 13.5383C7.37015 13.6169 7.30558 13.7108 7.2612 13.8145C7.21682 13.9183 7.19353 14.0298 7.19268 14.1427C7.19182 14.2555 7.21343 14.3674 7.25623 14.4718C7.29903 14.5762 7.36218 14.6711 7.44199 14.7509C7.5218 14.8306 7.61669 14.8937 7.72112 14.9365C7.82556 14.9792 7.93745 15.0008 8.05029 14.9999C8.16313 14.999 8.27467 14.9756 8.3784 14.9312C8.48213 14.8868 8.57599 14.8221 8.65451 14.7411C8.80991 14.5807 8.89601 14.3656 8.89421 14.1423C8.89241 13.9189 8.80286 13.7053 8.6449 13.5474C8.48693 13.3895 8.27322 13.3 8.04988 13.2983C7.82655 13.2967 7.6115 13.3828 7.45116 13.5383Z","fill-opacity":"0.2"})]}),O5=()=>C.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[C.jsx("path",{d:"M3.07981 6.57422L2.22738 6.82578L1.375 6.57422L1.6265 7.43609L1.375 8.29797L2.22744 8.04366L3.07981 8.29797L2.831 7.43609L3.07981 6.57422Z",fill:"url(#paint0_linear_18039_4924)"}),C.jsx("path",{d:"M8.63445 3.85273L8.25983 3.53592L7.77539 3.47361L8.0887 3.09486L8.15039 2.60498L8.52495 2.92186L9.00945 2.98411L8.69608 3.36286L8.63445 3.85273Z",fill:"url(#paint1_linear_18039_4924)"}),C.jsx("path",{d:"M6.03681 4.04956L5.23375 3.3705L4.19531 3.23694L4.867 2.425L4.99913 1.375L5.80213 2.05413L6.8405 2.18769L6.16894 2.99956L6.03681 4.04956Z",fill:"url(#paint2_linear_18039_4924)"}),C.jsx("path",{d:"M12.522 11.5454C12.4655 11.4861 12.3978 11.4387 12.3228 11.4058C12.2478 11.373 12.167 11.3554 12.0851 11.3541C12.0033 11.3528 11.922 11.3678 11.8459 11.3982C11.7699 11.4286 11.7007 11.4738 11.6424 11.5312C11.3956 11.7729 11.3894 12.1711 11.6284 12.4206L13.5568 14.4333C13.6133 14.4926 13.681 14.54 13.756 14.5729C13.831 14.6057 13.9118 14.6233 13.9936 14.6246C14.0755 14.6259 14.1568 14.6109 14.2328 14.5805C14.3088 14.5501 14.3781 14.5049 14.4364 14.4474C14.6832 14.2057 14.6894 13.8076 14.4504 13.5581L12.522 11.5454Z",fill:"url(#paint3_linear_18039_4924)"}),C.jsx("path",{d:"M10.1057 3.74423C10.6429 3.44848 11.3063 3.79023 11.3856 4.40348L11.642 6.38679C11.6813 6.69371 11.8245 6.97806 12.0477 7.19236L13.4836 8.56698C13.9278 8.99223 13.8113 9.73585 13.259 10.0015L11.4727 10.8609C11.195 10.9952 10.9717 11.221 10.8408 11.5002L9.99065 13.3064C9.72784 13.8647 8.99265 13.9824 8.57209 13.5335L7.21171 12.0815C7.00174 11.8568 6.72044 11.7118 6.41565 11.6712L4.45415 11.4119C3.84765 11.3318 3.50965 10.661 3.80209 10.1178L4.74765 8.36142C4.89462 8.08832 4.94409 7.77329 4.8879 7.46829L4.52528 5.50248C4.41309 4.89436 4.93965 4.36198 5.54109 4.47542L7.48509 4.84198C7.7869 4.89879 8.09903 4.84873 8.36859 4.70017L10.1057 3.74423Z",fill:"url(#paint4_linear_18039_4924)"}),C.jsxs("defs",{children:[C.jsxs("linearGradient",{id:"paint0_linear_18039_4924",x1:"2.22741",y1:"6.57422",x2:"2.22741",y2:"8.29797",gradientUnits:"userSpaceOnUse",children:[C.jsx("stop",{"stop-color":"#0265FF"}),C.jsx("stop",{offset:"1","stop-color":"#A6FFFF"})]}),C.jsxs("linearGradient",{id:"paint1_linear_18039_4924",x1:"8.39242",y1:"2.60498",x2:"8.39242",y2:"3.85273",gradientUnits:"userSpaceOnUse",children:[C.jsx("stop",{"stop-color":"#0265FF"}),C.jsx("stop",{offset:"1","stop-color":"#A6FFFF"})]}),C.jsxs("linearGradient",{id:"paint2_linear_18039_4924",x1:"5.51791",y1:"1.375",x2:"5.51791",y2:"4.04956",gradientUnits:"userSpaceOnUse",children:[C.jsx("stop",{"stop-color":"#0265FF"}),C.jsx("stop",{offset:"1","stop-color":"#A6FFFF"})]}),C.jsxs("linearGradient",{id:"paint3_linear_18039_4924",x1:"13.0394",y1:"11.354",x2:"13.0394",y2:"14.6247",gradientUnits:"userSpaceOnUse",children:[C.jsx("stop",{"stop-color":"#0265FF"}),C.jsx("stop",{offset:"1","stop-color":"#A6FFFF"})]}),C.jsxs("linearGradient",{id:"paint4_linear_18039_4924",x1:"8.72558",y1:"3.63623",x2:"8.72558",y2:"13.8086",gradientUnits:"userSpaceOnUse",children:[C.jsx("stop",{"stop-color":"#0265FF"}),C.jsx("stop",{offset:"1","stop-color":"#A6FFFF"})]})]})]}),cq=({isOpen:e})=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",className:Ge(Xa,e?"":"rotate-180"),children:C.jsx("path",{d:"M3.28125 9.65625L7.58125 5.35625C7.63125 5.30625 7.69375 5.28125 7.75625 5.28125C7.81875 5.28125 7.88125 5.30625 7.93125 5.35625L12.2312 9.65625",strokeWidth:"1.5",strokeLinecap:"round"})}),dq=()=>C.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[C.jsx("path",{d:"M4.52464 12.6249C4.59964 12.6499 4.64964 12.6499 4.72464 12.6499C4.92464 12.6499 5.12464 12.5249 5.19964 12.3249L6.37464 9.3749H9.62464L10.7996 12.3249C10.8746 12.5249 11.0746 12.6499 11.2746 12.6499C11.3496 12.6499 11.3996 12.6499 11.4746 12.6249C11.7496 12.5249 11.8746 12.2249 11.7746 11.9499L8.47464 3.6749C8.47464 3.6499 8.44964 3.6499 8.44964 3.6249C8.44964 3.6249 8.44964 3.5999 8.42464 3.5999C8.42464 3.5749 8.39964 3.5749 8.39964 3.5499L8.37464 3.5249C8.37464 3.5249 8.34964 3.4999 8.32464 3.4999C8.29964 3.4999 8.29964 3.4749 8.27464 3.4749C8.27464 3.4749 8.24964 3.4499 8.22464 3.4499C8.19964 3.4499 8.19964 3.4249 8.17464 3.4249H8.14964C8.12463 3.4249 8.12464 3.4249 8.09964 3.3999H7.89964C7.87464 3.3999 7.87464 3.3999 7.84964 3.4249H7.82464C7.79964 3.4249 7.79964 3.4499 7.77464 3.4499C7.74964 3.4499 7.74964 3.4749 7.72464 3.4749C7.69964 3.4749 7.69964 3.4999 7.67464 3.4999C7.64964 3.4999 7.64964 3.5249 7.62464 3.5249L7.59964 3.5499C7.59964 3.5749 7.57464 3.5749 7.57464 3.5999L7.54964 3.6249C7.54964 3.6499 7.52464 3.6499 7.52464 3.6749L4.22464 11.9499C4.12464 12.2249 4.24964 12.5249 4.52464 12.6249ZM6.79964 8.3249L7.99964 5.2749L9.19964 8.3249H6.79964Z",fill:"#121111"}),C.jsx("path",{d:"M4.52464 12.6249C4.59964 12.6499 4.64964 12.6499 4.72464 12.6499C4.92464 12.6499 5.12464 12.5249 5.19964 12.3249L6.37464 9.3749H9.62464L10.7996 12.3249C10.8746 12.5249 11.0746 12.6499 11.2746 12.6499C11.3496 12.6499 11.3996 12.6499 11.4746 12.6249C11.7496 12.5249 11.8746 12.2249 11.7746 11.9499L8.47464 3.6749C8.47464 3.6499 8.44964 3.6499 8.44964 3.6249C8.44964 3.6249 8.44964 3.5999 8.42464 3.5999C8.42464 3.5749 8.39964 3.5749 8.39964 3.5499L8.37464 3.5249C8.37464 3.5249 8.34964 3.4999 8.32464 3.4999C8.29964 3.4999 8.29964 3.4749 8.27464 3.4749C8.27464 3.4749 8.24964 3.4499 8.22464 3.4499C8.19964 3.4499 8.19964 3.4249 8.17464 3.4249H8.14964C8.12463 3.4249 8.12464 3.4249 8.09964 3.3999H7.89964C7.87464 3.3999 7.87464 3.3999 7.84964 3.4249H7.82464C7.79964 3.4249 7.79964 3.4499 7.77464 3.4499C7.74964 3.4499 7.74964 3.4749 7.72464 3.4749C7.69964 3.4749 7.69964 3.4999 7.67464 3.4999C7.64964 3.4999 7.64964 3.5249 7.62464 3.5249L7.59964 3.5499C7.59964 3.5749 7.57464 3.5749 7.57464 3.5999L7.54964 3.6249C7.54964 3.6499 7.52464 3.6499 7.52464 3.6749L4.22464 11.9499C4.12464 12.2249 4.24964 12.5249 4.52464 12.6249ZM6.79964 8.3249L7.99964 5.2749L9.19964 8.3249H6.79964Z",fill:"black","fill-opacity":"0.2"}),C.jsx("path",{d:"M4.52464 12.6249C4.59964 12.6499 4.64964 12.6499 4.72464 12.6499C4.92464 12.6499 5.12464 12.5249 5.19964 12.3249L6.37464 9.3749H9.62464L10.7996 12.3249C10.8746 12.5249 11.0746 12.6499 11.2746 12.6499C11.3496 12.6499 11.3996 12.6499 11.4746 12.6249C11.7496 12.5249 11.8746 12.2249 11.7746 11.9499L8.47464 3.6749C8.47464 3.6499 8.44964 3.6499 8.44964 3.6249C8.44964 3.6249 8.44964 3.5999 8.42464 3.5999C8.42464 3.5749 8.39964 3.5749 8.39964 3.5499L8.37464 3.5249C8.37464 3.5249 8.34964 3.4999 8.32464 3.4999C8.29964 3.4999 8.29964 3.4749 8.27464 3.4749C8.27464 3.4749 8.24964 3.4499 8.22464 3.4499C8.19964 3.4499 8.19964 3.4249 8.17464 3.4249H8.14964C8.12463 3.4249 8.12464 3.4249 8.09964 3.3999H7.89964C7.87464 3.3999 7.87464 3.3999 7.84964 3.4249H7.82464C7.79964 3.4249 7.79964 3.4499 7.77464 3.4499C7.74964 3.4499 7.74964 3.4749 7.72464 3.4749C7.69964 3.4749 7.69964 3.4999 7.67464 3.4999C7.64964 3.4999 7.64964 3.5249 7.62464 3.5249L7.59964 3.5499C7.59964 3.5749 7.57464 3.5749 7.57464 3.5999L7.54964 3.6249C7.54964 3.6499 7.52464 3.6499 7.52464 3.6749L4.22464 11.9499C4.12464 12.2249 4.24964 12.5249 4.52464 12.6249ZM6.79964 8.3249L7.99964 5.2749L9.19964 8.3249H6.79964Z",fill:"black","fill-opacity":"0.2"}),C.jsx("path",{d:"M4.52464 12.6249C4.59964 12.6499 4.64964 12.6499 4.72464 12.6499C4.92464 12.6499 5.12464 12.5249 5.19964 12.3249L6.37464 9.3749H9.62464L10.7996 12.3249C10.8746 12.5249 11.0746 12.6499 11.2746 12.6499C11.3496 12.6499 11.3996 12.6499 11.4746 12.6249C11.7496 12.5249 11.8746 12.2249 11.7746 11.9499L8.47464 3.6749C8.47464 3.6499 8.44964 3.6499 8.44964 3.6249C8.44964 3.6249 8.44964 3.5999 8.42464 3.5999C8.42464 3.5749 8.39964 3.5749 8.39964 3.5499L8.37464 3.5249C8.37464 3.5249 8.34964 3.4999 8.32464 3.4999C8.29964 3.4999 8.29964 3.4749 8.27464 3.4749C8.27464 3.4749 8.24964 3.4499 8.22464 3.4499C8.19964 3.4499 8.19964 3.4249 8.17464 3.4249H8.14964C8.12463 3.4249 8.12464 3.4249 8.09964 3.3999H7.89964C7.87464 3.3999 7.87464 3.3999 7.84964 3.4249H7.82464C7.79964 3.4249 7.79964 3.4499 7.77464 3.4499C7.74964 3.4499 7.74964 3.4749 7.72464 3.4749C7.69964 3.4749 7.69964 3.4999 7.67464 3.4999C7.64964 3.4999 7.64964 3.5249 7.62464 3.5249L7.59964 3.5499C7.59964 3.5749 7.57464 3.5749 7.57464 3.5999L7.54964 3.6249C7.54964 3.6499 7.52464 3.6499 7.52464 3.6749L4.22464 11.9499C4.12464 12.2249 4.24964 12.5249 4.52464 12.6249ZM6.79964 8.3249L7.99964 5.2749L9.19964 8.3249H6.79964Z",fill:"black","fill-opacity":"0.2"}),C.jsx("path",{d:"M4.52464 12.6249C4.59964 12.6499 4.64964 12.6499 4.72464 12.6499C4.92464 12.6499 5.12464 12.5249 5.19964 12.3249L6.37464 9.3749H9.62464L10.7996 12.3249C10.8746 12.5249 11.0746 12.6499 11.2746 12.6499C11.3496 12.6499 11.3996 12.6499 11.4746 12.6249C11.7496 12.5249 11.8746 12.2249 11.7746 11.9499L8.47464 3.6749C8.47464 3.6499 8.44964 3.6499 8.44964 3.6249C8.44964 3.6249 8.44964 3.5999 8.42464 3.5999C8.42464 3.5749 8.39964 3.5749 8.39964 3.5499L8.37464 3.5249C8.37464 3.5249 8.34964 3.4999 8.32464 3.4999C8.29964 3.4999 8.29964 3.4749 8.27464 3.4749C8.27464 3.4749 8.24964 3.4499 8.22464 3.4499C8.19964 3.4499 8.19964 3.4249 8.17464 3.4249H8.14964C8.12463 3.4249 8.12464 3.4249 8.09964 3.3999H7.89964C7.87464 3.3999 7.87464 3.3999 7.84964 3.4249H7.82464C7.79964 3.4249 7.79964 3.4499 7.77464 3.4499C7.74964 3.4499 7.74964 3.4749 7.72464 3.4749C7.69964 3.4749 7.69964 3.4999 7.67464 3.4999C7.64964 3.4999 7.64964 3.5249 7.62464 3.5249L7.59964 3.5499C7.59964 3.5749 7.57464 3.5749 7.57464 3.5999L7.54964 3.6249C7.54964 3.6499 7.52464 3.6499 7.52464 3.6749L4.22464 11.9499C4.12464 12.2249 4.24964 12.5249 4.52464 12.6249ZM6.79964 8.3249L7.99964 5.2749L9.19964 8.3249H6.79964Z",fill:"black","fill-opacity":"0.2"}),C.jsx("path",{d:"M4.52464 12.6249C4.59964 12.6499 4.64964 12.6499 4.72464 12.6499C4.92464 12.6499 5.12464 12.5249 5.19964 12.3249L6.37464 9.3749H9.62464L10.7996 12.3249C10.8746 12.5249 11.0746 12.6499 11.2746 12.6499C11.3496 12.6499 11.3996 12.6499 11.4746 12.6249C11.7496 12.5249 11.8746 12.2249 11.7746 11.9499L8.47464 3.6749C8.47464 3.6499 8.44964 3.6499 8.44964 3.6249C8.44964 3.6249 8.44964 3.5999 8.42464 3.5999C8.42464 3.5749 8.39964 3.5749 8.39964 3.5499L8.37464 3.5249C8.37464 3.5249 8.34964 3.4999 8.32464 3.4999C8.29964 3.4999 8.29964 3.4749 8.27464 3.4749C8.27464 3.4749 8.24964 3.4499 8.22464 3.4499C8.19964 3.4499 8.19964 3.4249 8.17464 3.4249H8.14964C8.12463 3.4249 8.12464 3.4249 8.09964 3.3999H7.89964C7.87464 3.3999 7.87464 3.3999 7.84964 3.4249H7.82464C7.79964 3.4249 7.79964 3.4499 7.77464 3.4499C7.74964 3.4499 7.74964 3.4749 7.72464 3.4749C7.69964 3.4749 7.69964 3.4999 7.67464 3.4999C7.64964 3.4999 7.64964 3.5249 7.62464 3.5249L7.59964 3.5499C7.59964 3.5749 7.57464 3.5749 7.57464 3.5999L7.54964 3.6249C7.54964 3.6499 7.52464 3.6499 7.52464 3.6749L4.22464 11.9499C4.12464 12.2249 4.24964 12.5249 4.52464 12.6249ZM6.79964 8.3249L7.99964 5.2749L9.19964 8.3249H6.79964Z",fill:"black","fill-opacity":"0.2"}),C.jsx("path",{d:"M4.52464 12.6249C4.59964 12.6499 4.64964 12.6499 4.72464 12.6499C4.92464 12.6499 5.12464 12.5249 5.19964 12.3249L6.37464 9.3749H9.62464L10.7996 12.3249C10.8746 12.5249 11.0746 12.6499 11.2746 12.6499C11.3496 12.6499 11.3996 12.6499 11.4746 12.6249C11.7496 12.5249 11.8746 12.2249 11.7746 11.9499L8.47464 3.6749C8.47464 3.6499 8.44964 3.6499 8.44964 3.6249C8.44964 3.6249 8.44964 3.5999 8.42464 3.5999C8.42464 3.5749 8.39964 3.5749 8.39964 3.5499L8.37464 3.5249C8.37464 3.5249 8.34964 3.4999 8.32464 3.4999C8.29964 3.4999 8.29964 3.4749 8.27464 3.4749C8.27464 3.4749 8.24964 3.4499 8.22464 3.4499C8.19964 3.4499 8.19964 3.4249 8.17464 3.4249H8.14964C8.12463 3.4249 8.12464 3.4249 8.09964 3.3999H7.89964C7.87464 3.3999 7.87464 3.3999 7.84964 3.4249H7.82464C7.79964 3.4249 7.79964 3.4499 7.77464 3.4499C7.74964 3.4499 7.74964 3.4749 7.72464 3.4749C7.69964 3.4749 7.69964 3.4999 7.67464 3.4999C7.64964 3.4999 7.64964 3.5249 7.62464 3.5249L7.59964 3.5499C7.59964 3.5749 7.57464 3.5749 7.57464 3.5999L7.54964 3.6249C7.54964 3.6499 7.52464 3.6499 7.52464 3.6749L4.22464 11.9499C4.12464 12.2249 4.24964 12.5249 4.52464 12.6249ZM6.79964 8.3249L7.99964 5.2749L9.19964 8.3249H6.79964Z",fill:"black","fill-opacity":"0.2"}),C.jsx("path",{d:"M4.52464 12.6249C4.59964 12.6499 4.64964 12.6499 4.72464 12.6499C4.92464 12.6499 5.12464 12.5249 5.19964 12.3249L6.37464 9.3749H9.62464L10.7996 12.3249C10.8746 12.5249 11.0746 12.6499 11.2746 12.6499C11.3496 12.6499 11.3996 12.6499 11.4746 12.6249C11.7496 12.5249 11.8746 12.2249 11.7746 11.9499L8.47464 3.6749C8.47464 3.6499 8.44964 3.6499 8.44964 3.6249C8.44964 3.6249 8.44964 3.5999 8.42464 3.5999C8.42464 3.5749 8.39964 3.5749 8.39964 3.5499L8.37464 3.5249C8.37464 3.5249 8.34964 3.4999 8.32464 3.4999C8.29964 3.4999 8.29964 3.4749 8.27464 3.4749C8.27464 3.4749 8.24964 3.4499 8.22464 3.4499C8.19964 3.4499 8.19964 3.4249 8.17464 3.4249H8.14964C8.12463 3.4249 8.12464 3.4249 8.09964 3.3999H7.89964C7.87464 3.3999 7.87464 3.3999 7.84964 3.4249H7.82464C7.79964 3.4249 7.79964 3.4499 7.77464 3.4499C7.74964 3.4499 7.74964 3.4749 7.72464 3.4749C7.69964 3.4749 7.69964 3.4999 7.67464 3.4999C7.64964 3.4999 7.64964 3.5249 7.62464 3.5249L7.59964 3.5499C7.59964 3.5749 7.57464 3.5749 7.57464 3.5999L7.54964 3.6249C7.54964 3.6499 7.52464 3.6499 7.52464 3.6749L4.22464 11.9499C4.12464 12.2249 4.24964 12.5249 4.52464 12.6249ZM6.79964 8.3249L7.99964 5.2749L9.19964 8.3249H6.79964Z",fill:"black","fill-opacity":"0.2"}),C.jsx("path",{d:"M4.52464 12.6249C4.59964 12.6499 4.64964 12.6499 4.72464 12.6499C4.92464 12.6499 5.12464 12.5249 5.19964 12.3249L6.37464 9.3749H9.62464L10.7996 12.3249C10.8746 12.5249 11.0746 12.6499 11.2746 12.6499C11.3496 12.6499 11.3996 12.6499 11.4746 12.6249C11.7496 12.5249 11.8746 12.2249 11.7746 11.9499L8.47464 3.6749C8.47464 3.6499 8.44964 3.6499 8.44964 3.6249C8.44964 3.6249 8.44964 3.5999 8.42464 3.5999C8.42464 3.5749 8.39964 3.5749 8.39964 3.5499L8.37464 3.5249C8.37464 3.5249 8.34964 3.4999 8.32464 3.4999C8.29964 3.4999 8.29964 3.4749 8.27464 3.4749C8.27464 3.4749 8.24964 3.4499 8.22464 3.4499C8.19964 3.4499 8.19964 3.4249 8.17464 3.4249H8.14964C8.12463 3.4249 8.12464 3.4249 8.09964 3.3999H7.89964C7.87464 3.3999 7.87464 3.3999 7.84964 3.4249H7.82464C7.79964 3.4249 7.79964 3.4499 7.77464 3.4499C7.74964 3.4499 7.74964 3.4749 7.72464 3.4749C7.69964 3.4749 7.69964 3.4999 7.67464 3.4999C7.64964 3.4999 7.64964 3.5249 7.62464 3.5249L7.59964 3.5499C7.59964 3.5749 7.57464 3.5749 7.57464 3.5999L7.54964 3.6249C7.54964 3.6499 7.52464 3.6499 7.52464 3.6749L4.22464 11.9499C4.12464 12.2249 4.24964 12.5249 4.52464 12.6249ZM6.79964 8.3249L7.99964 5.2749L9.19964 8.3249H6.79964Z",fill:"black","fill-opacity":"0.2"}),C.jsx("path",{d:"M14.475 1H1.525C1.225 1 1 1.225 1 1.525L1 14.4751C1 14.7751 1.225 15.0001 1.525 15.0001H14.475C14.775 15.0001 15 14.7751 15 14.4751V1.525C15 1.225 14.775 1 14.475 1ZM13.95 13.9501H2.05V2.05H13.95V13.9501Z",fill:"#121111"}),C.jsx("path",{d:"M14.475 1H1.525C1.225 1 1 1.225 1 1.525L1 14.4751C1 14.7751 1.225 15.0001 1.525 15.0001H14.475C14.775 15.0001 15 14.7751 15 14.4751V1.525C15 1.225 14.775 1 14.475 1ZM13.95 13.9501H2.05V2.05H13.95V13.9501Z",fill:"black","fill-opacity":"0.2"}),C.jsx("path",{d:"M14.475 1H1.525C1.225 1 1 1.225 1 1.525L1 14.4751C1 14.7751 1.225 15.0001 1.525 15.0001H14.475C14.775 15.0001 15 14.7751 15 14.4751V1.525C15 1.225 14.775 1 14.475 1ZM13.95 13.9501H2.05V2.05H13.95V13.9501Z",fill:"black","fill-opacity":"0.2"}),C.jsx("path",{d:"M14.475 1H1.525C1.225 1 1 1.225 1 1.525L1 14.4751C1 14.7751 1.225 15.0001 1.525 15.0001H14.475C14.775 15.0001 15 14.7751 15 14.4751V1.525C15 1.225 14.775 1 14.475 1ZM13.95 13.9501H2.05V2.05H13.95V13.9501Z",fill:"black","fill-opacity":"0.2"}),C.jsx("path",{d:"M14.475 1H1.525C1.225 1 1 1.225 1 1.525L1 14.4751C1 14.7751 1.225 15.0001 1.525 15.0001H14.475C14.775 15.0001 15 14.7751 15 14.4751V1.525C15 1.225 14.775 1 14.475 1ZM13.95 13.9501H2.05V2.05H13.95V13.9501Z",fill:"black","fill-opacity":"0.2"}),C.jsx("path",{d:"M14.475 1H1.525C1.225 1 1 1.225 1 1.525L1 14.4751C1 14.7751 1.225 15.0001 1.525 15.0001H14.475C14.775 15.0001 15 14.7751 15 14.4751V1.525C15 1.225 14.775 1 14.475 1ZM13.95 13.9501H2.05V2.05H13.95V13.9501Z",fill:"black","fill-opacity":"0.2"}),C.jsx("path",{d:"M14.475 1H1.525C1.225 1 1 1.225 1 1.525L1 14.4751C1 14.7751 1.225 15.0001 1.525 15.0001H14.475C14.775 15.0001 15 14.7751 15 14.4751V1.525C15 1.225 14.775 1 14.475 1ZM13.95 13.9501H2.05V2.05H13.95V13.9501Z",fill:"black","fill-opacity":"0.2"}),C.jsx("path",{d:"M14.475 1H1.525C1.225 1 1 1.225 1 1.525L1 14.4751C1 14.7751 1.225 15.0001 1.525 15.0001H14.475C14.775 15.0001 15 14.7751 15 14.4751V1.525C15 1.225 14.775 1 14.475 1ZM13.95 13.9501H2.05V2.05H13.95V13.9501Z",fill:"black","fill-opacity":"0.2"}),C.jsx("path",{d:"M14.475 1H1.525C1.225 1 1 1.225 1 1.525L1 14.4751C1 14.7751 1.225 15.0001 1.525 15.0001H14.475C14.775 15.0001 15 14.7751 15 14.4751V1.525C15 1.225 14.775 1 14.475 1ZM13.95 13.9501H2.05V2.05H13.95V13.9501Z",fill:"black","fill-opacity":"0.2"})]}),fq=()=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1",height:"14",viewBox:"0 0 1 14",fill:"none",children:C.jsx("path",{d:"M0.5 0V14",stroke:"#E0E0E0"})}),pq=()=>C.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[C.jsx("path",{d:"M8.5 3.15V10.5C8.5 10.8 8.3 11 8 11C7.7 11 7.5 10.8 7.5 10.5V3.3L5.6 5.2C5.4 5.4 5.1 5.4 4.9 5.2C4.7 5 4.7 4.7 4.9 4.5L7.35 2.05C7.75 1.65 8.35 1.65 8.75 2.05L11.2 4.5C11.4 4.7 11.4 5 11.2 5.2C11 5.4 10.7 5.4 10.5 5.2L8.5 3.15ZM13 9.5C13 9.2 13.2 9 13.5 9C13.8 9 14 9.2 14 9.5V12C14 12.85 13.35 13.5 12.5 13.5H3.5C2.65 13.5 2 12.85 2 12V9.5C2 9.2 2.2 9 2.5 9C2.8 9 3 9.2 3 9.5V12C3 12.3 3.2 12.5 3.5 12.5H12.5C12.8 12.5 13 12.3 13 12V9.5Z",fill:"currentColor"}),C.jsx("path",{d:"M8.5 3.15V10.5C8.5 10.8 8.3 11 8 11C7.7 11 7.5 10.8 7.5 10.5V3.3L5.6 5.2C5.4 5.4 5.1 5.4 4.9 5.2C4.7 5 4.7 4.7 4.9 4.5L7.35 2.05C7.75 1.65 8.35 1.65 8.75 2.05L11.2 4.5C11.4 4.7 11.4 5 11.2 5.2C11 5.4 10.7 5.4 10.5 5.2L8.5 3.15ZM13 9.5C13 9.2 13.2 9 13.5 9C13.8 9 14 9.2 14 9.5V12C14 12.85 13.35 13.5 12.5 13.5H3.5C2.65 13.5 2 12.85 2 12V9.5C2 9.2 2.2 9 2.5 9C2.8 9 3 9.2 3 9.5V12C3 12.3 3.2 12.5 3.5 12.5H12.5C12.8 12.5 13 12.3 13 12V9.5Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M8.5 3.15V10.5C8.5 10.8 8.3 11 8 11C7.7 11 7.5 10.8 7.5 10.5V3.3L5.6 5.2C5.4 5.4 5.1 5.4 4.9 5.2C4.7 5 4.7 4.7 4.9 4.5L7.35 2.05C7.75 1.65 8.35 1.65 8.75 2.05L11.2 4.5C11.4 4.7 11.4 5 11.2 5.2C11 5.4 10.7 5.4 10.5 5.2L8.5 3.15ZM13 9.5C13 9.2 13.2 9 13.5 9C13.8 9 14 9.2 14 9.5V12C14 12.85 13.35 13.5 12.5 13.5H3.5C2.65 13.5 2 12.85 2 12V9.5C2 9.2 2.2 9 2.5 9C2.8 9 3 9.2 3 9.5V12C3 12.3 3.2 12.5 3.5 12.5H12.5C12.8 12.5 13 12.3 13 12V9.5Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M8.5 3.15V10.5C8.5 10.8 8.3 11 8 11C7.7 11 7.5 10.8 7.5 10.5V3.3L5.6 5.2C5.4 5.4 5.1 5.4 4.9 5.2C4.7 5 4.7 4.7 4.9 4.5L7.35 2.05C7.75 1.65 8.35 1.65 8.75 2.05L11.2 4.5C11.4 4.7 11.4 5 11.2 5.2C11 5.4 10.7 5.4 10.5 5.2L8.5 3.15ZM13 9.5C13 9.2 13.2 9 13.5 9C13.8 9 14 9.2 14 9.5V12C14 12.85 13.35 13.5 12.5 13.5H3.5C2.65 13.5 2 12.85 2 12V9.5C2 9.2 2.2 9 2.5 9C2.8 9 3 9.2 3 9.5V12C3 12.3 3.2 12.5 3.5 12.5H12.5C12.8 12.5 13 12.3 13 12V9.5Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M8.5 3.15V10.5C8.5 10.8 8.3 11 8 11C7.7 11 7.5 10.8 7.5 10.5V3.3L5.6 5.2C5.4 5.4 5.1 5.4 4.9 5.2C4.7 5 4.7 4.7 4.9 4.5L7.35 2.05C7.75 1.65 8.35 1.65 8.75 2.05L11.2 4.5C11.4 4.7 11.4 5 11.2 5.2C11 5.4 10.7 5.4 10.5 5.2L8.5 3.15ZM13 9.5C13 9.2 13.2 9 13.5 9C13.8 9 14 9.2 14 9.5V12C14 12.85 13.35 13.5 12.5 13.5H3.5C2.65 13.5 2 12.85 2 12V9.5C2 9.2 2.2 9 2.5 9C2.8 9 3 9.2 3 9.5V12C3 12.3 3.2 12.5 3.5 12.5H12.5C12.8 12.5 13 12.3 13 12V9.5Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M8.5 3.15V10.5C8.5 10.8 8.3 11 8 11C7.7 11 7.5 10.8 7.5 10.5V3.3L5.6 5.2C5.4 5.4 5.1 5.4 4.9 5.2C4.7 5 4.7 4.7 4.9 4.5L7.35 2.05C7.75 1.65 8.35 1.65 8.75 2.05L11.2 4.5C11.4 4.7 11.4 5 11.2 5.2C11 5.4 10.7 5.4 10.5 5.2L8.5 3.15ZM13 9.5C13 9.2 13.2 9 13.5 9C13.8 9 14 9.2 14 9.5V12C14 12.85 13.35 13.5 12.5 13.5H3.5C2.65 13.5 2 12.85 2 12V9.5C2 9.2 2.2 9 2.5 9C2.8 9 3 9.2 3 9.5V12C3 12.3 3.2 12.5 3.5 12.5H12.5C12.8 12.5 13 12.3 13 12V9.5Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M8.5 3.15V10.5C8.5 10.8 8.3 11 8 11C7.7 11 7.5 10.8 7.5 10.5V3.3L5.6 5.2C5.4 5.4 5.1 5.4 4.9 5.2C4.7 5 4.7 4.7 4.9 4.5L7.35 2.05C7.75 1.65 8.35 1.65 8.75 2.05L11.2 4.5C11.4 4.7 11.4 5 11.2 5.2C11 5.4 10.7 5.4 10.5 5.2L8.5 3.15ZM13 9.5C13 9.2 13.2 9 13.5 9C13.8 9 14 9.2 14 9.5V12C14 12.85 13.35 13.5 12.5 13.5H3.5C2.65 13.5 2 12.85 2 12V9.5C2 9.2 2.2 9 2.5 9C2.8 9 3 9.2 3 9.5V12C3 12.3 3.2 12.5 3.5 12.5H12.5C12.8 12.5 13 12.3 13 12V9.5Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M8.5 3.15V10.5C8.5 10.8 8.3 11 8 11C7.7 11 7.5 10.8 7.5 10.5V3.3L5.6 5.2C5.4 5.4 5.1 5.4 4.9 5.2C4.7 5 4.7 4.7 4.9 4.5L7.35 2.05C7.75 1.65 8.35 1.65 8.75 2.05L11.2 4.5C11.4 4.7 11.4 5 11.2 5.2C11 5.4 10.7 5.4 10.5 5.2L8.5 3.15ZM13 9.5C13 9.2 13.2 9 13.5 9C13.8 9 14 9.2 14 9.5V12C14 12.85 13.35 13.5 12.5 13.5H3.5C2.65 13.5 2 12.85 2 12V9.5C2 9.2 2.2 9 2.5 9C2.8 9 3 9.2 3 9.5V12C3 12.3 3.2 12.5 3.5 12.5H12.5C12.8 12.5 13 12.3 13 12V9.5Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M8.5 3.15V10.5C8.5 10.8 8.3 11 8 11C7.7 11 7.5 10.8 7.5 10.5V3.3L5.6 5.2C5.4 5.4 5.1 5.4 4.9 5.2C4.7 5 4.7 4.7 4.9 4.5L7.35 2.05C7.75 1.65 8.35 1.65 8.75 2.05L11.2 4.5C11.4 4.7 11.4 5 11.2 5.2C11 5.4 10.7 5.4 10.5 5.2L8.5 3.15ZM13 9.5C13 9.2 13.2 9 13.5 9C13.8 9 14 9.2 14 9.5V12C14 12.85 13.35 13.5 12.5 13.5H3.5C2.65 13.5 2 12.85 2 12V9.5C2 9.2 2.2 9 2.5 9C2.8 9 3 9.2 3 9.5V12C3 12.3 3.2 12.5 3.5 12.5H12.5C12.8 12.5 13 12.3 13 12V9.5Z","fill-opacity":"0.2"})]}),hq=()=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:C.jsx("rect",{x:"4",y:"4",width:"8",height:"8",rx:"2"})}),YE=()=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:C.jsx("path",{d:"M3.7789 14.5951C3.1481 14.594 2.54346 14.3429 2.09751 13.8968C1.65156 13.4506 1.4007 12.8459 1.3999 12.2151V3.9801C1.4007 3.3493 1.65156 2.74455 2.09751 2.29841C2.54346 1.85228 3.1481 1.60116 3.7789 1.6001H8.3589C8.48515 1.6001 8.60622 1.65025 8.69548 1.73951C8.78475 1.82878 8.8349 1.94985 8.8349 2.0761C8.8349 2.20234 8.78475 2.32341 8.69548 2.41268C8.60622 2.50195 8.48515 2.5521 8.3589 2.5521H3.7799C3.40142 2.55316 3.03877 2.70411 2.77132 2.97193C2.50388 3.23975 2.35343 3.60261 2.3529 3.9811V12.2141C2.3539 13.0021 2.9929 13.6411 3.7799 13.6431H12.0089C12.3874 13.642 12.75 13.4911 13.0175 13.2233C13.2849 12.9554 13.4354 12.5926 13.4359 12.2141V7.6311C13.433 7.56682 13.4431 7.50261 13.4656 7.44235C13.4882 7.38209 13.5227 7.32704 13.5672 7.28051C13.6116 7.23397 13.6651 7.19694 13.7242 7.17164C13.7834 7.14633 13.8471 7.13329 13.9114 7.13329C13.9757 7.13329 14.0394 7.14633 14.0986 7.17164C14.1577 7.19694 14.2112 7.23397 14.2556 7.28051C14.3001 7.32704 14.3346 7.38209 14.3572 7.44235C14.3797 7.50261 14.3899 7.56682 14.3869 7.6311V12.2141C14.3861 12.8447 14.1354 13.4493 13.6896 13.8954C13.2439 14.3415 12.6395 14.5928 12.0089 14.5941H3.7789V14.5951ZM11.9199 4.0661L12.3699 4.5141L10.1819 6.7041L7.5659 9.3201L6.5799 9.4121L6.6719 8.4241L9.2849 5.8061L11.4739 3.6161L11.9209 4.0661H11.9199ZM11.4729 2.5331C11.3892 2.53318 11.3063 2.54983 11.2291 2.5821C11.1519 2.61436 11.0818 2.66161 11.0229 2.7211L8.6119 5.1331L5.8399 7.9291C5.7876 7.98109 5.75507 8.0497 5.7479 8.1231L5.5699 10.1001C5.56602 10.1441 5.57133 10.1884 5.58549 10.2302C5.59966 10.272 5.62238 10.3104 5.6522 10.3429C5.68201 10.3755 5.71828 10.4014 5.75869 10.4192C5.7991 10.437 5.84276 10.4461 5.8869 10.4461H5.9159L7.8919 10.2691C7.96495 10.2617 8.03316 10.2292 8.0849 10.1771L10.8639 7.3961L13.2739 4.9841C13.333 4.92511 13.3799 4.85505 13.4119 4.77792C13.4439 4.70079 13.4604 4.6181 13.4604 4.5346C13.4604 4.45109 13.4439 4.36841 13.4119 4.29128C13.3799 4.21414 13.333 4.14408 13.2739 4.0851L12.5929 3.3941L11.9199 2.7211C11.8017 2.60167 11.6409 2.53405 11.4729 2.5331Z"})}),mq=()=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"29",height:"29",viewBox:"0 0 29 29",fill:"none",children:C.jsx("path",{d:"M14.0287 0C6.28125 0 0 6.28125 0 14.0306C0 21.7791 6.28125 28.0603 14.0297 28.0603C21.7781 28.0603 28.0594 21.7791 28.0594 14.0306C28.0594 6.28219 21.7781 0 14.0297 0H14.0287ZM15.3909 22.1259C15.3909 22.3119 15.3171 22.4903 15.1855 22.6218C15.054 22.7533 14.8757 22.8272 14.6897 22.8272H12.585C12.399 22.8272 12.2207 22.7533 12.0891 22.6218C11.9576 22.4903 11.8838 22.3119 11.8838 22.1259V20.0213C11.8838 19.6341 12.1978 19.32 12.585 19.32H14.6897C15.0769 19.32 15.3909 19.6341 15.3909 20.0213V22.1259ZM18.8691 12.4697C18.5859 12.8728 17.9466 13.3847 17.145 14.0091L16.2572 14.6222C15.8259 14.9559 15.4434 15.3459 15.3019 15.7913C15.2531 15.9431 15.2175 16.1934 15.1931 16.4625C15.1809 16.5984 15.0591 16.875 14.7759 16.875H12.4913C12.12 16.875 12.0534 16.5844 12.06 16.4428C12.1003 15.51 12.1866 14.6831 12.5662 14.2369C13.335 13.3359 15.0844 12.2137 15.0844 12.2137C15.3506 12.0122 15.5662 11.7937 15.7294 11.5556C16.0256 11.1469 16.2722 10.6978 16.2722 10.2075C16.2722 9.64312 16.1072 9.12937 15.7753 8.66344C15.4472 8.20031 14.8425 7.96781 13.9669 7.96781C13.1053 7.96781 12.495 8.25375 12.135 8.82562C11.8688 9.2475 11.7009 9.63656 11.6316 10.0594C11.6072 10.2094 11.5116 10.5234 11.1909 10.5234H8.96625C8.49187 10.5234 8.38781 10.2159 8.40094 10.0678C8.5725 8.20125 9.30281 6.92531 10.5928 6.10594C11.4703 5.5425 12.5494 5.25938 13.8291 5.25938C15.5119 5.25938 16.9078 5.66062 18.0216 6.46313C19.1325 7.26562 19.6903 8.45344 19.6903 10.0294C19.6903 10.995 19.3509 11.8088 18.8691 12.4697Z",fill:"#0265FF"})}),gq=()=>C.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:[C.jsx("path",{d:"M8 15C4.2 15 1 11.9 1 8C1 4.2 4.1 1 8 1C11.8 1 15 4.1 15 8C15 11.9 11.8 15 8 15ZM8 2C4.7 2 2 4.7 2 8C2 11.3 4.7 14 8 14C11.3 14 14 11.3 14 8C14 4.7 11.3 2 8 2Z"}),C.jsx("path",{d:"M7.19922 4.8C7.19922 5.2 7.49922 5.6 7.99922 5.6C8.49922 5.6 8.79922 5.3 8.79922 4.8C8.79922 4.3 8.39922 4 7.99922 4C7.59922 4 7.19922 4.3 7.19922 4.8ZM7.99922 12C7.69922 12 7.49922 11.8 7.49922 11.5V7C7.49922 6.7 7.69922 6.5 7.99922 6.5C8.29922 6.5 8.49922 6.7 8.49922 7V11.5C8.49922 11.8 8.29922 12 7.99922 12Z"})]}),I5=({size:e=20})=>C.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 16 16",fill:"none",children:[C.jsx("path",{d:"M3.07981 6.57422L2.22738 6.82578L1.375 6.57422L1.6265 7.43609L1.375 8.29797L2.22744 8.04366L3.07981 8.29797L2.831 7.43609L3.07981 6.57422Z",fill:"url(#paint0_linear_18510_37545)"}),C.jsx("path",{d:"M8.63384 3.85224L8.25922 3.53543L7.77478 3.47312L8.08809 3.09437L8.14978 2.60449L8.52434 2.92137L9.00884 2.98362L8.69547 3.36237L8.63384 3.85224Z",fill:"url(#paint1_linear_18510_37545)"}),C.jsx("path",{d:"M6.03681 4.04956L5.23375 3.3705L4.19531 3.23694L4.867 2.425L4.99913 1.375L5.80213 2.05413L6.8405 2.18769L6.16894 2.99956L6.03681 4.04956Z",fill:"url(#paint2_linear_18510_37545)"}),C.jsx("path",{d:"M13.4934 5.30179C13.5249 5.37309 13.5505 5.45627 13.5703 5.55134C13.59 5.6464 13.5998 5.74543 13.5998 5.84842C13.5998 5.9514 13.5801 6.05439 13.5407 6.15738C13.5013 6.26036 13.4382 6.35939 13.3514 6.45445C13.2568 6.54952 13.172 6.6327 13.0971 6.704C13.0222 6.7753 12.9571 6.83867 12.9019 6.89413C12.8389 6.9575 12.7797 7.01296 12.7245 7.06049L10.5126 4.83835C10.6072 4.75121 10.7196 4.64624 10.8497 4.52345C10.9798 4.40066 11.0882 4.30361 11.175 4.23231C11.2854 4.14517 11.3997 4.08378 11.518 4.04813C11.6363 4.01248 11.7526 3.99663 11.867 4.00059C11.9813 4.00456 12.0917 4.02238 12.1981 4.05407C12.3046 4.08576 12.3973 4.12141 12.4761 4.16102C12.6417 4.24816 12.8251 4.40066 13.0261 4.61852C13.2272 4.83637 13.383 5.06413 13.4934 5.30179ZM4.27895 11.1007C4.32627 11.0532 4.43667 10.9403 4.61015 10.7621C4.78364 10.5838 5.00049 10.364 5.26072 10.1026L6.1242 9.2351L7.08231 8.27257L9.62545 5.7177L11.8374 7.95172L9.29425 10.5066L8.34797 11.4691C8.03254 11.7781 7.74865 12.0613 7.49631 12.3188C7.24397 12.5762 7.035 12.7881 6.8694 12.9545C6.7038 13.1209 6.60523 13.2159 6.57369 13.2397C6.49483 13.311 6.40415 13.3863 6.30163 13.4655C6.19912 13.5447 6.09266 13.6081 5.98226 13.6556C5.87186 13.7111 5.71021 13.7784 5.49729 13.8576C5.28438 13.9368 5.06161 14.0141 4.82898 14.0893C4.59635 14.1646 4.37555 14.23 4.16658 14.2854C3.95761 14.3409 3.80187 14.3765 3.69936 14.3924C3.48644 14.4161 3.3445 14.3844 3.27353 14.2973C3.20256 14.2102 3.18284 14.0636 3.21439 13.8576C3.23016 13.7467 3.26762 13.5863 3.32676 13.3764C3.3859 13.1664 3.44899 12.9486 3.51601 12.7228C3.58304 12.497 3.6481 12.2891 3.71119 12.0989C3.77427 11.9088 3.82553 11.7781 3.86496 11.7068C3.91227 11.5959 3.9655 11.4949 4.02464 11.4038C4.08378 11.3127 4.16855 11.2117 4.27895 11.1007Z",fill:"url(#paint3_linear_18510_37545)"}),C.jsxs("defs",{children:[C.jsxs("linearGradient",{id:"paint0_linear_18510_37545",x1:"2.22741",y1:"6.57422",x2:"2.22741",y2:"8.29797",gradientUnits:"userSpaceOnUse",children:[C.jsx("stop",{"stop-color":"#0265FF"}),C.jsx("stop",{offset:"1","stop-color":"#A6FFFF"})]}),C.jsxs("linearGradient",{id:"paint1_linear_18510_37545",x1:"8.39181",y1:"2.60449",x2:"8.39181",y2:"3.85224",gradientUnits:"userSpaceOnUse",children:[C.jsx("stop",{"stop-color":"#0265FF"}),C.jsx("stop",{offset:"1","stop-color":"#A6FFFF"})]}),C.jsxs("linearGradient",{id:"paint2_linear_18510_37545",x1:"5.51791",y1:"1.375",x2:"5.51791",y2:"4.04956",gradientUnits:"userSpaceOnUse",children:[C.jsx("stop",{"stop-color":"#0265FF"}),C.jsx("stop",{offset:"1","stop-color":"#A6FFFF"})]}),C.jsxs("linearGradient",{id:"paint3_linear_18510_37545",x1:"8.39983",y1:"4",x2:"8.39983",y2:"14.4",gradientUnits:"userSpaceOnUse",children:[C.jsx("stop",{"stop-color":"#0265FF"}),C.jsx("stop",{offset:"1","stop-color":"#A6FFFF"})]})]})]}),vq=()=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"26",height:"26",viewBox:"0 0 26 26",fill:"currentColor",children:C.jsx("path",{d:"M6.5 13.0001C6.5 12.6394 6.66738 12.2932 6.968 12.0349L16.7732 3.64987C17.0905 3.38703 17.4907 3.24537 17.9026 3.25012C18.3284 3.25012 18.7363 3.39474 19.032 3.64987C19.656 4.18937 19.656 5.04249 19.032 5.58199L10.3545 13.0001L19.032 20.4182C19.6544 20.9577 19.6544 21.8109 19.032 22.3504C18.7151 22.6136 18.3138 22.7566 17.901 22.7501C17.4753 22.7501 17.0674 22.6055 16.7732 22.3504L6.96638 13.9654C6.82284 13.8483 6.70669 13.7012 6.62612 13.5345C6.54554 13.3677 6.50249 13.1853 6.5 13.0001Z"})}),yq=()=>C.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:[C.jsx("g",{"clip-path":"url(#clip0_18449_37925)",children:C.jsx("path",{d:"M2.71657 9.24964C2.74357 9.24964 2.76957 9.22364 2.82357 9.19764L2.84957 9.17064C2.87657 9.17064 2.87657 9.14364 2.90357 9.14364L4.90157 7.49264C5.01434 7.40051 5.08606 7.26749 5.10105 7.12264C5.11604 6.9778 5.07309 6.83291 4.98157 6.71964C4.88944 6.60687 4.75642 6.53515 4.61158 6.52016C4.46673 6.50517 4.32184 6.54812 4.20857 6.63964L3.06257 7.59964C3.16957 4.90864 4.95457 2.96364 7.45857 2.80364C8.97757 2.69664 9.90957 2.93664 10.6556 3.57564C10.8956 3.78964 11.2416 3.76264 11.4556 3.52264C11.5058 3.46726 11.5443 3.40232 11.5689 3.3317C11.5934 3.26109 11.6035 3.18625 11.5984 3.11166C11.5934 3.03707 11.5734 2.96426 11.5395 2.89759C11.5057 2.83092 11.4588 2.77176 11.4016 2.72364C10.1766 1.68464 8.71157 1.60464 7.43157 1.68464C4.34157 1.87064 2.13157 4.24264 1.91757 7.38564L0.95757 6.47964C0.903958 6.42795 0.840508 6.38756 0.770985 6.36086C0.701463 6.33416 0.627285 6.3217 0.552854 6.32422C0.478424 6.32673 0.405258 6.34418 0.337699 6.37552C0.270141 6.40685 0.209566 6.45144 0.15957 6.50664C-0.05343 6.74664 -0.05343 7.09264 0.18557 7.30664L2.10357 9.11664L2.15757 9.17064L2.18357 9.19764C2.1977 9.21273 2.21696 9.222 2.23757 9.22364C2.23757 9.22364 2.26357 9.22364 2.26357 9.25064C2.29057 9.25064 2.31757 9.27764 2.34357 9.27764H2.55657C2.63657 9.27764 2.66357 9.27764 2.71657 9.25064C2.69057 9.25064 2.69057 9.25064 2.71657 9.25064V9.24964ZM15.7966 7.35964L13.9066 5.81364C13.9066 5.81364 13.8796 5.81364 13.8796 5.78764C13.8526 5.78764 13.8526 5.76064 13.8256 5.76064C13.7996 5.76064 13.7996 5.73364 13.7726 5.73364C13.7456 5.73364 13.7456 5.70764 13.7196 5.70764C13.6926 5.70764 13.6926 5.70764 13.6656 5.68064H13.4526C13.3829 5.68128 13.314 5.69575 13.25 5.72321C13.186 5.75068 13.128 5.7906 13.0796 5.84064L11.4026 7.57264C11.3507 7.62627 11.3102 7.68978 11.2834 7.7594C11.2566 7.82902 11.2441 7.90331 11.2466 7.97787C11.2491 8.05242 11.2666 8.1257 11.2981 8.19335C11.3295 8.261 11.3742 8.32163 11.4296 8.37164C11.5356 8.47764 11.6696 8.53164 11.8296 8.53164C11.978 8.53068 12.1206 8.47351 12.2286 8.37164L13.1346 7.43864C13.1606 7.59864 13.1606 7.75864 13.1606 7.89164C13.1606 10.8486 11.4296 13.0066 8.92457 13.1666C7.03357 13.2736 6.10157 12.9806 4.66257 11.7016C4.60723 11.6512 4.54228 11.6125 4.47161 11.5877C4.40093 11.563 4.32599 11.5528 4.25128 11.5578C4.17658 11.5627 4.10364 11.5827 4.03684 11.6165C3.97005 11.6504 3.91077 11.6973 3.86257 11.7546C3.81219 11.81 3.77353 11.875 3.74889 11.9458C3.72425 12.0165 3.71415 12.0914 3.71919 12.1661C3.72424 12.2409 3.74432 12.3138 3.77824 12.3805C3.81215 12.4473 3.8592 12.5065 3.91657 12.5546C5.38157 13.8596 6.47357 14.3386 8.23257 14.3386C8.47257 14.3386 8.71257 14.3386 8.97857 14.3126C12.0416 14.1256 14.2536 11.4346 14.2536 7.94564V7.62564L15.0526 8.29164C15.1586 8.37164 15.2926 8.42464 15.3986 8.42464C15.5586 8.42464 15.7186 8.34464 15.8246 8.21164C16.0916 7.91864 16.0376 7.54564 15.7986 7.35864L15.7966 7.35964Z"})}),C.jsx("defs",{children:C.jsx("clipPath",{id:"clip0_18449_37925",children:C.jsx("rect",{width:"16",height:"16",fill:"white"})})})]}),xq=()=>C.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:[C.jsx("path",{d:"M13.5483 1.00195H5.68641C5.30143 1.00191 4.93219 1.15477 4.6599 1.42692C4.3876 1.69907 4.23454 2.06822 4.23438 2.4532V4.2207H2.25C1.91848 4.2207 1.60054 4.3524 1.36612 4.58682C1.1317 4.82124 1 5.13918 1 5.4707V13.752C1 14.0835 1.1317 14.4014 1.36612 14.6358C1.60054 14.8703 1.91848 15.002 2.25 15.002H10.5312C10.8628 15.002 11.1807 14.8703 11.4151 14.6358C11.6496 14.4014 11.7812 14.0835 11.7812 13.752V11.7832H13.5483C13.9333 11.7832 14.3026 11.6302 14.5748 11.3579C14.8471 11.0856 15 10.7164 15 10.3313V2.4532C14.9998 2.06828 14.8468 1.69917 14.5746 1.42703C14.3024 1.15489 13.9332 1.00199 13.5483 1.00195ZM10.5312 14.0645H2.25C2.16712 14.0645 2.08763 14.0315 2.02903 13.9729C1.97042 13.9143 1.9375 13.8348 1.9375 13.752V5.4707C1.9375 5.38782 1.97042 5.30834 2.02903 5.24973C2.08763 5.19113 2.16712 5.1582 2.25 5.1582H10.5312C10.6141 5.1582 10.6936 5.19113 10.7522 5.24973C10.8108 5.30834 10.8438 5.38782 10.8438 5.4707V13.752C10.8438 13.8348 10.8108 13.9143 10.7522 13.9729C10.6936 14.0315 10.6141 14.0645 10.5312 14.0645ZM14.0781 10.3313C14.0781 10.4677 14.0239 10.5986 13.9275 10.695C13.831 10.7915 13.7002 10.8457 13.5638 10.8457H11.7969V5.4707C11.7969 5.13918 11.6652 4.82124 11.4308 4.58682C11.1963 4.3524 10.8784 4.2207 10.5469 4.2207H5.17188V2.4532C5.17188 2.31678 5.22607 2.18595 5.32253 2.08949C5.419 1.99302 5.54983 1.93883 5.68625 1.93883H13.5639C13.7003 1.93887 13.8311 1.99308 13.9275 2.08954C14.024 2.186 14.0781 2.31681 14.0781 2.4532V10.3313Z"}),C.jsx("path",{d:"M8.47518 7.73633H4.32861C4.08158 7.73633 3.86971 7.92383 3.85189 8.17008C3.84708 8.23441 3.85559 8.29904 3.8769 8.35993C3.89821 8.42082 3.93186 8.47666 3.97575 8.52394C4.01963 8.57123 4.0728 8.60895 4.13193 8.63474C4.19106 8.66053 4.25488 8.67384 4.31939 8.67383H8.46596C8.71299 8.67383 8.92486 8.48633 8.94268 8.24008C8.94749 8.17575 8.93898 8.11111 8.91767 8.05023C8.89636 7.98934 8.86271 7.9335 8.81882 7.88621C8.77494 7.83893 8.72177 7.80121 8.66264 7.77542C8.60351 7.74963 8.53969 7.73632 8.47518 7.73633ZM8.47518 10.5488H4.32861C4.08158 10.5488 3.86971 10.7363 3.85189 10.9826C3.84708 11.0469 3.85559 11.1115 3.8769 11.1724C3.89821 11.2333 3.93186 11.2892 3.97575 11.3364C4.01963 11.3837 4.0728 11.4214 4.13193 11.4472C4.19106 11.473 4.25488 11.4863 4.31939 11.4863H8.46596C8.71299 11.4863 8.92486 11.2988 8.94268 11.0526C8.94749 10.9882 8.93898 10.9236 8.91767 10.8627C8.89636 10.8018 8.86271 10.746 8.81882 10.6987C8.77494 10.6514 8.72177 10.6137 8.66264 10.5879C8.60351 10.5621 8.53969 10.5488 8.47518 10.5488Z"})]}),JE=()=>C.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"52",height:"52",viewBox:"0 0 52 52",fill:"none",children:[C.jsx("path",{d:"M33.7054 0V9.62963C33.7054 12.7849 36.2348 15.3496 39.3773 15.4064L39.4832 15.4074H49.1128V46.2222C49.1128 49.4132 46.526 52 43.3351 52H8.6684C5.47747 52 2.89062 49.4132 2.89062 46.2222V5.77778C2.89063 2.58684 5.47746 0 8.6684 0H33.7054ZM41.4091 20.5432H10.5943C8.14584 20.5432 6.15507 22.5012 6.10146 24.9366L6.1005 25.037V44.2963C6.1005 46.7445 8.05853 48.7356 10.4939 48.7892L10.5943 48.7901H41.4091C43.8573 48.7901 45.8484 46.8321 45.902 44.3968L45.903 44.2963V25.037C45.903 22.5552 43.891 20.5432 41.4091 20.5432ZM35.9524 0L49.1128 13.1605H41.7301C38.5392 13.1605 35.9524 10.5737 35.9524 7.38272V0Z",fill:"#389E0D"}),C.jsx("path",{d:"M11.8597 39.1608L13.4961 36.503L15.1268 39.1608H17.9986L15.1833 34.8949L17.756 30.889H14.9688L13.5469 33.4338L12.0799 30.889H9.26392L11.8594 34.8499L9.00488 39.1608H11.8597ZM25.4247 39.1608V37.1238H21.4355V30.889H18.8794V39.1608H25.4244H25.4247ZM30.0405 39.302C30.842 39.302 31.5058 39.1865 32.0322 38.9547C32.559 38.7236 32.9689 38.384 33.2626 37.9366C33.5518 37.5022 33.7049 36.9915 33.7023 36.4697C33.7023 36.018 33.5925 35.61 33.3723 35.2451C33.1525 34.8801 32.801 34.5742 32.3173 34.328C31.8338 34.0818 31.0336 33.8382 29.9163 33.5975C29.465 33.5034 29.1793 33.4017 29.0589 33.2925C28.9347 33.1876 28.8727 33.0688 28.8727 32.9372C28.8727 32.7568 28.9478 32.6034 29.0984 32.4775C29.2489 32.3514 29.4727 32.2881 29.7699 32.2881C30.131 32.2881 30.4141 32.3732 30.6189 32.5424C30.824 32.7115 30.9585 32.9824 31.0224 33.3548L33.4317 33.2136C33.3264 32.3562 32.9961 31.7306 32.4415 31.3377C31.8865 30.9445 31.0805 30.748 30.0238 30.748C29.1623 30.748 28.4843 30.8562 27.9897 31.0722C27.4951 31.2889 27.1243 31.5858 26.8781 31.9639C26.6316 32.3421 26.5087 32.7436 26.5087 33.1686C26.5087 33.8157 26.7494 34.3479 27.2309 34.7655C27.7085 35.1828 28.5078 35.5176 29.6287 35.7699C30.3133 35.9201 30.7495 36.08 30.9376 36.2495C31.1257 36.4186 31.2201 36.6106 31.2201 36.825C31.2201 37.0506 31.1213 37.2487 30.9235 37.4201C30.7261 37.5912 30.4453 37.6769 30.08 37.6769C29.5911 37.6769 29.2149 37.5093 28.9517 37.1749C28.7899 36.9678 28.6827 36.6667 28.6301 36.2719L26.1983 36.4244C26.2695 37.2593 26.5761 37.9478 27.1179 38.4893C27.6594 39.0311 28.6339 39.3017 30.0405 39.3017V39.302ZM37.0714 39.1608L38.7078 36.503L40.3384 39.1608H43.2103L40.3949 34.8949L42.9679 30.889H40.1805L38.7585 33.4338L37.2916 30.889H34.4762L37.0714 34.8499L34.2165 39.1608H37.0714Z",fill:"#389E0D"})]}),wq=()=>C.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[C.jsxs("g",{"clip-path":"url(#clip0_21638_4657)",children:[C.jsx("path",{d:"M10.3704 0V2.96296C10.3704 3.93383 11.1486 4.72296 12.1156 4.74044L12.1481 4.74074H15.1111V14.2222C15.1111 15.204 14.3152 16 13.3333 16H2.66666C1.68484 16 0.888885 15.204 0.888885 14.2222V1.77778C0.888885 0.795951 1.68484 0 2.66666 0H10.3704ZM12.7407 6.32099H3.25926C2.50587 6.32099 1.89333 6.92346 1.87684 7.67279L1.87654 7.7037V13.6296C1.87654 14.3829 2.47901 14.9956 3.22834 15.012L3.25926 15.0123H12.7407C13.494 15.0123 14.1067 14.4099 14.1232 13.6605L14.1235 13.6296V7.7037C14.1235 6.94005 13.5044 6.32099 12.7407 6.32099ZM11.0617 0L15.1111 4.04938H12.8395C11.8577 4.04938 11.0617 3.25343 11.0617 2.27161V0Z",fill:"#8C8C8C"}),C.jsx("path",{d:"M8.40366 12.0892V11.9703C8.40366 11.7665 8.44613 11.5796 8.53107 11.4097C8.61357 11.2485 8.72938 11.1066 8.87082 10.9935C9.26717 10.6481 9.51072 10.4244 9.60129 10.3225C9.81077 10.045 9.91556 9.69684 9.91556 9.27778C9.91556 8.75679 9.74569 8.34908 9.40593 8.05467C9.07181 7.75452 8.6245 7.60449 8.06391 7.60449C7.44099 7.60449 6.94559 7.78286 6.57749 8.1396C6.20939 8.49071 6.02539 8.98336 6.02539 9.61753H6.99369C6.99369 9.24943 7.0645 8.96913 7.20603 8.77664C7.37591 8.55017 7.64208 8.43689 8.00445 8.43689C8.29887 8.43689 8.52544 8.5162 8.68396 8.67471C8.84248 8.84459 8.92179 9.06543 8.92179 9.33723C8.92179 9.55244 8.84534 9.75343 8.69245 9.94029L8.59053 10.0592C8.03556 10.5519 7.7043 10.9115 7.59675 11.1379C7.48346 11.3588 7.42687 11.6362 7.42687 11.9703V12.0892H8.40366ZM7.91102 13.788C8.09225 13.788 8.25077 13.7285 8.38667 13.6096C8.51122 13.4851 8.57354 13.3293 8.57354 13.1425C8.57354 12.9612 8.51132 12.8083 8.38667 12.6838C8.26213 12.5649 8.10351 12.5054 7.91102 12.5054C7.72416 12.5054 7.57127 12.5649 7.45235 12.6838C7.32208 12.7971 7.257 12.95 7.257 13.1425C7.257 13.3351 7.32218 13.4879 7.45235 13.6011C7.5769 13.7257 7.72988 13.788 7.91102 13.788Z",fill:"#8C8C8C"})]}),C.jsx("defs",{children:C.jsx("clipPath",{id:"clip0_21638_4657",children:C.jsx("rect",{width:"16",height:"16",fill:"white"})})})]}),bq=()=>C.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[C.jsxs("g",{"clip-path":"url(#clip0_21638_4627)",children:[C.jsx("path",{d:"M10.3704 0V2.96296C10.3704 3.93383 11.1486 4.72296 12.1156 4.74044L12.1481 4.74074H15.1111V14.2222C15.1111 15.204 14.3152 16 13.3333 16H2.66666C1.68484 16 0.888885 15.204 0.888885 14.2222V1.77778C0.888885 0.795951 1.68484 0 2.66666 0H10.3704ZM12.7407 6.32099H3.25926C2.50587 6.32099 1.89333 6.92346 1.87684 7.67279L1.87654 7.7037V13.6296C1.87654 14.3829 2.47901 14.9956 3.22834 15.012L3.25926 15.0123H12.7407C13.494 15.0123 14.1067 14.4099 14.1232 13.6605L14.1235 13.6296V7.7037C14.1235 6.94005 13.5044 6.32099 12.7407 6.32099ZM11.0617 0L15.1111 4.04938H12.8395C11.8577 4.04938 11.0617 3.25343 11.0617 2.27161V0Z",fill:"#1D39C4"}),C.jsx("path",{d:"M5.37169 12.1151C5.59964 12.1151 5.78749 12.0821 5.93505 12.0162C6.08136 11.9512 6.20887 11.8503 6.30572 11.7228C6.40517 11.5931 6.47816 11.4317 6.52438 11.2384L5.8352 11.03C5.80043 11.191 5.74463 11.3136 5.66769 11.3981C5.59066 11.4826 5.47698 11.5248 5.32646 11.5248C5.1714 11.5248 5.051 11.4725 4.96537 11.3678C4.87974 11.2631 4.83698 11.0695 4.83698 10.787C4.83698 10.559 4.87283 10.3918 4.94463 10.2853C5.03945 10.1418 5.17604 10.07 5.35431 10.07C5.43303 10.07 5.50414 10.0862 5.56784 10.1186C5.63145 10.151 5.68537 10.1973 5.72932 10.2574C5.75599 10.2934 5.78137 10.3501 5.80567 10.4276L6.50009 10.2731C6.411 10.0045 6.2747 9.80549 6.0912 9.67591C5.90789 9.54624 5.65584 9.48145 5.33525 9.48145C4.92557 9.48145 4.60873 9.59463 4.38473 9.8209C4.16083 10.0471 4.04883 10.3709 4.04883 10.7922C4.04883 11.1082 4.11253 11.3675 4.23984 11.5699C4.36715 11.7725 4.51836 11.914 4.69377 11.9944C4.86917 12.0749 5.09515 12.1151 5.37179 12.1151H5.37169ZM7.96903 12.1133C8.21554 12.1133 8.41989 12.0778 8.58187 12.0067C8.74384 11.9355 8.87006 11.831 8.96033 11.6933C9.04938 11.5597 9.09652 11.4025 9.09574 11.2419C9.09574 11.103 9.06196 10.9773 8.99421 10.8651C8.92646 10.7529 8.81831 10.6587 8.66957 10.583C8.52083 10.5072 8.27451 10.4323 7.9308 10.3582C7.79194 10.3292 7.70404 10.2979 7.667 10.2644C7.62878 10.2321 7.60972 10.1955 7.60972 10.155C7.60972 10.0995 7.63283 10.0523 7.67915 10.0136C7.72537 9.97478 7.79431 9.95532 7.88567 9.95532C7.99678 9.95532 8.08389 9.9814 8.147 10.0335C8.21011 10.0856 8.2514 10.1689 8.27115 10.2835L9.01248 10.2401C8.97999 9.97626 8.87846 9.78377 8.70779 9.66288C8.53703 9.54189 8.28903 9.48145 7.96379 9.48145C7.6988 9.48145 7.49011 9.51473 7.33791 9.5812C7.18582 9.64787 7.07174 9.73922 6.99599 9.85557C6.92014 9.97191 6.88221 10.0955 6.88221 10.2262C6.88221 10.4253 6.95628 10.5891 7.10443 10.7176C7.2514 10.846 7.49742 10.949 7.84221 11.0266C8.05298 11.0729 8.1872 11.122 8.24508 11.1742C8.30295 11.2262 8.33189 11.2853 8.33189 11.3513C8.33189 11.4207 8.30147 11.4816 8.24073 11.5344C8.17999 11.587 8.09347 11.6134 7.98117 11.6134C7.83075 11.6134 7.715 11.5618 7.63401 11.4588C7.58424 11.3952 7.55125 11.3026 7.53505 11.1811L6.7867 11.228C6.80873 11.4849 6.90305 11.6968 7.06977 11.8634C7.23638 12.0301 7.53614 12.1133 7.96903 12.1133ZM11.0716 12.07L12.016 9.5248H11.2175L10.6533 11.3564L10.0803 9.5249H9.25742L10.2192 12.0701H11.0715L11.0716 12.07Z",fill:"#1D39C4"})]}),C.jsx("defs",{children:C.jsx("clipPath",{id:"clip0_21638_4627",children:C.jsx("rect",{width:"16",height:"16",fill:"white"})})})]}),XE=()=>C.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[C.jsxs("g",{"clip-path":"url(#clip0_21638_4630)",children:[C.jsx("path",{d:"M10.3704 0V2.96296C10.3704 3.93383 11.1486 4.72296 12.1156 4.74044L12.1481 4.74074H15.1111V14.2222C15.1111 15.204 14.3152 16 13.3333 16H2.66666C1.68484 16 0.888885 15.204 0.888885 14.2222V1.77778C0.888885 0.795951 1.68484 0 2.66666 0H10.3704ZM12.7407 6.32099H3.25926C2.50587 6.32099 1.89333 6.92346 1.87684 7.67279L1.87654 7.7037V13.6296C1.87654 14.3829 2.47901 14.9956 3.22834 15.012L3.25926 15.0123H12.7407C13.494 15.0123 14.1067 14.4099 14.1232 13.6605L14.1235 13.6296V7.7037C14.1235 6.94005 13.5044 6.32099 12.7407 6.32099ZM11.0617 0L15.1111 4.04938H12.8395C11.8577 4.04938 11.0617 3.25343 11.0617 2.27161V0Z",fill:"#08979C"}),C.jsx("path",{d:"M5.73698 12.0266V10.1099H6.53905V9.48145H4.14844V10.1099H4.95051V12.0266H5.73698ZM7.5358 12.0266L8.0392 11.2089L8.54093 12.0266H9.42468L8.55831 10.714L9.35002 9.48145H8.49234L8.05481 10.2645L7.60345 9.48145H6.73718L7.5358 10.7002L6.65728 12.0266H7.5358ZM11.1054 12.0266V10.1099H11.9075V9.48145H9.51683V10.1099H10.3189V12.0266H11.1054Z",fill:"#08979C"})]}),C.jsx("defs",{children:C.jsx("clipPath",{id:"clip0_21638_4630",children:C.jsx("rect",{width:"16",height:"16",fill:"white"})})})]}),KE=({className:e})=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"8",viewBox:"0 0 10 8",className:e,fill:"currentColor",children:C.jsx("path",{d:"M9.5067 0.236399C9.33081 0.075254 9.09814 -0.00947067 8.85981 0.000842334C8.62149 0.0111553 8.39701 0.115663 8.2357 0.291399L3.4847 5.4714L1.6307 2.8764L1.5597 2.7884C1.40419 2.62083 1.19075 2.51872 0.962705 2.5028C0.734658 2.48687 0.509095 2.55832 0.331809 2.70264C0.154524 2.84697 0.0388021 3.05335 0.00813691 3.27988C-0.0225283 3.50642 0.0341613 3.73614 0.166697 3.9224L2.6667 7.4224L2.7427 7.5154C2.8275 7.60576 2.93004 7.67764 3.04391 7.72654C3.15778 7.77543 3.28052 7.80028 3.40444 7.79952C3.52836 7.79877 3.65079 7.77244 3.76406 7.72217C3.87733 7.6719 3.979 7.59879 4.0627 7.5074L9.5627 1.5074L9.6387 1.4124C9.76255 1.23353 9.81742 1.01586 9.79315 0.799654C9.76888 0.58345 9.66712 0.383356 9.5067 0.236399Z"})}),QE=({className:e})=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",className:e,children:C.jsx("path",{d:"M12.6092 4.33894C12.4333 4.17779 12.2007 4.09307 11.9624 4.10338C11.724 4.11369 11.4995 4.2182 11.3382 4.39394L6.58724 9.57394L4.73324 6.97894L4.66224 6.89094C4.50673 6.72337 4.29329 6.62126 4.06524 6.60534C3.8372 6.58941 3.61163 6.66086 3.43435 6.80518C3.25706 6.94951 3.14134 7.15589 3.11068 7.38242C3.08001 7.60896 3.1367 7.83868 3.26924 8.02494L5.76924 11.5249L5.84524 11.6179C5.93003 11.7083 6.03258 11.7802 6.14645 11.8291C6.26032 11.878 6.38306 11.9028 6.50698 11.9021C6.6309 11.9013 6.75333 11.875 6.8666 11.8247C6.97987 11.7744 7.08154 11.7013 7.16524 11.6099L12.6652 5.60994L12.7412 5.51494C12.8651 5.33607 12.92 5.1184 12.8957 4.90219C12.8714 4.68599 12.7697 4.4859 12.6092 4.33894Z"})}),Cq=({size:e})=>C.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[C.jsx("path",{d:"M20.2789 20.7891H3.72266C3.17188 20.7891 2.72656 20.3438 2.72656 19.793C2.72656 19.2422 3.17188 18.7969 3.72266 18.7969H20.2789C20.8297 18.7969 21.275 19.2422 21.275 19.793C21.275 20.3438 20.8297 20.7891 20.2789 20.7891Z",fill:"url(#paint0_linear_21740_6067)"}),C.jsx("path",{d:"M5.52148 17.6605H4.16211C3.72148 17.6605 3.36523 17.3043 3.36523 16.8637V12.9473C3.36523 12.5066 3.72148 12.1504 4.16211 12.1504H5.52148C5.96211 12.1504 6.31836 12.5066 6.31836 12.9473V16.8637C6.31836 17.302 5.95977 17.6605 5.52148 17.6605Z",fill:"url(#paint1_linear_21740_6067)"}),C.jsx("path",{d:"M10.2816 17.6602H8.94336C8.49805 17.6602 8.13477 17.2992 8.13477 16.8516V6.82969C8.13477 6.38437 8.4957 6.02109 8.94336 6.02109H10.2816C10.727 6.02109 11.0902 6.38203 11.0902 6.82969V16.8516C11.0902 17.2969 10.727 17.6602 10.2816 17.6602ZM15.0676 17.6602H13.7035C13.2652 17.6602 12.909 17.3039 12.909 16.8656V10.0031C12.909 9.56484 13.2652 9.20859 13.7035 9.20859H15.0676C15.5059 9.20859 15.8621 9.56484 15.8621 10.0031V16.8633C15.8621 17.3039 15.5059 17.6602 15.0676 17.6602ZM19.8371 17.6602H18.4824C18.0418 17.6602 17.6832 17.3016 17.6832 16.8609V4.01016C17.6832 3.56953 18.0418 3.21094 18.4824 3.21094H19.8371C20.2777 3.21094 20.6363 3.56953 20.6363 4.01016V16.8609C20.634 17.3016 20.2777 17.6602 19.8371 17.6602Z",fill:"url(#paint2_linear_21740_6067)"}),C.jsxs("defs",{children:[C.jsxs("linearGradient",{id:"paint0_linear_21740_6067",x1:"12.0008",y1:"18.7969",x2:"12.0008",y2:"20.7891",gradientUnits:"userSpaceOnUse",children:[C.jsx("stop",{"stop-color":"#0265FF"}),C.jsx("stop",{offset:"1","stop-color":"#A6FFFF"})]}),C.jsxs("linearGradient",{id:"paint1_linear_21740_6067",x1:"4.8418",y1:"12.1504",x2:"4.8418",y2:"17.6605",gradientUnits:"userSpaceOnUse",children:[C.jsx("stop",{"stop-color":"#0265FF"}),C.jsx("stop",{offset:"1","stop-color":"#A6FFFF"})]}),C.jsxs("linearGradient",{id:"paint2_linear_21740_6067",x1:"14.3855",y1:"3.21094",x2:"14.3855",y2:"17.6602",gradientUnits:"userSpaceOnUse",children:[C.jsx("stop",{"stop-color":"#0265FF"}),C.jsx("stop",{offset:"1","stop-color":"#A6FFFF"})]})]})]}),Sq=()=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:C.jsx("path",{d:"M9.15595 1.42188V4.08854C9.15595 4.56004 9.34325 5.01222 9.67664 5.34562C10.01 5.67902 10.4622 5.86632 10.9337 5.86632H13.6004V13.8663C13.6004 14.1021 13.5067 14.3282 13.34 14.4949C13.1733 14.6616 12.9472 14.7552 12.7115 14.7552H3.28928C3.05353 14.7552 2.82744 14.6616 2.66074 14.4949C2.49404 14.3282 2.40039 14.1021 2.40039 13.8663V2.31076C2.40039 2.07502 2.49404 1.84892 2.66074 1.68222C2.82744 1.51553 3.05353 1.42188 3.28928 1.42188H9.15595ZM5.5115 8.53299C5.39363 8.53299 5.28058 8.57981 5.19723 8.66316C5.11388 8.74651 5.06706 8.85956 5.06706 8.97743C5.06706 9.0953 5.11388 9.20835 5.19723 9.2917C5.28058 9.37505 5.39363 9.42187 5.5115 9.42187H10.4893C10.6072 9.42187 10.7202 9.37505 10.8035 9.2917C10.8869 9.20835 10.9337 9.0953 10.9337 8.97743C10.9337 8.85956 10.8869 8.74651 10.8035 8.66316C10.7202 8.57981 10.6072 8.53299 10.4893 8.53299H5.5115ZM5.5115 11.1997C5.39363 11.1997 5.28058 11.2465 5.19723 11.3298C5.11388 11.4132 5.06706 11.5262 5.06706 11.6441C5.06706 11.762 5.11388 11.875 5.19723 11.9584C5.28058 12.0417 5.39363 12.0885 5.5115 12.0885H10.4893C10.6072 12.0885 10.7202 12.0417 10.8035 11.9584C10.8869 11.875 10.9337 11.762 10.9337 11.6441C10.9337 11.5262 10.8869 11.4132 10.8035 11.3298C10.7202 11.2465 10.6072 11.1997 10.4893 11.1997H5.5115ZM10.0448 1.42188L13.6004 4.97743H10.9337C10.698 4.97743 10.4719 4.88378 10.3052 4.71708C10.1385 4.55038 10.0448 4.32429 10.0448 4.08854V1.42188Z",fill:"#0265FF"})}),kq=()=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:C.jsx("path",{d:"M13.6028 7.93734C13.6699 7.99362 13.7252 8.06255 13.7656 8.14022C13.8061 8.21788 13.8308 8.30275 13.8385 8.38998C13.8461 8.47721 13.8365 8.56509 13.8101 8.64859C13.7838 8.7321 13.7413 8.80961 13.685 8.87668L11.8059 11.1158L13.0219 13.2218C13.0663 13.2976 13.0954 13.3815 13.1073 13.4686C13.1192 13.5557 13.1137 13.6444 13.0913 13.7294C13.0688 13.8144 13.0297 13.8941 12.9763 13.9639C12.9229 14.0337 12.8562 14.0923 12.7801 14.1363C12.704 14.1803 12.6199 14.2087 12.5327 14.2201C12.4455 14.2314 12.3569 14.2254 12.2721 14.2023C12.1872 14.1793 12.1078 14.1397 12.0383 14.0858C11.9688 14.032 11.9107 13.9649 11.8672 13.8885L10.8939 12.2029L9.39966 13.9836C9.34386 14.0521 9.275 14.1089 9.19706 14.1506C9.11913 14.1923 9.03368 14.2181 8.94569 14.2264C8.8577 14.2348 8.76893 14.2256 8.68453 14.1993C8.60013 14.1731 8.5218 14.1303 8.45409 14.0735C8.38638 14.0167 8.33064 13.947 8.29011 13.8684C8.24959 13.7899 8.22509 13.704 8.21804 13.6159C8.21099 13.5278 8.22153 13.4392 8.24905 13.3552C8.27656 13.2712 8.32051 13.1935 8.37832 13.1267L10.1843 10.974L8.97832 8.88468C8.93386 8.80883 8.90483 8.72494 8.89292 8.63783C8.88101 8.55072 8.88645 8.46211 8.90892 8.37711C8.9314 8.29211 8.97046 8.2124 9.02386 8.14256C9.07727 8.07272 9.14396 8.01413 9.2201 7.97017C9.29624 7.92621 9.38033 7.89774 9.46751 7.88641C9.5547 7.87508 9.64327 7.8811 9.72812 7.90414C9.81297 7.92717 9.89242 7.96676 9.96191 8.02063C10.0314 8.0745 10.0895 8.14158 10.133 8.21801L11.0965 9.8869L12.6634 8.01957C12.7197 7.95248 12.7886 7.89714 12.8663 7.8567C12.944 7.81626 13.0288 7.79151 13.1161 7.78388C13.2033 7.77624 13.2912 7.78587 13.3747 7.8122C13.4582 7.83853 13.5357 7.88106 13.6028 7.93734ZM9.55566 1.77734C9.72919 1.77718 9.89595 1.84468 10.0205 1.96552C10.1451 2.08635 10.2176 2.25099 10.2227 2.42445C10.2278 2.59791 10.165 2.76652 10.0478 2.89445C9.93053 3.02238 9.76801 3.09955 9.59477 3.10957L9.55566 3.11068H9.25477C8.77582 3.11068 8.31278 3.28256 7.94984 3.59506C7.58689 3.90757 7.34814 4.33994 7.27699 4.81357L7.26899 4.87246L7.24032 5.11068H8.66677C8.72513 5.11068 8.78293 5.12217 8.83685 5.14451C8.89077 5.16684 8.93977 5.19958 8.98104 5.24085C9.02231 5.28212 9.05504 5.33112 9.07738 5.38504C9.09972 5.43896 9.11121 5.49676 9.11121 5.55512V5.99957C9.11121 6.11744 9.06439 6.23049 8.98104 6.31384C8.89769 6.39719 8.78464 6.44401 8.66677 6.44401H7.08032L6.49943 11.2856C6.40386 12.0824 6.02403 12.818 5.4297 13.3572C4.83536 13.8965 4.06642 14.2032 3.2641 14.2211L3.18988 14.2218H2.88899C2.71545 14.222 2.54869 14.1545 2.42414 14.0336C2.29959 13.9128 2.22706 13.7481 2.22197 13.5747C2.21687 13.4012 2.27962 13.2326 2.39687 13.1047C2.51412 12.9768 2.67663 12.8996 2.84988 12.8896L2.88899 12.8885H3.18988C3.66882 12.8884 4.13186 12.7166 4.49481 12.4041C4.85775 12.0916 5.09651 11.6592 5.16766 11.1856L5.17566 11.1267L5.73721 6.44401H4.22232C4.10445 6.44401 3.9914 6.39719 3.90805 6.31384C3.8247 6.23049 3.77788 6.11744 3.77788 5.99957V5.55512C3.77788 5.49676 3.78937 5.43896 3.81171 5.38504C3.83404 5.33112 3.86678 5.28212 3.90805 5.24085C3.94932 5.19958 3.99832 5.16684 4.05224 5.14451C4.10616 5.12217 4.16396 5.11068 4.22232 5.11068H5.89721L5.94521 4.71357C6.04078 3.91675 6.42061 3.18117 7.01495 2.6419C7.60928 2.10264 8.37822 1.79589 9.18054 1.77801L9.25477 1.77734H9.55566Z"})}),Eq=()=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",children:C.jsx("path",{d:"M12.7549 2.5C12.1757 2.5 11.7063 2.98638 11.7063 3.58637V20.4136C11.7063 21.0136 12.1757 21.5 12.7549 21.5C13.3341 21.5 13.8035 21.0136 13.8035 20.4136V3.58637C13.8035 2.98638 13.3341 2.5 12.7549 2.5ZM16.9494 14.9819C16.8105 14.9819 16.6729 15.0105 16.5448 15.0661C16.4166 15.1217 16.3004 15.2031 16.2028 15.3056L12.8052 18.8775L9.2965 15.2948C9.199 15.192 9.08274 15.1103 8.95449 15.0546C8.82623 14.9988 8.68855 14.97 8.54946 14.9699C8.41036 14.9698 8.27264 14.9983 8.1443 15.0539C8.01596 15.1095 7.89957 15.1909 7.80192 15.2935C7.70426 15.3961 7.62728 15.5179 7.57547 15.6516C7.52366 15.7853 7.49804 15.9284 7.50012 16.0725C7.50219 16.2165 7.53192 16.3588 7.58756 16.4908C7.6432 16.6229 7.72365 16.7422 7.82422 16.8417L12.0775 21.1871C12.2767 21.3892 12.5703 21.4348 12.822 21.5C13.1004 21.4977 13.3666 21.3813 13.5624 21.1762L17.6982 16.8309C17.8434 16.6782 17.9418 16.4844 17.981 16.2739C18.0202 16.0634 17.9984 15.8457 17.9184 15.648C17.8383 15.4503 17.7036 15.2816 17.5312 15.1631C17.3588 15.0445 17.1564 14.9815 16.9494 14.9819Z"})}),_q=()=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",children:C.jsx("path",{d:"M2.1875 4.0625C2.1875 3.56522 2.38504 3.08831 2.73667 2.73667C3.08831 2.38504 3.56522 2.1875 4.0625 2.1875H15.9375C16.4348 2.1875 16.9117 2.38504 17.2633 2.73667C17.615 3.08831 17.8125 3.56522 17.8125 4.0625V5H2.1875V4.0625ZM2.1875 6.25H17.8125V15.9375C17.8125 16.4348 17.615 16.9117 17.2633 17.2633C16.9117 17.615 16.4348 17.8125 15.9375 17.8125H4.0625C3.56522 17.8125 3.08831 17.615 2.73667 17.2633C2.38504 16.9117 2.1875 16.4348 2.1875 15.9375V6.25ZM5.42125 8.75C5.31033 8.75254 5.20465 8.79774 5.1262 8.8762C5.04774 8.95465 5.00254 9.06033 5 9.17125V10.8288C5 11.0538 5.19625 11.25 5.42125 11.25H7.075C7.3 11.25 7.49625 11.0538 7.49625 10.8288V9.17125C7.525 8.94625 7.32875 8.75 7.075 8.75H5.42125ZM9.17125 8.75C9.06033 8.75254 8.95465 8.79774 8.8762 8.8762C8.79774 8.95465 8.75254 9.06033 8.75 9.17125V10.8288C8.75 11.0538 8.94625 11.25 9.17125 11.25H10.825C11.05 11.25 11.2463 11.0538 11.2463 10.8288V9.17125C11.275 8.94625 11.0787 8.75 10.825 8.75H9.17125ZM14.5763 8.75H12.9212C12.8103 8.75254 12.7047 8.79774 12.6262 8.8762C12.5477 8.95465 12.5025 9.06033 12.5 9.17125V10.8288C12.5 11.0538 12.6962 11.25 12.9212 11.25H14.5763C14.8013 11.25 14.9975 11.0538 14.9975 10.8288V9.17125C15.025 8.94625 14.8288 8.75 14.5763 8.75ZM5.42125 13C5.31033 13.0025 5.20465 13.0477 5.1262 13.1262C5.04774 13.2047 5.00254 13.3103 5 13.4213V15.0787C5 15.3038 5.19625 15.5 5.42125 15.5H7.075C7.3 15.5 7.49625 15.3038 7.49625 15.0787V13.4213C7.52375 13.1963 7.3275 13 7.075 13H5.42125ZM10.8263 13H9.17125C9.06033 13.0025 8.95465 13.0477 8.8762 13.1262C8.79774 13.2047 8.75254 13.3103 8.75 13.4213V15.0787C8.75 15.3038 8.94625 15.5 9.17125 15.5H10.825C11.05 15.5 11.2463 15.3038 11.2463 15.0787V13.4213C11.2737 13.1963 11.0775 13 10.825 13H10.8263ZM12.9212 13C12.8103 13.0025 12.7047 13.0477 12.6262 13.1262C12.5477 13.2047 12.5025 13.3103 12.5 13.4213V15.0787C12.5 15.3038 12.6962 15.5 12.9212 15.5H14.5763C14.8013 15.5 14.9975 15.3038 14.9975 15.0787V13.4213C15.025 13.1963 14.8288 13 14.5763 13H12.9212Z"})}),Tq=({onClick:e,className:t})=>C.jsx("button",{type:"button",onClick:e,className:Ge("inline-flex items-center justify-center","w-[36px] h-[36px] rounded-full","bg-white text-[#666] shadow-[0px_0px_14px_0px_rgba(0,0,0,0.1)]","hover:shadow-[0px_14px_14px_0px_rgba(0,0,0,0.14)]","cursor-pointer hover:text-[#333] aspect-square",Xa,t),children:C.jsx(Eq,{})}),Rq=({className:e,...t})=>C.jsx(c2,{className:_a("relative flex-1 touch-pan-y overflow-y-auto flex will-change-scroll",e),style:{minHeight:0,height:"100%"},initial:"smooth",resize:"smooth",role:"log",...t}),Mq=({className:e,...t})=>C.jsx(c2.Content,{className:_a("p-4",e),...t}),Aq=({className:e})=>{const{isAtBottom:t,scrollToBottom:n}=bE(),a=L.useCallback(()=>{n()},[n]);return C.jsx(Tq,{className:_a("absolute bottom-[30px] left-1/2 -translate-x-1/2",{"pointer-events-none scale-0 opacity-0":t,"pointer-events-auto scale-100 opacity-100":!t},e),onClick:a})},e_=({size:e=30,className:t})=>C.jsx("div",{className:t,style:{backgroundImage:`${nq}`,backgroundRepeat:"no-repeat",backgroundSize:"cover",width:e,height:e,aspectRatio:"1/1"}}),Wh=({name:e,icon:t,variant:n="default"})=>{const a=n==="default"?20:24,i={default:"text-[#999] text-[14px] font-[400]",active:"text-[#0265FF] text-[14px] font-[500]"};return C.jsxs("div",{className:"flex items-center gap-1.5",children:[t||C.jsx(e_,{size:a}),C.jsx("div",{className:i[n],children:e})]})},t_=()=>{const{pluginList:e}=Zl(t=>({pluginList:t.chatAreaPluginInstList}));return e},D5=e=>t_().map(a=>{var i;return{pluginName:a.pluginName,Component:(i=a.customComponents)==null?void 0:i[e]}}).filter(a=>!!a.Component),h1=e=>{const t=D5(e);return t.length>0?t[0]:null};function n_(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function j5(...e){return t=>{let n=!1;const a=e.map(i=>{const l=n_(i,t);return!n&&typeof l=="function"&&(n=!0),l});if(n)return()=>{for(let i=0;i<a.length;i++){const l=a[i];typeof l=="function"?l():n_(e[i],null)}}}}function Vn(...e){return L.useCallback(j5(...e),e)}var Nq=Symbol.for("react.lazy"),g2=x9[" use ".trim().toString()];function Lq(e){return typeof e=="object"&&e!==null&&"then"in e}function r_(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Nq&&"_payload"in e&&Lq(e._payload)}function Oq(e){const t=Dq(e),n=L.forwardRef((a,i)=>{let{children:l,...u}=a;r_(l)&&typeof g2=="function"&&(l=g2(l._payload));const f=L.Children.toArray(l),h=f.find(Pq);if(h){const g=h.props.children,x=f.map(y=>y===h?L.Children.count(g)>1?L.Children.only(null):L.isValidElement(g)?g.props.children:null:y);return C.jsx(t,{...u,ref:i,children:L.isValidElement(g)?L.cloneElement(g,void 0,x):null})}return C.jsx(t,{...u,ref:i,children:l})});return n.displayName=`${e}.Slot`,n}var Iq=Oq("Slot");function Dq(e){const t=L.forwardRef((n,a)=>{let{children:i,...l}=n;if(r_(i)&&typeof g2=="function"&&(i=g2(i._payload)),L.isValidElement(i)){const u=zq(i),f=Fq(l,i.props);return i.type!==L.Fragment&&(f.ref=a?j5(a,u):u),L.cloneElement(i,f)}return L.Children.count(i)>1?L.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var jq=Symbol("radix.slottable");function Pq(e){return L.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===jq}function Fq(e,t){const n={...t};for(const a in t){const i=e[a],l=t[a];/^on[A-Z]/.test(a)?i&&l?n[a]=(...f)=>{const h=l(...f);return i(...f),h}:i&&(n[a]=i):a==="style"?n[a]={...i,...l}:a==="className"&&(n[a]=[i,l].filter(Boolean).join(" "))}return{...e,...n}}function zq(e){var a,i;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const a_=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,o_=kE,Hq=((e,t)=>n=>{var a;if((t==null?void 0:t.variants)==null)return o_(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:l}=t,u=Object.keys(i).map(g=>{const x=n==null?void 0:n[g],y=l==null?void 0:l[g];if(x===null)return null;const k=a_(x)||a_(y);return i[g][k]}),f=n&&Object.entries(n).reduce((g,x)=>{let[y,k]=x;return k===void 0||(g[y]=k),g},{}),h=t==null||(a=t.compoundVariants)===null||a===void 0?void 0:a.reduce((g,x)=>{let{class:y,className:k,...b}=x;return Object.entries(b).every(T=>{let[R,N]=T;return Array.isArray(N)?N.includes({...l,...f}[R]):{...l,...f}[R]===N})?[...g,y,k]:g},[]);return o_(e,u,h,n==null?void 0:n.class,n==null?void 0:n.className)})("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",entry:""},size:{default:"h-[34px] px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-[24px] w-[24px]",entry:"h-[30px] px-1.5 py-0 gap-1.5"}},defaultVariants:{variant:"default",size:"default"}}),bo=L.forwardRef(({className:e,variant:t,size:n,asChild:a=!1,...i},l)=>{const u=a?Iq:"button";return C.jsx(u,{className:Ge(Hq({variant:t,size:n,className:e})),ref:l,...i})});bo.displayName="Button";function nn(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function Uq(e,t){const n=L.createContext(t),a=l=>{const{children:u,...f}=l,h=L.useMemo(()=>f,Object.values(f));return C.jsx(n.Provider,{value:h,children:u})};a.displayName=e+"Provider";function i(l){const u=L.useContext(n);if(u)return u;if(t!==void 0)return t;throw new Error(`\`${l}\` must be used within \`${e}\``)}return[a,i]}function Js(e,t=[]){let n=[];function a(l,u){const f=L.createContext(u),h=n.length;n=[...n,u];const g=y=>{var O;const{scope:k,children:b,...T}=y,R=((O=k==null?void 0:k[e])==null?void 0:O[h])||f,N=L.useMemo(()=>T,Object.values(T));return C.jsx(R.Provider,{value:N,children:b})};g.displayName=l+"Provider";function x(y,k){var R;const b=((R=k==null?void 0:k[e])==null?void 0:R[h])||f,T=L.useContext(b);if(T)return T;if(u!==void 0)return u;throw new Error(`\`${y}\` must be used within \`${l}\``)}return[g,x]}const i=()=>{const l=n.map(u=>L.createContext(u));return function(f){const h=(f==null?void 0:f[e])||l;return L.useMemo(()=>({[`__scope${e}`]:{...f,[e]:h}}),[f,h])}};return i.scopeName=e,[a,Bq(i,...t)]}function Bq(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const a=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(l){const u=a.reduce((f,{useScope:h,scopeName:g})=>{const y=h(l)[`__scope${g}`];return{...f,...y}},{});return L.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])}};return n.scopeName=t.scopeName,n}function qh(e){const t=Vq(e),n=L.forwardRef((a,i)=>{const{children:l,...u}=a,f=L.Children.toArray(l),h=f.find(Zq);if(h){const g=h.props.children,x=f.map(y=>y===h?L.Children.count(g)>1?L.Children.only(null):L.isValidElement(g)?g.props.children:null:y);return C.jsx(t,{...u,ref:i,children:L.isValidElement(g)?L.cloneElement(g,void 0,x):null})}return C.jsx(t,{...u,ref:i,children:l})});return n.displayName=`${e}.Slot`,n}function Vq(e){const t=L.forwardRef((n,a)=>{const{children:i,...l}=n;if(L.isValidElement(i)){const u=qq(i),f=Wq(l,i.props);return i.type!==L.Fragment&&(f.ref=a?j5(a,u):u),L.cloneElement(i,f)}return L.Children.count(i)>1?L.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var i_=Symbol("radix.slottable");function $q(e){const t=({children:n})=>C.jsx(C.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=i_,t}function Zq(e){return L.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===i_}function Wq(e,t){const n={...t};for(const a in t){const i=e[a],l=t[a];/^on[A-Z]/.test(a)?i&&l?n[a]=(...f)=>{const h=l(...f);return i(...f),h}:i&&(n[a]=i):a==="style"?n[a]={...i,...l}:a==="className"&&(n[a]=[i,l].filter(Boolean).join(" "))}return{...e,...n}}function qq(e){var a,i;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Gq=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],hn=Gq.reduce((e,t)=>{const n=qh(`Primitive.${t}`),a=L.forwardRef((i,l)=>{const{asChild:u,...f}=i,h=u?n:t;return typeof window!="undefined"&&(window[Symbol.for("radix-ui")]=!0),C.jsx(h,{...f,ref:l})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});function Yq(e,t){e&&$l.flushSync(()=>e.dispatchEvent(t))}function ec(e){const t=L.useRef(e);return L.useEffect(()=>{t.current=e}),L.useMemo(()=>(...n)=>{var a;return(a=t.current)==null?void 0:a.call(t,...n)},[])}function Jq(e,t=globalThis==null?void 0:globalThis.document){const n=ec(e);L.useEffect(()=>{const a=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",a,{capture:!0}),()=>t.removeEventListener("keydown",a,{capture:!0})},[n,t])}var Xq="DismissableLayer",P5="dismissableLayer.update",Kq="dismissableLayer.pointerDownOutside",Qq="dismissableLayer.focusOutside",s_,l_=L.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),v2=L.forwardRef((e,t)=>{var W;const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:l,onInteractOutside:u,onDismiss:f,...h}=e,g=L.useContext(l_),[x,y]=L.useState(null),k=(W=x==null?void 0:x.ownerDocument)!=null?W:globalThis==null?void 0:globalThis.document,[,b]=L.useState({}),T=Vn(t,G=>y(G)),R=Array.from(g.layers),[N]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),O=R.indexOf(N),P=x?R.indexOf(x):-1,z=g.layersWithOutsidePointerEventsDisabled.size>0,j=P>=O,V=nG(G=>{const ae=G.target,ye=[...g.branches].some(ce=>ce.contains(ae));!j||ye||(i==null||i(G),u==null||u(G),G.defaultPrevented||f==null||f())},k),H=rG(G=>{const ae=G.target;[...g.branches].some(ce=>ce.contains(ae))||(l==null||l(G),u==null||u(G),G.defaultPrevented||f==null||f())},k);return Jq(G=>{P===g.layers.size-1&&(a==null||a(G),!G.defaultPrevented&&f&&(G.preventDefault(),f()))},k),L.useEffect(()=>{if(x)return n&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(s_=k.body.style.pointerEvents,k.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(x)),g.layers.add(x),u_(),()=>{n&&g.layersWithOutsidePointerEventsDisabled.size===1&&(k.body.style.pointerEvents=s_)}},[x,k,n,g]),L.useEffect(()=>()=>{x&&(g.layers.delete(x),g.layersWithOutsidePointerEventsDisabled.delete(x),u_())},[x,g]),L.useEffect(()=>{const G=()=>b({});return document.addEventListener(P5,G),()=>document.removeEventListener(P5,G)},[]),C.jsx(hn.div,{...h,ref:T,style:{pointerEvents:z?j?"auto":"none":void 0,...e.style},onFocusCapture:nn(e.onFocusCapture,H.onFocusCapture),onBlurCapture:nn(e.onBlurCapture,H.onBlurCapture),onPointerDownCapture:nn(e.onPointerDownCapture,V.onPointerDownCapture)})});v2.displayName=Xq;var eG="DismissableLayerBranch",tG=L.forwardRef((e,t)=>{const n=L.useContext(l_),a=L.useRef(null),i=Vn(t,a);return L.useEffect(()=>{const l=a.current;if(l)return n.branches.add(l),()=>{n.branches.delete(l)}},[n.branches]),C.jsx(hn.div,{...e,ref:i})});tG.displayName=eG;function nG(e,t=globalThis==null?void 0:globalThis.document){const n=ec(e),a=L.useRef(!1),i=L.useRef(()=>{});return L.useEffect(()=>{const l=f=>{if(f.target&&!a.current){let h=function(){c_(Kq,n,g,{discrete:!0})};const g={originalEvent:f};f.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=h,t.addEventListener("click",i.current,{once:!0})):h()}else t.removeEventListener("click",i.current);a.current=!1},u=window.setTimeout(()=>{t.addEventListener("pointerdown",l)},0);return()=>{window.clearTimeout(u),t.removeEventListener("pointerdown",l),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>a.current=!0}}function rG(e,t=globalThis==null?void 0:globalThis.document){const n=ec(e),a=L.useRef(!1);return L.useEffect(()=>{const i=l=>{l.target&&!a.current&&c_(Qq,n,{originalEvent:l},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function u_(){const e=new CustomEvent(P5);document.dispatchEvent(e)}function c_(e,t,n,{discrete:a}){const i=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),a?Yq(i,l):i.dispatchEvent(l)}var La=globalThis!=null&&globalThis.document?L.useLayoutEffect:()=>{},aG=x9[" useId ".trim().toString()]||(()=>{}),oG=0;function tc(e){const[t,n]=L.useState(aG());return La(()=>{n(a=>a!=null?a:String(oG++))},[e]),t?`radix-${t}`:""}const iG=["top","right","bottom","left"],nc=Math.min,pi=Math.max,y2=Math.round,x2=Math.floor,Xs=e=>({x:e,y:e}),sG={left:"right",right:"left",bottom:"top",top:"bottom"},lG={start:"end",end:"start"};function F5(e,t,n){return pi(e,nc(t,n))}function Yl(e,t){return typeof e=="function"?e(t):e}function Jl(e){return e.split("-")[0]}function m1(e){return e.split("-")[1]}function z5(e){return e==="x"?"y":"x"}function H5(e){return e==="y"?"height":"width"}const uG=new Set(["top","bottom"]);function Ks(e){return uG.has(Jl(e))?"y":"x"}function U5(e){return z5(Ks(e))}function cG(e,t,n){n===void 0&&(n=!1);const a=m1(e),i=U5(e),l=H5(i);let u=i==="x"?a===(n?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(u=w2(u)),[u,w2(u)]}function dG(e){const t=w2(e);return[B5(e),t,B5(t)]}function B5(e){return e.replace(/start|end/g,t=>lG[t])}const d_=["left","right"],f_=["right","left"],fG=["top","bottom"],pG=["bottom","top"];function hG(e,t,n){switch(e){case"top":case"bottom":return n?t?f_:d_:t?d_:f_;case"left":case"right":return t?fG:pG;default:return[]}}function mG(e,t,n,a){const i=m1(e);let l=hG(Jl(e),n==="start",a);return i&&(l=l.map(u=>u+"-"+i),t&&(l=l.concat(l.map(B5)))),l}function w2(e){return e.replace(/left|right|bottom|top/g,t=>sG[t])}function gG(e){return{top:0,right:0,bottom:0,left:0,...e}}function p_(e){return typeof e!="number"?gG(e):{top:e,right:e,bottom:e,left:e}}function b2(e){const{x:t,y:n,width:a,height:i}=e;return{width:a,height:i,top:n,left:t,right:t+a,bottom:n+i,x:t,y:n}}function h_(e,t,n){let{reference:a,floating:i}=e;const l=Ks(t),u=U5(t),f=H5(u),h=Jl(t),g=l==="y",x=a.x+a.width/2-i.width/2,y=a.y+a.height/2-i.height/2,k=a[f]/2-i[f]/2;let b;switch(h){case"top":b={x,y:a.y-i.height};break;case"bottom":b={x,y:a.y+a.height};break;case"right":b={x:a.x+a.width,y};break;case"left":b={x:a.x-i.width,y};break;default:b={x:a.x,y:a.y}}switch(m1(t)){case"start":b[u]-=k*(n&&g?-1:1);break;case"end":b[u]+=k*(n&&g?-1:1);break}return b}const vG=async(e,t,n)=>{const{placement:a="bottom",strategy:i="absolute",middleware:l=[],platform:u}=n,f=l.filter(Boolean),h=await(u.isRTL==null?void 0:u.isRTL(t));let g=await u.getElementRects({reference:e,floating:t,strategy:i}),{x,y}=h_(g,a,h),k=a,b={},T=0;for(let R=0;R<f.length;R++){const{name:N,fn:O}=f[R],{x:P,y:z,data:j,reset:V}=await O({x,y,initialPlacement:a,placement:k,strategy:i,middlewareData:b,rects:g,platform:u,elements:{reference:e,floating:t}});x=P!=null?P:x,y=z!=null?z:y,b={...b,[N]:{...b[N],...j}},V&&T<=50&&(T++,typeof V=="object"&&(V.placement&&(k=V.placement),V.rects&&(g=V.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:i}):V.rects),{x,y}=h_(g,k,h)),R=-1)}return{x,y,placement:k,strategy:i,middlewareData:b}};async function Gh(e,t){var n;t===void 0&&(t={});const{x:a,y:i,platform:l,rects:u,elements:f,strategy:h}=e,{boundary:g="clippingAncestors",rootBoundary:x="viewport",elementContext:y="floating",altBoundary:k=!1,padding:b=0}=Yl(t,e),T=p_(b),N=f[k?y==="floating"?"reference":"floating":y],O=b2(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(N)))==null||n?N:N.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(f.floating)),boundary:g,rootBoundary:x,strategy:h})),P=y==="floating"?{x:a,y:i,width:u.floating.width,height:u.floating.height}:u.reference,z=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f.floating)),j=await(l.isElement==null?void 0:l.isElement(z))?await(l.getScale==null?void 0:l.getScale(z))||{x:1,y:1}:{x:1,y:1},V=b2(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:P,offsetParent:z,strategy:h}):P);return{top:(O.top-V.top+T.top)/j.y,bottom:(V.bottom-O.bottom+T.bottom)/j.y,left:(O.left-V.left+T.left)/j.x,right:(V.right-O.right+T.right)/j.x}}const yG=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:a,placement:i,rects:l,platform:u,elements:f,middlewareData:h}=t,{element:g,padding:x=0}=Yl(e,t)||{};if(g==null)return{};const y=p_(x),k={x:n,y:a},b=U5(i),T=H5(b),R=await u.getDimensions(g),N=b==="y",O=N?"top":"left",P=N?"bottom":"right",z=N?"clientHeight":"clientWidth",j=l.reference[T]+l.reference[b]-k[b]-l.floating[T],V=k[b]-l.reference[b],H=await(u.getOffsetParent==null?void 0:u.getOffsetParent(g));let W=H?H[z]:0;(!W||!await(u.isElement==null?void 0:u.isElement(H)))&&(W=f.floating[z]||l.floating[T]);const G=j/2-V/2,ae=W/2-R[T]/2-1,ye=nc(y[O],ae),ce=nc(y[P],ae),he=ye,ue=W-R[T]-ce,Te=W/2-R[T]/2+G,ke=F5(he,Te,ue),Ee=!h.arrow&&m1(i)!=null&&Te!==ke&&l.reference[T]/2-(Te<he?ye:ce)-R[T]/2<0,xe=Ee?Te<he?Te-he:Te-ue:0;return{[b]:k[b]+xe,data:{[b]:ke,centerOffset:Te-ke-xe,...Ee&&{alignmentOffset:xe}},reset:Ee}}}),xG=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,a;const{placement:i,middlewareData:l,rects:u,initialPlacement:f,platform:h,elements:g}=t,{mainAxis:x=!0,crossAxis:y=!0,fallbackPlacements:k,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:R=!0,...N}=Yl(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const O=Jl(i),P=Ks(f),z=Jl(f)===f,j=await(h.isRTL==null?void 0:h.isRTL(g.floating)),V=k||(z||!R?[w2(f)]:dG(f)),H=T!=="none";!k&&H&&V.push(...mG(f,R,T,j));const W=[f,...V],G=await Gh(t,N),ae=[];let ye=((a=l.flip)==null?void 0:a.overflows)||[];if(x&&ae.push(G[O]),y){const Te=cG(i,u,j);ae.push(G[Te[0]],G[Te[1]])}if(ye=[...ye,{placement:i,overflows:ae}],!ae.every(Te=>Te<=0)){var ce,he;const Te=(((ce=l.flip)==null?void 0:ce.index)||0)+1,ke=W[Te];if(ke&&(!(y==="alignment"?P!==Ks(ke):!1)||ye.every(K=>Ks(K.placement)===P?K.overflows[0]>0:!0)))return{data:{index:Te,overflows:ye},reset:{placement:ke}};let Ee=(he=ye.filter(xe=>xe.overflows[0]<=0).sort((xe,K)=>xe.overflows[1]-K.overflows[1])[0])==null?void 0:he.placement;if(!Ee)switch(b){case"bestFit":{var ue;const xe=(ue=ye.filter(K=>{if(H){const Ae=Ks(K.placement);return Ae===P||Ae==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(Ae=>Ae>0).reduce((Ae,B)=>Ae+B,0)]).sort((K,Ae)=>K[1]-Ae[1])[0])==null?void 0:ue[0];xe&&(Ee=xe);break}case"initialPlacement":Ee=f;break}if(i!==Ee)return{reset:{placement:Ee}}}return{}}}};function m_(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function g_(e){return iG.some(t=>e[t]>=0)}const wG=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:a="referenceHidden",...i}=Yl(e,t);switch(a){case"referenceHidden":{const l=await Gh(t,{...i,elementContext:"reference"}),u=m_(l,n.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:g_(u)}}}case"escaped":{const l=await Gh(t,{...i,altBoundary:!0}),u=m_(l,n.floating);return{data:{escapedOffsets:u,escaped:g_(u)}}}default:return{}}}}},v_=new Set(["left","top"]);async function bG(e,t){const{placement:n,platform:a,elements:i}=e,l=await(a.isRTL==null?void 0:a.isRTL(i.floating)),u=Jl(n),f=m1(n),h=Ks(n)==="y",g=v_.has(u)?-1:1,x=l&&h?-1:1,y=Yl(t,e);let{mainAxis:k,crossAxis:b,alignmentAxis:T}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return f&&typeof T=="number"&&(b=f==="end"?T*-1:T),h?{x:b*x,y:k*g}:{x:k*g,y:b*x}}const CG=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,a;const{x:i,y:l,placement:u,middlewareData:f}=t,h=await bG(t,e);return u===((n=f.offset)==null?void 0:n.placement)&&(a=f.arrow)!=null&&a.alignmentOffset?{}:{x:i+h.x,y:l+h.y,data:{...h,placement:u}}}}},SG=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:a,placement:i}=t,{mainAxis:l=!0,crossAxis:u=!1,limiter:f={fn:N=>{let{x:O,y:P}=N;return{x:O,y:P}}},...h}=Yl(e,t),g={x:n,y:a},x=await Gh(t,h),y=Ks(Jl(i)),k=z5(y);let b=g[k],T=g[y];if(l){const N=k==="y"?"top":"left",O=k==="y"?"bottom":"right",P=b+x[N],z=b-x[O];b=F5(P,b,z)}if(u){const N=y==="y"?"top":"left",O=y==="y"?"bottom":"right",P=T+x[N],z=T-x[O];T=F5(P,T,z)}const R=f.fn({...t,[k]:b,[y]:T});return{...R,data:{x:R.x-n,y:R.y-a,enabled:{[k]:l,[y]:u}}}}}},kG=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:a,placement:i,rects:l,middlewareData:u}=t,{offset:f=0,mainAxis:h=!0,crossAxis:g=!0}=Yl(e,t),x={x:n,y:a},y=Ks(i),k=z5(y);let b=x[k],T=x[y];const R=Yl(f,t),N=typeof R=="number"?{mainAxis:R,crossAxis:0}:{mainAxis:0,crossAxis:0,...R};if(h){const z=k==="y"?"height":"width",j=l.reference[k]-l.floating[z]+N.mainAxis,V=l.reference[k]+l.reference[z]-N.mainAxis;b<j?b=j:b>V&&(b=V)}if(g){var O,P;const z=k==="y"?"width":"height",j=v_.has(Jl(i)),V=l.reference[y]-l.floating[z]+(j&&((O=u.offset)==null?void 0:O[y])||0)+(j?0:N.crossAxis),H=l.reference[y]+l.reference[z]+(j?0:((P=u.offset)==null?void 0:P[y])||0)-(j?N.crossAxis:0);T<V?T=V:T>H&&(T=H)}return{[k]:b,[y]:T}}}},EG=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,a;const{placement:i,rects:l,platform:u,elements:f}=t,{apply:h=()=>{},...g}=Yl(e,t),x=await Gh(t,g),y=Jl(i),k=m1(i),b=Ks(i)==="y",{width:T,height:R}=l.floating;let N,O;y==="top"||y==="bottom"?(N=y,O=k===(await(u.isRTL==null?void 0:u.isRTL(f.floating))?"start":"end")?"left":"right"):(O=y,N=k==="end"?"top":"bottom");const P=R-x.top-x.bottom,z=T-x.left-x.right,j=nc(R-x[N],P),V=nc(T-x[O],z),H=!t.middlewareData.shift;let W=j,G=V;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(G=z),(a=t.middlewareData.shift)!=null&&a.enabled.y&&(W=P),H&&!k){const ye=pi(x.left,0),ce=pi(x.right,0),he=pi(x.top,0),ue=pi(x.bottom,0);b?G=T-2*(ye!==0||ce!==0?ye+ce:pi(x.left,x.right)):W=R-2*(he!==0||ue!==0?he+ue:pi(x.top,x.bottom))}await h({...t,availableWidth:G,availableHeight:W});const ae=await u.getDimensions(f.floating);return T!==ae.width||R!==ae.height?{reset:{rects:!0}}:{}}}};function C2(){return typeof window!="undefined"}function g1(e){return y_(e)?(e.nodeName||"").toLowerCase():"#document"}function hi(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Qs(e){var t;return(t=(y_(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function y_(e){return C2()?e instanceof Node||e instanceof hi(e).Node:!1}function hs(e){return C2()?e instanceof Element||e instanceof hi(e).Element:!1}function el(e){return C2()?e instanceof HTMLElement||e instanceof hi(e).HTMLElement:!1}function x_(e){return!C2()||typeof ShadowRoot=="undefined"?!1:e instanceof ShadowRoot||e instanceof hi(e).ShadowRoot}const _G=new Set(["inline","contents"]);function Yh(e){const{overflow:t,overflowX:n,overflowY:a,display:i}=ms(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+n)&&!_G.has(i)}const TG=new Set(["table","td","th"]);function RG(e){return TG.has(g1(e))}const MG=[":popover-open",":modal"];function S2(e){return MG.some(t=>{try{return e.matches(t)}catch(n){return!1}})}const AG=["transform","translate","scale","rotate","perspective"],NG=["transform","translate","scale","rotate","perspective","filter"],LG=["paint","layout","strict","content"];function V5(e){const t=$5(),n=hs(e)?ms(e):e;return AG.some(a=>n[a]?n[a]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||NG.some(a=>(n.willChange||"").includes(a))||LG.some(a=>(n.contain||"").includes(a))}function OG(e){let t=rc(e);for(;el(t)&&!v1(t);){if(V5(t))return t;if(S2(t))return null;t=rc(t)}return null}function $5(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const IG=new Set(["html","body","#document"]);function v1(e){return IG.has(g1(e))}function ms(e){return hi(e).getComputedStyle(e)}function k2(e){return hs(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function rc(e){if(g1(e)==="html")return e;const t=e.assignedSlot||e.parentNode||x_(e)&&e.host||Qs(e);return x_(t)?t.host:t}function w_(e){const t=rc(e);return v1(t)?e.ownerDocument?e.ownerDocument.body:e.body:el(t)&&Yh(t)?t:w_(t)}function Jh(e,t,n){var a;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=w_(e),l=i===((a=e.ownerDocument)==null?void 0:a.body),u=hi(i);if(l){const f=Z5(u);return t.concat(u,u.visualViewport||[],Yh(i)?i:[],f&&n?Jh(f):[])}return t.concat(i,Jh(i,[],n))}function Z5(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function b_(e){const t=ms(e);let n=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const i=el(e),l=i?e.offsetWidth:n,u=i?e.offsetHeight:a,f=y2(n)!==l||y2(a)!==u;return f&&(n=l,a=u),{width:n,height:a,$:f}}function W5(e){return hs(e)?e:e.contextElement}function y1(e){const t=W5(e);if(!el(t))return Xs(1);const n=t.getBoundingClientRect(),{width:a,height:i,$:l}=b_(t);let u=(l?y2(n.width):n.width)/a,f=(l?y2(n.height):n.height)/i;return(!u||!Number.isFinite(u))&&(u=1),(!f||!Number.isFinite(f))&&(f=1),{x:u,y:f}}const DG=Xs(0);function C_(e){const t=hi(e);return!$5()||!t.visualViewport?DG:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function jG(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==hi(e)?!1:t}function bd(e,t,n,a){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),l=W5(e);let u=Xs(1);t&&(a?hs(a)&&(u=y1(a)):u=y1(e));const f=jG(l,n,a)?C_(l):Xs(0);let h=(i.left+f.x)/u.x,g=(i.top+f.y)/u.y,x=i.width/u.x,y=i.height/u.y;if(l){const k=hi(l),b=a&&hs(a)?hi(a):a;let T=k,R=Z5(T);for(;R&&a&&b!==T;){const N=y1(R),O=R.getBoundingClientRect(),P=ms(R),z=O.left+(R.clientLeft+parseFloat(P.paddingLeft))*N.x,j=O.top+(R.clientTop+parseFloat(P.paddingTop))*N.y;h*=N.x,g*=N.y,x*=N.x,y*=N.y,h+=z,g+=j,T=hi(R),R=Z5(T)}}return b2({width:x,height:y,x:h,y:g})}function E2(e,t){const n=k2(e).scrollLeft;return t?t.left+n:bd(Qs(e)).left+n}function S_(e,t){const n=e.getBoundingClientRect(),a=n.left+t.scrollLeft-E2(e,n),i=n.top+t.scrollTop;return{x:a,y:i}}function PG(e){let{elements:t,rect:n,offsetParent:a,strategy:i}=e;const l=i==="fixed",u=Qs(a),f=t?S2(t.floating):!1;if(a===u||f&&l)return n;let h={scrollLeft:0,scrollTop:0},g=Xs(1);const x=Xs(0),y=el(a);if((y||!y&&!l)&&((g1(a)!=="body"||Yh(u))&&(h=k2(a)),el(a))){const b=bd(a);g=y1(a),x.x=b.x+a.clientLeft,x.y=b.y+a.clientTop}const k=u&&!y&&!l?S_(u,h):Xs(0);return{width:n.width*g.x,height:n.height*g.y,x:n.x*g.x-h.scrollLeft*g.x+x.x+k.x,y:n.y*g.y-h.scrollTop*g.y+x.y+k.y}}function FG(e){return Array.from(e.getClientRects())}function zG(e){const t=Qs(e),n=k2(e),a=e.ownerDocument.body,i=pi(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),l=pi(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight);let u=-n.scrollLeft+E2(e);const f=-n.scrollTop;return ms(a).direction==="rtl"&&(u+=pi(t.clientWidth,a.clientWidth)-i),{width:i,height:l,x:u,y:f}}const k_=25;function HG(e,t){const n=hi(e),a=Qs(e),i=n.visualViewport;let l=a.clientWidth,u=a.clientHeight,f=0,h=0;if(i){l=i.width,u=i.height;const x=$5();(!x||x&&t==="fixed")&&(f=i.offsetLeft,h=i.offsetTop)}const g=E2(a);if(g<=0){const x=a.ownerDocument,y=x.body,k=getComputedStyle(y),b=x.compatMode==="CSS1Compat"&&parseFloat(k.marginLeft)+parseFloat(k.marginRight)||0,T=Math.abs(a.clientWidth-y.clientWidth-b);T<=k_&&(l-=T)}else g<=k_&&(l+=g);return{width:l,height:u,x:f,y:h}}const UG=new Set(["absolute","fixed"]);function BG(e,t){const n=bd(e,!0,t==="fixed"),a=n.top+e.clientTop,i=n.left+e.clientLeft,l=el(e)?y1(e):Xs(1),u=e.clientWidth*l.x,f=e.clientHeight*l.y,h=i*l.x,g=a*l.y;return{width:u,height:f,x:h,y:g}}function E_(e,t,n){let a;if(t==="viewport")a=HG(e,n);else if(t==="document")a=zG(Qs(e));else if(hs(t))a=BG(t,n);else{const i=C_(e);a={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return b2(a)}function __(e,t){const n=rc(e);return n===t||!hs(n)||v1(n)?!1:ms(n).position==="fixed"||__(n,t)}function VG(e,t){const n=t.get(e);if(n)return n;let a=Jh(e,[],!1).filter(f=>hs(f)&&g1(f)!=="body"),i=null;const l=ms(e).position==="fixed";let u=l?rc(e):e;for(;hs(u)&&!v1(u);){const f=ms(u),h=V5(u);!h&&f.position==="fixed"&&(i=null),(l?!h&&!i:!h&&f.position==="static"&&!!i&&UG.has(i.position)||Yh(u)&&!h&&__(e,u))?a=a.filter(x=>x!==u):i=f,u=rc(u)}return t.set(e,a),a}function $G(e){let{element:t,boundary:n,rootBoundary:a,strategy:i}=e;const u=[...n==="clippingAncestors"?S2(t)?[]:VG(t,this._c):[].concat(n),a],f=u[0],h=u.reduce((g,x)=>{const y=E_(t,x,i);return g.top=pi(y.top,g.top),g.right=nc(y.right,g.right),g.bottom=nc(y.bottom,g.bottom),g.left=pi(y.left,g.left),g},E_(t,f,i));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function ZG(e){const{width:t,height:n}=b_(e);return{width:t,height:n}}function WG(e,t,n){const a=el(t),i=Qs(t),l=n==="fixed",u=bd(e,!0,l,t);let f={scrollLeft:0,scrollTop:0};const h=Xs(0);function g(){h.x=E2(i)}if(a||!a&&!l)if((g1(t)!=="body"||Yh(i))&&(f=k2(t)),a){const b=bd(t,!0,l,t);h.x=b.x+t.clientLeft,h.y=b.y+t.clientTop}else i&&g();l&&!a&&i&&g();const x=i&&!a&&!l?S_(i,f):Xs(0),y=u.left+f.scrollLeft-h.x-x.x,k=u.top+f.scrollTop-h.y-x.y;return{x:y,y:k,width:u.width,height:u.height}}function q5(e){return ms(e).position==="static"}function T_(e,t){if(!el(e)||ms(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Qs(e)===n&&(n=n.ownerDocument.body),n}function R_(e,t){const n=hi(e);if(S2(e))return n;if(!el(e)){let i=rc(e);for(;i&&!v1(i);){if(hs(i)&&!q5(i))return i;i=rc(i)}return n}let a=T_(e,t);for(;a&&RG(a)&&q5(a);)a=T_(a,t);return a&&v1(a)&&q5(a)&&!V5(a)?n:a||OG(e)||n}const qG=async function(e){const t=this.getOffsetParent||R_,n=this.getDimensions,a=await n(e.floating);return{reference:WG(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function GG(e){return ms(e).direction==="rtl"}const YG={convertOffsetParentRelativeRectToViewportRelativeRect:PG,getDocumentElement:Qs,getClippingRect:$G,getOffsetParent:R_,getElementRects:qG,getClientRects:FG,getDimensions:ZG,getScale:y1,isElement:hs,isRTL:GG};function M_(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function JG(e,t){let n=null,a;const i=Qs(e);function l(){var f;clearTimeout(a),(f=n)==null||f.disconnect(),n=null}function u(f,h){f===void 0&&(f=!1),h===void 0&&(h=1),l();const g=e.getBoundingClientRect(),{left:x,top:y,width:k,height:b}=g;if(f||t(),!k||!b)return;const T=x2(y),R=x2(i.clientWidth-(x+k)),N=x2(i.clientHeight-(y+b)),O=x2(x),z={rootMargin:-T+"px "+-R+"px "+-N+"px "+-O+"px",threshold:pi(0,nc(1,h))||1};let j=!0;function V(H){const W=H[0].intersectionRatio;if(W!==h){if(!j)return u();W?u(!1,W):a=setTimeout(()=>{u(!1,1e-7)},1e3)}W===1&&!M_(g,e.getBoundingClientRect())&&u(),j=!1}try{n=new IntersectionObserver(V,{...z,root:i.ownerDocument})}catch(H){n=new IntersectionObserver(V,z)}n.observe(e)}return u(!0),l}function XG(e,t,n,a){a===void 0&&(a={});const{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:h=!1}=a,g=W5(e),x=i||l?[...g?Jh(g):[],...Jh(t)]:[];x.forEach(O=>{i&&O.addEventListener("scroll",n,{passive:!0}),l&&O.addEventListener("resize",n)});const y=g&&f?JG(g,n):null;let k=-1,b=null;u&&(b=new ResizeObserver(O=>{let[P]=O;P&&P.target===g&&b&&(b.unobserve(t),cancelAnimationFrame(k),k=requestAnimationFrame(()=>{var z;(z=b)==null||z.observe(t)})),n()}),g&&!h&&b.observe(g),b.observe(t));let T,R=h?bd(e):null;h&&N();function N(){const O=bd(e);R&&!M_(R,O)&&n(),R=O,T=requestAnimationFrame(N)}return n(),()=>{var O;x.forEach(P=>{i&&P.removeEventListener("scroll",n),l&&P.removeEventListener("resize",n)}),y==null||y(),(O=b)==null||O.disconnect(),b=null,h&&cancelAnimationFrame(T)}}const KG=CG,QG=SG,eY=xG,tY=EG,nY=wG,A_=yG,rY=kG,aY=(e,t,n)=>{const a=new Map,i={platform:YG,...n},l={...i.platform,_c:a};return vG(e,t,{...i,platform:l})};var oY=typeof document!="undefined",iY=function(){},_2=oY?L.useLayoutEffect:iY;function T2(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,a,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(a=n;a--!==0;)if(!T2(e[a],t[a]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(a=n;a--!==0;)if(!{}.hasOwnProperty.call(t,i[a]))return!1;for(a=n;a--!==0;){const l=i[a];if(!(l==="_owner"&&e.$$typeof)&&!T2(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function N_(e){return typeof window=="undefined"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function L_(e,t){const n=N_(e);return Math.round(t*n)/n}function G5(e){const t=L.useRef(e);return _2(()=>{t.current=e}),t}function sY(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:a=[],platform:i,elements:{reference:l,floating:u}={},transform:f=!0,whileElementsMounted:h,open:g}=e,[x,y]=L.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[k,b]=L.useState(a);T2(k,a)||b(a);const[T,R]=L.useState(null),[N,O]=L.useState(null),P=L.useCallback(K=>{K!==H.current&&(H.current=K,R(K))},[]),z=L.useCallback(K=>{K!==W.current&&(W.current=K,O(K))},[]),j=l||T,V=u||N,H=L.useRef(null),W=L.useRef(null),G=L.useRef(x),ae=h!=null,ye=G5(h),ce=G5(i),he=G5(g),ue=L.useCallback(()=>{if(!H.current||!W.current)return;const K={placement:t,strategy:n,middleware:k};ce.current&&(K.platform=ce.current),aY(H.current,W.current,K).then(Ae=>{const B={...Ae,isPositioned:he.current!==!1};Te.current&&!T2(G.current,B)&&(G.current=B,$l.flushSync(()=>{y(B)}))})},[k,t,n,ce,he]);_2(()=>{g===!1&&G.current.isPositioned&&(G.current.isPositioned=!1,y(K=>({...K,isPositioned:!1})))},[g]);const Te=L.useRef(!1);_2(()=>(Te.current=!0,()=>{Te.current=!1}),[]),_2(()=>{if(j&&(H.current=j),V&&(W.current=V),j&&V){if(ye.current)return ye.current(j,V,ue);ue()}},[j,V,ue,ye,ae]);const ke=L.useMemo(()=>({reference:H,floating:W,setReference:P,setFloating:z}),[P,z]),Ee=L.useMemo(()=>({reference:j,floating:V}),[j,V]),xe=L.useMemo(()=>{const K={position:n,left:0,top:0};if(!Ee.floating)return K;const Ae=L_(Ee.floating,x.x),B=L_(Ee.floating,x.y);return f?{...K,transform:"translate("+Ae+"px, "+B+"px)",...N_(Ee.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Ae,top:B}},[n,f,Ee.floating,x.x,x.y]);return L.useMemo(()=>({...x,update:ue,refs:ke,elements:Ee,floatingStyles:xe}),[x,ue,ke,Ee,xe])}const lY=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:a,padding:i}=typeof e=="function"?e(n):e;return a&&t(a)?a.current!=null?A_({element:a.current,padding:i}).fn(n):{}:a?A_({element:a,padding:i}).fn(n):{}}}},uY=(e,t)=>({...KG(e),options:[e,t]}),cY=(e,t)=>({...QG(e),options:[e,t]}),dY=(e,t)=>({...rY(e),options:[e,t]}),fY=(e,t)=>({...eY(e),options:[e,t]}),pY=(e,t)=>({...tY(e),options:[e,t]}),hY=(e,t)=>({...nY(e),options:[e,t]}),mY=(e,t)=>({...lY(e),options:[e,t]});var gY="Arrow",O_=L.forwardRef((e,t)=>{const{children:n,width:a=10,height:i=5,...l}=e;return C.jsx(hn.svg,{...l,ref:t,width:a,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:C.jsx("polygon",{points:"0,0 30,0 15,10"})})});O_.displayName=gY;var vY=O_;function Y5(e){const[t,n]=L.useState(void 0);return La(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const a=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const l=i[0];let u,f;if("borderBoxSize"in l){const h=l.borderBoxSize,g=Array.isArray(h)?h[0]:h;u=g.inlineSize,f=g.blockSize}else u=e.offsetWidth,f=e.offsetHeight;n({width:u,height:f})});return a.observe(e,{box:"border-box"}),()=>a.unobserve(e)}else n(void 0)},[e]),t}var J5="Popper",[I_,R2]=Js(J5),[yY,D_]=I_(J5),j_=e=>{const{__scopePopper:t,children:n}=e,[a,i]=L.useState(null);return C.jsx(yY,{scope:t,anchor:a,onAnchorChange:i,children:n})};j_.displayName=J5;var P_="PopperAnchor",F_=L.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:a,...i}=e,l=D_(P_,n),u=L.useRef(null),f=Vn(t,u),h=L.useRef(null);return L.useEffect(()=>{const g=h.current;h.current=(a==null?void 0:a.current)||u.current,g!==h.current&&l.onAnchorChange(h.current)}),a?null:C.jsx(hn.div,{...i,ref:f})});F_.displayName=P_;var X5="PopperContent",[xY,wY]=I_(X5),z_=L.forwardRef((e,t)=>{var _e,Ze,Ke,We,et,Et,bt,ct;const{__scopePopper:n,side:a="bottom",sideOffset:i=0,align:l="center",alignOffset:u=0,arrowPadding:f=0,avoidCollisions:h=!0,collisionBoundary:g=[],collisionPadding:x=0,sticky:y="partial",hideWhenDetached:k=!1,updatePositionStrategy:b="optimized",onPlaced:T,...R}=e,N=D_(X5,n),[O,P]=L.useState(null),z=Vn(t,yt=>P(yt)),[j,V]=L.useState(null),H=Y5(j),W=(_e=H==null?void 0:H.width)!=null?_e:0,G=(Ze=H==null?void 0:H.height)!=null?Ze:0,ae=a+(l!=="center"?"-"+l:""),ye=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},ce=Array.isArray(g)?g:[g],he=ce.length>0,ue={padding:ye,boundary:ce.filter(CY),altBoundary:he},{refs:Te,floatingStyles:ke,placement:Ee,isPositioned:xe,middlewareData:K}=sY({strategy:"fixed",placement:ae,whileElementsMounted:(...yt)=>XG(...yt,{animationFrame:b==="always"}),elements:{reference:N.anchor},middleware:[uY({mainAxis:i+G,alignmentAxis:u}),h&&cY({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?dY():void 0,...ue}),h&&fY({...ue}),pY({...ue,apply:({elements:yt,rects:Pt,availableWidth:St,availableHeight:jn})=>{const{width:Bn,height:He}=Pt.reference,Mt=yt.floating.style;Mt.setProperty("--radix-popper-available-width",`${St}px`),Mt.setProperty("--radix-popper-available-height",`${jn}px`),Mt.setProperty("--radix-popper-anchor-width",`${Bn}px`),Mt.setProperty("--radix-popper-anchor-height",`${He}px`)}}),j&&mY({element:j,padding:f}),SY({arrowWidth:W,arrowHeight:G}),k&&hY({strategy:"referenceHidden",...ue})]}),[Ae,B]=B_(Ee),X=ec(T);La(()=>{xe&&(X==null||X())},[xe,X]);const pe=(Ke=K.arrow)==null?void 0:Ke.x,Z=(We=K.arrow)==null?void 0:We.y,ze=((et=K.arrow)==null?void 0:et.centerOffset)!==0,[st,Ve]=L.useState();return La(()=>{O&&Ve(window.getComputedStyle(O).zIndex)},[O]),C.jsx("div",{ref:Te.setFloating,"data-radix-popper-content-wrapper":"",style:{...ke,transform:xe?ke.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:st,"--radix-popper-transform-origin":[(Et=K.transformOrigin)==null?void 0:Et.x,(bt=K.transformOrigin)==null?void 0:bt.y].join(" "),...((ct=K.hide)==null?void 0:ct.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:C.jsx(xY,{scope:n,placedSide:Ae,onArrowChange:V,arrowX:pe,arrowY:Z,shouldHideArrow:ze,children:C.jsx(hn.div,{"data-side":Ae,"data-align":B,...R,ref:z,style:{...R.style,animation:xe?void 0:"none"}})})})});z_.displayName=X5;var H_="PopperArrow",bY={top:"bottom",right:"left",bottom:"top",left:"right"},U_=L.forwardRef(function(t,n){const{__scopePopper:a,...i}=t,l=wY(H_,a),u=bY[l.placedSide];return C.jsx("span",{ref:l.onArrowChange,style:{position:"absolute",left:l.arrowX,top:l.arrowY,[u]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[l.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[l.placedSide],visibility:l.shouldHideArrow?"hidden":void 0},children:C.jsx(vY,{...i,ref:n,style:{...i.style,display:"block"}})})});U_.displayName=H_;function CY(e){return e!==null}var SY=e=>({name:"transformOrigin",options:e,fn(t){var N,O,P,z,j;const{placement:n,rects:a,middlewareData:i}=t,u=((N=i.arrow)==null?void 0:N.centerOffset)!==0,f=u?0:e.arrowWidth,h=u?0:e.arrowHeight,[g,x]=B_(n),y={start:"0%",center:"50%",end:"100%"}[x],k=((P=(O=i.arrow)==null?void 0:O.x)!=null?P:0)+f/2,b=((j=(z=i.arrow)==null?void 0:z.y)!=null?j:0)+h/2;let T="",R="";return g==="bottom"?(T=u?y:`${k}px`,R=`${-h}px`):g==="top"?(T=u?y:`${k}px`,R=`${a.floating.height+h}px`):g==="right"?(T=`${-h}px`,R=u?y:`${b}px`):g==="left"&&(T=`${a.floating.width+h}px`,R=u?y:`${b}px`),{data:{x:T,y:R}}}});function B_(e){const[t,n="center"]=e.split("-");return[t,n]}var kY=j_,V_=F_,$_=z_,Z_=U_,EY="Portal",M2=L.forwardRef((e,t)=>{var f;const{container:n,...a}=e,[i,l]=L.useState(!1);La(()=>l(!0),[]);const u=n||i&&((f=globalThis==null?void 0:globalThis.document)==null?void 0:f.body);return u?BD.createPortal(C.jsx(hn.div,{...a,ref:t}),u):null});M2.displayName=EY;function _Y(e,t){return L.useReducer((n,a)=>{const i=t[n][a];return i!=null?i:n},e)}var Xl=e=>{const{present:t,children:n}=e,a=TY(t),i=typeof n=="function"?n({present:a.isPresent}):L.Children.only(n),l=Vn(a.ref,RY(i));return typeof n=="function"||a.isPresent?L.cloneElement(i,{ref:l}):null};Xl.displayName="Presence";function TY(e){const[t,n]=L.useState(),a=L.useRef(null),i=L.useRef(e),l=L.useRef("none"),u=e?"mounted":"unmounted",[f,h]=_Y(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return L.useEffect(()=>{const g=A2(a.current);l.current=f==="mounted"?g:"none"},[f]),La(()=>{const g=a.current,x=i.current;if(x!==e){const k=l.current,b=A2(g);e?h("MOUNT"):b==="none"||(g==null?void 0:g.display)==="none"?h("UNMOUNT"):h(x&&k!==b?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,h]),La(()=>{var g;if(t){let x;const y=(g=t.ownerDocument.defaultView)!=null?g:window,k=T=>{const N=A2(a.current).includes(CSS.escape(T.animationName));if(T.target===t&&N&&(h("ANIMATION_END"),!i.current)){const O=t.style.animationFillMode;t.style.animationFillMode="forwards",x=y.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=O)})}},b=T=>{T.target===t&&(l.current=A2(a.current))};return t.addEventListener("animationstart",b),t.addEventListener("animationcancel",k),t.addEventListener("animationend",k),()=>{y.clearTimeout(x),t.removeEventListener("animationstart",b),t.removeEventListener("animationcancel",k),t.removeEventListener("animationend",k)}}else h("ANIMATION_END")},[t,h]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:L.useCallback(g=>{a.current=g?getComputedStyle(g):null,n(g)},[])}}function A2(e){return(e==null?void 0:e.animationName)||"none"}function RY(e){var a,i;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var MY=x9[" useInsertionEffect ".trim().toString()]||La;function x1({prop:e,defaultProp:t,onChange:n=()=>{},caller:a}){const[i,l,u]=AY({defaultProp:t,onChange:n}),f=e!==void 0,h=f?e:i;{const x=L.useRef(e!==void 0);L.useEffect(()=>{const y=x.current;y!==f&&console.warn(`${a} is changing from ${y?"controlled":"uncontrolled"} to ${f?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),x.current=f},[f,a])}const g=L.useCallback(x=>{var y;if(f){const k=NY(x)?x(e):x;k!==e&&((y=u.current)==null||y.call(u,k))}else l(x)},[f,e,l,u]);return[h,g]}function AY({defaultProp:e,onChange:t}){const[n,a]=L.useState(e),i=L.useRef(n),l=L.useRef(t);return MY(()=>{l.current=t},[t]),L.useEffect(()=>{var u;i.current!==n&&((u=l.current)==null||u.call(l,n),i.current=n)},[n,i]),[n,a,l]}function NY(e){return typeof e=="function"}var W_=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),LY="VisuallyHidden",q_=L.forwardRef((e,t)=>C.jsx(hn.span,{...e,ref:t,style:{...W_,...e.style}}));q_.displayName=LY;var OY=q_,[N2]=Js("Tooltip",[R2]),L2=R2(),G_="TooltipProvider",IY=700,K5="tooltip.open",[DY,Q5]=N2(G_),Y_=e=>{const{__scopeTooltip:t,delayDuration:n=IY,skipDelayDuration:a=300,disableHoverableContent:i=!1,children:l}=e,u=L.useRef(!0),f=L.useRef(!1),h=L.useRef(0);return L.useEffect(()=>{const g=h.current;return()=>window.clearTimeout(g)},[]),C.jsx(DY,{scope:t,isOpenDelayedRef:u,delayDuration:n,onOpen:L.useCallback(()=>{window.clearTimeout(h.current),u.current=!1},[]),onClose:L.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>u.current=!0,a)},[a]),isPointerInTransitRef:f,onPointerInTransitChange:L.useCallback(g=>{f.current=g},[]),disableHoverableContent:i,children:l})};Y_.displayName=G_;var Xh="Tooltip",[jY,Kh]=N2(Xh),J_=e=>{const{__scopeTooltip:t,children:n,open:a,defaultOpen:i,onOpenChange:l,disableHoverableContent:u,delayDuration:f}=e,h=Q5(Xh,e.__scopeTooltip),g=L2(t),[x,y]=L.useState(null),k=tc(),b=L.useRef(0),T=u!=null?u:h.disableHoverableContent,R=f!=null?f:h.delayDuration,N=L.useRef(!1),[O,P]=x1({prop:a,defaultProp:i!=null?i:!1,onChange:W=>{W?(h.onOpen(),document.dispatchEvent(new CustomEvent(K5))):h.onClose(),l==null||l(W)},caller:Xh}),z=L.useMemo(()=>O?N.current?"delayed-open":"instant-open":"closed",[O]),j=L.useCallback(()=>{window.clearTimeout(b.current),b.current=0,N.current=!1,P(!0)},[P]),V=L.useCallback(()=>{window.clearTimeout(b.current),b.current=0,P(!1)},[P]),H=L.useCallback(()=>{window.clearTimeout(b.current),b.current=window.setTimeout(()=>{N.current=!0,P(!0),b.current=0},R)},[R,P]);return L.useEffect(()=>()=>{b.current&&(window.clearTimeout(b.current),b.current=0)},[]),C.jsx(kY,{...g,children:C.jsx(jY,{scope:t,contentId:k,open:O,stateAttribute:z,trigger:x,onTriggerChange:y,onTriggerEnter:L.useCallback(()=>{h.isOpenDelayedRef.current?H():j()},[h.isOpenDelayedRef,H,j]),onTriggerLeave:L.useCallback(()=>{T?V():(window.clearTimeout(b.current),b.current=0)},[V,T]),onOpen:j,onClose:V,disableHoverableContent:T,children:n})})};J_.displayName=Xh;var ey="TooltipTrigger",X_=L.forwardRef((e,t)=>{const{__scopeTooltip:n,...a}=e,i=Kh(ey,n),l=Q5(ey,n),u=L2(n),f=L.useRef(null),h=Vn(t,f,i.onTriggerChange),g=L.useRef(!1),x=L.useRef(!1),y=L.useCallback(()=>g.current=!1,[]);return L.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),C.jsx(V_,{asChild:!0,...u,children:C.jsx(hn.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...a,ref:h,onPointerMove:nn(e.onPointerMove,k=>{k.pointerType!=="touch"&&!x.current&&!l.isPointerInTransitRef.current&&(i.onTriggerEnter(),x.current=!0)}),onPointerLeave:nn(e.onPointerLeave,()=>{i.onTriggerLeave(),x.current=!1}),onPointerDown:nn(e.onPointerDown,()=>{i.open&&i.onClose(),g.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:nn(e.onFocus,()=>{g.current||i.onOpen()}),onBlur:nn(e.onBlur,i.onClose),onClick:nn(e.onClick,i.onClose)})})});X_.displayName=ey;var ty="TooltipPortal",[PY,FY]=N2(ty,{forceMount:void 0}),K_=e=>{const{__scopeTooltip:t,forceMount:n,children:a,container:i}=e,l=Kh(ty,t);return C.jsx(PY,{scope:t,forceMount:n,children:C.jsx(Xl,{present:n||l.open,children:C.jsx(M2,{asChild:!0,container:i,children:a})})})};K_.displayName=ty;var w1="TooltipContent",Q_=L.forwardRef((e,t)=>{const n=FY(w1,e.__scopeTooltip),{forceMount:a=n.forceMount,side:i="top",...l}=e,u=Kh(w1,e.__scopeTooltip);return C.jsx(Xl,{present:a||u.open,children:u.disableHoverableContent?C.jsx(eT,{side:i,...l,ref:t}):C.jsx(zY,{side:i,...l,ref:t})})}),zY=L.forwardRef((e,t)=>{const n=Kh(w1,e.__scopeTooltip),a=Q5(w1,e.__scopeTooltip),i=L.useRef(null),l=Vn(t,i),[u,f]=L.useState(null),{trigger:h,onClose:g}=n,x=i.current,{onPointerInTransitChange:y}=a,k=L.useCallback(()=>{f(null),y(!1)},[y]),b=L.useCallback((T,R)=>{const N=T.currentTarget,O={x:T.clientX,y:T.clientY},P=VY(O,N.getBoundingClientRect()),z=$Y(O,P),j=ZY(R.getBoundingClientRect()),V=qY([...z,...j]);f(V),y(!0)},[y]);return L.useEffect(()=>()=>k(),[k]),L.useEffect(()=>{if(h&&x){const T=N=>b(N,x),R=N=>b(N,h);return h.addEventListener("pointerleave",T),x.addEventListener("pointerleave",R),()=>{h.removeEventListener("pointerleave",T),x.removeEventListener("pointerleave",R)}}},[h,x,b,k]),L.useEffect(()=>{if(u){const T=R=>{const N=R.target,O={x:R.clientX,y:R.clientY},P=(h==null?void 0:h.contains(N))||(x==null?void 0:x.contains(N)),z=!WY(O,u);P?k():z&&(k(),g())};return document.addEventListener("pointermove",T),()=>document.removeEventListener("pointermove",T)}},[h,x,u,g,k]),C.jsx(eT,{...e,ref:l})}),[HY,UY]=N2(Xh,{isInside:!1}),BY=$q("TooltipContent"),eT=L.forwardRef((e,t)=>{const{__scopeTooltip:n,children:a,"aria-label":i,onEscapeKeyDown:l,onPointerDownOutside:u,...f}=e,h=Kh(w1,n),g=L2(n),{onClose:x}=h;return L.useEffect(()=>(document.addEventListener(K5,x),()=>document.removeEventListener(K5,x)),[x]),L.useEffect(()=>{if(h.trigger){const y=k=>{const b=k.target;b!=null&&b.contains(h.trigger)&&x()};return window.addEventListener("scroll",y,{capture:!0}),()=>window.removeEventListener("scroll",y,{capture:!0})}},[h.trigger,x]),C.jsx(v2,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:y=>y.preventDefault(),onDismiss:x,children:C.jsxs($_,{"data-state":h.stateAttribute,...g,...f,ref:t,style:{...f.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[C.jsx(BY,{children:a}),C.jsx(HY,{scope:n,isInside:!0,children:C.jsx(OY,{id:h.contentId,role:"tooltip",children:i||a})})]})})});Q_.displayName=w1;var tT="TooltipArrow",nT=L.forwardRef((e,t)=>{const{__scopeTooltip:n,...a}=e,i=L2(n);return UY(tT,n).isInside?null:C.jsx(Z_,{...i,...a,ref:t})});nT.displayName=tT;function VY(e,t){const n=Math.abs(t.top-e.y),a=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),l=Math.abs(t.left-e.x);switch(Math.min(n,a,i,l)){case l:return"left";case i:return"right";case n:return"top";case a:return"bottom";default:throw new Error("unreachable")}}function $Y(e,t,n=5){const a=[];switch(t){case"top":a.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":a.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":a.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":a.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return a}function ZY(e){const{top:t,right:n,bottom:a,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:a},{x:i,y:a}]}function WY(e,t){const{x:n,y:a}=e;let i=!1;for(let l=0,u=t.length-1;l<t.length;u=l++){const f=t[l],h=t[u],g=f.x,x=f.y,y=h.x,k=h.y;x>a!=k>a&&n<(y-g)*(a-x)/(k-x)+g&&(i=!i)}return i}function qY(e){const t=e.slice();return t.sort((n,a)=>n.x<a.x?-1:n.x>a.x?1:n.y<a.y?-1:n.y>a.y?1:0),GY(t)}function GY(e){if(e.length<=1)return e.slice();const t=[];for(let a=0;a<e.length;a++){const i=e[a];for(;t.length>=2;){const l=t[t.length-1],u=t[t.length-2];if((l.x-u.x)*(i.y-u.y)>=(l.y-u.y)*(i.x-u.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let a=e.length-1;a>=0;a--){const i=e[a];for(;n.length>=2;){const l=n[n.length-1],u=n[n.length-2];if((l.x-u.x)*(i.y-u.y)>=(l.y-u.y)*(i.x-u.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var YY=J_,JY=X_,XY=K_,rT=Q_,KY=nT;const QY=YY,eJ=JY,aT=L.forwardRef(({className:e,sideOffset:t=4,...n},a)=>C.jsx(XY,{children:C.jsxs(rT,{ref:a,sideOffset:t,className:Ge(e),...n,children:[n.children,C.jsx(KY,{className:"fill-[#525867]"})]})}));aT.displayName=rT.displayName;const tJ=({children:e,content:t})=>C.jsxs(QY,{children:[C.jsx(eJ,{asChild:!0,children:e}),C.jsx(aT,{className:"z-50 rounded-[4px] bg-[#525867] px-[10px] py-[6px] text-[14px] text-white leading-normal max-w-[288px]",children:t})]}),Cd=L.forwardRef(({icon:e,className:t,tooltip:n,size:a,...i},l)=>{const u=C.jsx(bo,{ref:l,variant:"ghost",size:"icon",className:Ge("p-2.5",{"rounded-full w-[26px] h-[26px] aspect-square !text-[#121111]":i.rounded,"rounded-[4px]":!i.rounded},"cursor-pointer","hover:!bg-[#EFF0F6]",t,Xa),...i,children:e});return n?C.jsx(tJ,{content:n,children:u}):u}),b1=e=>{const t=t_();return{exec:L.useCallback(a=>{var l;let i=a;for(const u of t){const f=(l=u.lifecycleHooks)==null?void 0:l[e];f&&(i=f(i))}return i},[])}},ny=e=>{const{exec:t}=b1("onBeforeChatRender");return t(e)},O2=e=>C.jsxs("div",{className:"flex items-center gap-[6px]",children:[C.jsxs("div",{className:"flex gap-[2px] flex-shrink-0",style:{marginRight:"6px"},children:[C.jsx("div",{className:"w-[5px] h-[5px] rounded-full bg-[#999] flex-shrink-0",style:{animation:"pulse 1.4s ease-in-out infinite",animationDelay:"0s",width:"5px",height:"5px",background:"#999",marginRight:"3px"}}),C.jsx("div",{className:"w-[5px] h-[5px] rounded-full bg-[#999] flex-shrink-0",style:{animation:"pulse 1.4s ease-in-out infinite",width:"5px",height:"5px",background:"#999",animationDelay:"0.2s",marginRight:"3px"}}),C.jsx("div",{className:"w-[5px] h-[5px] rounded-full bg-[#999] flex-shrink-0",style:{animation:"pulse 1.4s ease-in-out infinite",width:"5px",height:"5px",marginRight:"3px",background:"#999",animationDelay:"0.4s"}})]}),C.jsx("span",{className:"text-[14px] text-[#999]",children:e.children||"生成中"}),C.jsx("style",{children:`
|
|
360
|
-
@keyframes pulse {
|
|
361
|
-
0%, 60%, 100% {
|
|
362
|
-
opacity: 0.3;
|
|
363
|
-
transform: scale(1);
|
|
364
|
-
}
|
|
365
|
-
30% {
|
|
366
|
-
opacity: 1;
|
|
367
|
-
transform: scale(1.2);
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
`})]}),nJ=({role:e,requiresScrollPadding:t,hasTextPart:n,hasFileType:a,children:i,isLoading:l,onCopy:u,onGenerate:f})=>{const h=e==="assistant",g=e==="user",x=ny(),y=h1("AvatarAndName"),k=y==null?void 0:y.Component,b=k?C.jsx(k,{}):C.jsx(Wh,{name:"AI表单搭建"}),[T,R]=L.useState(!1),N=h&&T&&!l,O=N?"opacity-100":"opacity-0",P=N?"pointer-events-auto":"pointer-events-none",z=C.jsxs("div",{className:Ge("flex items-center gap-2.5 text-[#666] h-[40px]",O,P),children:[C.jsx(Cd,{icon:C.jsx(xq,{}),onClick:u}),f?C.jsx(Cd,{icon:C.jsx(yq,{}),onClick:()=>{f&&f()}}):null]});return C.jsxs("div",{className:"group/message w-full","data-role":e,"data-testid":`message-${e}`,onMouseEnter:()=>R(!0),onMouseLeave:()=>R(!1),children:[C.jsxs("div",{className:Ge("flex w-full justify-start flex-col gap-2.5",{"items-end":e==="user","items-start":e==="assistant"}),children:[e==="assistant"&&b,C.jsxs("div",{className:Ge("flex flex-col min-w-0",{"gap-[10px]":n,grow:h,"items-end":e==="user","min-h-96":h&&t,"w-full":h&&n,"max-w-[calc(100%-2.5rem)] sm:max-w-[min(fit-content,80%)]":g&&!a,"max-w-full":a}),children:[i,l&&(x!=null&&x.appendLoadingIndicator)?C.jsx(O2,{}):null]})]}),z]})},Ka=({children:e,className:t,...n})=>C.jsx("div",{className:_a("flex flex-col gap-[10px] overflow-hidden p-0 text-foreground text-[14px]","group-[.is-user]:bg-primary group-[.is-user]:text-primary-foreground","group-[.is-assistant]:bg-secondary group-[.is-assistant]:text-foreground","is-user:dark overflow-visible",t),...n,children:e});function ry(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Sd=ry();function oT(e){Sd=e}var Qh={exec:()=>null};function Dn(e,t=""){let n=typeof e=="string"?e:e.source,a={replace:(i,l)=>{let u=typeof l=="string"?l:l.source;return u=u.replace(Co.caret,"$1"),n=n.replace(i,u),a},getRegex:()=>new RegExp(n,t)};return a}var rJ=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch(e){return!1}})(),Co={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]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ 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:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},aJ=/^(?:[ \t]*(?:\n|$))+/,oJ=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,iJ=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,em=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,sJ=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,ay=/(?:[*+-]|\d{1,9}[.)])/,iT=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,sT=Dn(iT).replace(/bull/g,ay).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(),lJ=Dn(iT).replace(/bull/g,ay).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(),oy=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,uJ=/^[^\n]+/,iy=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,cJ=Dn(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",iy).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),dJ=Dn(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,ay).getRegex(),I2="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",sy=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,fJ=Dn("^ {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",sy).replace("tag",I2).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),lT=Dn(oy).replace("hr",em).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",I2).getRegex(),pJ=Dn(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",lT).getRegex(),ly={blockquote:pJ,code:oJ,def:cJ,fences:iJ,heading:sJ,hr:em,html:fJ,lheading:sT,list:dJ,newline:aJ,paragraph:lT,table:Qh,text:uJ},uT=Dn("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",em).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",I2).getRegex(),hJ={...ly,lheading:lJ,table:uT,paragraph:Dn(oy).replace("hr",em).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",uT).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",I2).getRegex()},mJ={...ly,html:Dn(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",sy).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:Qh,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Dn(oy).replace("hr",em).replace("heading",` *#{1,6} *[^
|
|
371
|
-
]`).replace("lheading",sT).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},gJ=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,vJ=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,cT=/^( {2,}|\\)\n(?!\s*$)/,yJ=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,D2=/[\p{P}\p{S}]/u,uy=/[\s\p{P}\p{S}]/u,dT=/[^\s\p{P}\p{S}]/u,xJ=Dn(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,uy).getRegex(),fT=/(?!~)[\p{P}\p{S}]/u,wJ=/(?!~)[\s\p{P}\p{S}]/u,bJ=/(?:[^\s\p{P}\p{S}]|~)/u,CJ=Dn(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",rJ?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),pT=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,SJ=Dn(pT,"u").replace(/punct/g,D2).getRegex(),kJ=Dn(pT,"u").replace(/punct/g,fT).getRegex(),hT="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",EJ=Dn(hT,"gu").replace(/notPunctSpace/g,dT).replace(/punctSpace/g,uy).replace(/punct/g,D2).getRegex(),_J=Dn(hT,"gu").replace(/notPunctSpace/g,bJ).replace(/punctSpace/g,wJ).replace(/punct/g,fT).getRegex(),TJ=Dn("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,dT).replace(/punctSpace/g,uy).replace(/punct/g,D2).getRegex(),RJ=Dn(/\\(punct)/,"gu").replace(/punct/g,D2).getRegex(),MJ=Dn(/^<(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(),AJ=Dn(sy).replace("(?:-->|$)","-->").getRegex(),NJ=Dn("^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",AJ).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),j2=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,LJ=Dn(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",j2).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),mT=Dn(/^!?\[(label)\]\[(ref)\]/).replace("label",j2).replace("ref",iy).getRegex(),gT=Dn(/^!?\[(ref)\](?:\[\])?/).replace("ref",iy).getRegex(),OJ=Dn("reflink|nolink(?!\\()","g").replace("reflink",mT).replace("nolink",gT).getRegex(),vT=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,cy={_backpedal:Qh,anyPunctuation:RJ,autolink:MJ,blockSkip:CJ,br:cT,code:vJ,del:Qh,emStrongLDelim:SJ,emStrongRDelimAst:EJ,emStrongRDelimUnd:TJ,escape:gJ,link:LJ,nolink:gT,punctuation:xJ,reflink:mT,reflinkSearch:OJ,tag:NJ,text:yJ,url:Qh},IJ={...cy,link:Dn(/^!?\[(label)\]\((.*?)\)/).replace("label",j2).getRegex(),reflink:Dn(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",j2).getRegex()},dy={...cy,emStrongRDelimAst:_J,emStrongLDelim:kJ,url:Dn(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",vT).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\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Dn(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",vT).getRegex()},DJ={...dy,br:Dn(cT).replace("{2,}","*").getRegex(),text:Dn(dy.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},P2={normal:ly,gfm:hJ,pedantic:mJ},tm={normal:cy,gfm:dy,breaks:DJ,pedantic:IJ},jJ={"&":"&","<":"<",">":">",'"':""","'":"'"},yT=e=>jJ[e];function Kl(e,t){if(t){if(Co.escapeTest.test(e))return e.replace(Co.escapeReplace,yT)}else if(Co.escapeTestNoEncode.test(e))return e.replace(Co.escapeReplaceNoEncode,yT);return e}function xT(e){try{e=encodeURI(e).replace(Co.percentDecode,"%")}catch(t){return null}return e}function wT(e,t){var l;let n=e.replace(Co.findPipe,(u,f,h)=>{let g=!1,x=f;for(;--x>=0&&h[x]==="\\";)g=!g;return g?"|":" |"}),a=n.split(Co.splitPipe),i=0;if(a[0].trim()||a.shift(),a.length>0&&!((l=a.at(-1))!=null&&l.trim())&&a.pop(),t)if(a.length>t)a.splice(t);else for(;a.length<t;)a.push("");for(;i<a.length;i++)a[i]=a[i].trim().replace(Co.slashPipe,"|");return a}function nm(e,t,n){let a=e.length;if(a===0)return"";let i=0;for(;i<a&&e.charAt(a-i-1)===t;)i++;return e.slice(0,a-i)}function PJ(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let a=0;a<e.length;a++)if(e[a]==="\\")a++;else if(e[a]===t[0])n++;else if(e[a]===t[1]&&(n--,n<0))return a;return n>0?-2:-1}function bT(e,t,n,a,i){let l=t.href,u=t.title||null,f=e[1].replace(i.other.outputLinkReplace,"$1");a.state.inLink=!0;let h={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:l,title:u,text:f,tokens:a.inlineTokens(f)};return a.state.inLink=!1,h}function FJ(e,t,n){let a=e.match(n.other.indentCodeCompensation);if(a===null)return t;let i=a[1];return t.split(`
|
|
372
|
-
`).map(l=>{let u=l.match(n.other.beginningSpace);if(u===null)return l;let[f]=u;return f.length>=i.length?l.slice(i.length):l}).join(`
|
|
373
|
-
`)}var F2=class{constructor(e){qe(this,"options");qe(this,"rules");qe(this,"lexer");this.options=e||Sd}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:nm(n,`
|
|
374
|
-
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],a=FJ(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:a}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){let a=nm(n,"#");(this.options.pedantic||!a||this.rules.other.endingSpaceChar.test(a))&&(n=a.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:nm(t[0],`
|
|
375
|
-
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=nm(t[0],`
|
|
376
|
-
`).split(`
|
|
377
|
-
`),a="",i="",l=[];for(;n.length>0;){let u=!1,f=[],h;for(h=0;h<n.length;h++)if(this.rules.other.blockquoteStart.test(n[h]))f.push(n[h]),u=!0;else if(!u)f.push(n[h]);else break;n=n.slice(h);let g=f.join(`
|
|
378
|
-
`),x=g.replace(this.rules.other.blockquoteSetextReplace,`
|
|
379
|
-
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");a=a?`${a}
|
|
380
|
-
${g}`:g,i=i?`${i}
|
|
381
|
-
${x}`:x;let y=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(x,l,!0),this.lexer.state.top=y,n.length===0)break;let k=l.at(-1);if((k==null?void 0:k.type)==="code")break;if((k==null?void 0:k.type)==="blockquote"){let b=k,T=b.raw+`
|
|
382
|
-
`+n.join(`
|
|
383
|
-
`),R=this.blockquote(T);l[l.length-1]=R,a=a.substring(0,a.length-b.raw.length)+R.raw,i=i.substring(0,i.length-b.text.length)+R.text;break}else if((k==null?void 0:k.type)==="list"){let b=k,T=b.raw+`
|
|
384
|
-
`+n.join(`
|
|
385
|
-
`),R=this.list(T);l[l.length-1]=R,a=a.substring(0,a.length-k.raw.length)+R.raw,i=i.substring(0,i.length-b.raw.length)+R.raw,n=T.substring(l.at(-1).raw.length).split(`
|
|
386
|
-
`);continue}}return{type:"blockquote",raw:a,tokens:l,text:i}}}list(e){var n,a;let t=this.rules.block.list.exec(e);if(t){let i=t[1].trim(),l=i.length>1,u={type:"list",raw:"",ordered:l,start:l?+i.slice(0,-1):"",loose:!1,items:[]};i=l?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=l?i:"[*+-]");let f=this.rules.other.listItemRegex(i),h=!1;for(;e;){let x=!1,y="",k="";if(!(t=f.exec(e))||this.rules.block.hr.test(e))break;y=t[0],e=e.substring(y.length);let b=t[2].split(`
|
|
387
|
-
`,1)[0].replace(this.rules.other.listReplaceTabs,O=>" ".repeat(3*O.length)),T=e.split(`
|
|
388
|
-
`,1)[0],R=!b.trim(),N=0;if(this.options.pedantic?(N=2,k=b.trimStart()):R?N=t[1].length+1:(N=t[2].search(this.rules.other.nonSpaceChar),N=N>4?1:N,k=b.slice(N),N+=t[1].length),R&&this.rules.other.blankLine.test(T)&&(y+=T+`
|
|
389
|
-
`,e=e.substring(T.length+1),x=!0),!x){let O=this.rules.other.nextBulletRegex(N),P=this.rules.other.hrRegex(N),z=this.rules.other.fencesBeginRegex(N),j=this.rules.other.headingBeginRegex(N),V=this.rules.other.htmlBeginRegex(N);for(;e;){let H=e.split(`
|
|
390
|
-
`,1)[0],W;if(T=H,this.options.pedantic?(T=T.replace(this.rules.other.listReplaceNesting," "),W=T):W=T.replace(this.rules.other.tabCharGlobal," "),z.test(T)||j.test(T)||V.test(T)||O.test(T)||P.test(T))break;if(W.search(this.rules.other.nonSpaceChar)>=N||!T.trim())k+=`
|
|
391
|
-
`+W.slice(N);else{if(R||b.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||z.test(b)||j.test(b)||P.test(b))break;k+=`
|
|
392
|
-
`+T}!R&&!T.trim()&&(R=!0),y+=H+`
|
|
393
|
-
`,e=e.substring(H.length+1),b=W.slice(N)}}u.loose||(h?u.loose=!0:this.rules.other.doubleBlankLine.test(y)&&(h=!0)),u.items.push({type:"list_item",raw:y,task:!!this.options.gfm&&this.rules.other.listIsTask.test(k),loose:!1,text:k,tokens:[]}),u.raw+=y}let g=u.items.at(-1);if(g)g.raw=g.raw.trimEnd(),g.text=g.text.trimEnd();else return;u.raw=u.raw.trimEnd();for(let x of u.items){if(this.lexer.state.top=!1,x.tokens=this.lexer.blockTokens(x.text,[]),x.task){if(x.text=x.text.replace(this.rules.other.listReplaceTask,""),((n=x.tokens[0])==null?void 0:n.type)==="text"||((a=x.tokens[0])==null?void 0:a.type)==="paragraph"){x.tokens[0].raw=x.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),x.tokens[0].text=x.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let k=this.lexer.inlineQueue.length-1;k>=0;k--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[k].src)){this.lexer.inlineQueue[k].src=this.lexer.inlineQueue[k].src.replace(this.rules.other.listReplaceTask,"");break}}let y=this.rules.other.listTaskCheckbox.exec(x.raw);if(y){let k={type:"checkbox",raw:y[0]+" ",checked:y[0]!=="[ ]"};x.checked=k.checked,u.loose?x.tokens[0]&&["paragraph","text"].includes(x.tokens[0].type)&&"tokens"in x.tokens[0]&&x.tokens[0].tokens?(x.tokens[0].raw=k.raw+x.tokens[0].raw,x.tokens[0].text=k.raw+x.tokens[0].text,x.tokens[0].tokens.unshift(k)):x.tokens.unshift({type:"paragraph",raw:k.raw,text:k.raw,tokens:[k]}):x.tokens.unshift(k)}}if(!u.loose){let y=x.tokens.filter(b=>b.type==="space"),k=y.length>0&&y.some(b=>this.rules.other.anyLine.test(b.raw));u.loose=k}}if(u.loose)for(let x of u.items){x.loose=!0;for(let y of x.tokens)y.type==="text"&&(y.type="paragraph")}return u}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),a=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:a,title:i}}}table(e){var u;let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=wT(t[1]),a=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=(u=t[3])!=null&&u.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
394
|
-
`):[],l={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===a.length){for(let f of a)this.rules.other.tableAlignRight.test(f)?l.align.push("right"):this.rules.other.tableAlignCenter.test(f)?l.align.push("center"):this.rules.other.tableAlignLeft.test(f)?l.align.push("left"):l.align.push(null);for(let f=0;f<n.length;f++)l.header.push({text:n[f],tokens:this.lexer.inline(n[f]),header:!0,align:l.align[f]});for(let f of i)l.rows.push(wT(f,l.header.length).map((h,g)=>({text:h,tokens:this.lexer.inline(h),header:!1,align:l.align[g]})));return l}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let n=t[1].charAt(t[1].length-1)===`
|
|
395
|
-
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let l=nm(n.slice(0,-1),"\\");if((n.length-l.length)%2===0)return}else{let l=PJ(t[2],"()");if(l===-2)return;if(l>-1){let u=(t[0].indexOf("!")===0?5:4)+t[1].length+l;t[2]=t[2].substring(0,l),t[0]=t[0].substring(0,u).trim(),t[3]=""}}let a=t[2],i="";if(this.options.pedantic){let l=this.rules.other.pedanticHrefTitle.exec(a);l&&(a=l[1],i=l[3])}else i=t[3]?t[3].slice(1,-1):"";return a=a.trim(),this.rules.other.startAngleBracket.test(a)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?a=a.slice(1):a=a.slice(1,-1)),bT(t,{href:a&&a.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let a=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=t[a.toLowerCase()];if(!i){let l=n[0].charAt(0);return{type:"text",raw:l,text:l}}return bT(n,i,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let a=this.rules.inline.emStrongLDelim.exec(e);if(!(!a||a[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(a[1]||a[2])||!n||this.rules.inline.punctuation.exec(n))){let i=[...a[0]].length-1,l,u,f=i,h=0,g=a[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(g.lastIndex=0,t=t.slice(-1*e.length+i);(a=g.exec(t))!=null;){if(l=a[1]||a[2]||a[3]||a[4]||a[5]||a[6],!l)continue;if(u=[...l].length,a[3]||a[4]){f+=u;continue}else if((a[5]||a[6])&&i%3&&!((i+u)%3)){h+=u;continue}if(f-=u,f>0)continue;u=Math.min(u,u+f+h);let x=[...a[0]][0].length,y=e.slice(0,i+a.index+x+u);if(Math.min(i,u)%2){let b=y.slice(1,-1);return{type:"em",raw:y,text:b,tokens:this.lexer.inlineTokens(b)}}let k=y.slice(2,-2);return{type:"strong",raw:y,text:k,tokens:this.lexer.inlineTokens(k)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," "),a=this.rules.other.nonSpaceChar.test(n),i=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return a&&i&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let n,a;return t[2]==="@"?(n=t[1],a="mailto:"+n):(n=t[1],a=n),{type:"link",raw:t[0],text:n,href:a,tokens:[{type:"text",raw:n,text:n}]}}}url(e){var n,a;let t;if(t=this.rules.inline.url.exec(e)){let i,l;if(t[2]==="@")i=t[0],l="mailto:"+i;else{let u;do u=t[0],t[0]=(a=(n=this.rules.inline._backpedal.exec(t[0]))==null?void 0:n[0])!=null?a:"";while(u!==t[0]);i=t[0],t[1]==="www."?l="http://"+t[0]:l=t[0]}return{type:"link",raw:t[0],text:i,href:l,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}},gs=class rw{constructor(t){qe(this,"tokens");qe(this,"options");qe(this,"state");qe(this,"inlineQueue");qe(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Sd,this.options.tokenizer=this.options.tokenizer||new F2,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:Co,block:P2.normal,inline:tm.normal};this.options.pedantic?(n.block=P2.pedantic,n.inline=tm.pedantic):this.options.gfm&&(n.block=P2.gfm,this.options.breaks?n.inline=tm.breaks:n.inline=tm.gfm),this.tokenizer.rules=n}static get rules(){return{block:P2,inline:tm}}static lex(t,n){return new rw(n).lex(t)}static lexInline(t,n){return new rw(n).inlineTokens(t)}lex(t){t=t.replace(Co.carriageReturn,`
|
|
396
|
-
`),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let a=this.inlineQueue[n];this.inlineTokens(a.src,a.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],a=!1){var i,l,u;for(this.options.pedantic&&(t=t.replace(Co.tabCharGlobal," ").replace(Co.spaceLine,""));t;){let f;if((l=(i=this.options.extensions)==null?void 0:i.block)!=null&&l.some(g=>(f=g.call({lexer:this},t,n))?(t=t.substring(f.raw.length),n.push(f),!0):!1))continue;if(f=this.tokenizer.space(t)){t=t.substring(f.raw.length);let g=n.at(-1);f.raw.length===1&&g!==void 0?g.raw+=`
|
|
397
|
-
`:n.push(f);continue}if(f=this.tokenizer.code(t)){t=t.substring(f.raw.length);let g=n.at(-1);(g==null?void 0:g.type)==="paragraph"||(g==null?void 0:g.type)==="text"?(g.raw+=(g.raw.endsWith(`
|
|
398
|
-
`)?"":`
|
|
399
|
-
`)+f.raw,g.text+=`
|
|
400
|
-
`+f.text,this.inlineQueue.at(-1).src=g.text):n.push(f);continue}if(f=this.tokenizer.fences(t)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.heading(t)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.hr(t)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.blockquote(t)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.list(t)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.html(t)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.def(t)){t=t.substring(f.raw.length);let g=n.at(-1);(g==null?void 0:g.type)==="paragraph"||(g==null?void 0:g.type)==="text"?(g.raw+=(g.raw.endsWith(`
|
|
401
|
-
`)?"":`
|
|
402
|
-
`)+f.raw,g.text+=`
|
|
403
|
-
`+f.raw,this.inlineQueue.at(-1).src=g.text):this.tokens.links[f.tag]||(this.tokens.links[f.tag]={href:f.href,title:f.title},n.push(f));continue}if(f=this.tokenizer.table(t)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.lheading(t)){t=t.substring(f.raw.length),n.push(f);continue}let h=t;if((u=this.options.extensions)!=null&&u.startBlock){let g=1/0,x=t.slice(1),y;this.options.extensions.startBlock.forEach(k=>{y=k.call({lexer:this},x),typeof y=="number"&&y>=0&&(g=Math.min(g,y))}),g<1/0&&g>=0&&(h=t.substring(0,g+1))}if(this.state.top&&(f=this.tokenizer.paragraph(h))){let g=n.at(-1);a&&(g==null?void 0:g.type)==="paragraph"?(g.raw+=(g.raw.endsWith(`
|
|
404
|
-
`)?"":`
|
|
405
|
-
`)+f.raw,g.text+=`
|
|
406
|
-
`+f.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=g.text):n.push(f),a=h.length!==t.length,t=t.substring(f.raw.length);continue}if(f=this.tokenizer.text(t)){t=t.substring(f.raw.length);let g=n.at(-1);(g==null?void 0:g.type)==="text"?(g.raw+=(g.raw.endsWith(`
|
|
407
|
-
`)?"":`
|
|
408
|
-
`)+f.raw,g.text+=`
|
|
409
|
-
`+f.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=g.text):n.push(f);continue}if(t){let g="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(g);break}else throw new Error(g)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){var h,g,x,y,k,b;let a=t,i=null;if(this.tokens.links){let T=Object.keys(this.tokens.links);if(T.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(a))!=null;)T.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(a))!=null;)a=a.slice(0,i.index)+"++"+a.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let l;for(;(i=this.tokenizer.rules.inline.blockSkip.exec(a))!=null;)l=i[2]?i[2].length:0,a=a.slice(0,i.index+l)+"["+"a".repeat(i[0].length-l-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);a=(x=(g=(h=this.options.hooks)==null?void 0:h.emStrongMask)==null?void 0:g.call({lexer:this},a))!=null?x:a;let u=!1,f="";for(;t;){u||(f=""),u=!1;let T;if((k=(y=this.options.extensions)==null?void 0:y.inline)!=null&&k.some(N=>(T=N.call({lexer:this},t,n))?(t=t.substring(T.raw.length),n.push(T),!0):!1))continue;if(T=this.tokenizer.escape(t)){t=t.substring(T.raw.length),n.push(T);continue}if(T=this.tokenizer.tag(t)){t=t.substring(T.raw.length),n.push(T);continue}if(T=this.tokenizer.link(t)){t=t.substring(T.raw.length),n.push(T);continue}if(T=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(T.raw.length);let N=n.at(-1);T.type==="text"&&(N==null?void 0:N.type)==="text"?(N.raw+=T.raw,N.text+=T.text):n.push(T);continue}if(T=this.tokenizer.emStrong(t,a,f)){t=t.substring(T.raw.length),n.push(T);continue}if(T=this.tokenizer.codespan(t)){t=t.substring(T.raw.length),n.push(T);continue}if(T=this.tokenizer.br(t)){t=t.substring(T.raw.length),n.push(T);continue}if(T=this.tokenizer.del(t)){t=t.substring(T.raw.length),n.push(T);continue}if(T=this.tokenizer.autolink(t)){t=t.substring(T.raw.length),n.push(T);continue}if(!this.state.inLink&&(T=this.tokenizer.url(t))){t=t.substring(T.raw.length),n.push(T);continue}let R=t;if((b=this.options.extensions)!=null&&b.startInline){let N=1/0,O=t.slice(1),P;this.options.extensions.startInline.forEach(z=>{P=z.call({lexer:this},O),typeof P=="number"&&P>=0&&(N=Math.min(N,P))}),N<1/0&&N>=0&&(R=t.substring(0,N+1))}if(T=this.tokenizer.inlineText(R)){t=t.substring(T.raw.length),T.raw.slice(-1)!=="_"&&(f=T.raw.slice(-1)),u=!0;let N=n.at(-1);(N==null?void 0:N.type)==="text"?(N.raw+=T.raw,N.text+=T.text):n.push(T);continue}if(t){let N="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(N);break}else throw new Error(N)}}return n}},z2=class{constructor(e){qe(this,"options");qe(this,"parser");this.options=e||Sd}space(e){return""}code({text:e,lang:t,escaped:n}){var l;let a=(l=(t||"").match(Co.notSpaceStart))==null?void 0:l[0],i=e.replace(Co.endingNewline,"")+`
|
|
410
|
-
`;return a?'<pre><code class="language-'+Kl(a)+'">'+(n?i:Kl(i,!0))+`</code></pre>
|
|
411
|
-
`:"<pre><code>"+(n?i:Kl(i,!0))+`</code></pre>
|
|
412
|
-
`}blockquote({tokens:e}){return`<blockquote>
|
|
413
|
-
${this.parser.parse(e)}</blockquote>
|
|
414
|
-
`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
415
|
-
`}hr(e){return`<hr>
|
|
416
|
-
`}list(e){let t=e.ordered,n=e.start,a="";for(let u=0;u<e.items.length;u++){let f=e.items[u];a+=this.listitem(f)}let i=t?"ol":"ul",l=t&&n!==1?' start="'+n+'"':"";return"<"+i+l+`>
|
|
417
|
-
`+a+"</"+i+`>
|
|
418
|
-
`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
|
|
419
|
-
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
|
|
420
|
-
`}table(e){let t="",n="";for(let i=0;i<e.header.length;i++)n+=this.tablecell(e.header[i]);t+=this.tablerow({text:n});let a="";for(let i=0;i<e.rows.length;i++){let l=e.rows[i];n="";for(let u=0;u<l.length;u++)n+=this.tablecell(l[u]);a+=this.tablerow({text:n})}return a&&(a=`<tbody>${a}</tbody>`),`<table>
|
|
421
|
-
<thead>
|
|
422
|
-
`+t+`</thead>
|
|
423
|
-
`+a+`</table>
|
|
424
|
-
`}tablerow({text:e}){return`<tr>
|
|
425
|
-
${e}</tr>
|
|
426
|
-
`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
|
|
427
|
-
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Kl(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let a=this.parser.parseInline(n),i=xT(e);if(i===null)return a;e=i;let l='<a href="'+e+'"';return t&&(l+=' title="'+Kl(t)+'"'),l+=">"+a+"</a>",l}image({href:e,title:t,text:n,tokens:a}){a&&(n=this.parser.parseInline(a,this.parser.textRenderer));let i=xT(e);if(i===null)return Kl(n);e=i;let l=`<img src="${e}" alt="${n}"`;return t&&(l+=` title="${Kl(t)}"`),l+=">",l}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Kl(e.text)}},fy=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},vs=class aw{constructor(t){qe(this,"options");qe(this,"renderer");qe(this,"textRenderer");this.options=t||Sd,this.options.renderer=this.options.renderer||new z2,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new fy}static parse(t,n){return new aw(n).parse(t)}static parseInline(t,n){return new aw(n).parseInline(t)}parse(t){var a,i;let n="";for(let l=0;l<t.length;l++){let u=t[l];if((i=(a=this.options.extensions)==null?void 0:a.renderers)!=null&&i[u.type]){let h=u,g=this.options.extensions.renderers[h.type].call({parser:this},h);if(g!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(h.type)){n+=g||"";continue}}let f=u;switch(f.type){case"space":{n+=this.renderer.space(f);break}case"hr":{n+=this.renderer.hr(f);break}case"heading":{n+=this.renderer.heading(f);break}case"code":{n+=this.renderer.code(f);break}case"table":{n+=this.renderer.table(f);break}case"blockquote":{n+=this.renderer.blockquote(f);break}case"list":{n+=this.renderer.list(f);break}case"checkbox":{n+=this.renderer.checkbox(f);break}case"html":{n+=this.renderer.html(f);break}case"def":{n+=this.renderer.def(f);break}case"paragraph":{n+=this.renderer.paragraph(f);break}case"text":{n+=this.renderer.text(f);break}default:{let h='Token with "'+f.type+'" type was not found.';if(this.options.silent)return console.error(h),"";throw new Error(h)}}}return n}parseInline(t,n=this.renderer){var i,l;let a="";for(let u=0;u<t.length;u++){let f=t[u];if((l=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&l[f.type]){let g=this.options.extensions.renderers[f.type].call({parser:this},f);if(g!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(f.type)){a+=g||"";continue}}let h=f;switch(h.type){case"escape":{a+=n.text(h);break}case"html":{a+=n.html(h);break}case"link":{a+=n.link(h);break}case"image":{a+=n.image(h);break}case"checkbox":{a+=n.checkbox(h);break}case"strong":{a+=n.strong(h);break}case"em":{a+=n.em(h);break}case"codespan":{a+=n.codespan(h);break}case"br":{a+=n.br(h);break}case"del":{a+=n.del(h);break}case"text":{a+=n.text(h);break}default:{let g='Token with "'+h.type+'" type was not found.';if(this.options.silent)return console.error(g),"";throw new Error(g)}}}return a}},rm=(Eg=class{constructor(e){qe(this,"options");qe(this,"block");this.options=e||Sd}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?gs.lex:gs.lexInline}provideParser(){return this.block?vs.parse:vs.parseInline}},qe(Eg,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),qe(Eg,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Eg),zJ=class{constructor(...e){qe(this,"defaults",ry());qe(this,"options",this.setOptions);qe(this,"parse",this.parseMarkdown(!0));qe(this,"parseInline",this.parseMarkdown(!1));qe(this,"Parser",vs);qe(this,"Renderer",z2);qe(this,"TextRenderer",fy);qe(this,"Lexer",gs);qe(this,"Tokenizer",F2);qe(this,"Hooks",rm);this.use(...e)}walkTokens(e,t){var a,i;let n=[];for(let l of e)switch(n=n.concat(t.call(this,l)),l.type){case"table":{let u=l;for(let f of u.header)n=n.concat(this.walkTokens(f.tokens,t));for(let f of u.rows)for(let h of f)n=n.concat(this.walkTokens(h.tokens,t));break}case"list":{let u=l;n=n.concat(this.walkTokens(u.items,t));break}default:{let u=l;(i=(a=this.defaults.extensions)==null?void 0:a.childTokens)!=null&&i[u.type]?this.defaults.extensions.childTokens[u.type].forEach(f=>{let h=u[f].flat(1/0);n=n.concat(this.walkTokens(h,t))}):u.tokens&&(n=n.concat(this.walkTokens(u.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let a={...n};if(a.async=this.defaults.async||a.async||!1,n.extensions&&(n.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){let l=t.renderers[i.name];l?t.renderers[i.name]=function(...u){let f=i.renderer.apply(this,u);return f===!1&&(f=l.apply(this,u)),f}:t.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'");let l=t[i.level];l?l.unshift(i.tokenizer):t[i.level]=[i.tokenizer],i.start&&(i.level==="block"?t.startBlock?t.startBlock.push(i.start):t.startBlock=[i.start]:i.level==="inline"&&(t.startInline?t.startInline.push(i.start):t.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(t.childTokens[i.name]=i.childTokens)}),a.extensions=t),n.renderer){let i=this.defaults.renderer||new z2(this.defaults);for(let l in n.renderer){if(!(l in i))throw new Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;let u=l,f=n.renderer[u],h=i[u];i[u]=(...g)=>{let x=f.apply(i,g);return x===!1&&(x=h.apply(i,g)),x||""}}a.renderer=i}if(n.tokenizer){let i=this.defaults.tokenizer||new F2(this.defaults);for(let l in n.tokenizer){if(!(l in i))throw new Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;let u=l,f=n.tokenizer[u],h=i[u];i[u]=(...g)=>{let x=f.apply(i,g);return x===!1&&(x=h.apply(i,g)),x}}a.tokenizer=i}if(n.hooks){let i=this.defaults.hooks||new rm;for(let l in n.hooks){if(!(l in i))throw new Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;let u=l,f=n.hooks[u],h=i[u];rm.passThroughHooks.has(l)?i[u]=g=>{if(this.defaults.async&&rm.passThroughHooksRespectAsync.has(l))return(async()=>{let y=await f.call(i,g);return h.call(i,y)})();let x=f.call(i,g);return h.call(i,x)}:i[u]=(...g)=>{if(this.defaults.async)return(async()=>{let y=await f.apply(i,g);return y===!1&&(y=await h.apply(i,g)),y})();let x=f.apply(i,g);return x===!1&&(x=h.apply(i,g)),x}}a.hooks=i}if(n.walkTokens){let i=this.defaults.walkTokens,l=n.walkTokens;a.walkTokens=function(u){let f=[];return f.push(l.call(this,u)),i&&(f=f.concat(i.call(this,u))),f}}this.defaults={...this.defaults,...a}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return gs.lex(e,t!=null?t:this.defaults)}parser(e,t){return vs.parse(e,t!=null?t:this.defaults)}parseMarkdown(e){return(t,n)=>{let a={...n},i={...this.defaults,...a},l=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&a.async===!1)return l(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 t>"u"||t===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let u=i.hooks?await i.hooks.preprocess(t):t,f=await(i.hooks?await i.hooks.provideLexer():e?gs.lex:gs.lexInline)(u,i),h=i.hooks?await i.hooks.processAllTokens(f):f;i.walkTokens&&await Promise.all(this.walkTokens(h,i.walkTokens));let g=await(i.hooks?await i.hooks.provideParser():e?vs.parse:vs.parseInline)(h,i);return i.hooks?await i.hooks.postprocess(g):g})().catch(l);try{i.hooks&&(t=i.hooks.preprocess(t));let u=(i.hooks?i.hooks.provideLexer():e?gs.lex:gs.lexInline)(t,i);i.hooks&&(u=i.hooks.processAllTokens(u)),i.walkTokens&&this.walkTokens(u,i.walkTokens);let f=(i.hooks?i.hooks.provideParser():e?vs.parse:vs.parseInline)(u,i);return i.hooks&&(f=i.hooks.postprocess(f)),f}catch(u){return l(u)}}}onError(e,t){return n=>{if(n.message+=`
|
|
428
|
-
Please report this to https://github.com/markedjs/marked.`,e){let a="<p>An error occurred:</p><pre>"+Kl(n.message+"",!0)+"</pre>";return t?Promise.resolve(a):a}if(t)return Promise.reject(n);throw n}}},kd=new zJ;function Kn(e,t){return kd.parse(e,t)}Kn.options=Kn.setOptions=function(e){return kd.setOptions(e),Kn.defaults=kd.defaults,oT(Kn.defaults),Kn},Kn.getDefaults=ry,Kn.defaults=Sd,Kn.use=function(...e){return kd.use(...e),Kn.defaults=kd.defaults,oT(Kn.defaults),Kn},Kn.walkTokens=function(e,t){return kd.walkTokens(e,t)},Kn.parseInline=kd.parseInline,Kn.Parser=vs,Kn.parser=vs.parse,Kn.Renderer=z2,Kn.TextRenderer=fy,Kn.Lexer=gs,Kn.lexer=gs.lex,Kn.Tokenizer=F2,Kn.Hooks=rm,Kn.parse=Kn,Kn.options,Kn.setOptions,Kn.use,Kn.walkTokens,Kn.parseInline,vs.parse,gs.lex;function D1e(){}function j1e(){}function HJ(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const UJ=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,BJ=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,VJ={};function CT(e,t){return(VJ.jsx?BJ:UJ).test(e)}const $J=/[ \t\n\f\r]/g;function ZJ(e){return typeof e=="object"?e.type==="text"?ST(e.value):!1:ST(e)}function ST(e){return e.replace($J,"")===""}class am{constructor(t,n,a){this.normal=n,this.property=t,a&&(this.space=a)}}am.prototype.normal={},am.prototype.property={},am.prototype.space=void 0;function kT(e,t){const n={},a={};for(const i of e)Object.assign(n,i.property),Object.assign(a,i.normal);return new am(n,a,t)}function py(e){return e.toLowerCase()}class Vo{constructor(t,n){this.attribute=n,this.property=t}}Vo.prototype.attribute="",Vo.prototype.booleanish=!1,Vo.prototype.boolean=!1,Vo.prototype.commaOrSpaceSeparated=!1,Vo.prototype.commaSeparated=!1,Vo.prototype.defined=!1,Vo.prototype.mustUseProperty=!1,Vo.prototype.number=!1,Vo.prototype.overloadedBoolean=!1,Vo.prototype.property="",Vo.prototype.spaceSeparated=!1,Vo.prototype.space=void 0;let WJ=0;const sn=Ed(),ra=Ed(),hy=Ed(),Be=Ed(),fr=Ed(),C1=Ed(),mi=Ed();function Ed(){return 2**++WJ}const my=Object.freeze(Object.defineProperty({__proto__:null,boolean:sn,booleanish:ra,commaOrSpaceSeparated:mi,commaSeparated:C1,number:Be,overloadedBoolean:hy,spaceSeparated:fr},Symbol.toStringTag,{value:"Module"})),gy=Object.keys(my);class vy extends Vo{constructor(t,n,a,i){let l=-1;if(super(t,n),ET(this,"space",i),typeof a=="number")for(;++l<gy.length;){const u=gy[l];ET(this,gy[l],(a&my[u])===my[u])}}}vy.prototype.defined=!0;function ET(e,t,n){n&&(e[t]=n)}function S1(e){const t={},n={};for(const[a,i]of Object.entries(e.properties)){const l=new vy(a,e.transform(e.attributes||{},a),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(l.mustUseProperty=!0),t[a]=l,n[py(a)]=a,n[py(l.attribute)]=a}return new am(t,n,e.space)}const _T=S1({properties:{ariaActiveDescendant:null,ariaAtomic:ra,ariaAutoComplete:null,ariaBusy:ra,ariaChecked:ra,ariaColCount:Be,ariaColIndex:Be,ariaColSpan:Be,ariaControls:fr,ariaCurrent:null,ariaDescribedBy:fr,ariaDetails:null,ariaDisabled:ra,ariaDropEffect:fr,ariaErrorMessage:null,ariaExpanded:ra,ariaFlowTo:fr,ariaGrabbed:ra,ariaHasPopup:null,ariaHidden:ra,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:fr,ariaLevel:Be,ariaLive:null,ariaModal:ra,ariaMultiLine:ra,ariaMultiSelectable:ra,ariaOrientation:null,ariaOwns:fr,ariaPlaceholder:null,ariaPosInSet:Be,ariaPressed:ra,ariaReadOnly:ra,ariaRelevant:null,ariaRequired:ra,ariaRoleDescription:fr,ariaRowCount:Be,ariaRowIndex:Be,ariaRowSpan:Be,ariaSelected:ra,ariaSetSize:Be,ariaSort:null,ariaValueMax:Be,ariaValueMin:Be,ariaValueNow:Be,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function TT(e,t){return t in e?e[t]:t}function RT(e,t){return TT(e,t.toLowerCase())}const qJ=S1({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:C1,acceptCharset:fr,accessKey:fr,action:null,allow:null,allowFullScreen:sn,allowPaymentRequest:sn,allowUserMedia:sn,alt:null,as:null,async:sn,autoCapitalize:null,autoComplete:fr,autoFocus:sn,autoPlay:sn,blocking:fr,capture:null,charSet:null,checked:sn,cite:null,className:fr,cols:Be,colSpan:null,content:null,contentEditable:ra,controls:sn,controlsList:fr,coords:Be|C1,crossOrigin:null,data:null,dateTime:null,decoding:null,default:sn,defer:sn,dir:null,dirName:null,disabled:sn,download:hy,draggable:ra,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:sn,formTarget:null,headers:fr,height:Be,hidden:hy,high:Be,href:null,hrefLang:null,htmlFor:fr,httpEquiv:fr,id:null,imageSizes:null,imageSrcSet:null,inert:sn,inputMode:null,integrity:null,is:null,isMap:sn,itemId:null,itemProp:fr,itemRef:fr,itemScope:sn,itemType:fr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:sn,low:Be,manifest:null,max:null,maxLength:Be,media:null,method:null,min:null,minLength:Be,multiple:sn,muted:sn,name:null,nonce:null,noModule:sn,noValidate:sn,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:sn,optimum:Be,pattern:null,ping:fr,placeholder:null,playsInline:sn,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:sn,referrerPolicy:null,rel:fr,required:sn,reversed:sn,rows:Be,rowSpan:Be,sandbox:fr,scope:null,scoped:sn,seamless:sn,selected:sn,shadowRootClonable:sn,shadowRootDelegatesFocus:sn,shadowRootMode:null,shape:null,size:Be,sizes:null,slot:null,span:Be,spellCheck:ra,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Be,step:null,style:null,tabIndex:Be,target:null,title:null,translate:null,type:null,typeMustMatch:sn,useMap:null,value:ra,width:Be,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:fr,axis:null,background:null,bgColor:null,border:Be,borderColor:null,bottomMargin:Be,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:sn,declare:sn,event:null,face:null,frame:null,frameBorder:null,hSpace:Be,leftMargin:Be,link:null,longDesc:null,lowSrc:null,marginHeight:Be,marginWidth:Be,noResize:sn,noHref:sn,noShade:sn,noWrap:sn,object:null,profile:null,prompt:null,rev:null,rightMargin:Be,rules:null,scheme:null,scrolling:ra,standby:null,summary:null,text:null,topMargin:Be,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Be,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:sn,disableRemotePlayback:sn,prefix:null,property:null,results:Be,security:null,unselectable:null},space:"html",transform:RT}),GJ=S1({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:mi,accentHeight:Be,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Be,amplitude:Be,arabicForm:null,ascent:Be,attributeName:null,attributeType:null,azimuth:Be,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Be,by:null,calcMode:null,capHeight:Be,className:fr,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Be,diffuseConstant:Be,direction:null,display:null,dur:null,divisor:Be,dominantBaseline:null,download:sn,dx:null,dy:null,edgeMode:null,editable:null,elevation:Be,enableBackground:null,end:null,event:null,exponent:Be,externalResourcesRequired:null,fill:null,fillOpacity:Be,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:C1,g2:C1,glyphName:C1,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Be,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Be,horizOriginX:Be,horizOriginY:Be,id:null,ideographic:Be,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Be,k:Be,k1:Be,k2:Be,k3:Be,k4:Be,kernelMatrix:mi,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Be,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Be,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Be,overlineThickness:Be,paintOrder:null,panose1:null,path:null,pathLength:Be,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:fr,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Be,pointsAtY:Be,pointsAtZ:Be,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:mi,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:mi,rev:mi,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:mi,requiredFeatures:mi,requiredFonts:mi,requiredFormats:mi,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Be,specularExponent:Be,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Be,strikethroughThickness:Be,string:null,stroke:null,strokeDashArray:mi,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Be,strokeOpacity:Be,strokeWidth:null,style:null,surfaceScale:Be,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:mi,tabIndex:Be,tableValues:null,target:null,targetX:Be,targetY:Be,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:mi,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Be,underlineThickness:Be,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Be,values:null,vAlphabetic:Be,vMathematical:Be,vectorEffect:null,vHanging:Be,vIdeographic:Be,version:null,vertAdvY:Be,vertOriginX:Be,vertOriginY:Be,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Be,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:TT}),MT=S1({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),AT=S1({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:RT}),NT=S1({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),YJ={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},JJ=/[A-Z]/g,LT=/-[a-z]/g,XJ=/^data[-\w.:]+$/i;function KJ(e,t){const n=py(t);let a=t,i=Vo;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&XJ.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(LT,eX);a="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!LT.test(l)){let u=l.replace(JJ,QJ);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}i=vy}return new i(a,t)}function QJ(e){return"-"+e.toLowerCase()}function eX(e){return e.charAt(1).toUpperCase()}const tX=kT([_T,qJ,MT,AT,NT],"html"),yy=kT([_T,GJ,MT,AT,NT],"svg");function nX(e){return e.join(" ").trim()}var xy={},OT=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,rX=/\n/g,aX=/^\s*/,oX=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,iX=/^:\s*/,sX=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,lX=/^[;\s]*/,uX=/^\s+|\s+$/g,cX=`
|
|
429
|
-
`,IT="/",DT="*",_d="",dX="comment",fX="declaration";function pX(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,a=1;function i(T){var R=T.match(rX);R&&(n+=R.length);var N=T.lastIndexOf(cX);a=~N?T.length-N:a+T.length}function l(){var T={line:n,column:a};return function(R){return R.position=new u(T),g(),R}}function u(T){this.start=T,this.end={line:n,column:a},this.source=t.source}u.prototype.content=e;function f(T){var R=new Error(t.source+":"+n+":"+a+": "+T);if(R.reason=T,R.filename=t.source,R.line=n,R.column=a,R.source=e,!t.silent)throw R}function h(T){var R=T.exec(e);if(R){var N=R[0];return i(N),e=e.slice(N.length),R}}function g(){h(aX)}function x(T){var R;for(T=T||[];R=y();)R!==!1&&T.push(R);return T}function y(){var T=l();if(!(IT!=e.charAt(0)||DT!=e.charAt(1))){for(var R=2;_d!=e.charAt(R)&&(DT!=e.charAt(R)||IT!=e.charAt(R+1));)++R;if(R+=2,_d===e.charAt(R-1))return f("End of comment missing");var N=e.slice(2,R-2);return a+=2,i(N),e=e.slice(R),a+=2,T({type:dX,comment:N})}}function k(){var T=l(),R=h(oX);if(R){if(y(),!h(iX))return f("property missing ':'");var N=h(sX),O=T({type:fX,property:jT(R[0].replace(OT,_d)),value:N?jT(N[0].replace(OT,_d)):_d});return h(lX),O}}function b(){var T=[];x(T);for(var R;R=k();)R!==!1&&(T.push(R),x(T));return T}return g(),b()}function jT(e){return e?e.replace(uX,_d):_d}var hX=pX,mX=T4&&T4.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(xy,"__esModule",{value:!0}),xy.default=vX;const gX=mX(hX);function vX(e,t){let n=null;if(!e||typeof e!="string")return n;const a=(0,gX.default)(e),i=typeof t=="function";return a.forEach(l=>{if(l.type!=="declaration")return;const{property:u,value:f}=l;i?t(u,f,l):f&&(n=n||{},n[u]=f)}),n}var H2={};Object.defineProperty(H2,"__esModule",{value:!0}),H2.camelCase=void 0;var yX=/^--[a-zA-Z0-9_-]+$/,xX=/-([a-z])/g,wX=/^[^-]+$/,bX=/^-(webkit|moz|ms|o|khtml)-/,CX=/^-(ms)-/,SX=function(e){return!e||wX.test(e)||yX.test(e)},kX=function(e,t){return t.toUpperCase()},PT=function(e,t){return"".concat(t,"-")},EX=function(e,t){return t===void 0&&(t={}),SX(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(CX,PT):e=e.replace(bX,PT),e.replace(xX,kX))};H2.camelCase=EX;var _X=T4&&T4.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},TX=_X(xy),RX=H2;function wy(e,t){var n={};return!e||typeof e!="string"||(0,TX.default)(e,function(a,i){a&&i&&(n[(0,RX.camelCase)(a,t)]=i)}),n}wy.default=wy;var MX=wy;const AX=Wu(MX),FT=zT("end"),by=zT("start");function zT(e){return t;function t(n){const a=n&&n.position&&n.position[e]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function NX(e){const t=by(e),n=FT(e);if(t&&n)return{start:t,end:n}}function om(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?HT(e.position):"start"in e||"end"in e?HT(e):"line"in e||"column"in e?Cy(e):""}function Cy(e){return UT(e&&e.line)+":"+UT(e&&e.column)}function HT(e){return Cy(e&&e.start)+"-"+Cy(e&&e.end)}function UT(e){return e&&typeof e=="number"?e:1}class Qa extends Error{constructor(t,n,a){super(),typeof n=="string"&&(a=n,n=void 0);let i="",l={},u=!1;if(n&&("line"in n&&"column"in n?l={place:n}:"start"in n&&"end"in n?l={place:n}:"type"in n?l={ancestors:[n],place:n.position}:l={...n}),typeof t=="string"?i=t:!l.cause&&t&&(u=!0,i=t.message,l.cause=t),!l.ruleId&&!l.source&&typeof a=="string"){const h=a.indexOf(":");h===-1?l.ruleId=a:(l.source=a.slice(0,h),l.ruleId=a.slice(h+1))}if(!l.place&&l.ancestors&&l.ancestors){const h=l.ancestors[l.ancestors.length-1];h&&(l.place=h.position)}const f=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=f?f.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=f?f.line:void 0,this.name=om(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=u&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Qa.prototype.file="",Qa.prototype.name="",Qa.prototype.reason="",Qa.prototype.message="",Qa.prototype.stack="",Qa.prototype.column=void 0,Qa.prototype.line=void 0,Qa.prototype.ancestors=void 0,Qa.prototype.cause=void 0,Qa.prototype.fatal=void 0,Qa.prototype.place=void 0,Qa.prototype.ruleId=void 0,Qa.prototype.source=void 0;const Sy={}.hasOwnProperty,LX=new Map,OX=/[A-Z]/g,IX=new Set(["table","tbody","thead","tfoot","tr"]),DX=new Set(["td","th"]),BT="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function jX(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let a;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=$X(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=VX(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:a,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?yy:tX,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=VT(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function VT(e,t,n){if(t.type==="element")return PX(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return FX(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return HX(e,t,n);if(t.type==="mdxjsEsm")return zX(e,t);if(t.type==="root")return UX(e,t,n);if(t.type==="text")return BX(e,t)}function PX(e,t,n){const a=e.schema;let i=a;t.tagName.toLowerCase()==="svg"&&a.space==="html"&&(i=yy,e.schema=i),e.ancestors.push(t);const l=ZT(e,t.tagName,!1),u=ZX(e,t);let f=Ey(e,t);return IX.has(t.tagName)&&(f=f.filter(function(h){return typeof h=="string"?!ZJ(h):!0})),$T(e,u,l,t),ky(u,f),e.ancestors.pop(),e.schema=a,e.create(t,l,u,n)}function FX(e,t){if(t.data&&t.data.estree&&e.evaluater){const a=t.data.estree.body[0];return a.type,e.evaluater.evaluateExpression(a.expression)}im(e,t.position)}function zX(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);im(e,t.position)}function HX(e,t,n){const a=e.schema;let i=a;t.name==="svg"&&a.space==="html"&&(i=yy,e.schema=i),e.ancestors.push(t);const l=t.name===null?e.Fragment:ZT(e,t.name,!0),u=WX(e,t),f=Ey(e,t);return $T(e,u,l,t),ky(u,f),e.ancestors.pop(),e.schema=a,e.create(t,l,u,n)}function UX(e,t,n){const a={};return ky(a,Ey(e,t)),e.create(t,e.Fragment,a,n)}function BX(e,t){return t.value}function $T(e,t,n,a){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=a)}function ky(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function VX(e,t,n){return a;function a(i,l,u,f){const g=Array.isArray(u.children)?n:t;return f?g(l,u,f):g(l,u)}}function $X(e,t){return n;function n(a,i,l,u){const f=Array.isArray(l.children),h=by(a);return t(i,l,u,f,{columnNumber:h?h.column-1:void 0,fileName:e,lineNumber:h?h.line:void 0},void 0)}}function ZX(e,t){const n={};let a,i;for(i in t.properties)if(i!=="children"&&Sy.call(t.properties,i)){const l=qX(e,i,t.properties[i]);if(l){const[u,f]=l;e.tableCellAlignToStyle&&u==="align"&&typeof f=="string"&&DX.has(t.tagName)?a=f:n[u]=f}}if(a){const l=n.style||(n.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return n}function WX(e,t){const n={};for(const a of t.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&e.evaluater){const l=a.data.estree.body[0];l.type;const u=l.expression;u.type;const f=u.properties[0];f.type,Object.assign(n,e.evaluater.evaluateExpression(f.argument))}else im(e,t.position);else{const i=a.name;let l;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&e.evaluater){const f=a.value.data.estree.body[0];f.type,l=e.evaluater.evaluateExpression(f.expression)}else im(e,t.position);else l=a.value===null?!0:a.value;n[i]=l}return n}function Ey(e,t){const n=[];let a=-1;const i=e.passKeys?new Map:LX;for(;++a<t.children.length;){const l=t.children[a];let u;if(e.passKeys){const h=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(h){const g=i.get(h)||0;u=h+"-"+g,i.set(h,g+1)}}const f=VT(e,l,u);f!==void 0&&n.push(f)}return n}function qX(e,t,n){const a=KJ(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=a.commaSeparated?HJ(n):nX(n)),a.property==="style"){let i=typeof n=="object"?n:GX(e,String(n));return e.stylePropertyNameCase==="css"&&(i=YX(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&a.space?YJ[a.property]||a.property:a.attribute,n]}}function GX(e,t){try{return AX(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const a=n,i=new Qa("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=BT+"#cannot-parse-style-attribute",i}}function ZT(e,t,n){let a;if(!n)a={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let l=-1,u;for(;++l<i.length;){const f=CT(i[l])?{type:"Identifier",name:i[l]}:{type:"Literal",value:i[l]};u=u?{type:"MemberExpression",object:u,property:f,computed:!!(l&&f.type==="Literal"),optional:!1}:f}a=u}else a=CT(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(a.type==="Literal"){const i=a.value;return Sy.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(a);im(e)}function im(e,t){const n=new Qa("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=BT+"#cannot-handle-mdx-estrees-without-createevaluater",n}function YX(e){const t={};let n;for(n in e)Sy.call(e,n)&&(t[JX(n)]=e[n]);return t}function JX(e){let t=e.replace(OX,XX);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function XX(e){return"-"+e.toLowerCase()}const _y={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},KX={};function QX(e,t){const n=KX,a=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return WT(e,a,i)}function WT(e,t,n){if(eK(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return qT(e.children,t,n)}return Array.isArray(e)?qT(e,t,n):""}function qT(e,t,n){const a=[];let i=-1;for(;++i<e.length;)a[i]=WT(e[i],t,n);return a.join("")}function eK(e){return!!(e&&typeof e=="object")}const GT=document.createElement("i");function Ty(e){const t="&"+e+";";GT.innerHTML=t;const n=GT.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function tl(e,t,n,a){const i=e.length;let l=0,u;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,a.length<1e4)u=Array.from(a),u.unshift(t,n),e.splice(...u);else for(n&&e.splice(t,n);l<a.length;)u=a.slice(l,l+1e4),u.unshift(t,0),e.splice(...u),l+=1e4,t+=1e4}function Fi(e,t){return e.length>0?(tl(e,e.length,0,t),e):t}const YT={}.hasOwnProperty;function tK(e){const t={};let n=-1;for(;++n<e.length;)nK(t,e[n]);return t}function nK(e,t){let n;for(n in t){const i=(YT.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];let u;if(l)for(u in l){YT.call(i,u)||(i[u]=[]);const f=l[u];rK(i[u],Array.isArray(f)?f:f?[f]:[])}}}function rK(e,t){let n=-1;const a=[];for(;++n<t.length;)(t[n].add==="after"?e:a).push(t[n]);tl(e,0,0,a)}function JT(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function k1(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const nl=ac(/[A-Za-z]/),gi=ac(/[\dA-Za-z]/),aK=ac(/[#-'*+\--9=?A-Z^-~]/);function Ry(e){return e!==null&&(e<32||e===127)}const My=ac(/\d/),oK=ac(/[\dA-Fa-f]/),iK=ac(/[!-/:-@[-`{-~]/);function Zt(e){return e!==null&&e<-2}function $o(e){return e!==null&&(e<0||e===32)}function Un(e){return e===-2||e===-1||e===32}const sK=ac(/\p{P}|\p{S}/u),lK=ac(/\s/);function ac(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function E1(e){const t=[];let n=-1,a=0,i=0;for(;++n<e.length;){const l=e.charCodeAt(n);let u="";if(l===37&&gi(e.charCodeAt(n+1))&&gi(e.charCodeAt(n+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(u=String.fromCharCode(l));else if(l>55295&&l<57344){const f=e.charCodeAt(n+1);l<56320&&f>56319&&f<57344?(u=String.fromCharCode(l,f),i=1):u="�"}else u=String.fromCharCode(l);u&&(t.push(e.slice(a,n),encodeURIComponent(u)),a=n+i+1,u=""),i&&(n+=i,i=0)}return t.join("")+e.slice(a)}function pr(e,t,n,a){const i=a?a-1:Number.POSITIVE_INFINITY;let l=0;return u;function u(h){return Un(h)?(e.enter(n),f(h)):t(h)}function f(h){return Un(h)&&l++<i?(e.consume(h),f):(e.exit(n),t(h))}}const uK={tokenize:cK};function cK(e){const t=e.attempt(this.parser.constructs.contentInitial,a,i);let n;return t;function a(f){if(f===null){e.consume(f);return}return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),pr(e,t,"linePrefix")}function i(f){return e.enter("paragraph"),l(f)}function l(f){const h=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=h),n=h,u(f)}function u(f){if(f===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(f);return}return Zt(f)?(e.consume(f),e.exit("chunkText"),l):(e.consume(f),u)}}const dK={tokenize:fK},XT={tokenize:pK};function fK(e){const t=this,n=[];let a=0,i,l,u;return f;function f(z){if(a<n.length){const j=n[a];return t.containerState=j[1],e.attempt(j[0].continuation,h,g)(z)}return g(z)}function h(z){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&P();const j=t.events.length;let V=j,H;for(;V--;)if(t.events[V][0]==="exit"&&t.events[V][1].type==="chunkFlow"){H=t.events[V][1].end;break}O(a);let W=j;for(;W<t.events.length;)t.events[W][1].end={...H},W++;return tl(t.events,V+1,0,t.events.slice(j)),t.events.length=W,g(z)}return f(z)}function g(z){if(a===n.length){if(!i)return k(z);if(i.currentConstruct&&i.currentConstruct.concrete)return T(z);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(XT,x,y)(z)}function x(z){return i&&P(),O(a),k(z)}function y(z){return t.parser.lazy[t.now().line]=a!==n.length,u=t.now().offset,T(z)}function k(z){return t.containerState={},e.attempt(XT,b,T)(z)}function b(z){return a++,n.push([t.currentConstruct,t.containerState]),k(z)}function T(z){if(z===null){i&&P(),O(0),e.consume(z);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:l}),R(z)}function R(z){if(z===null){N(e.exit("chunkFlow"),!0),O(0),e.consume(z);return}return Zt(z)?(e.consume(z),N(e.exit("chunkFlow")),a=0,t.interrupt=void 0,f):(e.consume(z),R)}function N(z,j){const V=t.sliceStream(z);if(j&&V.push(null),z.previous=l,l&&(l.next=z),l=z,i.defineSkip(z.start),i.write(V),t.parser.lazy[z.start.line]){let H=i.events.length;for(;H--;)if(i.events[H][1].start.offset<u&&(!i.events[H][1].end||i.events[H][1].end.offset>u))return;const W=t.events.length;let G=W,ae,ye;for(;G--;)if(t.events[G][0]==="exit"&&t.events[G][1].type==="chunkFlow"){if(ae){ye=t.events[G][1].end;break}ae=!0}for(O(a),H=W;H<t.events.length;)t.events[H][1].end={...ye},H++;tl(t.events,G+1,0,t.events.slice(W)),t.events.length=H}}function O(z){let j=n.length;for(;j-- >z;){const V=n[j];t.containerState=V[1],V[0].exit.call(t,e)}n.length=z}function P(){i.write([null]),l=void 0,i=void 0,t.containerState._closeFlow=void 0}}function pK(e,t,n){return pr(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function KT(e){if(e===null||$o(e)||lK(e))return 1;if(sK(e))return 2}function Ay(e,t,n){const a=[];let i=-1;for(;++i<e.length;){const l=e[i].resolveAll;l&&!a.includes(l)&&(t=l(t,n),a.push(l))}return t}const Ny={name:"attention",resolveAll:hK,tokenize:mK};function hK(e,t){let n=-1,a,i,l,u,f,h,g,x;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(a=n;a--;)if(e[a][0]==="exit"&&e[a][1].type==="attentionSequence"&&e[a][1]._open&&t.sliceSerialize(e[a][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[a][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[a][1].end.offset-e[a][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;h=e[a][1].end.offset-e[a][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const y={...e[a][1].end},k={...e[n][1].start};QT(y,-h),QT(k,h),u={type:h>1?"strongSequence":"emphasisSequence",start:y,end:{...e[a][1].end}},f={type:h>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:k},l={type:h>1?"strongText":"emphasisText",start:{...e[a][1].end},end:{...e[n][1].start}},i={type:h>1?"strong":"emphasis",start:{...u.start},end:{...f.end}},e[a][1].end={...u.start},e[n][1].start={...f.end},g=[],e[a][1].end.offset-e[a][1].start.offset&&(g=Fi(g,[["enter",e[a][1],t],["exit",e[a][1],t]])),g=Fi(g,[["enter",i,t],["enter",u,t],["exit",u,t],["enter",l,t]]),g=Fi(g,Ay(t.parser.constructs.insideSpan.null,e.slice(a+1,n),t)),g=Fi(g,[["exit",l,t],["enter",f,t],["exit",f,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(x=2,g=Fi(g,[["enter",e[n][1],t],["exit",e[n][1],t]])):x=0,tl(e,a-1,n-a+3,g),n=a+g.length-x-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function mK(e,t){const n=this.parser.constructs.attentionMarkers.null,a=this.previous,i=KT(a);let l;return u;function u(h){return l=h,e.enter("attentionSequence"),f(h)}function f(h){if(h===l)return e.consume(h),f;const g=e.exit("attentionSequence"),x=KT(h),y=!x||x===2&&i||n.includes(h),k=!i||i===2&&x||n.includes(a);return g._open=!!(l===42?y:y&&(i||!k)),g._close=!!(l===42?k:k&&(x||!y)),t(h)}}function QT(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const gK={name:"autolink",tokenize:vK};function vK(e,t,n){let a=0;return i;function i(b){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(b){return nl(b)?(e.consume(b),u):b===64?n(b):g(b)}function u(b){return b===43||b===45||b===46||gi(b)?(a=1,f(b)):g(b)}function f(b){return b===58?(e.consume(b),a=0,h):(b===43||b===45||b===46||gi(b))&&a++<32?(e.consume(b),f):(a=0,g(b))}function h(b){return b===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),t):b===null||b===32||b===60||Ry(b)?n(b):(e.consume(b),h)}function g(b){return b===64?(e.consume(b),x):aK(b)?(e.consume(b),g):n(b)}function x(b){return gi(b)?y(b):n(b)}function y(b){return b===46?(e.consume(b),a=0,x):b===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),t):k(b)}function k(b){if((b===45||gi(b))&&a++<63){const T=b===45?k:y;return e.consume(b),T}return n(b)}}const U2={partial:!0,tokenize:yK};function yK(e,t,n){return a;function a(l){return Un(l)?pr(e,i,"linePrefix")(l):i(l)}function i(l){return l===null||Zt(l)?t(l):n(l)}}const eR={continuation:{tokenize:wK},exit:bK,name:"blockQuote",tokenize:xK};function xK(e,t,n){const a=this;return i;function i(u){if(u===62){const f=a.containerState;return f.open||(e.enter("blockQuote",{_container:!0}),f.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),l}return n(u)}function l(u){return Un(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(u))}}function wK(e,t,n){const a=this;return i;function i(u){return Un(u)?pr(e,l,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):l(u)}function l(u){return e.attempt(eR,t,n)(u)}}function bK(e){e.exit("blockQuote")}const tR={name:"characterEscape",tokenize:CK};function CK(e,t,n){return a;function a(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),i}function i(l){return iK(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(l)}}const nR={name:"characterReference",tokenize:SK};function SK(e,t,n){const a=this;let i=0,l,u;return f;function f(y){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(y),e.exit("characterReferenceMarker"),h}function h(y){return y===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(y),e.exit("characterReferenceMarkerNumeric"),g):(e.enter("characterReferenceValue"),l=31,u=gi,x(y))}function g(y){return y===88||y===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(y),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,u=oK,x):(e.enter("characterReferenceValue"),l=7,u=My,x(y))}function x(y){if(y===59&&i){const k=e.exit("characterReferenceValue");return u===gi&&!Ty(a.sliceSerialize(k))?n(y):(e.enter("characterReferenceMarker"),e.consume(y),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return u(y)&&i++<l?(e.consume(y),x):n(y)}}const rR={partial:!0,tokenize:EK},aR={concrete:!0,name:"codeFenced",tokenize:kK};function kK(e,t,n){const a=this,i={partial:!0,tokenize:V};let l=0,u=0,f;return h;function h(H){return g(H)}function g(H){const W=a.events[a.events.length-1];return l=W&&W[1].type==="linePrefix"?W[2].sliceSerialize(W[1],!0).length:0,f=H,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),x(H)}function x(H){return H===f?(u++,e.consume(H),x):u<3?n(H):(e.exit("codeFencedFenceSequence"),Un(H)?pr(e,y,"whitespace")(H):y(H))}function y(H){return H===null||Zt(H)?(e.exit("codeFencedFence"),a.interrupt?t(H):e.check(rR,R,j)(H)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),k(H))}function k(H){return H===null||Zt(H)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),y(H)):Un(H)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),pr(e,b,"whitespace")(H)):H===96&&H===f?n(H):(e.consume(H),k)}function b(H){return H===null||Zt(H)?y(H):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),T(H))}function T(H){return H===null||Zt(H)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),y(H)):H===96&&H===f?n(H):(e.consume(H),T)}function R(H){return e.attempt(i,j,N)(H)}function N(H){return e.enter("lineEnding"),e.consume(H),e.exit("lineEnding"),O}function O(H){return l>0&&Un(H)?pr(e,P,"linePrefix",l+1)(H):P(H)}function P(H){return H===null||Zt(H)?e.check(rR,R,j)(H):(e.enter("codeFlowValue"),z(H))}function z(H){return H===null||Zt(H)?(e.exit("codeFlowValue"),P(H)):(e.consume(H),z)}function j(H){return e.exit("codeFenced"),t(H)}function V(H,W,G){let ae=0;return ye;function ye(ke){return H.enter("lineEnding"),H.consume(ke),H.exit("lineEnding"),ce}function ce(ke){return H.enter("codeFencedFence"),Un(ke)?pr(H,he,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ke):he(ke)}function he(ke){return ke===f?(H.enter("codeFencedFenceSequence"),ue(ke)):G(ke)}function ue(ke){return ke===f?(ae++,H.consume(ke),ue):ae>=u?(H.exit("codeFencedFenceSequence"),Un(ke)?pr(H,Te,"whitespace")(ke):Te(ke)):G(ke)}function Te(ke){return ke===null||Zt(ke)?(H.exit("codeFencedFence"),W(ke)):G(ke)}}}function EK(e,t,n){const a=this;return i;function i(u){return u===null?n(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),l)}function l(u){return a.parser.lazy[a.now().line]?n(u):t(u)}}const Ly={name:"codeIndented",tokenize:TK},_K={partial:!0,tokenize:RK};function TK(e,t,n){const a=this;return i;function i(g){return e.enter("codeIndented"),pr(e,l,"linePrefix",5)(g)}function l(g){const x=a.events[a.events.length-1];return x&&x[1].type==="linePrefix"&&x[2].sliceSerialize(x[1],!0).length>=4?u(g):n(g)}function u(g){return g===null?h(g):Zt(g)?e.attempt(_K,u,h)(g):(e.enter("codeFlowValue"),f(g))}function f(g){return g===null||Zt(g)?(e.exit("codeFlowValue"),u(g)):(e.consume(g),f)}function h(g){return e.exit("codeIndented"),t(g)}}function RK(e,t,n){const a=this;return i;function i(u){return a.parser.lazy[a.now().line]?n(u):Zt(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),i):pr(e,l,"linePrefix",5)(u)}function l(u){const f=a.events[a.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?t(u):Zt(u)?i(u):n(u)}}const MK={name:"codeText",previous:NK,resolve:AK,tokenize:LK};function AK(e){let t=e.length-4,n=3,a,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(a=n;++a<t;)if(e[a][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(a=n-1,t++;++a<=t;)i===void 0?a!==t&&e[a][1].type!=="lineEnding"&&(i=a):(a===t||e[a][1].type==="lineEnding")&&(e[i][1].type="codeTextData",a!==i+2&&(e[i][1].end=e[a-1][1].end,e.splice(i+2,a-i-2),t-=a-i-2,a=i+2),i=void 0);return e}function NK(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function LK(e,t,n){let a=0,i,l;return u;function u(y){return e.enter("codeText"),e.enter("codeTextSequence"),f(y)}function f(y){return y===96?(e.consume(y),a++,f):(e.exit("codeTextSequence"),h(y))}function h(y){return y===null?n(y):y===32?(e.enter("space"),e.consume(y),e.exit("space"),h):y===96?(l=e.enter("codeTextSequence"),i=0,x(y)):Zt(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),h):(e.enter("codeTextData"),g(y))}function g(y){return y===null||y===32||y===96||Zt(y)?(e.exit("codeTextData"),h(y)):(e.consume(y),g)}function x(y){return y===96?(e.consume(y),i++,x):i===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(y)):(l.type="codeTextData",g(y))}}class OK{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const a=n==null?Number.POSITIVE_INFINITY:n;return a<this.left.length?this.left.slice(t,a):t>this.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(t,n,a){const i=n||0;this.setCursor(Math.trunc(t));const l=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return a&&sm(this.left,a),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),sm(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),sm(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);sm(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);sm(this.left,n.reverse())}}}function sm(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function oR(e){const t={};let n=-1,a,i,l,u,f,h,g;const x=new OK(e);for(;++n<x.length;){for(;n in t;)n=t[n];if(a=x.get(n),n&&a[1].type==="chunkFlow"&&x.get(n-1)[1].type==="listItemPrefix"&&(h=a[1]._tokenizer.events,l=0,l<h.length&&h[l][1].type==="lineEndingBlank"&&(l+=2),l<h.length&&h[l][1].type==="content"))for(;++l<h.length&&h[l][1].type!=="content";)h[l][1].type==="chunkText"&&(h[l][1]._isInFirstContentOfListItem=!0,l++);if(a[0]==="enter")a[1].contentType&&(Object.assign(t,IK(x,n)),n=t[n],g=!0);else if(a[1]._container){for(l=n,i=void 0;l--;)if(u=x.get(l),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(i&&(x.get(i)[1].type="lineEndingBlank"),u[1].type="lineEnding",i=l);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;i&&(a[1].end={...x.get(i)[1].start},f=x.slice(i,n),f.unshift(a),x.splice(i,n-i+1,f))}}return tl(e,0,Number.POSITIVE_INFINITY,x.slice(0)),!g}function IK(e,t){const n=e.get(t)[1],a=e.get(t)[2];let i=t-1;const l=[];let u=n._tokenizer;u||(u=a.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const f=u.events,h=[],g={};let x,y,k=-1,b=n,T=0,R=0;const N=[R];for(;b;){for(;e.get(++i)[1]!==b;);l.push(i),b._tokenizer||(x=a.sliceStream(b),b.next||x.push(null),y&&u.defineSkip(b.start),b._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(x),b._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),y=b,b=b.next}for(b=n;++k<f.length;)f[k][0]==="exit"&&f[k-1][0]==="enter"&&f[k][1].type===f[k-1][1].type&&f[k][1].start.line!==f[k][1].end.line&&(R=k+1,N.push(R),b._tokenizer=void 0,b.previous=void 0,b=b.next);for(u.events=[],b?(b._tokenizer=void 0,b.previous=void 0):N.pop(),k=N.length;k--;){const O=f.slice(N[k],N[k+1]),P=l.pop();h.push([P,P+O.length-1]),e.splice(P,2,O)}for(h.reverse(),k=-1;++k<h.length;)g[T+h[k][0]]=T+h[k][1],T+=h[k][1]-h[k][0]-1;return g}const DK={resolve:PK,tokenize:FK},jK={partial:!0,tokenize:zK};function PK(e){return oR(e),e}function FK(e,t){let n;return a;function a(f){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(f)}function i(f){return f===null?l(f):Zt(f)?e.check(jK,u,l)(f):(e.consume(f),i)}function l(f){return e.exit("chunkContent"),e.exit("content"),t(f)}function u(f){return e.consume(f),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function zK(e,t,n){const a=this;return i;function i(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),pr(e,l,"linePrefix")}function l(u){if(u===null||Zt(u))return n(u);const f=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?t(u):e.interrupt(a.parser.constructs.flow,n,t)(u)}}function iR(e,t,n,a,i,l,u,f,h){const g=h||Number.POSITIVE_INFINITY;let x=0;return y;function y(O){return O===60?(e.enter(a),e.enter(i),e.enter(l),e.consume(O),e.exit(l),k):O===null||O===32||O===41||Ry(O)?n(O):(e.enter(a),e.enter(u),e.enter(f),e.enter("chunkString",{contentType:"string"}),R(O))}function k(O){return O===62?(e.enter(l),e.consume(O),e.exit(l),e.exit(i),e.exit(a),t):(e.enter(f),e.enter("chunkString",{contentType:"string"}),b(O))}function b(O){return O===62?(e.exit("chunkString"),e.exit(f),k(O)):O===null||O===60||Zt(O)?n(O):(e.consume(O),O===92?T:b)}function T(O){return O===60||O===62||O===92?(e.consume(O),b):b(O)}function R(O){return!x&&(O===null||O===41||$o(O))?(e.exit("chunkString"),e.exit(f),e.exit(u),e.exit(a),t(O)):x<g&&O===40?(e.consume(O),x++,R):O===41?(e.consume(O),x--,R):O===null||O===32||O===40||Ry(O)?n(O):(e.consume(O),O===92?N:R)}function N(O){return O===40||O===41||O===92?(e.consume(O),R):R(O)}}function sR(e,t,n,a,i,l){const u=this;let f=0,h;return g;function g(b){return e.enter(a),e.enter(i),e.consume(b),e.exit(i),e.enter(l),x}function x(b){return f>999||b===null||b===91||b===93&&!h||b===94&&!f&&"_hiddenFootnoteSupport"in u.parser.constructs?n(b):b===93?(e.exit(l),e.enter(i),e.consume(b),e.exit(i),e.exit(a),t):Zt(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),x):(e.enter("chunkString",{contentType:"string"}),y(b))}function y(b){return b===null||b===91||b===93||Zt(b)||f++>999?(e.exit("chunkString"),x(b)):(e.consume(b),h||(h=!Un(b)),b===92?k:y)}function k(b){return b===91||b===92||b===93?(e.consume(b),f++,y):y(b)}}function lR(e,t,n,a,i,l){let u;return f;function f(k){return k===34||k===39||k===40?(e.enter(a),e.enter(i),e.consume(k),e.exit(i),u=k===40?41:k,h):n(k)}function h(k){return k===u?(e.enter(i),e.consume(k),e.exit(i),e.exit(a),t):(e.enter(l),g(k))}function g(k){return k===u?(e.exit(l),h(u)):k===null?n(k):Zt(k)?(e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),pr(e,g,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),x(k))}function x(k){return k===u||k===null||Zt(k)?(e.exit("chunkString"),g(k)):(e.consume(k),k===92?y:x)}function y(k){return k===u||k===92?(e.consume(k),x):x(k)}}function lm(e,t){let n;return a;function a(i){return Zt(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,a):Un(i)?pr(e,a,n?"linePrefix":"lineSuffix")(i):t(i)}}const HK={name:"definition",tokenize:BK},UK={partial:!0,tokenize:VK};function BK(e,t,n){const a=this;let i;return l;function l(b){return e.enter("definition"),u(b)}function u(b){return sR.call(a,e,f,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(b)}function f(b){return i=k1(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),h):n(b)}function h(b){return $o(b)?lm(e,g)(b):g(b)}function g(b){return iR(e,x,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(b)}function x(b){return e.attempt(UK,y,y)(b)}function y(b){return Un(b)?pr(e,k,"whitespace")(b):k(b)}function k(b){return b===null||Zt(b)?(e.exit("definition"),a.parser.defined.push(i),t(b)):n(b)}}function VK(e,t,n){return a;function a(f){return $o(f)?lm(e,i)(f):n(f)}function i(f){return lR(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function l(f){return Un(f)?pr(e,u,"whitespace")(f):u(f)}function u(f){return f===null||Zt(f)?t(f):n(f)}}const $K={name:"hardBreakEscape",tokenize:ZK};function ZK(e,t,n){return a;function a(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return Zt(l)?(e.exit("hardBreakEscape"),t(l)):n(l)}}const WK={name:"headingAtx",resolve:qK,tokenize:GK};function qK(e,t){let n=e.length-2,a=3,i,l;return e[a][1].type==="whitespace"&&(a+=2),n-2>a&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(a===n-1||n-4>a&&e[n-2][1].type==="whitespace")&&(n-=a+1===n?2:4),n>a&&(i={type:"atxHeadingText",start:e[a][1].start,end:e[n][1].end},l={type:"chunkText",start:e[a][1].start,end:e[n][1].end,contentType:"text"},tl(e,a,n-a+1,[["enter",i,t],["enter",l,t],["exit",l,t],["exit",i,t]])),e}function GK(e,t,n){let a=0;return i;function i(x){return e.enter("atxHeading"),l(x)}function l(x){return e.enter("atxHeadingSequence"),u(x)}function u(x){return x===35&&a++<6?(e.consume(x),u):x===null||$o(x)?(e.exit("atxHeadingSequence"),f(x)):n(x)}function f(x){return x===35?(e.enter("atxHeadingSequence"),h(x)):x===null||Zt(x)?(e.exit("atxHeading"),t(x)):Un(x)?pr(e,f,"whitespace")(x):(e.enter("atxHeadingText"),g(x))}function h(x){return x===35?(e.consume(x),h):(e.exit("atxHeadingSequence"),f(x))}function g(x){return x===null||x===35||$o(x)?(e.exit("atxHeadingText"),f(x)):(e.consume(x),g)}}const YK=["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","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],uR=["pre","script","style","textarea"],JK={concrete:!0,name:"htmlFlow",resolveTo:QK,tokenize:eQ},XK={partial:!0,tokenize:nQ},KK={partial:!0,tokenize:tQ};function QK(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function eQ(e,t,n){const a=this;let i,l,u,f,h;return g;function g(Z){return x(Z)}function x(Z){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(Z),y}function y(Z){return Z===33?(e.consume(Z),k):Z===47?(e.consume(Z),l=!0,R):Z===63?(e.consume(Z),i=3,a.interrupt?t:B):nl(Z)?(e.consume(Z),u=String.fromCharCode(Z),N):n(Z)}function k(Z){return Z===45?(e.consume(Z),i=2,b):Z===91?(e.consume(Z),i=5,f=0,T):nl(Z)?(e.consume(Z),i=4,a.interrupt?t:B):n(Z)}function b(Z){return Z===45?(e.consume(Z),a.interrupt?t:B):n(Z)}function T(Z){const ze="CDATA[";return Z===ze.charCodeAt(f++)?(e.consume(Z),f===ze.length?a.interrupt?t:he:T):n(Z)}function R(Z){return nl(Z)?(e.consume(Z),u=String.fromCharCode(Z),N):n(Z)}function N(Z){if(Z===null||Z===47||Z===62||$o(Z)){const ze=Z===47,st=u.toLowerCase();return!ze&&!l&&uR.includes(st)?(i=1,a.interrupt?t(Z):he(Z)):YK.includes(u.toLowerCase())?(i=6,ze?(e.consume(Z),O):a.interrupt?t(Z):he(Z)):(i=7,a.interrupt&&!a.parser.lazy[a.now().line]?n(Z):l?P(Z):z(Z))}return Z===45||gi(Z)?(e.consume(Z),u+=String.fromCharCode(Z),N):n(Z)}function O(Z){return Z===62?(e.consume(Z),a.interrupt?t:he):n(Z)}function P(Z){return Un(Z)?(e.consume(Z),P):ye(Z)}function z(Z){return Z===47?(e.consume(Z),ye):Z===58||Z===95||nl(Z)?(e.consume(Z),j):Un(Z)?(e.consume(Z),z):ye(Z)}function j(Z){return Z===45||Z===46||Z===58||Z===95||gi(Z)?(e.consume(Z),j):V(Z)}function V(Z){return Z===61?(e.consume(Z),H):Un(Z)?(e.consume(Z),V):z(Z)}function H(Z){return Z===null||Z===60||Z===61||Z===62||Z===96?n(Z):Z===34||Z===39?(e.consume(Z),h=Z,W):Un(Z)?(e.consume(Z),H):G(Z)}function W(Z){return Z===h?(e.consume(Z),h=null,ae):Z===null||Zt(Z)?n(Z):(e.consume(Z),W)}function G(Z){return Z===null||Z===34||Z===39||Z===47||Z===60||Z===61||Z===62||Z===96||$o(Z)?V(Z):(e.consume(Z),G)}function ae(Z){return Z===47||Z===62||Un(Z)?z(Z):n(Z)}function ye(Z){return Z===62?(e.consume(Z),ce):n(Z)}function ce(Z){return Z===null||Zt(Z)?he(Z):Un(Z)?(e.consume(Z),ce):n(Z)}function he(Z){return Z===45&&i===2?(e.consume(Z),Ee):Z===60&&i===1?(e.consume(Z),xe):Z===62&&i===4?(e.consume(Z),X):Z===63&&i===3?(e.consume(Z),B):Z===93&&i===5?(e.consume(Z),Ae):Zt(Z)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(XK,pe,ue)(Z)):Z===null||Zt(Z)?(e.exit("htmlFlowData"),ue(Z)):(e.consume(Z),he)}function ue(Z){return e.check(KK,Te,pe)(Z)}function Te(Z){return e.enter("lineEnding"),e.consume(Z),e.exit("lineEnding"),ke}function ke(Z){return Z===null||Zt(Z)?ue(Z):(e.enter("htmlFlowData"),he(Z))}function Ee(Z){return Z===45?(e.consume(Z),B):he(Z)}function xe(Z){return Z===47?(e.consume(Z),u="",K):he(Z)}function K(Z){if(Z===62){const ze=u.toLowerCase();return uR.includes(ze)?(e.consume(Z),X):he(Z)}return nl(Z)&&u.length<8?(e.consume(Z),u+=String.fromCharCode(Z),K):he(Z)}function Ae(Z){return Z===93?(e.consume(Z),B):he(Z)}function B(Z){return Z===62?(e.consume(Z),X):Z===45&&i===2?(e.consume(Z),B):he(Z)}function X(Z){return Z===null||Zt(Z)?(e.exit("htmlFlowData"),pe(Z)):(e.consume(Z),X)}function pe(Z){return e.exit("htmlFlow"),t(Z)}}function tQ(e,t,n){const a=this;return i;function i(u){return Zt(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),l):n(u)}function l(u){return a.parser.lazy[a.now().line]?n(u):t(u)}}function nQ(e,t,n){return a;function a(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(U2,t,n)}}const rQ={name:"htmlText",tokenize:aQ};function aQ(e,t,n){const a=this;let i,l,u;return f;function f(B){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(B),h}function h(B){return B===33?(e.consume(B),g):B===47?(e.consume(B),V):B===63?(e.consume(B),z):nl(B)?(e.consume(B),G):n(B)}function g(B){return B===45?(e.consume(B),x):B===91?(e.consume(B),l=0,T):nl(B)?(e.consume(B),P):n(B)}function x(B){return B===45?(e.consume(B),b):n(B)}function y(B){return B===null?n(B):B===45?(e.consume(B),k):Zt(B)?(u=y,xe(B)):(e.consume(B),y)}function k(B){return B===45?(e.consume(B),b):y(B)}function b(B){return B===62?Ee(B):B===45?k(B):y(B)}function T(B){const X="CDATA[";return B===X.charCodeAt(l++)?(e.consume(B),l===X.length?R:T):n(B)}function R(B){return B===null?n(B):B===93?(e.consume(B),N):Zt(B)?(u=R,xe(B)):(e.consume(B),R)}function N(B){return B===93?(e.consume(B),O):R(B)}function O(B){return B===62?Ee(B):B===93?(e.consume(B),O):R(B)}function P(B){return B===null||B===62?Ee(B):Zt(B)?(u=P,xe(B)):(e.consume(B),P)}function z(B){return B===null?n(B):B===63?(e.consume(B),j):Zt(B)?(u=z,xe(B)):(e.consume(B),z)}function j(B){return B===62?Ee(B):z(B)}function V(B){return nl(B)?(e.consume(B),H):n(B)}function H(B){return B===45||gi(B)?(e.consume(B),H):W(B)}function W(B){return Zt(B)?(u=W,xe(B)):Un(B)?(e.consume(B),W):Ee(B)}function G(B){return B===45||gi(B)?(e.consume(B),G):B===47||B===62||$o(B)?ae(B):n(B)}function ae(B){return B===47?(e.consume(B),Ee):B===58||B===95||nl(B)?(e.consume(B),ye):Zt(B)?(u=ae,xe(B)):Un(B)?(e.consume(B),ae):Ee(B)}function ye(B){return B===45||B===46||B===58||B===95||gi(B)?(e.consume(B),ye):ce(B)}function ce(B){return B===61?(e.consume(B),he):Zt(B)?(u=ce,xe(B)):Un(B)?(e.consume(B),ce):ae(B)}function he(B){return B===null||B===60||B===61||B===62||B===96?n(B):B===34||B===39?(e.consume(B),i=B,ue):Zt(B)?(u=he,xe(B)):Un(B)?(e.consume(B),he):(e.consume(B),Te)}function ue(B){return B===i?(e.consume(B),i=void 0,ke):B===null?n(B):Zt(B)?(u=ue,xe(B)):(e.consume(B),ue)}function Te(B){return B===null||B===34||B===39||B===60||B===61||B===96?n(B):B===47||B===62||$o(B)?ae(B):(e.consume(B),Te)}function ke(B){return B===47||B===62||$o(B)?ae(B):n(B)}function Ee(B){return B===62?(e.consume(B),e.exit("htmlTextData"),e.exit("htmlText"),t):n(B)}function xe(B){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),K}function K(B){return Un(B)?pr(e,Ae,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):Ae(B)}function Ae(B){return e.enter("htmlTextData"),u(B)}}const Oy={name:"labelEnd",resolveAll:lQ,resolveTo:uQ,tokenize:cQ},oQ={tokenize:dQ},iQ={tokenize:fQ},sQ={tokenize:pQ};function lQ(e){let t=-1;const n=[];for(;++t<e.length;){const a=e[t][1];if(n.push(e[t]),a.type==="labelImage"||a.type==="labelLink"||a.type==="labelEnd"){const i=a.type==="labelImage"?4:2;a.type="data",t+=i}}return e.length!==n.length&&tl(e,0,e.length,n),e}function uQ(e,t){let n=e.length,a=0,i,l,u,f;for(;n--;)if(i=e[n][1],l){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(u){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(l=n,i.type!=="labelLink")){a=2;break}}else i.type==="labelEnd"&&(u=n);const h={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},g={type:"label",start:{...e[l][1].start},end:{...e[u][1].end}},x={type:"labelText",start:{...e[l+a+2][1].end},end:{...e[u-2][1].start}};return f=[["enter",h,t],["enter",g,t]],f=Fi(f,e.slice(l+1,l+a+3)),f=Fi(f,[["enter",x,t]]),f=Fi(f,Ay(t.parser.constructs.insideSpan.null,e.slice(l+a+4,u-3),t)),f=Fi(f,[["exit",x,t],e[u-2],e[u-1],["exit",g,t]]),f=Fi(f,e.slice(u+1)),f=Fi(f,[["exit",h,t]]),tl(e,l,e.length,f),e}function cQ(e,t,n){const a=this;let i=a.events.length,l,u;for(;i--;)if((a.events[i][1].type==="labelImage"||a.events[i][1].type==="labelLink")&&!a.events[i][1]._balanced){l=a.events[i][1];break}return f;function f(k){return l?l._inactive?y(k):(u=a.parser.defined.includes(k1(a.sliceSerialize({start:l.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(k),e.exit("labelMarker"),e.exit("labelEnd"),h):n(k)}function h(k){return k===40?e.attempt(oQ,x,u?x:y)(k):k===91?e.attempt(iQ,x,u?g:y)(k):u?x(k):y(k)}function g(k){return e.attempt(sQ,x,y)(k)}function x(k){return t(k)}function y(k){return l._balanced=!0,n(k)}}function dQ(e,t,n){return a;function a(y){return e.enter("resource"),e.enter("resourceMarker"),e.consume(y),e.exit("resourceMarker"),i}function i(y){return $o(y)?lm(e,l)(y):l(y)}function l(y){return y===41?x(y):iR(e,u,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(y)}function u(y){return $o(y)?lm(e,h)(y):x(y)}function f(y){return n(y)}function h(y){return y===34||y===39||y===40?lR(e,g,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(y):x(y)}function g(y){return $o(y)?lm(e,x)(y):x(y)}function x(y){return y===41?(e.enter("resourceMarker"),e.consume(y),e.exit("resourceMarker"),e.exit("resource"),t):n(y)}}function fQ(e,t,n){const a=this;return i;function i(f){return sR.call(a,e,l,u,"reference","referenceMarker","referenceString")(f)}function l(f){return a.parser.defined.includes(k1(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?t(f):n(f)}function u(f){return n(f)}}function pQ(e,t,n){return a;function a(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),i}function i(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),t):n(l)}}const hQ={name:"labelStartImage",resolveAll:Oy.resolveAll,tokenize:mQ};function mQ(e,t,n){const a=this;return i;function i(f){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(f),e.exit("labelImageMarker"),l}function l(f){return f===91?(e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelImage"),u):n(f)}function u(f){return f===94&&"_hiddenFootnoteSupport"in a.parser.constructs?n(f):t(f)}}const gQ={name:"labelStartLink",resolveAll:Oy.resolveAll,tokenize:vQ};function vQ(e,t,n){const a=this;return i;function i(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),l}function l(u){return u===94&&"_hiddenFootnoteSupport"in a.parser.constructs?n(u):t(u)}}const Iy={name:"lineEnding",tokenize:yQ};function yQ(e,t){return n;function n(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),pr(e,t,"linePrefix")}}const B2={name:"thematicBreak",tokenize:xQ};function xQ(e,t,n){let a=0,i;return l;function l(g){return e.enter("thematicBreak"),u(g)}function u(g){return i=g,f(g)}function f(g){return g===i?(e.enter("thematicBreakSequence"),h(g)):a>=3&&(g===null||Zt(g))?(e.exit("thematicBreak"),t(g)):n(g)}function h(g){return g===i?(e.consume(g),a++,h):(e.exit("thematicBreakSequence"),Un(g)?pr(e,f,"whitespace")(g):f(g))}}const Zo={continuation:{tokenize:SQ},exit:EQ,name:"list",tokenize:CQ},wQ={partial:!0,tokenize:_Q},bQ={partial:!0,tokenize:kQ};function CQ(e,t,n){const a=this,i=a.events[a.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,u=0;return f;function f(b){const T=a.containerState.type||(b===42||b===43||b===45?"listUnordered":"listOrdered");if(T==="listUnordered"?!a.containerState.marker||b===a.containerState.marker:My(b)){if(a.containerState.type||(a.containerState.type=T,e.enter(T,{_container:!0})),T==="listUnordered")return e.enter("listItemPrefix"),b===42||b===45?e.check(B2,n,g)(b):g(b);if(!a.interrupt||b===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),h(b)}return n(b)}function h(b){return My(b)&&++u<10?(e.consume(b),h):(!a.interrupt||u<2)&&(a.containerState.marker?b===a.containerState.marker:b===41||b===46)?(e.exit("listItemValue"),g(b)):n(b)}function g(b){return e.enter("listItemMarker"),e.consume(b),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||b,e.check(U2,a.interrupt?n:x,e.attempt(wQ,k,y))}function x(b){return a.containerState.initialBlankLine=!0,l++,k(b)}function y(b){return Un(b)?(e.enter("listItemPrefixWhitespace"),e.consume(b),e.exit("listItemPrefixWhitespace"),k):n(b)}function k(b){return a.containerState.size=l+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(b)}}function SQ(e,t,n){const a=this;return a.containerState._closeFlow=void 0,e.check(U2,i,l);function i(f){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,pr(e,t,"listItemIndent",a.containerState.size+1)(f)}function l(f){return a.containerState.furtherBlankLines||!Un(f)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,u(f)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(bQ,t,u)(f))}function u(f){return a.containerState._closeFlow=!0,a.interrupt=void 0,pr(e,e.attempt(Zo,t,n),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function kQ(e,t,n){const a=this;return pr(e,i,"listItemIndent",a.containerState.size+1);function i(l){const u=a.events[a.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===a.containerState.size?t(l):n(l)}}function EQ(e){e.exit(this.containerState.type)}function _Q(e,t,n){const a=this;return pr(e,i,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(l){const u=a.events[a.events.length-1];return!Un(l)&&u&&u[1].type==="listItemPrefixWhitespace"?t(l):n(l)}}const cR={name:"setextUnderline",resolveTo:TQ,tokenize:RQ};function TQ(e,t){let n=e.length,a,i,l;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){a=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!l&&e[n][1].type==="definition"&&(l=n);const u={type:"setextHeading",start:{...e[a][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",l?(e.splice(i,0,["enter",u,t]),e.splice(l+1,0,["exit",e[a][1],t]),e[a][1].end={...e[l][1].end}):e[a][1]=u,e.push(["exit",u,t]),e}function RQ(e,t,n){const a=this;let i;return l;function l(g){let x=a.events.length,y;for(;x--;)if(a.events[x][1].type!=="lineEnding"&&a.events[x][1].type!=="linePrefix"&&a.events[x][1].type!=="content"){y=a.events[x][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||y)?(e.enter("setextHeadingLine"),i=g,u(g)):n(g)}function u(g){return e.enter("setextHeadingLineSequence"),f(g)}function f(g){return g===i?(e.consume(g),f):(e.exit("setextHeadingLineSequence"),Un(g)?pr(e,h,"lineSuffix")(g):h(g))}function h(g){return g===null||Zt(g)?(e.exit("setextHeadingLine"),t(g)):n(g)}}const MQ={tokenize:AQ};function AQ(e){const t=this,n=e.attempt(U2,a,e.attempt(this.parser.constructs.flowInitial,i,pr(e,e.attempt(this.parser.constructs.flow,i,e.attempt(DK,i)),"linePrefix")));return n;function a(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const NQ={resolveAll:fR()},LQ=dR("string"),OQ=dR("text");function dR(e){return{resolveAll:fR(e==="text"?IQ:void 0),tokenize:t};function t(n){const a=this,i=this.parser.constructs[e],l=n.attempt(i,u,f);return u;function u(x){return g(x)?l(x):f(x)}function f(x){if(x===null){n.consume(x);return}return n.enter("data"),n.consume(x),h}function h(x){return g(x)?(n.exit("data"),l(x)):(n.consume(x),h)}function g(x){if(x===null)return!0;const y=i[x];let k=-1;if(y)for(;++k<y.length;){const b=y[k];if(!b.previous||b.previous.call(a,a.previous))return!0}return!1}}}function fR(e){return t;function t(n,a){let i=-1,l;for(;++i<=n.length;)l===void 0?n[i]&&n[i][1].type==="data"&&(l=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==l+2&&(n[l][1].end=n[i-1][1].end,n.splice(l+2,i-l-2),i=l+2),l=void 0);return e?e(n,a):n}}function IQ(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const a=e[n-1][1],i=t.sliceStream(a);let l=i.length,u=-1,f=0,h;for(;l--;){const g=i[l];if(typeof g=="string"){for(u=g.length;g.charCodeAt(u-1)===32;)f++,u--;if(u)break;u=-1}else if(g===-2)h=!0,f++;else if(g!==-1){l++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(f=0),f){const g={type:n===e.length||h||f<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?u:a.start._bufferIndex+u,_index:a.start._index+l,line:a.end.line,column:a.end.column-f,offset:a.end.offset-f},end:{...a.end}};a.end={...g.start},a.start.offset===a.end.offset?Object.assign(a,g):(e.splice(n,0,["enter",g,t],["exit",g,t]),n+=2)}n++}return e}const DQ=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:HK},disable:{null:[]},document:{42:Zo,43:Zo,45:Zo,48:Zo,49:Zo,50:Zo,51:Zo,52:Zo,53:Zo,54:Zo,55:Zo,56:Zo,57:Zo,62:eR},flow:{35:WK,42:B2,45:[cR,B2],60:JK,61:cR,95:B2,96:aR,126:aR},flowInitial:{[-2]:Ly,[-1]:Ly,32:Ly},insideSpan:{null:[Ny,NQ]},string:{38:nR,92:tR},text:{[-5]:Iy,[-4]:Iy,[-3]:Iy,33:hQ,38:nR,42:Ny,60:[gK,rQ],91:gQ,92:[$K,tR],93:Oy,95:Ny,96:MK}},Symbol.toStringTag,{value:"Module"}));function jQ(e,t,n){let a={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},l=[];let u=[],f=[];const h={attempt:W(V),check:W(H),consume:P,enter:z,exit:j,interrupt:W(H,{interrupt:!0})},g={code:null,containerState:{},defineSkip:R,events:[],now:T,parser:e,previous:null,sliceSerialize:k,sliceStream:b,write:y};let x=t.tokenize.call(g,h);return t.resolveAll&&l.push(t),g;function y(ce){return u=Fi(u,ce),N(),u[u.length-1]!==null?[]:(G(t,0),g.events=Ay(l,g.events,g),g.events)}function k(ce,he){return FQ(b(ce),he)}function b(ce){return PQ(u,ce)}function T(){const{_bufferIndex:ce,_index:he,line:ue,column:Te,offset:ke}=a;return{_bufferIndex:ce,_index:he,line:ue,column:Te,offset:ke}}function R(ce){i[ce.line]=ce.column,ye()}function N(){let ce;for(;a._index<u.length;){const he=u[a._index];if(typeof he=="string")for(ce=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===ce&&a._bufferIndex<he.length;)O(he.charCodeAt(a._bufferIndex));else O(he)}}function O(ce){x=x(ce)}function P(ce){Zt(ce)?(a.line++,a.column=1,a.offset+=ce===-3?2:1,ye()):ce!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===u[a._index].length&&(a._bufferIndex=-1,a._index++)),g.previous=ce}function z(ce,he){const ue=he||{};return ue.type=ce,ue.start=T(),g.events.push(["enter",ue,g]),f.push(ue),ue}function j(ce){const he=f.pop();return he.end=T(),g.events.push(["exit",he,g]),he}function V(ce,he){G(ce,he.from)}function H(ce,he){he.restore()}function W(ce,he){return ue;function ue(Te,ke,Ee){let xe,K,Ae,B;return Array.isArray(Te)?pe(Te):"tokenize"in Te?pe([Te]):X(Te);function X(Ve){return _e;function _e(Ze){const Ke=Ze!==null&&Ve[Ze],We=Ze!==null&&Ve.null,et=[...Array.isArray(Ke)?Ke:Ke?[Ke]:[],...Array.isArray(We)?We:We?[We]:[]];return pe(et)(Ze)}}function pe(Ve){return xe=Ve,K=0,Ve.length===0?Ee:Z(Ve[K])}function Z(Ve){return _e;function _e(Ze){return B=ae(),Ae=Ve,Ve.partial||(g.currentConstruct=Ve),Ve.name&&g.parser.constructs.disable.null.includes(Ve.name)?st():Ve.tokenize.call(he?Object.assign(Object.create(g),he):g,h,ze,st)(Ze)}}function ze(Ve){return ce(Ae,B),ke}function st(Ve){return B.restore(),++K<xe.length?Z(xe[K]):Ee}}}function G(ce,he){ce.resolveAll&&!l.includes(ce)&&l.push(ce),ce.resolve&&tl(g.events,he,g.events.length-he,ce.resolve(g.events.slice(he),g)),ce.resolveTo&&(g.events=ce.resolveTo(g.events,g))}function ae(){const ce=T(),he=g.previous,ue=g.currentConstruct,Te=g.events.length,ke=Array.from(f);return{from:Te,restore:Ee};function Ee(){a=ce,g.previous=he,g.currentConstruct=ue,g.events.length=Te,f=ke,ye()}}function ye(){a.line in i&&a.column<2&&(a.column=i[a.line],a.offset+=i[a.line]-1)}}function PQ(e,t){const n=t.start._index,a=t.start._bufferIndex,i=t.end._index,l=t.end._bufferIndex;let u;if(n===i)u=[e[n].slice(a,l)];else{if(u=e.slice(n,i),a>-1){const f=u[0];typeof f=="string"?u[0]=f.slice(a):u.shift()}l>0&&u.push(e[i].slice(0,l))}return u}function FQ(e,t){let n=-1;const a=[];let i;for(;++n<e.length;){const l=e[n];let u;if(typeof l=="string")u=l;else switch(l){case-5:{u="\r";break}case-4:{u=`
|
|
430
|
-
`;break}case-3:{u=`\r
|
|
431
|
-
`;break}case-2:{u=t?" ":" ";break}case-1:{if(!t&&i)continue;u=" ";break}default:u=String.fromCharCode(l)}i=l===-2,a.push(u)}return a.join("")}function zQ(e){const a={constructs:tK([DQ,...(e||{}).extensions||[]]),content:i(uK),defined:[],document:i(dK),flow:i(MQ),lazy:{},string:i(LQ),text:i(OQ)};return a;function i(l){return u;function u(f){return jQ(a,l,f)}}}function HQ(e){for(;!oR(e););return e}const pR=/[\0\t\n\r]/g;function UQ(){let e=1,t="",n=!0,a;return i;function i(l,u,f){const h=[];let g,x,y,k,b;for(l=t+(typeof l=="string"?l.toString():new TextDecoder(u||void 0).decode(l)),y=0,t="",n&&(l.charCodeAt(0)===65279&&y++,n=void 0);y<l.length;){if(pR.lastIndex=y,g=pR.exec(l),k=g&&g.index!==void 0?g.index:l.length,b=l.charCodeAt(k),!g){t=l.slice(y);break}if(b===10&&y===k&&a)h.push(-3),a=void 0;else switch(a&&(h.push(-5),a=void 0),y<k&&(h.push(l.slice(y,k)),e+=k-y),b){case 0:{h.push(65533),e++;break}case 9:{for(x=Math.ceil(e/4)*4,h.push(-2);e++<x;)h.push(-1);break}case 10:{h.push(-4),e=1;break}default:a=!0,e=1}y=k+1}return f&&(a&&h.push(-5),t&&h.push(t),h.push(null)),h}}const BQ=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function VQ(e){return e.replace(BQ,$Q)}function $Q(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),l=i===120||i===88;return JT(n.slice(l?2:1),l?16:10)}return Ty(n)||e}const hR={}.hasOwnProperty;function ZQ(e,t,n){return typeof t!="string"&&(n=t,t=void 0),WQ(n)(HQ(zQ(n).document().write(UQ()(e,t,!0))))}function WQ(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Bn),autolinkProtocol:ae,autolinkEmail:ae,atxHeading:l(yt),blockQuote:l(We),characterEscape:ae,characterReference:ae,codeFenced:l(et),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:l(et,u),codeText:l(Et,u),codeTextData:ae,data:ae,codeFlowValue:ae,definition:l(bt),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:l(ct),hardBreakEscape:l(Pt),hardBreakTrailing:l(Pt),htmlFlow:l(St,u),htmlFlowData:ae,htmlText:l(St,u),htmlTextData:ae,image:l(jn),label:u,link:l(Bn),listItem:l(Mt),listItemValue:k,listOrdered:l(He,y),listUnordered:l(He),paragraph:l(Pn),reference:Z,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:l(yt),strong:l(Wt),thematicBreak:l($n)},exit:{atxHeading:h(),atxHeadingSequence:V,autolink:h(),autolinkEmail:Ke,autolinkProtocol:Ze,blockQuote:h(),characterEscapeValue:ye,characterReferenceMarkerHexadecimal:st,characterReferenceMarkerNumeric:st,characterReferenceValue:Ve,characterReference:_e,codeFenced:h(N),codeFencedFence:R,codeFencedFenceInfo:b,codeFencedFenceMeta:T,codeFlowValue:ye,codeIndented:h(O),codeText:h(ke),codeTextData:ye,data:ye,definition:h(),definitionDestinationString:j,definitionLabelString:P,definitionTitleString:z,emphasis:h(),hardBreakEscape:h(he),hardBreakTrailing:h(he),htmlFlow:h(ue),htmlFlowData:ye,htmlText:h(Te),htmlTextData:ye,image:h(xe),label:Ae,labelText:K,lineEnding:ce,link:h(Ee),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:ze,resourceDestinationString:B,resourceTitleString:X,resource:pe,setextHeading:h(G),setextHeadingLineSequence:W,setextHeadingText:H,strong:h(),thematicBreak:h()}};mR(t,(e||{}).mdastExtensions||[]);const n={};return a;function a(ve){let Ne={type:"root",children:[]};const dt={stack:[Ne],tokenStack:[],config:t,enter:f,exit:g,buffer:u,resume:x,data:n},It=[];let Me=-1;for(;++Me<ve.length;)if(ve[Me][1].type==="listOrdered"||ve[Me][1].type==="listUnordered")if(ve[Me][0]==="enter")It.push(Me);else{const Ye=It.pop();Me=i(ve,Ye,Me)}for(Me=-1;++Me<ve.length;){const Ye=t[ve[Me][0]];hR.call(Ye,ve[Me][1].type)&&Ye[ve[Me][1].type].call(Object.assign({sliceSerialize:ve[Me][2].sliceSerialize},dt),ve[Me][1])}if(dt.tokenStack.length>0){const Ye=dt.tokenStack[dt.tokenStack.length-1];(Ye[1]||gR).call(dt,void 0,Ye[0])}for(Ne.position={start:oc(ve.length>0?ve[0][1].start:{line:1,column:1,offset:0}),end:oc(ve.length>0?ve[ve.length-2][1].end:{line:1,column:1,offset:0})},Me=-1;++Me<t.transforms.length;)Ne=t.transforms[Me](Ne)||Ne;return Ne}function i(ve,Ne,dt){let It=Ne-1,Me=-1,Ye=!1,At,xt,Kt,ln;for(;++It<=dt;){const Qt=ve[It];switch(Qt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Qt[0]==="enter"?Me++:Me--,ln=void 0;break}case"lineEndingBlank":{Qt[0]==="enter"&&(At&&!ln&&!Me&&!Kt&&(Kt=It),ln=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ln=void 0}if(!Me&&Qt[0]==="enter"&&Qt[1].type==="listItemPrefix"||Me===-1&&Qt[0]==="exit"&&(Qt[1].type==="listUnordered"||Qt[1].type==="listOrdered")){if(At){let Qn=It;for(xt=void 0;Qn--;){const dn=ve[Qn];if(dn[1].type==="lineEnding"||dn[1].type==="lineEndingBlank"){if(dn[0]==="exit")continue;xt&&(ve[xt][1].type="lineEndingBlank",Ye=!0),dn[1].type="lineEnding",xt=Qn}else if(!(dn[1].type==="linePrefix"||dn[1].type==="blockQuotePrefix"||dn[1].type==="blockQuotePrefixWhitespace"||dn[1].type==="blockQuoteMarker"||dn[1].type==="listItemIndent"))break}Kt&&(!xt||Kt<xt)&&(At._spread=!0),At.end=Object.assign({},xt?ve[xt][1].start:Qt[1].end),ve.splice(xt||It,0,["exit",At,Qt[2]]),It++,dt++}if(Qt[1].type==="listItemPrefix"){const Qn={type:"listItem",_spread:!1,start:Object.assign({},Qt[1].start),end:void 0};At=Qn,ve.splice(It,0,["enter",Qn,Qt[2]]),It++,dt++,Kt=void 0,ln=!0}}}return ve[Ne][1]._spread=Ye,dt}function l(ve,Ne){return dt;function dt(It){f.call(this,ve(It),It),Ne&&Ne.call(this,It)}}function u(){this.stack.push({type:"fragment",children:[]})}function f(ve,Ne,dt){this.stack[this.stack.length-1].children.push(ve),this.stack.push(ve),this.tokenStack.push([Ne,dt||void 0]),ve.position={start:oc(Ne.start),end:void 0}}function h(ve){return Ne;function Ne(dt){ve&&ve.call(this,dt),g.call(this,dt)}}function g(ve,Ne){const dt=this.stack.pop(),It=this.tokenStack.pop();if(It)It[0].type!==ve.type&&(Ne?Ne.call(this,ve,It[0]):(It[1]||gR).call(this,ve,It[0]));else throw new Error("Cannot close `"+ve.type+"` ("+om({start:ve.start,end:ve.end})+"): it’s not open");dt.position.end=oc(ve.end)}function x(){return QX(this.stack.pop())}function y(){this.data.expectingFirstListItemValue=!0}function k(ve){if(this.data.expectingFirstListItemValue){const Ne=this.stack[this.stack.length-2];Ne.start=Number.parseInt(this.sliceSerialize(ve),10),this.data.expectingFirstListItemValue=void 0}}function b(){const ve=this.resume(),Ne=this.stack[this.stack.length-1];Ne.lang=ve}function T(){const ve=this.resume(),Ne=this.stack[this.stack.length-1];Ne.meta=ve}function R(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function N(){const ve=this.resume(),Ne=this.stack[this.stack.length-1];Ne.value=ve.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function O(){const ve=this.resume(),Ne=this.stack[this.stack.length-1];Ne.value=ve.replace(/(\r?\n|\r)$/g,"")}function P(ve){const Ne=this.resume(),dt=this.stack[this.stack.length-1];dt.label=Ne,dt.identifier=k1(this.sliceSerialize(ve)).toLowerCase()}function z(){const ve=this.resume(),Ne=this.stack[this.stack.length-1];Ne.title=ve}function j(){const ve=this.resume(),Ne=this.stack[this.stack.length-1];Ne.url=ve}function V(ve){const Ne=this.stack[this.stack.length-1];if(!Ne.depth){const dt=this.sliceSerialize(ve).length;Ne.depth=dt}}function H(){this.data.setextHeadingSlurpLineEnding=!0}function W(ve){const Ne=this.stack[this.stack.length-1];Ne.depth=this.sliceSerialize(ve).codePointAt(0)===61?1:2}function G(){this.data.setextHeadingSlurpLineEnding=void 0}function ae(ve){const dt=this.stack[this.stack.length-1].children;let It=dt[dt.length-1];(!It||It.type!=="text")&&(It=hr(),It.position={start:oc(ve.start),end:void 0},dt.push(It)),this.stack.push(It)}function ye(ve){const Ne=this.stack.pop();Ne.value+=this.sliceSerialize(ve),Ne.position.end=oc(ve.end)}function ce(ve){const Ne=this.stack[this.stack.length-1];if(this.data.atHardBreak){const dt=Ne.children[Ne.children.length-1];dt.position.end=oc(ve.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(Ne.type)&&(ae.call(this,ve),ye.call(this,ve))}function he(){this.data.atHardBreak=!0}function ue(){const ve=this.resume(),Ne=this.stack[this.stack.length-1];Ne.value=ve}function Te(){const ve=this.resume(),Ne=this.stack[this.stack.length-1];Ne.value=ve}function ke(){const ve=this.resume(),Ne=this.stack[this.stack.length-1];Ne.value=ve}function Ee(){const ve=this.stack[this.stack.length-1];if(this.data.inReference){const Ne=this.data.referenceType||"shortcut";ve.type+="Reference",ve.referenceType=Ne,delete ve.url,delete ve.title}else delete ve.identifier,delete ve.label;this.data.referenceType=void 0}function xe(){const ve=this.stack[this.stack.length-1];if(this.data.inReference){const Ne=this.data.referenceType||"shortcut";ve.type+="Reference",ve.referenceType=Ne,delete ve.url,delete ve.title}else delete ve.identifier,delete ve.label;this.data.referenceType=void 0}function K(ve){const Ne=this.sliceSerialize(ve),dt=this.stack[this.stack.length-2];dt.label=VQ(Ne),dt.identifier=k1(Ne).toLowerCase()}function Ae(){const ve=this.stack[this.stack.length-1],Ne=this.resume(),dt=this.stack[this.stack.length-1];if(this.data.inReference=!0,dt.type==="link"){const It=ve.children;dt.children=It}else dt.alt=Ne}function B(){const ve=this.resume(),Ne=this.stack[this.stack.length-1];Ne.url=ve}function X(){const ve=this.resume(),Ne=this.stack[this.stack.length-1];Ne.title=ve}function pe(){this.data.inReference=void 0}function Z(){this.data.referenceType="collapsed"}function ze(ve){const Ne=this.resume(),dt=this.stack[this.stack.length-1];dt.label=Ne,dt.identifier=k1(this.sliceSerialize(ve)).toLowerCase(),this.data.referenceType="full"}function st(ve){this.data.characterReferenceType=ve.type}function Ve(ve){const Ne=this.sliceSerialize(ve),dt=this.data.characterReferenceType;let It;dt?(It=JT(Ne,dt==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):It=Ty(Ne);const Me=this.stack[this.stack.length-1];Me.value+=It}function _e(ve){const Ne=this.stack.pop();Ne.position.end=oc(ve.end)}function Ze(ve){ye.call(this,ve);const Ne=this.stack[this.stack.length-1];Ne.url=this.sliceSerialize(ve)}function Ke(ve){ye.call(this,ve);const Ne=this.stack[this.stack.length-1];Ne.url="mailto:"+this.sliceSerialize(ve)}function We(){return{type:"blockquote",children:[]}}function et(){return{type:"code",lang:null,meta:null,value:""}}function Et(){return{type:"inlineCode",value:""}}function bt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ct(){return{type:"emphasis",children:[]}}function yt(){return{type:"heading",depth:0,children:[]}}function Pt(){return{type:"break"}}function St(){return{type:"html",value:""}}function jn(){return{type:"image",title:null,url:"",alt:null}}function Bn(){return{type:"link",title:null,url:"",children:[]}}function He(ve){return{type:"list",ordered:ve.type==="listOrdered",start:null,spread:ve._spread,children:[]}}function Mt(ve){return{type:"listItem",spread:ve._spread,checked:null,children:[]}}function Pn(){return{type:"paragraph",children:[]}}function Wt(){return{type:"strong",children:[]}}function hr(){return{type:"text",value:""}}function $n(){return{type:"thematicBreak"}}}function oc(e){return{line:e.line,column:e.column,offset:e.offset}}function mR(e,t){let n=-1;for(;++n<t.length;){const a=t[n];Array.isArray(a)?mR(e,a):qQ(e,a)}}function qQ(e,t){let n;for(n in t)if(hR.call(t,n))switch(n){case"canContainEols":{const a=t[n];a&&e[n].push(...a);break}case"transforms":{const a=t[n];a&&e[n].push(...a);break}case"enter":case"exit":{const a=t[n];a&&Object.assign(e[n],a);break}}}function gR(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+om({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+om({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+om({start:t.start,end:t.end})+") is still open")}function GQ(e){const t=this;t.parser=n;function n(a){return ZQ(a,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function YQ(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function JQ(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
432
|
-
`}]}function XQ(e,t){const n=t.value?t.value+`
|
|
433
|
-
`:"",a={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(a.className=["language-"+i[0]]);let l={type:"element",tagName:"code",properties:a,children:[{type:"text",value:n}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l=e.applyData(t,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(t,l),l}function KQ(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function QQ(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function eee(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=String(t.identifier).toUpperCase(),i=E1(a.toLowerCase()),l=e.footnoteOrder.indexOf(a);let u,f=e.footnoteCounts.get(a);f===void 0?(f=0,e.footnoteOrder.push(a),u=e.footnoteOrder.length):u=l+1,f+=1,e.footnoteCounts.set(a,f);const h={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(f>1?"-"+f:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};e.patch(t,h);const g={type:"element",tagName:"sup",properties:{},children:[h]};return e.patch(t,g),e.applyData(t,g)}function tee(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function nee(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function vR(e,t){const n=t.referenceType;let a="]";if(n==="collapsed"?a+="[]":n==="full"&&(a+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+a}];const i=e.all(t),l=i[0];l&&l.type==="text"?l.value="["+l.value:i.unshift({type:"text",value:"["});const u=i[i.length-1];return u&&u.type==="text"?u.value+=a:i.push({type:"text",value:a}),i}function ree(e,t){const n=String(t.identifier).toUpperCase(),a=e.definitionById.get(n);if(!a)return vR(e,t);const i={src:E1(a.url||""),alt:t.alt};a.title!==null&&a.title!==void 0&&(i.title=a.title);const l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,l),e.applyData(t,l)}function aee(e,t){const n={src:E1(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const a={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,a),e.applyData(t,a)}function oee(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const a={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,a),e.applyData(t,a)}function iee(e,t){const n=String(t.identifier).toUpperCase(),a=e.definitionById.get(n);if(!a)return vR(e,t);const i={href:E1(a.url||"")};a.title!==null&&a.title!==void 0&&(i.title=a.title);const l={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)}function see(e,t){const n={href:E1(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const a={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function lee(e,t,n){const a=e.all(t),i=n?uee(n):yR(t),l={},u=[];if(typeof t.checked=="boolean"){const x=a[0];let y;x&&x.type==="element"&&x.tagName==="p"?y=x:(y={type:"element",tagName:"p",properties:{},children:[]},a.unshift(y)),y.children.length>0&&y.children.unshift({type:"text",value:" "}),y.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let f=-1;for(;++f<a.length;){const x=a[f];(i||f!==0||x.type!=="element"||x.tagName!=="p")&&u.push({type:"text",value:`
|
|
434
|
-
`}),x.type==="element"&&x.tagName==="p"&&!i?u.push(...x.children):u.push(x)}const h=a[a.length-1];h&&(i||h.type!=="element"||h.tagName!=="p")&&u.push({type:"text",value:`
|
|
435
|
-
`});const g={type:"element",tagName:"li",properties:l,children:u};return e.patch(t,g),e.applyData(t,g)}function uee(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let a=-1;for(;!t&&++a<n.length;)t=yR(n[a])}return t}function yR(e){const t=e.spread;return t==null?e.children.length>1:t}function cee(e,t){const n={},a=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<a.length;){const u=a[i];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const l={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(a,!0)};return e.patch(t,l),e.applyData(t,l)}function dee(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function fee(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function pee(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function hee(e,t){const n=e.all(t),a=n.shift(),i=[];if(a){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([a],!0)};e.patch(t.children[0],u),i.push(u)}if(n.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},f=by(t.children[1]),h=FT(t.children[t.children.length-1]);f&&h&&(u.position={start:f,end:h}),i.push(u)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,l),e.applyData(t,l)}function mee(e,t,n){const a=n?n.children:void 0,l=(a?a.indexOf(t):1)===0?"th":"td",u=n&&n.type==="table"?n.align:void 0,f=u?u.length:t.children.length;let h=-1;const g=[];for(;++h<f;){const y=t.children[h],k={},b=u?u[h]:void 0;b&&(k.align=b);let T={type:"element",tagName:l,properties:k,children:[]};y&&(T.children=e.all(y),e.patch(y,T),T=e.applyData(y,T)),g.push(T)}const x={type:"element",tagName:"tr",properties:{},children:e.wrap(g,!0)};return e.patch(t,x),e.applyData(t,x)}function gee(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const xR=9,wR=32;function vee(e){const t=String(e),n=/\r?\n|\r/g;let a=n.exec(t),i=0;const l=[];for(;a;)l.push(bR(t.slice(i,a.index),i>0,!0),a[0]),i=a.index+a[0].length,a=n.exec(t);return l.push(bR(t.slice(i),i>0,!1)),l.join("")}function bR(e,t,n){let a=0,i=e.length;if(t){let l=e.codePointAt(a);for(;l===xR||l===wR;)a++,l=e.codePointAt(a)}if(n){let l=e.codePointAt(i-1);for(;l===xR||l===wR;)i--,l=e.codePointAt(i-1)}return i>a?e.slice(a,i):""}function yee(e,t){const n={type:"text",value:vee(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function xee(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const wee={blockquote:YQ,break:JQ,code:XQ,delete:KQ,emphasis:QQ,footnoteReference:eee,heading:tee,html:nee,imageReference:ree,image:aee,inlineCode:oee,linkReference:iee,link:see,listItem:lee,list:cee,paragraph:dee,root:fee,strong:pee,table:hee,tableCell:gee,tableRow:mee,text:yee,thematicBreak:xee,toml:V2,yaml:V2,definition:V2,footnoteDefinition:V2};function V2(){}const CR=-1,$2=0,um=1,Z2=2,Dy=3,jy=4,Py=5,Fy=6,SR=7,kR=8,ER=typeof self=="object"?self:globalThis,bee=(e,t)=>{const n=(i,l)=>(e.set(l,i),i),a=i=>{if(e.has(i))return e.get(i);const[l,u]=t[i];switch(l){case $2:case CR:return n(u,i);case um:{const f=n([],i);for(const h of u)f.push(a(h));return f}case Z2:{const f=n({},i);for(const[h,g]of u)f[a(h)]=a(g);return f}case Dy:return n(new Date(u),i);case jy:{const{source:f,flags:h}=u;return n(new RegExp(f,h),i)}case Py:{const f=n(new Map,i);for(const[h,g]of u)f.set(a(h),a(g));return f}case Fy:{const f=n(new Set,i);for(const h of u)f.add(a(h));return f}case SR:{const{name:f,message:h}=u;return n(new ER[f](h),i)}case kR:return n(BigInt(u),i);case"BigInt":return n(Object(BigInt(u)),i);case"ArrayBuffer":return n(new Uint8Array(u).buffer,u);case"DataView":{const{buffer:f}=new Uint8Array(u);return n(new DataView(f),u)}}return n(new ER[l](u),i)};return a},_R=e=>bee(new Map,e)(0),_1="",{toString:Cee}={},{keys:See}=Object,cm=e=>{const t=typeof e;if(t!=="object"||!e)return[$2,t];const n=Cee.call(e).slice(8,-1);switch(n){case"Array":return[um,_1];case"Object":return[Z2,_1];case"Date":return[Dy,_1];case"RegExp":return[jy,_1];case"Map":return[Py,_1];case"Set":return[Fy,_1];case"DataView":return[um,n]}return n.includes("Array")?[um,n]:n.includes("Error")?[SR,n]:[Z2,n]},W2=([e,t])=>e===$2&&(t==="function"||t==="symbol"),kee=(e,t,n,a)=>{const i=(u,f)=>{const h=a.push(u)-1;return n.set(f,h),h},l=u=>{if(n.has(u))return n.get(u);let[f,h]=cm(u);switch(f){case $2:{let x=u;switch(h){case"bigint":f=kR,x=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+h);x=null;break;case"undefined":return i([CR],u)}return i([f,x],u)}case um:{if(h){let k=u;return h==="DataView"?k=new Uint8Array(u.buffer):h==="ArrayBuffer"&&(k=new Uint8Array(u)),i([h,[...k]],u)}const x=[],y=i([f,x],u);for(const k of u)x.push(l(k));return y}case Z2:{if(h)switch(h){case"BigInt":return i([h,u.toString()],u);case"Boolean":case"Number":case"String":return i([h,u.valueOf()],u)}if(t&&"toJSON"in u)return l(u.toJSON());const x=[],y=i([f,x],u);for(const k of See(u))(e||!W2(cm(u[k])))&&x.push([l(k),l(u[k])]);return y}case Dy:return i([f,u.toISOString()],u);case jy:{const{source:x,flags:y}=u;return i([f,{source:x,flags:y}],u)}case Py:{const x=[],y=i([f,x],u);for(const[k,b]of u)(e||!(W2(cm(k))||W2(cm(b))))&&x.push([l(k),l(b)]);return y}case Fy:{const x=[],y=i([f,x],u);for(const k of u)(e||!W2(cm(k)))&&x.push(l(k));return y}}const{message:g}=u;return i([f,{name:h,message:g}],u)};return l},TR=(e,{json:t,lossy:n}={})=>{const a=[];return kee(!(t||n),!!t,new Map,a)(e),a},q2=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?_R(TR(e,t)):structuredClone(e):(e,t)=>_R(TR(e,t));function Eee(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function _ee(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Tee(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Eee,a=e.options.footnoteBackLabel||_ee,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",u=e.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let h=-1;for(;++h<e.footnoteOrder.length;){const g=e.footnoteById.get(e.footnoteOrder[h]);if(!g)continue;const x=e.all(g),y=String(g.identifier).toUpperCase(),k=E1(y.toLowerCase());let b=0;const T=[],R=e.footnoteCounts.get(y);for(;R!==void 0&&++b<=R;){T.length>0&&T.push({type:"text",value:" "});let P=typeof n=="string"?n:n(h,b);typeof P=="string"&&(P={type:"text",value:P}),T.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+k+(b>1?"-"+b:""),dataFootnoteBackref:"",ariaLabel:typeof a=="string"?a:a(h,b),className:["data-footnote-backref"]},children:Array.isArray(P)?P:[P]})}const N=x[x.length-1];if(N&&N.type==="element"&&N.tagName==="p"){const P=N.children[N.children.length-1];P&&P.type==="text"?P.value+=" ":N.children.push({type:"text",value:" "}),N.children.push(...T)}else x.push(...T);const O={type:"element",tagName:"li",properties:{id:t+"fn-"+k},children:e.wrap(x,!0)};e.patch(g,O),f.push(O)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...q2(u),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
|
|
436
|
-
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(f,!0)},{type:"text",value:`
|
|
437
|
-
`}]}}const RR=function(e){if(e==null)return Nee;if(typeof e=="function")return G2(e);if(typeof e=="object")return Array.isArray(e)?Ree(e):Mee(e);if(typeof e=="string")return Aee(e);throw new Error("Expected function, string, or object as test")};function Ree(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=RR(e[n]);return G2(a);function a(...i){let l=-1;for(;++l<t.length;)if(t[l].apply(this,i))return!0;return!1}}function Mee(e){const t=e;return G2(n);function n(a){const i=a;let l;for(l in e)if(i[l]!==t[l])return!1;return!0}}function Aee(e){return G2(t);function t(n){return n&&n.type===e}}function G2(e){return t;function t(n,a,i){return!!(Lee(n)&&e.call(this,n,typeof a=="number"?a:void 0,i||void 0))}}function Nee(){return!0}function Lee(e){return e!==null&&typeof e=="object"&&"type"in e}function W1e(e){return e}const MR=[],Oee=!0,AR=!1,Iee="skip";function Dee(e,t,n,a){let i;typeof t=="function"&&typeof n!="function"?(a=n,n=t):i=t;const l=RR(i),u=a?-1:1;f(e,void 0,[])();function f(h,g,x){const y=h&&typeof h=="object"?h:{};if(typeof y.type=="string"){const b=typeof y.tagName=="string"?y.tagName:typeof y.name=="string"?y.name:void 0;Object.defineProperty(k,"name",{value:"node ("+(h.type+(b?"<"+b+">":""))+")"})}return k;function k(){let b=MR,T,R,N;if((!t||l(h,g,x[x.length-1]||void 0))&&(b=jee(n(h,x)),b[0]===AR))return b;if("children"in h&&h.children){const O=h;if(O.children&&b[0]!==Iee)for(R=(a?O.children.length:-1)+u,N=x.concat(O);R>-1&&R<O.children.length;){const P=O.children[R];if(T=f(P,R,N)(),T[0]===AR)return T;R=typeof T[1]=="number"?T[1]:R+u}}return b}}}function jee(e){return Array.isArray(e)?e:typeof e=="number"?[Oee,e]:e==null?MR:[e]}function NR(e,t,n,a){let i,l,u;typeof t=="function"&&typeof n!="function"?(l=void 0,u=t,i=n):(l=t,u=n,i=a),Dee(e,l,f,i);function f(h,g){const x=g[g.length-1],y=x?x.children.indexOf(h):void 0;return u(h,y,x)}}const zy={}.hasOwnProperty,Pee={};function Fee(e,t){const n=t||Pee,a=new Map,i=new Map,l=new Map,u={...wee,...n.handlers},f={all:g,applyData:Hee,definitionById:a,footnoteById:i,footnoteCounts:l,footnoteOrder:[],handlers:u,one:h,options:n,patch:zee,wrap:Bee};return NR(e,function(x){if(x.type==="definition"||x.type==="footnoteDefinition"){const y=x.type==="definition"?a:i,k=String(x.identifier).toUpperCase();y.has(k)||y.set(k,x)}}),f;function h(x,y){const k=x.type,b=f.handlers[k];if(zy.call(f.handlers,k)&&b)return b(f,x,y);if(f.options.passThrough&&f.options.passThrough.includes(k)){if("children"in x){const{children:R,...N}=x,O=q2(N);return O.children=f.all(x),O}return q2(x)}return(f.options.unknownHandler||Uee)(f,x,y)}function g(x){const y=[];if("children"in x){const k=x.children;let b=-1;for(;++b<k.length;){const T=f.one(k[b],x);if(T){if(b&&k[b-1].type==="break"&&(!Array.isArray(T)&&T.type==="text"&&(T.value=LR(T.value)),!Array.isArray(T)&&T.type==="element")){const R=T.children[0];R&&R.type==="text"&&(R.value=LR(R.value))}Array.isArray(T)?y.push(...T):y.push(T)}}}return y}}function zee(e,t){e.position&&(t.position=NX(e))}function Hee(e,t){let n=t;if(e&&e.data){const a=e.data.hName,i=e.data.hChildren,l=e.data.hProperties;if(typeof a=="string")if(n.type==="element")n.tagName=a;else{const u="children"in n?n.children:[n];n={type:"element",tagName:a,properties:{},children:u}}n.type==="element"&&l&&Object.assign(n.properties,q2(l)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function Uee(e,t){const n=t.data||{},a="value"in t&&!(zy.call(n,"hProperties")||zy.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Bee(e,t){const n=[];let a=-1;for(t&&n.push({type:"text",value:`
|
|
438
|
-
`});++a<e.length;)a&&n.push({type:"text",value:`
|
|
439
|
-
`}),n.push(e[a]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
440
|
-
`}),n}function LR(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function OR(e,t){const n=Fee(e,t),a=n.one(e,void 0),i=Tee(n),l=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return i&&l.children.push({type:"text",value:`
|
|
441
|
-
`},i),l}function Vee(e,t){return e&&"run"in e?async function(n,a){const i=OR(n,{file:a,...t});await e.run(i,a)}:function(n,a){return OR(n,{file:a,...e||t})}}function IR(e){if(e)throw e}var Y2=Object.prototype.hasOwnProperty,DR=Object.prototype.toString,jR=Object.defineProperty,PR=Object.getOwnPropertyDescriptor,FR=function(t){return typeof Array.isArray=="function"?Array.isArray(t):DR.call(t)==="[object Array]"},zR=function(t){if(!t||DR.call(t)!=="[object Object]")return!1;var n=Y2.call(t,"constructor"),a=t.constructor&&t.constructor.prototype&&Y2.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!a)return!1;var i;for(i in t);return typeof i=="undefined"||Y2.call(t,i)},HR=function(t,n){jR&&n.name==="__proto__"?jR(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},UR=function(t,n){if(n==="__proto__")if(Y2.call(t,n)){if(PR)return PR(t,n).value}else return;return t[n]},$ee=function e(){var t,n,a,i,l,u,f=arguments[0],h=1,g=arguments.length,x=!1;for(typeof f=="boolean"&&(x=f,f=arguments[1]||{},h=2),(f==null||typeof f!="object"&&typeof f!="function")&&(f={});h<g;++h)if(t=arguments[h],t!=null)for(n in t)a=UR(f,n),i=UR(t,n),f!==i&&(x&&i&&(zR(i)||(l=FR(i)))?(l?(l=!1,u=a&&FR(a)?a:[]):u=a&&zR(a)?a:{},HR(f,{name:n,newValue:e(x,u,i)})):typeof i!="undefined"&&HR(f,{name:n,newValue:i}));return f};const Hy=Wu($ee);function Uy(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Zee(){const e=[],t={run:n,use:a};return t;function n(...i){let l=-1;const u=i.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);f(null,...i);function f(h,...g){const x=e[++l];let y=-1;if(h){u(h);return}for(;++y<i.length;)(g[y]===null||g[y]===void 0)&&(g[y]=i[y]);i=g,x?Wee(x,f)(...g):u(null,...g)}}function a(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function Wee(e,t){let n;return a;function a(...u){const f=e.length>u.length;let h;f&&u.push(i);try{h=e.apply(this,u)}catch(g){const x=g;if(f&&n)throw x;return i(x)}f||(h&&h.then&&typeof h.then=="function"?h.then(l,i):h instanceof Error?i(h):l(h))}function i(u,...f){n||(n=!0,t(u,...f))}function l(u){i(null,u)}}const rl={basename:qee,dirname:Gee,extname:Yee,join:Jee,sep:"/"};function qee(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');dm(e);let n=0,a=-1,i=e.length,l;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(l){n=i+1;break}}else a<0&&(l=!0,a=i+1);return a<0?"":e.slice(n,a)}if(t===e)return"";let u=-1,f=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(l){n=i+1;break}}else u<0&&(l=!0,u=i+1),f>-1&&(e.codePointAt(i)===t.codePointAt(f--)?f<0&&(a=i):(f=-1,a=u));return n===a?a=u:a<0&&(a=e.length),e.slice(n,a)}function Gee(e){if(dm(e),e.length===0)return".";let t=-1,n=e.length,a;for(;--n;)if(e.codePointAt(n)===47){if(a){t=n;break}}else a||(a=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Yee(e){dm(e);let t=e.length,n=-1,a=0,i=-1,l=0,u;for(;t--;){const f=e.codePointAt(t);if(f===47){if(u){a=t+1;break}continue}n<0&&(u=!0,n=t+1),f===46?i<0?i=t:l!==1&&(l=1):i>-1&&(l=-1)}return i<0||n<0||l===0||l===1&&i===n-1&&i===a+1?"":e.slice(i,n)}function Jee(...e){let t=-1,n;for(;++t<e.length;)dm(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Xee(n)}function Xee(e){dm(e);const t=e.codePointAt(0)===47;let n=Kee(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Kee(e,t){let n="",a=0,i=-1,l=0,u=-1,f,h;for(;++u<=e.length;){if(u<e.length)f=e.codePointAt(u);else{if(f===47)break;f=47}if(f===47){if(!(i===u-1||l===1))if(i!==u-1&&l===2){if(n.length<2||a!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(h=n.lastIndexOf("/"),h!==n.length-1){h<0?(n="",a=0):(n=n.slice(0,h),a=n.length-1-n.lastIndexOf("/")),i=u,l=0;continue}}else if(n.length>0){n="",a=0,i=u,l=0;continue}}t&&(n=n.length>0?n+"/..":"..",a=2)}else n.length>0?n+="/"+e.slice(i+1,u):n=e.slice(i+1,u),a=u-i-1;i=u,l=0}else f===46&&l>-1?l++:l=-1}return n}function dm(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Qee={cwd:ete};function ete(){return"/"}function By(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function tte(e){if(typeof e=="string")e=new URL(e);else if(!By(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return nte(e)}function nte(e){if(e.hostname!==""){const a=new TypeError('File URL host must be "localhost" or empty on darwin');throw a.code="ERR_INVALID_FILE_URL_HOST",a}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const a=t.codePointAt(n+2);if(a===70||a===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Vy=["history","path","basename","stem","extname","dirname"];class BR{constructor(t){let n;t?By(t)?n={path:t}:typeof t=="string"||rte(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Qee.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;for(;++a<Vy.length;){const l=Vy[a];l in n&&n[l]!==void 0&&n[l]!==null&&(this[l]=l==="history"?[...n[l]]:n[l])}let i;for(i in n)Vy.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?rl.basename(this.path):void 0}set basename(t){Zy(t,"basename"),$y(t,"basename"),this.path=rl.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?rl.dirname(this.path):void 0}set dirname(t){VR(this.basename,"dirname"),this.path=rl.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?rl.extname(this.path):void 0}set extname(t){if($y(t,"extname"),VR(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=rl.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){By(t)&&(t=tte(t)),Zy(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?rl.basename(this.path,this.extname):void 0}set stem(t){Zy(t,"stem"),$y(t,"stem"),this.path=rl.join(this.dirname||"",t+(this.extname||""))}fail(t,n,a){const i=this.message(t,n,a);throw i.fatal=!0,i}info(t,n,a){const i=this.message(t,n,a);return i.fatal=void 0,i}message(t,n,a){const i=new Qa(t,n,a);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function $y(e,t){if(e&&e.includes(rl.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+rl.sep+"`")}function Zy(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function VR(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function rte(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const ate=function(e){const a=this.constructor.prototype,i=a[e],l=function(){return i.apply(l,arguments)};return Object.setPrototypeOf(l,a),l},ote={}.hasOwnProperty;class Wy extends ate{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Zee()}copy(){const t=new Wy;let n=-1;for(;++n<this.attachers.length;){const a=this.attachers[n];t.use(...a)}return t.data(Hy(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Yy("data",this.frozen),this.namespace[t]=n,this):ote.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Yy("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...a]=this.attachers[this.freezeIndex];if(a[0]===!1)continue;a[0]===!0&&(a[0]=void 0);const i=n.call(t,...a);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=J2(t),a=this.parser||this.Parser;return qy("parse",a),a(String(n),n)}process(t,n){const a=this;return this.freeze(),qy("process",this.parser||this.Parser),Gy("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(l,u){const f=J2(t),h=a.parse(f);a.run(h,f,function(x,y,k){if(x||!y||!k)return g(x);const b=y,T=a.stringify(b,k);lte(T)?k.value=T:k.result=T,g(x,k)});function g(x,y){x||!y?u(x):l?l(y):n(void 0,y)}}}processSync(t){let n=!1,a;return this.freeze(),qy("processSync",this.parser||this.Parser),Gy("processSync",this.compiler||this.Compiler),this.process(t,i),ZR("processSync","process",n),a;function i(l,u){n=!0,IR(l),a=u}}run(t,n,a){$R(t),this.freeze();const i=this.transformers;return!a&&typeof n=="function"&&(a=n,n=void 0),a?l(void 0,a):new Promise(l);function l(u,f){const h=J2(n);i.run(t,h,g);function g(x,y,k){const b=y||t;x?f(x):u?u(b):a(void 0,b,k)}}}runSync(t,n){let a=!1,i;return this.run(t,n,l),ZR("runSync","run",a),i;function l(u,f){IR(u),i=f,a=!0}}stringify(t,n){this.freeze();const a=J2(n),i=this.compiler||this.Compiler;return Gy("stringify",i),$R(t),i(t,a)}use(t,...n){const a=this.attachers,i=this.namespace;if(Yy("use",this.frozen),t!=null)if(typeof t=="function")h(t,n);else if(typeof t=="object")Array.isArray(t)?f(t):u(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function l(g){if(typeof g=="function")h(g,[]);else if(typeof g=="object")if(Array.isArray(g)){const[x,...y]=g;h(x,y)}else u(g);else throw new TypeError("Expected usable value, not `"+g+"`")}function u(g){if(!("plugins"in g)&&!("settings"in g))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");f(g.plugins),g.settings&&(i.settings=Hy(!0,i.settings,g.settings))}function f(g){let x=-1;if(g!=null)if(Array.isArray(g))for(;++x<g.length;){const y=g[x];l(y)}else throw new TypeError("Expected a list of plugins, not `"+g+"`")}function h(g,x){let y=-1,k=-1;for(;++y<a.length;)if(a[y][0]===g){k=y;break}if(k===-1)a.push([g,...x]);else if(x.length>0){let[b,...T]=x;const R=a[k][1];Uy(R)&&Uy(b)&&(b=Hy(!0,R,b)),a[k]=[g,b,...T]}}}}const ite=new Wy().freeze();function qy(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Gy(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Yy(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function $R(e){if(!Uy(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function ZR(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function J2(e){return ste(e)?e:new BR(e)}function ste(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function lte(e){return typeof e=="string"||ute(e)}function ute(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const cte="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",WR=[],qR={allowDangerousHtml:!0},dte=/^(https?|ircs?|mailto|xmpp)$/i,fte=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function pte(e){const t=hte(e),n=mte(e);return gte(t.runSync(t.parse(n),n),e)}function hte(e){const t=e.rehypePlugins||WR,n=e.remarkPlugins||WR,a=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...qR}:qR;return ite().use(GQ).use(n).use(Vee,a).use(t)}function mte(e){const t=e.children||"",n=new BR;return typeof t=="string"&&(n.value=t),n}function gte(e,t){const n=t.allowedElements,a=t.allowElement,i=t.components,l=t.disallowedElements,u=t.skipHtml,f=t.unwrapDisallowed,h=t.urlTransform||vte;for(const x of fte)Object.hasOwn(t,x.from)&&(""+x.from+(x.to?"use `"+x.to+"` instead":"remove it")+cte+x.id,void 0);return NR(e,g),jX(e,{Fragment:C.Fragment,components:i,ignoreInvalidStyle:!0,jsx:C.jsx,jsxs:C.jsxs,passKeys:!0,passNode:!0});function g(x,y,k){if(x.type==="raw"&&k&&typeof y=="number")return u?k.children.splice(y,1):k.children[y]={type:"text",value:x.value},y;if(x.type==="element"){let b;for(b in _y)if(Object.hasOwn(_y,b)&&Object.hasOwn(x.properties,b)){const T=x.properties[b],R=_y[b];(R===null||R.includes(x.tagName))&&(x.properties[b]=h(String(T||""),b,x))}}if(x.type==="element"){let b=n?!n.includes(x.tagName):l?l.includes(x.tagName):!1;if(!b&&a&&typeof y=="number"&&(b=!a(x,y,k)),b&&k&&typeof y=="number")return f&&x.children?k.children.splice(y,1,...x.children):k.children.splice(y,1),y}}}function vte(e){const t=e.indexOf(":"),n=e.indexOf("?"),a=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||a!==-1&&t>a||dte.test(e.slice(0,t))?e:""}function yte(e){return Kn.lexer(e).map(n=>n.raw)}const GR=L.memo(({content:e})=>C.jsx(pte,{children:e}),(e,t)=>e.content===t.content);GR.displayName="MemoizedMarkdownBlock";const fm=L.memo(({content:e,id:t})=>L.useMemo(()=>yte(e),[e]).map((a,i)=>C.jsx(GR,{content:a},`${t}-block_${i}`)));fm.displayName="MemoizedMarkdown";const xte=({text:e,children:t})=>C.jsx("div",{className:"px-2.5 py-[7px] text-[#0265FF] text-[14px] w-fit",style:{borderRadius:"10px 0 10px 10px",wordWrap:"break-word",background:"linear-gradient(180deg, #DBE9FF 0%, #E9FFFD 100%)"},children:e||t}),pm=({title:e,content:t,icon:n,disableExpand:a,children:i,defaultOpen:l})=>{const[u,f]=L.useState(l);return C.jsxs("div",{className:"bg-[#fafafa] border border-[#e0e0e0] border-solid flex flex-col gap-2.5 p-2.5 rounded-[10px] w-full",children:[C.jsxs("div",{className:Ge("flex items-center justify-between w-full",{"cursor-pointer":!a}),onClick:()=>{a||f(!u)},children:[C.jsxs("div",{className:"flex gap-[10px] items-center",children:[C.jsx("div",{className:"w-4 h-4 shrink-0 flex items-center",children:n||C.jsx(GE,{})}),C.jsx("p",{className:"text-[#666] text-[14px] leading-normal",children:e})]}),C.jsx("button",{onClick:()=>{a||f(!u)},className:Ge("flex items-center justify-center w-5 h-5 rounded-[4px] cursor-pointer hover:bg-[#EFF0F6]",Xa,{"pointer-events-none opacity-0":a}),children:C.jsx(cq,{isOpen:u})})]}),u&&!a&&C.jsx("div",{className:"text-[#121111] text-[14px] word-wrap",children:t||i})]})},X2=e=>{const{part:t,role:n,id:a,collapsible:i=!0,collapsibleTitle:l="表单设计"}=e,u=t;if(u.type!=="text"||!u.text)return null;const f=Ge({prose:n==="assistant"});return n==="user"?C.jsx(xte,{children:u.text}):i?C.jsx("div",{children:C.jsxs(Ka,{className:Ge("text-[14px]",{"bg-transparent px-0 py-0 text-left":n==="assistant"}),"data-testid":"message-content",children:[C.jsx(pm,{title:l,icon:C.jsx(GE,{}),defaultOpen:!0,children:C.jsx("article",{className:f,style:{fontSize:14},children:C.jsx(fm,{id:a,content:m2(u.text)})})}),e.children]})}):C.jsx("div",{children:C.jsxs(Ka,{className:Ge("text-[14px]",{"bg-transparent px-0 py-0 text-left":n==="assistant"}),"data-testid":"message-content",children:[C.jsx("article",{className:f,style:{fontSize:14},children:C.jsx(fm,{id:a,content:m2(u.text)})}),e.children]})})},Td=({children:e,headless:t,className:n})=>{const a=h1("AvatarAndName");if(t)return C.jsx("div",{children:C.jsx(Ka,{className:Ge("w-fit wrap-break-words rounded-2 bg-transparent px-0 py-0 text-left",n),"data-testid":"message-content",children:e})});const i=a==null?void 0:a.Component,l=i?C.jsx(i,{}):C.jsx(Wh,{name:"AI表单搭建"});return C.jsx("div",{className:Ge("group/message w-full"),"data-role":"assistant","data-testid":"message-assistant",children:C.jsxs("div",{className:"flex w-full flex-col items-start justify-start gap-2.5",children:[l,C.jsx("div",{className:"flex flex-col min-w-0 grow gap-2.5 w-full",children:C.jsx(Ka,{className:"w-full wrap-break-words rounded-2 bg-transparent px-0 py-0 text-left","data-testid":"message-content",children:e})})]})})},wte=({error:e})=>C.jsx(Td,{headless:!0,children:e||"出现了一些问题,无法显示预览内容,请稍后重试。"});class bte extends Fo.Component{constructor(t){super(t),this.state={hasError:!1,error:""}}static getDerivedStateFromError(t){return{hasError:!0,error:t.message}}render(){return this.state.hasError?C.jsx(wte,{error:this.state.error}):this.props.children}}const Cte=({message:e="程序错误,请刷新页面重试",className:t})=>C.jsxs("div",{className:Ge("flex flex-col items-center gap-[10px]",t),children:[C.jsx("div",{className:"bg-no-repeat bg-center",style:{backgroundImage:rq,backgroundSize:"100% 100%",width:120,height:77}}),C.jsx("p",{className:"text-[12px] text-[#999] leading-normal",children:e})]}),Ste=({url:e,alt:t="",className:n,size:a=102})=>C.jsx("div",{className:Ge("relative overflow-hidden rounded-[10px]",n),style:{width:a,height:a},children:C.jsx("img",{src:e,alt:t,className:"block w-full h-full object-cover rounded-[10px]",loading:"lazy"})}),hm={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{icon:JE,iconSize:52},"application/vnd.ms-excel":{icon:JE,iconSize:52},"text/csv":{icon:bq,iconSize:16},"text/plain":{icon:XE,iconSize:16},"application/octet-stream":{icon:XE,iconSize:16}},kte={icon:wq,iconSize:16},Ete=e=>!!(e!=null&&e.startsWith("image/")),_te=(e,t)=>{var n;if(e&&hm[e])return hm[e];if(t)switch((n=t.split(".").pop())==null?void 0:n.toLowerCase()){case"xlsx":case"xls":return hm["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"];case"csv":return hm["text/csv"];case"txt":case"ts":case"tsx":case"js":case"jsx":case"json":case"md":return hm["text/plain"]}return kte},Tte=e=>{if(!e)return;const t=e.split("/");return t[t.length-1]},Rte=({fileName:e,icon:t,iconSize:n,className:a,size:i=102})=>{const l=i/102,u=52/102*i,f=u/n,h=!!e;return C.jsxs("div",{className:Ge("relative flex flex-col items-center justify-center rounded-[10px] bg-[#EFF0F6] px-[10px]",h&&"gap-[6px]",a),style:{width:i,height:i},children:[C.jsx("div",{className:"shrink-0 flex items-center justify-center",style:{width:u,height:u},children:C.jsx("div",{style:{transform:f!==1?`scale(${f})`:void 0,transformOrigin:"center"},children:C.jsx(t,{})})}),h&&C.jsx("p",{className:"block max-w-full shrink-0 truncate text-center text-[14px] leading-normal text-[#030303]",style:{fontSize:14*l,maxWidth:"100%",display:"block"},title:e,children:e})]})},YR=({part:e,className:t,size:n=102,iconOnly:a})=>{const{url:i,name:l,mediaType:u}=e;if(Ete(u))return C.jsx(Ste,{url:i,alt:l,className:t,size:n});const{icon:f,iconSize:h}=_te(u,l),g=a?void 0:Tte(l);return C.jsx(Rte,{fileName:g,icon:f,iconSize:h,className:t,size:n})},Mte=({parts:e,className:t,size:n=102,gap:a=10,iconOnly:i})=>e.length?C.jsx("div",{className:Ge("flex flex-wrap content-center items-center",t),style:{gap:a},children:e.map((l,u)=>C.jsx(YR,{part:l,size:n,iconOnly:i},l.url||u))}):null,Jy=()=>{const{status:e,setStatus:t}=Zl(n=>({status:n.chatStatus,setStatus:n.setChatStatus}));return{status:e,setStatus:t,isHide:e==="hide",isVisible:e!=="hide",isFloat:e==="float",isDock:e==="dock"}},Ate=({message:e,isLoading:t,addToolOutput:n,sendMessage:a,setMessages:i,status:l,regenerate:u,requiresScrollPadding:f})=>{var j,V;const h=(j=e.parts)==null?void 0:j.some(H=>{var W;return H.type==="text"&&((W=H.text)==null?void 0:W.trim())}),g=Jy(),x=(V=e.parts)==null?void 0:V.some(H=>Array.isArray(H)?H.some(W=>(W==null?void 0:W.type)==="file"):(H==null?void 0:H.type)==="file"),y=D5("MessagePart"),k=y[0],b=y.length>0?k.Component:X2,{exec:T=H=>H}=b1("onBeforeMessagePartsRender"),R=tq(e.parts),N=T(R),{exec:O}=b1("onBeforeMessageSend"),P=()=>{var W;const H=(W=e.parts)==null?void 0:W.filter(G=>G.type==="text"&&G.text).map(G=>G.text).join(`
|
|
442
|
-
`);H&&navigator.clipboard.writeText(H)},z=()=>{const{options:H}=O({});u==null||u({messageId:e.id,...H})};return g.isHide?null:C.jsx(nJ,{role:e.role,onCopy:P,onGenerate:u?z:void 0,isLoading:t,requiresScrollPadding:f,hasTextPart:h,hasFileType:x,children:N==null?void 0:N.map((H,W)=>{const G=`message-${e.id}-part-${W}-${Array.isArray(H)?"file-group":H.type}`;if(WW(H))return C.jsx(YR,{part:H,iconOnly:!0},G);if(qW(H))return C.jsx(Mte,{parts:H,iconOnly:!0},G);if(BE(H)){const ae=JW(H);return C.jsx(Cte,{message:ae},G)}return GW(H)?C.jsx(Td,{headless:!0,children:C.jsx(O2,{children:YW(H)})},G):C.jsx(bte,{children:C.jsx(b,{setMessages:i,sendMessage:a,addToolOutput:n,isLoading:t,status:l,part:H,index:W,role:e.role,id:e.id},G)})})})},Nte=e=>{var a;const t=D5(e);return!t||!t.length?null:(a=t[0].Component)!=null?a:null},Lte=L.forwardRef(({className:e,...t},n)=>C.jsx("div",{ref:n,className:Ge("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Lte.displayName="Card";const Ote=L.forwardRef(({className:e,...t},n)=>C.jsx("div",{ref:n,className:Ge("flex flex-col space-y-1.5 p-6",e),...t}));Ote.displayName="CardHeader";const Ite=L.forwardRef(({className:e,...t},n)=>C.jsx("div",{ref:n,className:Ge("font-semibold leading-none tracking-tight",e),...t}));Ite.displayName="CardTitle";const Dte=L.forwardRef(({className:e,...t},n)=>C.jsx("div",{ref:n,className:Ge("text-sm text-muted-foreground",e),...t}));Dte.displayName="CardDescription";const jte=L.forwardRef(({className:e,...t},n)=>C.jsx("div",{ref:n,className:Ge("p-6 pt-0",e),...t}));jte.displayName="CardContent";const Pte=L.forwardRef(({className:e,...t},n)=>C.jsx("div",{ref:n,className:Ge("flex items-center p-6 pt-0",e),...t}));Pte.displayName="CardFooter";const Fte=({title:e,desc:t,index:n,icon:a,onClick:i})=>C.jsxs("div",{className:Ge("bs-card group flex flex-col cursor-pointer p-2.5 gap-2.5 rounded-lg bg-[#F5F7FA] max-w-[350px] border border-transparent hover:border-[#e0e0e0] hover:bg-white",{transCls:Xa}),onClick:()=>{i==null||i(e)},children:[C.jsxs("div",{className:"px-2.5 flex items-center gap-1.5 rounded-[4px] h-[34px] bg-white",children:[n===void 0?null:C.jsx("div",{children:n}),a===void 0?null:C.jsx("div",{className:"text-[#0265FF]",children:a}),C.jsx("div",{className:"truncate text-[#12111] group-hover:text-[#0265FF]",children:e})]}),C.jsx("div",{className:"text-[#666] leading-5 text-[12px]",children:t})]}),zte=[{icon:C.jsx(ZE,{}),title:"供应商管理,子表单为产品信息",description:"用于记录和管理企业供应商的基本信息、资质认证、合作状态等,便于采购部门进行供应商评估和选择。"},{icon:C.jsx(WE,{}),title:"搭建订单表",description:"子表单为商品列表(包含:商品ID、商品名称、商品供应商为关联数据字段、商品原价、商品销售价、商品型号为关联查询字段)"},{icon:C.jsx(qE,{}),title:"创建合同表关联供应商信息管理表",description:"创建合同表用于记录与供应商签订的合同信息,并与供应商信息管理表进行关联,方便查询和管理合同相关的供应商信息。"}],mm=({items:e=zte,iconColor:t,onSelect:n})=>C.jsx(C.Fragment,{children:e.map((a,i)=>C.jsx(Fte,{icon:C.jsx("div",{style:{color:t},children:a.icon}),index:i+1,title:a.title,desc:a.description,onClick:n},i))}),Hte=({sendMessage:e,setMessages:t})=>{const n=Nte("OpeningLines");return n?C.jsx(n,{sendMessage:e,setMessages:t}):C.jsxs(C.Fragment,{children:["请问可以帮你创建什么表单?试试下面的建议吧!",C.jsx(mm,{onSelect:a=>{e({text:a},{body:{stage:"design",name:a}})}})]})},Ute=e=>{const t=L.useRef(null),{messages:n,setMessages:a,addToolOutput:i,sendMessage:l,regenerate:u}=e;return C.jsx("div",{className:"relative overscroll-behavior-contain -webkit-overflow-scrolling-touch flex-1 touch-pan-y overflow-y-auto m-h-0 h-full",ref:t,style:{overflowAnchor:"none",overscrollBehavior:"contain"},children:C.jsxs(Rq,{className:"mx-auto flex min-w-0 max-w-4xl flex-col",children:[C.jsxs(Mq,{className:"flex flex-col px-2 py-4 md:px-4",children:[n.length===0&&C.jsx(Td,{children:C.jsx(Hte,{sendMessage:l,setMessages:a})}),n.map((f,h)=>{const g=h===n.length-1;return C.jsx(Ate,{isLoading:e.status==="streaming"&&g,regenerate:g?u:void 0,status:e.status,addToolOutput:i,sendMessage:e.sendMessage,message:f,setMessages:a},f.id)})]}),C.jsx(Aq,{})]})})};var Bte=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var a,i,l;if(Array.isArray(t)){if(a=t.length,a!=n.length)return!1;for(i=a;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(l=Object.keys(t),a=l.length,a!==Object.keys(n).length)return!1;for(i=a;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,l[i]))return!1;for(i=a;i--!==0;){var u=l[i];if(!e(t[u],n[u]))return!1}return!0}return t!==t&&n!==n};const Vte=Wu(Bte);/**
|
|
443
|
-
* @license lucide-react v0.554.0 - ISC
|
|
444
|
-
*
|
|
445
|
-
* This source code is licensed under the ISC license.
|
|
446
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
447
|
-
*/const $te=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Zte=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,a)=>a?a.toUpperCase():n.toLowerCase()),JR=e=>{const t=Zte(e);return t.charAt(0).toUpperCase()+t.slice(1)},XR=(...e)=>e.filter((t,n,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===n).join(" ").trim(),Wte=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
|
|
448
|
-
* @license lucide-react v0.554.0 - ISC
|
|
449
|
-
*
|
|
450
|
-
* This source code is licensed under the ISC license.
|
|
451
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
452
|
-
*/var qte={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"};/**
|
|
453
|
-
* @license lucide-react v0.554.0 - ISC
|
|
454
|
-
*
|
|
455
|
-
* This source code is licensed under the ISC license.
|
|
456
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
457
|
-
*/const Gte=L.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:a,className:i="",children:l,iconNode:u,...f},h)=>L.createElement("svg",{ref:h,...qte,width:t,height:t,stroke:e,strokeWidth:a?Number(n)*24/Number(t):n,className:XR("lucide",i),...!l&&!Wte(f)&&{"aria-hidden":"true"},...f},[...u.map(([g,x])=>L.createElement(g,x)),...Array.isArray(l)?l:[l]]));/**
|
|
458
|
-
* @license lucide-react v0.554.0 - ISC
|
|
459
|
-
*
|
|
460
|
-
* This source code is licensed under the ISC license.
|
|
461
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
462
|
-
*/const T1=(e,t)=>{const n=L.forwardRef(({className:a,...i},l)=>L.createElement(Gte,{ref:l,iconNode:t,className:XR(`lucide-${$te(JR(e))}`,`lucide-${e}`,a),...i}));return n.displayName=JR(e),n};/**
|
|
463
|
-
* @license lucide-react v0.554.0 - ISC
|
|
464
|
-
*
|
|
465
|
-
* This source code is licensed under the ISC license.
|
|
466
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
467
|
-
*/const Yte=T1("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
468
|
-
* @license lucide-react v0.554.0 - ISC
|
|
469
|
-
*
|
|
470
|
-
* This source code is licensed under the ISC license.
|
|
471
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
472
|
-
*/const KR=T1("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
473
|
-
* @license lucide-react v0.554.0 - ISC
|
|
474
|
-
*
|
|
475
|
-
* This source code is licensed under the ISC license.
|
|
476
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
477
|
-
*/const Jte=T1("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
|
|
478
|
-
* @license lucide-react v0.554.0 - ISC
|
|
479
|
-
*
|
|
480
|
-
* This source code is licensed under the ISC license.
|
|
481
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
482
|
-
*/const Xte=T1("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
483
|
-
* @license lucide-react v0.554.0 - ISC
|
|
484
|
-
*
|
|
485
|
-
* This source code is licensed under the ISC license.
|
|
486
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
487
|
-
*/const Kte=T1("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"}]]);/**
|
|
488
|
-
* @license lucide-react v0.554.0 - ISC
|
|
489
|
-
*
|
|
490
|
-
* This source code is licensed under the ISC license.
|
|
491
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
492
|
-
*/const Qte=T1("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function QR(e,[t,n]){return Math.min(n,Math.max(t,e))}function eM(e){const t=e+"CollectionProvider",[n,a]=Js(t),[i,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),u=R=>{const{scope:N,children:O}=R,P=Fo.useRef(null),z=Fo.useRef(new Map).current;return C.jsx(i,{scope:N,itemMap:z,collectionRef:P,children:O})};u.displayName=t;const f=e+"CollectionSlot",h=qh(f),g=Fo.forwardRef((R,N)=>{const{scope:O,children:P}=R,z=l(f,O),j=Vn(N,z.collectionRef);return C.jsx(h,{ref:j,children:P})});g.displayName=f;const x=e+"CollectionItemSlot",y="data-radix-collection-item",k=qh(x),b=Fo.forwardRef((R,N)=>{const{scope:O,children:P,...z}=R,j=Fo.useRef(null),V=Vn(N,j),H=l(x,O);return Fo.useEffect(()=>(H.itemMap.set(j,{ref:j,...z}),()=>void H.itemMap.delete(j))),C.jsx(k,{[y]:"",ref:V,children:P})});b.displayName=x;function T(R){const N=l(e+"CollectionConsumer",R);return Fo.useCallback(()=>{const P=N.collectionRef.current;if(!P)return[];const z=Array.from(P.querySelectorAll(`[${y}]`));return Array.from(N.itemMap.values()).sort((H,W)=>z.indexOf(H.ref.current)-z.indexOf(W.ref.current))},[N.collectionRef,N.itemMap])}return[{Provider:u,Slot:g,ItemSlot:b},T,a]}var ene=L.createContext(void 0);function tM(e){const t=L.useContext(ene);return e||t||"ltr"}var Xy=0;function nM(){L.useEffect(()=>{var t,n;const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(t=e[0])!=null?t:rM()),document.body.insertAdjacentElement("beforeend",(n=e[1])!=null?n:rM()),Xy++,()=>{Xy===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(a=>a.remove()),Xy--}},[])}function rM(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Ky="focusScope.autoFocusOnMount",Qy="focusScope.autoFocusOnUnmount",aM={bubbles:!1,cancelable:!0},tne="FocusScope",e6=L.forwardRef((e,t)=>{const{loop:n=!1,trapped:a=!1,onMountAutoFocus:i,onUnmountAutoFocus:l,...u}=e,[f,h]=L.useState(null),g=ec(i),x=ec(l),y=L.useRef(null),k=Vn(t,R=>h(R)),b=L.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;L.useEffect(()=>{if(a){let R=function(z){if(b.paused||!f)return;const j=z.target;f.contains(j)?y.current=j:ic(y.current,{select:!0})},N=function(z){if(b.paused||!f)return;const j=z.relatedTarget;j!==null&&(f.contains(j)||ic(y.current,{select:!0}))},O=function(z){if(document.activeElement===document.body)for(const V of z)V.removedNodes.length>0&&ic(f)};document.addEventListener("focusin",R),document.addEventListener("focusout",N);const P=new MutationObserver(O);return f&&P.observe(f,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",R),document.removeEventListener("focusout",N),P.disconnect()}}},[a,f,b.paused]),L.useEffect(()=>{if(f){sM.add(b);const R=document.activeElement;if(!f.contains(R)){const O=new CustomEvent(Ky,aM);f.addEventListener(Ky,g),f.dispatchEvent(O),O.defaultPrevented||(nne(sne(oM(f)),{select:!0}),document.activeElement===R&&ic(f))}return()=>{f.removeEventListener(Ky,g),setTimeout(()=>{const O=new CustomEvent(Qy,aM);f.addEventListener(Qy,x),f.dispatchEvent(O),O.defaultPrevented||ic(R!=null?R:document.body,{select:!0}),f.removeEventListener(Qy,x),sM.remove(b)},0)}}},[f,g,x,b]);const T=L.useCallback(R=>{if(!n&&!a||b.paused)return;const N=R.key==="Tab"&&!R.altKey&&!R.ctrlKey&&!R.metaKey,O=document.activeElement;if(N&&O){const P=R.currentTarget,[z,j]=rne(P);z&&j?!R.shiftKey&&O===j?(R.preventDefault(),n&&ic(z,{select:!0})):R.shiftKey&&O===z&&(R.preventDefault(),n&&ic(j,{select:!0})):O===P&&R.preventDefault()}},[n,a,b.paused]);return C.jsx(hn.div,{tabIndex:-1,...u,ref:k,onKeyDown:T})});e6.displayName=tne;function nne(e,{select:t=!1}={}){const n=document.activeElement;for(const a of e)if(ic(a,{select:t}),document.activeElement!==n)return}function rne(e){const t=oM(e),n=iM(t,e),a=iM(t.reverse(),e);return[n,a]}function oM(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const i=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||i?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function iM(e,t){for(const n of e)if(!ane(n,{upTo:t}))return n}function ane(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function one(e){return e instanceof HTMLInputElement&&"select"in e}function ic(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&one(e)&&t&&e.select()}}var sM=ine();function ine(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=lM(e,t),e.unshift(t)},remove(t){var n;e=lM(e,t),(n=e[0])==null||n.resume()}}}function lM(e,t){const n=[...e],a=n.indexOf(t);return a!==-1&&n.splice(a,1),n}function sne(e){return e.filter(t=>t.tagName!=="A")}function t6(e){const t=L.useRef({value:e,previous:e});return L.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var lne=function(e){if(typeof document=="undefined")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},R1=new WeakMap,K2=new WeakMap,Q2={},n6=0,uM=function(e){return e&&(e.host||uM(e.parentNode))},une=function(e,t){return t.map(function(n){if(e.contains(n))return n;var a=uM(n);return a&&e.contains(a)?a:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},cne=function(e,t,n,a){var i=une(t,Array.isArray(e)?e:[e]);Q2[n]||(Q2[n]=new WeakMap);var l=Q2[n],u=[],f=new Set,h=new Set(i),g=function(y){!y||f.has(y)||(f.add(y),g(y.parentNode))};i.forEach(g);var x=function(y){!y||h.has(y)||Array.prototype.forEach.call(y.children,function(k){if(f.has(k))x(k);else try{var b=k.getAttribute(a),T=b!==null&&b!=="false",R=(R1.get(k)||0)+1,N=(l.get(k)||0)+1;R1.set(k,R),l.set(k,N),u.push(k),R===1&&T&&K2.set(k,!0),N===1&&k.setAttribute(n,"true"),T||k.setAttribute(a,"true")}catch(O){console.error("aria-hidden: cannot operate on ",k,O)}})};return x(t),f.clear(),n6++,function(){u.forEach(function(y){var k=R1.get(y)-1,b=l.get(y)-1;R1.set(y,k),l.set(y,b),k||(K2.has(y)||y.removeAttribute(a),K2.delete(y)),b||y.removeAttribute(n)}),n6--,n6||(R1=new WeakMap,R1=new WeakMap,K2=new WeakMap,Q2={})}},cM=function(e,t,n){n===void 0&&(n="data-aria-hidden");var a=Array.from(Array.isArray(e)?e:[e]),i=lne(e);return i?(a.push.apply(a,Array.from(i.querySelectorAll("[aria-live], script"))),cne(a,i,n,"aria-hidden")):function(){return null}},al=function(){return al=Object.assign||function(t){for(var n,a=1,i=arguments.length;a<i;a++){n=arguments[a];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(t[l]=n[l])}return t},al.apply(this,arguments)};function dM(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]]);return n}function dne(e,t,n){if(n||arguments.length===2)for(var a=0,i=t.length,l;a<i;a++)(l||!(a in t))&&(l||(l=Array.prototype.slice.call(t,0,a)),l[a]=t[a]);return e.concat(l||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var eg="right-scroll-bar-position",tg="width-before-scroll-bar",fne="with-scroll-bars-hidden",pne="--removed-body-scroll-bar-size";function r6(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function hne(e,t){var n=L.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(a){var i=n.value;i!==a&&(n.value=a,n.callback(a,i))}}}})[0];return n.callback=t,n.facade}var mne=typeof window!="undefined"?L.useLayoutEffect:L.useEffect,fM=new WeakMap;function gne(e,t){var n=hne(null,function(a){return e.forEach(function(i){return r6(i,a)})});return mne(function(){var a=fM.get(n);if(a){var i=new Set(a),l=new Set(e),u=n.current;i.forEach(function(f){l.has(f)||r6(f,null)}),l.forEach(function(f){i.has(f)||r6(f,u)})}fM.set(n,e)},[e]),n}function vne(e){return e}function yne(e,t){t===void 0&&(t=vne);var n=[],a=!1,i={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(l){var u=t(l,a);return n.push(u),function(){n=n.filter(function(f){return f!==u})}},assignSyncMedium:function(l){for(a=!0;n.length;){var u=n;n=[],u.forEach(l)}n={push:function(f){return l(f)},filter:function(){return n}}},assignMedium:function(l){a=!0;var u=[];if(n.length){var f=n;n=[],f.forEach(l),u=n}var h=function(){var x=u;u=[],x.forEach(l)},g=function(){return Promise.resolve().then(h)};g(),n={push:function(x){u.push(x),g()},filter:function(x){return u=u.filter(x),n}}}};return i}function xne(e){e===void 0&&(e={});var t=yne(null);return t.options=al({async:!0,ssr:!1},e),t}var pM=function(e){var t=e.sideCar,n=dM(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=t.read();if(!a)throw new Error("Sidecar medium not found");return L.createElement(a,al({},n))};pM.isSideCarExport=!0;function wne(e,t){return e.useMedium(t),pM}var hM=xne(),a6=function(){},ng=L.forwardRef(function(e,t){var n=L.useRef(null),a=L.useState({onScrollCapture:a6,onWheelCapture:a6,onTouchMoveCapture:a6}),i=a[0],l=a[1],u=e.forwardProps,f=e.children,h=e.className,g=e.removeScrollBar,x=e.enabled,y=e.shards,k=e.sideCar,b=e.noRelative,T=e.noIsolation,R=e.inert,N=e.allowPinchZoom,O=e.as,P=O===void 0?"div":O,z=e.gapMode,j=dM(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),V=k,H=gne([n,t]),W=al(al({},j),i);return L.createElement(L.Fragment,null,x&&L.createElement(V,{sideCar:hM,removeScrollBar:g,shards:y,noRelative:b,noIsolation:T,inert:R,setCallbacks:l,allowPinchZoom:!!N,lockRef:n,gapMode:z}),u?L.cloneElement(L.Children.only(f),al(al({},W),{ref:H})):L.createElement(P,al({},W,{className:h,ref:H}),f))});ng.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ng.classNames={fullWidth:tg,zeroRight:eg};var bne=function(){if(typeof __webpack_nonce__!="undefined")return __webpack_nonce__};function Cne(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=bne();return t&&e.setAttribute("nonce",t),e}function Sne(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function kne(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Ene=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Cne())&&(Sne(t,n),kne(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},_ne=function(){var e=Ene();return function(t,n){L.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},mM=function(){var e=_ne(),t=function(n){var a=n.styles,i=n.dynamic;return e(a,i),null};return t},Tne={left:0,top:0,right:0,gap:0},o6=function(e){return parseInt(e||"",10)||0},Rne=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],a=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[o6(n),o6(a),o6(i)]},Mne=function(e){if(e===void 0&&(e="margin"),typeof window=="undefined")return Tne;var t=Rne(e),n=document.documentElement.clientWidth,a=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,a-n+t[2]-t[0])}},Ane=mM(),M1="data-scroll-locked",Nne=function(e,t,n,a){var i=e.left,l=e.top,u=e.right,f=e.gap;return n===void 0&&(n="margin"),`
|
|
493
|
-
.`.concat(fne,` {
|
|
494
|
-
overflow: hidden `).concat(a,`;
|
|
495
|
-
padding-right: `).concat(f,"px ").concat(a,`;
|
|
496
|
-
}
|
|
497
|
-
body[`).concat(M1,`] {
|
|
498
|
-
overflow: hidden `).concat(a,`;
|
|
499
|
-
overscroll-behavior: contain;
|
|
500
|
-
`).concat([t&&"position: relative ".concat(a,";"),n==="margin"&&`
|
|
501
|
-
padding-left: `.concat(i,`px;
|
|
502
|
-
padding-top: `).concat(l,`px;
|
|
503
|
-
padding-right: `).concat(u,`px;
|
|
504
|
-
margin-left:0;
|
|
505
|
-
margin-top:0;
|
|
506
|
-
margin-right: `).concat(f,"px ").concat(a,`;
|
|
507
|
-
`),n==="padding"&&"padding-right: ".concat(f,"px ").concat(a,";")].filter(Boolean).join(""),`
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
.`).concat(eg,` {
|
|
511
|
-
right: `).concat(f,"px ").concat(a,`;
|
|
512
|
-
}
|
|
513
|
-
|
|
514
|
-
.`).concat(tg,` {
|
|
515
|
-
margin-right: `).concat(f,"px ").concat(a,`;
|
|
516
|
-
}
|
|
517
|
-
|
|
518
|
-
.`).concat(eg," .").concat(eg,` {
|
|
519
|
-
right: 0 `).concat(a,`;
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
.`).concat(tg," .").concat(tg,` {
|
|
523
|
-
margin-right: 0 `).concat(a,`;
|
|
524
|
-
}
|
|
525
|
-
|
|
526
|
-
body[`).concat(M1,`] {
|
|
527
|
-
`).concat(pne,": ").concat(f,`px;
|
|
528
|
-
}
|
|
529
|
-
`)},gM=function(){var e=parseInt(document.body.getAttribute(M1)||"0",10);return isFinite(e)?e:0},Lne=function(){L.useEffect(function(){return document.body.setAttribute(M1,(gM()+1).toString()),function(){var e=gM()-1;e<=0?document.body.removeAttribute(M1):document.body.setAttribute(M1,e.toString())}},[])},One=function(e){var t=e.noRelative,n=e.noImportant,a=e.gapMode,i=a===void 0?"margin":a;Lne();var l=L.useMemo(function(){return Mne(i)},[i]);return L.createElement(Ane,{styles:Nne(l,!t,i,n?"":"!important")})},i6=!1;if(typeof window!="undefined")try{var rg=Object.defineProperty({},"passive",{get:function(){return i6=!0,!0}});window.addEventListener("test",rg,rg),window.removeEventListener("test",rg,rg)}catch(e){i6=!1}var A1=i6?{passive:!1}:!1,Ine=function(e){return e.tagName==="TEXTAREA"},vM=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Ine(e)&&n[t]==="visible")},Dne=function(e){return vM(e,"overflowY")},jne=function(e){return vM(e,"overflowX")},yM=function(e,t){var n=t.ownerDocument,a=t;do{typeof ShadowRoot!="undefined"&&a instanceof ShadowRoot&&(a=a.host);var i=xM(e,a);if(i){var l=wM(e,a),u=l[1],f=l[2];if(u>f)return!0}a=a.parentNode}while(a&&a!==n.body);return!1},Pne=function(e){var t=e.scrollTop,n=e.scrollHeight,a=e.clientHeight;return[t,n,a]},Fne=function(e){var t=e.scrollLeft,n=e.scrollWidth,a=e.clientWidth;return[t,n,a]},xM=function(e,t){return e==="v"?Dne(t):jne(t)},wM=function(e,t){return e==="v"?Pne(t):Fne(t)},zne=function(e,t){return e==="h"&&t==="rtl"?-1:1},Hne=function(e,t,n,a,i){var l=zne(e,window.getComputedStyle(t).direction),u=l*a,f=n.target,h=t.contains(f),g=!1,x=u>0,y=0,k=0;do{if(!f)break;var b=wM(e,f),T=b[0],R=b[1],N=b[2],O=R-N-l*T;(T||O)&&xM(e,f)&&(y+=O,k+=T);var P=f.parentNode;f=P&&P.nodeType===Node.DOCUMENT_FRAGMENT_NODE?P.host:P}while(!h&&f!==document.body||h&&(t.contains(f)||t===f));return(x&&Math.abs(y)<1||!x&&Math.abs(k)<1)&&(g=!0),g},ag=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},bM=function(e){return[e.deltaX,e.deltaY]},CM=function(e){return e&&"current"in e?e.current:e},Une=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Bne=function(e){return`
|
|
530
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
531
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
532
|
-
`)},Vne=0,N1=[];function $ne(e){var t=L.useRef([]),n=L.useRef([0,0]),a=L.useRef(),i=L.useState(Vne++)[0],l=L.useState(mM)[0],u=L.useRef(e);L.useEffect(function(){u.current=e},[e]),L.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var R=dne([e.lockRef.current],(e.shards||[]).map(CM),!0).filter(Boolean);return R.forEach(function(N){return N.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),R.forEach(function(N){return N.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var f=L.useCallback(function(R,N){if("touches"in R&&R.touches.length===2||R.type==="wheel"&&R.ctrlKey)return!u.current.allowPinchZoom;var O=ag(R),P=n.current,z="deltaX"in R?R.deltaX:P[0]-O[0],j="deltaY"in R?R.deltaY:P[1]-O[1],V,H=R.target,W=Math.abs(z)>Math.abs(j)?"h":"v";if("touches"in R&&W==="h"&&H.type==="range")return!1;var G=window.getSelection(),ae=G&&G.anchorNode,ye=ae?ae===H||ae.contains(H):!1;if(ye)return!1;var ce=yM(W,H);if(!ce)return!0;if(ce?V=W:(V=W==="v"?"h":"v",ce=yM(W,H)),!ce)return!1;if(!a.current&&"changedTouches"in R&&(z||j)&&(a.current=V),!V)return!0;var he=a.current||V;return Hne(he,N,R,he==="h"?z:j)},[]),h=L.useCallback(function(R){var N=R;if(!(!N1.length||N1[N1.length-1]!==l)){var O="deltaY"in N?bM(N):ag(N),P=t.current.filter(function(V){return V.name===N.type&&(V.target===N.target||N.target===V.shadowParent)&&Une(V.delta,O)})[0];if(P&&P.should){N.cancelable&&N.preventDefault();return}if(!P){var z=(u.current.shards||[]).map(CM).filter(Boolean).filter(function(V){return V.contains(N.target)}),j=z.length>0?f(N,z[0]):!u.current.noIsolation;j&&N.cancelable&&N.preventDefault()}}},[]),g=L.useCallback(function(R,N,O,P){var z={name:R,delta:N,target:O,should:P,shadowParent:Zne(O)};t.current.push(z),setTimeout(function(){t.current=t.current.filter(function(j){return j!==z})},1)},[]),x=L.useCallback(function(R){n.current=ag(R),a.current=void 0},[]),y=L.useCallback(function(R){g(R.type,bM(R),R.target,f(R,e.lockRef.current))},[]),k=L.useCallback(function(R){g(R.type,ag(R),R.target,f(R,e.lockRef.current))},[]);L.useEffect(function(){return N1.push(l),e.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:k}),document.addEventListener("wheel",h,A1),document.addEventListener("touchmove",h,A1),document.addEventListener("touchstart",x,A1),function(){N1=N1.filter(function(R){return R!==l}),document.removeEventListener("wheel",h,A1),document.removeEventListener("touchmove",h,A1),document.removeEventListener("touchstart",x,A1)}},[]);var b=e.removeScrollBar,T=e.inert;return L.createElement(L.Fragment,null,T?L.createElement(l,{styles:Bne(i)}):null,b?L.createElement(One,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Zne(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Wne=wne(hM,$ne);var s6=L.forwardRef(function(e,t){return L.createElement(ng,al({},e,{ref:t,sideCar:Wne}))});s6.classNames=ng.classNames;var qne=[" ","Enter","ArrowUp","ArrowDown"],Gne=[" ","Enter"],og="Select",[l6,ig,Yne]=eM(og),[L1]=Js(og,[Yne,R2]),u6=R2(),[epe,sc]=L1(og),[tpe,Jne]=L1(og),SM="SelectTrigger",kM=L.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:a=!1,...i}=e,l=u6(n),u=sc(SM,n),f=u.disabled||a,h=Vn(t,u.onTriggerChange),g=ig(n),x=L.useRef("touch"),[y,k,b]=WM(R=>{const N=g().filter(z=>!z.disabled),O=N.find(z=>z.value===u.value),P=qM(N,R,O);P!==void 0&&u.onValueChange(P.value)}),T=R=>{f||(u.onOpenChange(!0),b()),R&&(u.triggerPointerDownPosRef.current={x:Math.round(R.pageX),y:Math.round(R.pageY)})};return C.jsx(V_,{asChild:!0,...l,children:C.jsx(hn.button,{type:"button",role:"combobox","aria-controls":u.contentId,"aria-expanded":u.open,"aria-required":u.required,"aria-autocomplete":"none",dir:u.dir,"data-state":u.open?"open":"closed",disabled:f,"data-disabled":f?"":void 0,"data-placeholder":ZM(u.value)?"":void 0,...i,ref:h,onClick:nn(i.onClick,R=>{R.currentTarget.focus(),x.current!=="mouse"&&T(R)}),onPointerDown:nn(i.onPointerDown,R=>{x.current=R.pointerType;const N=R.target;N.hasPointerCapture(R.pointerId)&&N.releasePointerCapture(R.pointerId),R.button===0&&R.ctrlKey===!1&&R.pointerType==="mouse"&&(T(R),R.preventDefault())}),onKeyDown:nn(i.onKeyDown,R=>{const N=y.current!=="";!(R.ctrlKey||R.altKey||R.metaKey)&&R.key.length===1&&k(R.key),!(N&&R.key===" ")&&qne.includes(R.key)&&(T(),R.preventDefault())})})})});kM.displayName=SM;var EM="SelectValue",Xne=L.forwardRef((e,t)=>{const{__scopeSelect:n,className:a,style:i,children:l,placeholder:u="",...f}=e,h=sc(EM,n),{onValueNodeHasChildrenChange:g}=h,x=l!==void 0,y=Vn(t,h.onValueNodeChange);return La(()=>{g(x)},[g,x]),C.jsx(hn.span,{...f,ref:y,style:{pointerEvents:"none"},children:ZM(h.value)?C.jsx(C.Fragment,{children:u}):l})});Xne.displayName=EM;var Kne="SelectIcon",_M=L.forwardRef((e,t)=>{const{__scopeSelect:n,children:a,...i}=e;return C.jsx(hn.span,{"aria-hidden":!0,...i,ref:t,children:a||"▼"})});_M.displayName=Kne;var Qne="SelectPortal",TM=e=>C.jsx(M2,{asChild:!0,...e});TM.displayName=Qne;var Rd="SelectContent",RM=L.forwardRef((e,t)=>{const n=sc(Rd,e.__scopeSelect),[a,i]=L.useState();if(La(()=>{i(new DocumentFragment)},[]),!n.open){const l=a;return l?$l.createPortal(C.jsx(MM,{scope:e.__scopeSelect,children:C.jsx(l6.Slot,{scope:e.__scopeSelect,children:C.jsx("div",{children:e.children})})}),l):null}return C.jsx(AM,{...e,ref:t})});RM.displayName=Rd;var ys=10,[MM,lc]=L1(Rd),ere="SelectContentImpl",tre=qh("SelectContent.RemoveScroll"),AM=L.forwardRef((e,t)=>{const{__scopeSelect:n,position:a="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:l,onPointerDownOutside:u,side:f,sideOffset:h,align:g,alignOffset:x,arrowPadding:y,collisionBoundary:k,collisionPadding:b,sticky:T,hideWhenDetached:R,avoidCollisions:N,...O}=e,P=sc(Rd,n),[z,j]=L.useState(null),[V,H]=L.useState(null),W=Vn(t,_e=>j(_e)),[G,ae]=L.useState(null),[ye,ce]=L.useState(null),he=ig(n),[ue,Te]=L.useState(!1),ke=L.useRef(!1);L.useEffect(()=>{if(z)return cM(z)},[z]),nM();const Ee=L.useCallback(_e=>{const[Ze,...Ke]=he().map(Et=>Et.ref.current),[We]=Ke.slice(-1),et=document.activeElement;for(const Et of _e)if(Et===et||(Et==null||Et.scrollIntoView({block:"nearest"}),Et===Ze&&V&&(V.scrollTop=0),Et===We&&V&&(V.scrollTop=V.scrollHeight),Et==null||Et.focus(),document.activeElement!==et))return},[he,V]),xe=L.useCallback(()=>Ee([G,z]),[Ee,G,z]);L.useEffect(()=>{ue&&xe()},[ue,xe]);const{onOpenChange:K,triggerPointerDownPosRef:Ae}=P;L.useEffect(()=>{if(z){let _e={x:0,y:0};const Ze=We=>{var et,Et,bt,ct;_e={x:Math.abs(Math.round(We.pageX)-((Et=(et=Ae.current)==null?void 0:et.x)!=null?Et:0)),y:Math.abs(Math.round(We.pageY)-((ct=(bt=Ae.current)==null?void 0:bt.y)!=null?ct:0))}},Ke=We=>{_e.x<=10&&_e.y<=10?We.preventDefault():z.contains(We.target)||K(!1),document.removeEventListener("pointermove",Ze),Ae.current=null};return Ae.current!==null&&(document.addEventListener("pointermove",Ze),document.addEventListener("pointerup",Ke,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Ze),document.removeEventListener("pointerup",Ke,{capture:!0})}}},[z,K,Ae]),L.useEffect(()=>{const _e=()=>K(!1);return window.addEventListener("blur",_e),window.addEventListener("resize",_e),()=>{window.removeEventListener("blur",_e),window.removeEventListener("resize",_e)}},[K]);const[B,X]=WM(_e=>{const Ze=he().filter(et=>!et.disabled),Ke=Ze.find(et=>et.ref.current===document.activeElement),We=qM(Ze,_e,Ke);We&&setTimeout(()=>We.ref.current.focus())}),pe=L.useCallback((_e,Ze,Ke)=>{const We=!ke.current&&!Ke;(P.value!==void 0&&P.value===Ze||We)&&(ae(_e),We&&(ke.current=!0))},[P.value]),Z=L.useCallback(()=>z==null?void 0:z.focus(),[z]),ze=L.useCallback((_e,Ze,Ke)=>{const We=!ke.current&&!Ke;(P.value!==void 0&&P.value===Ze||We)&&ce(_e)},[P.value]),st=a==="popper"?c6:NM,Ve=st===c6?{side:f,sideOffset:h,align:g,alignOffset:x,arrowPadding:y,collisionBoundary:k,collisionPadding:b,sticky:T,hideWhenDetached:R,avoidCollisions:N}:{};return C.jsx(MM,{scope:n,content:z,viewport:V,onViewportChange:H,itemRefCallback:pe,selectedItem:G,onItemLeave:Z,itemTextRefCallback:ze,focusSelectedItem:xe,selectedItemText:ye,position:a,isPositioned:ue,searchRef:B,children:C.jsx(s6,{as:tre,allowPinchZoom:!0,children:C.jsx(e6,{asChild:!0,trapped:P.open,onMountAutoFocus:_e=>{_e.preventDefault()},onUnmountAutoFocus:nn(i,_e=>{var Ze;(Ze=P.trigger)==null||Ze.focus({preventScroll:!0}),_e.preventDefault()}),children:C.jsx(v2,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:_e=>_e.preventDefault(),onDismiss:()=>P.onOpenChange(!1),children:C.jsx(st,{role:"listbox",id:P.contentId,"data-state":P.open?"open":"closed",dir:P.dir,onContextMenu:_e=>_e.preventDefault(),...O,...Ve,onPlaced:()=>Te(!0),ref:W,style:{display:"flex",flexDirection:"column",outline:"none",...O.style},onKeyDown:nn(O.onKeyDown,_e=>{const Ze=_e.ctrlKey||_e.altKey||_e.metaKey;if(_e.key==="Tab"&&_e.preventDefault(),!Ze&&_e.key.length===1&&X(_e.key),["ArrowUp","ArrowDown","Home","End"].includes(_e.key)){let We=he().filter(et=>!et.disabled).map(et=>et.ref.current);if(["ArrowUp","End"].includes(_e.key)&&(We=We.slice().reverse()),["ArrowUp","ArrowDown"].includes(_e.key)){const et=_e.target,Et=We.indexOf(et);We=We.slice(Et+1)}setTimeout(()=>Ee(We)),_e.preventDefault()}})})})})})})});AM.displayName=ere;var nre="SelectItemAlignedPosition",NM=L.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:a,...i}=e,l=sc(Rd,n),u=lc(Rd,n),[f,h]=L.useState(null),[g,x]=L.useState(null),y=Vn(t,W=>x(W)),k=ig(n),b=L.useRef(!1),T=L.useRef(!0),{viewport:R,selectedItem:N,selectedItemText:O,focusSelectedItem:P}=u,z=L.useCallback(()=>{if(l.trigger&&l.valueNode&&f&&g&&R&&N&&O){const W=l.trigger.getBoundingClientRect(),G=g.getBoundingClientRect(),ae=l.valueNode.getBoundingClientRect(),ye=O.getBoundingClientRect();if(l.dir!=="rtl"){const et=ye.left-G.left,Et=ae.left-et,bt=W.left-Et,ct=W.width+bt,yt=Math.max(ct,G.width),Pt=window.innerWidth-ys,St=QR(Et,[ys,Math.max(ys,Pt-yt)]);f.style.minWidth=ct+"px",f.style.left=St+"px"}else{const et=G.right-ye.right,Et=window.innerWidth-ae.right-et,bt=window.innerWidth-W.right-Et,ct=W.width+bt,yt=Math.max(ct,G.width),Pt=window.innerWidth-ys,St=QR(Et,[ys,Math.max(ys,Pt-yt)]);f.style.minWidth=ct+"px",f.style.right=St+"px"}const ce=k(),he=window.innerHeight-ys*2,ue=R.scrollHeight,Te=window.getComputedStyle(g),ke=parseInt(Te.borderTopWidth,10),Ee=parseInt(Te.paddingTop,10),xe=parseInt(Te.borderBottomWidth,10),K=parseInt(Te.paddingBottom,10),Ae=ke+Ee+ue+K+xe,B=Math.min(N.offsetHeight*5,Ae),X=window.getComputedStyle(R),pe=parseInt(X.paddingTop,10),Z=parseInt(X.paddingBottom,10),ze=W.top+W.height/2-ys,st=he-ze,Ve=N.offsetHeight/2,_e=N.offsetTop+Ve,Ze=ke+Ee+_e,Ke=Ae-Ze;if(Ze<=ze){const et=ce.length>0&&N===ce[ce.length-1].ref.current;f.style.bottom="0px";const Et=g.clientHeight-R.offsetTop-R.offsetHeight,bt=Math.max(st,Ve+(et?Z:0)+Et+xe),ct=Ze+bt;f.style.height=ct+"px"}else{const et=ce.length>0&&N===ce[0].ref.current;f.style.top="0px";const bt=Math.max(ze,ke+R.offsetTop+(et?pe:0)+Ve)+Ke;f.style.height=bt+"px",R.scrollTop=Ze-ze+R.offsetTop}f.style.margin=`${ys}px 0`,f.style.minHeight=B+"px",f.style.maxHeight=he+"px",a==null||a(),requestAnimationFrame(()=>b.current=!0)}},[k,l.trigger,l.valueNode,f,g,R,N,O,l.dir,a]);La(()=>z(),[z]);const[j,V]=L.useState();La(()=>{g&&V(window.getComputedStyle(g).zIndex)},[g]);const H=L.useCallback(W=>{W&&T.current===!0&&(z(),P==null||P(),T.current=!1)},[z,P]);return C.jsx(are,{scope:n,contentWrapper:f,shouldExpandOnScrollRef:b,onScrollButtonChange:H,children:C.jsx("div",{ref:h,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:j},children:C.jsx(hn.div,{...i,ref:y,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});NM.displayName=nre;var rre="SelectPopperPosition",c6=L.forwardRef((e,t)=>{const{__scopeSelect:n,align:a="start",collisionPadding:i=ys,...l}=e,u=u6(n);return C.jsx($_,{...u,...l,ref:t,align:a,collisionPadding:i,style:{boxSizing:"border-box",...l.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});c6.displayName=rre;var[are,d6]=L1(Rd,{}),f6="SelectViewport",LM=L.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:a,...i}=e,l=lc(f6,n),u=d6(f6,n),f=Vn(t,l.onViewportChange),h=L.useRef(0);return C.jsxs(C.Fragment,{children:[C.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),C.jsx(l6.Slot,{scope:n,children:C.jsx(hn.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:f,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:nn(i.onScroll,g=>{const x=g.currentTarget,{contentWrapper:y,shouldExpandOnScrollRef:k}=u;if(k!=null&&k.current&&y){const b=Math.abs(h.current-x.scrollTop);if(b>0){const T=window.innerHeight-ys*2,R=parseFloat(y.style.minHeight),N=parseFloat(y.style.height),O=Math.max(R,N);if(O<T){const P=O+b,z=Math.min(T,P),j=P-z;y.style.height=z+"px",y.style.bottom==="0px"&&(x.scrollTop=j>0?j:0,y.style.justifyContent="flex-end")}}}h.current=x.scrollTop})})})]})});LM.displayName=f6;var OM="SelectGroup",[ore,ire]=L1(OM),sre=L.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e,i=tc();return C.jsx(ore,{scope:n,id:i,children:C.jsx(hn.div,{role:"group","aria-labelledby":i,...a,ref:t})})});sre.displayName=OM;var IM="SelectLabel",DM=L.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e,i=ire(IM,n);return C.jsx(hn.div,{id:i.id,...a,ref:t})});DM.displayName=IM;var sg="SelectItem",[lre,jM]=L1(sg),PM=L.forwardRef((e,t)=>{const{__scopeSelect:n,value:a,disabled:i=!1,textValue:l,...u}=e,f=sc(sg,n),h=lc(sg,n),g=f.value===a,[x,y]=L.useState(l!=null?l:""),[k,b]=L.useState(!1),T=Vn(t,P=>{var z;return(z=h.itemRefCallback)==null?void 0:z.call(h,P,a,i)}),R=tc(),N=L.useRef("touch"),O=()=>{i||(f.onValueChange(a),f.onOpenChange(!1))};if(a==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return C.jsx(lre,{scope:n,value:a,disabled:i,textId:R,isSelected:g,onItemTextChange:L.useCallback(P=>{y(z=>{var j;return z||((j=P==null?void 0:P.textContent)!=null?j:"").trim()})},[]),children:C.jsx(l6.ItemSlot,{scope:n,value:a,disabled:i,textValue:x,children:C.jsx(hn.div,{role:"option","aria-labelledby":R,"data-highlighted":k?"":void 0,"aria-selected":g&&k,"data-state":g?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...u,ref:T,onFocus:nn(u.onFocus,()=>b(!0)),onBlur:nn(u.onBlur,()=>b(!1)),onClick:nn(u.onClick,()=>{N.current!=="mouse"&&O()}),onPointerUp:nn(u.onPointerUp,()=>{N.current==="mouse"&&O()}),onPointerDown:nn(u.onPointerDown,P=>{N.current=P.pointerType}),onPointerMove:nn(u.onPointerMove,P=>{var z;N.current=P.pointerType,i?(z=h.onItemLeave)==null||z.call(h):N.current==="mouse"&&P.currentTarget.focus({preventScroll:!0})}),onPointerLeave:nn(u.onPointerLeave,P=>{var z;P.currentTarget===document.activeElement&&((z=h.onItemLeave)==null||z.call(h))}),onKeyDown:nn(u.onKeyDown,P=>{var j;((j=h.searchRef)==null?void 0:j.current)!==""&&P.key===" "||(Gne.includes(P.key)&&O(),P.key===" "&&P.preventDefault())})})})})});PM.displayName=sg;var gm="SelectItemText",FM=L.forwardRef((e,t)=>{const{__scopeSelect:n,className:a,style:i,...l}=e,u=sc(gm,n),f=lc(gm,n),h=jM(gm,n),g=Jne(gm,n),[x,y]=L.useState(null),k=Vn(t,O=>y(O),h.onItemTextChange,O=>{var P;return(P=f.itemTextRefCallback)==null?void 0:P.call(f,O,h.value,h.disabled)}),b=x==null?void 0:x.textContent,T=L.useMemo(()=>C.jsx("option",{value:h.value,disabled:h.disabled,children:b},h.value),[h.disabled,h.value,b]),{onNativeOptionAdd:R,onNativeOptionRemove:N}=g;return La(()=>(R(T),()=>N(T)),[R,N,T]),C.jsxs(C.Fragment,{children:[C.jsx(hn.span,{id:h.textId,...l,ref:k}),h.isSelected&&u.valueNode&&!u.valueNodeHasChildren?$l.createPortal(l.children,u.valueNode):null]})});FM.displayName=gm;var zM="SelectItemIndicator",HM=L.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e;return jM(zM,n).isSelected?C.jsx(hn.span,{"aria-hidden":!0,...a,ref:t}):null});HM.displayName=zM;var p6="SelectScrollUpButton",UM=L.forwardRef((e,t)=>{const n=lc(p6,e.__scopeSelect),a=d6(p6,e.__scopeSelect),[i,l]=L.useState(!1),u=Vn(t,a.onScrollButtonChange);return La(()=>{if(n.viewport&&n.isPositioned){let f=function(){const g=h.scrollTop>0;l(g)};const h=n.viewport;return f(),h.addEventListener("scroll",f),()=>h.removeEventListener("scroll",f)}},[n.viewport,n.isPositioned]),i?C.jsx(VM,{...e,ref:u,onAutoScroll:()=>{const{viewport:f,selectedItem:h}=n;f&&h&&(f.scrollTop=f.scrollTop-h.offsetHeight)}}):null});UM.displayName=p6;var h6="SelectScrollDownButton",BM=L.forwardRef((e,t)=>{const n=lc(h6,e.__scopeSelect),a=d6(h6,e.__scopeSelect),[i,l]=L.useState(!1),u=Vn(t,a.onScrollButtonChange);return La(()=>{if(n.viewport&&n.isPositioned){let f=function(){const g=h.scrollHeight-h.clientHeight,x=Math.ceil(h.scrollTop)<g;l(x)};const h=n.viewport;return f(),h.addEventListener("scroll",f),()=>h.removeEventListener("scroll",f)}},[n.viewport,n.isPositioned]),i?C.jsx(VM,{...e,ref:u,onAutoScroll:()=>{const{viewport:f,selectedItem:h}=n;f&&h&&(f.scrollTop=f.scrollTop+h.offsetHeight)}}):null});BM.displayName=h6;var VM=L.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:a,...i}=e,l=lc("SelectScrollButton",n),u=L.useRef(null),f=ig(n),h=L.useCallback(()=>{u.current!==null&&(window.clearInterval(u.current),u.current=null)},[]);return L.useEffect(()=>()=>h(),[h]),La(()=>{var x;const g=f().find(y=>y.ref.current===document.activeElement);(x=g==null?void 0:g.ref.current)==null||x.scrollIntoView({block:"nearest"})},[f]),C.jsx(hn.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:nn(i.onPointerDown,()=>{u.current===null&&(u.current=window.setInterval(a,50))}),onPointerMove:nn(i.onPointerMove,()=>{var g;(g=l.onItemLeave)==null||g.call(l),u.current===null&&(u.current=window.setInterval(a,50))}),onPointerLeave:nn(i.onPointerLeave,()=>{h()})})}),ure="SelectSeparator",$M=L.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e;return C.jsx(hn.div,{"aria-hidden":!0,...a,ref:t})});$M.displayName=ure;var m6="SelectArrow",cre=L.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e,i=u6(n),l=sc(m6,n),u=lc(m6,n);return l.open&&u.position==="popper"?C.jsx(Z_,{...i,...a,ref:t}):null});cre.displayName=m6;var dre="SelectBubbleInput",fre=L.forwardRef(({__scopeSelect:e,value:t,...n},a)=>{const i=L.useRef(null),l=Vn(a,i),u=t6(t);return L.useEffect(()=>{const f=i.current;if(!f)return;const h=window.HTMLSelectElement.prototype,x=Object.getOwnPropertyDescriptor(h,"value").set;if(u!==t&&x){const y=new Event("change",{bubbles:!0});x.call(f,t),f.dispatchEvent(y)}},[u,t]),C.jsx(hn.select,{...n,style:{...W_,...n.style},ref:l,defaultValue:t})});fre.displayName=dre;function ZM(e){return e===""||e===void 0}function WM(e){const t=ec(e),n=L.useRef(""),a=L.useRef(0),i=L.useCallback(u=>{const f=n.current+u;t(f),function h(g){n.current=g,window.clearTimeout(a.current),g!==""&&(a.current=window.setTimeout(()=>h(""),1e3))}(f)},[t]),l=L.useCallback(()=>{n.current="",window.clearTimeout(a.current)},[]);return L.useEffect(()=>()=>window.clearTimeout(a.current),[]),[n,i,l]}function qM(e,t,n){const i=t.length>1&&Array.from(t).every(g=>g===t[0])?t[0]:t,l=n?e.indexOf(n):-1;let u=pre(e,Math.max(l,0));i.length===1&&(u=u.filter(g=>g!==n));const h=u.find(g=>g.textValue.toLowerCase().startsWith(i.toLowerCase()));return h!==n?h:void 0}function pre(e,t){return e.map((n,a)=>e[(t+a)%e.length])}var GM=kM,hre=_M,mre=TM,YM=RM,gre=LM,JM=DM,XM=PM,vre=FM,yre=HM,KM=UM,QM=BM,eA=$M;const xre=L.forwardRef(({className:e,children:t,...n},a)=>C.jsxs(GM,{ref:a,className:Ge("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,C.jsx(hre,{asChild:!0,children:C.jsx(KR,{className:"h-4 w-4 opacity-50"})})]}));xre.displayName=GM.displayName;const tA=L.forwardRef(({className:e,...t},n)=>C.jsx(KM,{ref:n,className:Ge("flex cursor-default items-center justify-center py-1",e),...t,children:C.jsx(Jte,{className:"h-4 w-4"})}));tA.displayName=KM.displayName;const nA=L.forwardRef(({className:e,...t},n)=>C.jsx(QM,{ref:n,className:Ge("flex cursor-default items-center justify-center py-1",e),...t,children:C.jsx(KR,{className:"h-4 w-4"})}));nA.displayName=QM.displayName;const wre=L.forwardRef(({className:e,children:t,position:n="popper",...a},i)=>C.jsx(mre,{children:C.jsxs(YM,{ref:i,className:Ge("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-select-content-transform-origin]",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...a,children:[C.jsx(tA,{}),C.jsx(gre,{className:Ge("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),C.jsx(nA,{})]})}));wre.displayName=YM.displayName;const bre=L.forwardRef(({className:e,...t},n)=>C.jsx(JM,{ref:n,className:Ge("px-2 py-1.5 text-sm font-semibold",e),...t}));bre.displayName=JM.displayName;const Cre=L.forwardRef(({className:e,children:t,...n},a)=>C.jsxs(XM,{ref:a,className:Ge("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[C.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:C.jsx(yre,{children:C.jsx(Yte,{className:"h-4 w-4"})})}),C.jsx(vre,{children:t})]}));Cre.displayName=XM.displayName;const Sre=L.forwardRef(({className:e,...t},n)=>C.jsx(eA,{ref:n,className:Ge("-mx-1 my-1 h-px bg-muted",e),...t}));Sre.displayName=eA.displayName;const rA=L.forwardRef(({className:e,...t},n)=>C.jsx("textarea",{className:Ge("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...t}));rA.displayName="Textarea";const kre=({className:e,...t})=>C.jsx("form",{className:Ge("w-full overflow-hidden rounded-[10px] border bg-background shadow-xs",e),...t}),Ere=L.forwardRef(({onChange:e,className:t,placeholder:n="What would you like to know?",minHeight:a=50,maxHeight:i=164,disableAutoResize:l=!1,resizeOnNewLinesOnly:u=!1,...f},h)=>{const g=x=>{if(x.key==="Enter"){if(x.nativeEvent.isComposing||x.shiftKey)return;x.preventDefault();const y=x.currentTarget.form;y&&y.requestSubmit()}};return C.jsx(rA,{className:Ge("w-full resize-none rounded-none border-none shadow-none outline-hidden ring-0",l||u?"field-sizing-fixed":"field-sizing-content max-h-[6lh]","bg-transparent dark:bg-transparent","focus-visible:ring-0",t),name:"message",onChange:x=>{e==null||e(x)},ref:h,onKeyDown:g,placeholder:n,...f})}),_re=({className:e,...t})=>C.jsx("div",{className:Ge("flex items-center justify-between p-1",e),...t}),Tre=({className:e,...t})=>C.jsx("div",{className:Ge("flex items-center gap-1","[&_button:first-child]:rounded-bl-xl",e),...t}),Rre=e=>{const t=Xte,n=Qte,a=Kte;return e===void 0?C.jsx(a,{className:"size-4"}):{submitted:C.jsx(t,{className:"size-4 animate-spin"}),streaming:C.jsx(hq,{}),error:C.jsx(n,{className:"size-4"}),ready:C.jsx(a,{className:"size-4"})}[e]||C.jsx(a,{className:"size-4"})},Mre=({className:e,variant:t="default",size:n="icon",status:a,children:i,...l})=>{let u=Rre(a);return C.jsx(bo,{className:Ge("gap-1.5 rounded-full",e),size:n,type:"submit",variant:t,...l,children:i!=null?i:u})},Are=({size:e=16})=>C.jsx("svg",{height:e,strokeLinejoin:"round",style:{color:"currentcolor"},viewBox:"0 0 16 16",width:e,children:C.jsx("path",{clipRule:"evenodd",d:"M14.5 13.5V6.5V5.41421C14.5 5.149 14.3946 4.89464 14.2071 4.70711L9.79289 0.292893C9.60536 0.105357 9.351 0 9.08579 0H8H3H1.5V1.5V13.5C1.5 14.8807 2.61929 16 4 16H12C13.3807 16 14.5 14.8807 14.5 13.5ZM13 13.5V6.5H9.5H8V5V1.5H3V13.5C3 14.0523 3.44772 14.5 4 14.5H12C12.5523 14.5 13 14.0523 13 13.5ZM9.5 5V2.12132L12.3787 5H9.5ZM5.13 5.00062H4.505V6.25062H5.13H6H6.625V5.00062H6H5.13ZM4.505 8H5.13H11H11.625V9.25H11H5.13H4.505V8ZM5.13 11H4.505V12.25H5.13H11H11.625V11H11H5.13Z",fill:"currentColor",fillRule:"evenodd"})}),Nre=({size:e=16})=>C.jsxs("svg",{height:e,strokeLinejoin:"round",style:{color:"currentcolor"},viewBox:"0 0 16 16",width:e,children:[C.jsxs("g",{clipPath:"url(#clip0_2393_1490)",children:[C.jsx("path",{d:"M8 0V4",stroke:"currentColor",strokeWidth:"1.5"}),C.jsx("path",{d:"M8 16V12",opacity:"0.5",stroke:"currentColor",strokeWidth:"1.5"}),C.jsx("path",{d:"M3.29773 1.52783L5.64887 4.7639",opacity:"0.9",stroke:"currentColor",strokeWidth:"1.5"}),C.jsx("path",{d:"M12.7023 1.52783L10.3511 4.7639",opacity:"0.1",stroke:"currentColor",strokeWidth:"1.5"}),C.jsx("path",{d:"M12.7023 14.472L10.3511 11.236",opacity:"0.4",stroke:"currentColor",strokeWidth:"1.5"}),C.jsx("path",{d:"M3.29773 14.472L5.64887 11.236",opacity:"0.6",stroke:"currentColor",strokeWidth:"1.5"}),C.jsx("path",{d:"M15.6085 5.52783L11.8043 6.7639",opacity:"0.2",stroke:"currentColor",strokeWidth:"1.5"}),C.jsx("path",{d:"M0.391602 10.472L4.19583 9.23598",opacity:"0.7",stroke:"currentColor",strokeWidth:"1.5"}),C.jsx("path",{d:"M15.6085 10.4722L11.8043 9.2361",opacity:"0.3",stroke:"currentColor",strokeWidth:"1.5"}),C.jsx("path",{d:"M0.391602 5.52783L4.19583 6.7639",opacity:"0.8",stroke:"currentColor",strokeWidth:"1.5"})]}),C.jsx("defs",{children:C.jsx("clipPath",{id:"clip0_2393_1490",children:C.jsx("rect",{fill:"white",height:"16",width:"16"})})})]}),Lre=({size:e=16})=>C.jsx("svg",{height:e,strokeLinejoin:"round",style:{color:"currentcolor"},viewBox:"0 0 16 16",width:e,children:C.jsx("path",{clipRule:"evenodd",d:"M9.96966 11.0303L10.5 11.5607L11.5607 10.5L11.0303 9.96966L9.06065 7.99999L11.0303 6.03032L11.5607 5.49999L10.5 4.43933L9.96966 4.96966L7.99999 6.93933L6.03032 4.96966L5.49999 4.43933L4.43933 5.49999L4.96966 6.03032L6.93933 7.99999L4.96966 9.96966L4.43933 10.5L5.49999 11.5607L6.03032 11.0303L7.99999 9.06065L9.96966 11.0303Z",fill:"currentColor",fillRule:"evenodd"})}),Ore=({size:e=16})=>C.jsx("svg",{height:e,strokeLinejoin:"round",style:{color:"currentcolor"},viewBox:"0 0 16 16",width:e,children:C.jsx("path",{clipRule:"evenodd",d:"M12.0607 6.74999L11.5303 7.28032L8.7071 10.1035C8.31657 10.4941 7.68341 10.4941 7.29288 10.1035L4.46966 7.28032L3.93933 6.74999L4.99999 5.68933L5.53032 6.21966L7.99999 8.68933L10.4697 6.21966L11 5.68933L12.0607 6.74999Z",fill:"currentColor",fillRule:"evenodd"})}),Ire=({className:e,size:t=16,...n})=>C.jsx("div",{className:Ge("inline-flex animate-spin items-center justify-center",e),...n,children:C.jsx(Nre,{size:t})}),aA=({attachment:e,isUploading:t=!1,onRemove:n})=>{const{name:a,url:i,contentType:l}=e;return C.jsxs("div",{className:"group relative size-16 overflow-hidden rounded-lg border bg-muted","data-testid":"input-attachment-preview",children:[l!=null&&l.startsWith("image")?C.jsx("img",{alt:a!=null?a:"An image attachment",className:"size-full object-cover",height:64,src:i,width:64}):C.jsx("div",{className:"flex size-full items-center justify-center text-muted-foreground text-xs",children:C.jsx(Are,{size:24})}),t&&C.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-black/50","data-testid":"input-attachment-loader",children:C.jsx(Ire,{size:16})}),n&&!t&&C.jsx(bo,{className:"absolute top-0.5 right-0.5 size-4 rounded-full p-0 opacity-0 transition-opacity group-hover:opacity-100",onClick:n,size:"sm",variant:"destructive",children:C.jsx(Lre,{size:8})}),C.jsx("div",{className:"absolute inset-x-0 bottom-0 truncate bg-linear-to-t from-black/80 to-transparent px-1 py-0.5 text-[10px]",children:a})]})},Dre=({setMessages:e,status:t})=>{const{exec:n=()=>{}}=b1("onBeforeMessagesClear"),a=L.useCallback(()=>{n(null),e(()=>[])},[n,e]),{clearTimestamp:i}=Zl(l=>({clearTimestamp:l.msgClearTimestamp}));return L.useEffect(()=>{i&&a()},[i]),C.jsx(Cd,{rounded:!0,icon:C.jsx(uq,{}),disabled:t!=="ready",onClick:l=>{l.preventDefault(),a()}})};function jre({chatId:e,input:t,setInput:n,status:a,stop:i,attachments:l,setAttachments:u,fileUploadEndpoint:f,setMessages:h,sendMessage:g,className:x}){var G;const y=L.useRef(null),k=L.useCallback(()=>{y.current&&(y.current.style.height="44px")},[]);L.useEffect(()=>{y.current&&k()},[k]);const b=L.useCallback(()=>{y.current&&(y.current.style.height="44px")},[]);L.useEffect(()=>{if(y.current){const ye=y.current.value||"";n(ye),k()}},[k,n]);const T=ae=>{n(ae.target.value)},R=L.useRef(null),[N,O]=L.useState([]),{exec:P}=b1("onBeforeMessageSend"),z=((G=ny())==null?void 0:G.placeholder)||"Send a message...",j=L.useCallback(()=>{const ae=P({text:t,options:{body:{stage:"design",name:t}}});g({role:"user",parts:[...l.map(ye=>({type:"file",url:ye.url,name:ye.name,mediaType:ye.contentType,providerMetadata:{uploadMetadata:ye}})),{type:"text",text:t}]},ae.options),u([]),b(),n("")},[t,n,l,g,u,e,b]),V=L.useCallback(async ae=>{const ye=new FormData;ye.append("file",ae);try{const ce=await fetch(f,{method:"POST",body:ye});if(ce.ok){const ue=await ce.json();return console.log(ue),ue}const{error:he}=await ce.json();console.error("upload error",he)}catch(ce){}},[]),H=L.useCallback(async ae=>{const ye=Array.from(ae.target.files||[]);O(ye.map(ce=>ce.name));try{const ce=ye.map(Te=>V(Te)),he=await Promise.all(ce),ue=he.filter(Te=>Te!==void 0);console.log("uploaded attachements",he),u(Te=>[...Te,...ue])}catch(ce){console.error("Error uploading files!",ce)}finally{O([])}},[u,V]),W=L.useCallback(async ae=>{var he;const ye=(he=ae.clipboardData)==null?void 0:he.items;if(!ye)return;const ce=Array.from(ye).filter(ue=>ue.type.startsWith("image/"));if(ce.length!==0){ae.preventDefault(),O(ue=>[...ue,"Pasted image"]);try{const ue=ce.map(Ee=>Ee.getAsFile()).filter(Ee=>Ee!==null).map(Ee=>V(Ee)),ke=(await Promise.all(ue)).filter(Ee=>Ee!==void 0&&Ee.url!==void 0&&Ee.contentType!==void 0);u(Ee=>[...Ee,...ke])}catch(ue){console.error("Error uploading pasted images:",ue)}finally{O([])}}},[u,V]);return L.useEffect(()=>{const ae=y.current;if(ae)return ae.addEventListener("paste",W),()=>ae.removeEventListener("paste",W)},[W]),C.jsxs("div",{className:Ge("relative flex w-full flex-col gap-4",x),children:[C.jsx("input",{className:"-top-4 -left-4 pointer-events-none fixed size-0.5 opacity-0",multiple:!0,onChange:H,ref:R,tabIndex:-1,type:"file"}),C.jsxs(kre,{className:"border border-[#e0e0e0] bg-background p-[10px] shadow-xs transition-all duration-200 focus-within:border-border hover:border-[#0265ff]",onSubmit:ae=>{ae.preventDefault(),a!=="ready"||j()},children:[(l.length>0||N.length>0)&&C.jsxs("div",{className:"flex flex-row items-end gap-2 overflow-x-scroll","data-testid":"attachments-preview",children:[l.map(ae=>C.jsx(aA,{attachment:ae,onRemove:()=>{u(ye=>ye.filter(ce=>ce.url!==ae.url)),R.current&&(R.current.value="")}},ae.url)),N.map(ae=>C.jsx(aA,{attachment:{url:"",name:ae,contentType:""},isUploading:!0},ae))]}),C.jsx("div",{className:"flex flex-row items-start gap-1 sm:gap-2",children:C.jsx(Ere,{className:"grow resize-none border-0! border-none! bg-transparent p-0 text-base outline-none ring-0 [-ms-overflow-style:none] [scrollbar-width:none] placeholder:text-[#999] focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 [&::-webkit-scrollbar]:hidden text-[#12111]","data-testid":"multimodal-input",disableAutoResize:!0,maxHeight:200,minHeight:44,onChange:T,placeholder:z,ref:y,rows:1,value:t})}),C.jsxs(_re,{className:"border-top-0! border-t-0! p-0 shadow-none dark:border-0 dark:border-transparent!",children:[C.jsx("div",{}),C.jsxs(Tre,{className:"gap-2.5",children:[C.jsx(zre,{fileInputRef:R,status:a}),C.jsx(Dre,{setMessages:h,status:a}),C.jsx(fq,{}),a==="submitted"||a==="streaming"?C.jsx(Ure,{setMessages:h,stop:i}):C.jsx(Mre,{className:"cursor-pointer rounded-full bg-[#0265FF] text-primary-foreground transition-colors duration-200 hover:bg-[#0265FF]/90 disabled:bg-[#E5E6EB] disabled:text-white h-[26px] w-[26px] disabled:opacity-100","data-testid":"send-button",disabled:!t.trim()||N.length>0,status:a,children:C.jsx(lq,{})})]})]})]})]})}const Pre=L.memo(jre,(e,t)=>!(e.input!==t.input||e.status!==t.status||!Vte(e.attachments,t.attachments)));function Fre({fileInputRef:e,status:t}){return C.jsx(Cd,{rounded:!0,icon:C.jsx(pq,{}),disabled:t!=="ready",onClick:n=>{var a;n.preventDefault(),(a=e.current)==null||a.click()}})}const zre=L.memo(Fre);function Hre({stop:e,setMessages:t}){return C.jsx(bo,{className:"cursor-pointer rounded-full bg-[#0265FF] text-primary-foreground transition-colors duration-200 hover:bg-[#0265FF]/90 disabled:bg-[#E5E6EB] disabled:text-white h-[26px] w-[26px] flex items-center justify-center aspect-square p-0 disabled:!opacity-100",onClick:n=>{n.preventDefault(),e(),t(a=>a)},children:C.jsx("div",{className:"rounded-[2px] w-[8px] h-[8px] bg-white flex-shrink-0"})})}const Ure=L.memo(Hre);function Bre(e,t){if(typeof e!="function")throw new TypeError(`Expected the first argument to be a \`function\`, got \`${typeof e}\`.`);let n,a=0;return function(...l){clearTimeout(n);const u=Date.now(),f=u-a,h=t-f;h<=0?(a=u,e.apply(this,l)):n=setTimeout(()=>{a=Date.now(),e.apply(this,l)},h)}}var Vre=Bre;const $re=Wu(Vre);var oA=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},vr=(e,t,n)=>(oA(e,t,"read from private field"),n?n.call(e):t.get(e)),ol=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},uc=(e,t,n,a)=>(oA(e,t,"write to private field"),t.set(e,n),n);function Zre(e,t){return t!=null?$re(e,t):e}var zi,lg,ug,vm,ym,xm,O1,g6,v6,Wre=class{constructor(e=[]){ol(this,zi,void 0),ol(this,lg,"ready"),ol(this,ug,void 0),ol(this,vm,new Set),ol(this,ym,new Set),ol(this,xm,new Set),this.pushMessage=t=>{uc(this,zi,vr(this,zi).concat(t)),vr(this,O1).call(this)},this.popMessage=()=>{uc(this,zi,vr(this,zi).slice(0,-1)),vr(this,O1).call(this)},this.replaceMessage=(t,n)=>{uc(this,zi,[...vr(this,zi).slice(0,t),this.snapshot(n),...vr(this,zi).slice(t+1)]),vr(this,O1).call(this)},this.snapshot=t=>structuredClone(t),this["~registerMessagesCallback"]=(t,n)=>{const a=n?Zre(t,n):t;return vr(this,vm).add(a),()=>{vr(this,vm).delete(a)}},this["~registerStatusCallback"]=t=>(vr(this,ym).add(t),()=>{vr(this,ym).delete(t)}),this["~registerErrorCallback"]=t=>(vr(this,xm).add(t),()=>{vr(this,xm).delete(t)}),ol(this,O1,()=>{vr(this,vm).forEach(t=>t())}),ol(this,g6,()=>{vr(this,ym).forEach(t=>t())}),ol(this,v6,()=>{vr(this,xm).forEach(t=>t())}),uc(this,zi,e)}get status(){return vr(this,lg)}set status(e){uc(this,lg,e),vr(this,g6).call(this)}get error(){return vr(this,ug)}set error(e){uc(this,ug,e),vr(this,v6).call(this)}get messages(){return vr(this,zi)}set messages(e){uc(this,zi,[...e]),vr(this,O1).call(this)}};zi=new WeakMap,lg=new WeakMap,ug=new WeakMap,vm=new WeakMap,ym=new WeakMap,xm=new WeakMap,O1=new WeakMap,g6=new WeakMap,v6=new WeakMap;var I1,iA=class extends qZ{constructor({messages:t,...n}){const a=new Wre(t);super({...n,state:a}),ol(this,I1,void 0),this["~registerMessagesCallback"]=(i,l)=>vr(this,I1)["~registerMessagesCallback"](i,l),this["~registerStatusCallback"]=i=>vr(this,I1)["~registerStatusCallback"](i),this["~registerErrorCallback"]=i=>vr(this,I1)["~registerErrorCallback"](i),uc(this,I1,a)}};I1=new WeakMap;function sA({experimental_throttle:e,resume:t=!1,...n}={}){const a=L.useRef("chat"in n?n.chat:new iA(n));("chat"in n&&n.chat!==a.current||"id"in n&&a.current.id!==n.id)&&(a.current="chat"in n?n.chat:new iA(n));const l=L.useCallback(x=>a.current["~registerMessagesCallback"](x,e),[e,a.current.id]),u=L.useSyncExternalStore(l,()=>a.current.messages,()=>a.current.messages),f=L.useSyncExternalStore(a.current["~registerStatusCallback"],()=>a.current.status,()=>a.current.status),h=L.useSyncExternalStore(a.current["~registerErrorCallback"],()=>a.current.error,()=>a.current.error),g=L.useCallback(x=>{typeof x=="function"&&(x=x(a.current.messages)),a.current.messages=x},[a]);return L.useEffect(()=>{t&&a.current.resumeStream()},[t,a]),{id:a.current.id,messages:u,setMessages:g,sendMessage:a.current.sendMessage,regenerate:a.current.regenerate,clearError:a.current.clearError,stop:a.current.stop,error:h,resumeStream:a.current.resumeStream,status:f,addToolResult:a.current.addToolOutput,addToolOutput:a.current.addToolOutput}}function qre(e){const t=new Map,n=[],a=i=>i.parts.filter(l=>{if(l.type==="text"){const u=l.text;return u&&u.trim()!==""}return l.type!=="step-start"});for(const i of e)if(t.has(i.id)){const l=t.get(i.id);t.set(i.id,{...l,parts:[...a(l),...a(i)]})}else n.push(i.id),t.set(i.id,{...i,parts:a(i)});return n.map(i=>t.get(i)).filter(i=>i.parts.length>0)}function Gre(e){const t=sA(e);if(!(e!=null&&e.enableMerge))return t;const n=L.useMemo(()=>qre(t.messages),[t.messages]);return{...t,messages:n}}const Ql=()=>{const{eventBus:e}=Zl(t=>({eventBus:t.eventBus}));return e},Yre=(e,t)=>{const n=Ql();L.useEffect(()=>{n.emit("chat-msg-status-change",{messageId:e,status:t})},[e,t])},cg=(e,t)=>{const n=Ql();L.useEffect(()=>{const a=i=>t(i);return n.on(e,a),()=>{n.off(e,a)}},[e,t])},Jre=({client:e})=>{var H,W;const t=ny(e),{exec:n=()=>{}}=b1("onAfterChatAreaHide"),a=L.useMemo(()=>{var G;return new E5({api:(G=e==null?void 0:e.options)==null?void 0:G.chatApiEndpoint,headers:()=>{var ae;return{...(ae=e==null?void 0:e.options)==null?void 0:ae.chatApiHeaders}}})},[(H=e==null?void 0:e.options)==null?void 0:H.chatApiEndpoint,(W=e==null?void 0:e.options)==null?void 0:W.chatApiHeaders]),{messages:i,sendMessage:l,status:u,id:f,setMessages:h,stop:g,addToolOutput:x,regenerate:y}=Gre({transport:a,enableMerge:t==null?void 0:t.enableMessageMerge});cg("send-ghost-msg",G=>{const{text:ae,options:ye}=G;l({text:ae},ye)});const{isHide:k}=Jy();L.useEffect(()=>{k&&(g(),n({clearMsgs:()=>{h(()=>[])}}))},[k,g]);const[b,T]=L.useState(""),[R,N]=L.useState([]),O=h1("MessageInputTopSlot"),P=O==null?void 0:O.Component,z=C.jsx(Pre,{fileUploadEndpoint:e.options.fileUploadEndPoint,attachments:R,chatId:f,input:b,messages:i,sendMessage:l,setAttachments:N,setInput:T,setMessages:h,status:u,stop:g}),j=P?C.jsx(P,{}):null,V=P?C.jsxs("div",{className:"flex flex-col gap-[12px]",children:[j,z]}):z;return Yre(f,u),L.useEffect(()=>()=>{g()},[]),C.jsx(YZ,{messagesArea:C.jsx(Ute,{regenerate:y,status:u,messages:i,setMessages:h,sendMessage:l,addToolOutput:x}),inputArea:V})},dg=({children:e,className:t,minimal:n,entryVariant:a="default",icon:i,...l})=>{const u={default:"relative overflow-hidden bg-[linear-gradient(180deg,#DBE9FF_0%,#E9FFFD_100%)] h-[30px] hover:text-white before:content-[''] before:absolute before:inset-0 before:z-0 before:bg-[linear-gradient(180deg,#267AFF_0%,#B2EEFF_100%)] before:opacity-0 hover:before:opacity-100 before:transition-opacity before:duration-200 before:ease-out font-[500] text-[#0265ff]",ghost:"bg-transparent text-[#030303] font-[400] px-[10px] hover:bg-[#EFF0F6] h-[34px]",selected:"bg-[#EFF0F6] text-[#030303] font-[400] px-[10px]"};return C.jsx(bo,{...l,variant:"entry",size:"entry",className:Ge("rounded-[4px] cursor-pointer",Xa,u[a],t),children:C.jsxs("span",{className:"relative z-10 inline-flex items-center gap-1.5",children:[i!=null?i:C.jsx(e_,{}),n?null:e]})})},fg=({id:e,style:t="",rootEl:n,containerClasses:a=[],wrapperClasses:i=[],wrapperStyle:l={},extraHtml:u=""})=>{const[f,h]=L.useState(null),g=L.useRef(null);return L.useEffect(()=>{var x;(x=g.current)==null||x.classList.add(...i),f==null||f.classList.add(...a)},[i,a]),L.useEffect(()=>{g.current&&Object.entries(l).forEach(([x,y])=>{y!==void 0&&(g.current.style[x]=y)})},[l]),L.useEffect(()=>{g.current&&g.current.parentNode&&(g.current.parentNode.removeChild(g.current),g.current=null);try{const x=document.createElement("div");x.classList.add(...i,"wrapper"),g.current=x,Object.entries(l).forEach(([T,R])=>{R!==void 0&&(x.style[T]=R)});const y=x.attachShadow({mode:"open"});if(u&&(y.innerHTML=u),t){const T=document.createElement("style");T.textContent=t,y.appendChild(T)}const k=document.createElement("div");k.classList.add(...a,"shadow-container"),y.appendChild(k),(n||document.body).appendChild(x),h(k)}catch(x){console.error("创建Shadow DOM失败:",x),h(null)}},[n]),f&&(f.id=e),{shadowContainer:f,destroy:()=>{g.current&&g.current.parentNode&&(g.current.parentNode.removeChild(g.current),g.current=null)}}},Xre=({avatar:e,width:t,onDockClick:n,onCloseClick:a,draggable:i,isDragging:l,isDocked:u,onDragStart:f})=>C.jsxs("div",{className:Ge("flex items-center justify-between","px-4","h-[52px] min-w-[200px]",{"w-full":!t,[`w-[${t}px]`]:t,"cursor-grab":i&&!l,"cursor-grabbing":l}),style:{backgroundImage:aq,backgroundSize:"cover",backgroundRepeat:"no-repeat"},onMouseDown:i?f:void 0,children:[e,C.jsxs("div",{className:"actions flex items-center gap-2.5 text-[#666]",children:[C.jsx(Cd,{tooltip:u?"悬浮":"停靠",className:"hover:!bg-[#ffffff]",icon:u?C.jsx(iq,{}):C.jsx(oq,{}),onClick:n}),C.jsx(Cd,{tooltip:"关闭",className:"hover:!bg-[#ffffff]",icon:C.jsx(sq,{}),onClick:a})]})]}),Kre={bottom:10,right:10};function Qre(e={}){const{enabled:t=!0,initialPosition:n=Kre,onPositionChange:a}=e,i=L.useMemo(()=>n,[n.bottom,n.right]),[l,u]=L.useState(i),[f,h]=L.useState(!1),g=L.useRef(a);g.current=a;const x=L.useRef({isDragging:!1,startX:0,startY:0,startBottom:0,startRight:0}),y=L.useRef(null),k=L.useCallback(()=>{var T;u(i),(T=g.current)==null||T.call(g,i)},[i]),b=L.useCallback(T=>{if(!t)return;T.preventDefault(),T.stopPropagation(),x.current={isDragging:!0,startX:T.clientX,startY:T.clientY,startBottom:l.bottom,startRight:l.right},h(!0),document.body.style.userSelect="none",document.body.style.cursor="grabbing";const R=O=>{x.current.isDragging&&(y.current!==null&&cancelAnimationFrame(y.current),y.current=requestAnimationFrame(()=>{var V;const P=O.clientX-x.current.startX,z=O.clientY-x.current.startY,j={right:Math.max(10,x.current.startRight-P),bottom:Math.min(x.current.startBottom-z,10)};u(j),(V=g.current)==null||V.call(g,j)}))},N=()=>{x.current.isDragging=!1,h(!1),document.body.style.userSelect="",document.body.style.cursor="",y.current!==null&&(cancelAnimationFrame(y.current),y.current=null),document.removeEventListener("mousemove",R),document.removeEventListener("mouseup",N)};document.addEventListener("mousemove",R),document.addEventListener("mouseup",N)},[t,l]);return L.useEffect(()=>()=>{y.current!==null&&cancelAnimationFrame(y.current),document.body.style.userSelect="",document.body.style.cursor=""},[]),{position:l,isDragging:f,handleDragStart:b,resetPosition:k}}const eae=({client:e})=>{var T,R;const{setStatus:t,isVisible:n,isFloat:a,isDock:i}=Jy(),{position:l,isDragging:u,handleDragStart:f,resetPosition:h}=Qre({enabled:a,initialPosition:{bottom:10,right:10}});L.useEffect(()=>{i&&h()},[i,h]);const g=Ge({"fixed z-50 rounded-lg":a,"shadow-lg":a&&!u,"shadow-2xl scale-[1.01] transition-shadow":a&&u,hidden:!n,"static w-full h-full shadow-md":i}),x=h1("AvatarAndName"),y=x==null?void 0:x.Component,k=y?C.jsx(y,{variant:"active"}):C.jsx(Wh,{name:"AI表单搭建",variant:"active"}),b=a?{width:354,height:"calc(100% - 20px)",bottom:`${l.bottom}px`,right:`${l.right}px`,zIndex:(R=(T=e==null?void 0:e.options)==null?void 0:T.safeZIndex)!=null?R:1}:{};return C.jsxs("div",{className:Ge("bg-white flex flex-col overflow-hidden",g),style:b,children:[C.jsx(Xre,{onDockClick:()=>{t(a?"dock":"float")},isDocked:i,avatar:k,onCloseClick:()=>{t("hide")},draggable:a,isDragging:u,onDragStart:f}),C.jsx(Jre,{client:e})]})},tae=({client:e})=>{var u,f,h;const{isVisible:t,container:n}=Zl(g=>({isVisible:g.chatStatus!=="hide",container:g.chatAreaContainer})),a=["h-full","w-full"],i={height:"100%",width:"100%"},{shadowContainer:l}=fg({id:"chat-sdk-content",style:((u=e==null?void 0:e.options)==null?void 0:u.style)||"",rootEl:n||((f=e==null?void 0:e.options)==null?void 0:f.el)||document.body,containerClasses:t?a:[],wrapperClasses:t?a:[],wrapperStyle:t?i:{},extraHtml:((h=e==null?void 0:e.options)==null?void 0:h.extraHtml)||""});return l?$l.createPortal(C.jsx(eae,{client:e}),l):null},nae=({client:e})=>{var R,N,O;const{bottom:t=10,right:n=10}=((R=e==null?void 0:e.options)==null?void 0:R.btnOffset)||{},{entryVisible:a,entryWrapper:i,setStatus:l,isVisible:u,entryVariant:f}=Zl(P=>({setStatus:P.setChatStatus,entryVariant:P.chatEntryVariant,entryWrapper:P.chatEntryElWrapper,isVisible:P.chatStatus!=="hide",entryVisible:P.chatEntryVisible})),h=!!i,g=h1("EntryButton"),x=g==null?void 0:g.Component,y=h?{cursor:"pointer"}:{position:"fixed",cursor:"pointer",bottom:t,right:n,zIndex:(N=e==null?void 0:e.options)==null?void 0:N.safeZIndex},k=x?C.jsx(x,{client:e,variant:f,chatVisible:u,style:y,onClick:()=>{l("dock")}}):C.jsx(dg,{style:y,minimal:u,onClick:()=>{l("dock")},children:"AI助手"}),{shadowContainer:b,destroy:T}=fg({id:"chat-sdk-entry",rootEl:i,containerClasses:["inline-flex"],wrapperClasses:["inline-flex","flex","items-center"],style:((O=e==null?void 0:e.options)==null?void 0:O.style)||""});return a?h?b?$l.createPortal(k,b):null:(T(),k):null},rae=({client:e,config:t})=>{var k,b;const{setStatus:n,isVisible:a}=Zl(T=>({setStatus:T.setChatStatus,isVisible:T.chatStatus!=="hide"})),i=h1("EntryButton"),l=i==null?void 0:i.Component,u=!!t.wrapperEl,f=u?{cursor:"pointer"}:{position:"fixed",cursor:"pointer",zIndex:(k=e==null?void 0:e.options)==null?void 0:k.safeZIndex},h=()=>{n("dock")},g=l?C.jsx(l,{client:e,variant:t.variant,chatVisible:a,style:f,onClick:h}):C.jsx(dg,{style:f,minimal:a,onClick:h,children:"AI助手"}),{shadowContainer:x,destroy:y}=fg({id:`chat-sdk-entry-${t.id}`,rootEl:t.wrapperEl,containerClasses:["inline-flex"],wrapperClasses:["inline-flex"],style:((b=e==null?void 0:e.options)==null?void 0:b.style)||""});return t.visible?u?x?$l.createPortal(g,x):null:(y(),g):null},aae=({client:e})=>{const t=Zl(a=>a.chatEntryButtons),n=Array.from(t.values());return n.length===0?null:C.jsx(C.Fragment,{children:n.map(a=>C.jsx(rae,{client:e,config:a},a.id))})},oae=({client:e})=>C.jsxs(C.Fragment,{children:[C.jsx(tae,{client:e}),C.jsx(nae,{client:e}),C.jsx(aae,{client:e})]}),iae=({store:e,client:t})=>C.jsx(sj,{store:e,children:C.jsx(Y_,{children:C.jsx(oae,{client:t})})});class sae{constructor(){qe(this,"events",new Map)}on(t,n){return this.events.has(t)||this.events.set(t,[]),this.events.get(t).push(n),this}off(t,n){const a=this.events.get(t);if(!a)return this;const i=a.indexOf(n);return i>-1&&a.splice(i,1),this}emit(t,n){const a=this.events.get(t);return!a||a.length===0?!1:(a.slice().forEach(i=>{try{i(n)}catch(l){console.error(`Error in event handler for "${String(t)}":`,l)}}),!0)}once(t,n){const a=i=>{n(i),this.off(t,a)};return this.on(t,a)}listenerCount(t){var n,a;return(a=(n=this.events.get(t))==null?void 0:n.length)!=null?a:0}eventNames(){return Array.from(this.events.keys())}removeAllListeners(t){return t?this.events.delete(t):this.events.clear(),this}listeners(t){var n,a;return(a=(n=this.events.get(t))==null?void 0:n.slice())!=null?a:[]}}class lae extends sae{}const F1=class F1{constructor(t){qe(this,"root");qe(this,"Store");qe(this,"options");qe(this,"eventBus",new lae);this.options=t;const n=document.createElement("div");document.body.appendChild(n),n.id=`bs-chat-sdk-inst-root-${Date.now()}`,this.options.style+=__SDK_STYLES__,this.Store=GD(this),YD(this.Store,this.options),this.initPlugins(),this.root=M4(n),this.root.render(C.jsx(iae,{client:this,store:this.Store})),F1.instances.push(this)}diposePlugins(){this.Store.getState().chatAreaPluginInstList.forEach(n=>{typeof n.dispose=="function"&&(n.dispose(),n.Context={})})}initPlugins(){var n;if(!this.options||!((n=this.options.plugins)!=null&&n.length))return;const t=this.options.plugins.map(a=>{var u;const i=a.createContext(),l=new a.Plugin(i);return(u=l.init)==null||u.call(l,this),l});this.Store.getState().setChatAreaPluginInstList(t)}getPluginCtx(t){var a;const n=this.Store.getState().chatAreaPluginInstList.find(i=>i.pluginName===t);return n?(a=n.getReadonlyContext)==null?void 0:a.call(n):void 0}getPluginMethod(t,n){const a=this.Store.getState().chatAreaPluginInstList.find(i=>i.pluginName===t);if(a&&typeof a[n]=="function")return a[n]}clearChatHistory(){this.Store.getState().clearMessages()}getFullStyle(){return this.options.style}showChatArea(t,n){t?this.dockChatArea(n):this.Store.getState().setChatStatus("float")}setAuthToken(t){var a;((a=this.options.chatApiHeaders)==null?void 0:a.Authorization)!==`Bearer ${t}`&&(this.options.chatApiHeaders={...this.options.chatApiHeaders,Authorization:`Bearer ${t}`})}setUserId(t){this.options.chatApiHeaders={...this.options.chatApiHeaders,"X-User-Id":t}}getChatStatus(){return this.Store.getState().chatStatus}isChatVisible(){return this.Store.getState().chatStatus!=="hide"}hideChatArea(){this.Store.getState().setChatStatus("hide")}dockChatArea(t){const n=this.Store.getState().chatAreaContainer;t===n&&this.Store.getState().chatStatus==="dock"||(this.Store.getState().setChatEntryVisible(!1),this.Store.getState().setChatAreaContainer(t),this.Store.getState().setChatStatus("dock"))}undockChatArea(){this.Store.getState().setChatAreaContainer(void 0),this.Store.getState().setChatEntryVisible(!0),this.Store.getState().setChatStatus("float")}isChatFloat(){return this.Store.getState().chatStatus==="float"}isChatDocked(){return this.Store.getState().chatStatus==="dock"}showChatEntryButton(t,n="default",a){a?this.upsertChatEntryButton(a,t,n):(this.Store.getState().setChatEntryVariant(n),this.Store.getState().setChatEntryVisible(!0,t))}hideChatEntryButton(t){t?this.Store.getState().setChatEntryButtonVisible(t,!1):this.Store.getState().setChatEntryVisible(!1)}upsertChatEntryButton(t,n,a="default"){this.Store.getState().upsertChatEntryButton({id:t,visible:!0,variant:a,wrapperEl:n})}removeChatEntryButton(t){this.Store.getState().removeChatEntryButton(t)}destroy(){this.diposePlugins(),this.eventBus.removeAllListeners(),F1.instances=F1.instances.filter(t=>t!==this)}};qe(F1,"instances",[]);let y6=F1;const uae=({children:e,onClick:t,disabled:n=!1,className:a})=>C.jsx("div",{className:Ge("relative rounded-[6px] p-[1px] cursor-pointer h-[34px] flex items-center justify-center","bg-gradient-to-b from-[#84B4FF] to-[#B1FAFF]",a),style:{background:"linear-gradient(180deg, #84B4FF 0%, #B1FAFF 100%)"},children:C.jsx("button",{className:Ge("w-full h-[32px] px-[10px]","bg-white rounded-[5px]","flex items-center justify-center","text-[#0265ff] text-[14px]","cursor-pointer","transition-all duration-200","hover:bg-[#f5f9ff]","disabled:opacity-95 disabled:cursor-not-allowed"),onClick:t,disabled:n,children:e})}),cae=e=>C.jsx(uae,{className:"self-start",onClick:()=>{var t;(t=e.onSelect)==null||t.call(e,e.title)},children:e.description}),xs={CREATE_FORM:"form-builder-FormCreateConfirmed",CREATE_FORM_SUCCESS:"form-builder-FormCreateSuccess",UPDATE_FORM_INFO:"form-builder-FormInfoUpdated",SAVE_FIELDS:"form-builder-FieldsConfirmed",FIELD_CREATED:"form-builder-FieldCreated",FIELDS_CREATED_FINISH:"form-builder-FieldsCreatedFinish",FIELD_CHECK_UPDATE:"form-builder-FieldCheckedChanged"},dae=()=>{const[e,t]=L.useState(!1);return cg(xs.SAVE_FIELDS,()=>{t(!0)}),e},D1=e=>{const{pluginMap:t}=Zl(n=>({pluginMap:n.chatAreaPluginMap}));return t.get(e)},pg="McpFormBuilderPlugin",fae={mode:"tree",extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none"},dataloadmode:["add","cover"]};function lA(e,t){const n=e.match(t);return n?n[1]:""}function pae(e,t="表"){return e.endsWith(t)?e:e+t}function uA(e){if(!e)return"";const t=[/关联来源:(.*)表?,/,/关联(.*)表?/,/(从(.*)表?中查询)/,/来自(.*)表?/];for(const n of t){const a=lA(e,n);if(a)return pae(a)}return""}function hae(e){const t=e.split(`
|
|
533
|
-
`).filter(a=>a.trim()),n=[];return t.forEach(a=>{const[i,l,u,f,h=""]=a.split("|").map(N=>N.trim());if(!i||!l||!u||!f)return;const g=l.match(/类型:(.*)/),x=g?g[1]:"",y=u.match(/必填:(\w+)/),k=y?y[1]==="是":!1,b=f.match(/说明:(.+)/),T=b?b[1]:"",R=lA(h,/关系:(.+)/);n.push({fieldName:i,type:x,required:k,description:T,relationDesc:R})}),n}function mae(e){const t=new Map;return e.forEach(n=>{if(n.type==="关联查询"||n.type==="关联数据"){const a=uA(n.relationDesc)||uA(n.description),i=n.fieldName.match(/\d+\. (.*)/),l=i?i[1]:n.fieldName,u=l.split("-"),f=u.length>1?u[u.length-1]:l;t.set(f,{fieldName:f,targetFormName:a})}}),t}const gae=e=>({linkInfoMap:mae(hae(e)),formName:KW(e)}),Md=(e,t)=>!e||!e.widget?!1:e.widget.type===t,vae=e=>{var t,n;return Md(e,"subform")?((n=(t=e.widget)==null?void 0:t.items)==null?void 0:n.length)>0:!1},yae=e=>Md(e,"linkdata")||Md(e,"linkquery"),xae=e=>!e||!e.widget?!1:e.widget.type==="sn",wae=e=>!e||!e.widget?!1:e.widget.type==="text",bae=e=>e?e.linkInfoMap&&e.linkInfoMap.size>0:!1,Cae=(e,t)=>{const{isTargetForm:n,isTargetField:a,fieldProcessor:i,onFormProcessed:l}=t;let u;for(const[f,h]of e){if(u=!1,!n(f,h)){console.log("不是目标表单,不处理");continue}const g=h.designInfo.linkInfoMap;for(const[x,y]of g)if(a(x,y)){u=!0;const k=h.fieldMap.get(x),b=i(h,k,y);h.fieldMap.set(x,b)}u&&l(h)}},cA=(e="_widget",t)=>{const n=`${e}_${Date.now()}`;if(t===void 0)return n;const a=t.toString().length;return`${n.slice(0,-a)}${t}`},Sae=(e,t,n,a)=>{var f,h,g,x;if(!Md(e,"dataload"))return console.log("非数据加载字段,跳过处理",e),e;if(!t.targetFormName)return console.log("无关联信息,跳过处理",e),e;if(n.size===0)return console.log("无表单映射,跳过处理",e),e;const i=n.get(t.targetFormName);if(!i)return console.log("无表单映射,跳过处理",e),e.widget.loaddataconfig=fae,e;const l=((h=(f=e.widget)==null?void 0:f.loaddataconfig)==null?void 0:h.mapFields)||[],u=((x=(g=e.widget)==null?void 0:g.loaddataconfig)==null?void 0:x.fields)||[];if(!l||l.length===0||l.length!==u.length)return console.log("无映射字段,跳过处理",e),e;console.log("开始数据加载补全逻辑",e,i),e.widget.loaddataconfig.forms=i.formId;for(let y=0;y<l.length;y++){const k=l[y],b=u[y],T=k.depend.field,R=i.fieldMap.get(T);if(!R){console.log("未找到目标依赖字段,跳过处理该映射字段",k);continue}const N=cA("f",y);k.field=cA("_widget",y),k.depend.field=N,b.name=R.widget.widgetName,b.form=i.formId,b.tag=N}return console.log("数据加载字段信息已补全",e),a(e),e},dA=(e,t,n,a)=>{if(console.log(e,t,n),!yae(e))return console.log("非关联字段,跳过处理",e),e;if(!t.targetFormName)return console.log("无关联信息,跳过处理",e),e;if(n.size===0)return console.log("无表单映射,跳过处理",e),e;const i=n.get(t.targetFormName);if(!i)return console.log("未找到目标表单,跳过处理",e),e;try{e.widget.refAppId=i.appId,e.widget.linkForm=i.formId}catch(f){return console.error("尝试建立表单关联失败"),e}const l=i.fields.find(xae);if(!l)return console.log("未找到目标表单的主键字段,跳过处理",e),e;if(Md(e,"linkdata"))try{e.widget.linkKey=l.widget.widgetName,e.widget.linkType="sn"}catch(f){return console.error("尝试建立主键关联失败"),e}const u=i.fields.find(wae);if(!u)return console.log("未找到目标表单的显示字段,跳过处理",e),e;try{e.widget.linkFields=[{text:u.label,name:u.widget.widgetName,type:"text"}]}catch(f){return console.error("尝试建立显示字段关联失败"),e}return console.log("关联字段信息已补全",e),a(e),e},x6={linkdata:e=>(t,n,a)=>dA(n,a,e,i=>{t.designInfo.linkInfoMap.delete(a.fieldName)}),linkquery:e=>(t,n,a)=>dA(n,a,e,i=>{t.designInfo.linkInfoMap.delete(a.fieldName)}),dataload:e=>(t,n,a)=>Sae(n,a,e,i=>{t.designInfo.linkInfoMap.delete(a.fieldName)})},j1=({text:e="确认",prefixDesc:t,className:n,disabled:a,light:i,icon:l,children:u,...f})=>{const h=C.jsxs(bo,{...f,variant:"default",disabled:a,className:Ge("px-[10px] py-0 rounded-[100px] text-[14px] leading-normal h-[34px] min-w-[100px] cursor-pointer w-full disabled:opacity-100 gap-[6px] shadow-none",a?"bg-[#f0f0f0] text-[#999] cursor-not-allowed shadow-none":i?"bg-[#F0F6FF] text-[#0265FF] hover:bg-[#0265FF] hover:text-white":"bg-[#0265ff] text-white hover:bg-[#0265ff]/80",Xa,{"!bg-[#E5E6EB] !text-[#121111] shadow-none font-[400]":f.disabledWithInfo},n),children:[l,u||e]});return t?C.jsxs("div",{className:"flex flex-col items-start gap-2.5",children:[C.jsx("p",{className:"text-[#4D609F]",children:t}),h]}):h},w6=({code:e,className:t,style:n})=>C.jsx("i",{className:`sdk-icon ${t||""}`,style:n,dangerouslySetInnerHTML:{__html:e}}),fA=[{id:"biaodan1",code:"",label:"表单1",value:25},{id:"biaodan2",code:"",label:"表单2",value:26},{id:"biaodan3",code:"",label:"表单3",value:27},{id:"biaodan4",code:"",label:"表单4",value:28},{id:"biaodan5",code:"",label:"表单5",value:29},{id:"biaodan6",code:"",label:"表单6",value:30},{id:"biaodan7",code:"",label:"表单7",value:31},{id:"biaodan8",code:"",label:"表单8",value:32},{id:"biaodan9",code:"",label:"表单9",value:33},{id:"biaodan10",code:"",label:"表单10",value:34},{id:"biaodan11",code:"",label:"表单11",value:35},{id:"biaodan12",code:"",label:"表单12",value:36},{id:"biaodan13",code:"",label:"表单13",value:37},{id:"biaodan14",code:"",label:"表单14",value:38},{id:"biaodan15",code:"",label:"表单15",value:39},{id:"biaodan16",code:"",label:"表单16",value:40},{id:"biaodan17",code:"",label:"表单17",value:41},{id:"biaodan18",code:"",label:"表单18",value:42},{id:"biaodan19",code:"",label:"表单19",value:43},{id:"biaodan20",code:"",label:"表单20",value:44},{id:"biaodan21",code:"",label:"表单21",value:45},{id:"biaodan22",code:"",label:"表单22",value:46},{id:"biaodan23",code:"",label:"表单23",value:47},{id:"biaodan24",code:"",label:"表单24",value:48},{id:"biaodan25",code:"",label:"表单25",value:49},{id:"biaodan26",code:"",label:"表单26",value:50},{id:"biaodan27",code:"",label:"表单27",value:51},{id:"biaodan28",code:"",label:"表单28",value:52},{id:"biaodan29",code:"",label:"表单29",value:53},{id:"biaodan30",code:"",label:"表单30",value:54},{id:"biaodan31",code:"",label:"表单31",value:55},{id:"biaodan32",code:"",label:"表单32",value:56},{id:"biaodan33",code:"",label:"表单33",value:57},{id:"biaodan34",code:"",label:"表单34",value:58},{id:"biaodan35",code:"",label:"表单35",value:59},{id:"biaodan36",code:"",label:"表单36",value:60}],b6=({size:e=36,code:t,style:n})=>{const a=e*.238,i=e*.6875;return C.jsx("div",{className:"relative flex items-center justify-center bg-[#0265ff] flex-shrink-0 text-white",style:{width:e,height:e,borderRadius:a,fontSize:i,...n},children:C.jsx(w6,{code:t||fA[0].code,style:{fontSize:i}})})},kae=L.memo(({name:e,onNameChange:t,onMount:n,selectedIcon:a,iconOptions:i=[],onIconChange:l,readonly:u,onConfirm:f,expanded:h,onExpandedChange:g,className:x})=>{const[y,k]=L.useState(!1),[b,T]=L.useState(!1),R=h!=null?h:y,N=V=>{k(V),g==null||g(V)},[O,P]=L.useState(e),[z,j]=L.useState(a);return L.useEffect(()=>{n==null||n()},[]),!R||u?C.jsxs("div",{className:Ge("bg-white hover:bg-[#fafafa] border border-[#e0e0e0] rounded-[10px] px-[10px] py-0 flex items-center justify-between h-[56px] cursor-pointer",Xa,x,"duration-100"),onClick:()=>{u||N(!0)},children:[C.jsxs("div",{className:"flex items-center gap-[10px] min-w-0 flex-1 mr-[10px]",children:[C.jsx(b6,{size:36,code:z==null?void 0:z.code}),C.jsx("p",{className:"text-[14px] text-black leading-normal truncate",children:O})]}),C.jsx("button",{onClick:()=>{u||N(!0)},className:Ge("w-[16px] h-[16px] flex items-center justify-center cursor-pointer hover:opacity-70",Xa,{"pointer-events-none opacity-0":u}),children:C.jsx(YE,{})})]}):C.jsxs("div",{className:Ge("bg-[#fafafa] border border-[#e0e0e0] rounded-[10px] p-[12px] flex flex-col gap-[22px]",Xa,x,"duration-100"),children:[C.jsxs("div",{className:"flex flex-col gap-[10px] w-full",children:[C.jsx("p",{className:"text-[14px] text-[#030303] font-bold leading-normal",children:"名称"}),C.jsx("input",{type:"text",value:O,onChange:V=>{P(V.target.value)},onBlur:()=>{t==null||t(O)},className:Ge("bg-white border border-[#e0e0e0] rounded-[4px] h-[34px] px-[10px] py-[7px] w-full","text-[14px] text-[#030303] leading-normal outline-none","focus:border-[#0265ff]","hover:border-[#0265ff]",Xa)})]}),C.jsxs("div",{className:"flex flex-col gap-[10px] w-full",children:[C.jsx("p",{className:"text-[14px] text-[#030303] font-bold leading-normal",children:"图标"}),C.jsxs("div",{className:"relative",style:{zIndex:10},children:[C.jsxs("button",{onClick:()=>T(!b),className:Ge("bg-white border border-[#e0e0e0] rounded-[4px] h-[34px] px-[10px] py-[7px] w-full","flex items-center justify-between cursor-pointer","hover:border-[#0265ff]",Xa),children:[C.jsx("div",{className:"flex items-center",children:C.jsx(b6,{size:16,code:z==null?void 0:z.code})}),C.jsx("div",{className:Ge("text-[#666]",Xa,b&&"rotate-180"),children:C.jsx(Ore,{size:16})})]}),b&&i.length>0&&C.jsx("div",{className:Ge("absolute top-full left-0 mt-[4px] bg-white rounded-[10px] shadow-md z-10 p-[12px]",Xa),children:C.jsx("div",{className:"grid grid-cols-6 gap-[8px]",children:i.map(V=>C.jsx("button",{onClick:()=>{l==null||l(V),j(V),T(!1)},className:Ge("w-[40px] h-[40px] rounded-[9.5px] border flex items-center justify-center cursor-pointer",(z==null?void 0:z.id)===V.id?"border-[#0265ff] border-2":"border-[#e0e0e0] hover:bg-[#eff0f6]",Xa),title:V.label,children:C.jsx(b6,{size:40,code:V.code,style:{background:"transparent",color:"#0265ff"}})},V.id))})})]})]}),C.jsx(j1,{text:"确认",onClick:()=>{f==null||f(O,(z==null?void 0:z.value)||25),N(!1)}})]})},(e,t)=>{var n,a;return e.name===t.name&&((n=e.selectedIcon)==null?void 0:n.id)===((a=t.selectedIcon)==null?void 0:a.id)&&e.expanded===t.expanded&&e.iconOptions===t.iconOptions}),Eae=L.memo(({designDoc:e,sendMessage:t})=>{const n=D1(pg),[a,i]=L.useState(!1),[l,u]=L.useState(!1),f=Ql(),h=L.useRef(null);cg(xs.CREATE_FORM_SUCCESS,y=>{const k=y;n==null||n.onFormCreate(k),u(!0),h.current=k}),L.useEffect(()=>{h.current&&f.emit("form-builder-FieldsCreatedFinish",h.current)},[]);const g=gae(e),x=C.jsx(Td,{children:l?C.jsxs(C.Fragment,{children:[C.jsxs("span",{className:"text-[#4d609f]",children:["已为你创建",g.formName]}),C.jsx(kae,{onConfirm:(y,k)=>{h.current&&(h.current.formName=y,h.current.formIcon=k,f.emit(xs.UPDATE_FORM_INFO,h.current))},onNameChange:y=>{h.current&&(h.current.formName=y,f.emit(xs.UPDATE_FORM_INFO,h.current))},onIconChange:y=>{h.current&&(h.current.formIcon=y.value,f.emit(xs.UPDATE_FORM_INFO,h.current))},name:g.formName,iconOptions:fA,className:"w-full",onMount:()=>{setTimeout(()=>{var y;t({text:`确认搭建:${(y=n.getCurrentWorkingForm())==null?void 0:y.formName}`},{body:{stage:"build"}})},500)}})]}):C.jsx(O2,{children:"创建中"})});return C.jsxs(C.Fragment,{children:[C.jsx(j1,{disabled:a,prefixDesc:`确认搭建:${g.formName}`,onClick:()=>{n==null||n.onBeforeFormCreate(g),f.emit("form-builder-FormCreateConfirmed",{name:g.formName}),i(!0)}}),a?x:null]})},(e,t)=>e.designDoc===t.designDoc),Ad={text:"输入框",password:"密码输入框",location:"定位",datetime:"日期时间选择器",radiogroup:"单选框",radio:"单选框",combo:"下拉框",address:"地址",button:"按钮",textarea:"多行输入框",combocheck:"多选下拉框",checkboxgroup:"多选框组",separator:"分割线",upload:"附件上传",number:"数字输入框",dataload:"数据加载",image:"图片上传",signature:"签名",dept:"部门选择",user:"成员选择",usergroup:"成员多选",deptgroup:"部门多选",unknown:"未知类型",sn:"流水号",formula:"公式字段",linkdata:"关联数据",linkquery:"关联查询",subform:"子表单",flowState:"流程状态",flowstate:"流程状态"},_ae={address:"",subform:"",password:"",button:"",textarea:"",datetime:"",text:"",location:"",radiogroup:"",radio:"",combo:"",formula:"",flowState:"",flowstate:"",combocheck:"",separator:"",checkboxgroup:"",upload:"",number:"",image:"",signature:"",user:"",dataload:"",linkdata:"",linkquery:"",usergroup:"",dept:"",sn:"",deptgroup:"",unknown:""},Tae={metric_table:"",gauge_chart:"",column_chart:"",funnel_chart:"",line_chart:"",pie_chart:"",area_chart:"",radar_chart:"",bar_chart:"",gantt:"",multi_axes_chart:"",data_table:"",background_table:"",pivot_table:"",map_chart:"",newMap:"",card:"",rili:"",description:"",image:"",gauge_imageMore:""};var hg="Checkbox",[Rae]=Js(hg),[Mae,C6]=Rae(hg);function Aae(e){const{__scopeCheckbox:t,checked:n,children:a,defaultChecked:i,disabled:l,form:u,name:f,onCheckedChange:h,required:g,value:x="on",internal_do_not_use_render:y}=e,[k,b]=x1({prop:n,defaultProp:i!=null?i:!1,onChange:h,caller:hg}),[T,R]=L.useState(null),[N,O]=L.useState(null),P=L.useRef(!1),z=T?!!u||!!T.closest("form"):!0,j={checked:k,disabled:l,setChecked:b,control:T,setControl:R,name:f,form:u,value:x,hasConsumerStoppedPropagationRef:P,required:g,defaultChecked:cc(i)?!1:i,isFormControl:z,bubbleInput:N,setBubbleInput:O};return C.jsx(Mae,{scope:t,...j,children:Nae(y)?y(j):a})}var pA="CheckboxTrigger",hA=L.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...a},i)=>{const{control:l,value:u,disabled:f,checked:h,required:g,setControl:x,setChecked:y,hasConsumerStoppedPropagationRef:k,isFormControl:b,bubbleInput:T}=C6(pA,e),R=Vn(i,x),N=L.useRef(h);return L.useEffect(()=>{const O=l==null?void 0:l.form;if(O){const P=()=>y(N.current);return O.addEventListener("reset",P),()=>O.removeEventListener("reset",P)}},[l,y]),C.jsx(hn.button,{type:"button",role:"checkbox","aria-checked":cc(h)?"mixed":h,"aria-required":g,"data-state":wA(h),"data-disabled":f?"":void 0,disabled:f,value:u,...a,ref:R,onKeyDown:nn(t,O=>{O.key==="Enter"&&O.preventDefault()}),onClick:nn(n,O=>{y(P=>cc(P)?!0:!P),T&&b&&(k.current=O.isPropagationStopped(),k.current||O.stopPropagation())})})});hA.displayName=pA;var mA=L.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:a,checked:i,defaultChecked:l,required:u,disabled:f,value:h,onCheckedChange:g,form:x,...y}=e;return C.jsx(Aae,{__scopeCheckbox:n,checked:i,defaultChecked:l,disabled:f,required:u,onCheckedChange:g,name:a,form:x,value:h,internal_do_not_use_render:({isFormControl:k})=>C.jsxs(C.Fragment,{children:[C.jsx(hA,{...y,ref:t,__scopeCheckbox:n}),k&&C.jsx(xA,{__scopeCheckbox:n})]})})});mA.displayName=hg;var gA="CheckboxIndicator",vA=L.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:a,...i}=e,l=C6(gA,n);return C.jsx(Xl,{present:a||cc(l.checked)||l.checked===!0,children:C.jsx(hn.span,{"data-state":wA(l.checked),"data-disabled":l.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})});vA.displayName=gA;var yA="CheckboxBubbleInput",xA=L.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:a,hasConsumerStoppedPropagationRef:i,checked:l,defaultChecked:u,required:f,disabled:h,name:g,value:x,form:y,bubbleInput:k,setBubbleInput:b}=C6(yA,e),T=Vn(n,b),R=t6(l),N=Y5(a);L.useEffect(()=>{const P=k;if(!P)return;const z=window.HTMLInputElement.prototype,V=Object.getOwnPropertyDescriptor(z,"checked").set,H=!i.current;if(R!==l&&V){const W=new Event("click",{bubbles:H});P.indeterminate=cc(l),V.call(P,cc(l)?!1:l),P.dispatchEvent(W)}},[k,R,l,i]);const O=L.useRef(cc(l)?!1:l);return C.jsx(hn.input,{type:"checkbox","aria-hidden":!0,defaultChecked:u!=null?u:O.current,required:f,disabled:h,name:g,value:x,form:y,...t,tabIndex:-1,ref:T,style:{...t.style,...N,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});xA.displayName=yA;function Nae(e){return typeof e=="function"}function cc(e){return e==="indeterminate"}function wA(e){return cc(e)?"indeterminate":e?"checked":"unchecked"}const bA=L.forwardRef(({className:e,children:t,id:n,disabled:a,...i},l)=>{const u=L.useId(),f=n!=null?n:u;return C.jsxs("label",{htmlFor:f,className:Ge("inline-flex items-center gap-[6px] select-none text-[#121111] text-[14px]",a?"cursor-not-allowed":"cursor-pointer"),children:[C.jsx(mA,{ref:l,id:f,disabled:a,className:Ge("inline-flex shrink-0 items-center justify-center","w-[16px] h-[16px] rounded-[2px] box-border border","transition-colors duration-200","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#0265FF] focus-visible:ring-offset-1","border-[#E0E0E0] bg-white","hover:border-[#0265FF]","data-[state=checked]:bg-[#0265FF] data-[state=checked]:border-[#0265FF]","disabled:cursor-not-allowed disabled:bg-[#F0F0F0] disabled:border-[#C2C2C2]","disabled:data-[state=checked]:bg-[#C2C2C2] disabled:data-[state=checked]:border-[#C2C2C2]",e),...i,children:C.jsx(vA,{className:"text-white",children:C.jsx(KE,{})})}),t!=null&&C.jsx("span",{className:Ge("text-sm leading-none",a&&"text-[#C2C2C2]"),children:t})]})});bA.displayName="SquareChecker";const mg=({defaultChecked:e=!1,disabled:t=!1,onCheckedChange:n,icon:a,className:i,title:l,extra:u,style:f,streaming:h,confirmed:g,shortDesc:x})=>{const[y,k]=L.useState(e),b=()=>{if(h||t)return;const N=!y;k(N),n==null||n(N)},T=!!u,R=g&&y?C.jsx(QE,{className:"grow-0 shrink-0 text-[#0265ff]"}):C.jsx(bA,{className:_a("outline-none grow-0 shrink-0 cursor-pointer",{"mt-[2px]":T,"opacity-80 cursor-not-allowed":t,"opacity-50":h,"pointer-events-none":h}),id:l,checked:y,disabled:t||g,onCheckedChange:b});return C.jsxs("div",{className:Ge("flex items-center gap-[10px] px-4 py-[10px] rounded-[4px]","w-full transition-colors cursor-pointer",{"cursor-not-allowed":t,"hover:bg-[#EFF0F6]":!t,"items-start":T,"items-center":!T},i),style:f,onClick:()=>{b()},children:[R,C.jsxs("div",{className:_a("flex flex-col flex-1 min-w-0",{"gap-2.5":T}),children:[C.jsxs("div",{className:_a("flex items-center justify-between w-full",{"gap-1.5":!!a,"gap-2.5":!a}),children:[C.jsxs("div",{className:_a("flex items-center gap-[6px] min-w-0",{"flex-1":!!a,"w-[100px] flex-shrink-0":!a}),children:[a&&C.jsx("div",{className:"w-4 h-4 flex-shrink-0 text-[#6F829E] leading-[16px]",children:a}),C.jsx("p",{className:_a(" min-w-0 text-sm text-[#121111] truncate",{"flex-1":!!a,"flex-grow-1 flex-shrink-0":!a}),children:l})]}),x&&C.jsx("p",{className:_a("text-sm text-[#666]",{"whitespace-nowrap flex-shrink-0":!!a,anywhere:!a}),children:x})]}),T?C.jsx("div",{className:"overflow-x-auto whitespace-nowrap no-scrollbar flex items-center gap-2",children:u}):null]})]})},Lae=({bgColor:e="#E8F4FF",color:t="#0265FF",label:n,children:a})=>C.jsx("div",{className:"flex items-center justify-center gap-1.5 px-1.5 h-[26px] rounded-[100px] text-[13px]",style:{backgroundColor:e,color:t},children:n||a}),S6=({type:e})=>{const t=_ae[e]||"unknown";return e==="formula"?C.jsx(kq,{}):C.jsx(w6,{code:t})},k6=L.memo(({field:e,disabled:t,isSubField:n,onChange:a,onLoaded:i,icon:l,value:u,streaming:f,confirmed:h})=>{const{widget:g,label:x}=e;if(!g)return null;const{type:y}=g,k=y;if(!Ad.hasOwnProperty(y))return null;const b=Ad[k]||Ad.unknown,T=y==="subform",R=T?[]:g.items||[];L.useEffect(()=>{i==null||i(e)},[]);const N=P=>{a==null||a(P,e)},O=n?"pl-[38px]":"";return u?C.jsx(mg,{title:x,disabled:t,defaultChecked:!0,onCheckedChange:N,icon:l,className:O,shortDesc:u}):C.jsxs(C.Fragment,{children:[C.jsx(mg,{streaming:f,confirmed:h,title:x,disabled:t,defaultChecked:!0,onCheckedChange:N,icon:l,shortDesc:b,className:O,extra:R.length?C.jsx(C.Fragment,{children:R.map(({value:P,text:z,color:j})=>C.jsx(Lae,{color:j?"white":void 0,bgColor:j,children:z},P))}):null}),T?g.items.map((P,z)=>{var j;return C.jsx(k6,{confirmed:h,streaming:f,isSubField:!0,disabled:t,field:P,icon:C.jsx(S6,{type:(j=P.widget)==null?void 0:j.type}),onChange:V=>{a==null||a(V,P,e.widget.widgetName,z)}},P.label)}):null]})},(e,t)=>{var n,a;return((n=e.field)==null?void 0:n.label)===((a=t.field)==null?void 0:a.label)&&e.disabled===t.disabled&&e.confirmed===t.confirmed&&e.streaming===t.streaming}),Nd="form-filling-plugin",So={FORM_STRUCTURE_READY:"form-filling-structure-ready",FIELD_FILLED_UPDATE:"form-filling-field-filling-update",FIELDS_CHECKED_UPDATE:"form-filling-fields-checked-update",FILL_MODE_UPDATE:"form-filling-mode-update",BATCH_FILL_BEGIN:"form-filling-batch-fill-begin",FILL_DATA_CONFIRMED:"form-filling-fields-data-confirmed"},Oae=new Set(["password","textarea","datetime","text","radiogroup","radio","combo","combocheck","checkboxgroup","number"]),wm=3;function Iae(e){return Array.isArray(e)?e.every(t=>typeof t=="string"):!1}function CA(e){return Array.isArray(e)?e.every(t=>typeof t=="object"&&t!==null&&"label"in t&&"value"in t&&typeof t.label=="string"&&typeof t.value=="string"):!1}const SA=e=>Iae(e)?e.join(", "):CA(e)?e.map(n=>n.value).join(", "):e,kA=(e,t)=>{if(t==="address"&&typeof e=="object"){const n=e;return`${n.province} ${n.city} ${n.district} ${n.detail}`}if(t==="location"&&typeof e=="object"){const a=e.lnglatXY||["",""];return`经度: ${a[0]||""}, 纬度: ${a[1]||""}`}return Array.isArray(e)?e.join(", "):CA(e)?e.map(a=>a.value).join(", "):e},EA=e=>Array.isArray(e)?e.filter(t=>{var n;return Oae.has((n=t.widget)==null?void 0:n.type)}):[];var gg="Collapsible",[Dae]=Js(gg),[jae,E6]=Dae(gg),_A=L.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:a,defaultOpen:i,disabled:l,onOpenChange:u,...f}=e,[h,g]=x1({prop:a,defaultProp:i!=null?i:!1,onChange:u,caller:gg});return C.jsx(jae,{scope:n,disabled:l,contentId:tc(),open:h,onOpenToggle:L.useCallback(()=>g(x=>!x),[g]),children:C.jsx(hn.div,{"data-state":T6(h),"data-disabled":l?"":void 0,...f,ref:t})})});_A.displayName=gg;var TA="CollapsibleTrigger",Pae=L.forwardRef((e,t)=>{const{__scopeCollapsible:n,...a}=e,i=E6(TA,n);return C.jsx(hn.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":T6(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...a,ref:t,onClick:nn(e.onClick,i.onOpenToggle)})});Pae.displayName=TA;var _6="CollapsibleContent",RA=L.forwardRef((e,t)=>{const{forceMount:n,...a}=e,i=E6(_6,e.__scopeCollapsible);return C.jsx(Xl,{present:n||i.open,children:({present:l})=>C.jsx(Fae,{...a,ref:t,present:l})})});RA.displayName=_6;var Fae=L.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:a,children:i,...l}=e,u=E6(_6,n),[f,h]=L.useState(a),g=L.useRef(null),x=Vn(t,g),y=L.useRef(0),k=y.current,b=L.useRef(0),T=b.current,R=u.open||f,N=L.useRef(R),O=L.useRef(void 0);return L.useEffect(()=>{const P=requestAnimationFrame(()=>N.current=!1);return()=>cancelAnimationFrame(P)},[]),La(()=>{const P=g.current;if(P){O.current=O.current||{transitionDuration:P.style.transitionDuration,animationName:P.style.animationName},P.style.transitionDuration="0s",P.style.animationName="none";const z=P.getBoundingClientRect();y.current=z.height,b.current=z.width,N.current||(P.style.transitionDuration=O.current.transitionDuration,P.style.animationName=O.current.animationName),h(a)}},[u.open,a]),C.jsx(hn.div,{"data-state":T6(u.open),"data-disabled":u.disabled?"":void 0,id:u.contentId,hidden:!R,...l,ref:x,style:{"--radix-collapsible-content-height":k?`${k}px`:void 0,"--radix-collapsible-content-width":T?`${T}px`:void 0,...e.style},children:R&&i})});function T6(e){return e?"open":"closed"}var zae=_A;const MA=zae,AA=RA,Hae=({disabled:e,onCheckedChange:t,label:n,val:a})=>C.jsx(mg,{title:n,disabled:e,defaultChecked:!0,onCheckedChange:t,className:"pl-[36px]",shortDesc:a}),Uae=L.memo(({field:e,onCheckedChange:t})=>{const{widget:n,label:a}=e;if(!n)return null;const{type:i,value:l}=n,u=i;if(!Ad.hasOwnProperty(u))return null;const f=kA(l,u),h=Ad[u]||Ad.unknown,g=L.useCallback(x=>{t(x,e)},[e]);return L.useEffect(()=>{g(!0)},[]),C.jsx(Hae,{desc:h,label:a,val:f,onCheckedChange:g})},(e,t)=>{var a,i;return((a=e.field.widget)==null?void 0:a.widgetName)===((i=t.field.widget)==null?void 0:i.widgetName)}),Bae=({subformField:e,onChange:t})=>{if(!e.widget.value||!e.widget.value.length)return null;const n=e.widget.value,[a,i]=L.useState(!0);return C.jsx(MA,{open:a,onOpenChange:i,children:C.jsx(AA,{children:n.map((l,u)=>C.jsx(MA,{defaultOpen:!0,children:C.jsx(AA,{children:l.map((f,h)=>C.jsx(Uae,{field:{label:f.label,widget:{widgetName:f.fieldName,type:f.fieldType,value:f.value}},onCheckedChange:(g,x)=>{t({checked:g,field:x,row:u,col:h,parentFieldName:e.widget.widgetName})}}))})},u))})})},Vae=L.memo(({field:e,disabled:t,isSubField:n,onChange:a,onLoaded:i})=>{const{widget:l,label:u}=e;if(!l)return null;const{type:f,value:h}=l,x=kA(h,f);if(!Ad.hasOwnProperty(f))return null;const y=f==="subform";L.useEffect(()=>{i==null||i(e)},[]);const k=T=>{a==null||a(T,e)},b=n?"pl-6":"";return C.jsxs(C.Fragment,{children:[C.jsx(mg,{title:u,disabled:t,defaultChecked:!0,onCheckedChange:k,className:b,shortDesc:y?"":x}),y&&C.jsx(Bae,{subformField:e,onChange:T=>{a==null||a(T.checked,T.field,T.parentFieldName,T.row)}})]})},(e,t)=>{var l,u,f,h,g,x;return!(((l=e.field)==null?void 0:l.label)===((u=t.field)==null?void 0:u.label))||!(((h=(f=e.field)==null?void 0:f.widget)==null?void 0:h.widgetName)===((x=(g=t.field)==null?void 0:g.widget)==null?void 0:x.widgetName))||!(e.disabled===t.disabled)?!1:eq(e==null?void 0:e.field,t==null?void 0:t.field)}),$ae=L.memo(({fields:e,children:t,streaming:n,confirmed:a})=>C.jsxs(pm,{title:"字段生成",icon:C.jsx(dq,{}),defaultOpen:!0,children:[e.map(i=>C.jsx(k6,{...i,streaming:n,confirmed:a})),t]}),(e,t)=>e.fields.length===t.fields.length&&e.streaming===t.streaming&&e.confirmed===t.confirmed&&e.children===t.children),Zae=L.memo(({props:e,children:t})=>C.jsxs(pm,{title:"字段填写",icon:C.jsx(YE,{}),defaultOpen:!0,children:[e.map(n=>C.jsx(Vae,{...n})),t]})),Wae=e=>{var k,b;const{part:t,sendMessage:n,status:a}=e,i=dae(),l=t,u=h2(l),f=$E(l),h=Ql(),g=D1(pg),x=Array.isArray(l)&&l.length?l:u?[l]:[];if(x.length){const T=x.map(N=>{var P;const O=VE(N);return{field:O,disabled:i,onLoaded:z=>{const j=g==null?void 0:g.onBeforeFieldCreate(z);h.emit("form-builder-FieldCreated",{field:j,checked:!0}),g==null||g.onAfterFieldCreate(z)},icon:C.jsx(S6,{type:(P=O.widget)==null?void 0:P.type}),onChange:(z,j,V,H)=>{h.emit("form-builder-FieldCheckedChanged",{field:j,checked:z,parentFieldName:V,index:H})}}}),R=((k=g==null?void 0:g.getCurrentWorkingForm())==null?void 0:k.formName)||"";return C.jsxs(Ka,{className:"gap-0 py-0",compact:!0,children:[C.jsxs("div",{children:[C.jsx("b",{style:{display:"inline-block"},children:R}),` 已生成${T.length}个字段`]}),C.jsx($ae,{fields:T,streaming:a==="streaming",confirmed:i,children:a==="ready"?C.jsx(j1,{className:"mt-[20px] mb-[10px]",disabledWithInfo:i,onClick:()=>{h.emit("form-builder-FieldsConfirmed",g==null?void 0:g.getCurrentWorkingForm()),g.onAfterFieldsSave(N=>{h.emit("form-builder-FieldsConfirmed",N)})},children:i?C.jsxs(C.Fragment,{children:[C.jsx(QE,{className:"text-[#0265ff]"})," 已保存"]}):"保存字段"}):null}),a==="ready"?"请选择需要的字段添加到表单。您可以补充描述后重新生成,表单中已添加字段在下次生成时保留。":null]})}if(XW(l))return i?C.jsx(cae,{title:l.text,description:l.text,onSelect:T=>{n({text:T},{body:{stage:"design"}})},headless:!0}):null;if(f){const T=g==null?void 0:g.getCurrentWorkingForm();return h.emit("form-builder-FieldsCreatedFinish",T),C.jsx(C.Fragment,{children:i?C.jsx(Td,{children:"试试以下建议"}):null})}const y=(b=l.text)==null?void 0:b.includes("【确认搭建");return C.jsx(X2,{...e,children:y?C.jsx(Eae,{sendMessage:n,designDoc:l.text}):null})},qae={countDistinct:"去重计数",count:"计数",sum:"求和",max:"最大值",min:"最小值",average:"平均"};var P1;(function(e){e.NONE="none",e.SHALLOW="shallow",e.DEEP="deep"})(P1||(P1={}));class R6{constructor(t){this.Context=t}}class NA extends R6{constructor(){super(...arguments);qe(this,"pluginName","base-form-builder-plugin");qe(this,"publicMethods",{dispatchCreateFormEvent:n=>{const a=new CustomEvent(xs.CREATE_FORM,{detail:{name:n}});return dispatchEvent(a),a},dispatchSaveFieldsEvent:()=>{const n=new CustomEvent(xs.SAVE_FIELDS);return dispatchEvent(n),n},dispatchFieldCreatedEvt:n=>{const a=new CustomEvent(xs.FIELD_CREATED,{detail:{field:n,checked:!0}});return dispatchEvent(a),a},dispatchFieldCheckUpdateEvt:(n,a)=>{const i=new CustomEvent(xs.FIELD_CHECK_UPDATE,{detail:{field:n,checked:a}});return dispatchEvent(i),i},dispatchCreateRleatedFormsEvent:n=>{const a=new CustomEvent(xs.CREATE_RELATED_FORMS,{detail:{fields:n}});return dispatchEvent(a),a}})}}const vg=L.forwardRef(({className:e,children:t,icon:n,type:a,...i},l)=>C.jsxs("button",{ref:l,type:a!=null?a:"button",className:Ge("group inline-flex items-center gap-[6px] px-[16px] rounded-[4px] h-[34px]","border border-[#E0E0E0] bg-transparent","text-[14px] font-[400] leading-[normal] text-[#030303]","hover:bg-[#EFF0F6] hover:text-[#0265FF] hover:border-transparent","cursor-pointer",Xa,e),...i,children:[n?C.jsx("span",{className:"shrink-0",children:n}):null,C.jsx("span",{className:"whitespace-nowrap",children:t})]}));vg.displayName="BaseButton";const Gae=({style:e,chatVisible:t,onClick:n,variant:a,client:i})=>{const l=D1(pg);return a==="build-fields"?C.jsx(vg,{icon:C.jsx(O5,{}),onClick:()=>{n==null||n();const u=l==null?void 0:l.getCurrentWorkingForm();u&&i.eventBus.emit("send-ghost-msg",{text:`确认搭建:${u.formName}`,options:{body:{stage:"build"}}})},children:"AI生成字段"}):C.jsx(dg,{style:e,minimal:t,onClick:n,children:"AI表单搭建"})};class LA extends NA{constructor(n){super(n);qe(this,"pluginName",pg);qe(this,"currentWorkingFormName","");qe(this,"customComponents",{MessagePart:Wae,EntryButton:Gae});qe(this,"lifecycleHooks",{onBeforeMessagePartsRender(n){return L5(n,h2)},onBeforeChatRender:()=>({appendLoadingIndicator:!0,placeholder:"描述你的需求,如:搭建一张供应商管理表"})});qe(this,"dispose",()=>{this.removeEventListeners()});qe(this,"skipDesignToBuildFields",n=>{this.onBeforeFormCreate({formName:n.formName,linkInfoMap:new Map}),this.onFormCreate(n)});this.addEventListeners()}onAfterFieldCreate(n){var i;const a=this.Context.formMap.get(this.currentWorkingFormName);a&&(a.fieldMap.has(n.label)||(a.fields.push(n),a.fieldMap.set(n.label,n)),vae(n)&&n.widget.items.forEach(l=>{a.fieldMap.set(l.label,l)}),Md(n,"dataload")&&a.designInfo.linkInfoMap.set(n.label,{fieldName:n.label,targetFormName:((i=n.widget.loaddataconfig)==null?void 0:i.forms)||""}))}enhanceField(n){const a=x6[n.widget.type];if(!a)return n;const i=this.Context.formMap.get(this.currentWorkingFormName);if(!i)return n;const l=a(this.Context.formMap),u=i.designInfo.linkInfoMap.get(n.label);return u?(console.log("识别到表单中有关联字段,尝试补全关联信息"),l(i,n,u)):n}onBeforeFieldCreate(n){return Md(n,"subform")?(!n.widget.items||n.widget.items.length===0||(n.widget.items=n.widget.items.map(a=>this.enhanceField(a))),n):this.enhanceField(n)}onBeforeFormCreate(n){const a=n.formName||"Unnamed Form";console.log("表单设计信息提取完毕,结构化数据如下:",n),this.Context.formMap.get(a)||this.Context.formMap.set(a,{designInfo:n,fields:[],fieldMap:new Map,formName:a}),this.currentWorkingFormName=a}onFormCreate(n){const a=this.Context.formMap.get(n.formName);if(!a){console.log("未找到已有表单,放弃更新信息");return}a.formId=n.formId,a.appId=n.appId}onAfterFieldsSave(n){const a=this.getCurrentWorkingForm();a&&Cae(this.Context.formMap,{isTargetForm:(i,l)=>i===a.formName?(console.log("跳过自身表单"),!1):bae(l.designInfo)?!0:(console.log("关联信息为空,不处理"),!1),isTargetField:(i,l)=>l.targetFormName===a.formName,fieldProcessor:(i,l,u)=>{var x;const f=(x=l.widget)==null?void 0:x.type;if(!x6[f])return;const h=x6[f];return h(this.Context.formMap)(i,l,u)},onFormProcessed:n})}getCurrentWorkingForm(){return this.Context.formMap.get(this.currentWorkingFormName)}addEventListeners(){}removeEventListeners(){}}const Yae={EVENTS:xs,Plugin:LA,createContext:()=>({formMap:new Map})},Jae=({input:e,type:t,onConfirm:n,onCancel:a})=>t==="tool-confirmToCreateForm"||t==="tool-confirmToSaveCheckedFields"?C.jsx(Ka,{className:"gap-0 py-0",compact:!0,children:C.jsx(bo,{onClick:()=>{n({body:{stage:t==="tool-confirmToCreateForm"?"build":"continue"}})},children:"确认"})}):t==="tool-confirmToCreateRelatedForm"&&e.forms.length>0?C.jsxs(Ka,{className:"gap-0 py-0",compact:!0,children:[C.jsx(bo,{onClick:()=>{n({body:{stage:"continue "}})},children:"确认"}),C.jsx(bo,{onClick:()=>{a&&a()},children:"跳过"})]}):t==="tool-confirmToCreateFieldsForRelatedForm"?C.jsxs(Ka,{className:"gap-0 py-0",compact:!0,children:[C.jsx(mm,{items:e.forms,onSelect:i=>{n({body:{stage:"design"}},i)}}),C.jsx(bo,{onClick:()=>{a&&a()},children:"取消"})]}):null,M6="ModelFormBuilderPlugin",OA=new CustomEvent("default"),Xae={"tool-confirmToCreateForm":e=>(t,n)=>e.publicMethods.dispatchCreateFormEvent(n.formName),"tool-confirmToSaveCheckedFields":e=>t=>e.publicMethods.dispatchSaveFieldsEvent(),"tool-confirmToCreateFieldsForRelatedForm":e=>t=>OA,"tool-confirmToCreateRelatedForm":e=>t=>OA},Kae=({output:e,input:t,type:n})=>{const a=D1(M6);if(a)return L.useEffect(()=>{const i=Xae[n];if(i){const l=i(a)(e,t);dispatchEvent(l)}},[]),C.jsx(Td,{headless:!0,children:e})},Qae=L.memo(Kae,(e,t)=>!(e.output!==t.output||e.type!==t.type||e.input!==t.input)),yg=e=>{const[t,n]=L.useState(!1);return C.jsx(bo,{...e,disabled:t||e.disabled,onClick:a=>{var i;(i=e.onClick)==null||i.call(e,a),n(!0)}})},eoe=({input:e,type:t,sendMessage:n,onConfirm:a,onCancel:i})=>{const[l,u]=L.useState(!1),[f,h]=L.useState(!1),[g,x]=L.useState(!1),y=D1(M6);if(t==="tool-confirmToCreateForm")return C.jsx(Ka,{className:"gap-0 py-0",compact:!0,children:C.jsx(yg,{onClick:()=>{var k;(k=y==null?void 0:y.publicMethods)==null||k.dispatchCreateFormEvent(e.formName),n(void 0,{body:{stage:"build",name:e.formName}})},children:"确认"})});if(t==="tool-confirmToSaveCheckedFields"){const k=Object.keys(e.relatedForms),b=k.length,T=`${k.join("、")}暂无已有工作表,将为您继续创建工作表`;return C.jsxs(Ka,{className:"gap-0 py-0",compact:!0,children:[C.jsx(yg,{onClick:()=>{var R;(R=y==null?void 0:y.publicMethods)==null||R.dispatchSaveFieldsEvent(),u(!0)},children:"保存字段"}),b&&l&&!f&&!g?C.jsxs(C.Fragment,{children:[T,C.jsx(yg,{onClick:()=>{h(!0)},children:"继续创建?"}),C.jsx(yg,{onClick:()=>{x(!0)},children:"跳过"})]}):null,f?C.jsxs(C.Fragment,{children:["请选择要创建的关联表:",C.jsx(mm,{items:k.map(R=>({title:R,description:""})),onSelect:R=>{n({text:R},{body:{stage:"design",name:R}})}})]}):null]})}return t==="tool-confirmToCreateRelatedForm"&&e.forms.length>0?C.jsxs(Ka,{className:"gap-0 py-0",compact:!0,children:[C.jsx(bo,{onClick:()=>{a==null||a({body:{stage:"continue"}})},children:"确认"}),C.jsx(bo,{onClick:()=>{i&&i()},children:"跳过"})]}):t==="tool-confirmToCreateFieldsForRelatedForm"?C.jsxs(Ka,{className:"gap-0 py-0",compact:!0,children:[C.jsx(mm,{items:e.forms,onSelect:k=>{a==null||a({body:{stage:"design"}},k)}}),C.jsx(bo,{onClick:()=>{i&&i()},children:"取消"})]}):null};function toe({prompt:e,responseFormat:t}){const n=[],a=[];(t==null?void 0:t.type)==="json"&&(t.schema==null?n.push({role:"system",content:"Return JSON."}):n.push({role:"system",content:"Return JSON that conforms to the following schema: "+JSON.stringify(t.schema)}));let i=-1;for(let u=e.length-1;u>=0;u--)if(e[u].role==="user"){i=u;break}let l=-1;for(const{role:u,content:f}of e)switch(l++,u){case"system":{n.push({role:"system",content:f});break}case"user":{let h="";for(const g of f)g.type==="text"?h+=g.text:a.push({type:"other",message:`Unsupported user message part type: ${g.type}`});n.push({role:"user",content:h});break}case"assistant":{let h="",g;const x=[];for(const y of f)switch(y.type){case"text":{h+=y.text;break}case"reasoning":{if(l<=i)break;g==null?g=y.text:g+=y.text;break}case"tool-call":{x.push({id:y.toolCallId,type:"function",function:{name:y.toolName,arguments:JSON.stringify(y.input)}});break}}n.push({role:"assistant",content:h,reasoning_content:g,tool_calls:x.length>0?x:void 0});break}case"tool":{for(const h of f){const g=h.output;let x;switch(g.type){case"text":case"error-text":x=g.value;break;case"content":case"json":case"error-json":x=JSON.stringify(g.value);break}n.push({role:"tool",tool_call_id:h.toolCallId,content:x})}break}default:{a.push({type:"other",message:`Unsupported message role: ${u}`});break}}return{messages:n,warnings:a}}var IA=$e({prompt_tokens:or().nullish(),completion_tokens:or().nullish(),prompt_cache_hit_tokens:or().nullish(),prompt_cache_miss_tokens:or().nullish(),total_tokens:or().nullish(),completion_tokens_details:$e({reasoning_tokens:or().nullish()}).nullish()}).nullish(),DA=$e({error:$e({message:ee(),type:ee().nullish(),param:Wl().nullish(),code:ua([ee(),or()]).nullish()})}),noe=$e({id:ee().nullish(),created:or().nullish(),model:ee().nullish(),choices:Hn($e({message:$e({role:$t("assistant").nullish(),content:ee().nullish(),reasoning_content:ee().nullish(),tool_calls:Hn($e({id:ee().nullish(),function:$e({name:ee(),arguments:ee()})})).nullish()}),finish_reason:ee().nullish()})),usage:IA}),roe=J9(()=>ps(ua([$e({id:ee().nullish(),created:or().nullish(),model:ee().nullish(),choices:Hn($e({delta:$e({role:vn(["assistant"]).nullish(),content:ee().nullish(),reasoning_content:ee().nullish(),tool_calls:Hn($e({index:or(),id:ee().nullish(),function:$e({name:ee().nullish(),arguments:ee().nullish()})})).nullish()}).nullish(),finish_reason:ee().nullish()})),usage:IA}),DA]))),aoe=$e({thinking:$e({type:vn(["enabled","disabled"]).optional()}).optional()});function ooe({tools:e,toolChoice:t}){e=e!=null&&e.length?e:void 0;const n=[];if(e==null)return{tools:void 0,toolChoice:void 0,toolWarnings:n};const a=[];for(const l of e)l.type==="provider-defined"?n.push({type:"unsupported-tool",tool:l}):a.push({type:"function",function:{name:l.name,description:l.description,parameters:l.inputSchema}});if(t==null)return{tools:a,toolChoice:void 0,toolWarnings:n};const i=t.type;switch(i){case"auto":case"none":case"required":return{tools:a,toolChoice:i,toolWarnings:n};case"tool":return{tools:a,toolChoice:{type:"function",function:{name:t.toolName}},toolWarnings:n};default:{const l=i;throw new wj({functionality:`tool choice type: ${l}`})}}}function jA({id:e,model:t,created:n}){return{id:e!=null?e:void 0,modelId:t!=null?t:void 0,timestamp:n!=null?new Date(n*1e3):void 0}}function PA(e){switch(e){case"stop":return"stop";case"length":return"length";case"content_filter":return"content-filter";case"tool_calls":return"tool-calls";case"insufficient_system_resource":return"error";default:return"unknown"}}var ioe=class{constructor(e,t){this.specificationVersion="v2",this.supportedUrls={},this.modelId=e,this.config=t,this.failedResponseHandler=md({errorSchema:DA,errorToMessage:n=>n.error.message})}get provider(){return this.config.provider}get providerOptionsName(){return this.config.provider.split(".")[0].trim()}async getArgs({prompt:e,maxOutputTokens:t,temperature:n,topP:a,topK:i,frequencyPenalty:l,presencePenalty:u,providerOptions:f,stopSequences:h,responseFormat:g,tools:x,toolChoice:y,seed:k}){var b,T;const R=(b=await wU({provider:this.providerOptionsName,providerOptions:f,schema:aoe}))!=null?b:{},{messages:N,warnings:O}=toe({prompt:e,responseFormat:g});i!=null&&O.push({type:"unsupported-setting",setting:"topK"}),k!=null&&O.push({type:"unsupported-setting",setting:"seed"});const{tools:P,toolChoice:z,toolWarnings:j}=ooe({tools:x,toolChoice:y});return{args:{model:this.modelId,max_tokens:t,temperature:n,top_p:a,frequency_penalty:l,presence_penalty:u,response_format:(g==null?void 0:g.type)==="json"?{type:"json_object"}:void 0,stop:h,messages:N,tools:P,tool_choice:z,thinking:((T=R.thinking)==null?void 0:T.type)!=null?{type:R.thinking.type}:void 0},warnings:[...O,...j]}}async doGenerate(e){var t,n,a,i,l,u,f,h,g,x,y,k,b,T,R,N;const{args:O,warnings:P}=await this.getArgs({...e}),{responseHeaders:z,value:j,rawValue:V}=await i1({url:this.config.url({path:"/chat/completions",modelId:this.modelId}),headers:o1(this.config.headers(),e.headers),body:O,failedResponseHandler:this.failedResponseHandler,successfulResponseHandler:s1(noe),abortSignal:e.abortSignal,fetch:this.config.fetch}),H=j.choices[0],W=[],G=H.message.reasoning_content;if(G!=null&&G.length>0&&W.push({type:"reasoning",text:G}),H.message.tool_calls!=null)for(const ye of H.message.tool_calls)W.push({type:"tool-call",toolCallId:(t=ye.id)!=null?t:cd(),toolName:ye.function.name,input:ye.function.arguments});const ae=H.message.content;return ae!=null&&ae.length>0&&W.push({type:"text",text:ae}),{content:W,finishReason:PA(H.finish_reason),usage:{inputTokens:(a=(n=j.usage)==null?void 0:n.prompt_tokens)!=null?a:void 0,outputTokens:(l=(i=j.usage)==null?void 0:i.completion_tokens)!=null?l:void 0,totalTokens:(f=(u=j.usage)==null?void 0:u.total_tokens)!=null?f:void 0,reasoningTokens:(x=(g=(h=j.usage)==null?void 0:h.completion_tokens_details)==null?void 0:g.reasoning_tokens)!=null?x:void 0,cachedInputTokens:(k=(y=j.usage)==null?void 0:y.prompt_cache_hit_tokens)!=null?k:void 0},providerMetadata:{[this.providerOptionsName]:{promptCacheHitTokens:(T=(b=j.usage)==null?void 0:b.prompt_cache_hit_tokens)!=null?T:null,promptCacheMissTokens:(N=(R=j.usage)==null?void 0:R.prompt_cache_miss_tokens)!=null?N:null}},request:{body:O},response:{...jA(j),headers:z,body:V},warnings:P}}async doStream(e){const{args:t,warnings:n}=await this.getArgs({...e}),a={...t,stream:!0,stream_options:{include_usage:!0}},{responseHeaders:i,value:l}=await i1({url:this.config.url({path:"/chat/completions",modelId:this.modelId}),headers:o1(this.config.headers(),e.headers),body:a,failedResponseHandler:this.failedResponseHandler,successfulResponseHandler:QC(roe),abortSignal:e.abortSignal,fetch:this.config.fetch}),u=[];let f="unknown",h,g=!0;const x=this.providerOptionsName;let y=!1,k=!1;return{stream:l.pipeThrough(new TransformStream({start(b){b.enqueue({type:"stream-start",warnings:n})},transform(b,T){var R,N,O,P,z,j,V,H,W,G,ae,ye;if(e.includeRawChunks&&T.enqueue({type:"raw",rawValue:b.rawValue}),!b.success){f="error",T.enqueue({type:"error",error:b.error});return}const ce=b.value;if("error"in ce){f="error",T.enqueue({type:"error",error:ce.error.message});return}g&&(g=!1,T.enqueue({type:"response-metadata",...jA(ce)})),ce.usage!=null&&(h=ce.usage);const he=ce.choices[0];if((he==null?void 0:he.finish_reason)!=null&&(f=PA(he.finish_reason)),(he==null?void 0:he.delta)==null)return;const ue=he.delta,Te=ue.reasoning_content;if(Te&&(y||(T.enqueue({type:"reasoning-start",id:"reasoning-0"}),y=!0),T.enqueue({type:"reasoning-delta",id:"reasoning-0",delta:Te})),ue.content&&(k||(T.enqueue({type:"text-start",id:"txt-0"}),k=!0),y&&(T.enqueue({type:"reasoning-end",id:"reasoning-0"}),y=!1),T.enqueue({type:"text-delta",id:"txt-0",delta:ue.content})),ue.tool_calls!=null){y&&(T.enqueue({type:"reasoning-end",id:"reasoning-0"}),y=!1);for(const ke of ue.tool_calls){const Ee=ke.index;if(u[Ee]==null){if(ke.id==null)throw new Kw({data:ke,message:"Expected 'id' to be a string."});if(((R=ke.function)==null?void 0:R.name)==null)throw new Kw({data:ke,message:"Expected 'function.name' to be a string."});T.enqueue({type:"tool-input-start",id:ke.id,toolName:ke.function.name}),u[Ee]={id:ke.id,type:"function",function:{name:ke.function.name,arguments:(N=ke.function.arguments)!=null?N:""},hasFinished:!1};const K=u[Ee];((O=K.function)==null?void 0:O.name)!=null&&((P=K.function)==null?void 0:P.arguments)!=null&&(K.function.arguments.length>0&&T.enqueue({type:"tool-input-delta",id:K.id,delta:K.function.arguments}),XC(K.function.arguments)&&(T.enqueue({type:"tool-input-end",id:K.id}),T.enqueue({type:"tool-call",toolCallId:(z=K.id)!=null?z:cd(),toolName:K.function.name,input:K.function.arguments}),K.hasFinished=!0));continue}const xe=u[Ee];xe.hasFinished||(((j=ke.function)==null?void 0:j.arguments)!=null&&(xe.function.arguments+=(H=(V=ke.function)==null?void 0:V.arguments)!=null?H:""),T.enqueue({type:"tool-input-delta",id:xe.id,delta:(W=ke.function.arguments)!=null?W:""}),((G=xe.function)==null?void 0:G.name)!=null&&((ae=xe.function)==null?void 0:ae.arguments)!=null&&XC(xe.function.arguments)&&(T.enqueue({type:"tool-input-end",id:xe.id}),T.enqueue({type:"tool-call",toolCallId:(ye=xe.id)!=null?ye:cd(),toolName:xe.function.name,input:xe.function.arguments}),xe.hasFinished=!0))}}},flush(b){var T,R,N,O,P,z,j,V,H;y&&b.enqueue({type:"reasoning-end",id:"reasoning-0"}),k&&b.enqueue({type:"text-end",id:"txt-0"});for(const W of u.filter(G=>!G.hasFinished))b.enqueue({type:"tool-input-end",id:W.id}),b.enqueue({type:"tool-call",toolCallId:(T=W.id)!=null?T:cd(),toolName:W.function.name,input:W.function.arguments});b.enqueue({type:"finish",finishReason:f,usage:{inputTokens:(R=h==null?void 0:h.prompt_tokens)!=null?R:void 0,outputTokens:(N=h==null?void 0:h.completion_tokens)!=null?N:void 0,totalTokens:(O=h==null?void 0:h.total_tokens)!=null?O:void 0,reasoningTokens:(z=(P=h==null?void 0:h.completion_tokens_details)==null?void 0:P.reasoning_tokens)!=null?z:void 0,cachedInputTokens:(j=h==null?void 0:h.prompt_cache_hit_tokens)!=null?j:void 0},providerMetadata:{[x]:{promptCacheHitTokens:(V=h==null?void 0:h.prompt_cache_hit_tokens)!=null?V:null,promptCacheMissTokens:(H=h==null?void 0:h.prompt_cache_miss_tokens)!=null?H:null}}})}})),request:{body:a},response:{headers:i}}}},soe="1.0.33";function FA(e={}){var t;const n=iS((t=e.baseURL)!=null?t:"https://api.deepseek.com"),a=()=>Xu({Authorization:`Bearer ${dU({apiKey:e.apiKey,environmentVariableName:"DEEPSEEK_API_KEY",description:"DeepSeek API key"})}`,...e.headers},`ai-sdk/deepseek/${soe}`),i=u=>new ioe(u,{provider:"deepseek.chat",url:({path:f})=>`${n}${f}`,headers:a,fetch:e.fetch}),l=u=>i(u);return l.languageModel=i,l.chat=i,l.textEmbeddingModel=u=>{throw new db({modelId:u,modelType:"textEmbeddingModel"})},l.imageModel=u=>{throw new db({modelId:u,modelType:"imageModel"})},l}FA();const zA=FA({apiKey:"sk-f86317613ca4472b97ee4957af550b5c"})("deepseek-chat"),loe={name:"buildDateTimeField",description:"Builds a date-time field",inputSchema:$e({format:ee().min(1).max(100).default("yyyy-MM-dd"),label:ee().min(1).max(100),required:fn().default(!1),fieldWidth:vn(["3","4","6","8","9","12"]).default("12"),description:ee().min(1).max(100).default("")}),execute:e=>{const{label:t,required:n,format:a,fieldWidth:i,description:l}=e;return{widget:{type:"datetime",height:34,width:350,enable:!0,visible:!0,allowBlank:!n,funMode:"module",format:a,widgetName:`_widget_${Date.now()}`,widgetNameAlias:"",customCls:null,value:"today",rely:null,labelStyle:t,module:null,libs:[],extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none",version:1},hint:"",dateLimit:{week:{enable:!1,value:[1,2,6]},start:{enable:!1,mode:"dynamic",value:"yesterday"},end:{enable:!1,mode:"static",value:17620938e5}}},description:l,label:t,lineWidth:parseInt(i),tab:null}}},uoe=$e({label:ee().min(1).max(100),required:fn().default(!1),options:Hn($e({value:ee().min(1).max(100),text:ee().min(1).max(100)})),description:ee().min(1).max(100).optional(),fieldWidth:vn(["3","4","6","8","9","12"]).default("12")}),coe={name:"buildSelectField",description:"Builds a select field",inputSchema:uoe,execute:e=>{const{label:t,required:n,options:a,fieldWidth:i,description:l}=e;return{widget:{type:"combo",height:34,width:350,enable:!0,visible:!0,allowBlank:!n,labelStyle:t,mode:1,allowAddLinkData:!1,items:a,widgetName:`_widget_${Date.now()}`,widgetNameAlias:"",customCls:null,funMode:"module",module:null,libs:[],extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none",version:1},colorEnable:!0},description:l,label:t,lineWidth:parseInt(i),tab:null}}},doe={name:"buildInputField",inputSchema:$e({label:ee().min(1).max(100),placeholder:ee().min(1).max(100).optional(),required:fn().default(!1),fieldWidth:vn(["3","4","6","8","9","12"]).default("12"),description:ee().min(1).max(100).optional(),textMode:vn(["text","email","password","number"]).default("text"),regex:ee().min(1).max(1e3).optional()}),execute:e=>{const{label:t,placeholder:n,required:a,textMode:i,regex:l,fieldWidth:u,description:f}=e;return{widget:{type:"text",widgetName:`_widget_${Date.now()}`,widgetNameAlias:"",customCls:null,height:34,width:350,text:null,value:"",enable:!0,visible:!0,hint:n,allowBlank:!a,rely:null,labelStyle:t,libs:[],extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none",version:1},regex:l,noRepeat:!0,scan:null,textMode:i,generateQR:!1,eventAlert:!0,alertinfo:{icon:"error",tip:n,msg:n},enterClearText:!0},description:f,label:t,lineWidth:parseInt(u),tab:null}}},foe={name:"buildRadioField",inputSchema:$e({label:ee().min(1).max(100),fieldWidth:vn(["3","4","6","8","9","12"]).default("12"),description:ee().min(1).max(100).optional(),required:fn().default(!1),layout:vn(["horizontal","vertical"]).default("horizontal"),options:Hn($e({value:ee().min(1).max(100),text:ee().min(1).max(100),color:ee().min(1).max(7)}))}),execute:e=>{const{label:t,fieldWidth:n,description:a,options:i,required:l,layout:u}=e;return{widget:{type:"radiogroup",enable:!0,visible:!0,allowBlank:!l,funMode:"module",module:null,libs:[],items:i,layout:u,stopCancel:!1,widgetName:`_widget_${Date.now()}`,widgetNameAlias:"",customCls:null,value:null,labelStyle:t,extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none",version:1},colorEnable:!0},description:a,label:t,lineWidth:parseInt(n),tab:null}}},poe={name:"confirmToSaveCheckedFields",description:"confirm after fields created and checked",inputSchema:$e({message:ee().min(2).max(100)}),outputSchema:ee()},hoe={name:"confirmToCreateForm",description:"confirm to start creating a form",inputSchema:$e({formName:ee().min(2).max(100)}),outputSchema:ee()},moe={name:"confirmToCreateFieldsForRelatedForm",description:"require user confirm to create fields for related forms.",inputSchema:$e({forms:Hn($e({title:ee().min(2).max(100),description:ee().min(2).max(500)}))}),outputSchema:ee()},goe={name:"confirmToCreateRelatedForm",description:"require user confirm to create following related forms.",inputSchema:$e({forms:Hn($e({title:ee().min(2).max(100),description:ee().min(2).max(500)}))}),outputSchema:ee()},voe={name:"promptToCreateRelatedForm",description:"Determines whether to create a related form based on user input. Returns true if a related form should be created, otherwise false.",inputSchema:$e({hasRelatedForm:fn()}),outputSchema:fn()},HA={YES:"Yes, confirmed.",NO:"No, denied."};function UA(e){return Object.keys(e).filter(t=>typeof e[t].execute!="function")}function BA(e){const t=new Set;return Object.keys(e).forEach(n=>{typeof e[n].execute=="function"&&t.add(n)}),t}const Ta=()=>`_widget_${Date.now()}`,yoe={name:"buildTextareaField",description:"build a multiline text field",inputSchema:$e({label:ee().min(1).max(100),placeholder:ee().min(1).max(100).optional(),required:fn().default(!1),fieldWidth:vn(["3","4","6","8","9","12"]).default("12"),description:ee().min(1).max(100).optional()}),execute:e=>{const{label:t,required:n,fieldWidth:a,description:i}=e;return{widget:{type:"textarea",widgetName:Ta(),widgetNameAlias:"",triggerEvent:!1,customCls:null,height:140,width:734,value:"",enable:!0,visible:!0,allowBlank:!n,labelStyle:t,funMode:"module",module:null,libs:[],extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none",version:1},noRepeat:!1,alertinfo:{icon:"success",tip:"请设置提示内容"},autoHeight:!0,maxLength:5e3},description:i,label:t,lineWidth:parseInt(a),tab:null}}},xoe={name:"buildCheckBoxGroupField",description:"build a check boxk group field",inputSchema:$e({label:ee().min(1).max(100),fieldWidth:vn(["3","4","6","8","9","12"]).default("12"),description:ee().min(1).max(100).optional(),required:fn().default(!1),layout:vn(["horizontal","vertical"]).default("horizontal"),options:Hn($e({value:ee().min(1).max(100),text:ee().min(1).max(100),color:ee().min(1).max(7)}))}),execute:e=>{const{label:t,fieldWidth:n,description:a,options:i,required:l,layout:u}=e;return{widget:{type:"checkboxgroup",widgetName:Ta(),widgetNameAlias:"",customCls:null,enable:!0,visible:!0,allowBlank:!l,labelStyle:t,funMode:"module",module:null,libs:[],extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none",version:1},items:i,colorEnable:!0,layout:u,allowAddOptions:!1},description:a,label:t,lineWidth:parseInt(n),tab:null}}},woe=$e({label:ee().min(1).max(100),required:fn().default(!1),options:Hn($e({value:ee().min(1).max(100),text:ee().min(1).max(100)})),description:ee().min(1).max(100).optional(),fieldWidth:vn(["3","4","6","8","9","12"]).default("12")}),boe={name:"buildSelectCheckerField",description:"Builds a select checker field",inputSchema:woe,execute:e=>{const{label:t,required:n,options:a,fieldWidth:i,description:l}=e;return{widget:{type:"combocheck",widgetName:Ta(),widgetNameAlias:"",customCls:null,height:34,width:350,enable:!0,visible:!0,allowBlank:!n,labelStyle:t,funMode:"module",module:null,libs:[],extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none",version:1},colorEnable:!0,mode:"",allowAddOptions:!1,allowAddLinkData:!1,items:a},description:l,label:t,lineWidth:parseInt(i),tab:null}}},Coe={name:"buildButtonField",description:"build a button field",inputSchema:$e({label:ee().min(1).max(100),theme:vn(["primary","bordered","ghost"]).default("primary"),buttonText:ee().min(1).max(100),backgroundColor:ee().min(1).max(7),required:fn().default(!1),fieldWidth:vn(["3","4","6","8","9","12"]).default("12"),description:ee().min(1).max(100).default("")}),execute:e=>{const{label:t,buttonText:n,backgroundColor:a,theme:i,required:l,fieldWidth:u,description:f}=e,h={primary:"default",bordered:"style1",ghost:"none"};return{widget:{type:"button",widgetName:Ta(),widgetNameAlias:"",triggerEvent:0,customCls:null,height:36,width:350,text:n,enable:!0,visible:!0,allowBlank:!l,labelStyle:t,extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none",funMode:"popupreport"},background:{mode:"color",color:a,position:"center"},mode:"all",theme:h[i]||"default",eventAlert:!1,alertinfo:{icon:"success",tip:"请设置提示内容"}},description:f,label:t,lineWidth:parseInt(u),tab:null}}},Soe={name:"buildFieldSplitline",description:"build a split line to split fields",inputSchema:$e({label:ee().min(1).max(100),fieldWidth:vn(["3","4","6","8","9","12"]).default("12"),lineStyle:vn(["default","ghost","dashed","thin"]).default("default"),labelColor:ee().min(1).max(7).default("#000000"),lineColor:ee().min(1).max(7).default("#000000"),description:ee().min(1).max(100).default("")}),execute:e=>{const{label:t,fieldWidth:n,description:a,labelColor:i,lineColor:l,lineStyle:u}=e;return{widget:{type:"separator",widgetName:Ta(),widgetNameAlias:"",customCls:null,enable:!0,visible:!0,allowBlank:!0,labelStyle:t,lineStyle:u,labelColor:i,lineColor:l},description:a,label:t,lineWidth:parseInt(n),tab:null}}},koe={name:"buildAddressField",description:"Builds a form field for collecting address information from users.",inputSchema:$e({label:ee().min(1).max(100),required:fn().default(!1),fieldWidth:vn(["3","4","6","8","9","12"]).default("12"),description:ee().min(1).max(100).optional(),addressMode:vn(["all","provinceCityDistrict","provinceCity","provinceOnly"]).default("all")}),execute:e=>{const{label:t,required:n,fieldWidth:a,description:i,addressMode:l}=e,u={all:"pcda",provinceCityDistrict:"pcd",provinceCity:"pc",provinceOnly:"p"};return{widget:{type:"address",widgetName:Ta(),widgetNameAlias:"",customCls:null,width:720,enable:!0,visible:!0,allowBlank:!n,labelStyle:t,funMode:"module",module:null,libs:[],extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none",version:1},needDetail:!0,format:u[l]||"all",eventMode:1,seleceMapAddress:!0},description:i,label:t,lineWidth:parseInt(a,10),tab:null}}},Eoe={name:"buildLocationField",description:"Builds a location field for a form.",inputSchema:$e({radius:or().min(0).max(1e4).optional().describe("The radius for location accuracy in meters.").default(1500),label:ee().min(1).max(100).describe("The label for the location field."),limits:B9(Hn($e({name:ee().min(1).max(100).describe("The name of the location limit."),position:Hn(or()).length(2).describe("The [longitude, latitude] of the location limit."),radius:or().min(0).max(1e4).describe("The radius of the location limit in meters.")}))).default([]).describe("The location limits for the field."),description:ee().max(500).optional().describe("An optional description for the location field."),required:fn().default(!1).describe("Whether the field can be left blank."),fieldWidth:vn(["3","4","6","8","9","12"]).default("12").describe("The width of the field in the form. total is 12.")}),execute:e=>{const{label:t,description:n,required:a,fieldWidth:i,radius:l,limits:u}=e;return{widget:{type:"location",widgetName:Ta(),widgetNameAlias:"",customCls:null,enable:!0,visible:!0,allowBlank:!a,labelStyle:t,funMode:"module",module:null,libs:[],extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none",version:1},adjustable:!0,radius:l,limits:u,lnglatVisible:!0,autoLocation:!0,enablePcLocation:!0},description:n,label:t,lineWidth:parseInt(i,10),tab:null}}},_oe={name:"buildNumberInputField",description:"build a number input field",inputSchema:$e({label:ee().min(1).max(100).describe("The label of the number input field"),min:or().optional().describe("The minimum value of the number input field"),regex:ee().optional().default("^[-]?[\\d]{0,}[\\.]?[\\d]{0,}$").describe("The regex for validating the number input"),placeholder:ee().min(1).max(100).optional(),max:or().optional().describe("The maximum value of the number input field"),required:fn().optional().describe("Whether the number input field is required"),description:ee().max(500).optional().describe("The description of the number input field"),fieldWidth:vn(["3","4","6","8","9","12"]).optional().default("12").describe("The width of the number input field in the form layout")}),execute:e=>{const{label:t,fieldWidth:n,description:a,required:i,regex:l,placeholder:u,max:f,min:h}=e;return{widget:{type:"number",widgetName:Ta(),widgetNameAlias:"",triggerEvent:!1,customCls:null,height:34,width:350,enable:!0,visible:!0,allowBlank:!i,labelStyle:t,funMode:"module",module:null,libs:[],extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none",version:1},regex:l,hint:u,noRepeat:!1,alertinfo:{icon:"success",tip:"请设置提示内容"},allowDecimals:!0,allowNegative:!0,maxNumber:f,minNumber:h,displayMode:"percent",precision:null,thousandsSeparator:!1,notround:!0,format:"",afterSuffix:{zh_cn:"",en_us:"",zh_tw:""}},description:a,label:t,lineWidth:parseInt(n),tab:null}}},Toe={name:"buildImageField",description:"Build an image field for a form.",inputSchema:$e({label:ee().min(1).max(100).describe("The label for the image field."),required:fn().describe("Whether the image field is required."),fieldWidth:vn(["3","4","6","8","9","12"]).describe("The width of the field in the form layout."),maxFileCount:or().optional().describe("Maximum number of files allowed.").default(50),fileSizeLimit:or().optional().describe("Maximum file size limit in bytes.").default(20971520),watermarkField:Hn($e({text:ee().describe("Field name."),name:ee().describe("Field ID."),type:ee().describe("Field type."),regex:ee().optional().describe("Field regex."),value:ee().describe("Field value."),newText:ee().describe("New field text.")})).optional().describe("Fields to be used for watermarking."),watermarkColor:ee().optional().describe("Color of the watermark text.").default("#616161"),description:ee().max(300).optional().describe("A brief description of the image field.")}),execute:e=>{const{label:t,required:n,fieldWidth:a,description:i,maxFileCount:l,fileSizeLimit:u,watermarkColor:f,watermarkField:h}=e;return{widget:{type:"image",widgetName:Ta(),widgetNameAlias:"",customCls:null,height:100,enable:!0,visible:!0,allowBlank:!n,labelStyle:t,funMode:"module",module:null,libs:[],extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none",version:1},maxFileCount:l,download:!0,is_file_down:!0,check_image_exif:!0,online_edit:!1,online_edit_record:!1,fileSizeLimit:u,fileType:["jpg","jpeg","png","gif","bmp","tif"],compressed:!0,wxOriginalComponent:!0,onlyCamera:!1,preview:!0,watermarkSwitch:!0,watermarkPosition:"center",watermarkFieldTitle:!0,watermarkSize:"14",watermarkColor:f,watermarkField:h,watermarkFixedField:{},previewWidth:450,previewHeight:450,browserCompress:!0,quality:.7},description:i,label:t,lineWidth:parseInt(a,10),tab:null}}},Roe={name:"buildAttachmentField",description:"Builds an attachment field for a form.",inputSchema:$e({label:ee().min(1).max(100),placeholder:ee().min(1).max(100).optional(),required:fn().default(!1),fieldWidth:vn(["3","4","6","8","9","12"]).default("12"),description:ee().min(1).max(100).optional(),fileType:vn(["exe","pdf","doc","docx","xls","xlsx","ppt","pptx","txt","jpg","jpeg","png","gif","bmp"]).array().optional().default(["exe","pdf"])}),execute:e=>{const{label:t,required:n,fieldWidth:a,description:i,fileType:l}=e;return{widget:{type:"upload",widgetName:Ta(),widgetNameAlias:"",customCls:null,enable:!0,visible:!0,allowBlank:!n,labelStyle:t,maxFileCount:50,download:!0,is_file_down:!0,check_image_exif:!0,online_edit:!0,online_edit_record:!0,fileSizeLimit:10485760,fileType:l},description:i,label:t,lineWidth:parseInt(a),tab:null}}},Moe={name:"buildSignatureField",description:"Build a signature field for a form. The signature field should allow users to draw their signature using a mouse or touchscreen.",inputSchema:$e({label:ee().min(1).max(100),placeholder:ee().min(1).max(100).optional(),required:fn().default(!1),fieldWidth:vn(["3","4","6","8","9","12"]).default("12"),description:ee().min(1).max(100).optional()}),execute:e=>{const{label:t,required:n,fieldWidth:a}=e;return{widget:{type:"signature",widgetName:Ta(),widgetNameAlias:"",customCls:null,height:34,width:350,enable:!0,visible:!0,allowBlank:!n,rely:null,labelStyle:t},description:null,label:t,lineWidth:parseInt(a,10),tab:null}}},Aoe={name:"buildMemberSelectField",description:"Build a team member select field for a form. The field allows users to select one members from own orgnization.",inputSchema:$e({label:ee().min(1).max(100),placeholder:ee().min(1).max(100).optional(),required:fn().default(!1),fieldWidth:vn(["3","4","6","8","9","12"]).default("12"),description:ee().min(1).max(100).optional()}),execute:e=>{const{label:t,required:n,fieldWidth:a,description:i}=e;return{widget:{type:"user",widgetName:Ta(),widgetNameAlias:"",customCls:null,height:"34",width:350,enable:!0,visible:!0,allowBlank:!n,labelStyle:t,funMode:"module",module:null,libs:[],extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none",version:1},noRepeat:!1,limit:{},limitWidget:null,valueOption:0},description:i,label:t,lineWidth:parseInt(a),tab:null}}},Noe={name:"buildDepartmentSelectField",description:"build a department select field for a form",inputSchema:$e({label:ee().min(1).max(100),placeholder:ee().min(1).max(100).optional(),required:fn().default(!1),fieldWidth:vn(["3","4","6","8","9","12"]).default("12"),description:ee().min(1).max(100).optional()}),execute:e=>{const{label:t,description:n,fieldWidth:a,required:i}=e;return{widget:{type:"dept",widgetName:Ta(),widgetNameAlias:"",customCls:null,height:"34",width:350,enable:!0,visible:!0,allowBlank:!i,labelStyle:t,funMode:"module",module:null,libs:[],extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none",version:1},noRepeat:!1,limit:{},valueOption:0},description:n,label:t,lineWidth:parseInt(a,10),tab:null}}},Loe={name:"buildDepartmentGroupSelectField",description:"build a multiple department select field for a form",inputSchema:$e({label:ee().min(1).max(100),placeholder:ee().min(1).max(100).optional(),required:fn().default(!1),fieldWidth:vn(["3","4","6","8","9","12"]).default("12"),description:ee().min(1).max(100).optional()}),execute:e=>{const{label:t,description:n,fieldWidth:a,required:i}=e;return{widget:{type:"deptgroup",widgetName:Ta(),widgetNameAlias:"",customCls:null,height:"34",width:350,enable:!0,visible:!0,allowBlank:!i,labelStyle:t,funMode:"module",module:null,libs:[],extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none",version:1},noRepeat:!1,limit:{},valueOption:0},description:n,label:t,lineWidth:parseInt(a,10),tab:null}}},Ooe={name:"buildMemberGroupSelectField",description:"Build a team member multipyle select field for a form. The field allows users to select multiple members from own orgnization.",inputSchema:$e({label:ee().min(1).max(100),placeholder:ee().min(1).max(100).optional(),required:fn().default(!1),fieldWidth:vn(["3","4","6","8","9","12"]).default("12"),description:ee().min(1).max(100).optional()}),execute:e=>{const{label:t,required:n,fieldWidth:a,description:i}=e;return{widget:{type:"usergroup",widgetName:Ta(),widgetNameAlias:"",customCls:null,height:"34",width:350,enable:!0,visible:!0,allowBlank:!n,labelStyle:t,funMode:"module",module:null,libs:[],extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none",version:1},noRepeat:!1,limit:{},limitWidget:null,valueOption:0},description:i,label:t,lineWidth:parseInt(a),tab:null}}},Ioe=$e({type:$t("incNumber"),digitsNum:or().min(2).max(12),resetDuration:vn(["none","day","week","month","year"]),startValue:or().min(0),fixedLength:fn()}),Doe=$e({type:$t("fixedChars"),chars:ee().min(1).max(100)}),joe=$e({type:$t("widget"),widgetName:ee().min(1).max(100)}),Poe=ua([Ioe,Doe,joe]),Foe={name:"buildSerialNumberField",description:"Builds a serial number field for a form.",inputSchema:$e({label:ee().min(1).max(100).describe("The label for the serial number field."),description:ee().max(500).optional().describe("An optional description for the serial number field."),fieldWidth:vn(["3","4","6","8","9","12"]).default("12").describe("The width of the field in the form. total is 12."),rules:Hn(Poe).min(1).describe("The rules for generating the serial number.")}),execute:e=>{const{label:t,description:n,fieldWidth:a,rules:i}=e;return{widget:{type:"sn",widgetName:Ta(),widgetNameAlias:"",triggerEvent:0,customCls:null,width:350,enable:!0,visible:!0,labelStyle:"流水号",rules:i,importMode:1},description:n,label:t,lineWidth:parseInt(a),tab:null}}},zoe={name:"buildLoadDataBtn",description:"add a button field to load data from another form.",inputSchema:$e({label:ee().min(1).max(100),placeholder:ee().min(1).max(100).optional(),required:fn().default(!1),fieldWidth:vn(["3","4","6","8","9","12"]).default("12"),description:ee().min(1).max(100).optional()}),execute:e=>{const{label:t,required:n,fieldWidth:a,description:i}=e;return{widget:{type:"dataload",widgetName:Ta(),widgetNameAlias:"",customCls:null,width:350,text:t,enable:!0,visible:!0,allowBlank:!n,labelStyle:t,loaddataconfig:{mode:"tree",extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none"},dataloadmode:["add","cover"]},allowAddData:!0,mode:"list"},description:i,label:t,lineWidth:parseInt(a),tab:null}}},Hoe={name:"buildLinkDataField",description:"Build a field to present multipyle related fields from another form",inputSchema:$e({label:ee().min(1).max(100),required:fn().default(!1),fieldWidth:vn(["3","4","6","8","9","12"]).default("12"),description:ee().min(1).max(100).optional(),relatedFormName:ee().min(1).max(100).optional()}),execute:(e,{experimental_context:t})=>{const{label:n,description:a,required:i,fieldWidth:l}=e,u=t,f=Ta();return n&&u&&(u.relatedForms[n]=f),{widget:{type:"linkdata",widgetName:f,widgetNameAlias:"",customCls:null,enable:!0,visible:!0,allowBlank:!i,rely:{widgets:[]},labelStyle:n,linkFilter:{},linkFields:[],allowAdd:!0,refType:"form"},description:a,label:n,lineWidth:parseInt(l,10),tab:null}}},dc=Object.freeze(Object.defineProperty({__proto__:null,buildAddressField:koe,buildAttachmentField:Roe,buildButtonField:Coe,buildCheckBoxGroupField:xoe,buildDateTimeField:loe,buildDepartmentGroupSelectField:Loe,buildDepartmentSelectField:Noe,buildFieldSplitline:Soe,buildImageField:Toe,buildInputField:doe,buildLinkDataField:Hoe,buildLoadDataBtn:zoe,buildLocationField:Eoe,buildMemberGroupSelectField:Ooe,buildMemberSelectField:Aoe,buildNumberInputField:_oe,buildRadioField:foe,buildSelectCheckerField:boe,buildSelectField:coe,buildSerialNumberField:Foe,buildSignatureField:Moe,buildTextareaField:yoe,confirmToCreateFieldsForRelatedForm:moe,confirmToCreateForm:hoe,confirmToCreateRelatedForm:goe,confirmToSaveCheckedFields:poe,promptToCreateRelatedForm:voe},Symbol.toStringTag,{value:"Module"})),VA=UA(dc),Uoe=BA(dc);$e({value:ee().min(1).max(100),text:ee().min(1).max(100),color:ee().optional()});const Boe=()=>{const e={},t=BA(dc);for(const n of Object.keys(dc)){const a=n;t.has(n)&&(e[n]=dc[a])}return e},Voe=()=>{const e={},t=UA(dc);for(const n of Object.keys(dc)){const a=n;t.includes(n)&&(e[n]=dc[a])}return e},$oe=Boe();Voe();const Zoe=`
|
|
534
|
-
你是表单字段设计专家,根据设计说明理解业务需求,首先对表单进行介绍,从业务角度输出简要的字段设计说明。
|
|
535
|
-
|
|
536
|
-
格式:
|
|
537
|
-
- 关联字段 label 命名无需加“关联”二字,直接像设计普通字段一样命名
|
|
538
|
-
- 关联字段创建无需特定分区和说明,像设计普通字段一样设计
|
|
539
|
-
- 统一使用中文
|
|
540
|
-
|
|
541
|
-
注意:
|
|
542
|
-
- 必须设计一个关联字段,即使在关联表中,也尝试继续生成关联字段(优先使用记录类字段)
|
|
543
|
-
- 如果设计的是关联表,设计流水号字段,用来被其他表单关联
|
|
544
|
-
- 字段数量控制在 10 个以内
|
|
545
|
-
- 涉及到合同、记录相关等信息时,使用关联字段,组织架构相关信息,无需关联
|
|
546
|
-
- 无需设计真实的表单,只需输出字段设计说明
|
|
547
|
-
- 直接根据用户输入推断需求
|
|
548
|
-
- 字段类型尽量使用多样化字段,避免单一字段类型
|
|
549
|
-
|
|
550
|
-
输出示例:
|
|
551
|
-
|
|
552
|
-
创建一张“用户信息”表,用于系统中管理和维护所有用户的基本资料和账户状态,支持用户身份识别、权限管理及后续业务流程的对接。该表是用户相关业务的核心表单,广泛应用于认证授权、客户管理、营销活动、服务交付等环节。
|
|
553
|
-
|
|
554
|
-
**字段列举:**
|
|
555
|
-
- 用户编号(唯一标识,主键)
|
|
556
|
-
- 用户姓名(真实姓名)
|
|
557
|
-
- 用户昵称(系统显示名)
|
|
558
|
-
- 账户类型(如普通用户、管理员、VIP客户等)
|
|
559
|
-
- 手机号码(用于登录和联系)
|
|
560
|
-
- 电子邮箱(用于通知与找回密码)
|
|
561
|
-
- 性别
|
|
562
|
-
- 出生日期
|
|
563
|
-
- 所在地区(省市区)
|
|
564
|
-
- 详细地址
|
|
565
|
-
- 注册渠道(如官网、App、第三方授权)
|
|
566
|
-
- 用户状态(激活、冻结、注销等)
|
|
567
|
-
- 最近登录时间
|
|
568
|
-
- 登录次数
|
|
569
|
-
- 关联账户(如公司/组织、合作伙伴)
|
|
570
|
-
- 用户等级(积分等级或会员等级)
|
|
571
|
-
- 备注说明
|
|
572
|
-
|
|
573
|
-
**关联说明:**
|
|
574
|
-
- 关联订单表(用户可关联多个订单)
|
|
575
|
-
- 关联权限角色表(实现权限管理)
|
|
576
|
-
- 关联营销活动参与记录表(用户参与的营销活动)
|
|
577
|
-
- 关联客服工单表(用户反馈与支持)
|
|
578
|
-
|
|
579
|
-
**设计说明:**
|
|
580
|
-
该表结构设计兼顾用户身份信息的完整性与业务拓展需求,注重数据的规范化和关联性。字段覆盖用户基本身份信息及账户状态,有助于实现精准营销及服务管理。可根据实际业务需求扩展用户画像字段(如兴趣爱好、行为标签),或增加多账户、多设备管理等功能。与其他业务实体的关联设计方便后续业务流程的整合和数据分析。
|
|
581
|
-
|
|
582
|
-
`;class xg{constructor(t,n,a={},i=()=>({})){qe(this,"agent");qe(this,"confirmInfo");qe(this,"context",{});qe(this,"buildPayload");a&&(this.context={...this.context,...a}),this.agent=new HZ({...t,experimental_context:this.context}),this.buildPayload=i,this.confirmInfo=n}static create(t,n,a={},i=()=>({})){return new xg(t,n,a,i)}getCtx(){return this.context}getResp(t,n){const a=GZ({originalMessages:t,execute:async({writer:i})=>{const l=this.agent.stream({messages:yE(t)});i.merge(l.toUIMessageStream({originalMessages:t}));for await(const u of l.fullStream);this.confirmInfo&&(this.confirmInfo.data.payload=this.buildPayload(this.context,n),i.write(this.confirmInfo))}});return uE({stream:a})}}new xg({system:Zoe,model:zA},{type:"data-confirm",data:{type:"tool-confirmToCreateForm",payload:{formName:""}}},{},(e,t)=>({formName:t.name}));const Woe=`
|
|
583
|
-
你是表单字段构建专家,根据上下文设计说明理解业务需求,完成表单字段构建,生成字段描述 json。设计文档中字段设计完毕后,立即停止。
|
|
584
|
-
|
|
585
|
-
输出:
|
|
586
|
-
- 仅包含工具的结构化输出,不包含任何其他文字说明
|
|
587
|
-
- 严格按设计说明的个数,严禁新增、遗漏字段
|
|
588
|
-
- 设计中提到要关联其他表的字段,必须使用关联字段设计工具
|
|
589
|
-
-
|
|
590
|
-
|
|
591
|
-
注意:
|
|
592
|
-
- 关联字段有最高优先级,如果上下文提到字段需要关联其他表,必须使用关联字段设计工具
|
|
593
|
-
- 涉及到合同、记录相关等字段信息时,使用关联字段
|
|
594
|
-
- 表单布局需要紧凑合理
|
|
595
|
-
- 关联表单无需重复设计字段反向关联
|
|
596
|
-
- 对于身份证号、手机号等字段,使用文本字段,并添加相应的正则表达式校验
|
|
597
|
-
- 字段设计时,注意字段的必填项和选填项
|
|
598
|
-
- 字段类型尽量使用多样化字段,避免单一字段类型
|
|
599
|
-
- 请至少使用(buildLinkDataField)工具设计一个关联字段
|
|
600
|
-
`,qoe={name:"promptToStop",description:"stop when all fields have been built and no more fields are needed to be added.",inputSchema:$e({hasRelatedForm:fn()}),outputSchema:fn(),execute:e=>e.hasRelatedForm},Goe={...$oe,promptToStop:qoe},Yoe=({steps:e})=>e.some(t=>t.content.some(n=>n.type==="tool-result"&&n.toolName==="promptToStop"));new xg({system:Woe,model:zA,tools:Goe,toolChoice:"required",stopWhen:Yoe},{type:"data-confirm",data:{type:"tool-confirmToSaveCheckedFields",payload:{formName:"",relatedForms:{}}}},{relatedForms:{}},(e,t)=>(console.log("ctx",e),{formName:t.name,relatedForms:e.relatedForms}));const Joe=e=>{const{part:t,id:n,index:a,sendMessage:i,role:l,addToolOutput:u}=e,f=t,h=`message-${n}-part-${a}-${f.type}`;if(f.type==="text"&&f.text)return C.jsx("div",{children:C.jsx(Ka,{className:Ge({"w-fit wrap-break-words rounded-2 px-3 py-2 text-right text-white":l==="user","bg-transparent px-0 py-0 text-left":l==="assistant"}),"data-testid":"message-content",style:l==="user"?{backgroundColor:"#006cff"}:void 0,children:C.jsx(fm,{id:n,content:m2(f.text)})})},h);if(f.type==="data-confirm"){const g=f.data;return C.jsx(eoe,{input:g.payload,sendMessage:i,onCancel:()=>{},type:g.type},h)}if(xd(f)){const g=$h(f);if(g==="promptToCreateRelatedForm"&&f.state==="output-available")return C.jsx("div",{children:C.jsx(Ka,{className:"gap-0 py-0",compact:!0,children:C.jsx(fm,{id:n,content:m2(f.output?"是否继续创建关联表?":"表单创建已完成。")})})},h);if(f.state==="output-available"&&Uoe.has(g))return C.jsx("div",{children:C.jsx(Ka,{className:"gap-0 py-0",compact:!0,children:(f==null?void 0:f.output)&&C.jsx(k6,{field:f.output})})},h);if(VA.includes(g)&&f.state==="input-available"){const x=L.useCallback(k=>{u({toolCallId:f.toolCallId,tool:g,output:HA.YES}),i(void 0,k)},[f.toolCallId,g]),y=L.useCallback(()=>{u({toolCallId:f.toolCallId,tool:g,output:HA.NO}),i()},[f.toolCallId,g]);return C.jsx(Jae,{input:f.input,onConfirm:x,onCancel:y,type:f.type},h)}if(VA.includes(g)&&f.state==="output-available"){const x=f;return C.jsx(Qae,{input:x.input,output:x.output,type:x.type},f.toolCallId)}}return null};class $A extends NA{constructor(){super(...arguments);qe(this,"pluginName",M6);qe(this,"customComponents",{MessagePart:Joe})}}const Xoe={Plugin:$A,createContext:()=>({})},eu=e=>{const t=D1(e);return t?t.Context:null},Koe=({sendMessage:e})=>{const t=eu(Nd),n=Ql();if((t==null?void 0:t.fillMode)==="batch"){const a=Array.from((t==null?void 0:t.fieldMap.values())||[]);return C.jsxs(C.Fragment,{children:["需要测试数据?试试AI示例数据功能。如果您对添加的数据有具体要求也可以告诉我。",C.jsx(j1,{light:!0,onClick:()=>{n.emit("form-filling-batch-fill-begin",{}),e({text:`添加 ${wm} 条测试数据`},{body:{stage:"fill",formStructure:EA(a),mode:t==null?void 0:t.fillMode,count:wm}})},text:"直接添加"})]})}return C.jsx(C.Fragment,{children:"我可以为您解析文本内容,智能填写到表单字段,请方输入内容开始创建"})},A6=({children:e,width:t,height:n,padding:a,borderWidth:i=2,borderRadius:l=12,bgInset:u,style:f})=>{const h=typeof t=="number"&&typeof n=="number",g=h?Math.max(t!=null?t:0,n!=null?n:0):0,x=h?-1*g*1.5:"-150%";return C.jsxs("div",{style:{position:"relative",width:t!=null?t:"100%",height:n!=null?n:"100%",borderRadius:l,overflow:"hidden"},children:[C.jsx("div",{style:{position:"absolute",inset:u!==void 0?-u:x,background:"conic-gradient(from 0deg, #0265FF, #00D4FF, #0265FF, #00D4FF, #0265FF)",animation:"borderRotate 4s linear infinite"}}),C.jsx("div",{style:{...f,position:"absolute",inset:i,borderRadius:l-2,background:"white",zIndex:1,padding:a||0},children:e}),C.jsx("style",{children:`
|
|
601
|
-
@keyframes borderRotate {
|
|
602
|
-
0% {
|
|
603
|
-
transform: rotate(0deg);
|
|
604
|
-
}
|
|
605
|
-
100% {
|
|
606
|
-
transform: rotate(360deg);
|
|
607
|
-
}
|
|
608
|
-
}
|
|
609
|
-
`})]})},Qoe=({defaultChecked:e=!1,checked:t,onCheckedChange:n,children:a,disabled:i=!1,className:l})=>{const[u,f]=L.useState(e),h=t!==void 0,g=h?t:u,x=()=>{if(i)return;const y=!g;h||f(y),n==null||n(y)};return C.jsxs("button",{type:"button",role:"checkbox","aria-checked":g,disabled:i,onClick:x,className:Ge("inline-flex items-center gap-[6px] cursor-pointer select-none","text-[#121111] text-[14px]",i&&"cursor-not-allowed opacity-50",l),children:[C.jsx("span",{className:Ge("inline-flex items-center justify-center w-4 h-4 rounded-full transition-colors duration-200 box-border border",g?"bg-[#2E60FF] border-transparent":"bg-white border-[#e0e0e0]"),children:g&&C.jsx("span",{className:"text-white",children:C.jsx(KE,{})})}),a&&C.jsx("span",{className:"text-sm",children:a})]})},eie=e=>{const t=Ql();return L.useCallback(n=>{const a=SA(n.value);t.emit(So.FIELD_FILLED_UPDATE,{field:{label:n.label,widget:{widgetName:n.fieldName,type:n.fieldType,value:a,row:n.row||0}},messageId:e,checked:!0})},[])},tie=(e,t)=>{const n=L.useRef(null);L.useEffect(()=>{var u;if(!e)return;const a=e.text,l=`[${a==null?void 0:a.replace(/,\s*$/,"")}]`;try{const f=JSON.parse(l);if(!Array.isArray(f)||f.length===0)return;const h=f[f.length-1];if(((u=n.current)==null?void 0:u.fieldName)===(h==null?void 0:h.fieldName))return;t(f,h),n.current=h}catch(f){console.error("Failed to parse fields JSON:",f,l)}},[e])},nie=({sendMessage:e,status:t,id:n,fields:a})=>{const[i,l]=L.useState(t==="streaming"),u=Ql();L.useEffect(()=>{(t==="ready"||t==="error")&&l(!1)},[t]);const f=eu(Nd),h=()=>!a||a.length===0?0:a[a.length-1].row||0,g=L.useCallback(x=>{u.emit("form-filling-fields-checked-update",{messageId:n,checked:x}),console.log("filling-fields check udpate",n,x)},[n]);return i?C.jsx(A6,{width:"100%",height:40,padding:10,borderRadius:4,bgInset:1e3,borderWidth:1.5,style:{display:"flex",alignItems:"center"},children:C.jsx(O2,{children:"数据生成中,可点击下方按钮暂停"})}):C.jsxs("div",{className:"rounded-[10px] border border-[var(--e0e0e0,#E0E0E0)] w-full flex items-center flex-col gap-[10px] p-[4px] pb-[20px]",children:[C.jsx("div",{className:"flex items-center w-full py-[10px] px-[16px] gap-[6px]",children:C.jsxs(Qoe,{defaultChecked:!0,onCheckedChange:g,children:["已生成",h(),"条数据"]})}),C.jsx(j1,{text:`继续生成${wm}条`,className:"w-[300px]",onClick:()=>{if(t==="streaming"||i)return;l(!0);const x=Array.from((f==null?void 0:f.fieldMap.values())||[]);e({text:""},{body:{mode:"batch",count:wm,msg:`继续生成${wm}条`,formStructure:EA(x),continueMessageId:n}})}})]})},rie=({parts:e,...t})=>{const[n,a]=L.useState([]),i=e!=null&&e.length?e==null?void 0:e[e.length-1]:void 0,l=eie(t.id);return tie(i,(u,f)=>{a(u),l(f)}),i?C.jsx(nie,{fields:n,...t}):null},aie=L.memo(rie,(e,t)=>{var i,l,u,f,h,g;const n=(i=t.parts)!=null&&i.length?(l=t.parts)==null?void 0:l[t.parts.length-1]:void 0,a=(u=e.parts)!=null&&u.length?(f=e.parts)==null?void 0:f[e.parts.length-1]:void 0;return((h=e.parts)==null?void 0:h.length)===((g=t.parts)==null?void 0:g.length)&&(a==null?void 0:a.text)===(n==null?void 0:n.text)&&e.status===t.status&&e.sendMessage===t.sendMessage&&e.id===t.id}),oie=e=>{const{part:t,id:n,sendMessage:a,setMessages:i,status:l}=e,u=t,f=h2(u),h=eu(Nd),g=$E(u);h&&(h.conversationId=n),cg("chat-area-visibility-change",k=>{(k==null?void 0:k.visible)===!1&&(h==null?void 0:h.fillMode)==="batch"&&i(()=>[])});const x=Ql(),y=Array.isArray(u)&&u.length?u:f?[u]:[];if(y.length&&h&&h.fillMode!=="batch"){const k=y.map(b=>{var N,O;const T=VE(b);if(!((N=h.fieldMap)!=null&&N.has(T.fieldName))&&!((O=h.subFieldsNameMap)!=null&&O.has(T.fieldName)))return console.warn("unregistered field:",T.fieldName,h.fieldMap),null;const R=SA(T.value);return{field:{label:T.label,widget:{widgetName:T.fieldName,type:T.fieldType,value:T.value}},onLoaded:P=>{var z;P.widget.value=R,h.valueMap.set((z=P.widget)==null?void 0:z.widgetName,R),x.emit(So.FIELD_FILLED_UPDATE,{field:P,checked:!0})},onChange:(P,z,j,V)=>{var H;P&&h.valueMap.set((H=z.widget)==null?void 0:H.widgetName,R),x.emit(So.FIELD_FILLED_UPDATE,{field:z,checked:P,parentFieldName:j,rowIndex:V})}}});return C.jsx(Ka,{className:"gap-0 py-0",compact:!0,children:C.jsx(Zae,{props:k.filter(b=>b!==null)})})}return(h==null?void 0:h.fillMode)==="batch"&&y.length?C.jsx(aie,{id:n,setMessages:i,status:l,parts:y,sendMessage:a}):g?C.jsx(j1,{children:"保存"}):u.text!==void 0&&u.text.trim()!==""?C.jsx(X2,{...e}):null},iie=({style:e,onClick:t,variant:n})=>{const a=eu(Nd);return n==="batch"?C.jsx(vg,{icon:C.jsx(I5,{}),onClick:()=>{a!=null&&a.fillMode&&(a.fillMode="batch"),t==null||t()},children:"AI填报示例数据"}):C.jsx(dg,{style:e,onClick:()=>{a!=null&&a.fillMode&&(a.fillMode="AI"),t==null||t()},entryVariant:"ghost",icon:C.jsx(I5,{}),children:"AI填写"})},sie=({variant:e="default"})=>{const t=e==="default"?20:24,n=eu(Nd),a=(n==null?void 0:n.fillMode)==="batch"?"AI填报示例数据":"AI填写";return C.jsx(Wh,{name:a,icon:C.jsx(I5,{size:t}),variant:e})};var N6="rovingFocusGroup.onEntryFocus",lie={bubbles:!1,cancelable:!0},bm="RovingFocusGroup",[L6,ZA,uie]=eM(bm),[cie,WA]=Js(bm,[uie]),[die,fie]=cie(bm),qA=L.forwardRef((e,t)=>C.jsx(L6.Provider,{scope:e.__scopeRovingFocusGroup,children:C.jsx(L6.Slot,{scope:e.__scopeRovingFocusGroup,children:C.jsx(pie,{...e,ref:t})})}));qA.displayName=bm;var pie=L.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:a,loop:i=!1,dir:l,currentTabStopId:u,defaultCurrentTabStopId:f,onCurrentTabStopIdChange:h,onEntryFocus:g,preventScrollOnEntryFocus:x=!1,...y}=e,k=L.useRef(null),b=Vn(t,k),T=tM(l),[R,N]=x1({prop:u,defaultProp:f!=null?f:null,onChange:h,caller:bm}),[O,P]=L.useState(!1),z=ec(g),j=ZA(n),V=L.useRef(!1),[H,W]=L.useState(0);return L.useEffect(()=>{const G=k.current;if(G)return G.addEventListener(N6,z),()=>G.removeEventListener(N6,z)},[z]),C.jsx(die,{scope:n,orientation:a,dir:T,loop:i,currentTabStopId:R,onItemFocus:L.useCallback(G=>N(G),[N]),onItemShiftTab:L.useCallback(()=>P(!0),[]),onFocusableItemAdd:L.useCallback(()=>W(G=>G+1),[]),onFocusableItemRemove:L.useCallback(()=>W(G=>G-1),[]),children:C.jsx(hn.div,{tabIndex:O||H===0?-1:0,"data-orientation":a,...y,ref:b,style:{outline:"none",...e.style},onMouseDown:nn(e.onMouseDown,()=>{V.current=!0}),onFocus:nn(e.onFocus,G=>{const ae=!V.current;if(G.target===G.currentTarget&&ae&&!O){const ye=new CustomEvent(N6,lie);if(G.currentTarget.dispatchEvent(ye),!ye.defaultPrevented){const ce=j().filter(Ee=>Ee.focusable),he=ce.find(Ee=>Ee.active),ue=ce.find(Ee=>Ee.id===R),ke=[he,ue,...ce].filter(Boolean).map(Ee=>Ee.ref.current);JA(ke,x)}}V.current=!1}),onBlur:nn(e.onBlur,()=>P(!1))})})}),GA="RovingFocusGroupItem",YA=L.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:a=!0,active:i=!1,tabStopId:l,children:u,...f}=e,h=tc(),g=l||h,x=fie(GA,n),y=x.currentTabStopId===g,k=ZA(n),{onFocusableItemAdd:b,onFocusableItemRemove:T,currentTabStopId:R}=x;return L.useEffect(()=>{if(a)return b(),()=>T()},[a,b,T]),C.jsx(L6.ItemSlot,{scope:n,id:g,focusable:a,active:i,children:C.jsx(hn.span,{tabIndex:y?0:-1,"data-orientation":x.orientation,...f,ref:t,onMouseDown:nn(e.onMouseDown,N=>{a?x.onItemFocus(g):N.preventDefault()}),onFocus:nn(e.onFocus,()=>x.onItemFocus(g)),onKeyDown:nn(e.onKeyDown,N=>{if(N.key==="Tab"&&N.shiftKey){x.onItemShiftTab();return}if(N.target!==N.currentTarget)return;const O=gie(N,x.orientation,x.dir);if(O!==void 0){if(N.metaKey||N.ctrlKey||N.altKey||N.shiftKey)return;N.preventDefault();let z=k().filter(j=>j.focusable).map(j=>j.ref.current);if(O==="last")z.reverse();else if(O==="prev"||O==="next"){O==="prev"&&z.reverse();const j=z.indexOf(N.currentTarget);z=x.loop?vie(z,j+1):z.slice(j+1)}setTimeout(()=>JA(z))}}),children:typeof u=="function"?u({isCurrentTabStop:y,hasTabStop:R!=null}):u})})});YA.displayName=GA;var hie={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function mie(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function gie(e,t,n){const a=mie(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(a))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(a)))return hie[a]}function JA(e,t=!1){const n=document.activeElement;for(const a of e)if(a===n||(a.focus({preventScroll:t}),document.activeElement!==n))return}function vie(e,t){return e.map((n,a)=>e[(t+a)%e.length])}var yie=qA,xie=YA,O6="Radio",[wie,XA]=Js(O6),[bie,Cie]=wie(O6),KA=L.forwardRef((e,t)=>{const{__scopeRadio:n,name:a,checked:i=!1,required:l,disabled:u,value:f="on",onCheck:h,form:g,...x}=e,[y,k]=L.useState(null),b=Vn(t,N=>k(N)),T=L.useRef(!1),R=y?g||!!y.closest("form"):!0;return C.jsxs(bie,{scope:n,checked:i,disabled:u,children:[C.jsx(hn.button,{type:"button",role:"radio","aria-checked":i,"data-state":nN(i),"data-disabled":u?"":void 0,disabled:u,value:f,...x,ref:b,onClick:nn(e.onClick,N=>{i||h==null||h(),R&&(T.current=N.isPropagationStopped(),T.current||N.stopPropagation())})}),R&&C.jsx(tN,{control:y,bubbles:!T.current,name:a,value:f,checked:i,required:l,disabled:u,form:g,style:{transform:"translateX(-100%)"}})]})});KA.displayName=O6;var QA="RadioIndicator",eN=L.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:a,...i}=e,l=Cie(QA,n);return C.jsx(Xl,{present:a||l.checked,children:C.jsx(hn.span,{"data-state":nN(l.checked),"data-disabled":l.disabled?"":void 0,...i,ref:t})})});eN.displayName=QA;var Sie="RadioBubbleInput",tN=L.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:a=!0,...i},l)=>{const u=L.useRef(null),f=Vn(u,l),h=t6(n),g=Y5(t);return L.useEffect(()=>{const x=u.current;if(!x)return;const y=window.HTMLInputElement.prototype,b=Object.getOwnPropertyDescriptor(y,"checked").set;if(h!==n&&b){const T=new Event("click",{bubbles:a});b.call(x,n),x.dispatchEvent(T)}},[h,n,a]),C.jsx(hn.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...i,tabIndex:-1,ref:f,style:{...i.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});tN.displayName=Sie;function nN(e){return e?"checked":"unchecked"}var kie=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],wg="RadioGroup",[Eie]=Js(wg,[WA,XA]),rN=WA(),aN=XA(),[_ie,Tie]=Eie(wg),oN=L.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:a,defaultValue:i,value:l,required:u=!1,disabled:f=!1,orientation:h,dir:g,loop:x=!0,onValueChange:y,...k}=e,b=rN(n),T=tM(g),[R,N]=x1({prop:l,defaultProp:i!=null?i:null,onChange:y,caller:wg});return C.jsx(_ie,{scope:n,name:a,required:u,disabled:f,value:R,onValueChange:N,children:C.jsx(yie,{asChild:!0,...b,orientation:h,dir:T,loop:x,children:C.jsx(hn.div,{role:"radiogroup","aria-required":u,"aria-orientation":h,"data-disabled":f?"":void 0,dir:T,...k,ref:t})})})});oN.displayName=wg;var iN="RadioGroupItem",sN=L.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:a,...i}=e,l=Tie(iN,n),u=l.disabled||a,f=rN(n),h=aN(n),g=L.useRef(null),x=Vn(t,g),y=l.value===i.value,k=L.useRef(!1);return L.useEffect(()=>{const b=R=>{kie.includes(R.key)&&(k.current=!0)},T=()=>k.current=!1;return document.addEventListener("keydown",b),document.addEventListener("keyup",T),()=>{document.removeEventListener("keydown",b),document.removeEventListener("keyup",T)}},[]),C.jsx(xie,{asChild:!0,...f,focusable:!u,active:y,children:C.jsx(KA,{disabled:u,required:l.required,checked:y,...h,...i,name:l.name,ref:x,onCheck:()=>l.onValueChange(i.value),onKeyDown:nn(b=>{b.key==="Enter"&&b.preventDefault()}),onFocus:nn(i.onFocus,()=>{var b;k.current&&((b=g.current)==null||b.click())})})})});sN.displayName=iN;var Rie="RadioGroupIndicator",Mie=L.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...a}=e,i=aN(n);return C.jsx(eN,{...i,...a,ref:t})});Mie.displayName=Rie;var Aie=oN,Nie=sN;const lN=L.forwardRef(({className:e,options:t,...n},a)=>C.jsx(Aie,{ref:a,className:Ge("flex flex-col items-start justify-center p-[2px] rounded-[4px] bg-[#EFF0F6]",e),...n,children:C.jsx("div",{className:"flex gap-[2px] items-center w-full",children:t.map(i=>C.jsx(uN,{value:i.value,children:i.label},i.value))})}));lN.displayName="TabRadioGroup";const uN=L.forwardRef(({className:e,children:t,...n},a)=>C.jsx(Nie,{ref:a,className:Ge("flex-1 h-[30px] flex items-center justify-center px-[10px] py-[7px] rounded-[4px] text-[14px] text-[#121111] cursor-pointer","border border-solid border-[#EFF0F6] bg-transparent","transition-all ease-out duration-200","outline-none","hover:text-[#121111] hover:border-[#E0E0E0] hover:bg-white","data-[state=checked]:text-[#0265FF] data-[state=checked]:border-[#E0E0E0] data-[state=checked]:bg-white",e),...n,children:t}));uN.displayName="TabRadioItem";const Lie=()=>{const e=Ql(),t=eu(Nd);return(t==null?void 0:t.fillMode)==="batch"?null:C.jsx(lN,{onValueChange:n=>{e.emit(So.MODE_CHANGE,{mode:n})},options:[{value:"AI",label:"✨智能填写"},{value:"normal",label:"普通填写"}],defaultValue:"AI"})};function Oie(e,t={}){const{prototype:n=!1,depth:a=1/0,customHandler:i,nonEnumerable:l=!0}=t,u=new WeakMap;function f(h,g){if(h===null||typeof h!="object"||g>=a)return h;if(i){const k=i(h);if(k!==void 0)return k}if(u.has(h))return u.get(h);if(h instanceof Date)return new Date(h.getTime());if(h instanceof RegExp){const k=new RegExp(h.source,h.flags);return k.lastIndex=h.lastIndex,k}if(h instanceof Map){const k=new Map;return u.set(h,k),h.forEach((b,T)=>{k.set(f(T,g+1),f(b,g+1))}),k}if(h instanceof Set){const k=new Set;return u.set(h,k),h.forEach(b=>{k.add(f(b,g+1))}),k}if(h instanceof ArrayBuffer){const k=new ArrayBuffer(h.byteLength);return new Uint8Array(k).set(new Uint8Array(h)),k}if(typeof SharedArrayBuffer!="undefined"&&h instanceof SharedArrayBuffer)return h;if(ArrayBuffer.isView(h)&&!(h instanceof DataView)){const k=h.constructor,b=h.buffer.slice(0);return new k(b,h.byteOffset,h.byteLength/h.BYTES_PER_ELEMENT)}if(h instanceof DataView)return new DataView(h.buffer.slice(0),h.byteOffset,h.byteLength);let x;if(Array.isArray(h)){x=[],u.set(h,x);const k=h.length;for(let b=0;b<k;b++)b in h&&(x[b]=f(h[b],g+1))}else{const k=n?Object.getPrototypeOf(h):Object.prototype;x=Object.create(k),u.set(h,x),(l?Reflect.ownKeys(h):Object.keys(h)).forEach(T=>{const R=Object.getOwnPropertyDescriptor(h,T);if(!R)return;const N={};"value"in R?N.value=f(R.value,g+1):(R.get&&(N.get=R.get),R.set&&(N.set=R.set)),R.writable!==void 0&&(N.writable=R.writable),R.enumerable!==void 0&&(N.enumerable=R.enumerable),R.configurable!==void 0&&(N.configurable=R.configurable),Object.defineProperty(x,T,N)})}return x}return f(e,0)}function cN(e,t){const n={get(a,i){const l=a[i];return l&&typeof l=="object"?cN(l,t):l},set(){return I6(t),!1},deleteProperty(){return I6(t),!1},defineProperty(){return I6(t),!1}};return new Proxy(e,n)}function dN(e){return!e||typeof e!="object"?e:(Object.getOwnPropertyNames(e).forEach(t=>{const n=e[t];n&&typeof n=="object"&&dN(n)}),Object.freeze(e))}function Iie(e,t=P1.DEEP,n){const a=Oie(e,{prototype:!1,depth:100,nonEnumerable:!0}),i=cN(a,n);switch(t){case P1.DEEP:return dN(i);case P1.SHALLOW:return Object.freeze(i);default:return i}}function I6(e){throw new Error(e?`[Plugin:${e}] Context is readonly`:"Context is readonly")}class Die{constructor(t){qe(this,"evtBus");qe(this,"allMessageIds",new Set);qe(this,"uncheckedMessageIds",new Set);qe(this,"handleFieldFillingUpdate",t=>{const{messageId:n}=t;n&&this.allMessageIds.add(n)});qe(this,"handleFieldsCheckedUpdate",t=>{const{messageId:n,checked:a}=t;n&&(a?this.uncheckedMessageIds.delete(n):this.uncheckedMessageIds.add(n))});qe(this,"handleFieldsDataConfirmed",()=>{this.clear(),console.log("batch filling msg cleared")});this.evtBus=t,this.evtBus.on(So.FIELD_FILLED_UPDATE,this.handleFieldFillingUpdate),this.evtBus.on(So.FIELDS_CHECKED_UPDATE,this.handleFieldsCheckedUpdate),this.evtBus.on(So.FILL_DATA_CONFIRMED,this.handleFieldsDataConfirmed)}getCheckedMessageIds(){const t=new Set;for(const n of this.allMessageIds)this.uncheckedMessageIds.has(n)||t.add(n);return t}clear(){this.allMessageIds.clear(),this.uncheckedMessageIds.clear()}dispose(){this.evtBus.off(So.FIELD_FILLED_UPDATE,this.handleFieldFillingUpdate),this.evtBus.off(So.FIELDS_CHECKED_UPDATE,this.handleFieldsCheckedUpdate),this.evtBus.off(So.FILL_DATA_CONFIRMED,this.handleFieldsDataConfirmed),this.clear()}}class fN extends R6{constructor(){super(...arguments);qe(this,"pluginName",Nd);qe(this,"customComponents",{OpeningLines:Koe,MessagePart:oie,EntryButton:iie,MessageInputTopSlot:Lie,AvatarAndName:sie});qe(this,"batchFillingDataManager");qe(this,"sdkInst");qe(this,"getReadonlyContext",()=>Iie(this.Context,P1.DEEP,this.pluginName));qe(this,"getValidFilledMessageIds",()=>this.batchFillingDataManager.getCheckedMessageIds());qe(this,"hasValidStructure",()=>{var n;return((n=this.Context)==null?void 0:n.fieldMap.size)!==0});qe(this,"init",n=>{this.sdkInst=n,this.batchFillingDataManager=new Die(n.eventBus),n.eventBus.on(So.FORM_STRUCTURE_READY,this.handleFormStructureReady),n.eventBus.on(So.FORM_FILLING_MODE_UPDATE,this.handleFillModeUpdate),n.eventBus.on("chat-area-visibility-change",this.handleChatAreaVisibilityChange)});qe(this,"handleChatAreaVisibilityChange",({visible:n})=>{var a,i;n||(i=(a=this.lifecycleHooks)==null?void 0:a.onBeforeMessagesClear)==null||i.call(a)});qe(this,"handleFillModeUpdate",({mode:n})=>{this.Context.fillMode=n});qe(this,"dispose",()=>{this.batchFillingDataManager.dispose(),this.sdkInst.eventBus.off(So.FORM_STRUCTURE_READY,this.handleFormStructureReady),this.sdkInst.eventBus.off(So.FORM_FILLING_MODE_UPDATE,this.handleFillModeUpdate),this.sdkInst.eventBus.off("chat-area-visibility-change",this.handleChatAreaVisibilityChange)});qe(this,"handleFormStructureReady",n=>{var i,l;const{fields:a}=n;(i=this.Context)==null||i.fieldMap.clear(),(l=this.Context)==null||l.subFieldsNameMap.clear(),!(!a||!a.length)&&a.forEach(u=>{var f,h;if((f=this.Context)==null||f.fieldMap.set(u.widget.widgetName,u),u.widget.type==="subform")for(const g of u.widget.items)(h=this.Context)==null||h.subFieldsNameMap.set(g.widget.widgetName,u.widget.widgetName)})});qe(this,"lifecycleHooks",{onBeforeChatRender:()=>({enableMessageMerge:!0,placeholder:"请输入"}),onBeforeMessagePartsRender:n=>{const a=QW(n,(i,l)=>{var h,g;if(Array.isArray(i)||Array.isArray(l))return!1;const u=Pi(i),f=Pi(l);return((h=u==null?void 0:u.field)==null?void 0:h.fieldName)==((g=f==null?void 0:f.field)==null?void 0:g.fieldName)});return L5(a,h2)},onBeforeMessagesClear:()=>{var i;const n=((i=this.Context)==null?void 0:i.conversationId)||"";if(!n)return;(async()=>{await fetch("https://agent.online-office.net/web/api/form/conversation/clear",{method:"POST",body:JSON.stringify({conversationId:n})}),this.Context.fillMode!=="batch"&&(this.Context=pN.createContext())})()},onBeforeMessageSend:n=>{var i,l;const a=Array.from(((i=this.Context)==null?void 0:i.fieldMap.values())||[]);return this.Context.fillMode==="batch"&&this.sdkInst.isChatVisible()&&this.sdkInst.eventBus.emit("form-filling-batch-fill-begin",{}),{...n,options:{body:{stage:"fill",formStructure:a,mode:(l=this.Context)==null?void 0:l.fillMode}}}}})}}const pN={EVENTS:So,Plugin:fN,createContext:()=>({fieldMap:new Map,valueMap:new Map,subFieldsNameMap:new Map,conversationId:"",fillMode:"AI"})},bg="ReportQueryPlugin",jie=[{icon:C.jsx(ZE,{}),title:"库存统计看板",description:"聚焦资金占用率与周转天数,高亮异常库存TOP3,辅助供应链决策。"},{icon:C.jsx(WE,{}),title:"仓库经营看板",description:"聚焦单仓ROI与履约及时率,联动库存健康度与物流成本占比,辅助资源配置决策。"},{icon:C.jsx(qE,{}),title:"销售订单看板",description:"聚焦订单履约及时率与客单价分层,联动销售目标完成进度,辅助策略调整。"}],Pie=()=>{const{messages:e,sendMessage:t}=sA({transport:new E5({api:"http://localhost:3001/web/api/report/query/suggest"})}),n=eu(bg);return console.log(e),L.useEffect(()=>{var a;t({text:""},{body:{forms:(a=n==null?void 0:n.appInfo)!=null&&a.formMap?Array.from(n.appInfo.formMap.values()):void 0}})},[n]),C.jsxs(C.Fragment,{children:["👋 你好,你想创建什么报表呢,不知道的话,可以试试下面的建议~",C.jsx(mm,{items:jie,onSelect:a=>{},iconColor:"#4ACC8C"})]})},Fie=({style:e,onClick:t})=>C.jsx(vg,{style:e,onClick:()=>{t==null||t()},icon:C.jsx(O5,{}),children:"使用AI创建报表"}),zie=({variant:e="default"})=>{const t=e==="default"?20:24;return C.jsx(Wh,{name:"AI问数",icon:C.jsx(Cq,{size:t}),variant:e})},D6=({label:e,children:t,className:n})=>C.jsxs("div",{className:Ge("flex gap-2 items-start w-full",n),children:[C.jsx("div",{className:"w-[100px] shrink-0 text-[#666] text-sm leading-normal truncate",children:e}),C.jsx("div",{className:"flex-1 min-w-0 text-sm leading-normal whitespace-pre-wrap break-words",children:t!=null?t:C.jsx("span",{className:"text-[#666]",children:"无"})})]}),Hie=({children:e})=>C.jsx("div",{className:"flex flex-col gap-[10px] w-full",children:e}),Uie={sum:"#3767F1",max:"#F06648",min:"#4ACC8C",average:"#4AC0EC",count:"#9362CE",countDistinct:"#F168B6"},Bie=({type:e,className:t})=>C.jsx("span",{className:Ge("inline-flex items-center justify-center rounded-[100px] px-[6px] text-[14px] leading-[20px] text-white",t),style:{backgroundColor:Uie[e]},children:qae[e]}),Vie=({name:e,children:t})=>C.jsx(D6,{label:"数据源",children:C.jsxs("div",{className:"flex gap-[6px] items-center",children:[C.jsx(Sq,{}),e||t||"N/A"]})}),j6=({children:e,isCol:t})=>C.jsx(D6,{label:`维度(${t?"列":"行"})`,children:e}),$ie=({children:e})=>C.jsx(D6,{label:"筛选条件",children:e}),Zie=({metric:e,className:t})=>C.jsxs("div",{className:Ge("flex items-center justify-between",t),children:[C.jsxs("div",{className:"flex min-w-0 items-center gap-[6px]",children:[C.jsx("span",{className:"shrink-0 text-[#6f829e]",children:C.jsx(S6,{type:e.type})}),C.jsx("span",{className:"truncate text-sm leading-normal text-[#030303]",children:e.title})]}),e.op&&C.jsx(Bie,{type:e.op})]}),Wie={eq:"等于",ne:"不等于",in:"等于任意一个",nin:"不等于任意一个",like:"包含",unlike:"不包含",empty:"为空",not_empty:"不为空",gt:"大于",lt:"小于",gte:"大于等于",lte:"小于等于",range:"范围",formula:"动态",all:"同时包含"},qie={user:{in:"等于任意一个",ne:"不等于",eq:"等于",nin:"不等于任意一个",empty:"为空",not_empty:"不为空"},flowstate:{ne:"不等于",eq:"等于",empty:"为空"},_id:{eq:"等于",ne:"不等于",in:"等于任意一个",nin:"不等于任意一个",like:"包含",unlike:"不包含",empty:"为空",not_empty:"不为空"},updateTime:{eq:"等于",ne:"不等于",gte:"大于等于",lte:"小于等于",formula:"动态",range:"范围",empty:"为空",not_empty:"不为空"},createTime:{eq:"等于",ne:"不等于",gte:"大于等于",lte:"小于等于",formula:"动态",range:"范围",empty:"为空",not_empty:"不为空"},creator:{in:"等于任意一个",ne:"不等于",eq:"等于",nin:"不等于任意一个",empty:"为空",not_empty:"不为空"},assist_outtime:{gt:"大于",lt:"小于",range:"范围",empty:"为空",not_empty:"不为空"},assist_protime:{gt:"大于",lt:"小于",range:"范围",empty:"为空",not_empty:"不为空"},assist_prostatus:{ne:"不等于",eq:"等于",empty:"为空"},assist_flowid:{like:"包含"},flow_chargers:{in:"等于任意一个",ne:"不等于",eq:"等于",nin:"不等于任意一个",empty:"为空",not_empty:"不为空"},flowdecision:{in:"等于任意一个"},deptgroup:{in:"包含任意一个",all:"同时包含",eq:"等于",empty:"为空",not_empty:"不为空"},usergroup:{in:"包含任意一个",all:"同时包含",eq:"等于",empty:"为空",not_empty:"不为空"},dept:{in:"等于任意一个",ne:"不等于",eq:"等于",nin:"不等于任意一个",empty:"为空",not_empty:"不为空"},text:{eq:"等于",ne:"不等于",in:"等于任意一个",nin:"不等于任意一个",like:"包含",unlike:"不包含",empty:"为空",not_empty:"不为空"},signature:{empty:"为空",not_empty:"不为空"},upload:{empty:"为空",not_empty:"不为空"},image:{empty:"为空",not_empty:"不为空"},location:{nin:"不包含",all:"包含",empty:"为空",not_empty:"不为空"},radiogroup:{eq:"等于",ne:"不等于",in:"等于任意一个",nin:"不等于任意一个",empty:"为空",not_empty:"不为空"},checkboxgroup:{in:"包含任意一个",all:"同时包含",eq:"等于",empty:"为空",not_empty:"不为空"},number:{eq:"等于",ne:"不等于",gt:"大于",lt:"小于",gte:"大于等于",lte:"小于等于",range:"范围",empty:"为空",not_empty:"不为空"},datetime:{eq:"等于",ne:"不等于",gte:"大于等于",lte:"小于等于",formula:"动态",range:"范围",empty:"为空",not_empty:"不为空"},date:{eq:"等于",ne:"不等于",gte:"大于等于",lte:"小于等于",formula:"动态",range:"范围",empty:"为空",not_empty:"不为空"},select:{eq:"等于",ne:"不等于",in:"等于任意一个",nin:"不等于任意一个",empty:"为空",not_empty:"不为空"}},Gie=(e,t)=>{const n=qie[t];return n&&n[e]?n[e]:Wie[e]||e},Yie=(e,t)=>t==="empty"||t==="not_empty"||!e||e.length===0?"":t==="range"&&e.length===2?`${e[0]} 至 ${e[1]}`:e.length>1?`[${e.map(n=>String(n)).join(", ")}]`:String(e[0]),hN=e=>{if(e.endsWith("一个")){const t=e.slice(0,-1),n=e.slice(-1);return C.jsxs(C.Fragment,{children:[C.jsx("span",{className:"text-[#666]",children:t}),C.jsx("span",{className:"text-[#999]",children:n})]})}return C.jsx("span",{className:"text-[#666]",children:e})},Jie=e=>{switch(e){case"range":return{prefix:"在",suffix:"之间"};case"gt":case"gte":case"lt":case"lte":return{prefix:"",suffix:""};case"like":case"unlike":return{prefix:"",suffix:""};case"in":case"nin":return{prefix:"",suffix:""};case"all":return{prefix:"",suffix:""};case"empty":case"not_empty":return{prefix:"",suffix:""};default:return{prefix:"",suffix:""}}},Xie=e=>{const{title:t,method:n,value:a,type:i}=e,l=Gie(n,i),u=Yie(a,n),{prefix:f,suffix:h}=Jie(n);return n==="empty"||n==="not_empty"?C.jsxs("span",{className:"leading-[normal]",children:[C.jsx("span",{className:"text-[#030303]",children:t}),C.jsx("span",{className:"text-[#4d609f]",children:" "}),hN(l)]}):C.jsxs("span",{className:"leading-[normal]",children:[C.jsx("span",{className:"text-[#030303]",children:t}),C.jsx("span",{className:"text-[#4d609f]",children:" "}),f&&C.jsx("span",{className:"text-[#666]",children:f}),hN(l),C.jsx("span",{className:"text-[#4d609f]",children:" "}),C.jsx("span",{className:"text-[#0265ff]",children:u}),h&&C.jsxs("span",{className:"text-[#666]",children:[" ",h]})]})},Kie=({conds:e,rel:t})=>{if(!e||e.length===0)return null;const n=t==="or"?"或":"且";return C.jsx("span",{className:"font-['Alibaba_PuHuiTi_2.0:55_Regular',sans-serif] text-[14px] text-[#030303] whitespace-pre-wrap",children:e.map((a,i)=>C.jsxs("span",{className:"leading-[normal]",children:[Xie(a),i<e.length-1&&C.jsxs("span",{className:"text-[#999]",children:[" ",n," "]})]},`${a.name}-${i}`))})},Qie=({className:e})=>C.jsx("div",{className:Ge("h-[1px] w-full bg-[#E0E0E0]",e)}),ese=({type:e,className:t,style:n})=>{const a=Tae[e]||"";return C.jsx(w6,{code:a,className:t,style:n})},tse=e=>{var u,f,h,g,x,y,k,b,T;const t=eu(bg),n=L.useCallback(R=>{var O,P;const N=(P=(O=t==null?void 0:t.appInfo)==null?void 0:O.formMap)==null?void 0:P.get(R);return(N==null?void 0:N.name)||""},[t]),a=((u=e.formIds)==null?void 0:u[0])||"",i=a?n(a):"",l=e.metrics&&e.metrics.length>0;return C.jsx(pm,{title:(e==null?void 0:e.title)||"",icon:C.jsx(ese,{type:e.type}),defaultOpen:!0,children:C.jsxs(Hie,{children:[i&&C.jsx(Vie,{children:i}),(f=e.fields)!=null&&f.length?C.jsx(j6,{children:(h=e.fields)==null?void 0:h.map(R=>R.title).join("、")}):null,(g=e.xFields)!=null&&g.length?C.jsx(j6,{isCol:!0,children:(x=e.xFields)==null?void 0:x.map(R=>R.title).join("、")}):null,(y=e.yFields)!=null&&y.length?C.jsx(j6,{children:e.yFields.map(R=>R.title).join("、")}):null,(b=(k=e.filter)==null?void 0:k.conds)!=null&&b.length?C.jsx($ie,{children:C.jsx(Kie,{...e.filter})}):null,l?C.jsx(Qie,{}):null,l?(T=e.metrics)==null?void 0:T.map(R=>C.jsx(Zie,{metric:R},R.id)):null]})})},nse=({children:e})=>C.jsx("div",{className:"text-[#4D609F]",children:e}),rse=({part:e,...t})=>{var i;const n=e,a=eu(bg);if(!a)return null;if($W(e)){const l=ZW(e);return l?l.isAggregate?C.jsxs(Td,{headless:!0,className:"w-full",children:[C.jsx(nse,{children:"已为你创建聚合表"}),C.jsx(pm,{icon:C.jsx("span",{className:"text-[#0265ff]",children:C.jsx(_q,{})}),title:l.title,disableExpand:!0})]}):(console.log("set query result in context",l),a.queryResult=l,a.queryResult.appID=((i=a.appInfo)==null?void 0:i.appId)||"",C.jsx(tse,{...l||{}})):null}return n.text!==void 0&&n.text.trim()!==""?C.jsx(X2,{part:n,...t,collapsibleTitle:"报表设计"}):null},ase=new Set(["textarea","subform","checkboxgroup","combocheck","address","user","usergroup","deptgroup","location","linkdata","image","upload","signature","chargers","button","dataload","separator","linkquery"]);function ose(e,t,n){const{chartType:a,limitFields:i,isHidden:l=!1}=n,u=[],f=t(e),h=e.type;return ise(u,a,f,l,i),!l&&i.dashQuota.includes(f)&&u.push("quota"),!l&&i.dashDimensionLAL.includes(f)&&e.name!=="_id"&&u.push("LALDimension"),!l&&i.dashTableField.includes(f)&&u.push("$dimension"),sse(u,a,h,i),a==="gantt"?lse(h,u):u}function ise(e,t,n,a,i){t==="newMap"?!a&&i.dashTableField.includes(n)&&e.push("dimension"):i.dashDimension.includes(n)&&e.push("dimension")}function sse(e,t,n,a){(t==="newMap"?a.dashFilters:a.dashFilter).includes(n)&&e.push("filter")}function lse(e,t){const n=[...t];return n.push("ganttshowfield"),e==="number"?n.push("n-dimension"):e==="datetime"&&n.push("t-dimension"),ase.has(e)?n.filter(a=>a!=="dimension"&&a!=="$dimension"):n}const mN=(e,t)=>{var n;return ose({type:t.type,name:t.name},a=>a.type,{chartType:e,limitFields:(n=window.FX)==null?void 0:n.LimitFields,isHidden:!1}).join(",")},Cg=e=>({text:"icon-widget-text",textarea:"icon-widget-textarea",number:"icon-widget-number",datetime:"icon-widget-datetime",date:"icon-widget-date",time:"icon-widget-time",radiogroup:"icon-widget-radiogroup",checkboxgroup:"icon-widget-checkboxgroup",user:"icon-widget-user",usergroup:"icon-widget-usergroup",dept:"icon-widget-dept",deptgroup:"icon-widget-deptgroup",upload:"icon-widget-upload",image:"icon-widget-image",location:"icon-widget-location",select:"icon-widget-select",combo:"icon-widget-combo",signature:"icon-widget-signature"})[e]||"icon-widget-text";function use(e,t){switch(e){case"datetime":return"year_month";case"address":case"location":return t==="map_chart"?void 0:"province_city";default:return}}const gN=(e,t,n)=>({...e,id:n,icon:Cg(e.type),group:mN(t,e),groupRule:use(e.type,t),text:e.title}),cse=(e,t,n)=>({...e,id:n,text:e.title,icon:Cg(e.type),group:mN(t,{type:e.type,name:e.name||e.title})}),vN=(e,t,n)=>{var a,i;return{id:(a=e.id)!=null?a:n,name:e.name,text:e.title,type:e.type,title:e.title,form:t,isEditable:(i=e.isEditable)!=null?i:!1,icon:Cg(e.type),group:e.group||"dimension",formula:"",tag:`f_${Date.now()+n}`}},dse=e=>({name:"label",text:"标题",type:"textarea",title:"标题",form:e,isEditable:!0,icon:Cg("textarea"),group:"dimension",formula:"",tag:`f_${Date.now()}`}),fse=(e,t)=>{var n;return{title:e.title,name:e.name,type:e.type,entryId:t,form:t,field:e.name,method:e.method,value:(n=e.value)!=null?n:[],hasEmpty:e.method!=="not_empty",fieldvalueMode:"widget",fieldvalueName:""}},pse=()=>({theme:{name:"preset_style_light_1",highLightColor:"#0265FF",palette:"preset_1",gradation:"preset_map_1"},background:{type:"color",color:"#F4F6F9"},widget:{theme:{color:"#E9E9E9",icon:1,cardName:"preset_metric_1"},background:{type:"color",color:"#FFFFFF"},fontSetting:{titleColor:"#1F2D3D",headColor:"#5E6D82",textColor:"#1F2D3D",textAlign:"default"}}}),hse=()=>({title:{show:!1,text:"标题内容",textStyle:{color:"#333333",fontStyle:"normal",fontSize:16,fontWeight:"normal"},left:"left",borderColor:"transparent",borderWidth:2,padding:5,onBorderColor:!1,borderRadius:0,backgroundColor:"transparent"},orient:"vertical",legend:{textStyle:{fontStyle:"normal",fontSize:10,fontWeight:"normal"},itemWidth:12,itemHeight:12,position:"bottom",type:"plain",padding:10},itemStyle:{opacity:.7,borderWidth:2},tooltip:{show:!0,triggerOn:"mousemove",position:"0",seriesName:"",formatter:"1",opacity:1,textStyle:{color:"#FFFFFF",fontStyle:"normal",fontSize:14,fontWeight:"normal"}},label:{fontStyle:"normal",fontWeight:"normal",fontSize:10,position:"top",formatter:"1"}}),yN=()=>`_widget_${Date.now()}`,xN=({result:e,formId:t,widgetId:n,fields:a,overrides:i})=>{var g,x,y;const l=e.title||"未命名数据表",u=((x=(g=e.filter)==null?void 0:g.conds)==null?void 0:x.map(k=>fse(k,t)))||[],f=((y=e.filter)==null?void 0:y.rel)||"and";return{title:l,hasExport:!1,widgetId:n,palette:"default",chart_label:{enable:!0},width:30,height:20,posX:0,posY:0,formulas:e.formulas||[],widgetNameAlias:n,permission:"all",triggers:[],defaultSort:[],reportAuth:[],enableRowEdit:!1,attrList:hse(),batchmenu:{enable:!0,set:[]},itemSeleable:!0,itemMarekerable:!0,mapScale:14,itemDataable:!0,scopefields:[],menu:{enable:!0,set:[]},onSwitchButton:!1,BtnName:"点击操作",FunctionBtn:"itemManualData",DataMode:!1,mapfields:[],tFields:[],bgColorFilter:[],cardConfigFields:[],selectFields:[],mapFields:[],selectArg:{},thresholds:[],guideline:[],treeFields:{},...e,forms:e.formIds||[],type:e.type||"data_table",yAxes:[{chart_type:"column_chart"},{chart_type:"line_chart"}],rowOrder:{},top:{},xFields:(e.xFields||[]).map((k,b)=>gN(k,e.type,b)),yFields:(e.yFields||[]).map((k,b)=>gN(k,e.type,b)),metrics:(e.metrics||[]).map((k,b)=>cse(k,e.type,b)),fields:a,filter:{cond:u,rel:f},...i}},mse=(e,t)=>{var y,k,b;const n=e.appID||"",a=yN(),i=((y=e.formIds)==null?void 0:y[0])||"",l=((k=e.filter)==null?void 0:k.rel)||"and",u=((b=e.fields)==null?void 0:b.map((T,R)=>vN(T,i,R)))||[],f=xN({result:e,formId:i,widgetId:a,fields:u,overrides:{dryRun:!0,cardConfig:{widget_id:"{}"},batchmenuAuth:{}}}),h={[a]:f},g=pse(),x={appId:n,entryId:t,hasLazyLoad:!0,styles:g,autoLoad:!0,rel:l,cacheFilter:0,isMobileFilteringButton:0,showFilter:0,components:h,mode:"preview",dryRun:!0,name:e.title||"未命名分析报表"};return{appId:n,entryId:t,hasLazyLoad:!0,styles:g,autoLoad:!0,rel:"and",cacheFilter:0,isMobileFilteringButton:1,showFilter:0,components:h,mode:"preview",showType:"popup",name:e.title||"未命名分析报表",allComponentDash:{entry:x}}},gse=(e,t)=>{var h,g;const n=e.appID||"",a=yN(),i=((h=e.formIds)==null?void 0:h[0])||"",u=[dse(i)].concat(((g=e.fields)==null?void 0:g.map((x,y)=>vN(x,i,y)))||[]),f=xN({result:e,formId:i,widgetId:a,fields:u,overrides:{type:e.type||"data_table",cardConfig:{widget_id:{}}}});return{appId:n,entryId:t,widget:f,datahelpers_remove:[],datahelpers:{}}};class wN extends R6{constructor(n){super(n);qe(this,"pluginName",bg);qe(this,"customComponents",{OpeningLines:Pie,EntryButton:Fie,AvatarAndName:zie,MessagePart:rse});qe(this,"lifecycleHooks",{onAfterChatAreaHide:({clearMsgs:n})=>{},onBeforeChatRender:()=>({appendLoadingIndicator:!0}),onBeforeMessageSend:n=>{var a;return{...n,options:{body:{appId:(a=this.Context.appInfo)==null?void 0:a.appId}}}}});qe(this,"getPreviewerProps",n=>this.Context.queryResult?mse(this.Context.queryResult,n):(console.log("No query result in context"),null));qe(this,"getCreateParams",n=>this.Context.queryResult?gse(this.Context.queryResult,n):(console.log("No query result in context"),null));qe(this,"setAppId",n=>{this.Context.appInfo?this.Context.appInfo.appId=n:this.Context.appInfo={appId:n}});qe(this,"setForms",n=>{if(!n||n.length===0)return;const a=new Map;n.forEach(i=>{a.set(i.entryId,i)}),this.Context.appInfo||(this.Context.appInfo={appId:""}),this.Context.appInfo.formMap=a,console.log("forms received in plugin:",a)});qe(this,"clearCtx",()=>{console.log("clear plugin context"),this.Context.queryResult=void 0});this.Context=n}}const vse={Plugin:wN,createContext:()=>({})},bN=L.forwardRef(({children:e,zIndex:t,padding:n,disableGradient:a,bgColor:i="#fff"},l)=>C.jsx("div",{ref:l,style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:a?i:"linear-gradient(180deg, #DBE9FF 0%, #E9FFFD 100%)",padding:n||0,zIndex:t},children:e}));bN.displayName="AbsFullscreenGradientBg";const yse=()=>C.jsxs(C.Fragment,{children:[C.jsxs("div",{className:"flex gap-[2px] flex-shrink-0 relative -left-[4px] top-[3px]",children:[C.jsx("div",{className:"w-[2px] h-[2px] rounded-full bg-[#0265FF] flex-shrink-0",style:{animation:"pulse 1.4s ease-in-out infinite",animationDelay:"0s",marginRight:"2px"}}),C.jsx("div",{className:"w-[2px] h-[2px] rounded-full bg-[#0265FF] flex-shrink-0",style:{animation:"pulse 1.4s ease-in-out infinite",animationDelay:"0.2s",marginRight:"2px"}}),C.jsx("div",{className:"w-[2px] h-[2px] rounded-full bg-[#0265FF] flex-shrink-0",style:{animation:"pulse 1.4s ease-in-out infinite",animationDelay:"0.4s"}})]}),C.jsx("style",{children:`
|
|
610
|
-
@keyframes pulse {
|
|
611
|
-
0%, 60%, 100% {
|
|
612
|
-
opacity: 0.3;
|
|
613
|
-
transform: scale(1);
|
|
614
|
-
}
|
|
615
|
-
30% {
|
|
616
|
-
opacity: 1;
|
|
617
|
-
transform: scale(1.2);
|
|
618
|
-
}
|
|
619
|
-
}
|
|
620
|
-
`})]}),xse=({children:e,loading:t=!0})=>{const a=t?14:0,i=16,l=L.useRef(null),[u,f]=L.useState(0),h=u+38+a+i;return L.useLayoutEffect(()=>{if(l.current){const g=l.current.getBoundingClientRect();f(g.width)}},[e]),L.useEffect(()=>{if(l.current){const g=l.current.getBoundingClientRect();console.log("rect.width",g.width),f(g.width)}},[]),C.jsx(A6,{borderRadius:100,width:h,height:34,borderWidth:1,children:C.jsxs("div",{className:"flex items-center gap-[6px] h-[31px] ml-[16px]",children:[C.jsx("div",{className:"shrink-0",children:C.jsx(O5,{})}),C.jsx("span",{className:"text-[14px] text-[#0265FF] shrink-0",ref:l,children:e||"字段生成中"}),t&&C.jsx(yse,{})]})})},wse=({children:e,width:t,height:n,style:a,childrenContainerStyle:i})=>C.jsxs("div",{style:{position:"relative",width:t!=null?t:"100%",height:n!=null?n:"100%",overflow:"hidden",borderRadius:"10px 10px 0 0",...a},children:[C.jsx("div",{style:{position:"absolute",width:"100%",height:"100%",top:0,left:0,background:"#F4FFFC"}}),C.jsx("div",{style:{position:"absolute",width:"100%",height:"100%",top:0,left:0,background:"radial-gradient(circle at 25% -15%, #EEFFCE 0%, transparent 55%)",filter:"blur(70px)",animation:"floatCircle1 4s ease-in-out infinite"}}),C.jsx("div",{style:{position:"absolute",width:"100%",height:"100%",top:0,left:0,background:"radial-gradient(circle at 80% 200%, #CEFFFB 0%, transparent 45%)",filter:"blur(70px)",animation:"floatCircle2 5s ease-in-out infinite 0.5s"}}),C.jsx("div",{style:{position:"relative",zIndex:1,width:"100%",height:"100%",...i},children:e}),C.jsx("style",{children:`
|
|
621
|
-
@keyframes floatCircle1 {
|
|
622
|
-
0%, 100% {
|
|
623
|
-
transform: translate(0%, 0%) scale(1.2);
|
|
624
|
-
opacity: 1;
|
|
625
|
-
}
|
|
626
|
-
25% {
|
|
627
|
-
transform: translate(-15%, 20%) scale(1.6);
|
|
628
|
-
opacity: 0.95;
|
|
629
|
-
}
|
|
630
|
-
50% {
|
|
631
|
-
transform: translate(12%, -15%) scale(0.9);
|
|
632
|
-
opacity: 1;
|
|
633
|
-
}
|
|
634
|
-
75% {
|
|
635
|
-
transform: translate(-10%, 10%) scale(1.4);
|
|
636
|
-
opacity: 0.9;
|
|
637
|
-
}
|
|
638
|
-
}
|
|
639
|
-
|
|
640
|
-
@keyframes floatCircle2 {
|
|
641
|
-
0%, 100% {
|
|
642
|
-
transform: translate(0%, 0%) scale(1.1);
|
|
643
|
-
opacity: 1;
|
|
644
|
-
}
|
|
645
|
-
30% {
|
|
646
|
-
transform: translate(18%, -12%) scale(1.5);
|
|
647
|
-
opacity: 1;
|
|
648
|
-
}
|
|
649
|
-
60% {
|
|
650
|
-
transform: translate(-12%, 15%) scale(0.85);
|
|
651
|
-
opacity: 0.95;
|
|
652
|
-
}
|
|
653
|
-
85% {
|
|
654
|
-
transform: translate(14%, -8%) scale(1.3);
|
|
655
|
-
opacity: 0.9;
|
|
656
|
-
}
|
|
657
|
-
}
|
|
658
|
-
`})]});var Sg="Dialog",[CN]=Js(Sg),[bse,ws]=CN(Sg),SN=e=>{const{__scopeDialog:t,children:n,open:a,defaultOpen:i,onOpenChange:l,modal:u=!0}=e,f=L.useRef(null),h=L.useRef(null),[g,x]=x1({prop:a,defaultProp:i!=null?i:!1,onChange:l,caller:Sg});return C.jsx(bse,{scope:t,triggerRef:f,contentRef:h,contentId:tc(),titleId:tc(),descriptionId:tc(),open:g,onOpenChange:x,onOpenToggle:L.useCallback(()=>x(y=>!y),[x]),modal:u,children:n})};SN.displayName=Sg;var kN="DialogTrigger",Cse=L.forwardRef((e,t)=>{const{__scopeDialog:n,...a}=e,i=ws(kN,n),l=Vn(t,i.triggerRef);return C.jsx(hn.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":z6(i.open),...a,ref:l,onClick:nn(e.onClick,i.onOpenToggle)})});Cse.displayName=kN;var P6="DialogPortal",[Sse,EN]=CN(P6,{forceMount:void 0}),_N=e=>{const{__scopeDialog:t,forceMount:n,children:a,container:i}=e,l=ws(P6,t);return C.jsx(Sse,{scope:t,forceMount:n,children:L.Children.map(a,u=>C.jsx(Xl,{present:n||l.open,children:C.jsx(M2,{asChild:!0,container:i,children:u})}))})};_N.displayName=P6;var kg="DialogOverlay",TN=L.forwardRef((e,t)=>{const n=EN(kg,e.__scopeDialog),{forceMount:a=n.forceMount,...i}=e,l=ws(kg,e.__scopeDialog);return l.modal?C.jsx(Xl,{present:a||l.open,children:C.jsx(Ese,{...i,ref:t})}):null});TN.displayName=kg;var kse=qh("DialogOverlay.RemoveScroll"),Ese=L.forwardRef((e,t)=>{const{__scopeDialog:n,...a}=e,i=ws(kg,n);return C.jsx(s6,{as:kse,allowPinchZoom:!0,shards:[i.contentRef],children:C.jsx(hn.div,{"data-state":z6(i.open),...a,ref:t,style:{pointerEvents:"auto",...a.style}})})}),Ld="DialogContent",RN=L.forwardRef((e,t)=>{const n=EN(Ld,e.__scopeDialog),{forceMount:a=n.forceMount,...i}=e,l=ws(Ld,e.__scopeDialog);return C.jsx(Xl,{present:a||l.open,children:l.modal?C.jsx(_se,{...i,ref:t}):C.jsx(Tse,{...i,ref:t})})});RN.displayName=Ld;var _se=L.forwardRef((e,t)=>{const n=ws(Ld,e.__scopeDialog),a=L.useRef(null),i=Vn(t,n.contentRef,a);return L.useEffect(()=>{const l=a.current;if(l)return cM(l)},[]),C.jsx(MN,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:nn(e.onCloseAutoFocus,l=>{var u;l.preventDefault(),(u=n.triggerRef.current)==null||u.focus()}),onPointerDownOutside:nn(e.onPointerDownOutside,l=>{const u=l.detail.originalEvent,f=u.button===0&&u.ctrlKey===!0;(u.button===2||f)&&l.preventDefault()}),onFocusOutside:nn(e.onFocusOutside,l=>l.preventDefault())})}),Tse=L.forwardRef((e,t)=>{const n=ws(Ld,e.__scopeDialog),a=L.useRef(!1),i=L.useRef(!1);return C.jsx(MN,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:l=>{var u,f;(u=e.onCloseAutoFocus)==null||u.call(e,l),l.defaultPrevented||(a.current||(f=n.triggerRef.current)==null||f.focus(),l.preventDefault()),a.current=!1,i.current=!1},onInteractOutside:l=>{var h,g;(h=e.onInteractOutside)==null||h.call(e,l),l.defaultPrevented||(a.current=!0,l.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const u=l.target;((g=n.triggerRef.current)==null?void 0:g.contains(u))&&l.preventDefault(),l.detail.originalEvent.type==="focusin"&&i.current&&l.preventDefault()}})}),MN=L.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:a,onOpenAutoFocus:i,onCloseAutoFocus:l,...u}=e,f=ws(Ld,n),h=L.useRef(null),g=Vn(t,h);return nM(),C.jsxs(C.Fragment,{children:[C.jsx(e6,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:i,onUnmountAutoFocus:l,children:C.jsx(v2,{role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":z6(f.open),...u,ref:g,onDismiss:()=>f.onOpenChange(!1)})}),C.jsxs(C.Fragment,{children:[C.jsx(Mse,{titleId:f.titleId}),C.jsx(Nse,{contentRef:h,descriptionId:f.descriptionId})]})]})}),F6="DialogTitle",AN=L.forwardRef((e,t)=>{const{__scopeDialog:n,...a}=e,i=ws(F6,n);return C.jsx(hn.h2,{id:i.titleId,...a,ref:t})});AN.displayName=F6;var NN="DialogDescription",LN=L.forwardRef((e,t)=>{const{__scopeDialog:n,...a}=e,i=ws(NN,n);return C.jsx(hn.p,{id:i.descriptionId,...a,ref:t})});LN.displayName=NN;var ON="DialogClose",Rse=L.forwardRef((e,t)=>{const{__scopeDialog:n,...a}=e,i=ws(ON,n);return C.jsx(hn.button,{type:"button",...a,ref:t,onClick:nn(e.onClick,()=>i.onOpenChange(!1))})});Rse.displayName=ON;function z6(e){return e?"open":"closed"}var IN="DialogTitleWarning",[rpe,DN]=Uq(IN,{contentName:Ld,titleName:F6,docsSlug:"dialog"}),Mse=({titleId:e})=>{const t=DN(IN),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
659
|
-
|
|
660
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
661
|
-
|
|
662
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return L.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Ase="DialogDescriptionWarning",Nse=({contentRef:e,descriptionId:t})=>{const a=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${DN(Ase).contentName}}.`;return L.useEffect(()=>{var l;const i=(l=e.current)==null?void 0:l.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(a))},[a,e,t]),null},Lse=SN,Ose=_N,jN=TN,PN=RN,FN=AN,zN=LN;const Ise=Lse,Dse=Ose,HN=L.forwardRef(({className:e,position:t="fixed",...n},a)=>C.jsx(jN,{ref:a,className:Ge("inset-0 z-50 bg-black/30 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t==="absolute"?"absolute":"fixed",e),...n}));HN.displayName=jN.displayName;const UN=L.forwardRef(({className:e,children:t,container:n,...a},i)=>C.jsxs(Dse,{container:n,children:[C.jsx(HN,{position:n?"absolute":"fixed"}),C.jsx(PN,{style:{padding:0},ref:i,className:Ge("left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",n?"absolute":"fixed",e),...a,children:t})]}));UN.displayName=PN.displayName;const BN=({className:e,...t})=>C.jsx("div",{className:Ge("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});BN.displayName="DialogHeader";const VN=({className:e,...t})=>C.jsx("div",{className:Ge("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});VN.displayName="DialogFooter";const $N=L.forwardRef(({className:e,...t},n)=>C.jsx(FN,{ref:n,className:Ge("text-lg font-semibold leading-none tracking-tight",e),...t}));$N.displayName=FN.displayName;const ZN=L.forwardRef(({className:e,...t},n)=>C.jsx(zN,{ref:n,className:Ge("text-sm text-muted-foreground",e),...t}));ZN.displayName=zN.displayName;function jse({open:e,onOpenChange:t,title:n,description:a,linkText:i="留在此页",onLinkClick:l,cancelText:u="不保存",onCancel:f,confirmText:h="保存并继续",onConfirm:g,container:x,showLink:y=!0,showCancel:k=!0}){const b={borderRadius:4,padding:"6px 20px"};return C.jsx(Ise,{open:e,onOpenChange:t,children:C.jsxs(UN,{container:x,className:Ge("w-[480px] max-w-[480px] p-0 gap-0 rounded-[10px] border-none","shadow-[0px_0px_10px_0px_rgba(0,0,0,0.04)]","[&>button]:hidden"),children:[C.jsxs(BN,{className:"flex flex-row items-start gap-[10px] p-9 pb-0",children:[C.jsx("div",{className:"size-[30px] shrink-0 text-[#0265FF]",children:C.jsx(mq,{})}),C.jsxs("div",{className:"flex flex-col gap-2",children:[C.jsx($N,{className:"text-[16px] font-[700] text-[#030303] leading-normal",children:n}),a&&C.jsx(ZN,{className:"text-[14px] text-[#666] leading-normal",children:a})]})]}),C.jsxs(VN,{className:"flex flex-row items-center !justify-between p-9 pt-6",children:[y?C.jsx("button",{type:"button",onClick:l,className:"text-[14px] text-[#0265ff] hover:text-[#0265ff]/80 bg-transparent border-none cursor-pointer",children:i}):C.jsx("div",{}),C.jsxs("div",{className:"flex items-center gap-3",children:[k&&C.jsx("button",{type:"button",onClick:f,style:b,className:Ge("h-8 px-5 py-1.5 rounded border border-[#e0e0e0]","text-[14px] text-[#030303] bg-white","hover:bg-gray-50 cursor-pointer"),children:u}),C.jsx("button",{type:"button",onClick:g,style:b,className:Ge("h-8 px-5 py-1.5 rounded","text-[14px] text-white bg-[#0265ff]","hover:bg-[#0265ff]/80 cursor-pointer border-none"),children:h})]})]})]})})}const Pse=({title:e,tips:t,style:n,confirmContent:a,confirmTitle:i,className:l,active:u,onBackClick:f,onSave:h,onCancel:g,variant:x="fields-previewer",dialogContainer:y})=>{const[k,b]=L.useState(!1),T=_a("w-[94px] h-[34px] flex items-center justify-center rounded-[4px]"),R=x==="data-previewer",N=x==="fields-previewer",O=_a("font-[700]",{"text-[16px]":N,"text-[18px]":R}),P=C.jsxs(C.Fragment,{children:[C.jsxs("div",{className:"flex items-center gap-3",children:[R?null:C.jsx(Cd,{icon:C.jsx(vq,{}),onClick:()=>b(!0),className:"text-[#0265FF] hover:text-[#0265FF]"}),C.jsx("span",{className:O,children:e}),t&&u&&C.jsxs("div",{className:"flex items-center gap-[6px] text-[#999999] text-[12px]",children:[C.jsx(gq,{}),t]})]}),C.jsxs("div",{className:"flex items-center gap-[10px]",children:[h&&C.jsx("button",{onClick:h,className:_a(T,"bg-[#0265FF] hover:opacity-90 text-white text-[14px]",{"w-[115px]":R}),children:N?"保存":"添加到表单"}),g&&C.jsx("button",{onClick:()=>{b(!0)},className:_a(T,"text-[#121111] text-[14px] bg-[#fff] border border-solid border-[#e0e0e0] hover:bg-[#f0f0f0]"),children:"取消"})]}),C.jsx(jse,{container:y,open:k,onOpenChange:b,title:i||"AI表单搭建有修改,是否保存?",description:a||"您修改了AI表单搭建但没有保存,是否需要保存并继续?",onLinkClick:()=>b(!1),onCancel:()=>{b(!1),g==null||g(),f==null||f()},onConfirm:()=>{b(!1),h==null||h()}})]}),z=_a({"border-b border-solid border-[#e0e0e0]":!u&&N,"border-none":R});if(u)return C.jsx(wse,{height:52,style:n,childrenContainerStyle:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 20px"},children:P});const j=_a({"px-[20px]":N,"px-[10px]":R});return C.jsx("div",{style:n,className:_a("w-full h-[52px] flex items-center justify-between",j,l,z),children:P})},Fse=()=>C.jsx("div",{style:{borderRadius:10,width:"100%",height:"100%",border:"1px dashed var(---e0e0e0, #E0E0E0)"}}),zse=L.forwardRef(({zIndex:e=1,children:t,title:n,tips:a,active:i,fullscreen:l,padding:u=10,className:f,empty:h,rightSpaceWidth:g,rightSpaceRef:x,rightElement:y,streaming:k,streamingText:b,onBackClick:T,dialogContainer:R,variant:N="fields-previewer",onSave:O,onCancel:P,style:z,confirmContent:j,fullContent:V,confirmTitle:H,containerStyle:W,readonly:G})=>{const ae=l?0:u,ye=l?0:g,[ce,he]=L.useState(null),ue=N==="fields-previewer",Te=N==="data-previewer",ke=_a({"m-[20px]":ue,"mx-[12px] mb-[10px]":Te,"p-[10px]":ue,"p-0":Te,"opacity-60":k&&ue,"w-[calc(100%-40px)] h-[calc(100%-90px)] relative overflow-x-hidden overflow-y-auto":ue,"w-[calc(100%-24px)] h-[calc(100%-62px)] relative overflow-x-hidden overflow-y-auto":Te,"rounded-[4px] bg-white":Te}),Ee=V?{width:"100%",height:"100%",padding:0,margin:0}:{},{shadowContainer:xe}=fg({id:"dialog-container",rootEl:R,style:W,wrapperStyle:{zIndex:Date.now(),position:"absolute",width:"100%",height:"100%",pointerEvents:"none"}}),K=C.jsxs(C.Fragment,{children:[C.jsx(Pse,{title:n,tips:a,active:i,variant:N,className:f,onBackClick:T,onSave:k?void 0:O,onCancel:k?void 0:P,style:z,dialogContainer:xe||ce,confirmTitle:H,confirmContent:j}),C.jsxs("div",{className:ke,style:Ee,children:[h&&ue?C.jsx(Fse,{}):t,G&&C.jsx("div",{className:"absolute inset-0 z-50 cursor-not-allowed"})]}),k&&C.jsx("div",{className:"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2",children:C.jsx(xse,{children:b})})]}),Ae=ue?C.jsx(A6,{width:ye?`calc(100% - ${ye}px)`:"100%",style:{overflow:"hidden"},children:K}):C.jsx("div",{className:"h-full",style:{width:ye?`calc(100% - ${ye}px)`:"100%"},children:K}),B=C.jsx("div",{style:{width:l?0:g,position:"absolute",top:0,right:0,pointerEvents:l?"none":"auto"},className:"h-full",ref:X=>{X&&(x==null||x(X))},children:y});return C.jsxs(bN,{zIndex:e,padding:ue?ae:0,disableGradient:l||!ue,bgColor:ue?"#fff":"#F5F7FA",ref:he,children:[l?K:Ae,B]})}),Hse=()=>L.createElement("slot");class WN extends HTMLElement{constructor(){super();qe(this,"root",null);qe(this,"shadowContainer",null);qe(this,"shadowWrapper",null);qe(this,"_props",{});qe(this,"_childrenOverride",null);qe(this,"_externalRootEl",null)}static get observedAttributes(){return["title","tips","fullscreen","streaming","empty","z-index","padding","right-space-width","active","variant","fields-count"]}connectedCallback(){this._externalRootEl||(this.setupShadowDOM(),this.render())}disconnectedCallback(){this.root&&(this.root.unmount(),this.root=null),this.shadowWrapper&&this.shadowWrapper.parentNode&&(this.shadowWrapper.parentNode.removeChild(this.shadowWrapper),this.shadowWrapper=null)}setRootEl(n){this._externalRootEl===n&&!n||(this._externalRootEl=n,this.isConnected&&(this.cleanup(),this.setupShadowDOM(),this.render()))}cleanup(){this.root&&(this.root.unmount(),this.root=null),this.shadowWrapper&&this.shadowWrapper.parentNode&&(this.shadowWrapper.parentNode.removeChild(this.shadowWrapper),this.shadowWrapper=null)}attributeChangedCallback(n,a,i){a!==i&&(this.updatePropsFromAttributes(),this.render())}injectStyles(n){var l;const a=this._externalRootEl?(l=this.shadowWrapper)==null?void 0:l.shadowRoot:this.shadowRoot;if(!a)return;const i=new CSSStyleSheet;i.replaceSync(n),a.adoptedStyleSheets=[...a.adoptedStyleSheets,i],console.log("injected styles into shadow root")}setupShadowDOM(){this._externalRootEl?(this.shadowWrapper=document.createElement("div"),this.shadowWrapper.style.width="100%",this.shadowWrapper.style.height="100%",this._externalRootEl.appendChild(this.shadowWrapper),this.shadowWrapper.attachShadow({mode:"open"})):this.shadowRoot||this.attachShadow({mode:"open"});const n=this._externalRootEl?this.shadowWrapper.shadowRoot:this.shadowRoot;if(!n)return;console.log("found new shadow root:",this._externalRootEl);const a=document.createElement("style");a.textContent=typeof __SDK_STYLES__!="undefined"?__SDK_STYLES__:"",n.appendChild(a),this.shadowContainer=document.createElement("div"),this.shadowContainer.style.width="100%",this.shadowContainer.style.height="100%",n.appendChild(this.shadowContainer),this.root=M4(this.shadowContainer)}updatePropsFromAttributes(){var i,l,u,f,h,g,x,y,k,b;const n=T=>{const R=this.getAttribute(T);if(R!==null)return R==="true"||R===""},a=T=>{const R=this.getAttribute(T);if(R===null)return;const N=parseFloat(R);return isNaN(N)?void 0:N};this._props={...this._props,title:(i=this.getAttribute("title"))!=null?i:this._props.title,variant:(l=this.getAttribute("variant"))!=null?l:"fields-previewer",tips:(u=this.getAttribute("tips"))!=null?u:this._props.tips,fullscreen:(f=n("fullscreen"))!=null?f:this._props.fullscreen,streaming:(h=n("streaming"))!=null?h:this._props.streaming,empty:(g=n("empty"))!=null?g:this._props.empty,active:(x=n("active"))!=null?x:this._props.active,zIndex:(y=a("z-index"))!=null?y:this._props.zIndex,padding:(k=a("padding"))!=null?k:this._props.padding,rightSpaceWidth:(b=a("right-space-width"))!=null?b:this._props.rightSpaceWidth}}setProps(n){if("children"in n){this._childrenOverride=n.children;const{children:a,...i}=n;this._props={...this._props,...i}}else this._props={...this._props,...n};this.render()}getProps(){return{...this._props}}render(){var i;if(!this.root)return;this.updatePropsFromAttributes();const n=(i=this._childrenOverride)!=null?i:L.createElement(Hse),a=L.createElement(zse,{...this._props,children:n});this.root.render(a)}}function Use(e="previewer-container"){customElements.get(e)||customElements.define(e,WN)}typeof window!="undefined"&&Use(),Gr.ChatSDK=y6,Gr.FieldsPreviewerWebComponent=WN,Gr.FormBuilderPlugin=LA,Gr.FormBuilderPluginRegisterEntry=Yae,Gr.FormFillingPlugin=fN,Gr.FormFillingPluginRegisterEntry=pN,Gr.ModelFormBuilderPlugin=$A,Gr.ModelFormBuilderPluginRegisterEntry=Xoe,Gr.ReportQueryPlugin=wN,Gr.ReportQueryPluginEntry=vse,Object.defineProperty(Gr,Symbol.toStringTag,{value:"Module"})});
|
|
663
|
-
//# sourceMappingURL=chat-sdk.umd.cjs.map
|