@vervstack/chures 0.0.42 → 0.0.44

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/chures.js CHANGED
@@ -1,142 +1,142 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('@layer chures-defaults{:root{--chures-accent: #229ED9;--chures-accent-muted: rgb(34 158 217 / 50%);--chures-btn-from: #2AABEE;--chures-btn-to: #229ED9;--chures-button-bg: var(--chures-accent);--chures-error: #ef4444;--chures-warn: #f59e0b;--chures-bg: #000000;--chures-fg: #ffffff;--chures-fg-muted: #9ca3af;--chures-surface: #000000;--chures-font-sm: .875rem;--chures-font-xs: .75rem;--chures-input-bg: #111111;--chures-input-height: 3rem;--chures-input-radius: .75rem;--chures-skeleton-shine: #1e1e1e;--chures-toggle-width: 2.75rem;--chures-toggle-height: 1.5rem;--chures-toggle-thumb: 1.125rem;--chures-toggle-bg-off: rgb(255 255 255 / 13%);--chures-toggle-bg-on: var(--chures-accent);--chures-toggle-thumb-color: #ffffff;--chures-toggle-label-skeleton-w: 5rem;--chures-dropdown-bg: var(--chures-bg);--chures-dropdown-radius: .75rem;--chures-dropdown-row-radius: .375rem;--chures-dropdown-border: var(--chures-accent);--chures-dropdown-border-subtle: var(--chures-accent-muted);--chures-dropdown-hover: rgb(255 255 255 / 8%);--chures-dropdown-create-bg: rgb(34 158 217 / 12%);--chures-dropdown-create-bg-hover: rgb(34 158 217 / 20%);--chures-dropdown-trigger-border: rgb(255 255 255 / 22%);--chures-dropdown-trigger-border-hover: rgb(255 255 255 / 38%);--chures-dropdown-trigger-focus-ring: rgb(34 158 217 / 15%);--chures-dropdown-chip-border: rgb(34 158 217 / 30%);--chures-dropdown-panel-gap: .375rem;--chures-dropdown-icon-size: 1rem;--chures-dropdown-glass-bg: rgb(255 255 255 / 6%);--chures-dropdown-glass-blur: 1.25rem;--chures-dialog-glass-bg: rgb(255 255 255 / 6%);--chures-dialog-glass-blur: 1.25rem;--chures-overlay: rgb(0 0 0 / 58%);--chures-side-drawer-size: 22rem;--chures-flyout-bg: #0d0d0d;--chures-flyout-min-width: 10rem;--chures-flyout-border: rgb(255 255 255 / 11%);--chures-flyout-radius: .5rem;--chures-flyout-shadow: rgb(0 0 0 / 80%);--chures-flyout-fg: rgb(255 255 255 / 55%);--chures-flyout-fg-strong: rgb(255 255 255 / 92%);--chures-flyout-fg-muted: rgb(255 255 255 / 32%);--chures-flyout-hover: rgb(255 255 255 / 4%);--chures-flyout-skeleton: rgb(255 255 255 / 7%);--chures-flyout-font: .8125rem;--chures-flyout-font-sm: .6875rem;--chures-flyout-font-md: .75rem;--chures-flyout-font-mono: "JetBrains Mono", ui-monospace, sfmono-regular, menlo, monospace;--chures-segmented-bg: var(--chures-input-bg);--chures-segmented-radius: var(--chures-input-radius);--chures-segmented-pad: .25rem;--chures-segmented-highlight: var(--chures-accent);--chures-segmented-fg: var(--chures-fg-muted);--chures-segmented-fg-active: var(--chures-fg);--chures-segmented-gap: .25rem}}@keyframes _spin_wa8op_1{to{transform:rotate(360deg)}}@keyframes _ripple_wa8op_1{0%{transform:scale(.08);opacity:.9}to{transform:scale(1);opacity:0}}@keyframes _dotPulse_wa8op_1{0%,to{transform:translate(-50%,-50%) scale(.55);opacity:.3}50%{transform:translate(-50%,calc(-50% - var(--sz) * .1)) scale(1);opacity:1}}@keyframes _waveBounce_wa8op_1{0%,55%,to{transform:translate(-50%,-50%) scale(.8);opacity:.4}27%{transform:translate(-50%,calc(-50% - var(--sz) * .28)) scale(1);opacity:1}}._LoaderContainer_wa8op_24{position:relative;flex-shrink:0}._sm_wa8op_31{width:1.5rem;height:1.5rem;--sz: 1.5rem;--arc-gap: .2rem;--arc-bw: .125rem}._md_wa8op_32{width:2.5rem;height:2.5rem;--sz: 2.5rem;--arc-gap: .35rem;--arc-bw: .1875rem}._lg_wa8op_33{width:4rem;height:4rem;--sz: 4rem;--arc-gap: .55rem;--arc-bw: .25rem}._Arc1_wa8op_37,._Arc2_wa8op_38,._Arc3_wa8op_39{position:absolute;border-radius:50%;border:var(--arc-bw) solid transparent}._Arc1_wa8op_37{inset:0;border-top-color:var(--chures-accent, #229ED9);border-left-color:var(--chures-accent, #229ED9);animation:_spin_wa8op_1 1.2s linear infinite;filter:drop-shadow(0 0 .25rem var(--chures-accent, #229ED9))}._Arc2_wa8op_38{inset:var(--arc-gap);border-bottom-color:var(--chures-accent, #229ED9);border-right-color:var(--chures-accent, #229ED9);animation:_spin_wa8op_1 1.8s linear infinite reverse;opacity:.8}._Arc3_wa8op_39{inset:calc(var(--arc-gap) * 2);border-top-color:var(--chures-accent, #229ED9);border-right-color:var(--chures-accent, #229ED9);animation:_spin_wa8op_1 2.4s linear infinite;opacity:.6}._Ring1_wa8op_71,._Ring2_wa8op_72,._Ring3_wa8op_73{position:absolute;inset:0;border-radius:50%;border:var(--arc-bw) solid var(--chures-accent, #229ED9);animation:_ripple_wa8op_1 1.8s ease-out infinite both}._Ring2_wa8op_72{animation-delay:.6s}._Ring3_wa8op_73{animation-delay:1.2s}._Dot1_wa8op_86,._Dot2_wa8op_87,._Dot3_wa8op_88{position:absolute;top:50%;border-radius:50%;width:calc(var(--sz) * .2);height:calc(var(--sz) * .2);background:var(--chures-accent, #229ED9);box-shadow:0 0 calc(var(--sz) * .14) var(--chures-accent, #229ED9);animation:_dotPulse_wa8op_1 1.1s ease-in-out infinite both}._Dot1_wa8op_86{left:22%}._Dot2_wa8op_87{left:50%;animation-delay:.18s}._Dot3_wa8op_88{left:78%;animation-delay:.36s}._Wave1_wa8op_105,._Wave2_wa8op_106,._Wave3_wa8op_107,._Wave4_wa8op_108,._Wave5_wa8op_109{position:absolute;top:50%;border-radius:50%;width:calc(var(--sz) * .16);height:calc(var(--sz) * .16);background:var(--chures-accent, #229ED9);box-shadow:0 0 calc(var(--sz) * .1) var(--chures-accent, #229ED9);animation:_waveBounce_wa8op_1 1s ease-in-out infinite both}._Wave1_wa8op_105{left:10%}._Wave2_wa8op_106{left:28%;animation-delay:.12s}._Wave3_wa8op_107{left:46%;animation-delay:.24s}._Wave4_wa8op_108{left:64%;animation-delay:.36s}._Wave5_wa8op_109{left:82%;animation-delay:.48s}._LoadingWrapperContainer_1q0w7_1{display:flex;align-items:center;justify-content:center;width:100%;min-height:4rem}._SkeletonWrapper_1q0w7_9{width:100%}._TelegramSignInButtonContainer_10wun_1{display:inline-flex;align-items:center;justify-content:center;gap:.625rem;width:100%;padding:1rem 1.375rem;background:linear-gradient(180deg,var(--chures-btn-from, #2AABEE) 0%,var(--chures-btn-to, #229ED9) 100%);border:0;border-radius:.875rem;color:#fff;font-family:Comfortaa,sans-serif;font-weight:600;font-size:1rem;letter-spacing:-.005em;cursor:pointer;box-shadow:inset 0 .0625rem #ffffff26,0 .75rem 2rem -.75rem #2aabee8c;transition:transform .14s ease,box-shadow .2s ease,filter .16s ease}._TelegramSignInButtonContainer_10wun_1:hover{transform:translateY(-.0625rem);box-shadow:inset 0 .0625rem #ffffff2e,0 1.125rem 2.375rem -.75rem #2aabeea6;filter:brightness(1.05)}._TelegramSignInButtonContainer_10wun_1:active{transform:translateY(0);filter:brightness(.97)}._TelegramSignInButtonContainer_10wun_1:focus-visible{outline:.125rem solid rgba(255,255,255,.8);outline-offset:.125rem}._TelegramSignInButtonContainer_10wun_1:disabled{opacity:.6;cursor:not-allowed}._FullSize_10wun_46{height:100%}._Icon_10wun_50{flex-shrink:0}._ToastContainer_1tme2_1{position:fixed;right:1.5rem;top:1.5rem;width:clamp(25vw,24.5rem,95vw);display:flex;flex-direction:column;gap:1rem;z-index:9999}._Toast_1tme2_1{min-height:4rem;border:var(--chures-accent, #229ED9) 1px solid;border-radius:1rem;padding:1rem;box-sizing:border-box;position:relative;background:var(--chures-surface, #000000);display:flex;flex-direction:column}._Toast_1tme2_1>div:first-child{font-weight:700;font-size:var(--chures-font-sm, .875rem);color:var(--chures-fg, #ffffff)}._Toast_1tme2_1._error_1tme2_33{border-color:var(--chures-error, #ef4444)}._Toast_1tme2_1._error_1tme2_33>div:first-child{color:var(--chures-error, #ef4444)}._Toast_1tme2_1._warn_1tme2_41{border-color:var(--chures-warn, #f59e0b)}._Toast_1tme2_1._warn_1tme2_41>div:first-child{color:var(--chures-warn, #f59e0b)}._Toast_1tme2_1._info_1tme2_49{border-color:var(--chures-accent, #229ED9)}._Toast_1tme2_1 ._Description_1tme2_53{color:var(--chures-fg-muted, #9ca3af);font-size:var(--chures-font-xs, .75rem);margin-top:.125rem}._Toast_1tme2_1 ._DismissButton_1tme2_59{position:absolute;width:1rem;height:1rem;display:flex;justify-content:center;align-items:center;top:0;right:1%;cursor:pointer;font-size:1.5rem;color:var(--chures-fg-muted, #9ca3af)}._slideIn_1tme2_79{animation:_slideIn_1tme2_79 .2s ease forwards}._slideOut_1tme2_83{animation:_slideOut_1tme2_83 .2s ease forwards}@keyframes _slideIn_1tme2_79{0%{opacity:0;transform:translate(2rem)}to{opacity:1;transform:translate(0)}}@keyframes _slideOut_1tme2_83{0%{opacity:1;transform:translate(0)}to{opacity:0;transform:translate(2rem)}}@keyframes _shimmer_s5ba7_1{0%{background-position:-200% 0}to{background-position:200% 0}}:where(._InputContainer_s5ba7_15){position:relative;width:100%;height:var(--chures-input-height, 3rem)}:where(._InputField_s5ba7_21){width:100%;height:100%;background:var(--chures-input-bg, #111111);border:.0625rem solid rgb(255 255 255 / 13%);border-radius:var(--chures-input-radius, .75rem);color:var(--chures-fg, #ffffff);font-size:var(--chures-font-sm, .875rem);padding:0 .875rem;outline:none;transition:border-color .18s ease;box-sizing:border-box}:where(._InputField_s5ba7_21._hasStartIcon_s5ba7_35){padding-left:2.25rem}:where(._InputField_s5ba7_21._hasEndIcon_s5ba7_39){padding-right:2.25rem}:where(._StartIcon_s5ba7_43){position:absolute;left:.875rem;top:50%;transform:translateY(-50%);display:flex;align-items:center;color:var(--chures-fg-muted, #9ca3af);pointer-events:none}:where(._EndIcon_s5ba7_54){position:absolute;right:.875rem;top:50%;transform:translateY(-50%);display:flex;align-items:center;color:var(--chures-fg-muted, #9ca3af);pointer-events:none}:where(._InputField_s5ba7_21):focus{border-color:#ffffff59}:where(._InputField_s5ba7_21:not(:focus):has(+._Label_s5ba7_70))::placeholder{color:transparent}:where(._hasError_s5ba7_74 ._InputField_s5ba7_21),:where(._hasError_s5ba7_74 ._InputField_s5ba7_21):focus{border-color:var(--chures-error, #ef4444)}:where(._disabled_s5ba7_79 ._InputField_s5ba7_21){opacity:.45;cursor:not-allowed}:where(._Label_s5ba7_70){position:absolute;left:.875rem;top:50%;transform:translateY(-50%);transform-origin:left center;color:var(--chures-fg-muted, #9ca3af);font-size:var(--chures-font-sm, .875rem);pointer-events:none;transition:all .18s ease;padding:0 .25rem;border-radius:.1875rem}:where(._Label_s5ba7_70._lifted_s5ba7_98){top:0;transform:translateY(-50%) scale(.82);background:var(--chures-input-bg, #111111);color:var(--chures-fg-muted, #9ca3af)}:where(._hasError_s5ba7_74 ._Label_s5ba7_70._lifted_s5ba7_98){color:var(--chures-error, #ef4444)}:where(._ErrorText_s5ba7_109){display:block;margin-top:.25rem;padding-left:.875rem;font-size:var(--chures-font-xs, .75rem);color:var(--chures-error, #ef4444)}:where(._Skeleton_s5ba7_117){width:100%;height:var(--chures-input-height, 3rem);border-radius:var(--chures-input-radius, .75rem);background:linear-gradient(90deg,var(--chures-input-bg, #111111) 25%,var(--chures-skeleton-shine, #1e1e1e) 50%,var(--chures-input-bg, #111111) 75%);background-size:200% 100%;animation:_shimmer_s5ba7_1 1.5s ease-in-out infinite}@keyframes _shimmer_1jetc_1{0%{background-position:-200% 0}to{background-position:200% 0}}._ToggleContainer_1jetc_6{display:inline-flex;align-items:center;gap:.5rem;cursor:pointer}._disabled_1jetc_13{opacity:.45;cursor:not-allowed}._Track_1jetc_18{position:relative;width:var(--chures-toggle-width, 2.75rem);height:var(--chures-toggle-height, 1.5rem);border-radius:624.9375rem;background:var(--chures-toggle-bg-off, rgb(255 255 255 / 13%));border:none;padding:0;cursor:pointer;transition:background .2s ease;flex-shrink:0}._Track_1jetc_18._on_1jetc_31{background:var(--chures-toggle-bg-on, var(--chures-accent, #229ED9))}._disabled_1jetc_13 ._Track_1jetc_18{cursor:not-allowed}._Thumb_1jetc_39{position:absolute;top:0;bottom:0;margin:auto 0;left:.1875rem;width:var(--chures-toggle-thumb, 1.125rem);height:var(--chures-toggle-thumb, 1.125rem);border-radius:50%;background:var(--chures-toggle-thumb-color, #ffffff);transition:left .2s ease;pointer-events:none}._Track_1jetc_18._on_1jetc_31 ._Thumb_1jetc_39{left:calc(var(--chures-toggle-width, 2.75rem) - var(--chures-toggle-thumb, 1.125rem) - .1875rem)}._Label_1jetc_57{font-size:var(--chures-font-sm, .875rem);color:var(--chures-fg, #ffffff);-webkit-user-select:none;user-select:none}._LabelSkeleton_1jetc_63{display:inline-block;width:var(--chures-toggle-label-skeleton-w, 5rem);height:var(--chures-font-sm, .875rem);border-radius:624.9375rem;background:linear-gradient(90deg,var(--chures-input-bg, #111111) 25%,var(--chures-skeleton-shine, #1e1e1e) 50%,var(--chures-input-bg, #111111) 75%);background-size:200% 100%;animation:_shimmer_1jetc_1 1.5s ease-in-out infinite}._Skeleton_1jetc_78{width:var(--chures-toggle-width, 2.75rem);height:var(--chures-toggle-height, 1.5rem);border-radius:624.9375rem;background:linear-gradient(90deg,var(--chures-input-bg, #111111) 25%,var(--chures-skeleton-shine, #1e1e1e) 50%,var(--chures-input-bg, #111111) 75%);background-size:200% 100%;animation:_shimmer_1jetc_1 1.5s ease-in-out infinite}:where(._SegmentedControlContainer_ga29h_2){position:relative;display:inline-flex;align-items:stretch;gap:var(--chures-segmented-gap);box-sizing:border-box;max-width:100%;padding:var(--chures-segmented-pad);border-radius:var(--chures-segmented-radius);background:var(--chures-segmented-bg);overflow-x:auto;scrollbar-width:none}:where(._SegmentedControlContainer_ga29h_2)::-webkit-scrollbar{display:none}:where(._Disabled_ga29h_20){opacity:.45;cursor:not-allowed}:where(._Highlight_ga29h_25){position:absolute;top:var(--chures-segmented-pad);bottom:var(--chures-segmented-pad);border-radius:max(0rem,calc(var(--chures-segmented-radius) - var(--chures-segmented-pad)));background:var(--chures-segmented-highlight);pointer-events:none}:where(._Option_ga29h_34){position:relative;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;padding:.5rem 1rem;border:0;border-radius:max(0rem,calc(var(--chures-segmented-radius) - var(--chures-segmented-pad)));background:transparent;color:var(--chures-segmented-fg);font-family:inherit;font-size:var(--chures-font-sm);font-weight:500;white-space:nowrap;cursor:pointer;transition:color .2s ease}:where(._Option_ga29h_34):hover:not(:disabled){color:var(--chures-segmented-fg-active)}:where(._Option_ga29h_34):disabled{cursor:not-allowed}:where(._OptionDisabled_ga29h_61){opacity:.45}:where(._Selected_ga29h_65){color:var(--chures-segmented-fg-active)}:where(._CheckboxContainer_14vl9_4){display:inline-flex;align-items:center;gap:.5rem;cursor:pointer;-webkit-user-select:none;user-select:none}:where(._CheckboxContainer_14vl9_4._disabled_14vl9_12){opacity:.45;cursor:not-allowed}:where(._BoxWrapper_14vl9_17){position:relative;display:inline-flex;flex-shrink:0;width:var(--chures-checkbox-size, 1.125rem);height:var(--chures-checkbox-size, 1.125rem)}:where(._BoxWrapper_14vl9_17) input{position:absolute;inset:0;margin:0;cursor:pointer;opacity:0}:where(._CheckboxContainer_14vl9_4._disabled_14vl9_12) ._BoxWrapper_14vl9_17 input{cursor:not-allowed}:where(._Box_14vl9_17){position:absolute;inset:0;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--chures-checkbox-radius, .3125rem);border:1px solid var(--chures-checkbox-border, rgb(255 255 255 / 25%));background:var(--chures-checkbox-bg, transparent);color:transparent;pointer-events:none;transition:background .16s ease,border-color .16s ease,color .16s ease}:where(._BoxWrapper_14vl9_17) input:checked+:where(._Box_14vl9_17){background:var(--chures-checkbox-bg-on, var(--chures-accent, #229ED9));border-color:var(--chures-checkbox-bg-on, var(--chures-accent, #229ED9));color:var(--chures-checkbox-tick, #ffffff)}:where(._BoxWrapper_14vl9_17) input:focus-visible+:where(._Box_14vl9_17){outline:2px solid var(--chures-accent, #229ED9);outline-offset:.125rem}:where(._Label_14vl9_62){font-size:var(--chures-font-sm, .875rem);color:var(--chures-fg, #ffffff)}@layer chures-defaults{:root{--chures-accent: #229ED9;--chures-accent-muted: rgb(34 158 217 / 50%);--chures-btn-from: #2AABEE;--chures-btn-to: #229ED9;--chures-button-bg: var(--chures-accent);--chures-error: #ef4444;--chures-warn: #f59e0b;--chures-bg: #000000;--chures-fg: #ffffff;--chures-fg-muted: #9ca3af;--chures-surface: #000000;--chures-font-sm: .875rem;--chures-font-xs: .75rem;--chures-input-bg: #111111;--chures-input-height: 3rem;--chures-input-radius: .75rem;--chures-skeleton-shine: #1e1e1e;--chures-toggle-width: 2.75rem;--chures-toggle-height: 1.5rem;--chures-toggle-thumb: 1.125rem;--chures-toggle-bg-off: rgb(255 255 255 / 13%);--chures-toggle-bg-on: var(--chures-accent);--chures-toggle-thumb-color: #ffffff;--chures-toggle-label-skeleton-w: 5rem;--chures-dropdown-bg: var(--chures-bg);--chures-dropdown-radius: .75rem;--chures-dropdown-row-radius: .375rem;--chures-dropdown-border: var(--chures-accent);--chures-dropdown-border-subtle: var(--chures-accent-muted);--chures-dropdown-hover: rgb(255 255 255 / 8%);--chures-dropdown-create-bg: rgb(34 158 217 / 12%);--chures-dropdown-create-bg-hover: rgb(34 158 217 / 20%);--chures-dropdown-trigger-border: rgb(255 255 255 / 22%);--chures-dropdown-trigger-border-hover: rgb(255 255 255 / 38%);--chures-dropdown-trigger-focus-ring: rgb(34 158 217 / 15%);--chures-dropdown-chip-border: rgb(34 158 217 / 30%);--chures-dropdown-panel-gap: .375rem;--chures-dropdown-icon-size: 1rem;--chures-dropdown-glass-bg: rgb(255 255 255 / 6%);--chures-dropdown-glass-blur: 1.25rem;--chures-dialog-glass-bg: rgb(255 255 255 / 6%);--chures-dialog-glass-blur: 1.25rem;--chures-overlay: rgb(0 0 0 / 58%);--chures-side-drawer-size: 22rem;--chures-flyout-bg: #0d0d0d;--chures-flyout-min-width: 10rem;--chures-flyout-border: rgb(255 255 255 / 11%);--chures-flyout-radius: .5rem;--chures-flyout-shadow: rgb(0 0 0 / 80%);--chures-flyout-fg: rgb(255 255 255 / 55%);--chures-flyout-fg-strong: rgb(255 255 255 / 92%);--chures-flyout-fg-muted: rgb(255 255 255 / 32%);--chures-flyout-hover: rgb(255 255 255 / 4%);--chures-flyout-skeleton: rgb(255 255 255 / 7%);--chures-flyout-font: .8125rem;--chures-flyout-font-sm: .6875rem;--chures-flyout-font-md: .75rem;--chures-flyout-font-mono: "JetBrains Mono", ui-monospace, sfmono-regular, menlo, monospace;--chures-segmented-bg: var(--chures-input-bg);--chures-segmented-radius: var(--chures-input-radius);--chures-segmented-pad: .25rem;--chures-segmented-highlight: var(--chures-accent);--chures-segmented-fg: var(--chures-fg-muted);--chures-segmented-fg-active: var(--chures-fg);--chures-segmented-gap: .25rem}}@keyframes _panelIn_5x7b0_1{0%{opacity:0;transform:scale(.96) translateY(6px)}to{opacity:1;transform:none}}@keyframes _panelInAbove_5x7b0_1{0%{opacity:0;transform:scale(.96) translateY(-6px)}to{opacity:1;transform:none}}@keyframes _shimmer_5x7b0_1{0%{background-position:-200% center}to{background-position:200% center}}._DropdownContainer_5x7b0_18{position:relative;width:100%}._PanelWrapper_5x7b0_25{position:absolute;top:calc(100% + var(--chures-dropdown-panel-gap));left:0;width:100%;animation:_panelIn_5x7b0_1 .14s ease}._PanelWrapper_5x7b0_25._Portal_5x7b0_39{position:fixed;width:auto;margin:var(--chures-dropdown-panel-gap) 0}._PanelWrapper_5x7b0_25._Above_5x7b0_47{top:auto;transform-origin:bottom center;animation-name:_panelInAbove_5x7b0_1}._PanelContainer_5x7b0_23{background:var(--chures-dropdown-bg);border:1px solid var(--chures-dropdown-border);border-radius:var(--chures-dropdown-radius);overflow:hidden;display:flex;flex-direction:column;max-height:var(--dropdown-available-height, none);box-shadow:0 1rem 3rem #000c}._PanelContainer_5x7b0_23._Glass_5x7b0_64{background:var(--chures-dropdown-glass-bg, rgb(255 255 255 / 6%));backdrop-filter:blur(var(--chures-dropdown-glass-blur, 1.25rem));-webkit-backdrop-filter:blur(var(--chures-dropdown-glass-blur, 1.25rem))}._Label_5x7b0_70{position:absolute;left:.875rem;top:50%;transform:translateY(-50%);transform-origin:left center;color:var(--chures-fg-muted);font-size:var(--chures-font-sm);pointer-events:none;transition:all .18s ease;padding:0 .25rem;border-radius:.1875rem}._Label_5x7b0_70._WithIcon_5x7b0_84:not(._lifted_5x7b0_84){left:calc(.875rem + var(--chures-dropdown-icon-size) + .5rem)}._Label_5x7b0_70._lifted_5x7b0_84{top:0;transform:translateY(-50%) scale(.82);background:var(--chures-input-bg);color:var(--chures-fg-muted)}._TriggerContainer_5x7b0_95{width:100%;height:var(--chures-input-height);background:var(--chures-input-bg);border:1px solid var(--chures-dropdown-trigger-border);border-radius:var(--chures-input-radius);color:var(--chures-fg);font-size:var(--chures-font-sm);font-family:inherit;padding:0 .875rem;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:.5rem;text-align:left;overflow:hidden;transition:border-color .15s ease,box-shadow .15s ease}._TriggerContainer_5x7b0_95:hover{border-color:var(--chures-dropdown-trigger-border-hover)}._TriggerContainer_5x7b0_95._Open_5x7b0_119{border-color:var(--chures-accent);box-shadow:0 0 0 .1875rem var(--chures-dropdown-trigger-focus-ring)}._TriggerPlaceholder_5x7b0_124{color:var(--chures-fg-muted);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._TriggerValue_5x7b0_132{color:var(--chures-fg);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._TriggerIcon_5x7b0_140{color:var(--chures-fg-muted);flex-shrink:0;display:flex;align-items:center}._ChipsWrapper_5x7b0_147{display:flex;flex-wrap:nowrap;gap:.25rem;flex:1;overflow-x:auto;overflow-y:hidden;min-width:0;align-items:center;margin:.375rem 0;scrollbar-width:none;-ms-overflow-style:none}._ChipsWrapper_5x7b0_147::-webkit-scrollbar{display:none}._ChipsWrapper_5x7b0_147._Expand_5x7b0_165{flex-wrap:wrap;overflow:visible;row-gap:.25rem}._TriggerContainer_5x7b0_95._MultiSelect_5x7b0_171 ._TriggerIcon_5x7b0_140{align-self:flex-start;height:var(--chures-input-height)}._TriggerContainer_5x7b0_95._ExpandHeight_5x7b0_176{height:auto;min-height:var(--chures-input-height)}._TriggerContainer_5x7b0_95._RichValue_5x7b0_181{height:auto;min-height:calc(var(--chures-input-height) * 1.25);padding:.625rem .875rem}._TriggerContainer_5x7b0_95._WithIcon_5x7b0_84{padding-left:calc(.875rem + var(--chures-dropdown-icon-size) + .5rem)}._LeadingIcon_5x7b0_191{position:absolute;left:.875rem;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:var(--chures-dropdown-icon-size);height:var(--chures-dropdown-icon-size);color:var(--chures-fg-muted);pointer-events:none}._TriggerValueRich_5x7b0_205{flex:1;min-width:0;overflow:hidden}._Chip_5x7b0_147{display:inline-flex;align-items:center;flex-shrink:0;background:var(--chures-dropdown-create-bg);border:1px solid var(--chures-dropdown-chip-border);border-radius:624.9375rem;padding:.15rem .5rem;font-size:var(--chures-font-xs);color:var(--chures-fg);white-space:nowrap;line-height:1.4}._SearchRow_5x7b0_225{flex-shrink:0;padding:.5rem;border-bottom:1px solid var(--chures-dropdown-border-subtle)}._SearchBox_5x7b0_231{display:flex;align-items:center;gap:.5rem;background:var(--chures-input-bg);border:1px solid var(--chures-dropdown-border-subtle);border-radius:var(--chures-dropdown-row-radius);padding:.4rem .625rem}._SearchIcon_5x7b0_241{display:flex;align-items:center;color:var(--chures-fg-muted);flex-shrink:0}._SearchInput_5x7b0_248{flex:1;background:transparent;border:none;outline:none;font-size:var(--chures-font-sm);color:var(--chures-fg);font-family:inherit}._SearchInput_5x7b0_248::placeholder{color:var(--chures-fg-muted)}._ResultsList_5x7b0_262{max-height:13rem;min-height:0;overflow-y:auto}._OptionRow_5x7b0_268{padding:.5625rem .875rem;font-size:var(--chures-font-sm);color:var(--chures-fg-muted);cursor:pointer;transition:background .1s ease,color .1s ease;display:flex;align-items:center;gap:.5rem}._OptionRow_5x7b0_268:hover{background:var(--chures-dropdown-hover);color:var(--chures-fg)}._OptionRow_5x7b0_268._Selected_5x7b0_283{color:var(--chures-fg)}._OptionRow_5x7b0_268._Indented_5x7b0_287{padding-left:1.875rem}._OptionRow_5x7b0_268._Disabled_5x7b0_291{cursor:not-allowed;opacity:.5}._OptionRow_5x7b0_268._Disabled_5x7b0_291:hover{background:transparent;color:var(--chures-fg-muted)}._GroupHeader_5x7b0_302{padding:.5625rem .875rem .25rem;font-size:var(--chures-font-xs);color:var(--chures-fg-muted);text-transform:uppercase;letter-spacing:.03em}._GroupHeader_5x7b0_302:not(:first-child){margin-top:.25rem;border-top:1px solid var(--chures-dropdown-border-subtle)}._CheckSlot_5x7b0_317{display:inline-flex;align-items:center;flex-shrink:0;width:0;margin-right:-.5rem;overflow:hidden;color:var(--chures-accent);transition:width .18s ease,margin-right .18s ease}._CheckSlot_5x7b0_317._Checked_5x7b0_327{width:1rem;margin-right:0}._CheckIcon_5x7b0_333{width:.75rem;height:.75rem;flex-shrink:0}._CheckIcon_5x7b0_333 path{stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset .22s ease .06s}._CheckSlot_5x7b0_317._Checked_5x7b0_327 ._CheckIcon_5x7b0_333 path{stroke-dashoffset:0}@media(prefers-reduced-motion:reduce){._CheckSlot_5x7b0_317,._CheckIcon_5x7b0_333 path{transition:none}}._CreateRow_5x7b0_360{display:flex;align-items:center;gap:.625rem;padding:.5625rem .875rem;cursor:pointer;background:var(--chures-dropdown-create-bg);transition:background .1s ease}._CreateRow_5x7b0_360:hover{background:var(--chures-dropdown-create-bg-hover)}._CreateRow_5x7b0_360._WithBorder_5x7b0_373{border-top:1px solid var(--chures-dropdown-border-subtle)}._CreateIcon_5x7b0_378{display:inline-flex;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;border-radius:50%;background:var(--chures-accent);color:#fff;flex-shrink:0}._CreateLabel_5x7b0_390{font-size:var(--chures-font-sm);font-weight:600;color:var(--chures-fg)}._EmptyHint_5x7b0_396{padding:.75rem .875rem;font-size:var(--chures-font-sm);color:var(--chures-fg-muted);font-style:italic}._SkeletonRow_5x7b0_403{height:2rem;margin:.375rem .875rem;border-radius:var(--chures-dropdown-row-radius);background:linear-gradient(90deg,var(--chures-dropdown-bg) 25%,var(--chures-skeleton-shine) 50%,var(--chures-dropdown-bg) 75%);background-size:200% 100%;animation:_shimmer_5x7b0_1 1.4s infinite linear}:where(._Btn_1wp07_10){display:inline-flex;align-items:center;justify-content:center;gap:.375rem;border-radius:.625rem;border:1px solid transparent;font-family:inherit;font-size:.8125rem;font-weight:500;cursor:pointer;padding:.625rem 1rem;transition:all .16s ease;white-space:nowrap;color:var(--chures-fg, #ffffff);background:var(--chures-button-bg)}:where(._Btn_1wp07_10):disabled{opacity:.4;cursor:not-allowed}:where(._Unstyled_1wp07_35){appearance:none;margin:0;padding:0;border:none;background:none;font:inherit;color:inherit;text-align:inherit;cursor:pointer}:where(._Unstyled_1wp07_35):disabled{cursor:not-allowed}:where(._Primary_1wp07_52){background:var(--chures-accent, #229ED9);border-color:var(--chures-accent, #229ED9);color:#fff;font-weight:600;padding:.625rem 1.125rem;box-shadow:0 10px 28px -12px var(--chures-accent-muted, rgb(34 158 217 / 50%));transition:filter .16s ease,opacity .16s ease}:where(._Primary_1wp07_52):hover:not(:disabled){filter:brightness(1.06)}:where(._Secondary_1wp07_67){background:transparent;border-color:#ffffff24;color:var(--chures-fg-muted, #9ca3af)}:where(._Secondary_1wp07_67):hover:not(:disabled){color:var(--chures-fg, #ffffff);border-color:#ffffff47}:where(._Ghost_1wp07_79){background:transparent;border-color:#ffffff24;color:var(--chures-fg-muted, #9ca3af)}:where(._Ghost_1wp07_79):hover:not(:disabled){color:var(--chures-fg, #ffffff);border-color:#ffffff47}:where(._IconDanger_1wp07_91){width:1.375rem;height:1.375rem;padding:0;border:0;border-radius:.375rem;background:transparent;color:var(--chures-fg-muted, #9ca3af);font-size:1rem;line-height:1;justify-content:center;flex-shrink:0;transition:background .14s ease,color .14s ease}:where(._IconDanger_1wp07_91):hover:not(:disabled){background:#ef44441f;color:var(--chures-error, #ef4444)}:where(._Danger_1wp07_112){background:transparent;border-color:#ef444466;color:var(--chures-error, #ef4444);transition:background .16s ease,border-color .16s ease}:where(._Danger_1wp07_112):hover:not(:disabled){background:#ef44441a;border-color:var(--chures-error, #ef4444)}._ConfirmWrapper_1tq4o_4{width:100%;max-width:24rem;animation:_confirmIn_1tq4o_1 .28s cubic-bezier(.2,.7,.2,1) both}@keyframes _confirmIn_1tq4o_1{0%{opacity:0;transform:translateY(.75rem) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}._ConfirmContainer_1tq4o_1{width:100%;background:var(--chures-surface, #000000);border:1px solid rgb(255 255 255 / 14%);border-radius:1.25rem;padding:1.75rem 1.75rem 1.5rem;box-shadow:0 32px 80px -20px #000c}._Glass_1tq4o_24{background:var(--chures-dialog-glass-bg, rgb(255 255 255 / 6%));backdrop-filter:blur(var(--chures-dialog-glass-blur, 1.25rem));-webkit-backdrop-filter:blur(var(--chures-dialog-glass-blur, 1.25rem))}._ConfirmTitle_1tq4o_30{font-size:1.25rem;font-weight:600;letter-spacing:-.02em;color:var(--chures-fg, #ffffff);margin-bottom:.75rem}._ConfirmMessage_1tq4o_38{font-size:.875rem;color:var(--chures-fg-muted, #9ca3af);line-height:1.5;letter-spacing:-.005em}._ConfirmActions_1tq4o_45{display:flex;align-items:center;justify-content:flex-end;gap:.625rem;margin-top:1.5rem}._BtnCancel_1tq4o_53{display:inline-flex;align-items:center;padding:.625rem 1.125rem;border-radius:.625rem;border:1px solid rgb(255 255 255 / 14%);background:transparent;color:var(--chures-fg-muted, #9ca3af);font-size:.8125rem;font-weight:500;font-family:inherit;cursor:pointer;transition:background .16s ease,color .16s ease}._BtnCancel_1tq4o_53:hover:not(:disabled){background:#ffffff14;color:var(--chures-fg, #ffffff)}._BtnConfirm_1tq4o_73{display:inline-flex;align-items:center;padding:.625rem 1.125rem;border-radius:.625rem;border:1px solid var(--chures-accent, #229ED9);background:var(--chures-accent, #229ED9);color:#fff;font-size:.8125rem;font-weight:600;font-family:inherit;cursor:pointer;transition:filter .16s ease,opacity .16s ease}._BtnConfirm_1tq4o_73:hover:not(:disabled){filter:brightness(1.06)}._BtnDanger_1tq4o_92{display:inline-flex;align-items:center;padding:.625rem 1.125rem;border-radius:.625rem;border:1px solid rgb(239 68 68 / 40%);background:transparent;color:var(--chures-error, #ef4444);font-size:.8125rem;font-weight:600;font-family:inherit;cursor:pointer;transition:background .16s ease,border-color .16s ease}._BtnDanger_1tq4o_92:hover:not(:disabled){background:#ef44441a;border-color:var(--chures-error, #ef4444)}._BtnConfirm_1tq4o_73:disabled,._BtnDanger_1tq4o_92:disabled,._BtnCancel_1tq4o_53:disabled{opacity:.4;cursor:not-allowed}._InfoWrapper_cqv58_4{width:100%;max-width:24rem;animation:_infoIn_cqv58_1 .28s cubic-bezier(.2,.7,.2,1) both}@keyframes _infoIn_cqv58_1{0%{opacity:0;transform:translateY(.75rem) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}._InfoContainer_cqv58_1{width:100%;background:var(--chures-surface, #000000);border:1px solid rgb(255 255 255 / 14%);border-radius:1.25rem;padding:1.75rem 1.75rem 1.5rem;box-shadow:0 32px 80px -20px #000c}._Glass_cqv58_24{background:var(--chures-dialog-glass-bg, rgb(255 255 255 / 6%));backdrop-filter:blur(var(--chures-dialog-glass-blur, 1.25rem));-webkit-backdrop-filter:blur(var(--chures-dialog-glass-blur, 1.25rem))}._InfoTitle_cqv58_30{font-size:1.25rem;font-weight:600;letter-spacing:-.02em;color:var(--chures-fg, #ffffff);margin-bottom:.75rem}._InfoMessage_cqv58_38{font-size:.875rem;color:var(--chures-fg-muted, #9ca3af);line-height:1.5;letter-spacing:-.005em}._InfoActions_cqv58_45{display:flex;align-items:center;justify-content:flex-end;margin-top:1.5rem}._BtnClose_cqv58_52{display:inline-flex;align-items:center;padding:.625rem 1.125rem;border-radius:.625rem;border:1px solid rgb(255 255 255 / 14%);background:transparent;color:var(--chures-fg-muted, #9ca3af);font-size:.8125rem;font-weight:500;font-family:inherit;cursor:pointer;transition:background .16s ease,color .16s ease}._BtnClose_cqv58_52:hover{background:#ffffff14;color:var(--chures-fg, #ffffff)}:where(._Backdrop_1w1e3_7){position:fixed;inset:0;background:var(--chures-overlay, rgb(0 0 0 / 58%));opacity:0;pointer-events:none;transition:opacity .26s ease}:where(._BackdropOpen_1w1e3_16){opacity:1;pointer-events:auto}:where(._Panel_1w1e3_21){position:fixed;display:flex;flex-direction:column;overflow:hidden;background:var(--chures-surface, #000000);box-shadow:0 0 3rem #00000059;transition:transform .28s cubic-bezier(.32,0,0,1)}:where(._Right_1w1e3_31){top:0;right:0;bottom:0;width:var(--chures-side-drawer-size, 22rem);max-width:100vw;transform:translate(100%)}:where(._Left_1w1e3_40){top:0;bottom:0;left:0;width:var(--chures-side-drawer-size, 22rem);max-width:100vw;transform:translate(-100%)}:where(._Top_1w1e3_49){top:0;left:0;right:0;height:var(--chures-side-drawer-size, 22rem);max-height:100vh;transform:translateY(-100%)}:where(._Bottom_1w1e3_58){left:0;right:0;bottom:0;height:var(--chures-side-drawer-size, 22rem);max-height:100vh;transform:translateY(100%)}:where(._PanelOpen_1w1e3_67){transform:translate(0)}@layer chures-defaults{:root{--chures-accent: #229ED9;--chures-accent-muted: rgb(34 158 217 / 50%);--chures-btn-from: #2AABEE;--chures-btn-to: #229ED9;--chures-button-bg: var(--chures-accent);--chures-error: #ef4444;--chures-warn: #f59e0b;--chures-bg: #000000;--chures-fg: #ffffff;--chures-fg-muted: #9ca3af;--chures-surface: #000000;--chures-font-sm: .875rem;--chures-font-xs: .75rem;--chures-input-bg: #111111;--chures-input-height: 3rem;--chures-input-radius: .75rem;--chures-skeleton-shine: #1e1e1e;--chures-toggle-width: 2.75rem;--chures-toggle-height: 1.5rem;--chures-toggle-thumb: 1.125rem;--chures-toggle-bg-off: rgb(255 255 255 / 13%);--chures-toggle-bg-on: var(--chures-accent);--chures-toggle-thumb-color: #ffffff;--chures-toggle-label-skeleton-w: 5rem;--chures-dropdown-bg: var(--chures-bg);--chures-dropdown-radius: .75rem;--chures-dropdown-row-radius: .375rem;--chures-dropdown-border: var(--chures-accent);--chures-dropdown-border-subtle: var(--chures-accent-muted);--chures-dropdown-hover: rgb(255 255 255 / 8%);--chures-dropdown-create-bg: rgb(34 158 217 / 12%);--chures-dropdown-create-bg-hover: rgb(34 158 217 / 20%);--chures-dropdown-trigger-border: rgb(255 255 255 / 22%);--chures-dropdown-trigger-border-hover: rgb(255 255 255 / 38%);--chures-dropdown-trigger-focus-ring: rgb(34 158 217 / 15%);--chures-dropdown-chip-border: rgb(34 158 217 / 30%);--chures-dropdown-panel-gap: .375rem;--chures-dropdown-icon-size: 1rem;--chures-dropdown-glass-bg: rgb(255 255 255 / 6%);--chures-dropdown-glass-blur: 1.25rem;--chures-dialog-glass-bg: rgb(255 255 255 / 6%);--chures-dialog-glass-blur: 1.25rem;--chures-overlay: rgb(0 0 0 / 58%);--chures-side-drawer-size: 22rem;--chures-flyout-bg: #0d0d0d;--chures-flyout-min-width: 10rem;--chures-flyout-border: rgb(255 255 255 / 11%);--chures-flyout-radius: .5rem;--chures-flyout-shadow: rgb(0 0 0 / 80%);--chures-flyout-fg: rgb(255 255 255 / 55%);--chures-flyout-fg-strong: rgb(255 255 255 / 92%);--chures-flyout-fg-muted: rgb(255 255 255 / 32%);--chures-flyout-hover: rgb(255 255 255 / 4%);--chures-flyout-skeleton: rgb(255 255 255 / 7%);--chures-flyout-font: .8125rem;--chures-flyout-font-sm: .6875rem;--chures-flyout-font-md: .75rem;--chures-flyout-font-mono: "JetBrains Mono", ui-monospace, sfmono-regular, menlo, monospace;--chures-segmented-bg: var(--chures-input-bg);--chures-segmented-radius: var(--chures-input-radius);--chures-segmented-pad: .25rem;--chures-segmented-highlight: var(--chures-accent);--chures-segmented-fg: var(--chures-fg-muted);--chures-segmented-fg-active: var(--chures-fg);--chures-segmented-gap: .25rem}}._FlyoutMenuContainer_1q0ma_5{display:contents}._Backdrop_1q0ma_9{position:fixed;inset:0}._Panel_1q0ma_14{position:fixed;display:flex;flex-direction:column;min-width:var(--chures-flyout-min-width);padding:.35rem;background:var(--chures-flyout-bg);border:1px solid var(--chures-flyout-border);border-radius:var(--chures-flyout-radius);box-shadow:0 1rem 2.5rem -.75rem var(--chures-flyout-shadow);overflow-y:auto}._Submenu_1q0ma_27{position:fixed;display:flex;flex-direction:column;min-width:var(--chures-flyout-min-width);background:var(--chures-flyout-bg);border:1px solid var(--chures-flyout-border);border-radius:var(--chures-flyout-radius);box-shadow:0 1rem 2.5rem -.75rem var(--chures-flyout-shadow);overflow-y:auto}._FlyoutPanelContainer_1q0ma_41{display:flex;flex-direction:column;gap:.15rem}._Back_1q0ma_9{display:flex;align-items:center;justify-content:flex-start;gap:.4rem;padding:.4rem .55rem;border:1px solid transparent;border-radius:var(--chures-flyout-radius);background:transparent;color:var(--chures-flyout-fg);font-size:var(--chures-flyout-font);text-align:left;cursor:pointer;transition:background .14s ease,color .14s ease}._Back_1q0ma_9:hover{background:var(--chures-flyout-hover);color:var(--chures-flyout-fg-strong)}._Chevron_1q0ma_68{flex-shrink:0;color:var(--chures-flyout-fg-muted)}._MenuListContainer_1q0ma_75{display:flex;flex-direction:column;gap:.15rem}._Heading_1q0ma_81{padding:.35rem .55rem .25rem;color:var(--chures-flyout-fg-muted);font-family:var(--chures-flyout-font-mono);font-size:var(--chures-flyout-font-sm);letter-spacing:.06rem;text-transform:uppercase}._Divider_1q0ma_90{height:1px;margin:.3rem .2rem;background:var(--chures-flyout-border)}._MenuRowContainer_1q0ma_98{display:flex}._MenuRowContainer_1q0ma_98._Dim_1q0ma_102{opacity:.5}._Row_1q0ma_106{display:flex;flex:1;min-width:0;align-items:center;justify-content:flex-start;gap:.5rem;padding:.4rem .55rem;overflow:hidden;border:1px solid transparent;border-radius:var(--chures-flyout-radius);background:transparent;color:var(--chures-flyout-fg);font-size:var(--chures-flyout-font);text-align:left;cursor:pointer;transition:background .14s ease,color .14s ease}._Row_1q0ma_106:hover:not(:disabled){background:var(--chures-flyout-hover);color:var(--chures-flyout-fg-strong)}._Row_1q0ma_106:disabled{color:var(--chures-flyout-fg-muted);cursor:default}._Icon_1q0ma_135{display:flex;flex-shrink:0}._Label_1q0ma_140{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}._Arrow_1q0ma_148{flex-shrink:0;color:var(--chures-flyout-fg-muted);font-size:var(--chures-flyout-font-md)}._MenuSkeletonContainer_1q0ma_156{display:flex;flex-direction:column;gap:.15rem;padding:.35rem .5rem}._MenuSkeletonRow_1q0ma_163{height:1.75rem;border-radius:var(--chures-flyout-radius);background:var(--chures-flyout-skeleton);animation:_churesFlyoutSkeletonPulse_1q0ma_1 1.5s ease-in-out infinite}._MenuSkeletonRow_1q0ma_163:nth-child(2){animation-delay:.15s}._MenuSkeletonRow_1q0ma_163:nth-child(3){animation-delay:.3s}@keyframes _churesFlyoutSkeletonPulse_1q0ma_1{0%,to{opacity:1}50%{opacity:.4}}._MenuSearchFieldContainer_1q0ma_191{overflow:hidden;padding-bottom:.35rem}')),document.head.appendChild(e)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
2
- import { jsx as o, jsxs as m, Fragment as $ } from "react/jsx-runtime";
3
- import { createContext as $e, useContext as Ge, useRef as x, useState as I, useEffect as A, forwardRef as un, useCallback as E, useLayoutEffect as de, Fragment as Ne, useMemo as je } from "react";
4
- import { AnimatePresence as ve, motion as se, useReducedMotion as dn } from "framer-motion";
5
- import { create as hn } from "zustand";
6
- import { createPortal as De } from "react-dom";
7
- function _n(e) {
1
+ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('@layer chures-defaults{:root{--chures-accent: #229ED9;--chures-accent-muted: rgb(34 158 217 / 50%);--chures-btn-from: #2AABEE;--chures-btn-to: #229ED9;--chures-button-bg: var(--chures-accent);--chures-error: #ef4444;--chures-warn: #f59e0b;--chures-bg: #000000;--chures-fg: #ffffff;--chures-fg-muted: #9ca3af;--chures-surface: #000000;--chures-font-sm: .875rem;--chures-font-xs: .75rem;--chures-input-bg: #111111;--chures-input-height: 3rem;--chures-input-radius: .75rem;--chures-skeleton-shine: #1e1e1e;--chures-toggle-width: 2.75rem;--chures-toggle-height: 1.5rem;--chures-toggle-thumb: 1.125rem;--chures-toggle-bg-off: rgb(255 255 255 / 13%);--chures-toggle-bg-on: var(--chures-accent);--chures-toggle-thumb-color: #ffffff;--chures-toggle-label-skeleton-w: 5rem;--chures-dropdown-bg: var(--chures-bg);--chures-dropdown-radius: .75rem;--chures-dropdown-row-radius: .375rem;--chures-dropdown-border: var(--chures-accent);--chures-dropdown-border-subtle: var(--chures-accent-muted);--chures-dropdown-hover: rgb(255 255 255 / 8%);--chures-dropdown-create-bg: rgb(34 158 217 / 12%);--chures-dropdown-create-bg-hover: rgb(34 158 217 / 20%);--chures-dropdown-trigger-border: rgb(255 255 255 / 22%);--chures-dropdown-trigger-border-hover: rgb(255 255 255 / 38%);--chures-dropdown-trigger-focus-ring: rgb(34 158 217 / 15%);--chures-dropdown-chip-border: rgb(34 158 217 / 30%);--chures-dropdown-panel-gap: .375rem;--chures-dropdown-icon-size: 1rem;--chures-dropdown-glass-bg: rgb(255 255 255 / 6%);--chures-dropdown-glass-blur: 1.25rem;--chures-dialog-glass-bg: rgb(255 255 255 / 6%);--chures-dialog-glass-blur: 1.25rem;--chures-overlay: rgb(0 0 0 / 58%);--chures-side-drawer-size: 22rem;--chures-flyout-bg: #0d0d0d;--chures-flyout-min-width: 10rem;--chures-flyout-border: rgb(255 255 255 / 11%);--chures-flyout-radius: .5rem;--chures-flyout-shadow: rgb(0 0 0 / 80%);--chures-flyout-fg: rgb(255 255 255 / 55%);--chures-flyout-fg-strong: rgb(255 255 255 / 92%);--chures-flyout-fg-muted: rgb(255 255 255 / 32%);--chures-flyout-hover: rgb(255 255 255 / 4%);--chures-flyout-skeleton: rgb(255 255 255 / 7%);--chures-flyout-font: .8125rem;--chures-flyout-font-sm: .6875rem;--chures-flyout-font-md: .75rem;--chures-flyout-font-mono: "JetBrains Mono", ui-monospace, sfmono-regular, menlo, monospace;--chures-segmented-bg: var(--chures-input-bg);--chures-segmented-radius: var(--chures-input-radius);--chures-segmented-pad: .25rem;--chures-segmented-highlight: var(--chures-accent);--chures-segmented-fg: var(--chures-fg-muted);--chures-segmented-fg-active: var(--chures-fg);--chures-segmented-gap: .25rem}}@keyframes _spin_wa8op_1{to{transform:rotate(360deg)}}@keyframes _ripple_wa8op_1{0%{transform:scale(.08);opacity:.9}to{transform:scale(1);opacity:0}}@keyframes _dotPulse_wa8op_1{0%,to{transform:translate(-50%,-50%) scale(.55);opacity:.3}50%{transform:translate(-50%,calc(-50% - var(--sz) * .1)) scale(1);opacity:1}}@keyframes _waveBounce_wa8op_1{0%,55%,to{transform:translate(-50%,-50%) scale(.8);opacity:.4}27%{transform:translate(-50%,calc(-50% - var(--sz) * .28)) scale(1);opacity:1}}._LoaderContainer_wa8op_24{position:relative;flex-shrink:0}._sm_wa8op_31{width:1.5rem;height:1.5rem;--sz: 1.5rem;--arc-gap: .2rem;--arc-bw: .125rem}._md_wa8op_32{width:2.5rem;height:2.5rem;--sz: 2.5rem;--arc-gap: .35rem;--arc-bw: .1875rem}._lg_wa8op_33{width:4rem;height:4rem;--sz: 4rem;--arc-gap: .55rem;--arc-bw: .25rem}._Arc1_wa8op_37,._Arc2_wa8op_38,._Arc3_wa8op_39{position:absolute;border-radius:50%;border:var(--arc-bw) solid transparent}._Arc1_wa8op_37{inset:0;border-top-color:var(--chures-accent, #229ED9);border-left-color:var(--chures-accent, #229ED9);animation:_spin_wa8op_1 1.2s linear infinite;filter:drop-shadow(0 0 .25rem var(--chures-accent, #229ED9))}._Arc2_wa8op_38{inset:var(--arc-gap);border-bottom-color:var(--chures-accent, #229ED9);border-right-color:var(--chures-accent, #229ED9);animation:_spin_wa8op_1 1.8s linear infinite reverse;opacity:.8}._Arc3_wa8op_39{inset:calc(var(--arc-gap) * 2);border-top-color:var(--chures-accent, #229ED9);border-right-color:var(--chures-accent, #229ED9);animation:_spin_wa8op_1 2.4s linear infinite;opacity:.6}._Ring1_wa8op_71,._Ring2_wa8op_72,._Ring3_wa8op_73{position:absolute;inset:0;border-radius:50%;border:var(--arc-bw) solid var(--chures-accent, #229ED9);animation:_ripple_wa8op_1 1.8s ease-out infinite both}._Ring2_wa8op_72{animation-delay:.6s}._Ring3_wa8op_73{animation-delay:1.2s}._Dot1_wa8op_86,._Dot2_wa8op_87,._Dot3_wa8op_88{position:absolute;top:50%;border-radius:50%;width:calc(var(--sz) * .2);height:calc(var(--sz) * .2);background:var(--chures-accent, #229ED9);box-shadow:0 0 calc(var(--sz) * .14) var(--chures-accent, #229ED9);animation:_dotPulse_wa8op_1 1.1s ease-in-out infinite both}._Dot1_wa8op_86{left:22%}._Dot2_wa8op_87{left:50%;animation-delay:.18s}._Dot3_wa8op_88{left:78%;animation-delay:.36s}._Wave1_wa8op_105,._Wave2_wa8op_106,._Wave3_wa8op_107,._Wave4_wa8op_108,._Wave5_wa8op_109{position:absolute;top:50%;border-radius:50%;width:calc(var(--sz) * .16);height:calc(var(--sz) * .16);background:var(--chures-accent, #229ED9);box-shadow:0 0 calc(var(--sz) * .1) var(--chures-accent, #229ED9);animation:_waveBounce_wa8op_1 1s ease-in-out infinite both}._Wave1_wa8op_105{left:10%}._Wave2_wa8op_106{left:28%;animation-delay:.12s}._Wave3_wa8op_107{left:46%;animation-delay:.24s}._Wave4_wa8op_108{left:64%;animation-delay:.36s}._Wave5_wa8op_109{left:82%;animation-delay:.48s}._LoadingWrapperContainer_1q0w7_1{display:flex;align-items:center;justify-content:center;width:100%;min-height:4rem}._SkeletonWrapper_1q0w7_9{width:100%}._TelegramSignInButtonContainer_10wun_1{display:inline-flex;align-items:center;justify-content:center;gap:.625rem;width:100%;padding:1rem 1.375rem;background:linear-gradient(180deg,var(--chures-btn-from, #2AABEE) 0%,var(--chures-btn-to, #229ED9) 100%);border:0;border-radius:.875rem;color:#fff;font-family:Comfortaa,sans-serif;font-weight:600;font-size:1rem;letter-spacing:-.005em;cursor:pointer;box-shadow:inset 0 .0625rem #ffffff26,0 .75rem 2rem -.75rem #2aabee8c;transition:transform .14s ease,box-shadow .2s ease,filter .16s ease}._TelegramSignInButtonContainer_10wun_1:hover{transform:translateY(-.0625rem);box-shadow:inset 0 .0625rem #ffffff2e,0 1.125rem 2.375rem -.75rem #2aabeea6;filter:brightness(1.05)}._TelegramSignInButtonContainer_10wun_1:active{transform:translateY(0);filter:brightness(.97)}._TelegramSignInButtonContainer_10wun_1:focus-visible{outline:.125rem solid rgba(255,255,255,.8);outline-offset:.125rem}._TelegramSignInButtonContainer_10wun_1:disabled{opacity:.6;cursor:not-allowed}._FullSize_10wun_46{height:100%}._Icon_10wun_50{flex-shrink:0}._ToastContainer_1tme2_1{position:fixed;right:1.5rem;top:1.5rem;width:clamp(25vw,24.5rem,95vw);display:flex;flex-direction:column;gap:1rem;z-index:9999}._Toast_1tme2_1{min-height:4rem;border:var(--chures-accent, #229ED9) 1px solid;border-radius:1rem;padding:1rem;box-sizing:border-box;position:relative;background:var(--chures-surface, #000000);display:flex;flex-direction:column}._Toast_1tme2_1>div:first-child{font-weight:700;font-size:var(--chures-font-sm, .875rem);color:var(--chures-fg, #ffffff)}._Toast_1tme2_1._error_1tme2_33{border-color:var(--chures-error, #ef4444)}._Toast_1tme2_1._error_1tme2_33>div:first-child{color:var(--chures-error, #ef4444)}._Toast_1tme2_1._warn_1tme2_41{border-color:var(--chures-warn, #f59e0b)}._Toast_1tme2_1._warn_1tme2_41>div:first-child{color:var(--chures-warn, #f59e0b)}._Toast_1tme2_1._info_1tme2_49{border-color:var(--chures-accent, #229ED9)}._Toast_1tme2_1 ._Description_1tme2_53{color:var(--chures-fg-muted, #9ca3af);font-size:var(--chures-font-xs, .75rem);margin-top:.125rem}._Toast_1tme2_1 ._DismissButton_1tme2_59{position:absolute;width:1rem;height:1rem;display:flex;justify-content:center;align-items:center;top:0;right:1%;cursor:pointer;font-size:1.5rem;color:var(--chures-fg-muted, #9ca3af)}._slideIn_1tme2_79{animation:_slideIn_1tme2_79 .2s ease forwards}._slideOut_1tme2_83{animation:_slideOut_1tme2_83 .2s ease forwards}@keyframes _slideIn_1tme2_79{0%{opacity:0;transform:translate(2rem)}to{opacity:1;transform:translate(0)}}@keyframes _slideOut_1tme2_83{0%{opacity:1;transform:translate(0)}to{opacity:0;transform:translate(2rem)}}@keyframes _shimmer_15tk2_1{0%{background-position:-200% 0}to{background-position:200% 0}}:where(._InputContainer_15tk2_15){position:relative;display:flex;flex-direction:column;width:100%}:where(._InputBox_15tk2_22){position:relative;width:100%;height:var(--chures-input-height, 3rem)}:where(._InputField_15tk2_28){width:100%;height:100%;background:var(--chures-input-bg, #111111);border:.0625rem solid rgb(255 255 255 / 13%);border-radius:var(--chures-input-radius, .75rem);color:var(--chures-fg, #ffffff);font-size:var(--chures-font-sm, .875rem);padding:0 .875rem;outline:none;transition:border-color .18s ease;box-sizing:border-box}:where(._InputField_15tk2_28._hasStartIcon_15tk2_42){padding-left:2.25rem}:where(._InputField_15tk2_28._hasEndIcon_15tk2_46){padding-right:2.25rem}:where(._StartIcon_15tk2_50){position:absolute;left:.875rem;top:50%;transform:translateY(-50%);display:flex;align-items:center;color:var(--chures-fg-muted, #9ca3af);pointer-events:none}:where(._EndIcon_15tk2_61){position:absolute;right:.875rem;top:50%;transform:translateY(-50%);display:flex;align-items:center;color:var(--chures-fg-muted, #9ca3af);pointer-events:none}:where(._InputField_15tk2_28):focus{border-color:#ffffff59}:where(._InputField_15tk2_28:not(:focus):has(+._Label_15tk2_77))::placeholder{color:transparent}:where(._hasError_15tk2_81 ._InputField_15tk2_28),:where(._hasError_15tk2_81 ._InputField_15tk2_28):focus{border-color:var(--chures-error, #ef4444)}:where(._disabled_15tk2_86 ._InputField_15tk2_28){opacity:.45;cursor:not-allowed}:where(._Label_15tk2_77){position:absolute;left:.875rem;top:50%;transform:translateY(-50%);transform-origin:left center;color:var(--chures-fg-muted, #9ca3af);font-size:var(--chures-font-sm, .875rem);pointer-events:none;transition:all .18s ease;padding:0 .25rem;border-radius:.1875rem}:where(._Label_15tk2_77._lifted_15tk2_105){top:0;transform:translateY(-50%) scale(.82);background:var(--chures-input-bg, #111111);color:var(--chures-fg-muted, #9ca3af)}:where(._hasError_15tk2_81 ._Label_15tk2_77._lifted_15tk2_105){color:var(--chures-error, #ef4444)}@keyframes _errorIn_15tk2_1{0%{opacity:0;max-height:0}to{opacity:1;max-height:3rem}}:where(._ErrorText_15tk2_121){display:block;margin-top:.25rem;padding-left:.875rem;font-size:var(--chures-font-xs, .75rem);color:var(--chures-error, #ef4444);overflow:hidden;animation:_errorIn_15tk2_1 .18s ease-out}@media(prefers-reduced-motion:reduce){:where(._ErrorText_15tk2_121){animation:none}}:where(._Skeleton_15tk2_137){width:100%;height:var(--chures-input-height, 3rem);border-radius:var(--chures-input-radius, .75rem);background:linear-gradient(90deg,var(--chures-input-bg, #111111) 25%,var(--chures-skeleton-shine, #1e1e1e) 50%,var(--chures-input-bg, #111111) 75%);background-size:200% 100%;animation:_shimmer_15tk2_1 1.5s ease-in-out infinite}@keyframes _shimmer_1jetc_1{0%{background-position:-200% 0}to{background-position:200% 0}}._ToggleContainer_1jetc_6{display:inline-flex;align-items:center;gap:.5rem;cursor:pointer}._disabled_1jetc_13{opacity:.45;cursor:not-allowed}._Track_1jetc_18{position:relative;width:var(--chures-toggle-width, 2.75rem);height:var(--chures-toggle-height, 1.5rem);border-radius:624.9375rem;background:var(--chures-toggle-bg-off, rgb(255 255 255 / 13%));border:none;padding:0;cursor:pointer;transition:background .2s ease;flex-shrink:0}._Track_1jetc_18._on_1jetc_31{background:var(--chures-toggle-bg-on, var(--chures-accent, #229ED9))}._disabled_1jetc_13 ._Track_1jetc_18{cursor:not-allowed}._Thumb_1jetc_39{position:absolute;top:0;bottom:0;margin:auto 0;left:.1875rem;width:var(--chures-toggle-thumb, 1.125rem);height:var(--chures-toggle-thumb, 1.125rem);border-radius:50%;background:var(--chures-toggle-thumb-color, #ffffff);transition:left .2s ease;pointer-events:none}._Track_1jetc_18._on_1jetc_31 ._Thumb_1jetc_39{left:calc(var(--chures-toggle-width, 2.75rem) - var(--chures-toggle-thumb, 1.125rem) - .1875rem)}._Label_1jetc_57{font-size:var(--chures-font-sm, .875rem);color:var(--chures-fg, #ffffff);-webkit-user-select:none;user-select:none}._LabelSkeleton_1jetc_63{display:inline-block;width:var(--chures-toggle-label-skeleton-w, 5rem);height:var(--chures-font-sm, .875rem);border-radius:624.9375rem;background:linear-gradient(90deg,var(--chures-input-bg, #111111) 25%,var(--chures-skeleton-shine, #1e1e1e) 50%,var(--chures-input-bg, #111111) 75%);background-size:200% 100%;animation:_shimmer_1jetc_1 1.5s ease-in-out infinite}._Skeleton_1jetc_78{width:var(--chures-toggle-width, 2.75rem);height:var(--chures-toggle-height, 1.5rem);border-radius:624.9375rem;background:linear-gradient(90deg,var(--chures-input-bg, #111111) 25%,var(--chures-skeleton-shine, #1e1e1e) 50%,var(--chures-input-bg, #111111) 75%);background-size:200% 100%;animation:_shimmer_1jetc_1 1.5s ease-in-out infinite}._AccordionContainer_atyoj_1{display:flex;flex-direction:column}._AccordionContainer_atyoj_1 ._Header_atyoj_5{display:flex;align-items:center;justify-content:space-between;gap:.75rem;width:100%;padding:.5rem 0;font-size:var(--chures-font-sm, .875rem);color:var(--chures-fg, #ffffff);transition:color .2s ease}._AccordionContainer_atyoj_1 ._Header_atyoj_5:hover{color:var(--chures-accent, #229ED9)}._AccordionContainer_atyoj_1 ._Header_atyoj_5:focus-visible{outline:.125rem solid var(--chures-accent, #229ED9);outline-offset:.125rem;border-radius:var(--chures-dropdown-row-radius, .375rem)}._AccordionContainer_atyoj_1 ._Heading_atyoj_27{display:flex;align-items:center;gap:.5rem;min-width:0}._AccordionContainer_atyoj_1 ._Chevron_atyoj_34{width:1rem;height:1rem;flex-shrink:0;transition:transform .25s cubic-bezier(.2,.7,.2,1)}._AccordionContainer_atyoj_1 ._Title_atyoj_41{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._AccordionContainer_atyoj_1 ._Meta_atyoj_47{flex-shrink:0;font-size:var(--chures-font-xs, .75rem);color:var(--chures-fg-muted, #9ca3af)}._AccordionContainer_atyoj_1 ._Panel_atyoj_53{display:grid;grid-template-rows:0fr;visibility:hidden;transition:grid-template-rows .25s cubic-bezier(.2,.7,.2,1),visibility 0s linear .25s}._AccordionContainer_atyoj_1 ._PanelContent_atyoj_62{min-height:0;overflow:hidden}._AccordionContainer_atyoj_1._isOpen_atyoj_67 ._Chevron_atyoj_34{transform:rotate(180deg)}._AccordionContainer_atyoj_1._isOpen_atyoj_67 ._Panel_atyoj_53{grid-template-rows:1fr;visibility:visible;transition:grid-template-rows .25s cubic-bezier(.2,.7,.2,1),visibility 0s linear 0s}@media(prefers-reduced-motion:reduce){._AccordionContainer_atyoj_1 ._Header_atyoj_5,._AccordionContainer_atyoj_1 ._Chevron_atyoj_34,._AccordionContainer_atyoj_1 ._Panel_atyoj_53,._AccordionContainer_atyoj_1._isOpen_atyoj_67 ._Panel_atyoj_53{transition:none}}:where(._Btn_1wp07_10){display:inline-flex;align-items:center;justify-content:center;gap:.375rem;border-radius:.625rem;border:1px solid transparent;font-family:inherit;font-size:.8125rem;font-weight:500;cursor:pointer;padding:.625rem 1rem;transition:all .16s ease;white-space:nowrap;color:var(--chures-fg, #ffffff);background:var(--chures-button-bg)}:where(._Btn_1wp07_10):disabled{opacity:.4;cursor:not-allowed}:where(._Unstyled_1wp07_35){appearance:none;margin:0;padding:0;border:none;background:none;font:inherit;color:inherit;text-align:inherit;cursor:pointer}:where(._Unstyled_1wp07_35):disabled{cursor:not-allowed}:where(._Primary_1wp07_52){background:var(--chures-accent, #229ED9);border-color:var(--chures-accent, #229ED9);color:#fff;font-weight:600;padding:.625rem 1.125rem;box-shadow:0 10px 28px -12px var(--chures-accent-muted, rgb(34 158 217 / 50%));transition:filter .16s ease,opacity .16s ease}:where(._Primary_1wp07_52):hover:not(:disabled){filter:brightness(1.06)}:where(._Secondary_1wp07_67){background:transparent;border-color:#ffffff24;color:var(--chures-fg-muted, #9ca3af)}:where(._Secondary_1wp07_67):hover:not(:disabled){color:var(--chures-fg, #ffffff);border-color:#ffffff47}:where(._Ghost_1wp07_79){background:transparent;border-color:#ffffff24;color:var(--chures-fg-muted, #9ca3af)}:where(._Ghost_1wp07_79):hover:not(:disabled){color:var(--chures-fg, #ffffff);border-color:#ffffff47}:where(._IconDanger_1wp07_91){width:1.375rem;height:1.375rem;padding:0;border:0;border-radius:.375rem;background:transparent;color:var(--chures-fg-muted, #9ca3af);font-size:1rem;line-height:1;justify-content:center;flex-shrink:0;transition:background .14s ease,color .14s ease}:where(._IconDanger_1wp07_91):hover:not(:disabled){background:#ef44441f;color:var(--chures-error, #ef4444)}:where(._Danger_1wp07_112){background:transparent;border-color:#ef444466;color:var(--chures-error, #ef4444);transition:background .16s ease,border-color .16s ease}:where(._Danger_1wp07_112):hover:not(:disabled){background:#ef44441a;border-color:var(--chures-error, #ef4444)}:where(._SegmentedControlContainer_ga29h_2){position:relative;display:inline-flex;align-items:stretch;gap:var(--chures-segmented-gap);box-sizing:border-box;max-width:100%;padding:var(--chures-segmented-pad);border-radius:var(--chures-segmented-radius);background:var(--chures-segmented-bg);overflow-x:auto;scrollbar-width:none}:where(._SegmentedControlContainer_ga29h_2)::-webkit-scrollbar{display:none}:where(._Disabled_ga29h_20){opacity:.45;cursor:not-allowed}:where(._Highlight_ga29h_25){position:absolute;top:var(--chures-segmented-pad);bottom:var(--chures-segmented-pad);border-radius:max(0rem,calc(var(--chures-segmented-radius) - var(--chures-segmented-pad)));background:var(--chures-segmented-highlight);pointer-events:none}:where(._Option_ga29h_34){position:relative;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;padding:.5rem 1rem;border:0;border-radius:max(0rem,calc(var(--chures-segmented-radius) - var(--chures-segmented-pad)));background:transparent;color:var(--chures-segmented-fg);font-family:inherit;font-size:var(--chures-font-sm);font-weight:500;white-space:nowrap;cursor:pointer;transition:color .2s ease}:where(._Option_ga29h_34):hover:not(:disabled){color:var(--chures-segmented-fg-active)}:where(._Option_ga29h_34):disabled{cursor:not-allowed}:where(._OptionDisabled_ga29h_61){opacity:.45}:where(._Selected_ga29h_65){color:var(--chures-segmented-fg-active)}:where(._CheckboxContainer_14vl9_4){display:inline-flex;align-items:center;gap:.5rem;cursor:pointer;-webkit-user-select:none;user-select:none}:where(._CheckboxContainer_14vl9_4._disabled_14vl9_12){opacity:.45;cursor:not-allowed}:where(._BoxWrapper_14vl9_17){position:relative;display:inline-flex;flex-shrink:0;width:var(--chures-checkbox-size, 1.125rem);height:var(--chures-checkbox-size, 1.125rem)}:where(._BoxWrapper_14vl9_17) input{position:absolute;inset:0;margin:0;cursor:pointer;opacity:0}:where(._CheckboxContainer_14vl9_4._disabled_14vl9_12) ._BoxWrapper_14vl9_17 input{cursor:not-allowed}:where(._Box_14vl9_17){position:absolute;inset:0;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--chures-checkbox-radius, .3125rem);border:1px solid var(--chures-checkbox-border, rgb(255 255 255 / 25%));background:var(--chures-checkbox-bg, transparent);color:transparent;pointer-events:none;transition:background .16s ease,border-color .16s ease,color .16s ease}:where(._BoxWrapper_14vl9_17) input:checked+:where(._Box_14vl9_17){background:var(--chures-checkbox-bg-on, var(--chures-accent, #229ED9));border-color:var(--chures-checkbox-bg-on, var(--chures-accent, #229ED9));color:var(--chures-checkbox-tick, #ffffff)}:where(._BoxWrapper_14vl9_17) input:focus-visible+:where(._Box_14vl9_17){outline:2px solid var(--chures-accent, #229ED9);outline-offset:.125rem}:where(._Label_14vl9_62){font-size:var(--chures-font-sm, .875rem);color:var(--chures-fg, #ffffff)}@layer chures-defaults{:root{--chures-accent: #229ED9;--chures-accent-muted: rgb(34 158 217 / 50%);--chures-btn-from: #2AABEE;--chures-btn-to: #229ED9;--chures-button-bg: var(--chures-accent);--chures-error: #ef4444;--chures-warn: #f59e0b;--chures-bg: #000000;--chures-fg: #ffffff;--chures-fg-muted: #9ca3af;--chures-surface: #000000;--chures-font-sm: .875rem;--chures-font-xs: .75rem;--chures-input-bg: #111111;--chures-input-height: 3rem;--chures-input-radius: .75rem;--chures-skeleton-shine: #1e1e1e;--chures-toggle-width: 2.75rem;--chures-toggle-height: 1.5rem;--chures-toggle-thumb: 1.125rem;--chures-toggle-bg-off: rgb(255 255 255 / 13%);--chures-toggle-bg-on: var(--chures-accent);--chures-toggle-thumb-color: #ffffff;--chures-toggle-label-skeleton-w: 5rem;--chures-dropdown-bg: var(--chures-bg);--chures-dropdown-radius: .75rem;--chures-dropdown-row-radius: .375rem;--chures-dropdown-border: var(--chures-accent);--chures-dropdown-border-subtle: var(--chures-accent-muted);--chures-dropdown-hover: rgb(255 255 255 / 8%);--chures-dropdown-create-bg: rgb(34 158 217 / 12%);--chures-dropdown-create-bg-hover: rgb(34 158 217 / 20%);--chures-dropdown-trigger-border: rgb(255 255 255 / 22%);--chures-dropdown-trigger-border-hover: rgb(255 255 255 / 38%);--chures-dropdown-trigger-focus-ring: rgb(34 158 217 / 15%);--chures-dropdown-chip-border: rgb(34 158 217 / 30%);--chures-dropdown-panel-gap: .375rem;--chures-dropdown-icon-size: 1rem;--chures-dropdown-glass-bg: rgb(255 255 255 / 6%);--chures-dropdown-glass-blur: 1.25rem;--chures-dialog-glass-bg: rgb(255 255 255 / 6%);--chures-dialog-glass-blur: 1.25rem;--chures-overlay: rgb(0 0 0 / 58%);--chures-side-drawer-size: 22rem;--chures-flyout-bg: #0d0d0d;--chures-flyout-min-width: 10rem;--chures-flyout-border: rgb(255 255 255 / 11%);--chures-flyout-radius: .5rem;--chures-flyout-shadow: rgb(0 0 0 / 80%);--chures-flyout-fg: rgb(255 255 255 / 55%);--chures-flyout-fg-strong: rgb(255 255 255 / 92%);--chures-flyout-fg-muted: rgb(255 255 255 / 32%);--chures-flyout-hover: rgb(255 255 255 / 4%);--chures-flyout-skeleton: rgb(255 255 255 / 7%);--chures-flyout-font: .8125rem;--chures-flyout-font-sm: .6875rem;--chures-flyout-font-md: .75rem;--chures-flyout-font-mono: "JetBrains Mono", ui-monospace, sfmono-regular, menlo, monospace;--chures-segmented-bg: var(--chures-input-bg);--chures-segmented-radius: var(--chures-input-radius);--chures-segmented-pad: .25rem;--chures-segmented-highlight: var(--chures-accent);--chures-segmented-fg: var(--chures-fg-muted);--chures-segmented-fg-active: var(--chures-fg);--chures-segmented-gap: .25rem}}@keyframes _panelIn_5x7b0_1{0%{opacity:0;transform:scale(.96) translateY(6px)}to{opacity:1;transform:none}}@keyframes _panelInAbove_5x7b0_1{0%{opacity:0;transform:scale(.96) translateY(-6px)}to{opacity:1;transform:none}}@keyframes _shimmer_5x7b0_1{0%{background-position:-200% center}to{background-position:200% center}}._DropdownContainer_5x7b0_18{position:relative;width:100%}._PanelWrapper_5x7b0_25{position:absolute;top:calc(100% + var(--chures-dropdown-panel-gap));left:0;width:100%;animation:_panelIn_5x7b0_1 .14s ease}._PanelWrapper_5x7b0_25._Portal_5x7b0_39{position:fixed;width:auto;margin:var(--chures-dropdown-panel-gap) 0}._PanelWrapper_5x7b0_25._Above_5x7b0_47{top:auto;transform-origin:bottom center;animation-name:_panelInAbove_5x7b0_1}._PanelContainer_5x7b0_23{background:var(--chures-dropdown-bg);border:1px solid var(--chures-dropdown-border);border-radius:var(--chures-dropdown-radius);overflow:hidden;display:flex;flex-direction:column;max-height:var(--dropdown-available-height, none);box-shadow:0 1rem 3rem #000c}._PanelContainer_5x7b0_23._Glass_5x7b0_64{background:var(--chures-dropdown-glass-bg, rgb(255 255 255 / 6%));backdrop-filter:blur(var(--chures-dropdown-glass-blur, 1.25rem));-webkit-backdrop-filter:blur(var(--chures-dropdown-glass-blur, 1.25rem))}._Label_5x7b0_70{position:absolute;left:.875rem;top:50%;transform:translateY(-50%);transform-origin:left center;color:var(--chures-fg-muted);font-size:var(--chures-font-sm);pointer-events:none;transition:all .18s ease;padding:0 .25rem;border-radius:.1875rem}._Label_5x7b0_70._WithIcon_5x7b0_84:not(._lifted_5x7b0_84){left:calc(.875rem + var(--chures-dropdown-icon-size) + .5rem)}._Label_5x7b0_70._lifted_5x7b0_84{top:0;transform:translateY(-50%) scale(.82);background:var(--chures-input-bg);color:var(--chures-fg-muted)}._TriggerContainer_5x7b0_95{width:100%;height:var(--chures-input-height);background:var(--chures-input-bg);border:1px solid var(--chures-dropdown-trigger-border);border-radius:var(--chures-input-radius);color:var(--chures-fg);font-size:var(--chures-font-sm);font-family:inherit;padding:0 .875rem;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:.5rem;text-align:left;overflow:hidden;transition:border-color .15s ease,box-shadow .15s ease}._TriggerContainer_5x7b0_95:hover{border-color:var(--chures-dropdown-trigger-border-hover)}._TriggerContainer_5x7b0_95._Open_5x7b0_119{border-color:var(--chures-accent);box-shadow:0 0 0 .1875rem var(--chures-dropdown-trigger-focus-ring)}._TriggerPlaceholder_5x7b0_124{color:var(--chures-fg-muted);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._TriggerValue_5x7b0_132{color:var(--chures-fg);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._TriggerIcon_5x7b0_140{color:var(--chures-fg-muted);flex-shrink:0;display:flex;align-items:center}._ChipsWrapper_5x7b0_147{display:flex;flex-wrap:nowrap;gap:.25rem;flex:1;overflow-x:auto;overflow-y:hidden;min-width:0;align-items:center;margin:.375rem 0;scrollbar-width:none;-ms-overflow-style:none}._ChipsWrapper_5x7b0_147::-webkit-scrollbar{display:none}._ChipsWrapper_5x7b0_147._Expand_5x7b0_165{flex-wrap:wrap;overflow:visible;row-gap:.25rem}._TriggerContainer_5x7b0_95._MultiSelect_5x7b0_171 ._TriggerIcon_5x7b0_140{align-self:flex-start;height:var(--chures-input-height)}._TriggerContainer_5x7b0_95._ExpandHeight_5x7b0_176{height:auto;min-height:var(--chures-input-height)}._TriggerContainer_5x7b0_95._RichValue_5x7b0_181{height:auto;min-height:calc(var(--chures-input-height) * 1.25);padding:.625rem .875rem}._TriggerContainer_5x7b0_95._WithIcon_5x7b0_84{padding-left:calc(.875rem + var(--chures-dropdown-icon-size) + .5rem)}._LeadingIcon_5x7b0_191{position:absolute;left:.875rem;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:var(--chures-dropdown-icon-size);height:var(--chures-dropdown-icon-size);color:var(--chures-fg-muted);pointer-events:none}._TriggerValueRich_5x7b0_205{flex:1;min-width:0;overflow:hidden}._Chip_5x7b0_147{display:inline-flex;align-items:center;flex-shrink:0;background:var(--chures-dropdown-create-bg);border:1px solid var(--chures-dropdown-chip-border);border-radius:624.9375rem;padding:.15rem .5rem;font-size:var(--chures-font-xs);color:var(--chures-fg);white-space:nowrap;line-height:1.4}._SearchRow_5x7b0_225{flex-shrink:0;padding:.5rem;border-bottom:1px solid var(--chures-dropdown-border-subtle)}._SearchBox_5x7b0_231{display:flex;align-items:center;gap:.5rem;background:var(--chures-input-bg);border:1px solid var(--chures-dropdown-border-subtle);border-radius:var(--chures-dropdown-row-radius);padding:.4rem .625rem}._SearchIcon_5x7b0_241{display:flex;align-items:center;color:var(--chures-fg-muted);flex-shrink:0}._SearchInput_5x7b0_248{flex:1;background:transparent;border:none;outline:none;font-size:var(--chures-font-sm);color:var(--chures-fg);font-family:inherit}._SearchInput_5x7b0_248::placeholder{color:var(--chures-fg-muted)}._ResultsList_5x7b0_262{max-height:13rem;min-height:0;overflow-y:auto}._OptionRow_5x7b0_268{padding:.5625rem .875rem;font-size:var(--chures-font-sm);color:var(--chures-fg-muted);cursor:pointer;transition:background .1s ease,color .1s ease;display:flex;align-items:center;gap:.5rem}._OptionRow_5x7b0_268:hover{background:var(--chures-dropdown-hover);color:var(--chures-fg)}._OptionRow_5x7b0_268._Selected_5x7b0_283{color:var(--chures-fg)}._OptionRow_5x7b0_268._Indented_5x7b0_287{padding-left:1.875rem}._OptionRow_5x7b0_268._Disabled_5x7b0_291{cursor:not-allowed;opacity:.5}._OptionRow_5x7b0_268._Disabled_5x7b0_291:hover{background:transparent;color:var(--chures-fg-muted)}._GroupHeader_5x7b0_302{padding:.5625rem .875rem .25rem;font-size:var(--chures-font-xs);color:var(--chures-fg-muted);text-transform:uppercase;letter-spacing:.03em}._GroupHeader_5x7b0_302:not(:first-child){margin-top:.25rem;border-top:1px solid var(--chures-dropdown-border-subtle)}._CheckSlot_5x7b0_317{display:inline-flex;align-items:center;flex-shrink:0;width:0;margin-right:-.5rem;overflow:hidden;color:var(--chures-accent);transition:width .18s ease,margin-right .18s ease}._CheckSlot_5x7b0_317._Checked_5x7b0_327{width:1rem;margin-right:0}._CheckIcon_5x7b0_333{width:.75rem;height:.75rem;flex-shrink:0}._CheckIcon_5x7b0_333 path{stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset .22s ease .06s}._CheckSlot_5x7b0_317._Checked_5x7b0_327 ._CheckIcon_5x7b0_333 path{stroke-dashoffset:0}@media(prefers-reduced-motion:reduce){._CheckSlot_5x7b0_317,._CheckIcon_5x7b0_333 path{transition:none}}._CreateRow_5x7b0_360{display:flex;align-items:center;gap:.625rem;padding:.5625rem .875rem;cursor:pointer;background:var(--chures-dropdown-create-bg);transition:background .1s ease}._CreateRow_5x7b0_360:hover{background:var(--chures-dropdown-create-bg-hover)}._CreateRow_5x7b0_360._WithBorder_5x7b0_373{border-top:1px solid var(--chures-dropdown-border-subtle)}._CreateIcon_5x7b0_378{display:inline-flex;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;border-radius:50%;background:var(--chures-accent);color:#fff;flex-shrink:0}._CreateLabel_5x7b0_390{font-size:var(--chures-font-sm);font-weight:600;color:var(--chures-fg)}._EmptyHint_5x7b0_396{padding:.75rem .875rem;font-size:var(--chures-font-sm);color:var(--chures-fg-muted);font-style:italic}._SkeletonRow_5x7b0_403{height:2rem;margin:.375rem .875rem;border-radius:var(--chures-dropdown-row-radius);background:linear-gradient(90deg,var(--chures-dropdown-bg) 25%,var(--chures-skeleton-shine) 50%,var(--chures-dropdown-bg) 75%);background-size:200% 100%;animation:_shimmer_5x7b0_1 1.4s infinite linear}._ConfirmWrapper_1tq4o_4{width:100%;max-width:24rem;animation:_confirmIn_1tq4o_1 .28s cubic-bezier(.2,.7,.2,1) both}@keyframes _confirmIn_1tq4o_1{0%{opacity:0;transform:translateY(.75rem) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}._ConfirmContainer_1tq4o_1{width:100%;background:var(--chures-surface, #000000);border:1px solid rgb(255 255 255 / 14%);border-radius:1.25rem;padding:1.75rem 1.75rem 1.5rem;box-shadow:0 32px 80px -20px #000c}._Glass_1tq4o_24{background:var(--chures-dialog-glass-bg, rgb(255 255 255 / 6%));backdrop-filter:blur(var(--chures-dialog-glass-blur, 1.25rem));-webkit-backdrop-filter:blur(var(--chures-dialog-glass-blur, 1.25rem))}._ConfirmTitle_1tq4o_30{font-size:1.25rem;font-weight:600;letter-spacing:-.02em;color:var(--chures-fg, #ffffff);margin-bottom:.75rem}._ConfirmMessage_1tq4o_38{font-size:.875rem;color:var(--chures-fg-muted, #9ca3af);line-height:1.5;letter-spacing:-.005em}._ConfirmActions_1tq4o_45{display:flex;align-items:center;justify-content:flex-end;gap:.625rem;margin-top:1.5rem}._BtnCancel_1tq4o_53{display:inline-flex;align-items:center;padding:.625rem 1.125rem;border-radius:.625rem;border:1px solid rgb(255 255 255 / 14%);background:transparent;color:var(--chures-fg-muted, #9ca3af);font-size:.8125rem;font-weight:500;font-family:inherit;cursor:pointer;transition:background .16s ease,color .16s ease}._BtnCancel_1tq4o_53:hover:not(:disabled){background:#ffffff14;color:var(--chures-fg, #ffffff)}._BtnConfirm_1tq4o_73{display:inline-flex;align-items:center;padding:.625rem 1.125rem;border-radius:.625rem;border:1px solid var(--chures-accent, #229ED9);background:var(--chures-accent, #229ED9);color:#fff;font-size:.8125rem;font-weight:600;font-family:inherit;cursor:pointer;transition:filter .16s ease,opacity .16s ease}._BtnConfirm_1tq4o_73:hover:not(:disabled){filter:brightness(1.06)}._BtnDanger_1tq4o_92{display:inline-flex;align-items:center;padding:.625rem 1.125rem;border-radius:.625rem;border:1px solid rgb(239 68 68 / 40%);background:transparent;color:var(--chures-error, #ef4444);font-size:.8125rem;font-weight:600;font-family:inherit;cursor:pointer;transition:background .16s ease,border-color .16s ease}._BtnDanger_1tq4o_92:hover:not(:disabled){background:#ef44441a;border-color:var(--chures-error, #ef4444)}._BtnConfirm_1tq4o_73:disabled,._BtnDanger_1tq4o_92:disabled,._BtnCancel_1tq4o_53:disabled{opacity:.4;cursor:not-allowed}._InfoWrapper_cqv58_4{width:100%;max-width:24rem;animation:_infoIn_cqv58_1 .28s cubic-bezier(.2,.7,.2,1) both}@keyframes _infoIn_cqv58_1{0%{opacity:0;transform:translateY(.75rem) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}._InfoContainer_cqv58_1{width:100%;background:var(--chures-surface, #000000);border:1px solid rgb(255 255 255 / 14%);border-radius:1.25rem;padding:1.75rem 1.75rem 1.5rem;box-shadow:0 32px 80px -20px #000c}._Glass_cqv58_24{background:var(--chures-dialog-glass-bg, rgb(255 255 255 / 6%));backdrop-filter:blur(var(--chures-dialog-glass-blur, 1.25rem));-webkit-backdrop-filter:blur(var(--chures-dialog-glass-blur, 1.25rem))}._InfoTitle_cqv58_30{font-size:1.25rem;font-weight:600;letter-spacing:-.02em;color:var(--chures-fg, #ffffff);margin-bottom:.75rem}._InfoMessage_cqv58_38{font-size:.875rem;color:var(--chures-fg-muted, #9ca3af);line-height:1.5;letter-spacing:-.005em}._InfoActions_cqv58_45{display:flex;align-items:center;justify-content:flex-end;margin-top:1.5rem}._BtnClose_cqv58_52{display:inline-flex;align-items:center;padding:.625rem 1.125rem;border-radius:.625rem;border:1px solid rgb(255 255 255 / 14%);background:transparent;color:var(--chures-fg-muted, #9ca3af);font-size:.8125rem;font-weight:500;font-family:inherit;cursor:pointer;transition:background .16s ease,color .16s ease}._BtnClose_cqv58_52:hover{background:#ffffff14;color:var(--chures-fg, #ffffff)}:where(._Backdrop_1w1e3_7){position:fixed;inset:0;background:var(--chures-overlay, rgb(0 0 0 / 58%));opacity:0;pointer-events:none;transition:opacity .26s ease}:where(._BackdropOpen_1w1e3_16){opacity:1;pointer-events:auto}:where(._Panel_1w1e3_21){position:fixed;display:flex;flex-direction:column;overflow:hidden;background:var(--chures-surface, #000000);box-shadow:0 0 3rem #00000059;transition:transform .28s cubic-bezier(.32,0,0,1)}:where(._Right_1w1e3_31){top:0;right:0;bottom:0;width:var(--chures-side-drawer-size, 22rem);max-width:100vw;transform:translate(100%)}:where(._Left_1w1e3_40){top:0;bottom:0;left:0;width:var(--chures-side-drawer-size, 22rem);max-width:100vw;transform:translate(-100%)}:where(._Top_1w1e3_49){top:0;left:0;right:0;height:var(--chures-side-drawer-size, 22rem);max-height:100vh;transform:translateY(-100%)}:where(._Bottom_1w1e3_58){left:0;right:0;bottom:0;height:var(--chures-side-drawer-size, 22rem);max-height:100vh;transform:translateY(100%)}:where(._PanelOpen_1w1e3_67){transform:translate(0)}@layer chures-defaults{:root{--chures-accent: #229ED9;--chures-accent-muted: rgb(34 158 217 / 50%);--chures-btn-from: #2AABEE;--chures-btn-to: #229ED9;--chures-button-bg: var(--chures-accent);--chures-error: #ef4444;--chures-warn: #f59e0b;--chures-bg: #000000;--chures-fg: #ffffff;--chures-fg-muted: #9ca3af;--chures-surface: #000000;--chures-font-sm: .875rem;--chures-font-xs: .75rem;--chures-input-bg: #111111;--chures-input-height: 3rem;--chures-input-radius: .75rem;--chures-skeleton-shine: #1e1e1e;--chures-toggle-width: 2.75rem;--chures-toggle-height: 1.5rem;--chures-toggle-thumb: 1.125rem;--chures-toggle-bg-off: rgb(255 255 255 / 13%);--chures-toggle-bg-on: var(--chures-accent);--chures-toggle-thumb-color: #ffffff;--chures-toggle-label-skeleton-w: 5rem;--chures-dropdown-bg: var(--chures-bg);--chures-dropdown-radius: .75rem;--chures-dropdown-row-radius: .375rem;--chures-dropdown-border: var(--chures-accent);--chures-dropdown-border-subtle: var(--chures-accent-muted);--chures-dropdown-hover: rgb(255 255 255 / 8%);--chures-dropdown-create-bg: rgb(34 158 217 / 12%);--chures-dropdown-create-bg-hover: rgb(34 158 217 / 20%);--chures-dropdown-trigger-border: rgb(255 255 255 / 22%);--chures-dropdown-trigger-border-hover: rgb(255 255 255 / 38%);--chures-dropdown-trigger-focus-ring: rgb(34 158 217 / 15%);--chures-dropdown-chip-border: rgb(34 158 217 / 30%);--chures-dropdown-panel-gap: .375rem;--chures-dropdown-icon-size: 1rem;--chures-dropdown-glass-bg: rgb(255 255 255 / 6%);--chures-dropdown-glass-blur: 1.25rem;--chures-dialog-glass-bg: rgb(255 255 255 / 6%);--chures-dialog-glass-blur: 1.25rem;--chures-overlay: rgb(0 0 0 / 58%);--chures-side-drawer-size: 22rem;--chures-flyout-bg: #0d0d0d;--chures-flyout-min-width: 10rem;--chures-flyout-border: rgb(255 255 255 / 11%);--chures-flyout-radius: .5rem;--chures-flyout-shadow: rgb(0 0 0 / 80%);--chures-flyout-fg: rgb(255 255 255 / 55%);--chures-flyout-fg-strong: rgb(255 255 255 / 92%);--chures-flyout-fg-muted: rgb(255 255 255 / 32%);--chures-flyout-hover: rgb(255 255 255 / 4%);--chures-flyout-skeleton: rgb(255 255 255 / 7%);--chures-flyout-font: .8125rem;--chures-flyout-font-sm: .6875rem;--chures-flyout-font-md: .75rem;--chures-flyout-font-mono: "JetBrains Mono", ui-monospace, sfmono-regular, menlo, monospace;--chures-segmented-bg: var(--chures-input-bg);--chures-segmented-radius: var(--chures-input-radius);--chures-segmented-pad: .25rem;--chures-segmented-highlight: var(--chures-accent);--chures-segmented-fg: var(--chures-fg-muted);--chures-segmented-fg-active: var(--chures-fg);--chures-segmented-gap: .25rem}}._FlyoutMenuContainer_1q0ma_5{display:contents}._Backdrop_1q0ma_9{position:fixed;inset:0}._Panel_1q0ma_14{position:fixed;display:flex;flex-direction:column;min-width:var(--chures-flyout-min-width);padding:.35rem;background:var(--chures-flyout-bg);border:1px solid var(--chures-flyout-border);border-radius:var(--chures-flyout-radius);box-shadow:0 1rem 2.5rem -.75rem var(--chures-flyout-shadow);overflow-y:auto}._Submenu_1q0ma_27{position:fixed;display:flex;flex-direction:column;min-width:var(--chures-flyout-min-width);background:var(--chures-flyout-bg);border:1px solid var(--chures-flyout-border);border-radius:var(--chures-flyout-radius);box-shadow:0 1rem 2.5rem -.75rem var(--chures-flyout-shadow);overflow-y:auto}._FlyoutPanelContainer_1q0ma_41{display:flex;flex-direction:column;gap:.15rem}._Back_1q0ma_9{display:flex;align-items:center;justify-content:flex-start;gap:.4rem;padding:.4rem .55rem;border:1px solid transparent;border-radius:var(--chures-flyout-radius);background:transparent;color:var(--chures-flyout-fg);font-size:var(--chures-flyout-font);text-align:left;cursor:pointer;transition:background .14s ease,color .14s ease}._Back_1q0ma_9:hover{background:var(--chures-flyout-hover);color:var(--chures-flyout-fg-strong)}._Chevron_1q0ma_68{flex-shrink:0;color:var(--chures-flyout-fg-muted)}._MenuListContainer_1q0ma_75{display:flex;flex-direction:column;gap:.15rem}._Heading_1q0ma_81{padding:.35rem .55rem .25rem;color:var(--chures-flyout-fg-muted);font-family:var(--chures-flyout-font-mono);font-size:var(--chures-flyout-font-sm);letter-spacing:.06rem;text-transform:uppercase}._Divider_1q0ma_90{height:1px;margin:.3rem .2rem;background:var(--chures-flyout-border)}._MenuRowContainer_1q0ma_98{display:flex}._MenuRowContainer_1q0ma_98._Dim_1q0ma_102{opacity:.5}._Row_1q0ma_106{display:flex;flex:1;min-width:0;align-items:center;justify-content:flex-start;gap:.5rem;padding:.4rem .55rem;overflow:hidden;border:1px solid transparent;border-radius:var(--chures-flyout-radius);background:transparent;color:var(--chures-flyout-fg);font-size:var(--chures-flyout-font);text-align:left;cursor:pointer;transition:background .14s ease,color .14s ease}._Row_1q0ma_106:hover:not(:disabled){background:var(--chures-flyout-hover);color:var(--chures-flyout-fg-strong)}._Row_1q0ma_106:disabled{color:var(--chures-flyout-fg-muted);cursor:default}._Icon_1q0ma_135{display:flex;flex-shrink:0}._Label_1q0ma_140{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}._Arrow_1q0ma_148{flex-shrink:0;color:var(--chures-flyout-fg-muted);font-size:var(--chures-flyout-font-md)}._MenuSkeletonContainer_1q0ma_156{display:flex;flex-direction:column;gap:.15rem;padding:.35rem .5rem}._MenuSkeletonRow_1q0ma_163{height:1.75rem;border-radius:var(--chures-flyout-radius);background:var(--chures-flyout-skeleton);animation:_churesFlyoutSkeletonPulse_1q0ma_1 1.5s ease-in-out infinite}._MenuSkeletonRow_1q0ma_163:nth-child(2){animation-delay:.15s}._MenuSkeletonRow_1q0ma_163:nth-child(3){animation-delay:.3s}@keyframes _churesFlyoutSkeletonPulse_1q0ma_1{0%,to{opacity:1}50%{opacity:.4}}._MenuSearchFieldContainer_1q0ma_191{overflow:hidden;padding-bottom:.35rem}')),document.head.appendChild(e)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
2
+ import { jsx as t, jsxs as m, Fragment as $ } from "react/jsx-runtime";
3
+ import { createContext as Ge, useContext as Ve, useRef as x, useState as k, useEffect as E, forwardRef as hn, useId as _n, useCallback as A, useLayoutEffect as he, Fragment as ke, useMemo as Ke } from "react";
4
+ import { AnimatePresence as we, motion as se, useReducedMotion as fn } from "framer-motion";
5
+ import { create as pn } from "zustand";
6
+ import { createPortal as Be } from "react-dom";
7
+ function mn(e) {
8
8
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
9
9
  }
10
10
  var Ie = { exports: {} };
11
- var Ae;
12
- function fn() {
13
- return Ae || (Ae = 1, (function(e) {
11
+ var Me;
12
+ function gn() {
13
+ return Me || (Me = 1, (function(e) {
14
14
  (function() {
15
15
  var n = {}.hasOwnProperty;
16
16
  function r() {
17
- for (var a = "", i = 0; i < arguments.length; i++) {
17
+ for (var s = "", i = 0; i < arguments.length; i++) {
18
18
  var c = arguments[i];
19
- c && (a = s(a, t(c)));
19
+ c && (s = a(s, o(c)));
20
20
  }
21
- return a;
21
+ return s;
22
22
  }
23
- function t(a) {
24
- if (typeof a == "string" || typeof a == "number")
25
- return a;
26
- if (typeof a != "object")
23
+ function o(s) {
24
+ if (typeof s == "string" || typeof s == "number")
25
+ return s;
26
+ if (typeof s != "object")
27
27
  return "";
28
- if (Array.isArray(a))
29
- return r.apply(null, a);
30
- if (a.toString !== Object.prototype.toString && !a.toString.toString().includes("[native code]"))
31
- return a.toString();
28
+ if (Array.isArray(s))
29
+ return r.apply(null, s);
30
+ if (s.toString !== Object.prototype.toString && !s.toString.toString().includes("[native code]"))
31
+ return s.toString();
32
32
  var i = "";
33
- for (var c in a)
34
- n.call(a, c) && a[c] && (i = s(i, c));
33
+ for (var c in s)
34
+ n.call(s, c) && s[c] && (i = a(i, c));
35
35
  return i;
36
36
  }
37
- function s(a, i) {
38
- return i ? a ? a + " " + i : a + i : a;
37
+ function a(s, i) {
38
+ return i ? s ? s + " " + i : s + i : s;
39
39
  }
40
40
  e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
41
41
  })();
42
42
  })(Ie)), Ie.exports;
43
43
  }
44
- var pn = fn();
45
- const C = /* @__PURE__ */ _n(pn), mn = "_LoaderContainer_wa8op_24", gn = "_sm_wa8op_31", Cn = "_md_wa8op_32", vn = "_lg_wa8op_33", wn = "_Arc1_wa8op_37", bn = "_Arc2_wa8op_38", yn = "_Arc3_wa8op_39", Nn = "_spin_wa8op_1", In = "_Ring1_wa8op_71", kn = "_Ring2_wa8op_72", xn = "_Ring3_wa8op_73", Sn = "_ripple_wa8op_1", Rn = "_Dot1_wa8op_86", Ln = "_Dot2_wa8op_87", Tn = "_Dot3_wa8op_88", Dn = "_dotPulse_wa8op_1", Bn = "_Wave1_wa8op_105", En = "_Wave2_wa8op_106", An = "_Wave3_wa8op_107", Mn = "_Wave4_wa8op_108", Pn = "_Wave5_wa8op_109", On = "_waveBounce_wa8op_1", me = {
46
- LoaderContainer: mn,
47
- sm: gn,
48
- md: Cn,
49
- lg: vn,
50
- Arc1: wn,
51
- Arc2: bn,
52
- Arc3: yn,
53
- spin: Nn,
54
- Ring1: In,
55
- Ring2: kn,
56
- Ring3: xn,
57
- ripple: Sn,
58
- Dot1: Rn,
59
- Dot2: Ln,
60
- Dot3: Tn,
61
- dotPulse: Dn,
62
- Wave1: Bn,
63
- Wave2: En,
64
- Wave3: An,
65
- Wave4: Mn,
66
- Wave5: Pn,
67
- waveBounce: On
68
- }, Ve = $e({});
69
- function B(e, n) {
70
- const r = Ge(Ve);
44
+ var Cn = gn();
45
+ const C = /* @__PURE__ */ mn(Cn), vn = "_LoaderContainer_wa8op_24", wn = "_sm_wa8op_31", bn = "_md_wa8op_32", yn = "_lg_wa8op_33", Nn = "_Arc1_wa8op_37", kn = "_Arc2_wa8op_38", In = "_Arc3_wa8op_39", xn = "_spin_wa8op_1", Sn = "_Ring1_wa8op_71", Rn = "_Ring2_wa8op_72", Tn = "_Ring3_wa8op_73", Ln = "_ripple_wa8op_1", Dn = "_Dot1_wa8op_86", Bn = "_Dot2_wa8op_87", An = "_Dot3_wa8op_88", En = "_dotPulse_wa8op_1", Pn = "_Wave1_wa8op_105", Mn = "_Wave2_wa8op_106", On = "_Wave3_wa8op_107", Wn = "_Wave4_wa8op_108", Fn = "_Wave5_wa8op_109", Hn = "_waveBounce_wa8op_1", ge = {
46
+ LoaderContainer: vn,
47
+ sm: wn,
48
+ md: bn,
49
+ lg: yn,
50
+ Arc1: Nn,
51
+ Arc2: kn,
52
+ Arc3: In,
53
+ spin: xn,
54
+ Ring1: Sn,
55
+ Ring2: Rn,
56
+ Ring3: Tn,
57
+ ripple: Ln,
58
+ Dot1: Dn,
59
+ Dot2: Bn,
60
+ Dot3: An,
61
+ dotPulse: En,
62
+ Wave1: Pn,
63
+ Wave2: Mn,
64
+ Wave3: On,
65
+ Wave4: Wn,
66
+ Wave5: Fn,
67
+ waveBounce: Hn
68
+ }, ze = Ge({});
69
+ function L(e, n) {
70
+ const r = Ve(ze);
71
71
  return n ?? r[e];
72
72
  }
73
- function Wn(e, n) {
73
+ function qn(e, n) {
74
74
  switch (e) {
75
75
  case "ripple":
76
76
  return /* @__PURE__ */ m($, { children: [
77
- /* @__PURE__ */ o("div", { className: n.Ring1 }),
78
- /* @__PURE__ */ o("div", { className: n.Ring2 }),
79
- /* @__PURE__ */ o("div", { className: n.Ring3 })
77
+ /* @__PURE__ */ t("div", { className: n.Ring1 }),
78
+ /* @__PURE__ */ t("div", { className: n.Ring2 }),
79
+ /* @__PURE__ */ t("div", { className: n.Ring3 })
80
80
  ] });
81
81
  case "dots":
82
82
  return /* @__PURE__ */ m($, { children: [
83
- /* @__PURE__ */ o("div", { className: n.Dot1 }),
84
- /* @__PURE__ */ o("div", { className: n.Dot2 }),
85
- /* @__PURE__ */ o("div", { className: n.Dot3 })
83
+ /* @__PURE__ */ t("div", { className: n.Dot1 }),
84
+ /* @__PURE__ */ t("div", { className: n.Dot2 }),
85
+ /* @__PURE__ */ t("div", { className: n.Dot3 })
86
86
  ] });
87
87
  case "wave":
88
88
  return /* @__PURE__ */ m($, { children: [
89
- /* @__PURE__ */ o("div", { className: n.Wave1 }),
90
- /* @__PURE__ */ o("div", { className: n.Wave2 }),
91
- /* @__PURE__ */ o("div", { className: n.Wave3 }),
92
- /* @__PURE__ */ o("div", { className: n.Wave4 }),
93
- /* @__PURE__ */ o("div", { className: n.Wave5 })
89
+ /* @__PURE__ */ t("div", { className: n.Wave1 }),
90
+ /* @__PURE__ */ t("div", { className: n.Wave2 }),
91
+ /* @__PURE__ */ t("div", { className: n.Wave3 }),
92
+ /* @__PURE__ */ t("div", { className: n.Wave4 }),
93
+ /* @__PURE__ */ t("div", { className: n.Wave5 })
94
94
  ] });
95
95
  default:
96
96
  return /* @__PURE__ */ m($, { children: [
97
- /* @__PURE__ */ o("div", { className: n.Arc1 }),
98
- /* @__PURE__ */ o("div", { className: n.Arc2 }),
99
- /* @__PURE__ */ o("div", { className: n.Arc3 })
97
+ /* @__PURE__ */ t("div", { className: n.Arc1 }),
98
+ /* @__PURE__ */ t("div", { className: n.Arc2 }),
99
+ /* @__PURE__ */ t("div", { className: n.Arc3 })
100
100
  ] });
101
101
  }
102
102
  }
103
- function Fn({ variant: e = "arcs", size: n = "md", color: r, className: t }) {
104
- const s = B("Loader", t);
105
- return /* @__PURE__ */ o(
103
+ function Un({ variant: e = "arcs", size: n = "md", color: r, className: o }) {
104
+ const a = L("Loader", o);
105
+ return /* @__PURE__ */ t(
106
106
  "div",
107
107
  {
108
- className: C(me.LoaderContainer, me[n], me[e], s),
108
+ className: C(ge.LoaderContainer, ge[n], ge[e], a),
109
109
  role: "status",
110
110
  "aria-label": "Loading",
111
111
  style: r ? { "--chures-accent": r } : void 0,
112
- children: Wn(e, me)
112
+ children: qn(e, ge)
113
113
  }
114
114
  );
115
115
  }
116
- const Hn = "_LoadingWrapperContainer_1q0w7_1", qn = "_SkeletonWrapper_1q0w7_9", Me = {
117
- LoadingWrapperContainer: Hn,
118
- SkeletonWrapper: qn
116
+ const $n = "_LoadingWrapperContainer_1q0w7_1", jn = "_SkeletonWrapper_1q0w7_9", Oe = {
117
+ LoadingWrapperContainer: $n,
118
+ SkeletonWrapper: jn
119
119
  };
120
- function bs({ isLoading: e, children: n, skeleton: r, loaderProps: t, className: s }) {
121
- const a = B("LoadingWrapper", s);
122
- return e ? r ? /* @__PURE__ */ o("div", { className: C(Me.SkeletonWrapper, a), children: r }) : /* @__PURE__ */ o("div", { className: C(Me.LoadingWrapperContainer, a), children: /* @__PURE__ */ o(Fn, { ...t }) }) : /* @__PURE__ */ o($, { children: n });
123
- }
124
- const Un = "https://oauth.telegram.org/js/telegram-login.js?3";
125
- function $n(e) {
126
- const { botId: n, redirectUri: r, requestAccess: t = "write" } = e, s = x(e.onSuccess);
127
- s.current = e.onSuccess;
128
- const a = x(!1), [i, c] = I(!1), [d, u] = I(!1);
129
- A(function() {
120
+ function Aa({ isLoading: e, children: n, skeleton: r, loaderProps: o, className: a }) {
121
+ const s = L("LoadingWrapper", a);
122
+ return e ? r ? /* @__PURE__ */ t("div", { className: C(Oe.SkeletonWrapper, s), children: r }) : /* @__PURE__ */ t("div", { className: C(Oe.LoadingWrapperContainer, s), children: /* @__PURE__ */ t(Un, { ...o }) }) : /* @__PURE__ */ t($, { children: n });
123
+ }
124
+ const Gn = "https://oauth.telegram.org/js/telegram-login.js?3";
125
+ function Vn(e) {
126
+ const { botId: n, redirectUri: r, requestAccess: o = "write" } = e, a = x(e.onSuccess);
127
+ a.current = e.onSuccess;
128
+ const s = x(!1), [i, c] = k(!1), [d, u] = k(!1);
129
+ E(function() {
130
130
  if (!n) return;
131
131
  const h = r ?? window.location.origin;
132
132
  u(!0), c(!1);
133
133
  const g = document.createElement("script");
134
- return g.src = Un, g.async = !0, g.onload = function() {
134
+ return g.src = Gn, g.async = !0, g.onload = function() {
135
135
  const b = window.Telegram;
136
136
  b && (b.Login.init(
137
137
  { client_id: n, redirect_uri: h },
138
138
  function(w) {
139
- a.current || (a.current = !0, s.current(w));
139
+ s.current || (s.current = !0, a.current(w));
140
140
  }
141
141
  ), c(!0)), u(!1);
142
142
  }, g.onerror = function() {
@@ -148,27 +148,27 @@ function $n(e) {
148
148
  function l() {
149
149
  const h = window.Telegram;
150
150
  if (!i || !h) return;
151
- a.current = !1;
151
+ s.current = !1;
152
152
  const g = r ?? window.location.origin;
153
153
  h.Login.auth(
154
- { client_id: n, redirect_uri: g, request_access: t },
154
+ { client_id: n, redirect_uri: g, request_access: o },
155
155
  function(b) {
156
- a.current || (a.current = !0, s.current(b));
156
+ s.current || (s.current = !0, a.current(b));
157
157
  }
158
158
  );
159
159
  }
160
160
  return { login: l, isReady: i, isLoading: d };
161
161
  }
162
- const Gn = "_TelegramSignInButtonContainer_10wun_1", jn = "_FullSize_10wun_46", Vn = "_Icon_10wun_50", xe = {
163
- TelegramSignInButtonContainer: Gn,
164
- FullSize: jn,
165
- Icon: Vn
166
- }, Kn = {
162
+ const Kn = "_TelegramSignInButtonContainer_10wun_1", zn = "_FullSize_10wun_46", Xn = "_Icon_10wun_50", Se = {
163
+ TelegramSignInButtonContainer: Kn,
164
+ FullSize: zn,
165
+ Icon: Xn
166
+ }, Qn = {
167
167
  en: "Continue with Telegram",
168
168
  ru: "Войти через Telegram"
169
169
  };
170
- function zn() {
171
- return /* @__PURE__ */ o(
170
+ function Yn() {
171
+ return /* @__PURE__ */ t(
172
172
  "svg",
173
173
  {
174
174
  viewBox: "0 0 24 24",
@@ -176,82 +176,82 @@ function zn() {
176
176
  height: "20",
177
177
  fill: "currentColor",
178
178
  "aria-hidden": "true",
179
- className: xe.Icon,
180
- children: /* @__PURE__ */ o("path", { d: "M22 3.5L2.5 11l5 1.7L18 6 9.7 14l-.4 5.5 3.4-3.2 5.5 4c.9.5 1.5.2 1.7-.8L22 4.3c.2-.7-.2-1.1-.9-.8z" })
179
+ className: Se.Icon,
180
+ children: /* @__PURE__ */ t("path", { d: "M22 3.5L2.5 11l5 1.7L18 6 9.7 14l-.4 5.5 3.4-3.2 5.5 4c.9.5 1.5.2 1.7-.8L22 4.3c.2-.7-.2-1.1-.9-.8z" })
181
181
  }
182
182
  );
183
183
  }
184
- function Xn({
184
+ function Jn({
185
185
  onClick: e,
186
186
  disabled: n,
187
187
  lang: r = "en",
188
- title: t,
189
- label: s,
190
- fullSize: a,
188
+ title: o,
189
+ label: a,
190
+ fullSize: s,
191
191
  className: i
192
192
  }) {
193
- A(function() {
193
+ E(function() {
194
194
  const l = "comfortaa-font";
195
195
  if (document.getElementById(l)) return;
196
196
  const h = document.createElement("link");
197
197
  h.id = l, h.rel = "stylesheet", h.href = "https://fonts.googleapis.com/css2?family=Comfortaa:wght@600&display=swap", document.head.appendChild(h);
198
198
  }, []);
199
- const c = s ?? t ?? Kn[r], d = B("TelegramSignInButton", i), u = C(xe.TelegramSignInButtonContainer, { [xe.FullSize]: a }, d);
199
+ const c = a ?? o ?? Qn[r], d = L("TelegramSignInButton", i), u = C(Se.TelegramSignInButtonContainer, { [Se.FullSize]: s }, d);
200
200
  return /* @__PURE__ */ m("button", { type: "button", className: u, onClick: e, disabled: n, children: [
201
- /* @__PURE__ */ o(zn, {}),
201
+ /* @__PURE__ */ t(Yn, {}),
202
202
  c
203
203
  ] });
204
204
  }
205
- function ys({
205
+ function Ea({
206
206
  botId: e,
207
207
  onSuccess: n,
208
208
  lang: r,
209
- title: t,
210
- redirectUri: s,
211
- requestAccess: a,
209
+ title: o,
210
+ redirectUri: a,
211
+ requestAccess: s,
212
212
  children: i,
213
213
  className: c
214
214
  }) {
215
- const { login: d, isReady: u } = $n({ botId: e, onSuccess: n, redirectUri: s, requestAccess: a });
216
- return i ? /* @__PURE__ */ o($, { children: i({ login: d, isReady: u }) }) : /* @__PURE__ */ o(
217
- Xn,
215
+ const { login: d, isReady: u } = Vn({ botId: e, onSuccess: n, redirectUri: a, requestAccess: s });
216
+ return i ? /* @__PURE__ */ t($, { children: i({ login: d, isReady: u }) }) : /* @__PURE__ */ t(
217
+ Jn,
218
218
  {
219
219
  onClick: d,
220
220
  disabled: !u,
221
221
  lang: r,
222
- title: t,
222
+ title: o,
223
223
  className: c
224
224
  }
225
225
  );
226
226
  }
227
- let Qn = 0;
228
- const Ke = hn((e, n) => ({
227
+ let Zn = 0;
228
+ const Xe = pn((e, n) => ({
229
229
  toasts: [],
230
230
  bake: (r) => {
231
- const t = Qn++;
232
- e((s) => ({ toasts: [...s.toasts, { ...r, id: t }] })), setTimeout(() => {
233
- n().dismiss(t);
231
+ const o = Zn++;
232
+ e((a) => ({ toasts: [...a.toasts, { ...r, id: o }] })), setTimeout(() => {
233
+ n().dismiss(o);
234
234
  }, 5e3);
235
235
  },
236
236
  dismiss: (r) => {
237
- e((t) => ({
238
- toasts: t.toasts.filter((s) => s.id !== r)
237
+ e((o) => ({
238
+ toasts: o.toasts.filter((a) => a.id !== r)
239
239
  }));
240
240
  }
241
- })), Yn = "_ToastContainer_1tme2_1", Jn = "_Toast_1tme2_1", Zn = "_error_1tme2_33", et = "_warn_1tme2_41", nt = "_info_1tme2_49", tt = "_Description_1tme2_53", ot = "_DismissButton_1tme2_59", rt = "_slideIn_1tme2_79", st = "_slideOut_1tme2_83", K = {
242
- ToastContainer: Yn,
243
- Toast: Jn,
244
- error: Zn,
245
- warn: et,
246
- info: nt,
247
- Description: tt,
248
- DismissButton: ot,
249
- slideIn: rt,
250
- slideOut: st
241
+ })), et = "_ToastContainer_1tme2_1", nt = "_Toast_1tme2_1", tt = "_error_1tme2_33", ot = "_warn_1tme2_41", rt = "_info_1tme2_49", at = "_Description_1tme2_53", st = "_DismissButton_1tme2_59", it = "_slideIn_1tme2_79", ct = "_slideOut_1tme2_83", z = {
242
+ ToastContainer: et,
243
+ Toast: nt,
244
+ error: tt,
245
+ warn: ot,
246
+ info: rt,
247
+ Description: at,
248
+ DismissButton: st,
249
+ slideIn: it,
250
+ slideOut: ct
251
251
  };
252
- function Ns({ className: e } = {}) {
253
- const { toasts: n } = Ke(), r = B("Toaster", e);
254
- return /* @__PURE__ */ o("div", { className: C(K.ToastContainer, r), children: /* @__PURE__ */ o(ve, { children: n.map((t) => /* @__PURE__ */ o(
252
+ function Pa({ className: e } = {}) {
253
+ const { toasts: n } = Xe(), r = L("Toaster", e);
254
+ return /* @__PURE__ */ t("div", { className: C(z.ToastContainer, r), children: /* @__PURE__ */ t(we, { children: n.map((o) => /* @__PURE__ */ t(
255
255
  se.div,
256
256
  {
257
257
  layout: !0,
@@ -259,173 +259,332 @@ function Ns({ className: e } = {}) {
259
259
  animate: { opacity: 1, x: 0, y: 0 },
260
260
  exit: { opacity: 0, y: -50 },
261
261
  transition: { type: "spring", stiffness: 300, damping: 20 },
262
- children: /* @__PURE__ */ o(at, { ...t })
262
+ children: /* @__PURE__ */ t(lt, { ...o })
263
263
  },
264
- t.id
264
+ o.id
265
265
  )) }) });
266
266
  }
267
- function at({ id: e, title: n, description: r, level: t, isDismissable: s }) {
268
- const [a, i] = I(!1), c = Ke();
269
- return A(() => () => {
267
+ function lt({ id: e, title: n, description: r, level: o, isDismissable: a }) {
268
+ const [s, i] = k(!1), c = Xe();
269
+ return E(() => () => {
270
270
  i(!0);
271
271
  }, []), /* @__PURE__ */ m(
272
272
  "div",
273
273
  {
274
- className: C(K.Toast, {
275
- [K.error]: t === "Error",
276
- [K.warn]: t === "Warn",
277
- [K.info]: t == null || t === "Info",
278
- [K.slideIn]: !a,
279
- [K.slideOut]: a
274
+ className: C(z.Toast, {
275
+ [z.error]: o === "Error",
276
+ [z.warn]: o === "Warn",
277
+ [z.info]: o == null || o === "Info",
278
+ [z.slideIn]: !s,
279
+ [z.slideOut]: s
280
280
  }),
281
281
  children: [
282
- /* @__PURE__ */ o("div", { children: n }),
283
- /* @__PURE__ */ o("div", { className: K.Description, children: r }),
284
- s && e !== void 0 && /* @__PURE__ */ o("div", { className: K.DismissButton, onClick: () => c.dismiss(e), children: "×" })
282
+ /* @__PURE__ */ t("div", { children: n }),
283
+ /* @__PURE__ */ t("div", { className: z.Description, children: r }),
284
+ a && e !== void 0 && /* @__PURE__ */ t("div", { className: z.DismissButton, onClick: () => c.dismiss(e), children: "×" })
285
285
  ]
286
286
  }
287
287
  );
288
288
  }
289
- const it = "_InputContainer_s5ba7_15", ct = "_InputField_s5ba7_21", lt = "_hasStartIcon_s5ba7_35", ut = "_hasEndIcon_s5ba7_39", dt = "_StartIcon_s5ba7_43", ht = "_EndIcon_s5ba7_54", _t = "_Label_s5ba7_70", ft = "_hasError_s5ba7_74", pt = "_disabled_s5ba7_79", mt = "_lifted_s5ba7_98", gt = "_ErrorText_s5ba7_109", Ct = "_Skeleton_s5ba7_117", F = {
290
- InputContainer: it,
291
- InputField: ct,
292
- hasStartIcon: lt,
293
- hasEndIcon: ut,
294
- StartIcon: dt,
295
- EndIcon: ht,
296
- Label: _t,
297
- hasError: ft,
298
- disabled: pt,
299
- lifted: mt,
300
- ErrorText: gt,
301
- Skeleton: Ct
302
- }, vt = un(function({ value: n, setValue: r, label: t, isLoader: s, type: a = "text", disabled: i, error: c, className: d, inputClassName: u, startIcon: l, endIcon: h, ...g }, b) {
303
- const [w, S] = I(!1), O = w || n.length > 0, R = B("Input", d), { onFocus: _, onBlur: v, ...L } = g;
304
- return s ? /* @__PURE__ */ o("div", { className: C(F.Skeleton, R), "aria-hidden": "true" }) : /* @__PURE__ */ m("div", { className: C(F.InputContainer, { [F.hasError]: !!c, [F.disabled]: i }, R), children: [
305
- l && /* @__PURE__ */ o("span", { className: F.StartIcon, children: l }),
306
- /* @__PURE__ */ o(
307
- "input",
308
- {
309
- ref: b,
310
- className: C(F.InputField, { [F.hasStartIcon]: !!l, [F.hasEndIcon]: !!h }, u),
311
- type: a,
312
- value: n,
313
- onChange: (y) => r(y.target.value),
314
- onFocus: (y) => {
315
- S(!0), _?.(y);
316
- },
317
- onBlur: (y) => {
318
- S(!1), v?.(y);
319
- },
320
- disabled: i,
321
- ...L
322
- }
323
- ),
324
- t && /* @__PURE__ */ o("label", { className: C(F.Label, { [F.lifted]: O }), children: t }),
325
- h && /* @__PURE__ */ o("span", { className: F.EndIcon, children: h }),
326
- c && /* @__PURE__ */ o("span", { className: F.ErrorText, children: c })
289
+ const ut = "_InputContainer_15tk2_15", dt = "_InputBox_15tk2_22", ht = "_InputField_15tk2_28", _t = "_hasStartIcon_15tk2_42", ft = "_hasEndIcon_15tk2_46", pt = "_StartIcon_15tk2_50", mt = "_EndIcon_15tk2_61", gt = "_Label_15tk2_77", Ct = "_hasError_15tk2_81", vt = "_disabled_15tk2_86", wt = "_lifted_15tk2_105", bt = "_ErrorText_15tk2_121", yt = "_Skeleton_15tk2_137", O = {
290
+ InputContainer: ut,
291
+ InputBox: dt,
292
+ InputField: ht,
293
+ hasStartIcon: _t,
294
+ hasEndIcon: ft,
295
+ StartIcon: pt,
296
+ EndIcon: mt,
297
+ Label: gt,
298
+ hasError: Ct,
299
+ disabled: vt,
300
+ lifted: wt,
301
+ ErrorText: bt,
302
+ Skeleton: yt
303
+ }, Nt = hn(function({ value: n, setValue: r, label: o, isLoader: a, type: s = "text", disabled: i, error: c, className: d, inputClassName: u, startIcon: l, endIcon: h, ...g }, b) {
304
+ const [w, S] = k(!1), W = w || n.length > 0, R = L("Input", d), { onFocus: _, onBlur: v, ...T } = g;
305
+ return a ? /* @__PURE__ */ t("div", { className: C(O.Skeleton, R), "aria-hidden": "true" }) : /* @__PURE__ */ m("div", { className: C(O.InputContainer, { [O.hasError]: !!c, [O.disabled]: i }, R), children: [
306
+ /* @__PURE__ */ m("div", { className: O.InputBox, children: [
307
+ l && /* @__PURE__ */ t("span", { className: O.StartIcon, children: l }),
308
+ /* @__PURE__ */ t(
309
+ "input",
310
+ {
311
+ ref: b,
312
+ className: C(O.InputField, { [O.hasStartIcon]: !!l, [O.hasEndIcon]: !!h }, u),
313
+ type: s,
314
+ value: n,
315
+ onChange: (y) => r(y.target.value),
316
+ onFocus: (y) => {
317
+ S(!0), _?.(y);
318
+ },
319
+ onBlur: (y) => {
320
+ S(!1), v?.(y);
321
+ },
322
+ disabled: i,
323
+ ...T
324
+ }
325
+ ),
326
+ o && /* @__PURE__ */ t("label", { className: C(O.Label, { [O.lifted]: W }), children: o }),
327
+ h && /* @__PURE__ */ t("span", { className: O.EndIcon, children: h })
328
+ ] }),
329
+ c && /* @__PURE__ */ t("span", { className: O.ErrorText, children: c })
327
330
  ] });
328
- }), wt = "_ToggleContainer_1jetc_6", bt = "_disabled_1jetc_13", yt = "_Track_1jetc_18", Nt = "_on_1jetc_31", It = "_Thumb_1jetc_39", kt = "_Label_1jetc_57", xt = "_LabelSkeleton_1jetc_63", St = "_Skeleton_1jetc_78", U = {
329
- ToggleContainer: wt,
330
- disabled: bt,
331
- Track: yt,
332
- on: Nt,
333
- Thumb: It,
334
- Label: kt,
335
- LabelSkeleton: xt,
336
- Skeleton: St
331
+ }), kt = "_ToggleContainer_1jetc_6", It = "_disabled_1jetc_13", xt = "_Track_1jetc_18", St = "_on_1jetc_31", Rt = "_Thumb_1jetc_39", Tt = "_Label_1jetc_57", Lt = "_LabelSkeleton_1jetc_63", Dt = "_Skeleton_1jetc_78", U = {
332
+ ToggleContainer: kt,
333
+ disabled: It,
334
+ Track: xt,
335
+ on: St,
336
+ Thumb: Rt,
337
+ Label: Tt,
338
+ LabelSkeleton: Lt,
339
+ Skeleton: Dt
337
340
  };
338
- function Is({ checked: e, onChange: n, label: r, labelPosition: t = "right", disabled: s, isLoader: a, isLoadingLabel: i, className: c }) {
339
- const d = !!r || i, u = B("Toggle", c), l = i ? /* @__PURE__ */ o("span", { className: U.LabelSkeleton, "aria-hidden": "true" }) : r ? /* @__PURE__ */ o("span", { className: U.Label, children: r }) : null;
340
- return a ? d ? /* @__PURE__ */ m("div", { className: C(U.ToggleContainer, u), children: [
341
- t === "left" && l,
342
- /* @__PURE__ */ o("div", { className: U.Skeleton, "aria-hidden": "true" }),
343
- t === "right" && l
344
- ] }) : /* @__PURE__ */ o("div", { className: C(U.Skeleton, u), "aria-hidden": "true" }) : /* @__PURE__ */ m("label", { className: C(U.ToggleContainer, { [U.disabled]: s }, u), children: [
345
- t === "left" && l,
346
- /* @__PURE__ */ o(
341
+ function Ma({ checked: e, onChange: n, label: r, labelPosition: o = "right", disabled: a, isLoader: s, isLoadingLabel: i, className: c }) {
342
+ const d = !!r || i, u = L("Toggle", c), l = i ? /* @__PURE__ */ t("span", { className: U.LabelSkeleton, "aria-hidden": "true" }) : r ? /* @__PURE__ */ t("span", { className: U.Label, children: r }) : null;
343
+ return s ? d ? /* @__PURE__ */ m("div", { className: C(U.ToggleContainer, u), children: [
344
+ o === "left" && l,
345
+ /* @__PURE__ */ t("div", { className: U.Skeleton, "aria-hidden": "true" }),
346
+ o === "right" && l
347
+ ] }) : /* @__PURE__ */ t("div", { className: C(U.Skeleton, u), "aria-hidden": "true" }) : /* @__PURE__ */ m("label", { className: C(U.ToggleContainer, { [U.disabled]: a }, u), children: [
348
+ o === "left" && l,
349
+ /* @__PURE__ */ t(
347
350
  "button",
348
351
  {
349
352
  role: "switch",
350
353
  "aria-checked": e,
351
354
  className: C(U.Track, { [U.on]: e }),
352
- onClick: () => !s && n(!e),
353
- disabled: s,
355
+ onClick: () => !a && n(!e),
356
+ disabled: a,
354
357
  type: "button",
355
- children: /* @__PURE__ */ o("span", { className: U.Thumb })
358
+ children: /* @__PURE__ */ t("span", { className: U.Thumb })
359
+ }
360
+ ),
361
+ o === "right" && l
362
+ ] });
363
+ }
364
+ const Bt = "_AccordionContainer_atyoj_1", At = "_Header_atyoj_5", Et = "_Heading_atyoj_27", Pt = "_Chevron_atyoj_34", Mt = "_Title_atyoj_41", Ot = "_Meta_atyoj_47", Wt = "_Panel_atyoj_53", Ft = "_PanelContent_atyoj_62", Ht = "_isOpen_atyoj_67", G = {
365
+ AccordionContainer: Bt,
366
+ Header: At,
367
+ Heading: Et,
368
+ Chevron: Pt,
369
+ Title: Mt,
370
+ Meta: Ot,
371
+ Panel: Wt,
372
+ PanelContent: Ft,
373
+ isOpen: Ht
374
+ }, qt = "_Btn_1wp07_10", Ut = "_Unstyled_1wp07_35", $t = "_Primary_1wp07_52", jt = "_Secondary_1wp07_67", Gt = "_Ghost_1wp07_79", Vt = "_IconDanger_1wp07_91", Kt = "_Danger_1wp07_112", te = {
375
+ Btn: qt,
376
+ Unstyled: Ut,
377
+ Primary: $t,
378
+ Secondary: jt,
379
+ Ghost: Gt,
380
+ IconDanger: Vt,
381
+ Danger: Kt
382
+ }, zt = {
383
+ primary: te.Primary,
384
+ secondary: te.Secondary,
385
+ danger: te.Danger,
386
+ ghost: te.Ghost,
387
+ iconDanger: te.IconDanger,
388
+ unstyled: te.Unstyled
389
+ };
390
+ function Ae({ variant: e = "default", className: n, children: r, ...o }) {
391
+ const a = L("Button", n);
392
+ return /* @__PURE__ */ t(
393
+ "button",
394
+ {
395
+ type: "button",
396
+ ...o,
397
+ className: C(!(e === "unstyled") && te.Btn, zt[e], a),
398
+ children: r
399
+ }
400
+ );
401
+ }
402
+ function Qe({ size: e = 14, strokeWidth: n = 2, className: r }) {
403
+ return /* @__PURE__ */ t(
404
+ "svg",
405
+ {
406
+ viewBox: "0 0 24 24",
407
+ width: e,
408
+ height: e,
409
+ fill: "none",
410
+ stroke: "currentColor",
411
+ strokeWidth: n,
412
+ strokeLinecap: "round",
413
+ strokeLinejoin: "round",
414
+ className: r,
415
+ children: /* @__PURE__ */ t("polyline", { points: "6 9 12 15 18 9" })
416
+ }
417
+ );
418
+ }
419
+ function Xt({ size: e = 18, strokeWidth: n = 2.5, shrink: r = !0 }) {
420
+ return /* @__PURE__ */ t(
421
+ "svg",
422
+ {
423
+ viewBox: "0 0 24 24",
424
+ width: e,
425
+ height: e,
426
+ fill: "none",
427
+ stroke: "currentColor",
428
+ strokeWidth: n,
429
+ strokeLinecap: "round",
430
+ strokeLinejoin: "round",
431
+ style: r ? { flexShrink: 0 } : void 0,
432
+ children: /* @__PURE__ */ t("polyline", { points: "20 6 9 17 4 12" })
433
+ }
434
+ );
435
+ }
436
+ function Oa() {
437
+ return /* @__PURE__ */ m(
438
+ "svg",
439
+ {
440
+ viewBox: "0 0 24 24",
441
+ width: "14",
442
+ height: "14",
443
+ fill: "none",
444
+ stroke: "currentColor",
445
+ strokeWidth: "1.6",
446
+ strokeLinecap: "round",
447
+ strokeLinejoin: "round",
448
+ children: [
449
+ /* @__PURE__ */ t("path", { d: "M12 20h9" }),
450
+ /* @__PURE__ */ t("path", { d: "M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4z" })
451
+ ]
452
+ }
453
+ );
454
+ }
455
+ function Wa() {
456
+ return /* @__PURE__ */ m(
457
+ "svg",
458
+ {
459
+ viewBox: "0 0 24 24",
460
+ width: "14",
461
+ height: "14",
462
+ fill: "none",
463
+ stroke: "white",
464
+ strokeWidth: "2",
465
+ strokeLinecap: "round",
466
+ strokeLinejoin: "round",
467
+ children: [
468
+ /* @__PURE__ */ t("path", { d: "M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2" }),
469
+ /* @__PURE__ */ t("circle", { cx: "12", cy: "7", r: "4" })
470
+ ]
471
+ }
472
+ );
473
+ }
474
+ function Qt({ size: e = 14, strokeWidth: n = 2, className: r }) {
475
+ return /* @__PURE__ */ m(
476
+ "svg",
477
+ {
478
+ viewBox: "0 0 24 24",
479
+ width: e,
480
+ height: e,
481
+ fill: "none",
482
+ stroke: "currentColor",
483
+ strokeWidth: n,
484
+ strokeLinecap: "round",
485
+ strokeLinejoin: "round",
486
+ className: r,
487
+ children: [
488
+ /* @__PURE__ */ t("circle", { cx: "11", cy: "11", r: "7" }),
489
+ /* @__PURE__ */ t("line", { x1: "21", y1: "21", x2: "16.65", y2: "16.65" })
490
+ ]
491
+ }
492
+ );
493
+ }
494
+ function Fa({ title: e, meta: n, isOpen: r, onToggle: o, children: a, className: s }) {
495
+ const i = L("Accordion", s), c = _n();
496
+ function d() {
497
+ o(!r);
498
+ }
499
+ return /* @__PURE__ */ m("div", { className: C(G.AccordionContainer, { [G.isOpen]: r }, i), children: [
500
+ /* @__PURE__ */ m(
501
+ Ae,
502
+ {
503
+ variant: "unstyled",
504
+ className: G.Header,
505
+ "aria-expanded": r,
506
+ "aria-controls": c,
507
+ onClick: d,
508
+ children: [
509
+ /* @__PURE__ */ m("span", { className: G.Heading, children: [
510
+ /* @__PURE__ */ t(Qe, { className: G.Chevron }),
511
+ /* @__PURE__ */ t("span", { className: G.Title, children: e })
512
+ ] }),
513
+ n != null && /* @__PURE__ */ t("span", { className: G.Meta, children: n })
514
+ ]
356
515
  }
357
516
  ),
358
- t === "right" && l
517
+ /* @__PURE__ */ t("div", { id: c, className: G.Panel, "aria-hidden": !r, children: /* @__PURE__ */ t("div", { className: G.PanelContent, children: a }) })
359
518
  ] });
360
519
  }
361
- const Rt = "_SegmentedControlContainer_ga29h_2", Lt = "_Disabled_ga29h_20", Tt = "_Highlight_ga29h_25", Dt = "_Option_ga29h_34", Bt = "_OptionDisabled_ga29h_61", Et = "_Selected_ga29h_65", re = {
362
- SegmentedControlContainer: Rt,
363
- Disabled: Lt,
364
- Highlight: Tt,
365
- Option: Dt,
366
- OptionDisabled: Bt,
367
- Selected: Et
368
- }, At = 0.35;
369
- function ks({ options: e, value: n, onChange: r, disabled: t, className: s }) {
370
- const a = B("SegmentedControl", s), i = dn(), c = x(/* @__PURE__ */ new Map()), d = x(null), u = x(n), [l, h] = I(null), g = E(() => {
520
+ const Yt = "_SegmentedControlContainer_ga29h_2", Jt = "_Disabled_ga29h_20", Zt = "_Highlight_ga29h_25", eo = "_Option_ga29h_34", no = "_OptionDisabled_ga29h_61", to = "_Selected_ga29h_65", ae = {
521
+ SegmentedControlContainer: Yt,
522
+ Disabled: Jt,
523
+ Highlight: Zt,
524
+ Option: eo,
525
+ OptionDisabled: no,
526
+ Selected: to
527
+ }, oo = 0.35;
528
+ function Ha({ options: e, value: n, onChange: r, disabled: o, className: a }) {
529
+ const s = L("SegmentedControl", a), i = fn(), c = x(/* @__PURE__ */ new Map()), d = x(null), u = x(n), [l, h] = k(null), g = A(() => {
371
530
  const _ = c.current.get(n);
372
531
  return _ ? { left: _.offsetLeft, width: _.offsetWidth } : null;
373
- }, [n]), b = E((_) => {
532
+ }, [n]), b = A((_) => {
374
533
  const v = g();
375
534
  if (!v) {
376
535
  d.current = null, h(null);
377
536
  return;
378
537
  }
379
- const L = d.current;
380
- if (d.current = v, !_ || !L || i) {
538
+ const T = d.current;
539
+ if (d.current = v, !_ || !T || i) {
381
540
  h({ left: [v.left], width: [v.width], duration: 0 });
382
541
  return;
383
542
  }
384
- const y = Math.min(L.left, v.left), W = Math.max(L.left + L.width, v.left + v.width);
543
+ const y = Math.min(T.left, v.left), F = Math.max(T.left + T.width, v.left + v.width);
385
544
  h({
386
- left: [L.left, y, v.left],
387
- width: [L.width, W - y, v.width],
388
- duration: At
545
+ left: [T.left, y, v.left],
546
+ width: [T.width, F - y, v.width],
547
+ duration: oo
389
548
  });
390
549
  }, [g, i]);
391
- de(() => {
550
+ he(() => {
392
551
  const _ = u.current !== n;
393
552
  u.current = n, b(_);
394
- }, [n, e, b]), A(() => {
553
+ }, [n, e, b]), E(() => {
395
554
  const _ = new ResizeObserver(() => b(!1));
396
555
  return c.current.forEach((v) => _.observe(v)), () => _.disconnect();
397
556
  }, [e, b]);
398
557
  const w = e.filter((_) => !_.disabled), S = w.some((_) => _.value === n) ? n : w[0]?.value;
399
- function O(_) {
400
- if (t) return;
401
- const v = _.key === "ArrowRight" || _.key === "ArrowDown", L = _.key === "ArrowLeft" || _.key === "ArrowUp";
402
- if (!v && !L) return;
558
+ function W(_) {
559
+ if (o) return;
560
+ const v = _.key === "ArrowRight" || _.key === "ArrowDown", T = _.key === "ArrowLeft" || _.key === "ArrowUp";
561
+ if (!v && !T) return;
403
562
  _.preventDefault();
404
- const y = w.findIndex((G) => G.value === n), T = y === -1 ? 0 : (y + (v ? 1 : -1) + w.length) % w.length, M = w[T];
405
- M && (r(M.value), c.current.get(M.value)?.focus());
563
+ const y = w.findIndex((j) => j.value === n), D = y === -1 ? 0 : (y + (v ? 1 : -1) + w.length) % w.length, P = w[D];
564
+ P && (r(P.value), c.current.get(P.value)?.focus());
406
565
  }
407
566
  function R(_) {
408
- t || _.disabled || _.value === n || r(_.value);
567
+ o || _.disabled || _.value === n || r(_.value);
409
568
  }
410
569
  return /* @__PURE__ */ m(
411
570
  "div",
412
571
  {
413
572
  role: "radiogroup",
414
- "aria-disabled": t || void 0,
415
- className: C(re.SegmentedControlContainer, { [re.Disabled]: t }, a),
416
- onKeyDown: O,
573
+ "aria-disabled": o || void 0,
574
+ className: C(ae.SegmentedControlContainer, { [ae.Disabled]: o }, s),
575
+ onKeyDown: W,
417
576
  children: [
418
- l && /* @__PURE__ */ o(
577
+ l && /* @__PURE__ */ t(
419
578
  se.span,
420
579
  {
421
- className: re.Highlight,
580
+ className: ae.Highlight,
422
581
  "aria-hidden": "true",
423
582
  initial: !1,
424
583
  animate: { left: l.left, width: l.width },
425
584
  transition: { duration: l.duration, ease: "easeInOut" }
426
585
  }
427
586
  ),
428
- e.map((_) => /* @__PURE__ */ o(
587
+ e.map((_) => /* @__PURE__ */ t(
429
588
  "button",
430
589
  {
431
590
  ref: (v) => {
@@ -435,10 +594,10 @@ function ks({ options: e, value: n, onChange: r, disabled: t, className: s }) {
435
594
  role: "radio",
436
595
  "aria-checked": _.value === n,
437
596
  tabIndex: _.value === S ? 0 : -1,
438
- disabled: t || _.disabled,
439
- className: C(re.Option, {
440
- [re.Selected]: _.value === n,
441
- [re.OptionDisabled]: _.disabled
597
+ disabled: o || _.disabled,
598
+ className: C(ae.Option, {
599
+ [ae.Selected]: _.value === n,
600
+ [ae.OptionDisabled]: _.disabled
442
601
  }),
443
602
  onClick: () => R(_),
444
603
  children: _.content
@@ -449,159 +608,142 @@ function ks({ options: e, value: n, onChange: r, disabled: t, className: s }) {
449
608
  }
450
609
  );
451
610
  }
452
- function Mt({ size: e = 18, strokeWidth: n = 2.5, shrink: r = !0 }) {
453
- return /* @__PURE__ */ o(
454
- "svg",
455
- {
456
- viewBox: "0 0 24 24",
457
- width: e,
458
- height: e,
459
- fill: "none",
460
- stroke: "currentColor",
461
- strokeWidth: n,
462
- strokeLinecap: "round",
463
- strokeLinejoin: "round",
464
- style: r ? { flexShrink: 0 } : void 0,
465
- children: /* @__PURE__ */ o("polyline", { points: "20 6 9 17 4 12" })
466
- }
467
- );
468
- }
469
- const Pt = "_CheckboxContainer_14vl9_4", Ot = "_disabled_14vl9_12", Wt = "_BoxWrapper_14vl9_17", Ft = "_Box_14vl9_17", Ht = "_Label_14vl9_62", le = {
470
- CheckboxContainer: Pt,
471
- disabled: Ot,
472
- BoxWrapper: Wt,
473
- Box: Ft,
474
- Label: Ht
611
+ const ro = "_CheckboxContainer_14vl9_4", ao = "_disabled_14vl9_12", so = "_BoxWrapper_14vl9_17", io = "_Box_14vl9_17", co = "_Label_14vl9_62", ue = {
612
+ CheckboxContainer: ro,
613
+ disabled: ao,
614
+ BoxWrapper: so,
615
+ Box: io,
616
+ Label: co
475
617
  };
476
- function xs({ checked: e, onChange: n, label: r, disabled: t, className: s }) {
477
- const a = B("Checkbox", s);
478
- return /* @__PURE__ */ m("label", { className: C(le.CheckboxContainer, { [le.disabled]: t }, a), children: [
479
- /* @__PURE__ */ m("span", { className: le.BoxWrapper, children: [
480
- /* @__PURE__ */ o(
618
+ function qa({ checked: e, onChange: n, label: r, disabled: o, className: a }) {
619
+ const s = L("Checkbox", a);
620
+ return /* @__PURE__ */ m("label", { className: C(ue.CheckboxContainer, { [ue.disabled]: o }, s), children: [
621
+ /* @__PURE__ */ m("span", { className: ue.BoxWrapper, children: [
622
+ /* @__PURE__ */ t(
481
623
  "input",
482
624
  {
483
625
  type: "checkbox",
484
626
  checked: e,
485
627
  onChange: (i) => n(i.target.checked),
486
- disabled: t
628
+ disabled: o
487
629
  }
488
630
  ),
489
- /* @__PURE__ */ o("span", { className: le.Box, children: /* @__PURE__ */ o(Mt, { size: 11, strokeWidth: 3, shrink: !1 }) })
631
+ /* @__PURE__ */ t("span", { className: ue.Box, children: /* @__PURE__ */ t(Xt, { size: 11, strokeWidth: 3, shrink: !1 }) })
490
632
  ] }),
491
- r && /* @__PURE__ */ o("span", { className: le.Label, children: r })
633
+ r && /* @__PURE__ */ t("span", { className: ue.Label, children: r })
492
634
  ] });
493
635
  }
494
- function qt() {
495
- const [e, n] = I(!1), r = x(null), t = E(() => n((a) => !a), []), s = E(() => n(!1), []);
496
- return { isOpen: e, triggerRef: r, toggleOpen: t, close: s };
636
+ function lo() {
637
+ const [e, n] = k(!1), r = x(null), o = A(() => n((s) => !s), []), a = A(() => n(!1), []);
638
+ return { isOpen: e, triggerRef: r, toggleOpen: o, close: a };
497
639
  }
498
- function Ut(e, n, r) {
499
- A(() => {
500
- function t(a) {
501
- const i = a.target;
640
+ function uo(e, n, r) {
641
+ E(() => {
642
+ function o(s) {
643
+ const i = s.target;
502
644
  e.current?.contains(i) || r?.current?.contains(i) || n();
503
645
  }
504
- function s(a) {
505
- a.key === "Escape" && (a.preventDefault(), a.stopPropagation(), n());
646
+ function a(s) {
647
+ s.key === "Escape" && (s.preventDefault(), s.stopPropagation(), n());
506
648
  }
507
- return document.addEventListener("mousedown", t, !0), document.addEventListener("keydown", s, !0), () => {
508
- document.removeEventListener("mousedown", t, !0), document.removeEventListener("keydown", s, !0);
649
+ return document.addEventListener("mousedown", o, !0), document.addEventListener("keydown", a, !0), () => {
650
+ document.removeEventListener("mousedown", o, !0), document.removeEventListener("keydown", a, !0);
509
651
  };
510
652
  }, [n, e, r]);
511
653
  }
512
- function $t(e, n) {
513
- const [r, t] = I([]);
514
- return A(() => {
654
+ function ho(e, n) {
655
+ const [r, o] = k([]);
656
+ return E(() => {
515
657
  if (!n) return;
516
- let s = !1;
517
- return n(e).then((a) => {
518
- s || t(a);
658
+ let a = !1;
659
+ return n(e).then((s) => {
660
+ a || o(s);
519
661
  }), () => {
520
- s = !0;
662
+ a = !0;
521
663
  };
522
664
  }, [e, n]), r;
523
665
  }
524
- function ue(e) {
666
+ function de(e) {
525
667
  return typeof e == "object" && e !== null && "group" in e;
526
668
  }
527
- function ze(e) {
528
- return e.flatMap((n) => ue(n) ? n.options : [n]);
669
+ function Ye(e) {
670
+ return e.flatMap((n) => de(n) ? n.options : [n]);
529
671
  }
530
672
  function H(e) {
531
673
  return typeof e == "string" ? e : e.id;
532
674
  }
533
- function we(e) {
675
+ function be(e) {
534
676
  return typeof e == "string" ? e : e.name;
535
677
  }
536
- function Xe(e) {
678
+ function Je(e) {
537
679
  return typeof e == "string" ? !1 : !!e.disabled;
538
680
  }
539
- function Gt(e) {
681
+ function _o(e) {
540
682
  return typeof e == "string" ? void 0 : e.title;
541
683
  }
542
- function jt(e, n) {
543
- return e.map((r) => n.find((t) => H(t) === r) ?? r);
544
- }
545
- function Vt({ anchorRect: e, panelHeight: n, viewportHeight: r, gap: t }) {
546
- const s = Math.max(0, r - e.bottom - t), a = Math.max(0, e.top - t);
547
- return !(n <= s) && a > s ? { side: "above", availableHeight: a } : { side: "below", availableHeight: s };
548
- }
549
- const Kt = "_DropdownContainer_5x7b0_18", zt = "_PanelWrapper_5x7b0_25", Xt = "_Portal_5x7b0_39", Qt = "_Above_5x7b0_47", Yt = "_PanelContainer_5x7b0_23", Jt = "_Glass_5x7b0_64", Zt = "_Label_5x7b0_70", eo = "_WithIcon_5x7b0_84", no = "_lifted_5x7b0_84", to = "_TriggerContainer_5x7b0_95", oo = "_Open_5x7b0_119", ro = "_TriggerPlaceholder_5x7b0_124", so = "_TriggerValue_5x7b0_132", ao = "_TriggerIcon_5x7b0_140", io = "_ChipsWrapper_5x7b0_147", co = "_Expand_5x7b0_165", lo = "_MultiSelect_5x7b0_171", uo = "_ExpandHeight_5x7b0_176", ho = "_RichValue_5x7b0_181", _o = "_LeadingIcon_5x7b0_191", fo = "_TriggerValueRich_5x7b0_205", po = "_Chip_5x7b0_147", mo = "_SearchRow_5x7b0_225", go = "_SearchBox_5x7b0_231", Co = "_SearchIcon_5x7b0_241", vo = "_SearchInput_5x7b0_248", wo = "_ResultsList_5x7b0_262", bo = "_OptionRow_5x7b0_268", yo = "_Selected_5x7b0_283", No = "_Indented_5x7b0_287", Io = "_Disabled_5x7b0_291", ko = "_GroupHeader_5x7b0_302", xo = "_CheckSlot_5x7b0_317", So = "_Checked_5x7b0_327", Ro = "_CheckIcon_5x7b0_333", Lo = "_CreateRow_5x7b0_360", To = "_WithBorder_5x7b0_373", Do = "_CreateIcon_5x7b0_378", Bo = "_CreateLabel_5x7b0_390", Eo = "_EmptyHint_5x7b0_396", Ao = "_SkeletonRow_5x7b0_403", f = {
550
- DropdownContainer: Kt,
551
- PanelWrapper: zt,
552
- Portal: Xt,
553
- Above: Qt,
554
- PanelContainer: Yt,
555
- Glass: Jt,
556
- Label: Zt,
557
- WithIcon: eo,
558
- lifted: no,
559
- TriggerContainer: to,
560
- Open: oo,
561
- TriggerPlaceholder: ro,
562
- TriggerValue: so,
563
- TriggerIcon: ao,
564
- ChipsWrapper: io,
565
- Expand: co,
566
- MultiSelect: lo,
567
- ExpandHeight: uo,
568
- RichValue: ho,
569
- LeadingIcon: _o,
570
- TriggerValueRich: fo,
571
- Chip: po,
572
- SearchRow: mo,
573
- SearchBox: go,
574
- SearchIcon: Co,
575
- SearchInput: vo,
576
- ResultsList: wo,
577
- OptionRow: bo,
578
- Selected: yo,
579
- Indented: No,
580
- Disabled: Io,
581
- GroupHeader: ko,
582
- CheckSlot: xo,
583
- Checked: So,
584
- CheckIcon: Ro,
585
- CreateRow: Lo,
586
- WithBorder: To,
587
- CreateIcon: Do,
588
- CreateLabel: Bo,
589
- EmptyHint: Eo,
590
- SkeletonRow: Ao
684
+ function fo(e, n) {
685
+ return e.map((r) => n.find((o) => H(o) === r) ?? r);
686
+ }
687
+ function po({ anchorRect: e, panelHeight: n, viewportHeight: r, gap: o }) {
688
+ const a = Math.max(0, r - e.bottom - o), s = Math.max(0, e.top - o);
689
+ return !(n <= a) && s > a ? { side: "above", availableHeight: s } : { side: "below", availableHeight: a };
690
+ }
691
+ const mo = "_DropdownContainer_5x7b0_18", go = "_PanelWrapper_5x7b0_25", Co = "_Portal_5x7b0_39", vo = "_Above_5x7b0_47", wo = "_PanelContainer_5x7b0_23", bo = "_Glass_5x7b0_64", yo = "_Label_5x7b0_70", No = "_WithIcon_5x7b0_84", ko = "_lifted_5x7b0_84", Io = "_TriggerContainer_5x7b0_95", xo = "_Open_5x7b0_119", So = "_TriggerPlaceholder_5x7b0_124", Ro = "_TriggerValue_5x7b0_132", To = "_TriggerIcon_5x7b0_140", Lo = "_ChipsWrapper_5x7b0_147", Do = "_Expand_5x7b0_165", Bo = "_MultiSelect_5x7b0_171", Ao = "_ExpandHeight_5x7b0_176", Eo = "_RichValue_5x7b0_181", Po = "_LeadingIcon_5x7b0_191", Mo = "_TriggerValueRich_5x7b0_205", Oo = "_Chip_5x7b0_147", Wo = "_SearchRow_5x7b0_225", Fo = "_SearchBox_5x7b0_231", Ho = "_SearchIcon_5x7b0_241", qo = "_SearchInput_5x7b0_248", Uo = "_ResultsList_5x7b0_262", $o = "_OptionRow_5x7b0_268", jo = "_Selected_5x7b0_283", Go = "_Indented_5x7b0_287", Vo = "_Disabled_5x7b0_291", Ko = "_GroupHeader_5x7b0_302", zo = "_CheckSlot_5x7b0_317", Xo = "_Checked_5x7b0_327", Qo = "_CheckIcon_5x7b0_333", Yo = "_CreateRow_5x7b0_360", Jo = "_WithBorder_5x7b0_373", Zo = "_CreateIcon_5x7b0_378", er = "_CreateLabel_5x7b0_390", nr = "_EmptyHint_5x7b0_396", tr = "_SkeletonRow_5x7b0_403", f = {
692
+ DropdownContainer: mo,
693
+ PanelWrapper: go,
694
+ Portal: Co,
695
+ Above: vo,
696
+ PanelContainer: wo,
697
+ Glass: bo,
698
+ Label: yo,
699
+ WithIcon: No,
700
+ lifted: ko,
701
+ TriggerContainer: Io,
702
+ Open: xo,
703
+ TriggerPlaceholder: So,
704
+ TriggerValue: Ro,
705
+ TriggerIcon: To,
706
+ ChipsWrapper: Lo,
707
+ Expand: Do,
708
+ MultiSelect: Bo,
709
+ ExpandHeight: Ao,
710
+ RichValue: Eo,
711
+ LeadingIcon: Po,
712
+ TriggerValueRich: Mo,
713
+ Chip: Oo,
714
+ SearchRow: Wo,
715
+ SearchBox: Fo,
716
+ SearchIcon: Ho,
717
+ SearchInput: qo,
718
+ ResultsList: Uo,
719
+ OptionRow: $o,
720
+ Selected: jo,
721
+ Indented: Go,
722
+ Disabled: Vo,
723
+ GroupHeader: Ko,
724
+ CheckSlot: zo,
725
+ Checked: Xo,
726
+ CheckIcon: Qo,
727
+ CreateRow: Yo,
728
+ WithBorder: Jo,
729
+ CreateIcon: Zo,
730
+ CreateLabel: er,
731
+ EmptyHint: nr,
732
+ SkeletonRow: tr
591
733
  };
592
- function Mo({ query: e, withBorder: n, onCreate: r }) {
593
- function t(s) {
594
- s.preventDefault(), r();
734
+ function or({ query: e, withBorder: n, onCreate: r }) {
735
+ function o(a) {
736
+ a.preventDefault(), r();
595
737
  }
596
738
  return /* @__PURE__ */ m(
597
739
  "div",
598
740
  {
599
741
  className: C(f.CreateRow, n && f.WithBorder),
600
- onMouseDown: t,
742
+ onMouseDown: o,
601
743
  children: [
602
- /* @__PURE__ */ o("span", { className: f.CreateIcon, children: /* @__PURE__ */ m("svg", { width: "10", height: "10", viewBox: "0 0 10 10", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", children: [
603
- /* @__PURE__ */ o("line", { x1: "5", y1: "1", x2: "5", y2: "9" }),
604
- /* @__PURE__ */ o("line", { x1: "1", y1: "5", x2: "9", y2: "5" })
744
+ /* @__PURE__ */ t("span", { className: f.CreateIcon, children: /* @__PURE__ */ m("svg", { width: "10", height: "10", viewBox: "0 0 10 10", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", children: [
745
+ /* @__PURE__ */ t("line", { x1: "5", y1: "1", x2: "5", y2: "9" }),
746
+ /* @__PURE__ */ t("line", { x1: "1", y1: "5", x2: "9", y2: "5" })
605
747
  ] }) }),
606
748
  /* @__PURE__ */ m("span", { className: f.CreateLabel, children: [
607
749
  "create “",
@@ -612,78 +754,78 @@ function Mo({ query: e, withBorder: n, onCreate: r }) {
612
754
  }
613
755
  );
614
756
  }
615
- function Po({ label: e, icon: n, withBorder: r, onAction: t }) {
616
- function s(a) {
617
- a.preventDefault(), t();
757
+ function rr({ label: e, icon: n, withBorder: r, onAction: o }) {
758
+ function a(s) {
759
+ s.preventDefault(), o();
618
760
  }
619
761
  return /* @__PURE__ */ m(
620
762
  "div",
621
763
  {
622
764
  className: C(f.CreateRow, r && f.WithBorder),
623
- onMouseDown: s,
765
+ onMouseDown: a,
624
766
  children: [
625
- /* @__PURE__ */ o("span", { className: f.CreateIcon, children: n ?? /* @__PURE__ */ m("svg", { width: "10", height: "10", viewBox: "0 0 10 10", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", children: [
626
- /* @__PURE__ */ o("line", { x1: "5", y1: "1", x2: "5", y2: "9" }),
627
- /* @__PURE__ */ o("line", { x1: "1", y1: "5", x2: "9", y2: "5" })
767
+ /* @__PURE__ */ t("span", { className: f.CreateIcon, children: n ?? /* @__PURE__ */ m("svg", { width: "10", height: "10", viewBox: "0 0 10 10", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", children: [
768
+ /* @__PURE__ */ t("line", { x1: "5", y1: "1", x2: "5", y2: "9" }),
769
+ /* @__PURE__ */ t("line", { x1: "1", y1: "5", x2: "9", y2: "5" })
628
770
  ] }) }),
629
- /* @__PURE__ */ o("span", { className: f.CreateLabel, children: e })
771
+ /* @__PURE__ */ t("span", { className: f.CreateLabel, children: e })
630
772
  ]
631
773
  }
632
774
  );
633
775
  }
634
- function Oo({ label: e }) {
635
- return /* @__PURE__ */ o("div", { className: f.GroupHeader, children: e });
776
+ function ar({ label: e }) {
777
+ return /* @__PURE__ */ t("div", { className: f.GroupHeader, children: e });
636
778
  }
637
- function Wo({ isChecked: e }) {
638
- return /* @__PURE__ */ o("span", { className: C(f.CheckSlot, e && f.Checked), "aria-hidden": "true", children: /* @__PURE__ */ o("svg", { className: f.CheckIcon, viewBox: "0 0 12 12", width: "12", height: "12", fill: "none", children: /* @__PURE__ */ o("path", { d: "M2 6.5 L4.75 9 L10 3.5", pathLength: "1" }) }) });
779
+ function sr({ isChecked: e }) {
780
+ return /* @__PURE__ */ t("span", { className: C(f.CheckSlot, e && f.Checked), "aria-hidden": "true", children: /* @__PURE__ */ t("svg", { className: f.CheckIcon, viewBox: "0 0 12 12", width: "12", height: "12", fill: "none", children: /* @__PURE__ */ t("path", { d: "M2 6.5 L4.75 9 L10 3.5", pathLength: "1" }) }) });
639
781
  }
640
- function Pe({ opt: e, isSelected: n, multiSelect: r, onPick: t, indented: s = !1 }) {
641
- const a = Xe(e);
782
+ function We({ opt: e, isSelected: n, multiSelect: r, onPick: o, indented: a = !1 }) {
783
+ const s = Je(e);
642
784
  function i(c) {
643
- c.preventDefault(), !a && t(e);
785
+ c.preventDefault(), !s && o(e);
644
786
  }
645
787
  return /* @__PURE__ */ m(
646
788
  "div",
647
789
  {
648
- className: C(f.OptionRow, n && f.Selected, s && f.Indented, a && f.Disabled),
790
+ className: C(f.OptionRow, n && f.Selected, a && f.Indented, s && f.Disabled),
649
791
  onMouseDown: i,
650
- title: Gt(e),
792
+ title: _o(e),
651
793
  children: [
652
- r && /* @__PURE__ */ o(Wo, { isChecked: n }),
653
- we(e)
794
+ r && /* @__PURE__ */ t(sr, { isChecked: n }),
795
+ be(e)
654
796
  ]
655
797
  }
656
798
  );
657
799
  }
658
- function Fo({ inputRef: e, query: n, onChange: r, onKeyDown: t, placeholder: s }) {
659
- return /* @__PURE__ */ o("div", { className: f.SearchRow, children: /* @__PURE__ */ m("div", { className: f.SearchBox, children: [
660
- /* @__PURE__ */ o("span", { className: f.SearchIcon, children: /* @__PURE__ */ m("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", children: [
661
- /* @__PURE__ */ o("circle", { cx: "5", cy: "5", r: "3.5" }),
662
- /* @__PURE__ */ o("line", { x1: "8", y1: "8", x2: "11", y2: "11" })
800
+ function ir({ inputRef: e, query: n, onChange: r, onKeyDown: o, placeholder: a }) {
801
+ return /* @__PURE__ */ t("div", { className: f.SearchRow, children: /* @__PURE__ */ m("div", { className: f.SearchBox, children: [
802
+ /* @__PURE__ */ t("span", { className: f.SearchIcon, children: /* @__PURE__ */ m("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", children: [
803
+ /* @__PURE__ */ t("circle", { cx: "5", cy: "5", r: "3.5" }),
804
+ /* @__PURE__ */ t("line", { x1: "8", y1: "8", x2: "11", y2: "11" })
663
805
  ] }) }),
664
- /* @__PURE__ */ o(
806
+ /* @__PURE__ */ t(
665
807
  "input",
666
808
  {
667
809
  ref: e,
668
810
  className: f.SearchInput,
669
811
  value: n,
670
812
  onChange: r,
671
- onKeyDown: t,
672
- placeholder: s
813
+ onKeyDown: o,
814
+ placeholder: a
673
815
  }
674
816
  )
675
817
  ] }) });
676
818
  }
677
- function Ho({ count: e }) {
678
- return /* @__PURE__ */ o($, { children: Array.from({ length: e }).map((n, r) => /* @__PURE__ */ o("div", { className: f.SkeletonRow }, r)) });
819
+ function cr({ count: e }) {
820
+ return /* @__PURE__ */ t($, { children: Array.from({ length: e }).map((n, r) => /* @__PURE__ */ t("div", { className: f.SkeletonRow }, r)) });
679
821
  }
680
- function qo({
822
+ function lr({
681
823
  onSearch: e,
682
824
  onCreate: n,
683
825
  onPick: r,
684
- onClose: t,
685
- anchorRef: s,
686
- placeholder: a,
826
+ onClose: o,
827
+ anchorRef: a,
828
+ placeholder: s,
687
829
  options: i = [],
688
830
  excluded: c = [],
689
831
  selected: d = [],
@@ -694,226 +836,151 @@ function qo({
694
836
  skeletonRowCount: b = 4,
695
837
  onError: w = console.error,
696
838
  glass: S = !1,
697
- portal: O = !0,
839
+ portal: W = !0,
698
840
  renderOption: R,
699
841
  footerAction: _
700
842
  }) {
701
- const [v, L] = I(""), [y, W] = I(!1), [T, M] = I(null), [G, J] = I(0), [k, D] = I(0), z = x(null), te = x(null), ae = !!e, ye = $t(v, e);
702
- Ut(te, t, s);
703
- const q = S || O;
704
- de(() => {
843
+ const [v, T] = k(""), [y, F] = k(!1), [D, P] = k(null), [j, Z] = k(0), [I, B] = k(0), X = x(null), oe = x(null), ie = !!e, Ne = ho(v, e);
844
+ uo(oe, o, a);
845
+ const q = S || W;
846
+ he(() => {
705
847
  if (!q) return;
706
848
  function p() {
707
- s?.current && M(s.current.getBoundingClientRect());
849
+ a?.current && P(a.current.getBoundingClientRect());
708
850
  }
709
851
  return p(), window.addEventListener("scroll", p, !0), window.addEventListener("resize", p), () => {
710
852
  window.removeEventListener("scroll", p, !0), window.removeEventListener("resize", p);
711
853
  };
712
- }, [q, s]), de(() => {
713
- const p = te.current;
854
+ }, [q, a]), he(() => {
855
+ const p = oe.current;
714
856
  if (!q || !p) return;
715
- const P = "--dropdown-available-height", pe = p.style.getPropertyValue(P);
716
- p.style.removeProperty(P), J(p.offsetHeight), D(parseFloat(getComputedStyle(p).marginTop) || 0), pe && p.style.setProperty(P, pe);
717
- }), A(() => {
718
- ae && z.current?.focus();
719
- }, [ae]);
720
- const ie = (e ? ye : i).flatMap((p) => {
721
- if (ue(p)) {
722
- const P = p.options.filter((pe) => !c.includes(H(pe)));
723
- return P.length > 0 ? [{ ...p, options: P }] : [];
857
+ const M = "--dropdown-available-height", me = p.style.getPropertyValue(M);
858
+ p.style.removeProperty(M), Z(p.offsetHeight), B(parseFloat(getComputedStyle(p).marginTop) || 0), me && p.style.setProperty(M, me);
859
+ }), E(() => {
860
+ ie && X.current?.focus();
861
+ }, [ie]);
862
+ const ce = (e ? Ne : i).flatMap((p) => {
863
+ if (de(p)) {
864
+ const M = p.options.filter((me) => !c.includes(H(me)));
865
+ return M.length > 0 ? [{ ...p, options: M }] : [];
724
866
  }
725
867
  return c.includes(H(p)) ? [] : [p];
726
- }), Z = l ? [
727
- ...ie.filter((p) => !ue(p) && d.includes(H(p))),
728
- ...ie.filter((p) => ue(p) || !d.includes(H(p)))
729
- ] : ie, X = ze(Z), ce = v.trim(), on = X.some(
730
- (p) => we(p).toLowerCase() === ce.toLowerCase()
731
- ), _e = !!n && ce.length > 0 && !on;
732
- async function Be() {
733
- !ce || y || !n || (W(!0), n(ce).then(oe).catch(w).finally(() => W(!1)));
868
+ }), ee = l ? [
869
+ ...ce.filter((p) => !de(p) && d.includes(H(p))),
870
+ ...ce.filter((p) => de(p) || !d.includes(H(p)))
871
+ ] : ce, Q = Ye(ee), le = v.trim(), an = Q.some(
872
+ (p) => be(p).toLowerCase() === le.toLowerCase()
873
+ ), fe = !!n && le.length > 0 && !an;
874
+ async function Ee() {
875
+ !le || y || !n || (F(!0), n(le).then(re).catch(w).finally(() => F(!1)));
734
876
  }
735
- function oe(p) {
736
- Xe(p) || (r(p), u || t());
877
+ function re(p) {
878
+ Je(p) || (r(p), u || o());
737
879
  }
738
- function rn() {
739
- _?.onAction(), t();
880
+ function sn() {
881
+ _?.onAction(), o();
740
882
  }
741
- function sn(p) {
742
- L(p.target.value);
883
+ function cn(p) {
884
+ T(p.target.value);
743
885
  }
744
- function an(p) {
745
- p.key === "Enter" && (p.preventDefault(), X.length > 0 ? oe(X[0]) : _e && Be());
886
+ function ln(p) {
887
+ p.key === "Enter" && (p.preventDefault(), Q.length > 0 ? re(Q[0]) : fe && Ee());
746
888
  }
747
- const cn = a ?? (n ? "search or add new…" : "search…");
748
- if (q && !T) return null;
749
- const fe = q && T ? Vt({ anchorRect: T, panelHeight: G, viewportHeight: window.innerHeight, gap: k }) : null, ln = q && T && fe ? {
750
- left: T.left,
751
- width: T.width,
752
- ...fe.side === "above" ? { bottom: window.innerHeight - T.top } : { top: T.bottom },
753
- "--dropdown-available-height": `${fe.availableHeight}px`
754
- } : void 0, Ee = /* @__PURE__ */ o(
889
+ const un = s ?? (n ? "search or add new…" : "search…");
890
+ if (q && !D) return null;
891
+ const pe = q && D ? po({ anchorRect: D, panelHeight: j, viewportHeight: window.innerHeight, gap: I }) : null, dn = q && D && pe ? {
892
+ left: D.left,
893
+ width: D.width,
894
+ ...pe.side === "above" ? { bottom: window.innerHeight - D.top } : { top: D.bottom },
895
+ "--dropdown-available-height": `${pe.availableHeight}px`
896
+ } : void 0, Pe = /* @__PURE__ */ t(
755
897
  "div",
756
898
  {
757
- ref: te,
899
+ ref: oe,
758
900
  className: C(f.PanelWrapper, {
759
901
  [f.Portal]: q,
760
- [f.Above]: fe?.side === "above"
902
+ [f.Above]: pe?.side === "above"
761
903
  }),
762
- style: ln,
904
+ style: dn,
763
905
  children: /* @__PURE__ */ m("div", { className: C(f.PanelContainer, { [f.Glass]: S }), children: [
764
- ae && /* @__PURE__ */ o(
765
- Fo,
906
+ ie && /* @__PURE__ */ t(
907
+ ir,
766
908
  {
767
- inputRef: z,
909
+ inputRef: X,
768
910
  query: v,
769
- onChange: sn,
770
- onKeyDown: an,
771
- placeholder: cn
911
+ onChange: cn,
912
+ onKeyDown: ln,
913
+ placeholder: un
772
914
  }
773
915
  ),
774
- /* @__PURE__ */ o("div", { className: f.ResultsList, children: h ? /* @__PURE__ */ o(Ho, { count: b }) : /* @__PURE__ */ m($, { children: [
775
- Z.map((p) => ue(p) ? /* @__PURE__ */ m(Ne, { children: [
776
- /* @__PURE__ */ o(Oo, { label: p.group }),
777
- p.options.map((P) => /* @__PURE__ */ o(Ne, { children: R ? R(P, {
778
- isSelected: d.includes(H(P)),
916
+ /* @__PURE__ */ t("div", { className: f.ResultsList, children: h ? /* @__PURE__ */ t(cr, { count: b }) : /* @__PURE__ */ m($, { children: [
917
+ ee.map((p) => de(p) ? /* @__PURE__ */ m(ke, { children: [
918
+ /* @__PURE__ */ t(ar, { label: p.group }),
919
+ p.options.map((M) => /* @__PURE__ */ t(ke, { children: R ? R(M, {
920
+ isSelected: d.includes(H(M)),
779
921
  multiSelect: u,
780
922
  indented: !0,
781
- onPick: () => oe(P)
782
- }) : /* @__PURE__ */ o(
783
- Pe,
923
+ onPick: () => re(M)
924
+ }) : /* @__PURE__ */ t(
925
+ We,
784
926
  {
785
- opt: P,
786
- isSelected: d.includes(H(P)),
927
+ opt: M,
928
+ isSelected: d.includes(H(M)),
787
929
  multiSelect: u,
788
- onPick: oe,
930
+ onPick: re,
789
931
  indented: !0
790
932
  }
791
- ) }, H(P)))
792
- ] }, `group:${p.group}`) : /* @__PURE__ */ o(Ne, { children: R ? R(p, {
933
+ ) }, H(M)))
934
+ ] }, `group:${p.group}`) : /* @__PURE__ */ t(ke, { children: R ? R(p, {
793
935
  isSelected: d.includes(H(p)),
794
936
  multiSelect: u,
795
937
  indented: !1,
796
- onPick: () => oe(p)
797
- }) : /* @__PURE__ */ o(
798
- Pe,
938
+ onPick: () => re(p)
939
+ }) : /* @__PURE__ */ t(
940
+ We,
799
941
  {
800
942
  opt: p,
801
943
  isSelected: d.includes(H(p)),
802
944
  multiSelect: u,
803
- onPick: oe
945
+ onPick: re
804
946
  }
805
947
  ) }, H(p))),
806
- _e && /* @__PURE__ */ o(
807
- Mo,
948
+ fe && /* @__PURE__ */ t(
949
+ or,
808
950
  {
809
- query: ce,
810
- withBorder: X.length > 0,
811
- onCreate: Be
951
+ query: le,
952
+ withBorder: Q.length > 0,
953
+ onCreate: Ee
812
954
  }
813
955
  ),
814
- X.length === 0 && !_e && /* @__PURE__ */ o("div", { className: f.EmptyHint, children: g }),
815
- _ && /* @__PURE__ */ o(
816
- Po,
956
+ Q.length === 0 && !fe && /* @__PURE__ */ t("div", { className: f.EmptyHint, children: g }),
957
+ _ && /* @__PURE__ */ t(
958
+ rr,
817
959
  {
818
960
  label: _.label,
819
961
  icon: _.icon,
820
- withBorder: X.length > 0 || _e,
821
- onAction: rn
962
+ withBorder: Q.length > 0 || fe,
963
+ onAction: sn
822
964
  }
823
965
  )
824
966
  ] }) })
825
967
  ] })
826
968
  }
827
969
  );
828
- return q ? De(Ee, document.body) : Ee;
970
+ return q ? Be(Pe, document.body) : Pe;
829
971
  }
830
- function Uo({ size: e = 14, strokeWidth: n = 2, className: r }) {
831
- return /* @__PURE__ */ o(
832
- "svg",
833
- {
834
- viewBox: "0 0 24 24",
835
- width: e,
836
- height: e,
837
- fill: "none",
838
- stroke: "currentColor",
839
- strokeWidth: n,
840
- strokeLinecap: "round",
841
- strokeLinejoin: "round",
842
- className: r,
843
- children: /* @__PURE__ */ o("polyline", { points: "6 9 12 15 18 9" })
844
- }
845
- );
846
- }
847
- function Ss() {
848
- return /* @__PURE__ */ m(
849
- "svg",
850
- {
851
- viewBox: "0 0 24 24",
852
- width: "14",
853
- height: "14",
854
- fill: "none",
855
- stroke: "currentColor",
856
- strokeWidth: "1.6",
857
- strokeLinecap: "round",
858
- strokeLinejoin: "round",
859
- children: [
860
- /* @__PURE__ */ o("path", { d: "M12 20h9" }),
861
- /* @__PURE__ */ o("path", { d: "M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4z" })
862
- ]
863
- }
864
- );
865
- }
866
- function Rs() {
867
- return /* @__PURE__ */ m(
868
- "svg",
869
- {
870
- viewBox: "0 0 24 24",
871
- width: "14",
872
- height: "14",
873
- fill: "none",
874
- stroke: "white",
875
- strokeWidth: "2",
876
- strokeLinecap: "round",
877
- strokeLinejoin: "round",
878
- children: [
879
- /* @__PURE__ */ o("path", { d: "M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2" }),
880
- /* @__PURE__ */ o("circle", { cx: "12", cy: "7", r: "4" })
881
- ]
882
- }
883
- );
884
- }
885
- function $o({ size: e = 14, strokeWidth: n = 2, className: r }) {
886
- return /* @__PURE__ */ m(
887
- "svg",
888
- {
889
- viewBox: "0 0 24 24",
890
- width: e,
891
- height: e,
892
- fill: "none",
893
- stroke: "currentColor",
894
- strokeWidth: n,
895
- strokeLinecap: "round",
896
- strokeLinejoin: "round",
897
- className: r,
898
- children: [
899
- /* @__PURE__ */ o("circle", { cx: "11", cy: "11", r: "7" }),
900
- /* @__PURE__ */ o("line", { x1: "21", y1: "21", x2: "16.65", y2: "16.65" })
901
- ]
902
- }
903
- );
904
- }
905
- function Go({
972
+ function ur({
906
973
  triggerRef: e,
907
974
  isOpen: n,
908
975
  onClick: r,
909
- selectedOptions: t,
910
- multiSelect: s,
911
- placeholder: a,
976
+ selectedOptions: o,
977
+ multiSelect: a,
978
+ placeholder: s,
912
979
  onOverflow: i = "scroll",
913
980
  renderValue: c,
914
981
  hasIcon: d = !1
915
982
  }) {
916
- const u = i === "expand", l = !!c && !s && t.length === 1;
983
+ const u = i === "expand", l = !!c && !a && o.length === 1;
917
984
  return /* @__PURE__ */ m(
918
985
  "button",
919
986
  {
@@ -922,7 +989,7 @@ function Go({
922
989
  className: C(
923
990
  f.TriggerContainer,
924
991
  n && f.Open,
925
- s && f.MultiSelect,
992
+ a && f.MultiSelect,
926
993
  u && f.ExpandHeight,
927
994
  l && f.RichValue,
928
995
  d && f.WithIcon
@@ -931,19 +998,19 @@ function Go({
931
998
  "aria-expanded": n,
932
999
  "aria-haspopup": "listbox",
933
1000
  children: [
934
- s && t.length > 0 ? /* @__PURE__ */ o("div", { className: C(f.ChipsWrapper, u && f.Expand), children: t.map((h, g) => /* @__PURE__ */ o("span", { className: f.Chip, children: c ? c(h) : we(h) }, g)) }) : l ? /* @__PURE__ */ o("div", { className: f.TriggerValueRich, children: c(t[0]) }) : /* @__PURE__ */ o("span", { className: t.length === 0 ? f.TriggerPlaceholder : f.TriggerValue, children: t.length === 0 ? a : t.map(we).join(", ") }),
935
- /* @__PURE__ */ o("span", { className: f.TriggerIcon, children: /* @__PURE__ */ o(Uo, { size: 12 }) })
1001
+ a && o.length > 0 ? /* @__PURE__ */ t("div", { className: C(f.ChipsWrapper, u && f.Expand), children: o.map((h, g) => /* @__PURE__ */ t("span", { className: f.Chip, children: c ? c(h) : be(h) }, g)) }) : l ? /* @__PURE__ */ t("div", { className: f.TriggerValueRich, children: c(o[0]) }) : /* @__PURE__ */ t("span", { className: o.length === 0 ? f.TriggerPlaceholder : f.TriggerValue, children: o.length === 0 ? s : o.map(be).join(", ") }),
1002
+ /* @__PURE__ */ t("span", { className: f.TriggerIcon, children: /* @__PURE__ */ t(Qe, { size: 12 }) })
936
1003
  ]
937
1004
  }
938
1005
  );
939
1006
  }
940
- function Ls({
1007
+ function Ua({
941
1008
  options: e = [],
942
1009
  value: n,
943
1010
  onChange: r,
944
- onSearch: t,
945
- onCreate: s,
946
- excluded: a,
1011
+ onSearch: o,
1012
+ onCreate: a,
1013
+ excluded: s,
947
1014
  multiSelect: i = !1,
948
1015
  selectedAtTop: c = !1,
949
1016
  onOverflow: d = "scroll",
@@ -954,57 +1021,57 @@ function Ls({
954
1021
  isLoading: b,
955
1022
  skeletonRowCount: w,
956
1023
  onError: S,
957
- className: O,
1024
+ className: W,
958
1025
  glass: R = !1,
959
1026
  portal: _ = !0,
960
1027
  renderOption: v,
961
- renderValue: L,
1028
+ renderValue: T,
962
1029
  footerAction: y,
963
- icon: W,
964
- children: T
1030
+ icon: F,
1031
+ children: D
965
1032
  }) {
966
- const { isOpen: M, triggerRef: G, toggleOpen: J, close: k } = qt(), D = B("Dropdown", O), z = jt(n, ze(e)), te = M || z.length > 0, ae = u && !te ? "" : l;
967
- function ye(ie) {
968
- const Z = H(ie);
1033
+ const { isOpen: P, triggerRef: j, toggleOpen: Z, close: I } = lo(), B = L("Dropdown", W), X = fo(n, Ye(e)), oe = P || X.length > 0, ie = u && !oe ? "" : l;
1034
+ function Ne(ce) {
1035
+ const ee = H(ce);
969
1036
  r(
970
- i ? n.includes(Z) ? n.filter((X) => X !== Z) : [...n, Z] : [Z]
1037
+ i ? n.includes(ee) ? n.filter((Q) => Q !== ee) : [...n, ee] : [ee]
971
1038
  );
972
1039
  }
973
1040
  const q = {
974
- ref: G,
975
- onClick: J,
976
- "aria-expanded": M,
1041
+ ref: j,
1042
+ onClick: Z,
1043
+ "aria-expanded": P,
977
1044
  "aria-haspopup": "listbox"
978
1045
  };
979
- return /* @__PURE__ */ m("div", { className: C(f.DropdownContainer, D), children: [
980
- u && /* @__PURE__ */ o("label", { className: C(f.Label, { [f.lifted]: te, [f.WithIcon]: !!W }), children: u }),
981
- T ? T({ selectedOptions: z, isOpen: M, toggleOpen: J, close: k, triggerProps: q }) : /* @__PURE__ */ m($, { children: [
982
- W && /* @__PURE__ */ o("span", { className: f.LeadingIcon, children: W }),
983
- /* @__PURE__ */ o(
984
- Go,
1046
+ return /* @__PURE__ */ m("div", { className: C(f.DropdownContainer, B), children: [
1047
+ u && /* @__PURE__ */ t("label", { className: C(f.Label, { [f.lifted]: oe, [f.WithIcon]: !!F }), children: u }),
1048
+ D ? D({ selectedOptions: X, isOpen: P, toggleOpen: Z, close: I, triggerProps: q }) : /* @__PURE__ */ m($, { children: [
1049
+ F && /* @__PURE__ */ t("span", { className: f.LeadingIcon, children: F }),
1050
+ /* @__PURE__ */ t(
1051
+ ur,
985
1052
  {
986
- triggerRef: G,
987
- isOpen: M,
988
- onClick: J,
989
- selectedOptions: z,
1053
+ triggerRef: j,
1054
+ isOpen: P,
1055
+ onClick: Z,
1056
+ selectedOptions: X,
990
1057
  multiSelect: i,
991
1058
  onOverflow: d,
992
- placeholder: ae,
993
- renderValue: L,
994
- hasIcon: !!W
1059
+ placeholder: ie,
1060
+ renderValue: T,
1061
+ hasIcon: !!F
995
1062
  }
996
1063
  )
997
1064
  ] }),
998
- M && /* @__PURE__ */ o(
999
- qo,
1065
+ P && /* @__PURE__ */ t(
1066
+ lr,
1000
1067
  {
1001
1068
  options: e,
1002
- onSearch: t,
1003
- onCreate: s,
1004
- onPick: ye,
1005
- onClose: k,
1006
- anchorRef: G,
1007
- excluded: a,
1069
+ onSearch: o,
1070
+ onCreate: a,
1071
+ onPick: Ne,
1072
+ onClose: I,
1073
+ anchorRef: j,
1074
+ excluded: s,
1008
1075
  multiSelect: i,
1009
1076
  selectedAtTop: c,
1010
1077
  selected: n,
@@ -1021,71 +1088,43 @@ function Ls({
1021
1088
  )
1022
1089
  ] });
1023
1090
  }
1024
- const jo = "_Btn_1wp07_10", Vo = "_Unstyled_1wp07_35", Ko = "_Primary_1wp07_52", zo = "_Secondary_1wp07_67", Xo = "_Ghost_1wp07_79", Qo = "_IconDanger_1wp07_91", Yo = "_Danger_1wp07_112", ne = {
1025
- Btn: jo,
1026
- Unstyled: Vo,
1027
- Primary: Ko,
1028
- Secondary: zo,
1029
- Ghost: Xo,
1030
- IconDanger: Qo,
1031
- Danger: Yo
1032
- }, Jo = {
1033
- primary: ne.Primary,
1034
- secondary: ne.Secondary,
1035
- danger: ne.Danger,
1036
- ghost: ne.Ghost,
1037
- iconDanger: ne.IconDanger,
1038
- unstyled: ne.Unstyled
1039
- };
1040
- function Qe({ variant: e = "default", className: n, children: r, ...t }) {
1041
- const s = B("Button", n);
1042
- return /* @__PURE__ */ o(
1043
- "button",
1044
- {
1045
- type: "button",
1046
- ...t,
1047
- className: C(!(e === "unstyled") && ne.Btn, Jo[e], s),
1048
- children: r
1049
- }
1050
- );
1051
- }
1052
- const Zo = "_ConfirmWrapper_1tq4o_4", er = "_ConfirmContainer_1tq4o_1", nr = "_Glass_1tq4o_24", tr = "_ConfirmTitle_1tq4o_30", or = "_ConfirmMessage_1tq4o_38", rr = "_ConfirmActions_1tq4o_45", sr = "_BtnCancel_1tq4o_53", ar = "_BtnConfirm_1tq4o_73", ir = "_BtnDanger_1tq4o_92", j = {
1053
- ConfirmWrapper: Zo,
1054
- ConfirmContainer: er,
1055
- Glass: nr,
1056
- ConfirmTitle: tr,
1057
- ConfirmMessage: or,
1058
- ConfirmActions: rr,
1059
- BtnCancel: sr,
1060
- BtnConfirm: ar,
1061
- BtnDanger: ir
1091
+ const dr = "_ConfirmWrapper_1tq4o_4", hr = "_ConfirmContainer_1tq4o_1", _r = "_Glass_1tq4o_24", fr = "_ConfirmTitle_1tq4o_30", pr = "_ConfirmMessage_1tq4o_38", mr = "_ConfirmActions_1tq4o_45", gr = "_BtnCancel_1tq4o_53", Cr = "_BtnConfirm_1tq4o_73", vr = "_BtnDanger_1tq4o_92", V = {
1092
+ ConfirmWrapper: dr,
1093
+ ConfirmContainer: hr,
1094
+ Glass: _r,
1095
+ ConfirmTitle: fr,
1096
+ ConfirmMessage: pr,
1097
+ ConfirmActions: mr,
1098
+ BtnCancel: gr,
1099
+ BtnConfirm: Cr,
1100
+ BtnDanger: vr
1062
1101
  };
1063
- function Ts({
1102
+ function $a({
1064
1103
  title: e,
1065
1104
  message: n,
1066
1105
  confirmLabel: r = "Confirm",
1067
- cancelLabel: t = "Cancel",
1068
- danger: s = !1,
1069
- onConfirm: a,
1106
+ cancelLabel: o = "Cancel",
1107
+ danger: a = !1,
1108
+ onConfirm: s,
1070
1109
  onClose: i,
1071
1110
  className: c,
1072
1111
  glass: d = !1
1073
1112
  }) {
1074
- const [u, l] = I(!1), h = B("ConfirmDialog", c);
1113
+ const [u, l] = k(!1), h = L("ConfirmDialog", c);
1075
1114
  function g() {
1076
- l(!0), Promise.resolve(a()).finally(() => {
1115
+ l(!0), Promise.resolve(s()).finally(() => {
1077
1116
  l(!1), i();
1078
1117
  });
1079
1118
  }
1080
- return /* @__PURE__ */ o("div", { className: j.ConfirmWrapper, children: /* @__PURE__ */ m("div", { className: C(j.ConfirmContainer, { [j.Glass]: d }, h), role: "dialog", "aria-modal": "true", children: [
1081
- /* @__PURE__ */ o("h2", { className: j.ConfirmTitle, children: e }),
1082
- /* @__PURE__ */ o("p", { className: j.ConfirmMessage, children: n }),
1083
- /* @__PURE__ */ m("div", { className: j.ConfirmActions, children: [
1084
- /* @__PURE__ */ o("button", { className: j.BtnCancel, type: "button", onClick: i, disabled: u, children: t }),
1085
- /* @__PURE__ */ o(
1119
+ return /* @__PURE__ */ t("div", { className: V.ConfirmWrapper, children: /* @__PURE__ */ m("div", { className: C(V.ConfirmContainer, { [V.Glass]: d }, h), role: "dialog", "aria-modal": "true", children: [
1120
+ /* @__PURE__ */ t("h2", { className: V.ConfirmTitle, children: e }),
1121
+ /* @__PURE__ */ t("p", { className: V.ConfirmMessage, children: n }),
1122
+ /* @__PURE__ */ m("div", { className: V.ConfirmActions, children: [
1123
+ /* @__PURE__ */ t("button", { className: V.BtnCancel, type: "button", onClick: i, disabled: u, children: o }),
1124
+ /* @__PURE__ */ t(
1086
1125
  "button",
1087
1126
  {
1088
- className: C(s ? j.BtnDanger : j.BtnConfirm),
1127
+ className: C(a ? V.BtnDanger : V.BtnConfirm),
1089
1128
  type: "button",
1090
1129
  onClick: g,
1091
1130
  disabled: u,
@@ -1095,43 +1134,43 @@ function Ts({
1095
1134
  ] })
1096
1135
  ] }) });
1097
1136
  }
1098
- const cr = "_InfoWrapper_cqv58_4", lr = "_InfoContainer_cqv58_1", ur = "_Glass_cqv58_24", dr = "_InfoTitle_cqv58_30", hr = "_InfoMessage_cqv58_38", _r = "_InfoActions_cqv58_45", fr = "_BtnClose_cqv58_52", ee = {
1099
- InfoWrapper: cr,
1100
- InfoContainer: lr,
1101
- Glass: ur,
1102
- InfoTitle: dr,
1103
- InfoMessage: hr,
1104
- InfoActions: _r,
1105
- BtnClose: fr
1137
+ const wr = "_InfoWrapper_cqv58_4", br = "_InfoContainer_cqv58_1", yr = "_Glass_cqv58_24", Nr = "_InfoTitle_cqv58_30", kr = "_InfoMessage_cqv58_38", Ir = "_InfoActions_cqv58_45", xr = "_BtnClose_cqv58_52", ne = {
1138
+ InfoWrapper: wr,
1139
+ InfoContainer: br,
1140
+ Glass: yr,
1141
+ InfoTitle: Nr,
1142
+ InfoMessage: kr,
1143
+ InfoActions: Ir,
1144
+ BtnClose: xr
1106
1145
  };
1107
- function Ds({ title: e, message: n, onClose: r, className: t, glass: s = !1 }) {
1108
- const a = B("InfoDialog", t);
1109
- return /* @__PURE__ */ o("div", { className: ee.InfoWrapper, children: /* @__PURE__ */ m("div", { className: C(ee.InfoContainer, { [ee.Glass]: s }, a), role: "dialog", "aria-modal": "true", children: [
1110
- /* @__PURE__ */ o("h2", { className: ee.InfoTitle, children: e }),
1111
- /* @__PURE__ */ o("p", { className: ee.InfoMessage, children: n }),
1112
- /* @__PURE__ */ o("div", { className: ee.InfoActions, children: /* @__PURE__ */ o("button", { className: ee.BtnClose, type: "button", onClick: r, children: "Got it" }) })
1146
+ function ja({ title: e, message: n, onClose: r, className: o, glass: a = !1 }) {
1147
+ const s = L("InfoDialog", o);
1148
+ return /* @__PURE__ */ t("div", { className: ne.InfoWrapper, children: /* @__PURE__ */ m("div", { className: C(ne.InfoContainer, { [ne.Glass]: a }, s), role: "dialog", "aria-modal": "true", children: [
1149
+ /* @__PURE__ */ t("h2", { className: ne.InfoTitle, children: e }),
1150
+ /* @__PURE__ */ t("p", { className: ne.InfoMessage, children: n }),
1151
+ /* @__PURE__ */ t("div", { className: ne.InfoActions, children: /* @__PURE__ */ t("button", { className: ne.BtnClose, type: "button", onClick: r, children: "Got it" }) })
1113
1152
  ] }) });
1114
1153
  }
1115
- function Bs({ buttons: e, containerClassName: n }) {
1116
- const r = B("ModalActions", n);
1117
- return /* @__PURE__ */ o("div", { className: r, children: e.map((t, s) => /* @__PURE__ */ o(
1154
+ function Ga({ buttons: e, containerClassName: n }) {
1155
+ const r = L("ModalActions", n);
1156
+ return /* @__PURE__ */ t("div", { className: r, children: e.map((o, a) => /* @__PURE__ */ t(
1118
1157
  "button",
1119
1158
  {
1120
- className: t.className,
1159
+ className: o.className,
1121
1160
  type: "button",
1122
- onClick: t.onClick,
1123
- disabled: t.disabled,
1124
- children: t.label
1161
+ onClick: o.onClick,
1162
+ disabled: o.disabled,
1163
+ children: o.label
1125
1164
  },
1126
- s
1165
+ a
1127
1166
  )) });
1128
1167
  }
1129
- function Es({ onClick: e, disabled: n, className: r }) {
1130
- const t = B("ModalClose", r);
1131
- return /* @__PURE__ */ o(
1168
+ function Va({ onClick: e, disabled: n, className: r }) {
1169
+ const o = L("ModalClose", r);
1170
+ return /* @__PURE__ */ t(
1132
1171
  "button",
1133
1172
  {
1134
- className: t,
1173
+ className: o,
1135
1174
  type: "button",
1136
1175
  onClick: e,
1137
1176
  disabled: n,
@@ -1147,385 +1186,385 @@ function Es({ onClick: e, disabled: n, className: r }) {
1147
1186
  strokeWidth: "1.8",
1148
1187
  strokeLinecap: "round",
1149
1188
  children: [
1150
- /* @__PURE__ */ o("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
1151
- /* @__PURE__ */ o("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
1189
+ /* @__PURE__ */ t("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
1190
+ /* @__PURE__ */ t("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
1152
1191
  ]
1153
1192
  }
1154
1193
  )
1155
1194
  }
1156
1195
  );
1157
1196
  }
1158
- const pr = "_Backdrop_1w1e3_7", mr = "_BackdropOpen_1w1e3_16", gr = "_Panel_1w1e3_21", Cr = "_Right_1w1e3_31", vr = "_Left_1w1e3_40", wr = "_Top_1w1e3_49", br = "_Bottom_1w1e3_58", yr = "_PanelOpen_1w1e3_67", Y = {
1159
- Backdrop: pr,
1160
- BackdropOpen: mr,
1161
- Panel: gr,
1162
- Right: Cr,
1163
- Left: vr,
1164
- Top: wr,
1165
- Bottom: br,
1166
- PanelOpen: yr
1167
- }, he = [];
1168
- let Nr = 1, be = !1, Se = 0;
1169
- function Ye() {
1170
- if (Se > 0) {
1171
- Se -= 1;
1197
+ const Sr = "_Backdrop_1w1e3_7", Rr = "_BackdropOpen_1w1e3_16", Tr = "_Panel_1w1e3_21", Lr = "_Right_1w1e3_31", Dr = "_Left_1w1e3_40", Br = "_Top_1w1e3_49", Ar = "_Bottom_1w1e3_58", Er = "_PanelOpen_1w1e3_67", J = {
1198
+ Backdrop: Sr,
1199
+ BackdropOpen: Rr,
1200
+ Panel: Tr,
1201
+ Right: Lr,
1202
+ Left: Dr,
1203
+ Top: Br,
1204
+ Bottom: Ar,
1205
+ PanelOpen: Er
1206
+ }, _e = [];
1207
+ let Pr = 1, ye = !1, Re = 0;
1208
+ function Ze() {
1209
+ if (Re > 0) {
1210
+ Re -= 1;
1172
1211
  return;
1173
1212
  }
1174
- const e = he.pop();
1175
- Je(), e && e.onBack();
1176
- }
1177
- function Ir() {
1178
- be || (be = !0, window.addEventListener("popstate", Ye));
1179
- }
1180
- function Je() {
1181
- he.length > 0 || !be || (be = !1, window.removeEventListener("popstate", Ye));
1182
- }
1183
- function kr(e) {
1184
- const n = Nr++;
1185
- return he.push({ handle: n, onBack: e }), Ir(), window.history.pushState({ churesOverlayBackHandle: n }, ""), n;
1186
- }
1187
- function Oe(e) {
1188
- const n = he.findIndex((t) => t.handle === e);
1189
- n === -1 || (he.splice(n, 1), Je(), window.history.state?.churesOverlayBackHandle !== e) || (Se += 1, window.history.back());
1190
- }
1191
- function xr(e, n) {
1192
- const r = x([]), t = x(n);
1193
- t.current = n, A(() => {
1194
- const s = r.current;
1195
- for (; s.length < e; )
1196
- s.push(kr(() => t.current()));
1197
- for (; s.length > e; ) {
1198
- const a = s.pop();
1199
- a !== void 0 && Oe(a);
1213
+ const e = _e.pop();
1214
+ en(), e && e.onBack();
1215
+ }
1216
+ function Mr() {
1217
+ ye || (ye = !0, window.addEventListener("popstate", Ze));
1218
+ }
1219
+ function en() {
1220
+ _e.length > 0 || !ye || (ye = !1, window.removeEventListener("popstate", Ze));
1221
+ }
1222
+ function Or(e) {
1223
+ const n = Pr++;
1224
+ return _e.push({ handle: n, onBack: e }), Mr(), window.history.pushState({ churesOverlayBackHandle: n }, ""), n;
1225
+ }
1226
+ function Fe(e) {
1227
+ const n = _e.findIndex((o) => o.handle === e);
1228
+ n === -1 || (_e.splice(n, 1), en(), window.history.state?.churesOverlayBackHandle !== e) || (Re += 1, window.history.back());
1229
+ }
1230
+ function Wr(e, n) {
1231
+ const r = x([]), o = x(n);
1232
+ o.current = n, E(() => {
1233
+ const a = r.current;
1234
+ for (; a.length < e; )
1235
+ a.push(Or(() => o.current()));
1236
+ for (; a.length > e; ) {
1237
+ const s = a.pop();
1238
+ s !== void 0 && Fe(s);
1200
1239
  }
1201
- }, [e]), A(() => () => {
1202
- const s = r.current;
1203
- for (; s.length > 0; ) {
1204
- const a = s.pop();
1205
- a !== void 0 && Oe(a);
1240
+ }, [e]), E(() => () => {
1241
+ const a = r.current;
1242
+ for (; a.length > 0; ) {
1243
+ const s = a.pop();
1244
+ s !== void 0 && Fe(s);
1206
1245
  }
1207
1246
  }, []);
1208
1247
  }
1209
- const Sr = {
1210
- top: Y.Top,
1211
- right: Y.Right,
1212
- bottom: Y.Bottom,
1213
- left: Y.Left
1248
+ const Fr = {
1249
+ top: J.Top,
1250
+ right: J.Right,
1251
+ bottom: J.Bottom,
1252
+ left: J.Left
1214
1253
  };
1215
- let Q = null, ke = 0;
1216
- function We() {
1217
- return Q || (Q = document.createElement("div"), Q.setAttribute("data-chures-side-drawer-root", ""), document.body.appendChild(Q)), Q;
1254
+ let Y = null, xe = 0;
1255
+ function He() {
1256
+ return Y || (Y = document.createElement("div"), Y.setAttribute("data-chures-side-drawer-root", ""), document.body.appendChild(Y)), Y;
1218
1257
  }
1219
- function As({ open: e, onClose: n, children: r, side: t = "right", backdropBlur: s = 0, className: a }) {
1220
- const [i, c] = I(!1), d = B("SideDrawer", a);
1221
- xr(e ? 1 : 0, n), de(() => {
1258
+ function Ka({ open: e, onClose: n, children: r, side: o = "right", backdropBlur: a = 0, className: s }) {
1259
+ const [i, c] = k(!1), d = L("SideDrawer", s);
1260
+ Wr(e ? 1 : 0, n), he(() => {
1222
1261
  if (!e) {
1223
1262
  c(!1);
1224
1263
  return;
1225
1264
  }
1226
- document.body.appendChild(We());
1265
+ document.body.appendChild(He());
1227
1266
  const l = requestAnimationFrame(() => c(!0));
1228
1267
  return () => cancelAnimationFrame(l);
1229
- }, [e]), A(() => (ke += 1, () => {
1230
- ke -= 1, ke === 0 && Q && (Q.remove(), Q = null);
1268
+ }, [e]), E(() => (xe += 1, () => {
1269
+ xe -= 1, xe === 0 && Y && (Y.remove(), Y = null);
1231
1270
  }), []);
1232
- const u = s > 0 ? { backdropFilter: `blur(${s}rem)`, WebkitBackdropFilter: `blur(${s}rem)` } : void 0;
1233
- return De(
1271
+ const u = a > 0 ? { backdropFilter: `blur(${a}rem)`, WebkitBackdropFilter: `blur(${a}rem)` } : void 0;
1272
+ return Be(
1234
1273
  /* @__PURE__ */ m($, { children: [
1235
- /* @__PURE__ */ o(
1274
+ /* @__PURE__ */ t(
1236
1275
  "div",
1237
1276
  {
1238
- className: C(Y.Backdrop, i && Y.BackdropOpen),
1277
+ className: C(J.Backdrop, i && J.BackdropOpen),
1239
1278
  style: u,
1240
1279
  onClick: n
1241
1280
  }
1242
1281
  ),
1243
- /* @__PURE__ */ o("div", { className: C(Y.Panel, Sr[t], i && Y.PanelOpen, d), children: r })
1282
+ /* @__PURE__ */ t("div", { className: C(J.Panel, Fr[o], i && J.PanelOpen, d), children: r })
1244
1283
  ] }),
1245
- We()
1284
+ He()
1246
1285
  );
1247
1286
  }
1248
- const Re = $e(!0);
1249
- function Rr() {
1250
- return Ge(Re);
1251
- }
1252
- const Lr = "_FlyoutMenuContainer_1q0ma_5", Tr = "_Backdrop_1q0ma_9", Dr = "_Panel_1q0ma_14", Br = "_Submenu_1q0ma_27", Er = "_FlyoutPanelContainer_1q0ma_41", Ar = "_Back_1q0ma_9", Mr = "_Chevron_1q0ma_68", Pr = "_MenuListContainer_1q0ma_75", Or = "_Heading_1q0ma_81", Wr = "_Divider_1q0ma_90", Fr = "_MenuRowContainer_1q0ma_98", Hr = "_Dim_1q0ma_102", qr = "_Row_1q0ma_106", Ur = "_Icon_1q0ma_135", $r = "_Label_1q0ma_140", Gr = "_Arrow_1q0ma_148", jr = "_MenuSkeletonContainer_1q0ma_156", Vr = "_MenuSkeletonRow_1q0ma_163", Kr = "_MenuSearchFieldContainer_1q0ma_191", N = {
1253
- FlyoutMenuContainer: Lr,
1254
- Backdrop: Tr,
1255
- Panel: Dr,
1256
- Submenu: Br,
1257
- FlyoutPanelContainer: Er,
1258
- Back: Ar,
1259
- Chevron: Mr,
1260
- MenuListContainer: Pr,
1261
- Heading: Or,
1262
- Divider: Wr,
1263
- MenuRowContainer: Fr,
1264
- Dim: Hr,
1265
- Row: qr,
1266
- Icon: Ur,
1267
- Label: $r,
1268
- Arrow: Gr,
1269
- MenuSkeletonContainer: jr,
1270
- MenuSkeletonRow: Vr,
1271
- MenuSearchFieldContainer: Kr
1272
- }, zr = { duration: 0.15, ease: [0.2, 0.7, 0.2, 1] };
1273
- function Fe({ item: e, menu: n, dim: r }) {
1274
- const t = Rr(), s = e.submenu;
1275
- function a(i) {
1276
- if (s) {
1277
- n.toggleSubmenuFrom(i.currentTarget, s);
1287
+ const Te = Ge(!0);
1288
+ function Hr() {
1289
+ return Ve(Te);
1290
+ }
1291
+ const qr = "_FlyoutMenuContainer_1q0ma_5", Ur = "_Backdrop_1q0ma_9", $r = "_Panel_1q0ma_14", jr = "_Submenu_1q0ma_27", Gr = "_FlyoutPanelContainer_1q0ma_41", Vr = "_Back_1q0ma_9", Kr = "_Chevron_1q0ma_68", zr = "_MenuListContainer_1q0ma_75", Xr = "_Heading_1q0ma_81", Qr = "_Divider_1q0ma_90", Yr = "_MenuRowContainer_1q0ma_98", Jr = "_Dim_1q0ma_102", Zr = "_Row_1q0ma_106", ea = "_Icon_1q0ma_135", na = "_Label_1q0ma_140", ta = "_Arrow_1q0ma_148", oa = "_MenuSkeletonContainer_1q0ma_156", ra = "_MenuSkeletonRow_1q0ma_163", aa = "_MenuSearchFieldContainer_1q0ma_191", N = {
1292
+ FlyoutMenuContainer: qr,
1293
+ Backdrop: Ur,
1294
+ Panel: $r,
1295
+ Submenu: jr,
1296
+ FlyoutPanelContainer: Gr,
1297
+ Back: Vr,
1298
+ Chevron: Kr,
1299
+ MenuListContainer: zr,
1300
+ Heading: Xr,
1301
+ Divider: Qr,
1302
+ MenuRowContainer: Yr,
1303
+ Dim: Jr,
1304
+ Row: Zr,
1305
+ Icon: ea,
1306
+ Label: na,
1307
+ Arrow: ta,
1308
+ MenuSkeletonContainer: oa,
1309
+ MenuSkeletonRow: ra,
1310
+ MenuSearchFieldContainer: aa
1311
+ }, sa = { duration: 0.15, ease: [0.2, 0.7, 0.2, 1] };
1312
+ function qe({ item: e, menu: n, dim: r }) {
1313
+ const o = Hr(), a = e.submenu;
1314
+ function s(i) {
1315
+ if (a) {
1316
+ n.toggleSubmenuFrom(i.currentTarget, a);
1278
1317
  return;
1279
1318
  }
1280
1319
  e.disabled || n.selectItem(e);
1281
1320
  }
1282
- return /* @__PURE__ */ o(se.div, { layout: t, transition: zr, className: C(N.MenuRowContainer, r && N.Dim), children: /* @__PURE__ */ m(
1283
- Qe,
1321
+ return /* @__PURE__ */ t(se.div, { layout: o, transition: sa, className: C(N.MenuRowContainer, r && N.Dim), children: /* @__PURE__ */ m(
1322
+ Ae,
1284
1323
  {
1285
1324
  variant: "unstyled",
1286
1325
  className: N.Row,
1287
1326
  disabled: e.disabled,
1288
- "aria-haspopup": s ? "menu" : void 0,
1289
- onClick: a,
1290
- onMouseEnter: s ? (i) => n.openSubmenuFrom(i.currentTarget, s) : void 0,
1291
- onMouseLeave: s ? n.closeSubmenuSoon : void 0,
1327
+ "aria-haspopup": a ? "menu" : void 0,
1328
+ onClick: s,
1329
+ onMouseEnter: a ? (i) => n.openSubmenuFrom(i.currentTarget, a) : void 0,
1330
+ onMouseLeave: a ? n.closeSubmenuSoon : void 0,
1292
1331
  children: [
1293
- e.icon && /* @__PURE__ */ o("span", { className: N.Icon, children: e.icon }),
1294
- /* @__PURE__ */ o("span", { className: N.Label, children: e.label }),
1295
- s && /* @__PURE__ */ o("span", { className: N.Arrow, children: "▸" })
1332
+ e.icon && /* @__PURE__ */ t("span", { className: N.Icon, children: e.icon }),
1333
+ /* @__PURE__ */ t("span", { className: N.Label, children: e.label }),
1334
+ a && /* @__PURE__ */ t("span", { className: N.Arrow, children: "▸" })
1296
1335
  ]
1297
1336
  }
1298
1337
  ) });
1299
1338
  }
1300
- function He({ items: e, menu: n, heading: r, rest: t }) {
1301
- const s = !!t && t.length > 0;
1339
+ function Ue({ items: e, menu: n, heading: r, rest: o }) {
1340
+ const a = !!o && o.length > 0;
1302
1341
  return /* @__PURE__ */ m("div", { className: N.MenuListContainer, children: [
1303
- r && /* @__PURE__ */ o("span", { className: N.Heading, children: r }),
1304
- e.map((a) => /* @__PURE__ */ o(Fe, { item: a, menu: n }, a.key)),
1305
- s && /* @__PURE__ */ o("div", { className: N.Divider }),
1306
- t?.map((a) => /* @__PURE__ */ o(Fe, { item: a, menu: n, dim: !0 }, a.key))
1342
+ r && /* @__PURE__ */ t("span", { className: N.Heading, children: r }),
1343
+ e.map((s) => /* @__PURE__ */ t(qe, { item: s, menu: n }, s.key)),
1344
+ a && /* @__PURE__ */ t("div", { className: N.Divider }),
1345
+ o?.map((s) => /* @__PURE__ */ t(qe, { item: s, menu: n, dim: !0 }, s.key))
1307
1346
  ] });
1308
1347
  }
1309
- function Xr({ count: e = 3 }) {
1310
- const n = je(() => Array.from({ length: Math.max(0, e) }, (r, t) => t), [e]);
1311
- return /* @__PURE__ */ o("div", { className: N.MenuSkeletonContainer, children: n.map((r) => /* @__PURE__ */ o("div", { className: N.MenuSkeletonRow, role: "presentation" }, r)) });
1348
+ function ia({ count: e = 3 }) {
1349
+ const n = Ke(() => Array.from({ length: Math.max(0, e) }, (r, o) => o), [e]);
1350
+ return /* @__PURE__ */ t("div", { className: N.MenuSkeletonContainer, children: n.map((r) => /* @__PURE__ */ t("div", { className: N.MenuSkeletonRow, role: "presentation" }, r)) });
1312
1351
  }
1313
- const Qr = { duration: 0.15, ease: [0.2, 0.7, 0.2, 1] };
1314
- function Yr({ value: e, onChange: n, placeholder: r }) {
1315
- function t(s) {
1316
- s.key === "Escape" && n("");
1352
+ const ca = { duration: 0.15, ease: [0.2, 0.7, 0.2, 1] };
1353
+ function la({ value: e, onChange: n, placeholder: r }) {
1354
+ function o(a) {
1355
+ a.key === "Escape" && n("");
1317
1356
  }
1318
- return /* @__PURE__ */ o(
1357
+ return /* @__PURE__ */ t(
1319
1358
  se.div,
1320
1359
  {
1321
1360
  className: N.MenuSearchFieldContainer,
1322
1361
  initial: { opacity: 0, height: 0 },
1323
1362
  animate: { opacity: 1, height: "auto" },
1324
1363
  exit: { opacity: 0, height: 0 },
1325
- transition: Qr,
1326
- children: /* @__PURE__ */ o(
1327
- vt,
1364
+ transition: ca,
1365
+ children: /* @__PURE__ */ t(
1366
+ Nt,
1328
1367
  {
1329
1368
  value: e,
1330
1369
  setValue: n,
1331
1370
  placeholder: r ?? "Search",
1332
1371
  autoFocus: !0,
1333
- onKeyDown: t,
1334
- startIcon: /* @__PURE__ */ o($o, { size: 14 })
1372
+ onKeyDown: o,
1373
+ startIcon: /* @__PURE__ */ t(Qt, { size: 14 })
1335
1374
  }
1336
1375
  )
1337
1376
  }
1338
1377
  );
1339
1378
  }
1340
- function Jr(e, n, r) {
1341
- const t = n.trim().toLowerCase();
1342
- if (!t) return { matches: e, rest: [] };
1343
- const s = [], a = [];
1379
+ function ua(e, n, r) {
1380
+ const o = n.trim().toLowerCase();
1381
+ if (!o) return { matches: e, rest: [] };
1382
+ const a = [], s = [];
1344
1383
  for (const i of e)
1345
- r(i).toLowerCase().includes(t) ? s.push(i) : a.push(i);
1346
- return { matches: s, rest: a };
1384
+ r(i).toLowerCase().includes(o) ? a.push(i) : s.push(i);
1385
+ return { matches: a, rest: s };
1347
1386
  }
1348
- function Zr(e) {
1387
+ function da(e) {
1349
1388
  return e instanceof HTMLElement ? e.tagName === "INPUT" || e.tagName === "TEXTAREA" || e.isContentEditable : !1;
1350
1389
  }
1351
- function es(e) {
1352
- const [n, r] = I("");
1353
- return A(() => {
1390
+ function ha(e) {
1391
+ const [n, r] = k("");
1392
+ return E(() => {
1354
1393
  if (!e) return;
1355
- function t(s) {
1356
- if (!Zr(document.activeElement)) {
1357
- if (s.key === "Backspace") {
1358
- r((a) => a.slice(0, -1));
1394
+ function o(a) {
1395
+ if (!da(document.activeElement)) {
1396
+ if (a.key === "Backspace") {
1397
+ r((s) => s.slice(0, -1));
1359
1398
  return;
1360
1399
  }
1361
- s.key.length === 1 && !s.ctrlKey && !s.metaKey && !s.altKey && (r((a) => a + s.key), s.preventDefault());
1400
+ a.key.length === 1 && !a.ctrlKey && !a.metaKey && !a.altKey && (r((s) => s + a.key), a.preventDefault());
1362
1401
  }
1363
1402
  }
1364
- return document.addEventListener("keydown", t), () => document.removeEventListener("keydown", t);
1403
+ return document.addEventListener("keydown", o), () => document.removeEventListener("keydown", o);
1365
1404
  }, [e]), { query: n, setQuery: r };
1366
1405
  }
1367
- function ns(e) {
1406
+ function _a(e) {
1368
1407
  return e.searchText !== void 0 ? e.searchText : typeof e.label == "string" ? e.label : "";
1369
1408
  }
1370
- function qe({ section: e, menu: n, onBack: r, skeletonCount: t, active: s }) {
1371
- const a = !!e.searchable && !!e.items, { query: i, setQuery: c } = es(!!s && a);
1372
- A(() => c(""), [e, c]);
1373
- const { matches: d, rest: u } = je(
1374
- () => Jr(e.items ?? [], i, ns),
1409
+ function $e({ section: e, menu: n, onBack: r, skeletonCount: o, active: a }) {
1410
+ const s = !!e.searchable && !!e.items, { query: i, setQuery: c } = ha(!!a && s);
1411
+ E(() => c(""), [e, c]);
1412
+ const { matches: d, rest: u } = Ke(
1413
+ () => ua(e.items ?? [], i, _a),
1375
1414
  [e.items, i]
1376
1415
  ), l = r ? void 0 : e.title;
1377
1416
  let h;
1378
- return e.loading ? h = /* @__PURE__ */ o(Xr, { count: t }) : e.renderPanel ? h = e.renderPanel() : a ? h = /* @__PURE__ */ o(He, { items: d, rest: u, menu: n, heading: l }) : h = /* @__PURE__ */ o(He, { items: e.items ?? [], menu: n, heading: l }), /* @__PURE__ */ m("div", { className: N.FlyoutPanelContainer, children: [
1379
- r && /* @__PURE__ */ m(Qe, { variant: "unstyled", className: N.Back, onClick: r, children: [
1380
- /* @__PURE__ */ o("span", { className: N.Chevron, children: "‹" }),
1417
+ return e.loading ? h = /* @__PURE__ */ t(ia, { count: o }) : e.renderPanel ? h = e.renderPanel() : s ? h = /* @__PURE__ */ t(Ue, { items: d, rest: u, menu: n, heading: l }) : h = /* @__PURE__ */ t(Ue, { items: e.items ?? [], menu: n, heading: l }), /* @__PURE__ */ m("div", { className: N.FlyoutPanelContainer, children: [
1418
+ r && /* @__PURE__ */ m(Ae, { variant: "unstyled", className: N.Back, onClick: r, children: [
1419
+ /* @__PURE__ */ t("span", { className: N.Chevron, children: "‹" }),
1381
1420
  e.title ?? "Back"
1382
1421
  ] }),
1383
- a && /* @__PURE__ */ o(ve, { children: i !== "" && /* @__PURE__ */ o(Yr, { value: i, onChange: c }) }),
1422
+ s && /* @__PURE__ */ t(we, { children: i !== "" && /* @__PURE__ */ t(la, { value: i, onChange: c }) }),
1384
1423
  h
1385
1424
  ] });
1386
1425
  }
1387
- function ts(e, n, r, t, s) {
1388
- const a = r.width - 2 * t, i = Math.max(t, r.width - t - n.width), c = Math.min(Math.max(e.right - n.width, t), i), d = e.top - s - t, u = r.height - t - e.bottom - s;
1426
+ function fa(e, n, r, o, a) {
1427
+ const s = r.width - 2 * o, i = Math.max(o, r.width - o - n.width), c = Math.min(Math.max(e.right - n.width, o), i), d = e.top - a - o, u = r.height - o - e.bottom - a;
1389
1428
  if (n.height > d && u > d)
1390
- return { top: e.bottom + s, left: c, maxHeight: u, maxWidth: a };
1391
- const l = e.top - s - n.height;
1392
- return { top: l < t ? t : l, left: c, maxHeight: d, maxWidth: a };
1429
+ return { top: e.bottom + a, left: c, maxHeight: u, maxWidth: s };
1430
+ const l = e.top - a - n.height;
1431
+ return { top: l < o ? o : l, left: c, maxHeight: d, maxWidth: s };
1393
1432
  }
1394
- function os(e, n, r, t, s) {
1395
- if (s) return { side: "collapse" };
1396
- const a = e.right + n.width <= r.width - t, i = e.left - n.width, c = a ? "right" : i >= t ? "left" : null;
1433
+ function pa(e, n, r, o, a) {
1434
+ if (a) return { side: "collapse" };
1435
+ const s = e.right + n.width <= r.width - o, i = e.left - n.width, c = s ? "right" : i >= o ? "left" : null;
1397
1436
  if (!c) return { side: "collapse" };
1398
- const d = c === "right" ? e.right : i, u = r.height - t - e.top, l = e.bottom - t;
1437
+ const d = c === "right" ? e.right : i, u = r.height - o - e.top, l = e.bottom - o;
1399
1438
  if (u >= n.height || u >= l)
1400
1439
  return { side: c, left: d, top: e.top, maxHeight: u };
1401
- const h = Math.max(e.bottom - n.height, t);
1440
+ const h = Math.max(e.bottom - n.height, o);
1402
1441
  return { side: c, left: d, top: h, maxHeight: l };
1403
1442
  }
1404
- function Ze(e, n, r) {
1405
- const [t, s] = I(null), a = x(n), i = x(r);
1406
- a.current = n, i.current = r;
1443
+ function nn(e, n, r) {
1444
+ const [o, a] = k(null), s = x(n), i = x(r);
1445
+ s.current = n, i.current = r;
1407
1446
  const c = x(null);
1408
- return de(() => {
1447
+ return he(() => {
1409
1448
  if (!e) {
1410
- c.current = null, s(null);
1449
+ c.current = null, a(null);
1411
1450
  return;
1412
1451
  }
1413
1452
  let d = 0;
1414
1453
  function u() {
1415
- const l = a.current();
1454
+ const l = s.current();
1416
1455
  if (l !== null) {
1417
1456
  const h = c.current;
1418
- (h === null || !i.current(h, l)) && (c.current = l, s(l));
1457
+ (h === null || !i.current(h, l)) && (c.current = l, a(l));
1419
1458
  }
1420
1459
  d = requestAnimationFrame(u);
1421
1460
  }
1422
1461
  return u(), () => {
1423
- cancelAnimationFrame(d), c.current = null, s(null);
1462
+ cancelAnimationFrame(d), c.current = null, a(null);
1424
1463
  };
1425
- }, [e]), t;
1464
+ }, [e]), o;
1426
1465
  }
1427
- const en = 8, rs = 8, ss = 150, as = 3;
1428
- function nn() {
1466
+ const tn = 8, ma = 8, ga = 150, Ca = 3;
1467
+ function on() {
1429
1468
  return { width: window.innerWidth, height: window.innerHeight };
1430
1469
  }
1431
1470
  function Le() {
1432
1471
  return window.matchMedia("(orientation: portrait)").matches;
1433
1472
  }
1434
- function tn(e) {
1473
+ function rn(e) {
1435
1474
  return { width: e.scrollWidth || e.offsetWidth, height: e.scrollHeight || e.offsetHeight };
1436
1475
  }
1437
- function is(e, n) {
1476
+ function va(e, n) {
1438
1477
  return e.top === n.top && e.left === n.left && e.maxHeight === n.maxHeight && e.maxWidth === n.maxWidth;
1439
1478
  }
1440
- function cs(e, n) {
1479
+ function wa(e, n) {
1441
1480
  return e === "collapse" || n === "collapse" ? e === n : e.side === n.side && e.top === n.top && e.left === n.left && e.maxHeight === n.maxHeight;
1442
1481
  }
1443
- function ls(e, n, r) {
1444
- return Ze(
1482
+ function ba(e, n, r) {
1483
+ return nn(
1445
1484
  e,
1446
1485
  () => {
1447
- const t = n.current, s = r.current;
1448
- return !t || !s ? null : ts(t.getBoundingClientRect(), tn(s), nn(), en, rs);
1486
+ const o = n.current, a = r.current;
1487
+ return !o || !a ? null : fa(o.getBoundingClientRect(), rn(a), on(), tn, ma);
1449
1488
  },
1450
- is
1489
+ va
1451
1490
  );
1452
1491
  }
1453
- function us(e, n, r) {
1454
- return Ze(
1492
+ function ya(e, n, r) {
1493
+ return nn(
1455
1494
  e,
1456
1495
  () => {
1457
- const t = n.current, s = r.current;
1458
- if (!t || !s) return null;
1459
- const a = os(s.getBoundingClientRect(), tn(t), nn(), en, Le());
1460
- return a.side === "collapse" ? "collapse" : a;
1496
+ const o = n.current, a = r.current;
1497
+ if (!o || !a) return null;
1498
+ const s = pa(a.getBoundingClientRect(), rn(o), on(), tn, Le());
1499
+ return s.side === "collapse" ? "collapse" : s;
1461
1500
  },
1462
- cs
1501
+ wa
1463
1502
  );
1464
1503
  }
1465
- function ds(e) {
1466
- const { anchorRef: n, panelRef: r, submenuRef: t, open: s, onOpenChange: a } = e, [i, c] = I(!1), d = s ?? i, [u, l] = I([]), [h, g] = I(null), b = x(null), w = x(void 0), S = E((k) => {
1467
- c(k), a?.(k);
1468
- }, [a]), O = E((k) => {
1469
- g(null), l((D) => D.length >= as ? D : [...D, k]);
1504
+ function Na(e) {
1505
+ const { anchorRef: n, panelRef: r, submenuRef: o, open: a, onOpenChange: s } = e, [i, c] = k(!1), d = a ?? i, [u, l] = k([]), [h, g] = k(null), b = x(null), w = x(void 0), S = A((I) => {
1506
+ c(I), s?.(I);
1507
+ }, [s]), W = A((I) => {
1508
+ g(null), l((B) => B.length >= Ca ? B : [...B, I]);
1470
1509
  }, []);
1471
- A(() => {
1510
+ E(() => {
1472
1511
  d || (l([]), g(null), b.current = null, w.current && clearTimeout(w.current));
1473
1512
  }, [d]);
1474
- const R = E((k, D) => {
1475
- if (w.current && clearTimeout(w.current), b.current = k, Le()) {
1476
- O(D);
1513
+ const R = A((I, B) => {
1514
+ if (w.current && clearTimeout(w.current), b.current = I, Le()) {
1515
+ W(B);
1477
1516
  return;
1478
1517
  }
1479
- g({ section: D, placement: null });
1480
- }, [O]), _ = E((k, D) => {
1518
+ g({ section: B, placement: null });
1519
+ }, [W]), _ = A((I, B) => {
1481
1520
  if (Le()) {
1482
- u[u.length - 1] === D ? l((z) => z.slice(0, -1)) : R(k, D);
1521
+ u[u.length - 1] === B ? l((X) => X.slice(0, -1)) : R(I, B);
1483
1522
  return;
1484
1523
  }
1485
- h && h.section === D ? g(null) : R(k, D);
1486
- }, [u, h, R]), v = E(() => {
1487
- w.current && clearTimeout(w.current), w.current = setTimeout(() => g(null), ss);
1488
- }, []), L = E(() => {
1524
+ h && h.section === B ? g(null) : R(I, B);
1525
+ }, [u, h, R]), v = A(() => {
1526
+ w.current && clearTimeout(w.current), w.current = setTimeout(() => g(null), ga);
1527
+ }, []), T = A(() => {
1489
1528
  w.current && clearTimeout(w.current);
1490
- }, []), y = us(!!h, t, b), W = ls(d, n, r);
1491
- A(() => {
1529
+ }, []), y = ya(!!h, o, b), F = ba(d, n, r);
1530
+ E(() => {
1492
1531
  if (!(!h || !y)) {
1493
1532
  if (y === "collapse") {
1494
- O(h.section);
1533
+ W(h.section);
1495
1534
  return;
1496
1535
  }
1497
1536
  h.placement !== y && g({ section: h.section, placement: y });
1498
1537
  }
1499
- }, [y, h, O]);
1500
- const T = E(() => l((k) => k.slice(0, -1)), []), M = E(() => S(!1), [S]), G = E(() => S(!d), [S, d]), J = E((k) => {
1501
- k.onSelect?.(), S(!1);
1538
+ }, [y, h, W]);
1539
+ const D = A(() => l((I) => I.slice(0, -1)), []), P = A(() => S(!1), [S]), j = A(() => S(!d), [S, d]), Z = A((I) => {
1540
+ I.onSelect?.(), S(!1);
1502
1541
  }, [S]);
1503
1542
  return {
1504
1543
  open: d,
1505
- toggle: G,
1506
- close: M,
1507
- back: T,
1508
- selectItem: J,
1544
+ toggle: j,
1545
+ close: P,
1546
+ back: D,
1547
+ selectItem: Z,
1509
1548
  openSubmenuFrom: R,
1510
1549
  toggleSubmenuFrom: _,
1511
1550
  closeSubmenuSoon: v,
1512
- holdSubmenu: L,
1551
+ holdSubmenu: T,
1513
1552
  frame: u[u.length - 1] ?? null,
1514
- menuPlacement: W,
1553
+ menuPlacement: F,
1515
1554
  submenu: h
1516
1555
  };
1517
1556
  }
1518
- const Ue = { duration: 0.15, ease: [0.2, 0.7, 0.2, 1] };
1519
- function Ms(e) {
1520
- const { anchorRef: n, open: r, onClose: t, items: s, rootTitle: a, skeletonCount: i } = e, c = x(null), d = x(null);
1557
+ const je = { duration: 0.15, ease: [0.2, 0.7, 0.2, 1] };
1558
+ function za(e) {
1559
+ const { anchorRef: n, open: r, onClose: o, items: a, rootTitle: s, skeletonCount: i } = e, c = x(null), d = x(null);
1521
1560
  function u(w) {
1522
- w || t();
1561
+ w || o();
1523
1562
  }
1524
- const l = ds({ anchorRef: n, panelRef: c, submenuRef: d, open: r, onOpenChange: u }), h = l.frame ?? { title: a, items: s, searchable: e.searchable }, g = l.menuPlacement, b = l.submenu?.placement ?? null;
1525
- return De(
1563
+ const l = Na({ anchorRef: n, panelRef: c, submenuRef: d, open: r, onOpenChange: u }), h = l.frame ?? { title: s, items: a, searchable: e.searchable }, g = l.menuPlacement, b = l.submenu?.placement ?? null;
1564
+ return Be(
1526
1565
  /* @__PURE__ */ m("div", { className: N.FlyoutMenuContainer, children: [
1527
- r && /* @__PURE__ */ o("div", { className: N.Backdrop, onClick: t }),
1528
- /* @__PURE__ */ o(ve, { children: r && /* @__PURE__ */ o(
1566
+ r && /* @__PURE__ */ t("div", { className: N.Backdrop, onClick: o }),
1567
+ /* @__PURE__ */ t(we, { children: r && /* @__PURE__ */ t(
1529
1568
  se.div,
1530
1569
  {
1531
1570
  ref: c,
@@ -1534,9 +1573,9 @@ function Ms(e) {
1534
1573
  initial: { opacity: 0, scale: 0.94, y: 6 },
1535
1574
  animate: { opacity: 1, scale: 1, y: 0 },
1536
1575
  exit: { opacity: 0, scale: 0.94, y: 6 },
1537
- transition: Ue,
1538
- children: /* @__PURE__ */ o(Re.Provider, { value: !!g, children: /* @__PURE__ */ o(
1539
- qe,
1576
+ transition: je,
1577
+ children: /* @__PURE__ */ t(Te.Provider, { value: !!g, children: /* @__PURE__ */ t(
1578
+ $e,
1540
1579
  {
1541
1580
  section: h,
1542
1581
  menu: l,
@@ -1548,7 +1587,7 @@ function Ms(e) {
1548
1587
  },
1549
1588
  "flyout-panel"
1550
1589
  ) }),
1551
- /* @__PURE__ */ o(ve, { children: r && l.submenu && /* @__PURE__ */ o(
1590
+ /* @__PURE__ */ t(we, { children: r && l.submenu && /* @__PURE__ */ t(
1552
1591
  se.div,
1553
1592
  {
1554
1593
  ref: d,
@@ -1559,9 +1598,9 @@ function Ms(e) {
1559
1598
  initial: { opacity: 0, scale: 0.94, x: 6 },
1560
1599
  animate: { opacity: 1, scale: 1, x: 0 },
1561
1600
  exit: { opacity: 0, scale: 0.94, x: 6 },
1562
- transition: Ue,
1563
- children: /* @__PURE__ */ o(Re.Provider, { value: !!b, children: /* @__PURE__ */ o(
1564
- qe,
1601
+ transition: je,
1602
+ children: /* @__PURE__ */ t(Te.Provider, { value: !!b, children: /* @__PURE__ */ t(
1603
+ $e,
1565
1604
  {
1566
1605
  section: l.submenu.section,
1567
1606
  menu: l,
@@ -1576,124 +1615,125 @@ function Ms(e) {
1576
1615
  document.body
1577
1616
  );
1578
1617
  }
1579
- function Ps({ classNames: e, children: n }) {
1580
- return /* @__PURE__ */ o(Ve.Provider, { value: e, children: n });
1618
+ function Xa({ classNames: e, children: n }) {
1619
+ return /* @__PURE__ */ t(ze.Provider, { value: e, children: n });
1581
1620
  }
1582
- var Te = /* @__PURE__ */ ((e) => (e[e.OK = 0] = "OK", e[e.CANCELLED = 1] = "CANCELLED", e[e.UNKNOWN = 2] = "UNKNOWN", e[e.INVALID_ARGUMENT = 3] = "INVALID_ARGUMENT", e[e.DEADLINE_EXCEEDED = 4] = "DEADLINE_EXCEEDED", e[e.NOT_FOUND = 5] = "NOT_FOUND", e[e.ALREADY_EXISTS = 6] = "ALREADY_EXISTS", e[e.PERMISSION_DENIED = 7] = "PERMISSION_DENIED", e[e.RESOURCE_EXHAUSTED = 8] = "RESOURCE_EXHAUSTED", e[e.FAILED_PRECONDITION = 9] = "FAILED_PRECONDITION", e[e.ABORTED = 10] = "ABORTED", e[e.OUT_OF_RANGE = 11] = "OUT_OF_RANGE", e[e.UNIMPLEMENTED = 12] = "UNIMPLEMENTED", e[e.INTERNAL = 13] = "INTERNAL", e[e.UNAVAILABLE = 14] = "UNAVAILABLE", e[e.DATA_LOSS = 15] = "DATA_LOSS", e[e.UNAUTHENTICATED = 16] = "UNAUTHENTICATED", e))(Te || {});
1583
- const hs = "type.googleapis.com/google.rpc.ErrorInfo", _s = "type.googleapis.com/google.rpc.BadRequest", fs = "type.googleapis.com/google.rpc.PreconditionFailure";
1584
- function ge(e) {
1621
+ var De = /* @__PURE__ */ ((e) => (e[e.OK = 0] = "OK", e[e.CANCELLED = 1] = "CANCELLED", e[e.UNKNOWN = 2] = "UNKNOWN", e[e.INVALID_ARGUMENT = 3] = "INVALID_ARGUMENT", e[e.DEADLINE_EXCEEDED = 4] = "DEADLINE_EXCEEDED", e[e.NOT_FOUND = 5] = "NOT_FOUND", e[e.ALREADY_EXISTS = 6] = "ALREADY_EXISTS", e[e.PERMISSION_DENIED = 7] = "PERMISSION_DENIED", e[e.RESOURCE_EXHAUSTED = 8] = "RESOURCE_EXHAUSTED", e[e.FAILED_PRECONDITION = 9] = "FAILED_PRECONDITION", e[e.ABORTED = 10] = "ABORTED", e[e.OUT_OF_RANGE = 11] = "OUT_OF_RANGE", e[e.UNIMPLEMENTED = 12] = "UNIMPLEMENTED", e[e.INTERNAL = 13] = "INTERNAL", e[e.UNAVAILABLE = 14] = "UNAVAILABLE", e[e.DATA_LOSS = 15] = "DATA_LOSS", e[e.UNAUTHENTICATED = 16] = "UNAUTHENTICATED", e))(De || {});
1622
+ const ka = "type.googleapis.com/google.rpc.ErrorInfo", Ia = "type.googleapis.com/google.rpc.BadRequest", xa = "type.googleapis.com/google.rpc.PreconditionFailure";
1623
+ function Ce(e) {
1585
1624
  return typeof e == "object" && e !== null;
1586
1625
  }
1587
- function V(e) {
1626
+ function K(e) {
1588
1627
  return typeof e == "string" ? e : "";
1589
1628
  }
1590
- function ps(e) {
1591
- if (!ge(e))
1629
+ function Sa(e) {
1630
+ if (!Ce(e))
1592
1631
  return { kind: "Unknown", typeUrl: "", raw: e };
1593
- const n = V(e["@type"]);
1632
+ const n = K(e["@type"]);
1594
1633
  switch (n) {
1595
- case hs: {
1596
- const r = ge(e.metadata) ? e.metadata : {}, t = {};
1597
- for (const s of Object.keys(r))
1598
- t[s] = V(r[s]);
1634
+ case ka: {
1635
+ const r = Ce(e.metadata) ? e.metadata : {}, o = {};
1636
+ for (const a of Object.keys(r))
1637
+ o[a] = K(r[a]);
1599
1638
  return {
1600
1639
  kind: "ErrorInfo",
1601
- reason: V(e.reason),
1602
- domain: V(e.domain),
1603
- metadata: t
1640
+ reason: K(e.reason),
1641
+ domain: K(e.domain),
1642
+ metadata: o
1604
1643
  };
1605
1644
  }
1606
- case _s:
1607
- return { kind: "BadRequest", fieldViolations: (Array.isArray(e.fieldViolations) ? e.fieldViolations : []).map((s) => {
1608
- const a = ge(s) ? s : {};
1645
+ case Ia:
1646
+ return { kind: "BadRequest", fieldViolations: (Array.isArray(e.fieldViolations) ? e.fieldViolations : []).map((a) => {
1647
+ const s = Ce(a) ? a : {};
1609
1648
  return {
1610
- field: V(a.field),
1611
- description: V(a.description)
1649
+ field: K(s.field),
1650
+ description: K(s.description)
1612
1651
  };
1613
1652
  }) };
1614
- case fs:
1615
- return { kind: "PreconditionFailure", violations: (Array.isArray(e.violations) ? e.violations : []).map((s) => {
1616
- const a = ge(s) ? s : {};
1653
+ case xa:
1654
+ return { kind: "PreconditionFailure", violations: (Array.isArray(e.violations) ? e.violations : []).map((a) => {
1655
+ const s = Ce(a) ? a : {};
1617
1656
  return {
1618
- type: V(a.type),
1619
- subject: V(a.subject),
1620
- description: V(a.description)
1657
+ type: K(s.type),
1658
+ subject: K(s.subject),
1659
+ description: K(s.description)
1621
1660
  };
1622
1661
  }) };
1623
1662
  default:
1624
1663
  return { kind: "Unknown", typeUrl: n, raw: e };
1625
1664
  }
1626
1665
  }
1627
- function Os(e) {
1666
+ function Qa(e) {
1628
1667
  return e.kind === "ErrorInfo";
1629
1668
  }
1630
- function Ws(e) {
1669
+ function Ya(e) {
1631
1670
  return e.kind === "BadRequest";
1632
1671
  }
1633
- function Fs(e) {
1672
+ function Ja(e) {
1634
1673
  return e.kind === "PreconditionFailure";
1635
1674
  }
1636
- class Ce extends Error {
1675
+ class ve extends Error {
1637
1676
  constructor(n) {
1638
1677
  super(n.title), this.isRetryable = n.isRetryable ?? !1, this.grpcCode = n.grpcCode, this.details = n.details ?? [];
1639
1678
  }
1640
1679
  }
1641
- function Hs(e) {
1642
- if (e instanceof Ce) return e;
1680
+ function Za(e) {
1681
+ if (e instanceof ve) return e;
1643
1682
  if (e instanceof Error && e.message === "Failed to fetch")
1644
- return new Ce({ title: "Server unavailable. Try again later", isRetryable: !0 });
1683
+ return new ve({ title: "Server unavailable. Try again later", isRetryable: !0 });
1645
1684
  if (typeof e == "object" && e !== null && "code" in e) {
1646
- const n = e, r = n.code === Te.UNAVAILABLE || n.code === Te.INTERNAL, t = (n.details ?? []).map(ps);
1647
- return new Ce({ title: n.message, isRetryable: r, grpcCode: n.code, details: t });
1685
+ const n = e, r = n.code === De.UNAVAILABLE || n.code === De.INTERNAL, o = (n.details ?? []).map(Sa);
1686
+ return new ve({ title: n.message, isRetryable: r, grpcCode: n.code, details: o });
1648
1687
  }
1649
- return new Ce({ title: String(e), isRetryable: !1 });
1688
+ return new ve({ title: String(e), isRetryable: !1 });
1650
1689
  }
1651
1690
  export {
1652
- Rs as AvatarFallbackIcon,
1653
- _s as BAD_REQUEST_TYPE_URL,
1654
- Qe as Button,
1655
- xs as Checkbox,
1656
- Mt as CheckmarkIcon,
1657
- Uo as ChevronDownIcon,
1658
- Ps as ChuresConfigProvider,
1659
- Ts as ConfirmDialog,
1660
- Ls as Dropdown,
1661
- Wo as DropdownCheckmark,
1662
- hs as ERROR_INFO_TYPE_URL,
1663
- Ss as EditPencilIcon,
1664
- Te as Errors,
1665
- Ms as FlyoutMenu,
1666
- Ds as InfoDialog,
1667
- vt as Input,
1668
- Fn as Loader,
1669
- bs as LoadingWrapper,
1670
- Re as MenuMeasuredContext,
1671
- Yr as MenuSearchField,
1672
- Xr as MenuSkeleton,
1673
- Bs as ModalActions,
1674
- Es as ModalClose,
1675
- fs as PRECONDITION_FAILURE_TYPE_URL,
1676
- $o as SearchIcon,
1677
- ks as SegmentedControl,
1678
- Ce as ServiceError,
1679
- As as SideDrawer,
1680
- ys as TelegramAuth,
1681
- Xn as TelegramSignInButton,
1682
- Ns as Toaster,
1683
- Is as Toggle,
1684
- Ws as isBadRequest,
1685
- Os as isErrorInfo,
1686
- Fs as isPreconditionFailure,
1687
- ns as menuItemText,
1688
- ps as parseErrorDetail,
1689
- Hs as parseGrpcError,
1690
- Jr as partitionBySubstring,
1691
- Oe as popOverlayBack,
1692
- kr as pushOverlayBack,
1693
- xr as useBackableOverlay,
1694
- B as useComponentClassName,
1695
- Rr as useMenuMeasured,
1696
- $n as useTelegramLogin,
1697
- Ke as useToaster,
1698
- es as useTypeToSearch
1691
+ Fa as Accordion,
1692
+ Wa as AvatarFallbackIcon,
1693
+ Ia as BAD_REQUEST_TYPE_URL,
1694
+ Ae as Button,
1695
+ qa as Checkbox,
1696
+ Xt as CheckmarkIcon,
1697
+ Qe as ChevronDownIcon,
1698
+ Xa as ChuresConfigProvider,
1699
+ $a as ConfirmDialog,
1700
+ Ua as Dropdown,
1701
+ sr as DropdownCheckmark,
1702
+ ka as ERROR_INFO_TYPE_URL,
1703
+ Oa as EditPencilIcon,
1704
+ De as Errors,
1705
+ za as FlyoutMenu,
1706
+ ja as InfoDialog,
1707
+ Nt as Input,
1708
+ Un as Loader,
1709
+ Aa as LoadingWrapper,
1710
+ Te as MenuMeasuredContext,
1711
+ la as MenuSearchField,
1712
+ ia as MenuSkeleton,
1713
+ Ga as ModalActions,
1714
+ Va as ModalClose,
1715
+ xa as PRECONDITION_FAILURE_TYPE_URL,
1716
+ Qt as SearchIcon,
1717
+ Ha as SegmentedControl,
1718
+ ve as ServiceError,
1719
+ Ka as SideDrawer,
1720
+ Ea as TelegramAuth,
1721
+ Jn as TelegramSignInButton,
1722
+ Pa as Toaster,
1723
+ Ma as Toggle,
1724
+ Ya as isBadRequest,
1725
+ Qa as isErrorInfo,
1726
+ Ja as isPreconditionFailure,
1727
+ _a as menuItemText,
1728
+ Sa as parseErrorDetail,
1729
+ Za as parseGrpcError,
1730
+ ua as partitionBySubstring,
1731
+ Fe as popOverlayBack,
1732
+ Or as pushOverlayBack,
1733
+ Wr as useBackableOverlay,
1734
+ L as useComponentClassName,
1735
+ Hr as useMenuMeasured,
1736
+ Vn as useTelegramLogin,
1737
+ Xe as useToaster,
1738
+ ha as useTypeToSearch
1699
1739
  };