@bluealba/pae-ui-react-core 4.0.1-develop-1190 → 4.0.1-feature-add-documentation-templat-1205
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +66 -41
- package/dist/index.esm.js +2235 -2098
- package/dist/index.systemjs.js +71 -46
- package/dist/index.umd.js +68 -43
- package/dist/src/hooks/applications/ApplicationMenu.d.ts +2 -0
- package/dist/src/hooks/applications/useApplicationMenuWithDocumentation.d.ts +9 -0
- package/dist/src/hooks/applications/useDocumentationMenuItems.d.ts +4 -0
- package/dist/src/hooks/index.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(E,C){typeof exports=="object"&&typeof module<"u"?C(exports,require("react"),require("single-spa"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","single-spa","react-dom"],C):(E=typeof globalThis<"u"?globalThis:E||self,C(E["@bluealba/pae-ui-react-core"]={},E.React,E.singleSpa,E.ReactDOM))})(this,function(E,C,ne,_t){"use strict";var Pu=E=>{throw TypeError(E)};var Wi=(E,C,ne)=>C.has(E)||Pu("Cannot "+ne);var b=(E,C,ne)=>(Wi(E,C,"read from private field"),ne?ne.call(E):C.get(E)),L=(E,C,ne)=>C.has(E)?Pu("Cannot add the same private member more than once"):C instanceof WeakSet?C.add(E):C.set(E,ne),R=(E,C,ne,_t)=>(Wi(E,C,"write to private field"),_t?_t.call(E,ne):C.set(E,ne),ne),F=(E,C,ne)=>(Wi(E,C,"access private method"),ne);var no=(E,C,ne,_t)=>({set _(Vr){R(E,C,Vr,ne)},get _(){return b(E,C,_t)}});var Rt,ut,nr,su,or,dt,ir,au,jt,lu,sr,ar,Ce,Dt,le,$r,Lt,Re,Je,cu,Be,uu,Ue,ue,It,ze,wt,du,Ye,je,Fr,fu,X,ft,pt,lr,cr,ht,ur,dr,pu,ge,z,Br,de,Nt,fr,mt,gt,Ur,pr,hr,Mt,$t,vt,mr,V,Wr,Vi,Gi,qi,Qi,Yi,Ki,Zi,Ou,hu,yt,bt,ve,Ke,Ze,oo,Xi,mu;var Vr=document.createElement("style");Vr.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)}@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}
|
|
2
|
-
`,document.head.appendChild(Vr);function Ji(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const m=Ji(C),es=Ji(_t),
|
|
1
|
+
(function(E,C){typeof exports=="object"&&typeof module<"u"?C(exports,require("react"),require("single-spa"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","single-spa","react-dom"],C):(E=typeof globalThis<"u"?globalThis:E||self,C(E["@bluealba/pae-ui-react-core"]={},E.React,E.singleSpa,E.ReactDOM))})(this,function(E,C,ne,_t){"use strict";var Du=E=>{throw TypeError(E)};var Wi=(E,C,ne)=>C.has(E)||Du("Cannot "+ne);var b=(E,C,ne)=>(Wi(E,C,"read from private field"),ne?ne.call(E):C.get(E)),L=(E,C,ne)=>C.has(E)?Du("Cannot add the same private member more than once"):C instanceof WeakSet?C.add(E):C.set(E,ne),R=(E,C,ne,_t)=>(Wi(E,C,"write to private field"),_t?_t.call(E,ne):C.set(E,ne),ne),F=(E,C,ne)=>(Wi(E,C,"access private method"),ne);var no=(E,C,ne,_t)=>({set _(Vr){R(E,C,Vr,ne)},get _(){return b(E,C,_t)}});var Rt,ut,or,du,ir,dt,sr,fu,jt,pu,ar,lr,Ce,Dt,le,$r,Lt,Re,Je,hu,Be,mu,Ue,ue,It,ze,wt,gu,Ye,je,Fr,vu,X,ft,pt,cr,ur,ht,dr,fr,yu,ge,z,Br,de,Nt,pr,mt,gt,Ur,hr,mr,Mt,$t,vt,gr,V,Wr,Vi,Gi,qi,Qi,Yi,Ki,Zi,Lu,bu,yt,bt,ve,Ke,Ze,oo,Xi,wu;var Vr=document.createElement("style");Vr.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)}@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}
|
|
2
|
+
`,document.head.appendChild(Vr);function Ji(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const m=Ji(C),es=Ji(_t),Iu={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"}},xr="__PAE_GLOBAL_STATE__",ts="__PAE_REACTIVE_GLOBAL_STATE__",rs="__PAE_EXTENSIONS_POINTS_REGISTRY__",io="__PAE_CUSTOMIZATIONS_LOADING_STATE_KEY__",Nu="/auth/logout",Mu=(e,t)=>{const[r,n]=C.useState(t);return C.useEffect(()=>{const o=e.subscribe(i=>{n(i)});return()=>{o.unsubscribe()}},[n]),r},$u=(e,t,r)=>r.map((n,o)=>o===e?t(n):n),Fu=(e,t,r)=>$u(r.findIndex(e),t,r),so=(e,t)=>typeof e=="function"?e(t):e,ns=(e,t)=>{const r=Mu(e,t),n=C.useCallback(o=>{e.next(so(o,r))},[r]);return[r,n]},Gr=()=>ns(window[ts],window[xr]),Vt=()=>Gr()[0].catalog,Bu=()=>{const e=Vt(),t=C.useCallback(n=>{window[ts].next({...window[xr],catalog:so(n,e)})},[e]),r=C.useCallback((n,o)=>{t(i=>Fu(s=>s.name===n,s=>{var a;return{...s,ui:{...s.ui,customProps:so(o,((a=s.ui)==null?void 0:a.customProps)??{})}}},i))},[t]);return[e,t,r]},os=()=>{const[e,t]=C.useState(document.location.pathname);return C.useEffect(()=>{const r=()=>{t(window.location.pathname)};return window.addEventListener("popstate",r),()=>{window.removeEventListener("popstate",r)}},[t]),e};var Uu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var is={exports:{}},Cr={},ss;function Hu(){if(ss)return Cr;ss=1;/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react-jsx-runtime.development.js
|
|
5
5
|
*
|
|
@@ -7,30 +7,55 @@
|
|
|
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=C,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=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"),h=Symbol.for("react.memo"),p=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 P=w&&y[w]||y[f];return typeof P=="function"?P:null}var _=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(y){{for(var P=arguments.length,j=new Array(P>1?P-1:0),I=1;I<P;I++)j[I-1]=arguments[I];T("error",y,j)}}function T(y,P,j){{var I=_.ReactDebugCurrentFrame,G=I.getStackAddendum();G!==""&&(P+="%s",j=j.concat([G]));var Q=j.map(function(H){return String(H)});Q.unshift("Warning: "+P),Function.prototype.apply.call(console[y],console,Q)}}var S=!1,A=!1,k=!1,O=!1,N=!1,M;M=Symbol.for("react.module.reference");function $(y){return!!(typeof y=="string"||typeof y=="function"||y===n||y===i||N||y===o||y===u||y===d||O||y===g||S||A||k||typeof y=="object"&&y!==null&&(y.$$typeof===p||y.$$typeof===h||y.$$typeof===s||y.$$typeof===a||y.$$typeof===l||y.$$typeof===M||y.getModuleId!==void 0))}function Y(y,P,j){var I=y.displayName;if(I)return I;var G=P.displayName||P.name||"";return G!==""?j+"("+G+")":j}function K(y){return y.displayName||"Context"}function W(y){if(y==null)return null;if(typeof y.tag=="number"&&x("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 n:return"Fragment";case r: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 P=y;return K(P)+".Consumer";case s:var j=y;return K(j._context)+".Provider";case l:return Y(y,y.render,"ForwardRef");case h:var I=y.displayName||null;return I!==null?I:W(y.type)||"Memo";case p:{var G=y,Q=G._payload,H=G._init;try{return W(H(Q))}catch{return null}}}return null}var q=Object.assign,ie=0,J,ee,B,se,xe,Ft,Zn;function Xn(){}Xn.__reactDisabledLog=!0;function Mi(){{if(ie===0){J=console.log,ee=console.info,B=console.warn,se=console.error,xe=console.group,Ft=console.groupCollapsed,Zn=console.groupEnd;var y={configurable:!0,enumerable:!0,value:Xn,writable:!0};Object.defineProperties(console,{info:y,log:y,warn:y,error:y,group:y,groupCollapsed:y,groupEnd:y})}ie++}}function $i(){{if(ie--,ie===0){var y={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:q({},y,{value:J}),info:q({},y,{value:ee}),warn:q({},y,{value:B}),error:q({},y,{value:se}),group:q({},y,{value:xe}),groupCollapsed:q({},y,{value:Ft}),groupEnd:q({},y,{value:Zn})})}ie<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var zr=_.ReactCurrentDispatcher,
|
|
11
|
-
`+
|
|
10
|
+
*/return function(){var e=C,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=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"),h=Symbol.for("react.memo"),p=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 P=w&&y[w]||y[f];return typeof P=="function"?P:null}var _=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(y){{for(var P=arguments.length,j=new Array(P>1?P-1:0),I=1;I<P;I++)j[I-1]=arguments[I];T("error",y,j)}}function T(y,P,j){{var I=_.ReactDebugCurrentFrame,G=I.getStackAddendum();G!==""&&(P+="%s",j=j.concat([G]));var Q=j.map(function(H){return String(H)});Q.unshift("Warning: "+P),Function.prototype.apply.call(console[y],console,Q)}}var S=!1,A=!1,k=!1,O=!1,N=!1,M;M=Symbol.for("react.module.reference");function $(y){return!!(typeof y=="string"||typeof y=="function"||y===n||y===i||N||y===o||y===u||y===d||O||y===g||S||A||k||typeof y=="object"&&y!==null&&(y.$$typeof===p||y.$$typeof===h||y.$$typeof===s||y.$$typeof===a||y.$$typeof===l||y.$$typeof===M||y.getModuleId!==void 0))}function Y(y,P,j){var I=y.displayName;if(I)return I;var G=P.displayName||P.name||"";return G!==""?j+"("+G+")":j}function K(y){return y.displayName||"Context"}function W(y){if(y==null)return null;if(typeof y.tag=="number"&&x("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 n:return"Fragment";case r: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 P=y;return K(P)+".Consumer";case s:var j=y;return K(j._context)+".Provider";case l:return Y(y,y.render,"ForwardRef");case h:var I=y.displayName||null;return I!==null?I:W(y.type)||"Memo";case p:{var G=y,Q=G._payload,H=G._init;try{return W(H(Q))}catch{return null}}}return null}var q=Object.assign,ie=0,J,ee,B,se,xe,Ft,Zn;function Xn(){}Xn.__reactDisabledLog=!0;function Mi(){{if(ie===0){J=console.log,ee=console.info,B=console.warn,se=console.error,xe=console.group,Ft=console.groupCollapsed,Zn=console.groupEnd;var y={configurable:!0,enumerable:!0,value:Xn,writable:!0};Object.defineProperties(console,{info:y,log:y,warn:y,error:y,group:y,groupCollapsed:y,groupEnd:y})}ie++}}function $i(){{if(ie--,ie===0){var y={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:q({},y,{value:J}),info:q({},y,{value:ee}),warn:q({},y,{value:B}),error:q({},y,{value:se}),group:q({},y,{value:xe}),groupCollapsed:q({},y,{value:Ft}),groupEnd:q({},y,{value:Zn})})}ie<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var zr=_.ReactCurrentDispatcher,vr;function Bt(y,P,j){{if(vr===void 0)try{throw Error()}catch(G){var I=G.stack.trim().match(/\n( *(at )?)/);vr=I&&I[1]||""}return`
|
|
11
|
+
`+vr+y}}var yr=!1,Ut;{var Jn=typeof WeakMap=="function"?WeakMap:Map;Ut=new Jn}function Hr(y,P){if(!y||yr)return"";{var j=Ut.get(y);if(j!==void 0)return j}var I;yr=!0;var G=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Q;Q=zr.current,zr.current=null,Mi();try{if(P){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(ye){I=ye}Reflect.construct(y,[],H)}else{try{H.call()}catch(ye){I=ye}y.call(H.prototype)}}else{try{throw Error()}catch(ye){I=ye}y()}}catch(ye){if(ye&&I&&typeof ye.stack=="string"){for(var U=ye.stack.split(`
|
|
12
12
|
`),fe=I.stack.split(`
|
|
13
13
|
`),te=U.length-1,re=fe.length-1;te>=1&&re>=0&&U[te]!==fe[re];)re--;for(;te>=1&&re>=0;te--,re--)if(U[te]!==fe[re]){if(te!==1||re!==1)do if(te--,re--,re<0||U[te]!==fe[re]){var Ee=`
|
|
14
|
-
`+U[te].replace(" at new "," at ");return y.displayName&&Ee.includes("<anonymous>")&&(Ee=Ee.replace("<anonymous>",y.displayName)),typeof y=="function"&&Ut.set(y,Ee),Ee}while(te>=1&&re>=0);break}}}finally{
|
|
14
|
+
`+U[te].replace(" at new "," at ");return y.displayName&&Ee.includes("<anonymous>")&&(Ee=Ee.replace("<anonymous>",y.displayName)),typeof y=="function"&&Ut.set(y,Ee),Ee}while(te>=1&&re>=0);break}}}finally{yr=!1,zr.current=Q,$i(),Error.prepareStackTrace=G}var _r=y?y.displayName||y.name:"",Wt=_r?Bt(_r):"";return typeof y=="function"&&Ut.set(y,Wt),Wt}function zt(y,P,j){return Hr(y,!1)}function eo(y){var P=y.prototype;return!!(P&&P.isReactComponent)}function br(y,P,j){if(y==null)return"";if(typeof y=="function")return Hr(y,eo(y));if(typeof y=="string")return Bt(y);switch(y){case u:return Bt("Suspense");case d:return Bt("SuspenseList")}if(typeof y=="object")switch(y.$$typeof){case l:return zt(y.render);case h:return br(y.type,P,j);case p:{var I=y,G=I._payload,Q=I._init;try{return br(Q(G),P,j)}catch{}}}return""}var Ht=Object.prototype.hasOwnProperty,to={},ro=_.ReactDebugCurrentFrame;function Xe(y){if(y){var P=y._owner,j=br(y.type,y._source,P?P.type:null);ro.setExtraStackFrame(j)}else ro.setExtraStackFrame(null)}function Xg(y,P,j,I,G){{var Q=Function.call.bind(Ht);for(var H in y)if(Q(y,H)){var U=void 0;try{if(typeof y[H]!="function"){var fe=Error((I||"React class")+": "+j+" 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 fe.name="Invariant Violation",fe}U=y[H](P,H,I,j,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(te){U=te}U&&!(U instanceof Error)&&(Xe(G),x("%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).",I||"React class",j,H,typeof U),Xe(null)),U instanceof Error&&!(U.message in to)&&(to[U.message]=!0,Xe(G),x("Failed %s type: %s",j,U.message),Xe(null))}}}var Jg=Array.isArray;function Fi(y){return Jg(y)}function ev(y){{var P=typeof Symbol=="function"&&Symbol.toStringTag,j=P&&y[Symbol.toStringTag]||y.constructor.name||"Object";return j}}function tv(y){try{return _u(y),!1}catch{return!0}}function _u(y){return""+y}function xu(y){if(tv(y))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ev(y)),_u(y)}var Cu=_.ReactCurrentOwner,rv={key:!0,ref:!0,__self:!0,__source:!0},Eu,Su;function nv(y){if(Ht.call(y,"ref")){var P=Object.getOwnPropertyDescriptor(y,"ref").get;if(P&&P.isReactWarning)return!1}return y.ref!==void 0}function ov(y){if(Ht.call(y,"key")){var P=Object.getOwnPropertyDescriptor(y,"key").get;if(P&&P.isReactWarning)return!1}return y.key!==void 0}function iv(y,P){typeof y.ref=="string"&&Cu.current}function sv(y,P){{var j=function(){Eu||(Eu=!0,x("%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)",P))};j.isReactWarning=!0,Object.defineProperty(y,"key",{get:j,configurable:!0})}}function av(y,P){{var j=function(){Su||(Su=!0,x("%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)",P))};j.isReactWarning=!0,Object.defineProperty(y,"ref",{get:j,configurable:!0})}}var lv=function(y,P,j,I,G,Q,H){var U={$$typeof:t,type:y,key:P,ref:j,props:H,_owner:Q};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:I}),Object.defineProperty(U,"_source",{configurable:!1,enumerable:!1,writable:!1,value:G}),Object.freeze&&(Object.freeze(U.props),Object.freeze(U)),U};function cv(y,P,j,I,G){{var Q,H={},U=null,fe=null;j!==void 0&&(xu(j),U=""+j),ov(P)&&(xu(P.key),U=""+P.key),nv(P)&&(fe=P.ref,iv(P,G));for(Q in P)Ht.call(P,Q)&&!rv.hasOwnProperty(Q)&&(H[Q]=P[Q]);if(y&&y.defaultProps){var te=y.defaultProps;for(Q in te)H[Q]===void 0&&(H[Q]=te[Q])}if(U||fe){var re=typeof y=="function"?y.displayName||y.name||"Unknown":y;U&&sv(H,re),fe&&av(H,re)}return lv(y,U,fe,G,I,Cu.current,H)}}var Bi=_.ReactCurrentOwner,Tu=_.ReactDebugCurrentFrame;function wr(y){if(y){var P=y._owner,j=br(y.type,y._source,P?P.type:null);Tu.setExtraStackFrame(j)}else Tu.setExtraStackFrame(null)}var Ui;Ui=!1;function zi(y){return typeof y=="object"&&y!==null&&y.$$typeof===t}function Au(){{if(Bi.current){var y=W(Bi.current.type);if(y)return`
|
|
15
15
|
|
|
16
|
-
Check the render method of \``+y+"`."}return""}}function
|
|
16
|
+
Check the render method of \``+y+"`."}return""}}function uv(y){return""}var Pu={};function dv(y){{var P=Au();if(!P){var j=typeof y=="string"?y:y.displayName||y.name;j&&(P=`
|
|
17
17
|
|
|
18
|
-
Check the top-level render call using <`+j+">.")}return P}}function
|
|
18
|
+
Check the top-level render call using <`+j+">.")}return P}}function Ou(y,P){{if(!y._store||y._store.validated||y.key!=null)return;y._store.validated=!0;var j=dv(P);if(Pu[j])return;Pu[j]=!0;var I="";y&&y._owner&&y._owner!==Bi.current&&(I=" It was passed a child from "+W(y._owner.type)+"."),wr(y),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',j,I),wr(null)}}function ku(y,P){{if(typeof y!="object")return;if(Fi(y))for(var j=0;j<y.length;j++){var I=y[j];zi(I)&&Ou(I,P)}else if(zi(y))y._store&&(y._store.validated=!0);else if(y){var G=v(y);if(typeof G=="function"&&G!==y.entries)for(var Q=G.call(y),H;!(H=Q.next()).done;)zi(H.value)&&Ou(H.value,P)}}}function fv(y){{var P=y.type;if(P==null||typeof P=="string")return;var j;if(typeof P=="function")j=P.propTypes;else if(typeof P=="object"&&(P.$$typeof===l||P.$$typeof===h))j=P.propTypes;else return;if(j){var I=W(P);Xg(j,y.props,"prop",I,y)}else if(P.PropTypes!==void 0&&!Ui){Ui=!0;var G=W(P);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",G||"Unknown")}typeof P.getDefaultProps=="function"&&!P.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function pv(y){{for(var P=Object.keys(y.props),j=0;j<P.length;j++){var I=P[j];if(I!=="children"&&I!=="key"){wr(y),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",I),wr(null);break}}y.ref!==null&&(wr(y),x("Invalid attribute `ref` supplied to `React.Fragment`."),wr(null))}}var Ru={};function ju(y,P,j,I,G,Q){{var H=$(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 fe=uv();fe?U+=fe:U+=Au();var te;y===null?te="null":Fi(y)?te="array":y!==void 0&&y.$$typeof===t?(te="<"+(W(y.type)||"Unknown")+" />",U=" Did you accidentally export a JSX literal instead of a component?"):te=typeof y,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",te,U)}var re=cv(y,P,j,G,Q);if(re==null)return re;if(H){var Ee=P.children;if(Ee!==void 0)if(I)if(Fi(Ee)){for(var _r=0;_r<Ee.length;_r++)ku(Ee[_r],y);Object.freeze&&Object.freeze(Ee)}else x("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 ku(Ee,y)}if(Ht.call(P,"key")){var Wt=W(y),ye=Object.keys(P).filter(function(bv){return bv!=="key"}),Hi=ye.length>0?"{key: someKey, "+ye.join(": ..., ")+": ...}":"{key: someKey}";if(!Ru[Wt+Hi]){var yv=ye.length>0?"{"+ye.join(": ..., ")+": ...}":"{}";x(`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} />`,Hi,Wt,
|
|
23
|
+
<%s key={someKey} {...props} />`,Hi,Wt,yv,Wt),Ru[Wt+Hi]=!0}}return y===n?pv(re):fv(re),re}}function hv(y,P,j){return ju(y,P,j,!0)}function mv(y,P,j){return ju(y,P,j,!1)}var gv=mv,vv=hv;Cr.Fragment=n,Cr.jsx=gv,Cr.jsxs=vv}(),Cr}is.exports=Hu();var c=is.exports;const as=C.createContext(null),ls=({module:e,children:t})=>c.jsx(as.Provider,{value:e,children:t});ls.displayName="PAEModule";const Er=()=>{const e=C.useContext(as);if(!e)throw new Error("Module metadata was not setup yet !!");return e};function ao(){if(!window[xr])throw new Error("PAE Global state not found.");return window[xr]}const lo=()=>{const{authUser:{applications:e}}=ao();return e||[]},cs=e=>lo().filter(t=>t.isGlobal||t.name===e).flatMap(t=>t.operations),us=()=>{const{application:e}=Er();return C.useMemo(()=>cs(e),[e])},ds=e=>(...t)=>t.every(r=>e.some(n=>n.name===r)),qr=()=>{const[{authUser:e}]=Gr(),t=us();return{authUser:e,hasAccess:C.useMemo(()=>ds(t),[t])}},Wu=()=>{const{authUser:e}=qr();return!e||e.id==="anon"},fs=()=>{var e;return((e=Er().ui)==null?void 0:e.customProps)??{}},co=e=>{const t=Vt();return C.useMemo(()=>{const r=t.find(n=>n.name===e);if(!r)throw new Error(`Could not find the module [${e}] in the local catalog !`);return r},[t,e])},ps=e=>{var t,r;return((r=(t=co(e))==null?void 0:t.ui)==null?void 0:r.customProps)??{}},Vu=e=>e.replace(/\/+/g,"/"),Gu=(e,t="only-base-path")=>{const{apiDocs:r,health:n,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=Vu(`${e.baseUrl}/${u}`);return t==="with-module-base"?d:`${document.location.origin}${d}`};return{apiDocsPath:s(r,"/api-docs-json"),healthPath:s(n,"/health"),versionPath:s(o,"/version"),changelogPath:s(i,"/changelog")}};function qu(){window.open(Nu,"_self")}const Qu=e=>ne.navigateToUrl(e),Yu=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z]{2,}$/,Ku=e=>Yu.test(e),Zu=(e,t=2)=>{if(!e)return"";const r=e.split(" ");return r.length===1?r.join("").slice(0,t):r.map(n=>n[0]).join("").slice(0,t)},hs=e=>e.type==="app",Xu=e=>e.modules.some(hs)&&e.route&&e.route!=="/",ms=e=>{const{catalog:t}=ao();return Qr(t.filter(r=>r.application===e))},Qr=(e=[])=>e.find(t=>{var r;return hs(t)&&((r=t.ui)==null?void 0:r.route)!=="/"}),gs=()=>{const e=Vt();return C.useMemo(()=>lo().map(r=>{var i,s,a;const n=Ju(e,r.name),o=Qr(n);return{name:r.name,displayName:((s=(i=o==null?void 0:o.ui)==null?void 0:i.customProps)==null?void 0:s.overrideApplicationDisplayName)??r.displayName,modules:n,route:(a=o==null?void 0:o.ui)==null?void 0:a.route,roles:[],operations:r.operations}}),[e])},Ju=(e,t)=>e.filter(r=>r.application===t)||[],vs=()=>{const e=gs();return C.useMemo(()=>e.filter(Xu),[e])},ys=e=>C.useMemo(()=>e?ms(e.name):void 0,[e]),et=new Map,ed=e=>{try{const{catalog:t}=ao(),r=t.find(n=>n.name===e);return r!=null&&r.version?`${e}@${r.version}`:e}catch{return e}},Yr=e=>{const[t,r]=C.useState(null);return C.useEffect(()=>{(async()=>{if(!e){r(null);return}try{const o=ed(e);if(et.has(o)){const s=et.get(o);r(s);return}const i=await System.import(e);et.set(o,i),r(i)}catch(o){console.error(`Error importing module ${e}: ${o.message}`),r(null)}})()},[e,r]),t},td=e=>{e?(Array.from(et.keys()).filter(r=>r.startsWith(e)).forEach(r=>et.delete(r)),console.log(`[useApplicationJSModule] Cleared cache for module: ${e}`)):(et.clear(),console.log("[useApplicationJSModule] Cleared all module cache"))};typeof window<"u"&&(window.PAE={...window.PAE,clearModuleCache:td,getModuleCacheSize:()=>et.size,getModuleCacheKeys:()=>Array.from(et.keys())});const bs=e=>{const t=typeof e=="string"?ms(e):Qr(e==null?void 0:e.modules),r=Yr(t==null?void 0:t.name);return r==null?void 0:r.icon},ws=e=>{const t=Qr(e==null?void 0:e.modules),r=Yr(t==null?void 0:t.name),[n,o]=C.useState(!1),[i,s]=C.useState({}),a=async()=>(typeof(r==null?void 0:r.menu)=="function"?await r.menu():r==null?void 0:r.menu)||[],l=async()=>{if(!(r!=null&&r.menu))return[];o(!0);const h=_s((e==null?void 0:e.operations)||[]),p=(await a()).map(g=>{const{operations:w,items:f,path:v}=g;if(w!=null&&w.length&&!h(w))return null;const _=(f||[]).filter(x=>{var T;return!((T=x==null?void 0:x.operations)!=null&&T.length)||h(x.operations)});return!_.length&&!v?null:{...g,items:_}}).filter(Boolean);return o(!1),p},u=async()=>{const h=await l();e&&s(p=>({...p,[e.name]:h}))};C.useEffect(()=>{u()},[r==null?void 0:r.menu]);const d=C.useMemo(()=>e?i[e.name]||[]:[],[i,e]);return{loading:n,menu:d}},_s=e=>t=>t.every(r=>e.some(n=>n.name===r));/**
|
|
24
|
+
* @license lucide-react v0.511.0 - ISC
|
|
25
|
+
*
|
|
26
|
+
* This source code is licensed under the ISC license.
|
|
27
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
28
|
+
*/const rd=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),nd=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),xs=e=>{const t=nd(e);return t.charAt(0).toUpperCase()+t.slice(1)},Cs=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),od=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
|
|
29
|
+
* @license lucide-react v0.511.0 - ISC
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the ISC license.
|
|
32
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var id={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"};/**
|
|
34
|
+
* @license lucide-react v0.511.0 - ISC
|
|
35
|
+
*
|
|
36
|
+
* This source code is licensed under the ISC license.
|
|
37
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
38
|
+
*/const sd=C.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:i,iconNode:s,...a},l)=>C.createElement("svg",{ref:l,...id,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:Cs("lucide",o),...!i&&!od(a)&&{"aria-hidden":"true"},...a},[...s.map(([u,d])=>C.createElement(u,d)),...Array.isArray(i)?i:[i]]));/**
|
|
39
|
+
* @license lucide-react v0.511.0 - ISC
|
|
40
|
+
*
|
|
41
|
+
* This source code is licensed under the ISC license.
|
|
42
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
43
|
+
*/const ad=(e,t)=>{const r=C.forwardRef(({className:n,...o},i)=>C.createElement(sd,{ref:i,iconNode:t,className:Cs(`lucide-${rd(xs(e))}`,`lucide-${e}`,n),...o}));return r.displayName=xs(e),r};/**
|
|
44
|
+
* @license lucide-react v0.511.0 - ISC
|
|
45
|
+
*
|
|
46
|
+
* This source code is licensed under the ISC license.
|
|
47
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
48
|
+
*/const ld=ad("book-text",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"M8 11h8",key:"vwpz6n"}],["path",{d:"M8 7h6",key:"1f0q6e"}]]),Es=e=>{const t=Vt();return C.useMemo(()=>{if(!e)return[];const r=t.filter(o=>o.type==="documentation"&&o.application===e.name),n=_s(e.operations||[]);return r.filter(o=>{var i,s;return(s=(i=o.authorization)==null?void 0:i.operations)!=null&&s.length?n(o.authorization.operations):!0}).map(o=>{var i;return{label:o.displayName,externalUrl:o.baseUrl,target:"_blank",align:"bottom",Icon:C.createElement(ld,{size:20}),operations:((i=o.authorization)==null?void 0:i.operations)||[]}})},[t,e])},cd=e=>{const{menu:t,loading:r}=ws(e),n=Es(e),o=C.useMemo(()=>[...t,...n],[t,n]);return{loading:r,menu:o}};function Z(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function xt(e){return function t(r){return arguments.length===0||Z(r)?t:e.apply(this,arguments)}}function tt(e){return function t(r,n){switch(arguments.length){case 0:return t;case 1:return Z(r)?t:xt(function(o){return e(r,o)});default:return Z(r)&&Z(n)?t:Z(r)?xt(function(o){return e(o,n)}):Z(n)?xt(function(o){return e(r,o)}):e(r,n)}}}function uo(e){return function t(r,n,o){switch(arguments.length){case 0:return t;case 1:return Z(r)?t:tt(function(i,s){return e(r,i,s)});case 2:return Z(r)&&Z(n)?t:Z(r)?tt(function(i,s){return e(i,n,s)}):Z(n)?tt(function(i,s){return e(r,i,s)}):xt(function(i){return e(r,n,i)});default:return Z(r)&&Z(n)&&Z(o)?t:Z(r)&&Z(n)?tt(function(i,s){return e(i,s,o)}):Z(r)&&Z(o)?tt(function(i,s){return e(i,n,s)}):Z(n)&&Z(o)?tt(function(i,s){return e(r,i,s)}):Z(r)?xt(function(i){return e(i,n,o)}):Z(n)?xt(function(i){return e(r,i,o)}):Z(o)?xt(function(i){return e(r,n,i)}):e(r,n,o)}}}function Kr(e,t){return Object.prototype.hasOwnProperty.call(t,e)}function Ss(e){return Object.prototype.toString.call(e)==="[object Object]"}var ud=uo(function(t,r,n){var o=t(r),i=t(n);return o>i?-1:o<i?1:0}),dd=uo(function(t,r,n){var o={},i;r=r||{},n=n||{};for(i in r)Kr(i,r)&&(o[i]=Kr(i,n)?t(i,r[i],n[i]):r[i]);for(i in n)Kr(i,n)&&!Kr(i,o)&&(o[i]=n[i]);return o}),fd=uo(function e(t,r,n){return dd(function(o,i,s){return Ss(i)&&Ss(s)?e(t,i,s):t(o,i,s)},r,n)}),pd=tt(function(t,r){return fd(function(n,o,i){return i},t,r)}),hd=tt(function(t,r){return Array.prototype.slice.call(r,0).sort(function(n,o){for(var i=0,s=0;i===0&&s<t.length;)i=t[s](n,o),s+=1;return i})});const fo=()=>{const e=os(),t=vs();return C.useMemo(()=>md(e,t),[e,t])},md=(e,t)=>hd([ud(gd)],t).find(r=>r.route&&e.startsWith(r.route)),gd=e=>{var t;return((t=e==null?void 0:e.route)==null?void 0:t.length)||-1},Ts=()=>{var e;return(e=fo())==null?void 0:e.name},vd=()=>{const e=fo(),t=ys(e);return Yr(t==null?void 0:t.name)},As=(e,t)=>{const n=Vt().find(o=>o.name===e);if(!n){if(t)return null;throw new Error(`Service with name [${e}] not available in the catalog`)}return n.baseUrl},po=(e,t)=>{const r=As(e,!!t)??t;return C.useCallback((n,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(`${r}${n}`),{...o,headers:s})},[r])},yd=e=>e.replace(/\/+/g,"/"),bd=(e,t)=>r=>({timestamp:new Date(new Date().toUTCString()).toISOString(),module:t.name,moduleVersion:t.version,application:t.application,user:e.username,...r}),wd=(e,t,r)=>async n=>{if(n.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(n.map(bd(t,r)))});if(!o.ok)throw new Error(`Error publishing habits event ${o.statusText}`)},_d="@bluealba/pae-habits-service",Ps=()=>{const{authUser:e}=qr(),t=Er(),r=po(_d);return C.useCallback(wd(r,e,t),[r,e,t])},xd=()=>{const e=Ps();return C.useCallback((t,r)=>e([{name:t,data:r}]),[e])},Os=e=>{const t=Er(),r=window[rs],[n,o]=C.useState(null);return C.useEffect(()=>r.defineExtensionPoint(t,e,i=>{o(()=>i)}),[o]),n},ks=(e,t,r)=>{C.useEffect(()=>window[rs].setExtensionPoint(e,t,r),[])},Rs=(e,t)=>{C.useEffect(()=>(window.addEventListener(e,t),()=>window.removeEventListener(e,t)),[e,t])},js=e=>{const{cssCustomizationLoadingDelay:t=1e3}=fs();C.useEffect(()=>{if(!e)return;const r=document.createElement("style");return setTimeout(()=>{r.innerHTML=e,document.head.append(r)},t),()=>r&&r.remove()},[e])},Cd=e=>{var t;return(t=e.split(/[#?]/)[0].split(".").pop())==null?void 0:t.trim()},Ed={woff2:"woff2",woff:"woff",ttf:"truetype",otf:"opentype",eot:"embedded-opentype",svg:"svg"},Sd=e=>{const t=Cd(e);return t?Ed[t]:void 0},Td=(e,t)=>{const r=t??Sd(e);return r?`format(${r})`:""};function Ds(e){const[t,r]=C.useState(!1);return C.useEffect(()=>{if(!(e!=null&&e.length))return;const n=document.createElement("style");n.setAttribute("data-generated-fonts","true");const o=e.flatMap(({fontFamily:s,variants:a})=>a.map(({path:l,fontWeight:u,format:d})=>`
|
|
24
49
|
@font-face {
|
|
25
50
|
font-family: "${s}";
|
|
26
|
-
src: url("${l}") ${
|
|
51
|
+
src: url("${l}") ${Td(l,d)};
|
|
27
52
|
font-weight: ${u};
|
|
28
53
|
font-style: normal;
|
|
29
54
|
}
|
|
30
55
|
`)).join(`
|
|
31
|
-
`);return n.innerHTML=o,document.head.appendChild(n),(async()=>{try{await Promise.all(e.flatMap(({fontFamily:s,variants:a})=>a.map(({fontWeight:l})=>document.fonts.load(`normal ${l} 1em "${s}"`))))}finally{r(!0)}})(),()=>{document.head.removeChild(n)}},[e]),C.useEffect(()=>{!t&&!(e!=null&&e.length)&&r(!0)},[e,t]),{fontsLoaded:t}}var ho=function(e,t){return ho=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},ho(e,t)};function Sr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ho(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var De=function(){return De=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},De.apply(this,arguments)};function
|
|
56
|
+
`);return n.innerHTML=o,document.head.appendChild(n),(async()=>{try{await Promise.all(e.flatMap(({fontFamily:s,variants:a})=>a.map(({fontWeight:l})=>document.fonts.load(`normal ${l} 1em "${s}"`))))}finally{r(!0)}})(),()=>{document.head.removeChild(n)}},[e]),C.useEffect(()=>{!t&&!(e!=null&&e.length)&&r(!0)},[e,t]),{fontsLoaded:t}}var ho=function(e,t){return ho=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},ho(e,t)};function Sr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ho(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var De=function(){return De=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},De.apply(this,arguments)};function Ls(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function mo(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function go(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i}function Zr(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function He(e){return typeof e=="function"}function Is(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var vo=Is(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
32
57
|
`+r.map(function(n,o){return o+1+") "+n.toString()}).join(`
|
|
33
|
-
`):"",this.name="UnsubscriptionError",this.errors=r}});function yo(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Xr=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,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=mo(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&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else s.remove(this);var d=this.initialTeardown;if(He(d))try{d()}catch(f){i=f instanceof vo?f.errors:[f]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var p=mo(h),g=p.next();!g.done;g=p.next()){var w=g.value;try{Ds(w)}catch(f){i=i??[],f instanceof vo?i=Zr(Zr([],go(i)),go(f.errors)):i.push(f)}}}catch(f){n={error:f}}finally{try{g&&!g.done&&(o=p.return)&&o.call(p)}finally{if(n)throw n.error}}}if(i)throw new vo(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Ds(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&yo(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&yo(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Rs=Xr.EMPTY;function js(e){return e instanceof Xr||e&&"closed"in e&&He(e.remove)&&He(e.add)&&He(e.unsubscribe)}function Ds(e){He(e)?e():e.unsubscribe()}var gd={Promise:void 0},vd={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,Zr([e,t],go(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function yd(e){vd.setTimeout(function(){throw e})}function Ls(){}function Jr(e){e()}var Is=function(e){Sr(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,js(r)&&r.add(n)):n.destination=_d,n}return t.create=function(r,n,o){return new bo(r,n,o)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},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(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Xr),bd=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(n){en(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){en(n)}else en(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){en(r)}},e}(),bo=function(e){Sr(t,e);function t(r,n,o){var i=e.call(this)||this,s;return He(r)||!r?s={next:r??void 0,error:n??void 0,complete:o??void 0}:s=r,i.destination=new bd(s),i}return t}(Is);function en(e){yd(e)}function wd(e){throw e}var _d={closed:!0,next:Ls,error:wd,complete:Ls},xd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Cd(e){return e}function Ed(e){return e.length===0?Cd:e.length===1?e[0]:function(r){return e.reduce(function(n,o){return o(n)},r)}}var Ns=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var o=this,i=Td(t)?t:new bo(t,r,n);return Jr(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(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=Ms(r),new r(function(o,i){var s=new bo({next:function(a){try{t(a)}catch(l){i(l),s.unsubscribe()}},error:i,complete:o});n.subscribe(s)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[xd]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Ed(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Ms(t),new t(function(n,o){var i;r.subscribe(function(s){return i=s},function(s){return o(s)},function(){return n(i)})})},e.create=function(t){return new e(t)},e}();function Ms(e){var t;return(t=e??gd.Promise)!==null&&t!==void 0?t:Promise}function Sd(e){return e&&He(e.next)&&He(e.error)&&He(e.complete)}function Td(e){return e&&e instanceof Is||Sd(e)&&js(e)}var Ad=ks(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),$s=function(e){Sr(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var n=new Fs(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new Ad},t.prototype.next=function(r){var n=this;Jr(function(){var o,i;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var s=mo(n.currentObservers),a=s.next();!a.done;a=s.next()){var l=a.value;l.next(r)}}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(r){var n=this;Jr(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var o=n.observers;o.length;)o.shift().error(r)}})},t.prototype.complete=function(){var r=this;Jr(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,o=this,i=o.hasError,s=o.isStopped,a=o.observers;return i||s?Rs:(this.currentObservers=null,a.push(r),new Xr(function(){n.currentObservers=null,yo(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,i=n.thrownError,s=n.isStopped;o?r.error(i):s&&r.complete()},t.prototype.asObservable=function(){var r=new Ns;return r.source=this,r},t.create=function(r,n){return new Fs(r,n)},t}(Ns),Fs=function(e){Sr(t,e);function t(r,n){var o=e.call(this)||this;return o.destination=r,o.source=n,o}return t.prototype.next=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,r)},t.prototype.error=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&o!==void 0?o:Rs},t}($s),Pd=function(e){Sr(t,e);function t(r){var n=e.call(this)||this;return n._value=r,n}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(r){var n=e.prototype._subscribe.call(this,r);return!n.closed&&r.next(this._value),n},t.prototype.getValue=function(){var r=this,n=r.hasError,o=r.thrownError,i=r._value;if(n)throw o;return this._throwIfClosed(),i},t.prototype.next=function(r){e.prototype.next.call(this,this._value=r)},t}($s);const Od=e=>{const{fontsLoaded:t}=Ps(e.fonts);As(e.styleSheet);const r=()=>{const n=new Pd(!0);window[io]=n};C.useEffect(()=>{t&&window[io].next(!1)},[t]),C.useEffect(()=>{r()},[])},kd=()=>{const e=window[io];return ns(e,e.getValue()??void 0)},wo="theme",Bs=()=>document.documentElement.dataset[wo]==="dark"?"dark":"light",Rd=()=>{const[e,t]=C.useState(Bs());return C.useEffect(()=>{const r=document.documentElement,n=()=>t(Bs),o=new MutationObserver(i=>{for(const s of i)s.type==="attributes"&&s.attributeName===`data-${wo}`&&n()});return o.observe(r,{attributes:!0,attributeFilter:[`data-${wo}`]}),n(),()=>{o.disconnect()}},[]),e},jd=e=>e!==void 0,Dd=e=>e!==!0;let Ld={data:""},Id=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Ld,Nd=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Md=/\/\*[^]*?\*\/| +/g,Us=/\n+/g,rt=(e,t)=>{let r="",n="",o="";for(let i in e){let s=e[i];i[0]=="@"?i[1]=="i"?r=i+" "+s+";":n+=i[1]=="f"?rt(s,i):i+"{"+rt(s,i[1]=="k"?"":t)+"}":typeof s=="object"?n+=rt(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+=rt.p?rt.p(i,s):i+":"+s+";")}return r+(t&&o?t+"{"+o+"}":o)+n},We={},zs=e=>{if(typeof e=="object"){let t="";for(let r in e)t+=r+zs(e[r]);return t}return e},$d=(e,t,r,n,o)=>{let i=zs(e),s=We[i]||(We[i]=(l=>{let u=0,d=11;for(;u<l.length;)d=101*d+l.charCodeAt(u++)>>>0;return"go"+d})(i));if(!We[s]){let l=i!==e?e:(u=>{let d,h,p=[{}];for(;d=Nd.exec(u.replace(Md,""));)d[4]?p.shift():d[3]?(h=d[3].replace(Us," ").trim(),p.unshift(p[0][h]=p[0][h]||{})):p[0][d[1]]=d[2].replace(Us," ").trim();return p[0]})(e);We[s]=rt(o?{["@keyframes "+s]:l}:l,r?"":"."+s)}let a=r&&We.g?We.g:null;return r&&(We.g=We[s]),((l,u,d,h)=>{h?u.data=u.data.replace(h,l):u.data.indexOf(l)===-1&&(u.data=d?l+u.data:u.data+l)})(We[s],t,n,a),s},Fd=(e,t,r)=>e.reduce((n,o,i)=>{let s=t[i];if(s&&s.call){let a=s(r),l=a&&a.props&&a.props.className||/^go/.test(a)&&a;s=l?"."+l:a&&typeof a=="object"?a.props?"":rt(a,""):a===!1?"":a}return n+o+(s??"")},"");function tn(e){let t=this||{},r=e.call?e(t.p):e;return $d(r.unshift?r.raw?Fd(r,[].slice.call(arguments,1),t.p):r.reduce((n,o)=>Object.assign(n,o&&o.call?o(t.p):o),{}):r,Id(t.target),t.g,t.o,t.k)}let Hs,_o,xo;tn.bind({g:1});let Ve=tn.bind({k:1});function Bd(e,t,r,n){rt.p=t,Hs=e,_o=r,xo=n}function nt(e,t){let r=this||{};return function(){let n=arguments;function o(i,s){let a=Object.assign({},i),l=a.className||o.className;r.p=Object.assign({theme:_o&&_o()},a),r.o=/ *go\d+/.test(l),a.className=tn.apply(r,n)+(l?" "+l:"");let u=e;return e[0]&&(u=a.as||e,delete a.as),xo&&u[0]&&xo(a),Hs(u,a)}return o}}var Ud=e=>typeof e=="function",rn=(e,t)=>Ud(e)?e(t):e,zd=(()=>{let e=0;return()=>(++e).toString()})(),Ws=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Hd=20,nn=new Map,Wd=1e3,Vs=e=>{if(nn.has(e))return;let t=setTimeout(()=>{nn.delete(e),Ct({type:4,toastId:e})},Wd);nn.set(e,t)},Vd=e=>{let t=nn.get(e);t&&clearTimeout(t)},Co=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,Hd)};case 1:return t.toast.id&&Vd(t.toast.id),{...e,toasts:e.toasts.map(i=>i.id===t.toast.id?{...i,...t.toast}:i)};case 2:let{toast:r}=t;return e.toasts.find(i=>i.id===r.id)?Co(e,{type:1,toast:r}):Co(e,{type:0,toast:r});case 3:let{toastId:n}=t;return n?Vs(n):e.toasts.forEach(i=>{Vs(i.id)}),{...e,toasts:e.toasts.map(i=>i.id===n||n===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}))}}},on=[],sn={toasts:[],pausedAt:void 0},Ct=e=>{sn=Co(sn,e),on.forEach(t=>{t(sn)})},Gd={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},qd=(e={})=>{let[t,r]=C.useState(sn);C.useEffect(()=>(on.push(r),()=>{let o=on.indexOf(r);o>-1&&on.splice(o,1)}),[t]);let n=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)||Gd[o.type],style:{...e.style,...(s=e[o.type])==null?void 0:s.style,...o.style}}});return{...t,toasts:n}},Qd=(e,t="blank",r)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...r,id:(r==null?void 0:r.id)||zd()}),Tr=e=>(t,r)=>{let n=Qd(t,e,r);return Ct({type:2,toast:n}),n.id},be=(e,t)=>Tr("blank")(e,t);be.error=Tr("error"),be.success=Tr("success"),be.loading=Tr("loading"),be.custom=Tr("custom"),be.dismiss=e=>{Ct({type:3,toastId:e})},be.remove=e=>Ct({type:4,toastId:e}),be.promise=(e,t,r)=>{let n=be.loading(t.loading,{...r,...r==null?void 0:r.loading});return e.then(o=>(be.success(rn(t.success,o),{id:n,...r,...r==null?void 0:r.success}),o)).catch(o=>{be.error(rn(t.error,o),{id:n,...r,...r==null?void 0:r.error})}),e};var Yd=(e,t)=>{Ct({type:1,toast:{id:e,height:t}})},Kd=()=>{Ct({type:5,time:Date.now()})},Zd=e=>{let{toasts:t,pausedAt:r}=qd(e);C.useEffect(()=>{if(r)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&&be.dismiss(a.id);return}return setTimeout(()=>be.dismiss(a.id),l)});return()=>{s.forEach(a=>a&&clearTimeout(a))}},[t,r]);let n=C.useCallback(()=>{r&&Ct({type:6,time:Date.now()})},[r]),o=C.useCallback((i,s)=>{let{reverseOrder:a=!1,gutter:l=8,defaultPosition:u}=s||{},d=t.filter(g=>(g.position||u)===(i.position||u)&&g.height),h=d.findIndex(g=>g.id===i.id),p=d.filter((g,w)=>w<h&&g.visible).length;return d.filter(g=>g.visible).slice(...a?[p+1]:[0,p]).reduce((g,w)=>g+(w.height||0)+l,0)},[t]);return{toasts:t,handlers:{updateHeight:Yd,startPause:Kd,endPause:n,calculateOffset:o}}},Xd=Ve`
|
|
58
|
+
`):"",this.name="UnsubscriptionError",this.errors=r}});function yo(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Xr=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,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=mo(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&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else s.remove(this);var d=this.initialTeardown;if(He(d))try{d()}catch(f){i=f instanceof vo?f.errors:[f]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var p=mo(h),g=p.next();!g.done;g=p.next()){var w=g.value;try{$s(w)}catch(f){i=i??[],f instanceof vo?i=Zr(Zr([],go(i)),go(f.errors)):i.push(f)}}}catch(f){n={error:f}}finally{try{g&&!g.done&&(o=p.return)&&o.call(p)}finally{if(n)throw n.error}}}if(i)throw new vo(i)}},e.prototype.add=function(t){var r;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=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&yo(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&yo(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Ns=Xr.EMPTY;function Ms(e){return e instanceof Xr||e&&"closed"in e&&He(e.remove)&&He(e.add)&&He(e.unsubscribe)}function $s(e){He(e)?e():e.unsubscribe()}var Ad={Promise:void 0},Pd={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,Zr([e,t],go(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Od(e){Pd.setTimeout(function(){throw e})}function Fs(){}function Jr(e){e()}var Bs=function(e){Sr(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,Ms(r)&&r.add(n)):n.destination=jd,n}return t.create=function(r,n,o){return new bo(r,n,o)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},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(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Xr),kd=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(n){en(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){en(n)}else en(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){en(r)}},e}(),bo=function(e){Sr(t,e);function t(r,n,o){var i=e.call(this)||this,s;return He(r)||!r?s={next:r??void 0,error:n??void 0,complete:o??void 0}:s=r,i.destination=new kd(s),i}return t}(Bs);function en(e){Od(e)}function Rd(e){throw e}var jd={closed:!0,next:Fs,error:Rd,complete:Fs},Dd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Ld(e){return e}function Id(e){return e.length===0?Ld:e.length===1?e[0]:function(r){return e.reduce(function(n,o){return o(n)},r)}}var Us=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var o=this,i=Md(t)?t:new bo(t,r,n);return Jr(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(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=zs(r),new r(function(o,i){var s=new bo({next:function(a){try{t(a)}catch(l){i(l),s.unsubscribe()}},error:i,complete:o});n.subscribe(s)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[Dd]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Id(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=zs(t),new t(function(n,o){var i;r.subscribe(function(s){return i=s},function(s){return o(s)},function(){return n(i)})})},e.create=function(t){return new e(t)},e}();function zs(e){var t;return(t=e??Ad.Promise)!==null&&t!==void 0?t:Promise}function Nd(e){return e&&He(e.next)&&He(e.error)&&He(e.complete)}function Md(e){return e&&e instanceof Bs||Nd(e)&&Ms(e)}var $d=Is(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Hs=function(e){Sr(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var n=new Ws(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new $d},t.prototype.next=function(r){var n=this;Jr(function(){var o,i;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var s=mo(n.currentObservers),a=s.next();!a.done;a=s.next()){var l=a.value;l.next(r)}}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(r){var n=this;Jr(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var o=n.observers;o.length;)o.shift().error(r)}})},t.prototype.complete=function(){var r=this;Jr(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,o=this,i=o.hasError,s=o.isStopped,a=o.observers;return i||s?Ns:(this.currentObservers=null,a.push(r),new Xr(function(){n.currentObservers=null,yo(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,i=n.thrownError,s=n.isStopped;o?r.error(i):s&&r.complete()},t.prototype.asObservable=function(){var r=new Us;return r.source=this,r},t.create=function(r,n){return new Ws(r,n)},t}(Us),Ws=function(e){Sr(t,e);function t(r,n){var o=e.call(this)||this;return o.destination=r,o.source=n,o}return t.prototype.next=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,r)},t.prototype.error=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&o!==void 0?o:Ns},t}(Hs),Fd=function(e){Sr(t,e);function t(r){var n=e.call(this)||this;return n._value=r,n}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(r){var n=e.prototype._subscribe.call(this,r);return!n.closed&&r.next(this._value),n},t.prototype.getValue=function(){var r=this,n=r.hasError,o=r.thrownError,i=r._value;if(n)throw o;return this._throwIfClosed(),i},t.prototype.next=function(r){e.prototype.next.call(this,this._value=r)},t}(Hs);const Bd=e=>{const{fontsLoaded:t}=Ds(e.fonts);js(e.styleSheet);const r=()=>{const n=new Fd(!0);window[io]=n};C.useEffect(()=>{t&&window[io].next(!1)},[t]),C.useEffect(()=>{r()},[])},Ud=()=>{const e=window[io];return ns(e,e.getValue()??void 0)},wo="theme",Vs=()=>document.documentElement.dataset[wo]==="dark"?"dark":"light",zd=()=>{const[e,t]=C.useState(Vs());return C.useEffect(()=>{const r=document.documentElement,n=()=>t(Vs),o=new MutationObserver(i=>{for(const s of i)s.type==="attributes"&&s.attributeName===`data-${wo}`&&n()});return o.observe(r,{attributes:!0,attributeFilter:[`data-${wo}`]}),n(),()=>{o.disconnect()}},[]),e},Hd=e=>e!==void 0,Wd=e=>e!==!0;let Vd={data:""},Gd=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Vd,qd=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Qd=/\/\*[^]*?\*\/| +/g,Gs=/\n+/g,rt=(e,t)=>{let r="",n="",o="";for(let i in e){let s=e[i];i[0]=="@"?i[1]=="i"?r=i+" "+s+";":n+=i[1]=="f"?rt(s,i):i+"{"+rt(s,i[1]=="k"?"":t)+"}":typeof s=="object"?n+=rt(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+=rt.p?rt.p(i,s):i+":"+s+";")}return r+(t&&o?t+"{"+o+"}":o)+n},We={},qs=e=>{if(typeof e=="object"){let t="";for(let r in e)t+=r+qs(e[r]);return t}return e},Yd=(e,t,r,n,o)=>{let i=qs(e),s=We[i]||(We[i]=(l=>{let u=0,d=11;for(;u<l.length;)d=101*d+l.charCodeAt(u++)>>>0;return"go"+d})(i));if(!We[s]){let l=i!==e?e:(u=>{let d,h,p=[{}];for(;d=qd.exec(u.replace(Qd,""));)d[4]?p.shift():d[3]?(h=d[3].replace(Gs," ").trim(),p.unshift(p[0][h]=p[0][h]||{})):p[0][d[1]]=d[2].replace(Gs," ").trim();return p[0]})(e);We[s]=rt(o?{["@keyframes "+s]:l}:l,r?"":"."+s)}let a=r&&We.g?We.g:null;return r&&(We.g=We[s]),((l,u,d,h)=>{h?u.data=u.data.replace(h,l):u.data.indexOf(l)===-1&&(u.data=d?l+u.data:u.data+l)})(We[s],t,n,a),s},Kd=(e,t,r)=>e.reduce((n,o,i)=>{let s=t[i];if(s&&s.call){let a=s(r),l=a&&a.props&&a.props.className||/^go/.test(a)&&a;s=l?"."+l:a&&typeof a=="object"?a.props?"":rt(a,""):a===!1?"":a}return n+o+(s??"")},"");function tn(e){let t=this||{},r=e.call?e(t.p):e;return Yd(r.unshift?r.raw?Kd(r,[].slice.call(arguments,1),t.p):r.reduce((n,o)=>Object.assign(n,o&&o.call?o(t.p):o),{}):r,Gd(t.target),t.g,t.o,t.k)}let Qs,_o,xo;tn.bind({g:1});let Ve=tn.bind({k:1});function Zd(e,t,r,n){rt.p=t,Qs=e,_o=r,xo=n}function nt(e,t){let r=this||{};return function(){let n=arguments;function o(i,s){let a=Object.assign({},i),l=a.className||o.className;r.p=Object.assign({theme:_o&&_o()},a),r.o=/ *go\d+/.test(l),a.className=tn.apply(r,n)+(l?" "+l:"");let u=e;return e[0]&&(u=a.as||e,delete a.as),xo&&u[0]&&xo(a),Qs(u,a)}return o}}var Xd=e=>typeof e=="function",rn=(e,t)=>Xd(e)?e(t):e,Jd=(()=>{let e=0;return()=>(++e).toString()})(),Ys=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),ef=20,nn=new Map,tf=1e3,Ks=e=>{if(nn.has(e))return;let t=setTimeout(()=>{nn.delete(e),Ct({type:4,toastId:e})},tf);nn.set(e,t)},rf=e=>{let t=nn.get(e);t&&clearTimeout(t)},Co=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,ef)};case 1:return t.toast.id&&rf(t.toast.id),{...e,toasts:e.toasts.map(i=>i.id===t.toast.id?{...i,...t.toast}:i)};case 2:let{toast:r}=t;return e.toasts.find(i=>i.id===r.id)?Co(e,{type:1,toast:r}):Co(e,{type:0,toast:r});case 3:let{toastId:n}=t;return n?Ks(n):e.toasts.forEach(i=>{Ks(i.id)}),{...e,toasts:e.toasts.map(i=>i.id===n||n===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}))}}},on=[],sn={toasts:[],pausedAt:void 0},Ct=e=>{sn=Co(sn,e),on.forEach(t=>{t(sn)})},nf={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},of=(e={})=>{let[t,r]=C.useState(sn);C.useEffect(()=>(on.push(r),()=>{let o=on.indexOf(r);o>-1&&on.splice(o,1)}),[t]);let n=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)||nf[o.type],style:{...e.style,...(s=e[o.type])==null?void 0:s.style,...o.style}}});return{...t,toasts:n}},sf=(e,t="blank",r)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...r,id:(r==null?void 0:r.id)||Jd()}),Tr=e=>(t,r)=>{let n=sf(t,e,r);return Ct({type:2,toast:n}),n.id},be=(e,t)=>Tr("blank")(e,t);be.error=Tr("error"),be.success=Tr("success"),be.loading=Tr("loading"),be.custom=Tr("custom"),be.dismiss=e=>{Ct({type:3,toastId:e})},be.remove=e=>Ct({type:4,toastId:e}),be.promise=(e,t,r)=>{let n=be.loading(t.loading,{...r,...r==null?void 0:r.loading});return e.then(o=>(be.success(rn(t.success,o),{id:n,...r,...r==null?void 0:r.success}),o)).catch(o=>{be.error(rn(t.error,o),{id:n,...r,...r==null?void 0:r.error})}),e};var af=(e,t)=>{Ct({type:1,toast:{id:e,height:t}})},lf=()=>{Ct({type:5,time:Date.now()})},cf=e=>{let{toasts:t,pausedAt:r}=of(e);C.useEffect(()=>{if(r)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&&be.dismiss(a.id);return}return setTimeout(()=>be.dismiss(a.id),l)});return()=>{s.forEach(a=>a&&clearTimeout(a))}},[t,r]);let n=C.useCallback(()=>{r&&Ct({type:6,time:Date.now()})},[r]),o=C.useCallback((i,s)=>{let{reverseOrder:a=!1,gutter:l=8,defaultPosition:u}=s||{},d=t.filter(g=>(g.position||u)===(i.position||u)&&g.height),h=d.findIndex(g=>g.id===i.id),p=d.filter((g,w)=>w<h&&g.visible).length;return d.filter(g=>g.visible).slice(...a?[p+1]:[0,p]).reduce((g,w)=>g+(w.height||0)+l,0)},[t]);return{toasts:t,handlers:{updateHeight:af,startPause:lf,endPause:n,calculateOffset:o}}},uf=Ve`
|
|
34
59
|
from {
|
|
35
60
|
transform: scale(0) rotate(45deg);
|
|
36
61
|
opacity: 0;
|
|
@@ -38,7 +63,7 @@ from {
|
|
|
38
63
|
to {
|
|
39
64
|
transform: scale(1) rotate(45deg);
|
|
40
65
|
opacity: 1;
|
|
41
|
-
}`,
|
|
66
|
+
}`,df=Ve`
|
|
42
67
|
from {
|
|
43
68
|
transform: scale(0);
|
|
44
69
|
opacity: 0;
|
|
@@ -46,7 +71,7 @@ from {
|
|
|
46
71
|
to {
|
|
47
72
|
transform: scale(1);
|
|
48
73
|
opacity: 1;
|
|
49
|
-
}`,
|
|
74
|
+
}`,ff=Ve`
|
|
50
75
|
from {
|
|
51
76
|
transform: scale(0) rotate(90deg);
|
|
52
77
|
opacity: 0;
|
|
@@ -54,7 +79,7 @@ from {
|
|
|
54
79
|
to {
|
|
55
80
|
transform: scale(1) rotate(90deg);
|
|
56
81
|
opacity: 1;
|
|
57
|
-
}`,
|
|
82
|
+
}`,pf=nt("div")`
|
|
58
83
|
width: 20px;
|
|
59
84
|
opacity: 0;
|
|
60
85
|
height: 20px;
|
|
@@ -63,14 +88,14 @@ to {
|
|
|
63
88
|
position: relative;
|
|
64
89
|
transform: rotate(45deg);
|
|
65
90
|
|
|
66
|
-
animation: ${
|
|
91
|
+
animation: ${uf} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
67
92
|
forwards;
|
|
68
93
|
animation-delay: 100ms;
|
|
69
94
|
|
|
70
95
|
&:after,
|
|
71
96
|
&:before {
|
|
72
97
|
content: '';
|
|
73
|
-
animation: ${
|
|
98
|
+
animation: ${df} 0.15s ease-out forwards;
|
|
74
99
|
animation-delay: 150ms;
|
|
75
100
|
position: absolute;
|
|
76
101
|
border-radius: 3px;
|
|
@@ -83,18 +108,18 @@ to {
|
|
|
83
108
|
}
|
|
84
109
|
|
|
85
110
|
&:before {
|
|
86
|
-
animation: ${
|
|
111
|
+
animation: ${ff} 0.15s ease-out forwards;
|
|
87
112
|
animation-delay: 180ms;
|
|
88
113
|
transform: rotate(90deg);
|
|
89
114
|
}
|
|
90
|
-
`,
|
|
115
|
+
`,hf=Ve`
|
|
91
116
|
from {
|
|
92
117
|
transform: rotate(0deg);
|
|
93
118
|
}
|
|
94
119
|
to {
|
|
95
120
|
transform: rotate(360deg);
|
|
96
121
|
}
|
|
97
|
-
`,
|
|
122
|
+
`,mf=nt("div")`
|
|
98
123
|
width: 12px;
|
|
99
124
|
height: 12px;
|
|
100
125
|
box-sizing: border-box;
|
|
@@ -102,8 +127,8 @@ to {
|
|
|
102
127
|
border-radius: 100%;
|
|
103
128
|
border-color: ${e=>e.secondary||"#e0e0e0"};
|
|
104
129
|
border-right-color: ${e=>e.primary||"#616161"};
|
|
105
|
-
animation: ${
|
|
106
|
-
`,
|
|
130
|
+
animation: ${hf} 1s linear infinite;
|
|
131
|
+
`,gf=Ve`
|
|
107
132
|
from {
|
|
108
133
|
transform: scale(0) rotate(45deg);
|
|
109
134
|
opacity: 0;
|
|
@@ -111,7 +136,7 @@ from {
|
|
|
111
136
|
to {
|
|
112
137
|
transform: scale(1) rotate(45deg);
|
|
113
138
|
opacity: 1;
|
|
114
|
-
}`,
|
|
139
|
+
}`,vf=Ve`
|
|
115
140
|
0% {
|
|
116
141
|
height: 0;
|
|
117
142
|
width: 0;
|
|
@@ -125,7 +150,7 @@ to {
|
|
|
125
150
|
100% {
|
|
126
151
|
opacity: 1;
|
|
127
152
|
height: 10px;
|
|
128
|
-
}`,
|
|
153
|
+
}`,yf=nt("div")`
|
|
129
154
|
width: 20px;
|
|
130
155
|
opacity: 0;
|
|
131
156
|
height: 20px;
|
|
@@ -134,13 +159,13 @@ to {
|
|
|
134
159
|
position: relative;
|
|
135
160
|
transform: rotate(45deg);
|
|
136
161
|
|
|
137
|
-
animation: ${
|
|
162
|
+
animation: ${gf} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
138
163
|
forwards;
|
|
139
164
|
animation-delay: 100ms;
|
|
140
165
|
&:after {
|
|
141
166
|
content: '';
|
|
142
167
|
box-sizing: border-box;
|
|
143
|
-
animation: ${
|
|
168
|
+
animation: ${vf} 0.2s ease-out forwards;
|
|
144
169
|
opacity: 0;
|
|
145
170
|
animation-delay: 200ms;
|
|
146
171
|
position: absolute;
|
|
@@ -152,16 +177,16 @@ to {
|
|
|
152
177
|
height: 10px;
|
|
153
178
|
width: 6px;
|
|
154
179
|
}
|
|
155
|
-
`,
|
|
180
|
+
`,bf=nt("div")`
|
|
156
181
|
position: absolute;
|
|
157
|
-
`,
|
|
182
|
+
`,wf=nt("div")`
|
|
158
183
|
position: relative;
|
|
159
184
|
display: flex;
|
|
160
185
|
justify-content: center;
|
|
161
186
|
align-items: center;
|
|
162
187
|
min-width: 20px;
|
|
163
188
|
min-height: 20px;
|
|
164
|
-
`,
|
|
189
|
+
`,_f=Ve`
|
|
165
190
|
from {
|
|
166
191
|
transform: scale(0.6);
|
|
167
192
|
opacity: 0.4;
|
|
@@ -169,20 +194,20 @@ from {
|
|
|
169
194
|
to {
|
|
170
195
|
transform: scale(1);
|
|
171
196
|
opacity: 1;
|
|
172
|
-
}`,
|
|
197
|
+
}`,xf=nt("div")`
|
|
173
198
|
position: relative;
|
|
174
199
|
transform: scale(0.6);
|
|
175
200
|
opacity: 0.4;
|
|
176
201
|
min-width: 20px;
|
|
177
|
-
animation: ${
|
|
202
|
+
animation: ${_f} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
178
203
|
forwards;
|
|
179
|
-
`,
|
|
204
|
+
`,Cf=({toast:e})=>{let{icon:t,type:r,iconTheme:n}=e;return t!==void 0?typeof t=="string"?m.createElement(xf,null,t):t:r==="blank"?null:m.createElement(wf,null,m.createElement(mf,{...n}),r!=="loading"&&m.createElement(bf,null,r==="error"?m.createElement(pf,{...n}):m.createElement(yf,{...n})))},Ef=e=>`
|
|
180
205
|
0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
|
|
181
206
|
100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
|
|
182
|
-
`,
|
|
207
|
+
`,Sf=e=>`
|
|
183
208
|
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
|
|
184
209
|
100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
|
|
185
|
-
`,
|
|
210
|
+
`,Tf="0%{opacity:0;} 100%{opacity:1;}",Af="0%{opacity:1;} 100%{opacity:0;}",Pf=nt("div")`
|
|
186
211
|
display: flex;
|
|
187
212
|
align-items: center;
|
|
188
213
|
background: #fff;
|
|
@@ -194,24 +219,24 @@ to {
|
|
|
194
219
|
pointer-events: auto;
|
|
195
220
|
padding: 8px 10px;
|
|
196
221
|
border-radius: 8px;
|
|
197
|
-
`,
|
|
222
|
+
`,Of=nt("div")`
|
|
198
223
|
display: flex;
|
|
199
224
|
justify-content: center;
|
|
200
225
|
margin: 4px 10px;
|
|
201
226
|
color: inherit;
|
|
202
227
|
flex: 1 1 auto;
|
|
203
228
|
white-space: pre-line;
|
|
204
|
-
`,
|
|
229
|
+
`,kf=(e,t)=>{let r=e.includes("top")?1:-1,[n,o]=Ys()?[Tf,Af]:[Ef(r),Sf(r)];return{animation:t?`${Ve(n)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Ve(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},Rf=m.memo(({toast:e,position:t,style:r,children:n})=>{let o=e.height?kf(e.position||t||"top-center",e.visible):{opacity:0},i=m.createElement(Cf,{toast:e}),s=m.createElement(Of,{...e.ariaProps},rn(e.message,e));return m.createElement(Pf,{className:e.className,style:{...o,...r,...e.style}},typeof n=="function"?n({icon:i,message:s}):m.createElement(m.Fragment,null,i,s))});Zd(m.createElement);var jf=({id:e,className:t,style:r,onHeightUpdate:n,children:o})=>{let i=m.useCallback(s=>{if(s){let a=()=>{let l=s.getBoundingClientRect().height;n(e,l)};a(),new MutationObserver(a).observe(s,{subtree:!0,childList:!0,characterData:!0})}},[e,n]);return m.createElement("div",{ref:i,className:t,style:r},o)},Df=(e,t)=>{let r=e.includes("top"),n=r?{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:Ys()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(r?1:-1)}px)`,...n,...o}},Lf=tn`
|
|
205
230
|
z-index: 9999;
|
|
206
231
|
> * {
|
|
207
232
|
pointer-events: auto;
|
|
208
233
|
}
|
|
209
|
-
`,an=16,Ef=({reverseOrder:e,position:t="top-center",toastOptions:r,gutter:n,children:o,containerStyle:i,containerClassName:s})=>{let{toasts:a,handlers:l}=Zd(r);return m.createElement("div",{style:{position:"fixed",zIndex:9999,top:an,left:an,right:an,bottom:an,pointerEvents:"none",...i},className:s,onMouseEnter:l.startPause,onMouseLeave:l.endPause},a.map(u=>{let d=u.position||t,h=l.calculateOffset(u,{reverseOrder:e,gutter:n,defaultPosition:t}),p=xf(d,h);return m.createElement(_f,{id:u.id,key:u.id,onHeightUpdate:l.updateHeight,className:u.visible?Cf:"",style:p},u.type==="custom"?rn(u.message,u):o?o(u):m.createElement(wf,{toast:u,position:d}))}))},Gs=be;const Eo=()=>({notify:C.useCallback((t,r,n)=>{r==="warning"||r==="info"?Gs(t,{icon:r==="warning"?"⚠️":"ℹ️",style:{background:"var(--platform-background-primary-color)",color:"var(--platform-text-primary-color)"}}):Gs[r](t,{style:{background:"var(--platform-background-primary-color)",color:"var(--platform-text-primary-color)"}}),n&&console.error(n)},[])});var Vt=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(){}},Et=typeof window>"u"||"Deno"in globalThis;function ce(){}function Sf(e,t){return typeof e=="function"?e(t):e}function So(e){return typeof e=="number"&&e>=0&&e!==1/0}function qs(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ot(e,t){return typeof e=="function"?e(t):e}function Se(e,t){return typeof e=="function"?e(t):e}function Qs(e,t){const{type:r="all",exact:n,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s){if(n){if(t.queryHash!==To(s,t.options))return!1}else if(!Ar(t.queryKey,s))return!1}if(r!=="all"){const l=t.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||i&&!i(t))}function Ys(e,t){const{exact:r,status:n,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(r){if(St(t.options.mutationKey)!==St(i))return!1}else if(!Ar(t.options.mutationKey,i))return!1}return!(n&&t.state.status!==n||o&&!o(t))}function To(e,t){return((t==null?void 0:t.queryKeyHashFn)||St)(e)}function St(e){return JSON.stringify(e,(t,r)=>Po(r)?Object.keys(r).sort().reduce((n,o)=>(n[o]=r[o],n),{}):r)}function Ar(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>Ar(e[r],t[r])):!1}function Ao(e,t){if(e===t)return e;const r=Ks(e)&&Ks(t);if(r||Po(e)&&Po(t)){const n=r?e:Object.keys(e),o=n.length,i=r?t:Object.keys(t),s=i.length,a=r?[]:{};let l=0;for(let u=0;u<s;u++){const d=r?u:i[u];(!r&&n.includes(d)||r)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,l++):(a[d]=Ao(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&l++)}return o===s&&l===o?e:a}return t}function ln(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function Ks(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Po(e){if(!Zs(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!Zs(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Zs(e){return Object.prototype.toString.call(e)==="[object Object]"}function Tf(e){return new Promise(t=>{setTimeout(t,e)})}function Oo(e,t,r){if(typeof r.structuralSharing=="function")return r.structuralSharing(e,t);if(r.structuralSharing!==!1){try{return Ao(e,t)}catch(n){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. [${r.queryHash}]: ${n}`),n}return Ao(e,t)}return t}function Af(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function Pf(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var cn=Symbol();function Xs(e,t){return e.queryFn===cn&&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===cn?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Js(e,t){return typeof e=="function"?e(...t):!!e}var Of=(su=class extends Vt{constructor(){super();L(this,Rt);L(this,ut);L(this,nr);R(this,nr,t=>{if(!Et&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){b(this,ut)||this.setEventListener(b(this,nr))}onUnsubscribe(){var t;this.hasListeners()||((t=b(this,ut))==null||t.call(this),R(this,ut,void 0))}setEventListener(t){var r;R(this,nr,t),(r=b(this,ut))==null||r.call(this),R(this,ut,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){b(this,Rt)!==t&&(R(this,Rt,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof b(this,Rt)=="boolean"?b(this,Rt):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Rt=new WeakMap,ut=new WeakMap,nr=new WeakMap,su),ko=new Of,kf=(au=class extends Vt{constructor(){super();L(this,or,!0);L(this,dt);L(this,ir);R(this,ir,t=>{if(!Et&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){b(this,dt)||this.setEventListener(b(this,ir))}onUnsubscribe(){var t;this.hasListeners()||((t=b(this,dt))==null||t.call(this),R(this,dt,void 0))}setEventListener(t){var r;R(this,ir,t),(r=b(this,dt))==null||r.call(this),R(this,dt,t(this.setOnline.bind(this)))}setOnline(t){b(this,or)!==t&&(R(this,or,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return b(this,or)}},or=new WeakMap,dt=new WeakMap,ir=new WeakMap,au),un=new kf;function Ro(){let e,t;const r=new Promise((o,i)=>{e=o,t=i});r.status="pending",r.catch(()=>{});function n(o){Object.assign(r,o),delete r.resolve,delete r.reject}return r.resolve=o=>{n({status:"fulfilled",value:o}),e(o)},r.reject=o=>{n({status:"rejected",reason:o}),t(o)},r}function Rf(e){return Math.min(1e3*2**e,3e4)}function ea(e){return(e??"online")==="online"?un.isOnline():!0}var ta=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function jo(e){return e instanceof ta}function ra(e){let t=!1,r=0,n=!1,o;const i=Ro(),s=f=>{var v;n||(p(new ta(f)),(v=e.abort)==null||v.call(e))},a=()=>{t=!0},l=()=>{t=!1},u=()=>ko.isFocused()&&(e.networkMode==="always"||un.isOnline())&&e.canRun(),d=()=>ea(e.networkMode)&&e.canRun(),h=f=>{var v;n||(n=!0,(v=e.onSuccess)==null||v.call(e,f),o==null||o(),i.resolve(f))},p=f=>{var v;n||(n=!0,(v=e.onError)==null||v.call(e,f),o==null||o(),i.reject(f))},g=()=>new Promise(f=>{var v;o=_=>{(n||u())&&f(_)},(v=e.onPause)==null||v.call(e)}).then(()=>{var f;o=void 0,n||(f=e.onContinue)==null||f.call(e)}),w=()=>{if(n)return;let f;const v=r===0?e.initialPromise:void 0;try{f=v??e.fn()}catch(_){f=Promise.reject(_)}Promise.resolve(f).then(h).catch(_=>{var k;if(n)return;const x=e.retry??(Et?0:3),T=e.retryDelay??Rf,S=typeof T=="function"?T(r,_):T,A=x===!0||typeof x=="number"&&r<x||typeof x=="function"&&x(r,_);if(t||!A){p(_);return}r++,(k=e.onFail)==null||k.call(e,r,_),Tf(S).then(()=>u()?void 0:g()).then(()=>{t?p(_):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 jf=e=>setTimeout(e,0);function Df(){let e=[],t=0,r=a=>{a()},n=a=>{a()},o=jf;const i=a=>{t?e.push(a):o(()=>{r(a)})},s=()=>{const a=e;e=[],a.length&&o(()=>{n(()=>{a.forEach(l=>{r(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=>{r=a},setBatchNotifyFunction:a=>{n=a},setScheduler:a=>{o=a}}}var oe=Df(),na=(lu=class{constructor(){L(this,jt)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),So(this.gcTime)&&R(this,jt,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Et?1/0:5*60*1e3))}clearGcTimeout(){b(this,jt)&&(clearTimeout(b(this,jt)),R(this,jt,void 0))}},jt=new WeakMap,lu),Lf=(cu=class extends na{constructor(t){super();L(this,Re);L(this,sr);L(this,ar);L(this,Ce);L(this,Dt);L(this,le);L(this,$r);L(this,Lt);R(this,Lt,!1),R(this,$r,t.defaultOptions),this.setOptions(t.options),this.observers=[],R(this,Dt,t.client),R(this,Ce,b(this,Dt).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,R(this,sr,If(this.options)),this.state=t.state??b(this,sr),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=b(this,le))==null?void 0:t.promise}setOptions(t){this.options={...b(this,$r),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&b(this,Ce).remove(this)}setData(t,r){const n=Oo(this.state.data,t,this.options);return F(this,Re,Je).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){F(this,Re,Je).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,o;const r=(n=b(this,le))==null?void 0:n.promise;return(o=b(this,le))==null||o.cancel(t),r?r.then(ce).catch(ce):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(b(this,sr))}isActive(){return this.observers.some(t=>Se(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===cn||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>ot(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:!qs(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=b(this,le))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=b(this,le))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),b(this,Ce).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(b(this,le)&&(b(this,Lt)?b(this,le).cancel({revert:!0}):b(this,le).cancelRetry()),this.scheduleGc()),b(this,Ce).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||F(this,Re,Je).call(this,{type:"invalidate"})}fetch(t,r){var u,d,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(b(this,le))return b(this,le).continueRetry(),b(this,le).promise}if(t&&this.setOptions(t),!this.options.queryFn){const p=this.observers.find(g=>g.options.queryFn);p&&this.setOptions(p.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 n=new AbortController,o=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(R(this,Lt,!0),n.signal)})},i=()=>{const p=Xs(this.options,r),w=(()=>{const f={client:b(this,Dt),queryKey:this.queryKey,meta:this.meta};return o(f),f})();return R(this,Lt,!1),this.options.persister?this.options.persister(p,w,this):p(w)},a=(()=>{const p={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:b(this,Dt),state:this.state,fetchFn:i};return o(p),p})();(u=this.options.behavior)==null||u.onFetch(a,this),R(this,ar,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=a.fetchOptions)==null?void 0:d.meta))&&F(this,Re,Je).call(this,{type:"fetch",meta:(h=a.fetchOptions)==null?void 0:h.meta});const l=p=>{var g,w,f,v;jo(p)&&p.silent||F(this,Re,Je).call(this,{type:"error",error:p}),jo(p)||((w=(g=b(this,Ce).config).onError)==null||w.call(g,p,this),(v=(f=b(this,Ce).config).onSettled)==null||v.call(f,this.state.data,p,this)),this.scheduleGc()};return R(this,le,ra({initialPromise:r==null?void 0:r.initialPromise,fn:a.fetchFn,abort:n.abort.bind(n),onSuccess:p=>{var g,w,f,v;if(p===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(p)}catch(_){l(_);return}(w=(g=b(this,Ce).config).onSuccess)==null||w.call(g,p,this),(v=(f=b(this,Ce).config).onSettled)==null||v.call(f,p,this.state.error,this),this.scheduleGc()},onError:l,onFail:(p,g)=>{F(this,Re,Je).call(this,{type:"failed",failureCount:p,error:g})},onPause:()=>{F(this,Re,Je).call(this,{type:"pause"})},onContinue:()=>{F(this,Re,Je).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),b(this,le).start()}},sr=new WeakMap,ar=new WeakMap,Ce=new WeakMap,Dt=new WeakMap,le=new WeakMap,$r=new WeakMap,Lt=new WeakMap,Re=new WeakSet,Je=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...oa(n.data,this.options),fetchMeta:t.meta??null};case"success":return{...n,data:t.data,dataUpdateCount:n.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 jo(o)&&o.revert&&b(this,ar)?{...b(this,ar),fetchStatus:"idle"}:{...n,error:o,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),oe.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),b(this,Ce).notify({query:this,type:"updated",action:t})})},cu);function oa(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ea(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function If(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Nf=(uu=class extends Vt{constructor(t={}){super();L(this,Be);this.config=t,R(this,Be,new Map)}build(t,r,n){const o=r.queryKey,i=r.queryHash??To(o,r);let s=this.get(i);return s||(s=new Lf({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){b(this,Be).has(t.queryHash)||(b(this,Be).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=b(this,Be).get(t.queryHash);r&&(t.destroy(),r===t&&b(this,Be).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){oe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return b(this,Be).get(t)}getAll(){return[...b(this,Be).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>Qs(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>Qs(t,n)):r}notify(t){oe.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){oe.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){oe.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Be=new WeakMap,uu),Mf=(du=class extends na{constructor(t){super();L(this,ze);L(this,Ue);L(this,ue);L(this,It);this.mutationId=t.mutationId,R(this,ue,t.mutationCache),R(this,Ue,[]),this.state=t.state||ia(),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,Ue).includes(t)||(b(this,Ue).push(t),this.clearGcTimeout(),b(this,ue).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){R(this,Ue,b(this,Ue).filter(r=>r!==t)),this.scheduleGc(),b(this,ue).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){b(this,Ue).length||(this.state.status==="pending"?this.scheduleGc():b(this,ue).remove(this))}continue(){var t;return((t=b(this,It))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,s,a,l,u,d,h,p,g,w,f,v,_,x,T,S,A,k,O,N;const r=()=>{F(this,ze,wt).call(this,{type:"continue"})};R(this,It,ra({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(M,$)=>{F(this,ze,wt).call(this,{type:"failed",failureCount:M,error:$})},onPause:()=>{F(this,ze,wt).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>b(this,ue).canRun(this)}));const n=this.state.status==="pending",o=!b(this,It).canStart();try{if(n)r();else{F(this,ze,wt).call(this,{type:"pending",variables:t,isPaused:o}),await((s=(i=b(this,ue).config).onMutate)==null?void 0:s.call(i,t,this));const $=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));$!==this.state.context&&F(this,ze,wt).call(this,{type:"pending",context:$,variables:t,isPaused:o})}const M=await b(this,It).start();return await((d=(u=b(this,ue).config).onSuccess)==null?void 0:d.call(u,M,t,this.state.context,this)),await((p=(h=this.options).onSuccess)==null?void 0:p.call(h,M,t,this.state.context)),await((w=(g=b(this,ue).config).onSettled)==null?void 0:w.call(g,M,null,this.state.variables,this.state.context,this)),await((v=(f=this.options).onSettled)==null?void 0:v.call(f,M,null,t,this.state.context)),F(this,ze,wt).call(this,{type:"success",data:M}),M}catch(M){try{throw await((x=(_=b(this,ue).config).onError)==null?void 0:x.call(_,M,t,this.state.context,this)),await((S=(T=this.options).onError)==null?void 0:S.call(T,M,t,this.state.context)),await((k=(A=b(this,ue).config).onSettled)==null?void 0:k.call(A,void 0,M,this.state.variables,this.state.context,this)),await((N=(O=this.options).onSettled)==null?void 0:N.call(O,void 0,M,t,this.state.context)),M}finally{F(this,ze,wt).call(this,{type:"error",error:M})}}finally{b(this,ue).runNext(this)}}},Ue=new WeakMap,ue=new WeakMap,It=new WeakMap,ze=new WeakSet,wt=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,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{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),oe.batch(()=>{b(this,Ue).forEach(n=>{n.onMutationUpdate(t)}),b(this,ue).notify({mutation:this,type:"updated",action:t})})},du);function ia(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var $f=(fu=class extends Vt{constructor(t={}){super();L(this,Ye);L(this,je);L(this,Fr);this.config=t,R(this,Ye,new Set),R(this,je,new Map),R(this,Fr,0)}build(t,r,n){const o=new Mf({mutationCache:this,mutationId:++no(this,Fr)._,options:t.defaultMutationOptions(r),state:n});return this.add(o),o}add(t){b(this,Ye).add(t);const r=dn(t);if(typeof r=="string"){const n=b(this,je).get(r);n?n.push(t):b(this,je).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(b(this,Ye).delete(t)){const r=dn(t);if(typeof r=="string"){const n=b(this,je).get(r);if(n)if(n.length>1){const o=n.indexOf(t);o!==-1&&n.splice(o,1)}else n[0]===t&&b(this,je).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=dn(t);if(typeof r=="string"){const n=b(this,je).get(r),o=n==null?void 0:n.find(i=>i.state.status==="pending");return!o||o===t}else return!0}runNext(t){var n;const r=dn(t);if(typeof r=="string"){const o=(n=b(this,je).get(r))==null?void 0:n.find(i=>i!==t&&i.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){oe.batch(()=>{b(this,Ye).forEach(t=>{this.notify({type:"removed",mutation:t})}),b(this,Ye).clear(),b(this,je).clear()})}getAll(){return Array.from(b(this,Ye))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>Ys(r,n))}findAll(t={}){return this.getAll().filter(r=>Ys(t,r))}notify(t){oe.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return oe.batch(()=>Promise.all(t.map(r=>r.continue().catch(ce))))}},Ye=new WeakMap,je=new WeakMap,Fr=new WeakMap,fu);function dn(e){var t;return(t=e.options.scope)==null?void 0:t.id}function sa(e){return{onFetch:(t,r)=>{var d,h,p,g,w;const n=t.options,o=(p=(h=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:h.fetchMore)==null?void 0:p.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=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(t.signal.aborted?f=!0:t.signal.addEventListener("abort",()=>{f=!0}),t.signal)})},_=Xs(t.options,t.fetchOptions),x=async(T,S,A)=>{if(f)return Promise.reject();if(S==null&&T.pages.length)return Promise.resolve(T);const O=(()=>{const Y={client:t.client,queryKey:t.queryKey,pageParam:S,direction:A?"backward":"forward",meta:t.options.meta};return v(Y),Y})(),N=await _(O),{maxPages:M}=t.options,$=A?Pf:Af;return{pages:$(T.pages,N,M),pageParams:$(T.pageParams,S,M)}};if(o&&i.length){const T=o==="backward",S=T?Ff:aa,A={pages:i,pageParams:s},k=S(n,A);a=await x(A,k,T)}else{const T=e??i.length;do{const S=l===0?s[0]??n.initialPageParam:aa(n,a);if(l>0&&S==null)break;a=await x(a,S),l++}while(l<T)}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},r)}:t.fetchFn=u}}}function aa(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function Ff(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}var Bf=(pu=class{constructor(e={}){L(this,X);L(this,ft);L(this,pt);L(this,lr);L(this,cr);L(this,ht);L(this,ur);L(this,dr);R(this,X,e.queryCache||new Nf),R(this,ft,e.mutationCache||new $f),R(this,pt,e.defaultOptions||{}),R(this,lr,new Map),R(this,cr,new Map),R(this,ht,0)}mount(){no(this,ht)._++,b(this,ht)===1&&(R(this,ur,ko.subscribe(async e=>{e&&(await this.resumePausedMutations(),b(this,X).onFocus())})),R(this,dr,un.subscribe(async e=>{e&&(await this.resumePausedMutations(),b(this,X).onOnline())})))}unmount(){var e,t;no(this,ht)._--,b(this,ht)===0&&((e=b(this,ur))==null||e.call(this),R(this,ur,void 0),(t=b(this,dr))==null||t.call(this),R(this,dr,void 0))}isFetching(e){return b(this,X).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return b(this,ft).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=b(this,X).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=b(this,X).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(ot(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return b(this,X).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),o=b(this,X).get(n.queryHash),i=o==null?void 0:o.state.data,s=Sf(t,i);if(s!==void 0)return b(this,X).build(this,n).setData(s,{...r,manual:!0})}setQueriesData(e,t,r){return oe.batch(()=>b(this,X).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=b(this,X).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=b(this,X);oe.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=b(this,X);return oe.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=oe.batch(()=>b(this,X).findAll(e).map(o=>o.cancel(r)));return Promise.all(n).then(ce).catch(ce)}invalidateQueries(e,t={}){return oe.batch(()=>(b(this,X).findAll(e).forEach(r=>{r.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 r={...t,cancelRefetch:t.cancelRefetch??!0},n=oe.batch(()=>b(this,X).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,r);return r.throwOnError||(i=i.catch(ce)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(n).then(ce)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=b(this,X).build(this,t);return r.isStaleByTime(ot(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ce).catch(ce)}fetchInfiniteQuery(e){return e.behavior=sa(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ce).catch(ce)}ensureInfiniteQueryData(e){return e.behavior=sa(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return un.isOnline()?b(this,ft).resumePausedMutations():Promise.resolve()}getQueryCache(){return b(this,X)}getMutationCache(){return b(this,ft)}getDefaultOptions(){return b(this,pt)}setDefaultOptions(e){R(this,pt,e)}setQueryDefaults(e,t){b(this,lr).set(St(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...b(this,lr).values()],r={};return t.forEach(n=>{Ar(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){b(this,cr).set(St(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...b(this,cr).values()],r={};return t.forEach(n=>{Ar(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...b(this,pt).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=To(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===cn&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...b(this,pt).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){b(this,X).clear(),b(this,ft).clear()}},X=new WeakMap,ft=new WeakMap,pt=new WeakMap,lr=new WeakMap,cr=new WeakMap,ht=new WeakMap,ur=new WeakMap,dr=new WeakMap,pu),Uf=(hu=class extends Vt{constructor(t,r){super();L(this,V);L(this,ge);L(this,z);L(this,Br);L(this,de);L(this,Nt);L(this,fr);L(this,mt);L(this,gt);L(this,Ur);L(this,pr);L(this,hr);L(this,Mt);L(this,$t);L(this,vt);L(this,mr,new Set);this.options=r,R(this,ge,t),R(this,gt,null),R(this,mt,Ro()),this.options.experimental_prefetchInRender||b(this,mt).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(b(this,z).addObserver(this),la(b(this,z),this.options)?F(this,V,Wr).call(this):this.updateResult(),F(this,V,Qi).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Do(b(this,z),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Do(b(this,z),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,F(this,V,Yi).call(this),F(this,V,Ki).call(this),b(this,z).removeObserver(this)}setOptions(t){const r=this.options,n=b(this,z);if(this.options=b(this,ge).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Se(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,V,Zi).call(this),b(this,z).setOptions(this.options),r._defaulted&&!ln(this.options,r)&&b(this,ge).getQueryCache().notify({type:"observerOptionsUpdated",query:b(this,z),observer:this});const o=this.hasListeners();o&&ca(b(this,z),n,this.options,r)&&F(this,V,Wr).call(this),this.updateResult(),o&&(b(this,z)!==n||Se(this.options.enabled,b(this,z))!==Se(r.enabled,b(this,z))||ot(this.options.staleTime,b(this,z))!==ot(r.staleTime,b(this,z)))&&F(this,V,Vi).call(this);const i=F(this,V,Gi).call(this);o&&(b(this,z)!==n||Se(this.options.enabled,b(this,z))!==Se(r.enabled,b(this,z))||i!==b(this,vt))&&F(this,V,qi).call(this,i)}getOptimisticResult(t){const r=b(this,ge).getQueryCache().build(b(this,ge),t),n=this.createResult(r,t);return Hf(this,n)&&(R(this,de,n),R(this,fr,this.options),R(this,Nt,b(this,z).state)),n}getCurrentResult(){return b(this,de)}trackResult(t,r){return new Proxy(t,{get:(n,o)=>(this.trackProp(o),r==null||r(o),Reflect.get(n,o))})}trackProp(t){b(this,mr).add(t)}getCurrentQuery(){return b(this,z)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=b(this,ge).defaultQueryOptions(t),n=b(this,ge).getQueryCache().build(b(this,ge),r);return n.fetch().then(()=>this.createResult(n,r))}fetch(t){return F(this,V,Wr).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),b(this,de)))}createResult(t,r){var M;const n=b(this,z),o=this.options,i=b(this,de),s=b(this,Nt),a=b(this,fr),u=t!==n?t.state:b(this,Br),{state:d}=t;let h={...d},p=!1,g;if(r._optimisticResults){const $=this.hasListeners(),Y=!$&&la(t,r),K=$&&ca(t,n,r,o);(Y||K)&&(h={...h,...oa(d.data,t.options)}),r._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:w,errorUpdatedAt:f,status:v}=h;g=h.data;let _=!1;if(r.placeholderData!==void 0&&g===void 0&&v==="pending"){let $;i!=null&&i.isPlaceholderData&&r.placeholderData===(a==null?void 0:a.placeholderData)?($=i.data,_=!0):$=typeof r.placeholderData=="function"?r.placeholderData((M=b(this,hr))==null?void 0:M.state.data,b(this,hr)):r.placeholderData,$!==void 0&&(v="success",g=Oo(i==null?void 0:i.data,$,r),p=!0)}if(r.select&&g!==void 0&&!_)if(i&&g===(s==null?void 0:s.data)&&r.select===b(this,Ur))g=b(this,pr);else try{R(this,Ur,r.select),g=r.select(g),g=Oo(i==null?void 0:i.data,g,r),R(this,pr,g),R(this,gt,null)}catch($){R(this,gt,$)}b(this,gt)&&(w=b(this,gt),g=b(this,pr),f=Date.now(),v="error");const x=h.fetchStatus==="fetching",T=v==="pending",S=v==="error",A=T&&x,k=g!==void 0,N={status:v,fetchStatus:h.fetchStatus,isPending:T,isSuccess:v==="success",isError:S,isInitialLoading:A,isLoading:A,data:g,dataUpdatedAt:h.dataUpdatedAt,error:w,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:x,isRefetching:x&&!T,isLoadingError:S&&!k,isPaused:h.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:S&&k,isStale:Lo(t,r),refetch:this.refetch,promise:b(this,mt)};if(this.options.experimental_prefetchInRender){const $=W=>{N.status==="error"?W.reject(N.error):N.data!==void 0&&W.resolve(N.data)},Y=()=>{const W=R(this,mt,N.promise=Ro());$(W)},K=b(this,mt);switch(K.status){case"pending":t.queryHash===n.queryHash&&$(K);break;case"fulfilled":(N.status==="error"||N.data!==K.value)&&Y();break;case"rejected":(N.status!=="error"||N.error!==K.reason)&&Y();break}}return N}updateResult(){const t=b(this,de),r=this.createResult(b(this,z),this.options);if(R(this,Nt,b(this,z).state),R(this,fr,this.options),b(this,Nt).data!==void 0&&R(this,hr,b(this,z)),ln(r,t))return;R(this,de,r);const n=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,i=typeof o=="function"?o():o;if(i==="all"||!i&&!b(this,mr).size)return!0;const s=new Set(i??b(this,mr));return this.options.throwOnError&&s.add("error"),Object.keys(b(this,de)).some(a=>{const l=a;return b(this,de)[l]!==t[l]&&s.has(l)})};F(this,V,Ou).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&F(this,V,Qi).call(this)}},ge=new WeakMap,z=new WeakMap,Br=new WeakMap,de=new WeakMap,Nt=new WeakMap,fr=new WeakMap,mt=new WeakMap,gt=new WeakMap,Ur=new WeakMap,pr=new WeakMap,hr=new WeakMap,Mt=new WeakMap,$t=new WeakMap,vt=new WeakMap,mr=new WeakMap,V=new WeakSet,Wr=function(t){F(this,V,Zi).call(this);let r=b(this,z).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(ce)),r},Vi=function(){F(this,V,Yi).call(this);const t=ot(this.options.staleTime,b(this,z));if(Et||b(this,de).isStale||!So(t))return;const n=qs(b(this,de).dataUpdatedAt,t)+1;R(this,Mt,setTimeout(()=>{b(this,de).isStale||this.updateResult()},n))},Gi=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(b(this,z)):this.options.refetchInterval)??!1},qi=function(t){F(this,V,Ki).call(this),R(this,vt,t),!(Et||Se(this.options.enabled,b(this,z))===!1||!So(b(this,vt))||b(this,vt)===0)&&R(this,$t,setInterval(()=>{(this.options.refetchIntervalInBackground||ko.isFocused())&&F(this,V,Wr).call(this)},b(this,vt)))},Qi=function(){F(this,V,Vi).call(this),F(this,V,qi).call(this,F(this,V,Gi).call(this))},Yi=function(){b(this,Mt)&&(clearTimeout(b(this,Mt)),R(this,Mt,void 0))},Ki=function(){b(this,$t)&&(clearInterval(b(this,$t)),R(this,$t,void 0))},Zi=function(){const t=b(this,ge).getQueryCache().build(b(this,ge),this.options);if(t===b(this,z))return;const r=b(this,z);R(this,z,t),R(this,Br,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},Ou=function(t){oe.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(b(this,de))}),b(this,ge).getQueryCache().notify({query:b(this,z),type:"observerResultsUpdated"})})},hu);function zf(e,t){return Se(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function la(e,t){return zf(e,t)||e.state.data!==void 0&&Do(e,t,t.refetchOnMount)}function Do(e,t,r){if(Se(t.enabled,e)!==!1&&ot(t.staleTime,e)!=="static"){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&Lo(e,t)}return!1}function ca(e,t,r,n){return(e!==t||Se(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&Lo(e,r)}function Lo(e,t){return Se(t.enabled,e)!==!1&&e.isStaleByTime(ot(t.staleTime,e))}function Hf(e,t){return!ln(e.getCurrentResult(),t)}var Wf=(mu=class extends Vt{constructor(r,n){super();L(this,Ze);L(this,yt);L(this,bt);L(this,ve);L(this,Ke);R(this,yt,r),this.setOptions(n),this.bindMethods(),F(this,Ze,oo).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var o;const n=this.options;this.options=b(this,yt).defaultMutationOptions(r),ln(this.options,n)||b(this,yt).getMutationCache().notify({type:"observerOptionsUpdated",mutation:b(this,ve),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&St(n.mutationKey)!==St(this.options.mutationKey)?this.reset():((o=b(this,ve))==null?void 0:o.state.status)==="pending"&&b(this,ve).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=b(this,ve))==null||r.removeObserver(this)}onMutationUpdate(r){F(this,Ze,oo).call(this),F(this,Ze,Xi).call(this,r)}getCurrentResult(){return b(this,bt)}reset(){var r;(r=b(this,ve))==null||r.removeObserver(this),R(this,ve,void 0),F(this,Ze,oo).call(this),F(this,Ze,Xi).call(this)}mutate(r,n){var o;return R(this,Ke,n),(o=b(this,ve))==null||o.removeObserver(this),R(this,ve,b(this,yt).getMutationCache().build(b(this,yt),this.options)),b(this,ve).addObserver(this),b(this,ve).execute(r)}},yt=new WeakMap,bt=new WeakMap,ve=new WeakMap,Ke=new WeakMap,Ze=new WeakSet,oo=function(){var n;const r=((n=b(this,ve))==null?void 0:n.state)??ia();R(this,bt,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},Xi=function(r){oe.batch(()=>{var n,o,i,s,a,l,u,d;if(b(this,Ke)&&this.hasListeners()){const h=b(this,bt).variables,p=b(this,bt).context;(r==null?void 0:r.type)==="success"?((o=(n=b(this,Ke)).onSuccess)==null||o.call(n,r.data,h,p),(s=(i=b(this,Ke)).onSettled)==null||s.call(i,r.data,null,h,p)):(r==null?void 0:r.type)==="error"&&((l=(a=b(this,Ke)).onError)==null||l.call(a,r.error,h,p),(d=(u=b(this,Ke)).onSettled)==null||d.call(u,void 0,r.error,h,p))}this.listeners.forEach(h=>{h(b(this,bt))})})},mu),ua=m.createContext(void 0),Io=e=>{const t=m.useContext(ua);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Vf=({client:e,children:t})=>(m.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),c.jsx(ua.Provider,{value:e,children:t})),da=m.createContext(!1),Gf=()=>m.useContext(da);da.Provider;function qf(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Qf=m.createContext(qf()),Yf=()=>m.useContext(Qf),Kf=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Zf=e=>{m.useEffect(()=>{e.clearReset()},[e])},Xf=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(o&&e.data===void 0||Js(r,[e.error,n])),Jf=e=>{if(e.suspense){const t=n=>n==="static"?n:Math.max(n??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...n)=>t(r(...n)):t(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},ep=(e,t)=>e.isLoading&&e.isFetching&&!t,tp=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,fa=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function rp(e,t,r){var h,p,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 n=Gf(),o=Yf(),i=Io(),s=i.defaultQueryOptions(e);(p=(h=i.getDefaultOptions().queries)==null?void 0:h._experimental_beforeQuery)==null||p.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=n?"isRestoring":"optimistic",Jf(s),Kf(s,o),Zf(o);const a=!i.getQueryCache().get(s.queryHash),[l]=m.useState(()=>new t(i,s)),u=l.getOptimisticResult(s),d=!n&&e.subscribed!==!1;if(m.useSyncExternalStore(m.useCallback(v=>{const _=d?l.subscribe(oe.batchCalls(v)):ce;return l.updateResult(),_},[l,d]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),m.useEffect(()=>{l.setOptions(s)},[s,l]),tp(s,u))throw fa(s,l,o);if(Xf({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&&!Et&&ep(u,n)){const v=a?fa(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 pa(e,t){return rp(e,Uf)}function fn(e,t){const r=Io(),[n]=m.useState(()=>new Wf(r,e));m.useEffect(()=>{n.setOptions(e)},[n,e]);const o=m.useSyncExternalStore(m.useCallback(s=>n.subscribe(oe.batchCalls(s)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),i=m.useCallback((s,a)=>{n.mutate(s,a).catch(ce)},[n]);if(o.error&&Js(n.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}const pn={STALE_TIME:1e3*60*5,GC_TIME:1e3*60*10,RETRY_COUNT:1,RETRY_DELAY:1e3},ha={refetchOnWindowFocus:!1,refetchOnReconnect:!1,refetchOnMount:!1,staleTime:pn.STALE_TIME,gcTime:pn.GC_TIME,retry:pn.RETRY_COUNT,retryDelay:pn.RETRY_DELAY,enable:!0},hn=e=>e instanceof Error?e.message:String(e),ma=(e,t,r)=>{const n=Io(),{notify:o}=Eo(),{createFn:i,readFn:s,readByIdFn:a,updateFn:l,deleteFn:u,partialUpdateFn:d}=r,h=()=>{n.invalidateQueries({queryKey:[e]})},p=(S,A,k,O)=>o(O!=null&&O.overrideSuccessMessage?O==null?void 0:O.overrideSuccessMessage(S,A):k,"success"),g=(S,A,k,O)=>o(O!=null&&O.overrideErrorMessage?O==null?void 0:O.overrideErrorMessage(S,A):k,"error");return{useCreate:S=>fn({mutationFn:A=>i(A),onSuccess:A=>{h(),p(t,A,`${t} created successfully`,S)},onError:A=>{g(t,A,`Error creating ${t}: ${hn(A)}`,S)}}),useReadQuery:S=>pa({queryKey:[e],queryFn:s,...ha,...S}),useReadByIdQuery:(S,A)=>pa({queryKey:[e,S],queryFn:()=>a(S),...ha,enabled:!!S,...A}),useUpdate:S=>fn({mutationFn:({id:A,data:k})=>l(A,k),onSuccess:A=>{h(),p(t,A,`${t} updated successfully`,S)},onError:A=>{g(t,A,`Error updating ${t}: ${hn(A)}`,S)}}),usePartialUpdate:S=>d&&fn({mutationFn:({id:A,data:k})=>d(A,k),onSuccess:A=>{h(),p(t,A,`${t} updated successfully`,S)},onError:A=>{g(t,A,`Error updating ${t}: ${hn(A)}`,S)}}),useDelete:S=>fn({mutationFn:A=>u(A),onSuccess:()=>{h(),p(t,null,`${t} deleted successfully`,S)},onError:A=>{g(t,A,`Error deleting ${t}: ${hn(A)}`,S)}}),invalidateQueries:h}},np=(e,t)=>ma(e,t,{createFn:r=>fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}).then(n=>n.json()),deleteFn:r=>fetch(`${e}/${r}`,{method:"DELETE"}).then(n=>{if(!n.ok)throw new Error(`Error deleting: ${n.status}`)}),readByIdFn:r=>fetch(`${e}/${r}`).then(n=>n.json()),readFn:()=>fetch(e).then(r=>r.json()),updateFn:(r,n)=>fetch(`${e}/${r}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)}).then(o=>o.json()),partialUpdateFn:(r,n)=>fetch(`${e}/${r}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)}).then(o=>o.json())}),op={SINGLE_TENANT:"single-tenant"},ip={COOKIE:"cookie"},No="tenant",ga="tenant",va="tenant",sp=op.SINGLE_TENANT,ap=ip.COOKIE,lp={mode:sp,clientSideMode:ap,tenantIDPProvisioningStrategy:"none"};class cp{setTenant(t,r){const n=new URL(window.location.href);n.searchParams.set(ga,t.name),window.location.href=n.toString()}getCurrentTenantName(){const t=new URL(window.location.href);return new URLSearchParams(t.search).get(ga)}}class up{setTenant(t,r){sessionStorage.setItem(va,t.name),window.location.reload()}getCurrentTenantName(){return sessionStorage.getItem(va)}}/*! js-cookie v3.0.5 | MIT */function mn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var dp={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 Mo(e,t){function r(o,i,s){if(!(typeof document>"u")){s=mn({},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 n(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:r,get:n,remove:function(o,i){r(o,"",mn({},i,{expires:-1}))},withAttributes:function(o){return Mo(this.converter,mn({},this.attributes,o))},withConverter:function(o){return Mo(mn({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var $o=Mo(dp,{path:"/"});class fp{setTenant(t,r){t?$o.set(No,t.name):$o.remove(No),window.location.reload()}getCurrentTenantName(){return $o.get(No)}}class pp{extractSubdomain(t){if(t==="localhost"||/^\d+\.\d+\.\d+\.\d+$/.test(t))return"";const r=t.split(".");if(r.length<2||r.length===2||r[0]==="www"&&r.length===3)return"";const o=(r[0]==="www"?r.slice(1):r).slice(0,-2);return o.length>0?o.join("."):""}getBaseDomain(t){const r=t.split(".");return t==="localhost"||/^\d+\.\d+\.\d+\.\d+$/.test(t)||r.length<=2?t:r.slice(-2).join(".")}setTenant(t,r){var u;const n=(u=r.urlPatterns)==null?void 0:u.find(d=>d.patternType==="subdomain"&&d.tenantId===t.id&&d.isActive);if(!n)throw new Error(`No active subdomain pattern found for tenant '${t.name}'`);const o=new URL(window.location.href),i=n.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 ya={queryParams:new cp,sessionStorage:new up,cookie:new fp,subdomain:new pp},hp=e=>{const t=ya[e.clientSideMode];if(!t)throw new Error(`Client side tenant mode '${e.clientSideMode}' is not supported ${JSON.stringify({strategies:ya},null,2)}`);return t},mp=(e,t,r)=>{const n=t.find(i=>i.name===r);if(!n)throw Error("No tenant permission");return hp(e).setTenant(n,e),n},gp=()=>{const[e,t]=Gr(),{tenants:r=[],currentTenant:n,tenantConfig:o=lp}=e,i=C.useCallback(s=>{const a=mp(o,r,s);t({...e,currentTenant:a})},[o,e]);return{tenants:r,currentTenant:n,tenantConfig:o,selectTenant:i}};function vp(e){if(!e.ok)throw console.error(e),new Error(e.statusText)}async function gn(e,t,r,n){const o=await e(`/user-states/${encodeURIComponent(t)}/${encodeURIComponent(r)}`,n);return vp(o),o}class vn{static async get(t,r,n){const i=await gn(t,r,n,{method:"GET",headers:{"Content-Type":"application/json"}});return i.status===204?null:await i.json()}static async create(t,r,n,o){const i={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({value:o})};return await(await gn(t,r,n,i)).json()}static async update(t,r,n,o){const i={method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({value:o})};return await(await gn(t,r,n,i)).json()}static async delete(t,r,n){return await gn(t,r,n,{method:"DELETE",headers:{"Content-Type":"application/json"}}),null}}const yp=e=>{const t=po("@bluealba/pae-nestjs-gateway-service"),r=_s();if(!r)throw new Error("You must call the useUserState hook within a PAE application.");const[n,o]=C.useState(null),[i,s]=C.useState(!1),[a,l]=C.useState(!1),[u,d]=C.useState(null),h=(x,T)=>C.useCallback(async({newValue:S,shouldThrowError:A}={})=>{try{l(!0),d(null);const k=await x(t,r,e,S);return o(k),k?k.value:null}catch(k){if(d(k==null?void 0:k.message),console.error(`Failed to ${T} ${e}:`,k),A)throw k;return null}finally{l(!1)}},[t,r,e]),p=h(vn.get,"fetch"),g=h(vn.create,"create"),w=h(vn.update,"update"),f=h(vn.delete,"delete"),v=C.useCallback(async()=>{try{await p()}finally{s(!0)}},[p]);C.useEffect(()=>{v()},[v]);const _=C.useCallback(async(x,T=!1)=>n==null?await g({newValue:x,shouldThrowError:T}):await w({newValue:x,shouldThrowError:T}),[n,g,w]);return{value:n?n.value:null,hasFetched:i,loading:a,error:u,setValue:_,createValue:g,updateValue:w,deleteValue:f}},ba="__PAE_EXTENSION_POINT_REACT_CONTENT_EMPTY__",bp=({module:e,point:t,children:r})=>(Ss(e,t,r??ba),null),wa=({name:e,children:t,...r})=>{const n=Es(e);if(n===ba)return null;if(!n)return c.jsx(c.Fragment,{children:t??null});if(wp(n)){const o=n;return c.jsx(o,{...r})}else return n},wp=e=>typeof e=="function",_p=(e,t)=>{const r=n=>(t=t||e.displayName||e.name||"?",c.jsx(wa,{name:t,...n,children:c.jsx(e,{...n})}));return r.displayName=`extensionPoint(${t})`,r},_a="single-spa:app-change";function xp(){const[e,t]=C.useState(xa());return C.useEffect(()=>{const r=()=>{t(xa())};return window.addEventListener(_a,r),()=>{window.removeEventListener(_a,r)}},[]),e}function xa(){return ne.getAppNames().reduce((t,r)=>(ne.getAppStatus(r)?t[r]=ne.getAppStatus(r):t[r]="NOT_LOADED",t),{})}function Cp(e){const r=xp()[e]??"LOAD_ERROR";return{statusName:r,isLoading:r==="LOADING_SOURCE_CODE"||r==="BOOTSTRAPPING"||r==="MOUNTING",isMounted:r==="MOUNTED",isBroken:r==="SKIP_BECAUSE_BROKEN"||r==="LOAD_ERROR"}}const Ca=({appName:e})=>c.jsx("div",{children:c.jsxs("p",{children:["Loading ",e,"..."]})});Ca.displayName="BaseLoading";const Ea=({appName:e})=>c.jsxs("div",{children:[c.jsx("p",{children:"Something went wrong..."}),c.jsxs("p",{children:["Failed to load ",e]})]});Ea.displayName="BaseError";const Ep={display:"flex",flexDirection:"column",flex:1},Sa=C.forwardRef((e,t)=>c.jsx("div",{ref:t,style:Ep,...e}));Sa.displayName="BaseContainer";const Sp="pae-app:",Ta=C.forwardRef(({appName:e,LoadingComponent:t=Ca,ErrorComponent:r=Ea,ContainerComponent:n=Sa,...o},i)=>{const s=Cp(e);return c.jsxs(n,{ref:i,...o,id:`${Sp}${e}`,children:[s.isLoading&&c.jsx(t,{appName:e}),s.isBroken&&c.jsx(r,{appName:e})]})});Ta.displayName="ModulePlaceHolder";const Fo=({operations:e,children:t,forbiddenContent:r})=>{var o;const{hasAccess:n}=qr();if(!n(...e)){if(!r)return null;if(typeof r=="function")if((o=r==null?void 0:r.prototype)!=null&&o.isReactComponent){const i=r;return c.jsx(i,{operations:e})}else return r({operations:e});return C.isValidElement(r)?r:null}return t};Fo.displayName="Authorized";const Tp=({eventName:e,listener:t})=>(Ts(e,t),null),Ap=()=>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"})}),Aa=({applicationName:e})=>{const t=bs(e);if(t)if(typeof t=="function"){const r=t;return c.jsx(r,{})}else return t;return c.jsx(Ap,{})};Aa.displayName="ApplicationIcon";const Pp=(e,t)=>{const r=n=>c.jsx(Fo,{operations:t,children:c.jsx(e,{...n})});return r.displayName="Authorized",r};function Pa(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Pa(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function D(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Pa(e))&&(n&&(n+=" "),n+=t);return n}const yn={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"},bn=C.forwardRef(({variant:e="contained",colorScheme:t="primary",loading:r=!1,IconComponent:n,className:o,children:i,...s},a)=>{const l=D(yn.button,yn[`button--${e}-${t}`],o);return c.jsxs("button",{ref:a,className:l,...s,children:[r?c.jsx("div",{className:yn.spinner}):n&&c.jsx(n,{className:yn.icon}),i]})});bn.displayName="Button";const wn={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"},Oa={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]};var ka={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function Op(e){var d,h;var t,r=[],n=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(),Oa[e])r=Oa[e].slice(),o="rgb";else if(e==="transparent")n=0,o="rgb",r=[0,0,0];else if(e[0]==="#"){var i=e.slice(1),s=i.length,a=s<=4;n=1,a?(r=[parseInt(i[0]+i[0],16),parseInt(i[1]+i[1],16),parseInt(i[2]+i[2],16)],s===4&&(n=parseInt(i[3]+i[3],16)/255)):(r=[parseInt(i[0]+i[1],16),parseInt(i[2]+i[3],16),parseInt(i[4]+i[5],16)],s===8&&(n=parseInt(i[6]+i[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[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;r=t[2].trim().split(/\s*[,\/]\s*|\s+/),o==="color"&&(o=r.shift()),r=r.map(function(p,g){if(p[p.length-1]==="%")return p=parseFloat(p)/100,g===3?p:o==="rgb"?p*255:o[0]==="h"||o[0]==="l"&&!g?p*100:o==="lab"?p*125:o==="lch"?g<2?p*150:p*360:o[0]==="o"&&!g?p:o==="oklab"?p*.4:o==="oklch"?g<2?p*.4:p*360:p;if(o[g]==="h"||g===2&&o[o.length-1]==="h"){if(ka[p]!==void 0)return ka[p];if(p.endsWith("deg"))return parseFloat(p);if(p.endsWith("turn"))return parseFloat(p)*360;if(p.endsWith("grad"))return parseFloat(p)*360/400;if(p.endsWith("rad"))return parseFloat(p)*180/Math.PI}return p==="none"?0:parseFloat(p)}),n=r.length>u?r.pop():1}else/[0-9](?:\s|\/|,)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(p){return parseFloat(p)}),o=((h=(d=e.match(/([a-z])/ig))==null?void 0:d.join(""))==null?void 0:h.toLowerCase())||"rgb");return{space:o,values:r,alpha:n}}const kp=(e,t)=>{const{space:r,values:n}=Op(e);return r[0]==="h"?`${r}a(${n[0]}, ${n[1]}%, ${n[2]}%, ${t})`:`${r}a(${n}, ${t})`},Bo=C.forwardRef(({children:e,color:t,className:r,customColor:n,size:o="small",style:i,...s},a)=>{const l=n?{color:n,background:kp(n,.1)}:{},u=D(wn.Badge,wn[`Badge--${o}`],{[wn[`Badge--${t}`]]:!!t},r);return c.jsx("span",{ref:a,className:u,style:{...i,...l},...s,children:e})});Bo.displayName="Badge";const Uo=C.forwardRef(({children:e,className:t,...r},n)=>{const o=D(wn.Badges,t);return c.jsx("div",{ref:n,className:o,...r,children:e})});Uo.displayName="Badges";const Ra=({size:e=24,color:t="currentColor",strokeWidth:r=2,className:n,style:o,...i})=>c.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round",className:n,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"})]}),ja=({size:e=24,color:t="currentColor",strokeWidth:r=2,className:n,style:o,...i})=>c.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round",className:n,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"})]}),Rp={CopyToClipboardButton:"CopyToClipboardButton__2Nd2m"},jp=({content:e})=>{const[t,r]=Dp(),{notify:n}=Eo(),o=t?ja:Ra,i=C.useCallback(async()=>{await r(e)&&n("Copied to the Clipboard !","success")},[e,n]);return c.jsx(o,{className:Rp.CopyToClipboardButton,size:18,onClick:i})},Dp=()=>{const[e,t]=C.useState(!1);return[e,async n=>{try{return await navigator.clipboard.writeText(n),t(!0),setTimeout(()=>t(!1),2e3),!0}catch(o){return console.error("Failed to copy text: ",o),!1}}]},Da={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"},La=C.forwardRef(({children:e,className:t,orientation:r="vertical",...n},o)=>{const i=D(Da.FieldGroup,Da[`FieldGroup--${r}`],t);return c.jsx("div",{ref:o,className:i,...n,children:e})});La.displayName="FieldGroup";const Ia={Input:"Input__uS0sb",Error:"Error__-DQpw"},_n=C.forwardRef(({className:e,error:t,...r},n)=>{const o=D(Ia.Input,t&&Ia.Error,e);return c.jsx("input",{ref:n,className:o,...r})});_n.displayName="Input";const Lp={Error:"Error__N4OP5"},Na=C.forwardRef(({children:e,className:t,...r},n)=>{const o=D(Lp.Error,t);return c.jsx("span",{ref:n,className:o,...r,children:e})});Na.displayName="InputError";const Ma={Label:"Label__VYUvW",Error:"Error__Eu6DI"},$a=C.forwardRef(({children:e,className:t,error:r,...n},o)=>{const i=D(Ma.Label,r&&Ma.Error,t);return c.jsx("label",{ref:o,className:i,...n,children:e})});$a.displayName="Label";const zo={Select:"Select__giqpe",Chevron:"Chevron__YvhBd"},Fa=C.forwardRef(({children:e,className:t,...r},n)=>{const o=D(zo.Option,t);return c.jsx("option",{ref:n,className:o,...r,children:e})});Fa.displayName="Option";const Ho=C.forwardRef(({children:e,className:t,...r},n)=>{const o=D(zo.Select,t);return c.jsxs("div",{className:o,children:[c.jsx("select",{ref:n,...r,children:e}),c.jsx("div",{className:zo.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"})})})]})});Ho.displayName="Select",Ho.Option=Fa;const Ip={TextArea:"TextArea__pa-A0"},Ba=C.forwardRef(({children:e,className:t,...r},n)=>{const o=D(Ip.TextArea,t);return c.jsx("textarea",{ref:n,className:o,...r,children:e})});Ba.displayName="TextArea";const Pr={SearchInput:"SearchInput__4OFyE",SearchIcon:"SearchIcon__YgnQy",ClearIcon:"ClearIcon__ukRVr",SearchInput__ClearIcon:"SearchInput__ClearIcon__uzVoc",SearchInput__SearchIcon:"SearchInput__SearchIcon__zoDG4"},Wo=C.forwardRef(({className:e,placeholder:t="Type to search...",showClearButton:r=!1,showSearchIcon:n=!0,onClear:o,...i},s)=>{const a=D(Pr.SearchInput,r&&Pr.SearchInput__ClearIcon,n&&Pr.SearchInput__SearchIcon,e),l=D(Pr.SearchIcon),u=D(Pr.ClearIcon);return c.jsxs("div",{className:a,children:[c.jsx(_n,{ref:s,type:"text",placeholder:t,...i}),n&&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"})}),r&&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"})})]})});Wo.displayName="SearchInput";const Tt={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"},At={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"},xn=C.forwardRef(({children:e,className:t,open:r,align:n="right",...o},i)=>{const s=D(At.DropdownList,{[At["DropdownList--open"]]:r,[At["DropdownList--closed"]]:!r,[At["DropdownList--left"]]:n==="left"},t);return c.jsx("div",{ref:i,className:s,...o,children:e})});xn.displayName="DropdownList";const Or=C.forwardRef(({children:e,className:t,canBeSelected:r=!1,...n},o)=>{const i=D(Tt.AutocompleteItem,{[Tt["AutocompleteItem--canBeSelected"]]:r},t);return c.jsx("div",{ref:o,className:i,...n,children:e})});Or.displayName="AutocompleteItem";const Np=300,Mp={query:"",suggestions:[],loading:!1,error:null},$p=({suggestionFetcher:e,canAdd:t})=>{const[r,n]=C.useState(Mp);return C.useEffect(()=>{n(a=>({...a,loading:!0}));const i=async()=>{try{const a=await e(r.query);t&&!a.some(l=>l.value.toLowerCase()===r.query.toLowerCase())&&a.push({label:`Add "${r.query}"`,value:r.query,isNew:!0}),n(l=>({...l,suggestions:a,loading:!1}))}catch(a){n(l=>({...l,suggestions:[],error:a,loading:!1}))}},s=setTimeout(()=>{i()},Np);return()=>{clearTimeout(s)}},[r.query]),{...r,setQuery:i=>{n(s=>({...s,query:i}))}}},Ua=C.forwardRef(({text:e,query:t,className:r,...n},o)=>{const i=D(Tt.AutocompleteHighlighter,r),s=(a,l)=>{const u=a.toLowerCase().indexOf(l.toLowerCase());if(u===-1||l.length===0)return a;const d=a.slice(0,u),h=a.slice(u,u+l.length),p=a.slice(u+l.length);return c.jsxs(c.Fragment,{children:[d,c.jsx("span",{className:Tt.AutocompleteHighlighter__match,children:h}),s(p,l)]})};return c.jsx("div",{ref:o,className:i,...n,children:s(e,t)})});Ua.displayName="AutocompleteHighlighter";const Fp=5,za=C.forwardRef(({children:e,className:t,canAdd:r,maxSuggestionsShown:n=Fp,searchInputProps:o,keepSelectedOption:i,suggestionFetcher:s,onAccept:a,...l},u)=>{const{query:d,setQuery:h,suggestions:p,loading:g}=$p({suggestionFetcher:s,canAdd:r}),[w,f]=C.useState(null),v=d.length>0,_=O=>{h(O.target.value)},x=O=>{a==null||a(O),i?(f(O),h(O.value)):h("")},T=()=>{a==null||a(null),f(null),h("")},S=D(Tt.SearchAutocomplete,t),A=p.slice(0,n),k=p.slice(n);return c.jsxs("div",{ref:u,className:S,...l,children:[c.jsx(Wo,{...o,value:d,onChange:_,showClearButton:!!w,onClear:T}),e,c.jsxs(xn,{className:Tt.DropdownList,open:v&&!w,role:"listbox","aria-label":"Suggestions",children:[g?c.jsx(Or,{children:"Loading..."}):A.map(O=>c.jsxs(Or,{canBeSelected:!0,onClick:x.bind(null,O),children:[c.jsx(Ua,{text:O.label,query:d}),O.description&&c.jsx("span",{className:Tt.AutocompleteItemDescription,children:O.description})]},O.value)),!g&&k.length>0&&c.jsxs(Or,{children:[k.length," more results"]}),v&&p.length===0&&!g&&c.jsx(Or,{children:"No results found"})]})]})});za.displayName="SearchAutocomplete";const it=e=>{let t=null,r=null;return C.Children.forEach(e.children,n=>{const o=n.props.condition;o===void 0?r=n:!t&&o===!0&&(t=n)}),c.jsx(c.Fragment,{children:t||r})};it.displayName="Show",it.When=({condition:e,children:t})=>c.jsx(c.Fragment,{children:e&&t}),it.Else=({render:e,children:t})=>c.jsx(c.Fragment,{children:e||t});function Ha(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Wa(...e){return t=>{let r=!1;const n=e.map(o=>{const i=Ha(o,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let o=0;o<n.length;o++){const i=n[o];typeof i=="function"?i():Ha(e[o],null)}}}}function Te(...e){return m.useCallback(Wa(...e),e)}function Vo(e){const t=Up(e),r=m.forwardRef((n,o)=>{const{children:i,...s}=n,a=m.Children.toArray(i),l=a.find(Hp);if(l){const u=l.props.children,d=a.map(h=>h===l?m.Children.count(u)>1?m.Children.only(null):m.isValidElement(u)?u.props.children:null:h);return c.jsx(t,{...s,ref:o,children:m.isValidElement(u)?m.cloneElement(u,void 0,d):null})}return c.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}var Bp=Vo("Slot");function Up(e){const t=m.forwardRef((r,n)=>{const{children:o,...i}=r;if(m.isValidElement(o)){const s=Vp(o),a=Wp(i,o.props);return o.type!==m.Fragment&&(a.ref=n?Wa(n,s):s),m.cloneElement(o,a)}return m.Children.count(o)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Va=Symbol("radix.slottable");function zp(e){const t=({children:r})=>c.jsx(c.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=Va,t}function Hp(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Va}function Wp(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...a)=>{const l=i(...a);return o(...a),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function Vp(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const Ga={SkeletonListContainer:"SkeletonListContainer__MKJhE",Skeleton:"Skeleton__Ovpiw"},Cn=C.forwardRef((e,t)=>{const{children:r,className:n,loading:o,height:i=48,width:s,borderRadius:a,style:l,...u}=e;if(!o&&r)return r;const d=C.isValidElement(r)?Bp:"span";return c.jsx(d,{ref:t,"aria-hidden":!0,className:D(Ga.Skeleton,n),style:{...l,width:s,minWidth:s,height:i,borderRadius:a},"data-inline-skeleton":C.isValidElement(r)?void 0:!0,tabIndex:-1,...u,children:r})});Cn.displayName="Skeleton";const qa=e=>{const{numberOfItems:t,itemsGap:r=2,itemProps:n}=e,o=Array.from({length:t},(i,s)=>s+1);return c.jsx("div",{className:D(Ga.SkeletonListContainer),style:{gap:r},children:o.map(i=>c.jsx(Cn,{loading:!0,...n},i))})};qa.displayName="SkeletonList";function pe(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Gp(e,t){const r=m.createContext(t),n=i=>{const{children:s,...a}=i,l=m.useMemo(()=>a,Object.values(a));return c.jsx(r.Provider,{value:l,children:s})};n.displayName=e+"Provider";function o(i){const s=m.useContext(r);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[n,o]}function Go(e,t=[]){let r=[];function n(i,s){const a=m.createContext(s),l=r.length;r=[...r,s];const u=h=>{var _;const{scope:p,children:g,...w}=h,f=((_=p==null?void 0:p[e])==null?void 0:_[l])||a,v=m.useMemo(()=>w,Object.values(w));return c.jsx(f.Provider,{value:v,children:g})};u.displayName=i+"Provider";function d(h,p){var f;const g=((f=p==null?void 0:p[e])==null?void 0:f[l])||a,w=m.useContext(g);if(w)return w;if(s!==void 0)return s;throw new Error(`\`${h}\` must be used within \`${i}\``)}return[u,d]}const o=()=>{const i=r.map(s=>m.createContext(s));return function(a){const l=(a==null?void 0:a[e])||i;return m.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[n,qp(o,...t)]}function qp(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=n.reduce((a,{useScope:l,scopeName:u})=>{const h=l(i)[`__scope${u}`];return{...a,...h}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}var Qp=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],he=Qp.reduce((e,t)=>{const r=Vo(`Primitive.${t}`),n=m.forwardRef((o,i)=>{const{asChild:s,...a}=o,l=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(l,{...a,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Yp(e,t){e&&es.flushSync(()=>e.dispatchEvent(t))}function Gt(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function Kp(e,t=globalThis==null?void 0:globalThis.document){const r=Gt(e);m.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var Zp="DismissableLayer",qo="dismissableLayer.update",Xp="dismissableLayer.pointerDownOutside",Jp="dismissableLayer.focusOutside",Qa,Ya=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Qo=m.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...l}=e,u=m.useContext(Ya),[d,h]=m.useState(null),p=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=m.useState({}),w=Te(t,O=>h(O)),f=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),_=f.indexOf(v),x=d?f.indexOf(d):-1,T=u.layersWithOutsidePointerEventsDisabled.size>0,S=x>=_,A=rh(O=>{const N=O.target,M=[...u.branches].some($=>$.contains(N));!S||M||(o==null||o(O),s==null||s(O),O.defaultPrevented||a==null||a())},p),k=nh(O=>{const N=O.target;[...u.branches].some($=>$.contains(N))||(i==null||i(O),s==null||s(O),O.defaultPrevented||a==null||a())},p);return Kp(O=>{x===u.layers.size-1&&(n==null||n(O),!O.defaultPrevented&&a&&(O.preventDefault(),a()))},p),m.useEffect(()=>{if(d)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Qa=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Ka(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Qa)}},[d,p,r,u]),m.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Ka())},[d,u]),m.useEffect(()=>{const O=()=>g({});return document.addEventListener(qo,O),()=>document.removeEventListener(qo,O)},[]),c.jsx(he.div,{...l,ref:w,style:{pointerEvents:T?S?"auto":"none":void 0,...e.style},onFocusCapture:pe(e.onFocusCapture,k.onFocusCapture),onBlurCapture:pe(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:pe(e.onPointerDownCapture,A.onPointerDownCapture)})});Qo.displayName=Zp;var eh="DismissableLayerBranch",th=m.forwardRef((e,t)=>{const r=m.useContext(Ya),n=m.useRef(null),o=Te(t,n);return m.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),c.jsx(he.div,{...e,ref:o})});th.displayName=eh;function rh(e,t=globalThis==null?void 0:globalThis.document){const r=Gt(e),n=m.useRef(!1),o=m.useRef(()=>{});return m.useEffect(()=>{const i=a=>{if(a.target&&!n.current){let l=function(){Za(Xp,r,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);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function nh(e,t=globalThis==null?void 0:globalThis.document){const r=Gt(e),n=m.useRef(!1);return m.useEffect(()=>{const o=i=>{i.target&&!n.current&&Za(Jp,r,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Ka(){const e=new CustomEvent(qo);document.dispatchEvent(e)}function Za(e,t,r,{discrete:n}){const o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?Yp(o,i):o.dispatchEvent(i)}var st=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},oh=m[" useId ".trim().toString()]||(()=>{}),ih=0;function En(e){const[t,r]=m.useState(oh());return st(()=>{r(n=>n??String(ih++))},[e]),t?`radix-${t}`:""}const sh=["top","right","bottom","left"],at=Math.min,we=Math.max,Sn=Math.round,Tn=Math.floor,Le=e=>({x:e,y:e}),ah={left:"right",right:"left",bottom:"top",top:"bottom"},lh={start:"end",end:"start"};function Yo(e,t,r){return we(e,at(t,r))}function Ge(e,t){return typeof e=="function"?e(t):e}function qe(e){return e.split("-")[0]}function qt(e){return e.split("-")[1]}function Ko(e){return e==="x"?"y":"x"}function Zo(e){return e==="y"?"height":"width"}const ch=new Set(["top","bottom"]);function Ie(e){return ch.has(qe(e))?"y":"x"}function Xo(e){return Ko(Ie(e))}function uh(e,t,r){r===void 0&&(r=!1);const n=qt(e),o=Xo(e),i=Zo(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=An(s)),[s,An(s)]}function dh(e){const t=An(e);return[Jo(e),t,Jo(t)]}function Jo(e){return e.replace(/start|end/g,t=>lh[t])}const Xa=["left","right"],Ja=["right","left"],fh=["top","bottom"],ph=["bottom","top"];function hh(e,t,r){switch(e){case"top":case"bottom":return r?t?Ja:Xa:t?Xa:Ja;case"left":case"right":return t?fh:ph;default:return[]}}function mh(e,t,r,n){const o=qt(e);let i=hh(qe(e),r==="start",n);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Jo)))),i}function An(e){return e.replace(/left|right|bottom|top/g,t=>ah[t])}function gh(e){return{top:0,right:0,bottom:0,left:0,...e}}function el(e){return typeof e!="number"?gh(e):{top:e,right:e,bottom:e,left:e}}function Pn(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function tl(e,t,r){let{reference:n,floating:o}=e;const i=Ie(t),s=Xo(t),a=Zo(s),l=qe(t),u=i==="y",d=n.x+n.width/2-o.width/2,h=n.y+n.height/2-o.height/2,p=n[a]/2-o[a]/2;let g;switch(l){case"top":g={x:d,y:n.y-o.height};break;case"bottom":g={x:d,y:n.y+n.height};break;case"right":g={x:n.x+n.width,y:h};break;case"left":g={x:n.x-o.width,y:h};break;default:g={x:n.x,y:n.y}}switch(qt(t)){case"start":g[s]-=p*(r&&u?-1:1);break;case"end":g[s]+=p*(r&&u?-1:1);break}return g}const vh=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:s}=r,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:h}=tl(u,n,l),p=n,g={},w=0;for(let f=0;f<a.length;f++){const{name:v,fn:_}=a[f],{x,y:T,data:S,reset:A}=await _({x:d,y:h,initialPlacement:n,placement:p,strategy:o,middlewareData:g,rects:u,platform:s,elements:{reference:e,floating:t}});d=x??d,h=T??h,g={...g,[v]:{...g[v],...S}},A&&w<=50&&(w++,typeof A=="object"&&(A.placement&&(p=A.placement),A.rects&&(u=A.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):A.rects),{x:d,y:h}=tl(u,p,l)),f=-1)}return{x:d,y:h,placement:p,strategy:o,middlewareData:g}};async function kr(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:p=!1,padding:g=0}=Ge(t,e),w=el(g),v=a[p?h==="floating"?"reference":"floating":h],_=Pn(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(v)))==null||r?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:l})),x=h==="floating"?{x:n,y:o,width:s.floating.width,height:s.floating.height}:s.reference,T=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),S=await(i.isElement==null?void 0:i.isElement(T))?await(i.getScale==null?void 0:i.getScale(T))||{x:1,y:1}:{x:1,y:1},A=Pn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:T,strategy:l}):x);return{top:(_.top-A.top+w.top)/S.y,bottom:(A.bottom-_.bottom+w.bottom)/S.y,left:(_.left-A.left+w.left)/S.x,right:(A.right-_.right+w.right)/S.x}}const yh=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:u,padding:d=0}=Ge(e,t)||{};if(u==null)return{};const h=el(d),p={x:r,y:n},g=Xo(o),w=Zo(g),f=await s.getDimensions(u),v=g==="y",_=v?"top":"left",x=v?"bottom":"right",T=v?"clientHeight":"clientWidth",S=i.reference[w]+i.reference[g]-p[g]-i.floating[w],A=p[g]-i.reference[g],k=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let O=k?k[T]:0;(!O||!await(s.isElement==null?void 0:s.isElement(k)))&&(O=a.floating[T]||i.floating[w]);const N=S/2-A/2,M=O/2-f[w]/2-1,$=at(h[_],M),Y=at(h[x],M),K=$,W=O-f[w]-Y,q=O/2-f[w]/2+N,ie=Yo(K,q,W),J=!l.arrow&&qt(o)!=null&&q!==ie&&i.reference[w]/2-(q<K?$:Y)-f[w]/2<0,ee=J?q<K?q-K:q-W:0;return{[g]:p[g]+ee,data:{[g]:ie,centerOffset:q-ie-ee,...J&&{alignmentOffset:ee}},reset:J}}}),bh=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:f=!0,...v}=Ge(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const _=qe(o),x=Ie(a),T=qe(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),A=p||(T||!f?[An(a)]:dh(a)),k=w!=="none";!p&&k&&A.push(...mh(a,f,w,S));const O=[a,...A],N=await kr(t,v),M=[];let $=((n=i.flip)==null?void 0:n.overflows)||[];if(d&&M.push(N[_]),h){const q=uh(o,s,S);M.push(N[q[0]],N[q[1]])}if($=[...$,{placement:o,overflows:M}],!M.every(q=>q<=0)){var Y,K;const q=(((Y=i.flip)==null?void 0:Y.index)||0)+1,ie=O[q];if(ie&&(!(h==="alignment"?x!==Ie(ie):!1)||$.every(B=>Ie(B.placement)===x?B.overflows[0]>0:!0)))return{data:{index:q,overflows:$},reset:{placement:ie}};let J=(K=$.filter(ee=>ee.overflows[0]<=0).sort((ee,B)=>ee.overflows[1]-B.overflows[1])[0])==null?void 0:K.placement;if(!J)switch(g){case"bestFit":{var W;const ee=(W=$.filter(B=>{if(k){const se=Ie(B.placement);return se===x||se==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(se=>se>0).reduce((se,xe)=>se+xe,0)]).sort((B,se)=>B[1]-se[1])[0])==null?void 0:W[0];ee&&(J=ee);break}case"initialPlacement":J=a;break}if(o!==J)return{reset:{placement:J}}}return{}}}};function rl(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function nl(e){return sh.some(t=>e[t]>=0)}const wh=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=Ge(e,t);switch(n){case"referenceHidden":{const i=await kr(t,{...o,elementContext:"reference"}),s=rl(i,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:nl(s)}}}case"escaped":{const i=await kr(t,{...o,altBoundary:!0}),s=rl(i,r.floating);return{data:{escapedOffsets:s,escaped:nl(s)}}}default:return{}}}}},ol=new Set(["left","top"]);async function _h(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=qe(r),a=qt(r),l=Ie(r)==="y",u=ol.has(s)?-1:1,d=i&&l?-1:1,h=Ge(t,e);let{mainAxis:p,crossAxis:g,alignmentAxis:w}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof w=="number"&&(g=a==="end"?w*-1:w),l?{x:g*d,y:p*u}:{x:p*u,y:g*d}}const xh=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await _h(t,e);return s===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},Ch=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:v=>{let{x:_,y:x}=v;return{x:_,y:x}}},...l}=Ge(e,t),u={x:r,y:n},d=await kr(t,l),h=Ie(qe(o)),p=Ko(h);let g=u[p],w=u[h];if(i){const v=p==="y"?"top":"left",_=p==="y"?"bottom":"right",x=g+d[v],T=g-d[_];g=Yo(x,g,T)}if(s){const v=h==="y"?"top":"left",_=h==="y"?"bottom":"right",x=w+d[v],T=w-d[_];w=Yo(x,w,T)}const f=a.fn({...t,[p]:g,[h]:w});return{...f,data:{x:f.x-r,y:f.y-n,enabled:{[p]:i,[h]:s}}}}}},Eh=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=Ge(e,t),d={x:r,y:n},h=Ie(o),p=Ko(h);let g=d[p],w=d[h];const f=Ge(a,t),v=typeof f=="number"?{mainAxis:f,crossAxis:0}:{mainAxis:0,crossAxis:0,...f};if(l){const T=p==="y"?"height":"width",S=i.reference[p]-i.floating[T]+v.mainAxis,A=i.reference[p]+i.reference[T]-v.mainAxis;g<S?g=S:g>A&&(g=A)}if(u){var _,x;const T=p==="y"?"width":"height",S=ol.has(qe(o)),A=i.reference[h]-i.floating[T]+(S&&((_=s.offset)==null?void 0:_[h])||0)+(S?0:v.crossAxis),k=i.reference[h]+i.reference[T]+(S?0:((x=s.offset)==null?void 0:x[h])||0)-(S?v.crossAxis:0);w<A?w=A:w>k&&(w=k)}return{[p]:g,[h]:w}}}},Sh=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...u}=Ge(e,t),d=await kr(t,u),h=qe(o),p=qt(o),g=Ie(o)==="y",{width:w,height:f}=i.floating;let v,_;h==="top"||h==="bottom"?(v=h,_=p===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(_=h,v=p==="end"?"top":"bottom");const x=f-d.top-d.bottom,T=w-d.left-d.right,S=at(f-d[v],x),A=at(w-d[_],T),k=!t.middlewareData.shift;let O=S,N=A;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(N=T),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(O=x),k&&!p){const $=we(d.left,0),Y=we(d.right,0),K=we(d.top,0),W=we(d.bottom,0);g?N=w-2*($!==0||Y!==0?$+Y:we(d.left,d.right)):O=f-2*(K!==0||W!==0?K+W:we(d.top,d.bottom))}await l({...t,availableWidth:N,availableHeight:O});const M=await s.getDimensions(a.floating);return w!==M.width||f!==M.height?{reset:{rects:!0}}:{}}}};function On(){return typeof window<"u"}function Qt(e){return il(e)?(e.nodeName||"").toLowerCase():"#document"}function _e(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ne(e){var t;return(t=(il(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function il(e){return On()?e instanceof Node||e instanceof _e(e).Node:!1}function Ae(e){return On()?e instanceof Element||e instanceof _e(e).Element:!1}function Me(e){return On()?e instanceof HTMLElement||e instanceof _e(e).HTMLElement:!1}function sl(e){return!On()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof _e(e).ShadowRoot}const Th=new Set(["inline","contents"]);function Rr(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Pe(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!Th.has(o)}const Ah=new Set(["table","td","th"]);function Ph(e){return Ah.has(Qt(e))}const Oh=[":popover-open",":modal"];function kn(e){return Oh.some(t=>{try{return e.matches(t)}catch{return!1}})}const kh=["transform","translate","scale","rotate","perspective"],Rh=["transform","translate","scale","rotate","perspective","filter"],jh=["paint","layout","strict","content"];function ei(e){const t=ti(),r=Ae(e)?Pe(e):e;return kh.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||Rh.some(n=>(r.willChange||"").includes(n))||jh.some(n=>(r.contain||"").includes(n))}function Dh(e){let t=lt(e);for(;Me(t)&&!Yt(t);){if(ei(t))return t;if(kn(t))return null;t=lt(t)}return null}function ti(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Lh=new Set(["html","body","#document"]);function Yt(e){return Lh.has(Qt(e))}function Pe(e){return _e(e).getComputedStyle(e)}function Rn(e){return Ae(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function lt(e){if(Qt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||sl(e)&&e.host||Ne(e);return sl(t)?t.host:t}function al(e){const t=lt(e);return Yt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Me(t)&&Rr(t)?t:al(t)}function jr(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=al(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),s=_e(o);if(i){const a=ri(s);return t.concat(s,s.visualViewport||[],Rr(o)?o:[],a&&r?jr(a):[])}return t.concat(o,jr(o,[],r))}function ri(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ll(e){const t=Pe(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Me(e),i=o?e.offsetWidth:r,s=o?e.offsetHeight:n,a=Sn(r)!==i||Sn(n)!==s;return a&&(r=i,n=s),{width:r,height:n,$:a}}function ni(e){return Ae(e)?e:e.contextElement}function Kt(e){const t=ni(e);if(!Me(t))return Le(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=ll(t);let s=(i?Sn(r.width):r.width)/n,a=(i?Sn(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Ih=Le(0);function cl(e){const t=_e(e);return!ti()||!t.visualViewport?Ih:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Nh(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==_e(e)?!1:t}function Pt(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=ni(e);let s=Le(1);t&&(n?Ae(n)&&(s=Kt(n)):s=Kt(e));const a=Nh(i,r,n)?cl(i):Le(0);let l=(o.left+a.x)/s.x,u=(o.top+a.y)/s.y,d=o.width/s.x,h=o.height/s.y;if(i){const p=_e(i),g=n&&Ae(n)?_e(n):n;let w=p,f=ri(w);for(;f&&n&&g!==w;){const v=Kt(f),_=f.getBoundingClientRect(),x=Pe(f),T=_.left+(f.clientLeft+parseFloat(x.paddingLeft))*v.x,S=_.top+(f.clientTop+parseFloat(x.paddingTop))*v.y;l*=v.x,u*=v.y,d*=v.x,h*=v.y,l+=T,u+=S,w=_e(f),f=ri(w)}}return Pn({width:d,height:h,x:l,y:u})}function oi(e,t){const r=Rn(e).scrollLeft;return t?t.left+r:Pt(Ne(e)).left+r}function ul(e,t,r){r===void 0&&(r=!1);const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-(r?0:oi(e,n)),i=n.top+t.scrollTop;return{x:o,y:i}}function Mh(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i=o==="fixed",s=Ne(n),a=t?kn(t.floating):!1;if(n===s||a&&i)return r;let l={scrollLeft:0,scrollTop:0},u=Le(1);const d=Le(0),h=Me(n);if((h||!h&&!i)&&((Qt(n)!=="body"||Rr(s))&&(l=Rn(n)),Me(n))){const g=Pt(n);u=Kt(n),d.x=g.x+n.clientLeft,d.y=g.y+n.clientTop}const p=s&&!h&&!i?ul(s,l,!0):Le(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-l.scrollLeft*u.x+d.x+p.x,y:r.y*u.y-l.scrollTop*u.y+d.y+p.y}}function $h(e){return Array.from(e.getClientRects())}function Fh(e){const t=Ne(e),r=Rn(e),n=e.ownerDocument.body,o=we(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=we(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+oi(e);const a=-r.scrollTop;return Pe(n).direction==="rtl"&&(s+=we(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:s,y:a}}function Bh(e,t){const r=_e(e),n=Ne(e),o=r.visualViewport;let i=n.clientWidth,s=n.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const u=ti();(!u||u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}const Uh=new Set(["absolute","fixed"]);function zh(e,t){const r=Pt(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=Me(e)?Kt(e):Le(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,u=n*i.y;return{width:s,height:a,x:l,y:u}}function dl(e,t,r){let n;if(t==="viewport")n=Bh(e,r);else if(t==="document")n=Fh(Ne(e));else if(Ae(t))n=zh(t,r);else{const o=cl(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Pn(n)}function fl(e,t){const r=lt(e);return r===t||!Ae(r)||Yt(r)?!1:Pe(r).position==="fixed"||fl(r,t)}function Hh(e,t){const r=t.get(e);if(r)return r;let n=jr(e,[],!1).filter(a=>Ae(a)&&Qt(a)!=="body"),o=null;const i=Pe(e).position==="fixed";let s=i?lt(e):e;for(;Ae(s)&&!Yt(s);){const a=Pe(s),l=ei(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&Uh.has(o.position)||Rr(s)&&!l&&fl(e,s))?n=n.filter(d=>d!==s):o=a,s=lt(s)}return t.set(e,n),n}function Wh(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const s=[...r==="clippingAncestors"?kn(t)?[]:Hh(t,this._c):[].concat(r),n],a=s[0],l=s.reduce((u,d)=>{const h=dl(t,d,o);return u.top=we(h.top,u.top),u.right=at(h.right,u.right),u.bottom=at(h.bottom,u.bottom),u.left=we(h.left,u.left),u},dl(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Vh(e){const{width:t,height:r}=ll(e);return{width:t,height:r}}function Gh(e,t,r){const n=Me(t),o=Ne(t),i=r==="fixed",s=Pt(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Le(0);function u(){l.x=oi(o)}if(n||!n&&!i)if((Qt(t)!=="body"||Rr(o))&&(a=Rn(t)),n){const g=Pt(t,!0,i,t);l.x=g.x+t.clientLeft,l.y=g.y+t.clientTop}else o&&u();i&&!n&&o&&u();const d=o&&!n&&!i?ul(o,a):Le(0),h=s.left+a.scrollLeft-l.x-d.x,p=s.top+a.scrollTop-l.y-d.y;return{x:h,y:p,width:s.width,height:s.height}}function ii(e){return Pe(e).position==="static"}function pl(e,t){if(!Me(e)||Pe(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Ne(e)===r&&(r=r.ownerDocument.body),r}function hl(e,t){const r=_e(e);if(kn(e))return r;if(!Me(e)){let o=lt(e);for(;o&&!Yt(o);){if(Ae(o)&&!ii(o))return o;o=lt(o)}return r}let n=pl(e,t);for(;n&&Ph(n)&&ii(n);)n=pl(n,t);return n&&Yt(n)&&ii(n)&&!ei(n)?r:n||Dh(e)||r}const qh=async function(e){const t=this.getOffsetParent||hl,r=this.getDimensions,n=await r(e.floating);return{reference:Gh(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Qh(e){return Pe(e).direction==="rtl"}const Yh={convertOffsetParentRelativeRectToViewportRelativeRect:Mh,getDocumentElement:Ne,getClippingRect:Wh,getOffsetParent:hl,getElementRects:qh,getClientRects:$h,getDimensions:Vh,getScale:Kt,isElement:Ae,isRTL:Qh};function ml(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Kh(e,t){let r=null,n;const o=Ne(e);function i(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const u=e.getBoundingClientRect(),{left:d,top:h,width:p,height:g}=u;if(a||t(),!p||!g)return;const w=Tn(h),f=Tn(o.clientWidth-(d+p)),v=Tn(o.clientHeight-(h+g)),_=Tn(d),T={rootMargin:-w+"px "+-f+"px "+-v+"px "+-_+"px",threshold:we(0,at(1,l))||1};let S=!0;function A(k){const O=k[0].intersectionRatio;if(O!==l){if(!S)return s();O?s(!1,O):n=setTimeout(()=>{s(!1,1e-7)},1e3)}O===1&&!ml(u,e.getBoundingClientRect())&&s(),S=!1}try{r=new IntersectionObserver(A,{...T,root:o.ownerDocument})}catch{r=new IntersectionObserver(A,T)}r.observe(e)}return s(!0),i}function Zh(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,u=ni(e),d=o||i?[...u?jr(u):[],...jr(t)]:[];d.forEach(_=>{o&&_.addEventListener("scroll",r,{passive:!0}),i&&_.addEventListener("resize",r)});const h=u&&a?Kh(u,r):null;let p=-1,g=null;s&&(g=new ResizeObserver(_=>{let[x]=_;x&&x.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var T;(T=g)==null||T.observe(t)})),r()}),u&&!l&&g.observe(u),g.observe(t));let w,f=l?Pt(e):null;l&&v();function v(){const _=Pt(e);f&&!ml(f,_)&&r(),f=_,w=requestAnimationFrame(v)}return r(),()=>{var _;d.forEach(x=>{o&&x.removeEventListener("scroll",r),i&&x.removeEventListener("resize",r)}),h==null||h(),(_=g)==null||_.disconnect(),g=null,l&&cancelAnimationFrame(w)}}const Xh=xh,Jh=Ch,e1=bh,t1=Sh,r1=wh,gl=yh,n1=Eh,o1=(e,t,r)=>{const n=new Map,o={platform:Yh,...r},i={...o.platform,_c:n};return vh(e,t,{...o,platform:i})};var i1=typeof document<"u",s1=function(){},jn=i1?C.useLayoutEffect:s1;function Dn(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 r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Dn(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const i=o[n];if(!(i==="_owner"&&e.$$typeof)&&!Dn(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function vl(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function yl(e,t){const r=vl(e);return Math.round(t*r)/r}function si(e){const t=m.useRef(e);return jn(()=>{t.current=e}),t}function a1(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[d,h]=m.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[p,g]=m.useState(n);Dn(p,n)||g(n);const[w,f]=m.useState(null),[v,_]=m.useState(null),x=m.useCallback(B=>{B!==k.current&&(k.current=B,f(B))},[]),T=m.useCallback(B=>{B!==O.current&&(O.current=B,_(B))},[]),S=i||w,A=s||v,k=m.useRef(null),O=m.useRef(null),N=m.useRef(d),M=l!=null,$=si(l),Y=si(o),K=si(u),W=m.useCallback(()=>{if(!k.current||!O.current)return;const B={placement:t,strategy:r,middleware:p};Y.current&&(B.platform=Y.current),o1(k.current,O.current,B).then(se=>{const xe={...se,isPositioned:K.current!==!1};q.current&&!Dn(N.current,xe)&&(N.current=xe,es.flushSync(()=>{h(xe)}))})},[p,t,r,Y,K]);jn(()=>{u===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,h(B=>({...B,isPositioned:!1})))},[u]);const q=m.useRef(!1);jn(()=>(q.current=!0,()=>{q.current=!1}),[]),jn(()=>{if(S&&(k.current=S),A&&(O.current=A),S&&A){if($.current)return $.current(S,A,W);W()}},[S,A,W,$,M]);const ie=m.useMemo(()=>({reference:k,floating:O,setReference:x,setFloating:T}),[x,T]),J=m.useMemo(()=>({reference:S,floating:A}),[S,A]),ee=m.useMemo(()=>{const B={position:r,left:0,top:0};if(!J.floating)return B;const se=yl(J.floating,d.x),xe=yl(J.floating,d.y);return a?{...B,transform:"translate("+se+"px, "+xe+"px)",...vl(J.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:se,top:xe}},[r,a,J.floating,d.x,d.y]);return m.useMemo(()=>({...d,update:W,refs:ie,elements:J,floatingStyles:ee}),[d,W,ie,J,ee])}const l1=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?gl({element:n.current,padding:o}).fn(r):{}:n?gl({element:n,padding:o}).fn(r):{}}}},c1=(e,t)=>({...Xh(e),options:[e,t]}),u1=(e,t)=>({...Jh(e),options:[e,t]}),d1=(e,t)=>({...n1(e),options:[e,t]}),f1=(e,t)=>({...e1(e),options:[e,t]}),p1=(e,t)=>({...t1(e),options:[e,t]}),h1=(e,t)=>({...r1(e),options:[e,t]}),m1=(e,t)=>({...l1(e),options:[e,t]});var g1="Arrow",bl=m.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...i}=e;return c.jsx(he.svg,{...i,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});bl.displayName=g1;var v1=bl;function y1(e){const[t,r]=m.useState(void 0);return st(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=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;r({width:s,height:a})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var ai="Popper",[wl,_l]=Go(ai),[b1,xl]=wl(ai),Cl=e=>{const{__scopePopper:t,children:r}=e,[n,o]=m.useState(null);return c.jsx(b1,{scope:t,anchor:n,onAnchorChange:o,children:r})};Cl.displayName=ai;var El="PopperAnchor",Sl=m.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,i=xl(El,r),s=m.useRef(null),a=Te(t,s);return m.useEffect(()=>{i.onAnchorChange((n==null?void 0:n.current)||s.current)}),n?null:c.jsx(he.div,{...o,ref:a})});Sl.displayName=El;var li="PopperContent",[w1,_1]=wl(li),Tl=m.forwardRef((e,t)=>{var gr,Bt,vr,Ut,Jn,Hr;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:h="partial",hideWhenDetached:p=!1,updatePositionStrategy:g="optimized",onPlaced:w,...f}=e,v=xl(li,r),[_,x]=m.useState(null),T=Te(t,zt=>x(zt)),[S,A]=m.useState(null),k=y1(S),O=(k==null?void 0:k.width)??0,N=(k==null?void 0:k.height)??0,M=n+(i!=="center"?"-"+i:""),$=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},Y=Array.isArray(u)?u:[u],K=Y.length>0,W={padding:$,boundary:Y.filter(C1),altBoundary:K},{refs:q,floatingStyles:ie,placement:J,isPositioned:ee,middlewareData:B}=a1({strategy:"fixed",placement:M,whileElementsMounted:(...zt)=>Zh(...zt,{animationFrame:g==="always"}),elements:{reference:v.anchor},middleware:[c1({mainAxis:o+N,alignmentAxis:s}),l&&u1({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?d1():void 0,...W}),l&&f1({...W}),p1({...W,apply:({elements:zt,rects:eo,availableWidth:yr,availableHeight:Ht})=>{const{width:to,height:ro}=eo.reference,Xe=zt.floating.style;Xe.setProperty("--radix-popper-available-width",`${yr}px`),Xe.setProperty("--radix-popper-available-height",`${Ht}px`),Xe.setProperty("--radix-popper-anchor-width",`${to}px`),Xe.setProperty("--radix-popper-anchor-height",`${ro}px`)}}),S&&m1({element:S,padding:a}),E1({arrowWidth:O,arrowHeight:N}),p&&h1({strategy:"referenceHidden",...W})]}),[se,xe]=Ol(J),Ft=Gt(w);st(()=>{ee&&(Ft==null||Ft())},[ee,Ft]);const Zn=(gr=B.arrow)==null?void 0:gr.x,Xn=(Bt=B.arrow)==null?void 0:Bt.y,Mi=((vr=B.arrow)==null?void 0:vr.centerOffset)!==0,[$i,zr]=m.useState();return st(()=>{_&&zr(window.getComputedStyle(_).zIndex)},[_]),c.jsx("div",{ref:q.setFloating,"data-radix-popper-content-wrapper":"",style:{...ie,transform:ee?ie.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:$i,"--radix-popper-transform-origin":[(Ut=B.transformOrigin)==null?void 0:Ut.x,(Jn=B.transformOrigin)==null?void 0:Jn.y].join(" "),...((Hr=B.hide)==null?void 0:Hr.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(w1,{scope:r,placedSide:se,onArrowChange:A,arrowX:Zn,arrowY:Xn,shouldHideArrow:Mi,children:c.jsx(he.div,{"data-side":se,"data-align":xe,...f,ref:T,style:{...f.style,animation:ee?void 0:"none"}})})})});Tl.displayName=li;var Al="PopperArrow",x1={top:"bottom",right:"left",bottom:"top",left:"right"},Pl=m.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,i=_1(Al,n),s=x1[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(v1,{...o,ref:r,style:{...o.style,display:"block"}})})});Pl.displayName=Al;function C1(e){return e!==null}var E1=e=>({name:"transformOrigin",options:e,fn(t){var v,_,x;const{placement:r,rects:n,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]=Ol(r),h={start:"0%",center:"50%",end:"100%"}[d],p=(((_=o.arrow)==null?void 0:_.x)??0)+a/2,g=(((x=o.arrow)==null?void 0:x.y)??0)+l/2;let w="",f="";return u==="bottom"?(w=s?h:`${p}px`,f=`${-l}px`):u==="top"?(w=s?h:`${p}px`,f=`${n.floating.height+l}px`):u==="right"?(w=`${-l}px`,f=s?h:`${g}px`):u==="left"&&(w=`${n.floating.width+l}px`,f=s?h:`${g}px`),{data:{x:w,y:f}}}});function Ol(e){const[t,r="center"]=e.split("-");return[t,r]}var S1=Cl,T1=Sl,A1=Tl,P1=Pl,O1="Portal",ci=m.forwardRef((e,t)=>{var a;const{container:r,...n}=e,[o,i]=m.useState(!1);st(()=>i(!0),[]);const s=r||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?_t.createPortal(c.jsx(he.div,{...n,ref:t}),s):null});ci.displayName=O1;function k1(e,t){return m.useReducer((r,n)=>t[r][n]??r,e)}var Zt=e=>{const{present:t,children:r}=e,n=R1(t),o=typeof r=="function"?r({present:n.isPresent}):m.Children.only(r),i=Te(n.ref,j1(o));return typeof r=="function"||n.isPresent?m.cloneElement(o,{ref:i}):null};Zt.displayName="Presence";function R1(e){const[t,r]=m.useState(),n=m.useRef(null),o=m.useRef(e),i=m.useRef("none"),s=e?"mounted":"unmounted",[a,l]=k1(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const u=Ln(n.current);i.current=a==="mounted"?u:"none"},[a]),st(()=>{const u=n.current,d=o.current;if(d!==e){const p=i.current,g=Ln(u);e?l("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&p!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),st(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,h=g=>{const f=Ln(n.current).includes(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)})}},p=g=>{g.target===t&&(i.current=Ln(n.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:m.useCallback(u=>{n.current=u?getComputedStyle(u):null,r(u)},[])}}function Ln(e){return(e==null?void 0:e.animationName)||"none"}function j1(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var D1=m[" useInsertionEffect ".trim().toString()]||st;function kl({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,i,s]=L1({defaultProp:t,onChange:r}),a=e!==void 0,l=a?e:o;{const d=m.useRef(e!==void 0);m.useEffect(()=>{const h=d.current;h!==a&&console.warn(`${n} 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.`),d.current=a},[a,n])}const u=m.useCallback(d=>{var h;if(a){const p=I1(d)?d(e):d;p!==e&&((h=s.current)==null||h.call(s,p))}else i(d)},[a,e,i,s]);return[l,u]}function L1({defaultProp:e,onChange:t}){const[r,n]=m.useState(e),o=m.useRef(r),i=m.useRef(t);return D1(()=>{i.current=t},[t]),m.useEffect(()=>{var s;o.current!==r&&((s=i.current)==null||s.call(i,r),o.current=r)},[r,o]),[r,n,i]}function I1(e){return typeof e=="function"}var N1=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"}),M1="VisuallyHidden",Rl=m.forwardRef((e,t)=>c.jsx(he.span,{...e,ref:t,style:{...N1,...e.style}}));Rl.displayName=M1;var $1=Rl,[In,iy]=Go("Tooltip",[_l]),Nn=_l(),jl="TooltipProvider",F1=700,ui="tooltip.open",[B1,di]=In(jl),Dl=e=>{const{__scopeTooltip:t,delayDuration:r=F1,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:i}=e,s=m.useRef(!0),a=m.useRef(!1),l=m.useRef(0);return m.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),c.jsx(B1,{scope:t,isOpenDelayedRef:s,delayDuration:r,onOpen:m.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:m.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,n)},[n]),isPointerInTransitRef:a,onPointerInTransitChange:m.useCallback(u=>{a.current=u},[]),disableHoverableContent:o,children:i})};Dl.displayName=jl;var Dr="Tooltip",[U1,Lr]=In(Dr),Ll=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o,onOpenChange:i,disableHoverableContent:s,delayDuration:a}=e,l=di(Dr,e.__scopeTooltip),u=Nn(t),[d,h]=m.useState(null),p=En(),g=m.useRef(0),w=s??l.disableHoverableContent,f=a??l.delayDuration,v=m.useRef(!1),[_,x]=kl({prop:n,defaultProp:o??!1,onChange:O=>{O?(l.onOpen(),document.dispatchEvent(new CustomEvent(ui))):l.onClose(),i==null||i(O)},caller:Dr}),T=m.useMemo(()=>_?v.current?"delayed-open":"instant-open":"closed",[_]),S=m.useCallback(()=>{window.clearTimeout(g.current),g.current=0,v.current=!1,x(!0)},[x]),A=m.useCallback(()=>{window.clearTimeout(g.current),g.current=0,x(!1)},[x]),k=m.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{v.current=!0,x(!0),g.current=0},f)},[f,x]);return m.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),c.jsx(S1,{...u,children:c.jsx(U1,{scope:t,contentId:p,open:_,stateAttribute:T,trigger:d,onTriggerChange:h,onTriggerEnter:m.useCallback(()=>{l.isOpenDelayedRef.current?k():S()},[l.isOpenDelayedRef,k,S]),onTriggerLeave:m.useCallback(()=>{w?A():(window.clearTimeout(g.current),g.current=0)},[A,w]),onOpen:S,onClose:A,disableHoverableContent:w,children:r})})};Ll.displayName=Dr;var fi="TooltipTrigger",Il=m.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Lr(fi,r),i=di(fi,r),s=Nn(r),a=m.useRef(null),l=Te(t,a,o.onTriggerChange),u=m.useRef(!1),d=m.useRef(!1),h=m.useCallback(()=>u.current=!1,[]);return m.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),c.jsx(T1,{asChild:!0,...s,children:c.jsx(he.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:l,onPointerMove:pe(e.onPointerMove,p=>{p.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:pe(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:pe(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:pe(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:pe(e.onBlur,o.onClose),onClick:pe(e.onClick,o.onClose)})})});Il.displayName=fi;var pi="TooltipPortal",[z1,H1]=In(pi,{forceMount:void 0}),Nl=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,i=Lr(pi,t);return c.jsx(z1,{scope:t,forceMount:r,children:c.jsx(Zt,{present:r||i.open,children:c.jsx(ci,{asChild:!0,container:o,children:n})})})};Nl.displayName=pi;var Xt="TooltipContent",Ml=m.forwardRef((e,t)=>{const r=H1(Xt,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...i}=e,s=Lr(Xt,e.__scopeTooltip);return c.jsx(Zt,{present:n||s.open,children:s.disableHoverableContent?c.jsx($l,{side:o,...i,ref:t}):c.jsx(W1,{side:o,...i,ref:t})})}),W1=m.forwardRef((e,t)=>{const r=Lr(Xt,e.__scopeTooltip),n=di(Xt,e.__scopeTooltip),o=m.useRef(null),i=Te(t,o),[s,a]=m.useState(null),{trigger:l,onClose:u}=r,d=o.current,{onPointerInTransitChange:h}=n,p=m.useCallback(()=>{a(null),h(!1)},[h]),g=m.useCallback((w,f)=>{const v=w.currentTarget,_={x:w.clientX,y:w.clientY},x=Q1(_,v.getBoundingClientRect()),T=Y1(_,x),S=K1(f.getBoundingClientRect()),A=X1([...T,...S]);a(A),h(!0)},[h]);return m.useEffect(()=>()=>p(),[p]),m.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,p]),m.useEffect(()=>{if(s){const w=f=>{const v=f.target,_={x:f.clientX,y:f.clientY},x=(l==null?void 0:l.contains(v))||(d==null?void 0:d.contains(v)),T=!Z1(_,s);x?p():T&&(p(),u())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[l,d,s,u,p]),c.jsx($l,{...e,ref:i})}),[V1,G1]=In(Dr,{isInside:!1}),q1=zp("TooltipContent"),$l=m.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...a}=e,l=Lr(Xt,r),u=Nn(r),{onClose:d}=l;return m.useEffect(()=>(document.addEventListener(ui,d),()=>document.removeEventListener(ui,d)),[d]),m.useEffect(()=>{if(l.trigger){const h=p=>{const g=p.target;g!=null&&g.contains(l.trigger)&&d()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[l.trigger,d]),c.jsx(Qo,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:h=>h.preventDefault(),onDismiss:d,children:c.jsxs(A1,{"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(q1,{children:n}),c.jsx(V1,{scope:r,isInside:!0,children:c.jsx($1,{id:l.contentId,role:"tooltip",children:o||n})})]})})});Ml.displayName=Xt;var Fl="TooltipArrow",Bl=m.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Nn(r);return G1(Fl,r).isInside?null:c.jsx(P1,{...o,...n,ref:t})});Bl.displayName=Fl;function Q1(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(r,n,o,i)){case i:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function Y1(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function K1(e){const{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}function Z1(e,t){const{x:r,y:n}=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,h=l.x,p=l.y;d>n!=p>n&&r<(h-u)*(n-d)/(p-d)+u&&(o=!o)}return o}function X1(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),J1(t)}function J1(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];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 r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const i=r[r.length-1],s=r[r.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))r.pop();else break}r.push(o)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var em=Dl,tm=Ll,rm=Il,nm=Nl,om=Ml,im=Bl;const Ul={tooltip:"tooltip__nUuSh",tooltipArrow:"tooltipArrow__W2w-f"},zl=({children:e,open:t,displayName:r,tooltipContent:n,className:o,disabled:i,delayDuration:s=300,side:a="right",sideOffset:l=0})=>{const[u,d]=C.useState(!1),h=t!==void 0,g=i?!1:h?t:u,w=f=>{i||h||d(f)};return c.jsx(em,{delayDuration:s,children:c.jsxs(tm,{open:g,onOpenChange:w,children:[c.jsx(rm,{asChild:!0,children:e}),c.jsx(nm,{children:c.jsxs(om,{className:D(Ul.tooltip,o),side:a,sideOffset:l,children:[r,n,c.jsx(im,{className:Ul.tooltipArrow})]})})]})})};zl.displayName="Tooltip";const Hl={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"},Wl=({className:e,color:t="white",size:r=80,thickness:n})=>{const o=D(Hl.spinner,Hl[`spinner-${t}`],e),i=n??Math.max(r/12,2);return c.jsx("span",{style:{width:r,height:r,borderWidth:i},className:o})};Wl.displayName="Spinner";const Mn={switch:"switch__0b2av",disabled:"disabled__KpauE",checked:"checked__2-JV-",thumb:"thumb__fEuKD"},Vl=C.forwardRef(({checked:e,defaultChecked:t=!1,onCheckedChange:r,disabled:n=!1,id:o,className:i,name:s,"aria-label":a,"aria-labelledby":l,"aria-describedby":u,...d},h)=>{const[p,g]=C.useState(t),w=e!==void 0,f=w?!!e:p,v=()=>{if(n)return;const x=!f;w||g(x),r==null||r(x)},_=x=>{(x.key===" "||x.key==="Enter")&&(x.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:n,id:o,name:s,className:D(Mn.switch,{[Mn.checked]:f,[Mn.disabled]:n}),onClick:v,onKeyDown:_,...d,children:c.jsx("span",{className:Mn.thumb,"aria-hidden":"true"})})});Vl.displayName="Switch";const $e={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"},Gl=C.createContext(null),hi=()=>{const e=C.useContext(Gl);if(!e)throw new Error("Tabs components must be used within a Tabs provider");return e},sm=({defaultValue:e,value:t,onValueChange:r,orientation:n="horizontal",className:o="",children:i})=>{const[s,a]=C.useState(e||""),l=t!==void 0,u=l?t:s,d=h=>{l||a(h),r==null||r(h)};return c.jsx(Gl.Provider,{value:{value:u,onValueChange:d,orientation:n},children:c.jsx("div",{className:D($e.tabsRoot,o),children:i})})},am=({className:e="",children:t})=>{const{orientation:r}=hi(),n=C.useRef(null),o=i=>{var u;const s=(u=n.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":r==="horizontal"&&(i.preventDefault(),l=a>0?a-1:s.length-1);break;case"ArrowRight":r==="horizontal"&&(i.preventDefault(),l=a<s.length-1?a+1:0);break;case"ArrowUp":r==="vertical"&&(i.preventDefault(),l=a>0?a-1:s.length-1);break;case"ArrowDown":r==="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:n,role:"tablist","aria-orientation":r,onKeyDown:o,className:D($e.tabsList,r==="horizontal"?$e.tabsListHorizontal:$e.tabsListVertical,e),children:t})},lm=({value:e,disabled:t=!1,className:r="",children:n})=>{const{value:o,onValueChange:i,orientation:s}=hi(),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:D($e.tabsTrigger,s==="horizontal"?$e.tabsTriggerHorizontal:$e.tabsTriggerVertical,a&&$e.tabsTriggerActive,t&&$e.tabsTriggerDisabled,r),children:n})},cm=({value:e,className:t="",children:r})=>{const{value:n}=hi();return n===e?c.jsx("div",{role:"tabpanel",id:`content-${e}`,"aria-labelledby":`trigger-${e}`,tabIndex:0,className:D($e.tabsContent,t),children:r}):null},ql=({className:e,state:t="open",onClick:r})=>t==="open"?c.jsxs("svg",{className:e,onClick:r,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:r,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"})}),Ql={PasswordInput:"PasswordInput__GDJDN",eyeIcon:"eyeIcon__kDExG"},um=C.forwardRef((e,t)=>{const[r,n]=C.useState("password"),o=C.useCallback(()=>{n(i=>i==="password"?"text":"password")},[n]);return c.jsxs("div",{className:D(Ql.PasswordInput,e.className),children:[c.jsx(_n,{type:r,...e,ref:t}),c.jsx(ql,{className:Ql.eyeIcon,onClick:o,state:r==="password"?"open":"closed"})]})});var mi="focusScope.autoFocusOnMount",gi="focusScope.autoFocusOnUnmount",Yl={bubbles:!1,cancelable:!0},dm="FocusScope",Kl=m.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,l]=m.useState(null),u=Gt(o),d=Gt(i),h=m.useRef(null),p=Te(t,f=>l(f)),g=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(n){let f=function(T){if(g.paused||!a)return;const S=T.target;a.contains(S)?h.current=S:ct(h.current,{select:!0})},v=function(T){if(g.paused||!a)return;const S=T.relatedTarget;S!==null&&(a.contains(S)||ct(h.current,{select:!0}))},_=function(T){if(document.activeElement===document.body)for(const A of T)A.removedNodes.length>0&&ct(a)};document.addEventListener("focusin",f),document.addEventListener("focusout",v);const x=new MutationObserver(_);return a&&x.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",v),x.disconnect()}}},[n,a,g.paused]),m.useEffect(()=>{if(a){Jl.add(g);const f=document.activeElement;if(!a.contains(f)){const _=new CustomEvent(mi,Yl);a.addEventListener(mi,u),a.dispatchEvent(_),_.defaultPrevented||(fm(vm(Zl(a)),{select:!0}),document.activeElement===f&&ct(a))}return()=>{a.removeEventListener(mi,u),setTimeout(()=>{const _=new CustomEvent(gi,Yl);a.addEventListener(gi,d),a.dispatchEvent(_),_.defaultPrevented||ct(f??document.body,{select:!0}),a.removeEventListener(gi,d),Jl.remove(g)},0)}}},[a,u,d,g]);const w=m.useCallback(f=>{if(!r&&!n||g.paused)return;const v=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,_=document.activeElement;if(v&&_){const x=f.currentTarget,[T,S]=pm(x);T&&S?!f.shiftKey&&_===S?(f.preventDefault(),r&&ct(T,{select:!0})):f.shiftKey&&_===T&&(f.preventDefault(),r&&ct(S,{select:!0})):_===x&&f.preventDefault()}},[r,n,g.paused]);return c.jsx(he.div,{tabIndex:-1,...s,ref:p,onKeyDown:w})});Kl.displayName=dm;function fm(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(ct(n,{select:t}),document.activeElement!==r)return}function pm(e){const t=Zl(e),r=Xl(t,e),n=Xl(t.reverse(),e);return[r,n]}function Zl(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Xl(e,t){for(const r of e)if(!hm(r,{upTo:t}))return r}function hm(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 mm(e){return e instanceof HTMLInputElement&&"select"in e}function ct(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&mm(e)&&t&&e.select()}}var Jl=gm();function gm(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=ec(e,t),e.unshift(t)},remove(t){var r;e=ec(e,t),(r=e[0])==null||r.resume()}}}function ec(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function vm(e){return e.filter(t=>t.tagName!=="A")}var vi=0;function ym(){m.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??tc()),document.body.insertAdjacentElement("beforeend",e[1]??tc()),vi++,()=>{vi===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),vi--}},[])}function tc(){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 $n="right-scroll-bar-position",Fn="width-before-scroll-bar",bm="with-scroll-bars-hidden",wm="--removed-body-scroll-bar-size";function yi(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function _m(e,t){var r=C.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var xm=typeof window<"u"?m.useLayoutEffect:m.useEffect,rc=new WeakMap;function Cm(e,t){var r=_m(null,function(n){return e.forEach(function(o){return yi(o,n)})});return xm(function(){var n=rc.get(r);if(n){var o=new Set(n),i=new Set(e),s=r.current;o.forEach(function(a){i.has(a)||yi(a,null)}),i.forEach(function(a){o.has(a)||yi(a,s)})}rc.set(r,e)},[e]),r}function Em(e){return e}function Sm(e,t){t===void 0&&(t=Em);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(i){var s=t(i,n);return r.push(s),function(){r=r.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(n=!0;r.length;){var s=r;r=[],s.forEach(i)}r={push:function(a){return i(a)},filter:function(){return r}}},assignMedium:function(i){n=!0;var s=[];if(r.length){var a=r;r=[],a.forEach(i),s=r}var l=function(){var d=s;s=[],d.forEach(i)},u=function(){return Promise.resolve().then(l)};u(),r={push:function(d){s.push(d),u()},filter:function(d){return s=s.filter(d),r}}}};return o}function Tm(e){e===void 0&&(e={});var t=Sm(null);return t.options=De({async:!0,ssr:!1},e),t}var nc=function(e){var t=e.sideCar,r=Os(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return m.createElement(n,De({},r))};nc.isSideCarExport=!0;function Am(e,t){return e.useMedium(t),nc}var oc=Tm(),bi=function(){},Bn=m.forwardRef(function(e,t){var r=m.useRef(null),n=m.useState({onScrollCapture:bi,onWheelCapture:bi,onTouchMoveCapture:bi}),o=n[0],i=n[1],s=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,h=e.shards,p=e.sideCar,g=e.noRelative,w=e.noIsolation,f=e.inert,v=e.allowPinchZoom,_=e.as,x=_===void 0?"div":_,T=e.gapMode,S=Os(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),A=p,k=Cm([r,t]),O=De(De({},S),o);return m.createElement(m.Fragment,null,d&&m.createElement(A,{sideCar:oc,removeScrollBar:u,shards:h,noRelative:g,noIsolation:w,inert:f,setCallbacks:i,allowPinchZoom:!!v,lockRef:r,gapMode:T}),s?m.cloneElement(m.Children.only(a),De(De({},O),{ref:k})):m.createElement(x,De({},O,{className:l,ref:k}),a))});Bn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Bn.classNames={fullWidth:Fn,zeroRight:$n};var Pm=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Om(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Pm();return t&&e.setAttribute("nonce",t),e}function km(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Rm(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var jm=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Om())&&(km(t,r),Rm(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Dm=function(){var e=jm();return function(t,r){m.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},ic=function(){var e=Dm(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},Lm={left:0,top:0,right:0,gap:0},wi=function(e){return parseInt(e||"",10)||0},Im=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[wi(r),wi(n),wi(o)]},Nm=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Lm;var t=Im(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},Mm=ic(),Jt="data-scroll-locked",$m=function(e,t,r,n){var o=e.left,i=e.top,s=e.right,a=e.gap;return r===void 0&&(r="margin"),`
|
|
210
|
-
.`.concat(
|
|
234
|
+
`,an=16,If=({reverseOrder:e,position:t="top-center",toastOptions:r,gutter:n,children:o,containerStyle:i,containerClassName:s})=>{let{toasts:a,handlers:l}=cf(r);return m.createElement("div",{style:{position:"fixed",zIndex:9999,top:an,left:an,right:an,bottom:an,pointerEvents:"none",...i},className:s,onMouseEnter:l.startPause,onMouseLeave:l.endPause},a.map(u=>{let d=u.position||t,h=l.calculateOffset(u,{reverseOrder:e,gutter:n,defaultPosition:t}),p=Df(d,h);return m.createElement(jf,{id:u.id,key:u.id,onHeightUpdate:l.updateHeight,className:u.visible?Lf:"",style:p},u.type==="custom"?rn(u.message,u):o?o(u):m.createElement(Rf,{toast:u,position:d}))}))},Zs=be;const Eo=()=>({notify:C.useCallback((t,r,n)=>{r==="warning"||r==="info"?Zs(t,{icon:r==="warning"?"⚠️":"ℹ️",style:{background:"var(--platform-background-primary-color)",color:"var(--platform-text-primary-color)"}}):Zs[r](t,{style:{background:"var(--platform-background-primary-color)",color:"var(--platform-text-primary-color)"}}),n&&console.error(n)},[])});var Gt=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(){}},Et=typeof window>"u"||"Deno"in globalThis;function ce(){}function Nf(e,t){return typeof e=="function"?e(t):e}function So(e){return typeof e=="number"&&e>=0&&e!==1/0}function Xs(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ot(e,t){return typeof e=="function"?e(t):e}function Se(e,t){return typeof e=="function"?e(t):e}function Js(e,t){const{type:r="all",exact:n,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s){if(n){if(t.queryHash!==To(s,t.options))return!1}else if(!Ar(t.queryKey,s))return!1}if(r!=="all"){const l=t.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||i&&!i(t))}function ea(e,t){const{exact:r,status:n,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(r){if(St(t.options.mutationKey)!==St(i))return!1}else if(!Ar(t.options.mutationKey,i))return!1}return!(n&&t.state.status!==n||o&&!o(t))}function To(e,t){return((t==null?void 0:t.queryKeyHashFn)||St)(e)}function St(e){return JSON.stringify(e,(t,r)=>Po(r)?Object.keys(r).sort().reduce((n,o)=>(n[o]=r[o],n),{}):r)}function Ar(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>Ar(e[r],t[r])):!1}function Ao(e,t){if(e===t)return e;const r=ta(e)&&ta(t);if(r||Po(e)&&Po(t)){const n=r?e:Object.keys(e),o=n.length,i=r?t:Object.keys(t),s=i.length,a=r?[]:{};let l=0;for(let u=0;u<s;u++){const d=r?u:i[u];(!r&&n.includes(d)||r)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,l++):(a[d]=Ao(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&l++)}return o===s&&l===o?e:a}return t}function ln(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function ta(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Po(e){if(!ra(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!ra(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function ra(e){return Object.prototype.toString.call(e)==="[object Object]"}function Mf(e){return new Promise(t=>{setTimeout(t,e)})}function Oo(e,t,r){if(typeof r.structuralSharing=="function")return r.structuralSharing(e,t);if(r.structuralSharing!==!1){try{return Ao(e,t)}catch(n){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. [${r.queryHash}]: ${n}`),n}return Ao(e,t)}return t}function $f(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function Ff(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var cn=Symbol();function na(e,t){return e.queryFn===cn&&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===cn?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function oa(e,t){return typeof e=="function"?e(...t):!!e}var Bf=(du=class extends Gt{constructor(){super();L(this,Rt);L(this,ut);L(this,or);R(this,or,t=>{if(!Et&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){b(this,ut)||this.setEventListener(b(this,or))}onUnsubscribe(){var t;this.hasListeners()||((t=b(this,ut))==null||t.call(this),R(this,ut,void 0))}setEventListener(t){var r;R(this,or,t),(r=b(this,ut))==null||r.call(this),R(this,ut,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){b(this,Rt)!==t&&(R(this,Rt,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof b(this,Rt)=="boolean"?b(this,Rt):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Rt=new WeakMap,ut=new WeakMap,or=new WeakMap,du),ko=new Bf,Uf=(fu=class extends Gt{constructor(){super();L(this,ir,!0);L(this,dt);L(this,sr);R(this,sr,t=>{if(!Et&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){b(this,dt)||this.setEventListener(b(this,sr))}onUnsubscribe(){var t;this.hasListeners()||((t=b(this,dt))==null||t.call(this),R(this,dt,void 0))}setEventListener(t){var r;R(this,sr,t),(r=b(this,dt))==null||r.call(this),R(this,dt,t(this.setOnline.bind(this)))}setOnline(t){b(this,ir)!==t&&(R(this,ir,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return b(this,ir)}},ir=new WeakMap,dt=new WeakMap,sr=new WeakMap,fu),un=new Uf;function Ro(){let e,t;const r=new Promise((o,i)=>{e=o,t=i});r.status="pending",r.catch(()=>{});function n(o){Object.assign(r,o),delete r.resolve,delete r.reject}return r.resolve=o=>{n({status:"fulfilled",value:o}),e(o)},r.reject=o=>{n({status:"rejected",reason:o}),t(o)},r}function zf(e){return Math.min(1e3*2**e,3e4)}function ia(e){return(e??"online")==="online"?un.isOnline():!0}var sa=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function jo(e){return e instanceof sa}function aa(e){let t=!1,r=0,n=!1,o;const i=Ro(),s=f=>{var v;n||(p(new sa(f)),(v=e.abort)==null||v.call(e))},a=()=>{t=!0},l=()=>{t=!1},u=()=>ko.isFocused()&&(e.networkMode==="always"||un.isOnline())&&e.canRun(),d=()=>ia(e.networkMode)&&e.canRun(),h=f=>{var v;n||(n=!0,(v=e.onSuccess)==null||v.call(e,f),o==null||o(),i.resolve(f))},p=f=>{var v;n||(n=!0,(v=e.onError)==null||v.call(e,f),o==null||o(),i.reject(f))},g=()=>new Promise(f=>{var v;o=_=>{(n||u())&&f(_)},(v=e.onPause)==null||v.call(e)}).then(()=>{var f;o=void 0,n||(f=e.onContinue)==null||f.call(e)}),w=()=>{if(n)return;let f;const v=r===0?e.initialPromise:void 0;try{f=v??e.fn()}catch(_){f=Promise.reject(_)}Promise.resolve(f).then(h).catch(_=>{var k;if(n)return;const x=e.retry??(Et?0:3),T=e.retryDelay??zf,S=typeof T=="function"?T(r,_):T,A=x===!0||typeof x=="number"&&r<x||typeof x=="function"&&x(r,_);if(t||!A){p(_);return}r++,(k=e.onFail)==null||k.call(e,r,_),Mf(S).then(()=>u()?void 0:g()).then(()=>{t?p(_):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 Hf=e=>setTimeout(e,0);function Wf(){let e=[],t=0,r=a=>{a()},n=a=>{a()},o=Hf;const i=a=>{t?e.push(a):o(()=>{r(a)})},s=()=>{const a=e;e=[],a.length&&o(()=>{n(()=>{a.forEach(l=>{r(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=>{r=a},setBatchNotifyFunction:a=>{n=a},setScheduler:a=>{o=a}}}var oe=Wf(),la=(pu=class{constructor(){L(this,jt)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),So(this.gcTime)&&R(this,jt,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Et?1/0:5*60*1e3))}clearGcTimeout(){b(this,jt)&&(clearTimeout(b(this,jt)),R(this,jt,void 0))}},jt=new WeakMap,pu),Vf=(hu=class extends la{constructor(t){super();L(this,Re);L(this,ar);L(this,lr);L(this,Ce);L(this,Dt);L(this,le);L(this,$r);L(this,Lt);R(this,Lt,!1),R(this,$r,t.defaultOptions),this.setOptions(t.options),this.observers=[],R(this,Dt,t.client),R(this,Ce,b(this,Dt).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,R(this,ar,Gf(this.options)),this.state=t.state??b(this,ar),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=b(this,le))==null?void 0:t.promise}setOptions(t){this.options={...b(this,$r),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&b(this,Ce).remove(this)}setData(t,r){const n=Oo(this.state.data,t,this.options);return F(this,Re,Je).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){F(this,Re,Je).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,o;const r=(n=b(this,le))==null?void 0:n.promise;return(o=b(this,le))==null||o.cancel(t),r?r.then(ce).catch(ce):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(b(this,ar))}isActive(){return this.observers.some(t=>Se(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===cn||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>ot(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:!Xs(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=b(this,le))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=b(this,le))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),b(this,Ce).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(b(this,le)&&(b(this,Lt)?b(this,le).cancel({revert:!0}):b(this,le).cancelRetry()),this.scheduleGc()),b(this,Ce).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||F(this,Re,Je).call(this,{type:"invalidate"})}fetch(t,r){var u,d,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(b(this,le))return b(this,le).continueRetry(),b(this,le).promise}if(t&&this.setOptions(t),!this.options.queryFn){const p=this.observers.find(g=>g.options.queryFn);p&&this.setOptions(p.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 n=new AbortController,o=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(R(this,Lt,!0),n.signal)})},i=()=>{const p=na(this.options,r),w=(()=>{const f={client:b(this,Dt),queryKey:this.queryKey,meta:this.meta};return o(f),f})();return R(this,Lt,!1),this.options.persister?this.options.persister(p,w,this):p(w)},a=(()=>{const p={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:b(this,Dt),state:this.state,fetchFn:i};return o(p),p})();(u=this.options.behavior)==null||u.onFetch(a,this),R(this,lr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=a.fetchOptions)==null?void 0:d.meta))&&F(this,Re,Je).call(this,{type:"fetch",meta:(h=a.fetchOptions)==null?void 0:h.meta});const l=p=>{var g,w,f,v;jo(p)&&p.silent||F(this,Re,Je).call(this,{type:"error",error:p}),jo(p)||((w=(g=b(this,Ce).config).onError)==null||w.call(g,p,this),(v=(f=b(this,Ce).config).onSettled)==null||v.call(f,this.state.data,p,this)),this.scheduleGc()};return R(this,le,aa({initialPromise:r==null?void 0:r.initialPromise,fn:a.fetchFn,abort:n.abort.bind(n),onSuccess:p=>{var g,w,f,v;if(p===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(p)}catch(_){l(_);return}(w=(g=b(this,Ce).config).onSuccess)==null||w.call(g,p,this),(v=(f=b(this,Ce).config).onSettled)==null||v.call(f,p,this.state.error,this),this.scheduleGc()},onError:l,onFail:(p,g)=>{F(this,Re,Je).call(this,{type:"failed",failureCount:p,error:g})},onPause:()=>{F(this,Re,Je).call(this,{type:"pause"})},onContinue:()=>{F(this,Re,Je).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),b(this,le).start()}},ar=new WeakMap,lr=new WeakMap,Ce=new WeakMap,Dt=new WeakMap,le=new WeakMap,$r=new WeakMap,Lt=new WeakMap,Re=new WeakSet,Je=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...ca(n.data,this.options),fetchMeta:t.meta??null};case"success":return{...n,data:t.data,dataUpdateCount:n.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 jo(o)&&o.revert&&b(this,lr)?{...b(this,lr),fetchStatus:"idle"}:{...n,error:o,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),oe.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),b(this,Ce).notify({query:this,type:"updated",action:t})})},hu);function ca(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ia(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Gf(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var qf=(mu=class extends Gt{constructor(t={}){super();L(this,Be);this.config=t,R(this,Be,new Map)}build(t,r,n){const o=r.queryKey,i=r.queryHash??To(o,r);let s=this.get(i);return s||(s=new Vf({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){b(this,Be).has(t.queryHash)||(b(this,Be).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=b(this,Be).get(t.queryHash);r&&(t.destroy(),r===t&&b(this,Be).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){oe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return b(this,Be).get(t)}getAll(){return[...b(this,Be).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>Js(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>Js(t,n)):r}notify(t){oe.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){oe.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){oe.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Be=new WeakMap,mu),Qf=(gu=class extends la{constructor(t){super();L(this,ze);L(this,Ue);L(this,ue);L(this,It);this.mutationId=t.mutationId,R(this,ue,t.mutationCache),R(this,Ue,[]),this.state=t.state||ua(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){b(this,Ue).includes(t)||(b(this,Ue).push(t),this.clearGcTimeout(),b(this,ue).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){R(this,Ue,b(this,Ue).filter(r=>r!==t)),this.scheduleGc(),b(this,ue).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){b(this,Ue).length||(this.state.status==="pending"?this.scheduleGc():b(this,ue).remove(this))}continue(){var t;return((t=b(this,It))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,s,a,l,u,d,h,p,g,w,f,v,_,x,T,S,A,k,O,N;const r=()=>{F(this,ze,wt).call(this,{type:"continue"})};R(this,It,aa({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(M,$)=>{F(this,ze,wt).call(this,{type:"failed",failureCount:M,error:$})},onPause:()=>{F(this,ze,wt).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>b(this,ue).canRun(this)}));const n=this.state.status==="pending",o=!b(this,It).canStart();try{if(n)r();else{F(this,ze,wt).call(this,{type:"pending",variables:t,isPaused:o}),await((s=(i=b(this,ue).config).onMutate)==null?void 0:s.call(i,t,this));const $=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));$!==this.state.context&&F(this,ze,wt).call(this,{type:"pending",context:$,variables:t,isPaused:o})}const M=await b(this,It).start();return await((d=(u=b(this,ue).config).onSuccess)==null?void 0:d.call(u,M,t,this.state.context,this)),await((p=(h=this.options).onSuccess)==null?void 0:p.call(h,M,t,this.state.context)),await((w=(g=b(this,ue).config).onSettled)==null?void 0:w.call(g,M,null,this.state.variables,this.state.context,this)),await((v=(f=this.options).onSettled)==null?void 0:v.call(f,M,null,t,this.state.context)),F(this,ze,wt).call(this,{type:"success",data:M}),M}catch(M){try{throw await((x=(_=b(this,ue).config).onError)==null?void 0:x.call(_,M,t,this.state.context,this)),await((S=(T=this.options).onError)==null?void 0:S.call(T,M,t,this.state.context)),await((k=(A=b(this,ue).config).onSettled)==null?void 0:k.call(A,void 0,M,this.state.variables,this.state.context,this)),await((N=(O=this.options).onSettled)==null?void 0:N.call(O,void 0,M,t,this.state.context)),M}finally{F(this,ze,wt).call(this,{type:"error",error:M})}}finally{b(this,ue).runNext(this)}}},Ue=new WeakMap,ue=new WeakMap,It=new WeakMap,ze=new WeakSet,wt=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,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{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),oe.batch(()=>{b(this,Ue).forEach(n=>{n.onMutationUpdate(t)}),b(this,ue).notify({mutation:this,type:"updated",action:t})})},gu);function ua(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Yf=(vu=class extends Gt{constructor(t={}){super();L(this,Ye);L(this,je);L(this,Fr);this.config=t,R(this,Ye,new Set),R(this,je,new Map),R(this,Fr,0)}build(t,r,n){const o=new Qf({mutationCache:this,mutationId:++no(this,Fr)._,options:t.defaultMutationOptions(r),state:n});return this.add(o),o}add(t){b(this,Ye).add(t);const r=dn(t);if(typeof r=="string"){const n=b(this,je).get(r);n?n.push(t):b(this,je).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(b(this,Ye).delete(t)){const r=dn(t);if(typeof r=="string"){const n=b(this,je).get(r);if(n)if(n.length>1){const o=n.indexOf(t);o!==-1&&n.splice(o,1)}else n[0]===t&&b(this,je).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=dn(t);if(typeof r=="string"){const n=b(this,je).get(r),o=n==null?void 0:n.find(i=>i.state.status==="pending");return!o||o===t}else return!0}runNext(t){var n;const r=dn(t);if(typeof r=="string"){const o=(n=b(this,je).get(r))==null?void 0:n.find(i=>i!==t&&i.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){oe.batch(()=>{b(this,Ye).forEach(t=>{this.notify({type:"removed",mutation:t})}),b(this,Ye).clear(),b(this,je).clear()})}getAll(){return Array.from(b(this,Ye))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>ea(r,n))}findAll(t={}){return this.getAll().filter(r=>ea(t,r))}notify(t){oe.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return oe.batch(()=>Promise.all(t.map(r=>r.continue().catch(ce))))}},Ye=new WeakMap,je=new WeakMap,Fr=new WeakMap,vu);function dn(e){var t;return(t=e.options.scope)==null?void 0:t.id}function da(e){return{onFetch:(t,r)=>{var d,h,p,g,w;const n=t.options,o=(p=(h=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:h.fetchMore)==null?void 0:p.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=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(t.signal.aborted?f=!0:t.signal.addEventListener("abort",()=>{f=!0}),t.signal)})},_=na(t.options,t.fetchOptions),x=async(T,S,A)=>{if(f)return Promise.reject();if(S==null&&T.pages.length)return Promise.resolve(T);const O=(()=>{const Y={client:t.client,queryKey:t.queryKey,pageParam:S,direction:A?"backward":"forward",meta:t.options.meta};return v(Y),Y})(),N=await _(O),{maxPages:M}=t.options,$=A?Ff:$f;return{pages:$(T.pages,N,M),pageParams:$(T.pageParams,S,M)}};if(o&&i.length){const T=o==="backward",S=T?Kf:fa,A={pages:i,pageParams:s},k=S(n,A);a=await x(A,k,T)}else{const T=e??i.length;do{const S=l===0?s[0]??n.initialPageParam:fa(n,a);if(l>0&&S==null)break;a=await x(a,S),l++}while(l<T)}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},r)}:t.fetchFn=u}}}function fa(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function Kf(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}var Zf=(yu=class{constructor(e={}){L(this,X);L(this,ft);L(this,pt);L(this,cr);L(this,ur);L(this,ht);L(this,dr);L(this,fr);R(this,X,e.queryCache||new qf),R(this,ft,e.mutationCache||new Yf),R(this,pt,e.defaultOptions||{}),R(this,cr,new Map),R(this,ur,new Map),R(this,ht,0)}mount(){no(this,ht)._++,b(this,ht)===1&&(R(this,dr,ko.subscribe(async e=>{e&&(await this.resumePausedMutations(),b(this,X).onFocus())})),R(this,fr,un.subscribe(async e=>{e&&(await this.resumePausedMutations(),b(this,X).onOnline())})))}unmount(){var e,t;no(this,ht)._--,b(this,ht)===0&&((e=b(this,dr))==null||e.call(this),R(this,dr,void 0),(t=b(this,fr))==null||t.call(this),R(this,fr,void 0))}isFetching(e){return b(this,X).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return b(this,ft).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=b(this,X).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=b(this,X).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(ot(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return b(this,X).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),o=b(this,X).get(n.queryHash),i=o==null?void 0:o.state.data,s=Nf(t,i);if(s!==void 0)return b(this,X).build(this,n).setData(s,{...r,manual:!0})}setQueriesData(e,t,r){return oe.batch(()=>b(this,X).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=b(this,X).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=b(this,X);oe.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=b(this,X);return oe.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=oe.batch(()=>b(this,X).findAll(e).map(o=>o.cancel(r)));return Promise.all(n).then(ce).catch(ce)}invalidateQueries(e,t={}){return oe.batch(()=>(b(this,X).findAll(e).forEach(r=>{r.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 r={...t,cancelRefetch:t.cancelRefetch??!0},n=oe.batch(()=>b(this,X).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,r);return r.throwOnError||(i=i.catch(ce)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(n).then(ce)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=b(this,X).build(this,t);return r.isStaleByTime(ot(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ce).catch(ce)}fetchInfiniteQuery(e){return e.behavior=da(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ce).catch(ce)}ensureInfiniteQueryData(e){return e.behavior=da(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return un.isOnline()?b(this,ft).resumePausedMutations():Promise.resolve()}getQueryCache(){return b(this,X)}getMutationCache(){return b(this,ft)}getDefaultOptions(){return b(this,pt)}setDefaultOptions(e){R(this,pt,e)}setQueryDefaults(e,t){b(this,cr).set(St(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...b(this,cr).values()],r={};return t.forEach(n=>{Ar(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){b(this,ur).set(St(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...b(this,ur).values()],r={};return t.forEach(n=>{Ar(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...b(this,pt).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=To(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===cn&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...b(this,pt).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){b(this,X).clear(),b(this,ft).clear()}},X=new WeakMap,ft=new WeakMap,pt=new WeakMap,cr=new WeakMap,ur=new WeakMap,ht=new WeakMap,dr=new WeakMap,fr=new WeakMap,yu),Xf=(bu=class extends Gt{constructor(t,r){super();L(this,V);L(this,ge);L(this,z);L(this,Br);L(this,de);L(this,Nt);L(this,pr);L(this,mt);L(this,gt);L(this,Ur);L(this,hr);L(this,mr);L(this,Mt);L(this,$t);L(this,vt);L(this,gr,new Set);this.options=r,R(this,ge,t),R(this,gt,null),R(this,mt,Ro()),this.options.experimental_prefetchInRender||b(this,mt).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(b(this,z).addObserver(this),pa(b(this,z),this.options)?F(this,V,Wr).call(this):this.updateResult(),F(this,V,Qi).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Do(b(this,z),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Do(b(this,z),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,F(this,V,Yi).call(this),F(this,V,Ki).call(this),b(this,z).removeObserver(this)}setOptions(t){const r=this.options,n=b(this,z);if(this.options=b(this,ge).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Se(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,V,Zi).call(this),b(this,z).setOptions(this.options),r._defaulted&&!ln(this.options,r)&&b(this,ge).getQueryCache().notify({type:"observerOptionsUpdated",query:b(this,z),observer:this});const o=this.hasListeners();o&&ha(b(this,z),n,this.options,r)&&F(this,V,Wr).call(this),this.updateResult(),o&&(b(this,z)!==n||Se(this.options.enabled,b(this,z))!==Se(r.enabled,b(this,z))||ot(this.options.staleTime,b(this,z))!==ot(r.staleTime,b(this,z)))&&F(this,V,Vi).call(this);const i=F(this,V,Gi).call(this);o&&(b(this,z)!==n||Se(this.options.enabled,b(this,z))!==Se(r.enabled,b(this,z))||i!==b(this,vt))&&F(this,V,qi).call(this,i)}getOptimisticResult(t){const r=b(this,ge).getQueryCache().build(b(this,ge),t),n=this.createResult(r,t);return ep(this,n)&&(R(this,de,n),R(this,pr,this.options),R(this,Nt,b(this,z).state)),n}getCurrentResult(){return b(this,de)}trackResult(t,r){return new Proxy(t,{get:(n,o)=>(this.trackProp(o),r==null||r(o),Reflect.get(n,o))})}trackProp(t){b(this,gr).add(t)}getCurrentQuery(){return b(this,z)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=b(this,ge).defaultQueryOptions(t),n=b(this,ge).getQueryCache().build(b(this,ge),r);return n.fetch().then(()=>this.createResult(n,r))}fetch(t){return F(this,V,Wr).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),b(this,de)))}createResult(t,r){var M;const n=b(this,z),o=this.options,i=b(this,de),s=b(this,Nt),a=b(this,pr),u=t!==n?t.state:b(this,Br),{state:d}=t;let h={...d},p=!1,g;if(r._optimisticResults){const $=this.hasListeners(),Y=!$&&pa(t,r),K=$&&ha(t,n,r,o);(Y||K)&&(h={...h,...ca(d.data,t.options)}),r._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:w,errorUpdatedAt:f,status:v}=h;g=h.data;let _=!1;if(r.placeholderData!==void 0&&g===void 0&&v==="pending"){let $;i!=null&&i.isPlaceholderData&&r.placeholderData===(a==null?void 0:a.placeholderData)?($=i.data,_=!0):$=typeof r.placeholderData=="function"?r.placeholderData((M=b(this,mr))==null?void 0:M.state.data,b(this,mr)):r.placeholderData,$!==void 0&&(v="success",g=Oo(i==null?void 0:i.data,$,r),p=!0)}if(r.select&&g!==void 0&&!_)if(i&&g===(s==null?void 0:s.data)&&r.select===b(this,Ur))g=b(this,hr);else try{R(this,Ur,r.select),g=r.select(g),g=Oo(i==null?void 0:i.data,g,r),R(this,hr,g),R(this,gt,null)}catch($){R(this,gt,$)}b(this,gt)&&(w=b(this,gt),g=b(this,hr),f=Date.now(),v="error");const x=h.fetchStatus==="fetching",T=v==="pending",S=v==="error",A=T&&x,k=g!==void 0,N={status:v,fetchStatus:h.fetchStatus,isPending:T,isSuccess:v==="success",isError:S,isInitialLoading:A,isLoading:A,data:g,dataUpdatedAt:h.dataUpdatedAt,error:w,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:x,isRefetching:x&&!T,isLoadingError:S&&!k,isPaused:h.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:S&&k,isStale:Lo(t,r),refetch:this.refetch,promise:b(this,mt)};if(this.options.experimental_prefetchInRender){const $=W=>{N.status==="error"?W.reject(N.error):N.data!==void 0&&W.resolve(N.data)},Y=()=>{const W=R(this,mt,N.promise=Ro());$(W)},K=b(this,mt);switch(K.status){case"pending":t.queryHash===n.queryHash&&$(K);break;case"fulfilled":(N.status==="error"||N.data!==K.value)&&Y();break;case"rejected":(N.status!=="error"||N.error!==K.reason)&&Y();break}}return N}updateResult(){const t=b(this,de),r=this.createResult(b(this,z),this.options);if(R(this,Nt,b(this,z).state),R(this,pr,this.options),b(this,Nt).data!==void 0&&R(this,mr,b(this,z)),ln(r,t))return;R(this,de,r);const n=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,i=typeof o=="function"?o():o;if(i==="all"||!i&&!b(this,gr).size)return!0;const s=new Set(i??b(this,gr));return this.options.throwOnError&&s.add("error"),Object.keys(b(this,de)).some(a=>{const l=a;return b(this,de)[l]!==t[l]&&s.has(l)})};F(this,V,Lu).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&F(this,V,Qi).call(this)}},ge=new WeakMap,z=new WeakMap,Br=new WeakMap,de=new WeakMap,Nt=new WeakMap,pr=new WeakMap,mt=new WeakMap,gt=new WeakMap,Ur=new WeakMap,hr=new WeakMap,mr=new WeakMap,Mt=new WeakMap,$t=new WeakMap,vt=new WeakMap,gr=new WeakMap,V=new WeakSet,Wr=function(t){F(this,V,Zi).call(this);let r=b(this,z).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(ce)),r},Vi=function(){F(this,V,Yi).call(this);const t=ot(this.options.staleTime,b(this,z));if(Et||b(this,de).isStale||!So(t))return;const n=Xs(b(this,de).dataUpdatedAt,t)+1;R(this,Mt,setTimeout(()=>{b(this,de).isStale||this.updateResult()},n))},Gi=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(b(this,z)):this.options.refetchInterval)??!1},qi=function(t){F(this,V,Ki).call(this),R(this,vt,t),!(Et||Se(this.options.enabled,b(this,z))===!1||!So(b(this,vt))||b(this,vt)===0)&&R(this,$t,setInterval(()=>{(this.options.refetchIntervalInBackground||ko.isFocused())&&F(this,V,Wr).call(this)},b(this,vt)))},Qi=function(){F(this,V,Vi).call(this),F(this,V,qi).call(this,F(this,V,Gi).call(this))},Yi=function(){b(this,Mt)&&(clearTimeout(b(this,Mt)),R(this,Mt,void 0))},Ki=function(){b(this,$t)&&(clearInterval(b(this,$t)),R(this,$t,void 0))},Zi=function(){const t=b(this,ge).getQueryCache().build(b(this,ge),this.options);if(t===b(this,z))return;const r=b(this,z);R(this,z,t),R(this,Br,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},Lu=function(t){oe.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(b(this,de))}),b(this,ge).getQueryCache().notify({query:b(this,z),type:"observerResultsUpdated"})})},bu);function Jf(e,t){return Se(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function pa(e,t){return Jf(e,t)||e.state.data!==void 0&&Do(e,t,t.refetchOnMount)}function Do(e,t,r){if(Se(t.enabled,e)!==!1&&ot(t.staleTime,e)!=="static"){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&Lo(e,t)}return!1}function ha(e,t,r,n){return(e!==t||Se(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&Lo(e,r)}function Lo(e,t){return Se(t.enabled,e)!==!1&&e.isStaleByTime(ot(t.staleTime,e))}function ep(e,t){return!ln(e.getCurrentResult(),t)}var tp=(wu=class extends Gt{constructor(r,n){super();L(this,Ze);L(this,yt);L(this,bt);L(this,ve);L(this,Ke);R(this,yt,r),this.setOptions(n),this.bindMethods(),F(this,Ze,oo).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var o;const n=this.options;this.options=b(this,yt).defaultMutationOptions(r),ln(this.options,n)||b(this,yt).getMutationCache().notify({type:"observerOptionsUpdated",mutation:b(this,ve),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&St(n.mutationKey)!==St(this.options.mutationKey)?this.reset():((o=b(this,ve))==null?void 0:o.state.status)==="pending"&&b(this,ve).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=b(this,ve))==null||r.removeObserver(this)}onMutationUpdate(r){F(this,Ze,oo).call(this),F(this,Ze,Xi).call(this,r)}getCurrentResult(){return b(this,bt)}reset(){var r;(r=b(this,ve))==null||r.removeObserver(this),R(this,ve,void 0),F(this,Ze,oo).call(this),F(this,Ze,Xi).call(this)}mutate(r,n){var o;return R(this,Ke,n),(o=b(this,ve))==null||o.removeObserver(this),R(this,ve,b(this,yt).getMutationCache().build(b(this,yt),this.options)),b(this,ve).addObserver(this),b(this,ve).execute(r)}},yt=new WeakMap,bt=new WeakMap,ve=new WeakMap,Ke=new WeakMap,Ze=new WeakSet,oo=function(){var n;const r=((n=b(this,ve))==null?void 0:n.state)??ua();R(this,bt,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},Xi=function(r){oe.batch(()=>{var n,o,i,s,a,l,u,d;if(b(this,Ke)&&this.hasListeners()){const h=b(this,bt).variables,p=b(this,bt).context;(r==null?void 0:r.type)==="success"?((o=(n=b(this,Ke)).onSuccess)==null||o.call(n,r.data,h,p),(s=(i=b(this,Ke)).onSettled)==null||s.call(i,r.data,null,h,p)):(r==null?void 0:r.type)==="error"&&((l=(a=b(this,Ke)).onError)==null||l.call(a,r.error,h,p),(d=(u=b(this,Ke)).onSettled)==null||d.call(u,void 0,r.error,h,p))}this.listeners.forEach(h=>{h(b(this,bt))})})},wu),ma=m.createContext(void 0),Io=e=>{const t=m.useContext(ma);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},rp=({client:e,children:t})=>(m.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),c.jsx(ma.Provider,{value:e,children:t})),ga=m.createContext(!1),np=()=>m.useContext(ga);ga.Provider;function op(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var ip=m.createContext(op()),sp=()=>m.useContext(ip),ap=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},lp=e=>{m.useEffect(()=>{e.clearReset()},[e])},cp=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(o&&e.data===void 0||oa(r,[e.error,n])),up=e=>{if(e.suspense){const t=n=>n==="static"?n:Math.max(n??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...n)=>t(r(...n)):t(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},dp=(e,t)=>e.isLoading&&e.isFetching&&!t,fp=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,va=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function pp(e,t,r){var h,p,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 n=np(),o=sp(),i=Io(),s=i.defaultQueryOptions(e);(p=(h=i.getDefaultOptions().queries)==null?void 0:h._experimental_beforeQuery)==null||p.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=n?"isRestoring":"optimistic",up(s),ap(s,o),lp(o);const a=!i.getQueryCache().get(s.queryHash),[l]=m.useState(()=>new t(i,s)),u=l.getOptimisticResult(s),d=!n&&e.subscribed!==!1;if(m.useSyncExternalStore(m.useCallback(v=>{const _=d?l.subscribe(oe.batchCalls(v)):ce;return l.updateResult(),_},[l,d]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),m.useEffect(()=>{l.setOptions(s)},[s,l]),fp(s,u))throw va(s,l,o);if(cp({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&&!Et&&dp(u,n)){const v=a?va(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 ya(e,t){return pp(e,Xf)}function fn(e,t){const r=Io(),[n]=m.useState(()=>new tp(r,e));m.useEffect(()=>{n.setOptions(e)},[n,e]);const o=m.useSyncExternalStore(m.useCallback(s=>n.subscribe(oe.batchCalls(s)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),i=m.useCallback((s,a)=>{n.mutate(s,a).catch(ce)},[n]);if(o.error&&oa(n.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}const pn={STALE_TIME:1e3*60*5,GC_TIME:1e3*60*10,RETRY_COUNT:1,RETRY_DELAY:1e3},ba={refetchOnWindowFocus:!1,refetchOnReconnect:!1,refetchOnMount:!1,staleTime:pn.STALE_TIME,gcTime:pn.GC_TIME,retry:pn.RETRY_COUNT,retryDelay:pn.RETRY_DELAY,enable:!0},hn=e=>e instanceof Error?e.message:String(e),wa=(e,t,r)=>{const n=Io(),{notify:o}=Eo(),{createFn:i,readFn:s,readByIdFn:a,updateFn:l,deleteFn:u,partialUpdateFn:d}=r,h=()=>{n.invalidateQueries({queryKey:[e]})},p=(S,A,k,O)=>o(O!=null&&O.overrideSuccessMessage?O==null?void 0:O.overrideSuccessMessage(S,A):k,"success"),g=(S,A,k,O)=>o(O!=null&&O.overrideErrorMessage?O==null?void 0:O.overrideErrorMessage(S,A):k,"error");return{useCreate:S=>fn({mutationFn:A=>i(A),onSuccess:A=>{h(),p(t,A,`${t} created successfully`,S)},onError:A=>{g(t,A,`Error creating ${t}: ${hn(A)}`,S)}}),useReadQuery:S=>ya({queryKey:[e],queryFn:s,...ba,...S}),useReadByIdQuery:(S,A)=>ya({queryKey:[e,S],queryFn:()=>a(S),...ba,enabled:!!S,...A}),useUpdate:S=>fn({mutationFn:({id:A,data:k})=>l(A,k),onSuccess:A=>{h(),p(t,A,`${t} updated successfully`,S)},onError:A=>{g(t,A,`Error updating ${t}: ${hn(A)}`,S)}}),usePartialUpdate:S=>d&&fn({mutationFn:({id:A,data:k})=>d(A,k),onSuccess:A=>{h(),p(t,A,`${t} updated successfully`,S)},onError:A=>{g(t,A,`Error updating ${t}: ${hn(A)}`,S)}}),useDelete:S=>fn({mutationFn:A=>u(A),onSuccess:()=>{h(),p(t,null,`${t} deleted successfully`,S)},onError:A=>{g(t,A,`Error deleting ${t}: ${hn(A)}`,S)}}),invalidateQueries:h}},hp=(e,t)=>wa(e,t,{createFn:r=>fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}).then(n=>n.json()),deleteFn:r=>fetch(`${e}/${r}`,{method:"DELETE"}).then(n=>{if(!n.ok)throw new Error(`Error deleting: ${n.status}`)}),readByIdFn:r=>fetch(`${e}/${r}`).then(n=>n.json()),readFn:()=>fetch(e).then(r=>r.json()),updateFn:(r,n)=>fetch(`${e}/${r}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)}).then(o=>o.json()),partialUpdateFn:(r,n)=>fetch(`${e}/${r}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)}).then(o=>o.json())}),mp={SINGLE_TENANT:"single-tenant"},gp={COOKIE:"cookie"},No="tenant",_a="tenant",xa="tenant",vp=mp.SINGLE_TENANT,yp=gp.COOKIE,bp={mode:vp,clientSideMode:yp,tenantIDPProvisioningStrategy:"none"};class wp{setTenant(t,r){const n=new URL(window.location.href);n.searchParams.set(_a,t.name),window.location.href=n.toString()}getCurrentTenantName(){const t=new URL(window.location.href);return new URLSearchParams(t.search).get(_a)}}class _p{setTenant(t,r){sessionStorage.setItem(xa,t.name),window.location.reload()}getCurrentTenantName(){return sessionStorage.getItem(xa)}}/*! js-cookie v3.0.5 | MIT */function mn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var xp={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 Mo(e,t){function r(o,i,s){if(!(typeof document>"u")){s=mn({},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 n(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:r,get:n,remove:function(o,i){r(o,"",mn({},i,{expires:-1}))},withAttributes:function(o){return Mo(this.converter,mn({},this.attributes,o))},withConverter:function(o){return Mo(mn({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var $o=Mo(xp,{path:"/"});class Cp{setTenant(t,r){t?$o.set(No,t.name):$o.remove(No),window.location.reload()}getCurrentTenantName(){return $o.get(No)}}class Ep{extractSubdomain(t){if(t==="localhost"||/^\d+\.\d+\.\d+\.\d+$/.test(t))return"";const r=t.split(".");if(r.length<2||r.length===2||r[0]==="www"&&r.length===3)return"";const o=(r[0]==="www"?r.slice(1):r).slice(0,-2);return o.length>0?o.join("."):""}getBaseDomain(t){const r=t.split(".");return t==="localhost"||/^\d+\.\d+\.\d+\.\d+$/.test(t)||r.length<=2?t:r.slice(-2).join(".")}setTenant(t,r){var u;const n=(u=r.urlPatterns)==null?void 0:u.find(d=>d.patternType==="subdomain"&&d.tenantId===t.id&&d.isActive);if(!n)throw new Error(`No active subdomain pattern found for tenant '${t.name}'`);const o=new URL(window.location.href),i=n.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 Ca={queryParams:new wp,sessionStorage:new _p,cookie:new Cp,subdomain:new Ep},Sp=e=>{const t=Ca[e.clientSideMode];if(!t)throw new Error(`Client side tenant mode '${e.clientSideMode}' is not supported ${JSON.stringify({strategies:Ca},null,2)}`);return t},Tp=(e,t,r)=>{const n=t.find(i=>i.name===r);if(!n)throw Error("No tenant permission");return Sp(e).setTenant(n,e),n},Ap=()=>{const[e,t]=Gr(),{tenants:r=[],currentTenant:n,tenantConfig:o=bp}=e,i=C.useCallback(s=>{const a=Tp(o,r,s);t({...e,currentTenant:a})},[o,e]);return{tenants:r,currentTenant:n,tenantConfig:o,selectTenant:i}};function Pp(e){if(!e.ok)throw console.error(e),new Error(e.statusText)}async function gn(e,t,r,n){const o=await e(`/user-states/${encodeURIComponent(t)}/${encodeURIComponent(r)}`,n);return Pp(o),o}class vn{static async get(t,r,n){const i=await gn(t,r,n,{method:"GET",headers:{"Content-Type":"application/json"}});return i.status===204?null:await i.json()}static async create(t,r,n,o){const i={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({value:o})};return await(await gn(t,r,n,i)).json()}static async update(t,r,n,o){const i={method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({value:o})};return await(await gn(t,r,n,i)).json()}static async delete(t,r,n){return await gn(t,r,n,{method:"DELETE",headers:{"Content-Type":"application/json"}}),null}}const Op=e=>{const t=po("@bluealba/pae-nestjs-gateway-service"),r=Ts();if(!r)throw new Error("You must call the useUserState hook within a PAE application.");const[n,o]=C.useState(null),[i,s]=C.useState(!1),[a,l]=C.useState(!1),[u,d]=C.useState(null),h=(x,T)=>C.useCallback(async({newValue:S,shouldThrowError:A}={})=>{try{l(!0),d(null);const k=await x(t,r,e,S);return o(k),k?k.value:null}catch(k){if(d(k==null?void 0:k.message),console.error(`Failed to ${T} ${e}:`,k),A)throw k;return null}finally{l(!1)}},[t,r,e]),p=h(vn.get,"fetch"),g=h(vn.create,"create"),w=h(vn.update,"update"),f=h(vn.delete,"delete"),v=C.useCallback(async()=>{try{await p()}finally{s(!0)}},[p]);C.useEffect(()=>{v()},[v]);const _=C.useCallback(async(x,T=!1)=>n==null?await g({newValue:x,shouldThrowError:T}):await w({newValue:x,shouldThrowError:T}),[n,g,w]);return{value:n?n.value:null,hasFetched:i,loading:a,error:u,setValue:_,createValue:g,updateValue:w,deleteValue:f}},Ea="__PAE_EXTENSION_POINT_REACT_CONTENT_EMPTY__",kp=({module:e,point:t,children:r})=>(ks(e,t,r??Ea),null),Sa=({name:e,children:t,...r})=>{const n=Os(e);if(n===Ea)return null;if(!n)return c.jsx(c.Fragment,{children:t??null});if(Rp(n)){const o=n;return c.jsx(o,{...r})}else return n},Rp=e=>typeof e=="function",jp=(e,t)=>{const r=n=>(t=t||e.displayName||e.name||"?",c.jsx(Sa,{name:t,...n,children:c.jsx(e,{...n})}));return r.displayName=`extensionPoint(${t})`,r},Ta="single-spa:app-change";function Dp(){const[e,t]=C.useState(Aa());return C.useEffect(()=>{const r=()=>{t(Aa())};return window.addEventListener(Ta,r),()=>{window.removeEventListener(Ta,r)}},[]),e}function Aa(){return ne.getAppNames().reduce((t,r)=>(ne.getAppStatus(r)?t[r]=ne.getAppStatus(r):t[r]="NOT_LOADED",t),{})}function Lp(e){const r=Dp()[e]??"LOAD_ERROR";return{statusName:r,isLoading:r==="LOADING_SOURCE_CODE"||r==="BOOTSTRAPPING"||r==="MOUNTING",isMounted:r==="MOUNTED",isBroken:r==="SKIP_BECAUSE_BROKEN"||r==="LOAD_ERROR"}}const Pa=({appName:e})=>c.jsx("div",{children:c.jsxs("p",{children:["Loading ",e,"..."]})});Pa.displayName="BaseLoading";const Oa=({appName:e})=>c.jsxs("div",{children:[c.jsx("p",{children:"Something went wrong..."}),c.jsxs("p",{children:["Failed to load ",e]})]});Oa.displayName="BaseError";const Ip={display:"flex",flexDirection:"column",flex:1},ka=C.forwardRef((e,t)=>c.jsx("div",{ref:t,style:Ip,...e}));ka.displayName="BaseContainer";const Np="pae-app:",Ra=C.forwardRef(({appName:e,LoadingComponent:t=Pa,ErrorComponent:r=Oa,ContainerComponent:n=ka,...o},i)=>{const s=Lp(e);return c.jsxs(n,{ref:i,...o,id:`${Np}${e}`,children:[s.isLoading&&c.jsx(t,{appName:e}),s.isBroken&&c.jsx(r,{appName:e})]})});Ra.displayName="ModulePlaceHolder";const Fo=({operations:e,children:t,forbiddenContent:r})=>{var o;const{hasAccess:n}=qr();if(!n(...e)){if(!r)return null;if(typeof r=="function")if((o=r==null?void 0:r.prototype)!=null&&o.isReactComponent){const i=r;return c.jsx(i,{operations:e})}else return r({operations:e});return C.isValidElement(r)?r:null}return t};Fo.displayName="Authorized";const Mp=({eventName:e,listener:t})=>(Rs(e,t),null),$p=()=>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"})}),ja=({applicationName:e})=>{const t=bs(e);if(t)if(typeof t=="function"){const r=t;return c.jsx(r,{})}else return t;return c.jsx($p,{})};ja.displayName="ApplicationIcon";const Fp=(e,t)=>{const r=n=>c.jsx(Fo,{operations:t,children:c.jsx(e,{...n})});return r.displayName="Authorized",r};function Da(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Da(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function D(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Da(e))&&(n&&(n+=" "),n+=t);return n}const yn={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"},bn=C.forwardRef(({variant:e="contained",colorScheme:t="primary",loading:r=!1,IconComponent:n,className:o,children:i,...s},a)=>{const l=D(yn.button,yn[`button--${e}-${t}`],o);return c.jsxs("button",{ref:a,className:l,...s,children:[r?c.jsx("div",{className:yn.spinner}):n&&c.jsx(n,{className:yn.icon}),i]})});bn.displayName="Button";const wn={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"},La={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]};var Ia={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function Bp(e){var d,h;var t,r=[],n=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(),La[e])r=La[e].slice(),o="rgb";else if(e==="transparent")n=0,o="rgb",r=[0,0,0];else if(e[0]==="#"){var i=e.slice(1),s=i.length,a=s<=4;n=1,a?(r=[parseInt(i[0]+i[0],16),parseInt(i[1]+i[1],16),parseInt(i[2]+i[2],16)],s===4&&(n=parseInt(i[3]+i[3],16)/255)):(r=[parseInt(i[0]+i[1],16),parseInt(i[2]+i[3],16),parseInt(i[4]+i[5],16)],s===8&&(n=parseInt(i[6]+i[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[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;r=t[2].trim().split(/\s*[,\/]\s*|\s+/),o==="color"&&(o=r.shift()),r=r.map(function(p,g){if(p[p.length-1]==="%")return p=parseFloat(p)/100,g===3?p:o==="rgb"?p*255:o[0]==="h"||o[0]==="l"&&!g?p*100:o==="lab"?p*125:o==="lch"?g<2?p*150:p*360:o[0]==="o"&&!g?p:o==="oklab"?p*.4:o==="oklch"?g<2?p*.4:p*360:p;if(o[g]==="h"||g===2&&o[o.length-1]==="h"){if(Ia[p]!==void 0)return Ia[p];if(p.endsWith("deg"))return parseFloat(p);if(p.endsWith("turn"))return parseFloat(p)*360;if(p.endsWith("grad"))return parseFloat(p)*360/400;if(p.endsWith("rad"))return parseFloat(p)*180/Math.PI}return p==="none"?0:parseFloat(p)}),n=r.length>u?r.pop():1}else/[0-9](?:\s|\/|,)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(p){return parseFloat(p)}),o=((h=(d=e.match(/([a-z])/ig))==null?void 0:d.join(""))==null?void 0:h.toLowerCase())||"rgb");return{space:o,values:r,alpha:n}}const Up=(e,t)=>{const{space:r,values:n}=Bp(e);return r[0]==="h"?`${r}a(${n[0]}, ${n[1]}%, ${n[2]}%, ${t})`:`${r}a(${n}, ${t})`},Bo=C.forwardRef(({children:e,color:t,className:r,customColor:n,size:o="small",style:i,...s},a)=>{const l=n?{color:n,background:Up(n,.1)}:{},u=D(wn.Badge,wn[`Badge--${o}`],{[wn[`Badge--${t}`]]:!!t},r);return c.jsx("span",{ref:a,className:u,style:{...i,...l},...s,children:e})});Bo.displayName="Badge";const Uo=C.forwardRef(({children:e,className:t,...r},n)=>{const o=D(wn.Badges,t);return c.jsx("div",{ref:n,className:o,...r,children:e})});Uo.displayName="Badges";const Na=({size:e=24,color:t="currentColor",strokeWidth:r=2,className:n,style:o,...i})=>c.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round",className:n,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"})]}),Ma=({size:e=24,color:t="currentColor",strokeWidth:r=2,className:n,style:o,...i})=>c.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round",className:n,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"})]}),zp={CopyToClipboardButton:"CopyToClipboardButton__2Nd2m"},Hp=({content:e})=>{const[t,r]=Wp(),{notify:n}=Eo(),o=t?Ma:Na,i=C.useCallback(async()=>{await r(e)&&n("Copied to the Clipboard !","success")},[e,n]);return c.jsx(o,{className:zp.CopyToClipboardButton,size:18,onClick:i})},Wp=()=>{const[e,t]=C.useState(!1);return[e,async n=>{try{return await navigator.clipboard.writeText(n),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"},Fa=C.forwardRef(({children:e,className:t,orientation:r="vertical",...n},o)=>{const i=D($a.FieldGroup,$a[`FieldGroup--${r}`],t);return c.jsx("div",{ref:o,className:i,...n,children:e})});Fa.displayName="FieldGroup";const Ba={Input:"Input__uS0sb",Error:"Error__-DQpw"},_n=C.forwardRef(({className:e,error:t,...r},n)=>{const o=D(Ba.Input,t&&Ba.Error,e);return c.jsx("input",{ref:n,className:o,...r})});_n.displayName="Input";const Vp={Error:"Error__N4OP5"},Ua=C.forwardRef(({children:e,className:t,...r},n)=>{const o=D(Vp.Error,t);return c.jsx("span",{ref:n,className:o,...r,children:e})});Ua.displayName="InputError";const za={Label:"Label__VYUvW",Error:"Error__Eu6DI"},Ha=C.forwardRef(({children:e,className:t,error:r,...n},o)=>{const i=D(za.Label,r&&za.Error,t);return c.jsx("label",{ref:o,className:i,...n,children:e})});Ha.displayName="Label";const zo={Select:"Select__giqpe",Chevron:"Chevron__YvhBd"},Wa=C.forwardRef(({children:e,className:t,...r},n)=>{const o=D(zo.Option,t);return c.jsx("option",{ref:n,className:o,...r,children:e})});Wa.displayName="Option";const Ho=C.forwardRef(({children:e,className:t,...r},n)=>{const o=D(zo.Select,t);return c.jsxs("div",{className:o,children:[c.jsx("select",{ref:n,...r,children:e}),c.jsx("div",{className:zo.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"})})})]})});Ho.displayName="Select",Ho.Option=Wa;const Gp={TextArea:"TextArea__pa-A0"},Va=C.forwardRef(({children:e,className:t,...r},n)=>{const o=D(Gp.TextArea,t);return c.jsx("textarea",{ref:n,className:o,...r,children:e})});Va.displayName="TextArea";const Pr={SearchInput:"SearchInput__4OFyE",SearchIcon:"SearchIcon__YgnQy",ClearIcon:"ClearIcon__ukRVr",SearchInput__ClearIcon:"SearchInput__ClearIcon__uzVoc",SearchInput__SearchIcon:"SearchInput__SearchIcon__zoDG4"},Wo=C.forwardRef(({className:e,placeholder:t="Type to search...",showClearButton:r=!1,showSearchIcon:n=!0,onClear:o,...i},s)=>{const a=D(Pr.SearchInput,r&&Pr.SearchInput__ClearIcon,n&&Pr.SearchInput__SearchIcon,e),l=D(Pr.SearchIcon),u=D(Pr.ClearIcon);return c.jsxs("div",{className:a,children:[c.jsx(_n,{ref:s,type:"text",placeholder:t,...i}),n&&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"})}),r&&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"})})]})});Wo.displayName="SearchInput";const Tt={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"},At={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"},xn=C.forwardRef(({children:e,className:t,open:r,align:n="right",...o},i)=>{const s=D(At.DropdownList,{[At["DropdownList--open"]]:r,[At["DropdownList--closed"]]:!r,[At["DropdownList--left"]]:n==="left"},t);return c.jsx("div",{ref:i,className:s,...o,children:e})});xn.displayName="DropdownList";const Or=C.forwardRef(({children:e,className:t,canBeSelected:r=!1,...n},o)=>{const i=D(Tt.AutocompleteItem,{[Tt["AutocompleteItem--canBeSelected"]]:r},t);return c.jsx("div",{ref:o,className:i,...n,children:e})});Or.displayName="AutocompleteItem";const qp=300,Qp={query:"",suggestions:[],loading:!1,error:null},Yp=({suggestionFetcher:e,canAdd:t})=>{const[r,n]=C.useState(Qp);return C.useEffect(()=>{n(a=>({...a,loading:!0}));const i=async()=>{try{const a=await e(r.query);t&&!a.some(l=>l.value.toLowerCase()===r.query.toLowerCase())&&a.push({label:`Add "${r.query}"`,value:r.query,isNew:!0}),n(l=>({...l,suggestions:a,loading:!1}))}catch(a){n(l=>({...l,suggestions:[],error:a,loading:!1}))}},s=setTimeout(()=>{i()},qp);return()=>{clearTimeout(s)}},[r.query]),{...r,setQuery:i=>{n(s=>({...s,query:i}))}}},Ga=C.forwardRef(({text:e,query:t,className:r,...n},o)=>{const i=D(Tt.AutocompleteHighlighter,r),s=(a,l)=>{const u=a.toLowerCase().indexOf(l.toLowerCase());if(u===-1||l.length===0)return a;const d=a.slice(0,u),h=a.slice(u,u+l.length),p=a.slice(u+l.length);return c.jsxs(c.Fragment,{children:[d,c.jsx("span",{className:Tt.AutocompleteHighlighter__match,children:h}),s(p,l)]})};return c.jsx("div",{ref:o,className:i,...n,children:s(e,t)})});Ga.displayName="AutocompleteHighlighter";const Kp=5,qa=C.forwardRef(({children:e,className:t,canAdd:r,maxSuggestionsShown:n=Kp,searchInputProps:o,keepSelectedOption:i,suggestionFetcher:s,onAccept:a,...l},u)=>{const{query:d,setQuery:h,suggestions:p,loading:g}=Yp({suggestionFetcher:s,canAdd:r}),[w,f]=C.useState(null),v=d.length>0,_=O=>{h(O.target.value)},x=O=>{a==null||a(O),i?(f(O),h(O.value)):h("")},T=()=>{a==null||a(null),f(null),h("")},S=D(Tt.SearchAutocomplete,t),A=p.slice(0,n),k=p.slice(n);return c.jsxs("div",{ref:u,className:S,...l,children:[c.jsx(Wo,{...o,value:d,onChange:_,showClearButton:!!w,onClear:T}),e,c.jsxs(xn,{className:Tt.DropdownList,open:v&&!w,role:"listbox","aria-label":"Suggestions",children:[g?c.jsx(Or,{children:"Loading..."}):A.map(O=>c.jsxs(Or,{canBeSelected:!0,onClick:x.bind(null,O),children:[c.jsx(Ga,{text:O.label,query:d}),O.description&&c.jsx("span",{className:Tt.AutocompleteItemDescription,children:O.description})]},O.value)),!g&&k.length>0&&c.jsxs(Or,{children:[k.length," more results"]}),v&&p.length===0&&!g&&c.jsx(Or,{children:"No results found"})]})]})});qa.displayName="SearchAutocomplete";const it=e=>{let t=null,r=null;return C.Children.forEach(e.children,n=>{const o=n.props.condition;o===void 0?r=n:!t&&o===!0&&(t=n)}),c.jsx(c.Fragment,{children:t||r})};it.displayName="Show",it.When=({condition:e,children:t})=>c.jsx(c.Fragment,{children:e&&t}),it.Else=({render:e,children:t})=>c.jsx(c.Fragment,{children:e||t});function Qa(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ya(...e){return t=>{let r=!1;const n=e.map(o=>{const i=Qa(o,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let o=0;o<n.length;o++){const i=n[o];typeof i=="function"?i():Qa(e[o],null)}}}}function Te(...e){return m.useCallback(Ya(...e),e)}function Vo(e){const t=Xp(e),r=m.forwardRef((n,o)=>{const{children:i,...s}=n,a=m.Children.toArray(i),l=a.find(eh);if(l){const u=l.props.children,d=a.map(h=>h===l?m.Children.count(u)>1?m.Children.only(null):m.isValidElement(u)?u.props.children:null:h);return c.jsx(t,{...s,ref:o,children:m.isValidElement(u)?m.cloneElement(u,void 0,d):null})}return c.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}var Zp=Vo("Slot");function Xp(e){const t=m.forwardRef((r,n)=>{const{children:o,...i}=r;if(m.isValidElement(o)){const s=rh(o),a=th(i,o.props);return o.type!==m.Fragment&&(a.ref=n?Ya(n,s):s),m.cloneElement(o,a)}return m.Children.count(o)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ka=Symbol("radix.slottable");function Jp(e){const t=({children:r})=>c.jsx(c.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=Ka,t}function eh(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ka}function th(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...a)=>{const l=i(...a);return o(...a),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function rh(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const Za={SkeletonListContainer:"SkeletonListContainer__MKJhE",Skeleton:"Skeleton__Ovpiw"},Cn=C.forwardRef((e,t)=>{const{children:r,className:n,loading:o,height:i=48,width:s,borderRadius:a,style:l,...u}=e;if(!o&&r)return r;const d=C.isValidElement(r)?Zp:"span";return c.jsx(d,{ref:t,"aria-hidden":!0,className:D(Za.Skeleton,n),style:{...l,width:s,minWidth:s,height:i,borderRadius:a},"data-inline-skeleton":C.isValidElement(r)?void 0:!0,tabIndex:-1,...u,children:r})});Cn.displayName="Skeleton";const Xa=e=>{const{numberOfItems:t,itemsGap:r=2,itemProps:n}=e,o=Array.from({length:t},(i,s)=>s+1);return c.jsx("div",{className:D(Za.SkeletonListContainer),style:{gap:r},children:o.map(i=>c.jsx(Cn,{loading:!0,...n},i))})};Xa.displayName="SkeletonList";function pe(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function nh(e,t){const r=m.createContext(t),n=i=>{const{children:s,...a}=i,l=m.useMemo(()=>a,Object.values(a));return c.jsx(r.Provider,{value:l,children:s})};n.displayName=e+"Provider";function o(i){const s=m.useContext(r);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[n,o]}function Go(e,t=[]){let r=[];function n(i,s){const a=m.createContext(s),l=r.length;r=[...r,s];const u=h=>{var _;const{scope:p,children:g,...w}=h,f=((_=p==null?void 0:p[e])==null?void 0:_[l])||a,v=m.useMemo(()=>w,Object.values(w));return c.jsx(f.Provider,{value:v,children:g})};u.displayName=i+"Provider";function d(h,p){var f;const g=((f=p==null?void 0:p[e])==null?void 0:f[l])||a,w=m.useContext(g);if(w)return w;if(s!==void 0)return s;throw new Error(`\`${h}\` must be used within \`${i}\``)}return[u,d]}const o=()=>{const i=r.map(s=>m.createContext(s));return function(a){const l=(a==null?void 0:a[e])||i;return m.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[n,oh(o,...t)]}function oh(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=n.reduce((a,{useScope:l,scopeName:u})=>{const h=l(i)[`__scope${u}`];return{...a,...h}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}var ih=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],he=ih.reduce((e,t)=>{const r=Vo(`Primitive.${t}`),n=m.forwardRef((o,i)=>{const{asChild:s,...a}=o,l=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(l,{...a,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function sh(e,t){e&&es.flushSync(()=>e.dispatchEvent(t))}function qt(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function ah(e,t=globalThis==null?void 0:globalThis.document){const r=qt(e);m.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var lh="DismissableLayer",qo="dismissableLayer.update",ch="dismissableLayer.pointerDownOutside",uh="dismissableLayer.focusOutside",Ja,el=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Qo=m.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...l}=e,u=m.useContext(el),[d,h]=m.useState(null),p=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=m.useState({}),w=Te(t,O=>h(O)),f=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),_=f.indexOf(v),x=d?f.indexOf(d):-1,T=u.layersWithOutsidePointerEventsDisabled.size>0,S=x>=_,A=ph(O=>{const N=O.target,M=[...u.branches].some($=>$.contains(N));!S||M||(o==null||o(O),s==null||s(O),O.defaultPrevented||a==null||a())},p),k=hh(O=>{const N=O.target;[...u.branches].some($=>$.contains(N))||(i==null||i(O),s==null||s(O),O.defaultPrevented||a==null||a())},p);return ah(O=>{x===u.layers.size-1&&(n==null||n(O),!O.defaultPrevented&&a&&(O.preventDefault(),a()))},p),m.useEffect(()=>{if(d)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Ja=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),tl(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Ja)}},[d,p,r,u]),m.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),tl())},[d,u]),m.useEffect(()=>{const O=()=>g({});return document.addEventListener(qo,O),()=>document.removeEventListener(qo,O)},[]),c.jsx(he.div,{...l,ref:w,style:{pointerEvents:T?S?"auto":"none":void 0,...e.style},onFocusCapture:pe(e.onFocusCapture,k.onFocusCapture),onBlurCapture:pe(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:pe(e.onPointerDownCapture,A.onPointerDownCapture)})});Qo.displayName=lh;var dh="DismissableLayerBranch",fh=m.forwardRef((e,t)=>{const r=m.useContext(el),n=m.useRef(null),o=Te(t,n);return m.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),c.jsx(he.div,{...e,ref:o})});fh.displayName=dh;function ph(e,t=globalThis==null?void 0:globalThis.document){const r=qt(e),n=m.useRef(!1),o=m.useRef(()=>{});return m.useEffect(()=>{const i=a=>{if(a.target&&!n.current){let l=function(){rl(ch,r,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);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function hh(e,t=globalThis==null?void 0:globalThis.document){const r=qt(e),n=m.useRef(!1);return m.useEffect(()=>{const o=i=>{i.target&&!n.current&&rl(uh,r,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function tl(){const e=new CustomEvent(qo);document.dispatchEvent(e)}function rl(e,t,r,{discrete:n}){const o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?sh(o,i):o.dispatchEvent(i)}var st=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},mh=m[" useId ".trim().toString()]||(()=>{}),gh=0;function En(e){const[t,r]=m.useState(mh());return st(()=>{r(n=>n??String(gh++))},[e]),t?`radix-${t}`:""}const vh=["top","right","bottom","left"],at=Math.min,we=Math.max,Sn=Math.round,Tn=Math.floor,Le=e=>({x:e,y:e}),yh={left:"right",right:"left",bottom:"top",top:"bottom"},bh={start:"end",end:"start"};function Yo(e,t,r){return we(e,at(t,r))}function Ge(e,t){return typeof e=="function"?e(t):e}function qe(e){return e.split("-")[0]}function Qt(e){return e.split("-")[1]}function Ko(e){return e==="x"?"y":"x"}function Zo(e){return e==="y"?"height":"width"}const wh=new Set(["top","bottom"]);function Ie(e){return wh.has(qe(e))?"y":"x"}function Xo(e){return Ko(Ie(e))}function _h(e,t,r){r===void 0&&(r=!1);const n=Qt(e),o=Xo(e),i=Zo(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=An(s)),[s,An(s)]}function xh(e){const t=An(e);return[Jo(e),t,Jo(t)]}function Jo(e){return e.replace(/start|end/g,t=>bh[t])}const nl=["left","right"],ol=["right","left"],Ch=["top","bottom"],Eh=["bottom","top"];function Sh(e,t,r){switch(e){case"top":case"bottom":return r?t?ol:nl:t?nl:ol;case"left":case"right":return t?Ch:Eh;default:return[]}}function Th(e,t,r,n){const o=Qt(e);let i=Sh(qe(e),r==="start",n);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Jo)))),i}function An(e){return e.replace(/left|right|bottom|top/g,t=>yh[t])}function Ah(e){return{top:0,right:0,bottom:0,left:0,...e}}function il(e){return typeof e!="number"?Ah(e):{top:e,right:e,bottom:e,left:e}}function Pn(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function sl(e,t,r){let{reference:n,floating:o}=e;const i=Ie(t),s=Xo(t),a=Zo(s),l=qe(t),u=i==="y",d=n.x+n.width/2-o.width/2,h=n.y+n.height/2-o.height/2,p=n[a]/2-o[a]/2;let g;switch(l){case"top":g={x:d,y:n.y-o.height};break;case"bottom":g={x:d,y:n.y+n.height};break;case"right":g={x:n.x+n.width,y:h};break;case"left":g={x:n.x-o.width,y:h};break;default:g={x:n.x,y:n.y}}switch(Qt(t)){case"start":g[s]-=p*(r&&u?-1:1);break;case"end":g[s]+=p*(r&&u?-1:1);break}return g}const Ph=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:s}=r,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:h}=sl(u,n,l),p=n,g={},w=0;for(let f=0;f<a.length;f++){const{name:v,fn:_}=a[f],{x,y:T,data:S,reset:A}=await _({x:d,y:h,initialPlacement:n,placement:p,strategy:o,middlewareData:g,rects:u,platform:s,elements:{reference:e,floating:t}});d=x??d,h=T??h,g={...g,[v]:{...g[v],...S}},A&&w<=50&&(w++,typeof A=="object"&&(A.placement&&(p=A.placement),A.rects&&(u=A.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):A.rects),{x:d,y:h}=sl(u,p,l)),f=-1)}return{x:d,y:h,placement:p,strategy:o,middlewareData:g}};async function kr(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:p=!1,padding:g=0}=Ge(t,e),w=il(g),v=a[p?h==="floating"?"reference":"floating":h],_=Pn(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(v)))==null||r?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:l})),x=h==="floating"?{x:n,y:o,width:s.floating.width,height:s.floating.height}:s.reference,T=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),S=await(i.isElement==null?void 0:i.isElement(T))?await(i.getScale==null?void 0:i.getScale(T))||{x:1,y:1}:{x:1,y:1},A=Pn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:T,strategy:l}):x);return{top:(_.top-A.top+w.top)/S.y,bottom:(A.bottom-_.bottom+w.bottom)/S.y,left:(_.left-A.left+w.left)/S.x,right:(A.right-_.right+w.right)/S.x}}const Oh=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:u,padding:d=0}=Ge(e,t)||{};if(u==null)return{};const h=il(d),p={x:r,y:n},g=Xo(o),w=Zo(g),f=await s.getDimensions(u),v=g==="y",_=v?"top":"left",x=v?"bottom":"right",T=v?"clientHeight":"clientWidth",S=i.reference[w]+i.reference[g]-p[g]-i.floating[w],A=p[g]-i.reference[g],k=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let O=k?k[T]:0;(!O||!await(s.isElement==null?void 0:s.isElement(k)))&&(O=a.floating[T]||i.floating[w]);const N=S/2-A/2,M=O/2-f[w]/2-1,$=at(h[_],M),Y=at(h[x],M),K=$,W=O-f[w]-Y,q=O/2-f[w]/2+N,ie=Yo(K,q,W),J=!l.arrow&&Qt(o)!=null&&q!==ie&&i.reference[w]/2-(q<K?$:Y)-f[w]/2<0,ee=J?q<K?q-K:q-W:0;return{[g]:p[g]+ee,data:{[g]:ie,centerOffset:q-ie-ee,...J&&{alignmentOffset:ee}},reset:J}}}),kh=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:f=!0,...v}=Ge(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const _=qe(o),x=Ie(a),T=qe(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),A=p||(T||!f?[An(a)]:xh(a)),k=w!=="none";!p&&k&&A.push(...Th(a,f,w,S));const O=[a,...A],N=await kr(t,v),M=[];let $=((n=i.flip)==null?void 0:n.overflows)||[];if(d&&M.push(N[_]),h){const q=_h(o,s,S);M.push(N[q[0]],N[q[1]])}if($=[...$,{placement:o,overflows:M}],!M.every(q=>q<=0)){var Y,K;const q=(((Y=i.flip)==null?void 0:Y.index)||0)+1,ie=O[q];if(ie&&(!(h==="alignment"?x!==Ie(ie):!1)||$.every(B=>Ie(B.placement)===x?B.overflows[0]>0:!0)))return{data:{index:q,overflows:$},reset:{placement:ie}};let J=(K=$.filter(ee=>ee.overflows[0]<=0).sort((ee,B)=>ee.overflows[1]-B.overflows[1])[0])==null?void 0:K.placement;if(!J)switch(g){case"bestFit":{var W;const ee=(W=$.filter(B=>{if(k){const se=Ie(B.placement);return se===x||se==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(se=>se>0).reduce((se,xe)=>se+xe,0)]).sort((B,se)=>B[1]-se[1])[0])==null?void 0:W[0];ee&&(J=ee);break}case"initialPlacement":J=a;break}if(o!==J)return{reset:{placement:J}}}return{}}}};function al(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ll(e){return vh.some(t=>e[t]>=0)}const Rh=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=Ge(e,t);switch(n){case"referenceHidden":{const i=await kr(t,{...o,elementContext:"reference"}),s=al(i,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:ll(s)}}}case"escaped":{const i=await kr(t,{...o,altBoundary:!0}),s=al(i,r.floating);return{data:{escapedOffsets:s,escaped:ll(s)}}}default:return{}}}}},cl=new Set(["left","top"]);async function jh(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=qe(r),a=Qt(r),l=Ie(r)==="y",u=cl.has(s)?-1:1,d=i&&l?-1:1,h=Ge(t,e);let{mainAxis:p,crossAxis:g,alignmentAxis:w}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof w=="number"&&(g=a==="end"?w*-1:w),l?{x:g*d,y:p*u}:{x:p*u,y:g*d}}const Dh=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await jh(t,e);return s===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},Lh=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:v=>{let{x:_,y:x}=v;return{x:_,y:x}}},...l}=Ge(e,t),u={x:r,y:n},d=await kr(t,l),h=Ie(qe(o)),p=Ko(h);let g=u[p],w=u[h];if(i){const v=p==="y"?"top":"left",_=p==="y"?"bottom":"right",x=g+d[v],T=g-d[_];g=Yo(x,g,T)}if(s){const v=h==="y"?"top":"left",_=h==="y"?"bottom":"right",x=w+d[v],T=w-d[_];w=Yo(x,w,T)}const f=a.fn({...t,[p]:g,[h]:w});return{...f,data:{x:f.x-r,y:f.y-n,enabled:{[p]:i,[h]:s}}}}}},Ih=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=Ge(e,t),d={x:r,y:n},h=Ie(o),p=Ko(h);let g=d[p],w=d[h];const f=Ge(a,t),v=typeof f=="number"?{mainAxis:f,crossAxis:0}:{mainAxis:0,crossAxis:0,...f};if(l){const T=p==="y"?"height":"width",S=i.reference[p]-i.floating[T]+v.mainAxis,A=i.reference[p]+i.reference[T]-v.mainAxis;g<S?g=S:g>A&&(g=A)}if(u){var _,x;const T=p==="y"?"width":"height",S=cl.has(qe(o)),A=i.reference[h]-i.floating[T]+(S&&((_=s.offset)==null?void 0:_[h])||0)+(S?0:v.crossAxis),k=i.reference[h]+i.reference[T]+(S?0:((x=s.offset)==null?void 0:x[h])||0)-(S?v.crossAxis:0);w<A?w=A:w>k&&(w=k)}return{[p]:g,[h]:w}}}},Nh=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...u}=Ge(e,t),d=await kr(t,u),h=qe(o),p=Qt(o),g=Ie(o)==="y",{width:w,height:f}=i.floating;let v,_;h==="top"||h==="bottom"?(v=h,_=p===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(_=h,v=p==="end"?"top":"bottom");const x=f-d.top-d.bottom,T=w-d.left-d.right,S=at(f-d[v],x),A=at(w-d[_],T),k=!t.middlewareData.shift;let O=S,N=A;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(N=T),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(O=x),k&&!p){const $=we(d.left,0),Y=we(d.right,0),K=we(d.top,0),W=we(d.bottom,0);g?N=w-2*($!==0||Y!==0?$+Y:we(d.left,d.right)):O=f-2*(K!==0||W!==0?K+W:we(d.top,d.bottom))}await l({...t,availableWidth:N,availableHeight:O});const M=await s.getDimensions(a.floating);return w!==M.width||f!==M.height?{reset:{rects:!0}}:{}}}};function On(){return typeof window<"u"}function Yt(e){return ul(e)?(e.nodeName||"").toLowerCase():"#document"}function _e(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ne(e){var t;return(t=(ul(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ul(e){return On()?e instanceof Node||e instanceof _e(e).Node:!1}function Ae(e){return On()?e instanceof Element||e instanceof _e(e).Element:!1}function Me(e){return On()?e instanceof HTMLElement||e instanceof _e(e).HTMLElement:!1}function dl(e){return!On()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof _e(e).ShadowRoot}const Mh=new Set(["inline","contents"]);function Rr(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Pe(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!Mh.has(o)}const $h=new Set(["table","td","th"]);function Fh(e){return $h.has(Yt(e))}const Bh=[":popover-open",":modal"];function kn(e){return Bh.some(t=>{try{return e.matches(t)}catch{return!1}})}const Uh=["transform","translate","scale","rotate","perspective"],zh=["transform","translate","scale","rotate","perspective","filter"],Hh=["paint","layout","strict","content"];function ei(e){const t=ti(),r=Ae(e)?Pe(e):e;return Uh.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||zh.some(n=>(r.willChange||"").includes(n))||Hh.some(n=>(r.contain||"").includes(n))}function Wh(e){let t=lt(e);for(;Me(t)&&!Kt(t);){if(ei(t))return t;if(kn(t))return null;t=lt(t)}return null}function ti(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Vh=new Set(["html","body","#document"]);function Kt(e){return Vh.has(Yt(e))}function Pe(e){return _e(e).getComputedStyle(e)}function Rn(e){return Ae(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function lt(e){if(Yt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||dl(e)&&e.host||Ne(e);return dl(t)?t.host:t}function fl(e){const t=lt(e);return Kt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Me(t)&&Rr(t)?t:fl(t)}function jr(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=fl(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),s=_e(o);if(i){const a=ri(s);return t.concat(s,s.visualViewport||[],Rr(o)?o:[],a&&r?jr(a):[])}return t.concat(o,jr(o,[],r))}function ri(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function pl(e){const t=Pe(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Me(e),i=o?e.offsetWidth:r,s=o?e.offsetHeight:n,a=Sn(r)!==i||Sn(n)!==s;return a&&(r=i,n=s),{width:r,height:n,$:a}}function ni(e){return Ae(e)?e:e.contextElement}function Zt(e){const t=ni(e);if(!Me(t))return Le(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=pl(t);let s=(i?Sn(r.width):r.width)/n,a=(i?Sn(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Gh=Le(0);function hl(e){const t=_e(e);return!ti()||!t.visualViewport?Gh:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function qh(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==_e(e)?!1:t}function Pt(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=ni(e);let s=Le(1);t&&(n?Ae(n)&&(s=Zt(n)):s=Zt(e));const a=qh(i,r,n)?hl(i):Le(0);let l=(o.left+a.x)/s.x,u=(o.top+a.y)/s.y,d=o.width/s.x,h=o.height/s.y;if(i){const p=_e(i),g=n&&Ae(n)?_e(n):n;let w=p,f=ri(w);for(;f&&n&&g!==w;){const v=Zt(f),_=f.getBoundingClientRect(),x=Pe(f),T=_.left+(f.clientLeft+parseFloat(x.paddingLeft))*v.x,S=_.top+(f.clientTop+parseFloat(x.paddingTop))*v.y;l*=v.x,u*=v.y,d*=v.x,h*=v.y,l+=T,u+=S,w=_e(f),f=ri(w)}}return Pn({width:d,height:h,x:l,y:u})}function oi(e,t){const r=Rn(e).scrollLeft;return t?t.left+r:Pt(Ne(e)).left+r}function ml(e,t,r){r===void 0&&(r=!1);const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-(r?0:oi(e,n)),i=n.top+t.scrollTop;return{x:o,y:i}}function Qh(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i=o==="fixed",s=Ne(n),a=t?kn(t.floating):!1;if(n===s||a&&i)return r;let l={scrollLeft:0,scrollTop:0},u=Le(1);const d=Le(0),h=Me(n);if((h||!h&&!i)&&((Yt(n)!=="body"||Rr(s))&&(l=Rn(n)),Me(n))){const g=Pt(n);u=Zt(n),d.x=g.x+n.clientLeft,d.y=g.y+n.clientTop}const p=s&&!h&&!i?ml(s,l,!0):Le(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-l.scrollLeft*u.x+d.x+p.x,y:r.y*u.y-l.scrollTop*u.y+d.y+p.y}}function Yh(e){return Array.from(e.getClientRects())}function Kh(e){const t=Ne(e),r=Rn(e),n=e.ownerDocument.body,o=we(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=we(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+oi(e);const a=-r.scrollTop;return Pe(n).direction==="rtl"&&(s+=we(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:s,y:a}}function Zh(e,t){const r=_e(e),n=Ne(e),o=r.visualViewport;let i=n.clientWidth,s=n.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const u=ti();(!u||u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}const Xh=new Set(["absolute","fixed"]);function Jh(e,t){const r=Pt(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=Me(e)?Zt(e):Le(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,u=n*i.y;return{width:s,height:a,x:l,y:u}}function gl(e,t,r){let n;if(t==="viewport")n=Zh(e,r);else if(t==="document")n=Kh(Ne(e));else if(Ae(t))n=Jh(t,r);else{const o=hl(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Pn(n)}function vl(e,t){const r=lt(e);return r===t||!Ae(r)||Kt(r)?!1:Pe(r).position==="fixed"||vl(r,t)}function e1(e,t){const r=t.get(e);if(r)return r;let n=jr(e,[],!1).filter(a=>Ae(a)&&Yt(a)!=="body"),o=null;const i=Pe(e).position==="fixed";let s=i?lt(e):e;for(;Ae(s)&&!Kt(s);){const a=Pe(s),l=ei(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&Xh.has(o.position)||Rr(s)&&!l&&vl(e,s))?n=n.filter(d=>d!==s):o=a,s=lt(s)}return t.set(e,n),n}function t1(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const s=[...r==="clippingAncestors"?kn(t)?[]:e1(t,this._c):[].concat(r),n],a=s[0],l=s.reduce((u,d)=>{const h=gl(t,d,o);return u.top=we(h.top,u.top),u.right=at(h.right,u.right),u.bottom=at(h.bottom,u.bottom),u.left=we(h.left,u.left),u},gl(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function r1(e){const{width:t,height:r}=pl(e);return{width:t,height:r}}function n1(e,t,r){const n=Me(t),o=Ne(t),i=r==="fixed",s=Pt(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Le(0);function u(){l.x=oi(o)}if(n||!n&&!i)if((Yt(t)!=="body"||Rr(o))&&(a=Rn(t)),n){const g=Pt(t,!0,i,t);l.x=g.x+t.clientLeft,l.y=g.y+t.clientTop}else o&&u();i&&!n&&o&&u();const d=o&&!n&&!i?ml(o,a):Le(0),h=s.left+a.scrollLeft-l.x-d.x,p=s.top+a.scrollTop-l.y-d.y;return{x:h,y:p,width:s.width,height:s.height}}function ii(e){return Pe(e).position==="static"}function yl(e,t){if(!Me(e)||Pe(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Ne(e)===r&&(r=r.ownerDocument.body),r}function bl(e,t){const r=_e(e);if(kn(e))return r;if(!Me(e)){let o=lt(e);for(;o&&!Kt(o);){if(Ae(o)&&!ii(o))return o;o=lt(o)}return r}let n=yl(e,t);for(;n&&Fh(n)&&ii(n);)n=yl(n,t);return n&&Kt(n)&&ii(n)&&!ei(n)?r:n||Wh(e)||r}const o1=async function(e){const t=this.getOffsetParent||bl,r=this.getDimensions,n=await r(e.floating);return{reference:n1(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function i1(e){return Pe(e).direction==="rtl"}const s1={convertOffsetParentRelativeRectToViewportRelativeRect:Qh,getDocumentElement:Ne,getClippingRect:t1,getOffsetParent:bl,getElementRects:o1,getClientRects:Yh,getDimensions:r1,getScale:Zt,isElement:Ae,isRTL:i1};function wl(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function a1(e,t){let r=null,n;const o=Ne(e);function i(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const u=e.getBoundingClientRect(),{left:d,top:h,width:p,height:g}=u;if(a||t(),!p||!g)return;const w=Tn(h),f=Tn(o.clientWidth-(d+p)),v=Tn(o.clientHeight-(h+g)),_=Tn(d),T={rootMargin:-w+"px "+-f+"px "+-v+"px "+-_+"px",threshold:we(0,at(1,l))||1};let S=!0;function A(k){const O=k[0].intersectionRatio;if(O!==l){if(!S)return s();O?s(!1,O):n=setTimeout(()=>{s(!1,1e-7)},1e3)}O===1&&!wl(u,e.getBoundingClientRect())&&s(),S=!1}try{r=new IntersectionObserver(A,{...T,root:o.ownerDocument})}catch{r=new IntersectionObserver(A,T)}r.observe(e)}return s(!0),i}function l1(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,u=ni(e),d=o||i?[...u?jr(u):[],...jr(t)]:[];d.forEach(_=>{o&&_.addEventListener("scroll",r,{passive:!0}),i&&_.addEventListener("resize",r)});const h=u&&a?a1(u,r):null;let p=-1,g=null;s&&(g=new ResizeObserver(_=>{let[x]=_;x&&x.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var T;(T=g)==null||T.observe(t)})),r()}),u&&!l&&g.observe(u),g.observe(t));let w,f=l?Pt(e):null;l&&v();function v(){const _=Pt(e);f&&!wl(f,_)&&r(),f=_,w=requestAnimationFrame(v)}return r(),()=>{var _;d.forEach(x=>{o&&x.removeEventListener("scroll",r),i&&x.removeEventListener("resize",r)}),h==null||h(),(_=g)==null||_.disconnect(),g=null,l&&cancelAnimationFrame(w)}}const c1=Dh,u1=Lh,d1=kh,f1=Nh,p1=Rh,_l=Oh,h1=Ih,m1=(e,t,r)=>{const n=new Map,o={platform:s1,...r},i={...o.platform,_c:n};return Ph(e,t,{...o,platform:i})};var g1=typeof document<"u",v1=function(){},jn=g1?C.useLayoutEffect:v1;function Dn(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 r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Dn(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const i=o[n];if(!(i==="_owner"&&e.$$typeof)&&!Dn(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function xl(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Cl(e,t){const r=xl(e);return Math.round(t*r)/r}function si(e){const t=m.useRef(e);return jn(()=>{t.current=e}),t}function y1(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[d,h]=m.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[p,g]=m.useState(n);Dn(p,n)||g(n);const[w,f]=m.useState(null),[v,_]=m.useState(null),x=m.useCallback(B=>{B!==k.current&&(k.current=B,f(B))},[]),T=m.useCallback(B=>{B!==O.current&&(O.current=B,_(B))},[]),S=i||w,A=s||v,k=m.useRef(null),O=m.useRef(null),N=m.useRef(d),M=l!=null,$=si(l),Y=si(o),K=si(u),W=m.useCallback(()=>{if(!k.current||!O.current)return;const B={placement:t,strategy:r,middleware:p};Y.current&&(B.platform=Y.current),m1(k.current,O.current,B).then(se=>{const xe={...se,isPositioned:K.current!==!1};q.current&&!Dn(N.current,xe)&&(N.current=xe,es.flushSync(()=>{h(xe)}))})},[p,t,r,Y,K]);jn(()=>{u===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,h(B=>({...B,isPositioned:!1})))},[u]);const q=m.useRef(!1);jn(()=>(q.current=!0,()=>{q.current=!1}),[]),jn(()=>{if(S&&(k.current=S),A&&(O.current=A),S&&A){if($.current)return $.current(S,A,W);W()}},[S,A,W,$,M]);const ie=m.useMemo(()=>({reference:k,floating:O,setReference:x,setFloating:T}),[x,T]),J=m.useMemo(()=>({reference:S,floating:A}),[S,A]),ee=m.useMemo(()=>{const B={position:r,left:0,top:0};if(!J.floating)return B;const se=Cl(J.floating,d.x),xe=Cl(J.floating,d.y);return a?{...B,transform:"translate("+se+"px, "+xe+"px)",...xl(J.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:se,top:xe}},[r,a,J.floating,d.x,d.y]);return m.useMemo(()=>({...d,update:W,refs:ie,elements:J,floatingStyles:ee}),[d,W,ie,J,ee])}const b1=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?_l({element:n.current,padding:o}).fn(r):{}:n?_l({element:n,padding:o}).fn(r):{}}}},w1=(e,t)=>({...c1(e),options:[e,t]}),_1=(e,t)=>({...u1(e),options:[e,t]}),x1=(e,t)=>({...h1(e),options:[e,t]}),C1=(e,t)=>({...d1(e),options:[e,t]}),E1=(e,t)=>({...f1(e),options:[e,t]}),S1=(e,t)=>({...p1(e),options:[e,t]}),T1=(e,t)=>({...b1(e),options:[e,t]});var A1="Arrow",El=m.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...i}=e;return c.jsx(he.svg,{...i,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});El.displayName=A1;var P1=El;function O1(e){const[t,r]=m.useState(void 0);return st(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=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;r({width:s,height:a})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var ai="Popper",[Sl,Tl]=Go(ai),[k1,Al]=Sl(ai),Pl=e=>{const{__scopePopper:t,children:r}=e,[n,o]=m.useState(null);return c.jsx(k1,{scope:t,anchor:n,onAnchorChange:o,children:r})};Pl.displayName=ai;var Ol="PopperAnchor",kl=m.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,i=Al(Ol,r),s=m.useRef(null),a=Te(t,s);return m.useEffect(()=>{i.onAnchorChange((n==null?void 0:n.current)||s.current)}),n?null:c.jsx(he.div,{...o,ref:a})});kl.displayName=Ol;var li="PopperContent",[R1,j1]=Sl(li),Rl=m.forwardRef((e,t)=>{var vr,Bt,yr,Ut,Jn,Hr;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:h="partial",hideWhenDetached:p=!1,updatePositionStrategy:g="optimized",onPlaced:w,...f}=e,v=Al(li,r),[_,x]=m.useState(null),T=Te(t,zt=>x(zt)),[S,A]=m.useState(null),k=O1(S),O=(k==null?void 0:k.width)??0,N=(k==null?void 0:k.height)??0,M=n+(i!=="center"?"-"+i:""),$=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},Y=Array.isArray(u)?u:[u],K=Y.length>0,W={padding:$,boundary:Y.filter(L1),altBoundary:K},{refs:q,floatingStyles:ie,placement:J,isPositioned:ee,middlewareData:B}=y1({strategy:"fixed",placement:M,whileElementsMounted:(...zt)=>l1(...zt,{animationFrame:g==="always"}),elements:{reference:v.anchor},middleware:[w1({mainAxis:o+N,alignmentAxis:s}),l&&_1({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?x1():void 0,...W}),l&&C1({...W}),E1({...W,apply:({elements:zt,rects:eo,availableWidth:br,availableHeight:Ht})=>{const{width:to,height:ro}=eo.reference,Xe=zt.floating.style;Xe.setProperty("--radix-popper-available-width",`${br}px`),Xe.setProperty("--radix-popper-available-height",`${Ht}px`),Xe.setProperty("--radix-popper-anchor-width",`${to}px`),Xe.setProperty("--radix-popper-anchor-height",`${ro}px`)}}),S&&T1({element:S,padding:a}),I1({arrowWidth:O,arrowHeight:N}),p&&S1({strategy:"referenceHidden",...W})]}),[se,xe]=Ll(J),Ft=qt(w);st(()=>{ee&&(Ft==null||Ft())},[ee,Ft]);const Zn=(vr=B.arrow)==null?void 0:vr.x,Xn=(Bt=B.arrow)==null?void 0:Bt.y,Mi=((yr=B.arrow)==null?void 0:yr.centerOffset)!==0,[$i,zr]=m.useState();return st(()=>{_&&zr(window.getComputedStyle(_).zIndex)},[_]),c.jsx("div",{ref:q.setFloating,"data-radix-popper-content-wrapper":"",style:{...ie,transform:ee?ie.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:$i,"--radix-popper-transform-origin":[(Ut=B.transformOrigin)==null?void 0:Ut.x,(Jn=B.transformOrigin)==null?void 0:Jn.y].join(" "),...((Hr=B.hide)==null?void 0:Hr.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(R1,{scope:r,placedSide:se,onArrowChange:A,arrowX:Zn,arrowY:Xn,shouldHideArrow:Mi,children:c.jsx(he.div,{"data-side":se,"data-align":xe,...f,ref:T,style:{...f.style,animation:ee?void 0:"none"}})})})});Rl.displayName=li;var jl="PopperArrow",D1={top:"bottom",right:"left",bottom:"top",left:"right"},Dl=m.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,i=j1(jl,n),s=D1[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(P1,{...o,ref:r,style:{...o.style,display:"block"}})})});Dl.displayName=jl;function L1(e){return e!==null}var I1=e=>({name:"transformOrigin",options:e,fn(t){var v,_,x;const{placement:r,rects:n,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]=Ll(r),h={start:"0%",center:"50%",end:"100%"}[d],p=(((_=o.arrow)==null?void 0:_.x)??0)+a/2,g=(((x=o.arrow)==null?void 0:x.y)??0)+l/2;let w="",f="";return u==="bottom"?(w=s?h:`${p}px`,f=`${-l}px`):u==="top"?(w=s?h:`${p}px`,f=`${n.floating.height+l}px`):u==="right"?(w=`${-l}px`,f=s?h:`${g}px`):u==="left"&&(w=`${n.floating.width+l}px`,f=s?h:`${g}px`),{data:{x:w,y:f}}}});function Ll(e){const[t,r="center"]=e.split("-");return[t,r]}var N1=Pl,M1=kl,$1=Rl,F1=Dl,B1="Portal",ci=m.forwardRef((e,t)=>{var a;const{container:r,...n}=e,[o,i]=m.useState(!1);st(()=>i(!0),[]);const s=r||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?_t.createPortal(c.jsx(he.div,{...n,ref:t}),s):null});ci.displayName=B1;function U1(e,t){return m.useReducer((r,n)=>t[r][n]??r,e)}var Xt=e=>{const{present:t,children:r}=e,n=z1(t),o=typeof r=="function"?r({present:n.isPresent}):m.Children.only(r),i=Te(n.ref,H1(o));return typeof r=="function"||n.isPresent?m.cloneElement(o,{ref:i}):null};Xt.displayName="Presence";function z1(e){const[t,r]=m.useState(),n=m.useRef(null),o=m.useRef(e),i=m.useRef("none"),s=e?"mounted":"unmounted",[a,l]=U1(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const u=Ln(n.current);i.current=a==="mounted"?u:"none"},[a]),st(()=>{const u=n.current,d=o.current;if(d!==e){const p=i.current,g=Ln(u);e?l("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&p!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),st(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,h=g=>{const f=Ln(n.current).includes(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)})}},p=g=>{g.target===t&&(i.current=Ln(n.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:m.useCallback(u=>{n.current=u?getComputedStyle(u):null,r(u)},[])}}function Ln(e){return(e==null?void 0:e.animationName)||"none"}function H1(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var W1=m[" useInsertionEffect ".trim().toString()]||st;function Il({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,i,s]=V1({defaultProp:t,onChange:r}),a=e!==void 0,l=a?e:o;{const d=m.useRef(e!==void 0);m.useEffect(()=>{const h=d.current;h!==a&&console.warn(`${n} 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.`),d.current=a},[a,n])}const u=m.useCallback(d=>{var h;if(a){const p=G1(d)?d(e):d;p!==e&&((h=s.current)==null||h.call(s,p))}else i(d)},[a,e,i,s]);return[l,u]}function V1({defaultProp:e,onChange:t}){const[r,n]=m.useState(e),o=m.useRef(r),i=m.useRef(t);return W1(()=>{i.current=t},[t]),m.useEffect(()=>{var s;o.current!==r&&((s=i.current)==null||s.call(i,r),o.current=r)},[r,o]),[r,n,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",Nl=m.forwardRef((e,t)=>c.jsx(he.span,{...e,ref:t,style:{...q1,...e.style}}));Nl.displayName=Q1;var Y1=Nl,[In,vy]=Go("Tooltip",[Tl]),Nn=Tl(),Ml="TooltipProvider",K1=700,ui="tooltip.open",[Z1,di]=In(Ml),$l=e=>{const{__scopeTooltip:t,delayDuration:r=K1,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:i}=e,s=m.useRef(!0),a=m.useRef(!1),l=m.useRef(0);return m.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),c.jsx(Z1,{scope:t,isOpenDelayedRef:s,delayDuration:r,onOpen:m.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:m.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,n)},[n]),isPointerInTransitRef:a,onPointerInTransitChange:m.useCallback(u=>{a.current=u},[]),disableHoverableContent:o,children:i})};$l.displayName=Ml;var Dr="Tooltip",[X1,Lr]=In(Dr),Fl=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o,onOpenChange:i,disableHoverableContent:s,delayDuration:a}=e,l=di(Dr,e.__scopeTooltip),u=Nn(t),[d,h]=m.useState(null),p=En(),g=m.useRef(0),w=s??l.disableHoverableContent,f=a??l.delayDuration,v=m.useRef(!1),[_,x]=Il({prop:n,defaultProp:o??!1,onChange:O=>{O?(l.onOpen(),document.dispatchEvent(new CustomEvent(ui))):l.onClose(),i==null||i(O)},caller:Dr}),T=m.useMemo(()=>_?v.current?"delayed-open":"instant-open":"closed",[_]),S=m.useCallback(()=>{window.clearTimeout(g.current),g.current=0,v.current=!1,x(!0)},[x]),A=m.useCallback(()=>{window.clearTimeout(g.current),g.current=0,x(!1)},[x]),k=m.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{v.current=!0,x(!0),g.current=0},f)},[f,x]);return m.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),c.jsx(N1,{...u,children:c.jsx(X1,{scope:t,contentId:p,open:_,stateAttribute:T,trigger:d,onTriggerChange:h,onTriggerEnter:m.useCallback(()=>{l.isOpenDelayedRef.current?k():S()},[l.isOpenDelayedRef,k,S]),onTriggerLeave:m.useCallback(()=>{w?A():(window.clearTimeout(g.current),g.current=0)},[A,w]),onOpen:S,onClose:A,disableHoverableContent:w,children:r})})};Fl.displayName=Dr;var fi="TooltipTrigger",Bl=m.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Lr(fi,r),i=di(fi,r),s=Nn(r),a=m.useRef(null),l=Te(t,a,o.onTriggerChange),u=m.useRef(!1),d=m.useRef(!1),h=m.useCallback(()=>u.current=!1,[]);return m.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),c.jsx(M1,{asChild:!0,...s,children:c.jsx(he.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:l,onPointerMove:pe(e.onPointerMove,p=>{p.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:pe(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:pe(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:pe(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:pe(e.onBlur,o.onClose),onClick:pe(e.onClick,o.onClose)})})});Bl.displayName=fi;var pi="TooltipPortal",[J1,em]=In(pi,{forceMount:void 0}),Ul=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,i=Lr(pi,t);return c.jsx(J1,{scope:t,forceMount:r,children:c.jsx(Xt,{present:r||i.open,children:c.jsx(ci,{asChild:!0,container:o,children:n})})})};Ul.displayName=pi;var Jt="TooltipContent",zl=m.forwardRef((e,t)=>{const r=em(Jt,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...i}=e,s=Lr(Jt,e.__scopeTooltip);return c.jsx(Xt,{present:n||s.open,children:s.disableHoverableContent?c.jsx(Hl,{side:o,...i,ref:t}):c.jsx(tm,{side:o,...i,ref:t})})}),tm=m.forwardRef((e,t)=>{const r=Lr(Jt,e.__scopeTooltip),n=di(Jt,e.__scopeTooltip),o=m.useRef(null),i=Te(t,o),[s,a]=m.useState(null),{trigger:l,onClose:u}=r,d=o.current,{onPointerInTransitChange:h}=n,p=m.useCallback(()=>{a(null),h(!1)},[h]),g=m.useCallback((w,f)=>{const v=w.currentTarget,_={x:w.clientX,y:w.clientY},x=im(_,v.getBoundingClientRect()),T=sm(_,x),S=am(f.getBoundingClientRect()),A=cm([...T,...S]);a(A),h(!0)},[h]);return m.useEffect(()=>()=>p(),[p]),m.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,p]),m.useEffect(()=>{if(s){const w=f=>{const v=f.target,_={x:f.clientX,y:f.clientY},x=(l==null?void 0:l.contains(v))||(d==null?void 0:d.contains(v)),T=!lm(_,s);x?p():T&&(p(),u())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[l,d,s,u,p]),c.jsx(Hl,{...e,ref:i})}),[rm,nm]=In(Dr,{isInside:!1}),om=Jp("TooltipContent"),Hl=m.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...a}=e,l=Lr(Jt,r),u=Nn(r),{onClose:d}=l;return m.useEffect(()=>(document.addEventListener(ui,d),()=>document.removeEventListener(ui,d)),[d]),m.useEffect(()=>{if(l.trigger){const h=p=>{const g=p.target;g!=null&&g.contains(l.trigger)&&d()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[l.trigger,d]),c.jsx(Qo,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:h=>h.preventDefault(),onDismiss:d,children:c.jsxs($1,{"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:n}),c.jsx(rm,{scope:r,isInside:!0,children:c.jsx(Y1,{id:l.contentId,role:"tooltip",children:o||n})})]})})});zl.displayName=Jt;var Wl="TooltipArrow",Vl=m.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Nn(r);return nm(Wl,r).isInside?null:c.jsx(F1,{...o,...n,ref:t})});Vl.displayName=Wl;function im(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(r,n,o,i)){case i:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function sm(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function am(e){const{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}function lm(e,t){const{x:r,y:n}=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,h=l.x,p=l.y;d>n!=p>n&&r<(h-u)*(n-d)/(p-d)+u&&(o=!o)}return o}function cm(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),um(t)}function um(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];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 r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const i=r[r.length-1],s=r[r.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))r.pop();else break}r.push(o)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var dm=$l,fm=Fl,pm=Bl,hm=Ul,mm=zl,gm=Vl;const Gl={tooltip:"tooltip__nUuSh",tooltipArrow:"tooltipArrow__W2w-f"},ql=({children:e,open:t,displayName:r,tooltipContent:n,className:o,disabled:i,delayDuration:s=300,side:a="right",sideOffset:l=0})=>{const[u,d]=C.useState(!1),h=t!==void 0,g=i?!1:h?t:u,w=f=>{i||h||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:D(Gl.tooltip,o),side:a,sideOffset:l,children:[r,n,c.jsx(gm,{className:Gl.tooltipArrow})]})})]})})};ql.displayName="Tooltip";const Ql={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"},Yl=({className:e,color:t="white",size:r=80,thickness:n})=>{const o=D(Ql.spinner,Ql[`spinner-${t}`],e),i=n??Math.max(r/12,2);return c.jsx("span",{style:{width:r,height:r,borderWidth:i},className:o})};Yl.displayName="Spinner";const Mn={switch:"switch__0b2av",disabled:"disabled__KpauE",checked:"checked__2-JV-",thumb:"thumb__fEuKD"},Kl=C.forwardRef(({checked:e,defaultChecked:t=!1,onCheckedChange:r,disabled:n=!1,id:o,className:i,name:s,"aria-label":a,"aria-labelledby":l,"aria-describedby":u,...d},h)=>{const[p,g]=C.useState(t),w=e!==void 0,f=w?!!e:p,v=()=>{if(n)return;const x=!f;w||g(x),r==null||r(x)},_=x=>{(x.key===" "||x.key==="Enter")&&(x.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:n,id:o,name:s,className:D(Mn.switch,{[Mn.checked]:f,[Mn.disabled]:n}),onClick:v,onKeyDown:_,...d,children:c.jsx("span",{className:Mn.thumb,"aria-hidden":"true"})})});Kl.displayName="Switch";const $e={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"},Zl=C.createContext(null),hi=()=>{const e=C.useContext(Zl);if(!e)throw new Error("Tabs components must be used within a Tabs provider");return e},vm=({defaultValue:e,value:t,onValueChange:r,orientation:n="horizontal",className:o="",children:i})=>{const[s,a]=C.useState(e||""),l=t!==void 0,u=l?t:s,d=h=>{l||a(h),r==null||r(h)};return c.jsx(Zl.Provider,{value:{value:u,onValueChange:d,orientation:n},children:c.jsx("div",{className:D($e.tabsRoot,o),children:i})})},ym=({className:e="",children:t})=>{const{orientation:r}=hi(),n=C.useRef(null),o=i=>{var u;const s=(u=n.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":r==="horizontal"&&(i.preventDefault(),l=a>0?a-1:s.length-1);break;case"ArrowRight":r==="horizontal"&&(i.preventDefault(),l=a<s.length-1?a+1:0);break;case"ArrowUp":r==="vertical"&&(i.preventDefault(),l=a>0?a-1:s.length-1);break;case"ArrowDown":r==="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:n,role:"tablist","aria-orientation":r,onKeyDown:o,className:D($e.tabsList,r==="horizontal"?$e.tabsListHorizontal:$e.tabsListVertical,e),children:t})},bm=({value:e,disabled:t=!1,className:r="",children:n})=>{const{value:o,onValueChange:i,orientation:s}=hi(),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:D($e.tabsTrigger,s==="horizontal"?$e.tabsTriggerHorizontal:$e.tabsTriggerVertical,a&&$e.tabsTriggerActive,t&&$e.tabsTriggerDisabled,r),children:n})},wm=({value:e,className:t="",children:r})=>{const{value:n}=hi();return n===e?c.jsx("div",{role:"tabpanel",id:`content-${e}`,"aria-labelledby":`trigger-${e}`,tabIndex:0,className:D($e.tabsContent,t),children:r}):null},Xl=({className:e,state:t="open",onClick:r})=>t==="open"?c.jsxs("svg",{className:e,onClick:r,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:r,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"})}),Jl={PasswordInput:"PasswordInput__GDJDN",eyeIcon:"eyeIcon__kDExG"},_m=C.forwardRef((e,t)=>{const[r,n]=C.useState("password"),o=C.useCallback(()=>{n(i=>i==="password"?"text":"password")},[n]);return c.jsxs("div",{className:D(Jl.PasswordInput,e.className),children:[c.jsx(_n,{type:r,...e,ref:t}),c.jsx(Xl,{className:Jl.eyeIcon,onClick:o,state:r==="password"?"open":"closed"})]})});var mi="focusScope.autoFocusOnMount",gi="focusScope.autoFocusOnUnmount",ec={bubbles:!1,cancelable:!0},xm="FocusScope",tc=m.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,l]=m.useState(null),u=qt(o),d=qt(i),h=m.useRef(null),p=Te(t,f=>l(f)),g=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(n){let f=function(T){if(g.paused||!a)return;const S=T.target;a.contains(S)?h.current=S:ct(h.current,{select:!0})},v=function(T){if(g.paused||!a)return;const S=T.relatedTarget;S!==null&&(a.contains(S)||ct(h.current,{select:!0}))},_=function(T){if(document.activeElement===document.body)for(const A of T)A.removedNodes.length>0&&ct(a)};document.addEventListener("focusin",f),document.addEventListener("focusout",v);const x=new MutationObserver(_);return a&&x.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",v),x.disconnect()}}},[n,a,g.paused]),m.useEffect(()=>{if(a){oc.add(g);const f=document.activeElement;if(!a.contains(f)){const _=new CustomEvent(mi,ec);a.addEventListener(mi,u),a.dispatchEvent(_),_.defaultPrevented||(Cm(Pm(rc(a)),{select:!0}),document.activeElement===f&&ct(a))}return()=>{a.removeEventListener(mi,u),setTimeout(()=>{const _=new CustomEvent(gi,ec);a.addEventListener(gi,d),a.dispatchEvent(_),_.defaultPrevented||ct(f??document.body,{select:!0}),a.removeEventListener(gi,d),oc.remove(g)},0)}}},[a,u,d,g]);const w=m.useCallback(f=>{if(!r&&!n||g.paused)return;const v=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,_=document.activeElement;if(v&&_){const x=f.currentTarget,[T,S]=Em(x);T&&S?!f.shiftKey&&_===S?(f.preventDefault(),r&&ct(T,{select:!0})):f.shiftKey&&_===T&&(f.preventDefault(),r&&ct(S,{select:!0})):_===x&&f.preventDefault()}},[r,n,g.paused]);return c.jsx(he.div,{tabIndex:-1,...s,ref:p,onKeyDown:w})});tc.displayName=xm;function Cm(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(ct(n,{select:t}),document.activeElement!==r)return}function Em(e){const t=rc(e),r=nc(t,e),n=nc(t.reverse(),e);return[r,n]}function rc(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function nc(e,t){for(const r of e)if(!Sm(r,{upTo:t}))return r}function Sm(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 Tm(e){return e instanceof HTMLInputElement&&"select"in e}function ct(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Tm(e)&&t&&e.select()}}var oc=Am();function Am(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=ic(e,t),e.unshift(t)},remove(t){var r;e=ic(e,t),(r=e[0])==null||r.resume()}}}function ic(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function Pm(e){return e.filter(t=>t.tagName!=="A")}var vi=0;function Om(){m.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??sc()),document.body.insertAdjacentElement("beforeend",e[1]??sc()),vi++,()=>{vi===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),vi--}},[])}function sc(){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 $n="right-scroll-bar-position",Fn="width-before-scroll-bar",km="with-scroll-bars-hidden",Rm="--removed-body-scroll-bar-size";function yi(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function jm(e,t){var r=C.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var Dm=typeof window<"u"?m.useLayoutEffect:m.useEffect,ac=new WeakMap;function Lm(e,t){var r=jm(null,function(n){return e.forEach(function(o){return yi(o,n)})});return Dm(function(){var n=ac.get(r);if(n){var o=new Set(n),i=new Set(e),s=r.current;o.forEach(function(a){i.has(a)||yi(a,null)}),i.forEach(function(a){o.has(a)||yi(a,s)})}ac.set(r,e)},[e]),r}function Im(e){return e}function Nm(e,t){t===void 0&&(t=Im);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(i){var s=t(i,n);return r.push(s),function(){r=r.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(n=!0;r.length;){var s=r;r=[],s.forEach(i)}r={push:function(a){return i(a)},filter:function(){return r}}},assignMedium:function(i){n=!0;var s=[];if(r.length){var a=r;r=[],a.forEach(i),s=r}var l=function(){var d=s;s=[],d.forEach(i)},u=function(){return Promise.resolve().then(l)};u(),r={push:function(d){s.push(d),u()},filter:function(d){return s=s.filter(d),r}}}};return o}function Mm(e){e===void 0&&(e={});var t=Nm(null);return t.options=De({async:!0,ssr:!1},e),t}var lc=function(e){var t=e.sideCar,r=Ls(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return m.createElement(n,De({},r))};lc.isSideCarExport=!0;function $m(e,t){return e.useMedium(t),lc}var cc=Mm(),bi=function(){},Bn=m.forwardRef(function(e,t){var r=m.useRef(null),n=m.useState({onScrollCapture:bi,onWheelCapture:bi,onTouchMoveCapture:bi}),o=n[0],i=n[1],s=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,h=e.shards,p=e.sideCar,g=e.noRelative,w=e.noIsolation,f=e.inert,v=e.allowPinchZoom,_=e.as,x=_===void 0?"div":_,T=e.gapMode,S=Ls(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),A=p,k=Lm([r,t]),O=De(De({},S),o);return m.createElement(m.Fragment,null,d&&m.createElement(A,{sideCar:cc,removeScrollBar:u,shards:h,noRelative:g,noIsolation:w,inert:f,setCallbacks:i,allowPinchZoom:!!v,lockRef:r,gapMode:T}),s?m.cloneElement(m.Children.only(a),De(De({},O),{ref:k})):m.createElement(x,De({},O,{className:l,ref:k}),a))});Bn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Bn.classNames={fullWidth:Fn,zeroRight:$n};var Fm=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Bm(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Fm();return t&&e.setAttribute("nonce",t),e}function Um(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function zm(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Hm=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Bm())&&(Um(t,r),zm(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Wm=function(){var e=Hm();return function(t,r){m.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},uc=function(){var e=Wm(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},Vm={left:0,top:0,right:0,gap:0},wi=function(e){return parseInt(e||"",10)||0},Gm=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[wi(r),wi(n),wi(o)]},qm=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Vm;var t=Gm(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},Qm=uc(),er="data-scroll-locked",Ym=function(e,t,r,n){var o=e.left,i=e.top,s=e.right,a=e.gap;return r===void 0&&(r="margin"),`
|
|
235
|
+
.`.concat(km,` {
|
|
211
236
|
overflow: hidden `).concat(n,`;
|
|
212
237
|
padding-right: `).concat(a,"px ").concat(n,`;
|
|
213
238
|
}
|
|
214
|
-
body[`).concat(
|
|
239
|
+
body[`).concat(er,`] {
|
|
215
240
|
overflow: hidden `).concat(n,`;
|
|
216
241
|
overscroll-behavior: contain;
|
|
217
242
|
`).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
|
|
@@ -240,14 +265,14 @@ to {
|
|
|
240
265
|
margin-right: 0 `).concat(n,`;
|
|
241
266
|
}
|
|
242
267
|
|
|
243
|
-
body[`).concat(
|
|
244
|
-
`).concat(
|
|
268
|
+
body[`).concat(er,`] {
|
|
269
|
+
`).concat(Rm,": ").concat(a,`px;
|
|
245
270
|
}
|
|
246
|
-
`)},
|
|
271
|
+
`)},dc=function(){var e=parseInt(document.body.getAttribute(er)||"0",10);return isFinite(e)?e:0},Km=function(){m.useEffect(function(){return document.body.setAttribute(er,(dc()+1).toString()),function(){var e=dc()-1;e<=0?document.body.removeAttribute(er):document.body.setAttribute(er,e.toString())}},[])},Zm=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;Km();var i=m.useMemo(function(){return qm(o)},[o]);return m.createElement(Qm,{styles:Ym(i,!t,o,r?"":"!important")})},_i=!1;if(typeof window<"u")try{var Un=Object.defineProperty({},"passive",{get:function(){return _i=!0,!0}});window.addEventListener("test",Un,Un),window.removeEventListener("test",Un,Un)}catch{_i=!1}var tr=_i?{passive:!1}:!1,Xm=function(e){return e.tagName==="TEXTAREA"},fc=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!Xm(e)&&r[t]==="visible")},Jm=function(e){return fc(e,"overflowY")},eg=function(e){return fc(e,"overflowX")},pc=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=hc(e,n);if(o){var i=mc(e,n),s=i[1],a=i[2];if(s>a)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},tg=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},rg=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},hc=function(e,t){return e==="v"?Jm(t):eg(t)},mc=function(e,t){return e==="v"?tg(t):rg(t)},ng=function(e,t){return e==="h"&&t==="rtl"?-1:1},og=function(e,t,r,n,o){var i=ng(e,window.getComputedStyle(t).direction),s=i*n,a=r.target,l=t.contains(a),u=!1,d=s>0,h=0,p=0;do{if(!a)break;var g=mc(e,a),w=g[0],f=g[1],v=g[2],_=f-v-i*w;(w||_)&&hc(e,a)&&(h+=_,p+=w);var x=a.parentNode;a=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(d&&Math.abs(h)<1||!d&&Math.abs(p)<1)&&(u=!0),u},zn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},gc=function(e){return[e.deltaX,e.deltaY]},vc=function(e){return e&&"current"in e?e.current:e},ig=function(e,t){return e[0]===t[0]&&e[1]===t[1]},sg=function(e){return`
|
|
247
272
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
248
273
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
249
|
-
`)},
|
|
274
|
+
`)},ag=0,rr=[];function lg(e){var t=m.useRef([]),r=m.useRef([0,0]),n=m.useRef(),o=m.useState(ag++)[0],i=m.useState(uc)[0],s=m.useRef(e);m.useEffect(function(){s.current=e},[e]),m.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var f=Zr([e.lockRef.current],(e.shards||[]).map(vc),!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=m.useCallback(function(f,v){if("touches"in f&&f.touches.length===2||f.type==="wheel"&&f.ctrlKey)return!s.current.allowPinchZoom;var _=zn(f),x=r.current,T="deltaX"in f?f.deltaX:x[0]-_[0],S="deltaY"in f?f.deltaY:x[1]-_[1],A,k=f.target,O=Math.abs(T)>Math.abs(S)?"h":"v";if("touches"in f&&O==="h"&&k.type==="range")return!1;var N=pc(O,k);if(!N)return!0;if(N?A=O:(A=O==="v"?"h":"v",N=pc(O,k)),!N)return!1;if(!n.current&&"changedTouches"in f&&(T||S)&&(n.current=A),!A)return!0;var M=n.current||A;return og(M,v,f,M==="h"?T:S)},[]),l=m.useCallback(function(f){var v=f;if(!(!rr.length||rr[rr.length-1]!==i)){var _="deltaY"in v?gc(v):zn(v),x=t.current.filter(function(A){return A.name===v.type&&(A.target===v.target||v.target===A.shadowParent)&&ig(A.delta,_)})[0];if(x&&x.should){v.cancelable&&v.preventDefault();return}if(!x){var T=(s.current.shards||[]).map(vc).filter(Boolean).filter(function(A){return A.contains(v.target)}),S=T.length>0?a(v,T[0]):!s.current.noIsolation;S&&v.cancelable&&v.preventDefault()}}},[]),u=m.useCallback(function(f,v,_,x){var T={name:f,delta:v,target:_,should:x,shadowParent:cg(_)};t.current.push(T),setTimeout(function(){t.current=t.current.filter(function(S){return S!==T})},1)},[]),d=m.useCallback(function(f){r.current=zn(f),n.current=void 0},[]),h=m.useCallback(function(f){u(f.type,gc(f),f.target,a(f,e.lockRef.current))},[]),p=m.useCallback(function(f){u(f.type,zn(f),f.target,a(f,e.lockRef.current))},[]);m.useEffect(function(){return rr.push(i),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",l,tr),document.addEventListener("touchmove",l,tr),document.addEventListener("touchstart",d,tr),function(){rr=rr.filter(function(f){return f!==i}),document.removeEventListener("wheel",l,tr),document.removeEventListener("touchmove",l,tr),document.removeEventListener("touchstart",d,tr)}},[]);var g=e.removeScrollBar,w=e.inert;return m.createElement(m.Fragment,null,w?m.createElement(i,{styles:sg(o)}):null,g?m.createElement(Zm,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function cg(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const ug=$m(cc,lg);var yc=m.forwardRef(function(e,t){return m.createElement(Bn,De({},e,{ref:t,sideCar:ug}))});yc.classNames=Bn.classNames;var dg=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},nr=new WeakMap,Hn=new WeakMap,Wn={},xi=0,bc=function(e){return e&&(e.host||bc(e.parentNode))},fg=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=bc(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},pg=function(e,t,r,n){var o=fg(t,Array.isArray(e)?e:[e]);Wn[r]||(Wn[r]=new WeakMap);var i=Wn[r],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 d=function(h){!h||l.has(h)||Array.prototype.forEach.call(h.children,function(p){if(a.has(p))d(p);else try{var g=p.getAttribute(n),w=g!==null&&g!=="false",f=(nr.get(p)||0)+1,v=(i.get(p)||0)+1;nr.set(p,f),i.set(p,v),s.push(p),f===1&&w&&Hn.set(p,!0),v===1&&p.setAttribute(r,"true"),w||p.setAttribute(n,"true")}catch(_){console.error("aria-hidden: cannot operate on ",p,_)}})};return d(t),a.clear(),xi++,function(){s.forEach(function(h){var p=nr.get(h)-1,g=i.get(h)-1;nr.set(h,p),i.set(h,g),p||(Hn.has(h)||h.removeAttribute(n),Hn.delete(h)),g||h.removeAttribute(r)}),xi--,xi||(nr=new WeakMap,nr=new WeakMap,Hn=new WeakMap,Wn={})}},hg=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=dg(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),pg(n,o,r,"aria-hidden")):function(){return null}},Vn="Dialog",[wc,zy]=Go(Vn),[mg,Oe]=wc(Vn),_c=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,a=m.useRef(null),l=m.useRef(null),[u,d]=Il({prop:n,defaultProp:o??!1,onChange:i,caller:Vn});return c.jsx(mg,{scope:t,triggerRef:a,contentRef:l,contentId:En(),titleId:En(),descriptionId:En(),open:u,onOpenChange:d,onOpenToggle:m.useCallback(()=>d(h=>!h),[d]),modal:s,children:r})};_c.displayName=Vn;var xc="DialogTrigger",gg=m.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Oe(xc,r),i=Te(t,o.triggerRef);return c.jsx(he.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Si(o.open),...n,ref:i,onClick:pe(e.onClick,o.onOpenToggle)})});gg.displayName=xc;var Ci="DialogPortal",[vg,Cc]=wc(Ci,{forceMount:void 0}),Ec=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,i=Oe(Ci,t);return c.jsx(vg,{scope:t,forceMount:r,children:m.Children.map(n,s=>c.jsx(Xt,{present:r||i.open,children:c.jsx(ci,{asChild:!0,container:o,children:s})}))})};Ec.displayName=Ci;var Gn="DialogOverlay",Sc=m.forwardRef((e,t)=>{const r=Cc(Gn,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=Oe(Gn,e.__scopeDialog);return i.modal?c.jsx(Xt,{present:n||i.open,children:c.jsx(bg,{...o,ref:t})}):null});Sc.displayName=Gn;var yg=Vo("DialogOverlay.RemoveScroll"),bg=m.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Oe(Gn,r);return c.jsx(yc,{as:yg,allowPinchZoom:!0,shards:[o.contentRef],children:c.jsx(he.div,{"data-state":Si(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Ot="DialogContent",Tc=m.forwardRef((e,t)=>{const r=Cc(Ot,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=Oe(Ot,e.__scopeDialog);return c.jsx(Xt,{present:n||i.open,children:i.modal?c.jsx(wg,{...o,ref:t}):c.jsx(_g,{...o,ref:t})})});Tc.displayName=Ot;var wg=m.forwardRef((e,t)=>{const r=Oe(Ot,e.__scopeDialog),n=m.useRef(null),o=Te(t,r.contentRef,n);return m.useEffect(()=>{const i=n.current;if(i)return hg(i)},[]),c.jsx(Ac,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:pe(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),(s=r.triggerRef.current)==null||s.focus()}),onPointerDownOutside:pe(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&i.preventDefault()}),onFocusOutside:pe(e.onFocusOutside,i=>i.preventDefault())})}),_g=m.forwardRef((e,t)=>{const r=Oe(Ot,e.__scopeDialog),n=m.useRef(!1),o=m.useRef(!1);return c.jsx(Ac,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,i),i.defaultPrevented||(n.current||(a=r.triggerRef.current)==null||a.focus(),i.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:i=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(n.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((u=r.triggerRef.current)==null?void 0:u.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),Ac=m.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,a=Oe(Ot,r),l=m.useRef(null),u=Te(t,l);return Om(),c.jsxs(c.Fragment,{children:[c.jsx(tc,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i,children:c.jsx(Qo,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Si(a.open),...s,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),c.jsxs(c.Fragment,{children:[c.jsx(xg,{titleId:a.titleId}),c.jsx(Eg,{contentRef:l,descriptionId:a.descriptionId})]})]})}),Ei="DialogTitle",Pc=m.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Oe(Ei,r);return c.jsx(he.h2,{id:o.titleId,...n,ref:t})});Pc.displayName=Ei;var Oc="DialogDescription",kc=m.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Oe(Oc,r);return c.jsx(he.p,{id:o.descriptionId,...n,ref:t})});kc.displayName=Oc;var Rc="DialogClose",jc=m.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Oe(Rc,r);return c.jsx(he.button,{type:"button",...n,ref:t,onClick:pe(e.onClick,()=>o.onOpenChange(!1))})});jc.displayName=Rc;function Si(e){return e?"open":"closed"}var Dc="DialogTitleWarning",[Hy,Lc]=nh(Dc,{contentName:Ot,titleName:Ei,docsSlug:"dialog"}),xg=({titleId:e})=>{const t=Lc(Dc),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
250
275
|
|
|
251
276
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
252
277
|
|
|
253
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return m.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},fg="DialogDescriptionWarning",pg=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Oc(fg).contentName}}.`;return m.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},hg=gc,mg=bc,gg=wc,vg=_c,yg=Cc,bg=Sc,wg=Ac;const kc={Overlay:"Overlay__M5Z83",Content:"Content__wAkP4"},kt={Header:"Header__VHxNf",Content:"Content__I04qM",Close:"Close__xSN-7",Title:"Title__Dznh6",Footer:"Footer__-8gzQ",Actions:"Actions__kKF2Q"},Rc=C.forwardRef(({children:e,className:t,...r},n)=>{const o=D(kt.Header,t);return c.jsx("div",{ref:n,className:o,...r,children:e})});Rc.displayName="Header";const jc=C.forwardRef(({children:e,className:t,...r},n)=>{const o=D(kt.Content,t);return c.jsx("div",{ref:n,className:o,...r,children:e})});jc.displayName="Content";const Dc=C.forwardRef(({children:e,className:t,...r},n)=>{const o=D(kt.Footer,t);return c.jsx("div",{ref:n,className:o,...r,children:e})});Dc.displayName="Footer";const Lc=C.forwardRef(({children:e,className:t,...r},n)=>{const o=D(kt.Title,t);return c.jsx(yg,{ref:n,className:o,...r,children:e})});Lc.displayName="Title";const Ic=C.forwardRef(({className:e,...t},r)=>{const n=D(kt.Close,e);return c.jsx(wg,{ref:r,asChild:!0,className:n,...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"})})})});Ic.displayName="Close";const Nc=C.forwardRef(({children:e,className:t,...r},n)=>{const o=D(kt.Actions,t);return c.jsx("div",{ref:n,className:o,...r,children:e})});Nc.displayName="Actions";const Mc=C.forwardRef(({children:e,className:t,...r},n)=>{const o=D(kt.Description,t);return c.jsx("div",{ref:n,className:o,...r,children:e})});Mc.displayName="Description";const ae=({children:e,onClose:t,open:r=!1,className:n})=>{const o=()=>{t==null||t()};return c.jsx(hg,{onOpenChange:o,open:r,children:c.jsxs(mg,{children:[c.jsx(gg,{className:kc.Overlay}),c.jsxs(vg,{children:[c.jsx(bg,{}),c.jsx("div",{className:D(kc.Content,n),children:e})]})]})})};ae.displayName="Dialog",ae.Header=Rc,ae.Content=jc,ae.Footer=Dc,ae.Actions=Nc,ae.Title=Lc,ae.Description=Mc,ae.Close=Ic;const $c={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"},_g=({children:e,variant:t="solid",className:r})=>{const n=D($c.pill,$c[`pill--${t}`],r);return c.jsx("div",{className:n,children:e})},Fc={DialogContent:"DialogContent__-WjG9",Message:"Message__AUgVP"},Bc=({loading:e,title:t,children:r,className:n,onClose:o,onConfirm:i,...s})=>c.jsxs(ae,{...s,className:D(Fc.DialogContent,n),children:[c.jsxs(ae.Header,{children:[c.jsx(ae.Title,{children:t}),c.jsx(ae.Close,{onClick:o})]}),c.jsx(ae.Content,{children:typeof r=="string"?c.jsx("p",{className:Fc.Message,children:r}):r}),c.jsx(ae.Footer,{children:c.jsxs(ae.Actions,{children:[c.jsx(bn,{onClick:o,disabled:e,variant:"outlined",children:"Cancel"}),c.jsx(bn,{onClick:i,disabled:e,loading:e,variant:"contained",children:"Confirm"})]})})]});Bc.displayName="ConfirmDialog";const qn={container:"container__AjtYJ",title:"title__A2vCu",description:"description__bP6Ig",mailToText:"mailToText__SdlsE"},Uc=()=>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)"})]});Uc.displayName="WarningIcon";const xg="support@bluealba.com",Cg="@bluealba/pae-shell-ui",Ti=()=>{const{supportEmail:e=xg}=ps(Cg),t=`mailto:${e}?Subject=Support`;return c.jsxs("div",{className:qn.container,children:[c.jsx(Uc,{}),c.jsx("div",{className:qn.title,children:"Oops! Something went wrong"}),c.jsxs("div",{className:qn.description,children:["If the error persists, ",c.jsx("a",{className:qn.mailToText,href:t,children:"contact the administrator."})]})]})};Ti.displayName="ErrorState";const ke={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"},zc=C.forwardRef(({children:e,className:t,selected:r,disabled:n=!1,...o},i)=>{const s=D(ke.Item,{[ke["Item--selected"]]:r,[ke["Item--disabled"]]:n},t);return c.jsx("li",{ref:i,className:s,role:"listitem","aria-disabled":n,...o,children:e})});zc.displayName="Item";const Hc=C.forwardRef(({children:e,className:t,...r},n)=>{const o=D(ke.Title,t);return c.jsx("h3",{ref:n,className:o,...r,children:e})});Hc.displayName="Title";const Wc=C.forwardRef(({children:e,className:t,...r},n)=>{const o=D(ke.Description,t);return c.jsx("p",{ref:n,className:o,...r,children:e})});Wc.displayName="Description";const Ai=({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"})]});Ai.displayName="HorizontalDots";const Vc=C.forwardRef(({children:e,className:t,onClick:r,...n},o)=>{const i=C.useRef(null),[s,a]=C.useState(!1),l=D(ke.Actions,t),u=()=>{const w=At["DropdownList--open"],f=At["DropdownList--closed"];document.querySelectorAll(`.${w}`).forEach(_=>{_!==i.current&&(_.classList.remove(w),_.classList.add(f))})},d=w=>{w.stopPropagation(),s?h():(a(!0),r==null||r(w))},h=()=>{a(!1)},p=w=>{w.key==="Escape"&&h()},g=w=>{i.current&&!i.current.contains(w.target)&&h()};return C.useEffect(()=>(s?(u(),document.addEventListener("keydown",p),document.addEventListener("click",g)):(document.removeEventListener("keydown",p),document.removeEventListener("click",g)),()=>{document.removeEventListener("keydown",p),document.removeEventListener("click",g)}),[s]),c.jsxs("div",{ref:o,className:l,onClick:d,role:"button",tabIndex:0,"data-testid":"actions",...n,children:[c.jsx(Ai,{}),c.jsx(xn,{align:"left",ref:i,open:s,"data-testid":"actions-dropdown",role:"menu","aria-label":"Actions",children:e})]})});Vc.displayName="Actions";const Gc=C.forwardRef(({children:e,className:t,...r},n)=>{const o=D(ke.Action,t);return c.jsx("button",{ref:n,className:o,...r,children:e})});Gc.displayName="Action";const qc=C.forwardRef(({children:e,className:t,...r},n)=>{const o=D(ke.Icon,t);return c.jsx("div",{ref:n,className:o,...r,children:e})});qc.displayName="Icon";const Fe=C.forwardRef(({children:e,className:t,size:r="medium",variant:n,...o},i)=>{const s=D(ke.List,{[ke[`List--${r}`]]:r,[ke[`List--${n}`]]:n},t);return c.jsx("ul",{ref:i,className:s,role:"list",...o,children:e})});Fe.displayName="List",Fe.Item=zc,Fe.Badges=Uo,Fe.Badge=Bo,Fe.Title=Hc,Fe.Description=Wc,Fe.Actions=Vc,Fe.Action=Gc,Fe.Icon=qc;const Qe={Navigation:"Navigation__uylxk",PaginationContent:"PaginationContent__UpLw0",PaginationEllipsis:"PaginationEllipsis__perWk",PaginationLink:"PaginationLink__GVUZj",Active:"Active__u1Ahy",Disabled:"Disabled__8WM0y",Prev:"Prev__wp4hc",Next:"Next__eVyL5"},Qc=({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"})]});Qc.displayName="ChevronRight";const Yc=({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"})]});Yc.displayName="ChevronLeft";const Pi=({className:e,...t})=>c.jsx("nav",{role:"navigation","aria-label":"pagination",className:D(Qe.Navigation,e),...t});Pi.displayName="Pagination";const Oi=m.forwardRef(({className:e,...t},r)=>c.jsx("ul",{ref:r,className:D(Qe.PaginationContent,e),...t}));Oi.displayName="PaginationContent";const Ir=m.forwardRef(({className:e,...t},r)=>c.jsx("li",{ref:r,className:e,...t}));Ir.displayName="PaginationItem";const Nr=({className:e,isActive:t,...r})=>c.jsx("a",{"aria-current":t?"page":void 0,className:D(Qe.PaginationLink,t&&Qe.Active,e),...r});Nr.displayName="PaginationLink";const ki=({className:e,disabled:t,...r})=>c.jsxs(Nr,{"aria-label":"Go to previous page",className:D(t&&Qe.Disabled,Qe.Prev,e),...r,children:[c.jsx(Yc,{}),c.jsx("span",{children:"Previous"})]});ki.displayName="PaginationPrevious";const Ri=({className:e,disabled:t,...r})=>c.jsxs(Nr,{"aria-label":"Go to next page",className:D(t&&Qe.Disabled,Qe.Next,e),...r,children:[c.jsx("span",{children:"Next"}),c.jsx(Qc,{})]});Ri.displayName="PaginationNext";const ji=({className:e,...t})=>c.jsx("span",{"aria-hidden":!0,className:D(Qe.PaginationEllipsis,e),...t,children:c.jsx(Ai,{})});ji.displayName="PaginationEllipsis";function Eg(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 Kc={exports:{}};(function(e,t){(function(r,n){typeof Eg=="function"?e.exports=n():r.pluralize=n()})(Nu,function(){var r=[],n=[],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(_,x){return v[x]||""})}function d(f,v){return f.replace(v[0],function(_,x){var T=u(v[1],arguments);return l(_===""?f[x-1]:_,T)})}function h(f,v,_){if(!f.length||o.hasOwnProperty(f))return v;for(var x=_.length;x--;){var T=_[x];if(T[0].test(v))return d(v,T)}return v}function p(f,v,_){return function(x){var T=x.toLowerCase();return v.hasOwnProperty(T)?l(x,T):f.hasOwnProperty(T)?l(x,f[T]):h(T,x,_)}}function g(f,v,_,x){return function(T){var S=T.toLowerCase();return v.hasOwnProperty(S)?!0:f.hasOwnProperty(S)?!1:h(S,S,_)===S}}function w(f,v,_){var x=v===1?w.singular(f):w.plural(f);return(_?v+" ":"")+x}return w.plural=p(s,i,r),w.isPlural=g(s,i,r),w.singular=p(i,s,n),w.isSingular=g(i,s,n),w.addPluralRule=function(f,v){r.push([a(f),v])},w.addSingularRule=function(f,v){n.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})})(Kc);var Sg=Kc.exports;const Tg=Mu(Sg),Di=({count:e,singularText:t,children:r=(n,o)=>`${n} ${o}`})=>c.jsx(c.Fragment,{children:r(e,Tg(t,e))});Di.displayName="PluralizeCounter";const me={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"},Zc={EmptyStateContainer:"EmptyStateContainer__Q9FEb",Message:"Message__IHK6M"},Xc=({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"})})})]});Xc.displayName="EmptyStateIcon";const Li=({message:e="No results found"})=>c.jsxs("div",{className:D(Zc.EmptyStateContainer),children:[c.jsx(Xc,{}),c.jsx("p",{className:Zc.Message,children:e})]});Li.displayName="EmptyState";const Ag=(e,t,r=1)=>{if(e<=1)return["1"];const n=[],o=i=>{(n.length===0||n[n.length-1]!==i)&&n.push(i)};o(1),t-r>2&&o("...");for(let i=Math.max(2,t-r);i<=Math.min(e-1,t+r);i++)o(i);return t+r<e-1&&o("..."),o(e),n.map(String)},Jc=({page:e,totalPages:t,onPageChange:r})=>{const n=e===1,o=e===t;return c.jsx(Pi,{className:me.Pagination,children:c.jsxs(Oi,{children:[c.jsx(Ir,{children:c.jsx(ki,{className:D({[me.PointerNone]:n}),onClick:()=>!n&&r(e-1)})}),Ag(t,e).map((i,s)=>c.jsxs(Ir,{children:[i==="..."&&c.jsx(ji,{}),i!=="..."&&c.jsx(Nr,{isActive:+i===e,onClick:()=>+i!==e&&r(+i),children:i})]},s)),c.jsx(Ir,{children:c.jsx(Ri,{className:D({[me.PointerNone]:o}),onClick:()=>!o&&r(e+1)})})]})})};Jc.displayName="TablePagination";const eu=({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"})});eu.displayName="ArrowDown";const tu=({columns:e,data:t,isLoading:r,totalCount:n=0,headerLabel:o,sort:i,loadingConfig:s,pagination:a,onRowClick:l})=>{const{count:u=5,height:d=40}=s||{},h=v=>v.sortName??v.name,p=v=>D({[me.Cell]:!0,[me.Center]:v.align==="center",[me.Right]:v.align==="right",[me.Sortable]:v.isSortable}),g=v=>{if(!i)return"";const _=h(v);return D({[me.SortIcon]:!0,[me.Active]:v.isSortable&&i.field===_,[me.Rotate]:i.field===_&&i.direction==="asc"})},w=v=>()=>l==null?void 0:l(v),f=v=>()=>{if(!i||!v.isSortable)return;const{field:_,direction:x,onSort:T}=i,S=h(v);_===S?T(S,x==="asc"?"desc":"asc"):T(S,"asc")};return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:me.TableContainer,children:[o&&c.jsx("div",{className:me.TableHeader,children:c.jsx(Di,{count:n,singularText:o,children:(v,_)=>`${v} ${_}`})}),c.jsxs("table",{className:me.Table,children:[c.jsx("thead",{children:c.jsx("tr",{children:e.map(v=>c.jsx("th",{children:c.jsxs("div",{className:p(v),onClick:f(v),children:[c.jsx("span",{children:v.displayName}),v.isSortable&&c.jsx(eu,{className:g(v)})]})},v.name))})}),c.jsx("tbody",{children:c.jsxs(it,{children:[c.jsx(it.When,{condition:r,children:[...Array(u).keys()].map(v=>c.jsx("tr",{children:c.jsx("td",{colSpan:e.length,style:{padding:4},children:c.jsx(Cn,{height:d})})},v))}),c.jsx(it.When,{condition:!t.length,children:c.jsx("tr",{children:c.jsx("td",{colSpan:e.length,children:c.jsx(Li,{})})})}),c.jsx(it.Else,{children:t.map((v,_)=>c.jsx("tr",{className:l&&me.selectable,onClick:w(v),children:e.map(x=>c.jsx("td",{style:x.width?{width:x.width}:{},children:c.jsx("div",{className:p(x),children:x.cellRenderer?x.cellRenderer(v):x.valueGetter?x.valueGetter(v):v[x.name]})},`${x.name}-${_}`))},_))})]})})]})]}),a&&c.jsx(Jc,{...a})]})};tu.displayName="Table";const Qn={alert:"alert__LblpE",default:"default__mgO6A",destructive:"destructive__bLNSM",alertTitle:"alertTitle__gblKf",alertDescription:"alertDescription__BuVHV"},Yn=({className:e,variant:t="default",children:r,...n})=>c.jsx("div",{"data-slot":"alert",role:"alert",className:D(Qn.alert,Qn[t],e),...n,children:r}),Pg=m.forwardRef(({children:e,className:t,...r},n)=>c.jsx("div",{ref:n,"data-slot":"alert-title",className:D(Qn.alertTitle,t),...r,children:e})),Og=m.forwardRef(({children:e,className:t,...r},n)=>c.jsx("div",{ref:n,"data-slot":"alert-description",className:D(Qn.alertDescription,t),...r,children:e}));Yn.displayName="Alert",Yn.Title=Pg,Yn.Description=Og;function ru(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Kn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ru(Object(r),!0).forEach(function(n){kg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ru(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nu(e){return(nu=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 kg(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ii(e){return(Ii=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 ou(e,t){var r;if(typeof(r=t.domElement?function(){return t.domElement}:t.domElementGetter?t.domElementGetter:e.domElementGetter?e.domElementGetter:function(n){var o=n.appName||n.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(Ii(r)));return function(){var n=r(t);if(!(n 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(Ii(n)));return n}}var Mr=null;try{Mr=require("react").createContext()}catch{}var Rg={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 jg(e){if(nu(e)!=="object")throw new Error("single-spa-react requires a configuration object");var t,r=Kn(Kn({},Rg),e);if(!r.React)throw new Error("single-spa-react must be passed opts.React");if(!r.ReactDOM&&!r.ReactDOMClient)throw new Error("single-spa-react must be passed opts.ReactDOM or opts.ReactDOMClient");if(r.renderType||((t=r.ReactDOMClient)!==null&&t!==void 0&&t.createRoot?r.renderType="createRoot":r.renderType="render"),!r.rootComponent&&!r.loadRootComponent)throw new Error("single-spa-react must be passed opts.rootComponent or opts.loadRootComponent");if(r.errorBoundary&&typeof r.errorBoundary!="function")throw Error("The errorBoundary opt for single-spa-react must either be omitted or be a function that returns React elements");!Mr&&r.React.createContext&&(Mr=r.React.createContext()),r.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}(r);var n={bootstrap:Dg.bind(null,r),mount:Lg.bind(null,r),unmount:Ig.bind(null,r)};return r.parcelCanUpdate&&(n.update=Ng.bind(null,r)),n}function Dg(e,t){return e.rootComponent?Promise.resolve():e.loadRootComponent(t).then(function(r){e.rootComponent=r})}function Lg(e,t){return new Promise(function(r,n){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=iu(e,t,function(){r(this)}),i=ou(e,t)(),s=function(a){var l=a.reactDom,u=a.renderType,d=a.elementToRender,h=a.domElement,p=l[u];if(typeof p!="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=p(h);return g.render(d),g;case"hydrateRoot":return p(h,d);case"hydrate":default:return p(d,h),null}}({elementToRender:o,domElement:i,reactDom:Ni(e),renderType:Mg(e)});e.domElements[t.name]=i,e.renderResults[t.name]=s})}function Ig(e,t){return new Promise(function(r){e.unmountResolves[t.name]=r;var n=e.renderResults[t.name];n&&n.unmount?n.unmount():Ni(e).unmountComponentAtNode(e.domElements[t.name]),delete e.domElements[t.name],delete e.renderResults[t.name]})}function Ng(e,t){return new Promise(function(r){e.updateResolves[t.name]||(e.updateResolves[t.name]=[]),e.updateResolves[t.name].push(r);var n=iu(e,t,null),o=e.renderResults[t.name];if(o&&o.render)o.render(n);else{var i=ou(e,t)();Ni(e).render(n,i)}})}function Ni(e){return e.ReactDOMClient||e.ReactDOM}function Mg(e){return typeof e.renderType=="function"?e.renderType():e.renderType}function iu(e,t,r){var n=e.React.createElement(e.rootComponent,t),o=Mr?e.React.createElement(Mr.Provider,{value:t},n):n;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,Kn(Kn({},t),{},{mountFinished:r,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 $g=e=>{const t=new Bf;return function(n){if(!n)throw new Error("Microfrontend did not receive any properties !!");const o=co(n.module.name);return c.jsx(ls,{module:o,children:c.jsxs(Vf,{client:t,children:[c.jsx(e,{...n}),c.jsx(Ef,{position:"top-right",reverseOrder:!0})]})})}},Fg=({rootComponent:e,...t})=>jg({errorBoundary(r){return console.error(r),c.jsx(Ti,{})},...t,rootComponent:$g(e)}),Bg=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"};Object.defineProperty(window,_r,{value:e?rd(t,e):t})};E.Alert=Yn,E.ApplicationIcon=Aa,E.Authorized=Fo,E.Badge=Bo,E.Badges=Uo,E.Button=bn,E.ClipboardCheckIcon=ja,E.ClipboardIcon=Ra,E.ConfirmDialog=Bc,E.CopyToClipboardButton=jp,E.Dialog=ae,E.DropdownList=xn,E.EmptyState=Li,E.ErrorState=Ti,E.ExtendExtensionPoint=bp,E.ExtensionPoint=wa,E.EyeIcon=ql,E.FieldGroup=La,E.Input=_n,E.InputError=Na,E.Label=$a,E.List=Fe,E.ModulePlaceHolder=Ta,E.Pagination=Pi,E.PaginationContent=Oi,E.PaginationEllipsis=ji,E.PaginationItem=Ir,E.PaginationLink=Nr,E.PaginationNext=Ri,E.PaginationPrevious=ki,E.PasswordInput=um,E.Pill=_g,E.PlatformEventListener=Tp,E.PlatformEvents=ku,E.PluralizeCounter=Di,E.SearchAutocomplete=za,E.SearchInput=Wo,E.Select=Ho,E.Show=it,E.Skeleton=Cn,E.SkeletonList=qa,E.Spinner=Wl,E.Switch=Vl,E.Table=tu,E.Tabs=sm,E.TabsContent=cm,E.TabsList=am,E.TabsTrigger=lm,E.TextArea=Ba,E.Tooltip=zl,E.authorized=Pp,E.dropdownListStyles=At,E.extensionPoint=_p,E.getApplications=lo,E.getInitials=Gu,E.getOperations=cs,E.hasAccess=ds,E.initializeMicroFrontend=Fg,E.isPlatformCustomizationCompleted=Dd,E.isValidEmail=Vu,E.logout=zu,E.navigateTo=Hu,E.platformHaveAnyCustomization=jd,E.setupTestEnvironment=Bg,E.useApplicationIcon=bs,E.useApplicationJSModule=Yr,E.useApplicationMenu=Zu,E.useApplicationUIModule=ys,E.useApplications=gs,E.useAuth=qr,E.useCatalog=xr,E.useCurrentApplication=fo,E.useCurrentApplicationName=_s,E.useCurrentJSModule=sd,E.useDynamicFonts=Ps,E.useDynamicStyleSheet=As,E.useExtendExtensionPoint=Ss,E.useExtensionPoint=Es,E.useGetPlatformTheme=Rd,E.useHasNoSession=Fu,E.useLocation=os,E.useModule=co,E.useModuleCommonPaths=Uu,E.useModuleConfig=fs,E.useModuleConfigByName=ps,E.useModuleMetadata=Er,E.useMutableCatalog=Iu,E.useNotifications=Eo,E.useOperations=us,E.usePAECustomizationsLoadingState=kd,E.usePAEState=Gr,E.usePlatformCustomization=Od,E.usePlatformEventListener=Ts,E.useResource=np,E.useResourceActions=ma,E.useServiceBaseURL=xs,E.useServiceInvoker=po,E.useTenants=gp,E.useTrackEvent=dd,E.useTrackEvents=Cs,E.useUIApplications=vs,E.useUserState=yp,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"})});
|
|
278
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return m.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},Cg="DialogDescriptionWarning",Eg=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Lc(Cg).contentName}}.`;return m.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},Sg=_c,Tg=Ec,Ag=Sc,Pg=Tc,Og=Pc,kg=kc,Rg=jc;const Ic={Overlay:"Overlay__M5Z83",Content:"Content__wAkP4"},kt={Header:"Header__VHxNf",Content:"Content__I04qM",Close:"Close__xSN-7",Title:"Title__Dznh6",Footer:"Footer__-8gzQ",Actions:"Actions__kKF2Q"},Nc=C.forwardRef(({children:e,className:t,...r},n)=>{const o=D(kt.Header,t);return c.jsx("div",{ref:n,className:o,...r,children:e})});Nc.displayName="Header";const Mc=C.forwardRef(({children:e,className:t,...r},n)=>{const o=D(kt.Content,t);return c.jsx("div",{ref:n,className:o,...r,children:e})});Mc.displayName="Content";const $c=C.forwardRef(({children:e,className:t,...r},n)=>{const o=D(kt.Footer,t);return c.jsx("div",{ref:n,className:o,...r,children:e})});$c.displayName="Footer";const Fc=C.forwardRef(({children:e,className:t,...r},n)=>{const o=D(kt.Title,t);return c.jsx(Og,{ref:n,className:o,...r,children:e})});Fc.displayName="Title";const Bc=C.forwardRef(({className:e,...t},r)=>{const n=D(kt.Close,e);return c.jsx(Rg,{ref:r,asChild:!0,className:n,...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"})})})});Bc.displayName="Close";const Uc=C.forwardRef(({children:e,className:t,...r},n)=>{const o=D(kt.Actions,t);return c.jsx("div",{ref:n,className:o,...r,children:e})});Uc.displayName="Actions";const zc=C.forwardRef(({children:e,className:t,...r},n)=>{const o=D(kt.Description,t);return c.jsx("div",{ref:n,className:o,...r,children:e})});zc.displayName="Description";const ae=({children:e,onClose:t,open:r=!1,className:n})=>{const o=()=>{t==null||t()};return c.jsx(Sg,{onOpenChange:o,open:r,children:c.jsxs(Tg,{children:[c.jsx(Ag,{className:Ic.Overlay}),c.jsxs(Pg,{children:[c.jsx(kg,{}),c.jsx("div",{className:D(Ic.Content,n),children:e})]})]})})};ae.displayName="Dialog",ae.Header=Nc,ae.Content=Mc,ae.Footer=$c,ae.Actions=Uc,ae.Title=Fc,ae.Description=zc,ae.Close=Bc;const Hc={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"},jg=({children:e,variant:t="solid",className:r})=>{const n=D(Hc.pill,Hc[`pill--${t}`],r);return c.jsx("div",{className:n,children:e})},Wc={DialogContent:"DialogContent__-WjG9",Message:"Message__AUgVP"},Vc=({loading:e,title:t,children:r,className:n,onClose:o,onConfirm:i,...s})=>c.jsxs(ae,{...s,className:D(Wc.DialogContent,n),children:[c.jsxs(ae.Header,{children:[c.jsx(ae.Title,{children:t}),c.jsx(ae.Close,{onClick:o})]}),c.jsx(ae.Content,{children:typeof r=="string"?c.jsx("p",{className:Wc.Message,children:r}):r}),c.jsx(ae.Footer,{children:c.jsxs(ae.Actions,{children:[c.jsx(bn,{onClick:o,disabled:e,variant:"outlined",children:"Cancel"}),c.jsx(bn,{onClick:i,disabled:e,loading:e,variant:"contained",children:"Confirm"})]})})]});Vc.displayName="ConfirmDialog";const qn={container:"container__AjtYJ",title:"title__A2vCu",description:"description__bP6Ig",mailToText:"mailToText__SdlsE"},Gc=()=>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)"})]});Gc.displayName="WarningIcon";const Dg="support@bluealba.com",Lg="@bluealba/pae-shell-ui",Ti=()=>{const{supportEmail:e=Dg}=ps(Lg),t=`mailto:${e}?Subject=Support`;return c.jsxs("div",{className:qn.container,children:[c.jsx(Gc,{}),c.jsx("div",{className:qn.title,children:"Oops! Something went wrong"}),c.jsxs("div",{className:qn.description,children:["If the error persists, ",c.jsx("a",{className:qn.mailToText,href:t,children:"contact the administrator."})]})]})};Ti.displayName="ErrorState";const ke={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"},qc=C.forwardRef(({children:e,className:t,selected:r,disabled:n=!1,...o},i)=>{const s=D(ke.Item,{[ke["Item--selected"]]:r,[ke["Item--disabled"]]:n},t);return c.jsx("li",{ref:i,className:s,role:"listitem","aria-disabled":n,...o,children:e})});qc.displayName="Item";const Qc=C.forwardRef(({children:e,className:t,...r},n)=>{const o=D(ke.Title,t);return c.jsx("h3",{ref:n,className:o,...r,children:e})});Qc.displayName="Title";const Yc=C.forwardRef(({children:e,className:t,...r},n)=>{const o=D(ke.Description,t);return c.jsx("p",{ref:n,className:o,...r,children:e})});Yc.displayName="Description";const Ai=({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"})]});Ai.displayName="HorizontalDots";const Kc=C.forwardRef(({children:e,className:t,onClick:r,...n},o)=>{const i=C.useRef(null),[s,a]=C.useState(!1),l=D(ke.Actions,t),u=()=>{const w=At["DropdownList--open"],f=At["DropdownList--closed"];document.querySelectorAll(`.${w}`).forEach(_=>{_!==i.current&&(_.classList.remove(w),_.classList.add(f))})},d=w=>{w.stopPropagation(),s?h():(a(!0),r==null||r(w))},h=()=>{a(!1)},p=w=>{w.key==="Escape"&&h()},g=w=>{i.current&&!i.current.contains(w.target)&&h()};return C.useEffect(()=>(s?(u(),document.addEventListener("keydown",p),document.addEventListener("click",g)):(document.removeEventListener("keydown",p),document.removeEventListener("click",g)),()=>{document.removeEventListener("keydown",p),document.removeEventListener("click",g)}),[s]),c.jsxs("div",{ref:o,className:l,onClick:d,role:"button",tabIndex:0,"data-testid":"actions",...n,children:[c.jsx(Ai,{}),c.jsx(xn,{align:"left",ref:i,open:s,"data-testid":"actions-dropdown",role:"menu","aria-label":"Actions",children:e})]})});Kc.displayName="Actions";const Zc=C.forwardRef(({children:e,className:t,...r},n)=>{const o=D(ke.Action,t);return c.jsx("button",{ref:n,className:o,...r,children:e})});Zc.displayName="Action";const Xc=C.forwardRef(({children:e,className:t,...r},n)=>{const o=D(ke.Icon,t);return c.jsx("div",{ref:n,className:o,...r,children:e})});Xc.displayName="Icon";const Fe=C.forwardRef(({children:e,className:t,size:r="medium",variant:n,...o},i)=>{const s=D(ke.List,{[ke[`List--${r}`]]:r,[ke[`List--${n}`]]:n},t);return c.jsx("ul",{ref:i,className:s,role:"list",...o,children:e})});Fe.displayName="List",Fe.Item=qc,Fe.Badges=Uo,Fe.Badge=Bo,Fe.Title=Qc,Fe.Description=Yc,Fe.Actions=Kc,Fe.Action=Zc,Fe.Icon=Xc;const Qe={Navigation:"Navigation__uylxk",PaginationContent:"PaginationContent__UpLw0",PaginationEllipsis:"PaginationEllipsis__perWk",PaginationLink:"PaginationLink__GVUZj",Active:"Active__u1Ahy",Disabled:"Disabled__8WM0y",Prev:"Prev__wp4hc",Next:"Next__eVyL5"},Jc=({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"})]});Jc.displayName="ChevronRight";const eu=({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"})]});eu.displayName="ChevronLeft";const Pi=({className:e,...t})=>c.jsx("nav",{role:"navigation","aria-label":"pagination",className:D(Qe.Navigation,e),...t});Pi.displayName="Pagination";const Oi=m.forwardRef(({className:e,...t},r)=>c.jsx("ul",{ref:r,className:D(Qe.PaginationContent,e),...t}));Oi.displayName="PaginationContent";const Ir=m.forwardRef(({className:e,...t},r)=>c.jsx("li",{ref:r,className:e,...t}));Ir.displayName="PaginationItem";const Nr=({className:e,isActive:t,...r})=>c.jsx("a",{"aria-current":t?"page":void 0,className:D(Qe.PaginationLink,t&&Qe.Active,e),...r});Nr.displayName="PaginationLink";const ki=({className:e,disabled:t,...r})=>c.jsxs(Nr,{"aria-label":"Go to previous page",className:D(t&&Qe.Disabled,Qe.Prev,e),...r,children:[c.jsx(eu,{}),c.jsx("span",{children:"Previous"})]});ki.displayName="PaginationPrevious";const Ri=({className:e,disabled:t,...r})=>c.jsxs(Nr,{"aria-label":"Go to next page",className:D(t&&Qe.Disabled,Qe.Next,e),...r,children:[c.jsx("span",{children:"Next"}),c.jsx(Jc,{})]});Ri.displayName="PaginationNext";const ji=({className:e,...t})=>c.jsx("span",{"aria-hidden":!0,className:D(Qe.PaginationEllipsis,e),...t,children:c.jsx(Ai,{})});ji.displayName="PaginationEllipsis";function Ig(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 tu={exports:{}};(function(e,t){(function(r,n){typeof Ig=="function"?e.exports=n():r.pluralize=n()})(Uu,function(){var r=[],n=[],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(_,x){return v[x]||""})}function d(f,v){return f.replace(v[0],function(_,x){var T=u(v[1],arguments);return l(_===""?f[x-1]:_,T)})}function h(f,v,_){if(!f.length||o.hasOwnProperty(f))return v;for(var x=_.length;x--;){var T=_[x];if(T[0].test(v))return d(v,T)}return v}function p(f,v,_){return function(x){var T=x.toLowerCase();return v.hasOwnProperty(T)?l(x,T):f.hasOwnProperty(T)?l(x,f[T]):h(T,x,_)}}function g(f,v,_,x){return function(T){var S=T.toLowerCase();return v.hasOwnProperty(S)?!0:f.hasOwnProperty(S)?!1:h(S,S,_)===S}}function w(f,v,_){var x=v===1?w.singular(f):w.plural(f);return(_?v+" ":"")+x}return w.plural=p(s,i,r),w.isPlural=g(s,i,r),w.singular=p(i,s,n),w.isSingular=g(i,s,n),w.addPluralRule=function(f,v){r.push([a(f),v])},w.addSingularRule=function(f,v){n.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})})(tu);var Ng=tu.exports;const Mg=zu(Ng),Di=({count:e,singularText:t,children:r=(n,o)=>`${n} ${o}`})=>c.jsx(c.Fragment,{children:r(e,Mg(t,e))});Di.displayName="PluralizeCounter";const me={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"},ru={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 Li=({message:e="No results found"})=>c.jsxs("div",{className:D(ru.EmptyStateContainer),children:[c.jsx(nu,{}),c.jsx("p",{className:ru.Message,children:e})]});Li.displayName="EmptyState";const $g=(e,t,r=1)=>{if(e<=1)return["1"];const n=[],o=i=>{(n.length===0||n[n.length-1]!==i)&&n.push(i)};o(1),t-r>2&&o("...");for(let i=Math.max(2,t-r);i<=Math.min(e-1,t+r);i++)o(i);return t+r<e-1&&o("..."),o(e),n.map(String)},ou=({page:e,totalPages:t,onPageChange:r})=>{const n=e===1,o=e===t;return c.jsx(Pi,{className:me.Pagination,children:c.jsxs(Oi,{children:[c.jsx(Ir,{children:c.jsx(ki,{className:D({[me.PointerNone]:n}),onClick:()=>!n&&r(e-1)})}),$g(t,e).map((i,s)=>c.jsxs(Ir,{children:[i==="..."&&c.jsx(ji,{}),i!=="..."&&c.jsx(Nr,{isActive:+i===e,onClick:()=>+i!==e&&r(+i),children:i})]},s)),c.jsx(Ir,{children:c.jsx(Ri,{className:D({[me.PointerNone]:o}),onClick:()=>!o&&r(e+1)})})]})})};ou.displayName="TablePagination";const iu=({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"})});iu.displayName="ArrowDown";const su=({columns:e,data:t,isLoading:r,totalCount:n=0,headerLabel:o,sort:i,loadingConfig:s,pagination:a,onRowClick:l})=>{const{count:u=5,height:d=40}=s||{},h=v=>v.sortName??v.name,p=v=>D({[me.Cell]:!0,[me.Center]:v.align==="center",[me.Right]:v.align==="right",[me.Sortable]:v.isSortable}),g=v=>{if(!i)return"";const _=h(v);return D({[me.SortIcon]:!0,[me.Active]:v.isSortable&&i.field===_,[me.Rotate]:i.field===_&&i.direction==="asc"})},w=v=>()=>l==null?void 0:l(v),f=v=>()=>{if(!i||!v.isSortable)return;const{field:_,direction:x,onSort:T}=i,S=h(v);_===S?T(S,x==="asc"?"desc":"asc"):T(S,"asc")};return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:me.TableContainer,children:[o&&c.jsx("div",{className:me.TableHeader,children:c.jsx(Di,{count:n,singularText:o,children:(v,_)=>`${v} ${_}`})}),c.jsxs("table",{className:me.Table,children:[c.jsx("thead",{children:c.jsx("tr",{children:e.map(v=>c.jsx("th",{children:c.jsxs("div",{className:p(v),onClick:f(v),children:[c.jsx("span",{children:v.displayName}),v.isSortable&&c.jsx(iu,{className:g(v)})]})},v.name))})}),c.jsx("tbody",{children:c.jsxs(it,{children:[c.jsx(it.When,{condition:r,children:[...Array(u).keys()].map(v=>c.jsx("tr",{children:c.jsx("td",{colSpan:e.length,style:{padding:4},children:c.jsx(Cn,{height:d})})},v))}),c.jsx(it.When,{condition:!t.length,children:c.jsx("tr",{children:c.jsx("td",{colSpan:e.length,children:c.jsx(Li,{})})})}),c.jsx(it.Else,{children:t.map((v,_)=>c.jsx("tr",{className:l&&me.selectable,onClick:w(v),children:e.map(x=>c.jsx("td",{style:x.width?{width:x.width}:{},children:c.jsx("div",{className:p(x),children:x.cellRenderer?x.cellRenderer(v):x.valueGetter?x.valueGetter(v):v[x.name]})},`${x.name}-${_}`))},_))})]})})]})]}),a&&c.jsx(ou,{...a})]})};su.displayName="Table";const Qn={alert:"alert__LblpE",default:"default__mgO6A",destructive:"destructive__bLNSM",alertTitle:"alertTitle__gblKf",alertDescription:"alertDescription__BuVHV"},Yn=({className:e,variant:t="default",children:r,...n})=>c.jsx("div",{"data-slot":"alert",role:"alert",className:D(Qn.alert,Qn[t],e),...n,children:r}),Fg=m.forwardRef(({children:e,className:t,...r},n)=>c.jsx("div",{ref:n,"data-slot":"alert-title",className:D(Qn.alertTitle,t),...r,children:e})),Bg=m.forwardRef(({children:e,className:t,...r},n)=>c.jsx("div",{ref:n,"data-slot":"alert-description",className:D(Qn.alertDescription,t),...r,children:e}));Yn.displayName="Alert",Yn.Title=Fg,Yn.Description=Bg;function au(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Kn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?au(Object(r),!0).forEach(function(n){Ug(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):au(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lu(e){return(lu=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 Ug(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ii(e){return(Ii=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 cu(e,t){var r;if(typeof(r=t.domElement?function(){return t.domElement}:t.domElementGetter?t.domElementGetter:e.domElementGetter?e.domElementGetter:function(n){var o=n.appName||n.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(Ii(r)));return function(){var n=r(t);if(!(n 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(Ii(n)));return n}}var Mr=null;try{Mr=require("react").createContext()}catch{}var zg={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 Hg(e){if(lu(e)!=="object")throw new Error("single-spa-react requires a configuration object");var t,r=Kn(Kn({},zg),e);if(!r.React)throw new Error("single-spa-react must be passed opts.React");if(!r.ReactDOM&&!r.ReactDOMClient)throw new Error("single-spa-react must be passed opts.ReactDOM or opts.ReactDOMClient");if(r.renderType||((t=r.ReactDOMClient)!==null&&t!==void 0&&t.createRoot?r.renderType="createRoot":r.renderType="render"),!r.rootComponent&&!r.loadRootComponent)throw new Error("single-spa-react must be passed opts.rootComponent or opts.loadRootComponent");if(r.errorBoundary&&typeof r.errorBoundary!="function")throw Error("The errorBoundary opt for single-spa-react must either be omitted or be a function that returns React elements");!Mr&&r.React.createContext&&(Mr=r.React.createContext()),r.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}(r);var n={bootstrap:Wg.bind(null,r),mount:Vg.bind(null,r),unmount:Gg.bind(null,r)};return r.parcelCanUpdate&&(n.update=qg.bind(null,r)),n}function Wg(e,t){return e.rootComponent?Promise.resolve():e.loadRootComponent(t).then(function(r){e.rootComponent=r})}function Vg(e,t){return new Promise(function(r,n){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=uu(e,t,function(){r(this)}),i=cu(e,t)(),s=function(a){var l=a.reactDom,u=a.renderType,d=a.elementToRender,h=a.domElement,p=l[u];if(typeof p!="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=p(h);return g.render(d),g;case"hydrateRoot":return p(h,d);case"hydrate":default:return p(d,h),null}}({elementToRender:o,domElement:i,reactDom:Ni(e),renderType:Qg(e)});e.domElements[t.name]=i,e.renderResults[t.name]=s})}function Gg(e,t){return new Promise(function(r){e.unmountResolves[t.name]=r;var n=e.renderResults[t.name];n&&n.unmount?n.unmount():Ni(e).unmountComponentAtNode(e.domElements[t.name]),delete e.domElements[t.name],delete e.renderResults[t.name]})}function qg(e,t){return new Promise(function(r){e.updateResolves[t.name]||(e.updateResolves[t.name]=[]),e.updateResolves[t.name].push(r);var n=uu(e,t,null),o=e.renderResults[t.name];if(o&&o.render)o.render(n);else{var i=cu(e,t)();Ni(e).render(n,i)}})}function Ni(e){return e.ReactDOMClient||e.ReactDOM}function Qg(e){return typeof e.renderType=="function"?e.renderType():e.renderType}function uu(e,t,r){var n=e.React.createElement(e.rootComponent,t),o=Mr?e.React.createElement(Mr.Provider,{value:t},n):n;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,Kn(Kn({},t),{},{mountFinished:r,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 Yg=e=>{const t=new Zf;return function(n){if(!n)throw new Error("Microfrontend did not receive any properties !!");const o=co(n.module.name);return c.jsx(ls,{module:o,children:c.jsxs(rp,{client:t,children:[c.jsx(e,{...n}),c.jsx(If,{position:"top-right",reverseOrder:!0})]})})}},Kg=({rootComponent:e,...t})=>Hg({errorBoundary(r){return console.error(r),c.jsx(Ti,{})},...t,rootComponent:Yg(e)}),Zg=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"};Object.defineProperty(window,xr,{value:e?pd(t,e):t})};E.Alert=Yn,E.ApplicationIcon=ja,E.Authorized=Fo,E.Badge=Bo,E.Badges=Uo,E.Button=bn,E.ClipboardCheckIcon=Ma,E.ClipboardIcon=Na,E.ConfirmDialog=Vc,E.CopyToClipboardButton=Hp,E.Dialog=ae,E.DropdownList=xn,E.EmptyState=Li,E.ErrorState=Ti,E.ExtendExtensionPoint=kp,E.ExtensionPoint=Sa,E.EyeIcon=Xl,E.FieldGroup=Fa,E.Input=_n,E.InputError=Ua,E.Label=Ha,E.List=Fe,E.ModulePlaceHolder=Ra,E.Pagination=Pi,E.PaginationContent=Oi,E.PaginationEllipsis=ji,E.PaginationItem=Ir,E.PaginationLink=Nr,E.PaginationNext=Ri,E.PaginationPrevious=ki,E.PasswordInput=_m,E.Pill=jg,E.PlatformEventListener=Mp,E.PlatformEvents=Iu,E.PluralizeCounter=Di,E.SearchAutocomplete=qa,E.SearchInput=Wo,E.Select=Ho,E.Show=it,E.Skeleton=Cn,E.SkeletonList=Xa,E.Spinner=Yl,E.Switch=Kl,E.Table=su,E.Tabs=vm,E.TabsContent=wm,E.TabsList=ym,E.TabsTrigger=bm,E.TextArea=Va,E.Tooltip=ql,E.authorized=Fp,E.dropdownListStyles=At,E.extensionPoint=jp,E.getApplications=lo,E.getInitials=Zu,E.getOperations=cs,E.hasAccess=ds,E.initializeMicroFrontend=Kg,E.isPlatformCustomizationCompleted=Wd,E.isValidEmail=Ku,E.logout=qu,E.navigateTo=Qu,E.platformHaveAnyCustomization=Hd,E.setupTestEnvironment=Zg,E.useApplicationIcon=bs,E.useApplicationJSModule=Yr,E.useApplicationMenu=ws,E.useApplicationMenuWithDocumentation=cd,E.useApplicationUIModule=ys,E.useApplications=gs,E.useAuth=qr,E.useCatalog=Vt,E.useCurrentApplication=fo,E.useCurrentApplicationName=Ts,E.useCurrentJSModule=vd,E.useDocumentationMenuItems=Es,E.useDynamicFonts=Ds,E.useDynamicStyleSheet=js,E.useExtendExtensionPoint=ks,E.useExtensionPoint=Os,E.useGetPlatformTheme=zd,E.useHasNoSession=Wu,E.useLocation=os,E.useModule=co,E.useModuleCommonPaths=Gu,E.useModuleConfig=fs,E.useModuleConfigByName=ps,E.useModuleMetadata=Er,E.useMutableCatalog=Bu,E.useNotifications=Eo,E.useOperations=us,E.usePAECustomizationsLoadingState=Ud,E.usePAEState=Gr,E.usePlatformCustomization=Bd,E.usePlatformEventListener=Rs,E.useResource=hp,E.useResourceActions=wa,E.useServiceBaseURL=As,E.useServiceInvoker=po,E.useTenants=Ap,E.useTrackEvent=xd,E.useTrackEvents=Ps,E.useUIApplications=vs,E.useUserState=Op,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"})});
|