@bluealba/pae-ui-react-core 4.0.1-feature-initial-feature-flags-poc-1242 → 4.0.1-feature-feature-flags-1245
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 +44 -69
- package/dist/index.esm.js +2217 -2333
- package/dist/index.systemjs.js +46 -71
- package/dist/index.umd.js +59 -84
- package/dist/src/feature-flags/FeatureFlagGuard.d.ts +0 -5
- package/dist/src/feature-flags/FeatureFlagsApiClient.d.ts +39 -0
- package/dist/src/feature-flags/FeatureFlagsProvider.d.ts +0 -5
- package/dist/src/feature-flags/index.d.ts +9 -4
- package/dist/src/feature-flags/useFeatureFlag.d.ts +2 -3
- package/dist/src/feature-flags/{useVariant.d.ts → useFeatureFlagVariant.d.ts} +6 -7
- package/dist/src/hooks/applications/ApplicationMenu.d.ts +0 -2
- package/dist/src/hooks/applications/useApplicationMenu.d.ts +3 -1
- package/dist/src/hooks/index.d.ts +0 -2
- package/package.json +1 -1
- package/dist/src/hooks/applications/useDocumentationMenuItems.d.ts +0 -4
- package/dist/src/hooks/applications/useModuleMenu.d.ts +0 -11
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(E,x){typeof exports=="object"&&typeof module<"u"?x(exports,require("react"),require("single-spa"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","single-spa","react-dom"],x):(E=typeof globalThis<"u"?globalThis:E||self,x(E["@bluealba/pae-ui-react-core"]={},E.React,E.singleSpa,E.ReactDOM))})(this,function(E,x,re,_t){"use strict";var Nu=E=>{throw TypeError(E)};var Vs=(E,x,re)=>x.has(E)||Nu("Cannot "+re);var b=(E,x,re)=>(Vs(E,x,"read from private field"),re?re.call(E):x.get(E)),L=(E,x,re)=>x.has(E)?Nu("Cannot add the same private member more than once"):x instanceof WeakSet?x.add(E):x.set(E,re),R=(E,x,re,_t)=>(Vs(E,x,"write to private field"),_t?_t.call(E,re):x.set(E,re),re),F=(E,x,re)=>(Vs(E,x,"access private method"),re);var oo=(E,x,re,_t)=>({set _(qn){R(E,x,qn,re)},get _(){return b(E,x,_t)}});var Rt,ut,on,mu,sn,dt,an,gu,jt,vu,ln,cn,Ce,Dt,le,Bn,Lt,Re,Je,yu,Be,bu,Ue,ue,It,ze,wt,wu,Ye,je,Un,_u,X,ft,pt,un,dn,ht,fn,pn,xu,ge,z,zn,de,Mt,hn,mt,gt,Hn,mn,gn,Nt,$t,vt,vn,V,Gn,Gs,qs,Qs,Ys,Ks,Zs,Xs,$u,Cu,yt,bt,ve,Ke,Ze,so,Js,Eu;var qn=document.createElement("style");qn.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(
|
|
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 Lu=E=>{throw TypeError(E)};var Gs=(E,C,ne)=>C.has(E)||Lu("Cannot "+ne);var b=(E,C,ne)=>(Gs(E,C,"read from private field"),ne?ne.call(E):C.get(E)),L=(E,C,ne)=>C.has(E)?Lu("Cannot add the same private member more than once"):C instanceof WeakSet?C.add(E):C.set(E,ne),R=(E,C,ne,_t)=>(Gs(E,C,"write to private field"),_t?_t.call(E,ne):C.set(E,ne),ne),F=(E,C,ne)=>(Gs(E,C,"access private method"),ne);var io=(E,C,ne,_t)=>({set _(qr){R(E,C,qr,ne)},get _(){return b(E,C,_t)}});var Rt,ut,or,fu,sr,dt,ir,pu,jt,hu,ar,lr,Ce,Dt,le,Br,Lt,Re,Je,mu,Be,gu,Ue,ue,It,ze,wt,vu,Ye,je,Ur,yu,X,ft,pt,cr,ur,ht,dr,fr,bu,ge,z,zr,de,Nt,pr,mt,gt,Hr,hr,mr,Mt,$t,vt,gr,V,Gr,qs,Qs,Ys,Ks,Zs,Xs,Js,Iu,wu,yt,bt,ve,Ke,Ze,ao,ei,_u;var qr=document.createElement("style");qr.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(qr);function ti(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 g=ti(C),ri=ti(_t),Nu={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__",ni="__PAE_REACTIVE_GLOBAL_STATE__",oi="__PAE_EXTENSIONS_POINTS_REGISTRY__",lo="__PAE_CUSTOMIZATIONS_LOADING_STATE_KEY__",Mu="/auth/logout",$u=(e,t)=>{const[r,n]=C.useState(t);return C.useEffect(()=>{const o=e.subscribe(s=>{n(s)});return()=>{o.unsubscribe()}},[n]),r},Fu=(e,t,r)=>r.map((n,o)=>o===e?t(n):n),Bu=(e,t,r)=>Fu(r.findIndex(e),t,r),co=(e,t)=>typeof e=="function"?e(t):e,si=(e,t)=>{const r=$u(e,t),n=C.useCallback(o=>{e.next(co(o,r))},[r]);return[r,n]},Qr=()=>si(window[ni],window[xr]),Cr=()=>Qr()[0].catalog,Uu=()=>{const e=Cr(),t=C.useCallback(n=>{window[ni].next({...window[xr],catalog:co(n,e)})},[e]),r=C.useCallback((n,o)=>{t(s=>Bu(i=>i.name===n,i=>{var a;return{...i,ui:{...i.ui,customProps:co(o,((a=i.ui)==null?void 0:a.customProps)??{})}}},s))},[t]);return[e,t,r]},ii=()=>{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 zu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Hu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ai={exports:{}},Er={},li;function Wu(){if(li)return Er;li=1;/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react-jsx-runtime.development.js
|
|
5
5
|
*
|
|
@@ -7,55 +7,30 @@
|
|
|
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=
|
|
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"),s=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),w=Symbol.iterator,p="@@iterator";function v(y){if(y===null||typeof y!="object")return null;var P=w&&y[w]||y[p];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===s||N||y===o||y===c||y===d||O||y===m||S||A||k||typeof y=="object"&&y!==null&&(y.$$typeof===f||y.$$typeof===h||y.$$typeof===i||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 s:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case d:return"SuspenseList"}if(typeof y=="object")switch(y.$$typeof){case a:var P=y;return K(P)+".Consumer";case i: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 f:{var G=y,Q=G._payload,H=G._init;try{return W(H(Q))}catch{return null}}}return null}var q=Object.assign,se=0,J,ee,B,ie,xe,Ft,eo;function to(){}to.__reactDisabledLog=!0;function Fs(){{if(se===0){J=console.log,ee=console.info,B=console.warn,ie=console.error,xe=console.group,Ft=console.groupCollapsed,eo=console.groupEnd;var y={configurable:!0,enumerable:!0,value:to,writable:!0};Object.defineProperties(console,{info:y,log:y,warn:y,error:y,group:y,groupCollapsed:y,groupEnd:y})}se++}}function Bs(){{if(se--,se===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:ie}),group:q({},y,{value:xe}),groupCollapsed:q({},y,{value:Ft}),groupEnd:q({},y,{value:eo})})}se<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Wr=_.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 ro=typeof WeakMap=="function"?WeakMap:Map;Ut=new ro}function Vr(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=Wr.current,Wr.current=null,Fs();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
|
-
`),te=U.length-1,
|
|
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&&
|
|
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{yr=!1,Wr.current=Q,Bs(),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 Vr(y,!1)}function no(y){var P=y.prototype;return!!(P&&P.isReactComponent)}function br(y,P,j){if(y==null)return"";if(typeof y=="function")return Vr(y,no(y));if(typeof y=="string")return Bt(y);switch(y){case c: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 f:{var I=y,G=I._payload,Q=I._init;try{return br(Q(G),P,j)}catch{}}}return""}var Ht=Object.prototype.hasOwnProperty,oo={},so=_.ReactDebugCurrentFrame;function Xe(y){if(y){var P=y._owner,j=br(y.type,y._source,P?P.type:null);so.setExtraStackFrame(j)}else so.setExtraStackFrame(null)}function Kg(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 oo)&&(oo[U.message]=!0,Xe(G),x("Failed %s type: %s",j,U.message),Xe(null))}}}var Zg=Array.isArray;function Us(y){return Zg(y)}function Xg(y){{var P=typeof Symbol=="function"&&Symbol.toStringTag,j=P&&y[Symbol.toStringTag]||y.constructor.name||"Object";return j}}function Jg(y){try{return xu(y),!1}catch{return!0}}function xu(y){return""+y}function Cu(y){if(Jg(y))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Xg(y)),xu(y)}var Eu=_.ReactCurrentOwner,ev={key:!0,ref:!0,__self:!0,__source:!0},Su,Tu;function tv(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 rv(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 nv(y,P){typeof y.ref=="string"&&Eu.current}function ov(y,P){{var j=function(){Su||(Su=!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 sv(y,P){{var j=function(){Tu||(Tu=!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 iv=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 av(y,P,j,I,G){{var Q,H={},U=null,fe=null;j!==void 0&&(Cu(j),U=""+j),rv(P)&&(Cu(P.key),U=""+P.key),tv(P)&&(fe=P.ref,nv(P,G));for(Q in P)Ht.call(P,Q)&&!ev.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&&ov(H,re),fe&&sv(H,re)}return iv(y,U,fe,G,I,Eu.current,H)}}var zs=_.ReactCurrentOwner,Au=_.ReactDebugCurrentFrame;function wr(y){if(y){var P=y._owner,j=br(y.type,y._source,P?P.type:null);Au.setExtraStackFrame(j)}else Au.setExtraStackFrame(null)}var Hs;Hs=!1;function Ws(y){return typeof y=="object"&&y!==null&&y.$$typeof===t}function Pu(){{if(zs.current){var y=W(zs.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 lv(y){return""}var Ou={};function cv(y){{var P=Pu();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
|
|
18
|
+
Check the top-level render call using <`+j+">.")}return P}}function ku(y,P){{if(!y._store||y._store.validated||y.key!=null)return;y._store.validated=!0;var j=cv(P);if(Ou[j])return;Ou[j]=!0;var I="";y&&y._owner&&y._owner!==zs.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 Ru(y,P){{if(typeof y!="object")return;if(Us(y))for(var j=0;j<y.length;j++){var I=y[j];Ws(I)&&ku(I,P)}else if(Ws(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;)Ws(H.value)&&ku(H.value,P)}}}function uv(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);Kg(j,y.props,"prop",I,y)}else if(P.PropTypes!==void 0&&!Hs){Hs=!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 dv(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 ju={};function Du(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=lv();fe?U+=fe:U+=Pu();var te;y===null?te="null":Us(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=av(y,P,j,G,Q);if(re==null)return re;if(H){var Ee=P.children;if(Ee!==void 0)if(I)if(Us(Ee)){for(var _r=0;_r<Ee.length;_r++)Ru(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 Ru(Ee,y)}if(Ht.call(P,"key")){var Wt=W(y),ye=Object.keys(P).filter(function(vv){return vv!=="key"}),Vs=ye.length>0?"{key: someKey, "+ye.join(": ..., ")+": ...}":"{key: someKey}";if(!ju[Wt+Vs]){var gv=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} />`,
|
|
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 id=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ad=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),Ci=e=>{const t=ad(e);return t.charAt(0).toUpperCase()+t.slice(1)},Ei=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),ld=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 cd={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 ud=x.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:i,...a},l)=>x.createElement("svg",{ref:l,...cd,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Ei("lucide",o),...!s&&!ld(a)&&{"aria-hidden":"true"},...a},[...i.map(([c,d])=>x.createElement(c,d)),...Array.isArray(s)?s:[s]]));/**
|
|
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 dd=(e,t)=>{const n=x.forwardRef(({className:r,...o},s)=>x.createElement(ud,{ref:s,iconNode:t,className:Ei(`lucide-${id(Ci(e))}`,`lucide-${e}`,r),...o}));return n.displayName=Ci(e),n};/**
|
|
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 fd=dd("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"}]]),Si=e=>{const t=Vt();return x.useMemo(()=>{if(!e)return[];const n=t.filter(o=>o.type==="documentation"&&o.application===e.name),r=xi(e.operations||[]);return n.filter(o=>{var s,i;return(i=(s=o.authorization)==null?void 0:s.operations)!=null&&i.length?r(o.authorization.operations):!0}).map(o=>{var s;return{label:o.displayName,externalUrl:o.baseUrl,target:"_blank",align:"bottom",Icon:x.createElement(fd,{size:20}),operations:((s=o.authorization)==null?void 0:s.operations)||[]}})},[t,e])},pd=e=>{const{menu:t,loading:n}=_i(e),r=Si(e),o=x.useMemo(()=>[...t,...r],[t,r]);return{loading:n,menu:o}};function Z(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function xt(e){return function t(n){return arguments.length===0||Z(n)?t:e.apply(this,arguments)}}function tt(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return Z(n)?t:xt(function(o){return e(n,o)});default:return Z(n)&&Z(r)?t:Z(n)?xt(function(o){return e(o,r)}):Z(r)?xt(function(o){return e(n,o)}):e(n,r)}}}function fo(e){return function t(n,r,o){switch(arguments.length){case 0:return t;case 1:return Z(n)?t:tt(function(s,i){return e(n,s,i)});case 2:return Z(n)&&Z(r)?t:Z(n)?tt(function(s,i){return e(s,r,i)}):Z(r)?tt(function(s,i){return e(n,s,i)}):xt(function(s){return e(n,r,s)});default:return Z(n)&&Z(r)&&Z(o)?t:Z(n)&&Z(r)?tt(function(s,i){return e(s,i,o)}):Z(n)&&Z(o)?tt(function(s,i){return e(s,r,i)}):Z(r)&&Z(o)?tt(function(s,i){return e(n,s,i)}):Z(n)?xt(function(s){return e(s,r,o)}):Z(r)?xt(function(s){return e(n,s,o)}):Z(o)?xt(function(s){return e(n,r,s)}):e(n,r,o)}}}function Xn(e,t){return Object.prototype.hasOwnProperty.call(t,e)}function Ti(e){return Object.prototype.toString.call(e)==="[object Object]"}var hd=fo(function(t,n,r){var o=t(n),s=t(r);return o>s?-1:o<s?1:0}),md=fo(function(t,n,r){var o={},s;n=n||{},r=r||{};for(s in n)Xn(s,n)&&(o[s]=Xn(s,r)?t(s,n[s],r[s]):n[s]);for(s in r)Xn(s,r)&&!Xn(s,o)&&(o[s]=r[s]);return o}),gd=fo(function e(t,n,r){return md(function(o,s,i){return Ti(s)&&Ti(i)?e(t,s,i):t(o,s,i)},n,r)}),vd=tt(function(t,n){return gd(function(r,o,s){return s},t,n)}),yd=tt(function(t,n){return Array.prototype.slice.call(n,0).sort(function(r,o){for(var s=0,i=0;s===0&&i<t.length;)s=t[i](r,o),i+=1;return s})});const po=()=>{const e=si(),t=yi();return x.useMemo(()=>bd(e,t),[e,t])},bd=(e,t)=>yd([hd(wd)],t).find(n=>n.route&&e.startsWith(n.route)),wd=e=>{var t;return((t=e==null?void 0:e.route)==null?void 0:t.length)||-1},Ai=()=>{var e;return(e=po())==null?void 0:e.name},_d=()=>{const e=po(),t=bi(e);return Zn(t==null?void 0:t.name)},Pi=(e,t)=>{const r=Vt().find(o=>o.name===e);if(!r){if(t)return null;throw new Error(`Service with name [${e}] not available in the catalog`)}return r.baseUrl},ho=(e,t)=>{const n=Pi(e,!!t)??t;return x.useCallback((r,o)=>{const i={Accept:"application/json",...(o==null?void 0:o.body)instanceof FormData?{}:{"Content-Type":"application/json"},...o==null?void 0:o.headers};return fetch(xd(`${n}${r}`),{...o,headers:i})},[n])},xd=e=>e.replace(/\/+/g,"/"),Cd=(e,t)=>n=>({timestamp:new Date(new Date().toUTCString()).toISOString(),module:t.name,moduleVersion:t.version,application:t.application,user:e.username,...n}),Ed=(e,t,n)=>async r=>{if(r.length===0)throw new Error("Invalid call to trackEvents with an empty array of events!");const o=await e("/event",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r.map(Cd(t,n)))});if(!o.ok)throw new Error(`Error publishing habits event ${o.statusText}`)},Sd="@bluealba/pae-habits-service",ki=()=>{const{authUser:e}=Yn(),t=Sn(),n=ho(Sd);return x.useCallback(Ed(n,e,t),[n,e,t])},Td=()=>{const e=ki();return x.useCallback((t,n)=>e([{name:t,data:n}]),[e])},Oi=e=>{const t=Sn(),n=window[ri],[r,o]=x.useState(null);return x.useEffect(()=>n.defineExtensionPoint(t,e,s=>{o(()=>s)}),[o]),r},Ri=(e,t,n)=>{x.useEffect(()=>window[ri].setExtensionPoint(e,t,n),[])},ji=(e,t)=>{x.useEffect(()=>(window.addEventListener(e,t),()=>window.removeEventListener(e,t)),[e,t])},Di=e=>{const{cssCustomizationLoadingDelay:t=1e3}=pi();x.useEffect(()=>{if(!e)return;const n=document.createElement("style");return setTimeout(()=>{n.innerHTML=e,document.head.append(n)},t),()=>n&&n.remove()},[e])},Ad=e=>{var t;return(t=e.split(/[#?]/)[0].split(".").pop())==null?void 0:t.trim()},Pd={woff2:"woff2",woff:"woff",ttf:"truetype",otf:"opentype",eot:"embedded-opentype",svg:"svg"},kd=e=>{const t=Ad(e);return t?Pd[t]:void 0},Od=(e,t)=>{const n=t??kd(e);return n?`format(${n})`:""};function Li(e){const[t,n]=x.useState(!1);return x.useEffect(()=>{if(!(e!=null&&e.length))return;const r=document.createElement("style");r.setAttribute("data-generated-fonts","true");const o=e.flatMap(({fontFamily:i,variants:a})=>a.map(({path:l,fontWeight:c,format:d})=>`
|
|
23
|
+
<%s key={someKey} {...props} />`,Vs,Wt,gv,Wt),ju[Wt+Vs]=!0}}return y===n?dv(re):uv(re),re}}function fv(y,P,j){return Du(y,P,j,!0)}function pv(y,P,j){return Du(y,P,j,!1)}var hv=pv,mv=fv;Er.Fragment=n,Er.jsx=hv,Er.jsxs=mv}(),Er}ai.exports=Wu();var u=ai.exports;const ci=C.createContext(null),ui=({module:e,children:t})=>u.jsx(ci.Provider,{value:e,children:t});ui.displayName="PAEModule";const Sr=()=>{const e=C.useContext(ci);if(!e)throw new Error("Module metadata was not setup yet !!");return e};function uo(){if(!window[xr])throw new Error("PAE Global state not found.");return window[xr]}const fo=()=>{const{authUser:{applications:e}}=uo();return e||[]},di=e=>fo().filter(t=>t.isGlobal||t.name===e).flatMap(t=>t.operations),fi=()=>{const{application:e}=Sr();return C.useMemo(()=>di(e),[e])},pi=e=>(...t)=>t.every(r=>e.some(n=>n.name===r)),Yr=()=>{const[{authUser:e}]=Qr(),t=fi();return{authUser:e,hasAccess:C.useMemo(()=>pi(t),[t])}},Vu=()=>{const{authUser:e}=Yr();return!e||e.id==="anon"},hi=()=>{var e;return((e=Sr().ui)==null?void 0:e.customProps)??{}},po=e=>{const t=Cr();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])},mi=e=>{var t,r;return((r=(t=po(e))==null?void 0:t.ui)==null?void 0:r.customProps)??{}},Gu=e=>e.replace(/\/+/g,"/"),qu=(e,t="only-base-path")=>{const{apiDocs:r,health:n,version:o,changelog:s}=(e==null?void 0:e.commonPaths)||{},i=(a,l="")=>{if(a===void 0&&!l)return;const c=a??l;if(t==="only-base-path")return c;const d=Gu(`${e.baseUrl}/${c}`);return t==="with-module-base"?d:`${document.location.origin}${d}`};return{apiDocsPath:i(r,"/api-docs-json"),healthPath:i(n,"/health"),versionPath:i(o,"/version"),changelogPath:i(s,"/changelog")}};function Qu(){window.open(Mu,"_self")}const Yu=e=>ne.navigateToUrl(e),Ku=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z]{2,}$/,Zu=e=>Ku.test(e),Xu=(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)},gi=e=>e.type==="app",Ju=e=>e.modules.some(gi)&&e.route&&e.route!=="/",vi=e=>{const{catalog:t}=uo();return Kr(t.filter(r=>r.application===e))},Kr=(e=[])=>e.find(t=>{var r;return gi(t)&&((r=t.ui)==null?void 0:r.route)!=="/"}),yi=()=>{const e=Cr();return C.useMemo(()=>fo().map(r=>{var s,i,a;const n=ed(e,r.name),o=Kr(n);return{name:r.name,displayName:((i=(s=o==null?void 0:o.ui)==null?void 0:s.customProps)==null?void 0:i.overrideApplicationDisplayName)??r.displayName,modules:n,route:(a=o==null?void 0:o.ui)==null?void 0:a.route,roles:[],operations:r.operations}}),[e])},ed=(e,t)=>e.filter(r=>r.application===t)||[],bi=()=>{const e=yi();return C.useMemo(()=>e.filter(Ju),[e])},wi=e=>C.useMemo(()=>e?vi(e.name):void 0,[e]),et=new Map,td=e=>{try{const{catalog:t}=uo(),r=t.find(n=>n.name===e);return r!=null&&r.version?`${e}@${r.version}`:e}catch{return e}},Zr=e=>{const[t,r]=C.useState(null);return C.useEffect(()=>{(async()=>{if(!e){r(null);return}try{const o=td(e);if(et.has(o)){const i=et.get(o);r(i);return}const s=await System.import(e);et.set(o,s),r(s)}catch(o){console.error(`Error importing module ${e}: ${o.message}`),r(null)}})()},[e,r]),t},rd=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:rd,getModuleCacheSize:()=>et.size,getModuleCacheKeys:()=>Array.from(et.keys())});const _i=e=>{const t=typeof e=="string"?vi(e):Kr(e==null?void 0:e.modules),r=Zr(t==null?void 0:t.name);return r==null?void 0:r.icon},nd=e=>{const t=Kr(e==null?void 0:e.modules),r=Zr(t==null?void 0:t.name),[n,o]=C.useState(!1),[s,i]=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=od((e==null?void 0:e.operations)||[]),f=(await a()).map(m=>{const{operations:w,items:p,path:v}=m;if(w!=null&&w.length&&!h(w))return null;const _=(p||[]).filter(x=>{var T;return!((T=x==null?void 0:x.operations)!=null&&T.length)||h(x.operations)});return!_.length&&!v?null:{...m,items:_}}).filter(Boolean);return o(!1),f},c=async()=>{const h=await l();e&&i(f=>({...f,[e.name]:h}))};C.useEffect(()=>{c()},[r==null?void 0:r.menu]);const d=C.useMemo(()=>e?s[e.name]||[]:[],[s,e]);return{loading:n,menu:d}},od=e=>t=>t.every(r=>e.some(n=>n.name===r));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 ho(e){return function t(r,n,o){switch(arguments.length){case 0:return t;case 1:return Z(r)?t:tt(function(s,i){return e(r,s,i)});case 2:return Z(r)&&Z(n)?t:Z(r)?tt(function(s,i){return e(s,n,i)}):Z(n)?tt(function(s,i){return e(r,s,i)}):xt(function(s){return e(r,n,s)});default:return Z(r)&&Z(n)&&Z(o)?t:Z(r)&&Z(n)?tt(function(s,i){return e(s,i,o)}):Z(r)&&Z(o)?tt(function(s,i){return e(s,n,i)}):Z(n)&&Z(o)?tt(function(s,i){return e(r,s,i)}):Z(r)?xt(function(s){return e(s,n,o)}):Z(n)?xt(function(s){return e(r,s,o)}):Z(o)?xt(function(s){return e(r,n,s)}):e(r,n,o)}}}function Xr(e,t){return Object.prototype.hasOwnProperty.call(t,e)}function xi(e){return Object.prototype.toString.call(e)==="[object Object]"}var sd=ho(function(t,r,n){var o=t(r),s=t(n);return o>s?-1:o<s?1:0}),id=ho(function(t,r,n){var o={},s;r=r||{},n=n||{};for(s in r)Xr(s,r)&&(o[s]=Xr(s,n)?t(s,r[s],n[s]):r[s]);for(s in n)Xr(s,n)&&!Xr(s,o)&&(o[s]=n[s]);return o}),ad=ho(function e(t,r,n){return id(function(o,s,i){return xi(s)&&xi(i)?e(t,s,i):t(o,s,i)},r,n)}),ld=tt(function(t,r){return ad(function(n,o,s){return s},t,r)}),cd=tt(function(t,r){return Array.prototype.slice.call(r,0).sort(function(n,o){for(var s=0,i=0;s===0&&i<t.length;)s=t[i](n,o),i+=1;return s})});const mo=()=>{const e=ii(),t=bi();return C.useMemo(()=>ud(e,t),[e,t])},ud=(e,t)=>cd([sd(dd)],t).find(r=>r.route&&e.startsWith(r.route)),dd=e=>{var t;return((t=e==null?void 0:e.route)==null?void 0:t.length)||-1},Ci=()=>{var e;return(e=mo())==null?void 0:e.name},fd=()=>{const e=mo(),t=wi(e);return Zr(t==null?void 0:t.name)},Ei=(e,t)=>{const n=Cr().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},Vt=(e,t)=>{const r=Ei(e,!!t)??t;return C.useCallback((n,o)=>{const i={Accept:"application/json",...(o==null?void 0:o.body)instanceof FormData?{}:{"Content-Type":"application/json"},...o==null?void 0:o.headers};return fetch(pd(`${r}${n}`),{...o,headers:i})},[r])},pd=e=>e.replace(/\/+/g,"/"),hd=(e,t)=>r=>({timestamp:new Date(new Date().toUTCString()).toISOString(),module:t.name,moduleVersion:t.version,application:t.application,user:e.username,...r}),md=(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(hd(t,r)))});if(!o.ok)throw new Error(`Error publishing habits event ${o.statusText}`)},gd="@bluealba/pae-habits-service",Si=()=>{const{authUser:e}=Yr(),t=Sr(),r=Vt(gd);return C.useCallback(md(r,e,t),[r,e,t])},vd=()=>{const e=Si();return C.useCallback((t,r)=>e([{name:t,data:r}]),[e])},Ti=e=>{const t=Sr(),r=window[oi],[n,o]=C.useState(null);return C.useEffect(()=>r.defineExtensionPoint(t,e,s=>{o(()=>s)}),[o]),n},Ai=(e,t,r)=>{C.useEffect(()=>window[oi].setExtensionPoint(e,t,r),[])},Pi=(e,t)=>{C.useEffect(()=>(window.addEventListener(e,t),()=>window.removeEventListener(e,t)),[e,t])},Oi=e=>{const{cssCustomizationLoadingDelay:t=1e3}=hi();C.useEffect(()=>{if(!e)return;const r=document.createElement("style");return setTimeout(()=>{r.innerHTML=e,document.head.append(r)},t),()=>r&&r.remove()},[e])},yd=e=>{var t;return(t=e.split(/[#?]/)[0].split(".").pop())==null?void 0:t.trim()},bd={woff2:"woff2",woff:"woff",ttf:"truetype",otf:"opentype",eot:"embedded-opentype",svg:"svg"},wd=e=>{const t=yd(e);return t?bd[t]:void 0},_d=(e,t)=>{const r=t??wd(e);return r?`format(${r})`:""};function ki(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:i,variants:a})=>a.map(({path:l,fontWeight:c,format:d})=>`
|
|
49
24
|
@font-face {
|
|
50
25
|
font-family: "${i}";
|
|
51
|
-
src: url("${l}") ${
|
|
26
|
+
src: url("${l}") ${_d(l,d)};
|
|
52
27
|
font-weight: ${c};
|
|
53
28
|
font-style: normal;
|
|
54
29
|
}
|
|
55
30
|
`)).join(`
|
|
56
|
-
`);return
|
|
57
|
-
`+
|
|
58
|
-
`):"",this.name="UnsubscriptionError",this.errors=n}});function bo(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var er=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,r,o,s;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var a=go(i),l=a.next();!l.done;l=a.next()){var c=l.value;c.remove(this)}}catch(f){t={error:f}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}else i.remove(this);var d=this.initialTeardown;if(He(d))try{d()}catch(f){s=f instanceof yo?f.errors:[f]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var p=go(h),m=p.next();!m.done;m=p.next()){var w=m.value;try{Fi(w)}catch(f){s=s??[],f instanceof yo?s=Jn(Jn([],vo(s)),vo(f.errors)):s.push(f)}}}catch(f){r={error:f}}finally{try{m&&!m.done&&(o=p.return)&&o.call(p)}finally{if(r)throw r.error}}}if(s)throw new yo(s)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)Fi(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&bo(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&bo(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Ni=er.EMPTY;function $i(e){return e instanceof er||e&&"closed"in e&&He(e.remove)&&He(e.add)&&He(e.unsubscribe)}function Fi(e){He(e)?e():e.unsubscribe()}var Rd={Promise:void 0},jd={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,Jn([e,t],vo(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Dd(e){jd.setTimeout(function(){throw e})}function Bi(){}function tr(e){e()}var Ui=function(e){Tn(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,$i(n)&&n.add(r)):r.destination=Md,r}return t.create=function(n,r,o){return new wo(n,r,o)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(er),Ld=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(r){nr(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){nr(r)}else nr(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){nr(n)}},e}(),wo=function(e){Tn(t,e);function t(n,r,o){var s=e.call(this)||this,i;return He(n)||!n?i={next:n??void 0,error:r??void 0,complete:o??void 0}:i=n,s.destination=new Ld(i),s}return t}(Ui);function nr(e){Dd(e)}function Id(e){throw e}var Md={closed:!0,next:Bi,error:Id,complete:Bi},Nd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function $d(e){return e}function Fd(e){return e.length===0?$d:e.length===1?e[0]:function(n){return e.reduce(function(r,o){return o(r)},n)}}var zi=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,r){var o=this,s=Ud(t)?t:new wo(t,n,r);return tr(function(){var i=o,a=i.operator,l=i.source;s.add(a?a.call(s,l):l?o._subscribe(s):o._trySubscribe(s))}),s},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var r=this;return n=Hi(n),new n(function(o,s){var i=new wo({next:function(a){try{t(a)}catch(l){s(l),i.unsubscribe()}},error:s,complete:o});r.subscribe(i)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[Nd]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Fd(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=Hi(t),new t(function(r,o){var s;n.subscribe(function(i){return s=i},function(i){return o(i)},function(){return r(s)})})},e.create=function(t){return new e(t)},e}();function Hi(e){var t;return(t=e??Rd.Promise)!==null&&t!==void 0?t:Promise}function Bd(e){return e&&He(e.next)&&He(e.error)&&He(e.complete)}function Ud(e){return e&&e instanceof Ui||Bd(e)&&$i(e)}var zd=Mi(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Wi=function(e){Tn(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var r=new Vi(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new zd},t.prototype.next=function(n){var r=this;tr(function(){var o,s;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var i=go(r.currentObservers),a=i.next();!a.done;a=i.next()){var l=a.value;l.next(n)}}catch(c){o={error:c}}finally{try{a&&!a.done&&(s=i.return)&&s.call(i)}finally{if(o)throw o.error}}}})},t.prototype.error=function(n){var r=this;tr(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=n;for(var o=r.observers;o.length;)o.shift().error(n)}})},t.prototype.complete=function(){var n=this;tr(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var r=this,o=this,s=o.hasError,i=o.isStopped,a=o.observers;return s||i?Ni:(this.currentObservers=null,a.push(n),new er(function(){r.currentObservers=null,bo(a,n)}))},t.prototype._checkFinalizedStatuses=function(n){var r=this,o=r.hasError,s=r.thrownError,i=r.isStopped;o?n.error(s):i&&n.complete()},t.prototype.asObservable=function(){var n=new zi;return n.source=this,n},t.create=function(n,r){return new Vi(n,r)},t}(zi),Vi=function(e){Tn(t,e);function t(n,r){var o=e.call(this)||this;return o.destination=n,o.source=r,o}return t.prototype.next=function(n){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.next)===null||o===void 0||o.call(r,n)},t.prototype.error=function(n){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.error)===null||o===void 0||o.call(r,n)},t.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},t.prototype._subscribe=function(n){var r,o;return(o=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&o!==void 0?o:Ni},t}(Wi),Hd=function(e){Tn(t,e);function t(n){var r=e.call(this)||this;return r._value=n,r}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(n){var r=e.prototype._subscribe.call(this,n);return!r.closed&&n.next(this._value),r},t.prototype.getValue=function(){var n=this,r=n.hasError,o=n.thrownError,s=n._value;if(r)throw o;return this._throwIfClosed(),s},t.prototype.next=function(n){e.prototype.next.call(this,this._value=n)},t}(Wi);const Wd=e=>{const{fontsLoaded:t}=Li(e.fonts);Di(e.styleSheet);const n=()=>{const r=new Hd(!0);window[io]=r};x.useEffect(()=>{t&&window[io].next(!1)},[t]),x.useEffect(()=>{n()},[])},Vd=()=>{const e=window[io];return oi(e,e.getValue()??void 0)},_o="theme",Gi=()=>document.documentElement.dataset[_o]==="dark"?"dark":"light",Gd=()=>{const[e,t]=x.useState(Gi());return x.useEffect(()=>{const n=document.documentElement,r=()=>t(Gi),o=new MutationObserver(s=>{for(const i of s)i.type==="attributes"&&i.attributeName===`data-${_o}`&&r()});return o.observe(n,{attributes:!0,attributeFilter:[`data-${_o}`]}),r(),()=>{o.disconnect()}},[]),e},qd=e=>e!==void 0,Qd=e=>e!==!0;let Yd={data:""},Kd=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Yd,Zd=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Xd=/\/\*[^]*?\*\/| +/g,qi=/\n+/g,nt=(e,t)=>{let n="",r="",o="";for(let s in e){let i=e[s];s[0]=="@"?s[1]=="i"?n=s+" "+i+";":r+=s[1]=="f"?nt(i,s):s+"{"+nt(i,s[1]=="k"?"":t)+"}":typeof i=="object"?r+=nt(i,t?t.replace(/([^,])+/g,a=>s.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,a):a?a+" "+l:l)):s):i!=null&&(s=/^--/.test(s)?s:s.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=nt.p?nt.p(s,i):s+":"+i+";")}return n+(t&&o?t+"{"+o+"}":o)+r},We={},Qi=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+Qi(e[n]);return t}return e},Jd=(e,t,n,r,o)=>{let s=Qi(e),i=We[s]||(We[s]=(l=>{let c=0,d=11;for(;c<l.length;)d=101*d+l.charCodeAt(c++)>>>0;return"go"+d})(s));if(!We[i]){let l=s!==e?e:(c=>{let d,h,p=[{}];for(;d=Zd.exec(c.replace(Xd,""));)d[4]?p.shift():d[3]?(h=d[3].replace(qi," ").trim(),p.unshift(p[0][h]=p[0][h]||{})):p[0][d[1]]=d[2].replace(qi," ").trim();return p[0]})(e);We[i]=nt(o?{["@keyframes "+i]:l}:l,n?"":"."+i)}let a=n&&We.g?We.g:null;return n&&(We.g=We[i]),((l,c,d,h)=>{h?c.data=c.data.replace(h,l):c.data.indexOf(l)===-1&&(c.data=d?l+c.data:c.data+l)})(We[i],t,r,a),i},ef=(e,t,n)=>e.reduce((r,o,s)=>{let i=t[s];if(i&&i.call){let a=i(n),l=a&&a.props&&a.props.className||/^go/.test(a)&&a;i=l?"."+l:a&&typeof a=="object"?a.props?"":nt(a,""):a===!1?"":a}return r+o+(i??"")},"");function rr(e){let t=this||{},n=e.call?e(t.p):e;return Jd(n.unshift?n.raw?ef(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,Kd(t.target),t.g,t.o,t.k)}let Yi,xo,Co;rr.bind({g:1});let Ve=rr.bind({k:1});function tf(e,t,n,r){nt.p=t,Yi=e,xo=n,Co=r}function rt(e,t){let n=this||{};return function(){let r=arguments;function o(s,i){let a=Object.assign({},s),l=a.className||o.className;n.p=Object.assign({theme:xo&&xo()},a),n.o=/ *go\d+/.test(l),a.className=rr.apply(n,r)+(l?" "+l:"");let c=e;return e[0]&&(c=a.as||e,delete a.as),Co&&c[0]&&Co(a),Yi(c,a)}return o}}var nf=e=>typeof e=="function",or=(e,t)=>nf(e)?e(t):e,rf=(()=>{let e=0;return()=>(++e).toString()})(),Ki=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),of=20,sr=new Map,sf=1e3,Zi=e=>{if(sr.has(e))return;let t=setTimeout(()=>{sr.delete(e),Ct({type:4,toastId:e})},sf);sr.set(e,t)},af=e=>{let t=sr.get(e);t&&clearTimeout(t)},Eo=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,of)};case 1:return t.toast.id&&af(t.toast.id),{...e,toasts:e.toasts.map(s=>s.id===t.toast.id?{...s,...t.toast}:s)};case 2:let{toast:n}=t;return e.toasts.find(s=>s.id===n.id)?Eo(e,{type:1,toast:n}):Eo(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?Zi(r):e.toasts.forEach(s=>{Zi(s.id)}),{...e,toasts:e.toasts.map(s=>s.id===r||r===void 0?{...s,visible:!1}:s)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(s=>s.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(s=>({...s,pauseDuration:s.pauseDuration+o}))}}},ir=[],ar={toasts:[],pausedAt:void 0},Ct=e=>{ar=Eo(ar,e),ir.forEach(t=>{t(ar)})},lf={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},cf=(e={})=>{let[t,n]=x.useState(ar);x.useEffect(()=>(ir.push(n),()=>{let o=ir.indexOf(n);o>-1&&ir.splice(o,1)}),[t]);let r=t.toasts.map(o=>{var s,i;return{...e,...e[o.type],...o,duration:o.duration||((s=e[o.type])==null?void 0:s.duration)||(e==null?void 0:e.duration)||lf[o.type],style:{...e.style,...(i=e[o.type])==null?void 0:i.style,...o.style}}});return{...t,toasts:r}},uf=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(n==null?void 0:n.id)||rf()}),An=e=>(t,n)=>{let r=uf(t,e,n);return Ct({type:2,toast:r}),r.id},be=(e,t)=>An("blank")(e,t);be.error=An("error"),be.success=An("success"),be.loading=An("loading"),be.custom=An("custom"),be.dismiss=e=>{Ct({type:3,toastId:e})},be.remove=e=>Ct({type:4,toastId:e}),be.promise=(e,t,n)=>{let r=be.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(o=>(be.success(or(t.success,o),{id:r,...n,...n==null?void 0:n.success}),o)).catch(o=>{be.error(or(t.error,o),{id:r,...n,...n==null?void 0:n.error})}),e};var df=(e,t)=>{Ct({type:1,toast:{id:e,height:t}})},ff=()=>{Ct({type:5,time:Date.now()})},pf=e=>{let{toasts:t,pausedAt:n}=cf(e);x.useEffect(()=>{if(n)return;let s=Date.now(),i=t.map(a=>{if(a.duration===1/0)return;let l=(a.duration||0)+a.pauseDuration-(s-a.createdAt);if(l<0){a.visible&&be.dismiss(a.id);return}return setTimeout(()=>be.dismiss(a.id),l)});return()=>{i.forEach(a=>a&&clearTimeout(a))}},[t,n]);let r=x.useCallback(()=>{n&&Ct({type:6,time:Date.now()})},[n]),o=x.useCallback((s,i)=>{let{reverseOrder:a=!1,gutter:l=8,defaultPosition:c}=i||{},d=t.filter(m=>(m.position||c)===(s.position||c)&&m.height),h=d.findIndex(m=>m.id===s.id),p=d.filter((m,w)=>w<h&&m.visible).length;return d.filter(m=>m.visible).slice(...a?[p+1]:[0,p]).reduce((m,w)=>m+(w.height||0)+l,0)},[t]);return{toasts:t,handlers:{updateHeight:df,startPause:ff,endPause:r,calculateOffset:o}}},hf=Ve`
|
|
31
|
+
`);return n.innerHTML=o,document.head.appendChild(n),(async()=>{try{await Promise.all(e.flatMap(({fontFamily:i,variants:a})=>a.map(({fontWeight:l})=>document.fonts.load(`normal ${l} 1em "${i}"`))))}finally{r(!0)}})(),()=>{document.head.removeChild(n)}},[e]),C.useEffect(()=>{!t&&!(e!=null&&e.length)&&r(!0)},[e,t]),{fontsLoaded:t}}var go=function(e,t){return go=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])},go(e,t)};function Tr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");go(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 s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},De.apply(this,arguments)};function Ri(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 vo(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 yo(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,s=[],i;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)s.push(o.value)}catch(a){i={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return s}function Jr(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,s;n<o;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function He(e){return typeof e=="function"}function ji(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 bo=ji(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
32
|
+
`+r.map(function(n,o){return o+1+") "+n.toString()}).join(`
|
|
33
|
+
`):"",this.name="UnsubscriptionError",this.errors=r}});function wo(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var en=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,s;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var a=vo(i),l=a.next();!l.done;l=a.next()){var c=l.value;c.remove(this)}}catch(p){t={error:p}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else i.remove(this);var d=this.initialTeardown;if(He(d))try{d()}catch(p){s=p instanceof bo?p.errors:[p]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var f=vo(h),m=f.next();!m.done;m=f.next()){var w=m.value;try{Ii(w)}catch(p){s=s??[],p instanceof bo?s=Jr(Jr([],yo(s)),yo(p.errors)):s.push(p)}}}catch(p){n={error:p}}finally{try{m&&!m.done&&(o=f.return)&&o.call(f)}finally{if(n)throw n.error}}}if(s)throw new bo(s)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Ii(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)&&wo(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&wo(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Di=en.EMPTY;function Li(e){return e instanceof en||e&&"closed"in e&&He(e.remove)&&He(e.add)&&He(e.unsubscribe)}function Ii(e){He(e)?e():e.unsubscribe()}var xd={Promise:void 0},Cd={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,Jr([e,t],yo(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Ed(e){Cd.setTimeout(function(){throw e})}function Ni(){}function tn(e){e()}var Mi=function(e){Tr(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,Li(r)&&r.add(n)):n.destination=Ad,n}return t.create=function(r,n,o){return new _o(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}(en),Sd=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){rn(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){rn(n)}else rn(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){rn(r)}},e}(),_o=function(e){Tr(t,e);function t(r,n,o){var s=e.call(this)||this,i;return He(r)||!r?i={next:r??void 0,error:n??void 0,complete:o??void 0}:i=r,s.destination=new Sd(i),s}return t}(Mi);function rn(e){Ed(e)}function Td(e){throw e}var Ad={closed:!0,next:Ni,error:Td,complete:Ni},Pd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Od(e){return e}function kd(e){return e.length===0?Od:e.length===1?e[0]:function(r){return e.reduce(function(n,o){return o(n)},r)}}var $i=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,s=jd(t)?t:new _o(t,r,n);return tn(function(){var i=o,a=i.operator,l=i.source;s.add(a?a.call(s,l):l?o._subscribe(s):o._trySubscribe(s))}),s},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=Fi(r),new r(function(o,s){var i=new _o({next:function(a){try{t(a)}catch(l){s(l),i.unsubscribe()}},error:s,complete:o});n.subscribe(i)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[Pd]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return kd(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Fi(t),new t(function(n,o){var s;r.subscribe(function(i){return s=i},function(i){return o(i)},function(){return n(s)})})},e.create=function(t){return new e(t)},e}();function Fi(e){var t;return(t=e??xd.Promise)!==null&&t!==void 0?t:Promise}function Rd(e){return e&&He(e.next)&&He(e.error)&&He(e.complete)}function jd(e){return e&&e instanceof Mi||Rd(e)&&Li(e)}var Dd=ji(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Bi=function(e){Tr(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 Ui(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new Dd},t.prototype.next=function(r){var n=this;tn(function(){var o,s;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var i=vo(n.currentObservers),a=i.next();!a.done;a=i.next()){var l=a.value;l.next(r)}}catch(c){o={error:c}}finally{try{a&&!a.done&&(s=i.return)&&s.call(i)}finally{if(o)throw o.error}}}})},t.prototype.error=function(r){var n=this;tn(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;tn(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,s=o.hasError,i=o.isStopped,a=o.observers;return s||i?Di:(this.currentObservers=null,a.push(r),new en(function(){n.currentObservers=null,wo(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,s=n.thrownError,i=n.isStopped;o?r.error(s):i&&r.complete()},t.prototype.asObservable=function(){var r=new $i;return r.source=this,r},t.create=function(r,n){return new Ui(r,n)},t}($i),Ui=function(e){Tr(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:Di},t}(Bi),Ld=function(e){Tr(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,s=r._value;if(n)throw o;return this._throwIfClosed(),s},t.prototype.next=function(r){e.prototype.next.call(this,this._value=r)},t}(Bi);const Id=e=>{const{fontsLoaded:t}=ki(e.fonts);Oi(e.styleSheet);const r=()=>{const n=new Ld(!0);window[lo]=n};C.useEffect(()=>{t&&window[lo].next(!1)},[t]),C.useEffect(()=>{r()},[])},Nd=()=>{const e=window[lo];return si(e,e.getValue()??void 0)},xo="theme",zi=()=>document.documentElement.dataset[xo]==="dark"?"dark":"light",Md=()=>{const[e,t]=C.useState(zi());return C.useEffect(()=>{const r=document.documentElement,n=()=>t(zi),o=new MutationObserver(s=>{for(const i of s)i.type==="attributes"&&i.attributeName===`data-${xo}`&&n()});return o.observe(r,{attributes:!0,attributeFilter:[`data-${xo}`]}),n(),()=>{o.disconnect()}},[]),e},$d=e=>e!==void 0,Fd=e=>e!==!0;let Bd={data:""},Ud=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Bd,zd=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Hd=/\/\*[^]*?\*\/| +/g,Hi=/\n+/g,rt=(e,t)=>{let r="",n="",o="";for(let s in e){let i=e[s];s[0]=="@"?s[1]=="i"?r=s+" "+i+";":n+=s[1]=="f"?rt(i,s):s+"{"+rt(i,s[1]=="k"?"":t)+"}":typeof i=="object"?n+=rt(i,t?t.replace(/([^,])+/g,a=>s.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,a):a?a+" "+l:l)):s):i!=null&&(s=/^--/.test(s)?s:s.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=rt.p?rt.p(s,i):s+":"+i+";")}return r+(t&&o?t+"{"+o+"}":o)+n},We={},Wi=e=>{if(typeof e=="object"){let t="";for(let r in e)t+=r+Wi(e[r]);return t}return e},Wd=(e,t,r,n,o)=>{let s=Wi(e),i=We[s]||(We[s]=(l=>{let c=0,d=11;for(;c<l.length;)d=101*d+l.charCodeAt(c++)>>>0;return"go"+d})(s));if(!We[i]){let l=s!==e?e:(c=>{let d,h,f=[{}];for(;d=zd.exec(c.replace(Hd,""));)d[4]?f.shift():d[3]?(h=d[3].replace(Hi," ").trim(),f.unshift(f[0][h]=f[0][h]||{})):f[0][d[1]]=d[2].replace(Hi," ").trim();return f[0]})(e);We[i]=rt(o?{["@keyframes "+i]:l}:l,r?"":"."+i)}let a=r&&We.g?We.g:null;return r&&(We.g=We[i]),((l,c,d,h)=>{h?c.data=c.data.replace(h,l):c.data.indexOf(l)===-1&&(c.data=d?l+c.data:c.data+l)})(We[i],t,n,a),i},Vd=(e,t,r)=>e.reduce((n,o,s)=>{let i=t[s];if(i&&i.call){let a=i(r),l=a&&a.props&&a.props.className||/^go/.test(a)&&a;i=l?"."+l:a&&typeof a=="object"?a.props?"":rt(a,""):a===!1?"":a}return n+o+(i??"")},"");function nn(e){let t=this||{},r=e.call?e(t.p):e;return Wd(r.unshift?r.raw?Vd(r,[].slice.call(arguments,1),t.p):r.reduce((n,o)=>Object.assign(n,o&&o.call?o(t.p):o),{}):r,Ud(t.target),t.g,t.o,t.k)}let Vi,Co,Eo;nn.bind({g:1});let Ve=nn.bind({k:1});function Gd(e,t,r,n){rt.p=t,Vi=e,Co=r,Eo=n}function nt(e,t){let r=this||{};return function(){let n=arguments;function o(s,i){let a=Object.assign({},s),l=a.className||o.className;r.p=Object.assign({theme:Co&&Co()},a),r.o=/ *go\d+/.test(l),a.className=nn.apply(r,n)+(l?" "+l:"");let c=e;return e[0]&&(c=a.as||e,delete a.as),Eo&&c[0]&&Eo(a),Vi(c,a)}return o}}var qd=e=>typeof e=="function",on=(e,t)=>qd(e)?e(t):e,Qd=(()=>{let e=0;return()=>(++e).toString()})(),Gi=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Yd=20,sn=new Map,Kd=1e3,qi=e=>{if(sn.has(e))return;let t=setTimeout(()=>{sn.delete(e),Ct({type:4,toastId:e})},Kd);sn.set(e,t)},Zd=e=>{let t=sn.get(e);t&&clearTimeout(t)},So=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,Yd)};case 1:return t.toast.id&&Zd(t.toast.id),{...e,toasts:e.toasts.map(s=>s.id===t.toast.id?{...s,...t.toast}:s)};case 2:let{toast:r}=t;return e.toasts.find(s=>s.id===r.id)?So(e,{type:1,toast:r}):So(e,{type:0,toast:r});case 3:let{toastId:n}=t;return n?qi(n):e.toasts.forEach(s=>{qi(s.id)}),{...e,toasts:e.toasts.map(s=>s.id===n||n===void 0?{...s,visible:!1}:s)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(s=>s.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(s=>({...s,pauseDuration:s.pauseDuration+o}))}}},an=[],ln={toasts:[],pausedAt:void 0},Ct=e=>{ln=So(ln,e),an.forEach(t=>{t(ln)})},Xd={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Jd=(e={})=>{let[t,r]=C.useState(ln);C.useEffect(()=>(an.push(r),()=>{let o=an.indexOf(r);o>-1&&an.splice(o,1)}),[t]);let n=t.toasts.map(o=>{var s,i;return{...e,...e[o.type],...o,duration:o.duration||((s=e[o.type])==null?void 0:s.duration)||(e==null?void 0:e.duration)||Xd[o.type],style:{...e.style,...(i=e[o.type])==null?void 0:i.style,...o.style}}});return{...t,toasts:n}},ef=(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)||Qd()}),Ar=e=>(t,r)=>{let n=ef(t,e,r);return Ct({type:2,toast:n}),n.id},be=(e,t)=>Ar("blank")(e,t);be.error=Ar("error"),be.success=Ar("success"),be.loading=Ar("loading"),be.custom=Ar("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(on(t.success,o),{id:n,...r,...r==null?void 0:r.success}),o)).catch(o=>{be.error(on(t.error,o),{id:n,...r,...r==null?void 0:r.error})}),e};var tf=(e,t)=>{Ct({type:1,toast:{id:e,height:t}})},rf=()=>{Ct({type:5,time:Date.now()})},nf=e=>{let{toasts:t,pausedAt:r}=Jd(e);C.useEffect(()=>{if(r)return;let s=Date.now(),i=t.map(a=>{if(a.duration===1/0)return;let l=(a.duration||0)+a.pauseDuration-(s-a.createdAt);if(l<0){a.visible&&be.dismiss(a.id);return}return setTimeout(()=>be.dismiss(a.id),l)});return()=>{i.forEach(a=>a&&clearTimeout(a))}},[t,r]);let n=C.useCallback(()=>{r&&Ct({type:6,time:Date.now()})},[r]),o=C.useCallback((s,i)=>{let{reverseOrder:a=!1,gutter:l=8,defaultPosition:c}=i||{},d=t.filter(m=>(m.position||c)===(s.position||c)&&m.height),h=d.findIndex(m=>m.id===s.id),f=d.filter((m,w)=>w<h&&m.visible).length;return d.filter(m=>m.visible).slice(...a?[f+1]:[0,f]).reduce((m,w)=>m+(w.height||0)+l,0)},[t]);return{toasts:t,handlers:{updateHeight:tf,startPause:rf,endPause:n,calculateOffset:o}}},of=Ve`
|
|
59
34
|
from {
|
|
60
35
|
transform: scale(0) rotate(45deg);
|
|
61
36
|
opacity: 0;
|
|
@@ -63,7 +38,7 @@ from {
|
|
|
63
38
|
to {
|
|
64
39
|
transform: scale(1) rotate(45deg);
|
|
65
40
|
opacity: 1;
|
|
66
|
-
}`,
|
|
41
|
+
}`,sf=Ve`
|
|
67
42
|
from {
|
|
68
43
|
transform: scale(0);
|
|
69
44
|
opacity: 0;
|
|
@@ -71,7 +46,7 @@ from {
|
|
|
71
46
|
to {
|
|
72
47
|
transform: scale(1);
|
|
73
48
|
opacity: 1;
|
|
74
|
-
}`,
|
|
49
|
+
}`,af=Ve`
|
|
75
50
|
from {
|
|
76
51
|
transform: scale(0) rotate(90deg);
|
|
77
52
|
opacity: 0;
|
|
@@ -79,7 +54,7 @@ from {
|
|
|
79
54
|
to {
|
|
80
55
|
transform: scale(1) rotate(90deg);
|
|
81
56
|
opacity: 1;
|
|
82
|
-
}`,
|
|
57
|
+
}`,lf=nt("div")`
|
|
83
58
|
width: 20px;
|
|
84
59
|
opacity: 0;
|
|
85
60
|
height: 20px;
|
|
@@ -88,14 +63,14 @@ to {
|
|
|
88
63
|
position: relative;
|
|
89
64
|
transform: rotate(45deg);
|
|
90
65
|
|
|
91
|
-
animation: ${
|
|
66
|
+
animation: ${of} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
92
67
|
forwards;
|
|
93
68
|
animation-delay: 100ms;
|
|
94
69
|
|
|
95
70
|
&:after,
|
|
96
71
|
&:before {
|
|
97
72
|
content: '';
|
|
98
|
-
animation: ${
|
|
73
|
+
animation: ${sf} 0.15s ease-out forwards;
|
|
99
74
|
animation-delay: 150ms;
|
|
100
75
|
position: absolute;
|
|
101
76
|
border-radius: 3px;
|
|
@@ -108,18 +83,18 @@ to {
|
|
|
108
83
|
}
|
|
109
84
|
|
|
110
85
|
&:before {
|
|
111
|
-
animation: ${
|
|
86
|
+
animation: ${af} 0.15s ease-out forwards;
|
|
112
87
|
animation-delay: 180ms;
|
|
113
88
|
transform: rotate(90deg);
|
|
114
89
|
}
|
|
115
|
-
`,
|
|
90
|
+
`,cf=Ve`
|
|
116
91
|
from {
|
|
117
92
|
transform: rotate(0deg);
|
|
118
93
|
}
|
|
119
94
|
to {
|
|
120
95
|
transform: rotate(360deg);
|
|
121
96
|
}
|
|
122
|
-
`,
|
|
97
|
+
`,uf=nt("div")`
|
|
123
98
|
width: 12px;
|
|
124
99
|
height: 12px;
|
|
125
100
|
box-sizing: border-box;
|
|
@@ -127,8 +102,8 @@ to {
|
|
|
127
102
|
border-radius: 100%;
|
|
128
103
|
border-color: ${e=>e.secondary||"#e0e0e0"};
|
|
129
104
|
border-right-color: ${e=>e.primary||"#616161"};
|
|
130
|
-
animation: ${
|
|
131
|
-
`,
|
|
105
|
+
animation: ${cf} 1s linear infinite;
|
|
106
|
+
`,df=Ve`
|
|
132
107
|
from {
|
|
133
108
|
transform: scale(0) rotate(45deg);
|
|
134
109
|
opacity: 0;
|
|
@@ -136,7 +111,7 @@ from {
|
|
|
136
111
|
to {
|
|
137
112
|
transform: scale(1) rotate(45deg);
|
|
138
113
|
opacity: 1;
|
|
139
|
-
}`,
|
|
114
|
+
}`,ff=Ve`
|
|
140
115
|
0% {
|
|
141
116
|
height: 0;
|
|
142
117
|
width: 0;
|
|
@@ -150,7 +125,7 @@ to {
|
|
|
150
125
|
100% {
|
|
151
126
|
opacity: 1;
|
|
152
127
|
height: 10px;
|
|
153
|
-
}`,
|
|
128
|
+
}`,pf=nt("div")`
|
|
154
129
|
width: 20px;
|
|
155
130
|
opacity: 0;
|
|
156
131
|
height: 20px;
|
|
@@ -159,13 +134,13 @@ to {
|
|
|
159
134
|
position: relative;
|
|
160
135
|
transform: rotate(45deg);
|
|
161
136
|
|
|
162
|
-
animation: ${
|
|
137
|
+
animation: ${df} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
163
138
|
forwards;
|
|
164
139
|
animation-delay: 100ms;
|
|
165
140
|
&:after {
|
|
166
141
|
content: '';
|
|
167
142
|
box-sizing: border-box;
|
|
168
|
-
animation: ${
|
|
143
|
+
animation: ${ff} 0.2s ease-out forwards;
|
|
169
144
|
opacity: 0;
|
|
170
145
|
animation-delay: 200ms;
|
|
171
146
|
position: absolute;
|
|
@@ -177,16 +152,16 @@ to {
|
|
|
177
152
|
height: 10px;
|
|
178
153
|
width: 6px;
|
|
179
154
|
}
|
|
180
|
-
`,
|
|
155
|
+
`,hf=nt("div")`
|
|
181
156
|
position: absolute;
|
|
182
|
-
`,
|
|
157
|
+
`,mf=nt("div")`
|
|
183
158
|
position: relative;
|
|
184
159
|
display: flex;
|
|
185
160
|
justify-content: center;
|
|
186
161
|
align-items: center;
|
|
187
162
|
min-width: 20px;
|
|
188
163
|
min-height: 20px;
|
|
189
|
-
`,
|
|
164
|
+
`,gf=Ve`
|
|
190
165
|
from {
|
|
191
166
|
transform: scale(0.6);
|
|
192
167
|
opacity: 0.4;
|
|
@@ -194,20 +169,20 @@ from {
|
|
|
194
169
|
to {
|
|
195
170
|
transform: scale(1);
|
|
196
171
|
opacity: 1;
|
|
197
|
-
}`,
|
|
172
|
+
}`,vf=nt("div")`
|
|
198
173
|
position: relative;
|
|
199
174
|
transform: scale(0.6);
|
|
200
175
|
opacity: 0.4;
|
|
201
176
|
min-width: 20px;
|
|
202
|
-
animation: ${
|
|
177
|
+
animation: ${gf} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
203
178
|
forwards;
|
|
204
|
-
`,
|
|
179
|
+
`,yf=({toast:e})=>{let{icon:t,type:r,iconTheme:n}=e;return t!==void 0?typeof t=="string"?g.createElement(vf,null,t):t:r==="blank"?null:g.createElement(mf,null,g.createElement(uf,{...n}),r!=="loading"&&g.createElement(hf,null,r==="error"?g.createElement(lf,{...n}):g.createElement(pf,{...n})))},bf=e=>`
|
|
205
180
|
0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
|
|
206
181
|
100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
|
|
207
|
-
`,
|
|
182
|
+
`,wf=e=>`
|
|
208
183
|
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
|
|
209
184
|
100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
|
|
210
|
-
`,
|
|
185
|
+
`,_f="0%{opacity:0;} 100%{opacity:1;}",xf="0%{opacity:1;} 100%{opacity:0;}",Cf=nt("div")`
|
|
211
186
|
display: flex;
|
|
212
187
|
align-items: center;
|
|
213
188
|
background: #fff;
|
|
@@ -219,60 +194,60 @@ to {
|
|
|
219
194
|
pointer-events: auto;
|
|
220
195
|
padding: 8px 10px;
|
|
221
196
|
border-radius: 8px;
|
|
222
|
-
`,
|
|
197
|
+
`,Ef=nt("div")`
|
|
223
198
|
display: flex;
|
|
224
199
|
justify-content: center;
|
|
225
200
|
margin: 4px 10px;
|
|
226
201
|
color: inherit;
|
|
227
202
|
flex: 1 1 auto;
|
|
228
203
|
white-space: pre-line;
|
|
229
|
-
`,
|
|
204
|
+
`,Sf=(e,t)=>{let r=e.includes("top")?1:-1,[n,o]=Gi()?[_f,xf]:[bf(r),wf(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)`}},Tf=g.memo(({toast:e,position:t,style:r,children:n})=>{let o=e.height?Sf(e.position||t||"top-center",e.visible):{opacity:0},s=g.createElement(yf,{toast:e}),i=g.createElement(Ef,{...e.ariaProps},on(e.message,e));return g.createElement(Cf,{className:e.className,style:{...o,...r,...e.style}},typeof n=="function"?n({icon:s,message:i}):g.createElement(g.Fragment,null,s,i))});Gd(g.createElement);var Af=({id:e,className:t,style:r,onHeightUpdate:n,children:o})=>{let s=g.useCallback(i=>{if(i){let a=()=>{let l=i.getBoundingClientRect().height;n(e,l)};a(),new MutationObserver(a).observe(i,{subtree:!0,childList:!0,characterData:!0})}},[e,n]);return g.createElement("div",{ref:s,className:t,style:r},o)},Pf=(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:Gi()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(r?1:-1)}px)`,...n,...o}},Of=nn`
|
|
230
205
|
z-index: 9999;
|
|
231
206
|
> * {
|
|
232
207
|
pointer-events: auto;
|
|
233
208
|
}
|
|
234
|
-
`,lr=16,Ff=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:o,containerStyle:s,containerClassName:i})=>{let{toasts:a,handlers:l}=pf(n);return g.createElement("div",{style:{position:"fixed",zIndex:9999,top:lr,left:lr,right:lr,bottom:lr,pointerEvents:"none",...s},className:i,onMouseEnter:l.startPause,onMouseLeave:l.endPause},a.map(c=>{let d=c.position||t,h=l.calculateOffset(c,{reverseOrder:e,gutter:r,defaultPosition:t}),p=Nf(d,h);return g.createElement(Mf,{id:c.id,key:c.id,onHeightUpdate:l.updateHeight,className:c.visible?$f:"",style:p},c.type==="custom"?or(c.message,c):o?o(c):g.createElement(If,{toast:c,position:d}))}))},Xi=be;const So=()=>({notify:x.useCallback((t,n,r)=>{n==="warning"||n==="info"?Xi(t,{icon:n==="warning"?"⚠️":"ℹ️",style:{background:"var(--platform-background-primary-color)",color:"var(--platform-text-primary-color)"}}):Xi[n](t,{style:{background:"var(--platform-background-primary-color)",color:"var(--platform-text-primary-color)"}}),r&&console.error(r)},[])});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 Bf(e,t){return typeof e=="function"?e(t):e}function To(e){return typeof e=="number"&&e>=0&&e!==1/0}function Ji(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 ea(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:i,stale:a}=e;if(i){if(r){if(t.queryHash!==Ao(i,t.options))return!1}else if(!Pn(t.queryKey,i))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||s&&!s(t))}function ta(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(St(t.options.mutationKey)!==St(s))return!1}else if(!Pn(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Ao(e,t){return((t==null?void 0:t.queryKeyHashFn)||St)(e)}function St(e){return JSON.stringify(e,(t,n)=>ko(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Pn(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Pn(e[n],t[n])):!1}function Po(e,t){if(e===t)return e;const n=na(e)&&na(t);if(n||ko(e)&&ko(t)){const r=n?e:Object.keys(e),o=r.length,s=n?t:Object.keys(t),i=s.length,a=n?[]:{};let l=0;for(let c=0;c<i;c++){const d=n?c:s[c];(!n&&r.includes(d)||n)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,l++):(a[d]=Po(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&l++)}return o===i&&l===o?e:a}return t}function cr(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function na(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ko(e){if(!ra(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!ra(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function ra(e){return Object.prototype.toString.call(e)==="[object Object]"}function Uf(e){return new Promise(t=>{setTimeout(t,e)})}function Oo(e,t,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(e,t);if(n.structuralSharing!==!1){try{return Po(e,t)}catch(r){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`),r}return Po(e,t)}return t}function zf(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Hf(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ur=Symbol();function oa(e,t){return e.queryFn===ur&&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===ur?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function sa(e,t){return typeof e=="function"?e(...t):!!e}var Wf=(mu=class extends Gt{constructor(){super();L(this,Rt);L(this,ut);L(this,on);R(this,on,t=>{if(!Et&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){b(this,ut)||this.setEventListener(b(this,on))}onUnsubscribe(){var t;this.hasListeners()||((t=b(this,ut))==null||t.call(this),R(this,ut,void 0))}setEventListener(t){var n;R(this,on,t),(n=b(this,ut))==null||n.call(this),R(this,ut,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){b(this,Rt)!==t&&(R(this,Rt,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(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,on=new WeakMap,mu),Ro=new Wf,Vf=(gu=class extends Gt{constructor(){super();L(this,sn,!0);L(this,dt);L(this,an);R(this,an,t=>{if(!Et&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){b(this,dt)||this.setEventListener(b(this,an))}onUnsubscribe(){var t;this.hasListeners()||((t=b(this,dt))==null||t.call(this),R(this,dt,void 0))}setEventListener(t){var n;R(this,an,t),(n=b(this,dt))==null||n.call(this),R(this,dt,t(this.setOnline.bind(this)))}setOnline(t){b(this,sn)!==t&&(R(this,sn,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return b(this,sn)}},sn=new WeakMap,dt=new WeakMap,an=new WeakMap,gu),dr=new Vf;function jo(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function Gf(e){return Math.min(1e3*2**e,3e4)}function ia(e){return(e??"online")==="online"?dr.isOnline():!0}var aa=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Do(e){return e instanceof aa}function la(e){let t=!1,n=0,r=!1,o;const s=jo(),i=f=>{var v;r||(p(new aa(f)),(v=e.abort)==null||v.call(e))},a=()=>{t=!0},l=()=>{t=!1},c=()=>Ro.isFocused()&&(e.networkMode==="always"||dr.isOnline())&&e.canRun(),d=()=>ia(e.networkMode)&&e.canRun(),h=f=>{var v;r||(r=!0,(v=e.onSuccess)==null||v.call(e,f),o==null||o(),s.resolve(f))},p=f=>{var v;r||(r=!0,(v=e.onError)==null||v.call(e,f),o==null||o(),s.reject(f))},m=()=>new Promise(f=>{var v;o=_=>{(r||c())&&f(_)},(v=e.onPause)==null||v.call(e)}).then(()=>{var f;o=void 0,r||(f=e.onContinue)==null||f.call(e)}),w=()=>{if(r)return;let f;const v=n===0?e.initialPromise:void 0;try{f=v??e.fn()}catch(_){f=Promise.reject(_)}Promise.resolve(f).then(h).catch(_=>{var O;if(r)return;const C=e.retry??(Et?0:3),S=e.retryDelay??Gf,T=typeof S=="function"?S(n,_):S,A=C===!0||typeof C=="number"&&n<C||typeof C=="function"&&C(n,_);if(t||!A){p(_);return}n++,(O=e.onFail)==null||O.call(e,n,_),Uf(T).then(()=>c()?void 0:m()).then(()=>{t?p(_):w()})})};return{promise:s,cancel:i,continue:()=>(o==null||o(),s),cancelRetry:a,continueRetry:l,canStart:d,start:()=>(d()?w():m().then(w),s)}}var qf=e=>setTimeout(e,0);function Qf(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=qf;const s=a=>{t?e.push(a):o(()=>{n(a)})},i=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||i()}return l},batchCalls:a=>(...l)=>{s(()=>{a(...l)})},schedule:s,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var oe=Qf(),ca=(vu=class{constructor(){L(this,jt)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),To(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,vu),Yf=(yu=class extends ca{constructor(t){super();L(this,Re);L(this,ln);L(this,cn);L(this,Ce);L(this,Dt);L(this,le);L(this,Bn);L(this,Lt);R(this,Lt,!1),R(this,Bn,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,ln,Kf(this.options)),this.state=t.state??b(this,ln),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,Bn),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&b(this,Ce).remove(this)}setData(t,n){const r=Oo(this.state.data,t,this.options);return F(this,Re,Je).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){F(this,Re,Je).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=b(this,le))==null?void 0:r.promise;return(o=b(this,le))==null||o.cancel(t),n?n.then(ce).catch(ce):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(b(this,ln))}isActive(){return this.observers.some(t=>Se(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ur||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:!Ji(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=b(this,le))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=b(this,le))==null||n.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(n=>n!==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,n){var c,d,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.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(m=>m.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 r=new AbortController,o=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(R(this,Lt,!0),r.signal)})},s=()=>{const p=oa(this.options,n),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:n,options:this.options,queryKey:this.queryKey,client:b(this,Dt),state:this.state,fetchFn:s};return o(p),p})();(c=this.options.behavior)==null||c.onFetch(a,this),R(this,cn,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 m,w,f,v;Do(p)&&p.silent||F(this,Re,Je).call(this,{type:"error",error:p}),Do(p)||((w=(m=b(this,Ce).config).onError)==null||w.call(m,p,this),(v=(f=b(this,Ce).config).onSettled)==null||v.call(f,this.state.data,p,this)),this.scheduleGc()};return R(this,le,la({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:p=>{var m,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=(m=b(this,Ce).config).onSuccess)==null||w.call(m,p,this),(v=(f=b(this,Ce).config).onSettled)==null||v.call(f,p,this.state.error,this),this.scheduleGc()},onError:l,onFail:(p,m)=>{F(this,Re,Je).call(this,{type:"failed",failureCount:p,error:m})},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()}},ln=new WeakMap,cn=new WeakMap,Ce=new WeakMap,Dt=new WeakMap,le=new WeakMap,Bn=new WeakMap,Lt=new WeakMap,Re=new WeakSet,Je=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...ua(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return Do(o)&&o.revert&&b(this,cn)?{...b(this,cn),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),oe.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),b(this,Ce).notify({query:this,type:"updated",action:t})})},yu);function ua(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ia(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Kf(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Zf=(bu=class extends Gt{constructor(t={}){super();L(this,Be);this.config=t,R(this,Be,new Map)}build(t,n,r){const o=n.queryKey,s=n.queryHash??Ao(o,n);let i=this.get(s);return i||(i=new Yf({client:t,queryKey:o,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(i)),i}add(t){b(this,Be).has(t.queryHash)||(b(this,Be).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=b(this,Be).get(t.queryHash);n&&(t.destroy(),n===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 n={exact:!0,...t};return this.getAll().find(r=>ea(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>ea(t,r)):n}notify(t){oe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){oe.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){oe.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Be=new WeakMap,bu),Xf=(wu=class extends ca{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||da(),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(n=>n!==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 s,i,a,l,c,d,h,p,m,w,f,v,_,C,S,T,A,O,P,M;const n=()=>{F(this,ze,wt).call(this,{type:"continue"})};R(this,It,la({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(N,$)=>{F(this,ze,wt).call(this,{type:"failed",failureCount:N,error:$})},onPause:()=>{F(this,ze,wt).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>b(this,ue).canRun(this)}));const r=this.state.status==="pending",o=!b(this,It).canStart();try{if(r)n();else{F(this,ze,wt).call(this,{type:"pending",variables:t,isPaused:o}),await((i=(s=b(this,ue).config).onMutate)==null?void 0:i.call(s,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 N=await b(this,It).start();return await((d=(c=b(this,ue).config).onSuccess)==null?void 0:d.call(c,N,t,this.state.context,this)),await((p=(h=this.options).onSuccess)==null?void 0:p.call(h,N,t,this.state.context)),await((w=(m=b(this,ue).config).onSettled)==null?void 0:w.call(m,N,null,this.state.variables,this.state.context,this)),await((v=(f=this.options).onSettled)==null?void 0:v.call(f,N,null,t,this.state.context)),F(this,ze,wt).call(this,{type:"success",data:N}),N}catch(N){try{throw await((C=(_=b(this,ue).config).onError)==null?void 0:C.call(_,N,t,this.state.context,this)),await((T=(S=this.options).onError)==null?void 0:T.call(S,N,t,this.state.context)),await((O=(A=b(this,ue).config).onSettled)==null?void 0:O.call(A,void 0,N,this.state.variables,this.state.context,this)),await((M=(P=this.options).onSettled)==null?void 0:M.call(P,void 0,N,t,this.state.context)),N}finally{F(this,ze,wt).call(this,{type:"error",error:N})}}finally{b(this,ue).runNext(this)}}},Ue=new WeakMap,ue=new WeakMap,It=new WeakMap,ze=new WeakSet,wt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),oe.batch(()=>{b(this,Ue).forEach(r=>{r.onMutationUpdate(t)}),b(this,ue).notify({mutation:this,type:"updated",action:t})})},wu);function da(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Jf=(_u=class extends Gt{constructor(t={}){super();L(this,Ye);L(this,je);L(this,Un);this.config=t,R(this,Ye,new Set),R(this,je,new Map),R(this,Un,0)}build(t,n,r){const o=new Xf({mutationCache:this,mutationId:++oo(this,Un)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){b(this,Ye).add(t);const n=fr(t);if(typeof n=="string"){const r=b(this,je).get(n);r?r.push(t):b(this,je).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(b(this,Ye).delete(t)){const n=fr(t);if(typeof n=="string"){const r=b(this,je).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&b(this,je).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=fr(t);if(typeof n=="string"){const r=b(this,je).get(n),o=r==null?void 0:r.find(s=>s.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=fr(t);if(typeof n=="string"){const o=(r=b(this,je).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){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 n={exact:!0,...t};return this.getAll().find(r=>ta(n,r))}findAll(t={}){return this.getAll().filter(n=>ta(t,n))}notify(t){oe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return oe.batch(()=>Promise.all(t.map(n=>n.continue().catch(ce))))}},Ye=new WeakMap,je=new WeakMap,Un=new WeakMap,_u);function fr(e){var t;return(t=e.options.scope)==null?void 0:t.id}function fa(e){return{onFetch:(t,n)=>{var d,h,p,m,w;const r=t.options,o=(p=(h=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:h.fetchMore)==null?void 0:p.direction,s=((m=t.state.data)==null?void 0:m.pages)||[],i=((w=t.state.data)==null?void 0:w.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let f=!1;const v=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(t.signal.aborted?f=!0:t.signal.addEventListener("abort",()=>{f=!0}),t.signal)})},_=oa(t.options,t.fetchOptions),C=async(S,T,A)=>{if(f)return Promise.reject();if(T==null&&S.pages.length)return Promise.resolve(S);const P=(()=>{const Y={client:t.client,queryKey:t.queryKey,pageParam:T,direction:A?"backward":"forward",meta:t.options.meta};return v(Y),Y})(),M=await _(P),{maxPages:N}=t.options,$=A?Hf:zf;return{pages:$(S.pages,M,N),pageParams:$(S.pageParams,T,N)}};if(o&&s.length){const S=o==="backward",T=S?ep:pa,A={pages:s,pageParams:i},O=T(r,A);a=await C(A,O,S)}else{const S=e??s.length;do{const T=l===0?i[0]??r.initialPageParam:pa(r,a);if(l>0&&T==null)break;a=await C(a,T),l++}while(l<S)}return a};t.options.persister?t.fetchFn=()=>{var f,v;return(v=(f=t.options).persister)==null?void 0:v.call(f,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function pa(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function ep(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var tp=(xu=class{constructor(e={}){L(this,X);L(this,ft);L(this,pt);L(this,un);L(this,dn);L(this,ht);L(this,fn);L(this,pn);R(this,X,e.queryCache||new Zf),R(this,ft,e.mutationCache||new Jf),R(this,pt,e.defaultOptions||{}),R(this,un,new Map),R(this,dn,new Map),R(this,ht,0)}mount(){oo(this,ht)._++,b(this,ht)===1&&(R(this,fn,Ro.subscribe(async e=>{e&&(await this.resumePausedMutations(),b(this,X).onFocus())})),R(this,pn,dr.subscribe(async e=>{e&&(await this.resumePausedMutations(),b(this,X).onOnline())})))}unmount(){var e,t;oo(this,ht)._--,b(this,ht)===0&&((e=b(this,fn))==null||e.call(this),R(this,fn,void 0),(t=b(this,pn))==null||t.call(this),R(this,pn,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 n;const t=this.defaultQueryOptions({queryKey:e});return(n=b(this,X).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=b(this,X).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(ot(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return b(this,X).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=b(this,X).get(r.queryHash),s=o==null?void 0:o.state.data,i=Bf(t,s);if(i!==void 0)return b(this,X).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return oe.batch(()=>b(this,X).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=b(this,X).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=b(this,X);oe.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=b(this,X);return oe.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=oe.batch(()=>b(this,X).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(ce).catch(ce)}invalidateQueries(e,t={}){return oe.batch(()=>(b(this,X).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=oe.batch(()=>b(this,X).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(ce)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(ce)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=b(this,X).build(this,t);return n.isStaleByTime(ot(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ce).catch(ce)}fetchInfiniteQuery(e){return e.behavior=fa(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ce).catch(ce)}ensureInfiniteQueryData(e){return e.behavior=fa(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return dr.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,un).set(St(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...b(this,un).values()],n={};return t.forEach(r=>{Pn(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){b(this,dn).set(St(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...b(this,dn).values()],n={};return t.forEach(r=>{Pn(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}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=Ao(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===ur&&(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,un=new WeakMap,dn=new WeakMap,ht=new WeakMap,fn=new WeakMap,pn=new WeakMap,xu),np=(Cu=class extends Gt{constructor(t,n){super();L(this,V);L(this,ge);L(this,z);L(this,zn);L(this,de);L(this,Mt);L(this,hn);L(this,mt);L(this,gt);L(this,Hn);L(this,mn);L(this,gn);L(this,Nt);L(this,$t);L(this,vt);L(this,vn,new Set);this.options=n,R(this,ge,t),R(this,gt,null),R(this,mt,jo()),this.options.experimental_prefetchInRender||b(this,mt).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(b(this,z).addObserver(this),ha(b(this,z),this.options)?F(this,V,Gn).call(this):this.updateResult(),F(this,V,Ys).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Lo(b(this,z),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Lo(b(this,z),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,F(this,V,Ks).call(this),F(this,V,Zs).call(this),b(this,z).removeObserver(this)}setOptions(t){const n=this.options,r=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,Xs).call(this),b(this,z).setOptions(this.options),n._defaulted&&!cr(this.options,n)&&b(this,ge).getQueryCache().notify({type:"observerOptionsUpdated",query:b(this,z),observer:this});const o=this.hasListeners();o&&ma(b(this,z),r,this.options,n)&&F(this,V,Gn).call(this),this.updateResult(),o&&(b(this,z)!==r||Se(this.options.enabled,b(this,z))!==Se(n.enabled,b(this,z))||ot(this.options.staleTime,b(this,z))!==ot(n.staleTime,b(this,z)))&&F(this,V,Gs).call(this);const s=F(this,V,qs).call(this);o&&(b(this,z)!==r||Se(this.options.enabled,b(this,z))!==Se(n.enabled,b(this,z))||s!==b(this,vt))&&F(this,V,Qs).call(this,s)}getOptimisticResult(t){const n=b(this,ge).getQueryCache().build(b(this,ge),t),r=this.createResult(n,t);return op(this,r)&&(R(this,de,r),R(this,hn,this.options),R(this,Mt,b(this,z).state)),r}getCurrentResult(){return b(this,de)}trackResult(t,n){return new Proxy(t,{get:(r,o)=>(this.trackProp(o),n==null||n(o),Reflect.get(r,o))})}trackProp(t){b(this,vn).add(t)}getCurrentQuery(){return b(this,z)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=b(this,ge).defaultQueryOptions(t),r=b(this,ge).getQueryCache().build(b(this,ge),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return F(this,V,Gn).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),b(this,de)))}createResult(t,n){var N;const r=b(this,z),o=this.options,s=b(this,de),i=b(this,Mt),a=b(this,hn),c=t!==r?t.state:b(this,zn),{state:d}=t;let h={...d},p=!1,m;if(n._optimisticResults){const $=this.hasListeners(),Y=!$&&ha(t,n),K=$&&ma(t,r,n,o);(Y||K)&&(h={...h,...ua(d.data,t.options)}),n._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:w,errorUpdatedAt:f,status:v}=h;m=h.data;let _=!1;if(n.placeholderData!==void 0&&m===void 0&&v==="pending"){let $;s!=null&&s.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?($=s.data,_=!0):$=typeof n.placeholderData=="function"?n.placeholderData((N=b(this,gn))==null?void 0:N.state.data,b(this,gn)):n.placeholderData,$!==void 0&&(v="success",m=Oo(s==null?void 0:s.data,$,n),p=!0)}if(n.select&&m!==void 0&&!_)if(s&&m===(i==null?void 0:i.data)&&n.select===b(this,Hn))m=b(this,mn);else try{R(this,Hn,n.select),m=n.select(m),m=Oo(s==null?void 0:s.data,m,n),R(this,mn,m),R(this,gt,null)}catch($){R(this,gt,$)}b(this,gt)&&(w=b(this,gt),m=b(this,mn),f=Date.now(),v="error");const C=h.fetchStatus==="fetching",S=v==="pending",T=v==="error",A=S&&C,O=m!==void 0,M={status:v,fetchStatus:h.fetchStatus,isPending:S,isSuccess:v==="success",isError:T,isInitialLoading:A,isLoading:A,data:m,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>c.dataUpdateCount||h.errorUpdateCount>c.errorUpdateCount,isFetching:C,isRefetching:C&&!S,isLoadingError:T&&!O,isPaused:h.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:T&&O,isStale:Io(t,n),refetch:this.refetch,promise:b(this,mt)};if(this.options.experimental_prefetchInRender){const $=W=>{M.status==="error"?W.reject(M.error):M.data!==void 0&&W.resolve(M.data)},Y=()=>{const W=R(this,mt,M.promise=jo());$(W)},K=b(this,mt);switch(K.status){case"pending":t.queryHash===r.queryHash&&$(K);break;case"fulfilled":(M.status==="error"||M.data!==K.value)&&Y();break;case"rejected":(M.status!=="error"||M.error!==K.reason)&&Y();break}}return M}updateResult(){const t=b(this,de),n=this.createResult(b(this,z),this.options);if(R(this,Mt,b(this,z).state),R(this,hn,this.options),b(this,Mt).data!==void 0&&R(this,gn,b(this,z)),cr(n,t))return;R(this,de,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,s=typeof o=="function"?o():o;if(s==="all"||!s&&!b(this,vn).size)return!0;const i=new Set(s??b(this,vn));return this.options.throwOnError&&i.add("error"),Object.keys(b(this,de)).some(a=>{const l=a;return b(this,de)[l]!==t[l]&&i.has(l)})};F(this,V,$u).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&F(this,V,Ys).call(this)}},ge=new WeakMap,z=new WeakMap,zn=new WeakMap,de=new WeakMap,Mt=new WeakMap,hn=new WeakMap,mt=new WeakMap,gt=new WeakMap,Hn=new WeakMap,mn=new WeakMap,gn=new WeakMap,Nt=new WeakMap,$t=new WeakMap,vt=new WeakMap,vn=new WeakMap,V=new WeakSet,Gn=function(t){F(this,V,Xs).call(this);let n=b(this,z).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(ce)),n},Gs=function(){F(this,V,Ks).call(this);const t=ot(this.options.staleTime,b(this,z));if(Et||b(this,de).isStale||!To(t))return;const r=Ji(b(this,de).dataUpdatedAt,t)+1;R(this,Nt,setTimeout(()=>{b(this,de).isStale||this.updateResult()},r))},qs=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(b(this,z)):this.options.refetchInterval)??!1},Qs=function(t){F(this,V,Zs).call(this),R(this,vt,t),!(Et||Se(this.options.enabled,b(this,z))===!1||!To(b(this,vt))||b(this,vt)===0)&&R(this,$t,setInterval(()=>{(this.options.refetchIntervalInBackground||Ro.isFocused())&&F(this,V,Gn).call(this)},b(this,vt)))},Ys=function(){F(this,V,Gs).call(this),F(this,V,Qs).call(this,F(this,V,qs).call(this))},Ks=function(){b(this,Nt)&&(clearTimeout(b(this,Nt)),R(this,Nt,void 0))},Zs=function(){b(this,$t)&&(clearInterval(b(this,$t)),R(this,$t,void 0))},Xs=function(){const t=b(this,ge).getQueryCache().build(b(this,ge),this.options);if(t===b(this,z))return;const n=b(this,z);R(this,z,t),R(this,zn,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},$u=function(t){oe.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(b(this,de))}),b(this,ge).getQueryCache().notify({query:b(this,z),type:"observerResultsUpdated"})})},Cu);function rp(e,t){return Se(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function ha(e,t){return rp(e,t)||e.state.data!==void 0&&Lo(e,t,t.refetchOnMount)}function Lo(e,t,n){if(Se(t.enabled,e)!==!1&&ot(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Io(e,t)}return!1}function ma(e,t,n,r){return(e!==t||Se(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Io(e,n)}function Io(e,t){return Se(t.enabled,e)!==!1&&e.isStaleByTime(ot(t.staleTime,e))}function op(e,t){return!cr(e.getCurrentResult(),t)}var sp=(Eu=class extends Gt{constructor(n,r){super();L(this,Ze);L(this,yt);L(this,bt);L(this,ve);L(this,Ke);R(this,yt,n),this.setOptions(r),this.bindMethods(),F(this,Ze,so).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var o;const r=this.options;this.options=b(this,yt).defaultMutationOptions(n),cr(this.options,r)||b(this,yt).getMutationCache().notify({type:"observerOptionsUpdated",mutation:b(this,ve),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&St(r.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 n;this.hasListeners()||(n=b(this,ve))==null||n.removeObserver(this)}onMutationUpdate(n){F(this,Ze,so).call(this),F(this,Ze,Js).call(this,n)}getCurrentResult(){return b(this,bt)}reset(){var n;(n=b(this,ve))==null||n.removeObserver(this),R(this,ve,void 0),F(this,Ze,so).call(this),F(this,Ze,Js).call(this)}mutate(n,r){var o;return R(this,Ke,r),(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(n)}},yt=new WeakMap,bt=new WeakMap,ve=new WeakMap,Ke=new WeakMap,Ze=new WeakSet,so=function(){var r;const n=((r=b(this,ve))==null?void 0:r.state)??da();R(this,bt,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Js=function(n){oe.batch(()=>{var r,o,s,i,a,l,c,d;if(b(this,Ke)&&this.hasListeners()){const h=b(this,bt).variables,p=b(this,bt).context;(n==null?void 0:n.type)==="success"?((o=(r=b(this,Ke)).onSuccess)==null||o.call(r,n.data,h,p),(i=(s=b(this,Ke)).onSettled)==null||i.call(s,n.data,null,h,p)):(n==null?void 0:n.type)==="error"&&((l=(a=b(this,Ke)).onError)==null||l.call(a,n.error,h,p),(d=(c=b(this,Ke)).onSettled)==null||d.call(c,void 0,n.error,h,p))}this.listeners.forEach(h=>{h(b(this,bt))})})},Eu),ga=g.createContext(void 0),Mo=e=>{const t=g.useContext(ga);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},ip=({client:e,children:t})=>(g.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),u.jsx(ga.Provider,{value:e,children:t})),va=g.createContext(!1),ap=()=>g.useContext(va);va.Provider;function lp(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var cp=g.createContext(lp()),up=()=>g.useContext(cp),dp=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},fp=e=>{g.useEffect(()=>{e.clearReset()},[e])},pp=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||sa(n,[e.error,r])),hp=e=>{if(e.suspense){const t=r=>r==="static"?r:Math.max(r??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...r)=>t(n(...r)):t(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},mp=(e,t)=>e.isLoading&&e.isFetching&&!t,gp=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,ya=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function vp(e,t,n){var h,p,m,w,f;if(typeof e!="object"||Array.isArray(e))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=ap(),o=up(),s=Mo(),i=s.defaultQueryOptions(e);(p=(h=s.getDefaultOptions().queries)==null?void 0:h._experimental_beforeQuery)==null||p.call(h,i),i.queryFn||console.error(`[${i.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`),i._optimisticResults=r?"isRestoring":"optimistic",hp(i),dp(i,o),fp(o);const a=!s.getQueryCache().get(i.queryHash),[l]=g.useState(()=>new t(s,i)),c=l.getOptimisticResult(i),d=!r&&e.subscribed!==!1;if(g.useSyncExternalStore(g.useCallback(v=>{const _=d?l.subscribe(oe.batchCalls(v)):ce;return l.updateResult(),_},[l,d]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),g.useEffect(()=>{l.setOptions(i)},[i,l]),gp(i,c))throw ya(i,l,o);if(pp({result:c,errorResetBoundary:o,throwOnError:i.throwOnError,query:s.getQueryCache().get(i.queryHash),suspense:i.suspense}))throw c.error;if((w=(m=s.getDefaultOptions().queries)==null?void 0:m._experimental_afterQuery)==null||w.call(m,i,c),i.experimental_prefetchInRender&&!Et&&mp(c,r)){const v=a?ya(i,l,o):(f=s.getQueryCache().get(i.queryHash))==null?void 0:f.promise;v==null||v.catch(ce).finally(()=>{l.updateResult()})}return i.notifyOnChangeProps?c:l.trackResult(c)}function ba(e,t){return vp(e,np)}function pr(e,t){const n=Mo(),[r]=g.useState(()=>new sp(n,e));g.useEffect(()=>{r.setOptions(e)},[r,e]);const o=g.useSyncExternalStore(g.useCallback(i=>r.subscribe(oe.batchCalls(i)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=g.useCallback((i,a)=>{r.mutate(i,a).catch(ce)},[r]);if(o.error&&sa(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:s,mutateAsync:o.mutate}}const hr={STALE_TIME:1e3*60*5,GC_TIME:1e3*60*10,RETRY_COUNT:1,RETRY_DELAY:1e3},wa={refetchOnWindowFocus:!1,refetchOnReconnect:!1,refetchOnMount:!1,staleTime:hr.STALE_TIME,gcTime:hr.GC_TIME,retry:hr.RETRY_COUNT,retryDelay:hr.RETRY_DELAY,enable:!0},mr=e=>e instanceof Error?e.message:String(e),_a=(e,t,n)=>{const r=Mo(),{notify:o}=So(),{createFn:s,readFn:i,readByIdFn:a,updateFn:l,deleteFn:c,partialUpdateFn:d}=n,h=()=>{r.invalidateQueries({queryKey:[e]})},p=(T,A,O,P)=>o(P!=null&&P.overrideSuccessMessage?P==null?void 0:P.overrideSuccessMessage(T,A):O,"success"),m=(T,A,O,P)=>o(P!=null&&P.overrideErrorMessage?P==null?void 0:P.overrideErrorMessage(T,A):O,"error");return{useCreate:T=>pr({mutationFn:A=>s(A),onSuccess:A=>{h(),p(t,A,`${t} created successfully`,T)},onError:A=>{m(t,A,`Error creating ${t}: ${mr(A)}`,T)}}),useReadQuery:T=>ba({queryKey:[e],queryFn:i,...wa,...T}),useReadByIdQuery:(T,A)=>ba({queryKey:[e,T],queryFn:()=>a(T),...wa,enabled:!!T,...A}),useUpdate:T=>pr({mutationFn:({id:A,data:O})=>l(A,O),onSuccess:A=>{h(),p(t,A,`${t} updated successfully`,T)},onError:A=>{m(t,A,`Error updating ${t}: ${mr(A)}`,T)}}),usePartialUpdate:T=>d&&pr({mutationFn:({id:A,data:O})=>d(A,O),onSuccess:A=>{h(),p(t,A,`${t} updated successfully`,T)},onError:A=>{m(t,A,`Error updating ${t}: ${mr(A)}`,T)}}),useDelete:T=>pr({mutationFn:A=>c(A),onSuccess:()=>{h(),p(t,null,`${t} deleted successfully`,T)},onError:A=>{m(t,A,`Error deleting ${t}: ${mr(A)}`,T)}}),invalidateQueries:h}},yp=(e,t)=>_a(e,t,{createFn:n=>fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)}).then(r=>r.json()),deleteFn:n=>fetch(`${e}/${n}`,{method:"DELETE"}).then(r=>{if(!r.ok)throw new Error(`Error deleting: ${r.status}`)}),readByIdFn:n=>fetch(`${e}/${n}`).then(r=>r.json()),readFn:()=>fetch(e).then(n=>n.json()),updateFn:(n,r)=>fetch(`${e}/${n}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}).then(o=>o.json()),partialUpdateFn:(n,r)=>fetch(`${e}/${n}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}).then(o=>o.json())}),bp={SINGLE_TENANT:"single-tenant"},wp={COOKIE:"cookie"},No="tenant",xa="tenant",Ca="tenant",_p=bp.SINGLE_TENANT,xp=wp.COOKIE,Cp={mode:_p,clientSideMode:xp,tenantIDPProvisioningStrategy:"none"};class Ep{setTenant(t,n){const r=new URL(window.location.href);r.searchParams.set(xa,t.name),window.location.href=r.toString()}getCurrentTenantName(){const t=new URL(window.location.href);return new URLSearchParams(t.search).get(xa)}}class Sp{setTenant(t,n){sessionStorage.setItem(Ca,t.name),window.location.reload()}getCurrentTenantName(){return sessionStorage.getItem(Ca)}}/*! js-cookie v3.0.5 | MIT */function gr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var Tp={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 $o(e,t){function n(o,s,i){if(!(typeof document>"u")){i=gr({},t,i),typeof i.expires=="number"&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var l in i)i[l]&&(a+="; "+l,i[l]!==!0&&(a+="="+i[l].split(";")[0]));return document.cookie=o+"="+e.write(s,o)+a}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var s=document.cookie?document.cookie.split("; "):[],i={},a=0;a<s.length;a++){var l=s[a].split("="),c=l.slice(1).join("=");try{var d=decodeURIComponent(l[0]);if(i[d]=e.read(c,d),o===d)break}catch{}}return o?i[o]:i}}return Object.create({set:n,get:r,remove:function(o,s){n(o,"",gr({},s,{expires:-1}))},withAttributes:function(o){return $o(this.converter,gr({},this.attributes,o))},withConverter:function(o){return $o(gr({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Fo=$o(Tp,{path:"/"});class Ap{setTenant(t,n){t?Fo.set(No,t.name):Fo.remove(No),window.location.reload()}getCurrentTenantName(){return Fo.get(No)}}class Pp{extractSubdomain(t){if(t==="localhost"||/^\d+\.\d+\.\d+\.\d+$/.test(t))return"";const n=t.split(".");if(n.length<2||n.length===2||n[0]==="www"&&n.length===3)return"";const o=(n[0]==="www"?n.slice(1):n).slice(0,-2);return o.length>0?o.join("."):""}getBaseDomain(t){const n=t.split(".");return t==="localhost"||/^\d+\.\d+\.\d+\.\d+$/.test(t)||n.length<=2?t:n.slice(-2).join(".")}setTenant(t,n){var c;const r=(c=n.urlPatterns)==null?void 0:c.find(d=>d.patternType==="subdomain"&&d.tenantId===t.id&&d.isActive);if(!r)throw new Error(`No active subdomain pattern found for tenant '${t.name}'`);const o=new URL(window.location.href),s=r.patternValue,i=o.hostname,a=this.getBaseDomain(i),l=s?`${s}.${a}`:a;o.hostname=l,window.location.href=o.toString()}getCurrentTenantName(){const t=window.location.hostname;return this.extractSubdomain(t)||null}}const Ea={queryParams:new Ep,sessionStorage:new Sp,cookie:new Ap,subdomain:new Pp},kp=e=>{const t=Ea[e.clientSideMode];if(!t)throw new Error(`Client side tenant mode '${e.clientSideMode}' is not supported ${JSON.stringify({strategies:Ea},null,2)}`);return t},Op=(e,t,n)=>{const r=t.find(s=>s.name===n);if(!r)throw Error("No tenant permission");return kp(e).setTenant(r,e),r},Rp=()=>{const[e,t]=Qn(),{tenants:n=[],currentTenant:r,tenantConfig:o=Cp}=e,s=x.useCallback(i=>{const a=Op(o,n,i);t({...e,currentTenant:a})},[o,e]);return{tenants:n,currentTenant:r,tenantConfig:o,selectTenant:s}};function jp(e){if(!e.ok)throw console.error(e),new Error(e.statusText)}async function vr(e,t,n,r){const o=await e(`/user-states/${encodeURIComponent(t)}/${encodeURIComponent(n)}`,r);return jp(o),o}class yr{static async get(t,n,r){const s=await vr(t,n,r,{method:"GET",headers:{"Content-Type":"application/json"}});return s.status===204?null:await s.json()}static async create(t,n,r,o){const s={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({value:o})};return await(await vr(t,n,r,s)).json()}static async update(t,n,r,o){const s={method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({value:o})};return await(await vr(t,n,r,s)).json()}static async delete(t,n,r){return await vr(t,n,r,{method:"DELETE",headers:{"Content-Type":"application/json"}}),null}}const Dp=e=>{const t=ho("@bluealba/pae-nestjs-gateway-service"),n=Ai();if(!n)throw new Error("You must call the useUserState hook within a PAE application.");const[r,o]=x.useState(null),[s,i]=x.useState(!1),[a,l]=x.useState(!1),[c,d]=x.useState(null),h=(C,S)=>x.useCallback(async({newValue:T,shouldThrowError:A}={})=>{try{l(!0),d(null);const O=await C(t,n,e,T);return o(O),O?O.value:null}catch(O){if(d(O==null?void 0:O.message),console.error(`Failed to ${S} ${e}:`,O),A)throw O;return null}finally{l(!1)}},[t,n,e]),p=h(yr.get,"fetch"),m=h(yr.create,"create"),w=h(yr.update,"update"),f=h(yr.delete,"delete"),v=x.useCallback(async()=>{try{await p()}finally{i(!0)}},[p]);x.useEffect(()=>{v()},[v]);const _=x.useCallback(async(C,S=!1)=>r==null?await m({newValue:C,shouldThrowError:S}):await w({newValue:C,shouldThrowError:S}),[r,m,w]);return{value:r?r.value:null,hasFetched:s,loading:a,error:c,setValue:_,createValue:m,updateValue:w,deleteValue:f}},Sa="__PAE_EXTENSION_POINT_REACT_CONTENT_EMPTY__",Lp=({module:e,point:t,children:n})=>(Ri(e,t,n??Sa),null),Ta=({name:e,children:t,...n})=>{const r=Oi(e);if(r===Sa)return null;if(!r)return u.jsx(u.Fragment,{children:t??null});if(Ip(r)){const o=r;return u.jsx(o,{...n})}else return r},Ip=e=>typeof e=="function",Mp=(e,t)=>{const n=r=>(t=t||e.displayName||e.name||"?",u.jsx(Ta,{name:t,...r,children:u.jsx(e,{...r})}));return n.displayName=`extensionPoint(${t})`,n},Aa="single-spa:app-change";function Np(){const[e,t]=x.useState(Pa());return x.useEffect(()=>{const n=()=>{t(Pa())};return window.addEventListener(Aa,n),()=>{window.removeEventListener(Aa,n)}},[]),e}function Pa(){return re.getAppNames().reduce((t,n)=>(re.getAppStatus(n)?t[n]=re.getAppStatus(n):t[n]="NOT_LOADED",t),{})}function $p(e){const n=Np()[e]??"LOAD_ERROR";return{statusName:n,isLoading:n==="LOADING_SOURCE_CODE"||n==="BOOTSTRAPPING"||n==="MOUNTING",isMounted:n==="MOUNTED",isBroken:n==="SKIP_BECAUSE_BROKEN"||n==="LOAD_ERROR"}}const ka=({appName:e})=>u.jsx("div",{children:u.jsxs("p",{children:["Loading ",e,"..."]})});ka.displayName="BaseLoading";const Oa=({appName:e})=>u.jsxs("div",{children:[u.jsx("p",{children:"Something went wrong..."}),u.jsxs("p",{children:["Failed to load ",e]})]});Oa.displayName="BaseError";const Fp={display:"flex",flexDirection:"column",flex:1},Ra=x.forwardRef((e,t)=>u.jsx("div",{ref:t,style:Fp,...e}));Ra.displayName="BaseContainer";const Bp="pae-app:",ja=x.forwardRef(({appName:e,LoadingComponent:t=ka,ErrorComponent:n=Oa,ContainerComponent:r=Ra,...o},s)=>{const i=$p(e);return u.jsxs(r,{ref:s,...o,id:`${Bp}${e}`,children:[i.isLoading&&u.jsx(t,{appName:e}),i.isBroken&&u.jsx(n,{appName:e})]})});ja.displayName="ModulePlaceHolder";const Bo=({operations:e,children:t,forbiddenContent:n})=>{var o;const{hasAccess:r}=Yn();if(!r(...e)){if(!n)return null;if(typeof n=="function")if((o=n==null?void 0:n.prototype)!=null&&o.isReactComponent){const s=n;return u.jsx(s,{operations:e})}else return n({operations:e});return x.isValidElement(n)?n:null}return t};Bo.displayName="Authorized";const Up=({eventName:e,listener:t})=>(ji(e,t),null),zp=()=>u.jsx("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:u.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",d:"M8.737 8.737a21.49 21.49 0 0 1 3.308-2.724m0 0c3.063-2.026 5.99-2.641 7.331-1.3 1.827 1.828.026 6.591-4.023 10.64-4.049 4.049-8.812 5.85-10.64 4.023-1.33-1.33-.736-4.218 1.249-7.253m6.083-6.11c-3.063-2.026-5.99-2.641-7.331-1.3-1.827 1.828-.026 6.591 4.023 10.64m3.308-9.34a21.497 21.497 0 0 1 3.308 2.724m2.775 3.386c1.985 3.035 2.579 5.923 1.248 7.253-1.336 1.337-4.245.732-7.295-1.275M14 12a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"})}),Da=({applicationName:e})=>{const t=wi(e);if(t)if(typeof t=="function"){const n=t;return u.jsx(n,{})}else return t;return u.jsx(zp,{})};Da.displayName="ApplicationIcon";const Hp=(e,t)=>{const n=r=>u.jsx(Bo,{operations:t,children:u.jsx(e,{...r})});return n.displayName="Authorized",n};function La(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=La(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function D(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=La(e))&&(r&&(r+=" "),r+=t);return r}const br={spinner:"spinner__fakUN","spinner-rotation":"spinner-rotation__wUmPV",spinnerRotation:"spinner-rotation__wUmPV",button:"button__8FA9H","button--contained-primary":"button--contained-primary__stkTx",buttonContainedPrimary:"button--contained-primary__stkTx","button--outlined-primary":"button--outlined-primary__KZ1ww",buttonOutlinedPrimary:"button--outlined-primary__KZ1ww","button--text-primary":"button--text-primary__GLTfm",buttonTextPrimary:"button--text-primary__GLTfm","button--contained-danger":"button--contained-danger__L9ehT",buttonContainedDanger:"button--contained-danger__L9ehT","button--outlined-danger":"button--outlined-danger__eoYLd",buttonOutlinedDanger:"button--outlined-danger__eoYLd","button--text-danger":"button--text-danger__Sw-ha",buttonTextDanger:"button--text-danger__Sw-ha",icon:"icon__--umH"},wr=x.forwardRef(({variant:e="contained",colorScheme:t="primary",loading:n=!1,IconComponent:r,className:o,children:s,...i},a)=>{const l=D(br.button,br[`button--${e}-${t}`],o);return u.jsxs("button",{ref:a,className:l,...i,children:[n?u.jsx("div",{className:br.spinner}):r&&u.jsx(r,{className:br.icon}),s]})});wr.displayName="Button";const _r={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"},Ia={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 Ma={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function Wp(e){var d,h;var t,n=[],r=1,o;if(typeof e=="number")return{space:"rgb",values:[e>>>16,(e&65280)>>>8,e&255],alpha:1};if(typeof e=="number")return{space:"rgb",values:[e>>>16,(e&65280)>>>8,e&255],alpha:1};if(e=String(e).toLowerCase(),Ia[e])n=Ia[e].slice(),o="rgb";else if(e==="transparent")r=0,o="rgb",n=[0,0,0];else if(e[0]==="#"){var s=e.slice(1),i=s.length,a=i<=4;r=1,a?(n=[parseInt(s[0]+s[0],16),parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16)],i===4&&(r=parseInt(s[3]+s[3],16)/255)):(n=[parseInt(s[0]+s[1],16),parseInt(s[2]+s[3],16),parseInt(s[4]+s[5],16)],i===8&&(r=parseInt(s[6]+s[7],16)/255)),n[0]||(n[0]=0),n[1]||(n[1]=0),n[2]||(n[2]=0),o="rgb"}else if(t=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(e)){var l=t[1];o=l.replace(/a$/,"");var c=o==="cmyk"?4:o==="gray"?1:3;n=t[2].trim().split(/\s*[,\/]\s*|\s+/),o==="color"&&(o=n.shift()),n=n.map(function(p,m){if(p[p.length-1]==="%")return p=parseFloat(p)/100,m===3?p:o==="rgb"?p*255:o[0]==="h"||o[0]==="l"&&!m?p*100:o==="lab"?p*125:o==="lch"?m<2?p*150:p*360:o[0]==="o"&&!m?p:o==="oklab"?p*.4:o==="oklch"?m<2?p*.4:p*360:p;if(o[m]==="h"||m===2&&o[o.length-1]==="h"){if(Ma[p]!==void 0)return Ma[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)}),r=n.length>c?n.pop():1}else/[0-9](?:\s|\/|,)/.test(e)&&(n=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:n,alpha:r}}const Vp=(e,t)=>{const{space:n,values:r}=Wp(e);return n[0]==="h"?`${n}a(${r[0]}, ${r[1]}%, ${r[2]}%, ${t})`:`${n}a(${r}, ${t})`},Uo=x.forwardRef(({children:e,color:t,className:n,customColor:r,size:o="small",style:s,...i},a)=>{const l=r?{color:r,background:Vp(r,.1)}:{},c=D(_r.Badge,_r[`Badge--${o}`],{[_r[`Badge--${t}`]]:!!t},n);return u.jsx("span",{ref:a,className:c,style:{...s,...l},...i,children:e})});Uo.displayName="Badge";const zo=x.forwardRef(({children:e,className:t,...n},r)=>{const o=D(_r.Badges,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});zo.displayName="Badges";const Na=({size:e=24,color:t="currentColor",strokeWidth:n=2,className:r,style:o,...s})=>u.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:o,...s,children:[u.jsx("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"}),u.jsx("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"})]}),$a=({size:e=24,color:t="currentColor",strokeWidth:n=2,className:r,style:o,...s})=>u.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:o,...s,children:[u.jsx("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"}),u.jsx("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"}),u.jsx("path",{d:"m9 12 2 2 4-4"})]}),Gp={CopyToClipboardButton:"CopyToClipboardButton__2Nd2m"},qp=({content:e})=>{const[t,n]=Qp(),{notify:r}=So(),o=t?$a:Na,s=x.useCallback(async()=>{await n(e)&&r("Copied to the Clipboard !","success")},[e,r]);return u.jsx(o,{className:Gp.CopyToClipboardButton,size:18,onClick:s})},Qp=()=>{const[e,t]=x.useState(!1);return[e,async r=>{try{return await navigator.clipboard.writeText(r),t(!0),setTimeout(()=>t(!1),2e3),!0}catch(o){return console.error("Failed to copy text: ",o),!1}}]},Fa={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"},Ba=x.forwardRef(({children:e,className:t,orientation:n="vertical",...r},o)=>{const s=D(Fa.FieldGroup,Fa[`FieldGroup--${n}`],t);return u.jsx("div",{ref:o,className:s,...r,children:e})});Ba.displayName="FieldGroup";const Ua={Input:"Input__uS0sb",Error:"Error__-DQpw"},xr=x.forwardRef(({className:e,error:t,...n},r)=>{const o=D(Ua.Input,t&&Ua.Error,e);return u.jsx("input",{ref:r,className:o,...n})});xr.displayName="Input";const Yp={Error:"Error__N4OP5"},za=x.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Yp.Error,t);return u.jsx("span",{ref:r,className:o,...n,children:e})});za.displayName="InputError";const Ha={Label:"Label__VYUvW",Error:"Error__Eu6DI"},Wa=x.forwardRef(({children:e,className:t,error:n,...r},o)=>{const s=D(Ha.Label,n&&Ha.Error,t);return u.jsx("label",{ref:o,className:s,...r,children:e})});Wa.displayName="Label";const Ho={Select:"Select__giqpe",Chevron:"Chevron__YvhBd"},Va=x.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Ho.Option,t);return u.jsx("option",{ref:r,className:o,...n,children:e})});Va.displayName="Option";const Wo=x.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Ho.Select,t);return u.jsxs("div",{className:o,children:[u.jsx("select",{ref:r,...n,children:e}),u.jsx("div",{className:Ho.Chevron,children:u.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M4 6L8 10L12 6",stroke:"#818181",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})})]})});Wo.displayName="Select",Wo.Option=Va;const Kp={TextArea:"TextArea__pa-A0"},Ga=x.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Kp.TextArea,t);return u.jsx("textarea",{ref:r,className:o,...n,children:e})});Ga.displayName="TextArea";const kn={SearchInput:"SearchInput__4OFyE",SearchIcon:"SearchIcon__YgnQy",ClearIcon:"ClearIcon__ukRVr",SearchInput__ClearIcon:"SearchInput__ClearIcon__uzVoc",SearchInput__SearchIcon:"SearchInput__SearchIcon__zoDG4"},Vo=x.forwardRef(({className:e,placeholder:t="Type to search...",showClearButton:n=!1,showSearchIcon:r=!0,onClear:o,...s},i)=>{const a=D(kn.SearchInput,n&&kn.SearchInput__ClearIcon,r&&kn.SearchInput__SearchIcon,e),l=D(kn.SearchIcon),c=D(kn.ClearIcon);return u.jsxs("div",{className:a,children:[u.jsx(xr,{ref:i,type:"text",placeholder:t,...s}),r&&u.jsx("svg",{className:l,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M13 13L10.6667 10.6667M12.3333 6.66667C12.3333 9.79628 9.79628 12.3333 6.66667 12.3333C3.53705 12.3333 1 9.79628 1 6.66667C1 3.53705 3.53705 1 6.66667 1C9.79628 1 12.3333 3.53705 12.3333 6.66667Z",stroke:"#A4A4A4",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})}),n&&u.jsx("svg",{className:c,width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:o,children:u.jsx("path",{d:"M7.33334 0.666748L0.666672 7.33341M0.666672 0.666748L7.33334 7.33341",stroke:"#818181",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})]})});Vo.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"},Cr=x.forwardRef(({children:e,className:t,open:n,align:r="right",...o},s)=>{const i=D(At.DropdownList,{[At["DropdownList--open"]]:n,[At["DropdownList--closed"]]:!n,[At["DropdownList--left"]]:r==="left"},t);return u.jsx("div",{ref:s,className:i,...o,children:e})});Cr.displayName="DropdownList";const On=x.forwardRef(({children:e,className:t,canBeSelected:n=!1,...r},o)=>{const s=D(Tt.AutocompleteItem,{[Tt["AutocompleteItem--canBeSelected"]]:n},t);return u.jsx("div",{ref:o,className:s,...r,children:e})});On.displayName="AutocompleteItem";const Zp=300,Xp={query:"",suggestions:[],loading:!1,error:null},Jp=({suggestionFetcher:e,canAdd:t})=>{const[n,r]=x.useState(Xp);return x.useEffect(()=>{r(a=>({...a,loading:!0}));const s=async()=>{try{const a=await e(n.query);t&&!a.some(l=>l.value.toLowerCase()===n.query.toLowerCase())&&a.push({label:`Add "${n.query}"`,value:n.query,isNew:!0}),r(l=>({...l,suggestions:a,loading:!1}))}catch(a){r(l=>({...l,suggestions:[],error:a,loading:!1}))}},i=setTimeout(()=>{s()},Zp);return()=>{clearTimeout(i)}},[n.query]),{...n,setQuery:s=>{r(i=>({...i,query:s}))}}},qa=x.forwardRef(({text:e,query:t,className:n,...r},o)=>{const s=D(Tt.AutocompleteHighlighter,n),i=(a,l)=>{const c=a.toLowerCase().indexOf(l.toLowerCase());if(c===-1||l.length===0)return a;const d=a.slice(0,c),h=a.slice(c,c+l.length),p=a.slice(c+l.length);return u.jsxs(u.Fragment,{children:[d,u.jsx("span",{className:Tt.AutocompleteHighlighter__match,children:h}),i(p,l)]})};return u.jsx("div",{ref:o,className:s,...r,children:i(e,t)})});qa.displayName="AutocompleteHighlighter";const eh=5,Qa=x.forwardRef(({children:e,className:t,canAdd:n,maxSuggestionsShown:r=eh,searchInputProps:o,keepSelectedOption:s,suggestionFetcher:i,onAccept:a,...l},c)=>{const{query:d,setQuery:h,suggestions:p,loading:m}=Jp({suggestionFetcher:i,canAdd:n}),[w,f]=x.useState(null),v=d.length>0,_=P=>{h(P.target.value)},C=P=>{a==null||a(P),s?(f(P),h(P.value)):h("")},S=()=>{a==null||a(null),f(null),h("")},T=D(Tt.SearchAutocomplete,t),A=p.slice(0,r),O=p.slice(r);return u.jsxs("div",{ref:c,className:T,...l,children:[u.jsx(Vo,{...o,value:d,onChange:_,showClearButton:!!w,onClear:S}),e,u.jsxs(Cr,{className:Tt.DropdownList,open:v&&!w,role:"listbox","aria-label":"Suggestions",children:[m?u.jsx(On,{children:"Loading..."}):A.map(P=>u.jsxs(On,{canBeSelected:!0,onClick:C.bind(null,P),children:[u.jsx(qa,{text:P.label,query:d}),P.description&&u.jsx("span",{className:Tt.AutocompleteItemDescription,children:P.description})]},P.value)),!m&&O.length>0&&u.jsxs(On,{children:[O.length," more results"]}),v&&p.length===0&&!m&&u.jsx(On,{children:"No results found"})]})]})});Qa.displayName="SearchAutocomplete";const st=e=>{let t=null,n=null;return x.Children.forEach(e.children,r=>{const o=r.props.condition;o===void 0?n=r:!t&&o===!0&&(t=r)}),u.jsx(u.Fragment,{children:t||n})};st.displayName="Show",st.When=({condition:e,children:t})=>u.jsx(u.Fragment,{children:e&&t}),st.Else=({render:e,children:t})=>u.jsx(u.Fragment,{children:e||t});function Ya(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ka(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Ya(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():Ya(e[o],null)}}}}function Te(...e){return g.useCallback(Ka(...e),e)}function Go(e){const t=nh(e),n=g.forwardRef((r,o)=>{const{children:s,...i}=r,a=g.Children.toArray(s),l=a.find(oh);if(l){const c=l.props.children,d=a.map(h=>h===l?g.Children.count(c)>1?g.Children.only(null):g.isValidElement(c)?c.props.children:null:h);return u.jsx(t,{...i,ref:o,children:g.isValidElement(c)?g.cloneElement(c,void 0,d):null})}return u.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var th=Go("Slot");function nh(e){const t=g.forwardRef((n,r)=>{const{children:o,...s}=n;if(g.isValidElement(o)){const i=ih(o),a=sh(s,o.props);return o.type!==g.Fragment&&(a.ref=r?Ka(r,i):i),g.cloneElement(o,a)}return g.Children.count(o)>1?g.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Za=Symbol("radix.slottable");function rh(e){const t=({children:n})=>u.jsx(u.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Za,t}function oh(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Za}function sh(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function ih(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const Xa={SkeletonListContainer:"SkeletonListContainer__MKJhE",Skeleton:"Skeleton__Ovpiw"},Er=x.forwardRef((e,t)=>{const{children:n,className:r,loading:o,height:s=48,width:i,borderRadius:a,style:l,...c}=e;if(!o&&n)return n;const d=x.isValidElement(n)?th:"span";return u.jsx(d,{ref:t,"aria-hidden":!0,className:D(Xa.Skeleton,r),style:{...l,width:i,minWidth:i,height:s,borderRadius:a},"data-inline-skeleton":x.isValidElement(n)?void 0:!0,tabIndex:-1,...c,children:n})});Er.displayName="Skeleton";const Ja=e=>{const{numberOfItems:t,itemsGap:n=2,itemProps:r}=e,o=Array.from({length:t},(s,i)=>i+1);return u.jsx("div",{className:D(Xa.SkeletonListContainer),style:{gap:n},children:o.map(s=>u.jsx(Er,{loading:!0,...r},s))})};Ja.displayName="SkeletonList";function pe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function ah(e,t){const n=g.createContext(t),r=s=>{const{children:i,...a}=s,l=g.useMemo(()=>a,Object.values(a));return u.jsx(n.Provider,{value:l,children:i})};r.displayName=e+"Provider";function o(s){const i=g.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function qo(e,t=[]){let n=[];function r(s,i){const a=g.createContext(i),l=n.length;n=[...n,i];const c=h=>{var _;const{scope:p,children:m,...w}=h,f=((_=p==null?void 0:p[e])==null?void 0:_[l])||a,v=g.useMemo(()=>w,Object.values(w));return u.jsx(f.Provider,{value:v,children:m})};c.displayName=s+"Provider";function d(h,p){var f;const m=((f=p==null?void 0:p[e])==null?void 0:f[l])||a,w=g.useContext(m);if(w)return w;if(i!==void 0)return i;throw new Error(`\`${h}\` must be used within \`${s}\``)}return[c,d]}const o=()=>{const s=n.map(i=>g.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return g.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,lh(o,...t)]}function lh(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:l,scopeName:c})=>{const h=l(s)[`__scope${c}`];return{...a,...h}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var ch=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],he=ch.reduce((e,t)=>{const n=Go(`Primitive.${t}`),r=g.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function uh(e,t){e&&ti.flushSync(()=>e.dispatchEvent(t))}function qt(e){const t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function dh(e,t=globalThis==null?void 0:globalThis.document){const n=qt(e);g.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var fh="DismissableLayer",Qo="dismissableLayer.update",ph="dismissableLayer.pointerDownOutside",hh="dismissableLayer.focusOutside",el,tl=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Yo=g.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...l}=e,c=g.useContext(tl),[d,h]=g.useState(null),p=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=g.useState({}),w=Te(t,P=>h(P)),f=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),_=f.indexOf(v),C=d?f.indexOf(d):-1,S=c.layersWithOutsidePointerEventsDisabled.size>0,T=C>=_,A=vh(P=>{const M=P.target,N=[...c.branches].some($=>$.contains(M));!T||N||(o==null||o(P),i==null||i(P),P.defaultPrevented||a==null||a())},p),O=yh(P=>{const M=P.target;[...c.branches].some($=>$.contains(M))||(s==null||s(P),i==null||i(P),P.defaultPrevented||a==null||a())},p);return dh(P=>{C===c.layers.size-1&&(r==null||r(P),!P.defaultPrevented&&a&&(P.preventDefault(),a()))},p),g.useEffect(()=>{if(d)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(el=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),nl(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=el)}},[d,p,n,c]),g.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),nl())},[d,c]),g.useEffect(()=>{const P=()=>m({});return document.addEventListener(Qo,P),()=>document.removeEventListener(Qo,P)},[]),u.jsx(he.div,{...l,ref:w,style:{pointerEvents:S?T?"auto":"none":void 0,...e.style},onFocusCapture:pe(e.onFocusCapture,O.onFocusCapture),onBlurCapture:pe(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:pe(e.onPointerDownCapture,A.onPointerDownCapture)})});Yo.displayName=fh;var mh="DismissableLayerBranch",gh=g.forwardRef((e,t)=>{const n=g.useContext(tl),r=g.useRef(null),o=Te(t,r);return g.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),u.jsx(he.div,{...e,ref:o})});gh.displayName=mh;function vh(e,t=globalThis==null?void 0:globalThis.document){const n=qt(e),r=g.useRef(!1),o=g.useRef(()=>{});return g.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let l=function(){rl(ph,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function yh(e,t=globalThis==null?void 0:globalThis.document){const n=qt(e),r=g.useRef(!1);return g.useEffect(()=>{const o=s=>{s.target&&!r.current&&rl(hh,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function nl(){const e=new CustomEvent(Qo);document.dispatchEvent(e)}function rl(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?uh(o,s):o.dispatchEvent(s)}var it=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},bh=g[" useId ".trim().toString()]||(()=>{}),wh=0;function Sr(e){const[t,n]=g.useState(bh());return it(()=>{n(r=>r??String(wh++))},[e]),t?`radix-${t}`:""}const _h=["top","right","bottom","left"],at=Math.min,we=Math.max,Tr=Math.round,Ar=Math.floor,Le=e=>({x:e,y:e}),xh={left:"right",right:"left",bottom:"top",top:"bottom"},Ch={start:"end",end:"start"};function Ko(e,t,n){return we(e,at(t,n))}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 Zo(e){return e==="x"?"y":"x"}function Xo(e){return e==="y"?"height":"width"}const Eh=new Set(["top","bottom"]);function Ie(e){return Eh.has(qe(e))?"y":"x"}function Jo(e){return Zo(Ie(e))}function Sh(e,t,n){n===void 0&&(n=!1);const r=Qt(e),o=Jo(e),s=Xo(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Pr(i)),[i,Pr(i)]}function Th(e){const t=Pr(e);return[es(e),t,es(t)]}function es(e){return e.replace(/start|end/g,t=>Ch[t])}const ol=["left","right"],sl=["right","left"],Ah=["top","bottom"],Ph=["bottom","top"];function kh(e,t,n){switch(e){case"top":case"bottom":return n?t?sl:ol:t?ol:sl;case"left":case"right":return t?Ah:Ph;default:return[]}}function Oh(e,t,n,r){const o=Qt(e);let s=kh(qe(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(es)))),s}function Pr(e){return e.replace(/left|right|bottom|top/g,t=>xh[t])}function Rh(e){return{top:0,right:0,bottom:0,left:0,...e}}function il(e){return typeof e!="number"?Rh(e):{top:e,right:e,bottom:e,left:e}}function kr(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function al(e,t,n){let{reference:r,floating:o}=e;const s=Ie(t),i=Jo(t),a=Xo(i),l=qe(t),c=s==="y",d=r.x+r.width/2-o.width/2,h=r.y+r.height/2-o.height/2,p=r[a]/2-o[a]/2;let m;switch(l){case"top":m={x:d,y:r.y-o.height};break;case"bottom":m={x:d,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:h};break;case"left":m={x:r.x-o.width,y:h};break;default:m={x:r.x,y:r.y}}switch(Qt(t)){case"start":m[i]-=p*(n&&c?-1:1);break;case"end":m[i]+=p*(n&&c?-1:1);break}return m}const jh=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:h}=al(c,r,l),p=r,m={},w=0;for(let f=0;f<a.length;f++){const{name:v,fn:_}=a[f],{x:C,y:S,data:T,reset:A}=await _({x:d,y:h,initialPlacement:r,placement:p,strategy:o,middlewareData:m,rects:c,platform:i,elements:{reference:e,floating:t}});d=C??d,h=S??h,m={...m,[v]:{...m[v],...T}},A&&w<=50&&(w++,typeof A=="object"&&(A.placement&&(p=A.placement),A.rects&&(c=A.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):A.rects),{x:d,y:h}=al(c,p,l)),f=-1)}return{x:d,y:h,placement:p,strategy:o,middlewareData:m}};async function Rn(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:p=!1,padding:m=0}=Ge(t,e),w=il(m),v=a[p?h==="floating"?"reference":"floating":h],_=kr(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(v)))==null||n?v:v.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),C=h==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),T=await(s.isElement==null?void 0:s.isElement(S))?await(s.getScale==null?void 0:s.getScale(S))||{x:1,y:1}:{x:1,y:1},A=kr(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:C,offsetParent:S,strategy:l}):C);return{top:(_.top-A.top+w.top)/T.y,bottom:(A.bottom-_.bottom+w.bottom)/T.y,left:(_.left-A.left+w.left)/T.x,right:(A.right-_.right+w.right)/T.x}}const Dh=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:c,padding:d=0}=Ge(e,t)||{};if(c==null)return{};const h=il(d),p={x:n,y:r},m=Jo(o),w=Xo(m),f=await i.getDimensions(c),v=m==="y",_=v?"top":"left",C=v?"bottom":"right",S=v?"clientHeight":"clientWidth",T=s.reference[w]+s.reference[m]-p[m]-s.floating[w],A=p[m]-s.reference[m],O=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let P=O?O[S]:0;(!P||!await(i.isElement==null?void 0:i.isElement(O)))&&(P=a.floating[S]||s.floating[w]);const M=T/2-A/2,N=P/2-f[w]/2-1,$=at(h[_],N),Y=at(h[C],N),K=$,W=P-f[w]-Y,q=P/2-f[w]/2+M,se=Ko(K,q,W),J=!l.arrow&&Qt(o)!=null&&q!==se&&s.reference[w]/2-(q<K?$:Y)-f[w]/2<0,ee=J?q<K?q-K:q-W:0;return{[m]:p[m]+ee,data:{[m]:se,centerOffset:q-se-ee,...J&&{alignmentOffset:ee}},reset:J}}}),Lh=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:f=!0,...v}=Ge(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const _=qe(o),C=Ie(a),S=qe(a)===a,T=await(l.isRTL==null?void 0:l.isRTL(c.floating)),A=p||(S||!f?[Pr(a)]:Th(a)),O=w!=="none";!p&&O&&A.push(...Oh(a,f,w,T));const P=[a,...A],M=await Rn(t,v),N=[];let $=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&N.push(M[_]),h){const q=Sh(o,i,T);N.push(M[q[0]],M[q[1]])}if($=[...$,{placement:o,overflows:N}],!N.every(q=>q<=0)){var Y,K;const q=(((Y=s.flip)==null?void 0:Y.index)||0)+1,se=P[q];if(se&&(!(h==="alignment"?C!==Ie(se):!1)||$.every(B=>Ie(B.placement)===C?B.overflows[0]>0:!0)))return{data:{index:q,overflows:$},reset:{placement:se}};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(m){case"bestFit":{var W;const ee=(W=$.filter(B=>{if(O){const ie=Ie(B.placement);return ie===C||ie==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(ie=>ie>0).reduce((ie,xe)=>ie+xe,0)]).sort((B,ie)=>B[1]-ie[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 ll(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function cl(e){return _h.some(t=>e[t]>=0)}const Ih=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Ge(e,t);switch(r){case"referenceHidden":{const s=await Rn(t,{...o,elementContext:"reference"}),i=ll(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:cl(i)}}}case"escaped":{const s=await Rn(t,{...o,altBoundary:!0}),i=ll(s,n.floating);return{data:{escapedOffsets:i,escaped:cl(i)}}}default:return{}}}}},ul=new Set(["left","top"]);async function Mh(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=qe(n),a=Qt(n),l=Ie(n)==="y",c=ul.has(i)?-1:1,d=s&&l?-1:1,h=Ge(t,e);let{mainAxis:p,crossAxis:m,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"&&(m=a==="end"?w*-1:w),l?{x:m*d,y:p*c}:{x:p*c,y:m*d}}const Nh=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,l=await Mh(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:i}}}}},$h=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:v=>{let{x:_,y:C}=v;return{x:_,y:C}}},...l}=Ge(e,t),c={x:n,y:r},d=await Rn(t,l),h=Ie(qe(o)),p=Zo(h);let m=c[p],w=c[h];if(s){const v=p==="y"?"top":"left",_=p==="y"?"bottom":"right",C=m+d[v],S=m-d[_];m=Ko(C,m,S)}if(i){const v=h==="y"?"top":"left",_=h==="y"?"bottom":"right",C=w+d[v],S=w-d[_];w=Ko(C,w,S)}const f=a.fn({...t,[p]:m,[h]:w});return{...f,data:{x:f.x-n,y:f.y-r,enabled:{[p]:s,[h]:i}}}}}},Fh=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=Ge(e,t),d={x:n,y:r},h=Ie(o),p=Zo(h);let m=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 S=p==="y"?"height":"width",T=s.reference[p]-s.floating[S]+v.mainAxis,A=s.reference[p]+s.reference[S]-v.mainAxis;m<T?m=T:m>A&&(m=A)}if(c){var _,C;const S=p==="y"?"width":"height",T=ul.has(qe(o)),A=s.reference[h]-s.floating[S]+(T&&((_=i.offset)==null?void 0:_[h])||0)+(T?0:v.crossAxis),O=s.reference[h]+s.reference[S]+(T?0:((C=i.offset)==null?void 0:C[h])||0)-(T?v.crossAxis:0);w<A?w=A:w>O&&(w=O)}return{[p]:m,[h]:w}}}},Bh=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:l=()=>{},...c}=Ge(e,t),d=await Rn(t,c),h=qe(o),p=Qt(o),m=Ie(o)==="y",{width:w,height:f}=s.floating;let v,_;h==="top"||h==="bottom"?(v=h,_=p===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(_=h,v=p==="end"?"top":"bottom");const C=f-d.top-d.bottom,S=w-d.left-d.right,T=at(f-d[v],C),A=at(w-d[_],S),O=!t.middlewareData.shift;let P=T,M=A;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(M=S),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(P=C),O&&!p){const $=we(d.left,0),Y=we(d.right,0),K=we(d.top,0),W=we(d.bottom,0);m?M=w-2*($!==0||Y!==0?$+Y:we(d.left,d.right)):P=f-2*(K!==0||W!==0?K+W:we(d.top,d.bottom))}await l({...t,availableWidth:M,availableHeight:P});const N=await i.getDimensions(a.floating);return w!==N.width||f!==N.height?{reset:{rects:!0}}:{}}}};function Or(){return typeof window<"u"}function Yt(e){return dl(e)?(e.nodeName||"").toLowerCase():"#document"}function _e(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Me(e){var t;return(t=(dl(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function dl(e){return Or()?e instanceof Node||e instanceof _e(e).Node:!1}function Ae(e){return Or()?e instanceof Element||e instanceof _e(e).Element:!1}function Ne(e){return Or()?e instanceof HTMLElement||e instanceof _e(e).HTMLElement:!1}function fl(e){return!Or()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof _e(e).ShadowRoot}const Uh=new Set(["inline","contents"]);function jn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Pe(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Uh.has(o)}const zh=new Set(["table","td","th"]);function Hh(e){return zh.has(Yt(e))}const Wh=[":popover-open",":modal"];function Rr(e){return Wh.some(t=>{try{return e.matches(t)}catch{return!1}})}const Vh=["transform","translate","scale","rotate","perspective"],Gh=["transform","translate","scale","rotate","perspective","filter"],qh=["paint","layout","strict","content"];function ts(e){const t=ns(),n=Ae(e)?Pe(e):e;return Vh.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Gh.some(r=>(n.willChange||"").includes(r))||qh.some(r=>(n.contain||"").includes(r))}function Qh(e){let t=lt(e);for(;Ne(t)&&!Kt(t);){if(ts(t))return t;if(Rr(t))return null;t=lt(t)}return null}function ns(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Yh=new Set(["html","body","#document"]);function Kt(e){return Yh.has(Yt(e))}function Pe(e){return _e(e).getComputedStyle(e)}function jr(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||fl(e)&&e.host||Me(e);return fl(t)?t.host:t}function pl(e){const t=lt(e);return Kt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ne(t)&&jn(t)?t:pl(t)}function Dn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=pl(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=_e(o);if(s){const a=rs(i);return t.concat(i,i.visualViewport||[],jn(o)?o:[],a&&n?Dn(a):[])}return t.concat(o,Dn(o,[],n))}function rs(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function hl(e){const t=Pe(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ne(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=Tr(n)!==s||Tr(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function os(e){return Ae(e)?e:e.contextElement}function Zt(e){const t=os(e);if(!Ne(t))return Le(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=hl(t);let i=(s?Tr(n.width):n.width)/r,a=(s?Tr(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const Kh=Le(0);function ml(e){const t=_e(e);return!ns()||!t.visualViewport?Kh:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Zh(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==_e(e)?!1:t}function Pt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=os(e);let i=Le(1);t&&(r?Ae(r)&&(i=Zt(r)):i=Zt(e));const a=Zh(s,n,r)?ml(s):Le(0);let l=(o.left+a.x)/i.x,c=(o.top+a.y)/i.y,d=o.width/i.x,h=o.height/i.y;if(s){const p=_e(s),m=r&&Ae(r)?_e(r):r;let w=p,f=rs(w);for(;f&&r&&m!==w;){const v=Zt(f),_=f.getBoundingClientRect(),C=Pe(f),S=_.left+(f.clientLeft+parseFloat(C.paddingLeft))*v.x,T=_.top+(f.clientTop+parseFloat(C.paddingTop))*v.y;l*=v.x,c*=v.y,d*=v.x,h*=v.y,l+=S,c+=T,w=_e(f),f=rs(w)}}return kr({width:d,height:h,x:l,y:c})}function ss(e,t){const n=jr(e).scrollLeft;return t?t.left+n:Pt(Me(e)).left+n}function gl(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:ss(e,r)),s=r.top+t.scrollTop;return{x:o,y:s}}function Xh(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=Me(r),a=t?Rr(t.floating):!1;if(r===i||a&&s)return n;let l={scrollLeft:0,scrollTop:0},c=Le(1);const d=Le(0),h=Ne(r);if((h||!h&&!s)&&((Yt(r)!=="body"||jn(i))&&(l=jr(r)),Ne(r))){const m=Pt(r);c=Zt(r),d.x=m.x+r.clientLeft,d.y=m.y+r.clientTop}const p=i&&!h&&!s?gl(i,l,!0):Le(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+p.x,y:n.y*c.y-l.scrollTop*c.y+d.y+p.y}}function Jh(e){return Array.from(e.getClientRects())}function e1(e){const t=Me(e),n=jr(e),r=e.ownerDocument.body,o=we(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=we(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+ss(e);const a=-n.scrollTop;return Pe(r).direction==="rtl"&&(i+=we(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}function t1(e,t){const n=_e(e),r=Me(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,l=0;if(o){s=o.width,i=o.height;const c=ns();(!c||c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:i,x:a,y:l}}const n1=new Set(["absolute","fixed"]);function r1(e,t){const n=Pt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Ne(e)?Zt(e):Le(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,l=o*s.x,c=r*s.y;return{width:i,height:a,x:l,y:c}}function vl(e,t,n){let r;if(t==="viewport")r=t1(e,n);else if(t==="document")r=e1(Me(e));else if(Ae(t))r=r1(t,n);else{const o=ml(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return kr(r)}function yl(e,t){const n=lt(e);return n===t||!Ae(n)||Kt(n)?!1:Pe(n).position==="fixed"||yl(n,t)}function o1(e,t){const n=t.get(e);if(n)return n;let r=Dn(e,[],!1).filter(a=>Ae(a)&&Yt(a)!=="body"),o=null;const s=Pe(e).position==="fixed";let i=s?lt(e):e;for(;Ae(i)&&!Kt(i);){const a=Pe(i),l=ts(i);!l&&a.position==="fixed"&&(o=null),(s?!l&&!o:!l&&a.position==="static"&&!!o&&n1.has(o.position)||jn(i)&&!l&&yl(e,i))?r=r.filter(d=>d!==i):o=a,i=lt(i)}return t.set(e,r),r}function s1(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Rr(t)?[]:o1(t,this._c):[].concat(n),r],a=i[0],l=i.reduce((c,d)=>{const h=vl(t,d,o);return c.top=we(h.top,c.top),c.right=at(h.right,c.right),c.bottom=at(h.bottom,c.bottom),c.left=we(h.left,c.left),c},vl(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function i1(e){const{width:t,height:n}=hl(e);return{width:t,height:n}}function a1(e,t,n){const r=Ne(t),o=Me(t),s=n==="fixed",i=Pt(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=Le(0);function c(){l.x=ss(o)}if(r||!r&&!s)if((Yt(t)!=="body"||jn(o))&&(a=jr(t)),r){const m=Pt(t,!0,s,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else o&&c();s&&!r&&o&&c();const d=o&&!r&&!s?gl(o,a):Le(0),h=i.left+a.scrollLeft-l.x-d.x,p=i.top+a.scrollTop-l.y-d.y;return{x:h,y:p,width:i.width,height:i.height}}function is(e){return Pe(e).position==="static"}function bl(e,t){if(!Ne(e)||Pe(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Me(e)===n&&(n=n.ownerDocument.body),n}function wl(e,t){const n=_e(e);if(Rr(e))return n;if(!Ne(e)){let o=lt(e);for(;o&&!Kt(o);){if(Ae(o)&&!is(o))return o;o=lt(o)}return n}let r=bl(e,t);for(;r&&Hh(r)&&is(r);)r=bl(r,t);return r&&Kt(r)&&is(r)&&!ts(r)?n:r||Qh(e)||n}const l1=async function(e){const t=this.getOffsetParent||wl,n=this.getDimensions,r=await n(e.floating);return{reference:a1(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function c1(e){return Pe(e).direction==="rtl"}const u1={convertOffsetParentRelativeRectToViewportRelativeRect:Xh,getDocumentElement:Me,getClippingRect:s1,getOffsetParent:wl,getElementRects:l1,getClientRects:Jh,getDimensions:i1,getScale:Zt,isElement:Ae,isRTL:c1};function _l(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function d1(e,t){let n=null,r;const o=Me(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const c=e.getBoundingClientRect(),{left:d,top:h,width:p,height:m}=c;if(a||t(),!p||!m)return;const w=Ar(h),f=Ar(o.clientWidth-(d+p)),v=Ar(o.clientHeight-(h+m)),_=Ar(d),S={rootMargin:-w+"px "+-f+"px "+-v+"px "+-_+"px",threshold:we(0,at(1,l))||1};let T=!0;function A(O){const P=O[0].intersectionRatio;if(P!==l){if(!T)return i();P?i(!1,P):r=setTimeout(()=>{i(!1,1e-7)},1e3)}P===1&&!_l(c,e.getBoundingClientRect())&&i(),T=!1}try{n=new IntersectionObserver(A,{...S,root:o.ownerDocument})}catch{n=new IntersectionObserver(A,S)}n.observe(e)}return i(!0),s}function f1(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=os(e),d=o||s?[...c?Dn(c):[],...Dn(t)]:[];d.forEach(_=>{o&&_.addEventListener("scroll",n,{passive:!0}),s&&_.addEventListener("resize",n)});const h=c&&a?d1(c,n):null;let p=-1,m=null;i&&(m=new ResizeObserver(_=>{let[C]=_;C&&C.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var S;(S=m)==null||S.observe(t)})),n()}),c&&!l&&m.observe(c),m.observe(t));let w,f=l?Pt(e):null;l&&v();function v(){const _=Pt(e);f&&!_l(f,_)&&n(),f=_,w=requestAnimationFrame(v)}return n(),()=>{var _;d.forEach(C=>{o&&C.removeEventListener("scroll",n),s&&C.removeEventListener("resize",n)}),h==null||h(),(_=m)==null||_.disconnect(),m=null,l&&cancelAnimationFrame(w)}}const p1=Nh,h1=$h,m1=Lh,g1=Bh,v1=Ih,xl=Dh,y1=Fh,b1=(e,t,n)=>{const r=new Map,o={platform:u1,...n},s={...o.platform,_c:r};return jh(e,t,{...o,platform:s})};var w1=typeof document<"u",_1=function(){},Dr=w1?x.useLayoutEffect:_1;function Lr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Lr(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!Lr(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Cl(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function El(e,t){const n=Cl(e);return Math.round(t*n)/n}function as(e){const t=g.useRef(e);return Dr(()=>{t.current=e}),t}function x1(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[d,h]=g.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=g.useState(r);Lr(p,r)||m(r);const[w,f]=g.useState(null),[v,_]=g.useState(null),C=g.useCallback(B=>{B!==O.current&&(O.current=B,f(B))},[]),S=g.useCallback(B=>{B!==P.current&&(P.current=B,_(B))},[]),T=s||w,A=i||v,O=g.useRef(null),P=g.useRef(null),M=g.useRef(d),N=l!=null,$=as(l),Y=as(o),K=as(c),W=g.useCallback(()=>{if(!O.current||!P.current)return;const B={placement:t,strategy:n,middleware:p};Y.current&&(B.platform=Y.current),b1(O.current,P.current,B).then(ie=>{const xe={...ie,isPositioned:K.current!==!1};q.current&&!Lr(M.current,xe)&&(M.current=xe,ti.flushSync(()=>{h(xe)}))})},[p,t,n,Y,K]);Dr(()=>{c===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,h(B=>({...B,isPositioned:!1})))},[c]);const q=g.useRef(!1);Dr(()=>(q.current=!0,()=>{q.current=!1}),[]),Dr(()=>{if(T&&(O.current=T),A&&(P.current=A),T&&A){if($.current)return $.current(T,A,W);W()}},[T,A,W,$,N]);const se=g.useMemo(()=>({reference:O,floating:P,setReference:C,setFloating:S}),[C,S]),J=g.useMemo(()=>({reference:T,floating:A}),[T,A]),ee=g.useMemo(()=>{const B={position:n,left:0,top:0};if(!J.floating)return B;const ie=El(J.floating,d.x),xe=El(J.floating,d.y);return a?{...B,transform:"translate("+ie+"px, "+xe+"px)",...Cl(J.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ie,top:xe}},[n,a,J.floating,d.x,d.y]);return g.useMemo(()=>({...d,update:W,refs:se,elements:J,floatingStyles:ee}),[d,W,se,J,ee])}const C1=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?xl({element:r.current,padding:o}).fn(n):{}:r?xl({element:r,padding:o}).fn(n):{}}}},E1=(e,t)=>({...p1(e),options:[e,t]}),S1=(e,t)=>({...h1(e),options:[e,t]}),T1=(e,t)=>({...y1(e),options:[e,t]}),A1=(e,t)=>({...m1(e),options:[e,t]}),P1=(e,t)=>({...g1(e),options:[e,t]}),k1=(e,t)=>({...v1(e),options:[e,t]}),O1=(e,t)=>({...C1(e),options:[e,t]});var R1="Arrow",Sl=g.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return u.jsx(he.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});Sl.displayName=R1;var j1=Sl;function D1(e){const[t,n]=g.useState(void 0);return it(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const l=s.borderBoxSize,c=Array.isArray(l)?l[0]:l;i=c.inlineSize,a=c.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var ls="Popper",[Tl,Al]=qo(ls),[L1,Pl]=Tl(ls),kl=e=>{const{__scopePopper:t,children:n}=e,[r,o]=g.useState(null);return u.jsx(L1,{scope:t,anchor:r,onAnchorChange:o,children:n})};kl.displayName=ls;var Ol="PopperAnchor",Rl=g.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=Pl(Ol,n),i=g.useRef(null),a=Te(t,i);return g.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:u.jsx(he.div,{...o,ref:a})});Rl.displayName=Ol;var cs="PopperContent",[I1,M1]=Tl(cs),jl=g.forwardRef((e,t)=>{var yn,Bt,bn,Ut,eo,Vn;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:h="partial",hideWhenDetached:p=!1,updatePositionStrategy:m="optimized",onPlaced:w,...f}=e,v=Pl(cs,n),[_,C]=g.useState(null),S=Te(t,zt=>C(zt)),[T,A]=g.useState(null),O=D1(T),P=(O==null?void 0:O.width)??0,M=(O==null?void 0:O.height)??0,N=r+(s!=="center"?"-"+s:""),$=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},Y=Array.isArray(c)?c:[c],K=Y.length>0,W={padding:$,boundary:Y.filter($1),altBoundary:K},{refs:q,floatingStyles:se,placement:J,isPositioned:ee,middlewareData:B}=x1({strategy:"fixed",placement:N,whileElementsMounted:(...zt)=>f1(...zt,{animationFrame:m==="always"}),elements:{reference:v.anchor},middleware:[E1({mainAxis:o+M,alignmentAxis:i}),l&&S1({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?T1():void 0,...W}),l&&A1({...W}),P1({...W,apply:({elements:zt,rects:to,availableWidth:wn,availableHeight:Ht})=>{const{width:no,height:ro}=to.reference,Xe=zt.floating.style;Xe.setProperty("--radix-popper-available-width",`${wn}px`),Xe.setProperty("--radix-popper-available-height",`${Ht}px`),Xe.setProperty("--radix-popper-anchor-width",`${no}px`),Xe.setProperty("--radix-popper-anchor-height",`${ro}px`)}}),T&&O1({element:T,padding:a}),F1({arrowWidth:P,arrowHeight:M}),p&&k1({strategy:"referenceHidden",...W})]}),[ie,xe]=Il(J),Ft=qt(w);it(()=>{ee&&(Ft==null||Ft())},[ee,Ft]);const Xr=(yn=B.arrow)==null?void 0:yn.x,Jr=(Bt=B.arrow)==null?void 0:Bt.y,$s=((bn=B.arrow)==null?void 0:bn.centerOffset)!==0,[Fs,Wn]=g.useState();return it(()=>{_&&Wn(window.getComputedStyle(_).zIndex)},[_]),u.jsx("div",{ref:q.setFloating,"data-radix-popper-content-wrapper":"",style:{...se,transform:ee?se.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Fs,"--radix-popper-transform-origin":[(Ut=B.transformOrigin)==null?void 0:Ut.x,(eo=B.transformOrigin)==null?void 0:eo.y].join(" "),...((Vn=B.hide)==null?void 0:Vn.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(I1,{scope:n,placedSide:ie,onArrowChange:A,arrowX:Xr,arrowY:Jr,shouldHideArrow:$s,children:u.jsx(he.div,{"data-side":ie,"data-align":xe,...f,ref:S,style:{...f.style,animation:ee?void 0:"none"}})})})});jl.displayName=cs;var Dl="PopperArrow",N1={top:"bottom",right:"left",bottom:"top",left:"right"},Ll=g.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=M1(Dl,r),i=N1[s.placedSide];return u.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:u.jsx(j1,{...o,ref:n,style:{...o.style,display:"block"}})})});Ll.displayName=Dl;function $1(e){return e!==null}var F1=e=>({name:"transformOrigin",options:e,fn(t){var v,_,C;const{placement:n,rects:r,middlewareData:o}=t,i=((v=o.arrow)==null?void 0:v.centerOffset)!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[c,d]=Il(n),h={start:"0%",center:"50%",end:"100%"}[d],p=(((_=o.arrow)==null?void 0:_.x)??0)+a/2,m=(((C=o.arrow)==null?void 0:C.y)??0)+l/2;let w="",f="";return c==="bottom"?(w=i?h:`${p}px`,f=`${-l}px`):c==="top"?(w=i?h:`${p}px`,f=`${r.floating.height+l}px`):c==="right"?(w=`${-l}px`,f=i?h:`${m}px`):c==="left"&&(w=`${r.floating.width+l}px`,f=i?h:`${m}px`),{data:{x:w,y:f}}}});function Il(e){const[t,n="center"]=e.split("-");return[t,n]}var B1=kl,U1=Rl,z1=jl,H1=Ll,W1="Portal",us=g.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,s]=g.useState(!1);it(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?_t.createPortal(u.jsx(he.div,{...r,ref:t}),i):null});us.displayName=W1;function V1(e,t){return g.useReducer((n,r)=>t[n][r]??n,e)}var Xt=e=>{const{present:t,children:n}=e,r=G1(t),o=typeof n=="function"?n({present:r.isPresent}):g.Children.only(n),s=Te(r.ref,q1(o));return typeof n=="function"||r.isPresent?g.cloneElement(o,{ref:s}):null};Xt.displayName="Presence";function G1(e){const[t,n]=g.useState(),r=g.useRef(null),o=g.useRef(e),s=g.useRef("none"),i=e?"mounted":"unmounted",[a,l]=V1(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const c=Ir(r.current);s.current=a==="mounted"?c:"none"},[a]),it(()=>{const c=r.current,d=o.current;if(d!==e){const p=s.current,m=Ir(c);e?l("MOUNT"):m==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(d&&p!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),it(()=>{if(t){let c;const d=t.ownerDocument.defaultView??window,h=m=>{const f=Ir(r.current).includes(m.animationName);if(m.target===t&&f&&(l("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},p=m=>{m.target===t&&(s.current=Ir(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:g.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function Ir(e){return(e==null?void 0:e.animationName)||"none"}function q1(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Q1=g[" useInsertionEffect ".trim().toString()]||it;function Ml({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=Y1({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:o;{const d=g.useRef(e!==void 0);g.useEffect(()=>{const h=d.current;h!==a&&console.warn(`${r} is changing from ${h?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,r])}const c=g.useCallback(d=>{var h;if(a){const p=K1(d)?d(e):d;p!==e&&((h=i.current)==null||h.call(i,p))}else s(d)},[a,e,s,i]);return[l,c]}function Y1({defaultProp:e,onChange:t}){const[n,r]=g.useState(e),o=g.useRef(n),s=g.useRef(t);return Q1(()=>{s.current=t},[t]),g.useEffect(()=>{var i;o.current!==n&&((i=s.current)==null||i.call(s,n),o.current=n)},[n,o]),[n,r,s]}function K1(e){return typeof e=="function"}var Z1=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"}),X1="VisuallyHidden",Nl=g.forwardRef((e,t)=>u.jsx(he.span,{...e,ref:t,style:{...Z1,...e.style}}));Nl.displayName=X1;var J1=Nl,[Mr,Ey]=qo("Tooltip",[Al]),Nr=Al(),$l="TooltipProvider",em=700,ds="tooltip.open",[tm,fs]=Mr($l),Fl=e=>{const{__scopeTooltip:t,delayDuration:n=em,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,i=g.useRef(!0),a=g.useRef(!1),l=g.useRef(0);return g.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),u.jsx(tm,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:g.useCallback(()=>{window.clearTimeout(l.current),i.current=!1},[]),onClose:g.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:g.useCallback(c=>{a.current=c},[]),disableHoverableContent:o,children:s})};Fl.displayName=$l;var Ln="Tooltip",[nm,In]=Mr(Ln),Bl=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:i,delayDuration:a}=e,l=fs(Ln,e.__scopeTooltip),c=Nr(t),[d,h]=g.useState(null),p=Sr(),m=g.useRef(0),w=i??l.disableHoverableContent,f=a??l.delayDuration,v=g.useRef(!1),[_,C]=Ml({prop:r,defaultProp:o??!1,onChange:P=>{P?(l.onOpen(),document.dispatchEvent(new CustomEvent(ds))):l.onClose(),s==null||s(P)},caller:Ln}),S=g.useMemo(()=>_?v.current?"delayed-open":"instant-open":"closed",[_]),T=g.useCallback(()=>{window.clearTimeout(m.current),m.current=0,v.current=!1,C(!0)},[C]),A=g.useCallback(()=>{window.clearTimeout(m.current),m.current=0,C(!1)},[C]),O=g.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{v.current=!0,C(!0),m.current=0},f)},[f,C]);return g.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),u.jsx(B1,{...c,children:u.jsx(nm,{scope:t,contentId:p,open:_,stateAttribute:S,trigger:d,onTriggerChange:h,onTriggerEnter:g.useCallback(()=>{l.isOpenDelayedRef.current?O():T()},[l.isOpenDelayedRef,O,T]),onTriggerLeave:g.useCallback(()=>{w?A():(window.clearTimeout(m.current),m.current=0)},[A,w]),onOpen:T,onClose:A,disableHoverableContent:w,children:n})})};Bl.displayName=Ln;var ps="TooltipTrigger",Ul=g.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=In(ps,n),s=fs(ps,n),i=Nr(n),a=g.useRef(null),l=Te(t,a,o.onTriggerChange),c=g.useRef(!1),d=g.useRef(!1),h=g.useCallback(()=>c.current=!1,[]);return g.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),u.jsx(U1,{asChild:!0,...i,children:u.jsx(he.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:pe(e.onPointerMove,p=>{p.pointerType!=="touch"&&!d.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:pe(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:pe(e.onPointerDown,()=>{o.open&&o.onClose(),c.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:pe(e.onFocus,()=>{c.current||o.onOpen()}),onBlur:pe(e.onBlur,o.onClose),onClick:pe(e.onClick,o.onClose)})})});Ul.displayName=ps;var hs="TooltipPortal",[rm,om]=Mr(hs,{forceMount:void 0}),zl=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,s=In(hs,t);return u.jsx(rm,{scope:t,forceMount:n,children:u.jsx(Xt,{present:n||s.open,children:u.jsx(us,{asChild:!0,container:o,children:r})})})};zl.displayName=hs;var Jt="TooltipContent",Hl=g.forwardRef((e,t)=>{const n=om(Jt,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,i=In(Jt,e.__scopeTooltip);return u.jsx(Xt,{present:r||i.open,children:i.disableHoverableContent?u.jsx(Wl,{side:o,...s,ref:t}):u.jsx(sm,{side:o,...s,ref:t})})}),sm=g.forwardRef((e,t)=>{const n=In(Jt,e.__scopeTooltip),r=fs(Jt,e.__scopeTooltip),o=g.useRef(null),s=Te(t,o),[i,a]=g.useState(null),{trigger:l,onClose:c}=n,d=o.current,{onPointerInTransitChange:h}=r,p=g.useCallback(()=>{a(null),h(!1)},[h]),m=g.useCallback((w,f)=>{const v=w.currentTarget,_={x:w.clientX,y:w.clientY},C=cm(_,v.getBoundingClientRect()),S=um(_,C),T=dm(f.getBoundingClientRect()),A=pm([...S,...T]);a(A),h(!0)},[h]);return g.useEffect(()=>()=>p(),[p]),g.useEffect(()=>{if(l&&d){const w=v=>m(v,d),f=v=>m(v,l);return l.addEventListener("pointerleave",w),d.addEventListener("pointerleave",f),()=>{l.removeEventListener("pointerleave",w),d.removeEventListener("pointerleave",f)}}},[l,d,m,p]),g.useEffect(()=>{if(i){const w=f=>{const v=f.target,_={x:f.clientX,y:f.clientY},C=(l==null?void 0:l.contains(v))||(d==null?void 0:d.contains(v)),S=!fm(_,i);C?p():S&&(p(),c())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[l,d,i,c,p]),u.jsx(Wl,{...e,ref:s})}),[im,am]=Mr(Ln,{isInside:!1}),lm=rh("TooltipContent"),Wl=g.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...a}=e,l=In(Jt,n),c=Nr(n),{onClose:d}=l;return g.useEffect(()=>(document.addEventListener(ds,d),()=>document.removeEventListener(ds,d)),[d]),g.useEffect(()=>{if(l.trigger){const h=p=>{const m=p.target;m!=null&&m.contains(l.trigger)&&d()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[l.trigger,d]),u.jsx(Yo,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:h=>h.preventDefault(),onDismiss:d,children:u.jsxs(z1,{"data-state":l.stateAttribute,...c,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(lm,{children:r}),u.jsx(im,{scope:n,isInside:!0,children:u.jsx(J1,{id:l.contentId,role:"tooltip",children:o||r})})]})})});Hl.displayName=Jt;var Vl="TooltipArrow",Gl=g.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Nr(n);return am(Vl,n).isInside?null:u.jsx(H1,{...o,...r,ref:t})});Gl.displayName=Vl;function cm(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function um(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function dm(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function fm(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s],l=t[i],c=a.x,d=a.y,h=l.x,p=l.y;d>r!=p>r&&n<(h-c)*(r-d)/(p-d)+c&&(o=!o)}return o}function pm(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),hm(t)}function hm(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var mm=Fl,gm=Bl,vm=Ul,ym=zl,bm=Hl,wm=Gl;const ql={tooltip:"tooltip__nUuSh",tooltipArrow:"tooltipArrow__W2w-f"},Ql=({children:e,open:t,displayName:n,tooltipContent:r,className:o,disabled:s,delayDuration:i=300,side:a="right",sideOffset:l=0})=>{const[c,d]=x.useState(!1),h=t!==void 0,m=s?!1:h?t:c,w=f=>{s||h||d(f)};return u.jsx(mm,{delayDuration:i,children:u.jsxs(gm,{open:m,onOpenChange:w,children:[u.jsx(vm,{asChild:!0,children:e}),u.jsx(ym,{children:u.jsxs(bm,{className:D(ql.tooltip,o),side:a,sideOffset:l,children:[n,r,u.jsx(wm,{className:ql.tooltipArrow})]})})]})})};Ql.displayName="Tooltip";const Yl={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"},Kl=({className:e,color:t="white",size:n=80,thickness:r})=>{const o=D(Yl.spinner,Yl[`spinner-${t}`],e),s=r??Math.max(n/12,2);return u.jsx("span",{style:{width:n,height:n,borderWidth:s},className:o})};Kl.displayName="Spinner";const $r={switch:"switch__0b2av",disabled:"disabled__KpauE",checked:"checked__2-JV-",thumb:"thumb__fEuKD"},Zl=x.forwardRef(({checked:e,defaultChecked:t=!1,onCheckedChange:n,disabled:r=!1,id:o,className:s,name:i,"aria-label":a,"aria-labelledby":l,"aria-describedby":c,...d},h)=>{const[p,m]=x.useState(t),w=e!==void 0,f=w?!!e:p,v=()=>{if(r)return;const C=!f;w||m(C),n==null||n(C)},_=C=>{(C.key===" "||C.key==="Enter")&&(C.preventDefault(),v())};return u.jsx("button",{ref:h,type:"button",role:"switch","aria-checked":f,"aria-label":a,"aria-labelledby":l,"aria-describedby":c,disabled:r,id:o,name:i,className:D($r.switch,{[$r.checked]:f,[$r.disabled]:r}),onClick:v,onKeyDown:_,...d,children:u.jsx("span",{className:$r.thumb,"aria-hidden":"true"})})});Zl.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"},Xl=x.createContext(null),ms=()=>{const e=x.useContext(Xl);if(!e)throw new Error("Tabs components must be used within a Tabs provider");return e},_m=({defaultValue:e,value:t,onValueChange:n,orientation:r="horizontal",className:o="",children:s})=>{const[i,a]=x.useState(e||""),l=t!==void 0,c=l?t:i,d=h=>{l||a(h),n==null||n(h)};return u.jsx(Xl.Provider,{value:{value:c,onValueChange:d,orientation:r},children:u.jsx("div",{className:D($e.tabsRoot,o),children:s})})},xm=({className:e="",children:t})=>{const{orientation:n}=ms(),r=x.useRef(null),o=s=>{var c;const i=(c=r.current)==null?void 0:c.querySelectorAll('[role="tab"]:not([disabled])');if(!i)return;const a=Array.from(i).findIndex(d=>d===document.activeElement);let l=a;switch(s.key){case"ArrowLeft":n==="horizontal"&&(s.preventDefault(),l=a>0?a-1:i.length-1);break;case"ArrowRight":n==="horizontal"&&(s.preventDefault(),l=a<i.length-1?a+1:0);break;case"ArrowUp":n==="vertical"&&(s.preventDefault(),l=a>0?a-1:i.length-1);break;case"ArrowDown":n==="vertical"&&(s.preventDefault(),l=a<i.length-1?a+1:0);break;case"Home":s.preventDefault(),l=0;break;case"End":s.preventDefault(),l=i.length-1;break}if(l!==a){const d=i[l];d.focus(),d.click()}};return u.jsx("div",{ref:r,role:"tablist","aria-orientation":n,onKeyDown:o,className:D($e.tabsList,n==="horizontal"?$e.tabsListHorizontal:$e.tabsListVertical,e),children:t})},Cm=({value:e,disabled:t=!1,className:n="",children:r})=>{const{value:o,onValueChange:s,orientation:i}=ms(),a=o===e,l=()=>{t||s(e)};return u.jsx("button",{role:"tab","aria-selected":a,"aria-controls":`content-${e}`,tabIndex:a?0:-1,disabled:t,onClick:l,className:D($e.tabsTrigger,i==="horizontal"?$e.tabsTriggerHorizontal:$e.tabsTriggerVertical,a&&$e.tabsTriggerActive,t&&$e.tabsTriggerDisabled,n),children:r})},Em=({value:e,className:t="",children:n})=>{const{value:r}=ms();return r===e?u.jsx("div",{role:"tabpanel",id:`content-${e}`,"aria-labelledby":`trigger-${e}`,tabIndex:0,className:D($e.tabsContent,t),children:n}):null},Jl=({className:e,state:t="open",onClick:n})=>t==="open"?u.jsxs("svg",{className:e,onClick:n,xmlns:"http://www.w3.org/2000/svg",width:"1.5em",height:"1.5em",viewBox:"0 0 14 14",fill:"none",children:[u.jsx("path",{d:"M1.41174 7.41635C1.3323 7.29056 1.29257 7.22766 1.27034 7.13065C1.25364 7.05778 1.25364 6.94287 1.27034 6.87C1.29257 6.77299 1.3323 6.71009 1.41174 6.58431C2.06823 5.54482 4.02232 2.91699 7.00024 2.91699C9.97815 2.91699 11.9322 5.54482 12.5887 6.5843C12.6682 6.71009 12.7079 6.77299 12.7301 6.87C12.7468 6.94287 12.7468 7.05778 12.7301 7.13065C12.7079 7.22766 12.6682 7.29056 12.5887 7.41635C11.9322 8.45584 9.97815 11.0837 7.00024 11.0837C4.02232 11.0837 2.06823 8.45584 1.41174 7.41635Z",stroke:"#818181",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M7.00024 8.75033C7.96673 8.75033 8.75024 7.96682 8.75024 7.00033C8.75024 6.03383 7.96673 5.25033 7.00024 5.25033C6.03374 5.25033 5.25024 6.03383 5.25024 7.00033C5.25024 7.96682 6.03374 8.75033 7.00024 8.75033Z",stroke:"#818181",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"})]}):u.jsx("svg",{className:e,onClick:n,xmlns:"http://www.w3.org/2000/svg",width:"1.5em",height:"1.5em",viewBox:"0 0 14 14",fill:"none",children:u.jsx("path",{d:"M6.26672 2.97052C6.50379 2.93547 6.74835 2.91667 7.00024 2.91667C9.97816 2.91667 11.9323 5.54449 12.5887 6.58398C12.6682 6.70979 12.7079 6.7727 12.7302 6.86973C12.7469 6.94259 12.7468 7.05755 12.7301 7.13042C12.7079 7.22744 12.6679 7.29077 12.5879 7.41741C12.413 7.69425 12.1463 8.08331 11.793 8.50527M3.92252 3.9171C2.66131 4.77266 1.8051 5.9613 1.41231 6.58308C1.3325 6.70942 1.29259 6.7726 1.27035 6.86961C1.25364 6.94248 1.25363 7.05742 1.27033 7.13029C1.29257 7.22731 1.33229 7.29022 1.41174 7.41602C2.06823 8.45551 4.02232 11.0833 7.00024 11.0833C8.20098 11.0833 9.23526 10.6561 10.0851 10.078M1.75024 1.75L12.2502 12.25M5.76281 5.76256C5.44612 6.07925 5.25024 6.51675 5.25024 7C5.25024 7.9665 6.03374 8.75 7.00024 8.75C7.48349 8.75 7.92099 8.55413 8.23768 8.23744",stroke:"#818181",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"})}),ec={PasswordInput:"PasswordInput__GDJDN",eyeIcon:"eyeIcon__kDExG"},Sm=x.forwardRef((e,t)=>{const[n,r]=x.useState("password"),o=x.useCallback(()=>{r(s=>s==="password"?"text":"password")},[r]);return u.jsxs("div",{className:D(ec.PasswordInput,e.className),children:[u.jsx(xr,{type:n,...e,ref:t}),u.jsx(Jl,{className:ec.eyeIcon,onClick:o,state:n==="password"?"open":"closed"})]})});var gs="focusScope.autoFocusOnMount",vs="focusScope.autoFocusOnUnmount",tc={bubbles:!1,cancelable:!0},Tm="FocusScope",nc=g.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,l]=g.useState(null),c=qt(o),d=qt(s),h=g.useRef(null),p=Te(t,f=>l(f)),m=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(r){let f=function(S){if(m.paused||!a)return;const T=S.target;a.contains(T)?h.current=T:ct(h.current,{select:!0})},v=function(S){if(m.paused||!a)return;const T=S.relatedTarget;T!==null&&(a.contains(T)||ct(h.current,{select:!0}))},_=function(S){if(document.activeElement===document.body)for(const A of S)A.removedNodes.length>0&&ct(a)};document.addEventListener("focusin",f),document.addEventListener("focusout",v);const C=new MutationObserver(_);return a&&C.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",v),C.disconnect()}}},[r,a,m.paused]),g.useEffect(()=>{if(a){sc.add(m);const f=document.activeElement;if(!a.contains(f)){const _=new CustomEvent(gs,tc);a.addEventListener(gs,c),a.dispatchEvent(_),_.defaultPrevented||(Am(jm(rc(a)),{select:!0}),document.activeElement===f&&ct(a))}return()=>{a.removeEventListener(gs,c),setTimeout(()=>{const _=new CustomEvent(vs,tc);a.addEventListener(vs,d),a.dispatchEvent(_),_.defaultPrevented||ct(f??document.body,{select:!0}),a.removeEventListener(vs,d),sc.remove(m)},0)}}},[a,c,d,m]);const w=g.useCallback(f=>{if(!n&&!r||m.paused)return;const v=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,_=document.activeElement;if(v&&_){const C=f.currentTarget,[S,T]=Pm(C);S&&T?!f.shiftKey&&_===T?(f.preventDefault(),n&&ct(S,{select:!0})):f.shiftKey&&_===S&&(f.preventDefault(),n&&ct(T,{select:!0})):_===C&&f.preventDefault()}},[n,r,m.paused]);return u.jsx(he.div,{tabIndex:-1,...i,ref:p,onKeyDown:w})});nc.displayName=Tm;function Am(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ct(r,{select:t}),document.activeElement!==n)return}function Pm(e){const t=rc(e),n=oc(t,e),r=oc(t.reverse(),e);return[n,r]}function rc(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function oc(e,t){for(const n of e)if(!km(n,{upTo:t}))return n}function km(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 Om(e){return e instanceof HTMLInputElement&&"select"in e}function ct(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Om(e)&&t&&e.select()}}var sc=Rm();function Rm(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=ic(e,t),e.unshift(t)},remove(t){var n;e=ic(e,t),(n=e[0])==null||n.resume()}}}function ic(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function jm(e){return e.filter(t=>t.tagName!=="A")}var ys=0;function Dm(){g.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ac()),document.body.insertAdjacentElement("beforeend",e[1]??ac()),ys++,()=>{ys===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ys--}},[])}function ac(){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 Fr="right-scroll-bar-position",Br="width-before-scroll-bar",Lm="with-scroll-bars-hidden",Im="--removed-body-scroll-bar-size";function bs(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Mm(e,t){var n=x.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Nm=typeof window<"u"?g.useLayoutEffect:g.useEffect,lc=new WeakMap;function $m(e,t){var n=Mm(null,function(r){return e.forEach(function(o){return bs(o,r)})});return Nm(function(){var r=lc.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(a){s.has(a)||bs(a,null)}),s.forEach(function(a){o.has(a)||bs(a,i)})}lc.set(n,e)},[e]),n}function Fm(e){return e}function Bm(e,t){t===void 0&&(t=Fm);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var i=t(s,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var l=function(){var d=i;i=[],d.forEach(s)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(d){i.push(d),c()},filter:function(d){return i=i.filter(d),n}}}};return o}function Um(e){e===void 0&&(e={});var t=Bm(null);return t.options=De({async:!0,ssr:!1},e),t}var cc=function(e){var t=e.sideCar,n=Ii(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return g.createElement(r,De({},n))};cc.isSideCarExport=!0;function zm(e,t){return e.useMedium(t),cc}var uc=Um(),ws=function(){},Ur=g.forwardRef(function(e,t){var n=g.useRef(null),r=g.useState({onScrollCapture:ws,onWheelCapture:ws,onTouchMoveCapture:ws}),o=r[0],s=r[1],i=e.forwardProps,a=e.children,l=e.className,c=e.removeScrollBar,d=e.enabled,h=e.shards,p=e.sideCar,m=e.noRelative,w=e.noIsolation,f=e.inert,v=e.allowPinchZoom,_=e.as,C=_===void 0?"div":_,S=e.gapMode,T=Ii(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),A=p,O=$m([n,t]),P=De(De({},T),o);return g.createElement(g.Fragment,null,d&&g.createElement(A,{sideCar:uc,removeScrollBar:c,shards:h,noRelative:m,noIsolation:w,inert:f,setCallbacks:s,allowPinchZoom:!!v,lockRef:n,gapMode:S}),i?g.cloneElement(g.Children.only(a),De(De({},P),{ref:O})):g.createElement(C,De({},P,{className:l,ref:O}),a))});Ur.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ur.classNames={fullWidth:Br,zeroRight:Fr};var Hm=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Wm(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Hm();return t&&e.setAttribute("nonce",t),e}function Vm(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Gm(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var qm=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Wm())&&(Vm(t,n),Gm(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Qm=function(){var e=qm();return function(t,n){g.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},dc=function(){var e=Qm(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Ym={left:0,top:0,right:0,gap:0},_s=function(e){return parseInt(e||"",10)||0},Km=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[_s(n),_s(r),_s(o)]},Zm=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Ym;var t=Km(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Xm=dc(),en="data-scroll-locked",Jm=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
|
|
235
|
-
.`.concat(
|
|
236
|
-
overflow: hidden `).concat(
|
|
237
|
-
padding-right: `).concat(a,"px ").concat(
|
|
209
|
+
`,cn=16,kf=({reverseOrder:e,position:t="top-center",toastOptions:r,gutter:n,children:o,containerStyle:s,containerClassName:i})=>{let{toasts:a,handlers:l}=nf(r);return g.createElement("div",{style:{position:"fixed",zIndex:9999,top:cn,left:cn,right:cn,bottom:cn,pointerEvents:"none",...s},className:i,onMouseEnter:l.startPause,onMouseLeave:l.endPause},a.map(c=>{let d=c.position||t,h=l.calculateOffset(c,{reverseOrder:e,gutter:n,defaultPosition:t}),f=Pf(d,h);return g.createElement(Af,{id:c.id,key:c.id,onHeightUpdate:l.updateHeight,className:c.visible?Of:"",style:f},c.type==="custom"?on(c.message,c):o?o(c):g.createElement(Tf,{toast:c,position:d}))}))},Qi=be;const To=()=>({notify:C.useCallback((t,r,n)=>{r==="warning"||r==="info"?Qi(t,{icon:r==="warning"?"⚠️":"ℹ️",style:{background:"var(--platform-background-primary-color)",color:"var(--platform-text-primary-color)"}}):Qi[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 Rf(e,t){return typeof e=="function"?e(t):e}function Ao(e){return typeof e=="number"&&e>=0&&e!==1/0}function Yi(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 Ki(e,t){const{type:r="all",exact:n,fetchStatus:o,predicate:s,queryKey:i,stale:a}=e;if(i){if(n){if(t.queryHash!==Po(i,t.options))return!1}else if(!Pr(t.queryKey,i))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||s&&!s(t))}function Zi(e,t){const{exact:r,status:n,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(r){if(St(t.options.mutationKey)!==St(s))return!1}else if(!Pr(t.options.mutationKey,s))return!1}return!(n&&t.state.status!==n||o&&!o(t))}function Po(e,t){return((t==null?void 0:t.queryKeyHashFn)||St)(e)}function St(e){return JSON.stringify(e,(t,r)=>ko(r)?Object.keys(r).sort().reduce((n,o)=>(n[o]=r[o],n),{}):r)}function Pr(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>Pr(e[r],t[r])):!1}function Oo(e,t){if(e===t)return e;const r=Xi(e)&&Xi(t);if(r||ko(e)&&ko(t)){const n=r?e:Object.keys(e),o=n.length,s=r?t:Object.keys(t),i=s.length,a=r?[]:{};let l=0;for(let c=0;c<i;c++){const d=r?c:s[c];(!r&&n.includes(d)||r)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,l++):(a[d]=Oo(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&l++)}return o===i&&l===o?e:a}return t}function un(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 Xi(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ko(e){if(!Ji(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!Ji(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Ji(e){return Object.prototype.toString.call(e)==="[object Object]"}function jf(e){return new Promise(t=>{setTimeout(t,e)})}function Ro(e,t,r){if(typeof r.structuralSharing=="function")return r.structuralSharing(e,t);if(r.structuralSharing!==!1){try{return Oo(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 Oo(e,t)}return t}function Df(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function Lf(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var dn=Symbol();function ea(e,t){return e.queryFn===dn&&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===dn?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function ta(e,t){return typeof e=="function"?e(...t):!!e}var If=(fu=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,fu),jo=new If,Nf=(pu=class extends Gt{constructor(){super();L(this,sr,!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,sr)!==t&&(R(this,sr,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return b(this,sr)}},sr=new WeakMap,dt=new WeakMap,ir=new WeakMap,pu),fn=new Nf;function Do(){let e,t;const r=new Promise((o,s)=>{e=o,t=s});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 Mf(e){return Math.min(1e3*2**e,3e4)}function ra(e){return(e??"online")==="online"?fn.isOnline():!0}var na=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Lo(e){return e instanceof na}function oa(e){let t=!1,r=0,n=!1,o;const s=Do(),i=p=>{var v;n||(f(new na(p)),(v=e.abort)==null||v.call(e))},a=()=>{t=!0},l=()=>{t=!1},c=()=>jo.isFocused()&&(e.networkMode==="always"||fn.isOnline())&&e.canRun(),d=()=>ra(e.networkMode)&&e.canRun(),h=p=>{var v;n||(n=!0,(v=e.onSuccess)==null||v.call(e,p),o==null||o(),s.resolve(p))},f=p=>{var v;n||(n=!0,(v=e.onError)==null||v.call(e,p),o==null||o(),s.reject(p))},m=()=>new Promise(p=>{var v;o=_=>{(n||c())&&p(_)},(v=e.onPause)==null||v.call(e)}).then(()=>{var p;o=void 0,n||(p=e.onContinue)==null||p.call(e)}),w=()=>{if(n)return;let p;const v=r===0?e.initialPromise:void 0;try{p=v??e.fn()}catch(_){p=Promise.reject(_)}Promise.resolve(p).then(h).catch(_=>{var k;if(n)return;const x=e.retry??(Et?0:3),T=e.retryDelay??Mf,S=typeof T=="function"?T(r,_):T,A=x===!0||typeof x=="number"&&r<x||typeof x=="function"&&x(r,_);if(t||!A){f(_);return}r++,(k=e.onFail)==null||k.call(e,r,_),jf(S).then(()=>c()?void 0:m()).then(()=>{t?f(_):w()})})};return{promise:s,cancel:i,continue:()=>(o==null||o(),s),cancelRetry:a,continueRetry:l,canStart:d,start:()=>(d()?w():m().then(w),s)}}var $f=e=>setTimeout(e,0);function Ff(){let e=[],t=0,r=a=>{a()},n=a=>{a()},o=$f;const s=a=>{t?e.push(a):o(()=>{r(a)})},i=()=>{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||i()}return l},batchCalls:a=>(...l)=>{s(()=>{a(...l)})},schedule:s,setNotifyFunction:a=>{r=a},setBatchNotifyFunction:a=>{n=a},setScheduler:a=>{o=a}}}var oe=Ff(),sa=(hu=class{constructor(){L(this,jt)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ao(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,hu),Bf=(mu=class extends sa{constructor(t){super();L(this,Re);L(this,ar);L(this,lr);L(this,Ce);L(this,Dt);L(this,le);L(this,Br);L(this,Lt);R(this,Lt,!1),R(this,Br,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,Uf(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,Br),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&b(this,Ce).remove(this)}setData(t,r){const n=Ro(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===dn||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:!Yi(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 c,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 f=this.observers.find(m=>m.options.queryFn);f&&this.setOptions(f.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=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(R(this,Lt,!0),n.signal)})},s=()=>{const f=ea(this.options,r),w=(()=>{const p={client:b(this,Dt),queryKey:this.queryKey,meta:this.meta};return o(p),p})();return R(this,Lt,!1),this.options.persister?this.options.persister(f,w,this):f(w)},a=(()=>{const f={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:b(this,Dt),state:this.state,fetchFn:s};return o(f),f})();(c=this.options.behavior)==null||c.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=f=>{var m,w,p,v;Lo(f)&&f.silent||F(this,Re,Je).call(this,{type:"error",error:f}),Lo(f)||((w=(m=b(this,Ce).config).onError)==null||w.call(m,f,this),(v=(p=b(this,Ce).config).onSettled)==null||v.call(p,this.state.data,f,this)),this.scheduleGc()};return R(this,le,oa({initialPromise:r==null?void 0:r.initialPromise,fn:a.fetchFn,abort:n.abort.bind(n),onSuccess:f=>{var m,w,p,v;if(f===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(f)}catch(_){l(_);return}(w=(m=b(this,Ce).config).onSuccess)==null||w.call(m,f,this),(v=(p=b(this,Ce).config).onSettled)==null||v.call(p,f,this.state.error,this),this.scheduleGc()},onError:l,onFail:(f,m)=>{F(this,Re,Je).call(this,{type:"failed",failureCount:f,error:m})},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,Br=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,...ia(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 Lo(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})})},mu);function ia(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ra(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Uf(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 zf=(gu=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,s=r.queryHash??Po(o,r);let i=this.get(s);return i||(i=new Bf({client:t,queryKey:o,queryHash:s,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(o)}),this.add(i)),i}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=>Ki(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>Ki(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,gu),Hf=(vu=class extends sa{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||aa(),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 s,i,a,l,c,d,h,f,m,w,p,v,_,x,T,S,A,k,O,N;const r=()=>{F(this,ze,wt).call(this,{type:"continue"})};R(this,It,oa({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((i=(s=b(this,ue).config).onMutate)==null?void 0:i.call(s,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=(c=b(this,ue).config).onSuccess)==null?void 0:d.call(c,M,t,this.state.context,this)),await((f=(h=this.options).onSuccess)==null?void 0:f.call(h,M,t,this.state.context)),await((w=(m=b(this,ue).config).onSettled)==null?void 0:w.call(m,M,null,this.state.variables,this.state.context,this)),await((v=(p=this.options).onSettled)==null?void 0:v.call(p,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})})},vu);function aa(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Wf=(yu=class extends Gt{constructor(t={}){super();L(this,Ye);L(this,je);L(this,Ur);this.config=t,R(this,Ye,new Set),R(this,je,new Map),R(this,Ur,0)}build(t,r,n){const o=new Hf({mutationCache:this,mutationId:++io(this,Ur)._,options:t.defaultMutationOptions(r),state:n});return this.add(o),o}add(t){b(this,Ye).add(t);const r=pn(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=pn(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=pn(t);if(typeof r=="string"){const n=b(this,je).get(r),o=n==null?void 0:n.find(s=>s.state.status==="pending");return!o||o===t}else return!0}runNext(t){var n;const r=pn(t);if(typeof r=="string"){const o=(n=b(this,je).get(r))==null?void 0:n.find(s=>s!==t&&s.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=>Zi(r,n))}findAll(t={}){return this.getAll().filter(r=>Zi(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,Ur=new WeakMap,yu);function pn(e){var t;return(t=e.options.scope)==null?void 0:t.id}function la(e){return{onFetch:(t,r)=>{var d,h,f,m,w;const n=t.options,o=(f=(h=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:h.fetchMore)==null?void 0:f.direction,s=((m=t.state.data)==null?void 0:m.pages)||[],i=((w=t.state.data)==null?void 0:w.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let p=!1;const v=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)})},_=ea(t.options,t.fetchOptions),x=async(T,S,A)=>{if(p)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?Lf:Df;return{pages:$(T.pages,N,M),pageParams:$(T.pageParams,S,M)}};if(o&&s.length){const T=o==="backward",S=T?Vf:ca,A={pages:s,pageParams:i},k=S(n,A);a=await x(A,k,T)}else{const T=e??s.length;do{const S=l===0?i[0]??n.initialPageParam:ca(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 p,v;return(v=(p=t.options).persister)==null?void 0:v.call(p,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=c}}}function ca(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 Vf(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 Gf=(bu=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 zf),R(this,ft,e.mutationCache||new Wf),R(this,pt,e.defaultOptions||{}),R(this,cr,new Map),R(this,ur,new Map),R(this,ht,0)}mount(){io(this,ht)._++,b(this,ht)===1&&(R(this,dr,jo.subscribe(async e=>{e&&(await this.resumePausedMutations(),b(this,X).onFocus())})),R(this,fr,fn.subscribe(async e=>{e&&(await this.resumePausedMutations(),b(this,X).onOnline())})))}unmount(){var e,t;io(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),s=o==null?void 0:o.state.data,i=Rf(t,s);if(i!==void 0)return b(this,X).build(this,n).setData(i,{...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 s=o.fetch(void 0,r);return r.throwOnError||(s=s.catch(ce)),o.state.fetchStatus==="paused"?Promise.resolve():s}));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=la(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ce).catch(ce)}ensureInfiniteQueryData(e){return e.behavior=la(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return fn.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=>{Pr(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=>{Pr(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=Po(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===dn&&(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,bu),qf=(wu=class extends Gt{constructor(t,r){super();L(this,V);L(this,ge);L(this,z);L(this,zr);L(this,de);L(this,Nt);L(this,pr);L(this,mt);L(this,gt);L(this,Hr);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,Do()),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),ua(b(this,z),this.options)?F(this,V,Gr).call(this):this.updateResult(),F(this,V,Ks).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Io(b(this,z),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Io(b(this,z),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,F(this,V,Zs).call(this),F(this,V,Xs).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,Js).call(this),b(this,z).setOptions(this.options),r._defaulted&&!un(this.options,r)&&b(this,ge).getQueryCache().notify({type:"observerOptionsUpdated",query:b(this,z),observer:this});const o=this.hasListeners();o&&da(b(this,z),n,this.options,r)&&F(this,V,Gr).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,qs).call(this);const s=F(this,V,Qs).call(this);o&&(b(this,z)!==n||Se(this.options.enabled,b(this,z))!==Se(r.enabled,b(this,z))||s!==b(this,vt))&&F(this,V,Ys).call(this,s)}getOptimisticResult(t){const r=b(this,ge).getQueryCache().build(b(this,ge),t),n=this.createResult(r,t);return Yf(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,Gr).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,s=b(this,de),i=b(this,Nt),a=b(this,pr),c=t!==n?t.state:b(this,zr),{state:d}=t;let h={...d},f=!1,m;if(r._optimisticResults){const $=this.hasListeners(),Y=!$&&ua(t,r),K=$&&da(t,n,r,o);(Y||K)&&(h={...h,...ia(d.data,t.options)}),r._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:w,errorUpdatedAt:p,status:v}=h;m=h.data;let _=!1;if(r.placeholderData!==void 0&&m===void 0&&v==="pending"){let $;s!=null&&s.isPlaceholderData&&r.placeholderData===(a==null?void 0:a.placeholderData)?($=s.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",m=Ro(s==null?void 0:s.data,$,r),f=!0)}if(r.select&&m!==void 0&&!_)if(s&&m===(i==null?void 0:i.data)&&r.select===b(this,Hr))m=b(this,hr);else try{R(this,Hr,r.select),m=r.select(m),m=Ro(s==null?void 0:s.data,m,r),R(this,hr,m),R(this,gt,null)}catch($){R(this,gt,$)}b(this,gt)&&(w=b(this,gt),m=b(this,hr),p=Date.now(),v="error");const x=h.fetchStatus==="fetching",T=v==="pending",S=v==="error",A=T&&x,k=m!==void 0,N={status:v,fetchStatus:h.fetchStatus,isPending:T,isSuccess:v==="success",isError:S,isInitialLoading:A,isLoading:A,data:m,dataUpdatedAt:h.dataUpdatedAt,error:w,errorUpdatedAt:p,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>c.dataUpdateCount||h.errorUpdateCount>c.errorUpdateCount,isFetching:x,isRefetching:x&&!T,isLoadingError:S&&!k,isPaused:h.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:S&&k,isStale:No(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=Do());$(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)),un(r,t))return;R(this,de,r);const n=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,s=typeof o=="function"?o():o;if(s==="all"||!s&&!b(this,gr).size)return!0;const i=new Set(s??b(this,gr));return this.options.throwOnError&&i.add("error"),Object.keys(b(this,de)).some(a=>{const l=a;return b(this,de)[l]!==t[l]&&i.has(l)})};F(this,V,Iu).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&F(this,V,Ks).call(this)}},ge=new WeakMap,z=new WeakMap,zr=new WeakMap,de=new WeakMap,Nt=new WeakMap,pr=new WeakMap,mt=new WeakMap,gt=new WeakMap,Hr=new WeakMap,hr=new WeakMap,mr=new WeakMap,Mt=new WeakMap,$t=new WeakMap,vt=new WeakMap,gr=new WeakMap,V=new WeakSet,Gr=function(t){F(this,V,Js).call(this);let r=b(this,z).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(ce)),r},qs=function(){F(this,V,Zs).call(this);const t=ot(this.options.staleTime,b(this,z));if(Et||b(this,de).isStale||!Ao(t))return;const n=Yi(b(this,de).dataUpdatedAt,t)+1;R(this,Mt,setTimeout(()=>{b(this,de).isStale||this.updateResult()},n))},Qs=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(b(this,z)):this.options.refetchInterval)??!1},Ys=function(t){F(this,V,Xs).call(this),R(this,vt,t),!(Et||Se(this.options.enabled,b(this,z))===!1||!Ao(b(this,vt))||b(this,vt)===0)&&R(this,$t,setInterval(()=>{(this.options.refetchIntervalInBackground||jo.isFocused())&&F(this,V,Gr).call(this)},b(this,vt)))},Ks=function(){F(this,V,qs).call(this),F(this,V,Ys).call(this,F(this,V,Qs).call(this))},Zs=function(){b(this,Mt)&&(clearTimeout(b(this,Mt)),R(this,Mt,void 0))},Xs=function(){b(this,$t)&&(clearInterval(b(this,$t)),R(this,$t,void 0))},Js=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,zr,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},Iu=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"})})},wu);function Qf(e,t){return Se(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function ua(e,t){return Qf(e,t)||e.state.data!==void 0&&Io(e,t,t.refetchOnMount)}function Io(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&&No(e,t)}return!1}function da(e,t,r,n){return(e!==t||Se(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&No(e,r)}function No(e,t){return Se(t.enabled,e)!==!1&&e.isStaleByTime(ot(t.staleTime,e))}function Yf(e,t){return!un(e.getCurrentResult(),t)}var Kf=(_u=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,ao).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),un(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,ao).call(this),F(this,Ze,ei).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,ao).call(this),F(this,Ze,ei).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,ao=function(){var n;const r=((n=b(this,ve))==null?void 0:n.state)??aa();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})},ei=function(r){oe.batch(()=>{var n,o,s,i,a,l,c,d;if(b(this,Ke)&&this.hasListeners()){const h=b(this,bt).variables,f=b(this,bt).context;(r==null?void 0:r.type)==="success"?((o=(n=b(this,Ke)).onSuccess)==null||o.call(n,r.data,h,f),(i=(s=b(this,Ke)).onSettled)==null||i.call(s,r.data,null,h,f)):(r==null?void 0:r.type)==="error"&&((l=(a=b(this,Ke)).onError)==null||l.call(a,r.error,h,f),(d=(c=b(this,Ke)).onSettled)==null||d.call(c,void 0,r.error,h,f))}this.listeners.forEach(h=>{h(b(this,bt))})})},_u),fa=g.createContext(void 0),Mo=e=>{const t=g.useContext(fa);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Zf=({client:e,children:t})=>(g.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),u.jsx(fa.Provider,{value:e,children:t})),pa=g.createContext(!1),Xf=()=>g.useContext(pa);pa.Provider;function Jf(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var ep=g.createContext(Jf()),tp=()=>g.useContext(ep),rp=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},np=e=>{g.useEffect(()=>{e.clearReset()},[e])},op=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(o&&e.data===void 0||ta(r,[e.error,n])),sp=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))}},ip=(e,t)=>e.isLoading&&e.isFetching&&!t,ap=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,ha=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function lp(e,t,r){var h,f,m,w,p;if(typeof e!="object"||Array.isArray(e))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const n=Xf(),o=tp(),s=Mo(),i=s.defaultQueryOptions(e);(f=(h=s.getDefaultOptions().queries)==null?void 0:h._experimental_beforeQuery)==null||f.call(h,i),i.queryFn||console.error(`[${i.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`),i._optimisticResults=n?"isRestoring":"optimistic",sp(i),rp(i,o),np(o);const a=!s.getQueryCache().get(i.queryHash),[l]=g.useState(()=>new t(s,i)),c=l.getOptimisticResult(i),d=!n&&e.subscribed!==!1;if(g.useSyncExternalStore(g.useCallback(v=>{const _=d?l.subscribe(oe.batchCalls(v)):ce;return l.updateResult(),_},[l,d]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),g.useEffect(()=>{l.setOptions(i)},[i,l]),ap(i,c))throw ha(i,l,o);if(op({result:c,errorResetBoundary:o,throwOnError:i.throwOnError,query:s.getQueryCache().get(i.queryHash),suspense:i.suspense}))throw c.error;if((w=(m=s.getDefaultOptions().queries)==null?void 0:m._experimental_afterQuery)==null||w.call(m,i,c),i.experimental_prefetchInRender&&!Et&&ip(c,n)){const v=a?ha(i,l,o):(p=s.getQueryCache().get(i.queryHash))==null?void 0:p.promise;v==null||v.catch(ce).finally(()=>{l.updateResult()})}return i.notifyOnChangeProps?c:l.trackResult(c)}function ma(e,t){return lp(e,qf)}function hn(e,t){const r=Mo(),[n]=g.useState(()=>new Kf(r,e));g.useEffect(()=>{n.setOptions(e)},[n,e]);const o=g.useSyncExternalStore(g.useCallback(i=>n.subscribe(oe.batchCalls(i)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),s=g.useCallback((i,a)=>{n.mutate(i,a).catch(ce)},[n]);if(o.error&&ta(n.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:s,mutateAsync:o.mutate}}const mn={STALE_TIME:1e3*60*5,GC_TIME:1e3*60*10,RETRY_COUNT:1,RETRY_DELAY:1e3},ga={refetchOnWindowFocus:!1,refetchOnReconnect:!1,refetchOnMount:!1,staleTime:mn.STALE_TIME,gcTime:mn.GC_TIME,retry:mn.RETRY_COUNT,retryDelay:mn.RETRY_DELAY,enable:!0},gn=e=>e instanceof Error?e.message:String(e),va=(e,t,r)=>{const n=Mo(),{notify:o}=To(),{createFn:s,readFn:i,readByIdFn:a,updateFn:l,deleteFn:c,partialUpdateFn:d}=r,h=()=>{n.invalidateQueries({queryKey:[e]})},f=(S,A,k,O)=>o(O!=null&&O.overrideSuccessMessage?O==null?void 0:O.overrideSuccessMessage(S,A):k,"success"),m=(S,A,k,O)=>o(O!=null&&O.overrideErrorMessage?O==null?void 0:O.overrideErrorMessage(S,A):k,"error");return{useCreate:S=>hn({mutationFn:A=>s(A),onSuccess:A=>{h(),f(t,A,`${t} created successfully`,S)},onError:A=>{m(t,A,`Error creating ${t}: ${gn(A)}`,S)}}),useReadQuery:S=>ma({queryKey:[e],queryFn:i,...ga,...S}),useReadByIdQuery:(S,A)=>ma({queryKey:[e,S],queryFn:()=>a(S),...ga,enabled:!!S,...A}),useUpdate:S=>hn({mutationFn:({id:A,data:k})=>l(A,k),onSuccess:A=>{h(),f(t,A,`${t} updated successfully`,S)},onError:A=>{m(t,A,`Error updating ${t}: ${gn(A)}`,S)}}),usePartialUpdate:S=>d&&hn({mutationFn:({id:A,data:k})=>d(A,k),onSuccess:A=>{h(),f(t,A,`${t} updated successfully`,S)},onError:A=>{m(t,A,`Error updating ${t}: ${gn(A)}`,S)}}),useDelete:S=>hn({mutationFn:A=>c(A),onSuccess:()=>{h(),f(t,null,`${t} deleted successfully`,S)},onError:A=>{m(t,A,`Error deleting ${t}: ${gn(A)}`,S)}}),invalidateQueries:h}},cp=(e,t)=>va(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())}),up={SINGLE_TENANT:"single-tenant"},dp={COOKIE:"cookie"},$o="tenant",ya="tenant",ba="tenant",fp=up.SINGLE_TENANT,pp=dp.COOKIE,hp={mode:fp,clientSideMode:pp,tenantIDPProvisioningStrategy:"none"};class mp{setTenant(t,r){const n=new URL(window.location.href);n.searchParams.set(ya,t.name),window.location.href=n.toString()}getCurrentTenantName(){const t=new URL(window.location.href);return new URLSearchParams(t.search).get(ya)}}class gp{setTenant(t,r){sessionStorage.setItem(ba,t.name),window.location.reload()}getCurrentTenantName(){return sessionStorage.getItem(ba)}}/*! js-cookie v3.0.5 | MIT */function vn(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 vp={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 Fo(e,t){function r(o,s,i){if(!(typeof document>"u")){i=vn({},t,i),typeof i.expires=="number"&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var l in i)i[l]&&(a+="; "+l,i[l]!==!0&&(a+="="+i[l].split(";")[0]));return document.cookie=o+"="+e.write(s,o)+a}}function n(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var s=document.cookie?document.cookie.split("; "):[],i={},a=0;a<s.length;a++){var l=s[a].split("="),c=l.slice(1).join("=");try{var d=decodeURIComponent(l[0]);if(i[d]=e.read(c,d),o===d)break}catch{}}return o?i[o]:i}}return Object.create({set:r,get:n,remove:function(o,s){r(o,"",vn({},s,{expires:-1}))},withAttributes:function(o){return Fo(this.converter,vn({},this.attributes,o))},withConverter:function(o){return Fo(vn({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Bo=Fo(vp,{path:"/"});class yp{setTenant(t,r){t?Bo.set($o,t.name):Bo.remove($o),window.location.reload()}getCurrentTenantName(){return Bo.get($o)}}class bp{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 c;const n=(c=r.urlPatterns)==null?void 0:c.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),s=n.patternValue,i=o.hostname,a=this.getBaseDomain(i),l=s?`${s}.${a}`:a;o.hostname=l,window.location.href=o.toString()}getCurrentTenantName(){const t=window.location.hostname;return this.extractSubdomain(t)||null}}const wa={queryParams:new mp,sessionStorage:new gp,cookie:new yp,subdomain:new bp},wp=e=>{const t=wa[e.clientSideMode];if(!t)throw new Error(`Client side tenant mode '${e.clientSideMode}' is not supported ${JSON.stringify({strategies:wa},null,2)}`);return t},_p=(e,t,r)=>{const n=t.find(s=>s.name===r);if(!n)throw Error("No tenant permission");return wp(e).setTenant(n,e),n},xp=()=>{const[e,t]=Qr(),{tenants:r=[],currentTenant:n,tenantConfig:o=hp}=e,s=C.useCallback(i=>{const a=_p(o,r,i);t({...e,currentTenant:a})},[o,e]);return{tenants:r,currentTenant:n,tenantConfig:o,selectTenant:s}};function Cp(e){if(!e.ok)throw console.error(e),new Error(e.statusText)}async function yn(e,t,r,n){const o=await e(`/user-states/${encodeURIComponent(t)}/${encodeURIComponent(r)}`,n);return Cp(o),o}class bn{static async get(t,r,n){const s=await yn(t,r,n,{method:"GET",headers:{"Content-Type":"application/json"}});return s.status===204?null:await s.json()}static async create(t,r,n,o){const s={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({value:o})};return await(await yn(t,r,n,s)).json()}static async update(t,r,n,o){const s={method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({value:o})};return await(await yn(t,r,n,s)).json()}static async delete(t,r,n){return await yn(t,r,n,{method:"DELETE",headers:{"Content-Type":"application/json"}}),null}}const Ep=e=>{const t=Vt("@bluealba/pae-nestjs-gateway-service"),r=Ci();if(!r)throw new Error("You must call the useUserState hook within a PAE application.");const[n,o]=C.useState(null),[s,i]=C.useState(!1),[a,l]=C.useState(!1),[c,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]),f=h(bn.get,"fetch"),m=h(bn.create,"create"),w=h(bn.update,"update"),p=h(bn.delete,"delete"),v=C.useCallback(async()=>{try{await f()}finally{i(!0)}},[f]);C.useEffect(()=>{v()},[v]);const _=C.useCallback(async(x,T=!1)=>n==null?await m({newValue:x,shouldThrowError:T}):await w({newValue:x,shouldThrowError:T}),[n,m,w]);return{value:n?n.value:null,hasFetched:s,loading:a,error:c,setValue:_,createValue:m,updateValue:w,deleteValue:p}},_a="__PAE_EXTENSION_POINT_REACT_CONTENT_EMPTY__",Sp=({module:e,point:t,children:r})=>(Ai(e,t,r??_a),null),xa=({name:e,children:t,...r})=>{const n=Ti(e);if(n===_a)return null;if(!n)return u.jsx(u.Fragment,{children:t??null});if(Tp(n)){const o=n;return u.jsx(o,{...r})}else return n},Tp=e=>typeof e=="function",Ap=(e,t)=>{const r=n=>(t=t||e.displayName||e.name||"?",u.jsx(xa,{name:t,...n,children:u.jsx(e,{...n})}));return r.displayName=`extensionPoint(${t})`,r},Ca="single-spa:app-change";function Pp(){const[e,t]=C.useState(Ea());return C.useEffect(()=>{const r=()=>{t(Ea())};return window.addEventListener(Ca,r),()=>{window.removeEventListener(Ca,r)}},[]),e}function Ea(){return ne.getAppNames().reduce((t,r)=>(ne.getAppStatus(r)?t[r]=ne.getAppStatus(r):t[r]="NOT_LOADED",t),{})}function Op(e){const r=Pp()[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 Sa=({appName:e})=>u.jsx("div",{children:u.jsxs("p",{children:["Loading ",e,"..."]})});Sa.displayName="BaseLoading";const Ta=({appName:e})=>u.jsxs("div",{children:[u.jsx("p",{children:"Something went wrong..."}),u.jsxs("p",{children:["Failed to load ",e]})]});Ta.displayName="BaseError";const kp={display:"flex",flexDirection:"column",flex:1},Aa=C.forwardRef((e,t)=>u.jsx("div",{ref:t,style:kp,...e}));Aa.displayName="BaseContainer";const Rp="pae-app:",Pa=C.forwardRef(({appName:e,LoadingComponent:t=Sa,ErrorComponent:r=Ta,ContainerComponent:n=Aa,...o},s)=>{const i=Op(e);return u.jsxs(n,{ref:s,...o,id:`${Rp}${e}`,children:[i.isLoading&&u.jsx(t,{appName:e}),i.isBroken&&u.jsx(r,{appName:e})]})});Pa.displayName="ModulePlaceHolder";const Uo=({operations:e,children:t,forbiddenContent:r})=>{var o;const{hasAccess:n}=Yr();if(!n(...e)){if(!r)return null;if(typeof r=="function")if((o=r==null?void 0:r.prototype)!=null&&o.isReactComponent){const s=r;return u.jsx(s,{operations:e})}else return r({operations:e});return C.isValidElement(r)?r:null}return t};Uo.displayName="Authorized";const jp=({eventName:e,listener:t})=>(Pi(e,t),null),Dp=()=>u.jsx("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:u.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",d:"M8.737 8.737a21.49 21.49 0 0 1 3.308-2.724m0 0c3.063-2.026 5.99-2.641 7.331-1.3 1.827 1.828.026 6.591-4.023 10.64-4.049 4.049-8.812 5.85-10.64 4.023-1.33-1.33-.736-4.218 1.249-7.253m6.083-6.11c-3.063-2.026-5.99-2.641-7.331-1.3-1.827 1.828-.026 6.591 4.023 10.64m3.308-9.34a21.497 21.497 0 0 1 3.308 2.724m2.775 3.386c1.985 3.035 2.579 5.923 1.248 7.253-1.336 1.337-4.245.732-7.295-1.275M14 12a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"})}),Oa=({applicationName:e})=>{const t=_i(e);if(t)if(typeof t=="function"){const r=t;return u.jsx(r,{})}else return t;return u.jsx(Dp,{})};Oa.displayName="ApplicationIcon";const Lp=(e,t)=>{const r=n=>u.jsx(Uo,{operations:t,children:u.jsx(e,{...n})});return r.displayName="Authorized",r};function ka(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=ka(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=ka(e))&&(n&&(n+=" "),n+=t);return n}const wn={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"},_n=C.forwardRef(({variant:e="contained",colorScheme:t="primary",loading:r=!1,IconComponent:n,className:o,children:s,...i},a)=>{const l=D(wn.button,wn[`button--${e}-${t}`],o);return u.jsxs("button",{ref:a,className:l,...i,children:[r?u.jsx("div",{className:wn.spinner}):n&&u.jsx(n,{className:wn.icon}),s]})});_n.displayName="Button";const xn={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"},Ra={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 ja={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function Ip(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(),Ra[e])r=Ra[e].slice(),o="rgb";else if(e==="transparent")n=0,o="rgb",r=[0,0,0];else if(e[0]==="#"){var s=e.slice(1),i=s.length,a=i<=4;n=1,a?(r=[parseInt(s[0]+s[0],16),parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16)],i===4&&(n=parseInt(s[3]+s[3],16)/255)):(r=[parseInt(s[0]+s[1],16),parseInt(s[2]+s[3],16),parseInt(s[4]+s[5],16)],i===8&&(n=parseInt(s[6]+s[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 c=o==="cmyk"?4:o==="gray"?1:3;r=t[2].trim().split(/\s*[,\/]\s*|\s+/),o==="color"&&(o=r.shift()),r=r.map(function(f,m){if(f[f.length-1]==="%")return f=parseFloat(f)/100,m===3?f:o==="rgb"?f*255:o[0]==="h"||o[0]==="l"&&!m?f*100:o==="lab"?f*125:o==="lch"?m<2?f*150:f*360:o[0]==="o"&&!m?f:o==="oklab"?f*.4:o==="oklch"?m<2?f*.4:f*360:f;if(o[m]==="h"||m===2&&o[o.length-1]==="h"){if(ja[f]!==void 0)return ja[f];if(f.endsWith("deg"))return parseFloat(f);if(f.endsWith("turn"))return parseFloat(f)*360;if(f.endsWith("grad"))return parseFloat(f)*360/400;if(f.endsWith("rad"))return parseFloat(f)*180/Math.PI}return f==="none"?0:parseFloat(f)}),n=r.length>c?r.pop():1}else/[0-9](?:\s|\/|,)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(f){return parseFloat(f)}),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 Np=(e,t)=>{const{space:r,values:n}=Ip(e);return r[0]==="h"?`${r}a(${n[0]}, ${n[1]}%, ${n[2]}%, ${t})`:`${r}a(${n}, ${t})`},zo=C.forwardRef(({children:e,color:t,className:r,customColor:n,size:o="small",style:s,...i},a)=>{const l=n?{color:n,background:Np(n,.1)}:{},c=D(xn.Badge,xn[`Badge--${o}`],{[xn[`Badge--${t}`]]:!!t},r);return u.jsx("span",{ref:a,className:c,style:{...s,...l},...i,children:e})});zo.displayName="Badge";const Ho=C.forwardRef(({children:e,className:t,...r},n)=>{const o=D(xn.Badges,t);return u.jsx("div",{ref:n,className:o,...r,children:e})});Ho.displayName="Badges";const Da=({size:e=24,color:t="currentColor",strokeWidth:r=2,className:n,style:o,...s})=>u.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,...s,children:[u.jsx("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"}),u.jsx("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"})]}),La=({size:e=24,color:t="currentColor",strokeWidth:r=2,className:n,style:o,...s})=>u.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,...s,children:[u.jsx("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"}),u.jsx("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"}),u.jsx("path",{d:"m9 12 2 2 4-4"})]}),Mp={CopyToClipboardButton:"CopyToClipboardButton__2Nd2m"},$p=({content:e})=>{const[t,r]=Fp(),{notify:n}=To(),o=t?La:Da,s=C.useCallback(async()=>{await r(e)&&n("Copied to the Clipboard !","success")},[e,n]);return u.jsx(o,{className:Mp.CopyToClipboardButton,size:18,onClick:s})},Fp=()=>{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}}]},Ia={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"},Na=C.forwardRef(({children:e,className:t,orientation:r="vertical",...n},o)=>{const s=D(Ia.FieldGroup,Ia[`FieldGroup--${r}`],t);return u.jsx("div",{ref:o,className:s,...n,children:e})});Na.displayName="FieldGroup";const Ma={Input:"Input__uS0sb",Error:"Error__-DQpw"},Cn=C.forwardRef(({className:e,error:t,...r},n)=>{const o=D(Ma.Input,t&&Ma.Error,e);return u.jsx("input",{ref:n,className:o,...r})});Cn.displayName="Input";const Bp={Error:"Error__N4OP5"},$a=C.forwardRef(({children:e,className:t,...r},n)=>{const o=D(Bp.Error,t);return u.jsx("span",{ref:n,className:o,...r,children:e})});$a.displayName="InputError";const Fa={Label:"Label__VYUvW",Error:"Error__Eu6DI"},Ba=C.forwardRef(({children:e,className:t,error:r,...n},o)=>{const s=D(Fa.Label,r&&Fa.Error,t);return u.jsx("label",{ref:o,className:s,...n,children:e})});Ba.displayName="Label";const Wo={Select:"Select__giqpe",Chevron:"Chevron__YvhBd"},Ua=C.forwardRef(({children:e,className:t,...r},n)=>{const o=D(Wo.Option,t);return u.jsx("option",{ref:n,className:o,...r,children:e})});Ua.displayName="Option";const Vo=C.forwardRef(({children:e,className:t,...r},n)=>{const o=D(Wo.Select,t);return u.jsxs("div",{className:o,children:[u.jsx("select",{ref:n,...r,children:e}),u.jsx("div",{className:Wo.Chevron,children:u.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M4 6L8 10L12 6",stroke:"#818181",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})})]})});Vo.displayName="Select",Vo.Option=Ua;const Up={TextArea:"TextArea__pa-A0"},za=C.forwardRef(({children:e,className:t,...r},n)=>{const o=D(Up.TextArea,t);return u.jsx("textarea",{ref:n,className:o,...r,children:e})});za.displayName="TextArea";const Or={SearchInput:"SearchInput__4OFyE",SearchIcon:"SearchIcon__YgnQy",ClearIcon:"ClearIcon__ukRVr",SearchInput__ClearIcon:"SearchInput__ClearIcon__uzVoc",SearchInput__SearchIcon:"SearchInput__SearchIcon__zoDG4"},Go=C.forwardRef(({className:e,placeholder:t="Type to search...",showClearButton:r=!1,showSearchIcon:n=!0,onClear:o,...s},i)=>{const a=D(Or.SearchInput,r&&Or.SearchInput__ClearIcon,n&&Or.SearchInput__SearchIcon,e),l=D(Or.SearchIcon),c=D(Or.ClearIcon);return u.jsxs("div",{className:a,children:[u.jsx(Cn,{ref:i,type:"text",placeholder:t,...s}),n&&u.jsx("svg",{className:l,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M13 13L10.6667 10.6667M12.3333 6.66667C12.3333 9.79628 9.79628 12.3333 6.66667 12.3333C3.53705 12.3333 1 9.79628 1 6.66667C1 3.53705 3.53705 1 6.66667 1C9.79628 1 12.3333 3.53705 12.3333 6.66667Z",stroke:"#A4A4A4",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})}),r&&u.jsx("svg",{className:c,width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:o,children:u.jsx("path",{d:"M7.33334 0.666748L0.666672 7.33341M0.666672 0.666748L7.33334 7.33341",stroke:"#818181",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})]})});Go.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"},En=C.forwardRef(({children:e,className:t,open:r,align:n="right",...o},s)=>{const i=D(At.DropdownList,{[At["DropdownList--open"]]:r,[At["DropdownList--closed"]]:!r,[At["DropdownList--left"]]:n==="left"},t);return u.jsx("div",{ref:s,className:i,...o,children:e})});En.displayName="DropdownList";const kr=C.forwardRef(({children:e,className:t,canBeSelected:r=!1,...n},o)=>{const s=D(Tt.AutocompleteItem,{[Tt["AutocompleteItem--canBeSelected"]]:r},t);return u.jsx("div",{ref:o,className:s,...n,children:e})});kr.displayName="AutocompleteItem";const zp=300,Hp={query:"",suggestions:[],loading:!1,error:null},Wp=({suggestionFetcher:e,canAdd:t})=>{const[r,n]=C.useState(Hp);return C.useEffect(()=>{n(a=>({...a,loading:!0}));const s=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}))}},i=setTimeout(()=>{s()},zp);return()=>{clearTimeout(i)}},[r.query]),{...r,setQuery:s=>{n(i=>({...i,query:s}))}}},Ha=C.forwardRef(({text:e,query:t,className:r,...n},o)=>{const s=D(Tt.AutocompleteHighlighter,r),i=(a,l)=>{const c=a.toLowerCase().indexOf(l.toLowerCase());if(c===-1||l.length===0)return a;const d=a.slice(0,c),h=a.slice(c,c+l.length),f=a.slice(c+l.length);return u.jsxs(u.Fragment,{children:[d,u.jsx("span",{className:Tt.AutocompleteHighlighter__match,children:h}),i(f,l)]})};return u.jsx("div",{ref:o,className:s,...n,children:i(e,t)})});Ha.displayName="AutocompleteHighlighter";const Vp=5,Wa=C.forwardRef(({children:e,className:t,canAdd:r,maxSuggestionsShown:n=Vp,searchInputProps:o,keepSelectedOption:s,suggestionFetcher:i,onAccept:a,...l},c)=>{const{query:d,setQuery:h,suggestions:f,loading:m}=Wp({suggestionFetcher:i,canAdd:r}),[w,p]=C.useState(null),v=d.length>0,_=O=>{h(O.target.value)},x=O=>{a==null||a(O),s?(p(O),h(O.value)):h("")},T=()=>{a==null||a(null),p(null),h("")},S=D(Tt.SearchAutocomplete,t),A=f.slice(0,n),k=f.slice(n);return u.jsxs("div",{ref:c,className:S,...l,children:[u.jsx(Go,{...o,value:d,onChange:_,showClearButton:!!w,onClear:T}),e,u.jsxs(En,{className:Tt.DropdownList,open:v&&!w,role:"listbox","aria-label":"Suggestions",children:[m?u.jsx(kr,{children:"Loading..."}):A.map(O=>u.jsxs(kr,{canBeSelected:!0,onClick:x.bind(null,O),children:[u.jsx(Ha,{text:O.label,query:d}),O.description&&u.jsx("span",{className:Tt.AutocompleteItemDescription,children:O.description})]},O.value)),!m&&k.length>0&&u.jsxs(kr,{children:[k.length," more results"]}),v&&f.length===0&&!m&&u.jsx(kr,{children:"No results found"})]})]})});Wa.displayName="SearchAutocomplete";const st=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)}),u.jsx(u.Fragment,{children:t||r})};st.displayName="Show",st.When=({condition:e,children:t})=>u.jsx(u.Fragment,{children:e&&t}),st.Else=({render:e,children:t})=>u.jsx(u.Fragment,{children:e||t});function Va(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ga(...e){return t=>{let r=!1;const n=e.map(o=>{const s=Va(o,t);return!r&&typeof s=="function"&&(r=!0),s});if(r)return()=>{for(let o=0;o<n.length;o++){const s=n[o];typeof s=="function"?s():Va(e[o],null)}}}}function Te(...e){return g.useCallback(Ga(...e),e)}function qo(e){const t=qp(e),r=g.forwardRef((n,o)=>{const{children:s,...i}=n,a=g.Children.toArray(s),l=a.find(Yp);if(l){const c=l.props.children,d=a.map(h=>h===l?g.Children.count(c)>1?g.Children.only(null):g.isValidElement(c)?c.props.children:null:h);return u.jsx(t,{...i,ref:o,children:g.isValidElement(c)?g.cloneElement(c,void 0,d):null})}return u.jsx(t,{...i,ref:o,children:s})});return r.displayName=`${e}.Slot`,r}var Gp=qo("Slot");function qp(e){const t=g.forwardRef((r,n)=>{const{children:o,...s}=r;if(g.isValidElement(o)){const i=Zp(o),a=Kp(s,o.props);return o.type!==g.Fragment&&(a.ref=n?Ga(n,i):i),g.cloneElement(o,a)}return g.Children.count(o)>1?g.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var qa=Symbol("radix.slottable");function Qp(e){const t=({children:r})=>u.jsx(u.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=qa,t}function Yp(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===qa}function Kp(e,t){const r={...t};for(const n in t){const o=e[n],s=t[n];/^on[A-Z]/.test(n)?o&&s?r[n]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...s}:n==="className"&&(r[n]=[o,s].filter(Boolean).join(" "))}return{...e,...r}}function Zp(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 Qa={SkeletonListContainer:"SkeletonListContainer__MKJhE",Skeleton:"Skeleton__Ovpiw"},Sn=C.forwardRef((e,t)=>{const{children:r,className:n,loading:o,height:s=48,width:i,borderRadius:a,style:l,...c}=e;if(!o&&r)return r;const d=C.isValidElement(r)?Gp:"span";return u.jsx(d,{ref:t,"aria-hidden":!0,className:D(Qa.Skeleton,n),style:{...l,width:i,minWidth:i,height:s,borderRadius:a},"data-inline-skeleton":C.isValidElement(r)?void 0:!0,tabIndex:-1,...c,children:r})});Sn.displayName="Skeleton";const Ya=e=>{const{numberOfItems:t,itemsGap:r=2,itemProps:n}=e,o=Array.from({length:t},(s,i)=>i+1);return u.jsx("div",{className:D(Qa.SkeletonListContainer),style:{gap:r},children:o.map(s=>u.jsx(Sn,{loading:!0,...n},s))})};Ya.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 Xp(e,t){const r=g.createContext(t),n=s=>{const{children:i,...a}=s,l=g.useMemo(()=>a,Object.values(a));return u.jsx(r.Provider,{value:l,children:i})};n.displayName=e+"Provider";function o(s){const i=g.useContext(r);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[n,o]}function Qo(e,t=[]){let r=[];function n(s,i){const a=g.createContext(i),l=r.length;r=[...r,i];const c=h=>{var _;const{scope:f,children:m,...w}=h,p=((_=f==null?void 0:f[e])==null?void 0:_[l])||a,v=g.useMemo(()=>w,Object.values(w));return u.jsx(p.Provider,{value:v,children:m})};c.displayName=s+"Provider";function d(h,f){var p;const m=((p=f==null?void 0:f[e])==null?void 0:p[l])||a,w=g.useContext(m);if(w)return w;if(i!==void 0)return i;throw new Error(`\`${h}\` must be used within \`${s}\``)}return[c,d]}const o=()=>{const s=r.map(i=>g.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return g.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[n,Jp(o,...t)]}function Jp(...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(s){const i=n.reduce((a,{useScope:l,scopeName:c})=>{const h=l(s)[`__scope${c}`];return{...a,...h}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}var eh=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],he=eh.reduce((e,t)=>{const r=qo(`Primitive.${t}`),n=g.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(l,{...a,ref:s})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function th(e,t){e&&ri.flushSync(()=>e.dispatchEvent(t))}function qt(e){const t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function rh(e,t=globalThis==null?void 0:globalThis.document){const r=qt(e);g.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 nh="DismissableLayer",Yo="dismissableLayer.update",oh="dismissableLayer.pointerDownOutside",sh="dismissableLayer.focusOutside",Ka,Za=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ko=g.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...l}=e,c=g.useContext(Za),[d,h]=g.useState(null),f=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=g.useState({}),w=Te(t,O=>h(O)),p=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),_=p.indexOf(v),x=d?p.indexOf(d):-1,T=c.layersWithOutsidePointerEventsDisabled.size>0,S=x>=_,A=lh(O=>{const N=O.target,M=[...c.branches].some($=>$.contains(N));!S||M||(o==null||o(O),i==null||i(O),O.defaultPrevented||a==null||a())},f),k=ch(O=>{const N=O.target;[...c.branches].some($=>$.contains(N))||(s==null||s(O),i==null||i(O),O.defaultPrevented||a==null||a())},f);return rh(O=>{x===c.layers.size-1&&(n==null||n(O),!O.defaultPrevented&&a&&(O.preventDefault(),a()))},f),g.useEffect(()=>{if(d)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Ka=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),Xa(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=Ka)}},[d,f,r,c]),g.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),Xa())},[d,c]),g.useEffect(()=>{const O=()=>m({});return document.addEventListener(Yo,O),()=>document.removeEventListener(Yo,O)},[]),u.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)})});Ko.displayName=nh;var ih="DismissableLayerBranch",ah=g.forwardRef((e,t)=>{const r=g.useContext(Za),n=g.useRef(null),o=Te(t,n);return g.useEffect(()=>{const s=n.current;if(s)return r.branches.add(s),()=>{r.branches.delete(s)}},[r.branches]),u.jsx(he.div,{...e,ref:o})});ah.displayName=ih;function lh(e,t=globalThis==null?void 0:globalThis.document){const r=qt(e),n=g.useRef(!1),o=g.useRef(()=>{});return g.useEffect(()=>{const s=a=>{if(a.target&&!n.current){let l=function(){Ja(oh,r,c,{discrete:!0})};const c={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},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function ch(e,t=globalThis==null?void 0:globalThis.document){const r=qt(e),n=g.useRef(!1);return g.useEffect(()=>{const o=s=>{s.target&&!n.current&&Ja(sh,r,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Xa(){const e=new CustomEvent(Yo);document.dispatchEvent(e)}function Ja(e,t,r,{discrete:n}){const o=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?th(o,s):o.dispatchEvent(s)}var it=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},uh=g[" useId ".trim().toString()]||(()=>{}),dh=0;function Tn(e){const[t,r]=g.useState(uh());return it(()=>{r(n=>n??String(dh++))},[e]),t?`radix-${t}`:""}const fh=["top","right","bottom","left"],at=Math.min,we=Math.max,An=Math.round,Pn=Math.floor,Le=e=>({x:e,y:e}),ph={left:"right",right:"left",bottom:"top",top:"bottom"},hh={start:"end",end:"start"};function Zo(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 Xo(e){return e==="x"?"y":"x"}function Jo(e){return e==="y"?"height":"width"}const mh=new Set(["top","bottom"]);function Ie(e){return mh.has(qe(e))?"y":"x"}function es(e){return Xo(Ie(e))}function gh(e,t,r){r===void 0&&(r=!1);const n=Qt(e),o=es(e),s=Jo(o);let i=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=On(i)),[i,On(i)]}function vh(e){const t=On(e);return[ts(e),t,ts(t)]}function ts(e){return e.replace(/start|end/g,t=>hh[t])}const el=["left","right"],tl=["right","left"],yh=["top","bottom"],bh=["bottom","top"];function wh(e,t,r){switch(e){case"top":case"bottom":return r?t?tl:el:t?el:tl;case"left":case"right":return t?yh:bh;default:return[]}}function _h(e,t,r,n){const o=Qt(e);let s=wh(qe(e),r==="start",n);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(ts)))),s}function On(e){return e.replace(/left|right|bottom|top/g,t=>ph[t])}function xh(e){return{top:0,right:0,bottom:0,left:0,...e}}function rl(e){return typeof e!="number"?xh(e):{top:e,right:e,bottom:e,left:e}}function kn(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 nl(e,t,r){let{reference:n,floating:o}=e;const s=Ie(t),i=es(t),a=Jo(i),l=qe(t),c=s==="y",d=n.x+n.width/2-o.width/2,h=n.y+n.height/2-o.height/2,f=n[a]/2-o[a]/2;let m;switch(l){case"top":m={x:d,y:n.y-o.height};break;case"bottom":m={x:d,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y:h};break;case"left":m={x:n.x-o.width,y:h};break;default:m={x:n.x,y:n.y}}switch(Qt(t)){case"start":m[i]-=f*(r&&c?-1:1);break;case"end":m[i]+=f*(r&&c?-1:1);break}return m}const Ch=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:s=[],platform:i}=r,a=s.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:h}=nl(c,n,l),f=n,m={},w=0;for(let p=0;p<a.length;p++){const{name:v,fn:_}=a[p],{x,y:T,data:S,reset:A}=await _({x:d,y:h,initialPlacement:n,placement:f,strategy:o,middlewareData:m,rects:c,platform:i,elements:{reference:e,floating:t}});d=x??d,h=T??h,m={...m,[v]:{...m[v],...S}},A&&w<=50&&(w++,typeof A=="object"&&(A.placement&&(f=A.placement),A.rects&&(c=A.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):A.rects),{x:d,y:h}=nl(c,f,l)),p=-1)}return{x:d,y:h,placement:f,strategy:o,middlewareData:m}};async function Rr(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:s,rects:i,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:f=!1,padding:m=0}=Ge(t,e),w=rl(m),v=a[f?h==="floating"?"reference":"floating":h],_=kn(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(v)))==null||r?v:v.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),x=h==="floating"?{x:n,y:o,width:i.floating.width,height:i.floating.height}:i.reference,T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),S=await(s.isElement==null?void 0:s.isElement(T))?await(s.getScale==null?void 0:s.getScale(T))||{x:1,y:1}:{x:1,y:1},A=kn(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.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 Eh=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:c,padding:d=0}=Ge(e,t)||{};if(c==null)return{};const h=rl(d),f={x:r,y:n},m=es(o),w=Jo(m),p=await i.getDimensions(c),v=m==="y",_=v?"top":"left",x=v?"bottom":"right",T=v?"clientHeight":"clientWidth",S=s.reference[w]+s.reference[m]-f[m]-s.floating[w],A=f[m]-s.reference[m],k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let O=k?k[T]:0;(!O||!await(i.isElement==null?void 0:i.isElement(k)))&&(O=a.floating[T]||s.floating[w]);const N=S/2-A/2,M=O/2-p[w]/2-1,$=at(h[_],M),Y=at(h[x],M),K=$,W=O-p[w]-Y,q=O/2-p[w]/2+N,se=Zo(K,q,W),J=!l.arrow&&Qt(o)!=null&&q!==se&&s.reference[w]/2-(q<K?$:Y)-p[w]/2<0,ee=J?q<K?q-K:q-W:0;return{[m]:f[m]+ee,data:{[m]:se,centerOffset:q-se-ee,...J&&{alignmentOffset:ee}},reset:J}}}),Sh=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:f,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:p=!0,...v}=Ge(e,t);if((r=s.arrow)!=null&&r.alignmentOffset)return{};const _=qe(o),x=Ie(a),T=qe(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(c.floating)),A=f||(T||!p?[On(a)]:vh(a)),k=w!=="none";!f&&k&&A.push(..._h(a,p,w,S));const O=[a,...A],N=await Rr(t,v),M=[];let $=((n=s.flip)==null?void 0:n.overflows)||[];if(d&&M.push(N[_]),h){const q=gh(o,i,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=s.flip)==null?void 0:Y.index)||0)+1,se=O[q];if(se&&(!(h==="alignment"?x!==Ie(se):!1)||$.every(B=>Ie(B.placement)===x?B.overflows[0]>0:!0)))return{data:{index:q,overflows:$},reset:{placement:se}};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(m){case"bestFit":{var W;const ee=(W=$.filter(B=>{if(k){const ie=Ie(B.placement);return ie===x||ie==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(ie=>ie>0).reduce((ie,xe)=>ie+xe,0)]).sort((B,ie)=>B[1]-ie[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 ol(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function sl(e){return fh.some(t=>e[t]>=0)}const Th=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 s=await Rr(t,{...o,elementContext:"reference"}),i=ol(s,r.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:sl(i)}}}case"escaped":{const s=await Rr(t,{...o,altBoundary:!0}),i=ol(s,r.floating);return{data:{escapedOffsets:i,escaped:sl(i)}}}default:return{}}}}},il=new Set(["left","top"]);async function Ah(e,t){const{placement:r,platform:n,elements:o}=e,s=await(n.isRTL==null?void 0:n.isRTL(o.floating)),i=qe(r),a=Qt(r),l=Ie(r)==="y",c=il.has(i)?-1:1,d=s&&l?-1:1,h=Ge(t,e);let{mainAxis:f,crossAxis:m,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"&&(m=a==="end"?w*-1:w),l?{x:m*d,y:f*c}:{x:f*c,y:m*d}}const Ph=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:s,placement:i,middlewareData:a}=t,l=await Ah(t,e);return i===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:i}}}}},Oh=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:v=>{let{x:_,y:x}=v;return{x:_,y:x}}},...l}=Ge(e,t),c={x:r,y:n},d=await Rr(t,l),h=Ie(qe(o)),f=Xo(h);let m=c[f],w=c[h];if(s){const v=f==="y"?"top":"left",_=f==="y"?"bottom":"right",x=m+d[v],T=m-d[_];m=Zo(x,m,T)}if(i){const v=h==="y"?"top":"left",_=h==="y"?"bottom":"right",x=w+d[v],T=w-d[_];w=Zo(x,w,T)}const p=a.fn({...t,[f]:m,[h]:w});return{...p,data:{x:p.x-r,y:p.y-n,enabled:{[f]:s,[h]:i}}}}}},kh=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=Ge(e,t),d={x:r,y:n},h=Ie(o),f=Xo(h);let m=d[f],w=d[h];const p=Ge(a,t),v=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){const T=f==="y"?"height":"width",S=s.reference[f]-s.floating[T]+v.mainAxis,A=s.reference[f]+s.reference[T]-v.mainAxis;m<S?m=S:m>A&&(m=A)}if(c){var _,x;const T=f==="y"?"width":"height",S=il.has(qe(o)),A=s.reference[h]-s.floating[T]+(S&&((_=i.offset)==null?void 0:_[h])||0)+(S?0:v.crossAxis),k=s.reference[h]+s.reference[T]+(S?0:((x=i.offset)==null?void 0:x[h])||0)-(S?v.crossAxis:0);w<A?w=A:w>k&&(w=k)}return{[f]:m,[h]:w}}}},Rh=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:l=()=>{},...c}=Ge(e,t),d=await Rr(t,c),h=qe(o),f=Qt(o),m=Ie(o)==="y",{width:w,height:p}=s.floating;let v,_;h==="top"||h==="bottom"?(v=h,_=f===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(_=h,v=f==="end"?"top":"bottom");const x=p-d.top-d.bottom,T=w-d.left-d.right,S=at(p-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&&!f){const $=we(d.left,0),Y=we(d.right,0),K=we(d.top,0),W=we(d.bottom,0);m?N=w-2*($!==0||Y!==0?$+Y:we(d.left,d.right)):O=p-2*(K!==0||W!==0?K+W:we(d.top,d.bottom))}await l({...t,availableWidth:N,availableHeight:O});const M=await i.getDimensions(a.floating);return w!==M.width||p!==M.height?{reset:{rects:!0}}:{}}}};function Rn(){return typeof window<"u"}function Yt(e){return al(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=(al(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function al(e){return Rn()?e instanceof Node||e instanceof _e(e).Node:!1}function Ae(e){return Rn()?e instanceof Element||e instanceof _e(e).Element:!1}function Me(e){return Rn()?e instanceof HTMLElement||e instanceof _e(e).HTMLElement:!1}function ll(e){return!Rn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof _e(e).ShadowRoot}const jh=new Set(["inline","contents"]);function jr(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Pe(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!jh.has(o)}const Dh=new Set(["table","td","th"]);function Lh(e){return Dh.has(Yt(e))}const Ih=[":popover-open",":modal"];function jn(e){return Ih.some(t=>{try{return e.matches(t)}catch{return!1}})}const Nh=["transform","translate","scale","rotate","perspective"],Mh=["transform","translate","scale","rotate","perspective","filter"],$h=["paint","layout","strict","content"];function rs(e){const t=ns(),r=Ae(e)?Pe(e):e;return Nh.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)||Mh.some(n=>(r.willChange||"").includes(n))||$h.some(n=>(r.contain||"").includes(n))}function Fh(e){let t=lt(e);for(;Me(t)&&!Kt(t);){if(rs(t))return t;if(jn(t))return null;t=lt(t)}return null}function ns(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Bh=new Set(["html","body","#document"]);function Kt(e){return Bh.has(Yt(e))}function Pe(e){return _e(e).getComputedStyle(e)}function Dn(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||ll(e)&&e.host||Ne(e);return ll(t)?t.host:t}function cl(e){const t=lt(e);return Kt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Me(t)&&jr(t)?t:cl(t)}function Dr(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=cl(e),s=o===((n=e.ownerDocument)==null?void 0:n.body),i=_e(o);if(s){const a=os(i);return t.concat(i,i.visualViewport||[],jr(o)?o:[],a&&r?Dr(a):[])}return t.concat(o,Dr(o,[],r))}function os(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ul(e){const t=Pe(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Me(e),s=o?e.offsetWidth:r,i=o?e.offsetHeight:n,a=An(r)!==s||An(n)!==i;return a&&(r=s,n=i),{width:r,height:n,$:a}}function ss(e){return Ae(e)?e:e.contextElement}function Zt(e){const t=ss(e);if(!Me(t))return Le(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:s}=ul(t);let i=(s?An(r.width):r.width)/n,a=(s?An(r.height):r.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const Uh=Le(0);function dl(e){const t=_e(e);return!ns()||!t.visualViewport?Uh:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function zh(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(),s=ss(e);let i=Le(1);t&&(n?Ae(n)&&(i=Zt(n)):i=Zt(e));const a=zh(s,r,n)?dl(s):Le(0);let l=(o.left+a.x)/i.x,c=(o.top+a.y)/i.y,d=o.width/i.x,h=o.height/i.y;if(s){const f=_e(s),m=n&&Ae(n)?_e(n):n;let w=f,p=os(w);for(;p&&n&&m!==w;){const v=Zt(p),_=p.getBoundingClientRect(),x=Pe(p),T=_.left+(p.clientLeft+parseFloat(x.paddingLeft))*v.x,S=_.top+(p.clientTop+parseFloat(x.paddingTop))*v.y;l*=v.x,c*=v.y,d*=v.x,h*=v.y,l+=T,c+=S,w=_e(p),p=os(w)}}return kn({width:d,height:h,x:l,y:c})}function is(e,t){const r=Dn(e).scrollLeft;return t?t.left+r:Pt(Ne(e)).left+r}function fl(e,t,r){r===void 0&&(r=!1);const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-(r?0:is(e,n)),s=n.top+t.scrollTop;return{x:o,y:s}}function Hh(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const s=o==="fixed",i=Ne(n),a=t?jn(t.floating):!1;if(n===i||a&&s)return r;let l={scrollLeft:0,scrollTop:0},c=Le(1);const d=Le(0),h=Me(n);if((h||!h&&!s)&&((Yt(n)!=="body"||jr(i))&&(l=Dn(n)),Me(n))){const m=Pt(n);c=Zt(n),d.x=m.x+n.clientLeft,d.y=m.y+n.clientTop}const f=i&&!h&&!s?fl(i,l,!0):Le(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+d.x+f.x,y:r.y*c.y-l.scrollTop*c.y+d.y+f.y}}function Wh(e){return Array.from(e.getClientRects())}function Vh(e){const t=Ne(e),r=Dn(e),n=e.ownerDocument.body,o=we(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=we(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+is(e);const a=-r.scrollTop;return Pe(n).direction==="rtl"&&(i+=we(t.clientWidth,n.clientWidth)-o),{width:o,height:s,x:i,y:a}}function Gh(e,t){const r=_e(e),n=Ne(e),o=r.visualViewport;let s=n.clientWidth,i=n.clientHeight,a=0,l=0;if(o){s=o.width,i=o.height;const c=ns();(!c||c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:i,x:a,y:l}}const qh=new Set(["absolute","fixed"]);function Qh(e,t){const r=Pt(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,s=Me(e)?Zt(e):Le(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,l=o*s.x,c=n*s.y;return{width:i,height:a,x:l,y:c}}function pl(e,t,r){let n;if(t==="viewport")n=Gh(e,r);else if(t==="document")n=Vh(Ne(e));else if(Ae(t))n=Qh(t,r);else{const o=dl(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return kn(n)}function hl(e,t){const r=lt(e);return r===t||!Ae(r)||Kt(r)?!1:Pe(r).position==="fixed"||hl(r,t)}function Yh(e,t){const r=t.get(e);if(r)return r;let n=Dr(e,[],!1).filter(a=>Ae(a)&&Yt(a)!=="body"),o=null;const s=Pe(e).position==="fixed";let i=s?lt(e):e;for(;Ae(i)&&!Kt(i);){const a=Pe(i),l=rs(i);!l&&a.position==="fixed"&&(o=null),(s?!l&&!o:!l&&a.position==="static"&&!!o&&qh.has(o.position)||jr(i)&&!l&&hl(e,i))?n=n.filter(d=>d!==i):o=a,i=lt(i)}return t.set(e,n),n}function Kh(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i=[...r==="clippingAncestors"?jn(t)?[]:Yh(t,this._c):[].concat(r),n],a=i[0],l=i.reduce((c,d)=>{const h=pl(t,d,o);return c.top=we(h.top,c.top),c.right=at(h.right,c.right),c.bottom=at(h.bottom,c.bottom),c.left=we(h.left,c.left),c},pl(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Zh(e){const{width:t,height:r}=ul(e);return{width:t,height:r}}function Xh(e,t,r){const n=Me(t),o=Ne(t),s=r==="fixed",i=Pt(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=Le(0);function c(){l.x=is(o)}if(n||!n&&!s)if((Yt(t)!=="body"||jr(o))&&(a=Dn(t)),n){const m=Pt(t,!0,s,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else o&&c();s&&!n&&o&&c();const d=o&&!n&&!s?fl(o,a):Le(0),h=i.left+a.scrollLeft-l.x-d.x,f=i.top+a.scrollTop-l.y-d.y;return{x:h,y:f,width:i.width,height:i.height}}function as(e){return Pe(e).position==="static"}function ml(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 gl(e,t){const r=_e(e);if(jn(e))return r;if(!Me(e)){let o=lt(e);for(;o&&!Kt(o);){if(Ae(o)&&!as(o))return o;o=lt(o)}return r}let n=ml(e,t);for(;n&&Lh(n)&&as(n);)n=ml(n,t);return n&&Kt(n)&&as(n)&&!rs(n)?r:n||Fh(e)||r}const Jh=async function(e){const t=this.getOffsetParent||gl,r=this.getDimensions,n=await r(e.floating);return{reference:Xh(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function e1(e){return Pe(e).direction==="rtl"}const t1={convertOffsetParentRelativeRectToViewportRelativeRect:Hh,getDocumentElement:Ne,getClippingRect:Kh,getOffsetParent:gl,getElementRects:Jh,getClientRects:Wh,getDimensions:Zh,getScale:Zt,isElement:Ae,isRTL:e1};function vl(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function r1(e,t){let r=null,n;const o=Ne(e);function s(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const c=e.getBoundingClientRect(),{left:d,top:h,width:f,height:m}=c;if(a||t(),!f||!m)return;const w=Pn(h),p=Pn(o.clientWidth-(d+f)),v=Pn(o.clientHeight-(h+m)),_=Pn(d),T={rootMargin:-w+"px "+-p+"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 i();O?i(!1,O):n=setTimeout(()=>{i(!1,1e-7)},1e3)}O===1&&!vl(c,e.getBoundingClientRect())&&i(),S=!1}try{r=new IntersectionObserver(A,{...T,root:o.ownerDocument})}catch{r=new IntersectionObserver(A,T)}r.observe(e)}return i(!0),s}function n1(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=ss(e),d=o||s?[...c?Dr(c):[],...Dr(t)]:[];d.forEach(_=>{o&&_.addEventListener("scroll",r,{passive:!0}),s&&_.addEventListener("resize",r)});const h=c&&a?r1(c,r):null;let f=-1,m=null;i&&(m=new ResizeObserver(_=>{let[x]=_;x&&x.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var T;(T=m)==null||T.observe(t)})),r()}),c&&!l&&m.observe(c),m.observe(t));let w,p=l?Pt(e):null;l&&v();function v(){const _=Pt(e);p&&!vl(p,_)&&r(),p=_,w=requestAnimationFrame(v)}return r(),()=>{var _;d.forEach(x=>{o&&x.removeEventListener("scroll",r),s&&x.removeEventListener("resize",r)}),h==null||h(),(_=m)==null||_.disconnect(),m=null,l&&cancelAnimationFrame(w)}}const o1=Ph,s1=Oh,i1=Sh,a1=Rh,l1=Th,yl=Eh,c1=kh,u1=(e,t,r)=>{const n=new Map,o={platform:t1,...r},s={...o.platform,_c:n};return Ch(e,t,{...o,platform:s})};var d1=typeof document<"u",f1=function(){},Ln=d1?C.useLayoutEffect:f1;function In(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(!In(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 s=o[n];if(!(s==="_owner"&&e.$$typeof)&&!In(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function bl(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function wl(e,t){const r=bl(e);return Math.round(t*r)/r}function ls(e){const t=g.useRef(e);return Ln(()=>{t.current=e}),t}function p1(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[d,h]=g.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[f,m]=g.useState(n);In(f,n)||m(n);const[w,p]=g.useState(null),[v,_]=g.useState(null),x=g.useCallback(B=>{B!==k.current&&(k.current=B,p(B))},[]),T=g.useCallback(B=>{B!==O.current&&(O.current=B,_(B))},[]),S=s||w,A=i||v,k=g.useRef(null),O=g.useRef(null),N=g.useRef(d),M=l!=null,$=ls(l),Y=ls(o),K=ls(c),W=g.useCallback(()=>{if(!k.current||!O.current)return;const B={placement:t,strategy:r,middleware:f};Y.current&&(B.platform=Y.current),u1(k.current,O.current,B).then(ie=>{const xe={...ie,isPositioned:K.current!==!1};q.current&&!In(N.current,xe)&&(N.current=xe,ri.flushSync(()=>{h(xe)}))})},[f,t,r,Y,K]);Ln(()=>{c===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,h(B=>({...B,isPositioned:!1})))},[c]);const q=g.useRef(!1);Ln(()=>(q.current=!0,()=>{q.current=!1}),[]),Ln(()=>{if(S&&(k.current=S),A&&(O.current=A),S&&A){if($.current)return $.current(S,A,W);W()}},[S,A,W,$,M]);const se=g.useMemo(()=>({reference:k,floating:O,setReference:x,setFloating:T}),[x,T]),J=g.useMemo(()=>({reference:S,floating:A}),[S,A]),ee=g.useMemo(()=>{const B={position:r,left:0,top:0};if(!J.floating)return B;const ie=wl(J.floating,d.x),xe=wl(J.floating,d.y);return a?{...B,transform:"translate("+ie+"px, "+xe+"px)",...bl(J.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:ie,top:xe}},[r,a,J.floating,d.x,d.y]);return g.useMemo(()=>({...d,update:W,refs:se,elements:J,floatingStyles:ee}),[d,W,se,J,ee])}const h1=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?yl({element:n.current,padding:o}).fn(r):{}:n?yl({element:n,padding:o}).fn(r):{}}}},m1=(e,t)=>({...o1(e),options:[e,t]}),g1=(e,t)=>({...s1(e),options:[e,t]}),v1=(e,t)=>({...c1(e),options:[e,t]}),y1=(e,t)=>({...i1(e),options:[e,t]}),b1=(e,t)=>({...a1(e),options:[e,t]}),w1=(e,t)=>({...l1(e),options:[e,t]}),_1=(e,t)=>({...h1(e),options:[e,t]});var x1="Arrow",_l=g.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...s}=e;return u.jsx(he.svg,{...s,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});_l.displayName=x1;var C1=_l;function E1(e){const[t,r]=g.useState(void 0);return it(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const l=s.borderBoxSize,c=Array.isArray(l)?l[0]:l;i=c.inlineSize,a=c.blockSize}else i=e.offsetWidth,a=e.offsetHeight;r({width:i,height:a})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var cs="Popper",[xl,Cl]=Qo(cs),[S1,El]=xl(cs),Sl=e=>{const{__scopePopper:t,children:r}=e,[n,o]=g.useState(null);return u.jsx(S1,{scope:t,anchor:n,onAnchorChange:o,children:r})};Sl.displayName=cs;var Tl="PopperAnchor",Al=g.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,s=El(Tl,r),i=g.useRef(null),a=Te(t,i);return g.useEffect(()=>{s.onAnchorChange((n==null?void 0:n.current)||i.current)}),n?null:u.jsx(he.div,{...o,ref:a})});Al.displayName=Tl;var us="PopperContent",[T1,A1]=xl(us),Pl=g.forwardRef((e,t)=>{var vr,Bt,yr,Ut,ro,Vr;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:h="partial",hideWhenDetached:f=!1,updatePositionStrategy:m="optimized",onPlaced:w,...p}=e,v=El(us,r),[_,x]=g.useState(null),T=Te(t,zt=>x(zt)),[S,A]=g.useState(null),k=E1(S),O=(k==null?void 0:k.width)??0,N=(k==null?void 0:k.height)??0,M=n+(s!=="center"?"-"+s:""),$=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},Y=Array.isArray(c)?c:[c],K=Y.length>0,W={padding:$,boundary:Y.filter(O1),altBoundary:K},{refs:q,floatingStyles:se,placement:J,isPositioned:ee,middlewareData:B}=p1({strategy:"fixed",placement:M,whileElementsMounted:(...zt)=>n1(...zt,{animationFrame:m==="always"}),elements:{reference:v.anchor},middleware:[m1({mainAxis:o+N,alignmentAxis:i}),l&&g1({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?v1():void 0,...W}),l&&y1({...W}),b1({...W,apply:({elements:zt,rects:no,availableWidth:br,availableHeight:Ht})=>{const{width:oo,height:so}=no.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",`${oo}px`),Xe.setProperty("--radix-popper-anchor-height",`${so}px`)}}),S&&_1({element:S,padding:a}),k1({arrowWidth:O,arrowHeight:N}),f&&w1({strategy:"referenceHidden",...W})]}),[ie,xe]=Rl(J),Ft=qt(w);it(()=>{ee&&(Ft==null||Ft())},[ee,Ft]);const eo=(vr=B.arrow)==null?void 0:vr.x,to=(Bt=B.arrow)==null?void 0:Bt.y,Fs=((yr=B.arrow)==null?void 0:yr.centerOffset)!==0,[Bs,Wr]=g.useState();return it(()=>{_&&Wr(window.getComputedStyle(_).zIndex)},[_]),u.jsx("div",{ref:q.setFloating,"data-radix-popper-content-wrapper":"",style:{...se,transform:ee?se.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Bs,"--radix-popper-transform-origin":[(Ut=B.transformOrigin)==null?void 0:Ut.x,(ro=B.transformOrigin)==null?void 0:ro.y].join(" "),...((Vr=B.hide)==null?void 0:Vr.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(T1,{scope:r,placedSide:ie,onArrowChange:A,arrowX:eo,arrowY:to,shouldHideArrow:Fs,children:u.jsx(he.div,{"data-side":ie,"data-align":xe,...p,ref:T,style:{...p.style,animation:ee?void 0:"none"}})})})});Pl.displayName=us;var Ol="PopperArrow",P1={top:"bottom",right:"left",bottom:"top",left:"right"},kl=g.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,s=A1(Ol,n),i=P1[s.placedSide];return u.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:u.jsx(C1,{...o,ref:r,style:{...o.style,display:"block"}})})});kl.displayName=Ol;function O1(e){return e!==null}var k1=e=>({name:"transformOrigin",options:e,fn(t){var v,_,x;const{placement:r,rects:n,middlewareData:o}=t,i=((v=o.arrow)==null?void 0:v.centerOffset)!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[c,d]=Rl(r),h={start:"0%",center:"50%",end:"100%"}[d],f=(((_=o.arrow)==null?void 0:_.x)??0)+a/2,m=(((x=o.arrow)==null?void 0:x.y)??0)+l/2;let w="",p="";return c==="bottom"?(w=i?h:`${f}px`,p=`${-l}px`):c==="top"?(w=i?h:`${f}px`,p=`${n.floating.height+l}px`):c==="right"?(w=`${-l}px`,p=i?h:`${m}px`):c==="left"&&(w=`${n.floating.width+l}px`,p=i?h:`${m}px`),{data:{x:w,y:p}}}});function Rl(e){const[t,r="center"]=e.split("-");return[t,r]}var R1=Sl,j1=Al,D1=Pl,L1=kl,I1="Portal",ds=g.forwardRef((e,t)=>{var a;const{container:r,...n}=e,[o,s]=g.useState(!1);it(()=>s(!0),[]);const i=r||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?_t.createPortal(u.jsx(he.div,{...n,ref:t}),i):null});ds.displayName=I1;function N1(e,t){return g.useReducer((r,n)=>t[r][n]??r,e)}var Xt=e=>{const{present:t,children:r}=e,n=M1(t),o=typeof r=="function"?r({present:n.isPresent}):g.Children.only(r),s=Te(n.ref,$1(o));return typeof r=="function"||n.isPresent?g.cloneElement(o,{ref:s}):null};Xt.displayName="Presence";function M1(e){const[t,r]=g.useState(),n=g.useRef(null),o=g.useRef(e),s=g.useRef("none"),i=e?"mounted":"unmounted",[a,l]=N1(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const c=Nn(n.current);s.current=a==="mounted"?c:"none"},[a]),it(()=>{const c=n.current,d=o.current;if(d!==e){const f=s.current,m=Nn(c);e?l("MOUNT"):m==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(d&&f!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),it(()=>{if(t){let c;const d=t.ownerDocument.defaultView??window,h=m=>{const p=Nn(n.current).includes(m.animationName);if(m.target===t&&p&&(l("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},f=m=>{m.target===t&&(s.current=Nn(n.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:g.useCallback(c=>{n.current=c?getComputedStyle(c):null,r(c)},[])}}function Nn(e){return(e==null?void 0:e.animationName)||"none"}function $1(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 F1=g[" useInsertionEffect ".trim().toString()]||it;function jl({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,s,i]=B1({defaultProp:t,onChange:r}),a=e!==void 0,l=a?e:o;{const d=g.useRef(e!==void 0);g.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 c=g.useCallback(d=>{var h;if(a){const f=U1(d)?d(e):d;f!==e&&((h=i.current)==null||h.call(i,f))}else s(d)},[a,e,s,i]);return[l,c]}function B1({defaultProp:e,onChange:t}){const[r,n]=g.useState(e),o=g.useRef(r),s=g.useRef(t);return F1(()=>{s.current=t},[t]),g.useEffect(()=>{var i;o.current!==r&&((i=s.current)==null||i.call(s,r),o.current=r)},[r,o]),[r,n,s]}function U1(e){return typeof e=="function"}var z1=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"}),H1="VisuallyHidden",Dl=g.forwardRef((e,t)=>u.jsx(he.span,{...e,ref:t,style:{...z1,...e.style}}));Dl.displayName=H1;var W1=Dl,[Mn,hy]=Qo("Tooltip",[Cl]),$n=Cl(),Ll="TooltipProvider",V1=700,fs="tooltip.open",[G1,ps]=Mn(Ll),Il=e=>{const{__scopeTooltip:t,delayDuration:r=V1,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:s}=e,i=g.useRef(!0),a=g.useRef(!1),l=g.useRef(0);return g.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),u.jsx(G1,{scope:t,isOpenDelayedRef:i,delayDuration:r,onOpen:g.useCallback(()=>{window.clearTimeout(l.current),i.current=!1},[]),onClose:g.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.current=!0,n)},[n]),isPointerInTransitRef:a,onPointerInTransitChange:g.useCallback(c=>{a.current=c},[]),disableHoverableContent:o,children:s})};Il.displayName=Ll;var Lr="Tooltip",[q1,Ir]=Mn(Lr),Nl=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o,onOpenChange:s,disableHoverableContent:i,delayDuration:a}=e,l=ps(Lr,e.__scopeTooltip),c=$n(t),[d,h]=g.useState(null),f=Tn(),m=g.useRef(0),w=i??l.disableHoverableContent,p=a??l.delayDuration,v=g.useRef(!1),[_,x]=jl({prop:n,defaultProp:o??!1,onChange:O=>{O?(l.onOpen(),document.dispatchEvent(new CustomEvent(fs))):l.onClose(),s==null||s(O)},caller:Lr}),T=g.useMemo(()=>_?v.current?"delayed-open":"instant-open":"closed",[_]),S=g.useCallback(()=>{window.clearTimeout(m.current),m.current=0,v.current=!1,x(!0)},[x]),A=g.useCallback(()=>{window.clearTimeout(m.current),m.current=0,x(!1)},[x]),k=g.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{v.current=!0,x(!0),m.current=0},p)},[p,x]);return g.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),u.jsx(R1,{...c,children:u.jsx(q1,{scope:t,contentId:f,open:_,stateAttribute:T,trigger:d,onTriggerChange:h,onTriggerEnter:g.useCallback(()=>{l.isOpenDelayedRef.current?k():S()},[l.isOpenDelayedRef,k,S]),onTriggerLeave:g.useCallback(()=>{w?A():(window.clearTimeout(m.current),m.current=0)},[A,w]),onOpen:S,onClose:A,disableHoverableContent:w,children:r})})};Nl.displayName=Lr;var hs="TooltipTrigger",Ml=g.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Ir(hs,r),s=ps(hs,r),i=$n(r),a=g.useRef(null),l=Te(t,a,o.onTriggerChange),c=g.useRef(!1),d=g.useRef(!1),h=g.useCallback(()=>c.current=!1,[]);return g.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),u.jsx(j1,{asChild:!0,...i,children:u.jsx(he.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:l,onPointerMove:pe(e.onPointerMove,f=>{f.pointerType!=="touch"&&!d.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:pe(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:pe(e.onPointerDown,()=>{o.open&&o.onClose(),c.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:pe(e.onFocus,()=>{c.current||o.onOpen()}),onBlur:pe(e.onBlur,o.onClose),onClick:pe(e.onClick,o.onClose)})})});Ml.displayName=hs;var ms="TooltipPortal",[Q1,Y1]=Mn(ms,{forceMount:void 0}),$l=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,s=Ir(ms,t);return u.jsx(Q1,{scope:t,forceMount:r,children:u.jsx(Xt,{present:r||s.open,children:u.jsx(ds,{asChild:!0,container:o,children:n})})})};$l.displayName=ms;var Jt="TooltipContent",Fl=g.forwardRef((e,t)=>{const r=Y1(Jt,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...s}=e,i=Ir(Jt,e.__scopeTooltip);return u.jsx(Xt,{present:n||i.open,children:i.disableHoverableContent?u.jsx(Bl,{side:o,...s,ref:t}):u.jsx(K1,{side:o,...s,ref:t})})}),K1=g.forwardRef((e,t)=>{const r=Ir(Jt,e.__scopeTooltip),n=ps(Jt,e.__scopeTooltip),o=g.useRef(null),s=Te(t,o),[i,a]=g.useState(null),{trigger:l,onClose:c}=r,d=o.current,{onPointerInTransitChange:h}=n,f=g.useCallback(()=>{a(null),h(!1)},[h]),m=g.useCallback((w,p)=>{const v=w.currentTarget,_={x:w.clientX,y:w.clientY},x=em(_,v.getBoundingClientRect()),T=tm(_,x),S=rm(p.getBoundingClientRect()),A=om([...T,...S]);a(A),h(!0)},[h]);return g.useEffect(()=>()=>f(),[f]),g.useEffect(()=>{if(l&&d){const w=v=>m(v,d),p=v=>m(v,l);return l.addEventListener("pointerleave",w),d.addEventListener("pointerleave",p),()=>{l.removeEventListener("pointerleave",w),d.removeEventListener("pointerleave",p)}}},[l,d,m,f]),g.useEffect(()=>{if(i){const w=p=>{const v=p.target,_={x:p.clientX,y:p.clientY},x=(l==null?void 0:l.contains(v))||(d==null?void 0:d.contains(v)),T=!nm(_,i);x?f():T&&(f(),c())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[l,d,i,c,f]),u.jsx(Bl,{...e,ref:s})}),[Z1,X1]=Mn(Lr,{isInside:!1}),J1=Qp("TooltipContent"),Bl=g.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...a}=e,l=Ir(Jt,r),c=$n(r),{onClose:d}=l;return g.useEffect(()=>(document.addEventListener(fs,d),()=>document.removeEventListener(fs,d)),[d]),g.useEffect(()=>{if(l.trigger){const h=f=>{const m=f.target;m!=null&&m.contains(l.trigger)&&d()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[l.trigger,d]),u.jsx(Ko,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:h=>h.preventDefault(),onDismiss:d,children:u.jsxs(D1,{"data-state":l.stateAttribute,...c,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(J1,{children:n}),u.jsx(Z1,{scope:r,isInside:!0,children:u.jsx(W1,{id:l.contentId,role:"tooltip",children:o||n})})]})})});Fl.displayName=Jt;var Ul="TooltipArrow",zl=g.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=$n(r);return X1(Ul,r).isInside?null:u.jsx(L1,{...o,...n,ref:t})});zl.displayName=Ul;function em(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(r,n,o,s)){case s:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function tm(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 rm(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 nm(e,t){const{x:r,y:n}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s],l=t[i],c=a.x,d=a.y,h=l.x,f=l.y;d>n!=f>n&&r<(h-c)*(n-d)/(f-d)+c&&(o=!o)}return o}function om(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),sm(t)}function sm(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 s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const s=r[r.length-1],i=r[r.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.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 im=Il,am=Nl,lm=Ml,cm=$l,um=Fl,dm=zl;const Hl={tooltip:"tooltip__nUuSh",tooltipArrow:"tooltipArrow__W2w-f"},Wl=({children:e,open:t,displayName:r,tooltipContent:n,className:o,disabled:s,delayDuration:i=300,side:a="right",sideOffset:l=0})=>{const[c,d]=C.useState(!1),h=t!==void 0,m=s?!1:h?t:c,w=p=>{s||h||d(p)};return u.jsx(im,{delayDuration:i,children:u.jsxs(am,{open:m,onOpenChange:w,children:[u.jsx(lm,{asChild:!0,children:e}),u.jsx(cm,{children:u.jsxs(um,{className:D(Hl.tooltip,o),side:a,sideOffset:l,children:[r,n,u.jsx(dm,{className:Hl.tooltipArrow})]})})]})})};Wl.displayName="Tooltip";const Vl={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"},Gl=({className:e,color:t="white",size:r=80,thickness:n})=>{const o=D(Vl.spinner,Vl[`spinner-${t}`],e),s=n??Math.max(r/12,2);return u.jsx("span",{style:{width:r,height:r,borderWidth:s},className:o})};Gl.displayName="Spinner";const Fn={switch:"switch__0b2av",disabled:"disabled__KpauE",checked:"checked__2-JV-",thumb:"thumb__fEuKD"},ql=C.forwardRef(({checked:e,defaultChecked:t=!1,onCheckedChange:r,disabled:n=!1,id:o,className:s,name:i,"aria-label":a,"aria-labelledby":l,"aria-describedby":c,...d},h)=>{const[f,m]=C.useState(t),w=e!==void 0,p=w?!!e:f,v=()=>{if(n)return;const x=!p;w||m(x),r==null||r(x)},_=x=>{(x.key===" "||x.key==="Enter")&&(x.preventDefault(),v())};return u.jsx("button",{ref:h,type:"button",role:"switch","aria-checked":p,"aria-label":a,"aria-labelledby":l,"aria-describedby":c,disabled:n,id:o,name:i,className:D(Fn.switch,{[Fn.checked]:p,[Fn.disabled]:n}),onClick:v,onKeyDown:_,...d,children:u.jsx("span",{className:Fn.thumb,"aria-hidden":"true"})})});ql.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"},Ql=C.createContext(null),gs=()=>{const e=C.useContext(Ql);if(!e)throw new Error("Tabs components must be used within a Tabs provider");return e},fm=({defaultValue:e,value:t,onValueChange:r,orientation:n="horizontal",className:o="",children:s})=>{const[i,a]=C.useState(e||""),l=t!==void 0,c=l?t:i,d=h=>{l||a(h),r==null||r(h)};return u.jsx(Ql.Provider,{value:{value:c,onValueChange:d,orientation:n},children:u.jsx("div",{className:D($e.tabsRoot,o),children:s})})},pm=({className:e="",children:t})=>{const{orientation:r}=gs(),n=C.useRef(null),o=s=>{var c;const i=(c=n.current)==null?void 0:c.querySelectorAll('[role="tab"]:not([disabled])');if(!i)return;const a=Array.from(i).findIndex(d=>d===document.activeElement);let l=a;switch(s.key){case"ArrowLeft":r==="horizontal"&&(s.preventDefault(),l=a>0?a-1:i.length-1);break;case"ArrowRight":r==="horizontal"&&(s.preventDefault(),l=a<i.length-1?a+1:0);break;case"ArrowUp":r==="vertical"&&(s.preventDefault(),l=a>0?a-1:i.length-1);break;case"ArrowDown":r==="vertical"&&(s.preventDefault(),l=a<i.length-1?a+1:0);break;case"Home":s.preventDefault(),l=0;break;case"End":s.preventDefault(),l=i.length-1;break}if(l!==a){const d=i[l];d.focus(),d.click()}};return u.jsx("div",{ref:n,role:"tablist","aria-orientation":r,onKeyDown:o,className:D($e.tabsList,r==="horizontal"?$e.tabsListHorizontal:$e.tabsListVertical,e),children:t})},hm=({value:e,disabled:t=!1,className:r="",children:n})=>{const{value:o,onValueChange:s,orientation:i}=gs(),a=o===e,l=()=>{t||s(e)};return u.jsx("button",{role:"tab","aria-selected":a,"aria-controls":`content-${e}`,tabIndex:a?0:-1,disabled:t,onClick:l,className:D($e.tabsTrigger,i==="horizontal"?$e.tabsTriggerHorizontal:$e.tabsTriggerVertical,a&&$e.tabsTriggerActive,t&&$e.tabsTriggerDisabled,r),children:n})},mm=({value:e,className:t="",children:r})=>{const{value:n}=gs();return n===e?u.jsx("div",{role:"tabpanel",id:`content-${e}`,"aria-labelledby":`trigger-${e}`,tabIndex:0,className:D($e.tabsContent,t),children:r}):null},Yl=({className:e,state:t="open",onClick:r})=>t==="open"?u.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:[u.jsx("path",{d:"M1.41174 7.41635C1.3323 7.29056 1.29257 7.22766 1.27034 7.13065C1.25364 7.05778 1.25364 6.94287 1.27034 6.87C1.29257 6.77299 1.3323 6.71009 1.41174 6.58431C2.06823 5.54482 4.02232 2.91699 7.00024 2.91699C9.97815 2.91699 11.9322 5.54482 12.5887 6.5843C12.6682 6.71009 12.7079 6.77299 12.7301 6.87C12.7468 6.94287 12.7468 7.05778 12.7301 7.13065C12.7079 7.22766 12.6682 7.29056 12.5887 7.41635C11.9322 8.45584 9.97815 11.0837 7.00024 11.0837C4.02232 11.0837 2.06823 8.45584 1.41174 7.41635Z",stroke:"#818181",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M7.00024 8.75033C7.96673 8.75033 8.75024 7.96682 8.75024 7.00033C8.75024 6.03383 7.96673 5.25033 7.00024 5.25033C6.03374 5.25033 5.25024 6.03383 5.25024 7.00033C5.25024 7.96682 6.03374 8.75033 7.00024 8.75033Z",stroke:"#818181",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"})]}):u.jsx("svg",{className:e,onClick:r,xmlns:"http://www.w3.org/2000/svg",width:"1.5em",height:"1.5em",viewBox:"0 0 14 14",fill:"none",children:u.jsx("path",{d:"M6.26672 2.97052C6.50379 2.93547 6.74835 2.91667 7.00024 2.91667C9.97816 2.91667 11.9323 5.54449 12.5887 6.58398C12.6682 6.70979 12.7079 6.7727 12.7302 6.86973C12.7469 6.94259 12.7468 7.05755 12.7301 7.13042C12.7079 7.22744 12.6679 7.29077 12.5879 7.41741C12.413 7.69425 12.1463 8.08331 11.793 8.50527M3.92252 3.9171C2.66131 4.77266 1.8051 5.9613 1.41231 6.58308C1.3325 6.70942 1.29259 6.7726 1.27035 6.86961C1.25364 6.94248 1.25363 7.05742 1.27033 7.13029C1.29257 7.22731 1.33229 7.29022 1.41174 7.41602C2.06823 8.45551 4.02232 11.0833 7.00024 11.0833C8.20098 11.0833 9.23526 10.6561 10.0851 10.078M1.75024 1.75L12.2502 12.25M5.76281 5.76256C5.44612 6.07925 5.25024 6.51675 5.25024 7C5.25024 7.9665 6.03374 8.75 7.00024 8.75C7.48349 8.75 7.92099 8.55413 8.23768 8.23744",stroke:"#818181",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"})}),Kl={PasswordInput:"PasswordInput__GDJDN",eyeIcon:"eyeIcon__kDExG"},gm=C.forwardRef((e,t)=>{const[r,n]=C.useState("password"),o=C.useCallback(()=>{n(s=>s==="password"?"text":"password")},[n]);return u.jsxs("div",{className:D(Kl.PasswordInput,e.className),children:[u.jsx(Cn,{type:r,...e,ref:t}),u.jsx(Yl,{className:Kl.eyeIcon,onClick:o,state:r==="password"?"open":"closed"})]})});var vs="focusScope.autoFocusOnMount",ys="focusScope.autoFocusOnUnmount",Zl={bubbles:!1,cancelable:!0},vm="FocusScope",Xl=g.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,l]=g.useState(null),c=qt(o),d=qt(s),h=g.useRef(null),f=Te(t,p=>l(p)),m=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(n){let p=function(T){if(m.paused||!a)return;const S=T.target;a.contains(S)?h.current=S:ct(h.current,{select:!0})},v=function(T){if(m.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",p),document.addEventListener("focusout",v);const x=new MutationObserver(_);return a&&x.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",v),x.disconnect()}}},[n,a,m.paused]),g.useEffect(()=>{if(a){tc.add(m);const p=document.activeElement;if(!a.contains(p)){const _=new CustomEvent(vs,Zl);a.addEventListener(vs,c),a.dispatchEvent(_),_.defaultPrevented||(ym(Cm(Jl(a)),{select:!0}),document.activeElement===p&&ct(a))}return()=>{a.removeEventListener(vs,c),setTimeout(()=>{const _=new CustomEvent(ys,Zl);a.addEventListener(ys,d),a.dispatchEvent(_),_.defaultPrevented||ct(p??document.body,{select:!0}),a.removeEventListener(ys,d),tc.remove(m)},0)}}},[a,c,d,m]);const w=g.useCallback(p=>{if(!r&&!n||m.paused)return;const v=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,_=document.activeElement;if(v&&_){const x=p.currentTarget,[T,S]=bm(x);T&&S?!p.shiftKey&&_===S?(p.preventDefault(),r&&ct(T,{select:!0})):p.shiftKey&&_===T&&(p.preventDefault(),r&&ct(S,{select:!0})):_===x&&p.preventDefault()}},[r,n,m.paused]);return u.jsx(he.div,{tabIndex:-1,...i,ref:f,onKeyDown:w})});Xl.displayName=vm;function ym(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(ct(n,{select:t}),document.activeElement!==r)return}function bm(e){const t=Jl(e),r=ec(t,e),n=ec(t.reverse(),e);return[r,n]}function Jl(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 ec(e,t){for(const r of e)if(!wm(r,{upTo:t}))return r}function wm(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 _m(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&&_m(e)&&t&&e.select()}}var tc=xm();function xm(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=rc(e,t),e.unshift(t)},remove(t){var r;e=rc(e,t),(r=e[0])==null||r.resume()}}}function rc(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function Cm(e){return e.filter(t=>t.tagName!=="A")}var bs=0;function Em(){g.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??nc()),document.body.insertAdjacentElement("beforeend",e[1]??nc()),bs++,()=>{bs===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),bs--}},[])}function nc(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Bn="right-scroll-bar-position",Un="width-before-scroll-bar",Sm="with-scroll-bars-hidden",Tm="--removed-body-scroll-bar-size";function ws(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Am(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 Pm=typeof window<"u"?g.useLayoutEffect:g.useEffect,oc=new WeakMap;function Om(e,t){var r=Am(null,function(n){return e.forEach(function(o){return ws(o,n)})});return Pm(function(){var n=oc.get(r);if(n){var o=new Set(n),s=new Set(e),i=r.current;o.forEach(function(a){s.has(a)||ws(a,null)}),s.forEach(function(a){o.has(a)||ws(a,i)})}oc.set(r,e)},[e]),r}function km(e){return e}function Rm(e,t){t===void 0&&(t=km);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(s){var i=t(s,n);return r.push(i),function(){r=r.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(n=!0;r.length;){var i=r;r=[],i.forEach(s)}r={push:function(a){return s(a)},filter:function(){return r}}},assignMedium:function(s){n=!0;var i=[];if(r.length){var a=r;r=[],a.forEach(s),i=r}var l=function(){var d=i;i=[],d.forEach(s)},c=function(){return Promise.resolve().then(l)};c(),r={push:function(d){i.push(d),c()},filter:function(d){return i=i.filter(d),r}}}};return o}function jm(e){e===void 0&&(e={});var t=Rm(null);return t.options=De({async:!0,ssr:!1},e),t}var sc=function(e){var t=e.sideCar,r=Ri(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 g.createElement(n,De({},r))};sc.isSideCarExport=!0;function Dm(e,t){return e.useMedium(t),sc}var ic=jm(),_s=function(){},zn=g.forwardRef(function(e,t){var r=g.useRef(null),n=g.useState({onScrollCapture:_s,onWheelCapture:_s,onTouchMoveCapture:_s}),o=n[0],s=n[1],i=e.forwardProps,a=e.children,l=e.className,c=e.removeScrollBar,d=e.enabled,h=e.shards,f=e.sideCar,m=e.noRelative,w=e.noIsolation,p=e.inert,v=e.allowPinchZoom,_=e.as,x=_===void 0?"div":_,T=e.gapMode,S=Ri(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),A=f,k=Om([r,t]),O=De(De({},S),o);return g.createElement(g.Fragment,null,d&&g.createElement(A,{sideCar:ic,removeScrollBar:c,shards:h,noRelative:m,noIsolation:w,inert:p,setCallbacks:s,allowPinchZoom:!!v,lockRef:r,gapMode:T}),i?g.cloneElement(g.Children.only(a),De(De({},O),{ref:k})):g.createElement(x,De({},O,{className:l,ref:k}),a))});zn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},zn.classNames={fullWidth:Un,zeroRight:Bn};var Lm=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Im(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Lm();return t&&e.setAttribute("nonce",t),e}function Nm(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Mm(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var $m=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Im())&&(Nm(t,r),Mm(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Fm=function(){var e=$m();return function(t,r){g.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},ac=function(){var e=Fm(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},Bm={left:0,top:0,right:0,gap:0},xs=function(e){return parseInt(e||"",10)||0},Um=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[xs(r),xs(n),xs(o)]},zm=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Bm;var t=Um(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])}},Hm=ac(),er="data-scroll-locked",Wm=function(e,t,r,n){var o=e.left,s=e.top,i=e.right,a=e.gap;return r===void 0&&(r="margin"),`
|
|
210
|
+
.`.concat(Sm,` {
|
|
211
|
+
overflow: hidden `).concat(n,`;
|
|
212
|
+
padding-right: `).concat(a,"px ").concat(n,`;
|
|
238
213
|
}
|
|
239
|
-
body[`).concat(
|
|
240
|
-
overflow: hidden `).concat(
|
|
214
|
+
body[`).concat(er,`] {
|
|
215
|
+
overflow: hidden `).concat(n,`;
|
|
241
216
|
overscroll-behavior: contain;
|
|
242
|
-
`).concat([t&&"position: relative ".concat(
|
|
217
|
+
`).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
|
|
243
218
|
padding-left: `.concat(o,`px;
|
|
244
219
|
padding-top: `).concat(s,`px;
|
|
245
220
|
padding-right: `).concat(i,`px;
|
|
246
221
|
margin-left:0;
|
|
247
222
|
margin-top:0;
|
|
248
|
-
margin-right: `).concat(a,"px ").concat(
|
|
249
|
-
`),
|
|
223
|
+
margin-right: `).concat(a,"px ").concat(n,`;
|
|
224
|
+
`),r==="padding"&&"padding-right: ".concat(a,"px ").concat(n,";")].filter(Boolean).join(""),`
|
|
250
225
|
}
|
|
251
226
|
|
|
252
|
-
.`).concat(
|
|
253
|
-
right: `).concat(a,"px ").concat(
|
|
227
|
+
.`).concat(Bn,` {
|
|
228
|
+
right: `).concat(a,"px ").concat(n,`;
|
|
254
229
|
}
|
|
255
230
|
|
|
256
|
-
.`).concat(
|
|
257
|
-
margin-right: `).concat(a,"px ").concat(
|
|
231
|
+
.`).concat(Un,` {
|
|
232
|
+
margin-right: `).concat(a,"px ").concat(n,`;
|
|
258
233
|
}
|
|
259
234
|
|
|
260
|
-
.`).concat(
|
|
261
|
-
right: 0 `).concat(
|
|
235
|
+
.`).concat(Bn," .").concat(Bn,` {
|
|
236
|
+
right: 0 `).concat(n,`;
|
|
262
237
|
}
|
|
263
238
|
|
|
264
|
-
.`).concat(
|
|
265
|
-
margin-right: 0 `).concat(
|
|
239
|
+
.`).concat(Un," .").concat(Un,` {
|
|
240
|
+
margin-right: 0 `).concat(n,`;
|
|
266
241
|
}
|
|
267
242
|
|
|
268
|
-
body[`).concat(
|
|
269
|
-
`).concat(
|
|
243
|
+
body[`).concat(er,`] {
|
|
244
|
+
`).concat(Tm,": ").concat(a,`px;
|
|
270
245
|
}
|
|
271
|
-
`)},
|
|
246
|
+
`)},lc=function(){var e=parseInt(document.body.getAttribute(er)||"0",10);return isFinite(e)?e:0},Vm=function(){g.useEffect(function(){return document.body.setAttribute(er,(lc()+1).toString()),function(){var e=lc()-1;e<=0?document.body.removeAttribute(er):document.body.setAttribute(er,e.toString())}},[])},Gm=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;Vm();var s=g.useMemo(function(){return zm(o)},[o]);return g.createElement(Hm,{styles:Wm(s,!t,o,r?"":"!important")})},Cs=!1;if(typeof window<"u")try{var Hn=Object.defineProperty({},"passive",{get:function(){return Cs=!0,!0}});window.addEventListener("test",Hn,Hn),window.removeEventListener("test",Hn,Hn)}catch{Cs=!1}var tr=Cs?{passive:!1}:!1,qm=function(e){return e.tagName==="TEXTAREA"},cc=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!qm(e)&&r[t]==="visible")},Qm=function(e){return cc(e,"overflowY")},Ym=function(e){return cc(e,"overflowX")},uc=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=dc(e,n);if(o){var s=fc(e,n),i=s[1],a=s[2];if(i>a)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},Km=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Zm=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},dc=function(e,t){return e==="v"?Qm(t):Ym(t)},fc=function(e,t){return e==="v"?Km(t):Zm(t)},Xm=function(e,t){return e==="h"&&t==="rtl"?-1:1},Jm=function(e,t,r,n,o){var s=Xm(e,window.getComputedStyle(t).direction),i=s*n,a=r.target,l=t.contains(a),c=!1,d=i>0,h=0,f=0;do{if(!a)break;var m=fc(e,a),w=m[0],p=m[1],v=m[2],_=p-v-s*w;(w||_)&&dc(e,a)&&(h+=_,f+=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(f)<1)&&(c=!0),c},Wn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},pc=function(e){return[e.deltaX,e.deltaY]},hc=function(e){return e&&"current"in e?e.current:e},eg=function(e,t){return e[0]===t[0]&&e[1]===t[1]},tg=function(e){return`
|
|
272
247
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
273
248
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
274
|
-
`)},
|
|
249
|
+
`)},rg=0,rr=[];function ng(e){var t=g.useRef([]),r=g.useRef([0,0]),n=g.useRef(),o=g.useState(rg++)[0],s=g.useState(ac)[0],i=g.useRef(e);g.useEffect(function(){i.current=e},[e]),g.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var p=Jr([e.lockRef.current],(e.shards||[]).map(hc),!0).filter(Boolean);return p.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=g.useCallback(function(p,v){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!i.current.allowPinchZoom;var _=Wn(p),x=r.current,T="deltaX"in p?p.deltaX:x[0]-_[0],S="deltaY"in p?p.deltaY:x[1]-_[1],A,k=p.target,O=Math.abs(T)>Math.abs(S)?"h":"v";if("touches"in p&&O==="h"&&k.type==="range")return!1;var N=uc(O,k);if(!N)return!0;if(N?A=O:(A=O==="v"?"h":"v",N=uc(O,k)),!N)return!1;if(!n.current&&"changedTouches"in p&&(T||S)&&(n.current=A),!A)return!0;var M=n.current||A;return Jm(M,v,p,M==="h"?T:S)},[]),l=g.useCallback(function(p){var v=p;if(!(!rr.length||rr[rr.length-1]!==s)){var _="deltaY"in v?pc(v):Wn(v),x=t.current.filter(function(A){return A.name===v.type&&(A.target===v.target||v.target===A.shadowParent)&&eg(A.delta,_)})[0];if(x&&x.should){v.cancelable&&v.preventDefault();return}if(!x){var T=(i.current.shards||[]).map(hc).filter(Boolean).filter(function(A){return A.contains(v.target)}),S=T.length>0?a(v,T[0]):!i.current.noIsolation;S&&v.cancelable&&v.preventDefault()}}},[]),c=g.useCallback(function(p,v,_,x){var T={name:p,delta:v,target:_,should:x,shadowParent:og(_)};t.current.push(T),setTimeout(function(){t.current=t.current.filter(function(S){return S!==T})},1)},[]),d=g.useCallback(function(p){r.current=Wn(p),n.current=void 0},[]),h=g.useCallback(function(p){c(p.type,pc(p),p.target,a(p,e.lockRef.current))},[]),f=g.useCallback(function(p){c(p.type,Wn(p),p.target,a(p,e.lockRef.current))},[]);g.useEffect(function(){return rr.push(s),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:f}),document.addEventListener("wheel",l,tr),document.addEventListener("touchmove",l,tr),document.addEventListener("touchstart",d,tr),function(){rr=rr.filter(function(p){return p!==s}),document.removeEventListener("wheel",l,tr),document.removeEventListener("touchmove",l,tr),document.removeEventListener("touchstart",d,tr)}},[]);var m=e.removeScrollBar,w=e.inert;return g.createElement(g.Fragment,null,w?g.createElement(s,{styles:tg(o)}):null,m?g.createElement(Gm,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function og(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const sg=Dm(ic,ng);var mc=g.forwardRef(function(e,t){return g.createElement(zn,De({},e,{ref:t,sideCar:sg}))});mc.classNames=zn.classNames;var ig=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},nr=new WeakMap,Vn=new WeakMap,Gn={},Es=0,gc=function(e){return e&&(e.host||gc(e.parentNode))},ag=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=gc(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})},lg=function(e,t,r,n){var o=ag(t,Array.isArray(e)?e:[e]);Gn[r]||(Gn[r]=new WeakMap);var s=Gn[r],i=[],a=new Set,l=new Set(o),c=function(h){!h||a.has(h)||(a.add(h),c(h.parentNode))};o.forEach(c);var d=function(h){!h||l.has(h)||Array.prototype.forEach.call(h.children,function(f){if(a.has(f))d(f);else try{var m=f.getAttribute(n),w=m!==null&&m!=="false",p=(nr.get(f)||0)+1,v=(s.get(f)||0)+1;nr.set(f,p),s.set(f,v),i.push(f),p===1&&w&&Vn.set(f,!0),v===1&&f.setAttribute(r,"true"),w||f.setAttribute(n,"true")}catch(_){console.error("aria-hidden: cannot operate on ",f,_)}})};return d(t),a.clear(),Es++,function(){i.forEach(function(h){var f=nr.get(h)-1,m=s.get(h)-1;nr.set(h,f),s.set(h,m),f||(Vn.has(h)||h.removeAttribute(n),Vn.delete(h)),m||h.removeAttribute(r)}),Es--,Es||(nr=new WeakMap,nr=new WeakMap,Vn=new WeakMap,Gn={})}},cg=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=ig(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),lg(n,o,r,"aria-hidden")):function(){return null}},qn="Dialog",[vc,Fy]=Qo(qn),[ug,Oe]=vc(qn),yc=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:s,modal:i=!0}=e,a=g.useRef(null),l=g.useRef(null),[c,d]=jl({prop:n,defaultProp:o??!1,onChange:s,caller:qn});return u.jsx(ug,{scope:t,triggerRef:a,contentRef:l,contentId:Tn(),titleId:Tn(),descriptionId:Tn(),open:c,onOpenChange:d,onOpenToggle:g.useCallback(()=>d(h=>!h),[d]),modal:i,children:r})};yc.displayName=qn;var bc="DialogTrigger",dg=g.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Oe(bc,r),s=Te(t,o.triggerRef);return u.jsx(he.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":As(o.open),...n,ref:s,onClick:pe(e.onClick,o.onOpenToggle)})});dg.displayName=bc;var Ss="DialogPortal",[fg,wc]=vc(Ss,{forceMount:void 0}),_c=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,s=Oe(Ss,t);return u.jsx(fg,{scope:t,forceMount:r,children:g.Children.map(n,i=>u.jsx(Xt,{present:r||s.open,children:u.jsx(ds,{asChild:!0,container:o,children:i})}))})};_c.displayName=Ss;var Qn="DialogOverlay",xc=g.forwardRef((e,t)=>{const r=wc(Qn,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,s=Oe(Qn,e.__scopeDialog);return s.modal?u.jsx(Xt,{present:n||s.open,children:u.jsx(hg,{...o,ref:t})}):null});xc.displayName=Qn;var pg=qo("DialogOverlay.RemoveScroll"),hg=g.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Oe(Qn,r);return u.jsx(mc,{as:pg,allowPinchZoom:!0,shards:[o.contentRef],children:u.jsx(he.div,{"data-state":As(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Ot="DialogContent",Cc=g.forwardRef((e,t)=>{const r=wc(Ot,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,s=Oe(Ot,e.__scopeDialog);return u.jsx(Xt,{present:n||s.open,children:s.modal?u.jsx(mg,{...o,ref:t}):u.jsx(gg,{...o,ref:t})})});Cc.displayName=Ot;var mg=g.forwardRef((e,t)=>{const r=Oe(Ot,e.__scopeDialog),n=g.useRef(null),o=Te(t,r.contentRef,n);return g.useEffect(()=>{const s=n.current;if(s)return cg(s)},[]),u.jsx(Ec,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:pe(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),(i=r.triggerRef.current)==null||i.focus()}),onPointerDownOutside:pe(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,a=i.button===0&&i.ctrlKey===!0;(i.button===2||a)&&s.preventDefault()}),onFocusOutside:pe(e.onFocusOutside,s=>s.preventDefault())})}),gg=g.forwardRef((e,t)=>{const r=Oe(Ot,e.__scopeDialog),n=g.useRef(!1),o=g.useRef(!1);return u.jsx(Ec,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var i,a;(i=e.onCloseAutoFocus)==null||i.call(e,s),s.defaultPrevented||(n.current||(a=r.triggerRef.current)==null||a.focus(),s.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:s=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,s),s.defaultPrevented||(n.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=s.target;((c=r.triggerRef.current)==null?void 0:c.contains(i))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),Ec=g.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:s,...i}=e,a=Oe(Ot,r),l=g.useRef(null),c=Te(t,l);return Em(),u.jsxs(u.Fragment,{children:[u.jsx(Xl,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:s,children:u.jsx(Ko,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":As(a.open),...i,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(vg,{titleId:a.titleId}),u.jsx(bg,{contentRef:l,descriptionId:a.descriptionId})]})]})}),Ts="DialogTitle",Sc=g.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Oe(Ts,r);return u.jsx(he.h2,{id:o.titleId,...n,ref:t})});Sc.displayName=Ts;var Tc="DialogDescription",Ac=g.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Oe(Tc,r);return u.jsx(he.p,{id:o.descriptionId,...n,ref:t})});Ac.displayName=Tc;var Pc="DialogClose",Oc=g.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Oe(Pc,r);return u.jsx(he.button,{type:"button",...n,ref:t,onClick:pe(e.onClick,()=>o.onOpenChange(!1))})});Oc.displayName=Pc;function As(e){return e?"open":"closed"}var kc="DialogTitleWarning",[By,Rc]=Xp(kc,{contentName:Ot,titleName:Ts,docsSlug:"dialog"}),vg=({titleId:e})=>{const t=Rc(kc),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
275
250
|
|
|
276
251
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
277
252
|
|
|
278
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return g.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Ag="DialogDescriptionWarning",Pg=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ic(Ag).contentName}}.`;return g.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},kg=xc,Og=Sc,Rg=Tc,jg=Ac,Dg=kc,Lg=Rc,Ig=Dc;const Mc={Overlay:"Overlay__M5Z83",Content:"Content__wAkP4"},Ot={Header:"Header__VHxNf",Content:"Content__I04qM",Close:"Close__xSN-7",Title:"Title__Dznh6",Footer:"Footer__-8gzQ",Actions:"Actions__kKF2Q"},Nc=x.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Ot.Header,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});Nc.displayName="Header";const $c=x.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Ot.Content,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});$c.displayName="Content";const Fc=x.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Ot.Footer,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});Fc.displayName="Footer";const Bc=x.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Ot.Title,t);return u.jsx(Dg,{ref:r,className:o,...n,children:e})});Bc.displayName="Title";const Uc=x.forwardRef(({className:e,...t},n)=>{const r=D(Ot.Close,e);return u.jsx(Ig,{ref:n,asChild:!0,className:r,...t,children:u.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M11 1L1 11M1 1L11 11",stroke:"#A9A9A9",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})});Uc.displayName="Close";const zc=x.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Ot.Actions,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});zc.displayName="Actions";const Hc=x.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Ot.Description,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});Hc.displayName="Description";const ae=({children:e,onClose:t,open:n=!1,className:r})=>{const o=()=>{t==null||t()};return u.jsx(kg,{onOpenChange:o,open:n,children:u.jsxs(Og,{children:[u.jsx(Rg,{className:Mc.Overlay}),u.jsxs(jg,{children:[u.jsx(Lg,{}),u.jsx("div",{className:D(Mc.Content,r),children:e})]})]})})};ae.displayName="Dialog",ae.Header=Nc,ae.Content=$c,ae.Footer=Fc,ae.Actions=zc,ae.Title=Bc,ae.Description=Hc,ae.Close=Uc;const Wc={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"},Mg=({children:e,variant:t="solid",className:n})=>{const r=D(Wc.pill,Wc[`pill--${t}`],n);return u.jsx("div",{className:r,children:e})},Vc={DialogContent:"DialogContent__-WjG9",Message:"Message__AUgVP"},Gc=({loading:e,title:t,children:n,className:r,onClose:o,onConfirm:s,...i})=>u.jsxs(ae,{...i,className:D(Vc.DialogContent,r),children:[u.jsxs(ae.Header,{children:[u.jsx(ae.Title,{children:t}),u.jsx(ae.Close,{onClick:o})]}),u.jsx(ae.Content,{children:typeof n=="string"?u.jsx("p",{className:Vc.Message,children:n}):n}),u.jsx(ae.Footer,{children:u.jsxs(ae.Actions,{children:[u.jsx(wr,{onClick:o,disabled:e,variant:"outlined",children:"Cancel"}),u.jsx(wr,{onClick:s,disabled:e,loading:e,variant:"contained",children:"Confirm"})]})})]});Gc.displayName="ConfirmDialog";const Qr={container:"container__AjtYJ",title:"title__A2vCu",description:"description__bP6Ig",mailToText:"mailToText__SdlsE"},qc=()=>u.jsxs("svg",{width:"200",height:"200",viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{d:"M184.415 152.221C183.936 151.406 183.401 150.621 182.892 149.824C181.61 147.817 180.327 145.809 179.045 143.801C177.102 140.759 175.159 137.717 173.215 134.676C170.766 130.841 168.316 127.006 165.866 123.171C163.068 118.79 160.27 114.41 157.472 110.03C154.484 105.352 151.496 100.674 148.508 95.9965C145.474 91.2464 142.439 86.4963 139.405 81.7463C136.513 77.2189 133.621 72.6915 130.729 68.1641C128.123 64.084 125.517 60.0039 122.91 55.9238C120.748 52.5389 118.586 49.1541 116.424 45.7692C114.864 43.3273 113.304 40.8854 111.744 38.4436C110.943 37.1899 110.142 35.9362 109.342 34.6825C108.765 33.7802 108.096 32.9744 107.292 32.2572C104.604 29.8584 100.572 29.2302 97.2301 30.5252C94.5951 31.5463 92.6177 33.3853 91.0923 35.7373C90.8768 36.0696 90.6658 36.405 90.4526 36.7387C89.3951 38.3941 88.3378 40.0494 87.2803 41.7049C85.5124 44.4725 83.7444 47.2402 81.9765 50.0079C79.644 53.6594 77.3114 57.3111 74.9788 60.9626C72.2632 65.2138 69.5477 69.465 66.8321 73.7162C63.8817 78.3349 60.9313 82.9536 57.9811 87.5722C54.9542 92.3106 51.9274 97.0491 48.9006 101.787C45.9557 106.398 43.0107 111.008 40.0658 115.618C37.3487 119.872 34.6316 124.125 31.9145 128.379C29.6106 131.986 27.3067 135.592 25.0028 139.199C23.2565 141.933 21.5101 144.667 19.7639 147.4C18.7335 149.013 17.7031 150.626 16.6728 152.239C14.8665 155.067 13.7231 158.171 14.23 161.595C14.9672 166.576 19.2366 170.131 24.2215 170.137C25.559 170.139 26.8963 170.137 28.2338 170.137C30.9198 170.137 33.6058 170.137 36.2918 170.137C40.0725 170.137 43.8533 170.137 47.6341 170.137C52.2557 170.137 56.8772 170.137 61.4989 170.137C66.7339 170.137 71.969 170.137 77.204 170.137C82.7467 170.137 88.2894 170.137 93.8322 170.137C99.4529 170.137 105.074 170.137 110.694 170.137C116.139 170.137 121.584 170.137 127.029 170.137C132.044 170.137 137.06 170.137 142.075 170.137C146.425 170.137 150.776 170.137 155.127 170.137C158.516 170.137 161.904 170.137 165.293 170.137C167.49 170.137 169.686 170.137 171.883 170.137C172.633 170.137 173.384 170.137 174.135 170.137C178.404 170.087 182.136 167.627 184.212 163.932C186.248 160.307 186.562 155.866 184.415 152.221ZM94.0937 37.3471C94.0897 37.3539 94.0862 37.3597 94.0824 37.3661C94.0826 37.3652 94.0831 37.3642 94.0833 37.3632C94.0844 37.3581 94.0909 37.3518 94.0937 37.3471ZM178.584 164.489C178.476 164.538 178.524 164.516 178.584 164.489V164.489ZM180.937 162.79C180.979 162.72 181.118 162.485 181.127 162.498C181.145 162.528 181.058 162.647 180.937 162.79ZM181.821 160.333C181.806 160.446 181.782 160.646 181.773 160.697C181.736 160.919 181.686 161.139 181.637 161.359C181.637 161.359 181.637 161.359 181.637 161.359C181.629 161.377 181.621 161.399 181.61 161.426C181.54 161.604 181.472 161.785 181.406 161.965C181.402 161.977 181.398 161.988 181.394 161.999C181.304 162.16 181.219 162.323 181.123 162.481C181.074 162.562 181.016 162.641 180.97 162.724C180.949 162.762 180.936 162.785 180.93 162.798C180.727 163.035 180.436 163.332 180.388 163.385C180.696 163.049 180.535 163.229 180.318 163.42C180.172 163.548 180.018 163.666 179.869 163.79C179.848 163.807 179.831 163.822 179.816 163.835C179.797 163.845 179.775 163.857 179.747 163.873C179.576 163.97 179.411 164.078 179.238 164.171C179.043 164.277 178.844 164.373 178.642 164.463C178.556 164.494 178.471 164.526 178.384 164.553C177.532 164.819 176.835 164.945 176.084 164.954C175.296 164.954 174.508 164.954 173.719 164.954C171.519 164.954 169.318 164.954 167.118 164.954C163.751 164.954 160.385 164.954 157.019 164.954C152.756 164.954 148.493 164.954 144.231 164.954C139.275 164.954 134.319 164.954 129.364 164.954C123.981 164.954 118.598 164.954 113.215 164.954C107.651 164.954 102.086 164.954 96.5224 164.954C91.024 164.954 85.5255 164.954 80.0271 164.954C74.8407 164.954 69.6543 164.954 64.4679 164.954C59.8401 164.954 55.2123 164.954 50.5846 164.954C46.7784 164.954 42.9721 164.954 39.166 164.954C36.3891 164.954 33.6122 164.954 30.8354 164.954C29.3555 164.954 27.8756 164.954 26.3957 164.954C25.9641 164.954 25.534 164.958 25.1029 164.922C23.4511 164.785 22.11 164.207 20.7626 163.127C20.3445 162.792 19.7301 162.074 19.3142 161.434C19.2096 161.273 19.1102 161.109 19.0161 160.942C18.9707 160.861 18.8013 160.534 18.8105 160.558C18.7451 160.414 18.5329 159.846 18.4422 159.537C18.3467 159.211 18.2692 158.879 18.2129 158.544C18.2174 158.545 18.1876 158.285 18.1815 158.192C18.1669 157.964 18.1617 157.736 18.1651 157.508C18.166 157.455 18.1793 157.245 18.185 157.131C18.2055 157.005 18.2441 156.74 18.2591 156.662C18.2913 156.493 18.3319 156.326 18.3726 156.16C18.2821 156.539 18.4099 156.072 18.4891 155.866C18.518 155.79 18.6652 155.487 18.6846 155.432C18.7383 155.339 18.7932 155.243 18.8125 155.21C18.8692 155.114 18.9282 155.019 18.9875 154.924C19.0003 154.904 19.0137 154.884 19.0265 154.863C19.2211 154.554 19.4201 154.247 19.617 153.939C20.6335 152.348 21.6501 150.756 22.6667 149.165C24.3869 146.472 26.107 143.779 27.8271 141.086C30.0848 137.552 32.3425 134.017 34.6001 130.483C37.2646 126.312 39.9291 122.141 42.5935 117.97C45.5011 113.418 48.4086 108.866 51.3161 104.315C54.3131 99.6229 57.31 94.9312 60.3069 90.2397C63.2394 85.6489 66.172 81.058 69.1045 76.4672C71.819 72.2178 74.5334 67.9683 77.2479 63.719C79.5904 60.0517 81.9331 56.3844 84.2756 52.7172C86.0852 49.8842 87.8948 47.0513 89.7044 44.2184C90.8459 42.4315 91.9873 40.6446 93.1287 38.8578C93.3976 38.4368 93.6701 38.0178 93.9356 37.5945C93.9507 37.5705 93.9737 37.5416 93.9972 37.511C93.8744 37.7231 94.1597 37.2638 94.301 37.0921C94.4017 36.9695 94.5483 36.8114 94.5423 36.8113C94.6372 36.721 94.7333 36.6319 94.8323 36.546C94.9866 36.4121 95.1478 36.2876 95.3084 36.1615C94.9392 36.4513 95.3917 36.1121 95.5441 36.0212C96.7591 35.2961 98.1095 34.9498 99.7068 35.0725C101.356 35.1993 102.702 35.7434 104.07 36.8307C104.685 37.3192 105.311 38.1542 105.817 38.9457C106.592 40.1592 107.367 41.3727 108.142 42.5862C109.667 44.9733 111.192 47.3605 112.717 49.7476C114.838 53.0679 116.959 56.3881 119.08 59.7083C121.629 63.6999 124.179 67.6913 126.729 71.6829C129.579 76.1455 132.43 80.6082 135.281 85.0709C138.267 89.7458 141.253 94.4206 144.239 99.0955C147.207 103.742 150.176 108.388 153.144 113.035C155.94 117.412 158.736 121.789 161.532 126.167C164.002 130.034 166.473 133.902 168.943 137.769C170.935 140.886 172.926 144.003 174.917 147.12C176.27 149.239 177.623 151.357 178.976 153.475C179.551 154.376 180.134 155.272 180.702 156.177C181.138 156.872 181.311 157.219 181.54 157.972C181.6 158.167 181.652 158.363 181.697 158.561C181.711 158.623 181.759 158.873 181.78 158.97C181.787 159.063 181.815 159.319 181.819 159.383C181.831 159.579 181.836 159.775 181.834 159.972C181.834 160.022 181.825 160.217 181.821 160.333Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M98.5821 122.507C99.019 122.759 99.6307 122.629 100.038 122.389C101.205 121.703 101.925 120.275 102.041 118.92C103.115 106.361 106.514 75.1051 106.514 68.3062C106.514 59.902 92.8134 60.6835 92.0664 71.3279C91.6887 76.7103 97.5083 119.581 97.8266 121.187C97.9188 121.652 98.1423 122.253 98.5821 122.507Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M101.841 133.945C101.826 133.94 101.812 133.934 101.797 133.929C98.2767 132.6 94.4012 134.976 93.9964 138.717C93.9765 138.901 93.9636 139.086 93.958 139.272C93.8552 142.712 96.4467 146.126 99.8464 146.664C103.245 147.201 106.896 144.494 107.099 141.059C107.285 137.909 104.789 135.072 101.841 133.945Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M161.729 131.662C161.873 131.367 162.082 130.81 161.71 130.584C161.365 130.375 160.901 130.836 160.768 131.107C156.804 139.201 152.84 147.295 148.877 155.389C147.759 157.67 146.642 159.952 145.525 162.233C145.38 162.528 145.171 163.085 145.543 163.311C145.888 163.52 146.352 163.059 146.485 162.788C150.449 154.694 154.413 146.6 158.377 138.506C159.494 136.225 160.611 133.943 161.729 131.662Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M144.786 152.64C144.441 152.43 143.977 152.891 143.844 153.163C142.363 156.187 140.882 159.21 139.402 162.234C139.257 162.528 139.048 163.085 139.42 163.311C139.765 163.521 140.229 163.06 140.362 162.788C141.843 159.764 143.323 156.741 144.804 153.717C144.948 153.423 145.158 152.866 144.786 152.64Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M136.792 156.459C136.447 156.25 135.983 156.711 135.85 156.982C134.993 158.733 134.136 160.483 133.279 162.233C133.134 162.528 132.925 163.085 133.297 163.311C133.642 163.52 134.106 163.06 134.239 162.788C135.096 161.037 135.953 159.287 136.81 157.537C136.955 157.242 137.164 156.685 136.792 156.459Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M129.1 159.663C128.755 159.454 128.291 159.915 128.158 160.186C127.824 160.869 127.49 161.551 127.155 162.234C127.011 162.528 126.802 163.086 127.174 163.311C127.519 163.521 127.983 163.06 128.116 162.788C128.45 162.106 128.784 161.423 129.118 160.741C129.263 160.447 129.472 159.889 129.1 159.663Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M165.835 137.946C165.979 137.652 166.188 137.094 165.816 136.868C165.471 136.659 165.007 137.12 164.874 137.392C161.72 143.832 158.566 150.273 155.412 156.713C154.511 158.553 153.609 160.393 152.708 162.233C152.564 162.528 152.355 163.085 152.726 163.311C153.071 163.52 153.535 163.06 153.669 162.788C156.823 156.347 159.977 149.907 163.131 143.466C164.032 141.626 164.933 139.786 165.835 137.946Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M169.923 143.153C169.578 142.943 169.114 143.404 168.98 143.676C165.951 149.862 162.921 156.048 159.892 162.234C159.748 162.528 159.538 163.086 159.91 163.311C160.255 163.521 160.719 163.06 160.852 162.788C163.882 156.602 166.911 150.416 169.941 144.23C170.085 143.936 170.294 143.378 169.923 143.153Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M174.332 148.821C173.987 148.611 173.523 149.072 173.39 149.344C171.286 153.64 169.182 157.937 167.077 162.234C166.933 162.528 166.724 163.086 167.095 163.311C167.44 163.521 167.905 163.06 168.038 162.788C170.142 158.492 172.246 154.195 174.351 149.898C174.495 149.604 174.704 149.046 174.332 148.821Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M178.197 155.597C177.852 155.387 177.388 155.848 177.255 156.12C176.257 158.158 175.259 160.196 174.261 162.233C174.117 162.528 173.907 163.085 174.279 163.311C174.624 163.52 175.088 163.06 175.221 162.788C176.219 160.75 177.217 158.712 178.215 156.674C178.36 156.38 178.569 155.823 178.197 155.597Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M97.1962 40.2135C97.3477 39.9803 97.4773 39.477 97.1807 39.2971C96.8678 39.1072 96.5194 39.5265 96.3794 39.7419C94.7034 42.3205 93.0556 44.9176 91.4179 47.5205C88.1743 52.6759 84.976 57.8633 81.9271 63.1367C80.4155 65.7509 78.9283 68.3855 77.5879 71.0925C77.4642 71.3423 77.2879 71.8174 77.6034 72.0088C77.8975 72.1874 78.2905 71.7947 78.4047 71.564C80.9657 66.3919 83.9726 61.4308 86.9671 56.5018C89.7369 51.9427 92.5713 47.4226 95.4474 42.9297C96.0279 42.0228 96.6094 41.1164 97.1962 40.2135Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M75.3224 76.1247C75.0193 75.9408 74.6477 76.3459 74.521 76.5695C74.1645 77.1991 73.808 77.8286 73.4515 78.4581C73.3144 78.7003 73.1605 79.1884 73.467 79.3744C73.77 79.5583 74.1416 79.1532 74.2684 78.9296C74.6248 78.3001 74.9814 77.6705 75.3378 77.0411C75.475 76.7988 75.6288 76.3107 75.3224 76.1247Z",fill:"var(--pae-shell-color-secondary)"})]});qc.displayName="WarningIcon";const Ng="support@bluealba.com",$g="@bluealba/pae-shell-ui",As=()=>{const{supportEmail:e=Ng}=hi($g),t=`mailto:${e}?Subject=Support`;return u.jsxs("div",{className:Qr.container,children:[u.jsx(qc,{}),u.jsx("div",{className:Qr.title,children:"Oops! Something went wrong"}),u.jsxs("div",{className:Qr.description,children:["If the error persists, ",u.jsx("a",{className:Qr.mailToText,href:t,children:"contact the administrator."})]})]})};As.displayName="ErrorState";const Oe={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=x.forwardRef(({children:e,className:t,selected:n,disabled:r=!1,...o},s)=>{const i=D(Oe.Item,{[Oe["Item--selected"]]:n,[Oe["Item--disabled"]]:r},t);return u.jsx("li",{ref:s,className:i,role:"listitem","aria-disabled":r,...o,children:e})});Qc.displayName="Item";const Yc=x.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Oe.Title,t);return u.jsx("h3",{ref:r,className:o,...n,children:e})});Yc.displayName="Title";const Kc=x.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Oe.Description,t);return u.jsx("p",{ref:r,className:o,...n,children:e})});Kc.displayName="Description";const Ps=({className:e,...t})=>u.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:[u.jsx("path",{d:"M6 6.5C6.27614 6.5 6.5 6.27614 6.5 6C6.5 5.72386 6.27614 5.5 6 5.5C5.72386 5.5 5.5 5.72386 5.5 6C5.5 6.27614 5.72386 6.5 6 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M9.5 6.5C9.77614 6.5 10 6.27614 10 6C10 5.72386 9.77614 5.5 9.5 5.5C9.22386 5.5 9 5.72386 9 6C9 6.27614 9.22386 6.5 9.5 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M2.5 6.5C2.77614 6.5 3 6.27614 3 6C3 5.72386 2.77614 5.5 2.5 5.5C2.22386 5.5 2 5.72386 2 6C2 6.27614 2.22386 6.5 2.5 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"})]});Ps.displayName="HorizontalDots";const Zc=x.forwardRef(({children:e,className:t,onClick:n,...r},o)=>{const s=x.useRef(null),[i,a]=x.useState(!1),l=D(Oe.Actions,t),c=()=>{const w=At["DropdownList--open"],f=At["DropdownList--closed"];document.querySelectorAll(`.${w}`).forEach(_=>{_!==s.current&&(_.classList.remove(w),_.classList.add(f))})},d=w=>{w.stopPropagation(),i?h():(a(!0),n==null||n(w))},h=()=>{a(!1)},p=w=>{w.key==="Escape"&&h()},m=w=>{s.current&&!s.current.contains(w.target)&&h()};return x.useEffect(()=>(i?(c(),document.addEventListener("keydown",p),document.addEventListener("click",m)):(document.removeEventListener("keydown",p),document.removeEventListener("click",m)),()=>{document.removeEventListener("keydown",p),document.removeEventListener("click",m)}),[i]),u.jsxs("div",{ref:o,className:l,onClick:d,role:"button",tabIndex:0,"data-testid":"actions",...r,children:[u.jsx(Ps,{}),u.jsx(Cr,{align:"left",ref:s,open:i,"data-testid":"actions-dropdown",role:"menu","aria-label":"Actions",children:e})]})});Zc.displayName="Actions";const Xc=x.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Oe.Action,t);return u.jsx("button",{ref:r,className:o,...n,children:e})});Xc.displayName="Action";const Jc=x.forwardRef(({children:e,className:t,...n},r)=>{const o=D(Oe.Icon,t);return u.jsx("div",{ref:r,className:o,...n,children:e})});Jc.displayName="Icon";const Fe=x.forwardRef(({children:e,className:t,size:n="medium",variant:r,...o},s)=>{const i=D(Oe.List,{[Oe[`List--${n}`]]:n,[Oe[`List--${r}`]]:r},t);return u.jsx("ul",{ref:s,className:i,role:"list",...o,children:e})});Fe.displayName="List",Fe.Item=Qc,Fe.Badges=zo,Fe.Badge=Uo,Fe.Title=Yc,Fe.Description=Kc,Fe.Actions=Zc,Fe.Action=Xc,Fe.Icon=Jc;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"},eu=({className:e,...t})=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,...t,children:[u.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),u.jsx("path",{d:"M9 6l6 6l-6 6"})]});eu.displayName="ChevronRight";const tu=({className:e,...t})=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,...t,children:[u.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),u.jsx("path",{d:"M15 6l-6 6l6 6"})]});tu.displayName="ChevronLeft";const ks=({className:e,...t})=>u.jsx("nav",{role:"navigation","aria-label":"pagination",className:D(Qe.Navigation,e),...t});ks.displayName="Pagination";const Os=g.forwardRef(({className:e,...t},n)=>u.jsx("ul",{ref:n,className:D(Qe.PaginationContent,e),...t}));Os.displayName="PaginationContent";const Mn=g.forwardRef(({className:e,...t},n)=>u.jsx("li",{ref:n,className:e,...t}));Mn.displayName="PaginationItem";const Nn=({className:e,isActive:t,...n})=>u.jsx("a",{"aria-current":t?"page":void 0,className:D(Qe.PaginationLink,t&&Qe.Active,e),...n});Nn.displayName="PaginationLink";const Rs=({className:e,disabled:t,...n})=>u.jsxs(Nn,{"aria-label":"Go to previous page",className:D(t&&Qe.Disabled,Qe.Prev,e),...n,children:[u.jsx(tu,{}),u.jsx("span",{children:"Previous"})]});Rs.displayName="PaginationPrevious";const js=({className:e,disabled:t,...n})=>u.jsxs(Nn,{"aria-label":"Go to next page",className:D(t&&Qe.Disabled,Qe.Next,e),...n,children:[u.jsx("span",{children:"Next"}),u.jsx(eu,{})]});js.displayName="PaginationNext";const Ds=({className:e,...t})=>u.jsx("span",{"aria-hidden":!0,className:D(Qe.PaginationEllipsis,e),...t,children:u.jsx(Ps,{})});Ds.displayName="PaginationEllipsis";function Fg(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var nu={exports:{}};(function(e,t){(function(n,r){typeof Fg=="function"?e.exports=r():n.pluralize=r()})(Vu,function(){var n=[],r=[],o={},s={},i={};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 c(f,v){return f.replace(/\$(\d{1,2})/g,function(_,C){return v[C]||""})}function d(f,v){return f.replace(v[0],function(_,C){var S=c(v[1],arguments);return l(_===""?f[C-1]:_,S)})}function h(f,v,_){if(!f.length||o.hasOwnProperty(f))return v;for(var C=_.length;C--;){var S=_[C];if(S[0].test(v))return d(v,S)}return v}function p(f,v,_){return function(C){var S=C.toLowerCase();return v.hasOwnProperty(S)?l(C,S):f.hasOwnProperty(S)?l(C,f[S]):h(S,C,_)}}function m(f,v,_,C){return function(S){var T=S.toLowerCase();return v.hasOwnProperty(T)?!0:f.hasOwnProperty(T)?!1:h(T,T,_)===T}}function w(f,v,_){var C=v===1?w.singular(f):w.plural(f);return(_?v+" ":"")+C}return w.plural=p(i,s,n),w.isPlural=m(i,s,n),w.singular=p(s,i,r),w.isSingular=m(s,i,r),w.addPluralRule=function(f,v){n.push([a(f),v])},w.addSingularRule=function(f,v){r.push([a(f),v])},w.addUncountableRule=function(f){if(typeof f=="string"){o[f.toLowerCase()]=!0;return}w.addPluralRule(f,"$0"),w.addSingularRule(f,"$0")},w.addIrregularRule=function(f,v){v=v.toLowerCase(),f=f.toLowerCase(),i[f]=v,s[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})})(nu);var Bg=nu.exports;const Ug=Gu(Bg),Ls=({count:e,singularText:t,children:n=(r,o)=>`${r} ${o}`})=>u.jsx(u.Fragment,{children:n(e,Ug(t,e))});Ls.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"},ou=({size:e=64})=>u.jsxs("svg",{width:e,height:e,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsxs("g",{clipPath:"url(#clip-path)",children:[u.jsx("mask",{id:"mask0_1070_8032",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"64",height:"64",children:u.jsx("path",{d:"M64 0H0V64H64V0Z",fill:"white"})}),u.jsx("g",{mask:"url(#mask0_1070_8032)",children:u.jsx("path",{d:"M40 10.6673H13.3333V53.334H50.6667V21.334H40V10.6673ZM8 7.97932C8 6.51798 9.192 5.33398 10.664 5.33398H42.6667L56 18.6673V55.982C56.0024 56.3321 55.936 56.6793 55.8043 57.0039C55.6725 57.3284 55.4781 57.6239 55.2323 57.8732C54.9864 58.1225 54.6936 58.3209 54.3712 58.4572C54.0485 58.5935 53.7021 58.6649 53.352 58.6673H10.648C9.94768 58.6625 9.27739 58.3823 8.78192 57.8873C8.28645 57.3924 8.00557 56.7223 8 56.022V7.97932ZM36.0773 38.5233C33.8408 39.83 31.2056 40.2788 28.6627 39.786C26.1197 39.2929 23.8428 37.8921 22.2566 35.8444C20.6704 33.7966 19.883 31.2417 20.0414 28.6564C20.1998 26.071 21.293 23.6315 23.1173 21.7927C24.9532 19.9571 27.3955 18.8541 29.9864 18.6904C32.5773 18.5267 35.1389 19.3134 37.1912 20.9032C39.2435 22.493 40.6456 24.7767 41.1347 27.3263C41.6237 29.8759 41.1664 32.5164 39.848 34.7527L45.7413 40.646L41.9707 44.4193L36.0773 38.5233ZM34.4293 33.1047C34.9387 32.6126 35.3451 32.0241 35.6245 31.3735C35.904 30.7228 36.0512 30.0231 36.0573 29.3148C36.0635 28.6065 35.9285 27.9044 35.6603 27.2489C35.3923 26.5935 34.9963 25.998 34.4955 25.4972C33.9947 24.9964 33.3992 24.6004 32.7437 24.3323C32.0883 24.0641 31.3861 23.9292 30.6779 23.9353C29.9696 23.9415 29.2699 24.0886 28.6192 24.3681C27.9685 24.6476 27.38 25.0539 26.888 25.5633C25.9165 26.5692 25.3789 27.9164 25.3911 29.3148C25.4032 30.7132 25.9641 32.0508 26.9531 33.0396C27.9419 34.0287 29.2795 34.5895 30.6779 34.6015C32.0763 34.6137 33.4235 34.0761 34.4293 33.1047Z",fill:"currentColor"})})]}),u.jsx("defs",{children:u.jsx("clipPath",{id:"clip-path",children:u.jsx("rect",{width:"64",height:"64",fill:"white"})})})]});ou.displayName="EmptyStateIcon";const Is=({message:e="No results found"})=>u.jsxs("div",{className:D(ru.EmptyStateContainer),children:[u.jsx(ou,{}),u.jsx("p",{className:ru.Message,children:e})]});Is.displayName="EmptyState";const zg=(e,t,n=1)=>{if(e<=1)return["1"];const r=[],o=s=>{(r.length===0||r[r.length-1]!==s)&&r.push(s)};o(1),t-n>2&&o("...");for(let s=Math.max(2,t-n);s<=Math.min(e-1,t+n);s++)o(s);return t+n<e-1&&o("..."),o(e),r.map(String)},su=({page:e,totalPages:t,onPageChange:n})=>{const r=e===1,o=e===t;return u.jsx(ks,{className:me.Pagination,children:u.jsxs(Os,{children:[u.jsx(Mn,{children:u.jsx(Rs,{className:D({[me.PointerNone]:r}),onClick:()=>!r&&n(e-1)})}),zg(t,e).map((s,i)=>u.jsxs(Mn,{children:[s==="..."&&u.jsx(Ds,{}),s!=="..."&&u.jsx(Nn,{isActive:+s===e,onClick:()=>+s!==e&&n(+s),children:s})]},i)),u.jsx(Mn,{children:u.jsx(js,{className:D({[me.PointerNone]:o}),onClick:()=>!o&&n(e+1)})})]})})};su.displayName="TablePagination";const iu=({className:e,...t})=>u.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:u.jsx("path",{d:"M6 2.5V9.5M6 9.5L9.5 6M6 9.5L2.5 6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})});iu.displayName="ArrowDown";const au=({columns:e,data:t,isLoading:n,totalCount:r=0,headerLabel:o,sort:s,loadingConfig:i,pagination:a,onRowClick:l})=>{const{count:c=5,height:d=40}=i||{},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}),m=v=>{if(!s)return"";const _=h(v);return D({[me.SortIcon]:!0,[me.Active]:v.isSortable&&s.field===_,[me.Rotate]:s.field===_&&s.direction==="asc"})},w=v=>()=>l==null?void 0:l(v),f=v=>()=>{if(!s||!v.isSortable)return;const{field:_,direction:C,onSort:S}=s,T=h(v);_===T?S(T,C==="asc"?"desc":"asc"):S(T,"asc")};return u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:me.TableContainer,children:[o&&u.jsx("div",{className:me.TableHeader,children:u.jsx(Ls,{count:r,singularText:o,children:(v,_)=>`${v} ${_}`})}),u.jsxs("table",{className:me.Table,children:[u.jsx("thead",{children:u.jsx("tr",{children:e.map(v=>u.jsx("th",{children:u.jsxs("div",{className:p(v),onClick:f(v),children:[u.jsx("span",{children:v.displayName}),v.isSortable&&u.jsx(iu,{className:m(v)})]})},v.name))})}),u.jsx("tbody",{children:u.jsxs(st,{children:[u.jsx(st.When,{condition:n,children:[...Array(c).keys()].map(v=>u.jsx("tr",{children:u.jsx("td",{colSpan:e.length,style:{padding:4},children:u.jsx(Er,{height:d})})},v))}),u.jsx(st.When,{condition:!t.length,children:u.jsx("tr",{children:u.jsx("td",{colSpan:e.length,children:u.jsx(Is,{})})})}),u.jsx(st.Else,{children:t.map((v,_)=>u.jsx("tr",{className:l&&me.selectable,onClick:w(v),children:e.map(C=>u.jsx("td",{style:C.width?{width:C.width}:{},children:u.jsx("div",{className:p(C),children:C.cellRenderer?C.cellRenderer(v):C.valueGetter?C.valueGetter(v):v[C.name]})},`${C.name}-${_}`))},_))})]})})]})]}),a&&u.jsx(su,{...a})]})};au.displayName="Table";const Yr={alert:"alert__LblpE",default:"default__mgO6A",destructive:"destructive__bLNSM",alertTitle:"alertTitle__gblKf",alertDescription:"alertDescription__BuVHV"},Kr=({className:e,variant:t="default",children:n,...r})=>u.jsx("div",{"data-slot":"alert",role:"alert",className:D(Yr.alert,Yr[t],e),...r,children:n}),Hg=g.forwardRef(({children:e,className:t,...n},r)=>u.jsx("div",{ref:r,"data-slot":"alert-title",className:D(Yr.alertTitle,t),...n,children:e})),Wg=g.forwardRef(({children:e,className:t,...n},r)=>u.jsx("div",{ref:r,"data-slot":"alert-description",className:D(Yr.alertDescription,t),...n,children:e}));Kr.displayName="Alert",Kr.Title=Hg,Kr.Description=Wg;function lu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Zr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lu(Object(n),!0).forEach(function(r){Vg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lu(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cu(e){return(cu=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 Vg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ms(e){return(Ms=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 uu(e,t){var n;if(typeof(n=t.domElement?function(){return t.domElement}:t.domElementGetter?t.domElementGetter:e.domElementGetter?e.domElementGetter:function(r){var o=r.appName||r.name;if(!o)throw Error("single-spa's dom-element-getter-helpers was not given an application name as a prop, so it can't make a unique dom element container for the react application");var s="single-spa-application:".concat(o);return function(){var i=document.getElementById(s);return i||((i=document.createElement("div")).id=s,document.body.appendChild(i)),i}}(t))!="function")throw Error("single-spa's dom-element-getter-helpers was given an invalid domElementGetter for application or parcel '".concat(t.name,"'. Expected a function, received ").concat(Ms(n)));return function(){var r=n(t);if(!(r instanceof HTMLElement))throw Error("single-spa's dom-element-getter-helpers: domElementGetter returned an invalid dom element for application or parcel '".concat(t.name,"'. Expected HTMLElement, received ").concat(Ms(r)));return r}}var $n=null;try{$n=require("react").createContext()}catch{}var Gg={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 qg(e){if(cu(e)!=="object")throw new Error("single-spa-react requires a configuration object");var t,n=Zr(Zr({},Gg),e);if(!n.React)throw new Error("single-spa-react must be passed opts.React");if(!n.ReactDOM&&!n.ReactDOMClient)throw new Error("single-spa-react must be passed opts.ReactDOM or opts.ReactDOMClient");if(n.renderType||((t=n.ReactDOMClient)!==null&&t!==void 0&&t.createRoot?n.renderType="createRoot":n.renderType="render"),!n.rootComponent&&!n.loadRootComponent)throw new Error("single-spa-react must be passed opts.rootComponent or opts.loadRootComponent");if(n.errorBoundary&&typeof n.errorBoundary!="function")throw Error("The errorBoundary opt for single-spa-react must either be omitted or be a function that returns React elements");!$n&&n.React.createContext&&($n=n.React.createContext()),n.SingleSpaRoot=function(o){function s(i){s.displayName="SingleSpaRoot(".concat(i.name,")")}return s.prototype=Object.create(o.React.Component.prototype),s.prototype.componentDidMount=function(){setTimeout(this.props.mountFinished)},s.prototype.componentWillUnmount=function(){setTimeout(this.props.unmountFinished)},s.prototype.render=function(){return setTimeout(this.props.updateFinished),this.props.children},s}(n);var r={bootstrap:Qg.bind(null,n),mount:Yg.bind(null,n),unmount:Kg.bind(null,n)};return n.parcelCanUpdate&&(r.update=Zg.bind(null,n)),r}function Qg(e,t){return e.rootComponent?Promise.resolve():e.loadRootComponent(t).then(function(n){e.rootComponent=n})}function Yg(e,t){return new Promise(function(n,r){e.suppressComponentDidCatchWarning||!function(a){if(!(a&&typeof a.version=="string"&&a.version.indexOf(".")>=0))return!1;var l=a.version.slice(0,a.version.indexOf("."));try{return Number(l)>=16}catch{return!1}}(e.React)||e.errorBoundary||e.errorBoundaryClass||(e.rootComponent.prototype?e.rootComponent.prototype.componentDidCatch||console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent should implement componentDidCatch to avoid accidentally unmounting the entire single-spa application.")):console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent does not implement an error boundary. If using a functional component, consider providing an opts.errorBoundary to singleSpaReact(opts).")));var o=du(e,t,function(){n(this)}),s=uu(e,t)(),i=function(a){var l=a.reactDom,c=a.renderType,d=a.elementToRender,h=a.domElement,p=l[c];if(typeof p!="function")throw new Error('renderType "'.concat(c,'" did not return a function.'));switch(c){case"createRoot":case"unstable_createRoot":case"createBlockingRoot":case"unstable_createBlockingRoot":var m=p(h);return m.render(d),m;case"hydrateRoot":return p(h,d);case"hydrate":default:return p(d,h),null}}({elementToRender:o,domElement:s,reactDom:Ns(e),renderType:Xg(e)});e.domElements[t.name]=s,e.renderResults[t.name]=i})}function Kg(e,t){return new Promise(function(n){e.unmountResolves[t.name]=n;var r=e.renderResults[t.name];r&&r.unmount?r.unmount():Ns(e).unmountComponentAtNode(e.domElements[t.name]),delete e.domElements[t.name],delete e.renderResults[t.name]})}function Zg(e,t){return new Promise(function(n){e.updateResolves[t.name]||(e.updateResolves[t.name]=[]),e.updateResolves[t.name].push(n);var r=du(e,t,null),o=e.renderResults[t.name];if(o&&o.render)o.render(r);else{var s=uu(e,t)();Ns(e).render(r,s)}})}function Ns(e){return e.ReactDOMClient||e.ReactDOM}function Xg(e){return typeof e.renderType=="function"?e.renderType():e.renderType}function du(e,t,n){var r=e.React.createElement(e.rootComponent,t),o=$n?e.React.createElement($n.Provider,{value:t},r):r;return(e.errorBoundary||t.errorBoundary||e.errorBoundaryClass||t.errorBoundaryClass)&&(e.errorBoundaryClass=e.errorBoundaryClass||t.errorBoundaryClass||function(s,i){function a(l){s.React.Component.apply(this,arguments),this.state={caughtError:null,caughtErrorInfo:null},a.displayName="SingleSpaReactErrorBoundary(".concat(l.name,")")}return a.prototype=Object.create(s.React.Component.prototype),a.prototype.render=function(){return this.state.caughtError?(s.errorBoundary||i.errorBoundary)(this.state.caughtError,this.state.caughtErrorInfo,this.props):this.props.children},a.prototype.componentDidCatch=function(l,c){this.setState({caughtError:l,caughtErrorInfo:c})},a}(e,t),o=e.React.createElement(e.errorBoundaryClass,t,o)),o=e.React.createElement(e.SingleSpaRoot,Zr(Zr({},t),{},{mountFinished:n,updateFinished:function(){e.updateResolves[t.name]&&(e.updateResolves[t.name].forEach(function(s){return s()}),delete e.updateResolves[t.name])},unmountFinished:function(){e.unmountResolves[t.name]&&(e.unmountResolves[t.name](),delete e.unmountResolves[t.name])}}),o)}const Jg=e=>{const t=new tp;return function(r){if(!r)throw new Error("Microfrontend did not receive any properties !!");const o=uo(r.module.name);return u.jsx(ci,{module:o,children:u.jsxs(ip,{client:t,children:[u.jsx(e,{...r}),u.jsx(Ff,{position:"top-right",reverseOrder:!0})]})})}},ev=({rootComponent:e,...t})=>qg({errorBoundary(n){return console.error(n),u.jsx(As,{})},...t,rootComponent:Jg(e)}),tv=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,Cn,{value:e?vd(t,e):t})},nv={flags:new Map,variants:new Map,isLoading:!1,error:null,checkFlag:()=>!1,getVariant:()=>null,refresh:async()=>{}},Fn=x.createContext(nv),fu=({gatewayUrl:e="",prefetchFlags:t=[],refreshInterval:n,children:r})=>{const[o,s]=x.useState(new Map),[i,a]=x.useState(new Map),[l,c]=x.useState(!1),[d,h]=x.useState(null),p=x.useCallback(async _=>{if(_.length!==0){c(!0),h(null);try{const C=`${e}/_/feature-flags/evaluate`,S=await fetch(C,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({flagNames:_}),credentials:"include"});if(!S.ok)throw new Error(`Failed to fetch feature flags: ${S.status} ${S.statusText}`);const T=await S.json(),A=new Map,O=new Map;T.flags.forEach(P=>{A.set(P.flagName,P.enabled),P.variant!==void 0&&O.set(P.flagName,{variant:P.variant.name||null,payload:P.variant.payload})}),s(A),a(O)}catch(C){const S=C instanceof Error?C:new Error("Unknown error fetching feature flags");h(S),console.error("Error fetching feature flags:",S)}finally{c(!1)}}},[e]),m=x.useCallback(async()=>{t.length>0&&await p(t)},[t,p]);x.useEffect(()=>{t.length>0&&p(t)},[t,p]),x.useEffect(()=>{if(n&&n>0&&t.length>0){const _=setInterval(()=>{p(t)},n);return()=>{clearInterval(_)}}},[n,t,p]);const w=x.useCallback((_,C=!1)=>o.get(_)??C,[o]),f=x.useCallback(_=>i.get(_)??null,[i]),v=x.useMemo(()=>({flags:o,variants:i,isLoading:l,error:d,checkFlag:w,getVariant:f,refresh:m}),[o,i,l,d,w,f,m]);return u.jsx(Fn.Provider,{value:v,children:r})};fu.displayName="FeatureFlagsProvider";function pu(e,t=!1,n=""){const r=x.useContext(Fn),[o,s]=x.useState(t),[i,a]=x.useState(!1);if(x.useEffect(()=>{const c=r.checkFlag(e,null);if(c!=null){s(c),a(!0);return}let d=!0;return(async()=>{try{const p=`${n}/_/feature-flags/${encodeURIComponent(e)}`,m=await fetch(p,{method:"GET",headers:{"Content-Type":"application/json"},credentials:"include"});if(!m.ok){console.warn(`Failed to fetch feature flag '${e}': ${m.status} ${m.statusText}`),d&&(s(t),a(!0));return}const w=await m.json();if(d){const f=typeof w.value=="boolean"?w.value:t;s(f),a(!0)}}catch(p){console.error(`Error fetching feature flag '${e}':`,p),d&&(s(t),a(!0))}})(),()=>{d=!1}},[e,t,n,r]),!i&&r.flags.size===0)return t;const l=r.checkFlag(e,null);return l??o}function rv(){const e=x.useContext(Fn);if(!e)throw new Error("useFeatureFlags must be used within a FeatureFlagsProvider. Wrap your component tree with <FeatureFlagsProvider> to use this hook.");return e}function ov(e,t=""){const n=x.useContext(Fn),[r,o]=x.useState(null),[s,i]=x.useState(void 0),[a,l]=x.useState(!0);x.useEffect(()=>{const d=n.getVariant(e);if(d!==null){o(d.variant),i(d.payload),l(!1);return}let h=!0;return(async()=>{l(!0);try{const m=`${t}/_/feature-flags/${encodeURIComponent(e)}`,w=await fetch(m,{method:"GET",headers:{"Content-Type":"application/json"},credentials:"include"});if(!w.ok){console.warn(`Failed to fetch variant for flag '${e}': ${w.status} ${w.statusText}`),h&&(o(null),i(void 0),l(!1));return}const f=await w.json();if(h){const v=typeof f.value=="string"?f.value:(f.value===null||f.value===void 0,null);o(v),i(void 0),l(!1)}}catch(m){console.error(`Error fetching variant for flag '${e}':`,m),h&&(o(null),i(void 0),l(!1))}})(),()=>{h=!1}},[e,t,n]);const c=n.getVariant(e);return c!==null?{variant:c.variant,payload:c.payload,isLoading:!1}:{variant:r,payload:s,isLoading:a}}const hu=({flag:e,children:t,fallback:n=null,invert:r=!1,gatewayUrl:o=""})=>{const s=pu(e,!1,o);return(r?!s:s)?u.jsx(u.Fragment,{children:t}):u.jsx(u.Fragment,{children:n})};hu.displayName="FeatureFlagGuard",E.Alert=Kr,E.ApplicationIcon=Da,E.Authorized=Bo,E.Badge=Uo,E.Badges=zo,E.Button=wr,E.ClipboardCheckIcon=$a,E.ClipboardIcon=Na,E.ConfirmDialog=Gc,E.CopyToClipboardButton=qp,E.Dialog=ae,E.DropdownList=Cr,E.EmptyState=Is,E.ErrorState=As,E.ExtendExtensionPoint=Lp,E.ExtensionPoint=Ta,E.EyeIcon=Jl,E.FeatureFlagGuard=hu,E.FeatureFlagsContext=Fn,E.FeatureFlagsProvider=fu,E.FieldGroup=Ba,E.Input=xr,E.InputError=za,E.Label=Wa,E.List=Fe,E.ModulePlaceHolder=ja,E.Pagination=ks,E.PaginationContent=Os,E.PaginationEllipsis=Ds,E.PaginationItem=Mn,E.PaginationLink=Nn,E.PaginationNext=js,E.PaginationPrevious=Rs,E.PasswordInput=Sm,E.Pill=Mg,E.PlatformEventListener=Up,E.PlatformEvents=Fu,E.PluralizeCounter=Ls,E.SearchAutocomplete=Qa,E.SearchInput=Vo,E.Select=Wo,E.Show=st,E.Skeleton=Er,E.SkeletonList=Ja,E.Spinner=Kl,E.Switch=Zl,E.Table=au,E.Tabs=_m,E.TabsContent=Em,E.TabsList=xm,E.TabsTrigger=Cm,E.TextArea=Ga,E.Tooltip=Ql,E.authorized=Hp,E.dropdownListStyles=At,E.extensionPoint=Mp,E.getApplications=co,E.getInitials=td,E.getOperations=ui,E.hasAccess=fi,E.initializeMicroFrontend=ev,E.isPlatformCustomizationCompleted=Qd,E.isValidEmail=ed,E.logout=Zu,E.navigateTo=Xu,E.platformHaveAnyCustomization=qd,E.setupTestEnvironment=tv,E.useApplicationIcon=wi,E.useApplicationJSModule=Zn,E.useApplicationMenu=pd,E.useApplicationUIModule=bi,E.useApplications=vi,E.useAuth=Yn,E.useCatalog=Vt,E.useCurrentApplication=po,E.useCurrentApplicationName=Ai,E.useCurrentJSModule=_d,E.useDocumentationMenuItems=Si,E.useDynamicFonts=Li,E.useDynamicStyleSheet=Di,E.useExtendExtensionPoint=Ri,E.useExtensionPoint=Oi,E.useFeatureFlag=pu,E.useFeatureFlags=rv,E.useGetPlatformTheme=Gd,E.useHasNoSession=Qu,E.useLocation=si,E.useModule=uo,E.useModuleCommonPaths=Ku,E.useModuleConfig=pi,E.useModuleConfigByName=hi,E.useModuleMenu=_i,E.useModuleMetadata=Sn,E.useMutableCatalog=Wu,E.useNotifications=So,E.useOperations=di,E.usePAECustomizationsLoadingState=Vd,E.usePAEState=Qn,E.usePlatformCustomization=Wd,E.usePlatformEventListener=ji,E.useResource=yp,E.useResourceActions=_a,E.useServiceBaseURL=Pi,E.useServiceInvoker=ho,E.useTenants=Rp,E.useTrackEvent=Td,E.useTrackEvents=ki,E.useUIApplications=yi,E.useUserState=Dp,E.useVariant=ov,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"})});
|
|
253
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return g.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},yg="DialogDescriptionWarning",bg=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Rc(yg).contentName}}.`;return g.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},wg=yc,_g=_c,xg=xc,Cg=Cc,Eg=Sc,Sg=Ac,Tg=Oc;const jc={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"},Dc=C.forwardRef(({children:e,className:t,...r},n)=>{const o=D(kt.Header,t);return u.jsx("div",{ref:n,className:o,...r,children:e})});Dc.displayName="Header";const Lc=C.forwardRef(({children:e,className:t,...r},n)=>{const o=D(kt.Content,t);return u.jsx("div",{ref:n,className:o,...r,children:e})});Lc.displayName="Content";const Ic=C.forwardRef(({children:e,className:t,...r},n)=>{const o=D(kt.Footer,t);return u.jsx("div",{ref:n,className:o,...r,children:e})});Ic.displayName="Footer";const Nc=C.forwardRef(({children:e,className:t,...r},n)=>{const o=D(kt.Title,t);return u.jsx(Eg,{ref:n,className:o,...r,children:e})});Nc.displayName="Title";const Mc=C.forwardRef(({className:e,...t},r)=>{const n=D(kt.Close,e);return u.jsx(Tg,{ref:r,asChild:!0,className:n,...t,children:u.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M11 1L1 11M1 1L11 11",stroke:"#A9A9A9",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})});Mc.displayName="Close";const $c=C.forwardRef(({children:e,className:t,...r},n)=>{const o=D(kt.Actions,t);return u.jsx("div",{ref:n,className:o,...r,children:e})});$c.displayName="Actions";const Fc=C.forwardRef(({children:e,className:t,...r},n)=>{const o=D(kt.Description,t);return u.jsx("div",{ref:n,className:o,...r,children:e})});Fc.displayName="Description";const ae=({children:e,onClose:t,open:r=!1,className:n})=>{const o=()=>{t==null||t()};return u.jsx(wg,{onOpenChange:o,open:r,children:u.jsxs(_g,{children:[u.jsx(xg,{className:jc.Overlay}),u.jsxs(Cg,{children:[u.jsx(Sg,{}),u.jsx("div",{className:D(jc.Content,n),children:e})]})]})})};ae.displayName="Dialog",ae.Header=Dc,ae.Content=Lc,ae.Footer=Ic,ae.Actions=$c,ae.Title=Nc,ae.Description=Fc,ae.Close=Mc;const Bc={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"},Ag=({children:e,variant:t="solid",className:r})=>{const n=D(Bc.pill,Bc[`pill--${t}`],r);return u.jsx("div",{className:n,children:e})},Uc={DialogContent:"DialogContent__-WjG9",Message:"Message__AUgVP"},zc=({loading:e,title:t,children:r,className:n,onClose:o,onConfirm:s,...i})=>u.jsxs(ae,{...i,className:D(Uc.DialogContent,n),children:[u.jsxs(ae.Header,{children:[u.jsx(ae.Title,{children:t}),u.jsx(ae.Close,{onClick:o})]}),u.jsx(ae.Content,{children:typeof r=="string"?u.jsx("p",{className:Uc.Message,children:r}):r}),u.jsx(ae.Footer,{children:u.jsxs(ae.Actions,{children:[u.jsx(_n,{onClick:o,disabled:e,variant:"outlined",children:"Cancel"}),u.jsx(_n,{onClick:s,disabled:e,loading:e,variant:"contained",children:"Confirm"})]})})]});zc.displayName="ConfirmDialog";const Yn={container:"container__AjtYJ",title:"title__A2vCu",description:"description__bP6Ig",mailToText:"mailToText__SdlsE"},Hc=()=>u.jsxs("svg",{width:"200",height:"200",viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{d:"M184.415 152.221C183.936 151.406 183.401 150.621 182.892 149.824C181.61 147.817 180.327 145.809 179.045 143.801C177.102 140.759 175.159 137.717 173.215 134.676C170.766 130.841 168.316 127.006 165.866 123.171C163.068 118.79 160.27 114.41 157.472 110.03C154.484 105.352 151.496 100.674 148.508 95.9965C145.474 91.2464 142.439 86.4963 139.405 81.7463C136.513 77.2189 133.621 72.6915 130.729 68.1641C128.123 64.084 125.517 60.0039 122.91 55.9238C120.748 52.5389 118.586 49.1541 116.424 45.7692C114.864 43.3273 113.304 40.8854 111.744 38.4436C110.943 37.1899 110.142 35.9362 109.342 34.6825C108.765 33.7802 108.096 32.9744 107.292 32.2572C104.604 29.8584 100.572 29.2302 97.2301 30.5252C94.5951 31.5463 92.6177 33.3853 91.0923 35.7373C90.8768 36.0696 90.6658 36.405 90.4526 36.7387C89.3951 38.3941 88.3378 40.0494 87.2803 41.7049C85.5124 44.4725 83.7444 47.2402 81.9765 50.0079C79.644 53.6594 77.3114 57.3111 74.9788 60.9626C72.2632 65.2138 69.5477 69.465 66.8321 73.7162C63.8817 78.3349 60.9313 82.9536 57.9811 87.5722C54.9542 92.3106 51.9274 97.0491 48.9006 101.787C45.9557 106.398 43.0107 111.008 40.0658 115.618C37.3487 119.872 34.6316 124.125 31.9145 128.379C29.6106 131.986 27.3067 135.592 25.0028 139.199C23.2565 141.933 21.5101 144.667 19.7639 147.4C18.7335 149.013 17.7031 150.626 16.6728 152.239C14.8665 155.067 13.7231 158.171 14.23 161.595C14.9672 166.576 19.2366 170.131 24.2215 170.137C25.559 170.139 26.8963 170.137 28.2338 170.137C30.9198 170.137 33.6058 170.137 36.2918 170.137C40.0725 170.137 43.8533 170.137 47.6341 170.137C52.2557 170.137 56.8772 170.137 61.4989 170.137C66.7339 170.137 71.969 170.137 77.204 170.137C82.7467 170.137 88.2894 170.137 93.8322 170.137C99.4529 170.137 105.074 170.137 110.694 170.137C116.139 170.137 121.584 170.137 127.029 170.137C132.044 170.137 137.06 170.137 142.075 170.137C146.425 170.137 150.776 170.137 155.127 170.137C158.516 170.137 161.904 170.137 165.293 170.137C167.49 170.137 169.686 170.137 171.883 170.137C172.633 170.137 173.384 170.137 174.135 170.137C178.404 170.087 182.136 167.627 184.212 163.932C186.248 160.307 186.562 155.866 184.415 152.221ZM94.0937 37.3471C94.0897 37.3539 94.0862 37.3597 94.0824 37.3661C94.0826 37.3652 94.0831 37.3642 94.0833 37.3632C94.0844 37.3581 94.0909 37.3518 94.0937 37.3471ZM178.584 164.489C178.476 164.538 178.524 164.516 178.584 164.489V164.489ZM180.937 162.79C180.979 162.72 181.118 162.485 181.127 162.498C181.145 162.528 181.058 162.647 180.937 162.79ZM181.821 160.333C181.806 160.446 181.782 160.646 181.773 160.697C181.736 160.919 181.686 161.139 181.637 161.359C181.637 161.359 181.637 161.359 181.637 161.359C181.629 161.377 181.621 161.399 181.61 161.426C181.54 161.604 181.472 161.785 181.406 161.965C181.402 161.977 181.398 161.988 181.394 161.999C181.304 162.16 181.219 162.323 181.123 162.481C181.074 162.562 181.016 162.641 180.97 162.724C180.949 162.762 180.936 162.785 180.93 162.798C180.727 163.035 180.436 163.332 180.388 163.385C180.696 163.049 180.535 163.229 180.318 163.42C180.172 163.548 180.018 163.666 179.869 163.79C179.848 163.807 179.831 163.822 179.816 163.835C179.797 163.845 179.775 163.857 179.747 163.873C179.576 163.97 179.411 164.078 179.238 164.171C179.043 164.277 178.844 164.373 178.642 164.463C178.556 164.494 178.471 164.526 178.384 164.553C177.532 164.819 176.835 164.945 176.084 164.954C175.296 164.954 174.508 164.954 173.719 164.954C171.519 164.954 169.318 164.954 167.118 164.954C163.751 164.954 160.385 164.954 157.019 164.954C152.756 164.954 148.493 164.954 144.231 164.954C139.275 164.954 134.319 164.954 129.364 164.954C123.981 164.954 118.598 164.954 113.215 164.954C107.651 164.954 102.086 164.954 96.5224 164.954C91.024 164.954 85.5255 164.954 80.0271 164.954C74.8407 164.954 69.6543 164.954 64.4679 164.954C59.8401 164.954 55.2123 164.954 50.5846 164.954C46.7784 164.954 42.9721 164.954 39.166 164.954C36.3891 164.954 33.6122 164.954 30.8354 164.954C29.3555 164.954 27.8756 164.954 26.3957 164.954C25.9641 164.954 25.534 164.958 25.1029 164.922C23.4511 164.785 22.11 164.207 20.7626 163.127C20.3445 162.792 19.7301 162.074 19.3142 161.434C19.2096 161.273 19.1102 161.109 19.0161 160.942C18.9707 160.861 18.8013 160.534 18.8105 160.558C18.7451 160.414 18.5329 159.846 18.4422 159.537C18.3467 159.211 18.2692 158.879 18.2129 158.544C18.2174 158.545 18.1876 158.285 18.1815 158.192C18.1669 157.964 18.1617 157.736 18.1651 157.508C18.166 157.455 18.1793 157.245 18.185 157.131C18.2055 157.005 18.2441 156.74 18.2591 156.662C18.2913 156.493 18.3319 156.326 18.3726 156.16C18.2821 156.539 18.4099 156.072 18.4891 155.866C18.518 155.79 18.6652 155.487 18.6846 155.432C18.7383 155.339 18.7932 155.243 18.8125 155.21C18.8692 155.114 18.9282 155.019 18.9875 154.924C19.0003 154.904 19.0137 154.884 19.0265 154.863C19.2211 154.554 19.4201 154.247 19.617 153.939C20.6335 152.348 21.6501 150.756 22.6667 149.165C24.3869 146.472 26.107 143.779 27.8271 141.086C30.0848 137.552 32.3425 134.017 34.6001 130.483C37.2646 126.312 39.9291 122.141 42.5935 117.97C45.5011 113.418 48.4086 108.866 51.3161 104.315C54.3131 99.6229 57.31 94.9312 60.3069 90.2397C63.2394 85.6489 66.172 81.058 69.1045 76.4672C71.819 72.2178 74.5334 67.9683 77.2479 63.719C79.5904 60.0517 81.9331 56.3844 84.2756 52.7172C86.0852 49.8842 87.8948 47.0513 89.7044 44.2184C90.8459 42.4315 91.9873 40.6446 93.1287 38.8578C93.3976 38.4368 93.6701 38.0178 93.9356 37.5945C93.9507 37.5705 93.9737 37.5416 93.9972 37.511C93.8744 37.7231 94.1597 37.2638 94.301 37.0921C94.4017 36.9695 94.5483 36.8114 94.5423 36.8113C94.6372 36.721 94.7333 36.6319 94.8323 36.546C94.9866 36.4121 95.1478 36.2876 95.3084 36.1615C94.9392 36.4513 95.3917 36.1121 95.5441 36.0212C96.7591 35.2961 98.1095 34.9498 99.7068 35.0725C101.356 35.1993 102.702 35.7434 104.07 36.8307C104.685 37.3192 105.311 38.1542 105.817 38.9457C106.592 40.1592 107.367 41.3727 108.142 42.5862C109.667 44.9733 111.192 47.3605 112.717 49.7476C114.838 53.0679 116.959 56.3881 119.08 59.7083C121.629 63.6999 124.179 67.6913 126.729 71.6829C129.579 76.1455 132.43 80.6082 135.281 85.0709C138.267 89.7458 141.253 94.4206 144.239 99.0955C147.207 103.742 150.176 108.388 153.144 113.035C155.94 117.412 158.736 121.789 161.532 126.167C164.002 130.034 166.473 133.902 168.943 137.769C170.935 140.886 172.926 144.003 174.917 147.12C176.27 149.239 177.623 151.357 178.976 153.475C179.551 154.376 180.134 155.272 180.702 156.177C181.138 156.872 181.311 157.219 181.54 157.972C181.6 158.167 181.652 158.363 181.697 158.561C181.711 158.623 181.759 158.873 181.78 158.97C181.787 159.063 181.815 159.319 181.819 159.383C181.831 159.579 181.836 159.775 181.834 159.972C181.834 160.022 181.825 160.217 181.821 160.333Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M98.5821 122.507C99.019 122.759 99.6307 122.629 100.038 122.389C101.205 121.703 101.925 120.275 102.041 118.92C103.115 106.361 106.514 75.1051 106.514 68.3062C106.514 59.902 92.8134 60.6835 92.0664 71.3279C91.6887 76.7103 97.5083 119.581 97.8266 121.187C97.9188 121.652 98.1423 122.253 98.5821 122.507Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M101.841 133.945C101.826 133.94 101.812 133.934 101.797 133.929C98.2767 132.6 94.4012 134.976 93.9964 138.717C93.9765 138.901 93.9636 139.086 93.958 139.272C93.8552 142.712 96.4467 146.126 99.8464 146.664C103.245 147.201 106.896 144.494 107.099 141.059C107.285 137.909 104.789 135.072 101.841 133.945Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M161.729 131.662C161.873 131.367 162.082 130.81 161.71 130.584C161.365 130.375 160.901 130.836 160.768 131.107C156.804 139.201 152.84 147.295 148.877 155.389C147.759 157.67 146.642 159.952 145.525 162.233C145.38 162.528 145.171 163.085 145.543 163.311C145.888 163.52 146.352 163.059 146.485 162.788C150.449 154.694 154.413 146.6 158.377 138.506C159.494 136.225 160.611 133.943 161.729 131.662Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M144.786 152.64C144.441 152.43 143.977 152.891 143.844 153.163C142.363 156.187 140.882 159.21 139.402 162.234C139.257 162.528 139.048 163.085 139.42 163.311C139.765 163.521 140.229 163.06 140.362 162.788C141.843 159.764 143.323 156.741 144.804 153.717C144.948 153.423 145.158 152.866 144.786 152.64Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M136.792 156.459C136.447 156.25 135.983 156.711 135.85 156.982C134.993 158.733 134.136 160.483 133.279 162.233C133.134 162.528 132.925 163.085 133.297 163.311C133.642 163.52 134.106 163.06 134.239 162.788C135.096 161.037 135.953 159.287 136.81 157.537C136.955 157.242 137.164 156.685 136.792 156.459Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M129.1 159.663C128.755 159.454 128.291 159.915 128.158 160.186C127.824 160.869 127.49 161.551 127.155 162.234C127.011 162.528 126.802 163.086 127.174 163.311C127.519 163.521 127.983 163.06 128.116 162.788C128.45 162.106 128.784 161.423 129.118 160.741C129.263 160.447 129.472 159.889 129.1 159.663Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M165.835 137.946C165.979 137.652 166.188 137.094 165.816 136.868C165.471 136.659 165.007 137.12 164.874 137.392C161.72 143.832 158.566 150.273 155.412 156.713C154.511 158.553 153.609 160.393 152.708 162.233C152.564 162.528 152.355 163.085 152.726 163.311C153.071 163.52 153.535 163.06 153.669 162.788C156.823 156.347 159.977 149.907 163.131 143.466C164.032 141.626 164.933 139.786 165.835 137.946Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M169.923 143.153C169.578 142.943 169.114 143.404 168.98 143.676C165.951 149.862 162.921 156.048 159.892 162.234C159.748 162.528 159.538 163.086 159.91 163.311C160.255 163.521 160.719 163.06 160.852 162.788C163.882 156.602 166.911 150.416 169.941 144.23C170.085 143.936 170.294 143.378 169.923 143.153Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M174.332 148.821C173.987 148.611 173.523 149.072 173.39 149.344C171.286 153.64 169.182 157.937 167.077 162.234C166.933 162.528 166.724 163.086 167.095 163.311C167.44 163.521 167.905 163.06 168.038 162.788C170.142 158.492 172.246 154.195 174.351 149.898C174.495 149.604 174.704 149.046 174.332 148.821Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M178.197 155.597C177.852 155.387 177.388 155.848 177.255 156.12C176.257 158.158 175.259 160.196 174.261 162.233C174.117 162.528 173.907 163.085 174.279 163.311C174.624 163.52 175.088 163.06 175.221 162.788C176.219 160.75 177.217 158.712 178.215 156.674C178.36 156.38 178.569 155.823 178.197 155.597Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M97.1962 40.2135C97.3477 39.9803 97.4773 39.477 97.1807 39.2971C96.8678 39.1072 96.5194 39.5265 96.3794 39.7419C94.7034 42.3205 93.0556 44.9176 91.4179 47.5205C88.1743 52.6759 84.976 57.8633 81.9271 63.1367C80.4155 65.7509 78.9283 68.3855 77.5879 71.0925C77.4642 71.3423 77.2879 71.8174 77.6034 72.0088C77.8975 72.1874 78.2905 71.7947 78.4047 71.564C80.9657 66.3919 83.9726 61.4308 86.9671 56.5018C89.7369 51.9427 92.5713 47.4226 95.4474 42.9297C96.0279 42.0228 96.6094 41.1164 97.1962 40.2135Z",fill:"var(--pae-shell-color-secondary)"}),u.jsx("path",{d:"M75.3224 76.1247C75.0193 75.9408 74.6477 76.3459 74.521 76.5695C74.1645 77.1991 73.808 77.8286 73.4515 78.4581C73.3144 78.7003 73.1605 79.1884 73.467 79.3744C73.77 79.5583 74.1416 79.1532 74.2684 78.9296C74.6248 78.3001 74.9814 77.6705 75.3378 77.0411C75.475 76.7988 75.6288 76.3107 75.3224 76.1247Z",fill:"var(--pae-shell-color-secondary)"})]});Hc.displayName="WarningIcon";const Pg="support@bluealba.com",Og="@bluealba/pae-shell-ui",Ps=()=>{const{supportEmail:e=Pg}=mi(Og),t=`mailto:${e}?Subject=Support`;return u.jsxs("div",{className:Yn.container,children:[u.jsx(Hc,{}),u.jsx("div",{className:Yn.title,children:"Oops! Something went wrong"}),u.jsxs("div",{className:Yn.description,children:["If the error persists, ",u.jsx("a",{className:Yn.mailToText,href:t,children:"contact the administrator."})]})]})};Ps.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"},Wc=C.forwardRef(({children:e,className:t,selected:r,disabled:n=!1,...o},s)=>{const i=D(ke.Item,{[ke["Item--selected"]]:r,[ke["Item--disabled"]]:n},t);return u.jsx("li",{ref:s,className:i,role:"listitem","aria-disabled":n,...o,children:e})});Wc.displayName="Item";const Vc=C.forwardRef(({children:e,className:t,...r},n)=>{const o=D(ke.Title,t);return u.jsx("h3",{ref:n,className:o,...r,children:e})});Vc.displayName="Title";const Gc=C.forwardRef(({children:e,className:t,...r},n)=>{const o=D(ke.Description,t);return u.jsx("p",{ref:n,className:o,...r,children:e})});Gc.displayName="Description";const Os=({className:e,...t})=>u.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:[u.jsx("path",{d:"M6 6.5C6.27614 6.5 6.5 6.27614 6.5 6C6.5 5.72386 6.27614 5.5 6 5.5C5.72386 5.5 5.5 5.72386 5.5 6C5.5 6.27614 5.72386 6.5 6 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M9.5 6.5C9.77614 6.5 10 6.27614 10 6C10 5.72386 9.77614 5.5 9.5 5.5C9.22386 5.5 9 5.72386 9 6C9 6.27614 9.22386 6.5 9.5 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M2.5 6.5C2.77614 6.5 3 6.27614 3 6C3 5.72386 2.77614 5.5 2.5 5.5C2.22386 5.5 2 5.72386 2 6C2 6.27614 2.22386 6.5 2.5 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"})]});Os.displayName="HorizontalDots";const qc=C.forwardRef(({children:e,className:t,onClick:r,...n},o)=>{const s=C.useRef(null),[i,a]=C.useState(!1),l=D(ke.Actions,t),c=()=>{const w=At["DropdownList--open"],p=At["DropdownList--closed"];document.querySelectorAll(`.${w}`).forEach(_=>{_!==s.current&&(_.classList.remove(w),_.classList.add(p))})},d=w=>{w.stopPropagation(),i?h():(a(!0),r==null||r(w))},h=()=>{a(!1)},f=w=>{w.key==="Escape"&&h()},m=w=>{s.current&&!s.current.contains(w.target)&&h()};return C.useEffect(()=>(i?(c(),document.addEventListener("keydown",f),document.addEventListener("click",m)):(document.removeEventListener("keydown",f),document.removeEventListener("click",m)),()=>{document.removeEventListener("keydown",f),document.removeEventListener("click",m)}),[i]),u.jsxs("div",{ref:o,className:l,onClick:d,role:"button",tabIndex:0,"data-testid":"actions",...n,children:[u.jsx(Os,{}),u.jsx(En,{align:"left",ref:s,open:i,"data-testid":"actions-dropdown",role:"menu","aria-label":"Actions",children:e})]})});qc.displayName="Actions";const Qc=C.forwardRef(({children:e,className:t,...r},n)=>{const o=D(ke.Action,t);return u.jsx("button",{ref:n,className:o,...r,children:e})});Qc.displayName="Action";const Yc=C.forwardRef(({children:e,className:t,...r},n)=>{const o=D(ke.Icon,t);return u.jsx("div",{ref:n,className:o,...r,children:e})});Yc.displayName="Icon";const Fe=C.forwardRef(({children:e,className:t,size:r="medium",variant:n,...o},s)=>{const i=D(ke.List,{[ke[`List--${r}`]]:r,[ke[`List--${n}`]]:n},t);return u.jsx("ul",{ref:s,className:i,role:"list",...o,children:e})});Fe.displayName="List",Fe.Item=Wc,Fe.Badges=Ho,Fe.Badge=zo,Fe.Title=Vc,Fe.Description=Gc,Fe.Actions=qc,Fe.Action=Qc,Fe.Icon=Yc;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"},Kc=({className:e,...t})=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,...t,children:[u.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),u.jsx("path",{d:"M9 6l6 6l-6 6"})]});Kc.displayName="ChevronRight";const Zc=({className:e,...t})=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,...t,children:[u.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),u.jsx("path",{d:"M15 6l-6 6l6 6"})]});Zc.displayName="ChevronLeft";const ks=({className:e,...t})=>u.jsx("nav",{role:"navigation","aria-label":"pagination",className:D(Qe.Navigation,e),...t});ks.displayName="Pagination";const Rs=g.forwardRef(({className:e,...t},r)=>u.jsx("ul",{ref:r,className:D(Qe.PaginationContent,e),...t}));Rs.displayName="PaginationContent";const Nr=g.forwardRef(({className:e,...t},r)=>u.jsx("li",{ref:r,className:e,...t}));Nr.displayName="PaginationItem";const Mr=({className:e,isActive:t,...r})=>u.jsx("a",{"aria-current":t?"page":void 0,className:D(Qe.PaginationLink,t&&Qe.Active,e),...r});Mr.displayName="PaginationLink";const js=({className:e,disabled:t,...r})=>u.jsxs(Mr,{"aria-label":"Go to previous page",className:D(t&&Qe.Disabled,Qe.Prev,e),...r,children:[u.jsx(Zc,{}),u.jsx("span",{children:"Previous"})]});js.displayName="PaginationPrevious";const Ds=({className:e,disabled:t,...r})=>u.jsxs(Mr,{"aria-label":"Go to next page",className:D(t&&Qe.Disabled,Qe.Next,e),...r,children:[u.jsx("span",{children:"Next"}),u.jsx(Kc,{})]});Ds.displayName="PaginationNext";const Ls=({className:e,...t})=>u.jsx("span",{"aria-hidden":!0,className:D(Qe.PaginationEllipsis,e),...t,children:u.jsx(Os,{})});Ls.displayName="PaginationEllipsis";function kg(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 Xc={exports:{}};(function(e,t){(function(r,n){typeof kg=="function"?e.exports=n():r.pluralize=n()})(zu,function(){var r=[],n=[],o={},s={},i={};function a(p){return typeof p=="string"?new RegExp("^"+p+"$","i"):p}function l(p,v){return p===v?v:p===p.toLowerCase()?v.toLowerCase():p===p.toUpperCase()?v.toUpperCase():p[0]===p[0].toUpperCase()?v.charAt(0).toUpperCase()+v.substr(1).toLowerCase():v.toLowerCase()}function c(p,v){return p.replace(/\$(\d{1,2})/g,function(_,x){return v[x]||""})}function d(p,v){return p.replace(v[0],function(_,x){var T=c(v[1],arguments);return l(_===""?p[x-1]:_,T)})}function h(p,v,_){if(!p.length||o.hasOwnProperty(p))return v;for(var x=_.length;x--;){var T=_[x];if(T[0].test(v))return d(v,T)}return v}function f(p,v,_){return function(x){var T=x.toLowerCase();return v.hasOwnProperty(T)?l(x,T):p.hasOwnProperty(T)?l(x,p[T]):h(T,x,_)}}function m(p,v,_,x){return function(T){var S=T.toLowerCase();return v.hasOwnProperty(S)?!0:p.hasOwnProperty(S)?!1:h(S,S,_)===S}}function w(p,v,_){var x=v===1?w.singular(p):w.plural(p);return(_?v+" ":"")+x}return w.plural=f(i,s,r),w.isPlural=m(i,s,r),w.singular=f(s,i,n),w.isSingular=m(s,i,n),w.addPluralRule=function(p,v){r.push([a(p),v])},w.addSingularRule=function(p,v){n.push([a(p),v])},w.addUncountableRule=function(p){if(typeof p=="string"){o[p.toLowerCase()]=!0;return}w.addPluralRule(p,"$0"),w.addSingularRule(p,"$0")},w.addIrregularRule=function(p,v){v=v.toLowerCase(),p=p.toLowerCase(),i[p]=v,s[v]=p},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(p){return w.addIrregularRule(p[0],p[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(p){return w.addPluralRule(p[0],p[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(p){return w.addSingularRule(p[0],p[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(w.addUncountableRule),w})})(Xc);var Rg=Xc.exports;const jg=Hu(Rg),Is=({count:e,singularText:t,children:r=(n,o)=>`${n} ${o}`})=>u.jsx(u.Fragment,{children:r(e,jg(t,e))});Is.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"},Jc={EmptyStateContainer:"EmptyStateContainer__Q9FEb",Message:"Message__IHK6M"},eu=({size:e=64})=>u.jsxs("svg",{width:e,height:e,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsxs("g",{clipPath:"url(#clip-path)",children:[u.jsx("mask",{id:"mask0_1070_8032",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"64",height:"64",children:u.jsx("path",{d:"M64 0H0V64H64V0Z",fill:"white"})}),u.jsx("g",{mask:"url(#mask0_1070_8032)",children:u.jsx("path",{d:"M40 10.6673H13.3333V53.334H50.6667V21.334H40V10.6673ZM8 7.97932C8 6.51798 9.192 5.33398 10.664 5.33398H42.6667L56 18.6673V55.982C56.0024 56.3321 55.936 56.6793 55.8043 57.0039C55.6725 57.3284 55.4781 57.6239 55.2323 57.8732C54.9864 58.1225 54.6936 58.3209 54.3712 58.4572C54.0485 58.5935 53.7021 58.6649 53.352 58.6673H10.648C9.94768 58.6625 9.27739 58.3823 8.78192 57.8873C8.28645 57.3924 8.00557 56.7223 8 56.022V7.97932ZM36.0773 38.5233C33.8408 39.83 31.2056 40.2788 28.6627 39.786C26.1197 39.2929 23.8428 37.8921 22.2566 35.8444C20.6704 33.7966 19.883 31.2417 20.0414 28.6564C20.1998 26.071 21.293 23.6315 23.1173 21.7927C24.9532 19.9571 27.3955 18.8541 29.9864 18.6904C32.5773 18.5267 35.1389 19.3134 37.1912 20.9032C39.2435 22.493 40.6456 24.7767 41.1347 27.3263C41.6237 29.8759 41.1664 32.5164 39.848 34.7527L45.7413 40.646L41.9707 44.4193L36.0773 38.5233ZM34.4293 33.1047C34.9387 32.6126 35.3451 32.0241 35.6245 31.3735C35.904 30.7228 36.0512 30.0231 36.0573 29.3148C36.0635 28.6065 35.9285 27.9044 35.6603 27.2489C35.3923 26.5935 34.9963 25.998 34.4955 25.4972C33.9947 24.9964 33.3992 24.6004 32.7437 24.3323C32.0883 24.0641 31.3861 23.9292 30.6779 23.9353C29.9696 23.9415 29.2699 24.0886 28.6192 24.3681C27.9685 24.6476 27.38 25.0539 26.888 25.5633C25.9165 26.5692 25.3789 27.9164 25.3911 29.3148C25.4032 30.7132 25.9641 32.0508 26.9531 33.0396C27.9419 34.0287 29.2795 34.5895 30.6779 34.6015C32.0763 34.6137 33.4235 34.0761 34.4293 33.1047Z",fill:"currentColor"})})]}),u.jsx("defs",{children:u.jsx("clipPath",{id:"clip-path",children:u.jsx("rect",{width:"64",height:"64",fill:"white"})})})]});eu.displayName="EmptyStateIcon";const Ns=({message:e="No results found"})=>u.jsxs("div",{className:D(Jc.EmptyStateContainer),children:[u.jsx(eu,{}),u.jsx("p",{className:Jc.Message,children:e})]});Ns.displayName="EmptyState";const Dg=(e,t,r=1)=>{if(e<=1)return["1"];const n=[],o=s=>{(n.length===0||n[n.length-1]!==s)&&n.push(s)};o(1),t-r>2&&o("...");for(let s=Math.max(2,t-r);s<=Math.min(e-1,t+r);s++)o(s);return t+r<e-1&&o("..."),o(e),n.map(String)},tu=({page:e,totalPages:t,onPageChange:r})=>{const n=e===1,o=e===t;return u.jsx(ks,{className:me.Pagination,children:u.jsxs(Rs,{children:[u.jsx(Nr,{children:u.jsx(js,{className:D({[me.PointerNone]:n}),onClick:()=>!n&&r(e-1)})}),Dg(t,e).map((s,i)=>u.jsxs(Nr,{children:[s==="..."&&u.jsx(Ls,{}),s!=="..."&&u.jsx(Mr,{isActive:+s===e,onClick:()=>+s!==e&&r(+s),children:s})]},i)),u.jsx(Nr,{children:u.jsx(Ds,{className:D({[me.PointerNone]:o}),onClick:()=>!o&&r(e+1)})})]})})};tu.displayName="TablePagination";const ru=({className:e,...t})=>u.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:u.jsx("path",{d:"M6 2.5V9.5M6 9.5L9.5 6M6 9.5L2.5 6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})});ru.displayName="ArrowDown";const nu=({columns:e,data:t,isLoading:r,totalCount:n=0,headerLabel:o,sort:s,loadingConfig:i,pagination:a,onRowClick:l})=>{const{count:c=5,height:d=40}=i||{},h=v=>v.sortName??v.name,f=v=>D({[me.Cell]:!0,[me.Center]:v.align==="center",[me.Right]:v.align==="right",[me.Sortable]:v.isSortable}),m=v=>{if(!s)return"";const _=h(v);return D({[me.SortIcon]:!0,[me.Active]:v.isSortable&&s.field===_,[me.Rotate]:s.field===_&&s.direction==="asc"})},w=v=>()=>l==null?void 0:l(v),p=v=>()=>{if(!s||!v.isSortable)return;const{field:_,direction:x,onSort:T}=s,S=h(v);_===S?T(S,x==="asc"?"desc":"asc"):T(S,"asc")};return u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:me.TableContainer,children:[o&&u.jsx("div",{className:me.TableHeader,children:u.jsx(Is,{count:n,singularText:o,children:(v,_)=>`${v} ${_}`})}),u.jsxs("table",{className:me.Table,children:[u.jsx("thead",{children:u.jsx("tr",{children:e.map(v=>u.jsx("th",{children:u.jsxs("div",{className:f(v),onClick:p(v),children:[u.jsx("span",{children:v.displayName}),v.isSortable&&u.jsx(ru,{className:m(v)})]})},v.name))})}),u.jsx("tbody",{children:u.jsxs(st,{children:[u.jsx(st.When,{condition:r,children:[...Array(c).keys()].map(v=>u.jsx("tr",{children:u.jsx("td",{colSpan:e.length,style:{padding:4},children:u.jsx(Sn,{height:d})})},v))}),u.jsx(st.When,{condition:!t.length,children:u.jsx("tr",{children:u.jsx("td",{colSpan:e.length,children:u.jsx(Ns,{})})})}),u.jsx(st.Else,{children:t.map((v,_)=>u.jsx("tr",{className:l&&me.selectable,onClick:w(v),children:e.map(x=>u.jsx("td",{style:x.width?{width:x.width}:{},children:u.jsx("div",{className:f(x),children:x.cellRenderer?x.cellRenderer(v):x.valueGetter?x.valueGetter(v):v[x.name]})},`${x.name}-${_}`))},_))})]})})]})]}),a&&u.jsx(tu,{...a})]})};nu.displayName="Table";const Kn={alert:"alert__LblpE",default:"default__mgO6A",destructive:"destructive__bLNSM",alertTitle:"alertTitle__gblKf",alertDescription:"alertDescription__BuVHV"},Zn=({className:e,variant:t="default",children:r,...n})=>u.jsx("div",{"data-slot":"alert",role:"alert",className:D(Kn.alert,Kn[t],e),...n,children:r}),Lg=g.forwardRef(({children:e,className:t,...r},n)=>u.jsx("div",{ref:n,"data-slot":"alert-title",className:D(Kn.alertTitle,t),...r,children:e})),Ig=g.forwardRef(({children:e,className:t,...r},n)=>u.jsx("div",{ref:n,"data-slot":"alert-description",className:D(Kn.alertDescription,t),...r,children:e}));Zn.displayName="Alert",Zn.Title=Lg,Zn.Description=Ig;function ou(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 Xn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ou(Object(r),!0).forEach(function(n){Ng(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ou(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function su(e){return(su=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 Ng(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ms(e){return(Ms=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 iu(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 s="single-spa-application:".concat(o);return function(){var i=document.getElementById(s);return i||((i=document.createElement("div")).id=s,document.body.appendChild(i)),i}}(t))!="function")throw Error("single-spa's dom-element-getter-helpers was given an invalid domElementGetter for application or parcel '".concat(t.name,"'. Expected a function, received ").concat(Ms(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(Ms(n)));return n}}var $r=null;try{$r=require("react").createContext()}catch{}var Mg={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 $g(e){if(su(e)!=="object")throw new Error("single-spa-react requires a configuration object");var t,r=Xn(Xn({},Mg),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");!$r&&r.React.createContext&&($r=r.React.createContext()),r.SingleSpaRoot=function(o){function s(i){s.displayName="SingleSpaRoot(".concat(i.name,")")}return s.prototype=Object.create(o.React.Component.prototype),s.prototype.componentDidMount=function(){setTimeout(this.props.mountFinished)},s.prototype.componentWillUnmount=function(){setTimeout(this.props.unmountFinished)},s.prototype.render=function(){return setTimeout(this.props.updateFinished),this.props.children},s}(r);var n={bootstrap:Fg.bind(null,r),mount:Bg.bind(null,r),unmount:Ug.bind(null,r)};return r.parcelCanUpdate&&(n.update=zg.bind(null,r)),n}function Fg(e,t){return e.rootComponent?Promise.resolve():e.loadRootComponent(t).then(function(r){e.rootComponent=r})}function Bg(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=au(e,t,function(){r(this)}),s=iu(e,t)(),i=function(a){var l=a.reactDom,c=a.renderType,d=a.elementToRender,h=a.domElement,f=l[c];if(typeof f!="function")throw new Error('renderType "'.concat(c,'" did not return a function.'));switch(c){case"createRoot":case"unstable_createRoot":case"createBlockingRoot":case"unstable_createBlockingRoot":var m=f(h);return m.render(d),m;case"hydrateRoot":return f(h,d);case"hydrate":default:return f(d,h),null}}({elementToRender:o,domElement:s,reactDom:$s(e),renderType:Hg(e)});e.domElements[t.name]=s,e.renderResults[t.name]=i})}function Ug(e,t){return new Promise(function(r){e.unmountResolves[t.name]=r;var n=e.renderResults[t.name];n&&n.unmount?n.unmount():$s(e).unmountComponentAtNode(e.domElements[t.name]),delete e.domElements[t.name],delete e.renderResults[t.name]})}function zg(e,t){return new Promise(function(r){e.updateResolves[t.name]||(e.updateResolves[t.name]=[]),e.updateResolves[t.name].push(r);var n=au(e,t,null),o=e.renderResults[t.name];if(o&&o.render)o.render(n);else{var s=iu(e,t)();$s(e).render(n,s)}})}function $s(e){return e.ReactDOMClient||e.ReactDOM}function Hg(e){return typeof e.renderType=="function"?e.renderType():e.renderType}function au(e,t,r){var n=e.React.createElement(e.rootComponent,t),o=$r?e.React.createElement($r.Provider,{value:t},n):n;return(e.errorBoundary||t.errorBoundary||e.errorBoundaryClass||t.errorBoundaryClass)&&(e.errorBoundaryClass=e.errorBoundaryClass||t.errorBoundaryClass||function(s,i){function a(l){s.React.Component.apply(this,arguments),this.state={caughtError:null,caughtErrorInfo:null},a.displayName="SingleSpaReactErrorBoundary(".concat(l.name,")")}return a.prototype=Object.create(s.React.Component.prototype),a.prototype.render=function(){return this.state.caughtError?(s.errorBoundary||i.errorBoundary)(this.state.caughtError,this.state.caughtErrorInfo,this.props):this.props.children},a.prototype.componentDidCatch=function(l,c){this.setState({caughtError:l,caughtErrorInfo:c})},a}(e,t),o=e.React.createElement(e.errorBoundaryClass,t,o)),o=e.React.createElement(e.SingleSpaRoot,Xn(Xn({},t),{},{mountFinished:r,updateFinished:function(){e.updateResolves[t.name]&&(e.updateResolves[t.name].forEach(function(s){return s()}),delete e.updateResolves[t.name])},unmountFinished:function(){e.unmountResolves[t.name]&&(e.unmountResolves[t.name](),delete e.unmountResolves[t.name])}}),o)}const Wg=e=>{const t=new Gf;return function(n){if(!n)throw new Error("Microfrontend did not receive any properties !!");const o=po(n.module.name);return u.jsx(ui,{module:o,children:u.jsxs(Zf,{client:t,children:[u.jsx(e,{...n}),u.jsx(kf,{position:"top-right",reverseOrder:!0})]})})}},Vg=({rootComponent:e,...t})=>$g({errorBoundary(r){return console.error(r),u.jsx(Ps,{})},...t,rootComponent:Wg(e)}),Gg=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?ld(t,e):t})};function lu(e){if(!e.ok)throw console.error("Feature flag API error:",e),new Error(`Feature flag API error: ${e.status} ${e.statusText}`)}class Jn{static async evaluateFlag(t,r){const n=await t(`/_/feature-flags/${encodeURIComponent(r)}`,{method:"GET",headers:{"Content-Type":"application/json"}});return lu(n),await n.json()}static async evaluateFlags(t,r,n){const o=await t("/_/feature-flags/evaluate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({flagNames:r,...n&&{customProperties:n}})});return lu(o),await o.json()}}const qg={flags:new Map,variants:new Map,isLoading:!1,error:null,checkFlag:()=>!1,getVariant:()=>null,refresh:async()=>{}},Fr=C.createContext(qg),cu=({prefetchFlags:e=[],refreshInterval:t,children:r})=>{const[n,o]=C.useState(new Map),[s,i]=C.useState(new Map),[a,l]=C.useState(!1),[c,d]=C.useState(null),h=Vt("@bluealba/pae-nestjs-gateway-service"),f=C.useCallback(async _=>{if(_.length!==0){l(!0),d(null);try{const x=await Jn.evaluateFlags(h,_),T=new Map,S=new Map;x.flags.forEach(A=>{T.set(A.flagName,A.enabled),A.variant!==void 0&&S.set(A.flagName,{variant:A.variant.name||null,payload:A.variant.payload})}),o(T),i(S)}catch(x){const T=x instanceof Error?x:new Error("Unknown error fetching feature flags");d(T),console.error("Error fetching feature flags:",T)}finally{l(!1)}}},[h]),m=C.useCallback(async()=>{e.length>0&&await f(e)},[e,f]);C.useEffect(()=>{e.length>0&&f(e)},[e,f]),C.useEffect(()=>{if(t&&t>0&&e.length>0){const _=setInterval(()=>{f(e)},t);return()=>{clearInterval(_)}}},[t,e,f]);const w=C.useCallback((_,x=!1)=>n.get(_)??x,[n]),p=C.useCallback(_=>s.get(_)??null,[s]),v=C.useMemo(()=>({flags:n,variants:s,isLoading:a,error:c,checkFlag:w,getVariant:p,refresh:m}),[n,s,a,c,w,p,m]);return u.jsx(Fr.Provider,{value:v,children:r})};cu.displayName="FeatureFlagsProvider";function uu(e,t=!1){const r=C.useContext(Fr),n=Vt("@bluealba/pae-nestjs-gateway-service"),[o,s]=C.useState(t),[i,a]=C.useState(!1);if(C.useEffect(()=>{const c=r.checkFlag(e,!1);if(c!=null){s(c),a(!0);return}let d=!0;return(async()=>{try{const f=await Jn.evaluateFlag(n,e);if(d){const m=typeof f.value=="boolean"?f.value:t;s(m),a(!0)}}catch(f){console.error(`Error fetching feature flag '${e}':`,f),d&&(s(t),a(!0))}})(),()=>{d=!1}},[e,t,n,r]),!i&&r.flags.size===0)return t;const l=r.checkFlag(e,!1);return l??o}function Qg(){const e=C.useContext(Fr);if(!e)throw new Error("useFeatureFlags must be used within a FeatureFlagsProvider. Wrap your component tree with <FeatureFlagsProvider> to use this hook.");return e}function Yg(e){const t=C.useContext(Fr),r=Vt("@bluealba/pae-nestjs-gateway-service"),[n,o]=C.useState(null),[s,i]=C.useState(void 0),[a,l]=C.useState(!0);C.useEffect(()=>{const d=t.getVariant(e);if(d!==null){o(d.variant),i(d.payload),l(!1);return}let h=!0;return(async()=>{l(!0);try{const m=await Jn.evaluateFlag(r,e);if(h){const w=typeof m.value=="string"?m.value:null;o(w),i(void 0),l(!1)}}catch(m){console.error(`Error fetching variant for flag '${e}':`,m),h&&(o(null),i(void 0),l(!1))}})(),()=>{h=!1}},[e,r,t]);const c=t.getVariant(e);return c!==null?{variant:c.variant,payload:c.payload,isLoading:!1}:{variant:n,payload:s,isLoading:a}}const du=({flag:e,children:t,fallback:r=null,invert:n=!1})=>{const o=uu(e,!1);return(n?!o:o)?u.jsx(u.Fragment,{children:t}):u.jsx(u.Fragment,{children:r})};du.displayName="FeatureFlagGuard",E.Alert=Zn,E.ApplicationIcon=Oa,E.Authorized=Uo,E.Badge=zo,E.Badges=Ho,E.Button=_n,E.ClipboardCheckIcon=La,E.ClipboardIcon=Da,E.ConfirmDialog=zc,E.CopyToClipboardButton=$p,E.Dialog=ae,E.DropdownList=En,E.EmptyState=Ns,E.ErrorState=Ps,E.ExtendExtensionPoint=Sp,E.ExtensionPoint=xa,E.EyeIcon=Yl,E.FeatureFlagGuard=du,E.FeatureFlagsApiClient=Jn,E.FeatureFlagsContext=Fr,E.FeatureFlagsProvider=cu,E.FieldGroup=Na,E.Input=Cn,E.InputError=$a,E.Label=Ba,E.List=Fe,E.ModulePlaceHolder=Pa,E.Pagination=ks,E.PaginationContent=Rs,E.PaginationEllipsis=Ls,E.PaginationItem=Nr,E.PaginationLink=Mr,E.PaginationNext=Ds,E.PaginationPrevious=js,E.PasswordInput=gm,E.Pill=Ag,E.PlatformEventListener=jp,E.PlatformEvents=Nu,E.PluralizeCounter=Is,E.SearchAutocomplete=Wa,E.SearchInput=Go,E.Select=Vo,E.Show=st,E.Skeleton=Sn,E.SkeletonList=Ya,E.Spinner=Gl,E.Switch=ql,E.Table=nu,E.Tabs=fm,E.TabsContent=mm,E.TabsList=pm,E.TabsTrigger=hm,E.TextArea=za,E.Tooltip=Wl,E.authorized=Lp,E.dropdownListStyles=At,E.extensionPoint=Ap,E.getApplications=fo,E.getInitials=Xu,E.getOperations=di,E.hasAccess=pi,E.initializeMicroFrontend=Vg,E.isPlatformCustomizationCompleted=Fd,E.isValidEmail=Zu,E.logout=Qu,E.navigateTo=Yu,E.platformHaveAnyCustomization=$d,E.setupTestEnvironment=Gg,E.useApplicationIcon=_i,E.useApplicationJSModule=Zr,E.useApplicationMenu=nd,E.useApplicationUIModule=wi,E.useApplications=yi,E.useAuth=Yr,E.useCatalog=Cr,E.useCurrentApplication=mo,E.useCurrentApplicationName=Ci,E.useCurrentJSModule=fd,E.useDynamicFonts=ki,E.useDynamicStyleSheet=Oi,E.useExtendExtensionPoint=Ai,E.useExtensionPoint=Ti,E.useFeatureFlag=uu,E.useFeatureFlagVariant=Yg,E.useFeatureFlags=Qg,E.useGetPlatformTheme=Md,E.useHasNoSession=Vu,E.useLocation=ii,E.useModule=po,E.useModuleCommonPaths=qu,E.useModuleConfig=hi,E.useModuleConfigByName=mi,E.useModuleMetadata=Sr,E.useMutableCatalog=Uu,E.useNotifications=To,E.useOperations=fi,E.usePAECustomizationsLoadingState=Nd,E.usePAEState=Qr,E.usePlatformCustomization=Id,E.usePlatformEventListener=Pi,E.useResource=cp,E.useResourceActions=va,E.useServiceBaseURL=Ei,E.useServiceInvoker=Vt,E.useTenants=xp,E.useTrackEvent=vd,E.useTrackEvents=Si,E.useUIApplications=bi,E.useUserState=Ep,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"})});
|