@librechat/client 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,39 +1,59 @@
1
- "use strict";var e=require("react/jsx-runtime"),t=require("react"),r=require("@radix-ui/react-accordion"),n=require("@radix-ui/react-icons"),a=require("@ariakit/react"),o=require("@radix-ui/react-alert-dialog"),s=require("@radix-ui/react-slot"),i=require("@radix-ui/react-checkbox"),l=require("@radix-ui/react-collapsible"),c=require("@radix-ui/react-dropdown-menu"),d=require("@radix-ui/react-dialog"),u=require("jotai"),p=require("react-i18next"),g=require("@radix-ui/react-hover-card"),m=require("@radix-ui/react-label"),f=require("@radix-ui/react-slider"),h=require("@radix-ui/react-separator"),w=require("@radix-ui/react-switch"),x=require("@radix-ui/react-tabs"),b=require("react-textarea-autosize"),v=require("@radix-ui/react-toast"),y=require("framer-motion"),k=require("@radix-ui/react-progress"),C=require("react-resizable-panels"),N=require("@radix-ui/react-select"),j=require("@ariakit/react/select"),S=require("@react-spring/web"),L=require("@tanstack/react-virtual"),M=require("@tanstack/react-table"),z=require("@headlessui/react"),I=require("@ariakit/react-core/select/select-renderer");function R(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var E=R(t),T=R(r),A=R(a),O=R(o),P=R(i),V=R(l),D=R(c),H=R(d),B=R(g),F=R(m),W=R(f),Z=R(h),X=R(w),Y=R(x),_=R(v),$=R(k),U=R(C),G=R(N),q=R(j);function K(e,t){void 0===t&&(t={});var r=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===r&&n.firstChild?n.insertBefore(a,n.firstChild):n.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}function Q(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=Q(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function J(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=Q(e))&&(n&&(n+=" "),n+=t);return n}function ee(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=te(e))&&(n&&(n+=" "),n+=t);return n}function te(e){if("string"==typeof e)return e;for(var t,r="",n=0;n<e.length;n++)e[n]&&(t=te(e[n]))&&(r&&(r+=" "),r+=t);return r}K('*, ::before, ::after {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgba(59, 130, 246, 0.5);\n --tw-ring-offset-shadow: 0 0 rgba(0,0,0,0);\n --tw-ring-shadow: 0 0 rgba(0,0,0,0);\n --tw-shadow: 0 0 rgba(0,0,0,0);\n --tw-shadow-colored: 0 0 rgba(0,0,0,0);\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}\n\n::backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgba(59, 130, 246, 0.5);\n --tw-ring-offset-shadow: 0 0 rgba(0,0,0,0);\n --tw-ring-shadow: 0 0 rgba(0,0,0,0);\n --tw-shadow: 0 0 rgba(0,0,0,0);\n --tw-shadow-colored: 0 0 rgba(0,0,0,0);\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}/*\n! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com\n*//*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: #e3e3e3; /* 2 */\n}\n\n::before,\n::after {\n --tw-content: \'\';\n}\n\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user\'s configured `sans` font-family by default.\n5. Use the user\'s configured `sans` font-feature-settings by default.\n6. Use the user\'s configured `sans` font-variation-settings by default.\n7. Disable tap highlights on iOS\n*/\n\nhtml,\n:host {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n -moz-tab-size: 4; /* 3 */\n -o-tab-size: 4;\n tab-size: 4; /* 3 */\n font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */\n font-feature-settings: normal; /* 5 */\n font-variation-settings: normal; /* 6 */\n -webkit-tap-highlight-color: transparent; /* 7 */\n}\n\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\n\nbody {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}\n\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\n\nhr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}\n\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\n\nabbr:where([title]) {\n text-decoration: underline;\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n\n/*\nRemove the default font size and weight for headings.\n*/\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-size: inherit;\n font-weight: inherit;\n}\n\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\n\na {\n color: inherit;\n text-decoration: inherit;\n}\n\n/*\nAdd the correct font weight in Edge and Safari.\n*/\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/*\n1. Use the user\'s configured `mono` font-family by default.\n2. Use the user\'s configured `mono` font-feature-settings by default.\n3. Use the user\'s configured `mono` font-variation-settings by default.\n4. Correct the odd `em` font sizing in all browsers.\n*/\n\ncode,\nkbd,\nsamp,\npre {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */\n font-feature-settings: normal; /* 2 */\n font-variation-settings: normal; /* 3 */\n font-size: 1em; /* 4 */\n}\n\n/*\nAdd the correct font size in all browsers.\n*/\n\nsmall {\n font-size: 80%;\n}\n\n/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\n\ntable {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}\n\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-feature-settings: inherit; /* 1 */\n font-variation-settings: inherit; /* 1 */\n font-size: 100%; /* 1 */\n font-weight: inherit; /* 1 */\n line-height: inherit; /* 1 */\n letter-spacing: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}\n\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\n\nbutton,\nselect {\n text-transform: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\n\nbutton,\ninput:where([type=\'button\']),\ninput:where([type=\'reset\']),\ninput:where([type=\'submit\']) {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}\n\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n\n:-moz-focusring {\n outline: auto;\n}\n\n/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n\n:-moz-ui-invalid {\n box-shadow: none;\n}\n\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n\nprogress {\n vertical-align: baseline;\n}\n\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n\n[type=\'search\'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n\nsummary {\n display: list-item;\n}\n\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\nblockquote,\ndl,\ndd,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nhr,\nfigure,\np,\npre {\n margin: 0;\n}\n\nfieldset {\n margin: 0;\n padding: 0;\n}\n\nlegend {\n padding: 0;\n}\n\nol,\nul,\nmenu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n/*\nReset default styling for dialogs.\n*/\ndialog {\n padding: 0;\n}\n\n/*\nPrevent resizing textareas horizontally by default.\n*/\n\ntextarea {\n resize: vertical;\n}\n\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user\'s configured gray 400 color.\n*/\n\ninput::-moz-placeholder, textarea::-moz-placeholder {\n opacity: 1; /* 1 */\n color: #999696; /* 2 */\n}\n\ninput::placeholder,\ntextarea::placeholder {\n opacity: 1; /* 1 */\n color: #999696; /* 2 */\n}\n\n/*\nSet the default cursor for buttons.\n*/\n\nbutton,\n[role="button"] {\n cursor: pointer;\n}\n\n/*\nMake sure disabled buttons don\'t get the pointer cursor.\n*/\n:disabled {\n cursor: default;\n}\n\n/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\n\nimg,\nsvg,\nvideo,\ncanvas,\naudio,\niframe,\nembed,\nobject {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}\n\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\n\nimg,\nvideo {\n max-width: 100%;\n height: auto;\n}\n\n/* Make elements with the HTML hidden attribute stay hidden by default */\n[hidden]:where(:not([hidden="until-found"])) {\n display: none;\n}\n.container {\n width: 100%;\n}\n@media (min-width: 640px) {\n\n .container {\n max-width: 640px;\n }\n}\n@media (min-width: 768px) {\n\n .container {\n max-width: 768px;\n }\n}\n@media (min-width: 1024px) {\n\n .container {\n max-width: 1024px;\n }\n}\n@media (min-width: 1280px) {\n\n .container {\n max-width: 1280px;\n }\n}\n@media (min-width: 1536px) {\n\n .container {\n max-width: 1536px;\n }\n}\n.sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n.pointer-events-none {\n pointer-events: none;\n}\n.pointer-events-auto {\n pointer-events: auto;\n}\n.visible {\n visibility: visible;\n}\n.invisible {\n visibility: hidden;\n}\n.fixed {\n position: fixed;\n}\n.absolute {\n position: absolute;\n}\n.relative {\n position: relative;\n}\n.sticky {\n position: sticky;\n}\n.-inset-8 {\n top: -2rem;\n right: -2rem;\n bottom: -2rem;\n left: -2rem;\n}\n.inset-0 {\n top: 0px;\n right: 0px;\n bottom: 0px;\n left: 0px;\n}\n.inset-y-0 {\n top: 0px;\n bottom: 0px;\n}\n.-right-1 {\n right: -0.25rem;\n}\n.-top-1 {\n top: -0.25rem;\n}\n.bottom-0 {\n bottom: 0px;\n}\n.bottom-full {\n bottom: 100%;\n}\n.left-0 {\n left: 0px;\n}\n.left-1\\/2 {\n left: 50%;\n}\n.left-2 {\n left: 0.5rem;\n}\n.left-3 {\n left: 0.75rem;\n}\n.left-\\[50\\%\\] {\n left: 50%;\n}\n.right-0 {\n right: 0px;\n}\n.right-2 {\n right: 0.5rem;\n}\n.right-3 {\n right: 0.75rem;\n}\n.right-4 {\n right: 1rem;\n}\n.right-6 {\n right: 1.5rem;\n}\n.top-0 {\n top: 0px;\n}\n.top-1\\/2 {\n top: 50%;\n}\n.top-4 {\n top: 1rem;\n}\n.top-\\[1\\.6rem\\] {\n top: 1.6rem;\n}\n.top-\\[50\\%\\] {\n top: 50%;\n}\n.top-full {\n top: 100%;\n}\n.isolate {\n isolation: isolate;\n}\n.-z-10 {\n z-index: -10;\n}\n.-z-20 {\n z-index: -20;\n}\n.z-10 {\n z-index: 10;\n}\n.z-20 {\n z-index: 20;\n}\n.z-50 {\n z-index: 50;\n}\n.z-\\[1001\\] {\n z-index: 1001;\n}\n.z-\\[999\\] {\n z-index: 999;\n}\n.m-1 {\n margin: 0.25rem;\n}\n.m-4 {\n margin: 1rem;\n}\n.m-\\[1\\.5px\\] {\n margin: 1.5px;\n}\n.m-auto {\n margin: auto;\n}\n.-mx-1 {\n margin-left: -0.25rem;\n margin-right: -0.25rem;\n}\n.mx-auto {\n margin-left: auto;\n margin-right: auto;\n}\n.my-1 {\n margin-top: 0.25rem;\n margin-bottom: 0.25rem;\n}\n.-ml-3 {\n margin-left: -0.75rem;\n}\n.mb-1 {\n margin-bottom: 0.25rem;\n}\n.mb-2 {\n margin-bottom: 0.5rem;\n}\n.mb-3 {\n margin-bottom: 0.75rem;\n}\n.mb-5 {\n margin-bottom: 1.25rem;\n}\n.ml-1 {\n margin-left: 0.25rem;\n}\n.ml-2 {\n margin-left: 0.5rem;\n}\n.ml-4 {\n margin-left: 1rem;\n}\n.ml-auto {\n margin-left: auto;\n}\n.mr-1 {\n margin-right: 0.25rem;\n}\n.mr-2 {\n margin-right: 0.5rem;\n}\n.mr-8 {\n margin-right: 2rem;\n}\n.mr-auto {\n margin-right: auto;\n}\n.mt-1 {\n margin-top: 0.25rem;\n}\n.mt-2 {\n margin-top: 0.5rem;\n}\n.mt-3 {\n margin-top: 0.75rem;\n}\n.mt-4 {\n margin-top: 1rem;\n}\n.block {\n display: block;\n}\n.inline-block {\n display: inline-block;\n}\n.inline {\n display: inline;\n}\n.flex {\n display: flex;\n}\n.inline-flex {\n display: inline-flex;\n}\n.\\!table {\n display: table !important;\n}\n.table {\n display: table;\n}\n.grid {\n display: grid;\n}\n.contents {\n display: contents;\n}\n.hidden {\n display: none;\n}\n.size-10 {\n width: 2.5rem;\n height: 2.5rem;\n}\n.size-3\\.5 {\n width: 0.875rem;\n height: 0.875rem;\n}\n.size-4 {\n width: 1rem;\n height: 1rem;\n}\n.size-9 {\n width: 2.25rem;\n height: 2.25rem;\n}\n.h-10 {\n height: 2.5rem;\n}\n.h-11 {\n height: 2.75rem;\n}\n.h-12 {\n height: 3rem;\n}\n.h-2 {\n height: 0.5rem;\n}\n.h-2\\.5 {\n height: 0.625rem;\n}\n.h-2\\/3 {\n height: 66.666667%;\n}\n.h-20 {\n height: 5rem;\n}\n.h-3 {\n height: 0.75rem;\n}\n.h-3\\.5 {\n height: 0.875rem;\n}\n.h-4 {\n height: 1rem;\n}\n.h-5 {\n height: 1.25rem;\n}\n.h-6 {\n height: 1.5rem;\n}\n.h-8 {\n height: 2rem;\n}\n.h-9 {\n height: 2.25rem;\n}\n.h-\\[1px\\] {\n height: 1px;\n}\n.h-\\[42px\\] {\n height: 42px;\n}\n.h-\\[calc\\(100vh-20rem\\)\\] {\n height: calc(100vh - 20rem);\n}\n.h-\\[var\\(--radix-select-trigger-height\\)\\] {\n height: var(--radix-select-trigger-height);\n}\n.h-auto {\n height: auto;\n}\n.h-full {\n height: 100%;\n}\n.h-px {\n height: 1px;\n}\n.max-h-10 {\n max-height: 2.5rem;\n}\n.max-h-5 {\n max-height: 1.25rem;\n}\n.max-h-60 {\n max-height: 15rem;\n}\n.max-h-8 {\n max-height: 2rem;\n}\n.max-h-96 {\n max-height: 24rem;\n}\n.max-h-\\[300px\\] {\n max-height: 300px;\n}\n.max-h-\\[52vh\\] {\n max-height: 52vh;\n}\n.max-h-\\[80vh\\] {\n max-height: 80vh;\n}\n.w-0 {\n width: 0px;\n}\n.w-10 {\n width: 2.5rem;\n}\n.w-11 {\n width: 2.75rem;\n}\n.w-11\\/12 {\n width: 91.666667%;\n}\n.w-2 {\n width: 0.5rem;\n}\n.w-2\\.5 {\n width: 0.625rem;\n}\n.w-2\\/3 {\n width: 66.666667%;\n}\n.w-3 {\n width: 0.75rem;\n}\n.w-3\\.5 {\n width: 0.875rem;\n}\n.w-4 {\n width: 1rem;\n}\n.w-5 {\n width: 1.25rem;\n}\n.w-6 {\n width: 1.5rem;\n}\n.w-64 {\n width: 16rem;\n}\n.w-9 {\n width: 2.25rem;\n}\n.w-\\[1px\\] {\n width: 1px;\n}\n.w-\\[30px\\] {\n width: 30px;\n}\n.w-auto {\n width: auto;\n}\n.w-fit {\n width: -moz-fit-content;\n width: fit-content;\n}\n.w-full {\n width: 100%;\n}\n.w-px {\n width: 1px;\n}\n.min-w-0 {\n min-width: 0px;\n}\n.min-w-\\[100px\\] {\n min-width: 100px;\n}\n.min-w-\\[300px\\] {\n min-width: 300px;\n}\n.min-w-\\[40px\\] {\n min-width: 40px;\n}\n.min-w-\\[8rem\\] {\n min-width: 8rem;\n}\n.min-w-\\[var\\(--radix-select-trigger-width\\)\\] {\n min-width: var(--radix-select-trigger-width);\n}\n.max-w-0 {\n max-width: 0px;\n}\n.max-w-full {\n max-width: 100%;\n}\n.max-w-lg {\n max-width: 32rem;\n}\n.flex-1 {\n flex: 1 1 0%;\n}\n.flex-shrink-0 {\n flex-shrink: 0;\n}\n.shrink-0 {\n flex-shrink: 0;\n}\n.flex-grow {\n flex-grow: 1;\n}\n.flex-grow-0 {\n flex-grow: 0;\n}\n.grow {\n flex-grow: 1;\n}\n.table-fixed {\n table-layout: fixed;\n}\n.caption-bottom {\n caption-side: bottom;\n}\n.border-separate {\n border-collapse: separate;\n}\n.border-spacing-0 {\n --tw-border-spacing-x: 0px;\n --tw-border-spacing-y: 0px;\n border-spacing: 0px 0px;\n border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y);\n}\n.origin-\\[--radix-hover-card-content-transform-origin\\] {\n transform-origin: var(--radix-hover-card-content-transform-origin);\n}\n.-translate-x-1\\/2 {\n --tw-translate-x: -50%;\n transform: translate(-50%, var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.-translate-y-1\\/2 {\n --tw-translate-y: -50%;\n transform: translate(var(--tw-translate-x), -50%) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.translate-x-\\[-50\\%\\] {\n --tw-translate-x: -50%;\n transform: translate(-50%, var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.translate-y-\\[-50\\%\\] {\n --tw-translate-y: -50%;\n transform: translate(var(--tw-translate-x), -50%) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.-rotate-180 {\n --tw-rotate: -180deg;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(-180deg) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.rotate-0 {\n --tw-rotate: 0deg;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(0deg) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.scale-0 {\n --tw-scale-x: 0;\n --tw-scale-y: 0;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(0) scaleY(0);\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.scale-100 {\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(1) scaleY(1);\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.scale-105 {\n --tw-scale-x: 1.05;\n --tw-scale-y: 1.05;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(1.05) scaleY(1.05);\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.transform {\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n@keyframes ping {\n\n 75%, 100% {\n transform: scale(2);\n opacity: 0;\n }\n}\n.animate-ping {\n animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;\n}\n@keyframes pulse {\n\n 50% {\n opacity: .5;\n }\n}\n.animate-pulse {\n animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;\n}\n.cursor-default {\n cursor: default;\n}\n.cursor-move {\n cursor: move;\n}\n.cursor-not-allowed {\n cursor: not-allowed;\n}\n.cursor-pointer {\n cursor: pointer;\n}\n.touch-none {\n touch-action: none;\n}\n.select-none {\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n.resize-none {\n resize: none;\n}\n.scroll-m-1 {\n scroll-margin: 0.25rem;\n}\n.appearance-none {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n}\n.flex-row {\n flex-direction: row;\n}\n.flex-col {\n flex-direction: column;\n}\n.flex-col-reverse {\n flex-direction: column-reverse;\n}\n.flex-wrap {\n flex-wrap: wrap;\n}\n.place-items-center {\n align-items: center;\n justify-items: center;\n place-items: center;\n}\n.items-start {\n align-items: flex-start;\n}\n.items-end {\n align-items: flex-end;\n}\n.items-center {\n align-items: center;\n}\n.justify-start {\n justify-content: flex-start;\n}\n.justify-end {\n justify-content: flex-end;\n}\n.justify-center {\n justify-content: center;\n}\n.justify-between {\n justify-content: space-between;\n}\n.gap-1 {\n gap: 0.25rem;\n}\n.gap-1\\.5 {\n gap: 0.375rem;\n}\n.gap-2 {\n gap: 0.5rem;\n}\n.gap-3 {\n gap: 0.75rem;\n}\n.gap-4 {\n gap: 1rem;\n}\n.space-x-2 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-x-reverse: 0;\n margin-right: calc(0.5rem * 0);\n margin-right: calc(0.5rem * var(--tw-space-x-reverse));\n margin-left: calc(0.5rem * (1 - 0));\n margin-left: calc(0.5rem * (1 - var(--tw-space-x-reverse)));\n margin-left: calc(0.5rem * calc(1 - 0));\n margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));\n}\n.space-y-1\\.5 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-y-reverse: 0;\n margin-top: calc(0.375rem * (1 - 0));\n margin-top: calc(0.375rem * (1 - var(--tw-space-y-reverse)));\n margin-top: calc(0.375rem * calc(1 - 0));\n margin-top: calc(0.375rem * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(0.375rem * 0);\n margin-bottom: calc(0.375rem * var(--tw-space-y-reverse));\n}\n.space-y-2 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-y-reverse: 0;\n margin-top: calc(0.5rem * (1 - 0));\n margin-top: calc(0.5rem * (1 - var(--tw-space-y-reverse)));\n margin-top: calc(0.5rem * calc(1 - 0));\n margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(0.5rem * 0);\n margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));\n}\n.overflow-auto {\n overflow: auto;\n}\n.overflow-hidden {\n overflow: hidden;\n}\n.overflow-x-auto {\n overflow-x: auto;\n}\n.overflow-y-auto {\n overflow-y: auto;\n}\n.overflow-y-hidden {\n overflow-y: hidden;\n}\n.overscroll-contain {\n overscroll-behavior: contain;\n}\n.truncate {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.text-ellipsis {\n text-overflow: ellipsis;\n}\n.whitespace-nowrap {\n white-space: nowrap;\n}\n.whitespace-pre-wrap {\n white-space: pre-wrap;\n}\n.break-words {\n word-wrap: break-word;\n}\n.break-all {\n word-break: break-all;\n}\n.rounded {\n border-radius: 0.25rem;\n}\n.rounded-2xl {\n border-radius: 1rem;\n}\n.rounded-3xl {\n border-radius: 1.5rem;\n}\n.rounded-\\[0\\.185rem\\] {\n border-radius: 0.185rem;\n}\n.rounded-full {\n border-radius: 9999px;\n}\n.rounded-lg {\n border-radius: 0.5rem;\n border-radius: var(--radius);\n}\n.rounded-md {\n border-radius: calc(0.5rem - 2px);\n border-radius: calc(var(--radius) - 2px);\n}\n.rounded-sm {\n border-radius: calc(0.5rem - 4px);\n border-radius: calc(var(--radius) - 4px);\n}\n.rounded-xl {\n border-radius: 0.75rem;\n}\n.rounded-b-lg {\n border-bottom-right-radius: 0.5rem;\n border-bottom-right-radius: var(--radius);\n border-bottom-left-radius: 0.5rem;\n border-bottom-left-radius: var(--radius);\n}\n.border {\n border-width: 1px;\n}\n.border-2 {\n border-width: 2px;\n}\n.border-y {\n border-top-width: 1px;\n border-bottom-width: 1px;\n}\n.border-b {\n border-bottom-width: 1px;\n}\n.border-r {\n border-right-width: 1px;\n}\n.border-t {\n border-top-width: 1px;\n}\n.border-none {\n border-style: none;\n}\n.border-black\\/10 {\n border-color: rgba(0, 0, 0, 0.1);\n}\n.border-border-heavy {\n border-color: #999696;\n border-color: var(--border-heavy);\n}\n.border-border-light {\n border-color: #e3e3e3;\n border-color: var(--border-light);\n}\n.border-border-medium {\n border-color: #cdcdcd;\n border-color: var(--border-medium);\n}\n.border-gray-100 {\n --tw-border-opacity: 1;\n border-color: rgba(236, 236, 236, 1);\n border-color: rgba(236, 236, 236, var(--tw-border-opacity, 1));\n}\n.border-gray-200 {\n --tw-border-opacity: 1;\n border-color: rgba(227, 227, 227, 1);\n border-color: rgba(227, 227, 227, var(--tw-border-opacity, 1));\n}\n.border-gray-300 {\n --tw-border-opacity: 1;\n border-color: rgba(205, 205, 205, 1);\n border-color: rgba(205, 205, 205, var(--tw-border-opacity, 1));\n}\n.border-gray-50 {\n --tw-border-opacity: 1;\n border-color: rgba(247, 247, 248, 1);\n border-color: rgba(247, 247, 248, var(--tw-border-opacity, 1));\n}\n.border-gray-500 {\n --tw-border-opacity: 1;\n border-color: rgba(89, 89, 89, 1);\n border-color: rgba(89, 89, 89, var(--tw-border-opacity, 1));\n}\n.border-green-500 {\n --tw-border-opacity: 1;\n border-color: rgba(16, 163, 127, 1);\n border-color: rgba(16, 163, 127, var(--tw-border-opacity, 1));\n}\n.border-green-600 {\n --tw-border-opacity: 1;\n border-color: rgba(18, 110, 107, 1);\n border-color: rgba(18, 110, 107, var(--tw-border-opacity, 1));\n}\n.border-input {\n border-color: hsl(0, 0%, 89.8%);\n border-color: hsl(var(--input));\n}\n.border-orange-500 {\n --tw-border-opacity: 1;\n border-color: rgba(249, 115, 22, 1);\n border-color: rgba(249, 115, 22, var(--tw-border-opacity, 1));\n}\n.border-primary {\n border-color: hsl(0, 0%, 9%);\n border-color: hsl(var(--primary));\n}\n.border-red-500 {\n --tw-border-opacity: 1;\n border-color: rgba(239, 68, 68, 1);\n border-color: rgba(239, 68, 68, var(--tw-border-opacity, 1));\n}\n.border-transparent {\n border-color: transparent;\n}\n.bg-background {\n background-color: hsl(0, 0%, 100%);\n background-color: hsl(var(--background));\n}\n.bg-black\\/80 {\n background-color: rgba(0, 0, 0, 0.8);\n}\n.bg-blue-500 {\n --tw-bg-opacity: 1;\n background-color: rgba(59, 130, 246, 1);\n background-color: rgba(59, 130, 246, var(--tw-bg-opacity, 1));\n}\n.bg-blue-500\\/60 {\n background-color: rgba(59, 130, 246, 0.6);\n}\n.bg-border {\n background-color: hsl(0, 0%, 89.8%);\n background-color: hsl(var(--border));\n}\n.bg-border-light {\n background-color: #e3e3e3;\n background-color: var(--border-light);\n}\n.bg-border-medium {\n background-color: #cdcdcd;\n background-color: var(--border-medium);\n}\n.bg-foreground {\n background-color: hsl(0, 0%, 3.9%);\n background-color: hsl(var(--foreground));\n}\n.bg-gray-50 {\n --tw-bg-opacity: 1;\n background-color: rgba(247, 247, 248, 1);\n background-color: rgba(247, 247, 248, var(--tw-bg-opacity, 1));\n}\n.bg-gray-500 {\n --tw-bg-opacity: 1;\n background-color: rgba(89, 89, 89, 1);\n background-color: rgba(89, 89, 89, var(--tw-bg-opacity, 1));\n}\n.bg-gray-500\\/90 {\n background-color: rgba(89, 89, 89, 0.9);\n}\n.bg-gray-600\\/65 {\n background-color: rgba(66, 66, 66, 0.65);\n}\n.bg-gray-800 {\n --tw-bg-opacity: 1;\n background-color: rgba(33, 33, 33, 1);\n background-color: rgba(33, 33, 33, var(--tw-bg-opacity, 1));\n}\n.bg-gray-900 {\n --tw-bg-opacity: 1;\n background-color: rgba(13, 13, 13, 1);\n background-color: rgba(13, 13, 13, var(--tw-bg-opacity, 1));\n}\n.bg-green-500 {\n --tw-bg-opacity: 1;\n background-color: rgba(16, 163, 127, 1);\n background-color: rgba(16, 163, 127, var(--tw-bg-opacity, 1));\n}\n.bg-green-600\\/20 {\n background-color: rgba(18, 110, 107, 0.2);\n}\n.bg-green-600\\/50 {\n background-color: rgba(18, 110, 107, 0.5);\n}\n.bg-muted {\n background-color: hsl(0, 0%, 96.1%);\n background-color: hsl(var(--muted));\n}\n.bg-muted\\/50 {\n background-color: hsla(0, 0%, 96.1%, 0.5);\n background-color: hsl(var(--muted) / 0.5);\n}\n.bg-orange-500 {\n --tw-bg-opacity: 1;\n background-color: rgba(249, 115, 22, 1);\n background-color: rgba(249, 115, 22, var(--tw-bg-opacity, 1));\n}\n.bg-primary {\n background-color: hsl(0, 0%, 9%);\n background-color: hsl(var(--primary));\n}\n.bg-primary\\/20 {\n background-color: hsla(0, 0%, 9%, 0.2);\n background-color: hsl(var(--primary) / 0.2);\n}\n.bg-red-500 {\n --tw-bg-opacity: 1;\n background-color: rgba(239, 68, 68, 1);\n background-color: rgba(239, 68, 68, var(--tw-bg-opacity, 1));\n}\n.bg-secondary {\n background-color: hsl(0, 0%, 96.1%);\n background-color: hsl(var(--secondary));\n}\n.bg-surface-active {\n background-color: #ececec;\n background-color: var(--surface-active);\n}\n.bg-surface-chat {\n background-color: #fff;\n background-color: var(--surface-chat);\n}\n.bg-surface-destructive {\n background-color: #b91c1c;\n background-color: var(--surface-destructive);\n}\n.bg-surface-primary {\n background-color: #fff;\n background-color: var(--surface-primary);\n}\n.bg-surface-secondary {\n background-color: #f7f7f8;\n background-color: var(--surface-secondary);\n}\n.bg-surface-secondary-alt {\n background-color: #e3e3e3;\n background-color: var(--surface-secondary-alt);\n}\n.bg-surface-submit {\n background-color: #047857;\n background-color: var(--surface-submit);\n}\n.bg-surface-tertiary {\n background-color: #ececec;\n background-color: var(--surface-tertiary);\n}\n.bg-transparent {\n background-color: transparent;\n}\n.bg-white {\n --tw-bg-opacity: 1;\n background-color: rgba(255, 255, 255, 1);\n background-color: rgba(255, 255, 255, var(--tw-bg-opacity, 1));\n}\n.bg-white\\/10 {\n background-color: rgba(255, 255, 255, 0.1);\n}\n.bg-gradient-to-b {\n background-image: linear-gradient(to bottom, var(--tw-gradient-stops));\n}\n.bg-gradient-to-r {\n background-image: linear-gradient(to right, var(--tw-gradient-stops));\n}\n.from-blue-500\\/10 {\n --tw-gradient-from: rgba(59, 130, 246, 0.1) var(--tw-gradient-from-position);\n --tw-gradient-to: rgba(59, 130, 246, 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n}\n.from-blue-500\\/20 {\n --tw-gradient-from: rgba(59, 130, 246, 0.2) var(--tw-gradient-from-position);\n --tw-gradient-to: rgba(59, 130, 246, 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n}\n.from-gray-500 {\n --tw-gradient-from: #595959 var(--tw-gradient-from-position);\n --tw-gradient-to: rgba(89, 89, 89, 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n}\n.from-purple-500\\/5 {\n --tw-gradient-from: rgba(168, 85, 247, 0.05) var(--tw-gradient-from-position);\n --tw-gradient-to: rgba(168, 85, 247, 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n}\n.from-surface-tertiary-alt {\n --tw-gradient-from: var(--surface-tertiary-alt) var(--tw-gradient-from-position);\n --tw-gradient-to: rgba(255, 255, 255, 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n}\n.from-65\\% {\n --tw-gradient-from-position: 65%;\n}\n.via-blue-500\\/5 {\n --tw-gradient-to: rgba(59, 130, 246, 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), rgba(59, 130, 246, 0.05) var(--tw-gradient-via-position), var(--tw-gradient-to);\n}\n.via-purple-500\\/10 {\n --tw-gradient-to: rgba(168, 85, 247, 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), rgba(168, 85, 247, 0.1) var(--tw-gradient-via-position), var(--tw-gradient-to);\n}\n.via-purple-500\\/20 {\n --tw-gradient-to: rgba(168, 85, 247, 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), rgba(168, 85, 247, 0.2) var(--tw-gradient-via-position), var(--tw-gradient-to);\n}\n.to-blue-500\\/10 {\n --tw-gradient-to: rgba(59, 130, 246, 0.1) var(--tw-gradient-to-position);\n}\n.to-blue-500\\/20 {\n --tw-gradient-to: rgba(59, 130, 246, 0.2) var(--tw-gradient-to-position);\n}\n.to-gray-500 {\n --tw-gradient-to: #595959 var(--tw-gradient-to-position);\n}\n.to-purple-500\\/5 {\n --tw-gradient-to: rgba(168, 85, 247, 0.05) var(--tw-gradient-to-position);\n}\n.to-transparent {\n --tw-gradient-to: transparent var(--tw-gradient-to-position);\n}\n.bg-no-repeat {\n background-repeat: no-repeat;\n}\n.fill-current {\n fill: currentColor;\n}\n.stroke-1 {\n stroke-width: 1;\n}\n.p-0 {\n padding: 0px;\n}\n.p-1 {\n padding: 0.25rem;\n}\n.p-1\\.5 {\n padding: 0.375rem;\n}\n.p-2 {\n padding: 0.5rem;\n}\n.p-3 {\n padding: 0.75rem;\n}\n.p-4 {\n padding: 1rem;\n}\n.p-6 {\n padding: 1.5rem;\n}\n.px-0 {\n padding-left: 0px;\n padding-right: 0px;\n}\n.px-1 {\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n}\n.px-1\\.5 {\n padding-left: 0.375rem;\n padding-right: 0.375rem;\n}\n.px-10 {\n padding-left: 2.5rem;\n padding-right: 2.5rem;\n}\n.px-2 {\n padding-left: 0.5rem;\n padding-right: 0.5rem;\n}\n.px-2\\.5 {\n padding-left: 0.625rem;\n padding-right: 0.625rem;\n}\n.px-3 {\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n}\n.px-4 {\n padding-left: 1rem;\n padding-right: 1rem;\n}\n.px-6 {\n padding-left: 1.5rem;\n padding-right: 1.5rem;\n}\n.px-8 {\n padding-left: 2rem;\n padding-right: 2rem;\n}\n.py-1 {\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n}\n.py-1\\.5 {\n padding-top: 0.375rem;\n padding-bottom: 0.375rem;\n}\n.py-2 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n}\n.py-2\\.5 {\n padding-top: 0.625rem;\n padding-bottom: 0.625rem;\n}\n.py-3\\.5 {\n padding-top: 0.875rem;\n padding-bottom: 0.875rem;\n}\n.py-4 {\n padding-top: 1rem;\n padding-bottom: 1rem;\n}\n.pb-4 {\n padding-bottom: 1rem;\n}\n.pb-6 {\n padding-bottom: 1.5rem;\n}\n.pl-2 {\n padding-left: 0.5rem;\n}\n.pl-2\\.5 {\n padding-left: 0.625rem;\n}\n.pl-3 {\n padding-left: 0.75rem;\n}\n.pl-8 {\n padding-left: 2rem;\n}\n.pl-9 {\n padding-left: 2.25rem;\n}\n.pr-10 {\n padding-right: 2.5rem;\n}\n.pr-2 {\n padding-right: 0.5rem;\n}\n.pr-2\\.5 {\n padding-right: 0.625rem;\n}\n.pr-3 {\n padding-right: 0.75rem;\n}\n.pr-8 {\n padding-right: 2rem;\n}\n.pr-9 {\n padding-right: 2.25rem;\n}\n.pt-0 {\n padding-top: 0px;\n}\n.pt-6 {\n padding-top: 1.5rem;\n}\n.text-left {\n text-align: left;\n}\n.text-center {\n text-align: center;\n}\n.align-middle {\n vertical-align: middle;\n}\n.font-sans {\n font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";\n}\n.text-3xl {\n font-size: 1.875rem;\n line-height: 2.25rem;\n}\n.text-\\[0\\.5rem\\] {\n font-size: 0.5rem;\n}\n.text-base {\n font-size: 1rem;\n line-height: 1.5rem;\n}\n.text-lg {\n font-size: 1.125rem;\n line-height: 1.75rem;\n}\n.text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem;\n}\n.text-xs {\n font-size: 0.75rem;\n line-height: 1rem;\n}\n.font-medium {\n font-weight: 500;\n}\n.font-normal {\n font-weight: 400;\n}\n.font-semibold {\n font-weight: 600;\n}\n.leading-6 {\n line-height: 1.5rem;\n}\n.leading-none {\n line-height: 1;\n}\n.tracking-tight {\n letter-spacing: -0.025em;\n}\n.tracking-widest {\n letter-spacing: 0.1em;\n}\n.text-black {\n --tw-text-opacity: 1;\n color: rgba(0, 0, 0, 1);\n color: rgba(0, 0, 0, var(--tw-text-opacity, 1));\n}\n.text-black\\/50 {\n color: rgba(0, 0, 0, 0.5);\n}\n.text-blue-400 {\n --tw-text-opacity: 1;\n color: rgba(96, 165, 250, 1);\n color: rgba(96, 165, 250, var(--tw-text-opacity, 1));\n}\n.text-destructive-foreground {\n color: hsl(0, 0%, 98%);\n color: hsl(var(--destructive-foreground));\n}\n.text-foreground {\n color: hsl(0, 0%, 3.9%);\n color: hsl(var(--foreground));\n}\n.text-gray-400 {\n --tw-text-opacity: 1;\n color: rgba(153, 150, 150, 1);\n color: rgba(153, 150, 150, var(--tw-text-opacity, 1));\n}\n.text-gray-500 {\n --tw-text-opacity: 1;\n color: rgba(89, 89, 89, 1);\n color: rgba(89, 89, 89, var(--tw-text-opacity, 1));\n}\n.text-gray-600 {\n --tw-text-opacity: 1;\n color: rgba(66, 66, 66, 1);\n color: rgba(66, 66, 66, var(--tw-text-opacity, 1));\n}\n.text-gray-700 {\n --tw-text-opacity: 1;\n color: rgba(47, 47, 47, 1);\n color: rgba(47, 47, 47, var(--tw-text-opacity, 1));\n}\n.text-gray-800 {\n --tw-text-opacity: 1;\n color: rgba(33, 33, 33, 1);\n color: rgba(33, 33, 33, var(--tw-text-opacity, 1));\n}\n.text-gray-900 {\n --tw-text-opacity: 1;\n color: rgba(13, 13, 13, 1);\n color: rgba(13, 13, 13, var(--tw-text-opacity, 1));\n}\n.text-green-600 {\n --tw-text-opacity: 1;\n color: rgba(18, 110, 107, 1);\n color: rgba(18, 110, 107, var(--tw-text-opacity, 1));\n}\n.text-muted-foreground {\n color: hsl(0, 0%, 45.1%);\n color: hsl(var(--muted-foreground));\n}\n.text-muted-foreground\\/70 {\n color: hsla(0, 0%, 45.1%, 0.7);\n color: hsl(var(--muted-foreground) / 0.7);\n}\n.text-primary {\n color: hsl(0, 0%, 9%);\n color: hsl(var(--primary));\n}\n.text-primary-foreground {\n color: hsl(0, 0%, 98%);\n color: hsl(var(--primary-foreground));\n}\n.text-red-400 {\n --tw-text-opacity: 1;\n color: rgba(248, 113, 113, 1);\n color: rgba(248, 113, 113, var(--tw-text-opacity, 1));\n}\n.text-secondary {\n color: hsl(0, 0%, 96.1%);\n color: hsl(var(--secondary));\n}\n.text-secondary-foreground {\n color: hsl(0, 0%, 9%);\n color: hsl(var(--secondary-foreground));\n}\n.text-text-primary {\n color: #212121;\n color: var(--text-primary);\n}\n.text-text-secondary {\n color: #424242;\n color: var(--text-secondary);\n}\n.text-text-secondary-alt {\n color: #595959;\n color: var(--text-secondary-alt);\n}\n.text-white {\n --tw-text-opacity: 1;\n color: rgba(255, 255, 255, 1);\n color: rgba(255, 255, 255, var(--tw-text-opacity, 1));\n}\n.underline {\n text-decoration-line: underline;\n}\n.underline-offset-4 {\n text-underline-offset: 4px;\n}\n.placeholder-text-secondary::-moz-placeholder {\n color: #424242;\n color: var(--text-secondary);\n}\n.placeholder-text-secondary::placeholder {\n color: #424242;\n color: var(--text-secondary);\n}\n.opacity-0 {\n opacity: 0;\n}\n.opacity-100 {\n opacity: 1;\n}\n.opacity-50 {\n opacity: 0.5;\n}\n.opacity-70 {\n opacity: 0.7;\n}\n.opacity-75 {\n opacity: 0.75;\n}\n.shadow-2xl {\n --tw-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);\n --tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);\n box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), 0 25px 50px -12px rgba(0, 0, 0, 0.25);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)), var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)), var(--tw-shadow);\n}\n.shadow-lg {\n --tw-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);\n --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);\n box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)), var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)), var(--tw-shadow);\n}\n.shadow-md {\n --tw-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);\n --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);\n box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)), var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)), var(--tw-shadow);\n}\n.shadow-sm {\n --tw-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);\n --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);\n box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), 0 1px 2px 0 rgba(0, 0, 0, 0.05);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)), var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)), var(--tw-shadow);\n}\n.outline-none {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n.outline {\n outline-style: solid;\n}\n.ring-0 {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color), var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color), 0 0 rgba(0,0,0,0);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0,0,0,0));\n}\n.ring-1 {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color), var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color), 0 0 rgba(0,0,0,0);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0,0,0,0));\n}\n.ring-2 {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color), var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color), 0 0 rgba(0,0,0,0);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0,0,0,0));\n}\n.ring-black\\/10 {\n --tw-ring-color: rgba(0, 0, 0, 0.1);\n}\n.ring-ring {\n --tw-ring-color: hsl(var(--ring));\n}\n.ring-ring-primary {\n --tw-ring-color: var(--ring-primary);\n}\n.ring-offset-background {\n --tw-ring-offset-color: hsl(var(--background));\n}\n.blur {\n --tw-blur: blur(8px);\n filter: blur(8px) 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);\n 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);\n}\n.blur-none {\n --tw-blur: ;\n filter: 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);\n 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);\n}\n.blur-sm {\n --tw-blur: blur(4px);\n filter: blur(4px) 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);\n 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);\n}\n.blur-xl {\n --tw-blur: blur(24px);\n filter: blur(24px) 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);\n 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);\n}\n.filter {\n 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);\n}\n.backdrop-blur-sm {\n --tw-backdrop-blur: blur(4px);\n -webkit-backdrop-filter: blur(4px) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);\n -webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);\n backdrop-filter: blur(4px) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);\n backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);\n}\n.transition {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.transition-all {\n transition-property: all;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.transition-colors {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.transition-opacity {\n transition-property: opacity;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.transition-shadow {\n transition-property: box-shadow;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.transition-transform {\n transition-property: transform;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.duration-100 {\n transition-duration: 100ms;\n}\n.duration-1000 {\n transition-duration: 1000ms;\n}\n.duration-200 {\n transition-duration: 200ms;\n}\n.duration-300 {\n transition-duration: 300ms;\n}\n.duration-500 {\n transition-duration: 500ms;\n}\n.duration-700 {\n transition-duration: 700ms;\n}\n.ease-in {\n transition-timing-function: cubic-bezier(0.4, 0, 1, 1);\n}\n.ease-in-out {\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n}\n.ease-out {\n transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n}\n.will-change-transform {\n will-change: transform;\n}\n@keyframes enter {\n\n from {\n opacity: 1;\n opacity: var(--tw-enter-opacity, 1);\n transform: translate3d(0, 0, 0) scale3d(1, 1, 1) rotate(0);\n 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));\n }\n}\n@keyframes exit {\n\n to {\n opacity: 1;\n opacity: var(--tw-exit-opacity, 1);\n transform: translate3d(0, 0, 0) scale3d(1, 1, 1) rotate(0);\n 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));\n }\n}\n.animate-in {\n animation-name: enter;\n animation-duration: 150ms;\n --tw-enter-opacity: initial;\n --tw-enter-scale: initial;\n --tw-enter-rotate: initial;\n --tw-enter-translate-x: initial;\n --tw-enter-translate-y: initial;\n}\n.fade-in {\n --tw-enter-opacity: 0;\n}\n.fade-in-0 {\n --tw-enter-opacity: 0;\n}\n.fade-in-90 {\n --tw-enter-opacity: 0.9;\n}\n.zoom-in-95 {\n --tw-enter-scale: .95;\n}\n.slide-in-from-bottom-10 {\n --tw-enter-translate-y: 2.5rem;\n}\n.slide-in-from-left-1 {\n --tw-enter-translate-x: -0.25rem;\n}\n.duration-100 {\n animation-duration: 100ms;\n}\n.duration-1000 {\n animation-duration: 1000ms;\n}\n.duration-200 {\n animation-duration: 200ms;\n}\n.duration-300 {\n animation-duration: 300ms;\n}\n.duration-500 {\n animation-duration: 500ms;\n}\n.duration-700 {\n animation-duration: 700ms;\n}\n.ease-in {\n animation-timing-function: cubic-bezier(0.4, 0, 1, 1);\n}\n.ease-in-out {\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n}\n.ease-out {\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n}\n/* Custom Variables */\n:root {\n --white: #fff;\n --black: #000;\n --gray-20: #ececf1;\n --gray-50: #f7f7f8;\n --gray-100: #ececec;\n --gray-200: #e3e3e3;\n --gray-300: #cdcdcd;\n --gray-400: #999696;\n --gray-500: #595959;\n --gray-600: #424242;\n --gray-700: #2f2f2f;\n --gray-800: #212121;\n --gray-850: #171717;\n --gray-900: #0d0d0d;\n --green-50: #ecfdf5;\n --green-100: #d1fae5;\n --green-200: #a7f3d0;\n --green-300: #6ee7b7;\n --green-400: #34d399;\n --green-500: #10b981;\n --green-600: #059669;\n --green-700: #047857;\n --green-800: #065f46;\n --green-900: #064e3b;\n --green-950: #022c22;\n --red-50: #fef2f2;\n --red-100: #fee2e2;\n --red-200: #fecaca;\n --red-300: #fca5a5;\n --red-400: #f87171;\n --red-500: #ef4444;\n --red-600: #dc2626;\n --red-700: #b91c1c;\n --red-800: #991b1b;\n --red-900: #7f1d1d;\n --red-950: #450a0a;\n --amber-50: #fffbeb;\n --amber-100: #fef3c7;\n --amber-200: #fde68a;\n --amber-300: #fcd34d;\n --amber-400: #fbbf24;\n --amber-500: #f59e0b;\n --amber-600: #d97706;\n --amber-700: #b45309;\n --amber-800: #92400e;\n --amber-900: #78350f;\n --amber-950: #451a03;\n}\nhtml {\n --presentation: var(--white);\n --text-primary: var(--gray-800);\n --text-secondary: var(--gray-600);\n --text-secondary-alt: var(--gray-500);\n --text-tertiary: var(--gray-500);\n --text-warning: var(--amber-500);\n --ring-primary: var(--gray-500);\n --header-primary: var(--white);\n --header-hover: var(--gray-50);\n --header-button-hover: var(--gray-50);\n --surface-active: var(--gray-100);\n --surface-active-alt: var(--gray-200);\n --surface-hover: var(--gray-200);\n --surface-hover-alt: var(--gray-300);\n --surface-primary: var(--white);\n --surface-primary-alt: var(--gray-50);\n --surface-primary-contrast: var(--gray-100);\n --surface-secondary: var(--gray-50);\n --surface-secondary-alt: var(--gray-200);\n --surface-tertiary: var(--gray-100);\n --surface-tertiary-alt: var(--white);\n --surface-dialog: var(--white);\n --surface-submit: var(--green-700);\n --surface-submit-hover: var(--green-800);\n --surface-destructive: var(--red-700);\n --surface-destructive-hover: var(--red-800);\n --surface-chat: var(--white);\n --border-light: var(--gray-200);\n --border-medium-alt: var(--gray-300);\n --border-medium: var(--gray-300);\n --border-heavy: var(--gray-400);\n --border-xheavy: var(--gray-500);\n\n --background: 0 0% 100%;\n --foreground: 0 0% 3.9%;\n --card: 0 0% 100%;\n --card-foreground: 0 0% 3.9%;\n --primary: 0 0% 9%;\n --primary-foreground: 0 0% 98%;\n --secondary: 0 0% 96.1%;\n --secondary-foreground: 0 0% 9%;\n --muted: 0 0% 96.1%;\n --muted-foreground: 0 0% 45.1%;\n --accent: 0 0% 96.1%;\n --accent-foreground: 0 0% 9%;\n --destructive: 0 84.2% 60.2%;\n --destructive-foreground: 0 0% 98%;\n --border: 0 0% 89.8%;\n --input: 0 0% 89.8%;\n --ring: 0 0% 3.9%;\n --radius: 0.5rem;\n --chart-1: 12 76% 61%;\n --chart-2: 173 58% 39%;\n --chart-3: 197 37% 24%;\n --chart-4: 43 74% 66%;\n --chart-5: 27 87% 67%;\n --switch-unchecked: 0 0% 58%;\n}\n.dark {\n --presentation: var(--gray-800);\n --text-primary: var(--gray-100);\n --text-secondary: var(--gray-300);\n --text-secondary-alt: var(--gray-400);\n --text-tertiary: var(--gray-500);\n --text-warning: var(--amber-500);\n --header-primary: var(--gray-700);\n --header-hover: var(--gray-600);\n --header-button-hover: var(--gray-700);\n --surface-active: var(--gray-500);\n --surface-active-alt: var(--gray-700);\n --surface-hover: var(--gray-600);\n --surface-hover-alt: var(--gray-600);\n --surface-primary: var(--gray-900);\n --surface-primary-alt: var(--gray-850);\n --surface-primary-contrast: var(--gray-850);\n --surface-secondary: var(--gray-800);\n --surface-secondary-alt: var(--gray-800);\n --surface-tertiary: var(--gray-700);\n --surface-tertiary-alt: var(--gray-700);\n --surface-dialog: var(--gray-850);\n --surface-submit: var(--green-700);\n --surface-submit-hover: var(--green-800);\n --surface-destructive: var(--red-800);\n --surface-destructive-hover: var(--red-900);\n --surface-chat: var(--gray-700);\n --border-light: var(--gray-700);\n --border-medium-alt: var(--gray-600);\n --border-medium: var(--gray-600);\n --border-heavy: var(--gray-500);\n --border-xheavy: var(--gray-400);\n\n --background: 0 0% 7%;\n --foreground: 0 0% 98%;\n --card: 0 0% 3.9%;\n --card-foreground: 0 0% 98%;\n --primary: 0 0% 98%;\n --primary-foreground: 0 0% 9%;\n --secondary: 0 0% 14.9%;\n --secondary-foreground: 0 0% 98%;\n --muted: 0 0% 14.9%;\n --muted-foreground: 0 0% 63.9%;\n --accent: 0 0% 14.9%;\n --accent-foreground: 0 0% 98%;\n --destructive: 0 62.8% 40.6%;\n --destructive-foreground: 0 0% 98%;\n --border: 0 0% 14.9%;\n --input: 0 0% 14.9%;\n --ring: 0 0% 83.1%;\n --chart-1: 220 70% 50%;\n --chart-2: 160 60% 45%;\n --chart-3: 30 80% 55%;\n --chart-4: 280 65% 60%;\n --chart-5: 340 75% 55%;\n --switch-unchecked: 0 0% 40%;\n}\n.placeholder\\:text-gray-400::-moz-placeholder {\n --tw-text-opacity: 1;\n color: rgba(153, 150, 150, 1);\n color: rgba(153, 150, 150, var(--tw-text-opacity, 1));\n}\n.placeholder\\:text-gray-400::placeholder {\n --tw-text-opacity: 1;\n color: rgba(153, 150, 150, 1);\n color: rgba(153, 150, 150, var(--tw-text-opacity, 1));\n}\n.placeholder\\:text-muted-foreground::-moz-placeholder {\n color: hsl(0, 0%, 45.1%);\n color: hsl(var(--muted-foreground));\n}\n.placeholder\\:text-muted-foreground::placeholder {\n color: hsl(0, 0%, 45.1%);\n color: hsl(var(--muted-foreground));\n}\n.after\\:absolute::after {\n content: var(--tw-content);\n position: absolute;\n}\n.after\\:inset-y-0::after {\n content: var(--tw-content);\n top: 0px;\n bottom: 0px;\n}\n.after\\:left-1\\/2::after {\n content: var(--tw-content);\n left: 50%;\n}\n.after\\:w-1::after {\n content: var(--tw-content);\n width: 0.25rem;\n}\n.after\\:-translate-x-1\\/2::after {\n content: var(--tw-content);\n --tw-translate-x: -50%;\n transform: translate(-50%, var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.first\\:rounded-l-xl:first-child {\n border-top-left-radius: 0.75rem;\n border-bottom-left-radius: 0.75rem;\n}\n.first\\:border-l:first-child {\n border-left-width: 1px;\n}\n.last\\:rounded-r-xl:last-child {\n border-top-right-radius: 0.75rem;\n border-bottom-right-radius: 0.75rem;\n}\n.hover\\:cursor-pointer:hover {\n cursor: pointer;\n}\n.hover\\:bg-accent:hover {\n background-color: hsl(0, 0%, 96.1%);\n background-color: hsl(var(--accent));\n}\n.hover\\:bg-black\\/\\[0\\.075\\]:hover {\n background-color: rgba(0, 0, 0, 0.075);\n}\n.hover\\:bg-gray-100:hover {\n --tw-bg-opacity: 1;\n background-color: rgba(236, 236, 236, 1);\n background-color: rgba(236, 236, 236, var(--tw-bg-opacity, 1));\n}\n.hover\\:bg-gray-100\\/50:hover {\n background-color: rgba(236, 236, 236, 0.5);\n}\n.hover\\:bg-gray-20:hover {\n --tw-bg-opacity: 1;\n background-color: rgba(236, 236, 241, 1);\n background-color: rgba(236, 236, 241, var(--tw-bg-opacity, 1));\n}\n.hover\\:bg-gray-200:hover {\n --tw-bg-opacity: 1;\n background-color: rgba(227, 227, 227, 1);\n background-color: rgba(227, 227, 227, var(--tw-bg-opacity, 1));\n}\n.hover\\:bg-gray-50:hover {\n --tw-bg-opacity: 1;\n background-color: rgba(247, 247, 248, 1);\n background-color: rgba(247, 247, 248, var(--tw-bg-opacity, 1));\n}\n.hover\\:bg-gray-700:hover {\n --tw-bg-opacity: 1;\n background-color: rgba(47, 47, 47, 1);\n background-color: rgba(47, 47, 47, var(--tw-bg-opacity, 1));\n}\n.hover\\:bg-gray-800:hover {\n --tw-bg-opacity: 1;\n background-color: rgba(33, 33, 33, 1);\n background-color: rgba(33, 33, 33, var(--tw-bg-opacity, 1));\n}\n.hover\\:bg-muted\\/50:hover {\n background-color: hsla(0, 0%, 96.1%, 0.5);\n background-color: hsl(var(--muted) / 0.5);\n}\n.hover\\:bg-primary\\/90:hover {\n background-color: hsla(0, 0%, 9%, 0.9);\n background-color: hsl(var(--primary) / 0.9);\n}\n.hover\\:bg-secondary\\/80:hover {\n background-color: hsla(0, 0%, 96.1%, 0.8);\n background-color: hsl(var(--secondary) / 0.8);\n}\n.hover\\:bg-surface-destructive-hover:hover {\n background-color: #991b1b;\n background-color: var(--surface-destructive-hover);\n}\n.hover\\:bg-surface-hover:hover {\n background-color: #e3e3e3;\n background-color: var(--surface-hover);\n}\n.hover\\:bg-surface-secondary:hover {\n background-color: #f7f7f8;\n background-color: var(--surface-secondary);\n}\n.hover\\:bg-surface-submit-hover:hover {\n background-color: #065f46;\n background-color: var(--surface-submit-hover);\n}\n.hover\\:bg-surface-tertiary:hover {\n background-color: #ececec;\n background-color: var(--surface-tertiary);\n}\n.hover\\:bg-transparent:hover {\n background-color: transparent;\n}\n.hover\\:text-accent-foreground:hover {\n color: hsl(0, 0%, 9%);\n color: hsl(var(--accent-foreground));\n}\n.hover\\:text-foreground:hover {\n color: hsl(0, 0%, 3.9%);\n color: hsl(var(--foreground));\n}\n.hover\\:text-secondary:hover {\n color: hsl(0, 0%, 96.1%);\n color: hsl(var(--secondary));\n}\n.hover\\:text-text-primary:hover {\n color: #212121;\n color: var(--text-primary);\n}\n.hover\\:underline:hover {\n text-decoration-line: underline;\n}\n.hover\\:opacity-100:hover {\n opacity: 1;\n}\n.hover\\:shadow-md:hover {\n --tw-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);\n --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);\n box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)), var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)), var(--tw-shadow);\n}\n.hover\\:shadow-sm:hover {\n --tw-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);\n --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);\n box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), 0 1px 2px 0 rgba(0, 0, 0, 0.05);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)), var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)), var(--tw-shadow);\n}\n.focus\\:bg-accent:focus {\n background-color: hsl(0, 0%, 96.1%);\n background-color: hsl(var(--accent));\n}\n.focus\\:bg-gray-100:focus {\n --tw-bg-opacity: 1;\n background-color: rgba(236, 236, 236, 1);\n background-color: rgba(236, 236, 236, var(--tw-bg-opacity, 1));\n}\n.focus\\:bg-surface-hover:focus {\n background-color: #e3e3e3;\n background-color: var(--surface-hover);\n}\n.focus\\:bg-surface-tertiary:focus {\n background-color: #ececec;\n background-color: var(--surface-tertiary);\n}\n.focus\\:bg-gradient-to-b:focus {\n background-image: linear-gradient(to bottom, var(--tw-gradient-stops));\n}\n.focus\\:from-surface-primary:focus {\n --tw-gradient-from: var(--surface-primary) var(--tw-gradient-from-position);\n --tw-gradient-to: rgba(255, 255, 255, 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n}\n.focus\\:text-accent-foreground:focus {\n color: hsl(0, 0%, 9%);\n color: hsl(var(--accent-foreground));\n}\n.focus\\:outline-none:focus {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n.focus\\:ring-0:focus {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color), var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color), 0 0 rgba(0,0,0,0);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0,0,0,0));\n}\n.focus\\:ring-1:focus {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color), var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color), 0 0 rgba(0,0,0,0);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0,0,0,0));\n}\n.focus\\:ring-2:focus {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color), var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color), 0 0 rgba(0,0,0,0);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0,0,0,0));\n}\n.focus\\:ring-inset:focus {\n --tw-ring-inset: inset;\n}\n.focus\\:ring-gray-400:focus {\n --tw-ring-opacity: 1;\n --tw-ring-color: rgba(153, 150, 150, var(--tw-ring-opacity, 1));\n}\n.focus\\:ring-gray-700\\/10:focus {\n --tw-ring-color: rgba(47, 47, 47, 0.1);\n}\n.focus\\:ring-ring:focus {\n --tw-ring-color: hsl(var(--ring));\n}\n.focus\\:ring-ring-primary:focus {\n --tw-ring-color: var(--ring-primary);\n}\n.focus\\:ring-offset-2:focus {\n --tw-ring-offset-width: 2px;\n}\n.focus-visible\\:outline-none:focus-visible {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n.focus-visible\\:ring-1:focus-visible {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color), var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color), 0 0 rgba(0,0,0,0);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0,0,0,0));\n}\n.focus-visible\\:ring-2:focus-visible {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color), var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color), 0 0 rgba(0,0,0,0);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0,0,0,0));\n}\n.focus-visible\\:ring-gray-500:focus-visible {\n --tw-ring-opacity: 1;\n --tw-ring-color: rgba(89, 89, 89, var(--tw-ring-opacity, 1));\n}\n.focus-visible\\:ring-ring:focus-visible {\n --tw-ring-color: hsl(var(--ring));\n}\n.focus-visible\\:ring-ring-primary:focus-visible {\n --tw-ring-color: var(--ring-primary);\n}\n.focus-visible\\:ring-white:focus-visible {\n --tw-ring-opacity: 1;\n --tw-ring-color: rgba(255, 255, 255, var(--tw-ring-opacity, 1));\n}\n.focus-visible\\:ring-opacity-75:focus-visible {\n --tw-ring-opacity: 0.75;\n}\n.focus-visible\\:ring-offset-1:focus-visible {\n --tw-ring-offset-width: 1px;\n}\n.focus-visible\\:ring-offset-2:focus-visible {\n --tw-ring-offset-width: 2px;\n}\n.focus-visible\\:ring-offset-background:focus-visible {\n --tw-ring-offset-color: hsl(var(--background));\n}\n.active\\:scale-95:active {\n --tw-scale-x: .95;\n --tw-scale-y: .95;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(.95) scaleY(.95);\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.active\\:shadow-inner:active {\n --tw-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);\n --tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);\n box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)), var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)), var(--tw-shadow);\n}\n.disabled\\:pointer-events-none:disabled {\n pointer-events: none;\n}\n.disabled\\:cursor-not-allowed:disabled {\n cursor: not-allowed;\n}\n.disabled\\:bg-white:disabled {\n --tw-bg-opacity: 1;\n background-color: rgba(255, 255, 255, 1);\n background-color: rgba(255, 255, 255, var(--tw-bg-opacity, 1));\n}\n.disabled\\:opacity-50:disabled {\n opacity: 0.5;\n}\n.disabled\\:opacity-80:disabled {\n opacity: 0.8;\n}\n.group:hover .group-hover\\:visible {\n visibility: visible;\n}\n.group:hover .group-hover\\:inline {\n display: inline;\n}\n.group:hover .group-hover\\:hidden {\n display: none;\n}\n.group:focus .group-focus\\:inline {\n display: inline;\n}\n.group:active .group-active\\:visible {\n visibility: visible;\n}\n.peer:focus ~ .peer-focus\\:scale-105 {\n --tw-scale-x: 1.05;\n --tw-scale-y: 1.05;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(1.05) scaleY(1.05);\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.peer:focus ~ .peer-focus\\:opacity-100 {\n opacity: 1;\n}\n.peer:disabled ~ .peer-disabled\\:cursor-not-allowed {\n cursor: not-allowed;\n}\n.peer:disabled ~ .peer-disabled\\:opacity-70 {\n opacity: 0.7;\n}\n.has-\\[\\:disabled\\]\\:opacity-50:has(:disabled) {\n opacity: 0.5;\n}\n.aria-disabled\\:opacity-50[aria-disabled="true"] {\n opacity: 0.5;\n}\n.data-\\[disabled\\]\\:pointer-events-none[data-disabled] {\n pointer-events: none;\n}\n.data-\\[panel-group-direction\\=vertical\\]\\:h-px[data-panel-group-direction="vertical"] {\n height: 1px;\n}\n.data-\\[panel-group-direction\\=vertical\\]\\:w-full[data-panel-group-direction="vertical"] {\n width: 100%;\n}\n.data-\\[side\\=bottom\\]\\:translate-y-1[data-side="bottom"] {\n --tw-translate-y: 0.25rem;\n transform: translate(var(--tw-translate-x), 0.25rem) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.data-\\[side\\=left\\]\\:-translate-x-1[data-side="left"] {\n --tw-translate-x: -0.25rem;\n transform: translate(-0.25rem, var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.data-\\[side\\=right\\]\\:translate-x-1[data-side="right"] {\n --tw-translate-x: 0.25rem;\n transform: translate(0.25rem, var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.data-\\[side\\=top\\]\\:-translate-y-1[data-side="top"] {\n --tw-translate-y: -0.25rem;\n transform: translate(var(--tw-translate-x), -0.25rem) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.data-\\[state\\=checked\\]\\:translate-x-5[data-state="checked"] {\n --tw-translate-x: 1.25rem;\n transform: translate(1.25rem, var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.data-\\[state\\=unchecked\\]\\:translate-x-0[data-state="unchecked"] {\n --tw-translate-x: 0px;\n transform: translate(0px, var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n@keyframes accordion-up {\n\n from {\n height: var(--radix-accordion-content-height);\n }\n\n to {\n height: 0;\n }\n}\n.data-\\[state\\=closed\\]\\:animate-accordion-up[data-state="closed"] {\n animation: accordion-up 0.2s ease-out;\n}\n@keyframes accordion-down {\n\n from {\n height: 0;\n }\n\n to {\n height: var(--radix-accordion-content-height);\n }\n}\n.data-\\[state\\=open\\]\\:animate-accordion-down[data-state="open"] {\n animation: accordion-down 0.2s ease-out;\n}\n.data-\\[panel-group-direction\\=vertical\\]\\:flex-col[data-panel-group-direction="vertical"] {\n flex-direction: column;\n}\n.data-\\[active-item\\]\\:bg-black\\/\\[0\\.075\\][data-active-item] {\n background-color: rgba(0, 0, 0, 0.075);\n}\n.data-\\[active-item\\]\\:bg-surface-tertiary[data-active-item] {\n background-color: #ececec;\n background-color: var(--surface-tertiary);\n}\n.data-\\[state\\=active\\]\\:bg-white[data-state="active"] {\n --tw-bg-opacity: 1;\n background-color: rgba(255, 255, 255, 1);\n background-color: rgba(255, 255, 255, var(--tw-bg-opacity, 1));\n}\n.data-\\[state\\=checked\\]\\:bg-primary[data-state="checked"] {\n background-color: hsl(0, 0%, 9%);\n background-color: hsl(var(--primary));\n}\n.data-\\[state\\=open\\]\\:bg-accent[data-state="open"] {\n background-color: hsl(0, 0%, 96.1%);\n background-color: hsl(var(--accent));\n}\n.data-\\[state\\=open\\]\\:bg-gray-100[data-state="open"] {\n --tw-bg-opacity: 1;\n background-color: rgba(236, 236, 236, 1);\n background-color: rgba(236, 236, 236, var(--tw-bg-opacity, 1));\n}\n.data-\\[state\\=selected\\]\\:bg-muted[data-state="selected"] {\n background-color: hsl(0, 0%, 96.1%);\n background-color: hsl(var(--muted));\n}\n.data-\\[state\\=unchecked\\]\\:bg-switch-unchecked[data-state="unchecked"] {\n background-color: hsl(0, 0%, 58%);\n background-color: hsl(var(--switch-unchecked));\n}\n.data-\\[active-item\\]\\:text-text-primary[data-active-item] {\n color: #212121;\n color: var(--text-primary);\n}\n.data-\\[state\\=active\\]\\:text-gray-800[data-state="active"] {\n --tw-text-opacity: 1;\n color: rgba(33, 33, 33, 1);\n color: rgba(33, 33, 33, var(--tw-text-opacity, 1));\n}\n.data-\\[state\\=checked\\]\\:text-primary-foreground[data-state="checked"] {\n color: hsl(0, 0%, 98%);\n color: hsl(var(--primary-foreground));\n}\n.data-\\[state\\=open\\]\\:text-muted-foreground[data-state="open"] {\n color: hsl(0, 0%, 45.1%);\n color: hsl(var(--muted-foreground));\n}\n.data-\\[disabled\\]\\:opacity-50[data-disabled] {\n opacity: 0.5;\n}\n.data-\\[state\\=active\\]\\:shadow-sm[data-state="active"] {\n --tw-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);\n --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);\n box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), 0 1px 2px 0 rgba(0, 0, 0, 0.05);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)), var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)), var(--tw-shadow);\n}\n.data-\\[state\\=open\\]\\:animate-in[data-state="open"] {\n animation-name: enter;\n animation-duration: 150ms;\n --tw-enter-opacity: initial;\n --tw-enter-scale: initial;\n --tw-enter-rotate: initial;\n --tw-enter-translate-x: initial;\n --tw-enter-translate-y: initial;\n}\n.data-\\[state\\=closed\\]\\:animate-out[data-state="closed"] {\n animation-name: exit;\n animation-duration: 150ms;\n --tw-exit-opacity: initial;\n --tw-exit-scale: initial;\n --tw-exit-rotate: initial;\n --tw-exit-translate-x: initial;\n --tw-exit-translate-y: initial;\n}\n.data-\\[state\\=closed\\]\\:fade-out[data-state="closed"] {\n --tw-exit-opacity: 0;\n}\n.data-\\[state\\=closed\\]\\:fade-out-0[data-state="closed"] {\n --tw-exit-opacity: 0;\n}\n.data-\\[state\\=open\\]\\:fade-in[data-state="open"] {\n --tw-enter-opacity: 0;\n}\n.data-\\[state\\=open\\]\\:fade-in-0[data-state="open"] {\n --tw-enter-opacity: 0;\n}\n.data-\\[state\\=open\\]\\:fade-in-90[data-state="open"] {\n --tw-enter-opacity: 0.9;\n}\n.data-\\[state\\=closed\\]\\:zoom-out-95[data-state="closed"] {\n --tw-exit-scale: .95;\n}\n.data-\\[state\\=open\\]\\:zoom-in-95[data-state="open"] {\n --tw-enter-scale: .95;\n}\n.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side="bottom"] {\n --tw-enter-translate-y: -0.5rem;\n}\n.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side="left"] {\n --tw-enter-translate-x: 0.5rem;\n}\n.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side="right"] {\n --tw-enter-translate-x: -0.5rem;\n}\n.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side="top"] {\n --tw-enter-translate-y: 0.5rem;\n}\n.data-\\[state\\=closed\\]\\:slide-out-to-left-1\\/2[data-state="closed"] {\n --tw-exit-translate-x: -50%;\n}\n.data-\\[state\\=closed\\]\\:slide-out-to-top-\\[48\\%\\][data-state="closed"] {\n --tw-exit-translate-y: -48%;\n}\n.data-\\[state\\=open\\]\\:slide-in-from-bottom-10[data-state="open"] {\n --tw-enter-translate-y: 2.5rem;\n}\n.data-\\[state\\=open\\]\\:slide-in-from-left-1\\/2[data-state="open"] {\n --tw-enter-translate-x: -50%;\n}\n.data-\\[state\\=open\\]\\:slide-in-from-top-\\[48\\%\\][data-state="open"] {\n --tw-enter-translate-y: -48%;\n}\n.data-\\[panel-group-direction\\=vertical\\]\\:after\\:left-0[data-panel-group-direction="vertical"]::after {\n content: var(--tw-content);\n left: 0px;\n}\n.data-\\[panel-group-direction\\=vertical\\]\\:after\\:h-1[data-panel-group-direction="vertical"]::after {\n content: var(--tw-content);\n height: 0.25rem;\n}\n.data-\\[panel-group-direction\\=vertical\\]\\:after\\:w-full[data-panel-group-direction="vertical"]::after {\n content: var(--tw-content);\n width: 100%;\n}\n.data-\\[panel-group-direction\\=vertical\\]\\:after\\:-translate-y-1\\/2[data-panel-group-direction="vertical"]::after {\n content: var(--tw-content);\n --tw-translate-y: -50%;\n transform: translate(var(--tw-translate-x), -50%) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.data-\\[panel-group-direction\\=vertical\\]\\:after\\:translate-x-0[data-panel-group-direction="vertical"]::after {\n content: var(--tw-content);\n --tw-translate-x: 0px;\n transform: translate(0px, var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.dark *.dark\\:border-gray-300 {\n --tw-border-opacity: 1;\n border-color: rgba(205, 205, 205, 1);\n border-color: rgba(205, 205, 205, var(--tw-border-opacity, 1));\n}\n.dark *.dark\\:border-gray-600 {\n --tw-border-opacity: 1;\n border-color: rgba(66, 66, 66, 1);\n border-color: rgba(66, 66, 66, var(--tw-border-opacity, 1));\n}\n.dark *.dark\\:border-gray-700 {\n --tw-border-opacity: 1;\n border-color: rgba(47, 47, 47, 1);\n border-color: rgba(47, 47, 47, var(--tw-border-opacity, 1));\n}\n.dark *.dark\\:border-gray-800 {\n --tw-border-opacity: 1;\n border-color: rgba(33, 33, 33, 1);\n border-color: rgba(33, 33, 33, var(--tw-border-opacity, 1));\n}\n.dark *.dark\\:border-white\\/10 {\n border-color: rgba(255, 255, 255, 0.1);\n}\n.dark *.dark\\:bg-black\\/80 {\n background-color: rgba(0, 0, 0, 0.8);\n}\n.dark *.dark\\:bg-gray-100 {\n --tw-bg-opacity: 1;\n background-color: rgba(236, 236, 236, 1);\n background-color: rgba(236, 236, 236, var(--tw-bg-opacity, 1));\n}\n.dark *.dark\\:bg-gray-200 {\n --tw-bg-opacity: 1;\n background-color: rgba(227, 227, 227, 1);\n background-color: rgba(227, 227, 227, var(--tw-bg-opacity, 1));\n}\n.dark *.dark\\:bg-gray-700 {\n --tw-bg-opacity: 1;\n background-color: rgba(47, 47, 47, 1);\n background-color: rgba(47, 47, 47, var(--tw-bg-opacity, 1));\n}\n.dark *.dark\\:bg-gray-800 {\n --tw-bg-opacity: 1;\n background-color: rgba(33, 33, 33, 1);\n background-color: rgba(33, 33, 33, var(--tw-bg-opacity, 1));\n}\n.dark *.dark\\:bg-gray-800\\/90 {\n background-color: rgba(33, 33, 33, 0.9);\n}\n.dark *.dark\\:bg-gray-850 {\n --tw-bg-opacity: 1;\n background-color: rgba(23, 23, 23, 1);\n background-color: rgba(23, 23, 23, var(--tw-bg-opacity, 1));\n}\n.dark *.dark\\:bg-gray-900 {\n --tw-bg-opacity: 1;\n background-color: rgba(13, 13, 13, 1);\n background-color: rgba(13, 13, 13, var(--tw-bg-opacity, 1));\n}\n.dark *.dark\\:bg-white\\/5 {\n background-color: rgba(255, 255, 255, 0.05);\n}\n.dark *.dark\\:fill-white {\n fill: #fff;\n}\n.dark *.dark\\:text-black {\n --tw-text-opacity: 1;\n color: rgba(0, 0, 0, 1);\n color: rgba(0, 0, 0, var(--tw-text-opacity, 1));\n}\n.dark *.dark\\:text-gray-100 {\n --tw-text-opacity: 1;\n color: rgba(236, 236, 236, 1);\n color: rgba(236, 236, 236, var(--tw-text-opacity, 1));\n}\n.dark *.dark\\:text-gray-200 {\n --tw-text-opacity: 1;\n color: rgba(227, 227, 227, 1);\n color: rgba(227, 227, 227, var(--tw-text-opacity, 1));\n}\n.dark *.dark\\:text-gray-300 {\n --tw-text-opacity: 1;\n color: rgba(205, 205, 205, 1);\n color: rgba(205, 205, 205, var(--tw-text-opacity, 1));\n}\n.dark *.dark\\:text-gray-400 {\n --tw-text-opacity: 1;\n color: rgba(153, 150, 150, 1);\n color: rgba(153, 150, 150, var(--tw-text-opacity, 1));\n}\n.dark *.dark\\:text-gray-50 {\n --tw-text-opacity: 1;\n color: rgba(247, 247, 248, 1);\n color: rgba(247, 247, 248, var(--tw-text-opacity, 1));\n}\n.dark *.dark\\:text-gray-500 {\n --tw-text-opacity: 1;\n color: rgba(89, 89, 89, 1);\n color: rgba(89, 89, 89, var(--tw-text-opacity, 1));\n}\n.dark *.dark\\:text-gray-800 {\n --tw-text-opacity: 1;\n color: rgba(33, 33, 33, 1);\n color: rgba(33, 33, 33, var(--tw-text-opacity, 1));\n}\n.dark *.dark\\:text-gray-900 {\n --tw-text-opacity: 1;\n color: rgba(13, 13, 13, 1);\n color: rgba(13, 13, 13, var(--tw-text-opacity, 1));\n}\n.dark *.dark\\:text-white {\n --tw-text-opacity: 1;\n color: rgba(255, 255, 255, 1);\n color: rgba(255, 255, 255, var(--tw-text-opacity, 1));\n}\n.dark *.dark\\:text-white\\/50 {\n color: rgba(255, 255, 255, 0.5);\n}\n.dark *.dark\\:opacity-25 {\n opacity: 0.25;\n}\n.dark *.dark\\:ring-white\\/20 {\n --tw-ring-color: rgba(255, 255, 255, 0.2);\n}\n.dark .dark\\:hover\\:bg-gray-100:hover {\n --tw-bg-opacity: 1;\n background-color: rgba(236, 236, 236, 1);\n background-color: rgba(236, 236, 236, var(--tw-bg-opacity, 1));\n}\n.dark .dark\\:hover\\:bg-gray-200:hover {\n --tw-bg-opacity: 1;\n background-color: rgba(227, 227, 227, 1);\n background-color: rgba(227, 227, 227, var(--tw-bg-opacity, 1));\n}\n.dark .dark\\:hover\\:bg-gray-600:hover {\n --tw-bg-opacity: 1;\n background-color: rgba(66, 66, 66, 1);\n background-color: rgba(66, 66, 66, var(--tw-bg-opacity, 1));\n}\n.dark .dark\\:hover\\:bg-gray-700:hover {\n --tw-bg-opacity: 1;\n background-color: rgba(47, 47, 47, 1);\n background-color: rgba(47, 47, 47, var(--tw-bg-opacity, 1));\n}\n.dark .dark\\:hover\\:bg-gray-800:hover {\n --tw-bg-opacity: 1;\n background-color: rgba(33, 33, 33, 1);\n background-color: rgba(33, 33, 33, var(--tw-bg-opacity, 1));\n}\n.dark .dark\\:hover\\:bg-white\\/10:hover {\n background-color: rgba(255, 255, 255, 0.1);\n}\n.dark .dark\\:focus\\:bg-gray-800:focus {\n --tw-bg-opacity: 1;\n background-color: rgba(33, 33, 33, 1);\n background-color: rgba(33, 33, 33, var(--tw-bg-opacity, 1));\n}\n.dark .dark\\:focus\\:bg-gray-900:focus {\n --tw-bg-opacity: 1;\n background-color: rgba(13, 13, 13, 1);\n background-color: rgba(13, 13, 13, var(--tw-bg-opacity, 1));\n}\n.dark .dark\\:focus\\:ring-gray-200\\/10:focus {\n --tw-ring-color: rgba(227, 227, 227, 0.1);\n}\n.dark .dark\\:focus\\:ring-gray-400:focus {\n --tw-ring-opacity: 1;\n --tw-ring-color: rgba(153, 150, 150, var(--tw-ring-opacity, 1));\n}\n.dark .dark\\:focus\\:ring-white:focus {\n --tw-ring-opacity: 1;\n --tw-ring-color: rgba(255, 255, 255, var(--tw-ring-opacity, 1));\n}\n.dark .dark\\:focus\\:ring-offset-gray-700:focus {\n --tw-ring-offset-color: #2f2f2f;\n}\n.dark .dark\\:focus\\:ring-offset-gray-900:focus {\n --tw-ring-offset-color: #0d0d0d;\n}\n.group:focus-within .dark\\:group-focus-within\\:text-gray-300:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgba(205, 205, 205, 1);\n color: rgba(205, 205, 205, var(--tw-text-opacity, 1));\n}\n.group:hover .dark\\:group-hover\\:text-gray-300:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgba(205, 205, 205, 1);\n color: rgba(205, 205, 205, var(--tw-text-opacity, 1));\n}\n.dark .dark\\:data-\\[active-item\\]\\:bg-white\\/10[data-active-item] {\n background-color: rgba(255, 255, 255, 0.1);\n}\n.dark .dark\\:data-\\[state\\=active\\]\\:bg-gray-700[data-state="active"] {\n --tw-bg-opacity: 1;\n background-color: rgba(47, 47, 47, 1);\n background-color: rgba(47, 47, 47, var(--tw-bg-opacity, 1));\n}\n.dark .dark\\:data-\\[state\\=open\\]\\:bg-gray-800[data-state="open"] {\n --tw-bg-opacity: 1;\n background-color: rgba(33, 33, 33, 1);\n background-color: rgba(33, 33, 33, var(--tw-bg-opacity, 1));\n}\n.dark .dark\\:data-\\[state\\=open\\]\\:bg-gray-900[data-state="open"] {\n --tw-bg-opacity: 1;\n background-color: rgba(13, 13, 13, 1);\n background-color: rgba(13, 13, 13, var(--tw-bg-opacity, 1));\n}\n.dark .dark\\:data-\\[state\\=active\\]\\:text-gray-200[data-state="active"] {\n --tw-text-opacity: 1;\n color: rgba(227, 227, 227, 1);\n color: rgba(227, 227, 227, var(--tw-text-opacity, 1));\n}\n@media not all and (min-width: 640px) {\n\n .max-sm\\:order-first {\n order: -9999;\n }\n\n .max-sm\\:w-full {\n width: 100%;\n }\n\n .max-sm\\:flex-col {\n flex-direction: column;\n }\n}\n@media (min-width: 640px) {\n\n .sm\\:order-none {\n order: 0;\n }\n\n .sm\\:mt-0 {\n margin-top: 0px;\n }\n\n .sm\\:size-4 {\n width: 1rem;\n height: 1rem;\n }\n\n .sm\\:flex-row {\n flex-direction: row;\n }\n\n .sm\\:items-center {\n align-items: center;\n }\n\n .sm\\:justify-end {\n justify-content: flex-end;\n }\n\n .sm\\:gap-2\\.5 {\n gap: 0.625rem;\n }\n\n .sm\\:gap-4 {\n gap: 1rem;\n }\n\n .sm\\:space-x-2 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-x-reverse: 0;\n margin-right: calc(0.5rem * 0);\n margin-right: calc(0.5rem * var(--tw-space-x-reverse));\n margin-left: calc(0.5rem * (1 - 0));\n margin-left: calc(0.5rem * (1 - var(--tw-space-x-reverse)));\n margin-left: calc(0.5rem * calc(1 - 0));\n margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));\n }\n\n .sm\\:rounded-lg {\n border-radius: 0.5rem;\n border-radius: var(--radius);\n }\n\n .sm\\:px-4 {\n padding-left: 1rem;\n padding-right: 1rem;\n }\n\n .sm\\:py-2 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n }\n\n .sm\\:pt-0 {\n padding-top: 0px;\n }\n\n .sm\\:text-left {\n text-align: left;\n }\n\n .sm\\:text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem;\n }\n\n .sm\\:zoom-in-90 {\n --tw-enter-scale: .9;\n }\n\n .sm\\:slide-in-from-bottom-0 {\n --tw-enter-translate-y: 0px;\n }\n}\n@media (min-width: 768px) {\n\n .md\\:m-0 {\n margin: 0px;\n }\n\n .md\\:block {\n display: block;\n }\n\n .md\\:inline {\n display: inline;\n }\n\n .md\\:h-4 {\n height: 1rem;\n }\n\n .md\\:h-5 {\n height: 1.25rem;\n }\n\n .md\\:w-4 {\n width: 1rem;\n }\n\n .md\\:w-5 {\n width: 1.25rem;\n }\n\n .md\\:w-\\[100\\%\\] {\n width: 100%;\n }\n\n .md\\:w-auto {\n width: auto;\n }\n\n .md\\:w-full {\n width: 100%;\n }\n\n .md\\:flex-col {\n flex-direction: column;\n }\n\n .md\\:gap-2 {\n gap: 0.5rem;\n }\n\n .md\\:p-3 {\n padding: 0.75rem;\n }\n\n .md\\:px-2\\.5 {\n padding-left: 0.625rem;\n padding-right: 0.625rem;\n }\n\n .md\\:py-2 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n }\n\n .md\\:text-justify {\n text-align: justify;\n }\n}\n.\\[\\&\\:has\\(\\[role\\=checkbox\\]\\)\\]\\:pr-0:has([role=checkbox]) {\n padding-right: 0px;\n}\n.\\[\\&\\>span\\]\\:line-clamp-1>span {\n overflow: hidden;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 1;\n}\n.\\[\\&\\>span\\]\\:flex>span {\n display: flex;\n}\n.\\[\\&\\>span\\]\\:w-auto>span {\n width: auto;\n}\n.\\[\\&\\>span\\]\\:w-full>span {\n width: 100%;\n}\n.\\[\\&\\>span\\]\\:items-center>span {\n align-items: center;\n}\n.\\[\\&\\>span\\]\\:gap-1>span {\n gap: 0.25rem;\n}\n.\\[\\&\\>span\\]\\:truncate>span {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.\\[\\&\\>svg\\]\\:hidden>svg {\n display: none;\n}\n.\\[\\&\\>svg\\]\\:size-3\\.5>svg {\n width: 0.875rem;\n height: 0.875rem;\n}\n.\\[\\&\\>tr\\]\\:last\\:border-b-0:last-child>tr {\n border-bottom-width: 0px;\n}\n.\\[\\&\\[data-panel-group-direction\\=vertical\\]\\>div\\]\\:rotate-90[data-panel-group-direction=vertical]>div {\n --tw-rotate: 90deg;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(90deg) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.\\[\\&\\[data-state\\=open\\]\\>svg\\]\\:rotate-180[data-state=open]>svg {\n --tw-rotate: 180deg;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(180deg) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.\\[\\&_svg\\]\\:h-4 svg {\n height: 1rem;\n}\n.\\[\\&_svg\\]\\:w-4 svg {\n width: 1rem;\n}\n.\\[\\&_svg\\]\\:shrink-0 svg {\n flex-shrink: 0;\n}\n.\\[\\&_svg\\]\\:text-foreground svg {\n color: hsl(0, 0%, 3.9%);\n color: hsl(var(--foreground));\n}\n.\\[\\&_tr\\:last-child\\]\\:border-0 tr:last-child {\n border-width: 0px;\n}\n.\\[\\&_tr\\]\\:border-b tr {\n border-bottom-width: 1px;\n}\n');var re="-";function ne(e){var t=function(e){var t=e.theme,r=e.prefix,n={nextPart:new Map,validators:[]},a=function(e,t){if(!t)return e;return e.map((function(e){return[e[0],e[1].map((function(e){return"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((function(e){var r=e[0],n=e[1];return[t+r,n]}))):e}))]}))}(Object.entries(e.classGroups),r);return a.forEach((function(e){var r=e[0];se(e[1],n,r,t)})),n}(e),r=e.conflictingClassGroups,n=e.conflictingClassGroupModifiers,a=void 0===n?{}:n;return{getClassGroupId:function(e){var r=e.split(re);return""===r[0]&&1!==r.length&&r.shift(),ae(r,t)||function(e){if(oe.test(e)){var t=oe.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}(e)},getConflictingClassGroupIds:function(e,t){var n=r[e]||[];return t&&a[e]?[].concat(n,a[e]):n}}}function ae(e,t){if(0===e.length)return t.classGroupId;var r=e[0],n=t.nextPart.get(r),a=n?ae(e.slice(1),n):void 0;if(a)return a;if(0!==t.validators.length){var o=e.join(re);return t.validators.find((function(e){return(0,e.validator)(o)}))?.classGroupId}}var oe=/^\[(.+)\]$/;function se(e,t,r,n){e.forEach((function(e){if("string"!=typeof e){if("function"==typeof e)return e.isThemeGetter?void se(e(n),t,r,n):void t.validators.push({validator:e,classGroupId:r});Object.entries(e).forEach((function(e){var a=e[0];se(e[1],ie(t,a),r,n)}))}else{(""===e?t:ie(t,e)).classGroupId=r}}))}function ie(e,t){var r=e;return t.split(re).forEach((function(e){r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)})),r}function le(e){if(e<1)return{get:function(){},set:function(){}};var t=0,r=new Map,n=new Map;function a(a,o){r.set(a,o),++t>e&&(t=0,n=r,r=new Map)}return{get:function(e){var t=r.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(a(e,t),t):void 0},set:function(e,t){r.has(e)?r.set(e,t):a(e,t)}}}var ce="!";function de(e){var t=e.separator||":",r=1===t.length,n=t[0],a=t.length;return function(e){for(var o,s=[],i=0,l=0,c=0;c<e.length;c++){var d=e[c];if(0===i){if(d===n&&(r||e.slice(c,c+a)===t)){s.push(e.slice(l,c)),l=c+a;continue}if("/"===d){o=c;continue}}"["===d?i++:"]"===d&&i--}var u=0===s.length?e:e.substring(l),p=u.startsWith(ce);return{modifiers:s,hasImportantModifier:p,baseClassName:p?u.substring(1):u,maybePostfixModifierPosition:o&&o>l?o-l:void 0}}}var ue=/\s+/;function pe(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,a,o,s=function(e){var r=t[0],l=t.slice(1).reduce((function(e,t){return t(e)}),r());return n=function(e){return{cache:le(e.cacheSize),splitModifiers:de(e),...ne(e)}}(l),a=n.cache.get,o=n.cache.set,s=i,i(e)};function i(e){var t=a(e);if(t)return t;var r=function(e,t){var r=t.splitModifiers,n=t.getClassGroupId,a=t.getConflictingClassGroupIds,o=new Set;return e.trim().split(ue).map((function(e){var t=r(e),a=t.modifiers,o=t.hasImportantModifier,s=t.baseClassName,i=t.maybePostfixModifierPosition,l=n(i?s.substring(0,i):s),c=Boolean(i);if(!l){if(!i)return{isTailwindClass:!1,originalClassName:e};if(!(l=n(s)))return{isTailwindClass:!1,originalClassName:e};c=!1}var d=function(e){if(e.length<=1)return e;var t=[],r=[];return e.forEach((function(e){"["===e[0]?(t.push.apply(t,r.sort().concat([e])),r=[]):r.push(e)})),t.push.apply(t,r.sort()),t}(a).join(":");return{isTailwindClass:!0,modifierId:o?d+ce:d,classGroupId:l,originalClassName:e,hasPostfixModifier:c}})).reverse().filter((function(e){if(!e.isTailwindClass)return!0;var t=e.modifierId,r=e.classGroupId,n=e.hasPostfixModifier,s=t+r;return!o.has(s)&&(o.add(s),a(r,n).forEach((function(e){return o.add(t+e)})),!0)})).reverse().map((function(e){return e.originalClassName})).join(" ")}(e,n);return o(e,r),r}return function(){return s(ee.apply(null,arguments))}}function ge(e){var t=function(t){return t[e]||[]};return t.isThemeGetter=!0,t}var me=/^\[(?:([a-z-]+):)?(.+)\]$/i,fe=/^\d+\/\d+$/,he=new Set(["px","full","screen"]),we=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,xe=/\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$/,be=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function ve(e){return Se(e)||he.has(e)||fe.test(e)||ye(e)}function ye(e){return Te(e,"length",Ae)}function ke(e){return Te(e,"size",Oe)}function Ce(e){return Te(e,"position",Oe)}function Ne(e){return Te(e,"url",Pe)}function je(e){return Te(e,"number",Se)}function Se(e){return!Number.isNaN(Number(e))}function Le(e){return e.endsWith("%")&&Se(e.slice(0,-1))}function Me(e){return Ve(e)||Te(e,"number",Ve)}function ze(e){return me.test(e)}function Ie(){return!0}function Re(e){return we.test(e)}function Ee(e){return Te(e,"",De)}function Te(e,t,r){var n=me.exec(e);return!!n&&(n[1]?n[1]===t:r(n[2]))}function Ae(e){return xe.test(e)}function Oe(){return!1}function Pe(e){return e.startsWith("url(")}function Ve(e){return Number.isInteger(Number(e))}function De(e){return be.test(e)}function He(){var e=ge("colors"),t=ge("spacing"),r=ge("blur"),n=ge("brightness"),a=ge("borderColor"),o=ge("borderRadius"),s=ge("borderSpacing"),i=ge("borderWidth"),l=ge("contrast"),c=ge("grayscale"),d=ge("hueRotate"),u=ge("invert"),p=ge("gap"),g=ge("gradientColorStops"),m=ge("gradientColorStopPositions"),f=ge("inset"),h=ge("margin"),w=ge("opacity"),x=ge("padding"),b=ge("saturate"),v=ge("scale"),y=ge("sepia"),k=ge("skew"),C=ge("space"),N=ge("translate"),j=function(){return["auto",ze,t]},S=function(){return[ze,t]},L=function(){return["",ve]},M=function(){return["auto",Se,ze]},z=function(){return["","0",ze]},I=function(){return[Se,je]},R=function(){return[Se,ze]};return{cacheSize:500,theme:{colors:[Ie],spacing:[ve],blur:["none","",Re,ze],brightness:I(),borderColor:[e],borderRadius:["none","","full",Re,ze],borderSpacing:S(),borderWidth:L(),contrast:I(),grayscale:z(),hueRotate:R(),invert:z(),gap:S(),gradientColorStops:[e],gradientColorStopPositions:[Le,ye],inset:j(),margin:j(),opacity:I(),padding:S(),saturate:I(),scale:I(),sepia:z(),skew:R(),space:S(),translate:S()},classGroups:{aspect:[{aspect:["auto","square","video",ze]}],container:["container"],columns:[{columns:[Re]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"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"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],[ze])}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-y":[{"inset-y":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Me]}],basis:[{basis:j()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ze]}],grow:[{grow:z()}],shrink:[{shrink:z()}],order:[{order:["first","last","none",Me]}],"grid-cols":[{"grid-cols":[Ie]}],"col-start-end":[{col:["auto",{span:["full",Me]},ze]}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":[Ie]}],"row-start-end":[{row:["auto",{span:[Me]},ze]}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ze]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ze]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal"].concat(["start","end","center","between","around","evenly","stretch"])}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(["start","end","center","between","around","evenly","stretch"],["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(["start","end","center","between","around","evenly","stretch"],["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],me:[{me:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[C]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[C]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",ze,t]}],"min-w":[{"min-w":["min","max","fit",ze,ve]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[Re]},Re,ze]}],h:[{h:[ze,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",ze,ve]}],"max-h":[{"max-h":[ze,t,"min","max","fit"]}],"font-size":[{text:["base",Re,ye]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",je]}],"font-family":[{font:[Ie]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ze]}],"line-clamp":[{"line-clamp":["none",Se,je]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ze,ve]}],"list-image":[{"list-image":["none",ze]}],"list-style-type":[{list:["none","disc","decimal",ze]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[w]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(["solid","dashed","dotted","double","none"],["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",ve]}],"underline-offset":[{"underline-offset":["auto",ze,ve]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ze]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ze]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[w]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],[Ce])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ke]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ne]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[w]}],"border-style":[{border:[].concat(["solid","dashed","dotted","double","none"],["hidden"])}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[w]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:[""].concat(["solid","dashed","dotted","double","none"])}],"outline-offset":[{"outline-offset":[ze,ve]}],"outline-w":[{outline:[ve]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:L()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[w]}],"ring-offset-w":[{"ring-offset":[ve]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Re,Ee]}],"shadow-color":[{shadow:[Ie]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Re,ze]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[u]}],saturate:[{saturate:[b]}],sepia:[{sepia:[y]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[w]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[y]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ze]}],duration:[{duration:R()}],ease:[{ease:["linear","in","out","in-out",ze]}],delay:[{delay:R()}],animate:[{animate:["none","spin","ping","pulse","bounce",ze]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[v]}],"scale-x":[{"scale-x":[v]}],"scale-y":[{"scale-y":[v]}],rotate:[{rotate:[Me,ze]}],"translate-x":[{"translate-x":[N]}],"translate-y":[{"translate-y":[N]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ze]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],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",ze]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"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","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ze]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ve,je]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},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"],"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"],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-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-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"],"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"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}var Be=pe(He);const Fe=(...e)=>Be(J(e)),We=e=>{const t=document.documentElement;switch(e.split("-")[1]){case"xs":t.style.setProperty("--markdown-font-size","0.75rem");break;case"sm":t.style.setProperty("--markdown-font-size","0.875rem");break;case"base":t.style.setProperty("--markdown-font-size","1rem");break;case"lg":t.style.setProperty("--markdown-font-size","1.125rem");break;case"xl":t.style.setProperty("--markdown-font-size","1.25rem")}},Ze=()=>{if("undefined"!=typeof window&&window.localStorage){const e=window.localStorage.getItem("color-theme");if("string"==typeof e)return e;if(window.matchMedia("(prefers-color-scheme: dark)").matches)return"dark"}return"light"},Xe=T.Root,Ye=E.forwardRef((({className:t="",...r},n)=>e.jsx(T.Item,{ref:n,className:Fe("border-b",t),...r})));Ye.displayName="AccordionItem";const _e=E.forwardRef((({className:t="",children:r,...a},o)=>e.jsx(T.Header,{className:"flex",children:e.jsxs(T.Trigger,{ref:o,className:Fe("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",t),...a,children:[r,e.jsx(n.ChevronDownIcon,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})})));_e.displayName=T.Trigger.displayName;const $e=E.forwardRef((({className:t="",children:r,...n},a)=>e.jsx(T.Content,{ref:a,className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:e.jsx("div",{className:Fe("pb-4 pt-0",t),children:r})})));$e.displayName=T.Content.displayName;K("/* AnimatedTabs.css */\n.animated-tab-panel {\n transition-property: opacity, translate;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 300ms;\n animation-duration: 300ms;\n}\n/* Sliding underline animation for tabs */\n.animated-tab-list {\n position: relative;\n}\n.animated-tab-list::after {\n content: '';\n position: absolute;\n bottom: 0;\n height: 2px;\n background-color: currentColor; /* Inherit color from active tab */\n transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n left: 0;\n left: var(--tab-left, 0);\n width: 0;\n width: var(--tab-width, 0);\n}\n.animated-tab {\n position: relative;\n}\n.animated-tab[data-state='active'] {\n border-bottom-color: transparent !important;\n}\n.animated-tab-panel[data-enter] {\n opacity: 1 !important;\n translate: 0 !important;\n}\n@media (prefers-reduced-motion: reduce) {\n .animated-tab-panel {\n transition: none;\n }\n}\n.animated-tab-panel:not([data-open]) {\n position: absolute;\n top: 0px;\n}\n.animated-panels:has(> [data-was-open]) > .animated-tab-panel {\n opacity: 0;\n translate: -100%;\n}\n.animated-panels [data-was-open] ~ .animated-tab-panel,\n.animated-panels [data-open] ~ .animated-tab-panel {\n translate: 100%;\n}\n");const Ue=t.forwardRef((function(r,n){const a=t.useRef(null);return t.useEffect((()=>{const e=a.current;if(!e)return;const t=()=>{const t="true"===e.getAttribute("aria-selected");e.setAttribute("data-state",t?"active":"inactive")};t();const r=new MutationObserver(t);return r.observe(e,{attributes:!0,attributeFilter:["aria-selected"]}),()=>r.disconnect()}),[]),e.jsx(A.Tab,{ref:e=>{a.current=e,"function"==typeof n?n(e):n&&(n.current=e)},...r,className:`animated-tab aria-selected:text-token-text-primary flex select-none items-center justify-center gap-2 whitespace-nowrap border-none text-sm font-medium outline-none transition-colors aria-disabled:opacity-50 ${r.className||""}`})})),Ge=t.forwardRef((function(r,n){const a=A.useTabContext(),o=function(e){const r=t.useRef(void 0);return t.useEffect((()=>{r.current=e}),[e]),r.current}(A.useStoreState(a,"selectedId")),s=r.tabId&&o===r.tabId;return e.jsx(A.TabPanel,{ref:n,...r,"data-was-open":s||void 0,className:`animated-tab-panel max-w-full ${r.className||""}`})}));const qe=O.Root,Ke=O.Trigger,Qe=({className:t="",children:r,...n})=>e.jsx(O.Portal,{className:Fe(t),...n,children:e.jsx("div",{className:"fixed inset-0 z-50 flex items-end justify-center sm:items-center",children:r})});Qe.displayName=O.Portal.displayName;const Je=E.forwardRef((({className:t="",...r},n)=>e.jsx(O.Overlay,{className:Fe("fixed inset-0 z-50 bg-gray-500/90 transition-opacity animate-in fade-in dark:bg-gray-800/90",t),...r,ref:n})));Je.displayName=O.Overlay.displayName;const et=E.forwardRef((({className:t="",...r},n)=>e.jsxs(Qe,{children:[e.jsx(Je,{}),e.jsx(O.Content,{ref:n,className:Fe("fixed z-50 grid w-full max-w-lg scale-100 gap-4 bg-white p-6 opacity-100 animate-in fade-in-90 slide-in-from-bottom-10 sm:rounded-lg sm:zoom-in-90 sm:slide-in-from-bottom-0 md:w-full","dark:bg-gray-900",t),...r})]})));et.displayName=O.Content.displayName;const tt=({className:t="",...r})=>e.jsx("div",{className:Fe("flex flex-col space-y-2 text-center sm:text-left",t),...r});tt.displayName="AlertDialogHeader";const rt=({className:t="",...r})=>e.jsx("div",{className:Fe("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...r});rt.displayName="AlertDialogFooter";const nt=E.forwardRef((({className:t="",...r},n)=>e.jsx(O.Title,{ref:n,className:Fe("text-lg font-semibold text-gray-900","dark:text-gray-50",t),...r})));nt.displayName=O.Title.displayName;const at=E.forwardRef((({className:t="",...r},n)=>e.jsx(O.Description,{ref:n,className:Fe("text-sm text-gray-500","dark:text-gray-400",t),...r})));at.displayName=O.Description.displayName;const ot=E.forwardRef((({className:t="",...r},n)=>e.jsx(O.Action,{ref:n,className:Fe("inline-flex h-10 items-center justify-center rounded-md bg-gray-900 px-4 py-2 text-sm font-semibold text-white transition-colors hover:bg-gray-800 focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:bg-gray-100 dark:text-gray-900 dark:hover:bg-gray-100 dark:focus:ring-gray-400 dark:focus:ring-offset-gray-900",t),...r})));ot.displayName=O.Action.displayName;const st=E.forwardRef((({className:t="",...r},n)=>e.jsx(O.Cancel,{ref:n,className:Fe("mt-2 inline-flex h-10 items-center justify-center rounded-md border border-gray-200 bg-transparent px-4 py-2 text-sm font-semibold text-gray-900 transition-colors hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-700 dark:text-gray-100 dark:hover:bg-gray-800 dark:focus:ring-gray-400 dark:focus:ring-offset-gray-900 sm:mt-0",t),...r})));st.displayName=O.Cancel.displayName;
1
+ "use strict";var e=require("react/jsx-runtime"),t=require("react"),n=require("react-dom"),r=require("jotai"),o=require("react-i18next");function i(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var a=i(t),s=i(n);function l(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(null,arguments)}function c(e,n=[]){let r=[];const o=()=>{const n=r.map((e=>t.createContext(e)));return function(r){const o=(null==r?void 0:r[e])||n;return t.useMemo((()=>({[`__scope${e}`]:{...r,[e]:o}})),[r,o])}};return o.scopeName=e,[function(n,o){const i=t.createContext(o),a=r.length;function s(n){const{scope:r,children:o,...s}=n,l=(null==r?void 0:r[e][a])||i,u=t.useMemo((()=>s),Object.values(s));return t.createElement(l.Provider,{value:u},o)}return r=[...r,o],s.displayName=n+"Provider",[s,function(r,s){const l=(null==s?void 0:s[e][a])||i,u=t.useContext(l);if(u)return u;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${n}\``)}]},d(o,...n)]}function d(...e){const n=e[0];if(1===e.length)return n;const r=()=>{const r=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const o=r.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return t.useMemo((()=>({[`__scope${n.scopeName}`]:o})),[o])}};return r.scopeName=n.scopeName,r}function f(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function p(...e){return t.useCallback(f(...e),e)}l('*, ::before, ::after {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgba(59, 130, 246, 0.5);\n --tw-ring-offset-shadow: 0 0 rgba(0,0,0,0);\n --tw-ring-shadow: 0 0 rgba(0,0,0,0);\n --tw-shadow: 0 0 rgba(0,0,0,0);\n --tw-shadow-colored: 0 0 rgba(0,0,0,0);\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}\n\n::backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgba(59, 130, 246, 0.5);\n --tw-ring-offset-shadow: 0 0 rgba(0,0,0,0);\n --tw-ring-shadow: 0 0 rgba(0,0,0,0);\n --tw-shadow: 0 0 rgba(0,0,0,0);\n --tw-shadow-colored: 0 0 rgba(0,0,0,0);\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}/*\n! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com\n*//*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: #e3e3e3; /* 2 */\n}\n\n::before,\n::after {\n --tw-content: \'\';\n}\n\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user\'s configured `sans` font-family by default.\n5. Use the user\'s configured `sans` font-feature-settings by default.\n6. Use the user\'s configured `sans` font-variation-settings by default.\n7. Disable tap highlights on iOS\n*/\n\nhtml,\n:host {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n -moz-tab-size: 4; /* 3 */\n -o-tab-size: 4;\n tab-size: 4; /* 3 */\n font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */\n font-feature-settings: normal; /* 5 */\n font-variation-settings: normal; /* 6 */\n -webkit-tap-highlight-color: transparent; /* 7 */\n}\n\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\n\nbody {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}\n\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\n\nhr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}\n\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\n\nabbr:where([title]) {\n text-decoration: underline;\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n\n/*\nRemove the default font size and weight for headings.\n*/\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-size: inherit;\n font-weight: inherit;\n}\n\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\n\na {\n color: inherit;\n text-decoration: inherit;\n}\n\n/*\nAdd the correct font weight in Edge and Safari.\n*/\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/*\n1. Use the user\'s configured `mono` font-family by default.\n2. Use the user\'s configured `mono` font-feature-settings by default.\n3. Use the user\'s configured `mono` font-variation-settings by default.\n4. Correct the odd `em` font sizing in all browsers.\n*/\n\ncode,\nkbd,\nsamp,\npre {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */\n font-feature-settings: normal; /* 2 */\n font-variation-settings: normal; /* 3 */\n font-size: 1em; /* 4 */\n}\n\n/*\nAdd the correct font size in all browsers.\n*/\n\nsmall {\n font-size: 80%;\n}\n\n/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\n\ntable {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}\n\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-feature-settings: inherit; /* 1 */\n font-variation-settings: inherit; /* 1 */\n font-size: 100%; /* 1 */\n font-weight: inherit; /* 1 */\n line-height: inherit; /* 1 */\n letter-spacing: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}\n\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\n\nbutton,\nselect {\n text-transform: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\n\nbutton,\ninput:where([type=\'button\']),\ninput:where([type=\'reset\']),\ninput:where([type=\'submit\']) {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}\n\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n\n:-moz-focusring {\n outline: auto;\n}\n\n/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n\n:-moz-ui-invalid {\n box-shadow: none;\n}\n\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n\nprogress {\n vertical-align: baseline;\n}\n\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n\n[type=\'search\'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n\nsummary {\n display: list-item;\n}\n\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\nblockquote,\ndl,\ndd,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nhr,\nfigure,\np,\npre {\n margin: 0;\n}\n\nfieldset {\n margin: 0;\n padding: 0;\n}\n\nlegend {\n padding: 0;\n}\n\nol,\nul,\nmenu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n/*\nReset default styling for dialogs.\n*/\ndialog {\n padding: 0;\n}\n\n/*\nPrevent resizing textareas horizontally by default.\n*/\n\ntextarea {\n resize: vertical;\n}\n\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user\'s configured gray 400 color.\n*/\n\ninput::-moz-placeholder, textarea::-moz-placeholder {\n opacity: 1; /* 1 */\n color: #999696; /* 2 */\n}\n\ninput::placeholder,\ntextarea::placeholder {\n opacity: 1; /* 1 */\n color: #999696; /* 2 */\n}\n\n/*\nSet the default cursor for buttons.\n*/\n\nbutton,\n[role="button"] {\n cursor: pointer;\n}\n\n/*\nMake sure disabled buttons don\'t get the pointer cursor.\n*/\n:disabled {\n cursor: default;\n}\n\n/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\n\nimg,\nsvg,\nvideo,\ncanvas,\naudio,\niframe,\nembed,\nobject {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}\n\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\n\nimg,\nvideo {\n max-width: 100%;\n height: auto;\n}\n\n/* Make elements with the HTML hidden attribute stay hidden by default */\n[hidden]:where(:not([hidden="until-found"])) {\n display: none;\n}\n.container {\n width: 100%;\n}\n@media (min-width: 640px) {\n\n .container {\n max-width: 640px;\n }\n}\n@media (min-width: 768px) {\n\n .container {\n max-width: 768px;\n }\n}\n@media (min-width: 1024px) {\n\n .container {\n max-width: 1024px;\n }\n}\n@media (min-width: 1280px) {\n\n .container {\n max-width: 1280px;\n }\n}\n@media (min-width: 1536px) {\n\n .container {\n max-width: 1536px;\n }\n}\n.sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n.pointer-events-none {\n pointer-events: none;\n}\n.pointer-events-auto {\n pointer-events: auto;\n}\n.visible {\n visibility: visible;\n}\n.invisible {\n visibility: hidden;\n}\n.fixed {\n position: fixed;\n}\n.absolute {\n position: absolute;\n}\n.relative {\n position: relative;\n}\n.sticky {\n position: sticky;\n}\n.-inset-8 {\n top: -2rem;\n right: -2rem;\n bottom: -2rem;\n left: -2rem;\n}\n.inset-0 {\n top: 0px;\n right: 0px;\n bottom: 0px;\n left: 0px;\n}\n.inset-y-0 {\n top: 0px;\n bottom: 0px;\n}\n.-right-1 {\n right: -0.25rem;\n}\n.-top-1 {\n top: -0.25rem;\n}\n.bottom-0 {\n bottom: 0px;\n}\n.bottom-full {\n bottom: 100%;\n}\n.left-0 {\n left: 0px;\n}\n.left-1\\/2 {\n left: 50%;\n}\n.left-2 {\n left: 0.5rem;\n}\n.left-3 {\n left: 0.75rem;\n}\n.left-\\[50\\%\\] {\n left: 50%;\n}\n.right-0 {\n right: 0px;\n}\n.right-2 {\n right: 0.5rem;\n}\n.right-3 {\n right: 0.75rem;\n}\n.right-4 {\n right: 1rem;\n}\n.right-6 {\n right: 1.5rem;\n}\n.top-0 {\n top: 0px;\n}\n.top-1\\/2 {\n top: 50%;\n}\n.top-4 {\n top: 1rem;\n}\n.top-\\[1\\.6rem\\] {\n top: 1.6rem;\n}\n.top-\\[50\\%\\] {\n top: 50%;\n}\n.top-full {\n top: 100%;\n}\n.isolate {\n isolation: isolate;\n}\n.-z-10 {\n z-index: -10;\n}\n.-z-20 {\n z-index: -20;\n}\n.z-10 {\n z-index: 10;\n}\n.z-20 {\n z-index: 20;\n}\n.z-50 {\n z-index: 50;\n}\n.z-\\[1001\\] {\n z-index: 1001;\n}\n.z-\\[999\\] {\n z-index: 999;\n}\n.m-1 {\n margin: 0.25rem;\n}\n.m-4 {\n margin: 1rem;\n}\n.m-\\[1\\.5px\\] {\n margin: 1.5px;\n}\n.m-auto {\n margin: auto;\n}\n.-mx-1 {\n margin-left: -0.25rem;\n margin-right: -0.25rem;\n}\n.mx-auto {\n margin-left: auto;\n margin-right: auto;\n}\n.my-1 {\n margin-top: 0.25rem;\n margin-bottom: 0.25rem;\n}\n.-ml-3 {\n margin-left: -0.75rem;\n}\n.mb-1 {\n margin-bottom: 0.25rem;\n}\n.mb-2 {\n margin-bottom: 0.5rem;\n}\n.mb-3 {\n margin-bottom: 0.75rem;\n}\n.mb-5 {\n margin-bottom: 1.25rem;\n}\n.ml-1 {\n margin-left: 0.25rem;\n}\n.ml-2 {\n margin-left: 0.5rem;\n}\n.ml-4 {\n margin-left: 1rem;\n}\n.ml-auto {\n margin-left: auto;\n}\n.mr-1 {\n margin-right: 0.25rem;\n}\n.mr-2 {\n margin-right: 0.5rem;\n}\n.mr-8 {\n margin-right: 2rem;\n}\n.mr-auto {\n margin-right: auto;\n}\n.mt-1 {\n margin-top: 0.25rem;\n}\n.mt-2 {\n margin-top: 0.5rem;\n}\n.mt-3 {\n margin-top: 0.75rem;\n}\n.mt-4 {\n margin-top: 1rem;\n}\n.block {\n display: block;\n}\n.inline-block {\n display: inline-block;\n}\n.inline {\n display: inline;\n}\n.flex {\n display: flex;\n}\n.inline-flex {\n display: inline-flex;\n}\n.\\!table {\n display: table !important;\n}\n.table {\n display: table;\n}\n.grid {\n display: grid;\n}\n.contents {\n display: contents;\n}\n.hidden {\n display: none;\n}\n.size-10 {\n width: 2.5rem;\n height: 2.5rem;\n}\n.size-3\\.5 {\n width: 0.875rem;\n height: 0.875rem;\n}\n.size-4 {\n width: 1rem;\n height: 1rem;\n}\n.size-9 {\n width: 2.25rem;\n height: 2.25rem;\n}\n.h-10 {\n height: 2.5rem;\n}\n.h-11 {\n height: 2.75rem;\n}\n.h-12 {\n height: 3rem;\n}\n.h-2 {\n height: 0.5rem;\n}\n.h-2\\.5 {\n height: 0.625rem;\n}\n.h-2\\/3 {\n height: 66.666667%;\n}\n.h-20 {\n height: 5rem;\n}\n.h-3 {\n height: 0.75rem;\n}\n.h-3\\.5 {\n height: 0.875rem;\n}\n.h-4 {\n height: 1rem;\n}\n.h-5 {\n height: 1.25rem;\n}\n.h-6 {\n height: 1.5rem;\n}\n.h-8 {\n height: 2rem;\n}\n.h-9 {\n height: 2.25rem;\n}\n.h-\\[1px\\] {\n height: 1px;\n}\n.h-\\[42px\\] {\n height: 42px;\n}\n.h-\\[calc\\(100vh-20rem\\)\\] {\n height: calc(100vh - 20rem);\n}\n.h-\\[var\\(--radix-select-trigger-height\\)\\] {\n height: var(--radix-select-trigger-height);\n}\n.h-auto {\n height: auto;\n}\n.h-full {\n height: 100%;\n}\n.h-px {\n height: 1px;\n}\n.max-h-10 {\n max-height: 2.5rem;\n}\n.max-h-5 {\n max-height: 1.25rem;\n}\n.max-h-60 {\n max-height: 15rem;\n}\n.max-h-8 {\n max-height: 2rem;\n}\n.max-h-96 {\n max-height: 24rem;\n}\n.max-h-\\[300px\\] {\n max-height: 300px;\n}\n.max-h-\\[52vh\\] {\n max-height: 52vh;\n}\n.max-h-\\[80vh\\] {\n max-height: 80vh;\n}\n.w-0 {\n width: 0px;\n}\n.w-10 {\n width: 2.5rem;\n}\n.w-11 {\n width: 2.75rem;\n}\n.w-11\\/12 {\n width: 91.666667%;\n}\n.w-2 {\n width: 0.5rem;\n}\n.w-2\\.5 {\n width: 0.625rem;\n}\n.w-2\\/3 {\n width: 66.666667%;\n}\n.w-3 {\n width: 0.75rem;\n}\n.w-3\\.5 {\n width: 0.875rem;\n}\n.w-4 {\n width: 1rem;\n}\n.w-5 {\n width: 1.25rem;\n}\n.w-6 {\n width: 1.5rem;\n}\n.w-64 {\n width: 16rem;\n}\n.w-9 {\n width: 2.25rem;\n}\n.w-\\[1px\\] {\n width: 1px;\n}\n.w-\\[30px\\] {\n width: 30px;\n}\n.w-auto {\n width: auto;\n}\n.w-fit {\n width: -moz-fit-content;\n width: fit-content;\n}\n.w-full {\n width: 100%;\n}\n.w-px {\n width: 1px;\n}\n.min-w-0 {\n min-width: 0px;\n}\n.min-w-\\[100px\\] {\n min-width: 100px;\n}\n.min-w-\\[300px\\] {\n min-width: 300px;\n}\n.min-w-\\[40px\\] {\n min-width: 40px;\n}\n.min-w-\\[8rem\\] {\n min-width: 8rem;\n}\n.min-w-\\[var\\(--radix-select-trigger-width\\)\\] {\n min-width: var(--radix-select-trigger-width);\n}\n.max-w-0 {\n max-width: 0px;\n}\n.max-w-full {\n max-width: 100%;\n}\n.max-w-lg {\n max-width: 32rem;\n}\n.flex-1 {\n flex: 1 1 0%;\n}\n.flex-shrink-0 {\n flex-shrink: 0;\n}\n.shrink-0 {\n flex-shrink: 0;\n}\n.flex-grow {\n flex-grow: 1;\n}\n.flex-grow-0 {\n flex-grow: 0;\n}\n.grow {\n flex-grow: 1;\n}\n.table-fixed {\n table-layout: fixed;\n}\n.caption-bottom {\n caption-side: bottom;\n}\n.border-separate {\n border-collapse: separate;\n}\n.border-spacing-0 {\n --tw-border-spacing-x: 0px;\n --tw-border-spacing-y: 0px;\n border-spacing: 0px 0px;\n border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y);\n}\n.origin-\\[--radix-hover-card-content-transform-origin\\] {\n transform-origin: var(--radix-hover-card-content-transform-origin);\n}\n.-translate-x-1\\/2 {\n --tw-translate-x: -50%;\n transform: translate(-50%, var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.-translate-y-1\\/2 {\n --tw-translate-y: -50%;\n transform: translate(var(--tw-translate-x), -50%) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.translate-x-\\[-50\\%\\] {\n --tw-translate-x: -50%;\n transform: translate(-50%, var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.translate-y-\\[-50\\%\\] {\n --tw-translate-y: -50%;\n transform: translate(var(--tw-translate-x), -50%) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.-rotate-180 {\n --tw-rotate: -180deg;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(-180deg) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.rotate-0 {\n --tw-rotate: 0deg;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(0deg) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.scale-0 {\n --tw-scale-x: 0;\n --tw-scale-y: 0;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(0) scaleY(0);\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.scale-100 {\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(1) scaleY(1);\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.scale-105 {\n --tw-scale-x: 1.05;\n --tw-scale-y: 1.05;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(1.05) scaleY(1.05);\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.transform {\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n@keyframes ping {\n\n 75%, 100% {\n transform: scale(2);\n opacity: 0;\n }\n}\n.animate-ping {\n animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;\n}\n@keyframes pulse {\n\n 50% {\n opacity: .5;\n }\n}\n.animate-pulse {\n animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;\n}\n.cursor-default {\n cursor: default;\n}\n.cursor-move {\n cursor: move;\n}\n.cursor-not-allowed {\n cursor: not-allowed;\n}\n.cursor-pointer {\n cursor: pointer;\n}\n.touch-none {\n touch-action: none;\n}\n.select-none {\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n.resize-none {\n resize: none;\n}\n.scroll-m-1 {\n scroll-margin: 0.25rem;\n}\n.appearance-none {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n}\n.flex-row {\n flex-direction: row;\n}\n.flex-col {\n flex-direction: column;\n}\n.flex-col-reverse {\n flex-direction: column-reverse;\n}\n.flex-wrap {\n flex-wrap: wrap;\n}\n.place-items-center {\n align-items: center;\n justify-items: center;\n place-items: center;\n}\n.items-start {\n align-items: flex-start;\n}\n.items-end {\n align-items: flex-end;\n}\n.items-center {\n align-items: center;\n}\n.justify-start {\n justify-content: flex-start;\n}\n.justify-end {\n justify-content: flex-end;\n}\n.justify-center {\n justify-content: center;\n}\n.justify-between {\n justify-content: space-between;\n}\n.gap-1 {\n gap: 0.25rem;\n}\n.gap-1\\.5 {\n gap: 0.375rem;\n}\n.gap-2 {\n gap: 0.5rem;\n}\n.gap-3 {\n gap: 0.75rem;\n}\n.gap-4 {\n gap: 1rem;\n}\n.space-x-2 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-x-reverse: 0;\n margin-right: calc(0.5rem * 0);\n margin-right: calc(0.5rem * var(--tw-space-x-reverse));\n margin-left: calc(0.5rem * (1 - 0));\n margin-left: calc(0.5rem * (1 - var(--tw-space-x-reverse)));\n margin-left: calc(0.5rem * calc(1 - 0));\n margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));\n}\n.space-y-1\\.5 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-y-reverse: 0;\n margin-top: calc(0.375rem * (1 - 0));\n margin-top: calc(0.375rem * (1 - var(--tw-space-y-reverse)));\n margin-top: calc(0.375rem * calc(1 - 0));\n margin-top: calc(0.375rem * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(0.375rem * 0);\n margin-bottom: calc(0.375rem * var(--tw-space-y-reverse));\n}\n.space-y-2 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-y-reverse: 0;\n margin-top: calc(0.5rem * (1 - 0));\n margin-top: calc(0.5rem * (1 - var(--tw-space-y-reverse)));\n margin-top: calc(0.5rem * calc(1 - 0));\n margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(0.5rem * 0);\n margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));\n}\n.overflow-auto {\n overflow: auto;\n}\n.overflow-hidden {\n overflow: hidden;\n}\n.overflow-x-auto {\n overflow-x: auto;\n}\n.overflow-y-auto {\n overflow-y: auto;\n}\n.overflow-y-hidden {\n overflow-y: hidden;\n}\n.overscroll-contain {\n overscroll-behavior: contain;\n}\n.truncate {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.text-ellipsis {\n text-overflow: ellipsis;\n}\n.whitespace-nowrap {\n white-space: nowrap;\n}\n.whitespace-pre-wrap {\n white-space: pre-wrap;\n}\n.break-words {\n word-wrap: break-word;\n}\n.break-all {\n word-break: break-all;\n}\n.rounded {\n border-radius: 0.25rem;\n}\n.rounded-2xl {\n border-radius: 1rem;\n}\n.rounded-3xl {\n border-radius: 1.5rem;\n}\n.rounded-\\[0\\.185rem\\] {\n border-radius: 0.185rem;\n}\n.rounded-full {\n border-radius: 9999px;\n}\n.rounded-lg {\n border-radius: 0.5rem;\n border-radius: var(--radius);\n}\n.rounded-md {\n border-radius: calc(0.5rem - 2px);\n border-radius: calc(var(--radius) - 2px);\n}\n.rounded-sm {\n border-radius: calc(0.5rem - 4px);\n border-radius: calc(var(--radius) - 4px);\n}\n.rounded-xl {\n border-radius: 0.75rem;\n}\n.rounded-b-lg {\n border-bottom-right-radius: 0.5rem;\n border-bottom-right-radius: var(--radius);\n border-bottom-left-radius: 0.5rem;\n border-bottom-left-radius: var(--radius);\n}\n.border {\n border-width: 1px;\n}\n.border-2 {\n border-width: 2px;\n}\n.border-y {\n border-top-width: 1px;\n border-bottom-width: 1px;\n}\n.border-b {\n border-bottom-width: 1px;\n}\n.border-r {\n border-right-width: 1px;\n}\n.border-t {\n border-top-width: 1px;\n}\n.border-none {\n border-style: none;\n}\n.border-black\\/10 {\n border-color: rgba(0, 0, 0, 0.1);\n}\n.border-border-heavy {\n border-color: #999696;\n border-color: var(--border-heavy);\n}\n.border-border-light {\n border-color: #e3e3e3;\n border-color: var(--border-light);\n}\n.border-border-medium {\n border-color: #cdcdcd;\n border-color: var(--border-medium);\n}\n.border-gray-100 {\n --tw-border-opacity: 1;\n border-color: rgba(236, 236, 236, 1);\n border-color: rgba(236, 236, 236, var(--tw-border-opacity, 1));\n}\n.border-gray-200 {\n --tw-border-opacity: 1;\n border-color: rgba(227, 227, 227, 1);\n border-color: rgba(227, 227, 227, var(--tw-border-opacity, 1));\n}\n.border-gray-300 {\n --tw-border-opacity: 1;\n border-color: rgba(205, 205, 205, 1);\n border-color: rgba(205, 205, 205, var(--tw-border-opacity, 1));\n}\n.border-gray-50 {\n --tw-border-opacity: 1;\n border-color: rgba(247, 247, 248, 1);\n border-color: rgba(247, 247, 248, var(--tw-border-opacity, 1));\n}\n.border-gray-500 {\n --tw-border-opacity: 1;\n border-color: rgba(89, 89, 89, 1);\n border-color: rgba(89, 89, 89, var(--tw-border-opacity, 1));\n}\n.border-green-500 {\n --tw-border-opacity: 1;\n border-color: rgba(16, 163, 127, 1);\n border-color: rgba(16, 163, 127, var(--tw-border-opacity, 1));\n}\n.border-green-600 {\n --tw-border-opacity: 1;\n border-color: rgba(18, 110, 107, 1);\n border-color: rgba(18, 110, 107, var(--tw-border-opacity, 1));\n}\n.border-input {\n border-color: hsl(0, 0%, 89.8%);\n border-color: hsl(var(--input));\n}\n.border-orange-500 {\n --tw-border-opacity: 1;\n border-color: rgba(249, 115, 22, 1);\n border-color: rgba(249, 115, 22, var(--tw-border-opacity, 1));\n}\n.border-primary {\n border-color: hsl(0, 0%, 9%);\n border-color: hsl(var(--primary));\n}\n.border-red-500 {\n --tw-border-opacity: 1;\n border-color: rgba(239, 68, 68, 1);\n border-color: rgba(239, 68, 68, var(--tw-border-opacity, 1));\n}\n.border-transparent {\n border-color: transparent;\n}\n.bg-background {\n background-color: hsl(0, 0%, 100%);\n background-color: hsl(var(--background));\n}\n.bg-black\\/80 {\n background-color: rgba(0, 0, 0, 0.8);\n}\n.bg-blue-500 {\n --tw-bg-opacity: 1;\n background-color: rgba(59, 130, 246, 1);\n background-color: rgba(59, 130, 246, var(--tw-bg-opacity, 1));\n}\n.bg-blue-500\\/60 {\n background-color: rgba(59, 130, 246, 0.6);\n}\n.bg-border {\n background-color: hsl(0, 0%, 89.8%);\n background-color: hsl(var(--border));\n}\n.bg-border-light {\n background-color: #e3e3e3;\n background-color: var(--border-light);\n}\n.bg-border-medium {\n background-color: #cdcdcd;\n background-color: var(--border-medium);\n}\n.bg-foreground {\n background-color: hsl(0, 0%, 3.9%);\n background-color: hsl(var(--foreground));\n}\n.bg-gray-50 {\n --tw-bg-opacity: 1;\n background-color: rgba(247, 247, 248, 1);\n background-color: rgba(247, 247, 248, var(--tw-bg-opacity, 1));\n}\n.bg-gray-500 {\n --tw-bg-opacity: 1;\n background-color: rgba(89, 89, 89, 1);\n background-color: rgba(89, 89, 89, var(--tw-bg-opacity, 1));\n}\n.bg-gray-500\\/90 {\n background-color: rgba(89, 89, 89, 0.9);\n}\n.bg-gray-600\\/65 {\n background-color: rgba(66, 66, 66, 0.65);\n}\n.bg-gray-800 {\n --tw-bg-opacity: 1;\n background-color: rgba(33, 33, 33, 1);\n background-color: rgba(33, 33, 33, var(--tw-bg-opacity, 1));\n}\n.bg-gray-900 {\n --tw-bg-opacity: 1;\n background-color: rgba(13, 13, 13, 1);\n background-color: rgba(13, 13, 13, var(--tw-bg-opacity, 1));\n}\n.bg-green-500 {\n --tw-bg-opacity: 1;\n background-color: rgba(16, 163, 127, 1);\n background-color: rgba(16, 163, 127, var(--tw-bg-opacity, 1));\n}\n.bg-green-600\\/20 {\n background-color: rgba(18, 110, 107, 0.2);\n}\n.bg-green-600\\/50 {\n background-color: rgba(18, 110, 107, 0.5);\n}\n.bg-muted {\n background-color: hsl(0, 0%, 96.1%);\n background-color: hsl(var(--muted));\n}\n.bg-muted\\/50 {\n background-color: hsla(0, 0%, 96.1%, 0.5);\n background-color: hsl(var(--muted) / 0.5);\n}\n.bg-orange-500 {\n --tw-bg-opacity: 1;\n background-color: rgba(249, 115, 22, 1);\n background-color: rgba(249, 115, 22, var(--tw-bg-opacity, 1));\n}\n.bg-primary {\n background-color: hsl(0, 0%, 9%);\n background-color: hsl(var(--primary));\n}\n.bg-primary\\/20 {\n background-color: hsla(0, 0%, 9%, 0.2);\n background-color: hsl(var(--primary) / 0.2);\n}\n.bg-red-500 {\n --tw-bg-opacity: 1;\n background-color: rgba(239, 68, 68, 1);\n background-color: rgba(239, 68, 68, var(--tw-bg-opacity, 1));\n}\n.bg-secondary {\n background-color: hsl(0, 0%, 96.1%);\n background-color: hsl(var(--secondary));\n}\n.bg-surface-active {\n background-color: #ececec;\n background-color: var(--surface-active);\n}\n.bg-surface-chat {\n background-color: #fff;\n background-color: var(--surface-chat);\n}\n.bg-surface-destructive {\n background-color: #b91c1c;\n background-color: var(--surface-destructive);\n}\n.bg-surface-primary {\n background-color: #fff;\n background-color: var(--surface-primary);\n}\n.bg-surface-secondary {\n background-color: #f7f7f8;\n background-color: var(--surface-secondary);\n}\n.bg-surface-secondary-alt {\n background-color: #e3e3e3;\n background-color: var(--surface-secondary-alt);\n}\n.bg-surface-submit {\n background-color: #047857;\n background-color: var(--surface-submit);\n}\n.bg-surface-tertiary {\n background-color: #ececec;\n background-color: var(--surface-tertiary);\n}\n.bg-transparent {\n background-color: transparent;\n}\n.bg-white {\n --tw-bg-opacity: 1;\n background-color: rgba(255, 255, 255, 1);\n background-color: rgba(255, 255, 255, var(--tw-bg-opacity, 1));\n}\n.bg-white\\/10 {\n background-color: rgba(255, 255, 255, 0.1);\n}\n.bg-gradient-to-b {\n background-image: linear-gradient(to bottom, var(--tw-gradient-stops));\n}\n.bg-gradient-to-r {\n background-image: linear-gradient(to right, var(--tw-gradient-stops));\n}\n.from-blue-500\\/10 {\n --tw-gradient-from: rgba(59, 130, 246, 0.1) var(--tw-gradient-from-position);\n --tw-gradient-to: rgba(59, 130, 246, 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n}\n.from-blue-500\\/20 {\n --tw-gradient-from: rgba(59, 130, 246, 0.2) var(--tw-gradient-from-position);\n --tw-gradient-to: rgba(59, 130, 246, 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n}\n.from-gray-500 {\n --tw-gradient-from: #595959 var(--tw-gradient-from-position);\n --tw-gradient-to: rgba(89, 89, 89, 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n}\n.from-purple-500\\/5 {\n --tw-gradient-from: rgba(168, 85, 247, 0.05) var(--tw-gradient-from-position);\n --tw-gradient-to: rgba(168, 85, 247, 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n}\n.from-surface-tertiary-alt {\n --tw-gradient-from: var(--surface-tertiary-alt) var(--tw-gradient-from-position);\n --tw-gradient-to: rgba(255, 255, 255, 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n}\n.from-65\\% {\n --tw-gradient-from-position: 65%;\n}\n.via-blue-500\\/5 {\n --tw-gradient-to: rgba(59, 130, 246, 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), rgba(59, 130, 246, 0.05) var(--tw-gradient-via-position), var(--tw-gradient-to);\n}\n.via-purple-500\\/10 {\n --tw-gradient-to: rgba(168, 85, 247, 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), rgba(168, 85, 247, 0.1) var(--tw-gradient-via-position), var(--tw-gradient-to);\n}\n.via-purple-500\\/20 {\n --tw-gradient-to: rgba(168, 85, 247, 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), rgba(168, 85, 247, 0.2) var(--tw-gradient-via-position), var(--tw-gradient-to);\n}\n.to-blue-500\\/10 {\n --tw-gradient-to: rgba(59, 130, 246, 0.1) var(--tw-gradient-to-position);\n}\n.to-blue-500\\/20 {\n --tw-gradient-to: rgba(59, 130, 246, 0.2) var(--tw-gradient-to-position);\n}\n.to-gray-500 {\n --tw-gradient-to: #595959 var(--tw-gradient-to-position);\n}\n.to-purple-500\\/5 {\n --tw-gradient-to: rgba(168, 85, 247, 0.05) var(--tw-gradient-to-position);\n}\n.to-transparent {\n --tw-gradient-to: transparent var(--tw-gradient-to-position);\n}\n.bg-no-repeat {\n background-repeat: no-repeat;\n}\n.fill-current {\n fill: currentColor;\n}\n.stroke-1 {\n stroke-width: 1;\n}\n.p-0 {\n padding: 0px;\n}\n.p-1 {\n padding: 0.25rem;\n}\n.p-1\\.5 {\n padding: 0.375rem;\n}\n.p-2 {\n padding: 0.5rem;\n}\n.p-3 {\n padding: 0.75rem;\n}\n.p-4 {\n padding: 1rem;\n}\n.p-6 {\n padding: 1.5rem;\n}\n.px-0 {\n padding-left: 0px;\n padding-right: 0px;\n}\n.px-1 {\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n}\n.px-1\\.5 {\n padding-left: 0.375rem;\n padding-right: 0.375rem;\n}\n.px-10 {\n padding-left: 2.5rem;\n padding-right: 2.5rem;\n}\n.px-2 {\n padding-left: 0.5rem;\n padding-right: 0.5rem;\n}\n.px-2\\.5 {\n padding-left: 0.625rem;\n padding-right: 0.625rem;\n}\n.px-3 {\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n}\n.px-4 {\n padding-left: 1rem;\n padding-right: 1rem;\n}\n.px-6 {\n padding-left: 1.5rem;\n padding-right: 1.5rem;\n}\n.px-8 {\n padding-left: 2rem;\n padding-right: 2rem;\n}\n.py-1 {\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n}\n.py-1\\.5 {\n padding-top: 0.375rem;\n padding-bottom: 0.375rem;\n}\n.py-2 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n}\n.py-2\\.5 {\n padding-top: 0.625rem;\n padding-bottom: 0.625rem;\n}\n.py-3\\.5 {\n padding-top: 0.875rem;\n padding-bottom: 0.875rem;\n}\n.py-4 {\n padding-top: 1rem;\n padding-bottom: 1rem;\n}\n.pb-4 {\n padding-bottom: 1rem;\n}\n.pb-6 {\n padding-bottom: 1.5rem;\n}\n.pl-2 {\n padding-left: 0.5rem;\n}\n.pl-2\\.5 {\n padding-left: 0.625rem;\n}\n.pl-3 {\n padding-left: 0.75rem;\n}\n.pl-8 {\n padding-left: 2rem;\n}\n.pl-9 {\n padding-left: 2.25rem;\n}\n.pr-10 {\n padding-right: 2.5rem;\n}\n.pr-2 {\n padding-right: 0.5rem;\n}\n.pr-2\\.5 {\n padding-right: 0.625rem;\n}\n.pr-3 {\n padding-right: 0.75rem;\n}\n.pr-8 {\n padding-right: 2rem;\n}\n.pr-9 {\n padding-right: 2.25rem;\n}\n.pt-0 {\n padding-top: 0px;\n}\n.pt-6 {\n padding-top: 1.5rem;\n}\n.text-left {\n text-align: left;\n}\n.text-center {\n text-align: center;\n}\n.align-middle {\n vertical-align: middle;\n}\n.font-sans {\n font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";\n}\n.text-3xl {\n font-size: 1.875rem;\n line-height: 2.25rem;\n}\n.text-\\[0\\.5rem\\] {\n font-size: 0.5rem;\n}\n.text-base {\n font-size: 1rem;\n line-height: 1.5rem;\n}\n.text-lg {\n font-size: 1.125rem;\n line-height: 1.75rem;\n}\n.text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem;\n}\n.text-xs {\n font-size: 0.75rem;\n line-height: 1rem;\n}\n.font-medium {\n font-weight: 500;\n}\n.font-normal {\n font-weight: 400;\n}\n.font-semibold {\n font-weight: 600;\n}\n.leading-6 {\n line-height: 1.5rem;\n}\n.leading-none {\n line-height: 1;\n}\n.tracking-tight {\n letter-spacing: -0.025em;\n}\n.tracking-widest {\n letter-spacing: 0.1em;\n}\n.text-black {\n --tw-text-opacity: 1;\n color: rgba(0, 0, 0, 1);\n color: rgba(0, 0, 0, var(--tw-text-opacity, 1));\n}\n.text-black\\/50 {\n color: rgba(0, 0, 0, 0.5);\n}\n.text-blue-400 {\n --tw-text-opacity: 1;\n color: rgba(96, 165, 250, 1);\n color: rgba(96, 165, 250, var(--tw-text-opacity, 1));\n}\n.text-destructive-foreground {\n color: hsl(0, 0%, 98%);\n color: hsl(var(--destructive-foreground));\n}\n.text-foreground {\n color: hsl(0, 0%, 3.9%);\n color: hsl(var(--foreground));\n}\n.text-gray-400 {\n --tw-text-opacity: 1;\n color: rgba(153, 150, 150, 1);\n color: rgba(153, 150, 150, var(--tw-text-opacity, 1));\n}\n.text-gray-500 {\n --tw-text-opacity: 1;\n color: rgba(89, 89, 89, 1);\n color: rgba(89, 89, 89, var(--tw-text-opacity, 1));\n}\n.text-gray-600 {\n --tw-text-opacity: 1;\n color: rgba(66, 66, 66, 1);\n color: rgba(66, 66, 66, var(--tw-text-opacity, 1));\n}\n.text-gray-700 {\n --tw-text-opacity: 1;\n color: rgba(47, 47, 47, 1);\n color: rgba(47, 47, 47, var(--tw-text-opacity, 1));\n}\n.text-gray-800 {\n --tw-text-opacity: 1;\n color: rgba(33, 33, 33, 1);\n color: rgba(33, 33, 33, var(--tw-text-opacity, 1));\n}\n.text-gray-900 {\n --tw-text-opacity: 1;\n color: rgba(13, 13, 13, 1);\n color: rgba(13, 13, 13, var(--tw-text-opacity, 1));\n}\n.text-green-600 {\n --tw-text-opacity: 1;\n color: rgba(18, 110, 107, 1);\n color: rgba(18, 110, 107, var(--tw-text-opacity, 1));\n}\n.text-muted-foreground {\n color: hsl(0, 0%, 45.1%);\n color: hsl(var(--muted-foreground));\n}\n.text-muted-foreground\\/70 {\n color: hsla(0, 0%, 45.1%, 0.7);\n color: hsl(var(--muted-foreground) / 0.7);\n}\n.text-primary {\n color: hsl(0, 0%, 9%);\n color: hsl(var(--primary));\n}\n.text-primary-foreground {\n color: hsl(0, 0%, 98%);\n color: hsl(var(--primary-foreground));\n}\n.text-red-400 {\n --tw-text-opacity: 1;\n color: rgba(248, 113, 113, 1);\n color: rgba(248, 113, 113, var(--tw-text-opacity, 1));\n}\n.text-secondary {\n color: hsl(0, 0%, 96.1%);\n color: hsl(var(--secondary));\n}\n.text-secondary-foreground {\n color: hsl(0, 0%, 9%);\n color: hsl(var(--secondary-foreground));\n}\n.text-text-primary {\n color: #212121;\n color: var(--text-primary);\n}\n.text-text-secondary {\n color: #424242;\n color: var(--text-secondary);\n}\n.text-text-secondary-alt {\n color: #595959;\n color: var(--text-secondary-alt);\n}\n.text-white {\n --tw-text-opacity: 1;\n color: rgba(255, 255, 255, 1);\n color: rgba(255, 255, 255, var(--tw-text-opacity, 1));\n}\n.underline {\n text-decoration-line: underline;\n}\n.underline-offset-4 {\n text-underline-offset: 4px;\n}\n.placeholder-text-secondary::-moz-placeholder {\n color: #424242;\n color: var(--text-secondary);\n}\n.placeholder-text-secondary::placeholder {\n color: #424242;\n color: var(--text-secondary);\n}\n.opacity-0 {\n opacity: 0;\n}\n.opacity-100 {\n opacity: 1;\n}\n.opacity-50 {\n opacity: 0.5;\n}\n.opacity-70 {\n opacity: 0.7;\n}\n.opacity-75 {\n opacity: 0.75;\n}\n.shadow-2xl {\n --tw-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);\n --tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);\n box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), 0 25px 50px -12px rgba(0, 0, 0, 0.25);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)), var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)), var(--tw-shadow);\n}\n.shadow-lg {\n --tw-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);\n --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);\n box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)), var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)), var(--tw-shadow);\n}\n.shadow-md {\n --tw-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);\n --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);\n box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)), var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)), var(--tw-shadow);\n}\n.shadow-sm {\n --tw-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);\n --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);\n box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), 0 1px 2px 0 rgba(0, 0, 0, 0.05);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)), var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)), var(--tw-shadow);\n}\n.outline-none {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n.outline {\n outline-style: solid;\n}\n.ring-0 {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color), var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color), 0 0 rgba(0,0,0,0);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0,0,0,0));\n}\n.ring-1 {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color), var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color), 0 0 rgba(0,0,0,0);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0,0,0,0));\n}\n.ring-2 {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color), var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color), 0 0 rgba(0,0,0,0);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0,0,0,0));\n}\n.ring-black\\/10 {\n --tw-ring-color: rgba(0, 0, 0, 0.1);\n}\n.ring-ring {\n --tw-ring-color: hsl(var(--ring));\n}\n.ring-ring-primary {\n --tw-ring-color: var(--ring-primary);\n}\n.ring-offset-background {\n --tw-ring-offset-color: hsl(var(--background));\n}\n.blur {\n --tw-blur: blur(8px);\n filter: blur(8px) 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);\n 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);\n}\n.blur-none {\n --tw-blur: ;\n filter: 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);\n 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);\n}\n.blur-sm {\n --tw-blur: blur(4px);\n filter: blur(4px) 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);\n 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);\n}\n.blur-xl {\n --tw-blur: blur(24px);\n filter: blur(24px) 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);\n 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);\n}\n.filter {\n 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);\n}\n.backdrop-blur-sm {\n --tw-backdrop-blur: blur(4px);\n -webkit-backdrop-filter: blur(4px) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);\n -webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);\n backdrop-filter: blur(4px) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);\n backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);\n}\n.transition {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.transition-all {\n transition-property: all;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.transition-colors {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.transition-opacity {\n transition-property: opacity;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.transition-shadow {\n transition-property: box-shadow;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.transition-transform {\n transition-property: transform;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.duration-100 {\n transition-duration: 100ms;\n}\n.duration-1000 {\n transition-duration: 1000ms;\n}\n.duration-200 {\n transition-duration: 200ms;\n}\n.duration-300 {\n transition-duration: 300ms;\n}\n.duration-500 {\n transition-duration: 500ms;\n}\n.duration-700 {\n transition-duration: 700ms;\n}\n.ease-in {\n transition-timing-function: cubic-bezier(0.4, 0, 1, 1);\n}\n.ease-in-out {\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n}\n.ease-out {\n transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n}\n.will-change-transform {\n will-change: transform;\n}\n@keyframes enter {\n\n from {\n opacity: 1;\n opacity: var(--tw-enter-opacity, 1);\n transform: translate3d(0, 0, 0) scale3d(1, 1, 1) rotate(0);\n 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));\n }\n}\n@keyframes exit {\n\n to {\n opacity: 1;\n opacity: var(--tw-exit-opacity, 1);\n transform: translate3d(0, 0, 0) scale3d(1, 1, 1) rotate(0);\n 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));\n }\n}\n.animate-in {\n animation-name: enter;\n animation-duration: 150ms;\n --tw-enter-opacity: initial;\n --tw-enter-scale: initial;\n --tw-enter-rotate: initial;\n --tw-enter-translate-x: initial;\n --tw-enter-translate-y: initial;\n}\n.fade-in {\n --tw-enter-opacity: 0;\n}\n.fade-in-0 {\n --tw-enter-opacity: 0;\n}\n.fade-in-90 {\n --tw-enter-opacity: 0.9;\n}\n.zoom-in-95 {\n --tw-enter-scale: .95;\n}\n.slide-in-from-bottom-10 {\n --tw-enter-translate-y: 2.5rem;\n}\n.slide-in-from-left-1 {\n --tw-enter-translate-x: -0.25rem;\n}\n.duration-100 {\n animation-duration: 100ms;\n}\n.duration-1000 {\n animation-duration: 1000ms;\n}\n.duration-200 {\n animation-duration: 200ms;\n}\n.duration-300 {\n animation-duration: 300ms;\n}\n.duration-500 {\n animation-duration: 500ms;\n}\n.duration-700 {\n animation-duration: 700ms;\n}\n.ease-in {\n animation-timing-function: cubic-bezier(0.4, 0, 1, 1);\n}\n.ease-in-out {\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n}\n.ease-out {\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n}\n/* Custom Variables */\n:root {\n --white: #fff;\n --black: #000;\n --gray-20: #ececf1;\n --gray-50: #f7f7f8;\n --gray-100: #ececec;\n --gray-200: #e3e3e3;\n --gray-300: #cdcdcd;\n --gray-400: #999696;\n --gray-500: #595959;\n --gray-600: #424242;\n --gray-700: #2f2f2f;\n --gray-800: #212121;\n --gray-850: #171717;\n --gray-900: #0d0d0d;\n --green-50: #ecfdf5;\n --green-100: #d1fae5;\n --green-200: #a7f3d0;\n --green-300: #6ee7b7;\n --green-400: #34d399;\n --green-500: #10b981;\n --green-600: #059669;\n --green-700: #047857;\n --green-800: #065f46;\n --green-900: #064e3b;\n --green-950: #022c22;\n --red-50: #fef2f2;\n --red-100: #fee2e2;\n --red-200: #fecaca;\n --red-300: #fca5a5;\n --red-400: #f87171;\n --red-500: #ef4444;\n --red-600: #dc2626;\n --red-700: #b91c1c;\n --red-800: #991b1b;\n --red-900: #7f1d1d;\n --red-950: #450a0a;\n --amber-50: #fffbeb;\n --amber-100: #fef3c7;\n --amber-200: #fde68a;\n --amber-300: #fcd34d;\n --amber-400: #fbbf24;\n --amber-500: #f59e0b;\n --amber-600: #d97706;\n --amber-700: #b45309;\n --amber-800: #92400e;\n --amber-900: #78350f;\n --amber-950: #451a03;\n}\nhtml {\n --presentation: var(--white);\n --text-primary: var(--gray-800);\n --text-secondary: var(--gray-600);\n --text-secondary-alt: var(--gray-500);\n --text-tertiary: var(--gray-500);\n --text-warning: var(--amber-500);\n --ring-primary: var(--gray-500);\n --header-primary: var(--white);\n --header-hover: var(--gray-50);\n --header-button-hover: var(--gray-50);\n --surface-active: var(--gray-100);\n --surface-active-alt: var(--gray-200);\n --surface-hover: var(--gray-200);\n --surface-hover-alt: var(--gray-300);\n --surface-primary: var(--white);\n --surface-primary-alt: var(--gray-50);\n --surface-primary-contrast: var(--gray-100);\n --surface-secondary: var(--gray-50);\n --surface-secondary-alt: var(--gray-200);\n --surface-tertiary: var(--gray-100);\n --surface-tertiary-alt: var(--white);\n --surface-dialog: var(--white);\n --surface-submit: var(--green-700);\n --surface-submit-hover: var(--green-800);\n --surface-destructive: var(--red-700);\n --surface-destructive-hover: var(--red-800);\n --surface-chat: var(--white);\n --border-light: var(--gray-200);\n --border-medium-alt: var(--gray-300);\n --border-medium: var(--gray-300);\n --border-heavy: var(--gray-400);\n --border-xheavy: var(--gray-500);\n\n --background: 0 0% 100%;\n --foreground: 0 0% 3.9%;\n --card: 0 0% 100%;\n --card-foreground: 0 0% 3.9%;\n --primary: 0 0% 9%;\n --primary-foreground: 0 0% 98%;\n --secondary: 0 0% 96.1%;\n --secondary-foreground: 0 0% 9%;\n --muted: 0 0% 96.1%;\n --muted-foreground: 0 0% 45.1%;\n --accent: 0 0% 96.1%;\n --accent-foreground: 0 0% 9%;\n --destructive: 0 84.2% 60.2%;\n --destructive-foreground: 0 0% 98%;\n --border: 0 0% 89.8%;\n --input: 0 0% 89.8%;\n --ring: 0 0% 3.9%;\n --radius: 0.5rem;\n --chart-1: 12 76% 61%;\n --chart-2: 173 58% 39%;\n --chart-3: 197 37% 24%;\n --chart-4: 43 74% 66%;\n --chart-5: 27 87% 67%;\n --switch-unchecked: 0 0% 58%;\n}\n.dark {\n --presentation: var(--gray-800);\n --text-primary: var(--gray-100);\n --text-secondary: var(--gray-300);\n --text-secondary-alt: var(--gray-400);\n --text-tertiary: var(--gray-500);\n --text-warning: var(--amber-500);\n --header-primary: var(--gray-700);\n --header-hover: var(--gray-600);\n --header-button-hover: var(--gray-700);\n --surface-active: var(--gray-500);\n --surface-active-alt: var(--gray-700);\n --surface-hover: var(--gray-600);\n --surface-hover-alt: var(--gray-600);\n --surface-primary: var(--gray-900);\n --surface-primary-alt: var(--gray-850);\n --surface-primary-contrast: var(--gray-850);\n --surface-secondary: var(--gray-800);\n --surface-secondary-alt: var(--gray-800);\n --surface-tertiary: var(--gray-700);\n --surface-tertiary-alt: var(--gray-700);\n --surface-dialog: var(--gray-850);\n --surface-submit: var(--green-700);\n --surface-submit-hover: var(--green-800);\n --surface-destructive: var(--red-800);\n --surface-destructive-hover: var(--red-900);\n --surface-chat: var(--gray-700);\n --border-light: var(--gray-700);\n --border-medium-alt: var(--gray-600);\n --border-medium: var(--gray-600);\n --border-heavy: var(--gray-500);\n --border-xheavy: var(--gray-400);\n\n --background: 0 0% 7%;\n --foreground: 0 0% 98%;\n --card: 0 0% 3.9%;\n --card-foreground: 0 0% 98%;\n --primary: 0 0% 98%;\n --primary-foreground: 0 0% 9%;\n --secondary: 0 0% 14.9%;\n --secondary-foreground: 0 0% 98%;\n --muted: 0 0% 14.9%;\n --muted-foreground: 0 0% 63.9%;\n --accent: 0 0% 14.9%;\n --accent-foreground: 0 0% 98%;\n --destructive: 0 62.8% 40.6%;\n --destructive-foreground: 0 0% 98%;\n --border: 0 0% 14.9%;\n --input: 0 0% 14.9%;\n --ring: 0 0% 83.1%;\n --chart-1: 220 70% 50%;\n --chart-2: 160 60% 45%;\n --chart-3: 30 80% 55%;\n --chart-4: 280 65% 60%;\n --chart-5: 340 75% 55%;\n --switch-unchecked: 0 0% 40%;\n}\n.placeholder\\:text-gray-400::-moz-placeholder {\n --tw-text-opacity: 1;\n color: rgba(153, 150, 150, 1);\n color: rgba(153, 150, 150, var(--tw-text-opacity, 1));\n}\n.placeholder\\:text-gray-400::placeholder {\n --tw-text-opacity: 1;\n color: rgba(153, 150, 150, 1);\n color: rgba(153, 150, 150, var(--tw-text-opacity, 1));\n}\n.placeholder\\:text-muted-foreground::-moz-placeholder {\n color: hsl(0, 0%, 45.1%);\n color: hsl(var(--muted-foreground));\n}\n.placeholder\\:text-muted-foreground::placeholder {\n color: hsl(0, 0%, 45.1%);\n color: hsl(var(--muted-foreground));\n}\n.after\\:absolute::after {\n content: var(--tw-content);\n position: absolute;\n}\n.after\\:inset-y-0::after {\n content: var(--tw-content);\n top: 0px;\n bottom: 0px;\n}\n.after\\:left-1\\/2::after {\n content: var(--tw-content);\n left: 50%;\n}\n.after\\:w-1::after {\n content: var(--tw-content);\n width: 0.25rem;\n}\n.after\\:-translate-x-1\\/2::after {\n content: var(--tw-content);\n --tw-translate-x: -50%;\n transform: translate(-50%, var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.first\\:rounded-l-xl:first-child {\n border-top-left-radius: 0.75rem;\n border-bottom-left-radius: 0.75rem;\n}\n.first\\:border-l:first-child {\n border-left-width: 1px;\n}\n.last\\:rounded-r-xl:last-child {\n border-top-right-radius: 0.75rem;\n border-bottom-right-radius: 0.75rem;\n}\n.hover\\:cursor-pointer:hover {\n cursor: pointer;\n}\n.hover\\:bg-accent:hover {\n background-color: hsl(0, 0%, 96.1%);\n background-color: hsl(var(--accent));\n}\n.hover\\:bg-black\\/\\[0\\.075\\]:hover {\n background-color: rgba(0, 0, 0, 0.075);\n}\n.hover\\:bg-gray-100:hover {\n --tw-bg-opacity: 1;\n background-color: rgba(236, 236, 236, 1);\n background-color: rgba(236, 236, 236, var(--tw-bg-opacity, 1));\n}\n.hover\\:bg-gray-100\\/50:hover {\n background-color: rgba(236, 236, 236, 0.5);\n}\n.hover\\:bg-gray-20:hover {\n --tw-bg-opacity: 1;\n background-color: rgba(236, 236, 241, 1);\n background-color: rgba(236, 236, 241, var(--tw-bg-opacity, 1));\n}\n.hover\\:bg-gray-200:hover {\n --tw-bg-opacity: 1;\n background-color: rgba(227, 227, 227, 1);\n background-color: rgba(227, 227, 227, var(--tw-bg-opacity, 1));\n}\n.hover\\:bg-gray-50:hover {\n --tw-bg-opacity: 1;\n background-color: rgba(247, 247, 248, 1);\n background-color: rgba(247, 247, 248, var(--tw-bg-opacity, 1));\n}\n.hover\\:bg-gray-700:hover {\n --tw-bg-opacity: 1;\n background-color: rgba(47, 47, 47, 1);\n background-color: rgba(47, 47, 47, var(--tw-bg-opacity, 1));\n}\n.hover\\:bg-gray-800:hover {\n --tw-bg-opacity: 1;\n background-color: rgba(33, 33, 33, 1);\n background-color: rgba(33, 33, 33, var(--tw-bg-opacity, 1));\n}\n.hover\\:bg-muted\\/50:hover {\n background-color: hsla(0, 0%, 96.1%, 0.5);\n background-color: hsl(var(--muted) / 0.5);\n}\n.hover\\:bg-primary\\/90:hover {\n background-color: hsla(0, 0%, 9%, 0.9);\n background-color: hsl(var(--primary) / 0.9);\n}\n.hover\\:bg-secondary\\/80:hover {\n background-color: hsla(0, 0%, 96.1%, 0.8);\n background-color: hsl(var(--secondary) / 0.8);\n}\n.hover\\:bg-surface-destructive-hover:hover {\n background-color: #991b1b;\n background-color: var(--surface-destructive-hover);\n}\n.hover\\:bg-surface-hover:hover {\n background-color: #e3e3e3;\n background-color: var(--surface-hover);\n}\n.hover\\:bg-surface-secondary:hover {\n background-color: #f7f7f8;\n background-color: var(--surface-secondary);\n}\n.hover\\:bg-surface-submit-hover:hover {\n background-color: #065f46;\n background-color: var(--surface-submit-hover);\n}\n.hover\\:bg-surface-tertiary:hover {\n background-color: #ececec;\n background-color: var(--surface-tertiary);\n}\n.hover\\:bg-transparent:hover {\n background-color: transparent;\n}\n.hover\\:text-accent-foreground:hover {\n color: hsl(0, 0%, 9%);\n color: hsl(var(--accent-foreground));\n}\n.hover\\:text-foreground:hover {\n color: hsl(0, 0%, 3.9%);\n color: hsl(var(--foreground));\n}\n.hover\\:text-secondary:hover {\n color: hsl(0, 0%, 96.1%);\n color: hsl(var(--secondary));\n}\n.hover\\:text-text-primary:hover {\n color: #212121;\n color: var(--text-primary);\n}\n.hover\\:underline:hover {\n text-decoration-line: underline;\n}\n.hover\\:opacity-100:hover {\n opacity: 1;\n}\n.hover\\:shadow-md:hover {\n --tw-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);\n --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);\n box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)), var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)), var(--tw-shadow);\n}\n.hover\\:shadow-sm:hover {\n --tw-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);\n --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);\n box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), 0 1px 2px 0 rgba(0, 0, 0, 0.05);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)), var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)), var(--tw-shadow);\n}\n.focus\\:bg-accent:focus {\n background-color: hsl(0, 0%, 96.1%);\n background-color: hsl(var(--accent));\n}\n.focus\\:bg-gray-100:focus {\n --tw-bg-opacity: 1;\n background-color: rgba(236, 236, 236, 1);\n background-color: rgba(236, 236, 236, var(--tw-bg-opacity, 1));\n}\n.focus\\:bg-surface-hover:focus {\n background-color: #e3e3e3;\n background-color: var(--surface-hover);\n}\n.focus\\:bg-surface-tertiary:focus {\n background-color: #ececec;\n background-color: var(--surface-tertiary);\n}\n.focus\\:bg-gradient-to-b:focus {\n background-image: linear-gradient(to bottom, var(--tw-gradient-stops));\n}\n.focus\\:from-surface-primary:focus {\n --tw-gradient-from: var(--surface-primary) var(--tw-gradient-from-position);\n --tw-gradient-to: rgba(255, 255, 255, 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n}\n.focus\\:text-accent-foreground:focus {\n color: hsl(0, 0%, 9%);\n color: hsl(var(--accent-foreground));\n}\n.focus\\:outline-none:focus {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n.focus\\:ring-0:focus {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color), var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color), 0 0 rgba(0,0,0,0);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0,0,0,0));\n}\n.focus\\:ring-1:focus {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color), var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color), 0 0 rgba(0,0,0,0);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0,0,0,0));\n}\n.focus\\:ring-2:focus {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color), var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color), 0 0 rgba(0,0,0,0);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0,0,0,0));\n}\n.focus\\:ring-inset:focus {\n --tw-ring-inset: inset;\n}\n.focus\\:ring-gray-400:focus {\n --tw-ring-opacity: 1;\n --tw-ring-color: rgba(153, 150, 150, var(--tw-ring-opacity, 1));\n}\n.focus\\:ring-gray-700\\/10:focus {\n --tw-ring-color: rgba(47, 47, 47, 0.1);\n}\n.focus\\:ring-ring:focus {\n --tw-ring-color: hsl(var(--ring));\n}\n.focus\\:ring-ring-primary:focus {\n --tw-ring-color: var(--ring-primary);\n}\n.focus\\:ring-offset-2:focus {\n --tw-ring-offset-width: 2px;\n}\n.focus-visible\\:outline-none:focus-visible {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n.focus-visible\\:ring-1:focus-visible {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color), var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color), 0 0 rgba(0,0,0,0);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0,0,0,0));\n}\n.focus-visible\\:ring-2:focus-visible {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color), var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color), 0 0 rgba(0,0,0,0);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0,0,0,0));\n}\n.focus-visible\\:ring-gray-500:focus-visible {\n --tw-ring-opacity: 1;\n --tw-ring-color: rgba(89, 89, 89, var(--tw-ring-opacity, 1));\n}\n.focus-visible\\:ring-ring:focus-visible {\n --tw-ring-color: hsl(var(--ring));\n}\n.focus-visible\\:ring-ring-primary:focus-visible {\n --tw-ring-color: var(--ring-primary);\n}\n.focus-visible\\:ring-white:focus-visible {\n --tw-ring-opacity: 1;\n --tw-ring-color: rgba(255, 255, 255, var(--tw-ring-opacity, 1));\n}\n.focus-visible\\:ring-opacity-75:focus-visible {\n --tw-ring-opacity: 0.75;\n}\n.focus-visible\\:ring-offset-1:focus-visible {\n --tw-ring-offset-width: 1px;\n}\n.focus-visible\\:ring-offset-2:focus-visible {\n --tw-ring-offset-width: 2px;\n}\n.focus-visible\\:ring-offset-background:focus-visible {\n --tw-ring-offset-color: hsl(var(--background));\n}\n.active\\:scale-95:active {\n --tw-scale-x: .95;\n --tw-scale-y: .95;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(.95) scaleY(.95);\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.active\\:shadow-inner:active {\n --tw-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);\n --tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);\n box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)), var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)), var(--tw-shadow);\n}\n.disabled\\:pointer-events-none:disabled {\n pointer-events: none;\n}\n.disabled\\:cursor-not-allowed:disabled {\n cursor: not-allowed;\n}\n.disabled\\:bg-white:disabled {\n --tw-bg-opacity: 1;\n background-color: rgba(255, 255, 255, 1);\n background-color: rgba(255, 255, 255, var(--tw-bg-opacity, 1));\n}\n.disabled\\:opacity-50:disabled {\n opacity: 0.5;\n}\n.disabled\\:opacity-80:disabled {\n opacity: 0.8;\n}\n.group:hover .group-hover\\:visible {\n visibility: visible;\n}\n.group:hover .group-hover\\:inline {\n display: inline;\n}\n.group:hover .group-hover\\:hidden {\n display: none;\n}\n.group:focus .group-focus\\:inline {\n display: inline;\n}\n.group:active .group-active\\:visible {\n visibility: visible;\n}\n.peer:focus ~ .peer-focus\\:scale-105 {\n --tw-scale-x: 1.05;\n --tw-scale-y: 1.05;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(1.05) scaleY(1.05);\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.peer:focus ~ .peer-focus\\:opacity-100 {\n opacity: 1;\n}\n.peer:disabled ~ .peer-disabled\\:cursor-not-allowed {\n cursor: not-allowed;\n}\n.peer:disabled ~ .peer-disabled\\:opacity-70 {\n opacity: 0.7;\n}\n.has-\\[\\:disabled\\]\\:opacity-50:has(:disabled) {\n opacity: 0.5;\n}\n.aria-disabled\\:opacity-50[aria-disabled="true"] {\n opacity: 0.5;\n}\n.data-\\[disabled\\]\\:pointer-events-none[data-disabled] {\n pointer-events: none;\n}\n.data-\\[panel-group-direction\\=vertical\\]\\:h-px[data-panel-group-direction="vertical"] {\n height: 1px;\n}\n.data-\\[panel-group-direction\\=vertical\\]\\:w-full[data-panel-group-direction="vertical"] {\n width: 100%;\n}\n.data-\\[side\\=bottom\\]\\:translate-y-1[data-side="bottom"] {\n --tw-translate-y: 0.25rem;\n transform: translate(var(--tw-translate-x), 0.25rem) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.data-\\[side\\=left\\]\\:-translate-x-1[data-side="left"] {\n --tw-translate-x: -0.25rem;\n transform: translate(-0.25rem, var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.data-\\[side\\=right\\]\\:translate-x-1[data-side="right"] {\n --tw-translate-x: 0.25rem;\n transform: translate(0.25rem, var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.data-\\[side\\=top\\]\\:-translate-y-1[data-side="top"] {\n --tw-translate-y: -0.25rem;\n transform: translate(var(--tw-translate-x), -0.25rem) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.data-\\[state\\=checked\\]\\:translate-x-5[data-state="checked"] {\n --tw-translate-x: 1.25rem;\n transform: translate(1.25rem, var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.data-\\[state\\=unchecked\\]\\:translate-x-0[data-state="unchecked"] {\n --tw-translate-x: 0px;\n transform: translate(0px, var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n@keyframes accordion-up {\n\n from {\n height: var(--radix-accordion-content-height);\n }\n\n to {\n height: 0;\n }\n}\n.data-\\[state\\=closed\\]\\:animate-accordion-up[data-state="closed"] {\n animation: accordion-up 0.2s ease-out;\n}\n@keyframes accordion-down {\n\n from {\n height: 0;\n }\n\n to {\n height: var(--radix-accordion-content-height);\n }\n}\n.data-\\[state\\=open\\]\\:animate-accordion-down[data-state="open"] {\n animation: accordion-down 0.2s ease-out;\n}\n.data-\\[panel-group-direction\\=vertical\\]\\:flex-col[data-panel-group-direction="vertical"] {\n flex-direction: column;\n}\n.data-\\[active-item\\]\\:bg-black\\/\\[0\\.075\\][data-active-item] {\n background-color: rgba(0, 0, 0, 0.075);\n}\n.data-\\[active-item\\]\\:bg-surface-tertiary[data-active-item] {\n background-color: #ececec;\n background-color: var(--surface-tertiary);\n}\n.data-\\[state\\=active\\]\\:bg-white[data-state="active"] {\n --tw-bg-opacity: 1;\n background-color: rgba(255, 255, 255, 1);\n background-color: rgba(255, 255, 255, var(--tw-bg-opacity, 1));\n}\n.data-\\[state\\=checked\\]\\:bg-primary[data-state="checked"] {\n background-color: hsl(0, 0%, 9%);\n background-color: hsl(var(--primary));\n}\n.data-\\[state\\=open\\]\\:bg-accent[data-state="open"] {\n background-color: hsl(0, 0%, 96.1%);\n background-color: hsl(var(--accent));\n}\n.data-\\[state\\=open\\]\\:bg-gray-100[data-state="open"] {\n --tw-bg-opacity: 1;\n background-color: rgba(236, 236, 236, 1);\n background-color: rgba(236, 236, 236, var(--tw-bg-opacity, 1));\n}\n.data-\\[state\\=selected\\]\\:bg-muted[data-state="selected"] {\n background-color: hsl(0, 0%, 96.1%);\n background-color: hsl(var(--muted));\n}\n.data-\\[state\\=unchecked\\]\\:bg-switch-unchecked[data-state="unchecked"] {\n background-color: hsl(0, 0%, 58%);\n background-color: hsl(var(--switch-unchecked));\n}\n.data-\\[active-item\\]\\:text-text-primary[data-active-item] {\n color: #212121;\n color: var(--text-primary);\n}\n.data-\\[state\\=active\\]\\:text-gray-800[data-state="active"] {\n --tw-text-opacity: 1;\n color: rgba(33, 33, 33, 1);\n color: rgba(33, 33, 33, var(--tw-text-opacity, 1));\n}\n.data-\\[state\\=checked\\]\\:text-primary-foreground[data-state="checked"] {\n color: hsl(0, 0%, 98%);\n color: hsl(var(--primary-foreground));\n}\n.data-\\[state\\=open\\]\\:text-muted-foreground[data-state="open"] {\n color: hsl(0, 0%, 45.1%);\n color: hsl(var(--muted-foreground));\n}\n.data-\\[disabled\\]\\:opacity-50[data-disabled] {\n opacity: 0.5;\n}\n.data-\\[state\\=active\\]\\:shadow-sm[data-state="active"] {\n --tw-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);\n --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);\n box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), 0 1px 2px 0 rgba(0, 0, 0, 0.05);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)), var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)), var(--tw-shadow);\n}\n.data-\\[state\\=open\\]\\:animate-in[data-state="open"] {\n animation-name: enter;\n animation-duration: 150ms;\n --tw-enter-opacity: initial;\n --tw-enter-scale: initial;\n --tw-enter-rotate: initial;\n --tw-enter-translate-x: initial;\n --tw-enter-translate-y: initial;\n}\n.data-\\[state\\=closed\\]\\:animate-out[data-state="closed"] {\n animation-name: exit;\n animation-duration: 150ms;\n --tw-exit-opacity: initial;\n --tw-exit-scale: initial;\n --tw-exit-rotate: initial;\n --tw-exit-translate-x: initial;\n --tw-exit-translate-y: initial;\n}\n.data-\\[state\\=closed\\]\\:fade-out[data-state="closed"] {\n --tw-exit-opacity: 0;\n}\n.data-\\[state\\=closed\\]\\:fade-out-0[data-state="closed"] {\n --tw-exit-opacity: 0;\n}\n.data-\\[state\\=open\\]\\:fade-in[data-state="open"] {\n --tw-enter-opacity: 0;\n}\n.data-\\[state\\=open\\]\\:fade-in-0[data-state="open"] {\n --tw-enter-opacity: 0;\n}\n.data-\\[state\\=open\\]\\:fade-in-90[data-state="open"] {\n --tw-enter-opacity: 0.9;\n}\n.data-\\[state\\=closed\\]\\:zoom-out-95[data-state="closed"] {\n --tw-exit-scale: .95;\n}\n.data-\\[state\\=open\\]\\:zoom-in-95[data-state="open"] {\n --tw-enter-scale: .95;\n}\n.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side="bottom"] {\n --tw-enter-translate-y: -0.5rem;\n}\n.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side="left"] {\n --tw-enter-translate-x: 0.5rem;\n}\n.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side="right"] {\n --tw-enter-translate-x: -0.5rem;\n}\n.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side="top"] {\n --tw-enter-translate-y: 0.5rem;\n}\n.data-\\[state\\=closed\\]\\:slide-out-to-left-1\\/2[data-state="closed"] {\n --tw-exit-translate-x: -50%;\n}\n.data-\\[state\\=closed\\]\\:slide-out-to-top-\\[48\\%\\][data-state="closed"] {\n --tw-exit-translate-y: -48%;\n}\n.data-\\[state\\=open\\]\\:slide-in-from-bottom-10[data-state="open"] {\n --tw-enter-translate-y: 2.5rem;\n}\n.data-\\[state\\=open\\]\\:slide-in-from-left-1\\/2[data-state="open"] {\n --tw-enter-translate-x: -50%;\n}\n.data-\\[state\\=open\\]\\:slide-in-from-top-\\[48\\%\\][data-state="open"] {\n --tw-enter-translate-y: -48%;\n}\n.data-\\[panel-group-direction\\=vertical\\]\\:after\\:left-0[data-panel-group-direction="vertical"]::after {\n content: var(--tw-content);\n left: 0px;\n}\n.data-\\[panel-group-direction\\=vertical\\]\\:after\\:h-1[data-panel-group-direction="vertical"]::after {\n content: var(--tw-content);\n height: 0.25rem;\n}\n.data-\\[panel-group-direction\\=vertical\\]\\:after\\:w-full[data-panel-group-direction="vertical"]::after {\n content: var(--tw-content);\n width: 100%;\n}\n.data-\\[panel-group-direction\\=vertical\\]\\:after\\:-translate-y-1\\/2[data-panel-group-direction="vertical"]::after {\n content: var(--tw-content);\n --tw-translate-y: -50%;\n transform: translate(var(--tw-translate-x), -50%) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.data-\\[panel-group-direction\\=vertical\\]\\:after\\:translate-x-0[data-panel-group-direction="vertical"]::after {\n content: var(--tw-content);\n --tw-translate-x: 0px;\n transform: translate(0px, var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.dark\\:border-gray-300:is(.dark *) {\n --tw-border-opacity: 1;\n border-color: rgba(205, 205, 205, 1);\n border-color: rgba(205, 205, 205, var(--tw-border-opacity, 1));\n}\n.dark\\:border-gray-600:is(.dark *) {\n --tw-border-opacity: 1;\n border-color: rgba(66, 66, 66, 1);\n border-color: rgba(66, 66, 66, var(--tw-border-opacity, 1));\n}\n.dark\\:border-gray-700:is(.dark *) {\n --tw-border-opacity: 1;\n border-color: rgba(47, 47, 47, 1);\n border-color: rgba(47, 47, 47, var(--tw-border-opacity, 1));\n}\n.dark\\:border-gray-800:is(.dark *) {\n --tw-border-opacity: 1;\n border-color: rgba(33, 33, 33, 1);\n border-color: rgba(33, 33, 33, var(--tw-border-opacity, 1));\n}\n.dark\\:border-white\\/10:is(.dark *) {\n border-color: rgba(255, 255, 255, 0.1);\n}\n.dark\\:bg-black\\/80:is(.dark *) {\n background-color: rgba(0, 0, 0, 0.8);\n}\n.dark\\:bg-gray-100:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgba(236, 236, 236, 1);\n background-color: rgba(236, 236, 236, var(--tw-bg-opacity, 1));\n}\n.dark\\:bg-gray-200:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgba(227, 227, 227, 1);\n background-color: rgba(227, 227, 227, var(--tw-bg-opacity, 1));\n}\n.dark\\:bg-gray-700:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgba(47, 47, 47, 1);\n background-color: rgba(47, 47, 47, var(--tw-bg-opacity, 1));\n}\n.dark\\:bg-gray-800:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgba(33, 33, 33, 1);\n background-color: rgba(33, 33, 33, var(--tw-bg-opacity, 1));\n}\n.dark\\:bg-gray-800\\/90:is(.dark *) {\n background-color: rgba(33, 33, 33, 0.9);\n}\n.dark\\:bg-gray-850:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgba(23, 23, 23, 1);\n background-color: rgba(23, 23, 23, var(--tw-bg-opacity, 1));\n}\n.dark\\:bg-gray-900:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgba(13, 13, 13, 1);\n background-color: rgba(13, 13, 13, var(--tw-bg-opacity, 1));\n}\n.dark\\:bg-white\\/5:is(.dark *) {\n background-color: rgba(255, 255, 255, 0.05);\n}\n.dark\\:fill-white:is(.dark *) {\n fill: #fff;\n}\n.dark\\:text-black:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgba(0, 0, 0, 1);\n color: rgba(0, 0, 0, var(--tw-text-opacity, 1));\n}\n.dark\\:text-gray-100:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgba(236, 236, 236, 1);\n color: rgba(236, 236, 236, var(--tw-text-opacity, 1));\n}\n.dark\\:text-gray-200:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgba(227, 227, 227, 1);\n color: rgba(227, 227, 227, var(--tw-text-opacity, 1));\n}\n.dark\\:text-gray-300:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgba(205, 205, 205, 1);\n color: rgba(205, 205, 205, var(--tw-text-opacity, 1));\n}\n.dark\\:text-gray-400:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgba(153, 150, 150, 1);\n color: rgba(153, 150, 150, var(--tw-text-opacity, 1));\n}\n.dark\\:text-gray-50:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgba(247, 247, 248, 1);\n color: rgba(247, 247, 248, var(--tw-text-opacity, 1));\n}\n.dark\\:text-gray-500:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgba(89, 89, 89, 1);\n color: rgba(89, 89, 89, var(--tw-text-opacity, 1));\n}\n.dark\\:text-gray-800:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgba(33, 33, 33, 1);\n color: rgba(33, 33, 33, var(--tw-text-opacity, 1));\n}\n.dark\\:text-gray-900:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgba(13, 13, 13, 1);\n color: rgba(13, 13, 13, var(--tw-text-opacity, 1));\n}\n.dark\\:text-white:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgba(255, 255, 255, 1);\n color: rgba(255, 255, 255, var(--tw-text-opacity, 1));\n}\n.dark\\:text-white\\/50:is(.dark *) {\n color: rgba(255, 255, 255, 0.5);\n}\n.dark\\:opacity-25:is(.dark *) {\n opacity: 0.25;\n}\n.dark\\:ring-white\\/20:is(.dark *) {\n --tw-ring-color: rgba(255, 255, 255, 0.2);\n}\n.dark\\:hover\\:bg-gray-100:hover:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgba(236, 236, 236, 1);\n background-color: rgba(236, 236, 236, var(--tw-bg-opacity, 1));\n}\n.dark\\:hover\\:bg-gray-200:hover:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgba(227, 227, 227, 1);\n background-color: rgba(227, 227, 227, var(--tw-bg-opacity, 1));\n}\n.dark\\:hover\\:bg-gray-600:hover:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgba(66, 66, 66, 1);\n background-color: rgba(66, 66, 66, var(--tw-bg-opacity, 1));\n}\n.dark\\:hover\\:bg-gray-700:hover:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgba(47, 47, 47, 1);\n background-color: rgba(47, 47, 47, var(--tw-bg-opacity, 1));\n}\n.dark\\:hover\\:bg-gray-800:hover:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgba(33, 33, 33, 1);\n background-color: rgba(33, 33, 33, var(--tw-bg-opacity, 1));\n}\n.dark\\:hover\\:bg-white\\/10:hover:is(.dark *) {\n background-color: rgba(255, 255, 255, 0.1);\n}\n.dark\\:focus\\:bg-gray-800:focus:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgba(33, 33, 33, 1);\n background-color: rgba(33, 33, 33, var(--tw-bg-opacity, 1));\n}\n.dark\\:focus\\:bg-gray-900:focus:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgba(13, 13, 13, 1);\n background-color: rgba(13, 13, 13, var(--tw-bg-opacity, 1));\n}\n.dark\\:focus\\:ring-gray-200\\/10:focus:is(.dark *) {\n --tw-ring-color: rgba(227, 227, 227, 0.1);\n}\n.dark\\:focus\\:ring-gray-400:focus:is(.dark *) {\n --tw-ring-opacity: 1;\n --tw-ring-color: rgba(153, 150, 150, var(--tw-ring-opacity, 1));\n}\n.dark\\:focus\\:ring-white:focus:is(.dark *) {\n --tw-ring-opacity: 1;\n --tw-ring-color: rgba(255, 255, 255, var(--tw-ring-opacity, 1));\n}\n.dark\\:focus\\:ring-offset-gray-700:focus:is(.dark *) {\n --tw-ring-offset-color: #2f2f2f;\n}\n.dark\\:focus\\:ring-offset-gray-900:focus:is(.dark *) {\n --tw-ring-offset-color: #0d0d0d;\n}\n.group:focus-within .dark\\:group-focus-within\\:text-gray-300:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgba(205, 205, 205, 1);\n color: rgba(205, 205, 205, var(--tw-text-opacity, 1));\n}\n.group:hover .dark\\:group-hover\\:text-gray-300:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgba(205, 205, 205, 1);\n color: rgba(205, 205, 205, var(--tw-text-opacity, 1));\n}\n.dark\\:data-\\[active-item\\]\\:bg-white\\/10[data-active-item]:is(.dark *) {\n background-color: rgba(255, 255, 255, 0.1);\n}\n.dark\\:data-\\[state\\=active\\]\\:bg-gray-700[data-state="active"]:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgba(47, 47, 47, 1);\n background-color: rgba(47, 47, 47, var(--tw-bg-opacity, 1));\n}\n.dark\\:data-\\[state\\=open\\]\\:bg-gray-800[data-state="open"]:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgba(33, 33, 33, 1);\n background-color: rgba(33, 33, 33, var(--tw-bg-opacity, 1));\n}\n.dark\\:data-\\[state\\=open\\]\\:bg-gray-900[data-state="open"]:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgba(13, 13, 13, 1);\n background-color: rgba(13, 13, 13, var(--tw-bg-opacity, 1));\n}\n.dark\\:data-\\[state\\=active\\]\\:text-gray-200[data-state="active"]:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgba(227, 227, 227, 1);\n color: rgba(227, 227, 227, var(--tw-text-opacity, 1));\n}\n@media not all and (min-width: 640px) {\n\n .max-sm\\:order-first {\n order: -9999;\n }\n\n .max-sm\\:w-full {\n width: 100%;\n }\n\n .max-sm\\:flex-col {\n flex-direction: column;\n }\n}\n@media (min-width: 640px) {\n\n .sm\\:order-none {\n order: 0;\n }\n\n .sm\\:mt-0 {\n margin-top: 0px;\n }\n\n .sm\\:size-4 {\n width: 1rem;\n height: 1rem;\n }\n\n .sm\\:flex-row {\n flex-direction: row;\n }\n\n .sm\\:items-center {\n align-items: center;\n }\n\n .sm\\:justify-end {\n justify-content: flex-end;\n }\n\n .sm\\:gap-2\\.5 {\n gap: 0.625rem;\n }\n\n .sm\\:gap-4 {\n gap: 1rem;\n }\n\n .sm\\:space-x-2 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-x-reverse: 0;\n margin-right: calc(0.5rem * 0);\n margin-right: calc(0.5rem * var(--tw-space-x-reverse));\n margin-left: calc(0.5rem * (1 - 0));\n margin-left: calc(0.5rem * (1 - var(--tw-space-x-reverse)));\n margin-left: calc(0.5rem * calc(1 - 0));\n margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));\n }\n\n .sm\\:rounded-lg {\n border-radius: 0.5rem;\n border-radius: var(--radius);\n }\n\n .sm\\:px-4 {\n padding-left: 1rem;\n padding-right: 1rem;\n }\n\n .sm\\:py-2 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n }\n\n .sm\\:pt-0 {\n padding-top: 0px;\n }\n\n .sm\\:text-left {\n text-align: left;\n }\n\n .sm\\:text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem;\n }\n\n .sm\\:zoom-in-90 {\n --tw-enter-scale: .9;\n }\n\n .sm\\:slide-in-from-bottom-0 {\n --tw-enter-translate-y: 0px;\n }\n}\n@media (min-width: 768px) {\n\n .md\\:m-0 {\n margin: 0px;\n }\n\n .md\\:block {\n display: block;\n }\n\n .md\\:inline {\n display: inline;\n }\n\n .md\\:h-4 {\n height: 1rem;\n }\n\n .md\\:h-5 {\n height: 1.25rem;\n }\n\n .md\\:w-4 {\n width: 1rem;\n }\n\n .md\\:w-5 {\n width: 1.25rem;\n }\n\n .md\\:w-\\[100\\%\\] {\n width: 100%;\n }\n\n .md\\:w-auto {\n width: auto;\n }\n\n .md\\:w-full {\n width: 100%;\n }\n\n .md\\:flex-col {\n flex-direction: column;\n }\n\n .md\\:gap-2 {\n gap: 0.5rem;\n }\n\n .md\\:p-3 {\n padding: 0.75rem;\n }\n\n .md\\:px-2\\.5 {\n padding-left: 0.625rem;\n padding-right: 0.625rem;\n }\n\n .md\\:py-2 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n }\n\n .md\\:text-justify {\n text-align: justify;\n }\n}\n.\\[\\&\\:has\\(\\[role\\=checkbox\\]\\)\\]\\:pr-0:has([role=checkbox]) {\n padding-right: 0px;\n}\n.\\[\\&\\>span\\]\\:line-clamp-1>span {\n overflow: hidden;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 1;\n}\n.\\[\\&\\>span\\]\\:flex>span {\n display: flex;\n}\n.\\[\\&\\>span\\]\\:w-auto>span {\n width: auto;\n}\n.\\[\\&\\>span\\]\\:w-full>span {\n width: 100%;\n}\n.\\[\\&\\>span\\]\\:items-center>span {\n align-items: center;\n}\n.\\[\\&\\>span\\]\\:gap-1>span {\n gap: 0.25rem;\n}\n.\\[\\&\\>span\\]\\:truncate>span {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.\\[\\&\\>svg\\]\\:hidden>svg {\n display: none;\n}\n.\\[\\&\\>svg\\]\\:size-3\\.5>svg {\n width: 0.875rem;\n height: 0.875rem;\n}\n.\\[\\&\\>tr\\]\\:last\\:border-b-0:last-child>tr {\n border-bottom-width: 0px;\n}\n.\\[\\&\\[data-panel-group-direction\\=vertical\\]\\>div\\]\\:rotate-90[data-panel-group-direction=vertical]>div {\n --tw-rotate: 90deg;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(90deg) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.\\[\\&\\[data-state\\=open\\]\\>svg\\]\\:rotate-180[data-state=open]>svg {\n --tw-rotate: 180deg;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(180deg) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.\\[\\&_svg\\]\\:h-4 svg {\n height: 1rem;\n}\n.\\[\\&_svg\\]\\:w-4 svg {\n width: 1rem;\n}\n.\\[\\&_svg\\]\\:shrink-0 svg {\n flex-shrink: 0;\n}\n.\\[\\&_svg\\]\\:text-foreground svg {\n color: hsl(0, 0%, 3.9%);\n color: hsl(var(--foreground));\n}\n.\\[\\&_tr\\:last-child\\]\\:border-0 tr:last-child {\n border-width: 0px;\n}\n.\\[\\&_tr\\]\\:border-b tr {\n border-bottom-width: 1px;\n}\n');const m=t.forwardRef(((e,n)=>{const{children:r,...o}=e,i=t.Children.toArray(r),a=i.find(v);if(a){const e=a.props.children,r=i.map((n=>n===a?t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null:n));return t.createElement(h,u({},o,{ref:n}),t.isValidElement(e)?t.cloneElement(e,void 0,r):null)}return t.createElement(h,u({},o,{ref:n}),r)}));m.displayName="Slot";const h=t.forwardRef(((e,n)=>{const{children:r,...o}=e;return t.isValidElement(r)?t.cloneElement(r,{...b(o,r.props),ref:n?f(n,r.ref):r.ref}):t.Children.count(r)>1?t.Children.only(null):null}));h.displayName="SlotClone";const g=({children:e})=>t.createElement(t.Fragment,null,e);function v(e){return t.isValidElement(e)&&e.type===g}function b(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function w(e){const n=e+"CollectionProvider",[r,o]=c(n),[i,a]=r(n,{collectionRef:{current:null},itemMap:new Map}),s=e+"CollectionSlot",l=t.forwardRef(((e,n)=>{const{scope:r,children:o}=e,i=p(n,a(s,r).collectionRef);return t.createElement(m,{ref:i},o)})),u=e+"CollectionItemSlot",d="data-radix-collection-item",f=t.forwardRef(((e,n)=>{const{scope:r,children:o,...i}=e,s=t.useRef(null),l=p(n,s),c=a(u,r);return t.useEffect((()=>(c.itemMap.set(s,{ref:s,...i}),()=>{c.itemMap.delete(s)}))),t.createElement(m,{[d]:"",ref:l},o)}));return[{Provider:e=>{const{scope:n,children:r}=e,o=t.useRef(null),a=t.useRef(new Map).current;return t.createElement(i,{scope:n,itemMap:a,collectionRef:o},r)},Slot:l,ItemSlot:f},function(n){const r=a(e+"CollectionConsumer",n),o=t.useCallback((()=>{const e=r.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${d}]`)),n=Array.from(r.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)));return n}),[r.collectionRef,r.itemMap]);return o},o]}function y(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function x(e){const n=t.useRef(e);return t.useEffect((()=>{n.current=e})),t.useMemo((()=>(...e)=>{var t;return null===(t=n.current)||void 0===t?void 0:t.call(n,...e)}),[])}function C({prop:e,defaultProp:n,onChange:r=(()=>{})}){const[o,i]=function({defaultProp:e,onChange:n}){const r=t.useState(e),[o]=r,i=t.useRef(o),a=x(n);return t.useEffect((()=>{i.current!==o&&(a(o),i.current=o)}),[o,i,a]),r}({defaultProp:n,onChange:r}),a=void 0!==e,s=a?e:o,l=x(r);return[s,t.useCallback((t=>{if(a){const n="function"==typeof t?t(e):t;n!==e&&l(n)}else i(t)}),[a,e,i,l])]}const S=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,n)=>{const r=t.forwardRef(((e,r)=>{const{asChild:o,...i}=e,a=o?m:n;return t.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),t.createElement(a,u({},i,{ref:r}))}));return r.displayName=`Primitive.${n}`,{...e,[n]:r}}),{});function k(e,t){e&&n.flushSync((()=>e.dispatchEvent(t)))}const E=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?t.useLayoutEffect:()=>{};const R=e=>{const{present:r,children:o}=e,i=function(e){const[r,o]=t.useState(),i=t.useRef({}),a=t.useRef(e),s=t.useRef("none"),l=e?"mounted":"unmounted",[u,c]=function(e,n){return t.useReducer(((e,t)=>{const r=n[e][t];return null!=r?r:e}),e)}(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return t.useEffect((()=>{const e=P(i.current);s.current="mounted"===u?e:"none"}),[u]),E((()=>{const t=i.current,n=a.current;if(n!==e){const r=s.current,o=P(t);if(e)c("MOUNT");else if("none"===o||"none"===(null==t?void 0:t.display))c("UNMOUNT");else{c(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}a.current=e}}),[e,c]),E((()=>{if(r){const e=e=>{const t=P(i.current).includes(e.animationName);e.target===r&&t&&n.flushSync((()=>c("ANIMATION_END")))},t=e=>{e.target===r&&(s.current=P(i.current))};return r.addEventListener("animationstart",t),r.addEventListener("animationcancel",e),r.addEventListener("animationend",e),()=>{r.removeEventListener("animationstart",t),r.removeEventListener("animationcancel",e),r.removeEventListener("animationend",e)}}c("ANIMATION_END")}),[r,c]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:t.useCallback((e=>{e&&(i.current=getComputedStyle(e)),o(e)}),[])}}(r),a="function"==typeof o?o({present:i.isPresent}):t.Children.only(o),s=p(i.ref,a.ref);return"function"==typeof o||i.isPresent?t.cloneElement(a,{ref:s}):null};function P(e){return(null==e?void 0:e.animationName)||"none"}R.displayName="Presence";const N=a["useId".toString()]||(()=>{});let j=0;function M(e){const[t,n]=a.useState(N());return E((()=>{n((e=>null!=e?e:String(j++)))}),[e]),t?`radix-${t}`:""}const A="Collapsible",[I,T]=c(A),[O,L]=I(A),D=t.forwardRef(((e,n)=>{const{__scopeCollapsible:r,open:o,defaultOpen:i,disabled:a,onOpenChange:s,...l}=e,[c=!1,d]=C({prop:o,defaultProp:i,onChange:s});return t.createElement(O,{scope:r,disabled:a,contentId:M(),open:c,onOpenToggle:t.useCallback((()=>d((e=>!e))),[d])},t.createElement(S.div,u({"data-state":H(c),"data-disabled":a?"":void 0},l,{ref:n})))})),F=t.forwardRef(((e,n)=>{const{__scopeCollapsible:r,...o}=e,i=L("CollapsibleTrigger",r);return t.createElement(S.button,u({type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":H(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled},o,{ref:n,onClick:y(e.onClick,i.onOpenToggle)}))})),_="CollapsibleContent",V=t.forwardRef(((e,n)=>{const{forceMount:r,...o}=e,i=L(_,e.__scopeCollapsible);return t.createElement(R,{present:r||i.open},(({present:e})=>t.createElement(z,u({},o,{ref:n,present:e}))))})),z=t.forwardRef(((e,n)=>{const{__scopeCollapsible:r,present:o,children:i,...a}=e,s=L(_,r),[l,c]=t.useState(o),d=t.useRef(null),f=p(n,d),m=t.useRef(0),h=m.current,g=t.useRef(0),v=g.current,b=s.open||l,w=t.useRef(b),y=t.useRef();return t.useEffect((()=>{const e=requestAnimationFrame((()=>w.current=!1));return()=>cancelAnimationFrame(e)}),[]),E((()=>{const e=d.current;if(e){y.current=y.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";const t=e.getBoundingClientRect();m.current=t.height,g.current=t.width,w.current||(e.style.transitionDuration=y.current.transitionDuration,e.style.animationName=y.current.animationName),c(o)}}),[s.open,o]),t.createElement(S.div,u({"data-state":H(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!b},a,{ref:f,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":v?`${v}px`:void 0,...e.style}}),b&&i)}));function H(e){return e?"open":"closed"}const B=D,$=F,W=V,U=t.createContext(void 0);function K(e){const n=t.useContext(U);return e||n||"ltr"}const G="Accordion",q=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[X,Y,Z]=w(G),[Q,J]=c(G,[Z,T]),ee=T(),te=t.forwardRef(((e,n)=>{const{type:r,...o}=e,i=o,a=o;return t.createElement(X.Provider,{scope:e.__scopeAccordion},"multiple"===r?t.createElement(se,u({},a,{ref:n})):t.createElement(ae,u({},i,{ref:n})))}));te.propTypes={type(e){const t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?new Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):"multiple"===e.type&&"string"==typeof t?new Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):"single"===e.type&&Array.isArray(t)?new Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};const[ne,re]=Q(G),[oe,ie]=Q(G,{collapsible:!1}),ae=t.forwardRef(((e,n)=>{const{value:r,defaultValue:o,onValueChange:i=(()=>{}),collapsible:a=!1,...s}=e,[l,c]=C({prop:r,defaultProp:o,onChange:i});return t.createElement(ne,{scope:e.__scopeAccordion,value:l?[l]:[],onItemOpen:c,onItemClose:t.useCallback((()=>a&&c("")),[a,c])},t.createElement(oe,{scope:e.__scopeAccordion,collapsible:a},t.createElement(ce,u({},s,{ref:n}))))})),se=t.forwardRef(((e,n)=>{const{value:r,defaultValue:o,onValueChange:i=(()=>{}),...a}=e,[s=[],l]=C({prop:r,defaultProp:o,onChange:i}),c=t.useCallback((e=>l(((t=[])=>[...t,e]))),[l]),d=t.useCallback((e=>l(((t=[])=>t.filter((t=>t!==e))))),[l]);return t.createElement(ne,{scope:e.__scopeAccordion,value:s,onItemOpen:c,onItemClose:d},t.createElement(oe,{scope:e.__scopeAccordion,collapsible:!0},t.createElement(ce,u({},a,{ref:n}))))})),[le,ue]=Q(G),ce=t.forwardRef(((e,n)=>{const{__scopeAccordion:r,disabled:o,dir:i,orientation:a="vertical",...s}=e,l=p(t.useRef(null),n),c=Y(r),d="ltr"===K(i),f=y(e.onKeyDown,(e=>{var t;if(!q.includes(e.key))return;const n=e.target,r=c().filter((e=>{var t;return!(null!==(t=e.ref.current)&&void 0!==t&&t.disabled)})),o=r.findIndex((e=>e.ref.current===n)),i=r.length;if(-1===o)return;e.preventDefault();let s=o;const l=i-1,u=()=>{s=o+1,s>l&&(s=0)},f=()=>{s=o-1,s<0&&(s=l)};switch(e.key){case"Home":s=0;break;case"End":s=l;break;case"ArrowRight":"horizontal"===a&&(d?u():f());break;case"ArrowDown":"vertical"===a&&u();break;case"ArrowLeft":"horizontal"===a&&(d?f():u());break;case"ArrowUp":"vertical"===a&&f()}null===(t=r[s%i].ref.current)||void 0===t||t.focus()}));return t.createElement(le,{scope:r,disabled:o,direction:i,orientation:a},t.createElement(X.Slot,{scope:r},t.createElement(S.div,u({},s,{"data-orientation":a,ref:l,onKeyDown:o?void 0:f}))))})),de="AccordionItem",[fe,pe]=Q(de),me=t.forwardRef(((e,n)=>{const{__scopeAccordion:r,value:o,...i}=e,a=ue(de,r),s=re(de,r),l=ee(r),c=M(),d=o&&s.value.includes(o)||!1,f=a.disabled||e.disabled;return t.createElement(fe,{scope:r,open:d,disabled:f,triggerId:c},t.createElement(B,u({"data-orientation":a.orientation,"data-state":we(d)},l,i,{ref:n,disabled:f,open:d,onOpenChange:e=>{e?s.onItemOpen(o):s.onItemClose(o)}})))})),he=t.forwardRef(((e,n)=>{const{__scopeAccordion:r,...o}=e,i=ue(G,r),a=pe("AccordionHeader",r);return t.createElement(S.h3,u({"data-orientation":i.orientation,"data-state":we(a.open),"data-disabled":a.disabled?"":void 0},o,{ref:n}))})),ge="AccordionTrigger",ve=t.forwardRef(((e,n)=>{const{__scopeAccordion:r,...o}=e,i=ue(G,r),a=pe(ge,r),s=ie(ge,r),l=ee(r);return t.createElement(X.ItemSlot,{scope:r},t.createElement($,u({"aria-disabled":a.open&&!s.collapsible||void 0,"data-orientation":i.orientation,id:a.triggerId},l,o,{ref:n})))})),be=t.forwardRef(((e,n)=>{const{__scopeAccordion:r,...o}=e,i=ue(G,r),a=pe("AccordionContent",r),s=ee(r);return t.createElement(W,u({role:"region","aria-labelledby":a.triggerId,"data-orientation":i.orientation},s,o,{ref:n,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}}))}));function we(e){return e?"open":"closed"}const ye=te,xe=me,Ce=he,Se=ve,ke=be;function Ee(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var Re=["color"],Pe=t.forwardRef((function(e,n){var r=e.color,o=void 0===r?"currentColor":r,i=Ee(e,Re);return t.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),t.createElement("path",{d:"M7.5 2C7.77614 2 8 2.22386 8 2.5L8 11.2929L11.1464 8.14645C11.3417 7.95118 11.6583 7.95118 11.8536 8.14645C12.0488 8.34171 12.0488 8.65829 11.8536 8.85355L7.85355 12.8536C7.75979 12.9473 7.63261 13 7.5 13C7.36739 13 7.24021 12.9473 7.14645 12.8536L3.14645 8.85355C2.95118 8.65829 2.95118 8.34171 3.14645 8.14645C3.34171 7.95118 3.65829 7.95118 3.85355 8.14645L7 11.2929L7 2.5C7 2.22386 7.22386 2 7.5 2Z",fill:o,fillRule:"evenodd",clipRule:"evenodd"}))})),Ne=["color"],je=t.forwardRef((function(e,n){var r=e.color,o=void 0===r?"currentColor":r,i=Ee(e,Ne);return t.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),t.createElement("path",{d:"M7.14645 2.14645C7.34171 1.95118 7.65829 1.95118 7.85355 2.14645L11.8536 6.14645C12.0488 6.34171 12.0488 6.65829 11.8536 6.85355C11.6583 7.04882 11.3417 7.04882 11.1464 6.85355L8 3.70711L8 12.5C8 12.7761 7.77614 13 7.5 13C7.22386 13 7 12.7761 7 12.5L7 3.70711L3.85355 6.85355C3.65829 7.04882 3.34171 7.04882 3.14645 6.85355C2.95118 6.65829 2.95118 6.34171 3.14645 6.14645L7.14645 2.14645Z",fill:o,fillRule:"evenodd",clipRule:"evenodd"}))})),Me=["color"],Ae=t.forwardRef((function(e,n){var r=e.color,o=void 0===r?"currentColor":r,i=Ee(e,Me);return t.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),t.createElement("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:o,fillRule:"evenodd",clipRule:"evenodd"}))})),Ie=["color"],Te=t.forwardRef((function(e,n){var r=e.color,o=void 0===r?"currentColor":r,i=Ee(e,Ie);return t.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),t.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:o,fillRule:"evenodd",clipRule:"evenodd"}))})),Oe=["color"],Le=t.forwardRef((function(e,n){var r=e.color,o=void 0===r?"currentColor":r,i=Ee(e,Oe);return t.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),t.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:o,fillRule:"evenodd",clipRule:"evenodd"}))})),De=["color"],Fe=t.forwardRef((function(e,n){var r=e.color,o=void 0===r?"currentColor":r,i=Ee(e,De);return t.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),t.createElement("path",{d:"M3.13523 8.84197C3.3241 9.04343 3.64052 9.05363 3.84197 8.86477L7.5 5.43536L11.158 8.86477C11.3595 9.05363 11.6759 9.04343 11.8648 8.84197C12.0536 8.64051 12.0434 8.32409 11.842 8.13523L7.84197 4.38523C7.64964 4.20492 7.35036 4.20492 7.15803 4.38523L3.15803 8.13523C2.95657 8.32409 2.94637 8.64051 3.13523 8.84197Z",fill:o,fillRule:"evenodd",clipRule:"evenodd"}))})),_e=["color"],Ve=t.forwardRef((function(e,n){var r=e.color,o=void 0===r?"currentColor":r,i=Ee(e,_e);return t.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),t.createElement("path",{d:"M13.3536 2.35355C13.5488 2.15829 13.5488 1.84171 13.3536 1.64645C13.1583 1.45118 12.8417 1.45118 12.6464 1.64645L10.6828 3.61012C9.70652 3.21671 8.63759 3 7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C0.902945 9.08812 2.02314 10.1861 3.36061 10.9323L1.64645 12.6464C1.45118 12.8417 1.45118 13.1583 1.64645 13.3536C1.84171 13.5488 2.15829 13.5488 2.35355 13.3536L4.31723 11.3899C5.29348 11.7833 6.36241 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C14.0971 5.9119 12.9769 4.81391 11.6394 4.06771L13.3536 2.35355ZM9.90428 4.38861C9.15332 4.1361 8.34759 4 7.5 4C4.80285 4 2.52952 5.37816 1.09622 7.50001C1.87284 8.6497 2.89609 9.58106 4.09974 10.1931L9.90428 4.38861ZM5.09572 10.6114L10.9003 4.80685C12.1039 5.41894 13.1272 6.35031 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11C6.65241 11 5.84668 10.8639 5.09572 10.6114Z",fill:o,fillRule:"evenodd",clipRule:"evenodd"}))}));function ze(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=ze(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function He(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=ze(e))&&(r&&(r+=" "),r+=t);return r}function Be(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=$e(e))&&(r&&(r+=" "),r+=t);return r}function $e(e){if("string"==typeof e)return e;for(var t,n="",r=0;r<e.length;r++)e[r]&&(t=$e(e[r]))&&(n&&(n+=" "),n+=t);return n}var We="-";function Ue(e){var t=function(e){var t=e.theme,n=e.prefix,r={nextPart:new Map,validators:[]},o=function(e,t){if(!t)return e;return e.map((function(e){return[e[0],e[1].map((function(e){return"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((function(e){var n=e[0],r=e[1];return[t+n,r]}))):e}))]}))}(Object.entries(e.classGroups),n);return o.forEach((function(e){var n=e[0];qe(e[1],r,n,t)})),r}(e),n=e.conflictingClassGroups,r=e.conflictingClassGroupModifiers,o=void 0===r?{}:r;return{getClassGroupId:function(e){var n=e.split(We);return""===n[0]&&1!==n.length&&n.shift(),Ke(n,t)||function(e){if(Ge.test(e)){var t=Ge.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}(e)},getConflictingClassGroupIds:function(e,t){var r=n[e]||[];return t&&o[e]?[].concat(r,o[e]):r}}}function Ke(e,t){if(0===e.length)return t.classGroupId;var n=e[0],r=t.nextPart.get(n),o=r?Ke(e.slice(1),r):void 0;if(o)return o;if(0!==t.validators.length){var i=e.join(We);return t.validators.find((function(e){return(0,e.validator)(i)}))?.classGroupId}}var Ge=/^\[(.+)\]$/;function qe(e,t,n,r){e.forEach((function(e){if("string"!=typeof e){if("function"==typeof e)return e.isThemeGetter?void qe(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((function(e){var o=e[0];qe(e[1],Xe(t,o),n,r)}))}else{(""===e?t:Xe(t,e)).classGroupId=n}}))}function Xe(e,t){var n=e;return t.split(We).forEach((function(e){n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n}function Ye(e){if(e<1)return{get:function(){},set:function(){}};var t=0,n=new Map,r=new Map;function o(o,i){n.set(o,i),++t>e&&(t=0,r=n,n=new Map)}return{get:function(e){var t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set:function(e,t){n.has(e)?n.set(e,t):o(e,t)}}}var Ze="!";function Qe(e){var t=e.separator||":",n=1===t.length,r=t[0],o=t.length;return function(e){for(var i,a=[],s=0,l=0,u=0;u<e.length;u++){var c=e[u];if(0===s){if(c===r&&(n||e.slice(u,u+o)===t)){a.push(e.slice(l,u)),l=u+o;continue}if("/"===c){i=u;continue}}"["===c?s++:"]"===c&&s--}var d=0===a.length?e:e.substring(l),f=d.startsWith(Ze);return{modifiers:a,hasImportantModifier:f,baseClassName:f?d.substring(1):d,maybePostfixModifierPosition:i&&i>l?i-l:void 0}}}var Je=/\s+/;function et(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o,i,a=function(e){var n=t[0],l=t.slice(1).reduce((function(e,t){return t(e)}),n());return r=function(e){return{cache:Ye(e.cacheSize),splitModifiers:Qe(e),...Ue(e)}}(l),o=r.cache.get,i=r.cache.set,a=s,s(e)};function s(e){var t=o(e);if(t)return t;var n=function(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,i=new Set;return e.trim().split(Je).map((function(e){var t=n(e),o=t.modifiers,i=t.hasImportantModifier,a=t.baseClassName,s=t.maybePostfixModifierPosition,l=r(s?a.substring(0,s):a),u=Boolean(s);if(!l){if(!s)return{isTailwindClass:!1,originalClassName:e};if(!(l=r(a)))return{isTailwindClass:!1,originalClassName:e};u=!1}var c=function(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach((function(e){"["===e[0]?(t.push.apply(t,n.sort().concat([e])),n=[]):n.push(e)})),t.push.apply(t,n.sort()),t}(o).join(":");return{isTailwindClass:!0,modifierId:i?c+Ze:c,classGroupId:l,originalClassName:e,hasPostfixModifier:u}})).reverse().filter((function(e){if(!e.isTailwindClass)return!0;var t=e.modifierId,n=e.classGroupId,r=e.hasPostfixModifier,a=t+n;return!i.has(a)&&(i.add(a),o(n,r).forEach((function(e){return i.add(t+e)})),!0)})).reverse().map((function(e){return e.originalClassName})).join(" ")}(e,r);return i(e,n),n}return function(){return a(Be.apply(null,arguments))}}function tt(e){var t=function(t){return t[e]||[]};return t.isThemeGetter=!0,t}var nt=/^\[(?:([a-z-]+):)?(.+)\]$/i,rt=/^\d+\/\d+$/,ot=new Set(["px","full","screen"]),it=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,at=/\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$/,st=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function lt(e){return mt(e)||ot.has(e)||rt.test(e)||ut(e)}function ut(e){return xt(e,"length",Ct)}function ct(e){return xt(e,"size",St)}function dt(e){return xt(e,"position",St)}function ft(e){return xt(e,"url",kt)}function pt(e){return xt(e,"number",mt)}function mt(e){return!Number.isNaN(Number(e))}function ht(e){return e.endsWith("%")&&mt(e.slice(0,-1))}function gt(e){return Et(e)||xt(e,"number",Et)}function vt(e){return nt.test(e)}function bt(){return!0}function wt(e){return it.test(e)}function yt(e){return xt(e,"",Rt)}function xt(e,t,n){var r=nt.exec(e);return!!r&&(r[1]?r[1]===t:n(r[2]))}function Ct(e){return at.test(e)}function St(){return!1}function kt(e){return e.startsWith("url(")}function Et(e){return Number.isInteger(Number(e))}function Rt(e){return st.test(e)}function Pt(){var e=tt("colors"),t=tt("spacing"),n=tt("blur"),r=tt("brightness"),o=tt("borderColor"),i=tt("borderRadius"),a=tt("borderSpacing"),s=tt("borderWidth"),l=tt("contrast"),u=tt("grayscale"),c=tt("hueRotate"),d=tt("invert"),f=tt("gap"),p=tt("gradientColorStops"),m=tt("gradientColorStopPositions"),h=tt("inset"),g=tt("margin"),v=tt("opacity"),b=tt("padding"),w=tt("saturate"),y=tt("scale"),x=tt("sepia"),C=tt("skew"),S=tt("space"),k=tt("translate"),E=function(){return["auto",vt,t]},R=function(){return[vt,t]},P=function(){return["",lt]},N=function(){return["auto",mt,vt]},j=function(){return["","0",vt]},M=function(){return[mt,pt]},A=function(){return[mt,vt]};return{cacheSize:500,theme:{colors:[bt],spacing:[lt],blur:["none","",wt,vt],brightness:M(),borderColor:[e],borderRadius:["none","","full",wt,vt],borderSpacing:R(),borderWidth:P(),contrast:M(),grayscale:j(),hueRotate:A(),invert:j(),gap:R(),gradientColorStops:[e],gradientColorStopPositions:[ht,ut],inset:E(),margin:E(),opacity:M(),padding:R(),saturate:M(),scale:M(),sepia:j(),skew:A(),space:R(),translate:R()},classGroups:{aspect:[{aspect:["auto","square","video",vt]}],container:["container"],columns:[{columns:[wt]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"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"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],[vt])}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",gt]}],basis:[{basis:E()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",vt]}],grow:[{grow:j()}],shrink:[{shrink:j()}],order:[{order:["first","last","none",gt]}],"grid-cols":[{"grid-cols":[bt]}],"col-start-end":[{col:["auto",{span:["full",gt]},vt]}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":[bt]}],"row-start-end":[{row:["auto",{span:[gt]},vt]}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",vt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",vt]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal"].concat(["start","end","center","between","around","evenly","stretch"])}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(["start","end","center","between","around","evenly","stretch"],["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(["start","end","center","between","around","evenly","stretch"],["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",vt,t]}],"min-w":[{"min-w":["min","max","fit",vt,lt]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[wt]},wt,vt]}],h:[{h:[vt,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",vt,lt]}],"max-h":[{"max-h":[vt,t,"min","max","fit"]}],"font-size":[{text:["base",wt,ut]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",pt]}],"font-family":[{font:[bt]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",vt]}],"line-clamp":[{"line-clamp":["none",mt,pt]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",vt,lt]}],"list-image":[{"list-image":["none",vt]}],"list-style-type":[{list:["none","disc","decimal",vt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(["solid","dashed","dotted","double","none"],["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",lt]}],"underline-offset":[{"underline-offset":["auto",vt,lt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",vt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",vt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],[dt])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ct]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ft]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[].concat(["solid","dashed","dotted","double","none"],["hidden"])}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:[""].concat(["solid","dashed","dotted","double","none"])}],"outline-offset":[{"outline-offset":[vt,lt]}],"outline-w":[{outline:[lt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:P()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[lt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",wt,yt]}],"shadow-color":[{shadow:[bt]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",wt,vt]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[w]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",vt]}],duration:[{duration:A()}],ease:[{ease:["linear","in","out","in-out",vt]}],delay:[{delay:A()}],animate:[{animate:["none","spin","ping","pulse","bounce",vt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[y]}],"scale-x":[{"scale-x":[y]}],"scale-y":[{"scale-y":[y]}],rotate:[{rotate:[gt,vt]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",vt]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],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",vt]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"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","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",vt]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[lt,pt]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},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"],"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"],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-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-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"],"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"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}var Nt=et(Pt);const jt=(...e)=>Nt(He(e)),Mt=e=>{const t=document.documentElement;switch(e.split("-")[1]){case"xs":t.style.setProperty("--markdown-font-size","0.75rem");break;case"sm":t.style.setProperty("--markdown-font-size","0.875rem");break;case"base":t.style.setProperty("--markdown-font-size","1rem");break;case"lg":t.style.setProperty("--markdown-font-size","1.125rem");break;case"xl":t.style.setProperty("--markdown-font-size","1.25rem")}},At=()=>{if("undefined"!=typeof window&&window.localStorage){const e=window.localStorage.getItem("color-theme");if("string"==typeof e)return e;if(window.matchMedia("(prefers-color-scheme: dark)").matches)return"dark"}return"light"},It=ye,Tt=a.forwardRef((({className:t="",...n},r)=>e.jsx(xe,{ref:r,className:jt("border-b",t),...n})));Tt.displayName="AccordionItem";const Ot=a.forwardRef((({className:t="",children:n,...r},o)=>e.jsx(Ce,{className:"flex",children:e.jsxs(Se,{ref:o,className:jt("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",t),...r,children:[n,e.jsx(Le,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})})));Ot.displayName=Se.displayName;const Lt=a.forwardRef((({className:t="",children:n,...r},o)=>e.jsx(ke,{ref:o,className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...r,children:e.jsx("div",{className:jt("pb-4 pt-0",t),children:n})})));Lt.displayName=ke.displayName;var Dt=Object.defineProperty,Ft=Object.defineProperties,_t=Object.getOwnPropertyDescriptors,Vt=Object.getOwnPropertySymbols,zt=Object.prototype.hasOwnProperty,Ht=Object.prototype.propertyIsEnumerable,Bt=(e,t,n)=>t in e?Dt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$t=(e,t)=>{for(var n in t||(t={}))zt.call(t,n)&&Bt(e,n,t[n]);if(Vt)for(var n of Vt(t))Ht.call(t,n)&&Bt(e,n,t[n]);return e},Wt=(e,t)=>Ft(e,_t(t)),Ut=(e,t)=>{var n={};for(var r in e)zt.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Vt)for(var r of Vt(e))t.indexOf(r)<0&&Ht.call(e,r)&&(n[r]=e[r]);return n},Kt=Object.defineProperty,Gt=Object.defineProperties,qt=Object.getOwnPropertyDescriptors,Xt=Object.getOwnPropertySymbols,Yt=Object.prototype.hasOwnProperty,Zt=Object.prototype.propertyIsEnumerable,Qt=(e,t,n)=>t in e?Kt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Jt=(e,t)=>{for(var n in t||(t={}))Yt.call(t,n)&&Qt(e,n,t[n]);if(Xt)for(var n of Xt(t))Zt.call(t,n)&&Qt(e,n,t[n]);return e},en=(e,t)=>Gt(e,qt(t)),tn=(e,t)=>{var n={};for(var r in e)Yt.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Xt)for(var r of Xt(e))t.indexOf(r)<0&&Zt.call(e,r)&&(n[r]=e[r]);return n};function nn(...e){}function rn(e,t){if(e===t)return!0;if(!e)return!1;if(!t)return!1;if("object"!=typeof e)return!1;if("object"!=typeof t)return!1;const n=Object.keys(e),r=Object.keys(t),{length:o}=n;if(r.length!==o)return!1;for(const r of n)if(e[r]!==t[r])return!1;return!0}function on(e,t){if(function(e){return"function"==typeof e}(e)){return e(function(e){return"function"==typeof e}(t)?t():t)}return e}function an(e,t){return"function"==typeof Object.hasOwn?Object.hasOwn(e,t):Object.prototype.hasOwnProperty.call(e,t)}function sn(...e){return(...t)=>{for(const n of e)"function"==typeof n&&n(...t)}}function ln(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function un(e){return e}function cn(e,t){if(!e){if("string"!=typeof t)throw new Error("Invariant failed");throw new Error(t)}}function dn(e,...t){const n="function"==typeof e?e(...t):e;return null!=n&&!n}function fn(e){return e.disabled||!0===e["aria-disabled"]||"true"===e["aria-disabled"]}function pn(e){const t={};for(const n in e)void 0!==e[n]&&(t[n]=e[n]);return t}function mn(...e){for(const t of e)if(void 0!==t)return t}function hn(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function gn(e){if(!function(e){return!!e&&!!t.isValidElement(e)&&("ref"in e.props||"ref"in e)}(e))return null;return $t({},e.props).ref||e.ref}var vn,bn="undefined"!=typeof window&&!!(null==(vn=window.document)?void 0:vn.createElement);function wn(e){return e?"self"in e?e.document:e.ownerDocument||document:document}function yn(e){return e?"self"in e?e.self:wn(e).defaultView||window:self}function xn(e,t=!1){const{activeElement:n}=wn(e);if(!(null==n?void 0:n.nodeName))return null;if(Sn(n)&&n.contentDocument)return xn(n.contentDocument.body,t);if(t){const e=n.getAttribute("aria-activedescendant");if(e){const t=wn(n).getElementById(e);if(t)return t}}return n}function Cn(e,t){return e===t||e.contains(t)}function Sn(e){return"IFRAME"===e.tagName}function kn(e){const t=e.tagName.toLowerCase();return"button"===t||!("input"!==t||!e.type)&&-1!==En.indexOf(e.type)}var En=["button","color","file","image","reset","submit"];function Rn(e){if("function"==typeof e.checkVisibility)return e.checkVisibility();const t=e;return t.offsetWidth>0||t.offsetHeight>0||e.getClientRects().length>0}function Pn(e){try{const t=e instanceof HTMLInputElement&&null!==e.selectionStart,n="TEXTAREA"===e.tagName;return t||n||!1}catch(e){return!1}}function Nn(e){return e.isContentEditable||Pn(e)}function jn(e){let t=0,n=0;if(Pn(e))t=e.selectionStart||0,n=e.selectionEnd||0;else if(e.isContentEditable){const r=wn(e).getSelection();if((null==r?void 0:r.rangeCount)&&r.anchorNode&&Cn(e,r.anchorNode)&&r.focusNode&&Cn(e,r.focusNode)){const o=r.getRangeAt(0),i=o.cloneRange();i.selectNodeContents(e),i.setEnd(o.startContainer,o.startOffset),t=i.toString().length,i.setEnd(o.endContainer,o.endOffset),n=i.toString().length}}return{start:t,end:n}}function Mn(e,t){const n=null==e?void 0:e.getAttribute("role");return n&&-1!==["dialog","menu","listbox","tree","grid"].indexOf(n)?n:t}function An(e,t){var n;const r=Mn(e);if(!r)return t;return null!=(n={menu:"menuitem",listbox:"option",tree:"treeitem"}[r])?n:t}function In(e){if(!e)return null;const t=e=>"auto"===e||"scroll"===e;if(e.clientHeight&&e.scrollHeight>e.clientHeight){const{overflowY:n}=getComputedStyle(e);if(t(n))return e}else if(e.clientWidth&&e.scrollWidth>e.clientWidth){const{overflowX:n}=getComputedStyle(e);if(t(n))return e}return In(e.parentElement)||document.scrollingElement||document.body}function Tn(e,...t){/text|search|password|tel|url/i.test(e.type)&&e.setSelectionRange(...t)}function On(e,t){const n=e.map(((e,t)=>[t,e]));let r=!1;return n.sort((([e,n],[o,i])=>{const a=t(n),s=t(i);return a===s?0:a&&s?function(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}(a,s)?(e>o&&(r=!0),-1):(e<o&&(r=!0),1):0})),r?n.map((([e,t])=>t)):e}function Ln(){return bn&&!!navigator.maxTouchPoints}function Dn(){return!!bn&&/mac|iphone|ipad|ipod/i.test(navigator.platform)}function Fn(){return bn&&Dn()&&/apple/i.test(navigator.vendor)}function _n(e){return Boolean(e.currentTarget&&!Cn(e.currentTarget,e.target))}function Vn(e){return e.target===e.currentTarget}function zn(e){const t=e.currentTarget;if(!t)return!1;const n=Dn();if(n&&!e.metaKey)return!1;if(!n&&!e.ctrlKey)return!1;const r=t.tagName.toLowerCase();return"a"===r||("button"===r&&"submit"===t.type||"input"===r&&"submit"===t.type)}function Hn(e){const t=e.currentTarget;if(!t)return!1;const n=t.tagName.toLowerCase();return!!e.altKey&&("a"===n||("button"===n&&"submit"===t.type||"input"===n&&"submit"===t.type))}function Bn(e,t){const n=new FocusEvent("blur",t),r=e.dispatchEvent(n),o=en(Jt({},t),{bubbles:!0});return e.dispatchEvent(new FocusEvent("focusout",o)),r}function $n(e,t){const n=new MouseEvent("click",t);return e.dispatchEvent(n)}function Wn(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Cn(n,r)}function Un(e,t,n,r){const o=(e=>{const t=requestAnimationFrame(e);return()=>cancelAnimationFrame(t)})((()=>{e.removeEventListener(t,i,!0),n()})),i=()=>{o(),n()};return e.addEventListener(t,i,{once:!0,capture:!0}),o}function Kn(e,t,n,r=window){const o=[];try{r.document.addEventListener(e,t,n);for(const i of Array.from(r.frames))o.push(Kn(e,t,n,i))}catch(e){}return()=>{try{r.document.removeEventListener(e,t,n)}catch(e){}for(const e of o)e()}}var Gn=$t({},a),qn=Gn.useId;Gn.useDeferredValue;var Xn=Gn.useInsertionEffect,Yn=bn?t.useLayoutEffect:t.useEffect;function Zn(e){const n=t.useRef(e);return Yn((()=>{n.current=e})),n}function Qn(e){const n=t.useRef((()=>{throw new Error("Cannot call an event handler while rendering.")}));return Xn?Xn((()=>{n.current=e})):n.current=e,t.useCallback(((...e)=>{var t;return null==(t=n.current)?void 0:t.call(n,...e)}),[])}function Jn(e){const[n,r]=t.useState(null);return Yn((()=>{if(null==n)return;if(!e)return;let t=null;return e((e=>(t=e,n))),()=>{e(t)}}),[n,e]),[n,r]}function er(...e){return t.useMemo((()=>{if(e.some(Boolean))return t=>{for(const n of e)hn(n,t)}}),e)}function tr(e){if(qn){const t=qn();return e||t}const[n,r]=t.useState(e);return Yn((()=>{if(e||n)return;const t=Math.random().toString(36).slice(2,8);r(`id-${t}`)}),[e,n]),e||n}function nr(e,n){const r=e=>{if("string"==typeof e)return e},[o,i]=t.useState((()=>r(n)));return Yn((()=>{const t=e&&"current"in e?e.current:e;i((null==t?void 0:t.tagName.toLowerCase())||r(n))}),[e,n]),o}function rr(e,n,r){const o=function(e){const[n]=t.useState(e);return n}(r),[i,a]=t.useState(o);return t.useEffect((()=>{const t=e&&"current"in e?e.current:e;if(!t)return;const r=()=>{const e=t.getAttribute(n);a(null==e?o:e)},i=new MutationObserver(r);return i.observe(t,{attributeFilter:[n]}),r(),()=>i.disconnect()}),[e,n,o]),i}function or(e,n){const r=t.useRef(!1);t.useEffect((()=>{if(r.current)return e();r.current=!0}),n),t.useEffect((()=>()=>{r.current=!1}),[])}function ir(){return t.useReducer((()=>[]),[])}function ar(e){return Qn("function"==typeof e?e:()=>e)}function sr(e,n,r=[]){const o=t.useCallback((t=>(e.wrapElement&&(t=e.wrapElement(t)),n(t))),[...r,e.wrapElement]);return Wt($t({},e),{wrapElement:o})}function lr(e=!1,n){const[r,o]=t.useState(null);return{portalRef:er(o,n),portalNode:r,domReady:!e||r}}function ur(e,n,r){const o=e.onLoadedMetadataCapture,i=t.useMemo((()=>Object.assign((()=>{}),Wt($t({},o),{[n]:r}))),[o,n,r]);return[null==o?void 0:o[n],{onLoadedMetadataCapture:i}]}function cr(){t.useEffect((()=>{Kn("mousemove",mr,!0),Kn("mousedown",hr,!0),Kn("mouseup",hr,!0),Kn("keydown",hr,!0),Kn("scroll",hr,!0)}),[]);return Qn((()=>dr))}var dr=!1,fr=0,pr=0;function mr(e){(function(e){const t=e.movementX||e.screenX-fr,n=e.movementY||e.screenY-pr;return fr=e.screenX,pr=e.screenY,t||n||!1})(e)&&(dr=!0)}function hr(){dr=!1}function gr(e){const t=a.forwardRef(((t,n)=>e(Wt($t({},t),{ref:n}))));return t.displayName=e.displayName||e.name,t}function vr(e,t){return a.memo(e,t)}function br(t,n){const r=n,{wrapElement:o,render:i}=r,s=Ut(r,["wrapElement","render"]),l=er(n.ref,gn(i));let u;if(a.isValidElement(i)){const e=Wt($t({},i.props),{ref:l});u=a.cloneElement(i,function(e,t){const n=$t({},e);for(const r in t){if(!an(t,r))continue;if("className"===r){const r="className";n[r]=e[r]?`${e[r]} ${t[r]}`:t[r];continue}if("style"===r){const r="style";n[r]=e[r]?$t($t({},e[r]),t[r]):t[r];continue}const o=t[r];if("function"==typeof o&&r.startsWith("on")){const t=e[r];if("function"==typeof t){n[r]=(...e)=>{o(...e),t(...e)};continue}}n[r]=o}return n}(s,e))}else u=i?i(s):e.jsx(t,$t({},s));return o?o(u):u}function wr(e){const t=(t={})=>e(t);return t.displayName=e.name,t}function yr(t=[],n=[]){const r=a.createContext(void 0),o=a.createContext(void 0),i=()=>a.useContext(r),s=n=>t.reduceRight(((t,r)=>e.jsx(r,Wt($t({},n),{children:t}))),e.jsx(r.Provider,$t({},n)));return{context:r,scopedContext:o,useContext:i,useScopedContext:(e=!1)=>{const t=a.useContext(o),n=i();return e?t:t||n},useProviderContext:()=>{const e=a.useContext(o),t=i();if(!e||e!==t)return t},ContextProvider:s,ScopedContextProvider:t=>e.jsx(s,Wt($t({},t),{children:n.reduceRight(((n,r)=>e.jsx(r,Wt($t({},t),{children:n}))),e.jsx(o.Provider,$t({},t)))}))}}var xr=yr();xr.useContext,xr.useScopedContext;var Cr=xr.useProviderContext,Sr=yr([xr.ContextProvider],[xr.ScopedContextProvider]),kr=Sr.useProviderContext,Er=Sr.ContextProvider,Rr=Sr.ScopedContextProvider,Pr=t.createContext(void 0),Nr=t.createContext(void 0),jr=yr([Er],[Rr]),Mr=jr.useContext;jr.useScopedContext;var Ar=jr.useProviderContext,Ir=jr.ContextProvider,Tr=jr.ScopedContextProvider,Or=yr(),Lr=Or.useContext;Or.useScopedContext,Or.useProviderContext;var Dr=yr([Or.ContextProvider],[Or.ScopedContextProvider]),Fr=Dr.useContext,_r=Dr.useProviderContext,Vr=Dr.ContextProvider,zr=Dr.ScopedContextProvider,Hr=t.createContext(void 0),Br=t.createContext(void 0),$r=yr([Ir,Vr],[Tr,zr]),Wr=$r.useContext,Ur=$r.useScopedContext,Kr=$r.useProviderContext,Gr=$r.ContextProvider,qr=$r.ScopedContextProvider,Xr=t.createContext(!1),Yr=t.createContext(null);function Zr(e,t){const n=e.__unstableInternals;return cn(n,"Invalid store"),n[t]}function Qr(e,...t){let n=e,r=n,o=Symbol(),i=nn;const a=new Set,s=new Set,l=new Set,u=new Set,c=new Set,d=new WeakMap,f=new WeakMap,p=(e,t,n=u)=>(n.add(t),f.set(t,e),()=>{var e;null==(e=d.get(t))||e(),d.delete(t),f.delete(t),n.delete(t)}),m=(e,i,a=!1)=>{var l;if(!an(n,e))return;const p=on(i,n[e]);if(p===n[e])return;if(!a)for(const n of t)null==(l=null==n?void 0:n.setState)||l.call(n,e,p);const m=n;n=en(Jt({},n),{[e]:p});const h=Symbol();o=h,s.add(e);const g=(t,r,o)=>{var i;const a=f.get(t);a&&!a.some((t=>o?o.has(t):t===e))||(null==(i=d.get(t))||i(),d.set(t,t(n,r)))};for(const e of u)g(e,m);queueMicrotask((()=>{if(o!==h)return;const e=n;for(const e of c)g(e,r,s);r=e,s.clear()}))},h={getState:()=>n,setState:m,__unstableInternals:{setup:e=>(l.add(e),()=>l.delete(e)),init:()=>{const e=a.size,r=Symbol();a.add(r);const o=()=>{a.delete(r),a.size||i()};if(e)return o;const s=(u=n,Object.keys(u)).map((e=>sn(...t.map((t=>{var n;const r=null==(n=null==t?void 0:t.getState)?void 0:n.call(t);if(r&&an(r,e))return no(t,[e],(t=>{m(e,t[e],!0)}))})))));var u;const c=[];for(const e of l)c.push(e());const d=t.map(eo);return i=sn(...s,...c,...d),o},subscribe:(e,t)=>p(e,t),sync:(e,t)=>(d.set(t,t(n,n)),p(e,t)),batch:(e,t)=>(d.set(t,t(n,r)),p(e,t,c)),pick:e=>Qr(function(e,t){const n={};for(const r of t)an(e,r)&&(n[r]=e[r]);return n}(n,e),h),omit:e=>Qr(function(e,t){const n=Jt({},e);for(const e of t)an(n,e)&&delete n[e];return n}(n,e),h)}};return h}function Jr(e,...t){if(e)return Zr(e,"setup")(...t)}function eo(e,...t){if(e)return Zr(e,"init")(...t)}function to(e,...t){if(e)return Zr(e,"subscribe")(...t)}function no(e,...t){if(e)return Zr(e,"sync")(...t)}function ro(e,...t){if(e)return Zr(e,"batch")(...t)}function oo(e,...t){if(e)return Zr(e,"omit")(...t)}function io(e,...t){if(e)return Zr(e,"pick")(...t)}function ao(...e){const t=e.reduce(((e,t)=>{var n;const r=null==(n=null==t?void 0:t.getState)?void 0:n.call(t);return r?Object.assign(e,r):e}),{}),n=Qr(t,...e);return Object.assign({},...e,n)}function so(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lo={exports:{}},uo={},co=t;var fo="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},po=co.useState,mo=co.useEffect,ho=co.useLayoutEffect,go=co.useDebugValue;function vo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!fo(e,n)}catch(e){return!0}}var bo="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=po({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return ho((function(){o.value=n,o.getSnapshot=t,vo(o)&&i({inst:o})}),[e,n,t]),mo((function(){return vo(o)&&i({inst:o}),e((function(){vo(o)&&i({inst:o})}))}),[e]),go(n),n};uo.useSyncExternalStore=void 0!==co.useSyncExternalStore?co.useSyncExternalStore:bo,lo.exports=uo;var wo=so(lo.exports),{useSyncExternalStore:yo}=wo,xo=()=>()=>{};function Co(e,t=un){const n=a.useCallback((t=>e?to(e,null,t):xo()),[e]),r=()=>{const n="string"==typeof t?t:null,r="function"==typeof t?t:null,o=null==e?void 0:e.getState();return r?r(o):o&&n&&an(o,n)?o[n]:void 0};return yo(n,r,r)}function So(e,t){const n=a.useRef({}),r=a.useCallback((t=>e?to(e,null,t):xo()),[e]),o=()=>{const r=null==e?void 0:e.getState();let o=!1;const i=n.current;for(const e in t){const n=t[e];if("function"==typeof n){const t=n(r);t!==i[e]&&(i[e]=t,o=!0)}if("string"==typeof n){if(!r)continue;if(!an(r,n))continue;const t=r[n];t!==i[e]&&(i[e]=t,o=!0)}}return o&&(n.current=$t({},i)),n.current};return yo(r,o,o)}function ko(e,t,n,r){const o=an(t,n)?t[n]:void 0,i=r?t[r]:void 0,a=Zn({value:o,setValue:i});Yn((()=>no(e,[n],((e,t)=>{const{value:r,setValue:o}=a.current;o&&e[n]!==t[n]&&e[n]!==r&&o(e[n])}))),[e,n]),Yn((()=>{if(void 0!==o)return e.setState(n,o),ro(e,[n],(()=>{void 0!==o&&e.setState(n,o)}))}))}function Eo(e,t){const[n,r]=a.useState((()=>e(t)));Yn((()=>eo(n)),[n]);const o=a.useCallback((e=>Co(n,e)),[n]);return[a.useMemo((()=>Wt($t({},n),{useState:o})),[n,o]),Qn((()=>{r((n=>e($t($t({},t),n.getState()))))}))]}function Ro(e={}){var t;e.store;const n=null==(t=e.store)?void 0:t.getState(),r=mn(e.items,null==n?void 0:n.items,e.defaultItems,[]),o=new Map(r.map((e=>[e.id,e]))),i={items:r,renderedItems:mn(null==n?void 0:n.renderedItems,[])},a=null==(s=e.store)?void 0:s.__unstablePrivateStore;var s;const l=Qr({items:r,renderedItems:i.renderedItems},a),u=Qr(i,e.store),c=e=>{const t=On(e,(e=>e.element));l.setState("renderedItems",t),u.setState("renderedItems",t)};Jr(u,(()=>eo(l))),Jr(l,(()=>ro(l,["items"],(e=>{u.setState("items",e.items)})))),Jr(l,(()=>ro(l,["renderedItems"],(e=>{let t=!0,n=requestAnimationFrame((()=>{const{renderedItems:t}=u.getState();e.renderedItems!==t&&c(e.renderedItems)}));if("function"!=typeof IntersectionObserver)return()=>cancelAnimationFrame(n);const r=function(e){var t;const n=e.find((e=>!!e.element)),r=[...e].reverse().find((e=>!!e.element));let o=null==(t=null==n?void 0:n.element)?void 0:t.parentElement;for(;o&&(null==r?void 0:r.element);){if(r&&o.contains(r.element))return o;o=o.parentElement}return wn(o).body}(e.renderedItems),o=new IntersectionObserver((()=>{t?t=!1:(cancelAnimationFrame(n),n=requestAnimationFrame((()=>c(e.renderedItems))))}),{root:r});for(const t of e.renderedItems)t.element&&o.observe(t.element);return()=>{cancelAnimationFrame(n),o.disconnect()}}))));const d=(e,t,n=!1)=>{let r;t((t=>{const n=t.findIndex((({id:t})=>t===e.id)),i=t.slice();if(-1!==n){r=t[n];const a=Jt(Jt({},r),e);i[n]=a,o.set(e.id,a)}else i.push(e),o.set(e.id,e);return i}));return()=>{t((t=>{if(!r)return n&&o.delete(e.id),t.filter((({id:t})=>t!==e.id));const i=t.findIndex((({id:t})=>t===e.id));if(-1===i)return t;const a=t.slice();return a[i]=r,o.set(e.id,r),a}))}},f=e=>d(e,(e=>l.setState("items",e)),!0);return en(Jt({},u),{registerItem:f,renderItem:e=>sn(f(e),d(e,(e=>l.setState("renderedItems",e)))),item:e=>{if(!e)return null;let t=o.get(e);if(!t){const{items:n}=l.getState();t=n.find((t=>t.id===e)),t&&o.set(e,t)}return t||null},__unstablePrivateStore:l})}function Po(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}function No(e){const t=[];for(const n of e)t.push(...n);return t}function jo(e){return e.slice().reverse()}var Mo={id:null};function Ao(e,t){return e.find((e=>t?!e.disabled&&e.id!==t:!e.disabled))}function Io(e,t){return e.filter((e=>e.rowId===t))}function To(e){const t=[];for(const n of e){const e=t.find((e=>{var t;return(null==(t=e[0])?void 0:t.rowId)===n.rowId}));e?e.push(n):t.push([n])}return t}function Oo(e){let t=0;for(const{length:n}of e)n>t&&(t=n);return t}function Lo(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=Ro(e),o=mn(e.activeId,null==n?void 0:n.activeId,e.defaultActiveId),i=Qr(en(Jt({},r.getState()),{id:mn(e.id,null==n?void 0:n.id,`id-${Math.random().toString(36).slice(2,8)}`),activeId:o,baseElement:mn(null==n?void 0:n.baseElement,null),includesBaseElement:mn(e.includesBaseElement,null==n?void 0:n.includesBaseElement,null===o),moves:mn(null==n?void 0:n.moves,0),orientation:mn(e.orientation,null==n?void 0:n.orientation,"both"),rtl:mn(e.rtl,null==n?void 0:n.rtl,!1),virtualFocus:mn(e.virtualFocus,null==n?void 0:n.virtualFocus,!1),focusLoop:mn(e.focusLoop,null==n?void 0:n.focusLoop,!1),focusWrap:mn(e.focusWrap,null==n?void 0:n.focusWrap,!1),focusShift:mn(e.focusShift,null==n?void 0:n.focusShift,!1)}),r,e.store);Jr(i,(()=>no(i,["renderedItems","activeId"],(e=>{i.setState("activeId",(t=>{var n;return void 0!==t?t:null==(n=Ao(e.renderedItems))?void 0:n.id}))}))));const a=(e="next",t={})=>{var n,r;const o=i.getState(),{skip:a=0,activeId:s=o.activeId,focusShift:l=o.focusShift,focusLoop:u=o.focusLoop,focusWrap:c=o.focusWrap,includesBaseElement:d=o.includesBaseElement,renderedItems:f=o.renderedItems,rtl:p=o.rtl}=t,m="up"===e||"down"===e,h="next"===e||"down"===e,g=h?p&&!m:!p||m,v=l&&!a;let b=m?No(function(e,t,n){const r=Oo(e);for(const o of e)for(let e=0;e<r;e+=1){const r=o[e];if(!r||n&&r.disabled){const r=0===e&&n?Ao(o):o[e-1];o[e]=r&&t!==r.id&&n?r:{id:"__EMPTY_ITEM__",disabled:!0,rowId:null==r?void 0:r.rowId}}}return e}(To(f),s,v)):f;if(b=g?jo(b):b,b=m?function(e){const t=To(e),n=Oo(t),r=[];for(let e=0;e<n;e+=1)for(const n of t){const t=n[e];t&&r.push(en(Jt({},t),{rowId:t.rowId?`${e}`:void 0}))}return r}(b):b,null==s)return null==(n=Ao(b))?void 0:n.id;const w=b.find((e=>e.id===s));if(!w)return null==(r=Ao(b))?void 0:r.id;const y=b.some((e=>e.rowId)),x=b.indexOf(w),C=b.slice(x+1),S=Io(C,w.rowId);if(a){const e=function(e,t){return e.filter((e=>t?!e.disabled&&e.id!==t:!e.disabled))}(S,s),t=e.slice(a)[0]||e[e.length-1];return null==t?void 0:t.id}const k=u&&(m?"horizontal"!==u:"vertical"!==u),E=y&&c&&(m?"horizontal"!==c:"vertical"!==c),R=h?(!y||m)&&k&&d:!!m&&d;if(k){const e=function(e,t,n=!1){const r=e.findIndex((e=>e.id===t));return[...e.slice(r+1),...n?[Mo]:[],...e.slice(0,r)]}(E&&!R?b:Io(b,w.rowId),s,R),t=Ao(e,s);return null==t?void 0:t.id}if(E){const e=Ao(R?S:C,s);return R?(null==e?void 0:e.id)||null:null==e?void 0:e.id}const P=Ao(S,s);return!P&&R?null:null==P?void 0:P.id};return en(Jt(Jt({},r),i),{setBaseElement:e=>i.setState("baseElement",e),setActiveId:e=>i.setState("activeId",e),move:e=>{void 0!==e&&(i.setState("activeId",e),i.setState("moves",(e=>e+1)))},first:()=>{var e;return null==(e=Ao(i.getState().renderedItems))?void 0:e.id},last:()=>{var e;return null==(e=Ao(jo(i.getState().renderedItems)))?void 0:e.id},next:e=>(void 0!==e&&"number"==typeof e&&(e={skip:e}),a("next",e)),previous:e=>(void 0!==e&&"number"==typeof e&&(e={skip:e}),a("previous",e)),down:e=>(void 0!==e&&"number"==typeof e&&(e={skip:e}),a("down",e)),up:e=>(void 0!==e&&"number"==typeof e&&(e={skip:e}),a("up",e))})}function Do(e){const t=tr(e.id);return $t({id:t},e)}function Fo(e,t,n){return e=function(e,t,n){return or(t,[n.store]),ko(e,n,"items","setItems"),e}(e,t,n),ko(e,n,"activeId","setActiveId"),ko(e,n,"includesBaseElement"),ko(e,n,"virtualFocus"),ko(e,n,"orientation"),ko(e,n,"rtl"),ko(e,n,"focusLoop"),ko(e,n,"focusWrap"),ko(e,n,"focusShift"),e}var _o=t.createContext(void 0),Vo=yr([Ir,Vr],[Tr,zr]),zo=Vo.useContext,Ho=Vo.useScopedContext,Bo=Vo.useProviderContext,$o=Vo.ContextProvider,Wo=Vo.ScopedContextProvider,Uo=t.createContext(void 0),Ko=t.createContext(!1);function Go(e={}){var t=e,{composite:n,combobox:r}=t,o=tn(t,["composite","combobox"]);const i=["items","renderedItems","moves","orientation","virtualFocus","includesBaseElement","baseElement","focusLoop","focusShift","focusWrap"],a=ao(o.store,oo(n,i),oo(r,i)),s=null==a?void 0:a.getState(),l=Lo(en(Jt({},o),{store:a,includesBaseElement:mn(o.includesBaseElement,null==s?void 0:s.includesBaseElement,!1),orientation:mn(o.orientation,null==s?void 0:s.orientation,"horizontal"),focusLoop:mn(o.focusLoop,null==s?void 0:s.focusLoop,!0)})),u=Ro(),c=Qr(en(Jt({},l.getState()),{selectedId:mn(o.selectedId,null==s?void 0:s.selectedId,o.defaultSelectedId),selectOnMove:mn(o.selectOnMove,null==s?void 0:s.selectOnMove,!0)}),l,a);Jr(c,(()=>no(c,["moves"],(()=>{const{activeId:e,selectOnMove:t}=c.getState();if(!t)return;if(!e)return;const n=l.item(e);n&&(n.dimmed||n.disabled||c.setState("selectedId",n.id))}))));let d=!0;Jr(c,(()=>ro(c,["selectedId"],((e,t)=>{d?n&&e.selectedId===t.selectedId||c.setState("activeId",e.selectedId):d=!0})))),Jr(c,(()=>no(c,["selectedId","renderedItems"],(e=>{if(void 0!==e.selectedId)return;const{activeId:t,renderedItems:n}=c.getState(),r=l.item(t);if(!r||r.disabled||r.dimmed){const e=n.find((e=>!e.disabled&&!e.dimmed));c.setState("selectedId",null==e?void 0:e.id)}else c.setState("selectedId",r.id)})))),Jr(c,(()=>no(c,["renderedItems"],(e=>{const t=e.renderedItems;if(t.length)return no(u,["renderedItems"],(e=>{const n=e.renderedItems;n.some((e=>!e.tabId))&&n.forEach(((e,n)=>{if(e.tabId)return;const r=t[n];r&&u.renderItem(en(Jt({},e),{tabId:r.id}))}))}))}))));let f=null;return Jr(c,(()=>{const e=()=>{f=c.getState().selectedId},t=()=>{d=!1,c.setState("selectedId",f)};return n&&"setSelectElement"in n?sn(no(n,["value"],e),no(n,["mounted"],t)):r?sn(no(r,["selectedValue"],e),no(r,["mounted"],t)):void 0})),en(Jt(Jt({},l),c),{panels:u,setSelectedId:e=>c.setState("selectedId",e),select:e=>{c.setState("selectedId",e),l.move(e)}})}function qo(e={}){const n=zo(),r=Wr()||n;e=Wt($t({},e),{composite:void 0!==e.composite?e.composite:r,combobox:void 0!==e.combobox?e.combobox:n});const[o,i]=Eo(Go,e);return function(e,n,r){or(n,[r.composite,r.combobox]),ko(e=Fo(e,n,r),r,"selectedId","setSelectedId"),ko(e,r,"selectOnMove");const[o,i]=Eo((()=>e.panels),{});return or(i,[e,i]),Object.assign(t.useMemo((()=>Wt($t({},e),{panels:o})),[e,o]),{composite:r.composite,combobox:r.combobox})}(o,i,e)}var Xo=yr([Vr],[zr]),Yo=Xo.useContext,Zo=Xo.useScopedContext,Qo=Xo.useProviderContext,Jo=Xo.ContextProvider,ei=Xo.ScopedContextProvider,ti={id:null};function ni(e,t){return t&&e.item(t)||null}var ri=Symbol("FOCUS_SILENTLY");function oi(e,t,n){if(!t)return!1;if(t===n)return!1;return!!e.item(t.id)}var ii=wr((function(e){var n=e,{store:r,shouldRegisterItem:o=!0,getItem:i=un,element:a}=n,s=Ut(n,["store","shouldRegisterItem","getItem","element"]);const l=Lr();r=r||l;const u=tr(s.id),c=t.useRef(a);return t.useEffect((()=>{const e=c.current;if(!u)return;if(!e)return;if(!o)return;const t=i({id:u,element:e});return null==r?void 0:r.renderItem(t)}),[u,o,i,r]),pn(s=Wt($t({},s),{ref:er(c,s.ref)}))}));gr((function(e){return br("div",ii(e))}));var ai=t.createContext(!0),si="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], summary, iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";function li(e){return!!e.matches(si)&&(!!Rn(e)&&!e.closest("[inert]"))}function ui(e){if(!li(e))return!1;if(function(e){return Number.parseInt(e.getAttribute("tabindex")||"0",10)<0}(e))return!1;if(!("form"in e))return!0;if(!e.form)return!0;if(e.checked)return!0;if("radio"!==e.type)return!0;const t=e.form.elements.namedItem(e.name);if(!t)return!0;if(!("length"in t))return!0;const n=xn(e);return!n||(n===e||(!("form"in n)||(n.form!==e.form||n.name!==e.name)))}function ci(e,t){const n=Array.from(e.querySelectorAll(si));t&&n.unshift(e);const r=n.filter(li);return r.forEach(((e,t)=>{if(Sn(e)&&e.contentDocument){const n=e.contentDocument.body;r.splice(t,1,...ci(n))}})),r}function di(e,t,n){const r=Array.from(e.querySelectorAll(si)),o=r.filter(ui);return t&&ui(e)&&o.unshift(e),o.forEach(((e,t)=>{if(Sn(e)&&e.contentDocument){const r=di(e.contentDocument.body,!1,n);o.splice(t,1,...r)}})),!o.length&&n?r:o}function fi(e,t){return function(e,t,n,r){const o=xn(e),i=ci(e,t),a=i.indexOf(o),s=i.slice(a+1);return s.find(ui)||(n?i.find(ui):null)||(r?s[0]:null)||null}(document.body,!1,e,t)}function pi(e,t){return function(e,t,n,r){const o=xn(e),i=ci(e,t).reverse(),a=i.indexOf(o);return i.slice(a+1).find(ui)||null}(document.body,!1)}function mi(e){const t=xn(e);if(!t)return!1;if(t===e)return!0;const n=t.getAttribute("aria-activedescendant");return!!n&&n===e.id}function hi(e){const t=xn(e);if(!t)return!1;if(Cn(e,t))return!0;const n=t.getAttribute("aria-activedescendant");return!!n&&("id"in e&&(n===e.id||!!e.querySelector(`#${CSS.escape(n)}`)))}function gi(e){!hi(e)&&li(e)&&e.focus()}function vi(e){var t;const n=null!=(t=e.getAttribute("tabindex"))?t:"";e.setAttribute("data-tabindex",n),e.setAttribute("tabindex","-1")}var bi=Fn(),wi=["text","search","url","tel","email","password","number","date","month","week","time","datetime","datetime-local"],yi=Symbol("safariFocusAncestor");function xi(e,t){e&&(e[yi]=t)}function Ci(e){return!("input"!==e.tagName.toLowerCase()||!e.type)&&("radio"===e.type||"checkbox"===e.type)}function Si(e,t,n,r,o){return e?t?n&&!r?-1:void 0:n?o:o||0:o}function ki(e,t){return Qn((n=>{null==e||e(n),n.defaultPrevented||t&&(n.stopPropagation(),n.preventDefault())}))}var Ei=!0;function Ri(e){const t=e.target;t&&"hasAttribute"in t&&(t.hasAttribute("data-focus-visible")||(Ei=!1))}function Pi(e){e.metaKey||e.ctrlKey||e.altKey||(Ei=!0)}var Ni=wr((function(e){var n=e,{focusable:r=!0,accessibleWhenDisabled:o,autoFocus:i,onFocusVisible:a}=n,s=Ut(n,["focusable","accessibleWhenDisabled","autoFocus","onFocusVisible"]);const l=t.useRef(null);t.useEffect((()=>{r&&(Kn("mousedown",Ri,!0),Kn("keydown",Pi,!0))}),[r]),bi&&t.useEffect((()=>{if(!r)return;const e=l.current;if(!e)return;if(!Ci(e))return;const t=function(e){return"labels"in e?e.labels:null}(e);if(!t)return;const n=()=>queueMicrotask((()=>e.focus()));for(const e of t)e.addEventListener("mouseup",n);return()=>{for(const e of t)e.removeEventListener("mouseup",n)}}),[r]);const u=r&&fn(s),c=!!u&&!o,[d,f]=t.useState(!1);t.useEffect((()=>{r&&c&&d&&f(!1)}),[r,c,d]),t.useEffect((()=>{if(!r)return;if(!d)return;const e=l.current;if(!e)return;if("undefined"==typeof IntersectionObserver)return;const t=new IntersectionObserver((()=>{li(e)||f(!1)}));return t.observe(e),()=>t.disconnect()}),[r,d]);const p=ki(s.onKeyPressCapture,u),m=ki(s.onMouseDownCapture,u),h=ki(s.onClickCapture,u),g=s.onMouseDown,v=Qn((e=>{if(null==g||g(e),e.defaultPrevented)return;if(!r)return;const t=e.currentTarget;if(!bi)return;if(_n(e))return;if(!kn(t)&&!Ci(t))return;let n=!1;const o=()=>{n=!0};t.addEventListener("focusin",o,{capture:!0,once:!0});const i=function(e){for(;e&&!li(e);)e=e.closest(si);return e||null}(t.parentElement);xi(i,!0),Un(t,"mouseup",(()=>{t.removeEventListener("focusin",o,!0),xi(i,!1),n||gi(t)}))})),b=(e,t)=>{if(t&&(e.currentTarget=t),!r)return;const n=e.currentTarget;n&&mi(n)&&(null==a||a(e),e.defaultPrevented||(n.dataset.focusVisible="true",f(!0)))},w=s.onKeyDownCapture,y=Qn((e=>{if(null==w||w(e),e.defaultPrevented)return;if(!r)return;if(d)return;if(e.metaKey)return;if(e.altKey)return;if(e.ctrlKey)return;if(!Vn(e))return;const t=e.currentTarget;Un(t,"focusout",(()=>b(e,t)))})),x=s.onFocusCapture,C=Qn((e=>{if(null==x||x(e),e.defaultPrevented)return;if(!r)return;if(!Vn(e))return void f(!1);const t=e.currentTarget,n=()=>b(e,t);Ei||function(e){const{tagName:t,readOnly:n,type:r}=e;return"TEXTAREA"===t&&!n||("SELECT"===t&&!n||("INPUT"!==t||n?!!e.isContentEditable||!("combobox"!==e.getAttribute("role")||!e.dataset.name):wi.includes(r)))}(e.target)?Un(e.target,"focusout",n):f(!1)})),S=s.onBlur,k=Qn((e=>{null==S||S(e),r&&Wn(e)&&(e.currentTarget.removeAttribute("data-focus-visible"),f(!1))})),E=t.useContext(ai),R=Qn((e=>{r&&i&&e&&E&&queueMicrotask((()=>{mi(e)||li(e)&&e.focus()}))})),P=nr(l),N=r&&function(e){return!e||"button"===e||"summary"===e||"input"===e||"select"===e||"textarea"===e||"a"===e}(P),j=r&&function(e){return!e||"button"===e||"input"===e||"select"===e||"textarea"===e}(P),M=s.style,A=t.useMemo((()=>c?$t({pointerEvents:"none"},M):M),[c,M]);return pn(s=Wt($t({"data-focus-visible":r&&d||void 0,"data-autofocus":i||void 0,"aria-disabled":u||void 0},s),{ref:er(l,R,s.ref),style:A,tabIndex:Si(r,c,N,j,s.tabIndex),disabled:!(!j||!c)||void 0,contentEditable:u?void 0:s.contentEditable,onKeyPressCapture:p,onClickCapture:h,onMouseDownCapture:m,onMouseDown:v,onKeyDownCapture:y,onFocusCapture:C,onBlur:k}))}));gr((function(e){return br("div",Ni(e))}));function ji(e){if(!e.isTrusted)return!1;const t=e.currentTarget;return"Enter"===e.key?kn(t)||"SUMMARY"===t.tagName||"A"===t.tagName:" "===e.key&&(kn(t)||"SUMMARY"===t.tagName||"INPUT"===t.tagName||"SELECT"===t.tagName)}var Mi=Symbol("command"),Ai=wr((function(e){var n=e,{clickOnEnter:r=!0,clickOnSpace:o=!0}=n,i=Ut(n,["clickOnEnter","clickOnSpace"]);const a=t.useRef(null),[s,l]=t.useState(!1);t.useEffect((()=>{a.current&&l(kn(a.current))}),[]);const[u,c]=t.useState(!1),d=t.useRef(!1),f=fn(i),[p,m]=ur(i,Mi,!0),h=i.onKeyDown,g=Qn((e=>{null==h||h(e);const t=e.currentTarget;if(e.defaultPrevented)return;if(p)return;if(f)return;if(!Vn(e))return;if(Pn(t))return;if(t.isContentEditable)return;const n=r&&"Enter"===e.key,i=o&&" "===e.key,a="Enter"===e.key&&!r,s=" "===e.key&&!o;if(a||s)e.preventDefault();else if(n||i){const r=ji(e);if(n){if(!r){e.preventDefault();const n=e,{view:r}=n,o=Ut(n,["view"]),i=()=>$n(t,o);bn&&/firefox\//i.test(navigator.userAgent)?Un(t,"keyup",i):queueMicrotask(i)}}else i&&(d.current=!0,r||(e.preventDefault(),c(!0)))}})),v=i.onKeyUp,b=Qn((e=>{if(null==v||v(e),e.defaultPrevented)return;if(p)return;if(f)return;if(e.metaKey)return;const t=o&&" "===e.key;if(d.current&&t&&(d.current=!1,!ji(e))){e.preventDefault(),c(!1);const t=e.currentTarget,n=e,{view:r}=n,o=Ut(n,["view"]);queueMicrotask((()=>$n(t,o)))}}));return i=Wt($t($t({"data-active":u||void 0,type:s?"button":void 0},m),i),{ref:er(a,i.ref),onKeyDown:g,onKeyUp:b}),i=Ni(i)}));gr((function(e){return br("button",Ai(e))}));function Ii(e,t=!1){const{top:n}=e.getBoundingClientRect();return t?n+e.clientHeight:n}function Ti(e,t,n,r=!1){var o;if(!t)return;if(!n)return;const{renderedItems:i}=t.getState(),a=In(e);if(!a)return;const s=function(e,t=!1){const n=e.clientHeight,{top:r}=e.getBoundingClientRect(),o=1.5*Math.max(.875*n,n-40),i=t?n-o+r:o+r;return"HTML"===e.tagName?i+e.scrollTop:i}(a,r);let l,u;for(let e=0;e<i.length;e+=1){const i=l;if(l=n(e),!l)break;if(l===i)continue;const a=null==(o=ni(t,l))?void 0:o.element;if(!a)continue;const c=Ii(a,r)-s,d=Math.abs(c);if(r&&c<=0||!r&&c>=0){void 0!==u&&u<d&&(l=i);break}u=d}return l}var Oi=wr((function(n){var r=n,{store:o,rowId:i,preventScrollOnKeyDown:a=!1,moveOnKeyPress:s=!0,tabbable:l=!1,getItem:u,"aria-setsize":c,"aria-posinset":d}=r,f=Ut(r,["store","rowId","preventScrollOnKeyDown","moveOnKeyPress","tabbable","getItem","aria-setsize","aria-posinset"]);const p=Fr();o=o||p;const m=tr(f.id),h=t.useRef(null),g=t.useContext(Br),v=fn(f)&&!f.accessibleWhenDisabled,{rowId:b,baseElement:w,isActiveItem:y,ariaSetSize:x,ariaPosInSet:C,isTabbable:S}=So(o,{rowId:e=>i||(e&&(null==g?void 0:g.baseElement)&&g.baseElement===e.baseElement?g.id:void 0),baseElement:e=>(null==e?void 0:e.baseElement)||void 0,isActiveItem:e=>!!e&&e.activeId===m,ariaSetSize:e=>null!=c?c:e&&(null==g?void 0:g.ariaSetSize)&&g.baseElement===e.baseElement?g.ariaSetSize:void 0,ariaPosInSet(e){if(null!=d)return d;if(!e)return;if(!(null==g?void 0:g.ariaPosInSet))return;if(g.baseElement!==e.baseElement)return;const t=e.renderedItems.filter((e=>e.rowId===b));return g.ariaPosInSet+t.findIndex((e=>e.id===m))},isTabbable(e){if(!(null==e?void 0:e.renderedItems.length))return!0;if(e.virtualFocus)return!1;if(l)return!0;if(null===e.activeId)return!1;const t=null==o?void 0:o.item(e.activeId);return!!(null==t?void 0:t.disabled)||(!(null==t?void 0:t.element)||e.activeId===m)}}),k=t.useCallback((e=>{var t;const n=Wt($t({},e),{id:m||e.id,rowId:b,disabled:!!v,children:null==(t=e.element)?void 0:t.textContent});return u?u(n):n}),[m,b,v,u]),E=f.onFocus,R=t.useRef(!1),P=Qn((e=>{if(null==E||E(e),e.defaultPrevented)return;if(_n(e))return;if(!m)return;if(!o)return;if(function(e,t){return!Vn(e)&&oi(t,e.target)}(e,o))return;const{virtualFocus:t,baseElement:n}=o.getState();if(o.setActiveId(m),Nn(e.currentTarget)&&function(e,t=!1){if(Pn(e))e.setSelectionRange(t?e.value.length:0,e.value.length);else if(e.isContentEditable){const n=wn(e).getSelection();null==n||n.selectAllChildren(e),t&&(null==n||n.collapseToEnd())}}(e.currentTarget),!t)return;if(!Vn(e))return;if(Nn(r=e.currentTarget)||"INPUT"===r.tagName&&!kn(r))return;var r;if(!(null==n?void 0:n.isConnected))return;Fn()&&e.currentTarget.hasAttribute("data-autofocus")&&e.currentTarget.scrollIntoView({block:"nearest",inline:"nearest"}),R.current=!0;e.relatedTarget===n||oi(o,e.relatedTarget)?function(e){e[ri]=!0,e.focus({preventScroll:!0})}(n):n.focus()})),N=f.onBlurCapture,j=Qn((e=>{if(null==N||N(e),e.defaultPrevented)return;const t=null==o?void 0:o.getState();(null==t?void 0:t.virtualFocus)&&R.current&&(R.current=!1,e.preventDefault(),e.stopPropagation())})),M=f.onKeyDown,A=ar(a),I=ar(s),T=Qn((e=>{if(null==M||M(e),e.defaultPrevented)return;if(!Vn(e))return;if(!o)return;const{currentTarget:t}=e,n=o.getState(),r=o.item(m),i=!!(null==r?void 0:r.rowId),a="horizontal"!==n.orientation,s="vertical"!==n.orientation,l=()=>!!i||(!!s||(!n.baseElement||!Pn(n.baseElement))),u={ArrowUp:(i||a)&&o.up,ArrowRight:(i||s)&&o.next,ArrowDown:(i||a)&&o.down,ArrowLeft:(i||s)&&o.previous,Home:()=>{if(l())return!i||e.ctrlKey?null==o?void 0:o.first():null==o?void 0:o.previous(-1)},End:()=>{if(l())return!i||e.ctrlKey?null==o?void 0:o.last():null==o?void 0:o.next(-1)},PageUp:()=>Ti(t,o,null==o?void 0:o.up,!0),PageDown:()=>Ti(t,o,null==o?void 0:o.down)}[e.key];if(u){if(Nn(t)){const n=jn(t),r=s&&"ArrowLeft"===e.key,o=s&&"ArrowRight"===e.key,i=a&&"ArrowUp"===e.key,l=a&&"ArrowDown"===e.key;if(o||l){const{length:e}=function(e){if(Pn(e))return e.value;if(e.isContentEditable){const t=wn(e).createRange();return t.selectNodeContents(e),t.toString()}return""}(t);if(n.end!==e)return}else if((r||i)&&0!==n.start)return}const n=u();if(A(e)||void 0!==n){if(!I(e))return;e.preventDefault(),o.move(n)}}})),O=t.useMemo((()=>({id:m,baseElement:w})),[m,w]);return f=sr(f,(t=>e.jsx(Hr.Provider,{value:O,children:t})),[O]),f=Wt($t({id:m,"data-active-item":y||void 0},f),{ref:er(h,f.ref),tabIndex:S?f.tabIndex:-1,onFocus:P,onBlurCapture:j,onKeyDown:T}),f=Ai(f),f=ii(Wt($t({store:o},f),{getItem:k,shouldRegisterItem:!!m&&f.shouldRegisterItem})),pn(Wt($t({},f),{"aria-setsize":x,"aria-posinset":C}))})),Li=vr(gr((function(e){return br("button",Oi(e))}))),Di=wr((function(n){var r,o=n,{store:i,getItem:a}=o,s=Ut(o,["store","getItem"]);const l=Zo();cn(i=i||l,!1);const u=tr(),c=s.id||u,d=fn(s),f=t.useCallback((e=>{const t=Wt($t({},e),{dimmed:d});return a?a(t):t}),[d,a]),p=s.onClick,m=Qn((e=>{null==p||p(e),e.defaultPrevented||null==i||i.setSelectedId(c)})),h=i.panels.useState((e=>{var t;return null==(t=e.items.find((e=>e.tabId===c)))?void 0:t.id})),g=!!u&&s.shouldRegisterItem,v=i.useState((e=>!!c&&e.activeId===c)),b=i.useState((e=>!!c&&e.selectedId===c)),w=i.useState((e=>!!i.item(e.activeId))),y=v||b&&!w,x=b||null==(r=s.accessibleWhenDisabled)||r;if(Co(i.combobox||i.composite,"virtualFocus")&&(s=Wt($t({},s),{tabIndex:-1})),s=Wt($t({id:c,role:"tab","aria-selected":b,"aria-controls":h||void 0},s),{onClick:m}),i.composite){const t={id:c,accessibleWhenDisabled:x,store:i.composite,shouldRegisterItem:y&&g,rowId:s.rowId,render:s.render};s=Wt($t({},s),{render:e.jsx(Li,Wt($t({},t),{render:i.combobox&&i.composite!==i.combobox?e.jsx(Li,Wt($t({},t),{store:i.combobox})):t.render}))})}return s=Oi(Wt($t({store:i},s),{accessibleWhenDisabled:x,getItem:f,shouldRegisterItem:g}))})),Fi=vr(gr((function(e){return br("button",Di(e))})));function _i(t={}){const n=qo(t);return e.jsx(Jo,{value:n,children:t.children})}function Vi(e,t,n){return Qn((r=>{var o;if(null==t||t(r),r.defaultPrevented)return;if(r.isPropagationStopped())return;if(!Vn(r))return;if(function(e){return"Shift"===e.key||"Control"===e.key||"Alt"===e.key||"Meta"===e.key}(r))return;if(function(e){const t=e.target;return!(t&&!Pn(t)||1!==e.key.length||e.ctrlKey||e.metaKey)}(r))return;const i=e.getState(),a=null==(o=ni(e,i.activeId))?void 0:o.element;if(!a)return;const s=r,{view:l}=s,u=Ut(s,["view"]);a!==(null==n?void 0:n.current)&&a.focus(),function(e,t,n){const r=new KeyboardEvent(t,n);return e.dispatchEvent(r)}(a,r.type,u)||r.preventDefault(),r.currentTarget.contains(a)&&r.stopPropagation()}))}var zi=wr((function(n){var r=n,{store:o,composite:i=!0,focusOnMove:a=i,moveOnKeyPress:s=!0}=r,l=Ut(r,["store","composite","focusOnMove","moveOnKeyPress"]);const u=_r();cn(o=o||u,!1);const c=t.useRef(null),d=t.useRef(null),f=function(e){const[n,r]=t.useState(!1),o=t.useCallback((()=>r(!0)),[]),i=e.useState((t=>ni(e,t.activeId)));return t.useEffect((()=>{const e=null==i?void 0:i.element;n&&e&&(r(!1),e.focus({preventScroll:!0}))}),[i,n]),o}(o),p=o.useState("moves"),[,m]=Jn(i?o.setBaseElement:null);t.useEffect((()=>{var e;if(!o)return;if(!p)return;if(!i)return;if(!a)return;const{activeId:t}=o.getState(),n=null==(e=ni(o,t))?void 0:e.element;n&&function(e,t){"scrollIntoView"in e?(e.focus({preventScroll:!0}),e.scrollIntoView(Jt({block:"nearest",inline:"nearest"},t))):e.focus()}(n)}),[o,p,i,a]),Yn((()=>{if(!o)return;if(!p)return;if(!i)return;const{baseElement:e,activeId:t}=o.getState();if(!(null===t))return;if(!e)return;const n=d.current;d.current=null,n&&Bn(n,{relatedTarget:e}),mi(e)||e.focus()}),[o,p,i]);const h=o.useState("activeId"),g=o.useState("virtualFocus");Yn((()=>{var e;if(!o)return;if(!i)return;if(!g)return;const t=d.current;if(d.current=null,!t)return;const n=(null==(e=ni(o,h))?void 0:e.element)||xn(t);n!==t&&Bn(t,{relatedTarget:n})}),[o,h,g,i]);const v=Vi(o,l.onKeyDownCapture,d),b=Vi(o,l.onKeyUpCapture,d),w=l.onFocusCapture,y=Qn((e=>{if(null==w||w(e),e.defaultPrevented)return;if(!o)return;const{virtualFocus:t}=o.getState();if(!t)return;const n=e.relatedTarget,r=function(e){const t=e[ri];return delete e[ri],t}(e.currentTarget);Vn(e)&&r&&(e.stopPropagation(),d.current=n)})),x=l.onFocus,C=Qn((e=>{if(null==x||x(e),e.defaultPrevented)return;if(!i)return;if(!o)return;const{relatedTarget:t}=e,{virtualFocus:n}=o.getState();n?Vn(e)&&!oi(o,t)&&queueMicrotask(f):Vn(e)&&o.setActiveId(null)})),S=l.onBlurCapture,k=Qn((e=>{var t;if(null==S||S(e),e.defaultPrevented)return;if(!o)return;const{virtualFocus:n,activeId:r}=o.getState();if(!n)return;const i=null==(t=ni(o,r))?void 0:t.element,a=e.relatedTarget,s=oi(o,a),l=d.current;if(d.current=null,Vn(e)&&s)a===i?l&&l!==a&&Bn(l,e):i?Bn(i,e):l&&Bn(l,e),e.stopPropagation();else{!oi(o,e.target)&&i&&Bn(i,e)}})),E=l.onKeyDown,R=ar(s),P=Qn((e=>{var t;if(null==E||E(e),e.nativeEvent.isComposing)return;if(e.defaultPrevented)return;if(!o)return;if(!Vn(e))return;const{orientation:n,renderedItems:r,activeId:i}=o.getState(),a=ni(o,i);if(null==(t=null==a?void 0:a.element)?void 0:t.isConnected)return;const s="horizontal"!==n,l="vertical"!==n,u=r.some((e=>!!e.rowId));if(("ArrowLeft"===e.key||"ArrowRight"===e.key||"Home"===e.key||"End"===e.key)&&Pn(e.currentTarget))return;const c={ArrowUp:(u||s)&&(()=>{if(u){const e=function(e){return function(e,t){return e.find((e=>!e.disabled))}(No(jo(function(e){const t=[];for(const n of e){const e=t.find((e=>{var t;return(null==(t=e[0])?void 0:t.rowId)===n.rowId}));e?e.push(n):t.push([n])}return t}(e))))}(r);return null==e?void 0:e.id}return null==o?void 0:o.last()}),ArrowRight:(u||l)&&o.first,ArrowDown:(u||s)&&o.first,ArrowLeft:(u||l)&&o.last,Home:o.first,End:o.last,PageUp:o.first,PageDown:o.last},d=c[e.key];if(d){const t=d();if(void 0!==t){if(!R(e))return;e.preventDefault(),o.move(t)}}}));l=sr(l,(t=>e.jsx(Vr,{value:o,children:t})),[o]);const N=o.useState((e=>{var t;if(o&&i&&e.virtualFocus)return null==(t=ni(o,e.activeId))?void 0:t.id}));l=Wt($t({"aria-activedescendant":N},l),{ref:er(c,m,l.ref),onKeyDownCapture:v,onKeyUpCapture:b,onFocusCapture:y,onFocus:C,onBlurCapture:k,onKeyDown:P});const j=o.useState((e=>i&&(e.virtualFocus||null===e.activeId)));return l=Ni($t({focusable:j},l))}));gr((function(e){return br("div",zi(e))}));var Hi=wr((function(t){var n=t,{store:r}=n,o=Ut(n,["store"]);const i=Qo();cn(r=r||i,!1);const a=r.useState((e=>"both"===e.orientation?void 0:e.orientation));return o=sr(o,(t=>e.jsx(ei,{value:r,children:t})),[r]),r.composite&&(o=$t({focusable:!1},o)),o=$t({role:"tablist","aria-orientation":a},o),o=zi($t({store:r},o))})),Bi=gr((function(e){return br("div",Hi(e))}));function $i(e,t){const n=setTimeout(t,e);return()=>clearTimeout(n)}function Wi(...e){return e.join(", ").split(", ").reduce(((e,t)=>{const n=t.endsWith("ms")?1:1e3,r=Number.parseFloat(t||"0s")*n;return r>e?r:e}),0)}function Ui(e,t,n){return!(n||!1===t||e&&!t)}var Ki=wr((function(r){var o=r,{store:i,alwaysVisible:a}=o,s=Ut(o,["store","alwaysVisible"]);const l=Cr();cn(i=i||l,!1);const u=t.useRef(null),c=tr(s.id),[d,f]=t.useState(null),p=i.useState("open"),m=i.useState("mounted"),h=i.useState("animated"),g=i.useState("contentElement"),v=Co(i.disclosure,"contentElement");Yn((()=>{u.current&&(null==i||i.setContentElement(u.current))}),[i]),Yn((()=>{let e;return null==i||i.setState("animated",(t=>(e=t,!0))),()=>{void 0!==e&&(null==i||i.setState("animated",e))}}),[i]),Yn((()=>{if(h){if(null==g?void 0:g.isConnected)return function(e){let t=requestAnimationFrame((()=>{t=requestAnimationFrame(e)}));return()=>cancelAnimationFrame(t)}((()=>{f(p?"enter":m?"leave":null)}));f(null)}}),[h,g,p,m]),Yn((()=>{if(!i)return;if(!h)return;if(!d)return;if(!g)return;const e=()=>null==i?void 0:i.setState("animating",!1),t=()=>n.flushSync(e);if("leave"===d&&p)return;if("enter"===d&&!p)return;if("number"==typeof h){return $i(h,t)}const{transitionDuration:r,animationDuration:o,transitionDelay:a,animationDelay:s}=getComputedStyle(g),{transitionDuration:l="0",animationDuration:u="0",transitionDelay:c="0",animationDelay:f="0"}=v?getComputedStyle(v):{},m=Wi(a,s,c,f)+Wi(r,o,l,u);if(!m)return"enter"===d&&i.setState("animated",!1),void e();return $i(Math.max(m-1e3/60,0),t)}),[i,h,g,v,p,d]),s=sr(s,(t=>e.jsx(Rr,{value:i,children:t})),[i]);const b=Ui(m,s.hidden,a),w=s.style,y=t.useMemo((()=>b?Wt($t({},w),{display:"none"}):w),[b,w]);return pn(s=Wt($t({id:c,"data-open":p||void 0,"data-enter":"enter"===d||void 0,"data-leave":"leave"===d||void 0,hidden:b},s),{ref:er(c?i.setContentElement:null,u,s.ref),style:y}))})),Gi=gr((function(e){return br("div",Ki(e))}));function qi(e={}){const t=ao(e.store,oo(e.disclosure,["contentElement","disclosureElement"])),n=null==t?void 0:t.getState(),r=mn(e.open,null==n?void 0:n.open,e.defaultOpen,!1),o=mn(e.animated,null==n?void 0:n.animated,!1),i=Qr({open:r,animated:o,animating:!!o&&r,mounted:r,contentElement:mn(null==n?void 0:n.contentElement,null),disclosureElement:mn(null==n?void 0:n.disclosureElement,null)},t);return Jr(i,(()=>no(i,["animated","animating"],(e=>{e.animated||i.setState("animating",!1)})))),Jr(i,(()=>to(i,["open"],(()=>{i.getState().animated&&i.setState("animating",!0)})))),Jr(i,(()=>no(i,["open","animating"],(e=>{i.setState("mounted",e.open||e.animating)})))),en(Jt({},i),{disclosure:e.disclosure,setOpen:e=>i.setState("open",e),show:()=>i.setState("open",!0),hide:()=>i.setState("open",!1),toggle:()=>i.setState("open",(e=>!e)),stopAnimation:()=>i.setState("animating",!1),setContentElement:e=>i.setState("contentElement",e),setDisclosureElement:e=>i.setState("disclosureElement",e)})}function Xi(e,t,n){return or(t,[n.store,n.disclosure]),ko(e,n,"open","setOpen"),ko(e,n,"mounted","setMounted"),ko(e,n,"animated"),Object.assign(e,{disclosure:n.disclosure})}function Yi(e={}){const[t,n]=Eo(qi,e);return Xi(t,n,e)}gr((function(t){var n=t,{unmountOnHide:r}=n,o=Ut(n,["unmountOnHide"]);const i=Cr();return!1===Co(o.store||i,(e=>!r||(null==e?void 0:e.mounted)))?null:e.jsx(Gi,$t({},o))}));var Zi=wr((function(n){var r=n,{store:o,unmountOnHide:i,tabId:a,getItem:s,scrollRestoration:l,scrollElement:u}=r,c=Ut(r,["store","unmountOnHide","tabId","getItem","scrollRestoration","scrollElement"]);const d=Qo();cn(o=o||d,!1);const f=t.useRef(null),p=tr(c.id),m=Co(o.panels,(()=>{var e;return a||(null==(e=null==o?void 0:o.panels.item(p))?void 0:e.tabId)})),h=Yi({open:Co(o,(e=>!!m&&e.selectedId===m))}),g=Co(h,"mounted"),v=t.useRef(new Map),b=Qn((()=>{const e=f.current;return e?u?"function"==typeof u?u(e):"current"in u?u.current:u:e:null}));t.useEffect((()=>{var e,t;if(!l)return;if(!g)return;const n=b();if(!n)return;if("reset"===l)return void n.scroll(0,0);if(!m)return;const r=v.current.get(m);n.scroll(null!=(e=null==r?void 0:r.x)?e:0,null!=(t=null==r?void 0:r.y)?t:0);const o=()=>{v.current.set(m,{x:n.scrollLeft,y:n.scrollTop})};return n.addEventListener("scroll",o),()=>{n.removeEventListener("scroll",o)}}),[l,g,m,b,o]);const[w,y]=t.useState(!1);t.useEffect((()=>{const e=f.current;if(!e)return;const t=di(e);y(!!t.length)}),[]);const x=t.useCallback((e=>{const t=Wt($t({},e),{id:p||e.id,tabId:a});return s?s(t):t}),[p,a,s]),C=c.onKeyDown,S=Qn((e=>{if(null==C||C(e),e.defaultPrevented)return;if(!(null==o?void 0:o.composite))return;const t={ArrowLeft:o.previous,ArrowRight:o.next,Home:o.first,End:o.last}[e.key];if(!t)return;const{selectedId:n}=o.getState(),r=t({activeId:n});r&&(e.preventDefault(),o.move(r))}));return c=sr(c,(t=>e.jsx(ei,{value:o,children:t})),[o]),c=Wt($t({id:p,role:"tabpanel","aria-labelledby":m||void 0},c),{children:i&&!g?null:c.children,ref:er(f,c.ref),onKeyDown:S}),c=Ni($t({focusable:!o.composite&&!w},c)),c=Ki($t({store:h},c)),c=ii(Wt($t({store:o.panels},c),{getItem:x}))})),Qi=gr((function(e){return br("div",Zi(e))})),Ji=wr((function(e){var t=e,{orientation:n="horizontal"}=t,r=Ut(t,["orientation"]);return r=$t({role:"separator","aria-orientation":n},r)}));gr((function(e){return br("hr",Ji(e))}));var ea=wr((function(e){var t=e,{store:n}=t,r=Ut(t,["store"]);const o=Fr();cn(n=n||o,!1);const i=n.useState((e=>"horizontal"===e.orientation?"vertical":"horizontal"));return r=Ji(Wt($t({},r),{orientation:i}))}));function ta(e={}){return qi(e)}function na(e,t,n){return Xi(e,t,n)}function ra(e={}){var t=e,{popover:n}=t,r=tn(t,["popover"]);const o=ao(r.store,oo(n,["arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),i=null==o?void 0:o.getState(),a=ta(en(Jt({},r),{store:o})),s=mn(r.placement,null==i?void 0:i.placement,"bottom"),l=Qr(en(Jt({},a.getState()),{placement:s,currentPlacement:s,anchorElement:mn(null==i?void 0:i.anchorElement,null),popoverElement:mn(null==i?void 0:i.popoverElement,null),arrowElement:mn(null==i?void 0:i.arrowElement,null),rendered:Symbol("rendered")}),a,o);return en(Jt(Jt({},a),l),{setAnchorElement:e=>l.setState("anchorElement",e),setPopoverElement:e=>l.setState("popoverElement",e),setArrowElement:e=>l.setState("arrowElement",e),render:()=>l.setState("rendered",Symbol("rendered"))})}function oa(e,t,n){return or(t,[n.popover]),ko(e,n,"placement"),na(e,t,n)}function ia(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=ra(en(Jt({},e),{placement:mn(e.placement,null==n?void 0:n.placement,"bottom")})),o=mn(e.timeout,null==n?void 0:n.timeout,500),i=Qr(en(Jt({},r.getState()),{timeout:o,showTimeout:mn(e.showTimeout,null==n?void 0:n.showTimeout),hideTimeout:mn(e.hideTimeout,null==n?void 0:n.hideTimeout),autoFocusOnShow:mn(null==n?void 0:n.autoFocusOnShow,!1)}),r,e.store);return en(Jt(Jt({},r),i),{setAutoFocusOnShow:e=>i.setState("autoFocusOnShow",e)})}function aa(e,t,n){return ko(e,n,"timeout"),ko(e,n,"showTimeout"),ko(e,n,"hideTimeout"),oa(e,t,n)}function sa(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=ia(en(Jt({},e),{placement:mn(e.placement,null==n?void 0:n.placement,"top"),hideTimeout:mn(e.hideTimeout,null==n?void 0:n.hideTimeout,0)})),o=Qr(en(Jt({},r.getState()),{type:mn(e.type,null==n?void 0:n.type,"description"),skipTimeout:mn(e.skipTimeout,null==n?void 0:n.skipTimeout,300)}),r,e.store);return Jt(Jt({},r),o)}function la(e={}){const[t,n]=Eo(sa,e);return function(e,t,n){return ko(e,n,"type"),ko(e,n,"skipTimeout"),aa(e,t,n)}(t,n,e)}gr((function(e){return br("hr",ea(e))}));var ua=yr([Ir],[Tr]);ua.useContext,ua.useScopedContext;var ca=ua.useProviderContext,da=ua.ContextProvider,fa=ua.ScopedContextProvider,pa=yr([da],[fa]),ma=pa.useContext,ha=pa.useProviderContext,ga=pa.ContextProvider,va=pa.ScopedContextProvider;function ba(e){return[e.clientX,e.clientY]}function wa(e,t){const[n,r]=e;let o=!1;for(let e=t.length,i=0,a=e-1;i<e;a=i++){const[s,l]=t[i],[u,c]=t[a],[,d]=t[0===a?e-1:a-1]||[0,0],f=(l-c)*(n-s)-(s-u)*(r-l);if(c<l){if(r>=c&&r<l){if(0===f)return!0;f>0&&(r===c?r>d&&(o=!o):o=!o)}}else if(l<c){if(r>l&&r<=c){if(0===f)return!0;f<0&&(r===c?r<d&&(o=!o):o=!o)}}else if(r===l&&(n>=u&&n<=s||n>=s&&n<=u))return!0}return o}function ya(e,t){const n=e.getBoundingClientRect(),{top:r,right:o,bottom:i,left:a}=n,[s,l]=function(e,t){const{top:n,right:r,bottom:o,left:i}=t,[a,s]=e;return[a<i?"left":a>r?"right":null,s<n?"top":s>o?"bottom":null]}(t,n),u=[t];return s?("top"!==l&&u.push(["left"===s?a:o,r]),u.push(["left"===s?o:a,r]),u.push(["left"===s?o:a,i]),"bottom"!==l&&u.push(["left"===s?a:o,i])):"top"===l?(u.push([a,r]),u.push([a,i]),u.push([o,i]),u.push([o,r])):(u.push([a,i]),u.push([a,r]),u.push([o,r]),u.push([o,i])),u}var xa=t.createContext(null),Ca=wr((function(e){return e=Wt($t({},e),{style:$t({border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},e.style)})}));gr((function(e){return br("span",Ca(e))}));var Sa=wr((function(e){return e=Wt($t({"data-focus-trap":"",tabIndex:0,"aria-hidden":!0},e),{style:$t({position:"fixed",top:0,left:0},e.style)}),e=Ca(e)})),ka=gr((function(e){return br("span",Sa(e))}));function Ea(e){queueMicrotask((()=>{null==e||e.focus()}))}var Ra=wr((function(r){var o=r,{preserveTabOrder:i,preserveTabOrderAnchor:a,portalElement:s,portalRef:l,portal:u=!0}=o,c=Ut(o,["preserveTabOrder","preserveTabOrderAnchor","portalElement","portalRef","portal"]);const d=t.useRef(null),f=er(d,c.ref),p=t.useContext(xa),[m,h]=t.useState(null),[g,v]=t.useState(null),b=t.useRef(null),w=t.useRef(null),y=t.useRef(null),x=t.useRef(null);return Yn((()=>{const e=d.current;if(!e||!u)return void h(null);const t=function(e,t){return t?"function"==typeof t?t(e):t:wn(e).createElement("div")}(e,s);if(!t)return void h(null);const n=t.isConnected;if(!n){const n=p||function(e){return wn(e).body}(e);n.appendChild(t)}return t.id||(t.id=e.id?`portal/${e.id}`:function(e="id"){return`${e?`${e}-`:""}${Math.random().toString(36).slice(2,8)}`}()),h(t),hn(l,t),n?void 0:()=>{t.remove(),hn(l,null)}}),[u,s,p,l]),Yn((()=>{if(!u)return;if(!i)return;if(!a)return;const e=wn(a).createElement("span");return e.style.position="fixed",a.insertAdjacentElement("afterend",e),v(e),()=>{e.remove(),v(null)}}),[u,i,a]),t.useEffect((()=>{if(!m)return;if(!i)return;let e=0;const t=t=>{if(!Wn(t))return;const n="focusin"===t.type;if(cancelAnimationFrame(e),n)return function(e){const t=e.querySelectorAll("[data-tabindex]"),n=e=>{const t=e.getAttribute("data-tabindex");e.removeAttribute("data-tabindex"),t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")};e.hasAttribute("data-tabindex")&&n(e);for(const e of t)n(e)}(m);e=requestAnimationFrame((()=>{!function(e,t){const n=di(e,t);for(const e of n)vi(e)}(m,!0)}))};return m.addEventListener("focusin",t,!0),m.addEventListener("focusout",t,!0),()=>{cancelAnimationFrame(e),m.removeEventListener("focusin",t,!0),m.removeEventListener("focusout",t,!0)}}),[m,i]),c=sr(c,(t=>{if(t=e.jsx(xa.Provider,{value:m||p,children:t}),!u)return t;if(!m)return e.jsx("span",{ref:f,id:c.id,style:{position:"fixed"},hidden:!0});t=e.jsxs(e.Fragment,{children:[i&&m&&e.jsx(ka,{ref:w,"data-focus-trap":c.id,className:"__focus-trap-inner-before",onFocus:e=>{Wn(e,m)?Ea(fi()):Ea(b.current)}}),t,i&&m&&e.jsx(ka,{ref:y,"data-focus-trap":c.id,className:"__focus-trap-inner-after",onFocus:e=>{Wn(e,m)?Ea(pi()):Ea(x.current)}})]}),m&&(t=n.createPortal(t,m));let r=e.jsxs(e.Fragment,{children:[i&&m&&e.jsx(ka,{ref:b,"data-focus-trap":c.id,className:"__focus-trap-outer-before",onFocus:e=>{!(e.relatedTarget===x.current)&&Wn(e,m)?Ea(w.current):Ea(pi())}}),i&&e.jsx("span",{"aria-owns":null==m?void 0:m.id,style:{position:"fixed"}}),i&&m&&e.jsx(ka,{ref:x,"data-focus-trap":c.id,className:"__focus-trap-outer-after",onFocus:e=>{if(Wn(e,m))Ea(y.current);else{const e=fi();if(e===w.current)return void requestAnimationFrame((()=>{var e;return null==(e=fi())?void 0:e.focus()}));Ea(e)}}})]});return g&&i&&(r=n.createPortal(r,g)),e.jsxs(e.Fragment,{children:[r,t]})}),[m,p,u,c.id,i,g]),c=Wt($t({},c),{ref:f})}));gr((function(e){return br("div",Ra(e))}));var Pa=t.createContext(0);function Na({level:n,children:r}){const o=t.useContext(Pa),i=Math.max(Math.min(n||o+1,6),1);return e.jsx(Pa.Provider,{value:i,children:r})}var ja=wr((function(t){var n=t,{autoFocusOnShow:r=!0}=n,o=Ut(n,["autoFocusOnShow"]);return o=sr(o,(t=>e.jsx(ai.Provider,{value:r,children:t})),[r])}));gr((function(e){return br("div",ja(e))}));var Ma=new WeakMap;function Aa(e,t,n){Ma.has(e)||Ma.set(e,new Map);const r=Ma.get(e),o=r.get(t);if(!o)return r.set(t,n()),()=>{var e;null==(e=r.get(t))||e(),r.delete(t)};const i=n(),a=()=>{i(),o(),r.delete(t)};return r.set(t,a),()=>{r.get(t)===a&&(i(),r.set(t,o))}}function Ia(e,t,n){return Aa(e,t,(()=>{const r=e.getAttribute(t);return e.setAttribute(t,n),()=>{null==r?e.removeAttribute(t):e.setAttribute(t,r)}}))}function Ta(e,t,n){return Aa(e,t,(()=>{const r=t in e,o=e[t];return e[t]=n,()=>{r?e[t]=o:delete e[t]}}))}function Oa(e,t){if(!e)return()=>{};return Aa(e,"style",(()=>{const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}))}var La=["SCRIPT","STYLE"];function Da(e){return`__ariakit-dialog-snapshot-${e}`}function Fa(e,t,n){return!La.includes(t.tagName)&&(!!function(e,t){const n=wn(t),r=Da(e);if(!n.body[r])return!0;for(;;){if(t===n.body)return!1;if(t[r])return!0;if(!t.parentElement)return!1;t=t.parentElement}}(e,t)&&!n.some((e=>e&&Cn(t,e))))}function _a(e,t,n,r){for(let o of t){if(!(null==o?void 0:o.isConnected))continue;const i=t.some((e=>!!e&&(e!==o&&e.contains(o)))),a=wn(o),s=o;for(;o.parentElement&&o!==a.body;){if(null==r||r(o.parentElement,s),!i)for(const r of o.parentElement.children)Fa(e,r,t)&&n(r,s);o=o.parentElement}}}function Va(e,...t){if(!e)return!1;const n=e.getAttribute("data-backdrop");return null!=n&&(""===n||("true"===n||(!t.length||t.some((e=>n===e)))))}function za(e="",t=!1){return`__ariakit-dialog-${t?"ancestor":"outside"}${e?`-${e}`:""}`}function Ha(e,t=""){return sn(Ta(e,za("",!0),!0),Ta(e,za(t,!0),!0))}function Ba(e,t){if(e[za(t,!0)])return!0;const n=za(t);for(;;){if(e[n])return!0;if(!e.parentElement)return!1;e=e.parentElement}}function $a(e,t){const n=[],r=t.map((e=>null==e?void 0:e.id));_a(e,t,(t=>{Va(t,...r)||n.unshift(function(e,t=""){return sn(Ta(e,za(),!0),Ta(e,za(t),!0))}(t,e))}),((t,r)=>{r.hasAttribute("data-dialog")&&r.id!==e||n.unshift(Ha(t,e))}));return()=>{for(const e of n)e()}}function Wa({store:e,type:n,listener:r,capture:o,domReady:i}){const a=Qn(r),s=Co(e,"open"),l=t.useRef(!1);Yn((()=>{if(!s)return;if(!i)return;const{contentElement:t}=e.getState();if(!t)return;const n=()=>{l.current=!0};return t.addEventListener("focusin",n,!0),()=>t.removeEventListener("focusin",n,!0)}),[e,s,i]),t.useEffect((()=>{if(!s)return;return Kn(n,(t=>{const{contentElement:n,disclosureElement:r}=e.getState(),o=t.target;if(!n)return;if(!o)return;if(!function(e){return"HTML"===e.tagName||Cn(wn(e).body,e)}(o))return;if(Cn(n,o))return;if(function(e,t){if(!e)return!1;if(Cn(e,t))return!0;const n=t.getAttribute("aria-activedescendant");if(n){const t=wn(e).getElementById(n);if(t)return Cn(e,t)}return!1}(r,o))return;if(o.hasAttribute("data-focus-trap"))return;if(function(e,t){if(!("clientY"in e))return!1;const n=t.getBoundingClientRect();return 0!==n.width&&0!==n.height&&n.top<=e.clientY&&e.clientY<=n.top+n.height&&n.left<=e.clientX&&e.clientX<=n.left+n.width}(t,n))return;var i;l.current&&!Ba(o,n.id)||((i=o)&&i[yi]||a(t))}),o)}),[s,o])}function Ua(e,t){return"function"==typeof e?e(t):!!e}function Ka(e,n,r){const o=function(e){const n=t.useRef();return t.useEffect((()=>{if(e)return Kn("mousedown",(e=>{n.current=e.target}),!0);n.current=null}),[e]),n}(Co(e,"open")),i={store:e,domReady:r,capture:!0};Wa(Wt($t({},i),{type:"click",listener:t=>{const{contentElement:r}=e.getState(),i=o.current;i&&Rn(i)&&Ba(i,null==r?void 0:r.id)&&Ua(n,t)&&e.hide()}})),Wa(Wt($t({},i),{type:"focusin",listener:t=>{const{contentElement:r}=e.getState();r&&t.target!==wn(r)&&Ua(n,t)&&e.hide()}})),Wa(Wt($t({},i),{type:"contextmenu",listener:t=>{Ua(n,t)&&e.hide()}}))}var Ga=t.createContext({});function qa(e,r,o){const i=function({attribute:e,contentId:r,contentElement:o,enabled:i}){const[a,s]=ir(),l=t.useCallback((()=>{if(!i)return!1;if(!o)return!1;const{body:t}=wn(o),n=t.getAttribute(e);return!n||n===r}),[a,i,o,e,r]);return t.useEffect((()=>{if(!i)return;if(!r)return;if(!o)return;const{body:t}=wn(o);if(l())return t.setAttribute(e,r),()=>t.removeAttribute(e);const a=new MutationObserver((()=>n.flushSync(s)));return a.observe(t,{attributeFilter:[e]}),()=>a.disconnect()}),[a,i,r,o,l,e]),l}({attribute:"data-dialog-prevent-body-scroll",contentElement:e,contentId:r,enabled:o});t.useEffect((()=>{if(!i())return;if(!e)return;const t=wn(e),n=yn(e),{documentElement:r,body:o}=t,a=r.style.getPropertyValue("--scrollbar-width"),s=a?Number.parseInt(a):n.innerWidth-r.clientWidth,l=function(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}(r),u=Dn()&&!(bn&&navigator.platform.startsWith("Mac")&&!Ln());return sn((d="--scrollbar-width",f=`${s}px`,(c=r)?Aa(c,d,(()=>{const e=c.style.getPropertyValue(d);return c.style.setProperty(d,f),()=>{e?c.style.setProperty(d,e):c.style.removeProperty(d)}})):()=>{}),u?(()=>{var e,t;const{scrollX:r,scrollY:i,visualViewport:a}=n,u=null!=(e=null==a?void 0:a.offsetLeft)?e:0,c=null!=(t=null==a?void 0:a.offsetTop)?t:0,d=Oa(o,{position:"fixed",overflow:"hidden",top:-(i-Math.floor(c))+"px",left:-(r-Math.floor(u))+"px",right:"0",[l]:`${s}px`});return()=>{d(),n.scrollTo({left:r,top:i,behavior:"instant"})}})():Oa(o,{overflow:"hidden",[l]:`${s}px`}));var c,d,f}),[i,e])}function Xa(){return"inert"in HTMLElement.prototype}function Ya(e,t){if(!("style"in e))return nn;if(Xa())return Ta(e,"inert",!0);const n=di(e,!0).map((e=>{if(null==t?void 0:t.some((t=>t&&Cn(t,e))))return nn;const n=Aa(e,"focus",(()=>(e.focus=nn,()=>{delete e.focus})));return sn(Ia(e,"tabindex","-1"),n)}));return sn(...n,function(e){return Ia(e,"aria-hidden","true")}(e),Oa(e,{pointerEvents:"none",userSelect:"none",cursor:"default"}))}wr((function(e){return e}));var Za=gr((function(e){return br("div",e)}));function Qa({store:n,backdrop:r,alwaysVisible:o,hidden:i}){const a=t.useRef(null),s=Yi({disclosure:n}),l=Co(n,"contentElement");t.useEffect((()=>{const e=a.current,t=l;e&&t&&(e.style.zIndex=getComputedStyle(t).zIndex)}),[l]),Yn((()=>{const e=null==l?void 0:l.id;if(!e)return;const t=a.current;return t?Ha(t,e):void 0}),[l]);const u=Ki({ref:a,store:s,role:"presentation","data-backdrop":(null==l?void 0:l.id)||"",alwaysVisible:o,hidden:null!=i?i:void 0,style:{position:"fixed",top:0,right:0,bottom:0,left:0}});if(!r)return null;if(t.isValidElement(r))return e.jsx(Za,Wt($t({},u),{render:r}));const c="boolean"!=typeof r?r:"div";return e.jsx(Za,Wt($t({},u),{render:e.jsx(c,{})}))}Object.assign(Za,["a","button","details","dialog","div","form","h1","h2","h3","h4","h5","h6","header","img","input","label","li","nav","ol","p","section","select","span","summary","textarea","ul","svg"].reduce(((e,t)=>(e[t]=gr((function(e){return br(t,e)})),e)),{}));var Ja=Fn();function es(e,t=!1){if(!e)return null;const n="current"in e?e.current:e;return n?t?li(n)?n:null:n:null}var ts=wr((function(n){var r=n,{store:o,open:i,onClose:a,focusable:s=!0,modal:l=!0,portal:u=!!l,backdrop:c=!!l,hideOnEscape:d=!0,hideOnInteractOutside:f=!0,getPersistentElements:p,preventBodyScroll:m=!!l,autoFocusOnShow:h=!0,autoFocusOnHide:g=!0,initialFocus:v,finalFocus:b,unmountOnHide:w,unstable_treeSnapshotKey:y}=r,x=Ut(r,["store","open","onClose","focusable","modal","portal","backdrop","hideOnEscape","hideOnInteractOutside","getPersistentElements","preventBodyScroll","autoFocusOnShow","autoFocusOnHide","initialFocus","finalFocus","unmountOnHide","unstable_treeSnapshotKey"]);const C=kr(),S=t.useRef(null),k=function(e={}){const[t,n]=Eo(ta,e);return na(t,n,e)}({store:o||C,open:i,setOpen(e){if(e)return;const t=S.current;if(!t)return;const n=new Event("close",{bubbles:!1,cancelable:!0});a&&t.addEventListener("close",a,{once:!0}),t.dispatchEvent(n),n.defaultPrevented&&k.setOpen(!0)}}),{portalRef:E,domReady:R}=lr(u,x.portalRef),P=x.preserveTabOrder,N=Co(k,(e=>P&&!l&&e.mounted)),j=tr(x.id),M=Co(k,"open"),A=Co(k,"mounted"),I=Co(k,"contentElement"),T=Ui(A,x.hidden,x.alwaysVisible);qa(I,j,m&&!T),Ka(k,f,R);const{wrapElement:O,nestedDialogs:L}=function(n){const r=t.useContext(Ga),[o,i]=t.useState([]),a=t.useCallback((e=>{var t;return i((t=>[...t,e])),sn(null==(t=r.add)?void 0:t.call(r,e),(()=>{i((t=>t.filter((t=>t!==e))))}))}),[r]);Yn((()=>no(n,["open","contentElement"],(e=>{var t;if(e.open&&e.contentElement)return null==(t=r.add)?void 0:t.call(r,n)}))),[n,r]);const s=t.useMemo((()=>({store:n,add:a})),[n,a]);return{wrapElement:t.useCallback((t=>e.jsx(Ga.Provider,{value:s,children:t})),[s]),nestedDialogs:o}}(k);x=sr(x,O,[O]),Yn((()=>{if(!M)return;const e=S.current,t=xn(e,!0);t&&"BODY"!==t.tagName&&(e&&Cn(e,t)||k.setDisclosureElement(t))}),[k,M]),Ja&&t.useEffect((()=>{if(!A)return;const{disclosureElement:e}=k.getState();if(!e)return;if(!kn(e))return;const t=()=>{let t=!1;const n=()=>{t=!0};e.addEventListener("focusin",n,{capture:!0,once:!0}),Un(e,"mouseup",(()=>{e.removeEventListener("focusin",n,!0),t||gi(e)}))};return e.addEventListener("mousedown",t),()=>{e.removeEventListener("mousedown",t)}}),[k,A]),t.useEffect((()=>{if(!A)return;if(!R)return;const e=S.current;if(!e)return;const t=yn(e),n=t.visualViewport||t,r=()=>{var n,r;const o=null!=(r=null==(n=t.visualViewport)?void 0:n.height)?r:t.innerHeight;e.style.setProperty("--dialog-viewport-height",`${o}px`)};return r(),n.addEventListener("resize",r),()=>{n.removeEventListener("resize",r)}}),[A,R]),t.useEffect((()=>{if(!l)return;if(!A)return;if(!R)return;const e=S.current;if(!e)return;return e.querySelector("[data-dialog-dismiss]")?void 0:function(e,t){const n=wn(e).createElement("button");return n.type="button",n.tabIndex=-1,n.textContent="Dismiss popup",Object.assign(n.style,{border:"0px",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0px",position:"absolute",whiteSpace:"nowrap",width:"1px"}),n.addEventListener("click",t),e.prepend(n),()=>{n.removeEventListener("click",t),n.remove()}}(e,k.hide)}),[k,l,A,R]),Yn((()=>{if(!Xa())return;if(M)return;if(!A)return;if(!R)return;const e=S.current;return e?Ya(e):void 0}),[M,A,R]);const D=M&&R;Yn((()=>{if(!j)return;if(!D)return;const e=S.current;return function(e,t){const{body:n}=wn(t[0]),r=[];return _a(e,t,(t=>{r.push(Ta(t,Da(e),!0))})),sn(Ta(n,Da(e),!0),(()=>{for(const e of r)e()}))}(j,[e])}),[j,D,y]);const F=Qn(p);Yn((()=>{if(!j)return;if(!D)return;const{disclosureElement:e}=k.getState(),t=[S.current,...F()||[],...L.map((e=>e.getState().contentElement))];return l?sn($a(j,t),function(e,t){const n=[],r=t.map((e=>null==e?void 0:e.id));return _a(e,t,(e=>{Va(e,...r)||function(e,...t){if(!e)return!1;const n=e.getAttribute("data-focus-trap");return null!=n&&(!t.length||""!==n&&t.some((e=>n===e)))}(e,...r)||n.unshift(Ya(e,t))}),(e=>{e.hasAttribute("role")&&(t.some((t=>t&&Cn(t,e)))||n.unshift(Ia(e,"role","none")))})),()=>{for(const e of n)e()}}(j,t)):$a(j,[e,...t])}),[j,k,D,F,L,l,y]);const _=!!h,V=ar(h),[z,H]=t.useState(!1);t.useEffect((()=>{if(!M)return;if(!_)return;if(!R)return;if(!(null==I?void 0:I.isConnected))return;const e=es(v,!0)||I.querySelector("[data-autofocus=true],[autofocus]")||function(e,t,n){const[r]=di(e,t,n);return r||null}(I,!0,u&&N)||I,t=li(e);V(t?e:null)&&(H(!0),queueMicrotask((()=>{e.focus(),Ja&&t&&e.scrollIntoView({block:"nearest",inline:"nearest"})})))}),[M,_,R,I,v,u,N,V]);const B=!!g,$=ar(g),[W,U]=t.useState(!1);t.useEffect((()=>{if(M)return U(!0),()=>U(!1)}),[M]);const K=t.useCallback(((e,t=!0)=>{const{disclosureElement:n}=k.getState();if(function(e){const t=xn();return!(!t||e&&Cn(e,t)||!li(t))}(e))return;let r=es(b)||n;if(null==r?void 0:r.id){const e=wn(r),t=`[aria-activedescendant="${r.id}"]`,n=e.querySelector(t);n&&(r=n)}if(r&&!li(r)){const e=r.closest("[data-dialog]");if(null==e?void 0:e.id){const t=wn(e),n=`[aria-controls~="${e.id}"]`,o=t.querySelector(n);o&&(r=o)}}const o=r&&li(r);o||!t?$(o?r:null)&&o&&(null==r||r.focus({preventScroll:!0})):requestAnimationFrame((()=>K(e,!1)))}),[k,b,$]),G=t.useRef(!1);Yn((()=>{if(M)return;if(!W)return;if(!B)return;const e=S.current;G.current=!0,K(e)}),[M,W,R,B,K]),t.useEffect((()=>{if(!W)return;if(!B)return;const e=S.current;return()=>{G.current?G.current=!1:K(e)}}),[W,B,K]);const q=ar(d);t.useEffect((()=>{if(!R)return;if(!A)return;return Kn("keydown",(e=>{if("Escape"!==e.key)return;if(e.defaultPrevented)return;const t=S.current;if(!t)return;if(Ba(t))return;const n=e.target;if(!n)return;const{disclosureElement:r}=k.getState();("BODY"===n.tagName||Cn(t,n)||!r||Cn(r,n))&&q(e)&&k.hide()}),!0)}),[k,R,A,q]);const X=(x=sr(x,(t=>e.jsx(Na,{level:l?1:void 0,children:t})),[l])).hidden,Y=x.alwaysVisible;x=sr(x,(t=>c?e.jsxs(e.Fragment,{children:[e.jsx(Qa,{store:k,backdrop:c,hidden:X,alwaysVisible:Y}),t]}):t),[k,c,X,Y]);const[Z,Q]=t.useState(),[J,ee]=t.useState();return x=sr(x,(t=>e.jsx(Rr,{value:k,children:e.jsx(Pr.Provider,{value:Q,children:e.jsx(Nr.Provider,{value:ee,children:t})})})),[k]),x=Wt($t({id:j,"data-dialog":"",role:"dialog",tabIndex:s?-1:void 0,"aria-labelledby":Z,"aria-describedby":J},x),{ref:er(S,x.ref)}),x=ja(Wt($t({},x),{autoFocusOnShow:z})),x=Ki($t({store:k},x)),x=Ni(Wt($t({},x),{focusable:s})),x=Ra(Wt($t({portal:u},x),{portalRef:E,preserveTabOrder:N}))}));function ns(t,n=kr){return gr((function(r){const o=n();return Co(r.store||o,(e=>!r.unmountOnHide||(null==e?void 0:e.mounted)||!!r.open))?e.jsx(t,$t({},r)):null}))}ns(gr((function(e){return br("div",ts(e))})),kr);const rs=["top","right","bottom","left"],os=Math.min,is=Math.max,as=Math.round,ss=Math.floor,ls=e=>({x:e,y:e}),us={left:"right",right:"left",bottom:"top",top:"bottom"},cs={start:"end",end:"start"};function ds(e,t,n){return is(e,os(t,n))}function fs(e,t){return"function"==typeof e?e(t):e}function ps(e){return e.split("-")[0]}function ms(e){return e.split("-")[1]}function hs(e){return"x"===e?"y":"x"}function gs(e){return"y"===e?"height":"width"}function vs(e){return["top","bottom"].includes(ps(e))?"y":"x"}function bs(e){return hs(vs(e))}function ws(e){return e.replace(/start|end/g,(e=>cs[e]))}function ys(e){return e.replace(/left|right|bottom|top/g,(e=>us[e]))}function xs(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Cs(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Ss(e,t,n){let{reference:r,floating:o}=e;const i=vs(t),a=bs(t),s=gs(a),l=ps(t),u="y"===i,c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let p;switch(l){case"top":p={x:c,y:r.y-o.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(ms(t)){case"start":p[a]-=f*(n&&u?-1:1);break;case"end":p[a]+=f*(n&&u?-1:1)}return p}async function ks(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=fs(t,e),m=xs(p),h=s[f?"floating"===d?"reference":"floating":d],g=Cs(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),v="floating"===d?{...a.floating,x:r,y:o}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),w=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},y=Cs(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:b,strategy:l}):v);return{top:(g.top-y.top+m.top)/w.y,bottom:(y.bottom-g.bottom+m.bottom)/w.y,left:(g.left-y.left+m.left)/w.x,right:(y.right-g.right+m.right)/w.x}}function Es(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Rs(e){return rs.some((t=>e[t]>=0))}function Ps(){return"undefined"!=typeof window}function Ns(e){return As(e)?(e.nodeName||"").toLowerCase():"#document"}function js(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Ms(e){var t;return null==(t=(As(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function As(e){return!!Ps()&&(e instanceof Node||e instanceof js(e).Node)}function Is(e){return!!Ps()&&(e instanceof Element||e instanceof js(e).Element)}function Ts(e){return!!Ps()&&(e instanceof HTMLElement||e instanceof js(e).HTMLElement)}function Os(e){return!(!Ps()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof js(e).ShadowRoot)}function Ls(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Hs(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Ds(e){return["table","td","th"].includes(Ns(e))}function Fs(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function _s(e){const t=Vs(),n=Is(e)?Hs(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function Vs(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function zs(e){return["html","body","#document"].includes(Ns(e))}function Hs(e){return js(e).getComputedStyle(e)}function Bs(e){return Is(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function $s(e){if("html"===Ns(e))return e;const t=e.assignedSlot||e.parentNode||Os(e)&&e.host||Ms(e);return Os(t)?t.host:t}function Ws(e){const t=$s(e);return zs(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ts(t)&&Ls(t)?t:Ws(t)}function Us(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Ws(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=js(o);if(i){const e=Ks(a);return t.concat(a,a.visualViewport||[],Ls(o)?o:[],e&&n?Us(e):[])}return t.concat(o,Us(o,[],n))}function Ks(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Gs(e){const t=Hs(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ts(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=as(n)!==i||as(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function qs(e){return Is(e)?e:e.contextElement}function Xs(e){const t=qs(e);if(!Ts(t))return ls(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Gs(t);let a=(i?as(n.width):n.width)/r,s=(i?as(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Ys=ls(0);function Zs(e){const t=js(e);return Vs()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ys}function Qs(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=qs(e);let a=ls(1);t&&(r?Is(r)&&(a=Xs(r)):a=Xs(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==js(e))&&t}(i,n,r)?Zs(i):ls(0);let l=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,c=o.width/a.x,d=o.height/a.y;if(i){const e=js(i),t=r&&Is(r)?js(r):r;let n=e,o=Ks(n);for(;o&&r&&t!==n;){const e=Xs(o),t=o.getBoundingClientRect(),r=Hs(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,u*=e.y,c*=e.x,d*=e.y,l+=i,u+=a,n=js(o),o=Ks(n)}}return Cs({width:c,height:d,x:l,y:u})}function Js(e,t){const n=Bs(e).scrollLeft;return t?t.left+n:Qs(Ms(e)).left+n}function el(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=js(e),r=Ms(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=Vs();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=Ms(e),n=Bs(e),r=e.ownerDocument.body,o=is(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=is(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Js(e);const s=-n.scrollTop;return"rtl"===Hs(r).direction&&(a+=is(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Ms(e));else if(Is(t))r=function(e,t){const n=Qs(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Ts(e)?Xs(e):ls(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Zs(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Cs(r)}function tl(e,t){const n=$s(e);return!(n===t||!Is(n)||zs(n))&&("fixed"===Hs(n).position||tl(n,t))}function nl(e,t,n){const r=Ts(t),o=Ms(t),i="fixed"===n,a=Qs(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=ls(0);if(r||!r&&!i)if(("body"!==Ns(t)||Ls(o))&&(s=Bs(t)),r){const e=Qs(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=Js(o));let u=0,c=0;if(o&&!r&&!i){const e=o.getBoundingClientRect();c=e.top+s.scrollTop,u=e.left+s.scrollLeft-Js(o,e)}return{x:a.left+s.scrollLeft-l.x-u,y:a.top+s.scrollTop-l.y-c,width:a.width,height:a.height}}function rl(e){return"static"===Hs(e).position}function ol(e,t){if(!Ts(e)||"fixed"===Hs(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Ms(e)===n&&(n=n.ownerDocument.body),n}function il(e,t){const n=js(e);if(Fs(e))return n;if(!Ts(e)){let t=$s(e);for(;t&&!zs(t);){if(Is(t)&&!rl(t))return t;t=$s(t)}return n}let r=ol(e,t);for(;r&&Ds(r)&&rl(r);)r=ol(r,t);return r&&zs(r)&&rl(r)&&!_s(r)?n:r||function(e){let t=$s(e);for(;Ts(t)&&!zs(t);){if(_s(t))return t;if(Fs(t))return null;t=$s(t)}return null}(e)||n}const al={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=Ms(r),s=!!t&&Fs(t.floating);if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},u=ls(1);const c=ls(0),d=Ts(r);if((d||!d&&!i)&&(("body"!==Ns(r)||Ls(a))&&(l=Bs(r)),Ts(r))){const e=Qs(r);u=Xs(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x,y:n.y*u.y-l.scrollTop*u.y+c.y}},getDocumentElement:Ms,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?Fs(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Us(e,[],!1).filter((e=>Is(e)&&"body"!==Ns(e))),o=null;const i="fixed"===Hs(e).position;let a=i?$s(e):e;for(;Is(a)&&!zs(a);){const t=Hs(a),n=_s(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Ls(a)&&!n&&tl(e,a))?r=r.filter((e=>e!==a)):o=t,a=$s(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],s=i.reduce(((e,n)=>{const r=el(t,n,o);return e.top=is(r.top,e.top),e.right=os(r.right,e.right),e.bottom=os(r.bottom,e.bottom),e.left=is(r.left,e.left),e}),el(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:il,getElementRects:async function(e){const t=this.getOffsetParent||il,n=this.getDimensions,r=await n(e.floating);return{reference:nl(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Gs(e);return{width:t,height:n}},getScale:Xs,isElement:Is,isRTL:function(e){return"rtl"===Hs(e).direction}};function sl(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,u=qs(e),c=o||i?[...u?Us(u):[],...Us(t)]:[];c.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=u&&s?function(e,t){let n,r=null;const o=Ms(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const{left:u,top:c,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const p={rootMargin:-ss(c)+"px "+-ss(o.clientWidth-(u+d))+"px "+-ss(o.clientHeight-(c+f))+"px "+-ss(u)+"px",threshold:is(0,os(1,l))||1};let m=!0;function h(e){const t=e[0].intersectionRatio;if(t!==l){if(!m)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}m=!1}try{r=new IntersectionObserver(h,{...p,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(h,p)}r.observe(e)}(!0),i}(u,n):null;let f,p=-1,m=null;a&&(m=new ResizeObserver((e=>{let[r]=e;r&&r.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=m)||e.observe(t)}))),n()})),u&&!l&&m.observe(u),m.observe(t));let h=l?Qs(e):null;return l&&function t(){const r=Qs(e);!h||r.x===h.x&&r.y===h.y&&r.width===h.width&&r.height===h.height||n();h=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=m)||e.disconnect(),m=null,l&&cancelAnimationFrame(f)}}const ll=ks,ul=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=ps(n),s=ms(n),l="y"===vs(n),u=["left","top"].includes(a)?-1:1,c=i&&l?-1:1,d=fs(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof m&&(p="end"===s?-1*m:m),l?{x:p*c,y:f*u}:{x:f*u,y:p*c}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},cl=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=fs(e,t),u={x:n,y:r},c=await ks(t,l),d=vs(ps(o)),f=hs(d);let p=u[f],m=u[d];if(i){const e="y"===f?"bottom":"right";p=ds(p+c["y"===f?"top":"left"],p,p-c[e])}if(a){const e="y"===d?"bottom":"right";m=ds(m+c["y"===d?"top":"left"],m,m-c[e])}const h=s.fn({...t,[f]:p,[d]:m});return{...h,data:{x:h.x-n,y:h.y-r}}}}},dl=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...g}=fs(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=ps(o),b=ps(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(u.floating)),y=f||(b||!h?[ys(s)]:function(e){const t=ys(e);return[ws(e),t,ws(t)]}(s));f||"none"===m||y.push(...function(e,t,n,r){const o=ms(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(ps(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(ws)))),i}(s,h,m,w));const x=[s,...y],C=await ks(t,g),S=[];let k=(null==(r=i.flip)?void 0:r.overflows)||[];if(c&&S.push(C[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=ms(e),o=bs(e),i=gs(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=ys(a)),[a,ys(a)]}(o,a,w);S.push(C[e[0]],C[e[1]])}if(k=[...k,{placement:o,overflows:S}],!S.every((e=>e<=0))){var E,R;const e=((null==(E=i.flip)?void 0:E.index)||0)+1,t=x[e];if(t)return{data:{index:e,overflows:k},reset:{placement:t}};let n=null==(R=k.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:R.placement;if(!n)switch(p){case"bestFit":{var P;const e=null==(P=k.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:P[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},fl=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=(()=>{}),...s}=fs(e,t),l=await ks(t,s),u=ps(n),c=ms(n),d="y"===vs(n),{width:f,height:p}=r.floating;let m,h;"top"===u||"bottom"===u?(m=u,h=c===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(h=u,m="end"===c?"top":"bottom");const g=p-l[m],v=f-l[h],b=!t.middlewareData.shift;let w=g,y=v;if(d){const e=f-l.left-l.right;y=c||b?os(v,e):e}else{const e=p-l.top-l.bottom;w=c||b?os(g,e):e}if(b&&!c){const e=is(l.left,0),t=is(l.right,0),n=is(l.top,0),r=is(l.bottom,0);d?y=f-2*(0!==e||0!==t?e+t:is(l.left,l.right)):w=p-2*(0!==n||0!==r?n+r:is(l.top,l.bottom))}await a({...t,availableWidth:y,availableHeight:w});const x=await o.getDimensions(i.floating);return f!==x.width||p!==x.height?{reset:{rects:!0}}:{}}}},pl=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=fs(e,t);switch(r){case"referenceHidden":{const e=Es(await ks(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Rs(e)}}}case"escaped":{const e=Es(await ks(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Rs(e)}}}default:return{}}}}},ml=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=fs(e,t)||{};if(null==u)return{};const d=xs(c),f={x:n,y:r},p=bs(o),m=gs(p),h=await a.getDimensions(u),g="y"===p,v=g?"top":"left",b=g?"bottom":"right",w=g?"clientHeight":"clientWidth",y=i.reference[m]+i.reference[p]-f[p]-i.floating[m],x=f[p]-i.reference[p],C=await(null==a.getOffsetParent?void 0:a.getOffsetParent(u));let S=C?C[w]:0;S&&await(null==a.isElement?void 0:a.isElement(C))||(S=s.floating[w]||i.floating[m]);const k=y/2-x/2,E=S/2-h[m]/2-1,R=os(d[v],E),P=os(d[b],E),N=R,j=S-h[m]-P,M=S/2-h[m]/2+k,A=ds(N,M,j),I=!l.arrow&&null!=ms(o)&&M!==A&&i.reference[m]/2-(M<N?R:P)-h[m]/2<0,T=I?M<N?M-N:M-j:0;return{[p]:f[p]+T,data:{[p]:A,centerOffset:M-A-T,...I&&{alignmentOffset:T}},reset:I}}}),hl=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=fs(e,t),c={x:n,y:r},d=vs(o),f=hs(d);let p=c[f],m=c[d];const h=fs(s,t),g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+g.mainAxis,n=i.reference[f]+i.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(u){var v,b;const e="y"===f?"width":"height",t=["top","left"].includes(ps(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(v=a.offset)?void 0:v[d])||0)+(t?0:g.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(b=a.offset)?void 0:b[d])||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},gl=(e,t,n)=>{const r=new Map,o={platform:al,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=Ss(u,r,l),f=r,p={},m=0;for(let n=0;n<s.length;n++){const{name:i,fn:h}=s[n],{x:g,y:v,data:b,reset:w}=await h({x:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});c=null!=g?g:c,d=null!=v?v:d,p={...p,[i]:{...p[i],...b}},w&&m<=50&&(m++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(u=!0===w.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):w.rects),({x:c,y:d}=Ss(u,f,l))),n=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})};function vl(e=0,t=0,n=0,r=0){if("function"==typeof DOMRect)return new DOMRect(e,t,n,r);const o={x:e,y:t,width:n,height:r,top:t,right:e+n,bottom:t+r,left:e};return Wt($t({},o),{toJSON:()=>o})}function bl(e,t){return{contextElement:e||void 0,getBoundingClientRect:()=>{const n=e,r=null==t?void 0:t(n);return r||!n?function(e){if(!e)return vl();const{x:t,y:n,width:r,height:o}=e;return vl(t,n,r,o)}(r):n.getBoundingClientRect()}}}function wl(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}function yl(e){const t=window.devicePixelRatio||1;return Math.round(e*t)/t}function xl(e,t){return ul((({placement:n})=>{var r;const o=((null==e?void 0:e.clientHeight)||0)/2,i="number"==typeof t.gutter?t.gutter+o:null!=(r=t.gutter)?r:o;return{crossAxis:!!n.split("-")[1]?void 0:t.shift,mainAxis:i,alignmentAxis:t.shift}}))}function Cl(e){if(!1===e.flip)return;const t="string"==typeof e.flip?e.flip.split(" "):void 0;return cn(!t||t.every(wl),!1),dl({padding:e.overflowPadding,fallbackPlacements:t})}function Sl(e){if(e.slide||e.overlap)return cl({mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:hl()})}function kl(e){return fl({padding:e.overflowPadding,apply({elements:t,availableWidth:n,availableHeight:r,rects:o}){const i=t.floating,a=Math.round(o.reference.width);n=Math.floor(n),r=Math.floor(r),i.style.setProperty("--popover-anchor-width",`${a}px`),i.style.setProperty("--popover-available-width",`${n}px`),i.style.setProperty("--popover-available-height",`${r}px`),e.sameWidth&&(i.style.width=`${a}px`),e.fitViewport&&(i.style.maxWidth=`${n}px`,i.style.maxHeight=`${r}px`)}})}function El(e,t){if(e)return ml({element:e,padding:t.arrowPadding})}var Rl=wr((function(n){var r=n,{store:o,modal:i=!1,portal:a=!!i,preserveTabOrder:s=!0,autoFocusOnShow:l=!0,wrapperProps:u,fixed:c=!1,flip:d=!0,shift:f=0,slide:p=!0,overlap:m=!1,sameWidth:h=!1,fitViewport:g=!1,gutter:v,arrowPadding:b=4,overflowPadding:w=8,getAnchorRect:y,updatePosition:x}=r,C=Ut(r,["store","modal","portal","preserveTabOrder","autoFocusOnShow","wrapperProps","fixed","flip","shift","slide","overlap","sameWidth","fitViewport","gutter","arrowPadding","overflowPadding","getAnchorRect","updatePosition"]);const S=Ar();cn(o=o||S,!1);const k=o.useState("arrowElement"),E=o.useState("anchorElement"),R=o.useState("disclosureElement"),P=o.useState("popoverElement"),N=o.useState("contentElement"),j=o.useState("placement"),M=o.useState("mounted"),A=o.useState("rendered"),I=t.useRef(null),[T,O]=t.useState(!1),{portalRef:L,domReady:D}=lr(a,C.portalRef),F=Qn(y),_=Qn(x),V=!!x;Yn((()=>{if(!(null==P?void 0:P.isConnected))return;P.style.setProperty("--popover-overflow-padding",`${w}px`);const e=bl(E,F),t=async()=>{if(!M)return;k||(I.current=I.current||document.createElement("div"));const t=k||I.current,n=[xl(t,{gutter:v,shift:f}),Cl({flip:d,overflowPadding:w}),Sl({slide:p,overlap:m,overflowPadding:w}),El(t,{arrowPadding:b}),kl({sameWidth:h,fitViewport:g,overflowPadding:w})],r=await gl(e,P,{placement:j,strategy:c?"fixed":"absolute",middleware:n});null==o||o.setState("currentPlacement",r.placement),O(!0);const i=yl(r.x),a=yl(r.y);if(Object.assign(P.style,{top:"0",left:"0",transform:`translate3d(${i}px,${a}px,0)`}),t&&r.middlewareData.arrow){const{x:e,y:n}=r.middlewareData.arrow,o=r.placement.split("-")[0],i=t.clientWidth/2,a=t.clientHeight/2,s=null!=e?e+i:-i,l=null!=n?n+a:-a;P.style.setProperty("--popover-transform-origin",{top:`${s}px calc(100% + ${a}px)`,bottom:`${s}px ${-a}px`,left:`calc(100% + ${i}px) ${l}px`,right:`${-i}px ${l}px`}[o]),Object.assign(t.style,{left:null!=e?`${e}px`:"",top:null!=n?`${n}px`:"",[o]:"100%"})}},n=sl(e,P,(async()=>{V?(await _({updatePosition:t}),O(!0)):await t()}),{elementResize:"function"==typeof ResizeObserver});return()=>{O(!1),n()}}),[o,A,P,k,E,P,j,M,D,c,d,f,p,m,h,g,v,b,w,F,V,_]),Yn((()=>{if(!M)return;if(!D)return;if(!(null==P?void 0:P.isConnected))return;if(!(null==N?void 0:N.isConnected))return;const e=()=>{P.style.zIndex=getComputedStyle(N).zIndex};e();let t=requestAnimationFrame((()=>{t=requestAnimationFrame(e)}));return()=>cancelAnimationFrame(t)}),[M,D,P,N]);const z=c?"fixed":"absolute";return C=sr(C,(t=>e.jsx("div",Wt($t({},u),{style:$t({position:z,top:0,left:0,width:"max-content"},null==u?void 0:u.style),ref:null==o?void 0:o.setPopoverElement,children:t}))),[o,z,u]),C=sr(C,(t=>e.jsx(Tr,{value:o,children:t})),[o]),C=Wt($t({"data-placing":!T||void 0},C),{style:$t({position:"relative"},C.style)}),C=ts(Wt($t({store:o,modal:i,portal:a,preserveTabOrder:s,preserveTabOrderAnchor:R||E,autoFocusOnShow:T&&l},C),{portalRef:L}))}));ns(gr((function(e){return br("div",Rl(e))})),Ar);function Pl(e,t,n,r){return!!hi(t)||!!e&&(!!Cn(t,e)||(!(!n||!Cn(n,e))||!!(null==r?void 0:r.some((t=>Pl(e,t,n))))))}var Nl=t.createContext(null),jl=wr((function(n){var r=n,{store:o,modal:i=!1,portal:a=!!i,hideOnEscape:s=!0,hideOnHoverOutside:l=!0,disablePointerEventsOnApproach:u=!!l}=r,c=Ut(r,["store","modal","portal","hideOnEscape","hideOnHoverOutside","disablePointerEventsOnApproach"]);const d=ca();cn(o=o||d,!1);const f=t.useRef(null),[p,m]=t.useState([]),h=t.useRef(0),g=t.useRef(null),{portalRef:v,domReady:b}=lr(a,c.portalRef),w=cr(),y=!!l,x=ar(l),C=!!u,S=ar(u),k=o.useState("open"),E=o.useState("mounted");t.useEffect((()=>{if(!b)return;if(!E)return;if(!y&&!C)return;const e=f.current;if(!e)return;return sn(Kn("mousemove",(t=>{if(!o)return;if(!w())return;const{anchorElement:n,hideTimeout:r,timeout:i}=o.getState(),a=g.current,[s]=t.composedPath(),l=n;if(Pl(s,e,l,p))return g.current=s&&l&&Cn(l,s)?ba(t):null,window.clearTimeout(h.current),void(h.current=0);if(!h.current){if(a){const n=ba(t);if(wa(n,ya(e,a))){if(g.current=n,!S(t))return;return t.preventDefault(),void t.stopPropagation()}}x(t)&&(h.current=window.setTimeout((()=>{h.current=0,null==o||o.hide()}),null!=r?r:i))}}),!0),(()=>clearTimeout(h.current)))}),[o,w,b,E,y,C,p,S,x]),t.useEffect((()=>{if(!b)return;if(!E)return;if(!C)return;const e=e=>{const t=f.current;if(!t)return;const n=g.current;if(!n)return;const r=ya(t,n);if(wa(ba(e),r)){if(!S(e))return;e.preventDefault(),e.stopPropagation()}};return sn(Kn("mouseenter",e,!0),Kn("mouseover",e,!0),Kn("mouseout",e,!0),Kn("mouseleave",e,!0))}),[b,E,C,S]),t.useEffect((()=>{b&&(k||null==o||o.setAutoFocusOnShow(!1))}),[o,b,k]);const R=Zn(k);t.useEffect((()=>{if(b)return()=>{R.current||null==o||o.setAutoFocusOnShow(!1)}}),[o,b]);const P=t.useContext(Nl);Yn((()=>{if(i)return;if(!a)return;if(!E)return;if(!b)return;const e=f.current;return e?null==P?void 0:P(e):void 0}),[i,a,E,b]);const N=t.useCallback((e=>{m((t=>[...t,e]));const t=null==P?void 0:P(e);return()=>{m((t=>t.filter((t=>t!==e)))),null==t||t()}}),[P]);c=sr(c,(t=>e.jsx(fa,{value:o,children:e.jsx(Nl.Provider,{value:N,children:t})})),[o,N]),c=Wt($t({},c),{ref:er(f,c.ref)}),c=function(e){var n=e,{store:r}=n,o=Ut(n,["store"]);const[i,a]=t.useState(!1),s=r.useState("mounted");t.useEffect((()=>{s||a(!1)}),[s]);const l=o.onFocus,u=Qn((e=>{null==l||l(e),e.defaultPrevented||a(!0)})),c=t.useRef(null);return t.useEffect((()=>no(r,["anchorElement"],(e=>{c.current=e.anchorElement}))),[]),Wt($t({autoFocusOnHide:i,finalFocus:c},o),{onFocus:u})}($t({store:o},c));const j=o.useState((e=>i||e.autoFocusOnShow));return c=Rl(Wt($t({store:o,modal:i,portal:a,autoFocusOnShow:j},c),{portalRef:v,hideOnEscape:e=>!dn(s,e)&&(requestAnimationFrame((()=>{requestAnimationFrame((()=>{null==o||o.hide()}))})),!0)}))}));ns(gr((function(e){return br("div",jl(e))})),ca);var Ml=wr((function(t){var n=t,{store:r,portal:o=!0,gutter:i=8,preserveTabOrder:a=!1,hideOnHoverOutside:s=!0,hideOnInteractOutside:l=!0}=n,u=Ut(n,["store","portal","gutter","preserveTabOrder","hideOnHoverOutside","hideOnInteractOutside"]);const c=ha();cn(r=r||c,!1),u=sr(u,(t=>e.jsx(va,{value:r,children:t})),[r]);const d=r.useState((e=>"description"===e.type?"tooltip":"none"));return u=$t({role:d},u),u=jl(Wt($t({},u),{store:r,portal:o,gutter:i,preserveTabOrder:a,hideOnHoverOutside(e){if(dn(s,e))return!1;const t=null==r?void 0:r.getState().anchorElement;return!t||!("focusVisible"in t.dataset)},hideOnInteractOutside:e=>{if(dn(l,e))return!1;const t=null==r?void 0:r.getState().anchorElement;return!t||!Cn(t,e.target)}}))})),Al=ns(gr((function(e){return br("div",Ml(e))})),ha);function Il(t={}){const n=la(t);return e.jsx(ga,{value:n,children:t.children})}var Tl=wr((function(e){var n=e,{store:r,showOnHover:o=!0}=n,i=Ut(n,["store","showOnHover"]);const a=ca();cn(r=r||a,!1);const s=fn(i),l=t.useRef(0);t.useEffect((()=>()=>window.clearTimeout(l.current)),[]),t.useEffect((()=>Kn("mouseleave",(e=>{if(!r)return;const{anchorElement:t}=r.getState();t&&e.target===t&&(window.clearTimeout(l.current),l.current=0)}),!0)),[r]);const u=i.onMouseMove,c=ar(o),d=cr(),f=Qn((e=>{if(null==u||u(e),s)return;if(!r)return;if(e.defaultPrevented)return;if(l.current)return;if(!d())return;if(!c(e))return;const t=e.currentTarget;r.setAnchorElement(t),r.setDisclosureElement(t);const{showTimeout:n,timeout:o}=r.getState(),i=()=>{l.current=0,d()&&(null==r||r.setAnchorElement(t),null==r||r.show(),queueMicrotask((()=>{null==r||r.setDisclosureElement(t)})))},a=null!=n?n:o;0===a?i():l.current=window.setTimeout(i,a)})),p=i.onClick,m=Qn((e=>{null==p||p(e),r&&(window.clearTimeout(l.current),l.current=0)})),h=t.useCallback((e=>{if(!r)return;const{anchorElement:t}=r.getState();(null==t?void 0:t.isConnected)||r.setAnchorElement(e)}),[r]);return i=Wt($t({},i),{ref:er(h,i.ref),onMouseMove:f,onClick:m}),i=Ni(i)}));gr((function(e){return br("a",Tl(e))}));var Ol=Qr({activeStore:null});function Ll(e){return()=>{const{activeStore:t}=Ol.getState();t===e&&Ol.setState("activeStore",null)}}var Dl=wr((function(e){var n=e,{store:r,showOnHover:o=!0}=n,i=Ut(n,["store","showOnHover"]);const a=ha();cn(r=r||a,!1);const s=t.useRef(!1);t.useEffect((()=>no(r,["mounted"],(e=>{e.mounted||(s.current=!1)}))),[r]),t.useEffect((()=>{if(r)return sn(Ll(r),no(r,["mounted","skipTimeout"],(e=>{if(!r)return;if(e.mounted){const{activeStore:e}=Ol.getState();return e!==r&&(null==e||e.hide()),Ol.setState("activeStore",r)}const t=setTimeout(Ll(r),e.skipTimeout);return()=>clearTimeout(t)})))}),[r]);const l=i.onMouseEnter,u=Qn((e=>{null==l||l(e),s.current=!0})),c=i.onFocusVisible,d=Qn((e=>{null==c||c(e),e.defaultPrevented||(null==r||r.setAnchorElement(e.currentTarget),null==r||r.show())})),f=i.onBlur,p=Qn((e=>{if(null==f||f(e),e.defaultPrevented)return;const{activeStore:t}=Ol.getState();s.current=!1,t===r&&Ol.setState("activeStore",null)})),m=r.useState("type"),h=r.useState((e=>{var t;return null==(t=e.contentElement)?void 0:t.id}));return i=Wt($t({"aria-labelledby":"label"===m?h:void 0},i),{onMouseEnter:u,onFocusVisible:d,onBlur:p}),i=Tl($t({store:r,showOnHover(e){if(!s.current)return!1;if(dn(o,e))return!1;const{activeStore:t}=Ol.getState();return!t||(null==r||r.show(),!1)}},i))})),Fl=gr((function(e){return br("div",Dl(e))})),_l="M23 27.8C24.1 29 26.4 30 28 30H30H0H2C3.7 30 5.9 29 7 27.8L14 20.6C14.7 19.8 15.3 19.8 16 20.6L23 27.8Z",Vl=30,zl=Vl/2,Hl={top:`rotate(180 ${zl} ${zl})`,right:`rotate(-90 ${zl} ${zl})`,bottom:`rotate(0 ${zl} ${zl})`,left:`rotate(90 ${zl} ${zl})`};var Bl=wr((function(n){var r=n,{store:o,size:i=Vl,borderWidth:a}=r,s=Ut(r,["store","size","borderWidth"]);const l=Mr();cn(o=o||l,!1);const u=Co(o,(e=>e.currentPlacement.split("-")[0])),c=tr(),d=function(e){const[n,r]=t.useState(),o=Co(e,"contentElement");return Yn((()=>{if(!o)return;const e=yn(o).getComputedStyle(o);r(e)}),[o]),n}(o),f=(null==d?void 0:d.getPropertyValue("background-color"))||"none",p=(null==d?void 0:d.getPropertyValue(`border-${u}-color`))||"none",m=t.useMemo((()=>{if(null!=a)return a;if(!d)return 0;const e=function(e){var t;if(!e)return;return null==(t=e.getPropertyValue("box-shadow").match(/0px 0px 0px ([^0]+px)/))?void 0:t[1]}(d);if(e)return Number.parseInt(e);const t=d.getPropertyValue(`border-${u}-width`);return t?Number.parseInt(t):0}),[a,d,u]),h=2*m*(Vl/i),g=Hl[u],v=t.useMemo((()=>e.jsx("svg",{display:"block",viewBox:"0 0 30 30",children:e.jsxs("g",{transform:g,children:[e.jsx("path",{fill:"none",d:_l,mask:`url(#${c})`}),e.jsx("path",{stroke:"none",d:_l}),e.jsx("mask",{id:c,maskUnits:"userSpaceOnUse",children:e.jsx("rect",{x:"-15",y:"0",width:"60",height:"30",fill:"white",stroke:"black"})})]})})),[g,c]);return pn(s=Wt($t({children:v,"aria-hidden":!0},s),{ref:er(o.setArrowElement,s.ref),style:$t({position:"absolute",fontSize:i,width:"1em",height:"1em",pointerEvents:"none",fill:`var(--ak-layer, ${f})`,stroke:`var(--ak-layer-border, ${p})`,strokeWidth:h},s.style)}))}));vr(gr((function(e){return br("div",Bl(e))})));var $l=wr((function(e){var t=e,{store:n,size:r=16}=t,o=Ut(t,["store","size"]);const i=ma();return cn(n=n||i,!1),o=Bl($t({store:n,size:r},o))})),Wl=gr((function(e){return br("div",$l(e))})),Ul=yr([Vr],[zr]),Kl=Ul.useContext,Gl=Ul.useScopedContext;t.createContext(void 0);var ql=wr((function(e){var t=e,{store:n}=t,r=Ut(t,["store"]);const o=Ar();return n=n||o,r=Wt($t({},r),{ref:er(null==n?void 0:n.setAnchorElement,r.ref)})}));gr((function(e){return br("div",ql(e))}));var Xl={top:"4,10 8,6 12,10",right:"6,4 10,8 6,12",bottom:"4,6 8,10 12,6",left:"10,4 6,8 10,12"},Yl=wr((function(n){var r=n,{store:o,placement:i}=r,a=Ut(r,["store","placement"]);const s=Mr();cn(o=o||s,!1);const l=o.useState((e=>i||e.placement)).split("-")[0],u=Xl[l],c=t.useMemo((()=>e.jsx("svg",{display:"block",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,viewBox:"0 0 16 16",height:"1em",width:"1em",children:e.jsx("polyline",{points:u})})),[u]);return pn(a=Wt($t({children:c,"aria-hidden":!0},a),{style:$t({width:"1em",height:"1em",pointerEvents:"none"},a.style)}))}));gr((function(e){return br("span",Yl(e))}));var Zl="button",Ql=wr((function(e){const n=t.useRef(null),r=nr(n,Zl),[o,i]=t.useState((()=>!!r&&kn({tagName:r,type:e.type})));return t.useEffect((()=>{n.current&&i(kn(n.current))}),[]),e=Wt($t({role:o||"a"===r?void 0:"button"},e),{ref:er(n,e.ref)}),e=Ai(e)}));gr((function(e){const t=Ql(e);return br(Zl,t)}));var Jl=Symbol("disclosure"),eu=wr((function(e){var n=e,{store:r,toggleOnClick:o=!0}=n,i=Ut(n,["store","toggleOnClick"]);const a=Cr();cn(r=r||a,!1);const s=t.useRef(null),[l,u]=t.useState(!1),c=r.useState("disclosureElement"),d=r.useState("open");t.useEffect((()=>{let e=c===s.current;(null==c?void 0:c.isConnected)||(null==r||r.setDisclosureElement(s.current),e=!0),u(d&&e)}),[c,r,d]);const f=i.onClick,p=ar(o),[m,h]=ur(i,Jl,!0),g=Qn((e=>{null==f||f(e),e.defaultPrevented||m||p(e)&&(null==r||r.setDisclosureElement(e.currentTarget),null==r||r.toggle())})),v=r.useState("contentElement");return i=Wt($t($t({"aria-expanded":l,"aria-controls":null==v?void 0:v.id},h),i),{ref:er(s,i.ref),onClick:g}),i=Ql(i)}));gr((function(e){return br("button",eu(e))}));var tu=wr((function(e){var t=e,{store:n}=t,r=Ut(t,["store"]);const o=kr();cn(n=n||o,!1);const i=n.useState("contentElement");return r=$t({"aria-haspopup":Mn(i,"dialog")},r),r=eu($t({store:n},r))}));gr((function(e){return br("button",tu(e))}));var nu=wr((function(t){var n=t,{store:r}=n,o=Ut(n,["store"]);const i=Ar();cn(r=r||i,!1);const a=o.onClick,s=Qn((e=>{null==r||r.setAnchorElement(e.currentTarget),null==a||a(e)}));return o=sr(o,(t=>e.jsx(Tr,{value:r,children:t})),[r]),o=Wt($t({},o),{onClick:s}),o=ql($t({store:r},o)),o=tu($t({store:r},o))}));function ru(e={}){var t=e,{combobox:n}=t,r=tn(t,["combobox"]);const o=ao(r.store,oo(n,["value","items","renderedItems","baseElement","arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),i=o.getState(),a=Lo(en(Jt({},r),{store:o,virtualFocus:mn(r.virtualFocus,i.virtualFocus,!0),includesBaseElement:mn(r.includesBaseElement,i.includesBaseElement,!1),activeId:mn(r.activeId,i.activeId,r.defaultActiveId,null),orientation:mn(r.orientation,i.orientation,"vertical")})),s=ra(en(Jt({},r),{store:o,placement:mn(r.placement,i.placement,"bottom-start")})),l=new String(""),u=en(Jt(Jt({},a.getState()),s.getState()),{value:mn(r.value,i.value,r.defaultValue,l),setValueOnMove:mn(r.setValueOnMove,i.setValueOnMove,!1),labelElement:mn(i.labelElement,null),selectElement:mn(i.selectElement,null),listElement:mn(i.listElement,null)}),c=Qr(u,a,s,o);return Jr(c,(()=>no(c,["value","items"],(e=>{if(e.value!==l)return;if(!e.items.length)return;const t=e.items.find((e=>!e.disabled&&null!=e.value));null!=(null==t?void 0:t.value)&&c.setState("value",t.value)})))),Jr(c,(()=>no(c,["mounted"],(e=>{e.mounted||c.setState("activeId",u.activeId)})))),Jr(c,(()=>no(c,["mounted","items","value"],(e=>{if(n)return;if(e.mounted)return;const t=Po(e.value),r=t[t.length-1];if(null==r)return;const o=e.items.find((e=>!e.disabled&&e.value===r));o&&c.setState("activeId",o.id)})))),Jr(c,(()=>ro(c,["setValueOnMove","moves"],(e=>{const{mounted:t,value:n,activeId:r}=c.getState();if(!e.setValueOnMove&&t)return;if(Array.isArray(n))return;if(!e.moves)return;if(!r)return;const o=a.item(r);o&&!o.disabled&&null!=o.value&&c.setState("value",o.value)})))),en(Jt(Jt(Jt({},a),s),c),{combobox:n,setValue:e=>c.setState("value",e),setLabelElement:e=>c.setState("labelElement",e),setSelectElement:e=>c.setState("selectElement",e),setListElement:e=>c.setState("listElement",e)})}function ou(e={}){e=function(e){const t=Bo();return Do(e=Wt($t({},e),{combobox:void 0!==e.combobox?e.combobox:t}))}(e);const[t,n]=Eo(ru,e);return function(e,t,n){return or(t,[n.combobox]),ko(e,n,"value","setValue"),ko(e,n,"setValueOnMove"),Object.assign(oa(Fo(e,t,n),t,n),{combobox:n.combobox})}(t,n,e)}gr((function(e){return br("button",nu(e))}));var iu=wr((function(e){var t=e,{store:n}=t,r=Ut(t,["store"]);const o=Wr();return r=Yl($t({store:n=n||o},r))})),au=gr((function(e){return br("span",iu(e))})),su="";function lu(){su=""}function uu(e,t){var n;const r=(null==(n=e.element)?void 0:n.textContent)||e.children||"value"in e&&e.value;return!!r&&ln(r).trim().toLowerCase().startsWith(t.toLowerCase())}function cu(e,t,n){if(!n)return e;const r=e.find((e=>e.id===n));return r&&uu(r,t)?su!==t&&uu(r,su)?e:(su=t,function(e,t,n=!1){const r=e.findIndex((e=>e.id===t));return[...e.slice(r+1),...n?[ti]:[],...e.slice(0,r)]}(e.filter((e=>uu(e,su))),n).filter((e=>e.id!==n))):e}var du=wr((function(e){var n=e,{store:r,typeahead:o=!0}=n,i=Ut(n,["store","typeahead"]);const a=Fr();cn(r=r||a,!1);const s=i.onKeyDownCapture,l=t.useRef(0),u=Qn((e=>{if(null==s||s(e),e.defaultPrevented)return;if(!o)return;if(!r)return;if(!function(e){const t=e.target;return(!t||!Pn(t))&&(!(" "!==e.key||!su.length)||1===e.key.length&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&/^[\p{Letter}\p{Number}]$/u.test(e.key))}(e))return lu();const{renderedItems:t,items:n,activeId:i,id:a}=r.getState();let u=function(e){return e.filter((e=>!e.disabled))}(n.length>t.length?n:t);const c=`[data-offscreen-id="${a}"]`,d=wn(e.currentTarget).querySelectorAll(c);for(const e of d){const t="true"===e.ariaDisabled||"disabled"in e&&!!e.disabled;u.push({id:e.id,element:e,disabled:t})}if(d.length&&(u=On(u,(e=>e.element))),!function(e,t){if(Vn(e))return!0;const n=e.target;return!!n&&t.some((e=>e.element===n))}(e,u))return lu();e.preventDefault(),window.clearTimeout(l.current),l.current=window.setTimeout((()=>{su=""}),500);const f=e.key.toLowerCase();su+=f,u=cu(u,f,i);const p=u.find((e=>uu(e,su)));p?r.move(p.id):lu()}));return pn(i=Wt($t({},i),{onKeyDownCapture:u}))}));gr((function(e){return br("div",du(e))}));function fu(e,t){return()=>{const n=t();if(!n)return;let r=0,o=e.item(n);const i=o;for(;o&&null==o.value;){const n=t(++r);if(!n)return;if(o=e.item(n),o===i)break}return null==o?void 0:o.id}}var pu=wr((function(n){var r=n,{store:o,name:i,form:a,required:s,showOnKeyDown:l=!0,moveOnKeyDown:u=!0,toggleOnPress:c=!0,toggleOnClick:d=c}=r,f=Ut(r,["store","name","form","required","showOnKeyDown","moveOnKeyDown","toggleOnPress","toggleOnClick"]);const p=Kr();cn(o=o||p,!1);const m=f.onKeyDown,h=ar(l),g=ar(u),v=o.useState("placement").split("-")[0],b=o.useState("value"),w=Array.isArray(b),y=Qn((e=>{var t;if(null==m||m(e),e.defaultPrevented)return;if(!o)return;const{orientation:n,items:r,activeId:i}=o.getState(),a="horizontal"!==n,s="vertical"!==n,l=!!(null==(t=r.find((e=>!e.disabled&&null!=e.value)))?void 0:t.rowId),u={ArrowUp:(l||a)&&fu(o,o.up),ArrowRight:(l||s)&&fu(o,o.next),ArrowDown:(l||a)&&fu(o,o.down),ArrowLeft:(l||s)&&fu(o,o.previous)}[e.key];u&&g(e)&&(e.preventDefault(),o.move(u()));const c="top"===v||"bottom"===v;({ArrowDown:c,ArrowUp:c,ArrowLeft:"left"===v,ArrowRight:"right"===v})[e.key]&&h(e)&&(e.preventDefault(),o.move(i),Un(e.currentTarget,"keyup",o.show))}));f=sr(f,(t=>e.jsx(qr,{value:o,children:t})),[o]);const[x,C]=t.useState(!1),S=t.useRef(!1);t.useEffect((()=>{const e=S.current;S.current=!1,e||C(!1)}),[b]);const k=o.useState((e=>{var t;return null==(t=e.labelElement)?void 0:t.id})),E=f["aria-label"],R=f["aria-labelledby"]||k,P=o.useState((e=>{if(i)return e.items})),N=t.useMemo((()=>[...new Set(null==P?void 0:P.map((e=>e.value)).filter((e=>null!=e)))]),[P]);f=sr(f,(t=>i?e.jsxs(e.Fragment,{children:[e.jsxs("select",{style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},tabIndex:-1,"aria-hidden":!0,"aria-label":E,"aria-labelledby":R,name:i,form:a,required:s,disabled:f.disabled,value:b,multiple:w,onFocus:()=>{var e;return null==(e=null==o?void 0:o.getState().selectElement)?void 0:e.focus()},onChange:e=>{var t;S.current=!0,C(!0),null==o||o.setValue(w?(t=e.target,Array.from(t.selectedOptions).map((e=>e.value))):e.target.value)},children:[Po(b).map((t=>null==t||N.includes(t)?null:e.jsx("option",{value:t,children:t},t))),N.map((t=>e.jsx("option",{value:t,children:t},t)))]}),t]}):t),[o,E,R,i,a,s,b,w,N,f.disabled]);const j=e.jsxs(e.Fragment,{children:[b,e.jsx(au,{})]}),M=o.useState("contentElement");return f=Wt($t({role:"combobox","aria-autocomplete":"none","aria-labelledby":k,"aria-haspopup":Mn(M,"listbox"),"data-autofill":x||void 0,"data-name":i,children:j},f),{ref:er(o.setSelectElement,f.ref),onKeyDown:y}),f=nu($t({store:o,toggleOnClick:d},f)),f=du($t({store:o},f))})),mu=gr((function(e){return br("button",pu(e))}));function hu(t={}){const n=ou(t);return e.jsx(Gr,{value:n,children:t.children})}var gu=t.createContext(!1),vu=e.jsx("svg",{display:"block",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,viewBox:"0 0 16 16",height:"1em",width:"1em",children:e.jsx("polyline",{points:"4,8 7,12 12,4"})});var bu=wr((function(e){var n=e,{store:r,checked:o}=n,i=Ut(n,["store","checked"]);const a=t.useContext(gu),s=function(e){return e.checked?e.children||vu:"function"==typeof e.children?e.children:null}({checked:o=null!=o?o:a,children:i.children});return pn(i=Wt($t({"aria-hidden":!0},i),{children:s,style:$t({width:"1em",height:"1em",pointerEvents:"none"},i.style)}))}));gr((function(e){return br("span",bu(e))}));var wu=wr((function(e){var n=e,{store:r,checked:o}=n,i=Ut(n,["store","checked"]);const a=t.useContext(Xr);return o=null!=o?o:a,i=bu(Wt($t({},i),{checked:o}))})),yu=gr((function(e){return br("span",wu(e))}));function xu(e){const t=e.relatedTarget;return(null==t?void 0:t.nodeType)===Node.ELEMENT_NODE?t:null}var Cu=Symbol("composite-hover");var Su=wr((function(e){var n=e,{store:r,focusOnHover:o=!0,blurOnHoverEnd:i=!!o}=n,a=Ut(n,["store","focusOnHover","blurOnHoverEnd"]);const s=Fr();cn(r=r||s,!1);const l=cr(),u=a.onMouseMove,c=ar(o),d=Qn((e=>{if(null==u||u(e),!e.defaultPrevented&&l()&&c(e)){if(!hi(e.currentTarget)){const e=null==r?void 0:r.getState().baseElement;e&&!mi(e)&&e.focus()}null==r||r.setActiveId(e.currentTarget.id)}})),f=a.onMouseLeave,p=ar(i),m=Qn((e=>{var t;null==f||f(e),e.defaultPrevented||l()&&(function(e){const t=xu(e);return!!t&&Cn(e.currentTarget,t)}(e)||function(e){let t=xu(e);if(!t)return!1;do{if(an(t,Cu)&&t[Cu])return!0;t=t.parentElement}while(t);return!1}(e)||c(e)&&p(e)&&(null==r||r.setActiveId(null),null==(t=null==r?void 0:r.getState().baseElement)||t.focus()))})),h=t.useCallback((e=>{e&&(e[Cu]=!0)}),[]);return pn(a=Wt($t({},a),{ref:er(h,a.ref),onMouseMove:d,onMouseLeave:m}))}));vr(gr((function(e){return br("div",Su(e))})));var ku=wr((function(n){var r,o=n,{store:i,value:a,getItem:s,hideOnClick:l,setValueOnClick:u=null!=a,preventScrollOnKeyDown:c=!0,focusOnHover:d=!0}=o,f=Ut(o,["store","value","getItem","hideOnClick","setValueOnClick","preventScrollOnKeyDown","focusOnHover"]);const p=Ur();cn(i=i||p,!1);const m=tr(f.id),h=fn(f),{listElement:g,multiSelectable:v,selected:b,autoFocus:w}=So(i,{listElement:"listElement",multiSelectable:e=>Array.isArray(e.value),selected:e=>function(e,t){if(null!=t)return null!=e&&(Array.isArray(e)?e.includes(t):e===t)}(e.value,a),autoFocus:e=>null!=a&&(null!=e.value&&((e.activeId===m||!(null==i?void 0:i.item(e.activeId)))&&(Array.isArray(e.value)?e.value[e.value.length-1]===a:e.value===a)))}),y=t.useCallback((e=>{const t=Wt($t({},e),{value:h?void 0:a,children:a});return s?s(t):t}),[h,a,s]);l=null!=l?l:null!=a&&!v;const x=f.onClick,C=ar(u),S=ar(l),k=Qn((e=>{null==x||x(e),e.defaultPrevented||Hn(e)||zn(e)||(C(e)&&null!=a&&(null==i||i.setValue((e=>Array.isArray(e)?e.includes(a)?e.filter((e=>e!==a)):[...e,a]:a))),S(e)&&(null==i||i.hide()))}));f=sr(f,(t=>e.jsx(Xr.Provider,{value:null!=b&&b,children:t})),[b]),f=Wt($t({id:m,role:An(g),"aria-selected":b,children:a},f),{autoFocus:null!=(r=f.autoFocus)?r:w,onClick:k}),f=Oi($t({store:i,getItem:y,preventScrollOnKeyDown:c},f));const E=ar(d);return f=Su(Wt($t({store:i},f),{focusOnHover(e){if(!E(e))return!1;const t=null==i?void 0:i.getState();return!!(null==t?void 0:t.open)}}))})),Eu=vr(gr((function(e){return br("div",ku(e))}))),Ru=wr((function(e){var t=e,{store:n}=t,r=Ut(t,["store"]);const o=Kr();cn(n=n||o,!1);const i=tr(r.id),a=r.onClick,s=Qn((e=>{null==a||a(e),e.defaultPrevented||queueMicrotask((()=>{const e=null==n?void 0:n.getState().selectElement;null==e||e.focus()}))}));return pn(r=Wt($t({id:i},r),{ref:er(n.setLabelElement,r.ref),onClick:s,style:$t({cursor:"default"},r.style)}))})),Pu=vr(gr((function(e){return br("div",Ru(e))}))),Nu=t.createContext(null),ju=wr((function(n){var r=n,{store:o,resetOnEscape:i=!0,hideOnEnter:a=!0,focusOnMove:s=!0,composite:l,alwaysVisible:u}=r,c=Ut(r,["store","resetOnEscape","hideOnEnter","focusOnMove","composite","alwaysVisible"]);const d=Wr();cn(o=o||d,!1);const f=tr(c.id),p=o.useState("value"),m=Array.isArray(p),[h,g]=t.useState(p),v=o.useState("mounted");t.useEffect((()=>{v||g(p)}),[v,p]),i=i&&!m;const b=c.onKeyDown,w=ar(i),y=ar(a),x=Qn((e=>{null==b||b(e),e.defaultPrevented||("Escape"===e.key&&w(e)&&(null==o||o.setValue(h))," "!==e.key&&"Enter"!==e.key||Vn(e)&&y(e)&&(e.preventDefault(),null==o||o.hide()))})),C=t.useContext(Yr),S=t.useState(),[k,E]=C||S,R=t.useMemo((()=>[k,E]),[k]),[P,N]=t.useState(null),j=t.useContext(Nu);t.useEffect((()=>{if(j)return j(o),()=>j(null)}),[j,o]),c=sr(c,(t=>e.jsx(qr,{value:o,children:e.jsx(Nu.Provider,{value:N,children:e.jsx(Yr.Provider,{value:R,children:t})})})),[o,R]);const M=!!o.combobox;l=null!=l?l:!M&&P!==o;const[A,I]=Jn(l?o.setListElement:null),T=rr(A,"role",c.role),O=(l||("listbox"===T||"menu"===T||"tree"===T||"grid"===T))&&m||void 0,L=Ui(v,c.hidden,u),D=L?Wt($t({},c.style),{display:"none"}):c.style;l&&(c=$t({role:"listbox","aria-multiselectable":O},c));const F=o.useState((e=>{var t;return k||(null==(t=e.labelElement)?void 0:t.id)}));return c=Wt($t({id:f,"aria-labelledby":F,hidden:L},c),{ref:er(I,c.ref),style:D,onKeyDown:x}),c=zi(Wt($t({store:o},c),{composite:l})),c=du($t({store:o,typeahead:!M},c))}));gr((function(e){return br("div",ju(e))}));var Mu=wr((function(e){var t=e,{store:n,alwaysVisible:r}=t,o=Ut(t,["store","alwaysVisible"]);const i=Kr();return o=ju($t({store:n=n||i,alwaysVisible:r},o)),o=Rl($t({store:n,alwaysVisible:r},o))})),Au=ns(gr((function(e){return br("div",Mu(e))})),Kr);function Iu(e={}){var t;e.store;const n=null==(t=e.store)?void 0:t.getState(),r=Qr({value:mn(e.value,null==n?void 0:n.value,e.defaultValue,!1)},e.store);return en(Jt({},r),{setValue:e=>r.setState("value",e)})}function Tu(e={}){const[t,n]=Eo(Iu,e);return function(e,t,n){return or(t,[n.store]),ko(e,n,"value","setValue"),e}(t,n,e)}var Ou=yr().useContext,Lu="input";function Du(e,t){t?e.indeterminate=!0:e.indeterminate&&(e.indeterminate=!1)}function Fu(e){return Array.isArray(e)?e.toString():e}var _u=wr((function(n){var r=n,{store:o,name:i,value:a,checked:s,defaultChecked:l}=r,u=Ut(r,["store","name","value","checked","defaultChecked"]);const c=Ou();o=o||c;const[d,f]=t.useState(null!=l&&l),p=Co(o,(e=>{if(void 0!==s)return s;if(void 0===(null==e?void 0:e.value))return d;if(null!=a){if(Array.isArray(e.value)){const t=Fu(a);return e.value.includes(t)}return e.value===a}return!Array.isArray(e.value)&&("boolean"==typeof e.value&&e.value)})),m=t.useRef(null),h=function(e,t){return"input"===e&&(!t||"checkbox"===t)}(nr(m,Lu),u.type),g=p?"mixed"===p:void 0,v="mixed"!==p&&p,b=fn(u),[w,y]=ir();t.useEffect((()=>{const e=m.current;e&&(Du(e,g),h||(e.checked=v,void 0!==i&&(e.name=i),void 0!==a&&(e.value=`${a}`)))}),[w,g,h,v,i,a]);const x=u.onChange,C=Qn((e=>{if(b)return e.stopPropagation(),void e.preventDefault();if(Du(e.currentTarget,g),h||(e.currentTarget.checked=!e.currentTarget.checked,y()),null==x||x(e),e.defaultPrevented)return;const t=e.currentTarget.checked;f(t),null==o||o.setValue((e=>{if(null==a)return t;const n=Fu(a);return Array.isArray(e)?t?e.includes(n)?e:[...e,n]:e.filter((e=>e!==n)):e!==n&&n}))})),S=u.onClick,k=Qn((e=>{null==S||S(e),e.defaultPrevented||h||C(e)}));return u=sr(u,(t=>e.jsx(gu.Provider,{value:v,children:t})),[v]),u=Wt($t({role:h?void 0:"checkbox",type:h?"checkbox":void 0,"aria-checked":p},u),{ref:er(m,u.ref),onChange:C,onClick:k}),u=Ai($t({clickOnEnter:!h},u)),pn($t({name:h?i:void 0,value:h?a:void 0,checked:v},u))})),Vu=gr((function(e){const t=_u(e);return br(Lu,t)})),zu=yr([Vr,da],[zr,fa]),Hu=zu.useContext,Bu=zu.useScopedContext,$u=zu.useProviderContext,Wu=zu.ContextProvider,Uu=zu.ScopedContextProvider;function Ku(e={}){var t=e,{combobox:n,parent:r,menubar:o}=t,i=tn(t,["combobox","parent","menubar"]);const a=!!o&&!r,s=ao(i.store,io(r,["values"]),oo(n,["arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),l=s.getState(),u=Lo(en(Jt({},i),{store:s,orientation:mn(i.orientation,l.orientation,"vertical")})),c=ia(en(Jt({},i),{store:s,placement:mn(i.placement,l.placement,"bottom-start"),timeout:mn(i.timeout,l.timeout,a?0:150),hideTimeout:mn(i.hideTimeout,l.hideTimeout,0)})),d=Qr(en(Jt(Jt({},u.getState()),c.getState()),{initialFocus:mn(l.initialFocus,"container"),values:mn(i.values,l.values,i.defaultValues,{})}),u,c,s);return Jr(d,(()=>no(d,["mounted"],(e=>{e.mounted||d.setState("activeId",null)})))),Jr(d,(()=>no(r,["orientation"],(e=>{d.setState("placement","vertical"===e.orientation?"right-start":"bottom-start")})))),en(Jt(Jt(Jt({},u),c),d),{combobox:n,parent:r,menubar:o,hideAll:()=>{c.hide(),null==r||r.hideAll()},setInitialFocus:e=>d.setState("initialFocus",e),setValues:e=>d.setState("values",e),setValue:(e,t)=>{"__proto__"!==e&&"constructor"!==e&&(Array.isArray(e)||d.setState("values",(n=>{const r=n[e],o=on(t,r);return o===r?n:en(Jt({},n),{[e]:void 0!==o&&o})})))}})}function Gu(e={}){const t=Hu(),n=Kl(),r=Bo();e=Wt($t({},e),{parent:void 0!==e.parent?e.parent:t,menubar:void 0!==e.menubar?e.menubar:n,combobox:void 0!==e.combobox?e.combobox:r});const[o,i]=Eo(Ku,e);return function(e,t,n){return or(t,[n.combobox,n.parent,n.menubar]),ko(e,n,"values","setValues"),Object.assign(aa(Fo(e,t,n),t,n),{combobox:n.combobox,parent:n.parent,menubar:n.menubar})}(o,i,e)}t.createContext(void 0);var qu=wr((function(n){var r=n,{store:o,alwaysVisible:i,composite:a}=r,s=Ut(r,["store","alwaysVisible","composite"]);const l=$u();cn(o=o||l,!1);const u=o.parent,c=o.menubar,d=!!u,f=tr(s.id),p=s.onKeyDown,m=o.useState((e=>e.placement.split("-")[0])),h=o.useState((e=>"both"===e.orientation?void 0:e.orientation)),g="vertical"!==h,v=Co(c,(e=>!!e&&"vertical"!==e.orientation)),b=Qn((e=>{if(null==p||p(e),!e.defaultPrevented){if(d||c&&!g){const t={ArrowRight:()=>"left"===m&&!g,ArrowLeft:()=>"right"===m&&!g,ArrowUp:()=>"bottom"===m&&g,ArrowDown:()=>"top"===m&&g}[e.key];if(null==t?void 0:t())return e.stopPropagation(),e.preventDefault(),null==o?void 0:o.hide()}if(c){const t={ArrowRight:()=>{if(v)return c.next()},ArrowLeft:()=>{if(v)return c.previous()},ArrowDown:()=>{if(!v)return c.next()},ArrowUp:()=>{if(!v)return c.previous()}}[e.key],n=null==t?void 0:t();void 0!==n&&(e.stopPropagation(),e.preventDefault(),c.move(n))}}}));s=sr(s,(t=>e.jsx(Uu,{value:o,children:t})),[o]);const w=function(e){var n=e,{store:r}=n,o=Ut(n,["store"]);const[i,a]=t.useState(void 0),s=o["aria-label"],l=Co(r,"disclosureElement"),u=Co(r,"contentElement");return t.useEffect((()=>{const e=l;e&&u&&(s||u.hasAttribute("aria-label")?a(void 0):e.id&&a(e.id))}),[s,l,u]),i}($t({store:o},s)),y=Ui(o.useState("mounted"),s.hidden,i),x=y?Wt($t({},s.style),{display:"none"}):s.style;s=Wt($t({id:f,"aria-labelledby":w,hidden:y},s),{ref:er(f?o.setContentElement:null,s.ref),style:x,onKeyDown:b});const C=!!o.combobox;return(a=null!=a?a:!C)&&(s=$t({role:"menu","aria-orientation":h},s)),s=zi($t({store:o,composite:a},s)),s=du($t({store:o,typeahead:!C},s))}));gr((function(e){return br("div",qu(e))}));var Xu=wr((function(e){var n=e,{store:r,modal:o=!1,portal:i=!!o,hideOnEscape:a=!0,autoFocusOnShow:s=!0,hideOnHoverOutside:l,alwaysVisible:u}=n,c=Ut(n,["store","modal","portal","hideOnEscape","autoFocusOnShow","hideOnHoverOutside","alwaysVisible"]);const d=$u();cn(r=r||d,!1);const f=t.useRef(null),p=r.parent,m=r.menubar,h=!!p,g=!!m&&!h;c=Wt($t({},c),{ref:er(f,c.ref)});const v=qu($t({store:r,alwaysVisible:u},c)),{"aria-labelledby":b}=v;c=Ut(v,["aria-labelledby"]);const[w,y]=t.useState(),x=r.useState("autoFocusOnShow"),C=r.useState("initialFocus"),S=r.useState("baseElement"),k=r.useState("renderedItems");t.useEffect((()=>{let e=!1;return y((n=>{var r,o,i;if(e)return;if(!x)return;if(null==(r=null==n?void 0:n.current)?void 0:r.isConnected)return n;const a=t.createRef();switch(C){case"first":a.current=(null==(o=k.find((e=>!e.disabled&&e.element)))?void 0:o.element)||null;break;case"last":a.current=(null==(i=[...k].reverse().find((e=>!e.disabled&&e.element)))?void 0:i.element)||null;break;default:a.current=S}return a})),()=>{e=!0}}),[r,x,C,k,S]);const E=!h&&o,R=!!s,P=!!w||!!c.initialFocus||!!E,N=Co(r.combobox||r,"contentElement"),j=Co((null==p?void 0:p.combobox)||p,"contentElement"),M=t.useMemo((()=>{if(!j)return;if(!N)return;const e=N.getAttribute("role"),t=j.getAttribute("role");return"menu"!==t&&"menubar"!==t||"menu"!==e?j:void 0}),[N,j]);return void 0!==M&&(c=$t({preserveTabOrderAnchor:M},c)),c=jl(Wt($t({store:r,alwaysVisible:u,initialFocus:w,autoFocusOnShow:R?P&&s:x||!!E},c),{hideOnEscape:e=>!dn(a,e)&&(null==r||r.hideAll(),!0),hideOnHoverOutside(e){const t=null==r?void 0:r.getState().disclosureElement;return!!("function"==typeof l?l(e):null!=l?l:h||g&&(!t||!hi(t)))&&(!!e.defaultPrevented||(!h||(!t||(function(e,t,n){const r=new Event(t,n);e.dispatchEvent(r)}(t,"mouseout",e),!hi(t)||(requestAnimationFrame((()=>{hi(t)||null==r||r.hide()})),!1)))))},modal:E,portal:i,backdrop:!h&&c.backdrop})),c=$t({"aria-labelledby":b},c)})),Yu=ns(gr((function(e){return br("div",Xu(e))})),$u);function Zu(t={}){const n=Gu(t);return e.jsx(Wu,{value:n,children:t.children})}var Qu=wr((function(e){var t=e,{store:n,hideOnClick:r=!0,preventScrollOnKeyDown:o=!0,focusOnHover:i,blurOnHoverEnd:a}=t,s=Ut(t,["store","hideOnClick","preventScrollOnKeyDown","focusOnHover","blurOnHoverEnd"]);const l=Bu(!0),u=Gl();cn(n=n||l||u,!1);const c=s.onClick,d=ar(r),f="hideAll"in n?n.hideAll:void 0,p=!!f,m=Qn((e=>{if(null==c||c(e),e.defaultPrevented)return;if(Hn(e))return;if(zn(e))return;if(!f)return;"menu"!==e.currentTarget.getAttribute("aria-haspopup")&&d(e)&&f()})),h=An(Co(n,(e=>"contentElement"in e?e.contentElement:null)),"menuitem");return s=Wt($t({role:h},s),{onClick:m}),s=Oi($t({store:n,preventScrollOnKeyDown:o},s)),s=Su(Wt($t({store:n},s),{focusOnHover(e){if(!n)return!1;if(!("function"==typeof i?i(e):null==i||i))return!1;const{baseElement:t,items:r}=n.getState();return p?(e.currentTarget.hasAttribute("aria-expanded")&&e.currentTarget.focus(),!0):!!function(e,t,n){var r;if(!e)return!1;if(hi(e))return!0;const o=null==t?void 0:t.find((e=>{var t;return e.element!==n&&"true"===(null==(t=e.element)?void 0:t.getAttribute("aria-expanded"))})),i=null==(r=null==o?void 0:o.element)?void 0:r.getAttribute("aria-controls");if(!i)return!1;const a=wn(e).getElementById(i);return!(!a||!hi(a)&&!a.querySelector("[role=menuitem][aria-expanded=true]"))}(t,r,e.currentTarget)&&(e.currentTarget.focus(),!0)},blurOnHoverEnd:e=>"function"==typeof a?a(e):null!=a?a:p})),s})),Ju=vr(gr((function(e){return br("div",Qu(e))}))),ec=wr((function(e){var t=e,{store:n}=t,r=Ut(t,["store"]);const o=Hu();return r=ea($t({store:n=n||o},r))})),tc=gr((function(e){return br("hr",ec(e))}));t.createContext(null),t.createContext(null);var nc=yr([Vr],[zr]).useContext,rc=Fn()&&Ln();function oc(e={}){var t=e,{tag:n}=t,r=tn(t,["tag"]);const o=ao(r.store,io(n,["value","rtl"])),i=null==n?void 0:n.getState(),a=null==o?void 0:o.getState(),s=mn(r.activeId,null==a?void 0:a.activeId,r.defaultActiveId,null),l=Lo(en(Jt({},r),{activeId:s,includesBaseElement:mn(r.includesBaseElement,null==a?void 0:a.includesBaseElement,!0),orientation:mn(r.orientation,null==a?void 0:a.orientation,"vertical"),focusLoop:mn(r.focusLoop,null==a?void 0:a.focusLoop,!0),focusWrap:mn(r.focusWrap,null==a?void 0:a.focusWrap,!0),virtualFocus:mn(r.virtualFocus,null==a?void 0:a.virtualFocus,!0)})),u=ra(en(Jt({},r),{placement:mn(r.placement,null==a?void 0:a.placement,"bottom-start")})),c=mn(r.value,null==a?void 0:a.value,r.defaultValue,""),d=mn(r.selectedValue,null==a?void 0:a.selectedValue,null==i?void 0:i.values,r.defaultSelectedValue,""),f=Array.isArray(d),p=en(Jt(Jt({},l.getState()),u.getState()),{value:c,selectedValue:d,resetValueOnSelect:mn(r.resetValueOnSelect,null==a?void 0:a.resetValueOnSelect,f),resetValueOnHide:mn(r.resetValueOnHide,null==a?void 0:a.resetValueOnHide,f&&!n),activeValue:null==a?void 0:a.activeValue}),m=Qr(p,l,u,o);return rc&&Jr(m,(()=>no(m,["virtualFocus"],(()=>{m.setState("virtualFocus",!1)})))),Jr(m,(()=>{if(n)return sn(no(m,["selectedValue"],(e=>{Array.isArray(e.selectedValue)&&n.setValues(e.selectedValue)})),no(n,["values"],(e=>{m.setState("selectedValue",e.values)})))})),Jr(m,(()=>no(m,["resetValueOnHide","mounted"],(e=>{e.resetValueOnHide&&(e.mounted||m.setState("value",c))})))),Jr(m,(()=>no(m,["open"],(e=>{e.open||(m.setState("activeId",s),m.setState("moves",0))})))),Jr(m,(()=>no(m,["moves","activeId"],((e,t)=>{e.moves===t.moves&&m.setState("activeValue",void 0)})))),Jr(m,(()=>ro(m,["moves","renderedItems"],((e,t)=>{if(e.moves===t.moves)return;const{activeId:n}=m.getState(),r=l.item(n);m.setState("activeValue",null==r?void 0:r.value)})))),en(Jt(Jt(Jt({},u),l),m),{tag:n,setValue:e=>m.setState("value",e),resetValue:()=>m.setState("value",p.value),setSelectedValue:e=>m.setState("selectedValue",e)})}function ic(e={}){e=function(e){const t=nc();return Do(e=Wt($t({},e),{tag:void 0!==e.tag?e.tag:t}))}(e);const[t,n]=Eo(oc,e);return function(e,t,n){return or(t,[n.tag]),ko(e,n,"value","setValue"),ko(e,n,"selectedValue","setSelectedValue"),ko(e,n,"resetValueOnHide"),ko(e,n,"resetValueOnSelect"),Object.assign(Fo(oa(e,t,n),t,n),{tag:n.tag})}(t,n,e)}function ac(e,t,n){if(!n)return!1;const r=e.find((e=>!e.disabled&&e.value));return(null==r?void 0:r.value)===t}function sc(e,t){return!!t&&(null!=e&&(e=ln(e),t.length>e.length&&0===t.toLowerCase().indexOf(e.toLowerCase())))}var lc=wr((function(e){var n=e,{store:r,focusable:o=!0,autoSelect:i=!1,getAutoSelectId:a,setValueOnChange:s,showMinLength:l=0,showOnChange:u,showOnMouseDown:c,showOnClick:d=c,showOnKeyDown:f,showOnKeyPress:p=f,blurActiveItemOnClick:m,setValueOnClick:h=!0,moveOnKeyPress:g=!0,autoComplete:v="list"}=n,b=Ut(n,["store","focusable","autoSelect","getAutoSelectId","setValueOnChange","showMinLength","showOnChange","showOnMouseDown","showOnClick","showOnKeyDown","showOnKeyPress","blurActiveItemOnClick","setValueOnClick","moveOnKeyPress","autoComplete"]);const w=Bo();cn(r=r||w,!1);const y=t.useRef(null),[x,C]=ir(),S=t.useRef(!1),k=t.useRef(!1),E=r.useState((e=>e.virtualFocus&&i)),R="inline"===v||"both"===v,[P,N]=t.useState(R);!function(e,n){const r=t.useRef(!1);Yn((()=>{if(r.current)return e();r.current=!0}),n),Yn((()=>()=>{r.current=!1}),[])}((()=>{R&&N(!0)}),[R]);const j=r.useState("value"),M=t.useRef();t.useEffect((()=>no(r,["selectedValue","activeId"],((e,t)=>{M.current=t.selectedValue}))),[]);const A=r.useState((e=>{var t;if(R&&P){if(e.activeValue&&Array.isArray(e.selectedValue)){if(e.selectedValue.includes(e.activeValue))return;if(null==(t=M.current)?void 0:t.includes(e.activeValue))return}return e.activeValue}})),I=r.useState("renderedItems"),T=r.useState("open"),O=r.useState("contentElement"),L=t.useMemo((()=>{if(!R)return j;if(!P)return j;if(ac(I,A,E)){if(sc(j,A)){const e=(null==A?void 0:A.slice(j.length))||"";return j+e}return j}return A||j}),[R,P,I,A,E,j]);t.useEffect((()=>{const e=y.current;if(!e)return;const t=()=>N(!0);return e.addEventListener("combobox-item-move",t),()=>{e.removeEventListener("combobox-item-move",t)}}),[]),t.useEffect((()=>{if(!R)return;if(!P)return;if(!A)return;if(!ac(I,A,E))return;if(!sc(j,A))return;let e=nn;return queueMicrotask((()=>{const t=y.current;if(!t)return;const{start:n,end:r}=jn(t),o=j.length,i=A.length;Tn(t,o,i),e=()=>{if(!mi(t))return;const{start:e,end:a}=jn(t);e===o&&a===i&&Tn(t,n,r)}})),()=>e()}),[x,R,P,A,I,E,j]);const D=t.useRef(null),F=Qn(a),_=t.useRef(null);t.useEffect((()=>{if(!T)return;if(!O)return;const e=In(O);if(!e)return;D.current=e;const t=()=>{S.current=!1},n=()=>{if(!r)return;if(!S.current)return;const{activeId:e}=r.getState();null!==e&&e!==_.current&&(S.current=!1)},o={passive:!0,capture:!0};return e.addEventListener("wheel",t,o),e.addEventListener("touchmove",t,o),e.addEventListener("scroll",n,o),()=>{e.removeEventListener("wheel",t,!0),e.removeEventListener("touchmove",t,!0),e.removeEventListener("scroll",n,!0)}}),[T,O,r]),Yn((()=>{j&&(k.current||(S.current=!0))}),[j]),Yn((()=>{"always"!==E&&T||(S.current=T)}),[E,T]);const V=r.useState("resetValueOnSelect");or((()=>{var e,t;const n=S.current;if(!r)return;if(!T)return;if(!n&&!V)return;const{baseElement:o,contentElement:i,activeId:a}=r.getState();if(!o||mi(o)){if(null==i?void 0:i.hasAttribute("data-placing")){const e=new MutationObserver(C);return e.observe(i,{attributeFilter:["data-placing"]}),()=>e.disconnect()}if(E&&n){const t=F(I),n=void 0!==t?t:null!=(e=function(e){const t=e.find((e=>{var t;return!e.disabled&&"tab"!==(null==(t=e.element)?void 0:t.getAttribute("role"))}));return null==t?void 0:t.id}(I))?e:r.first();_.current=n,r.move(null!=n?n:null)}else{const e=null==(t=r.item(a||r.first()))?void 0:t.element;e&&"scrollIntoView"in e&&e.scrollIntoView({block:"nearest",inline:"nearest"})}}}),[r,T,x,j,E,V,F,I]),t.useEffect((()=>{if(!R)return;const e=y.current;if(!e)return;const t=[e,O].filter((e=>!!e)),n=e=>{t.every((t=>Wn(e,t)))&&(null==r||r.setValue(L))};for(const e of t)e.addEventListener("focusout",n);return()=>{for(const e of t)e.removeEventListener("focusout",n)}}),[R,O,r,L]);const z=e=>e.currentTarget.value.length>=l,H=b.onChange,B=ar(null!=u?u:z),$=ar(null!=s?s:!r.tag),W=Qn((e=>{if(null==H||H(e),e.defaultPrevented)return;if(!r)return;const t=e.currentTarget,{value:n,selectionStart:o,selectionEnd:i}=t,a=e.nativeEvent;if(S.current=!0,function(e){return"input"===e.type}(a)&&(a.isComposing&&(S.current=!1,k.current=!0),R)){const e="insertText"===a.inputType||"insertCompositionText"===a.inputType,t=o===n.length;N(e&&t)}if($(e)){const e=n===r.getState().value;r.setValue(n),queueMicrotask((()=>{Tn(t,o,i)})),R&&E&&e&&C()}B(e)&&r.show(),E&&S.current||r.setActiveId(null)})),U=b.onCompositionEnd,K=Qn((e=>{S.current=!0,k.current=!1,null==U||U(e),e.defaultPrevented||E&&C()})),G=b.onMouseDown,q=ar(null!=m?m:()=>!!(null==r?void 0:r.getState().includesBaseElement)),X=ar(h),Y=ar(null!=d?d:z),Z=Qn((e=>{null==G||G(e),e.defaultPrevented||e.button||e.ctrlKey||r&&(q(e)&&r.setActiveId(null),X(e)&&r.setValue(L),Y(e)&&Un(e.currentTarget,"mouseup",r.show))})),Q=b.onKeyDown,J=ar(null!=p?p:z),ee=Qn((e=>{if(null==Q||Q(e),e.repeat||(S.current=!1),e.defaultPrevented)return;if(e.ctrlKey)return;if(e.altKey)return;if(e.shiftKey)return;if(e.metaKey)return;if(!r)return;const{open:t}=r.getState();t||"ArrowUp"!==e.key&&"ArrowDown"!==e.key||J(e)&&(e.preventDefault(),r.show())})),te=b.onBlur,ne=Qn((e=>{S.current=!1,null==te||te(e),e.defaultPrevented})),re=tr(b.id),oe=function(e){return"inline"===e||"list"===e||"both"===e||"none"===e}(v)?v:void 0,ie=r.useState((e=>null===e.activeId));return b=Wt($t({id:re,role:"combobox","aria-autocomplete":oe,"aria-haspopup":Mn(O,"listbox"),"aria-expanded":T,"aria-controls":null==O?void 0:O.id,"data-active-item":ie||void 0,value:L},b),{ref:er(y,b.ref),onChange:W,onCompositionEnd:K,onMouseDown:Z,onKeyDown:ee,onBlur:ne}),b=zi(Wt($t({store:r,focusable:o},b),{moveOnKeyPress:e=>!dn(g,e)&&(R&&N(!0),!0)})),b=ql($t({store:r},b)),$t({autoComplete:"off"},b)})),uc=gr((function(e){return br("input",lc(e))}));function cc(t={}){const n=ic(t);return e.jsx($o,{value:n,children:t.children})}var dc=e.jsxs("svg",{"aria-hidden":"true",display:"block",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,width:"1em",height:"1em",pointerEvents:"none",children:[e.jsx("line",{x1:"5",y1:"5",x2:"11",y2:"11"}),e.jsx("line",{x1:"5",y1:"11",x2:"11",y2:"5"})]}),fc=wr((function(n){var r=n,{store:o,hideWhenEmpty:i}=r,a=Ut(r,["store","hideWhenEmpty"]);const s=Bo();cn(o=o||s,!1);const l=a.onClick,u=Qn((e=>{null==l||l(e),e.defaultPrevented||(null==o||o.setValue(""),null==o||o.move(null))})),c=o.useState((e=>{var t;return null==(t=e.baseElement)?void 0:t.id})),d=o.useState((e=>""===e.value));return a=sr(a,(n=>i&&d?e.jsx(t.Fragment,{}):n),[i,d]),a=Wt($t({children:dc,"aria-label":"Clear input","aria-controls":c},a),{onClick:u}),a=Ql(a)})),pc=gr((function(e){return br("button",fc(e))}));function mc(e){var t;return null!=(t={menu:"menuitem",listbox:"option",tree:"treeitem"}[e])?t:"option"}var hc=wr((function(n){var r,o=n,{store:i,value:a,hideOnClick:s,setValueOnClick:l,selectValueOnClick:u=!0,resetValueOnSelect:c,focusOnHover:d=!1,moveOnKeyPress:f=!0,getItem:p}=o,m=Ut(o,["store","value","hideOnClick","setValueOnClick","selectValueOnClick","resetValueOnSelect","focusOnHover","moveOnKeyPress","getItem"]);const h=Ho();cn(i=i||h,!1);const{resetValueOnSelectState:g,multiSelectable:v,selected:b}=So(i,{resetValueOnSelectState:"resetValueOnSelect",multiSelectable:e=>Array.isArray(e.selectedValue),selected:e=>function(e,t){if(null!=t)return null!=e&&(Array.isArray(e)?e.includes(t):e===t)}(e.selectedValue,a)}),w=t.useCallback((e=>{const t=Wt($t({},e),{value:a});return p?p(t):t}),[a,p]);l=null!=l?l:!v,s=null!=s?s:null!=a&&!v;const y=m.onClick,x=ar(l),C=ar(u),S=ar(null!=(r=null!=c?c:g)?r:v),k=ar(s),E=Qn((e=>{null==y||y(e),e.defaultPrevented||Hn(e)||zn(e)||(null!=a&&(C(e)&&(S(e)&&(null==i||i.resetValue()),null==i||i.setSelectedValue((e=>Array.isArray(e)?e.includes(a)?e.filter((e=>e!==a)):[...e,a]:a))),x(e)&&(null==i||i.setValue(a))),k(e)&&(null==i||i.hide()))})),R=m.onKeyDown,P=Qn((e=>{if(null==R||R(e),e.defaultPrevented)return;const t=null==i?void 0:i.getState().baseElement;if(!t)return;if(mi(t))return;(1===e.key.length||"Backspace"===e.key||"Delete"===e.key)&&(queueMicrotask((()=>t.focus())),Pn(t)&&(null==i||i.setValue(t.value)))}));v&&null!=b&&(m=$t({"aria-selected":b},m)),m=sr(m,(t=>e.jsx(Uo.Provider,{value:a,children:e.jsx(Ko.Provider,{value:null!=b&&b,children:t})})),[a,b]);const N=t.useContext(_o);m=Wt($t({role:mc(N),children:a},m),{onClick:E,onKeyDown:P});const j=ar(f);return m=Oi(Wt($t({store:i},m),{getItem:w,moveOnKeyPress:e=>{if(!j(e))return!1;const t=new Event("combobox-item-move"),n=null==i?void 0:i.getState().baseElement;return null==n||n.dispatchEvent(t),!0}})),m=Su($t({store:i,focusOnHover:d},m))})),gc=vr(gr((function(e){return br("div",hc(e))}))),vc=wr((function(e){var t=e,{store:n}=t,r=Ut(t,["store"]);const o=Bo();cn(n=n||o,!1);const i=n.useState((e=>{var t;return null==(t=e.baseElement)?void 0:t.id}));return pn(r=$t({htmlFor:i},r))})),bc=vr(gr((function(e){return br("label",vc(e))}))),wc=wr((function(n){var r=n,{store:o,alwaysVisible:i}=r,a=Ut(r,["store","alwaysVisible"]);const s=Ho(!0),l=zo(),u=!!(o=o||l)&&o===s;cn(o,!1);const c=t.useRef(null),d=tr(a.id),f=o.useState("mounted"),p=Ui(f,a.hidden,i),m=p?Wt($t({},a.style),{display:"none"}):a.style,h=o.useState((e=>Array.isArray(e.selectedValue))),g=rr(c,"role",a.role),v=("listbox"===g||"tree"===g||"grid"===g)&&h||void 0,[b,w]=t.useState(!1),y=o.useState("contentElement");Yn((()=>{if(!f)return;const e=c.current;if(!e)return;if(y!==e)return;const t=()=>{w(!!e.querySelector("[role='listbox']"))},n=new MutationObserver(t);return n.observe(e,{subtree:!0,childList:!0,attributeFilter:["role"]}),t(),()=>n.disconnect()}),[f,y]),b||(a=$t({role:"listbox","aria-multiselectable":v},a)),a=sr(a,(t=>e.jsx(Wo,{value:o,children:e.jsx(_o.Provider,{value:g,children:t})})),[o,g]);const x=!d||s&&u?null:o.setContentElement;return pn(a=Wt($t({id:d,hidden:p},a),{ref:er(x,c,a.ref),style:m}))})),yc=gr((function(e){return br("div",wc(e))}));var xc=wr((function(e){var n=e,{store:r,modal:o,tabIndex:i,alwaysVisible:a,autoFocusOnHide:s=!0,hideOnInteractOutside:l=!0}=n,u=Ut(n,["store","modal","tabIndex","alwaysVisible","autoFocusOnHide","hideOnInteractOutside"]);const c=Bo();cn(r=r||c,!1);const d=r.useState("baseElement"),f=t.useRef(!1),p=Co(r.tag,(e=>null==e?void 0:e.renderedItems.length));return u=wc($t({store:r,alwaysVisible:a},u)),u=Rl(Wt($t({store:r,modal:o,alwaysVisible:a,backdrop:!1,autoFocusOnShow:!1,finalFocus:d,preserveTabOrderAnchor:null,unstable_treeSnapshotKey:p},u),{getPersistentElements(){var e;const t=(null==(e=u.getPersistentElements)?void 0:e.call(u))||[];if(!o)return t;if(!r)return t;const{contentElement:n,baseElement:i}=r.getState();if(!i)return t;const a=wn(i),s=[];if((null==n?void 0:n.id)&&s.push(`[aria-controls~="${n.id}"]`),(null==i?void 0:i.id)&&s.push(`[aria-controls~="${i.id}"]`),!s.length)return[...t,i];const l=s.join(","),c=a.querySelectorAll(l);return[...t,...c]},autoFocusOnHide:e=>!dn(s,e)&&(!f.current||(f.current=!1,!1)),hideOnInteractOutside(e){var t,n;const o=null==r?void 0:r.getState(),i=null==(t=null==o?void 0:o.contentElement)?void 0:t.id,a=null==(n=null==o?void 0:o.baseElement)?void 0:n.id;if(function(e,...t){if(!e)return!1;if("id"in e){const n=t.filter(Boolean).map((e=>`[aria-controls~="${e}"]`)).join(", ");return!!n&&e.matches(n)}return!1}(e.target,i,a))return!1;const s="function"==typeof l?l(e):l;return s&&(f.current="click"===e.type),s}})),u})),Cc=ns(gr((function(e){return br("div",xc(e))})),Bo);l("/* AnimatedTabs.css */\n.animated-tab-panel {\n transition-property: opacity, translate;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 300ms;\n animation-duration: 300ms;\n}\n/* Sliding underline animation for tabs */\n.animated-tab-list {\n position: relative;\n}\n.animated-tab-list::after {\n content: '';\n position: absolute;\n bottom: 0;\n height: 2px;\n background-color: currentColor; /* Inherit color from active tab */\n transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n left: 0;\n left: var(--tab-left, 0);\n width: 0;\n width: var(--tab-width, 0);\n}\n.animated-tab {\n position: relative;\n}\n.animated-tab[data-state='active'] {\n border-bottom-color: transparent !important;\n}\n.animated-tab-panel[data-enter] {\n opacity: 1 !important;\n translate: 0 !important;\n}\n@media (prefers-reduced-motion: reduce) {\n .animated-tab-panel {\n transition: none;\n }\n}\n.animated-tab-panel:not([data-open]) {\n position: absolute;\n top: 0px;\n}\n.animated-panels:has(> [data-was-open]) > .animated-tab-panel {\n opacity: 0;\n translate: -100%;\n}\n.animated-panels [data-was-open] ~ .animated-tab-panel,\n.animated-panels [data-open] ~ .animated-tab-panel {\n translate: 100%;\n}\n");const Sc=t.forwardRef((function(n,r){const o=t.useRef(null);return t.useEffect((()=>{const e=o.current;if(!e)return;const t=()=>{const t="true"===e.getAttribute("aria-selected");e.setAttribute("data-state",t?"active":"inactive")};t();const n=new MutationObserver(t);return n.observe(e,{attributes:!0,attributeFilter:["aria-selected"]}),()=>n.disconnect()}),[]),e.jsx(Fi,{ref:e=>{o.current=e,"function"==typeof r?r(e):r&&(r.current=e)},...n,className:`animated-tab aria-selected:text-token-text-primary flex select-none items-center justify-center gap-2 whitespace-nowrap border-none text-sm font-medium outline-none transition-colors aria-disabled:opacity-50 ${n.className||""}`})})),kc=t.forwardRef((function(n,r){const o=function(e){const n=t.useRef(void 0);return t.useEffect((()=>{n.current=e}),[e]),n.current}(Co(Yo(),"selectedId")),i=n.tabId&&o===n.tabId;return e.jsx(Qi,{ref:r,...n,"data-was-open":i||void 0,className:`animated-tab-panel max-w-full ${n.className||""}`})}));const Ec="dismissableLayer.update",Rc="dismissableLayer.pointerDownOutside",Pc="dismissableLayer.focusOutside";let Nc;const jc=t.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Mc=t.forwardRef(((e,n)=>{var r;const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:c,...d}=e,f=t.useContext(jc),[m,h]=t.useState(null),g=null!==(r=null==m?void 0:m.ownerDocument)&&void 0!==r?r:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,v]=t.useState({}),b=p(n,(e=>h(e))),w=Array.from(f.layers),[C]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),k=w.indexOf(C),E=m?w.indexOf(m):-1,R=f.layersWithOutsidePointerEventsDisabled.size>0,P=E>=k,N=function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=x(e),o=t.useRef(!1),i=t.useRef((()=>{}));return t.useEffect((()=>{const e=e=>{if(e.target&&!o.current){const t={originalEvent:e};function a(){Ic(Rc,r,t,{discrete:!0})}"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=a,n.addEventListener("click",i.current,{once:!0})):a()}else n.removeEventListener("click",i.current);o.current=!1},t=window.setTimeout((()=>{n.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}}),[n,r]),{onPointerDownCapture:()=>o.current=!0}}((e=>{const t=e.target,n=[...f.branches].some((e=>e.contains(t)));P&&!n&&(null==a||a(e),null==l||l(e),e.defaultPrevented||null==c||c())}),g),j=function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=x(e),o=t.useRef(!1);return t.useEffect((()=>{const e=e=>{if(e.target&&!o.current){Ic(Pc,r,{originalEvent:e},{discrete:!1})}};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)}),[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}((e=>{const t=e.target;[...f.branches].some((e=>e.contains(t)))||(null==s||s(e),null==l||l(e),e.defaultPrevented||null==c||c())}),g);return function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=x(e);t.useEffect((()=>{const e=e=>{"Escape"===e.key&&r(e)};return n.addEventListener("keydown",e),()=>n.removeEventListener("keydown",e)}),[r,n])}((e=>{E===f.layers.size-1&&(null==i||i(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))}),g),t.useEffect((()=>{if(m)return o&&(0===f.layersWithOutsidePointerEventsDisabled.size&&(Nc=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(m)),f.layers.add(m),Ac(),()=>{o&&1===f.layersWithOutsidePointerEventsDisabled.size&&(g.body.style.pointerEvents=Nc)}}),[m,g,o,f]),t.useEffect((()=>()=>{m&&(f.layers.delete(m),f.layersWithOutsidePointerEventsDisabled.delete(m),Ac())}),[m,f]),t.useEffect((()=>{const e=()=>v({});return document.addEventListener(Ec,e),()=>document.removeEventListener(Ec,e)}),[]),t.createElement(S.div,u({},d,{ref:b,style:{pointerEvents:R?P?"auto":"none":void 0,...e.style},onFocusCapture:y(e.onFocusCapture,j.onFocusCapture),onBlurCapture:y(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:y(e.onPointerDownCapture,N.onPointerDownCapture)}))}));function Ac(){const e=new CustomEvent(Ec);document.dispatchEvent(e)}function Ic(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?k(o,i):o.dispatchEvent(i)}const Tc=Mc,Oc="focusScope.autoFocusOnMount",Lc="focusScope.autoFocusOnUnmount",Dc={bubbles:!1,cancelable:!0},Fc=t.forwardRef(((e,n)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...s}=e,[l,c]=t.useState(null),d=x(i),f=x(a),m=t.useRef(null),h=p(n,(e=>c(e))),g=t.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;t.useEffect((()=>{if(o){function e(e){if(g.paused||!l)return;const t=e.target;l.contains(t)?m.current=t:Hc(m.current,{select:!0})}function t(e){if(g.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||Hc(m.current,{select:!0}))}function n(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&Hc(l)}document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[o,l,g.paused]),t.useEffect((()=>{if(l){Bc.add(g);const t=document.activeElement;if(!l.contains(t)){const n=new CustomEvent(Oc,Dc);l.addEventListener(Oc,d),l.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Hc(r,{select:t}),document.activeElement!==n)return}((e=_c(l),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&Hc(l))}return()=>{l.removeEventListener(Oc,d),setTimeout((()=>{const e=new CustomEvent(Lc,Dc);l.addEventListener(Lc,f),l.dispatchEvent(e),e.defaultPrevented||Hc(null!=t?t:document.body,{select:!0}),l.removeEventListener(Lc,f),Bc.remove(g)}),0)}}var e}),[l,d,f,g]);const v=t.useCallback((e=>{if(!r&&!o)return;if(g.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[o,i]=function(e){const t=_c(e),n=Vc(t,e),r=Vc(t.reverse(),e);return[n,r]}(t);o&&i?e.shiftKey||n!==i?e.shiftKey&&n===o&&(e.preventDefault(),r&&Hc(i,{select:!0})):(e.preventDefault(),r&&Hc(o,{select:!0})):n===t&&e.preventDefault()}}),[r,o,g.paused]);return t.createElement(S.div,u({tabIndex:-1},s,{ref:h,onKeyDown:v}))}));function _c(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Vc(e,t){for(const n of e)if(!zc(n,{upTo:t}))return n}function zc(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Hc(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const Bc=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=$c(e,t),e.unshift(t)},remove(t){var n;e=$c(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function $c(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}const Wc=t.forwardRef(((e,r)=>{var o;const{container:i=(null===globalThis||void 0===globalThis||null===(o=globalThis.document)||void 0===o?void 0:o.body),...a}=e;return i?n.createPortal(t.createElement(S.div,u({},a,{ref:r})),i):null}));let Uc=0;function Kc(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var Gc=function(){return Gc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Gc.apply(this,arguments)};function qc(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function Xc(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var Yc="right-scroll-bar-position",Zc="width-before-scroll-bar";function Qc(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var Jc="undefined"!=typeof window?a.useLayoutEffect:a.useEffect,ed=new WeakMap;function td(e,n){var r,o,i,a=(r=null,o=function(t){return e.forEach((function(e){return Qc(e,t)}))},(i=t.useState((function(){return{value:r,callback:o,facade:{get current(){return i.value},set current(e){var t=i.value;t!==e&&(i.value=e,i.callback(e,t))}}}}))[0]).callback=o,i.facade);return Jc((function(){var t=ed.get(a);if(t){var n=new Set(t),r=new Set(e),o=a.current;n.forEach((function(e){r.has(e)||Qc(e,null)})),r.forEach((function(e){n.has(e)||Qc(e,o)}))}ed.set(a,e)}),[e]),a}function nd(e){return e}function rd(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=nd);var n=[],r=!1,o={read:function(){if(r)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(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}};return o}(null);return t.options=Gc({async:!0,ssr:!1},e),t}var od=function(e){var t=e.sideCar,n=qc(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return a.createElement(r,Gc({},n))};function id(e,t){return e.useMedium(t),od}od.isSideCarExport=!0;var ad=rd(),sd=function(){},ld=a.forwardRef((function(e,t){var n=a.useRef(null),r=a.useState({onScrollCapture:sd,onWheelCapture:sd,onTouchMoveCapture:sd}),o=r[0],i=r[1],s=e.forwardProps,l=e.children,u=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,v=e.as,b=void 0===v?"div":v,w=qc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),y=p,x=td([n,t]),C=Gc(Gc({},w),o);return a.createElement(a.Fragment,null,d&&a.createElement(y,{sideCar:ad,removeScrollBar:c,shards:f,noIsolation:m,inert:h,setCallbacks:i,allowPinchZoom:!!g,lockRef:n}),s?a.cloneElement(a.Children.only(l),Gc(Gc({},C),{ref:x})):a.createElement(b,Gc({},C,{className:u,ref:x}),l))}));ld.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ld.classNames={fullWidth:Zc,zeroRight:Yc};function ud(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var cd=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=ud())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},dd=function(){var e,t=(e=cd(),function(t,n){a.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},fd={left:0,top:0,right:0,gap:0},pd=function(e){return parseInt(e||"",10)||0},md=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return fd;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[pd(n),pd(r),pd(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},hd=dd(),gd="data-scroll-locked",vd=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(gd,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(Yc," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(Zc," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(Yc," .").concat(Yc," {\n right: 0 ").concat(r,";\n }\n \n .").concat(Zc," .").concat(Zc," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(gd,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},bd=function(){var e=parseInt(document.body.getAttribute(gd)||"0",10);return isFinite(e)?e:0},wd=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;a.useEffect((function(){return document.body.setAttribute(gd,(bd()+1).toString()),function(){var e=bd()-1;e<=0?document.body.removeAttribute(gd):document.body.setAttribute(gd,e.toString())}}),[]);var i=a.useMemo((function(){return md(o)}),[o]);return a.createElement(hd,{styles:vd(i,!t,o,n?"":"!important")})},yd=!1;if("undefined"!=typeof window)try{var xd=Object.defineProperty({},"passive",{get:function(){return yd=!0,!0}});window.addEventListener("test",xd,xd),window.removeEventListener("test",xd,xd)}catch(e){yd=!1}var Cd=!!yd&&{passive:!1},Sd=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},kd=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),Ed(e,n)){var r=Rd(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Ed=function(e,t){return"v"===e?function(e){return Sd(e,"overflowY")}(t):function(e){return Sd(e,"overflowX")}(t)},Rd=function(e,t){return"v"===e?function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]}(t):function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t)},Pd=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Nd=function(e){return[e.deltaX,e.deltaY]},jd=function(e){return e&&"current"in e?e.current:e},Md=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Ad=0,Id=[];var Td=id(ad,(function(e){var t=a.useRef([]),n=a.useRef([0,0]),r=a.useRef(),o=a.useState(Ad++)[0],i=a.useState((function(){return dd()}))[0],s=a.useRef(e);a.useEffect((function(){s.current=e}),[e]),a.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=Xc([e.lockRef.current],(e.shards||[]).map(jd),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var l=a.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!s.current.allowPinchZoom;var o,i=Pd(e),a=n.current,l="deltaX"in e?e.deltaX:a[0]-i[0],u="deltaY"in e?e.deltaY:a[1]-i[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=kd(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=kd(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=o),!o)return!0;var p=r.current||o;return function(e,t,n,r,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,l=t.contains(s),u=!1,c=a>0,d=0,f=0;do{var p=Rd(e,s),m=p[0],h=p[1]-p[2]-i*m;(m||h)&&Ed(e,s)&&(d+=h,f+=m),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return c&&0===d?u=!0:c||0!==f||(u=!0),u}(p,t,e,"h"===p?l:u)}),[]),u=a.useCallback((function(e){var n=e;if(Id.length&&Id[Id.length-1]===i){var r="deltaY"in n?Nd(n):Pd(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,r)}))[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var a=(s.current.shards||[]).map(jd).filter(Boolean).filter((function(e){return e.contains(n.target)}));(a.length>0?l(n,a[0]):!s.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),c=a.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),d=a.useCallback((function(e){n.current=Pd(e),r.current=void 0}),[]),f=a.useCallback((function(t){c(t.type,Nd(t),t.target,l(t,e.lockRef.current))}),[]),p=a.useCallback((function(t){c(t.type,Pd(t),t.target,l(t,e.lockRef.current))}),[]);a.useEffect((function(){return Id.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",u,Cd),document.addEventListener("touchmove",u,Cd),document.addEventListener("touchstart",d,Cd),function(){Id=Id.filter((function(e){return e!==i})),document.removeEventListener("wheel",u,Cd),document.removeEventListener("touchmove",u,Cd),document.removeEventListener("touchstart",d,Cd)}}),[]);var m=e.removeScrollBar,h=e.inert;return a.createElement(a.Fragment,null,h?a.createElement(i,{styles:Md(o)}):null,m?a.createElement(wd,{gapMode:"margin"}):null)})),Od=a.forwardRef((function(e,t){return a.createElement(ld,Gc({},e,{ref:t,sideCar:Td}))}));Od.classNames=ld.classNames;var Ld=new WeakMap,Dd=new WeakMap,Fd={},_d=0,Vd=function(e){return e&&(e.host||Vd(e.parentNode))},zd=function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=Vd(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);Fd[n]||(Fd[n]=new WeakMap);var i=Fd[n],a=[],s=new Set,l=new Set(o),u=function(e){e&&!s.has(e)&&(s.add(e),u(e.parentNode))};o.forEach(u);var c=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))c(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(Ld.get(e)||0)+1,u=(i.get(e)||0)+1;Ld.set(e,l),i.set(e,u),a.push(e),1===l&&o&&Dd.set(e,!0),1===u&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}}))};return c(t),s.clear(),_d++,function(){a.forEach((function(e){var t=Ld.get(e)-1,o=i.get(e)-1;Ld.set(e,t),i.set(e,o),t||(Dd.has(e)||e.removeAttribute(r),Dd.delete(e)),o||e.removeAttribute(n)})),--_d||(Ld=new WeakMap,Ld=new WeakMap,Dd=new WeakMap,Fd={})}},Hd=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),zd(r,o,n,"aria-hidden")):function(){return null}};const Bd="Dialog",[$d,Wd]=c(Bd),[Ud,Kd]=$d(Bd),Gd=t.forwardRef(((e,n)=>{const{__scopeDialog:r,...o}=e,i=Kd("DialogTrigger",r),a=p(n,i.triggerRef);return t.createElement(S.button,u({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":ff(i.open)},o,{ref:a,onClick:y(e.onClick,i.onOpenToggle)}))})),qd="DialogPortal",[Xd,Yd]=$d(qd,{forceMount:void 0}),Zd="DialogOverlay",Qd=t.forwardRef(((e,n)=>{const r=Yd(Zd,e.__scopeDialog),{forceMount:o=r.forceMount,...i}=e,a=Kd(Zd,e.__scopeDialog);return a.modal?t.createElement(R,{present:o||a.open},t.createElement(Jd,u({},i,{ref:n}))):null})),Jd=t.forwardRef(((e,n)=>{const{__scopeDialog:r,...o}=e,i=Kd(Zd,r);return t.createElement(Od,{as:m,allowPinchZoom:!0,shards:[i.contentRef]},t.createElement(S.div,u({"data-state":ff(i.open)},o,{ref:n,style:{pointerEvents:"auto",...o.style}})))})),ef="DialogContent",tf=t.forwardRef(((e,n)=>{const r=Yd(ef,e.__scopeDialog),{forceMount:o=r.forceMount,...i}=e,a=Kd(ef,e.__scopeDialog);return t.createElement(R,{present:o||a.open},a.modal?t.createElement(nf,u({},i,{ref:n})):t.createElement(rf,u({},i,{ref:n})))})),nf=t.forwardRef(((e,n)=>{const r=Kd(ef,e.__scopeDialog),o=t.useRef(null),i=p(n,r.contentRef,o);return t.useEffect((()=>{const e=o.current;if(e)return Hd(e)}),[]),t.createElement(of,u({},e,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:y(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null===(t=r.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:y(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:y(e.onFocusOutside,(e=>e.preventDefault()))}))})),rf=t.forwardRef(((e,n)=>{const r=Kd(ef,e.__scopeDialog),o=t.useRef(!1),i=t.useRef(!1);return t.createElement(of,u({},e,{ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var n,a;(null===(n=e.onCloseAutoFocus)||void 0===n||n.call(e,t),t.defaultPrevented)||(o.current||null===(a=r.triggerRef.current)||void 0===a||a.focus(),t.preventDefault());o.current=!1,i.current=!1},onInteractOutside:t=>{var n,a;null===(n=e.onInteractOutside)||void 0===n||n.call(e,t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));const s=t.target;(null===(a=r.triggerRef.current)||void 0===a?void 0:a.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}}))})),of=t.forwardRef(((e,n)=>{const{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,...s}=e,l=Kd(ef,r),c=p(n,t.useRef(null));return t.useEffect((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:Kc()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:Kc()),Uc++,()=>{1===Uc&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),Uc--}}),[]),t.createElement(t.Fragment,null,t.createElement(Fc,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:a},t.createElement(Mc,u({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":ff(l.open)},s,{ref:c,onDismiss:()=>l.onOpenChange(!1)}))),!1)})),af="DialogTitle",sf=t.forwardRef(((e,n)=>{const{__scopeDialog:r,...o}=e,i=Kd(af,r);return t.createElement(S.h2,u({id:i.titleId},o,{ref:n}))})),lf="DialogDescription",uf=t.forwardRef(((e,n)=>{const{__scopeDialog:r,...o}=e,i=Kd(lf,r);return t.createElement(S.p,u({id:i.descriptionId},o,{ref:n}))})),cf="DialogClose",df=t.forwardRef(((e,n)=>{const{__scopeDialog:r,...o}=e,i=Kd(cf,r);return t.createElement(S.button,u({type:"button"},o,{ref:n,onClick:y(e.onClick,(()=>i.onOpenChange(!1)))}))}));function ff(e){return e?"open":"closed"}const[pf,mf]=function(e,n){const r=t.createContext(n);function o(e){const{children:n,...o}=e,i=t.useMemo((()=>o),Object.values(o));return t.createElement(r.Provider,{value:i},n)}return o.displayName=e+"Provider",[o,function(o){const i=t.useContext(r);if(i)return i;if(void 0!==n)return n;throw new Error(`\`${o}\` must be used within \`${e}\``)}]}("DialogTitleWarning",{contentName:ef,titleName:af,docsSlug:"dialog"}),hf=e=>{const{__scopeDialog:n,children:r,open:o,defaultOpen:i,onOpenChange:a,modal:s=!0}=e,l=t.useRef(null),u=t.useRef(null),[c=!1,d]=C({prop:o,defaultProp:i,onChange:a});return t.createElement(Ud,{scope:n,triggerRef:l,contentRef:u,contentId:M(),titleId:M(),descriptionId:M(),open:c,onOpenChange:d,onOpenToggle:t.useCallback((()=>d((e=>!e))),[d]),modal:s},r)},gf=Gd,vf=e=>{const{__scopeDialog:n,forceMount:r,children:o,container:i}=e,a=Kd(qd,n);return t.createElement(Xd,{scope:n,forceMount:r},t.Children.map(o,(e=>t.createElement(R,{present:r||a.open},t.createElement(Wc,{asChild:!0,container:i},e)))))},bf=Qd,wf=tf,yf=sf,xf=uf,Cf=df,[Sf,kf]=c("AlertDialog",[Wd]),Ef=Wd(),Rf=t.forwardRef(((e,n)=>{const{__scopeAlertDialog:r,...o}=e,i=Ef(r);return t.createElement(gf,u({},i,o,{ref:n}))})),Pf=t.forwardRef(((e,n)=>{const{__scopeAlertDialog:r,...o}=e,i=Ef(r);return t.createElement(bf,u({},i,o,{ref:n}))})),Nf="AlertDialogContent",[jf,Mf]=Sf(Nf),Af=t.forwardRef(((e,n)=>{const{__scopeAlertDialog:r,children:o,...i}=e,a=Ef(r),s=p(n,t.useRef(null)),l=t.useRef(null);return t.createElement(pf,{contentName:Nf,titleName:If,docsSlug:"alert-dialog"},t.createElement(jf,{scope:r,cancelRef:l},t.createElement(wf,u({role:"alertdialog"},a,i,{ref:s,onOpenAutoFocus:y(i.onOpenAutoFocus,(e=>{var t;e.preventDefault(),null===(t=l.current)||void 0===t||t.focus({preventScroll:!0})})),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault()}),t.createElement(g,null,o),!1)))})),If="AlertDialogTitle",Tf=t.forwardRef(((e,n)=>{const{__scopeAlertDialog:r,...o}=e,i=Ef(r);return t.createElement(yf,u({},i,o,{ref:n}))})),Of=t.forwardRef(((e,n)=>{const{__scopeAlertDialog:r,...o}=e,i=Ef(r);return t.createElement(xf,u({},i,o,{ref:n}))})),Lf=t.forwardRef(((e,n)=>{const{__scopeAlertDialog:r,...o}=e,i=Ef(r);return t.createElement(Cf,u({},i,o,{ref:n}))})),Df=t.forwardRef(((e,n)=>{const{__scopeAlertDialog:r,...o}=e,{cancelRef:i}=Mf("AlertDialogCancel",r),a=Ef(r),s=p(n,i);return t.createElement(Cf,u({},a,o,{ref:s}))})),Ff=e=>{const{__scopeAlertDialog:n,...r}=e,o=Ef(n);return t.createElement(hf,u({},o,r,{modal:!0}))},_f=e=>{const{__scopeAlertDialog:n,...r}=e,o=Ef(n);return t.createElement(vf,u({},o,r))},Vf=Pf,zf=Af,Hf=Lf,Bf=Df,$f=Tf,Wf=Of,Uf=Ff,Kf=Rf,Gf=({className:t="",children:n,...r})=>e.jsx(_f,{className:jt(t),...r,children:e.jsx("div",{className:"fixed inset-0 z-50 flex items-end justify-center sm:items-center",children:n})});Gf.displayName=_f.displayName;const qf=a.forwardRef((({className:t="",...n},r)=>e.jsx(Vf,{className:jt("fixed inset-0 z-50 bg-gray-500/90 transition-opacity animate-in fade-in dark:bg-gray-800/90",t),...n,ref:r})));qf.displayName=Vf.displayName;const Xf=a.forwardRef((({className:t="",...n},r)=>e.jsxs(Gf,{children:[e.jsx(qf,{}),e.jsx(zf,{ref:r,className:jt("fixed z-50 grid w-full max-w-lg scale-100 gap-4 bg-white p-6 opacity-100 animate-in fade-in-90 slide-in-from-bottom-10 sm:rounded-lg sm:zoom-in-90 sm:slide-in-from-bottom-0 md:w-full","dark:bg-gray-900",t),...n})]})));Xf.displayName=zf.displayName;const Yf=({className:t="",...n})=>e.jsx("div",{className:jt("flex flex-col space-y-2 text-center sm:text-left",t),...n});Yf.displayName="AlertDialogHeader";const Zf=({className:t="",...n})=>e.jsx("div",{className:jt("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...n});Zf.displayName="AlertDialogFooter";const Qf=a.forwardRef((({className:t="",...n},r)=>e.jsx($f,{ref:r,className:jt("text-lg font-semibold text-gray-900","dark:text-gray-50",t),...n})));Qf.displayName=$f.displayName;const Jf=a.forwardRef((({className:t="",...n},r)=>e.jsx(Wf,{ref:r,className:jt("text-sm text-gray-500","dark:text-gray-400",t),...n})));Jf.displayName=Wf.displayName;const ep=a.forwardRef((({className:t="",...n},r)=>e.jsx(Hf,{ref:r,className:jt("inline-flex h-10 items-center justify-center rounded-md bg-gray-900 px-4 py-2 text-sm font-semibold text-white transition-colors hover:bg-gray-800 focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:bg-gray-100 dark:text-gray-900 dark:hover:bg-gray-100 dark:focus:ring-gray-400 dark:focus:ring-offset-gray-900",t),...n})));ep.displayName=Hf.displayName;const tp=a.forwardRef((({className:t="",...n},r)=>e.jsx(Bf,{ref:r,className:jt("mt-2 inline-flex h-10 items-center justify-center rounded-md border border-gray-200 bg-transparent px-4 py-2 text-sm font-semibold text-gray-900 transition-colors hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-700 dark:text-gray-100 dark:hover:bg-gray-800 dark:focus:ring-gray-400 dark:focus:ring-offset-gray-900 sm:mt-0",t),...n})));function np(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function rp(...e){return t=>{let n=!1;const r=e.map((e=>{const r=np(e,t);return n||"function"!=typeof r||(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():np(e[t],null)}}}}function op(...e){return a.useCallback(rp(...e),e)}function ip(t){const n=sp(t),r=a.forwardRef(((t,r)=>{const{children:o,...i}=t,s=a.Children.toArray(o),l=s.find(up);if(l){const t=l.props.children,o=s.map((e=>e===l?a.Children.count(t)>1?a.Children.only(null):a.isValidElement(t)?t.props.children:null:e));return e.jsx(n,{...i,ref:r,children:a.isValidElement(t)?a.cloneElement(t,void 0,o):null})}return e.jsx(n,{...i,ref:r,children:o})}));return r.displayName=`${t}.Slot`,r}tp.displayName=Bf.displayName;var ap=ip("Slot");function sp(e){const t=a.forwardRef(((e,t)=>{const{children:n,...r}=e;if(a.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}
2
2
  /**
3
3
  * @license lucide-react v0.394.0 - ISC
4
4
  *
5
5
  * This source code is licensed under the ISC license.
6
6
  * See the LICENSE file in the root directory of this source tree.
7
- */
8
- const it=(...e)=>e.filter(((e,t,r)=>Boolean(e)&&r.indexOf(e)===t)).join(" ")
7
+ */(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==a.Fragment&&(o.ref=t?rp(t,e):e),a.cloneElement(n,o)}return a.Children.count(n)>1?a.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}var lp=Symbol("radix.slottable");function up(e){return a.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===lp}const cp=(...e)=>e.filter(((e,t,n)=>Boolean(e)&&n.indexOf(e)===t)).join(" ")
9
8
  /**
10
9
  * @license lucide-react v0.394.0 - ISC
11
10
  *
12
11
  * This source code is licensed under the ISC license.
13
12
  * See the LICENSE file in the root directory of this source tree.
14
- */;var lt={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"};
13
+ */;var dp={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"};
15
14
  /**
16
15
  * @license lucide-react v0.394.0 - ISC
17
16
  *
18
17
  * This source code is licensed under the ISC license.
19
18
  * See the LICENSE file in the root directory of this source tree.
20
- */const ct=t.forwardRef((({color:e="currentColor",size:r=24,strokeWidth:n=2,absoluteStrokeWidth:a,className:o="",children:s,iconNode:i,...l},c)=>t.createElement("svg",{ref:c,...lt,width:r,height:r,stroke:e,strokeWidth:a?24*Number(n)/Number(r):n,className:it("lucide",o),...l},[...i.map((([e,r])=>t.createElement(e,r))),...Array.isArray(s)?s:[s]]))),dt=(e,r)=>{const n=t.forwardRef((({className:n,...a},o)=>{return t.createElement(ct,{ref:o,iconNode:r,className:it(`lucide-${s=e,s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,n),...a});var s}));return n.displayName=`${e}`,n},ut=dt("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),pt=dt("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),gt=dt("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),mt=dt("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),ft=dt("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),ht=dt("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]),wt=dt("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]),xt=dt("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]),bt=dt("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]),vt=dt("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]),yt=dt("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),kt=dt("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),Ct=dt("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),Nt=dt("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),jt=E.forwardRef((({...t},r)=>e.jsx("nav",{ref:r,"aria-label":"breadcrumb",...t})));
19
+ */const fp=t.forwardRef((({color:e="currentColor",size:n=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:i="",children:a,iconNode:s,...l},u)=>t.createElement("svg",{ref:u,...dp,width:n,height:n,stroke:e,strokeWidth:o?24*Number(r)/Number(n):r,className:cp("lucide",i),...l},[...s.map((([e,n])=>t.createElement(e,n))),...Array.isArray(a)?a:[a]]))),pp=(e,n)=>{const r=t.forwardRef((({className:r,...o},i)=>{return t.createElement(fp,{ref:i,iconNode:n,className:cp(`lucide-${a=e,a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,r),...o});var a}));return r.displayName=`${e}`,r},mp=pp("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),hp=pp("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),gp=pp("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),vp=pp("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),bp=pp("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),wp=pp("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]),yp=pp("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]),xp=pp("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]),Cp=pp("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]),Sp=pp("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]),kp=pp("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),Ep=pp("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),Rp=pp("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),Pp=pp("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Np=a.forwardRef((({...t},n)=>e.jsx("nav",{ref:n,"aria-label":"breadcrumb",...t})));
21
20
  /**
22
21
  * @license lucide-react v0.394.0 - ISC
23
22
  *
24
23
  * This source code is licensed under the ISC license.
25
24
  * See the LICENSE file in the root directory of this source tree.
26
- */jt.displayName="Breadcrumb";const St=E.forwardRef((({className:t,...r},n)=>e.jsx("ol",{ref:n,className:Fe("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",t),...r})));St.displayName="BreadcrumbList";const Lt=E.forwardRef((({className:t,...r},n)=>e.jsx("li",{ref:n,className:Fe("inline-flex items-center gap-1.5",t),...r})));Lt.displayName="BreadcrumbItem";const Mt=E.forwardRef((({asChild:t,className:r,...n},a)=>{const o=t?s.Slot:"a";return e.jsx(o,{ref:a,className:Fe("transition-colors hover:text-foreground",r),...n})}));Mt.displayName="BreadcrumbLink";const zt=E.forwardRef((({className:t,...r},n)=>e.jsx("span",{ref:n,role:"link","aria-disabled":"true","aria-current":"page",className:Fe("font-normal text-foreground",t),...r})));zt.displayName="BreadcrumbPage";const It=({children:t,className:r,...n})=>e.jsx("li",{role:"presentation","aria-hidden":"true",className:Fe("[&>svg]:size-3.5",r),...n,children:t??e.jsx(mt,{})});It.displayName="BreadcrumbSeparator";const Rt=({className:t,...r})=>e.jsxs("span",{role:"presentation","aria-hidden":"true",className:Fe("flex h-9 w-9 items-center justify-center",t),...r,children:[e.jsx(ht,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"More"})]});Rt.displayName="BreadcrumbElipssis";const Et=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,Tt=J,At=(Ot="inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",Pt={variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-surface-destructive text-destructive-foreground hover:bg-surface-destructive-hover",outline:"text-text-primary border border-border-light bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-surface-hover hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",submit:"bg-surface-submit text-white hover:bg-surface-submit-hover"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-lg px-3",lg:"h-11 rounded-lg px-8",icon:"size-10"}},defaultVariants:{variant:"default",size:"default"}},e=>{var t;if(null==(null==Pt?void 0:Pt.variants))return Tt(Ot,null==e?void 0:e.class,null==e?void 0:e.className);const{variants:r,defaultVariants:n}=Pt,a=Object.keys(r).map((t=>{const a=null==e?void 0:e[t],o=null==n?void 0:n[t];if(null===a)return null;const s=Et(a)||Et(o);return r[t][s]})),o=e&&Object.entries(e).reduce(((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e}),{}),s=null==Pt||null===(t=Pt.compoundVariants)||void 0===t?void 0:t.reduce(((e,t)=>{let{class:r,className:a,...s}=t;return Object.entries(s).every((e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...n,...o}[t]):{...n,...o}[t]===r}))?[...e,r,a]:e}),[]);return Tt(Ot,a,s,null==e?void 0:e.class,null==e?void 0:e.className)});var Ot,Pt;const Vt=E.forwardRef((({className:t,variant:r,size:n,asChild:a=!1,...o},i)=>{const l=a?s.Slot:"button";return e.jsx(l,{className:Fe(At({variant:r,size:n,className:t})),ref:i,...o})}));Vt.displayName="Button";const Dt=E.forwardRef((({className:t="",...r},n)=>e.jsx(P.Root,{ref:n,className:Fe("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",t),...r,children:e.jsx(P.Indicator,{className:Fe("flex items-center justify-center"),children:e.jsx(ut,{className:"h-4 w-4"})})})));Dt.displayName=P.Root.displayName;const Ht=V.Root,Bt=V.CollapsibleTrigger,Ft=V.CollapsibleContent,Wt=D.Root,Zt=D.Trigger,Xt=D.Group,Yt=D.Portal,_t=D.Sub,$t=D.RadioGroup,Ut=E.forwardRef((({className:t="",inset:r,children:n,...a},o)=>e.jsxs(D.SubTrigger,{ref:o,className:Fe("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm font-medium outline-none focus:bg-gray-100 data-[state=open]:bg-gray-100 dark:focus:bg-gray-900 dark:data-[state=open]:bg-gray-900",r?"pl-8":"",t),...a,children:[n,e.jsx(mt,{className:"ml-auto h-4 w-4"})]})));Ut.displayName=D.SubTrigger.displayName;const Gt=E.forwardRef((({className:t="",...r},n)=>e.jsx(D.SubContent,{ref:n,className:Fe("z-50 min-w-[8rem] overflow-hidden rounded-md border border-gray-100 bg-white p-1 text-gray-700 shadow-md animate-in slide-in-from-left-1 dark:border-gray-800 dark:bg-gray-800 dark:text-gray-400",t),...r})));Gt.displayName=D.SubContent.displayName;const qt=E.forwardRef((({className:t="",sideOffset:r=4,...n},a)=>e.jsx(D.Portal,{children:e.jsx(D.Content,{ref:a,sideOffset:r,className:Fe("z-50 min-w-[8rem] overflow-hidden rounded-md border border-gray-100 bg-white p-1 text-gray-700 shadow-md animate-in 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 dark:border-gray-800 dark:bg-gray-800 dark:text-gray-400",t),...n})})));qt.displayName=D.Content.displayName;const Kt=E.forwardRef((({className:t="",inset:r,...n},a)=>e.jsx(D.Item,{ref:a,className:Fe("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm font-medium outline-none focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-gray-900",r?"pl-8":"",t),...n})));Kt.displayName=D.Item.displayName;const Qt=E.forwardRef((({className:t="",children:r,checked:n,...a},o)=>e.jsxs(D.CheckboxItem,{ref:o,className:Fe("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm font-medium outline-none focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-gray-900",t),checked:n,...a,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(D.ItemIndicator,{children:e.jsx(ut,{className:"h-4 w-4"})})}),r]})));Qt.displayName=D.CheckboxItem.displayName;const Jt=E.forwardRef((({className:t="",children:r,...n},a)=>e.jsxs(D.RadioItem,{ref:a,className:Fe(t,"relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm font-medium outline-none focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-gray-800"),...n,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(D.ItemIndicator,{children:e.jsx(ft,{className:"h-2 w-2 fill-current"})})}),r]})));Jt.displayName=D.RadioItem.displayName;const er=E.forwardRef((({className:t="",inset:r,...n},a)=>e.jsx(D.Label,{ref:a,className:Fe("px-2 py-1.5 text-sm font-semibold text-gray-900 dark:text-gray-300",r?"pl-8":"",t),...n})));er.displayName=D.Label.displayName;const tr=E.forwardRef((({className:t="",...r},n)=>e.jsx(D.Separator,{ref:n,className:Fe("-mx-1 my-1 h-px bg-border-medium",t),...r})));tr.displayName=D.Separator.displayName;const rr=({className:t="",...r})=>e.jsx("span",{className:Fe("ml-auto text-xs tracking-widest text-gray-500",t),...r});var nr;rr.displayName="DropdownMenuShortcut",exports.NotificationSeverity=void 0,(nr=exports.NotificationSeverity||(exports.NotificationSeverity={})).INFO="info",nr.SUCCESS="success",nr.WARNING="warning",nr.ERROR="error";const ar=u.atom("en"),or=u.atom("ltr"),sr=u.atom("text-base"),ir=u.atom({open:!1,message:"",severity:exports.NotificationSeverity.SUCCESS,showIcon:!0}),lr=t.createContext({theme:"light",setTheme:()=>{}});function cr(e=100){const[r,n]=u.useAtom(ir),a=t.useRef(null),o=t.useRef(null);t.useEffect((()=>()=>{null!==a.current&&clearTimeout(a.current),null!==o.current&&clearTimeout(o.current)}),[]);return{toast:r,onOpenChange:e=>n({...r,open:e}),showToast:({message:t,severity:r=exports.NotificationSeverity.SUCCESS,showIcon:s=!0,duration:i=3e3,status:l})=>{null!==a.current&&clearTimeout(a.current),null!==o.current&&clearTimeout(o.current),a.current=window.setTimeout((()=>{n({open:!0,message:t,severity:l??r,showIcon:s}),o.current=window.setTimeout((()=>{n((e=>({...e,open:!1})))}),i)}),e)}}}function dr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ur={exports:{}},pr={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Ấ":"A","Ắ":"A","Ẳ":"A","Ẵ":"A","Ặ":"A","Æ":"AE","Ầ":"A","Ằ":"A","Ȃ":"A","Ả":"A","Ạ":"A","Ẩ":"A","Ẫ":"A","Ậ":"A","Ç":"C","Ḉ":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ế":"E","Ḗ":"E","Ề":"E","Ḕ":"E","Ḝ":"E","Ȇ":"E","Ẻ":"E","Ẽ":"E","Ẹ":"E","Ể":"E","Ễ":"E","Ệ":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ḯ":"I","Ȋ":"I","Ỉ":"I","Ị":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ố":"O","Ṍ":"O","Ṓ":"O","Ȏ":"O","Ỏ":"O","Ọ":"O","Ổ":"O","Ỗ":"O","Ộ":"O","Ờ":"O","Ở":"O","Ỡ":"O","Ớ":"O","Ợ":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ủ":"U","Ụ":"U","Ử":"U","Ữ":"U","Ự":"U","Ý":"Y","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","ấ":"a","ắ":"a","ẳ":"a","ẵ":"a","ặ":"a","æ":"ae","ầ":"a","ằ":"a","ȃ":"a","ả":"a","ạ":"a","ẩ":"a","ẫ":"a","ậ":"a","ç":"c","ḉ":"c","è":"e","é":"e","ê":"e","ë":"e","ế":"e","ḗ":"e","ề":"e","ḕ":"e","ḝ":"e","ȇ":"e","ẻ":"e","ẽ":"e","ẹ":"e","ể":"e","ễ":"e","ệ":"e","ì":"i","í":"i","î":"i","ï":"i","ḯ":"i","ȋ":"i","ỉ":"i","ị":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ố":"o","ṍ":"o","ṓ":"o","ȏ":"o","ỏ":"o","ọ":"o","ổ":"o","ỗ":"o","ộ":"o","ờ":"o","ở":"o","ỡ":"o","ớ":"o","ợ":"o","ù":"u","ú":"u","û":"u","ü":"u","ủ":"u","ụ":"u","ử":"u","ữ":"u","ự":"u","ý":"y","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","C̆":"C","c̆":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","Ǵ":"G","ĝ":"g","ǵ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ḫ":"H","ḫ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","Ḱ":"K","ḱ":"k","K̆":"K","k̆":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"l","ł":"l","Ḿ":"M","ḿ":"m","M̆":"M","m̆":"m","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","N̆":"N","n̆":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","P̆":"P","p̆":"p","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","R̆":"R","r̆":"r","Ȓ":"R","ȓ":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","Ș":"S","ș":"s","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","ț":"t","Ț":"T","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","T̆":"T","t̆":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ȗ":"U","ȗ":"u","V̆":"V","v̆":"v","Ŵ":"W","ŵ":"w","Ẃ":"W","ẃ":"w","X̆":"X","x̆":"x","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Y̆":"Y","y̆":"y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","Ứ":"U","ứ":"u","Ṹ":"U","ṹ":"u","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o","Þ":"TH","þ":"th","Ṕ":"P","ṕ":"p","Ṥ":"S","ṥ":"s","X́":"X","x́":"x","Ѓ":"Г","ѓ":"г","Ќ":"К","ќ":"к","A̋":"A","a̋":"a","E̋":"E","e̋":"e","I̋":"I","i̋":"i","Ǹ":"N","ǹ":"n","Ồ":"O","ồ":"o","Ṑ":"O","ṑ":"o","Ừ":"U","ừ":"u","Ẁ":"W","ẁ":"w","Ỳ":"Y","ỳ":"y","Ȁ":"A","ȁ":"a","Ȅ":"E","ȅ":"e","Ȉ":"I","ȉ":"i","Ȍ":"O","ȍ":"o","Ȑ":"R","ȑ":"r","Ȕ":"U","ȕ":"u","B̌":"B","b̌":"b","Č̣":"C","č̣":"c","Ê̌":"E","ê̌":"e","F̌":"F","f̌":"f","Ǧ":"G","ǧ":"g","Ȟ":"H","ȟ":"h","J̌":"J","ǰ":"j","Ǩ":"K","ǩ":"k","M̌":"M","m̌":"m","P̌":"P","p̌":"p","Q̌":"Q","q̌":"q","Ř̩":"R","ř̩":"r","Ṧ":"S","ṧ":"s","V̌":"V","v̌":"v","W̌":"W","w̌":"w","X̌":"X","x̌":"x","Y̌":"Y","y̌":"y","A̧":"A","a̧":"a","B̧":"B","b̧":"b","Ḑ":"D","ḑ":"d","Ȩ":"E","ȩ":"e","Ɛ̧":"E","ɛ̧":"e","Ḩ":"H","ḩ":"h","I̧":"I","i̧":"i","Ɨ̧":"I","ɨ̧":"i","M̧":"M","m̧":"m","O̧":"O","o̧":"o","Q̧":"Q","q̧":"q","U̧":"U","u̧":"u","X̧":"X","x̧":"x","Z̧":"Z","z̧":"z","й":"и","Й":"И","ё":"е","Ё":"Е"},gr=Object.keys(pr).join("|"),mr=new RegExp(gr,"g"),fr=new RegExp(gr,"");function hr(e){return pr[e]}var wr=function(e){return e.replace(mr,hr)};ur.exports=wr,ur.exports.has=function(e){return!!e.match(fr)},ur.exports.remove=wr;var xr=dr(ur.exports);
25
+ */Np.displayName="Breadcrumb";const jp=a.forwardRef((({className:t,...n},r)=>e.jsx("ol",{ref:r,className:jt("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",t),...n})));jp.displayName="BreadcrumbList";const Mp=a.forwardRef((({className:t,...n},r)=>e.jsx("li",{ref:r,className:jt("inline-flex items-center gap-1.5",t),...n})));Mp.displayName="BreadcrumbItem";const Ap=a.forwardRef((({asChild:t,className:n,...r},o)=>{const i=t?ap:"a";return e.jsx(i,{ref:o,className:jt("transition-colors hover:text-foreground",n),...r})}));Ap.displayName="BreadcrumbLink";const Ip=a.forwardRef((({className:t,...n},r)=>e.jsx("span",{ref:r,role:"link","aria-disabled":"true","aria-current":"page",className:jt("font-normal text-foreground",t),...n})));Ip.displayName="BreadcrumbPage";const Tp=({children:t,className:n,...r})=>e.jsx("li",{role:"presentation","aria-hidden":"true",className:jt("[&>svg]:size-3.5",n),...r,children:t??e.jsx(vp,{})});Tp.displayName="BreadcrumbSeparator";const Op=({className:t,...n})=>e.jsxs("span",{role:"presentation","aria-hidden":"true",className:jt("flex h-9 w-9 items-center justify-center",t),...n,children:[e.jsx(wp,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"More"})]});Op.displayName="BreadcrumbElipssis";const Lp=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,Dp=He,Fp=((e,t)=>n=>{var r;if(null==(null==t?void 0:t.variants))return Dp(e,null==n?void 0:n.class,null==n?void 0:n.className);const{variants:o,defaultVariants:i}=t,a=Object.keys(o).map((e=>{const t=null==n?void 0:n[e],r=null==i?void 0:i[e];if(null===t)return null;const a=Lp(t)||Lp(r);return o[e][a]})),s=n&&Object.entries(n).reduce(((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e}),{}),l=null==t||null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce(((e,t)=>{let{class:n,className:r,...o}=t;return Object.entries(o).every((e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...s}[t]):{...i,...s}[t]===n}))?[...e,n,r]:e}),[]);return Dp(e,a,l,null==n?void 0:n.class,null==n?void 0:n.className)})("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-surface-destructive text-destructive-foreground hover:bg-surface-destructive-hover",outline:"text-text-primary border border-border-light bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-surface-hover hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",submit:"bg-surface-submit text-white hover:bg-surface-submit-hover"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-lg px-3",lg:"h-11 rounded-lg px-8",icon:"size-10"}},defaultVariants:{variant:"default",size:"default"}}),_p=a.forwardRef((({className:t,variant:n,size:r,asChild:o=!1,...i},a)=>{const s=o?ap:"button";return e.jsx(s,{className:jt(Fp({variant:n,size:r,className:t})),ref:a,...i})}));function Vp(e){const[n,r]=t.useState(void 0);return E((()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const n=t[0];let o,i;if("borderBoxSize"in n){const e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;r({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)}),[e]),n}_p.displayName="Button";const zp="Checkbox",[Hp,Bp]=c(zp),[$p,Wp]=Hp(zp),Up=t.forwardRef(((e,n)=>{const{__scopeCheckbox:r,name:o,checked:i,defaultChecked:a,required:s,disabled:l,value:c="on",onCheckedChange:d,...f}=e,[m,h]=t.useState(null),g=p(n,(e=>h(e))),v=t.useRef(!1),b=!m||Boolean(m.closest("form")),[w=!1,x]=C({prop:i,defaultProp:a,onChange:d}),k=t.useRef(w);return t.useEffect((()=>{const e=null==m?void 0:m.form;if(e){const t=()=>x(k.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}}),[m,x]),t.createElement($p,{scope:r,state:w,disabled:l},t.createElement(S.button,u({type:"button",role:"checkbox","aria-checked":qp(w)?"mixed":w,"aria-required":s,"data-state":Xp(w),"data-disabled":l?"":void 0,disabled:l,value:c},f,{ref:g,onKeyDown:y(e.onKeyDown,(e=>{"Enter"===e.key&&e.preventDefault()})),onClick:y(e.onClick,(e=>{x((e=>!!qp(e)||!e)),b&&(v.current=e.isPropagationStopped(),v.current||e.stopPropagation())}))})),b&&t.createElement(Gp,{control:m,bubbles:!v.current,name:o,value:c,checked:w,required:s,disabled:l,style:{transform:"translateX(-100%)"}}))})),Kp=t.forwardRef(((e,n)=>{const{__scopeCheckbox:r,forceMount:o,...i}=e,a=Wp("CheckboxIndicator",r);return t.createElement(R,{present:o||qp(a.state)||!0===a.state},t.createElement(S.span,u({"data-state":Xp(a.state),"data-disabled":a.disabled?"":void 0},i,{ref:n,style:{pointerEvents:"none",...e.style}})))})),Gp=e=>{const{control:n,checked:r,bubbles:o=!0,...i}=e,a=t.useRef(null),s=function(e){const n=t.useRef({value:e,previous:e});return t.useMemo((()=>(n.current.value!==e&&(n.current.previous=n.current.value,n.current.value=e),n.current.previous)),[e])}(r),l=Vp(n);return t.useEffect((()=>{const e=a.current,t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked").set;if(s!==r&&n){const t=new Event("click",{bubbles:o});e.indeterminate=qp(r),n.call(e,!qp(r)&&r),e.dispatchEvent(t)}}),[s,r,o]),t.createElement("input",u({type:"checkbox","aria-hidden":!0,defaultChecked:!qp(r)&&r},i,{tabIndex:-1,ref:a,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function qp(e){return"indeterminate"===e}function Xp(e){return qp(e)?"indeterminate":e?"checked":"unchecked"}const Yp=Up,Zp=Kp,Qp=a.forwardRef((({className:t="",...n},r)=>e.jsx(Yp,{ref:r,className:jt("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",t),...n,children:e.jsx(Zp,{className:jt("flex items-center justify-center"),children:e.jsx(mp,{className:"h-4 w-4"})})})));function Jp(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function em(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return a.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}Qp.displayName=Yp.displayName;var tm=globalThis?.document?a.useLayoutEffect:()=>{},nm=a[" useInsertionEffect ".trim().toString()]||tm;function rm({prop:e,defaultProp:t,onChange:n=(()=>{}),caller:r}){const[o,i,s]=function({defaultProp:e,onChange:t}){const[n,r]=a.useState(e),o=a.useRef(n),i=a.useRef(t);return nm((()=>{i.current=t}),[t]),a.useEffect((()=>{o.current!==n&&(i.current?.(n),o.current=n)}),[n,o]),[n,r,i]}({defaultProp:t,onChange:n}),l=void 0!==e,u=l?e:o;{const t=a.useRef(void 0!==e);a.useEffect((()=>{const e=t.current;if(e!==l){const t=e?"controlled":"uncontrolled",n=l?"controlled":"uncontrolled";console.warn(`${r} is changing from ${t} to ${n}. 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.`)}t.current=l}),[l,r])}const c=a.useCallback((t=>{if(l){const n=function(e){return"function"==typeof e}(t)?t(e):t;n!==e&&s.current?.(n)}else i(t)}),[l,e,i,s]);return[u,c]}var om=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce(((t,n)=>{const r=ip(`Primitive.${n}`),o=a.forwardRef(((t,o)=>{const{asChild:i,...a}=t,s=i?r:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),e.jsx(s,{...a,ref:o})}));return o.displayName=`Primitive.${n}`,{...t,[n]:o}}),{});var im=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=a.useState(),r=a.useRef(null),o=a.useRef(e),i=a.useRef("none"),s=e?"mounted":"unmounted",[l,u]=function(e,t){return a.useReducer(((e,n)=>t[e][n]??e),e)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect((()=>{const e=am(r.current);i.current="mounted"===l?e:"none"}),[l]),tm((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=am(t);if(e)u("MOUNT");else if("none"===a||"none"===t?.display)u("UNMOUNT");else{u(n&&r!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=e}}),[e,u]),tm((()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,a=i=>{const a=am(r.current).includes(i.animationName);if(i.target===t&&a&&(u("ANIMATION_END"),!o.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)}))}},s=e=>{e.target===t&&(i.current=am(r.current))};return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",a),t.addEventListener("animationend",a),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",a),t.removeEventListener("animationend",a)}}u("ANIMATION_END")}),[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:a.useCallback((e=>{r.current=e?getComputedStyle(e):null,n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):a.Children.only(n),i=op(r.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(o));return"function"==typeof n||r.isPresent?a.cloneElement(o,{ref:i}):null};function am(e){return e?.animationName||"none"}im.displayName="Presence";var sm=a[" useId ".trim().toString()]||(()=>{}),lm=0;function um(e){const[t,n]=a.useState(sm());return tm((()=>{n((e=>e??String(lm++)))}),[e]),e||(t?`radix-${t}`:"")}var cm="Collapsible",[dm,fm]=function(t,n=[]){let r=[];const o=()=>{const e=r.map((e=>a.createContext(e)));return function(n){const r=n?.[t]||e;return a.useMemo((()=>({[`__scope${t}`]:{...n,[t]:r}})),[n,r])}};return o.scopeName=t,[function(n,o){const i=a.createContext(o),s=r.length;r=[...r,o];const l=n=>{const{scope:r,children:o,...l}=n,u=r?.[t]?.[s]||i,c=a.useMemo((()=>l),Object.values(l));return e.jsx(u.Provider,{value:c,children:o})};return l.displayName=n+"Provider",[l,function(e,r){const l=r?.[t]?.[s]||i,u=a.useContext(l);if(u)return u;if(void 0!==o)return o;throw new Error(`\`${e}\` must be used within \`${n}\``)}]},em(o,...n)]}(cm),[pm,mm]=dm(cm),hm=a.forwardRef(((t,n)=>{const{__scopeCollapsible:r,open:o,defaultOpen:i,disabled:s,onOpenChange:l,...u}=t,[c,d]=rm({prop:o,defaultProp:i??!1,onChange:l,caller:cm});return e.jsx(pm,{scope:r,disabled:s,contentId:um(),open:c,onOpenToggle:a.useCallback((()=>d((e=>!e))),[d]),children:e.jsx(om.div,{"data-state":xm(c),"data-disabled":s?"":void 0,...u,ref:n})})}));hm.displayName=cm;var gm="CollapsibleTrigger",vm=a.forwardRef(((t,n)=>{const{__scopeCollapsible:r,...o}=t,i=mm(gm,r);return e.jsx(om.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":xm(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...o,ref:n,onClick:Jp(t.onClick,i.onOpenToggle)})}));vm.displayName=gm;var bm="CollapsibleContent",wm=a.forwardRef(((t,n)=>{const{forceMount:r,...o}=t,i=mm(bm,t.__scopeCollapsible);return e.jsx(im,{present:r||i.open,children:({present:t})=>e.jsx(ym,{...o,ref:n,present:t})})}));wm.displayName=bm;var ym=a.forwardRef(((t,n)=>{const{__scopeCollapsible:r,present:o,children:i,...s}=t,l=mm(bm,r),[u,c]=a.useState(o),d=a.useRef(null),f=op(n,d),p=a.useRef(0),m=p.current,h=a.useRef(0),g=h.current,v=l.open||u,b=a.useRef(v),w=a.useRef(void 0);return a.useEffect((()=>{const e=requestAnimationFrame((()=>b.current=!1));return()=>cancelAnimationFrame(e)}),[]),tm((()=>{const e=d.current;if(e){w.current=w.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";const t=e.getBoundingClientRect();p.current=t.height,h.current=t.width,b.current||(e.style.transitionDuration=w.current.transitionDuration,e.style.animationName=w.current.animationName),c(o)}}),[l.open,o]),e.jsx(om.div,{"data-state":xm(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!v,...s,ref:f,style:{"--radix-collapsible-content-height":m?`${m}px`:void 0,"--radix-collapsible-content-width":g?`${g}px`:void 0,...t.style},children:v&&i})}));function xm(e){return e?"open":"closed"}const Cm=hm,Sm=vm,km=wm;function Em(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function Rm(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function Pm(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return a.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function Nm(e){const t=a.useRef(e);return a.useEffect((()=>{t.current=e})),a.useMemo((()=>(...e)=>t.current?.(...e)),[])}function jm({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[r,o]=function({defaultProp:e,onChange:t}){const n=a.useState(e),[r]=n,o=a.useRef(r),i=Nm(t);return a.useEffect((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}({defaultProp:t,onChange:n}),i=void 0!==e,s=i?e:r,l=Nm(n);return[s,a.useCallback((t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&l(n)}else o(t)}),[i,e,o,l])]}var Mm=a.forwardRef(((t,n)=>{const{children:r,...o}=t,i=a.Children.toArray(r),s=i.find(Tm);if(s){const t=s.props.children,r=i.map((e=>e===s?a.Children.count(t)>1?a.Children.only(null):a.isValidElement(t)?t.props.children:null:e));return e.jsx(Am,{...o,ref:n,children:a.isValidElement(t)?a.cloneElement(t,void 0,r):null})}return e.jsx(Am,{...o,ref:n,children:r})}));Mm.displayName="Slot";var Am=a.forwardRef(((e,t)=>{const{children:n,...r}=e;if(a.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n);return a.cloneElement(n,{...Om(r,n.props),ref:t?Rm(t,e):e})}return a.Children.count(n)>1?a.Children.only(null):null}));Am.displayName="SlotClone";var Im=({children:t})=>e.jsx(e.Fragment,{children:t});function Tm(e){return a.isValidElement(e)&&e.type===Im}function Om(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}var Lm=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,n)=>{const r=a.forwardRef(((t,r)=>{const{asChild:o,...i}=t,a=o?Mm:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),e.jsx(a,{...i,ref:r})}));return r.displayName=`Primitive.${n}`,{...t,[n]:r}}),{});function Dm(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function Fm(t,n=[]){let r=[];const o=()=>{const e=r.map((e=>a.createContext(e)));return function(n){const r=n?.[t]||e;return a.useMemo((()=>({[`__scope${t}`]:{...n,[t]:r}})),[n,r])}};return o.scopeName=t,[function(n,o){const i=a.createContext(o),s=r.length;function l(n){const{scope:r,children:o,...l}=n,u=r?.[t][s]||i,c=a.useMemo((()=>l),Object.values(l));return e.jsx(u.Provider,{value:c,children:o})}return r=[...r,o],l.displayName=n+"Provider",[l,function(e,r){const l=r?.[t][s]||i,u=a.useContext(l);if(u)return u;if(void 0!==o)return o;throw new Error(`\`${e}\` must be used within \`${n}\``)}]},_m(o,...n)]}function _m(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return a.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function Vm(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function zm(...e){return a.useCallback(Vm(...e),e)}var Hm=a.forwardRef(((t,n)=>{const{children:r,...o}=t,i=a.Children.toArray(r),s=i.find(Wm);if(s){const t=s.props.children,r=i.map((e=>e===s?a.Children.count(t)>1?a.Children.only(null):a.isValidElement(t)?t.props.children:null:e));return e.jsx(Bm,{...o,ref:n,children:a.isValidElement(t)?a.cloneElement(t,void 0,r):null})}return e.jsx(Bm,{...o,ref:n,children:r})}));Hm.displayName="Slot";var Bm=a.forwardRef(((e,t)=>{const{children:n,...r}=e;if(a.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n);return a.cloneElement(n,{...Um(r,n.props),ref:t?Vm(t,e):e})}return a.Children.count(n)>1?a.Children.only(null):null}));Bm.displayName="SlotClone";var $m=({children:t})=>e.jsx(e.Fragment,{children:t});function Wm(e){return a.isValidElement(e)&&e.type===$m}function Um(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Km(n){const r=n+"CollectionProvider",[o,i]=Fm(r),[a,s]=o(r,{collectionRef:{current:null},itemMap:new Map}),l=n=>{const{scope:r,children:o}=n,i=t.useRef(null),s=t.useRef(new Map).current;return e.jsx(a,{scope:r,itemMap:s,collectionRef:i,children:o})};l.displayName=r;const u=n+"CollectionSlot",c=t.forwardRef(((t,n)=>{const{scope:r,children:o}=t,i=zm(n,s(u,r).collectionRef);return e.jsx(Hm,{ref:i,children:o})}));c.displayName=u;const d=n+"CollectionItemSlot",f="data-radix-collection-item",p=t.forwardRef(((n,r)=>{const{scope:o,children:i,...a}=n,l=t.useRef(null),u=zm(r,l),c=s(d,o);return t.useEffect((()=>(c.itemMap.set(l,{ref:l,...a}),()=>{c.itemMap.delete(l)}))),e.jsx(Hm,{[f]:"",ref:u,children:i})}));return p.displayName=d,[{Provider:l,Slot:c,ItemSlot:p},function(e){const r=s(n+"CollectionConsumer",e),o=t.useCallback((()=>{const e=r.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${f}]`)),n=Array.from(r.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)));return n}),[r.collectionRef,r.itemMap]);return o},i]}var Gm=a.createContext(void 0);function qm(e){const t=a.useContext(Gm);return e||t||"ltr"}var Xm=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,n)=>{const r=a.forwardRef(((t,r)=>{const{asChild:o,...i}=t,a=o?Hm:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),e.jsx(a,{...i,ref:r})}));return r.displayName=`Primitive.${n}`,{...t,[n]:r}}),{});function Ym(e,t){e&&s.flushSync((()=>e.dispatchEvent(t)))}function Zm(e){const t=a.useRef(e);return a.useEffect((()=>{t.current=e})),a.useMemo((()=>(...e)=>t.current?.(...e)),[])}var Qm,Jm="dismissableLayer.update",eh="dismissableLayer.pointerDownOutside",th="dismissableLayer.focusOutside",nh=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),rh=a.forwardRef(((t,n)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...c}=t,d=a.useContext(nh),[f,p]=a.useState(null),m=f?.ownerDocument??globalThis?.document,[,h]=a.useState({}),g=zm(n,(e=>p(e))),v=Array.from(d.layers),[b]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),w=v.indexOf(b),y=f?v.indexOf(f):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,C=y>=w,S=function(e,t=globalThis?.document){const n=Zm(e),r=a.useRef(!1),o=a.useRef((()=>{}));return a.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){ah(eh,n,i,{discrete:!0})};const i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...d.branches].some((e=>e.contains(t)));C&&!n&&(i?.(e),l?.(e),e.defaultPrevented||u?.())}),m),k=function(e,t=globalThis?.document){const n=Zm(e),r=a.useRef(!1);return a.useEffect((()=>{const e=e=>{if(e.target&&!r.current){ah(th,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...d.branches].some((e=>e.contains(t)))||(s?.(e),l?.(e),e.defaultPrevented||u?.())}),m);return function(e,t=globalThis?.document){const n=Zm(e);a.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})}),[n,t])}((e=>{y===d.layers.size-1&&(o?.(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))}),m),a.useEffect((()=>{if(f)return r&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(Qm=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),ih(),()=>{r&&1===d.layersWithOutsidePointerEventsDisabled.size&&(m.body.style.pointerEvents=Qm)}}),[f,m,r,d]),a.useEffect((()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),ih())}),[f,d]),a.useEffect((()=>{const e=()=>h({});return document.addEventListener(Jm,e),()=>document.removeEventListener(Jm,e)}),[]),e.jsx(Xm.div,{...c,ref:g,style:{pointerEvents:x?C?"auto":"none":void 0,...t.style},onFocusCapture:Dm(t.onFocusCapture,k.onFocusCapture),onBlurCapture:Dm(t.onBlurCapture,k.onBlurCapture),onPointerDownCapture:Dm(t.onPointerDownCapture,S.onPointerDownCapture)})}));rh.displayName="DismissableLayer";var oh=a.forwardRef(((t,n)=>{const r=a.useContext(nh),o=a.useRef(null),i=zm(n,o);return a.useEffect((()=>{const e=o.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}}),[r.branches]),e.jsx(Xm.div,{...t,ref:i})}));function ih(){const e=new CustomEvent(Jm);document.dispatchEvent(e)}function ah(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Ym(o,i):o.dispatchEvent(i)}oh.displayName="DismissableLayerBranch";var sh=0;function lh(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var uh="focusScope.autoFocusOnMount",ch="focusScope.autoFocusOnUnmount",dh={bubbles:!1,cancelable:!0},fh=a.forwardRef(((t,n)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...l}=t,[u,c]=a.useState(null),d=Zm(i),f=Zm(s),p=a.useRef(null),m=zm(n,(e=>c(e))),h=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect((()=>{if(o){let e=function(e){if(h.paused||!u)return;const t=e.target;u.contains(t)?p.current=t:gh(p.current,{select:!0})},t=function(e){if(h.paused||!u)return;const t=e.relatedTarget;null!==t&&(u.contains(t)||gh(p.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&gh(u)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return u&&r.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[o,u,h.paused]),a.useEffect((()=>{if(u){vh.add(h);const t=document.activeElement;if(!u.contains(t)){const n=new CustomEvent(uh,dh);u.addEventListener(uh,d),u.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(gh(r,{select:t}),document.activeElement!==n)return}((e=ph(u),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&gh(u))}return()=>{u.removeEventListener(uh,d),setTimeout((()=>{const e=new CustomEvent(ch,dh);u.addEventListener(ch,f),u.dispatchEvent(e),e.defaultPrevented||gh(t??document.body,{select:!0}),u.removeEventListener(ch,f),vh.remove(h)}),0)}}var e}),[u,d,f,h]);const g=a.useCallback((e=>{if(!r&&!o)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[o,i]=function(e){const t=ph(e),n=mh(t,e),r=mh(t.reverse(),e);return[n,r]}(t);o&&i?e.shiftKey||n!==i?e.shiftKey&&n===o&&(e.preventDefault(),r&&gh(i,{select:!0})):(e.preventDefault(),r&&gh(o,{select:!0})):n===t&&e.preventDefault()}}),[r,o,h.paused]);return e.jsx(Xm.div,{tabIndex:-1,...l,ref:m,onKeyDown:g})}));function ph(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function mh(e,t){for(const n of e)if(!hh(n,{upTo:t}))return n}function hh(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function gh(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}fh.displayName="FocusScope";var vh=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=bh(e,t),e.unshift(t)},remove(t){e=bh(e,t),e[0]?.resume()}}}();function bh(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var wh=Boolean(globalThis?.document)?a.useLayoutEffect:()=>{},yh=a["useId".toString()]||(()=>{}),xh=0;function Ch(e){const[t,n]=a.useState(yh());return wh((()=>{n((e=>e??String(xh++)))}),[e]),t?`radix-${t}`:""}var Sh="undefined"!=typeof document?t.useLayoutEffect:t.useEffect;function kh(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!kh(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!kh(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Eh(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Rh(e,t){const n=Eh(e);return Math.round(t*n)/n}function Ph(e){const t=a.useRef(e);return Sh((()=>{t.current=e})),t}function Nh(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:l}={},transform:u=!0,whileElementsMounted:c,open:d}=e,[f,p]=a.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=a.useState(r);kh(m,r)||h(r);const[g,v]=a.useState(null),[b,w]=a.useState(null),y=a.useCallback((e=>{e!==k.current&&(k.current=e,v(e))}),[]),x=a.useCallback((e=>{e!==E.current&&(E.current=e,w(e))}),[]),C=i||g,S=l||b,k=a.useRef(null),E=a.useRef(null),R=a.useRef(f),P=null!=c,N=Ph(c),j=Ph(o),M=a.useCallback((()=>{if(!k.current||!E.current)return;const e={placement:t,strategy:n,middleware:m};j.current&&(e.platform=j.current),gl(k.current,E.current,e).then((e=>{const t={...e,isPositioned:!0};A.current&&!kh(R.current,t)&&(R.current=t,s.flushSync((()=>{p(t)})))}))}),[m,t,n,j]);Sh((()=>{!1===d&&R.current.isPositioned&&(R.current.isPositioned=!1,p((e=>({...e,isPositioned:!1}))))}),[d]);const A=a.useRef(!1);Sh((()=>(A.current=!0,()=>{A.current=!1})),[]),Sh((()=>{if(C&&(k.current=C),S&&(E.current=S),C&&S){if(N.current)return N.current(C,S,M);M()}}),[C,S,M,N,P]);const I=a.useMemo((()=>({reference:k,floating:E,setReference:y,setFloating:x})),[y,x]),T=a.useMemo((()=>({reference:C,floating:S})),[C,S]),O=a.useMemo((()=>{const e={position:n,left:0,top:0};if(!T.floating)return e;const t=Rh(T.floating,f.x),r=Rh(T.floating,f.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",...Eh(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,u,T.floating,f.x,f.y]);return a.useMemo((()=>({...f,update:M,refs:I,elements:T,floatingStyles:O})),[f,M,I,T,O])}const jh=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?ml({element:n.current,padding:r}).fn(t):{}:n?ml({element:n,padding:r}).fn(t):{};var o}}),Mh=(e,t)=>({...ul(e),options:[e,t]}),Ah=(e,t)=>({...cl(e),options:[e,t]}),Ih=(e,t)=>({...hl(e),options:[e,t]}),Th=(e,t)=>({...dl(e),options:[e,t]}),Oh=(e,t)=>({...fl(e),options:[e,t]}),Lh=(e,t)=>({...pl(e),options:[e,t]}),Dh=(e,t)=>({...jh(e),options:[e,t]});var Fh=a.forwardRef(((t,n)=>{const{children:r,width:o=10,height:i=5,...a}=t;return e.jsx(Xm.svg,{...a,ref:n,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:e.jsx("polygon",{points:"0,0 30,0 15,10"})})}));Fh.displayName="Arrow";var _h=Fh;var Vh="Popper",[zh,Hh]=Fm(Vh),[Bh,$h]=zh(Vh),Wh=t=>{const{__scopePopper:n,children:r}=t,[o,i]=a.useState(null);return e.jsx(Bh,{scope:n,anchor:o,onAnchorChange:i,children:r})};Wh.displayName=Vh;var Uh="PopperAnchor",Kh=a.forwardRef(((t,n)=>{const{__scopePopper:r,virtualRef:o,...i}=t,s=$h(Uh,r),l=a.useRef(null),u=zm(n,l);return a.useEffect((()=>{s.onAnchorChange(o?.current||l.current)})),o?null:e.jsx(Xm.div,{...i,ref:u})}));Kh.displayName=Uh;var Gh="PopperContent",[qh,Xh]=zh(Gh),Yh=a.forwardRef(((t,n)=>{const{__scopePopper:r,side:o="bottom",sideOffset:i=0,align:s="center",alignOffset:l=0,arrowPadding:u=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:m=!1,updatePositionStrategy:h="optimized",onPlaced:g,...v}=t,b=$h(Gh,r),[w,y]=a.useState(null),x=zm(n,(e=>y(e))),[C,S]=a.useState(null),k=function(e){const[t,n]=a.useState(void 0);return wh((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}(C),E=k?.width??0,R=k?.height??0,P=o+("center"!==s?"-"+s:""),N="number"==typeof f?f:{top:0,right:0,bottom:0,left:0,...f},j=Array.isArray(d)?d:[d],M=j.length>0,A={padding:N,boundary:j.filter(eg),altBoundary:M},{refs:I,floatingStyles:T,placement:O,isPositioned:L,middlewareData:D}=Nh({strategy:"fixed",placement:P,whileElementsMounted:(...e)=>sl(...e,{animationFrame:"always"===h}),elements:{reference:b.anchor},middleware:[Mh({mainAxis:i+R,alignmentAxis:l}),c&&Ah({mainAxis:!0,crossAxis:!1,limiter:"partial"===p?Ih():void 0,...A}),c&&Th({...A}),Oh({...A,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),C&&Dh({element:C,padding:u}),tg({arrowWidth:E,arrowHeight:R}),m&&Lh({strategy:"referenceHidden",...A})]}),[F,_]=ng(O),V=Zm(g);wh((()=>{L&&V?.()}),[L,V]);const z=D.arrow?.x,H=D.arrow?.y,B=0!==D.arrow?.centerOffset,[$,W]=a.useState();return wh((()=>{w&&W(window.getComputedStyle(w).zIndex)}),[w]),e.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...T,transform:L?T.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:$,"--radix-popper-transform-origin":[D.transformOrigin?.x,D.transformOrigin?.y].join(" "),...D.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:e.jsx(qh,{scope:r,placedSide:F,onArrowChange:S,arrowX:z,arrowY:H,shouldHideArrow:B,children:e.jsx(Xm.div,{"data-side":F,"data-align":_,...v,ref:x,style:{...v.style,animation:L?void 0:"none"}})})})}));Yh.displayName=Gh;var Zh="PopperArrow",Qh={top:"bottom",right:"left",bottom:"top",left:"right"},Jh=a.forwardRef((function(t,n){const{__scopePopper:r,...o}=t,i=Xh(Zh,r),a=Qh[i.placedSide];return e.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:e.jsx(_h,{...o,ref:n,style:{...o.style,display:"block"}})})}));function eg(e){return null!==e}Jh.displayName=Zh;var tg=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=0!==o.arrow?.centerOffset,a=i?0:e.arrowWidth,s=i?0:e.arrowHeight,[l,u]=ng(n),c={start:"0%",center:"50%",end:"100%"}[u],d=(o.arrow?.x??0)+a/2,f=(o.arrow?.y??0)+s/2;let p="",m="";return"bottom"===l?(p=i?c:`${d}px`,m=-s+"px"):"top"===l?(p=i?c:`${d}px`,m=`${r.floating.height+s}px`):"right"===l?(p=-s+"px",m=i?c:`${f}px`):"left"===l&&(p=`${r.floating.width+s}px`,m=i?c:`${f}px`),{data:{x:p,y:m}}}});function ng(e){const[t,n="center"]=e.split("-");return[t,n]}var rg=Wh,og=Kh,ig=Yh,ag=Jh,sg=a.forwardRef(((t,r)=>{const{container:o,...i}=t,[s,l]=a.useState(!1);wh((()=>l(!0)),[]);const u=o||s&&globalThis?.document?.body;return u?n.createPortal(e.jsx(Xm.div,{...i,ref:r}),u):null}));sg.displayName="Portal";var lg=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=a.useState(),r=a.useRef({}),o=a.useRef(e),i=a.useRef("none"),l=e?"mounted":"unmounted",[u,c]=function(e,t){return a.useReducer(((e,n)=>t[e][n]??e),e)}(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect((()=>{const e=ug(r.current);i.current="mounted"===u?e:"none"}),[u]),wh((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=ug(t);if(e)c("MOUNT");else if("none"===a||"none"===t?.display)c("UNMOUNT");else{c(n&&r!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=e}}),[e,c]),wh((()=>{if(t){const e=e=>{const n=ug(r.current).includes(e.animationName);e.target===t&&n&&s.flushSync((()=>c("ANIMATION_END")))},n=e=>{e.target===t&&(i.current=ug(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:a.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):a.Children.only(n),i=zm(r.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(o));return"function"==typeof n||r.isPresent?a.cloneElement(o,{ref:i}):null};function ug(e){return e?.animationName||"none"}function cg({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[r,o]=function({defaultProp:e,onChange:t}){const n=a.useState(e),[r]=n,o=a.useRef(r),i=Zm(t);return a.useEffect((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}({defaultProp:t,onChange:n}),i=void 0!==e,s=i?e:r,l=Zm(n);return[s,a.useCallback((t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&l(n)}else o(t)}),[i,e,o,l])]}lg.displayName="Presence";var dg="rovingFocusGroup.onEntryFocus",fg={bubbles:!1,cancelable:!0},pg="RovingFocusGroup",[mg,hg,gg]=Km(pg),[vg,bg]=Fm(pg,[gg]),[wg,yg]=vg(pg),xg=a.forwardRef(((t,n)=>e.jsx(mg.Provider,{scope:t.__scopeRovingFocusGroup,children:e.jsx(mg.Slot,{scope:t.__scopeRovingFocusGroup,children:e.jsx(Cg,{...t,ref:n})})})));xg.displayName=pg;var Cg=a.forwardRef(((t,n)=>{const{__scopeRovingFocusGroup:r,orientation:o,loop:i=!1,dir:s,currentTabStopId:l,defaultCurrentTabStopId:u,onCurrentTabStopIdChange:c,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...p}=t,m=a.useRef(null),h=zm(n,m),g=qm(s),[v=null,b]=cg({prop:l,defaultProp:u,onChange:c}),[w,y]=a.useState(!1),x=Zm(d),C=hg(r),S=a.useRef(!1),[k,E]=a.useState(0);return a.useEffect((()=>{const e=m.current;if(e)return e.addEventListener(dg,x),()=>e.removeEventListener(dg,x)}),[x]),e.jsx(wg,{scope:r,orientation:o,dir:g,loop:i,currentTabStopId:v,onItemFocus:a.useCallback((e=>b(e)),[b]),onItemShiftTab:a.useCallback((()=>y(!0)),[]),onFocusableItemAdd:a.useCallback((()=>E((e=>e+1))),[]),onFocusableItemRemove:a.useCallback((()=>E((e=>e-1))),[]),children:e.jsx(Xm.div,{tabIndex:w||0===k?-1:0,"data-orientation":o,...p,ref:h,style:{outline:"none",...t.style},onMouseDown:Dm(t.onMouseDown,(()=>{S.current=!0})),onFocus:Dm(t.onFocus,(e=>{const t=!S.current;if(e.target===e.currentTarget&&t&&!w){const t=new CustomEvent(dg,fg);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=C().filter((e=>e.focusable));Rg([e.find((e=>e.active)),e.find((e=>e.id===v)),...e].filter(Boolean).map((e=>e.ref.current)),f)}}S.current=!1})),onBlur:Dm(t.onBlur,(()=>y(!1)))})})})),Sg="RovingFocusGroupItem",kg=a.forwardRef(((t,n)=>{const{__scopeRovingFocusGroup:r,focusable:o=!0,active:i=!1,tabStopId:s,...l}=t,u=Ch(),c=s||u,d=yg(Sg,r),f=d.currentTabStopId===c,p=hg(r),{onFocusableItemAdd:m,onFocusableItemRemove:h}=d;return a.useEffect((()=>{if(o)return m(),()=>h()}),[o,m,h]),e.jsx(mg.ItemSlot,{scope:r,id:c,focusable:o,active:i,children:e.jsx(Xm.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...l,ref:n,onMouseDown:Dm(t.onMouseDown,(e=>{o?d.onItemFocus(c):e.preventDefault()})),onFocus:Dm(t.onFocus,(()=>d.onItemFocus(c))),onKeyDown:Dm(t.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void d.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:Eg[r]}(e,d.orientation,d.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=p().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const i=o.indexOf(e.currentTarget);o=d.loop?(r=i+1,(n=o).map(((e,t)=>n[(r+t)%n.length]))):o.slice(i+1)}setTimeout((()=>Rg(o)))}var n,r}))})})}));kg.displayName=Sg;var Eg={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Rg(e,t=!1){const n=document.activeElement;for(const r of e){if(r===n)return;if(r.focus({preventScroll:t}),document.activeElement!==n)return}}var Pg=xg,Ng=kg,jg=["Enter"," "],Mg=["ArrowUp","PageDown","End"],Ag=["ArrowDown","PageUp","Home",...Mg],Ig={ltr:[...jg,"ArrowRight"],rtl:[...jg,"ArrowLeft"]},Tg={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Og="Menu",[Lg,Dg,Fg]=Km(Og),[_g,Vg]=Fm(Og,[Fg,Hh,bg]),zg=Hh(),Hg=bg(),[Bg,$g]=_g(Og),[Wg,Ug]=_g(Og),Kg=t=>{const{__scopeMenu:n,open:r=!1,children:o,dir:i,onOpenChange:s,modal:l=!0}=t,u=zg(n),[c,d]=a.useState(null),f=a.useRef(!1),p=Zm(s),m=qm(i);return a.useEffect((()=>{const e=()=>{f.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}}),[]),e.jsx(rg,{...u,children:e.jsx(Bg,{scope:n,open:r,onOpenChange:p,content:c,onContentChange:d,children:e.jsx(Wg,{scope:n,onClose:a.useCallback((()=>p(!1)),[p]),isUsingKeyboardRef:f,dir:m,modal:l,children:o})})})};Kg.displayName=Og;var Gg=a.forwardRef(((t,n)=>{const{__scopeMenu:r,...o}=t,i=zg(r);return e.jsx(og,{...i,...o,ref:n})}));Gg.displayName="MenuAnchor";var qg="MenuPortal",[Xg,Yg]=_g(qg,{forceMount:void 0}),Zg=t=>{const{__scopeMenu:n,forceMount:r,children:o,container:i}=t,a=$g(qg,n);return e.jsx(Xg,{scope:n,forceMount:r,children:e.jsx(lg,{present:r||a.open,children:e.jsx(sg,{asChild:!0,container:i,children:o})})})};Zg.displayName=qg;var Qg="MenuContent",[Jg,ev]=_g(Qg),tv=a.forwardRef(((t,n)=>{const r=Yg(Qg,t.__scopeMenu),{forceMount:o=r.forceMount,...i}=t,a=$g(Qg,t.__scopeMenu),s=Ug(Qg,t.__scopeMenu);return e.jsx(Lg.Provider,{scope:t.__scopeMenu,children:e.jsx(lg,{present:o||a.open,children:e.jsx(Lg.Slot,{scope:t.__scopeMenu,children:s.modal?e.jsx(nv,{...i,ref:n}):e.jsx(rv,{...i,ref:n})})})})})),nv=a.forwardRef(((t,n)=>{const r=$g(Qg,t.__scopeMenu),o=a.useRef(null),i=zm(n,o);return a.useEffect((()=>{const e=o.current;if(e)return Hd(e)}),[]),e.jsx(ov,{...t,ref:i,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:Dm(t.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})})),rv=a.forwardRef(((t,n)=>{const r=$g(Qg,t.__scopeMenu);return e.jsx(ov,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})})),ov=a.forwardRef(((t,n)=>{const{__scopeMenu:r,loop:o=!1,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:l,disableOutsidePointerEvents:u,onEntryFocus:c,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,onDismiss:h,disableOutsideScroll:g,...v}=t,b=$g(Qg,r),w=Ug(Qg,r),y=zg(r),x=Hg(r),C=Dg(r),[S,k]=a.useState(null),E=a.useRef(null),R=zm(n,E,b.onContentChange),P=a.useRef(0),N=a.useRef(""),j=a.useRef(0),M=a.useRef(null),A=a.useRef("right"),I=a.useRef(0),T=g?Od:a.Fragment,O=g?{as:Hm,allowPinchZoom:!0}:void 0,L=e=>{const t=N.current+e,n=C().filter((e=>!e.disabled)),r=document.activeElement,o=n.find((e=>e.ref.current===r))?.textValue,i=function(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0])),o=r?t[0]:t,i=n?e.indexOf(n):-1;let a=(s=e,l=Math.max(i,0),s.map(((e,t)=>s[(l+t)%s.length])));var s,l;1===o.length&&(a=a.filter((e=>e!==n)));const u=a.find((e=>e.toLowerCase().startsWith(o.toLowerCase())));return u!==n?u:void 0}(n.map((e=>e.textValue)),t,o),a=n.find((e=>e.textValue===i))?.ref.current;!function e(t){N.current=t,window.clearTimeout(P.current),""!==t&&(P.current=window.setTimeout((()=>e("")),1e3))}(t),a&&setTimeout((()=>a.focus()))};a.useEffect((()=>()=>window.clearTimeout(P.current)),[]),a.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??lh()),document.body.insertAdjacentElement("beforeend",e[1]??lh()),sh++,()=>{1===sh&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),sh--}}),[]);const D=a.useCallback((e=>A.current===M.current?.side&&function(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e].x,s=t[e].y,l=t[i].x,u=t[i].y;s>r!=u>r&&n<(l-a)*(r-s)/(u-s)+a&&(o=!o)}return o}(n,t)}(e,M.current?.area)),[]);return e.jsx(Jg,{scope:r,searchRef:N,onItemEnter:a.useCallback((e=>{D(e)&&e.preventDefault()}),[D]),onItemLeave:a.useCallback((e=>{D(e)||(E.current?.focus(),k(null))}),[D]),onTriggerLeave:a.useCallback((e=>{D(e)&&e.preventDefault()}),[D]),pointerGraceTimerRef:j,onPointerGraceIntentChange:a.useCallback((e=>{M.current=e}),[]),children:e.jsx(T,{...O,children:e.jsx(fh,{asChild:!0,trapped:i,onMountAutoFocus:Dm(s,(e=>{e.preventDefault(),E.current?.focus({preventScroll:!0})})),onUnmountAutoFocus:l,children:e.jsx(rh,{asChild:!0,disableOutsidePointerEvents:u,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,onDismiss:h,children:e.jsx(Pg,{asChild:!0,...x,dir:w.dir,orientation:"vertical",loop:o,currentTabStopId:S,onCurrentTabStopIdChange:k,onEntryFocus:Dm(c,(e=>{w.isUsingKeyboardRef.current||e.preventDefault()})),preventScrollOnEntryFocus:!0,children:e.jsx(ig,{role:"menu","aria-orientation":"vertical","data-state":Iv(b.open),"data-radix-menu-content":"",dir:w.dir,...y,...v,ref:R,style:{outline:"none",...v.style},onKeyDown:Dm(v.onKeyDown,(e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&L(e.key));const o=E.current;if(e.target!==o)return;if(!Ag.includes(e.key))return;e.preventDefault();const i=C().filter((e=>!e.disabled)).map((e=>e.ref.current));Mg.includes(e.key)&&i.reverse(),function(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}(i)})),onBlur:Dm(t.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(P.current),N.current="")})),onPointerMove:Dm(t.onPointerMove,Lv((e=>{const t=e.target,n=I.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>I.current?"right":"left";A.current=t,I.current=e.clientX}})))})})})})})})}));tv.displayName=Qg;var iv=a.forwardRef(((t,n)=>{const{__scopeMenu:r,...o}=t;return e.jsx(Xm.div,{role:"group",...o,ref:n})}));iv.displayName="MenuGroup";var av=a.forwardRef(((t,n)=>{const{__scopeMenu:r,...o}=t;return e.jsx(Xm.div,{...o,ref:n})}));av.displayName="MenuLabel";var sv="MenuItem",lv="menu.itemSelect",uv=a.forwardRef(((t,n)=>{const{disabled:r=!1,onSelect:o,...i}=t,s=a.useRef(null),l=Ug(sv,t.__scopeMenu),u=ev(sv,t.__scopeMenu),c=zm(n,s),d=a.useRef(!1);return e.jsx(cv,{...i,ref:c,disabled:r,onClick:Dm(t.onClick,(()=>{const e=s.current;if(!r&&e){const t=new CustomEvent(lv,{bubbles:!0,cancelable:!0});e.addEventListener(lv,(e=>o?.(e)),{once:!0}),Ym(e,t),t.defaultPrevented?d.current=!1:l.onClose()}})),onPointerDown:e=>{t.onPointerDown?.(e),d.current=!0},onPointerUp:Dm(t.onPointerUp,(e=>{d.current||e.currentTarget?.click()})),onKeyDown:Dm(t.onKeyDown,(e=>{const t=""!==u.searchRef.current;r||t&&" "===e.key||jg.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))})}));uv.displayName=sv;var cv=a.forwardRef(((t,n)=>{const{__scopeMenu:r,disabled:o=!1,textValue:i,...s}=t,l=ev(sv,r),u=Hg(r),c=a.useRef(null),d=zm(n,c),[f,p]=a.useState(!1),[m,h]=a.useState("");return a.useEffect((()=>{const e=c.current;e&&h((e.textContent??"").trim())}),[s.children]),e.jsx(Lg.ItemSlot,{scope:r,disabled:o,textValue:i??m,children:e.jsx(Ng,{asChild:!0,...u,focusable:!o,children:e.jsx(Xm.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...s,ref:d,onPointerMove:Dm(t.onPointerMove,Lv((e=>{if(o)l.onItemLeave(e);else if(l.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus({preventScroll:!0})}}))),onPointerLeave:Dm(t.onPointerLeave,Lv((e=>l.onItemLeave(e)))),onFocus:Dm(t.onFocus,(()=>p(!0))),onBlur:Dm(t.onBlur,(()=>p(!1)))})})})})),dv=a.forwardRef(((t,n)=>{const{checked:r=!1,onCheckedChange:o,...i}=t;return e.jsx(wv,{scope:t.__scopeMenu,checked:r,children:e.jsx(uv,{role:"menuitemcheckbox","aria-checked":Tv(r)?"mixed":r,...i,ref:n,"data-state":Ov(r),onSelect:Dm(i.onSelect,(()=>o?.(!!Tv(r)||!r)),{checkForDefaultPrevented:!1})})})}));dv.displayName="MenuCheckboxItem";var fv="MenuRadioGroup",[pv,mv]=_g(fv,{value:void 0,onValueChange:()=>{}}),hv=a.forwardRef(((t,n)=>{const{value:r,onValueChange:o,...i}=t,a=Zm(o);return e.jsx(pv,{scope:t.__scopeMenu,value:r,onValueChange:a,children:e.jsx(iv,{...i,ref:n})})}));hv.displayName=fv;var gv="MenuRadioItem",vv=a.forwardRef(((t,n)=>{const{value:r,...o}=t,i=mv(gv,t.__scopeMenu),a=r===i.value;return e.jsx(wv,{scope:t.__scopeMenu,checked:a,children:e.jsx(uv,{role:"menuitemradio","aria-checked":a,...o,ref:n,"data-state":Ov(a),onSelect:Dm(o.onSelect,(()=>i.onValueChange?.(r)),{checkForDefaultPrevented:!1})})})}));vv.displayName=gv;var bv="MenuItemIndicator",[wv,yv]=_g(bv,{checked:!1}),xv=a.forwardRef(((t,n)=>{const{__scopeMenu:r,forceMount:o,...i}=t,a=yv(bv,r);return e.jsx(lg,{present:o||Tv(a.checked)||!0===a.checked,children:e.jsx(Xm.span,{...i,ref:n,"data-state":Ov(a.checked)})})}));xv.displayName=bv;var Cv=a.forwardRef(((t,n)=>{const{__scopeMenu:r,...o}=t;return e.jsx(Xm.div,{role:"separator","aria-orientation":"horizontal",...o,ref:n})}));Cv.displayName="MenuSeparator";var Sv=a.forwardRef(((t,n)=>{const{__scopeMenu:r,...o}=t,i=zg(r);return e.jsx(ag,{...i,...o,ref:n})}));Sv.displayName="MenuArrow";var kv="MenuSub",[Ev,Rv]=_g(kv),Pv=t=>{const{__scopeMenu:n,children:r,open:o=!1,onOpenChange:i}=t,s=$g(kv,n),l=zg(n),[u,c]=a.useState(null),[d,f]=a.useState(null),p=Zm(i);return a.useEffect((()=>(!1===s.open&&p(!1),()=>p(!1))),[s.open,p]),e.jsx(rg,{...l,children:e.jsx(Bg,{scope:n,open:o,onOpenChange:p,content:d,onContentChange:f,children:e.jsx(Ev,{scope:n,contentId:Ch(),triggerId:Ch(),trigger:u,onTriggerChange:c,children:r})})})};Pv.displayName=kv;var Nv="MenuSubTrigger",jv=a.forwardRef(((t,n)=>{const r=$g(Nv,t.__scopeMenu),o=Ug(Nv,t.__scopeMenu),i=Rv(Nv,t.__scopeMenu),s=ev(Nv,t.__scopeMenu),l=a.useRef(null),{pointerGraceTimerRef:u,onPointerGraceIntentChange:c}=s,d={__scopeMenu:t.__scopeMenu},f=a.useCallback((()=>{l.current&&window.clearTimeout(l.current),l.current=null}),[]);return a.useEffect((()=>f),[f]),a.useEffect((()=>{const e=u.current;return()=>{window.clearTimeout(e),c(null)}}),[u,c]),e.jsx(Gg,{asChild:!0,...d,children:e.jsx(cv,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":i.contentId,"data-state":Iv(r.open),...t,ref:Vm(n,i.onTriggerChange),onClick:e=>{t.onClick?.(e),t.disabled||e.defaultPrevented||(e.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:Dm(t.onPointerMove,Lv((e=>{s.onItemEnter(e),e.defaultPrevented||t.disabled||r.open||l.current||(s.onPointerGraceIntentChange(null),l.current=window.setTimeout((()=>{r.onOpenChange(!0),f()}),100))}))),onPointerLeave:Dm(t.onPointerLeave,Lv((e=>{f();const t=r.content?.getBoundingClientRect();if(t){const n=r.content?.dataset.side,o="right"===n,i=o?-5:5,a=t[o?"left":"right"],l=t[o?"right":"left"];s.onPointerGraceIntentChange({area:[{x:e.clientX+i,y:e.clientY},{x:a,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:a,y:t.bottom}],side:n}),window.clearTimeout(u.current),u.current=window.setTimeout((()=>s.onPointerGraceIntentChange(null)),300)}else{if(s.onTriggerLeave(e),e.defaultPrevented)return;s.onPointerGraceIntentChange(null)}}))),onKeyDown:Dm(t.onKeyDown,(e=>{const n=""!==s.searchRef.current;t.disabled||n&&" "===e.key||Ig[o.dir].includes(e.key)&&(r.onOpenChange(!0),r.content?.focus(),e.preventDefault())}))})})}));jv.displayName=Nv;var Mv="MenuSubContent",Av=a.forwardRef(((t,n)=>{const r=Yg(Qg,t.__scopeMenu),{forceMount:o=r.forceMount,...i}=t,s=$g(Qg,t.__scopeMenu),l=Ug(Qg,t.__scopeMenu),u=Rv(Mv,t.__scopeMenu),c=a.useRef(null),d=zm(n,c);return e.jsx(Lg.Provider,{scope:t.__scopeMenu,children:e.jsx(lg,{present:o||s.open,children:e.jsx(Lg.Slot,{scope:t.__scopeMenu,children:e.jsx(ov,{id:u.contentId,"aria-labelledby":u.triggerId,...i,ref:d,align:"start",side:"rtl"===l.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{l.isUsingKeyboardRef.current&&c.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:Dm(t.onFocusOutside,(e=>{e.target!==u.trigger&&s.onOpenChange(!1)})),onEscapeKeyDown:Dm(t.onEscapeKeyDown,(e=>{l.onClose(),e.preventDefault()})),onKeyDown:Dm(t.onKeyDown,(e=>{const t=e.currentTarget.contains(e.target),n=Tg[l.dir].includes(e.key);t&&n&&(s.onOpenChange(!1),u.trigger?.focus(),e.preventDefault())}))})})})})}));function Iv(e){return e?"open":"closed"}function Tv(e){return"indeterminate"===e}function Ov(e){return Tv(e)?"indeterminate":e?"checked":"unchecked"}function Lv(e){return t=>"mouse"===t.pointerType?e(t):void 0}Av.displayName=Mv;var Dv=Kg,Fv=Gg,_v=Zg,Vv=tv,zv=iv,Hv=av,Bv=uv,$v=dv,Wv=hv,Uv=vv,Kv=xv,Gv=Cv,qv=Sv,Xv=Pv,Yv=jv,Zv=Av,Qv=Boolean(globalThis?.document)?a.useLayoutEffect:()=>{},Jv=a["useId".toString()]||(()=>{}),eb=0;function tb(e){const[t,n]=a.useState(Jv());return Qv((()=>{n((e=>e??String(eb++)))}),[e]),e||(t?`radix-${t}`:"")}var nb="DropdownMenu",[rb,ob]=function(t,n=[]){let r=[];const o=()=>{const e=r.map((e=>a.createContext(e)));return function(n){const r=n?.[t]||e;return a.useMemo((()=>({[`__scope${t}`]:{...n,[t]:r}})),[n,r])}};return o.scopeName=t,[function(n,o){const i=a.createContext(o),s=r.length;function l(n){const{scope:r,children:o,...l}=n,u=r?.[t][s]||i,c=a.useMemo((()=>l),Object.values(l));return e.jsx(u.Provider,{value:c,children:o})}return r=[...r,o],l.displayName=n+"Provider",[l,function(e,r){const l=r?.[t][s]||i,u=a.useContext(l);if(u)return u;if(void 0!==o)return o;throw new Error(`\`${e}\` must be used within \`${n}\``)}]},Pm(o,...n)]}(nb,[Vg]),ib=Vg(),[ab,sb]=rb(nb),lb=t=>{const{__scopeDropdownMenu:n,children:r,dir:o,open:i,defaultOpen:s,onOpenChange:l,modal:u=!0}=t,c=ib(n),d=a.useRef(null),[f=!1,p]=jm({prop:i,defaultProp:s,onChange:l});return e.jsx(ab,{scope:n,triggerId:tb(),triggerRef:d,contentId:tb(),open:f,onOpenChange:p,onOpenToggle:a.useCallback((()=>p((e=>!e))),[p]),modal:u,children:e.jsx(Dv,{...c,open:f,onOpenChange:p,dir:o,modal:u,children:r})})};lb.displayName=nb;var ub="DropdownMenuTrigger",cb=a.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,disabled:o=!1,...i}=t,a=sb(ub,r),s=ib(r);return e.jsx(Fv,{asChild:!0,...s,children:e.jsx(Lm.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...i,ref:Rm(n,a.triggerRef),onPointerDown:Em(t.onPointerDown,(e=>{o||0!==e.button||!1!==e.ctrlKey||(a.onOpenToggle(),a.open||e.preventDefault())})),onKeyDown:Em(t.onKeyDown,(e=>{o||(["Enter"," "].includes(e.key)&&a.onOpenToggle(),"ArrowDown"===e.key&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())}))})})}));cb.displayName=ub;var db=t=>{const{__scopeDropdownMenu:n,...r}=t,o=ib(n);return e.jsx(_v,{...o,...r})};db.displayName="DropdownMenuPortal";var fb="DropdownMenuContent",pb=a.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,...o}=t,i=sb(fb,r),s=ib(r),l=a.useRef(!1);return e.jsx(Vv,{id:i.contentId,"aria-labelledby":i.triggerId,...s,...o,ref:n,onCloseAutoFocus:Em(t.onCloseAutoFocus,(e=>{l.current||i.triggerRef.current?.focus(),l.current=!1,e.preventDefault()})),onInteractOutside:Em(t.onInteractOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;i.modal&&!r||(l.current=!0)})),style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}));pb.displayName=fb;var mb=a.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,...o}=t,i=ib(r);return e.jsx(zv,{...i,...o,ref:n})}));mb.displayName="DropdownMenuGroup";var hb=a.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,...o}=t,i=ib(r);return e.jsx(Hv,{...i,...o,ref:n})}));hb.displayName="DropdownMenuLabel";var gb=a.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,...o}=t,i=ib(r);return e.jsx(Bv,{...i,...o,ref:n})}));gb.displayName="DropdownMenuItem";var vb=a.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,...o}=t,i=ib(r);return e.jsx($v,{...i,...o,ref:n})}));vb.displayName="DropdownMenuCheckboxItem";var bb=a.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,...o}=t,i=ib(r);return e.jsx(Wv,{...i,...o,ref:n})}));bb.displayName="DropdownMenuRadioGroup";var wb=a.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,...o}=t,i=ib(r);return e.jsx(Uv,{...i,...o,ref:n})}));wb.displayName="DropdownMenuRadioItem";var yb=a.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,...o}=t,i=ib(r);return e.jsx(Kv,{...i,...o,ref:n})}));yb.displayName="DropdownMenuItemIndicator";var xb=a.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,...o}=t,i=ib(r);return e.jsx(Gv,{...i,...o,ref:n})}));xb.displayName="DropdownMenuSeparator";var Cb=a.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,...o}=t,i=ib(r);return e.jsx(qv,{...i,...o,ref:n})}));Cb.displayName="DropdownMenuArrow";var Sb=a.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,...o}=t,i=ib(r);return e.jsx(Yv,{...i,...o,ref:n})}));Sb.displayName="DropdownMenuSubTrigger";var kb=a.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,...o}=t,i=ib(r);return e.jsx(Zv,{...i,...o,ref:n,style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}));kb.displayName="DropdownMenuSubContent";var Eb=db,Rb=pb,Pb=hb,Nb=gb,jb=vb,Mb=wb,Ab=yb,Ib=xb,Tb=t=>{const{__scopeDropdownMenu:n,children:r,open:o,onOpenChange:i,defaultOpen:a}=t,s=ib(n),[l=!1,u]=jm({prop:o,defaultProp:a,onChange:i});return e.jsx(Xv,{...s,open:l,onOpenChange:u,children:r})},Ob=Sb,Lb=kb;const Db=lb,Fb=cb,_b=mb,Vb=Eb,zb=Tb,Hb=bb,Bb=a.forwardRef((({className:t="",inset:n,children:r,...o},i)=>e.jsxs(Ob,{ref:i,className:jt("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm font-medium outline-none focus:bg-gray-100 data-[state=open]:bg-gray-100 dark:focus:bg-gray-900 dark:data-[state=open]:bg-gray-900",n?"pl-8":"",t),...o,children:[r,e.jsx(vp,{className:"ml-auto h-4 w-4"})]})));Bb.displayName=Ob.displayName;const $b=a.forwardRef((({className:t="",...n},r)=>e.jsx(Lb,{ref:r,className:jt("z-50 min-w-[8rem] overflow-hidden rounded-md border border-gray-100 bg-white p-1 text-gray-700 shadow-md animate-in slide-in-from-left-1 dark:border-gray-800 dark:bg-gray-800 dark:text-gray-400",t),...n})));$b.displayName=Lb.displayName;const Wb=a.forwardRef((({className:t="",sideOffset:n=4,...r},o)=>e.jsx(Eb,{children:e.jsx(Rb,{ref:o,sideOffset:n,className:jt("z-50 min-w-[8rem] overflow-hidden rounded-md border border-gray-100 bg-white p-1 text-gray-700 shadow-md animate-in 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 dark:border-gray-800 dark:bg-gray-800 dark:text-gray-400",t),...r})})));Wb.displayName=Rb.displayName;const Ub=a.forwardRef((({className:t="",inset:n,...r},o)=>e.jsx(Nb,{ref:o,className:jt("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm font-medium outline-none focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-gray-900",n?"pl-8":"",t),...r})));Ub.displayName=Nb.displayName;const Kb=a.forwardRef((({className:t="",children:n,checked:r,...o},i)=>e.jsxs(jb,{ref:i,className:jt("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm font-medium outline-none focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-gray-900",t),checked:r,...o,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(Ab,{children:e.jsx(mp,{className:"h-4 w-4"})})}),n]})));Kb.displayName=jb.displayName;const Gb=a.forwardRef((({className:t="",children:n,...r},o)=>e.jsxs(Mb,{ref:o,className:jt(t,"relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm font-medium outline-none focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-gray-800"),...r,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(Ab,{children:e.jsx(bp,{className:"h-2 w-2 fill-current"})})}),n]})));Gb.displayName=Mb.displayName;const qb=a.forwardRef((({className:t="",inset:n,...r},o)=>e.jsx(Pb,{ref:o,className:jt("px-2 py-1.5 text-sm font-semibold text-gray-900 dark:text-gray-300",n?"pl-8":"",t),...r})));qb.displayName=Pb.displayName;const Xb=a.forwardRef((({className:t="",...n},r)=>e.jsx(Ib,{ref:r,className:jt("-mx-1 my-1 h-px bg-border-medium",t),...n})));Xb.displayName=Ib.displayName;const Yb=({className:t="",...n})=>e.jsx("span",{className:jt("ml-auto text-xs tracking-widest text-gray-500",t),...n});var Zb;Yb.displayName="DropdownMenuShortcut",exports.NotificationSeverity=void 0,(Zb=exports.NotificationSeverity||(exports.NotificationSeverity={})).INFO="info",Zb.SUCCESS="success",Zb.WARNING="warning",Zb.ERROR="error";const Qb=r.atom("en"),Jb=r.atom("ltr"),ew=r.atom("text-base"),tw=r.atom({open:!1,message:"",severity:exports.NotificationSeverity.SUCCESS,showIcon:!0}),nw=t.createContext({theme:"light",setTheme:()=>{}});function rw(e=100){const[n,o]=r.useAtom(tw),i=t.useRef(null),a=t.useRef(null);t.useEffect((()=>()=>{null!==i.current&&clearTimeout(i.current),null!==a.current&&clearTimeout(a.current)}),[]);return{toast:n,onOpenChange:e=>o({...n,open:e}),showToast:({message:t,severity:n=exports.NotificationSeverity.SUCCESS,showIcon:r=!0,duration:s=3e3,status:l})=>{null!==i.current&&clearTimeout(i.current),null!==a.current&&clearTimeout(a.current),i.current=window.setTimeout((()=>{o({open:!0,message:t,severity:l??n,showIcon:r}),a.current=window.setTimeout((()=>{o((e=>({...e,open:!1})))}),s)}),e)}}}var ow={exports:{}},iw={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Ấ":"A","Ắ":"A","Ẳ":"A","Ẵ":"A","Ặ":"A","Æ":"AE","Ầ":"A","Ằ":"A","Ȃ":"A","Ả":"A","Ạ":"A","Ẩ":"A","Ẫ":"A","Ậ":"A","Ç":"C","Ḉ":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ế":"E","Ḗ":"E","Ề":"E","Ḕ":"E","Ḝ":"E","Ȇ":"E","Ẻ":"E","Ẽ":"E","Ẹ":"E","Ể":"E","Ễ":"E","Ệ":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ḯ":"I","Ȋ":"I","Ỉ":"I","Ị":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ố":"O","Ṍ":"O","Ṓ":"O","Ȏ":"O","Ỏ":"O","Ọ":"O","Ổ":"O","Ỗ":"O","Ộ":"O","Ờ":"O","Ở":"O","Ỡ":"O","Ớ":"O","Ợ":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ủ":"U","Ụ":"U","Ử":"U","Ữ":"U","Ự":"U","Ý":"Y","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","ấ":"a","ắ":"a","ẳ":"a","ẵ":"a","ặ":"a","æ":"ae","ầ":"a","ằ":"a","ȃ":"a","ả":"a","ạ":"a","ẩ":"a","ẫ":"a","ậ":"a","ç":"c","ḉ":"c","è":"e","é":"e","ê":"e","ë":"e","ế":"e","ḗ":"e","ề":"e","ḕ":"e","ḝ":"e","ȇ":"e","ẻ":"e","ẽ":"e","ẹ":"e","ể":"e","ễ":"e","ệ":"e","ì":"i","í":"i","î":"i","ï":"i","ḯ":"i","ȋ":"i","ỉ":"i","ị":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ố":"o","ṍ":"o","ṓ":"o","ȏ":"o","ỏ":"o","ọ":"o","ổ":"o","ỗ":"o","ộ":"o","ờ":"o","ở":"o","ỡ":"o","ớ":"o","ợ":"o","ù":"u","ú":"u","û":"u","ü":"u","ủ":"u","ụ":"u","ử":"u","ữ":"u","ự":"u","ý":"y","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","C̆":"C","c̆":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","Ǵ":"G","ĝ":"g","ǵ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ḫ":"H","ḫ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","Ḱ":"K","ḱ":"k","K̆":"K","k̆":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"l","ł":"l","Ḿ":"M","ḿ":"m","M̆":"M","m̆":"m","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","N̆":"N","n̆":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","P̆":"P","p̆":"p","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","R̆":"R","r̆":"r","Ȓ":"R","ȓ":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","Ș":"S","ș":"s","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","ț":"t","Ț":"T","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","T̆":"T","t̆":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ȗ":"U","ȗ":"u","V̆":"V","v̆":"v","Ŵ":"W","ŵ":"w","Ẃ":"W","ẃ":"w","X̆":"X","x̆":"x","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Y̆":"Y","y̆":"y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","Ứ":"U","ứ":"u","Ṹ":"U","ṹ":"u","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o","Þ":"TH","þ":"th","Ṕ":"P","ṕ":"p","Ṥ":"S","ṥ":"s","X́":"X","x́":"x","Ѓ":"Г","ѓ":"г","Ќ":"К","ќ":"к","A̋":"A","a̋":"a","E̋":"E","e̋":"e","I̋":"I","i̋":"i","Ǹ":"N","ǹ":"n","Ồ":"O","ồ":"o","Ṑ":"O","ṑ":"o","Ừ":"U","ừ":"u","Ẁ":"W","ẁ":"w","Ỳ":"Y","ỳ":"y","Ȁ":"A","ȁ":"a","Ȅ":"E","ȅ":"e","Ȉ":"I","ȉ":"i","Ȍ":"O","ȍ":"o","Ȑ":"R","ȑ":"r","Ȕ":"U","ȕ":"u","B̌":"B","b̌":"b","Č̣":"C","č̣":"c","Ê̌":"E","ê̌":"e","F̌":"F","f̌":"f","Ǧ":"G","ǧ":"g","Ȟ":"H","ȟ":"h","J̌":"J","ǰ":"j","Ǩ":"K","ǩ":"k","M̌":"M","m̌":"m","P̌":"P","p̌":"p","Q̌":"Q","q̌":"q","Ř̩":"R","ř̩":"r","Ṧ":"S","ṧ":"s","V̌":"V","v̌":"v","W̌":"W","w̌":"w","X̌":"X","x̌":"x","Y̌":"Y","y̌":"y","A̧":"A","a̧":"a","B̧":"B","b̧":"b","Ḑ":"D","ḑ":"d","Ȩ":"E","ȩ":"e","Ɛ̧":"E","ɛ̧":"e","Ḩ":"H","ḩ":"h","I̧":"I","i̧":"i","Ɨ̧":"I","ɨ̧":"i","M̧":"M","m̧":"m","O̧":"O","o̧":"o","Q̧":"Q","q̧":"q","U̧":"U","u̧":"u","X̧":"X","x̧":"x","Z̧":"Z","z̧":"z","й":"и","Й":"И","ё":"е","Ё":"Е"},aw=Object.keys(iw).join("|"),sw=new RegExp(aw,"g"),lw=new RegExp(aw,"");function uw(e){return iw[e]}var cw=function(e){return e.replace(sw,uw)};ow.exports=cw,ow.exports.has=function(e){return!!e.match(lw)},ow.exports.remove=cw;var dw=so(ow.exports);
27
26
  /**
28
27
  * @name match-sorter
29
28
  * @license MIT license.
30
29
  * @copyright (c) 2020 Kent C. Dodds
31
30
  * @author Kent C. Dodds <me@kentcdodds.com> (https://kentcdodds.com)
32
31
  */
33
- const br={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0},vr=(e,t)=>String(e.rankedValue).localeCompare(String(t.rankedValue));function yr(e,t,r){void 0===r&&(r={});const{keys:n,threshold:a=br.MATCHES,baseSort:o=vr,sorter:s=(e=>e.sort(((e,t)=>Cr(e,t,o))))}=r,i=e.reduce((function(e,o,s){const i=function(e,t,r,n){if(!t){return{rankedValue:e,rank:kr(e,r,n),keyIndex:-1,keyThreshold:n.threshold}}const a=function(e,t){const r=[];for(let n=0,a=t.length;n<a;n++){const a=t[n],o=Lr(a),s=jr(e,a);for(let e=0,t=s.length;e<t;e++)r.push({itemValue:s[e],attributes:o})}return r}(e,t);return a.reduce(((e,t,a)=>{let{rank:o,rankedValue:s,keyIndex:i,keyThreshold:l}=e,{itemValue:c,attributes:d}=t,u=kr(c,r,n),p=s;const{minRanking:g,maxRanking:m,threshold:f}=d;return u<g&&u>=br.MATCHES?u=g:u>m&&(u=m),u>o&&(o=u,i=a,l=f,p=c),{rankedValue:p,rank:o,keyIndex:i,keyThreshold:l}}),{rankedValue:e,rank:br.NO_MATCH,keyIndex:-1,keyThreshold:n.threshold})}(o,n,t,r),{rank:l,keyThreshold:c=a}=i;l>=c&&e.push({...i,item:o,index:s});return e}),[]);return s(i).map((e=>{let{item:t}=e;return t}))}function kr(e,t,r){return e=Nr(e,r),(t=Nr(t,r)).length>e.length?br.NO_MATCH:e===t?br.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase())===(t=t.toLowerCase())?br.EQUAL:e.startsWith(t)?br.STARTS_WITH:e.includes(` ${t}`)?br.WORD_STARTS_WITH:e.includes(t)?br.CONTAINS:1===t.length?br.NO_MATCH:function(e){let t="";return e.split(" ").forEach((e=>{e.split("-").forEach((e=>{t+=e.substr(0,1)}))})),t}(e).includes(t)?br.ACRONYM:function(e,t){let r=0,n=0;function a(e,t,n){for(let a=n,o=t.length;a<o;a++){if(t[a]===e)return r+=1,a+1}return-1}function o(e){const n=1/e,a=r/t.length;return br.MATCHES+a*n}const s=a(t[0],e,0);if(s<0)return br.NO_MATCH;n=s;for(let r=1,o=t.length;r<o;r++){n=a(t[r],e,n);if(!(n>-1))return br.NO_MATCH}return o(n-s)}(e,t)}function Cr(e,t,r){const{rank:n,keyIndex:a}=e,{rank:o,keyIndex:s}=t;return n===o?a===s?r(e,t):a<s?-1:1:n>o?-1:1}function Nr(e,t){let{keepDiacritics:r}=t;return e=`${e}`,r||(e=xr(e)),e}function jr(e,t){let r;if("object"==typeof t&&(t=t.key),"function"==typeof t)r=t(e);else if(null==e)r=null;else if(Object.hasOwnProperty.call(e,t))r=e[t];else{if(t.includes("."))return function(e,t){const r=e.split(".");let n=[t];for(let e=0,t=r.length;e<t;e++){const t=r[e];let a=[];for(let e=0,r=n.length;e<r;e++){const r=n[e];if(null!=r)if(Object.hasOwnProperty.call(r,t)){const e=r[t];null!=e&&a.push(e)}else"*"===t&&(a=a.concat(r))}n=a}if(Array.isArray(n[0])){return[].concat(...n)}return n}(t,e);r=null}return null==r?[]:Array.isArray(r)?r:[String(r)]}yr.rankings=br;const Sr={maxRanking:1/0,minRanking:-1/0};function Lr(e){return"string"==typeof e?Sr:{...Sr,...e}}function Mr({value:e,options:r}){const[n,a]=t.useState(!1),[o,s]=t.useState(""),i=t.useMemo((()=>{if(!o)return r;const t=yr(r,o,{keys:["label","value"]}),n=r.find((t=>t.value===e));return n&&!t.includes(n)&&t.push(n),t}),[o,e,r]);return{open:n,setOpen:a,searchValue:o,setSearchValue:s,matches:i}}function zr(){const e=u.useAtomValue(ar),{t:r,i18n:n}=p.useTranslation();return t.useEffect((()=>{n.language!==e&&n.changeLanguage(e)}),[e,n]),(e,t)=>r(e,t)}function Ir(e){const[r,n]=t.useState(!1);return t.useEffect((()=>{const t=window.matchMedia(e);t.matches!==r&&n(t.matches);const a=()=>n(t.matches);return t.addEventListener("change",a),()=>t.removeEventListener("change",a)}),[r,e]),r}const Rr=e=>{const[r,n]=t.useState(!0),a=t.useRef(null);return t.useEffect((()=>{if(r){const t=new Promise((t=>{const r=setTimeout((()=>{n(!1),t()}),e);return()=>{clearTimeout(r)}}));a.current=t}return()=>{a.current=null}}),[e,r]),e=>{if(r&&a.current)throw a.current;return e()}};const Er=H.Root,Tr=H.Trigger,Ar=({className:t="",children:r,...n})=>e.jsx(H.Portal,{className:Fe(t),...n,children:e.jsx("div",{className:"fixed inset-0 z-[999] flex items-start justify-center sm:items-center",children:r})});Ar.displayName=H.Portal.displayName;const Or=E.forwardRef((({className:t,...r},n)=>e.jsx(H.Overlay,{className:Fe("fixed inset-0 z-[999] bg-gray-600/65 transition-all duration-100 data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=open]:fade-in dark:bg-black/80",t??""),...r,ref:n})));Or.displayName=H.Overlay.displayName;const Pr=E.forwardRef((({className:t,children:r=!0,showCloseButton:n=!0,disableScroll:a=!1,...o},s)=>{const i=Ir("(max-width: 768px)");return e.jsxs(Ar,{children:[e.jsx(Or,{}),e.jsxs(H.Content,{ref:s,className:Fe("fixed z-[999] grid w-full gap-4 rounded-b-lg bg-white pb-6 animate-in data-[state=open]:fade-in-90 data-[state=open]:slide-in-from-bottom-10 sm:rounded-lg","dark:bg-gray-700",i?"fixed left-1/2 top-1/2 z-[999] m-auto grid w-11/12 -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-white pb-6":"",a?"overflow-hidden":"",t??""),...o,children:[r,n&&e.jsxs(H.Close,{className:"absolute right-6 top-[1.6rem] rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-gray-100 dark:focus:ring-white dark:focus:ring-offset-gray-700 dark:data-[state=open]:bg-gray-800",children:[e.jsx(Nt,{className:"h-5 w-5 text-black dark:text-white"}),e.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}));Pr.displayName=H.Content.displayName;const Vr=({className:t,...r})=>e.jsx("div",{className:Fe("flex flex-col space-y-2 border-b border-black/10 p-6 pb-4 text-left dark:border-white/10",t??""),...r});Vr.displayName="DialogHeader";const Dr=({className:t,...r})=>e.jsx("div",{className:Fe("flex flex-row justify-between space-x-2 px-6 py-4",t??""),...r});Dr.displayName="DialogFooter";const Hr=E.forwardRef((({className:t,...r},n)=>e.jsx(H.Title,{ref:n,className:Fe("text-lg font-semibold text-gray-900","dark:text-gray-50",t??""),...r})));Hr.displayName=H.Title.displayName;const Br=E.forwardRef((({className:t,...r},n)=>e.jsx(H.Description,{ref:n,className:Fe("text-sm text-gray-500","dark:text-gray-400",t??""),...r})));Br.displayName=H.Description.displayName;const Fr=E.forwardRef((({className:t,...r},n)=>e.jsx(H.Close,{ref:n,className:Fe("mt-2 inline-flex h-10 items-center justify-center rounded-lg border border-gray-200 bg-transparent px-4 py-2 text-sm font-semibold text-gray-900 transition-colors hover:bg-gray-100 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-700 dark:text-gray-100 dark:hover:bg-gray-800 sm:mt-0",t??"","focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 dark:focus:ring-gray-400 dark:focus:ring-offset-gray-900"),...r})));Fr.displayName=H.Title.displayName;const Wr=E.forwardRef((({className:t,...r},n)=>e.jsx(Vt,{ref:n,variant:"outline",className:Fe("mt-2 inline-flex h-10 items-center justify-center rounded-lg border border-gray-200 bg-transparent px-4 py-2 text-sm font-semibold text-gray-900 transition-colors hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-700 dark:text-gray-100 dark:hover:bg-gray-800 dark:focus:ring-gray-400 dark:focus:ring-offset-gray-900 sm:mt-0",t??"","focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 dark:focus:ring-gray-400 dark:focus:ring-offset-gray-900"),...r})));Wr.displayName=H.Title.displayName;const Zr=B.Root,Xr=B.Trigger,Yr=B.Portal,_r=E.forwardRef((({className:t="",align:r="center",sideOffset:n=6,disabled:a=!1,...o},s)=>a?null:e.jsx(B.Content,{ref:s,align:r,sideOffset:n,className:Fe("z-50 w-64 origin-[--radix-hover-card-content-transform-origin] rounded-xl border border-border-light bg-surface-secondary p-4 text-text-primary shadow-md outline-none 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",t),...o})));_r.displayName=B.Content.displayName;const $r=E.forwardRef((({className:t,...r},n)=>e.jsx("input",{className:Fe("flex h-10 w-full rounded-lg border border-input bg-transparent px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",t??""),ref:n,...r})));function Ur(){return Ur=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ur.apply(null,arguments)}function Gr(e){"@babel/helpers - typeof";return Gr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gr(e)}function qr(e){var t=function(e,t){if("object"!=Gr(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=Gr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Gr(t)?t:t+""}function Kr(e,t,r){return(t=qr(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Jr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,s,i=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t);else for(;!(l=(n=o.call(r)).done)&&(i.push(n.value),i.length!==t);l=!0);}catch(e){c=!0,a=e}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw a}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Qr(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Qr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}$r.displayName="Input";var en,tn={exports:{}};
32
+ const fw={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0},pw=(e,t)=>String(e.rankedValue).localeCompare(String(t.rankedValue));function mw(e,t,n){void 0===n&&(n={});const{keys:r,threshold:o=fw.MATCHES,baseSort:i=pw,sorter:a=(e=>e.sort(((e,t)=>gw(e,t,i))))}=n,s=e.reduce((function(e,i,a){const s=function(e,t,n,r){if(!t){return{rankedValue:e,rank:hw(e,n,r),keyIndex:-1,keyThreshold:r.threshold}}const o=function(e,t){const n=[];for(let r=0,o=t.length;r<o;r++){const o=t[r],i=yw(o),a=bw(e,o);for(let e=0,t=a.length;e<t;e++)n.push({itemValue:a[e],attributes:i})}return n}(e,t);return o.reduce(((e,t,o)=>{let{rank:i,rankedValue:a,keyIndex:s,keyThreshold:l}=e,{itemValue:u,attributes:c}=t,d=hw(u,n,r),f=a;const{minRanking:p,maxRanking:m,threshold:h}=c;return d<p&&d>=fw.MATCHES?d=p:d>m&&(d=m),d>i&&(i=d,s=o,l=h,f=u),{rankedValue:f,rank:i,keyIndex:s,keyThreshold:l}}),{rankedValue:e,rank:fw.NO_MATCH,keyIndex:-1,keyThreshold:r.threshold})}(i,r,t,n),{rank:l,keyThreshold:u=o}=s;l>=u&&e.push({...s,item:i,index:a});return e}),[]);return a(s).map((e=>{let{item:t}=e;return t}))}function hw(e,t,n){return e=vw(e,n),(t=vw(t,n)).length>e.length?fw.NO_MATCH:e===t?fw.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase())===(t=t.toLowerCase())?fw.EQUAL:e.startsWith(t)?fw.STARTS_WITH:e.includes(` ${t}`)?fw.WORD_STARTS_WITH:e.includes(t)?fw.CONTAINS:1===t.length?fw.NO_MATCH:function(e){let t="";return e.split(" ").forEach((e=>{e.split("-").forEach((e=>{t+=e.substr(0,1)}))})),t}(e).includes(t)?fw.ACRONYM:function(e,t){let n=0,r=0;function o(e,t,r){for(let o=r,i=t.length;o<i;o++){if(t[o]===e)return n+=1,o+1}return-1}function i(e){const r=1/e,o=n/t.length;return fw.MATCHES+o*r}const a=o(t[0],e,0);if(a<0)return fw.NO_MATCH;r=a;for(let n=1,i=t.length;n<i;n++){r=o(t[n],e,r);if(!(r>-1))return fw.NO_MATCH}return i(r-a)}(e,t)}function gw(e,t,n){const{rank:r,keyIndex:o}=e,{rank:i,keyIndex:a}=t;return r===i?o===a?n(e,t):o<a?-1:1:r>i?-1:1}function vw(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=dw(e)),e}function bw(e,t){let n;if("object"==typeof t&&(t=t.key),"function"==typeof t)n=t(e);else if(null==e)n=null;else if(Object.hasOwnProperty.call(e,t))n=e[t];else{if(t.includes("."))return function(e,t){const n=e.split(".");let r=[t];for(let e=0,t=n.length;e<t;e++){const t=n[e];let o=[];for(let e=0,n=r.length;e<n;e++){const n=r[e];if(null!=n)if(Object.hasOwnProperty.call(n,t)){const e=n[t];null!=e&&o.push(e)}else"*"===t&&(o=o.concat(n))}r=o}if(Array.isArray(r[0])){return[].concat(...r)}return r}(t,e);n=null}return null==n?[]:Array.isArray(n)?n:[String(n)]}mw.rankings=fw;const ww={maxRanking:1/0,minRanking:-1/0};function yw(e){return"string"==typeof e?ww:{...ww,...e}}function xw({value:e,options:n}){const[r,o]=t.useState(!1),[i,a]=t.useState(""),s=t.useMemo((()=>{if(!i)return n;const t=mw(n,i,{keys:["label","value"]}),r=n.find((t=>t.value===e));return r&&!t.includes(r)&&t.push(r),t}),[i,e,n]);return{open:r,setOpen:o,searchValue:i,setSearchValue:a,matches:s}}function Cw(){const e=r.useAtomValue(Qb),{t:n,i18n:i}=o.useTranslation();return t.useEffect((()=>{i.language!==e&&i.changeLanguage(e)}),[e,i]),(e,t)=>n(e,t)}function Sw(e){const[n,r]=t.useState(!1);return t.useEffect((()=>{const t=window.matchMedia(e);t.matches!==n&&r(t.matches);const o=()=>r(t.matches);return t.addEventListener("change",o),()=>t.removeEventListener("change",o)}),[n,e]),n}const kw=e=>{const[n,r]=t.useState(!0),o=t.useRef(null);return t.useEffect((()=>{if(n){const t=new Promise((t=>{const n=setTimeout((()=>{r(!1),t()}),e);return()=>{clearTimeout(n)}}));o.current=t}return()=>{o.current=null}}),[e,n]),e=>{if(n&&o.current)throw o.current;return e()}};const Ew=hf,Rw=gf,Pw=({className:t="",children:n,...r})=>e.jsx(vf,{className:jt(t),...r,children:e.jsx("div",{className:"fixed inset-0 z-[999] flex items-start justify-center sm:items-center",children:n})});Pw.displayName=vf.displayName;const Nw=a.forwardRef((({className:t,...n},r)=>e.jsx(bf,{className:jt("fixed inset-0 z-[999] bg-gray-600/65 transition-all duration-100 data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=open]:fade-in dark:bg-black/80",t??""),...n,ref:r})));Nw.displayName=bf.displayName;const jw=a.forwardRef((({className:t,children:n=!0,showCloseButton:r=!0,disableScroll:o=!1,...i},a)=>{const s=Sw("(max-width: 768px)");return e.jsxs(Pw,{children:[e.jsx(Nw,{}),e.jsxs(wf,{ref:a,className:jt("fixed z-[999] grid w-full gap-4 rounded-b-lg bg-white pb-6 animate-in data-[state=open]:fade-in-90 data-[state=open]:slide-in-from-bottom-10 sm:rounded-lg","dark:bg-gray-700",s?"fixed left-1/2 top-1/2 z-[999] m-auto grid w-11/12 -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-white pb-6":"",o?"overflow-hidden":"",t??""),...i,children:[n,r&&e.jsxs(Cf,{className:"absolute right-6 top-[1.6rem] rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-gray-100 dark:focus:ring-white dark:focus:ring-offset-gray-700 dark:data-[state=open]:bg-gray-800",children:[e.jsx(Pp,{className:"h-5 w-5 text-black dark:text-white"}),e.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}));jw.displayName=wf.displayName;const Mw=({className:t,...n})=>e.jsx("div",{className:jt("flex flex-col space-y-2 border-b border-black/10 p-6 pb-4 text-left dark:border-white/10",t??""),...n});Mw.displayName="DialogHeader";const Aw=({className:t,...n})=>e.jsx("div",{className:jt("flex flex-row justify-between space-x-2 px-6 py-4",t??""),...n});Aw.displayName="DialogFooter";const Iw=a.forwardRef((({className:t,...n},r)=>e.jsx(yf,{ref:r,className:jt("text-lg font-semibold text-gray-900","dark:text-gray-50",t??""),...n})));Iw.displayName=yf.displayName;const Tw=a.forwardRef((({className:t,...n},r)=>e.jsx(xf,{ref:r,className:jt("text-sm text-gray-500","dark:text-gray-400",t??""),...n})));Tw.displayName=xf.displayName;const Ow=a.forwardRef((({className:t,...n},r)=>e.jsx(Cf,{ref:r,className:jt("mt-2 inline-flex h-10 items-center justify-center rounded-lg border border-gray-200 bg-transparent px-4 py-2 text-sm font-semibold text-gray-900 transition-colors hover:bg-gray-100 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-700 dark:text-gray-100 dark:hover:bg-gray-800 sm:mt-0",t??"","focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 dark:focus:ring-gray-400 dark:focus:ring-offset-gray-900"),...n})));Ow.displayName=yf.displayName;const Lw=a.forwardRef((({className:t,...n},r)=>e.jsx(_p,{ref:r,variant:"outline",className:jt("mt-2 inline-flex h-10 items-center justify-center rounded-lg border border-gray-200 bg-transparent px-4 py-2 text-sm font-semibold text-gray-900 transition-colors hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-700 dark:text-gray-100 dark:hover:bg-gray-800 dark:focus:ring-gray-400 dark:focus:ring-offset-gray-900 sm:mt-0",t??"","focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 dark:focus:ring-gray-400 dark:focus:ring-offset-gray-900"),...n})));Lw.displayName=yf.displayName;const Dw="Popper",[Fw,_w]=c(Dw),[Vw,zw]=Fw(Dw),Hw=t.forwardRef(((e,n)=>{const{__scopePopper:r,virtualRef:o,...i}=e,a=zw("PopperAnchor",r),s=t.useRef(null),l=p(n,s);return t.useEffect((()=>{a.onAnchorChange((null==o?void 0:o.current)||s.current)})),o?null:t.createElement(S.div,u({},i,{ref:l}))})),Bw="PopperContent",[$w,Ww]=Fw(Bw),Uw=t.forwardRef(((e,n)=>{var r,o,i,a,s,l,c,d;const{__scopePopper:f,side:m="bottom",sideOffset:h=0,align:g="center",alignOffset:v=0,arrowPadding:b=0,avoidCollisions:w=!0,collisionBoundary:y=[],collisionPadding:C=0,sticky:k="partial",hideWhenDetached:R=!1,updatePositionStrategy:P="optimized",onPlaced:N,...j}=e,M=zw(Bw,f),[A,I]=t.useState(null),T=p(n,(e=>I(e))),[O,L]=t.useState(null),D=Vp(O),F=null!==(r=null==D?void 0:D.width)&&void 0!==r?r:0,_=null!==(o=null==D?void 0:D.height)&&void 0!==o?o:0,V=m+("center"!==g?"-"+g:""),z="number"==typeof C?C:{top:0,right:0,bottom:0,left:0,...C},H=Array.isArray(y)?y:[y],B=H.length>0,$={padding:z,boundary:H.filter(Kw),altBoundary:B},{refs:W,floatingStyles:U,placement:K,isPositioned:G,middlewareData:q}=Nh({strategy:"fixed",placement:V,whileElementsMounted:(...e)=>sl(...e,{animationFrame:"always"===P}),elements:{reference:M.anchor},middleware:[Mh({mainAxis:h+_,alignmentAxis:v}),w&&Ah({mainAxis:!0,crossAxis:!1,limiter:"partial"===k?Ih():void 0,...$}),w&&Th({...$}),Oh({...$,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),O&&Dh({element:O,padding:b}),Gw({arrowWidth:F,arrowHeight:_}),R&&Lh({strategy:"referenceHidden",...$})]}),[X,Y]=qw(K),Z=x(N);E((()=>{G&&(null==Z||Z())}),[G,Z]);const Q=null===(i=q.arrow)||void 0===i?void 0:i.x,J=null===(a=q.arrow)||void 0===a?void 0:a.y,ee=0!==(null===(s=q.arrow)||void 0===s?void 0:s.centerOffset),[te,ne]=t.useState();return E((()=>{A&&ne(window.getComputedStyle(A).zIndex)}),[A]),t.createElement("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,transform:G?U.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:te,"--radix-popper-transform-origin":[null===(l=q.transformOrigin)||void 0===l?void 0:l.x,null===(c=q.transformOrigin)||void 0===c?void 0:c.y].join(" ")},dir:e.dir},t.createElement($w,{scope:f,placedSide:X,onArrowChange:L,arrowX:Q,arrowY:J,shouldHideArrow:ee},t.createElement(S.div,u({"data-side":X,"data-align":Y},j,{ref:T,style:{...j.style,animation:G?void 0:"none",opacity:null!==(d=q.hide)&&void 0!==d&&d.referenceHidden?0:void 0}}))))}));function Kw(e){return null!==e}const Gw=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:s,rects:l,middlewareData:u}=t,c=0!==(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset),d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,m]=qw(s),h={start:"0%",center:"50%",end:"100%"}[m],g=(null!==(r=null===(o=u.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,v=(null!==(i=null===(a=u.arrow)||void 0===a?void 0:a.y)&&void 0!==i?i:0)+f/2;let b="",w="";return"bottom"===p?(b=c?h:`${g}px`,w=-f+"px"):"top"===p?(b=c?h:`${g}px`,w=`${l.floating.height+f}px`):"right"===p?(b=-f+"px",w=c?h:`${v}px`):"left"===p&&(b=`${l.floating.width+f}px`,w=c?h:`${v}px`),{data:{x:b,y:w}}}});function qw(e){const[t,n="center"]=e.split("-");return[t,n]}const Xw=e=>{const{__scopePopper:n,children:r}=e,[o,i]=t.useState(null);return t.createElement(Vw,{scope:n,anchor:o,onAnchorChange:i},r)},Yw=Hw,Zw=Uw;let Qw;const Jw="HoverCard",[ey,ty]=c(Jw,[_w]),ny=_w(),[ry,oy]=ey(Jw),iy=t.forwardRef(((e,n)=>{const{__scopeHoverCard:r,...o}=e,i=oy("HoverCardTrigger",r),a=ny(r);return t.createElement(Yw,u({asChild:!0},a),t.createElement(S.a,u({"data-state":i.open?"open":"closed"},o,{ref:n,onPointerEnter:y(e.onPointerEnter,fy(i.onOpen)),onPointerLeave:y(e.onPointerLeave,fy(i.onClose)),onFocus:y(e.onFocus,i.onOpen),onBlur:y(e.onBlur,i.onClose),onTouchStart:y(e.onTouchStart,(e=>e.preventDefault()))})))})),ay="HoverCardPortal",[sy,ly]=ey(ay,{forceMount:void 0}),uy="HoverCardContent",cy=t.forwardRef(((e,n)=>{const r=ly(uy,e.__scopeHoverCard),{forceMount:o=r.forceMount,...i}=e,a=oy(uy,e.__scopeHoverCard);return t.createElement(R,{present:o||a.open},t.createElement(dy,u({"data-state":a.open?"open":"closed"},i,{onPointerEnter:y(e.onPointerEnter,fy(a.onOpen)),onPointerLeave:y(e.onPointerLeave,fy(a.onClose)),ref:n})))})),dy=t.forwardRef(((e,n)=>{const{__scopeHoverCard:r,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,...l}=e,c=oy(uy,r),d=ny(r),f=t.useRef(null),m=p(n,f),[h,g]=t.useState(!1);return t.useEffect((()=>{if(h){const e=document.body;return Qw=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=Qw,e.style.webkitUserSelect=Qw}}}),[h]),t.useEffect((()=>{if(f.current){const e=()=>{g(!1),c.isPointerDownOnContentRef.current=!1,setTimeout((()=>{var e;""!==(null===(e=document.getSelection())||void 0===e?void 0:e.toString())&&(c.hasSelectionRef.current=!0)}))};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),c.hasSelectionRef.current=!1,c.isPointerDownOnContentRef.current=!1}}}),[c.isPointerDownOnContentRef,c.hasSelectionRef]),t.useEffect((()=>{if(f.current){(function(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t})(f.current).forEach((e=>e.setAttribute("tabindex","-1")))}})),t.createElement(Mc,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:s,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:y(a,(e=>{e.preventDefault()})),onDismiss:c.onDismiss},t.createElement(Zw,u({},d,l,{onPointerDown:y(l.onPointerDown,(e=>{e.currentTarget.contains(e.target)&&g(!0),c.hasSelectionRef.current=!1,c.isPointerDownOnContentRef.current=!0})),ref:m,style:{...l.style,userSelect:h?"text":void 0,WebkitUserSelect:h?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})))}));function fy(e){return t=>"touch"===t.pointerType?void 0:e()}const py=e=>{const{__scopeHoverCard:n,children:r,open:o,defaultOpen:i,onOpenChange:a,openDelay:s=700,closeDelay:l=300}=e,u=ny(n),c=t.useRef(0),d=t.useRef(0),f=t.useRef(!1),p=t.useRef(!1),[m=!1,h]=C({prop:o,defaultProp:i,onChange:a}),g=t.useCallback((()=>{clearTimeout(d.current),c.current=window.setTimeout((()=>h(!0)),s)}),[s,h]),v=t.useCallback((()=>{clearTimeout(c.current),f.current||p.current||(d.current=window.setTimeout((()=>h(!1)),l))}),[l,h]),b=t.useCallback((()=>h(!1)),[h]);return t.useEffect((()=>()=>{clearTimeout(c.current),clearTimeout(d.current)}),[]),t.createElement(ry,{scope:n,open:m,onOpenChange:h,onOpen:g,onClose:v,onDismiss:b,hasSelectionRef:f,isPointerDownOnContentRef:p},t.createElement(Xw,u,r))},my=e=>{const{__scopeHoverCard:n,forceMount:r,children:o,container:i}=e,a=oy(ay,n);return t.createElement(sy,{scope:n,forceMount:r},t.createElement(R,{present:r||a.open},t.createElement(Wc,{asChild:!0,container:i},o)))},hy=cy,gy=py,vy=iy,by=my,wy=a.forwardRef((({className:t="",align:n="center",sideOffset:r=6,disabled:o=!1,...i},a)=>o?null:e.jsx(hy,{ref:a,align:n,sideOffset:r,className:jt("z-50 w-64 origin-[--radix-hover-card-content-transform-origin] rounded-xl border border-border-light bg-surface-secondary p-4 text-text-primary shadow-md outline-none 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",t),...i})));wy.displayName=hy.displayName;const yy=a.forwardRef((({className:t,...n},r)=>e.jsx("input",{className:jt("flex h-10 w-full rounded-lg border border-input bg-transparent px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",t??""),ref:r,...n})));function xy(e){"@babel/helpers - typeof";return xy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xy(e)}function Cy(e){var t=function(e,t){if("object"!=xy(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=xy(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==xy(t)?t:t+""}function Sy(e,t,n){return(t=Cy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ky(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ey(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ky(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ky(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ry(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}yy.displayName="Input";var Py,Ny={exports:{}};
34
33
  /*!
35
34
  Copyright (c) 2018 Jed Watson.
36
35
  Licensed under the MIT License (MIT), see
37
36
  http://jedwatson.github.io/classnames
38
- */en=tn,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var a=arguments[t];a&&(e=n(e,r(a)))}return e}function r(r){if("string"==typeof r||"number"==typeof r)return r;if("object"!=typeof r)return"";if(Array.isArray(r))return t.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var a="";for(var o in r)e.call(r,o)&&r[o]&&(a=n(a,o));return a}function n(e,t){return t?e?e+" "+t:e+t:e}en.exports?(t.default=t,en.exports=t):window.classNames=t}();var rn=dr(tn.exports),nn={ENTER:13,UP:38,DOWN:40};var an,on="undefined"!=typeof window&&window.document&&window.document.createElement?E.useLayoutEffect:E.useEffect,sn=function(e,t){var r=E.useRef(!0);on((function(){return e(r.current)}),t),on((function(){return r.current=!1,function(){r.current=!0}}),[])},ln=function(e,t){sn((function(t){if(!t)return e()}),t)},cn={},dn=Symbol.for("react.element"),un=Symbol.for("react.portal"),pn=Symbol.for("react.fragment"),gn=Symbol.for("react.strict_mode"),mn=Symbol.for("react.profiler"),fn=Symbol.for("react.provider"),hn=Symbol.for("react.context"),wn=Symbol.for("react.server_context"),xn=Symbol.for("react.forward_ref"),bn=Symbol.for("react.suspense"),vn=Symbol.for("react.suspense_list"),yn=Symbol.for("react.memo"),kn=Symbol.for("react.lazy"),Cn=Symbol.for("react.offscreen");function Nn(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case dn:switch(e=e.type){case pn:case mn:case gn:case bn:case vn:return e;default:switch(e=e&&e.$$typeof){case wn:case hn:case xn:case kn:case yn:case fn:return e;default:return t}}case un:return t}}}function jn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.filter((function(e){return e}));return n.length<=1?n[0]:function(e){t.forEach((function(t){!function(e,t){"function"==typeof e?e(t):"object"===Gr(e)&&e&&"current"in e&&(e.current=t)}(t,e)}))}}function Sn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ln(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,qr(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Mn(){return"function"==typeof BigInt}function zn(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}function In(e){var t=e.trim(),r=t.startsWith("-");r&&(t=t.slice(1)),(t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(t="0".concat(t));var n=t||"0",a=n.split("."),o=a[0]||"0",s=a[1]||"0";"0"===o&&"0"===s&&(r=!1);var i=r?"-":"";return{negative:r,negativeStr:i,trimStr:n,integerStr:o,decimalStr:s,fullStr:"".concat(i).concat(n)}}function Rn(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function En(e){var t=String(e);if(Rn(e)){var r=Number(t.slice(t.indexOf("e-")+2)),n=t.match(/\.(\d+)/);return null!=n&&n[1]&&(r+=n[1].length),r}return t.includes(".")&&An(t)?t.length-t.indexOf(".")-1:0}function Tn(e){var t=String(e);if(Rn(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Mn()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(Mn()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(En(t))}return In(t).fullStr}function An(e){return"number"==typeof e?!Number.isNaN(e):!!e&&(/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e))}an=Symbol.for("react.module.reference"),cn.ContextConsumer=hn,cn.ContextProvider=fn,cn.Element=dn,cn.ForwardRef=xn,cn.Fragment=pn,cn.Lazy=kn,cn.Memo=yn,cn.Portal=un,cn.Profiler=mn,cn.StrictMode=gn,cn.Suspense=bn,cn.SuspenseList=vn,cn.isAsyncMode=function(){return!1},cn.isConcurrentMode=function(){return!1},cn.isContextConsumer=function(e){return Nn(e)===hn},cn.isContextProvider=function(e){return Nn(e)===fn},cn.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===dn},cn.isForwardRef=function(e){return Nn(e)===xn},cn.isFragment=function(e){return Nn(e)===pn},cn.isLazy=function(e){return Nn(e)===kn},cn.isMemo=function(e){return Nn(e)===yn},cn.isPortal=function(e){return Nn(e)===un},cn.isProfiler=function(e){return Nn(e)===mn},cn.isStrictMode=function(e){return Nn(e)===gn},cn.isSuspense=function(e){return Nn(e)===bn},cn.isSuspenseList=function(e){return Nn(e)===vn},cn.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===pn||e===mn||e===gn||e===bn||e===vn||e===Cn||"object"==typeof e&&null!==e&&(e.$$typeof===kn||e.$$typeof===yn||e.$$typeof===fn||e.$$typeof===hn||e.$$typeof===xn||e.$$typeof===an||void 0!==e.getModuleId)},cn.typeOf=Nn;var On=function(){function e(t){if(Sn(this,e),Kr(this,"origin",""),Kr(this,"negative",void 0),Kr(this,"integer",void 0),Kr(this,"decimal",void 0),Kr(this,"decimalLen",void 0),Kr(this,"empty",void 0),Kr(this,"nan",void 0),zn(t))this.empty=!0;else if(this.origin=String(t),"-"===t||Number.isNaN(t))this.nan=!0;else{var r=t;if(Rn(r)&&(r=Number(r)),An(r="string"==typeof r?r:Tn(r))){var n=In(r);this.negative=n.negative;var a=n.trimStr.split(".");this.integer=BigInt(a[0]);var o=a[1]||"0";this.decimal=BigInt(o),this.decimalLen=o.length}else this.nan=!0}}return Ln(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(e){var t="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(e,"0"));return BigInt(t)}},{key:"negate",value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:"cal",value:function(t,r,n){var a=Math.max(this.getDecimalStr().length,t.getDecimalStr().length),o=r(this.alignDecimal(a),t.alignDecimal(a)).toString(),s=n(a),i=In(o),l=i.negativeStr,c=i.trimStr,d="".concat(l).concat(c.padStart(s+1,"0"));return new e("".concat(d.slice(0,-s),".").concat(d.slice(-s)))}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var r=new e(t);return r.isInvalidate()?this:this.cal(r,(function(e,t){return e+t}),(function(e){return e}))}},{key:"multi",value:function(t){var r=new e(t);return this.isInvalidate()||r.isInvalidate()?new e(NaN):this.cal(r,(function(e,t){return e*t}),(function(e){return 2*e}))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toString()===(null==e?void 0:e.toString())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){return!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":In("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),Pn=function(){function e(t){Sn(this,e),Kr(this,"origin",""),Kr(this,"number",void 0),Kr(this,"empty",void 0),zn(t)?this.empty=!0:(this.origin=String(t),this.number=Number(t))}return Ln(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var r=Number(t);if(Number.isNaN(r))return this;var n=this.number+r;if(n>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(n<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var a=Math.max(En(this.number),En(r));return new e(n.toFixed(a))}},{key:"multi",value:function(t){var r=Number(t);if(this.isInvalidate()||Number.isNaN(r))return new e(NaN);var n=this.number*r;if(n>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(n<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var a=Math.max(En(this.number),En(r));return new e(n.toFixed(a))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toNumber()===(null==e?void 0:e.toNumber())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){return!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":Tn(this.number):this.origin}}]),e}();function Vn(e){return Mn()?new On(e):new Pn(e)}function Dn(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var a=In(e),o=a.negativeStr,s=a.integerStr,i=a.decimalStr,l="".concat(t).concat(i),c="".concat(o).concat(s);if(r>=0){var d=Number(i[r]);return d>=5&&!n?Dn(Vn(e).add("".concat(o,"0.").concat("0".repeat(r)).concat(10-d)).toString(),t,r,n):0===r?c:"".concat(c).concat(t).concat(i.padEnd(r,"0").slice(0,r))}return".0"===l?c:"".concat(c).concat(l)}var Hn=function(){var e=Jr(t.useState(!1),2),r=e[0],n=e[1];return sn((function(){n(function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))}())}),[]),r};function Bn(e){var t=e.prefixCls,r=e.upNode,n=e.downNode,a=e.upDisabled,o=e.downDisabled,s=e.onStep,i=E.useRef(),l=E.useRef();l.current=s;var c=function(e,t){e.preventDefault(),l.current(t),i.current=setTimeout((function e(){l.current(t),i.current=setTimeout(e,200)}),600)},d=function(){clearTimeout(i.current)};if(E.useEffect((function(){return d}),[]),Hn())return null;var u="".concat(t,"-handler"),p=rn(u,"".concat(u,"-up"),Kr({},"".concat(u,"-up-disabled"),a)),g=rn(u,"".concat(u,"-down"),Kr({},"".concat(u,"-down-disabled"),o)),m={unselectable:"on",role:"button",onMouseUp:d,onMouseLeave:d};return E.createElement("div",{className:"".concat(u,"-wrap")},E.createElement("span",Ur({},m,{onMouseDown:function(e){c(e,!0)},"aria-label":"Increase Value","aria-disabled":a,className:p}),r||E.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),E.createElement("span",Ur({},m,{onMouseDown:function(e){c(e,!1)},"aria-label":"Decrease Value","aria-disabled":o,className:g}),n||E.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function Fn(e){var t="number"==typeof e?Tn(e):In(e).fullStr;return t.includes(".")?In(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var Wn={};function Zn(e,t){}function Xn(e,t){}function Yn(e,t,r){t||Wn[r]||(e(!1,r),Wn[r]=!0)}function _n(e,t){Yn(Zn,e,t)}_n.preMessage=function(e){},_n.resetWarned=function(){Wn={}},_n.noteOnce=function(e,t){Yn(Xn,e,t)};var $n=function(e){return+setTimeout(e,16)},Un=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&($n=function(e){return window.requestAnimationFrame(e)},Un=function(e){return window.cancelAnimationFrame(e)});var Gn=0,qn=new Map;function Kn(e){qn.delete(e)}var Qn=function(e){var t=Gn+=1;return function r(n){if(0===n)Kn(t),e();else{var a=$n((function(){r(n-1)}));qn.set(t,a)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};Qn.cancel=function(e){var t=qn.get(e);return Kn(e),Un(t)};var Jn=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],ea=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},ta=function(e){var t=Vn(e);return t.isInvalidate()?null:t},ra=E.forwardRef((function(e,r){var n,a=e.prefixCls,o=void 0===a?"rc-input-number":a,s=e.className,i=e.style,l=e.min,c=e.max,d=e.step,u=void 0===d?1:d,p=e.defaultValue,g=e.value,m=e.disabled,f=e.readOnly,h=e.upHandler,w=e.downHandler,x=e.keyboard,b=e.controls,v=void 0===b||b,y=e.stringMode,k=e.parser,C=e.formatter,N=e.precision,j=e.decimalSeparator,S=e.onChange,L=e.onInput,M=e.onPressEnter,z=e.onStep,I=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,Jn),R="".concat(o,"-input"),T=E.useRef(null),A=Jr(E.useState(!1),2),O=A[0],P=A[1],V=E.useRef(!1),D=E.useRef(!1),H=E.useRef(!1),B=Jr(E.useState((function(){return Vn(null!=g?g:p)})),2),F=B[0],W=B[1];var Z=E.useCallback((function(e,t){if(!t)return N>=0?N:Math.max(En(e),En(u))}),[N,u]),X=E.useCallback((function(e){var t=String(e);if(k)return k(t);var r=t;return j&&(r=r.replace(j,".")),r.replace(/[^\w.-]+/g,"")}),[k,j]),Y=E.useRef(""),_=E.useCallback((function(e,t){if(C)return C(e,{userTyping:t,input:String(Y.current)});var r="number"==typeof e?Tn(e):e;if(!t){var n=Z(r,t);if(An(r)&&(j||n>=0))r=Dn(r,j||".",n)}return r}),[C,Z,j]),$=Jr(E.useState((function(){var e=null!=p?p:g;return F.isInvalidate()&&["string","number"].includes(Gr(e))?Number.isNaN(e)?"":e:_(F.toString(),!1)})),2),U=$[0],G=$[1];function q(e,t){G(_(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}Y.current=U;var K,Q,J,ee,te,re=E.useMemo((function(){return ta(c)}),[c,N]),ne=E.useMemo((function(){return ta(l)}),[l,N]),ae=E.useMemo((function(){return!(!re||!F||F.isInvalidate())&&re.lessEquals(F)}),[re,F]),oe=E.useMemo((function(){return!(!ne||!F||F.isInvalidate())&&F.lessEquals(ne)}),[ne,F]),se=(K=T.current,Q=O,J=t.useRef(null),[function(){try{var e=K.selectionStart,t=K.selectionEnd,r=K.value,n=r.substring(0,e),a=r.substring(t);J.current={start:e,end:t,value:r,beforeTxt:n,afterTxt:a}}catch(e){}},function(){if(K&&J.current&&Q)try{var e=K.value,t=J.current,r=t.beforeTxt,n=t.afterTxt,a=t.start,o=e.length;if(e.endsWith(n))o=e.length-J.current.afterTxt.length;else if(e.startsWith(r))o=r.length;else{var s=r[a-1],i=e.indexOf(s,a-1);-1!==i&&(o=i+1)}K.setSelectionRange(o,o)}catch(e){_n(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(e.message))}}]),ie=Jr(se,2),le=ie[0],ce=ie[1],de=function(e){return re&&!e.lessEquals(re)?re:ne&&!ne.lessEquals(e)?ne:null},ue=function(e){return!de(e)},pe=function(e,t){var r,n=e,a=ue(n)||n.isEmpty();if(n.isEmpty()||t||(n=de(n)||n,a=!0),!f&&!m&&a){var o=n.toString(),s=Z(o,t);return s>=0&&(n=Vn(Dn(o,".",s)),ue(n)||(n=Vn(Dn(o,".",s,!0)))),n.equals(F)||(r=n,void 0===g&&W(r),null==S||S(n.isEmpty()?null:ea(y,n)),void 0===g&&q(n,t)),n}return F},ge=(ee=t.useRef(0),te=function(){Qn.cancel(ee.current)},t.useEffect((function(){return te}),[]),function(e){te(),ee.current=Qn((function(){e()}))}),me=function e(t){if(le(),G(t),!D.current){var r=Vn(X(t));r.isNaN()||pe(r,!0)}null==L||L(t),ge((function(){var r=t;k||(r=t.replace(/。/g,".")),r!==t&&e(r)}))},fe=function(e){var t;if(!(e&&ae||!e&&oe)){V.current=!1;var r=Vn(H.current?Fn(u):u);e||(r=r.negate());var n=(F||Vn(0)).add(r.toString()),a=pe(n,!1);null==z||z(ea(y,a),{offset:H.current?Fn(u):u,type:e?"up":"down"}),null===(t=T.current)||void 0===t||t.focus()}},he=function(e){var t=Vn(X(U)),r=t;r=t.isNaN()?F:pe(t,e),void 0!==g?q(F,!1):r.isNaN()||q(r,!1)};return ln((function(){F.isInvalidate()||q(F,!1)}),[N]),ln((function(){var e=Vn(g);W(e);var t=Vn(X(U));e.equals(t)&&V.current&&!C||q(e,V.current)}),[g]),ln((function(){C&&ce()}),[U]),E.createElement("div",{className:rn(o,s,(n={},Kr(n,"".concat(o,"-focused"),O),Kr(n,"".concat(o,"-disabled"),m),Kr(n,"".concat(o,"-readonly"),f),Kr(n,"".concat(o,"-not-a-number"),F.isNaN()),Kr(n,"".concat(o,"-out-of-range"),!F.isInvalidate()&&!ue(F)),n)),style:i,onFocus:function(){P(!0)},onBlur:function(){he(!1),P(!1),V.current=!1},onKeyDown:function(e){var t=e.which,r=e.shiftKey;V.current=!0,H.current=!!r,t===nn.ENTER&&(D.current||(V.current=!1),he(!1),null==M||M(e)),!1!==x&&!D.current&&[nn.UP,nn.DOWN].includes(t)&&(fe(nn.UP===t),e.preventDefault())},onKeyUp:function(){V.current=!1,H.current=!1},onCompositionStart:function(){D.current=!0},onCompositionEnd:function(){D.current=!1,me(T.current.value)},onBeforeInput:function(){V.current=!0}},v&&E.createElement(Bn,{prefixCls:o,upNode:h,downNode:w,upDisabled:ae,downDisabled:oe,onStep:fe}),E.createElement("div",{className:"".concat(R,"-wrap")},E.createElement("input",Ur({autoComplete:"off",role:"spinbutton","aria-valuemin":l,"aria-valuemax":c,"aria-valuenow":F.isInvalidate()?null:F.toString(),step:u},I,{ref:jn(T,r),className:R,value:U,onChange:function(e){me(e.target.value)},disabled:m,readOnly:f}))))}));ra.displayName="InputNumber";const na=E.forwardRef((({className:t,...r},n)=>e.jsx(ra,{className:Fe("flex max-h-5 w-full rounded-md border border-gray-300 bg-transparent px-3 py-2 text-sm placeholder:text-gray-400 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-700 dark:text-gray-50",t??""),ref:n,...r})));na.displayName="Input";const aa=E.forwardRef((({className:t="",...r},n)=>e.jsx(F.Root,{ref:n,...r,className:Fe("block w-full break-all text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 dark:text-gray-200",t)})));aa.displayName=F.Root.displayName;const oa=E.forwardRef((({children:t,triggerRef:r,triggerRefs:n,onOpenChange:a,...o},s)=>e.jsx(H.Root,{...o,onOpenChange:e=>{!e&&r?.current&&setTimeout((()=>{r.current?.focus()}),0),n?.length&&n.forEach((e=>{e?.current&&setTimeout((()=>{e.current?.focus()}),0)})),a?.(e)},children:t}))),sa=H.Trigger,ia=H.Portal,la=H.Close,ca=E.forwardRef((({className:t,...r},n)=>e.jsx(H.Overlay,{ref:n,className:Fe("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...r})));ca.displayName=H.Overlay.displayName;const da=E.forwardRef((({className:t,overlayClassName:r,showCloseButton:n=!0,children:a,...o},s)=>e.jsxs(ia,{children:[e.jsx(ca,{className:r}),e.jsxs(H.Content,{ref:s,className:Fe("max-w-11/12 fixed left-[50%] top-[50%] z-50 grid w-full translate-x-[-50%] translate-y-[-50%] gap-4 rounded-2xl bg-background p-6 text-text-primary 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%]",t),...o,children:[a,n&&e.jsxs(H.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-ring-primary ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[e.jsx(Nt,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Close"})]})]})]})));da.displayName=H.Content.displayName;const ua=({className:t,...r})=>e.jsx("div",{className:Fe("flex flex-col space-y-1.5 text-center sm:text-left",t),...r});ua.displayName="DialogHeader";const pa=({className:t,...r})=>e.jsx("div",{className:Fe("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...r});pa.displayName="DialogFooter";const ga=E.forwardRef((({className:t,...r},n)=>e.jsx(H.Title,{ref:n,className:Fe("text-lg font-semibold leading-none tracking-tight",t),...r})));ga.displayName=H.Title.displayName;const ma=E.forwardRef((({className:t,...r},n)=>e.jsx(H.Description,{ref:n,className:Fe("text-sm text-muted-foreground",t),...r})));ma.displayName=H.Description.displayName;const fa=E.forwardRef((({className:t,onDoubleClick:r,...n},a)=>e.jsxs(W.Root,{ref:a,...n,className:Fe("relative flex w-full cursor-pointer touch-none select-none items-center",t),onDoubleClick:r,children:[e.jsx(W.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:e.jsx(W.Range,{className:"absolute h-full bg-primary"})}),e.jsx(W.Thumb,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]})));fa.displayName=W.Root.displayName;const ha=E.forwardRef((({className:t="",orientation:r="horizontal",decorative:n=!0,...a},o)=>e.jsx(Z.Root,{ref:o,...a,decorative:n,orientation:r,className:Fe("shrink-0 bg-border-light","horizontal"===r?"h-[1px] w-full":"h-full w-[1px]",t)})));ha.displayName=Z.Root.displayName;function wa({className:t,...r}){return e.jsx("div",{className:Fe("animate-pulse rounded-md bg-surface-tertiary opacity-50 dark:opacity-25",t),...r})}const xa=E.forwardRef((({className:t,...r},n)=>e.jsx(X.Root,{className:Fe("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-switch-unchecked",t),...r,ref:n,children:e.jsx(X.Thumb,{className:Fe("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})})));xa.displayName=X.Root.displayName;const ba=E.forwardRef((({className:t,...r},n)=>e.jsx("div",{className:"relative w-full overflow-auto",children:e.jsx("table",{ref:n,className:Fe("w-full caption-bottom text-sm",t),...r})})));ba.displayName="Table";const va=E.forwardRef((({className:t,...r},n)=>e.jsx("thead",{ref:n,className:Fe("[&_tr]:border-b",t),...r})));va.displayName="TableHeader";const ya=E.forwardRef((({className:t,...r},n)=>e.jsx("tbody",{ref:n,className:Fe("[&_tr:last-child]:border-0",t),...r})));ya.displayName="TableBody";const ka=E.forwardRef((({className:t,...r},n)=>e.jsx("tfoot",{ref:n,className:Fe("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",t),...r})));ka.displayName="TableFooter";const Ca=E.forwardRef((({className:t,...r},n)=>e.jsx("tr",{ref:n,className:Fe("border-b border-border-light transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",t),...r})));Ca.displayName="TableRow";const Na=E.forwardRef((({className:t,...r},n)=>e.jsx("th",{ref:n,className:Fe("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",t),...r})));Na.displayName="TableHead";const ja=E.forwardRef((({className:t,...r},n)=>e.jsx("td",{ref:n,className:Fe("p-4 align-middle [&:has([role=checkbox])]:pr-0",t),...r})));ja.displayName="TableCell";const Sa=E.forwardRef((({className:t,...r},n)=>e.jsx("caption",{ref:n,className:Fe("mt-4 text-sm text-muted-foreground",t),...r})));Sa.displayName="TableCaption";const La=Y.Root,Ma=E.forwardRef((({className:t="",...r},n)=>e.jsx(Y.List,{ref:n,className:Fe("inline-flex items-center justify-center rounded-md bg-surface-primary",t),...r})));Ma.displayName=Y.List.displayName;const za=E.forwardRef((({className:t="",...r},n)=>e.jsx(Y.Trigger,{className:Fe("inline-flex min-w-[100px] items-center justify-center rounded-[0.185rem] px-3 py-1.5 text-sm font-medium text-gray-700 transition-all disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-white data-[state=active]:text-gray-800 data-[state=active]:shadow-sm dark:data-[state=active]:bg-gray-700 dark:data-[state=active]:text-gray-200",t),...r,ref:n})));za.displayName=Y.Trigger.displayName;const Ia=E.forwardRef((({className:t="",...r},n)=>e.jsx(Y.Content,{className:Fe("mt-2 rounded-md p-6",t),...r,ref:n})));Ia.displayName=Y.Content.displayName;const Ra=E.forwardRef((({CancelButton:t,LabelNode:r,label:n,onRemove:a,className:o="",labelClassName:s="",...i},l)=>e.jsxs("div",{ref:l,...i,className:Fe("flex max-h-8 items-center overflow-y-hidden rounded-3xl border-2 border-green-600 bg-green-600/20 text-xs text-green-600 dark:text-white",o),children:[e.jsxs("div",{className:Fe("ml-1 whitespace-pre-wrap px-2 py-1",s),children:[r?e.jsxs(e.Fragment,{children:[r," "]}):null,n]}),t||a&&e.jsx("button",{onClick:e=>{e.stopPropagation(),a(e)},className:"rounded-full bg-green-600/50","aria-label":`Remove ${n}`,children:e.jsx(Nt,{className:"m-[1.5px] p-1"})})]})));Ra.displayName="Tag";const Ea=E.memo(Ra),Ta=E.forwardRef((({className:t="",...r},n)=>e.jsx("textarea",{className:Fe("flex h-20 w-full resize-none rounded-md border border-gray-300 bg-transparent px-3 py-2 text-sm placeholder:text-gray-400 focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-700 dark:text-gray-50 dark:focus:ring-gray-400 dark:focus:ring-offset-gray-900",t),ref:n,...r})));Ta.displayName="Textarea";const Aa=t.forwardRef(((r,n)=>{const[,a]=t.useState(!1),o=u.useAtomValue(or).toLowerCase();return t.useLayoutEffect((()=>a(!0)),[]),e.jsx(b,{dir:o,...r,ref:n})}));const Oa=t.forwardRef((function({description:r,side:n="top",className:a,role:o,...s},i){const l=A.useTooltipStore({placement:n}),c=A.useStoreState(l,(e=>e.mounted)),d=A.useStoreState(l,(e=>e.placement)),{x:u,y:p}=t.useMemo((()=>{switch(d.split("-")[0]){case"top":return{x:0,y:-8};case"bottom":return{x:0,y:8};case"left":return{x:-8,y:0};case"right":return{x:8,y:0};default:return{x:0,y:0}}}),[d]);return e.jsxs(A.TooltipProvider,{store:l,hideTimeout:0,children:[e.jsx(A.TooltipAnchor,{...s,ref:i,role:o,onKeyDown:e=>{"button"===o&&"Enter"===e.key&&(e.preventDefault(),e.target.click())},className:Fe("cursor-pointer",a)}),e.jsx(y.AnimatePresence,{children:!0===c&&e.jsxs(A.Tooltip,{gutter:4,alwaysVisible:!0,className:"tooltip",render:e.jsx(y.motion.div,{initial:{opacity:0,x:u,y:p},animate:{opacity:1,x:0,y:0},exit:{opacity:0,x:u,y:p}}),children:[e.jsx(A.TooltipArrow,{}),r]})})]})})),Pa=({className:t,...r})=>e.jsx("nav",{role:"navigation","aria-label":"pagination",className:Fe("mx-auto flex w-full justify-center",t),...r});Pa.displayName="Pagination";const Va=E.forwardRef((({className:t,...r},n)=>e.jsx("ul",{ref:n,className:Fe("flex flex-row items-center gap-1",t),...r})));Va.displayName="PaginationContent";const Da=E.forwardRef((({className:t,...r},n)=>e.jsx("li",{ref:n,className:Fe("",t),...r})));Da.displayName="PaginationItem";const Ha=({className:t,isActive:r=!1,size:n="icon",children:a,...o})=>e.jsx("a",{"aria-current":r?"page":void 0,className:Fe(At({variant:r?"outline":"ghost",size:n}),t),...o,children:a||e.jsx("span",{className:"sr-only",children:"Page link"})});Ha.displayName="PaginationLink";const Ba=({className:t,...r})=>e.jsxs(Ha,{"aria-label":"Go to previous page",size:"default",className:Fe("gap-1 pl-2.5",t),...r,children:[e.jsx(gt,{className:"h-4 w-4"}),e.jsx("span",{children:"Previous"})]});Ba.displayName="PaginationPrevious";const Fa=({className:t,...r})=>e.jsxs(Ha,{"aria-label":"Go to next page",size:"default",className:Fe("gap-1 pr-2.5",t),...r,children:[e.jsx("span",{children:"Next"}),e.jsx(mt,{className:"h-4 w-4"})]});Fa.displayName="PaginationNext";const Wa=({className:t,...r})=>e.jsxs("span",{"aria-hidden":!0,className:Fe("flex h-9 w-9 items-center justify-center",t),...r,children:[e.jsx(ht,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"More pages"})]});Wa.displayName="PaginationEllipsis";const Za=E.forwardRef((({className:t,value:r,...n},a)=>e.jsx($.Root,{ref:a,className:Fe("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",t),...n,children:e.jsx($.Indicator,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(r||0)}%)`}})})));Za.displayName=$.Root.displayName;var Xa=Object.defineProperty,Ya=Object.defineProperties,_a=Object.getOwnPropertyDescriptors,$a=Object.getOwnPropertySymbols,Ua=Object.prototype.hasOwnProperty,Ga=Object.prototype.propertyIsEnumerable,qa=(e,t,r)=>t in e?Xa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ka=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");var Qa=E.createContext({}),Ja=E.forwardRef(((e,t)=>{var r,n,a,o,s,i=e,{value:l,onChange:c,maxLength:d,textAlign:u="left",pattern:p,placeholder:g,inputMode:m="numeric",onComplete:f,pushPasswordManagerStrategy:h="increase-width",pasteTransformer:w,containerClassName:x,noScriptCSSFallback:b=to,render:v,children:y}=i,k=((e,t)=>{var r={};for(var n in e)Ua.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&$a)for(var n of $a(e))t.indexOf(n)<0&&Ga.call(e,n)&&(r[n]=e[n]);return r})(i,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]);let[C,N]=E.useState("string"==typeof k.defaultValue?k.defaultValue:""),j=null!=l?l:C,S=function(e){let t=E.useRef();return E.useEffect((()=>{t.current=e})),t.current}(j),L=E.useCallback((e=>{null==c||c(e),N(e)}),[c]),M=E.useMemo((()=>p?"string"==typeof p?new RegExp(p):p:null),[p]),z=E.useRef(null),I=E.useRef(null),R=E.useRef({value:j,onChange:L,isIOS:"undefined"!=typeof window&&(null==(n=null==(r=null==window?void 0:window.CSS)?void 0:r.supports)?void 0:n.call(r,"-webkit-touch-callout","none"))}),T=E.useRef({prev:[null==(a=z.current)?void 0:a.selectionStart,null==(o=z.current)?void 0:o.selectionEnd,null==(s=z.current)?void 0:s.selectionDirection]});E.useImperativeHandle(t,(()=>z.current),[]),E.useEffect((()=>{let e=z.current,t=I.current;if(!e||!t)return;function r(){if(document.activeElement!==e)return H(null),void F(null);let t,r=e.selectionStart,n=e.selectionEnd,a=e.selectionDirection,o=e.maxLength,s=e.value,i=T.current.prev,l=-1,c=-1;if(0!==s.length&&null!==r&&null!==n){let e=r===n,a=r===s.length&&s.length<o;if(e&&!a){let e=r;if(0===e)l=0,c=1,t="forward";else if(e===o)l=e-1,c=e,t="backward";else if(o>1&&s.length>1){let r=0;if(null!==i[0]&&null!==i[1]){t=e<i[1]?"backward":"forward";let n=i[0]===i[1]&&i[0]<o;"backward"===t&&!n&&(r=-1)}l=r+e,c=r+e+1}}-1!==l&&-1!==c&&l!==c&&z.current.setSelectionRange(l,c,t)}let d=-1!==l?l:r,u=-1!==c?c:n,p=null!=t?t:a;H(d),F(u),T.current.prev=[d,u,p]}if(R.current.value!==e.value&&R.current.onChange(e.value),T.current.prev=[e.selectionStart,e.selectionEnd,e.selectionDirection],document.addEventListener("selectionchange",r,{capture:!0}),r(),document.activeElement===e&&V(!0),!document.getElementById("input-otp-style")){let e=document.createElement("style");if(e.id="input-otp-style",document.head.appendChild(e),e.sheet){let t="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";eo(e.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),eo(e.sheet,`[data-input-otp]:autofill { ${t} }`),eo(e.sheet,`[data-input-otp]:-webkit-autofill { ${t} }`),eo(e.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),eo(e.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let n=()=>{t&&t.style.setProperty("--root-height",`${e.clientHeight}px`)};n();let a=new ResizeObserver(n);return a.observe(e),()=>{document.removeEventListener("selectionchange",r,{capture:!0}),a.disconnect()}}),[]);let[A,O]=E.useState(!1),[P,V]=E.useState(!1),[D,H]=E.useState(null),[B,F]=E.useState(null);E.useEffect((()=>{!function(e){setTimeout(e,0),setTimeout(e,10),setTimeout(e,50)}((()=>{var e,t,r,n;null==(e=z.current)||e.dispatchEvent(new Event("input"));let a=null==(t=z.current)?void 0:t.selectionStart,o=null==(r=z.current)?void 0:r.selectionEnd,s=null==(n=z.current)?void 0:n.selectionDirection;null!==a&&null!==o&&(H(a),F(o),T.current.prev=[a,o,s])}))}),[j,P]),E.useEffect((()=>{void 0!==S&&j!==S&&S.length<d&&j.length===d&&(null==f||f(j))}),[d,f,S,j]);let W=function({containerRef:e,inputRef:t,pushPasswordManagerStrategy:r,isFocused:n}){let[a,o]=E.useState(!1),[s,i]=E.useState(!1),[l,c]=E.useState(!1),d=E.useMemo((()=>"none"!==r&&("increase-width"===r||"experimental-no-flickering"===r)&&a&&s),[a,s,r]),u=E.useCallback((()=>{let n=e.current,a=t.current;if(!n||!a||l||"none"===r)return;let s=n,i=s.getBoundingClientRect().left+s.offsetWidth-18,d=s.getBoundingClientRect().top+s.offsetHeight/2;0===document.querySelectorAll(Ka).length&&document.elementFromPoint(i,d)===n||(o(!0),c(!0))}),[e,t,l,r]);return E.useEffect((()=>{let t=e.current;if(!t||"none"===r)return;function n(){let e=window.innerWidth-t.getBoundingClientRect().right;i(e>=40)}n();let a=setInterval(n,1e3);return()=>{clearInterval(a)}}),[e,r]),E.useEffect((()=>{let e=n||document.activeElement===t.current;if("none"===r||!e)return;let a=setTimeout(u,0),o=setTimeout(u,2e3),s=setTimeout(u,5e3),i=setTimeout((()=>{c(!0)}),6e3);return()=>{clearTimeout(a),clearTimeout(o),clearTimeout(s),clearTimeout(i)}}),[t,n,r,u]),{hasPWMBadge:a,willPushPWMBadge:d,PWM_BADGE_SPACE_WIDTH:"40px"}}({containerRef:I,inputRef:z,pushPasswordManagerStrategy:h,isFocused:P}),Z=E.useCallback((e=>{let t=e.currentTarget.value.slice(0,d);t.length>0&&M&&!M.test(t)?e.preventDefault():("string"==typeof S&&t.length<S.length&&document.dispatchEvent(new Event("selectionchange")),L(t))}),[d,L,S,M]),X=E.useCallback((()=>{var e;if(z.current){let t=Math.min(z.current.value.length,d-1),r=z.current.value.length;null==(e=z.current)||e.setSelectionRange(t,r),H(t),F(r)}V(!0)}),[d]),Y=E.useCallback((e=>{var t,r;let n=z.current;if(!(w||R.current.isIOS&&e.clipboardData&&n))return;let a=e.clipboardData.getData("text/plain"),o=w?w(a):a;e.preventDefault();let s=null==(t=z.current)?void 0:t.selectionStart,i=null==(r=z.current)?void 0:r.selectionEnd,l=(s!==i?j.slice(0,s)+o+j.slice(i):j.slice(0,s)+o+j.slice(s)).slice(0,d);if(l.length>0&&M&&!M.test(l))return;n.value=l,L(l);let c=Math.min(l.length,d-1),u=l.length;n.setSelectionRange(c,u),H(c),F(u)}),[d,L,M,j]),_=E.useMemo((()=>({position:"relative",cursor:k.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"})),[k.disabled]),$=E.useMemo((()=>({position:"absolute",inset:0,width:W.willPushPWMBadge?`calc(100% + ${W.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:W.willPushPWMBadge?`inset(0 ${W.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:u,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"})),[W.PWM_BADGE_SPACE_WIDTH,W.willPushPWMBadge,u]),U=E.useMemo((()=>E.createElement("input",((e,t)=>Ya(e,_a(t)))(((e,t)=>{for(var r in t||(t={}))Ua.call(t,r)&&qa(e,r,t[r]);if($a)for(var r of $a(t))Ga.call(t,r)&&qa(e,r,t[r]);return e})({autoComplete:k.autoComplete||"one-time-code"},k),{"data-input-otp":!0,"data-input-otp-placeholder-shown":0===j.length||void 0,"data-input-otp-mss":D,"data-input-otp-mse":B,inputMode:m,pattern:null==M?void 0:M.source,"aria-placeholder":g,style:$,maxLength:d,value:j,ref:z,onPaste:e=>{var t;Y(e),null==(t=k.onPaste)||t.call(k,e)},onChange:Z,onMouseOver:e=>{var t;O(!0),null==(t=k.onMouseOver)||t.call(k,e)},onMouseLeave:e=>{var t;O(!1),null==(t=k.onMouseLeave)||t.call(k,e)},onFocus:e=>{var t;X(),null==(t=k.onFocus)||t.call(k,e)},onBlur:e=>{var t;V(!1),null==(t=k.onBlur)||t.call(k,e)}}))),[Z,X,Y,m,$,d,B,D,k,null==M?void 0:M.source,j]),G=E.useMemo((()=>({slots:Array.from({length:d}).map(((e,t)=>{var r;let n=P&&null!==D&&null!==B&&(D===B&&t===D||t>=D&&t<B),a=void 0!==j[t]?j[t]:null;return{char:a,placeholderChar:void 0!==j[0]?null:null!=(r=null==g?void 0:g[t])?r:null,isActive:n,hasFakeCaret:n&&null===a}})),isFocused:P,isHovering:!k.disabled&&A})),[P,A,d,B,D,k.disabled,j]),q=E.useMemo((()=>v?v(G):E.createElement(Qa.Provider,{value:G},y)),[y,G,v]);return E.createElement(E.Fragment,null,null!==b&&E.createElement("noscript",null,E.createElement("style",null,b)),E.createElement("div",{ref:I,"data-input-otp-container":!0,style:_,className:x},q,E.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},U)))}));function eo(e,t){try{e.insertRule(t)}catch(e){console.error("input-otp could not insert CSS rule:",t)}}Ja.displayName="Input";var to="\n[data-input-otp] {\n --nojs-bg: white !important;\n --nojs-fg: black !important;\n\n background-color: var(--nojs-bg) !important;\n color: var(--nojs-fg) !important;\n caret-color: var(--nojs-fg) !important;\n letter-spacing: .25em !important;\n text-align: center !important;\n border: 1px solid var(--nojs-fg) !important;\n border-radius: 4px !important;\n width: 100% !important;\n}\n@media (prefers-color-scheme: dark) {\n [data-input-otp] {\n --nojs-bg: black !important;\n --nojs-fg: white !important;\n }\n}";const ro=E.forwardRef((({className:t,containerClassName:r,...n},a)=>e.jsx(Ja,{ref:a,containerClassName:Fe("flex items-center gap-2 has-[:disabled]:opacity-50",r),className:Fe("disabled:cursor-not-allowed",t),...n})));ro.displayName="InputOTP";const no=E.forwardRef((({className:t,...r},n)=>e.jsx("div",{ref:n,className:Fe("flex items-center",t),...r})));no.displayName="InputOTPGroup";const ao=E.forwardRef((({index:t,className:r,...n},a)=>{const o=E.useContext(Qa),{char:s,hasFakeCaret:i,isActive:l}=o.slots[t];return e.jsxs("div",{ref:a,className:Fe("text-md relative flex h-11 w-11 items-center justify-center border-y border-r border-input shadow-sm transition-all first:rounded-l-xl first:border-l last:rounded-r-xl",l&&"z-10 ring-1 ring-ring",r),...n,children:[s,i&&e.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:e.jsx("div",{className:"animate-caret-blink h-4 w-px bg-foreground duration-1000"})})]})}));ao.displayName="InputOTPSlot";const oo=E.forwardRef((({...t},r)=>e.jsx("div",{ref:r,role:"separator",...t,children:e.jsx(xt,{})})));function so({value:r,onChange:n,placeholder:a,className:o=""}){const s=zr(),i=t.useRef(null),l=t.useCallback((e=>n(e.target.value)),[n]);return e.jsxs("div",{className:Fe("focus:to-surface-primary/50 group sticky left-0 top-0 z-10 flex h-12 items-center gap-2 bg-gradient-to-b from-surface-tertiary-alt from-65% to-transparent px-3 py-2 text-text-primary transition-colors duration-300 focus:bg-gradient-to-b focus:from-surface-primary",o),children:[e.jsx(kt,{className:"h-4 w-4 text-text-secondary-alt transition-colors duration-300","aria-hidden":"true"}),e.jsx("input",{ref:i,type:"text",value:r??"",onChange:l,placeholder:a??s("com_ui_select_search_model"),"aria-label":"Search Model",className:"flex-1 rounded-md border-none bg-transparent px-2.5 py-2 text-sm placeholder-text-secondary focus:outline-none focus:ring-1 focus:ring-ring-primary"}),e.jsx("button",{className:Fe("relative flex h-5 w-5 items-center justify-end rounded-md text-text-secondary-alt",r?.length?"cursor-pointer opacity-100":"hidden"),"aria-label":"Clear search",onClick:()=>{n(""),setTimeout((()=>{i.current?.focus()}),0)},tabIndex:0,children:e.jsx(Nt,{"aria-hidden":"true",className:Fe("text-text-secondary-alt",r?.length?"cursor-pointer opacity-100":"opacity-0")})})]})}function io(e){return"string"==typeof e?e.startsWith("---")&&e.endsWith("---")?"":e.toUpperCase():""}function lo({availableOptions:r=[],placeholder:n,getTextKeyOverride:a,className:o,disabled:s=!1}){const[i,l]=t.useState(null),c=r.length>10&&!s,d=a||io,u=t.useMemo((()=>{const e=i??"";if(!c||!e||!r.length)return r;const t=e.toUpperCase();return r.filter((e=>d(e).includes(t)))}),[r,d,i,c]),p=t.useCallback((e=>l(e)),[]);return[u,c?e.jsx(so,{value:i,className:o,onChange:p,placeholder:n}):null]}oo.displayName="InputOTPSeparator";const co=U.Panel;const uo=G.Value,po=E.forwardRef((({className:t="",children:r,...a},o)=>e.jsxs(G.Trigger,{ref:o,className:Fe("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-gray-200 border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-600 [&>span]:line-clamp-1","rounded-lg hover:bg-gray-100/50 dark:hover:bg-gray-700",t),...a,children:[r,e.jsx(G.Icon,{asChild:!0,children:e.jsx(n.CaretSortIcon,{className:"h-4 w-4 opacity-50"})})]})));po.displayName=G.Trigger.displayName;const go=E.forwardRef((({className:t="",...r},a)=>e.jsx(G.ScrollUpButton,{ref:a,className:Fe("flex cursor-default items-center justify-center py-1 dark:text-white",t),...r,children:e.jsx(n.ChevronUpIcon,{})})));go.displayName=G.ScrollUpButton.displayName;const mo=E.forwardRef((({className:t="",...r},a)=>e.jsx(G.ScrollDownButton,{ref:a,className:Fe("flex cursor-default items-center justify-center py-1 dark:text-white",t),...r,children:e.jsx(n.ChevronDownIcon,{})})));mo.displayName=G.ScrollDownButton.displayName;E.forwardRef((({className:t="",children:r,position:n="popper",...a},o)=>e.jsx(G.Portal,{children:e.jsxs(G.Content,{ref:o,className:Fe("bg-popover text-popover-foreground relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-gray-200 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 dark:border-gray-600","popper"===n?"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1":"",t),position:n,...a,children:[e.jsx(go,{}),e.jsx(G.Viewport,{className:Fe("p-1","popper"===n?"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]":""),children:r}),e.jsx(mo,{})]})}))).displayName=G.Content.displayName;E.forwardRef((({className:t="",...r},n)=>e.jsx(G.Label,{ref:n,className:Fe("px-2 py-1.5 text-sm font-semibold",t),...r}))).displayName=G.Label.displayName;E.forwardRef((({className:t="",children:r,...a},o)=>e.jsxs(G.Item,{ref:o,className:Fe("relative flex w-full cursor-pointer 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","rounded-lg hover:bg-gray-100/50 dark:hover:bg-gray-700",t),...a,children:[e.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(G.ItemIndicator,{children:e.jsx(n.CheckIcon,{className:"h-4 w-4"})})}),e.jsx(G.ItemText,{children:r})]}))).displayName=G.Item.displayName;E.forwardRef((({className:t="",...r},n)=>e.jsx(G.Separator,{ref:n,className:Fe("-mx-1 my-1 h-px bg-muted",t),...r}))).displayName=G.Separator.displayName;const fo=e=>"object"==typeof e&&"divider"in e,ho=e=>"object"==typeof e&&"value"in e&&"label"in e,wo=e=>{if("undefined"!=typeof Intl&&"Segmenter"in Intl){const t=new Intl.Segmenter("en",{granularity:"grapheme"}).segment(e);return Array.from(t).map((e=>e.segment))}return[...e]},xo=({value:t,onChange:r,isSearching:n,placeholder:a})=>{const o=!0===n,s=null!=t&&t.length>0;return e.jsxs("div",{className:"relative w-full",children:[e.jsx("div",{className:"relative rounded-lg transition-all duration-500 ease-in-out",children:e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"absolute left-3 top-1/2 z-50 -translate-y-1/2",children:e.jsx(kt,{className:Fe("h-4 w-4 transition-all duration-500 ease-in-out",o&&s?"text-blue-400":"text-gray-400")})}),e.jsx("input",{type:"text",value:t,onChange:r,placeholder:a,className:"peer relative z-20 w-full rounded-lg bg-surface-secondary px-10 py-2 outline-none ring-0 backdrop-blur-sm transition-all duration-500 ease-in-out placeholder:text-gray-400 focus:outline-none focus:ring-0"}),e.jsx("div",{className:`pointer-events-none absolute inset-0 z-20 rounded-lg bg-gradient-to-r from-blue-500/20 via-purple-500/20 to-blue-500/20 transition-all duration-500 ease-in-out ${o&&s?"opacity-100 blur-sm":"opacity-0 blur-none"} `}),e.jsx("div",{className:`absolute right-3 top-1/2 z-20 -translate-y-1/2 transition-all duration-500 ease-in-out ${o&&s?"scale-100 opacity-100":"scale-0 opacity-0"} `,children:e.jsxs("div",{className:"relative h-2 w-2",children:[e.jsx("div",{className:"absolute inset-0 animate-ping rounded-full bg-blue-500/60"}),e.jsx("div",{className:"absolute inset-0 rounded-full bg-blue-500"})]})})]})}),e.jsx("div",{className:`absolute -inset-8 -z-10 transition-all duration-700 ease-in-out ${o&&s?"scale-105 opacity-100":"scale-100 opacity-0"} `,children:e.jsxs("div",{className:"absolute inset-0",children:[e.jsx("div",{className:`bg-gradient-radial absolute inset-0 from-blue-500/10 to-transparent transition-opacity duration-700 ease-in-out ${o&&s?"animate-pulse-slow opacity-100":"opacity-0"} `}),e.jsx("div",{className:`absolute inset-0 bg-gradient-to-r from-purple-500/5 via-blue-500/5 to-purple-500/5 blur-xl transition-all duration-700 ease-in-out ${o&&s?"animate-gradient-x opacity-100":"opacity-0"} `})]})}),e.jsx("div",{className:"absolute inset-0 -z-20 scale-100 bg-gradient-to-r from-blue-500/10 via-purple-500/10 to-blue-500/10 opacity-0 blur-xl transition-all duration-500 ease-in-out peer-focus:scale-105 peer-focus:opacity-100"})]})};const bo=t.forwardRef(((t,r)=>{const{className:n="icon-md",size:a="1.2em"}=t;return e.jsx("svg",{ref:r,fill:"none",strokeWidth:"2",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",height:a,width:a,className:Fe(n),children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.2929 4.29291C15.0641 2.52167 17.9359 2.52167 19.7071 4.2929C21.4783 6.06414 21.4783 8.93588 19.7071 10.7071L18.7073 11.7069L11.1603 19.2539C10.7182 19.696 10.1489 19.989 9.53219 20.0918L4.1644 20.9864C3.84584 21.0395 3.52125 20.9355 3.29289 20.7071C3.06453 20.4788 2.96051 20.1542 3.0136 19.8356L3.90824 14.4678C4.01103 13.8511 4.30396 13.2818 4.7461 12.8397L13.2929 4.29291ZM13 7.41422L6.16031 14.2539C6.01293 14.4013 5.91529 14.591 5.88102 14.7966L5.21655 18.7835L9.20339 18.119C9.40898 18.0847 9.59872 17.9871 9.7461 17.8397L16.5858 11L13 7.41422ZM18 9.5858L14.4142 6.00001L14.7071 5.70712C15.6973 4.71693 17.3027 4.71693 18.2929 5.70712C19.2831 6.69731 19.2831 8.30272 18.2929 9.29291L18 9.5858Z",fill:"currentColor"})})}));function vo({className:t="m-auto",size:r=20,color:n="currentColor",bgOpacity:a=.1,speed:o=.75}){const s={"--spinner-speed":`${o}s`};return e.jsxs("svg",{className:Fe(t,"spinner"),width:r,height:r,viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg",style:s,children:[e.jsx("defs",{children:e.jsx("style",{type:"text/css",children:"\n .spinner {\n transform-origin: center;\n overflow: visible;\n animation: spinner-rotate var(--spinner-speed) linear infinite;\n }\n @keyframes spinner-rotate {\n to { transform: rotate(360deg); }\n }\n "})}),e.jsx("circle",{cx:"20",cy:"20",r:"14.5",pathLength:"100",strokeWidth:"5",fill:"none",stroke:n,strokeOpacity:a}),e.jsx("circle",{cx:"20",cy:"20",r:"14.5",pathLength:"100",strokeWidth:"5",fill:"none",stroke:n,strokeDasharray:"25 75",strokeLinecap:"round"})]})}function yo({className:t=""}){return e.jsx("svg",{fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:Fe("h-4 w-4",t),height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.0633 5.67375C18.5196 5.98487 18.6374 6.607 18.3262 7.06331L10.8262 18.0633C10.6585 18.3093 10.3898 18.4678 10.0934 18.4956C9.79688 18.5234 9.50345 18.4176 9.29289 18.2071L4.79289 13.7071C4.40237 13.3166 4.40237 12.6834 4.79289 12.2929C5.18342 11.9023 5.81658 11.9023 6.20711 12.2929L9.85368 15.9394L16.6738 5.93664C16.9849 5.48033 17.607 5.36263 18.0633 5.67375Z",fill:"currentColor"})})}function ko({className:t=""}){return e.jsx("svg",{fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:Fe("icon-md h-4 w-4",t),height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5555 4C10.099 4 9.70052 4.30906 9.58693 4.75114L9.29382 5.8919H14.715L14.4219 4.75114C14.3083 4.30906 13.9098 4 13.4533 4H10.5555ZM16.7799 5.8919L16.3589 4.25342C16.0182 2.92719 14.8226 2 13.4533 2H10.5555C9.18616 2 7.99062 2.92719 7.64985 4.25342L7.22886 5.8919H4C3.44772 5.8919 3 6.33961 3 6.8919C3 7.44418 3.44772 7.8919 4 7.8919H4.10069L5.31544 19.3172C5.47763 20.8427 6.76455 22 8.29863 22H15.7014C17.2354 22 18.5224 20.8427 18.6846 19.3172L19.8993 7.8919H20C20.5523 7.8919 21 7.44418 21 6.8919C21 6.33961 20.5523 5.8919 20 5.8919H16.7799ZM17.888 7.8919H6.11196L7.30423 19.1057C7.3583 19.6142 7.78727 20 8.29863 20H15.7014C16.2127 20 16.6417 19.6142 16.6958 19.1057L17.888 7.8919ZM10 10C10.5523 10 11 10.4477 11 11V16C11 16.5523 10.5523 17 10 17C9.44772 17 9 16.5523 9 16V11C9 10.4477 9.44772 10 10 10ZM14 10C14.5523 10 15 10.4477 15 11V16C15 16.5523 14.5523 17 14 17C13.4477 17 13 16.5523 13 16V11C13 10.4477 13.4477 10 14 10Z",fill:"currentColor"})})}const Co=t.memo((({checked:t,onChange:r,ariaLabel:n})=>e.jsx("div",{role:"button",tabIndex:0,onKeyDown:e=>e.stopPropagation(),className:"flex h-full w-[30px] items-center justify-center",onClick:e=>e.stopPropagation(),children:e.jsx(Dt,{checked:t,onCheckedChange:r,"aria-label":n})})));Co.displayName="SelectionCheckbox";const No=t.memo((({row:r,isSmallScreen:n,onSelectionChange:a,index:o,isSearching:s})=>{const i=t.useCallback((e=>{r.toggleSelected(e),a?.(r.id,e)}),[r,a]);return e.jsx(Ca,{"data-state":r.getIsSelected()?"selected":void 0,className:"motion-safe:animate-fadeIn border-b border-border-light transition-all duration-300 ease-out hover:bg-surface-secondary",style:{animationDelay:20*o+"ms",transform:`translateY(${s?"4px":"0"})`,opacity:s?.5:1},children:r.getVisibleCells().map((t=>"select"===t.column.id?e.jsx(ja,{className:"px-2 py-1 transition-all duration-300",children:e.jsx(Co,{checked:r.getIsSelected(),onChange:i,ariaLabel:"Select row"})},t.id):e.jsx(ja,{className:"w-0 max-w-0 px-2 py-1 align-middle text-xs transition-all duration-300 sm:px-4 sm:py-2 sm:text-sm",style:jo(t.column.columnDef,n),children:e.jsx("div",{className:"overflow-hidden text-ellipsis",children:M.flexRender(t.column.columnDef.cell,t.getContext())})},t.id)))})}));function jo(e,t){return{width:t?e.meta?.mobileSize:e.meta?.size,minWidth:e.meta?.minWidth,maxWidth:e.meta?.size}}const So=t.memo((({onDelete:t,isDeleting:r,disabled:n,isSmallScreen:a})=>t?e.jsx(Vt,{variant:"outline",onClick:t,disabled:n,className:Fe("min-w-[40px] transition-all duration-200",a&&"px-2 py-1"),children:r?e.jsx(vo,{className:"size-4"}):e.jsxs(e.Fragment,{children:[e.jsx(ko,{className:"size-3.5 text-red-400 sm:size-4"}),!a&&e.jsx("span",{className:"ml-2",children:"Delete"})]})}):null));class Lo{constructor(e,t,r,n,a,o,s,i){this.width=e.width,this.height=e.height,this.ctx=t,this.x=r,this.y=n,this.color=a,this.speed=this.random(.1,.9)*o,this.size=0,this.sizeStep=.4*Math.random(),this.minSize=.5,this.maxSizeInteger=2,this.maxSize=this.random(this.minSize,this.maxSizeInteger),this.delay=s,this.counter=0,this.counterStep=4*Math.random()+.01*(this.width+this.height),this.isIdle=!1,this.isReverse=!1,this.isShimmer=!1,this.activationThreshold=i}random(e,t){return Math.random()*(t-e)+e}draw(){const e=.5*this.maxSizeInteger-.5*this.size;this.ctx.fillStyle=this.color,this.ctx.fillRect(this.x+e,this.y+e,this.size,this.size)}appear(){this.isIdle=!1,this.counter<=this.delay?this.counter+=this.counterStep:(this.size>=this.maxSize&&(this.isShimmer=!0),this.isShimmer?this.shimmer():this.size+=this.sizeStep,this.draw())}appearWithProgress(e){if(e-this.activationThreshold<=0)this.isIdle=!0;else{if(this.counter<=this.delay)return this.counter+=this.counterStep,void(this.isIdle=!1);this.size>=this.maxSize&&(this.isShimmer=!0),this.isShimmer?this.shimmer():this.size+=this.sizeStep,this.isIdle=!1,this.draw()}}disappear(){this.isShimmer=!1,this.counter=0,this.size<=0?this.isIdle=!0:(this.size-=.1,this.draw())}shimmer(){this.size>=this.maxSize?this.isReverse=!0:this.size<=this.minSize&&(this.isReverse=!1),this.size+=this.isReverse?-this.speed:this.speed}}const Mo=(e,t)=>{const r=parseInt(String(e),10);return r<=0||t?0:r>=100?.1:.001*r},zo=(e,t=0,r=1)=>Math.min(Math.max(e,t),r),Io={default:{gap:5,speed:35,colors:"#f8fafc,#f1f5f9,#cbd5e1",noFocus:!1},blue:{gap:10,speed:25,colors:"#e0f2fe,#7dd3fc,#0ea5e9",noFocus:!1},yellow:{gap:3,speed:20,colors:"#fef08a,#fde047,#eab308",noFocus:!1},pink:{gap:6,speed:80,colors:"#fecdd3,#fda4af,#e11d48",noFocus:!0}};const Ro=t.forwardRef((({children:t,handleFileChange:r},n)=>e.jsxs(e.Fragment,{children:[t,e.jsx("input",{ref:n,multiple:!0,type:"file",style:{display:"none"},onChange:r})]})));function Eo(e,t){return 0===e.length?t||"Select...":1===e.length?e[0]:`${e.length} items selected`}Ro.displayName="FileUpload";const To=({items:t,menuId:r,keyPrefix:n,className:a,iconClassName:o,itemClassName:s,modal:i,portal:l,sameWidth:c,gutter:d=8,finalFocus:u,unmountOnHide:p,preserveTabOrder:g})=>{const m=A.useMenuContext();return e.jsx(A.Menu,{id:r,modal:i,gutter:d,portal:l,sameWidth:c,finalFocus:u,unmountOnHide:p,preserveTabOrder:g,className:Fe("popover-ui z-50",a),children:t.filter((e=>!1!==e.show)).map(((t,r)=>!0===t.separate?e.jsx(A.MenuSeparator,{className:"my-1 h-px bg-white/10"},r):e.jsxs(A.MenuItem,{id:t.id,className:Fe("group flex w-full cursor-pointer items-center gap-2 rounded-lg px-3 py-3.5 text-sm text-text-primary outline-none transition-colors duration-200 hover:bg-surface-hover focus:bg-surface-hover md:px-2.5 md:py-2",s),disabled:t.disabled,render:t.render,ref:t.ref,hideOnClick:t.hideOnClick,onClick:e=>{e.preventDefault(),t.onClick&&t.onClick(e),!1!==t.hideOnClick&&m?.hide()},children:[null!=t.icon&&e.jsx("span",{className:Fe("mr-2 size-4",o),"aria-hidden":"true",children:t.icon}),t.label,null!=t.kbd&&e.jsxs("kbd",{className:"ml-auto hidden font-sans text-xs text-black/50 group-hover:inline group-focus:inline dark:text-white/50",children:["⌘",t.kbd]})]},`${n??""}${r}-${t.id??""}`)))})},Ao=({theme:r,onChange:n})=>{const a={system:e.jsx(bt,{}),dark:e.jsx(vt,{color:"white"}),light:e.jsx(Ct,{})},o="dark"===r?"light":"dark",s=`Switch to ${o} theme`;return t.useEffect((()=>{const e=e=>{e.ctrlKey&&e.shiftKey&&"t"===e.key.toLowerCase()&&(e.preventDefault(),n(o))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[o,n]),e.jsx("button",{className:"flex items-center gap-2 rounded-lg p-2 transition-colors hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","aria-label":s,"aria-keyshortcuts":"Ctrl+Shift+T",onClick:e=>{e.preventDefault(),n(o)},onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),n(o))},children:a[r]})},Oo=E.forwardRef((({icon:r,label:n,setValue:o,className:s,checked:i,defaultChecked:l,isCheckedClassName:c},d)=>{const u=a.useCheckboxStore(),p=a.useStoreState(u,(e=>e?.value));return t.useEffect((()=>{void 0!==i&&u.setValue(i)}),[i,u]),t.useEffect((()=>{void 0!==l&&void 0===i&&u.setValue(l)}),[l,i,u]),e.jsxs(a.Checkbox,{ref:d,store:u,onChange:e=>{e.stopPropagation(),"boolean"==typeof p&&o?.({e:e,value:!p})},className:Fe("group relative inline-flex items-center justify-center gap-1.5","rounded-full border border-border-medium text-sm font-medium","size-9 p-2 transition-all md:w-full md:p-3","bg-transparent shadow-sm hover:bg-surface-hover hover:shadow-md active:shadow-inner",p&&c&&c,s),render:e.jsx("button",{type:"button","aria-label":n}),children:[r&&e.jsx("span",{className:"icon-md text-text-primary",children:r}),e.jsx("span",{className:"hidden truncate md:block",children:n})]})}));Oo.displayName="CheckboxButton";const Po=t.forwardRef(((t,r)=>{const{title:n,description:a,main:o,buttons:s,leftButtons:i,selection:l,className:c,headerClassName:d,footerClassName:u,showCloseButton:p,showCancelButton:g=!0}=t,{selectHandler:m,selectClasses:f,selectText:h}=l||{};return e.jsxs(Pr,{showCloseButton:p,ref:r,className:Fe("shadow-2xl dark:bg-gray-700",c||""),onClick:e=>e.stopPropagation(),children:[e.jsxs(Vr,{className:Fe(d??""),children:[e.jsx(Hr,{className:"text-lg font-medium leading-6 text-gray-800 dark:text-gray-200",children:n}),a&&e.jsx(Br,{className:"text-gray-600 dark:text-gray-300",children:a})]}),e.jsx("div",{className:"px-6",children:o||null}),e.jsxs(Dr,{className:u,children:[e.jsx("div",{children:i||null}),e.jsxs("div",{className:"flex h-auto gap-3",children:[g&&e.jsx(Fr,{className:"border-gray-100 hover:bg-gray-100 dark:border-gray-600 dark:hover:bg-gray-600",children:"cancel"}),s||null,l?e.jsx(Fr,{onClick:m,className:`${f||"bg-gray-800 text-white transition-colors hover:bg-gray-700 disabled:cursor-not-allowed disabled:opacity-50 dark:bg-gray-200 dark:text-gray-800 dark:hover:bg-gray-200"} inline-flex h-10 items-center justify-center rounded-lg border-none px-4 py-2 text-sm`,children:h}):null]})]})]})}));var Vo=t.memo((({label:r="Value",ariaLabel:n="Value",min:a=0,max:o=100,step:s=1,stepClick:i=1,initialValue:l=0,showButtons:c=!0,onChange:d,disabled:u=!1})=>{const p=zr(),[g,m]=t.useState(l),[f,h]=t.useState(!1),w=t.useRef(null),x=`model-parameter-${n.toLowerCase().replace(/\s+/g,"-")}`,b=r&&r.startsWith("com_")?p(r):r,v=(e=>{const t=(""+e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0})(s),y=t.useCallback((e=>{const t=Math.min(Math.max(e,a),o),r=Object.is(t,-0)?0:t;m(r),d?.(r)}),[a,o,d]),k=t.useCallback((e=>{y(parseFloat(e.target.value))}),[y]),C=t.useCallback((()=>{y(g+i)}),[g,i,y]),N=t.useCallback((()=>{y(g-i)}),[g,i,y]),j=t.useCallback((e=>{"ArrowRight"===e.key||"ArrowUp"===e.key?(e.preventDefault(),C()):"ArrowLeft"!==e.key&&"ArrowDown"!==e.key||(e.preventDefault(),N())}),[C,N]);return t.useEffect((()=>{const e=w.current;if(e){const t=(g-a)/(o-a)*100;e.style.backgroundSize=`${t}% 100%`}}),[g,a,o]),e.jsxs("div",{className:"w-full",children:[e.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[e.jsx("label",{htmlFor:x,className:"text-sm font-medium "+(u?"text-gray-400 dark:text-gray-400":""),children:b}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("output",{htmlFor:x,className:"select-none text-sm font-medium "+(u?"text-gray-400 dark:text-gray-400":""),"aria-live":"polite",children:g.toFixed(v).replace("-0.00","0.00")}),c&&e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("button",{type:"button",onClick:N,className:"rounded-md p-1 transition-colors "+(u?"cursor-not-allowed text-gray-400 dark:text-gray-400":"hover:bg-gray-200 dark:hover:bg-gray-700"),"aria-label":`Decrease ${r}`,disabled:u,children:e.jsx(xt,{size:16})}),e.jsx("button",{type:"button",onClick:C,className:"rounded-md p-1 transition-colors "+(u?"cursor-not-allowed text-gray-400 dark:text-gray-400":"hover:bg-gray-200 dark:hover:bg-gray-700"),"aria-label":`Increase ${r}`,disabled:u,children:e.jsx(yt,{size:16})})]})]})]}),e.jsxs("div",{className:"relative w-full",children:[e.jsx("input",{ref:w,type:"range",id:x,min:a,max:o,step:s,value:g,onChange:k,onKeyDown:j,onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),className:"slider-thumb h-2 w-full appearance-none rounded-lg bg-gradient-to-r from-gray-500 to-gray-500 bg-no-repeat focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 "+(u?"cursor-not-allowed opacity-50":"cursor-pointer"),tabIndex:0,style:{backgroundSize:"50% 100%",backgroundPosition:"left"},"aria-valuemin":a,"aria-valuemax":o,"aria-valuenow":g,"aria-valuetext":`${g.toFixed(v).replace("-0.00","0.00")}`,disabled:u}),f?e.jsxs("div",{className:"trab mt-1 flex justify-between",children:[e.jsx("span",{className:"text-xs text-gray-500",children:a}),e.jsx("span",{className:"text-xs text-gray-500",children:o})]}):e.jsx("div",{className:"mt-1",style:{height:"1rem"}})]})]})}));var Do=t.memo((function({selectedValue:r,displayValue:n,items:a,setValue:o,ariaLabel:s,searchPlaceholder:i,selectPlaceholder:l,containerClassName:c,isCollapsed:d,SelectIcon:u,showCarat:p,className:g,disabled:m,iconClassName:f,iconSide:h="left",selectId:w}){const[x,b]=t.useState(""),v=t.useRef(null),[y,k]=t.useState(null),C=e=>({id:`item-${e.value}`,value:e.value,label:e.label,icon:e.icon}),N=A.useComboboxStore({defaultItems:a.map(C),resetValueOnHide:!0,value:x,setValue:b}),j=A.useSelectStore({combobox:N,defaultItems:a.map(C),value:r,setValue:o}),S=t.useMemo((()=>{const e=yr(a,x,{keys:["value","label"],baseSort:(e,t)=>e.index<t.index?-1:1});return e.map(C)}),[x,a]);t.useEffect((()=>{v.current&&!d&&k(v.current.offsetWidth)}),[d]);const L=Fe("flex h-5 w-5 items-center justify-center overflow-hidden rounded-full",f),M=Fe("mr-2 flex h-5 w-5 items-center justify-center overflow-hidden rounded-full",f);return e.jsxs("div",{className:Fe("flex w-full items-center justify-center px-1",c),children:[e.jsx(A.SelectLabel,{store:j,className:"sr-only",children:s}),e.jsxs(A.Select,{ref:v,store:j,id:w,disabled:m,className:Fe("flex items-center justify-center gap-2 rounded-full bg-surface-secondary","text-text-primary hover:bg-surface-tertiary","border border-border-light",d?"h-10 w-10":"h-10 w-full rounded-xl px-3 py-2 text-sm",g),children:[null!=u&&"left"===h&&e.jsx("div",{className:L,children:u}),!d&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"flex-grow truncate text-left",children:null!=n?n||l:r||l}),null!=u&&"right"===h&&e.jsx("div",{className:L,children:u}),p&&e.jsx(pt,{className:"h-4 w-4 text-text-secondary"})]})]}),e.jsxs(A.SelectPopover,{store:j,gutter:4,portal:!0,className:Fe("animate-popover z-50 overflow-hidden rounded-xl border border-border-light bg-surface-secondary shadow-lg"),style:{width:d?"300px":y??"300px"},children:[e.jsx("div",{className:"py-1.5",children:e.jsxs("div",{className:"relative",children:[e.jsx(kt,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-primary"}),e.jsx(A.Combobox,{store:N,autoSelect:!0,placeholder:i,className:"w-full rounded-md bg-surface-secondary py-2 pl-9 pr-3 text-sm text-text-primary focus:outline-none"})]})}),e.jsx("div",{className:"max-h-[300px] overflow-auto",children:e.jsx(A.ComboboxList,{store:N,children:e.jsx(I.SelectRenderer,{store:j,items:S,itemSize:36,overscan:5,children:({value:t,icon:r,label:n,...a})=>e.jsxs(A.ComboboxItem,{...a,className:Fe("flex w-full cursor-pointer items-center px-3 text-sm","text-text-primary hover:bg-surface-tertiary","data-[active-item]:bg-surface-tertiary"),render:e.jsx(A.SelectItem,{value:t}),children:[null!=r&&"left"===h&&e.jsx("div",{className:M,children:r}),e.jsx("span",{className:"flex-grow truncate text-left",children:n}),null!=r&&"right"===h&&e.jsx("div",{className:M,children:r})]},a.id)})})})]})]})}));const Ho=t.forwardRef(((t,r)=>{const n=zr(),{title:a,main:o,buttons:s,selection:i,className:l,leftButtons:c,description:d="",mainClassName:u,headerClassName:p,footerClassName:g,showCloseButton:m,overlayClassName:f,showCancelButton:h=!0}=t,{selectHandler:w,selectClasses:x,selectText:b,isLoading:v}=i||{};return e.jsxs(da,{overlayClassName:f,showCloseButton:m,ref:r,className:Fe("w-11/12 border-none bg-background text-foreground",l??""),onClick:e=>e.stopPropagation(),children:[e.jsxs(ua,{className:Fe(p??""),children:[e.jsx(ga,{children:a}),d&&e.jsx(ma,{className:"items-center justify-center",children:d})]}),e.jsx("div",{className:Fe("px-0 py-2",u),children:null!=o?o:null}),e.jsxs(pa,{className:g,children:[e.jsx("div",{children:null!=c?e.jsx("div",{className:"mt-3 flex h-auto gap-3 max-sm:w-full max-sm:flex-col sm:mt-0 sm:flex-row",children:c}):null}),e.jsxs("div",{className:"flex h-auto gap-3 max-sm:w-full max-sm:flex-col sm:flex-row",children:[h&&e.jsx(la,{asChild:!0,children:e.jsx(Vt,{variant:"outline",children:n("com_ui_cancel")})}),null!=s?s:null,i?e.jsx(la,{onClick:w,disabled:v,className:`${x??"bg-gray-800 text-white transition-colors hover:bg-gray-700 disabled:cursor-not-allowed disabled:opacity-50 dark:bg-gray-200 dark:text-gray-800 dark:hover:bg-gray-200"} flex h-10 items-center justify-center rounded-lg border-none px-4 py-2 text-sm disabled:opacity-80 max-sm:order-first max-sm:w-full sm:order-none`,children:!0===v?e.jsx(vo,{className:"size-4 text-white"}):b}):null]})]})]})})),Bo=E.forwardRef((({className:t,options:r,onSelect:n,...a},o)=>{const[s,i]=E.useState(!1),[l,c]=E.useState(a.value||""),[d,u]=E.useState(-1),p=E.useRef(null),g=e=>{c(e),i(!1),u(-1),n&&n(e),a.onChange&&a.onChange({target:{value:e}})};return E.useEffect((()=>{const e=e=>{p.current&&!p.current.contains(e.target)&&(i(!1),u(-1))};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[]),e.jsxs("div",{className:"relative",ref:p,children:[e.jsxs("div",{className:"relative",children:[e.jsx($r,{...a,value:l,onChange:e=>{c(e.target.value),a.onChange&&a.onChange(e)},onKeyDown:e=>{switch(e.key){case"ArrowDown":e.preventDefault(),s?u((e=>e<r.length-1?e+1:e)):i(!0);break;case"ArrowUp":e.preventDefault(),u((e=>e>0?e-1:0));break;case"Enter":e.preventDefault(),s&&-1!==d&&g(r[d]),i(!1);break;case"Escape":i(!1),u(-1)}},"aria-haspopup":"listbox","aria-controls":"dropdown-list",className:Fe("bg-surface-secondary",t??""),ref:o}),e.jsx("button",{type:"button",className:"text-tertiary absolute inset-y-0 right-0 flex items-center rounded-md px-2 hover:text-secondary focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring-primary",onClick:()=>i(!s),"aria-label":s?"Close dropdown":"Open dropdown",children:e.jsx("svg",{className:"h-5 w-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})})]}),s&&e.jsx("ul",{id:"dropdown-list",role:"listbox",className:"absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md border border-border-medium bg-surface-secondary shadow-lg focus:ring-1 focus:ring-inset focus:ring-ring-primary",children:r.map(((t,r)=>e.jsx("li",{role:"option","aria-selected":r===d,className:Fe("cursor-pointer rounded-md px-3 py-2","focus:bg-surface-tertiary focus:outline-none focus:ring-1 focus:ring-inset focus:ring-ring-primary",r===d?"bg-surface-active text-primary":"text-secondary hover:bg-surface-tertiary"),onClick:()=>g(t),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),g(t))},tabIndex:0,children:t},r)))})]})}));Bo.displayName="InputWithDropdown";const Fo=t.createContext({showToast:()=>({})});exports.Accordion=Xe,exports.AccordionContent=$e,exports.AccordionItem=Ye,exports.AccordionTrigger=_e,exports.AlertDialog=qe,exports.AlertDialogAction=ot,exports.AlertDialogCancel=st,exports.AlertDialogContent=et,exports.AlertDialogDescription=at,exports.AlertDialogFooter=rt,exports.AlertDialogHeader=tt,exports.AlertDialogTitle=nt,exports.AlertDialogTrigger=Ke,exports.AnimatedSearchInput=xo,exports.AnimatedTabs=function({tabs:r,className:n="",tabListClassName:a="",tabClassName:o="",tabPanelClassName:s="",containerClassName:i="",tabListProps:l={},defaultSelectedId:c}){const d=r.map(((e,t)=>e.id||`tab-${t}`)),u=c||d[0],p=t.useRef(null);return t.useEffect((()=>{const e=p.current;if(!e)return;const t=()=>{const t=e.querySelector('[data-state="active"]');t&&(e.style.setProperty("--tab-left",`${t.offsetLeft}px`),e.style.setProperty("--tab-width",`${t.offsetWidth}px`))};t();const r=new MutationObserver(t);return r.observe(e,{attributes:!0,subtree:!0,attributeFilter:["data-state"]}),()=>r.disconnect()}),[r]),e.jsx("div",{className:`w-full ${n}`,children:e.jsxs(A.TabProvider,{defaultSelectedId:u,children:[e.jsx(A.TabList,{ref:p,"aria-label":"Tabs",className:`animated-tab-list flex py-1 ${a}`,...l,children:r.map(((t,r)=>e.jsx(Ue,{id:d[r],disabled:t.disabled,className:o,"data-state":d[r]===u?"active":"inactive",children:t.label},d[r])))}),e.jsx("div",{className:Fe("animated-panels relative flex w-full flex-col items-center overflow-hidden p-0",i),children:r.map(((t,r)=>e.jsx(Ge,{id:`panel-${d[r]}`,tabId:d[r],className:s,children:t.content},`panel-${d[r]}`)))})]})})},exports.AnthropicIcon=function({size:t=25,className:r=""}){return e.jsxs("svg",{viewBox:"0 0 24 16",overflow:"visible",width:t,height:t,className:Fe("fill-current text-black",r),children:[e.jsx("g",{style:{transform:"translateX(13px) rotateZ(0deg)",transformOrigin:"4.775px 7.73501px"},children:e.jsx("path",{shapeRendering:"geometricPrecision",fillOpacity:"1",d:" M0,0 C0,0 6.1677093505859375,15.470022201538086 6.1677093505859375,15.470022201538086 C6.1677093505859375,15.470022201538086 9.550004005432129,15.470022201538086 9.550004005432129,15.470022201538086 C9.550004005432129,15.470022201538086 3.382294178009033,0 3.382294178009033,0 C3.382294178009033,0 0,0 0,0 C0,0 0,0 0,0z"})}),e.jsx("g",{style:{transform:"none",transformOrigin:"7.935px 7.73501px"},opacity:"1",children:e.jsx("path",{shapeRendering:"geometricPrecision",fillOpacity:"1",d:" M5.824605464935303,9.348296165466309 C5.824605464935303,9.348296165466309 7.93500280380249,3.911694288253784 7.93500280380249,3.911694288253784 C7.93500280380249,3.911694288253784 10.045400619506836,9.348296165466309 10.045400619506836,9.348296165466309 C10.045400619506836,9.348296165466309 5.824605464935303,9.348296165466309 5.824605464935303,9.348296165466309 C5.824605464935303,9.348296165466309 5.824605464935303,9.348296165466309 5.824605464935303,9.348296165466309z M6.166755199432373,0 C6.166755199432373,0 0,15.470022201538086 0,15.470022201538086 C0,15.470022201538086 3.4480772018432617,15.470022201538086 3.4480772018432617,15.470022201538086 C3.4480772018432617,15.470022201538086 4.709278583526611,12.22130012512207 4.709278583526611,12.22130012512207 C4.709278583526611,12.22130012512207 11.16093635559082,12.22130012512207 11.16093635559082,12.22130012512207 C11.16093635559082,12.22130012512207 12.421928405761719,15.470022201538086 12.421928405761719,15.470022201538086 C12.421928405761719,15.470022201538086 15.87000560760498,15.470022201538086 15.87000560760498,15.470022201538086 C15.87000560760498,15.470022201538086 9.703250885009766,0 9.703250885009766,0 C9.703250885009766,0 6.166755199432373,0 6.166755199432373,0 C6.166755199432373,0 6.166755199432373,0 6.166755199432373,0z"})})]})},exports.AnthropicMinimalIcon=function(){return e.jsx("svg",{stroke:"currentColor",fill:"none",strokeWidth:"1",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"m17.304 3.5472h-3.6718l6.6959 16.906h3.6718zm-10.608 0-6.6959 16.906h3.7442l1.3693-3.5502h7.0052l1.3693 3.5502h3.7442l-6.6959-16.906zm-0.37114 10.216 2.2914-5.9413 2.2914 5.9413z"})})},exports.AppleIcon=function(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 814 1000",id:"apple",className:"h-6 w-6",children:e.jsx("path",{d:"M788.1 340.9c-5.8 4.5-108.2 62.2-108.2 190.5 0 148.4 130.3 200.9 134.2 202.2-.6 3.2-20.7 71.9-68.7 141.9-42.8 61.6-87.5 123.1-155.5 123.1s-85.5-39.5-164-39.5c-76.5 0-103.7 40.8-165.9 40.8s-105.6-57-155.5-127C46.7 790.7 0 663 0 541.8c0-194.4 126.4-297.5 250.8-297.5 66.1 0 121.2 43.4 162.7 43.4 39.5 0 101.1-46 176.3-46 28.5 0 130.9 2.6 198.3 99.2zm-234-181.5c31.1-36.9 53.1-88.1 53.1-139.3 0-7.1-.6-14.3-1.9-20.1-50.6 1.9-110.8 33.7-147.1 75.8-28.5 32.4-55.1 83.6-55.1 135.5 0 7.8 1.3 15.6 1.9 18.1 3.2.6 8.4 1.3 13.6 1.3 45.4 0 102.5-30.4 135.5-71.3z",fill:"currentColor"})})},exports.ArchiveIcon=function({className:t="icon-md"}){return e.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.62188 3.07918C3.87597 2.571 4.39537 2.25 4.96353 2.25H13.0365C13.6046 2.25 14.124 2.571 14.3781 3.07918L15.75 5.82295V13.5C15.75 14.7426 14.7426 15.75 13.5 15.75H4.5C3.25736 15.75 2.25 14.7426 2.25 13.5V5.82295L3.62188 3.07918ZM13.0365 3.75H4.96353L4.21353 5.25H13.7865L13.0365 3.75ZM14.25 6.75H3.75V13.5C3.75 13.9142 4.08579 14.25 4.5 14.25H13.5C13.9142 14.25 14.25 13.9142 14.25 13.5V6.75ZM6.75 9C6.75 8.58579 7.08579 8.25 7.5 8.25H10.5C10.9142 8.25 11.25 8.58579 11.25 9C11.25 9.41421 10.9142 9.75 10.5 9.75H7.5C7.08579 9.75 6.75 9.41421 6.75 9Z",fill:"currentColor"})})},exports.AssistantIcon=function({className:t="",size:r="1em"}){const n=r,a=r;return e.jsxs("svg",{width:a,height:n,viewBox:"0 0 24 24",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:Fe("text-token-secondary h-2/3 w-2/3",t),xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"}),e.jsx("polyline",{points:"3.27 6.96 12 12.01 20.73 6.96"}),e.jsx("line",{x1:"12",y1:"22.08",x2:"12",y2:"12"})]})},exports.AttachmentIcon=function({className:t=""}){return e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 7C9 4.23858 11.2386 2 14 2C16.7614 2 19 4.23858 19 7V15C19 18.866 15.866 22 12 22C8.13401 22 5 18.866 5 15V9C5 8.44772 5.44772 8 6 8C6.55228 8 7 8.44772 7 9V15C7 17.7614 9.23858 20 12 20C14.7614 20 17 17.7614 17 15V7C17 5.34315 15.6569 4 14 4C12.3431 4 11 5.34315 11 7V15C11 15.5523 11.4477 16 12 16C12.5523 16 13 15.5523 13 15V9C13 8.44772 13.4477 8 14 8C14.5523 8 15 8.44772 15 9V15C15 16.6569 13.6569 18 12 18C10.3431 18 9 16.6569 9 15V7Z",fill:"currentColor"})})},exports.AzureMinimalIcon=function({size:t=25,className:r="h-4 w-4"}){const n=t,a=t;return e.jsxs("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:Fe(r,""),width:a,height:n,xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"m8.0458 0.81981a1.1197 1.1197 0 0 0-1.0608 0.76184l-6.7912 20.123a1.1178 1.1178 0 0 0 1.0592 1.4751h5.4647a1.1197 1.1197 0 0 0 1.0608-0.7615l1.3528-4.0084-2.3684-2.2107a0.51536 0.51536 0 0 1 0.35193-0.8923h3.0639l1.8213-5.3966-2.8111-8.3294a1.1181 1.1181 0 0 0-1.0595-0.76049h-0.0836z"}),e.jsx("path",{d:"m7.1147 15.307a0.51536 0.51536 0 0 0-0.35193 0.8923l7.1552 6.6782a1.1248 1.1248 0 0 0 0.76724 0.30238h0.2417a1.1181 1.1181 0 0 0 1.0534-1.4755l-2.1591-6.3974z"}),e.jsx("path",{d:"m17.015 1.5807a1.1178 1.1178 0 0 0-1.0593-0.76049h-7.8258a1.1181 1.1181 0 0 1 1.0593 0.76049l6.7916 20.123a1.1181 1.1181 0 0 1-1.0593 1.4757h7.8261a1.1181 1.1181 0 0 0 1.059-1.4757z"})]})},exports.Badge=function({icon:t,label:r,id:n,isActive:a=!1,isEditing:o=!1,isDragging:s=!1,isAvailable:i=!0,isInChat:l=!1,onBadgeAction:c,onToggle:d,className:u,...p}){const g=o&&i,m="1"===n&&l;return e.jsxs(y.motion.button,{onClick:e=>{if(m)return e.preventDefault(),void e.stopPropagation();!o&&d&&(e.preventDefault(),e.stopPropagation(),d())},className:Fe("group relative inline-flex items-center gap-1.5 rounded-full px-4 py-1.5","border border-border-medium text-sm font-medium transition-shadow md:w-full","size-9 p-2 md:p-3",a?"bg-surface-active shadow-md":"bg-surface-chat shadow-sm hover:bg-surface-hover hover:shadow-md","active:scale-95 active:shadow-inner",g&&"cursor-move",m&&"cursor-not-allowed opacity-50 hover:shadow-sm",u),animate:{scale:s?1.1:1,boxShadow:s?"0 10px 25px rgba(0,0,0,0.1)":void 0},whileTap:{scale:s?1.1:m?1:.97},transition:{type:"tween",duration:.1,ease:"easeOut"},...p,children:[t&&e.jsx(t,{className:Fe("relative h-5 w-5 md:h-4 md:w-4",!r&&"mx-auto")}),e.jsx("span",{className:"relative hidden md:inline",children:r}),o&&!s&&e.jsx(y.motion.button,{className:"absolute -right-1 -top-1 flex h-6 w-6 items-center justify-center rounded-full bg-surface-secondary-alt text-text-primary shadow-sm md:h-5 md:w-5",initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},whileTap:{scale:.9},onMouseDown:e=>e.stopPropagation(),onClick:e=>{e.stopPropagation(),c?.()},children:i?e.jsx(Nt,{className:"h-3 w-3"}):e.jsx(yt,{className:"h-3 w-3"})})]})},exports.BedrockIcon=function({size:t=25,className:r=""}){return e.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:Fe("fill-current text-black",r),children:e.jsx("g",{fill:"currentColor",children:e.jsx("path",{d:"M12,18.1397014 L9.574,18.9487014 L8.628,18.3177014 L9.658,17.9737014 L9.342,17.0257014 L7.574,17.6147014 L7,17.2327014 L7,14.4997014 C7,14.3107014 6.893,14.1377014 6.724,14.0527014 L5,13.1907014 L5,10.8087014 L6.5,10.0587014 L8,10.8087014 L8,12.4997014 C8,12.6897014 8.107,12.8627014 8.276,12.9477014 L10.276,13.9477014 L10.724,13.0527014 L9,12.1907014 L9,10.8087014 L10.724,9.94770136 C10.893,9.86270136 11,9.68970136 11,9.49970136 L11,7.99970136 L10,7.99970136 L10,9.19070136 L8.5,9.94070136 L7,9.19070136 L7,6.76770136 L8,6.10070136 L8,7.99970136 L9,7.99970136 L9,5.43470136 L9.574,5.05170136 L12,5.86070136 L12,18.1397014 Z M17.5,16.9997014 C17.775,16.9997014 18,17.2237014 18,17.4997014 C18,17.7757014 17.775,17.9997014 17.5,17.9997014 C17.225,17.9997014 17,17.7757014 17,17.4997014 C17,17.2237014 17.225,16.9997014 17.5,16.9997014 L17.5,16.9997014 Z M16.5,5.99970136 C16.775,5.99970136 17,6.22370136 17,6.49970136 C17,6.77570136 16.775,6.99970136 16.5,6.99970136 C16.225,6.99970136 16,6.77570136 16,6.49970136 C16,6.22370136 16.225,5.99970136 16.5,5.99970136 L16.5,5.99970136 Z M18.5,11.9997014 C18.775,11.9997014 19,12.2237014 19,12.4997014 C19,12.7757014 18.775,12.9997014 18.5,12.9997014 C18.225,12.9997014 18,12.7757014 18,12.4997014 C18,12.2237014 18.225,11.9997014 18.5,11.9997014 L18.5,11.9997014 Z M17.092,12.9997014 C17.299,13.5807014 17.849,13.9997014 18.5,13.9997014 C19.327,13.9997014 20,13.3277014 20,12.4997014 C20,11.6727014 19.327,10.9997014 18.5,10.9997014 C17.849,10.9997014 17.299,11.4197014 17.092,11.9997014 L13,11.9997014 L13,9.99970136 L16.5,9.99970136 C16.776,9.99970136 17,9.77670136 17,9.49970136 L17,7.90770136 C17.581,7.70070136 18,7.15070136 18,6.49970136 C18,5.67270136 17.327,4.99970136 16.5,4.99970136 C15.673,4.99970136 15,5.67270136 15,6.49970136 C15,7.15070136 15.419,7.70070136 16,7.90770136 L16,8.99970136 L13,8.99970136 L13,5.49970136 C13,5.28470136 12.862,5.09370136 12.658,5.02570136 L9.658,4.02570136 C9.511,3.97670136 9.351,3.99870136 9.223,4.08370136 L6.223,6.08370136 C6.084,6.17670136 6,6.33270136 6,6.49970136 L6,9.19070136 L4.276,10.0527014 C4.107,10.1377014 4,10.3107014 4,10.4997014 L4,13.4997014 C4,13.6897014 4.107,13.8627014 4.276,13.9477014 L6,14.8087014 L6,17.4997014 C6,17.6667014 6.084,17.8237014 6.223,17.9157014 L9.223,19.9157014 C9.306,19.9717014 9.402,19.9997014 9.5,19.9997014 C9.553,19.9997014 9.606,19.9917014 9.658,19.9737014 L12.658,18.9737014 C12.862,18.9067014 13,18.7157014 13,18.4997014 L13,15.9997014 L15.293,15.9997014 L16.146,16.8537014 L16.159,16.8407014 C16.061,17.0407014 16,17.2627014 16,17.4997014 C16,18.3267014 16.673,18.9997014 17.5,18.9997014 C18.327,18.9997014 19,18.3267014 19,17.4997014 C19,16.6727014 18.327,15.9997014 17.5,15.9997014 C17.262,15.9997014 17.04,16.0607014 16.841,16.1597014 L16.854,16.1467014 L15.854,15.1467014 C15.76,15.0527014 15.633,14.9997014 15.5,14.9997014 L13,14.9997014 L13,12.9997014 L17.092,12.9997014 Z"})})})},exports.BirthdayIcon=function({className:t=""}){return e.jsxs("svg",{version:"1.1",viewBox:"0 0 233.33 290",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",className:Fe("h-9 w-9",t),children:[e.jsx("defs",{children:e.jsxs("linearGradient",{id:"linearGradient1842",x1:"163.92",x2:"173.66",y1:"22.212",y2:"-6.5784",gradientTransform:"translate(.10391 .050143)",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#640a62",offset:"0"}),e.jsx("stop",{stopColor:"#852283",offset:".49917"}),e.jsx("stop",{stopColor:"#640a62",offset:"1"})]})}),e.jsxs("g",{children:[e.jsx("path",{transform:"matrix(.43416 .90084 -.89966 .4366 0 0)",d:"m259.29-126.03a232.2 237.56 0 0 1-17.412 231.34l-193.32-131.59z",fill:"url(#linearGradient1842)"}),e.jsx("path",{transform:"matrix(.6967 .051926 -.051926 .6967 35.578 23.196)",d:"m50.818 31.415c-1.4654 2.4749-10.838 2.4195-12.997 4.3204-2.1584 1.9009-3.288 11.206-5.9282 12.347-2.6402 1.1409-10.191-4.4132-13.054-4.1441-2.8636 0.26917-9.2466 7.133-12.053 6.5041-2.8066-0.62889-5.6503-9.5602-8.1252-11.026-2.4749-1.4654-11.673 0.33572-13.574-1.8227s1.0482-11.056-0.0927-13.696c-1.1409-2.6402-9.6412-6.5898-9.9104-9.4533-0.26917-2.8636 7.3463-8.328 7.9752-11.135 0.62889-2.8066-3.9265-10.998-2.4612-13.473 1.4654-2.4749 10.838-2.4195 12.997-4.3204 2.1584-1.9009 3.288-11.206 5.9282-12.347 2.6402-1.1409 10.191 4.4132 13.054 4.1441 2.8636-0.26917 9.2466-7.133 12.053-6.5041 2.8066 0.62889 5.6503 9.5602 8.1252 11.026s11.673-0.33572 13.574 1.8227c1.9009 2.1584-1.0482 11.056 0.0927 13.696 1.1409 2.6402 9.6412 6.5898 9.9104 9.4533 0.26917 2.8635-7.3463 8.328-7.9752 11.135-0.62889 2.8066 3.9265 10.998 2.4612 13.473z",fill:"#ff9d78",stroke:"#f29472",strokeWidth:"4.7877"}),e.jsx("circle",{cx:"170.36",cy:"215.76",r:"12.903",fill:"#cfffff"}),e.jsx("path",{d:"m220.77 174.77c-88.526 101.03-191.21 85.731-209.5 82.142-2.2101-2e-5 -2.6686 0.42426-3.437 2.0021l-1.7042 7.5028c0.056197 2.3603 0.37544 2.6428 1.9121 3.5409 18.396 3.3746 130.27 19.488 223.46-86.881 0.64011-1.5095 0.46653-3.1324-0.59137-4.7337l-5.1558-3.6482c-1.586-0.8743-3.9524-0.94332-4.9837 0.0751z",color:"#000000",fill:"#ff9d78",stroke:"#f29472",strokeLinejoin:"round",strokeWidth:"2.8913"}),e.jsxs("g",{fill:"#cfffff",children:[e.jsx("circle",{cx:"72.684",cy:"99.47",r:"12.903"}),e.jsx("circle",{cx:"99.144",cy:"172.32",r:"12.903"}),e.jsx("circle",{cx:"59.617",cy:"214.78",r:"12.903"}),e.jsx("circle",{cx:"135.4",cy:"118.42",r:"12.903"}),e.jsx("path",{transform:"rotate(38.66)",d:"m254.21-1.9608a12.903 12.903 0 0 1-6.4852 11.194 12.903 12.903 0 0 1-12.937-0.0582 12.903 12.903 0 0 1-6.3843-11.252l12.903 0.1161z"}),e.jsx("path",{d:"m29.476 158.16a12.903 12.903 0 0 0-3.6562 0.5293l-3.3691 23.189a12.903 12.903 0 0 0 7.0254 2.0879 12.903 12.903 0 0 0 12.904-12.904 12.903 12.903 0 0 0-12.904-12.902z"})]})]})]})},exports.Blocks=function({className:t=""}){return e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",className:Fe("lucide lucide-blocks",t),children:[e.jsx("rect",{width:"7",height:"7",x:"14",y:"3",rx:"1"}),e.jsx("path",{d:"M10 21V8a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1H3"})]})},exports.Breadcrumb=jt,exports.BreadcrumbEllipsis=Rt,exports.BreadcrumbItem=Lt,exports.BreadcrumbLink=Mt,exports.BreadcrumbList=St,exports.BreadcrumbPage=zt,exports.BreadcrumbSeparator=It,exports.Button=Vt,exports.ChatGPTMinimalIcon=function(){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",className:"lucide lucide-bot",children:[e.jsx("rect",{width:"18",height:"10",x:"3",y:"11",rx:"2"}),e.jsx("circle",{cx:"12",cy:"5",r:"2"}),e.jsx("path",{d:"M12 7v4"}),e.jsx("line",{x1:"8",x2:"8",y1:"16",y2:"16"}),e.jsx("line",{x1:"16",x2:"16",y1:"16",y2:"16"})]})},exports.CheckMark=yo,exports.Checkbox=Dt,exports.CheckboxButton=Oo,exports.CircleHelpIcon=function({className:t="icon-md-heavy",size:r="1em"}){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",height:r,width:r,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:Fe(t),children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),e.jsx("path",{d:"M12 17h.01"})]})},exports.Clipboard=function({className:t="icon-md-heavy",size:r="1em"}){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:r,width:r,fill:"none",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:Fe(t),children:e.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 5a3 3 0 0 1 3-3h9a3 3 0 0 1 3 3v9a3 3 0 0 1-3 3h-2v2a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3v-9a3 3 0 0 1 3-3h2zm2 2h5a3 3 0 0 1 3 3v5h2a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1h-9a1 1 0 0 0-1 1zM5 9a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1h9a1 1 0 0 0 1-1v-9a1 1 0 0 0-1-1z",clipRule:"evenodd"})})},exports.CodeyIcon=function({size:t=25,className:r=""}){return e.jsx("svg",{width:t,height:t,className:Fe("dark:fill-white",r),viewBox:"0 0 18 18",preserveAspectRatio:"xMidYMid meet",focusable:"false",children:e.jsx("path",{d:"M2 4.006C2 2.898 2.897 2 4.006 2h9.988C15.102 2 16 2.897 16 4.006v9.988A2.005 2.005 0 0 1 13.994 16H4.006A2.005 2.005 0 0 1 2 13.994V4.006zM13.992 9l.003-.003L10.997 6 9.75 7.247 11.503 9 9.75 10.753 10.997 12l2.997-2.997L13.992 9zm-9.99 0L4 8.997 6.997 6l1.247 1.247L6.492 9l1.753 1.753L6.997 12 4 9.003 4.003 9z",fillRule:"evenodd"})})},exports.Collapsible=Ht,exports.CollapsibleContent=Ft,exports.CollapsibleTrigger=Bt,exports.Combobox=function({selectedValue:r,displayValue:o,items:s,setValue:i,ariaLabel:l,searchPlaceholder:c,selectPlaceholder:d,isCollapsed:u,SelectIcon:p}){const g=(s??[]).map((e=>"string"==typeof e?{label:e,value:e}:e)),{open:m,setOpen:f,setSearchValue:h,matches:w}=Mr({value:r,options:g});return e.jsx(G.Root,{value:r,onValueChange:i,open:m,onOpenChange:()=>{!0!==m?setTimeout((()=>{f(!m)}),75):f(!1)},children:e.jsxs(a.ComboboxProvider,{open:m,setOpen:f,resetValueOnHide:!0,includesBaseElement:!1,setValue:e=>{t.startTransition((()=>{h(e)}))},children:[e.jsx(po,{"aria-label":l,className:Fe("flex items-center gap-2 [&>span]:line-clamp-1 [&>span]:flex [&>span]:w-full [&>span]:items-center [&>span]:gap-1 [&>span]:truncate [&_svg]:h-4 [&_svg]:w-4 [&_svg]:shrink-0",u?"flex h-9 w-9 shrink-0 items-center justify-center p-0 [&>span]:w-auto [&>svg]:hidden":"","bg-white text-black hover:bg-gray-50 focus-visible:ring-2 focus-visible:ring-gray-500 dark:bg-gray-850 dark:text-white"),children:e.jsxs(uo,{placeholder:d,children:[e.jsx("div",{className:"assistant-item flex items-center justify-center overflow-hidden rounded-full",children:p||e.jsx(n.ChevronDownIcon,{})}),e.jsx("span",{className:Fe("ml-2",u?"hidden":""),style:{userSelect:"none"},children:r?o??r:d&&d})]})}),e.jsx(G.Portal,{children:e.jsxs(G.Content,{role:"dialog","aria-label":l+"s",position:"popper",className:Fe("bg-popover text-popover-foreground relative z-50 max-h-[52vh] min-w-[8rem] overflow-hidden rounded-md border border-gray-200 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 dark:border-gray-600","data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1","bg-white dark:bg-gray-700"),children:[e.jsxs(G.Viewport,{className:"mb-5 h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]",children:[e.jsxs("div",{className:"group sticky left-0 top-0 z-10 flex h-12 items-center gap-2 bg-white px-2 px-3 py-2 text-black duration-300 dark:bg-gray-700 dark:text-white",children:[e.jsx(kt,{className:"h-4 w-4 text-gray-500 transition-colors duration-300 dark:group-focus-within:text-gray-300 dark:group-hover:text-gray-300"}),e.jsx(a.Combobox,{autoSelect:!0,placeholder:c,className:"flex-1 rounded-md border-none bg-transparent px-2.5 py-2 text-sm focus:outline-none focus:ring-1 focus:ring-gray-700/10 dark:focus:ring-gray-200/10",onBlurCapture:e=>{e.preventDefault(),e.stopPropagation()}}),e.jsx(a.ComboboxCancel,{hideWhenEmpty:!0,className:"relative flex h-5 w-5 items-center justify-end text-gray-500 transition-colors duration-300 dark:group-focus-within:text-gray-300 dark:group-hover:text-gray-300"})]}),e.jsx(a.ComboboxList,{className:"overflow-y-auto p-1 py-2",children:w.map((({label:t,value:r,icon:o})=>e.jsx(G.Item,{value:`${r??""}`,asChild:!0,children:e.jsxs(a.ComboboxItem,{className:Fe("relative flex w-full cursor-pointer 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","rounded-lg hover:bg-gray-100/50 hover:bg-gray-50 dark:text-white dark:hover:bg-gray-600"),onTouchEnd:()=>{i(`${r??""}`),f(!1)},children:[e.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(G.ItemIndicator,{children:e.jsx(n.CheckIcon,{className:"h-4 w-4"})})}),e.jsx(G.ItemText,{children:e.jsxs("div",{className:"flex items-center justify-center gap-3 dark:text-white [&_svg]:h-4 [&_svg]:w-4 [&_svg]:shrink-0 [&_svg]:text-foreground",children:[e.jsx("div",{className:"assistant-item overflow-hidden rounded-full",children:o&&o}),t]})})]})},r)))})]}),e.jsx(mo,{className:"absolute bottom-0 left-0 right-0"})]})})]})})},exports.ContinueIcon=function({className:t=""}){return e.jsxs("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:Fe("h-3 w-3 -rotate-180",t),height:"19",width:"19",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("polygon",{points:"11 19 2 12 11 5 11 19"}),e.jsx("polygon",{points:"22 19 13 12 22 5 22 19"})]})},exports.ControlCombobox=Do,exports.CrossIcon=function({className:t=""}){return e.jsxs("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:Fe(t,"h-4 w-4"),height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})},exports.CustomMinimalIcon=function({size:t=25,className:r=""}){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:Fe("lucide lucide-bot",r),children:[e.jsx("path",{d:"M12 8V4H8"}),e.jsx("rect",{width:"16",height:"12",x:"4",y:"8",rx:"2"}),e.jsx("path",{d:"M2 14h2"}),e.jsx("path",{d:"M20 14h2"}),e.jsx("path",{d:"M15 13v2"}),e.jsx("path",{d:"M9 13v2"})]})},exports.DataIcon=function({className:t="icon-sm"}){return e.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.00633 5.5C6.02321 5.53319 6.07042 5.60366 6.19525 5.70906C6.42458 5.9027 6.81573 6.12215 7.38659 6.32603C8.5196 6.73067 10.1506 7 12 7C13.8494 7 15.4804 6.73067 16.6134 6.32603C17.1843 6.12215 17.5754 5.9027 17.8048 5.70906C17.9296 5.60366 17.9768 5.53319 17.9937 5.5C17.9768 5.46681 17.9296 5.39634 17.8048 5.29094C17.5754 5.0973 17.1843 4.87785 16.6134 4.67397C15.4804 4.26933 13.8494 4 12 4C10.1506 4 8.5196 4.26933 7.38659 4.67397C6.81573 4.87785 6.42458 5.0973 6.19525 5.29094C6.07042 5.39634 6.02321 5.46681 6.00633 5.5ZM18 7.91726C17.7726 8.02403 17.5333 8.12123 17.2861 8.20951C15.8856 8.70968 14.0166 9 12 9C9.98341 9 8.1144 8.70968 6.71392 8.20951C6.46674 8.12123 6.22738 8.02403 6 7.91726V11.9866C6.00813 12.0073 6.03931 12.0661 6.14259 12.1624C6.31976 12.3277 6.63181 12.5252 7.10609 12.7189C8.04837 13.1039 9.43027 13.3932 11.051 13.476C11.6026 13.5042 12.0269 13.9741 11.9987 14.5257C11.9705 15.0773 11.5005 15.5016 10.949 15.4734C9.17744 15.3829 7.55934 15.0646 6.34969 14.5704C6.23097 14.5219 6.11419 14.4709 6 14.4173V18.4866C6.00813 18.5073 6.03931 18.5661 6.14259 18.6624C6.31976 18.8277 6.63181 19.0252 7.10609 19.2189C8.04837 19.6039 9.43027 19.8932 11.051 19.976C11.6026 20.0042 12.0269 20.4741 11.9987 21.0257C11.9705 21.5773 11.5005 22.0016 10.949 21.9734C9.17744 21.8829 7.55934 21.5646 6.34969 21.0704C5.74801 20.8246 5.19611 20.5146 4.77833 20.1249C4.35948 19.7341 4 19.1866 4 18.5V5.5C4 4.74631 4.43048 4.16346 4.90494 3.76283C5.38405 3.35829 6.01803 3.03902 6.71392 2.79049C8.1144 2.29032 9.98341 2 12 2C14.0166 2 15.8856 2.29032 17.2861 2.79049C17.982 3.03902 18.616 3.35829 19.0951 3.76283C19.5695 4.16346 20 4.74631 20 5.5V10C20 10.5523 19.5523 11 19 11C18.4477 11 18 10.5523 18 10V7.91726ZM17.5 13C18.0523 13 18.5 13.4477 18.5 14V14.6707C18.851 14.7948 19.172 14.9823 19.4492 15.2195L20.0308 14.8837C20.5091 14.6075 21.1207 14.7714 21.3968 15.2497C21.673 15.728 21.5091 16.3396 21.0308 16.6157L20.4499 16.9511C20.4828 17.1291 20.5 17.3125 20.5 17.5C20.5 17.6873 20.4828 17.8707 20.45 18.0485L21.0308 18.3838C21.5091 18.6599 21.6729 19.2715 21.3968 19.7498C21.1206 20.2281 20.5091 20.392 20.0308 20.1158L19.4495 19.7803C19.1722 20.0176 18.8511 20.2052 18.5 20.3293V21C18.5 21.5523 18.0523 22 17.5 22C16.9477 22 16.5 21.5523 16.5 21V20.3293C16.1489 20.2052 15.8277 20.0176 15.5504 19.7802L14.969 20.1159C14.4907 20.392 13.8791 20.2282 13.603 19.7499C13.3269 19.2716 13.4907 18.66 13.969 18.3839L14.55 18.0484C14.5172 17.8706 14.5 17.6873 14.5 17.5C14.5 17.3127 14.5172 17.1294 14.55 16.9515L13.9691 16.6161C13.4908 16.34 13.3269 15.7284 13.6031 15.2501C13.8792 14.7718 14.4908 14.608 14.9691 14.8841L15.5504 15.2197C15.8278 14.9824 16.1489 14.7948 16.5 14.6707V14C16.5 13.4477 16.9477 13 17.5 13ZM16.624 17.0174C16.6274 17.0117 16.6308 17.0059 16.6342 17.0001C16.6374 16.9946 16.6405 16.989 16.6436 16.9834C16.8187 16.6937 17.1367 16.5 17.5 16.5C17.8645 16.5 18.1835 16.6951 18.3583 16.9865C18.3607 16.9909 18.3632 16.9953 18.3658 16.9997C18.3685 17.0044 18.3713 17.0091 18.3741 17.0138C18.4543 17.1577 18.5 17.3235 18.5 17.5C18.5 17.6737 18.4557 17.8371 18.3778 17.9794C18.3737 17.9861 18.3697 17.9929 18.3657 17.9998C18.3619 18.0064 18.3581 18.0131 18.3545 18.0198C18.1789 18.3077 17.8619 18.5 17.5 18.5C17.1362 18.5 16.8178 18.3058 16.6428 18.0154C16.64 18.0102 16.6371 18.005 16.6341 17.9999C16.631 17.9945 16.6278 17.9891 16.6246 17.9838C16.5452 17.8404 16.5 17.6755 16.5 17.5C16.5 17.325 16.545 17.1605 16.624 17.0174Z",fill:"currentColor"})})},exports.DataTable=function({columns:r,data:n,onDelete:a,filterColumn:o,defaultSort:s=[],className:i="",isFetchingNextPage:l=!1,hasNextPage:c=!1,fetchNextPage:d,enableRowSelection:u=!0,showCheckboxes:p=!0,onFilterChange:g,filterValue:m,isLoading:f,enableSearch:h=!0}){const w=Ir("(max-width: 768px)"),x=t.useRef(null),[b,v]=t.useState(!1),[y,k]=t.useState({}),[C,N]=t.useState(s),[j,S]=t.useState([]),[z,I]=t.useState({}),[R,E]=t.useState(m??""),[T,A]=t.useState(!1),O=t.useMemo((()=>{if(!u||!p)return r;const t={id:"select",header:({table:t})=>e.jsx("div",{className:"flex h-full w-[30px] items-center justify-center",children:e.jsx(Dt,{checked:t.getIsAllPageRowsSelected(),onCheckedChange:e=>t.toggleAllPageRowsSelected(Boolean(e)),"aria-label":"Select all"})}),cell:({row:t})=>e.jsx(Co,{checked:t.getIsSelected(),onChange:e=>t.toggleSelected(e),ariaLabel:"Select row"}),meta:{size:"50px"}};return[t,...r]}),[r,u,p]),P=M.useReactTable({data:n,columns:O,getCoreRowModel:M.getCoreRowModel(),getSortedRowModel:M.getSortedRowModel(),getFilteredRowModel:M.getFilteredRowModel(),enableRowSelection:u,enableMultiRowSelection:!0,state:{sorting:C,columnFilters:j,columnVisibility:z,rowSelection:y},onSortingChange:N,onColumnFiltersChange:S,onColumnVisibilityChange:I,onRowSelectionChange:k}),{rows:V}=P.getRowModel(),D=L.useVirtualizer({count:V.length,getScrollElement:()=>x.current,estimateSize:t.useCallback((()=>48),[]),overscan:10}),H=D.getVirtualItems(),B=D.getTotalSize(),F=H.length>0?H[0].start:0,W=H.length>0?B-H[H.length-1].end:0;t.useEffect((()=>{const e=x.current;if(!e)return;const t=async()=>{if(!c||l)return;const{scrollTop:t,scrollHeight:r,clientHeight:n}=e;if(r-t<=1.5*n)try{await(d?.())}catch(e){console.error("Unable to fetch next page:",e)}};return e.addEventListener("scroll",t,{passive:!0}),()=>e.removeEventListener("scroll",t)}),[c,l,d]),t.useEffect((()=>{A(!0);const e=setTimeout((()=>{g?.(R),A(!1)}),300);return()=>clearTimeout(e)}),[R,g]);const Z=t.useCallback((async()=>{if(a){v(!0);try{const e=P.getFilteredSelectedRowModel().rows.map((e=>e.original));await a(e),k({})}finally{v(!1)}}}),[a,P]),X=Array.from({length:13},((t,r)=>{const n=Math.floor(241*Math.random())+170,a="select"===O[0]?.id?1:0;return e.jsx(Ca,{className:"motion-safe:animate-fadeIn border-b border-border-light",children:O.map(((t,r)=>{const o=jo(t,w),s=r===a;return e.jsx(ja,{className:"px-2 py-1 sm:px-4 sm:py-2",style:o,children:e.jsx(wa,{className:"h-6",style:s?{width:`${n}px`}:{width:"100%"}})},t.id)}))},r)}));return e.jsxs("div",{className:Fe("flex h-full flex-col gap-4",i),children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2 sm:gap-4",children:[u&&p&&e.jsx(So,{onDelete:Z,isDeleting:b,disabled:!P.getFilteredSelectedRowModel().rows.length||b,isSmallScreen:w}),void 0!==o&&P.getColumn(o)&&h&&e.jsx("div",{className:"relative flex-1",children:e.jsx(xo,{value:R,onChange:e=>E(e.target.value),isSearching:T,placeholder:"Search..."})})]}),e.jsx("div",{ref:x,className:Fe("relative h-[calc(100vh-20rem)] max-w-full overflow-x-auto overflow-y-auto rounded-md border border-black/10 dark:border-white/10","transition-all duration-300 ease-out",T&&"bg-surface-secondary/50",i),children:e.jsxs(ba,{className:"w-full min-w-[300px] table-fixed border-separate border-spacing-0",children:[e.jsx(va,{className:"sticky top-0 z-50 bg-surface-secondary",children:P.getHeaderGroups().map((t=>e.jsx(Ca,{className:"border-b border-border-light",children:t.headers.map((t=>e.jsx(Na,{className:"whitespace-nowrap bg-surface-secondary px-2 py-2 text-left text-sm font-medium text-text-secondary sm:px-4",style:jo(t.column.columnDef,w),onClick:t.column.getCanSort()?t.column.getToggleSortingHandler():void 0,children:t.isPlaceholder?null:M.flexRender(t.column.columnDef.header,t.getContext())},t.id)))},t.id)))}),e.jsxs(ya,{children:[F>0&&e.jsx("tr",{children:e.jsx("td",{style:{height:`${F}px`}})}),f&&X,H.map((t=>{const r=V[t.index];return e.jsx(No,{row:r,isSmallScreen:w,index:t.index,isSearching:T},r.id)})),!H.length&&e.jsx(Ca,{className:"hover:bg-transparent",children:e.jsx(ja,{colSpan:r.length,className:"p-4 text-center",children:"No data available"})}),W>0&&e.jsx("tr",{children:e.jsx("td",{style:{height:`${W}px`}})}),(l||c)&&e.jsx(Ca,{className:"hover:bg-transparent",children:e.jsx(ja,{colSpan:r.length,className:"p-4",children:e.jsx("div",{className:"flex h-full items-center justify-center",children:l?e.jsx(vo,{className:"size-4"}):c&&e.jsx("div",{className:"h-6"})})})})]})]})})]})},exports.DataTableColumnHeader=function({column:t,title:r,className:a=""}){return t.getCanSort()?e.jsx("div",{className:Fe("flex items-center space-x-2",a),children:e.jsxs(Wt,{children:[e.jsx(Zt,{asChild:!0,children:e.jsxs(Vt,{variant:"ghost",size:"sm",className:"-ml-3 h-8 data-[state=open]:bg-accent",children:[e.jsx("span",{children:r}),"desc"===t.getIsSorted()?e.jsx(n.ArrowDownIcon,{className:"ml-2 h-4 w-4"}):"asc"===t.getIsSorted()?e.jsx(n.ArrowUpIcon,{className:"ml-2 h-4 w-4"}):e.jsx(n.CaretSortIcon,{className:"ml-2 h-4 w-4"})]})}),e.jsxs(qt,{align:"start",className:"z-[1001]",children:[e.jsxs(Kt,{onClick:()=>t.toggleSorting(!1),children:[e.jsx(n.ArrowUpIcon,{className:"mr-2 h-3.5 w-3.5 text-muted-foreground/70"}),"Asc"]}),e.jsxs(Kt,{onClick:()=>t.toggleSorting(!0),children:[e.jsx(n.ArrowDownIcon,{className:"mr-2 h-3.5 w-3.5 text-muted-foreground/70"}),"Desc"]}),e.jsx(tr,{}),e.jsxs(Kt,{onClick:()=>t.toggleVisibility(!1),children:[e.jsx(n.EyeNoneIcon,{className:"mr-2 h-3.5 w-3.5 text-muted-foreground/70"}),"Hide"]})]})]})}):e.jsx("div",{className:Fe(a),children:r})},exports.DelayedRender=({delay:e,children:t})=>Rr(e)((()=>t)),exports.Dialog=Er,exports.DialogButton=Wr,exports.DialogClose=Fr,exports.DialogContent=Pr,exports.DialogDescription=Br,exports.DialogFooter=Dr,exports.DialogHeader=Vr,exports.DialogOverlay=ca,exports.DialogTemplate=Po,exports.DialogTitle=Hr,exports.DialogTrigger=Tr,exports.DiscordIcon=function(){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",id:"discord",className:"h-6 w-6",children:[e.jsx("circle",{cx:"512",cy:"512",r:"512",fill:"#5865f2"}),e.jsx("path",{fill:"#fff",d:"M689.43 349a422.21 422.21 0 0 0-104.22-32.32 1.58 1.58 0 0 0-1.68.79 294.11 294.11 0 0 0-13 26.66 389.78 389.78 0 0 0-117.05 0 269.75 269.75 0 0 0-13.18-26.66 1.64 1.64 0 0 0-1.68-.79A421 421 0 0 0 334.44 349a1.49 1.49 0 0 0-.69.59c-66.37 99.17-84.55 195.9-75.63 291.41a1.76 1.76 0 0 0 .67 1.2 424.58 424.58 0 0 0 127.85 64.63 1.66 1.66 0 0 0 1.8-.59 303.45 303.45 0 0 0 26.15-42.54 1.62 1.62 0 0 0-.89-2.25 279.6 279.6 0 0 1-39.94-19 1.64 1.64 0 0 1-.16-2.72c2.68-2 5.37-4.1 7.93-6.22a1.58 1.58 0 0 1 1.65-.22c83.79 38.26 174.51 38.26 257.31 0a1.58 1.58 0 0 1 1.68.2c2.56 2.11 5.25 4.23 8 6.24a1.64 1.64 0 0 1-.14 2.72 262.37 262.37 0 0 1-40 19 1.63 1.63 0 0 0-.87 2.28 340.72 340.72 0 0 0 26.13 42.52 1.62 1.62 0 0 0 1.8.61 423.17 423.17 0 0 0 128-64.63 1.64 1.64 0 0 0 .67-1.18c10.68-110.44-17.88-206.38-75.7-291.42a1.3 1.3 0 0 0-.63-.63zM427.09 582.85c-25.23 0-46-23.16-46-51.6s20.38-51.6 46-51.6c25.83 0 46.42 23.36 46 51.6.02 28.44-20.37 51.6-46 51.6zm170.13 0c-25.23 0-46-23.16-46-51.6s20.38-51.6 46-51.6c25.83 0 46.42 23.36 46 51.6.01 28.44-20.17 51.6-46 51.6z"})]})},exports.DotsIcon=function({className:t="h-4 w-4 flex-shrink-0 text-gray-500"}){return e.jsxs("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:t,height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("circle",{cx:"12",cy:"12",r:"1"}),e.jsx("circle",{cx:"19",cy:"12",r:"1"}),e.jsx("circle",{cx:"5",cy:"12",r:"1"})]})},exports.Dropdown=({value:t,label:r="",onChange:n,options:a,className:o="",sizeClasses:s,testId:i="dropdown-menu",icon:l,iconOnly:c=!1,renderValue:d,ariaLabel:u,portal:p=!0})=>{const g=q.useSelectStore({value:t,setValue:e=>{n(e)}}),m=e=>{if(null!=e&&""!==e)return a.filter((e=>!fo(e))).map((e=>"string"==typeof e?{value:e,label:e}:e)).find((t=>ho(t)&&t.value===e))};return e.jsxs("div",{className:Fe("relative",o),children:[e.jsxs(q.Select,{store:g,className:Fe("focus:ring-offset-ring-offset relative inline-flex items-center justify-between rounded-xl border border-input bg-background px-3 py-2 text-sm text-text-primary transition-all duration-200 ease-in-out hover:bg-accent hover:text-accent-foreground focus:ring-ring-primary",c?"h-full w-10":"w-fit gap-2",o),"data-testid":i,"aria-label":u,children:[e.jsxs("div",{className:"flex w-full items-center gap-2",children:[l,!c&&e.jsxs("span",{className:"block truncate",children:[r,(()=>{const e=m(t);return e&&d?d(e):(e=>{if(null==e||""===e)return"";const t=m(e);return t?t.label:e})(t)})()]})]}),!c&&e.jsx(q.SelectArrow,{})]}),e.jsx(q.SelectPopover,{portal:p,store:g,className:Fe("popover-ui",s,o,"max-h-[80vh] overflow-y-auto"),children:a.map(((r,n)=>{if(fo(r))return e.jsx("div",{className:"my-1 border-t border-border-heavy"},`divider-${n}`);const a="string"==typeof r?{value:r,label:r}:r;return ho(a)?e.jsx(q.SelectItem,{value:String(a.value),className:"select-item","data-theme":a.value,children:e.jsxs("div",{className:"flex w-full items-center gap-2",children:[null!=a.icon&&e.jsx("span",{children:a.icon}),e.jsx("span",{className:"block truncate",children:a.label}),t===a.value&&e.jsx("span",{className:"ml-auto pl-2",children:e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon-md block group-hover:hidden",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12ZM16.0755 7.93219C16.5272 8.25003 16.6356 8.87383 16.3178 9.32549L11.5678 16.0755C11.3931 16.3237 11.1152 16.4792 10.8123 16.4981C10.5093 16.517 10.2142 16.3973 10.0101 16.1727L7.51006 13.4227C7.13855 13.014 7.16867 12.3816 7.57733 12.0101C7.98598 11.6386 8.61843 11.6687 8.98994 12.0773L10.6504 13.9039L14.6822 8.17451C15 7.72284 15.6238 7.61436 16.0755 7.93219Z",fill:"currentColor"})})})]})},`option-${n}`):null}))})]})},exports.DropdownMenu=Wt,exports.DropdownMenuCheckboxItem=Qt,exports.DropdownMenuContent=qt,exports.DropdownMenuGroup=Xt,exports.DropdownMenuItem=Kt,exports.DropdownMenuLabel=er,exports.DropdownMenuPortal=Yt,exports.DropdownMenuRadioGroup=$t,exports.DropdownMenuRadioItem=Jt,exports.DropdownMenuSeparator=tr,exports.DropdownMenuShortcut=rr,exports.DropdownMenuSub=_t,exports.DropdownMenuSubContent=Gt,exports.DropdownMenuSubTrigger=Ut,exports.DropdownMenuTrigger=Zt,exports.DropdownPopup=({trigger:t,isOpen:r,setIsOpen:n,focusLoop:a,mountByState:o,...s})=>{const i=A.useMenuStore({open:r,setOpen:n,focusLoop:a});return o?e.jsxs(A.MenuProvider,{store:i,children:[t,r&&e.jsx(To,{...s})]}):e.jsxs(A.MenuProvider,{store:i,children:[t,e.jsx(To,{...s})]})},exports.EditIcon=bo,exports.ExperimentIcon=function(){return e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon-sm",children:[e.jsx("path",{d:"M9 3H15M9 3V9.2759C9 9.74377 8.83597 10.1968 8.53644 10.5563L4.85085 14.979C4.30108 15.6387 4 16.4703 4 17.3291V17.3291C4 19.3565 5.64353 21 7.67094 21H16.3291C18.3565 21 20 19.3565 20 17.3291V17.3291C20 16.4703 19.6989 15.6387 19.1492 14.979L15.4636 10.5563C15.164 10.1968 15 9.74377 15 9.2759V3M9 3H8M15 3H16",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M5 14.774C11.5 12.839 12.15 16.7089 18 14",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})},exports.FacebookIcon=function(){return e.jsxs("svg",{viewBox:"0 0 40 40",width:"25",height:"25",children:[e.jsxs("linearGradient",{id:"a",x1:-277.375,x2:-277.375,y1:406.602,y2:407.573,gradientTransform:"matrix(40 0 0 -39.7778 11115.001 16212.334)",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{offset:0,stopColor:"#0062e0"}),e.jsx("stop",{offset:1,stopColor:"#19afff"})]}),e.jsx("path",{fill:"url(#a)",d:"M16.7 39.8C7.2 38.1 0 29.9 0 20 0 9 9 0 20 0s20 9 20 20c0 9.9-7.2 18.1-16.7 19.8l-1.1-.9h-4.4l-1.1.9z"}),e.jsx("path",{fill:"#fff",d:"m27.8 25.6.9-5.6h-5.3v-3.9c0-1.6.6-2.8 3-2.8H29V8.2c-1.4-.2-3-.4-4.4-.4-4.6 0-7.8 2.8-7.8 7.8V20h-5v5.6h5v14.1c1.1.2 2.2.3 3.3.3 1.1 0 2.2-.1 3.3-.3V25.6h4.4z"})]})},exports.FileUpload=Ro,exports.FormInput=function({field:t,label:r,labelClass:n,inputClass:a,containerClass:o,labelAdjacent:s,placeholder:i="",type:l="string"}){return e.jsxs("div",{className:Fe("flex w-full flex-col items-center gap-2",o),children:[e.jsxs("div",{className:"flex w-full items-center justify-start gap-2",children:[e.jsx(aa,{htmlFor:`${t.name}-input`,className:Fe("text-left text-sm font-semibold text-text-primary",n),children:r}),s]}),e.jsx($r,{id:`${t.name}-input`,value:t.value??"",onChange:e=>{const r=e.target.value;"number"===l?""===r?t.onChange(r):isNaN(Number(r))||t.onChange(Number(r)):t.onChange(r)},placeholder:i,className:Fe("flex h-10 max-h-10 w-full resize-none border-none bg-surface-secondary px-3 py-2",a)})]})},exports.GPTIcon=function({size:t=25,className:r=""}){const n=t,a=t;return e.jsx("svg",{width:a,height:n,viewBox:"0 0 41 41",fill:"none",xmlns:"http://www.w3.org/2000/svg",strokeWidth:"1.5",className:Fe(r,""),children:e.jsx("path",{d:"M37.5324 16.8707C37.9808 15.5241 38.1363 14.0974 37.9886 12.6859C37.8409 11.2744 37.3934 9.91076 36.676 8.68622C35.6126 6.83404 33.9882 5.3676 32.0373 4.4985C30.0864 3.62941 27.9098 3.40259 25.8215 3.85078C24.8796 2.7893 23.7219 1.94125 22.4257 1.36341C21.1295 0.785575 19.7249 0.491269 18.3058 0.500197C16.1708 0.495044 14.0893 1.16803 12.3614 2.42214C10.6335 3.67624 9.34853 5.44666 8.6917 7.47815C7.30085 7.76286 5.98686 8.3414 4.8377 9.17505C3.68854 10.0087 2.73073 11.0782 2.02839 12.312C0.956464 14.1591 0.498905 16.2988 0.721698 18.4228C0.944492 20.5467 1.83612 22.5449 3.268 24.1293C2.81966 25.4759 2.66413 26.9026 2.81182 28.3141C2.95951 29.7256 3.40701 31.0892 4.12437 32.3138C5.18791 34.1659 6.8123 35.6322 8.76321 36.5013C10.7141 37.3704 12.8907 37.5973 14.9789 37.1492C15.9208 38.2107 17.0786 39.0587 18.3747 39.6366C19.6709 40.2144 21.0755 40.5087 22.4946 40.4998C24.6307 40.5054 26.7133 39.8321 28.4418 38.5772C30.1704 37.3223 31.4556 35.5506 32.1119 33.5179C33.5027 33.2332 34.8167 32.6547 35.9659 31.821C37.115 30.9874 38.0728 29.9178 38.7752 28.684C39.8458 26.8371 40.3023 24.6979 40.0789 22.5748C39.8556 20.4517 38.9639 18.4544 37.5324 16.8707ZM22.4978 37.8849C20.7443 37.8874 19.0459 37.2733 17.6994 36.1501C17.7601 36.117 17.8666 36.0586 17.936 36.0161L25.9004 31.4156C26.1003 31.3019 26.2663 31.137 26.3813 30.9378C26.4964 30.7386 26.5563 30.5124 26.5549 30.2825V19.0542L29.9213 20.998C29.9389 21.0068 29.9541 21.0198 29.9656 21.0359C29.977 21.052 29.9842 21.0707 29.9867 21.0902V30.3889C29.9842 32.375 29.1946 34.2791 27.7909 35.6841C26.3872 37.0892 24.4838 37.8806 22.4978 37.8849ZM6.39227 31.0064C5.51397 29.4888 5.19742 27.7107 5.49804 25.9832C5.55718 26.0187 5.66048 26.0818 5.73461 26.1244L13.699 30.7248C13.8975 30.8408 14.1233 30.902 14.3532 30.902C14.583 30.902 14.8088 30.8408 15.0073 30.7248L24.731 25.1103V28.9979C24.7321 29.0177 24.7283 29.0376 24.7199 29.0556C24.7115 29.0736 24.6988 29.0893 24.6829 29.1012L16.6317 33.7497C14.9096 34.7416 12.8643 35.0097 10.9447 34.4954C9.02506 33.9811 7.38785 32.7263 6.39227 31.0064ZM4.29707 13.6194C5.17156 12.0998 6.55279 10.9364 8.19885 10.3327C8.19885 10.4013 8.19491 10.5228 8.19491 10.6071V19.808C8.19351 20.0378 8.25334 20.2638 8.36823 20.4629C8.48312 20.6619 8.64893 20.8267 8.84863 20.9404L18.5723 26.5542L15.206 28.4979C15.1894 28.5089 15.1703 28.5155 15.1505 28.5173C15.1307 28.5191 15.1107 28.516 15.0924 28.5082L7.04046 23.8557C5.32135 22.8601 4.06716 21.2235 3.55289 19.3046C3.03862 17.3858 3.30624 15.3413 4.29707 13.6194ZM31.955 20.0556L22.2312 14.4411L25.5976 12.4981C25.6142 12.4872 25.6333 12.4805 25.6531 12.4787C25.6729 12.4769 25.6928 12.4801 25.7111 12.4879L33.7631 17.1364C34.9967 17.849 36.0017 18.8982 36.6606 20.1613C37.3194 21.4244 37.6047 22.849 37.4832 24.2684C37.3617 25.6878 36.8382 27.0432 35.9743 28.1759C35.1103 29.3086 33.9415 30.1717 32.6047 30.6641C32.6047 30.5947 32.6047 30.4733 32.6047 30.3889V21.188C32.6066 20.9586 32.5474 20.7328 32.4332 20.5338C32.319 20.3348 32.154 20.1698 31.955 20.0556ZM35.3055 15.0128C35.2464 14.9765 35.1431 14.9142 35.069 14.8717L27.1045 10.2712C26.906 10.1554 26.6803 10.0943 26.4504 10.0943C26.2206 10.0943 25.9948 10.1554 25.7963 10.2712L16.0726 15.8858V11.9982C16.0715 11.9783 16.0753 11.9585 16.0837 11.9405C16.0921 11.9225 16.1048 11.9068 16.1207 11.8949L24.1719 7.25025C25.4053 6.53903 26.8158 6.19376 28.2383 6.25482C29.6608 6.31589 31.0364 6.78077 32.2044 7.59508C33.3723 8.40939 34.2842 9.53945 34.8334 10.8531C35.3826 12.1667 35.5464 13.6095 35.3055 15.0128ZM14.2424 21.9419L10.8752 19.9981C10.8576 19.9893 10.8423 19.9763 10.8309 19.9602C10.8195 19.9441 10.8122 19.9254 10.8098 19.9058V10.6071C10.8107 9.18295 11.2173 7.78848 11.9819 6.58696C12.7466 5.38544 13.8377 4.42659 15.1275 3.82264C16.4173 3.21869 17.8524 2.99464 19.2649 3.1767C20.6775 3.35876 22.0089 3.93941 23.1034 4.85067C23.0427 4.88379 22.937 4.94215 22.8668 4.98473L14.9024 9.58517C14.7025 9.69878 14.5366 9.86356 14.4215 10.0626C14.3065 10.2616 14.2466 10.4877 14.2479 10.7175L14.2424 21.9419ZM16.071 17.9991L20.4018 15.4978L24.7325 17.9975V22.9985L20.4018 25.4983L16.071 22.9985V17.9991Z",fill:"currentColor"})})},exports.GearIcon=({className:t=""})=>e.jsxs("svg",{className:t,width:"17",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M11.6439 3C10.9352 3 10.2794 3.37508 9.92002 3.98596L9.49644 4.70605C8.96184 5.61487 7.98938 6.17632 6.93501 6.18489L6.09967 6.19168C5.39096 6.19744 4.73823 6.57783 4.38386 7.19161L4.02776 7.80841C3.67339 8.42219 3.67032 9.17767 4.01969 9.7943L4.43151 10.5212C4.95127 11.4386 4.95127 12.5615 4.43151 13.4788L4.01969 14.2057C3.67032 14.8224 3.67339 15.5778 4.02776 16.1916L4.38386 16.8084C4.73823 17.4222 5.39096 17.8026 6.09966 17.8083L6.93502 17.8151C7.98939 17.8237 8.96185 18.3851 9.49645 19.294L9.92002 20.014C10.2794 20.6249 10.9352 21 11.6439 21H12.3561C13.0648 21 13.7206 20.6249 14.08 20.014L14.5035 19.294C15.0381 18.3851 16.0106 17.8237 17.065 17.8151L17.9004 17.8083C18.6091 17.8026 19.2618 17.4222 19.6162 16.8084L19.9723 16.1916C20.3267 15.5778 20.3298 14.8224 19.9804 14.2057L19.5686 13.4788C19.0488 12.5615 19.0488 11.4386 19.5686 10.5212L19.9804 9.7943C20.3298 9.17767 20.3267 8.42219 19.9723 7.80841L19.6162 7.19161C19.2618 6.57783 18.6091 6.19744 17.9004 6.19168L17.065 6.18489C16.0106 6.17632 15.0382 5.61487 14.5036 4.70605L14.08 3.98596C13.7206 3.37508 13.0648 3 12.3561 3H11.6439Z",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"}),e.jsx("circle",{cx:"12",cy:"12",r:"2.5",stroke:"currentColor",strokeWidth:"2"})]}),exports.GeminiIcon=function({size:t=25,className:r=""}){return e.jsxs("svg",{width:t,height:t,className:r,viewBox:"0 0 18 18",preserveAspectRatio:"xMidYMid meet",focusable:"false",children:[e.jsx("path",{fill:"url(#_4rif_paint0_radial_897_42)",d:"M9 18c0-1.245-.24-2.415-.72-3.51a8.934 8.934 0 00-1.912-2.857A8.934 8.934 0 003.51 9.72 8.646 8.646 0 000 9a8.886 8.886 0 003.51-.697 9.247 9.247 0 002.857-1.936A8.934 8.934 0 008.28 3.51C8.76 2.415 9 1.245 9 0c0 1.245.232 2.415.697 3.51a9.247 9.247 0 001.936 2.857 9.247 9.247 0 002.857 1.936A8.886 8.886 0 0018 9c-1.245 0-2.415.24-3.51.72a8.934 8.934 0 00-2.857 1.912 9.247 9.247 0 00-1.935 2.858A8.886 8.886 0 009 18z"}),e.jsx("defs",{children:e.jsxs("radialGradient",{id:"_4rif_paint0_radial_897_42",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"rotate(135 9 3.728) scale(25.4558 12.7279)",children:[e.jsx("stop",{offset:".325",stopColor:"#FFDDB7"}),e.jsx("stop",{offset:".706",stopColor:"#076EFF"})]})})]})},exports.GithubIcon=function(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",fill:"none",children:e.jsx("path",{fill:"currentColor",d:"M12 0a12 12 0 0 0-3.84 23.399c.608.112.832-.256.832-.576v-2.015c-3.395.736-4.115-1.632-4.115-1.632a3.241 3.241 0 0 0-1.359-1.792c-1.104-.736.064-.736.064-.736a2.566 2.566 0 0 1 1.824 1.216a2.638 2.638 0 0 0 3.616 1.024a2.607 2.607 0 0 1 .768-1.6c-2.688-.32-5.504-1.344-5.504-5.984a4.677 4.677 0 0 1 1.216-3.168a4.383 4.383 0 0 1 .128-3.136s1.024-.32 3.36 1.216a11.66 11.66 0 0 1 6.112 0c2.336-1.536 3.36-1.216 3.36-1.216a4.354 4.354 0 0 1 .128 3.136a4.628 4.628 0 0 1 1.216 3.168c0 4.672-2.848 5.664-5.536 5.952a2.881 2.881 0 0 1 .832 2.24v3.36c0 .32.224.672.832.576A12 12 0 0 0 12 0z"})})},exports.GoogleIcon=function(){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",id:"google",className:"h-5 w-5",children:[e.jsx("path",{fill:"#fbbb00",d:"M113.47 309.408 95.648 375.94l-65.139 1.378C11.042 341.211 0 299.9 0 256c0-42.451 10.324-82.483 28.624-117.732h.014L86.63 148.9l25.404 57.644c-5.317 15.501-8.215 32.141-8.215 49.456.002 18.792 3.406 36.797 9.651 53.408z"}),e.jsx("path",{fill:"#518ef8",d:"M507.527 208.176C510.467 223.662 512 239.655 512 256c0 18.328-1.927 36.206-5.598 53.451-12.462 58.683-45.025 109.925-90.134 146.187l-.014-.014-73.044-3.727-10.338-64.535c29.932-17.554 53.324-45.025 65.646-77.911h-136.89V208.176h245.899z"}),e.jsx("path",{fill:"#28b446",d:"m416.253 455.624.014.014C372.396 490.901 316.666 512 256 512c-97.491 0-182.252-54.491-225.491-134.681l82.961-67.91c21.619 57.698 77.278 98.771 142.53 98.771 28.047 0 54.323-7.582 76.87-20.818l83.383 68.262z"}),e.jsx("path",{fill:"#f14336",d:"m419.404 58.936-82.933 67.896C313.136 112.246 285.552 103.82 256 103.82c-66.729 0-123.429 42.957-143.965 102.724l-83.397-68.276h-.014C71.23 56.123 157.06 0 256 0c62.115 0 119.068 22.126 163.404 58.936z"})]})},exports.GoogleIconChat=function({size:t=25,className:r=""}){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",width:"24px",height:"24px",viewBox:"0 0 512 512",strokeWidth:"1.5",className:Fe(r,""),children:e.jsx("path",{d:"M473.16,221.48l-2.26-9.59H262.46v88.22H387c-12.93,61.4-72.93,93.72-121.94,93.72-35.66,0-73.25-15-98.13-39.11a140.08,140.08,0,0,1-41.8-98.88c0-37.16,16.7-74.33,41-98.78s61-38.13,97.49-38.13c41.79,0,71.74,22.19,82.94,32.31l62.69-62.36C390.86,72.72,340.34,32,261.6,32h0c-60.75,0-119,23.27-161.58,65.71C58,139.5,36.25,199.93,36.25,256S56.83,369.48,97.55,411.6C141.06,456.52,202.68,480,266.13,480c57.73,0,112.45-22.62,151.45-63.66,38.34-40.4,58.17-96.3,58.17-154.9C475.75,236.77,473.27,222.12,473.16,221.48Z"})})},exports.GoogleMinimalIcon=function({className:t=""}){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",width:"800px",height:"800px",viewBox:"0 0 512 512",className:Fe("h-4 w-4",t),children:e.jsx("path",{d:"M473.16,221.48l-2.26-9.59H262.46v88.22H387c-12.93,61.4-72.93,93.72-121.94,93.72-35.66,0-73.25-15-98.13-39.11a140.08,140.08,0,0,1-41.8-98.88c0-37.16,16.7-74.33,41-98.78s61-38.13,97.49-38.13c41.79,0,71.74,22.19,82.94,32.31l62.69-62.36C390.86,72.72,340.34,32,261.6,32h0c-60.75,0-119,23.27-161.58,65.71C58,139.5,36.25,199.93,36.25,256S56.83,369.48,97.55,411.6C141.06,456.52,202.68,480,266.13,480c57.73,0,112.45-22.62,151.45-63.66,38.34-40.4,58.17-96.3,58.17-154.9C475.75,236.77,473.27,222.12,473.16,221.48Z"})})},exports.HoverCard=Zr,exports.HoverCardContent=_r,exports.HoverCardPortal=Yr,exports.HoverCardTrigger=Xr,exports.Input=$r,exports.InputCombobox=({label:r,labelClassName:n,placeholder:a="Select an option",options:o,className:s,value:i,onChange:l,onBlur:c})=>{const d=e=>null!=e&&"object"==typeof e&&"value"in e,[u,p]=t.useState(!1),[g,m]=t.useState(i),[f,h]=t.useState(!1);t.useEffect((()=>{m(i)}),[i]);const w=e=>{m(e),l(e)};return e.jsxs(A.ComboboxProvider,{value:g,setValue:w,children:[null!=r&&e.jsx(A.ComboboxLabel,{className:Fe("mb-2 block text-sm font-medium text-text-primary",n??""),children:r}),e.jsx("div",{className:Fe("relative",f?"rounded-md ring-2 ring-ring-primary":""),children:e.jsx(A.Combobox,{placeholder:a,className:Fe("h-10 w-full rounded-md border border-border-light bg-surface-primary px-3 py-2 text-sm","placeholder-text-secondary hover:bg-surface-hover","focus:outline-none",s),onChange:e=>w(e.target.value),onBlur:()=>{h(!1),c()},onFocusVisible:()=>{h(!0),p(!0)},onMouseDown:()=>{h(!1)}})}),e.jsx(A.ComboboxPopover,{gutter:4,sameWidth:!0,open:u,onClose:()=>p(!1),className:Fe("z-50 max-h-60 w-full overflow-auto rounded-md bg-surface-primary p-1 shadow-lg","animate-in fade-in-0 zoom-in-95"),children:o.map(((t,r)=>e.jsxs(A.ComboboxItem,{className:Fe("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none","cursor-pointer hover:bg-surface-tertiary hover:text-text-primary","data-[active-item]:bg-surface-tertiary data-[active-item]:text-text-primary"),value:d(t)?`${t.value??""}`:t,children:[d(t)&&null!=t.icon&&e.jsx("span",{className:"mr-2 flex-shrink-0",children:t.icon}),d(t)?t.label:t]},r)))})]})},exports.InputNumber=na,exports.InputOTP=ro,exports.InputOTPGroup=no,exports.InputOTPSeparator=oo,exports.InputOTPSlot=ao,exports.InputWithDropdown=Bo,exports.Label=aa,exports.LightningIcon=function({className:t=""}){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true",className:Fe("h-6 w-6",t),children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 13.5l10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75z"})})},exports.LinkIcon=function(){return e.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon-md",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 5C14.4477 5 14 4.55228 14 4C14 3.44772 14.4477 3 15 3H20C20.5523 3 21 3.44772 21 4V9C21 9.55228 20.5523 10 20 10C19.4477 10 19 9.55228 19 9V6.41421L13.7071 11.7071C13.3166 12.0976 12.6834 12.0976 12.2929 11.7071C11.9024 11.3166 11.9024 10.6834 12.2929 10.2929L17.5858 5H15ZM4 7C4 5.34315 5.34315 4 7 4H10C10.5523 4 11 4.44772 11 5C11 5.55228 10.5523 6 10 6H7C6.44772 6 6 6.44772 6 7V17C6 17.5523 6.44772 18 7 18H17C17.5523 18 18 17.5523 18 17V14C18 13.4477 18.4477 13 19 13C19.5523 13 20 13.4477 20 14V17C20 18.6569 18.6569 20 17 20H7C5.34315 20 4 18.6569 4 17V7Z",fill:"currentColor"})})},exports.ListeningIcon=function({className:t}){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:Fe(t),strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z"}),e.jsx("path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}),e.jsx("line",{x1:"12",x2:"12",y1:"19",y2:"22"})]})},exports.LockIcon=function(){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-lock",children:[e.jsx("rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2"}),e.jsx("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"})]})},exports.LogOutIcon=function(){return e.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon-md",children:[e.jsx("path",{d:"M11 3H7C5.89543 3 5 3.89543 5 5V19C5 20.1046 5.89543 21 7 21H11",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),e.jsx("path",{d:"M20 12H11M20 12L16 16M20 12L16 8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})},exports.MCPIcon=function({className:t}){return e.jsxs("svg",{width:"195",height:"195",viewBox:"0 2 195 195",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:[e.jsx("path",{d:"M25 97.8528L92.8823 29.9706C102.255 20.598 117.451 20.598 126.823 29.9706V29.9706C136.196 39.3431 136.196 54.5391 126.823 63.9117L75.5581 115.177",stroke:"currentColor",strokeWidth:"12",strokeLinecap:"round"}),e.jsx("path",{d:"M76.2653 114.47L126.823 63.9117C136.196 54.5391 151.392 54.5391 160.765 63.9117L161.118 64.2652C170.491 73.6378 170.491 88.8338 161.118 98.2063L99.7248 159.6C96.6006 162.724 96.6006 167.789 99.7248 170.913L112.331 183.52",stroke:"currentColor",strokeWidth:"12",strokeLinecap:"round"}),e.jsx("path",{d:"M109.853 46.9411L59.6482 97.1457C50.2757 106.518 50.2757 121.714 59.6482 131.087V131.087C69.0208 140.459 84.2168 140.459 93.5894 131.087L143.794 80.8822",stroke:"currentColor",strokeWidth:"12",strokeLinecap:"round"})]})},exports.MessagesSquared=function({className:t}){return e.jsxs("svg",{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",className:Fe(t??"","lucide lucide-messages-square"),children:[e.jsx("path",{d:"M14 9a2 2 0 0 1-2 2H6l-4 4V4c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v5Z"}),e.jsx("path",{d:"M18 9h2a2 2 0 0 1 2 2v11l-4-4h-6a2 2 0 0 1-2-2v-1"})]})},exports.MinimalPlugin=function({size:t,className:r="icon-md"}){return e.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.4646 19C15.2219 20.6961 13.7632 22 12 22C10.2368 22 8.77806 20.6961 8.53544 19H6C4.34315 19 3 17.6569 3 16V13.5C3 12.9477 3.44772 12.5 4 12.5H4.5C5.32843 12.5 6 11.8284 6 11C6 10.1716 5.32843 9.5 4.5 9.5H4C3.44772 9.5 3 9.05229 3 8.5L3 6C3 4.34315 4.34315 3 6 3L18 3C19.6569 3 21 4.34315 21 6L21 16C21 17.6569 19.6569 19 18 19H15.4646ZM12 20C12.8284 20 13.5 19.3284 13.5 18.5V18C13.5 17.4477 13.9477 17 14.5 17H18C18.5523 17 19 16.5523 19 16L19 6C19 5.44772 18.5523 5 18 5L6 5C5.44772 5 5 5.44772 5 6V7.53544C6.69615 7.77806 8 9.23676 8 11C8 12.7632 6.69615 14.2219 5 14.4646L5 16C5 16.5523 5.44771 17 6 17H9.5C10.0523 17 10.5 17.4477 10.5 18V18.5C10.5 19.3284 11.1716 20 12 20Z",fill:"currentColor"})})},exports.MobileSidebar=function({className:t}){return e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 8C3 7.44772 3.44772 7 4 7H20C20.5523 7 21 7.44772 21 8C21 8.55228 20.5523 9 20 9H4C3.44772 9 3 8.55228 3 8ZM3 16C3 15.4477 3.44772 15 4 15H14C14.5523 15 15 15.4477 15 16C15 16.5523 14.5523 17 14 17H4C3.44772 17 3 16.5523 3 16Z",fill:"currentColor"})})},exports.ModelParameters=Vo,exports.MultiSelect=function({items:r,label:n,placeholder:o="Select...",onSelectedValuesChange:s,renderSelectedValues:i=Eo,className:l,selectIcon:c,itemClassName:d,labelClassName:u,selectClassName:p,popoverClassName:g,selectItemsClassName:m,selectedValues:f=[],setSelectedValues:h,renderItemContent:w}){const x=t.useRef(null);return e.jsx("div",{className:l,children:e.jsxs(a.SelectProvider,{value:f,setValue:e=>{h(e),s&&s(e)},children:[n&&e.jsx(a.SelectLabel,{className:Fe("mb-1 block text-sm text-text-primary",u),children:n}),e.jsxs(a.Select,{ref:x,className:Fe("flex items-center justify-between gap-2 rounded-xl px-3 py-2 text-sm","bg-surface-tertiary text-text-primary shadow-sm hover:cursor-pointer hover:bg-surface-hover","outline-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75",p,f.length>0&&null!=m&&m),onChange:e=>e.stopPropagation(),children:[c&&c,e.jsx("span",{className:"mr-auto hidden truncate md:block",children:i(f,o)}),e.jsx(a.SelectArrow,{className:"ml-1 hidden stroke-1 text-base opacity-75 md:block"})]}),e.jsx(a.SelectPopover,{gutter:4,sameWidth:!0,modal:!0,unmountOnHide:!0,finalFocus:x,className:Fe("animate-popover z-50 flex max-h-[300px]","flex-col overflow-auto overscroll-contain rounded-xl","bg-surface-secondary px-1.5 py-1 text-text-primary shadow-lg","border border-border-light","outline-none",g),children:r.map((t=>{const r=e.jsxs(e.Fragment,{children:[e.jsx(a.SelectItemCheck,{className:"text-primary"}),e.jsx("span",{className:"truncate",children:t})]}),n=f.includes(t);return e.jsx(a.SelectItem,{value:t,className:Fe("flex items-center gap-2 rounded-lg px-2 py-1.5 hover:cursor-pointer","scroll-m-1 outline-none transition-colors","hover:bg-black/[0.075] dark:hover:bg-white/10","data-[active-item]:bg-black/[0.075] dark:data-[active-item]:bg-white/10","w-full min-w-0 text-sm",d),children:w?w(t,r,n):r},t)}))})]})})},exports.NewChatIcon=function({className:t=""}){return e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:Fe("text-black dark:text-white",t),"aria-hidden":!0,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.7929 2.79289C18.0118 1.57394 19.9882 1.57394 21.2071 2.79289C22.4261 4.01184 22.4261 5.98815 21.2071 7.20711L12.7071 15.7071C12.5196 15.8946 12.2652 16 12 16H9C8.44772 16 8 15.5523 8 15V12C8 11.7348 8.10536 11.4804 8.29289 11.2929L16.7929 2.79289ZM19.7929 4.20711C19.355 3.7692 18.645 3.7692 18.2071 4.2071L10 12.4142V14H11.5858L19.7929 5.79289C20.2308 5.35499 20.2308 4.64501 19.7929 4.20711ZM6 5C5.44772 5 5 5.44771 5 6V18C5 18.5523 5.44772 19 6 19H18C18.5523 19 19 18.5523 19 18V14C19 13.4477 19.4477 13 20 13C20.5523 13 21 13.4477 21 14V18C21 19.6569 19.6569 21 18 21H6C4.34315 21 3 19.6569 3 18V6C3 4.34314 4.34315 3 6 3H10C10.5523 3 11 3.44771 11 4C11 4.55228 10.5523 5 10 5H6Z",fill:"currentColor"})})},exports.OGDialog=oa,exports.OGDialogClose=la,exports.OGDialogContent=da,exports.OGDialogDescription=ma,exports.OGDialogFooter=pa,exports.OGDialogHeader=ua,exports.OGDialogOverlay=ca,exports.OGDialogPortal=ia,exports.OGDialogTemplate=Ho,exports.OGDialogTitle=ga,exports.OGDialogTrigger=sa,exports.OpenAIMinimalIcon=function({className:t="h-4 w-4"}){return e.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"1",viewBox:"0 0 40 40",strokeLinecap:"round",strokeLinejoin:"round",className:t,height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M37.5324 16.8707C37.9808 15.5241 38.1363 14.0974 37.9886 12.6859C37.8409 11.2744 37.3934 9.91076 36.676 8.68622C35.6126 6.83404 33.9882 5.3676 32.0373 4.4985C30.0864 3.62941 27.9098 3.40259 25.8215 3.85078C24.8796 2.7893 23.7219 1.94125 22.4257 1.36341C21.1295 0.785575 19.7249 0.491269 18.3058 0.500197C16.1708 0.495044 14.0893 1.16803 12.3614 2.42214C10.6335 3.67624 9.34853 5.44666 8.6917 7.47815C7.30085 7.76286 5.98686 8.3414 4.8377 9.17505C3.68854 10.0087 2.73073 11.0782 2.02839 12.312C0.956464 14.1591 0.498905 16.2988 0.721698 18.4228C0.944492 20.5467 1.83612 22.5449 3.268 24.1293C2.81966 25.4759 2.66413 26.9026 2.81182 28.3141C2.95951 29.7256 3.40701 31.0892 4.12437 32.3138C5.18791 34.1659 6.8123 35.6322 8.76321 36.5013C10.7141 37.3704 12.8907 37.5973 14.9789 37.1492C15.9208 38.2107 17.0786 39.0587 18.3747 39.6366C19.6709 40.2144 21.0755 40.5087 22.4946 40.4998C24.6307 40.5054 26.7133 39.8321 28.4418 38.5772C30.1704 37.3223 31.4556 35.5506 32.1119 33.5179C33.5027 33.2332 34.8167 32.6547 35.9659 31.821C37.115 30.9874 38.0728 29.9178 38.7752 28.684C39.8458 26.8371 40.3023 24.6979 40.0789 22.5748C39.8556 20.4517 38.9639 18.4544 37.5324 16.8707ZM22.4978 37.8849C20.7443 37.8874 19.0459 37.2733 17.6994 36.1501C17.7601 36.117 17.8666 36.0586 17.936 36.0161L25.9004 31.4156C26.1003 31.3019 26.2663 31.137 26.3813 30.9378C26.4964 30.7386 26.5563 30.5124 26.5549 30.2825V19.0542L29.9213 20.998C29.9389 21.0068 29.9541 21.0198 29.9656 21.0359C29.977 21.052 29.9842 21.0707 29.9867 21.0902V30.3889C29.9842 32.375 29.1946 34.2791 27.7909 35.6841C26.3872 37.0892 24.4838 37.8806 22.4978 37.8849ZM6.39227 31.0064C5.51397 29.4888 5.19742 27.7107 5.49804 25.9832C5.55718 26.0187 5.66048 26.0818 5.73461 26.1244L13.699 30.7248C13.8975 30.8408 14.1233 30.902 14.3532 30.902C14.583 30.902 14.8088 30.8408 15.0073 30.7248L24.731 25.1103V28.9979C24.7321 29.0177 24.7283 29.0376 24.7199 29.0556C24.7115 29.0736 24.6988 29.0893 24.6829 29.1012L16.6317 33.7497C14.9096 34.7416 12.8643 35.0097 10.9447 34.4954C9.02506 33.9811 7.38785 32.7263 6.39227 31.0064ZM4.29707 13.6194C5.17156 12.0998 6.55279 10.9364 8.19885 10.3327C8.19885 10.4013 8.19491 10.5228 8.19491 10.6071V19.808C8.19351 20.0378 8.25334 20.2638 8.36823 20.4629C8.48312 20.6619 8.64893 20.8267 8.84863 20.9404L18.5723 26.5542L15.206 28.4979C15.1894 28.5089 15.1703 28.5155 15.1505 28.5173C15.1307 28.5191 15.1107 28.516 15.0924 28.5082L7.04046 23.8557C5.32135 22.8601 4.06716 21.2235 3.55289 19.3046C3.03862 17.3858 3.30624 15.3413 4.29707 13.6194ZM31.955 20.0556L22.2312 14.4411L25.5976 12.4981C25.6142 12.4872 25.6333 12.4805 25.6531 12.4787C25.6729 12.4769 25.6928 12.4801 25.7111 12.4879L33.7631 17.1364C34.9967 17.849 36.0017 18.8982 36.6606 20.1613C37.3194 21.4244 37.6047 22.849 37.4832 24.2684C37.3617 25.6878 36.8382 27.0432 35.9743 28.1759C35.1103 29.3086 33.9415 30.1717 32.6047 30.6641C32.6047 30.5947 32.6047 30.4733 32.6047 30.3889V21.188C32.6066 20.9586 32.5474 20.7328 32.4332 20.5338C32.319 20.3348 32.154 20.1698 31.955 20.0556ZM35.3055 15.0128C35.2464 14.9765 35.1431 14.9142 35.069 14.8717L27.1045 10.2712C26.906 10.1554 26.6803 10.0943 26.4504 10.0943C26.2206 10.0943 25.9948 10.1554 25.7963 10.2712L16.0726 15.8858V11.9982C16.0715 11.9783 16.0753 11.9585 16.0837 11.9405C16.0921 11.9225 16.1048 11.9068 16.1207 11.8949L24.1719 7.25025C25.4053 6.53903 26.8158 6.19376 28.2383 6.25482C29.6608 6.31589 31.0364 6.78077 32.2044 7.59508C33.3723 8.40939 34.2842 9.53945 34.8334 10.8531C35.3826 12.1667 35.5464 13.6095 35.3055 15.0128ZM14.2424 21.9419L10.8752 19.9981C10.8576 19.9893 10.8423 19.9763 10.8309 19.9602C10.8195 19.9441 10.8122 19.9254 10.8098 19.9058V10.6071C10.8107 9.18295 11.2173 7.78848 11.9819 6.58696C12.7466 5.38544 13.8377 4.42659 15.1275 3.82264C16.4173 3.21869 17.8524 2.99464 19.2649 3.1767C20.6775 3.35876 22.0089 3.93941 23.1034 4.85067C23.0427 4.88379 22.937 4.94215 22.8668 4.98473L14.9024 9.58517C14.7025 9.69878 14.5366 9.86356 14.4215 10.0626C14.3065 10.2616 14.2466 10.4877 14.2479 10.7175L14.2424 21.9419ZM16.071 17.9991L20.4018 15.4978L24.7325 17.9975V22.9985L20.4018 25.4983L16.071 22.9985V17.9991Z"})})},exports.OpenIDIcon=function(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",id:"openid",className:"h-5 w-5",children:e.jsx("path",{fill:"currentColor",d:"M271.5 432l-68 32C88.5 453.7 0 392.5 0 318.2c0-71.5 82.5-131 191.7-144.3v43c-71.5 12.5-124 53-124 101.3 0 51 58.5 93.3 135.7 103v-340l68-33.2v384zM448 291l-131.3-28.5 36.8-20.7c-19.5-11.5-43.5-20-70-24.8v-43c46.2 5.5 87.7 19.5 120.3 39.3l35-19.8L448 291z"})})},exports.PaLMIcon=function({size:t=25,className:r=""}){return e.jsxs("svg",{width:t,height:t,className:r,viewBox:"0 0 19 17",fill:"none",preserveAspectRatio:"xMidYMid meet",focusable:"false",children:[e.jsx("path",{d:"M9.62674 16.2202H9.7049C10.4225 16.2202 11.0016 15.6412 11.0016 14.9236V4.04224H8.33008V14.92C8.33008 15.6376 8.90914 16.2202 9.62674 16.2202Z",fill:"#F9AB00"}),e.jsx("path",{d:"M14.6819 8.02813C13.3249 6.66752 11.2964 6.39398 9.66577 7.2004L15.0585 12.5931C15.2823 12.8169 15.6624 12.7281 15.7583 12.4297C16.2308 10.927 15.8756 9.21822 14.6819 8.02813Z",fill:"#5BB974"}),e.jsx("path",{d:"M4.64953 8.02813C6.00659 6.66752 8.03507 6.39398 9.66567 7.2004L4.27297 12.5931C4.04916 12.8169 3.66904 12.7281 3.57312 12.4297C3.10064 10.927 3.45589 9.21822 4.64953 8.02813Z",fill:"#129EAF"}),e.jsx("path",{d:"M14.284 3.84326C12.1383 3.84326 10.3159 5.25005 9.66577 7.20038H18.1918C18.5399 7.20038 18.7744 6.83092 18.6145 6.5183C17.8081 4.93033 16.1704 3.84326 14.284 3.84326Z",fill:"#AF5CF7"}),e.jsx("path",{d:"M10.5574 1.55901C9.04053 3.07593 8.74567 5.36019 9.66577 7.20039L15.6944 1.17179C15.943 0.923113 15.8436 0.496814 15.5132 0.390239C13.8151 -0.1604 11.8896 0.226822 10.5574 1.55901Z",fill:"#FF8BCB"}),e.jsx("path",{d:"M8.77408 1.55901C10.291 3.07593 10.5859 5.36019 9.66576 7.20039L3.63716 1.17179C3.38848 0.923113 3.48795 0.496814 3.81833 0.390239C5.51643 -0.1604 7.44189 0.226822 8.77408 1.55901Z",fill:"#FA7B17"}),e.jsx("path",{d:"M5.04752 3.84326C7.19323 3.84326 9.01566 5.25005 9.66577 7.20038H1.13976C0.791616 7.20038 0.55715 6.83092 0.717013 6.5183C1.52343 4.93033 3.16114 3.84326 5.04752 3.84326Z",fill:"#4285F4"})]})},exports.PaLMinimalIcon=function({className:t=""}){return e.jsxs("svg",{stroke:"currentColor",fill:"none",strokeWidth:"1",viewBox:"0 0 32 32",strokeLinecap:"round",strokeLinejoin:"round",className:Fe("h-4 w-4",t),height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"m16 30.238c1.2298 0 2.2259-0.99608 2.2259-2.2259v-11.46c-0.63513-0.56429-1.6553-1.6805-2.2259-2.251-0.79858 0.83793-1.3599 1.3599-2.2259 2.251v11.46c0 1.2298 0.99608 2.2259 2.2259 2.2259z"}),e.jsx("path",{d:"m24.868 15.761c-0.61691-0.61643-1.3121-1.1065-2.0536-1.4703-6.8147 0.010467 0.13304 0.031026-6.8147 0.010467l9.5286 9.5286c0.39324 0.39324 1.0703 0.23743 1.2372-0.29122 0.83841-2.6544 0.20589-5.6723-1.8976-7.7776z"}),e.jsx("path",{d:"m7.1318 15.761c0.5902-0.58975 1.2521-1.0639 1.9575-1.4224 6.9107-0.037427-0.11812-0.057288 6.9107-0.037427l-9.5286 9.5286c-0.39324 0.39324-1.0703 0.23743-1.2372-0.29122-0.83841-2.6543-0.20589-5.6723 1.8976-7.7776z"}),e.jsx("path",{d:"m24.162 8.3655c-0.93169 0-1.8288 0.15009-2.6691 0.42772-5.4924 5.5079 0 0-5.4924 5.5079h15.069c0.61767 0 1.0295-0.65292 0.74938-1.2038-1.432-2.8102-4.3219-4.7318-7.657-4.7318z"}),e.jsx("path",{d:"m17.575 4.333c-0.62613 0.62613-1.1343 1.3257-1.5248 2.0718 1.6767 4.1174 0.53518 6.3909-0.05003 7.8964l10.656-10.656c0.43775-0.43775 0.2671-1.1908-0.3209-1.3819-3.0012-0.97382-6.4031-0.28751-8.7607 2.0701z"}),e.jsx("path",{d:"m14.425 4.333c2.6822 2.6822 3.1997 6.7129 1.5748 9.9682l-10.656-10.656c-0.43775-0.43775-0.2671-1.1908 0.3209-1.3819 3.0012-0.97382 6.4031-0.28751 8.7607 2.0701z"}),e.jsx("path",{d:"m7.8385 8.3655c0.9121 0 1.791 0.14385 2.616 0.41037 5.5455 5.5253-0.061773 0.011675 5.5455 5.5253h-15.069c-0.61768 0-1.0295-0.65292-0.74938-1.2038 1.432-2.8102 4.3219-4.7318 7.657-4.7318z"})]})},exports.Pagination=Pa,exports.PaginationContent=Va,exports.PaginationEllipsis=Wa,exports.PaginationItem=Da,exports.PaginationLink=Ha,exports.PaginationNext=Fa,exports.PaginationPrevious=Ba,exports.PersonalizationIcon=function({className:t=""}){return e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`icon-sm ${t}`,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4C10.3431 4 9 5.34315 9 7C9 8.65685 10.3431 10 12 10C13.6569 10 15 8.65685 15 7C15 5.34315 13.6569 4 12 4ZM7 7C7 4.23858 9.23858 2 12 2C14.7614 2 17 4.23858 17 7C17 9.76142 14.7614 12 12 12C9.23858 12 7 9.76142 7 7ZM19.0277 15.6255C18.6859 15.5646 18.1941 15.6534 17.682 16.1829C17.4936 16.3777 17.2342 16.4877 16.9632 16.4877C16.6922 16.4877 16.4328 16.3777 16.2444 16.1829C15.7322 15.6534 15.2405 15.5646 14.8987 15.6255C14.5381 15.6897 14.2179 15.9384 14.0623 16.3275C13.8048 16.9713 13.9014 18.662 16.9632 20.4617C20.0249 18.662 20.1216 16.9713 19.864 16.3275C19.7084 15.9384 19.3882 15.6897 19.0277 15.6255ZM21.721 15.5847C22.5748 17.7191 21.2654 20.429 17.437 22.4892C17.1412 22.6484 16.7852 22.6484 16.4893 22.4892C12.6609 20.4291 11.3516 17.7191 12.2053 15.5847C12.6117 14.5689 13.4917 13.8446 14.5481 13.6565C15.3567 13.5125 16.2032 13.6915 16.9632 14.1924C17.7232 13.6915 18.5697 13.5125 19.3783 13.6565C20.4347 13.8446 21.3147 14.5689 21.721 15.5847ZM9.92597 14.2049C10.1345 14.7163 9.889 15.2999 9.3776 15.5084C7.06131 16.453 5.5 18.5813 5.5 20.9999C5.5 21.5522 5.05228 21.9999 4.5 21.9999C3.94772 21.9999 3.5 21.5522 3.5 20.9999C3.5 17.6777 5.641 14.8723 8.6224 13.6565C9.1338 13.448 9.71743 13.6935 9.92597 14.2049Z",fill:"currentColor"})})},exports.PinIcon=function({unpin:t=!1}){return t?e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon-sm",children:[e.jsx("path",{d:"M15 15V17.5585C15 18.4193 14.4491 19.1836 13.6325 19.4558L13.1726 19.6091C12.454 19.8487 11.6616 19.6616 11.126 19.126L4.87403 12.874C4.33837 12.3384 4.15132 11.546 4.39088 10.8274L4.54415 10.3675C4.81638 9.55086 5.58066 9 6.44152 9H9M12 6.2L13.6277 3.92116C14.3461 2.91549 15.7955 2.79552 16.6694 3.66942L20.3306 7.33058C21.2045 8.20448 21.0845 9.65392 20.0788 10.3723L18 11.8571",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M8 16L3 21",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M4 4L20 20",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}):e.jsx("svg",{className:"icon-sm",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.4845 2.8798C16.1773 1.57258 14.0107 1.74534 12.9272 3.24318L9.79772 7.56923C9.60945 7.82948 9.30775 7.9836 8.98654 7.9836H6.44673C3.74061 7.9836 2.27414 11.6759 4.16948 13.5713L6.59116 15.993L2.29324 20.2909C1.90225 20.6819 1.90225 21.3158 2.29324 21.7068C2.68422 22.0977 3.31812 22.0977 3.70911 21.7068L8.00703 17.4088L10.4287 19.8305C12.3241 21.7259 16.0164 20.2594 16.0164 17.5533V15.0135C16.0164 14.6923 16.1705 14.3906 16.4308 14.2023L20.7568 11.0728C22.2547 9.98926 22.4274 7.8227 21.1202 6.51549L17.4845 2.8798ZM11.8446 18.4147C12.4994 19.0694 14.0141 18.4928 14.0141 17.5533V15.0135C14.0141 14.0499 14.4764 13.1447 15.2572 12.58L19.5832 9.45047C20.0825 9.08928 20.1401 8.3671 19.7043 7.93136L16.0686 4.29567C15.6329 3.85993 14.9107 3.91751 14.5495 4.4168L11.4201 8.74285C10.8553 9.52359 9.95016 9.98594 8.98654 9.98594H6.44673C5.5072 9.98594 4.93059 11.5006 5.58535 12.1554L11.8446 18.4147Z",fill:"currentColor"})})},exports.PixelCard=function({variant:r="default",gap:n,speed:a,colors:o,noFocus:s,className:i="",progress:l,randomness:c=.3,width:d,height:u}){const p=t.useRef(null),g=t.useRef(null),m=t.useRef([]),f=t.useRef(),h=t.useRef(performance.now()),w=t.useRef(l),x=t.useRef(window.matchMedia("(prefers-reduced-motion: reduce)").matches).current,b=Io[r],v=n??b.gap,y=a??b.speed,k=o??b.colors,C=s??b.noFocus,N=t.useCallback((()=>{if(!g.current)return;if(void 0===w.current)return void(g.current.style.opacity="1");const e=w.current>=.9?1-(w.current-.9)/.1:1;g.current.style.opacity=String(zo(e))}),[]),j=t.useCallback((e=>{f.current=requestAnimationFrame((()=>j(e)));const t=performance.now(),r=t-h.current;if(r<1e3/60)return;h.current=t-r%(1e3/60);const n=g.current?.getContext("2d");if(!n||!g.current)return;n.clearRect(0,0,g.current.width,g.current.height);let a=!0;for(const t of m.current)"appearWithProgress"===e?void 0!==w.current?t.appearWithProgress(w.current):t.isIdle=!0:t[e](),t.isIdle||(a=!1);N(),a&&cancelAnimationFrame(f.current)}),[N]),S=t.useCallback((e=>{cancelAnimationFrame(f.current),f.current=requestAnimationFrame((()=>j(e)))}),[j]),L=t.useCallback((()=>{if(!p.current||!g.current)return;const{width:e,height:t}=p.current.getBoundingClientRect(),r=g.current.getContext("2d");g.current.width=Math.floor(e),g.current.height=Math.floor(t);const n=k.split(","),a=[],o=e/2,s=t/2,i=Math.hypot(o,s);for(let l=0;l<e;l+=v)for(let e=0;e<t;e+=v){const t=n[Math.floor(Math.random()*n.length)],d=Math.hypot(l-o,e-s)/i,u=zo(d*(1-c)+Math.random()*c),p=x?0:d*i;r&&a.push(new Lo(g.current,r,l,e,t,Mo(y,x),p,u))}m.current=a,void 0!==w.current&&S("appearWithProgress")}),[v,k,y,c,x,S]);return t.useEffect((()=>{w.current=l,void 0!==l&&S("appearWithProgress")}),[l,S]),t.useEffect((()=>{void 0===l&&cancelAnimationFrame(f.current)}),[l]),t.useEffect((()=>{L();const e=new ResizeObserver(L);return p.current&&e.observe(p.current),()=>{e.disconnect(),cancelAnimationFrame(f.current)}}),[L]),e.jsx("div",{ref:p,style:{width:d||"100%",height:u||"100%"},children:e.jsx("div",{className:Fe("relative isolate grid select-none place-items-center overflow-hidden rounded-lg border border-border-light shadow-md transition-colors duration-200 ease-in-out",i),style:{width:"100%",height:"100%",transitionTimingFunction:"cubic-bezier(0.5, 1, 0.89, 1)"},onMouseEnter:()=>void 0===w.current&&S("appear"),onMouseLeave:()=>void 0===w.current&&S("disappear"),onFocus:C?void 0:e=>{C||e.currentTarget.contains(e.relatedTarget)||void 0!==w.current||S("appear")},onBlur:C?void 0:e=>{C||e.currentTarget.contains(e.relatedTarget)||void 0!==w.current||S("disappear")},tabIndex:C?-1:0,children:e.jsx("canvas",{ref:g,className:"pointer-events-none absolute inset-0 block",width:d&&"auto"!==d?parseInt(String(d)):void 0,height:u&&"auto"!==u?parseInt(String(u)):void 0})})})},exports.Plugin=function({className:t="",...r}){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"none",className:Fe("h-4 w-4",t),width:"16",height:"16",strokeWidth:"2",...r,children:e.jsxs("g",{fill:"currentColor",children:[e.jsx("path",{d:"M13.164.98a.7.7 0 0 0-1.328 0l-.478 1.435a.7.7 0 0 1-.443.443l-1.436.478a.7.7 0 0 0 0 1.328l1.436.479a.7.7 0 0 1 .443.442l.478 1.436a.7.7 0 0 0 1.328 0l.478-1.436a.7.7 0 0 1 .443-.443l1.436-.478a.7.7 0 0 0 0-1.328l-1.436-.478a.7.7 0 0 1-.443-.443L13.164.979Z"}),e.jsx("path",{d:"M13.237 10.534c-.228-.245-.513-.46-.847-.46a.823.823 0 0 0-.828.849c.04 1.04.128 2.067.263 3.08a.619.619 0 0 1-.528.695c-.872.121-1.748.208-2.626.262a.8.8 0 0 1-.845-.805c0-.325.21-.602.45-.82.235-.215.375-.488.375-.787 0-.683-.738-1.237-1.65-1.237-.911 0-1.65.554-1.65 1.237 0 .294.137.563.364.775.245.229.461.513.461.848a.823.823 0 0 1-.85.829 33.809 33.809 0 0 1-3.266-.278.619.619 0 0 1-.532-.532 34.099 34.099 0 0 1-.278-3.267.823.823 0 0 1 .83-.85c.333 0 .619.216.846.461.212.228.482.364.776.364.683 0 1.237-.738 1.237-1.65 0-.91-.554-1.65-1.237-1.65-.299 0-.572.142-.786.376-.219.24-.496.45-.821.45a.8.8 0 0 1-.805-.845c.054-.885.142-1.76.262-2.626a.619.619 0 0 1 .695-.528c1.022.136 2.05.224 3.08.263a.822.822 0 0 0 .85-.828c0-.334-.217-.62-.462-.847-.227-.212-.363-.482-.363-.776C5.352 1.554 6.09 1 7.002 1c.91 0 1.649.554 1.649 1.237 0 .173-.012.327-.029.473C8.258 3 8 3.41 8 4c0 1.5 1.667 1.833 2.5 2 .167.833.5 2.5 2 2.5.732 0 1.186-.397 1.479-.9l.034-.001c.683 0 1.237.738 1.237 1.65 0 .911-.554 1.65-1.237 1.65-.294 0-.564-.137-.776-.364Z"})]})})},exports.Progress=Za,exports.QuestionMark=({className:t=""})=>e.jsx("span",{children:e.jsx("div",{className:Fe("border-token-border-medium text-token-text-tertiary ml-2 flex h-3.5 w-3.5 cursor-default items-center justify-center rounded-full border text-[0.5rem] font-medium leading-none",t),children:"?"})}),exports.RegenerateIcon=function({className:t="",size:r="1em"}){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:r,width:r,fill:"none",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:Fe("icon-md-heavy",t),children:e.jsx("path",{fill:"currentColor",d:"M3.07 10.876C3.623 6.436 7.41 3 12 3a9.15 9.15 0 0 1 6.012 2.254V4a1 1 0 1 1 2 0v4a1 1 0 0 1-1 1H15a1 1 0 1 1 0-2h1.957A7.15 7.15 0 0 0 12 5a7 7 0 0 0-6.946 6.124 1 1 0 1 1-1.984-.248m16.992 1.132a1 1 0 0 1 .868 1.116C20.377 17.564 16.59 21 12 21a9.15 9.15 0 0 1-6-2.244V20a1 1 0 1 1-2 0v-4a1 1 0 0 1 1-1h4a1 1 0 1 1 0 2H7.043A7.15 7.15 0 0 0 12 19a7 7 0 0 0 6.946-6.124 1 1 0 0 1 1.116-.868"})})},exports.ResizableHandle=({withHandle:t,className:r="",...n})=>e.jsx(U.PanelResizeHandle,{className:Fe("relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",r),...n,children:t&&e.jsx("div",{className:"z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border",children:e.jsx(wt,{className:"h-2.5 w-2.5"})})}),exports.ResizableHandleAlt=({withHandle:t,className:r="",...n})=>e.jsx(U.PanelResizeHandle,{className:Fe("group relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",r),...n,children:t&&e.jsx("div",{className:"invisible z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border group-hover:visible group-active:visible",children:e.jsx(wt,{className:"h-2.5 w-2.5"})})}),exports.ResizablePanel=co,exports.ResizablePanelGroup=({className:t="",...r})=>e.jsx(U.PanelGroup,{className:Fe("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",t),...r}),exports.SamlIcon=function(){return e.jsx("svg",{width:"800px",height:"800px",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"none",className:"h-5 w-5",children:e.jsxs("g",{fill:"#000000",children:[e.jsx("path",{d:"M7.754 2l.463.41c.343.304.687.607 1.026.915C11.44 5.32 13.3 7.565 14.7 10.149c.072.132.137.268.202.403l.098.203-.108.057-.081-.115-.21-.299-.147-.214c-1.019-1.479-2.04-2.96-3.442-4.145a6.563 6.563 0 00-1.393-.904c-1.014-.485-1.916-.291-2.69.505-.736.757-1.118 1.697-1.463 2.653-.045.123-.092.245-.139.367l-.082.215-.172-.055c.1-.348.192-.698.284-1.049.21-.795.42-1.59.712-2.356.31-.816.702-1.603 1.093-2.39.169-.341.338-.682.5-1.025h.092z"}),e.jsx("path",{d:"M8.448 11.822c-1.626.77-5.56 1.564-7.426 1.36C.717 11.576 3.71 4.05 5.18 2.91l-.095.218a4.638 4.638 0 01-.138.303l-.066.129c-.76 1.462-1.519 2.926-1.908 4.53a7.482 7.482 0 00-.228 1.689c-.01 1.34.824 2.252 2.217 2.309.67.027 1.347-.043 2.023-.114.294-.03.587-.061.88-.084.108-.008.214-.021.352-.039l.231-.028z"}),e.jsx("path",{d:"M3.825 14.781c-.445.034-.89.068-1.333.108 4.097.39 8.03-.277 11.91-1.644-1.265-2.23-2.97-3.991-4.952-5.522.026.098.084.169.141.239l.048.06c.17.226.348.448.527.67.409.509.818 1.018 1.126 1.578.778 1.42.356 2.648-1.168 3.296-1.002.427-2.097.718-3.18.892-1.03.164-2.075.243-3.119.323z"})]})})},exports.SaveIcon=function({size:t="1em",className:r}){return e.jsx("svg",{viewBox:"64 64 896 896",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",className:r,width:t,height:t,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"})})},exports.SelectDropDown=function({title:r,value:n,disabled:a,setValue:o,availableValues:s,showAbove:i=!1,showLabel:l=!0,emptyTitle:c=!1,iconSide:d="right",optionIconSide:u="left",placeholder:p,containerClassName:g,optionsListClass:m,optionsClass:f,currentValueClass:h,subContainerClassName:w,className:x,renderOption:b,searchClassName:v,searchPlaceholder:y,showOptionIcon:k=!1}){const C=zr(),N={className:"top-full mt-3"};i&&(N.className="bottom-full mb-3");let j=r;c?j="":j||(j=C("com_ui_model"));const S=s??[],[L,M]=lo({availableOptions:S,placeholder:y,getTextKeyOverride:e=>function(e){return"string"==typeof e?e:"label"in e?e.label??"":"value"in e?(e.value??"")+"":""}(e).toUpperCase(),className:v,disabled:a}),I=null!=M?L:S,R=k&&null!=n&&null!=n.icon,E=t.useRef(null);return e.jsx("div",{className:Fe("flex items-center justify-center gap-2",g??""),children:e.jsx("div",{className:Fe("relative w-full",w??""),children:e.jsx(z.Listbox,{value:n,onChange:o,disabled:a,children:({open:r})=>e.jsxs(e.Fragment,{children:[e.jsxs(z.ListboxButton,{ref:E,"data-testid":"select-dropdown-button",onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),!r&&E.current&&E.current.click())},className:Fe("relative flex w-full cursor-default flex-col rounded-md border border-black/10 bg-white py-2 pl-3 pr-10 text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:bg-white dark:border-gray-600 dark:bg-gray-700 sm:text-sm",x??""),children:[l&&e.jsx(z.Label,{className:"block text-xs text-gray-700 dark:text-gray-500",id:"headlessui-listbox-label-:r1:","data-headlessui-state":"",children:j}),e.jsx("span",{className:"inline-flex w-full truncate",children:e.jsxs("span",{className:Fe("flex h-6 items-center gap-1 truncate text-sm text-gray-800 dark:text-white",l?"":"text-xs",h??""),children:[!l&&!c&&e.jsxs("span",{className:"text-xs text-gray-700 dark:text-gray-500",children:[j,":"]}),R&&"right"!==u&&e.jsx("span",{className:"icon-md flex items-center",children:n.icon}),R&&e.jsx("span",{className:"icon-md absolute right-0 mr-8 flex items-center",children:n.icon}),n?"string"!=typeof n?n.label??"":n:e.jsx("span",{className:"text-text-secondary",children:p})]})}),e.jsx("span",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2",children:e.jsx("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4 text-gray-400",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",style:i?{transform:"scaleY(-1)"}:{},children:e.jsx("polyline",{points:"6 9 12 15 18 9"})})})]}),e.jsx(z.Transition,{show:r,as:t.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",...N,children:e.jsxs(z.ListboxOptions,{className:Fe("absolute z-10 mt-2 max-h-60 w-full overflow-auto rounded border bg-white text-xs ring-black/10 dark:border-gray-600 dark:bg-gray-700 dark:ring-white/20 md:w-[100%]",m??""),children:[b&&e.jsx(z.ListboxOption,{value:null,className:Fe("group relative flex h-[42px] cursor-pointer select-none items-center overflow-hidden pl-3 pr-9 text-gray-800 hover:bg-gray-20 dark:text-white dark:hover:bg-gray-700",f??""),children:b()},"listbox-render-option"),M,I.map(((t,r)=>{if(!t)return null;const a="string"==typeof t?t:t.label??t.value??"",o="string"==typeof t?t:t.value??"",s="string"==typeof t?null:t.icon??null;let i=n;return"string"!=typeof i&&(i=i?.value??""),e.jsx(z.ListboxOption,{value:t,className:({active:e})=>Fe("group relative flex h-[42px] cursor-pointer select-none items-center overflow-hidden pl-3 pr-9 text-gray-800 hover:bg-gray-20 dark:text-white dark:hover:bg-gray-600",e?"bg-surface-active text-text-primary":"",f??""),children:e.jsxs("span",{className:"flex items-center gap-1.5 truncate",children:[e.jsxs("span",{className:Fe("flex h-6 items-center gap-1 text-gray-800 dark:text-gray-200",t===n?"font-semibold":"","left"===d?"ml-4":""),children:[null!=s&&e.jsx("span",{className:Fe("mr-1","right"===u?"absolute right-0 pr-2":""),children:s}),a]}),o===i&&e.jsx("span",{className:Fe("absolute inset-y-0 flex items-center text-gray-800 dark:text-gray-200","left"===d?"left-0 pl-2":"right-0 pr-3"),children:e.jsx(yo,{})})]})},r)}))]})})]})})})})},exports.SendIcon=function({size:t=24,className:r=""}){return e.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",className:Fe("text-white dark:text-black",r),children:e.jsx("path",{d:"M7 11L12 6L17 11M12 18V7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},exports.SendMessageIcon=function(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"none",className:"icon-sm m-1 md:m-0",style:{width:"1em",height:"1em",verticalAlign:"middle"},children:e.jsx("path",{d:"M.5 1.163A1 1 0 0 1 1.97.28l12.868 6.837a1 1 0 0 1 0 1.766L1.969 15.72A1 1 0 0 1 .5 14.836V10.33a1 1 0 0 1 .816-.983L8.5 8 1.316 6.653A1 1 0 0 1 .5 5.67V1.163Z",fill:"currentColor"})})},exports.Separator=ha,exports.Sidebar=function({className:t}){return e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.85719 3H15.1428C16.2266 2.99999 17.1007 2.99998 17.8086 3.05782C18.5375 3.11737 19.1777 3.24318 19.77 3.54497C20.7108 4.02433 21.4757 4.78924 21.955 5.73005C22.2568 6.32234 22.3826 6.96253 22.4422 7.69138C22.5 8.39925 22.5 9.27339 22.5 10.3572V13.6428C22.5 14.7266 22.5 15.6008 22.4422 16.3086C22.3826 17.0375 22.2568 17.6777 21.955 18.27C21.4757 19.2108 20.7108 19.9757 19.77 20.455C19.1777 20.7568 18.5375 20.8826 17.8086 20.9422C17.1008 21 16.2266 21 15.1428 21H8.85717C7.77339 21 6.89925 21 6.19138 20.9422C5.46253 20.8826 4.82234 20.7568 4.23005 20.455C3.28924 19.9757 2.52433 19.2108 2.04497 18.27C1.74318 17.6777 1.61737 17.0375 1.55782 16.3086C1.49998 15.6007 1.49999 14.7266 1.5 13.6428V10.3572C1.49999 9.27341 1.49998 8.39926 1.55782 7.69138C1.61737 6.96253 1.74318 6.32234 2.04497 5.73005C2.52433 4.78924 3.28924 4.02433 4.23005 3.54497C4.82234 3.24318 5.46253 3.11737 6.19138 3.05782C6.89926 2.99998 7.77341 2.99999 8.85719 3ZM6.35424 5.05118C5.74907 5.10062 5.40138 5.19279 5.13803 5.32698C4.57354 5.6146 4.1146 6.07354 3.82698 6.63803C3.69279 6.90138 3.60062 7.24907 3.55118 7.85424C3.50078 8.47108 3.5 9.26339 3.5 10.4V13.6C3.5 14.7366 3.50078 15.5289 3.55118 16.1458C3.60062 16.7509 3.69279 17.0986 3.82698 17.362C4.1146 17.9265 4.57354 18.3854 5.13803 18.673C5.40138 18.8072 5.74907 18.8994 6.35424 18.9488C6.97108 18.9992 7.76339 19 8.9 19H9.5V5H8.9C7.76339 5 6.97108 5.00078 6.35424 5.05118ZM11.5 5V19H15.1C16.2366 19 17.0289 18.9992 17.6458 18.9488C18.2509 18.8994 18.5986 18.8072 18.862 18.673C19.4265 18.3854 19.8854 17.9265 20.173 17.362C20.3072 17.0986 20.3994 16.7509 20.4488 16.1458C20.4992 15.5289 20.5 14.7366 20.5 13.6V10.4C20.5 9.26339 20.4992 8.47108 20.4488 7.85424C20.3994 7.24907 20.3072 6.90138 20.173 6.63803C19.8854 6.07354 19.4265 5.6146 18.862 5.32698C18.5986 5.19279 18.2509 5.10062 17.6458 5.05118C17.0289 5.00078 16.2366 5 15.1 5H11.5ZM5 8.5C5 7.94772 5.44772 7.5 6 7.5H7C7.55229 7.5 8 7.94772 8 8.5C8 9.05229 7.55229 9.5 7 9.5H6C5.44772 9.5 5 9.05229 5 8.5ZM5 12C5 11.4477 5.44772 11 6 11H7C7.55229 11 8 11.4477 8 12C8 12.5523 7.55229 13 7 13H6C5.44772 13 5 12.5523 5 12Z",fill:"currentColor"})})},exports.Skeleton=wa,exports.Slider=fa,exports.Sparkles=function({className:t="",size:r=24}){return e.jsxs("svg",{width:r,height:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:Fe("icon-md shrink-0",t),children:[e.jsx("path",{d:"M19.3975 1.35498C19.3746 1.15293 19.2037 1.00021 19.0004 1C18.7971 0.999793 18.6259 1.15217 18.6026 1.35417C18.4798 2.41894 18.1627 3.15692 17.6598 3.65983C17.1569 4.16274 16.4189 4.47983 15.3542 4.60264C15.1522 4.62593 14.9998 4.79707 15 5.00041C15.0002 5.20375 15.1529 5.37457 15.355 5.39746C16.4019 5.51605 17.1562 5.83304 17.6716 6.33906C18.1845 6.84269 18.5078 7.57998 18.6016 8.63539C18.6199 8.84195 18.7931 9.00023 19.0005 9C19.2078 8.99977 19.3806 8.84109 19.3985 8.6345C19.4883 7.59673 19.8114 6.84328 20.3273 6.32735C20.8433 5.81142 21.5967 5.48834 22.6345 5.39851C22.8411 5.38063 22.9998 5.20782 23 5.00045C23.0002 4.79308 22.842 4.61992 22.6354 4.60157C21.58 4.50782 20.8427 4.18447 20.3391 3.67157C19.833 3.15623 19.516 2.40192 19.3975 1.35498Z",fill:"currentColor"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 3C11.4833 3 11.8974 3.34562 11.9839 3.82111C12.4637 6.46043 13.279 8.23983 14.5196 9.48039C15.7602 10.721 17.5396 11.5363 20.1789 12.0161C20.6544 12.1026 21 12.5167 21 13C21 13.4833 20.6544 13.8974 20.1789 13.9839C17.5396 14.4637 15.7602 15.279 14.5196 16.5196C13.279 17.7602 12.4637 19.5396 11.9839 22.1789C11.8974 22.6544 11.4833 23 11 23C10.5167 23 10.1026 22.6544 10.0161 22.1789C9.53625 19.5396 8.72096 17.7602 7.48039 16.5196C6.23983 15.279 4.46043 14.4637 1.82111 13.9839C1.34562 13.8974 1 13.4833 1 13C1 12.5167 1.34562 12.1026 1.82111 12.0161C4.46043 11.5363 6.23983 10.721 7.48039 9.48039C8.72096 8.23983 9.53625 6.46043 10.0161 3.82111C10.1026 3.34562 10.5167 3 11 3ZM5.66618 13C6.9247 13.5226 7.99788 14.2087 8.89461 15.1054C9.79134 16.0021 10.4774 17.0753 11 18.3338C11.5226 17.0753 12.2087 16.0021 13.1054 15.1054C14.0021 14.2087 15.0753 13.5226 16.3338 13C15.0753 12.4774 14.0021 11.7913 13.1054 10.8946C12.2087 9.99788 11.5226 8.9247 11 7.66618C10.4774 8.9247 9.79134 9.99788 8.89461 10.8946C7.99788 11.7913 6.9247 12.4774 5.66618 13Z",fill:"currentColor"})]})},exports.SpeechIcon=function({className:t}){return e.jsxs("svg",{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",className:Fe(t),children:[e.jsx("path",{d:"M2 10v3"}),e.jsx("path",{d:"M6 6v11"}),e.jsx("path",{d:"M10 3v18"}),e.jsx("path",{d:"M14 8v7"}),e.jsx("path",{d:"M18 5v13"}),e.jsx("path",{d:"M22 10v3"})]})},exports.Spinner=vo,exports.SplitText=({text:r="",className:n="",delay:a=100,animationFrom:o={opacity:0,transform:"translate3d(0,40px,0)"},animationTo:s={opacity:1,transform:"translate3d(0,0,0)"},easing:i=(e=>e),threshold:l=.1,rootMargin:c="-100px",textAlign:d="center",onLetterAnimationComplete:u,onLineCountChange:p})=>{const g=r.split(" ").map(wo),m=g.flat(),[f,h]=t.useState(!1),w=t.useRef(null),x=t.useRef(0),[b]=S.useSprings(m.length,(e=>({from:o,to:f?async e=>{await e(s),x.current+=1,x.current===m.length&&u&&u()}:o,delay:e*a,config:{easing:i}})),[f,r,a,o,s,i,u]);return t.useEffect((()=>{const e=new IntersectionObserver((([t])=>{t.isIntersecting&&(h(!0),w.current&&e.unobserve(w.current))}),{threshold:l,rootMargin:c});return w.current&&e.observe(w.current),()=>e.disconnect()}),[l,c]),t.useEffect((()=>{if(w.current&&f){const e=w.current;setTimeout((()=>{const t=parseInt(getComputedStyle(e).lineHeight)||1.2*parseInt(getComputedStyle(e).fontSize),r=e.offsetHeight,n=Math.round(r/t);p&&p(n)}),100)}}),[f,r,p]),e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"sr-only",children:r}),e.jsx("p",{ref:w,className:`split-parent inline overflow-hidden ${n}`,style:{textAlign:d,whiteSpace:"normal",wordWrap:"break-word"},"aria-hidden":"true",children:g.map(((t,r)=>e.jsxs("span",{style:{display:"inline-block",whiteSpace:"nowrap"},children:[t.map(((t,n)=>{const a=g.slice(0,r).reduce(((e,t)=>e+t.length),0)+n;return e.jsx(S.animated.span,{style:b[a],className:"inline-block transform transition-opacity will-change-transform",children:t},a)})),r<g.length-1&&e.jsx("span",{style:{display:"inline-block",width:"0.3em"},children:" "})]},r)))})]})},exports.SquirclePlusIcon=function(){return e.jsxs("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:"text-3xl",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),e.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})},exports.StopGeneratingIcon=function({className:t=""}){return e.jsx("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2.5",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:Fe("h-3 w-3 text-gray-600 dark:text-gray-400",t),height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"})})},exports.Switch=xa,exports.Table=ba,exports.TableBody=ya,exports.TableCaption=Sa,exports.TableCell=ja,exports.TableFooter=ka,exports.TableHead=Na,exports.TableHeader=va,exports.TableRow=Ca,exports.Tabs=La,exports.TabsContent=Ia,exports.TabsList=Ma,exports.TabsTrigger=za,exports.Tag=Ea,exports.Textarea=Ta,exports.TextareaAutosize=Aa,exports.ThemeContext=lr,exports.ThemeProvider=({initialTheme:r,children:n})=>{const[a,o]=t.useState((()=>r??Ze())),s=u.useSetAtom(sr);return t.useEffect((()=>{const e=document.documentElement,t="system"===a?window.matchMedia("(prefers-color-scheme: dark)").matches:"dark"===a;e.classList.toggle("dark",t),e.classList.toggle("light",!t),localStorage.setItem("color-theme",a)}),[a]),t.useEffect((()=>{if("system"!==a)return;const e=window.matchMedia("(prefers-color-scheme: dark)"),t=e=>o(e.matches?"dark":"light");return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}),[a]),t.useEffect((()=>{const e=localStorage.getItem("fontSize")||"text-base";We(e),s(e)}),[s]),e.jsx(lr.Provider,{value:{theme:a,setTheme:o},children:n})},exports.ThemeSelector=({returnThemeOnly:r})=>{const{theme:n,setTheme:a}=t.useContext(lr),[o,s]=t.useState(""),i=t.useCallback((e=>{const t=Date.now();"number"==typeof window.lastThemeChange&&t-window.lastThemeChange<500||(window.lastThemeChange=t,a(e),s("dark"===e?"Dark theme enabled":"Light theme enabled"))}),[a]);return t.useEffect((()=>{if("system"===n){const e=window.matchMedia("(prefers-color-scheme: dark)").matches;a(e?"dark":"light")}}),[n,a]),t.useEffect((()=>{if(o){const e=setTimeout((()=>s("")),1e3);return()=>clearTimeout(e)}}),[o]),!0===r?e.jsx(Ao,{theme:n,onChange:i}):e.jsxs("div",{className:"flex flex-col items-center justify-center bg-white pt-6 dark:bg-gray-900 sm:pt-0",children:[e.jsx("div",{className:"absolute bottom-0 left-0 m-4",children:e.jsx(Ao,{theme:n,onChange:i})}),o&&e.jsx("div",{"aria-live":"polite",className:"sr-only",children:o})]})},exports.ThumbDownIcon=function({className:t="",size:r="1em",bold:n=!1}){return n?e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",height:r,width:r,fill:"none",viewBox:"0 0 24 24",className:t,children:[e.jsx("path",{d:"M11.4079 21.4961C11.1953 21.8698 10.7683 22.0649 10.348 21.9805C8.4373 21.5968 7.27541 19.6391 7.84844 17.7691L8.69697 14.9999L6.98577 14.9999C4.35915 14.9999 2.45151 12.492 3.14262 9.94747L4.50063 4.94747C4.97329 3.20722 6.54741 1.99994 8.34378 1.99994H14.0328C15.131 2.00207 16.0206 2.89668 16.0206 3.99994V14.9999H15.6827C15.3253 14.9999 14.9953 15.1922 14.818 15.5038L11.4079 21.4961Z",fill:"currentColor"}),e.jsx("path",{d:"M18.0124 14.9999C19.6624 14.9999 21 13.6568 21 11.9999V4.99994C21 3.34308 19.6624 1.99994 18.0124 1.99994H17.4794C17.8184 2.58829 18.0124 3.27136 18.0124 3.99994V14.9999Z",fill:"currentColor"})]}):e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:r,width:r,fill:"none",viewBox:"0 0 24 24",className:t,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.8727 21.4961C11.6725 21.8466 11.2811 22.0423 10.8805 21.9922L10.4267 21.9355C7.95958 21.6271 6.36855 19.1665 7.09975 16.7901L7.65054 15H6.93226C4.29476 15 2.37923 12.4921 3.0732 9.94753L4.43684 4.94753C4.91145 3.20728 6.49209 2 8.29589 2H18.0045C19.6614 2 21.0045 3.34315 21.0045 5V12C21.0045 13.6569 19.6614 15 18.0045 15H16.0045C15.745 15 15.5054 15.1391 15.3766 15.3644L11.8727 21.4961ZM14.0045 4H8.29589C7.39399 4 6.60367 4.60364 6.36637 5.47376L5.00273 10.4738C4.65574 11.746 5.61351 13 6.93226 13H9.00451C9.32185 13 9.62036 13.1506 9.8089 13.4059C9.99743 13.6612 10.0536 13.9908 9.96028 14.2941L9.01131 17.3782C8.6661 18.5002 9.35608 19.6596 10.4726 19.9153L13.6401 14.3721C13.9523 13.8258 14.4376 13.4141 15.0045 13.1902V5C15.0045 4.44772 14.5568 4 14.0045 4ZM17.0045 13V5C17.0045 4.64937 16.9444 4.31278 16.8338 4H18.0045C18.5568 4 19.0045 4.44772 19.0045 5V12C19.0045 12.5523 18.5568 13 18.0045 13H17.0045Z",fill:"currentColor"})})},exports.ThumbUpIcon=function({className:t="",size:r="1em",bold:n=!1}){return n?e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",height:r,width:r,fill:"none",viewBox:"0 0 24 24",className:t,children:[e.jsx("path",{d:"M12.592 2.50386C12.8047 2.13014 13.2317 1.935 13.652 2.01942C15.5627 2.40314 16.7246 4.36079 16.1516 6.23085L15.303 9L17.0142 9C19.6409 9 21.5485 11.5079 20.8574 14.0525L19.4994 19.0525C19.0267 20.7927 17.4526 22 15.6562 22H9.96721C8.869 21.9979 7.97939 21.1033 7.97939 20V9H8.31734C8.67472 9 9.0047 8.80771 9.18201 8.49613L12.592 2.50386Z",fill:"currentColor"}),e.jsx("path",{d:"M5.98763 9C4.33761 9 3 10.3431 3 12V19C3 20.6569 4.33761 22 5.98763 22H6.52055C6.18162 21.4116 5.98763 20.7286 5.98763 20V9Z",fill:"currentColor"})]}):e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:r,width:r,fill:"none",viewBox:"0 0 24 24",className:t,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.1318 2.50389C12.3321 2.15338 12.7235 1.95768 13.124 2.00775L13.5778 2.06447C16.0449 2.37286 17.636 4.83353 16.9048 7.20993L16.354 8.99999H17.0722C19.7097 8.99999 21.6253 11.5079 20.9313 14.0525L19.5677 19.0525C19.0931 20.7927 17.5124 22 15.7086 22H6C4.34315 22 3 20.6568 3 19V12C3 10.3431 4.34315 8.99999 6 8.99999H8C8.25952 8.99999 8.49914 8.86094 8.6279 8.63561L12.1318 2.50389ZM10 20H15.7086C16.6105 20 17.4008 19.3964 17.6381 18.5262L19.0018 13.5262C19.3488 12.2539 18.391 11 17.0722 11H15C14.6827 11 14.3841 10.8494 14.1956 10.5941C14.0071 10.3388 13.9509 10.0092 14.0442 9.70591L14.9932 6.62175C15.3384 5.49984 14.6484 4.34036 13.5319 4.08468L10.3644 9.62789C10.0522 10.1742 9.56691 10.5859 9 10.8098V19C9 19.5523 9.44772 20 10 20ZM7 11V19C7 19.3506 7.06015 19.6872 7.17071 20H6C5.44772 20 5 19.5523 5 19V12C5 11.4477 5.44772 11 6 11H7Z",fill:"currentColor"})})},exports.Toast=function(){const{toast:t,onOpenChange:r}=cr(),n={[exports.NotificationSeverity.INFO]:"border-gray-500 bg-gray-500",[exports.NotificationSeverity.SUCCESS]:"border-green-500 bg-green-500",[exports.NotificationSeverity.WARNING]:"border-orange-500 bg-orange-500",[exports.NotificationSeverity.ERROR]:"border-red-500 bg-red-500"};return e.jsx(_.Root,{open:t.open,onOpenChange:r,className:"toast-root",style:{height:"74px",marginBottom:"0px"},children:e.jsx("div",{className:"w-full p-1 text-center md:w-auto md:text-justify",children:e.jsxs("div",{className:`alert-root pointer-events-auto inline-flex flex-row gap-2 rounded-md border px-3 py-2 text-white ${n[t.severity]}`,children:[t.showIcon&&e.jsx("div",{className:"mt-1 flex-shrink-0 flex-grow-0",children:e.jsxs("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:"icon-sm",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("polygon",{points:"7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"}),e.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),e.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]})}),e.jsx(_.Description,{className:"flex-1 justify-center gap-2",children:e.jsx("div",{className:"whitespace-pre-wrap text-left",children:t.message})})]})})})},exports.ToastContext=Fo,exports.ToastProvider=function({children:t}){const{showToast:r}=cr();return e.jsx(Fo.Provider,{value:{showToast:r},children:t})},exports.TooltipAnchor=Oa,exports.TrashIcon=ko,exports.UserIcon=function(){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}),e.jsx("circle",{cx:"12",cy:"7",r:"4"})]})},exports.VectorIcon=function({className:t}){return e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:t,"aria-label":"",children:e.jsx("path",{d:"M7.45996 14.375C7.45996 13.3616 6.63844 12.54 5.625 12.54C4.61156 12.54 3.79004 13.3616 3.79004 14.375C3.79004 15.3884 4.61156 16.21 5.625 16.21C6.63844 16.21 7.45996 15.3884 7.45996 14.375ZM16.21 14.375C16.21 13.3616 15.3884 12.54 14.375 12.54C13.3616 12.54 12.54 13.3616 12.54 14.375C12.54 15.3884 13.3616 16.21 14.375 16.21C15.3884 16.21 16.21 15.3884 16.21 14.375ZM7.45996 5.625C7.45996 4.61156 6.63844 3.79004 5.625 3.79004C4.61156 3.79004 3.79004 4.61156 3.79004 5.625C3.79004 6.63844 4.61156 7.45996 5.625 7.45996C6.63844 7.45996 7.45996 6.63844 7.45996 5.625ZM16.21 5.625C16.21 4.61156 15.3884 3.79004 14.375 3.79004C13.3616 3.79004 12.54 4.61156 12.54 5.625C12.54 6.63844 13.3616 7.45996 14.375 7.45996C15.3884 7.45996 16.21 6.63844 16.21 5.625ZM17.54 14.375C17.54 16.123 16.123 17.54 14.375 17.54C12.627 17.54 11.21 16.123 11.21 14.375C11.21 12.627 12.627 11.21 14.375 11.21C16.123 11.21 17.54 12.627 17.54 14.375ZM8.79004 5.625C8.79004 7.37298 7.37298 8.79004 5.625 8.79004C3.87702 8.79004 2.45996 7.37298 2.45996 5.625C2.45996 3.87702 3.87702 2.45996 5.625 2.45996C7.37298 2.45996 8.79004 3.87702 8.79004 5.625ZM17.54 5.625C17.54 7.37298 16.123 8.79004 14.375 8.79004C13.7416 8.79004 13.153 8.60173 12.6582 8.28125L8.28125 12.6582C8.60173 13.153 8.79004 13.7416 8.79004 14.375C8.79004 16.123 7.37298 17.54 5.625 17.54C3.87702 17.54 2.45996 16.123 2.45996 14.375C2.45996 12.627 3.87702 11.21 5.625 11.21C6.25794 11.21 6.84623 11.3977 7.34082 11.7178L11.7178 7.34082C11.3977 6.84623 11.21 6.25794 11.21 5.625C11.21 3.87702 12.627 2.45996 14.375 2.45996C16.123 2.45996 17.54 3.87702 17.54 5.625Z"})})},exports.VolumeIcon=function({className:t="",size:r="1em"}){return e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:r,width:r,className:Fe(t),children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 4.9099C11 4.47485 10.4828 4.24734 10.1621 4.54132L6.67572 7.7372C6.49129 7.90626 6.25019 8.00005 6 8.00005H4C3.44772 8.00005 3 8.44776 3 9.00005V15C3 15.5523 3.44772 16 4 16H6C6.25019 16 6.49129 16.0938 6.67572 16.2629L10.1621 19.4588C10.4828 19.7527 11 19.5252 11 19.0902V4.9099ZM8.81069 3.06701C10.4142 1.59714 13 2.73463 13 4.9099V19.0902C13 21.2655 10.4142 22.403 8.81069 20.9331L5.61102 18H4C2.34315 18 1 16.6569 1 15V9.00005C1 7.34319 2.34315 6.00005 4 6.00005H5.61102L8.81069 3.06701ZM20.3166 6.35665C20.8019 6.09313 21.409 6.27296 21.6725 6.75833C22.5191 8.3176 22.9996 10.1042 22.9996 12.0001C22.9996 13.8507 22.5418 15.5974 21.7323 17.1302C21.4744 17.6185 20.8695 17.8054 20.3811 17.5475C19.8927 17.2896 19.7059 16.6846 19.9638 16.1962C20.6249 14.9444 20.9996 13.5175 20.9996 12.0001C20.9996 10.4458 20.6064 8.98627 19.9149 7.71262C19.6514 7.22726 19.8312 6.62017 20.3166 6.35665ZM15.7994 7.90049C16.241 7.5688 16.8679 7.65789 17.1995 8.09947C18.0156 9.18593 18.4996 10.5379 18.4996 12.0001C18.4996 13.3127 18.1094 14.5372 17.4385 15.5604C17.1357 16.0222 16.5158 16.1511 16.0539 15.8483C15.5921 15.5455 15.4632 14.9255 15.766 14.4637C16.2298 13.7564 16.4996 12.9113 16.4996 12.0001C16.4996 10.9859 16.1653 10.0526 15.6004 9.30063C15.2687 8.85905 15.3578 8.23218 15.7994 7.90049Z",fill:"currentColor"})})},exports.VolumeMuteIcon=function({className:t="",size:r="1em"}){return e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:r,width:r,className:Fe(t),children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12ZM9.5 8.5C8.94772 8.5 8.5 8.94772 8.5 9.5V14.5C8.5 15.0523 8.94772 15.5 9.5 15.5H14.5C15.0523 15.5 15.5 15.0523 15.5 14.5V9.5C15.5 8.94772 15.0523 8.5 14.5 8.5H9.5Z",fill:"currentColor"})})},exports.XAIcon=function({className:t=""}){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",fill:"currentColor",className:t,children:e.jsx("path",{d:"m3.005 8.858 8.783 12.544h3.904L6.908 8.858zM6.905 15.825 3 21.402h3.907l1.951-2.788zM16.585 2l-6.75 9.64 1.953 2.79L20.492 2zM17.292 7.965v13.437h3.2V3.395z"})})},exports.applyFontSize=We,exports.buttonVariants=At,exports.chatDirectionAtom=or,exports.cn=Fe,exports.fontSizeAtom=sr,exports.getInitialTheme=Ze,exports.langAtom=ar,exports.toastState=ir,exports.useCombobox=Mr,exports.useDelayedRender=Rr,exports.useLocalize=zr,exports.useMediaQuery=Ir,exports.useMultiSearch=lo,exports.useOnClickOutside=function(e,r,n,a){t.useEffect((()=>{const t=t=>{const o=t.target;o&&"id"in o&&n.includes(o.id)||o?.parentNode&&"id"in o.parentNode&&n.includes(o.parentNode.id)||a&&a(o)||e.current&&!e.current.contains(o)&&r()};return document.addEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t)}}),[e,r])},exports.useToast=cr,exports.useToastContext=function(){return t.useContext(Fo)};
37
+ */Py=Ny,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(e=r(e,n(o)))}return e}function n(n){if("string"==typeof n||"number"==typeof n)return n;if("object"!=typeof n)return"";if(Array.isArray(n))return t.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var o="";for(var i in n)e.call(n,i)&&n[i]&&(o=r(o,i));return o}function r(e,t){return t?e?e+" "+t:e+t:e}Py.exports?(t.default=t,Py.exports=t):window.classNames=t}();var jy=so(Ny.exports),My={ENTER:13,UP:38,DOWN:40};var Ay,Iy="undefined"!=typeof window&&window.document&&window.document.createElement?a.useLayoutEffect:a.useEffect,Ty=function(e,t){var n=a.useRef(!0);Iy((function(){return e(n.current)}),t),Iy((function(){return n.current=!1,function(){n.current=!0}}),[])},Oy=function(e,t){Ty((function(t){if(!t)return e()}),t)},Ly={},Dy=Symbol.for("react.element"),Fy=Symbol.for("react.portal"),_y=Symbol.for("react.fragment"),Vy=Symbol.for("react.strict_mode"),zy=Symbol.for("react.profiler"),Hy=Symbol.for("react.provider"),By=Symbol.for("react.context"),$y=Symbol.for("react.server_context"),Wy=Symbol.for("react.forward_ref"),Uy=Symbol.for("react.suspense"),Ky=Symbol.for("react.suspense_list"),Gy=Symbol.for("react.memo"),qy=Symbol.for("react.lazy"),Xy=Symbol.for("react.offscreen");function Yy(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Dy:switch(e=e.type){case _y:case zy:case Vy:case Uy:case Ky:return e;default:switch(e=e&&e.$$typeof){case $y:case By:case Wy:case qy:case Gy:case Hy:return e;default:return t}}case Fy:return t}}}function Zy(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter((function(e){return e}));return r.length<=1?r[0]:function(e){t.forEach((function(t){!function(e,t){"function"==typeof e?e(t):"object"===xy(e)&&e&&"current"in e&&(e.current=t)}(t,e)}))}}function Qy(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jy(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Cy(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ex(){return"function"==typeof BigInt}function tx(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}function nx(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),(t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),i=o[0]||"0",a=o[1]||"0";"0"===i&&"0"===a&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:i,decimalStr:a,fullStr:"".concat(s).concat(r)}}function rx(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function ox(e){var t=String(e);if(rx(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return null!=r&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&ax(t)?t.length-t.indexOf(".")-1:0}function ix(e){var t=String(e);if(rx(e)){if(e>Number.MAX_SAFE_INTEGER)return String(ex()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(ex()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(ox(t))}return nx(t).fullStr}function ax(e){return"number"==typeof e?!Number.isNaN(e):!!e&&(/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e))}Ay=Symbol.for("react.module.reference"),Ly.ContextConsumer=By,Ly.ContextProvider=Hy,Ly.Element=Dy,Ly.ForwardRef=Wy,Ly.Fragment=_y,Ly.Lazy=qy,Ly.Memo=Gy,Ly.Portal=Fy,Ly.Profiler=zy,Ly.StrictMode=Vy,Ly.Suspense=Uy,Ly.SuspenseList=Ky,Ly.isAsyncMode=function(){return!1},Ly.isConcurrentMode=function(){return!1},Ly.isContextConsumer=function(e){return Yy(e)===By},Ly.isContextProvider=function(e){return Yy(e)===Hy},Ly.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Dy},Ly.isForwardRef=function(e){return Yy(e)===Wy},Ly.isFragment=function(e){return Yy(e)===_y},Ly.isLazy=function(e){return Yy(e)===qy},Ly.isMemo=function(e){return Yy(e)===Gy},Ly.isPortal=function(e){return Yy(e)===Fy},Ly.isProfiler=function(e){return Yy(e)===zy},Ly.isStrictMode=function(e){return Yy(e)===Vy},Ly.isSuspense=function(e){return Yy(e)===Uy},Ly.isSuspenseList=function(e){return Yy(e)===Ky},Ly.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===_y||e===zy||e===Vy||e===Uy||e===Ky||e===Xy||"object"==typeof e&&null!==e&&(e.$$typeof===qy||e.$$typeof===Gy||e.$$typeof===Hy||e.$$typeof===By||e.$$typeof===Wy||e.$$typeof===Ay||void 0!==e.getModuleId)},Ly.typeOf=Yy;var sx=function(){function e(t){if(Qy(this,e),Sy(this,"origin",""),Sy(this,"negative",void 0),Sy(this,"integer",void 0),Sy(this,"decimal",void 0),Sy(this,"decimalLen",void 0),Sy(this,"empty",void 0),Sy(this,"nan",void 0),tx(t))this.empty=!0;else if(this.origin=String(t),"-"===t||Number.isNaN(t))this.nan=!0;else{var n=t;if(rx(n)&&(n=Number(n)),ax(n="string"==typeof n?n:ix(n))){var r=nx(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var i=o[1]||"0";this.decimal=BigInt(i),this.decimalLen=i.length}else this.nan=!0}}return Jy(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(e){var t="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(e,"0"));return BigInt(t)}},{key:"negate",value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:"cal",value:function(t,n,r){var o=Math.max(this.getDecimalStr().length,t.getDecimalStr().length),i=n(this.alignDecimal(o),t.alignDecimal(o)).toString(),a=r(o),s=nx(i),l=s.negativeStr,u=s.trimStr,c="".concat(l).concat(u.padStart(a+1,"0"));return new e("".concat(c.slice(0,-a),".").concat(c.slice(-a)))}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=new e(t);return n.isInvalidate()?this:this.cal(n,(function(e,t){return e+t}),(function(e){return e}))}},{key:"multi",value:function(t){var n=new e(t);return this.isInvalidate()||n.isInvalidate()?new e(NaN):this.cal(n,(function(e,t){return e*t}),(function(e){return 2*e}))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toString()===(null==e?void 0:e.toString())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){return!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":nx("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),lx=function(){function e(t){Qy(this,e),Sy(this,"origin",""),Sy(this,"number",void 0),Sy(this,"empty",void 0),tx(t)?this.empty=!0:(this.origin=String(t),this.number=Number(t))}return Jy(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var r=this.number+n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(ox(this.number),ox(n));return new e(r.toFixed(o))}},{key:"multi",value:function(t){var n=Number(t);if(this.isInvalidate()||Number.isNaN(n))return new e(NaN);var r=this.number*n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(ox(this.number),ox(n));return new e(r.toFixed(o))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toNumber()===(null==e?void 0:e.toNumber())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){return!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":ix(this.number):this.origin}}]),e}();function ux(e){return ex()?new sx(e):new lx(e)}function cx(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var o=nx(e),i=o.negativeStr,a=o.integerStr,s=o.decimalStr,l="".concat(t).concat(s),u="".concat(i).concat(a);if(n>=0){var c=Number(s[n]);return c>=5&&!r?cx(ux(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-c)).toString(),t,n,r):0===n?u:"".concat(u).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return".0"===l?u:"".concat(u).concat(l)}var dx=function(){var e=Ey(t.useState(!1),2),n=e[0],r=e[1];return Ty((function(){r(function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))}())}),[]),n};function fx(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,i=e.downDisabled,s=e.onStep,l=a.useRef(),c=a.useRef();c.current=s;var d=function(e,t){e.preventDefault(),c.current(t),l.current=setTimeout((function e(){c.current(t),l.current=setTimeout(e,200)}),600)},f=function(){clearTimeout(l.current)};if(a.useEffect((function(){return f}),[]),dx())return null;var p="".concat(t,"-handler"),m=jy(p,"".concat(p,"-up"),Sy({},"".concat(p,"-up-disabled"),o)),h=jy(p,"".concat(p,"-down"),Sy({},"".concat(p,"-down-disabled"),i)),g={unselectable:"on",role:"button",onMouseUp:f,onMouseLeave:f};return a.createElement("div",{className:"".concat(p,"-wrap")},a.createElement("span",u({},g,{onMouseDown:function(e){d(e,!0)},"aria-label":"Increase Value","aria-disabled":o,className:m}),n||a.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),a.createElement("span",u({},g,{onMouseDown:function(e){d(e,!1)},"aria-label":"Decrease Value","aria-disabled":i,className:h}),r||a.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function px(e){var t="number"==typeof e?ix(e):nx(e).fullStr;return t.includes(".")?nx(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var mx={};function hx(e,t){}function gx(e,t){}function vx(e,t,n){t||mx[n]||(e(!1,n),mx[n]=!0)}function bx(e,t){vx(hx,e,t)}bx.preMessage=function(e){},bx.resetWarned=function(){mx={}},bx.noteOnce=function(e,t){vx(gx,e,t)};var wx=function(e){return+setTimeout(e,16)},yx=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(wx=function(e){return window.requestAnimationFrame(e)},yx=function(e){return window.cancelAnimationFrame(e)});var xx=0,Cx=new Map;function Sx(e){Cx.delete(e)}var kx=function(e){var t=xx+=1;return function n(r){if(0===r)Sx(t),e();else{var o=wx((function(){n(r-1)}));Cx.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};kx.cancel=function(e){var t=Cx.get(e);return Sx(e),yx(t)};var Ex=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],Rx=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},Px=function(e){var t=ux(e);return t.isInvalidate()?null:t},Nx=a.forwardRef((function(e,n){var r,o=e.prefixCls,i=void 0===o?"rc-input-number":o,s=e.className,l=e.style,c=e.min,d=e.max,f=e.step,p=void 0===f?1:f,m=e.defaultValue,h=e.value,g=e.disabled,v=e.readOnly,b=e.upHandler,w=e.downHandler,y=e.keyboard,x=e.controls,C=void 0===x||x,S=e.stringMode,k=e.parser,E=e.formatter,R=e.precision,P=e.decimalSeparator,N=e.onChange,j=e.onInput,M=e.onPressEnter,A=e.onStep,I=function(e,t){if(null==e)return{};var n,r,o=Ry(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Ex),T="".concat(i,"-input"),O=a.useRef(null),L=Ey(a.useState(!1),2),D=L[0],F=L[1],_=a.useRef(!1),V=a.useRef(!1),z=a.useRef(!1),H=Ey(a.useState((function(){return ux(null!=h?h:m)})),2),B=H[0],$=H[1];var W=a.useCallback((function(e,t){if(!t)return R>=0?R:Math.max(ox(e),ox(p))}),[R,p]),U=a.useCallback((function(e){var t=String(e);if(k)return k(t);var n=t;return P&&(n=n.replace(P,".")),n.replace(/[^\w.-]+/g,"")}),[k,P]),K=a.useRef(""),G=a.useCallback((function(e,t){if(E)return E(e,{userTyping:t,input:String(K.current)});var n="number"==typeof e?ix(e):e;if(!t){var r=W(n,t);if(ax(n)&&(P||r>=0))n=cx(n,P||".",r)}return n}),[E,W,P]),q=Ey(a.useState((function(){var e=null!=m?m:h;return B.isInvalidate()&&["string","number"].includes(xy(e))?Number.isNaN(e)?"":e:G(B.toString(),!1)})),2),X=q[0],Y=q[1];function Z(e,t){Y(G(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}K.current=X;var Q,J,ee,te,ne,re=a.useMemo((function(){return Px(d)}),[d,R]),oe=a.useMemo((function(){return Px(c)}),[c,R]),ie=a.useMemo((function(){return!(!re||!B||B.isInvalidate())&&re.lessEquals(B)}),[re,B]),ae=a.useMemo((function(){return!(!oe||!B||B.isInvalidate())&&B.lessEquals(oe)}),[oe,B]),se=(Q=O.current,J=D,ee=t.useRef(null),[function(){try{var e=Q.selectionStart,t=Q.selectionEnd,n=Q.value,r=n.substring(0,e),o=n.substring(t);ee.current={start:e,end:t,value:n,beforeTxt:r,afterTxt:o}}catch(e){}},function(){if(Q&&ee.current&&J)try{var e=Q.value,t=ee.current,n=t.beforeTxt,r=t.afterTxt,o=t.start,i=e.length;if(e.endsWith(r))i=e.length-ee.current.afterTxt.length;else if(e.startsWith(n))i=n.length;else{var a=n[o-1],s=e.indexOf(a,o-1);-1!==s&&(i=s+1)}Q.setSelectionRange(i,i)}catch(e){bx(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(e.message))}}]),le=Ey(se,2),ue=le[0],ce=le[1],de=function(e){return re&&!e.lessEquals(re)?re:oe&&!oe.lessEquals(e)?oe:null},fe=function(e){return!de(e)},pe=function(e,t){var n,r=e,o=fe(r)||r.isEmpty();if(r.isEmpty()||t||(r=de(r)||r,o=!0),!v&&!g&&o){var i=r.toString(),a=W(i,t);return a>=0&&(r=ux(cx(i,".",a)),fe(r)||(r=ux(cx(i,".",a,!0)))),r.equals(B)||(n=r,void 0===h&&$(n),null==N||N(r.isEmpty()?null:Rx(S,r)),void 0===h&&Z(r,t)),r}return B},me=(te=t.useRef(0),ne=function(){kx.cancel(te.current)},t.useEffect((function(){return ne}),[]),function(e){ne(),te.current=kx((function(){e()}))}),he=function e(t){if(ue(),Y(t),!V.current){var n=ux(U(t));n.isNaN()||pe(n,!0)}null==j||j(t),me((function(){var n=t;k||(n=t.replace(/。/g,".")),n!==t&&e(n)}))},ge=function(e){var t;if(!(e&&ie||!e&&ae)){_.current=!1;var n=ux(z.current?px(p):p);e||(n=n.negate());var r=(B||ux(0)).add(n.toString()),o=pe(r,!1);null==A||A(Rx(S,o),{offset:z.current?px(p):p,type:e?"up":"down"}),null===(t=O.current)||void 0===t||t.focus()}},ve=function(e){var t=ux(U(X)),n=t;n=t.isNaN()?B:pe(t,e),void 0!==h?Z(B,!1):n.isNaN()||Z(n,!1)};return Oy((function(){B.isInvalidate()||Z(B,!1)}),[R]),Oy((function(){var e=ux(h);$(e);var t=ux(U(X));e.equals(t)&&_.current&&!E||Z(e,_.current)}),[h]),Oy((function(){E&&ce()}),[X]),a.createElement("div",{className:jy(i,s,(r={},Sy(r,"".concat(i,"-focused"),D),Sy(r,"".concat(i,"-disabled"),g),Sy(r,"".concat(i,"-readonly"),v),Sy(r,"".concat(i,"-not-a-number"),B.isNaN()),Sy(r,"".concat(i,"-out-of-range"),!B.isInvalidate()&&!fe(B)),r)),style:l,onFocus:function(){F(!0)},onBlur:function(){ve(!1),F(!1),_.current=!1},onKeyDown:function(e){var t=e.which,n=e.shiftKey;_.current=!0,z.current=!!n,t===My.ENTER&&(V.current||(_.current=!1),ve(!1),null==M||M(e)),!1!==y&&!V.current&&[My.UP,My.DOWN].includes(t)&&(ge(My.UP===t),e.preventDefault())},onKeyUp:function(){_.current=!1,z.current=!1},onCompositionStart:function(){V.current=!0},onCompositionEnd:function(){V.current=!1,he(O.current.value)},onBeforeInput:function(){_.current=!0}},C&&a.createElement(fx,{prefixCls:i,upNode:b,downNode:w,upDisabled:ie,downDisabled:ae,onStep:ge}),a.createElement("div",{className:"".concat(T,"-wrap")},a.createElement("input",u({autoComplete:"off",role:"spinbutton","aria-valuemin":c,"aria-valuemax":d,"aria-valuenow":B.isInvalidate()?null:B.toString(),step:p},I,{ref:Zy(O,n),className:T,value:X,onChange:function(e){he(e.target.value)},disabled:g,readOnly:v}))))}));Nx.displayName="InputNumber";const jx=a.forwardRef((({className:t,...n},r)=>e.jsx(Nx,{className:jt("flex max-h-5 w-full rounded-md border border-gray-300 bg-transparent px-3 py-2 text-sm placeholder:text-gray-400 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-700 dark:text-gray-50",t??""),ref:r,...n})));function Mx(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Ax(e){const t=a.forwardRef(((e,t)=>{const{children:n,...r}=e;if(a.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==a.Fragment&&(o.ref=t?function(...e){return t=>{let n=!1;const r=e.map((e=>{const r=Mx(e,t);return n||"function"!=typeof r||(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():Mx(e[t],null)}}}}(t,e):e),a.cloneElement(n,o)}return a.Children.count(n)>1?a.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}jx.displayName="Input";var Ix=Symbol("radix.slottable");function Tx(e){return a.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Ix}var Ox=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce(((t,n)=>{const r=function(t){const n=Ax(t),r=a.forwardRef(((t,r)=>{const{children:o,...i}=t,s=a.Children.toArray(o),l=s.find(Tx);if(l){const t=l.props.children,o=s.map((e=>e===l?a.Children.count(t)>1?a.Children.only(null):a.isValidElement(t)?t.props.children:null:e));return e.jsx(n,{...i,ref:r,children:a.isValidElement(t)?a.cloneElement(t,void 0,o):null})}return e.jsx(n,{...i,ref:r,children:o})}));return r.displayName=`${t}.Slot`,r}(`Primitive.${n}`),o=a.forwardRef(((t,o)=>{const{asChild:i,...a}=t,s=i?r:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),e.jsx(s,{...a,ref:o})}));return o.displayName=`Primitive.${n}`,{...t,[n]:o}}),{}),Lx=a.forwardRef(((t,n)=>e.jsx(Ox.label,{...t,ref:n,onMouseDown:e=>{e.target.closest("button, input, select, textarea")||(t.onMouseDown?.(e),!e.defaultPrevented&&e.detail>1&&e.preventDefault())}})));Lx.displayName="Label";var Dx=Lx;const Fx=a.forwardRef((({className:t="",...n},r)=>e.jsx(Dx,{ref:r,...n,className:jt("block w-full break-all text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 dark:text-gray-200",t)})));Fx.displayName=Dx.displayName;const _x=a.forwardRef((({children:t,triggerRef:n,triggerRefs:r,onOpenChange:o,...i},a)=>e.jsx(hf,{...i,onOpenChange:e=>{!e&&n?.current&&setTimeout((()=>{n.current?.focus()}),0),r?.length&&r.forEach((e=>{e?.current&&setTimeout((()=>{e.current?.focus()}),0)})),o?.(e)},children:t}))),Vx=gf,zx=vf,Hx=Cf,Bx=a.forwardRef((({className:t,...n},r)=>e.jsx(bf,{ref:r,className:jt("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...n})));Bx.displayName=bf.displayName;const $x=a.forwardRef((({className:t,overlayClassName:n,showCloseButton:r=!0,children:o,...i},a)=>e.jsxs(zx,{children:[e.jsx(Bx,{className:n}),e.jsxs(wf,{ref:a,className:jt("max-w-11/12 fixed left-[50%] top-[50%] z-50 grid w-full translate-x-[-50%] translate-y-[-50%] gap-4 rounded-2xl bg-background p-6 text-text-primary 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%]",t),...i,children:[o,r&&e.jsxs(Cf,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-ring-primary ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[e.jsx(Pp,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Close"})]})]})]})));$x.displayName=wf.displayName;const Wx=({className:t,...n})=>e.jsx("div",{className:jt("flex flex-col space-y-1.5 text-center sm:text-left",t),...n});Wx.displayName="DialogHeader";const Ux=({className:t,...n})=>e.jsx("div",{className:jt("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...n});Ux.displayName="DialogFooter";const Kx=a.forwardRef((({className:t,...n},r)=>e.jsx(yf,{ref:r,className:jt("text-lg font-semibold leading-none tracking-tight",t),...n})));Kx.displayName=yf.displayName;const Gx=a.forwardRef((({className:t,...n},r)=>e.jsx(xf,{ref:r,className:jt("text-sm text-muted-foreground",t),...n})));Gx.displayName=xf.displayName;function qx(e,[t,n]){return Math.min(n,Math.max(t,e))}function Xx(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function Yx(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Zx(...e){return t=>{let n=!1;const r=e.map((e=>{const r=Yx(e,t);return n||"function"!=typeof r||(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():Yx(e[t],null)}}}}function Qx(...e){return a.useCallback(Zx(...e),e)}function Jx(t,n=[]){let r=[];const o=()=>{const e=r.map((e=>a.createContext(e)));return function(n){const r=n?.[t]||e;return a.useMemo((()=>({[`__scope${t}`]:{...n,[t]:r}})),[n,r])}};return o.scopeName=t,[function(n,o){const i=a.createContext(o),s=r.length;r=[...r,o];const l=n=>{const{scope:r,children:o,...l}=n,u=r?.[t]?.[s]||i,c=a.useMemo((()=>l),Object.values(l));return e.jsx(u.Provider,{value:c,children:o})};return l.displayName=n+"Provider",[l,function(e,r){const l=r?.[t]?.[s]||i,u=a.useContext(l);if(u)return u;if(void 0!==o)return o;throw new Error(`\`${e}\` must be used within \`${n}\``)}]},eC(o,...n)]}function eC(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return a.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}var tC=globalThis?.document?a.useLayoutEffect:()=>{},nC=a[" useInsertionEffect ".trim().toString()]||tC;function rC({prop:e,defaultProp:t,onChange:n=(()=>{}),caller:r}){const[o,i,s]=function({defaultProp:e,onChange:t}){const[n,r]=a.useState(e),o=a.useRef(n),i=a.useRef(t);return nC((()=>{i.current=t}),[t]),a.useEffect((()=>{o.current!==n&&(i.current?.(n),o.current=n)}),[n,o]),[n,r,i]}({defaultProp:t,onChange:n}),l=void 0!==e,u=l?e:o;{const t=a.useRef(void 0!==e);a.useEffect((()=>{const e=t.current;if(e!==l){const t=e?"controlled":"uncontrolled",n=l?"controlled":"uncontrolled";console.warn(`${r} is changing from ${t} to ${n}. 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.`)}t.current=l}),[l,r])}const c=a.useCallback((t=>{if(l){const n=function(e){return"function"==typeof e}(t)?t(e):t;n!==e&&s.current?.(n)}else i(t)}),[l,e,i,s]);return[u,c]}var oC=a.createContext(void 0);function iC(t){const n=aC(t),r=a.forwardRef(((t,r)=>{const{children:o,...i}=t,s=a.Children.toArray(o),l=s.find(lC);if(l){const t=l.props.children,o=s.map((e=>e===l?a.Children.count(t)>1?a.Children.only(null):a.isValidElement(t)?t.props.children:null:e));return e.jsx(n,{...i,ref:r,children:a.isValidElement(t)?a.cloneElement(t,void 0,o):null})}return e.jsx(n,{...i,ref:r,children:o})}));return r.displayName=`${t}.Slot`,r}function aC(e){const t=a.forwardRef(((e,t)=>{const{children:n,...r}=e;if(a.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==a.Fragment&&(o.ref=t?Zx(t,e):e),a.cloneElement(n,o)}return a.Children.count(n)>1?a.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}var sC=Symbol("radix.slottable");function lC(e){return a.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===sC}var uC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce(((t,n)=>{const r=iC(`Primitive.${n}`),o=a.forwardRef(((t,o)=>{const{asChild:i,...a}=t,s=i?r:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),e.jsx(s,{...a,ref:o})}));return o.displayName=`Primitive.${n}`,{...t,[n]:o}}),{});var cC=["PageUp","PageDown"],dC=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],fC={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},pC="Slider",[mC,hC,gC]=function(n){const r=n+"CollectionProvider",[o,i]=Jx(r),[a,s]=o(r,{collectionRef:{current:null},itemMap:new Map}),l=n=>{const{scope:r,children:o}=n,i=t.useRef(null),s=t.useRef(new Map).current;return e.jsx(a,{scope:r,itemMap:s,collectionRef:i,children:o})};l.displayName=r;const u=n+"CollectionSlot",c=iC(u),d=t.forwardRef(((t,n)=>{const{scope:r,children:o}=t,i=Qx(n,s(u,r).collectionRef);return e.jsx(c,{ref:i,children:o})}));d.displayName=u;const f=n+"CollectionItemSlot",p="data-radix-collection-item",m=iC(f),h=t.forwardRef(((n,r)=>{const{scope:o,children:i,...a}=n,l=t.useRef(null),u=Qx(r,l),c=s(f,o);return t.useEffect((()=>(c.itemMap.set(l,{ref:l,...a}),()=>{c.itemMap.delete(l)}))),e.jsx(m,{[p]:"",ref:u,children:i})}));return h.displayName=f,[{Provider:l,Slot:d,ItemSlot:h},function(e){const r=s(n+"CollectionConsumer",e),o=t.useCallback((()=>{const e=r.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${p}]`)),n=Array.from(r.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)));return n}),[r.collectionRef,r.itemMap]);return o},i]}(pC),[vC,bC]=Jx(pC,[gC]),[wC,yC]=vC(pC),xC=a.forwardRef(((t,n)=>{const{name:r,min:o=0,max:i=100,step:s=1,orientation:l="horizontal",disabled:u=!1,minStepsBetweenThumbs:c=0,defaultValue:d=[o],value:f,onValueChange:p=(()=>{}),onValueCommit:m=(()=>{}),inverted:h=!1,form:g,...v}=t,b=a.useRef(new Set),w=a.useRef(0),y="horizontal"===l?kC:EC,[x=[],C]=rC({prop:f,defaultProp:d,onChange:e=>{const t=[...b.current];t[w.current]?.focus(),p(e)}}),S=a.useRef(x);function k(e,t,{commit:n}={commit:!1}){const r=function(e){return(String(e).split(".")[1]||"").length}(s),a=function(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}(Math.round((e-o)/s)*s+o,r),l=qx(a,[o,i]);C(((e=[])=>{const r=function(e=[],t,n){const r=[...e];return r[n]=t,r.sort(((e,t)=>e-t))}(e,l,t);if(function(e,t){if(t>0){const n=function(e){return e.slice(0,-1).map(((t,n)=>e[n+1]-t))}(e);return Math.min(...n)>=t}return!0}(r,c*s)){w.current=r.indexOf(l);const t=String(r)!==String(e);return t&&n&&m(r),t?r:e}return e}))}return e.jsx(wC,{scope:t.__scopeSlider,name:r,disabled:u,min:o,max:i,valueIndexToChangeRef:w,thumbs:b.current,values:x,orientation:l,form:g,children:e.jsx(mC.Provider,{scope:t.__scopeSlider,children:e.jsx(mC.Slot,{scope:t.__scopeSlider,children:e.jsx(y,{"aria-disabled":u,"data-disabled":u?"":void 0,...v,ref:n,onPointerDown:Xx(v.onPointerDown,(()=>{u||(S.current=x)})),min:o,max:i,inverted:h,onSlideStart:u?void 0:function(e){const t=function(e,t){if(1===e.length)return 0;const n=e.map((e=>Math.abs(e-t))),r=Math.min(...n);return n.indexOf(r)}(x,e);k(e,t)},onSlideMove:u?void 0:function(e){k(e,w.current)},onSlideEnd:u?void 0:function(){const e=S.current[w.current];x[w.current]!==e&&m(x)},onHomeKeyDown:()=>!u&&k(o,0,{commit:!0}),onEndKeyDown:()=>!u&&k(i,x.length-1,{commit:!0}),onStepKeyDown:({event:e,direction:t})=>{if(!u){const n=cC.includes(e.key)||e.shiftKey&&dC.includes(e.key)?10:1,r=w.current;k(x[r]+s*n*t,r,{commit:!0})}}})})})})}));xC.displayName=pC;var[CC,SC]=vC(pC,{startEdge:"left",endEdge:"right",size:"width",direction:1}),kC=a.forwardRef(((t,n)=>{const{min:r,max:o,dir:i,inverted:s,onSlideStart:l,onSlideMove:u,onSlideEnd:c,onStepKeyDown:d,...f}=t,[p,m]=a.useState(null),h=Qx(n,(e=>m(e))),g=a.useRef(void 0),v=function(e){const t=a.useContext(oC);return e||t||"ltr"}(i),b="ltr"===v,w=b&&!s||!b&&s;function y(e){const t=g.current||p.getBoundingClientRect(),n=DC([0,t.width],w?[r,o]:[o,r]);return g.current=t,n(e-t.left)}return e.jsx(CC,{scope:t.__scopeSlider,startEdge:w?"left":"right",endEdge:w?"right":"left",direction:w?1:-1,size:"width",children:e.jsx(RC,{dir:v,"data-orientation":"horizontal",...f,ref:h,style:{...f.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{const t=y(e.clientX);l?.(t)},onSlideMove:e=>{const t=y(e.clientX);u?.(t)},onSlideEnd:()=>{g.current=void 0,c?.()},onStepKeyDown:e=>{const t=fC[w?"from-left":"from-right"].includes(e.key);d?.({event:e,direction:t?-1:1})}})})})),EC=a.forwardRef(((t,n)=>{const{min:r,max:o,inverted:i,onSlideStart:s,onSlideMove:l,onSlideEnd:u,onStepKeyDown:c,...d}=t,f=a.useRef(null),p=Qx(n,f),m=a.useRef(void 0),h=!i;function g(e){const t=m.current||f.current.getBoundingClientRect(),n=DC([0,t.height],h?[o,r]:[r,o]);return m.current=t,n(e-t.top)}return e.jsx(CC,{scope:t.__scopeSlider,startEdge:h?"bottom":"top",endEdge:h?"top":"bottom",size:"height",direction:h?1:-1,children:e.jsx(RC,{"data-orientation":"vertical",...d,ref:p,style:{...d.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{const t=g(e.clientY);s?.(t)},onSlideMove:e=>{const t=g(e.clientY);l?.(t)},onSlideEnd:()=>{m.current=void 0,u?.()},onStepKeyDown:e=>{const t=fC[h?"from-bottom":"from-top"].includes(e.key);c?.({event:e,direction:t?-1:1})}})})})),RC=a.forwardRef(((t,n)=>{const{__scopeSlider:r,onSlideStart:o,onSlideMove:i,onSlideEnd:a,onHomeKeyDown:s,onEndKeyDown:l,onStepKeyDown:u,...c}=t,d=yC(pC,r);return e.jsx(uC.span,{...c,ref:n,onKeyDown:Xx(t.onKeyDown,(e=>{"Home"===e.key?(s(e),e.preventDefault()):"End"===e.key?(l(e),e.preventDefault()):cC.concat(dC).includes(e.key)&&(u(e),e.preventDefault())})),onPointerDown:Xx(t.onPointerDown,(e=>{const t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),d.thumbs.has(t)?t.focus():o(e)})),onPointerMove:Xx(t.onPointerMove,(e=>{e.target.hasPointerCapture(e.pointerId)&&i(e)})),onPointerUp:Xx(t.onPointerUp,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),a(e))}))})})),PC="SliderTrack",NC=a.forwardRef(((t,n)=>{const{__scopeSlider:r,...o}=t,i=yC(PC,r);return e.jsx(uC.span,{"data-disabled":i.disabled?"":void 0,"data-orientation":i.orientation,...o,ref:n})}));NC.displayName=PC;var jC="SliderRange",MC=a.forwardRef(((t,n)=>{const{__scopeSlider:r,...o}=t,i=yC(jC,r),s=SC(jC,r),l=Qx(n,a.useRef(null)),u=i.values.length,c=i.values.map((e=>LC(e,i.min,i.max))),d=u>1?Math.min(...c):0,f=100-Math.max(...c);return e.jsx(uC.span,{"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,...o,ref:l,style:{...t.style,[s.startEdge]:d+"%",[s.endEdge]:f+"%"}})}));MC.displayName=jC;var AC="SliderThumb",IC=a.forwardRef(((t,n)=>{const r=hC(t.__scopeSlider),[o,i]=a.useState(null),s=Qx(n,(e=>i(e))),l=a.useMemo((()=>o?r().findIndex((e=>e.ref.current===o)):-1),[r,o]);return e.jsx(TC,{...t,ref:s,index:l})})),TC=a.forwardRef(((t,n)=>{const{__scopeSlider:r,index:o,name:i,...s}=t,l=yC(AC,r),u=SC(AC,r),[c,d]=a.useState(null),f=Qx(n,(e=>d(e))),p=!c||(l.form||!!c.closest("form")),m=function(e){const[t,n]=a.useState(void 0);return tC((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}(c),h=l.values[o],g=void 0===h?0:LC(h,l.min,l.max),v=function(e,t){return t>2?`Value ${e+1} of ${t}`:2===t?["Minimum","Maximum"][e]:void 0}(o,l.values.length),b=m?.[u.size],w=b?function(e,t,n){const r=e/2,o=DC([0,50],[0,r]);return(r-o(t)*n)*n}(b,g,u.direction):0;return a.useEffect((()=>{if(c)return l.thumbs.add(c),()=>{l.thumbs.delete(c)}}),[c,l.thumbs]),e.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[u.startEdge]:`calc(${g}% + ${w}px)`},children:[e.jsx(mC.ItemSlot,{scope:t.__scopeSlider,children:e.jsx(uC.span,{role:"slider","aria-label":t["aria-label"]||v,"aria-valuemin":l.min,"aria-valuenow":h,"aria-valuemax":l.max,"aria-orientation":l.orientation,"data-orientation":l.orientation,"data-disabled":l.disabled?"":void 0,tabIndex:l.disabled?void 0:0,...s,ref:f,style:void 0===h?{display:"none"}:t.style,onFocus:Xx(t.onFocus,(()=>{l.valueIndexToChangeRef.current=o}))})}),p&&e.jsx(OC,{name:i??(l.name?l.name+(l.values.length>1?"[]":""):void 0),form:l.form,value:h},o)]})}));IC.displayName=AC;var OC=a.forwardRef((({__scopeSlider:t,value:n,...r},o)=>{const i=a.useRef(null),s=Qx(i,o),l=function(e){const t=a.useRef({value:e,previous:e});return a.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}(n);return a.useEffect((()=>{const e=i.current;if(!e)return;const t=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(t,"value").set;if(l!==n&&r){const t=new Event("input",{bubbles:!0});r.call(e,n),e.dispatchEvent(t)}}),[l,n]),e.jsx(uC.input,{style:{display:"none"},...r,ref:s,defaultValue:n})}));function LC(e,t,n){return qx(100/(n-t)*(e-t),[0,100])}function DC(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}OC.displayName="RadioBubbleInput";var FC=xC,_C=NC,VC=MC,zC=IC;const HC=a.forwardRef((({className:t,onDoubleClick:n,...r},o)=>e.jsxs(FC,{ref:o,...r,className:jt("relative flex w-full cursor-pointer touch-none select-none items-center",t),onDoubleClick:n,children:[e.jsx(_C,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:e.jsx(VC,{className:"absolute h-full bg-primary"})}),e.jsx(zC,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]})));function BC(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function $C(e){const t=a.forwardRef(((e,t)=>{const{children:n,...r}=e;if(a.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==a.Fragment&&(o.ref=t?function(...e){return t=>{let n=!1;const r=e.map((e=>{const r=BC(e,t);return n||"function"!=typeof r||(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():BC(e[t],null)}}}}(t,e):e),a.cloneElement(n,o)}return a.Children.count(n)>1?a.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}HC.displayName=FC.displayName;var WC=Symbol("radix.slottable");function UC(e){return a.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===WC}var KC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce(((t,n)=>{const r=function(t){const n=$C(t),r=a.forwardRef(((t,r)=>{const{children:o,...i}=t,s=a.Children.toArray(o),l=s.find(UC);if(l){const t=l.props.children,o=s.map((e=>e===l?a.Children.count(t)>1?a.Children.only(null):a.isValidElement(t)?t.props.children:null:e));return e.jsx(n,{...i,ref:r,children:a.isValidElement(t)?a.cloneElement(t,void 0,o):null})}return e.jsx(n,{...i,ref:r,children:o})}));return r.displayName=`${t}.Slot`,r}(`Primitive.${n}`),o=a.forwardRef(((t,o)=>{const{asChild:i,...a}=t,s=i?r:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),e.jsx(s,{...a,ref:o})}));return o.displayName=`Primitive.${n}`,{...t,[n]:o}}),{}),GC="horizontal",qC=["horizontal","vertical"],XC=a.forwardRef(((t,n)=>{const{decorative:r,orientation:o=GC,...i}=t,a=function(e){return qC.includes(e)}(o)?o:GC,s=r?{role:"none"}:{"aria-orientation":"vertical"===a?a:void 0,role:"separator"};return e.jsx(KC.div,{"data-orientation":a,...s,...i,ref:n})}));XC.displayName="Separator";var YC=XC;const ZC=a.forwardRef((({className:t="",orientation:n="horizontal",decorative:r=!0,...o},i)=>e.jsx(YC,{ref:i,...o,decorative:r,orientation:n,className:jt("shrink-0 bg-border-light","horizontal"===n?"h-[1px] w-full":"h-full w-[1px]",t)})));ZC.displayName=YC.displayName;function QC({className:t,...n}){return e.jsx("div",{className:jt("animate-pulse rounded-md bg-surface-tertiary opacity-50 dark:opacity-25",t),...n})}function JC(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function eS(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function tS(...e){return t=>{let n=!1;const r=e.map((e=>{const r=eS(e,t);return n||"function"!=typeof r||(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():eS(e[t],null)}}}}function nS(...e){return a.useCallback(tS(...e),e)}function rS(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return a.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}var oS=globalThis?.document?a.useLayoutEffect:()=>{},iS=a[" useInsertionEffect ".trim().toString()]||oS;function aS({prop:e,defaultProp:t,onChange:n=(()=>{}),caller:r}){const[o,i,s]=function({defaultProp:e,onChange:t}){const[n,r]=a.useState(e),o=a.useRef(n),i=a.useRef(t);return iS((()=>{i.current=t}),[t]),a.useEffect((()=>{o.current!==n&&(i.current?.(n),o.current=n)}),[n,o]),[n,r,i]}({defaultProp:t,onChange:n}),l=void 0!==e,u=l?e:o;{const t=a.useRef(void 0!==e);a.useEffect((()=>{const e=t.current;if(e!==l){const t=e?"controlled":"uncontrolled",n=l?"controlled":"uncontrolled";console.warn(`${r} is changing from ${t} to ${n}. 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.`)}t.current=l}),[l,r])}const c=a.useCallback((t=>{if(l){const n=function(e){return"function"==typeof e}(t)?t(e):t;n!==e&&s.current?.(n)}else i(t)}),[l,e,i,s]);return[u,c]}function sS(e){const t=a.forwardRef(((e,t)=>{const{children:n,...r}=e;if(a.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==a.Fragment&&(o.ref=t?tS(t,e):e),a.cloneElement(n,o)}return a.Children.count(n)>1?a.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}var lS=Symbol("radix.slottable");function uS(e){return a.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===lS}var cS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce(((t,n)=>{const r=function(t){const n=sS(t),r=a.forwardRef(((t,r)=>{const{children:o,...i}=t,s=a.Children.toArray(o),l=s.find(uS);if(l){const t=l.props.children,o=s.map((e=>e===l?a.Children.count(t)>1?a.Children.only(null):a.isValidElement(t)?t.props.children:null:e));return e.jsx(n,{...i,ref:r,children:a.isValidElement(t)?a.cloneElement(t,void 0,o):null})}return e.jsx(n,{...i,ref:r,children:o})}));return r.displayName=`${t}.Slot`,r}(`Primitive.${n}`),o=a.forwardRef(((t,o)=>{const{asChild:i,...a}=t,s=i?r:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),e.jsx(s,{...a,ref:o})}));return o.displayName=`Primitive.${n}`,{...t,[n]:o}}),{}),dS="Switch",[fS,pS]=function(t,n=[]){let r=[];const o=()=>{const e=r.map((e=>a.createContext(e)));return function(n){const r=n?.[t]||e;return a.useMemo((()=>({[`__scope${t}`]:{...n,[t]:r}})),[n,r])}};return o.scopeName=t,[function(n,o){const i=a.createContext(o),s=r.length;r=[...r,o];const l=n=>{const{scope:r,children:o,...l}=n,u=r?.[t]?.[s]||i,c=a.useMemo((()=>l),Object.values(l));return e.jsx(u.Provider,{value:c,children:o})};return l.displayName=n+"Provider",[l,function(e,r){const l=r?.[t]?.[s]||i,u=a.useContext(l);if(u)return u;if(void 0!==o)return o;throw new Error(`\`${e}\` must be used within \`${n}\``)}]},rS(o,...n)]}(dS),[mS,hS]=fS(dS),gS=a.forwardRef(((t,n)=>{const{__scopeSwitch:r,name:o,checked:i,defaultChecked:s,required:l,disabled:u,value:c="on",onCheckedChange:d,form:f,...p}=t,[m,h]=a.useState(null),g=nS(n,(e=>h(e))),v=a.useRef(!1),b=!m||(f||!!m.closest("form")),[w,y]=aS({prop:i,defaultProp:s??!1,onChange:d,caller:dS});return e.jsxs(mS,{scope:r,checked:w,disabled:u,children:[e.jsx(cS.button,{type:"button",role:"switch","aria-checked":w,"aria-required":l,"data-state":yS(w),"data-disabled":u?"":void 0,disabled:u,value:c,...p,ref:g,onClick:JC(t.onClick,(e=>{y((e=>!e)),b&&(v.current=e.isPropagationStopped(),v.current||e.stopPropagation())}))}),b&&e.jsx(wS,{control:m,bubbles:!v.current,name:o,value:c,checked:w,required:l,disabled:u,form:f,style:{transform:"translateX(-100%)"}})]})}));gS.displayName=dS;var vS="SwitchThumb",bS=a.forwardRef(((t,n)=>{const{__scopeSwitch:r,...o}=t,i=hS(vS,r);return e.jsx(cS.span,{"data-state":yS(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:n})}));bS.displayName=vS;var wS=a.forwardRef((({__scopeSwitch:t,control:n,checked:r,bubbles:o=!0,...i},s)=>{const l=a.useRef(null),u=nS(l,s),c=function(e){const t=a.useRef({value:e,previous:e});return a.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}(r),d=function(e){const[t,n]=a.useState(void 0);return oS((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}(n);return a.useEffect((()=>{const e=l.current;if(!e)return;const t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked").set;if(c!==r&&n){const t=new Event("click",{bubbles:o});n.call(e,r),e.dispatchEvent(t)}}),[c,r,o]),e.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...i,tabIndex:-1,ref:u,style:{...i.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})}));function yS(e){return e?"checked":"unchecked"}wS.displayName="SwitchBubbleInput";var xS=gS,CS=bS;const SS=a.forwardRef((({className:t,...n},r)=>e.jsx(xS,{className:jt("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-switch-unchecked",t),...n,ref:r,children:e.jsx(CS,{className:jt("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})})));SS.displayName=xS.displayName;const kS=a.forwardRef((({className:t,...n},r)=>e.jsx("div",{className:"relative w-full overflow-auto",children:e.jsx("table",{ref:r,className:jt("w-full caption-bottom text-sm",t),...n})})));kS.displayName="Table";const ES=a.forwardRef((({className:t,...n},r)=>e.jsx("thead",{ref:r,className:jt("[&_tr]:border-b",t),...n})));ES.displayName="TableHeader";const RS=a.forwardRef((({className:t,...n},r)=>e.jsx("tbody",{ref:r,className:jt("[&_tr:last-child]:border-0",t),...n})));RS.displayName="TableBody";const PS=a.forwardRef((({className:t,...n},r)=>e.jsx("tfoot",{ref:r,className:jt("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",t),...n})));PS.displayName="TableFooter";const NS=a.forwardRef((({className:t,...n},r)=>e.jsx("tr",{ref:r,className:jt("border-b border-border-light transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",t),...n})));NS.displayName="TableRow";const jS=a.forwardRef((({className:t,...n},r)=>e.jsx("th",{ref:r,className:jt("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",t),...n})));jS.displayName="TableHead";const MS=a.forwardRef((({className:t,...n},r)=>e.jsx("td",{ref:r,className:jt("p-4 align-middle [&:has([role=checkbox])]:pr-0",t),...n})));MS.displayName="TableCell";const AS=a.forwardRef((({className:t,...n},r)=>e.jsx("caption",{ref:r,className:jt("mt-4 text-sm text-muted-foreground",t),...n})));AS.displayName="TableCaption";const IS="rovingFocusGroup.onEntryFocus",TS={bubbles:!1,cancelable:!0},OS="RovingFocusGroup",[LS,DS,FS]=w(OS),[_S,VS]=c(OS,[FS]),[zS,HS]=_S(OS),BS=t.forwardRef(((e,n)=>t.createElement(LS.Provider,{scope:e.__scopeRovingFocusGroup},t.createElement(LS.Slot,{scope:e.__scopeRovingFocusGroup},t.createElement($S,u({},e,{ref:n})))))),$S=t.forwardRef(((e,n)=>{const{__scopeRovingFocusGroup:r,orientation:o,loop:i=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:d,...f}=e,m=t.useRef(null),h=p(n,m),g=K(a),[v=null,b]=C({prop:s,defaultProp:l,onChange:c}),[w,k]=t.useState(!1),E=x(d),R=DS(r),P=t.useRef(!1),[N,j]=t.useState(0);return t.useEffect((()=>{const e=m.current;if(e)return e.addEventListener(IS,E),()=>e.removeEventListener(IS,E)}),[E]),t.createElement(zS,{scope:r,orientation:o,dir:g,loop:i,currentTabStopId:v,onItemFocus:t.useCallback((e=>b(e)),[b]),onItemShiftTab:t.useCallback((()=>k(!0)),[]),onFocusableItemAdd:t.useCallback((()=>j((e=>e+1))),[]),onFocusableItemRemove:t.useCallback((()=>j((e=>e-1))),[])},t.createElement(S.div,u({tabIndex:w||0===N?-1:0,"data-orientation":o},f,{ref:h,style:{outline:"none",...e.style},onMouseDown:y(e.onMouseDown,(()=>{P.current=!0})),onFocus:y(e.onFocus,(e=>{const t=!P.current;if(e.target===e.currentTarget&&t&&!w){const t=new CustomEvent(IS,TS);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=R().filter((e=>e.focusable));KS([e.find((e=>e.active)),e.find((e=>e.id===v)),...e].filter(Boolean).map((e=>e.ref.current)))}}P.current=!1})),onBlur:y(e.onBlur,(()=>k(!1)))})))})),WS=t.forwardRef(((e,n)=>{const{__scopeRovingFocusGroup:r,focusable:o=!0,active:i=!1,tabStopId:a,...s}=e,l=M(),c=a||l,d=HS("RovingFocusGroupItem",r),f=d.currentTabStopId===c,p=DS(r),{onFocusableItemAdd:m,onFocusableItemRemove:h}=d;return t.useEffect((()=>{if(o)return m(),()=>h()}),[o,m,h]),t.createElement(LS.ItemSlot,{scope:r,id:c,focusable:o,active:i},t.createElement(S.span,u({tabIndex:f?0:-1,"data-orientation":d.orientation},s,{ref:n,onMouseDown:y(e.onMouseDown,(e=>{o?d.onItemFocus(c):e.preventDefault()})),onFocus:y(e.onFocus,(()=>d.onItemFocus(c))),onKeyDown:y(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void d.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:US[r]}(e,d.orientation,d.dir);if(void 0!==t){e.preventDefault();let o=p().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const i=o.indexOf(e.currentTarget);o=d.loop?(r=i+1,(n=o).map(((e,t)=>n[(r+t)%n.length]))):o.slice(i+1)}setTimeout((()=>KS(o)))}var n,r}))})))})),US={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function KS(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}const GS=BS,qS=WS,XS="Tabs",[YS,ZS]=c(XS,[VS]),QS=VS(),[JS,ek]=YS(XS),tk=t.forwardRef(((e,n)=>{const{__scopeTabs:r,value:o,onValueChange:i,defaultValue:a,orientation:s="horizontal",dir:l,activationMode:c="automatic",...d}=e,f=K(l),[p,m]=C({prop:o,onChange:i,defaultProp:a});return t.createElement(JS,{scope:r,baseId:M(),value:p,onValueChange:m,orientation:s,dir:f,activationMode:c},t.createElement(S.div,u({dir:f,"data-orientation":s},d,{ref:n})))})),nk=t.forwardRef(((e,n)=>{const{__scopeTabs:r,loop:o=!0,...i}=e,a=ek("TabsList",r),s=QS(r);return t.createElement(GS,u({asChild:!0},s,{orientation:a.orientation,dir:a.dir,loop:o}),t.createElement(S.div,u({role:"tablist","aria-orientation":a.orientation},i,{ref:n})))})),rk=t.forwardRef(((e,n)=>{const{__scopeTabs:r,value:o,disabled:i=!1,...a}=e,s=ek("TabsTrigger",r),l=QS(r),c=ik(s.baseId,o),d=ak(s.baseId,o),f=o===s.value;return t.createElement(qS,u({asChild:!0},l,{focusable:!i,active:f}),t.createElement(S.button,u({type:"button",role:"tab","aria-selected":f,"aria-controls":d,"data-state":f?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:c},a,{ref:n,onMouseDown:y(e.onMouseDown,(e=>{i||0!==e.button||!1!==e.ctrlKey?e.preventDefault():s.onValueChange(o)})),onKeyDown:y(e.onKeyDown,(e=>{[" ","Enter"].includes(e.key)&&s.onValueChange(o)})),onFocus:y(e.onFocus,(()=>{const e="manual"!==s.activationMode;f||i||!e||s.onValueChange(o)}))})))})),ok=t.forwardRef(((e,n)=>{const{__scopeTabs:r,value:o,forceMount:i,children:a,...s}=e,l=ek("TabsContent",r),c=ik(l.baseId,o),d=ak(l.baseId,o),f=o===l.value,p=t.useRef(f);return t.useEffect((()=>{const e=requestAnimationFrame((()=>p.current=!1));return()=>cancelAnimationFrame(e)}),[]),t.createElement(R,{present:i||f},(({present:r})=>t.createElement(S.div,u({"data-state":f?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":c,hidden:!r,id:d,tabIndex:0},s,{ref:n,style:{...e.style,animationDuration:p.current?"0s":void 0}}),r&&a)))}));function ik(e,t){return`${e}-trigger-${t}`}function ak(e,t){return`${e}-content-${t}`}const sk=nk,lk=rk,uk=ok,ck=tk,dk=a.forwardRef((({className:t="",...n},r)=>e.jsx(sk,{ref:r,className:jt("inline-flex items-center justify-center rounded-md bg-surface-primary",t),...n})));dk.displayName=sk.displayName;const fk=a.forwardRef((({className:t="",...n},r)=>e.jsx(lk,{className:jt("inline-flex min-w-[100px] items-center justify-center rounded-[0.185rem] px-3 py-1.5 text-sm font-medium text-gray-700 transition-all disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-white data-[state=active]:text-gray-800 data-[state=active]:shadow-sm dark:data-[state=active]:bg-gray-700 dark:data-[state=active]:text-gray-200",t),...n,ref:r})));fk.displayName=lk.displayName;const pk=a.forwardRef((({className:t="",...n},r)=>e.jsx(uk,{className:jt("mt-2 rounded-md p-6",t),...n,ref:r})));pk.displayName=uk.displayName;const mk=a.forwardRef((({CancelButton:t,LabelNode:n,label:r,onRemove:o,className:i="",labelClassName:a="",...s},l)=>e.jsxs("div",{ref:l,...s,className:jt("flex max-h-8 items-center overflow-y-hidden rounded-3xl border-2 border-green-600 bg-green-600/20 text-xs text-green-600 dark:text-white",i),children:[e.jsxs("div",{className:jt("ml-1 whitespace-pre-wrap px-2 py-1",a),children:[n?e.jsxs(e.Fragment,{children:[n," "]}):null,r]}),t||o&&e.jsx("button",{onClick:e=>{e.stopPropagation(),o(e)},className:"rounded-full bg-green-600/50","aria-label":`Remove ${r}`,children:e.jsx(Pp,{className:"m-[1.5px] p-1"})})]})));mk.displayName="Tag";const hk=a.memo(mk),gk=a.forwardRef((({className:t="",...n},r)=>e.jsx("textarea",{className:jt("flex h-20 w-full resize-none rounded-md border border-gray-300 bg-transparent px-3 py-2 text-sm placeholder:text-gray-400 focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-700 dark:text-gray-50 dark:focus:ring-gray-400 dark:focus:ring-offset-gray-900",t),ref:r,...n})));gk.displayName="Textarea";var vk=t.useLayoutEffect,bk=function(e,t){"function"!=typeof e?e.current=t:e(t)},wk={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},yk=function(e){Object.keys(wk).forEach((function(t){e.style.setProperty(t,wk[t],"important")}))},xk=null,Ck=function(e,t){var n=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize};var Sk=function(){},kk=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],Ek=!!document.documentElement.currentStyle,Rk=function(e){var t=window.getComputedStyle(e);if(null===t)return null;var n=function(e,t){return e.reduce((function(e,n){return e[n]=t[n],e}),{})}(kk,t),r=n.boxSizing;return""===r?null:(Ek&&"border-box"===r&&(n.width=parseFloat(n.width)+parseFloat(n.borderRightWidth)+parseFloat(n.borderLeftWidth)+parseFloat(n.paddingRight)+parseFloat(n.paddingLeft)+"px"),{sizingStyle:n,paddingSize:parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),borderSize:parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth)})};function Pk(e,t,n){var r,o,i=(r=n,o=a.useRef(r),vk((function(){o.current=r})),o);a.useLayoutEffect((function(){var n=function(e){return i.current(e)};if(e)return e.addEventListener(t,n),function(){return e.removeEventListener(t,n)}}),[])}var Nk=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],jk=function(e,n){var r=e.cacheMeasurements,o=e.maxRows,i=e.minRows,s=e.onChange,l=void 0===s?Sk:s,c=e.onHeightChange,d=void 0===c?Sk:c,f=Ry(e,Nk),p=void 0!==f.value,m=a.useRef(null),h=function(e,n){var r=t.useRef();return t.useCallback((function(t){e.current=t,r.current&&bk(r.current,null),r.current=n,n&&bk(n,t)}),[n])}(m,n),g=a.useRef(0),v=a.useRef(),b=function(){var e=m.current,t=r&&v.current?v.current:Rk(e);if(t){v.current=t;var n=function(e,t,n,r){void 0===n&&(n=1),void 0===r&&(r=1/0),xk||((xk=document.createElement("textarea")).setAttribute("tabindex","-1"),xk.setAttribute("aria-hidden","true"),yk(xk)),null===xk.parentNode&&document.body.appendChild(xk);var o=e.paddingSize,i=e.borderSize,a=e.sizingStyle,s=a.boxSizing;Object.keys(a).forEach((function(e){var t=e;xk.style[t]=a[t]})),yk(xk),xk.value=t;var l=Ck(xk,e);xk.value=t,l=Ck(xk,e),xk.value="x";var u=xk.scrollHeight-o,c=u*n;"border-box"===s&&(c=c+o+i),l=Math.max(c,l);var d=u*r;return"border-box"===s&&(d=d+o+i),[l=Math.min(d,l),u]}(t,e.value||e.placeholder||"x",i,o),a=n[0],s=n[1];g.current!==a&&(g.current=a,e.style.setProperty("height",a+"px","important"),d(a,{rowHeight:s}))}};return a.useLayoutEffect(b),Pk(window,"resize",b),function(e){Pk(document.fonts,"loadingdone",e)}(b),a.createElement("textarea",u({},f,{onChange:function(e){p||b(),l(e)},ref:h}))},Mk=a.forwardRef(jk);const Ak=t.forwardRef(((n,o)=>{const[,i]=t.useState(!1),a=r.useAtomValue(Jb).toLowerCase();return t.useLayoutEffect((()=>i(!0)),[]),e.jsx(Mk,{dir:a,...n,ref:o})})),Ik=t.forwardRef(((e,n)=>t.createElement(S.span,u({},e,{ref:n,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})))),Tk="ToastProvider",[Ok,Lk,Dk]=w("Toast"),[Fk,_k]=c("Toast",[Dk]),[Vk,zk]=Fk(Tk),Hk="toast.viewportPause",Bk="toast.viewportResume",$k="Toast",Wk=t.forwardRef(((e,n)=>{const{forceMount:r,open:o,defaultOpen:i,onOpenChange:a,...s}=e,[l=!0,c]=C({prop:o,defaultProp:i,onChange:a});return t.createElement(R,{present:r||l},t.createElement(Gk,u({open:l},s,{ref:n,onClose:()=>c(!1),onPause:x(e.onPause),onResume:x(e.onResume),onSwipeStart:y(e.onSwipeStart,(e=>{e.currentTarget.setAttribute("data-swipe","start")})),onSwipeMove:y(e.onSwipeMove,(e=>{const{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","move"),e.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${n}px`)})),onSwipeCancel:y(e.onSwipeCancel,(e=>{e.currentTarget.setAttribute("data-swipe","cancel"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")})),onSwipeEnd:y(e.onSwipeEnd,(e=>{const{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","end"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${n}px`),c(!1)}))})))})),[Uk,Kk]=Fk($k,{onClose(){}}),Gk=t.forwardRef(((e,r)=>{const{__scopeToast:o,type:i="foreground",duration:a,open:s,onClose:l,onEscapeKeyDown:c,onPause:d,onResume:f,onSwipeStart:m,onSwipeMove:h,onSwipeCancel:g,onSwipeEnd:v,...b}=e,w=zk($k,o),[C,k]=t.useState(null),E=p(r,(e=>k(e))),R=t.useRef(null),P=t.useRef(null),N=a||w.duration,j=t.useRef(0),M=t.useRef(N),A=t.useRef(0),{onToastAdd:I,onToastRemove:T}=w,O=x((()=>{var e;(null==C?void 0:C.contains(document.activeElement))&&(null===(e=w.viewport)||void 0===e||e.focus()),l()})),L=t.useCallback((e=>{e&&e!==1/0&&(window.clearTimeout(A.current),j.current=(new Date).getTime(),A.current=window.setTimeout(O,e))}),[O]);t.useEffect((()=>{const e=w.viewport;if(e){const t=()=>{L(M.current),null==f||f()},n=()=>{const e=(new Date).getTime()-j.current;M.current=M.current-e,window.clearTimeout(A.current),null==d||d()};return e.addEventListener(Hk,n),e.addEventListener(Bk,t),()=>{e.removeEventListener(Hk,n),e.removeEventListener(Bk,t)}}}),[w.viewport,N,d,f,L]),t.useEffect((()=>{s&&!w.isClosePausedRef.current&&L(N)}),[s,N,w.isClosePausedRef,L]),t.useEffect((()=>(I(),()=>T())),[I,T]);const D=t.useMemo((()=>C?Jk(C):null),[C]);return w.viewport?t.createElement(t.Fragment,null,D&&t.createElement(qk,{__scopeToast:o,role:"status","aria-live":"foreground"===i?"assertive":"polite","aria-atomic":!0},D),t.createElement(Uk,{scope:o,onClose:O},n.createPortal(t.createElement(Ok.ItemSlot,{scope:o},t.createElement(Tc,{asChild:!0,onEscapeKeyDown:y(c,(()=>{w.isFocusedToastEscapeKeyDownRef.current||O(),w.isFocusedToastEscapeKeyDownRef.current=!1}))},t.createElement(S.li,u({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":w.swipeDirection},b,{ref:E,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:y(e.onKeyDown,(e=>{"Escape"===e.key&&(null==c||c(e.nativeEvent),e.nativeEvent.defaultPrevented||(w.isFocusedToastEscapeKeyDownRef.current=!0,O()))})),onPointerDown:y(e.onPointerDown,(e=>{0===e.button&&(R.current={x:e.clientX,y:e.clientY})})),onPointerMove:y(e.onPointerMove,(e=>{if(!R.current)return;const t=e.clientX-R.current.x,n=e.clientY-R.current.y,r=Boolean(P.current),o=["left","right"].includes(w.swipeDirection),i=["left","up"].includes(w.swipeDirection)?Math.min:Math.max,a=o?i(0,t):0,s=o?0:i(0,n),l="touch"===e.pointerType?10:2,u={x:a,y:s},c={originalEvent:e,delta:u};r?(P.current=u,eE("toast.swipeMove",h,c,{discrete:!1})):tE(u,w.swipeDirection,l)?(P.current=u,eE("toast.swipeStart",m,c,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>l||Math.abs(n)>l)&&(R.current=null)})),onPointerUp:y(e.onPointerUp,(e=>{const t=P.current,n=e.target;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),P.current=null,R.current=null,t){const n=e.currentTarget,r={originalEvent:e,delta:t};tE(t,w.swipeDirection,w.swipeThreshold)?eE("toast.swipeEnd",v,r,{discrete:!0}):eE("toast.swipeCancel",g,r,{discrete:!0}),n.addEventListener("click",(e=>e.preventDefault()),{once:!0})}}))})))),w.viewport))):null}));Gk.propTypes={type(e){if(e.type&&!["foreground","background"].includes(e.type)){return new Error(`Invalid prop \`type\` supplied to \`${$k}\`. Expected \`foreground | background\`.`)}return null}};const qk=e=>{const{__scopeToast:n,children:r,...o}=e,i=zk($k,n),[a,s]=t.useState(!1),[l,u]=t.useState(!1);return function(e=(()=>{})){const t=x(e);E((()=>{let e=0,n=0;return e=window.requestAnimationFrame((()=>n=window.requestAnimationFrame(t))),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}}),[t])}((()=>s(!0))),t.useEffect((()=>{const e=window.setTimeout((()=>u(!0)),1e3);return()=>window.clearTimeout(e)}),[]),l?null:t.createElement(Wc,{asChild:!0},t.createElement(Ik,o,a&&t.createElement(t.Fragment,null,i.label," ",r)))},Xk=t.forwardRef(((e,n)=>{const{__scopeToast:r,...o}=e;return t.createElement(S.div,u({},o,{ref:n}))})),Yk=t.forwardRef(((e,n)=>{const{altText:r,...o}=e;return r?t.createElement(Qk,{altText:r,asChild:!0},t.createElement(Zk,u({},o,{ref:n}))):null}));Yk.propTypes={altText:e=>e.altText?null:new Error("Missing prop `altText` expected on `ToastAction`")};const Zk=t.forwardRef(((e,n)=>{const{__scopeToast:r,...o}=e,i=Kk("ToastClose",r);return t.createElement(Qk,{asChild:!0},t.createElement(S.button,u({type:"button"},o,{ref:n,onClick:y(e.onClick,i.onClose)})))})),Qk=t.forwardRef(((e,n)=>{const{__scopeToast:r,altText:o,...i}=e;return t.createElement(S.div,u({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":o||void 0},i,{ref:n}))}));function Jk(e){const t=[];return Array.from(e.childNodes).forEach((e=>{if(e.nodeType===e.TEXT_NODE&&e.textContent&&t.push(e.textContent),function(e){return e.nodeType===e.ELEMENT_NODE}(e)){const n=e.ariaHidden||e.hidden||"none"===e.style.display,r=""===e.dataset.radixToastAnnounceExclude;if(!n)if(r){const n=e.dataset.radixToastAnnounceAlt;n&&t.push(n)}else t.push(...Jk(e))}})),t}function eE(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?k(o,i):o.dispatchEvent(i)}const tE=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return"left"===t||"right"===t?i&&r>n:!i&&o>n};const nE=Wk,rE=Xk;const oE=t.createContext({});function iE(e){const n=t.useRef(null);return null===n.current&&(n.current=e()),n.current}const aE=t.createContext(null),sE=t.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class lE extends a.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function uE({children:n,isPresent:r}){const o=t.useId(),i=t.useRef(null),s=t.useRef({width:0,height:0,top:0,left:0}),{nonce:l}=t.useContext(sE);return t.useInsertionEffect((()=>{const{width:e,height:t,top:n,left:a}=s.current;if(r||!i.current||!e||!t)return;i.current.dataset.motionPopId=o;const u=document.createElement("style");return l&&(u.nonce=l),document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`\n [data-motion-pop-id="${o}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${t}px !important;\n top: ${n}px !important;\n left: ${a}px !important;\n }\n `),()=>{document.head.removeChild(u)}}),[r]),e.jsx(lE,{isPresent:r,childRef:i,sizeRef:s,children:a.cloneElement(n,{ref:i})})}const cE=({children:n,initial:r,isPresent:o,onExitComplete:i,custom:s,presenceAffectsLayout:l,mode:u})=>{const c=iE(dE),d=t.useId(),f=t.useCallback((e=>{c.set(e,!0);for(const e of c.values())if(!e)return;i&&i()}),[c,i]),p=t.useMemo((()=>({id:d,initial:r,isPresent:o,custom:s,onExitComplete:f,register:e=>(c.set(e,!1),()=>c.delete(e))})),l?[Math.random(),f]:[o,f]);return t.useMemo((()=>{c.forEach(((e,t)=>c.set(t,!1)))}),[o]),a.useEffect((()=>{!o&&!c.size&&i&&i()}),[o]),"popLayout"===u&&(n=e.jsx(uE,{isPresent:o,children:n})),e.jsx(aE.Provider,{value:p,children:n})};function dE(){return new Map}function fE(e=!0){const n=t.useContext(aE);if(null===n)return[!0,null];const{isPresent:r,onExitComplete:o,register:i}=n,a=t.useId();t.useEffect((()=>{e&&i(a)}),[e]);const s=t.useCallback((()=>e&&o&&o(a)),[a,o,e]);return!r&&o?[!1,s]:[!0]}const pE=e=>e.key||"";function mE(e){const n=[];return t.Children.forEach(e,(e=>{t.isValidElement(e)&&n.push(e)})),n}const hE="undefined"!=typeof window,gE=hE?t.useLayoutEffect:t.useEffect,vE=({children:n,custom:r,initial:o=!0,onExitComplete:i,presenceAffectsLayout:a=!0,mode:s="sync",propagate:l=!1})=>{const[u,c]=fE(l),d=t.useMemo((()=>mE(n)),[n]),f=l&&!u?[]:d.map(pE),p=t.useRef(!0),m=t.useRef(d),h=iE((()=>new Map)),[g,v]=t.useState(d),[b,w]=t.useState(d);gE((()=>{p.current=!1,m.current=d;for(let e=0;e<b.length;e++){const t=pE(b[e]);f.includes(t)?h.delete(t):!0!==h.get(t)&&h.set(t,!1)}}),[b,f.length,f.join("-")]);const y=[];if(d!==g){let e=[...d];for(let t=0;t<b.length;t++){const n=b[t],r=pE(n);f.includes(r)||(e.splice(t,0,n),y.push(n))}return"wait"===s&&y.length&&(e=y),w(mE(e)),void v(d)}const{forceRender:x}=t.useContext(oE);return e.jsx(e.Fragment,{children:b.map((t=>{const n=pE(t),g=!(l&&!u)&&(d===b||f.includes(n));return e.jsx(cE,{isPresent:g,initial:!(p.current&&!o)&&void 0,custom:g?void 0:r,presenceAffectsLayout:a,mode:s,onExitComplete:g?void 0:()=>{if(!h.has(n))return;h.set(n,!0);let e=!0;h.forEach((t=>{t||(e=!1)})),e&&(null==x||x(),w(m.current),l&&(null==c||c()),i&&i())},children:t},n)}))})},bE=e=>e;let wE=bE;function yE(e){let t;return()=>(void 0===t&&(t=e()),t)}const xE=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},CE=e=>1e3*e,SE=e=>e/1e3,kE=!1;const EE=["read","resolveKeyframes","update","preRender","render","postRender"];function RE(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,a=EE.reduce(((e,t)=>(e[t]=function(e){let t=new Set,n=new Set,r=!1,o=!1;const i=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function s(t){i.has(t)&&(l.schedule(t),e()),t(a)}const l={schedule:(e,o=!1,a=!1)=>{const s=a&&r?t:n;return o&&i.add(e),s.has(e)||s.add(e),e},cancel:e=>{n.delete(e),i.delete(e)},process:e=>{a=e,r?o=!0:(r=!0,[t,n]=[n,t],t.forEach(s),t.clear(),r=!1,o&&(o=!1,l.process(e)))}};return l}(i),e)),{}),{read:s,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:f}=a,p=()=>{const i=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(i-o.timestamp,40),1),o.timestamp=i,o.isProcessing=!0,s.process(o),l.process(o),u.process(o),c.process(o),d.process(o),f.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(p))};return{schedule:EE.reduce(((t,i)=>{const s=a[i];return t[i]=(t,i=!1,a=!1)=>(n||(n=!0,r=!0,o.isProcessing||e(p)),s.schedule(t,i,a)),t}),{}),cancel:e=>{for(let t=0;t<EE.length;t++)a[EE[t]].cancel(e)},state:o,steps:a}}const{schedule:PE,cancel:NE,state:jE,steps:ME}=RE("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:bE,!0),AE=t.createContext({strict:!1}),IE={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},TE={};for(const e in IE)TE[e]={isEnabled:t=>IE[e].some((e=>!!t[e]))};const OE=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function LE(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||OE.has(e)}let DE=e=>!LE(e);try{(FE=require("@emotion/is-prop-valid").default)&&(DE=e=>e.startsWith("on")?!LE(e):FE(e))}catch(vn){}var FE;function _E(e){if("undefined"==typeof Proxy)return e;const t=new Map;return new Proxy(((...t)=>e(...t)),{get:(n,r)=>"create"===r?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}const VE=t.createContext({});function zE(e){return"string"==typeof e||Array.isArray(e)}function HE(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}const BE=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],$E=["initial",...BE];function WE(e){return HE(e.animate)||$E.some((t=>zE(e[t])))}function UE(e){return Boolean(WE(e)||e.variants)}function KE(e){const{initial:n,animate:r}=function(e,t){if(WE(e)){const{initial:t,animate:n}=e;return{initial:!1===t||zE(t)?t:void 0,animate:zE(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,t.useContext(VE));return t.useMemo((()=>({initial:n,animate:r})),[GE(n),GE(r)])}function GE(e){return Array.isArray(e)?e.join(" "):e}const qE=Symbol.for("motionComponentSymbol");function XE(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function YE(e,n,r){return t.useCallback((t=>{t&&e.onMount&&e.onMount(t),n&&(t?n.mount(t):n.unmount()),r&&("function"==typeof r?r(t):XE(r)&&(r.current=t))}),[n])}const ZE=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),QE="data-"+ZE("framerAppearId"),{schedule:JE}=RE(queueMicrotask,!1),eR=t.createContext({});function tR(e,n,r,o,i){var a,s;const{visualElement:l}=t.useContext(VE),u=t.useContext(AE),c=t.useContext(aE),d=t.useContext(sE).reducedMotion,f=t.useRef(null);o=o||u.renderer,!f.current&&o&&(f.current=o(e,{visualState:n,parent:l,props:r,presenceContext:c,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:d}));const p=f.current,m=t.useContext(eR);!p||p.projection||!i||"html"!==p.type&&"svg"!==p.type||function(e,t,n,r){const{layoutId:o,layout:i,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:nR(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:Boolean(a)||s&&XE(s),visualElement:e,animationType:"string"==typeof i?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}(f.current,r,i,m);const h=t.useRef(!1);t.useInsertionEffect((()=>{p&&h.current&&p.update(r,c)}));const g=r[QE],v=t.useRef(Boolean(g)&&!(null===(a=window.MotionHandoffIsComplete)||void 0===a?void 0:a.call(window,g))&&(null===(s=window.MotionHasOptimisedAnimation)||void 0===s?void 0:s.call(window,g)));return gE((()=>{p&&(h.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),JE.render(p.render),v.current&&p.animationState&&p.animationState.animateChanges())})),t.useEffect((()=>{p&&(!v.current&&p.animationState&&p.animationState.animateChanges(),v.current&&(queueMicrotask((()=>{var e;null===(e=window.MotionHandoffMarkAsComplete)||void 0===e||e.call(window,g)})),v.current=!1))})),p}function nR(e){if(e)return!1!==e.options.allowProjection?e.projection:nR(e.parent)}function rR({preloadedFeatures:n,createVisualElement:r,useRender:o,useVisualState:i,Component:a}){var s,l;function u(n,s){let l;const u={...t.useContext(sE),...n,layoutId:oR(n)},{isStatic:c}=u,d=KE(n),f=i(n,c);if(!c&&hE){t.useContext(AE).strict;const e=function(e){const{drag:t,layout:n}=TE;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==n?void 0:n.isEnabled(e))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(u);l=e.MeasureLayout,d.visualElement=tR(a,f,u,r,e.ProjectionNode)}return e.jsxs(VE.Provider,{value:d,children:[l&&d.visualElement?e.jsx(l,{visualElement:d.visualElement,...u}):null,o(a,n,YE(f,d.visualElement,s),f,c,d.visualElement)]})}n&&function(e){for(const t in e)TE[t]={...TE[t],...e[t]}}(n),u.displayName=`motion.${"string"==typeof a?a:`create(${null!==(l=null!==(s=a.displayName)&&void 0!==s?s:a.name)&&void 0!==l?l:""})`}`;const c=t.forwardRef(u);return c[qE]=a,c}function oR({layoutId:e}){const n=t.useContext(oE).id;return n&&void 0!==e?n+"-"+e:e}const iR=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function aR(e){return"string"==typeof e&&!e.includes("-")&&!!(iR.indexOf(e)>-1||/[A-Z]/u.test(e))}function sR(e){const t=[{},{}];return null==e||e.values.forEach(((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()})),t}function lR(e,t,n,r){if("function"==typeof t){const[o,i]=sR(r);t=t(void 0!==n?n:e.custom,o,i)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){const[o,i]=sR(r);t=t(void 0!==n?n:e.custom,o,i)}return t}const uR=e=>Array.isArray(e),cR=e=>Boolean(e&&"object"==typeof e&&e.mix&&e.toValue),dR=e=>uR(e)?e[e.length-1]||0:e,fR=e=>Boolean(e&&e.getVelocity);function pR(e){const t=fR(e)?e.get():e;return cR(t)?t.toValue():t}const mR=e=>(n,r)=>{const o=t.useContext(VE),i=t.useContext(aE),a=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,o,i){const a={latestValues:hR(r,o,i,e),renderState:t()};return n&&(a.onMount=e=>n({props:r,current:e,...a}),a.onUpdate=e=>n(e)),a}(e,n,o,i);return r?a():iE(a)};function hR(e,t,n,r){const o={},i=r(e,{});for(const e in i)o[e]=pR(i[e]);let{initial:a,animate:s}=e;const l=WE(e),u=UE(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let c=!!n&&!1===n.initial;c=c||!1===a;const d=c?s:a;if(d&&"boolean"!=typeof d&&!HE(d)){const t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){const r=lR(e,t[n]);if(r){const{transitionEnd:e,transition:t,...n}=r;for(const e in n){let t=n[e];if(Array.isArray(t)){t=t[c?t.length-1:0]}null!==t&&(o[e]=t)}for(const t in e)o[t]=e[t]}}}return o}const gR=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],vR=new Set(gR),bR=e=>t=>"string"==typeof t&&t.startsWith(e),wR=bR("--"),yR=bR("var(--"),xR=e=>!!yR(e)&&CR.test(e.split("/*")[0].trim()),CR=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,SR=(e,t)=>t&&"number"==typeof e?t.transform(e):e,kR=(e,t,n)=>n>t?t:n<e?e:n,ER={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},RR={...ER,transform:e=>kR(0,1,e)},PR={...ER,default:1},NR=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),jR=NR("deg"),MR=NR("%"),AR=NR("px"),IR=NR("vh"),TR=NR("vw"),OR={...MR,parse:e=>MR.parse(e)/100,transform:e=>MR.transform(100*e)},LR={borderWidth:AR,borderTopWidth:AR,borderRightWidth:AR,borderBottomWidth:AR,borderLeftWidth:AR,borderRadius:AR,radius:AR,borderTopLeftRadius:AR,borderTopRightRadius:AR,borderBottomRightRadius:AR,borderBottomLeftRadius:AR,width:AR,maxWidth:AR,height:AR,maxHeight:AR,top:AR,right:AR,bottom:AR,left:AR,padding:AR,paddingTop:AR,paddingRight:AR,paddingBottom:AR,paddingLeft:AR,margin:AR,marginTop:AR,marginRight:AR,marginBottom:AR,marginLeft:AR,backgroundPositionX:AR,backgroundPositionY:AR},DR={rotate:jR,rotateX:jR,rotateY:jR,rotateZ:jR,scale:PR,scaleX:PR,scaleY:PR,scaleZ:PR,skew:jR,skewX:jR,skewY:jR,distance:AR,translateX:AR,translateY:AR,translateZ:AR,x:AR,y:AR,z:AR,perspective:AR,transformPerspective:AR,opacity:RR,originX:OR,originY:OR,originZ:AR},FR={...ER,transform:Math.round},_R={...LR,...DR,zIndex:FR,size:AR,fillOpacity:RR,strokeOpacity:RR,numOctaves:FR},VR={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},zR=gR.length;function HR(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let a=!1,s=!1;for(const e in t){const n=t[e];if(vR.has(e))a=!0;else if(wR(e))o[e]=n;else{const t=SR(n,_R[e]);e.startsWith("origin")?(s=!0,i[e]=t):r[e]=t}}if(t.transform||(a||n?r.transform=function(e,t,n){let r="",o=!0;for(let i=0;i<zR;i++){const a=gR[i],s=e[a];if(void 0===s)continue;let l=!0;if(l="number"==typeof s?s===(a.startsWith("scale")?1:0):0===parseFloat(s),!l||n){const e=SR(s,_R[a]);l||(o=!1,r+=`${VR[a]||a}(${e}) `),n&&(t[a]=e)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),s){const{originX:e="50%",originY:t="50%",originZ:n=0}=i;r.transformOrigin=`${e} ${t} ${n}`}}const BR={offset:"stroke-dashoffset",array:"stroke-dasharray"},$R={offset:"strokeDashoffset",array:"strokeDasharray"};function WR(e,t,n){return"string"==typeof e?e:AR.transform(t+n*e)}function UR(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...u},c,d){if(HR(e,u,d),c)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:f,style:p,dimensions:m}=e;f.transform&&(m&&(p.transform=f.transform),delete f.transform),m&&(void 0!==o||void 0!==i||p.transform)&&(p.transformOrigin=function(e,t,n){return`${WR(t,e.x,e.width)} ${WR(n,e.y,e.height)}`}(m,void 0!==o?o:.5,void 0!==i?i:.5)),void 0!==t&&(f.x=t),void 0!==n&&(f.y=n),void 0!==r&&(f.scale=r),void 0!==a&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?BR:$R;e[i.offset]=AR.transform(-r);const a=AR.transform(t),s=AR.transform(n);e[i.array]=`${a} ${s}`}(f,a,s,l,!1)}const KR=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),GR=()=>({...KR(),attrs:{}}),qR=e=>"string"==typeof e&&"svg"===e.toLowerCase();function XR(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const t in n)e.style.setProperty(t,n[t])}const YR=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function ZR(e,t,n,r){XR(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(YR.has(n)?n:ZE(n),t.attrs[n])}const QR={};function JR(e,{layout:t,layoutId:n}){return vR.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!QR[e]||"opacity"===e)}function eP(e,t,n){var r;const{style:o}=e,i={};for(const a in o)(fR(o[a])||t.style&&fR(t.style[a])||JR(a,e)||void 0!==(null===(r=null==n?void 0:n.getValue(a))||void 0===r?void 0:r.liveStyle))&&(i[a]=o[a]);return i}function tP(e,t,n){const r=eP(e,t,n);for(const n in e)if(fR(e[n])||fR(t[n])){r[-1!==gR.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]}return r}const nP=["x","y","width","height","cx","cy","r"],rP={useVisualState:mR({scrapeMotionValuesFromProps:tP,createRenderState:GR,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:o})=>{if(!n)return;let i=!!e.drag;if(!i)for(const e in o)if(vR.has(e)){i=!0;break}if(!i)return;let a=!t;if(t)for(let n=0;n<nP.length;n++){const r=nP[n];e[r]!==t[r]&&(a=!0)}a&&PE.read((()=>{!function(e,t){try{t.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(e){t.dimensions={x:0,y:0,width:0,height:0}}}(n,r),PE.render((()=>{UR(r,o,qR(n.tagName),e.transformTemplate),ZR(n,r)}))}))}})},oP={useVisualState:mR({scrapeMotionValuesFromProps:eP,createRenderState:KR})};function iP(e,t,n){for(const r in t)fR(t[r])||JR(r,n)||(e[r]=t[r])}function aP(e,n){const r={};return iP(r,e.style||{},e),Object.assign(r,function({transformTemplate:e},n){return t.useMemo((()=>{const t=KR();return HR(t,n,e),Object.assign({},t.vars,t.style)}),[n])}(e,n)),r}function sP(e,t){const n={},r=aP(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function lP(e,n,r,o){const i=t.useMemo((()=>{const t=GR();return UR(t,n,qR(o),e.transformTemplate),{...t.attrs,style:{...t.style}}}),[n]);if(e.style){const t={};iP(t,e.style,e),i.style={...t,...i.style}}return i}function uP(e=!1){return(n,r,o,{latestValues:i},a)=>{const s=(aR(n)?lP:sP)(r,i,a,n),l=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(DE(o)||!0===n&&LE(o)||!t&&!LE(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(r,"string"==typeof n,e),u=n!==t.Fragment?{...l,...s,ref:o}:{},{children:c}=r,d=t.useMemo((()=>fR(c)?c.get():c),[c]);return t.createElement(n,{...u,children:d})}}function cP(e,t){return function(n,{forwardMotionProps:r}={forwardMotionProps:!1}){return rR({...aR(n)?rP:oP,preloadedFeatures:e,useRender:uP(r),createVisualElement:t,Component:n})}}function dP(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function fP(e,t,n){const r=e.getProps();return lR(r,t,void 0!==n?n:r.custom,e)}const pP=yE((()=>void 0!==window.ScrollTimeline));class mP{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map((e=>"finished"in e?e.finished:e)))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e,t){const n=this.animations.map((n=>pP()&&n.attachTimeline?n.attachTimeline(e):"function"==typeof t?t(n):void 0));return()=>{n.forEach(((e,t)=>{e&&e(),this.animations[t].stop()}))}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach((t=>t[e]()))}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class hP extends mP{then(e,t){return Promise.all(this.animations).then(e).catch(t)}}function gP(e,t){return e?e[t]||e.default||e:void 0}const vP=2e4;function bP(e){let t=0;let n=e.next(t);for(;!n.done&&t<vP;)t+=50,n=e.next(t);return t>=vP?1/0:t}function wP(e){return"function"==typeof e}function yP(e,t){e.timeline=t,e.onfinish=null}const xP=e=>Array.isArray(e)&&"number"==typeof e[0],CP={linearEasing:void 0};function SP(e,t){const n=yE(e);return()=>{var e;return null!==(e=CP[t])&&void 0!==e?e:n()}}const kP=SP((()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0}),"linearEasing"),EP=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let t=0;t<o;t++)r+=e(xE(0,o-1,t))+", ";return`linear(${r.substring(0,r.length-2)})`};function RP(e){return Boolean("function"==typeof e&&kP()||!e||"string"==typeof e&&(e in NP||kP())||xP(e)||Array.isArray(e)&&e.every(RP))}const PP=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,NP={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:PP([0,.65,.55,1]),circOut:PP([.55,0,1,.45]),backIn:PP([.31,.01,.66,-.59]),backOut:PP([.33,1.53,.69,.99])};function jP(e,t){return e?"function"==typeof e&&kP()?EP(e,t):xP(e)?PP(e):Array.isArray(e)?e.map((e=>jP(e,t)||NP.easeOut)):NP[e]:void 0}const MP={x:!1,y:!1};function AP(){return MP.x||MP.y}function IP(e,t){const n=function(e,t,n){if(e instanceof Element)return[e];if("string"==typeof e){const t=document.querySelectorAll(e);return t?Array.from(t):[]}return Array.from(e)}(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function TP(e){return t=>{"touch"===t.pointerType||AP()||e(t)}}const OP=(e,t)=>!!t&&(e===t||OP(e,t.parentElement)),LP=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary,DP=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);const FP=new WeakSet;function _P(e){return t=>{"Enter"===t.key&&e(t)}}function VP(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function zP(e){return LP(e)&&!AP()}function HP(e,t,n={}){const[r,o,i]=IP(e,n),a=e=>{const r=e.currentTarget;if(!zP(e)||FP.has(r))return;FP.add(r);const i=t(e),a=(e,t)=>{window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",l),zP(e)&&FP.has(r)&&(FP.delete(r),"function"==typeof i&&i(e,{success:t}))},s=e=>{a(e,n.useGlobalTarget||OP(r,e.target))},l=e=>{a(e,!1)};window.addEventListener("pointerup",s,o),window.addEventListener("pointercancel",l,o)};return r.forEach((e=>{(function(e){return DP.has(e.tagName)||-1!==e.tabIndex})(e)||null!==e.getAttribute("tabindex")||(e.tabIndex=0);(n.useGlobalTarget?window:e).addEventListener("pointerdown",a,o),e.addEventListener("focus",(e=>((e,t)=>{const n=e.currentTarget;if(!n)return;const r=_P((()=>{if(FP.has(n))return;VP(n,"down");const e=_P((()=>{VP(n,"up")}));n.addEventListener("keyup",e,t),n.addEventListener("blur",(()=>VP(n,"cancel")),t)}));n.addEventListener("keydown",r,t),n.addEventListener("blur",(()=>n.removeEventListener("keydown",r)),t)})(e,o)),o)})),i}const BP=new Set(["width","height","top","left","right","bottom",...gR]);let $P;function WP(){$P=void 0}const UP={now:()=>(void 0===$P&&UP.set(jE.isProcessing||kE?jE.timestamp:performance.now()),$P),set:e=>{$P=e,queueMicrotask(WP)}};function KP(e,t){-1===e.indexOf(t)&&e.push(t)}function GP(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class qP{constructor(){this.subscriptions=[]}add(e){return KP(this.subscriptions,e),()=>GP(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function XP(e,t){return t?e*(1e3/t):0}class YP{constructor(e,t={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{const n=UP.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){var t;this.current=e,this.updatedAt=UP.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t))))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new qP);const n=this.events[e].add(t);return"change"===e?()=>{n(),PE.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=UP.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return XP(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ZP(e,t){return new YP(e,t)}function QP(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ZP(n))}function JP(e,t){const n=e.getValue("willChange");if(r=n,Boolean(fR(r)&&r.add))return n.add(t);var r}function eN(e){return e.props[QE]}const tN=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,nN=1e-7,rN=12;function oN(e,t,n,r){if(e===t&&n===r)return bE;const o=t=>function(e,t,n,r,o){let i,a,s=0;do{a=t+(n-t)/2,i=tN(a,r,o)-e,i>0?n=a:t=a}while(Math.abs(i)>nN&&++s<rN);return a}(t,0,1,e,n);return e=>0===e||1===e?e:tN(o(e),t,r)}const iN=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,aN=e=>t=>1-e(1-t),sN=oN(.33,1.53,.69,.99),lN=aN(sN),uN=iN(lN),cN=e=>(e*=2)<1?.5*lN(e):.5*(2-Math.pow(2,-10*(e-1))),dN=e=>1-Math.sin(Math.acos(e)),fN=aN(dN),pN=iN(dN),mN=e=>/^0[^.\s]+$/u.test(e);const hN=e=>Math.round(1e5*e)/1e5,gN=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;const vN=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,bN=(e,t)=>n=>Boolean("string"==typeof n&&vN.test(n)&&n.startsWith(e)||t&&!function(e){return null==e}(n)&&Object.prototype.hasOwnProperty.call(n,t)),wN=(e,t,n)=>r=>{if("string"!=typeof r)return r;const[o,i,a,s]=r.match(gN);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},yN={...ER,transform:e=>Math.round((e=>kR(0,255,e))(e))},xN={test:bN("rgb","red"),parse:wN("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+yN.transform(e)+", "+yN.transform(t)+", "+yN.transform(n)+", "+hN(RR.transform(r))+")"};const CN={test:bN("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:xN.transform},SN={test:bN("hsl","hue"),parse:wN("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+MR.transform(hN(t))+", "+MR.transform(hN(n))+", "+hN(RR.transform(r))+")"},kN={test:e=>xN.test(e)||CN.test(e)||SN.test(e),parse:e=>xN.test(e)?xN.parse(e):SN.test(e)?SN.parse(e):CN.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?xN.transform(e):SN.transform(e)},EN=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;const RN="number",PN="color",NN="var",jN="var(",MN="${}",AN=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function IN(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(AN,(e=>(kN.test(e)?(r.color.push(i),o.push(PN),n.push(kN.parse(e))):e.startsWith(jN)?(r.var.push(i),o.push(NN),n.push(e)):(r.number.push(i),o.push(RN),n.push(parseFloat(e))),++i,MN))).split(MN);return{values:n,split:a,indexes:r,types:o}}function TN(e){return IN(e).values}function ON(e){const{split:t,types:n}=IN(e),r=t.length;return e=>{let o="";for(let i=0;i<r;i++)if(o+=t[i],void 0!==e[i]){const t=n[i];o+=t===RN?hN(e[i]):t===PN?kN.transform(e[i]):e[i]}return o}}const LN=e=>"number"==typeof e?0:e;const DN={test:function(e){var t,n;return isNaN(e)&&"string"==typeof e&&((null===(t=e.match(gN))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(EN))||void 0===n?void 0:n.length)||0)>0},parse:TN,createTransformer:ON,getAnimatableNone:function(e){const t=TN(e);return ON(e)(t.map(LN))}},FN=new Set(["brightness","contrast","saturate","opacity"]);function _N(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(gN)||[];if(!r)return e;const o=n.replace(r,"");let i=FN.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const VN=/\b([a-z-]*)\(.*?\)/gu,zN={...DN,getAnimatableNone:e=>{const t=e.match(VN);return t?t.map(_N).join(" "):e}},HN={..._R,color:kN,backgroundColor:kN,outlineColor:kN,fill:kN,stroke:kN,borderColor:kN,borderTopColor:kN,borderRightColor:kN,borderBottomColor:kN,borderLeftColor:kN,filter:zN,WebkitFilter:zN},BN=e=>HN[e];function $N(e,t){let n=BN(e);return n!==zN&&(n=DN),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const WN=new Set(["auto","none","0"]);const UN=e=>e===ER||e===AR,KN=(e,t)=>parseFloat(e.split(", ")[t]),GN=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return KN(o[1],t);{const t=r.match(/^matrix\((.+)\)$/u);return t?KN(t[1],e):0}},qN=new Set(["x","y","z"]),XN=gR.filter((e=>!qN.has(e)));const YN={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:GN(4,13),y:GN(5,14)};YN.translateX=YN.x,YN.translateY=YN.y;const ZN=new Set;let QN=!1,JN=!1;function ej(){if(JN){const e=Array.from(ZN).filter((e=>e.needsMeasurement)),t=new Set(e.map((e=>e.element))),n=new Map;t.forEach((e=>{const t=function(e){const t=[];return XN.forEach((n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t}(e);t.length&&(n.set(e,t),e.render())})),e.forEach((e=>e.measureInitialState())),t.forEach((e=>{e.render();const t=n.get(e);t&&t.forEach((([t,n])=>{var r;null===(r=e.getValue(t))||void 0===r||r.set(n)}))})),e.forEach((e=>e.measureEndState())),e.forEach((e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)}))}JN=!1,QN=!1,ZN.forEach((e=>e.complete())),ZN.clear()}function tj(){ZN.forEach((e=>{e.readKeyframes(),e.needsMeasurement&&(JN=!0)}))}class nj{constructor(e,t,n,r,o,i=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=o,this.isAsync=i}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ZN.add(this),QN||(QN=!0,PE.read(tj),PE.resolveKeyframes(ej))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;for(let o=0;o<e.length;o++)if(null===e[o])if(0===o){const o=null==r?void 0:r.get(),i=e[e.length-1];if(void 0!==o)e[0]=o;else if(n&&t){const r=n.readValue(t,i);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=i),r&&void 0===o&&r.set(e[0])}else e[o]=e[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ZN.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ZN.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const rj=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),oj=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ij(e,t,n=1){const[r,o]=function(e){const t=oj.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${null!=n?n:r}`,o]}(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const e=i.trim();return rj(e)?parseFloat(e):e}return xR(o)?ij(o,t,n+1):o}const aj=e=>t=>t.test(e),sj=[ER,AR,MR,jR,TR,IR,{test:e=>"auto"===e,parse:e=>e}],lj=e=>sj.find(aj(e));class uj extends nj{constructor(e,t,n,r,o){super(e,t,n,r,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&(r=r.trim(),xR(r))){const o=ij(r,t.current);void 0!==o&&(e[n]=o),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!BP.has(n)||2!==e.length)return;const[r,o]=e,i=lj(r),a=lj(o);if(i!==a)if(UN(i)&&UN(a))for(let t=0;t<e.length;t++){const n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)("number"==typeof(r=e[t])?0===r:null===r||"none"===r||"0"===r||mN(r))&&n.push(t);var r;n.length&&function(e,t,n){let r,o=0;for(;o<e.length&&!r;){const t=e[o];"string"==typeof t&&!WN.has(t)&&IN(t).values.length&&(r=e[o]),o++}if(r&&n)for(const o of t)e[o]=$N(n,r)}(e,n,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=YN[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){var e;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const i=r.length-1,a=r[i];r[i]=YN[n](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEach((([e,n])=>{t.getValue(e).set(n)})),this.resolveNoneKeyframes()}}const cj=(e,t)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!DN.test(e)&&"0"!==e||e.startsWith("url(")));function dj(e,t,n,r){const o=e[0];if(null===o)return!1;if("display"===t||"visibility"===t)return!0;const i=e[e.length-1],a=cj(o,t),s=cj(i,t);return!(!a||!s)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||wP(n))&&r)}const fj=e=>null!==e;function pj(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(fj),i=t&&"loop"!==n&&t%2==1?0:o.length-1;return i&&void 0!==r?r:o[i]}class mj{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=UP.now(),this.options={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:o,repeatType:i,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(tj(),ej()),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=UP.now(),this.hasAttemptedResolve=!0;const{name:n,type:r,velocity:o,delay:i,onComplete:a,onUpdate:s,isGenerator:l}=this.options;if(!l&&!dj(e,n,r,o)){if(!i)return s&&s(pj(e,this.options,t)),a&&a(),void this.resolveFinishedPromise();this.options.duration=0}const u=this.initPlayback(e,t);!1!==u&&(this._resolved={keyframes:e,finalKeyframe:t,...u},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise((e=>{this.resolveFinishedPromise=e}))}}const hj=(e,t,n)=>e+(t-e)*n;function gj(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function vj(e,t){return n=>n>0?t:e}const bj=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},wj=[CN,xN,SN];function yj(e){const t=(e=>wj.find((t=>t.test(e))))(e);if(!Boolean(t))return!1;let n=t.parse(e);return t===SN&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,i=0,a=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;o=gj(s,r,e+1/3),i=gj(s,r,e),a=gj(s,r,e-1/3)}else o=i=a=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:r}}(n)),n}const xj=(e,t)=>{const n=yj(e),r=yj(t);if(!n||!r)return vj(e,t);const o={...n};return e=>(o.red=bj(n.red,r.red,e),o.green=bj(n.green,r.green,e),o.blue=bj(n.blue,r.blue,e),o.alpha=hj(n.alpha,r.alpha,e),xN.transform(o))},Cj=(e,t)=>n=>t(e(n)),Sj=(...e)=>e.reduce(Cj),kj=new Set(["none","hidden"]);function Ej(e,t){return n=>hj(e,t,n)}function Rj(e){return"number"==typeof e?Ej:"string"==typeof e?xR(e)?vj:kN.test(e)?xj:jj:Array.isArray(e)?Pj:"object"==typeof e?kN.test(e)?xj:Nj:vj}function Pj(e,t){const n=[...e],r=n.length,o=e.map(((e,n)=>Rj(e)(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}}function Nj(e,t){const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=Rj(e[o])(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}}const jj=(e,t)=>{const n=DN.createTransformer(t),r=IN(e),o=IN(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?kj.has(e)&&!o.values.length||kj.has(t)&&!r.values.length?function(e,t){return kj.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):Sj(Pj(function(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],s=e.indexes[a][o[a]],l=null!==(n=e.values[s])&&void 0!==n?n:0;r[i]=l,o[a]++}return r}(r,o),o.values),n):vj(e,t)};function Mj(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return hj(e,t,n);return Rj(e)(e,t)}const Aj=5;function Ij(e,t,n){const r=Math.max(t-Aj,0);return XP(n-e(r),t-r)}const Tj={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Oj=.001;function Lj({duration:e=Tj.duration,bounce:t=Tj.bounce,velocity:n=Tj.velocity,mass:r=Tj.mass}){let o,i,a=1-t;a=kR(Tj.minDamping,Tj.maxDamping,a),e=kR(Tj.minDuration,Tj.maxDuration,SE(e)),a<1?(o=t=>{const r=t*a,o=r*e,i=r-n,s=Fj(t,a),l=Math.exp(-o);return Oj-i/s*l},i=t=>{const r=t*a*e,i=r*n+n,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-r),u=Fj(Math.pow(t,2),a);return(-o(t)+Oj>0?-1:1)*((i-s)*l)/u}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let n=1;n<Dj;n++)r-=e(r)/t(r);return r}(o,i,5/e);if(e=CE(e),isNaN(s))return{stiffness:Tj.stiffness,damping:Tj.damping,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}const Dj=12;function Fj(e,t){return e*Math.sqrt(1-t*t)}const _j=["duration","bounce"],Vj=["stiffness","damping","mass"];function zj(e,t){return t.some((t=>void 0!==e[t]))}function Hj(e=Tj.visualDuration,t=Tj.bounce){const n="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],s={done:!1,value:i},{stiffness:l,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:p}=function(e){let t={velocity:Tj.velocity,stiffness:Tj.stiffness,damping:Tj.damping,mass:Tj.mass,isResolvedFromDuration:!1,...e};if(!zj(e,Vj)&&zj(e,_j))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(1.2*n),o=r*r,i=2*kR(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:Tj.mass,stiffness:o,damping:i}}else{const n=Lj(e);t={...t,...n,mass:Tj.mass},t.isResolvedFromDuration=!0}return t}({...n,velocity:-SE(n.velocity||0)}),m=f||0,h=u/(2*Math.sqrt(l*c)),g=a-i,v=SE(Math.sqrt(l/c)),b=Math.abs(g)<5;let w;if(r||(r=b?Tj.restSpeed.granular:Tj.restSpeed.default),o||(o=b?Tj.restDelta.granular:Tj.restDelta.default),h<1){const e=Fj(v,h);w=t=>{const n=Math.exp(-h*v*t);return a-n*((m+h*v*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}}else if(1===h)w=e=>a-Math.exp(-v*e)*(g+(m+v*g)*e);else{const e=v*Math.sqrt(h*h-1);w=t=>{const n=Math.exp(-h*v*t),r=Math.min(e*t,300);return a-n*((m+h*v*g)*Math.sinh(r)+e*g*Math.cosh(r))/e}}const y={calculatedDuration:p&&d||null,next:e=>{const t=w(e);if(p)s.done=e>=d;else{let n=0;h<1&&(n=0===e?CE(m):Ij(w,e,t));const i=Math.abs(n)<=r,l=Math.abs(a-t)<=o;s.done=i&&l}return s.value=s.done?a:t,s},toString:()=>{const e=Math.min(bP(y),vP),t=EP((t=>y.next(e*t).value),e,30);return e+"ms "+t}};return y}function Bj({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},p=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let m=n*t;const h=d+m,g=void 0===a?h:a(h);g!==h&&(m=g-d);const v=e=>-m*Math.exp(-e/r),b=e=>g+v(e),w=e=>{const t=v(e),n=b(e);f.done=Math.abs(t)<=u,f.value=f.done?g:n};let y,x;const C=e=>{(e=>void 0!==s&&e<s||void 0!==l&&e>l)(f.value)&&(y=e,x=Hj({keyframes:[f.value,p(f.value)],velocity:Ij(b,e,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return x||void 0!==y||(t=!0,w(e),C(e)),void 0!==y&&e>=y?x.next(e-y):(!t&&w(e),f)}}}const $j=oN(.42,0,1,1),Wj=oN(0,0,.58,1),Uj=oN(.42,0,.58,1),Kj={linear:bE,easeIn:$j,easeInOut:Uj,easeOut:Wj,circIn:dN,circInOut:pN,circOut:fN,backIn:lN,backInOut:uN,backOut:sN,anticipate:cN},Gj=e=>{if(xP(e)){wE(4===e.length);const[t,n,r,o]=e;return oN(t,n,r,o)}return"string"==typeof e?Kj[e]:e};function qj(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(wE(i===t.length),1===i)return()=>t[0];if(2===i&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=function(e,t,n){const r=[],o=n||Mj,i=e.length-1;for(let n=0;n<i;n++){let i=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||bE:t;i=Sj(e,i)}r.push(i)}return r}(t,r,o),l=s.length,u=n=>{if(a&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);const o=xE(e[r],e[r+1],n);return s[r](o)};return n?t=>u(kR(e[0],e[i-1],t)):u}function Xj(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=xE(0,t,r);e.push(hj(n,1,o))}}(t,e.length-1),t}function Yj({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=(e=>Array.isArray(e)&&"number"!=typeof e[0])(r)?r.map(Gj):Gj(r),i={done:!1,value:t[0]},a=function(e,t){return e.map((e=>e*t))}(n&&n.length===t.length?n:Xj(t),e),s=qj(a,t,{ease:Array.isArray(o)?o:(l=t,u=o,l.map((()=>u||Uj)).splice(0,l.length-1))});var l,u;return{calculatedDuration:e,next:t=>(i.value=s(t),i.done=t>=e,i)}}const Zj=e=>{const t=({timestamp:t})=>e(t);return{start:()=>PE.update(t,!0),stop:()=>NE(t),now:()=>jE.isProcessing?jE.timestamp:UP.now()}},Qj={decay:Bj,inertia:Bj,tween:Yj,keyframes:Yj,spring:Hj},Jj=e=>e/100;class eM extends mj{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:e}=this.options;e&&e()};const{name:t,motionValue:n,element:r,keyframes:o}=this.options,i=(null==r?void 0:r.KeyframeResolver)||nj;this.resolver=new i(o,((e,t)=>this.onKeyframesResolved(e,t)),t,n,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:t="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:o,velocity:i=0}=this.options,a=wP(t)?t:Qj[t]||Yj;let s,l;a!==Yj&&"number"!=typeof e[0]&&(s=Sj(Jj,Mj(e[0],e[1])),e=[0,100]);const u=a({...this.options,keyframes:e});"mirror"===o&&(l=a({...this.options,keyframes:[...e].reverse(),velocity:-i})),null===u.calculatedDuration&&(u.calculatedDuration=bP(u));const{calculatedDuration:c}=u,d=c+r;return{generator:u,mirroredGenerator:l,mapPercentToKeyframes:s,calculatedDuration:c,resolvedDuration:d,totalDuration:d*(n+1)-r}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){const{resolved:n}=this;if(!n){const{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}const{finalKeyframe:r,generator:o,mirroredGenerator:i,mapPercentToKeyframes:a,keyframes:s,calculatedDuration:l,totalDuration:u,resolvedDuration:c}=n;if(null===this.startTime)return o.next(0);const{delay:d,repeat:f,repeatType:p,repeatDelay:m,onUpdate:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const g=this.currentTime-d*(this.speed>=0?1:-1),v=this.speed>=0?g<0:g>u;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let b=this.currentTime,w=o;if(f){const e=Math.min(this.currentTime,u)/c;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,f+1);Boolean(t%2)&&("reverse"===p?(n=1-n,m&&(n-=m/c)):"mirror"===p&&(w=i)),b=kR(0,1,n)*c}const y=v?{done:!1,value:s[0]}:w.next(b);a&&(y.value=a(y.value));let{done:x}=y;v||null===l||(x=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const C=null===this.holdTime&&("finished"===this.state||"running"===this.state&&x);return C&&void 0!==r&&(y.value=pj(s,this.options,r)),h&&h(y.value),C&&this.finish(),y}get duration(){const{resolved:e}=this;return e?SE(e.calculatedDuration):0}get time(){return SE(this.currentTime)}set time(e){e=CE(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=SE(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:e=Zj,onPlay:t,startTime:n}=this.options;this.driver||(this.driver=e((e=>this.tick(e)))),t&&t();const r=this.driver.now();null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=r):this.startTime=null!=n?n:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;this._resolved?(this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const tM=new Set(["opacity","clipPath","filter","transform"]);function nM(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:a="loop",ease:s="easeInOut",times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=jP(s,o);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:"reverse"===a?"alternate":"normal"})}const rM=yE((()=>Object.hasOwnProperty.call(Element.prototype,"animate")));const oM={anticipate:cN,backInOut:uN,circInOut:pN};class iM extends mj{constructor(e){super(e);const{name:t,motionValue:n,element:r,keyframes:o}=this.options;this.resolver=new uj(o,((e,t)=>this.onKeyframesResolved(e,t)),t,n,r),this.resolver.scheduleResolve()}initPlayback(e,t){let{duration:n=300,times:r,ease:o,type:i,motionValue:a,name:s,startTime:l}=this.options;if(!a.owner||!a.owner.current)return!1;if("string"==typeof o&&kP()&&o in oM&&(o=oM[o]),function(e){return wP(e.type)||"spring"===e.type||!RP(e.ease)}(this.options)){const{onComplete:t,onUpdate:a,motionValue:s,element:l,...u}=this.options,c=function(e,t){const n=new eM({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let i=0;for(;!r.done&&i<2e4;)r=n.sample(i),o.push(r.value),i+=10;return{times:void 0,keyframes:o,duration:i-10,ease:"linear"}}(e,u);1===(e=c.keyframes).length&&(e[1]=e[0]),n=c.duration,r=c.times,o=c.ease,i="keyframes"}const u=nM(a.owner.current,s,e,{...this.options,duration:n,times:r,ease:o});return u.startTime=null!=l?l:this.calcStartTime(),this.pendingTimeline?(yP(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:n}=this.options;a.set(pj(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:n,times:r,type:i,ease:o,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:t}=e;return SE(t)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:t}=e;return SE(t.currentTime||0)}set time(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.currentTime=CE(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:t}=e;return t.playbackRate}set speed(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:t}=e;return t.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:t}=e;return t.startTime}attachTimeline(e){if(this._resolved){const{resolved:t}=this;if(!t)return bE;const{animation:n}=t;yP(n,e)}else this.pendingTimeline=e;return bE}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:t,keyframes:n,duration:r,type:o,ease:i,times:a}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){const{motionValue:e,onUpdate:t,onComplete:s,element:l,...u}=this.options,c=new eM({...u,keyframes:n,duration:r,type:o,ease:i,times:a,isGenerator:!0}),d=CE(this.time);e.setWithVelocity(c.sample(d-10).value,c.sample(d).value,10)}const{onStop:s}=this.options;s&&s(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:i,type:a}=e;if(!(t&&t.owner&&t.owner.current instanceof HTMLElement))return!1;const{onUpdate:s,transformTemplate:l}=t.owner.getProps();return rM()&&n&&tM.has(n)&&!s&&!l&&!r&&"mirror"!==o&&0!==i&&"inertia"!==a}}const aM={type:"spring",stiffness:500,damping:25,restSpeed:10},sM={type:"keyframes",duration:.8},lM={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},uM=(e,{keyframes:t})=>t.length>2?sM:vR.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:aM:lM;const cM=(e,t,n,r={},o,i)=>a=>{const s=gP(r,e)||{},l=s.delay||r.delay||0;let{elapsed:u=0}=r;u-=CE(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-u,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:i?void 0:o};(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:u,...c}){return!!Object.keys(c).length})(s)||(c={...c,...uM(e,c)}),c.duration&&(c.duration=CE(c.duration)),c.repeatDelay&&(c.repeatDelay=CE(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if((!1===c.type||0===c.duration&&!c.repeatDelay)&&(c.duration=0,0===c.delay&&(d=!0)),d&&!i&&void 0!==t.get()){const e=pj(c.keyframes,s);if(void 0!==e)return PE.update((()=>{c.onUpdate(e),c.onComplete()})),new hP([])}return!i&&iM.supports(c)?new iM(c):new eM(c)};function dM({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function fM(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=t;r&&(a=r);const u=[],c=o&&e.animationState&&e.animationState.getState()[o];for(const t in l){const r=e.getValue(t,null!==(i=e.latestValues[t])&&void 0!==i?i:null),o=l[t];if(void 0===o||c&&dM(c,t))continue;const s={delay:n,...gP(a||{},t)};let d=!1;if(window.MotionHandoffAnimation){const n=eN(e);if(n){const e=window.MotionHandoffAnimation(n,t,PE);null!==e&&(s.startTime=e,d=!0)}}JP(e,t),r.start(cM(t,r,o,e.shouldReduceMotion&&BP.has(t)?{type:!1}:s,e,d));const f=r.animation;f&&u.push(f)}return s&&Promise.all(u).then((()=>{PE.update((()=>{s&&function(e,t){const n=fP(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const t in i)QP(e,t,dR(i[t]))}(e,s)}))})),u}function pM(e,t,n={}){var r;const o=fP(e,t,"exit"===n.type?null===(r=e.presenceContext)||void 0===r?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const a=o?()=>Promise.all(fM(e,o,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:o=0,staggerChildren:a,staggerDirection:s}=i;return function(e,t,n=0,r=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*r,l=1===o?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(mM).forEach(((e,r)=>{e.notify("AnimationStart",t),a.push(pM(e,t,{...i,delay:n+l(r)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(a)}(e,t,o+r,a,s,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[e,t]="beforeChildren"===l?[a,s]:[s,a];return e().then((()=>t()))}return Promise.all([a(),s(n.delay)])}function mM(e,t){return e.sortNodePosition(t)}const hM=$E.length;function gM(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent&&gM(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}const t={};for(let n=0;n<hM;n++){const r=$E[n],o=e.props[r];(zE(o)||!1===o)&&(t[r]=o)}return t}const vM=[...BE].reverse(),bM=BE.length;function wM(e){return t=>Promise.all(t.map((({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map((t=>pM(e,t,n)));r=Promise.all(o)}else if("string"==typeof t)r=pM(e,t,n);else{const o="function"==typeof t?fP(e,t,n.custom):t;r=Promise.all(fM(e,o,n))}return r.then((()=>{e.notify("AnimationComplete",t)}))}(e,t,n))))}function yM(e){let t=wM(e),n=SM(),r=!0;const o=t=>(n,r)=>{var o;const i=fP(e,r,"exit"===t?null===(o=e.presenceContext)||void 0===o?void 0:o.custom:void 0);if(i){const{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function i(i){const{props:a}=e,s=gM(e.parent)||{},l=[],u=new Set;let c={},d=1/0;for(let t=0;t<bM;t++){const f=vM[t],p=n[f],m=void 0!==a[f]?a[f]:s[f],h=zE(m),g=f===i?p.isActive:null;!1===g&&(d=t);let v=m===s[f]&&m!==a[f]&&h;if(v&&r&&e.manuallyAnimateOnMount&&(v=!1),p.protectedKeys={...c},!p.isActive&&null===g||!m&&!p.prevProp||HE(m)||"boolean"==typeof m)continue;const b=xM(p.prevProp,m);let w=b||f===i&&p.isActive&&!v&&h||t>d&&h,y=!1;const x=Array.isArray(m)?m:[m];let C=x.reduce(o(f),{});!1===g&&(C={});const{prevResolvedValues:S={}}=p,k={...S,...C},E=t=>{w=!0,u.has(t)&&(y=!0,u.delete(t)),p.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in k){const t=C[e],n=S[e];if(c.hasOwnProperty(e))continue;let r=!1;r=uR(t)&&uR(n)?!dP(t,n):t!==n,r?null!=t?E(e):u.add(e):void 0!==t&&u.has(e)?E(e):p.protectedKeys[e]=!0}p.prevProp=m,p.prevResolvedValues=C,p.isActive&&(c={...c,...C}),r&&e.blockInitialAnimation&&(w=!1);w&&(!(v&&b)||y)&&l.push(...x.map((e=>({animation:e,options:{type:f}}))))}if(u.size){const t={};u.forEach((n=>{const r=e.getBaseTarget(n),o=e.getValue(n);o&&(o.liveStyle=!0),t[n]=null!=r?r:null})),l.push({animation:t})}let f=Boolean(l.length);return!r||!1!==a.initial&&a.initial!==a.animate||e.manuallyAnimateOnMount||(f=!1),r=!1,f?t(l):Promise.resolve()}return{animateChanges:i,setActive:function(t,r){var o;if(n[t].isActive===r)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach((e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;const a=i(t);for(const e in n)n[e].protectedKeys={};return a},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=SM(),r=!0}}}function xM(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!dP(t,e)}function CM(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function SM(){return{animate:CM(!0),whileInView:CM(),whileHover:CM(),whileTap:CM(),whileDrag:CM(),whileFocus:CM(),exit:CM()}}class kM{constructor(e){this.isMounted=!1,this.node=e}update(){}}let EM=0;const RM={animation:{Feature:class extends kM{constructor(e){super(e),e.animationState||(e.animationState=yM(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();HE(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null===(e=this.unmountControls)||void 0===e||e.call(this)}}},exit:{Feature:class extends kM{constructor(){super(...arguments),this.id=EM++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}};function PM(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function NM(e){return{point:{x:e.pageX,y:e.pageY}}}function jM(e,t,n,r){return PM(e,t,(e=>t=>LP(t)&&e(t,NM(t)))(n),r)}const MM=(e,t)=>Math.abs(e-t);class AM{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=OM(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=MM(e.x,t.x),r=MM(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:r}=e,{timestamp:o}=jE;this.history.push({...r,timestamp:o});const{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=IM(t,this.transformPagePoint),PE.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:n,onSessionEnd:r,resumeAnimation:o}=this.handlers;if(this.dragSnapToOrigin&&o&&o(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const i=OM("pointercancel"===e.type?this.lastMoveEventInfo:IM(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},!LP(e))return;this.dragSnapToOrigin=o,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;const i=IM(NM(e),this.transformPagePoint),{point:a}=i,{timestamp:s}=jE;this.history=[{...a,timestamp:s}];const{onSessionStart:l}=t;l&&l(e,OM(i,this.history)),this.removeListeners=Sj(jM(this.contextWindow,"pointermove",this.handlePointerMove),jM(this.contextWindow,"pointerup",this.handlePointerUp),jM(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),NE(this.updatePoint)}}function IM(e,t){return t?{point:t(e.point)}:e}function TM(e,t){return{x:e.x-t.x,y:e.y-t.y}}function OM({point:e},t){return{point:e,delta:TM(e,DM(t)),offset:TM(e,LM(t)),velocity:FM(t,.1)}}function LM(e){return e[0]}function DM(e){return e[e.length-1]}function FM(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=DM(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>CE(t)));)n--;if(!r)return{x:0,y:0};const i=SE(o.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}const _M=.9999,VM=1.0001,zM=-.01,HM=.01;function BM(e){return e.max-e.min}function $M(e,t,n,r=.5){e.origin=r,e.originPoint=hj(t.min,t.max,e.origin),e.scale=BM(n)/BM(t),e.translate=hj(n.min,n.max,e.origin)-e.originPoint,(e.scale>=_M&&e.scale<=VM||isNaN(e.scale))&&(e.scale=1),(e.translate>=zM&&e.translate<=HM||isNaN(e.translate))&&(e.translate=0)}function WM(e,t,n,r){$M(e.x,t.x,n.x,r?r.originX:void 0),$M(e.y,t.y,n.y,r?r.originY:void 0)}function UM(e,t,n){e.min=n.min+t.min,e.max=e.min+BM(t)}function KM(e,t,n){e.min=t.min-n.min,e.max=e.min+BM(t)}function GM(e,t,n){KM(e.x,t.x,n.x),KM(e.y,t.y,n.y)}function qM(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function XM(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}const YM=.35;function ZM(e,t,n){return{min:QM(e,t),max:QM(e,n)}}function QM(e,t){return"number"==typeof e?e:e[t]||0}const JM=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),eA=()=>({x:{min:0,max:0},y:{min:0,max:0}});function tA(e){return[e("x"),e("y")]}function nA({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function rA(e){return void 0===e||1===e}function oA({scale:e,scaleX:t,scaleY:n}){return!rA(e)||!rA(t)||!rA(n)}function iA(e){return oA(e)||aA(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function aA(e){return sA(e.x)||sA(e.y)}function sA(e){return e&&"0%"!==e}function lA(e,t,n){return n+t*(e-n)}function uA(e,t,n,r,o){return void 0!==o&&(e=lA(e,o,r)),lA(e,n,r)+t}function cA(e,t=0,n=1,r,o){e.min=uA(e.min,t,n,r,o),e.max=uA(e.max,t,n,r,o)}function dA(e,{x:t,y:n}){cA(e.x,t.translate,t.scale,t.originPoint),cA(e.y,n.translate,n.scale,n.originPoint)}const fA=.999999999999,pA=1.0000000000001;function mA(e,t){e.min=e.min+t,e.max=e.max+t}function hA(e,t,n,r,o=.5){cA(e,t,n,hj(e.min,e.max,o),r)}function gA(e,t){hA(e.x,t.x,t.scaleX,t.scale,t.originX),hA(e.y,t.y,t.scaleY,t.scale,t.originY)}function vA(e,t){return nA(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}const bA=({current:e})=>e?e.ownerDocument.defaultView:null,wA=new WeakMap;class yA{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=eA(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:r}=this.getProps();this.panSession=new AM(e,{onSessionStart:e=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(NM(e).point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(i=n)||"y"===i?MP[i]?null:(MP[i]=!0,()=>{MP[i]=!1}):MP.x||MP.y?null:(MP.x=MP.y=!0,()=>{MP.x=MP.y=!1}),!this.openDragLock))return;var i;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),tA((e=>{let t=this.getAxisMotionValue(e).get()||0;if(MR.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=BM(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t})),o&&PE.postRender((()=>o(e,t))),JP(this.visualElement,"transform");const{animationState:a}=this.visualElement;a&&a.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openDragLock)return;const{offset:a}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(a),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>tA((e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:bA(this.visualElement)})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=t;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&PE.postRender((()=>o(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!xA(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?hj(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?hj(n,e,r.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,o=this.constraints;t&&XE(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!r)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:qM(e.x,n,o),y:qM(e.y,t,r)}}(r.layoutBox,t),this.elastic=function(e=YM){return!1===e?e=0:!0===e&&(e=YM),{x:ZM(e,"left","right"),y:ZM(e,"top","bottom")}}(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&tA((e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(r.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!XE(e))return!1;const n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(e,t,n){const r=vA(e,n),{scroll:o}=t;return o&&(mA(r.x,o.offset.x),mA(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:XM(e.x,t.x),y:XM(e.y,t.y)}}(r.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=nA(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=tA((a=>{if(!xA(a,t,this.currentDirection))return;let l=s&&s[a]||{};i&&(l={min:0,max:0});const u=r?200:1e6,c=r?40:1e7,d={type:"inertia",velocity:n?e[a]:0,bounceStiffness:u,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(a,d)}));return Promise.all(l).then(a)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return JP(this.visualElement,e),n.start(cM(e,n,0,t,this.visualElement,!1))}stopAnimation(){tA((e=>this.getAxisMotionValue(e).stop()))}pauseAnimation(){tA((e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()}))}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){tA((t=>{const{drag:n}=this.getProps();if(!xA(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[t];o.set(e[t]-hj(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!XE(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};tA((e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const n=t.get();r[e]=function(e,t){let n=.5;const r=BM(e),o=BM(t);return o>r?n=xE(t.min,t.max-r,e.min):r>o&&(n=xE(e.min,e.max-o,t.min)),kR(0,1,n)}({min:n,max:n},this.constraints[e])}}));const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),tA((t=>{if(!xA(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(hj(o,i,r[t]))}))}addListeners(){if(!this.visualElement.current)return;wA.set(this.visualElement,this);const e=jM(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();XE(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),PE.read(t);const o=PM(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(tA((t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))})),this.visualElement.render())}));return()=>{o(),e(),r(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=YM,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function xA(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const CA=e=>(t,n)=>{e&&PE.postRender((()=>e(t,n)))};const SA={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function kA(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const EA={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!AR.test(e))return e;e=parseFloat(e)}return`${kA(e,t.target.x)}% ${kA(e,t.target.y)}%`}},RA={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=DN.parse(e);if(o.length>5)return r;const i=DN.createTransformer(e),a="number"!=typeof o[0]?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const u=hj(s,l,.5);return"number"==typeof o[2+a]&&(o[2+a]/=u),"number"==typeof o[3+a]&&(o[3+a]/=u),i(o)}};class PA extends t.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var i;i=jA,Object.assign(QR,i),o&&(t.group&&t.group.add(o),n&&n.register&&r&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),SA.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:o}=this.props,i=n.projection;return i?(i.isPresent=o,r||e.layoutDependency!==t||void 0===t?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||PE.postRender((()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),JE.postRender((()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function NA(n){const[r,o]=fE(),i=t.useContext(oE);return e.jsx(PA,{...n,layoutGroup:i,switchLayoutGroup:t.useContext(eR),isPresent:r,safeToRemove:o})}const jA={borderRadius:{...EA,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:EA,borderTopRightRadius:EA,borderBottomLeftRadius:EA,borderBottomRightRadius:EA,boxShadow:RA};const MA=(e,t)=>e.depth-t.depth;class AA{constructor(){this.children=[],this.isDirty=!1}add(e){KP(this.children,e),this.isDirty=!0}remove(e){GP(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(MA),this.isDirty=!1,this.children.forEach(e)}}const IA=["TopLeft","TopRight","BottomLeft","BottomRight"],TA=IA.length,OA=e=>"string"==typeof e?parseFloat(e):e,LA=e=>"number"==typeof e||AR.test(e);function DA(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const FA=VA(0,.5,fN),_A=VA(.5,.95,bE);function VA(e,t,n){return r=>r<e?0:r>t?1:n(xE(e,t,r))}function zA(e,t){e.min=t.min,e.max=t.max}function HA(e,t){zA(e.x,t.x),zA(e.y,t.y)}function BA(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function $A(e,t,n,r,o){return e=lA(e-=t,1/n,r),void 0!==o&&(e=lA(e,1/o,r)),e}function WA(e,t,[n,r,o],i,a){!function(e,t=0,n=1,r=.5,o,i=e,a=e){MR.test(t)&&(t=parseFloat(t),t=hj(a.min,a.max,t/100)-a.min);if("number"!=typeof t)return;let s=hj(i.min,i.max,r);e===i&&(s-=t),e.min=$A(e.min,t,n,s,o),e.max=$A(e.max,t,n,s,o)}(e,t[n],t[r],t[o],t.scale,i,a)}const UA=["x","scaleX","originX"],KA=["y","scaleY","originY"];function GA(e,t,n,r){WA(e.x,t,UA,n?n.x:void 0,r?r.x:void 0),WA(e.y,t,KA,n?n.y:void 0,r?r.y:void 0)}function qA(e){return 0===e.translate&&1===e.scale}function XA(e){return qA(e.x)&&qA(e.y)}function YA(e,t){return e.min===t.min&&e.max===t.max}function ZA(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function QA(e,t){return ZA(e.x,t.x)&&ZA(e.y,t.y)}function JA(e){return BM(e.x)/BM(e.y)}function eI(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class tI{constructor(){this.members=[]}add(e){KP(this.members,e),e.scheduleRender()}remove(e){if(GP(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let n;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const nI={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},rI="undefined"!=typeof window&&void 0!==window.MotionDebug,oI=["","X","Y","Z"],iI={visibility:"hidden"};let aI=0;function sI(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function lI(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=eN(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",PE,!(t||r))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&lI(r)}function uI({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=aI++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,rI&&(nI.totalNodes=nI.resolvedTargetDeltas=nI.recalculatedProjection=0),this.nodes.forEach(fI),this.nodes.forEach(wI),this.nodes.forEach(yI),this.nodes.forEach(pI),rI&&window.MotionDebug.record(nI)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new AA)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new qP),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;var r;this.isSVG=(r=t)instanceof SVGElement&&"svg"!==r.tagName,this.instance=t;const{layoutId:o,layout:i,visualElement:a}=this.options;if(a&&!a.current&&a.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||o)&&(this.isLayoutDirty=!0),e){let n;const r=()=>this.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=UP.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(NE(r),e(i-t))};return PE.read(r,!0),()=>NE(r)}(r,250),SA.hasAnimatedSinceResize&&(SA.hasAnimatedSinceResize=!1,this.nodes.forEach(bI))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&a&&(o||i)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||a.getDefaultTransition()||RI,{onLayoutAnimationStart:i,onLayoutAnimationComplete:s}=a.getProps(),l=!this.targetLayout||!QA(this.targetLayout,r)||n,u=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,u);const t={...gP(o,"layout"),onPlay:i,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||bI(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,NE(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(xI),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&lI(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(hI);this.isUpdating||this.nodes.forEach(gI),this.isUpdating=!1,this.nodes.forEach(vI),this.nodes.forEach(cI),this.nodes.forEach(dI),this.clearAllSnapshots();const e=UP.now();jE.delta=kR(0,1e3/60,e-jE.timestamp),jE.timestamp=e,jE.isProcessing=!0,ME.update.process(jE),ME.preRender.process(jE),ME.render.process(jE),jE.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,JE.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(mI),this.sharedNodes.forEach(CI)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,PE.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){PE.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++){this.path[e].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=eA(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t){const t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!XA(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&(t||iA(this.latestValues)||i)&&(o(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),jI((r=n).x),jI(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var e;const{visualElement:t}=this.options;if(!t)return eA();const n=t.measureViewportBox();if(!((null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)||this.path.some(AI))){const{scroll:e}=this.root;e&&(mA(n.x,e.offset.x),mA(n.y,e.offset.y))}return n}removeElementScroll(e){var t;const n=eA();if(HA(n,e),null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)return n;for(let t=0;t<this.path.length;t++){const r=this.path[t],{scroll:o,options:i}=r;r!==this.root&&o&&i.layoutScroll&&(o.wasRoot&&HA(n,e),mA(n.x,o.offset.x),mA(n.y,o.offset.y))}return n}applyTransform(e,t=!1){const n=eA();HA(n,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&gA(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),iA(r.latestValues)&&gA(n,r.latestValues)}return iA(this.latestValues)&&gA(n,this.latestValues),n}removeTransform(e){const t=eA();HA(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!iA(n.latestValues))continue;oA(n.latestValues)&&n.updateSnapshot();const r=eA();HA(r,n.measurePageBox()),GA(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return iA(this.latestValues)&&GA(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==jE.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const r=Boolean(this.resumingFrom)||this!==n;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:o,layoutId:i}=this.options;if(this.layout&&(o||i)){if(this.resolvedRelativeTargetAt=jE.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=eA(),this.relativeTargetOrigin=eA(),GM(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),HA(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var a,s,l;if(this.target||(this.target=eA(),this.targetWithTransforms=eA()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),a=this.target,s=this.relativeTarget,l=this.relativeParent.target,UM(a.x,s.x,l.x),UM(a.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):HA(this.target,this.layout.layoutBox),dA(this.target,this.targetDelta)):HA(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=eA(),this.relativeTargetOrigin=eA(),GM(this.relativeTargetOrigin,this.target,e.target),HA(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}rI&&nI.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!oA(this.parent.latestValues)&&!aA(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===jE.timestamp&&(r=!1),r)return;const{layout:o,layoutId:i}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!o&&!i)return;HA(this.layoutCorrected,this.layout.layoutBox);const a=this.treeScale.x,s=this.treeScale.y;!function(e,t,n,r=!1){const o=n.length;if(!o)return;let i,a;t.x=t.y=1;for(let s=0;s<o;s++){i=n[s],a=i.projectionDelta;const{visualElement:o}=i.options;o&&o.props.style&&"contents"===o.props.style.display||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&gA(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,dA(e,a)),r&&iA(i.latestValues)&&gA(e,i.latestValues))}t.x<pA&&t.x>fA&&(t.x=1),t.y<pA&&t.y>fA&&(t.y=1)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms=eA());const{target:l}=t;l?(this.projectionDelta&&this.prevProjectionDelta?(BA(this.prevProjectionDelta.x,this.projectionDelta.x),BA(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),WM(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===a&&this.treeScale.y===s&&eI(this.projectionDelta.x,this.prevProjectionDelta.x)&&eI(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),rI&&nI.recalculatedProjection++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null===(t=this.options.visualElement)||void 0===t||t.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=JM(),this.projectionDelta=JM(),this.projectionDeltaWithTransform=JM()}setAnimationOrigin(e,t=!1){const n=this.snapshot,r=n?n.latestValues:{},o={...this.latestValues},i=JM();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const a=eA(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,c=Boolean(s&&!u&&!0===this.options.crossfade&&!this.path.some(EI));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;SI(i.x,e.x,n),SI(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(GM(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,r){kI(e.x,t.x,n.x,r),kI(e.y,t.y,n.y,r)}(this.relativeTarget,this.relativeTargetOrigin,a,n),d&&function(e,t){return YA(e.x,t.x)&&YA(e.y,t.y)}(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d=eA()),HA(d,this.relativeTarget)),s&&(this.animationValues=o,function(e,t,n,r,o,i){o?(e.opacity=hj(0,void 0!==n.opacity?n.opacity:1,FA(r)),e.opacityExit=hj(void 0!==t.opacity?t.opacity:1,0,_A(r))):i&&(e.opacity=hj(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<TA;o++){const i=`border${IA[o]}Radius`;let a=DA(t,i),s=DA(n,i);void 0===a&&void 0===s||(a||(a=0),s||(s=0),0===a||0===s||LA(a)===LA(s)?(e[i]=Math.max(hj(OA(a),OA(s),r),0),(MR.test(s)||MR.test(a))&&(e[i]+="%")):e[i]=s)}(t.rotate||n.rotate)&&(e.rotate=hj(t.rotate||0,n.rotate||0,r))}(o,r,this.latestValues,n,c,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(NE(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=PE.update((()=>{SA.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=fR(e)?e:ZP(e);return r.start(cM("",r,t,n)),r.animation}(0,1e3,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:o}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&MI(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||eA();const t=BM(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=BM(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}HA(t,n),gA(t,o),WM(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new tI);this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;const r={};n.z&&sI("z",e,r,this.animationValues);for(let t=0;t<oI.length;t++)sI(`rotate${oI[t]}`,e,r,this.animationValues),sI(`skew${oI[t]}`,e,r,this.animationValues);e.render();for(const t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}getProjectionStyles(e){var t,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return iI;const r={visibility:""},o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=pR(null==e?void 0:e.pointerEvents)||"",r.transform=o?o(this.latestValues,""):"none",r;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=pR(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!iA(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const a=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=function(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,a=(null==n?void 0:n.z)||0;if((o||i||a)&&(r=`translate3d(${o}px, ${i}px, ${a}px) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:e,rotate:t,rotateX:o,rotateY:i,skewX:a,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),o&&(r+=`rotateX(${o}deg) `),i&&(r+=`rotateY(${i}deg) `),a&&(r+=`skewX(${a}deg) `),s&&(r+=`skewY(${s}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return 1===s&&1===l||(r+=`scale(${s}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,a),o&&(r.transform=o(a,r.transform));const{x:s,y:l}=this.projectionDelta;r.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,i.animationValues?r.opacity=i===this?null!==(n=null!==(t=a.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:r.opacity=i===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const e in QR){if(void 0===a[e])continue;const{correct:t,applyTo:n}=QR[e],o="none"===r.transform?a[e]:t(a[e],i);if(n){const e=n.length;for(let t=0;t<e;t++)r[n[t]]=o}else r[e]=o}return this.options.layoutId&&(r.pointerEvents=i===this?pR(null==e?void 0:e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(hI),this.root.sharedNodes.clear()}}}function cI(e){e.updateLayout()}function dI(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:r}=e.layout,{animationType:o}=e.options,i=n.source!==e.layout.source;"size"===o?tA((e=>{const r=i?n.measuredBox[e]:n.layoutBox[e],o=BM(r);r.min=t[e].min,r.max=r.min+o})):MI(o,n.layoutBox,t)&&tA((r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],a=BM(t[r]);o.max=o.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)}));const a=JM();WM(a,t,n.layoutBox);const s=JM();i?WM(s,e.applyTransform(r,!0),n.measuredBox):WM(s,t,n.layoutBox);const l=!XA(a);let u=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const a=eA();GM(a,n.layoutBox,o.layoutBox);const s=eA();GM(s,t,i.layoutBox),QA(a,s)||(u=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function fI(e){rI&&nI.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function pI(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function mI(e){e.clearSnapshot()}function hI(e){e.clearMeasurements()}function gI(e){e.isLayoutDirty=!1}function vI(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function bI(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function wI(e){e.resolveTargetDelta()}function yI(e){e.calcProjection()}function xI(e){e.resetSkewAndRotation()}function CI(e){e.removeLeadSnapshot()}function SI(e,t,n){e.translate=hj(t.translate,0,n),e.scale=hj(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function kI(e,t,n,r){e.min=hj(t.min,n.min,r),e.max=hj(t.max,n.max,r)}function EI(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const RI={duration:.45,ease:[.4,0,.1,1]},PI=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),NI=PI("applewebkit/")&&!PI("chrome/")?Math.round:bE;function jI(e){e.min=NI(e.min),e.max=NI(e.max)}function MI(e,t,n){return"position"===e||"preserve-aspect"===e&&(r=JA(t),o=JA(n),i=.2,!(Math.abs(r-o)<=i));var r,o,i}function AI(e){var t;return e!==e.root&&(null===(t=e.scroll)||void 0===t?void 0:t.wasRoot)}const II=uI({attachResizeListener:(e,t)=>PM(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),TI={current:void 0},OI=uI({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!TI.current){const e=new II({});e.mount(window),e.setOptions({layoutScroll:!0}),TI.current=e}return TI.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),LI={pan:{Feature:class extends kM{constructor(){super(...arguments),this.removePointerDownListener=bE}onPointerDown(e){this.session=new AM(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:bA(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:CA(e),onStart:CA(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&PE.postRender((()=>r(e,t)))}}}mount(){this.removePointerDownListener=jM(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends kM{constructor(e){super(e),this.removeGroupControls=bE,this.removeListeners=bE,this.controls=new yA(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||bE}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:OI,MeasureLayout:NA}};function DI(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);const o=r["onHover"+n];o&&PE.postRender((()=>o(t,NM(t))))}function FI(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);const o=r["onTap"+("End"===n?"":n)];o&&PE.postRender((()=>o(t,NM(t))))}const _I=new WeakMap,VI=new WeakMap,zI=e=>{const t=_I.get(e.target);t&&t(e)},HI=e=>{e.forEach(zI)};function BI(e,t,n){const r=function({root:e,...t}){const n=e||document;VI.has(n)||VI.set(n,{});const r=VI.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(HI,{root:e,...t})),r[o]}(t);return _I.set(e,n),r.observe(e),()=>{_I.delete(e),r.unobserve(e)}}const $I={some:0,all:1};const WI={inView:{Feature:class extends kM{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:o}=e,i={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:$I[r]};return BI(this.node.current,i,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends kM{mount(){const{current:e}=this.node;e&&(this.unmount=HP(e,(e=>(FI(this.node,e,"Start"),(e,{success:t})=>FI(this.node,e,t?"End":"Cancel"))),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends kM{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Sj(PM(this.node.current,"focus",(()=>this.onFocus())),PM(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends kM{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){const[r,o,i]=IP(e,n),a=TP((e=>{const{target:n}=e,r=t(e);if("function"!=typeof r||!n)return;const i=TP((e=>{r(e),n.removeEventListener("pointerleave",i)}));n.addEventListener("pointerleave",i,o)}));return r.forEach((e=>{e.addEventListener("pointerenter",a,o)})),i}(e,(e=>(DI(this.node,e,"Start"),e=>DI(this.node,e,"End")))))}unmount(){}}}},UI={layout:{ProjectionNode:OI,MeasureLayout:NA}},KI={current:null},GI={current:!1};const qI=[...sj,kN,DN],XI=new WeakMap;const YI=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class ZI{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:o,visualState:i},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=nj,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const e=UP.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,PE.render(this.render,!1,!0))};const{latestValues:s,renderState:l,onUpdate:u}=i;this.onUpdate=u,this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.blockInitialAnimation=Boolean(o),this.isControllingVariants=WE(t),this.isVariantNode=UE(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in d){const t=d[e];void 0!==s[e]&&fR(t)&&t.set(s[e],!1)}}mount(e){this.current=e,XI.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),GI.current||function(){if(GI.current=!0,hE)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>KI.current=e.matches;e.addListener(t),t()}else KI.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||KI.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){XI.delete(this.current),this.projection&&this.projection.unmount(),NE(this.notifyUpdate),NE(this.render),this.valueSubscriptions.forEach((e=>e())),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const n=vR.has(e),r=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&PE.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)})),o=t.on("renderRequest",this.scheduleRender);let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,(()=>{r(),o(),i&&i(),t.owner&&t.stop()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in TE){const t=TE[e];if(!t)continue;const{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):eA()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<YI.length;t++){const n=YI[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){for(const r in t){const o=t[r],i=n[r];if(fR(o))e.addValue(r,o);else if(fR(i))e.addValue(r,ZP(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const t=e.getValue(r);!0===t.liveStyle?t.jump(o):t.hasAnimated||t.set(o)}else{const t=e.getStaticValue(r);e.addValue(r,ZP(void 0!==t?t:o,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=ZP(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let r=void 0===this.latestValues[e]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,e))&&void 0!==n?n:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=r&&("string"==typeof r&&(rj(r)||mN(r))?r=parseFloat(r):!(e=>qI.find(aj(e)))(r)&&DN.test(t)&&(r=$N(e,t)),this.setBaseTarget(e,fR(r)?r.get():r)),fR(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props;let r;if("string"==typeof n||"object"==typeof n){const o=lR(this.props,n,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);o&&(r=o[e])}if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,e);return void 0===o||fR(o)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new qP),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class QI extends ZI{constructor(){super(...arguments),this.KeyframeResolver=uj}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;fR(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}}class JI extends QI{constructor(){super(...arguments),this.type="html",this.renderInstance=XR}readValueFromInstance(e,t){if(vR.has(t)){const e=BN(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=(wR(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return vA(e,t)}build(e,t,n){HR(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return eP(e,t,n)}}class eT extends QI{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=eA}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(vR.has(t)){const e=BN(t);return e&&e.default||0}return t=YR.has(t)?t:ZE(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return tP(e,t,n)}build(e,t,n){UR(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,r){ZR(e,t,0,r)}mount(e){this.isSVGTag=qR(e.tagName),super.mount(e)}}const tT=(e,n)=>aR(e)?new eT(n):new JI(n,{allowProjection:e!==t.Fragment}),nT=_E(cP({...RM,...WI,...LI,...UI},tT)),rT=t.forwardRef((function({description:n,side:r="top",className:o,role:i,...a},s){const l=la({placement:r}),u=Co(l,(e=>e.mounted)),c=Co(l,(e=>e.placement)),{x:d,y:f}=t.useMemo((()=>{switch(c.split("-")[0]){case"top":return{x:0,y:-8};case"bottom":return{x:0,y:8};case"left":return{x:-8,y:0};case"right":return{x:8,y:0};default:return{x:0,y:0}}}),[c]);return e.jsxs(Il,{store:l,hideTimeout:0,children:[e.jsx(Fl,{...a,ref:s,role:i,onKeyDown:e=>{"button"===i&&"Enter"===e.key&&(e.preventDefault(),e.target.click())},className:jt("cursor-pointer",o)}),e.jsx(vE,{children:!0===u&&e.jsxs(Al,{gutter:4,alwaysVisible:!0,className:"tooltip",render:e.jsx(nT.div,{initial:{opacity:0,x:d,y:f},animate:{opacity:1,x:0,y:0},exit:{opacity:0,x:d,y:f}}),children:[e.jsx(Wl,{}),n]})})]})})),oT=({className:t,...n})=>e.jsx("nav",{role:"navigation","aria-label":"pagination",className:jt("mx-auto flex w-full justify-center",t),...n});oT.displayName="Pagination";const iT=a.forwardRef((({className:t,...n},r)=>e.jsx("ul",{ref:r,className:jt("flex flex-row items-center gap-1",t),...n})));iT.displayName="PaginationContent";const aT=a.forwardRef((({className:t,...n},r)=>e.jsx("li",{ref:r,className:jt("",t),...n})));aT.displayName="PaginationItem";const sT=({className:t,isActive:n=!1,size:r="icon",children:o,...i})=>e.jsx("a",{"aria-current":n?"page":void 0,className:jt(Fp({variant:n?"outline":"ghost",size:r}),t),...i,children:o||e.jsx("span",{className:"sr-only",children:"Page link"})});sT.displayName="PaginationLink";const lT=({className:t,...n})=>e.jsxs(sT,{"aria-label":"Go to previous page",size:"default",className:jt("gap-1 pl-2.5",t),...n,children:[e.jsx(gp,{className:"h-4 w-4"}),e.jsx("span",{children:"Previous"})]});lT.displayName="PaginationPrevious";const uT=({className:t,...n})=>e.jsxs(sT,{"aria-label":"Go to next page",size:"default",className:jt("gap-1 pr-2.5",t),...n,children:[e.jsx("span",{children:"Next"}),e.jsx(vp,{className:"h-4 w-4"})]});uT.displayName="PaginationNext";const cT=({className:t,...n})=>e.jsxs("span",{"aria-hidden":!0,className:jt("flex h-9 w-9 items-center justify-center",t),...n,children:[e.jsx(wp,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"More pages"})]});function dT(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return a.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function fT(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}cT.displayName="PaginationEllipsis";var pT=a.forwardRef(((t,n)=>{const{children:r,...o}=t,i=a.Children.toArray(r),s=i.find(gT);if(s){const t=s.props.children,r=i.map((e=>e===s?a.Children.count(t)>1?a.Children.only(null):a.isValidElement(t)?t.props.children:null:e));return e.jsx(mT,{...o,ref:n,children:a.isValidElement(t)?a.cloneElement(t,void 0,r):null})}return e.jsx(mT,{...o,ref:n,children:r})}));pT.displayName="Slot";var mT=a.forwardRef(((e,t)=>{const{children:n,...r}=e;if(a.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==a.Fragment&&(o.ref=t?function(...e){return t=>{let n=!1;const r=e.map((e=>{const r=fT(e,t);return n||"function"!=typeof r||(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():fT(e[t],null)}}}}(t,e):e),a.cloneElement(n,o)}return a.Children.count(n)>1?a.Children.only(null):null}));mT.displayName="SlotClone";var hT=({children:t})=>e.jsx(e.Fragment,{children:t});function gT(e){return a.isValidElement(e)&&e.type===hT}var vT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,n)=>{const r=a.forwardRef(((t,r)=>{const{asChild:o,...i}=t,a=o?pT:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),e.jsx(a,{...i,ref:r})}));return r.displayName=`Primitive.${n}`,{...t,[n]:r}}),{}),bT="Progress",wT=100,[yT,xT]=function(t,n=[]){let r=[];const o=()=>{const e=r.map((e=>a.createContext(e)));return function(n){const r=n?.[t]||e;return a.useMemo((()=>({[`__scope${t}`]:{...n,[t]:r}})),[n,r])}};return o.scopeName=t,[function(n,o){const i=a.createContext(o),s=r.length;r=[...r,o];const l=n=>{const{scope:r,children:o,...l}=n,u=r?.[t]?.[s]||i,c=a.useMemo((()=>l),Object.values(l));return e.jsx(u.Provider,{value:c,children:o})};return l.displayName=n+"Provider",[l,function(e,r){const l=r?.[t]?.[s]||i,u=a.useContext(l);if(u)return u;if(void 0!==o)return o;throw new Error(`\`${e}\` must be used within \`${n}\``)}]},dT(o,...n)]}(bT),[CT,ST]=yT(bT),kT=a.forwardRef(((t,n)=>{const{__scopeProgress:r,value:o=null,max:i,getValueLabel:a=PT,...s}=t;!i&&0!==i||MT(i)||console.error(`Invalid prop \`max\` of value \`${`${i}`}\` supplied to \`${"Progress"}\`. Only numbers greater than 0 are valid max values. Defaulting to \`100\`.`);const l=MT(i)?i:wT;null===o||AT(o,l)||console.error(function(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:\n - a positive number\n - less than the value passed to \`max\` (or 100 if no \`max\` prop is set)\n - \`null\` or \`undefined\` if the progress is indeterminate.\n\nDefaulting to \`null\`.`}(`${o}`,"Progress"));const u=AT(o,l)?o:null,c=jT(u)?a(u,l):void 0;return e.jsx(CT,{scope:r,value:u,max:l,children:e.jsx(vT.div,{"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":jT(u)?u:void 0,"aria-valuetext":c,role:"progressbar","data-state":NT(u,l),"data-value":u??void 0,"data-max":l,...s,ref:n})})}));kT.displayName=bT;var ET="ProgressIndicator",RT=a.forwardRef(((t,n)=>{const{__scopeProgress:r,...o}=t,i=ST(ET,r);return e.jsx(vT.div,{"data-state":NT(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...o,ref:n})}));function PT(e,t){return`${Math.round(e/t*100)}%`}function NT(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function jT(e){return"number"==typeof e}function MT(e){return jT(e)&&!isNaN(e)&&e>0}function AT(e,t){return jT(e)&&!isNaN(e)&&e<=t&&e>=0}RT.displayName=ET;var IT=kT,TT=RT;const OT=a.forwardRef((({className:t,value:n,...r},o)=>e.jsx(IT,{ref:o,className:jt("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",t),...r,children:e.jsx(TT,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(n||0)}%)`}})})));OT.displayName=IT.displayName;var LT=Object.defineProperty,DT=Object.defineProperties,FT=Object.getOwnPropertyDescriptors,_T=Object.getOwnPropertySymbols,VT=Object.prototype.hasOwnProperty,zT=Object.prototype.propertyIsEnumerable,HT=(e,t,n)=>t in e?LT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var BT=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");var $T=a.createContext({}),WT=a.forwardRef(((e,t)=>{var n,r,o,i,s,l=e,{value:u,onChange:c,maxLength:d,textAlign:f="left",pattern:p,placeholder:m,inputMode:h="numeric",onComplete:g,pushPasswordManagerStrategy:v="increase-width",pasteTransformer:b,containerClassName:w,noScriptCSSFallback:y=KT,render:x,children:C}=l,S=((e,t)=>{var n={};for(var r in e)VT.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&_T)for(var r of _T(e))t.indexOf(r)<0&&zT.call(e,r)&&(n[r]=e[r]);return n})(l,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]);let[k,E]=a.useState("string"==typeof S.defaultValue?S.defaultValue:""),R=null!=u?u:k,P=function(e){let t=a.useRef();return a.useEffect((()=>{t.current=e})),t.current}(R),N=a.useCallback((e=>{null==c||c(e),E(e)}),[c]),j=a.useMemo((()=>p?"string"==typeof p?new RegExp(p):p:null),[p]),M=a.useRef(null),A=a.useRef(null),I=a.useRef({value:R,onChange:N,isIOS:"undefined"!=typeof window&&(null==(r=null==(n=null==window?void 0:window.CSS)?void 0:n.supports)?void 0:r.call(n,"-webkit-touch-callout","none"))}),T=a.useRef({prev:[null==(o=M.current)?void 0:o.selectionStart,null==(i=M.current)?void 0:i.selectionEnd,null==(s=M.current)?void 0:s.selectionDirection]});a.useImperativeHandle(t,(()=>M.current),[]),a.useEffect((()=>{let e=M.current,t=A.current;if(!e||!t)return;function n(){if(document.activeElement!==e)return V(null),void H(null);let t,n=e.selectionStart,r=e.selectionEnd,o=e.selectionDirection,i=e.maxLength,a=e.value,s=T.current.prev,l=-1,u=-1;if(0!==a.length&&null!==n&&null!==r){let e=n===r,o=n===a.length&&a.length<i;if(e&&!o){let e=n;if(0===e)l=0,u=1,t="forward";else if(e===i)l=e-1,u=e,t="backward";else if(i>1&&a.length>1){let n=0;if(null!==s[0]&&null!==s[1]){t=e<s[1]?"backward":"forward";let r=s[0]===s[1]&&s[0]<i;"backward"===t&&!r&&(n=-1)}l=n+e,u=n+e+1}}-1!==l&&-1!==u&&l!==u&&M.current.setSelectionRange(l,u,t)}let c=-1!==l?l:n,d=-1!==u?u:r,f=null!=t?t:o;V(c),H(d),T.current.prev=[c,d,f]}if(I.current.value!==e.value&&I.current.onChange(e.value),T.current.prev=[e.selectionStart,e.selectionEnd,e.selectionDirection],document.addEventListener("selectionchange",n,{capture:!0}),n(),document.activeElement===e&&F(!0),!document.getElementById("input-otp-style")){let e=document.createElement("style");if(e.id="input-otp-style",document.head.appendChild(e),e.sheet){let t="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";UT(e.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),UT(e.sheet,`[data-input-otp]:autofill { ${t} }`),UT(e.sheet,`[data-input-otp]:-webkit-autofill { ${t} }`),UT(e.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),UT(e.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let r=()=>{t&&t.style.setProperty("--root-height",`${e.clientHeight}px`)};r();let o=new ResizeObserver(r);return o.observe(e),()=>{document.removeEventListener("selectionchange",n,{capture:!0}),o.disconnect()}}),[]);let[O,L]=a.useState(!1),[D,F]=a.useState(!1),[_,V]=a.useState(null),[z,H]=a.useState(null);a.useEffect((()=>{!function(e){setTimeout(e,0),setTimeout(e,10),setTimeout(e,50)}((()=>{var e,t,n,r;null==(e=M.current)||e.dispatchEvent(new Event("input"));let o=null==(t=M.current)?void 0:t.selectionStart,i=null==(n=M.current)?void 0:n.selectionEnd,a=null==(r=M.current)?void 0:r.selectionDirection;null!==o&&null!==i&&(V(o),H(i),T.current.prev=[o,i,a])}))}),[R,D]),a.useEffect((()=>{void 0!==P&&R!==P&&P.length<d&&R.length===d&&(null==g||g(R))}),[d,g,P,R]);let B=function({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:r}){let[o,i]=a.useState(!1),[s,l]=a.useState(!1),[u,c]=a.useState(!1),d=a.useMemo((()=>"none"!==n&&("increase-width"===n||"experimental-no-flickering"===n)&&o&&s),[o,s,n]),f=a.useCallback((()=>{let r=e.current,o=t.current;if(!r||!o||u||"none"===n)return;let a=r,s=a.getBoundingClientRect().left+a.offsetWidth-18,l=a.getBoundingClientRect().top+a.offsetHeight/2;0===document.querySelectorAll(BT).length&&document.elementFromPoint(s,l)===r||(i(!0),c(!0))}),[e,t,u,n]);return a.useEffect((()=>{let t=e.current;if(!t||"none"===n)return;function r(){let e=window.innerWidth-t.getBoundingClientRect().right;l(e>=40)}r();let o=setInterval(r,1e3);return()=>{clearInterval(o)}}),[e,n]),a.useEffect((()=>{let e=r||document.activeElement===t.current;if("none"===n||!e)return;let o=setTimeout(f,0),i=setTimeout(f,2e3),a=setTimeout(f,5e3),s=setTimeout((()=>{c(!0)}),6e3);return()=>{clearTimeout(o),clearTimeout(i),clearTimeout(a),clearTimeout(s)}}),[t,r,n,f]),{hasPWMBadge:o,willPushPWMBadge:d,PWM_BADGE_SPACE_WIDTH:"40px"}}({containerRef:A,inputRef:M,pushPasswordManagerStrategy:v,isFocused:D}),$=a.useCallback((e=>{let t=e.currentTarget.value.slice(0,d);t.length>0&&j&&!j.test(t)?e.preventDefault():("string"==typeof P&&t.length<P.length&&document.dispatchEvent(new Event("selectionchange")),N(t))}),[d,N,P,j]),W=a.useCallback((()=>{var e;if(M.current){let t=Math.min(M.current.value.length,d-1),n=M.current.value.length;null==(e=M.current)||e.setSelectionRange(t,n),V(t),H(n)}F(!0)}),[d]),U=a.useCallback((e=>{var t,n;let r=M.current;if(!(b||I.current.isIOS&&e.clipboardData&&r))return;let o=e.clipboardData.getData("text/plain"),i=b?b(o):o;e.preventDefault();let a=null==(t=M.current)?void 0:t.selectionStart,s=null==(n=M.current)?void 0:n.selectionEnd,l=(a!==s?R.slice(0,a)+i+R.slice(s):R.slice(0,a)+i+R.slice(a)).slice(0,d);if(l.length>0&&j&&!j.test(l))return;r.value=l,N(l);let u=Math.min(l.length,d-1),c=l.length;r.setSelectionRange(u,c),V(u),H(c)}),[d,N,j,R]),K=a.useMemo((()=>({position:"relative",cursor:S.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"})),[S.disabled]),G=a.useMemo((()=>({position:"absolute",inset:0,width:B.willPushPWMBadge?`calc(100% + ${B.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:B.willPushPWMBadge?`inset(0 ${B.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:f,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"})),[B.PWM_BADGE_SPACE_WIDTH,B.willPushPWMBadge,f]),q=a.useMemo((()=>a.createElement("input",((e,t)=>DT(e,FT(t)))(((e,t)=>{for(var n in t||(t={}))VT.call(t,n)&&HT(e,n,t[n]);if(_T)for(var n of _T(t))zT.call(t,n)&&HT(e,n,t[n]);return e})({autoComplete:S.autoComplete||"one-time-code"},S),{"data-input-otp":!0,"data-input-otp-placeholder-shown":0===R.length||void 0,"data-input-otp-mss":_,"data-input-otp-mse":z,inputMode:h,pattern:null==j?void 0:j.source,"aria-placeholder":m,style:G,maxLength:d,value:R,ref:M,onPaste:e=>{var t;U(e),null==(t=S.onPaste)||t.call(S,e)},onChange:$,onMouseOver:e=>{var t;L(!0),null==(t=S.onMouseOver)||t.call(S,e)},onMouseLeave:e=>{var t;L(!1),null==(t=S.onMouseLeave)||t.call(S,e)},onFocus:e=>{var t;W(),null==(t=S.onFocus)||t.call(S,e)},onBlur:e=>{var t;F(!1),null==(t=S.onBlur)||t.call(S,e)}}))),[$,W,U,h,G,d,z,_,S,null==j?void 0:j.source,R]),X=a.useMemo((()=>({slots:Array.from({length:d}).map(((e,t)=>{var n;let r=D&&null!==_&&null!==z&&(_===z&&t===_||t>=_&&t<z),o=void 0!==R[t]?R[t]:null;return{char:o,placeholderChar:void 0!==R[0]?null:null!=(n=null==m?void 0:m[t])?n:null,isActive:r,hasFakeCaret:r&&null===o}})),isFocused:D,isHovering:!S.disabled&&O})),[D,O,d,z,_,S.disabled,R]),Y=a.useMemo((()=>x?x(X):a.createElement($T.Provider,{value:X},C)),[C,X,x]);return a.createElement(a.Fragment,null,null!==y&&a.createElement("noscript",null,a.createElement("style",null,y)),a.createElement("div",{ref:A,"data-input-otp-container":!0,style:K,className:w},Y,a.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},q)))}));function UT(e,t){try{e.insertRule(t)}catch(e){console.error("input-otp could not insert CSS rule:",t)}}WT.displayName="Input";var KT="\n[data-input-otp] {\n --nojs-bg: white !important;\n --nojs-fg: black !important;\n\n background-color: var(--nojs-bg) !important;\n color: var(--nojs-fg) !important;\n caret-color: var(--nojs-fg) !important;\n letter-spacing: .25em !important;\n text-align: center !important;\n border: 1px solid var(--nojs-fg) !important;\n border-radius: 4px !important;\n width: 100% !important;\n}\n@media (prefers-color-scheme: dark) {\n [data-input-otp] {\n --nojs-bg: black !important;\n --nojs-fg: white !important;\n }\n}";const GT=a.forwardRef((({className:t,containerClassName:n,...r},o)=>e.jsx(WT,{ref:o,containerClassName:jt("flex items-center gap-2 has-[:disabled]:opacity-50",n),className:jt("disabled:cursor-not-allowed",t),...r})));GT.displayName="InputOTP";const qT=a.forwardRef((({className:t,...n},r)=>e.jsx("div",{ref:r,className:jt("flex items-center",t),...n})));qT.displayName="InputOTPGroup";const XT=a.forwardRef((({index:t,className:n,...r},o)=>{const i=a.useContext($T),{char:s,hasFakeCaret:l,isActive:u}=i.slots[t];return e.jsxs("div",{ref:o,className:jt("text-md relative flex h-11 w-11 items-center justify-center border-y border-r border-input shadow-sm transition-all first:rounded-l-xl first:border-l last:rounded-r-xl",u&&"z-10 ring-1 ring-ring",n),...r,children:[s,l&&e.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:e.jsx("div",{className:"animate-caret-blink h-4 w-px bg-foreground duration-1000"})})]})}));XT.displayName="InputOTPSlot";const YT=a.forwardRef((({...t},n)=>e.jsx("div",{ref:n,role:"separator",...t,children:e.jsx(xp,{})})));function ZT({value:n,onChange:r,placeholder:o,className:i=""}){const a=Cw(),s=t.useRef(null),l=t.useCallback((e=>r(e.target.value)),[r]);return e.jsxs("div",{className:jt("focus:to-surface-primary/50 group sticky left-0 top-0 z-10 flex h-12 items-center gap-2 bg-gradient-to-b from-surface-tertiary-alt from-65% to-transparent px-3 py-2 text-text-primary transition-colors duration-300 focus:bg-gradient-to-b focus:from-surface-primary",i),children:[e.jsx(Ep,{className:"h-4 w-4 text-text-secondary-alt transition-colors duration-300","aria-hidden":"true"}),e.jsx("input",{ref:s,type:"text",value:n??"",onChange:l,placeholder:o??a("com_ui_select_search_model"),"aria-label":"Search Model",className:"flex-1 rounded-md border-none bg-transparent px-2.5 py-2 text-sm placeholder-text-secondary focus:outline-none focus:ring-1 focus:ring-ring-primary"}),e.jsx("button",{className:jt("relative flex h-5 w-5 items-center justify-end rounded-md text-text-secondary-alt",n?.length?"cursor-pointer opacity-100":"hidden"),"aria-label":"Clear search",onClick:()=>{r(""),setTimeout((()=>{s.current?.focus()}),0)},tabIndex:0,children:e.jsx(Pp,{"aria-hidden":"true",className:jt("text-text-secondary-alt",n?.length?"cursor-pointer opacity-100":"opacity-0")})})]})}function QT(e){return"string"==typeof e?e.startsWith("---")&&e.endsWith("---")?"":e.toUpperCase():""}function JT({availableOptions:n=[],placeholder:r,getTextKeyOverride:o,className:i,disabled:a=!1}){const[s,l]=t.useState(null),u=n.length>10&&!a,c=o||QT,d=t.useMemo((()=>{const e=s??"";if(!u||!e||!n.length)return n;const t=e.toUpperCase();return n.filter((e=>c(e).includes(t)))}),[n,c,s,u]),f=t.useCallback((e=>l(e)),[]);return[d,u?e.jsx(ZT,{value:s,className:i,onChange:f,placeholder:r}):null]}YT.displayName="InputOTPSeparator";const eO=t.createContext(null);eO.displayName="PanelGroupContext";const tO={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},nO=10,rO=t.useLayoutEffect,oO=a["useId".toString()],iO="function"==typeof oO?oO:()=>null;let aO=0;function sO(e=null){const n=iO(),r=t.useRef(e||n||null);return null===r.current&&(r.current=""+aO++),null!=e?e:r.current}function lO({children:e,className:n="",collapsedSize:r,collapsible:o,defaultSize:i,forwardedRef:a,id:s,maxSize:l,minSize:u,onCollapse:c,onExpand:d,onResize:f,order:p,style:m,tagName:h="div",...g}){const v=t.useContext(eO);if(null===v)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:b,expandPanel:w,getPanelSize:y,getPanelStyle:x,groupId:C,isPanelCollapsed:S,reevaluatePanelConstraints:k,registerPanel:E,resizePanel:R,unregisterPanel:P}=v,N=sO(s),j=t.useRef({callbacks:{onCollapse:c,onExpand:d,onResize:f},constraints:{collapsedSize:r,collapsible:o,defaultSize:i,maxSize:l,minSize:u},id:N,idIsFromProps:void 0!==s,order:p});t.useRef({didLogMissingDefaultSizeWarning:!1}),rO((()=>{const{callbacks:e,constraints:t}=j.current,n={...t};j.current.id=N,j.current.idIsFromProps=void 0!==s,j.current.order=p,e.onCollapse=c,e.onExpand=d,e.onResize=f,t.collapsedSize=r,t.collapsible=o,t.defaultSize=i,t.maxSize=l,t.minSize=u,n.collapsedSize===t.collapsedSize&&n.collapsible===t.collapsible&&n.maxSize===t.maxSize&&n.minSize===t.minSize||k(j.current,n)})),rO((()=>{const e=j.current;return E(e),()=>{P(e)}}),[p,N,E,P]),t.useImperativeHandle(a,(()=>({collapse:()=>{b(j.current)},expand:e=>{w(j.current,e)},getId:()=>N,getSize:()=>y(j.current),isCollapsed:()=>S(j.current),isExpanded:()=>!S(j.current),resize:e=>{R(j.current,e)}})),[b,w,y,S,N,R]);const M=x(j.current,i);return t.createElement(h,{...g,children:e,className:n,id:N,style:{...M,...m},[tO.groupId]:C,[tO.panel]:"",[tO.panelCollapsible]:o||void 0,[tO.panelId]:N,[tO.panelSize]:parseFloat(""+M.flexGrow).toFixed(1)})}const uO=t.forwardRef(((e,n)=>t.createElement(lO,{...e,forwardedRef:n})));lO.displayName="Panel",uO.displayName="forwardRef(Panel)";let cO=null,dO=-1,fO=null;function pO(e,t){var n,r;const o=function(e,t){if(t){const e=0!=(t&RO),n=0!=(t&PO);if(0!=(t&kO))return e?"se-resize":n?"ne-resize":"e-resize";if(0!=(t&EO))return e?"sw-resize":n?"nw-resize":"w-resize";if(e)return"s-resize";if(n)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}(e,t);if(cO!==o){var i;if(cO=o,null===fO&&(fO=document.createElement("style"),document.head.appendChild(fO)),dO>=0)null===(i=fO.sheet)||void 0===i||i.removeRule(dO);dO=null!==(n=null===(r=fO.sheet)||void 0===r?void 0:r.insertRule(`*{cursor: ${o} !important;}`))&&void 0!==n?n:-1}}function mO(e){return"keydown"===e.type}function hO(e){return e.type.startsWith("pointer")}function gO(e){return e.type.startsWith("mouse")}function vO(e){if(hO(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(gO(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}const bO=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function wO(e){const t=getComputedStyle(e);return"fixed"===t.position||(!("auto"===t.zIndex||"static"===t.position&&!function(e){var t;const n=getComputedStyle(null!==(t=SO(e))&&void 0!==t?t:e).display;return"flex"===n||"inline-flex"===n}(e))||(+t.opacity<1||("transform"in t&&"none"!==t.transform||("webkitTransform"in t&&"none"!==t.webkitTransform||("mixBlendMode"in t&&"normal"!==t.mixBlendMode||("filter"in t&&"none"!==t.filter||("webkitFilter"in t&&"none"!==t.webkitFilter||("isolation"in t&&"isolate"===t.isolation||(!!bO.test(t.willChange)||"touch"===t.webkitOverflowScrolling)))))))))}function yO(e){let t=e.length;for(;t--;){const n=e[t];if(WO(n,"Missing node"),wO(n))return n}return null}function xO(e){return e&&Number(getComputedStyle(e).zIndex)||0}function CO(e){const t=[];for(;e;)t.push(e),e=SO(e);return t}function SO(e){const{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}const kO=1,EO=2,RO=4,PO=8,NO="coarse"===function(){if("function"==typeof matchMedia)return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}();let jO=[],MO=!1,AO=new Map,IO=new Map;const TO=new Set;function OO(e){const{target:t}=e,{x:n,y:r}=vO(e);MO=!0,_O({target:t,x:n,y:r}),BO(),jO.length>0&&($O("down",e),e.preventDefault(),FO(t)||e.stopImmediatePropagation())}function LO(e){const{x:t,y:n}=vO(e);if(MO&&0===e.buttons&&(MO=!1,$O("up",e)),!MO){const{target:r}=e;_O({target:r,x:t,y:n})}$O("move",e),zO(),jO.length>0&&e.preventDefault()}function DO(e){const{target:t}=e,{x:n,y:r}=vO(e);IO.clear(),MO=!1,jO.length>0&&(e.preventDefault(),FO(t)||e.stopImmediatePropagation()),$O("up",e),_O({target:t,x:n,y:r}),zO(),BO()}function FO(e){let t=e;for(;t;){if(t.hasAttribute(tO.resizeHandle))return!0;t=t.parentElement}return!1}function _O({target:e,x:t,y:n}){jO.splice(0);let r=null;(e instanceof HTMLElement||e instanceof SVGElement)&&(r=e),TO.forEach((e=>{const{element:o,hitAreaMargins:i}=e,a=o.getBoundingClientRect(),{bottom:s,left:l,right:u,top:c}=a,d=NO?i.coarse:i.fine;if(t>=l-d&&t<=u+d&&n>=c-d&&n<=s+d){if(null!==r&&document.contains(r)&&o!==r&&!o.contains(r)&&!r.contains(o)&&function(e,t){if(e===t)throw new Error("Cannot compare node with itself");const n={a:CO(e),b:CO(t)};let r;for(;n.a.at(-1)===n.b.at(-1);)e=n.a.pop(),t=n.b.pop(),r=e;WO(r,"Stacking order can only be calculated for elements with a common ancestor");const o=xO(yO(n.a)),i=xO(yO(n.b));if(o===i){const e=r.childNodes,t={a:n.a.at(-1),b:n.b.at(-1)};let o=e.length;for(;o--;){const n=e[o];if(n===t.a)return 1;if(n===t.b)return-1}}return Math.sign(o-i)}(r,o)>0){let e=r,t=!1;for(;e&&!e.contains(o);){if(f=e.getBoundingClientRect(),p=a,f.x<p.x+p.width&&f.x+f.width>p.x&&f.y<p.y+p.height&&f.y+f.height>p.y){t=!0;break}e=e.parentElement}if(t)return}jO.push(e)}var f,p}))}function VO(e,t){IO.set(e,t)}function zO(){let e=!1,t=!1;jO.forEach((n=>{const{direction:r}=n;"horizontal"===r?e=!0:t=!0}));let n=0;IO.forEach((e=>{n|=e})),e&&t?pO("intersection",n):e?pO("horizontal",n):t?pO("vertical",n):null!==fO&&(document.head.removeChild(fO),cO=null,fO=null,dO=-1)}let HO;function BO(){var e;null===(e=HO)||void 0===e||e.abort(),HO=new AbortController;const t={capture:!0,signal:HO.signal};TO.size&&(MO?(jO.length>0&&AO.forEach(((e,n)=>{const{body:r}=n;e>0&&(r.addEventListener("contextmenu",DO,t),r.addEventListener("pointerleave",LO,t),r.addEventListener("pointermove",LO,t))})),AO.forEach(((e,n)=>{const{body:r}=n;r.addEventListener("pointerup",DO,t),r.addEventListener("pointercancel",DO,t)}))):AO.forEach(((e,n)=>{const{body:r}=n;e>0&&(r.addEventListener("pointerdown",OO,t),r.addEventListener("pointermove",LO,t))})))}function $O(e,t){TO.forEach((n=>{const{setResizeHandlerState:r}=n,o=jO.includes(n);r(e,o,t)}))}function WO(e,t){if(!e)throw console.error(t),Error(t)}function UO(e,t,n=nO){return e.toFixed(n)===t.toFixed(n)?0:e>t?1:-1}function KO(e,t,n=nO){return 0===UO(e,t,n)}function GO(e,t,n){return 0===UO(e,t,n)}function qO({panelConstraints:e,panelIndex:t,size:n}){const r=e[t];WO(null!=r,`Panel constraints not found for index ${t}`);let{collapsedSize:o=0,collapsible:i,maxSize:a=100,minSize:s=0}=r;if(UO(n,s)<0)if(i){n=UO(n,(o+s)/2)<0?o:s}else n=s;return n=Math.min(a,n),n=parseFloat(n.toFixed(nO))}function XO({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:r,prevLayout:o,trigger:i}){if(GO(e,0))return t;const a=[...t],[s,l]=r;WO(null!=s,"Invalid first pivot index"),WO(null!=l,"Invalid second pivot index");let u=0;if("keyboard"===i){{const r=e<0?l:s,o=n[r];WO(o,`Panel constraints not found for index ${r}`);const{collapsedSize:i=0,collapsible:a,minSize:u=0}=o;if(a){const n=t[r];if(WO(null!=n,`Previous layout not found for panel index ${r}`),GO(n,i)){const t=u-n;UO(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}{const r=e<0?s:l,o=n[r];WO(o,`No panel constraints found for index ${r}`);const{collapsedSize:i=0,collapsible:a,minSize:u=0}=o;if(a){const n=t[r];if(WO(null!=n,`Previous layout not found for panel index ${r}`),GO(n,u)){const t=n-i;UO(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}}{const r=e<0?1:-1;let o=e<0?l:s,i=0;for(;;){const e=t[o];WO(null!=e,`Previous layout not found for panel index ${o}`);if(i+=qO({panelConstraints:n,panelIndex:o,size:100})-e,o+=r,o<0||o>=n.length)break}const a=Math.min(Math.abs(e),Math.abs(i));e=e<0?0-a:a}{let r=e<0?s:l;for(;r>=0&&r<n.length;){const o=Math.abs(e)-Math.abs(u),i=t[r];WO(null!=i,`Previous layout not found for panel index ${r}`);const s=qO({panelConstraints:n,panelIndex:r,size:i-o});if(!GO(i,s)&&(u+=i-s,a[r]=s,u.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3),void 0,{numeric:!0})>=0))break;e<0?r--:r++}}if(function(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!GO(e[r],t[r],n))return!1;return!0}(o,a))return o;{const r=e<0?l:s,o=t[r];WO(null!=o,`Previous layout not found for panel index ${r}`);const i=o+u,c=qO({panelConstraints:n,panelIndex:r,size:i});if(a[r]=c,!GO(c,i)){let t=i-c;let r=e<0?l:s;for(;r>=0&&r<n.length;){const o=a[r];WO(null!=o,`Previous layout not found for panel index ${r}`);const i=qO({panelConstraints:n,panelIndex:r,size:o+t});if(GO(o,i)||(t-=i-o,a[r]=i),GO(t,0))break;e>0?r--:r++}}}const c=a.reduce(((e,t)=>t+e),0);return GO(c,100)?a:o}function YO({layout:e,panelsArray:t,pivotIndices:n}){let r=0,o=100,i=0,a=0;const s=n[0];WO(null!=s,"No pivot index found"),t.forEach(((e,t)=>{const{constraints:n}=e,{maxSize:l=100,minSize:u=0}=n;t===s?(r=u,o=l):(i+=u,a+=l)}));return{valueMax:Math.min(o,100-i),valueMin:Math.max(r,100-a),valueNow:e[s]}}function ZO(e,t=document){return Array.from(t.querySelectorAll(`[${tO.resizeHandleId}][data-panel-group-id="${e}"]`))}function QO(e,t,n=document){const r=ZO(e,n).findIndex((e=>e.getAttribute(tO.resizeHandleId)===t));return null!=r?r:null}function JO(e,t,n){const r=QO(e,t,n);return null!=r?[r,r+1]:[-1,-1]}function eL(e,t=document){if(((n=t)instanceof HTMLElement||"object"==typeof n&&null!==n&&"tagName"in n&&"getAttribute"in n)&&t.dataset.panelGroupId==e)return t;var n;const r=t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return r||null}function tL(e,t=document){const n=t.querySelector(`[${tO.resizeHandleId}="${e}"]`);return n||null}function nL({committedValuesRef:e,eagerValuesRef:n,groupId:r,layout:o,panelDataArray:i,panelGroupElement:a,setLayout:s}){t.useRef({didWarnAboutMissingResizeHandle:!1}),rO((()=>{if(!a)return;const e=ZO(r,a);for(let t=0;t<i.length-1;t++){const{valueMax:n,valueMin:r,valueNow:a}=YO({layout:o,panelsArray:i,pivotIndices:[t,t+1]}),s=e[t];if(null==s);else{const e=i[t];WO(e,`No panel data found for index "${t}"`),s.setAttribute("aria-controls",e.id),s.setAttribute("aria-valuemax",""+Math.round(n)),s.setAttribute("aria-valuemin",""+Math.round(r)),s.setAttribute("aria-valuenow",null!=a?""+Math.round(a):"")}}return()=>{e.forEach(((e,t)=>{e.removeAttribute("aria-controls"),e.removeAttribute("aria-valuemax"),e.removeAttribute("aria-valuemin"),e.removeAttribute("aria-valuenow")}))}}),[r,o,i,a]),t.useEffect((()=>{if(!a)return;const e=n.current;WO(e,"Eager values not found");const{panelDataArray:t}=e;WO(null!=eL(r,a),`No group found for id "${r}"`);const i=ZO(r,a);WO(i,`No resize handles found for group id "${r}"`);const l=i.map((e=>{const n=e.getAttribute(tO.resizeHandleId);WO(n,"Resize handle element has no handle id attribute");const[i,l]=function(e,t,n,r=document){var o,i,a,s;const l=tL(t,r),u=ZO(e,r),c=l?u.indexOf(l):-1;return[null!==(o=null===(i=n[c])||void 0===i?void 0:i.id)&&void 0!==o?o:null,null!==(a=null===(s=n[c+1])||void 0===s?void 0:s.id)&&void 0!==a?a:null]}(r,n,t,a);if(null==i||null==l)return()=>{};const u=e=>{if(!e.defaultPrevented)switch(e.key){case"Enter":{e.preventDefault();const l=t.findIndex((e=>e.id===i));if(l>=0){const e=t[l];WO(e,`No panel data found for index ${l}`);const i=o[l],{collapsedSize:u=0,collapsible:c,minSize:d=0}=e.constraints;if(null!=i&&c){const e=XO({delta:GO(i,u)?d-u:u-i,initialLayout:o,panelConstraints:t.map((e=>e.constraints)),pivotIndices:JO(r,n,a),prevLayout:o,trigger:"keyboard"});o!==e&&s(e)}}break}}};return e.addEventListener("keydown",u),()=>{e.removeEventListener("keydown",u)}}));return()=>{l.forEach((e=>e()))}}),[a,e,n,r,o,i,s])}function rL(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function oL(e,t){const n="horizontal"===e,{x:r,y:o}=vO(t);return n?r:o}function iL(e,t,n,r,o,i){if(mO(e)){const t="horizontal"===n;let r=0;r=e.shiftKey?100:null!=o?o:10;let i=0;switch(e.key){case"ArrowDown":i=t?0:r;break;case"ArrowLeft":i=t?-r:0;break;case"ArrowRight":i=t?r:0;break;case"ArrowUp":i=t?0:-r;break;case"End":i=100;break;case"Home":i=-100}return i}return null==r?0:function(e,t,n,r,o){const i="horizontal"===n,a=tL(t,o);WO(a,`No resize handle element found for id "${t}"`);const s=a.getAttribute(tO.groupId);WO(s,"Resize handle element has no group id attribute");let{initialCursorPosition:l}=r;const u=oL(n,e),c=eL(s,o);WO(c,`No group element found for id "${s}"`);const d=c.getBoundingClientRect();return(u-l)/(i?d.width:d.height)*100}(e,t,n,r,i)}function aL(e,t,n){t.forEach(((t,r)=>{const o=e[r];WO(o,`Panel data not found for index ${r}`);const{callbacks:i,constraints:a,id:s}=o,{collapsedSize:l=0,collapsible:u}=a,c=n[s];if(null==c||t!==c){n[s]=t;const{onCollapse:e,onExpand:r,onResize:o}=i;o&&o(t,c),u&&(e||r)&&(!r||null!=c&&!KO(c,l)||KO(t,l)||r(),!e||null!=c&&KO(c,l)||!KO(t,l)||e())}}))}function sL(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function lL(e){try{if("undefined"==typeof localStorage)throw new Error("localStorage not supported in this environment");e.getItem=e=>localStorage.getItem(e),e.setItem=(e,t)=>{localStorage.setItem(e,t)}}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function uL(e){return`react-resizable-panels:${e}`}function cL(e){return e.map((e=>{const{constraints:t,id:n,idIsFromProps:r,order:o}=e;return r?n:o?`${o}:${JSON.stringify(t)}`:JSON.stringify(t)})).sort(((e,t)=>e.localeCompare(t))).join(",")}function dL(e,t){try{const n=uL(e),r=t.getItem(n);if(r){const e=JSON.parse(r);if("object"==typeof e&&null!=e)return e}}catch(e){}return null}function fL(e,t,n,r,o){var i;const a=uL(e),s=cL(t),l=null!==(i=dL(e,o))&&void 0!==i?i:{};l[s]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{o.setItem(a,JSON.stringify(l))}catch(e){console.error(e)}}function pL({layout:e,panelConstraints:t}){const n=[...e],r=n.reduce(((e,t)=>e+t),0);if(n.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${n.map((e=>`${e}%`)).join(", ")}`);if(!GO(r,100)&&n.length>0)for(let e=0;e<t.length;e++){const t=n[e];WO(null!=t,`No layout data found for index ${e}`);const o=100/r*t;n[e]=o}let o=0;for(let e=0;e<t.length;e++){const r=n[e];WO(null!=r,`No layout data found for index ${e}`);const i=qO({panelConstraints:t,panelIndex:e,size:r});r!=i&&(o+=r-i,n[e]=i)}if(!GO(o,0))for(let e=0;e<t.length;e++){const r=n[e];WO(null!=r,`No layout data found for index ${e}`);const i=qO({panelConstraints:t,panelIndex:e,size:r+o});if(r!==i&&(o-=i-r,n[e]=i,GO(o,0)))break}return n}const mL={getItem:e=>(lL(mL),mL.getItem(e)),setItem:(e,t)=>{lL(mL),mL.setItem(e,t)}},hL={};function gL({autoSaveId:e=null,children:n,className:r="",direction:o,forwardedRef:i,id:a=null,onLayout:s=null,keyboardResizeBy:l=null,storage:u=mL,style:c,tagName:d="div",...f}){const p=sO(a),m=t.useRef(null),[h,g]=t.useState(null),[v,b]=t.useState([]),w=function(){const[e,n]=t.useState(0);return t.useCallback((()=>n((e=>e+1))),[])}(),y=t.useRef({}),x=t.useRef(new Map),C=t.useRef(0),S=t.useRef({autoSaveId:e,direction:o,dragState:h,id:p,keyboardResizeBy:l,onLayout:s,storage:u}),k=t.useRef({layout:v,panelDataArray:[],panelDataArrayChanged:!1});t.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),t.useImperativeHandle(i,(()=>({getId:()=>S.current.id,getLayout:()=>{const{layout:e}=k.current;return e},setLayout:e=>{const{onLayout:t}=S.current,{layout:n,panelDataArray:r}=k.current,o=pL({layout:e,panelConstraints:r.map((e=>e.constraints))});rL(n,o)||(b(o),k.current.layout=o,t&&t(o),aL(r,o,y.current))}})),[]),rO((()=>{S.current.autoSaveId=e,S.current.direction=o,S.current.dragState=h,S.current.id=p,S.current.onLayout=s,S.current.storage=u})),nL({committedValuesRef:S,eagerValuesRef:k,groupId:p,layout:v,panelDataArray:k.current.panelDataArray,setLayout:b,panelGroupElement:m.current}),t.useEffect((()=>{const{panelDataArray:t}=k.current;if(e){if(0===v.length||v.length!==t.length)return;let n=hL[e];null==n&&(n=function(e,t=10){let n=null;return(...r)=>{null!==n&&clearTimeout(n),n=setTimeout((()=>{e(...r)}),t)}}(fL,100),hL[e]=n);const r=[...t],o=new Map(x.current);n(e,r,o,v,u)}}),[e,v,u]),t.useEffect((()=>{}));const E=t.useCallback((e=>{const{onLayout:t}=S.current,{layout:n,panelDataArray:r}=k.current;if(e.constraints.collapsible){const o=r.map((e=>e.constraints)),{collapsedSize:i=0,panelSize:a,pivotIndices:s}=wL(r,e,n);if(WO(null!=a,`Panel size not found for panel "${e.id}"`),!KO(a,i)){x.current.set(e.id,a);const l=XO({delta:bL(r,e)===r.length-1?a-i:i-a,initialLayout:n,panelConstraints:o,pivotIndices:s,prevLayout:n,trigger:"imperative-api"});sL(n,l)||(b(l),k.current.layout=l,t&&t(l),aL(r,l,y.current))}}}),[]),R=t.useCallback(((e,t)=>{const{onLayout:n}=S.current,{layout:r,panelDataArray:o}=k.current;if(e.constraints.collapsible){const i=o.map((e=>e.constraints)),{collapsedSize:a=0,panelSize:s=0,minSize:l=0,pivotIndices:u}=wL(o,e,r),c=null!=t?t:l;if(KO(s,a)){const t=x.current.get(e.id),a=null!=t&&t>=c?t:c,l=XO({delta:bL(o,e)===o.length-1?s-a:a-s,initialLayout:r,panelConstraints:i,pivotIndices:u,prevLayout:r,trigger:"imperative-api"});sL(r,l)||(b(l),k.current.layout=l,n&&n(l),aL(o,l,y.current))}}}),[]),P=t.useCallback((e=>{const{layout:t,panelDataArray:n}=k.current,{panelSize:r}=wL(n,e,t);return WO(null!=r,`Panel size not found for panel "${e.id}"`),r}),[]),N=t.useCallback(((e,t)=>{const{panelDataArray:n}=k.current,r=bL(n,e);return function({defaultSize:e,dragState:t,layout:n,panelData:r,panelIndex:o,precision:i=3}){const a=n[o];let s;return s=null==a?null!=e?e.toPrecision(i):"1":1===r.length?"1":a.toPrecision(i),{flexBasis:0,flexGrow:s,flexShrink:1,overflow:"hidden",pointerEvents:null!==t?"none":void 0}}({defaultSize:t,dragState:h,layout:v,panelData:n,panelIndex:r})}),[h,v]),j=t.useCallback((e=>{const{layout:t,panelDataArray:n}=k.current,{collapsedSize:r=0,collapsible:o,panelSize:i}=wL(n,e,t);return WO(null!=i,`Panel size not found for panel "${e.id}"`),!0===o&&KO(i,r)}),[]),M=t.useCallback((e=>{const{layout:t,panelDataArray:n}=k.current,{collapsedSize:r=0,collapsible:o,panelSize:i}=wL(n,e,t);return WO(null!=i,`Panel size not found for panel "${e.id}"`),!o||UO(i,r)>0}),[]),A=t.useCallback((e=>{const{panelDataArray:t}=k.current;t.push(e),t.sort(((e,t)=>{const n=e.order,r=t.order;return null==n&&null==r?0:null==n?-1:null==r?1:n-r})),k.current.panelDataArrayChanged=!0,w()}),[w]);rO((()=>{if(k.current.panelDataArrayChanged){k.current.panelDataArrayChanged=!1;const{autoSaveId:e,onLayout:t,storage:n}=S.current,{layout:r,panelDataArray:o}=k.current;let i=null;if(e){const t=function(e,t,n){var r,o;return null!==(o=(null!==(r=dL(e,n))&&void 0!==r?r:{})[cL(t)])&&void 0!==o?o:null}(e,o,n);t&&(x.current=new Map(Object.entries(t.expandToSizes)),i=t.layout)}null==i&&(i=function({panelDataArray:e}){const t=Array(e.length),n=e.map((e=>e.constraints));let r=0,o=100;for(let i=0;i<e.length;i++){const e=n[i];WO(e,`Panel constraints not found for index ${i}`);const{defaultSize:a}=e;null!=a&&(r++,t[i]=a,o-=a)}for(let i=0;i<e.length;i++){const a=n[i];WO(a,`Panel constraints not found for index ${i}`);const{defaultSize:s}=a;if(null!=s)continue;const l=o/(e.length-r);r++,t[i]=l,o-=l}return t}({panelDataArray:o}));const a=pL({layout:i,panelConstraints:o.map((e=>e.constraints))});rL(r,a)||(b(a),k.current.layout=a,t&&t(a),aL(o,a,y.current))}})),rO((()=>{const e=k.current;return()=>{e.layout=[]}}),[]);const I=t.useCallback((e=>{let t=!1;const n=m.current;if(n){"rtl"===window.getComputedStyle(n,null).getPropertyValue("direction")&&(t=!0)}return function(n){n.preventDefault();const r=m.current;if(!r)return()=>null;const{direction:o,dragState:i,id:a,keyboardResizeBy:s,onLayout:l}=S.current,{layout:u,panelDataArray:c}=k.current,{initialLayout:d}=null!=i?i:{},f=JO(a,e,r);let p=iL(n,e,o,i,s,r);const h="horizontal"===o;h&&t&&(p=-p);const g=XO({delta:p,initialLayout:null!=d?d:u,panelConstraints:c.map((e=>e.constraints)),pivotIndices:f,prevLayout:u,trigger:mO(n)?"keyboard":"mouse-or-touch"}),v=!sL(u,g);(hO(n)||gO(n))&&C.current!=p&&(C.current=p,VO(e,v||0===p?0:h?p<0?kO:EO:p<0?RO:PO)),v&&(b(g),k.current.layout=g,l&&l(g),aL(c,g,y.current))}}),[]),T=t.useCallback(((e,t)=>{const{onLayout:n}=S.current,{layout:r,panelDataArray:o}=k.current,i=o.map((e=>e.constraints)),{panelSize:a,pivotIndices:s}=wL(o,e,r);WO(null!=a,`Panel size not found for panel "${e.id}"`);const l=XO({delta:bL(o,e)===o.length-1?a-t:t-a,initialLayout:r,panelConstraints:i,pivotIndices:s,prevLayout:r,trigger:"imperative-api"});sL(r,l)||(b(l),k.current.layout=l,n&&n(l),aL(o,l,y.current))}),[]),O=t.useCallback(((e,t)=>{const{layout:n,panelDataArray:r}=k.current,{collapsedSize:o=0,collapsible:i}=t,{collapsedSize:a=0,collapsible:s,maxSize:l=100,minSize:u=0}=e.constraints,{panelSize:c}=wL(r,e,n);null!=c&&(i&&s&&KO(c,o)?KO(o,a)||T(e,a):c<u?T(e,u):c>l&&T(e,l))}),[T]),L=t.useCallback(((e,t)=>{const{direction:n}=S.current,{layout:r}=k.current;if(!m.current)return;const o=tL(e,m.current);WO(o,`Drag handle element not found for id "${e}"`);const i=oL(n,t);g({dragHandleId:e,dragHandleRect:o.getBoundingClientRect(),initialCursorPosition:i,initialLayout:r})}),[]),D=t.useCallback((()=>{g(null)}),[]),F=t.useCallback((e=>{const{panelDataArray:t}=k.current,n=bL(t,e);n>=0&&(t.splice(n,1),delete y.current[e.id],k.current.panelDataArrayChanged=!0,w())}),[w]),_=t.useMemo((()=>({collapsePanel:E,direction:o,dragState:h,expandPanel:R,getPanelSize:P,getPanelStyle:N,groupId:p,isPanelCollapsed:j,isPanelExpanded:M,reevaluatePanelConstraints:O,registerPanel:A,registerResizeHandle:I,resizePanel:T,startDragging:L,stopDragging:D,unregisterPanel:F,panelGroupElement:m.current})),[E,h,o,R,P,N,p,j,M,O,A,I,T,L,D,F]),V={display:"flex",flexDirection:"horizontal"===o?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return t.createElement(eO.Provider,{value:_},t.createElement(d,{...f,children:n,className:r,id:a,ref:m,style:{...V,...c},[tO.group]:"",[tO.groupDirection]:o,[tO.groupId]:p}))}const vL=t.forwardRef(((e,n)=>t.createElement(gL,{...e,forwardedRef:n})));function bL(e,t){return e.findIndex((e=>e===t||e.id===t.id))}function wL(e,t,n){const r=bL(e,t),o=r===e.length-1?[r-1,r]:[r,r+1],i=n[r];return{...t.constraints,panelSize:i,pivotIndices:o}}function yL({children:e=null,className:n="",disabled:r=!1,hitAreaMargins:o,id:i,onBlur:a,onClick:s,onDragging:l,onFocus:u,onPointerDown:c,onPointerUp:d,style:f={},tabIndex:p=0,tagName:m="div",...h}){var g,v;const b=t.useRef(null),w=t.useRef({onClick:s,onDragging:l,onPointerDown:c,onPointerUp:d});t.useEffect((()=>{w.current.onClick=s,w.current.onDragging=l,w.current.onPointerDown=c,w.current.onPointerUp=d}));const y=t.useContext(eO);if(null===y)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:x,groupId:C,registerResizeHandle:S,startDragging:k,stopDragging:E,panelGroupElement:R}=y,P=sO(i),[N,j]=t.useState("inactive"),[M,A]=t.useState(!1),[I,T]=t.useState(null),O=t.useRef({state:N});rO((()=>{O.current.state=N})),t.useEffect((()=>{if(r)T(null);else{const e=S(P);T((()=>e))}}),[r,P,S]);const L=null!==(g=null==o?void 0:o.coarse)&&void 0!==g?g:15,D=null!==(v=null==o?void 0:o.fine)&&void 0!==v?v:5;t.useEffect((()=>{if(r||null==I)return;const e=b.current;WO(e,"Element ref not attached");let t=!1;return function(e,t,n,r,o){var i;const{ownerDocument:a}=t,s={direction:n,element:t,hitAreaMargins:r,setResizeHandlerState:o},l=null!==(i=AO.get(a))&&void 0!==i?i:0;return AO.set(a,l+1),TO.add(s),BO(),function(){var t;IO.delete(e),TO.delete(s);const n=null!==(t=AO.get(a))&&void 0!==t?t:1;if(AO.set(a,n-1),BO(),1===n&&AO.delete(a),jO.includes(s)){const e=jO.indexOf(s);e>=0&&jO.splice(e,1),zO(),o("up",!0,null)}}}(P,e,x,{coarse:L,fine:D},((e,n,r)=>{if(n)switch(e){case"down":{j("drag"),t=!1,WO(r,'Expected event to be defined for "down" action'),k(P,r);const{onDragging:e,onPointerDown:n}=w.current;null==e||e(!0),null==n||n();break}case"move":{const{state:e}=O.current;t=!0,"drag"!==e&&j("hover"),WO(r,'Expected event to be defined for "move" action'),I(r);break}case"up":{j("hover"),E();const{onClick:e,onDragging:n,onPointerUp:r}=w.current;null==n||n(!1),null==r||r(),t||null==e||e();break}}else j("inactive")}))}),[L,x,r,D,S,P,I,k,E]),function({disabled:e,handleId:n,resizeHandler:r,panelGroupElement:o}){t.useEffect((()=>{if(e||null==r||null==o)return;const t=tL(n,o);if(null==t)return;const i=e=>{if(!e.defaultPrevented)switch(e.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":e.preventDefault(),r(e);break;case"F6":{e.preventDefault();const r=t.getAttribute(tO.groupId);WO(r,`No group element found for id "${r}"`);const i=ZO(r,o),a=QO(r,n,o);WO(null!==a,`No resize element found for id "${n}"`),i[e.shiftKey?a>0?a-1:i.length-1:a+1<i.length?a+1:0].focus();break}}};return t.addEventListener("keydown",i),()=>{t.removeEventListener("keydown",i)}}),[o,e,n,r])}({disabled:r,handleId:P,resizeHandler:I,panelGroupElement:R});return t.createElement(m,{...h,children:e,className:n,id:i,onBlur:()=>{A(!1),null==a||a()},onFocus:()=>{A(!0),null==u||u()},ref:b,role:"separator",style:{touchAction:"none",userSelect:"none",...f},tabIndex:p,[tO.groupDirection]:x,[tO.groupId]:C,[tO.resizeHandle]:"",[tO.resizeHandleActive]:"drag"===N?"pointer":M?"keyboard":void 0,[tO.resizeHandleEnabled]:!r,[tO.resizeHandleId]:P,[tO.resizeHandleState]:N})}gL.displayName="PanelGroup",vL.displayName="forwardRef(PanelGroup)",yL.displayName="PanelResizeHandle";const xL=uO;function CL(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function SL(t,n=[]){let r=[];const o=()=>{const e=r.map((e=>a.createContext(e)));return function(n){const r=n?.[t]||e;return a.useMemo((()=>({[`__scope${t}`]:{...n,[t]:r}})),[n,r])}};return o.scopeName=t,[function(n,o){const i=a.createContext(o),s=r.length;r=[...r,o];const l=n=>{const{scope:r,children:o,...l}=n,u=r?.[t]?.[s]||i,c=a.useMemo((()=>l),Object.values(l));return e.jsx(u.Provider,{value:c,children:o})};return l.displayName=n+"Provider",[l,function(e,r){const l=r?.[t]?.[s]||i,u=a.useContext(l);if(u)return u;if(void 0!==o)return o;throw new Error(`\`${e}\` must be used within \`${n}\``)}]},kL(o,...n)]}function kL(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return a.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function EL(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function RL(...e){return t=>{let n=!1;const r=e.map((e=>{const r=EL(e,t);return n||"function"!=typeof r||(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():EL(e[t],null)}}}}function PL(...e){return a.useCallback(RL(...e),e)}function NL(t){const n=jL(t),r=a.forwardRef(((t,r)=>{const{children:o,...i}=t,s=a.Children.toArray(o),l=s.find(AL);if(l){const t=l.props.children,o=s.map((e=>e===l?a.Children.count(t)>1?a.Children.only(null):a.isValidElement(t)?t.props.children:null:e));return e.jsx(n,{...i,ref:r,children:a.isValidElement(t)?a.cloneElement(t,void 0,o):null})}return e.jsx(n,{...i,ref:r,children:o})}));return r.displayName=`${t}.Slot`,r}function jL(e){const t=a.forwardRef(((e,t)=>{const{children:n,...r}=e;if(a.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==a.Fragment&&(o.ref=t?RL(t,e):e),a.cloneElement(n,o)}return a.Children.count(n)>1?a.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}var ML=Symbol("radix.slottable");function AL(e){return a.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===ML}var IL=a.createContext(void 0);var TL=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce(((t,n)=>{const r=NL(`Primitive.${n}`),o=a.forwardRef(((t,o)=>{const{asChild:i,...a}=t,s=i?r:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),e.jsx(s,{...a,ref:o})}));return o.displayName=`Primitive.${n}`,{...t,[n]:o}}),{});function OL(e){const t=a.useRef(e);return a.useEffect((()=>{t.current=e})),a.useMemo((()=>(...e)=>t.current?.(...e)),[])}var LL,DL="dismissableLayer.update",FL="dismissableLayer.pointerDownOutside",_L="dismissableLayer.focusOutside",VL=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),zL=a.forwardRef(((t,n)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...c}=t,d=a.useContext(VL),[f,p]=a.useState(null),m=f?.ownerDocument??globalThis?.document,[,h]=a.useState({}),g=PL(n,(e=>p(e))),v=Array.from(d.layers),[b]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),w=v.indexOf(b),y=f?v.indexOf(f):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,C=y>=w,S=function(e,t=globalThis?.document){const n=OL(e),r=a.useRef(!1),o=a.useRef((()=>{}));return a.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){$L(FL,n,i,{discrete:!0})};const i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...d.branches].some((e=>e.contains(t)));C&&!n&&(i?.(e),l?.(e),e.defaultPrevented||u?.())}),m),k=function(e,t=globalThis?.document){const n=OL(e),r=a.useRef(!1);return a.useEffect((()=>{const e=e=>{if(e.target&&!r.current){$L(_L,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...d.branches].some((e=>e.contains(t)))||(s?.(e),l?.(e),e.defaultPrevented||u?.())}),m);return function(e,t=globalThis?.document){const n=OL(e);a.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})}),[n,t])}((e=>{y===d.layers.size-1&&(o?.(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))}),m),a.useEffect((()=>{if(f)return r&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(LL=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),BL(),()=>{r&&1===d.layersWithOutsidePointerEventsDisabled.size&&(m.body.style.pointerEvents=LL)}}),[f,m,r,d]),a.useEffect((()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),BL())}),[f,d]),a.useEffect((()=>{const e=()=>h({});return document.addEventListener(DL,e),()=>document.removeEventListener(DL,e)}),[]),e.jsx(TL.div,{...c,ref:g,style:{pointerEvents:x?C?"auto":"none":void 0,...t.style},onFocusCapture:CL(t.onFocusCapture,k.onFocusCapture),onBlurCapture:CL(t.onBlurCapture,k.onBlurCapture),onPointerDownCapture:CL(t.onPointerDownCapture,S.onPointerDownCapture)})}));zL.displayName="DismissableLayer";var HL=a.forwardRef(((t,n)=>{const r=a.useContext(VL),o=a.useRef(null),i=PL(n,o);return a.useEffect((()=>{const e=o.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}}),[r.branches]),e.jsx(TL.div,{...t,ref:i})}));function BL(){const e=new CustomEvent(DL);document.dispatchEvent(e)}function $L(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?function(e,t){e&&s.flushSync((()=>e.dispatchEvent(t)))}(o,i):o.dispatchEvent(i)}HL.displayName="DismissableLayerBranch";var WL=0;function UL(){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 KL="focusScope.autoFocusOnMount",GL="focusScope.autoFocusOnUnmount",qL={bubbles:!1,cancelable:!0},XL=a.forwardRef(((t,n)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...l}=t,[u,c]=a.useState(null),d=OL(i),f=OL(s),p=a.useRef(null),m=PL(n,(e=>c(e))),h=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect((()=>{if(o){let e=function(e){if(h.paused||!u)return;const t=e.target;u.contains(t)?p.current=t:JL(p.current,{select:!0})},t=function(e){if(h.paused||!u)return;const t=e.relatedTarget;null!==t&&(u.contains(t)||JL(p.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&JL(u)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return u&&r.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[o,u,h.paused]),a.useEffect((()=>{if(u){eD.add(h);const t=document.activeElement;if(!u.contains(t)){const n=new CustomEvent(KL,qL);u.addEventListener(KL,d),u.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(JL(r,{select:t}),document.activeElement!==n)return}((e=YL(u),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&JL(u))}return()=>{u.removeEventListener(KL,d),setTimeout((()=>{const e=new CustomEvent(GL,qL);u.addEventListener(GL,f),u.dispatchEvent(e),e.defaultPrevented||JL(t??document.body,{select:!0}),u.removeEventListener(GL,f),eD.remove(h)}),0)}}var e}),[u,d,f,h]);const g=a.useCallback((e=>{if(!r&&!o)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[o,i]=function(e){const t=YL(e),n=ZL(t,e),r=ZL(t.reverse(),e);return[n,r]}(t);o&&i?e.shiftKey||n!==i?e.shiftKey&&n===o&&(e.preventDefault(),r&&JL(i,{select:!0})):(e.preventDefault(),r&&JL(o,{select:!0})):n===t&&e.preventDefault()}}),[r,o,h.paused]);return e.jsx(TL.div,{tabIndex:-1,...l,ref:m,onKeyDown:g})}));function YL(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ZL(e,t){for(const n of e)if(!QL(n,{upTo:t}))return n}function QL(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function JL(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}XL.displayName="FocusScope";var eD=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=tD(e,t),e.unshift(t)},remove(t){e=tD(e,t),e[0]?.resume()}}}();function tD(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var nD=globalThis?.document?a.useLayoutEffect:()=>{},rD=a[" useId ".trim().toString()]||(()=>{}),oD=0;function iD(e){const[t,n]=a.useState(rD());return nD((()=>{n((e=>e??String(oD++)))}),[e]),t?`radix-${t}`:""}var aD=a.forwardRef(((t,n)=>{const{children:r,width:o=10,height:i=5,...a}=t;return e.jsx(TL.svg,{...a,ref:n,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:e.jsx("polygon",{points:"0,0 30,0 15,10"})})}));aD.displayName="Arrow";var sD=aD;var lD="Popper",[uD,cD]=SL(lD),[dD,fD]=uD(lD),pD=t=>{const{__scopePopper:n,children:r}=t,[o,i]=a.useState(null);return e.jsx(dD,{scope:n,anchor:o,onAnchorChange:i,children:r})};pD.displayName=lD;var mD="PopperAnchor",hD=a.forwardRef(((t,n)=>{const{__scopePopper:r,virtualRef:o,...i}=t,s=fD(mD,r),l=a.useRef(null),u=PL(n,l);return a.useEffect((()=>{s.onAnchorChange(o?.current||l.current)})),o?null:e.jsx(TL.div,{...i,ref:u})}));hD.displayName=mD;var gD="PopperContent",[vD,bD]=uD(gD),wD=a.forwardRef(((t,n)=>{const{__scopePopper:r,side:o="bottom",sideOffset:i=0,align:s="center",alignOffset:l=0,arrowPadding:u=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:m=!1,updatePositionStrategy:h="optimized",onPlaced:g,...v}=t,b=fD(gD,r),[w,y]=a.useState(null),x=PL(n,(e=>y(e))),[C,S]=a.useState(null),k=function(e){const[t,n]=a.useState(void 0);return nD((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}(C),E=k?.width??0,R=k?.height??0,P=o+("center"!==s?"-"+s:""),N="number"==typeof f?f:{top:0,right:0,bottom:0,left:0,...f},j=Array.isArray(d)?d:[d],M=j.length>0,A={padding:N,boundary:j.filter(SD),altBoundary:M},{refs:I,floatingStyles:T,placement:O,isPositioned:L,middlewareData:D}=Nh({strategy:"fixed",placement:P,whileElementsMounted:(...e)=>sl(...e,{animationFrame:"always"===h}),elements:{reference:b.anchor},middleware:[Mh({mainAxis:i+R,alignmentAxis:l}),c&&Ah({mainAxis:!0,crossAxis:!1,limiter:"partial"===p?Ih():void 0,...A}),c&&Th({...A}),Oh({...A,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),C&&Dh({element:C,padding:u}),kD({arrowWidth:E,arrowHeight:R}),m&&Lh({strategy:"referenceHidden",...A})]}),[F,_]=ED(O),V=OL(g);nD((()=>{L&&V?.()}),[L,V]);const z=D.arrow?.x,H=D.arrow?.y,B=0!==D.arrow?.centerOffset,[$,W]=a.useState();return nD((()=>{w&&W(window.getComputedStyle(w).zIndex)}),[w]),e.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...T,transform:L?T.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:$,"--radix-popper-transform-origin":[D.transformOrigin?.x,D.transformOrigin?.y].join(" "),...D.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:e.jsx(vD,{scope:r,placedSide:F,onArrowChange:S,arrowX:z,arrowY:H,shouldHideArrow:B,children:e.jsx(TL.div,{"data-side":F,"data-align":_,...v,ref:x,style:{...v.style,animation:L?void 0:"none"}})})})}));wD.displayName=gD;var yD="PopperArrow",xD={top:"bottom",right:"left",bottom:"top",left:"right"},CD=a.forwardRef((function(t,n){const{__scopePopper:r,...o}=t,i=bD(yD,r),a=xD[i.placedSide];return e.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:e.jsx(sD,{...o,ref:n,style:{...o.style,display:"block"}})})}));function SD(e){return null!==e}CD.displayName=yD;var kD=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=0!==o.arrow?.centerOffset,a=i?0:e.arrowWidth,s=i?0:e.arrowHeight,[l,u]=ED(n),c={start:"0%",center:"50%",end:"100%"}[u],d=(o.arrow?.x??0)+a/2,f=(o.arrow?.y??0)+s/2;let p="",m="";return"bottom"===l?(p=i?c:`${d}px`,m=-s+"px"):"top"===l?(p=i?c:`${d}px`,m=`${r.floating.height+s}px`):"right"===l?(p=-s+"px",m=i?c:`${f}px`):"left"===l&&(p=`${r.floating.width+s}px`,m=i?c:`${f}px`),{data:{x:p,y:m}}}});function ED(e){const[t,n="center"]=e.split("-");return[t,n]}var RD=pD,PD=hD,ND=wD,jD=CD,MD=a.forwardRef(((t,r)=>{const{container:o,...i}=t,[s,l]=a.useState(!1);nD((()=>l(!0)),[]);const u=o||s&&globalThis?.document?.body;return u?n.createPortal(e.jsx(TL.div,{...i,ref:r}),u):null}));MD.displayName="Portal";var AD=a[" useInsertionEffect ".trim().toString()]||nD;function ID({prop:e,defaultProp:t,onChange:n=(()=>{}),caller:r}){const[o,i,s]=function({defaultProp:e,onChange:t}){const[n,r]=a.useState(e),o=a.useRef(n),i=a.useRef(t);return AD((()=>{i.current=t}),[t]),a.useEffect((()=>{o.current!==n&&(i.current?.(n),o.current=n)}),[n,o]),[n,r,i]}({defaultProp:t,onChange:n}),l=void 0!==e,u=l?e:o;{const t=a.useRef(void 0!==e);a.useEffect((()=>{const e=t.current;if(e!==l){const t=e?"controlled":"uncontrolled",n=l?"controlled":"uncontrolled";console.warn(`${r} is changing from ${t} to ${n}. 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.`)}t.current=l}),[l,r])}const c=a.useCallback((t=>{if(l){const n=function(e){return"function"==typeof e}(t)?t(e):t;n!==e&&s.current?.(n)}else i(t)}),[l,e,i,s]);return[u,c]}var TD=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"}),OD=a.forwardRef(((t,n)=>e.jsx(TL.span,{...t,ref:n,style:{...TD,...t.style}})));OD.displayName="VisuallyHidden";var LD=rd(),DD=function(){},FD=a.forwardRef((function(e,t){var n=a.useRef(null),r=a.useState({onScrollCapture:DD,onWheelCapture:DD,onTouchMoveCapture:DD}),o=r[0],i=r[1],s=e.forwardProps,l=e.children,u=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,m=e.noRelative,h=e.noIsolation,g=e.inert,v=e.allowPinchZoom,b=e.as,w=void 0===b?"div":b,y=e.gapMode,x=qc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=p,S=td([n,t]),k=Gc(Gc({},x),o);return a.createElement(a.Fragment,null,d&&a.createElement(C,{sideCar:LD,removeScrollBar:c,shards:f,noRelative:m,noIsolation:h,inert:g,setCallbacks:i,allowPinchZoom:!!v,lockRef:n,gapMode:y}),s?a.cloneElement(a.Children.only(l),Gc(Gc({},k),{ref:S})):a.createElement(w,Gc({},k,{className:u,ref:S}),l))}));FD.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},FD.classNames={fullWidth:Zc,zeroRight:Yc};var _D=!1;if("undefined"!=typeof window)try{var VD=Object.defineProperty({},"passive",{get:function(){return _D=!0,!0}});window.addEventListener("test",VD,VD),window.removeEventListener("test",VD,VD)}catch(e){_D=!1}var zD=!!_D&&{passive:!1},HD=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},BD=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),$D(e,r)){var o=WD(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},$D=function(e,t){return"v"===e?function(e){return HD(e,"overflowY")}(t):function(e){return HD(e,"overflowX")}(t)},WD=function(e,t){return"v"===e?function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]}(t):function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t)},UD=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},KD=function(e){return[e.deltaX,e.deltaY]},GD=function(e){return e&&"current"in e?e.current:e},qD=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},XD=0,YD=[];function ZD(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var QD=id(LD,(function(e){var t=a.useRef([]),n=a.useRef([0,0]),r=a.useRef(),o=a.useState(XD++)[0],i=a.useState(dd)[0],s=a.useRef(e);a.useEffect((function(){s.current=e}),[e]),a.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=Xc([e.lockRef.current],(e.shards||[]).map(GD),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var l=a.useCallback((function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var o,i=UD(e),a=n.current,l="deltaX"in e?e.deltaX:a[0]-i[0],u="deltaY"in e?e.deltaY:a[1]-i[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=BD(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=BD(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=o),!o)return!0;var p=r.current||o;return function(e,t,n,r,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,l=t.contains(s),u=!1,c=a>0,d=0,f=0;do{if(!s)break;var p=WD(e,s),m=p[0],h=p[1]-p[2]-i*m;(m||h)&&$D(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(c&&Math.abs(d)<1||!c&&Math.abs(f)<1)&&(u=!0),u}(p,t,e,"h"===p?l:u)}),[]),u=a.useCallback((function(e){var n=e;if(YD.length&&YD[YD.length-1]===i){var r="deltaY"in n?KD(n):UD(n),o=t.current.filter((function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,r)}))[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var a=(s.current.shards||[]).map(GD).filter(Boolean).filter((function(e){return e.contains(n.target)}));(a.length>0?l(n,a[0]):!s.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),c=a.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:ZD(r)};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),d=a.useCallback((function(e){n.current=UD(e),r.current=void 0}),[]),f=a.useCallback((function(t){c(t.type,KD(t),t.target,l(t,e.lockRef.current))}),[]),p=a.useCallback((function(t){c(t.type,UD(t),t.target,l(t,e.lockRef.current))}),[]);a.useEffect((function(){return YD.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",u,zD),document.addEventListener("touchmove",u,zD),document.addEventListener("touchstart",d,zD),function(){YD=YD.filter((function(e){return e!==i})),document.removeEventListener("wheel",u,zD),document.removeEventListener("touchmove",u,zD),document.removeEventListener("touchstart",d,zD)}}),[]);var m=e.removeScrollBar,h=e.inert;return a.createElement(a.Fragment,null,h?a.createElement(i,{styles:qD(o)}):null,m?a.createElement(wd,{noRelative:e.noRelative,gapMode:e.gapMode}):null)})),JD=a.forwardRef((function(e,t){return a.createElement(FD,Gc({},e,{ref:t,sideCar:QD}))}));JD.classNames=FD.classNames;var eF=[" ","Enter","ArrowUp","ArrowDown"],tF=[" ","Enter"],nF="Select",[rF,oF,iF]=function(n){const r=n+"CollectionProvider",[o,i]=SL(r),[a,s]=o(r,{collectionRef:{current:null},itemMap:new Map}),l=n=>{const{scope:r,children:o}=n,i=t.useRef(null),s=t.useRef(new Map).current;return e.jsx(a,{scope:r,itemMap:s,collectionRef:i,children:o})};l.displayName=r;const u=n+"CollectionSlot",c=NL(u),d=t.forwardRef(((t,n)=>{const{scope:r,children:o}=t,i=PL(n,s(u,r).collectionRef);return e.jsx(c,{ref:i,children:o})}));d.displayName=u;const f=n+"CollectionItemSlot",p="data-radix-collection-item",m=NL(f),h=t.forwardRef(((n,r)=>{const{scope:o,children:i,...a}=n,l=t.useRef(null),u=PL(r,l),c=s(f,o);return t.useEffect((()=>(c.itemMap.set(l,{ref:l,...a}),()=>{c.itemMap.delete(l)}))),e.jsx(m,{[p]:"",ref:u,children:i})}));return h.displayName=f,[{Provider:l,Slot:d,ItemSlot:h},function(e){const r=s(n+"CollectionConsumer",e),o=t.useCallback((()=>{const e=r.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${p}]`)),n=Array.from(r.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)));return n}),[r.collectionRef,r.itemMap]);return o},i]}(nF),[aF,sF]=SL(nF,[iF,cD]),lF=cD(),[uF,cF]=aF(nF),[dF,fF]=aF(nF),pF=t=>{const{__scopeSelect:n,children:r,open:o,defaultOpen:i,onOpenChange:s,value:l,defaultValue:u,onValueChange:c,dir:d,name:f,autoComplete:p,disabled:m,required:h,form:g}=t,v=lF(n),[b,w]=a.useState(null),[y,x]=a.useState(null),[C,S]=a.useState(!1),k=function(e){const t=a.useContext(IL);return e||t||"ltr"}(d),[E,R]=ID({prop:o,defaultProp:i??!1,onChange:s,caller:nF}),[P,N]=ID({prop:l,defaultProp:u,onChange:c,caller:nF}),j=a.useRef(null),M=!b||(g||!!b.closest("form")),[A,I]=a.useState(new Set),T=Array.from(A).map((e=>e.props.value)).join(";");return e.jsx(RD,{...v,children:e.jsxs(uF,{required:h,scope:n,trigger:b,onTriggerChange:w,valueNode:y,onValueNodeChange:x,valueNodeHasChildren:C,onValueNodeHasChildrenChange:S,contentId:iD(),value:P,onValueChange:N,open:E,onOpenChange:R,dir:k,triggerPointerDownPosRef:j,disabled:m,children:[e.jsx(rF.Provider,{scope:n,children:e.jsx(dF,{scope:t.__scopeSelect,onNativeOptionAdd:a.useCallback((e=>{I((t=>new Set(t).add(e)))}),[]),onNativeOptionRemove:a.useCallback((e=>{I((t=>{const n=new Set(t);return n.delete(e),n}))}),[]),children:r})}),M?e.jsxs(t_,{"aria-hidden":!0,required:h,tabIndex:-1,name:f,autoComplete:p,value:P,onChange:e=>N(e.target.value),disabled:m,form:g,children:[void 0===P?e.jsx("option",{value:""}):null,Array.from(A)]},T):null]})})};pF.displayName=nF;var mF="SelectTrigger",hF=a.forwardRef(((t,n)=>{const{__scopeSelect:r,disabled:o=!1,...i}=t,s=lF(r),l=cF(mF,r),u=l.disabled||o,c=PL(n,l.onTriggerChange),d=oF(r),f=a.useRef("touch"),[p,m,h]=r_((e=>{const t=d().filter((e=>!e.disabled)),n=t.find((e=>e.value===l.value)),r=o_(t,e,n);void 0!==r&&l.onValueChange(r.value)})),g=e=>{u||(l.onOpenChange(!0),h()),e&&(l.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return e.jsx(PD,{asChild:!0,...s,children:e.jsx(TL.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":n_(l.value)?"":void 0,...i,ref:c,onClick:CL(i.onClick,(e=>{e.currentTarget.focus(),"mouse"!==f.current&&g(e)})),onPointerDown:CL(i.onPointerDown,(e=>{f.current=e.pointerType;const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(g(e),e.preventDefault())})),onKeyDown:CL(i.onKeyDown,(e=>{const t=""!==p.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||m(e.key),t&&" "===e.key||eF.includes(e.key)&&(g(),e.preventDefault())}))})})}));hF.displayName=mF;var gF="SelectValue",vF=a.forwardRef(((t,n)=>{const{__scopeSelect:r,className:o,style:i,children:a,placeholder:s="",...l}=t,u=cF(gF,r),{onValueNodeHasChildrenChange:c}=u,d=void 0!==a,f=PL(n,u.onValueNodeChange);return nD((()=>{c(d)}),[c,d]),e.jsx(TL.span,{...l,ref:f,style:{pointerEvents:"none"},children:n_(u.value)?e.jsx(e.Fragment,{children:s}):a})}));vF.displayName=gF;var bF=a.forwardRef(((t,n)=>{const{__scopeSelect:r,children:o,...i}=t;return e.jsx(TL.span,{"aria-hidden":!0,...i,ref:n,children:o||"▼"})}));bF.displayName="SelectIcon";var wF=t=>e.jsx(MD,{asChild:!0,...t});wF.displayName="SelectPortal";var yF="SelectContent",xF=a.forwardRef(((t,n)=>{const r=cF(yF,t.__scopeSelect),[o,i]=a.useState();if(nD((()=>{i(new DocumentFragment)}),[]),!r.open){const n=o;return n?s.createPortal(e.jsx(SF,{scope:t.__scopeSelect,children:e.jsx(rF.Slot,{scope:t.__scopeSelect,children:e.jsx("div",{children:t.children})})}),n):null}return e.jsx(RF,{...t,ref:n})}));xF.displayName=yF;var CF=10,[SF,kF]=aF(yF),EF=NL("SelectContent.RemoveScroll"),RF=a.forwardRef(((t,n)=>{const{__scopeSelect:r,position:o="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:s,onPointerDownOutside:l,side:u,sideOffset:c,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:m,collisionPadding:h,sticky:g,hideWhenDetached:v,avoidCollisions:b,...w}=t,y=cF(yF,r),[x,C]=a.useState(null),[S,k]=a.useState(null),E=PL(n,(e=>C(e))),[R,P]=a.useState(null),[N,j]=a.useState(null),M=oF(r),[A,I]=a.useState(!1),T=a.useRef(!1);a.useEffect((()=>{if(x)return Hd(x)}),[x]),a.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??UL()),document.body.insertAdjacentElement("beforeend",e[1]??UL()),WL++,()=>{1===WL&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),WL--}}),[]);const O=a.useCallback((e=>{const[t,...n]=M().map((e=>e.ref.current)),[r]=n.slice(-1),o=document.activeElement;for(const n of e){if(n===o)return;if(n?.scrollIntoView({block:"nearest"}),n===t&&S&&(S.scrollTop=0),n===r&&S&&(S.scrollTop=S.scrollHeight),n?.focus(),document.activeElement!==o)return}}),[M,S]),L=a.useCallback((()=>O([R,x])),[O,R,x]);a.useEffect((()=>{A&&L()}),[A,L]);const{onOpenChange:D,triggerPointerDownPosRef:F}=y;a.useEffect((()=>{if(x){let e={x:0,y:0};const t=t=>{e={x:Math.abs(Math.round(t.pageX)-(F.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(F.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():x.contains(n.target)||D(!1),document.removeEventListener("pointermove",t),F.current=null};return null!==F.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}}),[x,D,F]),a.useEffect((()=>{const e=()=>D(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}}),[D]);const[_,V]=r_((e=>{const t=M().filter((e=>!e.disabled)),n=t.find((e=>e.ref.current===document.activeElement)),r=o_(t,e,n);r&&setTimeout((()=>r.ref.current.focus()))})),z=a.useCallback(((e,t,n)=>{const r=!T.current&&!n;(void 0!==y.value&&y.value===t||r)&&(P(e),r&&(T.current=!0))}),[y.value]),H=a.useCallback((()=>x?.focus()),[x]),B=a.useCallback(((e,t,n)=>{const r=!T.current&&!n;(void 0!==y.value&&y.value===t||r)&&j(e)}),[y.value]),$="popper"===o?NF:PF,W=$===NF?{side:u,sideOffset:c,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:m,collisionPadding:h,sticky:g,hideWhenDetached:v,avoidCollisions:b}:{};return e.jsx(SF,{scope:r,content:x,viewport:S,onViewportChange:k,itemRefCallback:z,selectedItem:R,onItemLeave:H,itemTextRefCallback:B,focusSelectedItem:L,selectedItemText:N,position:o,isPositioned:A,searchRef:_,children:e.jsx(JD,{as:EF,allowPinchZoom:!0,children:e.jsx(XL,{asChild:!0,trapped:y.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:CL(i,(e=>{y.trigger?.focus({preventScroll:!0}),e.preventDefault()})),children:e.jsx(zL,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:e.jsx($,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:e=>e.preventDefault(),...w,...W,onPlaced:()=>I(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...w.style},onKeyDown:CL(w.onKeyDown,(e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||V(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=M().filter((e=>!e.disabled)).map((e=>e.ref.current));if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout((()=>O(t))),e.preventDefault()}}))})})})})})}));RF.displayName="SelectContentImpl";var PF=a.forwardRef(((t,n)=>{const{__scopeSelect:r,onPlaced:o,...i}=t,s=cF(yF,r),l=kF(yF,r),[u,c]=a.useState(null),[d,f]=a.useState(null),p=PL(n,(e=>f(e))),m=oF(r),h=a.useRef(!1),g=a.useRef(!0),{viewport:v,selectedItem:b,selectedItemText:w,focusSelectedItem:y}=l,x=a.useCallback((()=>{if(s.trigger&&s.valueNode&&u&&d&&v&&b&&w){const e=s.trigger.getBoundingClientRect(),t=d.getBoundingClientRect(),n=s.valueNode.getBoundingClientRect(),r=w.getBoundingClientRect();if("rtl"!==s.dir){const o=r.left-t.left,i=n.left-o,a=e.left-i,s=e.width+a,l=Math.max(s,t.width),c=window.innerWidth-CF,d=qx(i,[CF,Math.max(CF,c-l)]);u.style.minWidth=s+"px",u.style.left=d+"px"}else{const o=t.right-r.right,i=window.innerWidth-n.right-o,a=window.innerWidth-e.right-i,s=e.width+a,l=Math.max(s,t.width),c=window.innerWidth-CF,d=qx(i,[CF,Math.max(CF,c-l)]);u.style.minWidth=s+"px",u.style.right=d+"px"}const i=m(),a=window.innerHeight-2*CF,l=v.scrollHeight,c=window.getComputedStyle(d),f=parseInt(c.borderTopWidth,10),p=parseInt(c.paddingTop,10),g=parseInt(c.borderBottomWidth,10),y=f+p+l+parseInt(c.paddingBottom,10)+g,x=Math.min(5*b.offsetHeight,y),C=window.getComputedStyle(v),S=parseInt(C.paddingTop,10),k=parseInt(C.paddingBottom,10),E=e.top+e.height/2-CF,R=a-E,P=b.offsetHeight/2,N=f+p+(b.offsetTop+P),j=y-N;if(N<=E){const e=i.length>0&&b===i[i.length-1].ref.current;u.style.bottom="0px";const t=d.clientHeight-v.offsetTop-v.offsetHeight,n=N+Math.max(R,P+(e?k:0)+t+g);u.style.height=n+"px"}else{const e=i.length>0&&b===i[0].ref.current;u.style.top="0px";const t=Math.max(E,f+v.offsetTop+(e?S:0)+P)+j;u.style.height=t+"px",v.scrollTop=N-E+v.offsetTop}u.style.margin=`${CF}px 0`,u.style.minHeight=x+"px",u.style.maxHeight=a+"px",o?.(),requestAnimationFrame((()=>h.current=!0))}}),[m,s.trigger,s.valueNode,u,d,v,b,w,s.dir,o]);nD((()=>x()),[x]);const[C,S]=a.useState();nD((()=>{d&&S(window.getComputedStyle(d).zIndex)}),[d]);const k=a.useCallback((e=>{e&&!0===g.current&&(x(),y?.(),g.current=!1)}),[x,y]);return e.jsx(jF,{scope:r,contentWrapper:u,shouldExpandOnScrollRef:h,onScrollButtonChange:k,children:e.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:e.jsx(TL.div,{...i,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})}));PF.displayName="SelectItemAlignedPosition";var NF=a.forwardRef(((t,n)=>{const{__scopeSelect:r,align:o="start",collisionPadding:i=CF,...a}=t,s=lF(r);return e.jsx(ND,{...s,...a,ref:n,align:o,collisionPadding:i,style:{boxSizing:"border-box",...a.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)"}})}));NF.displayName="SelectPopperPosition";var[jF,MF]=aF(yF,{}),AF="SelectViewport",IF=a.forwardRef(((t,n)=>{const{__scopeSelect:r,nonce:o,...i}=t,s=kF(AF,r),l=MF(AF,r),u=PL(n,s.onViewportChange),c=a.useRef(0);return e.jsxs(e.Fragment,{children:[e.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:o}),e.jsx(rF.Slot,{scope:r,children:e.jsx(TL.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:u,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:CL(i.onScroll,(e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=l;if(r?.current&&n){const e=Math.abs(c.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*CF,o=parseFloat(n.style.minHeight),i=parseFloat(n.style.height),a=Math.max(o,i);if(a<r){const o=a+e,i=Math.min(r,o),s=o-i;n.style.height=i+"px","0px"===n.style.bottom&&(t.scrollTop=s>0?s:0,n.style.justifyContent="flex-end")}}}c.current=t.scrollTop}))})})]})}));IF.displayName=AF;var TF="SelectGroup",[OF,LF]=aF(TF),DF=a.forwardRef(((t,n)=>{const{__scopeSelect:r,...o}=t,i=iD();return e.jsx(OF,{scope:r,id:i,children:e.jsx(TL.div,{role:"group","aria-labelledby":i,...o,ref:n})})}));DF.displayName=TF;var FF="SelectLabel",_F=a.forwardRef(((t,n)=>{const{__scopeSelect:r,...o}=t,i=LF(FF,r);return e.jsx(TL.div,{id:i.id,...o,ref:n})}));_F.displayName=FF;var VF="SelectItem",[zF,HF]=aF(VF),BF=a.forwardRef(((t,n)=>{const{__scopeSelect:r,value:o,disabled:i=!1,textValue:s,...l}=t,u=cF(VF,r),c=kF(VF,r),d=u.value===o,[f,p]=a.useState(s??""),[m,h]=a.useState(!1),g=PL(n,(e=>c.itemRefCallback?.(e,o,i))),v=iD(),b=a.useRef("touch"),w=()=>{i||(u.onValueChange(o),u.onOpenChange(!1))};if(""===o)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 e.jsx(zF,{scope:r,value:o,disabled:i,textId:v,isSelected:d,onItemTextChange:a.useCallback((e=>{p((t=>t||(e?.textContent??"").trim()))}),[]),children:e.jsx(rF.ItemSlot,{scope:r,value:o,disabled:i,textValue:f,children:e.jsx(TL.div,{role:"option","aria-labelledby":v,"data-highlighted":m?"":void 0,"aria-selected":d&&m,"data-state":d?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...l,ref:g,onFocus:CL(l.onFocus,(()=>h(!0))),onBlur:CL(l.onBlur,(()=>h(!1))),onClick:CL(l.onClick,(()=>{"mouse"!==b.current&&w()})),onPointerUp:CL(l.onPointerUp,(()=>{"mouse"===b.current&&w()})),onPointerDown:CL(l.onPointerDown,(e=>{b.current=e.pointerType})),onPointerMove:CL(l.onPointerMove,(e=>{b.current=e.pointerType,i?c.onItemLeave?.():"mouse"===b.current&&e.currentTarget.focus({preventScroll:!0})})),onPointerLeave:CL(l.onPointerLeave,(e=>{e.currentTarget===document.activeElement&&c.onItemLeave?.()})),onKeyDown:CL(l.onKeyDown,(e=>{""!==c.searchRef?.current&&" "===e.key||(tF.includes(e.key)&&w()," "===e.key&&e.preventDefault())}))})})})}));BF.displayName=VF;var $F="SelectItemText",WF=a.forwardRef(((t,n)=>{const{__scopeSelect:r,className:o,style:i,...l}=t,u=cF($F,r),c=kF($F,r),d=HF($F,r),f=fF($F,r),[p,m]=a.useState(null),h=PL(n,(e=>m(e)),d.onItemTextChange,(e=>c.itemTextRefCallback?.(e,d.value,d.disabled))),g=p?.textContent,v=a.useMemo((()=>e.jsx("option",{value:d.value,disabled:d.disabled,children:g},d.value)),[d.disabled,d.value,g]),{onNativeOptionAdd:b,onNativeOptionRemove:w}=f;return nD((()=>(b(v),()=>w(v))),[b,w,v]),e.jsxs(e.Fragment,{children:[e.jsx(TL.span,{id:d.textId,...l,ref:h}),d.isSelected&&u.valueNode&&!u.valueNodeHasChildren?s.createPortal(l.children,u.valueNode):null]})}));WF.displayName=$F;var UF="SelectItemIndicator",KF=a.forwardRef(((t,n)=>{const{__scopeSelect:r,...o}=t;return HF(UF,r).isSelected?e.jsx(TL.span,{"aria-hidden":!0,...o,ref:n}):null}));KF.displayName=UF;var GF="SelectScrollUpButton",qF=a.forwardRef(((t,n)=>{const r=kF(GF,t.__scopeSelect),o=MF(GF,t.__scopeSelect),[i,s]=a.useState(!1),l=PL(n,o.onScrollButtonChange);return nD((()=>{if(r.viewport&&r.isPositioned){let e=function(){const e=t.scrollTop>0;s(e)};const t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[r.viewport,r.isPositioned]),i?e.jsx(ZF,{...t,ref:l,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null}));qF.displayName=GF;var XF="SelectScrollDownButton",YF=a.forwardRef(((t,n)=>{const r=kF(XF,t.__scopeSelect),o=MF(XF,t.__scopeSelect),[i,s]=a.useState(!1),l=PL(n,o.onScrollButtonChange);return nD((()=>{if(r.viewport&&r.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;s(n)};const t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[r.viewport,r.isPositioned]),i?e.jsx(ZF,{...t,ref:l,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null}));YF.displayName=XF;var ZF=a.forwardRef(((t,n)=>{const{__scopeSelect:r,onAutoScroll:o,...i}=t,s=kF("SelectScrollButton",r),l=a.useRef(null),u=oF(r),c=a.useCallback((()=>{null!==l.current&&(window.clearInterval(l.current),l.current=null)}),[]);return a.useEffect((()=>()=>c()),[c]),nD((()=>{const e=u().find((e=>e.ref.current===document.activeElement));e?.ref.current?.scrollIntoView({block:"nearest"})}),[u]),e.jsx(TL.div,{"aria-hidden":!0,...i,ref:n,style:{flexShrink:0,...i.style},onPointerDown:CL(i.onPointerDown,(()=>{null===l.current&&(l.current=window.setInterval(o,50))})),onPointerMove:CL(i.onPointerMove,(()=>{s.onItemLeave?.(),null===l.current&&(l.current=window.setInterval(o,50))})),onPointerLeave:CL(i.onPointerLeave,(()=>{c()}))})})),QF=a.forwardRef(((t,n)=>{const{__scopeSelect:r,...o}=t;return e.jsx(TL.div,{"aria-hidden":!0,...o,ref:n})}));QF.displayName="SelectSeparator";var JF="SelectArrow",e_=a.forwardRef(((t,n)=>{const{__scopeSelect:r,...o}=t,i=lF(r),a=cF(JF,r),s=kF(JF,r);return a.open&&"popper"===s.position?e.jsx(jD,{...i,...o,ref:n}):null}));e_.displayName=JF;var t_=a.forwardRef((({__scopeSelect:t,value:n,...r},o)=>{const i=a.useRef(null),s=PL(o,i),l=function(e){const t=a.useRef({value:e,previous:e});return a.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}(n);return a.useEffect((()=>{const e=i.current;if(!e)return;const t=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(t,"value").set;if(l!==n&&r){const t=new Event("change",{bubbles:!0});r.call(e,n),e.dispatchEvent(t)}}),[l,n]),e.jsx(TL.select,{...r,style:{...TD,...r.style},ref:s,defaultValue:n})}));function n_(e){return""===e||void 0===e}function r_(e){const t=OL(e),n=a.useRef(""),r=a.useRef(0),o=a.useCallback((e=>{const o=n.current+e;t(o),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout((()=>e("")),1e3))}(o)}),[t]),i=a.useCallback((()=>{n.current="",window.clearTimeout(r.current)}),[]);return a.useEffect((()=>()=>window.clearTimeout(r.current)),[]),[n,o,i]}function o_(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,o=n?e.indexOf(n):-1;let i=(a=e,s=Math.max(o,0),a.map(((e,t)=>a[(s+t)%a.length])));var a,s;1===r.length&&(i=i.filter((e=>e!==n)));const l=i.find((e=>e.textValue.toLowerCase().startsWith(r.toLowerCase())));return l!==n?l:void 0}t_.displayName="SelectBubbleInput";var i_=pF,a_=hF,s_=bF,l_=wF,u_=xF,c_=IF,d_=_F,f_=BF,p_=WF,m_=KF,h_=qF,g_=YF,v_=QF;const b_=vF,w_=a.forwardRef((({className:t="",children:n,...r},o)=>e.jsxs(a_,{ref:o,className:jt("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-gray-200 border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-600 [&>span]:line-clamp-1","rounded-lg hover:bg-gray-100/50 dark:hover:bg-gray-700",t),...r,children:[n,e.jsx(s_,{asChild:!0,children:e.jsx(Ae,{className:"h-4 w-4 opacity-50"})})]})));w_.displayName=a_.displayName;const y_=a.forwardRef((({className:t="",...n},r)=>e.jsx(h_,{ref:r,className:jt("flex cursor-default items-center justify-center py-1 dark:text-white",t),...n,children:e.jsx(Fe,{})})));y_.displayName=h_.displayName;const x_=a.forwardRef((({className:t="",...n},r)=>e.jsx(g_,{ref:r,className:jt("flex cursor-default items-center justify-center py-1 dark:text-white",t),...n,children:e.jsx(Le,{})})));x_.displayName=g_.displayName;const C_=a.forwardRef((({className:t="",children:n,position:r="popper",...o},i)=>e.jsx(l_,{children:e.jsxs(u_,{ref:i,className:jt("bg-popover text-popover-foreground relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-gray-200 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 dark:border-gray-600","popper"===r?"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1":"",t),position:r,...o,children:[e.jsx(y_,{}),e.jsx(c_,{className:jt("p-1","popper"===r?"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]":""),children:n}),e.jsx(x_,{})]})})));C_.displayName=u_.displayName;const S_=a.forwardRef((({className:t="",...n},r)=>e.jsx(d_,{ref:r,className:jt("px-2 py-1.5 text-sm font-semibold",t),...n})));S_.displayName=d_.displayName;const k_=a.forwardRef((({className:t="",children:n,...r},o)=>e.jsxs(f_,{ref:o,className:jt("relative flex w-full cursor-pointer 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","rounded-lg hover:bg-gray-100/50 dark:hover:bg-gray-700",t),...r,children:[e.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(m_,{children:e.jsx(Te,{className:"h-4 w-4"})})}),e.jsx(p_,{children:n})]})));k_.displayName=f_.displayName;const E_=a.forwardRef((({className:t="",...n},r)=>e.jsx(v_,{ref:r,className:jt("-mx-1 my-1 h-px bg-muted",t),...n})));E_.displayName=v_.displayName;const R_=e=>"object"==typeof e&&"divider"in e,P_=e=>"object"==typeof e&&"value"in e&&"label"in e;var N_=W_(),j_=e=>z_(e,N_),M_=W_();j_.write=e=>z_(e,M_);var A_=W_();j_.onStart=e=>z_(e,A_);var I_=W_();j_.onFrame=e=>z_(e,I_);var T_=W_();j_.onFinish=e=>z_(e,T_);var O_=[];j_.setTimeout=(e,t)=>{const n=j_.now()+t,r=()=>{const e=O_.findIndex((e=>e.cancel==r));~e&&O_.splice(e,1),__-=~e?1:0},o={time:n,handler:e,cancel:r};return O_.splice(L_(n),0,o),__+=1,H_(),o};var L_=e=>~(~O_.findIndex((t=>t.time>e))||~O_.length);j_.cancel=e=>{A_.delete(e),I_.delete(e),T_.delete(e),N_.delete(e),M_.delete(e)},j_.sync=e=>{V_=!0,j_.batchedUpdates(e),V_=!1},j_.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,j_.onStart(n)}return r.handler=e,r.cancel=()=>{A_.delete(n),t=null},r};var D_="undefined"!=typeof window?window.requestAnimationFrame:()=>{};j_.use=e=>D_=e,j_.now="undefined"!=typeof performance?()=>performance.now():Date.now,j_.batchedUpdates=e=>e(),j_.catch=console.error,j_.frameLoop="always",j_.advance=()=>{"demand"!==j_.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):$_()};var F_=-1,__=0,V_=!1;function z_(e,t){V_?(t.delete(e),e(0)):(t.add(e),H_())}function H_(){F_<0&&(F_=0,"demand"!==j_.frameLoop&&D_(B_))}function B_(){~F_&&(D_(B_),j_.batchedUpdates($_))}function $_(){const e=F_;F_=j_.now();const t=L_(F_);t&&(U_(O_.splice(0,t),(e=>e.handler())),__-=t),__?(A_.flush(),N_.flush(e?Math.min(64,F_-e):16.667),I_.flush(),M_.flush(),T_.flush()):F_=-1}function W_(){let e=new Set,t=e;return{add(n){__+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(__-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,__-=t.size,U_(t,(t=>t(n)&&e.add(t))),__+=e.size,t=e)}}}function U_(e,t){e.forEach((e=>{try{t(e)}catch(e){j_.catch(e)}}))}var K_=Object.defineProperty,G_={};function q_(){}((e,t)=>{for(var n in t)K_(e,n,{get:t[n],enumerable:!0})})(G_,{assign:()=>lV,colors:()=>iV,createStringInterpolator:()=>tV,skipAnimation:()=>aV,to:()=>nV,willAdvance:()=>sV});var X_={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function Y_(e,t){if(X_.arr(e)){if(!X_.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var Z_=(e,t)=>e.forEach(t);function Q_(e,t,n){if(X_.arr(e))for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);else for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var J_=e=>X_.und(e)?[]:X_.arr(e)?e:[e];function eV(e,t){if(e.size){const n=Array.from(e);e.clear(),Z_(n,t)}}var tV,nV,rV=(e,...t)=>eV(e,(e=>e(...t))),oV=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),iV=null,aV=!1,sV=q_,lV=e=>{e.to&&(nV=e.to),e.now&&(j_.now=e.now),void 0!==e.colors&&(iV=e.colors),null!=e.skipAnimation&&(aV=e.skipAnimation),e.createStringInterpolator&&(tV=e.createStringInterpolator),e.requestAnimationFrame&&j_.use(e.requestAnimationFrame),e.batchedUpdates&&(j_.batchedUpdates=e.batchedUpdates),e.willAdvance&&(sV=e.willAdvance),e.frameLoop&&(j_.frameLoop=e.frameLoop)},uV=new Set,cV=[],dV=[],fV=0,pV={get idle(){return!uV.size&&!cV.length},start(e){fV>e.priority?(uV.add(e),j_.onStart(mV)):(hV(e),j_(vV))},advance:vV,sort(e){if(fV)j_.onFrame((()=>pV.sort(e)));else{const t=cV.indexOf(e);~t&&(cV.splice(t,1),gV(e))}},clear(){cV=[],uV.clear()}};function mV(){uV.forEach(hV),uV.clear(),j_(vV)}function hV(e){cV.includes(e)||gV(e)}function gV(e){cV.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(cV,(t=>t.priority>e.priority)),0,e)}function vV(e){const t=dV;for(let n=0;n<cV.length;n++){const r=cV[n];fV=r.priority,r.idle||(sV(r),r.advance(e),r.idle||t.push(r))}return fV=0,(dV=cV).length=0,(cV=t).length>0}var bV="[-+]?\\d*\\.?\\d+",wV=bV+"%";function yV(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var xV=new RegExp("rgb"+yV(bV,bV,bV)),CV=new RegExp("rgba"+yV(bV,bV,bV,bV)),SV=new RegExp("hsl"+yV(bV,wV,wV)),kV=new RegExp("hsla"+yV(bV,wV,wV,bV)),EV=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,RV=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,PV=/^#([0-9a-fA-F]{6})$/,NV=/^#([0-9a-fA-F]{8})$/;function jV(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function MV(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=jV(o,r,e+1/3),a=jV(o,r,e),s=jV(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function AV(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function IV(e){return(parseFloat(e)%360+360)%360/360}function TV(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function OV(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function LV(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=PV.exec(e))?parseInt(t[1]+"ff",16)>>>0:iV&&void 0!==iV[e]?iV[e]:(t=xV.exec(e))?(AV(t[1])<<24|AV(t[2])<<16|AV(t[3])<<8|255)>>>0:(t=CV.exec(e))?(AV(t[1])<<24|AV(t[2])<<16|AV(t[3])<<8|TV(t[4]))>>>0:(t=EV.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=NV.exec(e))?parseInt(t[1],16)>>>0:(t=RV.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=SV.exec(e))?(255|MV(IV(t[1]),OV(t[2]),OV(t[3])))>>>0:(t=kV.exec(e))?(MV(IV(t[1]),OV(t[2]),OV(t[3]))|TV(t[4]))>>>0:null}(e);if(null===t)return e;t=t||0;return`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`}var DV=(e,t,n)=>{if(X_.fun(e))return e;if(X_.arr(e))return DV({range:e,output:t,extrapolate:n});if(X_.str(e.output[0]))return tV(e);const r=e,o=r.output,i=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,i);return function(e,t,n,r,o,i,a,s,l){let u=l?l(e):e;if(u<t){if("identity"===a)return u;"clamp"===a&&(u=t)}if(u>n){if("identity"===s)return u;"clamp"===s&&(u=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t);u=i(u),r===-1/0?u=-u:o===1/0?u+=r:u=u*(o-r)+r;return u}(e,i[t],i[t+1],o[t],o[t+1],l,a,s,r.map)}};var FV=Symbol.for("FluidValue.get"),_V=Symbol.for("FluidValue.observers"),VV=e=>Boolean(e&&e[FV]),zV=e=>e&&e[FV]?e[FV]():e,HV=e=>e[_V]||null;function BV(e,t){const n=e[_V];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}var $V=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");WV(this,e)}},WV=(e,t)=>qV(e,FV,t);function UV(e,t){if(e[FV]){let n=e[_V];n||qV(e,_V,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function KV(e,t){const n=e[_V];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[_V]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var GV,qV=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),XV=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,YV=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,ZV=new RegExp(`(${XV.source})(%|[a-z]+)`,"i"),QV=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,JV=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,ez=e=>{const[t,n]=tz(e);if(!t||oV())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(n);return t||e}return n&&JV.test(n)?ez(n):n||e},tz=e=>{const t=JV.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},nz=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,rz=e=>{GV||(GV=iV?new RegExp(`(${Object.keys(iV).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>zV(e).replace(JV,ez).replace(YV,LV).replace(GV,LV))),n=t.map((e=>e.match(XV).map(Number))),r=n[0].map(((e,t)=>n.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))),o=r.map((t=>DV({...e,output:t})));return e=>{const n=!ZV.test(t[0])&&t.find((e=>ZV.test(e)))?.replace(XV,"");let r=0;return t[0].replace(XV,(()=>`${o[r++](e)}${n||""}`)).replace(QV,nz)}},oz="react-spring: ",iz=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${oz}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},az=iz(console.warn);var sz=iz(console.warn);function lz(e){return X_.str(e)&&("#"==e[0]||/\d/.test(e)||!oV()&&JV.test(e)||e in(iV||{}))}var uz=oV()?t.useEffect:t.useLayoutEffect,cz=()=>{const e=t.useRef(!1);return uz((()=>(e.current=!0,()=>{e.current=!1})),[]),e};function dz(){const e=t.useState()[1],n=cz();return()=>{n.current&&e(Math.random())}}var fz=e=>t.useEffect(e,pz),pz=[];function mz(e){const n=t.useRef();return t.useEffect((()=>{n.current=e})),n.current}var hz=Symbol.for("Animated:node"),gz=e=>e&&e[hz],vz=(e,t)=>{return n=e,r=hz,o=t,Object.defineProperty(n,r,{value:o,writable:!0,configurable:!0});var n,r,o},bz=e=>e&&e[hz]&&e[hz].getPayload(),wz=class{constructor(){vz(this,this)}getPayload(){return this.payload||[]}},yz=class extends wz{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,X_.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new yz(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return X_.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,X_.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},xz=class extends yz{constructor(e){super(0),this._string=null,this._toString=DV({output:[e,e]})}static create(e){return new xz(e)}getValue(){const e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(X_.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=DV({output:[this.getValue(),e]})),this._value=0,super.reset()}},Cz={dependencies:null},Sz=class extends wz{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Q_(this.source,((n,r)=>{var o;(o=n)&&o[hz]===o?t[r]=n.getValue(e):VV(n)?t[r]=zV(n):e||(t[r]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Z_(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return Q_(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Cz.dependencies&&VV(e)&&Cz.dependencies.add(e);const t=bz(e);t&&Z_(t,(e=>this.add(e)))}},kz=class extends Sz{constructor(e){super(e)}static create(e){return new kz(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,n)=>t.setValue(e[n]))).some(Boolean):(super.setValue(e.map(Ez)),!0)}};function Ez(e){return(lz(e)?xz:yz).create(e)}function Rz(e){const t=gz(e);return t?t.constructor:X_.arr(e)?kz:lz(e)?xz:yz}var Pz=(e,n)=>{const r=!X_.fun(e)||e.prototype&&e.prototype.isReactComponent;return t.forwardRef(((o,i)=>{const s=t.useRef(null),l=r&&t.useCallback((e=>{s.current=function(e,t){e&&(X_.fun(e)?e(t):e.current=t);return t}(i,e)}),[i]),[u,c]=function(e,t){const n=new Set;Cz.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)});return e=new Sz(e),Cz.dependencies=null,[e,n]}(o,n),d=dz(),f=()=>{const e=s.current;if(r&&!e)return;!1===(!!e&&n.applyAnimatedValues(e,u.getValue(!0)))&&d()},p=new Nz(f,c),m=t.useRef();uz((()=>(m.current=p,Z_(c,(e=>UV(e,p))),()=>{m.current&&(Z_(m.current.deps,(e=>KV(e,m.current))),j_.cancel(m.current.update))}))),t.useEffect(f,[]),fz((()=>()=>{const e=m.current;Z_(e.deps,(t=>KV(t,e)))}));const h=n.getComponentProps(u.getValue());return a.createElement(e,{...h,ref:l})}))},Nz=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&j_.write(this.update)}};var jz=Symbol.for("AnimatedComponent"),Mz=e=>X_.str(e)?e:e&&X_.str(e.displayName)?e.displayName:X_.fun(e)&&e.name||null;function Az(e,...t){return X_.fun(e)?e(...t):e}var Iz=(e,t)=>!0===e||!!(t&&e&&(X_.fun(e)?e(t):J_(e).includes(t))),Tz=(e,t)=>X_.obj(e)?t&&e[t]:e,Oz=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,Lz=e=>e,Dz=(e,t=Lz)=>{let n=Fz;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const r={};for(const o of n){const n=t(e[o],o);X_.und(n)||(r[o]=n)}return r},Fz=["config","onProps","onStart","onChange","onPause","onResume","onRest"],_z={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Vz(e){const t=function(e){const t={};let n=0;if(Q_(e,((e,r)=>{_z[r]||(t[r]=e,n++)})),n)return t}(e);if(t){const n={to:t};return Q_(e,((e,r)=>r in t||(n[r]=e))),n}return{...e}}function zz(e){return e=zV(e),X_.arr(e)?e.map(zz):lz(e)?G_.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Hz(e){return X_.fun(e)||X_.arr(e)&&X_.obj(e[0])}var Bz={tension:170,friction:26,mass:1,damping:1,easing:e=>e,clamp:!1},$z=class{constructor(){this.velocity=0,Object.assign(this,Bz)}};function Wz(e,t){if(X_.und(t.decay)){const n=!X_.und(t.tension)||!X_.und(t.friction);!n&&X_.und(t.frequency)&&X_.und(t.damping)&&X_.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var Uz=[],Kz=class{constructor(){this.changed=!1,this.values=Uz,this.toValues=null,this.fromValues=Uz,this.config=new $z,this.immediate=!1}};function Gz(e,{key:t,props:n,defaultProps:r,state:o,actions:i}){return new Promise(((a,s)=>{let l,u,c=Iz(n.cancel??r?.cancel,t);if(c)p();else{X_.und(n.pause)||(o.paused=Iz(n.pause,t));let e=r?.pause;!0!==e&&(e=o.paused||Iz(e,t)),l=Az(n.delay||0,t),e?(o.resumeQueue.add(f),i.pause()):(i.resume(),f())}function d(){o.resumeQueue.add(f),o.timeouts.delete(u),u.cancel(),l=u.time-j_.now()}function f(){l>0&&!G_.skipAnimation?(o.delayed=!0,u=j_.setTimeout(p,l),o.pauseQueue.add(d),o.timeouts.add(u)):p()}function p(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(d),o.timeouts.delete(u),e<=(o.cancelId||0)&&(c=!0);try{i.start({...n,callId:e,cancel:c},a)}catch(e){s(e)}}}))}var qz=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?Zz(e.get()):t.every((e=>e.noop))?Xz(e.get()):Yz(e.get(),t.every((e=>e.finished))),Xz=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Yz=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Zz=e=>({value:e,cancelled:!0,finished:!1});function Qz(e,t,n,r){const{callId:o,parentId:i,onRest:a}=t,{asyncTo:s,promise:l}=n;return i||e!==s||t.reset?n.promise=(async()=>{n.asyncId=o,n.asyncTo=e;const u=Dz(t,((e,t)=>"onRest"===t?void 0:e));let c,d;const f=new Promise(((e,t)=>(c=e,d=t))),p=e=>{const t=o<=(n.cancelId||0)&&Zz(r)||o!==n.asyncId&&Yz(r,!1);if(t)throw e.result=t,d(e),e},m=(e,t)=>{const i=new eH,a=new tH;return(async()=>{if(G_.skipAnimation)throw Jz(n),a.result=Yz(r,!1),d(a),a;p(i);const s=X_.obj(e)?{...e}:{...t,to:e};s.parentId=o,Q_(u,((e,t)=>{X_.und(s[t])&&(s[t]=e)}));const l=await r.start(s);return p(i),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),l})()};let h;if(G_.skipAnimation)return Jz(n),Yz(r,!1);try{let t;t=X_.arr(e)?(async e=>{for(const t of e)await m(t)})(e):Promise.resolve(e(m,r.stop.bind(r))),await Promise.all([t.then(c),f]),h=Yz(r.get(),!0,!1)}catch(e){if(e instanceof eH)h=e.result;else{if(!(e instanceof tH))throw e;h=e.result}}finally{o==n.asyncId&&(n.asyncId=i,n.asyncTo=i?s:void 0,n.promise=i?l:void 0)}return X_.fun(a)&&j_.batchedUpdates((()=>{a(h,r,r.item)})),h})():l}function Jz(e,t){eV(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var eH=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},tH=class extends Error{constructor(){super("SkipAnimationSignal")}},nH=e=>e instanceof oH,rH=1,oH=class extends $V{constructor(){super(...arguments),this.id=rH++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=gz(this);return e&&e.getValue()}to(...e){return G_.to(this,e)}interpolate(...e){return az(`${oz}The "interpolate" function is deprecated in v9 (use "to" instead)`),G_.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){BV(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||pV.sort(this),BV(this,{type:"priority",parent:this,priority:e})}},iH=Symbol.for("SpringPhase"),aH=e=>(1&e[iH])>0,sH=e=>(2&e[iH])>0,lH=e=>(4&e[iH])>0,uH=(e,t)=>t?e[iH]|=3:e[iH]&=-3,cH=(e,t)=>t?e[iH]|=4:e[iH]&=-5,dH=class extends oH{constructor(e,t){if(super(),this.animation=new Kz,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!X_.und(e)||!X_.und(t)){const n=X_.obj(e)?{...e}:{...t,from:e};X_.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(sH(this)||this._state.asyncTo)||lH(this)}get goal(){return zV(this.animation.to)}get velocity(){const e=gz(this);return e instanceof yz?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return aH(this)}get isAnimating(){return sH(this)}get isPaused(){return lH(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:o}=r;const{config:i}=r,a=bz(r.to);!a&&VV(r.to)&&(o=J_(zV(r.to))),r.values.forEach(((s,l)=>{if(s.done)return;const u=s.constructor==xz?1:a?a[l].lastPosition:o[l];let c=r.immediate,d=u;if(!c){if(d=s.lastPosition,i.tension<=0)return void(s.done=!0);let t=s.elapsedTime+=e;const n=r.fromValues[l],o=null!=s.v0?s.v0:s.v0=X_.arr(i.velocity)?i.velocity[l]:i.velocity;let a;const f=i.precision||(n==u?.005:Math.min(1,.001*Math.abs(u-n)));if(X_.und(i.duration))if(i.decay){const e=!0===i.decay?.998:i.decay,r=Math.exp(-(1-e)*t);d=n+o/(1-e)*(1-r),c=Math.abs(s.lastPosition-d)<=f,a=o*r}else{a=null==s.lastVelocity?o:s.lastVelocity;const t=i.restVelocity||f/10,r=i.clamp?0:i.bounce,l=!X_.und(r),p=n==u?s.v0>0:n<u;let m,h=!1;const g=1,v=Math.ceil(e/g);for(let e=0;e<v&&(m=Math.abs(a)>t,m||(c=Math.abs(u-d)<=f,!c));++e){l&&(h=d==u||d>u==p,h&&(a=-a*r,d=u));a+=(1e-6*-i.tension*(d-u)+.001*-i.friction*a)/i.mass*g,d+=a*g}}else{let r=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,s.durationProgress>0&&(s.elapsedTime=i.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(i.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,s.durationProgress=r),d=n+i.easing(r)*(u-n),a=(d-s.lastPosition)/e,c=1==r}s.lastVelocity=a,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),c=!0)}a&&!a[l].done&&(c=!1),c?s.done=!0:t=!1,s.setValue(d,i.round)&&(n=!0)}));const s=gz(this),l=s.getValue();if(t){const e=zV(r.to);l===e&&!n||i.decay?n&&i.decay&&this._onChange(l):(s.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(l)}set(e){return j_.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(sH(this)){const{to:e,config:t}=this.animation;j_.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return X_.und(e)?(n=this.queue||[],this.queue=[]):n=[X_.obj(e)?e:{...t,to:e}],Promise.all(n.map((e=>this._update(e)))).then((e=>qz(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Jz(this._state,e&&this._lastCallId),j_.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=X_.obj(n)?n[t]:n,(null==n||Hz(n))&&(n=void 0),r=X_.obj(r)?r[t]:r,null==r&&(r=void 0);const o={to:n,from:r};return aH(this)||(e.reverse&&([n,r]=[r,n]),r=zV(r),X_.und(r)?gz(this)||this._set(n):this._set(r)),o}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,Dz(e,((e,t)=>/^on/.test(t)?Tz(e,n):e))),bH(this,e,"onProps"),wH(this,"onProps",e,this);const o=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const i=this._state;return Gz(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{lH(this)||(cH(this,!0),rV(i.pauseQueue),wH(this,"onPause",Yz(this,fH(this,this.animation.to)),this))},resume:()=>{lH(this)&&(cH(this,!1),sH(this)&&this._resume(),rV(i.resumeQueue),wH(this,"onResume",Yz(this,fH(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then((n=>{if(e.loop&&n.finished&&(!t||!n.noop)){const t=pH(e);if(t)return this._update(t,!0)}return n}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Zz(this));const r=!X_.und(e.to),o=!X_.und(e.from);if(r||o){if(!(t.callId>this._lastToId))return n(Zz(this));this._lastToId=t.callId}const{key:i,defaultProps:a,animation:s}=this,{to:l,from:u}=s;let{to:c=l,from:d=u}=e;!o||r||t.default&&!X_.und(c)||(c=d),t.reverse&&([c,d]=[d,c]);const f=!Y_(d,u);f&&(s.from=d),d=zV(d);const p=!Y_(c,l);p&&this._focus(c);const m=Hz(t.to),{config:h}=s,{decay:g,velocity:v}=h;(r||o)&&(h.velocity=0),t.config&&!m&&function(e,t,n){n&&(Wz(n={...n},t),t={...n,...t}),Wz(e,t),Object.assign(e,t);for(const t in Bz)null==e[t]&&(e[t]=Bz[t]);let{frequency:r,damping:o}=e;const{mass:i}=e;X_.und(r)||(r<.01&&(r=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/r,2)*i,e.friction=4*Math.PI*o*i/r)}(h,Az(t.config,i),t.config!==a.config?Az(a.config,i):void 0);let b=gz(this);if(!b||X_.und(c))return n(Yz(this,!0));const w=X_.und(t.reset)?o&&!t.default:!X_.und(d)&&Iz(t.reset,i),y=w?d:this.get(),x=zz(c),C=X_.num(x)||X_.arr(x)||lz(x),S=!m&&(!C||Iz(a.immediate||t.immediate,i));if(p){const e=Rz(c);if(e!==b.constructor){if(!S)throw Error(`Cannot animate between ${b.constructor.name} and ${e.name}, as the "to" prop suggests`);b=this._set(x)}}const k=b.constructor;let E=VV(c),R=!1;if(!E){const e=w||!aH(this)&&f;(p||e)&&(R=Y_(zz(y),x),E=!R),(Y_(s.immediate,S)||S)&&Y_(h.decay,g)&&Y_(h.velocity,v)||(E=!0)}if(R&&sH(this)&&(s.changed&&!w?E=!0:E||this._stop(l)),!m&&((E||VV(l))&&(s.values=b.getPayload(),s.toValues=VV(c)?null:k==xz?[1]:J_(x)),s.immediate!=S&&(s.immediate=S,S||w||this._set(l)),E)){const{onRest:e}=s;Z_(vH,(e=>bH(this,t,e)));const r=Yz(this,fH(this,l));rV(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&j_.batchedUpdates((()=>{s.changed=!w,e?.(r,this),w?Az(a.onRest,r):s.onStart?.(r,this)}))}w&&this._set(y),m?n(Qz(t.to,t,this._state,this)):E?this._start():sH(this)&&!p?this._pendingCalls.add(n):n(Xz(y))}_focus(e){const t=this.animation;e!==t.to&&(HV(this)&&this._detach(),t.to=e,HV(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;VV(t)&&(UV(t,this),nH(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;VV(e)&&KV(e,this)}_set(e,t=!0){const n=zV(e);if(!X_.und(n)){const e=gz(this);if(!e||!Y_(n,e.getValue())){const r=Rz(n);e&&e.constructor==r?e.setValue(n):vz(this,r.create(n)),e&&j_.batchedUpdates((()=>{this._onChange(n,t)}))}}return gz(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,wH(this,"onStart",Yz(this,fH(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Az(this.animation.onChange,e,this)),Az(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;gz(this).reset(zV(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),sH(this)||(uH(this,!0),lH(this)||this._resume())}_resume(){G_.skipAnimation?this.finish():pV.start(this)}_stop(e,t){if(sH(this)){uH(this,!1);const n=this.animation;Z_(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),BV(this,{type:"idle",parent:this});const r=t?Zz(this.get()):Yz(this.get(),fH(this,e??n.to));rV(this._pendingCalls,r),n.changed&&(n.changed=!1,wH(this,"onRest",r,this))}}};function fH(e,t){const n=zz(t);return Y_(zz(e.get()),n)}function pH(e,t=e.loop,n=e.to){const r=Az(t);if(r){const o=!0!==r&&Vz(r),i=(o||e).reverse,a=!o||o.reset;return mH({...e,loop:t,default:!1,pause:void 0,to:!i||Hz(n)?n:void 0,from:a?e.from:void 0,reset:a,...o})}}function mH(e){const{to:t,from:n}=e=Vz(e),r=new Set;return X_.obj(t)&&gH(t,r),X_.obj(n)&&gH(n,r),e.keys=r.size?Array.from(r):null,e}function hH(e){const t=mH(e);return X_.und(t.default)&&(t.default=Dz(t)),t}function gH(e,t){Q_(e,((e,n)=>null!=e&&t.add(n)))}var vH=["onStart","onRest","onChange","onPause","onResume"];function bH(e,t,n){e.animation[n]=t[n]!==Oz(t,n)?Tz(t[n],e.key):void 0}function wH(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var yH=["onStart","onChange","onRest"],xH=1,CH=class{constructor(e,t){this.id=xH++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle&&!e.isDelayed&&!e.isPaused))}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each(((t,n)=>e[n]=t.get())),e}set(e){for(const t in e){const n=e[t];X_.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(mH(e)),this}start(e){let{queue:t}=this;return e?t=J_(e).map(mH):this.queue=[],this._flush?this._flush(this,t):(jH(this,t),SH(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Z_(J_(t),(t=>n[t].stop(!!e)))}else Jz(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(X_.und(e))this.start({pause:!0});else{const t=this.springs;Z_(J_(e),(e=>t[e].pause()))}return this}resume(e){if(X_.und(e))this.start({pause:!1});else{const t=this.springs;Z_(J_(e),(e=>t[e].resume()))}return this}each(e){Q_(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,o=this._changed.size>0;(r&&!this._started||o&&!this._started)&&(this._started=!0,eV(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const i=!r&&this._started,a=o||i&&n.size?this.get():null;o&&t.size&&eV(t,(([e,t])=>{t.value=a,e(t,this,this._item)})),i&&(this._started=!1,eV(n,(([e,t])=>{t.value=a,e(t,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}j_.onFrame(this._onFrame)}};function SH(e,t){return Promise.all(t.map((t=>kH(e,t)))).then((t=>qz(e,t)))}async function kH(e,t,n){const{keys:r,to:o,from:i,loop:a,onRest:s,onResolve:l}=t,u=X_.obj(t.default)&&t.default;a&&(t.loop=!1),!1===o&&(t.to=null),!1===i&&(t.from=null);const c=X_.arr(o)||X_.fun(o)?o:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):Z_(yH,(n=>{const r=t[n];if(X_.fun(r)){const o=e._events[n];t[n]=({finished:e,cancelled:t})=>{const n=o.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):o.set(r,{value:null,finished:e||!1,cancelled:t||!1})},u&&(u[n]=t[n])}}));const d=e._state;t.pause===!d.paused?(d.paused=t.pause,rV(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const f=(r||Object.keys(e.springs)).map((n=>e.springs[n].start(t))),p=!0===t.cancel||!0===Oz(t,"cancel");(c||p&&d.asyncId)&&f.push(Gz(++e._lastAsyncId,{props:t,state:d,actions:{pause:q_,resume:q_,start(t,n){p?(Jz(d,e._lastAsyncId),n(Zz(e))):(t.onRest=s,n(Qz(c,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const m=qz(e,await Promise.all(f));if(a&&m.finished&&(!n||!m.noop)){const n=pH(t,a,o);if(n)return jH(e,[n]),kH(e,n,!0)}return l&&j_.batchedUpdates((()=>l(m,e,e.item))),m}function EH(e,t){const n={...e.springs};return t&&Z_(J_(t),(e=>{X_.und(e.keys)&&(e=mH(e)),X_.obj(e.to)||(e={...e,to:void 0}),NH(n,e,(e=>PH(e)))})),RH(e,n),n}function RH(e,t){Q_(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,UV(t,e))}))}function PH(e,t){const n=new dH;return n.key=e,t&&UV(n,t),n}function NH(e,t,n){t.keys&&Z_(t.keys,(r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)}))}function jH(e,t){Z_(t,(t=>{NH(e.springs,t,(t=>PH(t,e)))}))}var MH=({children:e,...n})=>{const r=t.useContext(AH),o=n.pause||!!r.pause,i=n.immediate||!!r.immediate;n=function(e,n){const[r]=t.useState((()=>({inputs:n,result:e()}))),o=t.useRef(),i=o.current;let a=i;if(a){const t=Boolean(n&&a.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(n,a.inputs));t||(a={inputs:n,result:e()})}else a=r;return t.useEffect((()=>{o.current=a,i==r&&(r.inputs=r.result=void 0)}),[a]),a.result}((()=>({pause:o,immediate:i})),[o,i]);const{Provider:s}=AH;return a.createElement(s,{value:n},e)},AH=function(e,t){return Object.assign(e,a.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}(MH,{});MH.Provider=AH.Provider,MH.Consumer=AH.Consumer;var IH=()=>{const e=[],t=function(t){sz(`${oz}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const r=[];return Z_(e,((e,o)=>{if(X_.und(t))r.push(e.start());else{const i=n(t,e,o);i&&r.push(e.start(i))}})),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return Z_(e,(e=>e.pause(...arguments))),this},t.resume=function(){return Z_(e,(e=>e.resume(...arguments))),this},t.set=function(t){Z_(e,((e,n)=>{const r=X_.fun(t)?t(n,e):t;r&&e.set(r)}))},t.start=function(t){const n=[];return Z_(e,((e,r)=>{if(X_.und(t))n.push(e.start());else{const o=this._getProps(t,e,r);o&&n.push(e.start(o))}})),n},t.stop=function(){return Z_(e,(e=>e.stop(...arguments))),this},t.update=function(t){return Z_(e,((e,n)=>e.update(this._getProps(t,e,n)))),this};const n=function(e,t,n){return X_.fun(e)?e(n,t):e};return t._getProps=n,t};var TH=class extends oH{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=DV(...t);const n=this._get(),r=Rz(n);vz(this,r.create(n))}advance(e){const t=this._get();Y_(t,this.get())||(gz(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&LH(this._active)&&DH(this)}_get(){const e=X_.arr(this.source)?this.source.map(zV):J_(zV(this.source));return this.calc(...e)}_start(){this.idle&&!LH(this._active)&&(this.idle=!1,Z_(bz(this),(e=>{e.done=!1})),G_.skipAnimation?(j_.batchedUpdates((()=>this.advance())),DH(this)):pV.start(this))}_attach(){let e=1;Z_(J_(this.source),(t=>{VV(t)&&UV(t,this),nH(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){Z_(J_(this.source),(e=>{VV(e)&&KV(e,this)})),this._active.clear(),DH(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=J_(this.source).reduce(((e,t)=>Math.max(e,(nH(t)?t.priority:0)+1)),0))}};function OH(e){return!1!==e.idle}function LH(e){return!e.size||Array.from(e).every(OH)}function DH(e){e.idle||(e.idle=!0,Z_(bz(e),(e=>{e.done=!0})),BV(e,{type:"idle",parent:e}))}G_.assign({createStringInterpolator:rz,to:(e,t)=>new TH(e,t)});var FH=/^--/;function _H(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||FH.test(e)||zH.hasOwnProperty(e)&&zH[e]?(""+t).trim():t+"px"}var VH={};var zH={animationIterationCount:!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,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},HH=["Webkit","Ms","Moz","O"];zH=Object.keys(zH).reduce(((e,t)=>(HH.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),zH);var BH=/^(matrix|translate|scale|rotate|skew)/,$H=/^(translate)/,WH=/^(rotate|skew)/,UH=(e,t)=>X_.num(e)&&0!==e?e+t:e,KH=(e,t)=>X_.arr(e)?e.every((e=>KH(e,t))):X_.num(e)?e===t:parseFloat(e)===t,GH=class extends Sz{constructor({x:e,y:t,z:n,...r}){const o=[],i=[];(e||t||n)&&(o.push([e||0,t||0,n||0]),i.push((e=>[`translate3d(${e.map((e=>UH(e,"px"))).join(",")})`,KH(e,0)]))),Q_(r,((e,t)=>{if("transform"===t)o.push([e||""]),i.push((e=>[e,""===e]));else if(BH.test(t)){if(delete r[t],X_.und(e))return;const n=$H.test(t)?"px":WH.test(t)?"deg":"";o.push(J_(e)),i.push("rotate3d"===t?([e,t,r,o])=>[`rotate3d(${e},${t},${r},${UH(o,n)})`,KH(o,0)]:e=>[`${t}(${e.map((e=>UH(e,n))).join(",")})`,KH(e,t.startsWith("scale")?1:0)])}})),o.length&&(r.transform=new qH(o,i)),super(r)}},qH=class extends $V{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Z_(this.inputs,((n,r)=>{const o=zV(n[0]),[i,a]=this.transforms[r](X_.arr(o)?o:n.map(zV));e+=" "+i,t=t&&a})),t?"none":e}observerAdded(e){1==e&&Z_(this.inputs,(e=>Z_(e,(e=>VV(e)&&UV(e,this)))))}observerRemoved(e){0==e&&Z_(this.inputs,(e=>Z_(e,(e=>VV(e)&&KV(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),BV(this,e)}};G_.assign({batchedUpdates:n.unstable_batchedUpdates,createStringInterpolator:rz,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});var XH=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new Sz(e)),getComponentProps:r=(e=>e)}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=e=>{const t=Mz(e)||"Anonymous";return(e=X_.str(e)?i[e]||(i[e]=Pz(e,o)):e[jz]||(e[jz]=Pz(e,o))).displayName=`Animated(${t})`,e};return Q_(e,((t,n)=>{X_.arr(e)&&(n=Mz(t)),i[n]=i(t)})),{animated:i}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{className:r,style:o,children:i,scrollTop:a,scrollLeft:s,viewBox:l,...u}=t,c=Object.values(u),d=Object.keys(u).map((t=>n||e.hasAttribute(t)?t:VH[t]||(VH[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==i&&(e.textContent=i);for(const t in o)if(o.hasOwnProperty(t)){const n=_H(t,o[t]);FH.test(t)?e.style.setProperty(t,n):e.style[t]=n}d.forEach(((t,n)=>{e.setAttribute(t,c[n])})),void 0!==r&&(e.className=r),void 0!==a&&(e.scrollTop=a),void 0!==s&&(e.scrollLeft=s),void 0!==l&&e.setAttribute("viewBox",l)},createAnimatedStyle:e=>new GH(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),YH=XH.animated;const ZH=e=>{if("undefined"!=typeof Intl&&"Segmenter"in Intl){const t=new Intl.Segmenter("en",{granularity:"grapheme"}).segment(e);return Array.from(t).map((e=>e.segment))}return[...e]};function QH(e,t,n){let r,o=n.initialDeps??[];function i(){var i,a,s,l;let u;n.key&&(null==(i=n.debug)?void 0:i.call(n))&&(u=Date.now());const c=e(),d=c.length!==o.length||c.some(((e,t)=>o[t]!==e));if(!d)return r;let f;if(o=c,n.key&&(null==(a=n.debug)?void 0:a.call(n))&&(f=Date.now()),r=t(...c),n.key&&(null==(s=n.debug)?void 0:s.call(n))){const e=Math.round(100*(Date.now()-u))/100,t=Math.round(100*(Date.now()-f))/100,r=t/16,o=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${o(t,5)} /${o(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,null==n?void 0:n.key)}return null==(l=null==n?void 0:n.onChange)||l.call(n,r),r}return i.updateDeps=e=>{o=e},i}function JH(e,t){if(void 0===e)throw new Error("Unexpected undefined");return e}const eB=(e,t,n)=>{let r;return function(...o){e.clearTimeout(r),r=e.setTimeout((()=>t.apply(this,o)),n)}},tB=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},nB=e=>e,rB=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let e=t;e<=n;e++)r.push(e);return r},oB=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const o=e=>{const{width:n,height:r}=e;t({width:Math.round(n),height:Math.round(r)})};if(o(tB(n)),!r.ResizeObserver)return()=>{};const i=new r.ResizeObserver((t=>{const r=()=>{const e=t[0];if(null==e?void 0:e.borderBoxSize){const t=e.borderBoxSize[0];if(t)return void o({width:t.inlineSize,height:t.blockSize})}o(tB(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r()}));return i.observe(n,{box:"border-box"}),()=>{i.unobserve(n)}},iB={passive:!0},aB="undefined"==typeof window||"onscrollend"in window,sB=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let o=0;const i=e.options.useScrollendEvent&&aB?()=>{}:eB(r,(()=>{t(o,!1)}),e.options.isScrollingResetDelay),a=r=>()=>{const{horizontal:a,isRtl:s}=e.options;o=a?n.scrollLeft*(s?-1:1):n.scrollTop,i(),t(o,r)},s=a(!0),l=a(!1);l(),n.addEventListener("scroll",s,iB);const u=e.options.useScrollendEvent&&aB;return u&&n.addEventListener("scrollend",l,iB),()=>{n.removeEventListener("scroll",s),u&&n.removeEventListener("scrollend",l)}},lB=(e,t,n)=>{if(null==t?void 0:t.borderBoxSize){const e=t.borderBoxSize[0];if(e){return Math.round(e[n.options.horizontal?"inlineSize":"blockSize"])}}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},uB=(e,{adjustments:t=0,behavior:n},r)=>{var o,i;const a=e+t;null==(i=null==(o=r.scrollElement)?void 0:o.scrollTo)||i.call(o,{[r.options.horizontal?"left":"top"]:a,behavior:n})};class cB{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null;const t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver((e=>{e.forEach((e=>{const t=()=>{this._measureElement(e.target,e)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()}))})):null);return{disconnect:()=>{var n;null==(n=t())||n.disconnect(),e=null},observe:e=>{var n;return null==(n=t())?void 0:n.observe(e,{box:"border-box"})},unobserve:e=>{var n;return null==(n=t())?void 0:n.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach((([t,n])=>{void 0===n&&delete e[t]})),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:nB,rangeExtractor:rB,onChange:()=>{},measureElement:lB,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...e}},this.notify=e=>{var t,n;null==(n=(t=this.options).onChange)||n.call(t,this,e)},this.maybeNotify=QH((()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null])),(e=>{this.notify(e)}),{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach((e=>e())),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;const t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t)return void this.maybeNotify();this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach((e=>{this.observer.observe(e)})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,(e=>{this.scrollRect=e,this.maybeNotify()}))),this.unsubs.push(this.options.observeElementOffset(this,((e,t)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this.maybeNotify()})))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{const n=new Map,r=new Map;for(let o=t-1;o>=0;o--){const t=e[o];if(n.has(t.lane))continue;const i=r.get(t.lane);if(null==i||t.end>i.end?r.set(t.lane,t):t.end<i.end&&n.set(t.lane,!0),n.size===this.options.lanes)break}return r.size===this.options.lanes?Array.from(r.values()).sort(((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end))[0]:void 0},this.getMeasurementOptions=QH((()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled]),((e,t,n,r,o)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:o})),{key:!1}),this.getMeasurements=QH((()=>[this.getMeasurementOptions(),this.itemSizeCache]),(({count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:o},i)=>{if(!o)return this.measurementsCache=[],this.itemSizeCache.clear(),[];0===this.measurementsCache.length&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach((e=>{this.itemSizeCache.set(e.key,e.size)})));const a=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const s=this.measurementsCache.slice(0,a);for(let o=a;o<e;o++){const e=r(o),a=1===this.options.lanes?s[o-1]:this.getFurthestMeasurement(s,o),l=a?a.end+this.options.gap:t+n,u=i.get(e),c="number"==typeof u?u:this.options.estimateSize(o),d=l+c,f=a?a.lane:o%this.options.lanes;s[o]={index:o,start:l,size:c,end:d,key:e,lane:f}}return this.measurementsCache=s,s}),{key:!1,debug:()=>this.options.debug}),this.calculateRange=QH((()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes]),((e,t,n,r)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:n,lanes:r}){const o=e.length-1,i=t=>e[t].start;if(e.length<=r)return{startIndex:0,endIndex:o};let a=dB(0,o,i,n),s=a;if(1===r)for(;s<o&&e[s].end<n+t;)s++;else if(r>1){const i=Array(r).fill(0);for(;s<o&&i.some((e=>e<n+t));){const t=e[s];i[t.lane]=t.end,s++}const l=Array(r).fill(n+t);for(;a>=0&&l.some((e=>e>=n));){const t=e[a];l[t.lane]=t.start,a--}a=Math.max(0,a-a%r),s=Math.min(o,s+(r-1-s%r))}return{startIndex:a,endIndex:s}}({measurements:e,outerSize:t,scrollOffset:n,lanes:r}):null),{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=QH((()=>{let e=null,t=null;const n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]}),((e,t,n,r,o)=>null===r||null===o?[]:e({startIndex:r,endIndex:o,overscan:t,count:n})),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{const t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(e,t)=>{const n=this.indexFromElement(e),r=this.measurementsCache[n];if(!r)return;const o=r.key,i=this.elementsCache.get(o);i!==e&&(i&&this.observer.unobserve(i),this.observer.observe(e),this.elementsCache.set(o,e)),e.isConnected&&this.resizeItem(n,this.options.measureElement(e,t,this))},this.resizeItem=(e,t)=>{const n=this.measurementsCache[e];if(!n)return;const r=t-(this.itemSizeCache.get(n.key)??n.size);0!==r&&((void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(n,r,this):n.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=r,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,t)),this.notify(!1))},this.measureElement=e=>{e?this._measureElement(e,void 0):this.elementsCache.forEach(((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))}))},this.getVirtualItems=QH((()=>[this.getVirtualIndexes(),this.getMeasurements()]),((e,t)=>{const n=[];for(let r=0,o=e.length;r<o;r++){const o=t[e[r]];n.push(o)}return n}),{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{const t=this.getMeasurements();if(0!==t.length)return JH(t[dB(0,t.length-1,(e=>JH(t[e]).start),e)])},this.getOffsetForAlignment=(e,t,n=0)=>{const r=this.getSize(),o=this.getScrollOffset();"auto"===t&&(t=e>=o+r?"end":"start"),"center"===t?e+=(n-r)/2:"end"===t&&(e-=r);const i=this.getTotalSize()+this.options.scrollMargin-r;return Math.max(Math.min(i,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));const n=this.measurementsCache[e];if(!n)return;const r=this.getSize(),o=this.getScrollOffset();if("auto"===t)if(n.end>=o+r-this.options.scrollPaddingEnd)t="end";else{if(!(n.start<=o+this.options.scrollPaddingStart))return[o,t];t="start"}const i="end"===t?n.end+this.options.scrollPaddingEnd:n.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(i,t,n.size),t]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(e,{align:t="start",behavior:n}={})=>{"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,t),{adjustments:void 0,behavior:n})},this.scrollToIndex=(e,{align:t="auto",behavior:n}={})=>{"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),e=Math.max(0,Math.min(e,this.options.count-1));let r=0;const o=t=>{if(!this.targetWindow)return;const r=this.getOffsetForIndex(e,t);if(!r)return void console.warn("Failed to get offset for index:",e);const[o,a]=r;this._scrollToOffset(o,{adjustments:void 0,behavior:n}),this.targetWindow.requestAnimationFrame((()=>{const t=this.getScrollOffset(),n=this.getOffsetForIndex(e,a);n?((e,t)=>Math.abs(e-t)<1.01)(n[0],t)||i(a):console.warn("Failed to get offset for index:",e)}))},i=t=>{this.targetWindow&&(r++,r<10?this.targetWindow.requestAnimationFrame((()=>o(t))):console.warn(`Failed to scroll to index ${e} after 10 attempts.`))};o(t)},this.scrollBy=(e,{behavior:t}={})=>{"smooth"===t&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:t})},this.getTotalSize=()=>{var e;const t=this.getMeasurements();let n;if(0===t.length)n=this.options.paddingStart;else if(1===this.options.lanes)n=(null==(e=t[t.length-1])?void 0:e.end)??0;else{const e=Array(this.options.lanes).fill(null);let r=t.length-1;for(;r>=0&&e.some((e=>null===e));){const n=t[r];null===e[n.lane]&&(e[n.lane]=n.end),r--}n=Math.max(...e.filter((e=>null!==e)))}return Math.max(n-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(e)}}const dB=(e,t,n,r)=>{for(;e<=t;){const o=(e+t)/2|0,i=n(o);if(i<r)e=o+1;else{if(!(i>r))return o;t=o-1}}return e>0?e-1:0};const fB="undefined"!=typeof document?a.useLayoutEffect:a.useEffect;function pB(e){return function(e){const t=a.useReducer((()=>({})),{})[1],r={...e,onChange:(r,o)=>{var i;o?n.flushSync(t):t(),null==(i=e.onChange)||i.call(e,r,o)}},[o]=a.useState((()=>new cB(r)));return o.setOptions(r),fB((()=>o._didMount()),[]),fB((()=>o._willUpdate())),o}({observeElementRect:oB,observeElementOffset:sB,scrollToFn:uB,...e})}
38
+ /**
39
+ * table-core
40
+ *
41
+ * Copyright (c) TanStack
42
+ *
43
+ * This source code is licensed under the MIT license found in the
44
+ * LICENSE.md file in the root directory of this source tree.
45
+ *
46
+ * @license MIT
47
+ */function mB(e,t){return"function"==typeof e?e(t):e}function hB(e,t){return n=>{t.setState((t=>({...t,[e]:mB(n,t[e])})))}}function gB(e){return e instanceof Function}function vB(e,t,n){let r,o=[];return()=>{let i;n.key&&n.debug&&(i=Date.now());const a=e(),s=a.length!==o.length||a.some(((e,t)=>o[t]!==e));if(!s)return r;let l;if(o=a,n.key&&n.debug&&(l=Date.now()),r=t(...a),null==n||null==n.onChange||n.onChange(r),n.key&&n.debug&&null!=n&&n.debug()){const e=Math.round(100*(Date.now()-i))/100,t=Math.round(100*(Date.now()-l))/100,r=t/16,o=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${o(t,5)} /${o(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,null==n?void 0:n.key)}return r}}function bB(e,t,n){var r;let o={id:null!=(r=n.id)?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(o),e},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach((t=>{null==t.createHeader||t.createHeader(o,e)})),o}const wB={createTable:e=>{e.getHeaderGroups=vB((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,r,o)=>{var i,a;const s=null!=(i=null==r?void 0:r.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?i:[],l=null!=(a=null==o?void 0:o.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?a:[];return yB(t,[...s,...n.filter((e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id)))),...l],e)}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterHeaderGroups=vB((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,r,o)=>yB(t,n=n.filter((e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id)))),e,"center")),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftHeaderGroups=vB((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left]),((t,n,r)=>{var o;const i=null!=(o=null==r?void 0:r.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?o:[];return yB(t,i,e,"left")}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightHeaderGroups=vB((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right]),((t,n,r)=>{var o;const i=null!=(o=null==r?void 0:r.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?o:[];return yB(t,i,e,"right")}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getFooterGroups=vB((()=>[e.getHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftFooterGroups=vB((()=>[e.getLeftHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterFooterGroups=vB((()=>[e.getCenterHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightFooterGroups=vB((()=>[e.getRightHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getFlatHeaders=vB((()=>[e.getHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftFlatHeaders=vB((()=>[e.getLeftHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterFlatHeaders=vB((()=>[e.getCenterHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightFlatHeaders=vB((()=>[e.getRightHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterLeafHeaders=vB((()=>[e.getCenterFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftLeafHeaders=vB((()=>[e.getLeftFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightLeafHeaders=vB((()=>[e.getRightFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeafHeaders=vB((()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()]),((e,t,n)=>{var r,o,i,a,s,l;return[...null!=(r=null==(o=e[0])?void 0:o.headers)?r:[],...null!=(i=null==(a=t[0])?void 0:a.headers)?i:[],...null!=(s=null==(l=n[0])?void 0:l.headers)?s:[]].map((e=>e.getLeafHeaders())).flat()}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}})}};function yB(e,t,n,r){var o,i;let a=0;const s=function(e,t){void 0===t&&(t=1),a=Math.max(a,t),e.filter((e=>e.getIsVisible())).forEach((e=>{var n;null!=(n=e.columns)&&n.length&&s(e.columns,t+1)}),0)};s(e);let l=[];const u=(e,t)=>{const o={depth:t,id:[r,`${t}`].filter(Boolean).join("_"),headers:[]},i=[];e.forEach((e=>{const a=[...i].reverse()[0];let s,l=!1;if(e.column.depth===o.depth&&e.column.parent?s=e.column.parent:(s=e.column,l=!0),a&&(null==a?void 0:a.column)===s)a.subHeaders.push(e);else{const o=bB(n,s,{id:[r,t,s.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:l,placeholderId:l?`${i.filter((e=>e.column===s)).length}`:void 0,depth:t,index:i.length});o.subHeaders.push(e),i.push(o)}o.headers.push(e),e.headerGroup=o})),l.push(o),t>0&&u(i,t-1)},c=t.map(((e,t)=>bB(n,e,{depth:a,index:t})));u(c,a-1),l.reverse();const d=e=>e.filter((e=>e.column.getIsVisible())).map((e=>{let t=0,n=0,r=[0];e.subHeaders&&e.subHeaders.length?(r=[],d(e.subHeaders).forEach((e=>{let{colSpan:n,rowSpan:o}=e;t+=n,r.push(o)}))):t=1;return n+=Math.min(...r),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}}));return d(null!=(o=null==(i=l[0])?void 0:i.headers)?o:[]),l}const xB={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},CB={getDefaultColumnDef:()=>xB,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:hB("columnSizing",e),onColumnSizingInfoChange:hB("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,o;const i=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:xB.minSize,null!=(r=null!=i?i:e.columnDef.size)?r:xB.size),null!=(o=e.columnDef.maxSize)?o:xB.maxSize)},e.getStart=n=>{const r=n?"left"===n?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns(),o=r.findIndex((t=>t.id===e.id));if(o>0){const e=r[o-1];return e.getStart(n)+e.getSize()}return 0},e.resetSize=()=>{t.setColumnSizing((t=>{let{[e.id]:n,...r}=t;return r}))},e.getCanResize=()=>{var n,r;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(r=t.options.enableColumnResizing)||r)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0;const n=e=>{var r;e.subHeaders.length?e.subHeaders.forEach(n):t+=null!=(r=e.column.getSize())?r:0};return n(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),o=null==r?void 0:r.getCanResize();return i=>{if(!r||!o)return;if(null==i.persist||i.persist(),kB(i)&&i.touches&&i.touches.length>1)return;const a=e.getSize(),s=e?e.getLeafHeaders().map((e=>[e.column.id,e.column.getSize()])):[[r.id,r.getSize()]],l=kB(i)?Math.round(i.touches[0].clientX):i.clientX,u={},c=(e,n)=>{"number"==typeof n&&(t.setColumnSizingInfo((e=>{var r,o;const i="rtl"===t.options.columnResizeDirection?-1:1,a=(n-(null!=(r=null==e?void 0:e.startOffset)?r:0))*i,s=Math.max(a/(null!=(o=null==e?void 0:e.startSize)?o:0),-.999999);return e.columnSizingStart.forEach((e=>{let[t,n]=e;u[t]=Math.round(100*Math.max(n+n*s,0))/100})),{...e,deltaOffset:a,deltaPercentage:s}})),"onChange"!==t.options.columnResizeMode&&"end"!==e||t.setColumnSizing((e=>({...e,...u}))))},d=e=>c("move",e),f=e=>{c("end",e),t.setColumnSizingInfo((e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]})))},p=n||"undefined"!=typeof document?document:null,m={moveHandler:e=>d(e.clientX),upHandler:e=>{null==p||p.removeEventListener("mousemove",m.moveHandler),null==p||p.removeEventListener("mouseup",m.upHandler),f(e.clientX)}},h={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(e.touches[0].clientX),!1),upHandler:e=>{var t;null==p||p.removeEventListener("touchmove",h.moveHandler),null==p||p.removeEventListener("touchend",h.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),f(null==(t=e.touches[0])?void 0:t.clientX)}},g=!!function(){if("boolean"==typeof SB)return SB;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch(t){e=!1}return SB=e,SB}()&&{passive:!1};kB(i)?(null==p||p.addEventListener("touchmove",h.moveHandler,g),null==p||p.addEventListener("touchend",h.upHandler,g)):(null==p||p.addEventListener("mousemove",m.moveHandler,g),null==p||p.addEventListener("mouseup",m.upHandler,g)),t.setColumnSizingInfo((e=>({...e,startOffset:l,startSize:a,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:r.id})))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=e.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0}}};let SB=null;function kB(e){return"touchstart"===e.type}const EB={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:hB("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,o;if(t){if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetExpanded)?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue((()=>{e.resetExpanded(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,r;e.setExpanded(t?{}:null!=(n=null==(r=e.initialState)?void 0:r.expanded)?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some((e=>e.getCanExpand())),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{const t=e.getState().expanded;return"boolean"==typeof t?!0===t:!!Object.keys(t).length&&!e.getRowModel().flatRows.some((e=>!e.getIsExpanded()))},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach((e=>{const n=e.split(".");t=Math.max(t,n.length)})),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded((r=>{var o;const i=!0===r||!(null==r||!r[e.id]);let a={};if(!0===r?Object.keys(t.getRowModel().rowsById).forEach((e=>{a[e]=!0})):a=r,n=null!=(o=n)?o:!i,!i&&n)return{...a,[e.id]:!0};if(i&&!n){const{[e.id]:t,...n}=a;return n}return r}))},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===r||(null==r?void 0:r[e.id]))},e.getCanExpand=()=>{var n,r,o;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(r=t.options.enableExpanding)||r)&&!(null==(o=e.subRows)||!o.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},RB=(e,t,n)=>{var r;const o=n.toLowerCase();return Boolean(null==(r=e.getValue(t))||null==(r=r.toString())||null==(r=r.toLowerCase())?void 0:r.includes(o))};RB.autoRemove=e=>DB(e);const PB=(e,t,n)=>{var r;return Boolean(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.includes(n))};PB.autoRemove=e=>DB(e);const NB=(e,t,n)=>{var r;return(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.toLowerCase())===(null==n?void 0:n.toLowerCase())};NB.autoRemove=e=>DB(e);const jB=(e,t,n)=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)};jB.autoRemove=e=>DB(e)||!(null!=e&&e.length);const MB=(e,t,n)=>!n.some((n=>{var r;return!(null!=(r=e.getValue(t))&&r.includes(n))}));MB.autoRemove=e=>DB(e)||!(null!=e&&e.length);const AB=(e,t,n)=>n.some((n=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)}));AB.autoRemove=e=>DB(e)||!(null!=e&&e.length);const IB=(e,t,n)=>e.getValue(t)===n;IB.autoRemove=e=>DB(e);const TB=(e,t,n)=>e.getValue(t)==n;TB.autoRemove=e=>DB(e);const OB=(e,t,n)=>{let[r,o]=n;const i=e.getValue(t);return i>=r&&i<=o};OB.resolveFilterValue=e=>{let[t,n]=e,r="number"!=typeof t?parseFloat(t):t,o="number"!=typeof n?parseFloat(n):n,i=null===t||Number.isNaN(r)?-1/0:r,a=null===n||Number.isNaN(o)?1/0:o;if(i>a){const e=i;i=a,a=e}return[i,a]},OB.autoRemove=e=>DB(e)||DB(e[0])&&DB(e[1]);const LB={includesString:RB,includesStringSensitive:PB,equalsString:NB,arrIncludes:jB,arrIncludesAll:MB,arrIncludesSome:AB,equals:IB,weakEquals:TB,inNumberRange:OB};function DB(e){return null==e||""===e}const FB={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:hB("columnFilters",e),onGlobalFilterChange:hB("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"==typeof r||"number"==typeof r}}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"string"==typeof r?LB.includesString:"number"==typeof r?LB.inNumberRange:"boolean"==typeof r||null!==r&&"object"==typeof r?LB.equals:Array.isArray(r)?LB.arrIncludes:LB.weakEquals},e.getFilterFn=()=>{var n,r;return gB(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(r=t.options.filterFns)?void 0:r[e.columnDef.filterFn])?n:LB[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,o;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(r=t.options.enableColumnFilters)||r)&&(null==(o=t.options.enableFilters)||o)&&!!e.accessorFn},e.getCanGlobalFilter=()=>{var n,r,o,i;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(r=t.options.enableGlobalFilter)||r)&&(null==(o=t.options.enableFilters)||o)&&(null==(i=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||i)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return null==(n=t.getState().columnFilters)||null==(n=n.find((t=>t.id===e.id)))?void 0:n.value},e.getFilterIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().columnFilters)?void 0:r.findIndex((t=>t.id===e.id)))?n:-1},e.setFilterValue=n=>{t.setColumnFilters((t=>{const r=e.getFilterFn(),o=null==t?void 0:t.find((t=>t.id===e.id)),i=mB(n,o?o.value:void 0);var a;if(_B(r,i,e))return null!=(a=null==t?void 0:t.filter((t=>t.id!==e.id)))?a:[];const s={id:e.id,value:i};var l;return o?null!=(l=null==t?void 0:t.map((t=>t.id===e.id?s:t)))?l:[]:null!=t&&t.length?[...t,s]:[s]}))},e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.getGlobalAutoFilterFn=()=>LB.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return gB(r)?r:"auto"===r?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[r])?t:LB[r]},e.setColumnFilters=t=>{const n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange((e=>{var r;return null==(r=mB(t,e))?void 0:r.filter((e=>{const t=n.find((t=>t.id===e.id));if(t){if(_B(t.getFilterFn(),e.value,t))return!1}return!0}))}))},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.columnFilters)?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel()),e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}};function _B(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}const VB={sum:(e,t,n)=>n.reduce(((t,n)=>{const r=n.getValue(e);return t+("number"==typeof r?r:0)}),0),min:(e,t,n)=>{let r;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(r>n||void 0===r&&n>=n)&&(r=n)})),r},max:(e,t,n)=>{let r;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(r<n||void 0===r&&n>=n)&&(r=n)})),r},extent:(e,t,n)=>{let r,o;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(void 0===r?n>=n&&(r=o=n):(r>n&&(r=n),o<n&&(o=n)))})),[r,o]},mean:(e,t)=>{let n=0,r=0;if(t.forEach((t=>{let o=t.getValue(e);null!=o&&(o=+o)>=o&&(++n,r+=o)})),n)return r/n},median:(e,t)=>{if(!t.length)return;const n=t.map((t=>t.getValue(e)));if(!function(e){return Array.isArray(e)&&e.every((e=>"number"==typeof e))}(n))return;if(1===n.length)return n[0];const r=Math.floor(n.length/2),o=n.sort(((e,t)=>e-t));return n.length%2!=0?o[r]:(o[r-1]+o[r])/2},unique:(e,t)=>Array.from(new Set(t.map((t=>t.getValue(e)))).values()),uniqueCount:(e,t)=>new Set(t.map((t=>t.getValue(e)))).size,count:(e,t)=>t.length},zB={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:hB("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping((t=>null!=t&&t.includes(e.id)?t.filter((t=>t!==e.id)):[...null!=t?t:[],e.id]))},e.getCanGroup=()=>{var n,r,o,i;return null!=(n=null==(r=null!=(o=null==(i=e.columnDef.enableGrouping)||i)?o:t.options.enableGrouping)||r)?n:!!e.accessorFn},e.getIsGrouped=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"number"==typeof r?VB.sum:"[object Date]"===Object.prototype.toString.call(r)?VB.extent:void 0},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return gB(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(r=t.options.aggregationFns)?void 0:r[e.columnDef.aggregationFn])?n:VB[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.grouping)?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return null!=r&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=n.subRows)||!t.length)}}};const HB={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:hB("columnOrder",e)}),createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=vB((()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode]),((e,t,n)=>r=>{let o=[];if(null!=e&&e.length){const t=[...e],n=[...r];for(;n.length&&t.length;){const e=t.shift(),r=n.findIndex((t=>t.id===e));r>-1&&o.push(n.splice(r,1)[0])}o=[...o,...n]}else o=r;return function(e,t,n){if(null==t||!t.length||!n)return e;const r=e.filter((e=>!t.includes(e.id)));if("remove"===n)return r;const o=t.map((t=>e.find((e=>e.id===t)))).filter(Boolean);return[...o,...r]}(o,t,n)}),{key:!1})}},BB={getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:hB("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,o;if(t){if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetPageIndex)?r:!e.options.manualPagination){if(n)return;n=!0,e._queue((()=>{e.resetPageIndex(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange((e=>mB(t,e))),e.resetPagination=t=>{var n;e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(n=e.initialState.pagination)?n:{pageIndex:0,pageSize:10})},e.setPageIndex=t=>{e.setPagination((n=>{let r=mB(t,n.pageIndex);const o=void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return r=Math.max(0,Math.min(r,o)),{...n,pageIndex:r}}))},e.resetPageIndex=t=>{var n,r;e.setPageIndex(t?0:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageIndex)?n:0)},e.resetPageSize=t=>{var n,r;e.setPageSize(t?10:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination((e=>{const n=Math.max(1,mB(t,e.pageSize)),r=e.pageSize*e.pageIndex,o=Math.floor(r/n);return{...e,pageIndex:o,pageSize:n}}))},e.setPageCount=t=>e.setPagination((n=>{var r;let o=mB(t,null!=(r=e.options.pageCount)?r:-1);return"number"==typeof o&&(o=Math.max(-1,o)),{...n,pageCount:o}})),e.getPageOptions=vB((()=>[e.getPageCount()]),(e=>{let t=[];return e&&e>0&&(t=[...new Array(e)].fill(null).map(((e,t)=>t))),t}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return-1===n||0!==n&&t<n-1},e.previousPage=()=>e.setPageIndex((e=>e-1)),e.nextPage=()=>e.setPageIndex((e=>e+1)),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}},$B={getInitialState:e=>({columnPinning:{left:[],right:[]},rowPinning:{top:[],bottom:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:hB("columnPinning",e),onRowPinningChange:hB("rowPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map((e=>e.id)).filter(Boolean);t.setColumnPinning((e=>{var t,o,i,a,s,l;return"right"===n?{left:(null!=(i=null==e?void 0:e.left)?i:[]).filter((e=>!(null!=r&&r.includes(e)))),right:[...(null!=(a=null==e?void 0:e.right)?a:[]).filter((e=>!(null!=r&&r.includes(e)))),...r]}:"left"===n?{left:[...(null!=(s=null==e?void 0:e.left)?s:[]).filter((e=>!(null!=r&&r.includes(e)))),...r],right:(null!=(l=null==e?void 0:e.right)?l:[]).filter((e=>!(null!=r&&r.includes(e))))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter((e=>!(null!=r&&r.includes(e)))),right:(null!=(o=null==e?void 0:e.right)?o:[]).filter((e=>!(null!=r&&r.includes(e))))}}))},e.getCanPin=()=>e.getLeafColumns().some((e=>{var n,r,o;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(r=null!=(o=t.options.enableColumnPinning)?o:t.options.enablePinning)||r)})),e.getIsPinned=()=>{const n=e.getLeafColumns().map((e=>e.id)),{left:r,right:o}=t.getState().columnPinning,i=n.some((e=>null==r?void 0:r.includes(e))),a=n.some((e=>null==o?void 0:o.includes(e)));return i?"left":!!a&&"right"},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();return o?null!=(n=null==(r=t.getState().columnPinning)||null==(r=r[o])?void 0:r.indexOf(e.id))?n:-1:0}},createRow:(e,t)=>{e.pin=(n,r,o)=>{const i=r?e.getLeafRows().map((e=>{let{id:t}=e;return t})):[],a=o?e.getParentRows().map((e=>{let{id:t}=e;return t})):[],s=new Set([...a,e.id,...i]);t.setRowPinning((e=>{var t,r,o,i,a,l;return"bottom"===n?{top:(null!=(o=null==e?void 0:e.top)?o:[]).filter((e=>!(null!=s&&s.has(e)))),bottom:[...(null!=(i=null==e?void 0:e.bottom)?i:[]).filter((e=>!(null!=s&&s.has(e)))),...Array.from(s)]}:"top"===n?{top:[...(null!=(a=null==e?void 0:e.top)?a:[]).filter((e=>!(null!=s&&s.has(e)))),...Array.from(s)],bottom:(null!=(l=null==e?void 0:e.bottom)?l:[]).filter((e=>!(null!=s&&s.has(e))))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter((e=>!(null!=s&&s.has(e)))),bottom:(null!=(r=null==e?void 0:e.bottom)?r:[]).filter((e=>!(null!=s&&s.has(e))))}}))},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:o}=t.options;return"function"==typeof r?r(e):null==(n=null!=r?r:o)||n},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:o}=t.getState().rowPinning,i=n.some((e=>null==r?void 0:r.includes(e))),a=n.some((e=>null==o?void 0:o.includes(e)));return i?"top":!!a&&"bottom"},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();if(!o)return-1;const i=null==(n=t._getPinnedRows(o))?void 0:n.map((e=>{let{id:t}=e;return t}));return null!=(r=null==i?void 0:i.indexOf(e.id))?r:-1},e.getCenterVisibleCells=vB((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right]),((e,t,n)=>{const r=[...null!=t?t:[],...null!=n?n:[]];return e.filter((e=>!r.includes(e.column.id)))}),{key:!1,debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),e.getLeftVisibleCells=vB((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,,]),((e,t)=>{const n=(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"left"})));return n}),{key:!1,debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),e.getRightVisibleCells=vB((()=>[e._getAllVisibleCells(),t.getState().columnPinning.right]),((e,t)=>{const n=(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"right"})));return n}),{key:!1,debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}})},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?{left:[],right:[]}:null!=(n=null==(r=e.initialState)?void 0:r.columnPinning)?n:{left:[],right:[]})},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;var o,i;return t?Boolean(null==(n=r[t])?void 0:n.length):Boolean((null==(o=r.left)?void 0:o.length)||(null==(i=r.right)?void 0:i.length))},e.getLeftLeafColumns=vB((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),e.getRightLeafColumns=vB((()=>[e.getAllLeafColumns(),e.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),e.getCenterLeafColumns=vB((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((e,t,n)=>{const r=[...null!=t?t:[],...null!=n?n:[]];return e.filter((e=>!r.includes(e.id)))}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?{top:[],bottom:[]}:null!=(n=null==(r=e.initialState)?void 0:r.rowPinning)?n:{top:[],bottom:[]})},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;var o,i;return t?Boolean(null==(n=r[t])?void 0:n.length):Boolean((null==(o=r.top)?void 0:o.length)||(null==(i=r.bottom)?void 0:i.length))},e._getPinnedRows=t=>vB((()=>[e.getRowModel().rows,e.getState().rowPinning[t]]),((n,r)=>{var o;return(null==(o=e.options.keepPinnedRows)||o?(null!=r?r:[]).map((t=>{const n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null})):(null!=r?r:[]).map((e=>n.find((t=>t.id===e))))).filter(Boolean).map((e=>({...e,position:t})))}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}})(),e.getTopRows=()=>e._getPinnedRows("top"),e.getBottomRows=()=>e._getPinnedRows("bottom"),e.getCenterRows=vB((()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom]),((e,t,n)=>{const r=new Set([...null!=t?t:[],...null!=n?n:[]]);return e.filter((e=>!r.has(e.id)))}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}})}},WB={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:hB("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection((n=>{t=void 0!==t?t:!e.getIsAllRowsSelected();const r={...n},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach((e=>{e.getCanSelect()&&(r[e.id]=!0)})):o.forEach((e=>{delete r[e.id]})),r}))},e.toggleAllPageRowsSelected=t=>e.setRowSelection((n=>{const r=void 0!==t?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach((t=>{UB(o,t.id,r,!0,e)})),o})),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=vB((()=>[e.getState().rowSelection,e.getCoreRowModel()]),((t,n)=>Object.keys(t).length?KB(e,n):{rows:[],flatRows:[],rowsById:{}}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getFilteredSelectedRowModel=vB((()=>[e.getState().rowSelection,e.getFilteredRowModel()]),((t,n)=>Object.keys(t).length?KB(e,n):{rows:[],flatRows:[],rowsById:{}}),{key:"getFilteredSelectedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getGroupedSelectedRowModel=vB((()=>[e.getState().rowSelection,e.getSortedRowModel()]),((t,n)=>Object.keys(t).length?KB(e,n):{rows:[],flatRows:[],rowsById:{}}),{key:"getGroupedSelectedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=Boolean(t.length&&Object.keys(n).length);return r&&t.some((e=>e.getCanSelect()&&!n[e.id]))&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter((e=>e.getCanSelect())),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some((e=>!n[e.id]))&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter((e=>e.getCanSelect())).some((e=>e.getIsSelected()||e.getIsSomeSelected()))},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const o=e.getIsSelected();t.setRowSelection((i=>{var a;if(n=void 0!==n?n:!o,e.getCanSelect()&&o===n)return i;const s={...i};return UB(s,e.id,n,null==(a=null==r?void 0:r.selectChildren)||a,t),s}))},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return GB(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===qB(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===qB(e,n)},e.getCanSelect=()=>{var n;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return n=>{var r;t&&e.toggleSelected(null==(r=n.target)?void 0:r.checked)}}}},UB=(e,t,n,r,o)=>{var i;const a=o.getRow(t,!0);n?(a.getCanMultiSelect()||Object.keys(e).forEach((t=>delete e[t])),a.getCanSelect()&&(e[t]=!0)):delete e[t],r&&null!=(i=a.subRows)&&i.length&&a.getCanSelectSubRows()&&a.subRows.forEach((t=>UB(e,t.id,n,r,o)))};function KB(e,t){const n=e.getState().rowSelection,r=[],o={},i=function(e,t){return e.map((e=>{var t;const a=GB(e,n);if(a&&(r.push(e),o[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:i(e.subRows)}),a)return e})).filter(Boolean)};return{rows:i(t.rows),flatRows:r,rowsById:o}}function GB(e,t){var n;return null!=(n=t[e.id])&&n}function qB(e,t,n){var r;if(null==(r=e.subRows)||!r.length)return!1;let o=!0,i=!1;return e.subRows.forEach((e=>{if((!i||o)&&(e.getCanSelect()&&(GB(e,t)?i=!0:o=!1),e.subRows&&e.subRows.length)){const n=qB(e,t);"all"===n?i=!0:"some"===n?(i=!0,o=!1):o=!1}})),o?"all":!!i&&"some"}const XB=/([0-9]+)/gm;function YB(e,t){return e===t?0:e>t?1:-1}function ZB(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function QB(e,t){const n=e.split(XB).filter(Boolean),r=t.split(XB).filter(Boolean);for(;n.length&&r.length;){const e=n.shift(),t=r.shift(),o=parseInt(e,10),i=parseInt(t,10),a=[o,i].sort();if(isNaN(a[0])){if(e>t)return 1;if(t>e)return-1}else{if(isNaN(a[1]))return isNaN(o)?-1:1;if(o>i)return 1;if(i>o)return-1}}return n.length-r.length}const JB={alphanumeric:(e,t,n)=>QB(ZB(e.getValue(n)).toLowerCase(),ZB(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>QB(ZB(e.getValue(n)),ZB(t.getValue(n))),text:(e,t,n)=>YB(ZB(e.getValue(n)).toLowerCase(),ZB(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>YB(ZB(e.getValue(n)),ZB(t.getValue(n))),datetime:(e,t,n)=>{const r=e.getValue(n),o=t.getValue(n);return r>o?1:r<o?-1:0},basic:(e,t,n)=>YB(e.getValue(n),t.getValue(n))},e$={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:hB("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const t of n){const n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return JB.datetime;if("string"==typeof n&&(r=!0,n.split(XB).length>1))return JB.alphanumeric}return r?JB.text:JB.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return"string"==typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return gB(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(r=t.options.sortingFns)?void 0:r[e.columnDef.sortingFn])?n:JB[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const o=e.getNextSortingOrder(),i=null!=n;t.setSorting((a=>{const s=null==a?void 0:a.find((t=>t.id===e.id)),l=null==a?void 0:a.findIndex((t=>t.id===e.id));let u,c=[],d=i?n:"desc"===o;var f;(u=null!=a&&a.length&&e.getCanMultiSort()&&r?s?"toggle":"add":null!=a&&a.length&&l!==a.length-1?"replace":s?"toggle":"replace","toggle"===u&&(i||o||(u="remove")),"add"===u)?(c=[...a,{id:e.id,desc:d}],c.splice(0,c.length-(null!=(f=t.options.maxMultiSortColCount)?f:Number.MAX_SAFE_INTEGER))):c="toggle"===u?a.map((t=>t.id===e.id?{...t,desc:d}:t)):"remove"===u?a.filter((t=>t.id!==e.id)):[{id:e.id,desc:d}];return c}))},e.getFirstSortDir=()=>{var n,r;return(null!=(n=null!=(r=e.columnDef.sortDescFirst)?r:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=n=>{var r,o;const i=e.getFirstSortDir(),a=e.getIsSorted();return a?!!(a===i||null!=(r=t.options.enableSortingRemoval)&&!r||n&&null!=(o=t.options.enableMultiRemove)&&!o)&&("desc"===a?"asc":"desc"):i},e.getCanSort=()=>{var n,r;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(r=t.options.enableSorting)||r)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return null!=(n=null!=(r=e.columnDef.enableMultiSort)?r:t.options.enableMultiSort)?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=null==(n=t.getState().sorting)?void 0:n.find((t=>t.id===e.id));return!!r&&(r.desc?"desc":"asc")},e.getSortIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().sorting)?void 0:r.findIndex((t=>t.id===e.id)))?n:-1},e.clearSorting=()=>{t.setSorting((t=>null!=t&&t.length?t.filter((t=>t.id!==e.id)):[]))},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(null==r.persist||r.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(r))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.sorting)?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},t$={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:hB("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility((t=>({...t,[e.id]:null!=n?n:!e.getIsVisible()})))},e.getIsVisible=()=>{var n,r;return null==(n=null==(r=t.getState().columnVisibility)?void 0:r[e.id])||n},e.getCanHide=()=>{var n,r;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(r=t.options.enableHiding)||r)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=vB((()=>[e.getAllCells(),t.getState().columnVisibility]),(e=>e.filter((e=>e.column.getIsVisible()))),{key:"row._getAllVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),e.getVisibleCells=vB((()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()]),((e,t,n)=>[...e,...t,...n]),{key:!1,debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}})},createTable:e=>{const t=(t,n)=>vB((()=>[n(),n().filter((e=>e.getIsVisible())).map((e=>e.id)).join("_")]),(e=>e.filter((e=>null==e.getIsVisible?void 0:e.getIsVisible()))),{key:t,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}});e.getVisibleFlatColumns=t("getVisibleFlatColumns",(()=>e.getAllFlatColumns())),e.getVisibleLeafColumns=t("getVisibleLeafColumns",(()=>e.getAllLeafColumns())),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",(()=>e.getLeftLeafColumns())),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",(()=>e.getRightLeafColumns())),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",(()=>e.getCenterLeafColumns())),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce(((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())})),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some((e=>!(null!=e.getIsVisible&&e.getIsVisible()))),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some((e=>null==e.getIsVisible?void 0:e.getIsVisible())),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}},n$=[wB,t$,HB,$B,FB,e$,zB,EB,BB,WB,CB];function r$(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");let n={_features:n$};const r=n._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(n))),{});let o={...null!=(t=e.initialState)?t:{}};n._features.forEach((e=>{var t;o=null!=(t=null==e.getInitialState?void 0:e.getInitialState(o))?t:o}));const i=[];let a=!1;const s={_features:n$,options:{...r,...e},initialState:o,_queue:e=>{i.push(e),a||(a=!0,Promise.resolve().then((()=>{for(;i.length;)i.shift()();a=!1})).catch((e=>setTimeout((()=>{throw e})))))},reset:()=>{n.setState(n.initialState)},setOptions:e=>{const t=mB(e,n.options);n.options=(e=>n.options.mergeOptions?n.options.mergeOptions(r,e):{...r,...e})(t)},getState:()=>n.options.state,setState:e=>{null==n.options.onStateChange||n.options.onStateChange(e)},_getRowId:(e,t,r)=>{var o;return null!=(o=null==n.options.getRowId?void 0:n.options.getRowId(e,t,r))?o:`${r?[r.id,t].join("."):t}`},getCoreRowModel:()=>(n._getCoreRowModel||(n._getCoreRowModel=n.options.getCoreRowModel(n)),n._getCoreRowModel()),getRowModel:()=>n.getPaginationRowModel(),getRow:(e,t)=>{let r=(t?n.getPrePaginationRowModel():n.getRowModel()).rowsById[e];if(!r&&(r=n.getCoreRowModel().rowsById[e],!r))throw new Error;return r},_getDefaultColumnDef:vB((()=>[n.options.defaultColumn]),(e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{const t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null},...n._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef())),{}),...e}}),{debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns},key:!1}),_getColumnDefs:()=>n.options.columns,getAllColumns:vB((()=>[n._getColumnDefs()]),(e=>{const t=function(e,r,o){return void 0===o&&(o=0),e.map((e=>{const i=function(e,t,n,r){var o,i;const a={...e._getDefaultColumnDef(),...t},s=a.accessorKey;let l,u=null!=(o=null!=(i=a.id)?i:s?s.replace(".","_"):void 0)?o:"string"==typeof a.header?a.header:void 0;if(a.accessorFn?l=a.accessorFn:s&&(l=s.includes(".")?e=>{let t=e;for(const e of s.split(".")){var n;t=null==(n=t)?void 0:n[e]}return t}:e=>e[a.accessorKey]),!u)throw new Error;let c={id:`${String(u)}`,accessorFn:l,parent:r,depth:n,columnDef:a,columns:[],getFlatColumns:vB((()=>[!0]),(()=>{var e;return[c,...null==(e=c.columns)?void 0:e.flatMap((e=>e.getFlatColumns()))]}),{key:"column.getFlatColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getLeafColumns:vB((()=>[e._getOrderColumnsFn()]),(e=>{var t;if(null!=(t=c.columns)&&t.length){let t=c.columns.flatMap((e=>e.getLeafColumns()));return e(t)}return[c]}),{key:"column.getLeafColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})};for(const t of e._features)null==t.createColumn||t.createColumn(c,e);return c}(n,e,o,r),a=e;return i.columns=a.columns?t(a.columns,i,o+1):[],i}))};return t(e)}),{key:!1,debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getAllFlatColumns:vB((()=>[n.getAllColumns()]),(e=>e.flatMap((e=>e.getFlatColumns()))),{key:!1,debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),_getAllFlatColumnsById:vB((()=>[n.getAllFlatColumns()]),(e=>e.reduce(((e,t)=>(e[t.id]=t,e)),{})),{key:!1,debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getAllLeafColumns:vB((()=>[n.getAllColumns(),n._getOrderColumnsFn()]),((e,t)=>t(e.flatMap((e=>e.getLeafColumns())))),{key:!1,debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getColumn:e=>n._getAllFlatColumnsById()[e]};Object.assign(n,s);for(let e=0;e<n._features.length;e++){const t=n._features[e];null==t||null==t.createTable||t.createTable(n)}return n}const o$=(e,t,n,r,o,i,a)=>{let s={id:t,index:r,original:n,depth:o,parentId:a,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(s._valuesCache.hasOwnProperty(t))return s._valuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?(s._valuesCache[t]=n.accessorFn(s.original,r),s._valuesCache[t]):void 0},getUniqueValues:t=>{if(s._uniqueValuesCache.hasOwnProperty(t))return s._uniqueValuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(s._uniqueValuesCache[t]=n.columnDef.getUniqueValues(s.original,r),s._uniqueValuesCache[t]):(s._uniqueValuesCache[t]=[s.getValue(t)],s._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=s.getValue(t))?n:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>function(e,t){const n=[],r=e=>{e.forEach((e=>{n.push(e);const o=t(e);null!=o&&o.length&&r(o)}))};return r(e),n}(s.subRows,(e=>e.subRows)),getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let e=[],t=s;for(;;){const n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:vB((()=>[e.getAllLeafColumns()]),(t=>t.map((t=>function(e,t,n,r){const o={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:()=>{var t;return null!=(t=o.getValue())?t:e.options.renderFallbackValue},getContext:vB((()=>[e,n,t,o]),((e,t,n,r)=>({table:e,column:t,row:n,cell:r,getValue:r.getValue,renderValue:r.renderValue})),{key:!1,debug:()=>e.options.debugAll})};return e._features.forEach((r=>{null==r.createCell||r.createCell(o,n,t,e)}),{}),o}(e,s,t,t.id)))),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}}),_getAllCellsByColumnId:vB((()=>[s.getAllCells()]),(e=>e.reduce(((e,t)=>(e[t.column.id]=t,e)),{})),{key:"row.getAllCellsByColumnId",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}})};for(let t=0;t<e._features.length;t++){const n=e._features[t];null==n||null==n.createRow||n.createRow(s,e)}return s};function i$(e,t,n){return n.options.filterFromLeafRows?function(e,t,n){var r;const o=[],i={},a=null!=(r=n.options.maxLeafRowFilterDepth)?r:100,s=function(e,r){void 0===r&&(r=0);const l=[];for(let c=0;c<e.length;c++){var u;let d=e[c];const f=o$(n,d.id,d.original,d.index,d.depth,void 0,d.parentId);if(f.columnFilters=d.columnFilters,null!=(u=d.subRows)&&u.length&&r<a){if(f.subRows=s(d.subRows,r+1),d=f,t(d)&&!f.subRows.length){l.push(d),i[d.id]=d,o.push(d);continue}if(t(d)||f.subRows.length){l.push(d),i[d.id]=d,o.push(d);continue}}else d=f,t(d)&&(l.push(d),i[d.id]=d,o.push(d))}return l};return{rows:s(e),flatRows:o,rowsById:i}}(e,t,n):function(e,t,n){var r;const o=[],i={},a=null!=(r=n.options.maxLeafRowFilterDepth)?r:100,s=function(e,r){void 0===r&&(r=0);const l=[];for(let c=0;c<e.length;c++){let d=e[c];if(t(d)){var u;if(null!=(u=d.subRows)&&u.length&&r<a){const e=o$(n,d.id,d.original,d.index,d.depth,void 0,d.parentId);e.subRows=s(d.subRows,r+1),d=e}l.push(d),o.push(d),i[d.id]=d}}return l};return{rows:s(e),flatRows:o,rowsById:i}}(e,t,n)}
48
+ /**
49
+ * react-table
50
+ *
51
+ * Copyright (c) TanStack
52
+ *
53
+ * This source code is licensed under the MIT license found in the
54
+ * LICENSE.md file in the root directory of this source tree.
55
+ *
56
+ * @license MIT
57
+ */
58
+ function a$(e,t){return e?function(e){return"function"==typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(n=e)||"function"==typeof n||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(n)?a.createElement(e,t):e:null;var n}const s$=({value:t,onChange:n,isSearching:r,placeholder:o})=>{const i=!0===r,a=null!=t&&t.length>0;return e.jsxs("div",{className:"relative w-full",children:[e.jsx("div",{className:"relative rounded-lg transition-all duration-500 ease-in-out",children:e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"absolute left-3 top-1/2 z-50 -translate-y-1/2",children:e.jsx(Ep,{className:jt("h-4 w-4 transition-all duration-500 ease-in-out",i&&a?"text-blue-400":"text-gray-400")})}),e.jsx("input",{type:"text",value:t,onChange:n,placeholder:o,className:"peer relative z-20 w-full rounded-lg bg-surface-secondary px-10 py-2 outline-none ring-0 backdrop-blur-sm transition-all duration-500 ease-in-out placeholder:text-gray-400 focus:outline-none focus:ring-0"}),e.jsx("div",{className:`pointer-events-none absolute inset-0 z-20 rounded-lg bg-gradient-to-r from-blue-500/20 via-purple-500/20 to-blue-500/20 transition-all duration-500 ease-in-out ${i&&a?"opacity-100 blur-sm":"opacity-0 blur-none"} `}),e.jsx("div",{className:`absolute right-3 top-1/2 z-20 -translate-y-1/2 transition-all duration-500 ease-in-out ${i&&a?"scale-100 opacity-100":"scale-0 opacity-0"} `,children:e.jsxs("div",{className:"relative h-2 w-2",children:[e.jsx("div",{className:"absolute inset-0 animate-ping rounded-full bg-blue-500/60"}),e.jsx("div",{className:"absolute inset-0 rounded-full bg-blue-500"})]})})]})}),e.jsx("div",{className:`absolute -inset-8 -z-10 transition-all duration-700 ease-in-out ${i&&a?"scale-105 opacity-100":"scale-100 opacity-0"} `,children:e.jsxs("div",{className:"absolute inset-0",children:[e.jsx("div",{className:`bg-gradient-radial absolute inset-0 from-blue-500/10 to-transparent transition-opacity duration-700 ease-in-out ${i&&a?"animate-pulse-slow opacity-100":"opacity-0"} `}),e.jsx("div",{className:`absolute inset-0 bg-gradient-to-r from-purple-500/5 via-blue-500/5 to-purple-500/5 blur-xl transition-all duration-700 ease-in-out ${i&&a?"animate-gradient-x opacity-100":"opacity-0"} `})]})}),e.jsx("div",{className:"absolute inset-0 -z-20 scale-100 bg-gradient-to-r from-blue-500/10 via-purple-500/10 to-blue-500/10 opacity-0 blur-xl transition-all duration-500 ease-in-out peer-focus:scale-105 peer-focus:opacity-100"})]})};const l$=t.forwardRef(((t,n)=>{const{className:r="icon-md",size:o="1.2em"}=t;return e.jsx("svg",{ref:n,fill:"none",strokeWidth:"2",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",height:o,width:o,className:jt(r),children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.2929 4.29291C15.0641 2.52167 17.9359 2.52167 19.7071 4.2929C21.4783 6.06414 21.4783 8.93588 19.7071 10.7071L18.7073 11.7069L11.1603 19.2539C10.7182 19.696 10.1489 19.989 9.53219 20.0918L4.1644 20.9864C3.84584 21.0395 3.52125 20.9355 3.29289 20.7071C3.06453 20.4788 2.96051 20.1542 3.0136 19.8356L3.90824 14.4678C4.01103 13.8511 4.30396 13.2818 4.7461 12.8397L13.2929 4.29291ZM13 7.41422L6.16031 14.2539C6.01293 14.4013 5.91529 14.591 5.88102 14.7966L5.21655 18.7835L9.20339 18.119C9.40898 18.0847 9.59872 17.9871 9.7461 17.8397L16.5858 11L13 7.41422ZM18 9.5858L14.4142 6.00001L14.7071 5.70712C15.6973 4.71693 17.3027 4.71693 18.2929 5.70712C19.2831 6.69731 19.2831 8.30272 18.2929 9.29291L18 9.5858Z",fill:"currentColor"})})}));function u$({className:t="m-auto",size:n=20,color:r="currentColor",bgOpacity:o=.1,speed:i=.75}){const a={"--spinner-speed":`${i}s`};return e.jsxs("svg",{className:jt(t,"spinner"),width:n,height:n,viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg",style:a,children:[e.jsx("defs",{children:e.jsx("style",{type:"text/css",children:"\n .spinner {\n transform-origin: center;\n overflow: visible;\n animation: spinner-rotate var(--spinner-speed) linear infinite;\n }\n @keyframes spinner-rotate {\n to { transform: rotate(360deg); }\n }\n "})}),e.jsx("circle",{cx:"20",cy:"20",r:"14.5",pathLength:"100",strokeWidth:"5",fill:"none",stroke:r,strokeOpacity:o}),e.jsx("circle",{cx:"20",cy:"20",r:"14.5",pathLength:"100",strokeWidth:"5",fill:"none",stroke:r,strokeDasharray:"25 75",strokeLinecap:"round"})]})}function c$({className:t=""}){return e.jsx("svg",{fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:jt("h-4 w-4",t),height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.0633 5.67375C18.5196 5.98487 18.6374 6.607 18.3262 7.06331L10.8262 18.0633C10.6585 18.3093 10.3898 18.4678 10.0934 18.4956C9.79688 18.5234 9.50345 18.4176 9.29289 18.2071L4.79289 13.7071C4.40237 13.3166 4.40237 12.6834 4.79289 12.2929C5.18342 11.9023 5.81658 11.9023 6.20711 12.2929L9.85368 15.9394L16.6738 5.93664C16.9849 5.48033 17.607 5.36263 18.0633 5.67375Z",fill:"currentColor"})})}function d$({className:t=""}){return e.jsx("svg",{fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:jt("icon-md h-4 w-4",t),height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5555 4C10.099 4 9.70052 4.30906 9.58693 4.75114L9.29382 5.8919H14.715L14.4219 4.75114C14.3083 4.30906 13.9098 4 13.4533 4H10.5555ZM16.7799 5.8919L16.3589 4.25342C16.0182 2.92719 14.8226 2 13.4533 2H10.5555C9.18616 2 7.99062 2.92719 7.64985 4.25342L7.22886 5.8919H4C3.44772 5.8919 3 6.33961 3 6.8919C3 7.44418 3.44772 7.8919 4 7.8919H4.10069L5.31544 19.3172C5.47763 20.8427 6.76455 22 8.29863 22H15.7014C17.2354 22 18.5224 20.8427 18.6846 19.3172L19.8993 7.8919H20C20.5523 7.8919 21 7.44418 21 6.8919C21 6.33961 20.5523 5.8919 20 5.8919H16.7799ZM17.888 7.8919H6.11196L7.30423 19.1057C7.3583 19.6142 7.78727 20 8.29863 20H15.7014C16.2127 20 16.6417 19.6142 16.6958 19.1057L17.888 7.8919ZM10 10C10.5523 10 11 10.4477 11 11V16C11 16.5523 10.5523 17 10 17C9.44772 17 9 16.5523 9 16V11C9 10.4477 9.44772 10 10 10ZM14 10C14.5523 10 15 10.4477 15 11V16C15 16.5523 14.5523 17 14 17C13.4477 17 13 16.5523 13 16V11C13 10.4477 13.4477 10 14 10Z",fill:"currentColor"})})}const f$=t.memo((({checked:t,onChange:n,ariaLabel:r})=>e.jsx("div",{role:"button",tabIndex:0,onKeyDown:e=>e.stopPropagation(),className:"flex h-full w-[30px] items-center justify-center",onClick:e=>e.stopPropagation(),children:e.jsx(Qp,{checked:t,onCheckedChange:n,"aria-label":r})})));f$.displayName="SelectionCheckbox";const p$=t.memo((({row:n,isSmallScreen:r,onSelectionChange:o,index:i,isSearching:a})=>{const s=t.useCallback((e=>{n.toggleSelected(e),o?.(n.id,e)}),[n,o]);return e.jsx(NS,{"data-state":n.getIsSelected()?"selected":void 0,className:"motion-safe:animate-fadeIn border-b border-border-light transition-all duration-300 ease-out hover:bg-surface-secondary",style:{animationDelay:20*i+"ms",transform:`translateY(${a?"4px":"0"})`,opacity:a?.5:1},children:n.getVisibleCells().map((t=>"select"===t.column.id?e.jsx(MS,{className:"px-2 py-1 transition-all duration-300",children:e.jsx(f$,{checked:n.getIsSelected(),onChange:s,ariaLabel:"Select row"})},t.id):e.jsx(MS,{className:"w-0 max-w-0 px-2 py-1 align-middle text-xs transition-all duration-300 sm:px-4 sm:py-2 sm:text-sm",style:m$(t.column.columnDef,r),children:e.jsx("div",{className:"overflow-hidden text-ellipsis",children:a$(t.column.columnDef.cell,t.getContext())})},t.id)))})}));function m$(e,t){return{width:t?e.meta?.mobileSize:e.meta?.size,minWidth:e.meta?.minWidth,maxWidth:e.meta?.size}}const h$=t.memo((({onDelete:t,isDeleting:n,disabled:r,isSmallScreen:o})=>t?e.jsx(_p,{variant:"outline",onClick:t,disabled:r,className:jt("min-w-[40px] transition-all duration-200",o&&"px-2 py-1"),children:n?e.jsx(u$,{className:"size-4"}):e.jsxs(e.Fragment,{children:[e.jsx(d$,{className:"size-3.5 text-red-400 sm:size-4"}),!o&&e.jsx("span",{className:"ml-2",children:"Delete"})]})}):null));class g${constructor(e,t,n,r,o,i,a,s){this.width=e.width,this.height=e.height,this.ctx=t,this.x=n,this.y=r,this.color=o,this.speed=this.random(.1,.9)*i,this.size=0,this.sizeStep=.4*Math.random(),this.minSize=.5,this.maxSizeInteger=2,this.maxSize=this.random(this.minSize,this.maxSizeInteger),this.delay=a,this.counter=0,this.counterStep=4*Math.random()+.01*(this.width+this.height),this.isIdle=!1,this.isReverse=!1,this.isShimmer=!1,this.activationThreshold=s}random(e,t){return Math.random()*(t-e)+e}draw(){const e=.5*this.maxSizeInteger-.5*this.size;this.ctx.fillStyle=this.color,this.ctx.fillRect(this.x+e,this.y+e,this.size,this.size)}appear(){this.isIdle=!1,this.counter<=this.delay?this.counter+=this.counterStep:(this.size>=this.maxSize&&(this.isShimmer=!0),this.isShimmer?this.shimmer():this.size+=this.sizeStep,this.draw())}appearWithProgress(e){if(e-this.activationThreshold<=0)this.isIdle=!0;else{if(this.counter<=this.delay)return this.counter+=this.counterStep,void(this.isIdle=!1);this.size>=this.maxSize&&(this.isShimmer=!0),this.isShimmer?this.shimmer():this.size+=this.sizeStep,this.isIdle=!1,this.draw()}}disappear(){this.isShimmer=!1,this.counter=0,this.size<=0?this.isIdle=!0:(this.size-=.1,this.draw())}shimmer(){this.size>=this.maxSize?this.isReverse=!0:this.size<=this.minSize&&(this.isReverse=!1),this.size+=this.isReverse?-this.speed:this.speed}}const v$=(e,t)=>{const n=parseInt(String(e),10);return n<=0||t?0:n>=100?.1:.001*n},b$=(e,t=0,n=1)=>Math.min(Math.max(e,t),n),w$={default:{gap:5,speed:35,colors:"#f8fafc,#f1f5f9,#cbd5e1",noFocus:!1},blue:{gap:10,speed:25,colors:"#e0f2fe,#7dd3fc,#0ea5e9",noFocus:!1},yellow:{gap:3,speed:20,colors:"#fef08a,#fde047,#eab308",noFocus:!1},pink:{gap:6,speed:80,colors:"#fecdd3,#fda4af,#e11d48",noFocus:!0}};const y$=t.forwardRef((({children:t,handleFileChange:n},r)=>e.jsxs(e.Fragment,{children:[t,e.jsx("input",{ref:r,multiple:!0,type:"file",style:{display:"none"},onChange:n})]})));function x$(e,t){return 0===e.length?t||"Select...":1===e.length?e[0]:`${e.length} items selected`}y$.displayName="FileUpload";const C$=({items:t,menuId:n,keyPrefix:r,className:o,iconClassName:i,itemClassName:a,modal:s,portal:l,sameWidth:u,gutter:c=8,finalFocus:d,unmountOnHide:f,preserveTabOrder:p})=>{const m=Hu();return e.jsx(Yu,{id:n,modal:s,gutter:c,portal:l,sameWidth:u,finalFocus:d,unmountOnHide:f,preserveTabOrder:p,className:jt("popover-ui z-50",o),children:t.filter((e=>!1!==e.show)).map(((t,n)=>!0===t.separate?e.jsx(tc,{className:"my-1 h-px bg-white/10"},n):e.jsxs(Ju,{id:t.id,className:jt("group flex w-full cursor-pointer items-center gap-2 rounded-lg px-3 py-3.5 text-sm text-text-primary outline-none transition-colors duration-200 hover:bg-surface-hover focus:bg-surface-hover md:px-2.5 md:py-2",a),disabled:t.disabled,render:t.render,ref:t.ref,hideOnClick:t.hideOnClick,onClick:e=>{e.preventDefault(),t.onClick&&t.onClick(e),!1!==t.hideOnClick&&m?.hide()},children:[null!=t.icon&&e.jsx("span",{className:jt("mr-2 size-4",i),"aria-hidden":"true",children:t.icon}),t.label,null!=t.kbd&&e.jsxs("kbd",{className:"ml-auto hidden font-sans text-xs text-black/50 group-hover:inline group-focus:inline dark:text-white/50",children:["⌘",t.kbd]})]},`${r??""}${n}-${t.id??""}`)))})},S$=({theme:n,onChange:r})=>{const o={system:e.jsx(Cp,{}),dark:e.jsx(Sp,{color:"white"}),light:e.jsx(Rp,{})},i="dark"===n?"light":"dark",a=`Switch to ${i} theme`;return t.useEffect((()=>{const e=e=>{e.ctrlKey&&e.shiftKey&&"t"===e.key.toLowerCase()&&(e.preventDefault(),r(i))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[i,r]),e.jsx("button",{className:"flex items-center gap-2 rounded-lg p-2 transition-colors hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","aria-label":a,"aria-keyshortcuts":"Ctrl+Shift+T",onClick:e=>{e.preventDefault(),r(i)},onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),r(i))},children:o[n]})},k$=a.forwardRef((({icon:n,label:r,setValue:o,className:i,checked:a,defaultChecked:s,isCheckedClassName:l},u)=>{const c=Tu(),d=Co(c,(e=>e?.value));return t.useEffect((()=>{void 0!==a&&c.setValue(a)}),[a,c]),t.useEffect((()=>{void 0!==s&&void 0===a&&c.setValue(s)}),[s,a,c]),e.jsxs(Vu,{ref:u,store:c,onChange:e=>{e.stopPropagation(),"boolean"==typeof d&&o?.({e:e,value:!d})},className:jt("group relative inline-flex items-center justify-center gap-1.5","rounded-full border border-border-medium text-sm font-medium","size-9 p-2 transition-all md:w-full md:p-3","bg-transparent shadow-sm hover:bg-surface-hover hover:shadow-md active:shadow-inner",d&&l&&l,i),render:e.jsx("button",{type:"button","aria-label":r}),children:[n&&e.jsx("span",{className:"icon-md text-text-primary",children:n}),e.jsx("span",{className:"hidden truncate md:block",children:r})]})}));k$.displayName="CheckboxButton";const E$=t.forwardRef(((t,n)=>{const{title:r,description:o,main:i,buttons:a,leftButtons:s,selection:l,className:u,headerClassName:c,footerClassName:d,showCloseButton:f,showCancelButton:p=!0}=t,{selectHandler:m,selectClasses:h,selectText:g}=l||{};return e.jsxs(jw,{showCloseButton:f,ref:n,className:jt("shadow-2xl dark:bg-gray-700",u||""),onClick:e=>e.stopPropagation(),children:[e.jsxs(Mw,{className:jt(c??""),children:[e.jsx(Iw,{className:"text-lg font-medium leading-6 text-gray-800 dark:text-gray-200",children:r}),o&&e.jsx(Tw,{className:"text-gray-600 dark:text-gray-300",children:o})]}),e.jsx("div",{className:"px-6",children:i||null}),e.jsxs(Aw,{className:d,children:[e.jsx("div",{children:s||null}),e.jsxs("div",{className:"flex h-auto gap-3",children:[p&&e.jsx(Ow,{className:"border-gray-100 hover:bg-gray-100 dark:border-gray-600 dark:hover:bg-gray-600",children:"cancel"}),a||null,l?e.jsx(Ow,{onClick:m,className:`${h||"bg-gray-800 text-white transition-colors hover:bg-gray-700 disabled:cursor-not-allowed disabled:opacity-50 dark:bg-gray-200 dark:text-gray-800 dark:hover:bg-gray-200"} inline-flex h-10 items-center justify-center rounded-lg border-none px-4 py-2 text-sm`,children:g}):null]})]})]})})),R$="undefined"!=typeof document?t.useLayoutEffect:()=>{};const P$=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},N$=e=>{if(e&&"window"in e&&e.window===e)return e;return P$(e).defaultView||window};function j$(e){return null!==(t=e)&&"object"==typeof t&&"nodeType"in t&&"number"==typeof t.nodeType&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e;var t}let M$=!1;function A$(){return M$}function I$(e,t){if(!A$())return!(!t||!e)&&e.contains(t);if(!e||!t)return!1;let n=t;for(;null!==n;){if(n===e)return!0;n="SLOT"===n.tagName&&n.assignedSlot?n.assignedSlot.parentNode:j$(n)?n.host:n.parentNode}return!1}const T$=(e=document)=>{var t;if(!A$())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(null===(t=n.shadowRoot)||void 0===t?void 0:t.activeElement);)n=n.shadowRoot.activeElement;return n};function O$(e){return A$()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function L$(e){let t=null;return()=>(null==t&&(t=e()),t)}const D$=L$((function(){return function(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}(/^Mac/i)})),F$=L$((function(){return function(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some((t=>e.test(t.brand))))||e.test(window.navigator.userAgent))}(/Android/i)}));function _$(){let e=t.useRef(new Map),n=t.useCallback(((t,n,r,o)=>{let i=(null==o?void 0:o.once)?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:i,options:o}),t.addEventListener(n,i,o)}),[]),r=t.useCallback(((t,n,r,o)=>{var i;let a=(null===(i=e.current.get(r))||void 0===i?void 0:i.fn)||r;t.removeEventListener(n,a,o),e.current.delete(r)}),[]),o=t.useCallback((()=>{e.current.forEach(((e,t)=>{r(e.eventTarget,e.type,t,e.options)}))}),[r]);return t.useEffect((()=>o),[o]),{addGlobalListener:n,removeGlobalListener:r,removeAllGlobalListeners:o}}function V$(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function z$(e){let n=t.useRef({isFocused:!1,observer:null});R$((()=>{const e=n.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let r=function(e){const n=t.useRef(null);return R$((()=>{n.current=e}),[e]),t.useCallback(((...e)=>{const t=n.current;return null==t?void 0:t(...e)}),[])}((t=>{null==e||e(t)}));return t.useCallback((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){n.current.isFocused=!0;let t=e.target,o=e=>{if(n.current.isFocused=!1,t.disabled){let t=V$(e);r(t)}n.current.observer&&(n.current.observer.disconnect(),n.current.observer=null)};t.addEventListener("focusout",o,{once:!0}),n.current.observer=new MutationObserver((()=>{if(n.current.isFocused&&t.disabled){var e;null===(e=n.current.observer)||void 0===e||e.disconnect();let r=t===document.activeElement?null:document.activeElement;t.dispatchEvent(new FocusEvent("blur",{relatedTarget:r})),t.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:r}))}})),n.current.observer.observe(t,{attributes:!0,attributeFilter:["disabled"]})}}),[r])}let H$=!1,B$=null,$$=new Set,W$=new Map,U$=!1,K$=!1;const G$={Tab:!0,Escape:!0};function q$(e,t){for(let n of $$)n(e,t)}function X$(e){U$=!0,function(e){return!(e.metaKey||!D$()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(B$="keyboard",q$("keyboard",e))}function Y$(e){B$="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(U$=!0,q$("pointer",e))}function Z$(e){var t;(0===(t=e).mozInputSource&&t.isTrusted||(F$()&&t.pointerType?"click"===t.type&&1===t.buttons:0===t.detail&&!t.pointerType))&&(U$=!0,B$="virtual")}function Q$(e){e.target!==window&&e.target!==document&&!H$&&e.isTrusted&&(U$||K$||(B$="virtual",q$("virtual",e)),U$=!1,K$=!1)}function J$(){U$=!1,K$=!0}function eW(e){if("undefined"==typeof window||"undefined"==typeof document||W$.get(N$(e)))return;const t=N$(e),n=P$(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){U$=!0,r.apply(this,arguments)},n.addEventListener("keydown",X$,!0),n.addEventListener("keyup",X$,!0),n.addEventListener("click",Z$,!0),t.addEventListener("focus",Q$,!0),t.addEventListener("blur",J$,!1),"undefined"!=typeof PointerEvent&&(n.addEventListener("pointerdown",Y$,!0),n.addEventListener("pointermove",Y$,!0),n.addEventListener("pointerup",Y$,!0)),t.addEventListener("beforeunload",(()=>{tW(e)}),{once:!0}),W$.set(t,{focus:r})}const tW=(e,t)=>{const n=N$(e),r=P$(e);t&&r.removeEventListener("DOMContentLoaded",t),W$.has(n)&&(n.HTMLElement.prototype.focus=W$.get(n).focus,r.removeEventListener("keydown",X$,!0),r.removeEventListener("keyup",X$,!0),r.removeEventListener("click",Z$,!0),n.removeEventListener("focus",Q$,!0),n.removeEventListener("blur",J$,!1),"undefined"!=typeof PointerEvent&&(r.removeEventListener("pointerdown",Y$,!0),r.removeEventListener("pointermove",Y$,!0),r.removeEventListener("pointerup",Y$,!0)),W$.delete(n))};function nW(){return"pointer"!==B$}"undefined"!=typeof document&&function(e){const t=P$(e);let n;"loading"!==t.readyState?eW(e):(n=()=>{eW(e)},t.addEventListener("DOMContentLoaded",n))}();const rW=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function oW(e,n,r){eW(),t.useEffect((()=>{let t=(t,n)=>{(function(e,t,n){let r=P$(null==n?void 0:n.target);const o="undefined"!=typeof window?N$(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,i="undefined"!=typeof window?N$(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a="undefined"!=typeof window?N$(null==n?void 0:n.target).HTMLElement:HTMLElement,s="undefined"!=typeof window?N$(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||r.activeElement instanceof o&&!rW.has(r.activeElement.type)||r.activeElement instanceof i||r.activeElement instanceof a&&r.activeElement.isContentEditable)&&"keyboard"===t&&n instanceof s&&!G$[n.key])})(!!(null==r?void 0:r.isTextInput),t,n)&&e(nW())};return $$.add(t),()=>{$$.delete(t)}}),n)}function iW(e){let{isDisabled:n,onBlurWithin:r,onFocusWithin:o,onFocusWithinChange:i}=e,a=t.useRef({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:l}=_$(),u=t.useCallback((e=>{e.currentTarget.contains(e.target)&&a.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(a.current.isFocusWithin=!1,l(),r&&r(e),i&&i(!1))}),[r,i,a,l]),c=z$(u),d=t.useCallback((e=>{if(!e.currentTarget.contains(e.target))return;const t=P$(e.target),n=T$(t);if(!a.current.isFocusWithin&&n===O$(e.nativeEvent)){o&&o(e),i&&i(!0),a.current.isFocusWithin=!0,c(e);let n=e.currentTarget;s(t,"focus",(e=>{if(a.current.isFocusWithin&&!I$(n,e.target)){let r=new t.defaultView.FocusEvent("blur",{relatedTarget:e.target});!function(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}(r,n);let o=V$(r);u(o)}}),{capture:!0})}}),[o,i,c,s,u]);return n?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:u}}}let aW=!1,sW=0;function lW(e){"touch"===e.pointerType&&(aW=!0,setTimeout((()=>{aW=!1}),50))}function uW(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent&&document.addEventListener("pointerup",lW),sW++,()=>{sW--,sW>0||"undefined"!=typeof PointerEvent&&document.removeEventListener("pointerup",lW)}}function cW(e){let{onHoverStart:n,onHoverChange:r,onHoverEnd:o,isDisabled:i}=e,[a,s]=t.useState(!1),l=t.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;t.useEffect(uW,[]);let{addGlobalListener:u,removeAllGlobalListeners:c}=_$(),{hoverProps:d,triggerHoverEnd:f}=t.useMemo((()=>{let e=(e,t)=>{let n=l.target;l.pointerType="",l.target=null,"touch"!==t&&l.isHovered&&n&&(l.isHovered=!1,c(),o&&o({type:"hoverend",target:n,pointerType:t}),r&&r(!1),s(!1))},t={};return"undefined"!=typeof PointerEvent&&(t.onPointerEnter=t=>{aW&&"mouse"===t.pointerType||((t,o)=>{if(l.pointerType=o,i||"touch"===o||l.isHovered||!t.currentTarget.contains(t.target))return;l.isHovered=!0;let a=t.currentTarget;l.target=a,u(P$(t.target),"pointerover",(t=>{l.isHovered&&l.target&&!I$(l.target,t.target)&&e(t,t.pointerType)}),{capture:!0}),n&&n({type:"hoverstart",target:a,pointerType:o}),r&&r(!0),s(!0)})(t,t.pointerType)},t.onPointerLeave=t=>{!i&&t.currentTarget.contains(t.target)&&e(t,t.pointerType)}),{hoverProps:t,triggerHoverEnd:e}}),[n,r,o,i,l,u,c]);return t.useEffect((()=>{i&&f({currentTarget:l.target},l.pointerType)}),[i]),{hoverProps:d,isHovered:a}}function dW(e={}){let{autoFocus:n=!1,isTextInput:r,within:o}=e,i=t.useRef({isFocused:!1,isFocusVisible:n||nW()}),[a,s]=t.useState(!1),[l,u]=t.useState((()=>i.current.isFocused&&i.current.isFocusVisible)),c=t.useCallback((()=>u(i.current.isFocused&&i.current.isFocusVisible)),[]),d=t.useCallback((e=>{i.current.isFocused=e,s(e),c()}),[c]);oW((e=>{i.current.isFocusVisible=e,c()}),[],{isTextInput:r});let{focusProps:f}=function(e){let{isDisabled:n,onFocus:r,onBlur:o,onFocusChange:i}=e;const a=t.useCallback((e=>{if(e.target===e.currentTarget)return o&&o(e),i&&i(!1),!0}),[o,i]),s=z$(a),l=t.useCallback((e=>{const t=P$(e.target),n=t?T$(t):T$();e.target===e.currentTarget&&n===O$(e.nativeEvent)&&(r&&r(e),i&&i(!0),s(e))}),[i,r,s]);return{focusProps:{onFocus:!n&&(r||i||o)?l:void 0,onBlur:n||!o&&!i?void 0:a}}}({isDisabled:o,onFocusChange:d}),{focusWithinProps:p}=iW({isDisabled:!o,onFocusWithinChange:d});return{isFocused:a,isFocusVisible:l,focusProps:o?p:f}}var fW=Object.defineProperty,pW=(e,t,n)=>(((e,t,n)=>{t in e?fW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let mW=new class{constructor(){pW(this,"current",this.detect()),pW(this,"handoffState","pending"),pW(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}};function hW(e){var t,n;return mW.isServer?null:e?"ownerDocument"in e?e.ownerDocument:"current"in e?null!=(n=null==(t=e.current)?void 0:t.ownerDocument)?n:document:null:document}function gW(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function vW(){let e=[],t={addEventListener:(e,n,r,o)=>(e.addEventListener(n,r,o),t.add((()=>e.removeEventListener(n,r,o)))),requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add((()=>cancelAnimationFrame(n)))},nextFrame:(...e)=>t.requestAnimationFrame((()=>t.requestAnimationFrame(...e))),setTimeout(...e){let n=setTimeout(...e);return t.add((()=>clearTimeout(n)))},microTask(...e){let n={current:!0};return gW((()=>{n.current&&e[0]()})),t.add((()=>{n.current=!1}))},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add((()=>{Object.assign(e.style,{[t]:r})}))},group(e){let t=vW();return e(t),this.add((()=>t.dispose()))},add:t=>(e.includes(t)||e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function bW(){let[e]=t.useState(vW);return t.useEffect((()=>()=>e.dispose()),[e]),e}let wW=(e,n)=>{mW.isServer?t.useEffect(e,n):t.useLayoutEffect(e,n)};function yW(e){let n=t.useRef(e);return wW((()=>{n.current=e}),[e]),n}let xW=function(e){let n=yW(e);return t.useCallback(((...e)=>n.current(...e)),[n])};let CW=t.createContext(void 0);function SW(){return t.useContext(CW)}function kW(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}function EW(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,EW),r}var RW=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(RW||{}),PW=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(PW||{});function NW(){let e=function(){let e=t.useRef([]),n=t.useCallback((t=>{for(let n of e.current)null!=n&&("function"==typeof n?n(t):n.current=t)}),[]);return(...t)=>{if(!t.every((e=>null==e)))return e.current=t,n}}();return t.useCallback((t=>function({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a,mergeRefs:s}){s=null!=s?s:MW;let l=AW(t,e);if(i)return jW(l,n,r,a,s);let u=null!=o?o:0;if(2&u){let{static:e=!1,...t}=l;if(e)return jW(t,n,r,a,s)}if(1&u){let{unmount:e=!0,...t}=l;return EW(e?0:1,{0:()=>null,1:()=>jW({...t,hidden:!0,style:{display:"none"}},n,r,a,s)})}return jW(l,n,r,a,s)}({mergeRefs:e,...t})),[e])}function jW(e,n={},r,o,i){let{as:a=r,children:s,refName:l="ref",...u}=LW(e,["unmount","static"]),c=void 0!==e.ref?{[l]:e.ref}:{},d="function"==typeof s?s(n):s;"className"in u&&u.className&&"function"==typeof u.className&&(u.className=u.className(n)),u["aria-labelledby"]&&u["aria-labelledby"]===u.id&&(u["aria-labelledby"]=void 0);let f={};if(n){let e=!1,t=[];for(let[r,o]of Object.entries(n))"boolean"==typeof o&&(e=!0),!0===o&&t.push(r.replace(/([A-Z])/g,(e=>`-${e.toLowerCase()}`)));if(e){f["data-headlessui-state"]=t.join(" ");for(let e of t)f[`data-${e}`]=""}}if(a===t.Fragment&&(Object.keys(OW(u)).length>0||Object.keys(OW(f)).length>0)){if(t.isValidElement(d)&&!(Array.isArray(d)&&d.length>1)){let e=d.props,n=null==e?void 0:e.className,r="function"==typeof n?(...e)=>kW(n(...e),u.className):kW(n,u.className),o=r?{className:r}:{},a=AW(d.props,OW(LW(u,["ref"])));for(let e in f)e in a&&delete f[e];return t.cloneElement(d,Object.assign({},a,f,c,{ref:i(DW(d),c.ref)},o))}if(Object.keys(OW(u)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${o} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(OW(u)).concat(Object.keys(OW(f))).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"))}return t.createElement(a,Object.assign({},LW(u,["ref"]),a!==t.Fragment&&c,a!==t.Fragment&&f),d)}function MW(...e){return e.every((e=>null==e))?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}function AW(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])for(let e in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(e)&&(n[e]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let e in n)Object.assign(t,{[e](t,...r){let o=n[e];for(let e of o){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...r)}}});return t}function IW(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];for(let e in n)Object.assign(t,{[e](...t){let r=n[e];for(let e of r)null==e||e(...t)}});return t}function TW(e){var n;return Object.assign(t.forwardRef(e),{displayName:null!=(n=e.displayName)?n:e.name})}function OW(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function LW(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}function DW(e){return t.version.split(".")[0]>="19"?e.props.ref:e.ref}function FW(e={},t=null,n=[]){for(let[r,o]of Object.entries(e))VW(n,_W(t,r),o);return n}function _W(e,t){return e?e+"["+t+"]":t}function VW(e,t,n){if(Array.isArray(n))for(let[r,o]of n.entries())VW(e,_W(t,r.toString()),o);else n instanceof Date?e.push([t,n.toISOString()]):"boolean"==typeof n?e.push([t,n?"1":"0"]):"string"==typeof n?e.push([t,n]):"number"==typeof n?e.push([t,`${n}`]):null==n?e.push([t,""]):FW(n,t,e)}var zW=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(zW||{});let HW=TW((function(e,t){var n;let{features:r=1,...o}=e,i={ref:t,"aria-hidden":2==(2&r)||(null!=(n=o["aria-hidden"])?n:void 0),hidden:4==(4&r)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...4==(4&r)&&2!=(2&r)&&{display:"none"}}};return NW()({ourProps:i,theirProps:o,slot:{},defaultTag:"span",name:"Hidden"})})),BW=t.createContext(null);function $W({children:e}){let r=t.useContext(BW);if(!r)return t.createElement(t.Fragment,null,e);let{target:o}=r;return o?n.createPortal(t.createElement(t.Fragment,null,e),o):null}function WW({data:e,form:n,disabled:r,onReset:o,overrides:i}){let[a,s]=t.useState(null),l=bW();return t.useEffect((()=>{if(o&&a)return l.addEventListener(a,"reset",o)}),[a,n,o]),t.createElement($W,null,t.createElement(UW,{setForm:s,formId:n}),FW(e).map((([e,o])=>t.createElement(HW,{features:zW.Hidden,...OW({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:n,disabled:r,name:e,value:o,...i})}))))}function UW({setForm:e,formId:n}){return t.useEffect((()=>{if(n){let t=document.getElementById(n);t&&e(t)}}),[e,n]),n?null:t.createElement(HW,{features:zW.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:t=>{if(!t)return;let n=t.closest("form");n&&e(n)}})}let KW=t.createContext(void 0);function GW(){return t.useContext(KW)}function qW(e){return"object"==typeof e&&null!==e&&"nodeType"in e}function XW(e){return qW(e)&&"tagName"in e}function YW(e){return XW(e)&&"accessKey"in e}function ZW(e){return XW(e)&&"tabIndex"in e}function QW(e){return YW(e)&&"INPUT"===e.nodeName}function JW(e){return YW(e)&&"LABEL"===e.nodeName}function eU(e){return YW(e)&&"FIELDSET"===e.nodeName}function tU(e){return YW(e)&&"LEGEND"===e.nodeName}function nU(e){let t=e.parentElement,n=null;for(;t&&!eU(t);)tU(t)&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(tU(t))return!1;t=t.previousElementSibling}return!0}(n))&&r}let rU=Symbol();function oU(...e){let n=t.useRef(e);t.useEffect((()=>{n.current=e}),[e]);let r=xW((e=>{for(let t of n.current)null!=t&&("function"==typeof t?t(e):t.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[rU])))?void 0:r}let iU=t.createContext(null);function aU(){let e=t.useContext(iU);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,aU),e}return e}iU.displayName="DescriptionContext";let sU=TW((function(e,n){let r=t.useId(),o=SW(),{id:i=`headlessui-description-${r}`,...a}=e,s=aU(),l=oU(n);wW((()=>s.register(i)),[i,s.register]);let u=o||!1,c=t.useMemo((()=>({...s.slot,disabled:u})),[s.slot,u]),d={ref:l,...s.props,id:i};return NW()({ourProps:d,theirProps:a,slot:c,defaultTag:"p",name:s.name||"Description"})}));Object.assign(sU,{});var lU=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(lU||{});let uU=t.createContext(null);function cU(){let e=t.useContext(uU);if(null===e){let e=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,cU),e}return e}function dU(e){var n,r,o;let i=null!=(r=null==(n=t.useContext(uU))?void 0:n.value)?r:void 0;return(null!=(o=null==e?void 0:e.length)?o:0)>0?[i,...e].filter(Boolean).join(" "):i}function fU({inherit:e=!1}={}){let n=dU(),[r,o]=t.useState([]),i=e?[n,...r].filter(Boolean):r;return[i.length>0?i.join(" "):void 0,t.useMemo((()=>function(e){let n=xW((e=>(o((t=>[...t,e])),()=>o((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),r=t.useMemo((()=>({register:n,slot:e.slot,name:e.name,props:e.props,value:e.value})),[n,e.slot,e.name,e.props,e.value]);return t.createElement(uU.Provider,{value:r},e.children)}),[o])]}uU.displayName="LabelContext";let pU=TW((function(e,n){var r;let o=t.useId(),i=cU(),a=GW(),s=SW(),{id:l=`headlessui-label-${o}`,htmlFor:u=(null!=a?a:null==(r=i.props)?void 0:r.htmlFor),passive:c=!1,...d}=e,f=oU(n);wW((()=>i.register(l)),[l,i.register]);let p=xW((e=>{let t=e.currentTarget;if((e.target===e.currentTarget||!function(e){return!!XW(e)&&e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]')}(e.target))&&(JW(t)&&e.preventDefault(),i.props&&"onClick"in i.props&&"function"==typeof i.props.onClick&&i.props.onClick(e),JW(t))){let e=document.getElementById(t.htmlFor);if(e){let t=e.getAttribute("disabled");if("true"===t||""===t)return;let n=e.getAttribute("aria-disabled");if("true"===n||""===n)return;(QW(e)&&("file"===e.type||"radio"===e.type||"checkbox"===e.type)||"radio"===e.role||"checkbox"===e.role||"switch"===e.role)&&e.click(),e.focus({preventScroll:!0})}}})),m=s||!1,h=t.useMemo((()=>({...i.slot,disabled:m})),[i.slot,m]),g={ref:f,...i.props,id:l,htmlFor:u,onClick:p};return c&&("onClick"in g&&(delete g.htmlFor,delete g.onClick),"onClick"in d&&delete d.onClick),NW()({ourProps:g,theirProps:d,slot:h,defaultTag:u?"label":"div",name:i.name||"Label"})})),mU=Object.assign(pU,{});function hU(e,t){return null!==e&&null!==t&&"object"==typeof e&&"object"==typeof t&&"id"in e&&"id"in t?e.id===t.id:e===t}function gU(e,n=!1){let[r,o]=t.useReducer((()=>({})),{}),i=t.useMemo((()=>function(e){if(null===e)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}(e)),[e,r]);return wW((()=>{if(!e)return;let t=new ResizeObserver(o);return t.observe(e),()=>{t.disconnect()}}),[e]),n?{width:`${i.width}px`,height:`${i.height}px`}:i}let vU=class extends Map{constructor(e){super(),this.factory=e}get(e){let t=super.get(e);return void 0===t&&(t=this.factory(e),this.set(e,t)),t}};var bU,wU,yU,xU=Object.defineProperty,CU=(e,t,n)=>(((e,t,n)=>{t in e?xU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n),SU=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},kU=(e,t,n)=>(SU(e,t,"read from private field"),n?n.call(e):t.get(e)),EU=(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)},RU=(e,t,n,r)=>(SU(e,t,"write to private field"),t.set(e,n),n);let PU=class{constructor(e){EU(this,bU,{}),EU(this,wU,new vU((()=>new Set))),EU(this,yU,new Set),CU(this,"disposables",vW()),RU(this,bU,e)}dispose(){this.disposables.dispose()}get state(){return kU(this,bU)}subscribe(e,t){let n={selector:e,callback:t,current:e(kU(this,bU))};return kU(this,yU).add(n),this.disposables.add((()=>{kU(this,yU).delete(n)}))}on(e,t){return kU(this,wU).get(e).add(t),this.disposables.add((()=>{kU(this,wU).get(e).delete(t)}))}send(e){let t=this.reduce(kU(this,bU),e);if(t!==kU(this,bU)){RU(this,bU,t);for(let e of kU(this,yU)){let t=e.selector(kU(this,bU));NU(e.current,t)||(e.current=t,e.callback(t))}for(let t of kU(this,wU).get(e.type))t(kU(this,bU),e)}}};function NU(e,t){return!!Object.is(e,t)||"object"==typeof e&&null!==e&&"object"==typeof t&&null!==t&&(Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&jU(e[Symbol.iterator](),t[Symbol.iterator]()):e instanceof Map&&t instanceof Map||e instanceof Set&&t instanceof Set?e.size===t.size&&jU(e.entries(),t.entries()):!(!MU(e)||!MU(t))&&jU(Object.entries(e)[Symbol.iterator](),Object.entries(t)[Symbol.iterator]()))}function jU(e,t){for(;;){let n=e.next(),r=t.next();if(n.done&&r.done)return!0;if(n.done||r.done||!Object.is(n.value,r.value))return!1}}function MU(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}function AU(e){let[t,n]=e(),r=vW();return(...e)=>{t(...e),r.dispose(),r.microTask(n)}}bU=new WeakMap,wU=new WeakMap,yU=new WeakMap;var IU=Object.defineProperty,TU=(e,t,n)=>(((e,t,n)=>{t in e?IU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),OU=(e=>(e[e.Push=0]="Push",e[e.Pop=1]="Pop",e))(OU||{});let LU={0(e,t){let n=t.id,r=e.stack,o=e.stack.indexOf(n);if(-1!==o){let t=e.stack.slice();return t.splice(o,1),t.push(n),r=t,{...e,stack:r}}return{...e,stack:[...e.stack,n]}},1(e,t){let n=t.id,r=e.stack.indexOf(n);if(-1===r)return e;let o=e.stack.slice();return o.splice(r,1),{...e,stack:o}}},DU=class e extends PU{constructor(){super(...arguments),TU(this,"actions",{push:e=>this.send({type:0,id:e}),pop:e=>this.send({type:1,id:e})}),TU(this,"selectors",{isTop:(e,t)=>e.stack[e.stack.length-1]===t,inStack:(e,t)=>e.stack.includes(t)})}static new(){return new e({stack:[]})}reduce(e,t){return EW(t.type,LU,e,t)}};const FU=new vU((()=>DU.new()));var _U={exports:{}},VU={},zU=t;var HU="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},BU=zU.useSyncExternalStore,$U=zU.useRef,WU=zU.useEffect,UU=zU.useMemo,KU=zU.useDebugValue;VU.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=$U(null);if(null===i.current){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=UU((function(){function e(e){if(!l){if(l=!0,i=e,e=r(e),void 0!==o&&a.hasValue){var t=a.value;if(o(t,e))return s=t}return s=e}if(t=s,HU(i,e))return t;var n=r(e);return void 0!==o&&o(t,n)?(i=e,t):(i=e,s=n)}var i,s,l=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]}),[t,n,r,o]);var s=BU(e,i[0],i[1]);return WU((function(){a.hasValue=!0,a.value=s}),[s]),KU(s),s},_U.exports=VU;var GU=_U.exports;function qU(e,t,n=NU){return GU.useSyncExternalStoreWithSelector(xW((t=>e.subscribe(XU,t))),xW((()=>e.state)),xW((()=>e.state)),xW(t),n)}function XU(e){return e}function YU(e,n){let r=t.useId(),o=FU.get(n),[i,a]=qU(o,t.useCallback((e=>[o.selectors.isTop(e,r),o.selectors.inStack(e,r)]),[o,r]));return wW((()=>{if(e)return o.actions.push(r),()=>o.actions.pop(r)}),[o,e,r]),!!e&&(!a||i)}let ZU=new Map,QU=new Map;function JU(e){var t;let n=null!=(t=QU.get(e))?t:0;return QU.set(e,n+1),0!==n||(ZU.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0),()=>eK(e)}function eK(e){var t;let n=null!=(t=QU.get(e))?t:1;if(1===n?QU.delete(e):QU.set(e,n-1),1!==n)return;let r=ZU.get(e);r&&(null===r["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,ZU.delete(e))}let tK=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(","),nK=["[data-autofocus]"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var rK=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e[e.AutoFocus=64]="AutoFocus",e))(rK||{}),oK=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(oK||{}),iK=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(iK||{});function aK(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(tK)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}var sK=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(sK||{});function lK(e,t=0){var n;return e!==(null==(n=hW(e))?void 0:n.body)&&EW(t,{0:()=>e.matches(tK),1(){let t=e;for(;null!==t;){if(t.matches(tK))return!0;t=t.parentElement}return!1}})}var uK=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(uK||{});"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",(e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")}),!0),document.addEventListener("click",(e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")}),!0));let cK=["textarea","input"].join(",");function dK(e,t=(e=>e)){return e.slice().sort(((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}function fK(e,t){return function(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,a=Array.isArray(e)?n?dK(e):e:64&t?function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(nK)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}(e):aK(e);o.length>0&&a.length>1&&(a=a.filter((e=>!o.some((t=>null!=t&&"current"in t?(null==t?void 0:t.current)===e:t===e))))),r=null!=r?r:i.activeElement;let s,l=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,a.indexOf(r))-1;if(4&t)return Math.max(0,a.indexOf(r))+1;if(8&t)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=32&t?{preventScroll:!0}:{},d=0,f=a.length;do{if(d>=f||d+f<=0)return 0;let e=u+d;if(16&t)e=(e+f)%f;else{if(e<0)return 3;if(e>=f)return 1}s=a[e],null==s||s.focus(c),d+=l}while(s!==i.activeElement);return 6&t&&function(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,cK))&&n}(s)&&s.select(),2}(aK(),t,{relativeTo:e})}function pK(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function mK(){return pK()||/Android/gi.test(window.navigator.userAgent)}function hK(e,n,r,o){let i=yW(r);t.useEffect((()=>{if(e)return document.addEventListener(n,t,o),()=>document.removeEventListener(n,t,o);function t(e){i.current(e)}}),[e,n,o])}const gK=30;function vK(e,n,r){let o=yW(r),i=t.useCallback((function(e,t){if(e.defaultPrevented)return;let r=t(e);if(null===r||!r.getRootNode().contains(r)||!r.isConnected)return;let i=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(n);for(let t of i)if(null!==t&&(t.contains(r)||e.composed&&e.composedPath().includes(t)))return;return!lK(r,sK.Loose)&&-1!==r.tabIndex&&e.preventDefault(),o.current(e,r)}),[o,n]),a=t.useRef(null);hK(e,"pointerdown",(e=>{var t,n;mK()||(a.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),hK(e,"pointerup",(e=>{if(mK()||!a.current)return;let t=a.current;return a.current=null,i(e,(()=>t))}),!0);let s=t.useRef({x:0,y:0});hK(e,"touchstart",(e=>{s.current.x=e.touches[0].clientX,s.current.y=e.touches[0].clientY}),!0),hK(e,"touchend",(e=>{let t=e.changedTouches[0].clientX,n=e.changedTouches[0].clientY;if(!(Math.abs(t-s.current.x)>=gK||Math.abs(n-s.current.y)>=gK))return i(e,(()=>ZW(e.target)?e.target:null))}),!0),function(e,n,r,o){let i=yW(r);t.useEffect((()=>{if(e)return window.addEventListener(n,t,o),()=>window.removeEventListener(n,t,o);function t(e){i.current(e)}}),[e,n,o])}(e,"blur",(e=>i(e,(()=>function(e){return YW(e)&&"IFRAME"===e.nodeName}(window.document.activeElement)?window.document.activeElement:null))),!0)}function bK(...e){return t.useMemo((()=>hW(...e)),[...e])}var wK=(e=>(e[e.Ignore=0]="Ignore",e[e.Select=1]="Select",e[e.Close=2]="Close",e))(wK||{});const yK={Ignore:{kind:0},Select:e=>({kind:1,target:e}),Close:{kind:2}},xK=200;function CK(e,{trigger:n,action:r,close:o,select:i}){let a=t.useRef(null);hK(e&&null!==n,"pointerdown",(e=>{qW(null==e?void 0:e.target)&&null!=n&&n.contains(e.target)&&(a.current=new Date)})),hK(e&&null!==n,"pointerup",(e=>{if(null===a.current||!ZW(e.target))return;let t=r(e),n=(new Date).getTime()-a.current.getTime();switch(a.current=null,t.kind){case 0:return;case 1:n>xK&&(i(t.target),o());break;case 2:o()}}),{capture:!0})}function SK(e,n){return t.useMemo((()=>{var t;if(e.type)return e.type;let r=null!=(t=e.as)?t:"button";return"string"==typeof r&&"button"===r.toLowerCase()||"BUTTON"===(null==n?void 0:n.tagName)&&!n.hasAttribute("type")?"button":void 0}),[e.type,e.as,n])}function kK(){let e;return{before({doc:t}){var n;let r=t.documentElement,o=null!=(n=t.defaultView)?n:window;e=Math.max(0,o.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,o=Math.max(0,r.clientWidth-r.offsetWidth),i=Math.max(0,e-o);n.style(r,"paddingRight",`${i}px`)}}}function EK(){return pK()?{before({doc:e,d:t,meta:n}){function r(e){return n.containers.flatMap((e=>e())).some((t=>t.contains(e)))}t.microTask((()=>{var n;if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){let n=vW();n.style(e.documentElement,"scrollBehavior","auto"),t.add((()=>t.microTask((()=>n.dispose()))))}let o=null!=(n=window.scrollY)?n:window.pageYOffset,i=null;t.addEventListener(e,"click",(t=>{if(ZW(t.target))try{let n=t.target.closest("a");if(!n)return;let{hash:o}=new URL(n.href),a=e.querySelector(o);ZW(a)&&!r(a)&&(i=a)}catch{}}),!0),t.addEventListener(e,"touchstart",(e=>{if(ZW(e.target)&&function(e){return XW(e)&&"style"in e}(e.target))if(r(e.target)){let n=e.target;for(;n.parentElement&&r(n.parentElement);)n=n.parentElement;t.style(n,"overscrollBehavior","contain")}else t.style(e.target,"touchAction","none")})),t.addEventListener(e,"touchmove",(e=>{if(ZW(e.target)){if(QW(e.target))return;if(r(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()}}),{passive:!1}),t.add((()=>{var e;let t=null!=(e=window.scrollY)?e:window.pageYOffset;o!==t&&window.scrollTo(0,o),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)}))}))}}:{}}function RK(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let PK=function(e,t){let n=e(),r=new Set;return{getSnapshot:()=>n,subscribe:e=>(r.add(e),()=>r.delete(e)),dispatch(e,...o){let i=t[e].call(n,...o);i&&(n=i,r.forEach((e=>e())))}}}((()=>new Map),{PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:vW(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:RK(n)},o=[EK(),kK(),{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];o.forEach((({before:e})=>null==e?void 0:e(r))),o.forEach((({after:e})=>null==e?void 0:e(r)))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});function NK(e,n,r=(()=>({containers:[]}))){let o=function(e){return t.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot)}(PK),i=n?o.get(n):void 0,a=!!i&&i.count>0;return wW((()=>{if(n&&e)return PK.dispatch("PUSH",n,r),()=>PK.dispatch("POP",n,r)}),[e,n]),a}function jK(e){return[e.screenX,e.screenY]}function MK(){let e=t.useRef([-1,-1]);return{wasMoved(t){let n=jK(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=jK(t)}}}var AK,IK;PK.subscribe((()=>{let e=PK.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e="hidden"===t.get(n.doc),r=0!==n.count;(r&&!e||!r&&e)&&PK.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&PK.dispatch("TEARDOWN",n)}})),"undefined"!=typeof process&&"undefined"!=typeof globalThis&&"undefined"!=typeof Element&&"test"===(null==(AK=null==process?void 0:process.env)?void 0:AK.NODE_ENV)&&void 0===(null==(IK=null==Element?void 0:Element.prototype)?void 0:IK.getAnimations)&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join("\n")),[]});var TK=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(TK||{});function OK(e){let t={};for(let n in e)!0===e[n]&&(t[`data-${n}`]="");return t}function LK(e,n,r,o){let[i,a]=t.useState(r),{hasFlag:s,addFlag:l,removeFlag:u}=function(e=0){let[n,r]=t.useState(e),o=t.useCallback((e=>r(e)),[n]),i=t.useCallback((e=>r((t=>t|e))),[n]),a=t.useCallback((e=>(n&e)===e),[n]),s=t.useCallback((e=>r((t=>t&~e))),[r]),l=t.useCallback((e=>r((t=>t^e))),[r]);return{flags:n,setFlag:o,addFlag:i,hasFlag:a,removeFlag:s,toggleFlag:l}}(e&&i?3:0),c=t.useRef(!1),d=t.useRef(!1),f=bW();return wW((()=>{var t;if(e)return r&&a(!0),n?(null==(t=null==o?void 0:o.start)||t.call(o,r),function(e,{prepare:t,run:n,done:r,inFlight:o}){let i=vW();return function(e,{inFlight:t,prepare:n}){if(null!=t&&t.current)return void n();let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}(e,{prepare:t,inFlight:o}),i.nextFrame((()=>{n(),i.requestAnimationFrame((()=>{i.add(function(e,t){var n,r;let o=vW();if(!e)return o.dispose;let i=!1;o.add((()=>{i=!0}));let a=null!=(r=null==(n=e.getAnimations)?void 0:n.call(e).filter((e=>e instanceof CSSTransition)))?r:[];return 0===a.length?(t(),o.dispose):(Promise.allSettled(a.map((e=>e.finished))).then((()=>{i||t()})),o.dispose)}(e,r))}))})),i.dispose}(n,{inFlight:c,prepare(){d.current?d.current=!1:d.current=c.current,c.current=!0,!d.current&&(r?(l(3),u(4)):(l(4),u(2)))},run(){d.current?r?(u(3),l(4)):(u(4),l(3)):r?u(1):l(1)},done(){var e;d.current&&"function"==typeof n.getAnimations&&n.getAnimations().length>0||(c.current=!1,u(7),r||a(!1),null==(e=null==o?void 0:o.end)||e.call(o,r))}})):void(r&&l(3))}),[e,r,n,f]),e?[i,{closed:s(1),enter:s(2),leave:s(4),transition:s(2)||s(4)}]:[r,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}const DK={...a},FK=DK.useInsertionEffect||(e=>e());function _K(e){const t=a.useRef((()=>{}));return FK((()=>{t.current=e})),a.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}var VK="undefined"!=typeof document?t.useLayoutEffect:t.useEffect;let zK=!1,HK=0;const BK=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+HK++;const $K=DK.useId||function(){const[e,t]=a.useState((()=>zK?BK():void 0));return VK((()=>{null==e&&t(BK())}),[]),a.useEffect((()=>{zK=!0}),[]),e};const WK=a.createContext(null),UK=a.createContext(null),KK=()=>{var e;return(null==(e=a.useContext(WK))?void 0:e.id)||null},GK=()=>a.useContext(UK);function qK(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=$K(),i=a.useRef({}),[s]=a.useState((()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}())),l=null!=KK(),[u,c]=a.useState(r.reference),d=_K(((e,t,r)=>{i.current.openEvent=e?t:void 0,s.emit("openchange",{open:e,event:t,reason:r,nested:l}),null==n||n(e,t,r)})),f=a.useMemo((()=>({setPositionReference:c})),[]),p=a.useMemo((()=>({reference:u||r.reference||null,floating:r.floating||null,domReference:r.reference})),[u,r.reference,r.floating]);return a.useMemo((()=>({dataRef:i,open:t,onOpenChange:d,elements:p,events:s,floatingId:o,refs:f})),[t,d,p,s,o,f])}const XK="active",YK="selected";function ZK(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[XK]:t,[YK]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1},...i,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,i]=t;var a;o&&[XK,YK].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(a=r.get(n))||a.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=i)})),e):e),{})}}function QK(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const JK=e=>({name:"inner",options:e,async fn(t){const{listRef:n,overflowRef:r,onFallbackChange:o,offset:i=0,index:a=0,minItemsVisible:l=4,referenceOverflowThreshold:u=0,scrollRef:c,...d}=fs(e,t),{rects:f,elements:{floating:p}}=t,m=n.current[a];if(!m)return{};const h={...t,...await Mh(-m.offsetTop-p.clientTop-f.reference.height/2-m.offsetHeight/2-i).fn(t)},g=(null==c?void 0:c.current)||p,v=await ll(QK(h,g.scrollHeight),d),b=await ll(h,{...d,elementContext:"reference"}),w=Math.max(0,v.top),y=h.y+w,x=Math.max(0,g.scrollHeight-w-Math.max(0,v.bottom));return g.style.maxHeight=x+"px",g.scrollTop=w,o&&(g.offsetHeight<m.offsetHeight*Math.min(l,n.current.length-1)-1||b.top>=-u||b.bottom>=-u?s.flushSync((()=>o(!0))):s.flushSync((()=>o(!1)))),r&&(r.current=await ll(QK({...h,y:y},g.offsetHeight),d)),{y:y}}});function eG(e,t){const{open:n,elements:r}=e,{enabled:o=!0,overflowRef:i,scrollRef:l,onChange:u}=t,c=_K(u),d=a.useRef(!1),f=a.useRef(null),p=a.useRef(null);a.useEffect((()=>{if(!o)return;function e(e){if(e.ctrlKey||!t||null==i.current)return;const n=e.deltaY,r=i.current.top>=-.5,o=i.current.bottom>=-.5,a=t.scrollHeight-t.clientHeight,l=n<0?-1:1,u=n<0?"max":"min";t.scrollHeight<=t.clientHeight||(!r&&n>0||!o&&n<0?(e.preventDefault(),s.flushSync((()=>{c((e=>e+Math[u](n,a*l)))}))):/firefox/i.test(function(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}())&&(t.scrollTop+=n))}const t=(null==l?void 0:l.current)||r.floating;return n&&t?(t.addEventListener("wheel",e),requestAnimationFrame((()=>{f.current=t.scrollTop,null!=i.current&&(p.current={...i.current})})),()=>{f.current=null,p.current=null,t.removeEventListener("wheel",e)}):void 0}),[o,n,r.floating,i,l,c]);const m=a.useMemo((()=>({onKeyDown(){d.current=!0},onWheel(){d.current=!1},onPointerMove(){d.current=!1},onScroll(){const e=(null==l?void 0:l.current)||r.floating;if(i.current&&e&&d.current){if(null!==f.current){const t=e.scrollTop-f.current;(i.current.bottom<-.5&&t<-1||i.current.top<-.5&&t>1)&&s.flushSync((()=>c((e=>e+t))))}requestAnimationFrame((()=>{f.current=e.scrollTop}))}}})),[r.floating,c,i,l]);return a.useMemo((()=>o?{floating:m}:{}),[o,m])}let tG=t.createContext({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});tG.displayName="FloatingContext";let nG=t.createContext(null);function rG(){return t.useContext(tG).setReference}function oG(){return t.useContext(tG).getReferenceProps}function iG(){let{getFloatingProps:e,slot:n}=t.useContext(tG);return t.useCallback(((...t)=>Object.assign({},e(...t),{"data-anchor":n.anchor})),[e,n])}function aG(e=null){!1===e&&(e=null),"string"==typeof e&&(e={to:e});let n=t.useContext(nG),r=t.useMemo((()=>e),[JSON.stringify(e,((e,t)=>{var n;return null!=(n=null==t?void 0:t.outerHTML)?n:t}))]);wW((()=>{null==n||n(null!=r?r:null)}),[n,r]);let o=t.useContext(tG);return t.useMemo((()=>[o.setFloating,e?o.styles:{}]),[o.setFloating,e,o.styles])}nG.displayName="PlacementContext";let sG=4;function lG({children:e,enabled:n=!0}){let[r,o]=t.useState(null),[i,s]=t.useState(0),l=t.useRef(null),[u,c]=t.useState(null);!function(e){wW((()=>{if(!e)return;let t=new MutationObserver((()=>{let t=window.getComputedStyle(e).maxHeight,n=parseFloat(t);if(isNaN(n))return;let r=parseInt(t);isNaN(r)||n!==r&&(e.style.maxHeight=`${Math.ceil(n)}px`)}));return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}}),[e])}(u);let d=n&&null!==r&&null!==u,{to:f="bottom",gap:p=0,offset:m=0,padding:h=0,inner:g}=function(e,t){var n,r,o;let i=uG(null!=(n=null==e?void 0:e.gap)?n:"var(--anchor-gap, 0)",t),a=uG(null!=(r=null==e?void 0:e.offset)?r:"var(--anchor-offset, 0)",t),s=uG(null!=(o=null==e?void 0:e.padding)?o:"var(--anchor-padding, 0)",t);return{...e,gap:i,offset:a,padding:s}}(r,u),[v,b="center"]=f.split(" ");wW((()=>{d&&s(0)}),[d]);let{refs:w,floatingStyles:y,context:x}=function(e){void 0===e&&(e={});const{nodeId:t}=e,n=qK({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,s]=a.useState(null),[l,u]=a.useState(null),c=(null==o?void 0:o.reference)||i,d=a.useRef(null),f=GK();VK((()=>{c&&(d.current=c)}),[c]);const p=Nh({...e,elements:{...o,...l&&{reference:l}}}),m=a.useCallback((e=>{const t=Is(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;u(t),p.refs.setReference(t)}),[p.refs]),h=a.useCallback((e=>{(Is(e)||null===e)&&(d.current=e,s(e)),(Is(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!Is(e))&&p.refs.setReference(e)}),[p.refs]),g=a.useMemo((()=>({...p.refs,setReference:h,setPositionReference:m,domReference:d})),[p.refs,h,m]),v=a.useMemo((()=>({...p.elements,domReference:c})),[p.elements,c]),b=a.useMemo((()=>({...p,...r,refs:g,elements:v,nodeId:t})),[p,g,v,t,r]);return VK((()=>{r.dataRef.current.floatingContext=b;const e=null==f?void 0:f.nodesRef.current.find((e=>e.id===t));e&&(e.context=b)})),a.useMemo((()=>({...p,context:b,refs:g,elements:v})),[p,g,v,b])}({open:d,placement:"selection"===v?"center"===b?"bottom":`bottom-${b}`:"center"===b?`${v}`:`${v}-${b}`,strategy:"absolute",transform:!1,middleware:[Mh({mainAxis:"selection"===v?0:p,crossAxis:m}),Ah({padding:h}),"selection"!==v&&Th({padding:h}),"selection"===v&&g?JK({...g,padding:h,overflowRef:l,offset:i,minItemsVisible:sG,referenceOverflowThreshold:h,onFallbackChange(e){var t,n;if(!e)return;let r=x.elements.floating;if(!r)return;let o=parseFloat(getComputedStyle(r).scrollPaddingBottom)||0,i=Math.min(sG,r.childElementCount),a=0,l=0;for(let e of null!=(n=null==(t=x.elements.floating)?void 0:t.childNodes)?n:[])if(YW(e)){let t=e.offsetTop,n=t+e.clientHeight+o,s=r.scrollTop,u=s+r.clientHeight;if(!(t>=s&&n<=u)){l=Math.max(0,Math.min(n,u)-Math.max(t,s)),a=e.clientHeight;break}i--}i>=1&&s((e=>{let t=a*i-l+o;return e>=t?e:t}))}}):null,Oh({padding:h,apply({availableWidth:e,availableHeight:t,elements:n}){Object.assign(n.floating.style,{overflow:"auto",maxWidth:`${e}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${t}px)`})}})].filter(Boolean),whileElementsMounted:sl}),[C=v,S=b]=x.placement.split("-");"selection"===v&&(C="selection");let k=t.useMemo((()=>({anchor:[C,S].filter(Boolean).join(" ")})),[C,S]),E=eG(x,{overflowRef:l,onChange:s}),{getReferenceProps:R,getFloatingProps:P}=function(e){void 0===e&&(e=[]);const t=e.map((e=>null==e?void 0:e.reference)),n=e.map((e=>null==e?void 0:e.floating)),r=e.map((e=>null==e?void 0:e.item)),o=a.useCallback((t=>ZK(t,e,"reference")),t),i=a.useCallback((t=>ZK(t,e,"floating")),n),s=a.useCallback((t=>ZK(t,e,"item")),r);return a.useMemo((()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:s})),[o,i,s])}([E]),N=xW((e=>{c(e),w.setFloating(e)}));return a.createElement(nG.Provider,{value:o},a.createElement(tG.Provider,{value:{setFloating:N,setReference:w.setReference,styles:y,getReferenceProps:R,getFloatingProps:P,slot:k}},e))}function uG(e,n,r=void 0){let o=bW(),i=xW(((e,t)=>{if(null==e)return[r,null];if("number"==typeof e)return[e,null];if("string"==typeof e){if(!t)return[r,null];let n=dG(e,t);return[n,r=>{let i=cG(e);{let a=i.map((e=>window.getComputedStyle(t).getPropertyValue(e)));o.requestAnimationFrame((function s(){o.nextFrame(s);let l=!1;for(let[e,n]of i.entries()){let r=window.getComputedStyle(t).getPropertyValue(n);if(a[e]!==r){a[e]=r,l=!0;break}}if(!l)return;let u=dG(e,t);n!==u&&(r(u),n=u)}))}return o.dispose}]}return[r,null]})),a=t.useMemo((()=>i(e,n)[0]),[e,n]),[s=a,l]=t.useState();return wW((()=>{let[t,r]=i(e,n);if(l(t),r)return r(l)}),[e,n]),s}function cG(e){let t=/var\((.*)\)/.exec(e);if(t){let e=t[1].indexOf(",");if(-1===e)return[t[1]];let n=t[1].slice(0,e).trim(),r=t[1].slice(e+1).trim();return r?[n,...cG(r)]:[n]}return[]}function dG(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}let fG=t.createContext(null);fG.displayName="OpenClosedContext";var pG=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(pG||{});function mG(){return t.useContext(fG)}function hG({value:e,children:n}){return t.createElement(fG.Provider,{value:e},n)}var gG=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(gG||{});function vG(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=null!=r?r:-1;switch(e.focus){case 0:for(let e=0;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 1:-1===o&&(o=n.length);for(let e=o-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 2:for(let e=o+1;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 3:for(let e=n.length-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 4:for(let r=0;r<n.length;++r)if(t.resolveId(n[r],r,n)===e.id)return r;return r;case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}}function bG(e){let n=xW(e),r=t.useRef(!1);t.useEffect((()=>(r.current=!1,()=>{r.current=!0,gW((()=>{r.current&&n()}))})),[n])}function wG(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in a&&a.useSyncExternalStore((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,n]=a.useState(mW.isHandoffComplete);return t&&!1===mW.isHandoffComplete&&n(!1),a.useEffect((()=>{!0!==t&&n(!0)}),[t]),a.useEffect((()=>mW.handoff()),[]),!e&&t}let yG=t.createContext(!1);function xG(){return t.useContext(yG)}let CG=t.Fragment,SG=TW((function(e,r){let{ownerDocument:o=null,...i}=e,a=t.useRef(null),s=oU(function(e,t=!0){return Object.assign(e,{[rU]:t})}((e=>{a.current=e})),r),l=bK(a),u=null!=o?o:l,c=function(e){let n=xG(),r=t.useContext(EG),[o,i]=t.useState((()=>{var t;if(!n&&null!==r)return null!=(t=r.current)?t:null;if(mW.isServer)return null;let o=null==e?void 0:e.getElementById("headlessui-portal-root");if(o)return o;if(null===e)return null;let i=e.createElement("div");return i.setAttribute("id","headlessui-portal-root"),e.body.appendChild(i)}));return t.useEffect((()=>{null!==o&&(null!=e&&e.body.contains(o)||null==e||e.body.appendChild(o))}),[o,e]),t.useEffect((()=>{n||null!==r&&i(r.current)}),[r,i,n]),o}(u),[d]=t.useState((()=>{var e;return mW.isServer?null:null!=(e=null==u?void 0:u.createElement("div"))?e:null})),f=t.useContext(RG),p=wG();wW((()=>{!c||!d||c.contains(d)||(d.setAttribute("data-headlessui-portal",""),c.appendChild(d))}),[c,d]),wW((()=>{if(d&&f)return f.register(d)}),[f,d]),bG((()=>{var e;!c||!d||(qW(d)&&c.contains(d)&&c.removeChild(d),c.childNodes.length<=0&&(null==(e=c.parentElement)||e.removeChild(c)))}));let m=NW();return p&&c&&d?n.createPortal(m({ourProps:{ref:s},theirProps:i,slot:{},defaultTag:CG,name:"Portal"}),d):null}));let kG=t.Fragment,EG=t.createContext(null);let RG=t.createContext(null),PG=TW((function(e,n){let r=oU(n),{enabled:o=!0,ownerDocument:i,...a}=e,s=NW();return o?t.createElement(SG,{...a,ownerDocument:i,ref:r}):s({ourProps:{ref:r},theirProps:a,slot:{},defaultTag:CG,name:"Portal"})})),NG=TW((function(e,n){let{target:r,...o}=e,i={ref:oU(n)},a=NW();return t.createElement(EG.Provider,{value:r},a({ourProps:i,theirProps:o,defaultTag:kG,name:"Popover.Group"}))})),jG=Object.assign(PG,{Group:NG});function MG(e){var n;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||(null!=(n=e.as)?n:DG)!==t.Fragment||1===t.Children.count(e.children)}let AG=t.createContext(null);AG.displayName="TransitionContext";var IG=(e=>(e.Visible="visible",e.Hidden="hidden",e))(IG||{});let TG=t.createContext(null);function OG(e){return"children"in e?OG(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function LG(e,n){let r=yW(e),o=t.useRef([]),i=function(){let e=t.useRef(!1);return wW((()=>(e.current=!0,()=>{e.current=!1})),[]),e}(),a=bW(),s=xW(((e,t=PW.Hidden)=>{let n=o.current.findIndex((({el:t})=>t===e));-1!==n&&(EW(t,{[PW.Unmount](){o.current.splice(n,1)},[PW.Hidden](){o.current[n].state="hidden"}}),a.microTask((()=>{var e;!OG(o)&&i.current&&(null==(e=r.current)||e.call(r))})))})),l=xW((e=>{let t=o.current.find((({el:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):o.current.push({el:e,state:"visible"}),()=>s(e,PW.Unmount)})),u=t.useRef([]),c=t.useRef(Promise.resolve()),d=t.useRef({enter:[],leave:[]}),f=xW(((e,t,r)=>{u.current.splice(0),n&&(n.chains.current[t]=n.chains.current[t].filter((([t])=>t!==e))),null==n||n.chains.current[t].push([e,new Promise((e=>{u.current.push(e)}))]),null==n||n.chains.current[t].push([e,new Promise((e=>{Promise.all(d.current[t].map((([e,t])=>t))).then((()=>e()))}))]),"enter"===t?c.current=c.current.then((()=>null==n?void 0:n.wait.current)).then((()=>r(t))):r(t)})),p=xW(((e,t,n)=>{Promise.all(d.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=u.current.shift())||e()})).then((()=>n(t)))}));return t.useMemo((()=>({children:o,register:l,unregister:s,onStart:f,onStop:p,wait:c,chains:d})),[l,s,o,f,p,d,c])}TG.displayName="NestingContext";let DG=t.Fragment,FG=RW.RenderStrategy;let _G=TW((function(e,n){let{show:r,appear:o=!1,unmount:i=!0,...a}=e,s=t.useRef(null),l=oU(...MG(e)?[s,n]:null===n?[]:[n]);wG();let u=mG();if(void 0===r&&null!==u&&(r=(u&pG.Open)===pG.Open),void 0===r)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,d]=t.useState(r?"visible":"hidden"),f=LG((()=>{r||d("hidden")})),[p,m]=t.useState(!0),h=t.useRef([r]);wW((()=>{!1!==p&&h.current[h.current.length-1]!==r&&(h.current.push(r),m(!1))}),[h,r]);let g=t.useMemo((()=>({show:r,appear:o,initial:p})),[r,o,p]);wW((()=>{r?d("visible"):!OG(f)&&null!==s.current&&d("hidden")}),[r,f]);let v={unmount:i},b=xW((()=>{var t;p&&m(!1),null==(t=e.beforeEnter)||t.call(e)})),w=xW((()=>{var t;p&&m(!1),null==(t=e.beforeLeave)||t.call(e)})),y=NW();return t.createElement(TG.Provider,{value:f},t.createElement(AG.Provider,{value:g},y({ourProps:{...v,as:t.Fragment,children:t.createElement(VG,{ref:l,...v,...a,beforeEnter:b,beforeLeave:w})},theirProps:{},defaultTag:t.Fragment,features:FG,visible:"visible"===c,name:"Transition"})))})),VG=TW((function(e,n){var r,o;let{transition:i=!0,beforeEnter:a,afterEnter:s,beforeLeave:l,afterLeave:u,enter:c,enterFrom:d,enterTo:f,entered:p,leave:m,leaveFrom:h,leaveTo:g,...v}=e,[b,w]=t.useState(null),y=t.useRef(null),x=MG(e),C=oU(...x?[y,n,w]:null===n?[]:[n]),S=null==(r=v.unmount)||r?PW.Unmount:PW.Hidden,{show:k,appear:E,initial:R}=function(){let e=t.useContext(AG);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[P,N]=t.useState(k?"visible":"hidden"),j=function(){let e=t.useContext(TG);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:M,unregister:A}=j;wW((()=>M(y)),[M,y]),wW((()=>{if(S===PW.Hidden&&y.current)return k&&"visible"!==P?void N("visible"):EW(P,{hidden:()=>A(y),visible:()=>M(y)})}),[P,y,M,A,k,S]);let I=wG();wW((()=>{if(x&&I&&"visible"===P&&null===y.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[y,P,I,x]);let T=R&&!E,O=E&&k&&R,L=t.useRef(!1),D=LG((()=>{L.current||(N("hidden"),A(y))}),j),F=xW((e=>{L.current=!0;let t=e?"enter":"leave";D.onStart(y,t,(e=>{"enter"===e?null==a||a():"leave"===e&&(null==l||l())}))})),_=xW((e=>{let t=e?"enter":"leave";L.current=!1,D.onStop(y,t,(e=>{"enter"===e?null==s||s():"leave"===e&&(null==u||u())})),"leave"===t&&!OG(D)&&(N("hidden"),A(y))}));t.useEffect((()=>{x&&i||(F(k),_(k))}),[k,x,i]);let V=!(!i||!x||!I||T),[,z]=LK(V,b,k,{start:F,end:_}),H=OW({ref:C,className:(null==(o=kW(v.className,O&&c,O&&d,z.enter&&c,z.enter&&z.closed&&d,z.enter&&!z.closed&&f,z.leave&&m,z.leave&&!z.closed&&h,z.leave&&z.closed&&g,!z.transition&&k&&p))?void 0:o.trim())||void 0,...OK(z)}),B=0;"visible"===P&&(B|=pG.Open),"hidden"===P&&(B|=pG.Closed),k&&"hidden"===P&&(B|=pG.Opening),!k&&"visible"===P&&(B|=pG.Closing);let $=NW();return t.createElement(TG.Provider,{value:D},t.createElement(hG,{value:B},$({ourProps:H,theirProps:v,defaultTag:DG,features:FG,visible:"visible"===P,name:"Transition.Child"})))})),zG=TW((function(e,n){let r=null!==t.useContext(AG),o=null!==mG();return t.createElement(t.Fragment,null,!r&&o?t.createElement(_G,{ref:n,...e}):t.createElement(VG,{ref:n,...e}))})),HG=Object.assign(_G,{Child:zG,Root:_G});let BG=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function $G(e){var t,n;let r=null!=(t=e.innerText)?t:"",o=e.cloneNode(!0);if(!YW(o))return r;let i=!1;for(let e of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),i=!0;let a=i?null!=(n=o.innerText)?n:"":r;return BG.test(a)&&(a=a.replace(BG,"")),a}function WG(e){let n=t.useRef(""),r=t.useRef("");return xW((()=>{let t=e.current;if(!t)return"";let o=t.innerText;if(n.current===o)return r.current;let i=function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let e=n.split(" ").map((e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():$G(t).trim()}return null})).filter(Boolean);if(e.length>0)return e.join(", ")}return $G(e).trim()}(t).trim().toLowerCase();return n.current=o,r.current=i,i}))}var UG=Object.defineProperty,KG=(e,t,n)=>(((e,t,n)=>{t in e?UG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),GG=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(GG||{}),qG=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(qG||{}),XG=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(XG||{}),YG=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOptions=5]="RegisterOptions",e[e.UnregisterOptions=6]="UnregisterOptions",e[e.SetButtonElement=7]="SetButtonElement",e[e.SetOptionsElement=8]="SetOptionsElement",e[e.SortOptions=9]="SortOptions",e))(YG||{});function ZG(e,t=(e=>e)){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=dK(t(e.options.slice()),(e=>e.dataRef.current.domRef.current)),o=n?r.indexOf(n):null;return-1===o&&(o=null),{options:r,activeOptionIndex:o}}let QG={1:e=>e.dataRef.current.disabled||1===e.listboxState?e:{...e,activeOptionIndex:null,pendingFocus:{focus:gG.Nothing},listboxState:1,__demoMode:!1},0(e,t){if(e.dataRef.current.disabled||0===e.listboxState)return e;let n=e.activeOptionIndex,{isSelected:r}=e.dataRef.current,o=e.options.findIndex((e=>r(e.dataRef.current.value)));return-1!==o&&(n=o),{...e,pendingFocus:t.focus,listboxState:0,activeOptionIndex:n,__demoMode:!1}},2(e,t){var n,r,o,i,a;if(e.dataRef.current.disabled||1===e.listboxState)return e;let s={...e,searchQuery:"",activationTrigger:null!=(n=t.trigger)?n:1,__demoMode:!1};if(t.focus===gG.Nothing)return{...s,activeOptionIndex:null};if(t.focus===gG.Specific)return{...s,activeOptionIndex:e.options.findIndex((e=>e.id===t.id))};if(t.focus===gG.Previous){let n=e.activeOptionIndex;if(null!==n){let i=e.options[n].dataRef.current.domRef,a=vG(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==a){let t=e.options[a].dataRef.current.domRef;if((null==(r=i.current)?void 0:r.previousElementSibling)===t.current||null===(null==(o=t.current)?void 0:o.previousElementSibling))return{...s,activeOptionIndex:a}}}}else if(t.focus===gG.Next){let n=e.activeOptionIndex;if(null!==n){let r=e.options[n].dataRef.current.domRef,o=vG(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==o){let t=e.options[o].dataRef.current.domRef;if((null==(i=r.current)?void 0:i.nextElementSibling)===t.current||null===(null==(a=t.current)?void 0:a.nextElementSibling))return{...s,activeOptionIndex:o}}}}let l=ZG(e),u=vG(t,{resolveItems:()=>l.options,resolveActiveIndex:()=>l.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...s,...l,activeOptionIndex:u}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),o=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find((e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))})),i=o?e.options.indexOf(o):-1;return-1===i||i===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:i,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:(e,t)=>{let n=e.options.concat(t.options),r=e.activeOptionIndex;if(e.pendingFocus.focus!==gG.Nothing&&(r=vG(e.pendingFocus,{resolveItems:()=>n,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled})),null===e.activeOptionIndex){let{isSelected:t}=e.dataRef.current;if(t){let e=n.findIndex((e=>null==t?void 0:t(e.dataRef.current.value)));-1!==e&&(r=e)}}return{...e,options:n,activeOptionIndex:r,pendingFocus:{focus:gG.Nothing},pendingShouldSort:!0}},6:(e,t)=>{let n=e.options,r=[],o=new Set(t.options);for(let[e,t]of n.entries())if(o.has(t.id)&&(r.push(e),o.delete(t.id),0===o.size))break;if(r.length>0){n=n.slice();for(let e of r.reverse())n.splice(e,1)}return{...e,options:n,activationTrigger:1}},7:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},8:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element},9:e=>e.pendingShouldSort?{...e,...ZG(e),pendingShouldSort:!1}:e};class JG extends PU{constructor(e){super(e),KG(this,"actions",{onChange:e=>{let{onChange:t,compare:n,mode:r,value:o}=this.state.dataRef.current;return EW(r,{0:()=>null==t?void 0:t(e),1:()=>{let r=o.slice(),i=r.findIndex((t=>n(t,e)));return-1===i?r.push(e):r.splice(i,1),null==t?void 0:t(r)}})},registerOption:AU((()=>{let e=[],t=new Set;return[(n,r)=>{t.has(r)||(t.add(r),e.push({id:n,dataRef:r}))},()=>(t.clear(),this.send({type:5,options:e.splice(0)}))]})),unregisterOption:AU((()=>{let e=[];return[t=>e.push(t),()=>{this.send({type:6,options:e.splice(0)})}]})),goToOption:AU((()=>{let e=null;return[(t,n)=>{e={type:2,...t,trigger:n}},()=>e&&this.send(e)]})),closeListbox:()=>{this.send({type:1})},openListbox:e=>{this.send({type:0,focus:e})},selectActiveOption:()=>{if(null!==this.state.activeOptionIndex){let{dataRef:e,id:t}=this.state.options[this.state.activeOptionIndex];this.actions.onChange(e.current.value),this.send({type:2,focus:gG.Specific,id:t})}},selectOption:e=>{let t=this.state.options.find((t=>t.id===e));t&&this.actions.onChange(t.dataRef.current.value)},search:e=>{this.send({type:3,value:e})},clearSearch:()=>{this.send({type:4})},setButtonElement:e=>{this.send({type:7,element:e})},setOptionsElement:e=>{this.send({type:8,element:e})}}),KG(this,"selectors",{activeDescendantId(e){var t;let n=e.activeOptionIndex,r=e.options;return null===n||null==(t=r[n])?void 0:t.id},isActive(e,t){var n;let r=e.activeOptionIndex,o=e.options;return null!==r&&(null==(n=o[r])?void 0:n.id)===t},shouldScrollIntoView(e,t){return!e.__demoMode&&0===e.listboxState&&0!==e.activationTrigger&&this.isActive(e,t)}}),this.on(5,(()=>{requestAnimationFrame((()=>{this.send({type:9})}))}));{let e=this.state.id,t=FU.get(null);this.disposables.add(t.on(OU.Push,(n=>{!t.selectors.isTop(n,e)&&0===this.state.listboxState&&this.actions.closeListbox()}))),this.on(0,(()=>t.actions.push(e))),this.on(1,(()=>t.actions.pop(e)))}}static new({id:e,__demoMode:t=!1}){return new JG({id:e,dataRef:{current:{}},listboxState:t?0:1,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,buttonElement:null,optionsElement:null,pendingShouldSort:!1,pendingFocus:{focus:gG.Nothing},__demoMode:t})}reduce(e,t){return EW(t.type,QG,e,t)}}const eq=t.createContext(null);function tq(e){let n=t.useContext(eq);if(null===n){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,nq),t}return n}function nq({id:e,__demoMode:n=!1}){let r=t.useMemo((()=>JG.new({id:e,__demoMode:n})),[]);return bG((()=>r.dispose())),r}let rq=t.createContext(null);function oq(e){let n=t.useContext(rq);if(null===n){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,oq),t}return n}rq.displayName="ListboxDataContext";let iq=t.Fragment;let aq=t.createContext(!1),sq=RW.RenderStrategy|RW.Static;let lq=t.Fragment;let uq=TW((function(e,n){let r=t.useId(),o=SW(),{value:i,defaultValue:a,form:s,name:l,onChange:u,by:c,invalid:d=!1,disabled:f=o||!1,horizontal:p=!1,multiple:m=!1,__demoMode:h=!1,...g}=e;const v=p?"horizontal":"vertical";let b=oU(n),w=function(e){let[n]=t.useState(e);return n}(a),[y=(m?[]:void 0),x]=function(e,n,r){let[o,i]=t.useState(r),a=void 0!==e,s=t.useRef(a),l=t.useRef(!1),u=t.useRef(!1);return!a||s.current||l.current?!a&&s.current&&!u.current&&(u.current=!0,s.current=a,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(l.current=!0,s.current=a,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[a?e:o,xW((e=>(a||i(e),null==n?void 0:n(e))))]}(i,u,w),C=nq({id:r,__demoMode:h}),S=t.useRef({static:!1,hold:!1}),k=t.useRef(new Map),E=function(e=hU){return t.useCallback(((t,n)=>{if("string"==typeof e){let r=e;return(null==t?void 0:t[r])===(null==n?void 0:n[r])}return e(t,n)}),[e])}(c),R=t.useCallback((e=>EW(P.mode,{[qG.Multi]:()=>y.some((t=>E(t,e))),[qG.Single]:()=>E(y,e)})),[y]),P=t.useMemo((()=>({value:y,disabled:f,invalid:d,mode:m?qG.Multi:qG.Single,orientation:v,onChange:x,compare:E,isSelected:R,optionsPropsRef:S,listRef:k})),[y,f,d,m,v,x,E,R,S,k]);wW((()=>{C.state.dataRef.current=P}),[P]);let N=qU(C,(e=>e.listboxState)),j=FU.get(null),M=qU(j,t.useCallback((e=>j.selectors.isTop(e,r)),[j,r])),[A,I]=qU(C,(e=>[e.buttonElement,e.optionsElement]));vK(M,[A,I],((e,t)=>{C.send({type:YG.CloseListbox}),lK(t,sK.Loose)||(e.preventDefault(),null==A||A.focus())}));let T=t.useMemo((()=>({open:N===GG.Open,disabled:f,invalid:d,value:y})),[N,f,d,y]),[O,L]=fU({inherit:!0}),D={ref:b},F=t.useCallback((()=>{if(void 0!==w)return null==x?void 0:x(w)}),[x,w]),_=NW();return t.createElement(L,{value:O,props:{htmlFor:null==A?void 0:A.id},slot:{open:N===GG.Open,disabled:f}},t.createElement(lG,null,t.createElement(eq.Provider,{value:C},t.createElement(rq.Provider,{value:P},t.createElement(hG,{value:EW(N,{[GG.Open]:pG.Open,[GG.Closed]:pG.Closed})},null!=l&&null!=y&&t.createElement(WW,{disabled:f,data:{[l]:y},form:s,onReset:F}),_({ourProps:D,theirProps:g,slot:T,defaultTag:iq,name:"Listbox"}))))))})),cq=TW((function(e,r){let o=t.useId(),i=GW(),a=oq("Listbox.Button"),s=tq("Listbox.Button"),{id:l=i||`headlessui-listbox-button-${o}`,disabled:u=a.disabled||!1,autoFocus:c=!1,...d}=e,f=oU(r,rG(),s.actions.setButtonElement),p=oG(),[m,h,g]=qU(s,(e=>[e.listboxState,e.buttonElement,e.optionsElement]));CK(m===GG.Open,{trigger:h,action:t.useCallback((e=>{if(null!=h&&h.contains(e.target))return yK.Ignore;let t=e.target.closest('[role="option"]:not([data-disabled])');return YW(t)?yK.Select(t):null!=g&&g.contains(e.target)?yK.Ignore:yK.Close}),[h,g]),close:s.actions.closeListbox,select:s.actions.selectActiveOption});let v=xW((e=>{switch(e.key){case lU.Enter:!function(e){var t,n;let r=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(r){for(let t of r.elements)if(t!==e&&("INPUT"===t.tagName&&"submit"===t.type||"BUTTON"===t.tagName&&"submit"===t.type||"INPUT"===t.nodeName&&"image"===t.type))return void t.click();null==(n=r.requestSubmit)||n.call(r)}}(e.currentTarget);break;case lU.Space:case lU.ArrowDown:e.preventDefault(),s.actions.openListbox({focus:a.value?gG.Nothing:gG.First});break;case lU.ArrowUp:e.preventDefault(),s.actions.openListbox({focus:a.value?gG.Nothing:gG.Last})}})),b=xW((e=>{if(e.key===lU.Space)e.preventDefault()})),w=xW((e=>{var t;if(0===e.button){if(nU(e.currentTarget))return e.preventDefault();s.state.listboxState===GG.Open?(n.flushSync((()=>s.actions.closeListbox())),null==(t=s.state.buttonElement)||t.focus({preventScroll:!0})):(e.preventDefault(),s.actions.openListbox({focus:gG.Nothing}))}})),y=xW((e=>e.preventDefault())),x=dU([l]),C=function(){var e,n;return null!=(n=null==(e=t.useContext(iU))?void 0:e.value)?n:void 0}(),{isFocusVisible:S,focusProps:k}=dW({autoFocus:c}),{isHovered:E,hoverProps:R}=cW({isDisabled:u}),{pressed:P,pressProps:N}=function({disabled:e=!1}={}){let n=t.useRef(null),[r,o]=t.useState(!1),i=bW(),a=xW((()=>{n.current=null,o(!1),i.dispose()})),s=xW((e=>{if(i.dispose(),null===n.current){n.current=e.currentTarget,o(!0);{let t=hW(e.currentTarget);i.addEventListener(t,"pointerup",a,!1),i.addEventListener(t,"pointermove",(e=>{if(n.current){let t=function(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}(e);o(function(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}(t,n.current.getBoundingClientRect()))}}),!1),i.addEventListener(t,"pointercancel",a,!1)}}}));return{pressed:r,pressProps:e?{}:{onPointerDown:s,onPointerUp:a,onClick:a}}}({disabled:u}),j=t.useMemo((()=>({open:m===GG.Open,active:P||m===GG.Open,disabled:u,invalid:a.invalid,value:a.value,hover:E,focus:S,autofocus:c})),[m,a.value,u,E,S,P,a.invalid,c]),M=qU(s,(e=>e.listboxState===GG.Open)),A=IW(p(),{ref:f,id:l,type:SK(e,h),"aria-haspopup":"listbox","aria-controls":null==g?void 0:g.id,"aria-expanded":M,"aria-labelledby":x,"aria-describedby":C,disabled:u||void 0,autoFocus:c,onKeyDown:v,onKeyUp:b,onKeyPress:y,onPointerDown:w},k,R,N);return NW()({ourProps:A,theirProps:d,slot:j,defaultTag:"button",name:"Listbox.Button"})})),dq=mU,fq=TW((function(e,r){let o=t.useId(),{id:i=`headlessui-listbox-options-${o}`,anchor:a,portal:s=!1,modal:l=!0,transition:u=!1,...c}=e,d=function(e){return t.useMemo((()=>e?"string"==typeof e?{to:e}:e:null),[e])}(a),[f,p]=t.useState(null);d&&(s=!0);let m=oq("Listbox.Options"),h=tq("Listbox.Options"),[g,v,b,w]=qU(h,(e=>[e.listboxState,e.buttonElement,e.optionsElement,e.__demoMode])),y=bK(v),x=bK(b),C=mG(),[S,k]=LK(u,f,null!==C?(C&pG.Open)===pG.Open:g===GG.Open);!function(e,n,r){let o=yW((e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&r()}));t.useEffect((()=>{if(!e)return;let t=null===n?null:YW(n)?n:n.current;if(!t)return;let r=vW();if("undefined"!=typeof ResizeObserver){let e=new ResizeObserver((()=>o.current(t)));e.observe(t),r.add((()=>e.disconnect()))}if("undefined"!=typeof IntersectionObserver){let e=new IntersectionObserver((()=>o.current(t)));e.observe(t),r.add((()=>e.disconnect()))}return()=>r.dispose()}),[n,o,e])}(S,v,h.actions.closeListbox),function(e,t,n=(()=>[document.body])){NK(YU(e,"scroll-lock"),t,(e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}}))}(!w&&(l&&g===GG.Open),x),function(e,{allowed:t,disallowed:n}={}){let r=YU(e,"inert-others");wW((()=>{var e,o;if(!r)return;let i=vW();for(let t of null!=(e=null==n?void 0:n())?e:[])t&&i.add(JU(t));let a=null!=(o=null==t?void 0:t())?o:[];for(let e of a){if(!e)continue;let t=hW(e);if(!t)continue;let n=e.parentElement;for(;n&&n!==t.body;){for(let e of n.children)a.some((t=>e.contains(t)))||i.add(JU(e));n=n.parentElement}}return i.dispose}),[r,t,n])}(!w&&(l&&g===GG.Open),{allowed:t.useCallback((()=>[v,b]),[v,b])});let E=!function(e,n){let r=t.useRef({left:0,top:0});if(wW((()=>{if(!n)return;let e=n.getBoundingClientRect();e&&(r.current=e)}),[e,n]),null==n||!e||n===document.activeElement)return!1;let o=n.getBoundingClientRect();return o.top!==r.current.top||o.left!==r.current.left}(g!==GG.Open,v)&&S,R=function(e,n){let[r,o]=t.useState(n);return!e&&r!==n&&o(n),e?r:n}(S&&g===GG.Closed,m.value),P=xW((e=>m.compare(R,e))),N=qU(h,(e=>{var t;if(null==d||null==(t=null==d?void 0:d.to)||!t.includes("selection"))return null;let n=e.options.findIndex((e=>P(e.dataRef.current.value)));return-1===n&&(n=0),n})),j=(()=>{if(null==d)return;if(null===N)return{...d,inner:void 0};let e=Array.from(m.listRef.current.values());return{...d,inner:{listRef:{current:e},index:N}}})(),[M,A]=aG(j),I=iG(),T=oU(r,d?M:null,h.actions.setOptionsElement,p),O=bW();t.useEffect((()=>{var e;let t=b;t&&g===GG.Open&&t!==(null==(e=hW(t))?void 0:e.activeElement)&&(null==t||t.focus({preventScroll:!0}))}),[g,b]);let L=xW((e=>{var t,r;switch(O.dispose(),e.key){case lU.Space:if(""!==h.state.searchQuery)return e.preventDefault(),e.stopPropagation(),h.actions.search(e.key);case lU.Enter:if(e.preventDefault(),e.stopPropagation(),null!==h.state.activeOptionIndex){let{dataRef:e}=h.state.options[h.state.activeOptionIndex];h.actions.onChange(e.current.value)}m.mode===qG.Single&&(n.flushSync((()=>h.actions.closeListbox())),null==(t=h.state.buttonElement)||t.focus({preventScroll:!0}));break;case EW(m.orientation,{vertical:lU.ArrowDown,horizontal:lU.ArrowRight}):return e.preventDefault(),e.stopPropagation(),h.actions.goToOption({focus:gG.Next});case EW(m.orientation,{vertical:lU.ArrowUp,horizontal:lU.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),h.actions.goToOption({focus:gG.Previous});case lU.Home:case lU.PageUp:return e.preventDefault(),e.stopPropagation(),h.actions.goToOption({focus:gG.First});case lU.End:case lU.PageDown:return e.preventDefault(),e.stopPropagation(),h.actions.goToOption({focus:gG.Last});case lU.Escape:return e.preventDefault(),e.stopPropagation(),n.flushSync((()=>h.actions.closeListbox())),void(null==(r=h.state.buttonElement)||r.focus({preventScroll:!0}));case lU.Tab:e.preventDefault(),e.stopPropagation(),n.flushSync((()=>h.actions.closeListbox())),fK(h.state.buttonElement,e.shiftKey?rK.Previous:rK.Next);break;default:1===e.key.length&&(h.actions.search(e.key),O.setTimeout((()=>h.actions.clearSearch()),350))}})),D=qU(h,(e=>{var t;return null==(t=e.buttonElement)?void 0:t.id})),F=t.useMemo((()=>({open:g===GG.Open})),[g]),_=IW(d?I():{},{id:i,ref:T,"aria-activedescendant":qU(h,h.selectors.activeDescendantId),"aria-multiselectable":m.mode===qG.Multi||void 0,"aria-labelledby":D,"aria-orientation":m.orientation,onKeyDown:L,role:"listbox",tabIndex:g===GG.Open?0:void 0,style:{...c.style,...A,"--button-width":gU(v,!0).width},...OK(k)}),V=NW(),z=t.useMemo((()=>m.mode===qG.Multi?m:{...m,isSelected:P}),[m,P]);return t.createElement(jG,{enabled:!!s&&(e.static||S),ownerDocument:y},t.createElement(rq.Provider,{value:z},V({ourProps:_,theirProps:c,slot:F,defaultTag:"div",features:sq,visible:E,name:"Listbox.Options"})))})),pq=TW((function(e,r){let o=t.useId(),{id:i=`headlessui-listbox-option-${o}`,disabled:a=!1,value:s,...l}=e,u=!0===t.useContext(aq),c=oq("Listbox.Option"),d=tq("Listbox.Option"),f=qU(d,(e=>d.selectors.isActive(e,i))),p=c.isSelected(s),m=t.useRef(null),h=WG(m),g=yW({disabled:a,value:s,domRef:m,get textValue(){return h()}}),v=oU(r,m,(e=>{e?c.listRef.current.set(i,e):c.listRef.current.delete(i)})),b=qU(d,(e=>d.selectors.shouldScrollIntoView(e,i)));wW((()=>{if(b)return vW().requestAnimationFrame((()=>{var e,t;null==(t=null==(e=m.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}))}),[b,m]),wW((()=>{if(!u)return d.actions.registerOption(i,g),()=>d.actions.unregisterOption(i)}),[g,i,u]);let w=xW((e=>{var t;if(a)return e.preventDefault();d.actions.onChange(s),c.mode===qG.Single&&(n.flushSync((()=>d.actions.closeListbox())),null==(t=d.state.buttonElement)||t.focus({preventScroll:!0}))})),y=xW((()=>{if(a)return d.actions.goToOption({focus:gG.Nothing});d.actions.goToOption({focus:gG.Specific,id:i})})),x=MK(),C=xW((e=>{x.update(e),!a&&(f||d.actions.goToOption({focus:gG.Specific,id:i},XG.Pointer))})),S=xW((e=>{x.wasMoved(e)&&(a||f||d.actions.goToOption({focus:gG.Specific,id:i},XG.Pointer))})),k=xW((e=>{x.wasMoved(e)&&(a||f&&d.actions.goToOption({focus:gG.Nothing}))})),E=t.useMemo((()=>({active:f,focus:f,selected:p,disabled:a,selectedOption:p&&u})),[f,p,a,u]),R=u?{}:{id:i,ref:v,role:"option",tabIndex:!0===a?void 0:-1,"aria-disabled":!0===a||void 0,"aria-selected":p,disabled:void 0,onClick:w,onFocus:y,onPointerEnter:C,onMouseEnter:C,onPointerMove:S,onMouseMove:S,onPointerLeave:k,onMouseLeave:k},P=NW();return!p&&u?null:P({ourProps:R,theirProps:l,slot:E,defaultTag:"div",name:"Listbox.Option"})})),mq=TW((function(e,n){let{options:r,placeholder:o,...i}=e,a={ref:oU(n)},s=oq("ListboxSelectedOption"),l=t.useMemo((()=>({})),[]),u=void 0===s.value||null===s.value||s.mode===qG.Multi&&Array.isArray(s.value)&&0===s.value.length,c=NW();return t.createElement(aq.Provider,{value:!0},c({ourProps:a,theirProps:{...i,children:t.createElement(t.Fragment,null,o&&u?o:r)},slot:l,defaultTag:lq,name:"ListboxSelectedOption"}))})),hq=Object.assign(uq,{Button:cq,Label:dq,Options:fq,Option:pq,SelectedOption:mq});var gq=t.memo((({label:n="Value",ariaLabel:r="Value",min:o=0,max:i=100,step:a=1,stepClick:s=1,initialValue:l=0,showButtons:u=!0,onChange:c,disabled:d=!1})=>{const f=Cw(),[p,m]=t.useState(l),[h,g]=t.useState(!1),v=t.useRef(null),b=`model-parameter-${r.toLowerCase().replace(/\s+/g,"-")}`,w=n&&n.startsWith("com_")?f(n):n,y=(e=>{const t=(""+e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0})(a),x=t.useCallback((e=>{const t=Math.min(Math.max(e,o),i),n=Object.is(t,-0)?0:t;m(n),c?.(n)}),[o,i,c]),C=t.useCallback((e=>{x(parseFloat(e.target.value))}),[x]),S=t.useCallback((()=>{x(p+s)}),[p,s,x]),k=t.useCallback((()=>{x(p-s)}),[p,s,x]),E=t.useCallback((e=>{"ArrowRight"===e.key||"ArrowUp"===e.key?(e.preventDefault(),S()):"ArrowLeft"!==e.key&&"ArrowDown"!==e.key||(e.preventDefault(),k())}),[S,k]);return t.useEffect((()=>{const e=v.current;if(e){const t=(p-o)/(i-o)*100;e.style.backgroundSize=`${t}% 100%`}}),[p,o,i]),e.jsxs("div",{className:"w-full",children:[e.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[e.jsx("label",{htmlFor:b,className:"text-sm font-medium "+(d?"text-gray-400 dark:text-gray-400":""),children:w}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("output",{htmlFor:b,className:"select-none text-sm font-medium "+(d?"text-gray-400 dark:text-gray-400":""),"aria-live":"polite",children:p.toFixed(y).replace("-0.00","0.00")}),u&&e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("button",{type:"button",onClick:k,className:"rounded-md p-1 transition-colors "+(d?"cursor-not-allowed text-gray-400 dark:text-gray-400":"hover:bg-gray-200 dark:hover:bg-gray-700"),"aria-label":`Decrease ${n}`,disabled:d,children:e.jsx(xp,{size:16})}),e.jsx("button",{type:"button",onClick:S,className:"rounded-md p-1 transition-colors "+(d?"cursor-not-allowed text-gray-400 dark:text-gray-400":"hover:bg-gray-200 dark:hover:bg-gray-700"),"aria-label":`Increase ${n}`,disabled:d,children:e.jsx(kp,{size:16})})]})]})]}),e.jsxs("div",{className:"relative w-full",children:[e.jsx("input",{ref:v,type:"range",id:b,min:o,max:i,step:a,value:p,onChange:C,onKeyDown:E,onMouseEnter:()=>g(!0),onMouseLeave:()=>g(!1),className:"slider-thumb h-2 w-full appearance-none rounded-lg bg-gradient-to-r from-gray-500 to-gray-500 bg-no-repeat focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 "+(d?"cursor-not-allowed opacity-50":"cursor-pointer"),tabIndex:0,style:{backgroundSize:"50% 100%",backgroundPosition:"left"},"aria-valuemin":o,"aria-valuemax":i,"aria-valuenow":p,"aria-valuetext":`${p.toFixed(y).replace("-0.00","0.00")}`,disabled:d}),h?e.jsxs("div",{className:"trab mt-1 flex justify-between",children:[e.jsx("span",{className:"text-xs text-gray-500",children:o}),e.jsx("span",{className:"text-xs text-gray-500",children:i})]}):e.jsx("div",{className:"mt-1",style:{height:"1rem"}})]})]})})),vq=t.createContext(null);function bq(){let e=0;return{run:t=>{e||(e=requestAnimationFrame((()=>{e=0,t()})))},cancel:()=>{cancelAnimationFrame(e),e=0}}}function wq(e){return"number"==typeof e?e:e.length}function yq(e){return e&&"object"==typeof e?e:{value:e}}function xq(e,t,n){var r;cn(n,"CollectionRenderer must be given an `id` prop.");const o=`${n}/${t}`;return null!=(r=yq(e).id)?r:o}function Cq(e,t){if("number"==typeof e)return t>=e?null:{};const n=e[t];return n?"object"==typeof n?n:{value:n}:null}function Sq(e,t,n){var r,o,i,a,s;const l=yq(e),u=(t="horizontal"===l.orientation||t)?"width":"height",c=l.style;if(c){const e=c[u];if("number"==typeof e)return e}const d=l.items;if(null==d?void 0:d.length){const e=!l.orientation||t&&"horizontal"===l.orientation||!t&&"vertical"===l.orientation,n=null!=(o=null!=(r=l.paddingStart)?r:l.padding)?o:0,u=null!=(a=null!=(i=l.paddingEnd)?i:l.padding)?a:0,c=e?n+u:0,f=(null!=(s=l.gap)?s:0)*(d.length-1)+c;if(e&&l.itemSize)return f+l.itemSize*d.length;const p=d.reduce(((e,n)=>e+Sq(n,t)),f);if(p!==f)return p}const f=!1!==n?l.element||n:null;return(null==f?void 0:f.isConnected)?f.getBoundingClientRect()[u]:0}function kq(e,t){return"scrollX"in e?t?e.scrollX:e.scrollY:t?e.scrollLeft:e.scrollTop}function Eq(e){const{defaultView:t,documentElement:n}=e.ownerDocument;return e===n?t:e}function Rq(e,t,n){const r=kq(t,n),o=function(e,t,n){const r=yn(e),o=null==r?void 0:r.document.documentElement,i=e.getBoundingClientRect(),a=n?i.left:i.top;if(t===o)return kq(r,n)+a;const s=t.getBoundingClientRect();return a-(n?s.left:s.top)+kq(t,n)}(e,t,n),i=r-o;return{start:i,end:i+(n?t.clientWidth:t.clientHeight)}}function Pq(e){var t;const n=wq(e.items);let r,o=e.paddingStart;const i=function(e){const t=wq(e.items);let n=0,r=e.estimatedItemSize;const o=e=>{const t=n;n+=1,r=(r*t+e)/n};for(let n=0;n<t;n+=1){const t=Cq(e.items,n),r=xq(t,n,e.baseId),i=e.data.get(r),a=e.elements.get(r),s=Sq(t,e.horizontal,a);s?o(s):(null==i?void 0:i.rendered)&&o(i.end-i.start)}return r}(e);for(let a=0;a<n;a+=1){const n=Cq(e.items,a),s=xq(n,a,e.baseId),l=e.data.get(s),u=null!=(t=null==l?void 0:l.rendered)&&t,c=(t,n=u)=>{o=o?o+e.gap:o;const i=o+t;rn(l,{index:a,rendered:n,start:o,end:i})||(r||(r=new Map(e.data)),r.set(s,{index:a,rendered:n,start:o,end:i})),o=i},d=Sq(n,e.horizontal,e.elements.get(s));d?c(d,!0):(null==l?void 0:l.rendered)?c(l.end-l.start,!0):c(i)}return r}function Nq(r){var o,i,a=r,{store:s,items:l,initialItems:u=0,gap:c=0,itemSize:d,estimatedItemSize:f=40,overscan:p,orientation:m,padding:h=0,paddingStart:g=h,paddingEnd:v=h,persistentIndices:b,renderOnScroll:w=!0,renderOnResize:y=!!w,children:x}=a,C=Ut(a,["store","items","initialItems","gap","itemSize","estimatedItemSize","overscan","orientation","padding","paddingStart","paddingEnd","persistentIndices","renderOnScroll","renderOnResize","children"]);const S=Lr(),k=Co(s=s||S,(e=>null!=l?l:null==e?void 0:e.items));cn(null!=k,!1);let E=t.useContext(vq);s&&(null==E?void 0:E.store)!==s&&(E=null);const R=null==E?void 0:E.childrenData,P=null!=(o=null!=m?m:null==E?void 0:E.orientation)?o:"vertical",N=null!=(i=null!=p?p:null==E?void 0:E.overscan)?i:1,j=t.useRef(null),M=tr(C.id),A="horizontal"===P,I=t.useMemo((()=>new Map),[]),[T,O]=ir(),[L,D]=t.useState((()=>{if(!u)return[];const e=wq(k),t=Math.min(e,Math.abs(u));return Array.from({length:t},((t,n)=>u<0?e-n-1:n))})),F=t.useMemo((()=>{if(!b)return L;const e=L.slice();for(const t of b)t<0||e.includes(t)||e.push(t);return e.sort(((e,t)=>e-t)),rn(L,e)?L:e}),[L,b]),[_,V]=t.useState((()=>{if(!M)return new Map;const e=(null==R?void 0:R.get(M))||new Map;if(null!=d)return e;if(!k)return e;return Pq({baseId:M,items:k,data:e,gap:c,elements:I,horizontal:A,paddingStart:g,estimatedItemSize:f})||e})),z=t.useMemo((()=>function(e){const t=wq(e.items),n=e.paddingStart+e.paddingEnd;if(!t)return n;const r=t-1,o=r*e.gap;if(null!=e.itemSize)return t*e.itemSize+o+n;const i=t*e.estimatedItemSize+o+n;if(!e.baseId)return i;const a=xq(Cq(e.items,r),r,e.baseId),s=e.data.get(a);if(null==s?void 0:s.end)return s.end+e.paddingEnd;if(!Array.isArray(e.items))return i;const l=e.items.reduce(((t,n)=>t+Sq(n,e.horizontal,!1)),0);return l?l+o+n:i}({baseId:M,items:k,data:_,gap:c,horizontal:A,itemSize:d,estimatedItemSize:f,paddingStart:g,paddingEnd:v})),[M,k,_,c,A,d,f,g,v]);t.useEffect((()=>{M&&(null==R||R.set(M,_))}),[M,R,_]),t.useEffect((()=>{if(null!=d)return;if(!M)return;if(!k)return;const e=Pq({baseId:M,items:k,data:_,gap:c,elements:I,horizontal:A,paddingStart:g,estimatedItemSize:f});e&&V(e)}),[T,d,M,k,_,c,I,A,g,f]);const H=function(e){const[n,r]=t.useState(null);return t.useEffect((()=>{const t=null==e?void 0:e.current;if(!t)return;const n=In(t);n&&r(n)}),[e]),n}(k?j:null),B=t.useRef({start:0,end:0}),$=t.useCallback((()=>{const e=B.current;if(!k)return;if(!M)return;if(!e.end)return;if(!_.size&&!d)return;const t=wq(k),n=(e,t="start")=>{var n;if(d){const n=d*e+c*e+g;return"start"===t?n:n+d}const r=xq(Cq(k,e),e,M),o=_.get(r);return null!=(n=null==o?void 0:o[t])?n:0},r=function(e,t,n){let r=0,o=wq(e)-1;for(;r<=o;){const e=(r+o)/2|0,i=n(e);if(i===t)return e;i<t?r=e+1:o=e-1}return r>0?r-1:0}(k,e.start,n);let o=r;for(;o<t&&n(o)<e.end;)o+=1;const i=o-r?N:0,a=Math.max(r-i,0),s=Math.min(o+i,t),l=Array.from({length:s-a},((e,t)=>t+a));D((e=>rn(e,l)?e:l))}),[T,k,M,_,d,c,g,N]);t.useEffect($,[$]);const W=Qn($);t.useEffect((()=>{const e=j.current;e&&H&&(B.current=Rq(e,H,A),W())}),[H,A,W]);const U=!!w,K=ar(w);t.useEffect((()=>{if(!U)return;const e=j.current;if(!e)return;if(!H)return;const t=Eq(H);if(!t)return;const n=bq(),r=t=>{n.run((()=>{K(t)&&(B.current=Rq(e,H,A),W())}))};return t.addEventListener("scroll",r,{passive:!0}),()=>{n.cancel(),t.removeEventListener("scroll",r)}}),[U,H,K,A,W]);const G=!!y,q=ar(y);t.useEffect((()=>{if(!G)return;const e=j.current;if(!e)return;if(!H)return;const t=Eq(H);if(!t)return;const n=bq();if(t===H){if("function"!=typeof ResizeObserver)return;let t=!0;const r=new ResizeObserver((()=>{t?t=!1:n.run((()=>{q(H)&&(B.current=Rq(e,H,A),W())}))}));return r.observe(H),()=>{n.cancel(),r.disconnect()}}const r=()=>{n.run((()=>{q(H)&&(B.current=Rq(e,H,A),W())}))};return t.addEventListener("resize",r,{passive:!0}),()=>{n.cancel(),t.removeEventListener("resize",r)}}),[G,H,q,A,W]),t.useEffect((()=>{if("function"!=typeof IntersectionObserver)return;const e=j.current;if(!e)return;if(!H)return;const t=Eq(H);if(!t)return;const n=new IntersectionObserver((()=>{B.current=Rq(e,H,A),W()}),{root:H===t?H:null});return n.observe(e),()=>{n.disconnect()}}),[H,W]);const X=t.useMemo((()=>{if("function"==typeof ResizeObserver)return new ResizeObserver((()=>{n.flushSync(O)}))}),[O]),Y=t.useCallback((e=>{e&&(d||(O(),I.set(e.id,e),null==X||X.observe(e)))}),[d,I,O,X]),Z=t.useCallback(((e,t)=>{var n,r;const o=xq(e,t,M),i=d?g+d*t+c*t:null!=(r=null==(n=_.get(o))?void 0:n.start)?r:0,a={id:o,ref:Y,index:t,style:{position:"absolute",left:A?i:0,top:A?0:i}};if(d&&(a.style[A?"width":"height"]=d),null==e)return a;const s=yq(e);return Wt($t($t({},s),a),{style:$t($t({},s.style),a.style)})}),[M,_,d,g,c,A,Y]),Q=t.useMemo((()=>F.map((e=>{if(e<0)return;const t=Cq(k,e);return t?Z(t,e):void 0})).filter((e=>null!=e))),[k,F,Z]),J=null==Q?void 0:Q.map((e=>null==x?void 0:x(e))),ee=C.style,te=A?"width":"height",ne=t.useMemo((()=>$t({flex:"none",position:"relative",[te]:z},ee)),[ee,te,z]),re=t.useMemo((()=>new Map),[]),oe=t.useMemo((()=>({store:s,orientation:P,overscan:N,childrenData:re})),[s,P,N,re]);return C=sr(C,(t=>e.jsx(vq.Provider,{value:oe,children:t})),[oe]),C=Wt($t({id:M},C),{style:ne,ref:er(j,C.ref)}),Wt($t({},C),{children:J})}gr((function(e){return br("div",Nq(e))}));var jq=xq;function Mq(e){return e&&"object"==typeof e?e:{value:e}}function Aq(e){return e?"number"==typeof e?Array.from({length:e},((e,t)=>t+1)):e.reduce(((e,t,n)=>{var r,o;const i=Mq(t);if(i.items,!i.items)return e[n]=n+1,e;const a=null!=(r=e[n-1])?r:0,s=null!=(o=Aq(i.items)[i.items.length-1])?o:0;return e[n]=a+s,e}),[]):[0]}function Iq(e,t=1){for(let n=t>0?0:e.length-1;n>=0&&n<e.length;n+=t){const r=Mq(e[n]);if(r.items&&-1!==Iq(r.items,t))return n;if(!r.disabled)return n}return-1}function Tq(e,t,n){return e.findIndex(((e,r)=>{var o;const i=jq(e,r,n);if(i===t)return!0;const a=Mq(e);if(null==(o=a.items)?void 0:o.length)return-1!==Tq(a.items,t,i);const s=t.split("/");return 1!==s.length&&s.some((e=>i===e))}))}function Oq(e){var n=e,{store:r,orientation:o,persistentIndices:i,children:a,"aria-setsize":s,"aria-posinset":l=1}=n,u=Ut(n,["store","orientation","persistentIndices","children","aria-setsize","aria-posinset"]);const c=Fr(),d=Co(r=r||c,(e=>(null!=o?o:"both"===(null==e?void 0:e.orientation))?"vertical":null==e?void 0:e.orientation)),f=Co(r,(e=>{var t;return e?"mounted"in e&&!e.mounted?0:null!=(t=u.items)?t:e.items:u.items})),p=tr(u.id),m=t.useMemo((()=>Aq(f)),[f]),h=t.useMemo((()=>{var e;return null!=(e=null!=s?s:m[m.length-1])?e:0}),[s,m]),g=t.useMemo((()=>f?"number"==typeof f?0:f.length?Iq(f):-1:-1),[f]),v=t.useMemo((()=>f?"number"==typeof f?f-1:f.length?function(e){return Iq(e,-1)}(f):-1:-1),[f]),b=Co(r,"activeId"),w=t.useMemo((()=>p&&f?null==b||"number"==typeof f?-1:f.length?Tq(f,b,p):-1:-1),[p,f,b]),y=t.useMemo((()=>{const e=[g,w,v].filter((e=>e>=0));return i?[...i,...e]:e}),[g,w,v,i]);return Nq(Wt($t({id:p,store:r,orientation:d,persistentIndices:y},u),{children:e=>{var t;const n=Wt($t({},e),{"aria-setsize":h,"aria-posinset":l+(null!=(t=m[e.index-1])?t:0)});return null==a?void 0:a(n)}}))}gr((function(e){return br("div",Oq(e))}));function Lq(e){return e&&"object"==typeof e?e:{value:`${e}`}}function Dq(e,t){var n;const r=Po(t),o=[];for(const[i,a]of e.entries()){if(o.length===r.length)break;const e=Lq(a);if(null!=e.value&&r.includes(e.value))o.push(i);else if(null==(n=e.items)?void 0:n.length){Dq(e.items,t).length&&o.push(i)}}return o}function Fq(e){var n=e,{store:r,orientation:o,persistentIndices:i,items:a,value:s}=n,l=Ut(n,["store","orientation","persistentIndices","items","value"]);const u=Wr(),c=Co(r=r||u,(e=>e?e.mounted?null!=a?a:e.items:0:a)),d=Co(r,(e=>null!=s?s:null==e?void 0:e.value)),f=t.useMemo((()=>c?null==d||"number"==typeof c?[]:c.length?Dq(c,d):[]:[]),[c,d]),p=t.useMemo((()=>i?[...i,...f]:f),[f,i]);return Oq($t({store:r,items:c,persistentIndices:p},l))}var _q=gr((function(e){return br("div",Fq(e))}));var Vq=t.memo((function({selectedValue:n,displayValue:r,items:o,setValue:i,ariaLabel:a,searchPlaceholder:s,selectPlaceholder:l,containerClassName:u,isCollapsed:c,SelectIcon:d,showCarat:f,className:p,disabled:m,iconClassName:h,iconSide:g="left",selectId:v}){const[b,w]=t.useState(""),y=t.useRef(null),[x,C]=t.useState(null),S=e=>({id:`item-${e.value}`,value:e.value,label:e.label,icon:e.icon}),k=ic({defaultItems:o.map(S),resetValueOnHide:!0,value:b,setValue:w}),E=ou({combobox:k,defaultItems:o.map(S),value:n,setValue:i}),R=t.useMemo((()=>{const e=mw(o,b,{keys:["value","label"],baseSort:(e,t)=>e.index<t.index?-1:1});return e.map(S)}),[b,o]);t.useEffect((()=>{y.current&&!c&&C(y.current.offsetWidth)}),[c]);const P=jt("flex h-5 w-5 items-center justify-center overflow-hidden rounded-full",h),N=jt("mr-2 flex h-5 w-5 items-center justify-center overflow-hidden rounded-full",h);return e.jsxs("div",{className:jt("flex w-full items-center justify-center px-1",u),children:[e.jsx(Pu,{store:E,className:"sr-only",children:a}),e.jsxs(mu,{ref:y,store:E,id:v,disabled:m,className:jt("flex items-center justify-center gap-2 rounded-full bg-surface-secondary","text-text-primary hover:bg-surface-tertiary","border border-border-light",c?"h-10 w-10":"h-10 w-full rounded-xl px-3 py-2 text-sm",p),children:[null!=d&&"left"===g&&e.jsx("div",{className:P,children:d}),!c&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"flex-grow truncate text-left",children:null!=r?r||l:n||l}),null!=d&&"right"===g&&e.jsx("div",{className:P,children:d}),f&&e.jsx(hp,{className:"h-4 w-4 text-text-secondary"})]})]}),e.jsxs(Au,{store:E,gutter:4,portal:!0,className:jt("animate-popover z-50 overflow-hidden rounded-xl border border-border-light bg-surface-secondary shadow-lg"),style:{width:c?"300px":x??"300px"},children:[e.jsx("div",{className:"py-1.5",children:e.jsxs("div",{className:"relative",children:[e.jsx(Ep,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-primary"}),e.jsx(uc,{store:k,autoSelect:!0,placeholder:s,className:"w-full rounded-md bg-surface-secondary py-2 pl-9 pr-3 text-sm text-text-primary focus:outline-none"})]})}),e.jsx("div",{className:"max-h-[300px] overflow-auto",children:e.jsx(yc,{store:k,children:e.jsx(_q,{store:E,items:R,itemSize:36,overscan:5,children:({value:t,icon:n,label:r,...o})=>e.jsxs(gc,{...o,className:jt("flex w-full cursor-pointer items-center px-3 text-sm","text-text-primary hover:bg-surface-tertiary","data-[active-item]:bg-surface-tertiary"),render:e.jsx(Eu,{value:t}),children:[null!=n&&"left"===g&&e.jsx("div",{className:N,children:n}),e.jsx("span",{className:"flex-grow truncate text-left",children:r}),null!=n&&"right"===g&&e.jsx("div",{className:N,children:n})]},o.id)})})})]})]})}));const zq=t.forwardRef(((t,n)=>{const r=Cw(),{title:o,main:i,buttons:a,selection:s,className:l,leftButtons:u,description:c="",mainClassName:d,headerClassName:f,footerClassName:p,showCloseButton:m,overlayClassName:h,showCancelButton:g=!0}=t,{selectHandler:v,selectClasses:b,selectText:w,isLoading:y}=s||{};return e.jsxs($x,{overlayClassName:h,showCloseButton:m,ref:n,className:jt("w-11/12 border-none bg-background text-foreground",l??""),onClick:e=>e.stopPropagation(),children:[e.jsxs(Wx,{className:jt(f??""),children:[e.jsx(Kx,{children:o}),c&&e.jsx(Gx,{className:"items-center justify-center",children:c})]}),e.jsx("div",{className:jt("px-0 py-2",d),children:null!=i?i:null}),e.jsxs(Ux,{className:p,children:[e.jsx("div",{children:null!=u?e.jsx("div",{className:"mt-3 flex h-auto gap-3 max-sm:w-full max-sm:flex-col sm:mt-0 sm:flex-row",children:u}):null}),e.jsxs("div",{className:"flex h-auto gap-3 max-sm:w-full max-sm:flex-col sm:flex-row",children:[g&&e.jsx(Hx,{asChild:!0,children:e.jsx(_p,{variant:"outline",children:r("com_ui_cancel")})}),null!=a?a:null,s?e.jsx(Hx,{onClick:v,disabled:y,className:`${b??"bg-gray-800 text-white transition-colors hover:bg-gray-700 disabled:cursor-not-allowed disabled:opacity-50 dark:bg-gray-200 dark:text-gray-800 dark:hover:bg-gray-200"} flex h-10 items-center justify-center rounded-lg border-none px-4 py-2 text-sm disabled:opacity-80 max-sm:order-first max-sm:w-full sm:order-none`,children:!0===y?e.jsx(u$,{className:"size-4 text-white"}):w}):null]})]})]})})),Hq=a.forwardRef((({className:t,options:n,onSelect:r,...o},i)=>{const[s,l]=a.useState(!1),[u,c]=a.useState(o.value||""),[d,f]=a.useState(-1),p=a.useRef(null),m=e=>{c(e),l(!1),f(-1),r&&r(e),o.onChange&&o.onChange({target:{value:e}})};return a.useEffect((()=>{const e=e=>{p.current&&!p.current.contains(e.target)&&(l(!1),f(-1))};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[]),e.jsxs("div",{className:"relative",ref:p,children:[e.jsxs("div",{className:"relative",children:[e.jsx(yy,{...o,value:u,onChange:e=>{c(e.target.value),o.onChange&&o.onChange(e)},onKeyDown:e=>{switch(e.key){case"ArrowDown":e.preventDefault(),s?f((e=>e<n.length-1?e+1:e)):l(!0);break;case"ArrowUp":e.preventDefault(),f((e=>e>0?e-1:0));break;case"Enter":e.preventDefault(),s&&-1!==d&&m(n[d]),l(!1);break;case"Escape":l(!1),f(-1)}},"aria-haspopup":"listbox","aria-controls":"dropdown-list",className:jt("bg-surface-secondary",t??""),ref:i}),e.jsx("button",{type:"button",className:"text-tertiary absolute inset-y-0 right-0 flex items-center rounded-md px-2 hover:text-secondary focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring-primary",onClick:()=>l(!s),"aria-label":s?"Close dropdown":"Open dropdown",children:e.jsx("svg",{className:"h-5 w-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})})]}),s&&e.jsx("ul",{id:"dropdown-list",role:"listbox",className:"absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md border border-border-medium bg-surface-secondary shadow-lg focus:ring-1 focus:ring-inset focus:ring-ring-primary",children:n.map(((t,n)=>e.jsx("li",{role:"option","aria-selected":n===d,className:jt("cursor-pointer rounded-md px-3 py-2","focus:bg-surface-tertiary focus:outline-none focus:ring-1 focus:ring-inset focus:ring-ring-primary",n===d?"bg-surface-active text-primary":"text-secondary hover:bg-surface-tertiary"),onClick:()=>m(t),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),m(t))},tabIndex:0,children:t},n)))})]})}));Hq.displayName="InputWithDropdown";const Bq=t.createContext({showToast:()=>({})});exports.Accordion=It,exports.AccordionContent=Lt,exports.AccordionItem=Tt,exports.AccordionTrigger=Ot,exports.AlertDialog=Uf,exports.AlertDialogAction=ep,exports.AlertDialogCancel=tp,exports.AlertDialogContent=Xf,exports.AlertDialogDescription=Jf,exports.AlertDialogFooter=Zf,exports.AlertDialogHeader=Yf,exports.AlertDialogTitle=Qf,exports.AlertDialogTrigger=Kf,exports.AnimatedSearchInput=s$,exports.AnimatedTabs=function({tabs:n,className:r="",tabListClassName:o="",tabClassName:i="",tabPanelClassName:a="",containerClassName:s="",tabListProps:l={},defaultSelectedId:u}){const c=n.map(((e,t)=>e.id||`tab-${t}`)),d=u||c[0],f=t.useRef(null);return t.useEffect((()=>{const e=f.current;if(!e)return;const t=()=>{const t=e.querySelector('[data-state="active"]');t&&(e.style.setProperty("--tab-left",`${t.offsetLeft}px`),e.style.setProperty("--tab-width",`${t.offsetWidth}px`))};t();const n=new MutationObserver(t);return n.observe(e,{attributes:!0,subtree:!0,attributeFilter:["data-state"]}),()=>n.disconnect()}),[n]),e.jsx("div",{className:`w-full ${r}`,children:e.jsxs(_i,{defaultSelectedId:d,children:[e.jsx(Bi,{ref:f,"aria-label":"Tabs",className:`animated-tab-list flex py-1 ${o}`,...l,children:n.map(((t,n)=>e.jsx(Sc,{id:c[n],disabled:t.disabled,className:i,"data-state":c[n]===d?"active":"inactive",children:t.label},c[n])))}),e.jsx("div",{className:jt("animated-panels relative flex w-full flex-col items-center overflow-hidden p-0",s),children:n.map(((t,n)=>e.jsx(kc,{id:`panel-${c[n]}`,tabId:c[n],className:a,children:t.content},`panel-${c[n]}`)))})]})})},exports.AnthropicIcon=function({size:t=25,className:n=""}){return e.jsxs("svg",{viewBox:"0 0 24 16",overflow:"visible",width:t,height:t,className:jt("fill-current text-black",n),children:[e.jsx("g",{style:{transform:"translateX(13px) rotateZ(0deg)",transformOrigin:"4.775px 7.73501px"},children:e.jsx("path",{shapeRendering:"geometricPrecision",fillOpacity:"1",d:" M0,0 C0,0 6.1677093505859375,15.470022201538086 6.1677093505859375,15.470022201538086 C6.1677093505859375,15.470022201538086 9.550004005432129,15.470022201538086 9.550004005432129,15.470022201538086 C9.550004005432129,15.470022201538086 3.382294178009033,0 3.382294178009033,0 C3.382294178009033,0 0,0 0,0 C0,0 0,0 0,0z"})}),e.jsx("g",{style:{transform:"none",transformOrigin:"7.935px 7.73501px"},opacity:"1",children:e.jsx("path",{shapeRendering:"geometricPrecision",fillOpacity:"1",d:" M5.824605464935303,9.348296165466309 C5.824605464935303,9.348296165466309 7.93500280380249,3.911694288253784 7.93500280380249,3.911694288253784 C7.93500280380249,3.911694288253784 10.045400619506836,9.348296165466309 10.045400619506836,9.348296165466309 C10.045400619506836,9.348296165466309 5.824605464935303,9.348296165466309 5.824605464935303,9.348296165466309 C5.824605464935303,9.348296165466309 5.824605464935303,9.348296165466309 5.824605464935303,9.348296165466309z M6.166755199432373,0 C6.166755199432373,0 0,15.470022201538086 0,15.470022201538086 C0,15.470022201538086 3.4480772018432617,15.470022201538086 3.4480772018432617,15.470022201538086 C3.4480772018432617,15.470022201538086 4.709278583526611,12.22130012512207 4.709278583526611,12.22130012512207 C4.709278583526611,12.22130012512207 11.16093635559082,12.22130012512207 11.16093635559082,12.22130012512207 C11.16093635559082,12.22130012512207 12.421928405761719,15.470022201538086 12.421928405761719,15.470022201538086 C12.421928405761719,15.470022201538086 15.87000560760498,15.470022201538086 15.87000560760498,15.470022201538086 C15.87000560760498,15.470022201538086 9.703250885009766,0 9.703250885009766,0 C9.703250885009766,0 6.166755199432373,0 6.166755199432373,0 C6.166755199432373,0 6.166755199432373,0 6.166755199432373,0z"})})]})},exports.AnthropicMinimalIcon=function(){return e.jsx("svg",{stroke:"currentColor",fill:"none",strokeWidth:"1",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"m17.304 3.5472h-3.6718l6.6959 16.906h3.6718zm-10.608 0-6.6959 16.906h3.7442l1.3693-3.5502h7.0052l1.3693 3.5502h3.7442l-6.6959-16.906zm-0.37114 10.216 2.2914-5.9413 2.2914 5.9413z"})})},exports.AppleIcon=function(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 814 1000",id:"apple",className:"h-6 w-6",children:e.jsx("path",{d:"M788.1 340.9c-5.8 4.5-108.2 62.2-108.2 190.5 0 148.4 130.3 200.9 134.2 202.2-.6 3.2-20.7 71.9-68.7 141.9-42.8 61.6-87.5 123.1-155.5 123.1s-85.5-39.5-164-39.5c-76.5 0-103.7 40.8-165.9 40.8s-105.6-57-155.5-127C46.7 790.7 0 663 0 541.8c0-194.4 126.4-297.5 250.8-297.5 66.1 0 121.2 43.4 162.7 43.4 39.5 0 101.1-46 176.3-46 28.5 0 130.9 2.6 198.3 99.2zm-234-181.5c31.1-36.9 53.1-88.1 53.1-139.3 0-7.1-.6-14.3-1.9-20.1-50.6 1.9-110.8 33.7-147.1 75.8-28.5 32.4-55.1 83.6-55.1 135.5 0 7.8 1.3 15.6 1.9 18.1 3.2.6 8.4 1.3 13.6 1.3 45.4 0 102.5-30.4 135.5-71.3z",fill:"currentColor"})})},exports.ArchiveIcon=function({className:t="icon-md"}){return e.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.62188 3.07918C3.87597 2.571 4.39537 2.25 4.96353 2.25H13.0365C13.6046 2.25 14.124 2.571 14.3781 3.07918L15.75 5.82295V13.5C15.75 14.7426 14.7426 15.75 13.5 15.75H4.5C3.25736 15.75 2.25 14.7426 2.25 13.5V5.82295L3.62188 3.07918ZM13.0365 3.75H4.96353L4.21353 5.25H13.7865L13.0365 3.75ZM14.25 6.75H3.75V13.5C3.75 13.9142 4.08579 14.25 4.5 14.25H13.5C13.9142 14.25 14.25 13.9142 14.25 13.5V6.75ZM6.75 9C6.75 8.58579 7.08579 8.25 7.5 8.25H10.5C10.9142 8.25 11.25 8.58579 11.25 9C11.25 9.41421 10.9142 9.75 10.5 9.75H7.5C7.08579 9.75 6.75 9.41421 6.75 9Z",fill:"currentColor"})})},exports.AssistantIcon=function({className:t="",size:n="1em"}){const r=n,o=n;return e.jsxs("svg",{width:o,height:r,viewBox:"0 0 24 24",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:jt("text-token-secondary h-2/3 w-2/3",t),xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"}),e.jsx("polyline",{points:"3.27 6.96 12 12.01 20.73 6.96"}),e.jsx("line",{x1:"12",y1:"22.08",x2:"12",y2:"12"})]})},exports.AttachmentIcon=function({className:t=""}){return e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 7C9 4.23858 11.2386 2 14 2C16.7614 2 19 4.23858 19 7V15C19 18.866 15.866 22 12 22C8.13401 22 5 18.866 5 15V9C5 8.44772 5.44772 8 6 8C6.55228 8 7 8.44772 7 9V15C7 17.7614 9.23858 20 12 20C14.7614 20 17 17.7614 17 15V7C17 5.34315 15.6569 4 14 4C12.3431 4 11 5.34315 11 7V15C11 15.5523 11.4477 16 12 16C12.5523 16 13 15.5523 13 15V9C13 8.44772 13.4477 8 14 8C14.5523 8 15 8.44772 15 9V15C15 16.6569 13.6569 18 12 18C10.3431 18 9 16.6569 9 15V7Z",fill:"currentColor"})})},exports.AzureMinimalIcon=function({size:t=25,className:n="h-4 w-4"}){const r=t,o=t;return e.jsxs("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:jt(n,""),width:o,height:r,xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"m8.0458 0.81981a1.1197 1.1197 0 0 0-1.0608 0.76184l-6.7912 20.123a1.1178 1.1178 0 0 0 1.0592 1.4751h5.4647a1.1197 1.1197 0 0 0 1.0608-0.7615l1.3528-4.0084-2.3684-2.2107a0.51536 0.51536 0 0 1 0.35193-0.8923h3.0639l1.8213-5.3966-2.8111-8.3294a1.1181 1.1181 0 0 0-1.0595-0.76049h-0.0836z"}),e.jsx("path",{d:"m7.1147 15.307a0.51536 0.51536 0 0 0-0.35193 0.8923l7.1552 6.6782a1.1248 1.1248 0 0 0 0.76724 0.30238h0.2417a1.1181 1.1181 0 0 0 1.0534-1.4755l-2.1591-6.3974z"}),e.jsx("path",{d:"m17.015 1.5807a1.1178 1.1178 0 0 0-1.0593-0.76049h-7.8258a1.1181 1.1181 0 0 1 1.0593 0.76049l6.7916 20.123a1.1181 1.1181 0 0 1-1.0593 1.4757h7.8261a1.1181 1.1181 0 0 0 1.059-1.4757z"})]})},exports.Badge=function({icon:t,label:n,id:r,isActive:o=!1,isEditing:i=!1,isDragging:a=!1,isAvailable:s=!0,isInChat:l=!1,onBadgeAction:u,onToggle:c,className:d,...f}){const p=i&&s,m="1"===r&&l;return e.jsxs(nT.button,{onClick:e=>{if(m)return e.preventDefault(),void e.stopPropagation();!i&&c&&(e.preventDefault(),e.stopPropagation(),c())},className:jt("group relative inline-flex items-center gap-1.5 rounded-full px-4 py-1.5","border border-border-medium text-sm font-medium transition-shadow md:w-full","size-9 p-2 md:p-3",o?"bg-surface-active shadow-md":"bg-surface-chat shadow-sm hover:bg-surface-hover hover:shadow-md","active:scale-95 active:shadow-inner",p&&"cursor-move",m&&"cursor-not-allowed opacity-50 hover:shadow-sm",d),animate:{scale:a?1.1:1,boxShadow:a?"0 10px 25px rgba(0,0,0,0.1)":void 0},whileTap:{scale:a?1.1:m?1:.97},transition:{type:"tween",duration:.1,ease:"easeOut"},...f,children:[t&&e.jsx(t,{className:jt("relative h-5 w-5 md:h-4 md:w-4",!n&&"mx-auto")}),e.jsx("span",{className:"relative hidden md:inline",children:n}),i&&!a&&e.jsx(nT.button,{className:"absolute -right-1 -top-1 flex h-6 w-6 items-center justify-center rounded-full bg-surface-secondary-alt text-text-primary shadow-sm md:h-5 md:w-5",initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},whileTap:{scale:.9},onMouseDown:e=>e.stopPropagation(),onClick:e=>{e.stopPropagation(),u?.()},children:s?e.jsx(Pp,{className:"h-3 w-3"}):e.jsx(kp,{className:"h-3 w-3"})})]})},exports.BedrockIcon=function({size:t=25,className:n=""}){return e.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:jt("fill-current text-black",n),children:e.jsx("g",{fill:"currentColor",children:e.jsx("path",{d:"M12,18.1397014 L9.574,18.9487014 L8.628,18.3177014 L9.658,17.9737014 L9.342,17.0257014 L7.574,17.6147014 L7,17.2327014 L7,14.4997014 C7,14.3107014 6.893,14.1377014 6.724,14.0527014 L5,13.1907014 L5,10.8087014 L6.5,10.0587014 L8,10.8087014 L8,12.4997014 C8,12.6897014 8.107,12.8627014 8.276,12.9477014 L10.276,13.9477014 L10.724,13.0527014 L9,12.1907014 L9,10.8087014 L10.724,9.94770136 C10.893,9.86270136 11,9.68970136 11,9.49970136 L11,7.99970136 L10,7.99970136 L10,9.19070136 L8.5,9.94070136 L7,9.19070136 L7,6.76770136 L8,6.10070136 L8,7.99970136 L9,7.99970136 L9,5.43470136 L9.574,5.05170136 L12,5.86070136 L12,18.1397014 Z M17.5,16.9997014 C17.775,16.9997014 18,17.2237014 18,17.4997014 C18,17.7757014 17.775,17.9997014 17.5,17.9997014 C17.225,17.9997014 17,17.7757014 17,17.4997014 C17,17.2237014 17.225,16.9997014 17.5,16.9997014 L17.5,16.9997014 Z M16.5,5.99970136 C16.775,5.99970136 17,6.22370136 17,6.49970136 C17,6.77570136 16.775,6.99970136 16.5,6.99970136 C16.225,6.99970136 16,6.77570136 16,6.49970136 C16,6.22370136 16.225,5.99970136 16.5,5.99970136 L16.5,5.99970136 Z M18.5,11.9997014 C18.775,11.9997014 19,12.2237014 19,12.4997014 C19,12.7757014 18.775,12.9997014 18.5,12.9997014 C18.225,12.9997014 18,12.7757014 18,12.4997014 C18,12.2237014 18.225,11.9997014 18.5,11.9997014 L18.5,11.9997014 Z M17.092,12.9997014 C17.299,13.5807014 17.849,13.9997014 18.5,13.9997014 C19.327,13.9997014 20,13.3277014 20,12.4997014 C20,11.6727014 19.327,10.9997014 18.5,10.9997014 C17.849,10.9997014 17.299,11.4197014 17.092,11.9997014 L13,11.9997014 L13,9.99970136 L16.5,9.99970136 C16.776,9.99970136 17,9.77670136 17,9.49970136 L17,7.90770136 C17.581,7.70070136 18,7.15070136 18,6.49970136 C18,5.67270136 17.327,4.99970136 16.5,4.99970136 C15.673,4.99970136 15,5.67270136 15,6.49970136 C15,7.15070136 15.419,7.70070136 16,7.90770136 L16,8.99970136 L13,8.99970136 L13,5.49970136 C13,5.28470136 12.862,5.09370136 12.658,5.02570136 L9.658,4.02570136 C9.511,3.97670136 9.351,3.99870136 9.223,4.08370136 L6.223,6.08370136 C6.084,6.17670136 6,6.33270136 6,6.49970136 L6,9.19070136 L4.276,10.0527014 C4.107,10.1377014 4,10.3107014 4,10.4997014 L4,13.4997014 C4,13.6897014 4.107,13.8627014 4.276,13.9477014 L6,14.8087014 L6,17.4997014 C6,17.6667014 6.084,17.8237014 6.223,17.9157014 L9.223,19.9157014 C9.306,19.9717014 9.402,19.9997014 9.5,19.9997014 C9.553,19.9997014 9.606,19.9917014 9.658,19.9737014 L12.658,18.9737014 C12.862,18.9067014 13,18.7157014 13,18.4997014 L13,15.9997014 L15.293,15.9997014 L16.146,16.8537014 L16.159,16.8407014 C16.061,17.0407014 16,17.2627014 16,17.4997014 C16,18.3267014 16.673,18.9997014 17.5,18.9997014 C18.327,18.9997014 19,18.3267014 19,17.4997014 C19,16.6727014 18.327,15.9997014 17.5,15.9997014 C17.262,15.9997014 17.04,16.0607014 16.841,16.1597014 L16.854,16.1467014 L15.854,15.1467014 C15.76,15.0527014 15.633,14.9997014 15.5,14.9997014 L13,14.9997014 L13,12.9997014 L17.092,12.9997014 Z"})})})},exports.BirthdayIcon=function({className:t=""}){return e.jsxs("svg",{version:"1.1",viewBox:"0 0 233.33 290",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",className:jt("h-9 w-9",t),children:[e.jsx("defs",{children:e.jsxs("linearGradient",{id:"linearGradient1842",x1:"163.92",x2:"173.66",y1:"22.212",y2:"-6.5784",gradientTransform:"translate(.10391 .050143)",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#640a62",offset:"0"}),e.jsx("stop",{stopColor:"#852283",offset:".49917"}),e.jsx("stop",{stopColor:"#640a62",offset:"1"})]})}),e.jsxs("g",{children:[e.jsx("path",{transform:"matrix(.43416 .90084 -.89966 .4366 0 0)",d:"m259.29-126.03a232.2 237.56 0 0 1-17.412 231.34l-193.32-131.59z",fill:"url(#linearGradient1842)"}),e.jsx("path",{transform:"matrix(.6967 .051926 -.051926 .6967 35.578 23.196)",d:"m50.818 31.415c-1.4654 2.4749-10.838 2.4195-12.997 4.3204-2.1584 1.9009-3.288 11.206-5.9282 12.347-2.6402 1.1409-10.191-4.4132-13.054-4.1441-2.8636 0.26917-9.2466 7.133-12.053 6.5041-2.8066-0.62889-5.6503-9.5602-8.1252-11.026-2.4749-1.4654-11.673 0.33572-13.574-1.8227s1.0482-11.056-0.0927-13.696c-1.1409-2.6402-9.6412-6.5898-9.9104-9.4533-0.26917-2.8636 7.3463-8.328 7.9752-11.135 0.62889-2.8066-3.9265-10.998-2.4612-13.473 1.4654-2.4749 10.838-2.4195 12.997-4.3204 2.1584-1.9009 3.288-11.206 5.9282-12.347 2.6402-1.1409 10.191 4.4132 13.054 4.1441 2.8636-0.26917 9.2466-7.133 12.053-6.5041 2.8066 0.62889 5.6503 9.5602 8.1252 11.026s11.673-0.33572 13.574 1.8227c1.9009 2.1584-1.0482 11.056 0.0927 13.696 1.1409 2.6402 9.6412 6.5898 9.9104 9.4533 0.26917 2.8635-7.3463 8.328-7.9752 11.135-0.62889 2.8066 3.9265 10.998 2.4612 13.473z",fill:"#ff9d78",stroke:"#f29472",strokeWidth:"4.7877"}),e.jsx("circle",{cx:"170.36",cy:"215.76",r:"12.903",fill:"#cfffff"}),e.jsx("path",{d:"m220.77 174.77c-88.526 101.03-191.21 85.731-209.5 82.142-2.2101-2e-5 -2.6686 0.42426-3.437 2.0021l-1.7042 7.5028c0.056197 2.3603 0.37544 2.6428 1.9121 3.5409 18.396 3.3746 130.27 19.488 223.46-86.881 0.64011-1.5095 0.46653-3.1324-0.59137-4.7337l-5.1558-3.6482c-1.586-0.8743-3.9524-0.94332-4.9837 0.0751z",color:"#000000",fill:"#ff9d78",stroke:"#f29472",strokeLinejoin:"round",strokeWidth:"2.8913"}),e.jsxs("g",{fill:"#cfffff",children:[e.jsx("circle",{cx:"72.684",cy:"99.47",r:"12.903"}),e.jsx("circle",{cx:"99.144",cy:"172.32",r:"12.903"}),e.jsx("circle",{cx:"59.617",cy:"214.78",r:"12.903"}),e.jsx("circle",{cx:"135.4",cy:"118.42",r:"12.903"}),e.jsx("path",{transform:"rotate(38.66)",d:"m254.21-1.9608a12.903 12.903 0 0 1-6.4852 11.194 12.903 12.903 0 0 1-12.937-0.0582 12.903 12.903 0 0 1-6.3843-11.252l12.903 0.1161z"}),e.jsx("path",{d:"m29.476 158.16a12.903 12.903 0 0 0-3.6562 0.5293l-3.3691 23.189a12.903 12.903 0 0 0 7.0254 2.0879 12.903 12.903 0 0 0 12.904-12.904 12.903 12.903 0 0 0-12.904-12.902z"})]})]})]})},exports.Blocks=function({className:t=""}){return e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",className:jt("lucide lucide-blocks",t),children:[e.jsx("rect",{width:"7",height:"7",x:"14",y:"3",rx:"1"}),e.jsx("path",{d:"M10 21V8a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1H3"})]})},exports.Breadcrumb=Np,exports.BreadcrumbEllipsis=Op,exports.BreadcrumbItem=Mp,exports.BreadcrumbLink=Ap,exports.BreadcrumbList=jp,exports.BreadcrumbPage=Ip,exports.BreadcrumbSeparator=Tp,exports.Button=_p,exports.ChatGPTMinimalIcon=function(){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",className:"lucide lucide-bot",children:[e.jsx("rect",{width:"18",height:"10",x:"3",y:"11",rx:"2"}),e.jsx("circle",{cx:"12",cy:"5",r:"2"}),e.jsx("path",{d:"M12 7v4"}),e.jsx("line",{x1:"8",x2:"8",y1:"16",y2:"16"}),e.jsx("line",{x1:"16",x2:"16",y1:"16",y2:"16"})]})},exports.CheckMark=c$,exports.Checkbox=Qp,exports.CheckboxButton=k$,exports.CircleHelpIcon=function({className:t="icon-md-heavy",size:n="1em"}){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",height:n,width:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:jt(t),children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),e.jsx("path",{d:"M12 17h.01"})]})},exports.Clipboard=function({className:t="icon-md-heavy",size:n="1em"}){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:n,width:n,fill:"none",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:jt(t),children:e.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 5a3 3 0 0 1 3-3h9a3 3 0 0 1 3 3v9a3 3 0 0 1-3 3h-2v2a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3v-9a3 3 0 0 1 3-3h2zm2 2h5a3 3 0 0 1 3 3v5h2a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1h-9a1 1 0 0 0-1 1zM5 9a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1h9a1 1 0 0 0 1-1v-9a1 1 0 0 0-1-1z",clipRule:"evenodd"})})},exports.CodeyIcon=function({size:t=25,className:n=""}){return e.jsx("svg",{width:t,height:t,className:jt("dark:fill-white",n),viewBox:"0 0 18 18",preserveAspectRatio:"xMidYMid meet",focusable:"false",children:e.jsx("path",{d:"M2 4.006C2 2.898 2.897 2 4.006 2h9.988C15.102 2 16 2.897 16 4.006v9.988A2.005 2.005 0 0 1 13.994 16H4.006A2.005 2.005 0 0 1 2 13.994V4.006zM13.992 9l.003-.003L10.997 6 9.75 7.247 11.503 9 9.75 10.753 10.997 12l2.997-2.997L13.992 9zm-9.99 0L4 8.997 6.997 6l1.247 1.247L6.492 9l1.753 1.753L6.997 12 4 9.003 4.003 9z",fillRule:"evenodd"})})},exports.Collapsible=Cm,exports.CollapsibleContent=km,exports.CollapsibleTrigger=Sm,exports.Combobox=function({selectedValue:n,displayValue:r,items:o,setValue:i,ariaLabel:a,searchPlaceholder:s,selectPlaceholder:l,isCollapsed:u,SelectIcon:c}){const d=(o??[]).map((e=>"string"==typeof e?{label:e,value:e}:e)),{open:f,setOpen:p,setSearchValue:m,matches:h}=xw({value:n,options:d});return e.jsx(i_,{value:n,onValueChange:i,open:f,onOpenChange:()=>{!0!==f?setTimeout((()=>{p(!f)}),75):p(!1)},children:e.jsxs(cc,{open:f,setOpen:p,resetValueOnHide:!0,includesBaseElement:!1,setValue:e=>{t.startTransition((()=>{m(e)}))},children:[e.jsx(w_,{"aria-label":a,className:jt("flex items-center gap-2 [&>span]:line-clamp-1 [&>span]:flex [&>span]:w-full [&>span]:items-center [&>span]:gap-1 [&>span]:truncate [&_svg]:h-4 [&_svg]:w-4 [&_svg]:shrink-0",u?"flex h-9 w-9 shrink-0 items-center justify-center p-0 [&>span]:w-auto [&>svg]:hidden":"","bg-white text-black hover:bg-gray-50 focus-visible:ring-2 focus-visible:ring-gray-500 dark:bg-gray-850 dark:text-white"),children:e.jsxs(b_,{placeholder:l,children:[e.jsx("div",{className:"assistant-item flex items-center justify-center overflow-hidden rounded-full",children:c||e.jsx(Le,{})}),e.jsx("span",{className:jt("ml-2",u?"hidden":""),style:{userSelect:"none"},children:n?r??n:l&&l})]})}),e.jsx(l_,{children:e.jsxs(u_,{role:"dialog","aria-label":a+"s",position:"popper",className:jt("bg-popover text-popover-foreground relative z-50 max-h-[52vh] min-w-[8rem] overflow-hidden rounded-md border border-gray-200 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 dark:border-gray-600","data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1","bg-white dark:bg-gray-700"),children:[e.jsxs(c_,{className:"mb-5 h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]",children:[e.jsxs("div",{className:"group sticky left-0 top-0 z-10 flex h-12 items-center gap-2 bg-white px-2 px-3 py-2 text-black duration-300 dark:bg-gray-700 dark:text-white",children:[e.jsx(Ep,{className:"h-4 w-4 text-gray-500 transition-colors duration-300 dark:group-focus-within:text-gray-300 dark:group-hover:text-gray-300"}),e.jsx(uc,{autoSelect:!0,placeholder:s,className:"flex-1 rounded-md border-none bg-transparent px-2.5 py-2 text-sm focus:outline-none focus:ring-1 focus:ring-gray-700/10 dark:focus:ring-gray-200/10",onBlurCapture:e=>{e.preventDefault(),e.stopPropagation()}}),e.jsx(pc,{hideWhenEmpty:!0,className:"relative flex h-5 w-5 items-center justify-end text-gray-500 transition-colors duration-300 dark:group-focus-within:text-gray-300 dark:group-hover:text-gray-300"})]}),e.jsx(yc,{className:"overflow-y-auto p-1 py-2",children:h.map((({label:t,value:n,icon:r})=>e.jsx(f_,{value:`${n??""}`,asChild:!0,children:e.jsxs(gc,{className:jt("relative flex w-full cursor-pointer 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","rounded-lg hover:bg-gray-100/50 hover:bg-gray-50 dark:text-white dark:hover:bg-gray-600"),onTouchEnd:()=>{i(`${n??""}`),p(!1)},children:[e.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(m_,{children:e.jsx(Te,{className:"h-4 w-4"})})}),e.jsx(p_,{children:e.jsxs("div",{className:"flex items-center justify-center gap-3 dark:text-white [&_svg]:h-4 [&_svg]:w-4 [&_svg]:shrink-0 [&_svg]:text-foreground",children:[e.jsx("div",{className:"assistant-item overflow-hidden rounded-full",children:r&&r}),t]})})]})},n)))})]}),e.jsx(x_,{className:"absolute bottom-0 left-0 right-0"})]})})]})})},exports.ContinueIcon=function({className:t=""}){return e.jsxs("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:jt("h-3 w-3 -rotate-180",t),height:"19",width:"19",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("polygon",{points:"11 19 2 12 11 5 11 19"}),e.jsx("polygon",{points:"22 19 13 12 22 5 22 19"})]})},exports.ControlCombobox=Vq,exports.CrossIcon=function({className:t=""}){return e.jsxs("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:jt(t,"h-4 w-4"),height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})},exports.CustomMinimalIcon=function({size:t=25,className:n=""}){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:jt("lucide lucide-bot",n),children:[e.jsx("path",{d:"M12 8V4H8"}),e.jsx("rect",{width:"16",height:"12",x:"4",y:"8",rx:"2"}),e.jsx("path",{d:"M2 14h2"}),e.jsx("path",{d:"M20 14h2"}),e.jsx("path",{d:"M15 13v2"}),e.jsx("path",{d:"M9 13v2"})]})},exports.DataIcon=function({className:t="icon-sm"}){return e.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.00633 5.5C6.02321 5.53319 6.07042 5.60366 6.19525 5.70906C6.42458 5.9027 6.81573 6.12215 7.38659 6.32603C8.5196 6.73067 10.1506 7 12 7C13.8494 7 15.4804 6.73067 16.6134 6.32603C17.1843 6.12215 17.5754 5.9027 17.8048 5.70906C17.9296 5.60366 17.9768 5.53319 17.9937 5.5C17.9768 5.46681 17.9296 5.39634 17.8048 5.29094C17.5754 5.0973 17.1843 4.87785 16.6134 4.67397C15.4804 4.26933 13.8494 4 12 4C10.1506 4 8.5196 4.26933 7.38659 4.67397C6.81573 4.87785 6.42458 5.0973 6.19525 5.29094C6.07042 5.39634 6.02321 5.46681 6.00633 5.5ZM18 7.91726C17.7726 8.02403 17.5333 8.12123 17.2861 8.20951C15.8856 8.70968 14.0166 9 12 9C9.98341 9 8.1144 8.70968 6.71392 8.20951C6.46674 8.12123 6.22738 8.02403 6 7.91726V11.9866C6.00813 12.0073 6.03931 12.0661 6.14259 12.1624C6.31976 12.3277 6.63181 12.5252 7.10609 12.7189C8.04837 13.1039 9.43027 13.3932 11.051 13.476C11.6026 13.5042 12.0269 13.9741 11.9987 14.5257C11.9705 15.0773 11.5005 15.5016 10.949 15.4734C9.17744 15.3829 7.55934 15.0646 6.34969 14.5704C6.23097 14.5219 6.11419 14.4709 6 14.4173V18.4866C6.00813 18.5073 6.03931 18.5661 6.14259 18.6624C6.31976 18.8277 6.63181 19.0252 7.10609 19.2189C8.04837 19.6039 9.43027 19.8932 11.051 19.976C11.6026 20.0042 12.0269 20.4741 11.9987 21.0257C11.9705 21.5773 11.5005 22.0016 10.949 21.9734C9.17744 21.8829 7.55934 21.5646 6.34969 21.0704C5.74801 20.8246 5.19611 20.5146 4.77833 20.1249C4.35948 19.7341 4 19.1866 4 18.5V5.5C4 4.74631 4.43048 4.16346 4.90494 3.76283C5.38405 3.35829 6.01803 3.03902 6.71392 2.79049C8.1144 2.29032 9.98341 2 12 2C14.0166 2 15.8856 2.29032 17.2861 2.79049C17.982 3.03902 18.616 3.35829 19.0951 3.76283C19.5695 4.16346 20 4.74631 20 5.5V10C20 10.5523 19.5523 11 19 11C18.4477 11 18 10.5523 18 10V7.91726ZM17.5 13C18.0523 13 18.5 13.4477 18.5 14V14.6707C18.851 14.7948 19.172 14.9823 19.4492 15.2195L20.0308 14.8837C20.5091 14.6075 21.1207 14.7714 21.3968 15.2497C21.673 15.728 21.5091 16.3396 21.0308 16.6157L20.4499 16.9511C20.4828 17.1291 20.5 17.3125 20.5 17.5C20.5 17.6873 20.4828 17.8707 20.45 18.0485L21.0308 18.3838C21.5091 18.6599 21.6729 19.2715 21.3968 19.7498C21.1206 20.2281 20.5091 20.392 20.0308 20.1158L19.4495 19.7803C19.1722 20.0176 18.8511 20.2052 18.5 20.3293V21C18.5 21.5523 18.0523 22 17.5 22C16.9477 22 16.5 21.5523 16.5 21V20.3293C16.1489 20.2052 15.8277 20.0176 15.5504 19.7802L14.969 20.1159C14.4907 20.392 13.8791 20.2282 13.603 19.7499C13.3269 19.2716 13.4907 18.66 13.969 18.3839L14.55 18.0484C14.5172 17.8706 14.5 17.6873 14.5 17.5C14.5 17.3127 14.5172 17.1294 14.55 16.9515L13.9691 16.6161C13.4908 16.34 13.3269 15.7284 13.6031 15.2501C13.8792 14.7718 14.4908 14.608 14.9691 14.8841L15.5504 15.2197C15.8278 14.9824 16.1489 14.7948 16.5 14.6707V14C16.5 13.4477 16.9477 13 17.5 13ZM16.624 17.0174C16.6274 17.0117 16.6308 17.0059 16.6342 17.0001C16.6374 16.9946 16.6405 16.989 16.6436 16.9834C16.8187 16.6937 17.1367 16.5 17.5 16.5C17.8645 16.5 18.1835 16.6951 18.3583 16.9865C18.3607 16.9909 18.3632 16.9953 18.3658 16.9997C18.3685 17.0044 18.3713 17.0091 18.3741 17.0138C18.4543 17.1577 18.5 17.3235 18.5 17.5C18.5 17.6737 18.4557 17.8371 18.3778 17.9794C18.3737 17.9861 18.3697 17.9929 18.3657 17.9998C18.3619 18.0064 18.3581 18.0131 18.3545 18.0198C18.1789 18.3077 17.8619 18.5 17.5 18.5C17.1362 18.5 16.8178 18.3058 16.6428 18.0154C16.64 18.0102 16.6371 18.005 16.6341 17.9999C16.631 17.9945 16.6278 17.9891 16.6246 17.9838C16.5452 17.8404 16.5 17.6755 16.5 17.5C16.5 17.325 16.545 17.1605 16.624 17.0174Z",fill:"currentColor"})})},exports.DataTable=function({columns:n,data:r,onDelete:o,filterColumn:i,defaultSort:s=[],className:l="",isFetchingNextPage:u=!1,hasNextPage:c=!1,fetchNextPage:d,enableRowSelection:f=!0,showCheckboxes:p=!0,onFilterChange:m,filterValue:h,isLoading:g,enableSearch:v=!0}){const b=Sw("(max-width: 768px)"),w=t.useRef(null),[y,x]=t.useState(!1),[C,S]=t.useState({}),[k,E]=t.useState(s),[R,P]=t.useState([]),[N,j]=t.useState({}),[M,A]=t.useState(h??""),[I,T]=t.useState(!1),O=t.useMemo((()=>{if(!f||!p)return n;const t={id:"select",header:({table:t})=>e.jsx("div",{className:"flex h-full w-[30px] items-center justify-center",children:e.jsx(Qp,{checked:t.getIsAllPageRowsSelected(),onCheckedChange:e=>t.toggleAllPageRowsSelected(Boolean(e)),"aria-label":"Select all"})}),cell:({row:t})=>e.jsx(f$,{checked:t.getIsSelected(),onChange:e=>t.toggleSelected(e),ariaLabel:"Select row"}),meta:{size:"50px"}};return[t,...n]}),[n,f,p]),L=function(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=a.useState((()=>({current:r$(t)}))),[r,o]=a.useState((()=>n.current.initialState));return n.current.setOptions((t=>({...t,...e,state:{...r,...e.state},onStateChange:t=>{o(t),null==e.onStateChange||e.onStateChange(t)}}))),n.current}({data:r,columns:O,getCoreRowModel:e=>vB((()=>[e.options.data]),(t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(t,o,i){void 0===o&&(o=0);const a=[];for(let l=0;l<t.length;l++){const u=o$(e,e._getRowId(t[l],l,i),t[l],l,o,void 0,null==i?void 0:i.id);var s;n.flatRows.push(u),n.rowsById[u.id]=u,a.push(u),e.options.getSubRows&&(u.originalSubRows=e.options.getSubRows(t[l],l),null!=(s=u.originalSubRows)&&s.length&&(u.subRows=r(u.originalSubRows,o+1,u)))}return a};return n.rows=r(t),n}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getSortedRowModel:e=>vB((()=>[e.getState().sorting,e.getPreSortedRowModel()]),((t,n)=>{if(!n.rows.length||null==t||!t.length)return n;const r=e.getState().sorting,o=[],i=r.filter((t=>{var n;return null==(n=e.getColumn(t.id))?void 0:n.getCanSort()})),a={};i.forEach((t=>{const n=e.getColumn(t.id);n&&(a[t.id]={sortUndefined:n.columnDef.sortUndefined,invertSorting:n.columnDef.invertSorting,sortingFn:n.getSortingFn()})}));const s=e=>{const t=e.map((e=>({...e})));return t.sort(((e,t)=>{for(let r=0;r<i.length;r+=1){var n;const o=i[r],s=a[o.id],l=null!=(n=null==o?void 0:o.desc)&&n;let u=0;if(s.sortUndefined){const n=void 0===e.getValue(o.id),r=void 0===t.getValue(o.id);(n||r)&&(u=n&&r?0:n?s.sortUndefined:-s.sortUndefined)}if(0===u&&(u=s.sortingFn(e,t,o.id)),0!==u)return l&&(u*=-1),s.invertSorting&&(u*=-1),u}return e.index-t.index})),t.forEach((e=>{var t;o.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=s(e.subRows))})),t};return{rows:s(n.rows),flatRows:o,rowsById:n.rowsById}}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getFilteredRowModel:e=>vB((()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter]),((t,n,r)=>{if(!t.rows.length||(null==n||!n.length)&&!r){for(let e=0;e<t.flatRows.length;e++)t.flatRows[e].columnFilters={},t.flatRows[e].columnFiltersMeta={};return t}const o=[],i=[];(null!=n?n:[]).forEach((t=>{var n;const r=e.getColumn(t.id);if(!r)return;const i=r.getFilterFn();i&&o.push({id:t.id,filterFn:i,resolvedValue:null!=(n=null==i.resolveFilterValue?void 0:i.resolveFilterValue(t.value))?n:t.value})}));const a=n.map((e=>e.id)),s=e.getGlobalFilterFn(),l=e.getAllLeafColumns().filter((e=>e.getCanGlobalFilter()));let u,c;r&&s&&l.length&&(a.push("__global__"),l.forEach((e=>{var t;i.push({id:e.id,filterFn:s,resolvedValue:null!=(t=null==s.resolveFilterValue?void 0:s.resolveFilterValue(r))?t:r})})));for(let e=0;e<t.flatRows.length;e++){const n=t.flatRows[e];if(n.columnFilters={},o.length)for(let e=0;e<o.length;e++){u=o[e];const t=u.id;n.columnFilters[t]=u.filterFn(n,t,u.resolvedValue,(e=>{n.columnFiltersMeta[t]=e}))}if(i.length){for(let e=0;e<i.length;e++){c=i[e];const t=c.id;if(c.filterFn(n,t,c.resolvedValue,(e=>{n.columnFiltersMeta[t]=e}))){n.columnFilters.__global__=!0;break}}!0!==n.columnFilters.__global__&&(n.columnFilters.__global__=!1)}}return i$(t.rows,(e=>{for(let t=0;t<a.length;t++)if(!1===e.columnFilters[a[t]])return!1;return!0}),e)}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),enableRowSelection:f,enableMultiRowSelection:!0,state:{sorting:k,columnFilters:R,columnVisibility:N,rowSelection:C},onSortingChange:E,onColumnFiltersChange:P,onColumnVisibilityChange:j,onRowSelectionChange:S}),{rows:D}=L.getRowModel(),F=pB({count:D.length,getScrollElement:()=>w.current,estimateSize:t.useCallback((()=>48),[]),overscan:10}),_=F.getVirtualItems(),V=F.getTotalSize(),z=_.length>0?_[0].start:0,H=_.length>0?V-_[_.length-1].end:0;t.useEffect((()=>{const e=w.current;if(!e)return;const t=async()=>{if(!c||u)return;const{scrollTop:t,scrollHeight:n,clientHeight:r}=e;if(n-t<=1.5*r)try{await(d?.())}catch(e){console.error("Unable to fetch next page:",e)}};return e.addEventListener("scroll",t,{passive:!0}),()=>e.removeEventListener("scroll",t)}),[c,u,d]),t.useEffect((()=>{T(!0);const e=setTimeout((()=>{m?.(M),T(!1)}),300);return()=>clearTimeout(e)}),[M,m]);const B=t.useCallback((async()=>{if(o){x(!0);try{const e=L.getFilteredSelectedRowModel().rows.map((e=>e.original));await o(e),S({})}finally{x(!1)}}}),[o,L]),$=Array.from({length:13},((t,n)=>{const r=Math.floor(241*Math.random())+170,o="select"===O[0]?.id?1:0;return e.jsx(NS,{className:"motion-safe:animate-fadeIn border-b border-border-light",children:O.map(((t,n)=>{const i=m$(t,b),a=n===o;return e.jsx(MS,{className:"px-2 py-1 sm:px-4 sm:py-2",style:i,children:e.jsx(QC,{className:"h-6",style:a?{width:`${r}px`}:{width:"100%"}})},t.id)}))},n)}));return e.jsxs("div",{className:jt("flex h-full flex-col gap-4",l),children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2 sm:gap-4",children:[f&&p&&e.jsx(h$,{onDelete:B,isDeleting:y,disabled:!L.getFilteredSelectedRowModel().rows.length||y,isSmallScreen:b}),void 0!==i&&L.getColumn(i)&&v&&e.jsx("div",{className:"relative flex-1",children:e.jsx(s$,{value:M,onChange:e=>A(e.target.value),isSearching:I,placeholder:"Search..."})})]}),e.jsx("div",{ref:w,className:jt("relative h-[calc(100vh-20rem)] max-w-full overflow-x-auto overflow-y-auto rounded-md border border-black/10 dark:border-white/10","transition-all duration-300 ease-out",I&&"bg-surface-secondary/50",l),children:e.jsxs(kS,{className:"w-full min-w-[300px] table-fixed border-separate border-spacing-0",children:[e.jsx(ES,{className:"sticky top-0 z-50 bg-surface-secondary",children:L.getHeaderGroups().map((t=>e.jsx(NS,{className:"border-b border-border-light",children:t.headers.map((t=>e.jsx(jS,{className:"whitespace-nowrap bg-surface-secondary px-2 py-2 text-left text-sm font-medium text-text-secondary sm:px-4",style:m$(t.column.columnDef,b),onClick:t.column.getCanSort()?t.column.getToggleSortingHandler():void 0,children:t.isPlaceholder?null:a$(t.column.columnDef.header,t.getContext())},t.id)))},t.id)))}),e.jsxs(RS,{children:[z>0&&e.jsx("tr",{children:e.jsx("td",{style:{height:`${z}px`}})}),g&&$,_.map((t=>{const n=D[t.index];return e.jsx(p$,{row:n,isSmallScreen:b,index:t.index,isSearching:I},n.id)})),!_.length&&e.jsx(NS,{className:"hover:bg-transparent",children:e.jsx(MS,{colSpan:n.length,className:"p-4 text-center",children:"No data available"})}),H>0&&e.jsx("tr",{children:e.jsx("td",{style:{height:`${H}px`}})}),(u||c)&&e.jsx(NS,{className:"hover:bg-transparent",children:e.jsx(MS,{colSpan:n.length,className:"p-4",children:e.jsx("div",{className:"flex h-full items-center justify-center",children:u?e.jsx(u$,{className:"size-4"}):c&&e.jsx("div",{className:"h-6"})})})})]})]})})]})},exports.DataTableColumnHeader=function({column:t,title:n,className:r=""}){return t.getCanSort()?e.jsx("div",{className:jt("flex items-center space-x-2",r),children:e.jsxs(Db,{children:[e.jsx(Fb,{asChild:!0,children:e.jsxs(_p,{variant:"ghost",size:"sm",className:"-ml-3 h-8 data-[state=open]:bg-accent",children:[e.jsx("span",{children:n}),"desc"===t.getIsSorted()?e.jsx(Pe,{className:"ml-2 h-4 w-4"}):"asc"===t.getIsSorted()?e.jsx(je,{className:"ml-2 h-4 w-4"}):e.jsx(Ae,{className:"ml-2 h-4 w-4"})]})}),e.jsxs(Wb,{align:"start",className:"z-[1001]",children:[e.jsxs(Ub,{onClick:()=>t.toggleSorting(!1),children:[e.jsx(je,{className:"mr-2 h-3.5 w-3.5 text-muted-foreground/70"}),"Asc"]}),e.jsxs(Ub,{onClick:()=>t.toggleSorting(!0),children:[e.jsx(Pe,{className:"mr-2 h-3.5 w-3.5 text-muted-foreground/70"}),"Desc"]}),e.jsx(Xb,{}),e.jsxs(Ub,{onClick:()=>t.toggleVisibility(!1),children:[e.jsx(Ve,{className:"mr-2 h-3.5 w-3.5 text-muted-foreground/70"}),"Hide"]})]})]})}):e.jsx("div",{className:jt(r),children:n})},exports.DelayedRender=({delay:e,children:t})=>kw(e)((()=>t)),exports.Dialog=Ew,exports.DialogButton=Lw,exports.DialogClose=Ow,exports.DialogContent=jw,exports.DialogDescription=Tw,exports.DialogFooter=Aw,exports.DialogHeader=Mw,exports.DialogOverlay=Bx,exports.DialogTemplate=E$,exports.DialogTitle=Iw,exports.DialogTrigger=Rw,exports.DiscordIcon=function(){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",id:"discord",className:"h-6 w-6",children:[e.jsx("circle",{cx:"512",cy:"512",r:"512",fill:"#5865f2"}),e.jsx("path",{fill:"#fff",d:"M689.43 349a422.21 422.21 0 0 0-104.22-32.32 1.58 1.58 0 0 0-1.68.79 294.11 294.11 0 0 0-13 26.66 389.78 389.78 0 0 0-117.05 0 269.75 269.75 0 0 0-13.18-26.66 1.64 1.64 0 0 0-1.68-.79A421 421 0 0 0 334.44 349a1.49 1.49 0 0 0-.69.59c-66.37 99.17-84.55 195.9-75.63 291.41a1.76 1.76 0 0 0 .67 1.2 424.58 424.58 0 0 0 127.85 64.63 1.66 1.66 0 0 0 1.8-.59 303.45 303.45 0 0 0 26.15-42.54 1.62 1.62 0 0 0-.89-2.25 279.6 279.6 0 0 1-39.94-19 1.64 1.64 0 0 1-.16-2.72c2.68-2 5.37-4.1 7.93-6.22a1.58 1.58 0 0 1 1.65-.22c83.79 38.26 174.51 38.26 257.31 0a1.58 1.58 0 0 1 1.68.2c2.56 2.11 5.25 4.23 8 6.24a1.64 1.64 0 0 1-.14 2.72 262.37 262.37 0 0 1-40 19 1.63 1.63 0 0 0-.87 2.28 340.72 340.72 0 0 0 26.13 42.52 1.62 1.62 0 0 0 1.8.61 423.17 423.17 0 0 0 128-64.63 1.64 1.64 0 0 0 .67-1.18c10.68-110.44-17.88-206.38-75.7-291.42a1.3 1.3 0 0 0-.63-.63zM427.09 582.85c-25.23 0-46-23.16-46-51.6s20.38-51.6 46-51.6c25.83 0 46.42 23.36 46 51.6.02 28.44-20.37 51.6-46 51.6zm170.13 0c-25.23 0-46-23.16-46-51.6s20.38-51.6 46-51.6c25.83 0 46.42 23.36 46 51.6.01 28.44-20.17 51.6-46 51.6z"})]})},exports.DotsIcon=function({className:t="h-4 w-4 flex-shrink-0 text-gray-500"}){return e.jsxs("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:t,height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("circle",{cx:"12",cy:"12",r:"1"}),e.jsx("circle",{cx:"19",cy:"12",r:"1"}),e.jsx("circle",{cx:"5",cy:"12",r:"1"})]})},exports.Dropdown=({value:t,label:n="",onChange:r,options:o,className:i="",sizeClasses:a,testId:s="dropdown-menu",icon:l,iconOnly:u=!1,renderValue:c,ariaLabel:d,portal:f=!0})=>{const p=ou({value:t,setValue:e=>{r(e)}}),m=e=>{if(null!=e&&""!==e)return o.filter((e=>!R_(e))).map((e=>"string"==typeof e?{value:e,label:e}:e)).find((t=>P_(t)&&t.value===e))};return e.jsxs("div",{className:jt("relative",i),children:[e.jsxs(mu,{store:p,className:jt("focus:ring-offset-ring-offset relative inline-flex items-center justify-between rounded-xl border border-input bg-background px-3 py-2 text-sm text-text-primary transition-all duration-200 ease-in-out hover:bg-accent hover:text-accent-foreground focus:ring-ring-primary",u?"h-full w-10":"w-fit gap-2",i),"data-testid":s,"aria-label":d,children:[e.jsxs("div",{className:"flex w-full items-center gap-2",children:[l,!u&&e.jsxs("span",{className:"block truncate",children:[n,(()=>{const e=m(t);return e&&c?c(e):(e=>{if(null==e||""===e)return"";const t=m(e);return t?t.label:e})(t)})()]})]}),!u&&e.jsx(au,{})]}),e.jsx(Au,{portal:f,store:p,className:jt("popover-ui",a,i,"max-h-[80vh] overflow-y-auto"),children:o.map(((n,r)=>{if(R_(n))return e.jsx("div",{className:"my-1 border-t border-border-heavy"},`divider-${r}`);const o="string"==typeof n?{value:n,label:n}:n;return P_(o)?e.jsx(Eu,{value:String(o.value),className:"select-item","data-theme":o.value,children:e.jsxs("div",{className:"flex w-full items-center gap-2",children:[null!=o.icon&&e.jsx("span",{children:o.icon}),e.jsx("span",{className:"block truncate",children:o.label}),t===o.value&&e.jsx("span",{className:"ml-auto pl-2",children:e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon-md block group-hover:hidden",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12ZM16.0755 7.93219C16.5272 8.25003 16.6356 8.87383 16.3178 9.32549L11.5678 16.0755C11.3931 16.3237 11.1152 16.4792 10.8123 16.4981C10.5093 16.517 10.2142 16.3973 10.0101 16.1727L7.51006 13.4227C7.13855 13.014 7.16867 12.3816 7.57733 12.0101C7.98598 11.6386 8.61843 11.6687 8.98994 12.0773L10.6504 13.9039L14.6822 8.17451C15 7.72284 15.6238 7.61436 16.0755 7.93219Z",fill:"currentColor"})})})]})},`option-${r}`):null}))})]})},exports.DropdownMenu=Db,exports.DropdownMenuCheckboxItem=Kb,exports.DropdownMenuContent=Wb,exports.DropdownMenuGroup=_b,exports.DropdownMenuItem=Ub,exports.DropdownMenuLabel=qb,exports.DropdownMenuPortal=Vb,exports.DropdownMenuRadioGroup=Hb,exports.DropdownMenuRadioItem=Gb,exports.DropdownMenuSeparator=Xb,exports.DropdownMenuShortcut=Yb,exports.DropdownMenuSub=zb,exports.DropdownMenuSubContent=$b,exports.DropdownMenuSubTrigger=Bb,exports.DropdownMenuTrigger=Fb,exports.DropdownPopup=({trigger:t,isOpen:n,setIsOpen:r,focusLoop:o,mountByState:i,...a})=>{const s=Gu({open:n,setOpen:r,focusLoop:o});return i?e.jsxs(Zu,{store:s,children:[t,n&&e.jsx(C$,{...a})]}):e.jsxs(Zu,{store:s,children:[t,e.jsx(C$,{...a})]})},exports.EditIcon=l$,exports.ExperimentIcon=function(){return e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon-sm",children:[e.jsx("path",{d:"M9 3H15M9 3V9.2759C9 9.74377 8.83597 10.1968 8.53644 10.5563L4.85085 14.979C4.30108 15.6387 4 16.4703 4 17.3291V17.3291C4 19.3565 5.64353 21 7.67094 21H16.3291C18.3565 21 20 19.3565 20 17.3291V17.3291C20 16.4703 19.6989 15.6387 19.1492 14.979L15.4636 10.5563C15.164 10.1968 15 9.74377 15 9.2759V3M9 3H8M15 3H16",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M5 14.774C11.5 12.839 12.15 16.7089 18 14",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})},exports.FacebookIcon=function(){return e.jsxs("svg",{viewBox:"0 0 40 40",width:"25",height:"25",children:[e.jsxs("linearGradient",{id:"a",x1:-277.375,x2:-277.375,y1:406.602,y2:407.573,gradientTransform:"matrix(40 0 0 -39.7778 11115.001 16212.334)",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{offset:0,stopColor:"#0062e0"}),e.jsx("stop",{offset:1,stopColor:"#19afff"})]}),e.jsx("path",{fill:"url(#a)",d:"M16.7 39.8C7.2 38.1 0 29.9 0 20 0 9 9 0 20 0s20 9 20 20c0 9.9-7.2 18.1-16.7 19.8l-1.1-.9h-4.4l-1.1.9z"}),e.jsx("path",{fill:"#fff",d:"m27.8 25.6.9-5.6h-5.3v-3.9c0-1.6.6-2.8 3-2.8H29V8.2c-1.4-.2-3-.4-4.4-.4-4.6 0-7.8 2.8-7.8 7.8V20h-5v5.6h5v14.1c1.1.2 2.2.3 3.3.3 1.1 0 2.2-.1 3.3-.3V25.6h4.4z"})]})},exports.FileUpload=y$,exports.FormInput=function({field:t,label:n,labelClass:r,inputClass:o,containerClass:i,labelAdjacent:a,placeholder:s="",type:l="string"}){return e.jsxs("div",{className:jt("flex w-full flex-col items-center gap-2",i),children:[e.jsxs("div",{className:"flex w-full items-center justify-start gap-2",children:[e.jsx(Fx,{htmlFor:`${t.name}-input`,className:jt("text-left text-sm font-semibold text-text-primary",r),children:n}),a]}),e.jsx(yy,{id:`${t.name}-input`,value:t.value??"",onChange:e=>{const n=e.target.value;"number"===l?""===n?t.onChange(n):isNaN(Number(n))||t.onChange(Number(n)):t.onChange(n)},placeholder:s,className:jt("flex h-10 max-h-10 w-full resize-none border-none bg-surface-secondary px-3 py-2",o)})]})},exports.GPTIcon=function({size:t=25,className:n=""}){const r=t,o=t;return e.jsx("svg",{width:o,height:r,viewBox:"0 0 41 41",fill:"none",xmlns:"http://www.w3.org/2000/svg",strokeWidth:"1.5",className:jt(n,""),children:e.jsx("path",{d:"M37.5324 16.8707C37.9808 15.5241 38.1363 14.0974 37.9886 12.6859C37.8409 11.2744 37.3934 9.91076 36.676 8.68622C35.6126 6.83404 33.9882 5.3676 32.0373 4.4985C30.0864 3.62941 27.9098 3.40259 25.8215 3.85078C24.8796 2.7893 23.7219 1.94125 22.4257 1.36341C21.1295 0.785575 19.7249 0.491269 18.3058 0.500197C16.1708 0.495044 14.0893 1.16803 12.3614 2.42214C10.6335 3.67624 9.34853 5.44666 8.6917 7.47815C7.30085 7.76286 5.98686 8.3414 4.8377 9.17505C3.68854 10.0087 2.73073 11.0782 2.02839 12.312C0.956464 14.1591 0.498905 16.2988 0.721698 18.4228C0.944492 20.5467 1.83612 22.5449 3.268 24.1293C2.81966 25.4759 2.66413 26.9026 2.81182 28.3141C2.95951 29.7256 3.40701 31.0892 4.12437 32.3138C5.18791 34.1659 6.8123 35.6322 8.76321 36.5013C10.7141 37.3704 12.8907 37.5973 14.9789 37.1492C15.9208 38.2107 17.0786 39.0587 18.3747 39.6366C19.6709 40.2144 21.0755 40.5087 22.4946 40.4998C24.6307 40.5054 26.7133 39.8321 28.4418 38.5772C30.1704 37.3223 31.4556 35.5506 32.1119 33.5179C33.5027 33.2332 34.8167 32.6547 35.9659 31.821C37.115 30.9874 38.0728 29.9178 38.7752 28.684C39.8458 26.8371 40.3023 24.6979 40.0789 22.5748C39.8556 20.4517 38.9639 18.4544 37.5324 16.8707ZM22.4978 37.8849C20.7443 37.8874 19.0459 37.2733 17.6994 36.1501C17.7601 36.117 17.8666 36.0586 17.936 36.0161L25.9004 31.4156C26.1003 31.3019 26.2663 31.137 26.3813 30.9378C26.4964 30.7386 26.5563 30.5124 26.5549 30.2825V19.0542L29.9213 20.998C29.9389 21.0068 29.9541 21.0198 29.9656 21.0359C29.977 21.052 29.9842 21.0707 29.9867 21.0902V30.3889C29.9842 32.375 29.1946 34.2791 27.7909 35.6841C26.3872 37.0892 24.4838 37.8806 22.4978 37.8849ZM6.39227 31.0064C5.51397 29.4888 5.19742 27.7107 5.49804 25.9832C5.55718 26.0187 5.66048 26.0818 5.73461 26.1244L13.699 30.7248C13.8975 30.8408 14.1233 30.902 14.3532 30.902C14.583 30.902 14.8088 30.8408 15.0073 30.7248L24.731 25.1103V28.9979C24.7321 29.0177 24.7283 29.0376 24.7199 29.0556C24.7115 29.0736 24.6988 29.0893 24.6829 29.1012L16.6317 33.7497C14.9096 34.7416 12.8643 35.0097 10.9447 34.4954C9.02506 33.9811 7.38785 32.7263 6.39227 31.0064ZM4.29707 13.6194C5.17156 12.0998 6.55279 10.9364 8.19885 10.3327C8.19885 10.4013 8.19491 10.5228 8.19491 10.6071V19.808C8.19351 20.0378 8.25334 20.2638 8.36823 20.4629C8.48312 20.6619 8.64893 20.8267 8.84863 20.9404L18.5723 26.5542L15.206 28.4979C15.1894 28.5089 15.1703 28.5155 15.1505 28.5173C15.1307 28.5191 15.1107 28.516 15.0924 28.5082L7.04046 23.8557C5.32135 22.8601 4.06716 21.2235 3.55289 19.3046C3.03862 17.3858 3.30624 15.3413 4.29707 13.6194ZM31.955 20.0556L22.2312 14.4411L25.5976 12.4981C25.6142 12.4872 25.6333 12.4805 25.6531 12.4787C25.6729 12.4769 25.6928 12.4801 25.7111 12.4879L33.7631 17.1364C34.9967 17.849 36.0017 18.8982 36.6606 20.1613C37.3194 21.4244 37.6047 22.849 37.4832 24.2684C37.3617 25.6878 36.8382 27.0432 35.9743 28.1759C35.1103 29.3086 33.9415 30.1717 32.6047 30.6641C32.6047 30.5947 32.6047 30.4733 32.6047 30.3889V21.188C32.6066 20.9586 32.5474 20.7328 32.4332 20.5338C32.319 20.3348 32.154 20.1698 31.955 20.0556ZM35.3055 15.0128C35.2464 14.9765 35.1431 14.9142 35.069 14.8717L27.1045 10.2712C26.906 10.1554 26.6803 10.0943 26.4504 10.0943C26.2206 10.0943 25.9948 10.1554 25.7963 10.2712L16.0726 15.8858V11.9982C16.0715 11.9783 16.0753 11.9585 16.0837 11.9405C16.0921 11.9225 16.1048 11.9068 16.1207 11.8949L24.1719 7.25025C25.4053 6.53903 26.8158 6.19376 28.2383 6.25482C29.6608 6.31589 31.0364 6.78077 32.2044 7.59508C33.3723 8.40939 34.2842 9.53945 34.8334 10.8531C35.3826 12.1667 35.5464 13.6095 35.3055 15.0128ZM14.2424 21.9419L10.8752 19.9981C10.8576 19.9893 10.8423 19.9763 10.8309 19.9602C10.8195 19.9441 10.8122 19.9254 10.8098 19.9058V10.6071C10.8107 9.18295 11.2173 7.78848 11.9819 6.58696C12.7466 5.38544 13.8377 4.42659 15.1275 3.82264C16.4173 3.21869 17.8524 2.99464 19.2649 3.1767C20.6775 3.35876 22.0089 3.93941 23.1034 4.85067C23.0427 4.88379 22.937 4.94215 22.8668 4.98473L14.9024 9.58517C14.7025 9.69878 14.5366 9.86356 14.4215 10.0626C14.3065 10.2616 14.2466 10.4877 14.2479 10.7175L14.2424 21.9419ZM16.071 17.9991L20.4018 15.4978L24.7325 17.9975V22.9985L20.4018 25.4983L16.071 22.9985V17.9991Z",fill:"currentColor"})})},exports.GearIcon=({className:t=""})=>e.jsxs("svg",{className:t,width:"17",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M11.6439 3C10.9352 3 10.2794 3.37508 9.92002 3.98596L9.49644 4.70605C8.96184 5.61487 7.98938 6.17632 6.93501 6.18489L6.09967 6.19168C5.39096 6.19744 4.73823 6.57783 4.38386 7.19161L4.02776 7.80841C3.67339 8.42219 3.67032 9.17767 4.01969 9.7943L4.43151 10.5212C4.95127 11.4386 4.95127 12.5615 4.43151 13.4788L4.01969 14.2057C3.67032 14.8224 3.67339 15.5778 4.02776 16.1916L4.38386 16.8084C4.73823 17.4222 5.39096 17.8026 6.09966 17.8083L6.93502 17.8151C7.98939 17.8237 8.96185 18.3851 9.49645 19.294L9.92002 20.014C10.2794 20.6249 10.9352 21 11.6439 21H12.3561C13.0648 21 13.7206 20.6249 14.08 20.014L14.5035 19.294C15.0381 18.3851 16.0106 17.8237 17.065 17.8151L17.9004 17.8083C18.6091 17.8026 19.2618 17.4222 19.6162 16.8084L19.9723 16.1916C20.3267 15.5778 20.3298 14.8224 19.9804 14.2057L19.5686 13.4788C19.0488 12.5615 19.0488 11.4386 19.5686 10.5212L19.9804 9.7943C20.3298 9.17767 20.3267 8.42219 19.9723 7.80841L19.6162 7.19161C19.2618 6.57783 18.6091 6.19744 17.9004 6.19168L17.065 6.18489C16.0106 6.17632 15.0382 5.61487 14.5036 4.70605L14.08 3.98596C13.7206 3.37508 13.0648 3 12.3561 3H11.6439Z",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"}),e.jsx("circle",{cx:"12",cy:"12",r:"2.5",stroke:"currentColor",strokeWidth:"2"})]}),exports.GeminiIcon=function({size:t=25,className:n=""}){return e.jsxs("svg",{width:t,height:t,className:n,viewBox:"0 0 18 18",preserveAspectRatio:"xMidYMid meet",focusable:"false",children:[e.jsx("path",{fill:"url(#_4rif_paint0_radial_897_42)",d:"M9 18c0-1.245-.24-2.415-.72-3.51a8.934 8.934 0 00-1.912-2.857A8.934 8.934 0 003.51 9.72 8.646 8.646 0 000 9a8.886 8.886 0 003.51-.697 9.247 9.247 0 002.857-1.936A8.934 8.934 0 008.28 3.51C8.76 2.415 9 1.245 9 0c0 1.245.232 2.415.697 3.51a9.247 9.247 0 001.936 2.857 9.247 9.247 0 002.857 1.936A8.886 8.886 0 0018 9c-1.245 0-2.415.24-3.51.72a8.934 8.934 0 00-2.857 1.912 9.247 9.247 0 00-1.935 2.858A8.886 8.886 0 009 18z"}),e.jsx("defs",{children:e.jsxs("radialGradient",{id:"_4rif_paint0_radial_897_42",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"rotate(135 9 3.728) scale(25.4558 12.7279)",children:[e.jsx("stop",{offset:".325",stopColor:"#FFDDB7"}),e.jsx("stop",{offset:".706",stopColor:"#076EFF"})]})})]})},exports.GithubIcon=function(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",fill:"none",children:e.jsx("path",{fill:"currentColor",d:"M12 0a12 12 0 0 0-3.84 23.399c.608.112.832-.256.832-.576v-2.015c-3.395.736-4.115-1.632-4.115-1.632a3.241 3.241 0 0 0-1.359-1.792c-1.104-.736.064-.736.064-.736a2.566 2.566 0 0 1 1.824 1.216a2.638 2.638 0 0 0 3.616 1.024a2.607 2.607 0 0 1 .768-1.6c-2.688-.32-5.504-1.344-5.504-5.984a4.677 4.677 0 0 1 1.216-3.168a4.383 4.383 0 0 1 .128-3.136s1.024-.32 3.36 1.216a11.66 11.66 0 0 1 6.112 0c2.336-1.536 3.36-1.216 3.36-1.216a4.354 4.354 0 0 1 .128 3.136a4.628 4.628 0 0 1 1.216 3.168c0 4.672-2.848 5.664-5.536 5.952a2.881 2.881 0 0 1 .832 2.24v3.36c0 .32.224.672.832.576A12 12 0 0 0 12 0z"})})},exports.GoogleIcon=function(){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",id:"google",className:"h-5 w-5",children:[e.jsx("path",{fill:"#fbbb00",d:"M113.47 309.408 95.648 375.94l-65.139 1.378C11.042 341.211 0 299.9 0 256c0-42.451 10.324-82.483 28.624-117.732h.014L86.63 148.9l25.404 57.644c-5.317 15.501-8.215 32.141-8.215 49.456.002 18.792 3.406 36.797 9.651 53.408z"}),e.jsx("path",{fill:"#518ef8",d:"M507.527 208.176C510.467 223.662 512 239.655 512 256c0 18.328-1.927 36.206-5.598 53.451-12.462 58.683-45.025 109.925-90.134 146.187l-.014-.014-73.044-3.727-10.338-64.535c29.932-17.554 53.324-45.025 65.646-77.911h-136.89V208.176h245.899z"}),e.jsx("path",{fill:"#28b446",d:"m416.253 455.624.014.014C372.396 490.901 316.666 512 256 512c-97.491 0-182.252-54.491-225.491-134.681l82.961-67.91c21.619 57.698 77.278 98.771 142.53 98.771 28.047 0 54.323-7.582 76.87-20.818l83.383 68.262z"}),e.jsx("path",{fill:"#f14336",d:"m419.404 58.936-82.933 67.896C313.136 112.246 285.552 103.82 256 103.82c-66.729 0-123.429 42.957-143.965 102.724l-83.397-68.276h-.014C71.23 56.123 157.06 0 256 0c62.115 0 119.068 22.126 163.404 58.936z"})]})},exports.GoogleIconChat=function({size:t=25,className:n=""}){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",width:"24px",height:"24px",viewBox:"0 0 512 512",strokeWidth:"1.5",className:jt(n,""),children:e.jsx("path",{d:"M473.16,221.48l-2.26-9.59H262.46v88.22H387c-12.93,61.4-72.93,93.72-121.94,93.72-35.66,0-73.25-15-98.13-39.11a140.08,140.08,0,0,1-41.8-98.88c0-37.16,16.7-74.33,41-98.78s61-38.13,97.49-38.13c41.79,0,71.74,22.19,82.94,32.31l62.69-62.36C390.86,72.72,340.34,32,261.6,32h0c-60.75,0-119,23.27-161.58,65.71C58,139.5,36.25,199.93,36.25,256S56.83,369.48,97.55,411.6C141.06,456.52,202.68,480,266.13,480c57.73,0,112.45-22.62,151.45-63.66,38.34-40.4,58.17-96.3,58.17-154.9C475.75,236.77,473.27,222.12,473.16,221.48Z"})})},exports.GoogleMinimalIcon=function({className:t=""}){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",width:"800px",height:"800px",viewBox:"0 0 512 512",className:jt("h-4 w-4",t),children:e.jsx("path",{d:"M473.16,221.48l-2.26-9.59H262.46v88.22H387c-12.93,61.4-72.93,93.72-121.94,93.72-35.66,0-73.25-15-98.13-39.11a140.08,140.08,0,0,1-41.8-98.88c0-37.16,16.7-74.33,41-98.78s61-38.13,97.49-38.13c41.79,0,71.74,22.19,82.94,32.31l62.69-62.36C390.86,72.72,340.34,32,261.6,32h0c-60.75,0-119,23.27-161.58,65.71C58,139.5,36.25,199.93,36.25,256S56.83,369.48,97.55,411.6C141.06,456.52,202.68,480,266.13,480c57.73,0,112.45-22.62,151.45-63.66,38.34-40.4,58.17-96.3,58.17-154.9C475.75,236.77,473.27,222.12,473.16,221.48Z"})})},exports.HoverCard=gy,exports.HoverCardContent=wy,exports.HoverCardPortal=by,exports.HoverCardTrigger=vy,exports.Input=yy,exports.InputCombobox=({label:n,labelClassName:r,placeholder:o="Select an option",options:i,className:a,value:s,onChange:l,onBlur:u})=>{const c=e=>null!=e&&"object"==typeof e&&"value"in e,[d,f]=t.useState(!1),[p,m]=t.useState(s),[h,g]=t.useState(!1);t.useEffect((()=>{m(s)}),[s]);const v=e=>{m(e),l(e)};return e.jsxs(cc,{value:p,setValue:v,children:[null!=n&&e.jsx(bc,{className:jt("mb-2 block text-sm font-medium text-text-primary",r??""),children:n}),e.jsx("div",{className:jt("relative",h?"rounded-md ring-2 ring-ring-primary":""),children:e.jsx(uc,{placeholder:o,className:jt("h-10 w-full rounded-md border border-border-light bg-surface-primary px-3 py-2 text-sm","placeholder-text-secondary hover:bg-surface-hover","focus:outline-none",a),onChange:e=>v(e.target.value),onBlur:()=>{g(!1),u()},onFocusVisible:()=>{g(!0),f(!0)},onMouseDown:()=>{g(!1)}})}),e.jsx(Cc,{gutter:4,sameWidth:!0,open:d,onClose:()=>f(!1),className:jt("z-50 max-h-60 w-full overflow-auto rounded-md bg-surface-primary p-1 shadow-lg","animate-in fade-in-0 zoom-in-95"),children:i.map(((t,n)=>e.jsxs(gc,{className:jt("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none","cursor-pointer hover:bg-surface-tertiary hover:text-text-primary","data-[active-item]:bg-surface-tertiary data-[active-item]:text-text-primary"),value:c(t)?`${t.value??""}`:t,children:[c(t)&&null!=t.icon&&e.jsx("span",{className:"mr-2 flex-shrink-0",children:t.icon}),c(t)?t.label:t]},n)))})]})},exports.InputNumber=jx,exports.InputOTP=GT,exports.InputOTPGroup=qT,exports.InputOTPSeparator=YT,exports.InputOTPSlot=XT,exports.InputWithDropdown=Hq,exports.Label=Fx,exports.LightningIcon=function({className:t=""}){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true",className:jt("h-6 w-6",t),children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 13.5l10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75z"})})},exports.LinkIcon=function(){return e.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon-md",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 5C14.4477 5 14 4.55228 14 4C14 3.44772 14.4477 3 15 3H20C20.5523 3 21 3.44772 21 4V9C21 9.55228 20.5523 10 20 10C19.4477 10 19 9.55228 19 9V6.41421L13.7071 11.7071C13.3166 12.0976 12.6834 12.0976 12.2929 11.7071C11.9024 11.3166 11.9024 10.6834 12.2929 10.2929L17.5858 5H15ZM4 7C4 5.34315 5.34315 4 7 4H10C10.5523 4 11 4.44772 11 5C11 5.55228 10.5523 6 10 6H7C6.44772 6 6 6.44772 6 7V17C6 17.5523 6.44772 18 7 18H17C17.5523 18 18 17.5523 18 17V14C18 13.4477 18.4477 13 19 13C19.5523 13 20 13.4477 20 14V17C20 18.6569 18.6569 20 17 20H7C5.34315 20 4 18.6569 4 17V7Z",fill:"currentColor"})})},exports.ListeningIcon=function({className:t}){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:jt(t),strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z"}),e.jsx("path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}),e.jsx("line",{x1:"12",x2:"12",y1:"19",y2:"22"})]})},exports.LockIcon=function(){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-lock",children:[e.jsx("rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2"}),e.jsx("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"})]})},exports.LogOutIcon=function(){return e.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon-md",children:[e.jsx("path",{d:"M11 3H7C5.89543 3 5 3.89543 5 5V19C5 20.1046 5.89543 21 7 21H11",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),e.jsx("path",{d:"M20 12H11M20 12L16 16M20 12L16 8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})},exports.MCPIcon=function({className:t}){return e.jsxs("svg",{width:"195",height:"195",viewBox:"0 2 195 195",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:[e.jsx("path",{d:"M25 97.8528L92.8823 29.9706C102.255 20.598 117.451 20.598 126.823 29.9706V29.9706C136.196 39.3431 136.196 54.5391 126.823 63.9117L75.5581 115.177",stroke:"currentColor",strokeWidth:"12",strokeLinecap:"round"}),e.jsx("path",{d:"M76.2653 114.47L126.823 63.9117C136.196 54.5391 151.392 54.5391 160.765 63.9117L161.118 64.2652C170.491 73.6378 170.491 88.8338 161.118 98.2063L99.7248 159.6C96.6006 162.724 96.6006 167.789 99.7248 170.913L112.331 183.52",stroke:"currentColor",strokeWidth:"12",strokeLinecap:"round"}),e.jsx("path",{d:"M109.853 46.9411L59.6482 97.1457C50.2757 106.518 50.2757 121.714 59.6482 131.087V131.087C69.0208 140.459 84.2168 140.459 93.5894 131.087L143.794 80.8822",stroke:"currentColor",strokeWidth:"12",strokeLinecap:"round"})]})},exports.MessagesSquared=function({className:t}){return e.jsxs("svg",{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",className:jt(t??"","lucide lucide-messages-square"),children:[e.jsx("path",{d:"M14 9a2 2 0 0 1-2 2H6l-4 4V4c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v5Z"}),e.jsx("path",{d:"M18 9h2a2 2 0 0 1 2 2v11l-4-4h-6a2 2 0 0 1-2-2v-1"})]})},exports.MinimalPlugin=function({size:t,className:n="icon-md"}){return e.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.4646 19C15.2219 20.6961 13.7632 22 12 22C10.2368 22 8.77806 20.6961 8.53544 19H6C4.34315 19 3 17.6569 3 16V13.5C3 12.9477 3.44772 12.5 4 12.5H4.5C5.32843 12.5 6 11.8284 6 11C6 10.1716 5.32843 9.5 4.5 9.5H4C3.44772 9.5 3 9.05229 3 8.5L3 6C3 4.34315 4.34315 3 6 3L18 3C19.6569 3 21 4.34315 21 6L21 16C21 17.6569 19.6569 19 18 19H15.4646ZM12 20C12.8284 20 13.5 19.3284 13.5 18.5V18C13.5 17.4477 13.9477 17 14.5 17H18C18.5523 17 19 16.5523 19 16L19 6C19 5.44772 18.5523 5 18 5L6 5C5.44772 5 5 5.44772 5 6V7.53544C6.69615 7.77806 8 9.23676 8 11C8 12.7632 6.69615 14.2219 5 14.4646L5 16C5 16.5523 5.44771 17 6 17H9.5C10.0523 17 10.5 17.4477 10.5 18V18.5C10.5 19.3284 11.1716 20 12 20Z",fill:"currentColor"})})},exports.MobileSidebar=function({className:t}){return e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 8C3 7.44772 3.44772 7 4 7H20C20.5523 7 21 7.44772 21 8C21 8.55228 20.5523 9 20 9H4C3.44772 9 3 8.55228 3 8ZM3 16C3 15.4477 3.44772 15 4 15H14C14.5523 15 15 15.4477 15 16C15 16.5523 14.5523 17 14 17H4C3.44772 17 3 16.5523 3 16Z",fill:"currentColor"})})},exports.ModelParameters=gq,exports.MultiSelect=function({items:n,label:r,placeholder:o="Select...",onSelectedValuesChange:i,renderSelectedValues:a=x$,className:s,selectIcon:l,itemClassName:u,labelClassName:c,selectClassName:d,popoverClassName:f,selectItemsClassName:p,selectedValues:m=[],setSelectedValues:h,renderItemContent:g}){const v=t.useRef(null);return e.jsx("div",{className:s,children:e.jsxs(hu,{value:m,setValue:e=>{h(e),i&&i(e)},children:[r&&e.jsx(Pu,{className:jt("mb-1 block text-sm text-text-primary",c),children:r}),e.jsxs(mu,{ref:v,className:jt("flex items-center justify-between gap-2 rounded-xl px-3 py-2 text-sm","bg-surface-tertiary text-text-primary shadow-sm hover:cursor-pointer hover:bg-surface-hover","outline-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75",d,m.length>0&&null!=p&&p),onChange:e=>e.stopPropagation(),children:[l&&l,e.jsx("span",{className:"mr-auto hidden truncate md:block",children:a(m,o)}),e.jsx(au,{className:"ml-1 hidden stroke-1 text-base opacity-75 md:block"})]}),e.jsx(Au,{gutter:4,sameWidth:!0,modal:!0,unmountOnHide:!0,finalFocus:v,className:jt("animate-popover z-50 flex max-h-[300px]","flex-col overflow-auto overscroll-contain rounded-xl","bg-surface-secondary px-1.5 py-1 text-text-primary shadow-lg","border border-border-light","outline-none",f),children:n.map((t=>{const n=e.jsxs(e.Fragment,{children:[e.jsx(yu,{className:"text-primary"}),e.jsx("span",{className:"truncate",children:t})]}),r=m.includes(t);return e.jsx(Eu,{value:t,className:jt("flex items-center gap-2 rounded-lg px-2 py-1.5 hover:cursor-pointer","scroll-m-1 outline-none transition-colors","hover:bg-black/[0.075] dark:hover:bg-white/10","data-[active-item]:bg-black/[0.075] dark:data-[active-item]:bg-white/10","w-full min-w-0 text-sm",u),children:g?g(t,n,r):n},t)}))})]})})},exports.NewChatIcon=function({className:t=""}){return e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:jt("text-black dark:text-white",t),"aria-hidden":!0,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.7929 2.79289C18.0118 1.57394 19.9882 1.57394 21.2071 2.79289C22.4261 4.01184 22.4261 5.98815 21.2071 7.20711L12.7071 15.7071C12.5196 15.8946 12.2652 16 12 16H9C8.44772 16 8 15.5523 8 15V12C8 11.7348 8.10536 11.4804 8.29289 11.2929L16.7929 2.79289ZM19.7929 4.20711C19.355 3.7692 18.645 3.7692 18.2071 4.2071L10 12.4142V14H11.5858L19.7929 5.79289C20.2308 5.35499 20.2308 4.64501 19.7929 4.20711ZM6 5C5.44772 5 5 5.44771 5 6V18C5 18.5523 5.44772 19 6 19H18C18.5523 19 19 18.5523 19 18V14C19 13.4477 19.4477 13 20 13C20.5523 13 21 13.4477 21 14V18C21 19.6569 19.6569 21 18 21H6C4.34315 21 3 19.6569 3 18V6C3 4.34314 4.34315 3 6 3H10C10.5523 3 11 3.44771 11 4C11 4.55228 10.5523 5 10 5H6Z",fill:"currentColor"})})},exports.OGDialog=_x,exports.OGDialogClose=Hx,exports.OGDialogContent=$x,exports.OGDialogDescription=Gx,exports.OGDialogFooter=Ux,exports.OGDialogHeader=Wx,exports.OGDialogOverlay=Bx,exports.OGDialogPortal=zx,exports.OGDialogTemplate=zq,exports.OGDialogTitle=Kx,exports.OGDialogTrigger=Vx,exports.OpenAIMinimalIcon=function({className:t="h-4 w-4"}){return e.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"1",viewBox:"0 0 40 40",strokeLinecap:"round",strokeLinejoin:"round",className:t,height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M37.5324 16.8707C37.9808 15.5241 38.1363 14.0974 37.9886 12.6859C37.8409 11.2744 37.3934 9.91076 36.676 8.68622C35.6126 6.83404 33.9882 5.3676 32.0373 4.4985C30.0864 3.62941 27.9098 3.40259 25.8215 3.85078C24.8796 2.7893 23.7219 1.94125 22.4257 1.36341C21.1295 0.785575 19.7249 0.491269 18.3058 0.500197C16.1708 0.495044 14.0893 1.16803 12.3614 2.42214C10.6335 3.67624 9.34853 5.44666 8.6917 7.47815C7.30085 7.76286 5.98686 8.3414 4.8377 9.17505C3.68854 10.0087 2.73073 11.0782 2.02839 12.312C0.956464 14.1591 0.498905 16.2988 0.721698 18.4228C0.944492 20.5467 1.83612 22.5449 3.268 24.1293C2.81966 25.4759 2.66413 26.9026 2.81182 28.3141C2.95951 29.7256 3.40701 31.0892 4.12437 32.3138C5.18791 34.1659 6.8123 35.6322 8.76321 36.5013C10.7141 37.3704 12.8907 37.5973 14.9789 37.1492C15.9208 38.2107 17.0786 39.0587 18.3747 39.6366C19.6709 40.2144 21.0755 40.5087 22.4946 40.4998C24.6307 40.5054 26.7133 39.8321 28.4418 38.5772C30.1704 37.3223 31.4556 35.5506 32.1119 33.5179C33.5027 33.2332 34.8167 32.6547 35.9659 31.821C37.115 30.9874 38.0728 29.9178 38.7752 28.684C39.8458 26.8371 40.3023 24.6979 40.0789 22.5748C39.8556 20.4517 38.9639 18.4544 37.5324 16.8707ZM22.4978 37.8849C20.7443 37.8874 19.0459 37.2733 17.6994 36.1501C17.7601 36.117 17.8666 36.0586 17.936 36.0161L25.9004 31.4156C26.1003 31.3019 26.2663 31.137 26.3813 30.9378C26.4964 30.7386 26.5563 30.5124 26.5549 30.2825V19.0542L29.9213 20.998C29.9389 21.0068 29.9541 21.0198 29.9656 21.0359C29.977 21.052 29.9842 21.0707 29.9867 21.0902V30.3889C29.9842 32.375 29.1946 34.2791 27.7909 35.6841C26.3872 37.0892 24.4838 37.8806 22.4978 37.8849ZM6.39227 31.0064C5.51397 29.4888 5.19742 27.7107 5.49804 25.9832C5.55718 26.0187 5.66048 26.0818 5.73461 26.1244L13.699 30.7248C13.8975 30.8408 14.1233 30.902 14.3532 30.902C14.583 30.902 14.8088 30.8408 15.0073 30.7248L24.731 25.1103V28.9979C24.7321 29.0177 24.7283 29.0376 24.7199 29.0556C24.7115 29.0736 24.6988 29.0893 24.6829 29.1012L16.6317 33.7497C14.9096 34.7416 12.8643 35.0097 10.9447 34.4954C9.02506 33.9811 7.38785 32.7263 6.39227 31.0064ZM4.29707 13.6194C5.17156 12.0998 6.55279 10.9364 8.19885 10.3327C8.19885 10.4013 8.19491 10.5228 8.19491 10.6071V19.808C8.19351 20.0378 8.25334 20.2638 8.36823 20.4629C8.48312 20.6619 8.64893 20.8267 8.84863 20.9404L18.5723 26.5542L15.206 28.4979C15.1894 28.5089 15.1703 28.5155 15.1505 28.5173C15.1307 28.5191 15.1107 28.516 15.0924 28.5082L7.04046 23.8557C5.32135 22.8601 4.06716 21.2235 3.55289 19.3046C3.03862 17.3858 3.30624 15.3413 4.29707 13.6194ZM31.955 20.0556L22.2312 14.4411L25.5976 12.4981C25.6142 12.4872 25.6333 12.4805 25.6531 12.4787C25.6729 12.4769 25.6928 12.4801 25.7111 12.4879L33.7631 17.1364C34.9967 17.849 36.0017 18.8982 36.6606 20.1613C37.3194 21.4244 37.6047 22.849 37.4832 24.2684C37.3617 25.6878 36.8382 27.0432 35.9743 28.1759C35.1103 29.3086 33.9415 30.1717 32.6047 30.6641C32.6047 30.5947 32.6047 30.4733 32.6047 30.3889V21.188C32.6066 20.9586 32.5474 20.7328 32.4332 20.5338C32.319 20.3348 32.154 20.1698 31.955 20.0556ZM35.3055 15.0128C35.2464 14.9765 35.1431 14.9142 35.069 14.8717L27.1045 10.2712C26.906 10.1554 26.6803 10.0943 26.4504 10.0943C26.2206 10.0943 25.9948 10.1554 25.7963 10.2712L16.0726 15.8858V11.9982C16.0715 11.9783 16.0753 11.9585 16.0837 11.9405C16.0921 11.9225 16.1048 11.9068 16.1207 11.8949L24.1719 7.25025C25.4053 6.53903 26.8158 6.19376 28.2383 6.25482C29.6608 6.31589 31.0364 6.78077 32.2044 7.59508C33.3723 8.40939 34.2842 9.53945 34.8334 10.8531C35.3826 12.1667 35.5464 13.6095 35.3055 15.0128ZM14.2424 21.9419L10.8752 19.9981C10.8576 19.9893 10.8423 19.9763 10.8309 19.9602C10.8195 19.9441 10.8122 19.9254 10.8098 19.9058V10.6071C10.8107 9.18295 11.2173 7.78848 11.9819 6.58696C12.7466 5.38544 13.8377 4.42659 15.1275 3.82264C16.4173 3.21869 17.8524 2.99464 19.2649 3.1767C20.6775 3.35876 22.0089 3.93941 23.1034 4.85067C23.0427 4.88379 22.937 4.94215 22.8668 4.98473L14.9024 9.58517C14.7025 9.69878 14.5366 9.86356 14.4215 10.0626C14.3065 10.2616 14.2466 10.4877 14.2479 10.7175L14.2424 21.9419ZM16.071 17.9991L20.4018 15.4978L24.7325 17.9975V22.9985L20.4018 25.4983L16.071 22.9985V17.9991Z"})})},exports.OpenIDIcon=function(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",id:"openid",className:"h-5 w-5",children:e.jsx("path",{fill:"currentColor",d:"M271.5 432l-68 32C88.5 453.7 0 392.5 0 318.2c0-71.5 82.5-131 191.7-144.3v43c-71.5 12.5-124 53-124 101.3 0 51 58.5 93.3 135.7 103v-340l68-33.2v384zM448 291l-131.3-28.5 36.8-20.7c-19.5-11.5-43.5-20-70-24.8v-43c46.2 5.5 87.7 19.5 120.3 39.3l35-19.8L448 291z"})})},exports.PaLMIcon=function({size:t=25,className:n=""}){return e.jsxs("svg",{width:t,height:t,className:n,viewBox:"0 0 19 17",fill:"none",preserveAspectRatio:"xMidYMid meet",focusable:"false",children:[e.jsx("path",{d:"M9.62674 16.2202H9.7049C10.4225 16.2202 11.0016 15.6412 11.0016 14.9236V4.04224H8.33008V14.92C8.33008 15.6376 8.90914 16.2202 9.62674 16.2202Z",fill:"#F9AB00"}),e.jsx("path",{d:"M14.6819 8.02813C13.3249 6.66752 11.2964 6.39398 9.66577 7.2004L15.0585 12.5931C15.2823 12.8169 15.6624 12.7281 15.7583 12.4297C16.2308 10.927 15.8756 9.21822 14.6819 8.02813Z",fill:"#5BB974"}),e.jsx("path",{d:"M4.64953 8.02813C6.00659 6.66752 8.03507 6.39398 9.66567 7.2004L4.27297 12.5931C4.04916 12.8169 3.66904 12.7281 3.57312 12.4297C3.10064 10.927 3.45589 9.21822 4.64953 8.02813Z",fill:"#129EAF"}),e.jsx("path",{d:"M14.284 3.84326C12.1383 3.84326 10.3159 5.25005 9.66577 7.20038H18.1918C18.5399 7.20038 18.7744 6.83092 18.6145 6.5183C17.8081 4.93033 16.1704 3.84326 14.284 3.84326Z",fill:"#AF5CF7"}),e.jsx("path",{d:"M10.5574 1.55901C9.04053 3.07593 8.74567 5.36019 9.66577 7.20039L15.6944 1.17179C15.943 0.923113 15.8436 0.496814 15.5132 0.390239C13.8151 -0.1604 11.8896 0.226822 10.5574 1.55901Z",fill:"#FF8BCB"}),e.jsx("path",{d:"M8.77408 1.55901C10.291 3.07593 10.5859 5.36019 9.66576 7.20039L3.63716 1.17179C3.38848 0.923113 3.48795 0.496814 3.81833 0.390239C5.51643 -0.1604 7.44189 0.226822 8.77408 1.55901Z",fill:"#FA7B17"}),e.jsx("path",{d:"M5.04752 3.84326C7.19323 3.84326 9.01566 5.25005 9.66577 7.20038H1.13976C0.791616 7.20038 0.55715 6.83092 0.717013 6.5183C1.52343 4.93033 3.16114 3.84326 5.04752 3.84326Z",fill:"#4285F4"})]})},exports.PaLMinimalIcon=function({className:t=""}){return e.jsxs("svg",{stroke:"currentColor",fill:"none",strokeWidth:"1",viewBox:"0 0 32 32",strokeLinecap:"round",strokeLinejoin:"round",className:jt("h-4 w-4",t),height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"m16 30.238c1.2298 0 2.2259-0.99608 2.2259-2.2259v-11.46c-0.63513-0.56429-1.6553-1.6805-2.2259-2.251-0.79858 0.83793-1.3599 1.3599-2.2259 2.251v11.46c0 1.2298 0.99608 2.2259 2.2259 2.2259z"}),e.jsx("path",{d:"m24.868 15.761c-0.61691-0.61643-1.3121-1.1065-2.0536-1.4703-6.8147 0.010467 0.13304 0.031026-6.8147 0.010467l9.5286 9.5286c0.39324 0.39324 1.0703 0.23743 1.2372-0.29122 0.83841-2.6544 0.20589-5.6723-1.8976-7.7776z"}),e.jsx("path",{d:"m7.1318 15.761c0.5902-0.58975 1.2521-1.0639 1.9575-1.4224 6.9107-0.037427-0.11812-0.057288 6.9107-0.037427l-9.5286 9.5286c-0.39324 0.39324-1.0703 0.23743-1.2372-0.29122-0.83841-2.6543-0.20589-5.6723 1.8976-7.7776z"}),e.jsx("path",{d:"m24.162 8.3655c-0.93169 0-1.8288 0.15009-2.6691 0.42772-5.4924 5.5079 0 0-5.4924 5.5079h15.069c0.61767 0 1.0295-0.65292 0.74938-1.2038-1.432-2.8102-4.3219-4.7318-7.657-4.7318z"}),e.jsx("path",{d:"m17.575 4.333c-0.62613 0.62613-1.1343 1.3257-1.5248 2.0718 1.6767 4.1174 0.53518 6.3909-0.05003 7.8964l10.656-10.656c0.43775-0.43775 0.2671-1.1908-0.3209-1.3819-3.0012-0.97382-6.4031-0.28751-8.7607 2.0701z"}),e.jsx("path",{d:"m14.425 4.333c2.6822 2.6822 3.1997 6.7129 1.5748 9.9682l-10.656-10.656c-0.43775-0.43775-0.2671-1.1908 0.3209-1.3819 3.0012-0.97382 6.4031-0.28751 8.7607 2.0701z"}),e.jsx("path",{d:"m7.8385 8.3655c0.9121 0 1.791 0.14385 2.616 0.41037 5.5455 5.5253-0.061773 0.011675 5.5455 5.5253h-15.069c-0.61768 0-1.0295-0.65292-0.74938-1.2038 1.432-2.8102 4.3219-4.7318 7.657-4.7318z"})]})},exports.Pagination=oT,exports.PaginationContent=iT,exports.PaginationEllipsis=cT,exports.PaginationItem=aT,exports.PaginationLink=sT,exports.PaginationNext=uT,exports.PaginationPrevious=lT,exports.PersonalizationIcon=function({className:t=""}){return e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`icon-sm ${t}`,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4C10.3431 4 9 5.34315 9 7C9 8.65685 10.3431 10 12 10C13.6569 10 15 8.65685 15 7C15 5.34315 13.6569 4 12 4ZM7 7C7 4.23858 9.23858 2 12 2C14.7614 2 17 4.23858 17 7C17 9.76142 14.7614 12 12 12C9.23858 12 7 9.76142 7 7ZM19.0277 15.6255C18.6859 15.5646 18.1941 15.6534 17.682 16.1829C17.4936 16.3777 17.2342 16.4877 16.9632 16.4877C16.6922 16.4877 16.4328 16.3777 16.2444 16.1829C15.7322 15.6534 15.2405 15.5646 14.8987 15.6255C14.5381 15.6897 14.2179 15.9384 14.0623 16.3275C13.8048 16.9713 13.9014 18.662 16.9632 20.4617C20.0249 18.662 20.1216 16.9713 19.864 16.3275C19.7084 15.9384 19.3882 15.6897 19.0277 15.6255ZM21.721 15.5847C22.5748 17.7191 21.2654 20.429 17.437 22.4892C17.1412 22.6484 16.7852 22.6484 16.4893 22.4892C12.6609 20.4291 11.3516 17.7191 12.2053 15.5847C12.6117 14.5689 13.4917 13.8446 14.5481 13.6565C15.3567 13.5125 16.2032 13.6915 16.9632 14.1924C17.7232 13.6915 18.5697 13.5125 19.3783 13.6565C20.4347 13.8446 21.3147 14.5689 21.721 15.5847ZM9.92597 14.2049C10.1345 14.7163 9.889 15.2999 9.3776 15.5084C7.06131 16.453 5.5 18.5813 5.5 20.9999C5.5 21.5522 5.05228 21.9999 4.5 21.9999C3.94772 21.9999 3.5 21.5522 3.5 20.9999C3.5 17.6777 5.641 14.8723 8.6224 13.6565C9.1338 13.448 9.71743 13.6935 9.92597 14.2049Z",fill:"currentColor"})})},exports.PinIcon=function({unpin:t=!1}){return t?e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon-sm",children:[e.jsx("path",{d:"M15 15V17.5585C15 18.4193 14.4491 19.1836 13.6325 19.4558L13.1726 19.6091C12.454 19.8487 11.6616 19.6616 11.126 19.126L4.87403 12.874C4.33837 12.3384 4.15132 11.546 4.39088 10.8274L4.54415 10.3675C4.81638 9.55086 5.58066 9 6.44152 9H9M12 6.2L13.6277 3.92116C14.3461 2.91549 15.7955 2.79552 16.6694 3.66942L20.3306 7.33058C21.2045 8.20448 21.0845 9.65392 20.0788 10.3723L18 11.8571",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M8 16L3 21",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M4 4L20 20",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}):e.jsx("svg",{className:"icon-sm",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.4845 2.8798C16.1773 1.57258 14.0107 1.74534 12.9272 3.24318L9.79772 7.56923C9.60945 7.82948 9.30775 7.9836 8.98654 7.9836H6.44673C3.74061 7.9836 2.27414 11.6759 4.16948 13.5713L6.59116 15.993L2.29324 20.2909C1.90225 20.6819 1.90225 21.3158 2.29324 21.7068C2.68422 22.0977 3.31812 22.0977 3.70911 21.7068L8.00703 17.4088L10.4287 19.8305C12.3241 21.7259 16.0164 20.2594 16.0164 17.5533V15.0135C16.0164 14.6923 16.1705 14.3906 16.4308 14.2023L20.7568 11.0728C22.2547 9.98926 22.4274 7.8227 21.1202 6.51549L17.4845 2.8798ZM11.8446 18.4147C12.4994 19.0694 14.0141 18.4928 14.0141 17.5533V15.0135C14.0141 14.0499 14.4764 13.1447 15.2572 12.58L19.5832 9.45047C20.0825 9.08928 20.1401 8.3671 19.7043 7.93136L16.0686 4.29567C15.6329 3.85993 14.9107 3.91751 14.5495 4.4168L11.4201 8.74285C10.8553 9.52359 9.95016 9.98594 8.98654 9.98594H6.44673C5.5072 9.98594 4.93059 11.5006 5.58535 12.1554L11.8446 18.4147Z",fill:"currentColor"})})},exports.PixelCard=function({variant:n="default",gap:r,speed:o,colors:i,noFocus:a,className:s="",progress:l,randomness:u=.3,width:c,height:d}){const f=t.useRef(null),p=t.useRef(null),m=t.useRef([]),h=t.useRef(),g=t.useRef(performance.now()),v=t.useRef(l),b=t.useRef(window.matchMedia("(prefers-reduced-motion: reduce)").matches).current,w=w$[n],y=r??w.gap,x=o??w.speed,C=i??w.colors,S=a??w.noFocus,k=t.useCallback((()=>{if(!p.current)return;if(void 0===v.current)return void(p.current.style.opacity="1");const e=v.current>=.9?1-(v.current-.9)/.1:1;p.current.style.opacity=String(b$(e))}),[]),E=t.useCallback((e=>{h.current=requestAnimationFrame((()=>E(e)));const t=performance.now(),n=t-g.current;if(n<1e3/60)return;g.current=t-n%(1e3/60);const r=p.current?.getContext("2d");if(!r||!p.current)return;r.clearRect(0,0,p.current.width,p.current.height);let o=!0;for(const t of m.current)"appearWithProgress"===e?void 0!==v.current?t.appearWithProgress(v.current):t.isIdle=!0:t[e](),t.isIdle||(o=!1);k(),o&&cancelAnimationFrame(h.current)}),[k]),R=t.useCallback((e=>{cancelAnimationFrame(h.current),h.current=requestAnimationFrame((()=>E(e)))}),[E]),P=t.useCallback((()=>{if(!f.current||!p.current)return;const{width:e,height:t}=f.current.getBoundingClientRect(),n=p.current.getContext("2d");p.current.width=Math.floor(e),p.current.height=Math.floor(t);const r=C.split(","),o=[],i=e/2,a=t/2,s=Math.hypot(i,a);for(let l=0;l<e;l+=y)for(let e=0;e<t;e+=y){const t=r[Math.floor(Math.random()*r.length)],c=Math.hypot(l-i,e-a)/s,d=b$(c*(1-u)+Math.random()*u),f=b?0:c*s;n&&o.push(new g$(p.current,n,l,e,t,v$(x,b),f,d))}m.current=o,void 0!==v.current&&R("appearWithProgress")}),[y,C,x,u,b,R]);return t.useEffect((()=>{v.current=l,void 0!==l&&R("appearWithProgress")}),[l,R]),t.useEffect((()=>{void 0===l&&cancelAnimationFrame(h.current)}),[l]),t.useEffect((()=>{P();const e=new ResizeObserver(P);return f.current&&e.observe(f.current),()=>{e.disconnect(),cancelAnimationFrame(h.current)}}),[P]),e.jsx("div",{ref:f,style:{width:c||"100%",height:d||"100%"},children:e.jsx("div",{className:jt("relative isolate grid select-none place-items-center overflow-hidden rounded-lg border border-border-light shadow-md transition-colors duration-200 ease-in-out",s),style:{width:"100%",height:"100%",transitionTimingFunction:"cubic-bezier(0.5, 1, 0.89, 1)"},onMouseEnter:()=>void 0===v.current&&R("appear"),onMouseLeave:()=>void 0===v.current&&R("disappear"),onFocus:S?void 0:e=>{S||e.currentTarget.contains(e.relatedTarget)||void 0!==v.current||R("appear")},onBlur:S?void 0:e=>{S||e.currentTarget.contains(e.relatedTarget)||void 0!==v.current||R("disappear")},tabIndex:S?-1:0,children:e.jsx("canvas",{ref:p,className:"pointer-events-none absolute inset-0 block",width:c&&"auto"!==c?parseInt(String(c)):void 0,height:d&&"auto"!==d?parseInt(String(d)):void 0})})})},exports.Plugin=function({className:t="",...n}){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"none",className:jt("h-4 w-4",t),width:"16",height:"16",strokeWidth:"2",...n,children:e.jsxs("g",{fill:"currentColor",children:[e.jsx("path",{d:"M13.164.98a.7.7 0 0 0-1.328 0l-.478 1.435a.7.7 0 0 1-.443.443l-1.436.478a.7.7 0 0 0 0 1.328l1.436.479a.7.7 0 0 1 .443.442l.478 1.436a.7.7 0 0 0 1.328 0l.478-1.436a.7.7 0 0 1 .443-.443l1.436-.478a.7.7 0 0 0 0-1.328l-1.436-.478a.7.7 0 0 1-.443-.443L13.164.979Z"}),e.jsx("path",{d:"M13.237 10.534c-.228-.245-.513-.46-.847-.46a.823.823 0 0 0-.828.849c.04 1.04.128 2.067.263 3.08a.619.619 0 0 1-.528.695c-.872.121-1.748.208-2.626.262a.8.8 0 0 1-.845-.805c0-.325.21-.602.45-.82.235-.215.375-.488.375-.787 0-.683-.738-1.237-1.65-1.237-.911 0-1.65.554-1.65 1.237 0 .294.137.563.364.775.245.229.461.513.461.848a.823.823 0 0 1-.85.829 33.809 33.809 0 0 1-3.266-.278.619.619 0 0 1-.532-.532 34.099 34.099 0 0 1-.278-3.267.823.823 0 0 1 .83-.85c.333 0 .619.216.846.461.212.228.482.364.776.364.683 0 1.237-.738 1.237-1.65 0-.91-.554-1.65-1.237-1.65-.299 0-.572.142-.786.376-.219.24-.496.45-.821.45a.8.8 0 0 1-.805-.845c.054-.885.142-1.76.262-2.626a.619.619 0 0 1 .695-.528c1.022.136 2.05.224 3.08.263a.822.822 0 0 0 .85-.828c0-.334-.217-.62-.462-.847-.227-.212-.363-.482-.363-.776C5.352 1.554 6.09 1 7.002 1c.91 0 1.649.554 1.649 1.237 0 .173-.012.327-.029.473C8.258 3 8 3.41 8 4c0 1.5 1.667 1.833 2.5 2 .167.833.5 2.5 2 2.5.732 0 1.186-.397 1.479-.9l.034-.001c.683 0 1.237.738 1.237 1.65 0 .911-.554 1.65-1.237 1.65-.294 0-.564-.137-.776-.364Z"})]})})},exports.Progress=OT,exports.QuestionMark=({className:t=""})=>e.jsx("span",{children:e.jsx("div",{className:jt("border-token-border-medium text-token-text-tertiary ml-2 flex h-3.5 w-3.5 cursor-default items-center justify-center rounded-full border text-[0.5rem] font-medium leading-none",t),children:"?"})}),exports.RegenerateIcon=function({className:t="",size:n="1em"}){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:n,width:n,fill:"none",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:jt("icon-md-heavy",t),children:e.jsx("path",{fill:"currentColor",d:"M3.07 10.876C3.623 6.436 7.41 3 12 3a9.15 9.15 0 0 1 6.012 2.254V4a1 1 0 1 1 2 0v4a1 1 0 0 1-1 1H15a1 1 0 1 1 0-2h1.957A7.15 7.15 0 0 0 12 5a7 7 0 0 0-6.946 6.124 1 1 0 1 1-1.984-.248m16.992 1.132a1 1 0 0 1 .868 1.116C20.377 17.564 16.59 21 12 21a9.15 9.15 0 0 1-6-2.244V20a1 1 0 1 1-2 0v-4a1 1 0 0 1 1-1h4a1 1 0 1 1 0 2H7.043A7.15 7.15 0 0 0 12 19a7 7 0 0 0 6.946-6.124 1 1 0 0 1 1.116-.868"})})},exports.ResizableHandle=({withHandle:t,className:n="",...r})=>e.jsx(yL,{className:jt("relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",n),...r,children:t&&e.jsx("div",{className:"z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border",children:e.jsx(yp,{className:"h-2.5 w-2.5"})})}),exports.ResizableHandleAlt=({withHandle:t,className:n="",...r})=>e.jsx(yL,{className:jt("group relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",n),...r,children:t&&e.jsx("div",{className:"invisible z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border group-hover:visible group-active:visible",children:e.jsx(yp,{className:"h-2.5 w-2.5"})})}),exports.ResizablePanel=xL,exports.ResizablePanelGroup=({className:t="",...n})=>e.jsx(vL,{className:jt("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",t),...n}),exports.SamlIcon=function(){return e.jsx("svg",{width:"800px",height:"800px",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"none",className:"h-5 w-5",children:e.jsxs("g",{fill:"#000000",children:[e.jsx("path",{d:"M7.754 2l.463.41c.343.304.687.607 1.026.915C11.44 5.32 13.3 7.565 14.7 10.149c.072.132.137.268.202.403l.098.203-.108.057-.081-.115-.21-.299-.147-.214c-1.019-1.479-2.04-2.96-3.442-4.145a6.563 6.563 0 00-1.393-.904c-1.014-.485-1.916-.291-2.69.505-.736.757-1.118 1.697-1.463 2.653-.045.123-.092.245-.139.367l-.082.215-.172-.055c.1-.348.192-.698.284-1.049.21-.795.42-1.59.712-2.356.31-.816.702-1.603 1.093-2.39.169-.341.338-.682.5-1.025h.092z"}),e.jsx("path",{d:"M8.448 11.822c-1.626.77-5.56 1.564-7.426 1.36C.717 11.576 3.71 4.05 5.18 2.91l-.095.218a4.638 4.638 0 01-.138.303l-.066.129c-.76 1.462-1.519 2.926-1.908 4.53a7.482 7.482 0 00-.228 1.689c-.01 1.34.824 2.252 2.217 2.309.67.027 1.347-.043 2.023-.114.294-.03.587-.061.88-.084.108-.008.214-.021.352-.039l.231-.028z"}),e.jsx("path",{d:"M3.825 14.781c-.445.034-.89.068-1.333.108 4.097.39 8.03-.277 11.91-1.644-1.265-2.23-2.97-3.991-4.952-5.522.026.098.084.169.141.239l.048.06c.17.226.348.448.527.67.409.509.818 1.018 1.126 1.578.778 1.42.356 2.648-1.168 3.296-1.002.427-2.097.718-3.18.892-1.03.164-2.075.243-3.119.323z"})]})})},exports.SaveIcon=function({size:t="1em",className:n}){return e.jsx("svg",{viewBox:"64 64 896 896",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",className:n,width:t,height:t,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"})})},exports.SelectDropDown=function({title:n,value:r,disabled:o,setValue:i,availableValues:a,showAbove:s=!1,showLabel:l=!0,emptyTitle:u=!1,iconSide:c="right",optionIconSide:d="left",placeholder:f,containerClassName:p,optionsListClass:m,optionsClass:h,currentValueClass:g,subContainerClassName:v,className:b,renderOption:w,searchClassName:y,searchPlaceholder:x,showOptionIcon:C=!1}){const S=Cw(),k={className:"top-full mt-3"};s&&(k.className="bottom-full mb-3");let E=n;u?E="":E||(E=S("com_ui_model"));const R=a??[],[P,N]=JT({availableOptions:R,placeholder:x,getTextKeyOverride:e=>function(e){return"string"==typeof e?e:"label"in e?e.label??"":"value"in e?(e.value??"")+"":""}(e).toUpperCase(),className:y,disabled:o}),j=null!=N?P:R,M=C&&null!=r&&null!=r.icon,A=t.useRef(null);return e.jsx("div",{className:jt("flex items-center justify-center gap-2",p??""),children:e.jsx("div",{className:jt("relative w-full",v??""),children:e.jsx(hq,{value:r,onChange:i,disabled:o,children:({open:n})=>e.jsxs(e.Fragment,{children:[e.jsxs(cq,{ref:A,"data-testid":"select-dropdown-button",onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),!n&&A.current&&A.current.click())},className:jt("relative flex w-full cursor-default flex-col rounded-md border border-black/10 bg-white py-2 pl-3 pr-10 text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:bg-white dark:border-gray-600 dark:bg-gray-700 sm:text-sm",b??""),children:[l&&e.jsx(mU,{className:"block text-xs text-gray-700 dark:text-gray-500",id:"headlessui-listbox-label-:r1:","data-headlessui-state":"",children:E}),e.jsx("span",{className:"inline-flex w-full truncate",children:e.jsxs("span",{className:jt("flex h-6 items-center gap-1 truncate text-sm text-gray-800 dark:text-white",l?"":"text-xs",g??""),children:[!l&&!u&&e.jsxs("span",{className:"text-xs text-gray-700 dark:text-gray-500",children:[E,":"]}),M&&"right"!==d&&e.jsx("span",{className:"icon-md flex items-center",children:r.icon}),M&&e.jsx("span",{className:"icon-md absolute right-0 mr-8 flex items-center",children:r.icon}),r?"string"!=typeof r?r.label??"":r:e.jsx("span",{className:"text-text-secondary",children:f})]})}),e.jsx("span",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2",children:e.jsx("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4 text-gray-400",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",style:s?{transform:"scaleY(-1)"}:{},children:e.jsx("polyline",{points:"6 9 12 15 18 9"})})})]}),e.jsx(HG,{show:n,as:t.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",...k,children:e.jsxs(fq,{className:jt("absolute z-10 mt-2 max-h-60 w-full overflow-auto rounded border bg-white text-xs ring-black/10 dark:border-gray-600 dark:bg-gray-700 dark:ring-white/20 md:w-[100%]",m??""),children:[w&&e.jsx(pq,{value:null,className:jt("group relative flex h-[42px] cursor-pointer select-none items-center overflow-hidden pl-3 pr-9 text-gray-800 hover:bg-gray-20 dark:text-white dark:hover:bg-gray-700",h??""),children:w()},"listbox-render-option"),N,j.map(((t,n)=>{if(!t)return null;const o="string"==typeof t?t:t.label??t.value??"",i="string"==typeof t?t:t.value??"",a="string"==typeof t?null:t.icon??null;let s=r;return"string"!=typeof s&&(s=s?.value??""),e.jsx(pq,{value:t,className:({active:e})=>jt("group relative flex h-[42px] cursor-pointer select-none items-center overflow-hidden pl-3 pr-9 text-gray-800 hover:bg-gray-20 dark:text-white dark:hover:bg-gray-600",e?"bg-surface-active text-text-primary":"",h??""),children:e.jsxs("span",{className:"flex items-center gap-1.5 truncate",children:[e.jsxs("span",{className:jt("flex h-6 items-center gap-1 text-gray-800 dark:text-gray-200",t===r?"font-semibold":"","left"===c?"ml-4":""),children:[null!=a&&e.jsx("span",{className:jt("mr-1","right"===d?"absolute right-0 pr-2":""),children:a}),o]}),i===s&&e.jsx("span",{className:jt("absolute inset-y-0 flex items-center text-gray-800 dark:text-gray-200","left"===c?"left-0 pl-2":"right-0 pr-3"),children:e.jsx(c$,{})})]})},n)}))]})})]})})})})},exports.SendIcon=function({size:t=24,className:n=""}){return e.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",className:jt("text-white dark:text-black",n),children:e.jsx("path",{d:"M7 11L12 6L17 11M12 18V7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},exports.SendMessageIcon=function(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"none",className:"icon-sm m-1 md:m-0",style:{width:"1em",height:"1em",verticalAlign:"middle"},children:e.jsx("path",{d:"M.5 1.163A1 1 0 0 1 1.97.28l12.868 6.837a1 1 0 0 1 0 1.766L1.969 15.72A1 1 0 0 1 .5 14.836V10.33a1 1 0 0 1 .816-.983L8.5 8 1.316 6.653A1 1 0 0 1 .5 5.67V1.163Z",fill:"currentColor"})})},exports.Separator=ZC,exports.Sidebar=function({className:t}){return e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.85719 3H15.1428C16.2266 2.99999 17.1007 2.99998 17.8086 3.05782C18.5375 3.11737 19.1777 3.24318 19.77 3.54497C20.7108 4.02433 21.4757 4.78924 21.955 5.73005C22.2568 6.32234 22.3826 6.96253 22.4422 7.69138C22.5 8.39925 22.5 9.27339 22.5 10.3572V13.6428C22.5 14.7266 22.5 15.6008 22.4422 16.3086C22.3826 17.0375 22.2568 17.6777 21.955 18.27C21.4757 19.2108 20.7108 19.9757 19.77 20.455C19.1777 20.7568 18.5375 20.8826 17.8086 20.9422C17.1008 21 16.2266 21 15.1428 21H8.85717C7.77339 21 6.89925 21 6.19138 20.9422C5.46253 20.8826 4.82234 20.7568 4.23005 20.455C3.28924 19.9757 2.52433 19.2108 2.04497 18.27C1.74318 17.6777 1.61737 17.0375 1.55782 16.3086C1.49998 15.6007 1.49999 14.7266 1.5 13.6428V10.3572C1.49999 9.27341 1.49998 8.39926 1.55782 7.69138C1.61737 6.96253 1.74318 6.32234 2.04497 5.73005C2.52433 4.78924 3.28924 4.02433 4.23005 3.54497C4.82234 3.24318 5.46253 3.11737 6.19138 3.05782C6.89926 2.99998 7.77341 2.99999 8.85719 3ZM6.35424 5.05118C5.74907 5.10062 5.40138 5.19279 5.13803 5.32698C4.57354 5.6146 4.1146 6.07354 3.82698 6.63803C3.69279 6.90138 3.60062 7.24907 3.55118 7.85424C3.50078 8.47108 3.5 9.26339 3.5 10.4V13.6C3.5 14.7366 3.50078 15.5289 3.55118 16.1458C3.60062 16.7509 3.69279 17.0986 3.82698 17.362C4.1146 17.9265 4.57354 18.3854 5.13803 18.673C5.40138 18.8072 5.74907 18.8994 6.35424 18.9488C6.97108 18.9992 7.76339 19 8.9 19H9.5V5H8.9C7.76339 5 6.97108 5.00078 6.35424 5.05118ZM11.5 5V19H15.1C16.2366 19 17.0289 18.9992 17.6458 18.9488C18.2509 18.8994 18.5986 18.8072 18.862 18.673C19.4265 18.3854 19.8854 17.9265 20.173 17.362C20.3072 17.0986 20.3994 16.7509 20.4488 16.1458C20.4992 15.5289 20.5 14.7366 20.5 13.6V10.4C20.5 9.26339 20.4992 8.47108 20.4488 7.85424C20.3994 7.24907 20.3072 6.90138 20.173 6.63803C19.8854 6.07354 19.4265 5.6146 18.862 5.32698C18.5986 5.19279 18.2509 5.10062 17.6458 5.05118C17.0289 5.00078 16.2366 5 15.1 5H11.5ZM5 8.5C5 7.94772 5.44772 7.5 6 7.5H7C7.55229 7.5 8 7.94772 8 8.5C8 9.05229 7.55229 9.5 7 9.5H6C5.44772 9.5 5 9.05229 5 8.5ZM5 12C5 11.4477 5.44772 11 6 11H7C7.55229 11 8 11.4477 8 12C8 12.5523 7.55229 13 7 13H6C5.44772 13 5 12.5523 5 12Z",fill:"currentColor"})})},exports.Skeleton=QC,exports.Slider=HC,exports.Sparkles=function({className:t="",size:n=24}){return e.jsxs("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:jt("icon-md shrink-0",t),children:[e.jsx("path",{d:"M19.3975 1.35498C19.3746 1.15293 19.2037 1.00021 19.0004 1C18.7971 0.999793 18.6259 1.15217 18.6026 1.35417C18.4798 2.41894 18.1627 3.15692 17.6598 3.65983C17.1569 4.16274 16.4189 4.47983 15.3542 4.60264C15.1522 4.62593 14.9998 4.79707 15 5.00041C15.0002 5.20375 15.1529 5.37457 15.355 5.39746C16.4019 5.51605 17.1562 5.83304 17.6716 6.33906C18.1845 6.84269 18.5078 7.57998 18.6016 8.63539C18.6199 8.84195 18.7931 9.00023 19.0005 9C19.2078 8.99977 19.3806 8.84109 19.3985 8.6345C19.4883 7.59673 19.8114 6.84328 20.3273 6.32735C20.8433 5.81142 21.5967 5.48834 22.6345 5.39851C22.8411 5.38063 22.9998 5.20782 23 5.00045C23.0002 4.79308 22.842 4.61992 22.6354 4.60157C21.58 4.50782 20.8427 4.18447 20.3391 3.67157C19.833 3.15623 19.516 2.40192 19.3975 1.35498Z",fill:"currentColor"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 3C11.4833 3 11.8974 3.34562 11.9839 3.82111C12.4637 6.46043 13.279 8.23983 14.5196 9.48039C15.7602 10.721 17.5396 11.5363 20.1789 12.0161C20.6544 12.1026 21 12.5167 21 13C21 13.4833 20.6544 13.8974 20.1789 13.9839C17.5396 14.4637 15.7602 15.279 14.5196 16.5196C13.279 17.7602 12.4637 19.5396 11.9839 22.1789C11.8974 22.6544 11.4833 23 11 23C10.5167 23 10.1026 22.6544 10.0161 22.1789C9.53625 19.5396 8.72096 17.7602 7.48039 16.5196C6.23983 15.279 4.46043 14.4637 1.82111 13.9839C1.34562 13.8974 1 13.4833 1 13C1 12.5167 1.34562 12.1026 1.82111 12.0161C4.46043 11.5363 6.23983 10.721 7.48039 9.48039C8.72096 8.23983 9.53625 6.46043 10.0161 3.82111C10.1026 3.34562 10.5167 3 11 3ZM5.66618 13C6.9247 13.5226 7.99788 14.2087 8.89461 15.1054C9.79134 16.0021 10.4774 17.0753 11 18.3338C11.5226 17.0753 12.2087 16.0021 13.1054 15.1054C14.0021 14.2087 15.0753 13.5226 16.3338 13C15.0753 12.4774 14.0021 11.7913 13.1054 10.8946C12.2087 9.99788 11.5226 8.9247 11 7.66618C10.4774 8.9247 9.79134 9.99788 8.89461 10.8946C7.99788 11.7913 6.9247 12.4774 5.66618 13Z",fill:"currentColor"})]})},exports.SpeechIcon=function({className:t}){return e.jsxs("svg",{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",className:jt(t),children:[e.jsx("path",{d:"M2 10v3"}),e.jsx("path",{d:"M6 6v11"}),e.jsx("path",{d:"M10 3v18"}),e.jsx("path",{d:"M14 8v7"}),e.jsx("path",{d:"M18 5v13"}),e.jsx("path",{d:"M22 10v3"})]})},exports.Spinner=u$,exports.SplitText=({text:n="",className:r="",delay:o=100,animationFrom:i={opacity:0,transform:"translate3d(0,40px,0)"},animationTo:a={opacity:1,transform:"translate3d(0,0,0)"},easing:s=(e=>e),threshold:l=.1,rootMargin:u="-100px",textAlign:c="center",onLetterAnimationComplete:d,onLineCountChange:f})=>{const p=n.split(" ").map(ZH),m=p.flat(),[h,g]=t.useState(!1),v=t.useRef(null),b=t.useRef(0),[w]=function(e,n,r){const o=X_.fun(n)&&n;o&&!r&&(r=[]);const i=t.useMemo((()=>o||3==arguments.length?IH():void 0),[]),a=t.useRef(0),s=dz(),l=t.useMemo((()=>({ctrls:[],queue:[],flush(e,t){const n=EH(e,t);return a.current>0&&!l.queue.length&&!Object.keys(n).some((t=>!e.springs[t]))?SH(e,t):new Promise((r=>{RH(e,n),l.queue.push((()=>{r(SH(e,t))})),s()}))}})),[]),u=t.useRef([...l.ctrls]),c=[],d=mz(e)||0;function f(e,t){for(let r=e;r<t;r++){const e=u.current[r]||(u.current[r]=new CH(null,l.flush)),t=o?o(r,e):n[r];t&&(c[r]=hH(t))}}t.useMemo((()=>{Z_(u.current.slice(e,d),(e=>{!function(e,t){e.ref?.delete(e),t?.delete(e)}(e,i),e.stop(!0)})),u.current.length=e,f(d,e)}),[e]),t.useMemo((()=>{f(0,Math.min(d,e))}),r);const p=u.current.map(((e,t)=>EH(e,c[t]))),m=t.useContext(MH),h=mz(m),g=m!==h&&function(e){for(const t in e)return!0;return!1}(m);uz((()=>{a.current++,l.ctrls=u.current;const{queue:e}=l;e.length&&(l.queue=[],Z_(e,(e=>e()))),Z_(u.current,((e,t)=>{i?.add(e),g&&e.start({default:m});const n=c[t];n&&(function(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}(e,n.ref),e.ref?e.queue.push(n):e.start(n))}))})),fz((()=>()=>{Z_(l.ctrls,(e=>e.stop(!0)))}));const v=p.map((e=>({...e})));return i?[v,i]:v}(m.length,(e=>({from:i,to:h?async e=>{await e(a),b.current+=1,b.current===m.length&&d&&d()}:i,delay:e*o,config:{easing:s}})),[h,n,o,i,a,s,d]);return t.useEffect((()=>{const e=new IntersectionObserver((([t])=>{t.isIntersecting&&(g(!0),v.current&&e.unobserve(v.current))}),{threshold:l,rootMargin:u});return v.current&&e.observe(v.current),()=>e.disconnect()}),[l,u]),t.useEffect((()=>{if(v.current&&h){const e=v.current;setTimeout((()=>{const t=parseInt(getComputedStyle(e).lineHeight)||1.2*parseInt(getComputedStyle(e).fontSize),n=e.offsetHeight,r=Math.round(n/t);f&&f(r)}),100)}}),[h,n,f]),e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"sr-only",children:n}),e.jsx("p",{ref:v,className:`split-parent inline overflow-hidden ${r}`,style:{textAlign:c,whiteSpace:"normal",wordWrap:"break-word"},"aria-hidden":"true",children:p.map(((t,n)=>e.jsxs("span",{style:{display:"inline-block",whiteSpace:"nowrap"},children:[t.map(((t,r)=>{const o=p.slice(0,n).reduce(((e,t)=>e+t.length),0)+r;return e.jsx(YH.span,{style:w[o],className:"inline-block transform transition-opacity will-change-transform",children:t},o)})),n<p.length-1&&e.jsx("span",{style:{display:"inline-block",width:"0.3em"},children:" "})]},n)))})]})},exports.SquirclePlusIcon=function(){return e.jsxs("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:"text-3xl",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),e.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})},exports.StopGeneratingIcon=function({className:t=""}){return e.jsx("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2.5",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:jt("h-3 w-3 text-gray-600 dark:text-gray-400",t),height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"})})},exports.Switch=SS,exports.Table=kS,exports.TableBody=RS,exports.TableCaption=AS,exports.TableCell=MS,exports.TableFooter=PS,exports.TableHead=jS,exports.TableHeader=ES,exports.TableRow=NS,exports.Tabs=ck,exports.TabsContent=pk,exports.TabsList=dk,exports.TabsTrigger=fk,exports.Tag=hk,exports.Textarea=gk,exports.TextareaAutosize=Ak,exports.ThemeContext=nw,exports.ThemeProvider=({initialTheme:n,children:o})=>{const[i,a]=t.useState((()=>n??At())),s=r.useSetAtom(ew);return t.useEffect((()=>{const e=document.documentElement,t="system"===i?window.matchMedia("(prefers-color-scheme: dark)").matches:"dark"===i;e.classList.toggle("dark",t),e.classList.toggle("light",!t),localStorage.setItem("color-theme",i)}),[i]),t.useEffect((()=>{if("system"!==i)return;const e=window.matchMedia("(prefers-color-scheme: dark)"),t=e=>a(e.matches?"dark":"light");return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}),[i]),t.useEffect((()=>{const e=localStorage.getItem("fontSize")||"text-base";Mt(e),s(e)}),[s]),e.jsx(nw.Provider,{value:{theme:i,setTheme:a},children:o})},exports.ThemeSelector=({returnThemeOnly:n})=>{const{theme:r,setTheme:o}=t.useContext(nw),[i,a]=t.useState(""),s=t.useCallback((e=>{const t=Date.now();"number"==typeof window.lastThemeChange&&t-window.lastThemeChange<500||(window.lastThemeChange=t,o(e),a("dark"===e?"Dark theme enabled":"Light theme enabled"))}),[o]);return t.useEffect((()=>{if("system"===r){const e=window.matchMedia("(prefers-color-scheme: dark)").matches;o(e?"dark":"light")}}),[r,o]),t.useEffect((()=>{if(i){const e=setTimeout((()=>a("")),1e3);return()=>clearTimeout(e)}}),[i]),!0===n?e.jsx(S$,{theme:r,onChange:s}):e.jsxs("div",{className:"flex flex-col items-center justify-center bg-white pt-6 dark:bg-gray-900 sm:pt-0",children:[e.jsx("div",{className:"absolute bottom-0 left-0 m-4",children:e.jsx(S$,{theme:r,onChange:s})}),i&&e.jsx("div",{"aria-live":"polite",className:"sr-only",children:i})]})},exports.ThumbDownIcon=function({className:t="",size:n="1em",bold:r=!1}){return r?e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",height:n,width:n,fill:"none",viewBox:"0 0 24 24",className:t,children:[e.jsx("path",{d:"M11.4079 21.4961C11.1953 21.8698 10.7683 22.0649 10.348 21.9805C8.4373 21.5968 7.27541 19.6391 7.84844 17.7691L8.69697 14.9999L6.98577 14.9999C4.35915 14.9999 2.45151 12.492 3.14262 9.94747L4.50063 4.94747C4.97329 3.20722 6.54741 1.99994 8.34378 1.99994H14.0328C15.131 2.00207 16.0206 2.89668 16.0206 3.99994V14.9999H15.6827C15.3253 14.9999 14.9953 15.1922 14.818 15.5038L11.4079 21.4961Z",fill:"currentColor"}),e.jsx("path",{d:"M18.0124 14.9999C19.6624 14.9999 21 13.6568 21 11.9999V4.99994C21 3.34308 19.6624 1.99994 18.0124 1.99994H17.4794C17.8184 2.58829 18.0124 3.27136 18.0124 3.99994V14.9999Z",fill:"currentColor"})]}):e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:n,width:n,fill:"none",viewBox:"0 0 24 24",className:t,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.8727 21.4961C11.6725 21.8466 11.2811 22.0423 10.8805 21.9922L10.4267 21.9355C7.95958 21.6271 6.36855 19.1665 7.09975 16.7901L7.65054 15H6.93226C4.29476 15 2.37923 12.4921 3.0732 9.94753L4.43684 4.94753C4.91145 3.20728 6.49209 2 8.29589 2H18.0045C19.6614 2 21.0045 3.34315 21.0045 5V12C21.0045 13.6569 19.6614 15 18.0045 15H16.0045C15.745 15 15.5054 15.1391 15.3766 15.3644L11.8727 21.4961ZM14.0045 4H8.29589C7.39399 4 6.60367 4.60364 6.36637 5.47376L5.00273 10.4738C4.65574 11.746 5.61351 13 6.93226 13H9.00451C9.32185 13 9.62036 13.1506 9.8089 13.4059C9.99743 13.6612 10.0536 13.9908 9.96028 14.2941L9.01131 17.3782C8.6661 18.5002 9.35608 19.6596 10.4726 19.9153L13.6401 14.3721C13.9523 13.8258 14.4376 13.4141 15.0045 13.1902V5C15.0045 4.44772 14.5568 4 14.0045 4ZM17.0045 13V5C17.0045 4.64937 16.9444 4.31278 16.8338 4H18.0045C18.5568 4 19.0045 4.44772 19.0045 5V12C19.0045 12.5523 18.5568 13 18.0045 13H17.0045Z",fill:"currentColor"})})},exports.ThumbUpIcon=function({className:t="",size:n="1em",bold:r=!1}){return r?e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",height:n,width:n,fill:"none",viewBox:"0 0 24 24",className:t,children:[e.jsx("path",{d:"M12.592 2.50386C12.8047 2.13014 13.2317 1.935 13.652 2.01942C15.5627 2.40314 16.7246 4.36079 16.1516 6.23085L15.303 9L17.0142 9C19.6409 9 21.5485 11.5079 20.8574 14.0525L19.4994 19.0525C19.0267 20.7927 17.4526 22 15.6562 22H9.96721C8.869 21.9979 7.97939 21.1033 7.97939 20V9H8.31734C8.67472 9 9.0047 8.80771 9.18201 8.49613L12.592 2.50386Z",fill:"currentColor"}),e.jsx("path",{d:"M5.98763 9C4.33761 9 3 10.3431 3 12V19C3 20.6569 4.33761 22 5.98763 22H6.52055C6.18162 21.4116 5.98763 20.7286 5.98763 20V9Z",fill:"currentColor"})]}):e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:n,width:n,fill:"none",viewBox:"0 0 24 24",className:t,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.1318 2.50389C12.3321 2.15338 12.7235 1.95768 13.124 2.00775L13.5778 2.06447C16.0449 2.37286 17.636 4.83353 16.9048 7.20993L16.354 8.99999H17.0722C19.7097 8.99999 21.6253 11.5079 20.9313 14.0525L19.5677 19.0525C19.0931 20.7927 17.5124 22 15.7086 22H6C4.34315 22 3 20.6568 3 19V12C3 10.3431 4.34315 8.99999 6 8.99999H8C8.25952 8.99999 8.49914 8.86094 8.6279 8.63561L12.1318 2.50389ZM10 20H15.7086C16.6105 20 17.4008 19.3964 17.6381 18.5262L19.0018 13.5262C19.3488 12.2539 18.391 11 17.0722 11H15C14.6827 11 14.3841 10.8494 14.1956 10.5941C14.0071 10.3388 13.9509 10.0092 14.0442 9.70591L14.9932 6.62175C15.3384 5.49984 14.6484 4.34036 13.5319 4.08468L10.3644 9.62789C10.0522 10.1742 9.56691 10.5859 9 10.8098V19C9 19.5523 9.44772 20 10 20ZM7 11V19C7 19.3506 7.06015 19.6872 7.17071 20H6C5.44772 20 5 19.5523 5 19V12C5 11.4477 5.44772 11 6 11H7Z",fill:"currentColor"})})},exports.Toast=function(){const{toast:t,onOpenChange:n}=rw(),r={[exports.NotificationSeverity.INFO]:"border-gray-500 bg-gray-500",[exports.NotificationSeverity.SUCCESS]:"border-green-500 bg-green-500",[exports.NotificationSeverity.WARNING]:"border-orange-500 bg-orange-500",[exports.NotificationSeverity.ERROR]:"border-red-500 bg-red-500"};return e.jsx(nE,{open:t.open,onOpenChange:n,className:"toast-root",style:{height:"74px",marginBottom:"0px"},children:e.jsx("div",{className:"w-full p-1 text-center md:w-auto md:text-justify",children:e.jsxs("div",{className:`alert-root pointer-events-auto inline-flex flex-row gap-2 rounded-md border px-3 py-2 text-white ${r[t.severity]}`,children:[t.showIcon&&e.jsx("div",{className:"mt-1 flex-shrink-0 flex-grow-0",children:e.jsxs("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:"icon-sm",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("polygon",{points:"7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"}),e.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),e.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]})}),e.jsx(rE,{className:"flex-1 justify-center gap-2",children:e.jsx("div",{className:"whitespace-pre-wrap text-left",children:t.message})})]})})})},exports.ToastContext=Bq,exports.ToastProvider=function({children:t}){const{showToast:n}=rw();return e.jsx(Bq.Provider,{value:{showToast:n},children:t})},exports.TooltipAnchor=rT,exports.TrashIcon=d$,exports.UserIcon=function(){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}),e.jsx("circle",{cx:"12",cy:"7",r:"4"})]})},exports.VectorIcon=function({className:t}){return e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:t,"aria-label":"",children:e.jsx("path",{d:"M7.45996 14.375C7.45996 13.3616 6.63844 12.54 5.625 12.54C4.61156 12.54 3.79004 13.3616 3.79004 14.375C3.79004 15.3884 4.61156 16.21 5.625 16.21C6.63844 16.21 7.45996 15.3884 7.45996 14.375ZM16.21 14.375C16.21 13.3616 15.3884 12.54 14.375 12.54C13.3616 12.54 12.54 13.3616 12.54 14.375C12.54 15.3884 13.3616 16.21 14.375 16.21C15.3884 16.21 16.21 15.3884 16.21 14.375ZM7.45996 5.625C7.45996 4.61156 6.63844 3.79004 5.625 3.79004C4.61156 3.79004 3.79004 4.61156 3.79004 5.625C3.79004 6.63844 4.61156 7.45996 5.625 7.45996C6.63844 7.45996 7.45996 6.63844 7.45996 5.625ZM16.21 5.625C16.21 4.61156 15.3884 3.79004 14.375 3.79004C13.3616 3.79004 12.54 4.61156 12.54 5.625C12.54 6.63844 13.3616 7.45996 14.375 7.45996C15.3884 7.45996 16.21 6.63844 16.21 5.625ZM17.54 14.375C17.54 16.123 16.123 17.54 14.375 17.54C12.627 17.54 11.21 16.123 11.21 14.375C11.21 12.627 12.627 11.21 14.375 11.21C16.123 11.21 17.54 12.627 17.54 14.375ZM8.79004 5.625C8.79004 7.37298 7.37298 8.79004 5.625 8.79004C3.87702 8.79004 2.45996 7.37298 2.45996 5.625C2.45996 3.87702 3.87702 2.45996 5.625 2.45996C7.37298 2.45996 8.79004 3.87702 8.79004 5.625ZM17.54 5.625C17.54 7.37298 16.123 8.79004 14.375 8.79004C13.7416 8.79004 13.153 8.60173 12.6582 8.28125L8.28125 12.6582C8.60173 13.153 8.79004 13.7416 8.79004 14.375C8.79004 16.123 7.37298 17.54 5.625 17.54C3.87702 17.54 2.45996 16.123 2.45996 14.375C2.45996 12.627 3.87702 11.21 5.625 11.21C6.25794 11.21 6.84623 11.3977 7.34082 11.7178L11.7178 7.34082C11.3977 6.84623 11.21 6.25794 11.21 5.625C11.21 3.87702 12.627 2.45996 14.375 2.45996C16.123 2.45996 17.54 3.87702 17.54 5.625Z"})})},exports.VolumeIcon=function({className:t="",size:n="1em"}){return e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:n,width:n,className:jt(t),children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 4.9099C11 4.47485 10.4828 4.24734 10.1621 4.54132L6.67572 7.7372C6.49129 7.90626 6.25019 8.00005 6 8.00005H4C3.44772 8.00005 3 8.44776 3 9.00005V15C3 15.5523 3.44772 16 4 16H6C6.25019 16 6.49129 16.0938 6.67572 16.2629L10.1621 19.4588C10.4828 19.7527 11 19.5252 11 19.0902V4.9099ZM8.81069 3.06701C10.4142 1.59714 13 2.73463 13 4.9099V19.0902C13 21.2655 10.4142 22.403 8.81069 20.9331L5.61102 18H4C2.34315 18 1 16.6569 1 15V9.00005C1 7.34319 2.34315 6.00005 4 6.00005H5.61102L8.81069 3.06701ZM20.3166 6.35665C20.8019 6.09313 21.409 6.27296 21.6725 6.75833C22.5191 8.3176 22.9996 10.1042 22.9996 12.0001C22.9996 13.8507 22.5418 15.5974 21.7323 17.1302C21.4744 17.6185 20.8695 17.8054 20.3811 17.5475C19.8927 17.2896 19.7059 16.6846 19.9638 16.1962C20.6249 14.9444 20.9996 13.5175 20.9996 12.0001C20.9996 10.4458 20.6064 8.98627 19.9149 7.71262C19.6514 7.22726 19.8312 6.62017 20.3166 6.35665ZM15.7994 7.90049C16.241 7.5688 16.8679 7.65789 17.1995 8.09947C18.0156 9.18593 18.4996 10.5379 18.4996 12.0001C18.4996 13.3127 18.1094 14.5372 17.4385 15.5604C17.1357 16.0222 16.5158 16.1511 16.0539 15.8483C15.5921 15.5455 15.4632 14.9255 15.766 14.4637C16.2298 13.7564 16.4996 12.9113 16.4996 12.0001C16.4996 10.9859 16.1653 10.0526 15.6004 9.30063C15.2687 8.85905 15.3578 8.23218 15.7994 7.90049Z",fill:"currentColor"})})},exports.VolumeMuteIcon=function({className:t="",size:n="1em"}){return e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:n,width:n,className:jt(t),children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12ZM9.5 8.5C8.94772 8.5 8.5 8.94772 8.5 9.5V14.5C8.5 15.0523 8.94772 15.5 9.5 15.5H14.5C15.0523 15.5 15.5 15.0523 15.5 14.5V9.5C15.5 8.94772 15.0523 8.5 14.5 8.5H9.5Z",fill:"currentColor"})})},exports.XAIcon=function({className:t=""}){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",fill:"currentColor",className:t,children:e.jsx("path",{d:"m3.005 8.858 8.783 12.544h3.904L6.908 8.858zM6.905 15.825 3 21.402h3.907l1.951-2.788zM16.585 2l-6.75 9.64 1.953 2.79L20.492 2zM17.292 7.965v13.437h3.2V3.395z"})})},exports.applyFontSize=Mt,exports.buttonVariants=Fp,exports.chatDirectionAtom=Jb,exports.cn=jt,exports.fontSizeAtom=ew,exports.getInitialTheme=At,exports.langAtom=Qb,exports.toastState=tw,exports.useCombobox=xw,exports.useDelayedRender=kw,exports.useLocalize=Cw,exports.useMediaQuery=Sw,exports.useMultiSearch=JT,exports.useOnClickOutside=function(e,n,r,o){t.useEffect((()=>{const t=t=>{const i=t.target;i&&"id"in i&&r.includes(i.id)||i?.parentNode&&"id"in i.parentNode&&r.includes(i.parentNode.id)||o&&o(i)||e.current&&!e.current.contains(i)&&n()};return document.addEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t)}}),[e,n])},exports.useToast=rw,exports.useToastContext=function(){return t.useContext(Bq)};
39
59
  //# sourceMappingURL=index.js.map