@bluealba/pae-ui-react-core 4.6.0-integration-css.408 → 4.6.0-integration-css.409

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,5 +1,5 @@
1
1
  globalThis.__PAE_UI_CORE_CSS__ = ".container__zBqbk{display:flex;align-items:center;justify-content:center;gap:16px;width:100%;cursor:pointer;height:var(--pae-shell-apps-menu-item-size);padding:8px calc((var(--pae-shell-navbar--width) - var(--pae-shell-apps-menu-icon-size)) / 2)}.container__zBqbk.expanded__EbsIr{justify-content:flex-start}.container__zBqbk .label__cdMnm{flex:1;text-align:left;font-size:var(--pae-shell-apps-menu-item-font-size);font-weight:var(--pae-shell-apps-menu-item-font-weight);line-height:21px;color:var(--pae-shell-apps-menu-selected-item-text-color)}@keyframes spinner-rotation__wUmPV{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.spinner__fakUN{position:relative;display:flex;transition:.3s;width:var(--icon-size);height:var(--icon-size)}.spinner__fakUN:before{content:\"\";position:absolute;top:50%;left:50%;width:var(--icon-size);height:var(--icon-size);margin-top:calc(var(--icon-size) / -2);margin-left:calc(var(--icon-size) / -2);border:2px solid transparent;box-sizing:border-box;border-radius:50%;animation:spinner-rotation__wUmPV .6s linear infinite;display:block}.button__8FA9H{all:unset;padding:var(--platform-button-base-padding);border-radius:var(--platform-button-base-border-radius);box-shadow:var(--platform-button-base-box-shadow);font-size:var(--platform-button-base-font-size);line-height:var(--platform-button-base-line-height);height:var(--platform-button-base-height);font-weight:600;outline:none;border:none;cursor:pointer;transition:width .2s ease-in;display:flex;align-items:center;gap:8px;--icon-size: 12px}.button__8FA9H:disabled{cursor:not-allowed;opacity:.5}.button--contained-primary__stkTx{background-color:var(--platform-button-contained-primary-background-color);color:var(--platform-button-contained-primary-color)}.button--contained-primary__stkTx .spinner__fakUN:before{border-top-color:var(--platform-button-contained-primary-color);border-right-color:var(--platform-button-contained-primary-color)}.button--outlined-primary__KZ1ww{background-color:transparent;color:var(--platform-button-outlined-primary-color);border:1px solid var(--platform-button-outlined-primary-color);height:calc(var(--platform-button-base-height) - 2px)}.button--outlined-primary__KZ1ww .spinner__fakUN:before{border-top-color:var(--platform-button-outlined-primary-color);border-right-color:var(--platform-button-outlined-primary-color)}.button--text-primary__GLTfm{background-color:transparent;color:var(--platform-button-text-primary-color);box-shadow:none}.button--text-primary__GLTfm .spinner__fakUN:before{border-top-color:var(--platform-button-text-primary-color);border-right-color:var(--platform-button-text-primary-color)}.button--contained-danger__L9ehT{background-color:var(--platform-button-contained-danger-background-color);color:var(--platform-button-contained-danger-color)}.button--contained-danger__L9ehT .spinner__fakUN:before{border-top-color:var(--platform-button-contained-danger-color);border-right-color:var(--platform-button-contained-danger-color)}.button--outlined-danger__eoYLd{background-color:transparent;color:var(--platform-button-outlined-danger-color);border:1px solid var(--platform-button-outlined-danger-color);height:calc(var(--platform-button-base-height) - 2px)}.button--outlined-danger__eoYLd .spinner__fakUN:before{border-top-color:var(--platform-button-outlined-danger-color);border-right-color:var(--platform-button-outlined-danger-color)}.button--text-danger__Sw-ha{background-color:transparent;color:var(--platform-button-text-danger-color);box-shadow:none}.button--text-danger__Sw-ha .spinner__fakUN:before{border-top-color:var(--platform-button-text-danger-color);border-right-color:var(--platform-button-text-danger-color)}.icon__--umH{width:var(--icon-size);height:var(--icon-size)}.Badges__5jpum{display:flex;gap:10px;margin-top:8px}.Badge__95MWM{display:flex;flex-direction:row;justify-content:center;align-items:center;text-align:center;color:var(--admin-ui-badge-color);padding:var(--admin-ui-badge-padding);background:var(--admin-ui-badge-background-color);border:1px solid var(--admin-ui-badge-color);border-radius:var(--admin-ui-badge-border-radius)}.Badge--primary__Rx-bS{--admin-ui-badge-background-color: var(--admin-ui-primary-color);--admin-ui-badge-color: #ffffff}.Badge--secondary__d92bT{--admin-ui-badge-background-color: var(--admin-ui-background-color-light);--admin-ui-badge-color: var(--admin-ui-secondary-text-color)}.Badge--success__Kdo98{--admin-ui-badge-background-color: var(--admin-ui-success-color-light);--admin-ui-badge-color: var(--admin-ui-success-color)}.Badge--warning__bf-Nn{--admin-ui-badge-background-color: var(--admin-ui-warning-color-light);--admin-ui-badge-color: var(--admin-ui-warning-color)}.Badge--danger__HTj39{--admin-ui-badge-background-color: var(--admin-ui-danger-color-light);--admin-ui-badge-color: var(--admin-ui-danger-color)}.Badge--small__y93Pj{font-size:var(--admin-ui-badge-font-size);line-height:var(--admin-ui-badge-line-height)}.Badge--regular__aT5AL{font-size:calc(1.25 * var(--admin-ui-badge-font-size));line-height:calc(1.25 * var(--admin-ui-badge-line-height))}.Badge--large__wORCH{font-size:calc(1.5 * var(--admin-ui-badge-font-size));line-height:calc(1.5 * var(--admin-ui-badge-line-height))}.CopyToClipboardButton__2Nd2m:hover{cursor:pointer}.FieldGroup__Q2JCV{margin-bottom:1em}.FieldGroup--horizontal__kpfL1{display:grid;grid-template-columns:max-content 1fr;grid-gap:1em;align-items:center;height:100%}.FieldGroup--vertical__FLo-Q{display:grid;grid-template-columns:1fr;grid-gap:4px}.Input__uS0sb{box-sizing:border-box;margin:0;font-family:inherit;line-height:inherit;width:100%;padding:10px;border:1px solid var(--platform-input-border-color);background-color:var(--platform-input-background-color);color:var(--platform-input-color);border-radius:8px;font-size:1em}.Input__uS0sb:focus{outline:1px solid var(--platform-input-focus-border-color)}.Input__uS0sb.Error__-DQpw{border-color:var(--platform-color-danger)}.Error__N4OP5{width:100%;min-height:15px;color:var(--platform-color-danger);font-size:1em}.Label__VYUvW{font-size:1em;font-weight:400;color:var(--platform-label-color)}.Label__VYUvW.Error__Eu6DI{color:var(--platform-color-danger)}.Select__giqpe{box-sizing:border-box;width:100%;position:relative}.Select__giqpe select{box-sizing:border-box;margin:0;font-family:inherit;line-height:inherit;text-transform:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;color:var(--platform-input-color);font-size:14px;background-color:var(--platform-input-background-color);border:1px solid var(--platform-input-border-color);border-radius:8px;cursor:pointer;padding:10px}.Select__giqpe select:focus{outline:1px solid var(--platform-input-focus-border-color)}.Chevron__YvhBd{position:absolute;right:1em;top:50%;transform:translateY(-50%);pointer-events:none}.Container__xcHXp{display:flex;flex-direction:column;gap:8px}.Label__0cZB9{font-size:1em;font-weight:600;color:var(--platform-input-color)}.HelperText__m1nA9{font-size:.875em;color:var(--platform-text-secondary-color);margin-top:-4px}.Trigger__AyFUd{box-sizing:border-box;margin:0;font-family:inherit;line-height:inherit;text-transform:none;text-align:left;display:flex;align-items:center;justify-content:space-between;width:100%;padding:10px;background-color:var(--platform-input-background-color);border:1px solid var(--platform-input-border-color);border-radius:8px;font-size:1em;color:var(--platform-input-color);cursor:pointer;transition:all .2s}.Trigger__AyFUd:hover{border-color:var(--platform-input-focus-border-color)}.Trigger__AyFUd:focus{outline:none;border-color:var(--platform-input-focus-border-color)}.Trigger__AyFUd[data-disabled]{opacity:.5;cursor:not-allowed}.Trigger__AyFUd[data-disabled]:hover{border-color:var(--platform-input-border-color)}.Trigger__AyFUd[data-placeholder]{color:var(--platform-text-secondary-color)}.TriggerIcon__aygFG{display:flex;align-items:center;color:var(--platform-text-primary-color)}.Content__llztG{overflow:hidden;background-color:var(--platform-input-background-color);border:1px solid var(--platform-input-border-color);border-radius:8px;box-shadow:0 4px 16px #0000001a;z-index:99999;min-width:var(--radix-select-trigger-width)}.Viewport__COtSL{padding:4px}.Item__XN1-2{box-sizing:border-box;display:flex;align-items:center;justify-content:flex-start;gap:8px;padding:10px 12px;font-size:1em;border-radius:4px;cursor:pointer;-webkit-user-select:none;user-select:none;outline:none;position:relative;color:var(--platform-input-color)}.Item__XN1-2[data-highlighted]{background-color:#0000000d}.Item__XN1-2[data-disabled]{opacity:.5;pointer-events:none}.Item__XN1-2[data-state=checked]{font-weight:500}.ItemIndicatorContainer__EQH-X{display:flex;align-items:center;justify-content:center;width:16px;height:16px;flex-shrink:0}.ItemIndicator__bySSc{display:flex;align-items:center;justify-content:center;color:var(--platform-input-color)}.TextArea__pa-A0{box-sizing:border-box;margin:0;font-family:inherit;font-size:1em;line-height:inherit;resize:vertical;width:100%;height:100%;background-clip:padding-box;padding:10px;border:1px solid var(--platform-input-border-color);background-color:var(--platform-input-background-color);color:var(--platform-input-color);border-radius:8px;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}.TextArea__pa-A0:focus{outline:1px solid var(--platform-input-focus-border-color)}.tooltip__nUuSh{border-radius:8px;padding:8px 12px;font-size:12px;font-weight:var(--platform-tooltip-font-weight);line-height:18px;color:var(--platform-tooltip-color);background-color:var(--platform-tooltip-background-color);box-shadow:0 4px 10px 0 var(--platform-shadow-color);-webkit-user-select:none;user-select:none;pointer-events:none;animation-duration:.4s;animation-timing-function:cubic-bezier(.16,1,.3,1);will-change:transform,opacity}.tooltip__nUuSh[data-side=right]{animation-name:slideLeftAndFade__DYdE5}.tooltip__nUuSh[data-side=bottom]{animation-name:slideUpAndFade__itahf}.tooltipArrow__W2w-f{fill:var(--platform-tooltip-background-color)}@keyframes slideLeftAndFade__DYdE5{0%{opacity:0;transform:translate(-8px)}to{opacity:1;transform:translate(0)}}@keyframes slideUpAndFade__itahf{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translate(0)}}.truncatedText__Y-jSd{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom}.overflowing__o8TC-{cursor:default}.SearchInput__4OFyE{position:relative}.SearchInput__4OFyE .SearchIcon__YgnQy{position:absolute;top:50%;transform:translateY(-50%);left:10px;color:#000}.SearchInput__4OFyE .ClearIcon__ukRVr{position:absolute;top:50%;transform:translateY(-50%);right:15px;color:#000;cursor:pointer}.SearchInput__4OFyE input{font-size:1em}.SearchInput__ClearIcon__uzVoc input{padding-right:30px}.SearchInput__SearchIcon__zoDG4 input{padding-left:30px}.SearchAutocomplete__vR9Hk{position:relative}.AutocompleteItem__YIm7R{box-sizing:border-box;margin:0;font-family:inherit;text-transform:none;-moz-appearance:none;appearance:none;-webkit-appearance:none;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:4px 16px;min-height:36px;width:100%;text-align:left;border:none;background-color:transparent;line-height:14px;font-size:12px;font-weight:400;color:var(--platform-text-primary-color);pointer-events:none}.AutocompleteItem--canBeSelected__jxk4z{cursor:pointer;pointer-events:auto}.AutocompleteItem--canBeSelected__jxk4z:hover{background-color:#0000001a}.AutocompleteHighlighter__LAFTV{overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;line-clamp:1;-webkit-box-orient:vertical;word-break:break-all}.AutocompleteHighlighter__match__Wy1o2{font-weight:700}.DropdownList__-fHIk{width:100%;padding-bottom:8px;padding-top:8px;min-height:0;border:1px solid var(--platform-lines)}.AutocompleteItemDescription__4QYN5{font-size:.8em;line-height:1em;font-weight:500;color:var(--platform-text-secondary-color);margin-top:2px}.DropdownList__QTXXX{position:absolute;z-index:1;background-color:var(--platform-background-primary-color);border-radius:8px;box-shadow:0 1px 5px #1018281a;min-width:105px;padding:4px 0;transition:all .2s ease-in-out}.DropdownList--closed__pdL1Z{opacity:0;pointer-events:none;transform:translateY(-10px);visibility:hidden}.DropdownList--open__opzc9{display:flex;flex-direction:column;opacity:1;pointer-events:all;transform:translateY(0)}.DropdownList--left__xSwXR{right:0}.SkeletonListContainer__MKJhE{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch}.Skeleton__Ovpiw{animation:skeleton-pulse__ZqB1e 1s infinite alternate-reverse;background-image:none;background-clip:border-box;border:none;box-shadow:none;-webkit-box-decoration-break:clone;box-decoration-break:clone;color:transparent;outline:none;pointer-events:none;-webkit-user-select:none;user-select:none;cursor:default;display:block}@keyframes skeleton-pulse__ZqB1e{0%{background-color:var(--platform-skeleton-color-1)}to{background-color:var(--platform-skeleton-color-2)}}@keyframes rotate__EqlXe{to{transform:rotate(360deg)}}.spinner__qa7F6{width:80px;height:80px;border:6px solid var(--platform-color-white);border-bottom-color:#ffffff1a;border-radius:50%;display:inline-block;box-sizing:border-box;animation:rotate__EqlXe 2s linear infinite}.spinner-dark__9A9-q{border-color:var(--platform-color-dark);border-bottom-color:#ffffff1a}.spinner-white__gRbtI{border-color:var(--platform-color-white);border-bottom-color:#ffffff1a}.spinner-success__otWGm{border-color:var(--platform-color-success);border-bottom-color:#ffffff1a}.spinner-danger__Bq5DM{border-color:var(--platform-color-danger);border-bottom-color:#ffffff1a}.spinner-warning__U900K{border-color:var(--platform-color-warning);border-bottom-color:#ffffff1a}.switch__0b2av{box-sizing:border-box;margin:0;-moz-appearance:none;appearance:none;-webkit-appearance:none;font-family:inherit;position:relative;display:inline-flex;align-items:center;width:44px;min-width:44px;height:24px;padding:0;border:none;border-radius:12px;background-color:#ccc;cursor:pointer;transition:background-color .2s ease;outline:none;font-size:0}.switch__0b2av:disabled{opacity:.5}.switch__0b2av:focus-visible{box-shadow:0 0 0 2px var(--platform-color-primary)}.switch__0b2av:hover:not(.disabled__KpauE){background-color:#bbb}.switch__0b2av.checked__2-JV-{background-color:var(--platform-color-primary)}.switch__0b2av.checked__2-JV-:hover:not(.disabled__KpauE){background-color:var(--platform-color-secondary)}.switch__0b2av.disabled__KpauE{opacity:.5;cursor:not-allowed;pointer-events:none}.thumb__fEuKD{position:absolute;top:2px;left:2px;width:20px;height:20px;background-color:#fff;border-radius:50%;transition:transform .2s ease;box-shadow:0 1px 3px #0000001a}.switch__0b2av.checked__2-JV- .thumb__fEuKD{transform:translate(20px)}[data-theme=dark] .switch__0b2av{background-color:#555}[data-theme=dark] .switch__0b2av:hover:not(.disabled__KpauE){background-color:#666}[data-theme=dark] .switch__0b2av.checked__2-JV-{background-color:var(--platform-color-primary)}[data-theme=dark] .switch__0b2av.checked__2-JV-:hover:not(.disabled__KpauE){background-color:var(--platform-color-secondary)}.tabs-list__rc10N{display:flex;position:relative}.tabs-list--horizontal__e1YW4{flex-direction:row;border-bottom:1px solid var(--platform-lines)}.tabs-list--vertical__huK05{flex-direction:column;border-right:none;width:200px}.tabs-trigger__D8R4R{box-sizing:border-box;margin:0;font-family:inherit;text-transform:none;-moz-appearance:none;appearance:none;-webkit-appearance:none;position:relative;background:transparent;border:none;padding:12px 16px;font-size:14px;font-weight:500;color:var(--platform-text-secondary-color);cursor:pointer;transition:all .15s ease-in-out;white-space:nowrap;outline:none}.tabs-trigger__D8R4R:hover:not(.tabs-trigger--disabled__ezDWc){color:var(--platform-text-primary-color)}.tabs-trigger__D8R4R:focus-visible{outline:2px solid var(--platform-color-primary);outline-offset:2px;border-radius:4px}.tabs-trigger--horizontal__4jBFV{border-bottom:2px solid transparent;margin-bottom:-1px}.tabs-trigger--horizontal__4jBFV.tabs-trigger--active__S-Z-S{color:var(--platform-text-primary-color);border-bottom-color:var(--platform-text-primary-color)}.tabs-trigger--vertical__dNVIZ{border-left:none;border-right:3px solid transparent;margin-right:-8px;text-align:left;justify-content:flex-start;display:flex;width:calc(100% + 8px);border-radius:6px 0 0 6px;padding-right:19px}.tabs-trigger--vertical__dNVIZ:hover:not(.tabs-trigger--disabled__ezDWc):not(.tabs-trigger--active__S-Z-S){background-color:#0000000a}.tabs-trigger--vertical__dNVIZ.tabs-trigger--active__S-Z-S{color:var(--platform-text-primary-color);border-right-color:var(--platform-text-primary-color);background-color:var(--platform-background-primary-color);font-weight:600}.tabs-trigger--disabled__ezDWc{color:#9ca3af;cursor:not-allowed}.tabs-content__1d77o{padding:16px 0;outline:none}.tabs-content__1d77o:focus-visible{outline:2px solid var(--platform-color-primary);outline-offset:2px;border-radius:4px}.PasswordInput__GDJDN{position:relative}.PasswordInput__GDJDN input{padding-right:40px;box-sizing:border-box}.PasswordInput__GDJDN .eyeIcon__kDExG{position:absolute;top:50%;right:1em;transform:translateY(-50%)}.PasswordInput__GDJDN .eyeIcon__kDExG:hover{cursor:pointer}.Overlay__M5Z83{background-color:#0e12167f;position:fixed;top:0;right:0;bottom:0;left:0;animation:overlayShow__seU5M .15s cubic-bezier(.16,1,.3,1);z-index:var(--platform-modal-layer)}.Content__wAkP4{display:flex;position:relative;flex-direction:column;justify-content:flex-start;align-items:stretch;font-size:var(--admin-ui-base-font-size);z-index:calc(var(--platform-modal-layer) + 1);background-color:var(--platform-background-primary-color);border-radius:8px;overflow:hidden;box-shadow:#0e121659 0 10px 38px -10px,#0e121633 0 10px 20px -15px;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);animation:contentShow__rxphL .15s cubic-bezier(.16,1,.3,1)}.Content__wAkP4:focus{outline:none}@keyframes overlayShow__seU5M{0%{opacity:0}to{opacity:1}}@keyframes contentShow__rxphL{0%{opacity:0;transform:translate(-50%,-48%) scale(.96)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}.ExampleDialog__llNIZ{max-width:500px}.Header__VHxNf{display:flex;justify-content:space-between;align-items:center;background-color:var(--admin-ui-background-color-light);padding:16px 24px}.Content__I04qM{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;padding:24px;width:90vw;max-height:85vh;max-width:100%;margin-bottom:64px;overflow:auto}.Close__xSN-7{cursor:pointer}.Title__Dznh6{line-height:24px;font-size:20px;font-weight:700;color:var(--admin-ui-primary-text-color)}.Description__ALT2w{font-size:12px;color:var(--platform-text-primary-color)}.Footer__-8gzQ{position:absolute;bottom:0;left:0;right:0;background-color:var(--admin-ui-background-color-light);display:flex;justify-content:flex-end;padding:16px 24px;gap:16px;box-shadow:0 -1px 6px #78787826}.Actions__kKF2Q{display:flex;gap:16px}.pill__vtGwB{border-radius:300px;min-width:4em;text-align:center;padding:3px 12px;font-size:.8em;font-weight:700;border:1px solid}.pill--solid__F-mR4{border-color:var(--pae-shell-color-secondary, #ED8525);background:var(--pae-shell-color-secondary, #ED8525);color:var(--pae-shell-color-white)}.pill--outline__gC-mh{border-color:var(--pae-shell-color-secondary, #ED8525);color:var(--pae-shell-color-secondary, #ED8525);background-color:var(--pae-shell-color-white)}.DialogContent__-WjG9{max-width:450px}.Message__AUgVP{color:var(--platform-text-primary-color);font-size:1.15em}.container__AjtYJ{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;height:100vh}.title__A2vCu{font-size:24px;font-weight:600;line-height:36px;color:var(--text-primary-color);padding-top:24px}.description__bP6Ig{font-size:16px;font-weight:400;line-height:24px;color:var(--text-secondary-color)}a.mailToText__SdlsE{color:var(--pae-shell-color-secondary);font-weight:500}.List__h09XG{display:flex;flex-direction:column;position:relative;overflow-y:auto}.Item__YMy2i{display:flex;flex-direction:column;padding:12px 16px;cursor:pointer;color:var(--admin-ui-primary-text-color)}.List--primary__J2pbx{gap:16px}.List--primary__J2pbx .Item__YMy2i{border:1px solid var(--admin-ui-border-color);border-radius:8px}.List--secondary__gi1ao .Item__YMy2i{border-top:1px solid var(--admin-ui-border-color);border-bottom:1px solid transparent}.List--secondary__gi1ao .Item--selected__yRWow{background:#a0a0a01a;border-top:1px solid var(--admin-ui-primary-color);border-bottom:1px solid var(--admin-ui-primary-color)}.List__h09XG .Title__RJmEW{display:flex;align-items:center;gap:8px;padding-right:16px;font-size:1em;line-height:1.15em;color:var(--admin-ui-primary-text-color);margin-bottom:4px}.List__h09XG .Description__DGyX2{font-size:.8em;line-height:1em;font-weight:500;color:var(--admin-ui-secondary-text-color)}.List__h09XG .Actions__UHP5l{position:absolute;right:16px}.List__h09XG .Action__q-R1I{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;padding:8px 16px;gap:12px;width:100%}.List__h09XG .Action__q-R1I:hover{background:var(--admin-ui-background-color-light)}.List__h09XG .Item--disabled__Ke1u-{background:var(--admin-ui-background-color-light);cursor:not-allowed;opacity:.5}.List--small__ijoSR .Item__YMy2i{padding:8px 12px;height:auto;font-size:1em}.List--medium__E1FEY .Item__YMy2i{padding:12px 16px;height:auto;font-size:1.1em}.List--large__T8tfz .Item__YMy2i{padding:16px 24px;height:auto;font-size:1.25em}.List__h09XG .Icon__dFr-L{display:flex;align-items:center;justify-content:center;width:1.4em;height:1.4em}.Navigation__uylxk{margin:0 auto;display:flex;justify-content:flex-end;width:100%;color:var(--platform-text-primary-color)}.PaginationContent__UpLw0{display:flex;align-items:center;gap:4px}.PaginationEllipsis__perWk{display:flex;width:2.5em;height:2.5em;justify-content:center;align-items:center}.PaginationEllipsis__perWk svg{width:1em;height:1em}.PaginationLink__GVUZj{display:inline-flex;align-items:center;justify-content:center;gap:.6em;padding:.5em;min-width:32px;border-radius:4px;font-size:1em;font-weight:500;border:1px solid transparent;cursor:pointer}.PaginationLink__GVUZj:focus{outline:none}.PaginationLink__GVUZj:hover{background-color:var(--platform-background-secondary-color)}.PaginationLink__GVUZj.Active__u1Ahy{border-color:var(--platform-lines)}.PaginationLink__GVUZj.Disabled__8WM0y{opacity:.8;pointer-events:none;cursor:default}.PaginationLink__GVUZj svg{width:1em;height:1em}.Prev__wp4hc{padding-right:12px}.Next__eVyL5{padding-left:12px}.TableContainer__osh6Z{border:1px solid var(--platform-lines);border-radius:1em;overflow:hidden}.TableHeader__sYa-8{padding:.6em .8em;font-size:1.4em;font-weight:600;width:100%;border-bottom:1px solid var(--platform-lines);color:var(--platform-text-primary-color)}.Table__2cIs3{overflow-x:auto;overflow-y:hidden}.Table__2cIs3 table{border-collapse:collapse;text-indent:0;border-color:inherit;width:100%;min-width:max-content}.Table__2cIs3 td,.Table__2cIs3 th{box-sizing:border-box;border-bottom:1px solid var(--platform-lines);padding:1em;font-weight:400;font-size:var(--platform-text-base-font-size);color:var(--platform-text-secondary-color)}.Table__2cIs3 td{color:var(--platform-text-primary-color)}.Table__2cIs3 tr:last-child td{border-bottom:none}.Table__2cIs3 thead th{font-weight:500;background-color:var(--platform-background-secondary-color)}.Table__2cIs3 tr{transition:background-color .2s ease-in-out;background-color:var(--platform-background-primary-color)}.Table__2cIs3 tr.selectable__WsGg1:hover{cursor:pointer;background-color:var(--platform-background-secondary-color)}.Table__2cIs3 .Cell__ZEv-K{display:flex;align-items:center;gap:4px;justify-content:flex-start}.Table__2cIs3 .Right__YoM1V{justify-content:flex-end}.Table__2cIs3 .Center__CF3tr{justify-content:center}.Table__2cIs3 .Sortable__JIV1V{cursor:pointer}.Table__2cIs3 .SortIcon__f0bBy{opacity:0;visibility:hidden;transition:opacity .2s ease-in-out,transform .2s ease-in-out}.Table__2cIs3 .SortIcon__f0bBy.Active__rJjxB{opacity:1;visibility:visible}.Table__2cIs3 .SortIcon__f0bBy.Rotate__7cwTK{transform:rotate(-180deg)}.Table__2cIs3 .Cell__ZEv-K:hover .SortIcon__f0bBy{opacity:1;visibility:visible}.Pagination__sbqMP{display:flex;justify-content:flex-end;margin-top:1em!important}.PointerNone__kQdQS{pointer-events:none}.EmptyStateContainer__Q9FEb{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:1em;padding:2em 0}.EmptyStateContainer__Q9FEb .Message__IHK6M{font-size:1.15em;color:var(--platform-text-secondary-color)}.EmptyStateContainer__Q9FEb svg{color:var(--platform-text-secondary-color)}.alert__LblpE{position:relative;width:100%;border-radius:.8em;border:1px solid var(--platform-lines);padding:1em 1.2em;font-size:1em;display:grid;grid-template-columns:0 1fr;gap:.5em}.alert__LblpE:has(>svg){grid-template-columns:16px 1fr;gap:12px}.alert__LblpE>svg{margin-top:2px;width:16px;height:16px;color:inherit}.default__mgO6A{background-color:var(--platform-background-primary-color, #fff);color:var(--platform-text-primary-color, #111)}.destructive__bLNSM{background-color:var(--platform-background-primary-color, #fff);color:var(--platform-color-danger, #dc2626);border-color:var(--platform-color-danger, #dc2626)}.destructive__bLNSM>svg{color:inherit}.destructive__bLNSM [data-slot=alert-description]{color:var(--platform-color-danger, #dc2626)}.alertTitle__gblKf{grid-column-start:2;min-height:1em;font-weight:500;line-clamp:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.alertDescription__BuVHV{grid-column-start:2;display:grid;justify-items:start;gap:4px;font-size:1em;color:var(--platform-text-secondary-color)}.alertDescription__BuVHV p{line-height:1.5}.container__LbyGQ{display:flex;align-items:center}.avatarWrapper__HCQIZ{position:relative;display:inline-block}.avatar__E453a{border-radius:9999px;display:flex;align-items:center;justify-content:center;font-weight:600;border-width:1px;color:var(--platform-color-white);border-color:var(--platform-lines)}.overflowWrapper__ETnPO{position:relative;display:inline-block;cursor:default}.overflowBadge__igBKT{border-radius:9999px;display:flex;align-items:center;justify-content:center;color:var(--platform-color-white);font-weight:600;border-width:1px;border-color:var(--platform-lines);background-color:var(--platform-color-primary)}\n";
2
- (function(_,x){typeof exports=="object"&&typeof module<"u"?x(exports,require("react"),require("single-spa"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","single-spa","react-dom"],x):(_=typeof globalThis<"u"?globalThis:_||self,x(_["@bluealba/pae-ui-react-core"]={},_.React,_.singleSpa,_.ReactDOM))})(this,function(_,x,pe,Wt){"use strict";var Xd=_=>{throw TypeError(_)};var Ti=(_,x,pe)=>x.has(_)||Xd("Cannot "+pe);var C=(_,x,pe)=>(Ti(_,x,"read from private field"),pe?pe.call(_):x.get(_)),k=(_,x,pe)=>x.has(_)?Xd("Cannot add the same private member more than once"):x instanceof WeakSet?x.add(_):x.set(_,pe),j=(_,x,pe,Wt)=>(Ti(_,x,"write to private field"),Wt?Wt.call(_,pe):x.set(_,pe),pe),V=(_,x,pe)=>(Ti(_,x,"access private method"),pe);var Ro=(_,x,pe,Wt)=>({set _(pr){j(_,x,pr,pe)},get _(){return C(_,x,Wt)}});var nn,Pt,An,Rd,On,At,Rn,jd,rn,Id,jn,In,Ie,on,be,lr,sn,We,mt,Dd,et,Ld,tt,Ce,an,nt,Ut,Nd,dt,He,ur,Md,ue,Ot,Rt,Dn,Ln,jt,Nn,Mn,kd,Te,K,dr,Se,cn,kn,It,Dt,fr,$n,Fn,ln,un,Lt,Bn,ee,hr,Pi,Ai,Oi,Ri,ji,Ii,Di,Jd,$d,Nt,Mt,Pe,ft,ht,jo,Li,Fd;function pr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const d=pr(x),mr=pr(Wt),Ni=()=>typeof document<"u"&&"adoptedStyleSheets"in Document.prototype&&typeof CSSStyleSheet<"u"&&"replaceSync"in CSSStyleSheet.prototype;class ef{constructor(){this.styles=[],this.shadowRoots=new Set}register(t){const n={cssText:t,styleElements:new Map};if(this.styles.push(n),typeof document>"u")return()=>this.unregister(n);if(Ni()){const r=new CSSStyleSheet;r.replaceSync(t),n.sheet=r,document.adoptedStyleSheets=[...document.adoptedStyleSheets,r],this.shadowRoots.forEach(o=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,r]})}else this.appendStyleElement(n,document),this.shadowRoots.forEach(r=>this.appendStyleElement(n,r));return()=>this.unregister(n)}adoptInto(t){if(!this.shadowRoots.has(t))if(this.shadowRoots.add(t),Ni()){const n=this.styles.map(r=>r.sheet).filter(r=>!!r);t.adoptedStyleSheets=[...t.adoptedStyleSheets,...n]}else this.styles.forEach(n=>this.appendStyleElement(n,t))}releaseRoot(t){this.shadowRoots.delete(t)&&this.styles.forEach(n=>{var r;n.sheet&&(t.adoptedStyleSheets=t.adoptedStyleSheets.filter(o=>o!==n.sheet)),(r=n.styleElements.get(t))==null||r.remove(),n.styleElements.delete(t)})}unregister(t){const n=this.styles.indexOf(t);n!==-1&&(this.styles.splice(n,1),t.sheet&&(document.adoptedStyleSheets=document.adoptedStyleSheets.filter(r=>r!==t.sheet),this.shadowRoots.forEach(r=>{r.adoptedStyleSheets=r.adoptedStyleSheets.filter(o=>o!==t.sheet)})),t.styleElements.forEach(r=>r.remove()),t.styleElements.clear())}appendStyleElement(t,n){const r=document.createElement("style");r.setAttribute("data-pae-style-registry",""),r.textContent=t.cssText,(n instanceof Document?n.head:n).appendChild(r),t.styleElements.set(n,r)}}const Io=new ef,tf=()=>{const e=globalThis.__PAE_UI_CORE_CSS__;e&&(Io.register(e),delete globalThis.__PAE_UI_CORE_CSS__)},nf={auth:{SESSION_EXPIRED:"platform:auth:session-expired"},apps:{APP_CLICKED:"platform:apps:app-clicked"},shell:{NAVBAR_STATE_CHANGED:"platform:shell:navbar-state-changed",MENU_STATE_CHANGED:"platform:shell:menu-state-changed"}},Hn="__PAE_GLOBAL_STATE__",Mi="__PAE_REACTIVE_GLOBAL_STATE__",ki="__PAE_EXTENSIONS_POINTS_REGISTRY__",Do="__PAE_CUSTOMIZATIONS_LOADING_STATE_KEY__",rf="/auth/logout",of=(e,t)=>{const[n,r]=x.useState(t);return x.useEffect(()=>{const o=e.subscribe(s=>{r(s)});return()=>{o.unsubscribe()}},[r]),n},sf=(e,t,n)=>n.map((r,o)=>o===e?t(r):r),af=(e,t,n)=>sf(n.findIndex(e),t,n),Lo=(e,t)=>typeof e=="function"?e(t):e,$i=(e,t)=>{const n=of(e,t),r=x.useCallback(o=>{e.next(Lo(o,n))},[n]);return[n,r]},fn=()=>$i(window[Mi],window[Hn]),hn=()=>fn()[0].catalog,cf=()=>{const e=hn(),t=x.useCallback(r=>{window[Mi].next({...window[Hn],catalog:Lo(r,e)})},[e]),n=x.useCallback((r,o)=>{t(s=>af(i=>i.name===r,i=>{var a;return{...i,ui:{...i.ui,customProps:Lo(o,((a=i.ui)==null?void 0:a.customProps)??{})}}},s))},[t]);return[e,t,n]},Fi=()=>{const[e,t]=x.useState(document.location.pathname);return x.useEffect(()=>{const n=()=>{t(window.location.pathname)};return window.addEventListener("popstate",n),()=>{window.removeEventListener("popstate",n)}},[t]),e};var lf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function uf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Bi={exports:{}},Vn={},Ui;function df(){if(Ui)return Vn;Ui=1;/**
2
+ (function(_,x){typeof exports=="object"&&typeof module<"u"?x(exports,require("react"),require("single-spa"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","single-spa","react-dom"],x):(_=typeof globalThis<"u"?globalThis:_||self,x(_["@bluealba/pae-ui-react-core"]={},_.React,_.singleSpa,_.ReactDOM))})(this,function(_,x,pe,Wt){"use strict";var nf=_=>{throw TypeError(_)};var Ai=(_,x,pe)=>x.has(_)||nf("Cannot "+pe);var C=(_,x,pe)=>(Ai(_,x,"read from private field"),pe?pe.call(_):x.get(_)),k=(_,x,pe)=>x.has(_)?nf("Cannot add the same private member more than once"):x instanceof WeakSet?x.add(_):x.set(_,pe),j=(_,x,pe,Wt)=>(Ai(_,x,"write to private field"),Wt?Wt.call(_,pe):x.set(_,pe),pe),V=(_,x,pe)=>(Ai(_,x,"access private method"),pe);var jo=(_,x,pe,Wt)=>({set _(mr){j(_,x,mr,pe)},get _(){return C(_,x,Wt)}});var nn,Pt,An,Ld,Rn,At,On,Nd,rn,Md,jn,In,Ie,on,be,ur,sn,We,mt,kd,et,$d,tt,Ce,an,nt,Ut,Fd,dt,He,dr,Bd,ue,Rt,Ot,Dn,Ln,jt,Nn,Mn,Ud,Te,K,fr,Se,cn,kn,It,Dt,hr,$n,Fn,ln,un,Lt,Bn,ee,pr,Ri,Oi,ji,Ii,Di,Li,Ni,rf,Wd,Nt,Mt,Pe,ft,ht,Io,Mi,Hd;function mr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const d=mr(x),gr=mr(Wt),ki=()=>typeof document<"u"&&"adoptedStyleSheets"in Document.prototype&&typeof CSSStyleSheet<"u"&&"replaceSync"in CSSStyleSheet.prototype;class of{constructor(){this.styles=[],this.shadowRoots=new Set}register(t){const n={cssText:t,styleElements:new Map};if(this.styles.push(n),typeof document>"u")return()=>this.unregister(n);if(ki()){const r=new CSSStyleSheet;r.replaceSync(t),n.sheet=r,document.adoptedStyleSheets=[...document.adoptedStyleSheets,r],this.shadowRoots.forEach(o=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,r]})}else this.appendStyleElement(n,document),this.shadowRoots.forEach(r=>this.appendStyleElement(n,r));return()=>this.unregister(n)}adoptInto(t){if(!this.shadowRoots.has(t))if(this.shadowRoots.add(t),ki()){const n=this.styles.map(r=>r.sheet).filter(r=>!!r);t.adoptedStyleSheets=[...t.adoptedStyleSheets,...n]}else this.styles.forEach(n=>this.appendStyleElement(n,t))}releaseRoot(t){this.shadowRoots.delete(t)&&this.styles.forEach(n=>{var r;n.sheet&&(t.adoptedStyleSheets=t.adoptedStyleSheets.filter(o=>o!==n.sheet)),(r=n.styleElements.get(t))==null||r.remove(),n.styleElements.delete(t)})}unregister(t){const n=this.styles.indexOf(t);n!==-1&&(this.styles.splice(n,1),t.sheet&&(document.adoptedStyleSheets=document.adoptedStyleSheets.filter(r=>r!==t.sheet),this.shadowRoots.forEach(r=>{r.adoptedStyleSheets=r.adoptedStyleSheets.filter(o=>o!==t.sheet)})),t.styleElements.forEach(r=>r.remove()),t.styleElements.clear())}appendStyleElement(t,n){const r=document.createElement("style");r.setAttribute("data-pae-style-registry",""),r.textContent=t.cssText,(n instanceof Document?n.head:n).appendChild(r),t.styleElements.set(n,r)}}const Hn=new of,sf=()=>{const e=globalThis.__PAE_UI_CORE_CSS__;e&&(Hn.register(e),delete globalThis.__PAE_UI_CORE_CSS__)},af={auth:{SESSION_EXPIRED:"platform:auth:session-expired"},apps:{APP_CLICKED:"platform:apps:app-clicked"},shell:{NAVBAR_STATE_CHANGED:"platform:shell:navbar-state-changed",MENU_STATE_CHANGED:"platform:shell:menu-state-changed"}},Vn="__PAE_GLOBAL_STATE__",$i="__PAE_REACTIVE_GLOBAL_STATE__",Fi="__PAE_EXTENSIONS_POINTS_REGISTRY__",Do="__PAE_CUSTOMIZATIONS_LOADING_STATE_KEY__",cf="/auth/logout",lf=(e,t)=>{const[n,r]=x.useState(t);return x.useEffect(()=>{const o=e.subscribe(s=>{r(s)});return()=>{o.unsubscribe()}},[r]),n},uf=(e,t,n)=>n.map((r,o)=>o===e?t(r):r),df=(e,t,n)=>uf(n.findIndex(e),t,n),Lo=(e,t)=>typeof e=="function"?e(t):e,Bi=(e,t)=>{const n=lf(e,t),r=x.useCallback(o=>{e.next(Lo(o,n))},[n]);return[n,r]},fn=()=>Bi(window[$i],window[Vn]),hn=()=>fn()[0].catalog,ff=()=>{const e=hn(),t=x.useCallback(r=>{window[$i].next({...window[Vn],catalog:Lo(r,e)})},[e]),n=x.useCallback((r,o)=>{t(s=>df(i=>i.name===r,i=>{var a;return{...i,ui:{...i.ui,customProps:Lo(o,((a=i.ui)==null?void 0:a.customProps)??{})}}},s))},[t]);return[e,t,n]},Ui=()=>{const[e,t]=x.useState(document.location.pathname);return x.useEffect(()=>{const n=()=>{t(window.location.pathname)};return window.addEventListener("popstate",n),()=>{window.removeEventListener("popstate",n)}},[t]),e};var hf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wi={exports:{}},zn={},Hi;function mf(){if(Hi)return zn;Hi=1;/**
3
3
  * @license React
4
4
  * react-jsx-runtime.development.js
5
5
  *
@@ -7,32 +7,32 @@ globalThis.__PAE_UI_CORE_CSS__ = ".container__zBqbk{display:flex;align-items:cen
7
7
  *
8
8
  * This source code is licensed under the MIT license found in the
9
9
  * LICENSE file in the root directory of this source tree.
10
- */return function(){var e=x,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),S=Symbol.iterator,p="@@iterator";function y(b){if(b===null||typeof b!="object")return null;var R=S&&b[S]||b[p];return typeof R=="function"?R:null}var v=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(b){{for(var R=arguments.length,I=new Array(R>1?R-1:0),B=1;B<R;B++)I[B-1]=arguments[B];E("error",b,I)}}function E(b,R,I){{var B=v.ReactDebugCurrentFrame,re=B.getStackAddendum();re!==""&&(R+="%s",I=I.concat([re]));var ae=I.map(function(Q){return String(Q)});ae.unshift("Warning: "+R),Function.prototype.apply.call(console[b],console,ae)}}var T=!1,P=!1,A=!1,O=!1,N=!1,D;D=Symbol.for("react.module.reference");function M(b){return!!(typeof b=="string"||typeof b=="function"||b===r||b===s||N||b===o||b===u||b===f||O||b===g||T||P||A||typeof b=="object"&&b!==null&&(b.$$typeof===m||b.$$typeof===h||b.$$typeof===i||b.$$typeof===a||b.$$typeof===c||b.$$typeof===D||b.getModuleId!==void 0))}function U(b,R,I){var B=b.displayName;if(B)return B;var re=R.displayName||R.name||"";return re!==""?I+"("+re+")":I}function W(b){return b.displayName||"Context"}function H(b){if(b==null)return null;if(typeof b.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof b=="function")return b.displayName||b.name||null;if(typeof b=="string")return b;switch(b){case r:return"Fragment";case n:return"Portal";case s:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case f:return"SuspenseList"}if(typeof b=="object")switch(b.$$typeof){case a:var R=b;return W(R)+".Consumer";case i:var I=b;return W(I._context)+".Provider";case c:return U(b,b.render,"ForwardRef");case h:var B=b.displayName||null;return B!==null?B:H(b.type)||"Memo";case m:{var re=b,ae=re._payload,Q=re._init;try{return H(Q(ae))}catch{return null}}}return null}var z=Object.assign,oe=0,q,Y,F,se,ge,De,kt;function $t(){}$t.__reactDisabledLog=!0;function rt(){{if(oe===0){q=console.log,Y=console.info,F=console.warn,se=console.error,ge=console.group,De=console.groupCollapsed,kt=console.groupEnd;var b={configurable:!0,enumerable:!0,value:$t,writable:!0};Object.defineProperties(console,{info:b,log:b,warn:b,error:b,group:b,groupCollapsed:b,groupEnd:b})}oe++}}function Ft(){{if(oe--,oe===0){var b={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:z({},b,{value:q}),info:z({},b,{value:Y}),warn:z({},b,{value:F}),error:z({},b,{value:se}),group:z({},b,{value:ge}),groupCollapsed:z({},b,{value:De}),groupEnd:z({},b,{value:kt})})}oe<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ve=v.ReactCurrentDispatcher,$;function te(b,R,I){{if($===void 0)try{throw Error()}catch(re){var B=re.stack.trim().match(/\n( *(at )?)/);$=B&&B[1]||""}return`
11
- `+$+b}}var fe=!1,X;{var ne=typeof WeakMap=="function"?WeakMap:Map;X=new ne}function J(b,R){if(!b||fe)return"";{var I=X.get(b);if(I!==void 0)return I}var B;fe=!0;var re=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ae;ae=Ve.current,Ve.current=null,rt();try{if(R){var Q=function(){throw Error()};if(Object.defineProperty(Q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Q,[])}catch(Ae){B=Ae}Reflect.construct(b,[],Q)}else{try{Q.call()}catch(Ae){B=Ae}b.call(Q.prototype)}}else{try{throw Error()}catch(Ae){B=Ae}b()}}catch(Ae){if(Ae&&B&&typeof Ae.stack=="string"){for(var G=Ae.stack.split(`
10
+ */return function(){var e=x,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),S=Symbol.iterator,p="@@iterator";function y(b){if(b===null||typeof b!="object")return null;var O=S&&b[S]||b[p];return typeof O=="function"?O:null}var v=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(b){{for(var O=arguments.length,I=new Array(O>1?O-1:0),B=1;B<O;B++)I[B-1]=arguments[B];E("error",b,I)}}function E(b,O,I){{var B=v.ReactDebugCurrentFrame,re=B.getStackAddendum();re!==""&&(O+="%s",I=I.concat([re]));var ae=I.map(function(Q){return String(Q)});ae.unshift("Warning: "+O),Function.prototype.apply.call(console[b],console,ae)}}var T=!1,P=!1,A=!1,R=!1,N=!1,D;D=Symbol.for("react.module.reference");function M(b){return!!(typeof b=="string"||typeof b=="function"||b===r||b===s||N||b===o||b===l||b===f||R||b===g||T||P||A||typeof b=="object"&&b!==null&&(b.$$typeof===m||b.$$typeof===h||b.$$typeof===i||b.$$typeof===a||b.$$typeof===c||b.$$typeof===D||b.getModuleId!==void 0))}function U(b,O,I){var B=b.displayName;if(B)return B;var re=O.displayName||O.name||"";return re!==""?I+"("+re+")":I}function W(b){return b.displayName||"Context"}function H(b){if(b==null)return null;if(typeof b.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof b=="function")return b.displayName||b.name||null;if(typeof b=="string")return b;switch(b){case r:return"Fragment";case n:return"Portal";case s:return"Profiler";case o:return"StrictMode";case l:return"Suspense";case f:return"SuspenseList"}if(typeof b=="object")switch(b.$$typeof){case a:var O=b;return W(O)+".Consumer";case i:var I=b;return W(I._context)+".Provider";case c:return U(b,b.render,"ForwardRef");case h:var B=b.displayName||null;return B!==null?B:H(b.type)||"Memo";case m:{var re=b,ae=re._payload,Q=re._init;try{return H(Q(ae))}catch{return null}}}return null}var z=Object.assign,oe=0,q,Y,F,se,ge,De,kt;function $t(){}$t.__reactDisabledLog=!0;function rt(){{if(oe===0){q=console.log,Y=console.info,F=console.warn,se=console.error,ge=console.group,De=console.groupCollapsed,kt=console.groupEnd;var b={configurable:!0,enumerable:!0,value:$t,writable:!0};Object.defineProperties(console,{info:b,log:b,warn:b,error:b,group:b,groupCollapsed:b,groupEnd:b})}oe++}}function Ft(){{if(oe--,oe===0){var b={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:z({},b,{value:q}),info:z({},b,{value:Y}),warn:z({},b,{value:F}),error:z({},b,{value:se}),group:z({},b,{value:ge}),groupCollapsed:z({},b,{value:De}),groupEnd:z({},b,{value:kt})})}oe<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ve=v.ReactCurrentDispatcher,$;function te(b,O,I){{if($===void 0)try{throw Error()}catch(re){var B=re.stack.trim().match(/\n( *(at )?)/);$=B&&B[1]||""}return`
11
+ `+$+b}}var fe=!1,X;{var ne=typeof WeakMap=="function"?WeakMap:Map;X=new ne}function J(b,O){if(!b||fe)return"";{var I=X.get(b);if(I!==void 0)return I}var B;fe=!0;var re=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ae;ae=Ve.current,Ve.current=null,rt();try{if(O){var Q=function(){throw Error()};if(Object.defineProperty(Q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Q,[])}catch(Ae){B=Ae}Reflect.construct(b,[],Q)}else{try{Q.call()}catch(Ae){B=Ae}b.call(Q.prototype)}}else{try{throw Error()}catch(Ae){B=Ae}b()}}catch(Ae){if(Ae&&B&&typeof Ae.stack=="string"){for(var G=Ae.stack.split(`
12
12
  `),xe=B.stack.split(`
13
13
  `),de=G.length-1,he=xe.length-1;de>=1&&he>=0&&G[de]!==xe[he];)he--;for(;de>=1&&he>=0;de--,he--)if(G[de]!==xe[he]){if(de!==1||he!==1)do if(de--,he--,he<0||G[de]!==xe[he]){var Ne=`
14
- `+G[de].replace(" at new "," at ");return b.displayName&&Ne.includes("<anonymous>")&&(Ne=Ne.replace("<anonymous>",b.displayName)),typeof b=="function"&&X.set(b,Ne),Ne}while(de>=1&&he>=0);break}}}finally{fe=!1,Ve.current=ae,Ft(),Error.prepareStackTrace=re}var Wn=b?b.displayName||b.name:"",dn=Wn?te(Wn):"";return typeof b=="function"&&X.set(b,dn),dn}function Ee(b,R,I){return J(b,!1)}function Le(b){var R=b.prototype;return!!(R&&R.isReactComponent)}function ot(b,R,I){if(b==null)return"";if(typeof b=="function")return J(b,Le(b));if(typeof b=="string")return te(b);switch(b){case u:return te("Suspense");case f:return te("SuspenseList")}if(typeof b=="object")switch(b.$$typeof){case c:return Ee(b.render);case h:return ot(b.type,R,I);case m:{var B=b,re=B._payload,ae=B._init;try{return ot(ae(re),R,I)}catch{}}}return""}var ze=Object.prototype.hasOwnProperty,Bt={},Oo=v.ReactDebugCurrentFrame;function pt(b){if(b){var R=b._owner,I=ot(b.type,b._source,R?R.type:null);Oo.setExtraStackFrame(I)}else Oo.setExtraStackFrame(null)}function L0(b,R,I,B,re){{var ae=Function.call.bind(ze);for(var Q in b)if(ae(b,Q)){var G=void 0;try{if(typeof b[Q]!="function"){var xe=Error((B||"React class")+": "+I+" type `"+Q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof b[Q]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw xe.name="Invariant Violation",xe}G=b[Q](R,Q,B,I,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(de){G=de}G&&!(G instanceof Error)&&(pt(re),w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",B||"React class",I,Q,typeof G),pt(null)),G instanceof Error&&!(G.message in Bt)&&(Bt[G.message]=!0,pt(re),w("Failed %s type: %s",I,G.message),pt(null))}}}var N0=Array.isArray;function Ci(b){return N0(b)}function M0(b){{var R=typeof Symbol=="function"&&Symbol.toStringTag,I=R&&b[Symbol.toStringTag]||b.constructor.name||"Object";return I}}function k0(b){try{return Bd(b),!1}catch{return!0}}function Bd(b){return""+b}function Ud(b){if(k0(b))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",M0(b)),Bd(b)}var Wd=v.ReactCurrentOwner,$0={key:!0,ref:!0,__self:!0,__source:!0},Hd,Vd;function F0(b){if(ze.call(b,"ref")){var R=Object.getOwnPropertyDescriptor(b,"ref").get;if(R&&R.isReactWarning)return!1}return b.ref!==void 0}function B0(b){if(ze.call(b,"key")){var R=Object.getOwnPropertyDescriptor(b,"key").get;if(R&&R.isReactWarning)return!1}return b.key!==void 0}function U0(b,R){typeof b.ref=="string"&&Wd.current}function W0(b,R){{var I=function(){Hd||(Hd=!0,w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",R))};I.isReactWarning=!0,Object.defineProperty(b,"key",{get:I,configurable:!0})}}function H0(b,R){{var I=function(){Vd||(Vd=!0,w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",R))};I.isReactWarning=!0,Object.defineProperty(b,"ref",{get:I,configurable:!0})}}var V0=function(b,R,I,B,re,ae,Q){var G={$$typeof:t,type:b,key:R,ref:I,props:Q,_owner:ae};return G._store={},Object.defineProperty(G._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(G,"_self",{configurable:!1,enumerable:!1,writable:!1,value:B}),Object.defineProperty(G,"_source",{configurable:!1,enumerable:!1,writable:!1,value:re}),Object.freeze&&(Object.freeze(G.props),Object.freeze(G)),G};function z0(b,R,I,B,re){{var ae,Q={},G=null,xe=null;I!==void 0&&(Ud(I),G=""+I),B0(R)&&(Ud(R.key),G=""+R.key),F0(R)&&(xe=R.ref,U0(R,re));for(ae in R)ze.call(R,ae)&&!$0.hasOwnProperty(ae)&&(Q[ae]=R[ae]);if(b&&b.defaultProps){var de=b.defaultProps;for(ae in de)Q[ae]===void 0&&(Q[ae]=de[ae])}if(G||xe){var he=typeof b=="function"?b.displayName||b.name||"Unknown":b;G&&W0(Q,he),xe&&H0(Q,he)}return V0(b,G,xe,re,B,Wd.current,Q)}}var Si=v.ReactCurrentOwner,zd=v.ReactDebugCurrentFrame;function Un(b){if(b){var R=b._owner,I=ot(b.type,b._source,R?R.type:null);zd.setExtraStackFrame(I)}else zd.setExtraStackFrame(null)}var Ei;Ei=!1;function xi(b){return typeof b=="object"&&b!==null&&b.$$typeof===t}function qd(){{if(Si.current){var b=H(Si.current.type);if(b)return`
14
+ `+G[de].replace(" at new "," at ");return b.displayName&&Ne.includes("<anonymous>")&&(Ne=Ne.replace("<anonymous>",b.displayName)),typeof b=="function"&&X.set(b,Ne),Ne}while(de>=1&&he>=0);break}}}finally{fe=!1,Ve.current=ae,Ft(),Error.prepareStackTrace=re}var Wn=b?b.displayName||b.name:"",dn=Wn?te(Wn):"";return typeof b=="function"&&X.set(b,dn),dn}function Ee(b,O,I){return J(b,!1)}function Le(b){var O=b.prototype;return!!(O&&O.isReactComponent)}function ot(b,O,I){if(b==null)return"";if(typeof b=="function")return J(b,Le(b));if(typeof b=="string")return te(b);switch(b){case l:return te("Suspense");case f:return te("SuspenseList")}if(typeof b=="object")switch(b.$$typeof){case c:return Ee(b.render);case h:return ot(b.type,O,I);case m:{var B=b,re=B._payload,ae=B._init;try{return ot(ae(re),O,I)}catch{}}}return""}var ze=Object.prototype.hasOwnProperty,Bt={},Oo=v.ReactDebugCurrentFrame;function pt(b){if(b){var O=b._owner,I=ot(b.type,b._source,O?O.type:null);Oo.setExtraStackFrame(I)}else Oo.setExtraStackFrame(null)}function N0(b,O,I,B,re){{var ae=Function.call.bind(ze);for(var Q in b)if(ae(b,Q)){var G=void 0;try{if(typeof b[Q]!="function"){var xe=Error((B||"React class")+": "+I+" type `"+Q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof b[Q]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw xe.name="Invariant Violation",xe}G=b[Q](O,Q,B,I,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(de){G=de}G&&!(G instanceof Error)&&(pt(re),w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",B||"React class",I,Q,typeof G),pt(null)),G instanceof Error&&!(G.message in Bt)&&(Bt[G.message]=!0,pt(re),w("Failed %s type: %s",I,G.message),pt(null))}}}var M0=Array.isArray;function Ei(b){return M0(b)}function k0(b){{var O=typeof Symbol=="function"&&Symbol.toStringTag,I=O&&b[Symbol.toStringTag]||b.constructor.name||"Object";return I}}function $0(b){try{return Vd(b),!1}catch{return!0}}function Vd(b){return""+b}function zd(b){if($0(b))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",k0(b)),Vd(b)}var qd=v.ReactCurrentOwner,F0={key:!0,ref:!0,__self:!0,__source:!0},Gd,Kd;function B0(b){if(ze.call(b,"ref")){var O=Object.getOwnPropertyDescriptor(b,"ref").get;if(O&&O.isReactWarning)return!1}return b.ref!==void 0}function U0(b){if(ze.call(b,"key")){var O=Object.getOwnPropertyDescriptor(b,"key").get;if(O&&O.isReactWarning)return!1}return b.key!==void 0}function W0(b,O){typeof b.ref=="string"&&qd.current}function H0(b,O){{var I=function(){Gd||(Gd=!0,w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",O))};I.isReactWarning=!0,Object.defineProperty(b,"key",{get:I,configurable:!0})}}function V0(b,O){{var I=function(){Kd||(Kd=!0,w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",O))};I.isReactWarning=!0,Object.defineProperty(b,"ref",{get:I,configurable:!0})}}var z0=function(b,O,I,B,re,ae,Q){var G={$$typeof:t,type:b,key:O,ref:I,props:Q,_owner:ae};return G._store={},Object.defineProperty(G._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(G,"_self",{configurable:!1,enumerable:!1,writable:!1,value:B}),Object.defineProperty(G,"_source",{configurable:!1,enumerable:!1,writable:!1,value:re}),Object.freeze&&(Object.freeze(G.props),Object.freeze(G)),G};function q0(b,O,I,B,re){{var ae,Q={},G=null,xe=null;I!==void 0&&(zd(I),G=""+I),U0(O)&&(zd(O.key),G=""+O.key),B0(O)&&(xe=O.ref,W0(O,re));for(ae in O)ze.call(O,ae)&&!F0.hasOwnProperty(ae)&&(Q[ae]=O[ae]);if(b&&b.defaultProps){var de=b.defaultProps;for(ae in de)Q[ae]===void 0&&(Q[ae]=de[ae])}if(G||xe){var he=typeof b=="function"?b.displayName||b.name||"Unknown":b;G&&H0(Q,he),xe&&V0(Q,he)}return z0(b,G,xe,re,B,qd.current,Q)}}var xi=v.ReactCurrentOwner,Qd=v.ReactDebugCurrentFrame;function Un(b){if(b){var O=b._owner,I=ot(b.type,b._source,O?O.type:null);Qd.setExtraStackFrame(I)}else Qd.setExtraStackFrame(null)}var _i;_i=!1;function Ti(b){return typeof b=="object"&&b!==null&&b.$$typeof===t}function Yd(){{if(xi.current){var b=H(xi.current.type);if(b)return`
15
15
 
16
- Check the render method of \``+b+"`."}return""}}function q0(b){return""}var Gd={};function G0(b){{var R=qd();if(!R){var I=typeof b=="string"?b:b.displayName||b.name;I&&(R=`
16
+ Check the render method of \``+b+"`."}return""}}function G0(b){return""}var Zd={};function K0(b){{var O=Yd();if(!O){var I=typeof b=="string"?b:b.displayName||b.name;I&&(O=`
17
17
 
18
- Check the top-level render call using <`+I+">.")}return R}}function Kd(b,R){{if(!b._store||b._store.validated||b.key!=null)return;b._store.validated=!0;var I=G0(R);if(Gd[I])return;Gd[I]=!0;var B="";b&&b._owner&&b._owner!==Si.current&&(B=" It was passed a child from "+H(b._owner.type)+"."),Un(b),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',I,B),Un(null)}}function Qd(b,R){{if(typeof b!="object")return;if(Ci(b))for(var I=0;I<b.length;I++){var B=b[I];xi(B)&&Kd(B,R)}else if(xi(b))b._store&&(b._store.validated=!0);else if(b){var re=y(b);if(typeof re=="function"&&re!==b.entries)for(var ae=re.call(b),Q;!(Q=ae.next()).done;)xi(Q.value)&&Kd(Q.value,R)}}}function K0(b){{var R=b.type;if(R==null||typeof R=="string")return;var I;if(typeof R=="function")I=R.propTypes;else if(typeof R=="object"&&(R.$$typeof===c||R.$$typeof===h))I=R.propTypes;else return;if(I){var B=H(R);L0(I,b.props,"prop",B,b)}else if(R.PropTypes!==void 0&&!Ei){Ei=!0;var re=H(R);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",re||"Unknown")}typeof R.getDefaultProps=="function"&&!R.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Q0(b){{for(var R=Object.keys(b.props),I=0;I<R.length;I++){var B=R[I];if(B!=="children"&&B!=="key"){Un(b),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",B),Un(null);break}}b.ref!==null&&(Un(b),w("Invalid attribute `ref` supplied to `React.Fragment`."),Un(null))}}var Yd={};function Zd(b,R,I,B,re,ae){{var Q=M(b);if(!Q){var G="";(b===void 0||typeof b=="object"&&b!==null&&Object.keys(b).length===0)&&(G+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var xe=q0();xe?G+=xe:G+=qd();var de;b===null?de="null":Ci(b)?de="array":b!==void 0&&b.$$typeof===t?(de="<"+(H(b.type)||"Unknown")+" />",G=" Did you accidentally export a JSX literal instead of a component?"):de=typeof b,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",de,G)}var he=z0(b,R,I,re,ae);if(he==null)return he;if(Q){var Ne=R.children;if(Ne!==void 0)if(B)if(Ci(Ne)){for(var Wn=0;Wn<Ne.length;Wn++)Qd(Ne[Wn],b);Object.freeze&&Object.freeze(Ne)}else w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Qd(Ne,b)}if(ze.call(R,"key")){var dn=H(b),Ae=Object.keys(R).filter(function(t2){return t2!=="key"}),_i=Ae.length>0?"{key: someKey, "+Ae.join(": ..., ")+": ...}":"{key: someKey}";if(!Yd[dn+_i]){var e2=Ae.length>0?"{"+Ae.join(": ..., ")+": ...}":"{}";w(`A props object containing a "key" prop is being spread into JSX:
18
+ Check the top-level render call using <`+I+">.")}return O}}function Xd(b,O){{if(!b._store||b._store.validated||b.key!=null)return;b._store.validated=!0;var I=K0(O);if(Zd[I])return;Zd[I]=!0;var B="";b&&b._owner&&b._owner!==xi.current&&(B=" It was passed a child from "+H(b._owner.type)+"."),Un(b),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',I,B),Un(null)}}function Jd(b,O){{if(typeof b!="object")return;if(Ei(b))for(var I=0;I<b.length;I++){var B=b[I];Ti(B)&&Xd(B,O)}else if(Ti(b))b._store&&(b._store.validated=!0);else if(b){var re=y(b);if(typeof re=="function"&&re!==b.entries)for(var ae=re.call(b),Q;!(Q=ae.next()).done;)Ti(Q.value)&&Xd(Q.value,O)}}}function Q0(b){{var O=b.type;if(O==null||typeof O=="string")return;var I;if(typeof O=="function")I=O.propTypes;else if(typeof O=="object"&&(O.$$typeof===c||O.$$typeof===h))I=O.propTypes;else return;if(I){var B=H(O);N0(I,b.props,"prop",B,b)}else if(O.PropTypes!==void 0&&!_i){_i=!0;var re=H(O);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",re||"Unknown")}typeof O.getDefaultProps=="function"&&!O.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Y0(b){{for(var O=Object.keys(b.props),I=0;I<O.length;I++){var B=O[I];if(B!=="children"&&B!=="key"){Un(b),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",B),Un(null);break}}b.ref!==null&&(Un(b),w("Invalid attribute `ref` supplied to `React.Fragment`."),Un(null))}}var ef={};function tf(b,O,I,B,re,ae){{var Q=M(b);if(!Q){var G="";(b===void 0||typeof b=="object"&&b!==null&&Object.keys(b).length===0)&&(G+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var xe=G0();xe?G+=xe:G+=Yd();var de;b===null?de="null":Ei(b)?de="array":b!==void 0&&b.$$typeof===t?(de="<"+(H(b.type)||"Unknown")+" />",G=" Did you accidentally export a JSX literal instead of a component?"):de=typeof b,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",de,G)}var he=q0(b,O,I,re,ae);if(he==null)return he;if(Q){var Ne=O.children;if(Ne!==void 0)if(B)if(Ei(Ne)){for(var Wn=0;Wn<Ne.length;Wn++)Jd(Ne[Wn],b);Object.freeze&&Object.freeze(Ne)}else w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Jd(Ne,b)}if(ze.call(O,"key")){var dn=H(b),Ae=Object.keys(O).filter(function(n2){return n2!=="key"}),Pi=Ae.length>0?"{key: someKey, "+Ae.join(": ..., ")+": ...}":"{key: someKey}";if(!ef[dn+Pi]){var t2=Ae.length>0?"{"+Ae.join(": ..., ")+": ...}":"{}";w(`A props object containing a "key" prop is being spread into JSX:
19
19
  let props = %s;
20
20
  <%s {...props} />
21
21
  React keys must be passed directly to JSX without using spread:
22
22
  let props = %s;
23
- <%s key={someKey} {...props} />`,_i,dn,e2,dn),Yd[dn+_i]=!0}}return b===r?Q0(he):K0(he),he}}function Y0(b,R,I){return Zd(b,R,I,!0)}function Z0(b,R,I){return Zd(b,R,I,!1)}var X0=Z0,J0=Y0;Vn.Fragment=r,Vn.jsx=X0,Vn.jsxs=J0}(),Vn}Bi.exports=df();var l=Bi.exports;const Wi=x.createContext(null),Hi=({module:e,children:t})=>l.jsx(Wi.Provider,{value:e,children:t});Hi.displayName="PAEModule";const zn=()=>{const e=x.useContext(Wi);if(!e)throw new Error("Module metadata was not setup yet !!");return e};function No(){if(!window[Hn])throw new Error("PAE Global state not found.");return window[Hn]}const Mo=()=>{const{authUser:{applications:e}}=No();return e||[]},Vi=e=>Mo().filter(t=>t.name===e).flatMap(t=>t.operations),zi=()=>{const{application:e}=zn();return x.useMemo(()=>Vi(e),[e])},qi=e=>(...t)=>t.every(n=>e.some(r=>r.name===n)),qn=()=>{const[{authUser:e}]=fn(),t=zi();return{authUser:e,hasAccess:x.useMemo(()=>qi(t),[t])}},ff=()=>{const{authUser:e}=qn();return!e||e.id==="anon"},Gi=()=>{var e;return((e=zn().ui)==null?void 0:e.customProps)??{}},ko=e=>{const t=hn();return x.useMemo(()=>{const n=t.find(r=>r.name===e);if(!n)throw new Error(`Could not find the module [${e}] in the local catalog !`);return n},[t,e])},Ki=e=>{var t,n;return((n=(t=ko(e))==null?void 0:t.ui)==null?void 0:n.customProps)??{}},hf=e=>e.replace(/\/+/g,"/"),pf=(e,t="only-base-path")=>{const{apiDocs:n,health:r,version:o,changelog:s}=(e==null?void 0:e.commonPaths)||{},i=(a,c="")=>{if(a===void 0&&!c)return;const u=a??c;if(t==="only-base-path")return u;const f=hf(`${e.baseUrl}/${u}`);return t==="with-module-base"?f:`${document.location.origin}${f}`};return{apiDocsPath:i(n,"/api-docs-json"),healthPath:i(r,"/health"),versionPath:i(o,"/version"),changelogPath:i(s,"/changelog")}};function mf(){window.open(rf,"_self")}const gf=e=>pe.navigateToUrl(e),yf=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z]{2,}$/,vf=e=>yf.test(e),bf=(e,t=2)=>{if(!e)return"";const n=e.split(" ");return n.length===1?n.join("").slice(0,t):n.map(r=>r[0]).join("").slice(0,t)},Qi=e=>e.type==="app"||e.type==="tool",wf=e=>e.modules.some(Qi)&&e.route&&e.route!=="/",Yi=e=>{const{catalog:t}=No();return gr(t.filter(n=>n.application===e))},gr=(e=[])=>e.find(t=>{var n;return Qi(t)&&((n=t.ui)==null?void 0:n.route)!=="/"}),Zi=()=>{const e=hn();return x.useMemo(()=>Mo().map(n=>{var s,i,a;const r=Cf(e,n.name),o=gr(r);return{name:n.name,displayName:((i=(s=o==null?void 0:o.ui)==null?void 0:s.customProps)==null?void 0:i.overrideApplicationDisplayName)??n.displayName,modules:r,route:(a=o==null?void 0:o.ui)==null?void 0:a.route,roles:[],operations:n.operations}}),[e])},Cf=(e,t)=>e.filter(n=>n.application===t)||[],Xi=()=>{const e=Zi();return x.useMemo(()=>e.filter(wf),[e])},Ji=e=>x.useMemo(()=>e?Yi(e.name):void 0,[e]),gt=new Map,Sf=e=>{try{const{catalog:t}=No(),n=t.find(r=>r.name===e);return n!=null&&n.version?`${e}@${n.version}`:e}catch{return e}},yr=e=>{const[t,n]=x.useState(null);return x.useEffect(()=>{(async()=>{if(!e){n(null);return}try{const o=Sf(e);if(gt.has(o)){const i=gt.get(o);n(i);return}const s=await System.import(e);gt.set(o,s),n(s)}catch(o){console.error(`Error importing module ${e}: ${o.message}`),n(null)}})()},[e,n]),t},Ef=e=>{e?(Array.from(gt.keys()).filter(n=>n.startsWith(e)).forEach(n=>gt.delete(n)),console.log(`[useApplicationJSModule] Cleared cache for module: ${e}`)):(gt.clear(),console.log("[useApplicationJSModule] Cleared all module cache"))};typeof window<"u"&&(window.PAE={...window.PAE,clearModuleCache:Ef,getModuleCacheSize:()=>gt.size,getModuleCacheKeys:()=>Array.from(gt.keys())});const ea=e=>{const t=typeof e=="string"?Yi(e):gr(e==null?void 0:e.modules),n=yr(t==null?void 0:t.name);return n==null?void 0:n.icon},ta=e=>{const t=gr(e==null?void 0:e.modules),n=yr(t==null?void 0:t.name),[r,o]=x.useState(!1),[s,i]=x.useState({}),a=async()=>(typeof(n==null?void 0:n.menu)=="function"?await n.menu():n==null?void 0:n.menu)||[],c=async()=>{if(!(n!=null&&n.menu))return[];o(!0);const h=xf((e==null?void 0:e.operations)||[]),m=(await a()).map(g=>{const{operations:S,items:p,path:y}=g;if(S!=null&&S.length&&!h(S))return null;const v=(p||[]).filter(w=>{var E;return!((E=w==null?void 0:w.operations)!=null&&E.length)||h(w.operations)});return!v.length&&!y?null:{...g,items:v}}).filter(Boolean);return o(!1),m},u=async()=>{const h=await c();e&&i(m=>({...m,[e.name]:h}))};x.useEffect(()=>{u()},[n==null?void 0:n.menu]);const f=x.useMemo(()=>e?s[e.name]||[]:[],[s,e]);return{loading:r,menu:f}},xf=e=>t=>t.every(n=>e.some(r=>r.name===n)),_f=e=>ta(e);function ce(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function Ht(e){return function t(n){return arguments.length===0||ce(n)?t:e.apply(this,arguments)}}function yt(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return ce(n)?t:Ht(function(o){return e(n,o)});default:return ce(n)&&ce(r)?t:ce(n)?Ht(function(o){return e(o,r)}):ce(r)?Ht(function(o){return e(n,o)}):e(n,r)}}}function $o(e){return function t(n,r,o){switch(arguments.length){case 0:return t;case 1:return ce(n)?t:yt(function(s,i){return e(n,s,i)});case 2:return ce(n)&&ce(r)?t:ce(n)?yt(function(s,i){return e(s,r,i)}):ce(r)?yt(function(s,i){return e(n,s,i)}):Ht(function(s){return e(n,r,s)});default:return ce(n)&&ce(r)&&ce(o)?t:ce(n)&&ce(r)?yt(function(s,i){return e(s,i,o)}):ce(n)&&ce(o)?yt(function(s,i){return e(s,r,i)}):ce(r)&&ce(o)?yt(function(s,i){return e(n,s,i)}):ce(n)?Ht(function(s){return e(s,r,o)}):ce(r)?Ht(function(s){return e(n,s,o)}):ce(o)?Ht(function(s){return e(n,r,s)}):e(n,r,o)}}}function vr(e,t){return Object.prototype.hasOwnProperty.call(t,e)}function na(e){return Object.prototype.toString.call(e)==="[object Object]"}var Tf=$o(function(t,n,r){var o=t(n),s=t(r);return o>s?-1:o<s?1:0}),Pf=$o(function(t,n,r){var o={},s;n=n||{},r=r||{};for(s in n)vr(s,n)&&(o[s]=vr(s,r)?t(s,n[s],r[s]):n[s]);for(s in r)vr(s,r)&&!vr(s,o)&&(o[s]=r[s]);return o}),Af=$o(function e(t,n,r){return Pf(function(o,s,i){return na(s)&&na(i)?e(t,s,i):t(o,s,i)},n,r)}),Of=yt(function(t,n){return Af(function(r,o,s){return s},t,n)}),Rf=yt(function(t,n){return Array.prototype.slice.call(n,0).sort(function(r,o){for(var s=0,i=0;s===0&&i<t.length;)s=t[i](r,o),i+=1;return s})});const Fo=()=>{const e=Fi(),t=Xi();return x.useMemo(()=>jf(e,t),[e,t])},jf=(e,t)=>Rf([Tf(If)],t).find(n=>n.route&&e.startsWith(n.route)),If=e=>{var t;return((t=e==null?void 0:e.route)==null?void 0:t.length)||-1},ra=()=>{var e;return(e=Fo())==null?void 0:e.name},Df=()=>{const e=Fo(),t=Ji(e);return yr(t==null?void 0:t.name)},Bo=(e,t)=>{const r=hn().find(o=>o.name===e);if(!r){if(t)return null;throw new Error(`Service with name [${e}] not available in the catalog`)}return r.baseUrl},Uo=(e,t)=>{const n=Bo(e,!!t)??t;return x.useCallback((r,o)=>{const i={Accept:"application/json",...(o==null?void 0:o.body)instanceof FormData?{}:{"Content-Type":"application/json"},...o==null?void 0:o.headers};return fetch(Lf(`${n}${r}`),{...o,headers:i})},[n])},Lf=e=>e.replace(/\/+/g,"/"),Nf=["impersonate","impersonate-display-name","tenant"],oa=(e,t)=>{const n=Bo(e,t);return x.useMemo(()=>{if(!n)return null;try{const r=new URL(window.location.href),o=new URL(n,window.location.origin);return Nf.forEach(s=>{const i=r.searchParams.get(s);i&&o.searchParams.set(s,i)}),o.toString()}catch(r){return console.error("Error building WebSocket URL:",r),n}},[n])},Mf=(e,t)=>n=>({timestamp:new Date(new Date().toUTCString()).toISOString(),module:t.name,moduleVersion:t.version,application:t.application,user:e.username,...n}),kf=(e,t,n)=>async r=>{if(r.length===0)throw new Error("Invalid call to trackEvents with an empty array of events!");const o=await e("/event",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r.map(Mf(t,n)))});if(!o.ok)throw new Error(`Error publishing habits event ${o.statusText}`)},$f="@bluealba/pae-habits-service",sa=()=>{const{authUser:e}=qn(),t=zn(),n=Uo($f);return x.useCallback(kf(n,e,t),[n,e,t])},Ff=()=>{const e=sa();return x.useCallback((t,n)=>e([{name:t,data:n}]),[e])},ia=e=>{const t=zn(),n=window[ki],[r,o]=x.useState(null);return x.useEffect(()=>n.defineExtensionPoint(t,e,s=>{o(()=>s)}),[o]),r},aa=(e,t,n)=>{x.useEffect(()=>window[ki].setExtensionPoint(e,t,n),[])},ca=(e,t)=>{x.useEffect(()=>(window.addEventListener(e,t),()=>window.removeEventListener(e,t)),[e,t])},la=e=>{x.useEffect(()=>{if(!e)return;const t=e.includes("@layer")?e:`@layer pae.customization {
23
+ <%s key={someKey} {...props} />`,Pi,dn,t2,dn),ef[dn+Pi]=!0}}return b===r?Y0(he):Q0(he),he}}function Z0(b,O,I){return tf(b,O,I,!0)}function X0(b,O,I){return tf(b,O,I,!1)}var J0=X0,e2=Z0;zn.Fragment=r,zn.jsx=J0,zn.jsxs=e2}(),zn}Wi.exports=mf();var u=Wi.exports;const Vi=x.createContext(null),zi=({module:e,children:t})=>u.jsx(Vi.Provider,{value:e,children:t});zi.displayName="PAEModule";const qn=()=>{const e=x.useContext(Vi);if(!e)throw new Error("Module metadata was not setup yet !!");return e};function No(){if(!window[Vn])throw new Error("PAE Global state not found.");return window[Vn]}const Mo=()=>{const{authUser:{applications:e}}=No();return e||[]},qi=e=>Mo().filter(t=>t.name===e).flatMap(t=>t.operations),Gi=()=>{const{application:e}=qn();return x.useMemo(()=>qi(e),[e])},Ki=e=>(...t)=>t.every(n=>e.some(r=>r.name===n)),Gn=()=>{const[{authUser:e}]=fn(),t=Gi();return{authUser:e,hasAccess:x.useMemo(()=>Ki(t),[t])}},gf=()=>{const{authUser:e}=Gn();return!e||e.id==="anon"},Qi=()=>{var e;return((e=qn().ui)==null?void 0:e.customProps)??{}},ko=e=>{const t=hn();return x.useMemo(()=>{const n=t.find(r=>r.name===e);if(!n)throw new Error(`Could not find the module [${e}] in the local catalog !`);return n},[t,e])},Yi=e=>{var t,n;return((n=(t=ko(e))==null?void 0:t.ui)==null?void 0:n.customProps)??{}},yf=e=>e.replace(/\/+/g,"/"),vf=(e,t="only-base-path")=>{const{apiDocs:n,health:r,version:o,changelog:s}=(e==null?void 0:e.commonPaths)||{},i=(a,c="")=>{if(a===void 0&&!c)return;const l=a??c;if(t==="only-base-path")return l;const f=yf(`${e.baseUrl}/${l}`);return t==="with-module-base"?f:`${document.location.origin}${f}`};return{apiDocsPath:i(n,"/api-docs-json"),healthPath:i(r,"/health"),versionPath:i(o,"/version"),changelogPath:i(s,"/changelog")}};function bf(){window.open(cf,"_self")}const wf=e=>pe.navigateToUrl(e),Cf=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z]{2,}$/,Sf=e=>Cf.test(e),Ef=(e,t=2)=>{if(!e)return"";const n=e.split(" ");return n.length===1?n.join("").slice(0,t):n.map(r=>r[0]).join("").slice(0,t)},Zi=e=>e.type==="app"||e.type==="tool",xf=e=>e.modules.some(Zi)&&e.route&&e.route!=="/",Xi=e=>{const{catalog:t}=No();return yr(t.filter(n=>n.application===e))},yr=(e=[])=>e.find(t=>{var n;return Zi(t)&&((n=t.ui)==null?void 0:n.route)!=="/"}),Ji=()=>{const e=hn();return x.useMemo(()=>Mo().map(n=>{var s,i,a;const r=_f(e,n.name),o=yr(r);return{name:n.name,displayName:((i=(s=o==null?void 0:o.ui)==null?void 0:s.customProps)==null?void 0:i.overrideApplicationDisplayName)??n.displayName,modules:r,route:(a=o==null?void 0:o.ui)==null?void 0:a.route,roles:[],operations:n.operations}}),[e])},_f=(e,t)=>e.filter(n=>n.application===t)||[],ea=()=>{const e=Ji();return x.useMemo(()=>e.filter(xf),[e])},ta=e=>x.useMemo(()=>e?Xi(e.name):void 0,[e]),gt=new Map,Tf=e=>{try{const{catalog:t}=No(),n=t.find(r=>r.name===e);return n!=null&&n.version?`${e}@${n.version}`:e}catch{return e}},vr=e=>{const[t,n]=x.useState(null);return x.useEffect(()=>{(async()=>{if(!e){n(null);return}try{const o=Tf(e);if(gt.has(o)){const i=gt.get(o);n(i);return}const s=await System.import(e);gt.set(o,s),n(s)}catch(o){console.error(`Error importing module ${e}: ${o.message}`),n(null)}})()},[e,n]),t},Pf=e=>{e?(Array.from(gt.keys()).filter(n=>n.startsWith(e)).forEach(n=>gt.delete(n)),console.log(`[useApplicationJSModule] Cleared cache for module: ${e}`)):(gt.clear(),console.log("[useApplicationJSModule] Cleared all module cache"))};typeof window<"u"&&(window.PAE={...window.PAE,clearModuleCache:Pf,getModuleCacheSize:()=>gt.size,getModuleCacheKeys:()=>Array.from(gt.keys())});const na=e=>{const t=typeof e=="string"?Xi(e):yr(e==null?void 0:e.modules),n=vr(t==null?void 0:t.name);return n==null?void 0:n.icon},ra=e=>{const t=yr(e==null?void 0:e.modules),n=vr(t==null?void 0:t.name),[r,o]=x.useState(!1),[s,i]=x.useState({}),a=async()=>(typeof(n==null?void 0:n.menu)=="function"?await n.menu():n==null?void 0:n.menu)||[],c=async()=>{if(!(n!=null&&n.menu))return[];o(!0);const h=Af((e==null?void 0:e.operations)||[]),m=(await a()).map(g=>{const{operations:S,items:p,path:y}=g;if(S!=null&&S.length&&!h(S))return null;const v=(p||[]).filter(w=>{var E;return!((E=w==null?void 0:w.operations)!=null&&E.length)||h(w.operations)});return!v.length&&!y?null:{...g,items:v}}).filter(Boolean);return o(!1),m},l=async()=>{const h=await c();e&&i(m=>({...m,[e.name]:h}))};x.useEffect(()=>{l()},[n==null?void 0:n.menu]);const f=x.useMemo(()=>e?s[e.name]||[]:[],[s,e]);return{loading:r,menu:f}},Af=e=>t=>t.every(n=>e.some(r=>r.name===n)),Rf=e=>ra(e);function ce(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function Ht(e){return function t(n){return arguments.length===0||ce(n)?t:e.apply(this,arguments)}}function yt(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return ce(n)?t:Ht(function(o){return e(n,o)});default:return ce(n)&&ce(r)?t:ce(n)?Ht(function(o){return e(o,r)}):ce(r)?Ht(function(o){return e(n,o)}):e(n,r)}}}function $o(e){return function t(n,r,o){switch(arguments.length){case 0:return t;case 1:return ce(n)?t:yt(function(s,i){return e(n,s,i)});case 2:return ce(n)&&ce(r)?t:ce(n)?yt(function(s,i){return e(s,r,i)}):ce(r)?yt(function(s,i){return e(n,s,i)}):Ht(function(s){return e(n,r,s)});default:return ce(n)&&ce(r)&&ce(o)?t:ce(n)&&ce(r)?yt(function(s,i){return e(s,i,o)}):ce(n)&&ce(o)?yt(function(s,i){return e(s,r,i)}):ce(r)&&ce(o)?yt(function(s,i){return e(n,s,i)}):ce(n)?Ht(function(s){return e(s,r,o)}):ce(r)?Ht(function(s){return e(n,s,o)}):ce(o)?Ht(function(s){return e(n,r,s)}):e(n,r,o)}}}function br(e,t){return Object.prototype.hasOwnProperty.call(t,e)}function oa(e){return Object.prototype.toString.call(e)==="[object Object]"}var Of=$o(function(t,n,r){var o=t(n),s=t(r);return o>s?-1:o<s?1:0}),jf=$o(function(t,n,r){var o={},s;n=n||{},r=r||{};for(s in n)br(s,n)&&(o[s]=br(s,r)?t(s,n[s],r[s]):n[s]);for(s in r)br(s,r)&&!br(s,o)&&(o[s]=r[s]);return o}),If=$o(function e(t,n,r){return jf(function(o,s,i){return oa(s)&&oa(i)?e(t,s,i):t(o,s,i)},n,r)}),Df=yt(function(t,n){return If(function(r,o,s){return s},t,n)}),Lf=yt(function(t,n){return Array.prototype.slice.call(n,0).sort(function(r,o){for(var s=0,i=0;s===0&&i<t.length;)s=t[i](r,o),i+=1;return s})});const Fo=()=>{const e=Ui(),t=ea();return x.useMemo(()=>Nf(e,t),[e,t])},Nf=(e,t)=>Lf([Of(Mf)],t).find(n=>n.route&&e.startsWith(n.route)),Mf=e=>{var t;return((t=e==null?void 0:e.route)==null?void 0:t.length)||-1},sa=()=>{var e;return(e=Fo())==null?void 0:e.name},kf=()=>{const e=Fo(),t=ta(e);return vr(t==null?void 0:t.name)},Bo=(e,t)=>{const r=hn().find(o=>o.name===e);if(!r){if(t)return null;throw new Error(`Service with name [${e}] not available in the catalog`)}return r.baseUrl},Uo=(e,t)=>{const n=Bo(e,!!t)??t;return x.useCallback((r,o)=>{const i={Accept:"application/json",...(o==null?void 0:o.body)instanceof FormData?{}:{"Content-Type":"application/json"},...o==null?void 0:o.headers};return fetch($f(`${n}${r}`),{...o,headers:i})},[n])},$f=e=>e.replace(/\/+/g,"/"),Ff=["impersonate","impersonate-display-name","tenant"],ia=(e,t)=>{const n=Bo(e,t);return x.useMemo(()=>{if(!n)return null;try{const r=new URL(window.location.href),o=new URL(n,window.location.origin);return Ff.forEach(s=>{const i=r.searchParams.get(s);i&&o.searchParams.set(s,i)}),o.toString()}catch(r){return console.error("Error building WebSocket URL:",r),n}},[n])},Bf=(e,t)=>n=>({timestamp:new Date(new Date().toUTCString()).toISOString(),module:t.name,moduleVersion:t.version,application:t.application,user:e.username,...n}),Uf=(e,t,n)=>async r=>{if(r.length===0)throw new Error("Invalid call to trackEvents with an empty array of events!");const o=await e("/event",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r.map(Bf(t,n)))});if(!o.ok)throw new Error(`Error publishing habits event ${o.statusText}`)},Wf="@bluealba/pae-habits-service",aa=()=>{const{authUser:e}=Gn(),t=qn(),n=Uo(Wf);return x.useCallback(Uf(n,e,t),[n,e,t])},Hf=()=>{const e=aa();return x.useCallback((t,n)=>e([{name:t,data:n}]),[e])},ca=e=>{const t=qn(),n=window[Fi],[r,o]=x.useState(null);return x.useEffect(()=>n.defineExtensionPoint(t,e,s=>{o(()=>s)}),[o]),r},la=(e,t,n)=>{x.useEffect(()=>window[Fi].setExtensionPoint(e,t,n),[])},ua=(e,t)=>{x.useEffect(()=>(window.addEventListener(e,t),()=>window.removeEventListener(e,t)),[e,t])},da=e=>{x.useEffect(()=>{if(!e)return;const t=e.includes("@layer")?e:`@layer pae.customization {
24
24
  ${e}
25
- }`;return Io.register(t)},[e])},Bf=e=>{var t;return(t=e.split(/[#?]/)[0].split(".").pop())==null?void 0:t.trim()},Uf={woff2:"woff2",woff:"woff",ttf:"truetype",otf:"opentype",eot:"embedded-opentype",svg:"svg"},Wf=e=>{const t=Bf(e);return t?Uf[t]:void 0},Hf=(e,t)=>{const n=t??Wf(e);return n?`format(${n})`:""};function ua(e){const[t,n]=x.useState(!1);return x.useEffect(()=>{if(!(e!=null&&e.length))return;const r=document.createElement("style");r.setAttribute("data-generated-fonts","true");const o=e.flatMap(({fontFamily:i,variants:a})=>a.map(({path:c,fontWeight:u,format:f})=>`
25
+ }`;return Hn.register(t)},[e])},Vf=e=>{var t;return(t=e.split(/[#?]/)[0].split(".").pop())==null?void 0:t.trim()},zf={woff2:"woff2",woff:"woff",ttf:"truetype",otf:"opentype",eot:"embedded-opentype",svg:"svg"},qf=e=>{const t=Vf(e);return t?zf[t]:void 0},Gf=(e,t)=>{const n=t??qf(e);return n?`format(${n})`:""};function fa(e){const[t,n]=x.useState(!1);return x.useEffect(()=>{if(!(e!=null&&e.length))return;const r=document.createElement("style");r.setAttribute("data-generated-fonts","true");const o=e.flatMap(({fontFamily:i,variants:a})=>a.map(({path:c,fontWeight:l,format:f})=>`
26
26
  @font-face {
27
27
  font-family: "${i}";
28
- src: url("${c}") ${Hf(c,f)};
29
- font-weight: ${u};
28
+ src: url("${c}") ${Gf(c,f)};
29
+ font-weight: ${l};
30
30
  font-style: normal;
31
31
  }
32
32
  `)).join(`
33
- `);return r.innerHTML=o,document.head.appendChild(r),(async()=>{try{await Promise.all(e.flatMap(({fontFamily:i,variants:a})=>a.map(({fontWeight:c})=>document.fonts.load(`normal ${c} 1em "${i}"`))))}finally{n(!0)}})(),()=>{document.head.removeChild(r)}},[e]),x.useEffect(()=>{!t&&!(e!=null&&e.length)&&n(!0)},[e,t]),{fontsLoaded:t}}var Wo=function(e,t){return Wo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},Wo(e,t)};function Gn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Wo(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var qe=function(){return qe=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},qe.apply(this,arguments)};function da(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Ho(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Vo(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,s=[],i;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(a){i={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return s}function br(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function st(e){return typeof e=="function"}function fa(e){var t=function(r){Error.call(r),r.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var zo=fa(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
33
+ `);return r.innerHTML=o,document.head.appendChild(r),(async()=>{try{await Promise.all(e.flatMap(({fontFamily:i,variants:a})=>a.map(({fontWeight:c})=>document.fonts.load(`normal ${c} 1em "${i}"`))))}finally{n(!0)}})(),()=>{document.head.removeChild(r)}},[e]),x.useEffect(()=>{!t&&!(e!=null&&e.length)&&n(!0)},[e,t]),{fontsLoaded:t}}var Wo=function(e,t){return Wo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},Wo(e,t)};function Kn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Wo(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var qe=function(){return qe=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},qe.apply(this,arguments)};function ha(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Ho(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Vo(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,s=[],i;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(a){i={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return s}function wr(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function st(e){return typeof e=="function"}function pa(e){var t=function(r){Error.call(r),r.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var zo=pa(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
34
34
  `+n.map(function(r,o){return o+1+") "+r.toString()}).join(`
35
- `):"",this.name="UnsubscriptionError",this.errors=n}});function qo(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var wr=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,r,o,s;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var a=Ho(i),c=a.next();!c.done;c=a.next()){var u=c.value;u.remove(this)}}catch(p){t={error:p}}finally{try{c&&!c.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}else i.remove(this);var f=this.initialTeardown;if(st(f))try{f()}catch(p){s=p instanceof zo?p.errors:[p]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var m=Ho(h),g=m.next();!g.done;g=m.next()){var S=g.value;try{ma(S)}catch(p){s=s??[],p instanceof zo?s=br(br([],Vo(s)),Vo(p.errors)):s.push(p)}}}catch(p){r={error:p}}finally{try{g&&!g.done&&(o=m.return)&&o.call(m)}finally{if(r)throw r.error}}}if(s)throw new zo(s)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)ma(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&qo(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&qo(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),ha=wr.EMPTY;function pa(e){return e instanceof wr||e&&"closed"in e&&st(e.remove)&&st(e.add)&&st(e.unsubscribe)}function ma(e){st(e)?e():e.unsubscribe()}var Vf={Promise:void 0},zf={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,br([e,t],Vo(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function qf(e){zf.setTimeout(function(){throw e})}function ga(){}function Cr(e){e()}var ya=function(e){Gn(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,pa(n)&&n.add(r)):r.destination=Qf,r}return t.create=function(n,r,o){return new Go(n,r,o)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(wr),Gf=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(r){Sr(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){Sr(r)}else Sr(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){Sr(n)}},e}(),Go=function(e){Gn(t,e);function t(n,r,o){var s=e.call(this)||this,i;return st(n)||!n?i={next:n??void 0,error:r??void 0,complete:o??void 0}:i=n,s.destination=new Gf(i),s}return t}(ya);function Sr(e){qf(e)}function Kf(e){throw e}var Qf={closed:!0,next:ga,error:Kf,complete:ga},Yf=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Zf(e){return e}function Xf(e){return e.length===0?Zf:e.length===1?e[0]:function(n){return e.reduce(function(r,o){return o(r)},n)}}var va=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,r){var o=this,s=eh(t)?t:new Go(t,n,r);return Cr(function(){var i=o,a=i.operator,c=i.source;s.add(a?a.call(s,c):c?o._subscribe(s):o._trySubscribe(s))}),s},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var r=this;return n=ba(n),new n(function(o,s){var i=new Go({next:function(a){try{t(a)}catch(c){s(c),i.unsubscribe()}},error:s,complete:o});r.subscribe(i)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[Yf]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Xf(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=ba(t),new t(function(r,o){var s;n.subscribe(function(i){return s=i},function(i){return o(i)},function(){return r(s)})})},e.create=function(t){return new e(t)},e}();function ba(e){var t;return(t=e??Vf.Promise)!==null&&t!==void 0?t:Promise}function Jf(e){return e&&st(e.next)&&st(e.error)&&st(e.complete)}function eh(e){return e&&e instanceof ya||Jf(e)&&pa(e)}var th=fa(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),wa=function(e){Gn(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var r=new Ca(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new th},t.prototype.next=function(n){var r=this;Cr(function(){var o,s;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var i=Ho(r.currentObservers),a=i.next();!a.done;a=i.next()){var c=a.value;c.next(n)}}catch(u){o={error:u}}finally{try{a&&!a.done&&(s=i.return)&&s.call(i)}finally{if(o)throw o.error}}}})},t.prototype.error=function(n){var r=this;Cr(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=n;for(var o=r.observers;o.length;)o.shift().error(n)}})},t.prototype.complete=function(){var n=this;Cr(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var r=this,o=this,s=o.hasError,i=o.isStopped,a=o.observers;return s||i?ha:(this.currentObservers=null,a.push(n),new wr(function(){r.currentObservers=null,qo(a,n)}))},t.prototype._checkFinalizedStatuses=function(n){var r=this,o=r.hasError,s=r.thrownError,i=r.isStopped;o?n.error(s):i&&n.complete()},t.prototype.asObservable=function(){var n=new va;return n.source=this,n},t.create=function(n,r){return new Ca(n,r)},t}(va),Ca=function(e){Gn(t,e);function t(n,r){var o=e.call(this)||this;return o.destination=n,o.source=r,o}return t.prototype.next=function(n){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.next)===null||o===void 0||o.call(r,n)},t.prototype.error=function(n){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.error)===null||o===void 0||o.call(r,n)},t.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},t.prototype._subscribe=function(n){var r,o;return(o=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&o!==void 0?o:ha},t}(wa),nh=function(e){Gn(t,e);function t(n){var r=e.call(this)||this;return r._value=n,r}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(n){var r=e.prototype._subscribe.call(this,n);return!r.closed&&n.next(this._value),r},t.prototype.getValue=function(){var n=this,r=n.hasError,o=n.thrownError,s=n._value;if(r)throw o;return this._throwIfClosed(),s},t.prototype.next=function(n){e.prototype.next.call(this,this._value=n)},t}(wa);const rh=e=>{const{fontsLoaded:t}=ua(e.fonts);la(e.styleSheet);const n=()=>{const r=new nh(!0);window[Do]=r};x.useEffect(()=>{t&&window[Do].next(!1)},[t]),x.useEffect(()=>{n()},[])},oh=()=>{const e=window[Do];return $i(e,e.getValue()??void 0)},Ko="theme",Sa=()=>document.documentElement.dataset[Ko]==="dark"?"dark":"light",sh=()=>{const[e,t]=x.useState(Sa());return x.useEffect(()=>{const n=document.documentElement,r=()=>t(Sa),o=new MutationObserver(s=>{for(const i of s)i.type==="attributes"&&i.attributeName===`data-${Ko}`&&r()});return o.observe(n,{attributes:!0,attributeFilter:[`data-${Ko}`]}),r(),()=>{o.disconnect()}},[]),e},ih=e=>e!==void 0,ah=e=>e!==!0;let ch={data:""},lh=e=>{if(typeof window=="object"){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||ch},uh=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,dh=/\/\*[^]*?\*\/| +/g,Ea=/\n+/g,vt=(e,t)=>{let n="",r="",o="";for(let s in e){let i=e[s];s[0]=="@"?s[1]=="i"?n=s+" "+i+";":r+=s[1]=="f"?vt(i,s):s+"{"+vt(i,s[1]=="k"?"":t)+"}":typeof i=="object"?r+=vt(i,t?t.replace(/([^,])+/g,a=>s.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,a):a?a+" "+c:c)):s):i!=null&&(s=/^--/.test(s)?s:s.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=vt.p?vt.p(s,i):s+":"+i+";")}return n+(t&&o?t+"{"+o+"}":o)+r},it={},xa=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+xa(e[n]);return t}return e},fh=(e,t,n,r,o)=>{let s=xa(e),i=it[s]||(it[s]=(c=>{let u=0,f=11;for(;u<c.length;)f=101*f+c.charCodeAt(u++)>>>0;return"go"+f})(s));if(!it[i]){let c=s!==e?e:(u=>{let f,h,m=[{}];for(;f=uh.exec(u.replace(dh,""));)f[4]?m.shift():f[3]?(h=f[3].replace(Ea," ").trim(),m.unshift(m[0][h]=m[0][h]||{})):m[0][f[1]]=f[2].replace(Ea," ").trim();return m[0]})(e);it[i]=vt(o?{["@keyframes "+i]:c}:c,n?"":"."+i)}let a=n&&it.g?it.g:null;return n&&(it.g=it[i]),((c,u,f,h)=>{h?u.data=u.data.replace(h,c):u.data.indexOf(c)===-1&&(u.data=f?c+u.data:u.data+c)})(it[i],t,r,a),i},hh=(e,t,n)=>e.reduce((r,o,s)=>{let i=t[s];if(i&&i.call){let a=i(n),c=a&&a.props&&a.props.className||/^go/.test(a)&&a;i=c?"."+c:a&&typeof a=="object"?a.props?"":vt(a,""):a===!1?"":a}return r+o+(i??"")},"");function Er(e){let t=this||{},n=e.call?e(t.p):e;return fh(n.unshift?n.raw?hh(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,lh(t.target),t.g,t.o,t.k)}let _a,Qo,Yo;Er.bind({g:1});let at=Er.bind({k:1});function ph(e,t,n,r){vt.p=t,_a=e,Qo=n,Yo=r}function bt(e,t){let n=this||{};return function(){let r=arguments;function o(s,i){let a=Object.assign({},s),c=a.className||o.className;n.p=Object.assign({theme:Qo&&Qo()},a),n.o=/ *go\d+/.test(c),a.className=Er.apply(n,r)+(c?" "+c:"");let u=e;return e[0]&&(u=a.as||e,delete a.as),Yo&&u[0]&&Yo(a),_a(u,a)}return o}}var mh=e=>typeof e=="function",xr=(e,t)=>mh(e)?e(t):e,gh=(()=>{let e=0;return()=>(++e).toString()})(),Ta=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),yh=20,_r=new Map,vh=1e3,Pa=e=>{if(_r.has(e))return;let t=setTimeout(()=>{_r.delete(e),Vt({type:4,toastId:e})},vh);_r.set(e,t)},bh=e=>{let t=_r.get(e);t&&clearTimeout(t)},Zo=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,yh)};case 1:return t.toast.id&&bh(t.toast.id),{...e,toasts:e.toasts.map(s=>s.id===t.toast.id?{...s,...t.toast}:s)};case 2:let{toast:n}=t;return e.toasts.find(s=>s.id===n.id)?Zo(e,{type:1,toast:n}):Zo(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?Pa(r):e.toasts.forEach(s=>{Pa(s.id)}),{...e,toasts:e.toasts.map(s=>s.id===r||r===void 0?{...s,visible:!1}:s)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(s=>s.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(s=>({...s,pauseDuration:s.pauseDuration+o}))}}},Tr=[],Pr={toasts:[],pausedAt:void 0},Vt=e=>{Pr=Zo(Pr,e),Tr.forEach(t=>{t(Pr)})},wh={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Ch=(e={})=>{let[t,n]=x.useState(Pr);x.useEffect(()=>(Tr.push(n),()=>{let o=Tr.indexOf(n);o>-1&&Tr.splice(o,1)}),[t]);let r=t.toasts.map(o=>{var s,i;return{...e,...e[o.type],...o,duration:o.duration||((s=e[o.type])==null?void 0:s.duration)||(e==null?void 0:e.duration)||wh[o.type],style:{...e.style,...(i=e[o.type])==null?void 0:i.style,...o.style}}});return{...t,toasts:r}},Sh=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(n==null?void 0:n.id)||gh()}),Kn=e=>(t,n)=>{let r=Sh(t,e,n);return Vt({type:2,toast:r}),r.id},Oe=(e,t)=>Kn("blank")(e,t);Oe.error=Kn("error"),Oe.success=Kn("success"),Oe.loading=Kn("loading"),Oe.custom=Kn("custom"),Oe.dismiss=e=>{Vt({type:3,toastId:e})},Oe.remove=e=>Vt({type:4,toastId:e}),Oe.promise=(e,t,n)=>{let r=Oe.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(o=>(Oe.success(xr(t.success,o),{id:r,...n,...n==null?void 0:n.success}),o)).catch(o=>{Oe.error(xr(t.error,o),{id:r,...n,...n==null?void 0:n.error})}),e};var Eh=(e,t)=>{Vt({type:1,toast:{id:e,height:t}})},xh=()=>{Vt({type:5,time:Date.now()})},_h=e=>{let{toasts:t,pausedAt:n}=Ch(e);x.useEffect(()=>{if(n)return;let s=Date.now(),i=t.map(a=>{if(a.duration===1/0)return;let c=(a.duration||0)+a.pauseDuration-(s-a.createdAt);if(c<0){a.visible&&Oe.dismiss(a.id);return}return setTimeout(()=>Oe.dismiss(a.id),c)});return()=>{i.forEach(a=>a&&clearTimeout(a))}},[t,n]);let r=x.useCallback(()=>{n&&Vt({type:6,time:Date.now()})},[n]),o=x.useCallback((s,i)=>{let{reverseOrder:a=!1,gutter:c=8,defaultPosition:u}=i||{},f=t.filter(g=>(g.position||u)===(s.position||u)&&g.height),h=f.findIndex(g=>g.id===s.id),m=f.filter((g,S)=>S<h&&g.visible).length;return f.filter(g=>g.visible).slice(...a?[m+1]:[0,m]).reduce((g,S)=>g+(S.height||0)+c,0)},[t]);return{toasts:t,handlers:{updateHeight:Eh,startPause:xh,endPause:r,calculateOffset:o}}},Th=at`
35
+ `):"",this.name="UnsubscriptionError",this.errors=n}});function qo(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Cr=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,r,o,s;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var a=Ho(i),c=a.next();!c.done;c=a.next()){var l=c.value;l.remove(this)}}catch(p){t={error:p}}finally{try{c&&!c.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}else i.remove(this);var f=this.initialTeardown;if(st(f))try{f()}catch(p){s=p instanceof zo?p.errors:[p]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var m=Ho(h),g=m.next();!g.done;g=m.next()){var S=g.value;try{ya(S)}catch(p){s=s??[],p instanceof zo?s=wr(wr([],Vo(s)),Vo(p.errors)):s.push(p)}}}catch(p){r={error:p}}finally{try{g&&!g.done&&(o=m.return)&&o.call(m)}finally{if(r)throw r.error}}}if(s)throw new zo(s)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)ya(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&qo(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&qo(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),ma=Cr.EMPTY;function ga(e){return e instanceof Cr||e&&"closed"in e&&st(e.remove)&&st(e.add)&&st(e.unsubscribe)}function ya(e){st(e)?e():e.unsubscribe()}var Kf={Promise:void 0},Qf={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,wr([e,t],Vo(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Yf(e){Qf.setTimeout(function(){throw e})}function va(){}function Sr(e){e()}var ba=function(e){Kn(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,ga(n)&&n.add(r)):r.destination=Jf,r}return t.create=function(n,r,o){return new Go(n,r,o)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Cr),Zf=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(r){Er(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){Er(r)}else Er(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){Er(n)}},e}(),Go=function(e){Kn(t,e);function t(n,r,o){var s=e.call(this)||this,i;return st(n)||!n?i={next:n??void 0,error:r??void 0,complete:o??void 0}:i=n,s.destination=new Zf(i),s}return t}(ba);function Er(e){Yf(e)}function Xf(e){throw e}var Jf={closed:!0,next:va,error:Xf,complete:va},eh=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function th(e){return e}function nh(e){return e.length===0?th:e.length===1?e[0]:function(n){return e.reduce(function(r,o){return o(r)},n)}}var wa=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,r){var o=this,s=oh(t)?t:new Go(t,n,r);return Sr(function(){var i=o,a=i.operator,c=i.source;s.add(a?a.call(s,c):c?o._subscribe(s):o._trySubscribe(s))}),s},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var r=this;return n=Ca(n),new n(function(o,s){var i=new Go({next:function(a){try{t(a)}catch(c){s(c),i.unsubscribe()}},error:s,complete:o});r.subscribe(i)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[eh]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return nh(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=Ca(t),new t(function(r,o){var s;n.subscribe(function(i){return s=i},function(i){return o(i)},function(){return r(s)})})},e.create=function(t){return new e(t)},e}();function Ca(e){var t;return(t=e??Kf.Promise)!==null&&t!==void 0?t:Promise}function rh(e){return e&&st(e.next)&&st(e.error)&&st(e.complete)}function oh(e){return e&&e instanceof ba||rh(e)&&ga(e)}var sh=pa(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Sa=function(e){Kn(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var r=new Ea(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new sh},t.prototype.next=function(n){var r=this;Sr(function(){var o,s;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var i=Ho(r.currentObservers),a=i.next();!a.done;a=i.next()){var c=a.value;c.next(n)}}catch(l){o={error:l}}finally{try{a&&!a.done&&(s=i.return)&&s.call(i)}finally{if(o)throw o.error}}}})},t.prototype.error=function(n){var r=this;Sr(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=n;for(var o=r.observers;o.length;)o.shift().error(n)}})},t.prototype.complete=function(){var n=this;Sr(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var r=this,o=this,s=o.hasError,i=o.isStopped,a=o.observers;return s||i?ma:(this.currentObservers=null,a.push(n),new Cr(function(){r.currentObservers=null,qo(a,n)}))},t.prototype._checkFinalizedStatuses=function(n){var r=this,o=r.hasError,s=r.thrownError,i=r.isStopped;o?n.error(s):i&&n.complete()},t.prototype.asObservable=function(){var n=new wa;return n.source=this,n},t.create=function(n,r){return new Ea(n,r)},t}(wa),Ea=function(e){Kn(t,e);function t(n,r){var o=e.call(this)||this;return o.destination=n,o.source=r,o}return t.prototype.next=function(n){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.next)===null||o===void 0||o.call(r,n)},t.prototype.error=function(n){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.error)===null||o===void 0||o.call(r,n)},t.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},t.prototype._subscribe=function(n){var r,o;return(o=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&o!==void 0?o:ma},t}(Sa),ih=function(e){Kn(t,e);function t(n){var r=e.call(this)||this;return r._value=n,r}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(n){var r=e.prototype._subscribe.call(this,n);return!r.closed&&n.next(this._value),r},t.prototype.getValue=function(){var n=this,r=n.hasError,o=n.thrownError,s=n._value;if(r)throw o;return this._throwIfClosed(),s},t.prototype.next=function(n){e.prototype.next.call(this,this._value=n)},t}(Sa);const ah=e=>{const{fontsLoaded:t}=fa(e.fonts);da(e.styleSheet);const n=()=>{const r=new ih(!0);window[Do]=r};x.useEffect(()=>{t&&window[Do].next(!1)},[t]),x.useEffect(()=>{n()},[])},ch=()=>{const e=window[Do];return Bi(e,e.getValue()??void 0)},Ko="theme",xa=()=>document.documentElement.dataset[Ko]==="dark"?"dark":"light",lh=()=>{const[e,t]=x.useState(xa());return x.useEffect(()=>{const n=document.documentElement,r=()=>t(xa),o=new MutationObserver(s=>{for(const i of s)i.type==="attributes"&&i.attributeName===`data-${Ko}`&&r()});return o.observe(n,{attributes:!0,attributeFilter:[`data-${Ko}`]}),r(),()=>{o.disconnect()}},[]),e},uh=e=>e!==void 0,dh=e=>e!==!0;let fh={data:""},hh=e=>{if(typeof window=="object"){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||fh},ph=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,mh=/\/\*[^]*?\*\/| +/g,_a=/\n+/g,vt=(e,t)=>{let n="",r="",o="";for(let s in e){let i=e[s];s[0]=="@"?s[1]=="i"?n=s+" "+i+";":r+=s[1]=="f"?vt(i,s):s+"{"+vt(i,s[1]=="k"?"":t)+"}":typeof i=="object"?r+=vt(i,t?t.replace(/([^,])+/g,a=>s.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,a):a?a+" "+c:c)):s):i!=null&&(s=/^--/.test(s)?s:s.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=vt.p?vt.p(s,i):s+":"+i+";")}return n+(t&&o?t+"{"+o+"}":o)+r},it={},Ta=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+Ta(e[n]);return t}return e},gh=(e,t,n,r,o)=>{let s=Ta(e),i=it[s]||(it[s]=(c=>{let l=0,f=11;for(;l<c.length;)f=101*f+c.charCodeAt(l++)>>>0;return"go"+f})(s));if(!it[i]){let c=s!==e?e:(l=>{let f,h,m=[{}];for(;f=ph.exec(l.replace(mh,""));)f[4]?m.shift():f[3]?(h=f[3].replace(_a," ").trim(),m.unshift(m[0][h]=m[0][h]||{})):m[0][f[1]]=f[2].replace(_a," ").trim();return m[0]})(e);it[i]=vt(o?{["@keyframes "+i]:c}:c,n?"":"."+i)}let a=n&&it.g?it.g:null;return n&&(it.g=it[i]),((c,l,f,h)=>{h?l.data=l.data.replace(h,c):l.data.indexOf(c)===-1&&(l.data=f?c+l.data:l.data+c)})(it[i],t,r,a),i},yh=(e,t,n)=>e.reduce((r,o,s)=>{let i=t[s];if(i&&i.call){let a=i(n),c=a&&a.props&&a.props.className||/^go/.test(a)&&a;i=c?"."+c:a&&typeof a=="object"?a.props?"":vt(a,""):a===!1?"":a}return r+o+(i??"")},"");function xr(e){let t=this||{},n=e.call?e(t.p):e;return gh(n.unshift?n.raw?yh(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,hh(t.target),t.g,t.o,t.k)}let Pa,Qo,Yo;xr.bind({g:1});let at=xr.bind({k:1});function vh(e,t,n,r){vt.p=t,Pa=e,Qo=n,Yo=r}function bt(e,t){let n=this||{};return function(){let r=arguments;function o(s,i){let a=Object.assign({},s),c=a.className||o.className;n.p=Object.assign({theme:Qo&&Qo()},a),n.o=/ *go\d+/.test(c),a.className=xr.apply(n,r)+(c?" "+c:"");let l=e;return e[0]&&(l=a.as||e,delete a.as),Yo&&l[0]&&Yo(a),Pa(l,a)}return o}}var bh=e=>typeof e=="function",_r=(e,t)=>bh(e)?e(t):e,wh=(()=>{let e=0;return()=>(++e).toString()})(),Aa=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Ch=20,Tr=new Map,Sh=1e3,Ra=e=>{if(Tr.has(e))return;let t=setTimeout(()=>{Tr.delete(e),Vt({type:4,toastId:e})},Sh);Tr.set(e,t)},Eh=e=>{let t=Tr.get(e);t&&clearTimeout(t)},Zo=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,Ch)};case 1:return t.toast.id&&Eh(t.toast.id),{...e,toasts:e.toasts.map(s=>s.id===t.toast.id?{...s,...t.toast}:s)};case 2:let{toast:n}=t;return e.toasts.find(s=>s.id===n.id)?Zo(e,{type:1,toast:n}):Zo(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?Ra(r):e.toasts.forEach(s=>{Ra(s.id)}),{...e,toasts:e.toasts.map(s=>s.id===r||r===void 0?{...s,visible:!1}:s)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(s=>s.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(s=>({...s,pauseDuration:s.pauseDuration+o}))}}},Pr=[],Ar={toasts:[],pausedAt:void 0},Vt=e=>{Ar=Zo(Ar,e),Pr.forEach(t=>{t(Ar)})},xh={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},_h=(e={})=>{let[t,n]=x.useState(Ar);x.useEffect(()=>(Pr.push(n),()=>{let o=Pr.indexOf(n);o>-1&&Pr.splice(o,1)}),[t]);let r=t.toasts.map(o=>{var s,i;return{...e,...e[o.type],...o,duration:o.duration||((s=e[o.type])==null?void 0:s.duration)||(e==null?void 0:e.duration)||xh[o.type],style:{...e.style,...(i=e[o.type])==null?void 0:i.style,...o.style}}});return{...t,toasts:r}},Th=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(n==null?void 0:n.id)||wh()}),Qn=e=>(t,n)=>{let r=Th(t,e,n);return Vt({type:2,toast:r}),r.id},Re=(e,t)=>Qn("blank")(e,t);Re.error=Qn("error"),Re.success=Qn("success"),Re.loading=Qn("loading"),Re.custom=Qn("custom"),Re.dismiss=e=>{Vt({type:3,toastId:e})},Re.remove=e=>Vt({type:4,toastId:e}),Re.promise=(e,t,n)=>{let r=Re.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(o=>(Re.success(_r(t.success,o),{id:r,...n,...n==null?void 0:n.success}),o)).catch(o=>{Re.error(_r(t.error,o),{id:r,...n,...n==null?void 0:n.error})}),e};var Ph=(e,t)=>{Vt({type:1,toast:{id:e,height:t}})},Ah=()=>{Vt({type:5,time:Date.now()})},Rh=e=>{let{toasts:t,pausedAt:n}=_h(e);x.useEffect(()=>{if(n)return;let s=Date.now(),i=t.map(a=>{if(a.duration===1/0)return;let c=(a.duration||0)+a.pauseDuration-(s-a.createdAt);if(c<0){a.visible&&Re.dismiss(a.id);return}return setTimeout(()=>Re.dismiss(a.id),c)});return()=>{i.forEach(a=>a&&clearTimeout(a))}},[t,n]);let r=x.useCallback(()=>{n&&Vt({type:6,time:Date.now()})},[n]),o=x.useCallback((s,i)=>{let{reverseOrder:a=!1,gutter:c=8,defaultPosition:l}=i||{},f=t.filter(g=>(g.position||l)===(s.position||l)&&g.height),h=f.findIndex(g=>g.id===s.id),m=f.filter((g,S)=>S<h&&g.visible).length;return f.filter(g=>g.visible).slice(...a?[m+1]:[0,m]).reduce((g,S)=>g+(S.height||0)+c,0)},[t]);return{toasts:t,handlers:{updateHeight:Ph,startPause:Ah,endPause:r,calculateOffset:o}}},Oh=at`
36
36
  from {
37
37
  transform: scale(0) rotate(45deg);
38
38
  opacity: 0;
@@ -40,7 +40,7 @@ from {
40
40
  to {
41
41
  transform: scale(1) rotate(45deg);
42
42
  opacity: 1;
43
- }`,Ph=at`
43
+ }`,jh=at`
44
44
  from {
45
45
  transform: scale(0);
46
46
  opacity: 0;
@@ -48,7 +48,7 @@ from {
48
48
  to {
49
49
  transform: scale(1);
50
50
  opacity: 1;
51
- }`,Ah=at`
51
+ }`,Ih=at`
52
52
  from {
53
53
  transform: scale(0) rotate(90deg);
54
54
  opacity: 0;
@@ -56,7 +56,7 @@ from {
56
56
  to {
57
57
  transform: scale(1) rotate(90deg);
58
58
  opacity: 1;
59
- }`,Oh=bt("div")`
59
+ }`,Dh=bt("div")`
60
60
  width: 20px;
61
61
  opacity: 0;
62
62
  height: 20px;
@@ -65,14 +65,14 @@ to {
65
65
  position: relative;
66
66
  transform: rotate(45deg);
67
67
 
68
- animation: ${Th} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
68
+ animation: ${Oh} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
69
69
  forwards;
70
70
  animation-delay: 100ms;
71
71
 
72
72
  &:after,
73
73
  &:before {
74
74
  content: '';
75
- animation: ${Ph} 0.15s ease-out forwards;
75
+ animation: ${jh} 0.15s ease-out forwards;
76
76
  animation-delay: 150ms;
77
77
  position: absolute;
78
78
  border-radius: 3px;
@@ -85,18 +85,18 @@ to {
85
85
  }
86
86
 
87
87
  &:before {
88
- animation: ${Ah} 0.15s ease-out forwards;
88
+ animation: ${Ih} 0.15s ease-out forwards;
89
89
  animation-delay: 180ms;
90
90
  transform: rotate(90deg);
91
91
  }
92
- `,Rh=at`
92
+ `,Lh=at`
93
93
  from {
94
94
  transform: rotate(0deg);
95
95
  }
96
96
  to {
97
97
  transform: rotate(360deg);
98
98
  }
99
- `,jh=bt("div")`
99
+ `,Nh=bt("div")`
100
100
  width: 12px;
101
101
  height: 12px;
102
102
  box-sizing: border-box;
@@ -104,8 +104,8 @@ to {
104
104
  border-radius: 100%;
105
105
  border-color: ${e=>e.secondary||"#e0e0e0"};
106
106
  border-right-color: ${e=>e.primary||"#616161"};
107
- animation: ${Rh} 1s linear infinite;
108
- `,Ih=at`
107
+ animation: ${Lh} 1s linear infinite;
108
+ `,Mh=at`
109
109
  from {
110
110
  transform: scale(0) rotate(45deg);
111
111
  opacity: 0;
@@ -113,7 +113,7 @@ from {
113
113
  to {
114
114
  transform: scale(1) rotate(45deg);
115
115
  opacity: 1;
116
- }`,Dh=at`
116
+ }`,kh=at`
117
117
  0% {
118
118
  height: 0;
119
119
  width: 0;
@@ -127,7 +127,7 @@ to {
127
127
  100% {
128
128
  opacity: 1;
129
129
  height: 10px;
130
- }`,Lh=bt("div")`
130
+ }`,$h=bt("div")`
131
131
  width: 20px;
132
132
  opacity: 0;
133
133
  height: 20px;
@@ -136,13 +136,13 @@ to {
136
136
  position: relative;
137
137
  transform: rotate(45deg);
138
138
 
139
- animation: ${Ih} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
139
+ animation: ${Mh} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
140
140
  forwards;
141
141
  animation-delay: 100ms;
142
142
  &:after {
143
143
  content: '';
144
144
  box-sizing: border-box;
145
- animation: ${Dh} 0.2s ease-out forwards;
145
+ animation: ${kh} 0.2s ease-out forwards;
146
146
  opacity: 0;
147
147
  animation-delay: 200ms;
148
148
  position: absolute;
@@ -154,16 +154,16 @@ to {
154
154
  height: 10px;
155
155
  width: 6px;
156
156
  }
157
- `,Nh=bt("div")`
157
+ `,Fh=bt("div")`
158
158
  position: absolute;
159
- `,Mh=bt("div")`
159
+ `,Bh=bt("div")`
160
160
  position: relative;
161
161
  display: flex;
162
162
  justify-content: center;
163
163
  align-items: center;
164
164
  min-width: 20px;
165
165
  min-height: 20px;
166
- `,kh=at`
166
+ `,Uh=at`
167
167
  from {
168
168
  transform: scale(0.6);
169
169
  opacity: 0.4;
@@ -171,20 +171,20 @@ from {
171
171
  to {
172
172
  transform: scale(1);
173
173
  opacity: 1;
174
- }`,$h=bt("div")`
174
+ }`,Wh=bt("div")`
175
175
  position: relative;
176
176
  transform: scale(0.6);
177
177
  opacity: 0.4;
178
178
  min-width: 20px;
179
- animation: ${kh} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
179
+ animation: ${Uh} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
180
180
  forwards;
181
- `,Fh=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?d.createElement($h,null,t):t:n==="blank"?null:d.createElement(Mh,null,d.createElement(jh,{...r}),n!=="loading"&&d.createElement(Nh,null,n==="error"?d.createElement(Oh,{...r}):d.createElement(Lh,{...r})))},Bh=e=>`
181
+ `,Hh=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?d.createElement(Wh,null,t):t:n==="blank"?null:d.createElement(Bh,null,d.createElement(Nh,{...r}),n!=="loading"&&d.createElement(Fh,null,n==="error"?d.createElement(Dh,{...r}):d.createElement($h,{...r})))},Vh=e=>`
182
182
  0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
183
183
  100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
184
- `,Uh=e=>`
184
+ `,zh=e=>`
185
185
  0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
186
186
  100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
187
- `,Wh="0%{opacity:0;} 100%{opacity:1;}",Hh="0%{opacity:1;} 100%{opacity:0;}",Vh=bt("div")`
187
+ `,qh="0%{opacity:0;} 100%{opacity:1;}",Gh="0%{opacity:1;} 100%{opacity:0;}",Kh=bt("div")`
188
188
  display: flex;
189
189
  align-items: center;
190
190
  background: #fff;
@@ -196,20 +196,20 @@ to {
196
196
  pointer-events: auto;
197
197
  padding: 8px 10px;
198
198
  border-radius: 8px;
199
- `,zh=bt("div")`
199
+ `,Qh=bt("div")`
200
200
  display: flex;
201
201
  justify-content: center;
202
202
  margin: 4px 10px;
203
203
  color: inherit;
204
204
  flex: 1 1 auto;
205
205
  white-space: pre-line;
206
- `,qh=(e,t)=>{let n=e.includes("top")?1:-1,[r,o]=Ta()?[Wh,Hh]:[Bh(n),Uh(n)];return{animation:t?`${at(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${at(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},Gh=d.memo(({toast:e,position:t,style:n,children:r})=>{let o=e.height?qh(e.position||t||"top-center",e.visible):{opacity:0},s=d.createElement(Fh,{toast:e}),i=d.createElement(zh,{...e.ariaProps},xr(e.message,e));return d.createElement(Vh,{className:e.className,style:{...o,...n,...e.style}},typeof r=="function"?r({icon:s,message:i}):d.createElement(d.Fragment,null,s,i))});ph(d.createElement);var Kh=({id:e,className:t,style:n,onHeightUpdate:r,children:o})=>{let s=d.useCallback(i=>{if(i){let a=()=>{let c=i.getBoundingClientRect().height;r(e,c)};a(),new MutationObserver(a).observe(i,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return d.createElement("div",{ref:s,className:t,style:n},o)},Qh=(e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},o=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:Ta()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...o}},Yh=Er`
206
+ `,Yh=(e,t)=>{let n=e.includes("top")?1:-1,[r,o]=Aa()?[qh,Gh]:[Vh(n),zh(n)];return{animation:t?`${at(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${at(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},Zh=d.memo(({toast:e,position:t,style:n,children:r})=>{let o=e.height?Yh(e.position||t||"top-center",e.visible):{opacity:0},s=d.createElement(Hh,{toast:e}),i=d.createElement(Qh,{...e.ariaProps},_r(e.message,e));return d.createElement(Kh,{className:e.className,style:{...o,...n,...e.style}},typeof r=="function"?r({icon:s,message:i}):d.createElement(d.Fragment,null,s,i))});vh(d.createElement);var Xh=({id:e,className:t,style:n,onHeightUpdate:r,children:o})=>{let s=d.useCallback(i=>{if(i){let a=()=>{let c=i.getBoundingClientRect().height;r(e,c)};a(),new MutationObserver(a).observe(i,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return d.createElement("div",{ref:s,className:t,style:n},o)},Jh=(e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},o=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:Aa()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...o}},ep=xr`
207
207
  z-index: 9999;
208
208
  > * {
209
209
  pointer-events: auto;
210
210
  }
211
- `,Ar=16,Zh=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:o,containerStyle:s,containerClassName:i})=>{let{toasts:a,handlers:c}=_h(n);return d.createElement("div",{style:{position:"fixed",zIndex:9999,top:Ar,left:Ar,right:Ar,bottom:Ar,pointerEvents:"none",...s},className:i,onMouseEnter:c.startPause,onMouseLeave:c.endPause},a.map(u=>{let f=u.position||t,h=c.calculateOffset(u,{reverseOrder:e,gutter:r,defaultPosition:t}),m=Qh(f,h);return d.createElement(Kh,{id:u.id,key:u.id,onHeightUpdate:c.updateHeight,className:u.visible?Yh:"",style:m},u.type==="custom"?xr(u.message,u):o?o(u):d.createElement(Gh,{toast:u,position:f}))}))},Aa=Oe;const Xo=()=>({notify:x.useCallback((t,n,r)=>{const o={style:{background:"var(--platform-background-primary-color)",color:"var(--platform-text-primary-color)"}};n==="warning"||n==="info"?Aa(t,{...o,icon:n==="warning"?"⚠️":"ℹ️"}):Aa[n](t,o),r&&console.error(r)},[])});var pn=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},zt=typeof window>"u"||"Deno"in globalThis;function we(){}function Xh(e,t){return typeof e=="function"?e(t):e}function Jo(e){return typeof e=="number"&&e>=0&&e!==1/0}function Oa(e,t){return Math.max(e+(t||0)-Date.now(),0)}function wt(e,t){return typeof e=="function"?e(t):e}function Me(e,t){return typeof e=="function"?e(t):e}function Ra(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:i,stale:a}=e;if(i){if(r){if(t.queryHash!==es(i,t.options))return!1}else if(!Qn(t.queryKey,i))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||s&&!s(t))}function ja(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(qt(t.options.mutationKey)!==qt(s))return!1}else if(!Qn(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function es(e,t){return((t==null?void 0:t.queryKeyHashFn)||qt)(e)}function qt(e){return JSON.stringify(e,(t,n)=>ns(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Qn(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Qn(e[n],t[n])):!1}function ts(e,t){if(e===t)return e;const n=Ia(e)&&Ia(t);if(n||ns(e)&&ns(t)){const r=n?e:Object.keys(e),o=r.length,s=n?t:Object.keys(t),i=s.length,a=n?[]:{};let c=0;for(let u=0;u<i;u++){const f=n?u:s[u];(!n&&r.includes(f)||n)&&e[f]===void 0&&t[f]===void 0?(a[f]=void 0,c++):(a[f]=ts(e[f],t[f]),a[f]===e[f]&&e[f]!==void 0&&c++)}return o===i&&c===o?e:a}return t}function Or(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Ia(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ns(e){if(!Da(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Da(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Da(e){return Object.prototype.toString.call(e)==="[object Object]"}function Jh(e){return new Promise(t=>{setTimeout(t,e)})}function rs(e,t,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(e,t);if(n.structuralSharing!==!1){try{return ts(e,t)}catch(r){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`),r}return ts(e,t)}return t}function ep(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function tp(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Rr=Symbol();function La(e,t){return e.queryFn===Rr&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Rr?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Na(e,t){return typeof e=="function"?e(...t):!!e}var np=(Rd=class extends pn{constructor(){super();k(this,nn);k(this,Pt);k(this,An);j(this,An,t=>{if(!zt&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){C(this,Pt)||this.setEventListener(C(this,An))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,Pt))==null||t.call(this),j(this,Pt,void 0))}setEventListener(t){var n;j(this,An,t),(n=C(this,Pt))==null||n.call(this),j(this,Pt,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){C(this,nn)!==t&&(j(this,nn,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof C(this,nn)=="boolean"?C(this,nn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},nn=new WeakMap,Pt=new WeakMap,An=new WeakMap,Rd),os=new np,rp=(jd=class extends pn{constructor(){super();k(this,On,!0);k(this,At);k(this,Rn);j(this,Rn,t=>{if(!zt&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){C(this,At)||this.setEventListener(C(this,Rn))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,At))==null||t.call(this),j(this,At,void 0))}setEventListener(t){var n;j(this,Rn,t),(n=C(this,At))==null||n.call(this),j(this,At,t(this.setOnline.bind(this)))}setOnline(t){C(this,On)!==t&&(j(this,On,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return C(this,On)}},On=new WeakMap,At=new WeakMap,Rn=new WeakMap,jd),jr=new rp;function ss(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function op(e){return Math.min(1e3*2**e,3e4)}function Ma(e){return(e??"online")==="online"?jr.isOnline():!0}var ka=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function is(e){return e instanceof ka}function $a(e){let t=!1,n=0,r=!1,o;const s=ss(),i=p=>{var y;r||(m(new ka(p)),(y=e.abort)==null||y.call(e))},a=()=>{t=!0},c=()=>{t=!1},u=()=>os.isFocused()&&(e.networkMode==="always"||jr.isOnline())&&e.canRun(),f=()=>Ma(e.networkMode)&&e.canRun(),h=p=>{var y;r||(r=!0,(y=e.onSuccess)==null||y.call(e,p),o==null||o(),s.resolve(p))},m=p=>{var y;r||(r=!0,(y=e.onError)==null||y.call(e,p),o==null||o(),s.reject(p))},g=()=>new Promise(p=>{var y;o=v=>{(r||u())&&p(v)},(y=e.onPause)==null||y.call(e)}).then(()=>{var p;o=void 0,r||(p=e.onContinue)==null||p.call(e)}),S=()=>{if(r)return;let p;const y=n===0?e.initialPromise:void 0;try{p=y??e.fn()}catch(v){p=Promise.reject(v)}Promise.resolve(p).then(h).catch(v=>{var A;if(r)return;const w=e.retry??(zt?0:3),E=e.retryDelay??op,T=typeof E=="function"?E(n,v):E,P=w===!0||typeof w=="number"&&n<w||typeof w=="function"&&w(n,v);if(t||!P){m(v);return}n++,(A=e.onFail)==null||A.call(e,n,v),Jh(T).then(()=>u()?void 0:g()).then(()=>{t?m(v):S()})})};return{promise:s,cancel:i,continue:()=>(o==null||o(),s),cancelRetry:a,continueRetry:c,canStart:f,start:()=>(f()?S():g().then(S),s)}}var sp=e=>setTimeout(e,0);function ip(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=sp;const s=a=>{t?e.push(a):o(()=>{n(a)})},i=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(c=>{n(c)})})})};return{batch:a=>{let c;t++;try{c=a()}finally{t--,t||i()}return c},batchCalls:a=>(...c)=>{s(()=>{a(...c)})},schedule:s,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var me=ip(),Fa=(Id=class{constructor(){k(this,rn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Jo(this.gcTime)&&j(this,rn,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(zt?1/0:5*60*1e3))}clearGcTimeout(){C(this,rn)&&(clearTimeout(C(this,rn)),j(this,rn,void 0))}},rn=new WeakMap,Id),ap=(Dd=class extends Fa{constructor(t){super();k(this,We);k(this,jn);k(this,In);k(this,Ie);k(this,on);k(this,be);k(this,lr);k(this,sn);j(this,sn,!1),j(this,lr,t.defaultOptions),this.setOptions(t.options),this.observers=[],j(this,on,t.client),j(this,Ie,C(this,on).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,j(this,jn,cp(this.options)),this.state=t.state??C(this,jn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=C(this,be))==null?void 0:t.promise}setOptions(t){this.options={...C(this,lr),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&C(this,Ie).remove(this)}setData(t,n){const r=rs(this.state.data,t,this.options);return V(this,We,mt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){V(this,We,mt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=C(this,be))==null?void 0:r.promise;return(o=C(this,be))==null||o.cancel(t),n?n.then(we).catch(we):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(C(this,jn))}isActive(){return this.observers.some(t=>Me(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Rr||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>wt(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Oa(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,be))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,be))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),C(this,Ie).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(C(this,be)&&(C(this,sn)?C(this,be).cancel({revert:!0}):C(this,be).cancelRetry()),this.scheduleGc()),C(this,Ie).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||V(this,We,mt).call(this,{type:"invalidate"})}fetch(t,n){var u,f,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(C(this,be))return C(this,be).continueRetry(),C(this,be).promise}if(t&&this.setOptions(t),!this.options.queryFn){const m=this.observers.find(g=>g.options.queryFn);m&&this.setOptions(m.options)}Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']");const r=new AbortController,o=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(j(this,sn,!0),r.signal)})},s=()=>{const m=La(this.options,n),S=(()=>{const p={client:C(this,on),queryKey:this.queryKey,meta:this.meta};return o(p),p})();return j(this,sn,!1),this.options.persister?this.options.persister(m,S,this):m(S)},a=(()=>{const m={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:C(this,on),state:this.state,fetchFn:s};return o(m),m})();(u=this.options.behavior)==null||u.onFetch(a,this),j(this,In,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=a.fetchOptions)==null?void 0:f.meta))&&V(this,We,mt).call(this,{type:"fetch",meta:(h=a.fetchOptions)==null?void 0:h.meta});const c=m=>{var g,S,p,y;is(m)&&m.silent||V(this,We,mt).call(this,{type:"error",error:m}),is(m)||((S=(g=C(this,Ie).config).onError)==null||S.call(g,m,this),(y=(p=C(this,Ie).config).onSettled)==null||y.call(p,this.state.data,m,this)),this.scheduleGc()};return j(this,be,$a({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:m=>{var g,S,p,y;if(m===void 0){console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(m)}catch(v){c(v);return}(S=(g=C(this,Ie).config).onSuccess)==null||S.call(g,m,this),(y=(p=C(this,Ie).config).onSettled)==null||y.call(p,m,this.state.error,this),this.scheduleGc()},onError:c,onFail:(m,g)=>{V(this,We,mt).call(this,{type:"failed",failureCount:m,error:g})},onPause:()=>{V(this,We,mt).call(this,{type:"pause"})},onContinue:()=>{V(this,We,mt).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),C(this,be).start()}},jn=new WeakMap,In=new WeakMap,Ie=new WeakMap,on=new WeakMap,be=new WeakMap,lr=new WeakMap,sn=new WeakMap,We=new WeakSet,mt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Ba(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return is(o)&&o.revert&&C(this,In)?{...C(this,In),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),me.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),C(this,Ie).notify({query:this,type:"updated",action:t})})},Dd);function Ba(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ma(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function cp(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var lp=(Ld=class extends pn{constructor(t={}){super();k(this,et);this.config=t,j(this,et,new Map)}build(t,n,r){const o=n.queryKey,s=n.queryHash??es(o,n);let i=this.get(s);return i||(i=new ap({client:t,queryKey:o,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(i)),i}add(t){C(this,et).has(t.queryHash)||(C(this,et).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=C(this,et).get(t.queryHash);n&&(t.destroy(),n===t&&C(this,et).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){me.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return C(this,et).get(t)}getAll(){return[...C(this,et).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Ra(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Ra(t,r)):n}notify(t){me.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){me.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){me.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},et=new WeakMap,Ld),up=(Nd=class extends Fa{constructor(t){super();k(this,nt);k(this,tt);k(this,Ce);k(this,an);this.mutationId=t.mutationId,j(this,Ce,t.mutationCache),j(this,tt,[]),this.state=t.state||Ua(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){C(this,tt).includes(t)||(C(this,tt).push(t),this.clearGcTimeout(),C(this,Ce).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){j(this,tt,C(this,tt).filter(n=>n!==t)),this.scheduleGc(),C(this,Ce).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){C(this,tt).length||(this.state.status==="pending"?this.scheduleGc():C(this,Ce).remove(this))}continue(){var t;return((t=C(this,an))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,i,a,c,u,f,h,m,g,S,p,y,v,w,E,T,P,A,O,N;const n=()=>{V(this,nt,Ut).call(this,{type:"continue"})};j(this,an,$a({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(D,M)=>{V(this,nt,Ut).call(this,{type:"failed",failureCount:D,error:M})},onPause:()=>{V(this,nt,Ut).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>C(this,Ce).canRun(this)}));const r=this.state.status==="pending",o=!C(this,an).canStart();try{if(r)n();else{V(this,nt,Ut).call(this,{type:"pending",variables:t,isPaused:o}),await((i=(s=C(this,Ce).config).onMutate)==null?void 0:i.call(s,t,this));const M=await((c=(a=this.options).onMutate)==null?void 0:c.call(a,t));M!==this.state.context&&V(this,nt,Ut).call(this,{type:"pending",context:M,variables:t,isPaused:o})}const D=await C(this,an).start();return await((f=(u=C(this,Ce).config).onSuccess)==null?void 0:f.call(u,D,t,this.state.context,this)),await((m=(h=this.options).onSuccess)==null?void 0:m.call(h,D,t,this.state.context)),await((S=(g=C(this,Ce).config).onSettled)==null?void 0:S.call(g,D,null,this.state.variables,this.state.context,this)),await((y=(p=this.options).onSettled)==null?void 0:y.call(p,D,null,t,this.state.context)),V(this,nt,Ut).call(this,{type:"success",data:D}),D}catch(D){try{throw await((w=(v=C(this,Ce).config).onError)==null?void 0:w.call(v,D,t,this.state.context,this)),await((T=(E=this.options).onError)==null?void 0:T.call(E,D,t,this.state.context)),await((A=(P=C(this,Ce).config).onSettled)==null?void 0:A.call(P,void 0,D,this.state.variables,this.state.context,this)),await((N=(O=this.options).onSettled)==null?void 0:N.call(O,void 0,D,t,this.state.context)),D}finally{V(this,nt,Ut).call(this,{type:"error",error:D})}}finally{C(this,Ce).runNext(this)}}},tt=new WeakMap,Ce=new WeakMap,an=new WeakMap,nt=new WeakSet,Ut=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),me.batch(()=>{C(this,tt).forEach(r=>{r.onMutationUpdate(t)}),C(this,Ce).notify({mutation:this,type:"updated",action:t})})},Nd);function Ua(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var dp=(Md=class extends pn{constructor(t={}){super();k(this,dt);k(this,He);k(this,ur);this.config=t,j(this,dt,new Set),j(this,He,new Map),j(this,ur,0)}build(t,n,r){const o=new up({mutationCache:this,mutationId:++Ro(this,ur)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){C(this,dt).add(t);const n=Ir(t);if(typeof n=="string"){const r=C(this,He).get(n);r?r.push(t):C(this,He).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(C(this,dt).delete(t)){const n=Ir(t);if(typeof n=="string"){const r=C(this,He).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&C(this,He).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Ir(t);if(typeof n=="string"){const r=C(this,He).get(n),o=r==null?void 0:r.find(s=>s.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=Ir(t);if(typeof n=="string"){const o=(r=C(this,He).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){me.batch(()=>{C(this,dt).forEach(t=>{this.notify({type:"removed",mutation:t})}),C(this,dt).clear(),C(this,He).clear()})}getAll(){return Array.from(C(this,dt))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>ja(n,r))}findAll(t={}){return this.getAll().filter(n=>ja(t,n))}notify(t){me.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return me.batch(()=>Promise.all(t.map(n=>n.continue().catch(we))))}},dt=new WeakMap,He=new WeakMap,ur=new WeakMap,Md);function Ir(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Wa(e){return{onFetch:(t,n)=>{var f,h,m,g,S;const r=t.options,o=(m=(h=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:h.fetchMore)==null?void 0:m.direction,s=((g=t.state.data)==null?void 0:g.pages)||[],i=((S=t.state.data)==null?void 0:S.pageParams)||[];let a={pages:[],pageParams:[]},c=0;const u=async()=>{let p=!1;const y=E=>{Object.defineProperty(E,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)})},v=La(t.options,t.fetchOptions),w=async(E,T,P)=>{if(p)return Promise.reject();if(T==null&&E.pages.length)return Promise.resolve(E);const O=(()=>{const U={client:t.client,queryKey:t.queryKey,pageParam:T,direction:P?"backward":"forward",meta:t.options.meta};return y(U),U})(),N=await v(O),{maxPages:D}=t.options,M=P?tp:ep;return{pages:M(E.pages,N,D),pageParams:M(E.pageParams,T,D)}};if(o&&s.length){const E=o==="backward",T=E?fp:Ha,P={pages:s,pageParams:i},A=T(r,P);a=await w(P,A,E)}else{const E=e??s.length;do{const T=c===0?i[0]??r.initialPageParam:Ha(r,a);if(c>0&&T==null)break;a=await w(a,T),c++}while(c<E)}return a};t.options.persister?t.fetchFn=()=>{var p,y;return(y=(p=t.options).persister)==null?void 0:y.call(p,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Ha(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function fp(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var hp=(kd=class{constructor(e={}){k(this,ue);k(this,Ot);k(this,Rt);k(this,Dn);k(this,Ln);k(this,jt);k(this,Nn);k(this,Mn);j(this,ue,e.queryCache||new lp),j(this,Ot,e.mutationCache||new dp),j(this,Rt,e.defaultOptions||{}),j(this,Dn,new Map),j(this,Ln,new Map),j(this,jt,0)}mount(){Ro(this,jt)._++,C(this,jt)===1&&(j(this,Nn,os.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,ue).onFocus())})),j(this,Mn,jr.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,ue).onOnline())})))}unmount(){var e,t;Ro(this,jt)._--,C(this,jt)===0&&((e=C(this,Nn))==null||e.call(this),j(this,Nn,void 0),(t=C(this,Mn))==null||t.call(this),j(this,Mn,void 0))}isFetching(e){return C(this,ue).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return C(this,Ot).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,ue).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=C(this,ue).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(wt(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return C(this,ue).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=C(this,ue).get(r.queryHash),s=o==null?void 0:o.state.data,i=Xh(t,s);if(i!==void 0)return C(this,ue).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return me.batch(()=>C(this,ue).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,ue).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=C(this,ue);me.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=C(this,ue);return me.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=me.batch(()=>C(this,ue).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(we).catch(we)}invalidateQueries(e,t={}){return me.batch(()=>(C(this,ue).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=me.batch(()=>C(this,ue).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(we)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(we)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=C(this,ue).build(this,t);return n.isStaleByTime(wt(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(we).catch(we)}fetchInfiniteQuery(e){return e.behavior=Wa(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(we).catch(we)}ensureInfiniteQueryData(e){return e.behavior=Wa(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return jr.isOnline()?C(this,Ot).resumePausedMutations():Promise.resolve()}getQueryCache(){return C(this,ue)}getMutationCache(){return C(this,Ot)}getDefaultOptions(){return C(this,Rt)}setDefaultOptions(e){j(this,Rt,e)}setQueryDefaults(e,t){C(this,Dn).set(qt(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...C(this,Dn).values()],n={};return t.forEach(r=>{Qn(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){C(this,Ln).set(qt(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...C(this,Ln).values()],n={};return t.forEach(r=>{Qn(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...C(this,Rt).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=es(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Rr&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...C(this,Rt).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){C(this,ue).clear(),C(this,Ot).clear()}},ue=new WeakMap,Ot=new WeakMap,Rt=new WeakMap,Dn=new WeakMap,Ln=new WeakMap,jt=new WeakMap,Nn=new WeakMap,Mn=new WeakMap,kd),pp=($d=class extends pn{constructor(t,n){super();k(this,ee);k(this,Te);k(this,K);k(this,dr);k(this,Se);k(this,cn);k(this,kn);k(this,It);k(this,Dt);k(this,fr);k(this,$n);k(this,Fn);k(this,ln);k(this,un);k(this,Lt);k(this,Bn,new Set);this.options=n,j(this,Te,t),j(this,Dt,null),j(this,It,ss()),this.options.experimental_prefetchInRender||C(this,It).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(C(this,K).addObserver(this),Va(C(this,K),this.options)?V(this,ee,hr).call(this):this.updateResult(),V(this,ee,Ri).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return as(C(this,K),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return as(C(this,K),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,V(this,ee,ji).call(this),V(this,ee,Ii).call(this),C(this,K).removeObserver(this)}setOptions(t){const n=this.options,r=C(this,K);if(this.options=C(this,Te).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Me(this.options.enabled,C(this,K))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");V(this,ee,Di).call(this),C(this,K).setOptions(this.options),n._defaulted&&!Or(this.options,n)&&C(this,Te).getQueryCache().notify({type:"observerOptionsUpdated",query:C(this,K),observer:this});const o=this.hasListeners();o&&za(C(this,K),r,this.options,n)&&V(this,ee,hr).call(this),this.updateResult(),o&&(C(this,K)!==r||Me(this.options.enabled,C(this,K))!==Me(n.enabled,C(this,K))||wt(this.options.staleTime,C(this,K))!==wt(n.staleTime,C(this,K)))&&V(this,ee,Pi).call(this);const s=V(this,ee,Ai).call(this);o&&(C(this,K)!==r||Me(this.options.enabled,C(this,K))!==Me(n.enabled,C(this,K))||s!==C(this,Lt))&&V(this,ee,Oi).call(this,s)}getOptimisticResult(t){const n=C(this,Te).getQueryCache().build(C(this,Te),t),r=this.createResult(n,t);return gp(this,r)&&(j(this,Se,r),j(this,kn,this.options),j(this,cn,C(this,K).state)),r}getCurrentResult(){return C(this,Se)}trackResult(t,n){return new Proxy(t,{get:(r,o)=>(this.trackProp(o),n==null||n(o),Reflect.get(r,o))})}trackProp(t){C(this,Bn).add(t)}getCurrentQuery(){return C(this,K)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=C(this,Te).defaultQueryOptions(t),r=C(this,Te).getQueryCache().build(C(this,Te),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return V(this,ee,hr).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),C(this,Se)))}createResult(t,n){var D;const r=C(this,K),o=this.options,s=C(this,Se),i=C(this,cn),a=C(this,kn),u=t!==r?t.state:C(this,dr),{state:f}=t;let h={...f},m=!1,g;if(n._optimisticResults){const M=this.hasListeners(),U=!M&&Va(t,n),W=M&&za(t,r,n,o);(U||W)&&(h={...h,...Ba(f.data,t.options)}),n._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:S,errorUpdatedAt:p,status:y}=h;g=h.data;let v=!1;if(n.placeholderData!==void 0&&g===void 0&&y==="pending"){let M;s!=null&&s.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(M=s.data,v=!0):M=typeof n.placeholderData=="function"?n.placeholderData((D=C(this,Fn))==null?void 0:D.state.data,C(this,Fn)):n.placeholderData,M!==void 0&&(y="success",g=rs(s==null?void 0:s.data,M,n),m=!0)}if(n.select&&g!==void 0&&!v)if(s&&g===(i==null?void 0:i.data)&&n.select===C(this,fr))g=C(this,$n);else try{j(this,fr,n.select),g=n.select(g),g=rs(s==null?void 0:s.data,g,n),j(this,$n,g),j(this,Dt,null)}catch(M){j(this,Dt,M)}C(this,Dt)&&(S=C(this,Dt),g=C(this,$n),p=Date.now(),y="error");const w=h.fetchStatus==="fetching",E=y==="pending",T=y==="error",P=E&&w,A=g!==void 0,N={status:y,fetchStatus:h.fetchStatus,isPending:E,isSuccess:y==="success",isError:T,isInitialLoading:P,isLoading:P,data:g,dataUpdatedAt:h.dataUpdatedAt,error:S,errorUpdatedAt:p,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>u.dataUpdateCount||h.errorUpdateCount>u.errorUpdateCount,isFetching:w,isRefetching:w&&!E,isLoadingError:T&&!A,isPaused:h.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:T&&A,isStale:cs(t,n),refetch:this.refetch,promise:C(this,It)};if(this.options.experimental_prefetchInRender){const M=H=>{N.status==="error"?H.reject(N.error):N.data!==void 0&&H.resolve(N.data)},U=()=>{const H=j(this,It,N.promise=ss());M(H)},W=C(this,It);switch(W.status){case"pending":t.queryHash===r.queryHash&&M(W);break;case"fulfilled":(N.status==="error"||N.data!==W.value)&&U();break;case"rejected":(N.status!=="error"||N.error!==W.reason)&&U();break}}return N}updateResult(){const t=C(this,Se),n=this.createResult(C(this,K),this.options);if(j(this,cn,C(this,K).state),j(this,kn,this.options),C(this,cn).data!==void 0&&j(this,Fn,C(this,K)),Or(n,t))return;j(this,Se,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,s=typeof o=="function"?o():o;if(s==="all"||!s&&!C(this,Bn).size)return!0;const i=new Set(s??C(this,Bn));return this.options.throwOnError&&i.add("error"),Object.keys(C(this,Se)).some(a=>{const c=a;return C(this,Se)[c]!==t[c]&&i.has(c)})};V(this,ee,Jd).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&V(this,ee,Ri).call(this)}},Te=new WeakMap,K=new WeakMap,dr=new WeakMap,Se=new WeakMap,cn=new WeakMap,kn=new WeakMap,It=new WeakMap,Dt=new WeakMap,fr=new WeakMap,$n=new WeakMap,Fn=new WeakMap,ln=new WeakMap,un=new WeakMap,Lt=new WeakMap,Bn=new WeakMap,ee=new WeakSet,hr=function(t){V(this,ee,Di).call(this);let n=C(this,K).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(we)),n},Pi=function(){V(this,ee,ji).call(this);const t=wt(this.options.staleTime,C(this,K));if(zt||C(this,Se).isStale||!Jo(t))return;const r=Oa(C(this,Se).dataUpdatedAt,t)+1;j(this,ln,setTimeout(()=>{C(this,Se).isStale||this.updateResult()},r))},Ai=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(C(this,K)):this.options.refetchInterval)??!1},Oi=function(t){V(this,ee,Ii).call(this),j(this,Lt,t),!(zt||Me(this.options.enabled,C(this,K))===!1||!Jo(C(this,Lt))||C(this,Lt)===0)&&j(this,un,setInterval(()=>{(this.options.refetchIntervalInBackground||os.isFocused())&&V(this,ee,hr).call(this)},C(this,Lt)))},Ri=function(){V(this,ee,Pi).call(this),V(this,ee,Oi).call(this,V(this,ee,Ai).call(this))},ji=function(){C(this,ln)&&(clearTimeout(C(this,ln)),j(this,ln,void 0))},Ii=function(){C(this,un)&&(clearInterval(C(this,un)),j(this,un,void 0))},Di=function(){const t=C(this,Te).getQueryCache().build(C(this,Te),this.options);if(t===C(this,K))return;const n=C(this,K);j(this,K,t),j(this,dr,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Jd=function(t){me.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(C(this,Se))}),C(this,Te).getQueryCache().notify({query:C(this,K),type:"observerResultsUpdated"})})},$d);function mp(e,t){return Me(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Va(e,t){return mp(e,t)||e.state.data!==void 0&&as(e,t,t.refetchOnMount)}function as(e,t,n){if(Me(t.enabled,e)!==!1&&wt(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&cs(e,t)}return!1}function za(e,t,n,r){return(e!==t||Me(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&cs(e,n)}function cs(e,t){return Me(t.enabled,e)!==!1&&e.isStaleByTime(wt(t.staleTime,e))}function gp(e,t){return!Or(e.getCurrentResult(),t)}var yp=(Fd=class extends pn{constructor(n,r){super();k(this,ht);k(this,Nt);k(this,Mt);k(this,Pe);k(this,ft);j(this,Nt,n),this.setOptions(r),this.bindMethods(),V(this,ht,jo).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var o;const r=this.options;this.options=C(this,Nt).defaultMutationOptions(n),Or(this.options,r)||C(this,Nt).getMutationCache().notify({type:"observerOptionsUpdated",mutation:C(this,Pe),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&qt(r.mutationKey)!==qt(this.options.mutationKey)?this.reset():((o=C(this,Pe))==null?void 0:o.state.status)==="pending"&&C(this,Pe).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=C(this,Pe))==null||n.removeObserver(this)}onMutationUpdate(n){V(this,ht,jo).call(this),V(this,ht,Li).call(this,n)}getCurrentResult(){return C(this,Mt)}reset(){var n;(n=C(this,Pe))==null||n.removeObserver(this),j(this,Pe,void 0),V(this,ht,jo).call(this),V(this,ht,Li).call(this)}mutate(n,r){var o;return j(this,ft,r),(o=C(this,Pe))==null||o.removeObserver(this),j(this,Pe,C(this,Nt).getMutationCache().build(C(this,Nt),this.options)),C(this,Pe).addObserver(this),C(this,Pe).execute(n)}},Nt=new WeakMap,Mt=new WeakMap,Pe=new WeakMap,ft=new WeakMap,ht=new WeakSet,jo=function(){var r;const n=((r=C(this,Pe))==null?void 0:r.state)??Ua();j(this,Mt,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Li=function(n){me.batch(()=>{var r,o,s,i,a,c,u,f;if(C(this,ft)&&this.hasListeners()){const h=C(this,Mt).variables,m=C(this,Mt).context;(n==null?void 0:n.type)==="success"?((o=(r=C(this,ft)).onSuccess)==null||o.call(r,n.data,h,m),(i=(s=C(this,ft)).onSettled)==null||i.call(s,n.data,null,h,m)):(n==null?void 0:n.type)==="error"&&((c=(a=C(this,ft)).onError)==null||c.call(a,n.error,h,m),(f=(u=C(this,ft)).onSettled)==null||f.call(u,void 0,n.error,h,m))}this.listeners.forEach(h=>{h(C(this,Mt))})})},Fd),qa=d.createContext(void 0),ls=e=>{const t=d.useContext(qa);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},vp=({client:e,children:t})=>(d.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),l.jsx(qa.Provider,{value:e,children:t})),Ga=d.createContext(!1),bp=()=>d.useContext(Ga);Ga.Provider;function wp(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Cp=d.createContext(wp()),Sp=()=>d.useContext(Cp),Ep=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},xp=e=>{d.useEffect(()=>{e.clearReset()},[e])},_p=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||Na(n,[e.error,r])),Tp=e=>{if(e.suspense){const t=r=>r==="static"?r:Math.max(r??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...r)=>t(n(...r)):t(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},Pp=(e,t)=>e.isLoading&&e.isFetching&&!t,Ap=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Ka=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Op(e,t,n){var h,m,g,S,p;if(typeof e!="object"||Array.isArray(e))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=bp(),o=Sp(),s=ls(),i=s.defaultQueryOptions(e);(m=(h=s.getDefaultOptions().queries)==null?void 0:h._experimental_beforeQuery)==null||m.call(h,i),i.queryFn||console.error(`[${i.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`),i._optimisticResults=r?"isRestoring":"optimistic",Tp(i),Ep(i,o),xp(o);const a=!s.getQueryCache().get(i.queryHash),[c]=d.useState(()=>new t(s,i)),u=c.getOptimisticResult(i),f=!r&&e.subscribed!==!1;if(d.useSyncExternalStore(d.useCallback(y=>{const v=f?c.subscribe(me.batchCalls(y)):we;return c.updateResult(),v},[c,f]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),d.useEffect(()=>{c.setOptions(i)},[i,c]),Ap(i,u))throw Ka(i,c,o);if(_p({result:u,errorResetBoundary:o,throwOnError:i.throwOnError,query:s.getQueryCache().get(i.queryHash),suspense:i.suspense}))throw u.error;if((S=(g=s.getDefaultOptions().queries)==null?void 0:g._experimental_afterQuery)==null||S.call(g,i,u),i.experimental_prefetchInRender&&!zt&&Pp(u,r)){const y=a?Ka(i,c,o):(p=s.getQueryCache().get(i.queryHash))==null?void 0:p.promise;y==null||y.catch(we).finally(()=>{c.updateResult()})}return i.notifyOnChangeProps?u:c.trackResult(u)}function Qa(e,t){return Op(e,pp)}function Dr(e,t){const n=ls(),[r]=d.useState(()=>new yp(n,e));d.useEffect(()=>{r.setOptions(e)},[r,e]);const o=d.useSyncExternalStore(d.useCallback(i=>r.subscribe(me.batchCalls(i)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=d.useCallback((i,a)=>{r.mutate(i,a).catch(we)},[r]);if(o.error&&Na(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:s,mutateAsync:o.mutate}}const Lr={STALE_TIME:1e3*60*5,GC_TIME:1e3*60*10,RETRY_COUNT:1,RETRY_DELAY:1e3},Ya={refetchOnWindowFocus:!1,refetchOnReconnect:!1,refetchOnMount:!1,staleTime:Lr.STALE_TIME,gcTime:Lr.GC_TIME,retry:Lr.RETRY_COUNT,retryDelay:Lr.RETRY_DELAY,enable:!0},Nr=e=>e instanceof Error?e.message:String(e),Za=(e,t,n)=>{const r=ls(),{notify:o}=Xo(),{createFn:s,readFn:i,readByIdFn:a,updateFn:c,deleteFn:u,partialUpdateFn:f}=n,h=()=>{r.invalidateQueries({queryKey:[e]})},m=(T,P,A,O)=>o(O!=null&&O.overrideSuccessMessage?O==null?void 0:O.overrideSuccessMessage(T,P):A,"success"),g=(T,P,A,O)=>o(O!=null&&O.overrideErrorMessage?O==null?void 0:O.overrideErrorMessage(T,P):A,"error");return{useCreate:T=>Dr({mutationFn:P=>s(P),onSuccess:P=>{h(),m(t,P,`${t} created successfully`,T)},onError:P=>{g(t,P,`Error creating ${t}: ${Nr(P)}`,T)}}),useReadQuery:T=>Qa({queryKey:[e],queryFn:i,...Ya,...T}),useReadByIdQuery:(T,P)=>Qa({queryKey:[e,T],queryFn:()=>a(T),...Ya,enabled:!!T,...P}),useUpdate:T=>Dr({mutationFn:({id:P,data:A})=>c(P,A),onSuccess:P=>{h(),m(t,P,`${t} updated successfully`,T)},onError:P=>{g(t,P,`Error updating ${t}: ${Nr(P)}`,T)}}),usePartialUpdate:T=>f&&Dr({mutationFn:({id:P,data:A})=>f(P,A),onSuccess:P=>{h(),m(t,P,`${t} updated successfully`,T)},onError:P=>{g(t,P,`Error updating ${t}: ${Nr(P)}`,T)}}),useDelete:T=>Dr({mutationFn:P=>u(P),onSuccess:()=>{h(),m(t,null,`${t} deleted successfully`,T)},onError:P=>{g(t,P,`Error deleting ${t}: ${Nr(P)}`,T)}}),invalidateQueries:h}},Rp=(e,t)=>Za(e,t,{createFn:n=>fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)}).then(r=>r.json()),deleteFn:n=>fetch(`${e}/${n}`,{method:"DELETE"}).then(r=>{if(!r.ok)throw new Error(`Error deleting: ${r.status}`)}),readByIdFn:n=>fetch(`${e}/${n}`).then(r=>r.json()),readFn:()=>fetch(e).then(n=>n.json()),updateFn:(n,r)=>fetch(`${e}/${n}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}).then(o=>o.json()),partialUpdateFn:(n,r)=>fetch(`${e}/${n}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}).then(o=>o.json())}),jp={SINGLE_TENANT:"single-tenant"},Ip={COOKIE:"cookie"},us="tenant",Xa="tenant",Ja="tenant",Dp=jp.SINGLE_TENANT,Lp=Ip.COOKIE,Np={mode:Dp,clientSideMode:Lp,tenantIDPProvisioningStrategy:"none"};class Mp{setTenant(t,n){const r=new URL(window.location.href);r.searchParams.set(Xa,t.name),window.location.href=r.toString()}getCurrentTenantName(){const t=new URL(window.location.href);return new URLSearchParams(t.search).get(Xa)}}class kp{setTenant(t,n){sessionStorage.setItem(Ja,t.name),window.location.reload()}getCurrentTenantName(){return sessionStorage.getItem(Ja)}}/*! js-cookie v3.0.5 | MIT */function Mr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var $p={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function ds(e,t){function n(o,s,i){if(!(typeof document>"u")){i=Mr({},t,i),typeof i.expires=="number"&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var c in i)i[c]&&(a+="; "+c,i[c]!==!0&&(a+="="+i[c].split(";")[0]));return document.cookie=o+"="+e.write(s,o)+a}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var s=document.cookie?document.cookie.split("; "):[],i={},a=0;a<s.length;a++){var c=s[a].split("="),u=c.slice(1).join("=");try{var f=decodeURIComponent(c[0]);if(i[f]=e.read(u,f),o===f)break}catch{}}return o?i[o]:i}}return Object.create({set:n,get:r,remove:function(o,s){n(o,"",Mr({},s,{expires:-1}))},withAttributes:function(o){return ds(this.converter,Mr({},this.attributes,o))},withConverter:function(o){return ds(Mr({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var fs=ds($p,{path:"/"});class Fp{setTenant(t,n){t?fs.set(us,t.name):fs.remove(us),window.location.reload()}getCurrentTenantName(){return fs.get(us)}}class Bp{extractSubdomain(t){if(t==="localhost"||/^\d+\.\d+\.\d+\.\d+$/.test(t))return"";const n=t.split(".");if(n.length<2||n.length===2||n[0]==="www"&&n.length===3)return"";const o=(n[0]==="www"?n.slice(1):n).slice(0,-2);return o.length>0?o.join("."):""}getBaseDomain(t){const n=t.split(".");return t==="localhost"||/^\d+\.\d+\.\d+\.\d+$/.test(t)||n.length<=2?t:n.slice(-2).join(".")}setTenant(t,n){var u;const r=(u=n.urlPatterns)==null?void 0:u.find(f=>f.patternType==="subdomain"&&f.tenantId===t.id&&f.isActive);if(!r)throw new Error(`No active subdomain pattern found for tenant '${t.name}'`);const o=new URL(window.location.href),s=r.patternValue,i=o.hostname,a=this.getBaseDomain(i),c=s?`${s}.${a}`:a;o.hostname=c,window.location.href=o.toString()}getCurrentTenantName(){const t=window.location.hostname;return this.extractSubdomain(t)||null}}const ec={queryParams:new Mp,sessionStorage:new kp,cookie:new Fp,subdomain:new Bp},Up=e=>{const t=ec[e.clientSideMode];if(!t)throw new Error(`Client side tenant mode '${e.clientSideMode}' is not supported ${JSON.stringify({strategies:ec},null,2)}`);return t},Wp=(e,t,n)=>{const r=t.find(s=>s.name===n);if(!r)throw Error("No tenant permission");return Up(e).setTenant(r,e),r},Hp=()=>{const[e,t]=fn(),{tenants:n=[],currentTenant:r,tenantConfig:o=Np}=e,s=x.useCallback(i=>{const a=Wp(o,n,i);t({...e,currentTenant:a})},[o,e]);return{tenants:n,currentTenant:r,tenantConfig:o,selectTenant:s}};function Vp(e){if(!e.ok)throw console.error(e),new Error(e.statusText)}async function kr(e,t,n,r){const o=await e(`/user-states/${encodeURIComponent(t)}/${encodeURIComponent(n)}`,r);return Vp(o),o}class $r{static async get(t,n,r){const s=await kr(t,n,r,{method:"GET",headers:{"Content-Type":"application/json"}});return s.status===204?null:await s.json()}static async create(t,n,r,o){const s={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({value:o})};return await(await kr(t,n,r,s)).json()}static async update(t,n,r,o){const s={method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({value:o})};return await(await kr(t,n,r,s)).json()}static async delete(t,n,r){return await kr(t,n,r,{method:"DELETE",headers:{"Content-Type":"application/json"}}),null}}const zp=e=>{const t=Uo("@bluealba/pae-nestjs-gateway-service"),n=ra();if(!n)throw new Error("You must call the useUserState hook within a PAE application.");const[r,o]=x.useState(null),[s,i]=x.useState(!1),[a,c]=x.useState(!1),[u,f]=x.useState(null),h=(w,E)=>x.useCallback(async({newValue:T,shouldThrowError:P}={})=>{try{c(!0),f(null);const A=await w(t,n,e,T);return o(A),A?A.value:null}catch(A){if(f(A==null?void 0:A.message),console.error(`Failed to ${E} ${e}:`,A),P)throw A;return null}finally{c(!1)}},[t,n,e]),m=h($r.get,"fetch"),g=h($r.create,"create"),S=h($r.update,"update"),p=h($r.delete,"delete"),y=x.useCallback(async()=>{try{await m()}finally{i(!0)}},[m]);x.useEffect(()=>{y()},[y]);const v=x.useCallback(async(w,E=!1)=>r==null?await g({newValue:w,shouldThrowError:E}):await S({newValue:w,shouldThrowError:E}),[r,g,S]);return{value:r?r.value:null,hasFetched:s,loading:a,error:u,setValue:v,createValue:g,updateValue:S,deleteValue:p}},tc="single-spa:app-change";function qp(){const[e,t]=x.useState(nc());return x.useEffect(()=>{const n=()=>{t(nc())};return window.addEventListener(tc,n),()=>{window.removeEventListener(tc,n)}},[]),e}function nc(){return pe.getAppNames().reduce((t,n)=>(pe.getAppStatus(n)?t[n]=pe.getAppStatus(n):t[n]="NOT_LOADED",t),{})}function hs(e){const n=qp()[e]??"LOAD_ERROR";return{statusName:n,isLoading:n==="LOADING_SOURCE_CODE"||n==="BOOTSTRAPPING"||n==="MOUNTING",isMounted:n==="MOUNTED",isBroken:n==="SKIP_BECAUSE_BROKEN"||n==="LOAD_ERROR"}}function Gp(e){const{url:t,method:n,formData:r,onProgress:o,signal:s}=e;return new Promise((i,a)=>{const c=new XMLHttpRequest;c.withCredentials=!0,c.upload.onprogress=u=>{u.lengthComputable&&o&&o(Math.round(u.loaded/u.total*100))},c.onload=()=>{if(c.status>=400){let u="Upload failed";try{u=JSON.parse(c.responseText).message??u}catch{}const f=new Error(u);f.status=c.status,a(f);return}try{const u=JSON.parse(c.responseText);i(u)}catch{a(new Error("Failed to parse response JSON"))}},c.onerror=()=>{a(new Error("Upload failed due to a network error"))},s&&s.addEventListener("abort",()=>c.abort()),c.open(n,t),c.send(r)})}const Yn="File storage is disabled on this platform";async function Fr(e){let t=`Request failed with status ${e.status}`;try{const n=await e.json();n!=null&&n.message&&(t=n.message)}catch{}throw new Error(t)}function Kp(){const[{fileStorageEnabled:e}]=fn(),t=x.useCallback((i,a)=>{if(!e)return Promise.reject(new Error(Yn));const c=new FormData;return c.append("file",i),(a==null?void 0:a.isPublic)!==void 0&&c.append("isPublic",String(a.isPublic)),(a==null?void 0:a.description)!==void 0&&c.append("description",a.description),(a==null?void 0:a.metadata)!==void 0&&c.append("metadata",JSON.stringify(a.metadata)),Gp({url:"/files",method:"POST",formData:c,onProgress:a==null?void 0:a.onProgress,signal:a==null?void 0:a.signal})},[e]),n=x.useCallback(async(i,a)=>{if(!e)return Promise.reject(new Error(Yn));const c=new FormData;a.originalName!==void 0&&c.append("originalName",a.originalName),a.isPublic!==void 0&&c.append("isPublic",String(a.isPublic)),a.description!==void 0&&c.append("description",a.description),a.metadata!==void 0&&c.append("metadata",JSON.stringify(a.metadata));const u=await fetch(`/files/${i}`,{method:"PATCH",headers:{Accept:"application/json"},body:c});return u.ok||await Fr(u),u.json()},[e]),r=x.useCallback(async i=>{if(!e)return Promise.reject(new Error(Yn));const a=await fetch(`/files/${i}`,{method:"DELETE",headers:{Accept:"application/json"}});a.ok||await Fr(a)},[e]),o=x.useCallback(async i=>{if(!e)return Promise.reject(new Error(Yn));const a=await fetch(`/files/${i}/download`);a.ok||await Fr(a);const c=await a.blob(),u=URL.createObjectURL(c);let f=`file-${i}`;const h=a.headers.get("Content-Disposition");if(h){const g=h.match(/attachment;\s*filename="([^"]+)"/);g&&(f=g[1])}const m=document.createElement("a");m.href=u,m.download=f,document.body.appendChild(m),m.click(),document.body.removeChild(m),URL.revokeObjectURL(u)},[e]),s=x.useCallback(async i=>{if(!e)return Promise.reject(new Error(Yn));const a=await fetch(`/files/${i}/download`);a.ok||await Fr(a);const c=await a.blob();return URL.createObjectURL(c)},[e]);return{isEnabled:e,upload:t,updateMetadata:n,remove:r,download:o,getPreviewUrl:s}}const rc="__PAE_EXTENSION_POINT_REACT_CONTENT_EMPTY__",Qp=({module:e,point:t,children:n})=>(aa(e,t,n??rc),null),oc=({name:e,children:t,...n})=>{const r=ia(e);if(r===rc)return null;if(!r)return l.jsx(l.Fragment,{children:t??null});if(Yp(r)){const o=r;return l.jsx(o,{...n})}else return r},Yp=e=>typeof e=="function",Zp=(e,t)=>{const n=r=>(t=t||e.displayName||e.name||"?",l.jsx(oc,{name:t,...r,children:l.jsx(e,{...r})}));return n.displayName=`extensionPoint(${t})`,n},sc=({appName:e})=>l.jsx("div",{children:l.jsxs("p",{children:["Loading ",e,"..."]})});sc.displayName="BaseLoading";const ic=({appName:e})=>l.jsxs("div",{children:[l.jsx("p",{children:"Something went wrong..."}),l.jsxs("p",{children:["Failed to load ",e]})]});ic.displayName="BaseError";const Xp={display:"flex",flexDirection:"column",flex:1},ac=x.forwardRef((e,t)=>l.jsx("div",{ref:t,style:Xp,...e}));ac.displayName="BaseContainer";const Jp="pae-app:",cc=x.forwardRef(({appName:e,LoadingComponent:t=sc,ErrorComponent:n=ic,ContainerComponent:r=ac,...o},s)=>{const i=hs(e);return l.jsxs(r,{ref:s,...o,id:`${Jp}${e}`,children:[i.isLoading&&l.jsx(t,{appName:e}),i.isBroken&&l.jsx(n,{appName:e})]})});cc.displayName="ModulePlaceHolder";const ps=({operations:e,children:t,forbiddenContent:n})=>{var o;const{hasAccess:r}=qn();if(!r(...e)){if(!n)return null;if(typeof n=="function")if((o=n==null?void 0:n.prototype)!=null&&o.isReactComponent){const s=n;return l.jsx(s,{operations:e})}else return n({operations:e});return x.isValidElement(n)?n:null}return t};ps.displayName="Authorized";const e1=({eventName:e,listener:t})=>(ca(e,t),null),t1=()=>l.jsx("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:l.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",d:"M8.737 8.737a21.49 21.49 0 0 1 3.308-2.724m0 0c3.063-2.026 5.99-2.641 7.331-1.3 1.827 1.828.026 6.591-4.023 10.64-4.049 4.049-8.812 5.85-10.64 4.023-1.33-1.33-.736-4.218 1.249-7.253m6.083-6.11c-3.063-2.026-5.99-2.641-7.331-1.3-1.827 1.828-.026 6.591 4.023 10.64m3.308-9.34a21.497 21.497 0 0 1 3.308 2.724m2.775 3.386c1.985 3.035 2.579 5.923 1.248 7.253-1.336 1.337-4.245.732-7.295-1.275M14 12a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"})}),lc=({applicationName:e})=>{const t=ea(e);if(t)if(typeof t=="function"){const n=t;return l.jsx(n,{})}else return t;return l.jsx(t1,{})};lc.displayName="ApplicationIcon";const uc=()=>l.jsx("svg",{width:"28",height:"28",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:"M15.9998 29.3337C8.63584 29.3337 2.6665 23.3643 2.6665 16.0003C2.6665 8.63633 8.63584 2.66699 15.9998 2.66699C23.3638 2.66699 29.3332 8.63633 29.3332 16.0003C29.3332 23.3643 23.3638 29.3337 15.9998 29.3337ZM15.9998 26.667C18.8288 26.667 21.5419 25.5432 23.5423 23.5428C25.5427 21.5424 26.6665 18.8293 26.6665 16.0003C26.6665 13.1713 25.5427 10.4582 23.5423 8.45785C21.5419 6.45747 18.8288 5.33366 15.9998 5.33366C13.1709 5.33366 10.4578 6.45747 8.45736 8.45785C6.45698 10.4582 5.33317 13.1713 5.33317 16.0003C5.33317 18.8293 6.45698 21.5424 8.45736 23.5428C10.4578 25.5432 13.1709 26.667 15.9998 26.667ZM9.33317 20.427C12.2066 20.2205 14.9088 18.9833 16.9425 16.943C18.9828 14.9092 20.2201 12.2071 20.4265 9.33366C21.4117 9.99003 22.2389 10.8569 22.8486 11.8716C23.4582 12.8864 23.835 14.0239 23.9519 15.2019C24.0687 16.3799 23.9226 17.5692 23.5242 18.684C23.1257 19.7987 22.4849 20.8112 21.6478 21.6483C20.8107 22.4853 19.7982 23.1262 18.6835 23.5247C17.5687 23.9231 16.3795 24.0692 15.2014 23.9523C14.0234 23.8355 12.8859 23.4587 11.8712 22.8491C10.8564 22.2394 9.98954 21.4122 9.33317 20.427Z",fill:"currentColor"})});uc.displayName="DarkModeIcon";const dc=()=>l.jsx("svg",{width:"28",height:"28",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",transform:"matrix(-1,1.2246467991473532e-16,-1.2246467991473532e-16,-1,0,0)",children:l.jsx("path",{d:"M15.9998 29.3337C8.63584 29.3337 2.6665 23.3643 2.6665 16.0003C2.6665 8.63633 8.63584 2.66699 15.9998 2.66699C23.3638 2.66699 29.3332 8.63633 29.3332 16.0003C29.3332 23.3643 23.3638 29.3337 15.9998 29.3337ZM15.9998 26.667C18.8288 26.667 21.5419 25.5432 23.5423 23.5428C25.5427 21.5424 26.6665 18.8293 26.6665 16.0003C26.6665 13.1713 25.5427 10.4582 23.5423 8.45785C21.5419 6.45747 18.8288 5.33366 15.9998 5.33366C13.1709 5.33366 10.4578 6.45747 8.45736 8.45785C6.45698 10.4582 5.33317 13.1713 5.33317 16.0003C5.33317 18.8293 6.45698 21.5424 8.45736 23.5428C10.4578 25.5432 13.1709 26.667 15.9998 26.667ZM9.33317 20.427C12.2066 20.2205 14.9088 18.9833 16.9425 16.943C18.9828 14.9092 20.2201 12.2071 20.4265 9.33366C21.4117 9.99003 22.2389 10.8569 22.8486 11.8716C23.4582 12.8864 23.835 14.0239 23.9519 15.2019C24.0687 16.3799 23.9226 17.5692 23.5242 18.684C23.1257 19.7987 22.4849 20.8112 21.6478 21.6483C20.8107 22.4853 19.7982 23.1262 18.6835 23.5247C17.5687 23.9231 16.3795 24.0692 15.2014 23.9523C14.0234 23.8355 12.8859 23.4587 11.8712 22.8491C10.8564 22.2394 9.98954 21.4122 9.33317 20.427Z",fill:"currentColor"})});dc.displayName="LightModeIcon";const ms={container:"container__zBqbk",expanded:"expanded__EbsIr",label:"label__cdMnm"};function fc(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=fc(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function L(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=fc(e))&&(r&&(r+=" "),r+=t);return r}const n1=e=>e.toLowerCase().trim().split(" ").join("-"),r1=e=>`${n1(e)}-theme`,hc=()=>{const{platformName:e="Platform"}=Gi(),t=r1(e),[n,r]=x.useState(()=>{const s=localStorage.getItem(t);return s==="light"||s==="dark"?s:"light"}),o=s=>{localStorage.setItem(t,s),r(s)};return x.useEffect(()=>{document.documentElement.setAttribute("data-theme",n)},[n]),{theme:n,setTheme:o}},Br={spinner:"spinner__fakUN","spinner-rotation":"spinner-rotation__wUmPV",spinnerRotation:"spinner-rotation__wUmPV",button:"button__8FA9H","button--contained-primary":"button--contained-primary__stkTx",buttonContainedPrimary:"button--contained-primary__stkTx","button--outlined-primary":"button--outlined-primary__KZ1ww",buttonOutlinedPrimary:"button--outlined-primary__KZ1ww","button--text-primary":"button--text-primary__GLTfm",buttonTextPrimary:"button--text-primary__GLTfm","button--contained-danger":"button--contained-danger__L9ehT",buttonContainedDanger:"button--contained-danger__L9ehT","button--outlined-danger":"button--outlined-danger__eoYLd",buttonOutlinedDanger:"button--outlined-danger__eoYLd","button--text-danger":"button--text-danger__Sw-ha",buttonTextDanger:"button--text-danger__Sw-ha",icon:"icon__--umH"},Ur=x.forwardRef(({variant:e="contained",colorScheme:t="primary",loading:n=!1,IconComponent:r,className:o,children:s,...i},a)=>{const c=L(Br.button,Br[`button--${e}-${t}`],o);return l.jsxs("button",{ref:a,className:c,...i,children:[n?l.jsx("div",{className:Br.spinner}):r&&l.jsx(r,{className:Br.icon}),s]})});Ur.displayName="Button";const Wr={Badges:"Badges__5jpum",badges:"Badges__5jpum",Badge:"Badge__95MWM",badge:"Badge__95MWM","Badge--primary":"Badge--primary__Rx-bS",badgePrimary:"Badge--primary__Rx-bS","Badge--secondary":"Badge--secondary__d92bT",badgeSecondary:"Badge--secondary__d92bT","Badge--success":"Badge--success__Kdo98",badgeSuccess:"Badge--success__Kdo98","Badge--warning":"Badge--warning__bf-Nn",badgeWarning:"Badge--warning__bf-Nn","Badge--danger":"Badge--danger__HTj39",badgeDanger:"Badge--danger__HTj39","Badge--small":"Badge--small__y93Pj",badgeSmall:"Badge--small__y93Pj","Badge--regular":"Badge--regular__aT5AL",badgeRegular:"Badge--regular__aT5AL","Badge--large":"Badge--large__wORCH",badgeLarge:"Badge--large__wORCH"},gs={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};for(const e in gs)Object.freeze(gs[e]);const pc=Object.freeze(gs);var mc={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function o1(e){var f,h;var t,n=[],r=1,o;if(typeof e=="number")return{space:"rgb",values:[e>>>16,(e&65280)>>>8,e&255],alpha:1};if(typeof e=="number")return{space:"rgb",values:[e>>>16,(e&65280)>>>8,e&255],alpha:1};if(e=String(e).toLowerCase(),pc[e])n=pc[e].slice(),o="rgb";else if(e==="transparent")r=0,o="rgb",n=[0,0,0];else if(e[0]==="#"){var s=e.slice(1),i=s.length,a=i<=4;r=1,a?(n=[parseInt(s[0]+s[0],16),parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16)],i===4&&(r=parseInt(s[3]+s[3],16)/255)):(n=[parseInt(s[0]+s[1],16),parseInt(s[2]+s[3],16),parseInt(s[4]+s[5],16)],i===8&&(r=parseInt(s[6]+s[7],16)/255)),n[0]||(n[0]=0),n[1]||(n[1]=0),n[2]||(n[2]=0),o="rgb"}else if(t=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(e)){var c=t[1];o=c.replace(/a$/,"");var u=o==="cmyk"?4:o==="gray"?1:3;n=t[2].trim().split(/\s*[,\/]\s*|\s+/),o==="color"&&(o=n.shift()),n=n.map(function(m,g){if(m[m.length-1]==="%")return m=parseFloat(m)/100,g===3?m:o==="rgb"?m*255:o[0]==="h"||o[0]==="l"&&!g?m*100:o==="lab"?m*125:o==="lch"?g<2?m*150:m*360:o[0]==="o"&&!g?m:o==="oklab"?m*.4:o==="oklch"?g<2?m*.4:m*360:m;if(o[g]==="h"||g===2&&o[o.length-1]==="h"){if(mc[m]!==void 0)return mc[m];if(m.endsWith("deg"))return parseFloat(m);if(m.endsWith("turn"))return parseFloat(m)*360;if(m.endsWith("grad"))return parseFloat(m)*360/400;if(m.endsWith("rad"))return parseFloat(m)*180/Math.PI}return m==="none"?0:parseFloat(m)}),r=n.length>u?n.pop():1}else/[0-9](?:\s|\/|,)/.test(e)&&(n=e.match(/([0-9]+)/g).map(function(m){return parseFloat(m)}),o=((h=(f=e.match(/([a-z])/ig))==null?void 0:f.join(""))==null?void 0:h.toLowerCase())||"rgb");return{space:o,values:n,alpha:r}}const s1=(e,t)=>{const{space:n,values:r}=o1(e);return n[0]==="h"?`${n}a(${r[0]}, ${r[1]}%, ${r[2]}%, ${t})`:`${n}a(${r}, ${t})`},ys=x.forwardRef(({children:e,color:t,className:n,customColor:r,size:o="small",style:s,...i},a)=>{const c=r?{color:r,background:s1(r,.1)}:{},u=L(Wr.Badge,Wr[`Badge--${o}`],{[Wr[`Badge--${t}`]]:!!t},n);return l.jsx("span",{ref:a,className:u,style:{...s,...c},...i,children:e})});ys.displayName="Badge";const vs=x.forwardRef(({children:e,className:t,...n},r)=>{const o=L(Wr.Badges,t);return l.jsx("div",{ref:r,className:o,...n,children:e})});vs.displayName="Badges";const gc=({size:e=24,color:t="currentColor",strokeWidth:n=2,className:r,style:o,...s})=>l.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:o,...s,children:[l.jsx("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"}),l.jsx("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"})]}),yc=({size:e=24,color:t="currentColor",strokeWidth:n=2,className:r,style:o,...s})=>l.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:o,...s,children:[l.jsx("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"}),l.jsx("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"}),l.jsx("path",{d:"m9 12 2 2 4-4"})]}),i1={CopyToClipboardButton:"CopyToClipboardButton__2Nd2m"},a1=({content:e})=>{const[t,n]=c1(),{notify:r}=Xo(),o=t?yc:gc,s=x.useCallback(async()=>{await n(e)&&r("Copied to the Clipboard !","success")},[e,r]);return l.jsx(o,{className:i1.CopyToClipboardButton,size:18,onClick:s})},c1=()=>{const[e,t]=x.useState(!1);return[e,async r=>{var o;try{return await((o=navigator==null?void 0:navigator.clipboard)==null?void 0:o.writeText(r)),t(!0),setTimeout(()=>t(!1),2e3),!0}catch(s){return console.error("Failed to copy text: ",s),!1}}]},vc={FieldGroup:"FieldGroup__Q2JCV",fieldGroup:"FieldGroup__Q2JCV","FieldGroup--horizontal":"FieldGroup--horizontal__kpfL1",fieldGroupHorizontal:"FieldGroup--horizontal__kpfL1","FieldGroup--vertical":"FieldGroup--vertical__FLo-Q",fieldGroupVertical:"FieldGroup--vertical__FLo-Q"},bc=x.forwardRef(({children:e,className:t,orientation:n="vertical",...r},o)=>{const s=L(vc.FieldGroup,vc[`FieldGroup--${n}`],t);return l.jsx("div",{ref:o,className:s,...r,children:e})});bc.displayName="FieldGroup";const wc={Input:"Input__uS0sb",Error:"Error__-DQpw"},Hr=x.forwardRef(({className:e,error:t,...n},r)=>{const o=L(wc.Input,t&&wc.Error,e);return l.jsx("input",{ref:r,className:o,...n})});Hr.displayName="Input";const l1={Error:"Error__N4OP5"},Cc=x.forwardRef(({children:e,className:t,...n},r)=>{const o=L(l1.Error,t);return l.jsx("span",{ref:r,className:o,...n,children:e})});Cc.displayName="InputError";const Sc={Label:"Label__VYUvW",Error:"Error__Eu6DI"},Ec=x.forwardRef(({children:e,className:t,error:n,...r},o)=>{const s=L(Sc.Label,n&&Sc.Error,t);return l.jsx("label",{ref:o,className:s,...r,children:e})});Ec.displayName="Label";const bs={Select:"Select__giqpe",Chevron:"Chevron__YvhBd"},xc=x.forwardRef(({children:e,className:t,...n},r)=>{const o=L(bs.Option,t);return l.jsx("option",{ref:r,className:o,...n,children:e})});xc.displayName="Option";const ws=x.forwardRef(({children:e,className:t,...n},r)=>{const o=L(bs.Select,t);return l.jsxs("div",{className:o,children:[l.jsx("select",{ref:r,...n,children:e}),l.jsx("div",{className:bs.Chevron,children:l.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:"M4 6L8 10L12 6",stroke:"#818181",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})})]})});ws.displayName="Select",ws.Option=xc;function _c(e,[t,n]){return Math.min(n,Math.max(t,e))}function Z(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function u1(e,t){const n=d.createContext(t),r=s=>{const{children:i,...a}=s,c=d.useMemo(()=>a,Object.values(a));return l.jsx(n.Provider,{value:c,children:i})};r.displayName=e+"Provider";function o(s){const i=d.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function Zn(e,t=[]){let n=[];function r(s,i){const a=d.createContext(i),c=n.length;n=[...n,i];const u=h=>{var v;const{scope:m,children:g,...S}=h,p=((v=m==null?void 0:m[e])==null?void 0:v[c])||a,y=d.useMemo(()=>S,Object.values(S));return l.jsx(p.Provider,{value:y,children:g})};u.displayName=s+"Provider";function f(h,m){var p;const g=((p=m==null?void 0:m[e])==null?void 0:p[c])||a,S=d.useContext(g);if(S)return S;if(i!==void 0)return i;throw new Error(`\`${h}\` must be used within \`${s}\``)}return[u,f]}const o=()=>{const s=n.map(i=>d.createContext(i));return function(a){const c=(a==null?void 0:a[e])||s;return d.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return o.scopeName=e,[r,d1(o,...t)]}function d1(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:c,scopeName:u})=>{const h=c(s)[`__scope${u}`];return{...a,...h}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Tc(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function mn(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Tc(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():Tc(e[o],null)}}}}function le(...e){return d.useCallback(mn(...e),e)}function Pc(e){const t=f1(e),n=d.forwardRef((r,o)=>{const{children:s,...i}=r,a=d.Children.toArray(s),c=a.find(p1);if(c){const u=c.props.children,f=a.map(h=>h===c?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:h);return l.jsx(t,{...i,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,f):null})}return l.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function f1(e){const t=d.forwardRef((n,r)=>{const{children:o,...s}=n;if(d.isValidElement(o)){const i=g1(o),a=m1(s,o.props);return o.type!==d.Fragment&&(a.ref=r?mn(r,i):i),d.cloneElement(o,a)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var h1=Symbol("radix.slottable");function p1(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===h1}function m1(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const c=s(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function g1(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function y1(e){const t=e+"CollectionProvider",[n,r]=Zn(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=p=>{const{scope:y,children:v}=p,w=x.useRef(null),E=x.useRef(new Map).current;return l.jsx(o,{scope:y,itemMap:E,collectionRef:w,children:v})};i.displayName=t;const a=e+"CollectionSlot",c=Pc(a),u=x.forwardRef((p,y)=>{const{scope:v,children:w}=p,E=s(a,v),T=le(y,E.collectionRef);return l.jsx(c,{ref:T,children:w})});u.displayName=a;const f=e+"CollectionItemSlot",h="data-radix-collection-item",m=Pc(f),g=x.forwardRef((p,y)=>{const{scope:v,children:w,...E}=p,T=x.useRef(null),P=le(y,T),A=s(f,v);return x.useEffect(()=>(A.itemMap.set(T,{ref:T,...E}),()=>void A.itemMap.delete(T))),l.jsx(m,{[h]:"",ref:P,children:w})});g.displayName=f;function S(p){const y=s(e+"CollectionConsumer",p);return x.useCallback(()=>{const w=y.collectionRef.current;if(!w)return[];const E=Array.from(w.querySelectorAll(`[${h}]`));return Array.from(y.itemMap.values()).sort((A,O)=>E.indexOf(A.ref.current)-E.indexOf(O.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:i,Slot:u,ItemSlot:g},S,r]}var v1=d.createContext(void 0);function b1(e){const t=d.useContext(v1);return e||t||"ltr"}function w1(e){const t=C1(e),n=d.forwardRef((r,o)=>{const{children:s,...i}=r,a=d.Children.toArray(s),c=a.find(E1);if(c){const u=c.props.children,f=a.map(h=>h===c?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:h);return l.jsx(t,{...i,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,f):null})}return l.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function C1(e){const t=d.forwardRef((n,r)=>{const{children:o,...s}=n;if(d.isValidElement(o)){const i=_1(o),a=x1(s,o.props);return o.type!==d.Fragment&&(a.ref=r?mn(r,i):i),d.cloneElement(o,a)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var S1=Symbol("radix.slottable");function E1(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===S1}function x1(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const c=s(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function _1(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var T1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ie=T1.reduce((e,t)=>{const n=w1(`Primitive.${t}`),r=d.forwardRef((o,s)=>{const{asChild:i,...a}=o,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(c,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function P1(e,t){e&&mr.flushSync(()=>e.dispatchEvent(t))}function Gt(e){const t=d.useRef(e);return d.useEffect(()=>{t.current=e}),d.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function A1(e,t=globalThis==null?void 0:globalThis.document){const n=Gt(e);d.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var O1="DismissableLayer",Cs="dismissableLayer.update",R1="dismissableLayer.pointerDownOutside",j1="dismissableLayer.focusOutside",Ac,Oc=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Vr=d.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...c}=e,u=d.useContext(Oc),[f,h]=d.useState(null),m=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=d.useState({}),S=le(t,O=>h(O)),p=Array.from(u.layers),[y]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=p.indexOf(y),w=f?p.indexOf(f):-1,E=u.layersWithOutsidePointerEventsDisabled.size>0,T=w>=v,P=L1(O=>{const N=O.target,D=[...u.branches].some(M=>M.contains(N));!T||D||(o==null||o(O),i==null||i(O),O.defaultPrevented||a==null||a())},m),A=N1(O=>{const N=O.target;[...u.branches].some(M=>M.contains(N))||(s==null||s(O),i==null||i(O),O.defaultPrevented||a==null||a())},m);return A1(O=>{w===u.layers.size-1&&(r==null||r(O),!O.defaultPrevented&&a&&(O.preventDefault(),a()))},m),d.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Ac=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Rc(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Ac)}},[f,m,n,u]),d.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Rc())},[f,u]),d.useEffect(()=>{const O=()=>g({});return document.addEventListener(Cs,O),()=>document.removeEventListener(Cs,O)},[]),l.jsx(ie.div,{...c,ref:S,style:{pointerEvents:E?T?"auto":"none":void 0,...e.style},onFocusCapture:Z(e.onFocusCapture,A.onFocusCapture),onBlurCapture:Z(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:Z(e.onPointerDownCapture,P.onPointerDownCapture)})});Vr.displayName=O1;var I1="DismissableLayerBranch",D1=d.forwardRef((e,t)=>{const n=d.useContext(Oc),r=d.useRef(null),o=le(t,r);return d.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),l.jsx(ie.div,{...e,ref:o})});D1.displayName=I1;function L1(e,t=globalThis==null?void 0:globalThis.document){const n=Gt(e),r=d.useRef(!1),o=d.useRef(()=>{});return d.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let c=function(){jc(R1,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function N1(e,t=globalThis==null?void 0:globalThis.document){const n=Gt(e),r=d.useRef(!1);return d.useEffect(()=>{const o=s=>{s.target&&!r.current&&jc(j1,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Rc(){const e=new CustomEvent(Cs);document.dispatchEvent(e)}function jc(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?P1(o,s):o.dispatchEvent(s)}var Ss=0;function Ic(){d.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Dc()),document.body.insertAdjacentElement("beforeend",e[1]??Dc()),Ss++,()=>{Ss===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ss--}},[])}function Dc(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Es="focusScope.autoFocusOnMount",xs="focusScope.autoFocusOnUnmount",Lc={bubbles:!1,cancelable:!0},M1="FocusScope",_s=d.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,c]=d.useState(null),u=Gt(o),f=Gt(s),h=d.useRef(null),m=le(t,p=>c(p)),g=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(r){let p=function(E){if(g.paused||!a)return;const T=E.target;a.contains(T)?h.current=T:Ct(h.current,{select:!0})},y=function(E){if(g.paused||!a)return;const T=E.relatedTarget;T!==null&&(a.contains(T)||Ct(h.current,{select:!0}))},v=function(E){if(document.activeElement===document.body)for(const P of E)P.removedNodes.length>0&&Ct(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",y);const w=new MutationObserver(v);return a&&w.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",y),w.disconnect()}}},[r,a,g.paused]),d.useEffect(()=>{if(a){kc.add(g);const p=document.activeElement;if(!a.contains(p)){const v=new CustomEvent(Es,Lc);a.addEventListener(Es,u),a.dispatchEvent(v),v.defaultPrevented||(k1(W1(Nc(a)),{select:!0}),document.activeElement===p&&Ct(a))}return()=>{a.removeEventListener(Es,u),setTimeout(()=>{const v=new CustomEvent(xs,Lc);a.addEventListener(xs,f),a.dispatchEvent(v),v.defaultPrevented||Ct(p??document.body,{select:!0}),a.removeEventListener(xs,f),kc.remove(g)},0)}}},[a,u,f,g]);const S=d.useCallback(p=>{if(!n&&!r||g.paused)return;const y=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,v=document.activeElement;if(y&&v){const w=p.currentTarget,[E,T]=$1(w);E&&T?!p.shiftKey&&v===T?(p.preventDefault(),n&&Ct(E,{select:!0})):p.shiftKey&&v===E&&(p.preventDefault(),n&&Ct(T,{select:!0})):v===w&&p.preventDefault()}},[n,r,g.paused]);return l.jsx(ie.div,{tabIndex:-1,...i,ref:m,onKeyDown:S})});_s.displayName=M1;function k1(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ct(r,{select:t}),document.activeElement!==n)return}function $1(e){const t=Nc(e),n=Mc(t,e),r=Mc(t.reverse(),e);return[n,r]}function Nc(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Mc(e,t){for(const n of e)if(!F1(n,{upTo:t}))return n}function F1(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function B1(e){return e instanceof HTMLInputElement&&"select"in e}function Ct(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&B1(e)&&t&&e.select()}}var kc=U1();function U1(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=$c(e,t),e.unshift(t)},remove(t){var n;e=$c(e,t),(n=e[0])==null||n.resume()}}}function $c(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function W1(e){return e.filter(t=>t.tagName!=="A")}var ye=globalThis!=null&&globalThis.document?d.useLayoutEffect:()=>{},H1=d[" useId ".trim().toString()]||(()=>{}),V1=0;function Kt(e){const[t,n]=d.useState(H1());return ye(()=>{n(r=>r??String(V1++))},[e]),e||(t?`radix-${t}`:"")}const z1=["top","right","bottom","left"],St=Math.min,Re=Math.max,zr=Math.round,qr=Math.floor,Ge=e=>({x:e,y:e}),q1={left:"right",right:"left",bottom:"top",top:"bottom"},G1={start:"end",end:"start"};function Ts(e,t,n){return Re(e,St(t,n))}function ct(e,t){return typeof e=="function"?e(t):e}function lt(e){return e.split("-")[0]}function gn(e){return e.split("-")[1]}function Ps(e){return e==="x"?"y":"x"}function As(e){return e==="y"?"height":"width"}const K1=new Set(["top","bottom"]);function Ke(e){return K1.has(lt(e))?"y":"x"}function Os(e){return Ps(Ke(e))}function Q1(e,t,n){n===void 0&&(n=!1);const r=gn(e),o=Os(e),s=As(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Gr(i)),[i,Gr(i)]}function Y1(e){const t=Gr(e);return[Rs(e),t,Rs(t)]}function Rs(e){return e.replace(/start|end/g,t=>G1[t])}const Fc=["left","right"],Bc=["right","left"],Z1=["top","bottom"],X1=["bottom","top"];function J1(e,t,n){switch(e){case"top":case"bottom":return n?t?Bc:Fc:t?Fc:Bc;case"left":case"right":return t?Z1:X1;default:return[]}}function em(e,t,n,r){const o=gn(e);let s=J1(lt(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Rs)))),s}function Gr(e){return e.replace(/left|right|bottom|top/g,t=>q1[t])}function tm(e){return{top:0,right:0,bottom:0,left:0,...e}}function Uc(e){return typeof e!="number"?tm(e):{top:e,right:e,bottom:e,left:e}}function Kr(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Wc(e,t,n){let{reference:r,floating:o}=e;const s=Ke(t),i=Os(t),a=As(i),c=lt(t),u=s==="y",f=r.x+r.width/2-o.width/2,h=r.y+r.height/2-o.height/2,m=r[a]/2-o[a]/2;let g;switch(c){case"top":g={x:f,y:r.y-o.height};break;case"bottom":g={x:f,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:h};break;case"left":g={x:r.x-o.width,y:h};break;default:g={x:r.x,y:r.y}}switch(gn(t)){case"start":g[i]-=m*(n&&u?-1:1);break;case"end":g[i]+=m*(n&&u?-1:1);break}return g}async function nm(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:m=!1,padding:g=0}=ct(t,e),S=Uc(g),y=a[m?h==="floating"?"reference":"floating":h],v=Kr(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(y)))==null||n?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:f,strategy:c})),w=h==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),T=await(s.isElement==null?void 0:s.isElement(E))?await(s.getScale==null?void 0:s.getScale(E))||{x:1,y:1}:{x:1,y:1},P=Kr(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:E,strategy:c}):w);return{top:(v.top-P.top+S.top)/T.y,bottom:(P.bottom-v.bottom+S.bottom)/T.y,left:(v.left-P.left+S.left)/T.x,right:(P.right-v.right+S.right)/T.x}}const rm=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:h}=Wc(u,r,c),m=r,g={},S=0;for(let y=0;y<a.length;y++){var p;const{name:v,fn:w}=a[y],{x:E,y:T,data:P,reset:A}=await w({x:f,y:h,initialPlacement:r,placement:m,strategy:o,middlewareData:g,rects:u,platform:{...i,detectOverflow:(p=i.detectOverflow)!=null?p:nm},elements:{reference:e,floating:t}});f=E??f,h=T??h,g={...g,[v]:{...g[v],...P}},A&&S<=50&&(S++,typeof A=="object"&&(A.placement&&(m=A.placement),A.rects&&(u=A.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):A.rects),{x:f,y:h}=Wc(u,m,c)),y=-1)}return{x:f,y:h,placement:m,strategy:o,middlewareData:g}},om=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:c}=t,{element:u,padding:f=0}=ct(e,t)||{};if(u==null)return{};const h=Uc(f),m={x:n,y:r},g=Os(o),S=As(g),p=await i.getDimensions(u),y=g==="y",v=y?"top":"left",w=y?"bottom":"right",E=y?"clientHeight":"clientWidth",T=s.reference[S]+s.reference[g]-m[g]-s.floating[S],P=m[g]-s.reference[g],A=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let O=A?A[E]:0;(!O||!await(i.isElement==null?void 0:i.isElement(A)))&&(O=a.floating[E]||s.floating[S]);const N=T/2-P/2,D=O/2-p[S]/2-1,M=St(h[v],D),U=St(h[w],D),W=M,H=O-p[S]-U,z=O/2-p[S]/2+N,oe=Ts(W,z,H),q=!c.arrow&&gn(o)!=null&&z!==oe&&s.reference[S]/2-(z<W?M:U)-p[S]/2<0,Y=q?z<W?z-W:z-H:0;return{[g]:m[g]+Y,data:{[g]:oe,centerOffset:z-oe-Y,...q&&{alignmentOffset:Y}},reset:q}}}),sm=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:c,elements:u}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:p=!0,...y}=ct(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const v=lt(o),w=Ke(a),E=lt(a)===a,T=await(c.isRTL==null?void 0:c.isRTL(u.floating)),P=m||(E||!p?[Gr(a)]:Y1(a)),A=S!=="none";!m&&A&&P.push(...em(a,p,S,T));const O=[a,...P],N=await c.detectOverflow(t,y),D=[];let M=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&D.push(N[v]),h){const z=Q1(o,i,T);D.push(N[z[0]],N[z[1]])}if(M=[...M,{placement:o,overflows:D}],!D.every(z=>z<=0)){var U,W;const z=(((U=s.flip)==null?void 0:U.index)||0)+1,oe=O[z];if(oe&&(!(h==="alignment"?w!==Ke(oe):!1)||M.every(F=>Ke(F.placement)===w?F.overflows[0]>0:!0)))return{data:{index:z,overflows:M},reset:{placement:oe}};let q=(W=M.filter(Y=>Y.overflows[0]<=0).sort((Y,F)=>Y.overflows[1]-F.overflows[1])[0])==null?void 0:W.placement;if(!q)switch(g){case"bestFit":{var H;const Y=(H=M.filter(F=>{if(A){const se=Ke(F.placement);return se===w||se==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(se=>se>0).reduce((se,ge)=>se+ge,0)]).sort((F,se)=>F[1]-se[1])[0])==null?void 0:H[0];Y&&(q=Y);break}case"initialPlacement":q=a;break}if(o!==q)return{reset:{placement:q}}}return{}}}};function Hc(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Vc(e){return z1.some(t=>e[t]>=0)}const im=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...s}=ct(e,t);switch(o){case"referenceHidden":{const i=await r.detectOverflow(t,{...s,elementContext:"reference"}),a=Hc(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Vc(a)}}}case"escaped":{const i=await r.detectOverflow(t,{...s,altBoundary:!0}),a=Hc(i,n.floating);return{data:{escapedOffsets:a,escaped:Vc(a)}}}default:return{}}}}},zc=new Set(["left","top"]);async function am(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=lt(n),a=gn(n),c=Ke(n)==="y",u=zc.has(i)?-1:1,f=s&&c?-1:1,h=ct(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:S}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof S=="number"&&(g=a==="end"?S*-1:S),c?{x:g*f,y:m*u}:{x:m*u,y:g*f}}const cm=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,c=await am(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:i}}}}},lm=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:s}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:c={fn:v=>{let{x:w,y:E}=v;return{x:w,y:E}}},...u}=ct(e,t),f={x:n,y:r},h=await s.detectOverflow(t,u),m=Ke(lt(o)),g=Ps(m);let S=f[g],p=f[m];if(i){const v=g==="y"?"top":"left",w=g==="y"?"bottom":"right",E=S+h[v],T=S-h[w];S=Ts(E,S,T)}if(a){const v=m==="y"?"top":"left",w=m==="y"?"bottom":"right",E=p+h[v],T=p-h[w];p=Ts(E,p,T)}const y=c.fn({...t,[g]:S,[m]:p});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[g]:i,[m]:a}}}}}},um=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:c=!0,crossAxis:u=!0}=ct(e,t),f={x:n,y:r},h=Ke(o),m=Ps(h);let g=f[m],S=f[h];const p=ct(a,t),y=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const E=m==="y"?"height":"width",T=s.reference[m]-s.floating[E]+y.mainAxis,P=s.reference[m]+s.reference[E]-y.mainAxis;g<T?g=T:g>P&&(g=P)}if(u){var v,w;const E=m==="y"?"width":"height",T=zc.has(lt(o)),P=s.reference[h]-s.floating[E]+(T&&((v=i.offset)==null?void 0:v[h])||0)+(T?0:y.crossAxis),A=s.reference[h]+s.reference[E]+(T?0:((w=i.offset)==null?void 0:w[h])||0)-(T?y.crossAxis:0);S<P?S=P:S>A&&(S=A)}return{[m]:g,[h]:S}}}},dm=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:c=()=>{},...u}=ct(e,t),f=await i.detectOverflow(t,u),h=lt(o),m=gn(o),g=Ke(o)==="y",{width:S,height:p}=s.floating;let y,v;h==="top"||h==="bottom"?(y=h,v=m===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(v=h,y=m==="end"?"top":"bottom");const w=p-f.top-f.bottom,E=S-f.left-f.right,T=St(p-f[y],w),P=St(S-f[v],E),A=!t.middlewareData.shift;let O=T,N=P;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(N=E),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(O=w),A&&!m){const M=Re(f.left,0),U=Re(f.right,0),W=Re(f.top,0),H=Re(f.bottom,0);g?N=S-2*(M!==0||U!==0?M+U:Re(f.left,f.right)):O=p-2*(W!==0||H!==0?W+H:Re(f.top,f.bottom))}await c({...t,availableWidth:N,availableHeight:O});const D=await i.getDimensions(a.floating);return S!==D.width||p!==D.height?{reset:{rects:!0}}:{}}}};function Qr(){return typeof window<"u"}function yn(e){return qc(e)?(e.nodeName||"").toLowerCase():"#document"}function je(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Qe(e){var t;return(t=(qc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function qc(e){return Qr()?e instanceof Node||e instanceof je(e).Node:!1}function ke(e){return Qr()?e instanceof Element||e instanceof je(e).Element:!1}function Ye(e){return Qr()?e instanceof HTMLElement||e instanceof je(e).HTMLElement:!1}function Gc(e){return!Qr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof je(e).ShadowRoot}const fm=new Set(["inline","contents"]);function Xn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=$e(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!fm.has(o)}const hm=new Set(["table","td","th"]);function pm(e){return hm.has(yn(e))}const mm=[":popover-open",":modal"];function Yr(e){return mm.some(t=>{try{return e.matches(t)}catch{return!1}})}const gm=["transform","translate","scale","rotate","perspective"],ym=["transform","translate","scale","rotate","perspective","filter"],vm=["paint","layout","strict","content"];function js(e){const t=Is(),n=ke(e)?$e(e):e;return gm.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||ym.some(r=>(n.willChange||"").includes(r))||vm.some(r=>(n.contain||"").includes(r))}function bm(e){let t=Et(e);for(;Ye(t)&&!vn(t);){if(js(t))return t;if(Yr(t))return null;t=Et(t)}return null}function Is(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const wm=new Set(["html","body","#document"]);function vn(e){return wm.has(yn(e))}function $e(e){return je(e).getComputedStyle(e)}function Zr(e){return ke(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Et(e){if(yn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Gc(e)&&e.host||Qe(e);return Gc(t)?t.host:t}function Kc(e){const t=Et(e);return vn(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ye(t)&&Xn(t)?t:Kc(t)}function Jn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Kc(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=je(o);if(s){const a=Ds(i);return t.concat(i,i.visualViewport||[],Xn(o)?o:[],a&&n?Jn(a):[])}return t.concat(o,Jn(o,[],n))}function Ds(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Qc(e){const t=$e(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ye(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=zr(n)!==s||zr(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function Ls(e){return ke(e)?e:e.contextElement}function bn(e){const t=Ls(e);if(!Ye(t))return Ge(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Qc(t);let i=(s?zr(n.width):n.width)/r,a=(s?zr(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const Cm=Ge(0);function Yc(e){const t=je(e);return!Is()||!t.visualViewport?Cm:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Sm(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==je(e)?!1:t}function Qt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Ls(e);let i=Ge(1);t&&(r?ke(r)&&(i=bn(r)):i=bn(e));const a=Sm(s,n,r)?Yc(s):Ge(0);let c=(o.left+a.x)/i.x,u=(o.top+a.y)/i.y,f=o.width/i.x,h=o.height/i.y;if(s){const m=je(s),g=r&&ke(r)?je(r):r;let S=m,p=Ds(S);for(;p&&r&&g!==S;){const y=bn(p),v=p.getBoundingClientRect(),w=$e(p),E=v.left+(p.clientLeft+parseFloat(w.paddingLeft))*y.x,T=v.top+(p.clientTop+parseFloat(w.paddingTop))*y.y;c*=y.x,u*=y.y,f*=y.x,h*=y.y,c+=E,u+=T,S=je(p),p=Ds(S)}}return Kr({width:f,height:h,x:c,y:u})}function Xr(e,t){const n=Zr(e).scrollLeft;return t?t.left+n:Qt(Qe(e)).left+n}function Zc(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Xr(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Em(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=Qe(r),a=t?Yr(t.floating):!1;if(r===i||a&&s)return n;let c={scrollLeft:0,scrollTop:0},u=Ge(1);const f=Ge(0),h=Ye(r);if((h||!h&&!s)&&((yn(r)!=="body"||Xn(i))&&(c=Zr(r)),Ye(r))){const g=Qt(r);u=bn(r),f.x=g.x+r.clientLeft,f.y=g.y+r.clientTop}const m=i&&!h&&!s?Zc(i,c):Ge(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+f.x+m.x,y:n.y*u.y-c.scrollTop*u.y+f.y+m.y}}function xm(e){return Array.from(e.getClientRects())}function _m(e){const t=Qe(e),n=Zr(e),r=e.ownerDocument.body,o=Re(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Re(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Xr(e);const a=-n.scrollTop;return $e(r).direction==="rtl"&&(i+=Re(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}const Xc=25;function Tm(e,t){const n=je(e),r=Qe(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,c=0;if(o){s=o.width,i=o.height;const f=Is();(!f||f&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}const u=Xr(r);if(u<=0){const f=r.ownerDocument,h=f.body,m=getComputedStyle(h),g=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,S=Math.abs(r.clientWidth-h.clientWidth-g);S<=Xc&&(s-=S)}else u<=Xc&&(s+=u);return{width:s,height:i,x:a,y:c}}const Pm=new Set(["absolute","fixed"]);function Am(e,t){const n=Qt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Ye(e)?bn(e):Ge(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,c=o*s.x,u=r*s.y;return{width:i,height:a,x:c,y:u}}function Jc(e,t,n){let r;if(t==="viewport")r=Tm(e,n);else if(t==="document")r=_m(Qe(e));else if(ke(t))r=Am(t,n);else{const o=Yc(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Kr(r)}function el(e,t){const n=Et(e);return n===t||!ke(n)||vn(n)?!1:$e(n).position==="fixed"||el(n,t)}function Om(e,t){const n=t.get(e);if(n)return n;let r=Jn(e,[],!1).filter(a=>ke(a)&&yn(a)!=="body"),o=null;const s=$e(e).position==="fixed";let i=s?Et(e):e;for(;ke(i)&&!vn(i);){const a=$e(i),c=js(i);!c&&a.position==="fixed"&&(o=null),(s?!c&&!o:!c&&a.position==="static"&&!!o&&Pm.has(o.position)||Xn(i)&&!c&&el(e,i))?r=r.filter(f=>f!==i):o=a,i=Et(i)}return t.set(e,r),r}function Rm(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Yr(t)?[]:Om(t,this._c):[].concat(n),r],a=i[0],c=i.reduce((u,f)=>{const h=Jc(t,f,o);return u.top=Re(h.top,u.top),u.right=St(h.right,u.right),u.bottom=St(h.bottom,u.bottom),u.left=Re(h.left,u.left),u},Jc(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function jm(e){const{width:t,height:n}=Qc(e);return{width:t,height:n}}function Im(e,t,n){const r=Ye(t),o=Qe(t),s=n==="fixed",i=Qt(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const c=Ge(0);function u(){c.x=Xr(o)}if(r||!r&&!s)if((yn(t)!=="body"||Xn(o))&&(a=Zr(t)),r){const g=Qt(t,!0,s,t);c.x=g.x+t.clientLeft,c.y=g.y+t.clientTop}else o&&u();s&&!r&&o&&u();const f=o&&!r&&!s?Zc(o,a):Ge(0),h=i.left+a.scrollLeft-c.x-f.x,m=i.top+a.scrollTop-c.y-f.y;return{x:h,y:m,width:i.width,height:i.height}}function Ns(e){return $e(e).position==="static"}function tl(e,t){if(!Ye(e)||$e(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Qe(e)===n&&(n=n.ownerDocument.body),n}function nl(e,t){const n=je(e);if(Yr(e))return n;if(!Ye(e)){let o=Et(e);for(;o&&!vn(o);){if(ke(o)&&!Ns(o))return o;o=Et(o)}return n}let r=tl(e,t);for(;r&&pm(r)&&Ns(r);)r=tl(r,t);return r&&vn(r)&&Ns(r)&&!js(r)?n:r||bm(e)||n}const Dm=async function(e){const t=this.getOffsetParent||nl,n=this.getDimensions,r=await n(e.floating);return{reference:Im(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Lm(e){return $e(e).direction==="rtl"}const Nm={convertOffsetParentRelativeRectToViewportRelativeRect:Em,getDocumentElement:Qe,getClippingRect:Rm,getOffsetParent:nl,getElementRects:Dm,getClientRects:xm,getDimensions:jm,getScale:bn,isElement:ke,isRTL:Lm};function rl(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Mm(e,t){let n=null,r;const o=Qe(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),s();const u=e.getBoundingClientRect(),{left:f,top:h,width:m,height:g}=u;if(a||t(),!m||!g)return;const S=qr(h),p=qr(o.clientWidth-(f+m)),y=qr(o.clientHeight-(h+g)),v=qr(f),E={rootMargin:-S+"px "+-p+"px "+-y+"px "+-v+"px",threshold:Re(0,St(1,c))||1};let T=!0;function P(A){const O=A[0].intersectionRatio;if(O!==c){if(!T)return i();O?i(!1,O):r=setTimeout(()=>{i(!1,1e-7)},1e3)}O===1&&!rl(u,e.getBoundingClientRect())&&i(),T=!1}try{n=new IntersectionObserver(P,{...E,root:o.ownerDocument})}catch{n=new IntersectionObserver(P,E)}n.observe(e)}return i(!0),s}function km(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=Ls(e),f=o||s?[...u?Jn(u):[],...Jn(t)]:[];f.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),s&&v.addEventListener("resize",n)});const h=u&&a?Mm(u,n):null;let m=-1,g=null;i&&(g=new ResizeObserver(v=>{let[w]=v;w&&w.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var E;(E=g)==null||E.observe(t)})),n()}),u&&!c&&g.observe(u),g.observe(t));let S,p=c?Qt(e):null;c&&y();function y(){const v=Qt(e);p&&!rl(p,v)&&n(),p=v,S=requestAnimationFrame(y)}return n(),()=>{var v;f.forEach(w=>{o&&w.removeEventListener("scroll",n),s&&w.removeEventListener("resize",n)}),h==null||h(),(v=g)==null||v.disconnect(),g=null,c&&cancelAnimationFrame(S)}}const $m=cm,Fm=lm,Bm=sm,Um=dm,Wm=im,ol=om,Hm=um,Vm=(e,t,n)=>{const r=new Map,o={platform:Nm,...n},s={...o.platform,_c:r};return rm(e,t,{...o,platform:s})};var zm=typeof document<"u",qm=function(){},Jr=zm?x.useLayoutEffect:qm;function eo(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!eo(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!eo(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function sl(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function il(e,t){const n=sl(e);return Math.round(t*n)/n}function Ms(e){const t=d.useRef(e);return Jr(()=>{t.current=e}),t}function Gm(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:c,open:u}=e,[f,h]=d.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,g]=d.useState(r);eo(m,r)||g(r);const[S,p]=d.useState(null),[y,v]=d.useState(null),w=d.useCallback(F=>{F!==A.current&&(A.current=F,p(F))},[]),E=d.useCallback(F=>{F!==O.current&&(O.current=F,v(F))},[]),T=s||S,P=i||y,A=d.useRef(null),O=d.useRef(null),N=d.useRef(f),D=c!=null,M=Ms(c),U=Ms(o),W=Ms(u),H=d.useCallback(()=>{if(!A.current||!O.current)return;const F={placement:t,strategy:n,middleware:m};U.current&&(F.platform=U.current),Vm(A.current,O.current,F).then(se=>{const ge={...se,isPositioned:W.current!==!1};z.current&&!eo(N.current,ge)&&(N.current=ge,mr.flushSync(()=>{h(ge)}))})},[m,t,n,U,W]);Jr(()=>{u===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,h(F=>({...F,isPositioned:!1})))},[u]);const z=d.useRef(!1);Jr(()=>(z.current=!0,()=>{z.current=!1}),[]),Jr(()=>{if(T&&(A.current=T),P&&(O.current=P),T&&P){if(M.current)return M.current(T,P,H);H()}},[T,P,H,M,D]);const oe=d.useMemo(()=>({reference:A,floating:O,setReference:w,setFloating:E}),[w,E]),q=d.useMemo(()=>({reference:T,floating:P}),[T,P]),Y=d.useMemo(()=>{const F={position:n,left:0,top:0};if(!q.floating)return F;const se=il(q.floating,f.x),ge=il(q.floating,f.y);return a?{...F,transform:"translate("+se+"px, "+ge+"px)",...sl(q.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:se,top:ge}},[n,a,q.floating,f.x,f.y]);return d.useMemo(()=>({...f,update:H,refs:oe,elements:q,floatingStyles:Y}),[f,H,oe,q,Y])}const Km=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?ol({element:r.current,padding:o}).fn(n):{}:r?ol({element:r,padding:o}).fn(n):{}}}},Qm=(e,t)=>({...$m(e),options:[e,t]}),Ym=(e,t)=>({...Fm(e),options:[e,t]}),Zm=(e,t)=>({...Hm(e),options:[e,t]}),Xm=(e,t)=>({...Bm(e),options:[e,t]}),Jm=(e,t)=>({...Um(e),options:[e,t]}),eg=(e,t)=>({...Wm(e),options:[e,t]}),tg=(e,t)=>({...Km(e),options:[e,t]});var ng="Arrow",al=d.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return l.jsx(ie.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:l.jsx("polygon",{points:"0,0 30,0 15,10"})})});al.displayName=ng;var rg=al;function og(e){const[t,n]=d.useState(void 0);return ye(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const c=s.borderBoxSize,u=Array.isArray(c)?c[0]:c;i=u.inlineSize,a=u.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var ks="Popper",[cl,to]=Zn(ks),[sg,ll]=cl(ks),ul=e=>{const{__scopePopper:t,children:n}=e,[r,o]=d.useState(null);return l.jsx(sg,{scope:t,anchor:r,onAnchorChange:o,children:n})};ul.displayName=ks;var dl="PopperAnchor",fl=d.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=ll(dl,n),i=d.useRef(null),a=le(t,i),c=d.useRef(null);return d.useEffect(()=>{const u=c.current;c.current=(r==null?void 0:r.current)||i.current,u!==c.current&&s.onAnchorChange(c.current)}),r?null:l.jsx(ie.div,{...o,ref:a})});fl.displayName=dl;var $s="PopperContent",[ig,ag]=cl($s),hl=d.forwardRef((e,t)=>{var $,te,fe,X,ne,J;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:h="partial",hideWhenDetached:m=!1,updatePositionStrategy:g="optimized",onPlaced:S,...p}=e,y=ll($s,n),[v,w]=d.useState(null),E=le(t,Ee=>w(Ee)),[T,P]=d.useState(null),A=og(T),O=(A==null?void 0:A.width)??0,N=(A==null?void 0:A.height)??0,D=r+(s!=="center"?"-"+s:""),M=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},U=Array.isArray(u)?u:[u],W=U.length>0,H={padding:M,boundary:U.filter(lg),altBoundary:W},{refs:z,floatingStyles:oe,placement:q,isPositioned:Y,middlewareData:F}=Gm({strategy:"fixed",placement:D,whileElementsMounted:(...Ee)=>km(...Ee,{animationFrame:g==="always"}),elements:{reference:y.anchor},middleware:[Qm({mainAxis:o+N,alignmentAxis:i}),c&&Ym({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?Zm():void 0,...H}),c&&Xm({...H}),Jm({...H,apply:({elements:Ee,rects:Le,availableWidth:ot,availableHeight:ze})=>{const{width:Bt,height:Oo}=Le.reference,pt=Ee.floating.style;pt.setProperty("--radix-popper-available-width",`${ot}px`),pt.setProperty("--radix-popper-available-height",`${ze}px`),pt.setProperty("--radix-popper-anchor-width",`${Bt}px`),pt.setProperty("--radix-popper-anchor-height",`${Oo}px`)}}),T&&tg({element:T,padding:a}),ug({arrowWidth:O,arrowHeight:N}),m&&eg({strategy:"referenceHidden",...H})]}),[se,ge]=gl(q),De=Gt(S);ye(()=>{Y&&(De==null||De())},[Y,De]);const kt=($=F.arrow)==null?void 0:$.x,$t=(te=F.arrow)==null?void 0:te.y,rt=((fe=F.arrow)==null?void 0:fe.centerOffset)!==0,[Ft,Ve]=d.useState();return ye(()=>{v&&Ve(window.getComputedStyle(v).zIndex)},[v]),l.jsx("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...oe,transform:Y?oe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ft,"--radix-popper-transform-origin":[(X=F.transformOrigin)==null?void 0:X.x,(ne=F.transformOrigin)==null?void 0:ne.y].join(" "),...((J=F.hide)==null?void 0:J.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsx(ig,{scope:n,placedSide:se,onArrowChange:P,arrowX:kt,arrowY:$t,shouldHideArrow:rt,children:l.jsx(ie.div,{"data-side":se,"data-align":ge,...p,ref:E,style:{...p.style,animation:Y?void 0:"none"}})})})});hl.displayName=$s;var pl="PopperArrow",cg={top:"bottom",right:"left",bottom:"top",left:"right"},ml=d.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=ag(pl,r),i=cg[s.placedSide];return l.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:l.jsx(rg,{...o,ref:n,style:{...o.style,display:"block"}})})});ml.displayName=pl;function lg(e){return e!==null}var ug=e=>({name:"transformOrigin",options:e,fn(t){var y,v,w;const{placement:n,rects:r,middlewareData:o}=t,i=((y=o.arrow)==null?void 0:y.centerOffset)!==0,a=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[u,f]=gl(n),h={start:"0%",center:"50%",end:"100%"}[f],m=(((v=o.arrow)==null?void 0:v.x)??0)+a/2,g=(((w=o.arrow)==null?void 0:w.y)??0)+c/2;let S="",p="";return u==="bottom"?(S=i?h:`${m}px`,p=`${-c}px`):u==="top"?(S=i?h:`${m}px`,p=`${r.floating.height+c}px`):u==="right"?(S=`${-c}px`,p=i?h:`${g}px`):u==="left"&&(S=`${r.floating.width+c}px`,p=i?h:`${g}px`),{data:{x:S,y:p}}}});function gl(e){const[t,n="center"]=e.split("-");return[t,n]}var yl=ul,vl=fl,bl=hl,wl=ml,dg="Portal",Fs=d.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,s]=d.useState(!1);ye(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?Wt.createPortal(l.jsx(ie.div,{...r,ref:t}),i):null});Fs.displayName=dg;function fg(e){const t=hg(e),n=d.forwardRef((r,o)=>{const{children:s,...i}=r,a=d.Children.toArray(s),c=a.find(mg);if(c){const u=c.props.children,f=a.map(h=>h===c?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:h);return l.jsx(t,{...i,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,f):null})}return l.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function hg(e){const t=d.forwardRef((n,r)=>{const{children:o,...s}=n;if(d.isValidElement(o)){const i=yg(o),a=gg(s,o.props);return o.type!==d.Fragment&&(a.ref=r?mn(r,i):i),d.cloneElement(o,a)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var pg=Symbol("radix.slottable");function mg(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===pg}function gg(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const c=s(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function yg(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var vg=d[" useInsertionEffect ".trim().toString()]||ye;function no({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=bg({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:o;{const f=d.useRef(e!==void 0);d.useEffect(()=>{const h=f.current;h!==a&&console.warn(`${r} is changing from ${h?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=a},[a,r])}const u=d.useCallback(f=>{var h;if(a){const m=wg(f)?f(e):f;m!==e&&((h=i.current)==null||h.call(i,m))}else s(f)},[a,e,s,i]);return[c,u]}function bg({defaultProp:e,onChange:t}){const[n,r]=d.useState(e),o=d.useRef(n),s=d.useRef(t);return vg(()=>{s.current=t},[t]),d.useEffect(()=>{var i;o.current!==n&&((i=s.current)==null||i.call(s,n),o.current=n)},[n,o]),[n,r,s]}function wg(e){return typeof e=="function"}function Cg(e){const t=d.useRef({value:e,previous:e});return d.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Cl=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Sg="VisuallyHidden",Sl=d.forwardRef((e,t)=>l.jsx(ie.span,{...e,ref:t,style:{...Cl,...e.style}}));Sl.displayName=Sg;var Eg=Sl,xg=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},wn=new WeakMap,ro=new WeakMap,oo={},Bs=0,El=function(e){return e&&(e.host||El(e.parentNode))},_g=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=El(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Tg=function(e,t,n,r){var o=_g(t,Array.isArray(e)?e:[e]);oo[n]||(oo[n]=new WeakMap);var s=oo[n],i=[],a=new Set,c=new Set(o),u=function(h){!h||a.has(h)||(a.add(h),u(h.parentNode))};o.forEach(u);var f=function(h){!h||c.has(h)||Array.prototype.forEach.call(h.children,function(m){if(a.has(m))f(m);else try{var g=m.getAttribute(r),S=g!==null&&g!=="false",p=(wn.get(m)||0)+1,y=(s.get(m)||0)+1;wn.set(m,p),s.set(m,y),i.push(m),p===1&&S&&ro.set(m,!0),y===1&&m.setAttribute(n,"true"),S||m.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",m,v)}})};return f(t),a.clear(),Bs++,function(){i.forEach(function(h){var m=wn.get(h)-1,g=s.get(h)-1;wn.set(h,m),s.set(h,g),m||(ro.has(h)||h.removeAttribute(r),ro.delete(h)),g||h.removeAttribute(n)}),Bs--,Bs||(wn=new WeakMap,wn=new WeakMap,ro=new WeakMap,oo={})}},xl=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=xg(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Tg(r,o,n,"aria-hidden")):function(){return null}},so="right-scroll-bar-position",io="width-before-scroll-bar",Pg="with-scroll-bars-hidden",Ag="--removed-body-scroll-bar-size";function Us(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Og(e,t){var n=x.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Rg=typeof window<"u"?d.useLayoutEffect:d.useEffect,_l=new WeakMap;function jg(e,t){var n=Og(null,function(r){return e.forEach(function(o){return Us(o,r)})});return Rg(function(){var r=_l.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(a){s.has(a)||Us(a,null)}),s.forEach(function(a){o.has(a)||Us(a,i)})}_l.set(n,e)},[e]),n}function Ig(e){return e}function Dg(e,t){t===void 0&&(t=Ig);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var i=t(s,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var c=function(){var f=i;i=[],f.forEach(s)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(f){i.push(f),u()},filter:function(f){return i=i.filter(f),n}}}};return o}function Lg(e){e===void 0&&(e={});var t=Dg(null);return t.options=qe({async:!0,ssr:!1},e),t}var Tl=function(e){var t=e.sideCar,n=da(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return d.createElement(r,qe({},n))};Tl.isSideCarExport=!0;function Ng(e,t){return e.useMedium(t),Tl}var Pl=Lg(),Ws=function(){},ao=d.forwardRef(function(e,t){var n=d.useRef(null),r=d.useState({onScrollCapture:Ws,onWheelCapture:Ws,onTouchMoveCapture:Ws}),o=r[0],s=r[1],i=e.forwardProps,a=e.children,c=e.className,u=e.removeScrollBar,f=e.enabled,h=e.shards,m=e.sideCar,g=e.noRelative,S=e.noIsolation,p=e.inert,y=e.allowPinchZoom,v=e.as,w=v===void 0?"div":v,E=e.gapMode,T=da(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=m,A=jg([n,t]),O=qe(qe({},T),o);return d.createElement(d.Fragment,null,f&&d.createElement(P,{sideCar:Pl,removeScrollBar:u,shards:h,noRelative:g,noIsolation:S,inert:p,setCallbacks:s,allowPinchZoom:!!y,lockRef:n,gapMode:E}),i?d.cloneElement(d.Children.only(a),qe(qe({},O),{ref:A})):d.createElement(w,qe({},O,{className:c,ref:A}),a))});ao.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ao.classNames={fullWidth:io,zeroRight:so};var Mg=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function kg(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Mg();return t&&e.setAttribute("nonce",t),e}function $g(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Fg(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Bg=function(){var e=0,t=null;return{add:function(n){e==0&&(t=kg())&&($g(t,n),Fg(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ug=function(){var e=Bg();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Al=function(){var e=Ug(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Wg={left:0,top:0,right:0,gap:0},Hs=function(e){return parseInt(e||"",10)||0},Hg=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Hs(n),Hs(r),Hs(o)]},Vg=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Wg;var t=Hg(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},zg=Al(),Cn="data-scroll-locked",qg=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
212
- .`.concat(Pg,` {
211
+ `,Rr=16,tp=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:o,containerStyle:s,containerClassName:i})=>{let{toasts:a,handlers:c}=Rh(n);return d.createElement("div",{style:{position:"fixed",zIndex:9999,top:Rr,left:Rr,right:Rr,bottom:Rr,pointerEvents:"none",...s},className:i,onMouseEnter:c.startPause,onMouseLeave:c.endPause},a.map(l=>{let f=l.position||t,h=c.calculateOffset(l,{reverseOrder:e,gutter:r,defaultPosition:t}),m=Jh(f,h);return d.createElement(Xh,{id:l.id,key:l.id,onHeightUpdate:c.updateHeight,className:l.visible?ep:"",style:m},l.type==="custom"?_r(l.message,l):o?o(l):d.createElement(Zh,{toast:l,position:f}))}))},Oa=Re;const Xo=()=>({notify:x.useCallback((t,n,r)=>{const o={style:{background:"var(--platform-background-primary-color)",color:"var(--platform-text-primary-color)"}};n==="warning"||n==="info"?Oa(t,{...o,icon:n==="warning"?"⚠️":"ℹ️"}):Oa[n](t,o),r&&console.error(r)},[])});var pn=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},zt=typeof window>"u"||"Deno"in globalThis;function we(){}function np(e,t){return typeof e=="function"?e(t):e}function Jo(e){return typeof e=="number"&&e>=0&&e!==1/0}function ja(e,t){return Math.max(e+(t||0)-Date.now(),0)}function wt(e,t){return typeof e=="function"?e(t):e}function Me(e,t){return typeof e=="function"?e(t):e}function Ia(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:i,stale:a}=e;if(i){if(r){if(t.queryHash!==es(i,t.options))return!1}else if(!Yn(t.queryKey,i))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||s&&!s(t))}function Da(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(qt(t.options.mutationKey)!==qt(s))return!1}else if(!Yn(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function es(e,t){return((t==null?void 0:t.queryKeyHashFn)||qt)(e)}function qt(e){return JSON.stringify(e,(t,n)=>ns(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Yn(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Yn(e[n],t[n])):!1}function ts(e,t){if(e===t)return e;const n=La(e)&&La(t);if(n||ns(e)&&ns(t)){const r=n?e:Object.keys(e),o=r.length,s=n?t:Object.keys(t),i=s.length,a=n?[]:{};let c=0;for(let l=0;l<i;l++){const f=n?l:s[l];(!n&&r.includes(f)||n)&&e[f]===void 0&&t[f]===void 0?(a[f]=void 0,c++):(a[f]=ts(e[f],t[f]),a[f]===e[f]&&e[f]!==void 0&&c++)}return o===i&&c===o?e:a}return t}function Or(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function La(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ns(e){if(!Na(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Na(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Na(e){return Object.prototype.toString.call(e)==="[object Object]"}function rp(e){return new Promise(t=>{setTimeout(t,e)})}function rs(e,t,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(e,t);if(n.structuralSharing!==!1){try{return ts(e,t)}catch(r){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`),r}return ts(e,t)}return t}function op(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function sp(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var jr=Symbol();function Ma(e,t){return e.queryFn===jr&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===jr?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function ka(e,t){return typeof e=="function"?e(...t):!!e}var ip=(Ld=class extends pn{constructor(){super();k(this,nn);k(this,Pt);k(this,An);j(this,An,t=>{if(!zt&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){C(this,Pt)||this.setEventListener(C(this,An))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,Pt))==null||t.call(this),j(this,Pt,void 0))}setEventListener(t){var n;j(this,An,t),(n=C(this,Pt))==null||n.call(this),j(this,Pt,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){C(this,nn)!==t&&(j(this,nn,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof C(this,nn)=="boolean"?C(this,nn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},nn=new WeakMap,Pt=new WeakMap,An=new WeakMap,Ld),os=new ip,ap=(Nd=class extends pn{constructor(){super();k(this,Rn,!0);k(this,At);k(this,On);j(this,On,t=>{if(!zt&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){C(this,At)||this.setEventListener(C(this,On))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,At))==null||t.call(this),j(this,At,void 0))}setEventListener(t){var n;j(this,On,t),(n=C(this,At))==null||n.call(this),j(this,At,t(this.setOnline.bind(this)))}setOnline(t){C(this,Rn)!==t&&(j(this,Rn,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return C(this,Rn)}},Rn=new WeakMap,At=new WeakMap,On=new WeakMap,Nd),Ir=new ap;function ss(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function cp(e){return Math.min(1e3*2**e,3e4)}function $a(e){return(e??"online")==="online"?Ir.isOnline():!0}var Fa=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function is(e){return e instanceof Fa}function Ba(e){let t=!1,n=0,r=!1,o;const s=ss(),i=p=>{var y;r||(m(new Fa(p)),(y=e.abort)==null||y.call(e))},a=()=>{t=!0},c=()=>{t=!1},l=()=>os.isFocused()&&(e.networkMode==="always"||Ir.isOnline())&&e.canRun(),f=()=>$a(e.networkMode)&&e.canRun(),h=p=>{var y;r||(r=!0,(y=e.onSuccess)==null||y.call(e,p),o==null||o(),s.resolve(p))},m=p=>{var y;r||(r=!0,(y=e.onError)==null||y.call(e,p),o==null||o(),s.reject(p))},g=()=>new Promise(p=>{var y;o=v=>{(r||l())&&p(v)},(y=e.onPause)==null||y.call(e)}).then(()=>{var p;o=void 0,r||(p=e.onContinue)==null||p.call(e)}),S=()=>{if(r)return;let p;const y=n===0?e.initialPromise:void 0;try{p=y??e.fn()}catch(v){p=Promise.reject(v)}Promise.resolve(p).then(h).catch(v=>{var A;if(r)return;const w=e.retry??(zt?0:3),E=e.retryDelay??cp,T=typeof E=="function"?E(n,v):E,P=w===!0||typeof w=="number"&&n<w||typeof w=="function"&&w(n,v);if(t||!P){m(v);return}n++,(A=e.onFail)==null||A.call(e,n,v),rp(T).then(()=>l()?void 0:g()).then(()=>{t?m(v):S()})})};return{promise:s,cancel:i,continue:()=>(o==null||o(),s),cancelRetry:a,continueRetry:c,canStart:f,start:()=>(f()?S():g().then(S),s)}}var lp=e=>setTimeout(e,0);function up(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=lp;const s=a=>{t?e.push(a):o(()=>{n(a)})},i=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(c=>{n(c)})})})};return{batch:a=>{let c;t++;try{c=a()}finally{t--,t||i()}return c},batchCalls:a=>(...c)=>{s(()=>{a(...c)})},schedule:s,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var me=up(),Ua=(Md=class{constructor(){k(this,rn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Jo(this.gcTime)&&j(this,rn,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(zt?1/0:5*60*1e3))}clearGcTimeout(){C(this,rn)&&(clearTimeout(C(this,rn)),j(this,rn,void 0))}},rn=new WeakMap,Md),dp=(kd=class extends Ua{constructor(t){super();k(this,We);k(this,jn);k(this,In);k(this,Ie);k(this,on);k(this,be);k(this,ur);k(this,sn);j(this,sn,!1),j(this,ur,t.defaultOptions),this.setOptions(t.options),this.observers=[],j(this,on,t.client),j(this,Ie,C(this,on).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,j(this,jn,fp(this.options)),this.state=t.state??C(this,jn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=C(this,be))==null?void 0:t.promise}setOptions(t){this.options={...C(this,ur),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&C(this,Ie).remove(this)}setData(t,n){const r=rs(this.state.data,t,this.options);return V(this,We,mt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){V(this,We,mt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=C(this,be))==null?void 0:r.promise;return(o=C(this,be))==null||o.cancel(t),n?n.then(we).catch(we):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(C(this,jn))}isActive(){return this.observers.some(t=>Me(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===jr||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>wt(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!ja(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,be))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,be))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),C(this,Ie).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(C(this,be)&&(C(this,sn)?C(this,be).cancel({revert:!0}):C(this,be).cancelRetry()),this.scheduleGc()),C(this,Ie).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||V(this,We,mt).call(this,{type:"invalidate"})}fetch(t,n){var l,f,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(C(this,be))return C(this,be).continueRetry(),C(this,be).promise}if(t&&this.setOptions(t),!this.options.queryFn){const m=this.observers.find(g=>g.options.queryFn);m&&this.setOptions(m.options)}Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']");const r=new AbortController,o=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(j(this,sn,!0),r.signal)})},s=()=>{const m=Ma(this.options,n),S=(()=>{const p={client:C(this,on),queryKey:this.queryKey,meta:this.meta};return o(p),p})();return j(this,sn,!1),this.options.persister?this.options.persister(m,S,this):m(S)},a=(()=>{const m={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:C(this,on),state:this.state,fetchFn:s};return o(m),m})();(l=this.options.behavior)==null||l.onFetch(a,this),j(this,In,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=a.fetchOptions)==null?void 0:f.meta))&&V(this,We,mt).call(this,{type:"fetch",meta:(h=a.fetchOptions)==null?void 0:h.meta});const c=m=>{var g,S,p,y;is(m)&&m.silent||V(this,We,mt).call(this,{type:"error",error:m}),is(m)||((S=(g=C(this,Ie).config).onError)==null||S.call(g,m,this),(y=(p=C(this,Ie).config).onSettled)==null||y.call(p,this.state.data,m,this)),this.scheduleGc()};return j(this,be,Ba({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:m=>{var g,S,p,y;if(m===void 0){console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(m)}catch(v){c(v);return}(S=(g=C(this,Ie).config).onSuccess)==null||S.call(g,m,this),(y=(p=C(this,Ie).config).onSettled)==null||y.call(p,m,this.state.error,this),this.scheduleGc()},onError:c,onFail:(m,g)=>{V(this,We,mt).call(this,{type:"failed",failureCount:m,error:g})},onPause:()=>{V(this,We,mt).call(this,{type:"pause"})},onContinue:()=>{V(this,We,mt).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),C(this,be).start()}},jn=new WeakMap,In=new WeakMap,Ie=new WeakMap,on=new WeakMap,be=new WeakMap,ur=new WeakMap,sn=new WeakMap,We=new WeakSet,mt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Wa(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return is(o)&&o.revert&&C(this,In)?{...C(this,In),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),me.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),C(this,Ie).notify({query:this,type:"updated",action:t})})},kd);function Wa(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:$a(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function fp(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var hp=($d=class extends pn{constructor(t={}){super();k(this,et);this.config=t,j(this,et,new Map)}build(t,n,r){const o=n.queryKey,s=n.queryHash??es(o,n);let i=this.get(s);return i||(i=new dp({client:t,queryKey:o,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(i)),i}add(t){C(this,et).has(t.queryHash)||(C(this,et).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=C(this,et).get(t.queryHash);n&&(t.destroy(),n===t&&C(this,et).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){me.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return C(this,et).get(t)}getAll(){return[...C(this,et).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Ia(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Ia(t,r)):n}notify(t){me.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){me.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){me.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},et=new WeakMap,$d),pp=(Fd=class extends Ua{constructor(t){super();k(this,nt);k(this,tt);k(this,Ce);k(this,an);this.mutationId=t.mutationId,j(this,Ce,t.mutationCache),j(this,tt,[]),this.state=t.state||Ha(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){C(this,tt).includes(t)||(C(this,tt).push(t),this.clearGcTimeout(),C(this,Ce).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){j(this,tt,C(this,tt).filter(n=>n!==t)),this.scheduleGc(),C(this,Ce).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){C(this,tt).length||(this.state.status==="pending"?this.scheduleGc():C(this,Ce).remove(this))}continue(){var t;return((t=C(this,an))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,i,a,c,l,f,h,m,g,S,p,y,v,w,E,T,P,A,R,N;const n=()=>{V(this,nt,Ut).call(this,{type:"continue"})};j(this,an,Ba({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(D,M)=>{V(this,nt,Ut).call(this,{type:"failed",failureCount:D,error:M})},onPause:()=>{V(this,nt,Ut).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>C(this,Ce).canRun(this)}));const r=this.state.status==="pending",o=!C(this,an).canStart();try{if(r)n();else{V(this,nt,Ut).call(this,{type:"pending",variables:t,isPaused:o}),await((i=(s=C(this,Ce).config).onMutate)==null?void 0:i.call(s,t,this));const M=await((c=(a=this.options).onMutate)==null?void 0:c.call(a,t));M!==this.state.context&&V(this,nt,Ut).call(this,{type:"pending",context:M,variables:t,isPaused:o})}const D=await C(this,an).start();return await((f=(l=C(this,Ce).config).onSuccess)==null?void 0:f.call(l,D,t,this.state.context,this)),await((m=(h=this.options).onSuccess)==null?void 0:m.call(h,D,t,this.state.context)),await((S=(g=C(this,Ce).config).onSettled)==null?void 0:S.call(g,D,null,this.state.variables,this.state.context,this)),await((y=(p=this.options).onSettled)==null?void 0:y.call(p,D,null,t,this.state.context)),V(this,nt,Ut).call(this,{type:"success",data:D}),D}catch(D){try{throw await((w=(v=C(this,Ce).config).onError)==null?void 0:w.call(v,D,t,this.state.context,this)),await((T=(E=this.options).onError)==null?void 0:T.call(E,D,t,this.state.context)),await((A=(P=C(this,Ce).config).onSettled)==null?void 0:A.call(P,void 0,D,this.state.variables,this.state.context,this)),await((N=(R=this.options).onSettled)==null?void 0:N.call(R,void 0,D,t,this.state.context)),D}finally{V(this,nt,Ut).call(this,{type:"error",error:D})}}finally{C(this,Ce).runNext(this)}}},tt=new WeakMap,Ce=new WeakMap,an=new WeakMap,nt=new WeakSet,Ut=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),me.batch(()=>{C(this,tt).forEach(r=>{r.onMutationUpdate(t)}),C(this,Ce).notify({mutation:this,type:"updated",action:t})})},Fd);function Ha(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var mp=(Bd=class extends pn{constructor(t={}){super();k(this,dt);k(this,He);k(this,dr);this.config=t,j(this,dt,new Set),j(this,He,new Map),j(this,dr,0)}build(t,n,r){const o=new pp({mutationCache:this,mutationId:++jo(this,dr)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){C(this,dt).add(t);const n=Dr(t);if(typeof n=="string"){const r=C(this,He).get(n);r?r.push(t):C(this,He).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(C(this,dt).delete(t)){const n=Dr(t);if(typeof n=="string"){const r=C(this,He).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&C(this,He).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Dr(t);if(typeof n=="string"){const r=C(this,He).get(n),o=r==null?void 0:r.find(s=>s.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=Dr(t);if(typeof n=="string"){const o=(r=C(this,He).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){me.batch(()=>{C(this,dt).forEach(t=>{this.notify({type:"removed",mutation:t})}),C(this,dt).clear(),C(this,He).clear()})}getAll(){return Array.from(C(this,dt))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Da(n,r))}findAll(t={}){return this.getAll().filter(n=>Da(t,n))}notify(t){me.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return me.batch(()=>Promise.all(t.map(n=>n.continue().catch(we))))}},dt=new WeakMap,He=new WeakMap,dr=new WeakMap,Bd);function Dr(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Va(e){return{onFetch:(t,n)=>{var f,h,m,g,S;const r=t.options,o=(m=(h=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:h.fetchMore)==null?void 0:m.direction,s=((g=t.state.data)==null?void 0:g.pages)||[],i=((S=t.state.data)==null?void 0:S.pageParams)||[];let a={pages:[],pageParams:[]},c=0;const l=async()=>{let p=!1;const y=E=>{Object.defineProperty(E,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)})},v=Ma(t.options,t.fetchOptions),w=async(E,T,P)=>{if(p)return Promise.reject();if(T==null&&E.pages.length)return Promise.resolve(E);const R=(()=>{const U={client:t.client,queryKey:t.queryKey,pageParam:T,direction:P?"backward":"forward",meta:t.options.meta};return y(U),U})(),N=await v(R),{maxPages:D}=t.options,M=P?sp:op;return{pages:M(E.pages,N,D),pageParams:M(E.pageParams,T,D)}};if(o&&s.length){const E=o==="backward",T=E?gp:za,P={pages:s,pageParams:i},A=T(r,P);a=await w(P,A,E)}else{const E=e??s.length;do{const T=c===0?i[0]??r.initialPageParam:za(r,a);if(c>0&&T==null)break;a=await w(a,T),c++}while(c<E)}return a};t.options.persister?t.fetchFn=()=>{var p,y;return(y=(p=t.options).persister)==null?void 0:y.call(p,l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=l}}}function za(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function gp(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var yp=(Ud=class{constructor(e={}){k(this,ue);k(this,Rt);k(this,Ot);k(this,Dn);k(this,Ln);k(this,jt);k(this,Nn);k(this,Mn);j(this,ue,e.queryCache||new hp),j(this,Rt,e.mutationCache||new mp),j(this,Ot,e.defaultOptions||{}),j(this,Dn,new Map),j(this,Ln,new Map),j(this,jt,0)}mount(){jo(this,jt)._++,C(this,jt)===1&&(j(this,Nn,os.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,ue).onFocus())})),j(this,Mn,Ir.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,ue).onOnline())})))}unmount(){var e,t;jo(this,jt)._--,C(this,jt)===0&&((e=C(this,Nn))==null||e.call(this),j(this,Nn,void 0),(t=C(this,Mn))==null||t.call(this),j(this,Mn,void 0))}isFetching(e){return C(this,ue).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return C(this,Rt).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,ue).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=C(this,ue).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(wt(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return C(this,ue).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=C(this,ue).get(r.queryHash),s=o==null?void 0:o.state.data,i=np(t,s);if(i!==void 0)return C(this,ue).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return me.batch(()=>C(this,ue).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,ue).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=C(this,ue);me.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=C(this,ue);return me.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=me.batch(()=>C(this,ue).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(we).catch(we)}invalidateQueries(e,t={}){return me.batch(()=>(C(this,ue).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=me.batch(()=>C(this,ue).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(we)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(we)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=C(this,ue).build(this,t);return n.isStaleByTime(wt(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(we).catch(we)}fetchInfiniteQuery(e){return e.behavior=Va(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(we).catch(we)}ensureInfiniteQueryData(e){return e.behavior=Va(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Ir.isOnline()?C(this,Rt).resumePausedMutations():Promise.resolve()}getQueryCache(){return C(this,ue)}getMutationCache(){return C(this,Rt)}getDefaultOptions(){return C(this,Ot)}setDefaultOptions(e){j(this,Ot,e)}setQueryDefaults(e,t){C(this,Dn).set(qt(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...C(this,Dn).values()],n={};return t.forEach(r=>{Yn(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){C(this,Ln).set(qt(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...C(this,Ln).values()],n={};return t.forEach(r=>{Yn(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...C(this,Ot).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=es(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===jr&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...C(this,Ot).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){C(this,ue).clear(),C(this,Rt).clear()}},ue=new WeakMap,Rt=new WeakMap,Ot=new WeakMap,Dn=new WeakMap,Ln=new WeakMap,jt=new WeakMap,Nn=new WeakMap,Mn=new WeakMap,Ud),vp=(Wd=class extends pn{constructor(t,n){super();k(this,ee);k(this,Te);k(this,K);k(this,fr);k(this,Se);k(this,cn);k(this,kn);k(this,It);k(this,Dt);k(this,hr);k(this,$n);k(this,Fn);k(this,ln);k(this,un);k(this,Lt);k(this,Bn,new Set);this.options=n,j(this,Te,t),j(this,Dt,null),j(this,It,ss()),this.options.experimental_prefetchInRender||C(this,It).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(C(this,K).addObserver(this),qa(C(this,K),this.options)?V(this,ee,pr).call(this):this.updateResult(),V(this,ee,Ii).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return as(C(this,K),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return as(C(this,K),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,V(this,ee,Di).call(this),V(this,ee,Li).call(this),C(this,K).removeObserver(this)}setOptions(t){const n=this.options,r=C(this,K);if(this.options=C(this,Te).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Me(this.options.enabled,C(this,K))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");V(this,ee,Ni).call(this),C(this,K).setOptions(this.options),n._defaulted&&!Or(this.options,n)&&C(this,Te).getQueryCache().notify({type:"observerOptionsUpdated",query:C(this,K),observer:this});const o=this.hasListeners();o&&Ga(C(this,K),r,this.options,n)&&V(this,ee,pr).call(this),this.updateResult(),o&&(C(this,K)!==r||Me(this.options.enabled,C(this,K))!==Me(n.enabled,C(this,K))||wt(this.options.staleTime,C(this,K))!==wt(n.staleTime,C(this,K)))&&V(this,ee,Ri).call(this);const s=V(this,ee,Oi).call(this);o&&(C(this,K)!==r||Me(this.options.enabled,C(this,K))!==Me(n.enabled,C(this,K))||s!==C(this,Lt))&&V(this,ee,ji).call(this,s)}getOptimisticResult(t){const n=C(this,Te).getQueryCache().build(C(this,Te),t),r=this.createResult(n,t);return wp(this,r)&&(j(this,Se,r),j(this,kn,this.options),j(this,cn,C(this,K).state)),r}getCurrentResult(){return C(this,Se)}trackResult(t,n){return new Proxy(t,{get:(r,o)=>(this.trackProp(o),n==null||n(o),Reflect.get(r,o))})}trackProp(t){C(this,Bn).add(t)}getCurrentQuery(){return C(this,K)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=C(this,Te).defaultQueryOptions(t),r=C(this,Te).getQueryCache().build(C(this,Te),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return V(this,ee,pr).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),C(this,Se)))}createResult(t,n){var D;const r=C(this,K),o=this.options,s=C(this,Se),i=C(this,cn),a=C(this,kn),l=t!==r?t.state:C(this,fr),{state:f}=t;let h={...f},m=!1,g;if(n._optimisticResults){const M=this.hasListeners(),U=!M&&qa(t,n),W=M&&Ga(t,r,n,o);(U||W)&&(h={...h,...Wa(f.data,t.options)}),n._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:S,errorUpdatedAt:p,status:y}=h;g=h.data;let v=!1;if(n.placeholderData!==void 0&&g===void 0&&y==="pending"){let M;s!=null&&s.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(M=s.data,v=!0):M=typeof n.placeholderData=="function"?n.placeholderData((D=C(this,Fn))==null?void 0:D.state.data,C(this,Fn)):n.placeholderData,M!==void 0&&(y="success",g=rs(s==null?void 0:s.data,M,n),m=!0)}if(n.select&&g!==void 0&&!v)if(s&&g===(i==null?void 0:i.data)&&n.select===C(this,hr))g=C(this,$n);else try{j(this,hr,n.select),g=n.select(g),g=rs(s==null?void 0:s.data,g,n),j(this,$n,g),j(this,Dt,null)}catch(M){j(this,Dt,M)}C(this,Dt)&&(S=C(this,Dt),g=C(this,$n),p=Date.now(),y="error");const w=h.fetchStatus==="fetching",E=y==="pending",T=y==="error",P=E&&w,A=g!==void 0,N={status:y,fetchStatus:h.fetchStatus,isPending:E,isSuccess:y==="success",isError:T,isInitialLoading:P,isLoading:P,data:g,dataUpdatedAt:h.dataUpdatedAt,error:S,errorUpdatedAt:p,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>l.dataUpdateCount||h.errorUpdateCount>l.errorUpdateCount,isFetching:w,isRefetching:w&&!E,isLoadingError:T&&!A,isPaused:h.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:T&&A,isStale:cs(t,n),refetch:this.refetch,promise:C(this,It)};if(this.options.experimental_prefetchInRender){const M=H=>{N.status==="error"?H.reject(N.error):N.data!==void 0&&H.resolve(N.data)},U=()=>{const H=j(this,It,N.promise=ss());M(H)},W=C(this,It);switch(W.status){case"pending":t.queryHash===r.queryHash&&M(W);break;case"fulfilled":(N.status==="error"||N.data!==W.value)&&U();break;case"rejected":(N.status!=="error"||N.error!==W.reason)&&U();break}}return N}updateResult(){const t=C(this,Se),n=this.createResult(C(this,K),this.options);if(j(this,cn,C(this,K).state),j(this,kn,this.options),C(this,cn).data!==void 0&&j(this,Fn,C(this,K)),Or(n,t))return;j(this,Se,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,s=typeof o=="function"?o():o;if(s==="all"||!s&&!C(this,Bn).size)return!0;const i=new Set(s??C(this,Bn));return this.options.throwOnError&&i.add("error"),Object.keys(C(this,Se)).some(a=>{const c=a;return C(this,Se)[c]!==t[c]&&i.has(c)})};V(this,ee,rf).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&V(this,ee,Ii).call(this)}},Te=new WeakMap,K=new WeakMap,fr=new WeakMap,Se=new WeakMap,cn=new WeakMap,kn=new WeakMap,It=new WeakMap,Dt=new WeakMap,hr=new WeakMap,$n=new WeakMap,Fn=new WeakMap,ln=new WeakMap,un=new WeakMap,Lt=new WeakMap,Bn=new WeakMap,ee=new WeakSet,pr=function(t){V(this,ee,Ni).call(this);let n=C(this,K).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(we)),n},Ri=function(){V(this,ee,Di).call(this);const t=wt(this.options.staleTime,C(this,K));if(zt||C(this,Se).isStale||!Jo(t))return;const r=ja(C(this,Se).dataUpdatedAt,t)+1;j(this,ln,setTimeout(()=>{C(this,Se).isStale||this.updateResult()},r))},Oi=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(C(this,K)):this.options.refetchInterval)??!1},ji=function(t){V(this,ee,Li).call(this),j(this,Lt,t),!(zt||Me(this.options.enabled,C(this,K))===!1||!Jo(C(this,Lt))||C(this,Lt)===0)&&j(this,un,setInterval(()=>{(this.options.refetchIntervalInBackground||os.isFocused())&&V(this,ee,pr).call(this)},C(this,Lt)))},Ii=function(){V(this,ee,Ri).call(this),V(this,ee,ji).call(this,V(this,ee,Oi).call(this))},Di=function(){C(this,ln)&&(clearTimeout(C(this,ln)),j(this,ln,void 0))},Li=function(){C(this,un)&&(clearInterval(C(this,un)),j(this,un,void 0))},Ni=function(){const t=C(this,Te).getQueryCache().build(C(this,Te),this.options);if(t===C(this,K))return;const n=C(this,K);j(this,K,t),j(this,fr,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},rf=function(t){me.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(C(this,Se))}),C(this,Te).getQueryCache().notify({query:C(this,K),type:"observerResultsUpdated"})})},Wd);function bp(e,t){return Me(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function qa(e,t){return bp(e,t)||e.state.data!==void 0&&as(e,t,t.refetchOnMount)}function as(e,t,n){if(Me(t.enabled,e)!==!1&&wt(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&cs(e,t)}return!1}function Ga(e,t,n,r){return(e!==t||Me(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&cs(e,n)}function cs(e,t){return Me(t.enabled,e)!==!1&&e.isStaleByTime(wt(t.staleTime,e))}function wp(e,t){return!Or(e.getCurrentResult(),t)}var Cp=(Hd=class extends pn{constructor(n,r){super();k(this,ht);k(this,Nt);k(this,Mt);k(this,Pe);k(this,ft);j(this,Nt,n),this.setOptions(r),this.bindMethods(),V(this,ht,Io).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var o;const r=this.options;this.options=C(this,Nt).defaultMutationOptions(n),Or(this.options,r)||C(this,Nt).getMutationCache().notify({type:"observerOptionsUpdated",mutation:C(this,Pe),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&qt(r.mutationKey)!==qt(this.options.mutationKey)?this.reset():((o=C(this,Pe))==null?void 0:o.state.status)==="pending"&&C(this,Pe).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=C(this,Pe))==null||n.removeObserver(this)}onMutationUpdate(n){V(this,ht,Io).call(this),V(this,ht,Mi).call(this,n)}getCurrentResult(){return C(this,Mt)}reset(){var n;(n=C(this,Pe))==null||n.removeObserver(this),j(this,Pe,void 0),V(this,ht,Io).call(this),V(this,ht,Mi).call(this)}mutate(n,r){var o;return j(this,ft,r),(o=C(this,Pe))==null||o.removeObserver(this),j(this,Pe,C(this,Nt).getMutationCache().build(C(this,Nt),this.options)),C(this,Pe).addObserver(this),C(this,Pe).execute(n)}},Nt=new WeakMap,Mt=new WeakMap,Pe=new WeakMap,ft=new WeakMap,ht=new WeakSet,Io=function(){var r;const n=((r=C(this,Pe))==null?void 0:r.state)??Ha();j(this,Mt,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Mi=function(n){me.batch(()=>{var r,o,s,i,a,c,l,f;if(C(this,ft)&&this.hasListeners()){const h=C(this,Mt).variables,m=C(this,Mt).context;(n==null?void 0:n.type)==="success"?((o=(r=C(this,ft)).onSuccess)==null||o.call(r,n.data,h,m),(i=(s=C(this,ft)).onSettled)==null||i.call(s,n.data,null,h,m)):(n==null?void 0:n.type)==="error"&&((c=(a=C(this,ft)).onError)==null||c.call(a,n.error,h,m),(f=(l=C(this,ft)).onSettled)==null||f.call(l,void 0,n.error,h,m))}this.listeners.forEach(h=>{h(C(this,Mt))})})},Hd),Ka=d.createContext(void 0),ls=e=>{const t=d.useContext(Ka);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Sp=({client:e,children:t})=>(d.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),u.jsx(Ka.Provider,{value:e,children:t})),Qa=d.createContext(!1),Ep=()=>d.useContext(Qa);Qa.Provider;function xp(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var _p=d.createContext(xp()),Tp=()=>d.useContext(_p),Pp=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Ap=e=>{d.useEffect(()=>{e.clearReset()},[e])},Rp=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||ka(n,[e.error,r])),Op=e=>{if(e.suspense){const t=r=>r==="static"?r:Math.max(r??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...r)=>t(n(...r)):t(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},jp=(e,t)=>e.isLoading&&e.isFetching&&!t,Ip=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Ya=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Dp(e,t,n){var h,m,g,S,p;if(typeof e!="object"||Array.isArray(e))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=Ep(),o=Tp(),s=ls(),i=s.defaultQueryOptions(e);(m=(h=s.getDefaultOptions().queries)==null?void 0:h._experimental_beforeQuery)==null||m.call(h,i),i.queryFn||console.error(`[${i.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`),i._optimisticResults=r?"isRestoring":"optimistic",Op(i),Pp(i,o),Ap(o);const a=!s.getQueryCache().get(i.queryHash),[c]=d.useState(()=>new t(s,i)),l=c.getOptimisticResult(i),f=!r&&e.subscribed!==!1;if(d.useSyncExternalStore(d.useCallback(y=>{const v=f?c.subscribe(me.batchCalls(y)):we;return c.updateResult(),v},[c,f]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),d.useEffect(()=>{c.setOptions(i)},[i,c]),Ip(i,l))throw Ya(i,c,o);if(Rp({result:l,errorResetBoundary:o,throwOnError:i.throwOnError,query:s.getQueryCache().get(i.queryHash),suspense:i.suspense}))throw l.error;if((S=(g=s.getDefaultOptions().queries)==null?void 0:g._experimental_afterQuery)==null||S.call(g,i,l),i.experimental_prefetchInRender&&!zt&&jp(l,r)){const y=a?Ya(i,c,o):(p=s.getQueryCache().get(i.queryHash))==null?void 0:p.promise;y==null||y.catch(we).finally(()=>{c.updateResult()})}return i.notifyOnChangeProps?l:c.trackResult(l)}function Za(e,t){return Dp(e,vp)}function Lr(e,t){const n=ls(),[r]=d.useState(()=>new Cp(n,e));d.useEffect(()=>{r.setOptions(e)},[r,e]);const o=d.useSyncExternalStore(d.useCallback(i=>r.subscribe(me.batchCalls(i)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=d.useCallback((i,a)=>{r.mutate(i,a).catch(we)},[r]);if(o.error&&ka(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:s,mutateAsync:o.mutate}}const Nr={STALE_TIME:1e3*60*5,GC_TIME:1e3*60*10,RETRY_COUNT:1,RETRY_DELAY:1e3},Xa={refetchOnWindowFocus:!1,refetchOnReconnect:!1,refetchOnMount:!1,staleTime:Nr.STALE_TIME,gcTime:Nr.GC_TIME,retry:Nr.RETRY_COUNT,retryDelay:Nr.RETRY_DELAY,enable:!0},Mr=e=>e instanceof Error?e.message:String(e),Ja=(e,t,n)=>{const r=ls(),{notify:o}=Xo(),{createFn:s,readFn:i,readByIdFn:a,updateFn:c,deleteFn:l,partialUpdateFn:f}=n,h=()=>{r.invalidateQueries({queryKey:[e]})},m=(T,P,A,R)=>o(R!=null&&R.overrideSuccessMessage?R==null?void 0:R.overrideSuccessMessage(T,P):A,"success"),g=(T,P,A,R)=>o(R!=null&&R.overrideErrorMessage?R==null?void 0:R.overrideErrorMessage(T,P):A,"error");return{useCreate:T=>Lr({mutationFn:P=>s(P),onSuccess:P=>{h(),m(t,P,`${t} created successfully`,T)},onError:P=>{g(t,P,`Error creating ${t}: ${Mr(P)}`,T)}}),useReadQuery:T=>Za({queryKey:[e],queryFn:i,...Xa,...T}),useReadByIdQuery:(T,P)=>Za({queryKey:[e,T],queryFn:()=>a(T),...Xa,enabled:!!T,...P}),useUpdate:T=>Lr({mutationFn:({id:P,data:A})=>c(P,A),onSuccess:P=>{h(),m(t,P,`${t} updated successfully`,T)},onError:P=>{g(t,P,`Error updating ${t}: ${Mr(P)}`,T)}}),usePartialUpdate:T=>f&&Lr({mutationFn:({id:P,data:A})=>f(P,A),onSuccess:P=>{h(),m(t,P,`${t} updated successfully`,T)},onError:P=>{g(t,P,`Error updating ${t}: ${Mr(P)}`,T)}}),useDelete:T=>Lr({mutationFn:P=>l(P),onSuccess:()=>{h(),m(t,null,`${t} deleted successfully`,T)},onError:P=>{g(t,P,`Error deleting ${t}: ${Mr(P)}`,T)}}),invalidateQueries:h}},Lp=(e,t)=>Ja(e,t,{createFn:n=>fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)}).then(r=>r.json()),deleteFn:n=>fetch(`${e}/${n}`,{method:"DELETE"}).then(r=>{if(!r.ok)throw new Error(`Error deleting: ${r.status}`)}),readByIdFn:n=>fetch(`${e}/${n}`).then(r=>r.json()),readFn:()=>fetch(e).then(n=>n.json()),updateFn:(n,r)=>fetch(`${e}/${n}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}).then(o=>o.json()),partialUpdateFn:(n,r)=>fetch(`${e}/${n}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}).then(o=>o.json())}),Np={SINGLE_TENANT:"single-tenant"},Mp={COOKIE:"cookie"},us="tenant",ec="tenant",tc="tenant",kp=Np.SINGLE_TENANT,$p=Mp.COOKIE,Fp={mode:kp,clientSideMode:$p,tenantIDPProvisioningStrategy:"none"};class Bp{setTenant(t,n){const r=new URL(window.location.href);r.searchParams.set(ec,t.name),window.location.href=r.toString()}getCurrentTenantName(){const t=new URL(window.location.href);return new URLSearchParams(t.search).get(ec)}}class Up{setTenant(t,n){sessionStorage.setItem(tc,t.name),window.location.reload()}getCurrentTenantName(){return sessionStorage.getItem(tc)}}/*! js-cookie v3.0.5 | MIT */function kr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var Wp={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function ds(e,t){function n(o,s,i){if(!(typeof document>"u")){i=kr({},t,i),typeof i.expires=="number"&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var c in i)i[c]&&(a+="; "+c,i[c]!==!0&&(a+="="+i[c].split(";")[0]));return document.cookie=o+"="+e.write(s,o)+a}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var s=document.cookie?document.cookie.split("; "):[],i={},a=0;a<s.length;a++){var c=s[a].split("="),l=c.slice(1).join("=");try{var f=decodeURIComponent(c[0]);if(i[f]=e.read(l,f),o===f)break}catch{}}return o?i[o]:i}}return Object.create({set:n,get:r,remove:function(o,s){n(o,"",kr({},s,{expires:-1}))},withAttributes:function(o){return ds(this.converter,kr({},this.attributes,o))},withConverter:function(o){return ds(kr({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var fs=ds(Wp,{path:"/"});class Hp{setTenant(t,n){t?fs.set(us,t.name):fs.remove(us),window.location.reload()}getCurrentTenantName(){return fs.get(us)}}class Vp{extractSubdomain(t){if(t==="localhost"||/^\d+\.\d+\.\d+\.\d+$/.test(t))return"";const n=t.split(".");if(n.length<2||n.length===2||n[0]==="www"&&n.length===3)return"";const o=(n[0]==="www"?n.slice(1):n).slice(0,-2);return o.length>0?o.join("."):""}getBaseDomain(t){const n=t.split(".");return t==="localhost"||/^\d+\.\d+\.\d+\.\d+$/.test(t)||n.length<=2?t:n.slice(-2).join(".")}setTenant(t,n){var l;const r=(l=n.urlPatterns)==null?void 0:l.find(f=>f.patternType==="subdomain"&&f.tenantId===t.id&&f.isActive);if(!r)throw new Error(`No active subdomain pattern found for tenant '${t.name}'`);const o=new URL(window.location.href),s=r.patternValue,i=o.hostname,a=this.getBaseDomain(i),c=s?`${s}.${a}`:a;o.hostname=c,window.location.href=o.toString()}getCurrentTenantName(){const t=window.location.hostname;return this.extractSubdomain(t)||null}}const nc={queryParams:new Bp,sessionStorage:new Up,cookie:new Hp,subdomain:new Vp},zp=e=>{const t=nc[e.clientSideMode];if(!t)throw new Error(`Client side tenant mode '${e.clientSideMode}' is not supported ${JSON.stringify({strategies:nc},null,2)}`);return t},qp=(e,t,n)=>{const r=t.find(s=>s.name===n);if(!r)throw Error("No tenant permission");return zp(e).setTenant(r,e),r},Gp=()=>{const[e,t]=fn(),{tenants:n=[],currentTenant:r,tenantConfig:o=Fp}=e,s=x.useCallback(i=>{const a=qp(o,n,i);t({...e,currentTenant:a})},[o,e]);return{tenants:n,currentTenant:r,tenantConfig:o,selectTenant:s}};function Kp(e){if(!e.ok)throw console.error(e),new Error(e.statusText)}async function $r(e,t,n,r){const o=await e(`/user-states/${encodeURIComponent(t)}/${encodeURIComponent(n)}`,r);return Kp(o),o}class Fr{static async get(t,n,r){const s=await $r(t,n,r,{method:"GET",headers:{"Content-Type":"application/json"}});return s.status===204?null:await s.json()}static async create(t,n,r,o){const s={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({value:o})};return await(await $r(t,n,r,s)).json()}static async update(t,n,r,o){const s={method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({value:o})};return await(await $r(t,n,r,s)).json()}static async delete(t,n,r){return await $r(t,n,r,{method:"DELETE",headers:{"Content-Type":"application/json"}}),null}}const Qp=e=>{const t=Uo("@bluealba/pae-nestjs-gateway-service"),n=sa();if(!n)throw new Error("You must call the useUserState hook within a PAE application.");const[r,o]=x.useState(null),[s,i]=x.useState(!1),[a,c]=x.useState(!1),[l,f]=x.useState(null),h=(w,E)=>x.useCallback(async({newValue:T,shouldThrowError:P}={})=>{try{c(!0),f(null);const A=await w(t,n,e,T);return o(A),A?A.value:null}catch(A){if(f(A==null?void 0:A.message),console.error(`Failed to ${E} ${e}:`,A),P)throw A;return null}finally{c(!1)}},[t,n,e]),m=h(Fr.get,"fetch"),g=h(Fr.create,"create"),S=h(Fr.update,"update"),p=h(Fr.delete,"delete"),y=x.useCallback(async()=>{try{await m()}finally{i(!0)}},[m]);x.useEffect(()=>{y()},[y]);const v=x.useCallback(async(w,E=!1)=>r==null?await g({newValue:w,shouldThrowError:E}):await S({newValue:w,shouldThrowError:E}),[r,g,S]);return{value:r?r.value:null,hasFetched:s,loading:a,error:l,setValue:v,createValue:g,updateValue:S,deleteValue:p}},rc="single-spa:app-change";function Yp(){const[e,t]=x.useState(oc());return x.useEffect(()=>{const n=()=>{t(oc())};return window.addEventListener(rc,n),()=>{window.removeEventListener(rc,n)}},[]),e}function oc(){return pe.getAppNames().reduce((t,n)=>(pe.getAppStatus(n)?t[n]=pe.getAppStatus(n):t[n]="NOT_LOADED",t),{})}function hs(e){const n=Yp()[e]??"LOAD_ERROR";return{statusName:n,isLoading:n==="LOADING_SOURCE_CODE"||n==="BOOTSTRAPPING"||n==="MOUNTING",isMounted:n==="MOUNTED",isBroken:n==="SKIP_BECAUSE_BROKEN"||n==="LOAD_ERROR"}}function Zp(e){const{url:t,method:n,formData:r,onProgress:o,signal:s}=e;return new Promise((i,a)=>{const c=new XMLHttpRequest;c.withCredentials=!0,c.upload.onprogress=l=>{l.lengthComputable&&o&&o(Math.round(l.loaded/l.total*100))},c.onload=()=>{if(c.status>=400){let l="Upload failed";try{l=JSON.parse(c.responseText).message??l}catch{}const f=new Error(l);f.status=c.status,a(f);return}try{const l=JSON.parse(c.responseText);i(l)}catch{a(new Error("Failed to parse response JSON"))}},c.onerror=()=>{a(new Error("Upload failed due to a network error"))},s&&s.addEventListener("abort",()=>c.abort()),c.open(n,t),c.send(r)})}const Zn="File storage is disabled on this platform";async function Br(e){let t=`Request failed with status ${e.status}`;try{const n=await e.json();n!=null&&n.message&&(t=n.message)}catch{}throw new Error(t)}function Xp(){const[{fileStorageEnabled:e}]=fn(),t=x.useCallback((i,a)=>{if(!e)return Promise.reject(new Error(Zn));const c=new FormData;return c.append("file",i),(a==null?void 0:a.isPublic)!==void 0&&c.append("isPublic",String(a.isPublic)),(a==null?void 0:a.description)!==void 0&&c.append("description",a.description),(a==null?void 0:a.metadata)!==void 0&&c.append("metadata",JSON.stringify(a.metadata)),Zp({url:"/files",method:"POST",formData:c,onProgress:a==null?void 0:a.onProgress,signal:a==null?void 0:a.signal})},[e]),n=x.useCallback(async(i,a)=>{if(!e)return Promise.reject(new Error(Zn));const c=new FormData;a.originalName!==void 0&&c.append("originalName",a.originalName),a.isPublic!==void 0&&c.append("isPublic",String(a.isPublic)),a.description!==void 0&&c.append("description",a.description),a.metadata!==void 0&&c.append("metadata",JSON.stringify(a.metadata));const l=await fetch(`/files/${i}`,{method:"PATCH",headers:{Accept:"application/json"},body:c});return l.ok||await Br(l),l.json()},[e]),r=x.useCallback(async i=>{if(!e)return Promise.reject(new Error(Zn));const a=await fetch(`/files/${i}`,{method:"DELETE",headers:{Accept:"application/json"}});a.ok||await Br(a)},[e]),o=x.useCallback(async i=>{if(!e)return Promise.reject(new Error(Zn));const a=await fetch(`/files/${i}/download`);a.ok||await Br(a);const c=await a.blob(),l=URL.createObjectURL(c);let f=`file-${i}`;const h=a.headers.get("Content-Disposition");if(h){const g=h.match(/attachment;\s*filename="([^"]+)"/);g&&(f=g[1])}const m=document.createElement("a");m.href=l,m.download=f,document.body.appendChild(m),m.click(),document.body.removeChild(m),URL.revokeObjectURL(l)},[e]),s=x.useCallback(async i=>{if(!e)return Promise.reject(new Error(Zn));const a=await fetch(`/files/${i}/download`);a.ok||await Br(a);const c=await a.blob();return URL.createObjectURL(c)},[e]);return{isEnabled:e,upload:t,updateMetadata:n,remove:r,download:o,getPreviewUrl:s}}const sc="__PAE_EXTENSION_POINT_REACT_CONTENT_EMPTY__",Jp=({module:e,point:t,children:n})=>(la(e,t,n??sc),null),ic=({name:e,children:t,...n})=>{const r=ca(e);if(r===sc)return null;if(!r)return u.jsx(u.Fragment,{children:t??null});if(e1(r)){const o=r;return u.jsx(o,{...n})}else return r},e1=e=>typeof e=="function",t1=(e,t)=>{const n=r=>(t=t||e.displayName||e.name||"?",u.jsx(ic,{name:t,...r,children:u.jsx(e,{...r})}));return n.displayName=`extensionPoint(${t})`,n},ac=({appName:e})=>u.jsx("div",{children:u.jsxs("p",{children:["Loading ",e,"..."]})});ac.displayName="BaseLoading";const cc=({appName:e})=>u.jsxs("div",{children:[u.jsx("p",{children:"Something went wrong..."}),u.jsxs("p",{children:["Failed to load ",e]})]});cc.displayName="BaseError";const n1={display:"flex",flexDirection:"column",flex:1},lc=x.forwardRef((e,t)=>u.jsx("div",{ref:t,style:n1,...e}));lc.displayName="BaseContainer";const r1="pae-app:",uc=x.forwardRef(({appName:e,LoadingComponent:t=ac,ErrorComponent:n=cc,ContainerComponent:r=lc,...o},s)=>{const i=hs(e);return u.jsxs(r,{ref:s,...o,id:`${r1}${e}`,children:[i.isLoading&&u.jsx(t,{appName:e}),i.isBroken&&u.jsx(n,{appName:e})]})});uc.displayName="ModulePlaceHolder";const ps=({operations:e,children:t,forbiddenContent:n})=>{var o;const{hasAccess:r}=Gn();if(!r(...e)){if(!n)return null;if(typeof n=="function")if((o=n==null?void 0:n.prototype)!=null&&o.isReactComponent){const s=n;return u.jsx(s,{operations:e})}else return n({operations:e});return x.isValidElement(n)?n:null}return t};ps.displayName="Authorized";const o1=({eventName:e,listener:t})=>(ua(e,t),null),s1=()=>u.jsx("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:u.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",d:"M8.737 8.737a21.49 21.49 0 0 1 3.308-2.724m0 0c3.063-2.026 5.99-2.641 7.331-1.3 1.827 1.828.026 6.591-4.023 10.64-4.049 4.049-8.812 5.85-10.64 4.023-1.33-1.33-.736-4.218 1.249-7.253m6.083-6.11c-3.063-2.026-5.99-2.641-7.331-1.3-1.827 1.828-.026 6.591 4.023 10.64m3.308-9.34a21.497 21.497 0 0 1 3.308 2.724m2.775 3.386c1.985 3.035 2.579 5.923 1.248 7.253-1.336 1.337-4.245.732-7.295-1.275M14 12a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"})}),dc=({applicationName:e})=>{const t=na(e);if(t)if(typeof t=="function"){const n=t;return u.jsx(n,{})}else return t;return u.jsx(s1,{})};dc.displayName="ApplicationIcon";const fc=()=>u.jsx("svg",{width:"28",height:"28",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M15.9998 29.3337C8.63584 29.3337 2.6665 23.3643 2.6665 16.0003C2.6665 8.63633 8.63584 2.66699 15.9998 2.66699C23.3638 2.66699 29.3332 8.63633 29.3332 16.0003C29.3332 23.3643 23.3638 29.3337 15.9998 29.3337ZM15.9998 26.667C18.8288 26.667 21.5419 25.5432 23.5423 23.5428C25.5427 21.5424 26.6665 18.8293 26.6665 16.0003C26.6665 13.1713 25.5427 10.4582 23.5423 8.45785C21.5419 6.45747 18.8288 5.33366 15.9998 5.33366C13.1709 5.33366 10.4578 6.45747 8.45736 8.45785C6.45698 10.4582 5.33317 13.1713 5.33317 16.0003C5.33317 18.8293 6.45698 21.5424 8.45736 23.5428C10.4578 25.5432 13.1709 26.667 15.9998 26.667ZM9.33317 20.427C12.2066 20.2205 14.9088 18.9833 16.9425 16.943C18.9828 14.9092 20.2201 12.2071 20.4265 9.33366C21.4117 9.99003 22.2389 10.8569 22.8486 11.8716C23.4582 12.8864 23.835 14.0239 23.9519 15.2019C24.0687 16.3799 23.9226 17.5692 23.5242 18.684C23.1257 19.7987 22.4849 20.8112 21.6478 21.6483C20.8107 22.4853 19.7982 23.1262 18.6835 23.5247C17.5687 23.9231 16.3795 24.0692 15.2014 23.9523C14.0234 23.8355 12.8859 23.4587 11.8712 22.8491C10.8564 22.2394 9.98954 21.4122 9.33317 20.427Z",fill:"currentColor"})});fc.displayName="DarkModeIcon";const hc=()=>u.jsx("svg",{width:"28",height:"28",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",transform:"matrix(-1,1.2246467991473532e-16,-1.2246467991473532e-16,-1,0,0)",children:u.jsx("path",{d:"M15.9998 29.3337C8.63584 29.3337 2.6665 23.3643 2.6665 16.0003C2.6665 8.63633 8.63584 2.66699 15.9998 2.66699C23.3638 2.66699 29.3332 8.63633 29.3332 16.0003C29.3332 23.3643 23.3638 29.3337 15.9998 29.3337ZM15.9998 26.667C18.8288 26.667 21.5419 25.5432 23.5423 23.5428C25.5427 21.5424 26.6665 18.8293 26.6665 16.0003C26.6665 13.1713 25.5427 10.4582 23.5423 8.45785C21.5419 6.45747 18.8288 5.33366 15.9998 5.33366C13.1709 5.33366 10.4578 6.45747 8.45736 8.45785C6.45698 10.4582 5.33317 13.1713 5.33317 16.0003C5.33317 18.8293 6.45698 21.5424 8.45736 23.5428C10.4578 25.5432 13.1709 26.667 15.9998 26.667ZM9.33317 20.427C12.2066 20.2205 14.9088 18.9833 16.9425 16.943C18.9828 14.9092 20.2201 12.2071 20.4265 9.33366C21.4117 9.99003 22.2389 10.8569 22.8486 11.8716C23.4582 12.8864 23.835 14.0239 23.9519 15.2019C24.0687 16.3799 23.9226 17.5692 23.5242 18.684C23.1257 19.7987 22.4849 20.8112 21.6478 21.6483C20.8107 22.4853 19.7982 23.1262 18.6835 23.5247C17.5687 23.9231 16.3795 24.0692 15.2014 23.9523C14.0234 23.8355 12.8859 23.4587 11.8712 22.8491C10.8564 22.2394 9.98954 21.4122 9.33317 20.427Z",fill:"currentColor"})});hc.displayName="LightModeIcon";const ms={container:"container__zBqbk",expanded:"expanded__EbsIr",label:"label__cdMnm"};function pc(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=pc(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function L(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=pc(e))&&(r&&(r+=" "),r+=t);return r}const i1=e=>e.toLowerCase().trim().split(" ").join("-"),a1=e=>`${i1(e)}-theme`,mc=()=>{const{platformName:e="Platform"}=Qi(),t=a1(e),[n,r]=x.useState(()=>{const s=localStorage.getItem(t);return s==="light"||s==="dark"?s:"light"}),o=s=>{localStorage.setItem(t,s),r(s)};return x.useEffect(()=>{document.documentElement.setAttribute("data-theme",n)},[n]),{theme:n,setTheme:o}},Ur={spinner:"spinner__fakUN","spinner-rotation":"spinner-rotation__wUmPV",spinnerRotation:"spinner-rotation__wUmPV",button:"button__8FA9H","button--contained-primary":"button--contained-primary__stkTx",buttonContainedPrimary:"button--contained-primary__stkTx","button--outlined-primary":"button--outlined-primary__KZ1ww",buttonOutlinedPrimary:"button--outlined-primary__KZ1ww","button--text-primary":"button--text-primary__GLTfm",buttonTextPrimary:"button--text-primary__GLTfm","button--contained-danger":"button--contained-danger__L9ehT",buttonContainedDanger:"button--contained-danger__L9ehT","button--outlined-danger":"button--outlined-danger__eoYLd",buttonOutlinedDanger:"button--outlined-danger__eoYLd","button--text-danger":"button--text-danger__Sw-ha",buttonTextDanger:"button--text-danger__Sw-ha",icon:"icon__--umH"},Wr=x.forwardRef(({variant:e="contained",colorScheme:t="primary",loading:n=!1,IconComponent:r,className:o,children:s,...i},a)=>{const c=L(Ur.button,Ur[`button--${e}-${t}`],o);return u.jsxs("button",{ref:a,className:c,...i,children:[n?u.jsx("div",{className:Ur.spinner}):r&&u.jsx(r,{className:Ur.icon}),s]})});Wr.displayName="Button";const Hr={Badges:"Badges__5jpum",badges:"Badges__5jpum",Badge:"Badge__95MWM",badge:"Badge__95MWM","Badge--primary":"Badge--primary__Rx-bS",badgePrimary:"Badge--primary__Rx-bS","Badge--secondary":"Badge--secondary__d92bT",badgeSecondary:"Badge--secondary__d92bT","Badge--success":"Badge--success__Kdo98",badgeSuccess:"Badge--success__Kdo98","Badge--warning":"Badge--warning__bf-Nn",badgeWarning:"Badge--warning__bf-Nn","Badge--danger":"Badge--danger__HTj39",badgeDanger:"Badge--danger__HTj39","Badge--small":"Badge--small__y93Pj",badgeSmall:"Badge--small__y93Pj","Badge--regular":"Badge--regular__aT5AL",badgeRegular:"Badge--regular__aT5AL","Badge--large":"Badge--large__wORCH",badgeLarge:"Badge--large__wORCH"},gs={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};for(const e in gs)Object.freeze(gs[e]);const gc=Object.freeze(gs);var yc={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function c1(e){var f,h;var t,n=[],r=1,o;if(typeof e=="number")return{space:"rgb",values:[e>>>16,(e&65280)>>>8,e&255],alpha:1};if(typeof e=="number")return{space:"rgb",values:[e>>>16,(e&65280)>>>8,e&255],alpha:1};if(e=String(e).toLowerCase(),gc[e])n=gc[e].slice(),o="rgb";else if(e==="transparent")r=0,o="rgb",n=[0,0,0];else if(e[0]==="#"){var s=e.slice(1),i=s.length,a=i<=4;r=1,a?(n=[parseInt(s[0]+s[0],16),parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16)],i===4&&(r=parseInt(s[3]+s[3],16)/255)):(n=[parseInt(s[0]+s[1],16),parseInt(s[2]+s[3],16),parseInt(s[4]+s[5],16)],i===8&&(r=parseInt(s[6]+s[7],16)/255)),n[0]||(n[0]=0),n[1]||(n[1]=0),n[2]||(n[2]=0),o="rgb"}else if(t=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(e)){var c=t[1];o=c.replace(/a$/,"");var l=o==="cmyk"?4:o==="gray"?1:3;n=t[2].trim().split(/\s*[,\/]\s*|\s+/),o==="color"&&(o=n.shift()),n=n.map(function(m,g){if(m[m.length-1]==="%")return m=parseFloat(m)/100,g===3?m:o==="rgb"?m*255:o[0]==="h"||o[0]==="l"&&!g?m*100:o==="lab"?m*125:o==="lch"?g<2?m*150:m*360:o[0]==="o"&&!g?m:o==="oklab"?m*.4:o==="oklch"?g<2?m*.4:m*360:m;if(o[g]==="h"||g===2&&o[o.length-1]==="h"){if(yc[m]!==void 0)return yc[m];if(m.endsWith("deg"))return parseFloat(m);if(m.endsWith("turn"))return parseFloat(m)*360;if(m.endsWith("grad"))return parseFloat(m)*360/400;if(m.endsWith("rad"))return parseFloat(m)*180/Math.PI}return m==="none"?0:parseFloat(m)}),r=n.length>l?n.pop():1}else/[0-9](?:\s|\/|,)/.test(e)&&(n=e.match(/([0-9]+)/g).map(function(m){return parseFloat(m)}),o=((h=(f=e.match(/([a-z])/ig))==null?void 0:f.join(""))==null?void 0:h.toLowerCase())||"rgb");return{space:o,values:n,alpha:r}}const l1=(e,t)=>{const{space:n,values:r}=c1(e);return n[0]==="h"?`${n}a(${r[0]}, ${r[1]}%, ${r[2]}%, ${t})`:`${n}a(${r}, ${t})`},ys=x.forwardRef(({children:e,color:t,className:n,customColor:r,size:o="small",style:s,...i},a)=>{const c=r?{color:r,background:l1(r,.1)}:{},l=L(Hr.Badge,Hr[`Badge--${o}`],{[Hr[`Badge--${t}`]]:!!t},n);return u.jsx("span",{ref:a,className:l,style:{...s,...c},...i,children:e})});ys.displayName="Badge";const vs=x.forwardRef(({children:e,className:t,...n},r)=>{const o=L(Hr.Badges,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});vs.displayName="Badges";const vc=({size:e=24,color:t="currentColor",strokeWidth:n=2,className:r,style:o,...s})=>u.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:o,...s,children:[u.jsx("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"}),u.jsx("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"})]}),bc=({size:e=24,color:t="currentColor",strokeWidth:n=2,className:r,style:o,...s})=>u.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:o,...s,children:[u.jsx("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"}),u.jsx("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"}),u.jsx("path",{d:"m9 12 2 2 4-4"})]}),u1={CopyToClipboardButton:"CopyToClipboardButton__2Nd2m"},d1=({content:e})=>{const[t,n]=f1(),{notify:r}=Xo(),o=t?bc:vc,s=x.useCallback(async()=>{await n(e)&&r("Copied to the Clipboard !","success")},[e,r]);return u.jsx(o,{className:u1.CopyToClipboardButton,size:18,onClick:s})},f1=()=>{const[e,t]=x.useState(!1);return[e,async r=>{var o;try{return await((o=navigator==null?void 0:navigator.clipboard)==null?void 0:o.writeText(r)),t(!0),setTimeout(()=>t(!1),2e3),!0}catch(s){return console.error("Failed to copy text: ",s),!1}}]},wc={FieldGroup:"FieldGroup__Q2JCV",fieldGroup:"FieldGroup__Q2JCV","FieldGroup--horizontal":"FieldGroup--horizontal__kpfL1",fieldGroupHorizontal:"FieldGroup--horizontal__kpfL1","FieldGroup--vertical":"FieldGroup--vertical__FLo-Q",fieldGroupVertical:"FieldGroup--vertical__FLo-Q"},Cc=x.forwardRef(({children:e,className:t,orientation:n="vertical",...r},o)=>{const s=L(wc.FieldGroup,wc[`FieldGroup--${n}`],t);return u.jsx("div",{ref:o,className:s,...r,children:e})});Cc.displayName="FieldGroup";const Sc={Input:"Input__uS0sb",Error:"Error__-DQpw"},Vr=x.forwardRef(({className:e,error:t,...n},r)=>{const o=L(Sc.Input,t&&Sc.Error,e);return u.jsx("input",{ref:r,className:o,...n})});Vr.displayName="Input";const h1={Error:"Error__N4OP5"},Ec=x.forwardRef(({children:e,className:t,...n},r)=>{const o=L(h1.Error,t);return u.jsx("span",{ref:r,className:o,...n,children:e})});Ec.displayName="InputError";const xc={Label:"Label__VYUvW",Error:"Error__Eu6DI"},_c=x.forwardRef(({children:e,className:t,error:n,...r},o)=>{const s=L(xc.Label,n&&xc.Error,t);return u.jsx("label",{ref:o,className:s,...r,children:e})});_c.displayName="Label";const bs={Select:"Select__giqpe",Chevron:"Chevron__YvhBd"},Tc=x.forwardRef(({children:e,className:t,...n},r)=>{const o=L(bs.Option,t);return u.jsx("option",{ref:r,className:o,...n,children:e})});Tc.displayName="Option";const ws=x.forwardRef(({children:e,className:t,...n},r)=>{const o=L(bs.Select,t);return u.jsxs("div",{className:o,children:[u.jsx("select",{ref:r,...n,children:e}),u.jsx("div",{className:bs.Chevron,children:u.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M4 6L8 10L12 6",stroke:"#818181",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})})]})});ws.displayName="Select",ws.Option=Tc;function Pc(e,[t,n]){return Math.min(n,Math.max(t,e))}function Z(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function p1(e,t){const n=d.createContext(t),r=s=>{const{children:i,...a}=s,c=d.useMemo(()=>a,Object.values(a));return u.jsx(n.Provider,{value:c,children:i})};r.displayName=e+"Provider";function o(s){const i=d.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function Xn(e,t=[]){let n=[];function r(s,i){const a=d.createContext(i),c=n.length;n=[...n,i];const l=h=>{var v;const{scope:m,children:g,...S}=h,p=((v=m==null?void 0:m[e])==null?void 0:v[c])||a,y=d.useMemo(()=>S,Object.values(S));return u.jsx(p.Provider,{value:y,children:g})};l.displayName=s+"Provider";function f(h,m){var p;const g=((p=m==null?void 0:m[e])==null?void 0:p[c])||a,S=d.useContext(g);if(S)return S;if(i!==void 0)return i;throw new Error(`\`${h}\` must be used within \`${s}\``)}return[l,f]}const o=()=>{const s=n.map(i=>d.createContext(i));return function(a){const c=(a==null?void 0:a[e])||s;return d.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return o.scopeName=e,[r,m1(o,...t)]}function m1(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:c,scopeName:l})=>{const h=c(s)[`__scope${l}`];return{...a,...h}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Ac(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function mn(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Ac(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():Ac(e[o],null)}}}}function le(...e){return d.useCallback(mn(...e),e)}function Rc(e){const t=g1(e),n=d.forwardRef((r,o)=>{const{children:s,...i}=r,a=d.Children.toArray(s),c=a.find(v1);if(c){const l=c.props.children,f=a.map(h=>h===c?d.Children.count(l)>1?d.Children.only(null):d.isValidElement(l)?l.props.children:null:h);return u.jsx(t,{...i,ref:o,children:d.isValidElement(l)?d.cloneElement(l,void 0,f):null})}return u.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function g1(e){const t=d.forwardRef((n,r)=>{const{children:o,...s}=n;if(d.isValidElement(o)){const i=w1(o),a=b1(s,o.props);return o.type!==d.Fragment&&(a.ref=r?mn(r,i):i),d.cloneElement(o,a)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var y1=Symbol("radix.slottable");function v1(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===y1}function b1(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const c=s(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function w1(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function C1(e){const t=e+"CollectionProvider",[n,r]=Xn(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=p=>{const{scope:y,children:v}=p,w=x.useRef(null),E=x.useRef(new Map).current;return u.jsx(o,{scope:y,itemMap:E,collectionRef:w,children:v})};i.displayName=t;const a=e+"CollectionSlot",c=Rc(a),l=x.forwardRef((p,y)=>{const{scope:v,children:w}=p,E=s(a,v),T=le(y,E.collectionRef);return u.jsx(c,{ref:T,children:w})});l.displayName=a;const f=e+"CollectionItemSlot",h="data-radix-collection-item",m=Rc(f),g=x.forwardRef((p,y)=>{const{scope:v,children:w,...E}=p,T=x.useRef(null),P=le(y,T),A=s(f,v);return x.useEffect(()=>(A.itemMap.set(T,{ref:T,...E}),()=>void A.itemMap.delete(T))),u.jsx(m,{[h]:"",ref:P,children:w})});g.displayName=f;function S(p){const y=s(e+"CollectionConsumer",p);return x.useCallback(()=>{const w=y.collectionRef.current;if(!w)return[];const E=Array.from(w.querySelectorAll(`[${h}]`));return Array.from(y.itemMap.values()).sort((A,R)=>E.indexOf(A.ref.current)-E.indexOf(R.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:i,Slot:l,ItemSlot:g},S,r]}var S1=d.createContext(void 0);function E1(e){const t=d.useContext(S1);return e||t||"ltr"}function x1(e){const t=_1(e),n=d.forwardRef((r,o)=>{const{children:s,...i}=r,a=d.Children.toArray(s),c=a.find(P1);if(c){const l=c.props.children,f=a.map(h=>h===c?d.Children.count(l)>1?d.Children.only(null):d.isValidElement(l)?l.props.children:null:h);return u.jsx(t,{...i,ref:o,children:d.isValidElement(l)?d.cloneElement(l,void 0,f):null})}return u.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function _1(e){const t=d.forwardRef((n,r)=>{const{children:o,...s}=n;if(d.isValidElement(o)){const i=R1(o),a=A1(s,o.props);return o.type!==d.Fragment&&(a.ref=r?mn(r,i):i),d.cloneElement(o,a)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var T1=Symbol("radix.slottable");function P1(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===T1}function A1(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const c=s(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function R1(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var O1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ie=O1.reduce((e,t)=>{const n=x1(`Primitive.${t}`),r=d.forwardRef((o,s)=>{const{asChild:i,...a}=o,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(c,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function j1(e,t){e&&gr.flushSync(()=>e.dispatchEvent(t))}function Gt(e){const t=d.useRef(e);return d.useEffect(()=>{t.current=e}),d.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function I1(e,t=globalThis==null?void 0:globalThis.document){const n=Gt(e);d.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var D1="DismissableLayer",Cs="dismissableLayer.update",L1="dismissableLayer.pointerDownOutside",N1="dismissableLayer.focusOutside",Oc,jc=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),zr=d.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...c}=e,l=d.useContext(jc),[f,h]=d.useState(null),m=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=d.useState({}),S=le(t,R=>h(R)),p=Array.from(l.layers),[y]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=p.indexOf(y),w=f?p.indexOf(f):-1,E=l.layersWithOutsidePointerEventsDisabled.size>0,T=w>=v,P=$1(R=>{const N=R.target,D=[...l.branches].some(M=>M.contains(N));!T||D||(o==null||o(R),i==null||i(R),R.defaultPrevented||a==null||a())},m),A=F1(R=>{const N=R.target;[...l.branches].some(M=>M.contains(N))||(s==null||s(R),i==null||i(R),R.defaultPrevented||a==null||a())},m);return I1(R=>{w===l.layers.size-1&&(r==null||r(R),!R.defaultPrevented&&a&&(R.preventDefault(),a()))},m),d.useEffect(()=>{if(f)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Oc=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(f)),l.layers.add(f),Ic(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Oc)}},[f,m,n,l]),d.useEffect(()=>()=>{f&&(l.layers.delete(f),l.layersWithOutsidePointerEventsDisabled.delete(f),Ic())},[f,l]),d.useEffect(()=>{const R=()=>g({});return document.addEventListener(Cs,R),()=>document.removeEventListener(Cs,R)},[]),u.jsx(ie.div,{...c,ref:S,style:{pointerEvents:E?T?"auto":"none":void 0,...e.style},onFocusCapture:Z(e.onFocusCapture,A.onFocusCapture),onBlurCapture:Z(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:Z(e.onPointerDownCapture,P.onPointerDownCapture)})});zr.displayName=D1;var M1="DismissableLayerBranch",k1=d.forwardRef((e,t)=>{const n=d.useContext(jc),r=d.useRef(null),o=le(t,r);return d.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),u.jsx(ie.div,{...e,ref:o})});k1.displayName=M1;function $1(e,t=globalThis==null?void 0:globalThis.document){const n=Gt(e),r=d.useRef(!1),o=d.useRef(()=>{});return d.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let c=function(){Dc(L1,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function F1(e,t=globalThis==null?void 0:globalThis.document){const n=Gt(e),r=d.useRef(!1);return d.useEffect(()=>{const o=s=>{s.target&&!r.current&&Dc(N1,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ic(){const e=new CustomEvent(Cs);document.dispatchEvent(e)}function Dc(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?j1(o,s):o.dispatchEvent(s)}var Ss=0;function Lc(){d.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Nc()),document.body.insertAdjacentElement("beforeend",e[1]??Nc()),Ss++,()=>{Ss===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ss--}},[])}function Nc(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Es="focusScope.autoFocusOnMount",xs="focusScope.autoFocusOnUnmount",Mc={bubbles:!1,cancelable:!0},B1="FocusScope",_s=d.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,c]=d.useState(null),l=Gt(o),f=Gt(s),h=d.useRef(null),m=le(t,p=>c(p)),g=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(r){let p=function(E){if(g.paused||!a)return;const T=E.target;a.contains(T)?h.current=T:Ct(h.current,{select:!0})},y=function(E){if(g.paused||!a)return;const T=E.relatedTarget;T!==null&&(a.contains(T)||Ct(h.current,{select:!0}))},v=function(E){if(document.activeElement===document.body)for(const P of E)P.removedNodes.length>0&&Ct(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",y);const w=new MutationObserver(v);return a&&w.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",y),w.disconnect()}}},[r,a,g.paused]),d.useEffect(()=>{if(a){Fc.add(g);const p=document.activeElement;if(!a.contains(p)){const v=new CustomEvent(Es,Mc);a.addEventListener(Es,l),a.dispatchEvent(v),v.defaultPrevented||(U1(q1(kc(a)),{select:!0}),document.activeElement===p&&Ct(a))}return()=>{a.removeEventListener(Es,l),setTimeout(()=>{const v=new CustomEvent(xs,Mc);a.addEventListener(xs,f),a.dispatchEvent(v),v.defaultPrevented||Ct(p??document.body,{select:!0}),a.removeEventListener(xs,f),Fc.remove(g)},0)}}},[a,l,f,g]);const S=d.useCallback(p=>{if(!n&&!r||g.paused)return;const y=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,v=document.activeElement;if(y&&v){const w=p.currentTarget,[E,T]=W1(w);E&&T?!p.shiftKey&&v===T?(p.preventDefault(),n&&Ct(E,{select:!0})):p.shiftKey&&v===E&&(p.preventDefault(),n&&Ct(T,{select:!0})):v===w&&p.preventDefault()}},[n,r,g.paused]);return u.jsx(ie.div,{tabIndex:-1,...i,ref:m,onKeyDown:S})});_s.displayName=B1;function U1(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ct(r,{select:t}),document.activeElement!==n)return}function W1(e){const t=kc(e),n=$c(t,e),r=$c(t.reverse(),e);return[n,r]}function kc(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function $c(e,t){for(const n of e)if(!H1(n,{upTo:t}))return n}function H1(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function V1(e){return e instanceof HTMLInputElement&&"select"in e}function Ct(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&V1(e)&&t&&e.select()}}var Fc=z1();function z1(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Bc(e,t),e.unshift(t)},remove(t){var n;e=Bc(e,t),(n=e[0])==null||n.resume()}}}function Bc(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function q1(e){return e.filter(t=>t.tagName!=="A")}var ye=globalThis!=null&&globalThis.document?d.useLayoutEffect:()=>{},G1=d[" useId ".trim().toString()]||(()=>{}),K1=0;function Kt(e){const[t,n]=d.useState(G1());return ye(()=>{n(r=>r??String(K1++))},[e]),e||(t?`radix-${t}`:"")}const Q1=["top","right","bottom","left"],St=Math.min,Oe=Math.max,qr=Math.round,Gr=Math.floor,Ge=e=>({x:e,y:e}),Y1={left:"right",right:"left",bottom:"top",top:"bottom"},Z1={start:"end",end:"start"};function Ts(e,t,n){return Oe(e,St(t,n))}function ct(e,t){return typeof e=="function"?e(t):e}function lt(e){return e.split("-")[0]}function gn(e){return e.split("-")[1]}function Ps(e){return e==="x"?"y":"x"}function As(e){return e==="y"?"height":"width"}const X1=new Set(["top","bottom"]);function Ke(e){return X1.has(lt(e))?"y":"x"}function Rs(e){return Ps(Ke(e))}function J1(e,t,n){n===void 0&&(n=!1);const r=gn(e),o=Rs(e),s=As(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Kr(i)),[i,Kr(i)]}function em(e){const t=Kr(e);return[Os(e),t,Os(t)]}function Os(e){return e.replace(/start|end/g,t=>Z1[t])}const Uc=["left","right"],Wc=["right","left"],tm=["top","bottom"],nm=["bottom","top"];function rm(e,t,n){switch(e){case"top":case"bottom":return n?t?Wc:Uc:t?Uc:Wc;case"left":case"right":return t?tm:nm;default:return[]}}function om(e,t,n,r){const o=gn(e);let s=rm(lt(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Os)))),s}function Kr(e){return e.replace(/left|right|bottom|top/g,t=>Y1[t])}function sm(e){return{top:0,right:0,bottom:0,left:0,...e}}function Hc(e){return typeof e!="number"?sm(e):{top:e,right:e,bottom:e,left:e}}function Qr(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Vc(e,t,n){let{reference:r,floating:o}=e;const s=Ke(t),i=Rs(t),a=As(i),c=lt(t),l=s==="y",f=r.x+r.width/2-o.width/2,h=r.y+r.height/2-o.height/2,m=r[a]/2-o[a]/2;let g;switch(c){case"top":g={x:f,y:r.y-o.height};break;case"bottom":g={x:f,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:h};break;case"left":g={x:r.x-o.width,y:h};break;default:g={x:r.x,y:r.y}}switch(gn(t)){case"start":g[i]-=m*(n&&l?-1:1);break;case"end":g[i]+=m*(n&&l?-1:1);break}return g}async function im(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:m=!1,padding:g=0}=ct(t,e),S=Hc(g),y=a[m?h==="floating"?"reference":"floating":h],v=Qr(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(y)))==null||n?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:l,rootBoundary:f,strategy:c})),w=h==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),T=await(s.isElement==null?void 0:s.isElement(E))?await(s.getScale==null?void 0:s.getScale(E))||{x:1,y:1}:{x:1,y:1},P=Qr(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:E,strategy:c}):w);return{top:(v.top-P.top+S.top)/T.y,bottom:(P.bottom-v.bottom+S.bottom)/T.y,left:(v.left-P.left+S.left)/T.x,right:(P.right-v.right+S.right)/T.x}}const am=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:h}=Vc(l,r,c),m=r,g={},S=0;for(let y=0;y<a.length;y++){var p;const{name:v,fn:w}=a[y],{x:E,y:T,data:P,reset:A}=await w({x:f,y:h,initialPlacement:r,placement:m,strategy:o,middlewareData:g,rects:l,platform:{...i,detectOverflow:(p=i.detectOverflow)!=null?p:im},elements:{reference:e,floating:t}});f=E??f,h=T??h,g={...g,[v]:{...g[v],...P}},A&&S<=50&&(S++,typeof A=="object"&&(A.placement&&(m=A.placement),A.rects&&(l=A.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):A.rects),{x:f,y:h}=Vc(l,m,c)),y=-1)}return{x:f,y:h,placement:m,strategy:o,middlewareData:g}},cm=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:c}=t,{element:l,padding:f=0}=ct(e,t)||{};if(l==null)return{};const h=Hc(f),m={x:n,y:r},g=Rs(o),S=As(g),p=await i.getDimensions(l),y=g==="y",v=y?"top":"left",w=y?"bottom":"right",E=y?"clientHeight":"clientWidth",T=s.reference[S]+s.reference[g]-m[g]-s.floating[S],P=m[g]-s.reference[g],A=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let R=A?A[E]:0;(!R||!await(i.isElement==null?void 0:i.isElement(A)))&&(R=a.floating[E]||s.floating[S]);const N=T/2-P/2,D=R/2-p[S]/2-1,M=St(h[v],D),U=St(h[w],D),W=M,H=R-p[S]-U,z=R/2-p[S]/2+N,oe=Ts(W,z,H),q=!c.arrow&&gn(o)!=null&&z!==oe&&s.reference[S]/2-(z<W?M:U)-p[S]/2<0,Y=q?z<W?z-W:z-H:0;return{[g]:m[g]+Y,data:{[g]:oe,centerOffset:z-oe-Y,...q&&{alignmentOffset:Y}},reset:q}}}),lm=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:p=!0,...y}=ct(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const v=lt(o),w=Ke(a),E=lt(a)===a,T=await(c.isRTL==null?void 0:c.isRTL(l.floating)),P=m||(E||!p?[Kr(a)]:em(a)),A=S!=="none";!m&&A&&P.push(...om(a,p,S,T));const R=[a,...P],N=await c.detectOverflow(t,y),D=[];let M=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&D.push(N[v]),h){const z=J1(o,i,T);D.push(N[z[0]],N[z[1]])}if(M=[...M,{placement:o,overflows:D}],!D.every(z=>z<=0)){var U,W;const z=(((U=s.flip)==null?void 0:U.index)||0)+1,oe=R[z];if(oe&&(!(h==="alignment"?w!==Ke(oe):!1)||M.every(F=>Ke(F.placement)===w?F.overflows[0]>0:!0)))return{data:{index:z,overflows:M},reset:{placement:oe}};let q=(W=M.filter(Y=>Y.overflows[0]<=0).sort((Y,F)=>Y.overflows[1]-F.overflows[1])[0])==null?void 0:W.placement;if(!q)switch(g){case"bestFit":{var H;const Y=(H=M.filter(F=>{if(A){const se=Ke(F.placement);return se===w||se==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(se=>se>0).reduce((se,ge)=>se+ge,0)]).sort((F,se)=>F[1]-se[1])[0])==null?void 0:H[0];Y&&(q=Y);break}case"initialPlacement":q=a;break}if(o!==q)return{reset:{placement:q}}}return{}}}};function zc(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function qc(e){return Q1.some(t=>e[t]>=0)}const um=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...s}=ct(e,t);switch(o){case"referenceHidden":{const i=await r.detectOverflow(t,{...s,elementContext:"reference"}),a=zc(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:qc(a)}}}case"escaped":{const i=await r.detectOverflow(t,{...s,altBoundary:!0}),a=zc(i,n.floating);return{data:{escapedOffsets:a,escaped:qc(a)}}}default:return{}}}}},Gc=new Set(["left","top"]);async function dm(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=lt(n),a=gn(n),c=Ke(n)==="y",l=Gc.has(i)?-1:1,f=s&&c?-1:1,h=ct(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:S}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof S=="number"&&(g=a==="end"?S*-1:S),c?{x:g*f,y:m*l}:{x:m*l,y:g*f}}const fm=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,c=await dm(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:i}}}}},hm=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:s}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:c={fn:v=>{let{x:w,y:E}=v;return{x:w,y:E}}},...l}=ct(e,t),f={x:n,y:r},h=await s.detectOverflow(t,l),m=Ke(lt(o)),g=Ps(m);let S=f[g],p=f[m];if(i){const v=g==="y"?"top":"left",w=g==="y"?"bottom":"right",E=S+h[v],T=S-h[w];S=Ts(E,S,T)}if(a){const v=m==="y"?"top":"left",w=m==="y"?"bottom":"right",E=p+h[v],T=p-h[w];p=Ts(E,p,T)}const y=c.fn({...t,[g]:S,[m]:p});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[g]:i,[m]:a}}}}}},pm=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=ct(e,t),f={x:n,y:r},h=Ke(o),m=Ps(h);let g=f[m],S=f[h];const p=ct(a,t),y=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const E=m==="y"?"height":"width",T=s.reference[m]-s.floating[E]+y.mainAxis,P=s.reference[m]+s.reference[E]-y.mainAxis;g<T?g=T:g>P&&(g=P)}if(l){var v,w;const E=m==="y"?"width":"height",T=Gc.has(lt(o)),P=s.reference[h]-s.floating[E]+(T&&((v=i.offset)==null?void 0:v[h])||0)+(T?0:y.crossAxis),A=s.reference[h]+s.reference[E]+(T?0:((w=i.offset)==null?void 0:w[h])||0)-(T?y.crossAxis:0);S<P?S=P:S>A&&(S=A)}return{[m]:g,[h]:S}}}},mm=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:c=()=>{},...l}=ct(e,t),f=await i.detectOverflow(t,l),h=lt(o),m=gn(o),g=Ke(o)==="y",{width:S,height:p}=s.floating;let y,v;h==="top"||h==="bottom"?(y=h,v=m===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(v=h,y=m==="end"?"top":"bottom");const w=p-f.top-f.bottom,E=S-f.left-f.right,T=St(p-f[y],w),P=St(S-f[v],E),A=!t.middlewareData.shift;let R=T,N=P;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(N=E),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(R=w),A&&!m){const M=Oe(f.left,0),U=Oe(f.right,0),W=Oe(f.top,0),H=Oe(f.bottom,0);g?N=S-2*(M!==0||U!==0?M+U:Oe(f.left,f.right)):R=p-2*(W!==0||H!==0?W+H:Oe(f.top,f.bottom))}await c({...t,availableWidth:N,availableHeight:R});const D=await i.getDimensions(a.floating);return S!==D.width||p!==D.height?{reset:{rects:!0}}:{}}}};function Yr(){return typeof window<"u"}function yn(e){return Kc(e)?(e.nodeName||"").toLowerCase():"#document"}function je(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Qe(e){var t;return(t=(Kc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Kc(e){return Yr()?e instanceof Node||e instanceof je(e).Node:!1}function ke(e){return Yr()?e instanceof Element||e instanceof je(e).Element:!1}function Ye(e){return Yr()?e instanceof HTMLElement||e instanceof je(e).HTMLElement:!1}function Qc(e){return!Yr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof je(e).ShadowRoot}const gm=new Set(["inline","contents"]);function Jn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=$e(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!gm.has(o)}const ym=new Set(["table","td","th"]);function vm(e){return ym.has(yn(e))}const bm=[":popover-open",":modal"];function Zr(e){return bm.some(t=>{try{return e.matches(t)}catch{return!1}})}const wm=["transform","translate","scale","rotate","perspective"],Cm=["transform","translate","scale","rotate","perspective","filter"],Sm=["paint","layout","strict","content"];function js(e){const t=Is(),n=ke(e)?$e(e):e;return wm.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Cm.some(r=>(n.willChange||"").includes(r))||Sm.some(r=>(n.contain||"").includes(r))}function Em(e){let t=Et(e);for(;Ye(t)&&!vn(t);){if(js(t))return t;if(Zr(t))return null;t=Et(t)}return null}function Is(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const xm=new Set(["html","body","#document"]);function vn(e){return xm.has(yn(e))}function $e(e){return je(e).getComputedStyle(e)}function Xr(e){return ke(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Et(e){if(yn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Qc(e)&&e.host||Qe(e);return Qc(t)?t.host:t}function Yc(e){const t=Et(e);return vn(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ye(t)&&Jn(t)?t:Yc(t)}function er(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Yc(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=je(o);if(s){const a=Ds(i);return t.concat(i,i.visualViewport||[],Jn(o)?o:[],a&&n?er(a):[])}return t.concat(o,er(o,[],n))}function Ds(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Zc(e){const t=$e(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ye(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=qr(n)!==s||qr(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function Ls(e){return ke(e)?e:e.contextElement}function bn(e){const t=Ls(e);if(!Ye(t))return Ge(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Zc(t);let i=(s?qr(n.width):n.width)/r,a=(s?qr(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const _m=Ge(0);function Xc(e){const t=je(e);return!Is()||!t.visualViewport?_m:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Tm(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==je(e)?!1:t}function Qt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Ls(e);let i=Ge(1);t&&(r?ke(r)&&(i=bn(r)):i=bn(e));const a=Tm(s,n,r)?Xc(s):Ge(0);let c=(o.left+a.x)/i.x,l=(o.top+a.y)/i.y,f=o.width/i.x,h=o.height/i.y;if(s){const m=je(s),g=r&&ke(r)?je(r):r;let S=m,p=Ds(S);for(;p&&r&&g!==S;){const y=bn(p),v=p.getBoundingClientRect(),w=$e(p),E=v.left+(p.clientLeft+parseFloat(w.paddingLeft))*y.x,T=v.top+(p.clientTop+parseFloat(w.paddingTop))*y.y;c*=y.x,l*=y.y,f*=y.x,h*=y.y,c+=E,l+=T,S=je(p),p=Ds(S)}}return Qr({width:f,height:h,x:c,y:l})}function Jr(e,t){const n=Xr(e).scrollLeft;return t?t.left+n:Qt(Qe(e)).left+n}function Jc(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Jr(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Pm(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=Qe(r),a=t?Zr(t.floating):!1;if(r===i||a&&s)return n;let c={scrollLeft:0,scrollTop:0},l=Ge(1);const f=Ge(0),h=Ye(r);if((h||!h&&!s)&&((yn(r)!=="body"||Jn(i))&&(c=Xr(r)),Ye(r))){const g=Qt(r);l=bn(r),f.x=g.x+r.clientLeft,f.y=g.y+r.clientTop}const m=i&&!h&&!s?Jc(i,c):Ge(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+f.x+m.x,y:n.y*l.y-c.scrollTop*l.y+f.y+m.y}}function Am(e){return Array.from(e.getClientRects())}function Rm(e){const t=Qe(e),n=Xr(e),r=e.ownerDocument.body,o=Oe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Oe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Jr(e);const a=-n.scrollTop;return $e(r).direction==="rtl"&&(i+=Oe(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}const el=25;function Om(e,t){const n=je(e),r=Qe(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,c=0;if(o){s=o.width,i=o.height;const f=Is();(!f||f&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}const l=Jr(r);if(l<=0){const f=r.ownerDocument,h=f.body,m=getComputedStyle(h),g=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,S=Math.abs(r.clientWidth-h.clientWidth-g);S<=el&&(s-=S)}else l<=el&&(s+=l);return{width:s,height:i,x:a,y:c}}const jm=new Set(["absolute","fixed"]);function Im(e,t){const n=Qt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Ye(e)?bn(e):Ge(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,c=o*s.x,l=r*s.y;return{width:i,height:a,x:c,y:l}}function tl(e,t,n){let r;if(t==="viewport")r=Om(e,n);else if(t==="document")r=Rm(Qe(e));else if(ke(t))r=Im(t,n);else{const o=Xc(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Qr(r)}function nl(e,t){const n=Et(e);return n===t||!ke(n)||vn(n)?!1:$e(n).position==="fixed"||nl(n,t)}function Dm(e,t){const n=t.get(e);if(n)return n;let r=er(e,[],!1).filter(a=>ke(a)&&yn(a)!=="body"),o=null;const s=$e(e).position==="fixed";let i=s?Et(e):e;for(;ke(i)&&!vn(i);){const a=$e(i),c=js(i);!c&&a.position==="fixed"&&(o=null),(s?!c&&!o:!c&&a.position==="static"&&!!o&&jm.has(o.position)||Jn(i)&&!c&&nl(e,i))?r=r.filter(f=>f!==i):o=a,i=Et(i)}return t.set(e,r),r}function Lm(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Zr(t)?[]:Dm(t,this._c):[].concat(n),r],a=i[0],c=i.reduce((l,f)=>{const h=tl(t,f,o);return l.top=Oe(h.top,l.top),l.right=St(h.right,l.right),l.bottom=St(h.bottom,l.bottom),l.left=Oe(h.left,l.left),l},tl(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Nm(e){const{width:t,height:n}=Zc(e);return{width:t,height:n}}function Mm(e,t,n){const r=Ye(t),o=Qe(t),s=n==="fixed",i=Qt(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const c=Ge(0);function l(){c.x=Jr(o)}if(r||!r&&!s)if((yn(t)!=="body"||Jn(o))&&(a=Xr(t)),r){const g=Qt(t,!0,s,t);c.x=g.x+t.clientLeft,c.y=g.y+t.clientTop}else o&&l();s&&!r&&o&&l();const f=o&&!r&&!s?Jc(o,a):Ge(0),h=i.left+a.scrollLeft-c.x-f.x,m=i.top+a.scrollTop-c.y-f.y;return{x:h,y:m,width:i.width,height:i.height}}function Ns(e){return $e(e).position==="static"}function rl(e,t){if(!Ye(e)||$e(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Qe(e)===n&&(n=n.ownerDocument.body),n}function ol(e,t){const n=je(e);if(Zr(e))return n;if(!Ye(e)){let o=Et(e);for(;o&&!vn(o);){if(ke(o)&&!Ns(o))return o;o=Et(o)}return n}let r=rl(e,t);for(;r&&vm(r)&&Ns(r);)r=rl(r,t);return r&&vn(r)&&Ns(r)&&!js(r)?n:r||Em(e)||n}const km=async function(e){const t=this.getOffsetParent||ol,n=this.getDimensions,r=await n(e.floating);return{reference:Mm(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function $m(e){return $e(e).direction==="rtl"}const Fm={convertOffsetParentRelativeRectToViewportRelativeRect:Pm,getDocumentElement:Qe,getClippingRect:Lm,getOffsetParent:ol,getElementRects:km,getClientRects:Am,getDimensions:Nm,getScale:bn,isElement:ke,isRTL:$m};function sl(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Bm(e,t){let n=null,r;const o=Qe(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),s();const l=e.getBoundingClientRect(),{left:f,top:h,width:m,height:g}=l;if(a||t(),!m||!g)return;const S=Gr(h),p=Gr(o.clientWidth-(f+m)),y=Gr(o.clientHeight-(h+g)),v=Gr(f),E={rootMargin:-S+"px "+-p+"px "+-y+"px "+-v+"px",threshold:Oe(0,St(1,c))||1};let T=!0;function P(A){const R=A[0].intersectionRatio;if(R!==c){if(!T)return i();R?i(!1,R):r=setTimeout(()=>{i(!1,1e-7)},1e3)}R===1&&!sl(l,e.getBoundingClientRect())&&i(),T=!1}try{n=new IntersectionObserver(P,{...E,root:o.ownerDocument})}catch{n=new IntersectionObserver(P,E)}n.observe(e)}return i(!0),s}function Um(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=Ls(e),f=o||s?[...l?er(l):[],...er(t)]:[];f.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),s&&v.addEventListener("resize",n)});const h=l&&a?Bm(l,n):null;let m=-1,g=null;i&&(g=new ResizeObserver(v=>{let[w]=v;w&&w.target===l&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var E;(E=g)==null||E.observe(t)})),n()}),l&&!c&&g.observe(l),g.observe(t));let S,p=c?Qt(e):null;c&&y();function y(){const v=Qt(e);p&&!sl(p,v)&&n(),p=v,S=requestAnimationFrame(y)}return n(),()=>{var v;f.forEach(w=>{o&&w.removeEventListener("scroll",n),s&&w.removeEventListener("resize",n)}),h==null||h(),(v=g)==null||v.disconnect(),g=null,c&&cancelAnimationFrame(S)}}const Wm=fm,Hm=hm,Vm=lm,zm=mm,qm=um,il=cm,Gm=pm,Km=(e,t,n)=>{const r=new Map,o={platform:Fm,...n},s={...o.platform,_c:r};return am(e,t,{...o,platform:s})};var Qm=typeof document<"u",Ym=function(){},eo=Qm?x.useLayoutEffect:Ym;function to(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!to(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!to(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function al(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function cl(e,t){const n=al(e);return Math.round(t*n)/n}function Ms(e){const t=d.useRef(e);return eo(()=>{t.current=e}),t}function Zm(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[f,h]=d.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,g]=d.useState(r);to(m,r)||g(r);const[S,p]=d.useState(null),[y,v]=d.useState(null),w=d.useCallback(F=>{F!==A.current&&(A.current=F,p(F))},[]),E=d.useCallback(F=>{F!==R.current&&(R.current=F,v(F))},[]),T=s||S,P=i||y,A=d.useRef(null),R=d.useRef(null),N=d.useRef(f),D=c!=null,M=Ms(c),U=Ms(o),W=Ms(l),H=d.useCallback(()=>{if(!A.current||!R.current)return;const F={placement:t,strategy:n,middleware:m};U.current&&(F.platform=U.current),Km(A.current,R.current,F).then(se=>{const ge={...se,isPositioned:W.current!==!1};z.current&&!to(N.current,ge)&&(N.current=ge,gr.flushSync(()=>{h(ge)}))})},[m,t,n,U,W]);eo(()=>{l===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,h(F=>({...F,isPositioned:!1})))},[l]);const z=d.useRef(!1);eo(()=>(z.current=!0,()=>{z.current=!1}),[]),eo(()=>{if(T&&(A.current=T),P&&(R.current=P),T&&P){if(M.current)return M.current(T,P,H);H()}},[T,P,H,M,D]);const oe=d.useMemo(()=>({reference:A,floating:R,setReference:w,setFloating:E}),[w,E]),q=d.useMemo(()=>({reference:T,floating:P}),[T,P]),Y=d.useMemo(()=>{const F={position:n,left:0,top:0};if(!q.floating)return F;const se=cl(q.floating,f.x),ge=cl(q.floating,f.y);return a?{...F,transform:"translate("+se+"px, "+ge+"px)",...al(q.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:se,top:ge}},[n,a,q.floating,f.x,f.y]);return d.useMemo(()=>({...f,update:H,refs:oe,elements:q,floatingStyles:Y}),[f,H,oe,q,Y])}const Xm=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?il({element:r.current,padding:o}).fn(n):{}:r?il({element:r,padding:o}).fn(n):{}}}},Jm=(e,t)=>({...Wm(e),options:[e,t]}),eg=(e,t)=>({...Hm(e),options:[e,t]}),tg=(e,t)=>({...Gm(e),options:[e,t]}),ng=(e,t)=>({...Vm(e),options:[e,t]}),rg=(e,t)=>({...zm(e),options:[e,t]}),og=(e,t)=>({...qm(e),options:[e,t]}),sg=(e,t)=>({...Xm(e),options:[e,t]});var ig="Arrow",ll=d.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return u.jsx(ie.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});ll.displayName=ig;var ag=ll;function cg(e){const[t,n]=d.useState(void 0);return ye(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const c=s.borderBoxSize,l=Array.isArray(c)?c[0]:c;i=l.inlineSize,a=l.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var ks="Popper",[ul,no]=Xn(ks),[lg,dl]=ul(ks),fl=e=>{const{__scopePopper:t,children:n}=e,[r,o]=d.useState(null);return u.jsx(lg,{scope:t,anchor:r,onAnchorChange:o,children:n})};fl.displayName=ks;var hl="PopperAnchor",pl=d.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=dl(hl,n),i=d.useRef(null),a=le(t,i),c=d.useRef(null);return d.useEffect(()=>{const l=c.current;c.current=(r==null?void 0:r.current)||i.current,l!==c.current&&s.onAnchorChange(c.current)}),r?null:u.jsx(ie.div,{...o,ref:a})});pl.displayName=hl;var $s="PopperContent",[ug,dg]=ul($s),ml=d.forwardRef((e,t)=>{var $,te,fe,X,ne,J;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:f=0,sticky:h="partial",hideWhenDetached:m=!1,updatePositionStrategy:g="optimized",onPlaced:S,...p}=e,y=dl($s,n),[v,w]=d.useState(null),E=le(t,Ee=>w(Ee)),[T,P]=d.useState(null),A=cg(T),R=(A==null?void 0:A.width)??0,N=(A==null?void 0:A.height)??0,D=r+(s!=="center"?"-"+s:""),M=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},U=Array.isArray(l)?l:[l],W=U.length>0,H={padding:M,boundary:U.filter(hg),altBoundary:W},{refs:z,floatingStyles:oe,placement:q,isPositioned:Y,middlewareData:F}=Zm({strategy:"fixed",placement:D,whileElementsMounted:(...Ee)=>Um(...Ee,{animationFrame:g==="always"}),elements:{reference:y.anchor},middleware:[Jm({mainAxis:o+N,alignmentAxis:i}),c&&eg({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?tg():void 0,...H}),c&&ng({...H}),rg({...H,apply:({elements:Ee,rects:Le,availableWidth:ot,availableHeight:ze})=>{const{width:Bt,height:Oo}=Le.reference,pt=Ee.floating.style;pt.setProperty("--radix-popper-available-width",`${ot}px`),pt.setProperty("--radix-popper-available-height",`${ze}px`),pt.setProperty("--radix-popper-anchor-width",`${Bt}px`),pt.setProperty("--radix-popper-anchor-height",`${Oo}px`)}}),T&&sg({element:T,padding:a}),pg({arrowWidth:R,arrowHeight:N}),m&&og({strategy:"referenceHidden",...H})]}),[se,ge]=vl(q),De=Gt(S);ye(()=>{Y&&(De==null||De())},[Y,De]);const kt=($=F.arrow)==null?void 0:$.x,$t=(te=F.arrow)==null?void 0:te.y,rt=((fe=F.arrow)==null?void 0:fe.centerOffset)!==0,[Ft,Ve]=d.useState();return ye(()=>{v&&Ve(window.getComputedStyle(v).zIndex)},[v]),u.jsx("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...oe,transform:Y?oe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ft,"--radix-popper-transform-origin":[(X=F.transformOrigin)==null?void 0:X.x,(ne=F.transformOrigin)==null?void 0:ne.y].join(" "),...((J=F.hide)==null?void 0:J.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(ug,{scope:n,placedSide:se,onArrowChange:P,arrowX:kt,arrowY:$t,shouldHideArrow:rt,children:u.jsx(ie.div,{"data-side":se,"data-align":ge,...p,ref:E,style:{...p.style,animation:Y?void 0:"none"}})})})});ml.displayName=$s;var gl="PopperArrow",fg={top:"bottom",right:"left",bottom:"top",left:"right"},yl=d.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=dg(gl,r),i=fg[s.placedSide];return u.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:u.jsx(ag,{...o,ref:n,style:{...o.style,display:"block"}})})});yl.displayName=gl;function hg(e){return e!==null}var pg=e=>({name:"transformOrigin",options:e,fn(t){var y,v,w;const{placement:n,rects:r,middlewareData:o}=t,i=((y=o.arrow)==null?void 0:y.centerOffset)!==0,a=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[l,f]=vl(n),h={start:"0%",center:"50%",end:"100%"}[f],m=(((v=o.arrow)==null?void 0:v.x)??0)+a/2,g=(((w=o.arrow)==null?void 0:w.y)??0)+c/2;let S="",p="";return l==="bottom"?(S=i?h:`${m}px`,p=`${-c}px`):l==="top"?(S=i?h:`${m}px`,p=`${r.floating.height+c}px`):l==="right"?(S=`${-c}px`,p=i?h:`${g}px`):l==="left"&&(S=`${r.floating.width+c}px`,p=i?h:`${g}px`),{data:{x:S,y:p}}}});function vl(e){const[t,n="center"]=e.split("-");return[t,n]}var bl=fl,wl=pl,Cl=ml,Sl=yl,mg="Portal",Fs=d.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,s]=d.useState(!1);ye(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?Wt.createPortal(u.jsx(ie.div,{...r,ref:t}),i):null});Fs.displayName=mg;function gg(e){const t=yg(e),n=d.forwardRef((r,o)=>{const{children:s,...i}=r,a=d.Children.toArray(s),c=a.find(bg);if(c){const l=c.props.children,f=a.map(h=>h===c?d.Children.count(l)>1?d.Children.only(null):d.isValidElement(l)?l.props.children:null:h);return u.jsx(t,{...i,ref:o,children:d.isValidElement(l)?d.cloneElement(l,void 0,f):null})}return u.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function yg(e){const t=d.forwardRef((n,r)=>{const{children:o,...s}=n;if(d.isValidElement(o)){const i=Cg(o),a=wg(s,o.props);return o.type!==d.Fragment&&(a.ref=r?mn(r,i):i),d.cloneElement(o,a)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var vg=Symbol("radix.slottable");function bg(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===vg}function wg(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const c=s(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Cg(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Sg=d[" useInsertionEffect ".trim().toString()]||ye;function ro({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=Eg({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:o;{const f=d.useRef(e!==void 0);d.useEffect(()=>{const h=f.current;h!==a&&console.warn(`${r} is changing from ${h?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=a},[a,r])}const l=d.useCallback(f=>{var h;if(a){const m=xg(f)?f(e):f;m!==e&&((h=i.current)==null||h.call(i,m))}else s(f)},[a,e,s,i]);return[c,l]}function Eg({defaultProp:e,onChange:t}){const[n,r]=d.useState(e),o=d.useRef(n),s=d.useRef(t);return Sg(()=>{s.current=t},[t]),d.useEffect(()=>{var i;o.current!==n&&((i=s.current)==null||i.call(s,n),o.current=n)},[n,o]),[n,r,s]}function xg(e){return typeof e=="function"}function _g(e){const t=d.useRef({value:e,previous:e});return d.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var El=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Tg="VisuallyHidden",xl=d.forwardRef((e,t)=>u.jsx(ie.span,{...e,ref:t,style:{...El,...e.style}}));xl.displayName=Tg;var Pg=xl,Ag=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},wn=new WeakMap,oo=new WeakMap,so={},Bs=0,_l=function(e){return e&&(e.host||_l(e.parentNode))},Rg=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=_l(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Og=function(e,t,n,r){var o=Rg(t,Array.isArray(e)?e:[e]);so[n]||(so[n]=new WeakMap);var s=so[n],i=[],a=new Set,c=new Set(o),l=function(h){!h||a.has(h)||(a.add(h),l(h.parentNode))};o.forEach(l);var f=function(h){!h||c.has(h)||Array.prototype.forEach.call(h.children,function(m){if(a.has(m))f(m);else try{var g=m.getAttribute(r),S=g!==null&&g!=="false",p=(wn.get(m)||0)+1,y=(s.get(m)||0)+1;wn.set(m,p),s.set(m,y),i.push(m),p===1&&S&&oo.set(m,!0),y===1&&m.setAttribute(n,"true"),S||m.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",m,v)}})};return f(t),a.clear(),Bs++,function(){i.forEach(function(h){var m=wn.get(h)-1,g=s.get(h)-1;wn.set(h,m),s.set(h,g),m||(oo.has(h)||h.removeAttribute(r),oo.delete(h)),g||h.removeAttribute(n)}),Bs--,Bs||(wn=new WeakMap,wn=new WeakMap,oo=new WeakMap,so={})}},Tl=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Ag(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Og(r,o,n,"aria-hidden")):function(){return null}},io="right-scroll-bar-position",ao="width-before-scroll-bar",jg="with-scroll-bars-hidden",Ig="--removed-body-scroll-bar-size";function Us(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Dg(e,t){var n=x.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Lg=typeof window<"u"?d.useLayoutEffect:d.useEffect,Pl=new WeakMap;function Ng(e,t){var n=Dg(null,function(r){return e.forEach(function(o){return Us(o,r)})});return Lg(function(){var r=Pl.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(a){s.has(a)||Us(a,null)}),s.forEach(function(a){o.has(a)||Us(a,i)})}Pl.set(n,e)},[e]),n}function Mg(e){return e}function kg(e,t){t===void 0&&(t=Mg);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var i=t(s,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var c=function(){var f=i;i=[],f.forEach(s)},l=function(){return Promise.resolve().then(c)};l(),n={push:function(f){i.push(f),l()},filter:function(f){return i=i.filter(f),n}}}};return o}function $g(e){e===void 0&&(e={});var t=kg(null);return t.options=qe({async:!0,ssr:!1},e),t}var Al=function(e){var t=e.sideCar,n=ha(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return d.createElement(r,qe({},n))};Al.isSideCarExport=!0;function Fg(e,t){return e.useMedium(t),Al}var Rl=$g(),Ws=function(){},co=d.forwardRef(function(e,t){var n=d.useRef(null),r=d.useState({onScrollCapture:Ws,onWheelCapture:Ws,onTouchMoveCapture:Ws}),o=r[0],s=r[1],i=e.forwardProps,a=e.children,c=e.className,l=e.removeScrollBar,f=e.enabled,h=e.shards,m=e.sideCar,g=e.noRelative,S=e.noIsolation,p=e.inert,y=e.allowPinchZoom,v=e.as,w=v===void 0?"div":v,E=e.gapMode,T=ha(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=m,A=Ng([n,t]),R=qe(qe({},T),o);return d.createElement(d.Fragment,null,f&&d.createElement(P,{sideCar:Rl,removeScrollBar:l,shards:h,noRelative:g,noIsolation:S,inert:p,setCallbacks:s,allowPinchZoom:!!y,lockRef:n,gapMode:E}),i?d.cloneElement(d.Children.only(a),qe(qe({},R),{ref:A})):d.createElement(w,qe({},R,{className:c,ref:A}),a))});co.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},co.classNames={fullWidth:ao,zeroRight:io};var Bg=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ug(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Bg();return t&&e.setAttribute("nonce",t),e}function Wg(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Hg(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Vg=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Ug())&&(Wg(t,n),Hg(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},zg=function(){var e=Vg();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ol=function(){var e=zg(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},qg={left:0,top:0,right:0,gap:0},Hs=function(e){return parseInt(e||"",10)||0},Gg=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Hs(n),Hs(r),Hs(o)]},Kg=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return qg;var t=Gg(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Qg=Ol(),Cn="data-scroll-locked",Yg=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
212
+ .`.concat(jg,` {
213
213
  overflow: hidden `).concat(r,`;
214
214
  padding-right: `).concat(a,"px ").concat(r,`;
215
215
  }
@@ -226,30 +226,30 @@ to {
226
226
  `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
227
227
  }
228
228
 
229
- .`).concat(so,` {
229
+ .`).concat(io,` {
230
230
  right: `).concat(a,"px ").concat(r,`;
231
231
  }
232
232
 
233
- .`).concat(io,` {
233
+ .`).concat(ao,` {
234
234
  margin-right: `).concat(a,"px ").concat(r,`;
235
235
  }
236
236
 
237
- .`).concat(so," .").concat(so,` {
237
+ .`).concat(io," .").concat(io,` {
238
238
  right: 0 `).concat(r,`;
239
239
  }
240
240
 
241
- .`).concat(io," .").concat(io,` {
241
+ .`).concat(ao," .").concat(ao,` {
242
242
  margin-right: 0 `).concat(r,`;
243
243
  }
244
244
 
245
245
  body[`).concat(Cn,`] {
246
- `).concat(Ag,": ").concat(a,`px;
246
+ `).concat(Ig,": ").concat(a,`px;
247
247
  }
248
- `)},Ol=function(){var e=parseInt(document.body.getAttribute(Cn)||"0",10);return isFinite(e)?e:0},Gg=function(){d.useEffect(function(){return document.body.setAttribute(Cn,(Ol()+1).toString()),function(){var e=Ol()-1;e<=0?document.body.removeAttribute(Cn):document.body.setAttribute(Cn,e.toString())}},[])},Kg=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Gg();var s=d.useMemo(function(){return Vg(o)},[o]);return d.createElement(zg,{styles:qg(s,!t,o,n?"":"!important")})},Vs=!1;if(typeof window<"u")try{var co=Object.defineProperty({},"passive",{get:function(){return Vs=!0,!0}});window.addEventListener("test",co,co),window.removeEventListener("test",co,co)}catch{Vs=!1}var Sn=Vs?{passive:!1}:!1,Qg=function(e){return e.tagName==="TEXTAREA"},Rl=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Qg(e)&&n[t]==="visible")},Yg=function(e){return Rl(e,"overflowY")},Zg=function(e){return Rl(e,"overflowX")},jl=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Il(e,r);if(o){var s=Dl(e,r),i=s[1],a=s[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Xg=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Jg=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Il=function(e,t){return e==="v"?Yg(t):Zg(t)},Dl=function(e,t){return e==="v"?Xg(t):Jg(t)},ey=function(e,t){return e==="h"&&t==="rtl"?-1:1},ty=function(e,t,n,r,o){var s=ey(e,window.getComputedStyle(t).direction),i=s*r,a=n.target,c=t.contains(a),u=!1,f=i>0,h=0,m=0;do{if(!a)break;var g=Dl(e,a),S=g[0],p=g[1],y=g[2],v=p-y-s*S;(S||v)&&Il(e,a)&&(h+=v,m+=S);var w=a.parentNode;a=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(f&&Math.abs(h)<1||!f&&Math.abs(m)<1)&&(u=!0),u},lo=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ll=function(e){return[e.deltaX,e.deltaY]},Nl=function(e){return e&&"current"in e?e.current:e},ny=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ry=function(e){return`
248
+ `)},jl=function(){var e=parseInt(document.body.getAttribute(Cn)||"0",10);return isFinite(e)?e:0},Zg=function(){d.useEffect(function(){return document.body.setAttribute(Cn,(jl()+1).toString()),function(){var e=jl()-1;e<=0?document.body.removeAttribute(Cn):document.body.setAttribute(Cn,e.toString())}},[])},Xg=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Zg();var s=d.useMemo(function(){return Kg(o)},[o]);return d.createElement(Qg,{styles:Yg(s,!t,o,n?"":"!important")})},Vs=!1;if(typeof window<"u")try{var lo=Object.defineProperty({},"passive",{get:function(){return Vs=!0,!0}});window.addEventListener("test",lo,lo),window.removeEventListener("test",lo,lo)}catch{Vs=!1}var Sn=Vs?{passive:!1}:!1,Jg=function(e){return e.tagName==="TEXTAREA"},Il=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Jg(e)&&n[t]==="visible")},ey=function(e){return Il(e,"overflowY")},ty=function(e){return Il(e,"overflowX")},Dl=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Ll(e,r);if(o){var s=Nl(e,r),i=s[1],a=s[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ny=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},ry=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Ll=function(e,t){return e==="v"?ey(t):ty(t)},Nl=function(e,t){return e==="v"?ny(t):ry(t)},oy=function(e,t){return e==="h"&&t==="rtl"?-1:1},sy=function(e,t,n,r,o){var s=oy(e,window.getComputedStyle(t).direction),i=s*r,a=n.target,c=t.contains(a),l=!1,f=i>0,h=0,m=0;do{if(!a)break;var g=Nl(e,a),S=g[0],p=g[1],y=g[2],v=p-y-s*S;(S||v)&&Ll(e,a)&&(h+=v,m+=S);var w=a.parentNode;a=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(f&&Math.abs(h)<1||!f&&Math.abs(m)<1)&&(l=!0),l},uo=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ml=function(e){return[e.deltaX,e.deltaY]},kl=function(e){return e&&"current"in e?e.current:e},iy=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ay=function(e){return`
249
249
  .block-interactivity-`.concat(e,` {pointer-events: none;}
250
250
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
251
- `)},oy=0,En=[];function sy(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),o=d.useState(oy++)[0],s=d.useState(Al)[0],i=d.useRef(e);d.useEffect(function(){i.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var p=br([e.lockRef.current],(e.shards||[]).map(Nl),!0).filter(Boolean);return p.forEach(function(y){return y.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=d.useCallback(function(p,y){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!i.current.allowPinchZoom;var v=lo(p),w=n.current,E="deltaX"in p?p.deltaX:w[0]-v[0],T="deltaY"in p?p.deltaY:w[1]-v[1],P,A=p.target,O=Math.abs(E)>Math.abs(T)?"h":"v";if("touches"in p&&O==="h"&&A.type==="range")return!1;var N=window.getSelection(),D=N&&N.anchorNode,M=D?D===A||D.contains(A):!1;if(M)return!1;var U=jl(O,A);if(!U)return!0;if(U?P=O:(P=O==="v"?"h":"v",U=jl(O,A)),!U)return!1;if(!r.current&&"changedTouches"in p&&(E||T)&&(r.current=P),!P)return!0;var W=r.current||P;return ty(W,y,p,W==="h"?E:T)},[]),c=d.useCallback(function(p){var y=p;if(!(!En.length||En[En.length-1]!==s)){var v="deltaY"in y?Ll(y):lo(y),w=t.current.filter(function(P){return P.name===y.type&&(P.target===y.target||y.target===P.shadowParent)&&ny(P.delta,v)})[0];if(w&&w.should){y.cancelable&&y.preventDefault();return}if(!w){var E=(i.current.shards||[]).map(Nl).filter(Boolean).filter(function(P){return P.contains(y.target)}),T=E.length>0?a(y,E[0]):!i.current.noIsolation;T&&y.cancelable&&y.preventDefault()}}},[]),u=d.useCallback(function(p,y,v,w){var E={name:p,delta:y,target:v,should:w,shadowParent:iy(v)};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(T){return T!==E})},1)},[]),f=d.useCallback(function(p){n.current=lo(p),r.current=void 0},[]),h=d.useCallback(function(p){u(p.type,Ll(p),p.target,a(p,e.lockRef.current))},[]),m=d.useCallback(function(p){u(p.type,lo(p),p.target,a(p,e.lockRef.current))},[]);d.useEffect(function(){return En.push(s),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:m}),document.addEventListener("wheel",c,Sn),document.addEventListener("touchmove",c,Sn),document.addEventListener("touchstart",f,Sn),function(){En=En.filter(function(p){return p!==s}),document.removeEventListener("wheel",c,Sn),document.removeEventListener("touchmove",c,Sn),document.removeEventListener("touchstart",f,Sn)}},[]);var g=e.removeScrollBar,S=e.inert;return d.createElement(d.Fragment,null,S?d.createElement(s,{styles:ry(o)}):null,g?d.createElement(Kg,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function iy(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const ay=Ng(Pl,sy);var zs=d.forwardRef(function(e,t){return d.createElement(ao,qe({},e,{ref:t,sideCar:ay}))});zs.classNames=ao.classNames;var cy=[" ","Enter","ArrowUp","ArrowDown"],ly=[" ","Enter"],Yt="Select",[uo,fo,uy]=y1(Yt),[xn]=Zn(Yt,[uy,to]),ho=to(),[dy,xt]=xn(Yt),[fy,hy]=xn(Yt),Ml=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:i,defaultValue:a,onValueChange:c,dir:u,name:f,autoComplete:h,disabled:m,required:g,form:S}=e,p=ho(t),[y,v]=d.useState(null),[w,E]=d.useState(null),[T,P]=d.useState(!1),A=b1(u),[O,N]=no({prop:r,defaultProp:o??!1,onChange:s,caller:Yt}),[D,M]=no({prop:i,defaultProp:a,onChange:c,caller:Yt}),U=d.useRef(null),W=y?S||!!y.closest("form"):!0,[H,z]=d.useState(new Set),oe=Array.from(H).map(q=>q.props.value).join(";");return l.jsx(yl,{...p,children:l.jsxs(dy,{required:g,scope:t,trigger:y,onTriggerChange:v,valueNode:w,onValueNodeChange:E,valueNodeHasChildren:T,onValueNodeHasChildrenChange:P,contentId:Kt(),value:D,onValueChange:M,open:O,onOpenChange:N,dir:A,triggerPointerDownPosRef:U,disabled:m,children:[l.jsx(uo.Provider,{scope:t,children:l.jsx(fy,{scope:e.__scopeSelect,onNativeOptionAdd:d.useCallback(q=>{z(Y=>new Set(Y).add(q))},[]),onNativeOptionRemove:d.useCallback(q=>{z(Y=>{const F=new Set(Y);return F.delete(q),F})},[]),children:n})}),W?l.jsxs(nu,{"aria-hidden":!0,required:g,tabIndex:-1,name:f,autoComplete:h,value:D,onChange:q=>M(q.target.value),disabled:m,form:S,children:[D===void 0?l.jsx("option",{value:""}):null,Array.from(H)]},oe):null]})})};Ml.displayName=Yt;var kl="SelectTrigger",$l=d.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=ho(n),i=xt(kl,n),a=i.disabled||r,c=le(t,i.onTriggerChange),u=fo(n),f=d.useRef("touch"),[h,m,g]=ou(p=>{const y=u().filter(E=>!E.disabled),v=y.find(E=>E.value===i.value),w=su(y,p,v);w!==void 0&&i.onValueChange(w.value)}),S=p=>{a||(i.onOpenChange(!0),g()),p&&(i.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return l.jsx(vl,{asChild:!0,...s,children:l.jsx(ie.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":ru(i.value)?"":void 0,...o,ref:c,onClick:Z(o.onClick,p=>{p.currentTarget.focus(),f.current!=="mouse"&&S(p)}),onPointerDown:Z(o.onPointerDown,p=>{f.current=p.pointerType;const y=p.target;y.hasPointerCapture(p.pointerId)&&y.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(S(p),p.preventDefault())}),onKeyDown:Z(o.onKeyDown,p=>{const y=h.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&m(p.key),!(y&&p.key===" ")&&cy.includes(p.key)&&(S(),p.preventDefault())})})})});$l.displayName=kl;var Fl="SelectValue",Bl=d.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:i="",...a}=e,c=xt(Fl,n),{onValueNodeHasChildrenChange:u}=c,f=s!==void 0,h=le(t,c.onValueNodeChange);return ye(()=>{u(f)},[u,f]),l.jsx(ie.span,{...a,ref:h,style:{pointerEvents:"none"},children:ru(c.value)?l.jsx(l.Fragment,{children:i}):s})});Bl.displayName=Fl;var py="SelectIcon",Ul=d.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return l.jsx(ie.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});Ul.displayName=py;var Zt="SelectContent",Wl=d.forwardRef((e,t)=>{const n=xt(Zt,e.__scopeSelect),[r,o]=d.useState();if(ye(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?mr.createPortal(l.jsx(Hl,{scope:e.__scopeSelect,children:l.jsx(uo.Slot,{scope:e.__scopeSelect,children:l.jsx("div",{children:e.children})})}),s):null}return l.jsx(Vl,{...e,ref:t})});Wl.displayName=Zt;var Fe=10,[Hl,_t]=xn(Zt),my="SelectContentImpl",gy=fg("SelectContent.RemoveScroll"),Vl=d.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:i,side:a,sideOffset:c,align:u,alignOffset:f,arrowPadding:h,collisionBoundary:m,collisionPadding:g,sticky:S,hideWhenDetached:p,avoidCollisions:y,...v}=e,w=xt(Zt,n),[E,T]=d.useState(null),[P,A]=d.useState(null),O=le(t,$=>T($)),[N,D]=d.useState(null),[M,U]=d.useState(null),W=fo(n),[H,z]=d.useState(!1),oe=d.useRef(!1);d.useEffect(()=>{if(E)return xl(E)},[E]),Ic();const q=d.useCallback($=>{const[te,...fe]=W().map(J=>J.ref.current),[X]=fe.slice(-1),ne=document.activeElement;for(const J of $)if(J===ne||(J==null||J.scrollIntoView({block:"nearest"}),J===te&&P&&(P.scrollTop=0),J===X&&P&&(P.scrollTop=P.scrollHeight),J==null||J.focus(),document.activeElement!==ne))return},[W,P]),Y=d.useCallback(()=>q([N,E]),[q,N,E]);d.useEffect(()=>{H&&Y()},[H,Y]);const{onOpenChange:F,triggerPointerDownPosRef:se}=w;d.useEffect(()=>{if(E){let $={x:0,y:0};const te=X=>{var ne,J;$={x:Math.abs(Math.round(X.pageX)-(((ne=se.current)==null?void 0:ne.x)??0)),y:Math.abs(Math.round(X.pageY)-(((J=se.current)==null?void 0:J.y)??0))}},fe=X=>{$.x<=10&&$.y<=10?X.preventDefault():E.contains(X.target)||F(!1),document.removeEventListener("pointermove",te),se.current=null};return se.current!==null&&(document.addEventListener("pointermove",te),document.addEventListener("pointerup",fe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",te),document.removeEventListener("pointerup",fe,{capture:!0})}}},[E,F,se]),d.useEffect(()=>{const $=()=>F(!1);return window.addEventListener("blur",$),window.addEventListener("resize",$),()=>{window.removeEventListener("blur",$),window.removeEventListener("resize",$)}},[F]);const[ge,De]=ou($=>{const te=W().filter(ne=>!ne.disabled),fe=te.find(ne=>ne.ref.current===document.activeElement),X=su(te,$,fe);X&&setTimeout(()=>X.ref.current.focus())}),kt=d.useCallback(($,te,fe)=>{const X=!oe.current&&!fe;(w.value!==void 0&&w.value===te||X)&&(D($),X&&(oe.current=!0))},[w.value]),$t=d.useCallback(()=>E==null?void 0:E.focus(),[E]),rt=d.useCallback(($,te,fe)=>{const X=!oe.current&&!fe;(w.value!==void 0&&w.value===te||X)&&U($)},[w.value]),Ft=r==="popper"?qs:zl,Ve=Ft===qs?{side:a,sideOffset:c,align:u,alignOffset:f,arrowPadding:h,collisionBoundary:m,collisionPadding:g,sticky:S,hideWhenDetached:p,avoidCollisions:y}:{};return l.jsx(Hl,{scope:n,content:E,viewport:P,onViewportChange:A,itemRefCallback:kt,selectedItem:N,onItemLeave:$t,itemTextRefCallback:rt,focusSelectedItem:Y,selectedItemText:M,position:r,isPositioned:H,searchRef:ge,children:l.jsx(zs,{as:gy,allowPinchZoom:!0,children:l.jsx(_s,{asChild:!0,trapped:w.open,onMountAutoFocus:$=>{$.preventDefault()},onUnmountAutoFocus:Z(o,$=>{var te;(te=w.trigger)==null||te.focus({preventScroll:!0}),$.preventDefault()}),children:l.jsx(Vr,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:$=>$.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:l.jsx(Ft,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:$=>$.preventDefault(),...v,...Ve,onPlaced:()=>z(!0),ref:O,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:Z(v.onKeyDown,$=>{const te=$.ctrlKey||$.altKey||$.metaKey;if($.key==="Tab"&&$.preventDefault(),!te&&$.key.length===1&&De($.key),["ArrowUp","ArrowDown","Home","End"].includes($.key)){let X=W().filter(ne=>!ne.disabled).map(ne=>ne.ref.current);if(["ArrowUp","End"].includes($.key)&&(X=X.slice().reverse()),["ArrowUp","ArrowDown"].includes($.key)){const ne=$.target,J=X.indexOf(ne);X=X.slice(J+1)}setTimeout(()=>q(X)),$.preventDefault()}})})})})})})});Vl.displayName=my;var yy="SelectItemAlignedPosition",zl=d.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=xt(Zt,n),i=_t(Zt,n),[a,c]=d.useState(null),[u,f]=d.useState(null),h=le(t,O=>f(O)),m=fo(n),g=d.useRef(!1),S=d.useRef(!0),{viewport:p,selectedItem:y,selectedItemText:v,focusSelectedItem:w}=i,E=d.useCallback(()=>{if(s.trigger&&s.valueNode&&a&&u&&p&&y&&v){const O=s.trigger.getBoundingClientRect(),N=u.getBoundingClientRect(),D=s.valueNode.getBoundingClientRect(),M=v.getBoundingClientRect();if(s.dir!=="rtl"){const ne=M.left-N.left,J=D.left-ne,Ee=O.left-J,Le=O.width+Ee,ot=Math.max(Le,N.width),ze=window.innerWidth-Fe,Bt=_c(J,[Fe,Math.max(Fe,ze-ot)]);a.style.minWidth=Le+"px",a.style.left=Bt+"px"}else{const ne=N.right-M.right,J=window.innerWidth-D.right-ne,Ee=window.innerWidth-O.right-J,Le=O.width+Ee,ot=Math.max(Le,N.width),ze=window.innerWidth-Fe,Bt=_c(J,[Fe,Math.max(Fe,ze-ot)]);a.style.minWidth=Le+"px",a.style.right=Bt+"px"}const U=m(),W=window.innerHeight-Fe*2,H=p.scrollHeight,z=window.getComputedStyle(u),oe=parseInt(z.borderTopWidth,10),q=parseInt(z.paddingTop,10),Y=parseInt(z.borderBottomWidth,10),F=parseInt(z.paddingBottom,10),se=oe+q+H+F+Y,ge=Math.min(y.offsetHeight*5,se),De=window.getComputedStyle(p),kt=parseInt(De.paddingTop,10),$t=parseInt(De.paddingBottom,10),rt=O.top+O.height/2-Fe,Ft=W-rt,Ve=y.offsetHeight/2,$=y.offsetTop+Ve,te=oe+q+$,fe=se-te;if(te<=rt){const ne=U.length>0&&y===U[U.length-1].ref.current;a.style.bottom="0px";const J=u.clientHeight-p.offsetTop-p.offsetHeight,Ee=Math.max(Ft,Ve+(ne?$t:0)+J+Y),Le=te+Ee;a.style.height=Le+"px"}else{const ne=U.length>0&&y===U[0].ref.current;a.style.top="0px";const Ee=Math.max(rt,oe+p.offsetTop+(ne?kt:0)+Ve)+fe;a.style.height=Ee+"px",p.scrollTop=te-rt+p.offsetTop}a.style.margin=`${Fe}px 0`,a.style.minHeight=ge+"px",a.style.maxHeight=W+"px",r==null||r(),requestAnimationFrame(()=>g.current=!0)}},[m,s.trigger,s.valueNode,a,u,p,y,v,s.dir,r]);ye(()=>E(),[E]);const[T,P]=d.useState();ye(()=>{u&&P(window.getComputedStyle(u).zIndex)},[u]);const A=d.useCallback(O=>{O&&S.current===!0&&(E(),w==null||w(),S.current=!1)},[E,w]);return l.jsx(by,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:g,onScrollButtonChange:A,children:l.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:T},children:l.jsx(ie.div,{...o,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});zl.displayName=yy;var vy="SelectPopperPosition",qs=d.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Fe,...s}=e,i=ho(n);return l.jsx(bl,{...i,...s,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});qs.displayName=vy;var[by,Gs]=xn(Zt,{}),Ks="SelectViewport",ql=d.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=_t(Ks,n),i=Gs(Ks,n),a=le(t,s.onViewportChange),c=d.useRef(0);return l.jsxs(l.Fragment,{children:[l.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),l.jsx(uo.Slot,{scope:n,children:l.jsx(ie.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Z(o.onScroll,u=>{const f=u.currentTarget,{contentWrapper:h,shouldExpandOnScrollRef:m}=i;if(m!=null&&m.current&&h){const g=Math.abs(c.current-f.scrollTop);if(g>0){const S=window.innerHeight-Fe*2,p=parseFloat(h.style.minHeight),y=parseFloat(h.style.height),v=Math.max(p,y);if(v<S){const w=v+g,E=Math.min(S,w),T=w-E;h.style.height=E+"px",h.style.bottom==="0px"&&(f.scrollTop=T>0?T:0,h.style.justifyContent="flex-end")}}}c.current=f.scrollTop})})})]})});ql.displayName=Ks;var Gl="SelectGroup",[wy,Cy]=xn(Gl),Kl=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Kt();return l.jsx(wy,{scope:n,id:o,children:l.jsx(ie.div,{role:"group","aria-labelledby":o,...r,ref:t})})});Kl.displayName=Gl;var Ql="SelectLabel",Sy=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Cy(Ql,n);return l.jsx(ie.div,{id:o.id,...r,ref:t})});Sy.displayName=Ql;var po="SelectItem",[Ey,Yl]=xn(po),Zl=d.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...i}=e,a=xt(po,n),c=_t(po,n),u=a.value===r,[f,h]=d.useState(s??""),[m,g]=d.useState(!1),S=le(t,w=>{var E;return(E=c.itemRefCallback)==null?void 0:E.call(c,w,r,o)}),p=Kt(),y=d.useRef("touch"),v=()=>{o||(a.onValueChange(r),a.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return l.jsx(Ey,{scope:n,value:r,disabled:o,textId:p,isSelected:u,onItemTextChange:d.useCallback(w=>{h(E=>E||((w==null?void 0:w.textContent)??"").trim())},[]),children:l.jsx(uo.ItemSlot,{scope:n,value:r,disabled:o,textValue:f,children:l.jsx(ie.div,{role:"option","aria-labelledby":p,"data-highlighted":m?"":void 0,"aria-selected":u&&m,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:S,onFocus:Z(i.onFocus,()=>g(!0)),onBlur:Z(i.onBlur,()=>g(!1)),onClick:Z(i.onClick,()=>{y.current!=="mouse"&&v()}),onPointerUp:Z(i.onPointerUp,()=>{y.current==="mouse"&&v()}),onPointerDown:Z(i.onPointerDown,w=>{y.current=w.pointerType}),onPointerMove:Z(i.onPointerMove,w=>{var E;y.current=w.pointerType,o?(E=c.onItemLeave)==null||E.call(c):y.current==="mouse"&&w.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Z(i.onPointerLeave,w=>{var E;w.currentTarget===document.activeElement&&((E=c.onItemLeave)==null||E.call(c))}),onKeyDown:Z(i.onKeyDown,w=>{var T;((T=c.searchRef)==null?void 0:T.current)!==""&&w.key===" "||(ly.includes(w.key)&&v(),w.key===" "&&w.preventDefault())})})})})});Zl.displayName=po;var er="SelectItemText",Xl=d.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,i=xt(er,n),a=_t(er,n),c=Yl(er,n),u=hy(er,n),[f,h]=d.useState(null),m=le(t,v=>h(v),c.onItemTextChange,v=>{var w;return(w=a.itemTextRefCallback)==null?void 0:w.call(a,v,c.value,c.disabled)}),g=f==null?void 0:f.textContent,S=d.useMemo(()=>l.jsx("option",{value:c.value,disabled:c.disabled,children:g},c.value),[c.disabled,c.value,g]),{onNativeOptionAdd:p,onNativeOptionRemove:y}=u;return ye(()=>(p(S),()=>y(S)),[p,y,S]),l.jsxs(l.Fragment,{children:[l.jsx(ie.span,{id:c.textId,...s,ref:m}),c.isSelected&&i.valueNode&&!i.valueNodeHasChildren?mr.createPortal(s.children,i.valueNode):null]})});Xl.displayName=er;var Jl="SelectItemIndicator",eu=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Yl(Jl,n).isSelected?l.jsx(ie.span,{"aria-hidden":!0,...r,ref:t}):null});eu.displayName=Jl;var Qs="SelectScrollUpButton",xy=d.forwardRef((e,t)=>{const n=_t(Qs,e.__scopeSelect),r=Gs(Qs,e.__scopeSelect),[o,s]=d.useState(!1),i=le(t,r.onScrollButtonChange);return ye(()=>{if(n.viewport&&n.isPositioned){let a=function(){const u=c.scrollTop>0;s(u)};const c=n.viewport;return a(),c.addEventListener("scroll",a),()=>c.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?l.jsx(tu,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:c}=n;a&&c&&(a.scrollTop=a.scrollTop-c.offsetHeight)}}):null});xy.displayName=Qs;var Ys="SelectScrollDownButton",_y=d.forwardRef((e,t)=>{const n=_t(Ys,e.__scopeSelect),r=Gs(Ys,e.__scopeSelect),[o,s]=d.useState(!1),i=le(t,r.onScrollButtonChange);return ye(()=>{if(n.viewport&&n.isPositioned){let a=function(){const u=c.scrollHeight-c.clientHeight,f=Math.ceil(c.scrollTop)<u;s(f)};const c=n.viewport;return a(),c.addEventListener("scroll",a),()=>c.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?l.jsx(tu,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:c}=n;a&&c&&(a.scrollTop=a.scrollTop+c.offsetHeight)}}):null});_y.displayName=Ys;var tu=d.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=_t("SelectScrollButton",n),i=d.useRef(null),a=fo(n),c=d.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return d.useEffect(()=>()=>c(),[c]),ye(()=>{var f;const u=a().find(h=>h.ref.current===document.activeElement);(f=u==null?void 0:u.ref.current)==null||f.scrollIntoView({block:"nearest"})},[a]),l.jsx(ie.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:Z(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:Z(o.onPointerMove,()=>{var u;(u=s.onItemLeave)==null||u.call(s),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:Z(o.onPointerLeave,()=>{c()})})}),Ty="SelectSeparator",Py=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return l.jsx(ie.div,{"aria-hidden":!0,...r,ref:t})});Py.displayName=Ty;var Zs="SelectArrow",Ay=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=ho(n),s=xt(Zs,n),i=_t(Zs,n);return s.open&&i.position==="popper"?l.jsx(wl,{...o,...r,ref:t}):null});Ay.displayName=Zs;var Oy="SelectBubbleInput",nu=d.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=d.useRef(null),s=le(r,o),i=Cg(t);return d.useEffect(()=>{const a=o.current;if(!a)return;const c=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(c,"value").set;if(i!==t&&f){const h=new Event("change",{bubbles:!0});f.call(a,t),a.dispatchEvent(h)}},[i,t]),l.jsx(ie.select,{...n,style:{...Cl,...n.style},ref:s,defaultValue:t})});nu.displayName=Oy;function ru(e){return e===""||e===void 0}function ou(e){const t=Gt(e),n=d.useRef(""),r=d.useRef(0),o=d.useCallback(i=>{const a=n.current+i;t(a),function c(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>c(""),1e3))}(a)},[t]),s=d.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return d.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function su(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=Ry(e,Math.max(s,0));o.length===1&&(i=i.filter(u=>u!==n));const c=i.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function Ry(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var jy=Ml,Iy=$l,Dy=Bl,Ly=Ul,Ny=Wl,My=ql,ky=Kl,$y=Zl,Fy=Xl,By=eu;const Ze={Container:"Container__xcHXp",Label:"Label__0cZB9",HelperText:"HelperText__m1nA9",Trigger:"Trigger__AyFUd",TriggerIcon:"TriggerIcon__aygFG",Content:"Content__llztG",Viewport:"Viewport__COtSL",Item:"Item__XN1-2",ItemIndicatorContainer:"ItemIndicatorContainer__EQH-X",ItemIndicator:"ItemIndicator__bySSc"},iu=x.forwardRef(({label:e,helperText:t,value:n,onValueChange:r,options:o,placeholder:s="Select",disabled:i=!1,className:a,name:c},u)=>l.jsxs("div",{className:L(Ze.Container,a),children:[e&&l.jsx("label",{className:Ze.Label,children:e}),l.jsxs(jy,{value:n,onValueChange:r,disabled:i,name:c,children:[l.jsxs(Iy,{ref:u,className:Ze.Trigger,children:[l.jsx(Dy,{placeholder:s}),l.jsx(Ly,{className:Ze.TriggerIcon,children:l.jsx(Uy,{})})]}),l.jsx(Ny,{className:Ze.Content,position:"popper",sideOffset:4,children:l.jsx(My,{className:Ze.Viewport,children:l.jsx(ky,{children:o.map(f=>l.jsxs($y,{value:f.value,disabled:f.disabled,className:Ze.Item,children:[l.jsx("div",{className:Ze.ItemIndicatorContainer,children:l.jsx(By,{className:Ze.ItemIndicator,children:l.jsx(Wy,{})})}),l.jsx(Fy,{children:f.label})]},f.value))})})})]}),t&&l.jsx("div",{className:Ze.HelperText,children:t})]}));iu.displayName="Select";const Uy=()=>l.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.52459 12.7746C6.8907 12.4085 7.4843 12.4085 7.85041 12.7746L10 14.9242L12.1496 12.7746C12.5157 12.4085 13.1093 12.4085 13.4754 12.7746C13.8415 13.1407 13.8415 13.7343 13.4754 14.1004L10.6629 16.9129C10.2968 17.279 9.7032 17.279 9.33709 16.9129L6.52459 14.1004C6.15847 13.7343 6.15847 13.1407 6.52459 12.7746Z",fill:"currentColor"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.4754 7.22541C13.1093 7.59153 12.5157 7.59153 12.1496 7.22541L10 5.07583L7.85041 7.22541C7.4843 7.59153 6.8907 7.59153 6.52459 7.22541C6.15847 6.8593 6.15847 6.2657 6.52459 5.89959L9.33709 3.08709C9.7032 2.72097 10.2968 2.72097 10.6629 3.08709L13.4754 5.89959C13.8415 6.2657 13.8415 6.8593 13.4754 7.22541Z",fill:"currentColor"})]}),Wy=()=>l.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:"M13.3333 4L6 11.3333L2.66667 8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),Hy={TextArea:"TextArea__pa-A0"},au=x.forwardRef(({children:e,className:t,...n},r)=>{const o=L(Hy.TextArea,t);return l.jsx("textarea",{ref:r,className:o,...n,children:e})});au.displayName="TextArea";function Vy(e,t){return d.useReducer((n,r)=>t[n][r]??n,e)}var _n=e=>{const{present:t,children:n}=e,r=zy(t),o=typeof n=="function"?n({present:r.isPresent}):d.Children.only(n),s=le(r.ref,qy(o));return typeof n=="function"||r.isPresent?d.cloneElement(o,{ref:s}):null};_n.displayName="Presence";function zy(e){const[t,n]=d.useState(),r=d.useRef(null),o=d.useRef(e),s=d.useRef("none"),i=e?"mounted":"unmounted",[a,c]=Vy(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const u=mo(r.current);s.current=a==="mounted"?u:"none"},[a]),ye(()=>{const u=r.current,f=o.current;if(f!==e){const m=s.current,g=mo(u);e?c("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(f&&m!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ye(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,h=g=>{const p=mo(r.current).includes(CSS.escape(g.animationName));if(g.target===t&&p&&(c("ANIMATION_END"),!o.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},m=g=>{g.target===t&&(s.current=mo(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:d.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function mo(e){return(e==null?void 0:e.animationName)||"none"}function qy(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Gy=Symbol("radix.slottable");function Ky(e){const t=({children:n})=>l.jsx(l.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Gy,t}var[go]=Zn("Tooltip",[to]),yo=to(),cu="TooltipProvider",Qy=700,Xs="tooltip.open",[Yy,Js]=go(cu),lu=e=>{const{__scopeTooltip:t,delayDuration:n=Qy,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,i=d.useRef(!0),a=d.useRef(!1),c=d.useRef(0);return d.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),l.jsx(Yy,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:d.useCallback(()=>{window.clearTimeout(c.current),i.current=!1},[]),onClose:d.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:d.useCallback(u=>{a.current=u},[]),disableHoverableContent:o,children:s})};lu.displayName=cu;var tr="Tooltip",[Zy,nr]=go(tr),uu=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:i,delayDuration:a}=e,c=Js(tr,e.__scopeTooltip),u=yo(t),[f,h]=d.useState(null),m=Kt(),g=d.useRef(0),S=i??c.disableHoverableContent,p=a??c.delayDuration,y=d.useRef(!1),[v,w]=no({prop:r,defaultProp:o??!1,onChange:O=>{O?(c.onOpen(),document.dispatchEvent(new CustomEvent(Xs))):c.onClose(),s==null||s(O)},caller:tr}),E=d.useMemo(()=>v?y.current?"delayed-open":"instant-open":"closed",[v]),T=d.useCallback(()=>{window.clearTimeout(g.current),g.current=0,y.current=!1,w(!0)},[w]),P=d.useCallback(()=>{window.clearTimeout(g.current),g.current=0,w(!1)},[w]),A=d.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{y.current=!0,w(!0),g.current=0},p)},[p,w]);return d.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),l.jsx(yl,{...u,children:l.jsx(Zy,{scope:t,contentId:m,open:v,stateAttribute:E,trigger:f,onTriggerChange:h,onTriggerEnter:d.useCallback(()=>{c.isOpenDelayedRef.current?A():T()},[c.isOpenDelayedRef,A,T]),onTriggerLeave:d.useCallback(()=>{S?P():(window.clearTimeout(g.current),g.current=0)},[P,S]),onOpen:T,onClose:P,disableHoverableContent:S,children:n})})};uu.displayName=tr;var ei="TooltipTrigger",du=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=nr(ei,n),s=Js(ei,n),i=yo(n),a=d.useRef(null),c=le(t,a,o.onTriggerChange),u=d.useRef(!1),f=d.useRef(!1),h=d.useCallback(()=>u.current=!1,[]);return d.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),l.jsx(vl,{asChild:!0,...i,children:l.jsx(ie.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:Z(e.onPointerMove,m=>{m.pointerType!=="touch"&&!f.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:Z(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:Z(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:Z(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:Z(e.onBlur,o.onClose),onClick:Z(e.onClick,o.onClose)})})});du.displayName=ei;var ti="TooltipPortal",[Xy,Jy]=go(ti,{forceMount:void 0}),fu=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,s=nr(ti,t);return l.jsx(Xy,{scope:t,forceMount:n,children:l.jsx(_n,{present:n||s.open,children:l.jsx(Fs,{asChild:!0,container:o,children:r})})})};fu.displayName=ti;var Tn="TooltipContent",hu=d.forwardRef((e,t)=>{const n=Jy(Tn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,i=nr(Tn,e.__scopeTooltip);return l.jsx(_n,{present:r||i.open,children:i.disableHoverableContent?l.jsx(pu,{side:o,...s,ref:t}):l.jsx(ev,{side:o,...s,ref:t})})}),ev=d.forwardRef((e,t)=>{const n=nr(Tn,e.__scopeTooltip),r=Js(Tn,e.__scopeTooltip),o=d.useRef(null),s=le(t,o),[i,a]=d.useState(null),{trigger:c,onClose:u}=n,f=o.current,{onPointerInTransitChange:h}=r,m=d.useCallback(()=>{a(null),h(!1)},[h]),g=d.useCallback((S,p)=>{const y=S.currentTarget,v={x:S.clientX,y:S.clientY},w=ov(v,y.getBoundingClientRect()),E=sv(v,w),T=iv(p.getBoundingClientRect()),P=cv([...E,...T]);a(P),h(!0)},[h]);return d.useEffect(()=>()=>m(),[m]),d.useEffect(()=>{if(c&&f){const S=y=>g(y,f),p=y=>g(y,c);return c.addEventListener("pointerleave",S),f.addEventListener("pointerleave",p),()=>{c.removeEventListener("pointerleave",S),f.removeEventListener("pointerleave",p)}}},[c,f,g,m]),d.useEffect(()=>{if(i){const S=p=>{const y=p.target,v={x:p.clientX,y:p.clientY},w=(c==null?void 0:c.contains(y))||(f==null?void 0:f.contains(y)),E=!av(v,i);w?m():E&&(m(),u())};return document.addEventListener("pointermove",S),()=>document.removeEventListener("pointermove",S)}},[c,f,i,u,m]),l.jsx(pu,{...e,ref:s})}),[tv,nv]=go(tr,{isInside:!1}),rv=Ky("TooltipContent"),pu=d.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...a}=e,c=nr(Tn,n),u=yo(n),{onClose:f}=c;return d.useEffect(()=>(document.addEventListener(Xs,f),()=>document.removeEventListener(Xs,f)),[f]),d.useEffect(()=>{if(c.trigger){const h=m=>{const g=m.target;g!=null&&g.contains(c.trigger)&&f()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[c.trigger,f]),l.jsx(Vr,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:h=>h.preventDefault(),onDismiss:f,children:l.jsxs(bl,{"data-state":c.stateAttribute,...u,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[l.jsx(rv,{children:r}),l.jsx(tv,{scope:n,isInside:!0,children:l.jsx(Eg,{id:c.contentId,role:"tooltip",children:o||r})})]})})});hu.displayName=Tn;var mu="TooltipArrow",gu=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=yo(n);return nv(mu,n).isInside?null:l.jsx(wl,{...o,...r,ref:t})});gu.displayName=mu;function ov(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function sv(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function iv(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function av(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s],c=t[i],u=a.x,f=a.y,h=c.x,m=c.y;f>r!=m>r&&n<(h-u)*(r-f)/(m-f)+u&&(o=!o)}return o}function cv(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),lv(t)}function lv(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var uv=lu,dv=uu,fv=du,hv=fu,pv=hu,mv=gu;const yu={tooltip:"tooltip__nUuSh",tooltipArrow:"tooltipArrow__W2w-f"},vu=x.createContext(null),gv=({container:e,children:t})=>l.jsx(vu.Provider,{value:e,children:t}),ni=()=>x.useContext(vu)??void 0,Pn=({children:e,open:t,displayName:n,tooltipContent:r,className:o,disabled:s,delayDuration:i=300,side:a="right",sideOffset:c=0})=>{const[u,f]=x.useState(!1),h=ni(),m=t!==void 0,S=s?!1:m?t:u,p=y=>{s||m||f(y)};return l.jsx(uv,{delayDuration:i,children:l.jsxs(dv,{open:S,onOpenChange:p,children:[l.jsx(fv,{asChild:!0,children:e}),l.jsx(hv,{container:h,children:l.jsxs(pv,{className:L(yu.tooltip,o),side:a,sideOffset:c,children:[n,r,l.jsx(mv,{className:yu.tooltipArrow})]})})]})})};Pn.displayName="Tooltip";const bu={truncatedText:"truncatedText__Y-jSd",overflowing:"overflowing__o8TC-"},wu=({children:e,className:t,tooltipSide:n="top",tooltipClassName:r})=>{const o=x.useRef(null),[s,i]=x.useState(!1);x.useEffect(()=>{const c=()=>{if(o.current){const u=o.current.scrollWidth>o.current.clientWidth;i(u)}};return c(),window.addEventListener("resize",c),()=>{window.removeEventListener("resize",c)}},[e]);const a=l.jsx("span",{ref:o,className:L(bu.truncatedText,s?bu.overflowing:"",t||""),children:e});return s?l.jsx(Pn,{tooltipContent:e,side:n,className:r,children:a}):a};wu.displayName="TextWithTooltip";const rr={SearchInput:"SearchInput__4OFyE",SearchIcon:"SearchIcon__YgnQy",ClearIcon:"ClearIcon__ukRVr",SearchInput__ClearIcon:"SearchInput__ClearIcon__uzVoc",SearchInput__SearchIcon:"SearchInput__SearchIcon__zoDG4"},ri=x.forwardRef(({className:e,placeholder:t="Type to search...",showClearButton:n=!1,showSearchIcon:r=!0,onClear:o,...s},i)=>{const a=L(rr.SearchInput,n&&rr.SearchInput__ClearIcon,r&&rr.SearchInput__SearchIcon,e),c=L(rr.SearchIcon),u=L(rr.ClearIcon);return l.jsxs("div",{className:a,children:[l.jsx(Hr,{ref:i,type:"text",placeholder:t,...s}),r&&l.jsx("svg",{className:c,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:"M13 13L10.6667 10.6667M12.3333 6.66667C12.3333 9.79628 9.79628 12.3333 6.66667 12.3333C3.53705 12.3333 1 9.79628 1 6.66667C1 3.53705 3.53705 1 6.66667 1C9.79628 1 12.3333 3.53705 12.3333 6.66667Z",stroke:"#A4A4A4",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})}),n&&l.jsx("svg",{className:u,width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:o,children:l.jsx("path",{d:"M7.33334 0.666748L0.666672 7.33341M0.666672 0.666748L7.33334 7.33341",stroke:"#818181",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})]})});ri.displayName="SearchInput";const Xt={SearchAutocomplete:"SearchAutocomplete__vR9Hk",AutocompleteItem:"AutocompleteItem__YIm7R","AutocompleteItem--canBeSelected":"AutocompleteItem--canBeSelected__jxk4z",AutocompleteHighlighter:"AutocompleteHighlighter__LAFTV",AutocompleteHighlighter__match:"AutocompleteHighlighter__match__Wy1o2",DropdownList:"DropdownList__-fHIk",AutocompleteItemDescription:"AutocompleteItemDescription__4QYN5"},Jt={DropdownList:"DropdownList__QTXXX",dropdownList:"DropdownList__QTXXX","DropdownList--closed":"DropdownList--closed__pdL1Z",dropdownListClosed:"DropdownList--closed__pdL1Z","DropdownList--open":"DropdownList--open__opzc9",dropdownListOpen:"DropdownList--open__opzc9","DropdownList--left":"DropdownList--left__xSwXR",dropdownListLeft:"DropdownList--left__xSwXR"},vo=x.forwardRef(({children:e,className:t,open:n,align:r="right",...o},s)=>{const i=L(Jt.DropdownList,{[Jt["DropdownList--open"]]:n,[Jt["DropdownList--closed"]]:!n,[Jt["DropdownList--left"]]:r==="left"},t);return l.jsx("div",{ref:s,className:i,...o,children:e})});vo.displayName="DropdownList";const or=x.forwardRef(({children:e,className:t,canBeSelected:n=!1,...r},o)=>{const s=L(Xt.AutocompleteItem,{[Xt["AutocompleteItem--canBeSelected"]]:n},t);return l.jsx("div",{ref:o,className:s,role:n?"option":void 0,...r,children:e})});or.displayName="AutocompleteItem";const yv=300,vv={query:"",suggestions:[],loading:!1,error:null},bv=({suggestionFetcher:e,canAdd:t})=>{const[n,r]=x.useState(vv);return x.useEffect(()=>{r(a=>({...a,loading:!0}));const s=async()=>{try{const a=await e(n.query);t&&!a.some(c=>c.value.toLowerCase()===n.query.toLowerCase())&&a.push({label:`Add "${n.query}"`,value:n.query,isNew:!0}),r(c=>({...c,suggestions:a,loading:!1}))}catch(a){r(c=>({...c,suggestions:[],error:a,loading:!1}))}},i=setTimeout(()=>{s()},yv);return()=>{clearTimeout(i)}},[n.query]),{...n,setQuery:s=>{r(i=>({...i,query:s}))}}},Cu=x.forwardRef(({text:e,query:t,className:n,...r},o)=>{const s=L(Xt.AutocompleteHighlighter,n),i=(a,c)=>{const u=a.toLowerCase().indexOf(c.toLowerCase());if(u===-1||c.length===0)return a;const f=a.slice(0,u),h=a.slice(u,u+c.length),m=a.slice(u+c.length);return l.jsxs(l.Fragment,{children:[f,l.jsx("span",{className:Xt.AutocompleteHighlighter__match,children:h}),i(m,c)]})};return l.jsx("div",{ref:o,className:s,...r,children:i(e,t)})});Cu.displayName="AutocompleteHighlighter";const wv=5,Su=x.forwardRef(({children:e,className:t,canAdd:n,maxSuggestionsShown:r=wv,searchInputProps:o,keepSelectedOption:s,suggestionFetcher:i,onAccept:a,...c},u)=>{const{query:f,setQuery:h,suggestions:m,loading:g}=bv({suggestionFetcher:i,canAdd:n}),[S,p]=x.useState(null),y=f.length>0,v=O=>{h(O.target.value)},w=O=>{a==null||a(O),s?(p(O),h(O.value)):h("")},E=()=>{a==null||a(null),p(null),h("")},T=L(Xt.SearchAutocomplete,t),P=m.slice(0,r),A=m.slice(r);return l.jsxs("div",{ref:u,className:T,...c,children:[l.jsx(ri,{...o,value:f,onChange:v,showClearButton:!!S,onClear:E}),e,l.jsxs(vo,{className:Xt.DropdownList,open:y&&!S,role:"listbox","aria-label":"Suggestions",children:[g?l.jsx(or,{children:"Loading..."}):P.map(O=>l.jsxs(or,{canBeSelected:!0,onClick:w.bind(null,O),children:[l.jsx(Cu,{text:O.label,query:f}),O.description&&l.jsx("span",{className:Xt.AutocompleteItemDescription,children:O.description})]},O.value)),!g&&A.length>0&&l.jsxs(or,{children:[A.length," more results"]}),y&&m.length===0&&!g&&l.jsx(or,{children:"No results found"})]})]})});Su.displayName="SearchAutocomplete";const Tt=e=>{let t=null,n=null;return x.Children.forEach(e.children,r=>{const o=r.props.condition;o===void 0?n=r:!t&&o===!0&&(t=r)}),l.jsx(l.Fragment,{children:t||n})};Tt.displayName="Show",Tt.When=({condition:e,children:t})=>l.jsx(l.Fragment,{children:e&&t}),Tt.Else=({render:e,children:t})=>l.jsx(l.Fragment,{children:e||t});var Cv=Symbol.for("react.lazy"),bo=d[" use ".trim().toString()];function Sv(e){return typeof e=="object"&&e!==null&&"then"in e}function Eu(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Cv&&"_payload"in e&&Sv(e._payload)}function Ev(e){const t=_v(e),n=d.forwardRef((r,o)=>{let{children:s,...i}=r;Eu(s)&&typeof bo=="function"&&(s=bo(s._payload));const a=d.Children.toArray(s),c=a.find(Pv);if(c){const u=c.props.children,f=a.map(h=>h===c?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:h);return l.jsx(t,{...i,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,f):null})}return l.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var xv=Ev("Slot");function _v(e){const t=d.forwardRef((n,r)=>{let{children:o,...s}=n;if(Eu(o)&&typeof bo=="function"&&(o=bo(o._payload)),d.isValidElement(o)){const i=Ov(o),a=Av(s,o.props);return o.type!==d.Fragment&&(a.ref=r?mn(r,i):i),d.cloneElement(o,a)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Tv=Symbol("radix.slottable");function Pv(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Tv}function Av(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const c=s(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Ov(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const xu={SkeletonListContainer:"SkeletonListContainer__MKJhE",Skeleton:"Skeleton__Ovpiw"},wo=x.forwardRef((e,t)=>{const{children:n,className:r,loading:o,height:s=48,width:i,borderRadius:a,style:c,...u}=e;if(!o&&n)return n;const f=x.isValidElement(n)?xv:"span";return l.jsx(f,{ref:t,"aria-hidden":!0,className:L(xu.Skeleton,r),style:{...c,width:i,minWidth:i,height:s,borderRadius:a},"data-inline-skeleton":x.isValidElement(n)?void 0:!0,tabIndex:-1,...u,children:n})});wo.displayName="Skeleton";const _u=e=>{const{numberOfItems:t,itemsGap:n=2,itemProps:r}=e,o=Array.from({length:t},(s,i)=>i+1);return l.jsx("div",{className:L(xu.SkeletonListContainer),style:{gap:n},children:o.map(s=>l.jsx(wo,{loading:!0,...r},s))})};_u.displayName="SkeletonList";const Tu={spinner:"spinner__qa7F6",rotate:"rotate__EqlXe","spinner-dark":"spinner-dark__9A9-q",spinnerDark:"spinner-dark__9A9-q","spinner-white":"spinner-white__gRbtI",spinnerWhite:"spinner-white__gRbtI","spinner-success":"spinner-success__otWGm",spinnerSuccess:"spinner-success__otWGm","spinner-danger":"spinner-danger__Bq5DM",spinnerDanger:"spinner-danger__Bq5DM","spinner-warning":"spinner-warning__U900K",spinnerWarning:"spinner-warning__U900K"},Pu=({className:e,color:t="white",size:n=80,thickness:r})=>{const o=L(Tu.spinner,Tu[`spinner-${t}`],e),s=r??Math.max(n/12,2);return l.jsx("span",{style:{width:n,height:n,borderWidth:s},className:o})};Pu.displayName="Spinner";const Co={switch:"switch__0b2av",disabled:"disabled__KpauE",checked:"checked__2-JV-",thumb:"thumb__fEuKD"},Au=x.forwardRef(({checked:e,defaultChecked:t=!1,onCheckedChange:n,disabled:r=!1,id:o,className:s,name:i,"aria-label":a,"aria-labelledby":c,"aria-describedby":u,...f},h)=>{const[m,g]=x.useState(t),S=e!==void 0,p=S?!!e:m,y=()=>{if(r)return;const w=!p;S||g(w),n==null||n(w)},v=w=>{(w.key===" "||w.key==="Enter")&&(w.preventDefault(),y())};return l.jsx("button",{ref:h,type:"button",role:"switch","aria-checked":p,"aria-label":a,"aria-labelledby":c,"aria-describedby":u,disabled:r,id:o,name:i,className:L(Co.switch,{[Co.checked]:p,[Co.disabled]:r}),onClick:y,onKeyDown:v,...f,children:l.jsx("span",{className:Co.thumb,"aria-hidden":"true"})})});Au.displayName="Switch";const Xe={tabsRoot:"tabs-root__ELmdj",tabsList:"tabs-list__rc10N",tabsListHorizontal:"tabs-list--horizontal__e1YW4",tabsListVertical:"tabs-list--vertical__huK05",tabsTrigger:"tabs-trigger__D8R4R",tabsTriggerDisabled:"tabs-trigger--disabled__ezDWc",tabsTriggerHorizontal:"tabs-trigger--horizontal__4jBFV",tabsTriggerActive:"tabs-trigger--active__S-Z-S",tabsTriggerVertical:"tabs-trigger--vertical__dNVIZ",tabsContent:"tabs-content__1d77o"},Ou=x.createContext(null),oi=()=>{const e=x.useContext(Ou);if(!e)throw new Error("Tabs components must be used within a Tabs provider");return e},Rv=({defaultValue:e,value:t,onValueChange:n,orientation:r="horizontal",className:o="",children:s})=>{const[i,a]=x.useState(e||""),c=t!==void 0,u=c?t:i,f=h=>{c||a(h),n==null||n(h)};return l.jsx(Ou.Provider,{value:{value:u,onValueChange:f,orientation:r},children:l.jsx("div",{className:L(Xe.tabsRoot,o),children:s})})},jv=({className:e="",children:t})=>{const{orientation:n}=oi(),r=x.useRef(null),o=s=>{var u;const i=(u=r.current)==null?void 0:u.querySelectorAll('[role="tab"]:not([disabled])');if(!i)return;const a=Array.from(i).findIndex(f=>f===document.activeElement);let c=a;switch(s.key){case"ArrowLeft":n==="horizontal"&&(s.preventDefault(),c=a>0?a-1:i.length-1);break;case"ArrowRight":n==="horizontal"&&(s.preventDefault(),c=a<i.length-1?a+1:0);break;case"ArrowUp":n==="vertical"&&(s.preventDefault(),c=a>0?a-1:i.length-1);break;case"ArrowDown":n==="vertical"&&(s.preventDefault(),c=a<i.length-1?a+1:0);break;case"Home":s.preventDefault(),c=0;break;case"End":s.preventDefault(),c=i.length-1;break}if(c!==a){const f=i[c];f.focus(),f.click()}};return l.jsx("div",{ref:r,role:"tablist","aria-orientation":n,onKeyDown:o,className:L(Xe.tabsList,n==="horizontal"?Xe.tabsListHorizontal:Xe.tabsListVertical,e),children:t})},Iv=({value:e,disabled:t=!1,className:n="",children:r})=>{const{value:o,onValueChange:s,orientation:i}=oi(),a=o===e,c=()=>{t||s(e)};return l.jsx("button",{role:"tab","aria-selected":a,"aria-controls":`content-${e}`,tabIndex:a?0:-1,disabled:t,onClick:c,className:L(Xe.tabsTrigger,i==="horizontal"?Xe.tabsTriggerHorizontal:Xe.tabsTriggerVertical,a&&Xe.tabsTriggerActive,t&&Xe.tabsTriggerDisabled,n),children:r})},Dv=({value:e,className:t="",children:n})=>{const{value:r}=oi();return r===e?l.jsx("div",{role:"tabpanel",id:`content-${e}`,"aria-labelledby":`trigger-${e}`,tabIndex:0,className:L(Xe.tabsContent,t),children:n}):null},Ru=({className:e,state:t="open",onClick:n})=>t==="open"?l.jsxs("svg",{className:e,onClick:n,xmlns:"http://www.w3.org/2000/svg",width:"1.5em",height:"1.5em",viewBox:"0 0 14 14",fill:"none",children:[l.jsx("path",{d:"M1.41174 7.41635C1.3323 7.29056 1.29257 7.22766 1.27034 7.13065C1.25364 7.05778 1.25364 6.94287 1.27034 6.87C1.29257 6.77299 1.3323 6.71009 1.41174 6.58431C2.06823 5.54482 4.02232 2.91699 7.00024 2.91699C9.97815 2.91699 11.9322 5.54482 12.5887 6.5843C12.6682 6.71009 12.7079 6.77299 12.7301 6.87C12.7468 6.94287 12.7468 7.05778 12.7301 7.13065C12.7079 7.22766 12.6682 7.29056 12.5887 7.41635C11.9322 8.45584 9.97815 11.0837 7.00024 11.0837C4.02232 11.0837 2.06823 8.45584 1.41174 7.41635Z",stroke:"#818181",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M7.00024 8.75033C7.96673 8.75033 8.75024 7.96682 8.75024 7.00033C8.75024 6.03383 7.96673 5.25033 7.00024 5.25033C6.03374 5.25033 5.25024 6.03383 5.25024 7.00033C5.25024 7.96682 6.03374 8.75033 7.00024 8.75033Z",stroke:"#818181",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"})]}):l.jsx("svg",{className:e,onClick:n,xmlns:"http://www.w3.org/2000/svg",width:"1.5em",height:"1.5em",viewBox:"0 0 14 14",fill:"none",children:l.jsx("path",{d:"M6.26672 2.97052C6.50379 2.93547 6.74835 2.91667 7.00024 2.91667C9.97816 2.91667 11.9323 5.54449 12.5887 6.58398C12.6682 6.70979 12.7079 6.7727 12.7302 6.86973C12.7469 6.94259 12.7468 7.05755 12.7301 7.13042C12.7079 7.22744 12.6679 7.29077 12.5879 7.41741C12.413 7.69425 12.1463 8.08331 11.793 8.50527M3.92252 3.9171C2.66131 4.77266 1.8051 5.9613 1.41231 6.58308C1.3325 6.70942 1.29259 6.7726 1.27035 6.86961C1.25364 6.94248 1.25363 7.05742 1.27033 7.13029C1.29257 7.22731 1.33229 7.29022 1.41174 7.41602C2.06823 8.45551 4.02232 11.0833 7.00024 11.0833C8.20098 11.0833 9.23526 10.6561 10.0851 10.078M1.75024 1.75L12.2502 12.25M5.76281 5.76256C5.44612 6.07925 5.25024 6.51675 5.25024 7C5.25024 7.9665 6.03374 8.75 7.00024 8.75C7.48349 8.75 7.92099 8.55413 8.23768 8.23744",stroke:"#818181",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"})}),ju={PasswordInput:"PasswordInput__GDJDN",eyeIcon:"eyeIcon__kDExG"},Lv=x.forwardRef((e,t)=>{const[n,r]=x.useState("password"),o=x.useCallback(()=>{r(s=>s==="password"?"text":"password")},[r]);return l.jsxs("div",{className:L(ju.PasswordInput,e.className),children:[l.jsx(Hr,{type:n,...e,ref:t}),l.jsx(Ru,{className:ju.eyeIcon,onClick:o,state:n==="password"?"open":"closed"})]})});function Nv(e){const t=Mv(e),n=d.forwardRef((r,o)=>{const{children:s,...i}=r,a=d.Children.toArray(s),c=a.find($v);if(c){const u=c.props.children,f=a.map(h=>h===c?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:h);return l.jsx(t,{...i,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,f):null})}return l.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Mv(e){const t=d.forwardRef((n,r)=>{const{children:o,...s}=n;if(d.isValidElement(o)){const i=Bv(o),a=Fv(s,o.props);return o.type!==d.Fragment&&(a.ref=r?mn(r,i):i),d.cloneElement(o,a)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var kv=Symbol("radix.slottable");function $v(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===kv}function Fv(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const c=s(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Bv(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var So="Dialog",[Iu]=Zn(So),[Uv,Be]=Iu(So),Du=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:i=!0}=e,a=d.useRef(null),c=d.useRef(null),[u,f]=no({prop:r,defaultProp:o??!1,onChange:s,caller:So});return l.jsx(Uv,{scope:t,triggerRef:a,contentRef:c,contentId:Kt(),titleId:Kt(),descriptionId:Kt(),open:u,onOpenChange:f,onOpenToggle:d.useCallback(()=>f(h=>!h),[f]),modal:i,children:n})};Du.displayName=So;var Lu="DialogTrigger",Wv=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Be(Lu,n),s=le(t,o.triggerRef);return l.jsx(ie.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ai(o.open),...r,ref:s,onClick:Z(e.onClick,o.onOpenToggle)})});Wv.displayName=Lu;var si="DialogPortal",[Hv,Nu]=Iu(si,{forceMount:void 0}),Mu=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=Be(si,t);return l.jsx(Hv,{scope:t,forceMount:n,children:d.Children.map(r,i=>l.jsx(_n,{present:n||s.open,children:l.jsx(Fs,{asChild:!0,container:o,children:i})}))})};Mu.displayName=si;var Eo="DialogOverlay",ku=d.forwardRef((e,t)=>{const n=Nu(Eo,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Be(Eo,e.__scopeDialog);return s.modal?l.jsx(_n,{present:r||s.open,children:l.jsx(zv,{...o,ref:t})}):null});ku.displayName=Eo;var Vv=Nv("DialogOverlay.RemoveScroll"),zv=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Be(Eo,n);return l.jsx(zs,{as:Vv,allowPinchZoom:!0,shards:[o.contentRef],children:l.jsx(ie.div,{"data-state":ai(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),en="DialogContent",$u=d.forwardRef((e,t)=>{const n=Nu(en,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Be(en,e.__scopeDialog);return l.jsx(_n,{present:r||s.open,children:s.modal?l.jsx(qv,{...o,ref:t}):l.jsx(Gv,{...o,ref:t})})});$u.displayName=en;var qv=d.forwardRef((e,t)=>{const n=Be(en,e.__scopeDialog),r=d.useRef(null),o=le(t,n.contentRef,r);return d.useEffect(()=>{const s=r.current;if(s)return xl(s)},[]),l.jsx(Fu,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Z(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:Z(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,a=i.button===0&&i.ctrlKey===!0;(i.button===2||a)&&s.preventDefault()}),onFocusOutside:Z(e.onFocusOutside,s=>s.preventDefault())})}),Gv=d.forwardRef((e,t)=>{const n=Be(en,e.__scopeDialog),r=d.useRef(!1),o=d.useRef(!1);return l.jsx(Fu,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var i,a;(i=e.onCloseAutoFocus)==null||i.call(e,s),s.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=s.target;((u=n.triggerRef.current)==null?void 0:u.contains(i))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),Fu=d.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...i}=e,a=Be(en,n),c=d.useRef(null),u=le(t,c);return Ic(),l.jsxs(l.Fragment,{children:[l.jsx(_s,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:l.jsx(Vr,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":ai(a.open),...i,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),l.jsxs(l.Fragment,{children:[l.jsx(Kv,{titleId:a.titleId}),l.jsx(Yv,{contentRef:c,descriptionId:a.descriptionId})]})]})}),ii="DialogTitle",Bu=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Be(ii,n);return l.jsx(ie.h2,{id:o.titleId,...r,ref:t})});Bu.displayName=ii;var Uu="DialogDescription",Wu=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Be(Uu,n);return l.jsx(ie.p,{id:o.descriptionId,...r,ref:t})});Wu.displayName=Uu;var Hu="DialogClose",Vu=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Be(Hu,n);return l.jsx(ie.button,{type:"button",...r,ref:t,onClick:Z(e.onClick,()=>o.onOpenChange(!1))})});Vu.displayName=Hu;function ai(e){return e?"open":"closed"}var zu="DialogTitleWarning",[k3,qu]=u1(zu,{contentName:en,titleName:ii,docsSlug:"dialog"}),Kv=({titleId:e})=>{const t=qu(zu),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
251
+ `)},cy=0,En=[];function ly(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),o=d.useState(cy++)[0],s=d.useState(Ol)[0],i=d.useRef(e);d.useEffect(function(){i.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var p=wr([e.lockRef.current],(e.shards||[]).map(kl),!0).filter(Boolean);return p.forEach(function(y){return y.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=d.useCallback(function(p,y){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!i.current.allowPinchZoom;var v=uo(p),w=n.current,E="deltaX"in p?p.deltaX:w[0]-v[0],T="deltaY"in p?p.deltaY:w[1]-v[1],P,A=p.target,R=Math.abs(E)>Math.abs(T)?"h":"v";if("touches"in p&&R==="h"&&A.type==="range")return!1;var N=window.getSelection(),D=N&&N.anchorNode,M=D?D===A||D.contains(A):!1;if(M)return!1;var U=Dl(R,A);if(!U)return!0;if(U?P=R:(P=R==="v"?"h":"v",U=Dl(R,A)),!U)return!1;if(!r.current&&"changedTouches"in p&&(E||T)&&(r.current=P),!P)return!0;var W=r.current||P;return sy(W,y,p,W==="h"?E:T)},[]),c=d.useCallback(function(p){var y=p;if(!(!En.length||En[En.length-1]!==s)){var v="deltaY"in y?Ml(y):uo(y),w=t.current.filter(function(P){return P.name===y.type&&(P.target===y.target||y.target===P.shadowParent)&&iy(P.delta,v)})[0];if(w&&w.should){y.cancelable&&y.preventDefault();return}if(!w){var E=(i.current.shards||[]).map(kl).filter(Boolean).filter(function(P){return P.contains(y.target)}),T=E.length>0?a(y,E[0]):!i.current.noIsolation;T&&y.cancelable&&y.preventDefault()}}},[]),l=d.useCallback(function(p,y,v,w){var E={name:p,delta:y,target:v,should:w,shadowParent:uy(v)};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(T){return T!==E})},1)},[]),f=d.useCallback(function(p){n.current=uo(p),r.current=void 0},[]),h=d.useCallback(function(p){l(p.type,Ml(p),p.target,a(p,e.lockRef.current))},[]),m=d.useCallback(function(p){l(p.type,uo(p),p.target,a(p,e.lockRef.current))},[]);d.useEffect(function(){return En.push(s),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:m}),document.addEventListener("wheel",c,Sn),document.addEventListener("touchmove",c,Sn),document.addEventListener("touchstart",f,Sn),function(){En=En.filter(function(p){return p!==s}),document.removeEventListener("wheel",c,Sn),document.removeEventListener("touchmove",c,Sn),document.removeEventListener("touchstart",f,Sn)}},[]);var g=e.removeScrollBar,S=e.inert;return d.createElement(d.Fragment,null,S?d.createElement(s,{styles:ay(o)}):null,g?d.createElement(Xg,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function uy(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const dy=Fg(Rl,ly);var zs=d.forwardRef(function(e,t){return d.createElement(co,qe({},e,{ref:t,sideCar:dy}))});zs.classNames=co.classNames;var fy=[" ","Enter","ArrowUp","ArrowDown"],hy=[" ","Enter"],Yt="Select",[fo,ho,py]=C1(Yt),[xn]=Xn(Yt,[py,no]),po=no(),[my,xt]=xn(Yt),[gy,yy]=xn(Yt),$l=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:i,defaultValue:a,onValueChange:c,dir:l,name:f,autoComplete:h,disabled:m,required:g,form:S}=e,p=po(t),[y,v]=d.useState(null),[w,E]=d.useState(null),[T,P]=d.useState(!1),A=E1(l),[R,N]=ro({prop:r,defaultProp:o??!1,onChange:s,caller:Yt}),[D,M]=ro({prop:i,defaultProp:a,onChange:c,caller:Yt}),U=d.useRef(null),W=y?S||!!y.closest("form"):!0,[H,z]=d.useState(new Set),oe=Array.from(H).map(q=>q.props.value).join(";");return u.jsx(bl,{...p,children:u.jsxs(my,{required:g,scope:t,trigger:y,onTriggerChange:v,valueNode:w,onValueNodeChange:E,valueNodeHasChildren:T,onValueNodeHasChildrenChange:P,contentId:Kt(),value:D,onValueChange:M,open:R,onOpenChange:N,dir:A,triggerPointerDownPosRef:U,disabled:m,children:[u.jsx(fo.Provider,{scope:t,children:u.jsx(gy,{scope:e.__scopeSelect,onNativeOptionAdd:d.useCallback(q=>{z(Y=>new Set(Y).add(q))},[]),onNativeOptionRemove:d.useCallback(q=>{z(Y=>{const F=new Set(Y);return F.delete(q),F})},[]),children:n})}),W?u.jsxs(ou,{"aria-hidden":!0,required:g,tabIndex:-1,name:f,autoComplete:h,value:D,onChange:q=>M(q.target.value),disabled:m,form:S,children:[D===void 0?u.jsx("option",{value:""}):null,Array.from(H)]},oe):null]})})};$l.displayName=Yt;var Fl="SelectTrigger",Bl=d.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=po(n),i=xt(Fl,n),a=i.disabled||r,c=le(t,i.onTriggerChange),l=ho(n),f=d.useRef("touch"),[h,m,g]=iu(p=>{const y=l().filter(E=>!E.disabled),v=y.find(E=>E.value===i.value),w=au(y,p,v);w!==void 0&&i.onValueChange(w.value)}),S=p=>{a||(i.onOpenChange(!0),g()),p&&(i.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return u.jsx(wl,{asChild:!0,...s,children:u.jsx(ie.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":su(i.value)?"":void 0,...o,ref:c,onClick:Z(o.onClick,p=>{p.currentTarget.focus(),f.current!=="mouse"&&S(p)}),onPointerDown:Z(o.onPointerDown,p=>{f.current=p.pointerType;const y=p.target;y.hasPointerCapture(p.pointerId)&&y.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(S(p),p.preventDefault())}),onKeyDown:Z(o.onKeyDown,p=>{const y=h.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&m(p.key),!(y&&p.key===" ")&&fy.includes(p.key)&&(S(),p.preventDefault())})})})});Bl.displayName=Fl;var Ul="SelectValue",Wl=d.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:i="",...a}=e,c=xt(Ul,n),{onValueNodeHasChildrenChange:l}=c,f=s!==void 0,h=le(t,c.onValueNodeChange);return ye(()=>{l(f)},[l,f]),u.jsx(ie.span,{...a,ref:h,style:{pointerEvents:"none"},children:su(c.value)?u.jsx(u.Fragment,{children:i}):s})});Wl.displayName=Ul;var vy="SelectIcon",Hl=d.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return u.jsx(ie.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});Hl.displayName=vy;var Zt="SelectContent",Vl=d.forwardRef((e,t)=>{const n=xt(Zt,e.__scopeSelect),[r,o]=d.useState();if(ye(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?gr.createPortal(u.jsx(zl,{scope:e.__scopeSelect,children:u.jsx(fo.Slot,{scope:e.__scopeSelect,children:u.jsx("div",{children:e.children})})}),s):null}return u.jsx(ql,{...e,ref:t})});Vl.displayName=Zt;var Fe=10,[zl,_t]=xn(Zt),by="SelectContentImpl",wy=gg("SelectContent.RemoveScroll"),ql=d.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:i,side:a,sideOffset:c,align:l,alignOffset:f,arrowPadding:h,collisionBoundary:m,collisionPadding:g,sticky:S,hideWhenDetached:p,avoidCollisions:y,...v}=e,w=xt(Zt,n),[E,T]=d.useState(null),[P,A]=d.useState(null),R=le(t,$=>T($)),[N,D]=d.useState(null),[M,U]=d.useState(null),W=ho(n),[H,z]=d.useState(!1),oe=d.useRef(!1);d.useEffect(()=>{if(E)return Tl(E)},[E]),Lc();const q=d.useCallback($=>{const[te,...fe]=W().map(J=>J.ref.current),[X]=fe.slice(-1),ne=document.activeElement;for(const J of $)if(J===ne||(J==null||J.scrollIntoView({block:"nearest"}),J===te&&P&&(P.scrollTop=0),J===X&&P&&(P.scrollTop=P.scrollHeight),J==null||J.focus(),document.activeElement!==ne))return},[W,P]),Y=d.useCallback(()=>q([N,E]),[q,N,E]);d.useEffect(()=>{H&&Y()},[H,Y]);const{onOpenChange:F,triggerPointerDownPosRef:se}=w;d.useEffect(()=>{if(E){let $={x:0,y:0};const te=X=>{var ne,J;$={x:Math.abs(Math.round(X.pageX)-(((ne=se.current)==null?void 0:ne.x)??0)),y:Math.abs(Math.round(X.pageY)-(((J=se.current)==null?void 0:J.y)??0))}},fe=X=>{$.x<=10&&$.y<=10?X.preventDefault():E.contains(X.target)||F(!1),document.removeEventListener("pointermove",te),se.current=null};return se.current!==null&&(document.addEventListener("pointermove",te),document.addEventListener("pointerup",fe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",te),document.removeEventListener("pointerup",fe,{capture:!0})}}},[E,F,se]),d.useEffect(()=>{const $=()=>F(!1);return window.addEventListener("blur",$),window.addEventListener("resize",$),()=>{window.removeEventListener("blur",$),window.removeEventListener("resize",$)}},[F]);const[ge,De]=iu($=>{const te=W().filter(ne=>!ne.disabled),fe=te.find(ne=>ne.ref.current===document.activeElement),X=au(te,$,fe);X&&setTimeout(()=>X.ref.current.focus())}),kt=d.useCallback(($,te,fe)=>{const X=!oe.current&&!fe;(w.value!==void 0&&w.value===te||X)&&(D($),X&&(oe.current=!0))},[w.value]),$t=d.useCallback(()=>E==null?void 0:E.focus(),[E]),rt=d.useCallback(($,te,fe)=>{const X=!oe.current&&!fe;(w.value!==void 0&&w.value===te||X)&&U($)},[w.value]),Ft=r==="popper"?qs:Gl,Ve=Ft===qs?{side:a,sideOffset:c,align:l,alignOffset:f,arrowPadding:h,collisionBoundary:m,collisionPadding:g,sticky:S,hideWhenDetached:p,avoidCollisions:y}:{};return u.jsx(zl,{scope:n,content:E,viewport:P,onViewportChange:A,itemRefCallback:kt,selectedItem:N,onItemLeave:$t,itemTextRefCallback:rt,focusSelectedItem:Y,selectedItemText:M,position:r,isPositioned:H,searchRef:ge,children:u.jsx(zs,{as:wy,allowPinchZoom:!0,children:u.jsx(_s,{asChild:!0,trapped:w.open,onMountAutoFocus:$=>{$.preventDefault()},onUnmountAutoFocus:Z(o,$=>{var te;(te=w.trigger)==null||te.focus({preventScroll:!0}),$.preventDefault()}),children:u.jsx(zr,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:$=>$.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:u.jsx(Ft,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:$=>$.preventDefault(),...v,...Ve,onPlaced:()=>z(!0),ref:R,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:Z(v.onKeyDown,$=>{const te=$.ctrlKey||$.altKey||$.metaKey;if($.key==="Tab"&&$.preventDefault(),!te&&$.key.length===1&&De($.key),["ArrowUp","ArrowDown","Home","End"].includes($.key)){let X=W().filter(ne=>!ne.disabled).map(ne=>ne.ref.current);if(["ArrowUp","End"].includes($.key)&&(X=X.slice().reverse()),["ArrowUp","ArrowDown"].includes($.key)){const ne=$.target,J=X.indexOf(ne);X=X.slice(J+1)}setTimeout(()=>q(X)),$.preventDefault()}})})})})})})});ql.displayName=by;var Cy="SelectItemAlignedPosition",Gl=d.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=xt(Zt,n),i=_t(Zt,n),[a,c]=d.useState(null),[l,f]=d.useState(null),h=le(t,R=>f(R)),m=ho(n),g=d.useRef(!1),S=d.useRef(!0),{viewport:p,selectedItem:y,selectedItemText:v,focusSelectedItem:w}=i,E=d.useCallback(()=>{if(s.trigger&&s.valueNode&&a&&l&&p&&y&&v){const R=s.trigger.getBoundingClientRect(),N=l.getBoundingClientRect(),D=s.valueNode.getBoundingClientRect(),M=v.getBoundingClientRect();if(s.dir!=="rtl"){const ne=M.left-N.left,J=D.left-ne,Ee=R.left-J,Le=R.width+Ee,ot=Math.max(Le,N.width),ze=window.innerWidth-Fe,Bt=Pc(J,[Fe,Math.max(Fe,ze-ot)]);a.style.minWidth=Le+"px",a.style.left=Bt+"px"}else{const ne=N.right-M.right,J=window.innerWidth-D.right-ne,Ee=window.innerWidth-R.right-J,Le=R.width+Ee,ot=Math.max(Le,N.width),ze=window.innerWidth-Fe,Bt=Pc(J,[Fe,Math.max(Fe,ze-ot)]);a.style.minWidth=Le+"px",a.style.right=Bt+"px"}const U=m(),W=window.innerHeight-Fe*2,H=p.scrollHeight,z=window.getComputedStyle(l),oe=parseInt(z.borderTopWidth,10),q=parseInt(z.paddingTop,10),Y=parseInt(z.borderBottomWidth,10),F=parseInt(z.paddingBottom,10),se=oe+q+H+F+Y,ge=Math.min(y.offsetHeight*5,se),De=window.getComputedStyle(p),kt=parseInt(De.paddingTop,10),$t=parseInt(De.paddingBottom,10),rt=R.top+R.height/2-Fe,Ft=W-rt,Ve=y.offsetHeight/2,$=y.offsetTop+Ve,te=oe+q+$,fe=se-te;if(te<=rt){const ne=U.length>0&&y===U[U.length-1].ref.current;a.style.bottom="0px";const J=l.clientHeight-p.offsetTop-p.offsetHeight,Ee=Math.max(Ft,Ve+(ne?$t:0)+J+Y),Le=te+Ee;a.style.height=Le+"px"}else{const ne=U.length>0&&y===U[0].ref.current;a.style.top="0px";const Ee=Math.max(rt,oe+p.offsetTop+(ne?kt:0)+Ve)+fe;a.style.height=Ee+"px",p.scrollTop=te-rt+p.offsetTop}a.style.margin=`${Fe}px 0`,a.style.minHeight=ge+"px",a.style.maxHeight=W+"px",r==null||r(),requestAnimationFrame(()=>g.current=!0)}},[m,s.trigger,s.valueNode,a,l,p,y,v,s.dir,r]);ye(()=>E(),[E]);const[T,P]=d.useState();ye(()=>{l&&P(window.getComputedStyle(l).zIndex)},[l]);const A=d.useCallback(R=>{R&&S.current===!0&&(E(),w==null||w(),S.current=!1)},[E,w]);return u.jsx(Ey,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:g,onScrollButtonChange:A,children:u.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:T},children:u.jsx(ie.div,{...o,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Gl.displayName=Cy;var Sy="SelectPopperPosition",qs=d.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Fe,...s}=e,i=po(n);return u.jsx(Cl,{...i,...s,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});qs.displayName=Sy;var[Ey,Gs]=xn(Zt,{}),Ks="SelectViewport",Kl=d.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=_t(Ks,n),i=Gs(Ks,n),a=le(t,s.onViewportChange),c=d.useRef(0);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),u.jsx(fo.Slot,{scope:n,children:u.jsx(ie.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Z(o.onScroll,l=>{const f=l.currentTarget,{contentWrapper:h,shouldExpandOnScrollRef:m}=i;if(m!=null&&m.current&&h){const g=Math.abs(c.current-f.scrollTop);if(g>0){const S=window.innerHeight-Fe*2,p=parseFloat(h.style.minHeight),y=parseFloat(h.style.height),v=Math.max(p,y);if(v<S){const w=v+g,E=Math.min(S,w),T=w-E;h.style.height=E+"px",h.style.bottom==="0px"&&(f.scrollTop=T>0?T:0,h.style.justifyContent="flex-end")}}}c.current=f.scrollTop})})})]})});Kl.displayName=Ks;var Ql="SelectGroup",[xy,_y]=xn(Ql),Yl=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Kt();return u.jsx(xy,{scope:n,id:o,children:u.jsx(ie.div,{role:"group","aria-labelledby":o,...r,ref:t})})});Yl.displayName=Ql;var Zl="SelectLabel",Ty=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=_y(Zl,n);return u.jsx(ie.div,{id:o.id,...r,ref:t})});Ty.displayName=Zl;var mo="SelectItem",[Py,Xl]=xn(mo),Jl=d.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...i}=e,a=xt(mo,n),c=_t(mo,n),l=a.value===r,[f,h]=d.useState(s??""),[m,g]=d.useState(!1),S=le(t,w=>{var E;return(E=c.itemRefCallback)==null?void 0:E.call(c,w,r,o)}),p=Kt(),y=d.useRef("touch"),v=()=>{o||(a.onValueChange(r),a.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return u.jsx(Py,{scope:n,value:r,disabled:o,textId:p,isSelected:l,onItemTextChange:d.useCallback(w=>{h(E=>E||((w==null?void 0:w.textContent)??"").trim())},[]),children:u.jsx(fo.ItemSlot,{scope:n,value:r,disabled:o,textValue:f,children:u.jsx(ie.div,{role:"option","aria-labelledby":p,"data-highlighted":m?"":void 0,"aria-selected":l&&m,"data-state":l?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:S,onFocus:Z(i.onFocus,()=>g(!0)),onBlur:Z(i.onBlur,()=>g(!1)),onClick:Z(i.onClick,()=>{y.current!=="mouse"&&v()}),onPointerUp:Z(i.onPointerUp,()=>{y.current==="mouse"&&v()}),onPointerDown:Z(i.onPointerDown,w=>{y.current=w.pointerType}),onPointerMove:Z(i.onPointerMove,w=>{var E;y.current=w.pointerType,o?(E=c.onItemLeave)==null||E.call(c):y.current==="mouse"&&w.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Z(i.onPointerLeave,w=>{var E;w.currentTarget===document.activeElement&&((E=c.onItemLeave)==null||E.call(c))}),onKeyDown:Z(i.onKeyDown,w=>{var T;((T=c.searchRef)==null?void 0:T.current)!==""&&w.key===" "||(hy.includes(w.key)&&v(),w.key===" "&&w.preventDefault())})})})})});Jl.displayName=mo;var tr="SelectItemText",eu=d.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,i=xt(tr,n),a=_t(tr,n),c=Xl(tr,n),l=yy(tr,n),[f,h]=d.useState(null),m=le(t,v=>h(v),c.onItemTextChange,v=>{var w;return(w=a.itemTextRefCallback)==null?void 0:w.call(a,v,c.value,c.disabled)}),g=f==null?void 0:f.textContent,S=d.useMemo(()=>u.jsx("option",{value:c.value,disabled:c.disabled,children:g},c.value),[c.disabled,c.value,g]),{onNativeOptionAdd:p,onNativeOptionRemove:y}=l;return ye(()=>(p(S),()=>y(S)),[p,y,S]),u.jsxs(u.Fragment,{children:[u.jsx(ie.span,{id:c.textId,...s,ref:m}),c.isSelected&&i.valueNode&&!i.valueNodeHasChildren?gr.createPortal(s.children,i.valueNode):null]})});eu.displayName=tr;var tu="SelectItemIndicator",nu=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Xl(tu,n).isSelected?u.jsx(ie.span,{"aria-hidden":!0,...r,ref:t}):null});nu.displayName=tu;var Qs="SelectScrollUpButton",Ay=d.forwardRef((e,t)=>{const n=_t(Qs,e.__scopeSelect),r=Gs(Qs,e.__scopeSelect),[o,s]=d.useState(!1),i=le(t,r.onScrollButtonChange);return ye(()=>{if(n.viewport&&n.isPositioned){let a=function(){const l=c.scrollTop>0;s(l)};const c=n.viewport;return a(),c.addEventListener("scroll",a),()=>c.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?u.jsx(ru,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:c}=n;a&&c&&(a.scrollTop=a.scrollTop-c.offsetHeight)}}):null});Ay.displayName=Qs;var Ys="SelectScrollDownButton",Ry=d.forwardRef((e,t)=>{const n=_t(Ys,e.__scopeSelect),r=Gs(Ys,e.__scopeSelect),[o,s]=d.useState(!1),i=le(t,r.onScrollButtonChange);return ye(()=>{if(n.viewport&&n.isPositioned){let a=function(){const l=c.scrollHeight-c.clientHeight,f=Math.ceil(c.scrollTop)<l;s(f)};const c=n.viewport;return a(),c.addEventListener("scroll",a),()=>c.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?u.jsx(ru,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:c}=n;a&&c&&(a.scrollTop=a.scrollTop+c.offsetHeight)}}):null});Ry.displayName=Ys;var ru=d.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=_t("SelectScrollButton",n),i=d.useRef(null),a=ho(n),c=d.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return d.useEffect(()=>()=>c(),[c]),ye(()=>{var f;const l=a().find(h=>h.ref.current===document.activeElement);(f=l==null?void 0:l.ref.current)==null||f.scrollIntoView({block:"nearest"})},[a]),u.jsx(ie.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:Z(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:Z(o.onPointerMove,()=>{var l;(l=s.onItemLeave)==null||l.call(s),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:Z(o.onPointerLeave,()=>{c()})})}),Oy="SelectSeparator",jy=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return u.jsx(ie.div,{"aria-hidden":!0,...r,ref:t})});jy.displayName=Oy;var Zs="SelectArrow",Iy=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=po(n),s=xt(Zs,n),i=_t(Zs,n);return s.open&&i.position==="popper"?u.jsx(Sl,{...o,...r,ref:t}):null});Iy.displayName=Zs;var Dy="SelectBubbleInput",ou=d.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=d.useRef(null),s=le(r,o),i=_g(t);return d.useEffect(()=>{const a=o.current;if(!a)return;const c=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(c,"value").set;if(i!==t&&f){const h=new Event("change",{bubbles:!0});f.call(a,t),a.dispatchEvent(h)}},[i,t]),u.jsx(ie.select,{...n,style:{...El,...n.style},ref:s,defaultValue:t})});ou.displayName=Dy;function su(e){return e===""||e===void 0}function iu(e){const t=Gt(e),n=d.useRef(""),r=d.useRef(0),o=d.useCallback(i=>{const a=n.current+i;t(a),function c(l){n.current=l,window.clearTimeout(r.current),l!==""&&(r.current=window.setTimeout(()=>c(""),1e3))}(a)},[t]),s=d.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return d.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function au(e,t,n){const o=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=Ly(e,Math.max(s,0));o.length===1&&(i=i.filter(l=>l!==n));const c=i.find(l=>l.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function Ly(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Ny=$l,My=Bl,ky=Wl,$y=Hl,Fy=Vl,By=Kl,Uy=Yl,Wy=Jl,Hy=eu,Vy=nu;const Ze={Container:"Container__xcHXp",Label:"Label__0cZB9",HelperText:"HelperText__m1nA9",Trigger:"Trigger__AyFUd",TriggerIcon:"TriggerIcon__aygFG",Content:"Content__llztG",Viewport:"Viewport__COtSL",Item:"Item__XN1-2",ItemIndicatorContainer:"ItemIndicatorContainer__EQH-X",ItemIndicator:"ItemIndicator__bySSc"},cu=x.forwardRef(({label:e,helperText:t,value:n,onValueChange:r,options:o,placeholder:s="Select",disabled:i=!1,className:a,name:c},l)=>u.jsxs("div",{className:L(Ze.Container,a),children:[e&&u.jsx("label",{className:Ze.Label,children:e}),u.jsxs(Ny,{value:n,onValueChange:r,disabled:i,name:c,children:[u.jsxs(My,{ref:l,className:Ze.Trigger,children:[u.jsx(ky,{placeholder:s}),u.jsx($y,{className:Ze.TriggerIcon,children:u.jsx(zy,{})})]}),u.jsx(Fy,{className:Ze.Content,position:"popper",sideOffset:4,children:u.jsx(By,{className:Ze.Viewport,children:u.jsx(Uy,{children:o.map(f=>u.jsxs(Wy,{value:f.value,disabled:f.disabled,className:Ze.Item,children:[u.jsx("div",{className:Ze.ItemIndicatorContainer,children:u.jsx(Vy,{className:Ze.ItemIndicator,children:u.jsx(qy,{})})}),u.jsx(Hy,{children:f.label})]},f.value))})})})]}),t&&u.jsx("div",{className:Ze.HelperText,children:t})]}));cu.displayName="Select";const zy=()=>u.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.52459 12.7746C6.8907 12.4085 7.4843 12.4085 7.85041 12.7746L10 14.9242L12.1496 12.7746C12.5157 12.4085 13.1093 12.4085 13.4754 12.7746C13.8415 13.1407 13.8415 13.7343 13.4754 14.1004L10.6629 16.9129C10.2968 17.279 9.7032 17.279 9.33709 16.9129L6.52459 14.1004C6.15847 13.7343 6.15847 13.1407 6.52459 12.7746Z",fill:"currentColor"}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.4754 7.22541C13.1093 7.59153 12.5157 7.59153 12.1496 7.22541L10 5.07583L7.85041 7.22541C7.4843 7.59153 6.8907 7.59153 6.52459 7.22541C6.15847 6.8593 6.15847 6.2657 6.52459 5.89959L9.33709 3.08709C9.7032 2.72097 10.2968 2.72097 10.6629 3.08709L13.4754 5.89959C13.8415 6.2657 13.8415 6.8593 13.4754 7.22541Z",fill:"currentColor"})]}),qy=()=>u.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M13.3333 4L6 11.3333L2.66667 8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),Gy={TextArea:"TextArea__pa-A0"},lu=x.forwardRef(({children:e,className:t,...n},r)=>{const o=L(Gy.TextArea,t);return u.jsx("textarea",{ref:r,className:o,...n,children:e})});lu.displayName="TextArea";function Ky(e,t){return d.useReducer((n,r)=>t[n][r]??n,e)}var _n=e=>{const{present:t,children:n}=e,r=Qy(t),o=typeof n=="function"?n({present:r.isPresent}):d.Children.only(n),s=le(r.ref,Yy(o));return typeof n=="function"||r.isPresent?d.cloneElement(o,{ref:s}):null};_n.displayName="Presence";function Qy(e){const[t,n]=d.useState(),r=d.useRef(null),o=d.useRef(e),s=d.useRef("none"),i=e?"mounted":"unmounted",[a,c]=Ky(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const l=go(r.current);s.current=a==="mounted"?l:"none"},[a]),ye(()=>{const l=r.current,f=o.current;if(f!==e){const m=s.current,g=go(l);e?c("MOUNT"):g==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(f&&m!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ye(()=>{if(t){let l;const f=t.ownerDocument.defaultView??window,h=g=>{const p=go(r.current).includes(CSS.escape(g.animationName));if(g.target===t&&p&&(c("ANIMATION_END"),!o.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",l=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},m=g=>{g.target===t&&(s.current=go(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{f.clearTimeout(l),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:d.useCallback(l=>{r.current=l?getComputedStyle(l):null,n(l)},[])}}function go(e){return(e==null?void 0:e.animationName)||"none"}function Yy(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Zy=Symbol("radix.slottable");function Xy(e){const t=({children:n})=>u.jsx(u.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Zy,t}var[yo]=Xn("Tooltip",[no]),vo=no(),uu="TooltipProvider",Jy=700,Xs="tooltip.open",[ev,Js]=yo(uu),du=e=>{const{__scopeTooltip:t,delayDuration:n=Jy,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,i=d.useRef(!0),a=d.useRef(!1),c=d.useRef(0);return d.useEffect(()=>{const l=c.current;return()=>window.clearTimeout(l)},[]),u.jsx(ev,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:d.useCallback(()=>{window.clearTimeout(c.current),i.current=!1},[]),onClose:d.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:d.useCallback(l=>{a.current=l},[]),disableHoverableContent:o,children:s})};du.displayName=uu;var nr="Tooltip",[tv,rr]=yo(nr),fu=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:i,delayDuration:a}=e,c=Js(nr,e.__scopeTooltip),l=vo(t),[f,h]=d.useState(null),m=Kt(),g=d.useRef(0),S=i??c.disableHoverableContent,p=a??c.delayDuration,y=d.useRef(!1),[v,w]=ro({prop:r,defaultProp:o??!1,onChange:R=>{R?(c.onOpen(),document.dispatchEvent(new CustomEvent(Xs))):c.onClose(),s==null||s(R)},caller:nr}),E=d.useMemo(()=>v?y.current?"delayed-open":"instant-open":"closed",[v]),T=d.useCallback(()=>{window.clearTimeout(g.current),g.current=0,y.current=!1,w(!0)},[w]),P=d.useCallback(()=>{window.clearTimeout(g.current),g.current=0,w(!1)},[w]),A=d.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{y.current=!0,w(!0),g.current=0},p)},[p,w]);return d.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),u.jsx(bl,{...l,children:u.jsx(tv,{scope:t,contentId:m,open:v,stateAttribute:E,trigger:f,onTriggerChange:h,onTriggerEnter:d.useCallback(()=>{c.isOpenDelayedRef.current?A():T()},[c.isOpenDelayedRef,A,T]),onTriggerLeave:d.useCallback(()=>{S?P():(window.clearTimeout(g.current),g.current=0)},[P,S]),onOpen:T,onClose:P,disableHoverableContent:S,children:n})})};fu.displayName=nr;var ei="TooltipTrigger",hu=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=rr(ei,n),s=Js(ei,n),i=vo(n),a=d.useRef(null),c=le(t,a,o.onTriggerChange),l=d.useRef(!1),f=d.useRef(!1),h=d.useCallback(()=>l.current=!1,[]);return d.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),u.jsx(wl,{asChild:!0,...i,children:u.jsx(ie.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:Z(e.onPointerMove,m=>{m.pointerType!=="touch"&&!f.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:Z(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:Z(e.onPointerDown,()=>{o.open&&o.onClose(),l.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:Z(e.onFocus,()=>{l.current||o.onOpen()}),onBlur:Z(e.onBlur,o.onClose),onClick:Z(e.onClick,o.onClose)})})});hu.displayName=ei;var ti="TooltipPortal",[nv,rv]=yo(ti,{forceMount:void 0}),pu=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,s=rr(ti,t);return u.jsx(nv,{scope:t,forceMount:n,children:u.jsx(_n,{present:n||s.open,children:u.jsx(Fs,{asChild:!0,container:o,children:r})})})};pu.displayName=ti;var Tn="TooltipContent",mu=d.forwardRef((e,t)=>{const n=rv(Tn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,i=rr(Tn,e.__scopeTooltip);return u.jsx(_n,{present:r||i.open,children:i.disableHoverableContent?u.jsx(gu,{side:o,...s,ref:t}):u.jsx(ov,{side:o,...s,ref:t})})}),ov=d.forwardRef((e,t)=>{const n=rr(Tn,e.__scopeTooltip),r=Js(Tn,e.__scopeTooltip),o=d.useRef(null),s=le(t,o),[i,a]=d.useState(null),{trigger:c,onClose:l}=n,f=o.current,{onPointerInTransitChange:h}=r,m=d.useCallback(()=>{a(null),h(!1)},[h]),g=d.useCallback((S,p)=>{const y=S.currentTarget,v={x:S.clientX,y:S.clientY},w=cv(v,y.getBoundingClientRect()),E=lv(v,w),T=uv(p.getBoundingClientRect()),P=fv([...E,...T]);a(P),h(!0)},[h]);return d.useEffect(()=>()=>m(),[m]),d.useEffect(()=>{if(c&&f){const S=y=>g(y,f),p=y=>g(y,c);return c.addEventListener("pointerleave",S),f.addEventListener("pointerleave",p),()=>{c.removeEventListener("pointerleave",S),f.removeEventListener("pointerleave",p)}}},[c,f,g,m]),d.useEffect(()=>{if(i){const S=p=>{const y=p.target,v={x:p.clientX,y:p.clientY},w=(c==null?void 0:c.contains(y))||(f==null?void 0:f.contains(y)),E=!dv(v,i);w?m():E&&(m(),l())};return document.addEventListener("pointermove",S),()=>document.removeEventListener("pointermove",S)}},[c,f,i,l,m]),u.jsx(gu,{...e,ref:s})}),[sv,iv]=yo(nr,{isInside:!1}),av=Xy("TooltipContent"),gu=d.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...a}=e,c=rr(Tn,n),l=vo(n),{onClose:f}=c;return d.useEffect(()=>(document.addEventListener(Xs,f),()=>document.removeEventListener(Xs,f)),[f]),d.useEffect(()=>{if(c.trigger){const h=m=>{const g=m.target;g!=null&&g.contains(c.trigger)&&f()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[c.trigger,f]),u.jsx(zr,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:h=>h.preventDefault(),onDismiss:f,children:u.jsxs(Cl,{"data-state":c.stateAttribute,...l,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(av,{children:r}),u.jsx(sv,{scope:n,isInside:!0,children:u.jsx(Pg,{id:c.contentId,role:"tooltip",children:o||r})})]})})});mu.displayName=Tn;var yu="TooltipArrow",vu=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=vo(n);return iv(yu,n).isInside?null:u.jsx(Sl,{...o,...r,ref:t})});vu.displayName=yu;function cv(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function lv(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function uv(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function dv(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s],c=t[i],l=a.x,f=a.y,h=c.x,m=c.y;f>r!=m>r&&n<(h-l)*(r-f)/(m-f)+l&&(o=!o)}return o}function fv(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),hv(t)}function hv(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var pv=du,mv=fu,gv=hu,yv=pu,vv=mu,bv=vu;const bu={tooltip:"tooltip__nUuSh",tooltipArrow:"tooltipArrow__W2w-f"},wu=x.createContext(null),Cu=({container:e,children:t})=>u.jsx(wu.Provider,{value:e,children:t}),ni=()=>x.useContext(wu)??void 0,Pn=({children:e,open:t,displayName:n,tooltipContent:r,className:o,disabled:s,delayDuration:i=300,side:a="right",sideOffset:c=0})=>{const[l,f]=x.useState(!1),h=ni(),m=t!==void 0,S=s?!1:m?t:l,p=y=>{s||m||f(y)};return u.jsx(pv,{delayDuration:i,children:u.jsxs(mv,{open:S,onOpenChange:p,children:[u.jsx(gv,{asChild:!0,children:e}),u.jsx(yv,{container:h,children:u.jsxs(vv,{className:L(bu.tooltip,o),side:a,sideOffset:c,children:[n,r,u.jsx(bv,{className:bu.tooltipArrow})]})})]})})};Pn.displayName="Tooltip";const Su={truncatedText:"truncatedText__Y-jSd",overflowing:"overflowing__o8TC-"},Eu=({children:e,className:t,tooltipSide:n="top",tooltipClassName:r})=>{const o=x.useRef(null),[s,i]=x.useState(!1);x.useEffect(()=>{const c=()=>{if(o.current){const l=o.current.scrollWidth>o.current.clientWidth;i(l)}};return c(),window.addEventListener("resize",c),()=>{window.removeEventListener("resize",c)}},[e]);const a=u.jsx("span",{ref:o,className:L(Su.truncatedText,s?Su.overflowing:"",t||""),children:e});return s?u.jsx(Pn,{tooltipContent:e,side:n,className:r,children:a}):a};Eu.displayName="TextWithTooltip";const or={SearchInput:"SearchInput__4OFyE",SearchIcon:"SearchIcon__YgnQy",ClearIcon:"ClearIcon__ukRVr",SearchInput__ClearIcon:"SearchInput__ClearIcon__uzVoc",SearchInput__SearchIcon:"SearchInput__SearchIcon__zoDG4"},ri=x.forwardRef(({className:e,placeholder:t="Type to search...",showClearButton:n=!1,showSearchIcon:r=!0,onClear:o,...s},i)=>{const a=L(or.SearchInput,n&&or.SearchInput__ClearIcon,r&&or.SearchInput__SearchIcon,e),c=L(or.SearchIcon),l=L(or.ClearIcon);return u.jsxs("div",{className:a,children:[u.jsx(Vr,{ref:i,type:"text",placeholder:t,...s}),r&&u.jsx("svg",{className:c,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M13 13L10.6667 10.6667M12.3333 6.66667C12.3333 9.79628 9.79628 12.3333 6.66667 12.3333C3.53705 12.3333 1 9.79628 1 6.66667C1 3.53705 3.53705 1 6.66667 1C9.79628 1 12.3333 3.53705 12.3333 6.66667Z",stroke:"#A4A4A4",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})}),n&&u.jsx("svg",{className:l,width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:o,children:u.jsx("path",{d:"M7.33334 0.666748L0.666672 7.33341M0.666672 0.666748L7.33334 7.33341",stroke:"#818181",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})]})});ri.displayName="SearchInput";const Xt={SearchAutocomplete:"SearchAutocomplete__vR9Hk",AutocompleteItem:"AutocompleteItem__YIm7R","AutocompleteItem--canBeSelected":"AutocompleteItem--canBeSelected__jxk4z",AutocompleteHighlighter:"AutocompleteHighlighter__LAFTV",AutocompleteHighlighter__match:"AutocompleteHighlighter__match__Wy1o2",DropdownList:"DropdownList__-fHIk",AutocompleteItemDescription:"AutocompleteItemDescription__4QYN5"},Jt={DropdownList:"DropdownList__QTXXX",dropdownList:"DropdownList__QTXXX","DropdownList--closed":"DropdownList--closed__pdL1Z",dropdownListClosed:"DropdownList--closed__pdL1Z","DropdownList--open":"DropdownList--open__opzc9",dropdownListOpen:"DropdownList--open__opzc9","DropdownList--left":"DropdownList--left__xSwXR",dropdownListLeft:"DropdownList--left__xSwXR"},bo=x.forwardRef(({children:e,className:t,open:n,align:r="right",...o},s)=>{const i=L(Jt.DropdownList,{[Jt["DropdownList--open"]]:n,[Jt["DropdownList--closed"]]:!n,[Jt["DropdownList--left"]]:r==="left"},t);return u.jsx("div",{ref:s,className:i,...o,children:e})});bo.displayName="DropdownList";const sr=x.forwardRef(({children:e,className:t,canBeSelected:n=!1,...r},o)=>{const s=L(Xt.AutocompleteItem,{[Xt["AutocompleteItem--canBeSelected"]]:n},t);return u.jsx("div",{ref:o,className:s,role:n?"option":void 0,...r,children:e})});sr.displayName="AutocompleteItem";const wv=300,Cv={query:"",suggestions:[],loading:!1,error:null},Sv=({suggestionFetcher:e,canAdd:t})=>{const[n,r]=x.useState(Cv);return x.useEffect(()=>{r(a=>({...a,loading:!0}));const s=async()=>{try{const a=await e(n.query);t&&!a.some(c=>c.value.toLowerCase()===n.query.toLowerCase())&&a.push({label:`Add "${n.query}"`,value:n.query,isNew:!0}),r(c=>({...c,suggestions:a,loading:!1}))}catch(a){r(c=>({...c,suggestions:[],error:a,loading:!1}))}},i=setTimeout(()=>{s()},wv);return()=>{clearTimeout(i)}},[n.query]),{...n,setQuery:s=>{r(i=>({...i,query:s}))}}},xu=x.forwardRef(({text:e,query:t,className:n,...r},o)=>{const s=L(Xt.AutocompleteHighlighter,n),i=(a,c)=>{const l=a.toLowerCase().indexOf(c.toLowerCase());if(l===-1||c.length===0)return a;const f=a.slice(0,l),h=a.slice(l,l+c.length),m=a.slice(l+c.length);return u.jsxs(u.Fragment,{children:[f,u.jsx("span",{className:Xt.AutocompleteHighlighter__match,children:h}),i(m,c)]})};return u.jsx("div",{ref:o,className:s,...r,children:i(e,t)})});xu.displayName="AutocompleteHighlighter";const Ev=5,_u=x.forwardRef(({children:e,className:t,canAdd:n,maxSuggestionsShown:r=Ev,searchInputProps:o,keepSelectedOption:s,suggestionFetcher:i,onAccept:a,...c},l)=>{const{query:f,setQuery:h,suggestions:m,loading:g}=Sv({suggestionFetcher:i,canAdd:n}),[S,p]=x.useState(null),y=f.length>0,v=R=>{h(R.target.value)},w=R=>{a==null||a(R),s?(p(R),h(R.value)):h("")},E=()=>{a==null||a(null),p(null),h("")},T=L(Xt.SearchAutocomplete,t),P=m.slice(0,r),A=m.slice(r);return u.jsxs("div",{ref:l,className:T,...c,children:[u.jsx(ri,{...o,value:f,onChange:v,showClearButton:!!S,onClear:E}),e,u.jsxs(bo,{className:Xt.DropdownList,open:y&&!S,role:"listbox","aria-label":"Suggestions",children:[g?u.jsx(sr,{children:"Loading..."}):P.map(R=>u.jsxs(sr,{canBeSelected:!0,onClick:w.bind(null,R),children:[u.jsx(xu,{text:R.label,query:f}),R.description&&u.jsx("span",{className:Xt.AutocompleteItemDescription,children:R.description})]},R.value)),!g&&A.length>0&&u.jsxs(sr,{children:[A.length," more results"]}),y&&m.length===0&&!g&&u.jsx(sr,{children:"No results found"})]})]})});_u.displayName="SearchAutocomplete";const Tt=e=>{let t=null,n=null;return x.Children.forEach(e.children,r=>{const o=r.props.condition;o===void 0?n=r:!t&&o===!0&&(t=r)}),u.jsx(u.Fragment,{children:t||n})};Tt.displayName="Show",Tt.When=({condition:e,children:t})=>u.jsx(u.Fragment,{children:e&&t}),Tt.Else=({render:e,children:t})=>u.jsx(u.Fragment,{children:e||t});var xv=Symbol.for("react.lazy"),wo=d[" use ".trim().toString()];function _v(e){return typeof e=="object"&&e!==null&&"then"in e}function Tu(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===xv&&"_payload"in e&&_v(e._payload)}function Tv(e){const t=Av(e),n=d.forwardRef((r,o)=>{let{children:s,...i}=r;Tu(s)&&typeof wo=="function"&&(s=wo(s._payload));const a=d.Children.toArray(s),c=a.find(Ov);if(c){const l=c.props.children,f=a.map(h=>h===c?d.Children.count(l)>1?d.Children.only(null):d.isValidElement(l)?l.props.children:null:h);return u.jsx(t,{...i,ref:o,children:d.isValidElement(l)?d.cloneElement(l,void 0,f):null})}return u.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var Pv=Tv("Slot");function Av(e){const t=d.forwardRef((n,r)=>{let{children:o,...s}=n;if(Tu(o)&&typeof wo=="function"&&(o=wo(o._payload)),d.isValidElement(o)){const i=Iv(o),a=jv(s,o.props);return o.type!==d.Fragment&&(a.ref=r?mn(r,i):i),d.cloneElement(o,a)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Rv=Symbol("radix.slottable");function Ov(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Rv}function jv(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const c=s(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Iv(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const Pu={SkeletonListContainer:"SkeletonListContainer__MKJhE",Skeleton:"Skeleton__Ovpiw"},Co=x.forwardRef((e,t)=>{const{children:n,className:r,loading:o,height:s=48,width:i,borderRadius:a,style:c,...l}=e;if(!o&&n)return n;const f=x.isValidElement(n)?Pv:"span";return u.jsx(f,{ref:t,"aria-hidden":!0,className:L(Pu.Skeleton,r),style:{...c,width:i,minWidth:i,height:s,borderRadius:a},"data-inline-skeleton":x.isValidElement(n)?void 0:!0,tabIndex:-1,...l,children:n})});Co.displayName="Skeleton";const Au=e=>{const{numberOfItems:t,itemsGap:n=2,itemProps:r}=e,o=Array.from({length:t},(s,i)=>i+1);return u.jsx("div",{className:L(Pu.SkeletonListContainer),style:{gap:n},children:o.map(s=>u.jsx(Co,{loading:!0,...r},s))})};Au.displayName="SkeletonList";const Ru={spinner:"spinner__qa7F6",rotate:"rotate__EqlXe","spinner-dark":"spinner-dark__9A9-q",spinnerDark:"spinner-dark__9A9-q","spinner-white":"spinner-white__gRbtI",spinnerWhite:"spinner-white__gRbtI","spinner-success":"spinner-success__otWGm",spinnerSuccess:"spinner-success__otWGm","spinner-danger":"spinner-danger__Bq5DM",spinnerDanger:"spinner-danger__Bq5DM","spinner-warning":"spinner-warning__U900K",spinnerWarning:"spinner-warning__U900K"},Ou=({className:e,color:t="white",size:n=80,thickness:r})=>{const o=L(Ru.spinner,Ru[`spinner-${t}`],e),s=r??Math.max(n/12,2);return u.jsx("span",{style:{width:n,height:n,borderWidth:s},className:o})};Ou.displayName="Spinner";const So={switch:"switch__0b2av",disabled:"disabled__KpauE",checked:"checked__2-JV-",thumb:"thumb__fEuKD"},ju=x.forwardRef(({checked:e,defaultChecked:t=!1,onCheckedChange:n,disabled:r=!1,id:o,className:s,name:i,"aria-label":a,"aria-labelledby":c,"aria-describedby":l,...f},h)=>{const[m,g]=x.useState(t),S=e!==void 0,p=S?!!e:m,y=()=>{if(r)return;const w=!p;S||g(w),n==null||n(w)},v=w=>{(w.key===" "||w.key==="Enter")&&(w.preventDefault(),y())};return u.jsx("button",{ref:h,type:"button",role:"switch","aria-checked":p,"aria-label":a,"aria-labelledby":c,"aria-describedby":l,disabled:r,id:o,name:i,className:L(So.switch,{[So.checked]:p,[So.disabled]:r}),onClick:y,onKeyDown:v,...f,children:u.jsx("span",{className:So.thumb,"aria-hidden":"true"})})});ju.displayName="Switch";const Xe={tabsRoot:"tabs-root__ELmdj",tabsList:"tabs-list__rc10N",tabsListHorizontal:"tabs-list--horizontal__e1YW4",tabsListVertical:"tabs-list--vertical__huK05",tabsTrigger:"tabs-trigger__D8R4R",tabsTriggerDisabled:"tabs-trigger--disabled__ezDWc",tabsTriggerHorizontal:"tabs-trigger--horizontal__4jBFV",tabsTriggerActive:"tabs-trigger--active__S-Z-S",tabsTriggerVertical:"tabs-trigger--vertical__dNVIZ",tabsContent:"tabs-content__1d77o"},Iu=x.createContext(null),oi=()=>{const e=x.useContext(Iu);if(!e)throw new Error("Tabs components must be used within a Tabs provider");return e},Dv=({defaultValue:e,value:t,onValueChange:n,orientation:r="horizontal",className:o="",children:s})=>{const[i,a]=x.useState(e||""),c=t!==void 0,l=c?t:i,f=h=>{c||a(h),n==null||n(h)};return u.jsx(Iu.Provider,{value:{value:l,onValueChange:f,orientation:r},children:u.jsx("div",{className:L(Xe.tabsRoot,o),children:s})})},Lv=({className:e="",children:t})=>{const{orientation:n}=oi(),r=x.useRef(null),o=s=>{var l;const i=(l=r.current)==null?void 0:l.querySelectorAll('[role="tab"]:not([disabled])');if(!i)return;const a=Array.from(i).findIndex(f=>f===document.activeElement);let c=a;switch(s.key){case"ArrowLeft":n==="horizontal"&&(s.preventDefault(),c=a>0?a-1:i.length-1);break;case"ArrowRight":n==="horizontal"&&(s.preventDefault(),c=a<i.length-1?a+1:0);break;case"ArrowUp":n==="vertical"&&(s.preventDefault(),c=a>0?a-1:i.length-1);break;case"ArrowDown":n==="vertical"&&(s.preventDefault(),c=a<i.length-1?a+1:0);break;case"Home":s.preventDefault(),c=0;break;case"End":s.preventDefault(),c=i.length-1;break}if(c!==a){const f=i[c];f.focus(),f.click()}};return u.jsx("div",{ref:r,role:"tablist","aria-orientation":n,onKeyDown:o,className:L(Xe.tabsList,n==="horizontal"?Xe.tabsListHorizontal:Xe.tabsListVertical,e),children:t})},Nv=({value:e,disabled:t=!1,className:n="",children:r})=>{const{value:o,onValueChange:s,orientation:i}=oi(),a=o===e,c=()=>{t||s(e)};return u.jsx("button",{role:"tab","aria-selected":a,"aria-controls":`content-${e}`,tabIndex:a?0:-1,disabled:t,onClick:c,className:L(Xe.tabsTrigger,i==="horizontal"?Xe.tabsTriggerHorizontal:Xe.tabsTriggerVertical,a&&Xe.tabsTriggerActive,t&&Xe.tabsTriggerDisabled,n),children:r})},Mv=({value:e,className:t="",children:n})=>{const{value:r}=oi();return r===e?u.jsx("div",{role:"tabpanel",id:`content-${e}`,"aria-labelledby":`trigger-${e}`,tabIndex:0,className:L(Xe.tabsContent,t),children:n}):null},Du=({className:e,state:t="open",onClick:n})=>t==="open"?u.jsxs("svg",{className:e,onClick:n,xmlns:"http://www.w3.org/2000/svg",width:"1.5em",height:"1.5em",viewBox:"0 0 14 14",fill:"none",children:[u.jsx("path",{d:"M1.41174 7.41635C1.3323 7.29056 1.29257 7.22766 1.27034 7.13065C1.25364 7.05778 1.25364 6.94287 1.27034 6.87C1.29257 6.77299 1.3323 6.71009 1.41174 6.58431C2.06823 5.54482 4.02232 2.91699 7.00024 2.91699C9.97815 2.91699 11.9322 5.54482 12.5887 6.5843C12.6682 6.71009 12.7079 6.77299 12.7301 6.87C12.7468 6.94287 12.7468 7.05778 12.7301 7.13065C12.7079 7.22766 12.6682 7.29056 12.5887 7.41635C11.9322 8.45584 9.97815 11.0837 7.00024 11.0837C4.02232 11.0837 2.06823 8.45584 1.41174 7.41635Z",stroke:"#818181",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M7.00024 8.75033C7.96673 8.75033 8.75024 7.96682 8.75024 7.00033C8.75024 6.03383 7.96673 5.25033 7.00024 5.25033C6.03374 5.25033 5.25024 6.03383 5.25024 7.00033C5.25024 7.96682 6.03374 8.75033 7.00024 8.75033Z",stroke:"#818181",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"})]}):u.jsx("svg",{className:e,onClick:n,xmlns:"http://www.w3.org/2000/svg",width:"1.5em",height:"1.5em",viewBox:"0 0 14 14",fill:"none",children:u.jsx("path",{d:"M6.26672 2.97052C6.50379 2.93547 6.74835 2.91667 7.00024 2.91667C9.97816 2.91667 11.9323 5.54449 12.5887 6.58398C12.6682 6.70979 12.7079 6.7727 12.7302 6.86973C12.7469 6.94259 12.7468 7.05755 12.7301 7.13042C12.7079 7.22744 12.6679 7.29077 12.5879 7.41741C12.413 7.69425 12.1463 8.08331 11.793 8.50527M3.92252 3.9171C2.66131 4.77266 1.8051 5.9613 1.41231 6.58308C1.3325 6.70942 1.29259 6.7726 1.27035 6.86961C1.25364 6.94248 1.25363 7.05742 1.27033 7.13029C1.29257 7.22731 1.33229 7.29022 1.41174 7.41602C2.06823 8.45551 4.02232 11.0833 7.00024 11.0833C8.20098 11.0833 9.23526 10.6561 10.0851 10.078M1.75024 1.75L12.2502 12.25M5.76281 5.76256C5.44612 6.07925 5.25024 6.51675 5.25024 7C5.25024 7.9665 6.03374 8.75 7.00024 8.75C7.48349 8.75 7.92099 8.55413 8.23768 8.23744",stroke:"#818181",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"})}),Lu={PasswordInput:"PasswordInput__GDJDN",eyeIcon:"eyeIcon__kDExG"},kv=x.forwardRef((e,t)=>{const[n,r]=x.useState("password"),o=x.useCallback(()=>{r(s=>s==="password"?"text":"password")},[r]);return u.jsxs("div",{className:L(Lu.PasswordInput,e.className),children:[u.jsx(Vr,{type:n,...e,ref:t}),u.jsx(Du,{className:Lu.eyeIcon,onClick:o,state:n==="password"?"open":"closed"})]})});function $v(e){const t=Fv(e),n=d.forwardRef((r,o)=>{const{children:s,...i}=r,a=d.Children.toArray(s),c=a.find(Uv);if(c){const l=c.props.children,f=a.map(h=>h===c?d.Children.count(l)>1?d.Children.only(null):d.isValidElement(l)?l.props.children:null:h);return u.jsx(t,{...i,ref:o,children:d.isValidElement(l)?d.cloneElement(l,void 0,f):null})}return u.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Fv(e){const t=d.forwardRef((n,r)=>{const{children:o,...s}=n;if(d.isValidElement(o)){const i=Hv(o),a=Wv(s,o.props);return o.type!==d.Fragment&&(a.ref=r?mn(r,i):i),d.cloneElement(o,a)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Bv=Symbol("radix.slottable");function Uv(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Bv}function Wv(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const c=s(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Hv(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Eo="Dialog",[Nu]=Xn(Eo),[Vv,Be]=Nu(Eo),Mu=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:i=!0}=e,a=d.useRef(null),c=d.useRef(null),[l,f]=ro({prop:r,defaultProp:o??!1,onChange:s,caller:Eo});return u.jsx(Vv,{scope:t,triggerRef:a,contentRef:c,contentId:Kt(),titleId:Kt(),descriptionId:Kt(),open:l,onOpenChange:f,onOpenToggle:d.useCallback(()=>f(h=>!h),[f]),modal:i,children:n})};Mu.displayName=Eo;var ku="DialogTrigger",zv=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Be(ku,n),s=le(t,o.triggerRef);return u.jsx(ie.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ai(o.open),...r,ref:s,onClick:Z(e.onClick,o.onOpenToggle)})});zv.displayName=ku;var si="DialogPortal",[qv,$u]=Nu(si,{forceMount:void 0}),Fu=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=Be(si,t);return u.jsx(qv,{scope:t,forceMount:n,children:d.Children.map(r,i=>u.jsx(_n,{present:n||s.open,children:u.jsx(Fs,{asChild:!0,container:o,children:i})}))})};Fu.displayName=si;var xo="DialogOverlay",Bu=d.forwardRef((e,t)=>{const n=$u(xo,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Be(xo,e.__scopeDialog);return s.modal?u.jsx(_n,{present:r||s.open,children:u.jsx(Kv,{...o,ref:t})}):null});Bu.displayName=xo;var Gv=$v("DialogOverlay.RemoveScroll"),Kv=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Be(xo,n);return u.jsx(zs,{as:Gv,allowPinchZoom:!0,shards:[o.contentRef],children:u.jsx(ie.div,{"data-state":ai(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),en="DialogContent",Uu=d.forwardRef((e,t)=>{const n=$u(en,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Be(en,e.__scopeDialog);return u.jsx(_n,{present:r||s.open,children:s.modal?u.jsx(Qv,{...o,ref:t}):u.jsx(Yv,{...o,ref:t})})});Uu.displayName=en;var Qv=d.forwardRef((e,t)=>{const n=Be(en,e.__scopeDialog),r=d.useRef(null),o=le(t,n.contentRef,r);return d.useEffect(()=>{const s=r.current;if(s)return Tl(s)},[]),u.jsx(Wu,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Z(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:Z(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,a=i.button===0&&i.ctrlKey===!0;(i.button===2||a)&&s.preventDefault()}),onFocusOutside:Z(e.onFocusOutside,s=>s.preventDefault())})}),Yv=d.forwardRef((e,t)=>{const n=Be(en,e.__scopeDialog),r=d.useRef(!1),o=d.useRef(!1);return u.jsx(Wu,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var i,a;(i=e.onCloseAutoFocus)==null||i.call(e,s),s.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=s.target;((l=n.triggerRef.current)==null?void 0:l.contains(i))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),Wu=d.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...i}=e,a=Be(en,n),c=d.useRef(null),l=le(t,c);return Lc(),u.jsxs(u.Fragment,{children:[u.jsx(_s,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:u.jsx(zr,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":ai(a.open),...i,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(Zv,{titleId:a.titleId}),u.jsx(Jv,{contentRef:c,descriptionId:a.descriptionId})]})]})}),ii="DialogTitle",Hu=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Be(ii,n);return u.jsx(ie.h2,{id:o.titleId,...r,ref:t})});Hu.displayName=ii;var Vu="DialogDescription",zu=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Be(Vu,n);return u.jsx(ie.p,{id:o.descriptionId,...r,ref:t})});zu.displayName=Vu;var qu="DialogClose",Gu=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Be(qu,n);return u.jsx(ie.button,{type:"button",...r,ref:t,onClick:Z(e.onClick,()=>o.onOpenChange(!1))})});Gu.displayName=qu;function ai(e){return e?"open":"closed"}var Ku="DialogTitleWarning",[$3,Qu]=p1(Ku,{contentName:en,titleName:ii,docsSlug:"dialog"}),Zv=({titleId:e})=>{const t=Qu(Ku),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
252
252
 
253
253
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
254
254
 
255
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return d.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Qv="DialogDescriptionWarning",Yv=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${qu(Qv).contentName}}.`;return d.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Zv=Du,Xv=Mu,Jv=ku,e0=$u,t0=Bu,n0=Wu,r0=Vu;const Gu={Overlay:"Overlay__M5Z83",Content:"Content__wAkP4"},tn={Header:"Header__VHxNf",Content:"Content__I04qM",Close:"Close__xSN-7",Title:"Title__Dznh6",Description:"Description__ALT2w",Footer:"Footer__-8gzQ",Actions:"Actions__kKF2Q"},Ku=x.forwardRef(({children:e,className:t,...n},r)=>{const o=L(tn.Header,t);return l.jsx("div",{ref:r,className:o,...n,children:e})});Ku.displayName="Header";const Qu=x.forwardRef(({children:e,className:t,...n},r)=>{const o=L(tn.Content,t);return l.jsx("div",{ref:r,className:o,...n,children:e})});Qu.displayName="Content";const Yu=x.forwardRef(({children:e,className:t,...n},r)=>{const o=L(tn.Footer,t);return l.jsx("div",{ref:r,className:o,...n,children:e})});Yu.displayName="Footer";const Zu=x.forwardRef(({children:e,className:t,...n},r)=>{const o=L(tn.Title,t);return l.jsx(t0,{ref:r,className:o,...n,children:e})});Zu.displayName="Title";const Xu=x.forwardRef(({className:e,...t},n)=>{const r=L(tn.Close,e);return l.jsx(r0,{ref:n,asChild:!0,className:r,...t,children:l.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:"M11 1L1 11M1 1L11 11",stroke:"#A9A9A9",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})});Xu.displayName="Close";const Ju=x.forwardRef(({children:e,className:t,...n},r)=>{const o=L(tn.Actions,t);return l.jsx("div",{ref:r,className:o,...n,children:e})});Ju.displayName="Actions";const ed=x.forwardRef(({children:e,className:t,...n},r)=>{const o=L(tn.Description,t);return l.jsx("div",{ref:r,className:o,...n,children:e})});ed.displayName="Description";const ve=({children:e,onClose:t,open:n=!1,className:r,zIndexLevel:o=0})=>{const s=()=>{t==null||t()},i={zIndex:`calc(var(--platform-modal-layer) + ${o*2})`},a={zIndex:`calc(var(--platform-modal-layer) + ${o*2+1})`},c=ni();return l.jsx(Zv,{onOpenChange:s,open:n,children:l.jsxs(Xv,{container:c,children:[l.jsx(Jv,{className:Gu.Overlay,style:i}),l.jsxs(e0,{children:[l.jsx(n0,{}),l.jsx("div",{className:L(Gu.Content,r),style:a,children:e})]})]})})};ve.displayName="Dialog",ve.Header=Ku,ve.Content=Qu,ve.Footer=Yu,ve.Actions=Ju,ve.Title=Zu,ve.Description=ed,ve.Close=Xu;const td={pill:"pill__vtGwB","pill--solid":"pill--solid__F-mR4",pillSolid:"pill--solid__F-mR4","pill--outline":"pill--outline__gC-mh",pillOutline:"pill--outline__gC-mh"},o0=({children:e,variant:t="solid",className:n})=>{const r=L(td.pill,td[`pill--${t}`],n);return l.jsx("div",{className:r,children:e})},nd={DialogContent:"DialogContent__-WjG9",Message:"Message__AUgVP"},rd=({loading:e,title:t,children:n,className:r,onClose:o,onConfirm:s,zIndexLevel:i=1,...a})=>l.jsxs(ve,{...a,zIndexLevel:i,className:L(nd.DialogContent,r),children:[l.jsxs(ve.Header,{children:[l.jsx(ve.Title,{children:t}),l.jsx(ve.Close,{onClick:o})]}),l.jsx(ve.Content,{children:typeof n=="string"?l.jsx("p",{className:nd.Message,children:n}):n}),l.jsx(ve.Footer,{children:l.jsxs(ve.Actions,{children:[l.jsx(Ur,{onClick:o,disabled:e,variant:"outlined",children:"Cancel"}),l.jsx(Ur,{onClick:s,disabled:e,loading:e,variant:"contained",children:"Confirm"})]})})]});rd.displayName="ConfirmDialog";const xo={container:"container__AjtYJ",title:"title__A2vCu",description:"description__bP6Ig",mailToText:"mailToText__SdlsE"},od=()=>l.jsxs("svg",{width:"200",height:"200",viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsx("path",{d:"M184.415 152.221C183.936 151.406 183.401 150.621 182.892 149.824C181.61 147.817 180.327 145.809 179.045 143.801C177.102 140.759 175.159 137.717 173.215 134.676C170.766 130.841 168.316 127.006 165.866 123.171C163.068 118.79 160.27 114.41 157.472 110.03C154.484 105.352 151.496 100.674 148.508 95.9965C145.474 91.2464 142.439 86.4963 139.405 81.7463C136.513 77.2189 133.621 72.6915 130.729 68.1641C128.123 64.084 125.517 60.0039 122.91 55.9238C120.748 52.5389 118.586 49.1541 116.424 45.7692C114.864 43.3273 113.304 40.8854 111.744 38.4436C110.943 37.1899 110.142 35.9362 109.342 34.6825C108.765 33.7802 108.096 32.9744 107.292 32.2572C104.604 29.8584 100.572 29.2302 97.2301 30.5252C94.5951 31.5463 92.6177 33.3853 91.0923 35.7373C90.8768 36.0696 90.6658 36.405 90.4526 36.7387C89.3951 38.3941 88.3378 40.0494 87.2803 41.7049C85.5124 44.4725 83.7444 47.2402 81.9765 50.0079C79.644 53.6594 77.3114 57.3111 74.9788 60.9626C72.2632 65.2138 69.5477 69.465 66.8321 73.7162C63.8817 78.3349 60.9313 82.9536 57.9811 87.5722C54.9542 92.3106 51.9274 97.0491 48.9006 101.787C45.9557 106.398 43.0107 111.008 40.0658 115.618C37.3487 119.872 34.6316 124.125 31.9145 128.379C29.6106 131.986 27.3067 135.592 25.0028 139.199C23.2565 141.933 21.5101 144.667 19.7639 147.4C18.7335 149.013 17.7031 150.626 16.6728 152.239C14.8665 155.067 13.7231 158.171 14.23 161.595C14.9672 166.576 19.2366 170.131 24.2215 170.137C25.559 170.139 26.8963 170.137 28.2338 170.137C30.9198 170.137 33.6058 170.137 36.2918 170.137C40.0725 170.137 43.8533 170.137 47.6341 170.137C52.2557 170.137 56.8772 170.137 61.4989 170.137C66.7339 170.137 71.969 170.137 77.204 170.137C82.7467 170.137 88.2894 170.137 93.8322 170.137C99.4529 170.137 105.074 170.137 110.694 170.137C116.139 170.137 121.584 170.137 127.029 170.137C132.044 170.137 137.06 170.137 142.075 170.137C146.425 170.137 150.776 170.137 155.127 170.137C158.516 170.137 161.904 170.137 165.293 170.137C167.49 170.137 169.686 170.137 171.883 170.137C172.633 170.137 173.384 170.137 174.135 170.137C178.404 170.087 182.136 167.627 184.212 163.932C186.248 160.307 186.562 155.866 184.415 152.221ZM94.0937 37.3471C94.0897 37.3539 94.0862 37.3597 94.0824 37.3661C94.0826 37.3652 94.0831 37.3642 94.0833 37.3632C94.0844 37.3581 94.0909 37.3518 94.0937 37.3471ZM178.584 164.489C178.476 164.538 178.524 164.516 178.584 164.489V164.489ZM180.937 162.79C180.979 162.72 181.118 162.485 181.127 162.498C181.145 162.528 181.058 162.647 180.937 162.79ZM181.821 160.333C181.806 160.446 181.782 160.646 181.773 160.697C181.736 160.919 181.686 161.139 181.637 161.359C181.637 161.359 181.637 161.359 181.637 161.359C181.629 161.377 181.621 161.399 181.61 161.426C181.54 161.604 181.472 161.785 181.406 161.965C181.402 161.977 181.398 161.988 181.394 161.999C181.304 162.16 181.219 162.323 181.123 162.481C181.074 162.562 181.016 162.641 180.97 162.724C180.949 162.762 180.936 162.785 180.93 162.798C180.727 163.035 180.436 163.332 180.388 163.385C180.696 163.049 180.535 163.229 180.318 163.42C180.172 163.548 180.018 163.666 179.869 163.79C179.848 163.807 179.831 163.822 179.816 163.835C179.797 163.845 179.775 163.857 179.747 163.873C179.576 163.97 179.411 164.078 179.238 164.171C179.043 164.277 178.844 164.373 178.642 164.463C178.556 164.494 178.471 164.526 178.384 164.553C177.532 164.819 176.835 164.945 176.084 164.954C175.296 164.954 174.508 164.954 173.719 164.954C171.519 164.954 169.318 164.954 167.118 164.954C163.751 164.954 160.385 164.954 157.019 164.954C152.756 164.954 148.493 164.954 144.231 164.954C139.275 164.954 134.319 164.954 129.364 164.954C123.981 164.954 118.598 164.954 113.215 164.954C107.651 164.954 102.086 164.954 96.5224 164.954C91.024 164.954 85.5255 164.954 80.0271 164.954C74.8407 164.954 69.6543 164.954 64.4679 164.954C59.8401 164.954 55.2123 164.954 50.5846 164.954C46.7784 164.954 42.9721 164.954 39.166 164.954C36.3891 164.954 33.6122 164.954 30.8354 164.954C29.3555 164.954 27.8756 164.954 26.3957 164.954C25.9641 164.954 25.534 164.958 25.1029 164.922C23.4511 164.785 22.11 164.207 20.7626 163.127C20.3445 162.792 19.7301 162.074 19.3142 161.434C19.2096 161.273 19.1102 161.109 19.0161 160.942C18.9707 160.861 18.8013 160.534 18.8105 160.558C18.7451 160.414 18.5329 159.846 18.4422 159.537C18.3467 159.211 18.2692 158.879 18.2129 158.544C18.2174 158.545 18.1876 158.285 18.1815 158.192C18.1669 157.964 18.1617 157.736 18.1651 157.508C18.166 157.455 18.1793 157.245 18.185 157.131C18.2055 157.005 18.2441 156.74 18.2591 156.662C18.2913 156.493 18.3319 156.326 18.3726 156.16C18.2821 156.539 18.4099 156.072 18.4891 155.866C18.518 155.79 18.6652 155.487 18.6846 155.432C18.7383 155.339 18.7932 155.243 18.8125 155.21C18.8692 155.114 18.9282 155.019 18.9875 154.924C19.0003 154.904 19.0137 154.884 19.0265 154.863C19.2211 154.554 19.4201 154.247 19.617 153.939C20.6335 152.348 21.6501 150.756 22.6667 149.165C24.3869 146.472 26.107 143.779 27.8271 141.086C30.0848 137.552 32.3425 134.017 34.6001 130.483C37.2646 126.312 39.9291 122.141 42.5935 117.97C45.5011 113.418 48.4086 108.866 51.3161 104.315C54.3131 99.6229 57.31 94.9312 60.3069 90.2397C63.2394 85.6489 66.172 81.058 69.1045 76.4672C71.819 72.2178 74.5334 67.9683 77.2479 63.719C79.5904 60.0517 81.9331 56.3844 84.2756 52.7172C86.0852 49.8842 87.8948 47.0513 89.7044 44.2184C90.8459 42.4315 91.9873 40.6446 93.1287 38.8578C93.3976 38.4368 93.6701 38.0178 93.9356 37.5945C93.9507 37.5705 93.9737 37.5416 93.9972 37.511C93.8744 37.7231 94.1597 37.2638 94.301 37.0921C94.4017 36.9695 94.5483 36.8114 94.5423 36.8113C94.6372 36.721 94.7333 36.6319 94.8323 36.546C94.9866 36.4121 95.1478 36.2876 95.3084 36.1615C94.9392 36.4513 95.3917 36.1121 95.5441 36.0212C96.7591 35.2961 98.1095 34.9498 99.7068 35.0725C101.356 35.1993 102.702 35.7434 104.07 36.8307C104.685 37.3192 105.311 38.1542 105.817 38.9457C106.592 40.1592 107.367 41.3727 108.142 42.5862C109.667 44.9733 111.192 47.3605 112.717 49.7476C114.838 53.0679 116.959 56.3881 119.08 59.7083C121.629 63.6999 124.179 67.6913 126.729 71.6829C129.579 76.1455 132.43 80.6082 135.281 85.0709C138.267 89.7458 141.253 94.4206 144.239 99.0955C147.207 103.742 150.176 108.388 153.144 113.035C155.94 117.412 158.736 121.789 161.532 126.167C164.002 130.034 166.473 133.902 168.943 137.769C170.935 140.886 172.926 144.003 174.917 147.12C176.27 149.239 177.623 151.357 178.976 153.475C179.551 154.376 180.134 155.272 180.702 156.177C181.138 156.872 181.311 157.219 181.54 157.972C181.6 158.167 181.652 158.363 181.697 158.561C181.711 158.623 181.759 158.873 181.78 158.97C181.787 159.063 181.815 159.319 181.819 159.383C181.831 159.579 181.836 159.775 181.834 159.972C181.834 160.022 181.825 160.217 181.821 160.333Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M98.5821 122.507C99.019 122.759 99.6307 122.629 100.038 122.389C101.205 121.703 101.925 120.275 102.041 118.92C103.115 106.361 106.514 75.1051 106.514 68.3062C106.514 59.902 92.8134 60.6835 92.0664 71.3279C91.6887 76.7103 97.5083 119.581 97.8266 121.187C97.9188 121.652 98.1423 122.253 98.5821 122.507Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M101.841 133.945C101.826 133.94 101.812 133.934 101.797 133.929C98.2767 132.6 94.4012 134.976 93.9964 138.717C93.9765 138.901 93.9636 139.086 93.958 139.272C93.8552 142.712 96.4467 146.126 99.8464 146.664C103.245 147.201 106.896 144.494 107.099 141.059C107.285 137.909 104.789 135.072 101.841 133.945Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M161.729 131.662C161.873 131.367 162.082 130.81 161.71 130.584C161.365 130.375 160.901 130.836 160.768 131.107C156.804 139.201 152.84 147.295 148.877 155.389C147.759 157.67 146.642 159.952 145.525 162.233C145.38 162.528 145.171 163.085 145.543 163.311C145.888 163.52 146.352 163.059 146.485 162.788C150.449 154.694 154.413 146.6 158.377 138.506C159.494 136.225 160.611 133.943 161.729 131.662Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M144.786 152.64C144.441 152.43 143.977 152.891 143.844 153.163C142.363 156.187 140.882 159.21 139.402 162.234C139.257 162.528 139.048 163.085 139.42 163.311C139.765 163.521 140.229 163.06 140.362 162.788C141.843 159.764 143.323 156.741 144.804 153.717C144.948 153.423 145.158 152.866 144.786 152.64Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M136.792 156.459C136.447 156.25 135.983 156.711 135.85 156.982C134.993 158.733 134.136 160.483 133.279 162.233C133.134 162.528 132.925 163.085 133.297 163.311C133.642 163.52 134.106 163.06 134.239 162.788C135.096 161.037 135.953 159.287 136.81 157.537C136.955 157.242 137.164 156.685 136.792 156.459Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M129.1 159.663C128.755 159.454 128.291 159.915 128.158 160.186C127.824 160.869 127.49 161.551 127.155 162.234C127.011 162.528 126.802 163.086 127.174 163.311C127.519 163.521 127.983 163.06 128.116 162.788C128.45 162.106 128.784 161.423 129.118 160.741C129.263 160.447 129.472 159.889 129.1 159.663Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M165.835 137.946C165.979 137.652 166.188 137.094 165.816 136.868C165.471 136.659 165.007 137.12 164.874 137.392C161.72 143.832 158.566 150.273 155.412 156.713C154.511 158.553 153.609 160.393 152.708 162.233C152.564 162.528 152.355 163.085 152.726 163.311C153.071 163.52 153.535 163.06 153.669 162.788C156.823 156.347 159.977 149.907 163.131 143.466C164.032 141.626 164.933 139.786 165.835 137.946Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M169.923 143.153C169.578 142.943 169.114 143.404 168.98 143.676C165.951 149.862 162.921 156.048 159.892 162.234C159.748 162.528 159.538 163.086 159.91 163.311C160.255 163.521 160.719 163.06 160.852 162.788C163.882 156.602 166.911 150.416 169.941 144.23C170.085 143.936 170.294 143.378 169.923 143.153Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M174.332 148.821C173.987 148.611 173.523 149.072 173.39 149.344C171.286 153.64 169.182 157.937 167.077 162.234C166.933 162.528 166.724 163.086 167.095 163.311C167.44 163.521 167.905 163.06 168.038 162.788C170.142 158.492 172.246 154.195 174.351 149.898C174.495 149.604 174.704 149.046 174.332 148.821Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M178.197 155.597C177.852 155.387 177.388 155.848 177.255 156.12C176.257 158.158 175.259 160.196 174.261 162.233C174.117 162.528 173.907 163.085 174.279 163.311C174.624 163.52 175.088 163.06 175.221 162.788C176.219 160.75 177.217 158.712 178.215 156.674C178.36 156.38 178.569 155.823 178.197 155.597Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M97.1962 40.2135C97.3477 39.9803 97.4773 39.477 97.1807 39.2971C96.8678 39.1072 96.5194 39.5265 96.3794 39.7419C94.7034 42.3205 93.0556 44.9176 91.4179 47.5205C88.1743 52.6759 84.976 57.8633 81.9271 63.1367C80.4155 65.7509 78.9283 68.3855 77.5879 71.0925C77.4642 71.3423 77.2879 71.8174 77.6034 72.0088C77.8975 72.1874 78.2905 71.7947 78.4047 71.564C80.9657 66.3919 83.9726 61.4308 86.9671 56.5018C89.7369 51.9427 92.5713 47.4226 95.4474 42.9297C96.0279 42.0228 96.6094 41.1164 97.1962 40.2135Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M75.3224 76.1247C75.0193 75.9408 74.6477 76.3459 74.521 76.5695C74.1645 77.1991 73.808 77.8286 73.4515 78.4581C73.3144 78.7003 73.1605 79.1884 73.467 79.3744C73.77 79.5583 74.1416 79.1532 74.2684 78.9296C74.6248 78.3001 74.9814 77.6705 75.3378 77.0411C75.475 76.7988 75.6288 76.3107 75.3224 76.1247Z",fill:"var(--pae-shell-color-secondary)"})]});od.displayName="WarningIcon";const s0="support@bluealba.com",i0="@bluealba/pae-shell-ui",ci=()=>{const{supportEmail:e=s0}=Ki(i0),t=`mailto:${e}?Subject=Support`;return l.jsxs("div",{className:xo.container,children:[l.jsx(od,{}),l.jsx("div",{className:xo.title,children:"Oops! Something went wrong"}),l.jsxs("div",{className:xo.description,children:["If the error persists, ",l.jsx("a",{className:xo.mailToText,href:t,children:"contact the administrator."})]})]})};ci.displayName="ErrorState";const Ue={List:"List__h09XG",list:"List__h09XG",Item:"Item__YMy2i",item:"Item__YMy2i","List--primary":"List--primary__J2pbx",listPrimary:"List--primary__J2pbx","List--secondary":"List--secondary__gi1ao",listSecondary:"List--secondary__gi1ao","Item--selected":"Item--selected__yRWow",itemSelected:"Item--selected__yRWow",Title:"Title__RJmEW",title:"Title__RJmEW",Description:"Description__DGyX2",description:"Description__DGyX2",Actions:"Actions__UHP5l",actions:"Actions__UHP5l",Action:"Action__q-R1I",action:"Action__q-R1I","Item--disabled":"Item--disabled__Ke1u-",itemDisabled:"Item--disabled__Ke1u-","List--small":"List--small__ijoSR",listSmall:"List--small__ijoSR","List--medium":"List--medium__E1FEY",listMedium:"List--medium__E1FEY","List--large":"List--large__T8tfz",listLarge:"List--large__T8tfz",Icon:"Icon__dFr-L",icon:"Icon__dFr-L"},sd=x.forwardRef(({children:e,className:t,selected:n,disabled:r=!1,...o},s)=>{const i=L(Ue.Item,{[Ue["Item--selected"]]:n,[Ue["Item--disabled"]]:r},t);return l.jsx("li",{ref:s,className:i,role:"listitem","aria-disabled":r,...o,children:e})});sd.displayName="Item";const id=x.forwardRef(({children:e,className:t,...n},r)=>{const o=L(Ue.Title,t);return l.jsx("h3",{ref:r,className:o,...n,children:e})});id.displayName="Title";const ad=x.forwardRef(({children:e,className:t,...n},r)=>{const o=L(Ue.Description,t);return l.jsx("p",{ref:r,className:o,...n,children:e})});ad.displayName="Description";const li=({className:e,...t})=>l.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:[l.jsx("path",{d:"M6 6.5C6.27614 6.5 6.5 6.27614 6.5 6C6.5 5.72386 6.27614 5.5 6 5.5C5.72386 5.5 5.5 5.72386 5.5 6C5.5 6.27614 5.72386 6.5 6 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M9.5 6.5C9.77614 6.5 10 6.27614 10 6C10 5.72386 9.77614 5.5 9.5 5.5C9.22386 5.5 9 5.72386 9 6C9 6.27614 9.22386 6.5 9.5 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M2.5 6.5C2.77614 6.5 3 6.27614 3 6C3 5.72386 2.77614 5.5 2.5 5.5C2.22386 5.5 2 5.72386 2 6C2 6.27614 2.22386 6.5 2.5 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"})]});li.displayName="HorizontalDots";const cd=x.forwardRef(({children:e,className:t,onClick:n,...r},o)=>{const s=x.useRef(null),[i,a]=x.useState(!1),c=L(Ue.Actions,t),u=()=>{const S=Jt["DropdownList--open"],p=Jt["DropdownList--closed"];document.querySelectorAll(`.${S}`).forEach(v=>{v!==s.current&&(v.classList.remove(S),v.classList.add(p))})},f=S=>{S.stopPropagation(),i?h():(a(!0),n==null||n(S))},h=()=>{a(!1)},m=S=>{S.key==="Escape"&&h()},g=S=>{s.current&&!s.current.contains(S.target)&&h()};return x.useEffect(()=>(i?(u(),document.addEventListener("keydown",m),document.addEventListener("click",g)):(document.removeEventListener("keydown",m),document.removeEventListener("click",g)),()=>{document.removeEventListener("keydown",m),document.removeEventListener("click",g)}),[i]),l.jsxs("div",{ref:o,className:c,onClick:f,role:"button",tabIndex:0,"data-testid":"actions",...r,children:[l.jsx(li,{}),l.jsx(vo,{align:"left",ref:s,open:i,"data-testid":"actions-dropdown",role:"menu","aria-label":"Actions",children:e})]})});cd.displayName="Actions";const ld=x.forwardRef(({children:e,className:t,...n},r)=>{const o=L(Ue.Action,t);return l.jsx("button",{ref:r,className:o,...n,children:e})});ld.displayName="Action";const ud=x.forwardRef(({children:e,className:t,...n},r)=>{const o=L(Ue.Icon,t);return l.jsx("div",{ref:r,className:o,...n,children:e})});ud.displayName="Icon";const Je=x.forwardRef(({children:e,className:t,size:n="medium",variant:r,...o},s)=>{const i=L(Ue.List,{[Ue[`List--${n}`]]:n,[Ue[`List--${r}`]]:r},t);return l.jsx("ul",{ref:s,className:i,role:"list",...o,children:e})});Je.displayName="List",Je.Item=sd,Je.Badges=vs,Je.Badge=ys,Je.Title=id,Je.Description=ad,Je.Actions=cd,Je.Action=ld,Je.Icon=ud;const ut={Navigation:"Navigation__uylxk",PaginationContent:"PaginationContent__UpLw0",PaginationEllipsis:"PaginationEllipsis__perWk",PaginationLink:"PaginationLink__GVUZj",Active:"Active__u1Ahy",Disabled:"Disabled__8WM0y",Prev:"Prev__wp4hc",Next:"Next__eVyL5"},dd=({className:e,...t})=>l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,...t,children:[l.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),l.jsx("path",{d:"M9 6l6 6l-6 6"})]});dd.displayName="ChevronRight";const fd=({className:e,...t})=>l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,...t,children:[l.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),l.jsx("path",{d:"M15 6l-6 6l6 6"})]});fd.displayName="ChevronLeft";const ui=({className:e,...t})=>l.jsx("nav",{role:"navigation","aria-label":"pagination",className:L(ut.Navigation,e),...t});ui.displayName="Pagination";const di=d.forwardRef(({className:e,...t},n)=>l.jsx("ul",{ref:n,className:L(ut.PaginationContent,e),...t}));di.displayName="PaginationContent";const sr=d.forwardRef(({className:e,...t},n)=>l.jsx("li",{ref:n,className:e,...t}));sr.displayName="PaginationItem";const ir=({className:e,isActive:t,...n})=>l.jsx("a",{"aria-current":t?"page":void 0,className:L(ut.PaginationLink,t&&ut.Active,e),...n});ir.displayName="PaginationLink";const fi=({className:e,disabled:t,...n})=>l.jsxs(ir,{"aria-label":"Go to previous page",className:L(t&&ut.Disabled,ut.Prev,e),...n,children:[l.jsx(fd,{}),l.jsx("span",{children:"Previous"})]});fi.displayName="PaginationPrevious";const hi=({className:e,disabled:t,...n})=>l.jsxs(ir,{"aria-label":"Go to next page",className:L(t&&ut.Disabled,ut.Next,e),...n,children:[l.jsx("span",{children:"Next"}),l.jsx(dd,{})]});hi.displayName="PaginationNext";const pi=({className:e,...t})=>l.jsx("span",{"aria-hidden":!0,className:L(ut.PaginationEllipsis,e),...t,children:l.jsx(li,{})});pi.displayName="PaginationEllipsis";function a0(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var hd={exports:{}};(function(e,t){(function(n,r){typeof a0=="function"?e.exports=r():n.pluralize=r()})(lf,function(){var n=[],r=[],o={},s={},i={};function a(p){return typeof p=="string"?new RegExp("^"+p+"$","i"):p}function c(p,y){return p===y?y:p===p.toLowerCase()?y.toLowerCase():p===p.toUpperCase()?y.toUpperCase():p[0]===p[0].toUpperCase()?y.charAt(0).toUpperCase()+y.substr(1).toLowerCase():y.toLowerCase()}function u(p,y){return p.replace(/\$(\d{1,2})/g,function(v,w){return y[w]||""})}function f(p,y){return p.replace(y[0],function(v,w){var E=u(y[1],arguments);return c(v===""?p[w-1]:v,E)})}function h(p,y,v){if(!p.length||o.hasOwnProperty(p))return y;for(var w=v.length;w--;){var E=v[w];if(E[0].test(y))return f(y,E)}return y}function m(p,y,v){return function(w){var E=w.toLowerCase();return y.hasOwnProperty(E)?c(w,E):p.hasOwnProperty(E)?c(w,p[E]):h(E,w,v)}}function g(p,y,v,w){return function(E){var T=E.toLowerCase();return y.hasOwnProperty(T)?!0:p.hasOwnProperty(T)?!1:h(T,T,v)===T}}function S(p,y,v){var w=y===1?S.singular(p):S.plural(p);return(v?y+" ":"")+w}return S.plural=m(i,s,n),S.isPlural=g(i,s,n),S.singular=m(s,i,r),S.isSingular=g(s,i,r),S.addPluralRule=function(p,y){n.push([a(p),y])},S.addSingularRule=function(p,y){r.push([a(p),y])},S.addUncountableRule=function(p){if(typeof p=="string"){o[p.toLowerCase()]=!0;return}S.addPluralRule(p,"$0"),S.addSingularRule(p,"$0")},S.addIrregularRule=function(p,y){y=y.toLowerCase(),p=p.toLowerCase(),i[p]=y,s[y]=p},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(p){return S.addIrregularRule(p[0],p[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(p){return S.addPluralRule(p[0],p[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(p){return S.addSingularRule(p[0],p[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(S.addUncountableRule),S})})(hd);var c0=hd.exports;const l0=uf(c0),mi=({count:e,singularText:t,children:n=(r,o)=>`${r} ${o}`})=>l.jsx(l.Fragment,{children:n(e,l0(t,e))});mi.displayName="PluralizeCounter";const _e={TableContainer:"TableContainer__osh6Z",TableHeader:"TableHeader__sYa-8",Table:"Table__2cIs3",selectable:"selectable__WsGg1",Cell:"Cell__ZEv-K",Right:"Right__YoM1V",Center:"Center__CF3tr",Sortable:"Sortable__JIV1V",SortIcon:"SortIcon__f0bBy",Active:"Active__rJjxB",Rotate:"Rotate__7cwTK",Pagination:"Pagination__sbqMP",PointerNone:"PointerNone__kQdQS"},pd={EmptyStateContainer:"EmptyStateContainer__Q9FEb",Message:"Message__IHK6M"},md=({size:e=64})=>l.jsxs("svg",{width:e,height:e,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsxs("g",{clipPath:"url(#clip-path)",children:[l.jsx("mask",{id:"mask0_1070_8032",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"64",height:"64",children:l.jsx("path",{d:"M64 0H0V64H64V0Z",fill:"white"})}),l.jsx("g",{mask:"url(#mask0_1070_8032)",children:l.jsx("path",{d:"M40 10.6673H13.3333V53.334H50.6667V21.334H40V10.6673ZM8 7.97932C8 6.51798 9.192 5.33398 10.664 5.33398H42.6667L56 18.6673V55.982C56.0024 56.3321 55.936 56.6793 55.8043 57.0039C55.6725 57.3284 55.4781 57.6239 55.2323 57.8732C54.9864 58.1225 54.6936 58.3209 54.3712 58.4572C54.0485 58.5935 53.7021 58.6649 53.352 58.6673H10.648C9.94768 58.6625 9.27739 58.3823 8.78192 57.8873C8.28645 57.3924 8.00557 56.7223 8 56.022V7.97932ZM36.0773 38.5233C33.8408 39.83 31.2056 40.2788 28.6627 39.786C26.1197 39.2929 23.8428 37.8921 22.2566 35.8444C20.6704 33.7966 19.883 31.2417 20.0414 28.6564C20.1998 26.071 21.293 23.6315 23.1173 21.7927C24.9532 19.9571 27.3955 18.8541 29.9864 18.6904C32.5773 18.5267 35.1389 19.3134 37.1912 20.9032C39.2435 22.493 40.6456 24.7767 41.1347 27.3263C41.6237 29.8759 41.1664 32.5164 39.848 34.7527L45.7413 40.646L41.9707 44.4193L36.0773 38.5233ZM34.4293 33.1047C34.9387 32.6126 35.3451 32.0241 35.6245 31.3735C35.904 30.7228 36.0512 30.0231 36.0573 29.3148C36.0635 28.6065 35.9285 27.9044 35.6603 27.2489C35.3923 26.5935 34.9963 25.998 34.4955 25.4972C33.9947 24.9964 33.3992 24.6004 32.7437 24.3323C32.0883 24.0641 31.3861 23.9292 30.6779 23.9353C29.9696 23.9415 29.2699 24.0886 28.6192 24.3681C27.9685 24.6476 27.38 25.0539 26.888 25.5633C25.9165 26.5692 25.3789 27.9164 25.3911 29.3148C25.4032 30.7132 25.9641 32.0508 26.9531 33.0396C27.9419 34.0287 29.2795 34.5895 30.6779 34.6015C32.0763 34.6137 33.4235 34.0761 34.4293 33.1047Z",fill:"currentColor"})})]}),l.jsx("defs",{children:l.jsx("clipPath",{id:"clip-path",children:l.jsx("rect",{width:"64",height:"64",fill:"white"})})})]});md.displayName="EmptyStateIcon";const gi=({message:e="No results found"})=>l.jsxs("div",{className:L(pd.EmptyStateContainer),children:[l.jsx(md,{}),l.jsx("p",{className:pd.Message,children:e})]});gi.displayName="EmptyState";const u0=(e,t,n=1)=>{if(e<=1)return["1"];const r=[],o=s=>{(r.length===0||r[r.length-1]!==s)&&r.push(s)};o(1),t-n>2&&o("...");for(let s=Math.max(2,t-n);s<=Math.min(e-1,t+n);s++)o(s);return t+n<e-1&&o("..."),o(e),r.map(String)},gd=({page:e,totalPages:t,onPageChange:n})=>{const r=e===1,o=e===t;return l.jsx(ui,{className:_e.Pagination,children:l.jsxs(di,{children:[l.jsx(sr,{children:l.jsx(fi,{className:L({[_e.PointerNone]:r}),onClick:()=>!r&&n(e-1)})}),u0(t,e).map((s,i)=>l.jsxs(sr,{children:[s==="..."&&l.jsx(pi,{}),s!=="..."&&l.jsx(ir,{isActive:+s===e,onClick:()=>+s!==e&&n(+s),children:s})]},i)),l.jsx(sr,{children:l.jsx(hi,{className:L({[_e.PointerNone]:o}),onClick:()=>!o&&n(e+1)})})]})})};gd.displayName="TablePagination";const yd=({className:e,...t})=>l.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:l.jsx("path",{d:"M6 2.5V9.5M6 9.5L9.5 6M6 9.5L2.5 6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})});yd.displayName="ArrowDown";const vd=({columns:e,data:t,isLoading:n,totalCount:r=0,headerLabel:o,sort:s,loadingConfig:i,pagination:a,onRowClick:c})=>{const{count:u=5,height:f=40}=i||{},h=v=>v.sortName??v.name,m=({width:v,maxWidth:w})=>!v&&!w?{}:{...v?{width:v,minWidth:v}:{},...w?{maxWidth:w}:{},overflow:"hidden"},g=v=>L({[_e.Cell]:!0,[_e.Center]:v.align==="center",[_e.Right]:v.align==="right",[_e.Sortable]:v.isSortable}),S=v=>{if(!s)return"";const w=h(v);return L({[_e.SortIcon]:!0,[_e.Active]:v.isSortable&&s.field===w,[_e.Rotate]:s.field===w&&s.direction==="asc"})},p=v=>()=>c==null?void 0:c(v),y=v=>()=>{if(!s||!v.isSortable)return;const{field:w,direction:E,onSort:T}=s,P=h(v);w===P?T(P,E==="asc"?"desc":"asc"):T(P,"asc")};return l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:_e.TableContainer,children:[o&&l.jsx("div",{className:_e.TableHeader,children:l.jsx(mi,{count:r,singularText:o,children:(v,w)=>`${v} ${w}`})}),l.jsx("div",{className:_e.Table,children:l.jsxs("table",{children:[l.jsx("thead",{children:l.jsx("tr",{children:e.map(v=>l.jsx("th",{children:l.jsxs("div",{className:g(v),onClick:y(v),children:[l.jsx("span",{children:v.displayName}),v.isSortable&&l.jsx(yd,{className:S(v)})]})},v.name))})}),l.jsx("tbody",{children:l.jsxs(Tt,{children:[l.jsx(Tt.When,{condition:n,children:[...Array(u).keys()].map(v=>l.jsx("tr",{children:l.jsx("td",{colSpan:e.length,style:{padding:4},children:l.jsx(wo,{height:f})})},v))}),l.jsx(Tt.When,{condition:!t.length,children:l.jsx("tr",{children:l.jsx("td",{colSpan:e.length,children:l.jsx(gi,{})})})}),l.jsx(Tt.Else,{children:t.map((v,w)=>l.jsx("tr",{className:c&&_e.selectable,onClick:p(v),children:e.map(E=>l.jsx("td",{style:m(E),children:l.jsx("div",{className:g(E),children:E.cellRenderer?E.cellRenderer(v):E.valueGetter?E.valueGetter(v):v[E.name]})},`${E.name}-${w}`))},w))})]})})]})})]}),a&&l.jsx(gd,{...a})]})};vd.displayName="Table";const _o={alert:"alert__LblpE",default:"default__mgO6A",destructive:"destructive__bLNSM",alertTitle:"alertTitle__gblKf",alertDescription:"alertDescription__BuVHV"},To=({className:e,variant:t="default",children:n,...r})=>l.jsx("div",{"data-slot":"alert",role:"alert",className:L(_o.alert,_o[t],e),...r,children:n}),d0=d.forwardRef(({children:e,className:t,...n},r)=>l.jsx("div",{ref:r,"data-slot":"alert-title",className:L(_o.alertTitle,t),...n,children:e})),f0=d.forwardRef(({children:e,className:t,...n},r)=>l.jsx("div",{ref:r,"data-slot":"alert-description",className:L(_o.alertDescription,t),...n,children:e}));To.displayName="Alert",To.Title=d0,To.Description=f0;const bd=({isNavbarExpanded:e})=>{const{theme:t,setTheme:n}=hc(),r=()=>n(t==="dark"?"light":"dark"),o=l.jsxs("div",{className:L(ms.container,e&&ms.expanded),onClick:r,children:[t==="light"?l.jsx(uc,{}):l.jsx(dc,{}),e&&l.jsx("p",{className:ms.label,children:t==="light"?"Dark Mode":"Light Mode"})]});return e?o:l.jsx(Pn,{displayName:t==="light"?"Switch to dark mode":"Switch to light mode",sideOffset:-16,children:o})};bd.displayName="ToggleTheme";const wd=({moduleName:e,className:t,style:n,LoadingComponent:r,ErrorComponent:o,IdleComponent:s})=>{var p;const i=hn(),{statusName:a,isLoading:c,isMounted:u,isBroken:f}=hs(e),h=x.useMemo(()=>i.find(y=>y.name===e),[i,e]),m=(h==null?void 0:h.type)==="fragment"?(p=h.ui)==null?void 0:p.mountAtSelector:void 0,g=m!=null&&m.startsWith("#")?m.slice(1):null;if(x.useEffect(()=>{h?h.type!=="fragment"?console.warn(`[FragmentSlot] Module "${e}" has type "${h.type}" but expected "fragment". Only modules of type "fragment" can be rendered with the <FragmentSlot> component.`):m?m.startsWith("#")||console.warn(`[FragmentSlot] Module "${e}" has "ui.mountAtSelector" = "${m}" which is not an id selector. Only "#id" selectors are supported — the value must start with "#".`):console.warn(`[FragmentSlot] Module "${e}" does not have a "ui.mountAtSelector" configured. A fragment module must declare the DOM selector where it will be mounted.`):console.warn(`[FragmentSlot] Module "${e}" was not found in the platform catalog.`)},[h,e,m]),!h||h.type!=="fragment"||!g)return null;const S=!c&&!u&&!f;return l.jsxs(l.Fragment,{children:[l.jsx("div",{id:g,className:t,style:n}),c&&r&&l.jsx(r,{moduleName:e}),f&&o&&l.jsx(o,{moduleName:e}),S&&s&&l.jsx(s,{moduleName:e,status:a})]})};wd.displayName="FragmentSlot";const h0=(e,t)=>{const n=r=>l.jsx(ps,{operations:t,children:l.jsx(e,{...r})});return n.displayName="Authorized",n};function Cd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Po(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Cd(Object(n),!0).forEach(function(r){p0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cd(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Sd(e){return(Sd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function p0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yi(e){return(yi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function Ed(e,t){var n;if(typeof(n=t.domElement?function(){return t.domElement}:t.domElementGetter?t.domElementGetter:e.domElementGetter?e.domElementGetter:function(r){var o=r.appName||r.name;if(!o)throw Error("single-spa's dom-element-getter-helpers was not given an application name as a prop, so it can't make a unique dom element container for the react application");var s="single-spa-application:".concat(o);return function(){var i=document.getElementById(s);return i||((i=document.createElement("div")).id=s,document.body.appendChild(i)),i}}(t))!="function")throw Error("single-spa's dom-element-getter-helpers was given an invalid domElementGetter for application or parcel '".concat(t.name,"'. Expected a function, received ").concat(yi(n)));return function(){var r=n(t);if(!(r instanceof HTMLElement))throw Error("single-spa's dom-element-getter-helpers: domElementGetter returned an invalid dom element for application or parcel '".concat(t.name,"'. Expected HTMLElement, received ").concat(yi(r)));return r}}var ar=null;try{ar=require("react").createContext()}catch{}var m0={React:null,ReactDOM:null,ReactDOMClient:null,rootComponent:null,loadRootComponent:null,errorBoundary:null,errorBoundaryClass:null,domElementGetter:null,parcelCanUpdate:!0,suppressComponentDidCatchWarning:!1,domElements:{},renderResults:{},updateResolves:{},unmountResolves:{}};function g0(e){if(Sd(e)!=="object")throw new Error("single-spa-react requires a configuration object");var t,n=Po(Po({},m0),e);if(!n.React)throw new Error("single-spa-react must be passed opts.React");if(!n.ReactDOM&&!n.ReactDOMClient)throw new Error("single-spa-react must be passed opts.ReactDOM or opts.ReactDOMClient");if(n.renderType||((t=n.ReactDOMClient)!==null&&t!==void 0&&t.createRoot?n.renderType="createRoot":n.renderType="render"),!n.rootComponent&&!n.loadRootComponent)throw new Error("single-spa-react must be passed opts.rootComponent or opts.loadRootComponent");if(n.errorBoundary&&typeof n.errorBoundary!="function")throw Error("The errorBoundary opt for single-spa-react must either be omitted or be a function that returns React elements");!ar&&n.React.createContext&&(ar=n.React.createContext()),n.SingleSpaRoot=function(o){function s(i){s.displayName="SingleSpaRoot(".concat(i.name,")")}return s.prototype=Object.create(o.React.Component.prototype),s.prototype.componentDidMount=function(){setTimeout(this.props.mountFinished)},s.prototype.componentWillUnmount=function(){setTimeout(this.props.unmountFinished)},s.prototype.render=function(){return setTimeout(this.props.updateFinished),this.props.children},s}(n);var r={bootstrap:y0.bind(null,n),mount:v0.bind(null,n),unmount:b0.bind(null,n)};return n.parcelCanUpdate&&(r.update=w0.bind(null,n)),r}function y0(e,t){return e.rootComponent?Promise.resolve():e.loadRootComponent(t).then(function(n){e.rootComponent=n})}function v0(e,t){return new Promise(function(n,r){e.suppressComponentDidCatchWarning||!function(a){if(!(a&&typeof a.version=="string"&&a.version.indexOf(".")>=0))return!1;var c=a.version.slice(0,a.version.indexOf("."));try{return Number(c)>=16}catch{return!1}}(e.React)||e.errorBoundary||e.errorBoundaryClass||(e.rootComponent.prototype?e.rootComponent.prototype.componentDidCatch||console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent should implement componentDidCatch to avoid accidentally unmounting the entire single-spa application.")):console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent does not implement an error boundary. If using a functional component, consider providing an opts.errorBoundary to singleSpaReact(opts).")));var o=xd(e,t,function(){n(this)}),s=Ed(e,t)(),i=function(a){var c=a.reactDom,u=a.renderType,f=a.elementToRender,h=a.domElement,m=c[u];if(typeof m!="function")throw new Error('renderType "'.concat(u,'" did not return a function.'));switch(u){case"createRoot":case"unstable_createRoot":case"createBlockingRoot":case"unstable_createBlockingRoot":var g=m(h);return g.render(f),g;case"hydrateRoot":return m(h,f);case"hydrate":default:return m(f,h),null}}({elementToRender:o,domElement:s,reactDom:vi(e),renderType:C0(e)});e.domElements[t.name]=s,e.renderResults[t.name]=i})}function b0(e,t){return new Promise(function(n){e.unmountResolves[t.name]=n;var r=e.renderResults[t.name];r&&r.unmount?r.unmount():vi(e).unmountComponentAtNode(e.domElements[t.name]),delete e.domElements[t.name],delete e.renderResults[t.name]})}function w0(e,t){return new Promise(function(n){e.updateResolves[t.name]||(e.updateResolves[t.name]=[]),e.updateResolves[t.name].push(n);var r=xd(e,t,null),o=e.renderResults[t.name];if(o&&o.render)o.render(r);else{var s=Ed(e,t)();vi(e).render(r,s)}})}function vi(e){return e.ReactDOMClient||e.ReactDOM}function C0(e){return typeof e.renderType=="function"?e.renderType():e.renderType}function xd(e,t,n){var r=e.React.createElement(e.rootComponent,t),o=ar?e.React.createElement(ar.Provider,{value:t},r):r;return(e.errorBoundary||t.errorBoundary||e.errorBoundaryClass||t.errorBoundaryClass)&&(e.errorBoundaryClass=e.errorBoundaryClass||t.errorBoundaryClass||function(s,i){function a(c){s.React.Component.apply(this,arguments),this.state={caughtError:null,caughtErrorInfo:null},a.displayName="SingleSpaReactErrorBoundary(".concat(c.name,")")}return a.prototype=Object.create(s.React.Component.prototype),a.prototype.render=function(){return this.state.caughtError?(s.errorBoundary||i.errorBoundary)(this.state.caughtError,this.state.caughtErrorInfo,this.props):this.props.children},a.prototype.componentDidCatch=function(c,u){this.setState({caughtError:c,caughtErrorInfo:u})},a}(e,t),o=e.React.createElement(e.errorBoundaryClass,t,o)),o=e.React.createElement(e.SingleSpaRoot,Po(Po({},t),{},{mountFinished:n,updateFinished:function(){e.updateResolves[t.name]&&(e.updateResolves[t.name].forEach(function(s){return s()}),delete e.updateResolves[t.name])},unmountFinished:function(){e.unmountResolves[t.name]&&(e.unmountResolves[t.name](),delete e.unmountResolves[t.name])}}),o)}const S0=e=>{const t=new hp;return function(r){if(!r)throw new Error("Microfrontend did not receive any properties !!");const o=ko(r.module.name),s=r.domElement;return x.useEffect(()=>{s==null||s.setAttribute("data-pae-ui","")},[s]),l.jsx(Hi,{module:o,children:l.jsxs(vp,{client:t,children:[l.jsx(e,{...r}),l.jsx(Zh,{position:"top-right",reverseOrder:!0})]})})}},Ao=new Map,E0=e=>`style[data-pae-module="${CSS.escape(e)}"]`,x0=e=>{if(typeof document>"u")return;const t=Array.from(document.querySelectorAll(E0(e)));t.length!==0&&(t.forEach(n=>n.remove()),Ao.set(e,[...Ao.get(e)??[],...t]))},_0=e=>{if(typeof document>"u")return;const t=Ao.get(e);!t||t.length===0||(Ao.delete(e),t.forEach(n=>document.head.appendChild(n)))},T0=({rootComponent:e,...t})=>{const n=g0({errorBoundary(r){return console.error(r),l.jsx(ci,{})},...t,rootComponent:S0(e)});return{...n,mount:async r=>(r!=null&&r.name&&_0(r.name),n.mount(r)),unmount:async r=>{const o=await n.unmount(r);return r!=null&&r.name&&x0(r.name),o}}},P0=e=>{const t={authUser:{id:"testuser",username:"testuser",displayName:"Test User",applications:[]},catalog:[],authentication:{passwordMethodEnabled:!0,registerEnabled:!0,invitationsEnabled:!0,resetPasswordExpiration:3e4,passwordConstraints:{lowerCaseRequired:!1,upperCaseRequired:!1,symbolRequired:!1,digitRequired:!1,minLength:0,maxLength:8},sessionExpiration:864e5,jwtSecret:"",sessionIncludeOrigUser:!1,impersonationMode:"cookie",canImpersonateNonExistentUsers:!1,providers:[]},platformVersion:"0.0.0",featureFlags:{},fileStorageEnabled:!1};Object.defineProperty(window,Hn,{value:e?Of(t,e):t})},bi=()=>{const[e]=fn();return e.featureFlags},A0=e=>bi()[e],_d=({flag:e,children:t,fallback:n=null,invert:r=!1})=>{const s=bi()[e]===!0;return(r?!s:s)?l.jsx(l.Fragment,{children:t}):l.jsx(l.Fragment,{children:n})};_d.displayName="FeatureFlagGuard";const Td=x.createContext(null);function Pd(e){const t=["#FF6B6B","#4ECDC4","#45B7D1","#FFA07A","#98D8C8","#F7DC6F","#BB8FCE","#85C1E2","#F8B739","#52B788","#E74C3C","#3498DB","#9B59B6","#1ABC9C","#F39C12","#E67E22","#95A5A6","#34495E","#16A085","#27AE60"];let n=0;for(let o=0;o<e.length;o++)n=e.charCodeAt(o)+((n<<5)-n),n=n&n;const r=Math.abs(n)%t.length;return t[r]}const wi={JOIN_ROOM:"join_room",LEAVE_ROOM:"leave_room",USER_LIST:"user_list"},Ad=[1e3,2e3,4e3,8e3,16e3],O0=Ad.length,R0=({children:e})=>{const t=oa("@bluealba/pae-rooms-service"),[n,r]=x.useState([]),[o,s]=x.useState("loading"),i=x.useRef(null),a=x.useRef(!1),c=x.useRef(0),u=x.useRef(null),f=x.useRef(!0),h=x.useRef(()=>{}),m=x.useCallback(A=>new Promise((O,N)=>{const D=new WebSocket(A);let M=!1;D.onopen=()=>{M=!0,c.current=0,f.current&&s("connected"),O(D)},D.addEventListener("message",async U=>{try{const W=await p(U);W.event===wi.USER_LIST&&E(W.data)}catch(W){console.error("Error parsing WebSocket message:",W)}}),D.onerror=U=>{console.error("Rooms WebSocket error",U)},D.onclose=()=>{if(i.current!==D){M||N(new Error("WebSocket connection replaced"));return}a.current?f.current&&s("closed"):h.current(),M||N(new Error("WebSocket connection failed"))},i.current=D}),[]),g=x.useCallback(()=>{if(!t||!f.current)return;if(c.current>=O0){s("error");return}const A=Ad[c.current];c.current++,s("reconnecting"),u.current=setTimeout(()=>{f.current&&t&&m(t).catch(()=>{})},A)},[t,m]);h.current=g;const S=x.useCallback(()=>{if(!t)return;u.current&&(clearTimeout(u.current),u.current=null);const A=i.current;A&&A.readyState!==WebSocket.CLOSED&&(a.current=!0,A.close()),c.current=0,a.current=!1,s("loading"),m(t)},[t,m]);x.useEffect(()=>{if(f.current=!0,a.current=!1,t)return m(t),()=>{var A;f.current=!1,u.current&&(clearTimeout(u.current),u.current=null),a.current=!0,(A=i.current)==null||A.close()}},[t,m]),x.useEffect(()=>{const A=()=>{if(document.visibilityState!=="visible")return;const O=i.current;O&&O.readyState===WebSocket.OPEN||(u.current&&(clearTimeout(u.current),u.current=null),c.current=0,S())};return document.addEventListener("visibilitychange",A),()=>{document.removeEventListener("visibilitychange",A)}},[S]);const p=async A=>{if(A.data instanceof Blob){const O=await A.data.text();return JSON.parse(O)}else return JSON.parse(A.data)},y=(A,O)=>{const N=i.current;!N||N.readyState!==WebSocket.OPEN||setTimeout(()=>{N.send(JSON.stringify({event:A,data:O}))},100)},v=A=>{y(wi.JOIN_ROOM,{roomId:A})},w=A=>{y(wi.LEAVE_ROOM,{roomId:A})},E=A=>{r(A.map(O=>({...O,username:O.username.toLowerCase(),color:Pd(O.username)})))},T=x.useCallback(A=>n.filter(O=>O.rooms.includes(A)),[n]),P={status:o,getRoomUsers:T,joinRoom:v,leaveRoom:w,reconnect:S};return l.jsx(Td.Provider,{value:P,children:e})},Od={autoJoin:!0,autoLeave:!0};function j0(e,t=Od){const{autoJoin:n,autoLeave:r}=t,o=x.useContext(Td),{authUser:s}=qn();if(!o)throw new Error("useRoom must be used within RoomsProvider");const i=x.useRef(!1),a=()=>{if(n){console.warn("[useRoom] Ignoring manual joinRoom call because autoJoin is enabled.",{roomId:e});return}return i.current=!0,o.joinRoom(e)},c=()=>{if(r){console.warn("[useRoom] Ignoring manual leaveRoom call because autoLeave is enabled.",{roomId:e});return}return i.current=!1,o.leaveRoom(e)};x.useEffect(()=>{if(!(!e||o.status!=="connected"))return(n||i.current)&&o.joinRoom(e),()=>{r&&o.status==="connected"&&o.leaveRoom(e)}},[o.status,e]);const u=o.getRoomUsers(e),f=u.findIndex(h=>h.username===(s==null?void 0:s.username))!==-1;return{users:u,roomId:e,hasJoined:f,joinRoom:a,leaveRoom:c,reconnect:o.reconnect}}const cr={container:"container__LbyGQ",avatarWrapper:"avatarWrapper__HCQIZ",avatar:"avatar__E453a",overflowWrapper:"overflowWrapper__ETnPO",overflowBadge:"overflowBadge__igBKT"},I0={sm:24,md:32,lg:40},D0=({users:e,maxVisible:t=5,size:n="md",overlap:r=!0,className:o="",onUserClick:s})=>{const i=I0[n],a=x.useMemo(()=>e.slice(0,t),[e,t]),c=x.useMemo(()=>e.slice(t),[e,t]),u=Math.max(0,e.length-t),f=h=>h.split(" ").map(m=>m[0]).join("").toUpperCase().slice(0,2);return l.jsxs("div",{className:L(cr.container,o),children:[a.map((h,m)=>l.jsx(Pn,{tooltipContent:h.displayName,side:"bottom",children:l.jsx("div",{className:cr.avatarWrapper,style:{marginLeft:m>0&&r?`-${i*.25}px`:void 0},onClick:()=>s==null?void 0:s(h),children:l.jsx("div",{className:cr.avatar,style:{width:i,height:i,backgroundColor:h.color,fontSize:n==="sm"?"10px":n==="md"?"12px":"14px",cursor:s?"pointer":"default"},children:f(h.displayName)})})},h.username)),u>0&&l.jsx(Pn,{side:"bottom",tooltipContent:l.jsx("div",{children:c.map(h=>l.jsx("p",{children:h.displayName},h.username))}),children:l.jsx("div",{className:cr.overflowWrapper,style:{marginLeft:r?`-${i*.25}px`:void 0},children:l.jsxs("div",{className:cr.overflowBadge,style:{width:i,height:i,fontSize:n==="sm"?"10px":n==="md"?"12px":"14px"},children:["+",u]})})})]})};tf(),_.Alert=To,_.ApplicationIcon=lc,_.Authorized=ps,_.Badge=ys,_.Badges=vs,_.Button=Ur,_.ClipboardCheckIcon=yc,_.ClipboardIcon=gc,_.ConfirmDialog=rd,_.CopyToClipboardButton=a1,_.DEFAULT_OPTIONS=Od,_.Dialog=ve,_.DropdownList=vo,_.EmptyState=gi,_.ErrorState=ci,_.ExtendExtensionPoint=Qp,_.ExtensionPoint=oc,_.EyeIcon=Ru,_.FeatureFlagGuard=_d,_.FieldGroup=bc,_.FragmentSlot=wd,_.Input=Hr,_.InputError=Cc,_.Label=Ec,_.List=Je,_.ModulePlaceHolder=cc,_.Pagination=ui,_.PaginationContent=di,_.PaginationEllipsis=pi,_.PaginationItem=sr,_.PaginationLink=ir,_.PaginationNext=hi,_.PaginationPrevious=fi,_.PasswordInput=Lv,_.Pill=o0,_.PlatformEventListener=e1,_.PlatformEvents=nf,_.PluralizeCounter=mi,_.PortalContainerProvider=gv,_.RoomAvatars=D0,_.RoomsProvider=R0,_.SearchAutocomplete=Su,_.SearchInput=ri,_.Select=ws,_.Select2=iu,_.Show=Tt,_.Skeleton=wo,_.SkeletonList=_u,_.Spinner=Pu,_.StyleRegistry=Io,_.Switch=Au,_.Table=vd,_.Tabs=Rv,_.TabsContent=Dv,_.TabsList=jv,_.TabsTrigger=Iv,_.TextArea=au,_.TextWithTooltip=wu,_.ThemeToggle=bd,_.Tooltip=Pn,_.authorized=h0,_.dropdownListStyles=Jt,_.extensionPoint=Zp,_.generateUserColor=Pd,_.getApplications=Mo,_.getInitials=bf,_.getOperations=Vi,_.hasAccess=qi,_.initializeMicroFrontend=T0,_.isPlatformCustomizationCompleted=ah,_.isValidEmail=vf,_.logout=mf,_.navigateTo=gf,_.platformHaveAnyCustomization=ih,_.setupTestEnvironment=P0,_.useAppStatus=hs,_.useApplicationIcon=ea,_.useApplicationJSModule=yr,_.useApplicationMenu=_f,_.useApplicationUIModule=Ji,_.useApplications=Zi,_.useAuth=qn,_.useCatalog=hn,_.useCurrentApplication=Fo,_.useCurrentApplicationName=ra,_.useCurrentJSModule=Df,_.useDynamicFonts=ua,_.useDynamicStyleSheet=la,_.useExtendExtensionPoint=aa,_.useExtensionPoint=ia,_.useFeatureFlag=A0,_.useFeatureFlags=bi,_.useFileStorage=Kp,_.useGetPlatformTheme=sh,_.useHasNoSession=ff,_.useLocation=Fi,_.useModule=ko,_.useModuleCommonPaths=pf,_.useModuleConfig=Gi,_.useModuleConfigByName=Ki,_.useModuleMenu=ta,_.useModuleMetadata=zn,_.useMutableCatalog=cf,_.useNotifications=Xo,_.useOperations=zi,_.usePAECustomizationsLoadingState=oh,_.usePAEState=fn,_.usePlatformCustomization=rh,_.usePlatformEventListener=ca,_.usePortalContainer=ni,_.useResource=Rp,_.useResourceActions=Za,_.useRoom=j0,_.useServiceBaseURL=Bo,_.useServiceInvoker=Uo,_.useServiceWebSocketURL=oa,_.useTenants=Hp,_.useTheme=hc,_.useTrackEvent=Ff,_.useTrackEvents=sa,_.useUIApplications=Xi,_.useUserState=zp,Object.defineProperty(_,Symbol.toStringTag,{value:"Module"})});
255
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return d.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Xv="DialogDescriptionWarning",Jv=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Qu(Xv).contentName}}.`;return d.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},e0=Mu,t0=Fu,n0=Bu,r0=Uu,o0=Hu,s0=zu,i0=Gu;const Yu={Overlay:"Overlay__M5Z83",Content:"Content__wAkP4"},tn={Header:"Header__VHxNf",Content:"Content__I04qM",Close:"Close__xSN-7",Title:"Title__Dznh6",Description:"Description__ALT2w",Footer:"Footer__-8gzQ",Actions:"Actions__kKF2Q"},Zu=x.forwardRef(({children:e,className:t,...n},r)=>{const o=L(tn.Header,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});Zu.displayName="Header";const Xu=x.forwardRef(({children:e,className:t,...n},r)=>{const o=L(tn.Content,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});Xu.displayName="Content";const Ju=x.forwardRef(({children:e,className:t,...n},r)=>{const o=L(tn.Footer,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});Ju.displayName="Footer";const ed=x.forwardRef(({children:e,className:t,...n},r)=>{const o=L(tn.Title,t);return u.jsx(o0,{ref:r,className:o,...n,children:e})});ed.displayName="Title";const td=x.forwardRef(({className:e,...t},n)=>{const r=L(tn.Close,e);return u.jsx(i0,{ref:n,asChild:!0,className:r,...t,children:u.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M11 1L1 11M1 1L11 11",stroke:"#A9A9A9",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})});td.displayName="Close";const nd=x.forwardRef(({children:e,className:t,...n},r)=>{const o=L(tn.Actions,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});nd.displayName="Actions";const rd=x.forwardRef(({children:e,className:t,...n},r)=>{const o=L(tn.Description,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});rd.displayName="Description";const ve=({children:e,onClose:t,open:n=!1,className:r,zIndexLevel:o=0})=>{const s=()=>{t==null||t()},i={zIndex:`calc(var(--platform-modal-layer) + ${o*2})`},a={zIndex:`calc(var(--platform-modal-layer) + ${o*2+1})`},c=ni();return u.jsx(e0,{onOpenChange:s,open:n,children:u.jsxs(t0,{container:c,children:[u.jsx(n0,{className:Yu.Overlay,style:i}),u.jsxs(r0,{children:[u.jsx(s0,{}),u.jsx("div",{className:L(Yu.Content,r),style:a,children:e})]})]})})};ve.displayName="Dialog",ve.Header=Zu,ve.Content=Xu,ve.Footer=Ju,ve.Actions=nd,ve.Title=ed,ve.Description=rd,ve.Close=td;const od={pill:"pill__vtGwB","pill--solid":"pill--solid__F-mR4",pillSolid:"pill--solid__F-mR4","pill--outline":"pill--outline__gC-mh",pillOutline:"pill--outline__gC-mh"},a0=({children:e,variant:t="solid",className:n})=>{const r=L(od.pill,od[`pill--${t}`],n);return u.jsx("div",{className:r,children:e})},sd={DialogContent:"DialogContent__-WjG9",Message:"Message__AUgVP"},id=({loading:e,title:t,children:n,className:r,onClose:o,onConfirm:s,zIndexLevel:i=1,...a})=>u.jsxs(ve,{...a,zIndexLevel:i,className:L(sd.DialogContent,r),children:[u.jsxs(ve.Header,{children:[u.jsx(ve.Title,{children:t}),u.jsx(ve.Close,{onClick:o})]}),u.jsx(ve.Content,{children:typeof n=="string"?u.jsx("p",{className:sd.Message,children:n}):n}),u.jsx(ve.Footer,{children:u.jsxs(ve.Actions,{children:[u.jsx(Wr,{onClick:o,disabled:e,variant:"outlined",children:"Cancel"}),u.jsx(Wr,{onClick:s,disabled:e,loading:e,variant:"contained",children:"Confirm"})]})})]});id.displayName="ConfirmDialog";const _o={container:"container__AjtYJ",title:"title__A2vCu",description:"description__bP6Ig",mailToText:"mailToText__SdlsE"},ad=()=>u.jsxs("svg",{width:"200",height:"200",viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{d:"M184.415 152.221C183.936 151.406 183.401 150.621 182.892 149.824C181.61 147.817 180.327 145.809 179.045 143.801C177.102 140.759 175.159 137.717 173.215 134.676C170.766 130.841 168.316 127.006 165.866 123.171C163.068 118.79 160.27 114.41 157.472 110.03C154.484 105.352 151.496 100.674 148.508 95.9965C145.474 91.2464 142.439 86.4963 139.405 81.7463C136.513 77.2189 133.621 72.6915 130.729 68.1641C128.123 64.084 125.517 60.0039 122.91 55.9238C120.748 52.5389 118.586 49.1541 116.424 45.7692C114.864 43.3273 113.304 40.8854 111.744 38.4436C110.943 37.1899 110.142 35.9362 109.342 34.6825C108.765 33.7802 108.096 32.9744 107.292 32.2572C104.604 29.8584 100.572 29.2302 97.2301 30.5252C94.5951 31.5463 92.6177 33.3853 91.0923 35.7373C90.8768 36.0696 90.6658 36.405 90.4526 36.7387C89.3951 38.3941 88.3378 40.0494 87.2803 41.7049C85.5124 44.4725 83.7444 47.2402 81.9765 50.0079C79.644 53.6594 77.3114 57.3111 74.9788 60.9626C72.2632 65.2138 69.5477 69.465 66.8321 73.7162C63.8817 78.3349 60.9313 82.9536 57.9811 87.5722C54.9542 92.3106 51.9274 97.0491 48.9006 101.787C45.9557 106.398 43.0107 111.008 40.0658 115.618C37.3487 119.872 34.6316 124.125 31.9145 128.379C29.6106 131.986 27.3067 135.592 25.0028 139.199C23.2565 141.933 21.5101 144.667 19.7639 147.4C18.7335 149.013 17.7031 150.626 16.6728 152.239C14.8665 155.067 13.7231 158.171 14.23 161.595C14.9672 166.576 19.2366 170.131 24.2215 170.137C25.559 170.139 26.8963 170.137 28.2338 170.137C30.9198 170.137 33.6058 170.137 36.2918 170.137C40.0725 170.137 43.8533 170.137 47.6341 170.137C52.2557 170.137 56.8772 170.137 61.4989 170.137C66.7339 170.137 71.969 170.137 77.204 170.137C82.7467 170.137 88.2894 170.137 93.8322 170.137C99.4529 170.137 105.074 170.137 110.694 170.137C116.139 170.137 121.584 170.137 127.029 170.137C132.044 170.137 137.06 170.137 142.075 170.137C146.425 170.137 150.776 170.137 155.127 170.137C158.516 170.137 161.904 170.137 165.293 170.137C167.49 170.137 169.686 170.137 171.883 170.137C172.633 170.137 173.384 170.137 174.135 170.137C178.404 170.087 182.136 167.627 184.212 163.932C186.248 160.307 186.562 155.866 184.415 152.221ZM94.0937 37.3471C94.0897 37.3539 94.0862 37.3597 94.0824 37.3661C94.0826 37.3652 94.0831 37.3642 94.0833 37.3632C94.0844 37.3581 94.0909 37.3518 94.0937 37.3471ZM178.584 164.489C178.476 164.538 178.524 164.516 178.584 164.489V164.489ZM180.937 162.79C180.979 162.72 181.118 162.485 181.127 162.498C181.145 162.528 181.058 162.647 180.937 162.79ZM181.821 160.333C181.806 160.446 181.782 160.646 181.773 160.697C181.736 160.919 181.686 161.139 181.637 161.359C181.637 161.359 181.637 161.359 181.637 161.359C181.629 161.377 181.621 161.399 181.61 161.426C181.54 161.604 181.472 161.785 181.406 161.965C181.402 161.977 181.398 161.988 181.394 161.999C181.304 162.16 181.219 162.323 181.123 162.481C181.074 162.562 181.016 162.641 180.97 162.724C180.949 162.762 180.936 162.785 180.93 162.798C180.727 163.035 180.436 163.332 180.388 163.385C180.696 163.049 180.535 163.229 180.318 163.42C180.172 163.548 180.018 163.666 179.869 163.79C179.848 163.807 179.831 163.822 179.816 163.835C179.797 163.845 179.775 163.857 179.747 163.873C179.576 163.97 179.411 164.078 179.238 164.171C179.043 164.277 178.844 164.373 178.642 164.463C178.556 164.494 178.471 164.526 178.384 164.553C177.532 164.819 176.835 164.945 176.084 164.954C175.296 164.954 174.508 164.954 173.719 164.954C171.519 164.954 169.318 164.954 167.118 164.954C163.751 164.954 160.385 164.954 157.019 164.954C152.756 164.954 148.493 164.954 144.231 164.954C139.275 164.954 134.319 164.954 129.364 164.954C123.981 164.954 118.598 164.954 113.215 164.954C107.651 164.954 102.086 164.954 96.5224 164.954C91.024 164.954 85.5255 164.954 80.0271 164.954C74.8407 164.954 69.6543 164.954 64.4679 164.954C59.8401 164.954 55.2123 164.954 50.5846 164.954C46.7784 164.954 42.9721 164.954 39.166 164.954C36.3891 164.954 33.6122 164.954 30.8354 164.954C29.3555 164.954 27.8756 164.954 26.3957 164.954C25.9641 164.954 25.534 164.958 25.1029 164.922C23.4511 164.785 22.11 164.207 20.7626 163.127C20.3445 162.792 19.7301 162.074 19.3142 161.434C19.2096 161.273 19.1102 161.109 19.0161 160.942C18.9707 160.861 18.8013 160.534 18.8105 160.558C18.7451 160.414 18.5329 159.846 18.4422 159.537C18.3467 159.211 18.2692 158.879 18.2129 158.544C18.2174 158.545 18.1876 158.285 18.1815 158.192C18.1669 157.964 18.1617 157.736 18.1651 157.508C18.166 157.455 18.1793 157.245 18.185 157.131C18.2055 157.005 18.2441 156.74 18.2591 156.662C18.2913 156.493 18.3319 156.326 18.3726 156.16C18.2821 156.539 18.4099 156.072 18.4891 155.866C18.518 155.79 18.6652 155.487 18.6846 155.432C18.7383 155.339 18.7932 155.243 18.8125 155.21C18.8692 155.114 18.9282 155.019 18.9875 154.924C19.0003 154.904 19.0137 154.884 19.0265 154.863C19.2211 154.554 19.4201 154.247 19.617 153.939C20.6335 152.348 21.6501 150.756 22.6667 149.165C24.3869 146.472 26.107 143.779 27.8271 141.086C30.0848 137.552 32.3425 134.017 34.6001 130.483C37.2646 126.312 39.9291 122.141 42.5935 117.97C45.5011 113.418 48.4086 108.866 51.3161 104.315C54.3131 99.6229 57.31 94.9312 60.3069 90.2397C63.2394 85.6489 66.172 81.058 69.1045 76.4672C71.819 72.2178 74.5334 67.9683 77.2479 63.719C79.5904 60.0517 81.9331 56.3844 84.2756 52.7172C86.0852 49.8842 87.8948 47.0513 89.7044 44.2184C90.8459 42.4315 91.9873 40.6446 93.1287 38.8578C93.3976 38.4368 93.6701 38.0178 93.9356 37.5945C93.9507 37.5705 93.9737 37.5416 93.9972 37.511C93.8744 37.7231 94.1597 37.2638 94.301 37.0921C94.4017 36.9695 94.5483 36.8114 94.5423 36.8113C94.6372 36.721 94.7333 36.6319 94.8323 36.546C94.9866 36.4121 95.1478 36.2876 95.3084 36.1615C94.9392 36.4513 95.3917 36.1121 95.5441 36.0212C96.7591 35.2961 98.1095 34.9498 99.7068 35.0725C101.356 35.1993 102.702 35.7434 104.07 36.8307C104.685 37.3192 105.311 38.1542 105.817 38.9457C106.592 40.1592 107.367 41.3727 108.142 42.5862C109.667 44.9733 111.192 47.3605 112.717 49.7476C114.838 53.0679 116.959 56.3881 119.08 59.7083C121.629 63.6999 124.179 67.6913 126.729 71.6829C129.579 76.1455 132.43 80.6082 135.281 85.0709C138.267 89.7458 141.253 94.4206 144.239 99.0955C147.207 103.742 150.176 108.388 153.144 113.035C155.94 117.412 158.736 121.789 161.532 126.167C164.002 130.034 166.473 133.902 168.943 137.769C170.935 140.886 172.926 144.003 174.917 147.12C176.27 149.239 177.623 151.357 178.976 153.475C179.551 154.376 180.134 155.272 180.702 156.177C181.138 156.872 181.311 157.219 181.54 157.972C181.6 158.167 181.652 158.363 181.697 158.561C181.711 158.623 181.759 158.873 181.78 158.97C181.787 159.063 181.815 159.319 181.819 159.383C181.831 159.579 181.836 159.775 181.834 159.972C181.834 160.022 181.825 160.217 181.821 160.333Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M98.5821 122.507C99.019 122.759 99.6307 122.629 100.038 122.389C101.205 121.703 101.925 120.275 102.041 118.92C103.115 106.361 106.514 75.1051 106.514 68.3062C106.514 59.902 92.8134 60.6835 92.0664 71.3279C91.6887 76.7103 97.5083 119.581 97.8266 121.187C97.9188 121.652 98.1423 122.253 98.5821 122.507Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M101.841 133.945C101.826 133.94 101.812 133.934 101.797 133.929C98.2767 132.6 94.4012 134.976 93.9964 138.717C93.9765 138.901 93.9636 139.086 93.958 139.272C93.8552 142.712 96.4467 146.126 99.8464 146.664C103.245 147.201 106.896 144.494 107.099 141.059C107.285 137.909 104.789 135.072 101.841 133.945Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M161.729 131.662C161.873 131.367 162.082 130.81 161.71 130.584C161.365 130.375 160.901 130.836 160.768 131.107C156.804 139.201 152.84 147.295 148.877 155.389C147.759 157.67 146.642 159.952 145.525 162.233C145.38 162.528 145.171 163.085 145.543 163.311C145.888 163.52 146.352 163.059 146.485 162.788C150.449 154.694 154.413 146.6 158.377 138.506C159.494 136.225 160.611 133.943 161.729 131.662Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M144.786 152.64C144.441 152.43 143.977 152.891 143.844 153.163C142.363 156.187 140.882 159.21 139.402 162.234C139.257 162.528 139.048 163.085 139.42 163.311C139.765 163.521 140.229 163.06 140.362 162.788C141.843 159.764 143.323 156.741 144.804 153.717C144.948 153.423 145.158 152.866 144.786 152.64Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M136.792 156.459C136.447 156.25 135.983 156.711 135.85 156.982C134.993 158.733 134.136 160.483 133.279 162.233C133.134 162.528 132.925 163.085 133.297 163.311C133.642 163.52 134.106 163.06 134.239 162.788C135.096 161.037 135.953 159.287 136.81 157.537C136.955 157.242 137.164 156.685 136.792 156.459Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M129.1 159.663C128.755 159.454 128.291 159.915 128.158 160.186C127.824 160.869 127.49 161.551 127.155 162.234C127.011 162.528 126.802 163.086 127.174 163.311C127.519 163.521 127.983 163.06 128.116 162.788C128.45 162.106 128.784 161.423 129.118 160.741C129.263 160.447 129.472 159.889 129.1 159.663Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M165.835 137.946C165.979 137.652 166.188 137.094 165.816 136.868C165.471 136.659 165.007 137.12 164.874 137.392C161.72 143.832 158.566 150.273 155.412 156.713C154.511 158.553 153.609 160.393 152.708 162.233C152.564 162.528 152.355 163.085 152.726 163.311C153.071 163.52 153.535 163.06 153.669 162.788C156.823 156.347 159.977 149.907 163.131 143.466C164.032 141.626 164.933 139.786 165.835 137.946Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M169.923 143.153C169.578 142.943 169.114 143.404 168.98 143.676C165.951 149.862 162.921 156.048 159.892 162.234C159.748 162.528 159.538 163.086 159.91 163.311C160.255 163.521 160.719 163.06 160.852 162.788C163.882 156.602 166.911 150.416 169.941 144.23C170.085 143.936 170.294 143.378 169.923 143.153Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M174.332 148.821C173.987 148.611 173.523 149.072 173.39 149.344C171.286 153.64 169.182 157.937 167.077 162.234C166.933 162.528 166.724 163.086 167.095 163.311C167.44 163.521 167.905 163.06 168.038 162.788C170.142 158.492 172.246 154.195 174.351 149.898C174.495 149.604 174.704 149.046 174.332 148.821Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M178.197 155.597C177.852 155.387 177.388 155.848 177.255 156.12C176.257 158.158 175.259 160.196 174.261 162.233C174.117 162.528 173.907 163.085 174.279 163.311C174.624 163.52 175.088 163.06 175.221 162.788C176.219 160.75 177.217 158.712 178.215 156.674C178.36 156.38 178.569 155.823 178.197 155.597Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M97.1962 40.2135C97.3477 39.9803 97.4773 39.477 97.1807 39.2971C96.8678 39.1072 96.5194 39.5265 96.3794 39.7419C94.7034 42.3205 93.0556 44.9176 91.4179 47.5205C88.1743 52.6759 84.976 57.8633 81.9271 63.1367C80.4155 65.7509 78.9283 68.3855 77.5879 71.0925C77.4642 71.3423 77.2879 71.8174 77.6034 72.0088C77.8975 72.1874 78.2905 71.7947 78.4047 71.564C80.9657 66.3919 83.9726 61.4308 86.9671 56.5018C89.7369 51.9427 92.5713 47.4226 95.4474 42.9297C96.0279 42.0228 96.6094 41.1164 97.1962 40.2135Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M75.3224 76.1247C75.0193 75.9408 74.6477 76.3459 74.521 76.5695C74.1645 77.1991 73.808 77.8286 73.4515 78.4581C73.3144 78.7003 73.1605 79.1884 73.467 79.3744C73.77 79.5583 74.1416 79.1532 74.2684 78.9296C74.6248 78.3001 74.9814 77.6705 75.3378 77.0411C75.475 76.7988 75.6288 76.3107 75.3224 76.1247Z",fill:"var(--pae-shell-color-secondary)"})]});ad.displayName="WarningIcon";const c0="support@bluealba.com",l0="@bluealba/pae-shell-ui",ci=()=>{const{supportEmail:e=c0}=Yi(l0),t=`mailto:${e}?Subject=Support`;return u.jsxs("div",{className:_o.container,children:[u.jsx(ad,{}),u.jsx("div",{className:_o.title,children:"Oops! Something went wrong"}),u.jsxs("div",{className:_o.description,children:["If the error persists, ",u.jsx("a",{className:_o.mailToText,href:t,children:"contact the administrator."})]})]})};ci.displayName="ErrorState";const Ue={List:"List__h09XG",list:"List__h09XG",Item:"Item__YMy2i",item:"Item__YMy2i","List--primary":"List--primary__J2pbx",listPrimary:"List--primary__J2pbx","List--secondary":"List--secondary__gi1ao",listSecondary:"List--secondary__gi1ao","Item--selected":"Item--selected__yRWow",itemSelected:"Item--selected__yRWow",Title:"Title__RJmEW",title:"Title__RJmEW",Description:"Description__DGyX2",description:"Description__DGyX2",Actions:"Actions__UHP5l",actions:"Actions__UHP5l",Action:"Action__q-R1I",action:"Action__q-R1I","Item--disabled":"Item--disabled__Ke1u-",itemDisabled:"Item--disabled__Ke1u-","List--small":"List--small__ijoSR",listSmall:"List--small__ijoSR","List--medium":"List--medium__E1FEY",listMedium:"List--medium__E1FEY","List--large":"List--large__T8tfz",listLarge:"List--large__T8tfz",Icon:"Icon__dFr-L",icon:"Icon__dFr-L"},cd=x.forwardRef(({children:e,className:t,selected:n,disabled:r=!1,...o},s)=>{const i=L(Ue.Item,{[Ue["Item--selected"]]:n,[Ue["Item--disabled"]]:r},t);return u.jsx("li",{ref:s,className:i,role:"listitem","aria-disabled":r,...o,children:e})});cd.displayName="Item";const ld=x.forwardRef(({children:e,className:t,...n},r)=>{const o=L(Ue.Title,t);return u.jsx("h3",{ref:r,className:o,...n,children:e})});ld.displayName="Title";const ud=x.forwardRef(({children:e,className:t,...n},r)=>{const o=L(Ue.Description,t);return u.jsx("p",{ref:r,className:o,...n,children:e})});ud.displayName="Description";const li=({className:e,...t})=>u.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:[u.jsx("path",{d:"M6 6.5C6.27614 6.5 6.5 6.27614 6.5 6C6.5 5.72386 6.27614 5.5 6 5.5C5.72386 5.5 5.5 5.72386 5.5 6C5.5 6.27614 5.72386 6.5 6 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M9.5 6.5C9.77614 6.5 10 6.27614 10 6C10 5.72386 9.77614 5.5 9.5 5.5C9.22386 5.5 9 5.72386 9 6C9 6.27614 9.22386 6.5 9.5 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M2.5 6.5C2.77614 6.5 3 6.27614 3 6C3 5.72386 2.77614 5.5 2.5 5.5C2.22386 5.5 2 5.72386 2 6C2 6.27614 2.22386 6.5 2.5 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"})]});li.displayName="HorizontalDots";const dd=x.forwardRef(({children:e,className:t,onClick:n,...r},o)=>{const s=x.useRef(null),[i,a]=x.useState(!1),c=L(Ue.Actions,t),l=()=>{const S=Jt["DropdownList--open"],p=Jt["DropdownList--closed"];document.querySelectorAll(`.${S}`).forEach(v=>{v!==s.current&&(v.classList.remove(S),v.classList.add(p))})},f=S=>{S.stopPropagation(),i?h():(a(!0),n==null||n(S))},h=()=>{a(!1)},m=S=>{S.key==="Escape"&&h()},g=S=>{s.current&&!s.current.contains(S.target)&&h()};return x.useEffect(()=>(i?(l(),document.addEventListener("keydown",m),document.addEventListener("click",g)):(document.removeEventListener("keydown",m),document.removeEventListener("click",g)),()=>{document.removeEventListener("keydown",m),document.removeEventListener("click",g)}),[i]),u.jsxs("div",{ref:o,className:c,onClick:f,role:"button",tabIndex:0,"data-testid":"actions",...r,children:[u.jsx(li,{}),u.jsx(bo,{align:"left",ref:s,open:i,"data-testid":"actions-dropdown",role:"menu","aria-label":"Actions",children:e})]})});dd.displayName="Actions";const fd=x.forwardRef(({children:e,className:t,...n},r)=>{const o=L(Ue.Action,t);return u.jsx("button",{ref:r,className:o,...n,children:e})});fd.displayName="Action";const hd=x.forwardRef(({children:e,className:t,...n},r)=>{const o=L(Ue.Icon,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});hd.displayName="Icon";const Je=x.forwardRef(({children:e,className:t,size:n="medium",variant:r,...o},s)=>{const i=L(Ue.List,{[Ue[`List--${n}`]]:n,[Ue[`List--${r}`]]:r},t);return u.jsx("ul",{ref:s,className:i,role:"list",...o,children:e})});Je.displayName="List",Je.Item=cd,Je.Badges=vs,Je.Badge=ys,Je.Title=ld,Je.Description=ud,Je.Actions=dd,Je.Action=fd,Je.Icon=hd;const ut={Navigation:"Navigation__uylxk",PaginationContent:"PaginationContent__UpLw0",PaginationEllipsis:"PaginationEllipsis__perWk",PaginationLink:"PaginationLink__GVUZj",Active:"Active__u1Ahy",Disabled:"Disabled__8WM0y",Prev:"Prev__wp4hc",Next:"Next__eVyL5"},pd=({className:e,...t})=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,...t,children:[u.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),u.jsx("path",{d:"M9 6l6 6l-6 6"})]});pd.displayName="ChevronRight";const md=({className:e,...t})=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,...t,children:[u.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),u.jsx("path",{d:"M15 6l-6 6l6 6"})]});md.displayName="ChevronLeft";const ui=({className:e,...t})=>u.jsx("nav",{role:"navigation","aria-label":"pagination",className:L(ut.Navigation,e),...t});ui.displayName="Pagination";const di=d.forwardRef(({className:e,...t},n)=>u.jsx("ul",{ref:n,className:L(ut.PaginationContent,e),...t}));di.displayName="PaginationContent";const ir=d.forwardRef(({className:e,...t},n)=>u.jsx("li",{ref:n,className:e,...t}));ir.displayName="PaginationItem";const ar=({className:e,isActive:t,...n})=>u.jsx("a",{"aria-current":t?"page":void 0,className:L(ut.PaginationLink,t&&ut.Active,e),...n});ar.displayName="PaginationLink";const fi=({className:e,disabled:t,...n})=>u.jsxs(ar,{"aria-label":"Go to previous page",className:L(t&&ut.Disabled,ut.Prev,e),...n,children:[u.jsx(md,{}),u.jsx("span",{children:"Previous"})]});fi.displayName="PaginationPrevious";const hi=({className:e,disabled:t,...n})=>u.jsxs(ar,{"aria-label":"Go to next page",className:L(t&&ut.Disabled,ut.Next,e),...n,children:[u.jsx("span",{children:"Next"}),u.jsx(pd,{})]});hi.displayName="PaginationNext";const pi=({className:e,...t})=>u.jsx("span",{"aria-hidden":!0,className:L(ut.PaginationEllipsis,e),...t,children:u.jsx(li,{})});pi.displayName="PaginationEllipsis";function u0(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var gd={exports:{}};(function(e,t){(function(n,r){typeof u0=="function"?e.exports=r():n.pluralize=r()})(hf,function(){var n=[],r=[],o={},s={},i={};function a(p){return typeof p=="string"?new RegExp("^"+p+"$","i"):p}function c(p,y){return p===y?y:p===p.toLowerCase()?y.toLowerCase():p===p.toUpperCase()?y.toUpperCase():p[0]===p[0].toUpperCase()?y.charAt(0).toUpperCase()+y.substr(1).toLowerCase():y.toLowerCase()}function l(p,y){return p.replace(/\$(\d{1,2})/g,function(v,w){return y[w]||""})}function f(p,y){return p.replace(y[0],function(v,w){var E=l(y[1],arguments);return c(v===""?p[w-1]:v,E)})}function h(p,y,v){if(!p.length||o.hasOwnProperty(p))return y;for(var w=v.length;w--;){var E=v[w];if(E[0].test(y))return f(y,E)}return y}function m(p,y,v){return function(w){var E=w.toLowerCase();return y.hasOwnProperty(E)?c(w,E):p.hasOwnProperty(E)?c(w,p[E]):h(E,w,v)}}function g(p,y,v,w){return function(E){var T=E.toLowerCase();return y.hasOwnProperty(T)?!0:p.hasOwnProperty(T)?!1:h(T,T,v)===T}}function S(p,y,v){var w=y===1?S.singular(p):S.plural(p);return(v?y+" ":"")+w}return S.plural=m(i,s,n),S.isPlural=g(i,s,n),S.singular=m(s,i,r),S.isSingular=g(s,i,r),S.addPluralRule=function(p,y){n.push([a(p),y])},S.addSingularRule=function(p,y){r.push([a(p),y])},S.addUncountableRule=function(p){if(typeof p=="string"){o[p.toLowerCase()]=!0;return}S.addPluralRule(p,"$0"),S.addSingularRule(p,"$0")},S.addIrregularRule=function(p,y){y=y.toLowerCase(),p=p.toLowerCase(),i[p]=y,s[y]=p},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(p){return S.addIrregularRule(p[0],p[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(p){return S.addPluralRule(p[0],p[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(p){return S.addSingularRule(p[0],p[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(S.addUncountableRule),S})})(gd);var d0=gd.exports;const f0=pf(d0),mi=({count:e,singularText:t,children:n=(r,o)=>`${r} ${o}`})=>u.jsx(u.Fragment,{children:n(e,f0(t,e))});mi.displayName="PluralizeCounter";const _e={TableContainer:"TableContainer__osh6Z",TableHeader:"TableHeader__sYa-8",Table:"Table__2cIs3",selectable:"selectable__WsGg1",Cell:"Cell__ZEv-K",Right:"Right__YoM1V",Center:"Center__CF3tr",Sortable:"Sortable__JIV1V",SortIcon:"SortIcon__f0bBy",Active:"Active__rJjxB",Rotate:"Rotate__7cwTK",Pagination:"Pagination__sbqMP",PointerNone:"PointerNone__kQdQS"},yd={EmptyStateContainer:"EmptyStateContainer__Q9FEb",Message:"Message__IHK6M"},vd=({size:e=64})=>u.jsxs("svg",{width:e,height:e,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsxs("g",{clipPath:"url(#clip-path)",children:[u.jsx("mask",{id:"mask0_1070_8032",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"64",height:"64",children:u.jsx("path",{d:"M64 0H0V64H64V0Z",fill:"white"})}),u.jsx("g",{mask:"url(#mask0_1070_8032)",children:u.jsx("path",{d:"M40 10.6673H13.3333V53.334H50.6667V21.334H40V10.6673ZM8 7.97932C8 6.51798 9.192 5.33398 10.664 5.33398H42.6667L56 18.6673V55.982C56.0024 56.3321 55.936 56.6793 55.8043 57.0039C55.6725 57.3284 55.4781 57.6239 55.2323 57.8732C54.9864 58.1225 54.6936 58.3209 54.3712 58.4572C54.0485 58.5935 53.7021 58.6649 53.352 58.6673H10.648C9.94768 58.6625 9.27739 58.3823 8.78192 57.8873C8.28645 57.3924 8.00557 56.7223 8 56.022V7.97932ZM36.0773 38.5233C33.8408 39.83 31.2056 40.2788 28.6627 39.786C26.1197 39.2929 23.8428 37.8921 22.2566 35.8444C20.6704 33.7966 19.883 31.2417 20.0414 28.6564C20.1998 26.071 21.293 23.6315 23.1173 21.7927C24.9532 19.9571 27.3955 18.8541 29.9864 18.6904C32.5773 18.5267 35.1389 19.3134 37.1912 20.9032C39.2435 22.493 40.6456 24.7767 41.1347 27.3263C41.6237 29.8759 41.1664 32.5164 39.848 34.7527L45.7413 40.646L41.9707 44.4193L36.0773 38.5233ZM34.4293 33.1047C34.9387 32.6126 35.3451 32.0241 35.6245 31.3735C35.904 30.7228 36.0512 30.0231 36.0573 29.3148C36.0635 28.6065 35.9285 27.9044 35.6603 27.2489C35.3923 26.5935 34.9963 25.998 34.4955 25.4972C33.9947 24.9964 33.3992 24.6004 32.7437 24.3323C32.0883 24.0641 31.3861 23.9292 30.6779 23.9353C29.9696 23.9415 29.2699 24.0886 28.6192 24.3681C27.9685 24.6476 27.38 25.0539 26.888 25.5633C25.9165 26.5692 25.3789 27.9164 25.3911 29.3148C25.4032 30.7132 25.9641 32.0508 26.9531 33.0396C27.9419 34.0287 29.2795 34.5895 30.6779 34.6015C32.0763 34.6137 33.4235 34.0761 34.4293 33.1047Z",fill:"currentColor"})})]}),u.jsx("defs",{children:u.jsx("clipPath",{id:"clip-path",children:u.jsx("rect",{width:"64",height:"64",fill:"white"})})})]});vd.displayName="EmptyStateIcon";const gi=({message:e="No results found"})=>u.jsxs("div",{className:L(yd.EmptyStateContainer),children:[u.jsx(vd,{}),u.jsx("p",{className:yd.Message,children:e})]});gi.displayName="EmptyState";const h0=(e,t,n=1)=>{if(e<=1)return["1"];const r=[],o=s=>{(r.length===0||r[r.length-1]!==s)&&r.push(s)};o(1),t-n>2&&o("...");for(let s=Math.max(2,t-n);s<=Math.min(e-1,t+n);s++)o(s);return t+n<e-1&&o("..."),o(e),r.map(String)},bd=({page:e,totalPages:t,onPageChange:n})=>{const r=e===1,o=e===t;return u.jsx(ui,{className:_e.Pagination,children:u.jsxs(di,{children:[u.jsx(ir,{children:u.jsx(fi,{className:L({[_e.PointerNone]:r}),onClick:()=>!r&&n(e-1)})}),h0(t,e).map((s,i)=>u.jsxs(ir,{children:[s==="..."&&u.jsx(pi,{}),s!=="..."&&u.jsx(ar,{isActive:+s===e,onClick:()=>+s!==e&&n(+s),children:s})]},i)),u.jsx(ir,{children:u.jsx(hi,{className:L({[_e.PointerNone]:o}),onClick:()=>!o&&n(e+1)})})]})})};bd.displayName="TablePagination";const wd=({className:e,...t})=>u.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:u.jsx("path",{d:"M6 2.5V9.5M6 9.5L9.5 6M6 9.5L2.5 6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})});wd.displayName="ArrowDown";const Cd=({columns:e,data:t,isLoading:n,totalCount:r=0,headerLabel:o,sort:s,loadingConfig:i,pagination:a,onRowClick:c})=>{const{count:l=5,height:f=40}=i||{},h=v=>v.sortName??v.name,m=({width:v,maxWidth:w})=>!v&&!w?{}:{...v?{width:v,minWidth:v}:{},...w?{maxWidth:w}:{},overflow:"hidden"},g=v=>L({[_e.Cell]:!0,[_e.Center]:v.align==="center",[_e.Right]:v.align==="right",[_e.Sortable]:v.isSortable}),S=v=>{if(!s)return"";const w=h(v);return L({[_e.SortIcon]:!0,[_e.Active]:v.isSortable&&s.field===w,[_e.Rotate]:s.field===w&&s.direction==="asc"})},p=v=>()=>c==null?void 0:c(v),y=v=>()=>{if(!s||!v.isSortable)return;const{field:w,direction:E,onSort:T}=s,P=h(v);w===P?T(P,E==="asc"?"desc":"asc"):T(P,"asc")};return u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:_e.TableContainer,children:[o&&u.jsx("div",{className:_e.TableHeader,children:u.jsx(mi,{count:r,singularText:o,children:(v,w)=>`${v} ${w}`})}),u.jsx("div",{className:_e.Table,children:u.jsxs("table",{children:[u.jsx("thead",{children:u.jsx("tr",{children:e.map(v=>u.jsx("th",{children:u.jsxs("div",{className:g(v),onClick:y(v),children:[u.jsx("span",{children:v.displayName}),v.isSortable&&u.jsx(wd,{className:S(v)})]})},v.name))})}),u.jsx("tbody",{children:u.jsxs(Tt,{children:[u.jsx(Tt.When,{condition:n,children:[...Array(l).keys()].map(v=>u.jsx("tr",{children:u.jsx("td",{colSpan:e.length,style:{padding:4},children:u.jsx(Co,{height:f})})},v))}),u.jsx(Tt.When,{condition:!t.length,children:u.jsx("tr",{children:u.jsx("td",{colSpan:e.length,children:u.jsx(gi,{})})})}),u.jsx(Tt.Else,{children:t.map((v,w)=>u.jsx("tr",{className:c&&_e.selectable,onClick:p(v),children:e.map(E=>u.jsx("td",{style:m(E),children:u.jsx("div",{className:g(E),children:E.cellRenderer?E.cellRenderer(v):E.valueGetter?E.valueGetter(v):v[E.name]})},`${E.name}-${w}`))},w))})]})})]})})]}),a&&u.jsx(bd,{...a})]})};Cd.displayName="Table";const To={alert:"alert__LblpE",default:"default__mgO6A",destructive:"destructive__bLNSM",alertTitle:"alertTitle__gblKf",alertDescription:"alertDescription__BuVHV"},Po=({className:e,variant:t="default",children:n,...r})=>u.jsx("div",{"data-slot":"alert",role:"alert",className:L(To.alert,To[t],e),...r,children:n}),p0=d.forwardRef(({children:e,className:t,...n},r)=>u.jsx("div",{ref:r,"data-slot":"alert-title",className:L(To.alertTitle,t),...n,children:e})),m0=d.forwardRef(({children:e,className:t,...n},r)=>u.jsx("div",{ref:r,"data-slot":"alert-description",className:L(To.alertDescription,t),...n,children:e}));Po.displayName="Alert",Po.Title=p0,Po.Description=m0;const Sd=({isNavbarExpanded:e})=>{const{theme:t,setTheme:n}=mc(),r=()=>n(t==="dark"?"light":"dark"),o=u.jsxs("div",{className:L(ms.container,e&&ms.expanded),onClick:r,children:[t==="light"?u.jsx(fc,{}):u.jsx(hc,{}),e&&u.jsx("p",{className:ms.label,children:t==="light"?"Dark Mode":"Light Mode"})]});return e?o:u.jsx(Pn,{displayName:t==="light"?"Switch to dark mode":"Switch to light mode",sideOffset:-16,children:o})};Sd.displayName="ToggleTheme";const Ed=({moduleName:e,className:t,style:n,LoadingComponent:r,ErrorComponent:o,IdleComponent:s})=>{var p;const i=hn(),{statusName:a,isLoading:c,isMounted:l,isBroken:f}=hs(e),h=x.useMemo(()=>i.find(y=>y.name===e),[i,e]),m=(h==null?void 0:h.type)==="fragment"?(p=h.ui)==null?void 0:p.mountAtSelector:void 0,g=m!=null&&m.startsWith("#")?m.slice(1):null;if(x.useEffect(()=>{h?h.type!=="fragment"?console.warn(`[FragmentSlot] Module "${e}" has type "${h.type}" but expected "fragment". Only modules of type "fragment" can be rendered with the <FragmentSlot> component.`):m?m.startsWith("#")||console.warn(`[FragmentSlot] Module "${e}" has "ui.mountAtSelector" = "${m}" which is not an id selector. Only "#id" selectors are supported — the value must start with "#".`):console.warn(`[FragmentSlot] Module "${e}" does not have a "ui.mountAtSelector" configured. A fragment module must declare the DOM selector where it will be mounted.`):console.warn(`[FragmentSlot] Module "${e}" was not found in the platform catalog.`)},[h,e,m]),!h||h.type!=="fragment"||!g)return null;const S=!c&&!l&&!f;return u.jsxs(u.Fragment,{children:[u.jsx("div",{id:g,className:t,style:n}),c&&r&&u.jsx(r,{moduleName:e}),f&&o&&u.jsx(o,{moduleName:e}),S&&s&&u.jsx(s,{moduleName:e,status:a})]})};Ed.displayName="FragmentSlot";const g0=(e,t)=>{const n=r=>u.jsx(ps,{operations:t,children:u.jsx(e,{...r})});return n.displayName="Authorized",n};function xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ao(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xd(Object(n),!0).forEach(function(r){y0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xd(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _d(e){return(_d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function y0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yi(e){return(yi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function Td(e,t){var n;if(typeof(n=t.domElement?function(){return t.domElement}:t.domElementGetter?t.domElementGetter:e.domElementGetter?e.domElementGetter:function(r){var o=r.appName||r.name;if(!o)throw Error("single-spa's dom-element-getter-helpers was not given an application name as a prop, so it can't make a unique dom element container for the react application");var s="single-spa-application:".concat(o);return function(){var i=document.getElementById(s);return i||((i=document.createElement("div")).id=s,document.body.appendChild(i)),i}}(t))!="function")throw Error("single-spa's dom-element-getter-helpers was given an invalid domElementGetter for application or parcel '".concat(t.name,"'. Expected a function, received ").concat(yi(n)));return function(){var r=n(t);if(!(r instanceof HTMLElement))throw Error("single-spa's dom-element-getter-helpers: domElementGetter returned an invalid dom element for application or parcel '".concat(t.name,"'. Expected HTMLElement, received ").concat(yi(r)));return r}}var cr=null;try{cr=require("react").createContext()}catch{}var v0={React:null,ReactDOM:null,ReactDOMClient:null,rootComponent:null,loadRootComponent:null,errorBoundary:null,errorBoundaryClass:null,domElementGetter:null,parcelCanUpdate:!0,suppressComponentDidCatchWarning:!1,domElements:{},renderResults:{},updateResolves:{},unmountResolves:{}};function b0(e){if(_d(e)!=="object")throw new Error("single-spa-react requires a configuration object");var t,n=Ao(Ao({},v0),e);if(!n.React)throw new Error("single-spa-react must be passed opts.React");if(!n.ReactDOM&&!n.ReactDOMClient)throw new Error("single-spa-react must be passed opts.ReactDOM or opts.ReactDOMClient");if(n.renderType||((t=n.ReactDOMClient)!==null&&t!==void 0&&t.createRoot?n.renderType="createRoot":n.renderType="render"),!n.rootComponent&&!n.loadRootComponent)throw new Error("single-spa-react must be passed opts.rootComponent or opts.loadRootComponent");if(n.errorBoundary&&typeof n.errorBoundary!="function")throw Error("The errorBoundary opt for single-spa-react must either be omitted or be a function that returns React elements");!cr&&n.React.createContext&&(cr=n.React.createContext()),n.SingleSpaRoot=function(o){function s(i){s.displayName="SingleSpaRoot(".concat(i.name,")")}return s.prototype=Object.create(o.React.Component.prototype),s.prototype.componentDidMount=function(){setTimeout(this.props.mountFinished)},s.prototype.componentWillUnmount=function(){setTimeout(this.props.unmountFinished)},s.prototype.render=function(){return setTimeout(this.props.updateFinished),this.props.children},s}(n);var r={bootstrap:w0.bind(null,n),mount:C0.bind(null,n),unmount:S0.bind(null,n)};return n.parcelCanUpdate&&(r.update=E0.bind(null,n)),r}function w0(e,t){return e.rootComponent?Promise.resolve():e.loadRootComponent(t).then(function(n){e.rootComponent=n})}function C0(e,t){return new Promise(function(n,r){e.suppressComponentDidCatchWarning||!function(a){if(!(a&&typeof a.version=="string"&&a.version.indexOf(".")>=0))return!1;var c=a.version.slice(0,a.version.indexOf("."));try{return Number(c)>=16}catch{return!1}}(e.React)||e.errorBoundary||e.errorBoundaryClass||(e.rootComponent.prototype?e.rootComponent.prototype.componentDidCatch||console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent should implement componentDidCatch to avoid accidentally unmounting the entire single-spa application.")):console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent does not implement an error boundary. If using a functional component, consider providing an opts.errorBoundary to singleSpaReact(opts).")));var o=Pd(e,t,function(){n(this)}),s=Td(e,t)(),i=function(a){var c=a.reactDom,l=a.renderType,f=a.elementToRender,h=a.domElement,m=c[l];if(typeof m!="function")throw new Error('renderType "'.concat(l,'" did not return a function.'));switch(l){case"createRoot":case"unstable_createRoot":case"createBlockingRoot":case"unstable_createBlockingRoot":var g=m(h);return g.render(f),g;case"hydrateRoot":return m(h,f);case"hydrate":default:return m(f,h),null}}({elementToRender:o,domElement:s,reactDom:vi(e),renderType:x0(e)});e.domElements[t.name]=s,e.renderResults[t.name]=i})}function S0(e,t){return new Promise(function(n){e.unmountResolves[t.name]=n;var r=e.renderResults[t.name];r&&r.unmount?r.unmount():vi(e).unmountComponentAtNode(e.domElements[t.name]),delete e.domElements[t.name],delete e.renderResults[t.name]})}function E0(e,t){return new Promise(function(n){e.updateResolves[t.name]||(e.updateResolves[t.name]=[]),e.updateResolves[t.name].push(n);var r=Pd(e,t,null),o=e.renderResults[t.name];if(o&&o.render)o.render(r);else{var s=Td(e,t)();vi(e).render(r,s)}})}function vi(e){return e.ReactDOMClient||e.ReactDOM}function x0(e){return typeof e.renderType=="function"?e.renderType():e.renderType}function Pd(e,t,n){var r=e.React.createElement(e.rootComponent,t),o=cr?e.React.createElement(cr.Provider,{value:t},r):r;return(e.errorBoundary||t.errorBoundary||e.errorBoundaryClass||t.errorBoundaryClass)&&(e.errorBoundaryClass=e.errorBoundaryClass||t.errorBoundaryClass||function(s,i){function a(c){s.React.Component.apply(this,arguments),this.state={caughtError:null,caughtErrorInfo:null},a.displayName="SingleSpaReactErrorBoundary(".concat(c.name,")")}return a.prototype=Object.create(s.React.Component.prototype),a.prototype.render=function(){return this.state.caughtError?(s.errorBoundary||i.errorBoundary)(this.state.caughtError,this.state.caughtErrorInfo,this.props):this.props.children},a.prototype.componentDidCatch=function(c,l){this.setState({caughtError:c,caughtErrorInfo:l})},a}(e,t),o=e.React.createElement(e.errorBoundaryClass,t,o)),o=e.React.createElement(e.SingleSpaRoot,Ao(Ao({},t),{},{mountFinished:n,updateFinished:function(){e.updateResolves[t.name]&&(e.updateResolves[t.name].forEach(function(s){return s()}),delete e.updateResolves[t.name])},unmountFinished:function(){e.unmountResolves[t.name]&&(e.unmountResolves[t.name](),delete e.unmountResolves[t.name])}}),o)}const _0=e=>{const t=new yp;return function(r){if(!r)throw new Error("Microfrontend did not receive any properties !!");const o=ko(r.module.name),s=r.domElement;return x.useEffect(()=>{s==null||s.setAttribute("data-pae-ui","")},[s]),u.jsx(zi,{module:o,children:u.jsxs(Sp,{client:t,children:[u.jsx(e,{...r}),u.jsx(tp,{position:"top-right",reverseOrder:!0})]})})}},Ro=new Map,T0=e=>`style[data-pae-module="${CSS.escape(e)}"]`,bi=(e,t)=>Array.from(e.querySelectorAll(T0(t))),Ad=(e,t)=>{if(typeof document>"u")return;const n=[...bi(document,e),...t?bi(t,e):[]];n.length!==0&&(n.forEach(r=>r.remove()),Ro.set(e,[...Ro.get(e)??[],...n]))},wi=(e,t)=>{if(typeof document>"u")return;const n=Ro.get(e)??[];if(Ro.delete(e),t&&n.push(...bi(document,e)),n.length===0)return;const r=t??document.head;n.forEach(o=>r.appendChild(o))},P0=({rootComponent:e,shadowDom:t,...n})=>{const r={shadowRoot:null,container:null,portalContainer:null},o=_0(e),i=b0({errorBoundary(c){return console.error(c),u.jsx(ci,{})},...n,rootComponent:t?c=>u.jsx(Cu,{container:r.portalContainer,children:u.jsx(o,{...c})}):o}),a=c=>{const l=c.shadowRoot??c.attachShadow({mode:"open"});let f=l.querySelector(":scope > [data-pae-module-root]");f||(f=document.createElement("div"),f.setAttribute("data-pae-module-root",""),l.appendChild(f));let h=l.querySelector(":scope > [data-pae-module-portal]");return h||(h=document.createElement("div"),h.setAttribute("data-pae-module-portal",""),l.appendChild(h)),Hn.adoptInto(l),r.shadowRoot=l,r.container=f,r.portalContainer=h,f};return t?{...i,mount:async c=>{const l=c==null?void 0:c.domElement;if(!l||typeof l.attachShadow!="function")return c!=null&&c.name&&wi(c.name),i.mount(c);const f=a(l);return c!=null&&c.name&&r.shadowRoot&&wi(c.name,r.shadowRoot),i.mount({...c,domElement:f})},unmount:async c=>{const l=r.container,f=await i.unmount(l?{...c,domElement:l}:c);return c!=null&&c.name&&Ad(c.name,r.shadowRoot??void 0),r.shadowRoot&&Hn.releaseRoot(r.shadowRoot),r.shadowRoot=null,r.container=null,r.portalContainer=null,f}}:{...i,mount:async c=>(c!=null&&c.name&&wi(c.name),i.mount(c)),unmount:async c=>{const l=await i.unmount(c);return c!=null&&c.name&&Ad(c.name),l}}},A0=e=>{const t={authUser:{id:"testuser",username:"testuser",displayName:"Test User",applications:[]},catalog:[],authentication:{passwordMethodEnabled:!0,registerEnabled:!0,invitationsEnabled:!0,resetPasswordExpiration:3e4,passwordConstraints:{lowerCaseRequired:!1,upperCaseRequired:!1,symbolRequired:!1,digitRequired:!1,minLength:0,maxLength:8},sessionExpiration:864e5,jwtSecret:"",sessionIncludeOrigUser:!1,impersonationMode:"cookie",canImpersonateNonExistentUsers:!1,providers:[]},platformVersion:"0.0.0",featureFlags:{},fileStorageEnabled:!1};Object.defineProperty(window,Vn,{value:e?Df(t,e):t})},Ci=()=>{const[e]=fn();return e.featureFlags},R0=e=>Ci()[e],Rd=({flag:e,children:t,fallback:n=null,invert:r=!1})=>{const s=Ci()[e]===!0;return(r?!s:s)?u.jsx(u.Fragment,{children:t}):u.jsx(u.Fragment,{children:n})};Rd.displayName="FeatureFlagGuard";const Od=x.createContext(null);function jd(e){const t=["#FF6B6B","#4ECDC4","#45B7D1","#FFA07A","#98D8C8","#F7DC6F","#BB8FCE","#85C1E2","#F8B739","#52B788","#E74C3C","#3498DB","#9B59B6","#1ABC9C","#F39C12","#E67E22","#95A5A6","#34495E","#16A085","#27AE60"];let n=0;for(let o=0;o<e.length;o++)n=e.charCodeAt(o)+((n<<5)-n),n=n&n;const r=Math.abs(n)%t.length;return t[r]}const Si={JOIN_ROOM:"join_room",LEAVE_ROOM:"leave_room",USER_LIST:"user_list"},Id=[1e3,2e3,4e3,8e3,16e3],O0=Id.length,j0=({children:e})=>{const t=ia("@bluealba/pae-rooms-service"),[n,r]=x.useState([]),[o,s]=x.useState("loading"),i=x.useRef(null),a=x.useRef(!1),c=x.useRef(0),l=x.useRef(null),f=x.useRef(!0),h=x.useRef(()=>{}),m=x.useCallback(A=>new Promise((R,N)=>{const D=new WebSocket(A);let M=!1;D.onopen=()=>{M=!0,c.current=0,f.current&&s("connected"),R(D)},D.addEventListener("message",async U=>{try{const W=await p(U);W.event===Si.USER_LIST&&E(W.data)}catch(W){console.error("Error parsing WebSocket message:",W)}}),D.onerror=U=>{console.error("Rooms WebSocket error",U)},D.onclose=()=>{if(i.current!==D){M||N(new Error("WebSocket connection replaced"));return}a.current?f.current&&s("closed"):h.current(),M||N(new Error("WebSocket connection failed"))},i.current=D}),[]),g=x.useCallback(()=>{if(!t||!f.current)return;if(c.current>=O0){s("error");return}const A=Id[c.current];c.current++,s("reconnecting"),l.current=setTimeout(()=>{f.current&&t&&m(t).catch(()=>{})},A)},[t,m]);h.current=g;const S=x.useCallback(()=>{if(!t)return;l.current&&(clearTimeout(l.current),l.current=null);const A=i.current;A&&A.readyState!==WebSocket.CLOSED&&(a.current=!0,A.close()),c.current=0,a.current=!1,s("loading"),m(t)},[t,m]);x.useEffect(()=>{if(f.current=!0,a.current=!1,t)return m(t),()=>{var A;f.current=!1,l.current&&(clearTimeout(l.current),l.current=null),a.current=!0,(A=i.current)==null||A.close()}},[t,m]),x.useEffect(()=>{const A=()=>{if(document.visibilityState!=="visible")return;const R=i.current;R&&R.readyState===WebSocket.OPEN||(l.current&&(clearTimeout(l.current),l.current=null),c.current=0,S())};return document.addEventListener("visibilitychange",A),()=>{document.removeEventListener("visibilitychange",A)}},[S]);const p=async A=>{if(A.data instanceof Blob){const R=await A.data.text();return JSON.parse(R)}else return JSON.parse(A.data)},y=(A,R)=>{const N=i.current;!N||N.readyState!==WebSocket.OPEN||setTimeout(()=>{N.send(JSON.stringify({event:A,data:R}))},100)},v=A=>{y(Si.JOIN_ROOM,{roomId:A})},w=A=>{y(Si.LEAVE_ROOM,{roomId:A})},E=A=>{r(A.map(R=>({...R,username:R.username.toLowerCase(),color:jd(R.username)})))},T=x.useCallback(A=>n.filter(R=>R.rooms.includes(A)),[n]),P={status:o,getRoomUsers:T,joinRoom:v,leaveRoom:w,reconnect:S};return u.jsx(Od.Provider,{value:P,children:e})},Dd={autoJoin:!0,autoLeave:!0};function I0(e,t=Dd){const{autoJoin:n,autoLeave:r}=t,o=x.useContext(Od),{authUser:s}=Gn();if(!o)throw new Error("useRoom must be used within RoomsProvider");const i=x.useRef(!1),a=()=>{if(n){console.warn("[useRoom] Ignoring manual joinRoom call because autoJoin is enabled.",{roomId:e});return}return i.current=!0,o.joinRoom(e)},c=()=>{if(r){console.warn("[useRoom] Ignoring manual leaveRoom call because autoLeave is enabled.",{roomId:e});return}return i.current=!1,o.leaveRoom(e)};x.useEffect(()=>{if(!(!e||o.status!=="connected"))return(n||i.current)&&o.joinRoom(e),()=>{r&&o.status==="connected"&&o.leaveRoom(e)}},[o.status,e]);const l=o.getRoomUsers(e),f=l.findIndex(h=>h.username===(s==null?void 0:s.username))!==-1;return{users:l,roomId:e,hasJoined:f,joinRoom:a,leaveRoom:c,reconnect:o.reconnect}}const lr={container:"container__LbyGQ",avatarWrapper:"avatarWrapper__HCQIZ",avatar:"avatar__E453a",overflowWrapper:"overflowWrapper__ETnPO",overflowBadge:"overflowBadge__igBKT"},D0={sm:24,md:32,lg:40},L0=({users:e,maxVisible:t=5,size:n="md",overlap:r=!0,className:o="",onUserClick:s})=>{const i=D0[n],a=x.useMemo(()=>e.slice(0,t),[e,t]),c=x.useMemo(()=>e.slice(t),[e,t]),l=Math.max(0,e.length-t),f=h=>h.split(" ").map(m=>m[0]).join("").toUpperCase().slice(0,2);return u.jsxs("div",{className:L(lr.container,o),children:[a.map((h,m)=>u.jsx(Pn,{tooltipContent:h.displayName,side:"bottom",children:u.jsx("div",{className:lr.avatarWrapper,style:{marginLeft:m>0&&r?`-${i*.25}px`:void 0},onClick:()=>s==null?void 0:s(h),children:u.jsx("div",{className:lr.avatar,style:{width:i,height:i,backgroundColor:h.color,fontSize:n==="sm"?"10px":n==="md"?"12px":"14px",cursor:s?"pointer":"default"},children:f(h.displayName)})})},h.username)),l>0&&u.jsx(Pn,{side:"bottom",tooltipContent:u.jsx("div",{children:c.map(h=>u.jsx("p",{children:h.displayName},h.username))}),children:u.jsx("div",{className:lr.overflowWrapper,style:{marginLeft:r?`-${i*.25}px`:void 0},children:u.jsxs("div",{className:lr.overflowBadge,style:{width:i,height:i,fontSize:n==="sm"?"10px":n==="md"?"12px":"14px"},children:["+",l]})})})]})};sf(),_.Alert=Po,_.ApplicationIcon=dc,_.Authorized=ps,_.Badge=ys,_.Badges=vs,_.Button=Wr,_.ClipboardCheckIcon=bc,_.ClipboardIcon=vc,_.ConfirmDialog=id,_.CopyToClipboardButton=d1,_.DEFAULT_OPTIONS=Dd,_.Dialog=ve,_.DropdownList=bo,_.EmptyState=gi,_.ErrorState=ci,_.ExtendExtensionPoint=Jp,_.ExtensionPoint=ic,_.EyeIcon=Du,_.FeatureFlagGuard=Rd,_.FieldGroup=Cc,_.FragmentSlot=Ed,_.Input=Vr,_.InputError=Ec,_.Label=_c,_.List=Je,_.ModulePlaceHolder=uc,_.Pagination=ui,_.PaginationContent=di,_.PaginationEllipsis=pi,_.PaginationItem=ir,_.PaginationLink=ar,_.PaginationNext=hi,_.PaginationPrevious=fi,_.PasswordInput=kv,_.Pill=a0,_.PlatformEventListener=o1,_.PlatformEvents=af,_.PluralizeCounter=mi,_.PortalContainerProvider=Cu,_.RoomAvatars=L0,_.RoomsProvider=j0,_.SearchAutocomplete=_u,_.SearchInput=ri,_.Select=ws,_.Select2=cu,_.Show=Tt,_.Skeleton=Co,_.SkeletonList=Au,_.Spinner=Ou,_.StyleRegistry=Hn,_.Switch=ju,_.Table=Cd,_.Tabs=Dv,_.TabsContent=Mv,_.TabsList=Lv,_.TabsTrigger=Nv,_.TextArea=lu,_.TextWithTooltip=Eu,_.ThemeToggle=Sd,_.Tooltip=Pn,_.authorized=g0,_.dropdownListStyles=Jt,_.extensionPoint=t1,_.generateUserColor=jd,_.getApplications=Mo,_.getInitials=Ef,_.getOperations=qi,_.hasAccess=Ki,_.initializeMicroFrontend=P0,_.isPlatformCustomizationCompleted=dh,_.isValidEmail=Sf,_.logout=bf,_.navigateTo=wf,_.platformHaveAnyCustomization=uh,_.setupTestEnvironment=A0,_.useAppStatus=hs,_.useApplicationIcon=na,_.useApplicationJSModule=vr,_.useApplicationMenu=Rf,_.useApplicationUIModule=ta,_.useApplications=Ji,_.useAuth=Gn,_.useCatalog=hn,_.useCurrentApplication=Fo,_.useCurrentApplicationName=sa,_.useCurrentJSModule=kf,_.useDynamicFonts=fa,_.useDynamicStyleSheet=da,_.useExtendExtensionPoint=la,_.useExtensionPoint=ca,_.useFeatureFlag=R0,_.useFeatureFlags=Ci,_.useFileStorage=Xp,_.useGetPlatformTheme=lh,_.useHasNoSession=gf,_.useLocation=Ui,_.useModule=ko,_.useModuleCommonPaths=vf,_.useModuleConfig=Qi,_.useModuleConfigByName=Yi,_.useModuleMenu=ra,_.useModuleMetadata=qn,_.useMutableCatalog=ff,_.useNotifications=Xo,_.useOperations=Gi,_.usePAECustomizationsLoadingState=ch,_.usePAEState=fn,_.usePlatformCustomization=ah,_.usePlatformEventListener=ua,_.usePortalContainer=ni,_.useResource=Lp,_.useResourceActions=Ja,_.useRoom=I0,_.useServiceBaseURL=Bo,_.useServiceInvoker=Uo,_.useServiceWebSocketURL=ia,_.useTenants=Gp,_.useTheme=mc,_.useTrackEvent=Hf,_.useTrackEvents=aa,_.useUIApplications=ea,_.useUserState=Qp,Object.defineProperty(_,Symbol.toStringTag,{value:"Module"})});