@bluealba/pae-ui-react-core 4.2.0-develop-1333 → 4.2.0-develop-1349

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- var vu=x=>{throw TypeError(x)};var Ui=(x,ue,$)=>ue.has(x)||vu("Cannot "+$);var b=(x,ue,$)=>(Ui(x,ue,"read from private field"),$?$.call(x):ue.get(x)),L=(x,ue,$)=>ue.has(x)?vu("Cannot add the same private member more than once"):ue instanceof WeakSet?ue.add(x):ue.set(x,$),O=(x,ue,$,K)=>(Ui(x,ue,"write to private field"),K?K.call(x,$):ue.set(x,$),$),F=(x,ue,$)=>(Ui(x,ue,"access private method"),$);var lo=(x,ue,$,K)=>({set _(se){O(x,ue,se,$)},get _(){return b(x,ue,K)}});System.register("@bluealba/pae-ui-react-core",["react","single-spa","react-dom"],function(x,ue){"use strict";var $,K,se,Gn,qn,Qn,Re,h,W,Ki,uo,Zi,fo,Xi,Yn,po,Ji;return{setters:[ee=>{$=ee.useState,K=ee.useEffect,se=ee.useCallback,Gn=ee.default,qn=ee.createContext,Qn=ee.useContext,Re=ee.useMemo,h=ee,W=ee.forwardRef,Ki=ee.Children,uo=ee.isValidElement,Zi=ee.useLayoutEffect,fo=ee.useRef},ee=>{Xi=ee.navigateToUrl,Yn=ee.default},ee=>{po=ee,Ji=ee.default}],execute:function(){var Dt,ht,ln,Yc,cn,mt,un,Kc,It,Zc,dn,fn,Ae,Nt,de,Fn,Mt,Ne,ot,Xc,He,Jc,Ve,he,$t,Ge,Et,eu,et,Me,Bn,tu,te,gt,vt,pn,hn,yt,mn,gn,nu,we,z,Un,me,Ft,vn,bt,wt,Wn,yn,bn,Bt,Ut,_t,wn,G,Vn,Wi,zi,Hi,Vi,Gi,qi,Qi,yu,ru,Ct,xt,_e,tt,nt,co,Yi,ou;var ee=document.createElement("style");ee.textContent=`:root{--platform-label-color: var(--platform-text-secondary-color);--platform-input-border-color: var(--platform-lines);--platform-input-background-color: var(--platform-background-secondary-color);--platform-input-color: var(--platform-text-primary-color);--platform-input-focus-border-color: var(--platform-color-primary);--platform-button-base-padding: 4px 16px;--platform-button-base-border-radius: 6px;--platform-button-base-box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);--platform-button-base-font-size: 1em;--platform-button-base-line-height: 16px;--platform-button-base-height: calc(2 * var(--platform-button-base-font-size));--platform-button-contained-primary-background-color: var(--platform-color-primary);--platform-button-contained-primary-color: #ffffff;--platform-button-outlined-primary-color: var(--platform-color-primary);--platform-button-text-primary-color: var(--platform-text-primary-color);--platform-button-contained-danger-background-color: var(--platform-color-danger);--platform-button-contained-danger-color: #ffffff;--platform-button-outlined-danger-color: var(--platform-color-danger);--platform-button-text-danger-color: var(--platform-color-danger)}.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-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{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{width:100%;position:relative}.Select__giqpe select{-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}.TextArea__pa-A0{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)}.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{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)}}.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)}}@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{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{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)}.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{border-collapse:collapse;width:100%}.Table__2cIs3 td,.Table__2cIs3 th{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)}
2
- `,document.head.appendChild(ee),x({generateUserColor:Qc,logout:ju,useDynamicFonts:gs,useRoom:ov});const Av=x("PlatformEvents",{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"}}),Tn="__PAE_GLOBAL_STATE__",es="__PAE_REACTIVE_GLOBAL_STATE__",ts="__PAE_EXTENSIONS_POINTS_REGISTRY__",ho="__PAE_CUSTOMIZATIONS_LOADING_STATE_KEY__",bu="/auth/logout",wu=(e,t)=>{const[n,r]=$(t);return K(()=>{const o=e.subscribe(i=>{r(i)});return()=>{o.unsubscribe()}},[r]),n},_u=(e,t,n)=>n.map((r,o)=>o===e?t(r):r),Cu=(e,t,n)=>_u(n.findIndex(e),t,n),mo=(e,t)=>typeof e=="function"?e(t):e,ns=(e,t)=>{const n=wu(e,t),r=se(o=>{e.next(mo(o,n))},[n]);return[n,r]},Kn=x("usePAEState",()=>ns(window[es],window[Tn])),Zn=x("useCatalog",()=>Kn()[0].catalog),Pv=x("useMutableCatalog",()=>{const e=Zn(),t=se(r=>{window[es].next({...window[Tn],catalog:mo(r,e)})},[e]),n=se((r,o)=>{t(i=>Cu(s=>s.name===r,s=>{var a;return{...s,ui:{...s.ui,customProps:mo(o,((a=s.ui)==null?void 0:a.customProps)??{})}}},i))},[t]);return[e,t,n]}),xu=x("useLocation",()=>{const[e,t]=$(document.location.pathname);return K(()=>{const n=()=>{t(window.location.pathname)};return window.addEventListener("popstate",n),()=>{window.removeEventListener("popstate",n)}},[t]),e});var Eu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Su(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var rs={exports:{}},Rn={},os;function Tu(){if(os)return Rn;os=1;/**
1
+ var md=E=>{throw TypeError(E)};var cs=(E,be,B)=>be.has(E)||md("Cannot "+B);var _=(E,be,B)=>(cs(E,be,"read from private field"),B?B.call(E):be.get(E)),N=(E,be,B)=>be.has(E)?md("Cannot add the same private member more than once"):be instanceof WeakSet?be.add(E):be.set(E,B),O=(E,be,B,ie)=>(cs(E,be,"write to private field"),ie?ie.call(E,B):be.set(E,B),B),H=(E,be,B)=>(cs(E,be,"access private method"),B);var Ao=(E,be,B,ie)=>({set _(ve){O(E,be,ve,B)},get _(){return _(E,be,ie)}});System.register("@bluealba/pae-ui-react-core",["react","single-spa","react-dom"],function(E,be){"use strict";var B,ie,ve,Ue,pr,hr,Ne,d,q,ys,mr,bs,Io,ws,gr,zn,_s;return{setters:[fe=>{B=fe.useState,ie=fe.useEffect,ve=fe.useCallback,Ue=fe.default,pr=fe.createContext,hr=fe.useContext,Ne=fe.useMemo,d=fe,q=fe.forwardRef,ys=fe.useLayoutEffect,mr=fe.useRef,bs=fe.Children,Io=fe.isValidElement},fe=>{ws=fe.navigateToUrl,gr=fe.default},fe=>{zn=fe,_s=fe.default}],execute:function(){var an,jt,On,qu,In,kt,jn,Ku,ln,Qu,kn,Ln,Me,cn,xe,lr,un,Ke,_t,Yu,it,Zu,st,Ee,dn,at,Gt,Xu,vt,Qe,cr,Ju,pe,Lt,Dt,Dn,Nn,Nt,Mn,$n,ed,Oe,Q,ur,Te,fn,Fn,Mt,$t,dr,Bn,Un,pn,hn,Ft,Wn,te,fr,us,ds,fs,ps,hs,ms,gs,gd,td,Bt,Ut,Ie,yt,bt,Oo,vs,nd;var fe=document.createElement("style");fe.textContent=`:root{--platform-label-color: var(--platform-text-secondary-color);--platform-input-border-color: var(--platform-lines);--platform-input-background-color: var(--platform-background-secondary-color);--platform-input-color: var(--platform-text-primary-color);--platform-input-focus-border-color: var(--platform-color-primary);--platform-button-base-padding: 4px 16px;--platform-button-base-border-radius: 6px;--platform-button-base-box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);--platform-button-base-font-size: 1em;--platform-button-base-line-height: 16px;--platform-button-base-height: calc(2 * var(--platform-button-base-font-size));--platform-button-contained-primary-background-color: var(--platform-color-primary);--platform-button-contained-primary-color: #ffffff;--platform-button-outlined-primary-color: var(--platform-color-primary);--platform-button-text-primary-color: var(--platform-text-primary-color);--platform-button-contained-danger-background-color: var(--platform-color-danger);--platform-button-contained-danger-color: #ffffff;--platform-button-outlined-danger-color: var(--platform-color-danger);--platform-button-text-danger-color: var(--platform-color-danger)}.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{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{width:100%;position:relative}.Select__giqpe select{-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{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-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{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{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{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{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{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)}.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;width:100%;min-width:max-content}.Table__2cIs3 td,.Table__2cIs3 th{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)}
2
+ `,document.head.appendChild(fe),E({generateUserColor:Gu,logout:Od,useDynamicFonts:$s,useRoom:qy});const v0=E("PlatformEvents",{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"}}),Gn="__PAE_GLOBAL_STATE__",xs="__PAE_REACTIVE_GLOBAL_STATE__",Cs="__PAE_EXTENSIONS_POINTS_REGISTRY__",jo="__PAE_CUSTOMIZATIONS_LOADING_STATE_KEY__",vd="/auth/logout",yd=(e,t)=>{const[n,r]=B(t);return ie(()=>{const o=e.subscribe(i=>{r(i)});return()=>{o.unsubscribe()}},[r]),n},bd=(e,t,n)=>n.map((r,o)=>o===e?t(r):r),wd=(e,t,n)=>bd(n.findIndex(e),t,n),ko=(e,t)=>typeof e=="function"?e(t):e,Ss=(e,t)=>{const n=yd(e,t),r=ve(o=>{e.next(ko(o,n))},[n]);return[n,r]},vr=E("usePAEState",()=>Ss(window[xs],window[Gn])),yr=E("useCatalog",()=>vr()[0].catalog),y0=E("useMutableCatalog",()=>{const e=yr(),t=ve(r=>{window[xs].next({...window[Gn],catalog:ko(r,e)})},[e]),n=ve((r,o)=>{t(i=>wd(s=>s.name===r,s=>{var a;return{...s,ui:{...s.ui,customProps:ko(o,((a=s.ui)==null?void 0:a.customProps)??{})}}},i))},[t]);return[e,t,n]}),_d=E("useLocation",()=>{const[e,t]=B(document.location.pathname);return ie(()=>{const n=()=>{t(window.location.pathname)};return window.addEventListener("popstate",n),()=>{window.removeEventListener("popstate",n)}},[t]),e});var xd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Cd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Es={exports:{}},qn={},Ts;function Sd(){if(Ts)return qn;Ts=1;/**
3
3
  * @license React
4
4
  * react-jsx-runtime.development.js
5
5
  *
@@ -7,30 +7,30 @@ var vu=x=>{throw TypeError(x)};var Ui=(x,ue,$)=>ue.has(x)||vu("Cannot "+$);var b
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=Gn,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),w=Symbol.iterator,f="@@iterator";function v(y){if(y===null||typeof y!="object")return null;var R=w&&y[w]||y[f];return typeof R=="function"?R:null}var _=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function C(y){{for(var R=arguments.length,k=new Array(R>1?R-1:0),N=1;N<R;N++)k[N-1]=arguments[N];S("error",y,k)}}function S(y,R,k){{var N=_.ReactDebugCurrentFrame,Q=N.getStackAddendum();Q!==""&&(R+="%s",k=k.concat([Q]));var X=k.map(function(H){return String(H)});X.unshift("Warning: "+R),Function.prototype.apply.call(console[y],console,X)}}var E=!1,T=!1,P=!1,A=!1,M=!1,I;I=Symbol.for("react.module.reference");function D(y){return!!(typeof y=="string"||typeof y=="function"||y===r||y===i||M||y===o||y===u||y===d||A||y===g||E||T||P||typeof y=="object"&&y!==null&&(y.$$typeof===m||y.$$typeof===p||y.$$typeof===s||y.$$typeof===a||y.$$typeof===l||y.$$typeof===I||y.getModuleId!==void 0))}function q(y,R,k){var N=y.displayName;if(N)return N;var Q=R.displayName||R.name||"";return Q!==""?k+"("+Q+")":k}function Z(y){return y.displayName||"Context"}function V(y){if(y==null)return null;if(typeof y.tag=="number"&&C("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof y=="function")return y.displayName||y.name||null;if(typeof y=="string")return y;switch(y){case r:return"Fragment";case n:return"Portal";case i:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if(typeof y=="object")switch(y.$$typeof){case a:var R=y;return Z(R)+".Consumer";case s:var k=y;return Z(k._context)+".Provider";case l:return q(y,y.render,"ForwardRef");case p:var N=y.displayName||null;return N!==null?N:V(y.type)||"Memo";case m:{var Q=y,X=Q._payload,H=Q._init;try{return V(H(X))}catch{return null}}}return null}var Y=Object.assign,le=0,ne,re,B,ce,Te,Wt,no;function ro(){}ro.__reactDisabledLog=!0;function Di(){{if(le===0){ne=console.log,re=console.info,B=console.warn,ce=console.error,Te=console.group,Wt=console.groupCollapsed,no=console.groupEnd;var y={configurable:!0,enumerable:!0,value:ro,writable:!0};Object.defineProperties(console,{info:y,log:y,warn:y,error:y,group:y,groupCollapsed:y,groupEnd:y})}le++}}function Ii(){{if(le--,le===0){var y={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Y({},y,{value:ne}),info:Y({},y,{value:re}),warn:Y({},y,{value:B}),error:Y({},y,{value:ce}),group:Y({},y,{value:Te}),groupCollapsed:Y({},y,{value:Wt}),groupEnd:Y({},y,{value:no})})}le<0&&C("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var zn=_.ReactCurrentDispatcher,_n;function zt(y,R,k){{if(_n===void 0)try{throw Error()}catch(Q){var N=Q.stack.trim().match(/\n( *(at )?)/);_n=N&&N[1]||""}return`
11
- `+_n+y}}var Cn=!1,Ht;{var oo=typeof WeakMap=="function"?WeakMap:Map;Ht=new oo}function Hn(y,R){if(!y||Cn)return"";{var k=Ht.get(y);if(k!==void 0)return k}var N;Cn=!0;var Q=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var X;X=zn.current,zn.current=null,Di();try{if(R){var H=function(){throw Error()};if(Object.defineProperty(H.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(H,[])}catch(Ce){N=Ce}Reflect.construct(y,[],H)}else{try{H.call()}catch(Ce){N=Ce}y.call(H.prototype)}}else{try{throw Error()}catch(Ce){N=Ce}y()}}catch(Ce){if(Ce&&N&&typeof Ce.stack=="string"){for(var U=Ce.stack.split(`
12
- `),ge=N.stack.split(`
13
- `),oe=U.length-1,ie=ge.length-1;oe>=1&&ie>=0&&U[oe]!==ge[ie];)ie--;for(;oe>=1&&ie>=0;oe--,ie--)if(U[oe]!==ge[ie]){if(oe!==1||ie!==1)do if(oe--,ie--,ie<0||U[oe]!==ge[ie]){var Pe=`
14
- `+U[oe].replace(" at new "," at ");return y.displayName&&Pe.includes("<anonymous>")&&(Pe=Pe.replace("<anonymous>",y.displayName)),typeof y=="function"&&Ht.set(y,Pe),Pe}while(oe>=1&&ie>=0);break}}}finally{Cn=!1,zn.current=X,Ii(),Error.prepareStackTrace=Q}var Sn=y?y.displayName||y.name:"",qt=Sn?zt(Sn):"";return typeof y=="function"&&Ht.set(y,qt),qt}function Vt(y,R,k){return Hn(y,!1)}function io(y){var R=y.prototype;return!!(R&&R.isReactComponent)}function xn(y,R,k){if(y==null)return"";if(typeof y=="function")return Hn(y,io(y));if(typeof y=="string")return zt(y);switch(y){case u:return zt("Suspense");case d:return zt("SuspenseList")}if(typeof y=="object")switch(y.$$typeof){case l:return Vt(y.render);case p:return xn(y.type,R,k);case m:{var N=y,Q=N._payload,X=N._init;try{return xn(X(Q),R,k)}catch{}}}return""}var Gt=Object.prototype.hasOwnProperty,so={},ao=_.ReactDebugCurrentFrame;function rt(y){if(y){var R=y._owner,k=xn(y.type,y._source,R?R.type:null);ao.setExtraStackFrame(k)}else ao.setExtraStackFrame(null)}function sv(y,R,k,N,Q){{var X=Function.call.bind(Gt);for(var H in y)if(X(y,H)){var U=void 0;try{if(typeof y[H]!="function"){var ge=Error((N||"React class")+": "+k+" type `"+H+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof y[H]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ge.name="Invariant Violation",ge}U=y[H](R,H,N,k,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(oe){U=oe}U&&!(U instanceof Error)&&(rt(Q),C("%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).",N||"React class",k,H,typeof U),rt(null)),U instanceof Error&&!(U.message in so)&&(so[U.message]=!0,rt(Q),C("Failed %s type: %s",k,U.message),rt(null))}}}var av=Array.isArray;function Ni(y){return av(y)}function lv(y){{var R=typeof Symbol=="function"&&Symbol.toStringTag,k=R&&y[Symbol.toStringTag]||y.constructor.name||"Object";return k}}function cv(y){try{return iu(y),!1}catch{return!0}}function iu(y){return""+y}function su(y){if(cv(y))return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",lv(y)),iu(y)}var au=_.ReactCurrentOwner,uv={key:!0,ref:!0,__self:!0,__source:!0},lu,cu;function dv(y){if(Gt.call(y,"ref")){var R=Object.getOwnPropertyDescriptor(y,"ref").get;if(R&&R.isReactWarning)return!1}return y.ref!==void 0}function fv(y){if(Gt.call(y,"key")){var R=Object.getOwnPropertyDescriptor(y,"key").get;if(R&&R.isReactWarning)return!1}return y.key!==void 0}function pv(y,R){typeof y.ref=="string"&&au.current}function hv(y,R){{var k=function(){lu||(lu=!0,C("%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))};k.isReactWarning=!0,Object.defineProperty(y,"key",{get:k,configurable:!0})}}function mv(y,R){{var k=function(){cu||(cu=!0,C("%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))};k.isReactWarning=!0,Object.defineProperty(y,"ref",{get:k,configurable:!0})}}var gv=function(y,R,k,N,Q,X,H){var U={$$typeof:t,type:y,key:R,ref:k,props:H,_owner:X};return U._store={},Object.defineProperty(U._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(U,"_self",{configurable:!1,enumerable:!1,writable:!1,value:N}),Object.defineProperty(U,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Q}),Object.freeze&&(Object.freeze(U.props),Object.freeze(U)),U};function vv(y,R,k,N,Q){{var X,H={},U=null,ge=null;k!==void 0&&(su(k),U=""+k),fv(R)&&(su(R.key),U=""+R.key),dv(R)&&(ge=R.ref,pv(R,Q));for(X in R)Gt.call(R,X)&&!uv.hasOwnProperty(X)&&(H[X]=R[X]);if(y&&y.defaultProps){var oe=y.defaultProps;for(X in oe)H[X]===void 0&&(H[X]=oe[X])}if(U||ge){var ie=typeof y=="function"?y.displayName||y.name||"Unknown":y;U&&hv(H,ie),ge&&mv(H,ie)}return gv(y,U,ge,Q,N,au.current,H)}}var Mi=_.ReactCurrentOwner,uu=_.ReactDebugCurrentFrame;function En(y){if(y){var R=y._owner,k=xn(y.type,y._source,R?R.type:null);uu.setExtraStackFrame(k)}else uu.setExtraStackFrame(null)}var $i;$i=!1;function Fi(y){return typeof y=="object"&&y!==null&&y.$$typeof===t}function du(){{if(Mi.current){var y=V(Mi.current.type);if(y)return`
10
+ */return function(){var e=Ue,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),x=Symbol.iterator,f="@@iterator";function v(b){if(b===null||typeof b!="object")return null;var A=x&&b[x]||b[f];return typeof A=="function"?A:null}var y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(b){{for(var A=arguments.length,I=new Array(A>1?A-1:0),F=1;F<A;F++)I[F-1]=arguments[F];C("error",b,I)}}function C(b,A,I){{var F=y.ReactDebugCurrentFrame,oe=F.getStackAddendum();oe!==""&&(A+="%s",I=I.concat([oe]));var ce=I.map(function(Y){return String(Y)});ce.unshift("Warning: "+A),Function.prototype.apply.call(console[b],console,ce)}}var S=!1,T=!1,P=!1,R=!1,D=!1,k;k=Symbol.for("react.module.reference");function L(b){return!!(typeof b=="string"||typeof b=="function"||b===r||b===i||D||b===o||b===u||b===p||R||b===g||S||T||P||typeof b=="object"&&b!==null&&(b.$$typeof===m||b.$$typeof===h||b.$$typeof===s||b.$$typeof===a||b.$$typeof===l||b.$$typeof===k||b.getModuleId!==void 0))}function W(b,A,I){var F=b.displayName;if(F)return F;var oe=A.displayName||A.name||"";return oe!==""?I+"("+oe+")":I}function z(b){return b.displayName||"Context"}function U(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 i:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case p:return"SuspenseList"}if(typeof b=="object")switch(b.$$typeof){case a:var A=b;return z(A)+".Consumer";case s:var I=b;return z(I._context)+".Provider";case l:return W(b,b.render,"ForwardRef");case h:var F=b.displayName||null;return F!==null?F:U(b.type)||"Memo";case m:{var oe=b,ce=oe._payload,Y=oe._init;try{return U(Y(ce))}catch{return null}}}return null}var V=Object.assign,se=0,G,Z,$,ae,we,$e,Wt;function Ht(){}Ht.__reactDisabledLog=!0;function lt(){{if(se===0){G=console.log,Z=console.info,$=console.warn,ae=console.error,we=console.group,$e=console.groupCollapsed,Wt=console.groupEnd;var b={configurable:!0,enumerable:!0,value:Ht,writable:!0};Object.defineProperties(console,{info:b,log:b,warn:b,error:b,group:b,groupCollapsed:b,groupEnd:b})}se++}}function Vt(){{if(se--,se===0){var b={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:V({},b,{value:G}),info:V({},b,{value:Z}),warn:V({},b,{value:$}),error:V({},b,{value:ae}),group:V({},b,{value:we}),groupCollapsed:V({},b,{value:$e}),groupEnd:V({},b,{value:Wt})})}se<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ye=y.ReactCurrentDispatcher,M;function ne(b,A,I){{if(M===void 0)try{throw Error()}catch(oe){var F=oe.stack.trim().match(/\n( *(at )?)/);M=F&&F[1]||""}return`
11
+ `+M+b}}var me=!1,J;{var re=typeof WeakMap=="function"?WeakMap:Map;J=new re}function ee(b,A){if(!b||me)return"";{var I=J.get(b);if(I!==void 0)return I}var F;me=!0;var oe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ce;ce=Ye.current,Ye.current=null,lt();try{if(A){var Y=function(){throw Error()};if(Object.defineProperty(Y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Y,[])}catch(je){F=je}Reflect.construct(b,[],Y)}else{try{Y.call()}catch(je){F=je}b.call(Y.prototype)}}else{try{throw Error()}catch(je){F=je}b()}}catch(je){if(je&&F&&typeof je.stack=="string"){for(var K=je.stack.split(`
12
+ `),Pe=F.stack.split(`
13
+ `),he=K.length-1,ge=Pe.length-1;he>=1&&ge>=0&&K[he]!==Pe[ge];)ge--;for(;he>=1&&ge>=0;he--,ge--)if(K[he]!==Pe[ge]){if(he!==1||ge!==1)do if(he--,ge--,ge<0||K[he]!==Pe[ge]){var Be=`
14
+ `+K[he].replace(" at new "," at ");return b.displayName&&Be.includes("<anonymous>")&&(Be=Be.replace("<anonymous>",b.displayName)),typeof b=="function"&&J.set(b,Be),Be}while(he>=1&&ge>=0);break}}}finally{me=!1,Ye.current=ce,Vt(),Error.prepareStackTrace=oe}var Vn=b?b.displayName||b.name:"",mn=Vn?ne(Vn):"";return typeof b=="function"&&J.set(b,mn),mn}function Re(b,A,I){return ee(b,!1)}function Fe(b){var A=b.prototype;return!!(A&&A.isReactComponent)}function ct(b,A,I){if(b==null)return"";if(typeof b=="function")return ee(b,Fe(b));if(typeof b=="string")return ne(b);switch(b){case u:return ne("Suspense");case p:return ne("SuspenseList")}if(typeof b=="object")switch(b.$$typeof){case l:return Re(b.render);case h:return ct(b.type,A,I);case m:{var F=b,oe=F._payload,ce=F._init;try{return ct(ce(oe),A,I)}catch{}}}return""}var Ze=Object.prototype.hasOwnProperty,zt={},Po=y.ReactDebugCurrentFrame;function wt(b){if(b){var A=b._owner,I=ct(b.type,b._source,A?A.type:null);Po.setExtraStackFrame(I)}else Po.setExtraStackFrame(null)}function Qy(b,A,I,F,oe){{var ce=Function.call.bind(Ze);for(var Y in b)if(ce(b,Y)){var K=void 0;try{if(typeof b[Y]!="function"){var Pe=Error((F||"React class")+": "+I+" type `"+Y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof b[Y]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Pe.name="Invariant Violation",Pe}K=b[Y](A,Y,F,I,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(he){K=he}K&&!(K instanceof Error)&&(wt(oe),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).",F||"React class",I,Y,typeof K),wt(null)),K instanceof Error&&!(K.message in zt)&&(zt[K.message]=!0,wt(oe),w("Failed %s type: %s",I,K.message),wt(null))}}}var Yy=Array.isArray;function os(b){return Yy(b)}function Zy(b){{var A=typeof Symbol=="function"&&Symbol.toStringTag,I=A&&b[Symbol.toStringTag]||b.constructor.name||"Object";return I}}function Xy(b){try{return rd(b),!1}catch{return!0}}function rd(b){return""+b}function od(b){if(Xy(b))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Zy(b)),rd(b)}var id=y.ReactCurrentOwner,Jy={key:!0,ref:!0,__self:!0,__source:!0},sd,ad;function e0(b){if(Ze.call(b,"ref")){var A=Object.getOwnPropertyDescriptor(b,"ref").get;if(A&&A.isReactWarning)return!1}return b.ref!==void 0}function t0(b){if(Ze.call(b,"key")){var A=Object.getOwnPropertyDescriptor(b,"key").get;if(A&&A.isReactWarning)return!1}return b.key!==void 0}function n0(b,A){typeof b.ref=="string"&&id.current}function r0(b,A){{var I=function(){sd||(sd=!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)",A))};I.isReactWarning=!0,Object.defineProperty(b,"key",{get:I,configurable:!0})}}function o0(b,A){{var I=function(){ad||(ad=!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)",A))};I.isReactWarning=!0,Object.defineProperty(b,"ref",{get:I,configurable:!0})}}var i0=function(b,A,I,F,oe,ce,Y){var K={$$typeof:t,type:b,key:A,ref:I,props:Y,_owner:ce};return K._store={},Object.defineProperty(K._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(K,"_self",{configurable:!1,enumerable:!1,writable:!1,value:F}),Object.defineProperty(K,"_source",{configurable:!1,enumerable:!1,writable:!1,value:oe}),Object.freeze&&(Object.freeze(K.props),Object.freeze(K)),K};function s0(b,A,I,F,oe){{var ce,Y={},K=null,Pe=null;I!==void 0&&(od(I),K=""+I),t0(A)&&(od(A.key),K=""+A.key),e0(A)&&(Pe=A.ref,n0(A,oe));for(ce in A)Ze.call(A,ce)&&!Jy.hasOwnProperty(ce)&&(Y[ce]=A[ce]);if(b&&b.defaultProps){var he=b.defaultProps;for(ce in he)Y[ce]===void 0&&(Y[ce]=he[ce])}if(K||Pe){var ge=typeof b=="function"?b.displayName||b.name||"Unknown":b;K&&r0(Y,ge),Pe&&o0(Y,ge)}return i0(b,K,Pe,oe,F,id.current,Y)}}var is=y.ReactCurrentOwner,ld=y.ReactDebugCurrentFrame;function Hn(b){if(b){var A=b._owner,I=ct(b.type,b._source,A?A.type:null);ld.setExtraStackFrame(I)}else ld.setExtraStackFrame(null)}var ss;ss=!1;function as(b){return typeof b=="object"&&b!==null&&b.$$typeof===t}function cd(){{if(is.current){var b=U(is.current.type);if(b)return`
15
15
 
16
- Check the render method of \``+y+"`."}return""}}function yv(y){return""}var fu={};function bv(y){{var R=du();if(!R){var k=typeof y=="string"?y:y.displayName||y.name;k&&(R=`
16
+ Check the render method of \``+b+"`."}return""}}function a0(b){return""}var ud={};function l0(b){{var A=cd();if(!A){var I=typeof b=="string"?b:b.displayName||b.name;I&&(A=`
17
17
 
18
- Check the top-level render call using <`+k+">.")}return R}}function pu(y,R){{if(!y._store||y._store.validated||y.key!=null)return;y._store.validated=!0;var k=bv(R);if(fu[k])return;fu[k]=!0;var N="";y&&y._owner&&y._owner!==Mi.current&&(N=" It was passed a child from "+V(y._owner.type)+"."),En(y),C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',k,N),En(null)}}function hu(y,R){{if(typeof y!="object")return;if(Ni(y))for(var k=0;k<y.length;k++){var N=y[k];Fi(N)&&pu(N,R)}else if(Fi(y))y._store&&(y._store.validated=!0);else if(y){var Q=v(y);if(typeof Q=="function"&&Q!==y.entries)for(var X=Q.call(y),H;!(H=X.next()).done;)Fi(H.value)&&pu(H.value,R)}}}function wv(y){{var R=y.type;if(R==null||typeof R=="string")return;var k;if(typeof R=="function")k=R.propTypes;else if(typeof R=="object"&&(R.$$typeof===l||R.$$typeof===p))k=R.propTypes;else return;if(k){var N=V(R);sv(k,y.props,"prop",N,y)}else if(R.PropTypes!==void 0&&!$i){$i=!0;var Q=V(R);C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Q||"Unknown")}typeof R.getDefaultProps=="function"&&!R.getDefaultProps.isReactClassApproved&&C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function _v(y){{for(var R=Object.keys(y.props),k=0;k<R.length;k++){var N=R[k];if(N!=="children"&&N!=="key"){En(y),C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",N),En(null);break}}y.ref!==null&&(En(y),C("Invalid attribute `ref` supplied to `React.Fragment`."),En(null))}}var mu={};function gu(y,R,k,N,Q,X){{var H=D(y);if(!H){var U="";(y===void 0||typeof y=="object"&&y!==null&&Object.keys(y).length===0)&&(U+=" 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 ge=yv();ge?U+=ge:U+=du();var oe;y===null?oe="null":Ni(y)?oe="array":y!==void 0&&y.$$typeof===t?(oe="<"+(V(y.type)||"Unknown")+" />",U=" Did you accidentally export a JSX literal instead of a component?"):oe=typeof y,C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",oe,U)}var ie=vv(y,R,k,Q,X);if(ie==null)return ie;if(H){var Pe=R.children;if(Pe!==void 0)if(N)if(Ni(Pe)){for(var Sn=0;Sn<Pe.length;Sn++)hu(Pe[Sn],y);Object.freeze&&Object.freeze(Pe)}else C("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 hu(Pe,y)}if(Gt.call(R,"key")){var qt=V(y),Ce=Object.keys(R).filter(function(Rv){return Rv!=="key"}),Bi=Ce.length>0?"{key: someKey, "+Ce.join(": ..., ")+": ...}":"{key: someKey}";if(!mu[qt+Bi]){var Tv=Ce.length>0?"{"+Ce.join(": ..., ")+": ...}":"{}";C(`A props object containing a "key" prop is being spread into JSX:
18
+ Check the top-level render call using <`+I+">.")}return A}}function dd(b,A){{if(!b._store||b._store.validated||b.key!=null)return;b._store.validated=!0;var I=l0(A);if(ud[I])return;ud[I]=!0;var F="";b&&b._owner&&b._owner!==is.current&&(F=" It was passed a child from "+U(b._owner.type)+"."),Hn(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,F),Hn(null)}}function fd(b,A){{if(typeof b!="object")return;if(os(b))for(var I=0;I<b.length;I++){var F=b[I];as(F)&&dd(F,A)}else if(as(b))b._store&&(b._store.validated=!0);else if(b){var oe=v(b);if(typeof oe=="function"&&oe!==b.entries)for(var ce=oe.call(b),Y;!(Y=ce.next()).done;)as(Y.value)&&dd(Y.value,A)}}}function c0(b){{var A=b.type;if(A==null||typeof A=="string")return;var I;if(typeof A=="function")I=A.propTypes;else if(typeof A=="object"&&(A.$$typeof===l||A.$$typeof===h))I=A.propTypes;else return;if(I){var F=U(A);Qy(I,b.props,"prop",F,b)}else if(A.PropTypes!==void 0&&!ss){ss=!0;var oe=U(A);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",oe||"Unknown")}typeof A.getDefaultProps=="function"&&!A.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function u0(b){{for(var A=Object.keys(b.props),I=0;I<A.length;I++){var F=A[I];if(F!=="children"&&F!=="key"){Hn(b),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",F),Hn(null);break}}b.ref!==null&&(Hn(b),w("Invalid attribute `ref` supplied to `React.Fragment`."),Hn(null))}}var pd={};function hd(b,A,I,F,oe,ce){{var Y=L(b);if(!Y){var K="";(b===void 0||typeof b=="object"&&b!==null&&Object.keys(b).length===0)&&(K+=" 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 Pe=a0();Pe?K+=Pe:K+=cd();var he;b===null?he="null":os(b)?he="array":b!==void 0&&b.$$typeof===t?(he="<"+(U(b.type)||"Unknown")+" />",K=" Did you accidentally export a JSX literal instead of a component?"):he=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",he,K)}var ge=s0(b,A,I,oe,ce);if(ge==null)return ge;if(Y){var Be=A.children;if(Be!==void 0)if(F)if(os(Be)){for(var Vn=0;Vn<Be.length;Vn++)fd(Be[Vn],b);Object.freeze&&Object.freeze(Be)}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 fd(Be,b)}if(Ze.call(A,"key")){var mn=U(b),je=Object.keys(A).filter(function(g0){return g0!=="key"}),ls=je.length>0?"{key: someKey, "+je.join(": ..., ")+": ...}":"{key: someKey}";if(!pd[mn+ls]){var m0=je.length>0?"{"+je.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} />`,Bi,qt,Tv,qt),mu[qt+Bi]=!0}}return y===r?_v(ie):wv(ie),ie}}function Cv(y,R,k){return gu(y,R,k,!0)}function xv(y,R,k){return gu(y,R,k,!1)}var Ev=xv,Sv=Cv;Rn.Fragment=r,Rn.jsx=Ev,Rn.jsxs=Sv}(),Rn}rs.exports=Tu();var c=rs.exports;const is=qn(null),ss=({module:e,children:t})=>c.jsx(is.Provider,{value:e,children:t});ss.displayName="PAEModule";const Xn=x("useModuleMetadata",()=>{const e=Qn(is);if(!e)throw new Error("Module metadata was not setup yet !!");return e});function go(){if(!window[Tn])throw new Error("PAE Global state not found.");return window[Tn]}const as=x("getApplications",()=>{const{authUser:{applications:e}}=go();return e||[]}),Ru=x("getOperations",e=>as().filter(t=>t.isGlobal||t.name===e).flatMap(t=>t.operations)),Au=x("useOperations",()=>{const{application:e}=Xn();return Re(()=>Ru(e),[e])}),Pu=x("hasAccess",e=>(...t)=>t.every(n=>e.some(r=>r.name===n))),Jn=x("useAuth",()=>{const[{authUser:e}]=Kn(),t=Au();return{authUser:e,hasAccess:Re(()=>Pu(t),[t])}}),Ov=x("useHasNoSession",()=>{const{authUser:e}=Jn();return!e||e.id==="anon"}),ls=x("useModuleConfig",()=>{var e;return((e=Xn().ui)==null?void 0:e.customProps)??{}}),cs=x("useModule",e=>{const t=Zn();return Re(()=>{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])}),Ou=x("useModuleConfigByName",e=>{var t,n;return((n=(t=cs(e))==null?void 0:t.ui)==null?void 0:n.customProps)??{}}),ku=e=>e.replace(/\/+/g,"/"),kv=x("useModuleCommonPaths",(e,t="only-base-path")=>{const{apiDocs:n,health:r,version:o,changelog:i}=(e==null?void 0:e.commonPaths)||{},s=(a,l="")=>{if(a===void 0&&!l)return;const u=a??l;if(t==="only-base-path")return u;const d=ku(`${e.baseUrl}/${u}`);return t==="with-module-base"?d:`${document.location.origin}${d}`};return{apiDocsPath:s(n,"/api-docs-json"),healthPath:s(r,"/health"),versionPath:s(o,"/version"),changelogPath:s(i,"/changelog")}});function ju(){window.open(bu,"_self")}const jv=x("navigateTo",e=>Xi(e)),Lu=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z]{2,}$/,Lv=x("isValidEmail",e=>Lu.test(e)),Dv=x("getInitials",(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)}),us=e=>e.type==="app",Du=e=>e.modules.some(us)&&e.route&&e.route!=="/",ds=e=>{const{catalog:t}=go();return er(t.filter(n=>n.application===e))},er=(e=[])=>e.find(t=>{var n;return us(t)&&((n=t.ui)==null?void 0:n.route)!=="/"}),Iu=x("useApplications",()=>{const e=Zn();return Re(()=>as().map(n=>{var i,s,a;const r=Nu(e,n.name),o=er(r);return{name:n.name,displayName:((s=(i=o==null?void 0:o.ui)==null?void 0:i.customProps)==null?void 0:s.overrideApplicationDisplayName)??n.displayName,modules:r,route:(a=o==null?void 0:o.ui)==null?void 0:a.route,roles:[],operations:n.operations}}),[e])}),Nu=(e,t)=>e.filter(n=>n.application===t)||[],Mu=x("useUIApplications",()=>{const e=Iu();return Re(()=>e.filter(Du),[e])}),$u=x("useApplicationUIModule",e=>Re(()=>e?ds(e.name):void 0,[e])),it=new Map,Fu=e=>{try{const{catalog:t}=go(),n=t.find(r=>r.name===e);return n!=null&&n.version?`${e}@${n.version}`:e}catch{return e}},vo=x("useApplicationJSModule",e=>{const[t,n]=$(null);return K(()=>{(async()=>{if(!e){n(null);return}try{const o=Fu(e);if(it.has(o)){const s=it.get(o);n(s);return}const i=await System.import(e);it.set(o,i),n(i)}catch(o){console.error(`Error importing module ${e}: ${o.message}`),n(null)}})()},[e,n]),t}),Bu=e=>{e?(Array.from(it.keys()).filter(n=>n.startsWith(e)).forEach(n=>it.delete(n)),console.log(`[useApplicationJSModule] Cleared cache for module: ${e}`)):(it.clear(),console.log("[useApplicationJSModule] Cleared all module cache"))};typeof window<"u"&&(window.PAE={...window.PAE,clearModuleCache:Bu,getModuleCacheSize:()=>it.size,getModuleCacheKeys:()=>Array.from(it.keys())});const Uu=x("useApplicationIcon",e=>{const t=typeof e=="string"?ds(e):er(e==null?void 0:e.modules),n=vo(t==null?void 0:t.name);return n==null?void 0:n.icon}),Wu=x("useModuleMenu",e=>{const t=er(e==null?void 0:e.modules),n=vo(t==null?void 0:t.name),[r,o]=$(!1),[i,s]=$({}),a=async()=>(typeof(n==null?void 0:n.menu)=="function"?await n.menu():n==null?void 0:n.menu)||[],l=async()=>{if(!(n!=null&&n.menu))return[];o(!0);const p=zu((e==null?void 0:e.operations)||[]),m=(await a()).map(g=>{const{operations:w,items:f,path:v}=g;if(w!=null&&w.length&&!p(w))return null;const _=(f||[]).filter(C=>{var S;return!((S=C==null?void 0:C.operations)!=null&&S.length)||p(C.operations)});return!_.length&&!v?null:{...g,items:_}}).filter(Boolean);return o(!1),m},u=async()=>{const p=await l();e&&s(m=>({...m,[e.name]:p}))};K(()=>{u()},[n==null?void 0:n.menu]);const d=Re(()=>e?i[e.name]||[]:[],[i,e]);return{loading:r,menu:d}}),zu=e=>t=>t.every(n=>e.some(r=>r.name===n)),Iv=x("useApplicationMenu",e=>Wu(e));function J(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function St(e){return function t(n){return arguments.length===0||J(n)?t:e.apply(this,arguments)}}function st(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return J(n)?t:St(function(o){return e(n,o)});default:return J(n)&&J(r)?t:J(n)?St(function(o){return e(o,r)}):J(r)?St(function(o){return e(n,o)}):e(n,r)}}}function yo(e){return function t(n,r,o){switch(arguments.length){case 0:return t;case 1:return J(n)?t:st(function(i,s){return e(n,i,s)});case 2:return J(n)&&J(r)?t:J(n)?st(function(i,s){return e(i,r,s)}):J(r)?st(function(i,s){return e(n,i,s)}):St(function(i){return e(n,r,i)});default:return J(n)&&J(r)&&J(o)?t:J(n)&&J(r)?st(function(i,s){return e(i,s,o)}):J(n)&&J(o)?st(function(i,s){return e(i,r,s)}):J(r)&&J(o)?st(function(i,s){return e(n,i,s)}):J(n)?St(function(i){return e(i,r,o)}):J(r)?St(function(i){return e(n,i,o)}):J(o)?St(function(i){return e(n,r,i)}):e(n,r,o)}}}function tr(e,t){return Object.prototype.hasOwnProperty.call(t,e)}function fs(e){return Object.prototype.toString.call(e)==="[object Object]"}var Hu=yo(function(t,n,r){var o=t(n),i=t(r);return o>i?-1:o<i?1:0}),Vu=yo(function(t,n,r){var o={},i;n=n||{},r=r||{};for(i in n)tr(i,n)&&(o[i]=tr(i,r)?t(i,n[i],r[i]):n[i]);for(i in r)tr(i,r)&&!tr(i,o)&&(o[i]=r[i]);return o}),Gu=yo(function e(t,n,r){return Vu(function(o,i,s){return fs(i)&&fs(s)?e(t,i,s):t(o,i,s)},n,r)}),qu=st(function(t,n){return Gu(function(r,o,i){return i},t,n)}),Qu=st(function(t,n){return Array.prototype.slice.call(n,0).sort(function(r,o){for(var i=0,s=0;i===0&&s<t.length;)i=t[s](r,o),s+=1;return i})});const ps=x("useCurrentApplication",()=>{const e=xu(),t=Mu();return Re(()=>Yu(e,t),[e,t])}),Yu=(e,t)=>Qu([Hu(Ku)],t).find(n=>n.route&&e.startsWith(n.route)),Ku=e=>{var t;return((t=e==null?void 0:e.route)==null?void 0:t.length)||-1},Zu=x("useCurrentApplicationName",()=>{var e;return(e=ps())==null?void 0:e.name}),Nv=x("useCurrentJSModule",()=>{const e=ps(),t=$u(e);return vo(t==null?void 0:t.name)}),hs=x("useServiceBaseURL",(e,t)=>{const r=Zn().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}),ms=x("useServiceInvoker",(e,t)=>{const n=hs(e,!!t)??t;return se((r,o)=>{const s={Accept:"application/json",...(o==null?void 0:o.body)instanceof FormData?{}:{"Content-Type":"application/json"},...o==null?void 0:o.headers};return fetch(Xu(`${n}${r}`),{...o,headers:s})},[n])}),Xu=e=>e.replace(/\/+/g,"/"),Ju=["impersonate","impersonate-display-name","tenant"],ed=x("useServiceWebSocketURL",(e,t)=>{const n=hs(e,t);return Re(()=>{if(!n)return null;try{const r=new URL(window.location.href),o=new URL(n,window.location.origin);return Ju.forEach(i=>{const s=r.searchParams.get(i);s&&o.searchParams.set(i,s)}),o.toString()}catch(r){return console.error("Error building WebSocket URL:",r),n}},[n])}),td=(e,t)=>n=>({timestamp:new Date(new Date().toUTCString()).toISOString(),module:t.name,moduleVersion:t.version,application:t.application,user:e.username,...n}),nd=(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(td(t,n)))});if(!o.ok)throw new Error(`Error publishing habits event ${o.statusText}`)},rd="@bluealba/pae-habits-service",od=x("useTrackEvents",()=>{const{authUser:e}=Jn(),t=Xn(),n=ms(rd);return se(nd(n,e,t),[n,e,t])}),Mv=x("useTrackEvent",()=>{const e=od();return se((t,n)=>e([{name:t,data:n}]),[e])}),id=x("useExtensionPoint",e=>{const t=Xn(),n=window[ts],[r,o]=$(null);return K(()=>n.defineExtensionPoint(t,e,i=>{o(()=>i)}),[o]),r}),sd=x("useExtendExtensionPoint",(e,t,n)=>{K(()=>window[ts].setExtensionPoint(e,t,n),[])}),ad=x("usePlatformEventListener",(e,t)=>{K(()=>(window.addEventListener(e,t),()=>window.removeEventListener(e,t)),[e,t])}),ld=x("useDynamicStyleSheet",e=>{const{cssCustomizationLoadingDelay:t=1e3}=ls();K(()=>{if(!e)return;const n=document.createElement("style");return setTimeout(()=>{n.innerHTML=e,document.head.append(n)},t),()=>n&&n.remove()},[e])}),cd=e=>{var t;return(t=e.split(/[#?]/)[0].split(".").pop())==null?void 0:t.trim()},ud={woff2:"woff2",woff:"woff",ttf:"truetype",otf:"opentype",eot:"embedded-opentype",svg:"svg"},dd=e=>{const t=cd(e);return t?ud[t]:void 0},fd=(e,t)=>{const n=t??dd(e);return n?`format(${n})`:""};function gs(e){const[t,n]=$(!1);return K(()=>{if(!(e!=null&&e.length))return;const r=document.createElement("style");r.setAttribute("data-generated-fonts","true");const o=e.flatMap(({fontFamily:s,variants:a})=>a.map(({path:l,fontWeight:u,format:d})=>`
23
+ <%s key={someKey} {...props} />`,ls,mn,m0,mn),pd[mn+ls]=!0}}return b===r?u0(ge):c0(ge),ge}}function d0(b,A,I){return hd(b,A,I,!0)}function f0(b,A,I){return hd(b,A,I,!1)}var p0=f0,h0=d0;qn.Fragment=r,qn.jsx=p0,qn.jsxs=h0}(),qn}Es.exports=Sd();var c=Es.exports;const Rs=pr(null),Ps=({module:e,children:t})=>c.jsx(Rs.Provider,{value:e,children:t});Ps.displayName="PAEModule";const br=E("useModuleMetadata",()=>{const e=hr(Rs);if(!e)throw new Error("Module metadata was not setup yet !!");return e});function Lo(){if(!window[Gn])throw new Error("PAE Global state not found.");return window[Gn]}const As=E("getApplications",()=>{const{authUser:{applications:e}}=Lo();return e||[]}),Ed=E("getOperations",e=>As().filter(t=>t.isGlobal||t.name===e).flatMap(t=>t.operations)),Td=E("useOperations",()=>{const{application:e}=br();return Ne(()=>Ed(e),[e])}),Rd=E("hasAccess",e=>(...t)=>t.every(n=>e.some(r=>r.name===n))),wr=E("useAuth",()=>{const[{authUser:e}]=vr(),t=Td();return{authUser:e,hasAccess:Ne(()=>Rd(t),[t])}}),b0=E("useHasNoSession",()=>{const{authUser:e}=wr();return!e||e.id==="anon"}),Os=E("useModuleConfig",()=>{var e;return((e=br().ui)==null?void 0:e.customProps)??{}}),Is=E("useModule",e=>{const t=yr();return Ne(()=>{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])}),Pd=E("useModuleConfigByName",e=>{var t,n;return((n=(t=Is(e))==null?void 0:t.ui)==null?void 0:n.customProps)??{}}),Ad=e=>e.replace(/\/+/g,"/"),w0=E("useModuleCommonPaths",(e,t="only-base-path")=>{const{apiDocs:n,health:r,version:o,changelog:i}=(e==null?void 0:e.commonPaths)||{},s=(a,l="")=>{if(a===void 0&&!l)return;const u=a??l;if(t==="only-base-path")return u;const p=Ad(`${e.baseUrl}/${u}`);return t==="with-module-base"?p:`${document.location.origin}${p}`};return{apiDocsPath:s(n,"/api-docs-json"),healthPath:s(r,"/health"),versionPath:s(o,"/version"),changelogPath:s(i,"/changelog")}});function Od(){window.open(vd,"_self")}const _0=E("navigateTo",e=>ws(e)),Id=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z]{2,}$/,x0=E("isValidEmail",e=>Id.test(e)),C0=E("getInitials",(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)}),js=e=>e.type==="app",jd=e=>e.modules.some(js)&&e.route&&e.route!=="/",ks=e=>{const{catalog:t}=Lo();return _r(t.filter(n=>n.application===e))},_r=(e=[])=>e.find(t=>{var n;return js(t)&&((n=t.ui)==null?void 0:n.route)!=="/"}),kd=E("useApplications",()=>{const e=yr();return Ne(()=>As().map(n=>{var i,s,a;const r=Ld(e,n.name),o=_r(r);return{name:n.name,displayName:((s=(i=o==null?void 0:o.ui)==null?void 0:i.customProps)==null?void 0:s.overrideApplicationDisplayName)??n.displayName,modules:r,route:(a=o==null?void 0:o.ui)==null?void 0:a.route,roles:[],operations:n.operations}}),[e])}),Ld=(e,t)=>e.filter(n=>n.application===t)||[],Dd=E("useUIApplications",()=>{const e=kd();return Ne(()=>e.filter(jd),[e])}),Nd=E("useApplicationUIModule",e=>Ne(()=>e?ks(e.name):void 0,[e])),xt=new Map,Md=e=>{try{const{catalog:t}=Lo(),n=t.find(r=>r.name===e);return n!=null&&n.version?`${e}@${n.version}`:e}catch{return e}},Do=E("useApplicationJSModule",e=>{const[t,n]=B(null);return ie(()=>{(async()=>{if(!e){n(null);return}try{const o=Md(e);if(xt.has(o)){const s=xt.get(o);n(s);return}const i=await System.import(e);xt.set(o,i),n(i)}catch(o){console.error(`Error importing module ${e}: ${o.message}`),n(null)}})()},[e,n]),t}),$d=e=>{e?(Array.from(xt.keys()).filter(n=>n.startsWith(e)).forEach(n=>xt.delete(n)),console.log(`[useApplicationJSModule] Cleared cache for module: ${e}`)):(xt.clear(),console.log("[useApplicationJSModule] Cleared all module cache"))};typeof window<"u"&&(window.PAE={...window.PAE,clearModuleCache:$d,getModuleCacheSize:()=>xt.size,getModuleCacheKeys:()=>Array.from(xt.keys())});const Fd=E("useApplicationIcon",e=>{const t=typeof e=="string"?ks(e):_r(e==null?void 0:e.modules),n=Do(t==null?void 0:t.name);return n==null?void 0:n.icon}),Bd=E("useModuleMenu",e=>{const t=_r(e==null?void 0:e.modules),n=Do(t==null?void 0:t.name),[r,o]=B(!1),[i,s]=B({}),a=async()=>(typeof(n==null?void 0:n.menu)=="function"?await n.menu():n==null?void 0:n.menu)||[],l=async()=>{if(!(n!=null&&n.menu))return[];o(!0);const h=Ud((e==null?void 0:e.operations)||[]),m=(await a()).map(g=>{const{operations:x,items:f,path:v}=g;if(x!=null&&x.length&&!h(x))return null;const y=(f||[]).filter(w=>{var C;return!((C=w==null?void 0:w.operations)!=null&&C.length)||h(w.operations)});return!y.length&&!v?null:{...g,items:y}}).filter(Boolean);return o(!1),m},u=async()=>{const h=await l();e&&s(m=>({...m,[e.name]:h}))};ie(()=>{u()},[n==null?void 0:n.menu]);const p=Ne(()=>e?i[e.name]||[]:[],[i,e]);return{loading:r,menu:p}}),Ud=e=>t=>t.every(n=>e.some(r=>r.name===n)),S0=E("useApplicationMenu",e=>Bd(e));function ue(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function qt(e){return function t(n){return arguments.length===0||ue(n)?t:e.apply(this,arguments)}}function Ct(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return ue(n)?t:qt(function(o){return e(n,o)});default:return ue(n)&&ue(r)?t:ue(n)?qt(function(o){return e(o,r)}):ue(r)?qt(function(o){return e(n,o)}):e(n,r)}}}function No(e){return function t(n,r,o){switch(arguments.length){case 0:return t;case 1:return ue(n)?t:Ct(function(i,s){return e(n,i,s)});case 2:return ue(n)&&ue(r)?t:ue(n)?Ct(function(i,s){return e(i,r,s)}):ue(r)?Ct(function(i,s){return e(n,i,s)}):qt(function(i){return e(n,r,i)});default:return ue(n)&&ue(r)&&ue(o)?t:ue(n)&&ue(r)?Ct(function(i,s){return e(i,s,o)}):ue(n)&&ue(o)?Ct(function(i,s){return e(i,r,s)}):ue(r)&&ue(o)?Ct(function(i,s){return e(n,i,s)}):ue(n)?qt(function(i){return e(i,r,o)}):ue(r)?qt(function(i){return e(n,i,o)}):ue(o)?qt(function(i){return e(n,r,i)}):e(n,r,o)}}}function xr(e,t){return Object.prototype.hasOwnProperty.call(t,e)}function Ls(e){return Object.prototype.toString.call(e)==="[object Object]"}var Wd=No(function(t,n,r){var o=t(n),i=t(r);return o>i?-1:o<i?1:0}),Hd=No(function(t,n,r){var o={},i;n=n||{},r=r||{};for(i in n)xr(i,n)&&(o[i]=xr(i,r)?t(i,n[i],r[i]):n[i]);for(i in r)xr(i,r)&&!xr(i,o)&&(o[i]=r[i]);return o}),Vd=No(function e(t,n,r){return Hd(function(o,i,s){return Ls(i)&&Ls(s)?e(t,i,s):t(o,i,s)},n,r)}),zd=Ct(function(t,n){return Vd(function(r,o,i){return i},t,n)}),Gd=Ct(function(t,n){return Array.prototype.slice.call(n,0).sort(function(r,o){for(var i=0,s=0;i===0&&s<t.length;)i=t[s](r,o),s+=1;return i})});const Ds=E("useCurrentApplication",()=>{const e=_d(),t=Dd();return Ne(()=>qd(e,t),[e,t])}),qd=(e,t)=>Gd([Wd(Kd)],t).find(n=>n.route&&e.startsWith(n.route)),Kd=e=>{var t;return((t=e==null?void 0:e.route)==null?void 0:t.length)||-1},Qd=E("useCurrentApplicationName",()=>{var e;return(e=Ds())==null?void 0:e.name}),E0=E("useCurrentJSModule",()=>{const e=Ds(),t=Nd(e);return Do(t==null?void 0:t.name)}),Ns=E("useServiceBaseURL",(e,t)=>{const r=yr().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}),Ms=E("useServiceInvoker",(e,t)=>{const n=Ns(e,!!t)??t;return ve((r,o)=>{const s={Accept:"application/json",...(o==null?void 0:o.body)instanceof FormData?{}:{"Content-Type":"application/json"},...o==null?void 0:o.headers};return fetch(Yd(`${n}${r}`),{...o,headers:s})},[n])}),Yd=e=>e.replace(/\/+/g,"/"),Zd=["impersonate","impersonate-display-name","tenant"],Xd=E("useServiceWebSocketURL",(e,t)=>{const n=Ns(e,t);return Ne(()=>{if(!n)return null;try{const r=new URL(window.location.href),o=new URL(n,window.location.origin);return Zd.forEach(i=>{const s=r.searchParams.get(i);s&&o.searchParams.set(i,s)}),o.toString()}catch(r){return console.error("Error building WebSocket URL:",r),n}},[n])}),Jd=(e,t)=>n=>({timestamp:new Date(new Date().toUTCString()).toISOString(),module:t.name,moduleVersion:t.version,application:t.application,user:e.username,...n}),ef=(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(Jd(t,n)))});if(!o.ok)throw new Error(`Error publishing habits event ${o.statusText}`)},tf="@bluealba/pae-habits-service",nf=E("useTrackEvents",()=>{const{authUser:e}=wr(),t=br(),n=Ms(tf);return ve(ef(n,e,t),[n,e,t])}),T0=E("useTrackEvent",()=>{const e=nf();return ve((t,n)=>e([{name:t,data:n}]),[e])}),rf=E("useExtensionPoint",e=>{const t=br(),n=window[Cs],[r,o]=B(null);return ie(()=>n.defineExtensionPoint(t,e,i=>{o(()=>i)}),[o]),r}),of=E("useExtendExtensionPoint",(e,t,n)=>{ie(()=>window[Cs].setExtensionPoint(e,t,n),[])}),sf=E("usePlatformEventListener",(e,t)=>{ie(()=>(window.addEventListener(e,t),()=>window.removeEventListener(e,t)),[e,t])}),af=E("useDynamicStyleSheet",e=>{const{cssCustomizationLoadingDelay:t=1e3}=Os();ie(()=>{if(!e)return;const n=document.createElement("style");return setTimeout(()=>{n.innerHTML=e,document.head.append(n)},t),()=>n&&n.remove()},[e])}),lf=e=>{var t;return(t=e.split(/[#?]/)[0].split(".").pop())==null?void 0:t.trim()},cf={woff2:"woff2",woff:"woff",ttf:"truetype",otf:"opentype",eot:"embedded-opentype",svg:"svg"},uf=e=>{const t=lf(e);return t?cf[t]:void 0},df=(e,t)=>{const n=t??uf(e);return n?`format(${n})`:""};function $s(e){const[t,n]=B(!1);return ie(()=>{if(!(e!=null&&e.length))return;const r=document.createElement("style");r.setAttribute("data-generated-fonts","true");const o=e.flatMap(({fontFamily:s,variants:a})=>a.map(({path:l,fontWeight:u,format:p})=>`
24
24
  @font-face {
25
25
  font-family: "${s}";
26
- src: url("${l}") ${fd(l,d)};
26
+ src: url("${l}") ${df(l,p)};
27
27
  font-weight: ${u};
28
28
  font-style: normal;
29
29
  }
30
30
  `)).join(`
31
- `);return r.innerHTML=o,document.head.appendChild(r),(async()=>{try{await Promise.all(e.flatMap(({fontFamily:s,variants:a})=>a.map(({fontWeight:l})=>document.fonts.load(`normal ${l} 1em "${s}"`))))}finally{n(!0)}})(),()=>{document.head.removeChild(r)}},[e]),K(()=>{!t&&!(e!=null&&e.length)&&n(!0)},[e,t]),{fontsLoaded:t}}var bo=function(e,t){return bo=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])},bo(e,t)};function An(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");bo(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var $e=function(){return $e=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},$e.apply(this,arguments)};function vs(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 wo(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 _o(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function nr(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function qe(e){return typeof e=="function"}function ys(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 Co=ys(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
31
+ `);return r.innerHTML=o,document.head.appendChild(r),(async()=>{try{await Promise.all(e.flatMap(({fontFamily:s,variants:a})=>a.map(({fontWeight:l})=>document.fonts.load(`normal ${l} 1em "${s}"`))))}finally{n(!0)}})(),()=>{document.head.removeChild(r)}},[e]),ie(()=>{!t&&!(e!=null&&e.length)&&n(!0)},[e,t]),{fontsLoaded:t}}var Mo=function(e,t){return Mo=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])},Mo(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");Mo(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Xe=function(){return Xe=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Xe.apply(this,arguments)};function Fs(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 $o(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 Fo(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function Cr(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function ut(e){return typeof e=="function"}function Bs(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 Bo=Bs(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
32
32
  `+n.map(function(r,o){return o+1+") "+r.toString()}).join(`
33
- `):"",this.name="UnsubscriptionError",this.errors=n}});function xo(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var rr=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,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=wo(s),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(f){t={error:f}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}else s.remove(this);var d=this.initialTeardown;if(qe(d))try{d()}catch(f){i=f instanceof Co?f.errors:[f]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var m=wo(p),g=m.next();!g.done;g=m.next()){var w=g.value;try{_s(w)}catch(f){i=i??[],f instanceof Co?i=nr(nr([],_o(i)),_o(f.errors)):i.push(f)}}}catch(f){r={error:f}}finally{try{g&&!g.done&&(o=m.return)&&o.call(m)}finally{if(r)throw r.error}}}if(i)throw new Co(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)_s(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)&&xo(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&xo(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),bs=rr.EMPTY;function ws(e){return e instanceof rr||e&&"closed"in e&&qe(e.remove)&&qe(e.add)&&qe(e.unsubscribe)}function _s(e){qe(e)?e():e.unsubscribe()}var pd={Promise:void 0},hd={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,nr([e,t],_o(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function md(e){hd.setTimeout(function(){throw e})}function Cs(){}function or(e){e()}var xs=function(e){An(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,ws(n)&&n.add(r)):r.destination=yd,r}return t.create=function(n,r,o){return new Eo(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}(rr),gd=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){ir(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){ir(r)}else ir(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){ir(n)}},e}(),Eo=function(e){An(t,e);function t(n,r,o){var i=e.call(this)||this,s;return qe(n)||!n?s={next:n??void 0,error:r??void 0,complete:o??void 0}:s=n,i.destination=new gd(s),i}return t}(xs);function ir(e){md(e)}function vd(e){throw e}var yd={closed:!0,next:Cs,error:vd,complete:Cs},bd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function wd(e){return e}function _d(e){return e.length===0?wd:e.length===1?e[0]:function(n){return e.reduce(function(r,o){return o(r)},n)}}var Es=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,i=xd(t)?t:new Eo(t,n,r);return or(function(){var s=o,a=s.operator,l=s.source;i.add(a?a.call(i,l):l?o._subscribe(i):o._trySubscribe(i))}),i},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=Ss(n),new n(function(o,i){var s=new Eo({next:function(a){try{t(a)}catch(l){i(l),s.unsubscribe()}},error:i,complete:o});r.subscribe(s)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[bd]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return _d(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=Ss(t),new t(function(r,o){var i;n.subscribe(function(s){return i=s},function(s){return o(s)},function(){return r(i)})})},e.create=function(t){return new e(t)},e}();function Ss(e){var t;return(t=e??pd.Promise)!==null&&t!==void 0?t:Promise}function Cd(e){return e&&qe(e.next)&&qe(e.error)&&qe(e.complete)}function xd(e){return e&&e instanceof xs||Cd(e)&&ws(e)}var Ed=ys(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Ts=function(e){An(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 Rs(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new Ed},t.prototype.next=function(n){var r=this;or(function(){var o,i;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var s=wo(r.currentObservers),a=s.next();!a.done;a=s.next()){var l=a.value;l.next(n)}}catch(u){o={error:u}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}}})},t.prototype.error=function(n){var r=this;or(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;or(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,i=o.hasError,s=o.isStopped,a=o.observers;return i||s?bs:(this.currentObservers=null,a.push(n),new rr(function(){r.currentObservers=null,xo(a,n)}))},t.prototype._checkFinalizedStatuses=function(n){var r=this,o=r.hasError,i=r.thrownError,s=r.isStopped;o?n.error(i):s&&n.complete()},t.prototype.asObservable=function(){var n=new Es;return n.source=this,n},t.create=function(n,r){return new Rs(n,r)},t}(Es),Rs=function(e){An(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:bs},t}(Ts),Sd=function(e){An(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,i=n._value;if(r)throw o;return this._throwIfClosed(),i},t.prototype.next=function(n){e.prototype.next.call(this,this._value=n)},t}(Ts);const $v=x("usePlatformCustomization",e=>{const{fontsLoaded:t}=gs(e.fonts);ld(e.styleSheet);const n=()=>{const r=new Sd(!0);window[ho]=r};K(()=>{t&&window[ho].next(!1)},[t]),K(()=>{n()},[])}),Fv=x("usePAECustomizationsLoadingState",()=>{const e=window[ho];return ns(e,e.getValue()??void 0)}),So="theme",As=()=>document.documentElement.dataset[So]==="dark"?"dark":"light",Bv=x("useGetPlatformTheme",()=>{const[e,t]=$(As());return K(()=>{const n=document.documentElement,r=()=>t(As),o=new MutationObserver(i=>{for(const s of i)s.type==="attributes"&&s.attributeName===`data-${So}`&&r()});return o.observe(n,{attributes:!0,attributeFilter:[`data-${So}`]}),r(),()=>{o.disconnect()}},[]),e}),Uv=x("platformHaveAnyCustomization",e=>e!==void 0),Wv=x("isPlatformCustomizationCompleted",e=>e!==!0);let Td={data:""},Rd=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||Td},Ad=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Pd=/\/\*[^]*?\*\/| +/g,Ps=/\n+/g,at=(e,t)=>{let n="",r="",o="";for(let i in e){let s=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+s+";":r+=i[1]=="f"?at(s,i):i+"{"+at(s,i[1]=="k"?"":t)+"}":typeof s=="object"?r+=at(s,t?t.replace(/([^,])+/g,a=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,a):a?a+" "+l:l)):i):s!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=at.p?at.p(i,s):i+":"+s+";")}return n+(t&&o?t+"{"+o+"}":o)+r},Qe={},Os=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+Os(e[n]);return t}return e},Od=(e,t,n,r,o)=>{let i=Os(e),s=Qe[i]||(Qe[i]=(l=>{let u=0,d=11;for(;u<l.length;)d=101*d+l.charCodeAt(u++)>>>0;return"go"+d})(i));if(!Qe[s]){let l=i!==e?e:(u=>{let d,p,m=[{}];for(;d=Ad.exec(u.replace(Pd,""));)d[4]?m.shift():d[3]?(p=d[3].replace(Ps," ").trim(),m.unshift(m[0][p]=m[0][p]||{})):m[0][d[1]]=d[2].replace(Ps," ").trim();return m[0]})(e);Qe[s]=at(o?{["@keyframes "+s]:l}:l,n?"":"."+s)}let a=n&&Qe.g?Qe.g:null;return n&&(Qe.g=Qe[s]),((l,u,d,p)=>{p?u.data=u.data.replace(p,l):u.data.indexOf(l)===-1&&(u.data=d?l+u.data:u.data+l)})(Qe[s],t,r,a),s},kd=(e,t,n)=>e.reduce((r,o,i)=>{let s=t[i];if(s&&s.call){let a=s(n),l=a&&a.props&&a.props.className||/^go/.test(a)&&a;s=l?"."+l:a&&typeof a=="object"?a.props?"":at(a,""):a===!1?"":a}return r+o+(s??"")},"");function sr(e){let t=this||{},n=e.call?e(t.p):e;return Od(n.unshift?n.raw?kd(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,Rd(t.target),t.g,t.o,t.k)}let ks,To,Ro;sr.bind({g:1});let Ye=sr.bind({k:1});function jd(e,t,n,r){at.p=t,ks=e,To=n,Ro=r}function lt(e,t){let n=this||{};return function(){let r=arguments;function o(i,s){let a=Object.assign({},i),l=a.className||o.className;n.p=Object.assign({theme:To&&To()},a),n.o=/ *go\d+/.test(l),a.className=sr.apply(n,r)+(l?" "+l:"");let u=e;return e[0]&&(u=a.as||e,delete a.as),Ro&&u[0]&&Ro(a),ks(u,a)}return o}}var Ld=e=>typeof e=="function",ar=(e,t)=>Ld(e)?e(t):e,Dd=(()=>{let e=0;return()=>(++e).toString()})(),js=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Id=20,lr=new Map,Nd=1e3,Ls=e=>{if(lr.has(e))return;let t=setTimeout(()=>{lr.delete(e),Tt({type:4,toastId:e})},Nd);lr.set(e,t)},Md=e=>{let t=lr.get(e);t&&clearTimeout(t)},Ao=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,Id)};case 1:return t.toast.id&&Md(t.toast.id),{...e,toasts:e.toasts.map(i=>i.id===t.toast.id?{...i,...t.toast}:i)};case 2:let{toast:n}=t;return e.toasts.find(i=>i.id===n.id)?Ao(e,{type:1,toast:n}):Ao(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?Ls(r):e.toasts.forEach(i=>{Ls(i.id)}),{...e,toasts:e.toasts.map(i=>i.id===r||r===void 0?{...i,visible:!1}:i)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(i=>i.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(i=>({...i,pauseDuration:i.pauseDuration+o}))}}},cr=[],ur={toasts:[],pausedAt:void 0},Tt=e=>{ur=Ao(ur,e),cr.forEach(t=>{t(ur)})},$d={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Fd=(e={})=>{let[t,n]=$(ur);K(()=>(cr.push(n),()=>{let o=cr.indexOf(n);o>-1&&cr.splice(o,1)}),[t]);let r=t.toasts.map(o=>{var i,s;return{...e,...e[o.type],...o,duration:o.duration||((i=e[o.type])==null?void 0:i.duration)||(e==null?void 0:e.duration)||$d[o.type],style:{...e.style,...(s=e[o.type])==null?void 0:s.style,...o.style}}});return{...t,toasts:r}},Bd=(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)||Dd()}),Pn=e=>(t,n)=>{let r=Bd(t,e,n);return Tt({type:2,toast:r}),r.id},xe=(e,t)=>Pn("blank")(e,t);xe.error=Pn("error"),xe.success=Pn("success"),xe.loading=Pn("loading"),xe.custom=Pn("custom"),xe.dismiss=e=>{Tt({type:3,toastId:e})},xe.remove=e=>Tt({type:4,toastId:e}),xe.promise=(e,t,n)=>{let r=xe.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(o=>(xe.success(ar(t.success,o),{id:r,...n,...n==null?void 0:n.success}),o)).catch(o=>{xe.error(ar(t.error,o),{id:r,...n,...n==null?void 0:n.error})}),e};var Ud=(e,t)=>{Tt({type:1,toast:{id:e,height:t}})},Wd=()=>{Tt({type:5,time:Date.now()})},zd=e=>{let{toasts:t,pausedAt:n}=Fd(e);K(()=>{if(n)return;let i=Date.now(),s=t.map(a=>{if(a.duration===1/0)return;let l=(a.duration||0)+a.pauseDuration-(i-a.createdAt);if(l<0){a.visible&&xe.dismiss(a.id);return}return setTimeout(()=>xe.dismiss(a.id),l)});return()=>{s.forEach(a=>a&&clearTimeout(a))}},[t,n]);let r=se(()=>{n&&Tt({type:6,time:Date.now()})},[n]),o=se((i,s)=>{let{reverseOrder:a=!1,gutter:l=8,defaultPosition:u}=s||{},d=t.filter(g=>(g.position||u)===(i.position||u)&&g.height),p=d.findIndex(g=>g.id===i.id),m=d.filter((g,w)=>w<p&&g.visible).length;return d.filter(g=>g.visible).slice(...a?[m+1]:[0,m]).reduce((g,w)=>g+(w.height||0)+l,0)},[t]);return{toasts:t,handlers:{updateHeight:Ud,startPause:Wd,endPause:r,calculateOffset:o}}},Hd=Ye`
33
+ `):"",this.name="UnsubscriptionError",this.errors=n}});function Uo(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Sr=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,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=$o(s),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(f){t={error:f}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}else s.remove(this);var p=this.initialTeardown;if(ut(p))try{p()}catch(f){i=f instanceof Bo?f.errors:[f]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var m=$o(h),g=m.next();!g.done;g=m.next()){var x=g.value;try{Hs(x)}catch(f){i=i??[],f instanceof Bo?i=Cr(Cr([],Fo(i)),Fo(f.errors)):i.push(f)}}}catch(f){r={error:f}}finally{try{g&&!g.done&&(o=m.return)&&o.call(m)}finally{if(r)throw r.error}}}if(i)throw new Bo(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)Hs(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)&&Uo(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&Uo(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Us=Sr.EMPTY;function Ws(e){return e instanceof Sr||e&&"closed"in e&&ut(e.remove)&&ut(e.add)&&ut(e.unsubscribe)}function Hs(e){ut(e)?e():e.unsubscribe()}var ff={Promise:void 0},pf={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,Cr([e,t],Fo(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function hf(e){pf.setTimeout(function(){throw e})}function Vs(){}function Er(e){e()}var zs=function(e){Kn(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,Ws(n)&&n.add(r)):r.destination=vf,r}return t.create=function(n,r,o){return new Wo(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}(Sr),mf=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){Tr(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){Tr(r)}else Tr(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){Tr(n)}},e}(),Wo=function(e){Kn(t,e);function t(n,r,o){var i=e.call(this)||this,s;return ut(n)||!n?s={next:n??void 0,error:r??void 0,complete:o??void 0}:s=n,i.destination=new mf(s),i}return t}(zs);function Tr(e){hf(e)}function gf(e){throw e}var vf={closed:!0,next:Vs,error:gf,complete:Vs},yf=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function bf(e){return e}function wf(e){return e.length===0?bf:e.length===1?e[0]:function(n){return e.reduce(function(r,o){return o(r)},n)}}var Gs=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,i=xf(t)?t:new Wo(t,n,r);return Er(function(){var s=o,a=s.operator,l=s.source;i.add(a?a.call(i,l):l?o._subscribe(i):o._trySubscribe(i))}),i},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=qs(n),new n(function(o,i){var s=new Wo({next:function(a){try{t(a)}catch(l){i(l),s.unsubscribe()}},error:i,complete:o});r.subscribe(s)})},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 wf(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=qs(t),new t(function(r,o){var i;n.subscribe(function(s){return i=s},function(s){return o(s)},function(){return r(i)})})},e.create=function(t){return new e(t)},e}();function qs(e){var t;return(t=e??ff.Promise)!==null&&t!==void 0?t:Promise}function _f(e){return e&&ut(e.next)&&ut(e.error)&&ut(e.complete)}function xf(e){return e&&e instanceof zs||_f(e)&&Ws(e)}var Cf=Bs(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Ks=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 Qs(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new Cf},t.prototype.next=function(n){var r=this;Er(function(){var o,i;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var s=$o(r.currentObservers),a=s.next();!a.done;a=s.next()){var l=a.value;l.next(n)}}catch(u){o={error:u}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}}})},t.prototype.error=function(n){var r=this;Er(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;Er(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,i=o.hasError,s=o.isStopped,a=o.observers;return i||s?Us:(this.currentObservers=null,a.push(n),new Sr(function(){r.currentObservers=null,Uo(a,n)}))},t.prototype._checkFinalizedStatuses=function(n){var r=this,o=r.hasError,i=r.thrownError,s=r.isStopped;o?n.error(i):s&&n.complete()},t.prototype.asObservable=function(){var n=new Gs;return n.source=this,n},t.create=function(n,r){return new Qs(n,r)},t}(Gs),Qs=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:Us},t}(Ks),Sf=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,i=n._value;if(r)throw o;return this._throwIfClosed(),i},t.prototype.next=function(n){e.prototype.next.call(this,this._value=n)},t}(Ks);const R0=E("usePlatformCustomization",e=>{const{fontsLoaded:t}=$s(e.fonts);af(e.styleSheet);const n=()=>{const r=new Sf(!0);window[jo]=r};ie(()=>{t&&window[jo].next(!1)},[t]),ie(()=>{n()},[])}),P0=E("usePAECustomizationsLoadingState",()=>{const e=window[jo];return Ss(e,e.getValue()??void 0)}),Ho="theme",Ys=()=>document.documentElement.dataset[Ho]==="dark"?"dark":"light",A0=E("useGetPlatformTheme",()=>{const[e,t]=B(Ys());return ie(()=>{const n=document.documentElement,r=()=>t(Ys),o=new MutationObserver(i=>{for(const s of i)s.type==="attributes"&&s.attributeName===`data-${Ho}`&&r()});return o.observe(n,{attributes:!0,attributeFilter:[`data-${Ho}`]}),r(),()=>{o.disconnect()}},[]),e}),O0=E("platformHaveAnyCustomization",e=>e!==void 0),I0=E("isPlatformCustomizationCompleted",e=>e!==!0);let Ef={data:""},Tf=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||Ef},Rf=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Pf=/\/\*[^]*?\*\/| +/g,Zs=/\n+/g,St=(e,t)=>{let n="",r="",o="";for(let i in e){let s=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+s+";":r+=i[1]=="f"?St(s,i):i+"{"+St(s,i[1]=="k"?"":t)+"}":typeof s=="object"?r+=St(s,t?t.replace(/([^,])+/g,a=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,a):a?a+" "+l:l)):i):s!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=St.p?St.p(i,s):i+":"+s+";")}return n+(t&&o?t+"{"+o+"}":o)+r},dt={},Xs=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+Xs(e[n]);return t}return e},Af=(e,t,n,r,o)=>{let i=Xs(e),s=dt[i]||(dt[i]=(l=>{let u=0,p=11;for(;u<l.length;)p=101*p+l.charCodeAt(u++)>>>0;return"go"+p})(i));if(!dt[s]){let l=i!==e?e:(u=>{let p,h,m=[{}];for(;p=Rf.exec(u.replace(Pf,""));)p[4]?m.shift():p[3]?(h=p[3].replace(Zs," ").trim(),m.unshift(m[0][h]=m[0][h]||{})):m[0][p[1]]=p[2].replace(Zs," ").trim();return m[0]})(e);dt[s]=St(o?{["@keyframes "+s]:l}:l,n?"":"."+s)}let a=n&&dt.g?dt.g:null;return n&&(dt.g=dt[s]),((l,u,p,h)=>{h?u.data=u.data.replace(h,l):u.data.indexOf(l)===-1&&(u.data=p?l+u.data:u.data+l)})(dt[s],t,r,a),s},Of=(e,t,n)=>e.reduce((r,o,i)=>{let s=t[i];if(s&&s.call){let a=s(n),l=a&&a.props&&a.props.className||/^go/.test(a)&&a;s=l?"."+l:a&&typeof a=="object"?a.props?"":St(a,""):a===!1?"":a}return r+o+(s??"")},"");function Rr(e){let t=this||{},n=e.call?e(t.p):e;return Af(n.unshift?n.raw?Of(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,Tf(t.target),t.g,t.o,t.k)}let Js,Vo,zo;Rr.bind({g:1});let ft=Rr.bind({k:1});function If(e,t,n,r){St.p=t,Js=e,Vo=n,zo=r}function Et(e,t){let n=this||{};return function(){let r=arguments;function o(i,s){let a=Object.assign({},i),l=a.className||o.className;n.p=Object.assign({theme:Vo&&Vo()},a),n.o=/ *go\d+/.test(l),a.className=Rr.apply(n,r)+(l?" "+l:"");let u=e;return e[0]&&(u=a.as||e,delete a.as),zo&&u[0]&&zo(a),Js(u,a)}return o}}var jf=e=>typeof e=="function",Pr=(e,t)=>jf(e)?e(t):e,kf=(()=>{let e=0;return()=>(++e).toString()})(),ea=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Lf=20,Ar=new Map,Df=1e3,ta=e=>{if(Ar.has(e))return;let t=setTimeout(()=>{Ar.delete(e),Kt({type:4,toastId:e})},Df);Ar.set(e,t)},Nf=e=>{let t=Ar.get(e);t&&clearTimeout(t)},Go=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,Lf)};case 1:return t.toast.id&&Nf(t.toast.id),{...e,toasts:e.toasts.map(i=>i.id===t.toast.id?{...i,...t.toast}:i)};case 2:let{toast:n}=t;return e.toasts.find(i=>i.id===n.id)?Go(e,{type:1,toast:n}):Go(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?ta(r):e.toasts.forEach(i=>{ta(i.id)}),{...e,toasts:e.toasts.map(i=>i.id===r||r===void 0?{...i,visible:!1}:i)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(i=>i.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(i=>({...i,pauseDuration:i.pauseDuration+o}))}}},Or=[],Ir={toasts:[],pausedAt:void 0},Kt=e=>{Ir=Go(Ir,e),Or.forEach(t=>{t(Ir)})},Mf={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},$f=(e={})=>{let[t,n]=B(Ir);ie(()=>(Or.push(n),()=>{let o=Or.indexOf(n);o>-1&&Or.splice(o,1)}),[t]);let r=t.toasts.map(o=>{var i,s;return{...e,...e[o.type],...o,duration:o.duration||((i=e[o.type])==null?void 0:i.duration)||(e==null?void 0:e.duration)||Mf[o.type],style:{...e.style,...(s=e[o.type])==null?void 0:s.style,...o.style}}});return{...t,toasts:r}},Ff=(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)||kf()}),Qn=e=>(t,n)=>{let r=Ff(t,e,n);return Kt({type:2,toast:r}),r.id},ke=(e,t)=>Qn("blank")(e,t);ke.error=Qn("error"),ke.success=Qn("success"),ke.loading=Qn("loading"),ke.custom=Qn("custom"),ke.dismiss=e=>{Kt({type:3,toastId:e})},ke.remove=e=>Kt({type:4,toastId:e}),ke.promise=(e,t,n)=>{let r=ke.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(o=>(ke.success(Pr(t.success,o),{id:r,...n,...n==null?void 0:n.success}),o)).catch(o=>{ke.error(Pr(t.error,o),{id:r,...n,...n==null?void 0:n.error})}),e};var Bf=(e,t)=>{Kt({type:1,toast:{id:e,height:t}})},Uf=()=>{Kt({type:5,time:Date.now()})},Wf=e=>{let{toasts:t,pausedAt:n}=$f(e);ie(()=>{if(n)return;let i=Date.now(),s=t.map(a=>{if(a.duration===1/0)return;let l=(a.duration||0)+a.pauseDuration-(i-a.createdAt);if(l<0){a.visible&&ke.dismiss(a.id);return}return setTimeout(()=>ke.dismiss(a.id),l)});return()=>{s.forEach(a=>a&&clearTimeout(a))}},[t,n]);let r=ve(()=>{n&&Kt({type:6,time:Date.now()})},[n]),o=ve((i,s)=>{let{reverseOrder:a=!1,gutter:l=8,defaultPosition:u}=s||{},p=t.filter(g=>(g.position||u)===(i.position||u)&&g.height),h=p.findIndex(g=>g.id===i.id),m=p.filter((g,x)=>x<h&&g.visible).length;return p.filter(g=>g.visible).slice(...a?[m+1]:[0,m]).reduce((g,x)=>g+(x.height||0)+l,0)},[t]);return{toasts:t,handlers:{updateHeight:Bf,startPause:Uf,endPause:r,calculateOffset:o}}},Hf=ft`
34
34
  from {
35
35
  transform: scale(0) rotate(45deg);
36
36
  opacity: 0;
@@ -38,7 +38,7 @@ from {
38
38
  to {
39
39
  transform: scale(1) rotate(45deg);
40
40
  opacity: 1;
41
- }`,Vd=Ye`
41
+ }`,Vf=ft`
42
42
  from {
43
43
  transform: scale(0);
44
44
  opacity: 0;
@@ -46,7 +46,7 @@ from {
46
46
  to {
47
47
  transform: scale(1);
48
48
  opacity: 1;
49
- }`,Gd=Ye`
49
+ }`,zf=ft`
50
50
  from {
51
51
  transform: scale(0) rotate(90deg);
52
52
  opacity: 0;
@@ -54,7 +54,7 @@ from {
54
54
  to {
55
55
  transform: scale(1) rotate(90deg);
56
56
  opacity: 1;
57
- }`,qd=lt("div")`
57
+ }`,Gf=Et("div")`
58
58
  width: 20px;
59
59
  opacity: 0;
60
60
  height: 20px;
@@ -63,14 +63,14 @@ to {
63
63
  position: relative;
64
64
  transform: rotate(45deg);
65
65
 
66
- animation: ${Hd} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
66
+ animation: ${Hf} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
67
67
  forwards;
68
68
  animation-delay: 100ms;
69
69
 
70
70
  &:after,
71
71
  &:before {
72
72
  content: '';
73
- animation: ${Vd} 0.15s ease-out forwards;
73
+ animation: ${Vf} 0.15s ease-out forwards;
74
74
  animation-delay: 150ms;
75
75
  position: absolute;
76
76
  border-radius: 3px;
@@ -83,18 +83,18 @@ to {
83
83
  }
84
84
 
85
85
  &:before {
86
- animation: ${Gd} 0.15s ease-out forwards;
86
+ animation: ${zf} 0.15s ease-out forwards;
87
87
  animation-delay: 180ms;
88
88
  transform: rotate(90deg);
89
89
  }
90
- `,Qd=Ye`
90
+ `,qf=ft`
91
91
  from {
92
92
  transform: rotate(0deg);
93
93
  }
94
94
  to {
95
95
  transform: rotate(360deg);
96
96
  }
97
- `,Yd=lt("div")`
97
+ `,Kf=Et("div")`
98
98
  width: 12px;
99
99
  height: 12px;
100
100
  box-sizing: border-box;
@@ -102,8 +102,8 @@ to {
102
102
  border-radius: 100%;
103
103
  border-color: ${e=>e.secondary||"#e0e0e0"};
104
104
  border-right-color: ${e=>e.primary||"#616161"};
105
- animation: ${Qd} 1s linear infinite;
106
- `,Kd=Ye`
105
+ animation: ${qf} 1s linear infinite;
106
+ `,Qf=ft`
107
107
  from {
108
108
  transform: scale(0) rotate(45deg);
109
109
  opacity: 0;
@@ -111,7 +111,7 @@ from {
111
111
  to {
112
112
  transform: scale(1) rotate(45deg);
113
113
  opacity: 1;
114
- }`,Zd=Ye`
114
+ }`,Yf=ft`
115
115
  0% {
116
116
  height: 0;
117
117
  width: 0;
@@ -125,7 +125,7 @@ to {
125
125
  100% {
126
126
  opacity: 1;
127
127
  height: 10px;
128
- }`,Xd=lt("div")`
128
+ }`,Zf=Et("div")`
129
129
  width: 20px;
130
130
  opacity: 0;
131
131
  height: 20px;
@@ -134,13 +134,13 @@ to {
134
134
  position: relative;
135
135
  transform: rotate(45deg);
136
136
 
137
- animation: ${Kd} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
137
+ animation: ${Qf} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
138
138
  forwards;
139
139
  animation-delay: 100ms;
140
140
  &:after {
141
141
  content: '';
142
142
  box-sizing: border-box;
143
- animation: ${Zd} 0.2s ease-out forwards;
143
+ animation: ${Yf} 0.2s ease-out forwards;
144
144
  opacity: 0;
145
145
  animation-delay: 200ms;
146
146
  position: absolute;
@@ -152,16 +152,16 @@ to {
152
152
  height: 10px;
153
153
  width: 6px;
154
154
  }
155
- `,Jd=lt("div")`
155
+ `,Xf=Et("div")`
156
156
  position: absolute;
157
- `,ef=lt("div")`
157
+ `,Jf=Et("div")`
158
158
  position: relative;
159
159
  display: flex;
160
160
  justify-content: center;
161
161
  align-items: center;
162
162
  min-width: 20px;
163
163
  min-height: 20px;
164
- `,tf=Ye`
164
+ `,ep=ft`
165
165
  from {
166
166
  transform: scale(0.6);
167
167
  opacity: 0.4;
@@ -169,20 +169,20 @@ from {
169
169
  to {
170
170
  transform: scale(1);
171
171
  opacity: 1;
172
- }`,nf=lt("div")`
172
+ }`,tp=Et("div")`
173
173
  position: relative;
174
174
  transform: scale(0.6);
175
175
  opacity: 0.4;
176
176
  min-width: 20px;
177
- animation: ${tf} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
177
+ animation: ${ep} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
178
178
  forwards;
179
- `,rf=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?h.createElement(nf,null,t):t:n==="blank"?null:h.createElement(ef,null,h.createElement(Yd,{...r}),n!=="loading"&&h.createElement(Jd,null,n==="error"?h.createElement(qd,{...r}):h.createElement(Xd,{...r})))},of=e=>`
179
+ `,np=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?d.createElement(tp,null,t):t:n==="blank"?null:d.createElement(Jf,null,d.createElement(Kf,{...r}),n!=="loading"&&d.createElement(Xf,null,n==="error"?d.createElement(Gf,{...r}):d.createElement(Zf,{...r})))},rp=e=>`
180
180
  0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
181
181
  100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
182
- `,sf=e=>`
182
+ `,op=e=>`
183
183
  0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
184
184
  100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
185
- `,af="0%{opacity:0;} 100%{opacity:1;}",lf="0%{opacity:1;} 100%{opacity:0;}",cf=lt("div")`
185
+ `,ip="0%{opacity:0;} 100%{opacity:1;}",sp="0%{opacity:1;} 100%{opacity:0;}",ap=Et("div")`
186
186
  display: flex;
187
187
  align-items: center;
188
188
  background: #fff;
@@ -194,24 +194,24 @@ to {
194
194
  pointer-events: auto;
195
195
  padding: 8px 10px;
196
196
  border-radius: 8px;
197
- `,uf=lt("div")`
197
+ `,lp=Et("div")`
198
198
  display: flex;
199
199
  justify-content: center;
200
200
  margin: 4px 10px;
201
201
  color: inherit;
202
202
  flex: 1 1 auto;
203
203
  white-space: pre-line;
204
- `,df=(e,t)=>{let n=e.includes("top")?1:-1,[r,o]=js()?[af,lf]:[of(n),sf(n)];return{animation:t?`${Ye(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Ye(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},ff=h.memo(({toast:e,position:t,style:n,children:r})=>{let o=e.height?df(e.position||t||"top-center",e.visible):{opacity:0},i=h.createElement(rf,{toast:e}),s=h.createElement(uf,{...e.ariaProps},ar(e.message,e));return h.createElement(cf,{className:e.className,style:{...o,...n,...e.style}},typeof r=="function"?r({icon:i,message:s}):h.createElement(h.Fragment,null,i,s))});jd(h.createElement);var pf=({id:e,className:t,style:n,onHeightUpdate:r,children:o})=>{let i=h.useCallback(s=>{if(s){let a=()=>{let l=s.getBoundingClientRect().height;r(e,l)};a(),new MutationObserver(a).observe(s,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return h.createElement("div",{ref:i,className:t,style:n},o)},hf=(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:js()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...o}},mf=sr`
204
+ `,cp=(e,t)=>{let n=e.includes("top")?1:-1,[r,o]=ea()?[ip,sp]:[rp(n),op(n)];return{animation:t?`${ft(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${ft(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},up=d.memo(({toast:e,position:t,style:n,children:r})=>{let o=e.height?cp(e.position||t||"top-center",e.visible):{opacity:0},i=d.createElement(np,{toast:e}),s=d.createElement(lp,{...e.ariaProps},Pr(e.message,e));return d.createElement(ap,{className:e.className,style:{...o,...n,...e.style}},typeof r=="function"?r({icon:i,message:s}):d.createElement(d.Fragment,null,i,s))});If(d.createElement);var dp=({id:e,className:t,style:n,onHeightUpdate:r,children:o})=>{let i=d.useCallback(s=>{if(s){let a=()=>{let l=s.getBoundingClientRect().height;r(e,l)};a(),new MutationObserver(a).observe(s,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return d.createElement("div",{ref:i,className:t,style:n},o)},fp=(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:ea()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...o}},pp=Rr`
205
205
  z-index: 9999;
206
206
  > * {
207
207
  pointer-events: auto;
208
208
  }
209
- `,dr=16,gf=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:o,containerStyle:i,containerClassName:s})=>{let{toasts:a,handlers:l}=zd(n);return h.createElement("div",{style:{position:"fixed",zIndex:9999,top:dr,left:dr,right:dr,bottom:dr,pointerEvents:"none",...i},className:s,onMouseEnter:l.startPause,onMouseLeave:l.endPause},a.map(u=>{let d=u.position||t,p=l.calculateOffset(u,{reverseOrder:e,gutter:r,defaultPosition:t}),m=hf(d,p);return h.createElement(pf,{id:u.id,key:u.id,onHeightUpdate:l.updateHeight,className:u.visible?mf:"",style:m},u.type==="custom"?ar(u.message,u):o?o(u):h.createElement(ff,{toast:u,position:d}))}))},Ds=xe;const Is=x("useNotifications",()=>({notify:se((t,n,r)=>{const o={style:{background:"var(--platform-background-primary-color)",color:"var(--platform-text-primary-color)"}};n==="warning"||n==="info"?Ds(t,{...o,icon:n==="warning"?"⚠️":"ℹ️"}):Ds[n](t,o),r&&console.error(r)},[])}));var Qt=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(){}},Rt=typeof window>"u"||"Deno"in globalThis;function fe(){}function vf(e,t){return typeof e=="function"?e(t):e}function Po(e){return typeof e=="number"&&e>=0&&e!==1/0}function Ns(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ct(e,t){return typeof e=="function"?e(t):e}function Oe(e,t){return typeof e=="function"?e(t):e}function Ms(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==Oo(s,t.options))return!1}else if(!On(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||i&&!i(t))}function $s(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(At(t.options.mutationKey)!==At(i))return!1}else if(!On(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Oo(e,t){return((t==null?void 0:t.queryKeyHashFn)||At)(e)}function At(e){return JSON.stringify(e,(t,n)=>jo(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function On(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>On(e[n],t[n])):!1}function ko(e,t){if(e===t)return e;const n=Fs(e)&&Fs(t);if(n||jo(e)&&jo(t)){const r=n?e:Object.keys(e),o=r.length,i=n?t:Object.keys(t),s=i.length,a=n?[]:{};let l=0;for(let u=0;u<s;u++){const d=n?u:i[u];(!n&&r.includes(d)||n)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,l++):(a[d]=ko(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&l++)}return o===s&&l===o?e:a}return t}function fr(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 Fs(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function jo(e){if(!Bs(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Bs(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Bs(e){return Object.prototype.toString.call(e)==="[object Object]"}function yf(e){return new Promise(t=>{setTimeout(t,e)})}function Lo(e,t,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(e,t);if(n.structuralSharing!==!1){try{return ko(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 ko(e,t)}return t}function bf(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function wf(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var pr=Symbol();function Us(e,t){return e.queryFn===pr&&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===pr?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Ws(e,t){return typeof e=="function"?e(...t):!!e}var _f=(Yc=class extends Qt{constructor(){super();L(this,Dt);L(this,ht);L(this,ln);O(this,ln,t=>{if(!Rt&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){b(this,ht)||this.setEventListener(b(this,ln))}onUnsubscribe(){var t;this.hasListeners()||((t=b(this,ht))==null||t.call(this),O(this,ht,void 0))}setEventListener(t){var n;O(this,ln,t),(n=b(this,ht))==null||n.call(this),O(this,ht,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){b(this,Dt)!==t&&(O(this,Dt,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof b(this,Dt)=="boolean"?b(this,Dt):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Dt=new WeakMap,ht=new WeakMap,ln=new WeakMap,Yc),Do=new _f,Cf=(Kc=class extends Qt{constructor(){super();L(this,cn,!0);L(this,mt);L(this,un);O(this,un,t=>{if(!Rt&&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(){b(this,mt)||this.setEventListener(b(this,un))}onUnsubscribe(){var t;this.hasListeners()||((t=b(this,mt))==null||t.call(this),O(this,mt,void 0))}setEventListener(t){var n;O(this,un,t),(n=b(this,mt))==null||n.call(this),O(this,mt,t(this.setOnline.bind(this)))}setOnline(t){b(this,cn)!==t&&(O(this,cn,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return b(this,cn)}},cn=new WeakMap,mt=new WeakMap,un=new WeakMap,Kc),hr=new Cf;function Io(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});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 xf(e){return Math.min(1e3*2**e,3e4)}function zs(e){return(e??"online")==="online"?hr.isOnline():!0}var Hs=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function No(e){return e instanceof Hs}function Vs(e){let t=!1,n=0,r=!1,o;const i=Io(),s=f=>{var v;r||(m(new Hs(f)),(v=e.abort)==null||v.call(e))},a=()=>{t=!0},l=()=>{t=!1},u=()=>Do.isFocused()&&(e.networkMode==="always"||hr.isOnline())&&e.canRun(),d=()=>zs(e.networkMode)&&e.canRun(),p=f=>{var v;r||(r=!0,(v=e.onSuccess)==null||v.call(e,f),o==null||o(),i.resolve(f))},m=f=>{var v;r||(r=!0,(v=e.onError)==null||v.call(e,f),o==null||o(),i.reject(f))},g=()=>new Promise(f=>{var v;o=_=>{(r||u())&&f(_)},(v=e.onPause)==null||v.call(e)}).then(()=>{var f;o=void 0,r||(f=e.onContinue)==null||f.call(e)}),w=()=>{if(r)return;let f;const v=n===0?e.initialPromise:void 0;try{f=v??e.fn()}catch(_){f=Promise.reject(_)}Promise.resolve(f).then(p).catch(_=>{var P;if(r)return;const C=e.retry??(Rt?0:3),S=e.retryDelay??xf,E=typeof S=="function"?S(n,_):S,T=C===!0||typeof C=="number"&&n<C||typeof C=="function"&&C(n,_);if(t||!T){m(_);return}n++,(P=e.onFail)==null||P.call(e,n,_),yf(E).then(()=>u()?void 0:g()).then(()=>{t?m(_):w()})})};return{promise:i,cancel:s,continue:()=>(o==null||o(),i),cancelRetry:a,continueRetry:l,canStart:d,start:()=>(d()?w():g().then(w),i)}}var Ef=e=>setTimeout(e,0);function Sf(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=Ef;const i=a=>{t?e.push(a):o(()=>{n(a)})},s=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||s()}return l},batchCalls:a=>(...l)=>{i(()=>{a(...l)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var ae=Sf(),Gs=(Zc=class{constructor(){L(this,It)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Po(this.gcTime)&&O(this,It,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Rt?1/0:5*60*1e3))}clearGcTimeout(){b(this,It)&&(clearTimeout(b(this,It)),O(this,It,void 0))}},It=new WeakMap,Zc),Tf=(Xc=class extends Gs{constructor(t){super();L(this,Ne);L(this,dn);L(this,fn);L(this,Ae);L(this,Nt);L(this,de);L(this,Fn);L(this,Mt);O(this,Mt,!1),O(this,Fn,t.defaultOptions),this.setOptions(t.options),this.observers=[],O(this,Nt,t.client),O(this,Ae,b(this,Nt).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,O(this,dn,Rf(this.options)),this.state=t.state??b(this,dn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=b(this,de))==null?void 0:t.promise}setOptions(t){this.options={...b(this,Fn),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&b(this,Ae).remove(this)}setData(t,n){const r=Lo(this.state.data,t,this.options);return F(this,Ne,ot).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){F(this,Ne,ot).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=b(this,de))==null?void 0:r.promise;return(o=b(this,de))==null||o.cancel(t),n?n.then(fe).catch(fe):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(b(this,dn))}isActive(){return this.observers.some(t=>Oe(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===pr||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>ct(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:!Ns(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=b(this,de))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=b(this,de))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),b(this,Ae).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(b(this,de)&&(b(this,Mt)?b(this,de).cancel({revert:!0}):b(this,de).cancelRetry()),this.scheduleGc()),b(this,Ae).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||F(this,Ne,ot).call(this,{type:"invalidate"})}fetch(t,n){var u,d,p;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(b(this,de))return b(this,de).continueRetry(),b(this,de).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:()=>(O(this,Mt,!0),r.signal)})},i=()=>{const m=Us(this.options,n),w=(()=>{const f={client:b(this,Nt),queryKey:this.queryKey,meta:this.meta};return o(f),f})();return O(this,Mt,!1),this.options.persister?this.options.persister(m,w,this):m(w)},a=(()=>{const m={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:b(this,Nt),state:this.state,fetchFn:i};return o(m),m})();(u=this.options.behavior)==null||u.onFetch(a,this),O(this,fn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=a.fetchOptions)==null?void 0:d.meta))&&F(this,Ne,ot).call(this,{type:"fetch",meta:(p=a.fetchOptions)==null?void 0:p.meta});const l=m=>{var g,w,f,v;No(m)&&m.silent||F(this,Ne,ot).call(this,{type:"error",error:m}),No(m)||((w=(g=b(this,Ae).config).onError)==null||w.call(g,m,this),(v=(f=b(this,Ae).config).onSettled)==null||v.call(f,this.state.data,m,this)),this.scheduleGc()};return O(this,de,Vs({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:m=>{var g,w,f,v;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}`),l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(m)}catch(_){l(_);return}(w=(g=b(this,Ae).config).onSuccess)==null||w.call(g,m,this),(v=(f=b(this,Ae).config).onSettled)==null||v.call(f,m,this.state.error,this),this.scheduleGc()},onError:l,onFail:(m,g)=>{F(this,Ne,ot).call(this,{type:"failed",failureCount:m,error:g})},onPause:()=>{F(this,Ne,ot).call(this,{type:"pause"})},onContinue:()=>{F(this,Ne,ot).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),b(this,de).start()}},dn=new WeakMap,fn=new WeakMap,Ae=new WeakMap,Nt=new WeakMap,de=new WeakMap,Fn=new WeakMap,Mt=new WeakMap,Ne=new WeakSet,ot=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,...qs(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 No(o)&&o.revert&&b(this,fn)?{...b(this,fn),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),ae.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),b(this,Ae).notify({query:this,type:"updated",action:t})})},Xc);function qs(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:zs(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Rf(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 Af=(Jc=class extends Qt{constructor(t={}){super();L(this,He);this.config=t,O(this,He,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??Oo(o,n);let s=this.get(i);return s||(s=new Tf({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){b(this,He).has(t.queryHash)||(b(this,He).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=b(this,He).get(t.queryHash);n&&(t.destroy(),n===t&&b(this,He).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ae.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return b(this,He).get(t)}getAll(){return[...b(this,He).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Ms(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Ms(t,r)):n}notify(t){ae.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){ae.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ae.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},He=new WeakMap,Jc),Pf=(eu=class extends Gs{constructor(t){super();L(this,Ge);L(this,Ve);L(this,he);L(this,$t);this.mutationId=t.mutationId,O(this,he,t.mutationCache),O(this,Ve,[]),this.state=t.state||Qs(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){b(this,Ve).includes(t)||(b(this,Ve).push(t),this.clearGcTimeout(),b(this,he).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){O(this,Ve,b(this,Ve).filter(n=>n!==t)),this.scheduleGc(),b(this,he).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){b(this,Ve).length||(this.state.status==="pending"?this.scheduleGc():b(this,he).remove(this))}continue(){var t;return((t=b(this,$t))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,s,a,l,u,d,p,m,g,w,f,v,_,C,S,E,T,P,A,M;const n=()=>{F(this,Ge,Et).call(this,{type:"continue"})};O(this,$t,Vs({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(I,D)=>{F(this,Ge,Et).call(this,{type:"failed",failureCount:I,error:D})},onPause:()=>{F(this,Ge,Et).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>b(this,he).canRun(this)}));const r=this.state.status==="pending",o=!b(this,$t).canStart();try{if(r)n();else{F(this,Ge,Et).call(this,{type:"pending",variables:t,isPaused:o}),await((s=(i=b(this,he).config).onMutate)==null?void 0:s.call(i,t,this));const D=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));D!==this.state.context&&F(this,Ge,Et).call(this,{type:"pending",context:D,variables:t,isPaused:o})}const I=await b(this,$t).start();return await((d=(u=b(this,he).config).onSuccess)==null?void 0:d.call(u,I,t,this.state.context,this)),await((m=(p=this.options).onSuccess)==null?void 0:m.call(p,I,t,this.state.context)),await((w=(g=b(this,he).config).onSettled)==null?void 0:w.call(g,I,null,this.state.variables,this.state.context,this)),await((v=(f=this.options).onSettled)==null?void 0:v.call(f,I,null,t,this.state.context)),F(this,Ge,Et).call(this,{type:"success",data:I}),I}catch(I){try{throw await((C=(_=b(this,he).config).onError)==null?void 0:C.call(_,I,t,this.state.context,this)),await((E=(S=this.options).onError)==null?void 0:E.call(S,I,t,this.state.context)),await((P=(T=b(this,he).config).onSettled)==null?void 0:P.call(T,void 0,I,this.state.variables,this.state.context,this)),await((M=(A=this.options).onSettled)==null?void 0:M.call(A,void 0,I,t,this.state.context)),I}finally{F(this,Ge,Et).call(this,{type:"error",error:I})}}finally{b(this,he).runNext(this)}}},Ve=new WeakMap,he=new WeakMap,$t=new WeakMap,Ge=new WeakSet,Et=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),ae.batch(()=>{b(this,Ve).forEach(r=>{r.onMutationUpdate(t)}),b(this,he).notify({mutation:this,type:"updated",action:t})})},eu);function Qs(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Of=(tu=class extends Qt{constructor(t={}){super();L(this,et);L(this,Me);L(this,Bn);this.config=t,O(this,et,new Set),O(this,Me,new Map),O(this,Bn,0)}build(t,n,r){const o=new Pf({mutationCache:this,mutationId:++lo(this,Bn)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){b(this,et).add(t);const n=mr(t);if(typeof n=="string"){const r=b(this,Me).get(n);r?r.push(t):b(this,Me).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(b(this,et).delete(t)){const n=mr(t);if(typeof n=="string"){const r=b(this,Me).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&b(this,Me).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=mr(t);if(typeof n=="string"){const r=b(this,Me).get(n),o=r==null?void 0:r.find(i=>i.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=mr(t);if(typeof n=="string"){const o=(r=b(this,Me).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ae.batch(()=>{b(this,et).forEach(t=>{this.notify({type:"removed",mutation:t})}),b(this,et).clear(),b(this,Me).clear()})}getAll(){return Array.from(b(this,et))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>$s(n,r))}findAll(t={}){return this.getAll().filter(n=>$s(t,n))}notify(t){ae.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return ae.batch(()=>Promise.all(t.map(n=>n.continue().catch(fe))))}},et=new WeakMap,Me=new WeakMap,Bn=new WeakMap,tu);function mr(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Ys(e){return{onFetch:(t,n)=>{var d,p,m,g,w;const r=t.options,o=(m=(p=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:p.fetchMore)==null?void 0:m.direction,i=((g=t.state.data)==null?void 0:g.pages)||[],s=((w=t.state.data)==null?void 0:w.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let f=!1;const v=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(t.signal.aborted?f=!0:t.signal.addEventListener("abort",()=>{f=!0}),t.signal)})},_=Us(t.options,t.fetchOptions),C=async(S,E,T)=>{if(f)return Promise.reject();if(E==null&&S.pages.length)return Promise.resolve(S);const A=(()=>{const q={client:t.client,queryKey:t.queryKey,pageParam:E,direction:T?"backward":"forward",meta:t.options.meta};return v(q),q})(),M=await _(A),{maxPages:I}=t.options,D=T?wf:bf;return{pages:D(S.pages,M,I),pageParams:D(S.pageParams,E,I)}};if(o&&i.length){const S=o==="backward",E=S?kf:Ks,T={pages:i,pageParams:s},P=E(r,T);a=await C(T,P,S)}else{const S=e??i.length;do{const E=l===0?s[0]??r.initialPageParam:Ks(r,a);if(l>0&&E==null)break;a=await C(a,E),l++}while(l<S)}return a};t.options.persister?t.fetchFn=()=>{var f,v;return(v=(f=t.options).persister)==null?void 0:v.call(f,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Ks(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 kf(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 jf=(nu=class{constructor(e={}){L(this,te);L(this,gt);L(this,vt);L(this,pn);L(this,hn);L(this,yt);L(this,mn);L(this,gn);O(this,te,e.queryCache||new Af),O(this,gt,e.mutationCache||new Of),O(this,vt,e.defaultOptions||{}),O(this,pn,new Map),O(this,hn,new Map),O(this,yt,0)}mount(){lo(this,yt)._++,b(this,yt)===1&&(O(this,mn,Do.subscribe(async e=>{e&&(await this.resumePausedMutations(),b(this,te).onFocus())})),O(this,gn,hr.subscribe(async e=>{e&&(await this.resumePausedMutations(),b(this,te).onOnline())})))}unmount(){var e,t;lo(this,yt)._--,b(this,yt)===0&&((e=b(this,mn))==null||e.call(this),O(this,mn,void 0),(t=b(this,gn))==null||t.call(this),O(this,gn,void 0))}isFetching(e){return b(this,te).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return b(this,gt).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=b(this,te).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=b(this,te).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(ct(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return b(this,te).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=b(this,te).get(r.queryHash),i=o==null?void 0:o.state.data,s=vf(t,i);if(s!==void 0)return b(this,te).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return ae.batch(()=>b(this,te).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=b(this,te).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=b(this,te);ae.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=b(this,te);return ae.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=ae.batch(()=>b(this,te).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(fe).catch(fe)}invalidateQueries(e,t={}){return ae.batch(()=>(b(this,te).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=ae.batch(()=>b(this,te).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(fe)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(fe)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=b(this,te).build(this,t);return n.isStaleByTime(ct(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(fe).catch(fe)}fetchInfiniteQuery(e){return e.behavior=Ys(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(fe).catch(fe)}ensureInfiniteQueryData(e){return e.behavior=Ys(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return hr.isOnline()?b(this,gt).resumePausedMutations():Promise.resolve()}getQueryCache(){return b(this,te)}getMutationCache(){return b(this,gt)}getDefaultOptions(){return b(this,vt)}setDefaultOptions(e){O(this,vt,e)}setQueryDefaults(e,t){b(this,pn).set(At(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...b(this,pn).values()],n={};return t.forEach(r=>{On(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){b(this,hn).set(At(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...b(this,hn).values()],n={};return t.forEach(r=>{On(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...b(this,vt).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Oo(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===pr&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...b(this,vt).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){b(this,te).clear(),b(this,gt).clear()}},te=new WeakMap,gt=new WeakMap,vt=new WeakMap,pn=new WeakMap,hn=new WeakMap,yt=new WeakMap,mn=new WeakMap,gn=new WeakMap,nu),Lf=(ru=class extends Qt{constructor(t,n){super();L(this,G);L(this,we);L(this,z);L(this,Un);L(this,me);L(this,Ft);L(this,vn);L(this,bt);L(this,wt);L(this,Wn);L(this,yn);L(this,bn);L(this,Bt);L(this,Ut);L(this,_t);L(this,wn,new Set);this.options=n,O(this,we,t),O(this,wt,null),O(this,bt,Io()),this.options.experimental_prefetchInRender||b(this,bt).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&&(b(this,z).addObserver(this),Zs(b(this,z),this.options)?F(this,G,Vn).call(this):this.updateResult(),F(this,G,Vi).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Mo(b(this,z),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Mo(b(this,z),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,F(this,G,Gi).call(this),F(this,G,qi).call(this),b(this,z).removeObserver(this)}setOptions(t){const n=this.options,r=b(this,z);if(this.options=b(this,we).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Oe(this.options.enabled,b(this,z))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");F(this,G,Qi).call(this),b(this,z).setOptions(this.options),n._defaulted&&!fr(this.options,n)&&b(this,we).getQueryCache().notify({type:"observerOptionsUpdated",query:b(this,z),observer:this});const o=this.hasListeners();o&&Xs(b(this,z),r,this.options,n)&&F(this,G,Vn).call(this),this.updateResult(),o&&(b(this,z)!==r||Oe(this.options.enabled,b(this,z))!==Oe(n.enabled,b(this,z))||ct(this.options.staleTime,b(this,z))!==ct(n.staleTime,b(this,z)))&&F(this,G,Wi).call(this);const i=F(this,G,zi).call(this);o&&(b(this,z)!==r||Oe(this.options.enabled,b(this,z))!==Oe(n.enabled,b(this,z))||i!==b(this,_t))&&F(this,G,Hi).call(this,i)}getOptimisticResult(t){const n=b(this,we).getQueryCache().build(b(this,we),t),r=this.createResult(n,t);return If(this,r)&&(O(this,me,r),O(this,vn,this.options),O(this,Ft,b(this,z).state)),r}getCurrentResult(){return b(this,me)}trackResult(t,n){return new Proxy(t,{get:(r,o)=>(this.trackProp(o),n==null||n(o),Reflect.get(r,o))})}trackProp(t){b(this,wn).add(t)}getCurrentQuery(){return b(this,z)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=b(this,we).defaultQueryOptions(t),r=b(this,we).getQueryCache().build(b(this,we),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return F(this,G,Vn).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),b(this,me)))}createResult(t,n){var I;const r=b(this,z),o=this.options,i=b(this,me),s=b(this,Ft),a=b(this,vn),u=t!==r?t.state:b(this,Un),{state:d}=t;let p={...d},m=!1,g;if(n._optimisticResults){const D=this.hasListeners(),q=!D&&Zs(t,n),Z=D&&Xs(t,r,n,o);(q||Z)&&(p={...p,...qs(d.data,t.options)}),n._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:w,errorUpdatedAt:f,status:v}=p;g=p.data;let _=!1;if(n.placeholderData!==void 0&&g===void 0&&v==="pending"){let D;i!=null&&i.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(D=i.data,_=!0):D=typeof n.placeholderData=="function"?n.placeholderData((I=b(this,bn))==null?void 0:I.state.data,b(this,bn)):n.placeholderData,D!==void 0&&(v="success",g=Lo(i==null?void 0:i.data,D,n),m=!0)}if(n.select&&g!==void 0&&!_)if(i&&g===(s==null?void 0:s.data)&&n.select===b(this,Wn))g=b(this,yn);else try{O(this,Wn,n.select),g=n.select(g),g=Lo(i==null?void 0:i.data,g,n),O(this,yn,g),O(this,wt,null)}catch(D){O(this,wt,D)}b(this,wt)&&(w=b(this,wt),g=b(this,yn),f=Date.now(),v="error");const C=p.fetchStatus==="fetching",S=v==="pending",E=v==="error",T=S&&C,P=g!==void 0,M={status:v,fetchStatus:p.fetchStatus,isPending:S,isSuccess:v==="success",isError:E,isInitialLoading:T,isLoading:T,data:g,dataUpdatedAt:p.dataUpdatedAt,error:w,errorUpdatedAt:f,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>u.dataUpdateCount||p.errorUpdateCount>u.errorUpdateCount,isFetching:C,isRefetching:C&&!S,isLoadingError:E&&!P,isPaused:p.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:E&&P,isStale:$o(t,n),refetch:this.refetch,promise:b(this,bt)};if(this.options.experimental_prefetchInRender){const D=V=>{M.status==="error"?V.reject(M.error):M.data!==void 0&&V.resolve(M.data)},q=()=>{const V=O(this,bt,M.promise=Io());D(V)},Z=b(this,bt);switch(Z.status){case"pending":t.queryHash===r.queryHash&&D(Z);break;case"fulfilled":(M.status==="error"||M.data!==Z.value)&&q();break;case"rejected":(M.status!=="error"||M.error!==Z.reason)&&q();break}}return M}updateResult(){const t=b(this,me),n=this.createResult(b(this,z),this.options);if(O(this,Ft,b(this,z).state),O(this,vn,this.options),b(this,Ft).data!==void 0&&O(this,bn,b(this,z)),fr(n,t))return;O(this,me,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,i=typeof o=="function"?o():o;if(i==="all"||!i&&!b(this,wn).size)return!0;const s=new Set(i??b(this,wn));return this.options.throwOnError&&s.add("error"),Object.keys(b(this,me)).some(a=>{const l=a;return b(this,me)[l]!==t[l]&&s.has(l)})};F(this,G,yu).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&F(this,G,Vi).call(this)}},we=new WeakMap,z=new WeakMap,Un=new WeakMap,me=new WeakMap,Ft=new WeakMap,vn=new WeakMap,bt=new WeakMap,wt=new WeakMap,Wn=new WeakMap,yn=new WeakMap,bn=new WeakMap,Bt=new WeakMap,Ut=new WeakMap,_t=new WeakMap,wn=new WeakMap,G=new WeakSet,Vn=function(t){F(this,G,Qi).call(this);let n=b(this,z).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(fe)),n},Wi=function(){F(this,G,Gi).call(this);const t=ct(this.options.staleTime,b(this,z));if(Rt||b(this,me).isStale||!Po(t))return;const r=Ns(b(this,me).dataUpdatedAt,t)+1;O(this,Bt,setTimeout(()=>{b(this,me).isStale||this.updateResult()},r))},zi=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(b(this,z)):this.options.refetchInterval)??!1},Hi=function(t){F(this,G,qi).call(this),O(this,_t,t),!(Rt||Oe(this.options.enabled,b(this,z))===!1||!Po(b(this,_t))||b(this,_t)===0)&&O(this,Ut,setInterval(()=>{(this.options.refetchIntervalInBackground||Do.isFocused())&&F(this,G,Vn).call(this)},b(this,_t)))},Vi=function(){F(this,G,Wi).call(this),F(this,G,Hi).call(this,F(this,G,zi).call(this))},Gi=function(){b(this,Bt)&&(clearTimeout(b(this,Bt)),O(this,Bt,void 0))},qi=function(){b(this,Ut)&&(clearInterval(b(this,Ut)),O(this,Ut,void 0))},Qi=function(){const t=b(this,we).getQueryCache().build(b(this,we),this.options);if(t===b(this,z))return;const n=b(this,z);O(this,z,t),O(this,Un,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},yu=function(t){ae.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(b(this,me))}),b(this,we).getQueryCache().notify({query:b(this,z),type:"observerResultsUpdated"})})},ru);function Df(e,t){return Oe(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Zs(e,t){return Df(e,t)||e.state.data!==void 0&&Mo(e,t,t.refetchOnMount)}function Mo(e,t,n){if(Oe(t.enabled,e)!==!1&&ct(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&$o(e,t)}return!1}function Xs(e,t,n,r){return(e!==t||Oe(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&$o(e,n)}function $o(e,t){return Oe(t.enabled,e)!==!1&&e.isStaleByTime(ct(t.staleTime,e))}function If(e,t){return!fr(e.getCurrentResult(),t)}var Nf=(ou=class extends Qt{constructor(n,r){super();L(this,nt);L(this,Ct);L(this,xt);L(this,_e);L(this,tt);O(this,Ct,n),this.setOptions(r),this.bindMethods(),F(this,nt,co).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=b(this,Ct).defaultMutationOptions(n),fr(this.options,r)||b(this,Ct).getMutationCache().notify({type:"observerOptionsUpdated",mutation:b(this,_e),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&At(r.mutationKey)!==At(this.options.mutationKey)?this.reset():((o=b(this,_e))==null?void 0:o.state.status)==="pending"&&b(this,_e).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=b(this,_e))==null||n.removeObserver(this)}onMutationUpdate(n){F(this,nt,co).call(this),F(this,nt,Yi).call(this,n)}getCurrentResult(){return b(this,xt)}reset(){var n;(n=b(this,_e))==null||n.removeObserver(this),O(this,_e,void 0),F(this,nt,co).call(this),F(this,nt,Yi).call(this)}mutate(n,r){var o;return O(this,tt,r),(o=b(this,_e))==null||o.removeObserver(this),O(this,_e,b(this,Ct).getMutationCache().build(b(this,Ct),this.options)),b(this,_e).addObserver(this),b(this,_e).execute(n)}},Ct=new WeakMap,xt=new WeakMap,_e=new WeakMap,tt=new WeakMap,nt=new WeakSet,co=function(){var r;const n=((r=b(this,_e))==null?void 0:r.state)??Qs();O(this,xt,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Yi=function(n){ae.batch(()=>{var r,o,i,s,a,l,u,d;if(b(this,tt)&&this.hasListeners()){const p=b(this,xt).variables,m=b(this,xt).context;(n==null?void 0:n.type)==="success"?((o=(r=b(this,tt)).onSuccess)==null||o.call(r,n.data,p,m),(s=(i=b(this,tt)).onSettled)==null||s.call(i,n.data,null,p,m)):(n==null?void 0:n.type)==="error"&&((l=(a=b(this,tt)).onError)==null||l.call(a,n.error,p,m),(d=(u=b(this,tt)).onSettled)==null||d.call(u,void 0,n.error,p,m))}this.listeners.forEach(p=>{p(b(this,xt))})})},ou),Js=h.createContext(void 0),Fo=e=>{const t=h.useContext(Js);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Mf=({client:e,children:t})=>(h.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),c.jsx(Js.Provider,{value:e,children:t})),ea=h.createContext(!1),$f=()=>h.useContext(ea);ea.Provider;function Ff(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Bf=h.createContext(Ff()),Uf=()=>h.useContext(Bf),Wf=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},zf=e=>{h.useEffect(()=>{e.clearReset()},[e])},Hf=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||Ws(n,[e.error,r])),Vf=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))}},Gf=(e,t)=>e.isLoading&&e.isFetching&&!t,qf=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,ta=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Qf(e,t,n){var p,m,g,w,f;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=$f(),o=Uf(),i=Fo(),s=i.defaultQueryOptions(e);(m=(p=i.getDefaultOptions().queries)==null?void 0:p._experimental_beforeQuery)==null||m.call(p,s),s.queryFn||console.error(`[${s.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`),s._optimisticResults=r?"isRestoring":"optimistic",Vf(s),Wf(s,o),zf(o);const a=!i.getQueryCache().get(s.queryHash),[l]=h.useState(()=>new t(i,s)),u=l.getOptimisticResult(s),d=!r&&e.subscribed!==!1;if(h.useSyncExternalStore(h.useCallback(v=>{const _=d?l.subscribe(ae.batchCalls(v)):fe;return l.updateResult(),_},[l,d]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),h.useEffect(()=>{l.setOptions(s)},[s,l]),qf(s,u))throw ta(s,l,o);if(Hf({result:u,errorResetBoundary:o,throwOnError:s.throwOnError,query:i.getQueryCache().get(s.queryHash),suspense:s.suspense}))throw u.error;if((w=(g=i.getDefaultOptions().queries)==null?void 0:g._experimental_afterQuery)==null||w.call(g,s,u),s.experimental_prefetchInRender&&!Rt&&Gf(u,r)){const v=a?ta(s,l,o):(f=i.getQueryCache().get(s.queryHash))==null?void 0:f.promise;v==null||v.catch(fe).finally(()=>{l.updateResult()})}return s.notifyOnChangeProps?u:l.trackResult(u)}function na(e,t){return Qf(e,Lf)}function gr(e,t){const n=Fo(),[r]=h.useState(()=>new Nf(n,e));h.useEffect(()=>{r.setOptions(e)},[r,e]);const o=h.useSyncExternalStore(h.useCallback(s=>r.subscribe(ae.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=h.useCallback((s,a)=>{r.mutate(s,a).catch(fe)},[r]);if(o.error&&Ws(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}const vr={STALE_TIME:1e3*60*5,GC_TIME:1e3*60*10,RETRY_COUNT:1,RETRY_DELAY:1e3},ra={refetchOnWindowFocus:!1,refetchOnReconnect:!1,refetchOnMount:!1,staleTime:vr.STALE_TIME,gcTime:vr.GC_TIME,retry:vr.RETRY_COUNT,retryDelay:vr.RETRY_DELAY,enable:!0},yr=e=>e instanceof Error?e.message:String(e),Yf=x("useResourceActions",(e,t,n)=>{const r=Fo(),{notify:o}=Is(),{createFn:i,readFn:s,readByIdFn:a,updateFn:l,deleteFn:u,partialUpdateFn:d}=n,p=()=>{r.invalidateQueries({queryKey:[e]})},m=(E,T,P,A)=>o(A!=null&&A.overrideSuccessMessage?A==null?void 0:A.overrideSuccessMessage(E,T):P,"success"),g=(E,T,P,A)=>o(A!=null&&A.overrideErrorMessage?A==null?void 0:A.overrideErrorMessage(E,T):P,"error");return{useCreate:E=>gr({mutationFn:T=>i(T),onSuccess:T=>{p(),m(t,T,`${t} created successfully`,E)},onError:T=>{g(t,T,`Error creating ${t}: ${yr(T)}`,E)}}),useReadQuery:E=>na({queryKey:[e],queryFn:s,...ra,...E}),useReadByIdQuery:(E,T)=>na({queryKey:[e,E],queryFn:()=>a(E),...ra,enabled:!!E,...T}),useUpdate:E=>gr({mutationFn:({id:T,data:P})=>l(T,P),onSuccess:T=>{p(),m(t,T,`${t} updated successfully`,E)},onError:T=>{g(t,T,`Error updating ${t}: ${yr(T)}`,E)}}),usePartialUpdate:E=>d&&gr({mutationFn:({id:T,data:P})=>d(T,P),onSuccess:T=>{p(),m(t,T,`${t} updated successfully`,E)},onError:T=>{g(t,T,`Error updating ${t}: ${yr(T)}`,E)}}),useDelete:E=>gr({mutationFn:T=>u(T),onSuccess:()=>{p(),m(t,null,`${t} deleted successfully`,E)},onError:T=>{g(t,T,`Error deleting ${t}: ${yr(T)}`,E)}}),invalidateQueries:p}}),zv=x("useResource",(e,t)=>Yf(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())})),Kf={SINGLE_TENANT:"single-tenant"},Zf={COOKIE:"cookie"},Bo="tenant",oa="tenant",ia="tenant",Xf=Kf.SINGLE_TENANT,Jf=Zf.COOKIE,ep={mode:Xf,clientSideMode:Jf,tenantIDPProvisioningStrategy:"none"};class tp{setTenant(t,n){const r=new URL(window.location.href);r.searchParams.set(oa,t.name),window.location.href=r.toString()}getCurrentTenantName(){const t=new URL(window.location.href);return new URLSearchParams(t.search).get(oa)}}class np{setTenant(t,n){sessionStorage.setItem(ia,t.name),window.location.reload()}getCurrentTenantName(){return sessionStorage.getItem(ia)}}/*! js-cookie v3.0.5 | MIT */function br(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 rp={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 Uo(e,t){function n(o,i,s){if(!(typeof document>"u")){s=br({},t,s),typeof s.expires=="number"&&(s.expires=new Date(Date.now()+s.expires*864e5)),s.expires&&(s.expires=s.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var l in s)s[l]&&(a+="; "+l,s[l]!==!0&&(a+="="+s[l].split(";")[0]));return document.cookie=o+"="+e.write(i,o)+a}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var i=document.cookie?document.cookie.split("; "):[],s={},a=0;a<i.length;a++){var l=i[a].split("="),u=l.slice(1).join("=");try{var d=decodeURIComponent(l[0]);if(s[d]=e.read(u,d),o===d)break}catch{}}return o?s[o]:s}}return Object.create({set:n,get:r,remove:function(o,i){n(o,"",br({},i,{expires:-1}))},withAttributes:function(o){return Uo(this.converter,br({},this.attributes,o))},withConverter:function(o){return Uo(br({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Wo=Uo(rp,{path:"/"});class op{setTenant(t,n){t?Wo.set(Bo,t.name):Wo.remove(Bo),window.location.reload()}getCurrentTenantName(){return Wo.get(Bo)}}class ip{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(d=>d.patternType==="subdomain"&&d.tenantId===t.id&&d.isActive);if(!r)throw new Error(`No active subdomain pattern found for tenant '${t.name}'`);const o=new URL(window.location.href),i=r.patternValue,s=o.hostname,a=this.getBaseDomain(s),l=i?`${i}.${a}`:a;o.hostname=l,window.location.href=o.toString()}getCurrentTenantName(){const t=window.location.hostname;return this.extractSubdomain(t)||null}}const sa={queryParams:new tp,sessionStorage:new np,cookie:new op,subdomain:new ip},sp=e=>{const t=sa[e.clientSideMode];if(!t)throw new Error(`Client side tenant mode '${e.clientSideMode}' is not supported ${JSON.stringify({strategies:sa},null,2)}`);return t},ap=(e,t,n)=>{const r=t.find(i=>i.name===n);if(!r)throw Error("No tenant permission");return sp(e).setTenant(r,e),r},Hv=x("useTenants",()=>{const[e,t]=Kn(),{tenants:n=[],currentTenant:r,tenantConfig:o=ep}=e,i=se(s=>{const a=ap(o,n,s);t({...e,currentTenant:a})},[o,e]);return{tenants:n,currentTenant:r,tenantConfig:o,selectTenant:i}});function lp(e){if(!e.ok)throw console.error(e),new Error(e.statusText)}async function wr(e,t,n,r){const o=await e(`/user-states/${encodeURIComponent(t)}/${encodeURIComponent(n)}`,r);return lp(o),o}class _r{static async get(t,n,r){const i=await wr(t,n,r,{method:"GET",headers:{"Content-Type":"application/json"}});return i.status===204?null:await i.json()}static async create(t,n,r,o){const i={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({value:o})};return await(await wr(t,n,r,i)).json()}static async update(t,n,r,o){const i={method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({value:o})};return await(await wr(t,n,r,i)).json()}static async delete(t,n,r){return await wr(t,n,r,{method:"DELETE",headers:{"Content-Type":"application/json"}}),null}}const Vv=x("useUserState",e=>{const t=ms("@bluealba/pae-nestjs-gateway-service"),n=Zu();if(!n)throw new Error("You must call the useUserState hook within a PAE application.");const[r,o]=$(null),[i,s]=$(!1),[a,l]=$(!1),[u,d]=$(null),p=(C,S)=>se(async({newValue:E,shouldThrowError:T}={})=>{try{l(!0),d(null);const P=await C(t,n,e,E);return o(P),P?P.value:null}catch(P){if(d(P==null?void 0:P.message),console.error(`Failed to ${S} ${e}:`,P),T)throw P;return null}finally{l(!1)}},[t,n,e]),m=p(_r.get,"fetch"),g=p(_r.create,"create"),w=p(_r.update,"update"),f=p(_r.delete,"delete"),v=se(async()=>{try{await m()}finally{s(!0)}},[m]);K(()=>{v()},[v]);const _=se(async(C,S=!1)=>r==null?await g({newValue:C,shouldThrowError:S}):await w({newValue:C,shouldThrowError:S}),[r,g,w]);return{value:r?r.value:null,hasFetched:i,loading:a,error:u,setValue:_,createValue:g,updateValue:w,deleteValue:f}}),aa="__PAE_EXTENSION_POINT_REACT_CONTENT_EMPTY__",Gv=x("ExtendExtensionPoint",({module:e,point:t,children:n})=>(sd(e,t,n??aa),null)),cp=x("ExtensionPoint",({name:e,children:t,...n})=>{const r=id(e);if(r===aa)return null;if(!r)return c.jsx(c.Fragment,{children:t??null});if(up(r)){const o=r;return c.jsx(o,{...n})}else return r}),up=e=>typeof e=="function",qv=x("extensionPoint",(e,t)=>{const n=r=>(t=t||e.displayName||e.name||"?",c.jsx(cp,{name:t,...r,children:c.jsx(e,{...r})}));return n.displayName=`extensionPoint(${t})`,n}),la="single-spa:app-change";function dp(){const[e,t]=$(ca());return K(()=>{const n=()=>{t(ca())};return window.addEventListener(la,n),()=>{window.removeEventListener(la,n)}},[]),e}function ca(){return Yn.getAppNames().reduce((t,n)=>(Yn.getAppStatus(n)?t[n]=Yn.getAppStatus(n):t[n]="NOT_LOADED",t),{})}function fp(e){const n=dp()[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"}}const ua=({appName:e})=>c.jsx("div",{children:c.jsxs("p",{children:["Loading ",e,"..."]})});ua.displayName="BaseLoading";const da=({appName:e})=>c.jsxs("div",{children:[c.jsx("p",{children:"Something went wrong..."}),c.jsxs("p",{children:["Failed to load ",e]})]});da.displayName="BaseError";const pp={display:"flex",flexDirection:"column",flex:1},fa=W((e,t)=>c.jsx("div",{ref:t,style:pp,...e}));fa.displayName="BaseContainer";const hp="pae-app:",mp=x("ModulePlaceHolder",W(({appName:e,LoadingComponent:t=ua,ErrorComponent:n=da,ContainerComponent:r=fa,...o},i)=>{const s=fp(e);return c.jsxs(r,{ref:i,...o,id:`${hp}${e}`,children:[s.isLoading&&c.jsx(t,{appName:e}),s.isBroken&&c.jsx(n,{appName:e})]})}));mp.displayName="ModulePlaceHolder";const pa=x("Authorized",({operations:e,children:t,forbiddenContent:n})=>{var o;const{hasAccess:r}=Jn();if(!r(...e)){if(!n)return null;if(typeof n=="function")if((o=n==null?void 0:n.prototype)!=null&&o.isReactComponent){const i=n;return c.jsx(i,{operations:e})}else return n({operations:e});return Gn.isValidElement(n)?n:null}return t});pa.displayName="Authorized";const Qv=x("PlatformEventListener",({eventName:e,listener:t})=>(ad(e,t),null)),gp=()=>c.jsx("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:c.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"})}),vp=x("ApplicationIcon",({applicationName:e})=>{const t=Uu(e);if(t)if(typeof t=="function"){const n=t;return c.jsx(n,{})}else return t;return c.jsx(gp,{})});vp.displayName="ApplicationIcon";const ha=()=>c.jsx("svg",{width:"28",height:"28",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.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"})});ha.displayName="DarkModeIcon";const ma=()=>c.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:c.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"})});ma.displayName="LightModeIcon";const zo={container:"container__zBqbk",expanded:"expanded__EbsIr",label:"label__cdMnm"};function ga(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=ga(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function j(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ga(e))&&(r&&(r+=" "),r+=t);return r}const yp=e=>e.toLowerCase().trim().split(" ").join("-"),bp=e=>`${yp(e)}-theme`,wp=x("useTheme",()=>{const{platformName:e="Platform"}=ls(),t=bp(e),[n,r]=$(()=>{const i=localStorage.getItem(t);return i==="light"||i==="dark"?i:"light"}),o=i=>{localStorage.setItem(t,i),r(i)};return K(()=>{document.documentElement.setAttribute("data-theme",n)},[n]),{theme:n,setTheme:o}}),Cr={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"},Ho=x("Button",W(({variant:e="contained",colorScheme:t="primary",loading:n=!1,IconComponent:r,className:o,children:i,...s},a)=>{const l=j(Cr.button,Cr[`button--${e}-${t}`],o);return c.jsxs("button",{ref:a,className:l,...s,children:[n?c.jsx("div",{className:Cr.spinner}):r&&c.jsx(r,{className:Cr.icon}),i]})}));Ho.displayName="Button";const xr={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"},Vo={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 Vo)Object.freeze(Vo[e]);const va=Object.freeze(Vo);var ya={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function _p(e){var d,p;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(),va[e])n=va[e].slice(),o="rgb";else if(e==="transparent")r=0,o="rgb",n=[0,0,0];else if(e[0]==="#"){var i=e.slice(1),s=i.length,a=s<=4;r=1,a?(n=[parseInt(i[0]+i[0],16),parseInt(i[1]+i[1],16),parseInt(i[2]+i[2],16)],s===4&&(r=parseInt(i[3]+i[3],16)/255)):(n=[parseInt(i[0]+i[1],16),parseInt(i[2]+i[3],16),parseInt(i[4]+i[5],16)],s===8&&(r=parseInt(i[6]+i[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 l=t[1];o=l.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(ya[m]!==void 0)return ya[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=((p=(d=e.match(/([a-z])/ig))==null?void 0:d.join(""))==null?void 0:p.toLowerCase())||"rgb");return{space:o,values:n,alpha:r}}const Cp=(e,t)=>{const{space:n,values:r}=_p(e);return n[0]==="h"?`${n}a(${r[0]}, ${r[1]}%, ${r[2]}%, ${t})`:`${n}a(${r}, ${t})`},ba=x("Badge",W(({children:e,color:t,className:n,customColor:r,size:o="small",style:i,...s},a)=>{const l=r?{color:r,background:Cp(r,.1)}:{},u=j(xr.Badge,xr[`Badge--${o}`],{[xr[`Badge--${t}`]]:!!t},n);return c.jsx("span",{ref:a,className:u,style:{...i,...l},...s,children:e})}));ba.displayName="Badge";const wa=x("Badges",W(({children:e,className:t,...n},r)=>{const o=j(xr.Badges,t);return c.jsx("div",{ref:r,className:o,...n,children:e})}));wa.displayName="Badges";const xp=x("ClipboardIcon",({size:e=24,color:t="currentColor",strokeWidth:n=2,className:r,style:o,...i})=>c.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,...i,children:[c.jsx("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"}),c.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"})]})),Ep=x("ClipboardCheckIcon",({size:e=24,color:t="currentColor",strokeWidth:n=2,className:r,style:o,...i})=>c.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,...i,children:[c.jsx("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"}),c.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"}),c.jsx("path",{d:"m9 12 2 2 4-4"})]})),Sp={CopyToClipboardButton:"CopyToClipboardButton__2Nd2m"},_y=x("CopyToClipboardButton",({content:e})=>{const[t,n]=Tp(),{notify:r}=Is(),o=t?Ep:xp,i=se(async()=>{await n(e)&&r("Copied to the Clipboard !","success")},[e,r]);return c.jsx(o,{className:Sp.CopyToClipboardButton,size:18,onClick:i})}),Tp=()=>{const[e,t]=$(!1);return[e,async r=>{try{return await navigator.clipboard.writeText(r),t(!0),setTimeout(()=>t(!1),2e3),!0}catch(o){return console.error("Failed to copy text: ",o),!1}}]},_a={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"},Rp=x("FieldGroup",W(({children:e,className:t,orientation:n="vertical",...r},o)=>{const i=j(_a.FieldGroup,_a[`FieldGroup--${n}`],t);return c.jsx("div",{ref:o,className:i,...r,children:e})}));Rp.displayName="FieldGroup";const Ca={Input:"Input__uS0sb",Error:"Error__-DQpw"},Go=x("Input",W(({className:e,error:t,...n},r)=>{const o=j(Ca.Input,t&&Ca.Error,e);return c.jsx("input",{ref:r,className:o,...n})}));Go.displayName="Input";const Ap={Error:"Error__N4OP5"},Pp=x("InputError",W(({children:e,className:t,...n},r)=>{const o=j(Ap.Error,t);return c.jsx("span",{ref:r,className:o,...n,children:e})}));Pp.displayName="InputError";const xa={Label:"Label__VYUvW",Error:"Error__Eu6DI"},Op=x("Label",W(({children:e,className:t,error:n,...r},o)=>{const i=j(xa.Label,n&&xa.Error,t);return c.jsx("label",{ref:o,className:i,...r,children:e})}));Op.displayName="Label";const qo={Select:"Select__giqpe",Chevron:"Chevron__YvhBd"},Ea=W(({children:e,className:t,...n},r)=>{const o=j(qo.Option,t);return c.jsx("option",{ref:r,className:o,...n,children:e})});Ea.displayName="Option";const Sa=x("Select",W(({children:e,className:t,...n},r)=>{const o=j(qo.Select,t);return c.jsxs("div",{className:o,children:[c.jsx("select",{ref:r,...n,children:e}),c.jsx("div",{className:qo.Chevron,children:c.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M4 6L8 10L12 6",stroke:"#818181",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})})]})}));Sa.displayName="Select",Sa.Option=Ea;const kp={TextArea:"TextArea__pa-A0"},jp=x("TextArea",W(({children:e,className:t,...n},r)=>{const o=j(kp.TextArea,t);return c.jsx("textarea",{ref:r,className:o,...n,children:e})}));jp.displayName="TextArea";const kn={SearchInput:"SearchInput__4OFyE",SearchIcon:"SearchIcon__YgnQy",ClearIcon:"ClearIcon__ukRVr",SearchInput__ClearIcon:"SearchInput__ClearIcon__uzVoc",SearchInput__SearchIcon:"SearchInput__SearchIcon__zoDG4"},Ta=x("SearchInput",W(({className:e,placeholder:t="Type to search...",showClearButton:n=!1,showSearchIcon:r=!0,onClear:o,...i},s)=>{const a=j(kn.SearchInput,n&&kn.SearchInput__ClearIcon,r&&kn.SearchInput__SearchIcon,e),l=j(kn.SearchIcon),u=j(kn.ClearIcon);return c.jsxs("div",{className:a,children:[c.jsx(Go,{ref:s,type:"text",placeholder:t,...i}),r&&c.jsx("svg",{className:l,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.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&&c.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:c.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"})})]})}));Ta.displayName="SearchInput";const Pt={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"},Yt=x("dropdownListStyles",{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"}),Qo=x("DropdownList",W(({children:e,className:t,open:n,align:r="right",...o},i)=>{const s=j(Yt.DropdownList,{[Yt["DropdownList--open"]]:n,[Yt["DropdownList--closed"]]:!n,[Yt["DropdownList--left"]]:r==="left"},t);return c.jsx("div",{ref:i,className:s,...o,children:e})}));Qo.displayName="DropdownList";const jn=W(({children:e,className:t,canBeSelected:n=!1,...r},o)=>{const i=j(Pt.AutocompleteItem,{[Pt["AutocompleteItem--canBeSelected"]]:n},t);return c.jsx("div",{ref:o,className:i,role:n?"option":void 0,...r,children:e})});jn.displayName="AutocompleteItem";const Lp=300,Dp={query:"",suggestions:[],loading:!1,error:null},Ip=({suggestionFetcher:e,canAdd:t})=>{const[n,r]=$(Dp);return K(()=>{r(a=>({...a,loading:!0}));const i=async()=>{try{const a=await e(n.query);t&&!a.some(l=>l.value.toLowerCase()===n.query.toLowerCase())&&a.push({label:`Add "${n.query}"`,value:n.query,isNew:!0}),r(l=>({...l,suggestions:a,loading:!1}))}catch(a){r(l=>({...l,suggestions:[],error:a,loading:!1}))}},s=setTimeout(()=>{i()},Lp);return()=>{clearTimeout(s)}},[n.query]),{...n,setQuery:i=>{r(s=>({...s,query:i}))}}},Ra=W(({text:e,query:t,className:n,...r},o)=>{const i=j(Pt.AutocompleteHighlighter,n),s=(a,l)=>{const u=a.toLowerCase().indexOf(l.toLowerCase());if(u===-1||l.length===0)return a;const d=a.slice(0,u),p=a.slice(u,u+l.length),m=a.slice(u+l.length);return c.jsxs(c.Fragment,{children:[d,c.jsx("span",{className:Pt.AutocompleteHighlighter__match,children:p}),s(m,l)]})};return c.jsx("div",{ref:o,className:i,...r,children:s(e,t)})});Ra.displayName="AutocompleteHighlighter";const Np=5,Mp=x("SearchAutocomplete",W(({children:e,className:t,canAdd:n,maxSuggestionsShown:r=Np,searchInputProps:o,keepSelectedOption:i,suggestionFetcher:s,onAccept:a,...l},u)=>{const{query:d,setQuery:p,suggestions:m,loading:g}=Ip({suggestionFetcher:s,canAdd:n}),[w,f]=$(null),v=d.length>0,_=A=>{p(A.target.value)},C=A=>{a==null||a(A),i?(f(A),p(A.value)):p("")},S=()=>{a==null||a(null),f(null),p("")},E=j(Pt.SearchAutocomplete,t),T=m.slice(0,r),P=m.slice(r);return c.jsxs("div",{ref:u,className:E,...l,children:[c.jsx(Ta,{...o,value:d,onChange:_,showClearButton:!!w,onClear:S}),e,c.jsxs(Qo,{className:Pt.DropdownList,open:v&&!w,role:"listbox","aria-label":"Suggestions",children:[g?c.jsx(jn,{children:"Loading..."}):T.map(A=>c.jsxs(jn,{canBeSelected:!0,onClick:C.bind(null,A),children:[c.jsx(Ra,{text:A.label,query:d}),A.description&&c.jsx("span",{className:Pt.AutocompleteItemDescription,children:A.description})]},A.value)),!g&&P.length>0&&c.jsxs(jn,{children:[P.length," more results"]}),v&&m.length===0&&!g&&c.jsx(jn,{children:"No results found"})]})]})}));Mp.displayName="SearchAutocomplete";const Ot=x("Show",e=>{let t=null,n=null;return Ki.forEach(e.children,r=>{const o=r.props.condition;o===void 0?n=r:!t&&o===!0&&(t=r)}),c.jsx(c.Fragment,{children:t||n})});Ot.displayName="Show",Ot.When=({condition:e,children:t})=>c.jsx(c.Fragment,{children:e&&t}),Ot.Else=({render:e,children:t})=>c.jsx(c.Fragment,{children:e||t});function Aa(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Er(...e){return t=>{let n=!1;const r=e.map(o=>{const i=Aa(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():Aa(e[o],null)}}}}function ke(...e){return h.useCallback(Er(...e),e)}var $p=Symbol.for("react.lazy"),Sr=h[" use ".trim().toString()];function Fp(e){return typeof e=="object"&&e!==null&&"then"in e}function Pa(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===$p&&"_payload"in e&&Fp(e._payload)}function Bp(e){const t=Wp(e),n=h.forwardRef((r,o)=>{let{children:i,...s}=r;Pa(i)&&typeof Sr=="function"&&(i=Sr(i._payload));const a=h.Children.toArray(i),l=a.find(Hp);if(l){const u=l.props.children,d=a.map(p=>p===l?h.Children.count(u)>1?h.Children.only(null):h.isValidElement(u)?u.props.children:null:p);return c.jsx(t,{...s,ref:o,children:h.isValidElement(u)?h.cloneElement(u,void 0,d):null})}return c.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var Up=Bp("Slot");function Wp(e){const t=h.forwardRef((n,r)=>{let{children:o,...i}=n;if(Pa(o)&&typeof Sr=="function"&&(o=Sr(o._payload)),h.isValidElement(o)){const s=Gp(o),a=Vp(i,o.props);return o.type!==h.Fragment&&(a.ref=r?Er(r,s):s),h.cloneElement(o,a)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var zp=Symbol("radix.slottable");function Hp(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===zp}function Vp(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const l=i(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Gp(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 Oa={SkeletonListContainer:"SkeletonListContainer__MKJhE",Skeleton:"Skeleton__Ovpiw"},Yo=x("Skeleton",W((e,t)=>{const{children:n,className:r,loading:o,height:i=48,width:s,borderRadius:a,style:l,...u}=e;if(!o&&n)return n;const d=uo(n)?Up:"span";return c.jsx(d,{ref:t,"aria-hidden":!0,className:j(Oa.Skeleton,r),style:{...l,width:s,minWidth:s,height:i,borderRadius:a},"data-inline-skeleton":uo(n)?void 0:!0,tabIndex:-1,...u,children:n})}));Yo.displayName="Skeleton";const qp=x("SkeletonList",e=>{const{numberOfItems:t,itemsGap:n=2,itemProps:r}=e,o=Array.from({length:t},(i,s)=>s+1);return c.jsx("div",{className:j(Oa.SkeletonListContainer),style:{gap:n},children:o.map(i=>c.jsx(Yo,{loading:!0,...r},i))})});qp.displayName="SkeletonList";function ve(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 Qp(e,t){const n=h.createContext(t),r=i=>{const{children:s,...a}=i,l=h.useMemo(()=>a,Object.values(a));return c.jsx(n.Provider,{value:l,children:s})};r.displayName=e+"Provider";function o(i){const s=h.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function Ko(e,t=[]){let n=[];function r(i,s){const a=h.createContext(s),l=n.length;n=[...n,s];const u=p=>{var _;const{scope:m,children:g,...w}=p,f=((_=m==null?void 0:m[e])==null?void 0:_[l])||a,v=h.useMemo(()=>w,Object.values(w));return c.jsx(f.Provider,{value:v,children:g})};u.displayName=i+"Provider";function d(p,m){var f;const g=((f=m==null?void 0:m[e])==null?void 0:f[l])||a,w=h.useContext(g);if(w)return w;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[u,d]}const o=()=>{const i=n.map(s=>h.createContext(s));return function(a){const l=(a==null?void 0:a[e])||i;return h.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,Yp(o,...t)]}function Yp(...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(i){const s=r.reduce((a,{useScope:l,scopeName:u})=>{const p=l(i)[`__scope${u}`];return{...a,...p}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function Kp(e){const t=Zp(e),n=h.forwardRef((r,o)=>{const{children:i,...s}=r,a=h.Children.toArray(i),l=a.find(Jp);if(l){const u=l.props.children,d=a.map(p=>p===l?h.Children.count(u)>1?h.Children.only(null):h.isValidElement(u)?u.props.children:null:p);return c.jsx(t,{...s,ref:o,children:h.isValidElement(u)?h.cloneElement(u,void 0,d):null})}return c.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function Zp(e){const t=h.forwardRef((n,r)=>{const{children:o,...i}=n;if(h.isValidElement(o)){const s=th(o),a=eh(i,o.props);return o.type!==h.Fragment&&(a.ref=r?Er(r,s):s),h.cloneElement(o,a)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Xp=Symbol("radix.slottable");function Jp(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Xp}function eh(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const l=i(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function th(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 nh=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ye=nh.reduce((e,t)=>{const n=Kp(`Primitive.${t}`),r=h.forwardRef((o,i)=>{const{asChild:s,...a}=o,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(l,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function rh(e,t){e&&po.flushSync(()=>e.dispatchEvent(t))}function Kt(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function oh(e,t=globalThis==null?void 0:globalThis.document){const n=Kt(e);h.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 ih="DismissableLayer",Zo="dismissableLayer.update",sh="dismissableLayer.pointerDownOutside",ah="dismissableLayer.focusOutside",ka,ja=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Xo=h.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...l}=e,u=h.useContext(ja),[d,p]=h.useState(null),m=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=h.useState({}),w=ke(t,A=>p(A)),f=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),_=f.indexOf(v),C=d?f.indexOf(d):-1,S=u.layersWithOutsidePointerEventsDisabled.size>0,E=C>=_,T=uh(A=>{const M=A.target,I=[...u.branches].some(D=>D.contains(M));!E||I||(o==null||o(A),s==null||s(A),A.defaultPrevented||a==null||a())},m),P=dh(A=>{const M=A.target;[...u.branches].some(D=>D.contains(M))||(i==null||i(A),s==null||s(A),A.defaultPrevented||a==null||a())},m);return oh(A=>{C===u.layers.size-1&&(r==null||r(A),!A.defaultPrevented&&a&&(A.preventDefault(),a()))},m),h.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(ka=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),La(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=ka)}},[d,m,n,u]),h.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),La())},[d,u]),h.useEffect(()=>{const A=()=>g({});return document.addEventListener(Zo,A),()=>document.removeEventListener(Zo,A)},[]),c.jsx(ye.div,{...l,ref:w,style:{pointerEvents:S?E?"auto":"none":void 0,...e.style},onFocusCapture:ve(e.onFocusCapture,P.onFocusCapture),onBlurCapture:ve(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:ve(e.onPointerDownCapture,T.onPointerDownCapture)})});Xo.displayName=ih;var lh="DismissableLayerBranch",ch=h.forwardRef((e,t)=>{const n=h.useContext(ja),r=h.useRef(null),o=ke(t,r);return h.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),c.jsx(ye.div,{...e,ref:o})});ch.displayName=lh;function uh(e,t=globalThis==null?void 0:globalThis.document){const n=Kt(e),r=h.useRef(!1),o=h.useRef(()=>{});return h.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){Da(sh,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function dh(e,t=globalThis==null?void 0:globalThis.document){const n=Kt(e),r=h.useRef(!1);return h.useEffect(()=>{const o=i=>{i.target&&!r.current&&Da(ah,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function La(){const e=new CustomEvent(Zo);document.dispatchEvent(e)}function Da(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?rh(o,i):o.dispatchEvent(i)}var ut=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{},fh=h[" useId ".trim().toString()]||(()=>{}),ph=0;function Tr(e){const[t,n]=h.useState(fh());return ut(()=>{n(r=>r??String(ph++))},[e]),e||(t?`radix-${t}`:"")}const hh=["top","right","bottom","left"],dt=Math.min,Ee=Math.max,Rr=Math.round,Ar=Math.floor,Fe=e=>({x:e,y:e}),mh={left:"right",right:"left",bottom:"top",top:"bottom"},gh={start:"end",end:"start"};function Jo(e,t,n){return Ee(e,dt(t,n))}function Ke(e,t){return typeof e=="function"?e(t):e}function Ze(e){return e.split("-")[0]}function Zt(e){return e.split("-")[1]}function ei(e){return e==="x"?"y":"x"}function ti(e){return e==="y"?"height":"width"}const vh=new Set(["top","bottom"]);function Be(e){return vh.has(Ze(e))?"y":"x"}function ni(e){return ei(Be(e))}function yh(e,t,n){n===void 0&&(n=!1);const r=Zt(e),o=ni(e),i=ti(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Pr(s)),[s,Pr(s)]}function bh(e){const t=Pr(e);return[ri(e),t,ri(t)]}function ri(e){return e.replace(/start|end/g,t=>gh[t])}const Ia=["left","right"],Na=["right","left"],wh=["top","bottom"],_h=["bottom","top"];function Ch(e,t,n){switch(e){case"top":case"bottom":return n?t?Na:Ia:t?Ia:Na;case"left":case"right":return t?wh:_h;default:return[]}}function xh(e,t,n,r){const o=Zt(e);let i=Ch(Ze(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(ri)))),i}function Pr(e){return e.replace(/left|right|bottom|top/g,t=>mh[t])}function Eh(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ma(e){return typeof e!="number"?Eh(e):{top:e,right:e,bottom:e,left:e}}function Or(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 $a(e,t,n){let{reference:r,floating:o}=e;const i=Be(t),s=ni(t),a=ti(s),l=Ze(t),u=i==="y",d=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,m=r[a]/2-o[a]/2;let g;switch(l){case"top":g={x:d,y:r.y-o.height};break;case"bottom":g={x:d,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:p};break;case"left":g={x:r.x-o.width,y:p};break;default:g={x:r.x,y:r.y}}switch(Zt(t)){case"start":g[s]-=m*(n&&u?-1:1);break;case"end":g[s]+=m*(n&&u?-1:1);break}return g}async function Sh(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:m=!1,padding:g=0}=Ke(t,e),w=Ma(g),v=a[m?p==="floating"?"reference":"floating":p],_=Or(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(v)))==null||n?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:l})),C=p==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),E=await(i.isElement==null?void 0:i.isElement(S))?await(i.getScale==null?void 0:i.getScale(S))||{x:1,y:1}:{x:1,y:1},T=Or(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:C,offsetParent:S,strategy:l}):C);return{top:(_.top-T.top+w.top)/E.y,bottom:(T.bottom-_.bottom+w.bottom)/E.y,left:(_.left-T.left+w.left)/E.x,right:(T.right-_.right+w.right)/E.x}}const Th=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:p}=$a(u,r,l),m=r,g={},w=0;for(let v=0;v<a.length;v++){var f;const{name:_,fn:C}=a[v],{x:S,y:E,data:T,reset:P}=await C({x:d,y:p,initialPlacement:r,placement:m,strategy:o,middlewareData:g,rects:u,platform:{...s,detectOverflow:(f=s.detectOverflow)!=null?f:Sh},elements:{reference:e,floating:t}});d=S??d,p=E??p,g={...g,[_]:{...g[_],...T}},P&&w<=50&&(w++,typeof P=="object"&&(P.placement&&(m=P.placement),P.rects&&(u=P.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):P.rects),{x:d,y:p}=$a(u,m,l)),v=-1)}return{x:d,y:p,placement:m,strategy:o,middlewareData:g}},Rh=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:u,padding:d=0}=Ke(e,t)||{};if(u==null)return{};const p=Ma(d),m={x:n,y:r},g=ni(o),w=ti(g),f=await s.getDimensions(u),v=g==="y",_=v?"top":"left",C=v?"bottom":"right",S=v?"clientHeight":"clientWidth",E=i.reference[w]+i.reference[g]-m[g]-i.floating[w],T=m[g]-i.reference[g],P=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let A=P?P[S]:0;(!A||!await(s.isElement==null?void 0:s.isElement(P)))&&(A=a.floating[S]||i.floating[w]);const M=E/2-T/2,I=A/2-f[w]/2-1,D=dt(p[_],I),q=dt(p[C],I),Z=D,V=A-f[w]-q,Y=A/2-f[w]/2+M,le=Jo(Z,Y,V),ne=!l.arrow&&Zt(o)!=null&&Y!==le&&i.reference[w]/2-(Y<Z?D:q)-f[w]/2<0,re=ne?Y<Z?Y-Z:Y-V:0;return{[g]:m[g]+re,data:{[g]:le,centerOffset:Y-le-re,...ne&&{alignmentOffset:re}},reset:ne}}}),Ah=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:f=!0,...v}=Ke(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const _=Ze(o),C=Be(a),S=Ze(a)===a,E=await(l.isRTL==null?void 0:l.isRTL(u.floating)),T=m||(S||!f?[Pr(a)]:bh(a)),P=w!=="none";!m&&P&&T.push(...xh(a,f,w,E));const A=[a,...T],M=await l.detectOverflow(t,v),I=[];let D=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&I.push(M[_]),p){const Y=yh(o,s,E);I.push(M[Y[0]],M[Y[1]])}if(D=[...D,{placement:o,overflows:I}],!I.every(Y=>Y<=0)){var q,Z;const Y=(((q=i.flip)==null?void 0:q.index)||0)+1,le=A[Y];if(le&&(!(p==="alignment"?C!==Be(le):!1)||D.every(B=>Be(B.placement)===C?B.overflows[0]>0:!0)))return{data:{index:Y,overflows:D},reset:{placement:le}};let ne=(Z=D.filter(re=>re.overflows[0]<=0).sort((re,B)=>re.overflows[1]-B.overflows[1])[0])==null?void 0:Z.placement;if(!ne)switch(g){case"bestFit":{var V;const re=(V=D.filter(B=>{if(P){const ce=Be(B.placement);return ce===C||ce==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(ce=>ce>0).reduce((ce,Te)=>ce+Te,0)]).sort((B,ce)=>B[1]-ce[1])[0])==null?void 0:V[0];re&&(ne=re);break}case"initialPlacement":ne=a;break}if(o!==ne)return{reset:{placement:ne}}}return{}}}};function Fa(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ba(e){return hh.some(t=>e[t]>=0)}const Ph=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=Ke(e,t);switch(o){case"referenceHidden":{const s=await r.detectOverflow(t,{...i,elementContext:"reference"}),a=Fa(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Ba(a)}}}case"escaped":{const s=await r.detectOverflow(t,{...i,altBoundary:!0}),a=Fa(s,n.floating);return{data:{escapedOffsets:a,escaped:Ba(a)}}}default:return{}}}}},Ua=new Set(["left","top"]);async function Oh(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Ze(n),a=Zt(n),l=Be(n)==="y",u=Ua.has(s)?-1:1,d=i&&l?-1:1,p=Ke(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:w}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof w=="number"&&(g=a==="end"?w*-1:w),l?{x:g*d,y:m*u}:{x:m*u,y:g*d}}const kh=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await Oh(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},jh=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:_=>{let{x:C,y:S}=_;return{x:C,y:S}}},...u}=Ke(e,t),d={x:n,y:r},p=await i.detectOverflow(t,u),m=Be(Ze(o)),g=ei(m);let w=d[g],f=d[m];if(s){const _=g==="y"?"top":"left",C=g==="y"?"bottom":"right",S=w+p[_],E=w-p[C];w=Jo(S,w,E)}if(a){const _=m==="y"?"top":"left",C=m==="y"?"bottom":"right",S=f+p[_],E=f-p[C];f=Jo(S,f,E)}const v=l.fn({...t,[g]:w,[m]:f});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[g]:s,[m]:a}}}}}},Lh=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=Ke(e,t),d={x:n,y:r},p=Be(o),m=ei(p);let g=d[m],w=d[p];const f=Ke(a,t),v=typeof f=="number"?{mainAxis:f,crossAxis:0}:{mainAxis:0,crossAxis:0,...f};if(l){const S=m==="y"?"height":"width",E=i.reference[m]-i.floating[S]+v.mainAxis,T=i.reference[m]+i.reference[S]-v.mainAxis;g<E?g=E:g>T&&(g=T)}if(u){var _,C;const S=m==="y"?"width":"height",E=Ua.has(Ze(o)),T=i.reference[p]-i.floating[S]+(E&&((_=s.offset)==null?void 0:_[p])||0)+(E?0:v.crossAxis),P=i.reference[p]+i.reference[S]+(E?0:((C=s.offset)==null?void 0:C[p])||0)-(E?v.crossAxis:0);w<T?w=T:w>P&&(w=P)}return{[m]:g,[p]:w}}}},Dh=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...u}=Ke(e,t),d=await s.detectOverflow(t,u),p=Ze(o),m=Zt(o),g=Be(o)==="y",{width:w,height:f}=i.floating;let v,_;p==="top"||p==="bottom"?(v=p,_=m===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(_=p,v=m==="end"?"top":"bottom");const C=f-d.top-d.bottom,S=w-d.left-d.right,E=dt(f-d[v],C),T=dt(w-d[_],S),P=!t.middlewareData.shift;let A=E,M=T;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(M=S),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(A=C),P&&!m){const D=Ee(d.left,0),q=Ee(d.right,0),Z=Ee(d.top,0),V=Ee(d.bottom,0);g?M=w-2*(D!==0||q!==0?D+q:Ee(d.left,d.right)):A=f-2*(Z!==0||V!==0?Z+V:Ee(d.top,d.bottom))}await l({...t,availableWidth:M,availableHeight:A});const I=await s.getDimensions(a.floating);return w!==I.width||f!==I.height?{reset:{rects:!0}}:{}}}};function kr(){return typeof window<"u"}function Xt(e){return Wa(e)?(e.nodeName||"").toLowerCase():"#document"}function Se(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ue(e){var t;return(t=(Wa(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Wa(e){return kr()?e instanceof Node||e instanceof Se(e).Node:!1}function je(e){return kr()?e instanceof Element||e instanceof Se(e).Element:!1}function We(e){return kr()?e instanceof HTMLElement||e instanceof Se(e).HTMLElement:!1}function za(e){return!kr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Se(e).ShadowRoot}const Ih=new Set(["inline","contents"]);function Ln(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Le(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Ih.has(o)}const Nh=new Set(["table","td","th"]);function Mh(e){return Nh.has(Xt(e))}const $h=[":popover-open",":modal"];function jr(e){return $h.some(t=>{try{return e.matches(t)}catch{return!1}})}const Fh=["transform","translate","scale","rotate","perspective"],Bh=["transform","translate","scale","rotate","perspective","filter"],Uh=["paint","layout","strict","content"];function oi(e){const t=ii(),n=je(e)?Le(e):e;return Fh.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)||Bh.some(r=>(n.willChange||"").includes(r))||Uh.some(r=>(n.contain||"").includes(r))}function Wh(e){let t=ft(e);for(;We(t)&&!Jt(t);){if(oi(t))return t;if(jr(t))return null;t=ft(t)}return null}function ii(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const zh=new Set(["html","body","#document"]);function Jt(e){return zh.has(Xt(e))}function Le(e){return Se(e).getComputedStyle(e)}function Lr(e){return je(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ft(e){if(Xt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||za(e)&&e.host||Ue(e);return za(t)?t.host:t}function Ha(e){const t=ft(e);return Jt(t)?e.ownerDocument?e.ownerDocument.body:e.body:We(t)&&Ln(t)?t:Ha(t)}function Dn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Ha(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Se(o);if(i){const a=si(s);return t.concat(s,s.visualViewport||[],Ln(o)?o:[],a&&n?Dn(a):[])}return t.concat(o,Dn(o,[],n))}function si(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Va(e){const t=Le(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=We(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Rr(n)!==i||Rr(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function ai(e){return je(e)?e:e.contextElement}function en(e){const t=ai(e);if(!We(t))return Fe(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Va(t);let s=(i?Rr(n.width):n.width)/r,a=(i?Rr(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Hh=Fe(0);function Ga(e){const t=Se(e);return!ii()||!t.visualViewport?Hh:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Vh(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Se(e)?!1:t}function kt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=ai(e);let s=Fe(1);t&&(r?je(r)&&(s=en(r)):s=en(e));const a=Vh(i,n,r)?Ga(i):Fe(0);let l=(o.left+a.x)/s.x,u=(o.top+a.y)/s.y,d=o.width/s.x,p=o.height/s.y;if(i){const m=Se(i),g=r&&je(r)?Se(r):r;let w=m,f=si(w);for(;f&&r&&g!==w;){const v=en(f),_=f.getBoundingClientRect(),C=Le(f),S=_.left+(f.clientLeft+parseFloat(C.paddingLeft))*v.x,E=_.top+(f.clientTop+parseFloat(C.paddingTop))*v.y;l*=v.x,u*=v.y,d*=v.x,p*=v.y,l+=S,u+=E,w=Se(f),f=si(w)}}return Or({width:d,height:p,x:l,y:u})}function Dr(e,t){const n=Lr(e).scrollLeft;return t?t.left+n:kt(Ue(e)).left+n}function qa(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Dr(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Gh(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=Ue(r),a=t?jr(t.floating):!1;if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},u=Fe(1);const d=Fe(0),p=We(r);if((p||!p&&!i)&&((Xt(r)!=="body"||Ln(s))&&(l=Lr(r)),We(r))){const g=kt(r);u=en(r),d.x=g.x+r.clientLeft,d.y=g.y+r.clientTop}const m=s&&!p&&!i?qa(s,l):Fe(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+m.x,y:n.y*u.y-l.scrollTop*u.y+d.y+m.y}}function qh(e){return Array.from(e.getClientRects())}function Qh(e){const t=Ue(e),n=Lr(e),r=e.ownerDocument.body,o=Ee(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ee(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Dr(e);const a=-n.scrollTop;return Le(r).direction==="rtl"&&(s+=Ee(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}const Qa=25;function Yh(e,t){const n=Se(e),r=Ue(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const d=ii();(!d||d&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}const u=Dr(r);if(u<=0){const d=r.ownerDocument,p=d.body,m=getComputedStyle(p),g=d.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,w=Math.abs(r.clientWidth-p.clientWidth-g);w<=Qa&&(i-=w)}else u<=Qa&&(i+=u);return{width:i,height:s,x:a,y:l}}const Kh=new Set(["absolute","fixed"]);function Zh(e,t){const n=kt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=We(e)?en(e):Fe(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,u=r*i.y;return{width:s,height:a,x:l,y:u}}function Ya(e,t,n){let r;if(t==="viewport")r=Yh(e,n);else if(t==="document")r=Qh(Ue(e));else if(je(t))r=Zh(t,n);else{const o=Ga(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Or(r)}function Ka(e,t){const n=ft(e);return n===t||!je(n)||Jt(n)?!1:Le(n).position==="fixed"||Ka(n,t)}function Xh(e,t){const n=t.get(e);if(n)return n;let r=Dn(e,[],!1).filter(a=>je(a)&&Xt(a)!=="body"),o=null;const i=Le(e).position==="fixed";let s=i?ft(e):e;for(;je(s)&&!Jt(s);){const a=Le(s),l=oi(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&Kh.has(o.position)||Ln(s)&&!l&&Ka(e,s))?r=r.filter(d=>d!==s):o=a,s=ft(s)}return t.set(e,r),r}function Jh(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?jr(t)?[]:Xh(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((u,d)=>{const p=Ya(t,d,o);return u.top=Ee(p.top,u.top),u.right=dt(p.right,u.right),u.bottom=dt(p.bottom,u.bottom),u.left=Ee(p.left,u.left),u},Ya(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function e1(e){const{width:t,height:n}=Va(e);return{width:t,height:n}}function t1(e,t,n){const r=We(t),o=Ue(t),i=n==="fixed",s=kt(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Fe(0);function u(){l.x=Dr(o)}if(r||!r&&!i)if((Xt(t)!=="body"||Ln(o))&&(a=Lr(t)),r){const g=kt(t,!0,i,t);l.x=g.x+t.clientLeft,l.y=g.y+t.clientTop}else o&&u();i&&!r&&o&&u();const d=o&&!r&&!i?qa(o,a):Fe(0),p=s.left+a.scrollLeft-l.x-d.x,m=s.top+a.scrollTop-l.y-d.y;return{x:p,y:m,width:s.width,height:s.height}}function li(e){return Le(e).position==="static"}function Za(e,t){if(!We(e)||Le(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ue(e)===n&&(n=n.ownerDocument.body),n}function Xa(e,t){const n=Se(e);if(jr(e))return n;if(!We(e)){let o=ft(e);for(;o&&!Jt(o);){if(je(o)&&!li(o))return o;o=ft(o)}return n}let r=Za(e,t);for(;r&&Mh(r)&&li(r);)r=Za(r,t);return r&&Jt(r)&&li(r)&&!oi(r)?n:r||Wh(e)||n}const n1=async function(e){const t=this.getOffsetParent||Xa,n=this.getDimensions,r=await n(e.floating);return{reference:t1(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function r1(e){return Le(e).direction==="rtl"}const o1={convertOffsetParentRelativeRectToViewportRelativeRect:Gh,getDocumentElement:Ue,getClippingRect:Jh,getOffsetParent:Xa,getElementRects:n1,getClientRects:qh,getDimensions:e1,getScale:en,isElement:je,isRTL:r1};function Ja(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function i1(e,t){let n=null,r;const o=Ue(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const u=e.getBoundingClientRect(),{left:d,top:p,width:m,height:g}=u;if(a||t(),!m||!g)return;const w=Ar(p),f=Ar(o.clientWidth-(d+m)),v=Ar(o.clientHeight-(p+g)),_=Ar(d),S={rootMargin:-w+"px "+-f+"px "+-v+"px "+-_+"px",threshold:Ee(0,dt(1,l))||1};let E=!0;function T(P){const A=P[0].intersectionRatio;if(A!==l){if(!E)return s();A?s(!1,A):r=setTimeout(()=>{s(!1,1e-7)},1e3)}A===1&&!Ja(u,e.getBoundingClientRect())&&s(),E=!1}try{n=new IntersectionObserver(T,{...S,root:o.ownerDocument})}catch{n=new IntersectionObserver(T,S)}n.observe(e)}return s(!0),i}function s1(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=ai(e),d=o||i?[...u?Dn(u):[],...Dn(t)]:[];d.forEach(_=>{o&&_.addEventListener("scroll",n,{passive:!0}),i&&_.addEventListener("resize",n)});const p=u&&a?i1(u,n):null;let m=-1,g=null;s&&(g=new ResizeObserver(_=>{let[C]=_;C&&C.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var S;(S=g)==null||S.observe(t)})),n()}),u&&!l&&g.observe(u),g.observe(t));let w,f=l?kt(e):null;l&&v();function v(){const _=kt(e);f&&!Ja(f,_)&&n(),f=_,w=requestAnimationFrame(v)}return n(),()=>{var _;d.forEach(C=>{o&&C.removeEventListener("scroll",n),i&&C.removeEventListener("resize",n)}),p==null||p(),(_=g)==null||_.disconnect(),g=null,l&&cancelAnimationFrame(w)}}const a1=kh,l1=jh,c1=Ah,u1=Dh,d1=Ph,el=Rh,f1=Lh,p1=(e,t,n)=>{const r=new Map,o={platform:o1,...n},i={...o.platform,_c:r};return Th(e,t,{...o,platform:i})};var h1=typeof document<"u",m1=function(){},Ir=h1?Zi:m1;function Nr(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(!Nr(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 i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Nr(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function tl(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function nl(e,t){const n=tl(e);return Math.round(t*n)/n}function ci(e){const t=h.useRef(e);return Ir(()=>{t.current=e}),t}function g1(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[d,p]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,g]=h.useState(r);Nr(m,r)||g(r);const[w,f]=h.useState(null),[v,_]=h.useState(null),C=h.useCallback(B=>{B!==P.current&&(P.current=B,f(B))},[]),S=h.useCallback(B=>{B!==A.current&&(A.current=B,_(B))},[]),E=i||w,T=s||v,P=h.useRef(null),A=h.useRef(null),M=h.useRef(d),I=l!=null,D=ci(l),q=ci(o),Z=ci(u),V=h.useCallback(()=>{if(!P.current||!A.current)return;const B={placement:t,strategy:n,middleware:m};q.current&&(B.platform=q.current),p1(P.current,A.current,B).then(ce=>{const Te={...ce,isPositioned:Z.current!==!1};Y.current&&!Nr(M.current,Te)&&(M.current=Te,po.flushSync(()=>{p(Te)}))})},[m,t,n,q,Z]);Ir(()=>{u===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,p(B=>({...B,isPositioned:!1})))},[u]);const Y=h.useRef(!1);Ir(()=>(Y.current=!0,()=>{Y.current=!1}),[]),Ir(()=>{if(E&&(P.current=E),T&&(A.current=T),E&&T){if(D.current)return D.current(E,T,V);V()}},[E,T,V,D,I]);const le=h.useMemo(()=>({reference:P,floating:A,setReference:C,setFloating:S}),[C,S]),ne=h.useMemo(()=>({reference:E,floating:T}),[E,T]),re=h.useMemo(()=>{const B={position:n,left:0,top:0};if(!ne.floating)return B;const ce=nl(ne.floating,d.x),Te=nl(ne.floating,d.y);return a?{...B,transform:"translate("+ce+"px, "+Te+"px)",...tl(ne.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ce,top:Te}},[n,a,ne.floating,d.x,d.y]);return h.useMemo(()=>({...d,update:V,refs:le,elements:ne,floatingStyles:re}),[d,V,le,ne,re])}const v1=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?el({element:r.current,padding:o}).fn(n):{}:r?el({element:r,padding:o}).fn(n):{}}}},y1=(e,t)=>({...a1(e),options:[e,t]}),b1=(e,t)=>({...l1(e),options:[e,t]}),w1=(e,t)=>({...f1(e),options:[e,t]}),_1=(e,t)=>({...c1(e),options:[e,t]}),C1=(e,t)=>({...u1(e),options:[e,t]}),x1=(e,t)=>({...d1(e),options:[e,t]}),E1=(e,t)=>({...v1(e),options:[e,t]});var S1="Arrow",rl=h.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return c.jsx(ye.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});rl.displayName=S1;var T1=rl;function R1(e){const[t,n]=h.useState(void 0);return ut(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;s=u.inlineSize,a=u.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var ui="Popper",[ol,il]=Ko(ui),[A1,sl]=ol(ui),al=e=>{const{__scopePopper:t,children:n}=e,[r,o]=h.useState(null);return c.jsx(A1,{scope:t,anchor:r,onAnchorChange:o,children:n})};al.displayName=ui;var ll="PopperAnchor",cl=h.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=sl(ll,n),s=h.useRef(null),a=ke(t,s),l=h.useRef(null);return h.useEffect(()=>{const u=l.current;l.current=(r==null?void 0:r.current)||s.current,u!==l.current&&i.onAnchorChange(l.current)}),r?null:c.jsx(ye.div,{...o,ref:a})});cl.displayName=ll;var di="PopperContent",[P1,O1]=ol(di),ul=h.forwardRef((e,t)=>{var _n,zt,Cn,Ht,oo,Hn;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:p="partial",hideWhenDetached:m=!1,updatePositionStrategy:g="optimized",onPlaced:w,...f}=e,v=sl(di,n),[_,C]=h.useState(null),S=ke(t,Vt=>C(Vt)),[E,T]=h.useState(null),P=R1(E),A=(P==null?void 0:P.width)??0,M=(P==null?void 0:P.height)??0,I=r+(i!=="center"?"-"+i:""),D=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},q=Array.isArray(u)?u:[u],Z=q.length>0,V={padding:D,boundary:q.filter(j1),altBoundary:Z},{refs:Y,floatingStyles:le,placement:ne,isPositioned:re,middlewareData:B}=g1({strategy:"fixed",placement:I,whileElementsMounted:(...Vt)=>s1(...Vt,{animationFrame:g==="always"}),elements:{reference:v.anchor},middleware:[y1({mainAxis:o+M,alignmentAxis:s}),l&&b1({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?w1():void 0,...V}),l&&_1({...V}),C1({...V,apply:({elements:Vt,rects:io,availableWidth:xn,availableHeight:Gt})=>{const{width:so,height:ao}=io.reference,rt=Vt.floating.style;rt.setProperty("--radix-popper-available-width",`${xn}px`),rt.setProperty("--radix-popper-available-height",`${Gt}px`),rt.setProperty("--radix-popper-anchor-width",`${so}px`),rt.setProperty("--radix-popper-anchor-height",`${ao}px`)}}),E&&E1({element:E,padding:a}),L1({arrowWidth:A,arrowHeight:M}),m&&x1({strategy:"referenceHidden",...V})]}),[ce,Te]=pl(ne),Wt=Kt(w);ut(()=>{re&&(Wt==null||Wt())},[re,Wt]);const no=(_n=B.arrow)==null?void 0:_n.x,ro=(zt=B.arrow)==null?void 0:zt.y,Di=((Cn=B.arrow)==null?void 0:Cn.centerOffset)!==0,[Ii,zn]=h.useState();return ut(()=>{_&&zn(window.getComputedStyle(_).zIndex)},[_]),c.jsx("div",{ref:Y.setFloating,"data-radix-popper-content-wrapper":"",style:{...le,transform:re?le.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ii,"--radix-popper-transform-origin":[(Ht=B.transformOrigin)==null?void 0:Ht.x,(oo=B.transformOrigin)==null?void 0:oo.y].join(" "),...((Hn=B.hide)==null?void 0:Hn.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(P1,{scope:n,placedSide:ce,onArrowChange:T,arrowX:no,arrowY:ro,shouldHideArrow:Di,children:c.jsx(ye.div,{"data-side":ce,"data-align":Te,...f,ref:S,style:{...f.style,animation:re?void 0:"none"}})})})});ul.displayName=di;var dl="PopperArrow",k1={top:"bottom",right:"left",bottom:"top",left:"right"},fl=h.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=O1(dl,r),s=k1[i.placedSide];return c.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:c.jsx(T1,{...o,ref:n,style:{...o.style,display:"block"}})})});fl.displayName=dl;function j1(e){return e!==null}var L1=e=>({name:"transformOrigin",options:e,fn(t){var v,_,C;const{placement:n,rects:r,middlewareData:o}=t,s=((v=o.arrow)==null?void 0:v.centerOffset)!==0,a=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[u,d]=pl(n),p={start:"0%",center:"50%",end:"100%"}[d],m=(((_=o.arrow)==null?void 0:_.x)??0)+a/2,g=(((C=o.arrow)==null?void 0:C.y)??0)+l/2;let w="",f="";return u==="bottom"?(w=s?p:`${m}px`,f=`${-l}px`):u==="top"?(w=s?p:`${m}px`,f=`${r.floating.height+l}px`):u==="right"?(w=`${-l}px`,f=s?p:`${g}px`):u==="left"&&(w=`${r.floating.width+l}px`,f=s?p:`${g}px`),{data:{x:w,y:f}}}});function pl(e){const[t,n="center"]=e.split("-");return[t,n]}var D1=al,I1=cl,N1=ul,M1=fl,$1="Portal",fi=h.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,i]=h.useState(!1);ut(()=>i(!0),[]);const s=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?Ji.createPortal(c.jsx(ye.div,{...r,ref:t}),s):null});fi.displayName=$1;function F1(e,t){return h.useReducer((n,r)=>t[n][r]??n,e)}var tn=e=>{const{present:t,children:n}=e,r=B1(t),o=typeof n=="function"?n({present:r.isPresent}):h.Children.only(n),i=ke(r.ref,U1(o));return typeof n=="function"||r.isPresent?h.cloneElement(o,{ref:i}):null};tn.displayName="Presence";function B1(e){const[t,n]=h.useState(),r=h.useRef(null),o=h.useRef(e),i=h.useRef("none"),s=e?"mounted":"unmounted",[a,l]=F1(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const u=Mr(r.current);i.current=a==="mounted"?u:"none"},[a]),ut(()=>{const u=r.current,d=o.current;if(d!==e){const m=i.current,g=Mr(u);e?l("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&m!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),ut(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,p=g=>{const f=Mr(r.current).includes(CSS.escape(g.animationName));if(g.target===t&&f&&(l("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},m=g=>{g.target===t&&(i.current=Mr(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:h.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Mr(e){return(e==null?void 0:e.animationName)||"none"}function U1(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 W1=Symbol("radix.slottable");function z1(e){const t=({children:n})=>c.jsx(c.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=W1,t}var H1=h[" useInsertionEffect ".trim().toString()]||ut;function hl({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=V1({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:o;{const d=h.useRef(e!==void 0);h.useEffect(()=>{const p=d.current;p!==a&&console.warn(`${r} is changing from ${p?"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.`),d.current=a},[a,r])}const u=h.useCallback(d=>{var p;if(a){const m=G1(d)?d(e):d;m!==e&&((p=s.current)==null||p.call(s,m))}else i(d)},[a,e,i,s]);return[l,u]}function V1({defaultProp:e,onChange:t}){const[n,r]=h.useState(e),o=h.useRef(n),i=h.useRef(t);return H1(()=>{i.current=t},[t]),h.useEffect(()=>{var s;o.current!==n&&((s=i.current)==null||s.call(i,n),o.current=n)},[n,o]),[n,r,i]}function G1(e){return typeof e=="function"}var q1=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"}),Q1="VisuallyHidden",ml=h.forwardRef((e,t)=>c.jsx(ye.span,{...e,ref:t,style:{...q1,...e.style}}));ml.displayName=Q1;var Y1=ml,[$r]=Ko("Tooltip",[il]),Fr=il(),gl="TooltipProvider",K1=700,pi="tooltip.open",[Z1,hi]=$r(gl),vl=e=>{const{__scopeTooltip:t,delayDuration:n=K1,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,s=h.useRef(!0),a=h.useRef(!1),l=h.useRef(0);return h.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),c.jsx(Z1,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:h.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:h.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:h.useCallback(u=>{a.current=u},[]),disableHoverableContent:o,children:i})};vl.displayName=gl;var In="Tooltip",[X1,Nn]=$r(In),yl=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:i,disableHoverableContent:s,delayDuration:a}=e,l=hi(In,e.__scopeTooltip),u=Fr(t),[d,p]=h.useState(null),m=Tr(),g=h.useRef(0),w=s??l.disableHoverableContent,f=a??l.delayDuration,v=h.useRef(!1),[_,C]=hl({prop:r,defaultProp:o??!1,onChange:A=>{A?(l.onOpen(),document.dispatchEvent(new CustomEvent(pi))):l.onClose(),i==null||i(A)},caller:In}),S=h.useMemo(()=>_?v.current?"delayed-open":"instant-open":"closed",[_]),E=h.useCallback(()=>{window.clearTimeout(g.current),g.current=0,v.current=!1,C(!0)},[C]),T=h.useCallback(()=>{window.clearTimeout(g.current),g.current=0,C(!1)},[C]),P=h.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{v.current=!0,C(!0),g.current=0},f)},[f,C]);return h.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),c.jsx(D1,{...u,children:c.jsx(X1,{scope:t,contentId:m,open:_,stateAttribute:S,trigger:d,onTriggerChange:p,onTriggerEnter:h.useCallback(()=>{l.isOpenDelayedRef.current?P():E()},[l.isOpenDelayedRef,P,E]),onTriggerLeave:h.useCallback(()=>{w?T():(window.clearTimeout(g.current),g.current=0)},[T,w]),onOpen:E,onClose:T,disableHoverableContent:w,children:n})})};yl.displayName=In;var mi="TooltipTrigger",bl=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Nn(mi,n),i=hi(mi,n),s=Fr(n),a=h.useRef(null),l=ke(t,a,o.onTriggerChange),u=h.useRef(!1),d=h.useRef(!1),p=h.useCallback(()=>u.current=!1,[]);return h.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),c.jsx(I1,{asChild:!0,...s,children:c.jsx(ye.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:ve(e.onPointerMove,m=>{m.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:ve(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:ve(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:ve(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:ve(e.onBlur,o.onClose),onClick:ve(e.onClick,o.onClose)})})});bl.displayName=mi;var gi="TooltipPortal",[J1,em]=$r(gi,{forceMount:void 0}),wl=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,i=Nn(gi,t);return c.jsx(J1,{scope:t,forceMount:n,children:c.jsx(tn,{present:n||i.open,children:c.jsx(fi,{asChild:!0,container:o,children:r})})})};wl.displayName=gi;var nn="TooltipContent",_l=h.forwardRef((e,t)=>{const n=em(nn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=Nn(nn,e.__scopeTooltip);return c.jsx(tn,{present:r||s.open,children:s.disableHoverableContent?c.jsx(Cl,{side:o,...i,ref:t}):c.jsx(tm,{side:o,...i,ref:t})})}),tm=h.forwardRef((e,t)=>{const n=Nn(nn,e.__scopeTooltip),r=hi(nn,e.__scopeTooltip),o=h.useRef(null),i=ke(t,o),[s,a]=h.useState(null),{trigger:l,onClose:u}=n,d=o.current,{onPointerInTransitChange:p}=r,m=h.useCallback(()=>{a(null),p(!1)},[p]),g=h.useCallback((w,f)=>{const v=w.currentTarget,_={x:w.clientX,y:w.clientY},C=im(_,v.getBoundingClientRect()),S=sm(_,C),E=am(f.getBoundingClientRect()),T=cm([...S,...E]);a(T),p(!0)},[p]);return h.useEffect(()=>()=>m(),[m]),h.useEffect(()=>{if(l&&d){const w=v=>g(v,d),f=v=>g(v,l);return l.addEventListener("pointerleave",w),d.addEventListener("pointerleave",f),()=>{l.removeEventListener("pointerleave",w),d.removeEventListener("pointerleave",f)}}},[l,d,g,m]),h.useEffect(()=>{if(s){const w=f=>{const v=f.target,_={x:f.clientX,y:f.clientY},C=(l==null?void 0:l.contains(v))||(d==null?void 0:d.contains(v)),S=!lm(_,s);C?m():S&&(m(),u())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[l,d,s,u,m]),c.jsx(Cl,{...e,ref:i})}),[nm,rm]=$r(In,{isInside:!1}),om=z1("TooltipContent"),Cl=h.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...a}=e,l=Nn(nn,n),u=Fr(n),{onClose:d}=l;return h.useEffect(()=>(document.addEventListener(pi,d),()=>document.removeEventListener(pi,d)),[d]),h.useEffect(()=>{if(l.trigger){const p=m=>{const g=m.target;g!=null&&g.contains(l.trigger)&&d()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[l.trigger,d]),c.jsx(Xo,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:p=>p.preventDefault(),onDismiss:d,children:c.jsxs(N1,{"data-state":l.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:[c.jsx(om,{children:r}),c.jsx(nm,{scope:n,isInside:!0,children:c.jsx(Y1,{id:l.contentId,role:"tooltip",children:o||r})})]})})});_l.displayName=nn;var xl="TooltipArrow",El=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Fr(n);return rm(xl,n).isInside?null:c.jsx(M1,{...o,...r,ref:t})});El.displayName=xl;function im(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function sm(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 am(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 lm(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const a=t[i],l=t[s],u=a.x,d=a.y,p=l.x,m=l.y;d>r!=m>r&&n<(p-u)*(r-d)/(m-d)+u&&(o=!o)}return o}function cm(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),um(t)}function um(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 i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.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 i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.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 dm=vl,fm=yl,pm=bl,hm=wl,mm=_l,gm=El;const Sl={tooltip:"tooltip__nUuSh",tooltipArrow:"tooltipArrow__W2w-f"},Br=x("Tooltip",({children:e,open:t,displayName:n,tooltipContent:r,className:o,disabled:i,delayDuration:s=300,side:a="right",sideOffset:l=0})=>{const[u,d]=$(!1),p=t!==void 0,g=i?!1:p?t:u,w=f=>{i||p||d(f)};return c.jsx(dm,{delayDuration:s,children:c.jsxs(fm,{open:g,onOpenChange:w,children:[c.jsx(pm,{asChild:!0,children:e}),c.jsx(hm,{children:c.jsxs(mm,{className:j(Sl.tooltip,o),side:a,sideOffset:l,children:[n,r,c.jsx(gm,{className:Sl.tooltipArrow})]})})]})})});Br.displayName="Tooltip";const Tl={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"},vm=x("Spinner",({className:e,color:t="white",size:n=80,thickness:r})=>{const o=j(Tl.spinner,Tl[`spinner-${t}`],e),i=r??Math.max(n/12,2);return c.jsx("span",{style:{width:n,height:n,borderWidth:i},className:o})});vm.displayName="Spinner";const Ur={switch:"switch__0b2av",disabled:"disabled__KpauE",checked:"checked__2-JV-",thumb:"thumb__fEuKD"},ym=x("Switch",W(({checked:e,defaultChecked:t=!1,onCheckedChange:n,disabled:r=!1,id:o,className:i,name:s,"aria-label":a,"aria-labelledby":l,"aria-describedby":u,...d},p)=>{const[m,g]=Gn.useState(t),w=e!==void 0,f=w?!!e:m,v=()=>{if(r)return;const C=!f;w||g(C),n==null||n(C)},_=C=>{(C.key===" "||C.key==="Enter")&&(C.preventDefault(),v())};return c.jsx("button",{ref:p,type:"button",role:"switch","aria-checked":f,"aria-label":a,"aria-labelledby":l,"aria-describedby":u,disabled:r,id:o,name:s,className:j(Ur.switch,{[Ur.checked]:f,[Ur.disabled]:r}),onClick:v,onKeyDown:_,...d,children:c.jsx("span",{className:Ur.thumb,"aria-hidden":"true"})})}));ym.displayName="Switch";const ze={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"},Rl=qn(null),vi=()=>{const e=Qn(Rl);if(!e)throw new Error("Tabs components must be used within a Tabs provider");return e},v0=x("Tabs",({defaultValue:e,value:t,onValueChange:n,orientation:r="horizontal",className:o="",children:i})=>{const[s,a]=$(e||""),l=t!==void 0,u=l?t:s,d=p=>{l||a(p),n==null||n(p)};return c.jsx(Rl.Provider,{value:{value:u,onValueChange:d,orientation:r},children:c.jsx("div",{className:j(ze.tabsRoot,o),children:i})})}),y0=x("TabsList",({className:e="",children:t})=>{const{orientation:n}=vi(),r=fo(null),o=i=>{var u;const s=(u=r.current)==null?void 0:u.querySelectorAll('[role="tab"]:not([disabled])');if(!s)return;const a=Array.from(s).findIndex(d=>d===document.activeElement);let l=a;switch(i.key){case"ArrowLeft":n==="horizontal"&&(i.preventDefault(),l=a>0?a-1:s.length-1);break;case"ArrowRight":n==="horizontal"&&(i.preventDefault(),l=a<s.length-1?a+1:0);break;case"ArrowUp":n==="vertical"&&(i.preventDefault(),l=a>0?a-1:s.length-1);break;case"ArrowDown":n==="vertical"&&(i.preventDefault(),l=a<s.length-1?a+1:0);break;case"Home":i.preventDefault(),l=0;break;case"End":i.preventDefault(),l=s.length-1;break}if(l!==a){const d=s[l];d.focus(),d.click()}};return c.jsx("div",{ref:r,role:"tablist","aria-orientation":n,onKeyDown:o,className:j(ze.tabsList,n==="horizontal"?ze.tabsListHorizontal:ze.tabsListVertical,e),children:t})}),b0=x("TabsTrigger",({value:e,disabled:t=!1,className:n="",children:r})=>{const{value:o,onValueChange:i,orientation:s}=vi(),a=o===e,l=()=>{t||i(e)};return c.jsx("button",{role:"tab","aria-selected":a,"aria-controls":`content-${e}`,tabIndex:a?0:-1,disabled:t,onClick:l,className:j(ze.tabsTrigger,s==="horizontal"?ze.tabsTriggerHorizontal:ze.tabsTriggerVertical,a&&ze.tabsTriggerActive,t&&ze.tabsTriggerDisabled,n),children:r})}),w0=x("TabsContent",({value:e,className:t="",children:n})=>{const{value:r}=vi();return r===e?c.jsx("div",{role:"tabpanel",id:`content-${e}`,"aria-labelledby":`trigger-${e}`,tabIndex:0,className:j(ze.tabsContent,t),children:n}):null}),bm=x("EyeIcon",({className:e,state:t="open",onClick:n})=>t==="open"?c.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:[c.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"}),c.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"})]}):c.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:c.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"})})),Al={PasswordInput:"PasswordInput__GDJDN",eyeIcon:"eyeIcon__kDExG"},x0=x("PasswordInput",W((e,t)=>{const[n,r]=$("password"),o=se(()=>{r(i=>i==="password"?"text":"password")},[r]);return c.jsxs("div",{className:j(Al.PasswordInput,e.className),children:[c.jsx(Go,{type:n,...e,ref:t}),c.jsx(bm,{className:Al.eyeIcon,onClick:o,state:n==="password"?"open":"closed"})]})}));var yi="focusScope.autoFocusOnMount",bi="focusScope.autoFocusOnUnmount",Pl={bubbles:!1,cancelable:!0},wm="FocusScope",Ol=h.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,l]=h.useState(null),u=Kt(o),d=Kt(i),p=h.useRef(null),m=ke(t,f=>l(f)),g=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(r){let f=function(S){if(g.paused||!a)return;const E=S.target;a.contains(E)?p.current=E:pt(p.current,{select:!0})},v=function(S){if(g.paused||!a)return;const E=S.relatedTarget;E!==null&&(a.contains(E)||pt(p.current,{select:!0}))},_=function(S){if(document.activeElement===document.body)for(const T of S)T.removedNodes.length>0&&pt(a)};document.addEventListener("focusin",f),document.addEventListener("focusout",v);const C=new MutationObserver(_);return a&&C.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",v),C.disconnect()}}},[r,a,g.paused]),h.useEffect(()=>{if(a){Ll.add(g);const f=document.activeElement;if(!a.contains(f)){const _=new CustomEvent(yi,Pl);a.addEventListener(yi,u),a.dispatchEvent(_),_.defaultPrevented||(_m(Tm(kl(a)),{select:!0}),document.activeElement===f&&pt(a))}return()=>{a.removeEventListener(yi,u),setTimeout(()=>{const _=new CustomEvent(bi,Pl);a.addEventListener(bi,d),a.dispatchEvent(_),_.defaultPrevented||pt(f??document.body,{select:!0}),a.removeEventListener(bi,d),Ll.remove(g)},0)}}},[a,u,d,g]);const w=h.useCallback(f=>{if(!n&&!r||g.paused)return;const v=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,_=document.activeElement;if(v&&_){const C=f.currentTarget,[S,E]=Cm(C);S&&E?!f.shiftKey&&_===E?(f.preventDefault(),n&&pt(S,{select:!0})):f.shiftKey&&_===S&&(f.preventDefault(),n&&pt(E,{select:!0})):_===C&&f.preventDefault()}},[n,r,g.paused]);return c.jsx(ye.div,{tabIndex:-1,...s,ref:m,onKeyDown:w})});Ol.displayName=wm;function _m(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(pt(r,{select:t}),document.activeElement!==n)return}function Cm(e){const t=kl(e),n=jl(t,e),r=jl(t.reverse(),e);return[n,r]}function kl(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 jl(e,t){for(const n of e)if(!xm(n,{upTo:t}))return n}function xm(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 Em(e){return e instanceof HTMLInputElement&&"select"in e}function pt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Em(e)&&t&&e.select()}}var Ll=Sm();function Sm(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Dl(e,t),e.unshift(t)},remove(t){var n;e=Dl(e,t),(n=e[0])==null||n.resume()}}}function Dl(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Tm(e){return e.filter(t=>t.tagName!=="A")}var wi=0;function Rm(){h.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Il()),document.body.insertAdjacentElement("beforeend",e[1]??Il()),wi++,()=>{wi===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),wi--}},[])}function Il(){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 Wr="right-scroll-bar-position",zr="width-before-scroll-bar",Am="with-scroll-bars-hidden",Pm="--removed-body-scroll-bar-size";function _i(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Om(e,t){var n=$(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 km=typeof window<"u"?h.useLayoutEffect:h.useEffect,Nl=new WeakMap;function jm(e,t){var n=Om(null,function(r){return e.forEach(function(o){return _i(o,r)})});return km(function(){var r=Nl.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(a){i.has(a)||_i(a,null)}),i.forEach(function(a){o.has(a)||_i(a,s)})}Nl.set(n,e)},[e]),n}function Lm(e){return e}function Dm(e,t){t===void 0&&(t=Lm);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(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var l=function(){var d=s;s=[],d.forEach(i)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(d){s.push(d),u()},filter:function(d){return s=s.filter(d),n}}}};return o}function Im(e){e===void 0&&(e={});var t=Dm(null);return t.options=$e({async:!0,ssr:!1},e),t}var Ml=function(e){var t=e.sideCar,n=vs(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 h.createElement(r,$e({},n))};Ml.isSideCarExport=!0;function Nm(e,t){return e.useMedium(t),Ml}var $l=Im(),Ci=function(){},Hr=h.forwardRef(function(e,t){var n=h.useRef(null),r=h.useState({onScrollCapture:Ci,onWheelCapture:Ci,onTouchMoveCapture:Ci}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,p=e.shards,m=e.sideCar,g=e.noRelative,w=e.noIsolation,f=e.inert,v=e.allowPinchZoom,_=e.as,C=_===void 0?"div":_,S=e.gapMode,E=vs(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),T=m,P=jm([n,t]),A=$e($e({},E),o);return h.createElement(h.Fragment,null,d&&h.createElement(T,{sideCar:$l,removeScrollBar:u,shards:p,noRelative:g,noIsolation:w,inert:f,setCallbacks:i,allowPinchZoom:!!v,lockRef:n,gapMode:S}),s?h.cloneElement(h.Children.only(a),$e($e({},A),{ref:P})):h.createElement(C,$e({},A,{className:l,ref:P}),a))});Hr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Hr.classNames={fullWidth:zr,zeroRight:Wr};var Mm=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function $m(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Mm();return t&&e.setAttribute("nonce",t),e}function Fm(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Bm(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Um=function(){var e=0,t=null;return{add:function(n){e==0&&(t=$m())&&(Fm(t,n),Bm(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Wm=function(){var e=Um();return function(t,n){h.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Fl=function(){var e=Wm(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},zm={left:0,top:0,right:0,gap:0},xi=function(e){return parseInt(e||"",10)||0},Hm=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[xi(n),xi(r),xi(o)]},Vm=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return zm;var t=Hm(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])}},Gm=Fl(),rn="data-scroll-locked",qm=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
210
- .`.concat(Am,` {
209
+ `,jr=16,hp=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:o,containerStyle:i,containerClassName:s})=>{let{toasts:a,handlers:l}=Wf(n);return d.createElement("div",{style:{position:"fixed",zIndex:9999,top:jr,left:jr,right:jr,bottom:jr,pointerEvents:"none",...i},className:s,onMouseEnter:l.startPause,onMouseLeave:l.endPause},a.map(u=>{let p=u.position||t,h=l.calculateOffset(u,{reverseOrder:e,gutter:r,defaultPosition:t}),m=fp(p,h);return d.createElement(dp,{id:u.id,key:u.id,onHeightUpdate:l.updateHeight,className:u.visible?pp:"",style:m},u.type==="custom"?Pr(u.message,u):o?o(u):d.createElement(up,{toast:u,position:p}))}))},na=ke;const ra=E("useNotifications",()=>({notify:ve((t,n,r)=>{const o={style:{background:"var(--platform-background-primary-color)",color:"var(--platform-text-primary-color)"}};n==="warning"||n==="info"?na(t,{...o,icon:n==="warning"?"⚠️":"ℹ️"}):na[n](t,o),r&&console.error(r)},[])}));var gn=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(){}},Qt=typeof window>"u"||"Deno"in globalThis;function Ce(){}function mp(e,t){return typeof e=="function"?e(t):e}function qo(e){return typeof e=="number"&&e>=0&&e!==1/0}function oa(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Tt(e,t){return typeof e=="function"?e(t):e}function We(e,t){return typeof e=="function"?e(t):e}function ia(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==Ko(s,t.options))return!1}else if(!Yn(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||i&&!i(t))}function sa(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Yt(t.options.mutationKey)!==Yt(i))return!1}else if(!Yn(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Ko(e,t){return((t==null?void 0:t.queryKeyHashFn)||Yt)(e)}function Yt(e){return JSON.stringify(e,(t,n)=>Yo(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 Qo(e,t){if(e===t)return e;const n=aa(e)&&aa(t);if(n||Yo(e)&&Yo(t)){const r=n?e:Object.keys(e),o=r.length,i=n?t:Object.keys(t),s=i.length,a=n?[]:{};let l=0;for(let u=0;u<s;u++){const p=n?u:i[u];(!n&&r.includes(p)||n)&&e[p]===void 0&&t[p]===void 0?(a[p]=void 0,l++):(a[p]=Qo(e[p],t[p]),a[p]===e[p]&&e[p]!==void 0&&l++)}return o===s&&l===o?e:a}return t}function kr(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 aa(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Yo(e){if(!la(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!la(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function la(e){return Object.prototype.toString.call(e)==="[object Object]"}function gp(e){return new Promise(t=>{setTimeout(t,e)})}function Zo(e,t,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(e,t);if(n.structuralSharing!==!1){try{return Qo(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 Qo(e,t)}return t}function vp(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function yp(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Lr=Symbol();function ca(e,t){return e.queryFn===Lr&&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===Lr?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function ua(e,t){return typeof e=="function"?e(...t):!!e}var bp=(qu=class extends gn{constructor(){super();N(this,an);N(this,jt);N(this,On);O(this,On,t=>{if(!Qt&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){_(this,jt)||this.setEventListener(_(this,On))}onUnsubscribe(){var t;this.hasListeners()||((t=_(this,jt))==null||t.call(this),O(this,jt,void 0))}setEventListener(t){var n;O(this,On,t),(n=_(this,jt))==null||n.call(this),O(this,jt,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){_(this,an)!==t&&(O(this,an,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof _(this,an)=="boolean"?_(this,an):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},an=new WeakMap,jt=new WeakMap,On=new WeakMap,qu),Xo=new bp,wp=(Ku=class extends gn{constructor(){super();N(this,In,!0);N(this,kt);N(this,jn);O(this,jn,t=>{if(!Qt&&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(){_(this,kt)||this.setEventListener(_(this,jn))}onUnsubscribe(){var t;this.hasListeners()||((t=_(this,kt))==null||t.call(this),O(this,kt,void 0))}setEventListener(t){var n;O(this,jn,t),(n=_(this,kt))==null||n.call(this),O(this,kt,t(this.setOnline.bind(this)))}setOnline(t){_(this,In)!==t&&(O(this,In,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return _(this,In)}},In=new WeakMap,kt=new WeakMap,jn=new WeakMap,Ku),Dr=new wp;function Jo(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});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 _p(e){return Math.min(1e3*2**e,3e4)}function da(e){return(e??"online")==="online"?Dr.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 ei(e){return e instanceof fa}function pa(e){let t=!1,n=0,r=!1,o;const i=Jo(),s=f=>{var v;r||(m(new fa(f)),(v=e.abort)==null||v.call(e))},a=()=>{t=!0},l=()=>{t=!1},u=()=>Xo.isFocused()&&(e.networkMode==="always"||Dr.isOnline())&&e.canRun(),p=()=>da(e.networkMode)&&e.canRun(),h=f=>{var v;r||(r=!0,(v=e.onSuccess)==null||v.call(e,f),o==null||o(),i.resolve(f))},m=f=>{var v;r||(r=!0,(v=e.onError)==null||v.call(e,f),o==null||o(),i.reject(f))},g=()=>new Promise(f=>{var v;o=y=>{(r||u())&&f(y)},(v=e.onPause)==null||v.call(e)}).then(()=>{var f;o=void 0,r||(f=e.onContinue)==null||f.call(e)}),x=()=>{if(r)return;let f;const v=n===0?e.initialPromise:void 0;try{f=v??e.fn()}catch(y){f=Promise.reject(y)}Promise.resolve(f).then(h).catch(y=>{var P;if(r)return;const w=e.retry??(Qt?0:3),C=e.retryDelay??_p,S=typeof C=="function"?C(n,y):C,T=w===!0||typeof w=="number"&&n<w||typeof w=="function"&&w(n,y);if(t||!T){m(y);return}n++,(P=e.onFail)==null||P.call(e,n,y),gp(S).then(()=>u()?void 0:g()).then(()=>{t?m(y):x()})})};return{promise:i,cancel:s,continue:()=>(o==null||o(),i),cancelRetry:a,continueRetry:l,canStart:p,start:()=>(p()?x():g().then(x),i)}}var xp=e=>setTimeout(e,0);function Cp(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=xp;const i=a=>{t?e.push(a):o(()=>{n(a)})},s=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||s()}return l},batchCalls:a=>(...l)=>{i(()=>{a(...l)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var ye=Cp(),ha=(Qu=class{constructor(){N(this,ln)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),qo(this.gcTime)&&O(this,ln,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Qt?1/0:5*60*1e3))}clearGcTimeout(){_(this,ln)&&(clearTimeout(_(this,ln)),O(this,ln,void 0))}},ln=new WeakMap,Qu),Sp=(Yu=class extends ha{constructor(t){super();N(this,Ke);N(this,kn);N(this,Ln);N(this,Me);N(this,cn);N(this,xe);N(this,lr);N(this,un);O(this,un,!1),O(this,lr,t.defaultOptions),this.setOptions(t.options),this.observers=[],O(this,cn,t.client),O(this,Me,_(this,cn).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,O(this,kn,Ep(this.options)),this.state=t.state??_(this,kn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=_(this,xe))==null?void 0:t.promise}setOptions(t){this.options={..._(this,lr),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&_(this,Me).remove(this)}setData(t,n){const r=Zo(this.state.data,t,this.options);return H(this,Ke,_t).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){H(this,Ke,_t).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=_(this,xe))==null?void 0:r.promise;return(o=_(this,xe))==null||o.cancel(t),n?n.then(Ce).catch(Ce):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(_(this,kn))}isActive(){return this.observers.some(t=>We(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Lr||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Tt(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=_(this,xe))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=_(this,xe))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),_(this,Me).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(_(this,xe)&&(_(this,un)?_(this,xe).cancel({revert:!0}):_(this,xe).cancelRetry()),this.scheduleGc()),_(this,Me).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||H(this,Ke,_t).call(this,{type:"invalidate"})}fetch(t,n){var u,p,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(_(this,xe))return _(this,xe).continueRetry(),_(this,xe).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:()=>(O(this,un,!0),r.signal)})},i=()=>{const m=ca(this.options,n),x=(()=>{const f={client:_(this,cn),queryKey:this.queryKey,meta:this.meta};return o(f),f})();return O(this,un,!1),this.options.persister?this.options.persister(m,x,this):m(x)},a=(()=>{const m={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:_(this,cn),state:this.state,fetchFn:i};return o(m),m})();(u=this.options.behavior)==null||u.onFetch(a,this),O(this,Ln,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((p=a.fetchOptions)==null?void 0:p.meta))&&H(this,Ke,_t).call(this,{type:"fetch",meta:(h=a.fetchOptions)==null?void 0:h.meta});const l=m=>{var g,x,f,v;ei(m)&&m.silent||H(this,Ke,_t).call(this,{type:"error",error:m}),ei(m)||((x=(g=_(this,Me).config).onError)==null||x.call(g,m,this),(v=(f=_(this,Me).config).onSettled)==null||v.call(f,this.state.data,m,this)),this.scheduleGc()};return O(this,xe,pa({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:m=>{var g,x,f,v;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}`),l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(m)}catch(y){l(y);return}(x=(g=_(this,Me).config).onSuccess)==null||x.call(g,m,this),(v=(f=_(this,Me).config).onSettled)==null||v.call(f,m,this.state.error,this),this.scheduleGc()},onError:l,onFail:(m,g)=>{H(this,Ke,_t).call(this,{type:"failed",failureCount:m,error:g})},onPause:()=>{H(this,Ke,_t).call(this,{type:"pause"})},onContinue:()=>{H(this,Ke,_t).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),_(this,xe).start()}},kn=new WeakMap,Ln=new WeakMap,Me=new WeakMap,cn=new WeakMap,xe=new WeakMap,lr=new WeakMap,un=new WeakMap,Ke=new WeakSet,_t=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,...ma(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 ei(o)&&o.revert&&_(this,Ln)?{..._(this,Ln),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),ye.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),_(this,Me).notify({query:this,type:"updated",action:t})})},Yu);function ma(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:da(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Ep(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 Tp=(Zu=class extends gn{constructor(t={}){super();N(this,it);this.config=t,O(this,it,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??Ko(o,n);let s=this.get(i);return s||(s=new Sp({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){_(this,it).has(t.queryHash)||(_(this,it).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=_(this,it).get(t.queryHash);n&&(t.destroy(),n===t&&_(this,it).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ye.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return _(this,it).get(t)}getAll(){return[..._(this,it).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){ye.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){ye.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ye.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},it=new WeakMap,Zu),Rp=(Xu=class extends ha{constructor(t){super();N(this,at);N(this,st);N(this,Ee);N(this,dn);this.mutationId=t.mutationId,O(this,Ee,t.mutationCache),O(this,st,[]),this.state=t.state||ga(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){_(this,st).includes(t)||(_(this,st).push(t),this.clearGcTimeout(),_(this,Ee).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){O(this,st,_(this,st).filter(n=>n!==t)),this.scheduleGc(),_(this,Ee).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){_(this,st).length||(this.state.status==="pending"?this.scheduleGc():_(this,Ee).remove(this))}continue(){var t;return((t=_(this,dn))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,s,a,l,u,p,h,m,g,x,f,v,y,w,C,S,T,P,R,D;const n=()=>{H(this,at,Gt).call(this,{type:"continue"})};O(this,dn,pa({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(k,L)=>{H(this,at,Gt).call(this,{type:"failed",failureCount:k,error:L})},onPause:()=>{H(this,at,Gt).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>_(this,Ee).canRun(this)}));const r=this.state.status==="pending",o=!_(this,dn).canStart();try{if(r)n();else{H(this,at,Gt).call(this,{type:"pending",variables:t,isPaused:o}),await((s=(i=_(this,Ee).config).onMutate)==null?void 0:s.call(i,t,this));const L=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));L!==this.state.context&&H(this,at,Gt).call(this,{type:"pending",context:L,variables:t,isPaused:o})}const k=await _(this,dn).start();return await((p=(u=_(this,Ee).config).onSuccess)==null?void 0:p.call(u,k,t,this.state.context,this)),await((m=(h=this.options).onSuccess)==null?void 0:m.call(h,k,t,this.state.context)),await((x=(g=_(this,Ee).config).onSettled)==null?void 0:x.call(g,k,null,this.state.variables,this.state.context,this)),await((v=(f=this.options).onSettled)==null?void 0:v.call(f,k,null,t,this.state.context)),H(this,at,Gt).call(this,{type:"success",data:k}),k}catch(k){try{throw await((w=(y=_(this,Ee).config).onError)==null?void 0:w.call(y,k,t,this.state.context,this)),await((S=(C=this.options).onError)==null?void 0:S.call(C,k,t,this.state.context)),await((P=(T=_(this,Ee).config).onSettled)==null?void 0:P.call(T,void 0,k,this.state.variables,this.state.context,this)),await((D=(R=this.options).onSettled)==null?void 0:D.call(R,void 0,k,t,this.state.context)),k}finally{H(this,at,Gt).call(this,{type:"error",error:k})}}finally{_(this,Ee).runNext(this)}}},st=new WeakMap,Ee=new WeakMap,dn=new WeakMap,at=new WeakSet,Gt=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),ye.batch(()=>{_(this,st).forEach(r=>{r.onMutationUpdate(t)}),_(this,Ee).notify({mutation:this,type:"updated",action:t})})},Xu);function ga(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Pp=(Ju=class extends gn{constructor(t={}){super();N(this,vt);N(this,Qe);N(this,cr);this.config=t,O(this,vt,new Set),O(this,Qe,new Map),O(this,cr,0)}build(t,n,r){const o=new Rp({mutationCache:this,mutationId:++Ao(this,cr)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){_(this,vt).add(t);const n=Nr(t);if(typeof n=="string"){const r=_(this,Qe).get(n);r?r.push(t):_(this,Qe).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(_(this,vt).delete(t)){const n=Nr(t);if(typeof n=="string"){const r=_(this,Qe).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&_(this,Qe).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Nr(t);if(typeof n=="string"){const r=_(this,Qe).get(n),o=r==null?void 0:r.find(i=>i.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=Nr(t);if(typeof n=="string"){const o=(r=_(this,Qe).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ye.batch(()=>{_(this,vt).forEach(t=>{this.notify({type:"removed",mutation:t})}),_(this,vt).clear(),_(this,Qe).clear()})}getAll(){return Array.from(_(this,vt))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>sa(n,r))}findAll(t={}){return this.getAll().filter(n=>sa(t,n))}notify(t){ye.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return ye.batch(()=>Promise.all(t.map(n=>n.continue().catch(Ce))))}},vt=new WeakMap,Qe=new WeakMap,cr=new WeakMap,Ju);function Nr(e){var t;return(t=e.options.scope)==null?void 0:t.id}function va(e){return{onFetch:(t,n)=>{var p,h,m,g,x;const r=t.options,o=(m=(h=(p=t.fetchOptions)==null?void 0:p.meta)==null?void 0:h.fetchMore)==null?void 0:m.direction,i=((g=t.state.data)==null?void 0:g.pages)||[],s=((x=t.state.data)==null?void 0:x.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let f=!1;const v=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>(t.signal.aborted?f=!0:t.signal.addEventListener("abort",()=>{f=!0}),t.signal)})},y=ca(t.options,t.fetchOptions),w=async(C,S,T)=>{if(f)return Promise.reject();if(S==null&&C.pages.length)return Promise.resolve(C);const R=(()=>{const W={client:t.client,queryKey:t.queryKey,pageParam:S,direction:T?"backward":"forward",meta:t.options.meta};return v(W),W})(),D=await y(R),{maxPages:k}=t.options,L=T?yp:vp;return{pages:L(C.pages,D,k),pageParams:L(C.pageParams,S,k)}};if(o&&i.length){const C=o==="backward",S=C?Ap:ya,T={pages:i,pageParams:s},P=S(r,T);a=await w(T,P,C)}else{const C=e??i.length;do{const S=l===0?s[0]??r.initialPageParam:ya(r,a);if(l>0&&S==null)break;a=await w(a,S),l++}while(l<C)}return a};t.options.persister?t.fetchFn=()=>{var f,v;return(v=(f=t.options).persister)==null?void 0:v.call(f,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function ya(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 Ap(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 Op=(ed=class{constructor(e={}){N(this,pe);N(this,Lt);N(this,Dt);N(this,Dn);N(this,Nn);N(this,Nt);N(this,Mn);N(this,$n);O(this,pe,e.queryCache||new Tp),O(this,Lt,e.mutationCache||new Pp),O(this,Dt,e.defaultOptions||{}),O(this,Dn,new Map),O(this,Nn,new Map),O(this,Nt,0)}mount(){Ao(this,Nt)._++,_(this,Nt)===1&&(O(this,Mn,Xo.subscribe(async e=>{e&&(await this.resumePausedMutations(),_(this,pe).onFocus())})),O(this,$n,Dr.subscribe(async e=>{e&&(await this.resumePausedMutations(),_(this,pe).onOnline())})))}unmount(){var e,t;Ao(this,Nt)._--,_(this,Nt)===0&&((e=_(this,Mn))==null||e.call(this),O(this,Mn,void 0),(t=_(this,$n))==null||t.call(this),O(this,$n,void 0))}isFetching(e){return _(this,pe).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return _(this,Lt).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=_(this,pe).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=_(this,pe).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Tt(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return _(this,pe).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=_(this,pe).get(r.queryHash),i=o==null?void 0:o.state.data,s=mp(t,i);if(s!==void 0)return _(this,pe).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return ye.batch(()=>_(this,pe).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=_(this,pe).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=_(this,pe);ye.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=_(this,pe);return ye.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=ye.batch(()=>_(this,pe).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(Ce).catch(Ce)}invalidateQueries(e,t={}){return ye.batch(()=>(_(this,pe).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=ye.batch(()=>_(this,pe).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(Ce)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Ce)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=_(this,pe).build(this,t);return n.isStaleByTime(Tt(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ce).catch(Ce)}fetchInfiniteQuery(e){return e.behavior=va(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ce).catch(Ce)}ensureInfiniteQueryData(e){return e.behavior=va(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Dr.isOnline()?_(this,Lt).resumePausedMutations():Promise.resolve()}getQueryCache(){return _(this,pe)}getMutationCache(){return _(this,Lt)}getDefaultOptions(){return _(this,Dt)}setDefaultOptions(e){O(this,Dt,e)}setQueryDefaults(e,t){_(this,Dn).set(Yt(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[..._(this,Dn).values()],n={};return t.forEach(r=>{Yn(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){_(this,Nn).set(Yt(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[..._(this,Nn).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={..._(this,Dt).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Ko(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===Lr&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{..._(this,Dt).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){_(this,pe).clear(),_(this,Lt).clear()}},pe=new WeakMap,Lt=new WeakMap,Dt=new WeakMap,Dn=new WeakMap,Nn=new WeakMap,Nt=new WeakMap,Mn=new WeakMap,$n=new WeakMap,ed),Ip=(td=class extends gn{constructor(t,n){super();N(this,te);N(this,Oe);N(this,Q);N(this,ur);N(this,Te);N(this,fn);N(this,Fn);N(this,Mt);N(this,$t);N(this,dr);N(this,Bn);N(this,Un);N(this,pn);N(this,hn);N(this,Ft);N(this,Wn,new Set);this.options=n,O(this,Oe,t),O(this,$t,null),O(this,Mt,Jo()),this.options.experimental_prefetchInRender||_(this,Mt).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&&(_(this,Q).addObserver(this),ba(_(this,Q),this.options)?H(this,te,fr).call(this):this.updateResult(),H(this,te,ps).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ti(_(this,Q),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ti(_(this,Q),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,H(this,te,hs).call(this),H(this,te,ms).call(this),_(this,Q).removeObserver(this)}setOptions(t){const n=this.options,r=_(this,Q);if(this.options=_(this,Oe).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof We(this.options.enabled,_(this,Q))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");H(this,te,gs).call(this),_(this,Q).setOptions(this.options),n._defaulted&&!kr(this.options,n)&&_(this,Oe).getQueryCache().notify({type:"observerOptionsUpdated",query:_(this,Q),observer:this});const o=this.hasListeners();o&&wa(_(this,Q),r,this.options,n)&&H(this,te,fr).call(this),this.updateResult(),o&&(_(this,Q)!==r||We(this.options.enabled,_(this,Q))!==We(n.enabled,_(this,Q))||Tt(this.options.staleTime,_(this,Q))!==Tt(n.staleTime,_(this,Q)))&&H(this,te,us).call(this);const i=H(this,te,ds).call(this);o&&(_(this,Q)!==r||We(this.options.enabled,_(this,Q))!==We(n.enabled,_(this,Q))||i!==_(this,Ft))&&H(this,te,fs).call(this,i)}getOptimisticResult(t){const n=_(this,Oe).getQueryCache().build(_(this,Oe),t),r=this.createResult(n,t);return kp(this,r)&&(O(this,Te,r),O(this,Fn,this.options),O(this,fn,_(this,Q).state)),r}getCurrentResult(){return _(this,Te)}trackResult(t,n){return new Proxy(t,{get:(r,o)=>(this.trackProp(o),n==null||n(o),Reflect.get(r,o))})}trackProp(t){_(this,Wn).add(t)}getCurrentQuery(){return _(this,Q)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=_(this,Oe).defaultQueryOptions(t),r=_(this,Oe).getQueryCache().build(_(this,Oe),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return H(this,te,fr).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),_(this,Te)))}createResult(t,n){var k;const r=_(this,Q),o=this.options,i=_(this,Te),s=_(this,fn),a=_(this,Fn),u=t!==r?t.state:_(this,ur),{state:p}=t;let h={...p},m=!1,g;if(n._optimisticResults){const L=this.hasListeners(),W=!L&&ba(t,n),z=L&&wa(t,r,n,o);(W||z)&&(h={...h,...ma(p.data,t.options)}),n._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:x,errorUpdatedAt:f,status:v}=h;g=h.data;let y=!1;if(n.placeholderData!==void 0&&g===void 0&&v==="pending"){let L;i!=null&&i.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(L=i.data,y=!0):L=typeof n.placeholderData=="function"?n.placeholderData((k=_(this,Un))==null?void 0:k.state.data,_(this,Un)):n.placeholderData,L!==void 0&&(v="success",g=Zo(i==null?void 0:i.data,L,n),m=!0)}if(n.select&&g!==void 0&&!y)if(i&&g===(s==null?void 0:s.data)&&n.select===_(this,dr))g=_(this,Bn);else try{O(this,dr,n.select),g=n.select(g),g=Zo(i==null?void 0:i.data,g,n),O(this,Bn,g),O(this,$t,null)}catch(L){O(this,$t,L)}_(this,$t)&&(x=_(this,$t),g=_(this,Bn),f=Date.now(),v="error");const w=h.fetchStatus==="fetching",C=v==="pending",S=v==="error",T=C&&w,P=g!==void 0,D={status:v,fetchStatus:h.fetchStatus,isPending:C,isSuccess:v==="success",isError:S,isInitialLoading:T,isLoading:T,data:g,dataUpdatedAt:h.dataUpdatedAt,error:x,errorUpdatedAt:f,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&&!C,isLoadingError:S&&!P,isPaused:h.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:S&&P,isStale:ni(t,n),refetch:this.refetch,promise:_(this,Mt)};if(this.options.experimental_prefetchInRender){const L=U=>{D.status==="error"?U.reject(D.error):D.data!==void 0&&U.resolve(D.data)},W=()=>{const U=O(this,Mt,D.promise=Jo());L(U)},z=_(this,Mt);switch(z.status){case"pending":t.queryHash===r.queryHash&&L(z);break;case"fulfilled":(D.status==="error"||D.data!==z.value)&&W();break;case"rejected":(D.status!=="error"||D.error!==z.reason)&&W();break}}return D}updateResult(){const t=_(this,Te),n=this.createResult(_(this,Q),this.options);if(O(this,fn,_(this,Q).state),O(this,Fn,this.options),_(this,fn).data!==void 0&&O(this,Un,_(this,Q)),kr(n,t))return;O(this,Te,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,i=typeof o=="function"?o():o;if(i==="all"||!i&&!_(this,Wn).size)return!0;const s=new Set(i??_(this,Wn));return this.options.throwOnError&&s.add("error"),Object.keys(_(this,Te)).some(a=>{const l=a;return _(this,Te)[l]!==t[l]&&s.has(l)})};H(this,te,gd).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&H(this,te,ps).call(this)}},Oe=new WeakMap,Q=new WeakMap,ur=new WeakMap,Te=new WeakMap,fn=new WeakMap,Fn=new WeakMap,Mt=new WeakMap,$t=new WeakMap,dr=new WeakMap,Bn=new WeakMap,Un=new WeakMap,pn=new WeakMap,hn=new WeakMap,Ft=new WeakMap,Wn=new WeakMap,te=new WeakSet,fr=function(t){H(this,te,gs).call(this);let n=_(this,Q).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Ce)),n},us=function(){H(this,te,hs).call(this);const t=Tt(this.options.staleTime,_(this,Q));if(Qt||_(this,Te).isStale||!qo(t))return;const r=oa(_(this,Te).dataUpdatedAt,t)+1;O(this,pn,setTimeout(()=>{_(this,Te).isStale||this.updateResult()},r))},ds=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(_(this,Q)):this.options.refetchInterval)??!1},fs=function(t){H(this,te,ms).call(this),O(this,Ft,t),!(Qt||We(this.options.enabled,_(this,Q))===!1||!qo(_(this,Ft))||_(this,Ft)===0)&&O(this,hn,setInterval(()=>{(this.options.refetchIntervalInBackground||Xo.isFocused())&&H(this,te,fr).call(this)},_(this,Ft)))},ps=function(){H(this,te,us).call(this),H(this,te,fs).call(this,H(this,te,ds).call(this))},hs=function(){_(this,pn)&&(clearTimeout(_(this,pn)),O(this,pn,void 0))},ms=function(){_(this,hn)&&(clearInterval(_(this,hn)),O(this,hn,void 0))},gs=function(){const t=_(this,Oe).getQueryCache().build(_(this,Oe),this.options);if(t===_(this,Q))return;const n=_(this,Q);O(this,Q,t),O(this,ur,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},gd=function(t){ye.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(_(this,Te))}),_(this,Oe).getQueryCache().notify({query:_(this,Q),type:"observerResultsUpdated"})})},td);function jp(e,t){return We(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function ba(e,t){return jp(e,t)||e.state.data!==void 0&&ti(e,t,t.refetchOnMount)}function ti(e,t,n){if(We(t.enabled,e)!==!1&&Tt(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&ni(e,t)}return!1}function wa(e,t,n,r){return(e!==t||We(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&ni(e,n)}function ni(e,t){return We(t.enabled,e)!==!1&&e.isStaleByTime(Tt(t.staleTime,e))}function kp(e,t){return!kr(e.getCurrentResult(),t)}var Lp=(nd=class extends gn{constructor(n,r){super();N(this,bt);N(this,Bt);N(this,Ut);N(this,Ie);N(this,yt);O(this,Bt,n),this.setOptions(r),this.bindMethods(),H(this,bt,Oo).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=_(this,Bt).defaultMutationOptions(n),kr(this.options,r)||_(this,Bt).getMutationCache().notify({type:"observerOptionsUpdated",mutation:_(this,Ie),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Yt(r.mutationKey)!==Yt(this.options.mutationKey)?this.reset():((o=_(this,Ie))==null?void 0:o.state.status)==="pending"&&_(this,Ie).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=_(this,Ie))==null||n.removeObserver(this)}onMutationUpdate(n){H(this,bt,Oo).call(this),H(this,bt,vs).call(this,n)}getCurrentResult(){return _(this,Ut)}reset(){var n;(n=_(this,Ie))==null||n.removeObserver(this),O(this,Ie,void 0),H(this,bt,Oo).call(this),H(this,bt,vs).call(this)}mutate(n,r){var o;return O(this,yt,r),(o=_(this,Ie))==null||o.removeObserver(this),O(this,Ie,_(this,Bt).getMutationCache().build(_(this,Bt),this.options)),_(this,Ie).addObserver(this),_(this,Ie).execute(n)}},Bt=new WeakMap,Ut=new WeakMap,Ie=new WeakMap,yt=new WeakMap,bt=new WeakSet,Oo=function(){var r;const n=((r=_(this,Ie))==null?void 0:r.state)??ga();O(this,Ut,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},vs=function(n){ye.batch(()=>{var r,o,i,s,a,l,u,p;if(_(this,yt)&&this.hasListeners()){const h=_(this,Ut).variables,m=_(this,Ut).context;(n==null?void 0:n.type)==="success"?((o=(r=_(this,yt)).onSuccess)==null||o.call(r,n.data,h,m),(s=(i=_(this,yt)).onSettled)==null||s.call(i,n.data,null,h,m)):(n==null?void 0:n.type)==="error"&&((l=(a=_(this,yt)).onError)==null||l.call(a,n.error,h,m),(p=(u=_(this,yt)).onSettled)==null||p.call(u,void 0,n.error,h,m))}this.listeners.forEach(h=>{h(_(this,Ut))})})},nd),_a=d.createContext(void 0),ri=e=>{const t=d.useContext(_a);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Dp=({client:e,children:t})=>(d.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),c.jsx(_a.Provider,{value:e,children:t})),xa=d.createContext(!1),Np=()=>d.useContext(xa);xa.Provider;function Mp(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var $p=d.createContext(Mp()),Fp=()=>d.useContext($p),Bp=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Up=e=>{d.useEffect(()=>{e.clearReset()},[e])},Wp=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||ua(n,[e.error,r])),Hp=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))}},Vp=(e,t)=>e.isLoading&&e.isFetching&&!t,zp=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Ca=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Gp(e,t,n){var h,m,g,x,f;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=Np(),o=Fp(),i=ri(),s=i.defaultQueryOptions(e);(m=(h=i.getDefaultOptions().queries)==null?void 0:h._experimental_beforeQuery)==null||m.call(h,s),s.queryFn||console.error(`[${s.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`),s._optimisticResults=r?"isRestoring":"optimistic",Hp(s),Bp(s,o),Up(o);const a=!i.getQueryCache().get(s.queryHash),[l]=d.useState(()=>new t(i,s)),u=l.getOptimisticResult(s),p=!r&&e.subscribed!==!1;if(d.useSyncExternalStore(d.useCallback(v=>{const y=p?l.subscribe(ye.batchCalls(v)):Ce;return l.updateResult(),y},[l,p]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),d.useEffect(()=>{l.setOptions(s)},[s,l]),zp(s,u))throw Ca(s,l,o);if(Wp({result:u,errorResetBoundary:o,throwOnError:s.throwOnError,query:i.getQueryCache().get(s.queryHash),suspense:s.suspense}))throw u.error;if((x=(g=i.getDefaultOptions().queries)==null?void 0:g._experimental_afterQuery)==null||x.call(g,s,u),s.experimental_prefetchInRender&&!Qt&&Vp(u,r)){const v=a?Ca(s,l,o):(f=i.getQueryCache().get(s.queryHash))==null?void 0:f.promise;v==null||v.catch(Ce).finally(()=>{l.updateResult()})}return s.notifyOnChangeProps?u:l.trackResult(u)}function Sa(e,t){return Gp(e,Ip)}function Mr(e,t){const n=ri(),[r]=d.useState(()=>new Lp(n,e));d.useEffect(()=>{r.setOptions(e)},[r,e]);const o=d.useSyncExternalStore(d.useCallback(s=>r.subscribe(ye.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=d.useCallback((s,a)=>{r.mutate(s,a).catch(Ce)},[r]);if(o.error&&ua(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}const $r={STALE_TIME:1e3*60*5,GC_TIME:1e3*60*10,RETRY_COUNT:1,RETRY_DELAY:1e3},Ea={refetchOnWindowFocus:!1,refetchOnReconnect:!1,refetchOnMount:!1,staleTime:$r.STALE_TIME,gcTime:$r.GC_TIME,retry:$r.RETRY_COUNT,retryDelay:$r.RETRY_DELAY,enable:!0},Fr=e=>e instanceof Error?e.message:String(e),qp=E("useResourceActions",(e,t,n)=>{const r=ri(),{notify:o}=ra(),{createFn:i,readFn:s,readByIdFn:a,updateFn:l,deleteFn:u,partialUpdateFn:p}=n,h=()=>{r.invalidateQueries({queryKey:[e]})},m=(S,T,P,R)=>o(R!=null&&R.overrideSuccessMessage?R==null?void 0:R.overrideSuccessMessage(S,T):P,"success"),g=(S,T,P,R)=>o(R!=null&&R.overrideErrorMessage?R==null?void 0:R.overrideErrorMessage(S,T):P,"error");return{useCreate:S=>Mr({mutationFn:T=>i(T),onSuccess:T=>{h(),m(t,T,`${t} created successfully`,S)},onError:T=>{g(t,T,`Error creating ${t}: ${Fr(T)}`,S)}}),useReadQuery:S=>Sa({queryKey:[e],queryFn:s,...Ea,...S}),useReadByIdQuery:(S,T)=>Sa({queryKey:[e,S],queryFn:()=>a(S),...Ea,enabled:!!S,...T}),useUpdate:S=>Mr({mutationFn:({id:T,data:P})=>l(T,P),onSuccess:T=>{h(),m(t,T,`${t} updated successfully`,S)},onError:T=>{g(t,T,`Error updating ${t}: ${Fr(T)}`,S)}}),usePartialUpdate:S=>p&&Mr({mutationFn:({id:T,data:P})=>p(T,P),onSuccess:T=>{h(),m(t,T,`${t} updated successfully`,S)},onError:T=>{g(t,T,`Error updating ${t}: ${Fr(T)}`,S)}}),useDelete:S=>Mr({mutationFn:T=>u(T),onSuccess:()=>{h(),m(t,null,`${t} deleted successfully`,S)},onError:T=>{g(t,T,`Error deleting ${t}: ${Fr(T)}`,S)}}),invalidateQueries:h}}),j0=E("useResource",(e,t)=>qp(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())})),Kp={SINGLE_TENANT:"single-tenant"},Qp={COOKIE:"cookie"},oi="tenant",Ta="tenant",Ra="tenant",Yp=Kp.SINGLE_TENANT,Zp=Qp.COOKIE,Xp={mode:Yp,clientSideMode:Zp,tenantIDPProvisioningStrategy:"none"};class Jp{setTenant(t,n){const r=new URL(window.location.href);r.searchParams.set(Ta,t.name),window.location.href=r.toString()}getCurrentTenantName(){const t=new URL(window.location.href);return new URLSearchParams(t.search).get(Ta)}}class eh{setTenant(t,n){sessionStorage.setItem(Ra,t.name),window.location.reload()}getCurrentTenantName(){return sessionStorage.getItem(Ra)}}/*! js-cookie v3.0.5 | MIT */function Br(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 th={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 ii(e,t){function n(o,i,s){if(!(typeof document>"u")){s=Br({},t,s),typeof s.expires=="number"&&(s.expires=new Date(Date.now()+s.expires*864e5)),s.expires&&(s.expires=s.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var l in s)s[l]&&(a+="; "+l,s[l]!==!0&&(a+="="+s[l].split(";")[0]));return document.cookie=o+"="+e.write(i,o)+a}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var i=document.cookie?document.cookie.split("; "):[],s={},a=0;a<i.length;a++){var l=i[a].split("="),u=l.slice(1).join("=");try{var p=decodeURIComponent(l[0]);if(s[p]=e.read(u,p),o===p)break}catch{}}return o?s[o]:s}}return Object.create({set:n,get:r,remove:function(o,i){n(o,"",Br({},i,{expires:-1}))},withAttributes:function(o){return ii(this.converter,Br({},this.attributes,o))},withConverter:function(o){return ii(Br({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var si=ii(th,{path:"/"});class nh{setTenant(t,n){t?si.set(oi,t.name):si.remove(oi),window.location.reload()}getCurrentTenantName(){return si.get(oi)}}class rh{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(p=>p.patternType==="subdomain"&&p.tenantId===t.id&&p.isActive);if(!r)throw new Error(`No active subdomain pattern found for tenant '${t.name}'`);const o=new URL(window.location.href),i=r.patternValue,s=o.hostname,a=this.getBaseDomain(s),l=i?`${i}.${a}`:a;o.hostname=l,window.location.href=o.toString()}getCurrentTenantName(){const t=window.location.hostname;return this.extractSubdomain(t)||null}}const Pa={queryParams:new Jp,sessionStorage:new eh,cookie:new nh,subdomain:new rh},oh=e=>{const t=Pa[e.clientSideMode];if(!t)throw new Error(`Client side tenant mode '${e.clientSideMode}' is not supported ${JSON.stringify({strategies:Pa},null,2)}`);return t},ih=(e,t,n)=>{const r=t.find(i=>i.name===n);if(!r)throw Error("No tenant permission");return oh(e).setTenant(r,e),r},k0=E("useTenants",()=>{const[e,t]=vr(),{tenants:n=[],currentTenant:r,tenantConfig:o=Xp}=e,i=ve(s=>{const a=ih(o,n,s);t({...e,currentTenant:a})},[o,e]);return{tenants:n,currentTenant:r,tenantConfig:o,selectTenant:i}});function sh(e){if(!e.ok)throw console.error(e),new Error(e.statusText)}async function Ur(e,t,n,r){const o=await e(`/user-states/${encodeURIComponent(t)}/${encodeURIComponent(n)}`,r);return sh(o),o}class Wr{static async get(t,n,r){const i=await Ur(t,n,r,{method:"GET",headers:{"Content-Type":"application/json"}});return i.status===204?null:await i.json()}static async create(t,n,r,o){const i={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({value:o})};return await(await Ur(t,n,r,i)).json()}static async update(t,n,r,o){const i={method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({value:o})};return await(await Ur(t,n,r,i)).json()}static async delete(t,n,r){return await Ur(t,n,r,{method:"DELETE",headers:{"Content-Type":"application/json"}}),null}}const L0=E("useUserState",e=>{const t=Ms("@bluealba/pae-nestjs-gateway-service"),n=Qd();if(!n)throw new Error("You must call the useUserState hook within a PAE application.");const[r,o]=B(null),[i,s]=B(!1),[a,l]=B(!1),[u,p]=B(null),h=(w,C)=>ve(async({newValue:S,shouldThrowError:T}={})=>{try{l(!0),p(null);const P=await w(t,n,e,S);return o(P),P?P.value:null}catch(P){if(p(P==null?void 0:P.message),console.error(`Failed to ${C} ${e}:`,P),T)throw P;return null}finally{l(!1)}},[t,n,e]),m=h(Wr.get,"fetch"),g=h(Wr.create,"create"),x=h(Wr.update,"update"),f=h(Wr.delete,"delete"),v=ve(async()=>{try{await m()}finally{s(!0)}},[m]);ie(()=>{v()},[v]);const y=ve(async(w,C=!1)=>r==null?await g({newValue:w,shouldThrowError:C}):await x({newValue:w,shouldThrowError:C}),[r,g,x]);return{value:r?r.value:null,hasFetched:i,loading:a,error:u,setValue:y,createValue:g,updateValue:x,deleteValue:f}}),Aa="__PAE_EXTENSION_POINT_REACT_CONTENT_EMPTY__",D0=E("ExtendExtensionPoint",({module:e,point:t,children:n})=>(of(e,t,n??Aa),null)),ah=E("ExtensionPoint",({name:e,children:t,...n})=>{const r=rf(e);if(r===Aa)return null;if(!r)return c.jsx(c.Fragment,{children:t??null});if(lh(r)){const o=r;return c.jsx(o,{...n})}else return r}),lh=e=>typeof e=="function",N0=E("extensionPoint",(e,t)=>{const n=r=>(t=t||e.displayName||e.name||"?",c.jsx(ah,{name:t,...r,children:c.jsx(e,{...r})}));return n.displayName=`extensionPoint(${t})`,n}),Oa="single-spa:app-change";function ch(){const[e,t]=B(Ia());return ie(()=>{const n=()=>{t(Ia())};return window.addEventListener(Oa,n),()=>{window.removeEventListener(Oa,n)}},[]),e}function Ia(){return gr.getAppNames().reduce((t,n)=>(gr.getAppStatus(n)?t[n]=gr.getAppStatus(n):t[n]="NOT_LOADED",t),{})}function uh(e){const n=ch()[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"}}const ja=({appName:e})=>c.jsx("div",{children:c.jsxs("p",{children:["Loading ",e,"..."]})});ja.displayName="BaseLoading";const ka=({appName:e})=>c.jsxs("div",{children:[c.jsx("p",{children:"Something went wrong..."}),c.jsxs("p",{children:["Failed to load ",e]})]});ka.displayName="BaseError";const dh={display:"flex",flexDirection:"column",flex:1},La=q((e,t)=>c.jsx("div",{ref:t,style:dh,...e}));La.displayName="BaseContainer";const fh="pae-app:",ph=E("ModulePlaceHolder",q(({appName:e,LoadingComponent:t=ja,ErrorComponent:n=ka,ContainerComponent:r=La,...o},i)=>{const s=uh(e);return c.jsxs(r,{ref:i,...o,id:`${fh}${e}`,children:[s.isLoading&&c.jsx(t,{appName:e}),s.isBroken&&c.jsx(n,{appName:e})]})}));ph.displayName="ModulePlaceHolder";const Da=E("Authorized",({operations:e,children:t,forbiddenContent:n})=>{var o;const{hasAccess:r}=wr();if(!r(...e)){if(!n)return null;if(typeof n=="function")if((o=n==null?void 0:n.prototype)!=null&&o.isReactComponent){const i=n;return c.jsx(i,{operations:e})}else return n({operations:e});return Ue.isValidElement(n)?n:null}return t});Da.displayName="Authorized";const M0=E("PlatformEventListener",({eventName:e,listener:t})=>(sf(e,t),null)),hh=()=>c.jsx("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:c.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"})}),mh=E("ApplicationIcon",({applicationName:e})=>{const t=Fd(e);if(t)if(typeof t=="function"){const n=t;return c.jsx(n,{})}else return t;return c.jsx(hh,{})});mh.displayName="ApplicationIcon";const Na=()=>c.jsx("svg",{width:"28",height:"28",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.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"})});Na.displayName="DarkModeIcon";const Ma=()=>c.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:c.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"})});Ma.displayName="LightModeIcon";const ai={container:"container__zBqbk",expanded:"expanded__EbsIr",label:"label__cdMnm"};function $a(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=$a(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function j(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=$a(e))&&(r&&(r+=" "),r+=t);return r}const gh=e=>e.toLowerCase().trim().split(" ").join("-"),vh=e=>`${gh(e)}-theme`,yh=E("useTheme",()=>{const{platformName:e="Platform"}=Os(),t=vh(e),[n,r]=B(()=>{const i=localStorage.getItem(t);return i==="light"||i==="dark"?i:"light"}),o=i=>{localStorage.setItem(t,i),r(i)};return ie(()=>{document.documentElement.setAttribute("data-theme",n)},[n]),{theme:n,setTheme:o}}),Hr={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"},li=E("Button",q(({variant:e="contained",colorScheme:t="primary",loading:n=!1,IconComponent:r,className:o,children:i,...s},a)=>{const l=j(Hr.button,Hr[`button--${e}-${t}`],o);return c.jsxs("button",{ref:a,className:l,...s,children:[n?c.jsx("div",{className:Hr.spinner}):r&&c.jsx(r,{className:Hr.icon}),i]})}));li.displayName="Button";const Vr={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"},ci={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 ci)Object.freeze(ci[e]);const Fa=Object.freeze(ci);var Ba={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function bh(e){var p,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(),Fa[e])n=Fa[e].slice(),o="rgb";else if(e==="transparent")r=0,o="rgb",n=[0,0,0];else if(e[0]==="#"){var i=e.slice(1),s=i.length,a=s<=4;r=1,a?(n=[parseInt(i[0]+i[0],16),parseInt(i[1]+i[1],16),parseInt(i[2]+i[2],16)],s===4&&(r=parseInt(i[3]+i[3],16)/255)):(n=[parseInt(i[0]+i[1],16),parseInt(i[2]+i[3],16),parseInt(i[4]+i[5],16)],s===8&&(r=parseInt(i[6]+i[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 l=t[1];o=l.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(Ba[m]!==void 0)return Ba[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=(p=e.match(/([a-z])/ig))==null?void 0:p.join(""))==null?void 0:h.toLowerCase())||"rgb");return{space:o,values:n,alpha:r}}const wh=(e,t)=>{const{space:n,values:r}=bh(e);return n[0]==="h"?`${n}a(${r[0]}, ${r[1]}%, ${r[2]}%, ${t})`:`${n}a(${r}, ${t})`},Ua=E("Badge",q(({children:e,color:t,className:n,customColor:r,size:o="small",style:i,...s},a)=>{const l=r?{color:r,background:wh(r,.1)}:{},u=j(Vr.Badge,Vr[`Badge--${o}`],{[Vr[`Badge--${t}`]]:!!t},n);return c.jsx("span",{ref:a,className:u,style:{...i,...l},...s,children:e})}));Ua.displayName="Badge";const Wa=E("Badges",q(({children:e,className:t,...n},r)=>{const o=j(Vr.Badges,t);return c.jsx("div",{ref:r,className:o,...n,children:e})}));Wa.displayName="Badges";const _h=E("ClipboardIcon",({size:e=24,color:t="currentColor",strokeWidth:n=2,className:r,style:o,...i})=>c.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,...i,children:[c.jsx("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"}),c.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"})]})),xh=E("ClipboardCheckIcon",({size:e=24,color:t="currentColor",strokeWidth:n=2,className:r,style:o,...i})=>c.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,...i,children:[c.jsx("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"}),c.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"}),c.jsx("path",{d:"m9 12 2 2 4-4"})]})),Ch={CopyToClipboardButton:"CopyToClipboardButton__2Nd2m"},ub=E("CopyToClipboardButton",({content:e})=>{const[t,n]=Sh(),{notify:r}=ra(),o=t?xh:_h,i=ve(async()=>{await n(e)&&r("Copied to the Clipboard !","success")},[e,r]);return c.jsx(o,{className:Ch.CopyToClipboardButton,size:18,onClick:i})}),Sh=()=>{const[e,t]=B(!1);return[e,async r=>{try{return await navigator.clipboard.writeText(r),t(!0),setTimeout(()=>t(!1),2e3),!0}catch(o){return console.error("Failed to copy text: ",o),!1}}]},Ha={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"},Eh=E("FieldGroup",q(({children:e,className:t,orientation:n="vertical",...r},o)=>{const i=j(Ha.FieldGroup,Ha[`FieldGroup--${n}`],t);return c.jsx("div",{ref:o,className:i,...r,children:e})}));Eh.displayName="FieldGroup";const Va={Input:"Input__uS0sb",Error:"Error__-DQpw"},ui=E("Input",q(({className:e,error:t,...n},r)=>{const o=j(Va.Input,t&&Va.Error,e);return c.jsx("input",{ref:r,className:o,...n})}));ui.displayName="Input";const Th={Error:"Error__N4OP5"},Rh=E("InputError",q(({children:e,className:t,...n},r)=>{const o=j(Th.Error,t);return c.jsx("span",{ref:r,className:o,...n,children:e})}));Rh.displayName="InputError";const za={Label:"Label__VYUvW",Error:"Error__Eu6DI"},Ph=E("Label",q(({children:e,className:t,error:n,...r},o)=>{const i=j(za.Label,n&&za.Error,t);return c.jsx("label",{ref:o,className:i,...r,children:e})}));Ph.displayName="Label";const di={Select:"Select__giqpe",Chevron:"Chevron__YvhBd"},Ga=q(({children:e,className:t,...n},r)=>{const o=j(di.Option,t);return c.jsx("option",{ref:r,className:o,...n,children:e})});Ga.displayName="Option";const qa=E("Select",q(({children:e,className:t,...n},r)=>{const o=j(di.Select,t);return c.jsxs("div",{className:o,children:[c.jsx("select",{ref:r,...n,children:e}),c.jsx("div",{className:di.Chevron,children:c.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M4 6L8 10L12 6",stroke:"#818181",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})})]})}));qa.displayName="Select",qa.Option=Ga;function Ka(e,[t,n]){return Math.min(n,Math.max(t,e))}function X(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 Ah(e,t){const n=d.createContext(t),r=i=>{const{children:s,...a}=i,l=d.useMemo(()=>a,Object.values(a));return c.jsx(n.Provider,{value:l,children:s})};r.displayName=e+"Provider";function o(i){const s=d.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function Zn(e,t=[]){let n=[];function r(i,s){const a=d.createContext(s),l=n.length;n=[...n,s];const u=h=>{var y;const{scope:m,children:g,...x}=h,f=((y=m==null?void 0:m[e])==null?void 0:y[l])||a,v=d.useMemo(()=>x,Object.values(x));return c.jsx(f.Provider,{value:v,children:g})};u.displayName=i+"Provider";function p(h,m){var f;const g=((f=m==null?void 0:m[e])==null?void 0:f[l])||a,x=d.useContext(g);if(x)return x;if(s!==void 0)return s;throw new Error(`\`${h}\` must be used within \`${i}\``)}return[u,p]}const o=()=>{const i=n.map(s=>d.createContext(s));return function(a){const l=(a==null?void 0:a[e])||i;return d.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,Oh(o,...t)]}function Oh(...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(i){const s=r.reduce((a,{useScope:l,scopeName:u})=>{const h=l(i)[`__scope${u}`];return{...a,...h}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function Qa(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function vn(...e){return t=>{let n=!1;const r=e.map(o=>{const i=Qa(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():Qa(e[o],null)}}}}function de(...e){return d.useCallback(vn(...e),e)}function Ya(e){const t=Ih(e),n=d.forwardRef((r,o)=>{const{children:i,...s}=r,a=d.Children.toArray(i),l=a.find(kh);if(l){const u=l.props.children,p=a.map(h=>h===l?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:h);return c.jsx(t,{...s,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,p):null})}return c.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function Ih(e){const t=d.forwardRef((n,r)=>{const{children:o,...i}=n;if(d.isValidElement(o)){const s=Dh(o),a=Lh(i,o.props);return o.type!==d.Fragment&&(a.ref=r?vn(r,s):s),d.cloneElement(o,a)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var jh=Symbol("radix.slottable");function kh(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===jh}function Lh(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const l=i(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Dh(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 Nh(e){const t=e+"CollectionProvider",[n,r]=Zn(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=f=>{const{scope:v,children:y}=f,w=Ue.useRef(null),C=Ue.useRef(new Map).current;return c.jsx(o,{scope:v,itemMap:C,collectionRef:w,children:y})};s.displayName=t;const a=e+"CollectionSlot",l=Ya(a),u=Ue.forwardRef((f,v)=>{const{scope:y,children:w}=f,C=i(a,y),S=de(v,C.collectionRef);return c.jsx(l,{ref:S,children:w})});u.displayName=a;const p=e+"CollectionItemSlot",h="data-radix-collection-item",m=Ya(p),g=Ue.forwardRef((f,v)=>{const{scope:y,children:w,...C}=f,S=Ue.useRef(null),T=de(v,S),P=i(p,y);return Ue.useEffect(()=>(P.itemMap.set(S,{ref:S,...C}),()=>void P.itemMap.delete(S))),c.jsx(m,{[h]:"",ref:T,children:w})});g.displayName=p;function x(f){const v=i(e+"CollectionConsumer",f);return Ue.useCallback(()=>{const w=v.collectionRef.current;if(!w)return[];const C=Array.from(w.querySelectorAll(`[${h}]`));return Array.from(v.itemMap.values()).sort((P,R)=>C.indexOf(P.ref.current)-C.indexOf(R.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:s,Slot:u,ItemSlot:g},x,r]}var Mh=d.createContext(void 0);function $h(e){const t=d.useContext(Mh);return e||t||"ltr"}function Fh(e){const t=Bh(e),n=d.forwardRef((r,o)=>{const{children:i,...s}=r,a=d.Children.toArray(i),l=a.find(Wh);if(l){const u=l.props.children,p=a.map(h=>h===l?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:h);return c.jsx(t,{...s,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,p):null})}return c.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function Bh(e){const t=d.forwardRef((n,r)=>{const{children:o,...i}=n;if(d.isValidElement(o)){const s=Vh(o),a=Hh(i,o.props);return o.type!==d.Fragment&&(a.ref=r?vn(r,s):s),d.cloneElement(o,a)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Uh=Symbol("radix.slottable");function Wh(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Uh}function Hh(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const l=i(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Vh(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 zh=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],le=zh.reduce((e,t)=>{const n=Fh(`Primitive.${t}`),r=d.forwardRef((o,i)=>{const{asChild:s,...a}=o,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(l,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Gh(e,t){e&&zn.flushSync(()=>e.dispatchEvent(t))}function Zt(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 qh(e,t=globalThis==null?void 0:globalThis.document){const n=Zt(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 Kh="DismissableLayer",fi="dismissableLayer.update",Qh="dismissableLayer.pointerDownOutside",Yh="dismissableLayer.focusOutside",Za,Xa=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:i,onInteractOutside:s,onDismiss:a,...l}=e,u=d.useContext(Xa),[p,h]=d.useState(null),m=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=d.useState({}),x=de(t,R=>h(R)),f=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=f.indexOf(v),w=p?f.indexOf(p):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,S=w>=y,T=Jh(R=>{const D=R.target,k=[...u.branches].some(L=>L.contains(D));!S||k||(o==null||o(R),s==null||s(R),R.defaultPrevented||a==null||a())},m),P=e1(R=>{const D=R.target;[...u.branches].some(L=>L.contains(D))||(i==null||i(R),s==null||s(R),R.defaultPrevented||a==null||a())},m);return qh(R=>{w===u.layers.size-1&&(r==null||r(R),!R.defaultPrevented&&a&&(R.preventDefault(),a()))},m),d.useEffect(()=>{if(p)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Za=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(p)),u.layers.add(p),Ja(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Za)}},[p,m,n,u]),d.useEffect(()=>()=>{p&&(u.layers.delete(p),u.layersWithOutsidePointerEventsDisabled.delete(p),Ja())},[p,u]),d.useEffect(()=>{const R=()=>g({});return document.addEventListener(fi,R),()=>document.removeEventListener(fi,R)},[]),c.jsx(le.div,{...l,ref:x,style:{pointerEvents:C?S?"auto":"none":void 0,...e.style},onFocusCapture:X(e.onFocusCapture,P.onFocusCapture),onBlurCapture:X(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:X(e.onPointerDownCapture,T.onPointerDownCapture)})});zr.displayName=Kh;var Zh="DismissableLayerBranch",Xh=d.forwardRef((e,t)=>{const n=d.useContext(Xa),r=d.useRef(null),o=de(t,r);return d.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),c.jsx(le.div,{...e,ref:o})});Xh.displayName=Zh;function Jh(e,t=globalThis==null?void 0:globalThis.document){const n=Zt(e),r=d.useRef(!1),o=d.useRef(()=>{});return d.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){el(Qh,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function e1(e,t=globalThis==null?void 0:globalThis.document){const n=Zt(e),r=d.useRef(!1);return d.useEffect(()=>{const o=i=>{i.target&&!r.current&&el(Yh,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ja(){const e=new CustomEvent(fi);document.dispatchEvent(e)}function el(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Gh(o,i):o.dispatchEvent(i)}var pi=0;function tl(){d.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??nl()),document.body.insertAdjacentElement("beforeend",e[1]??nl()),pi++,()=>{pi===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),pi--}},[])}function nl(){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 hi="focusScope.autoFocusOnMount",mi="focusScope.autoFocusOnUnmount",rl={bubbles:!1,cancelable:!0},t1="FocusScope",gi=d.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,l]=d.useState(null),u=Zt(o),p=Zt(i),h=d.useRef(null),m=de(t,f=>l(f)),g=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(r){let f=function(C){if(g.paused||!a)return;const S=C.target;a.contains(S)?h.current=S:Rt(h.current,{select:!0})},v=function(C){if(g.paused||!a)return;const S=C.relatedTarget;S!==null&&(a.contains(S)||Rt(h.current,{select:!0}))},y=function(C){if(document.activeElement===document.body)for(const T of C)T.removedNodes.length>0&&Rt(a)};document.addEventListener("focusin",f),document.addEventListener("focusout",v);const w=new MutationObserver(y);return a&&w.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",v),w.disconnect()}}},[r,a,g.paused]),d.useEffect(()=>{if(a){sl.add(g);const f=document.activeElement;if(!a.contains(f)){const y=new CustomEvent(hi,rl);a.addEventListener(hi,u),a.dispatchEvent(y),y.defaultPrevented||(n1(a1(ol(a)),{select:!0}),document.activeElement===f&&Rt(a))}return()=>{a.removeEventListener(hi,u),setTimeout(()=>{const y=new CustomEvent(mi,rl);a.addEventListener(mi,p),a.dispatchEvent(y),y.defaultPrevented||Rt(f??document.body,{select:!0}),a.removeEventListener(mi,p),sl.remove(g)},0)}}},[a,u,p,g]);const x=d.useCallback(f=>{if(!n&&!r||g.paused)return;const v=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,y=document.activeElement;if(v&&y){const w=f.currentTarget,[C,S]=r1(w);C&&S?!f.shiftKey&&y===S?(f.preventDefault(),n&&Rt(C,{select:!0})):f.shiftKey&&y===C&&(f.preventDefault(),n&&Rt(S,{select:!0})):y===w&&f.preventDefault()}},[n,r,g.paused]);return c.jsx(le.div,{tabIndex:-1,...s,ref:m,onKeyDown:x})});gi.displayName=t1;function n1(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Rt(r,{select:t}),document.activeElement!==n)return}function r1(e){const t=ol(e),n=il(t,e),r=il(t.reverse(),e);return[n,r]}function ol(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 il(e,t){for(const n of e)if(!o1(n,{upTo:t}))return n}function o1(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 i1(e){return e instanceof HTMLInputElement&&"select"in e}function Rt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&i1(e)&&t&&e.select()}}var sl=s1();function s1(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=al(e,t),e.unshift(t)},remove(t){var n;e=al(e,t),(n=e[0])==null||n.resume()}}}function al(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function a1(e){return e.filter(t=>t.tagName!=="A")}var _e=globalThis!=null&&globalThis.document?d.useLayoutEffect:()=>{},l1=d[" useId ".trim().toString()]||(()=>{}),c1=0;function Xt(e){const[t,n]=d.useState(l1());return _e(()=>{n(r=>r??String(c1++))},[e]),e||(t?`radix-${t}`:"")}const u1=["top","right","bottom","left"],Pt=Math.min,Le=Math.max,Gr=Math.round,qr=Math.floor,Je=e=>({x:e,y:e}),d1={left:"right",right:"left",bottom:"top",top:"bottom"},f1={start:"end",end:"start"};function vi(e,t,n){return Le(e,Pt(t,n))}function pt(e,t){return typeof e=="function"?e(t):e}function ht(e){return e.split("-")[0]}function yn(e){return e.split("-")[1]}function yi(e){return e==="x"?"y":"x"}function bi(e){return e==="y"?"height":"width"}const p1=new Set(["top","bottom"]);function et(e){return p1.has(ht(e))?"y":"x"}function wi(e){return yi(et(e))}function h1(e,t,n){n===void 0&&(n=!1);const r=yn(e),o=wi(e),i=bi(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Kr(s)),[s,Kr(s)]}function m1(e){const t=Kr(e);return[_i(e),t,_i(t)]}function _i(e){return e.replace(/start|end/g,t=>f1[t])}const ll=["left","right"],cl=["right","left"],g1=["top","bottom"],v1=["bottom","top"];function y1(e,t,n){switch(e){case"top":case"bottom":return n?t?cl:ll:t?ll:cl;case"left":case"right":return t?g1:v1;default:return[]}}function b1(e,t,n,r){const o=yn(e);let i=y1(ht(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(_i)))),i}function Kr(e){return e.replace(/left|right|bottom|top/g,t=>d1[t])}function w1(e){return{top:0,right:0,bottom:0,left:0,...e}}function ul(e){return typeof e!="number"?w1(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 dl(e,t,n){let{reference:r,floating:o}=e;const i=et(t),s=wi(t),a=bi(s),l=ht(t),u=i==="y",p=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(l){case"top":g={x:p,y:r.y-o.height};break;case"bottom":g={x:p,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(yn(t)){case"start":g[s]-=m*(n&&u?-1:1);break;case"end":g[s]+=m*(n&&u?-1:1);break}return g}async function _1(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:p="viewport",elementContext:h="floating",altBoundary:m=!1,padding:g=0}=pt(t,e),x=ul(g),v=a[m?h==="floating"?"reference":"floating":h],y=Qr(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(v)))==null||n?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:p,strategy:l})),w=h==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,C=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),S=await(i.isElement==null?void 0:i.isElement(C))?await(i.getScale==null?void 0:i.getScale(C))||{x:1,y:1}:{x:1,y:1},T=Qr(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:C,strategy:l}):w);return{top:(y.top-T.top+x.top)/S.y,bottom:(T.bottom-y.bottom+x.bottom)/S.y,left:(y.left-T.left+x.left)/S.x,right:(T.right-y.right+x.right)/S.x}}const x1=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:h}=dl(u,r,l),m=r,g={},x=0;for(let v=0;v<a.length;v++){var f;const{name:y,fn:w}=a[v],{x:C,y:S,data:T,reset:P}=await w({x:p,y:h,initialPlacement:r,placement:m,strategy:o,middlewareData:g,rects:u,platform:{...s,detectOverflow:(f=s.detectOverflow)!=null?f:_1},elements:{reference:e,floating:t}});p=C??p,h=S??h,g={...g,[y]:{...g[y],...T}},P&&x<=50&&(x++,typeof P=="object"&&(P.placement&&(m=P.placement),P.rects&&(u=P.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):P.rects),{x:p,y:h}=dl(u,m,l)),v=-1)}return{x:p,y:h,placement:m,strategy:o,middlewareData:g}},C1=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:u,padding:p=0}=pt(e,t)||{};if(u==null)return{};const h=ul(p),m={x:n,y:r},g=wi(o),x=bi(g),f=await s.getDimensions(u),v=g==="y",y=v?"top":"left",w=v?"bottom":"right",C=v?"clientHeight":"clientWidth",S=i.reference[x]+i.reference[g]-m[g]-i.floating[x],T=m[g]-i.reference[g],P=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let R=P?P[C]:0;(!R||!await(s.isElement==null?void 0:s.isElement(P)))&&(R=a.floating[C]||i.floating[x]);const D=S/2-T/2,k=R/2-f[x]/2-1,L=Pt(h[y],k),W=Pt(h[w],k),z=L,U=R-f[x]-W,V=R/2-f[x]/2+D,se=vi(z,V,U),G=!l.arrow&&yn(o)!=null&&V!==se&&i.reference[x]/2-(V<z?L:W)-f[x]/2<0,Z=G?V<z?V-z:V-U:0;return{[g]:m[g]+Z,data:{[g]:se,centerOffset:V-se-Z,...G&&{alignmentOffset:Z}},reset:G}}}),S1=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:p=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:f=!0,...v}=pt(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const y=ht(o),w=et(a),C=ht(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),T=m||(C||!f?[Kr(a)]:m1(a)),P=x!=="none";!m&&P&&T.push(...b1(a,f,x,S));const R=[a,...T],D=await l.detectOverflow(t,v),k=[];let L=((r=i.flip)==null?void 0:r.overflows)||[];if(p&&k.push(D[y]),h){const V=h1(o,s,S);k.push(D[V[0]],D[V[1]])}if(L=[...L,{placement:o,overflows:k}],!k.every(V=>V<=0)){var W,z;const V=(((W=i.flip)==null?void 0:W.index)||0)+1,se=R[V];if(se&&(!(h==="alignment"?w!==et(se):!1)||L.every($=>et($.placement)===w?$.overflows[0]>0:!0)))return{data:{index:V,overflows:L},reset:{placement:se}};let G=(z=L.filter(Z=>Z.overflows[0]<=0).sort((Z,$)=>Z.overflows[1]-$.overflows[1])[0])==null?void 0:z.placement;if(!G)switch(g){case"bestFit":{var U;const Z=(U=L.filter($=>{if(P){const ae=et($.placement);return ae===w||ae==="y"}return!0}).map($=>[$.placement,$.overflows.filter(ae=>ae>0).reduce((ae,we)=>ae+we,0)]).sort(($,ae)=>$[1]-ae[1])[0])==null?void 0:U[0];Z&&(G=Z);break}case"initialPlacement":G=a;break}if(o!==G)return{reset:{placement:G}}}return{}}}};function fl(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function pl(e){return u1.some(t=>e[t]>=0)}const E1=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=pt(e,t);switch(o){case"referenceHidden":{const s=await r.detectOverflow(t,{...i,elementContext:"reference"}),a=fl(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:pl(a)}}}case"escaped":{const s=await r.detectOverflow(t,{...i,altBoundary:!0}),a=fl(s,n.floating);return{data:{escapedOffsets:a,escaped:pl(a)}}}default:return{}}}}},hl=new Set(["left","top"]);async function T1(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=ht(n),a=yn(n),l=et(n)==="y",u=hl.has(s)?-1:1,p=i&&l?-1:1,h=pt(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:x}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof x=="number"&&(g=a==="end"?x*-1:x),l?{x:g*p,y:m*u}:{x:m*u,y:g*p}}const R1=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await T1(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},P1=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:y=>{let{x:w,y:C}=y;return{x:w,y:C}}},...u}=pt(e,t),p={x:n,y:r},h=await i.detectOverflow(t,u),m=et(ht(o)),g=yi(m);let x=p[g],f=p[m];if(s){const y=g==="y"?"top":"left",w=g==="y"?"bottom":"right",C=x+h[y],S=x-h[w];x=vi(C,x,S)}if(a){const y=m==="y"?"top":"left",w=m==="y"?"bottom":"right",C=f+h[y],S=f-h[w];f=vi(C,f,S)}const v=l.fn({...t,[g]:x,[m]:f});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[g]:s,[m]:a}}}}}},A1=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=pt(e,t),p={x:n,y:r},h=et(o),m=yi(h);let g=p[m],x=p[h];const f=pt(a,t),v=typeof f=="number"?{mainAxis:f,crossAxis:0}:{mainAxis:0,crossAxis:0,...f};if(l){const C=m==="y"?"height":"width",S=i.reference[m]-i.floating[C]+v.mainAxis,T=i.reference[m]+i.reference[C]-v.mainAxis;g<S?g=S:g>T&&(g=T)}if(u){var y,w;const C=m==="y"?"width":"height",S=hl.has(ht(o)),T=i.reference[h]-i.floating[C]+(S&&((y=s.offset)==null?void 0:y[h])||0)+(S?0:v.crossAxis),P=i.reference[h]+i.reference[C]+(S?0:((w=s.offset)==null?void 0:w[h])||0)-(S?v.crossAxis:0);x<T?x=T:x>P&&(x=P)}return{[m]:g,[h]:x}}}},O1=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...u}=pt(e,t),p=await s.detectOverflow(t,u),h=ht(o),m=yn(o),g=et(o)==="y",{width:x,height:f}=i.floating;let v,y;h==="top"||h==="bottom"?(v=h,y=m===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(y=h,v=m==="end"?"top":"bottom");const w=f-p.top-p.bottom,C=x-p.left-p.right,S=Pt(f-p[v],w),T=Pt(x-p[y],C),P=!t.middlewareData.shift;let R=S,D=T;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(D=C),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(R=w),P&&!m){const L=Le(p.left,0),W=Le(p.right,0),z=Le(p.top,0),U=Le(p.bottom,0);g?D=x-2*(L!==0||W!==0?L+W:Le(p.left,p.right)):R=f-2*(z!==0||U!==0?z+U:Le(p.top,p.bottom))}await l({...t,availableWidth:D,availableHeight:R});const k=await s.getDimensions(a.floating);return x!==k.width||f!==k.height?{reset:{rects:!0}}:{}}}};function Yr(){return typeof window<"u"}function bn(e){return ml(e)?(e.nodeName||"").toLowerCase():"#document"}function De(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function tt(e){var t;return(t=(ml(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ml(e){return Yr()?e instanceof Node||e instanceof De(e).Node:!1}function He(e){return Yr()?e instanceof Element||e instanceof De(e).Element:!1}function nt(e){return Yr()?e instanceof HTMLElement||e instanceof De(e).HTMLElement:!1}function gl(e){return!Yr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof De(e).ShadowRoot}const I1=new Set(["inline","contents"]);function Xn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ve(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!I1.has(o)}const j1=new Set(["table","td","th"]);function k1(e){return j1.has(bn(e))}const L1=[":popover-open",":modal"];function Zr(e){return L1.some(t=>{try{return e.matches(t)}catch{return!1}})}const D1=["transform","translate","scale","rotate","perspective"],N1=["transform","translate","scale","rotate","perspective","filter"],M1=["paint","layout","strict","content"];function xi(e){const t=Ci(),n=He(e)?Ve(e):e;return D1.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)||N1.some(r=>(n.willChange||"").includes(r))||M1.some(r=>(n.contain||"").includes(r))}function $1(e){let t=At(e);for(;nt(t)&&!wn(t);){if(xi(t))return t;if(Zr(t))return null;t=At(t)}return null}function Ci(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const F1=new Set(["html","body","#document"]);function wn(e){return F1.has(bn(e))}function Ve(e){return De(e).getComputedStyle(e)}function Xr(e){return He(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function At(e){if(bn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||gl(e)&&e.host||tt(e);return gl(t)?t.host:t}function vl(e){const t=At(e);return wn(t)?e.ownerDocument?e.ownerDocument.body:e.body:nt(t)&&Xn(t)?t:vl(t)}function Jn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=vl(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=De(o);if(i){const a=Si(s);return t.concat(s,s.visualViewport||[],Xn(o)?o:[],a&&n?Jn(a):[])}return t.concat(o,Jn(o,[],n))}function Si(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function yl(e){const t=Ve(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=nt(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Gr(n)!==i||Gr(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Ei(e){return He(e)?e:e.contextElement}function _n(e){const t=Ei(e);if(!nt(t))return Je(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=yl(t);let s=(i?Gr(n.width):n.width)/r,a=(i?Gr(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const B1=Je(0);function bl(e){const t=De(e);return!Ci()||!t.visualViewport?B1:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function U1(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==De(e)?!1:t}function Jt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Ei(e);let s=Je(1);t&&(r?He(r)&&(s=_n(r)):s=_n(e));const a=U1(i,n,r)?bl(i):Je(0);let l=(o.left+a.x)/s.x,u=(o.top+a.y)/s.y,p=o.width/s.x,h=o.height/s.y;if(i){const m=De(i),g=r&&He(r)?De(r):r;let x=m,f=Si(x);for(;f&&r&&g!==x;){const v=_n(f),y=f.getBoundingClientRect(),w=Ve(f),C=y.left+(f.clientLeft+parseFloat(w.paddingLeft))*v.x,S=y.top+(f.clientTop+parseFloat(w.paddingTop))*v.y;l*=v.x,u*=v.y,p*=v.x,h*=v.y,l+=C,u+=S,x=De(f),f=Si(x)}}return Qr({width:p,height:h,x:l,y:u})}function Jr(e,t){const n=Xr(e).scrollLeft;return t?t.left+n:Jt(tt(e)).left+n}function wl(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 W1(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=tt(r),a=t?Zr(t.floating):!1;if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},u=Je(1);const p=Je(0),h=nt(r);if((h||!h&&!i)&&((bn(r)!=="body"||Xn(s))&&(l=Xr(r)),nt(r))){const g=Jt(r);u=_n(r),p.x=g.x+r.clientLeft,p.y=g.y+r.clientTop}const m=s&&!h&&!i?wl(s,l):Je(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+p.x+m.x,y:n.y*u.y-l.scrollTop*u.y+p.y+m.y}}function H1(e){return Array.from(e.getClientRects())}function V1(e){const t=tt(e),n=Xr(e),r=e.ownerDocument.body,o=Le(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Le(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Jr(e);const a=-n.scrollTop;return Ve(r).direction==="rtl"&&(s+=Le(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}const _l=25;function z1(e,t){const n=De(e),r=tt(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const p=Ci();(!p||p&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}const u=Jr(r);if(u<=0){const p=r.ownerDocument,h=p.body,m=getComputedStyle(h),g=p.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,x=Math.abs(r.clientWidth-h.clientWidth-g);x<=_l&&(i-=x)}else u<=_l&&(i+=u);return{width:i,height:s,x:a,y:l}}const G1=new Set(["absolute","fixed"]);function q1(e,t){const n=Jt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=nt(e)?_n(e):Je(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,u=r*i.y;return{width:s,height:a,x:l,y:u}}function xl(e,t,n){let r;if(t==="viewport")r=z1(e,n);else if(t==="document")r=V1(tt(e));else if(He(t))r=q1(t,n);else{const o=bl(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Qr(r)}function Cl(e,t){const n=At(e);return n===t||!He(n)||wn(n)?!1:Ve(n).position==="fixed"||Cl(n,t)}function K1(e,t){const n=t.get(e);if(n)return n;let r=Jn(e,[],!1).filter(a=>He(a)&&bn(a)!=="body"),o=null;const i=Ve(e).position==="fixed";let s=i?At(e):e;for(;He(s)&&!wn(s);){const a=Ve(s),l=xi(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&G1.has(o.position)||Xn(s)&&!l&&Cl(e,s))?r=r.filter(p=>p!==s):o=a,s=At(s)}return t.set(e,r),r}function Q1(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Zr(t)?[]:K1(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((u,p)=>{const h=xl(t,p,o);return u.top=Le(h.top,u.top),u.right=Pt(h.right,u.right),u.bottom=Pt(h.bottom,u.bottom),u.left=Le(h.left,u.left),u},xl(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Y1(e){const{width:t,height:n}=yl(e);return{width:t,height:n}}function Z1(e,t,n){const r=nt(t),o=tt(t),i=n==="fixed",s=Jt(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Je(0);function u(){l.x=Jr(o)}if(r||!r&&!i)if((bn(t)!=="body"||Xn(o))&&(a=Xr(t)),r){const g=Jt(t,!0,i,t);l.x=g.x+t.clientLeft,l.y=g.y+t.clientTop}else o&&u();i&&!r&&o&&u();const p=o&&!r&&!i?wl(o,a):Je(0),h=s.left+a.scrollLeft-l.x-p.x,m=s.top+a.scrollTop-l.y-p.y;return{x:h,y:m,width:s.width,height:s.height}}function Ti(e){return Ve(e).position==="static"}function Sl(e,t){if(!nt(e)||Ve(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return tt(e)===n&&(n=n.ownerDocument.body),n}function El(e,t){const n=De(e);if(Zr(e))return n;if(!nt(e)){let o=At(e);for(;o&&!wn(o);){if(He(o)&&!Ti(o))return o;o=At(o)}return n}let r=Sl(e,t);for(;r&&k1(r)&&Ti(r);)r=Sl(r,t);return r&&wn(r)&&Ti(r)&&!xi(r)?n:r||$1(e)||n}const X1=async function(e){const t=this.getOffsetParent||El,n=this.getDimensions,r=await n(e.floating);return{reference:Z1(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function J1(e){return Ve(e).direction==="rtl"}const em={convertOffsetParentRelativeRectToViewportRelativeRect:W1,getDocumentElement:tt,getClippingRect:Q1,getOffsetParent:El,getElementRects:X1,getClientRects:H1,getDimensions:Y1,getScale:_n,isElement:He,isRTL:J1};function Tl(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function tm(e,t){let n=null,r;const o=tt(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const u=e.getBoundingClientRect(),{left:p,top:h,width:m,height:g}=u;if(a||t(),!m||!g)return;const x=qr(h),f=qr(o.clientWidth-(p+m)),v=qr(o.clientHeight-(h+g)),y=qr(p),C={rootMargin:-x+"px "+-f+"px "+-v+"px "+-y+"px",threshold:Le(0,Pt(1,l))||1};let S=!0;function T(P){const R=P[0].intersectionRatio;if(R!==l){if(!S)return s();R?s(!1,R):r=setTimeout(()=>{s(!1,1e-7)},1e3)}R===1&&!Tl(u,e.getBoundingClientRect())&&s(),S=!1}try{n=new IntersectionObserver(T,{...C,root:o.ownerDocument})}catch{n=new IntersectionObserver(T,C)}n.observe(e)}return s(!0),i}function nm(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Ei(e),p=o||i?[...u?Jn(u):[],...Jn(t)]:[];p.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const h=u&&a?tm(u,n):null;let m=-1,g=null;s&&(g=new ResizeObserver(y=>{let[w]=y;w&&w.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var C;(C=g)==null||C.observe(t)})),n()}),u&&!l&&g.observe(u),g.observe(t));let x,f=l?Jt(e):null;l&&v();function v(){const y=Jt(e);f&&!Tl(f,y)&&n(),f=y,x=requestAnimationFrame(v)}return n(),()=>{var y;p.forEach(w=>{o&&w.removeEventListener("scroll",n),i&&w.removeEventListener("resize",n)}),h==null||h(),(y=g)==null||y.disconnect(),g=null,l&&cancelAnimationFrame(x)}}const rm=R1,om=P1,im=S1,sm=O1,am=E1,Rl=C1,lm=A1,cm=(e,t,n)=>{const r=new Map,o={platform:em,...n},i={...o.platform,_c:r};return x1(e,t,{...o,platform:i})};var um=typeof document<"u",dm=function(){},eo=um?ys:dm;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 i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!to(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Pl(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Al(e,t){const n=Pl(e);return Math.round(t*n)/n}function Ri(e){const t=d.useRef(e);return eo(()=>{t.current=e}),t}function fm(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[p,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[x,f]=d.useState(null),[v,y]=d.useState(null),w=d.useCallback($=>{$!==P.current&&(P.current=$,f($))},[]),C=d.useCallback($=>{$!==R.current&&(R.current=$,y($))},[]),S=i||x,T=s||v,P=d.useRef(null),R=d.useRef(null),D=d.useRef(p),k=l!=null,L=Ri(l),W=Ri(o),z=Ri(u),U=d.useCallback(()=>{if(!P.current||!R.current)return;const $={placement:t,strategy:n,middleware:m};W.current&&($.platform=W.current),cm(P.current,R.current,$).then(ae=>{const we={...ae,isPositioned:z.current!==!1};V.current&&!to(D.current,we)&&(D.current=we,zn.flushSync(()=>{h(we)}))})},[m,t,n,W,z]);eo(()=>{u===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,h($=>({...$,isPositioned:!1})))},[u]);const V=d.useRef(!1);eo(()=>(V.current=!0,()=>{V.current=!1}),[]),eo(()=>{if(S&&(P.current=S),T&&(R.current=T),S&&T){if(L.current)return L.current(S,T,U);U()}},[S,T,U,L,k]);const se=d.useMemo(()=>({reference:P,floating:R,setReference:w,setFloating:C}),[w,C]),G=d.useMemo(()=>({reference:S,floating:T}),[S,T]),Z=d.useMemo(()=>{const $={position:n,left:0,top:0};if(!G.floating)return $;const ae=Al(G.floating,p.x),we=Al(G.floating,p.y);return a?{...$,transform:"translate("+ae+"px, "+we+"px)",...Pl(G.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ae,top:we}},[n,a,G.floating,p.x,p.y]);return d.useMemo(()=>({...p,update:U,refs:se,elements:G,floatingStyles:Z}),[p,U,se,G,Z])}const pm=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?Rl({element:r.current,padding:o}).fn(n):{}:r?Rl({element:r,padding:o}).fn(n):{}}}},hm=(e,t)=>({...rm(e),options:[e,t]}),mm=(e,t)=>({...om(e),options:[e,t]}),gm=(e,t)=>({...lm(e),options:[e,t]}),vm=(e,t)=>({...im(e),options:[e,t]}),ym=(e,t)=>({...sm(e),options:[e,t]}),bm=(e,t)=>({...am(e),options:[e,t]}),wm=(e,t)=>({...pm(e),options:[e,t]});var _m="Arrow",Ol=d.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return c.jsx(le.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ol.displayName=_m;var xm=Ol;function Cm(e){const[t,n]=d.useState(void 0);return _e(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;s=u.inlineSize,a=u.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Pi="Popper",[Il,no]=Zn(Pi),[Sm,jl]=Il(Pi),kl=e=>{const{__scopePopper:t,children:n}=e,[r,o]=d.useState(null);return c.jsx(Sm,{scope:t,anchor:r,onAnchorChange:o,children:n})};kl.displayName=Pi;var Ll="PopperAnchor",Dl=d.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=jl(Ll,n),s=d.useRef(null),a=de(t,s),l=d.useRef(null);return d.useEffect(()=>{const u=l.current;l.current=(r==null?void 0:r.current)||s.current,u!==l.current&&i.onAnchorChange(l.current)}),r?null:c.jsx(le.div,{...o,ref:a})});Dl.displayName=Ll;var Ai="PopperContent",[Em,Tm]=Il(Ai),Nl=d.forwardRef((e,t)=>{var M,ne,me,J,re,ee;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:p=0,sticky:h="partial",hideWhenDetached:m=!1,updatePositionStrategy:g="optimized",onPlaced:x,...f}=e,v=jl(Ai,n),[y,w]=d.useState(null),C=de(t,Re=>w(Re)),[S,T]=d.useState(null),P=Cm(S),R=(P==null?void 0:P.width)??0,D=(P==null?void 0:P.height)??0,k=r+(i!=="center"?"-"+i:""),L=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},W=Array.isArray(u)?u:[u],z=W.length>0,U={padding:L,boundary:W.filter(Pm),altBoundary:z},{refs:V,floatingStyles:se,placement:G,isPositioned:Z,middlewareData:$}=fm({strategy:"fixed",placement:k,whileElementsMounted:(...Re)=>nm(...Re,{animationFrame:g==="always"}),elements:{reference:v.anchor},middleware:[hm({mainAxis:o+D,alignmentAxis:s}),l&&mm({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?gm():void 0,...U}),l&&vm({...U}),ym({...U,apply:({elements:Re,rects:Fe,availableWidth:ct,availableHeight:Ze})=>{const{width:zt,height:Po}=Fe.reference,wt=Re.floating.style;wt.setProperty("--radix-popper-available-width",`${ct}px`),wt.setProperty("--radix-popper-available-height",`${Ze}px`),wt.setProperty("--radix-popper-anchor-width",`${zt}px`),wt.setProperty("--radix-popper-anchor-height",`${Po}px`)}}),S&&wm({element:S,padding:a}),Am({arrowWidth:R,arrowHeight:D}),m&&bm({strategy:"referenceHidden",...U})]}),[ae,we]=Fl(G),$e=Zt(x);_e(()=>{Z&&($e==null||$e())},[Z,$e]);const Wt=(M=$.arrow)==null?void 0:M.x,Ht=(ne=$.arrow)==null?void 0:ne.y,lt=((me=$.arrow)==null?void 0:me.centerOffset)!==0,[Vt,Ye]=d.useState();return _e(()=>{y&&Ye(window.getComputedStyle(y).zIndex)},[y]),c.jsx("div",{ref:V.setFloating,"data-radix-popper-content-wrapper":"",style:{...se,transform:Z?se.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Vt,"--radix-popper-transform-origin":[(J=$.transformOrigin)==null?void 0:J.x,(re=$.transformOrigin)==null?void 0:re.y].join(" "),...((ee=$.hide)==null?void 0:ee.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(Em,{scope:n,placedSide:ae,onArrowChange:T,arrowX:Wt,arrowY:Ht,shouldHideArrow:lt,children:c.jsx(le.div,{"data-side":ae,"data-align":we,...f,ref:C,style:{...f.style,animation:Z?void 0:"none"}})})})});Nl.displayName=Ai;var Ml="PopperArrow",Rm={top:"bottom",right:"left",bottom:"top",left:"right"},$l=d.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=Tm(Ml,r),s=Rm[i.placedSide];return c.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:c.jsx(xm,{...o,ref:n,style:{...o.style,display:"block"}})})});$l.displayName=Ml;function Pm(e){return e!==null}var Am=e=>({name:"transformOrigin",options:e,fn(t){var v,y,w;const{placement:n,rects:r,middlewareData:o}=t,s=((v=o.arrow)==null?void 0:v.centerOffset)!==0,a=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[u,p]=Fl(n),h={start:"0%",center:"50%",end:"100%"}[p],m=(((y=o.arrow)==null?void 0:y.x)??0)+a/2,g=(((w=o.arrow)==null?void 0:w.y)??0)+l/2;let x="",f="";return u==="bottom"?(x=s?h:`${m}px`,f=`${-l}px`):u==="top"?(x=s?h:`${m}px`,f=`${r.floating.height+l}px`):u==="right"?(x=`${-l}px`,f=s?h:`${g}px`):u==="left"&&(x=`${r.floating.width+l}px`,f=s?h:`${g}px`),{data:{x,y:f}}}});function Fl(e){const[t,n="center"]=e.split("-");return[t,n]}var Bl=kl,Ul=Dl,Wl=Nl,Hl=$l,Om="Portal",Oi=d.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,i]=d.useState(!1);_e(()=>i(!0),[]);const s=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?_s.createPortal(c.jsx(le.div,{...r,ref:t}),s):null});Oi.displayName=Om;function Im(e){const t=jm(e),n=d.forwardRef((r,o)=>{const{children:i,...s}=r,a=d.Children.toArray(i),l=a.find(Lm);if(l){const u=l.props.children,p=a.map(h=>h===l?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:h);return c.jsx(t,{...s,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,p):null})}return c.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function jm(e){const t=d.forwardRef((n,r)=>{const{children:o,...i}=n;if(d.isValidElement(o)){const s=Nm(o),a=Dm(i,o.props);return o.type!==d.Fragment&&(a.ref=r?vn(r,s):s),d.cloneElement(o,a)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var km=Symbol("radix.slottable");function Lm(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===km}function Dm(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const l=i(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Nm(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 Mm=d[" useInsertionEffect ".trim().toString()]||_e;function ro({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=$m({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:o;{const p=d.useRef(e!==void 0);d.useEffect(()=>{const h=p.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.`),p.current=a},[a,r])}const u=d.useCallback(p=>{var h;if(a){const m=Fm(p)?p(e):p;m!==e&&((h=s.current)==null||h.call(s,m))}else i(p)},[a,e,i,s]);return[l,u]}function $m({defaultProp:e,onChange:t}){const[n,r]=d.useState(e),o=d.useRef(n),i=d.useRef(t);return Mm(()=>{i.current=t},[t]),d.useEffect(()=>{var s;o.current!==n&&((s=i.current)==null||s.call(i,n),o.current=n)},[n,o]),[n,r,i]}function Fm(e){return typeof e=="function"}function Bm(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 Vl=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"}),Um="VisuallyHidden",zl=d.forwardRef((e,t)=>c.jsx(le.span,{...e,ref:t,style:{...Vl,...e.style}}));zl.displayName=Um;var Wm=zl,Hm=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},xn=new WeakMap,oo=new WeakMap,io={},Ii=0,Gl=function(e){return e&&(e.host||Gl(e.parentNode))},Vm=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Gl(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})},zm=function(e,t,n,r){var o=Vm(t,Array.isArray(e)?e:[e]);io[n]||(io[n]=new WeakMap);var i=io[n],s=[],a=new Set,l=new Set(o),u=function(h){!h||a.has(h)||(a.add(h),u(h.parentNode))};o.forEach(u);var p=function(h){!h||l.has(h)||Array.prototype.forEach.call(h.children,function(m){if(a.has(m))p(m);else try{var g=m.getAttribute(r),x=g!==null&&g!=="false",f=(xn.get(m)||0)+1,v=(i.get(m)||0)+1;xn.set(m,f),i.set(m,v),s.push(m),f===1&&x&&oo.set(m,!0),v===1&&m.setAttribute(n,"true"),x||m.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",m,y)}})};return p(t),a.clear(),Ii++,function(){s.forEach(function(h){var m=xn.get(h)-1,g=i.get(h)-1;xn.set(h,m),i.set(h,g),m||(oo.has(h)||h.removeAttribute(r),oo.delete(h)),g||h.removeAttribute(n)}),Ii--,Ii||(xn=new WeakMap,xn=new WeakMap,oo=new WeakMap,io={})}},ql=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Hm(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),zm(r,o,n,"aria-hidden")):function(){return null}},so="right-scroll-bar-position",ao="width-before-scroll-bar",Gm="with-scroll-bars-hidden",qm="--removed-body-scroll-bar-size";function ji(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Km(e,t){var n=B(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 Qm=typeof window<"u"?d.useLayoutEffect:d.useEffect,Kl=new WeakMap;function Ym(e,t){var n=Km(null,function(r){return e.forEach(function(o){return ji(o,r)})});return Qm(function(){var r=Kl.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(a){i.has(a)||ji(a,null)}),i.forEach(function(a){o.has(a)||ji(a,s)})}Kl.set(n,e)},[e]),n}function Zm(e){return e}function Xm(e,t){t===void 0&&(t=Zm);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(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var l=function(){var p=s;s=[],p.forEach(i)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(p){s.push(p),u()},filter:function(p){return s=s.filter(p),n}}}};return o}function Jm(e){e===void 0&&(e={});var t=Xm(null);return t.options=Xe({async:!0,ssr:!1},e),t}var Ql=function(e){var t=e.sideCar,n=Fs(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,Xe({},n))};Ql.isSideCarExport=!0;function eg(e,t){return e.useMedium(t),Ql}var Yl=Jm(),ki=function(){},lo=d.forwardRef(function(e,t){var n=d.useRef(null),r=d.useState({onScrollCapture:ki,onWheelCapture:ki,onTouchMoveCapture:ki}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,p=e.enabled,h=e.shards,m=e.sideCar,g=e.noRelative,x=e.noIsolation,f=e.inert,v=e.allowPinchZoom,y=e.as,w=y===void 0?"div":y,C=e.gapMode,S=Fs(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),T=m,P=Ym([n,t]),R=Xe(Xe({},S),o);return d.createElement(d.Fragment,null,p&&d.createElement(T,{sideCar:Yl,removeScrollBar:u,shards:h,noRelative:g,noIsolation:x,inert:f,setCallbacks:i,allowPinchZoom:!!v,lockRef:n,gapMode:C}),s?d.cloneElement(d.Children.only(a),Xe(Xe({},R),{ref:P})):d.createElement(w,Xe({},R,{className:l,ref:P}),a))});lo.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},lo.classNames={fullWidth:ao,zeroRight:so};var tg=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function ng(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=tg();return t&&e.setAttribute("nonce",t),e}function rg(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function og(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var ig=function(){var e=0,t=null;return{add:function(n){e==0&&(t=ng())&&(rg(t,n),og(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},sg=function(){var e=ig();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Zl=function(){var e=sg(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},ag={left:0,top:0,right:0,gap:0},Li=function(e){return parseInt(e||"",10)||0},lg=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[Li(n),Li(r),Li(o)]},cg=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ag;var t=lg(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])}},ug=Zl(),Cn="data-scroll-locked",dg=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
210
+ .`.concat(Gm,` {
211
211
  overflow: hidden `).concat(r,`;
212
212
  padding-right: `).concat(a,"px ").concat(r,`;
213
213
  }
214
- body[`).concat(rn,`] {
214
+ body[`).concat(Cn,`] {
215
215
  overflow: hidden `).concat(r,`;
216
216
  overscroll-behavior: contain;
217
217
  `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
@@ -224,30 +224,30 @@ to {
224
224
  `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
225
225
  }
226
226
 
227
- .`).concat(Wr,` {
227
+ .`).concat(so,` {
228
228
  right: `).concat(a,"px ").concat(r,`;
229
229
  }
230
230
 
231
- .`).concat(zr,` {
231
+ .`).concat(ao,` {
232
232
  margin-right: `).concat(a,"px ").concat(r,`;
233
233
  }
234
234
 
235
- .`).concat(Wr," .").concat(Wr,` {
235
+ .`).concat(so," .").concat(so,` {
236
236
  right: 0 `).concat(r,`;
237
237
  }
238
238
 
239
- .`).concat(zr," .").concat(zr,` {
239
+ .`).concat(ao," .").concat(ao,` {
240
240
  margin-right: 0 `).concat(r,`;
241
241
  }
242
242
 
243
- body[`).concat(rn,`] {
244
- `).concat(Pm,": ").concat(a,`px;
243
+ body[`).concat(Cn,`] {
244
+ `).concat(qm,": ").concat(a,`px;
245
245
  }
246
- `)},Bl=function(){var e=parseInt(document.body.getAttribute(rn)||"0",10);return isFinite(e)?e:0},Qm=function(){h.useEffect(function(){return document.body.setAttribute(rn,(Bl()+1).toString()),function(){var e=Bl()-1;e<=0?document.body.removeAttribute(rn):document.body.setAttribute(rn,e.toString())}},[])},Ym=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Qm();var i=h.useMemo(function(){return Vm(o)},[o]);return h.createElement(Gm,{styles:qm(i,!t,o,n?"":"!important")})},Ei=!1;if(typeof window<"u")try{var Vr=Object.defineProperty({},"passive",{get:function(){return Ei=!0,!0}});window.addEventListener("test",Vr,Vr),window.removeEventListener("test",Vr,Vr)}catch{Ei=!1}var on=Ei?{passive:!1}:!1,Km=function(e){return e.tagName==="TEXTAREA"},Ul=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Km(e)&&n[t]==="visible")},Zm=function(e){return Ul(e,"overflowY")},Xm=function(e){return Ul(e,"overflowX")},Wl=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=zl(e,r);if(o){var i=Hl(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Jm=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},eg=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},zl=function(e,t){return e==="v"?Zm(t):Xm(t)},Hl=function(e,t){return e==="v"?Jm(t):eg(t)},tg=function(e,t){return e==="h"&&t==="rtl"?-1:1},ng=function(e,t,n,r,o){var i=tg(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,l=t.contains(a),u=!1,d=s>0,p=0,m=0;do{if(!a)break;var g=Hl(e,a),w=g[0],f=g[1],v=g[2],_=f-v-i*w;(w||_)&&zl(e,a)&&(p+=_,m+=w);var C=a.parentNode;a=C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE?C.host:C}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(d&&Math.abs(p)<1||!d&&Math.abs(m)<1)&&(u=!0),u},Gr=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Vl=function(e){return[e.deltaX,e.deltaY]},Gl=function(e){return e&&"current"in e?e.current:e},rg=function(e,t){return e[0]===t[0]&&e[1]===t[1]},og=function(e){return`
246
+ `)},Xl=function(){var e=parseInt(document.body.getAttribute(Cn)||"0",10);return isFinite(e)?e:0},fg=function(){d.useEffect(function(){return document.body.setAttribute(Cn,(Xl()+1).toString()),function(){var e=Xl()-1;e<=0?document.body.removeAttribute(Cn):document.body.setAttribute(Cn,e.toString())}},[])},pg=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;fg();var i=d.useMemo(function(){return cg(o)},[o]);return d.createElement(ug,{styles:dg(i,!t,o,n?"":"!important")})},Di=!1;if(typeof window<"u")try{var co=Object.defineProperty({},"passive",{get:function(){return Di=!0,!0}});window.addEventListener("test",co,co),window.removeEventListener("test",co,co)}catch{Di=!1}var Sn=Di?{passive:!1}:!1,hg=function(e){return e.tagName==="TEXTAREA"},Jl=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!hg(e)&&n[t]==="visible")},mg=function(e){return Jl(e,"overflowY")},gg=function(e){return Jl(e,"overflowX")},ec=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=tc(e,r);if(o){var i=nc(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},vg=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},yg=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},tc=function(e,t){return e==="v"?mg(t):gg(t)},nc=function(e,t){return e==="v"?vg(t):yg(t)},bg=function(e,t){return e==="h"&&t==="rtl"?-1:1},wg=function(e,t,n,r,o){var i=bg(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,l=t.contains(a),u=!1,p=s>0,h=0,m=0;do{if(!a)break;var g=nc(e,a),x=g[0],f=g[1],v=g[2],y=f-v-i*x;(x||y)&&tc(e,a)&&(h+=y,m+=x);var w=a.parentNode;a=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(p&&Math.abs(h)<1||!p&&Math.abs(m)<1)&&(u=!0),u},uo=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},rc=function(e){return[e.deltaX,e.deltaY]},oc=function(e){return e&&"current"in e?e.current:e},_g=function(e,t){return e[0]===t[0]&&e[1]===t[1]},xg=function(e){return`
247
247
  .block-interactivity-`.concat(e,` {pointer-events: none;}
248
248
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
249
- `)},ig=0,sn=[];function sg(e){var t=h.useRef([]),n=h.useRef([0,0]),r=h.useRef(),o=h.useState(ig++)[0],i=h.useState(Fl)[0],s=h.useRef(e);h.useEffect(function(){s.current=e},[e]),h.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var f=nr([e.lockRef.current],(e.shards||[]).map(Gl),!0).filter(Boolean);return f.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),f.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=h.useCallback(function(f,v){if("touches"in f&&f.touches.length===2||f.type==="wheel"&&f.ctrlKey)return!s.current.allowPinchZoom;var _=Gr(f),C=n.current,S="deltaX"in f?f.deltaX:C[0]-_[0],E="deltaY"in f?f.deltaY:C[1]-_[1],T,P=f.target,A=Math.abs(S)>Math.abs(E)?"h":"v";if("touches"in f&&A==="h"&&P.type==="range")return!1;var M=window.getSelection(),I=M&&M.anchorNode,D=I?I===P||I.contains(P):!1;if(D)return!1;var q=Wl(A,P);if(!q)return!0;if(q?T=A:(T=A==="v"?"h":"v",q=Wl(A,P)),!q)return!1;if(!r.current&&"changedTouches"in f&&(S||E)&&(r.current=T),!T)return!0;var Z=r.current||T;return ng(Z,v,f,Z==="h"?S:E)},[]),l=h.useCallback(function(f){var v=f;if(!(!sn.length||sn[sn.length-1]!==i)){var _="deltaY"in v?Vl(v):Gr(v),C=t.current.filter(function(T){return T.name===v.type&&(T.target===v.target||v.target===T.shadowParent)&&rg(T.delta,_)})[0];if(C&&C.should){v.cancelable&&v.preventDefault();return}if(!C){var S=(s.current.shards||[]).map(Gl).filter(Boolean).filter(function(T){return T.contains(v.target)}),E=S.length>0?a(v,S[0]):!s.current.noIsolation;E&&v.cancelable&&v.preventDefault()}}},[]),u=h.useCallback(function(f,v,_,C){var S={name:f,delta:v,target:_,should:C,shadowParent:ag(_)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(E){return E!==S})},1)},[]),d=h.useCallback(function(f){n.current=Gr(f),r.current=void 0},[]),p=h.useCallback(function(f){u(f.type,Vl(f),f.target,a(f,e.lockRef.current))},[]),m=h.useCallback(function(f){u(f.type,Gr(f),f.target,a(f,e.lockRef.current))},[]);h.useEffect(function(){return sn.push(i),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",l,on),document.addEventListener("touchmove",l,on),document.addEventListener("touchstart",d,on),function(){sn=sn.filter(function(f){return f!==i}),document.removeEventListener("wheel",l,on),document.removeEventListener("touchmove",l,on),document.removeEventListener("touchstart",d,on)}},[]);var g=e.removeScrollBar,w=e.inert;return h.createElement(h.Fragment,null,w?h.createElement(i,{styles:og(o)}):null,g?h.createElement(Ym,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ag(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const lg=Nm($l,sg);var ql=h.forwardRef(function(e,t){return h.createElement(Hr,$e({},e,{ref:t,sideCar:lg}))});ql.classNames=Hr.classNames;var cg=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},an=new WeakMap,qr=new WeakMap,Qr={},Si=0,Ql=function(e){return e&&(e.host||Ql(e.parentNode))},ug=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Ql(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})},dg=function(e,t,n,r){var o=ug(t,Array.isArray(e)?e:[e]);Qr[n]||(Qr[n]=new WeakMap);var i=Qr[n],s=[],a=new Set,l=new Set(o),u=function(p){!p||a.has(p)||(a.add(p),u(p.parentNode))};o.forEach(u);var d=function(p){!p||l.has(p)||Array.prototype.forEach.call(p.children,function(m){if(a.has(m))d(m);else try{var g=m.getAttribute(r),w=g!==null&&g!=="false",f=(an.get(m)||0)+1,v=(i.get(m)||0)+1;an.set(m,f),i.set(m,v),s.push(m),f===1&&w&&qr.set(m,!0),v===1&&m.setAttribute(n,"true"),w||m.setAttribute(r,"true")}catch(_){console.error("aria-hidden: cannot operate on ",m,_)}})};return d(t),a.clear(),Si++,function(){s.forEach(function(p){var m=an.get(p)-1,g=i.get(p)-1;an.set(p,m),i.set(p,g),m||(qr.has(p)||p.removeAttribute(r),qr.delete(p)),g||p.removeAttribute(n)}),Si--,Si||(an=new WeakMap,an=new WeakMap,qr=new WeakMap,Qr={})}},fg=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=cg(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),dg(r,o,n,"aria-hidden")):function(){return null}};function pg(e){const t=hg(e),n=h.forwardRef((r,o)=>{const{children:i,...s}=r,a=h.Children.toArray(i),l=a.find(gg);if(l){const u=l.props.children,d=a.map(p=>p===l?h.Children.count(u)>1?h.Children.only(null):h.isValidElement(u)?u.props.children:null:p);return c.jsx(t,{...s,ref:o,children:h.isValidElement(u)?h.cloneElement(u,void 0,d):null})}return c.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function hg(e){const t=h.forwardRef((n,r)=>{const{children:o,...i}=n;if(h.isValidElement(o)){const s=yg(o),a=vg(i,o.props);return o.type!==h.Fragment&&(a.ref=r?Er(r,s):s),h.cloneElement(o,a)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var mg=Symbol("radix.slottable");function gg(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===mg}function vg(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const l=i(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].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 Yr="Dialog",[Yl]=Ko(Yr),[bg,De]=Yl(Yr),Kl=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,a=h.useRef(null),l=h.useRef(null),[u,d]=hl({prop:r,defaultProp:o??!1,onChange:i,caller:Yr});return c.jsx(bg,{scope:t,triggerRef:a,contentRef:l,contentId:Tr(),titleId:Tr(),descriptionId:Tr(),open:u,onOpenChange:d,onOpenToggle:h.useCallback(()=>d(p=>!p),[d]),modal:s,children:n})};Kl.displayName=Yr;var Zl="DialogTrigger",wg=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=De(Zl,n),i=ke(t,o.triggerRef);return c.jsx(ye.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Ai(o.open),...r,ref:i,onClick:ve(e.onClick,o.onOpenToggle)})});wg.displayName=Zl;var Ti="DialogPortal",[_g,Xl]=Yl(Ti,{forceMount:void 0}),Jl=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=De(Ti,t);return c.jsx(_g,{scope:t,forceMount:n,children:h.Children.map(r,s=>c.jsx(tn,{present:n||i.open,children:c.jsx(fi,{asChild:!0,container:o,children:s})}))})};Jl.displayName=Ti;var Kr="DialogOverlay",ec=h.forwardRef((e,t)=>{const n=Xl(Kr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=De(Kr,e.__scopeDialog);return i.modal?c.jsx(tn,{present:r||i.open,children:c.jsx(xg,{...o,ref:t})}):null});ec.displayName=Kr;var Cg=pg("DialogOverlay.RemoveScroll"),xg=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=De(Kr,n);return c.jsx(ql,{as:Cg,allowPinchZoom:!0,shards:[o.contentRef],children:c.jsx(ye.div,{"data-state":Ai(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),jt="DialogContent",tc=h.forwardRef((e,t)=>{const n=Xl(jt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=De(jt,e.__scopeDialog);return c.jsx(tn,{present:r||i.open,children:i.modal?c.jsx(Eg,{...o,ref:t}):c.jsx(Sg,{...o,ref:t})})});tc.displayName=jt;var Eg=h.forwardRef((e,t)=>{const n=De(jt,e.__scopeDialog),r=h.useRef(null),o=ke(t,n.contentRef,r);return h.useEffect(()=>{const i=r.current;if(i)return fg(i)},[]),c.jsx(nc,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ve(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:ve(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&i.preventDefault()}),onFocusOutside:ve(e.onFocusOutside,i=>i.preventDefault())})}),Sg=h.forwardRef((e,t)=>{const n=De(jt,e.__scopeDialog),r=h.useRef(!1),o=h.useRef(!1);return c.jsx(nc,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((u=n.triggerRef.current)==null?void 0:u.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),nc=h.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,a=De(jt,n),l=h.useRef(null),u=ke(t,l);return Rm(),c.jsxs(c.Fragment,{children:[c.jsx(Ol,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:c.jsx(Xo,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Ai(a.open),...s,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),c.jsxs(c.Fragment,{children:[c.jsx(Tg,{titleId:a.titleId}),c.jsx(Ag,{contentRef:l,descriptionId:a.descriptionId})]})]})}),Ri="DialogTitle",rc=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=De(Ri,n);return c.jsx(ye.h2,{id:o.titleId,...r,ref:t})});rc.displayName=Ri;var oc="DialogDescription",ic=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=De(oc,n);return c.jsx(ye.p,{id:o.descriptionId,...r,ref:t})});ic.displayName=oc;var sc="DialogClose",ac=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=De(sc,n);return c.jsx(ye.button,{type:"button",...r,ref:t,onClick:ve(e.onClick,()=>o.onOpenChange(!1))})});ac.displayName=sc;function Ai(e){return e?"open":"closed"}var lc="DialogTitleWarning",[E0,cc]=Qp(lc,{contentName:jt,titleName:Ri,docsSlug:"dialog"}),Tg=({titleId:e})=>{const t=cc(lc),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
249
+ `)},Cg=0,En=[];function Sg(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),o=d.useState(Cg++)[0],i=d.useState(Zl)[0],s=d.useRef(e);d.useEffect(function(){s.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var f=Cr([e.lockRef.current],(e.shards||[]).map(oc),!0).filter(Boolean);return f.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),f.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=d.useCallback(function(f,v){if("touches"in f&&f.touches.length===2||f.type==="wheel"&&f.ctrlKey)return!s.current.allowPinchZoom;var y=uo(f),w=n.current,C="deltaX"in f?f.deltaX:w[0]-y[0],S="deltaY"in f?f.deltaY:w[1]-y[1],T,P=f.target,R=Math.abs(C)>Math.abs(S)?"h":"v";if("touches"in f&&R==="h"&&P.type==="range")return!1;var D=window.getSelection(),k=D&&D.anchorNode,L=k?k===P||k.contains(P):!1;if(L)return!1;var W=ec(R,P);if(!W)return!0;if(W?T=R:(T=R==="v"?"h":"v",W=ec(R,P)),!W)return!1;if(!r.current&&"changedTouches"in f&&(C||S)&&(r.current=T),!T)return!0;var z=r.current||T;return wg(z,v,f,z==="h"?C:S)},[]),l=d.useCallback(function(f){var v=f;if(!(!En.length||En[En.length-1]!==i)){var y="deltaY"in v?rc(v):uo(v),w=t.current.filter(function(T){return T.name===v.type&&(T.target===v.target||v.target===T.shadowParent)&&_g(T.delta,y)})[0];if(w&&w.should){v.cancelable&&v.preventDefault();return}if(!w){var C=(s.current.shards||[]).map(oc).filter(Boolean).filter(function(T){return T.contains(v.target)}),S=C.length>0?a(v,C[0]):!s.current.noIsolation;S&&v.cancelable&&v.preventDefault()}}},[]),u=d.useCallback(function(f,v,y,w){var C={name:f,delta:v,target:y,should:w,shadowParent:Eg(y)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(S){return S!==C})},1)},[]),p=d.useCallback(function(f){n.current=uo(f),r.current=void 0},[]),h=d.useCallback(function(f){u(f.type,rc(f),f.target,a(f,e.lockRef.current))},[]),m=d.useCallback(function(f){u(f.type,uo(f),f.target,a(f,e.lockRef.current))},[]);d.useEffect(function(){return En.push(i),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:m}),document.addEventListener("wheel",l,Sn),document.addEventListener("touchmove",l,Sn),document.addEventListener("touchstart",p,Sn),function(){En=En.filter(function(f){return f!==i}),document.removeEventListener("wheel",l,Sn),document.removeEventListener("touchmove",l,Sn),document.removeEventListener("touchstart",p,Sn)}},[]);var g=e.removeScrollBar,x=e.inert;return d.createElement(d.Fragment,null,x?d.createElement(i,{styles:xg(o)}):null,g?d.createElement(pg,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Eg(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Tg=eg(Yl,Sg);var Ni=d.forwardRef(function(e,t){return d.createElement(lo,Xe({},e,{ref:t,sideCar:Tg}))});Ni.classNames=lo.classNames;var Rg=[" ","Enter","ArrowUp","ArrowDown"],Pg=[" ","Enter"],en="Select",[fo,po,Ag]=Nh(en),[Tn]=Zn(en,[Ag,no]),ho=no(),[Og,Ot]=Tn(en),[Ig,jg]=Tn(en),ic=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:s,defaultValue:a,onValueChange:l,dir:u,name:p,autoComplete:h,disabled:m,required:g,form:x}=e,f=ho(t),[v,y]=d.useState(null),[w,C]=d.useState(null),[S,T]=d.useState(!1),P=$h(u),[R,D]=ro({prop:r,defaultProp:o??!1,onChange:i,caller:en}),[k,L]=ro({prop:s,defaultProp:a,onChange:l,caller:en}),W=d.useRef(null),z=v?x||!!v.closest("form"):!0,[U,V]=d.useState(new Set),se=Array.from(U).map(G=>G.props.value).join(";");return c.jsx(Bl,{...f,children:c.jsxs(Og,{required:g,scope:t,trigger:v,onTriggerChange:y,valueNode:w,onValueNodeChange:C,valueNodeHasChildren:S,onValueNodeHasChildrenChange:T,contentId:Xt(),value:k,onValueChange:L,open:R,onOpenChange:D,dir:P,triggerPointerDownPosRef:W,disabled:m,children:[c.jsx(fo.Provider,{scope:t,children:c.jsx(Ig,{scope:e.__scopeSelect,onNativeOptionAdd:d.useCallback(G=>{V(Z=>new Set(Z).add(G))},[]),onNativeOptionRemove:d.useCallback(G=>{V(Z=>{const $=new Set(Z);return $.delete(G),$})},[]),children:n})}),z?c.jsxs(Ec,{"aria-hidden":!0,required:g,tabIndex:-1,name:p,autoComplete:h,value:k,onChange:G=>L(G.target.value),disabled:m,form:x,children:[k===void 0?c.jsx("option",{value:""}):null,Array.from(U)]},se):null]})})};ic.displayName=en;var sc="SelectTrigger",ac=d.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=ho(n),s=Ot(sc,n),a=s.disabled||r,l=de(t,s.onTriggerChange),u=po(n),p=d.useRef("touch"),[h,m,g]=Rc(f=>{const v=u().filter(C=>!C.disabled),y=v.find(C=>C.value===s.value),w=Pc(v,f,y);w!==void 0&&s.onValueChange(w.value)}),x=f=>{a||(s.onOpenChange(!0),g()),f&&(s.triggerPointerDownPosRef.current={x:Math.round(f.pageX),y:Math.round(f.pageY)})};return c.jsx(Ul,{asChild:!0,...i,children:c.jsx(le.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":Tc(s.value)?"":void 0,...o,ref:l,onClick:X(o.onClick,f=>{f.currentTarget.focus(),p.current!=="mouse"&&x(f)}),onPointerDown:X(o.onPointerDown,f=>{p.current=f.pointerType;const v=f.target;v.hasPointerCapture(f.pointerId)&&v.releasePointerCapture(f.pointerId),f.button===0&&f.ctrlKey===!1&&f.pointerType==="mouse"&&(x(f),f.preventDefault())}),onKeyDown:X(o.onKeyDown,f=>{const v=h.current!=="";!(f.ctrlKey||f.altKey||f.metaKey)&&f.key.length===1&&m(f.key),!(v&&f.key===" ")&&Rg.includes(f.key)&&(x(),f.preventDefault())})})})});ac.displayName=sc;var lc="SelectValue",cc=d.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:s="",...a}=e,l=Ot(lc,n),{onValueNodeHasChildrenChange:u}=l,p=i!==void 0,h=de(t,l.onValueNodeChange);return _e(()=>{u(p)},[u,p]),c.jsx(le.span,{...a,ref:h,style:{pointerEvents:"none"},children:Tc(l.value)?c.jsx(c.Fragment,{children:s}):i})});cc.displayName=lc;var kg="SelectIcon",uc=d.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return c.jsx(le.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});uc.displayName=kg;var tn="SelectContent",dc=d.forwardRef((e,t)=>{const n=Ot(tn,e.__scopeSelect),[r,o]=d.useState();if(_e(()=>{o(new DocumentFragment)},[]),!n.open){const i=r;return i?zn.createPortal(c.jsx(fc,{scope:e.__scopeSelect,children:c.jsx(fo.Slot,{scope:e.__scopeSelect,children:c.jsx("div",{children:e.children})})}),i):null}return c.jsx(pc,{...e,ref:t})});dc.displayName=tn;var ze=10,[fc,It]=Tn(tn),Lg="SelectContentImpl",Dg=Im("SelectContent.RemoveScroll"),pc=d.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:s,side:a,sideOffset:l,align:u,alignOffset:p,arrowPadding:h,collisionBoundary:m,collisionPadding:g,sticky:x,hideWhenDetached:f,avoidCollisions:v,...y}=e,w=Ot(tn,n),[C,S]=d.useState(null),[T,P]=d.useState(null),R=de(t,M=>S(M)),[D,k]=d.useState(null),[L,W]=d.useState(null),z=po(n),[U,V]=d.useState(!1),se=d.useRef(!1);d.useEffect(()=>{if(C)return ql(C)},[C]),tl();const G=d.useCallback(M=>{const[ne,...me]=z().map(ee=>ee.ref.current),[J]=me.slice(-1),re=document.activeElement;for(const ee of M)if(ee===re||(ee==null||ee.scrollIntoView({block:"nearest"}),ee===ne&&T&&(T.scrollTop=0),ee===J&&T&&(T.scrollTop=T.scrollHeight),ee==null||ee.focus(),document.activeElement!==re))return},[z,T]),Z=d.useCallback(()=>G([D,C]),[G,D,C]);d.useEffect(()=>{U&&Z()},[U,Z]);const{onOpenChange:$,triggerPointerDownPosRef:ae}=w;d.useEffect(()=>{if(C){let M={x:0,y:0};const ne=J=>{var re,ee;M={x:Math.abs(Math.round(J.pageX)-(((re=ae.current)==null?void 0:re.x)??0)),y:Math.abs(Math.round(J.pageY)-(((ee=ae.current)==null?void 0:ee.y)??0))}},me=J=>{M.x<=10&&M.y<=10?J.preventDefault():C.contains(J.target)||$(!1),document.removeEventListener("pointermove",ne),ae.current=null};return ae.current!==null&&(document.addEventListener("pointermove",ne),document.addEventListener("pointerup",me,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ne),document.removeEventListener("pointerup",me,{capture:!0})}}},[C,$,ae]),d.useEffect(()=>{const M=()=>$(!1);return window.addEventListener("blur",M),window.addEventListener("resize",M),()=>{window.removeEventListener("blur",M),window.removeEventListener("resize",M)}},[$]);const[we,$e]=Rc(M=>{const ne=z().filter(re=>!re.disabled),me=ne.find(re=>re.ref.current===document.activeElement),J=Pc(ne,M,me);J&&setTimeout(()=>J.ref.current.focus())}),Wt=d.useCallback((M,ne,me)=>{const J=!se.current&&!me;(w.value!==void 0&&w.value===ne||J)&&(k(M),J&&(se.current=!0))},[w.value]),Ht=d.useCallback(()=>C==null?void 0:C.focus(),[C]),lt=d.useCallback((M,ne,me)=>{const J=!se.current&&!me;(w.value!==void 0&&w.value===ne||J)&&W(M)},[w.value]),Vt=r==="popper"?Mi:hc,Ye=Vt===Mi?{side:a,sideOffset:l,align:u,alignOffset:p,arrowPadding:h,collisionBoundary:m,collisionPadding:g,sticky:x,hideWhenDetached:f,avoidCollisions:v}:{};return c.jsx(fc,{scope:n,content:C,viewport:T,onViewportChange:P,itemRefCallback:Wt,selectedItem:D,onItemLeave:Ht,itemTextRefCallback:lt,focusSelectedItem:Z,selectedItemText:L,position:r,isPositioned:U,searchRef:we,children:c.jsx(Ni,{as:Dg,allowPinchZoom:!0,children:c.jsx(gi,{asChild:!0,trapped:w.open,onMountAutoFocus:M=>{M.preventDefault()},onUnmountAutoFocus:X(o,M=>{var ne;(ne=w.trigger)==null||ne.focus({preventScroll:!0}),M.preventDefault()}),children:c.jsx(zr,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:M=>M.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:c.jsx(Vt,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:M=>M.preventDefault(),...y,...Ye,onPlaced:()=>V(!0),ref:R,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:X(y.onKeyDown,M=>{const ne=M.ctrlKey||M.altKey||M.metaKey;if(M.key==="Tab"&&M.preventDefault(),!ne&&M.key.length===1&&$e(M.key),["ArrowUp","ArrowDown","Home","End"].includes(M.key)){let J=z().filter(re=>!re.disabled).map(re=>re.ref.current);if(["ArrowUp","End"].includes(M.key)&&(J=J.slice().reverse()),["ArrowUp","ArrowDown"].includes(M.key)){const re=M.target,ee=J.indexOf(re);J=J.slice(ee+1)}setTimeout(()=>G(J)),M.preventDefault()}})})})})})})});pc.displayName=Lg;var Ng="SelectItemAlignedPosition",hc=d.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=Ot(tn,n),s=It(tn,n),[a,l]=d.useState(null),[u,p]=d.useState(null),h=de(t,R=>p(R)),m=po(n),g=d.useRef(!1),x=d.useRef(!0),{viewport:f,selectedItem:v,selectedItemText:y,focusSelectedItem:w}=s,C=d.useCallback(()=>{if(i.trigger&&i.valueNode&&a&&u&&f&&v&&y){const R=i.trigger.getBoundingClientRect(),D=u.getBoundingClientRect(),k=i.valueNode.getBoundingClientRect(),L=y.getBoundingClientRect();if(i.dir!=="rtl"){const re=L.left-D.left,ee=k.left-re,Re=R.left-ee,Fe=R.width+Re,ct=Math.max(Fe,D.width),Ze=window.innerWidth-ze,zt=Ka(ee,[ze,Math.max(ze,Ze-ct)]);a.style.minWidth=Fe+"px",a.style.left=zt+"px"}else{const re=D.right-L.right,ee=window.innerWidth-k.right-re,Re=window.innerWidth-R.right-ee,Fe=R.width+Re,ct=Math.max(Fe,D.width),Ze=window.innerWidth-ze,zt=Ka(ee,[ze,Math.max(ze,Ze-ct)]);a.style.minWidth=Fe+"px",a.style.right=zt+"px"}const W=m(),z=window.innerHeight-ze*2,U=f.scrollHeight,V=window.getComputedStyle(u),se=parseInt(V.borderTopWidth,10),G=parseInt(V.paddingTop,10),Z=parseInt(V.borderBottomWidth,10),$=parseInt(V.paddingBottom,10),ae=se+G+U+$+Z,we=Math.min(v.offsetHeight*5,ae),$e=window.getComputedStyle(f),Wt=parseInt($e.paddingTop,10),Ht=parseInt($e.paddingBottom,10),lt=R.top+R.height/2-ze,Vt=z-lt,Ye=v.offsetHeight/2,M=v.offsetTop+Ye,ne=se+G+M,me=ae-ne;if(ne<=lt){const re=W.length>0&&v===W[W.length-1].ref.current;a.style.bottom="0px";const ee=u.clientHeight-f.offsetTop-f.offsetHeight,Re=Math.max(Vt,Ye+(re?Ht:0)+ee+Z),Fe=ne+Re;a.style.height=Fe+"px"}else{const re=W.length>0&&v===W[0].ref.current;a.style.top="0px";const Re=Math.max(lt,se+f.offsetTop+(re?Wt:0)+Ye)+me;a.style.height=Re+"px",f.scrollTop=ne-lt+f.offsetTop}a.style.margin=`${ze}px 0`,a.style.minHeight=we+"px",a.style.maxHeight=z+"px",r==null||r(),requestAnimationFrame(()=>g.current=!0)}},[m,i.trigger,i.valueNode,a,u,f,v,y,i.dir,r]);_e(()=>C(),[C]);const[S,T]=d.useState();_e(()=>{u&&T(window.getComputedStyle(u).zIndex)},[u]);const P=d.useCallback(R=>{R&&x.current===!0&&(C(),w==null||w(),x.current=!1)},[C,w]);return c.jsx($g,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:g,onScrollButtonChange:P,children:c.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:c.jsx(le.div,{...o,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});hc.displayName=Ng;var Mg="SelectPopperPosition",Mi=d.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=ze,...i}=e,s=ho(n);return c.jsx(Wl,{...s,...i,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.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)"}})});Mi.displayName=Mg;var[$g,$i]=Tn(tn,{}),Fi="SelectViewport",mc=d.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,i=It(Fi,n),s=$i(Fi,n),a=de(t,i.onViewportChange),l=d.useRef(0);return c.jsxs(c.Fragment,{children:[c.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),c.jsx(fo.Slot,{scope:n,children:c.jsx(le.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:X(o.onScroll,u=>{const p=u.currentTarget,{contentWrapper:h,shouldExpandOnScrollRef:m}=s;if(m!=null&&m.current&&h){const g=Math.abs(l.current-p.scrollTop);if(g>0){const x=window.innerHeight-ze*2,f=parseFloat(h.style.minHeight),v=parseFloat(h.style.height),y=Math.max(f,v);if(y<x){const w=y+g,C=Math.min(x,w),S=w-C;h.style.height=C+"px",h.style.bottom==="0px"&&(p.scrollTop=S>0?S:0,h.style.justifyContent="flex-end")}}}l.current=p.scrollTop})})})]})});mc.displayName=Fi;var gc="SelectGroup",[Fg,Bg]=Tn(gc),vc=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Xt();return c.jsx(Fg,{scope:n,id:o,children:c.jsx(le.div,{role:"group","aria-labelledby":o,...r,ref:t})})});vc.displayName=gc;var yc="SelectLabel",Ug=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Bg(yc,n);return c.jsx(le.div,{id:o.id,...r,ref:t})});Ug.displayName=yc;var mo="SelectItem",[Wg,bc]=Tn(mo),wc=d.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...s}=e,a=Ot(mo,n),l=It(mo,n),u=a.value===r,[p,h]=d.useState(i??""),[m,g]=d.useState(!1),x=de(t,w=>{var C;return(C=l.itemRefCallback)==null?void 0:C.call(l,w,r,o)}),f=Xt(),v=d.useRef("touch"),y=()=>{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 c.jsx(Wg,{scope:n,value:r,disabled:o,textId:f,isSelected:u,onItemTextChange:d.useCallback(w=>{h(C=>C||((w==null?void 0:w.textContent)??"").trim())},[]),children:c.jsx(fo.ItemSlot,{scope:n,value:r,disabled:o,textValue:p,children:c.jsx(le.div,{role:"option","aria-labelledby":f,"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,...s,ref:x,onFocus:X(s.onFocus,()=>g(!0)),onBlur:X(s.onBlur,()=>g(!1)),onClick:X(s.onClick,()=>{v.current!=="mouse"&&y()}),onPointerUp:X(s.onPointerUp,()=>{v.current==="mouse"&&y()}),onPointerDown:X(s.onPointerDown,w=>{v.current=w.pointerType}),onPointerMove:X(s.onPointerMove,w=>{var C;v.current=w.pointerType,o?(C=l.onItemLeave)==null||C.call(l):v.current==="mouse"&&w.currentTarget.focus({preventScroll:!0})}),onPointerLeave:X(s.onPointerLeave,w=>{var C;w.currentTarget===document.activeElement&&((C=l.onItemLeave)==null||C.call(l))}),onKeyDown:X(s.onKeyDown,w=>{var S;((S=l.searchRef)==null?void 0:S.current)!==""&&w.key===" "||(Pg.includes(w.key)&&y(),w.key===" "&&w.preventDefault())})})})})});wc.displayName=mo;var er="SelectItemText",_c=d.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,s=Ot(er,n),a=It(er,n),l=bc(er,n),u=jg(er,n),[p,h]=d.useState(null),m=de(t,y=>h(y),l.onItemTextChange,y=>{var w;return(w=a.itemTextRefCallback)==null?void 0:w.call(a,y,l.value,l.disabled)}),g=p==null?void 0:p.textContent,x=d.useMemo(()=>c.jsx("option",{value:l.value,disabled:l.disabled,children:g},l.value),[l.disabled,l.value,g]),{onNativeOptionAdd:f,onNativeOptionRemove:v}=u;return _e(()=>(f(x),()=>v(x)),[f,v,x]),c.jsxs(c.Fragment,{children:[c.jsx(le.span,{id:l.textId,...i,ref:m}),l.isSelected&&s.valueNode&&!s.valueNodeHasChildren?zn.createPortal(i.children,s.valueNode):null]})});_c.displayName=er;var xc="SelectItemIndicator",Cc=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return bc(xc,n).isSelected?c.jsx(le.span,{"aria-hidden":!0,...r,ref:t}):null});Cc.displayName=xc;var Bi="SelectScrollUpButton",Hg=d.forwardRef((e,t)=>{const n=It(Bi,e.__scopeSelect),r=$i(Bi,e.__scopeSelect),[o,i]=d.useState(!1),s=de(t,r.onScrollButtonChange);return _e(()=>{if(n.viewport&&n.isPositioned){let a=function(){const u=l.scrollTop>0;i(u)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?c.jsx(Sc,{...e,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop-l.offsetHeight)}}):null});Hg.displayName=Bi;var Ui="SelectScrollDownButton",Vg=d.forwardRef((e,t)=>{const n=It(Ui,e.__scopeSelect),r=$i(Ui,e.__scopeSelect),[o,i]=d.useState(!1),s=de(t,r.onScrollButtonChange);return _e(()=>{if(n.viewport&&n.isPositioned){let a=function(){const u=l.scrollHeight-l.clientHeight,p=Math.ceil(l.scrollTop)<u;i(p)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?c.jsx(Sc,{...e,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop+l.offsetHeight)}}):null});Vg.displayName=Ui;var Sc=d.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=It("SelectScrollButton",n),s=d.useRef(null),a=po(n),l=d.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return d.useEffect(()=>()=>l(),[l]),_e(()=>{var p;const u=a().find(h=>h.ref.current===document.activeElement);(p=u==null?void 0:u.ref.current)==null||p.scrollIntoView({block:"nearest"})},[a]),c.jsx(le.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:X(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:X(o.onPointerMove,()=>{var u;(u=i.onItemLeave)==null||u.call(i),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:X(o.onPointerLeave,()=>{l()})})}),zg="SelectSeparator",Gg=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return c.jsx(le.div,{"aria-hidden":!0,...r,ref:t})});Gg.displayName=zg;var Wi="SelectArrow",qg=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=ho(n),i=Ot(Wi,n),s=It(Wi,n);return i.open&&s.position==="popper"?c.jsx(Hl,{...o,...r,ref:t}):null});qg.displayName=Wi;var Kg="SelectBubbleInput",Ec=d.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=d.useRef(null),i=de(r,o),s=Bm(t);return d.useEffect(()=>{const a=o.current;if(!a)return;const l=window.HTMLSelectElement.prototype,p=Object.getOwnPropertyDescriptor(l,"value").set;if(s!==t&&p){const h=new Event("change",{bubbles:!0});p.call(a,t),a.dispatchEvent(h)}},[s,t]),c.jsx(le.select,{...n,style:{...Vl,...n.style},ref:i,defaultValue:t})});Ec.displayName=Kg;function Tc(e){return e===""||e===void 0}function Rc(e){const t=Zt(e),n=d.useRef(""),r=d.useRef(0),o=d.useCallback(s=>{const a=n.current+s;t(a),function l(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(a)},[t]),i=d.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return d.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function Pc(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let s=Qg(e,Math.max(i,0));o.length===1&&(s=s.filter(u=>u!==n));const l=s.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function Qg(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Yg=ic,Zg=ac,Xg=cc,Jg=uc,ev=dc,tv=mc,nv=vc,rv=wc,ov=_c,iv=Cc;const rt={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"},sv=E("Select2",q(({label:e,helperText:t,value:n,onValueChange:r,options:o,placeholder:i="Select",disabled:s=!1,className:a,name:l},u)=>c.jsxs("div",{className:j(rt.Container,a),children:[e&&c.jsx("label",{className:rt.Label,children:e}),c.jsxs(Yg,{value:n,onValueChange:r,disabled:s,name:l,children:[c.jsxs(Zg,{ref:u,className:rt.Trigger,children:[c.jsx(Xg,{placeholder:i}),c.jsx(Jg,{className:rt.TriggerIcon,children:c.jsx(av,{})})]}),c.jsx(ev,{className:rt.Content,position:"popper",sideOffset:4,children:c.jsx(tv,{className:rt.Viewport,children:c.jsx(nv,{children:o.map(p=>c.jsxs(rv,{value:p.value,disabled:p.disabled,className:rt.Item,children:[c.jsx("div",{className:rt.ItemIndicatorContainer,children:c.jsx(iv,{className:rt.ItemIndicator,children:c.jsx(lv,{})})}),c.jsx(ov,{children:p.label})]},p.value))})})})]}),t&&c.jsx("div",{className:rt.HelperText,children:t})]})));sv.displayName="Select";const av=()=>c.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.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"}),c.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"})]}),lv=()=>c.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M13.3333 4L6 11.3333L2.66667 8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),cv={TextArea:"TextArea__pa-A0"},uv=E("TextArea",q(({children:e,className:t,...n},r)=>{const o=j(cv.TextArea,t);return c.jsx("textarea",{ref:r,className:o,...n,children:e})}));uv.displayName="TextArea";function dv(e,t){return d.useReducer((n,r)=>t[n][r]??n,e)}var Rn=e=>{const{present:t,children:n}=e,r=fv(t),o=typeof n=="function"?n({present:r.isPresent}):d.Children.only(n),i=de(r.ref,pv(o));return typeof n=="function"||r.isPresent?d.cloneElement(o,{ref:i}):null};Rn.displayName="Presence";function fv(e){const[t,n]=d.useState(),r=d.useRef(null),o=d.useRef(e),i=d.useRef("none"),s=e?"mounted":"unmounted",[a,l]=dv(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const u=go(r.current);i.current=a==="mounted"?u:"none"},[a]),_e(()=>{const u=r.current,p=o.current;if(p!==e){const m=i.current,g=go(u);e?l("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(p&&m!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),_e(()=>{if(t){let u;const p=t.ownerDocument.defaultView??window,h=g=>{const f=go(r.current).includes(CSS.escape(g.animationName));if(g.target===t&&f&&(l("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",u=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},m=g=>{g.target===t&&(i.current=go(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{p.clearTimeout(u),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:d.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function go(e){return(e==null?void 0:e.animationName)||"none"}function pv(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 hv=Symbol("radix.slottable");function mv(e){const t=({children:n})=>c.jsx(c.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=hv,t}var[vo]=Zn("Tooltip",[no]),yo=no(),Ac="TooltipProvider",gv=700,Hi="tooltip.open",[vv,Vi]=vo(Ac),Oc=e=>{const{__scopeTooltip:t,delayDuration:n=gv,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,s=d.useRef(!0),a=d.useRef(!1),l=d.useRef(0);return d.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),c.jsx(vv,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:d.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:d.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:d.useCallback(u=>{a.current=u},[]),disableHoverableContent:o,children:i})};Oc.displayName=Ac;var tr="Tooltip",[yv,nr]=vo(tr),Ic=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:i,disableHoverableContent:s,delayDuration:a}=e,l=Vi(tr,e.__scopeTooltip),u=yo(t),[p,h]=d.useState(null),m=Xt(),g=d.useRef(0),x=s??l.disableHoverableContent,f=a??l.delayDuration,v=d.useRef(!1),[y,w]=ro({prop:r,defaultProp:o??!1,onChange:R=>{R?(l.onOpen(),document.dispatchEvent(new CustomEvent(Hi))):l.onClose(),i==null||i(R)},caller:tr}),C=d.useMemo(()=>y?v.current?"delayed-open":"instant-open":"closed",[y]),S=d.useCallback(()=>{window.clearTimeout(g.current),g.current=0,v.current=!1,w(!0)},[w]),T=d.useCallback(()=>{window.clearTimeout(g.current),g.current=0,w(!1)},[w]),P=d.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{v.current=!0,w(!0),g.current=0},f)},[f,w]);return d.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),c.jsx(Bl,{...u,children:c.jsx(yv,{scope:t,contentId:m,open:y,stateAttribute:C,trigger:p,onTriggerChange:h,onTriggerEnter:d.useCallback(()=>{l.isOpenDelayedRef.current?P():S()},[l.isOpenDelayedRef,P,S]),onTriggerLeave:d.useCallback(()=>{x?T():(window.clearTimeout(g.current),g.current=0)},[T,x]),onOpen:S,onClose:T,disableHoverableContent:x,children:n})})};Ic.displayName=tr;var zi="TooltipTrigger",jc=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=nr(zi,n),i=Vi(zi,n),s=yo(n),a=d.useRef(null),l=de(t,a,o.onTriggerChange),u=d.useRef(!1),p=d.useRef(!1),h=d.useCallback(()=>u.current=!1,[]);return d.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),c.jsx(Ul,{asChild:!0,...s,children:c.jsx(le.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:X(e.onPointerMove,m=>{m.pointerType!=="touch"&&!p.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),p.current=!0)}),onPointerLeave:X(e.onPointerLeave,()=>{o.onTriggerLeave(),p.current=!1}),onPointerDown:X(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:X(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:X(e.onBlur,o.onClose),onClick:X(e.onClick,o.onClose)})})});jc.displayName=zi;var Gi="TooltipPortal",[bv,wv]=vo(Gi,{forceMount:void 0}),kc=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,i=nr(Gi,t);return c.jsx(bv,{scope:t,forceMount:n,children:c.jsx(Rn,{present:n||i.open,children:c.jsx(Oi,{asChild:!0,container:o,children:r})})})};kc.displayName=Gi;var Pn="TooltipContent",Lc=d.forwardRef((e,t)=>{const n=wv(Pn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=nr(Pn,e.__scopeTooltip);return c.jsx(Rn,{present:r||s.open,children:s.disableHoverableContent?c.jsx(Dc,{side:o,...i,ref:t}):c.jsx(_v,{side:o,...i,ref:t})})}),_v=d.forwardRef((e,t)=>{const n=nr(Pn,e.__scopeTooltip),r=Vi(Pn,e.__scopeTooltip),o=d.useRef(null),i=de(t,o),[s,a]=d.useState(null),{trigger:l,onClose:u}=n,p=o.current,{onPointerInTransitChange:h}=r,m=d.useCallback(()=>{a(null),h(!1)},[h]),g=d.useCallback((x,f)=>{const v=x.currentTarget,y={x:x.clientX,y:x.clientY},w=Ev(y,v.getBoundingClientRect()),C=Tv(y,w),S=Rv(f.getBoundingClientRect()),T=Av([...C,...S]);a(T),h(!0)},[h]);return d.useEffect(()=>()=>m(),[m]),d.useEffect(()=>{if(l&&p){const x=v=>g(v,p),f=v=>g(v,l);return l.addEventListener("pointerleave",x),p.addEventListener("pointerleave",f),()=>{l.removeEventListener("pointerleave",x),p.removeEventListener("pointerleave",f)}}},[l,p,g,m]),d.useEffect(()=>{if(s){const x=f=>{const v=f.target,y={x:f.clientX,y:f.clientY},w=(l==null?void 0:l.contains(v))||(p==null?void 0:p.contains(v)),C=!Pv(y,s);w?m():C&&(m(),u())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[l,p,s,u,m]),c.jsx(Dc,{...e,ref:i})}),[xv,Cv]=vo(tr,{isInside:!1}),Sv=mv("TooltipContent"),Dc=d.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...a}=e,l=nr(Pn,n),u=yo(n),{onClose:p}=l;return d.useEffect(()=>(document.addEventListener(Hi,p),()=>document.removeEventListener(Hi,p)),[p]),d.useEffect(()=>{if(l.trigger){const h=m=>{const g=m.target;g!=null&&g.contains(l.trigger)&&p()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[l.trigger,p]),c.jsx(zr,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:h=>h.preventDefault(),onDismiss:p,children:c.jsxs(Wl,{"data-state":l.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:[c.jsx(Sv,{children:r}),c.jsx(xv,{scope:n,isInside:!0,children:c.jsx(Wm,{id:l.contentId,role:"tooltip",children:o||r})})]})})});Lc.displayName=Pn;var Nc="TooltipArrow",Mc=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=yo(n);return Cv(Nc,n).isInside?null:c.jsx(Hl,{...o,...r,ref:t})});Mc.displayName=Nc;function Ev(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Tv(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 Rv(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 Pv(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const a=t[i],l=t[s],u=a.x,p=a.y,h=l.x,m=l.y;p>r!=m>r&&n<(h-u)*(r-p)/(m-p)+u&&(o=!o)}return o}function Av(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),Ov(t)}function Ov(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 i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.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 i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.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 Iv=Oc,jv=Ic,kv=jc,Lv=kc,Dv=Lc,Nv=Mc;const $c={tooltip:"tooltip__nUuSh",tooltipArrow:"tooltipArrow__W2w-f"},rr=E("Tooltip",({children:e,open:t,displayName:n,tooltipContent:r,className:o,disabled:i,delayDuration:s=300,side:a="right",sideOffset:l=0})=>{const[u,p]=B(!1),h=t!==void 0,g=i?!1:h?t:u,x=f=>{i||h||p(f)};return c.jsx(Iv,{delayDuration:s,children:c.jsxs(jv,{open:g,onOpenChange:x,children:[c.jsx(kv,{asChild:!0,children:e}),c.jsx(Lv,{children:c.jsxs(Dv,{className:j($c.tooltip,o),side:a,sideOffset:l,children:[n,r,c.jsx(Nv,{className:$c.tooltipArrow})]})})]})})});rr.displayName="Tooltip";const Fc={truncatedText:"truncatedText__Y-jSd",overflowing:"overflowing__o8TC-"},Mv=E("TextWithTooltip",({children:e,className:t,tooltipSide:n="top",tooltipClassName:r})=>{const o=mr(null),[i,s]=B(!1);ie(()=>{const l=()=>{if(o.current){const u=o.current.scrollWidth>o.current.clientWidth;s(u)}};return l(),window.addEventListener("resize",l),()=>{window.removeEventListener("resize",l)}},[e]);const a=c.jsx("span",{ref:o,className:j(Fc.truncatedText,i?Fc.overflowing:"",t||""),children:e});return i?c.jsx(rr,{tooltipContent:e,side:n,className:r,children:a}):a});Mv.displayName="TextWithTooltip";const or={SearchInput:"SearchInput__4OFyE",SearchIcon:"SearchIcon__YgnQy",ClearIcon:"ClearIcon__ukRVr",SearchInput__ClearIcon:"SearchInput__ClearIcon__uzVoc",SearchInput__SearchIcon:"SearchInput__SearchIcon__zoDG4"},Bc=E("SearchInput",q(({className:e,placeholder:t="Type to search...",showClearButton:n=!1,showSearchIcon:r=!0,onClear:o,...i},s)=>{const a=j(or.SearchInput,n&&or.SearchInput__ClearIcon,r&&or.SearchInput__SearchIcon,e),l=j(or.SearchIcon),u=j(or.ClearIcon);return c.jsxs("div",{className:a,children:[c.jsx(ui,{ref:s,type:"text",placeholder:t,...i}),r&&c.jsx("svg",{className:l,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.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&&c.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:c.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"})})]})}));Bc.displayName="SearchInput";const nn={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"},An=E("dropdownListStyles",{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"}),qi=E("DropdownList",q(({children:e,className:t,open:n,align:r="right",...o},i)=>{const s=j(An.DropdownList,{[An["DropdownList--open"]]:n,[An["DropdownList--closed"]]:!n,[An["DropdownList--left"]]:r==="left"},t);return c.jsx("div",{ref:i,className:s,...o,children:e})}));qi.displayName="DropdownList";const ir=q(({children:e,className:t,canBeSelected:n=!1,...r},o)=>{const i=j(nn.AutocompleteItem,{[nn["AutocompleteItem--canBeSelected"]]:n},t);return c.jsx("div",{ref:o,className:i,role:n?"option":void 0,...r,children:e})});ir.displayName="AutocompleteItem";const $v=300,Fv={query:"",suggestions:[],loading:!1,error:null},Bv=({suggestionFetcher:e,canAdd:t})=>{const[n,r]=B(Fv);return ie(()=>{r(a=>({...a,loading:!0}));const i=async()=>{try{const a=await e(n.query);t&&!a.some(l=>l.value.toLowerCase()===n.query.toLowerCase())&&a.push({label:`Add "${n.query}"`,value:n.query,isNew:!0}),r(l=>({...l,suggestions:a,loading:!1}))}catch(a){r(l=>({...l,suggestions:[],error:a,loading:!1}))}},s=setTimeout(()=>{i()},$v);return()=>{clearTimeout(s)}},[n.query]),{...n,setQuery:i=>{r(s=>({...s,query:i}))}}},Uc=q(({text:e,query:t,className:n,...r},o)=>{const i=j(nn.AutocompleteHighlighter,n),s=(a,l)=>{const u=a.toLowerCase().indexOf(l.toLowerCase());if(u===-1||l.length===0)return a;const p=a.slice(0,u),h=a.slice(u,u+l.length),m=a.slice(u+l.length);return c.jsxs(c.Fragment,{children:[p,c.jsx("span",{className:nn.AutocompleteHighlighter__match,children:h}),s(m,l)]})};return c.jsx("div",{ref:o,className:i,...r,children:s(e,t)})});Uc.displayName="AutocompleteHighlighter";const Uv=5,Wv=E("SearchAutocomplete",q(({children:e,className:t,canAdd:n,maxSuggestionsShown:r=Uv,searchInputProps:o,keepSelectedOption:i,suggestionFetcher:s,onAccept:a,...l},u)=>{const{query:p,setQuery:h,suggestions:m,loading:g}=Bv({suggestionFetcher:s,canAdd:n}),[x,f]=B(null),v=p.length>0,y=R=>{h(R.target.value)},w=R=>{a==null||a(R),i?(f(R),h(R.value)):h("")},C=()=>{a==null||a(null),f(null),h("")},S=j(nn.SearchAutocomplete,t),T=m.slice(0,r),P=m.slice(r);return c.jsxs("div",{ref:u,className:S,...l,children:[c.jsx(Bc,{...o,value:p,onChange:y,showClearButton:!!x,onClear:C}),e,c.jsxs(qi,{className:nn.DropdownList,open:v&&!x,role:"listbox","aria-label":"Suggestions",children:[g?c.jsx(ir,{children:"Loading..."}):T.map(R=>c.jsxs(ir,{canBeSelected:!0,onClick:w.bind(null,R),children:[c.jsx(Uc,{text:R.label,query:p}),R.description&&c.jsx("span",{className:nn.AutocompleteItemDescription,children:R.description})]},R.value)),!g&&P.length>0&&c.jsxs(ir,{children:[P.length," more results"]}),v&&m.length===0&&!g&&c.jsx(ir,{children:"No results found"})]})]})}));Wv.displayName="SearchAutocomplete";const rn=E("Show",e=>{let t=null,n=null;return bs.forEach(e.children,r=>{const o=r.props.condition;o===void 0?n=r:!t&&o===!0&&(t=r)}),c.jsx(c.Fragment,{children:t||n})});rn.displayName="Show",rn.When=({condition:e,children:t})=>c.jsx(c.Fragment,{children:e&&t}),rn.Else=({render:e,children:t})=>c.jsx(c.Fragment,{children:e||t});var Hv=Symbol.for("react.lazy"),bo=d[" use ".trim().toString()];function Vv(e){return typeof e=="object"&&e!==null&&"then"in e}function Wc(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Hv&&"_payload"in e&&Vv(e._payload)}function zv(e){const t=qv(e),n=d.forwardRef((r,o)=>{let{children:i,...s}=r;Wc(i)&&typeof bo=="function"&&(i=bo(i._payload));const a=d.Children.toArray(i),l=a.find(Qv);if(l){const u=l.props.children,p=a.map(h=>h===l?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:h);return c.jsx(t,{...s,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,p):null})}return c.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var Gv=zv("Slot");function qv(e){const t=d.forwardRef((n,r)=>{let{children:o,...i}=n;if(Wc(o)&&typeof bo=="function"&&(o=bo(o._payload)),d.isValidElement(o)){const s=Zv(o),a=Yv(i,o.props);return o.type!==d.Fragment&&(a.ref=r?vn(r,s):s),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 Qv(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Kv}function Yv(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const l=i(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Zv(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 Hc={SkeletonListContainer:"SkeletonListContainer__MKJhE",Skeleton:"Skeleton__Ovpiw"},Ki=E("Skeleton",q((e,t)=>{const{children:n,className:r,loading:o,height:i=48,width:s,borderRadius:a,style:l,...u}=e;if(!o&&n)return n;const p=Io(n)?Gv:"span";return c.jsx(p,{ref:t,"aria-hidden":!0,className:j(Hc.Skeleton,r),style:{...l,width:s,minWidth:s,height:i,borderRadius:a},"data-inline-skeleton":Io(n)?void 0:!0,tabIndex:-1,...u,children:n})}));Ki.displayName="Skeleton";const Xv=E("SkeletonList",e=>{const{numberOfItems:t,itemsGap:n=2,itemProps:r}=e,o=Array.from({length:t},(i,s)=>s+1);return c.jsx("div",{className:j(Hc.SkeletonListContainer),style:{gap:n},children:o.map(i=>c.jsx(Ki,{loading:!0,...r},i))})});Xv.displayName="SkeletonList";const Vc={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"},Jv=E("Spinner",({className:e,color:t="white",size:n=80,thickness:r})=>{const o=j(Vc.spinner,Vc[`spinner-${t}`],e),i=r??Math.max(n/12,2);return c.jsx("span",{style:{width:n,height:n,borderWidth:i},className:o})});Jv.displayName="Spinner";const wo={switch:"switch__0b2av",disabled:"disabled__KpauE",checked:"checked__2-JV-",thumb:"thumb__fEuKD"},ey=E("Switch",q(({checked:e,defaultChecked:t=!1,onCheckedChange:n,disabled:r=!1,id:o,className:i,name:s,"aria-label":a,"aria-labelledby":l,"aria-describedby":u,...p},h)=>{const[m,g]=Ue.useState(t),x=e!==void 0,f=x?!!e:m,v=()=>{if(r)return;const w=!f;x||g(w),n==null||n(w)},y=w=>{(w.key===" "||w.key==="Enter")&&(w.preventDefault(),v())};return c.jsx("button",{ref:h,type:"button",role:"switch","aria-checked":f,"aria-label":a,"aria-labelledby":l,"aria-describedby":u,disabled:r,id:o,name:s,className:j(wo.switch,{[wo.checked]:f,[wo.disabled]:r}),onClick:v,onKeyDown:y,...p,children:c.jsx("span",{className:wo.thumb,"aria-hidden":"true"})})}));ey.displayName="Switch";const ot={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"},zc=pr(null),Qi=()=>{const e=hr(zc);if(!e)throw new Error("Tabs components must be used within a Tabs provider");return e},y2=E("Tabs",({defaultValue:e,value:t,onValueChange:n,orientation:r="horizontal",className:o="",children:i})=>{const[s,a]=B(e||""),l=t!==void 0,u=l?t:s,p=h=>{l||a(h),n==null||n(h)};return c.jsx(zc.Provider,{value:{value:u,onValueChange:p,orientation:r},children:c.jsx("div",{className:j(ot.tabsRoot,o),children:i})})}),b2=E("TabsList",({className:e="",children:t})=>{const{orientation:n}=Qi(),r=mr(null),o=i=>{var u;const s=(u=r.current)==null?void 0:u.querySelectorAll('[role="tab"]:not([disabled])');if(!s)return;const a=Array.from(s).findIndex(p=>p===document.activeElement);let l=a;switch(i.key){case"ArrowLeft":n==="horizontal"&&(i.preventDefault(),l=a>0?a-1:s.length-1);break;case"ArrowRight":n==="horizontal"&&(i.preventDefault(),l=a<s.length-1?a+1:0);break;case"ArrowUp":n==="vertical"&&(i.preventDefault(),l=a>0?a-1:s.length-1);break;case"ArrowDown":n==="vertical"&&(i.preventDefault(),l=a<s.length-1?a+1:0);break;case"Home":i.preventDefault(),l=0;break;case"End":i.preventDefault(),l=s.length-1;break}if(l!==a){const p=s[l];p.focus(),p.click()}};return c.jsx("div",{ref:r,role:"tablist","aria-orientation":n,onKeyDown:o,className:j(ot.tabsList,n==="horizontal"?ot.tabsListHorizontal:ot.tabsListVertical,e),children:t})}),w2=E("TabsTrigger",({value:e,disabled:t=!1,className:n="",children:r})=>{const{value:o,onValueChange:i,orientation:s}=Qi(),a=o===e,l=()=>{t||i(e)};return c.jsx("button",{role:"tab","aria-selected":a,"aria-controls":`content-${e}`,tabIndex:a?0:-1,disabled:t,onClick:l,className:j(ot.tabsTrigger,s==="horizontal"?ot.tabsTriggerHorizontal:ot.tabsTriggerVertical,a&&ot.tabsTriggerActive,t&&ot.tabsTriggerDisabled,n),children:r})}),_2=E("TabsContent",({value:e,className:t="",children:n})=>{const{value:r}=Qi();return r===e?c.jsx("div",{role:"tabpanel",id:`content-${e}`,"aria-labelledby":`trigger-${e}`,tabIndex:0,className:j(ot.tabsContent,t),children:n}):null}),ty=E("EyeIcon",({className:e,state:t="open",onClick:n})=>t==="open"?c.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:[c.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"}),c.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"})]}):c.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:c.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"})})),Gc={PasswordInput:"PasswordInput__GDJDN",eyeIcon:"eyeIcon__kDExG"},S2=E("PasswordInput",q((e,t)=>{const[n,r]=B("password"),o=ve(()=>{r(i=>i==="password"?"text":"password")},[r]);return c.jsxs("div",{className:j(Gc.PasswordInput,e.className),children:[c.jsx(ui,{type:n,...e,ref:t}),c.jsx(ty,{className:Gc.eyeIcon,onClick:o,state:n==="password"?"open":"closed"})]})}));function ny(e){const t=ry(e),n=d.forwardRef((r,o)=>{const{children:i,...s}=r,a=d.Children.toArray(i),l=a.find(iy);if(l){const u=l.props.children,p=a.map(h=>h===l?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:h);return c.jsx(t,{...s,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,p):null})}return c.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function ry(e){const t=d.forwardRef((n,r)=>{const{children:o,...i}=n;if(d.isValidElement(o)){const s=ay(o),a=sy(i,o.props);return o.type!==d.Fragment&&(a.ref=r?vn(r,s):s),d.cloneElement(o,a)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var oy=Symbol("radix.slottable");function iy(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===oy}function sy(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const l=i(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function ay(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 _o="Dialog",[qc]=Zn(_o),[ly,Ge]=qc(_o),Kc=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,a=d.useRef(null),l=d.useRef(null),[u,p]=ro({prop:r,defaultProp:o??!1,onChange:i,caller:_o});return c.jsx(ly,{scope:t,triggerRef:a,contentRef:l,contentId:Xt(),titleId:Xt(),descriptionId:Xt(),open:u,onOpenChange:p,onOpenToggle:d.useCallback(()=>p(h=>!h),[p]),modal:s,children:n})};Kc.displayName=_o;var Qc="DialogTrigger",cy=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ge(Qc,n),i=de(t,o.triggerRef);return c.jsx(le.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Xi(o.open),...r,ref:i,onClick:X(e.onClick,o.onOpenToggle)})});cy.displayName=Qc;var Yi="DialogPortal",[uy,Yc]=qc(Yi,{forceMount:void 0}),Zc=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=Ge(Yi,t);return c.jsx(uy,{scope:t,forceMount:n,children:d.Children.map(r,s=>c.jsx(Rn,{present:n||i.open,children:c.jsx(Oi,{asChild:!0,container:o,children:s})}))})};Zc.displayName=Yi;var xo="DialogOverlay",Xc=d.forwardRef((e,t)=>{const n=Yc(xo,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Ge(xo,e.__scopeDialog);return i.modal?c.jsx(Rn,{present:r||i.open,children:c.jsx(fy,{...o,ref:t})}):null});Xc.displayName=xo;var dy=ny("DialogOverlay.RemoveScroll"),fy=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ge(xo,n);return c.jsx(Ni,{as:dy,allowPinchZoom:!0,shards:[o.contentRef],children:c.jsx(le.div,{"data-state":Xi(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),on="DialogContent",Jc=d.forwardRef((e,t)=>{const n=Yc(on,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Ge(on,e.__scopeDialog);return c.jsx(Rn,{present:r||i.open,children:i.modal?c.jsx(py,{...o,ref:t}):c.jsx(hy,{...o,ref:t})})});Jc.displayName=on;var py=d.forwardRef((e,t)=>{const n=Ge(on,e.__scopeDialog),r=d.useRef(null),o=de(t,n.contentRef,r);return d.useEffect(()=>{const i=r.current;if(i)return ql(i)},[]),c.jsx(eu,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:X(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:X(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&i.preventDefault()}),onFocusOutside:X(e.onFocusOutside,i=>i.preventDefault())})}),hy=d.forwardRef((e,t)=>{const n=Ge(on,e.__scopeDialog),r=d.useRef(!1),o=d.useRef(!1);return c.jsx(eu,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((u=n.triggerRef.current)==null?void 0:u.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),eu=d.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,a=Ge(on,n),l=d.useRef(null),u=de(t,l);return tl(),c.jsxs(c.Fragment,{children:[c.jsx(gi,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:c.jsx(zr,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Xi(a.open),...s,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),c.jsxs(c.Fragment,{children:[c.jsx(my,{titleId:a.titleId}),c.jsx(vy,{contentRef:l,descriptionId:a.descriptionId})]})]})}),Zi="DialogTitle",tu=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ge(Zi,n);return c.jsx(le.h2,{id:o.titleId,...r,ref:t})});tu.displayName=Zi;var nu="DialogDescription",ru=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ge(nu,n);return c.jsx(le.p,{id:o.descriptionId,...r,ref:t})});ru.displayName=nu;var ou="DialogClose",iu=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ge(ou,n);return c.jsx(le.button,{type:"button",...r,ref:t,onClick:X(e.onClick,()=>o.onOpenChange(!1))})});iu.displayName=ou;function Xi(e){return e?"open":"closed"}var su="DialogTitleWarning",[E2,au]=Ah(su,{contentName:on,titleName:Zi,docsSlug:"dialog"}),my=({titleId:e})=>{const t=au(su),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
250
250
 
251
251
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
252
252
 
253
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return h.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Rg="DialogDescriptionWarning",Ag=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${cc(Rg).contentName}}.`;return h.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Pg=Kl,Og=Jl,kg=ec,jg=tc,Lg=rc,Dg=ic,Ig=ac;const uc={Overlay:"Overlay__M5Z83",Content:"Content__wAkP4"},Lt={Header:"Header__VHxNf",Content:"Content__I04qM",Close:"Close__xSN-7",Title:"Title__Dznh6",Footer:"Footer__-8gzQ",Actions:"Actions__kKF2Q"},dc=W(({children:e,className:t,...n},r)=>{const o=j(Lt.Header,t);return c.jsx("div",{ref:r,className:o,...n,children:e})});dc.displayName="Header";const fc=W(({children:e,className:t,...n},r)=>{const o=j(Lt.Content,t);return c.jsx("div",{ref:r,className:o,...n,children:e})});fc.displayName="Content";const pc=W(({children:e,className:t,...n},r)=>{const o=j(Lt.Footer,t);return c.jsx("div",{ref:r,className:o,...n,children:e})});pc.displayName="Footer";const hc=W(({children:e,className:t,...n},r)=>{const o=j(Lt.Title,t);return c.jsx(Lg,{ref:r,className:o,...n,children:e})});hc.displayName="Title";const mc=W(({className:e,...t},n)=>{const r=j(Lt.Close,e);return c.jsx(Ig,{ref:n,asChild:!0,className:r,...t,children:c.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M11 1L1 11M1 1L11 11",stroke:"#A9A9A9",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})});mc.displayName="Close";const gc=W(({children:e,className:t,...n},r)=>{const o=j(Lt.Actions,t);return c.jsx("div",{ref:r,className:o,...n,children:e})});gc.displayName="Actions";const vc=W(({children:e,className:t,...n},r)=>{const o=j(Lt.Description,t);return c.jsx("div",{ref:r,className:o,...n,children:e})});vc.displayName="Description";const pe=x("Dialog",({children:e,onClose:t,open:n=!1,className:r})=>{const o=()=>{t==null||t()};return c.jsx(Pg,{onOpenChange:o,open:n,children:c.jsxs(Og,{children:[c.jsx(kg,{className:uc.Overlay}),c.jsxs(jg,{children:[c.jsx(Dg,{}),c.jsx("div",{className:j(uc.Content,r),children:e})]})]})})});pe.displayName="Dialog",pe.Header=dc,pe.Content=fc,pe.Footer=pc,pe.Actions=gc,pe.Title=hc,pe.Description=vc,pe.Close=mc;const yc={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"},N0=x("Pill",({children:e,variant:t="solid",className:n})=>{const r=j(yc.pill,yc[`pill--${t}`],n);return c.jsx("div",{className:r,children:e})}),bc={DialogContent:"DialogContent__-WjG9",Message:"Message__AUgVP"},Ng=x("ConfirmDialog",({loading:e,title:t,children:n,className:r,onClose:o,onConfirm:i,...s})=>c.jsxs(pe,{...s,className:j(bc.DialogContent,r),children:[c.jsxs(pe.Header,{children:[c.jsx(pe.Title,{children:t}),c.jsx(pe.Close,{onClick:o})]}),c.jsx(pe.Content,{children:typeof n=="string"?c.jsx("p",{className:bc.Message,children:n}):n}),c.jsx(pe.Footer,{children:c.jsxs(pe.Actions,{children:[c.jsx(Ho,{onClick:o,disabled:e,variant:"outlined",children:"Cancel"}),c.jsx(Ho,{onClick:i,disabled:e,loading:e,variant:"contained",children:"Confirm"})]})})]}));Ng.displayName="ConfirmDialog";const Zr={container:"container__AjtYJ",title:"title__A2vCu",description:"description__bP6Ig",mailToText:"mailToText__SdlsE"},wc=()=>c.jsxs("svg",{width:"200",height:"200",viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.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)"}),c.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)"}),c.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)"}),c.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)"}),c.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)"}),c.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)"}),c.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)"}),c.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)"}),c.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)"}),c.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)"}),c.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)"}),c.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)"}),c.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)"})]});wc.displayName="WarningIcon";const Mg="support@bluealba.com",$g="@bluealba/pae-shell-ui",_c=x("ErrorState",()=>{const{supportEmail:e=Mg}=Ou($g),t=`mailto:${e}?Subject=Support`;return c.jsxs("div",{className:Zr.container,children:[c.jsx(wc,{}),c.jsx("div",{className:Zr.title,children:"Oops! Something went wrong"}),c.jsxs("div",{className:Zr.description,children:["If the error persists, ",c.jsx("a",{className:Zr.mailToText,href:t,children:"contact the administrator."})]})]})});_c.displayName="ErrorState";const Ie={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"},Cc=W(({children:e,className:t,selected:n,disabled:r=!1,...o},i)=>{const s=j(Ie.Item,{[Ie["Item--selected"]]:n,[Ie["Item--disabled"]]:r},t);return c.jsx("li",{ref:i,className:s,role:"listitem","aria-disabled":r,...o,children:e})});Cc.displayName="Item";const xc=W(({children:e,className:t,...n},r)=>{const o=j(Ie.Title,t);return c.jsx("h3",{ref:r,className:o,...n,children:e})});xc.displayName="Title";const Ec=W(({children:e,className:t,...n},r)=>{const o=j(Ie.Description,t);return c.jsx("p",{ref:r,className:o,...n,children:e})});Ec.displayName="Description";const Pi=({className:e,...t})=>c.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:[c.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"}),c.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"}),c.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"})]});Pi.displayName="HorizontalDots";const Sc=W(({children:e,className:t,onClick:n,...r},o)=>{const i=fo(null),[s,a]=$(!1),l=j(Ie.Actions,t),u=()=>{const w=Yt["DropdownList--open"],f=Yt["DropdownList--closed"];document.querySelectorAll(`.${w}`).forEach(_=>{_!==i.current&&(_.classList.remove(w),_.classList.add(f))})},d=w=>{w.stopPropagation(),s?p():(a(!0),n==null||n(w))},p=()=>{a(!1)},m=w=>{w.key==="Escape"&&p()},g=w=>{i.current&&!i.current.contains(w.target)&&p()};return K(()=>(s?(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)}),[s]),c.jsxs("div",{ref:o,className:l,onClick:d,role:"button",tabIndex:0,"data-testid":"actions",...r,children:[c.jsx(Pi,{}),c.jsx(Qo,{align:"left",ref:i,open:s,"data-testid":"actions-dropdown",role:"menu","aria-label":"Actions",children:e})]})});Sc.displayName="Actions";const Tc=W(({children:e,className:t,...n},r)=>{const o=j(Ie.Action,t);return c.jsx("button",{ref:r,className:o,...n,children:e})});Tc.displayName="Action";const Rc=W(({children:e,className:t,...n},r)=>{const o=j(Ie.Icon,t);return c.jsx("div",{ref:r,className:o,...n,children:e})});Rc.displayName="Icon";const Xe=x("List",W(({children:e,className:t,size:n="medium",variant:r,...o},i)=>{const s=j(Ie.List,{[Ie[`List--${n}`]]:n,[Ie[`List--${r}`]]:r},t);return c.jsx("ul",{ref:i,className:s,role:"list",...o,children:e})}));Xe.displayName="List",Xe.Item=Cc,Xe.Badges=wa,Xe.Badge=ba,Xe.Title=xc,Xe.Description=Ec,Xe.Actions=Sc,Xe.Action=Tc,Xe.Icon=Rc;const Je={Navigation:"Navigation__uylxk",PaginationContent:"PaginationContent__UpLw0",PaginationEllipsis:"PaginationEllipsis__perWk",PaginationLink:"PaginationLink__GVUZj",Active:"Active__u1Ahy",Disabled:"Disabled__8WM0y",Prev:"Prev__wp4hc",Next:"Next__eVyL5"},Ac=({className:e,...t})=>c.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:[c.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),c.jsx("path",{d:"M9 6l6 6l-6 6"})]});Ac.displayName="ChevronRight";const Pc=({className:e,...t})=>c.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:[c.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),c.jsx("path",{d:"M15 6l-6 6l6 6"})]});Pc.displayName="ChevronLeft";const Oc=x("Pagination",({className:e,...t})=>c.jsx("nav",{role:"navigation","aria-label":"pagination",className:j(Je.Navigation,e),...t}));Oc.displayName="Pagination";const kc=x("PaginationContent",h.forwardRef(({className:e,...t},n)=>c.jsx("ul",{ref:n,className:j(Je.PaginationContent,e),...t})));kc.displayName="PaginationContent";const Xr=x("PaginationItem",h.forwardRef(({className:e,...t},n)=>c.jsx("li",{ref:n,className:e,...t})));Xr.displayName="PaginationItem";const Jr=x("PaginationLink",({className:e,isActive:t,...n})=>c.jsx("a",{"aria-current":t?"page":void 0,className:j(Je.PaginationLink,t&&Je.Active,e),...n}));Jr.displayName="PaginationLink";const jc=x("PaginationPrevious",({className:e,disabled:t,...n})=>c.jsxs(Jr,{"aria-label":"Go to previous page",className:j(t&&Je.Disabled,Je.Prev,e),...n,children:[c.jsx(Pc,{}),c.jsx("span",{children:"Previous"})]}));jc.displayName="PaginationPrevious";const Lc=x("PaginationNext",({className:e,disabled:t,...n})=>c.jsxs(Jr,{"aria-label":"Go to next page",className:j(t&&Je.Disabled,Je.Next,e),...n,children:[c.jsx("span",{children:"Next"}),c.jsx(Ac,{})]}));Lc.displayName="PaginationNext";const Dc=x("PaginationEllipsis",({className:e,...t})=>c.jsx("span",{"aria-hidden":!0,className:j(Je.PaginationEllipsis,e),...t,children:c.jsx(Pi,{})}));Dc.displayName="PaginationEllipsis";function Fg(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 Ic={exports:{}};(function(e,t){(function(n,r){typeof Fg=="function"?e.exports=r():n.pluralize=r()})(Eu,function(){var n=[],r=[],o={},i={},s={};function a(f){return typeof f=="string"?new RegExp("^"+f+"$","i"):f}function l(f,v){return f===v?v:f===f.toLowerCase()?v.toLowerCase():f===f.toUpperCase()?v.toUpperCase():f[0]===f[0].toUpperCase()?v.charAt(0).toUpperCase()+v.substr(1).toLowerCase():v.toLowerCase()}function u(f,v){return f.replace(/\$(\d{1,2})/g,function(_,C){return v[C]||""})}function d(f,v){return f.replace(v[0],function(_,C){var S=u(v[1],arguments);return l(_===""?f[C-1]:_,S)})}function p(f,v,_){if(!f.length||o.hasOwnProperty(f))return v;for(var C=_.length;C--;){var S=_[C];if(S[0].test(v))return d(v,S)}return v}function m(f,v,_){return function(C){var S=C.toLowerCase();return v.hasOwnProperty(S)?l(C,S):f.hasOwnProperty(S)?l(C,f[S]):p(S,C,_)}}function g(f,v,_,C){return function(S){var E=S.toLowerCase();return v.hasOwnProperty(E)?!0:f.hasOwnProperty(E)?!1:p(E,E,_)===E}}function w(f,v,_){var C=v===1?w.singular(f):w.plural(f);return(_?v+" ":"")+C}return w.plural=m(s,i,n),w.isPlural=g(s,i,n),w.singular=m(i,s,r),w.isSingular=g(i,s,r),w.addPluralRule=function(f,v){n.push([a(f),v])},w.addSingularRule=function(f,v){r.push([a(f),v])},w.addUncountableRule=function(f){if(typeof f=="string"){o[f.toLowerCase()]=!0;return}w.addPluralRule(f,"$0"),w.addSingularRule(f,"$0")},w.addIrregularRule=function(f,v){v=v.toLowerCase(),f=f.toLowerCase(),s[f]=v,i[v]=f},[["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(f){return w.addIrregularRule(f[0],f[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(f){return w.addPluralRule(f[0],f[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(f){return w.addSingularRule(f[0],f[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(w.addUncountableRule),w})})(Ic);var Bg=Ic.exports;const Ug=Su(Bg),Nc=x("PluralizeCounter",({count:e,singularText:t,children:n=(r,o)=>`${r} ${o}`})=>c.jsx(c.Fragment,{children:n(e,Ug(t,e))}));Nc.displayName="PluralizeCounter";const be={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"},Mc={EmptyStateContainer:"EmptyStateContainer__Q9FEb",Message:"Message__IHK6M"},$c=({size:e=64})=>c.jsxs("svg",{width:e,height:e,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsxs("g",{clipPath:"url(#clip-path)",children:[c.jsx("mask",{id:"mask0_1070_8032",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"64",height:"64",children:c.jsx("path",{d:"M64 0H0V64H64V0Z",fill:"white"})}),c.jsx("g",{mask:"url(#mask0_1070_8032)",children:c.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"})})]}),c.jsx("defs",{children:c.jsx("clipPath",{id:"clip-path",children:c.jsx("rect",{width:"64",height:"64",fill:"white"})})})]});$c.displayName="EmptyStateIcon";const Fc=x("EmptyState",({message:e="No results found"})=>c.jsxs("div",{className:j(Mc.EmptyStateContainer),children:[c.jsx($c,{}),c.jsx("p",{className:Mc.Message,children:e})]}));Fc.displayName="EmptyState";const Wg=(e,t,n=1)=>{if(e<=1)return["1"];const r=[],o=i=>{(r.length===0||r[r.length-1]!==i)&&r.push(i)};o(1),t-n>2&&o("...");for(let i=Math.max(2,t-n);i<=Math.min(e-1,t+n);i++)o(i);return t+n<e-1&&o("..."),o(e),r.map(String)},Bc=({page:e,totalPages:t,onPageChange:n})=>{const r=e===1,o=e===t;return c.jsx(Oc,{className:be.Pagination,children:c.jsxs(kc,{children:[c.jsx(Xr,{children:c.jsx(jc,{className:j({[be.PointerNone]:r}),onClick:()=>!r&&n(e-1)})}),Wg(t,e).map((i,s)=>c.jsxs(Xr,{children:[i==="..."&&c.jsx(Dc,{}),i!=="..."&&c.jsx(Jr,{isActive:+i===e,onClick:()=>+i!==e&&n(+i),children:i})]},s)),c.jsx(Xr,{children:c.jsx(Lc,{className:j({[be.PointerNone]:o}),onClick:()=>!o&&n(e+1)})})]})})};Bc.displayName="TablePagination";const Uc=({className:e,...t})=>c.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:c.jsx("path",{d:"M6 2.5V9.5M6 9.5L9.5 6M6 9.5L2.5 6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})});Uc.displayName="ArrowDown";const zg=x("Table",({columns:e,data:t,isLoading:n,totalCount:r=0,headerLabel:o,sort:i,loadingConfig:s,pagination:a,onRowClick:l})=>{const{count:u=5,height:d=40}=s||{},p=v=>v.sortName??v.name,m=v=>j({[be.Cell]:!0,[be.Center]:v.align==="center",[be.Right]:v.align==="right",[be.Sortable]:v.isSortable}),g=v=>{if(!i)return"";const _=p(v);return j({[be.SortIcon]:!0,[be.Active]:v.isSortable&&i.field===_,[be.Rotate]:i.field===_&&i.direction==="asc"})},w=v=>()=>l==null?void 0:l(v),f=v=>()=>{if(!i||!v.isSortable)return;const{field:_,direction:C,onSort:S}=i,E=p(v);_===E?S(E,C==="asc"?"desc":"asc"):S(E,"asc")};return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:be.TableContainer,children:[o&&c.jsx("div",{className:be.TableHeader,children:c.jsx(Nc,{count:r,singularText:o,children:(v,_)=>`${v} ${_}`})}),c.jsxs("table",{className:be.Table,children:[c.jsx("thead",{children:c.jsx("tr",{children:e.map(v=>c.jsx("th",{children:c.jsxs("div",{className:m(v),onClick:f(v),children:[c.jsx("span",{children:v.displayName}),v.isSortable&&c.jsx(Uc,{className:g(v)})]})},v.name))})}),c.jsx("tbody",{children:c.jsxs(Ot,{children:[c.jsx(Ot.When,{condition:n,children:[...Array(u).keys()].map(v=>c.jsx("tr",{children:c.jsx("td",{colSpan:e.length,style:{padding:4},children:c.jsx(Yo,{height:d})})},v))}),c.jsx(Ot.When,{condition:!t.length,children:c.jsx("tr",{children:c.jsx("td",{colSpan:e.length,children:c.jsx(Fc,{})})})}),c.jsx(Ot.Else,{children:t.map((v,_)=>c.jsx("tr",{className:l&&be.selectable,onClick:w(v),children:e.map(C=>c.jsx("td",{style:C.width?{width:C.width}:{},children:c.jsx("div",{className:m(C),children:C.cellRenderer?C.cellRenderer(v):C.valueGetter?C.valueGetter(v):v[C.name]})},`${C.name}-${_}`))},_))})]})})]})]}),a&&c.jsx(Bc,{...a})]})});zg.displayName="Table";const eo={alert:"alert__LblpE",default:"default__mgO6A",destructive:"destructive__bLNSM",alertTitle:"alertTitle__gblKf",alertDescription:"alertDescription__BuVHV"},Oi=x("Alert",({className:e,variant:t="default",children:n,...r})=>c.jsx("div",{"data-slot":"alert",role:"alert",className:j(eo.alert,eo[t],e),...r,children:n})),Hg=h.forwardRef(({children:e,className:t,...n},r)=>c.jsx("div",{ref:r,"data-slot":"alert-title",className:j(eo.alertTitle,t),...n,children:e})),Vg=h.forwardRef(({children:e,className:t,...n},r)=>c.jsx("div",{ref:r,"data-slot":"alert-description",className:j(eo.alertDescription,t),...n,children:e}));Oi.displayName="Alert",Oi.Title=Hg,Oi.Description=Vg;const Gg=x("ThemeToggle",({isNavbarExpanded:e})=>{const{theme:t,setTheme:n}=wp(),r=()=>n(t==="dark"?"light":"dark"),o=c.jsxs("div",{className:j(zo.container,e&&zo.expanded),onClick:r,children:[t==="light"?c.jsx(ha,{}):c.jsx(ma,{}),e&&c.jsx("p",{className:zo.label,children:t==="light"?"Dark Mode":"Light Mode"})]});return e?o:c.jsx(Br,{displayName:t==="light"?"Switch to dark mode":"Switch to light mode",sideOffset:-16,children:o})});Gg.displayName="ToggleTheme";const M2=x("authorized",(e,t)=>{const n=r=>c.jsx(pa,{operations:t,children:c.jsx(e,{...r})});return n.displayName="Authorized",n});function Wc(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 to(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Wc(Object(n),!0).forEach(function(r){qg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wc(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zc(e){return(zc=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 qg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ki(e){return(ki=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 Hc(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 i="single-spa-application:".concat(o);return function(){var s=document.getElementById(i);return s||((s=document.createElement("div")).id=i,document.body.appendChild(s)),s}}(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(ki(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(ki(r)));return r}}var Mn=null;try{Mn=require("react").createContext()}catch{}var Qg={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 Yg(e){if(zc(e)!=="object")throw new Error("single-spa-react requires a configuration object");var t,n=to(to({},Qg),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");!Mn&&n.React.createContext&&(Mn=n.React.createContext()),n.SingleSpaRoot=function(o){function i(s){i.displayName="SingleSpaRoot(".concat(s.name,")")}return i.prototype=Object.create(o.React.Component.prototype),i.prototype.componentDidMount=function(){setTimeout(this.props.mountFinished)},i.prototype.componentWillUnmount=function(){setTimeout(this.props.unmountFinished)},i.prototype.render=function(){return setTimeout(this.props.updateFinished),this.props.children},i}(n);var r={bootstrap:Kg.bind(null,n),mount:Zg.bind(null,n),unmount:Xg.bind(null,n)};return n.parcelCanUpdate&&(r.update=Jg.bind(null,n)),r}function Kg(e,t){return e.rootComponent?Promise.resolve():e.loadRootComponent(t).then(function(n){e.rootComponent=n})}function Zg(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 l=a.version.slice(0,a.version.indexOf("."));try{return Number(l)>=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=Vc(e,t,function(){n(this)}),i=Hc(e,t)(),s=function(a){var l=a.reactDom,u=a.renderType,d=a.elementToRender,p=a.domElement,m=l[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(p);return g.render(d),g;case"hydrateRoot":return m(p,d);case"hydrate":default:return m(d,p),null}}({elementToRender:o,domElement:i,reactDom:ji(e),renderType:ev(e)});e.domElements[t.name]=i,e.renderResults[t.name]=s})}function Xg(e,t){return new Promise(function(n){e.unmountResolves[t.name]=n;var r=e.renderResults[t.name];r&&r.unmount?r.unmount():ji(e).unmountComponentAtNode(e.domElements[t.name]),delete e.domElements[t.name],delete e.renderResults[t.name]})}function Jg(e,t){return new Promise(function(n){e.updateResolves[t.name]||(e.updateResolves[t.name]=[]),e.updateResolves[t.name].push(n);var r=Vc(e,t,null),o=e.renderResults[t.name];if(o&&o.render)o.render(r);else{var i=Hc(e,t)();ji(e).render(r,i)}})}function ji(e){return e.ReactDOMClient||e.ReactDOM}function ev(e){return typeof e.renderType=="function"?e.renderType():e.renderType}function Vc(e,t,n){var r=e.React.createElement(e.rootComponent,t),o=Mn?e.React.createElement(Mn.Provider,{value:t},r):r;return(e.errorBoundary||t.errorBoundary||e.errorBoundaryClass||t.errorBoundaryClass)&&(e.errorBoundaryClass=e.errorBoundaryClass||t.errorBoundaryClass||function(i,s){function a(l){i.React.Component.apply(this,arguments),this.state={caughtError:null,caughtErrorInfo:null},a.displayName="SingleSpaReactErrorBoundary(".concat(l.name,")")}return a.prototype=Object.create(i.React.Component.prototype),a.prototype.render=function(){return this.state.caughtError?(i.errorBoundary||s.errorBoundary)(this.state.caughtError,this.state.caughtErrorInfo,this.props):this.props.children},a.prototype.componentDidCatch=function(l,u){this.setState({caughtError:l,caughtErrorInfo:u})},a}(e,t),o=e.React.createElement(e.errorBoundaryClass,t,o)),o=e.React.createElement(e.SingleSpaRoot,to(to({},t),{},{mountFinished:n,updateFinished:function(){e.updateResolves[t.name]&&(e.updateResolves[t.name].forEach(function(i){return i()}),delete e.updateResolves[t.name])},unmountFinished:function(){e.unmountResolves[t.name]&&(e.unmountResolves[t.name](),delete e.unmountResolves[t.name])}}),o)}const tv=e=>{const t=new jf;return function(r){if(!r)throw new Error("Microfrontend did not receive any properties !!");const o=cs(r.module.name);return c.jsx(ss,{module:o,children:c.jsxs(Mf,{client:t,children:[c.jsx(e,{...r}),c.jsx(gf,{position:"top-right",reverseOrder:!0})]})})}},$2=x("initializeMicroFrontend",({rootComponent:e,...t})=>Yg({errorBoundary(n){return console.error(n),c.jsx(_c,{})},...t,rootComponent:tv(e)})),F2=x("setupTestEnvironment",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:{}};Object.defineProperty(window,Tn,{value:e?qu(t,e):t})}),Gc=x("useFeatureFlags",()=>{const[e]=Kn();return e.featureFlags}),B2=x("useFeatureFlag",e=>!!Gc()[e]),nv=x("FeatureFlagGuard",({flag:e,children:t,fallback:n=null,invert:r=!1})=>{const i=Gc()[e]===!0;return(r?!i:i)?c.jsx(c.Fragment,{children:t}):c.jsx(c.Fragment,{children:n})});nv.displayName="FeatureFlagGuard";const qc=qn(null);function Qc(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 Li={JOIN_ROOM:"join_room",LEAVE_ROOM:"leave_room",USER_LIST:"user_list"},U2=x("RoomsProvider",({children:e})=>{const t=ed("@bluealba/pae-rooms-service"),[n,r]=$([]),[o,i]=$("loading"),[s,a]=$(null);K(()=>{if(t){const f=new WebSocket(t);return f.onopen=()=>{i("connected")},f.addEventListener("message",async v=>{try{const _=await l(v);_.event===Li.USER_LIST&&m(_.data)}catch(_){console.error("Error parsing WebSocket message:",_)}}),f.onclose=()=>{i("closed")},f.onerror=v=>{console.error("Rooms WebSocket error",v),i("error")},a(f),()=>{f.close()}}},[t]);const l=async f=>{if(f.data instanceof Blob){const v=await f.data.text();return JSON.parse(v)}else return JSON.parse(f.data)},u=(f,v)=>{s&&s.readyState===WebSocket.OPEN&&setTimeout(()=>{s.send(JSON.stringify({event:f,data:v}))},100)},d=f=>{u(Li.JOIN_ROOM,{roomId:f})},p=f=>{u(Li.LEAVE_ROOM,{roomId:f})},m=f=>{r(f.map(v=>({...v,username:v.username.toLowerCase(),color:Qc(v.username)})))},g=se(f=>n.filter(v=>v.rooms.includes(f)),[n]),w={status:o,getRoomUsers:g,joinRoom:d,leaveRoom:p};return c.jsx(qc.Provider,{value:w,children:e})}),rv=x("DEFAULT_OPTIONS",{autoJoin:!0,autoLeave:!0});function ov(e,t=rv){const{autoJoin:n,autoLeave:r}=t,o=Qn(qc),{authUser:i}=Jn();if(!o)throw new Error("useRoom must be used within RoomsProvider");const s=()=>{if(n){console.warn("[useRoom] Ignoring manual joinRoom call because autoJoin is enabled.",{roomId:e});return}return o.joinRoom(e)},a=()=>{if(r){console.warn("[useRoom] Ignoring manual leaveRoom call because autoLeave is enabled.",{roomId:e});return}return o.leaveRoom(e)};K(()=>{if(!(!e||o.status!=="connected"))return n&&o.joinRoom(e),()=>{r&&o.leaveRoom(e)}},[o.status,e]);const l=o.getRoomUsers(e),u=l.findIndex(d=>d.username===(i==null?void 0:i.username))!==-1;return{users:l,roomId:e,hasJoined:u,joinRoom:s,leaveRoom:a}}const $n={container:"container__LbyGQ",avatarWrapper:"avatarWrapper__HCQIZ",avatar:"avatar__E453a",overflowWrapper:"overflowWrapper__ETnPO",overflowBadge:"overflowBadge__igBKT"},iv={sm:24,md:32,lg:40},q2=x("RoomAvatars",({users:e,maxVisible:t=5,size:n="md",overlap:r=!0,className:o="",onUserClick:i})=>{const s=iv[n],a=Re(()=>e.slice(0,t),[e,t]),l=Re(()=>e.slice(t),[e,t]),u=Math.max(0,e.length-t),d=p=>p.split(" ").map(m=>m[0]).join("").toUpperCase().slice(0,2);return c.jsxs("div",{className:j($n.container,o),children:[a.map((p,m)=>c.jsx(Br,{tooltipContent:p.displayName,side:"bottom",children:c.jsx("div",{className:$n.avatarWrapper,style:{marginLeft:m>0&&r?`-${s*.25}px`:void 0},onClick:()=>i==null?void 0:i(p),children:c.jsx("div",{className:$n.avatar,style:{width:s,height:s,backgroundColor:p.color,fontSize:n==="sm"?"10px":n==="md"?"12px":"14px",cursor:i?"pointer":"default"},children:d(p.displayName)})})},p.username)),u>0&&c.jsx(Br,{side:"bottom",tooltipContent:c.jsx("div",{children:l.map(p=>c.jsx("p",{children:p.displayName},p.username))}),children:c.jsx("div",{className:$n.overflowWrapper,style:{marginLeft:r?`-${s*.25}px`:void 0},children:c.jsxs("div",{className:$n.overflowBadge,style:{width:s,height:s,fontSize:n==="sm"?"10px":n==="md"?"12px":"14px"},children:["+",u]})})})]})})}}});
253
+ 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},gy="DialogDescriptionWarning",vy=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${au(gy).contentName}}.`;return d.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},yy=Kc,by=Zc,wy=Xc,_y=Jc,xy=tu,Cy=ru,Sy=iu;const lu={Overlay:"Overlay__M5Z83",Content:"Content__wAkP4"},sn={Header:"Header__VHxNf",Content:"Content__I04qM",Close:"Close__xSN-7",Title:"Title__Dznh6",Footer:"Footer__-8gzQ",Actions:"Actions__kKF2Q"},cu=q(({children:e,className:t,...n},r)=>{const o=j(sn.Header,t);return c.jsx("div",{ref:r,className:o,...n,children:e})});cu.displayName="Header";const uu=q(({children:e,className:t,...n},r)=>{const o=j(sn.Content,t);return c.jsx("div",{ref:r,className:o,...n,children:e})});uu.displayName="Content";const du=q(({children:e,className:t,...n},r)=>{const o=j(sn.Footer,t);return c.jsx("div",{ref:r,className:o,...n,children:e})});du.displayName="Footer";const fu=q(({children:e,className:t,...n},r)=>{const o=j(sn.Title,t);return c.jsx(xy,{ref:r,className:o,...n,children:e})});fu.displayName="Title";const pu=q(({className:e,...t},n)=>{const r=j(sn.Close,e);return c.jsx(Sy,{ref:n,asChild:!0,className:r,...t,children:c.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M11 1L1 11M1 1L11 11",stroke:"#A9A9A9",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})});pu.displayName="Close";const hu=q(({children:e,className:t,...n},r)=>{const o=j(sn.Actions,t);return c.jsx("div",{ref:r,className:o,...n,children:e})});hu.displayName="Actions";const mu=q(({children:e,className:t,...n},r)=>{const o=j(sn.Description,t);return c.jsx("div",{ref:r,className:o,...n,children:e})});mu.displayName="Description";const Se=E("Dialog",({children:e,onClose:t,open:n=!1,className:r})=>{const o=()=>{t==null||t()};return c.jsx(yy,{onOpenChange:o,open:n,children:c.jsxs(by,{children:[c.jsx(wy,{className:lu.Overlay}),c.jsxs(_y,{children:[c.jsx(Cy,{}),c.jsx("div",{className:j(lu.Content,r),children:e})]})]})})});Se.displayName="Dialog",Se.Header=cu,Se.Content=uu,Se.Footer=du,Se.Actions=hu,Se.Title=fu,Se.Description=mu,Se.Close=pu;const gu={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"},M2=E("Pill",({children:e,variant:t="solid",className:n})=>{const r=j(gu.pill,gu[`pill--${t}`],n);return c.jsx("div",{className:r,children:e})}),vu={DialogContent:"DialogContent__-WjG9",Message:"Message__AUgVP"},Ey=E("ConfirmDialog",({loading:e,title:t,children:n,className:r,onClose:o,onConfirm:i,...s})=>c.jsxs(Se,{...s,className:j(vu.DialogContent,r),children:[c.jsxs(Se.Header,{children:[c.jsx(Se.Title,{children:t}),c.jsx(Se.Close,{onClick:o})]}),c.jsx(Se.Content,{children:typeof n=="string"?c.jsx("p",{className:vu.Message,children:n}):n}),c.jsx(Se.Footer,{children:c.jsxs(Se.Actions,{children:[c.jsx(li,{onClick:o,disabled:e,variant:"outlined",children:"Cancel"}),c.jsx(li,{onClick:i,disabled:e,loading:e,variant:"contained",children:"Confirm"})]})})]}));Ey.displayName="ConfirmDialog";const Co={container:"container__AjtYJ",title:"title__A2vCu",description:"description__bP6Ig",mailToText:"mailToText__SdlsE"},yu=()=>c.jsxs("svg",{width:"200",height:"200",viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.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)"}),c.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)"}),c.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)"}),c.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)"}),c.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)"}),c.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)"}),c.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)"}),c.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)"}),c.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)"}),c.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)"}),c.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)"}),c.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)"}),c.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)"})]});yu.displayName="WarningIcon";const Ty="support@bluealba.com",Ry="@bluealba/pae-shell-ui",bu=E("ErrorState",()=>{const{supportEmail:e=Ty}=Pd(Ry),t=`mailto:${e}?Subject=Support`;return c.jsxs("div",{className:Co.container,children:[c.jsx(yu,{}),c.jsx("div",{className:Co.title,children:"Oops! Something went wrong"}),c.jsxs("div",{className:Co.description,children:["If the error persists, ",c.jsx("a",{className:Co.mailToText,href:t,children:"contact the administrator."})]})]})});bu.displayName="ErrorState";const qe={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"},wu=q(({children:e,className:t,selected:n,disabled:r=!1,...o},i)=>{const s=j(qe.Item,{[qe["Item--selected"]]:n,[qe["Item--disabled"]]:r},t);return c.jsx("li",{ref:i,className:s,role:"listitem","aria-disabled":r,...o,children:e})});wu.displayName="Item";const _u=q(({children:e,className:t,...n},r)=>{const o=j(qe.Title,t);return c.jsx("h3",{ref:r,className:o,...n,children:e})});_u.displayName="Title";const xu=q(({children:e,className:t,...n},r)=>{const o=j(qe.Description,t);return c.jsx("p",{ref:r,className:o,...n,children:e})});xu.displayName="Description";const Ji=({className:e,...t})=>c.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:[c.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"}),c.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"}),c.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"})]});Ji.displayName="HorizontalDots";const Cu=q(({children:e,className:t,onClick:n,...r},o)=>{const i=mr(null),[s,a]=B(!1),l=j(qe.Actions,t),u=()=>{const x=An["DropdownList--open"],f=An["DropdownList--closed"];document.querySelectorAll(`.${x}`).forEach(y=>{y!==i.current&&(y.classList.remove(x),y.classList.add(f))})},p=x=>{x.stopPropagation(),s?h():(a(!0),n==null||n(x))},h=()=>{a(!1)},m=x=>{x.key==="Escape"&&h()},g=x=>{i.current&&!i.current.contains(x.target)&&h()};return ie(()=>(s?(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)}),[s]),c.jsxs("div",{ref:o,className:l,onClick:p,role:"button",tabIndex:0,"data-testid":"actions",...r,children:[c.jsx(Ji,{}),c.jsx(qi,{align:"left",ref:i,open:s,"data-testid":"actions-dropdown",role:"menu","aria-label":"Actions",children:e})]})});Cu.displayName="Actions";const Su=q(({children:e,className:t,...n},r)=>{const o=j(qe.Action,t);return c.jsx("button",{ref:r,className:o,...n,children:e})});Su.displayName="Action";const Eu=q(({children:e,className:t,...n},r)=>{const o=j(qe.Icon,t);return c.jsx("div",{ref:r,className:o,...n,children:e})});Eu.displayName="Icon";const mt=E("List",q(({children:e,className:t,size:n="medium",variant:r,...o},i)=>{const s=j(qe.List,{[qe[`List--${n}`]]:n,[qe[`List--${r}`]]:r},t);return c.jsx("ul",{ref:i,className:s,role:"list",...o,children:e})}));mt.displayName="List",mt.Item=wu,mt.Badges=Wa,mt.Badge=Ua,mt.Title=_u,mt.Description=xu,mt.Actions=Cu,mt.Action=Su,mt.Icon=Eu;const gt={Navigation:"Navigation__uylxk",PaginationContent:"PaginationContent__UpLw0",PaginationEllipsis:"PaginationEllipsis__perWk",PaginationLink:"PaginationLink__GVUZj",Active:"Active__u1Ahy",Disabled:"Disabled__8WM0y",Prev:"Prev__wp4hc",Next:"Next__eVyL5"},Tu=({className:e,...t})=>c.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:[c.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),c.jsx("path",{d:"M9 6l6 6l-6 6"})]});Tu.displayName="ChevronRight";const Ru=({className:e,...t})=>c.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:[c.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),c.jsx("path",{d:"M15 6l-6 6l6 6"})]});Ru.displayName="ChevronLeft";const Pu=E("Pagination",({className:e,...t})=>c.jsx("nav",{role:"navigation","aria-label":"pagination",className:j(gt.Navigation,e),...t}));Pu.displayName="Pagination";const Au=E("PaginationContent",d.forwardRef(({className:e,...t},n)=>c.jsx("ul",{ref:n,className:j(gt.PaginationContent,e),...t})));Au.displayName="PaginationContent";const So=E("PaginationItem",d.forwardRef(({className:e,...t},n)=>c.jsx("li",{ref:n,className:e,...t})));So.displayName="PaginationItem";const Eo=E("PaginationLink",({className:e,isActive:t,...n})=>c.jsx("a",{"aria-current":t?"page":void 0,className:j(gt.PaginationLink,t&&gt.Active,e),...n}));Eo.displayName="PaginationLink";const Ou=E("PaginationPrevious",({className:e,disabled:t,...n})=>c.jsxs(Eo,{"aria-label":"Go to previous page",className:j(t&&gt.Disabled,gt.Prev,e),...n,children:[c.jsx(Ru,{}),c.jsx("span",{children:"Previous"})]}));Ou.displayName="PaginationPrevious";const Iu=E("PaginationNext",({className:e,disabled:t,...n})=>c.jsxs(Eo,{"aria-label":"Go to next page",className:j(t&&gt.Disabled,gt.Next,e),...n,children:[c.jsx("span",{children:"Next"}),c.jsx(Tu,{})]}));Iu.displayName="PaginationNext";const ju=E("PaginationEllipsis",({className:e,...t})=>c.jsx("span",{"aria-hidden":!0,className:j(gt.PaginationEllipsis,e),...t,children:c.jsx(Ji,{})}));ju.displayName="PaginationEllipsis";function Py(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 ku={exports:{}};(function(e,t){(function(n,r){typeof Py=="function"?e.exports=r():n.pluralize=r()})(xd,function(){var n=[],r=[],o={},i={},s={};function a(f){return typeof f=="string"?new RegExp("^"+f+"$","i"):f}function l(f,v){return f===v?v:f===f.toLowerCase()?v.toLowerCase():f===f.toUpperCase()?v.toUpperCase():f[0]===f[0].toUpperCase()?v.charAt(0).toUpperCase()+v.substr(1).toLowerCase():v.toLowerCase()}function u(f,v){return f.replace(/\$(\d{1,2})/g,function(y,w){return v[w]||""})}function p(f,v){return f.replace(v[0],function(y,w){var C=u(v[1],arguments);return l(y===""?f[w-1]:y,C)})}function h(f,v,y){if(!f.length||o.hasOwnProperty(f))return v;for(var w=y.length;w--;){var C=y[w];if(C[0].test(v))return p(v,C)}return v}function m(f,v,y){return function(w){var C=w.toLowerCase();return v.hasOwnProperty(C)?l(w,C):f.hasOwnProperty(C)?l(w,f[C]):h(C,w,y)}}function g(f,v,y,w){return function(C){var S=C.toLowerCase();return v.hasOwnProperty(S)?!0:f.hasOwnProperty(S)?!1:h(S,S,y)===S}}function x(f,v,y){var w=v===1?x.singular(f):x.plural(f);return(y?v+" ":"")+w}return x.plural=m(s,i,n),x.isPlural=g(s,i,n),x.singular=m(i,s,r),x.isSingular=g(i,s,r),x.addPluralRule=function(f,v){n.push([a(f),v])},x.addSingularRule=function(f,v){r.push([a(f),v])},x.addUncountableRule=function(f){if(typeof f=="string"){o[f.toLowerCase()]=!0;return}x.addPluralRule(f,"$0"),x.addSingularRule(f,"$0")},x.addIrregularRule=function(f,v){v=v.toLowerCase(),f=f.toLowerCase(),s[f]=v,i[v]=f},[["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(f){return x.addIrregularRule(f[0],f[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(f){return x.addPluralRule(f[0],f[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(f){return x.addSingularRule(f[0],f[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(x.addUncountableRule),x})})(ku);var Ay=ku.exports;const Oy=Cd(Ay),Lu=E("PluralizeCounter",({count:e,singularText:t,children:n=(r,o)=>`${r} ${o}`})=>c.jsx(c.Fragment,{children:n(e,Oy(t,e))}));Lu.displayName="PluralizeCounter";const Ae={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"},Du={EmptyStateContainer:"EmptyStateContainer__Q9FEb",Message:"Message__IHK6M"},Nu=({size:e=64})=>c.jsxs("svg",{width:e,height:e,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsxs("g",{clipPath:"url(#clip-path)",children:[c.jsx("mask",{id:"mask0_1070_8032",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"64",height:"64",children:c.jsx("path",{d:"M64 0H0V64H64V0Z",fill:"white"})}),c.jsx("g",{mask:"url(#mask0_1070_8032)",children:c.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"})})]}),c.jsx("defs",{children:c.jsx("clipPath",{id:"clip-path",children:c.jsx("rect",{width:"64",height:"64",fill:"white"})})})]});Nu.displayName="EmptyStateIcon";const Mu=E("EmptyState",({message:e="No results found"})=>c.jsxs("div",{className:j(Du.EmptyStateContainer),children:[c.jsx(Nu,{}),c.jsx("p",{className:Du.Message,children:e})]}));Mu.displayName="EmptyState";const Iy=(e,t,n=1)=>{if(e<=1)return["1"];const r=[],o=i=>{(r.length===0||r[r.length-1]!==i)&&r.push(i)};o(1),t-n>2&&o("...");for(let i=Math.max(2,t-n);i<=Math.min(e-1,t+n);i++)o(i);return t+n<e-1&&o("..."),o(e),r.map(String)},$u=({page:e,totalPages:t,onPageChange:n})=>{const r=e===1,o=e===t;return c.jsx(Pu,{className:Ae.Pagination,children:c.jsxs(Au,{children:[c.jsx(So,{children:c.jsx(Ou,{className:j({[Ae.PointerNone]:r}),onClick:()=>!r&&n(e-1)})}),Iy(t,e).map((i,s)=>c.jsxs(So,{children:[i==="..."&&c.jsx(ju,{}),i!=="..."&&c.jsx(Eo,{isActive:+i===e,onClick:()=>+i!==e&&n(+i),children:i})]},s)),c.jsx(So,{children:c.jsx(Iu,{className:j({[Ae.PointerNone]:o}),onClick:()=>!o&&n(e+1)})})]})})};$u.displayName="TablePagination";const Fu=({className:e,...t})=>c.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:c.jsx("path",{d:"M6 2.5V9.5M6 9.5L9.5 6M6 9.5L2.5 6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})});Fu.displayName="ArrowDown";const jy=E("Table",({columns:e,data:t,isLoading:n,totalCount:r=0,headerLabel:o,sort:i,loadingConfig:s,pagination:a,onRowClick:l})=>{const{count:u=5,height:p=40}=s||{},h=y=>y.sortName??y.name,m=({width:y,maxWidth:w})=>!y&&!w?{}:{...y?{width:y,minWidth:y}:{},...w?{maxWidth:w}:{},overflow:"hidden"},g=y=>j({[Ae.Cell]:!0,[Ae.Center]:y.align==="center",[Ae.Right]:y.align==="right",[Ae.Sortable]:y.isSortable}),x=y=>{if(!i)return"";const w=h(y);return j({[Ae.SortIcon]:!0,[Ae.Active]:y.isSortable&&i.field===w,[Ae.Rotate]:i.field===w&&i.direction==="asc"})},f=y=>()=>l==null?void 0:l(y),v=y=>()=>{if(!i||!y.isSortable)return;const{field:w,direction:C,onSort:S}=i,T=h(y);w===T?S(T,C==="asc"?"desc":"asc"):S(T,"asc")};return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:Ae.TableContainer,children:[o&&c.jsx("div",{className:Ae.TableHeader,children:c.jsx(Lu,{count:r,singularText:o,children:(y,w)=>`${y} ${w}`})}),c.jsx("div",{className:Ae.Table,children:c.jsxs("table",{children:[c.jsx("thead",{children:c.jsx("tr",{children:e.map(y=>c.jsx("th",{children:c.jsxs("div",{className:g(y),onClick:v(y),children:[c.jsx("span",{children:y.displayName}),y.isSortable&&c.jsx(Fu,{className:x(y)})]})},y.name))})}),c.jsx("tbody",{children:c.jsxs(rn,{children:[c.jsx(rn.When,{condition:n,children:[...Array(u).keys()].map(y=>c.jsx("tr",{children:c.jsx("td",{colSpan:e.length,style:{padding:4},children:c.jsx(Ki,{height:p})})},y))}),c.jsx(rn.When,{condition:!t.length,children:c.jsx("tr",{children:c.jsx("td",{colSpan:e.length,children:c.jsx(Mu,{})})})}),c.jsx(rn.Else,{children:t.map((y,w)=>c.jsx("tr",{className:l&&Ae.selectable,onClick:f(y),children:e.map(C=>c.jsx("td",{style:m(C),children:c.jsx("div",{className:g(C),children:C.cellRenderer?C.cellRenderer(y):C.valueGetter?C.valueGetter(y):y[C.name]})},`${C.name}-${w}`))},w))})]})})]})})]}),a&&c.jsx($u,{...a})]})});jy.displayName="Table";const To={alert:"alert__LblpE",default:"default__mgO6A",destructive:"destructive__bLNSM",alertTitle:"alertTitle__gblKf",alertDescription:"alertDescription__BuVHV"},es=E("Alert",({className:e,variant:t="default",children:n,...r})=>c.jsx("div",{"data-slot":"alert",role:"alert",className:j(To.alert,To[t],e),...r,children:n})),ky=d.forwardRef(({children:e,className:t,...n},r)=>c.jsx("div",{ref:r,"data-slot":"alert-title",className:j(To.alertTitle,t),...n,children:e})),Ly=d.forwardRef(({children:e,className:t,...n},r)=>c.jsx("div",{ref:r,"data-slot":"alert-description",className:j(To.alertDescription,t),...n,children:e}));es.displayName="Alert",es.Title=ky,es.Description=Ly;const Dy=E("ThemeToggle",({isNavbarExpanded:e})=>{const{theme:t,setTheme:n}=yh(),r=()=>n(t==="dark"?"light":"dark"),o=c.jsxs("div",{className:j(ai.container,e&&ai.expanded),onClick:r,children:[t==="light"?c.jsx(Na,{}):c.jsx(Ma,{}),e&&c.jsx("p",{className:ai.label,children:t==="light"?"Dark Mode":"Light Mode"})]});return e?o:c.jsx(rr,{displayName:t==="light"?"Switch to dark mode":"Switch to light mode",sideOffset:-16,children:o})});Dy.displayName="ToggleTheme";const $3=E("authorized",(e,t)=>{const n=r=>c.jsx(Da,{operations:t,children:c.jsx(e,{...r})});return n.displayName="Authorized",n});function Bu(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 Ro(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Bu(Object(n),!0).forEach(function(r){Ny(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bu(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Uu(e){return(Uu=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 Ny(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ts(e){return(ts=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 Wu(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 i="single-spa-application:".concat(o);return function(){var s=document.getElementById(i);return s||((s=document.createElement("div")).id=i,document.body.appendChild(s)),s}}(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(ts(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(ts(r)));return r}}var sr=null;try{sr=require("react").createContext()}catch{}var My={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 $y(e){if(Uu(e)!=="object")throw new Error("single-spa-react requires a configuration object");var t,n=Ro(Ro({},My),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");!sr&&n.React.createContext&&(sr=n.React.createContext()),n.SingleSpaRoot=function(o){function i(s){i.displayName="SingleSpaRoot(".concat(s.name,")")}return i.prototype=Object.create(o.React.Component.prototype),i.prototype.componentDidMount=function(){setTimeout(this.props.mountFinished)},i.prototype.componentWillUnmount=function(){setTimeout(this.props.unmountFinished)},i.prototype.render=function(){return setTimeout(this.props.updateFinished),this.props.children},i}(n);var r={bootstrap:Fy.bind(null,n),mount:By.bind(null,n),unmount:Uy.bind(null,n)};return n.parcelCanUpdate&&(r.update=Wy.bind(null,n)),r}function Fy(e,t){return e.rootComponent?Promise.resolve():e.loadRootComponent(t).then(function(n){e.rootComponent=n})}function By(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 l=a.version.slice(0,a.version.indexOf("."));try{return Number(l)>=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=Hu(e,t,function(){n(this)}),i=Wu(e,t)(),s=function(a){var l=a.reactDom,u=a.renderType,p=a.elementToRender,h=a.domElement,m=l[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(p),g;case"hydrateRoot":return m(h,p);case"hydrate":default:return m(p,h),null}}({elementToRender:o,domElement:i,reactDom:ns(e),renderType:Hy(e)});e.domElements[t.name]=i,e.renderResults[t.name]=s})}function Uy(e,t){return new Promise(function(n){e.unmountResolves[t.name]=n;var r=e.renderResults[t.name];r&&r.unmount?r.unmount():ns(e).unmountComponentAtNode(e.domElements[t.name]),delete e.domElements[t.name],delete e.renderResults[t.name]})}function Wy(e,t){return new Promise(function(n){e.updateResolves[t.name]||(e.updateResolves[t.name]=[]),e.updateResolves[t.name].push(n);var r=Hu(e,t,null),o=e.renderResults[t.name];if(o&&o.render)o.render(r);else{var i=Wu(e,t)();ns(e).render(r,i)}})}function ns(e){return e.ReactDOMClient||e.ReactDOM}function Hy(e){return typeof e.renderType=="function"?e.renderType():e.renderType}function Hu(e,t,n){var r=e.React.createElement(e.rootComponent,t),o=sr?e.React.createElement(sr.Provider,{value:t},r):r;return(e.errorBoundary||t.errorBoundary||e.errorBoundaryClass||t.errorBoundaryClass)&&(e.errorBoundaryClass=e.errorBoundaryClass||t.errorBoundaryClass||function(i,s){function a(l){i.React.Component.apply(this,arguments),this.state={caughtError:null,caughtErrorInfo:null},a.displayName="SingleSpaReactErrorBoundary(".concat(l.name,")")}return a.prototype=Object.create(i.React.Component.prototype),a.prototype.render=function(){return this.state.caughtError?(i.errorBoundary||s.errorBoundary)(this.state.caughtError,this.state.caughtErrorInfo,this.props):this.props.children},a.prototype.componentDidCatch=function(l,u){this.setState({caughtError:l,caughtErrorInfo:u})},a}(e,t),o=e.React.createElement(e.errorBoundaryClass,t,o)),o=e.React.createElement(e.SingleSpaRoot,Ro(Ro({},t),{},{mountFinished:n,updateFinished:function(){e.updateResolves[t.name]&&(e.updateResolves[t.name].forEach(function(i){return i()}),delete e.updateResolves[t.name])},unmountFinished:function(){e.unmountResolves[t.name]&&(e.unmountResolves[t.name](),delete e.unmountResolves[t.name])}}),o)}const Vy=e=>{const t=new Op;return function(r){if(!r)throw new Error("Microfrontend did not receive any properties !!");const o=Is(r.module.name);return c.jsx(Ps,{module:o,children:c.jsxs(Dp,{client:t,children:[c.jsx(e,{...r}),c.jsx(hp,{position:"top-right",reverseOrder:!0})]})})}},F3=E("initializeMicroFrontend",({rootComponent:e,...t})=>$y({errorBoundary(n){return console.error(n),c.jsx(bu,{})},...t,rootComponent:Vy(e)})),B3=E("setupTestEnvironment",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:{}};Object.defineProperty(window,Gn,{value:e?zd(t,e):t})}),Vu=E("useFeatureFlags",()=>{const[e]=vr();return e.featureFlags}),U3=E("useFeatureFlag",e=>!!Vu()[e]),zy=E("FeatureFlagGuard",({flag:e,children:t,fallback:n=null,invert:r=!1})=>{const i=Vu()[e]===!0;return(r?!i:i)?c.jsx(c.Fragment,{children:t}):c.jsx(c.Fragment,{children:n})});zy.displayName="FeatureFlagGuard";const zu=pr(null);function Gu(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 rs={JOIN_ROOM:"join_room",LEAVE_ROOM:"leave_room",USER_LIST:"user_list"},W3=E("RoomsProvider",({children:e})=>{const t=Xd("@bluealba/pae-rooms-service"),[n,r]=B([]),[o,i]=B("loading"),[s,a]=B(null);ie(()=>{if(t){const f=new WebSocket(t);return f.onopen=()=>{i("connected")},f.addEventListener("message",async v=>{try{const y=await l(v);y.event===rs.USER_LIST&&m(y.data)}catch(y){console.error("Error parsing WebSocket message:",y)}}),f.onclose=()=>{i("closed")},f.onerror=v=>{console.error("Rooms WebSocket error",v),i("error")},a(f),()=>{f.close()}}},[t]);const l=async f=>{if(f.data instanceof Blob){const v=await f.data.text();return JSON.parse(v)}else return JSON.parse(f.data)},u=(f,v)=>{s&&s.readyState===WebSocket.OPEN&&setTimeout(()=>{s.send(JSON.stringify({event:f,data:v}))},100)},p=f=>{u(rs.JOIN_ROOM,{roomId:f})},h=f=>{u(rs.LEAVE_ROOM,{roomId:f})},m=f=>{r(f.map(v=>({...v,username:v.username.toLowerCase(),color:Gu(v.username)})))},g=ve(f=>n.filter(v=>v.rooms.includes(f)),[n]),x={status:o,getRoomUsers:g,joinRoom:p,leaveRoom:h};return c.jsx(zu.Provider,{value:x,children:e})}),Gy=E("DEFAULT_OPTIONS",{autoJoin:!0,autoLeave:!0});function qy(e,t=Gy){const{autoJoin:n,autoLeave:r}=t,o=hr(zu),{authUser:i}=wr();if(!o)throw new Error("useRoom must be used within RoomsProvider");const s=()=>{if(n){console.warn("[useRoom] Ignoring manual joinRoom call because autoJoin is enabled.",{roomId:e});return}return o.joinRoom(e)},a=()=>{if(r){console.warn("[useRoom] Ignoring manual leaveRoom call because autoLeave is enabled.",{roomId:e});return}return o.leaveRoom(e)};ie(()=>{if(!(!e||o.status!=="connected"))return n&&o.joinRoom(e),()=>{r&&o.leaveRoom(e)}},[o.status,e]);const l=o.getRoomUsers(e),u=l.findIndex(p=>p.username===(i==null?void 0:i.username))!==-1;return{users:l,roomId:e,hasJoined:u,joinRoom:s,leaveRoom:a}}const ar={container:"container__LbyGQ",avatarWrapper:"avatarWrapper__HCQIZ",avatar:"avatar__E453a",overflowWrapper:"overflowWrapper__ETnPO",overflowBadge:"overflowBadge__igBKT"},Ky={sm:24,md:32,lg:40},K3=E("RoomAvatars",({users:e,maxVisible:t=5,size:n="md",overlap:r=!0,className:o="",onUserClick:i})=>{const s=Ky[n],a=Ne(()=>e.slice(0,t),[e,t]),l=Ne(()=>e.slice(t),[e,t]),u=Math.max(0,e.length-t),p=h=>h.split(" ").map(m=>m[0]).join("").toUpperCase().slice(0,2);return c.jsxs("div",{className:j(ar.container,o),children:[a.map((h,m)=>c.jsx(rr,{tooltipContent:h.displayName,side:"bottom",children:c.jsx("div",{className:ar.avatarWrapper,style:{marginLeft:m>0&&r?`-${s*.25}px`:void 0},onClick:()=>i==null?void 0:i(h),children:c.jsx("div",{className:ar.avatar,style:{width:s,height:s,backgroundColor:h.color,fontSize:n==="sm"?"10px":n==="md"?"12px":"14px",cursor:i?"pointer":"default"},children:p(h.displayName)})})},h.username)),u>0&&c.jsx(rr,{side:"bottom",tooltipContent:c.jsx("div",{children:l.map(h=>c.jsx("p",{children:h.displayName},h.username))}),children:c.jsx("div",{className:ar.overflowWrapper,style:{marginLeft:r?`-${s*.25}px`:void 0},children:c.jsxs("div",{className:ar.overflowBadge,style:{width:s,height:s,fontSize:n==="sm"?"10px":n==="md"?"12px":"14px"},children:["+",u]})})})]})})}}});