@bluealba/pae-ui-react-core 3.0.2-develop-1171
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/LICENSE +134 -0
- package/README.md +368 -0
- package/dist/index.cjs.js +252 -0
- package/dist/index.css +1 -0
- package/dist/index.esm.js +9741 -0
- package/dist/index.systemjs.js +253 -0
- package/dist/index.umd.js +253 -0
- package/dist/src/MicrofrontendProps.d.ts +9 -0
- package/dist/src/components/ApplicationIcon.d.ts +7 -0
- package/dist/src/components/Authorized.d.ts +12 -0
- package/dist/src/components/ExtendExtensionPoint.d.ts +20 -0
- package/dist/src/components/ExtensionPoint.d.ts +39 -0
- package/dist/src/components/ModulePlaceHolder/BaseContainer.d.ts +4 -0
- package/dist/src/components/ModulePlaceHolder/BaseError.d.ts +7 -0
- package/dist/src/components/ModulePlaceHolder/BaseLoading.d.ts +7 -0
- package/dist/src/components/ModulePlaceHolder/ModulePlaceHolder.d.ts +22 -0
- package/dist/src/components/ModulePlaceHolder/index.d.ts +2 -0
- package/dist/src/components/PAEModule.d.ts +18 -0
- package/dist/src/components/PlatformEventListener.d.ts +12 -0
- package/dist/src/components/common/Alert/Alert.d.ts +16 -0
- package/dist/src/components/common/Alert/index.d.ts +2 -0
- package/dist/src/components/common/Badge/Badge.d.ts +9 -0
- package/dist/src/components/common/Badge/Badge.stories.d.ts +20 -0
- package/dist/src/components/common/Badge/Badges.d.ts +6 -0
- package/dist/src/components/common/Button/Button.d.ts +10 -0
- package/dist/src/components/common/Button/Button.stories.d.ts +45 -0
- package/dist/src/components/common/ConfirmDialog/ConfirmDialog.d.ts +11 -0
- package/dist/src/components/common/ConfirmDialog/ConfirmDialog.stories.d.ts +14 -0
- package/dist/src/components/common/CopyToClipboardButton/CopyToClipboardButton.d.ts +7 -0
- package/dist/src/components/common/CopyToClipboardButton/CopyToClipboardButton.stories.d.ts +15 -0
- package/dist/src/components/common/Dialog/Dialog.d.ts +26 -0
- package/dist/src/components/common/Dialog/Dialog.stories.d.ts +14 -0
- package/dist/src/components/common/Dialog/index.d.ts +2 -0
- package/dist/src/components/common/Dialog/subComponents/Actions.d.ts +6 -0
- package/dist/src/components/common/Dialog/subComponents/Close.d.ts +6 -0
- package/dist/src/components/common/Dialog/subComponents/Content.d.ts +6 -0
- package/dist/src/components/common/Dialog/subComponents/Description.d.ts +6 -0
- package/dist/src/components/common/Dialog/subComponents/Footer.d.ts +6 -0
- package/dist/src/components/common/Dialog/subComponents/Header.d.ts +6 -0
- package/dist/src/components/common/Dialog/subComponents/Title.d.ts +6 -0
- package/dist/src/components/common/DropdownList/DropdownList.d.ts +8 -0
- package/dist/src/components/common/DropdownList/index.d.ts +3 -0
- package/dist/src/components/common/EmptyState/EmptyState.d.ts +7 -0
- package/dist/src/components/common/EmptyState/EmptyState.stories.d.ts +16 -0
- package/dist/src/components/common/EmptyState/EmptyStateIcon.d.ts +7 -0
- package/dist/src/components/common/ErrorState/ErrorState.d.ts +9 -0
- package/dist/src/components/common/ErrorState/ErrorState.stories.d.ts +11 -0
- package/dist/src/components/common/ErrorState/WarningIcon.d.ts +6 -0
- package/dist/src/components/common/ErrorState/index.d.ts +2 -0
- package/dist/src/components/common/FieldGroup/FieldGroup.d.ts +7 -0
- package/dist/src/components/common/Icon/ArrowDown.d.ts +7 -0
- package/dist/src/components/common/Icon/ChevronLeft.d.ts +7 -0
- package/dist/src/components/common/Icon/ChevronRight.d.ts +7 -0
- package/dist/src/components/common/Icon/ClipboardCheckIcon.d.ts +13 -0
- package/dist/src/components/common/Icon/ClipboardIcon.d.ts +14 -0
- package/dist/src/components/common/Icon/EyeIcon.d.ts +13 -0
- package/dist/src/components/common/Icon/HorizontalDots.d.ts +7 -0
- package/dist/src/components/common/Input/Input.d.ts +7 -0
- package/dist/src/components/common/Input/Input.stories.d.ts +23 -0
- package/dist/src/components/common/InputError/InputError.d.ts +6 -0
- package/dist/src/components/common/Label/Label.d.ts +7 -0
- package/dist/src/components/common/List/List.d.ts +26 -0
- package/dist/src/components/common/List/List.stories.d.ts +27 -0
- package/dist/src/components/common/List/index.d.ts +2 -0
- package/dist/src/components/common/List/subComponents/Action.d.ts +6 -0
- package/dist/src/components/common/List/subComponents/Actions.d.ts +6 -0
- package/dist/src/components/common/List/subComponents/Description.d.ts +6 -0
- package/dist/src/components/common/List/subComponents/Icon.d.ts +6 -0
- package/dist/src/components/common/List/subComponents/Item.d.ts +8 -0
- package/dist/src/components/common/List/subComponents/Title.d.ts +6 -0
- package/dist/src/components/common/Pagination/Pagination.d.ts +31 -0
- package/dist/src/components/common/PasswordInput/PasswordInput.d.ts +8 -0
- package/dist/src/components/common/PasswordInput/PasswordInput.stories.d.ts +20 -0
- package/dist/src/components/common/Pill/Pill.d.ts +8 -0
- package/dist/src/components/common/Pill/Pill.stories.d.ts +26 -0
- package/dist/src/components/common/PluralizeCounter/PluralizeCounter.d.ts +9 -0
- package/dist/src/components/common/PluralizeCounter/PluralizeCounter.stories.d.ts +14 -0
- package/dist/src/components/common/SearchAutocomplete/AutocompleteHighlighter.d.ts +8 -0
- package/dist/src/components/common/SearchAutocomplete/AutocompleteItem.d.ts +7 -0
- package/dist/src/components/common/SearchAutocomplete/SearchAutocomplete.d.ts +27 -0
- package/dist/src/components/common/SearchAutocomplete/SearchAutocomplete.stories.d.ts +51 -0
- package/dist/src/components/common/SearchAutocomplete/hooks/useAutocomplete.d.ts +13 -0
- package/dist/src/components/common/SearchAutocomplete/types.d.ts +12 -0
- package/dist/src/components/common/SearchInput/SearchInput.d.ts +9 -0
- package/dist/src/components/common/SearchInput/SearchInput.stories.d.ts +30 -0
- package/dist/src/components/common/Select/Option.d.ts +6 -0
- package/dist/src/components/common/Select/Select.d.ts +13 -0
- package/dist/src/components/common/Select/Select.stories.d.ts +20 -0
- package/dist/src/components/common/Show/Show.d.ts +32 -0
- package/dist/src/components/common/Skeleton/Skeleton.d.ts +11 -0
- package/dist/src/components/common/Skeleton/Skeleton.stories.d.ts +11 -0
- package/dist/src/components/common/Skeleton/SkeletonList.d.ts +10 -0
- package/dist/src/components/common/Skeleton/SkeletonList.stories.d.ts +11 -0
- package/dist/src/components/common/Spinner/Spinner.d.ts +10 -0
- package/dist/src/components/common/Spinner/Spinner.stories.d.ts +11 -0
- package/dist/src/components/common/Switch/Switch.d.ts +15 -0
- package/dist/src/components/common/Switch/Switch.stories.d.ts +8 -0
- package/dist/src/components/common/Table/Table.d.ts +43 -0
- package/dist/src/components/common/Table/Table.stories.d.ts +65 -0
- package/dist/src/components/common/Table/TablePagination.d.ts +9 -0
- package/dist/src/components/common/Table/generatePagination.d.ts +1 -0
- package/dist/src/components/common/Table/table.test.d.ts +1 -0
- package/dist/src/components/common/Tabs/Tabs.d.ts +30 -0
- package/dist/src/components/common/TextArea/TextArea.d.ts +6 -0
- package/dist/src/components/common/TextArea/TextArea.stories.d.ts +17 -0
- package/dist/src/components/common/Tooltip/Tooltip.d.ts +15 -0
- package/dist/src/components/common/Tooltip/Tooltip.stories.d.ts +35 -0
- package/dist/src/components/common/index.d.ts +58 -0
- package/dist/src/components/index.d.ts +6 -0
- package/dist/src/constants/index.d.ts +5 -0
- package/dist/src/core/PlatformEvents.d.ts +13 -0
- package/dist/src/core/gateway/GatewayHttpHeaders.d.ts +10 -0
- package/dist/src/core/index.d.ts +1 -0
- package/dist/src/getGlobalState.d.ts +1 -0
- package/dist/src/hocs/authorized.d.ts +4 -0
- package/dist/src/hocs/extensionPoint.d.ts +17 -0
- package/dist/src/hocs/index.d.ts +2 -0
- package/dist/src/hooks/applications/ApplicationMenu.d.ts +18 -0
- package/dist/src/hooks/applications/PlatformApplication.d.ts +10 -0
- package/dist/src/hooks/applications/useApplicationIcon.d.ts +4 -0
- package/dist/src/hooks/applications/useApplicationJSModule.d.ts +18 -0
- package/dist/src/hooks/applications/useApplicationMenu.d.ts +11 -0
- package/dist/src/hooks/applications/useApplicationUIModule.d.ts +4 -0
- package/dist/src/hooks/applications/useApplications.d.ts +4 -0
- package/dist/src/hooks/applications/useCurrentApplication.d.ts +8 -0
- package/dist/src/hooks/applications/useCurrentApplication.test.d.ts +1 -0
- package/dist/src/hooks/applications/useCurrentApplicationName.d.ts +6 -0
- package/dist/src/hooks/applications/useCurrentJSModule.d.ts +9 -0
- package/dist/src/hooks/catalog/useCatalog.d.ts +14 -0
- package/dist/src/hooks/catalog/useMutableCatalog.d.ts +28 -0
- package/dist/src/hooks/catalog/userCatalog.test.d.ts +1 -0
- package/dist/src/hooks/commons/useObservable.d.ts +8 -0
- package/dist/src/hooks/commons/useResource.d.ts +21 -0
- package/dist/src/hooks/commons/useResourceActions.d.ts +56 -0
- package/dist/src/hooks/commons/useSubjectObservable.d.ts +11 -0
- package/dist/src/hooks/customizations/useDynamicFonts.d.ts +13 -0
- package/dist/src/hooks/customizations/useDynamicStyleSheet.d.ts +1 -0
- package/dist/src/hooks/customizations/useGetPlatformTheme.d.ts +3 -0
- package/dist/src/hooks/customizations/usePAECustomizationsLoadingState.d.ts +2 -0
- package/dist/src/hooks/customizations/usePlatformCustomization.d.ts +8 -0
- package/dist/src/hooks/customizations/utils.d.ts +2 -0
- package/dist/src/hooks/events/usePlatformEventListener.d.ts +2 -0
- package/dist/src/hooks/extensions/useExtendExtensionPoint.d.ts +11 -0
- package/dist/src/hooks/extensions/useExtensionPoint.d.ts +16 -0
- package/dist/src/hooks/habits/ApplicationEvent.d.ts +4 -0
- package/dist/src/hooks/habits/mapEvent.d.ts +17 -0
- package/dist/src/hooks/habits/trackEvents.d.ts +9 -0
- package/dist/src/hooks/habits/useTrackEvent.d.ts +5 -0
- package/dist/src/hooks/habits/useTrackEvents.d.ts +9 -0
- package/dist/src/hooks/habits/useTrackEvents.test.d.ts +1 -0
- package/dist/src/hooks/index.d.ts +42 -0
- package/dist/src/hooks/module/useModule.d.ts +6 -0
- package/dist/src/hooks/module/useModuleCommonPaths.d.ts +9 -0
- package/dist/src/hooks/module/useModuleConfig.d.ts +5 -0
- package/dist/src/hooks/module/useModuleConfigByName.d.ts +5 -0
- package/dist/src/hooks/module/useModuleMetadata.d.ts +8 -0
- package/dist/src/hooks/routing/useLocation.d.ts +7 -0
- package/dist/src/hooks/tenants/constants.d.ts +21 -0
- package/dist/src/hooks/tenants/getClientTenantStrategy.d.ts +4 -0
- package/dist/src/hooks/tenants/strategies/cookie.d.ts +7 -0
- package/dist/src/hooks/tenants/strategies/queryParams.d.ts +7 -0
- package/dist/src/hooks/tenants/strategies/sessionStorage.d.ts +7 -0
- package/dist/src/hooks/tenants/strategies/subdomain.d.ts +9 -0
- package/dist/src/hooks/tenants/strategies/tenantStrategy.interface.d.ts +6 -0
- package/dist/src/hooks/tenants/useTenants.d.ts +8 -0
- package/dist/src/hooks/useAppStatus.d.ts +6 -0
- package/dist/src/hooks/useAppsState.d.ts +18 -0
- package/dist/src/hooks/useAuth.d.ts +14 -0
- package/dist/src/hooks/useAuth.test.d.ts +1 -0
- package/dist/src/hooks/useHasNoSession.d.ts +2 -0
- package/dist/src/hooks/useNotifications.d.ts +4 -0
- package/dist/src/hooks/useOperations.d.ts +1 -0
- package/dist/src/hooks/usePAEState.d.ts +7 -0
- package/dist/src/hooks/useServiceBaseURL.d.ts +6 -0
- package/dist/src/hooks/useServiceInvoker.d.ts +20 -0
- package/dist/src/hooks/useServiceInvoker.test.d.ts +1 -0
- package/dist/src/hooks/useUIApplications.d.ts +5 -0
- package/dist/src/hooks/userState/UserState.d.ts +7 -0
- package/dist/src/hooks/userState/UserStateApiClient.d.ts +9 -0
- package/dist/src/hooks/userState/useUserState.d.ts +24 -0
- package/dist/src/index.d.ts +11 -0
- package/dist/src/model/ModuleMetadata.d.ts +6 -0
- package/dist/src/test-utils/setupTestEnvironment.d.ts +15 -0
- package/dist/src/types.d.ts +37 -0
- package/dist/src/utils/Request.d.ts +7 -0
- package/dist/src/utils/URL.d.ts +6 -0
- package/dist/src/utils/alphaColor.d.ts +1 -0
- package/dist/src/utils/createRootComponent.d.ts +9 -0
- package/dist/src/utils/fonts.d.ts +5 -0
- package/dist/src/utils/getApplicationUIModule.d.ts +10 -0
- package/dist/src/utils/getApplications.d.ts +4 -0
- package/dist/src/utils/getOperations.d.ts +5 -0
- package/dist/src/utils/hasAccess.d.ts +8 -0
- package/dist/src/utils/immutable.d.ts +18 -0
- package/dist/src/utils/index.d.ts +18 -0
- package/dist/src/utils/initializeMicroFrontend.d.ts +17 -0
- package/dist/src/utils/isValidEmail.d.ts +1 -0
- package/dist/src/utils/isValidEmail.test.d.ts +1 -0
- package/dist/src/utils/logout.d.ts +1 -0
- package/dist/src/utils/logout.test.d.ts +1 -0
- package/dist/src/utils/navigateTo.d.ts +1 -0
- package/dist/src/utils/promises.d.ts +4 -0
- package/dist/tests/renderHookWithProviders.d.ts +3 -0
- package/dist/tests/testUtils.d.ts +7 -0
- package/package.json +61 -0
- package/src/global.css +32 -0
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
var iu=E=>{throw TypeError(E)};var Ni=(E,le,F)=>le.has(E)||iu("Cannot "+F);var b=(E,le,F)=>(Ni(E,le,"read from private field"),F?F.call(E):le.get(E)),D=(E,le,F)=>le.has(E)?iu("Cannot add the same private member more than once"):le instanceof WeakSet?le.add(E):le.set(E,F),O=(E,le,F,K)=>(Ni(E,le,"write to private field"),K?K.call(E,F):le.set(E,F),F),$=(E,le,F)=>(Ni(E,le,"access private method"),F);var eo=(E,le,F,K)=>({set _(ue){O(E,le,ue,F)},get _(){return b(E,le,K)}});System.register("@bluealba-public/pae-ui-react-core",["react","single-spa","react-dom"],function(E,le){"use strict";var F,K,ue,Gn,no,ro,Ge,m,z,Vi,oo,Gi,io,qi,qn,so,Qi;return{setters:[ee=>{F=ee.useState,K=ee.useEffect,ue=ee.useCallback,Gn=ee.default,no=ee.createContext,ro=ee.useContext,Ge=ee.useMemo,m=ee,z=ee.forwardRef,Vi=ee.Children,oo=ee.isValidElement,Gi=ee.useLayoutEffect,io=ee.useRef},ee=>{qi=ee.navigateToUrl,qn=ee.default},ee=>{so=ee,Qi=ee.default}],execute:function(){var Lt,ht,cn,Ml,ln,mt,un,$l,It,Fl,dn,fn,Ae,Nt,de,Fn,Mt,Ie,ot,Bl,He,Ul,We,he,$t,Ve,Et,zl,et,Ne,Bn,Hl,te,gt,vt,pn,hn,yt,mn,gn,Wl,we,H,Un,me,Ft,vn,bt,wt,zn,yn,bn,Bt,Ut,_t,wn,G,Vn,Mi,$i,Fi,Bi,Ui,zi,Hi,su,Vl,xt,Ct,_e,tt,nt,to,Wi,Gl;var ee=document.createElement("style");ee.textContent=`:root{--platform-label-color: var(--platform-text-secondary-color);--platform-input-border-color: var(--platform-lines);--platform-input-background-color: var(--platform-background-secondary-color);--platform-input-color: var(--platform-text-primary-color);--platform-input-focus-border-color: var(--platform-color-primary);--platform-button-base-padding: 4px 16px;--platform-button-base-border-radius: 6px;--platform-button-base-box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);--platform-button-base-font-size: 1em;--platform-button-base-line-height: 16px;--platform-button-base-height: calc(2 * var(--platform-button-base-font-size));--platform-button-contained-primary-background-color: var(--platform-color-primary);--platform-button-contained-primary-color: #ffffff;--platform-button-outlined-primary-color: var(--platform-color-primary);--platform-button-text-primary-color: var(--platform-text-primary-color);--platform-button-contained-danger-background-color: var(--platform-color-danger);--platform-button-contained-danger-color: #ffffff;--platform-button-outlined-danger-color: var(--platform-color-danger);--platform-button-text-danger-color: var(--platform-color-danger)}@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(ee),E({logout:_u,useDynamicFonts:ls});const Wg=E("PlatformEvents",{auth:{SESSION_EXPIRED:"platform:auth:session-expired"},apps:{APP_CLICKED:"platform:apps:app-clicked"},shell:{NAVBAR_STATE_CHANGED:"platform:shell:navbar-state-changed",MENU_STATE_CHANGED:"platform:shell:menu-state-changed"}}),Tn="__PAE_GLOBAL_STATE__",Yi="__PAE_REACTIVE_GLOBAL_STATE__",Ki="__PAE_EXTENSIONS_POINTS_REGISTRY__",ao="__PAE_CUSTOMIZATIONS_LOADING_STATE_KEY__",au="/auth/logout",cu=(e,t)=>{const[n,r]=F(t);return K(()=>{const o=e.subscribe(i=>{r(i)});return()=>{o.unsubscribe()}},[r]),n},lu=(e,t,n)=>n.map((r,o)=>o===e?t(r):r),uu=(e,t,n)=>lu(n.findIndex(e),t,n),co=(e,t)=>typeof e=="function"?e(t):e,Zi=(e,t)=>{const n=cu(e,t),r=ue(o=>{e.next(co(o,n))},[n]);return[n,r]},lo=E("usePAEState",()=>Zi(window[Yi],window[Tn])),Qn=E("useCatalog",()=>lo()[0].catalog),Vg=E("useMutableCatalog",()=>{const e=Qn(),t=ue(r=>{window[Yi].next({...window[Tn],catalog:co(r,e)})},[e]),n=ue((r,o)=>{t(i=>uu(s=>s.name===r,s=>{var a;return{...s,ui:{...s.ui,customProps:co(o,((a=s.ui)==null?void 0:a.customProps)??{})}}},i))},[t]);return[e,t,n]}),du=E("useLocation",()=>{const[e,t]=F(document.location.pathname);return K(()=>{const n=()=>{t(window.location.pathname)};return window.addEventListener("popstate",n),()=>{window.removeEventListener("popstate",n)}},[t]),e});var fu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xi={exports:{}},An={},Ji;function hu(){if(Ji)return An;Ji=1;/**
|
|
3
|
+
* @license React
|
|
4
|
+
* react-jsx-runtime.development.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/return function(){var e=Gn,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),a=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),w=Symbol.iterator,f="@@iterator";function v(y){if(y===null||typeof y!="object")return null;var A=w&&y[w]||y[f];return typeof A=="function"?A:null}var _=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(y){{for(var A=arguments.length,k=new Array(A>1?A-1:0),L=1;L<A;L++)k[L-1]=arguments[L];S("error",y,k)}}function S(y,A,k){{var L=_.ReactDebugCurrentFrame,q=L.getStackAddendum();q!==""&&(A+="%s",k=k.concat([q]));var Y=k.map(function(W){return String(W)});Y.unshift("Warning: "+A),Function.prototype.apply.call(console[y],console,Y)}}var C=!1,T=!1,R=!1,P=!1,I=!1,N;N=Symbol.for("react.module.reference");function M(y){return!!(typeof y=="string"||typeof y=="function"||y===r||y===i||I||y===o||y===u||y===d||P||y===g||C||T||R||typeof y=="object"&&y!==null&&(y.$$typeof===p||y.$$typeof===h||y.$$typeof===s||y.$$typeof===a||y.$$typeof===c||y.$$typeof===N||y.getModuleId!==void 0))}function Z(y,A,k){var L=y.displayName;if(L)return L;var q=A.displayName||A.name||"";return q!==""?k+"("+q+")":k}function X(y){return y.displayName||"Context"}function V(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 r:return"Fragment";case n:return"Portal";case i:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if(typeof y=="object")switch(y.$$typeof){case a:var A=y;return X(A)+".Consumer";case s:var k=y;return X(k._context)+".Provider";case c:return Z(y,y.render,"ForwardRef");case h:var L=y.displayName||null;return L!==null?L:V(y.type)||"Memo";case p:{var q=y,Y=q._payload,W=q._init;try{return V(W(Y))}catch{return null}}}return null}var Q=Object.assign,ae=0,ne,re,B,ce,Te,zt,Qr;function Yr(){}Yr.__reactDisabledLog=!0;function Ri(){{if(ae===0){ne=console.log,re=console.info,B=console.warn,ce=console.error,Te=console.group,zt=console.groupCollapsed,Qr=console.groupEnd;var y={configurable:!0,enumerable:!0,value:Yr,writable:!0};Object.defineProperties(console,{info:y,log:y,warn:y,error:y,group:y,groupCollapsed:y,groupEnd:y})}ae++}}function Oi(){{if(ae--,ae===0){var y={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Q({},y,{value:ne}),info:Q({},y,{value:re}),warn:Q({},y,{value:B}),error:Q({},y,{value:ce}),group:Q({},y,{value:Te}),groupCollapsed:Q({},y,{value:zt}),groupEnd:Q({},y,{value:Qr})})}ae<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Hn=_.ReactCurrentDispatcher,_n;function Ht(y,A,k){{if(_n===void 0)try{throw Error()}catch(q){var L=q.stack.trim().match(/\n( *(at )?)/);_n=L&&L[1]||""}return`
|
|
11
|
+
`+_n+y}}var xn=!1,Wt;{var Kr=typeof WeakMap=="function"?WeakMap:Map;Wt=new Kr}function Wn(y,A){if(!y||xn)return"";{var k=Wt.get(y);if(k!==void 0)return k}var L;xn=!0;var q=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Y;Y=Hn.current,Hn.current=null,Ri();try{if(A){var W=function(){throw Error()};if(Object.defineProperty(W.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(W,[])}catch(xe){L=xe}Reflect.construct(y,[],W)}else{try{W.call()}catch(xe){L=xe}y.call(W.prototype)}}else{try{throw Error()}catch(xe){L=xe}y()}}catch(xe){if(xe&&L&&typeof xe.stack=="string"){for(var U=xe.stack.split(`
|
|
12
|
+
`),ge=L.stack.split(`
|
|
13
|
+
`),oe=U.length-1,ie=ge.length-1;oe>=1&&ie>=0&&U[oe]!==ge[ie];)ie--;for(;oe>=1&&ie>=0;oe--,ie--)if(U[oe]!==ge[ie]){if(oe!==1||ie!==1)do if(oe--,ie--,ie<0||U[oe]!==ge[ie]){var Pe=`
|
|
14
|
+
`+U[oe].replace(" at new "," at ");return y.displayName&&Pe.includes("<anonymous>")&&(Pe=Pe.replace("<anonymous>",y.displayName)),typeof y=="function"&&Wt.set(y,Pe),Pe}while(oe>=1&&ie>=0);break}}}finally{xn=!1,Hn.current=Y,Oi(),Error.prepareStackTrace=q}var Sn=y?y.displayName||y.name:"",qt=Sn?Ht(Sn):"";return typeof y=="function"&&Wt.set(y,qt),qt}function Vt(y,A,k){return Wn(y,!1)}function Zr(y){var A=y.prototype;return!!(A&&A.isReactComponent)}function Cn(y,A,k){if(y==null)return"";if(typeof y=="function")return Wn(y,Zr(y));if(typeof y=="string")return Ht(y);switch(y){case u:return Ht("Suspense");case d:return Ht("SuspenseList")}if(typeof y=="object")switch(y.$$typeof){case c:return Vt(y.render);case h:return Cn(y.type,A,k);case p:{var L=y,q=L._payload,Y=L._init;try{return Cn(Y(q),A,k)}catch{}}}return""}var Gt=Object.prototype.hasOwnProperty,Xr={},Jr=_.ReactDebugCurrentFrame;function rt(y){if(y){var A=y._owner,k=Cn(y.type,y._source,A?A.type:null);Jr.setExtraStackFrame(k)}else Jr.setExtraStackFrame(null)}function xg(y,A,k,L,q){{var Y=Function.call.bind(Gt);for(var W in y)if(Y(y,W)){var U=void 0;try{if(typeof y[W]!="function"){var ge=Error((L||"React class")+": "+k+" type `"+W+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof y[W]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ge.name="Invariant Violation",ge}U=y[W](A,W,L,k,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(oe){U=oe}U&&!(U instanceof Error)&&(rt(q),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).",L||"React class",k,W,typeof U),rt(null)),U instanceof Error&&!(U.message in Xr)&&(Xr[U.message]=!0,rt(q),x("Failed %s type: %s",k,U.message),rt(null))}}}var Cg=Array.isArray;function ki(y){return Cg(y)}function Eg(y){{var A=typeof Symbol=="function"&&Symbol.toStringTag,k=A&&y[Symbol.toStringTag]||y.constructor.name||"Object";return k}}function Sg(y){try{return ql(y),!1}catch{return!0}}function ql(y){return""+y}function Ql(y){if(Sg(y))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Eg(y)),ql(y)}var Yl=_.ReactCurrentOwner,Tg={key:!0,ref:!0,__self:!0,__source:!0},Kl,Zl;function Ag(y){if(Gt.call(y,"ref")){var A=Object.getOwnPropertyDescriptor(y,"ref").get;if(A&&A.isReactWarning)return!1}return y.ref!==void 0}function Pg(y){if(Gt.call(y,"key")){var A=Object.getOwnPropertyDescriptor(y,"key").get;if(A&&A.isReactWarning)return!1}return y.key!==void 0}function Rg(y,A){typeof y.ref=="string"&&Yl.current}function Og(y,A){{var k=function(){Kl||(Kl=!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)",A))};k.isReactWarning=!0,Object.defineProperty(y,"key",{get:k,configurable:!0})}}function kg(y,A){{var k=function(){Zl||(Zl=!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)",A))};k.isReactWarning=!0,Object.defineProperty(y,"ref",{get:k,configurable:!0})}}var jg=function(y,A,k,L,q,Y,W){var U={$$typeof:t,type:y,key:A,ref:k,props:W,_owner:Y};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:L}),Object.defineProperty(U,"_source",{configurable:!1,enumerable:!1,writable:!1,value:q}),Object.freeze&&(Object.freeze(U.props),Object.freeze(U)),U};function Dg(y,A,k,L,q){{var Y,W={},U=null,ge=null;k!==void 0&&(Ql(k),U=""+k),Pg(A)&&(Ql(A.key),U=""+A.key),Ag(A)&&(ge=A.ref,Rg(A,q));for(Y in A)Gt.call(A,Y)&&!Tg.hasOwnProperty(Y)&&(W[Y]=A[Y]);if(y&&y.defaultProps){var oe=y.defaultProps;for(Y in oe)W[Y]===void 0&&(W[Y]=oe[Y])}if(U||ge){var ie=typeof y=="function"?y.displayName||y.name||"Unknown":y;U&&Og(W,ie),ge&&kg(W,ie)}return jg(y,U,ge,q,L,Yl.current,W)}}var ji=_.ReactCurrentOwner,Xl=_.ReactDebugCurrentFrame;function En(y){if(y){var A=y._owner,k=Cn(y.type,y._source,A?A.type:null);Xl.setExtraStackFrame(k)}else Xl.setExtraStackFrame(null)}var Di;Di=!1;function Li(y){return typeof y=="object"&&y!==null&&y.$$typeof===t}function Jl(){{if(ji.current){var y=V(ji.current.type);if(y)return`
|
|
15
|
+
|
|
16
|
+
Check the render method of \``+y+"`."}return""}}function Lg(y){return""}var eu={};function Ig(y){{var A=Jl();if(!A){var k=typeof y=="string"?y:y.displayName||y.name;k&&(A=`
|
|
17
|
+
|
|
18
|
+
Check the top-level render call using <`+k+">.")}return A}}function tu(y,A){{if(!y._store||y._store.validated||y.key!=null)return;y._store.validated=!0;var k=Ig(A);if(eu[k])return;eu[k]=!0;var L="";y&&y._owner&&y._owner!==ji.current&&(L=" It was passed a child from "+V(y._owner.type)+"."),En(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.',k,L),En(null)}}function nu(y,A){{if(typeof y!="object")return;if(ki(y))for(var k=0;k<y.length;k++){var L=y[k];Li(L)&&tu(L,A)}else if(Li(y))y._store&&(y._store.validated=!0);else if(y){var q=v(y);if(typeof q=="function"&&q!==y.entries)for(var Y=q.call(y),W;!(W=Y.next()).done;)Li(W.value)&&tu(W.value,A)}}}function Ng(y){{var A=y.type;if(A==null||typeof A=="string")return;var k;if(typeof A=="function")k=A.propTypes;else if(typeof A=="object"&&(A.$$typeof===c||A.$$typeof===h))k=A.propTypes;else return;if(k){var L=V(A);xg(k,y.props,"prop",L,y)}else if(A.PropTypes!==void 0&&!Di){Di=!0;var q=V(A);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",q||"Unknown")}typeof A.getDefaultProps=="function"&&!A.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Mg(y){{for(var A=Object.keys(y.props),k=0;k<A.length;k++){var L=A[k];if(L!=="children"&&L!=="key"){En(y),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",L),En(null);break}}y.ref!==null&&(En(y),x("Invalid attribute `ref` supplied to `React.Fragment`."),En(null))}}var ru={};function ou(y,A,k,L,q,Y){{var W=M(y);if(!W){var U="";(y===void 0||typeof y=="object"&&y!==null&&Object.keys(y).length===0)&&(U+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ge=Lg();ge?U+=ge:U+=Jl();var oe;y===null?oe="null":ki(y)?oe="array":y!==void 0&&y.$$typeof===t?(oe="<"+(V(y.type)||"Unknown")+" />",U=" Did you accidentally export a JSX literal instead of a component?"):oe=typeof y,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",oe,U)}var ie=Dg(y,A,k,q,Y);if(ie==null)return ie;if(W){var Pe=A.children;if(Pe!==void 0)if(L)if(ki(Pe)){for(var Sn=0;Sn<Pe.length;Sn++)nu(Pe[Sn],y);Object.freeze&&Object.freeze(Pe)}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 nu(Pe,y)}if(Gt.call(A,"key")){var qt=V(y),xe=Object.keys(A).filter(function(Hg){return Hg!=="key"}),Ii=xe.length>0?"{key: someKey, "+xe.join(": ..., ")+": ...}":"{key: someKey}";if(!ru[qt+Ii]){var zg=xe.length>0?"{"+xe.join(": ..., ")+": ...}":"{}";x(`A props object containing a "key" prop is being spread into JSX:
|
|
19
|
+
let props = %s;
|
|
20
|
+
<%s {...props} />
|
|
21
|
+
React keys must be passed directly to JSX without using spread:
|
|
22
|
+
let props = %s;
|
|
23
|
+
<%s key={someKey} {...props} />`,Ii,qt,zg,qt),ru[qt+Ii]=!0}}return y===r?Mg(ie):Ng(ie),ie}}function $g(y,A,k){return ou(y,A,k,!0)}function Fg(y,A,k){return ou(y,A,k,!1)}var Bg=Fg,Ug=$g;An.Fragment=r,An.jsx=Bg,An.jsxs=Ug}(),An}Xi.exports=hu();var l=Xi.exports;const es=no(null),ts=({module:e,children:t})=>l.jsx(es.Provider,{value:e,children:t});ts.displayName="PAEModule";const Yn=E("useModuleMetadata",()=>{const e=ro(es);if(!e)throw new Error("Module metadata was not setup yet !!");return e});function uo(){if(!window[Tn])throw new Error("PAE Global state not found.");return window[Tn]}const ns=E("getApplications",()=>{const{authUser:{applications:e}}=uo();return e||[]}),mu=E("getOperations",e=>ns().filter(t=>t.isGlobal||t.name===e).flatMap(t=>t.operations)),gu=E("useOperations",()=>{const{application:e}=Yn();return Ge(()=>mu(e),[e])}),vu=E("hasAccess",e=>(...t)=>t.every(n=>e.some(r=>r.name===n))),fo=E("useAuth",()=>{const[{authUser:e}]=lo(),t=gu();return{authUser:e,hasAccess:Ge(()=>vu(t),[t])}}),Gg=E("useHasNoSession",()=>{const{authUser:e}=fo();return!e||e.id==="anon"}),yu=E("useModuleConfig",()=>{var e;return((e=Yn().ui)==null?void 0:e.customProps)??{}}),rs=E("useModule",e=>{const t=Qn();return Ge(()=>{const n=t.find(r=>r.name===e);if(!n)throw new Error(`Could not find the module [${e}] in the local catalog !`);return n},[t,e])}),bu=E("useModuleConfigByName",e=>{var t,n;return((n=(t=rs(e))==null?void 0:t.ui)==null?void 0:n.customProps)??{}}),wu=e=>e.replace(/\/+/g,"/"),qg=E("useModuleCommonPaths",(e,t="only-base-path")=>{const{apiDocs:n,health:r,version:o,changelog:i}=(e==null?void 0:e.commonPaths)||{},s=(a,c="")=>{if(a===void 0&&!c)return;const u=a??c;if(t==="only-base-path")return u;const d=wu(`${e.baseUrl}/${u}`);return t==="with-module-base"?d:`${document.location.origin}${d}`};return{apiDocsPath:s(n,"/api-docs-json"),healthPath:s(r,"/health"),versionPath:s(o,"/version"),changelogPath:s(i,"/changelog")}});function _u(){window.open(au,"_self")}const Qg=E("navigateTo",e=>qi(e)),xu=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z]{2,}$/,Yg=E("isValidEmail",e=>xu.test(e)),Kg=E("getInitials",(e,t=2)=>{if(!e)return"";const n=e.split(" ");return n.length===1?n.join("").slice(0,t):n.map(r=>r[0]).join("").slice(0,t)}),os=e=>e.type==="app",Cu=e=>e.modules.some(os)&&e.route&&e.route!=="/",is=e=>{const{catalog:t}=uo();return Kn(t.filter(n=>n.application===e))},Kn=(e=[])=>e.find(t=>{var n;return os(t)&&((n=t.ui)==null?void 0:n.route)!=="/"}),Eu=E("useApplications",()=>{const e=Qn();return Ge(()=>ns().map(n=>{var i,s,a;const r=Su(e,n.name),o=Kn(r);return{name:n.name,displayName:((s=(i=o==null?void 0:o.ui)==null?void 0:i.customProps)==null?void 0:s.overrideApplicationDisplayName)??n.displayName,modules:r,route:(a=o==null?void 0:o.ui)==null?void 0:a.route,roles:[],operations:n.operations}}),[e])}),Su=(e,t)=>e.filter(n=>n.application===t)||[],Tu=E("useUIApplications",()=>{const e=Eu();return Ge(()=>e.filter(Cu),[e])}),Au=E("useApplicationUIModule",e=>Ge(()=>e?is(e.name):void 0,[e])),it=new Map,Pu=e=>{try{const{catalog:t}=uo(),n=t.find(r=>r.name===e);return n!=null&&n.version?`${e}@${n.version}`:e}catch{return e}},po=E("useApplicationJSModule",e=>{const[t,n]=F(null);return K(()=>{(async()=>{if(!e){n(null);return}try{const o=Pu(e);if(it.has(o)){const s=it.get(o);n(s);return}const i=await System.import(e);it.set(o,i),n(i)}catch(o){console.error(`Error importing module ${e}: ${o.message}`),n(null)}})()},[e,n]),t}),Ru=e=>{e?(Array.from(it.keys()).filter(n=>n.startsWith(e)).forEach(n=>it.delete(n)),console.log(`[useApplicationJSModule] Cleared cache for module: ${e}`)):(it.clear(),console.log("[useApplicationJSModule] Cleared all module cache"))};typeof window<"u"&&(window.PAE={...window.PAE,clearModuleCache:Ru,getModuleCacheSize:()=>it.size,getModuleCacheKeys:()=>Array.from(it.keys())});const Ou=E("useApplicationIcon",e=>{const t=typeof e=="string"?is(e):Kn(e==null?void 0:e.modules),n=po(t==null?void 0:t.name);return n==null?void 0:n.icon}),Zg=E("useApplicationMenu",e=>{const t=Kn(e==null?void 0:e.modules),n=po(t==null?void 0:t.name),[r,o]=F(!1),[i,s]=F({}),a=async()=>(typeof(n==null?void 0:n.menu)=="function"?await n.menu():n==null?void 0:n.menu)||[],c=async()=>{if(!(n!=null&&n.menu))return[];o(!0);const h=ku((e==null?void 0:e.operations)||[]),p=(await a()).map(g=>{const{operations:w,items:f,path:v}=g;if(w!=null&&w.length&&!h(w))return null;const _=(f||[]).filter(x=>{var S;return!((S=x==null?void 0:x.operations)!=null&&S.length)||h(x.operations)});return!_.length&&!v?null:{...g,items:_}}).filter(Boolean);return o(!1),p},u=async()=>{const h=await c();e&&s(p=>({...p,[e.name]:h}))};K(()=>{u()},[n==null?void 0:n.menu]);const d=Ge(()=>e?i[e.name]||[]:[],[i,e]);return{loading:r,menu:d}}),ku=e=>t=>t.every(n=>e.some(r=>r.name===n));function J(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function St(e){return function t(n){return arguments.length===0||J(n)?t:e.apply(this,arguments)}}function st(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return J(n)?t:St(function(o){return e(n,o)});default:return J(n)&&J(r)?t:J(n)?St(function(o){return e(o,r)}):J(r)?St(function(o){return e(n,o)}):e(n,r)}}}function ho(e){return function t(n,r,o){switch(arguments.length){case 0:return t;case 1:return J(n)?t:st(function(i,s){return e(n,i,s)});case 2:return J(n)&&J(r)?t:J(n)?st(function(i,s){return e(i,r,s)}):J(r)?st(function(i,s){return e(n,i,s)}):St(function(i){return e(n,r,i)});default:return J(n)&&J(r)&&J(o)?t:J(n)&&J(r)?st(function(i,s){return e(i,s,o)}):J(n)&&J(o)?st(function(i,s){return e(i,r,s)}):J(r)&&J(o)?st(function(i,s){return e(n,i,s)}):J(n)?St(function(i){return e(i,r,o)}):J(r)?St(function(i){return e(n,i,o)}):J(o)?St(function(i){return e(n,r,i)}):e(n,r,o)}}}function Zn(e,t){return Object.prototype.hasOwnProperty.call(t,e)}function ss(e){return Object.prototype.toString.call(e)==="[object Object]"}var ju=ho(function(t,n,r){var o=t(n),i=t(r);return o>i?-1:o<i?1:0}),Du=ho(function(t,n,r){var o={},i;n=n||{},r=r||{};for(i in n)Zn(i,n)&&(o[i]=Zn(i,r)?t(i,n[i],r[i]):n[i]);for(i in r)Zn(i,r)&&!Zn(i,o)&&(o[i]=r[i]);return o}),Lu=ho(function e(t,n,r){return Du(function(o,i,s){return ss(i)&&ss(s)?e(t,i,s):t(o,i,s)},n,r)}),Iu=st(function(t,n){return Lu(function(r,o,i){return i},t,n)}),Nu=st(function(t,n){return Array.prototype.slice.call(n,0).sort(function(r,o){for(var i=0,s=0;i===0&&s<t.length;)i=t[s](r,o),s+=1;return i})});const as=E("useCurrentApplication",()=>{const e=du(),t=Tu();return Ge(()=>Mu(e,t),[e,t])}),Mu=(e,t)=>Nu([ju($u)],t).find(n=>n.route&&e.startsWith(n.route)),$u=e=>{var t;return((t=e==null?void 0:e.route)==null?void 0:t.length)||-1},Fu=E("useCurrentApplicationName",()=>{var e;return(e=as())==null?void 0:e.name}),Xg=E("useCurrentJSModule",()=>{const e=as(),t=Au(e);return po(t==null?void 0:t.name)}),Bu=E("useServiceBaseURL",(e,t)=>{const r=Qn().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}),cs=E("useServiceInvoker",(e,t)=>{const n=Bu(e,!!t)??t;return ue((r,o)=>{const s={Accept:"application/json",...(o==null?void 0:o.body)instanceof FormData?{}:{"Content-Type":"application/json"},...o==null?void 0:o.headers};return fetch(Uu(`${n}${r}`),{...o,headers:s})},[n])}),Uu=e=>e.replace(/\/+/g,"/"),zu=(e,t)=>n=>({timestamp:new Date(new Date().toUTCString()).toISOString(),module:t.name,moduleVersion:t.version,application:t.application,user:e.username,...n}),Hu=(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(zu(t,n)))});if(!o.ok)throw new Error(`Error publishing habits event ${o.statusText}`)},Wu="@bluealba/pae-habits-service",Vu=E("useTrackEvents",()=>{const{authUser:e}=fo(),t=Yn(),n=cs(Wu);return ue(Hu(n,e,t),[n,e,t])}),Jg=E("useTrackEvent",()=>{const e=Vu();return ue((t,n)=>e([{name:t,data:n}]),[e])}),Gu=E("useExtensionPoint",e=>{const t=Yn(),n=window[Ki],[r,o]=F(null);return K(()=>n.defineExtensionPoint(t,e,i=>{o(()=>i)}),[o]),r}),qu=E("useExtendExtensionPoint",(e,t,n)=>{K(()=>window[Ki].setExtensionPoint(e,t,n),[])}),Qu=E("usePlatformEventListener",(e,t)=>{K(()=>(window.addEventListener(e,t),()=>window.removeEventListener(e,t)),[e,t])}),Yu=E("useDynamicStyleSheet",e=>{const{cssCustomizationLoadingDelay:t=1e3}=yu();K(()=>{if(!e)return;const n=document.createElement("style");return setTimeout(()=>{n.innerHTML=e,document.head.append(n)},t),()=>n&&n.remove()},[e])}),Ku=e=>{var t;return(t=e.split(/[#?]/)[0].split(".").pop())==null?void 0:t.trim()},Zu={woff2:"woff2",woff:"woff",ttf:"truetype",otf:"opentype",eot:"embedded-opentype",svg:"svg"},Xu=e=>{const t=Ku(e);return t?Zu[t]:void 0},Ju=(e,t)=>{const n=t??Xu(e);return n?`format(${n})`:""};function ls(e){const[t,n]=F(!1);return K(()=>{if(!(e!=null&&e.length))return;const r=document.createElement("style");r.setAttribute("data-generated-fonts","true");const o=e.flatMap(({fontFamily:s,variants:a})=>a.map(({path:c,fontWeight:u,format:d})=>`
|
|
24
|
+
@font-face {
|
|
25
|
+
font-family: "${s}";
|
|
26
|
+
src: url("${c}") ${Ju(c,d)};
|
|
27
|
+
font-weight: ${u};
|
|
28
|
+
font-style: normal;
|
|
29
|
+
}
|
|
30
|
+
`)).join(`
|
|
31
|
+
`);return r.innerHTML=o,document.head.appendChild(r),(async()=>{try{await Promise.all(e.flatMap(({fontFamily:s,variants:a})=>a.map(({fontWeight:c})=>document.fonts.load(`normal ${c} 1em "${s}"`))))}finally{n(!0)}})(),()=>{document.head.removeChild(r)}},[e]),K(()=>{!t&&!(e!=null&&e.length)&&n(!0)},[e,t]),{fontsLoaded:t}}var mo=function(e,t){return mo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},mo(e,t)};function Pn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");mo(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Me=function(){return Me=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Me.apply(this,arguments)};function us(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function go(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function vo(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function Xn(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function qe(e){return typeof e=="function"}function ds(e){var t=function(r){Error.call(r),r.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var yo=ds(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
|
|
32
|
+
`+n.map(function(r,o){return o+1+") "+r.toString()}).join(`
|
|
33
|
+
`):"",this.name="UnsubscriptionError",this.errors=n}});function bo(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Jn=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,r,o,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=go(s),c=a.next();!c.done;c=a.next()){var u=c.value;u.remove(this)}}catch(f){t={error:f}}finally{try{c&&!c.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}else s.remove(this);var d=this.initialTeardown;if(qe(d))try{d()}catch(f){i=f instanceof yo?f.errors:[f]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var p=go(h),g=p.next();!g.done;g=p.next()){var w=g.value;try{hs(w)}catch(f){i=i??[],f instanceof yo?i=Xn(Xn([],vo(i)),vo(f.errors)):i.push(f)}}}catch(f){r={error:f}}finally{try{g&&!g.done&&(o=p.return)&&o.call(p)}finally{if(r)throw r.error}}}if(i)throw new yo(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)hs(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&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}(),fs=Jn.EMPTY;function ps(e){return e instanceof Jn||e&&"closed"in e&&qe(e.remove)&&qe(e.add)&&qe(e.unsubscribe)}function hs(e){qe(e)?e():e.unsubscribe()}var ed={Promise:void 0},td={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,Xn([e,t],vo(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function nd(e){td.setTimeout(function(){throw e})}function ms(){}function er(e){e()}var gs=function(e){Pn(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,ps(n)&&n.add(r)):r.destination=id,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}(Jn),rd=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(r){tr(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){tr(r)}else tr(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){tr(n)}},e}(),wo=function(e){Pn(t,e);function t(n,r,o){var i=e.call(this)||this,s;return qe(n)||!n?s={next:n??void 0,error:r??void 0,complete:o??void 0}:s=n,i.destination=new rd(s),i}return t}(gs);function tr(e){nd(e)}function od(e){throw e}var id={closed:!0,next:ms,error:od,complete:ms},sd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function ad(e){return e}function cd(e){return e.length===0?ad:e.length===1?e[0]:function(n){return e.reduce(function(r,o){return o(r)},n)}}var vs=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,r){var o=this,i=ud(t)?t:new wo(t,n,r);return er(function(){var s=o,a=s.operator,c=s.source;i.add(a?a.call(i,c):c?o._subscribe(i):o._trySubscribe(i))}),i},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var r=this;return n=ys(n),new n(function(o,i){var s=new wo({next:function(a){try{t(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});r.subscribe(s)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[sd]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return cd(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=ys(t),new t(function(r,o){var i;n.subscribe(function(s){return i=s},function(s){return o(s)},function(){return r(i)})})},e.create=function(t){return new e(t)},e}();function ys(e){var t;return(t=e??ed.Promise)!==null&&t!==void 0?t:Promise}function ld(e){return e&&qe(e.next)&&qe(e.error)&&qe(e.complete)}function ud(e){return e&&e instanceof gs||ld(e)&&ps(e)}var dd=ds(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),bs=function(e){Pn(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 ws(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new dd},t.prototype.next=function(n){var r=this;er(function(){var o,i;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var s=go(r.currentObservers),a=s.next();!a.done;a=s.next()){var c=a.value;c.next(n)}}catch(u){o={error:u}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}}})},t.prototype.error=function(n){var r=this;er(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=n;for(var o=r.observers;o.length;)o.shift().error(n)}})},t.prototype.complete=function(){var n=this;er(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var r=this,o=this,i=o.hasError,s=o.isStopped,a=o.observers;return i||s?fs:(this.currentObservers=null,a.push(n),new Jn(function(){r.currentObservers=null,bo(a,n)}))},t.prototype._checkFinalizedStatuses=function(n){var r=this,o=r.hasError,i=r.thrownError,s=r.isStopped;o?n.error(i):s&&n.complete()},t.prototype.asObservable=function(){var n=new vs;return n.source=this,n},t.create=function(n,r){return new ws(n,r)},t}(vs),ws=function(e){Pn(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:fs},t}(bs),fd=function(e){Pn(t,e);function t(n){var r=e.call(this)||this;return r._value=n,r}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(n){var r=e.prototype._subscribe.call(this,n);return!r.closed&&n.next(this._value),r},t.prototype.getValue=function(){var n=this,r=n.hasError,o=n.thrownError,i=n._value;if(r)throw o;return this._throwIfClosed(),i},t.prototype.next=function(n){e.prototype.next.call(this,this._value=n)},t}(bs);const ev=E("usePlatformCustomization",e=>{const{fontsLoaded:t}=ls(e.fonts);Yu(e.styleSheet);const n=()=>{const r=new fd(!0);window[ao]=r};K(()=>{t&&window[ao].next(!1)},[t]),K(()=>{n()},[])}),tv=E("usePAECustomizationsLoadingState",()=>{const e=window[ao];return Zi(e,e.getValue()??void 0)}),_o="theme",_s=()=>document.documentElement.dataset[_o]==="dark"?"dark":"light",nv=E("useGetPlatformTheme",()=>{const[e,t]=F(_s());return K(()=>{const n=document.documentElement,r=()=>t(_s),o=new MutationObserver(i=>{for(const s of i)s.type==="attributes"&&s.attributeName===`data-${_o}`&&r()});return o.observe(n,{attributes:!0,attributeFilter:[`data-${_o}`]}),r(),()=>{o.disconnect()}},[]),e}),rv=E("platformHaveAnyCustomization",e=>e!==void 0),ov=E("isPlatformCustomizationCompleted",e=>e!==!0);let pd={data:""},hd=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||pd,md=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,gd=/\/\*[^]*?\*\/| +/g,xs=/\n+/g,at=(e,t)=>{let n="",r="",o="";for(let i in e){let s=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+s+";":r+=i[1]=="f"?at(s,i):i+"{"+at(s,i[1]=="k"?"":t)+"}":typeof s=="object"?r+=at(s,t?t.replace(/([^,])+/g,a=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,a):a?a+" "+c:c)):i):s!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=at.p?at.p(i,s):i+":"+s+";")}return n+(t&&o?t+"{"+o+"}":o)+r},Qe={},Cs=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+Cs(e[n]);return t}return e},vd=(e,t,n,r,o)=>{let i=Cs(e),s=Qe[i]||(Qe[i]=(c=>{let u=0,d=11;for(;u<c.length;)d=101*d+c.charCodeAt(u++)>>>0;return"go"+d})(i));if(!Qe[s]){let c=i!==e?e:(u=>{let d,h,p=[{}];for(;d=md.exec(u.replace(gd,""));)d[4]?p.shift():d[3]?(h=d[3].replace(xs," ").trim(),p.unshift(p[0][h]=p[0][h]||{})):p[0][d[1]]=d[2].replace(xs," ").trim();return p[0]})(e);Qe[s]=at(o?{["@keyframes "+s]:c}:c,n?"":"."+s)}let a=n&&Qe.g?Qe.g:null;return n&&(Qe.g=Qe[s]),((c,u,d,h)=>{h?u.data=u.data.replace(h,c):u.data.indexOf(c)===-1&&(u.data=d?c+u.data:u.data+c)})(Qe[s],t,r,a),s},yd=(e,t,n)=>e.reduce((r,o,i)=>{let s=t[i];if(s&&s.call){let a=s(n),c=a&&a.props&&a.props.className||/^go/.test(a)&&a;s=c?"."+c:a&&typeof a=="object"?a.props?"":at(a,""):a===!1?"":a}return r+o+(s??"")},"");function nr(e){let t=this||{},n=e.call?e(t.p):e;return vd(n.unshift?n.raw?yd(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,hd(t.target),t.g,t.o,t.k)}let Es,xo,Co;nr.bind({g:1});let Ye=nr.bind({k:1});function bd(e,t,n,r){at.p=t,Es=e,xo=n,Co=r}function ct(e,t){let n=this||{};return function(){let r=arguments;function o(i,s){let a=Object.assign({},i),c=a.className||o.className;n.p=Object.assign({theme:xo&&xo()},a),n.o=/ *go\d+/.test(c),a.className=nr.apply(n,r)+(c?" "+c:"");let u=e;return e[0]&&(u=a.as||e,delete a.as),Co&&u[0]&&Co(a),Es(u,a)}return o}}var wd=e=>typeof e=="function",rr=(e,t)=>wd(e)?e(t):e,_d=(()=>{let e=0;return()=>(++e).toString()})(),Ss=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),xd=20,or=new Map,Cd=1e3,Ts=e=>{if(or.has(e))return;let t=setTimeout(()=>{or.delete(e),Tt({type:4,toastId:e})},Cd);or.set(e,t)},Ed=e=>{let t=or.get(e);t&&clearTimeout(t)},Eo=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,xd)};case 1:return t.toast.id&&Ed(t.toast.id),{...e,toasts:e.toasts.map(i=>i.id===t.toast.id?{...i,...t.toast}:i)};case 2:let{toast:n}=t;return e.toasts.find(i=>i.id===n.id)?Eo(e,{type:1,toast:n}):Eo(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?Ts(r):e.toasts.forEach(i=>{Ts(i.id)}),{...e,toasts:e.toasts.map(i=>i.id===r||r===void 0?{...i,visible:!1}:i)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(i=>i.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(i=>({...i,pauseDuration:i.pauseDuration+o}))}}},ir=[],sr={toasts:[],pausedAt:void 0},Tt=e=>{sr=Eo(sr,e),ir.forEach(t=>{t(sr)})},Sd={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Td=(e={})=>{let[t,n]=F(sr);K(()=>(ir.push(n),()=>{let o=ir.indexOf(n);o>-1&&ir.splice(o,1)}),[t]);let r=t.toasts.map(o=>{var i,s;return{...e,...e[o.type],...o,duration:o.duration||((i=e[o.type])==null?void 0:i.duration)||(e==null?void 0:e.duration)||Sd[o.type],style:{...e.style,...(s=e[o.type])==null?void 0:s.style,...o.style}}});return{...t,toasts:r}},Ad=(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)||_d()}),Rn=e=>(t,n)=>{let r=Ad(t,e,n);return Tt({type:2,toast:r}),r.id},Ce=(e,t)=>Rn("blank")(e,t);Ce.error=Rn("error"),Ce.success=Rn("success"),Ce.loading=Rn("loading"),Ce.custom=Rn("custom"),Ce.dismiss=e=>{Tt({type:3,toastId:e})},Ce.remove=e=>Tt({type:4,toastId:e}),Ce.promise=(e,t,n)=>{let r=Ce.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(o=>(Ce.success(rr(t.success,o),{id:r,...n,...n==null?void 0:n.success}),o)).catch(o=>{Ce.error(rr(t.error,o),{id:r,...n,...n==null?void 0:n.error})}),e};var Pd=(e,t)=>{Tt({type:1,toast:{id:e,height:t}})},Rd=()=>{Tt({type:5,time:Date.now()})},Od=e=>{let{toasts:t,pausedAt:n}=Td(e);K(()=>{if(n)return;let i=Date.now(),s=t.map(a=>{if(a.duration===1/0)return;let c=(a.duration||0)+a.pauseDuration-(i-a.createdAt);if(c<0){a.visible&&Ce.dismiss(a.id);return}return setTimeout(()=>Ce.dismiss(a.id),c)});return()=>{s.forEach(a=>a&&clearTimeout(a))}},[t,n]);let r=ue(()=>{n&&Tt({type:6,time:Date.now()})},[n]),o=ue((i,s)=>{let{reverseOrder:a=!1,gutter:c=8,defaultPosition:u}=s||{},d=t.filter(g=>(g.position||u)===(i.position||u)&&g.height),h=d.findIndex(g=>g.id===i.id),p=d.filter((g,w)=>w<h&&g.visible).length;return d.filter(g=>g.visible).slice(...a?[p+1]:[0,p]).reduce((g,w)=>g+(w.height||0)+c,0)},[t]);return{toasts:t,handlers:{updateHeight:Pd,startPause:Rd,endPause:r,calculateOffset:o}}},kd=Ye`
|
|
34
|
+
from {
|
|
35
|
+
transform: scale(0) rotate(45deg);
|
|
36
|
+
opacity: 0;
|
|
37
|
+
}
|
|
38
|
+
to {
|
|
39
|
+
transform: scale(1) rotate(45deg);
|
|
40
|
+
opacity: 1;
|
|
41
|
+
}`,jd=Ye`
|
|
42
|
+
from {
|
|
43
|
+
transform: scale(0);
|
|
44
|
+
opacity: 0;
|
|
45
|
+
}
|
|
46
|
+
to {
|
|
47
|
+
transform: scale(1);
|
|
48
|
+
opacity: 1;
|
|
49
|
+
}`,Dd=Ye`
|
|
50
|
+
from {
|
|
51
|
+
transform: scale(0) rotate(90deg);
|
|
52
|
+
opacity: 0;
|
|
53
|
+
}
|
|
54
|
+
to {
|
|
55
|
+
transform: scale(1) rotate(90deg);
|
|
56
|
+
opacity: 1;
|
|
57
|
+
}`,Ld=ct("div")`
|
|
58
|
+
width: 20px;
|
|
59
|
+
opacity: 0;
|
|
60
|
+
height: 20px;
|
|
61
|
+
border-radius: 10px;
|
|
62
|
+
background: ${e=>e.primary||"#ff4b4b"};
|
|
63
|
+
position: relative;
|
|
64
|
+
transform: rotate(45deg);
|
|
65
|
+
|
|
66
|
+
animation: ${kd} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
67
|
+
forwards;
|
|
68
|
+
animation-delay: 100ms;
|
|
69
|
+
|
|
70
|
+
&:after,
|
|
71
|
+
&:before {
|
|
72
|
+
content: '';
|
|
73
|
+
animation: ${jd} 0.15s ease-out forwards;
|
|
74
|
+
animation-delay: 150ms;
|
|
75
|
+
position: absolute;
|
|
76
|
+
border-radius: 3px;
|
|
77
|
+
opacity: 0;
|
|
78
|
+
background: ${e=>e.secondary||"#fff"};
|
|
79
|
+
bottom: 9px;
|
|
80
|
+
left: 4px;
|
|
81
|
+
height: 2px;
|
|
82
|
+
width: 12px;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&:before {
|
|
86
|
+
animation: ${Dd} 0.15s ease-out forwards;
|
|
87
|
+
animation-delay: 180ms;
|
|
88
|
+
transform: rotate(90deg);
|
|
89
|
+
}
|
|
90
|
+
`,Id=Ye`
|
|
91
|
+
from {
|
|
92
|
+
transform: rotate(0deg);
|
|
93
|
+
}
|
|
94
|
+
to {
|
|
95
|
+
transform: rotate(360deg);
|
|
96
|
+
}
|
|
97
|
+
`,Nd=ct("div")`
|
|
98
|
+
width: 12px;
|
|
99
|
+
height: 12px;
|
|
100
|
+
box-sizing: border-box;
|
|
101
|
+
border: 2px solid;
|
|
102
|
+
border-radius: 100%;
|
|
103
|
+
border-color: ${e=>e.secondary||"#e0e0e0"};
|
|
104
|
+
border-right-color: ${e=>e.primary||"#616161"};
|
|
105
|
+
animation: ${Id} 1s linear infinite;
|
|
106
|
+
`,Md=Ye`
|
|
107
|
+
from {
|
|
108
|
+
transform: scale(0) rotate(45deg);
|
|
109
|
+
opacity: 0;
|
|
110
|
+
}
|
|
111
|
+
to {
|
|
112
|
+
transform: scale(1) rotate(45deg);
|
|
113
|
+
opacity: 1;
|
|
114
|
+
}`,$d=Ye`
|
|
115
|
+
0% {
|
|
116
|
+
height: 0;
|
|
117
|
+
width: 0;
|
|
118
|
+
opacity: 0;
|
|
119
|
+
}
|
|
120
|
+
40% {
|
|
121
|
+
height: 0;
|
|
122
|
+
width: 6px;
|
|
123
|
+
opacity: 1;
|
|
124
|
+
}
|
|
125
|
+
100% {
|
|
126
|
+
opacity: 1;
|
|
127
|
+
height: 10px;
|
|
128
|
+
}`,Fd=ct("div")`
|
|
129
|
+
width: 20px;
|
|
130
|
+
opacity: 0;
|
|
131
|
+
height: 20px;
|
|
132
|
+
border-radius: 10px;
|
|
133
|
+
background: ${e=>e.primary||"#61d345"};
|
|
134
|
+
position: relative;
|
|
135
|
+
transform: rotate(45deg);
|
|
136
|
+
|
|
137
|
+
animation: ${Md} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
138
|
+
forwards;
|
|
139
|
+
animation-delay: 100ms;
|
|
140
|
+
&:after {
|
|
141
|
+
content: '';
|
|
142
|
+
box-sizing: border-box;
|
|
143
|
+
animation: ${$d} 0.2s ease-out forwards;
|
|
144
|
+
opacity: 0;
|
|
145
|
+
animation-delay: 200ms;
|
|
146
|
+
position: absolute;
|
|
147
|
+
border-right: 2px solid;
|
|
148
|
+
border-bottom: 2px solid;
|
|
149
|
+
border-color: ${e=>e.secondary||"#fff"};
|
|
150
|
+
bottom: 6px;
|
|
151
|
+
left: 6px;
|
|
152
|
+
height: 10px;
|
|
153
|
+
width: 6px;
|
|
154
|
+
}
|
|
155
|
+
`,Bd=ct("div")`
|
|
156
|
+
position: absolute;
|
|
157
|
+
`,Ud=ct("div")`
|
|
158
|
+
position: relative;
|
|
159
|
+
display: flex;
|
|
160
|
+
justify-content: center;
|
|
161
|
+
align-items: center;
|
|
162
|
+
min-width: 20px;
|
|
163
|
+
min-height: 20px;
|
|
164
|
+
`,zd=Ye`
|
|
165
|
+
from {
|
|
166
|
+
transform: scale(0.6);
|
|
167
|
+
opacity: 0.4;
|
|
168
|
+
}
|
|
169
|
+
to {
|
|
170
|
+
transform: scale(1);
|
|
171
|
+
opacity: 1;
|
|
172
|
+
}`,Hd=ct("div")`
|
|
173
|
+
position: relative;
|
|
174
|
+
transform: scale(0.6);
|
|
175
|
+
opacity: 0.4;
|
|
176
|
+
min-width: 20px;
|
|
177
|
+
animation: ${zd} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
178
|
+
forwards;
|
|
179
|
+
`,Wd=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?m.createElement(Hd,null,t):t:n==="blank"?null:m.createElement(Ud,null,m.createElement(Nd,{...r}),n!=="loading"&&m.createElement(Bd,null,n==="error"?m.createElement(Ld,{...r}):m.createElement(Fd,{...r})))},Vd=e=>`
|
|
180
|
+
0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
|
|
181
|
+
100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
|
|
182
|
+
`,Gd=e=>`
|
|
183
|
+
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
|
|
184
|
+
100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
|
|
185
|
+
`,qd="0%{opacity:0;} 100%{opacity:1;}",Qd="0%{opacity:1;} 100%{opacity:0;}",Yd=ct("div")`
|
|
186
|
+
display: flex;
|
|
187
|
+
align-items: center;
|
|
188
|
+
background: #fff;
|
|
189
|
+
color: #363636;
|
|
190
|
+
line-height: 1.3;
|
|
191
|
+
will-change: transform;
|
|
192
|
+
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
|
|
193
|
+
max-width: 350px;
|
|
194
|
+
pointer-events: auto;
|
|
195
|
+
padding: 8px 10px;
|
|
196
|
+
border-radius: 8px;
|
|
197
|
+
`,Kd=ct("div")`
|
|
198
|
+
display: flex;
|
|
199
|
+
justify-content: center;
|
|
200
|
+
margin: 4px 10px;
|
|
201
|
+
color: inherit;
|
|
202
|
+
flex: 1 1 auto;
|
|
203
|
+
white-space: pre-line;
|
|
204
|
+
`,Zd=(e,t)=>{let n=e.includes("top")?1:-1,[r,o]=Ss()?[qd,Qd]:[Vd(n),Gd(n)];return{animation:t?`${Ye(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Ye(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},Xd=m.memo(({toast:e,position:t,style:n,children:r})=>{let o=e.height?Zd(e.position||t||"top-center",e.visible):{opacity:0},i=m.createElement(Wd,{toast:e}),s=m.createElement(Kd,{...e.ariaProps},rr(e.message,e));return m.createElement(Yd,{className:e.className,style:{...o,...n,...e.style}},typeof r=="function"?r({icon:i,message:s}):m.createElement(m.Fragment,null,i,s))});bd(m.createElement);var Jd=({id:e,className:t,style:n,onHeightUpdate:r,children:o})=>{let i=m.useCallback(s=>{if(s){let a=()=>{let c=s.getBoundingClientRect().height;r(e,c)};a(),new MutationObserver(a).observe(s,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return m.createElement("div",{ref:i,className:t,style:n},o)},ef=(e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},o=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:Ss()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...o}},tf=nr`
|
|
205
|
+
z-index: 9999;
|
|
206
|
+
> * {
|
|
207
|
+
pointer-events: auto;
|
|
208
|
+
}
|
|
209
|
+
`,ar=16,nf=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:o,containerStyle:i,containerClassName:s})=>{let{toasts:a,handlers:c}=Od(n);return m.createElement("div",{style:{position:"fixed",zIndex:9999,top:ar,left:ar,right:ar,bottom:ar,pointerEvents:"none",...i},className:s,onMouseEnter:c.startPause,onMouseLeave:c.endPause},a.map(u=>{let d=u.position||t,h=c.calculateOffset(u,{reverseOrder:e,gutter:r,defaultPosition:t}),p=ef(d,h);return m.createElement(Jd,{id:u.id,key:u.id,onHeightUpdate:c.updateHeight,className:u.visible?tf:"",style:p},u.type==="custom"?rr(u.message,u):o?o(u):m.createElement(Xd,{toast:u,position:d}))}))},As=Ce;const Ps=E("useNotifications",()=>({notify:ue((t,n,r)=>{n==="warning"||n==="info"?As(t,{icon:n==="warning"?"⚠️":"ℹ️",style:{background:"var(--platform-background-primary-color)",color:"var(--platform-text-primary-color)"}}):As[n](t,{style:{background:"var(--platform-background-primary-color)",color:"var(--platform-text-primary-color)"}}),r&&console.error(r)},[])}));var Qt=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},At=typeof window>"u"||"Deno"in globalThis;function fe(){}function rf(e,t){return typeof e=="function"?e(t):e}function So(e){return typeof e=="number"&&e>=0&&e!==1/0}function Rs(e,t){return Math.max(e+(t||0)-Date.now(),0)}function lt(e,t){return typeof e=="function"?e(t):e}function Re(e,t){return typeof e=="function"?e(t):e}function Os(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==To(s,t.options))return!1}else if(!On(t.queryKey,s))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||i&&!i(t))}function ks(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Pt(t.options.mutationKey)!==Pt(i))return!1}else if(!On(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function To(e,t){return((t==null?void 0:t.queryKeyHashFn)||Pt)(e)}function Pt(e){return JSON.stringify(e,(t,n)=>Po(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function On(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>On(e[n],t[n])):!1}function Ao(e,t){if(e===t)return e;const n=js(e)&&js(t);if(n||Po(e)&&Po(t)){const r=n?e:Object.keys(e),o=r.length,i=n?t:Object.keys(t),s=i.length,a=n?[]:{};let c=0;for(let u=0;u<s;u++){const d=n?u:i[u];(!n&&r.includes(d)||n)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,c++):(a[d]=Ao(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&c++)}return o===s&&c===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 js(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Po(e){if(!Ds(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Ds(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Ds(e){return Object.prototype.toString.call(e)==="[object Object]"}function of(e){return new Promise(t=>{setTimeout(t,e)})}function Ro(e,t,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(e,t);if(n.structuralSharing!==!1){try{return Ao(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 Ao(e,t)}return t}function sf(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function af(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var lr=Symbol();function Ls(e,t){return e.queryFn===lr&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===lr?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Is(e,t){return typeof e=="function"?e(...t):!!e}var cf=(Ml=class extends Qt{constructor(){super();D(this,Lt);D(this,ht);D(this,cn);O(this,cn,t=>{if(!At&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){b(this,ht)||this.setEventListener(b(this,cn))}onUnsubscribe(){var t;this.hasListeners()||((t=b(this,ht))==null||t.call(this),O(this,ht,void 0))}setEventListener(t){var n;O(this,cn,t),(n=b(this,ht))==null||n.call(this),O(this,ht,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){b(this,Lt)!==t&&(O(this,Lt,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof b(this,Lt)=="boolean"?b(this,Lt):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Lt=new WeakMap,ht=new WeakMap,cn=new WeakMap,Ml),Oo=new cf,lf=($l=class extends Qt{constructor(){super();D(this,ln,!0);D(this,mt);D(this,un);O(this,un,t=>{if(!At&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){b(this,mt)||this.setEventListener(b(this,un))}onUnsubscribe(){var t;this.hasListeners()||((t=b(this,mt))==null||t.call(this),O(this,mt,void 0))}setEventListener(t){var n;O(this,un,t),(n=b(this,mt))==null||n.call(this),O(this,mt,t(this.setOnline.bind(this)))}setOnline(t){b(this,ln)!==t&&(O(this,ln,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return b(this,ln)}},ln=new WeakMap,mt=new WeakMap,un=new WeakMap,$l),ur=new lf;function ko(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function uf(e){return Math.min(1e3*2**e,3e4)}function Ns(e){return(e??"online")==="online"?ur.isOnline():!0}var Ms=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function jo(e){return e instanceof Ms}function $s(e){let t=!1,n=0,r=!1,o;const i=ko(),s=f=>{var v;r||(p(new Ms(f)),(v=e.abort)==null||v.call(e))},a=()=>{t=!0},c=()=>{t=!1},u=()=>Oo.isFocused()&&(e.networkMode==="always"||ur.isOnline())&&e.canRun(),d=()=>Ns(e.networkMode)&&e.canRun(),h=f=>{var v;r||(r=!0,(v=e.onSuccess)==null||v.call(e,f),o==null||o(),i.resolve(f))},p=f=>{var v;r||(r=!0,(v=e.onError)==null||v.call(e,f),o==null||o(),i.reject(f))},g=()=>new Promise(f=>{var v;o=_=>{(r||u())&&f(_)},(v=e.onPause)==null||v.call(e)}).then(()=>{var f;o=void 0,r||(f=e.onContinue)==null||f.call(e)}),w=()=>{if(r)return;let f;const v=n===0?e.initialPromise:void 0;try{f=v??e.fn()}catch(_){f=Promise.reject(_)}Promise.resolve(f).then(h).catch(_=>{var R;if(r)return;const x=e.retry??(At?0:3),S=e.retryDelay??uf,C=typeof S=="function"?S(n,_):S,T=x===!0||typeof x=="number"&&n<x||typeof x=="function"&&x(n,_);if(t||!T){p(_);return}n++,(R=e.onFail)==null||R.call(e,n,_),of(C).then(()=>u()?void 0:g()).then(()=>{t?p(_):w()})})};return{promise:i,cancel:s,continue:()=>(o==null||o(),i),cancelRetry:a,continueRetry:c,canStart:d,start:()=>(d()?w():g().then(w),i)}}var df=e=>setTimeout(e,0);function ff(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=df;const i=a=>{t?e.push(a):o(()=>{n(a)})},s=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(c=>{n(c)})})})};return{batch:a=>{let c;t++;try{c=a()}finally{t--,t||s()}return c},batchCalls:a=>(...c)=>{i(()=>{a(...c)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var se=ff(),Fs=(Fl=class{constructor(){D(this,It)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),So(this.gcTime)&&O(this,It,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(At?1/0:5*60*1e3))}clearGcTimeout(){b(this,It)&&(clearTimeout(b(this,It)),O(this,It,void 0))}},It=new WeakMap,Fl),pf=(Bl=class extends Fs{constructor(t){super();D(this,Ie);D(this,dn);D(this,fn);D(this,Ae);D(this,Nt);D(this,de);D(this,Fn);D(this,Mt);O(this,Mt,!1),O(this,Fn,t.defaultOptions),this.setOptions(t.options),this.observers=[],O(this,Nt,t.client),O(this,Ae,b(this,Nt).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,O(this,dn,hf(this.options)),this.state=t.state??b(this,dn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=b(this,de))==null?void 0:t.promise}setOptions(t){this.options={...b(this,Fn),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&b(this,Ae).remove(this)}setData(t,n){const r=Ro(this.state.data,t,this.options);return $(this,Ie,ot).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){$(this,Ie,ot).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=b(this,de))==null?void 0:r.promise;return(o=b(this,de))==null||o.cancel(t),n?n.then(fe).catch(fe):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(b(this,dn))}isActive(){return this.observers.some(t=>Re(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===lr||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>lt(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:!Rs(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=b(this,de))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=b(this,de))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),b(this,Ae).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(b(this,de)&&(b(this,Mt)?b(this,de).cancel({revert:!0}):b(this,de).cancelRetry()),this.scheduleGc()),b(this,Ae).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||$(this,Ie,ot).call(this,{type:"invalidate"})}fetch(t,n){var u,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,de))return b(this,de).continueRetry(),b(this,de).promise}if(t&&this.setOptions(t),!this.options.queryFn){const p=this.observers.find(g=>g.options.queryFn);p&&this.setOptions(p.options)}Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']");const r=new AbortController,o=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(O(this,Mt,!0),r.signal)})},i=()=>{const p=Ls(this.options,n),w=(()=>{const f={client:b(this,Nt),queryKey:this.queryKey,meta:this.meta};return o(f),f})();return O(this,Mt,!1),this.options.persister?this.options.persister(p,w,this):p(w)},a=(()=>{const p={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:b(this,Nt),state:this.state,fetchFn:i};return o(p),p})();(u=this.options.behavior)==null||u.onFetch(a,this),O(this,fn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=a.fetchOptions)==null?void 0:d.meta))&&$(this,Ie,ot).call(this,{type:"fetch",meta:(h=a.fetchOptions)==null?void 0:h.meta});const c=p=>{var g,w,f,v;jo(p)&&p.silent||$(this,Ie,ot).call(this,{type:"error",error:p}),jo(p)||((w=(g=b(this,Ae).config).onError)==null||w.call(g,p,this),(v=(f=b(this,Ae).config).onSettled)==null||v.call(f,this.state.data,p,this)),this.scheduleGc()};return O(this,de,$s({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:p=>{var g,w,f,v;if(p===void 0){console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(p)}catch(_){c(_);return}(w=(g=b(this,Ae).config).onSuccess)==null||w.call(g,p,this),(v=(f=b(this,Ae).config).onSettled)==null||v.call(f,p,this.state.error,this),this.scheduleGc()},onError:c,onFail:(p,g)=>{$(this,Ie,ot).call(this,{type:"failed",failureCount:p,error:g})},onPause:()=>{$(this,Ie,ot).call(this,{type:"pause"})},onContinue:()=>{$(this,Ie,ot).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),b(this,de).start()}},dn=new WeakMap,fn=new WeakMap,Ae=new WeakMap,Nt=new WeakMap,de=new WeakMap,Fn=new WeakMap,Mt=new WeakMap,Ie=new WeakSet,ot=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Bs(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 jo(o)&&o.revert&&b(this,fn)?{...b(this,fn),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),se.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),b(this,Ae).notify({query:this,type:"updated",action:t})})},Bl);function Bs(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ns(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function hf(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 mf=(Ul=class extends Qt{constructor(t={}){super();D(this,He);this.config=t,O(this,He,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??To(o,n);let s=this.get(i);return s||(s=new pf({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){b(this,He).has(t.queryHash)||(b(this,He).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=b(this,He).get(t.queryHash);n&&(t.destroy(),n===t&&b(this,He).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){se.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return b(this,He).get(t)}getAll(){return[...b(this,He).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Os(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Os(t,r)):n}notify(t){se.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){se.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){se.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},He=new WeakMap,Ul),gf=(zl=class extends Fs{constructor(t){super();D(this,Ve);D(this,We);D(this,he);D(this,$t);this.mutationId=t.mutationId,O(this,he,t.mutationCache),O(this,We,[]),this.state=t.state||Us(),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,We).includes(t)||(b(this,We).push(t),this.clearGcTimeout(),b(this,he).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){O(this,We,b(this,We).filter(n=>n!==t)),this.scheduleGc(),b(this,he).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){b(this,We).length||(this.state.status==="pending"?this.scheduleGc():b(this,he).remove(this))}continue(){var t;return((t=b(this,$t))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,s,a,c,u,d,h,p,g,w,f,v,_,x,S,C,T,R,P,I;const n=()=>{$(this,Ve,Et).call(this,{type:"continue"})};O(this,$t,$s({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(N,M)=>{$(this,Ve,Et).call(this,{type:"failed",failureCount:N,error:M})},onPause:()=>{$(this,Ve,Et).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>b(this,he).canRun(this)}));const r=this.state.status==="pending",o=!b(this,$t).canStart();try{if(r)n();else{$(this,Ve,Et).call(this,{type:"pending",variables:t,isPaused:o}),await((s=(i=b(this,he).config).onMutate)==null?void 0:s.call(i,t,this));const M=await((c=(a=this.options).onMutate)==null?void 0:c.call(a,t));M!==this.state.context&&$(this,Ve,Et).call(this,{type:"pending",context:M,variables:t,isPaused:o})}const N=await b(this,$t).start();return await((d=(u=b(this,he).config).onSuccess)==null?void 0:d.call(u,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=(g=b(this,he).config).onSettled)==null?void 0:w.call(g,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)),$(this,Ve,Et).call(this,{type:"success",data:N}),N}catch(N){try{throw await((x=(_=b(this,he).config).onError)==null?void 0:x.call(_,N,t,this.state.context,this)),await((C=(S=this.options).onError)==null?void 0:C.call(S,N,t,this.state.context)),await((R=(T=b(this,he).config).onSettled)==null?void 0:R.call(T,void 0,N,this.state.variables,this.state.context,this)),await((I=(P=this.options).onSettled)==null?void 0:I.call(P,void 0,N,t,this.state.context)),N}finally{$(this,Ve,Et).call(this,{type:"error",error:N})}}finally{b(this,he).runNext(this)}}},We=new WeakMap,he=new WeakMap,$t=new WeakMap,Ve=new WeakSet,Et=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),se.batch(()=>{b(this,We).forEach(r=>{r.onMutationUpdate(t)}),b(this,he).notify({mutation:this,type:"updated",action:t})})},zl);function Us(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var vf=(Hl=class extends Qt{constructor(t={}){super();D(this,et);D(this,Ne);D(this,Bn);this.config=t,O(this,et,new Set),O(this,Ne,new Map),O(this,Bn,0)}build(t,n,r){const o=new gf({mutationCache:this,mutationId:++eo(this,Bn)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){b(this,et).add(t);const n=dr(t);if(typeof n=="string"){const r=b(this,Ne).get(n);r?r.push(t):b(this,Ne).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(b(this,et).delete(t)){const n=dr(t);if(typeof n=="string"){const r=b(this,Ne).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,Ne).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=dr(t);if(typeof n=="string"){const r=b(this,Ne).get(n),o=r==null?void 0:r.find(i=>i.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=dr(t);if(typeof n=="string"){const o=(r=b(this,Ne).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){se.batch(()=>{b(this,et).forEach(t=>{this.notify({type:"removed",mutation:t})}),b(this,et).clear(),b(this,Ne).clear()})}getAll(){return Array.from(b(this,et))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>ks(n,r))}findAll(t={}){return this.getAll().filter(n=>ks(t,n))}notify(t){se.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return se.batch(()=>Promise.all(t.map(n=>n.continue().catch(fe))))}},et=new WeakMap,Ne=new WeakMap,Bn=new WeakMap,Hl);function dr(e){var t;return(t=e.options.scope)==null?void 0:t.id}function zs(e){return{onFetch:(t,n)=>{var d,h,p,g,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,i=((g=t.state.data)==null?void 0:g.pages)||[],s=((w=t.state.data)==null?void 0:w.pageParams)||[];let a={pages:[],pageParams:[]},c=0;const u=async()=>{let f=!1;const v=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(t.signal.aborted?f=!0:t.signal.addEventListener("abort",()=>{f=!0}),t.signal)})},_=Ls(t.options,t.fetchOptions),x=async(S,C,T)=>{if(f)return Promise.reject();if(C==null&&S.pages.length)return Promise.resolve(S);const P=(()=>{const Z={client:t.client,queryKey:t.queryKey,pageParam:C,direction:T?"backward":"forward",meta:t.options.meta};return v(Z),Z})(),I=await _(P),{maxPages:N}=t.options,M=T?af:sf;return{pages:M(S.pages,I,N),pageParams:M(S.pageParams,C,N)}};if(o&&i.length){const S=o==="backward",C=S?yf:Hs,T={pages:i,pageParams:s},R=C(r,T);a=await x(T,R,S)}else{const S=e??i.length;do{const C=c===0?s[0]??r.initialPageParam:Hs(r,a);if(c>0&&C==null)break;a=await x(a,C),c++}while(c<S)}return a};t.options.persister?t.fetchFn=()=>{var f,v;return(v=(f=t.options).persister)==null?void 0:v.call(f,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Hs(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 yf(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 bf=(Wl=class{constructor(e={}){D(this,te);D(this,gt);D(this,vt);D(this,pn);D(this,hn);D(this,yt);D(this,mn);D(this,gn);O(this,te,e.queryCache||new mf),O(this,gt,e.mutationCache||new vf),O(this,vt,e.defaultOptions||{}),O(this,pn,new Map),O(this,hn,new Map),O(this,yt,0)}mount(){eo(this,yt)._++,b(this,yt)===1&&(O(this,mn,Oo.subscribe(async e=>{e&&(await this.resumePausedMutations(),b(this,te).onFocus())})),O(this,gn,ur.subscribe(async e=>{e&&(await this.resumePausedMutations(),b(this,te).onOnline())})))}unmount(){var e,t;eo(this,yt)._--,b(this,yt)===0&&((e=b(this,mn))==null||e.call(this),O(this,mn,void 0),(t=b(this,gn))==null||t.call(this),O(this,gn,void 0))}isFetching(e){return b(this,te).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return b(this,gt).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=b(this,te).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=b(this,te).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(lt(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return b(this,te).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=b(this,te).get(r.queryHash),i=o==null?void 0:o.state.data,s=rf(t,i);if(s!==void 0)return b(this,te).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return se.batch(()=>b(this,te).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=b(this,te).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=b(this,te);se.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=b(this,te);return se.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=se.batch(()=>b(this,te).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(fe).catch(fe)}invalidateQueries(e,t={}){return se.batch(()=>(b(this,te).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=se.batch(()=>b(this,te).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(fe)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(fe)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=b(this,te).build(this,t);return n.isStaleByTime(lt(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(fe).catch(fe)}fetchInfiniteQuery(e){return e.behavior=zs(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(fe).catch(fe)}ensureInfiniteQueryData(e){return e.behavior=zs(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ur.isOnline()?b(this,gt).resumePausedMutations():Promise.resolve()}getQueryCache(){return b(this,te)}getMutationCache(){return b(this,gt)}getDefaultOptions(){return b(this,vt)}setDefaultOptions(e){O(this,vt,e)}setQueryDefaults(e,t){b(this,pn).set(Pt(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...b(this,pn).values()],n={};return t.forEach(r=>{On(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){b(this,hn).set(Pt(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...b(this,hn).values()],n={};return t.forEach(r=>{On(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...b(this,vt).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=To(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===lr&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...b(this,vt).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){b(this,te).clear(),b(this,gt).clear()}},te=new WeakMap,gt=new WeakMap,vt=new WeakMap,pn=new WeakMap,hn=new WeakMap,yt=new WeakMap,mn=new WeakMap,gn=new WeakMap,Wl),wf=(Vl=class extends Qt{constructor(t,n){super();D(this,G);D(this,we);D(this,H);D(this,Un);D(this,me);D(this,Ft);D(this,vn);D(this,bt);D(this,wt);D(this,zn);D(this,yn);D(this,bn);D(this,Bt);D(this,Ut);D(this,_t);D(this,wn,new Set);this.options=n,O(this,we,t),O(this,wt,null),O(this,bt,ko()),this.options.experimental_prefetchInRender||b(this,bt).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(b(this,H).addObserver(this),Ws(b(this,H),this.options)?$(this,G,Vn).call(this):this.updateResult(),$(this,G,Bi).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Do(b(this,H),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Do(b(this,H),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,$(this,G,Ui).call(this),$(this,G,zi).call(this),b(this,H).removeObserver(this)}setOptions(t){const n=this.options,r=b(this,H);if(this.options=b(this,we).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Re(this.options.enabled,b(this,H))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");$(this,G,Hi).call(this),b(this,H).setOptions(this.options),n._defaulted&&!cr(this.options,n)&&b(this,we).getQueryCache().notify({type:"observerOptionsUpdated",query:b(this,H),observer:this});const o=this.hasListeners();o&&Vs(b(this,H),r,this.options,n)&&$(this,G,Vn).call(this),this.updateResult(),o&&(b(this,H)!==r||Re(this.options.enabled,b(this,H))!==Re(n.enabled,b(this,H))||lt(this.options.staleTime,b(this,H))!==lt(n.staleTime,b(this,H)))&&$(this,G,Mi).call(this);const i=$(this,G,$i).call(this);o&&(b(this,H)!==r||Re(this.options.enabled,b(this,H))!==Re(n.enabled,b(this,H))||i!==b(this,_t))&&$(this,G,Fi).call(this,i)}getOptimisticResult(t){const n=b(this,we).getQueryCache().build(b(this,we),t),r=this.createResult(n,t);return xf(this,r)&&(O(this,me,r),O(this,vn,this.options),O(this,Ft,b(this,H).state)),r}getCurrentResult(){return b(this,me)}trackResult(t,n){return new Proxy(t,{get:(r,o)=>(this.trackProp(o),n==null||n(o),Reflect.get(r,o))})}trackProp(t){b(this,wn).add(t)}getCurrentQuery(){return b(this,H)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=b(this,we).defaultQueryOptions(t),r=b(this,we).getQueryCache().build(b(this,we),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return $(this,G,Vn).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),b(this,me)))}createResult(t,n){var N;const r=b(this,H),o=this.options,i=b(this,me),s=b(this,Ft),a=b(this,vn),u=t!==r?t.state:b(this,Un),{state:d}=t;let h={...d},p=!1,g;if(n._optimisticResults){const M=this.hasListeners(),Z=!M&&Ws(t,n),X=M&&Vs(t,r,n,o);(Z||X)&&(h={...h,...Bs(d.data,t.options)}),n._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:w,errorUpdatedAt:f,status:v}=h;g=h.data;let _=!1;if(n.placeholderData!==void 0&&g===void 0&&v==="pending"){let M;i!=null&&i.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(M=i.data,_=!0):M=typeof n.placeholderData=="function"?n.placeholderData((N=b(this,bn))==null?void 0:N.state.data,b(this,bn)):n.placeholderData,M!==void 0&&(v="success",g=Ro(i==null?void 0:i.data,M,n),p=!0)}if(n.select&&g!==void 0&&!_)if(i&&g===(s==null?void 0:s.data)&&n.select===b(this,zn))g=b(this,yn);else try{O(this,zn,n.select),g=n.select(g),g=Ro(i==null?void 0:i.data,g,n),O(this,yn,g),O(this,wt,null)}catch(M){O(this,wt,M)}b(this,wt)&&(w=b(this,wt),g=b(this,yn),f=Date.now(),v="error");const x=h.fetchStatus==="fetching",S=v==="pending",C=v==="error",T=S&&x,R=g!==void 0,I={status:v,fetchStatus:h.fetchStatus,isPending:S,isSuccess:v==="success",isError:C,isInitialLoading:T,isLoading:T,data:g,dataUpdatedAt:h.dataUpdatedAt,error:w,errorUpdatedAt:f,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>u.dataUpdateCount||h.errorUpdateCount>u.errorUpdateCount,isFetching:x,isRefetching:x&&!S,isLoadingError:C&&!R,isPaused:h.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:C&&R,isStale:Lo(t,n),refetch:this.refetch,promise:b(this,bt)};if(this.options.experimental_prefetchInRender){const M=V=>{I.status==="error"?V.reject(I.error):I.data!==void 0&&V.resolve(I.data)},Z=()=>{const V=O(this,bt,I.promise=ko());M(V)},X=b(this,bt);switch(X.status){case"pending":t.queryHash===r.queryHash&&M(X);break;case"fulfilled":(I.status==="error"||I.data!==X.value)&&Z();break;case"rejected":(I.status!=="error"||I.error!==X.reason)&&Z();break}}return I}updateResult(){const t=b(this,me),n=this.createResult(b(this,H),this.options);if(O(this,Ft,b(this,H).state),O(this,vn,this.options),b(this,Ft).data!==void 0&&O(this,bn,b(this,H)),cr(n,t))return;O(this,me,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,i=typeof o=="function"?o():o;if(i==="all"||!i&&!b(this,wn).size)return!0;const s=new Set(i??b(this,wn));return this.options.throwOnError&&s.add("error"),Object.keys(b(this,me)).some(a=>{const c=a;return b(this,me)[c]!==t[c]&&s.has(c)})};$(this,G,su).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&$(this,G,Bi).call(this)}},we=new WeakMap,H=new WeakMap,Un=new WeakMap,me=new WeakMap,Ft=new WeakMap,vn=new WeakMap,bt=new WeakMap,wt=new WeakMap,zn=new WeakMap,yn=new WeakMap,bn=new WeakMap,Bt=new WeakMap,Ut=new WeakMap,_t=new WeakMap,wn=new WeakMap,G=new WeakSet,Vn=function(t){$(this,G,Hi).call(this);let n=b(this,H).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(fe)),n},Mi=function(){$(this,G,Ui).call(this);const t=lt(this.options.staleTime,b(this,H));if(At||b(this,me).isStale||!So(t))return;const r=Rs(b(this,me).dataUpdatedAt,t)+1;O(this,Bt,setTimeout(()=>{b(this,me).isStale||this.updateResult()},r))},$i=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(b(this,H)):this.options.refetchInterval)??!1},Fi=function(t){$(this,G,zi).call(this),O(this,_t,t),!(At||Re(this.options.enabled,b(this,H))===!1||!So(b(this,_t))||b(this,_t)===0)&&O(this,Ut,setInterval(()=>{(this.options.refetchIntervalInBackground||Oo.isFocused())&&$(this,G,Vn).call(this)},b(this,_t)))},Bi=function(){$(this,G,Mi).call(this),$(this,G,Fi).call(this,$(this,G,$i).call(this))},Ui=function(){b(this,Bt)&&(clearTimeout(b(this,Bt)),O(this,Bt,void 0))},zi=function(){b(this,Ut)&&(clearInterval(b(this,Ut)),O(this,Ut,void 0))},Hi=function(){const t=b(this,we).getQueryCache().build(b(this,we),this.options);if(t===b(this,H))return;const n=b(this,H);O(this,H,t),O(this,Un,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},su=function(t){se.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(b(this,me))}),b(this,we).getQueryCache().notify({query:b(this,H),type:"observerResultsUpdated"})})},Vl);function _f(e,t){return Re(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Ws(e,t){return _f(e,t)||e.state.data!==void 0&&Do(e,t,t.refetchOnMount)}function Do(e,t,n){if(Re(t.enabled,e)!==!1&<(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Lo(e,t)}return!1}function Vs(e,t,n,r){return(e!==t||Re(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Lo(e,n)}function Lo(e,t){return Re(t.enabled,e)!==!1&&e.isStaleByTime(lt(t.staleTime,e))}function xf(e,t){return!cr(e.getCurrentResult(),t)}var Cf=(Gl=class extends Qt{constructor(n,r){super();D(this,nt);D(this,xt);D(this,Ct);D(this,_e);D(this,tt);O(this,xt,n),this.setOptions(r),this.bindMethods(),$(this,nt,to).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,xt).defaultMutationOptions(n),cr(this.options,r)||b(this,xt).getMutationCache().notify({type:"observerOptionsUpdated",mutation:b(this,_e),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Pt(r.mutationKey)!==Pt(this.options.mutationKey)?this.reset():((o=b(this,_e))==null?void 0:o.state.status)==="pending"&&b(this,_e).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=b(this,_e))==null||n.removeObserver(this)}onMutationUpdate(n){$(this,nt,to).call(this),$(this,nt,Wi).call(this,n)}getCurrentResult(){return b(this,Ct)}reset(){var n;(n=b(this,_e))==null||n.removeObserver(this),O(this,_e,void 0),$(this,nt,to).call(this),$(this,nt,Wi).call(this)}mutate(n,r){var o;return O(this,tt,r),(o=b(this,_e))==null||o.removeObserver(this),O(this,_e,b(this,xt).getMutationCache().build(b(this,xt),this.options)),b(this,_e).addObserver(this),b(this,_e).execute(n)}},xt=new WeakMap,Ct=new WeakMap,_e=new WeakMap,tt=new WeakMap,nt=new WeakSet,to=function(){var r;const n=((r=b(this,_e))==null?void 0:r.state)??Us();O(this,Ct,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Wi=function(n){se.batch(()=>{var r,o,i,s,a,c,u,d;if(b(this,tt)&&this.hasListeners()){const h=b(this,Ct).variables,p=b(this,Ct).context;(n==null?void 0:n.type)==="success"?((o=(r=b(this,tt)).onSuccess)==null||o.call(r,n.data,h,p),(s=(i=b(this,tt)).onSettled)==null||s.call(i,n.data,null,h,p)):(n==null?void 0:n.type)==="error"&&((c=(a=b(this,tt)).onError)==null||c.call(a,n.error,h,p),(d=(u=b(this,tt)).onSettled)==null||d.call(u,void 0,n.error,h,p))}this.listeners.forEach(h=>{h(b(this,Ct))})})},Gl),Gs=m.createContext(void 0),Io=e=>{const t=m.useContext(Gs);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Ef=({client:e,children:t})=>(m.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),l.jsx(Gs.Provider,{value:e,children:t})),qs=m.createContext(!1),Sf=()=>m.useContext(qs);qs.Provider;function Tf(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Af=m.createContext(Tf()),Pf=()=>m.useContext(Af),Rf=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Of=e=>{m.useEffect(()=>{e.clearReset()},[e])},kf=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||Is(n,[e.error,r])),jf=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))}},Df=(e,t)=>e.isLoading&&e.isFetching&&!t,Lf=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Qs=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function If(e,t,n){var h,p,g,w,f;if(typeof e!="object"||Array.isArray(e))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=Sf(),o=Pf(),i=Io(),s=i.defaultQueryOptions(e);(p=(h=i.getDefaultOptions().queries)==null?void 0:h._experimental_beforeQuery)==null||p.call(h,s),s.queryFn||console.error(`[${s.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`),s._optimisticResults=r?"isRestoring":"optimistic",jf(s),Rf(s,o),Of(o);const a=!i.getQueryCache().get(s.queryHash),[c]=m.useState(()=>new t(i,s)),u=c.getOptimisticResult(s),d=!r&&e.subscribed!==!1;if(m.useSyncExternalStore(m.useCallback(v=>{const _=d?c.subscribe(se.batchCalls(v)):fe;return c.updateResult(),_},[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),m.useEffect(()=>{c.setOptions(s)},[s,c]),Lf(s,u))throw Qs(s,c,o);if(kf({result:u,errorResetBoundary:o,throwOnError:s.throwOnError,query:i.getQueryCache().get(s.queryHash),suspense:s.suspense}))throw u.error;if((w=(g=i.getDefaultOptions().queries)==null?void 0:g._experimental_afterQuery)==null||w.call(g,s,u),s.experimental_prefetchInRender&&!At&&Df(u,r)){const v=a?Qs(s,c,o):(f=i.getQueryCache().get(s.queryHash))==null?void 0:f.promise;v==null||v.catch(fe).finally(()=>{c.updateResult()})}return s.notifyOnChangeProps?u:c.trackResult(u)}function Ys(e,t){return If(e,wf)}function fr(e,t){const n=Io(),[r]=m.useState(()=>new Cf(n,e));m.useEffect(()=>{r.setOptions(e)},[r,e]);const o=m.useSyncExternalStore(m.useCallback(s=>r.subscribe(se.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=m.useCallback((s,a)=>{r.mutate(s,a).catch(fe)},[r]);if(o.error&&Is(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}const pr={STALE_TIME:1e3*60*5,GC_TIME:1e3*60*10,RETRY_COUNT:1,RETRY_DELAY:1e3},Ks={refetchOnWindowFocus:!1,refetchOnReconnect:!1,refetchOnMount:!1,staleTime:pr.STALE_TIME,gcTime:pr.GC_TIME,retry:pr.RETRY_COUNT,retryDelay:pr.RETRY_DELAY,enable:!0},hr=e=>e instanceof Error?e.message:String(e),Nf=E("useResourceActions",(e,t,n)=>{const r=Io(),{notify:o}=Ps(),{createFn:i,readFn:s,readByIdFn:a,updateFn:c,deleteFn:u,partialUpdateFn:d}=n,h=()=>{r.invalidateQueries({queryKey:[e]})},p=(C,T,R,P)=>o(P!=null&&P.overrideSuccessMessage?P==null?void 0:P.overrideSuccessMessage(C,T):R,"success"),g=(C,T,R,P)=>o(P!=null&&P.overrideErrorMessage?P==null?void 0:P.overrideErrorMessage(C,T):R,"error");return{useCreate:C=>fr({mutationFn:T=>i(T),onSuccess:T=>{h(),p(t,T,`${t} created successfully`,C)},onError:T=>{g(t,T,`Error creating ${t}: ${hr(T)}`,C)}}),useReadQuery:C=>Ys({queryKey:[e],queryFn:s,...Ks,...C}),useReadByIdQuery:(C,T)=>Ys({queryKey:[e,C],queryFn:()=>a(C),...Ks,enabled:!!C,...T}),useUpdate:C=>fr({mutationFn:({id:T,data:R})=>c(T,R),onSuccess:T=>{h(),p(t,T,`${t} updated successfully`,C)},onError:T=>{g(t,T,`Error updating ${t}: ${hr(T)}`,C)}}),usePartialUpdate:C=>d&&fr({mutationFn:({id:T,data:R})=>d(T,R),onSuccess:T=>{h(),p(t,T,`${t} updated successfully`,C)},onError:T=>{g(t,T,`Error updating ${t}: ${hr(T)}`,C)}}),useDelete:C=>fr({mutationFn:T=>u(T),onSuccess:()=>{h(),p(t,null,`${t} deleted successfully`,C)},onError:T=>{g(t,T,`Error deleting ${t}: ${hr(T)}`,C)}}),invalidateQueries:h}}),iv=E("useResource",(e,t)=>Nf(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())})),Mf={SINGLE_TENANT:"single-tenant"},$f={COOKIE:"cookie"},No="tenant",Zs="tenant",Xs="tenant",Ff=Mf.SINGLE_TENANT,Bf=$f.COOKIE,Uf={mode:Ff,clientSideMode:Bf,tenantIDPProvisioningStrategy:"none"};class zf{setTenant(t,n){const r=new URL(window.location.href);r.searchParams.set(Zs,t.name),window.location.href=r.toString()}getCurrentTenantName(){const t=new URL(window.location.href);return new URLSearchParams(t.search).get(Zs)}}class Hf{setTenant(t,n){sessionStorage.setItem(Xs,t.name),window.location.reload()}getCurrentTenantName(){return sessionStorage.getItem(Xs)}}/*! js-cookie v3.0.5 | MIT */function mr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var Wf={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Mo(e,t){function n(o,i,s){if(!(typeof document>"u")){s=mr({},t,s),typeof s.expires=="number"&&(s.expires=new Date(Date.now()+s.expires*864e5)),s.expires&&(s.expires=s.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var c in s)s[c]&&(a+="; "+c,s[c]!==!0&&(a+="="+s[c].split(";")[0]));return document.cookie=o+"="+e.write(i,o)+a}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var i=document.cookie?document.cookie.split("; "):[],s={},a=0;a<i.length;a++){var c=i[a].split("="),u=c.slice(1).join("=");try{var d=decodeURIComponent(c[0]);if(s[d]=e.read(u,d),o===d)break}catch{}}return o?s[o]:s}}return Object.create({set:n,get:r,remove:function(o,i){n(o,"",mr({},i,{expires:-1}))},withAttributes:function(o){return Mo(this.converter,mr({},this.attributes,o))},withConverter:function(o){return Mo(mr({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var $o=Mo(Wf,{path:"/"});class Vf{setTenant(t,n){t?$o.set(No,t.name):$o.remove(No),window.location.reload()}getCurrentTenantName(){return $o.get(No)}}class Gf{extractSubdomain(t){if(t==="localhost"||/^\d+\.\d+\.\d+\.\d+$/.test(t))return"";const n=t.split(".");if(n.length<2||n.length===2||n[0]==="www"&&n.length===3)return"";const o=(n[0]==="www"?n.slice(1):n).slice(0,-2);return o.length>0?o.join("."):""}getBaseDomain(t){const n=t.split(".");return t==="localhost"||/^\d+\.\d+\.\d+\.\d+$/.test(t)||n.length<=2?t:n.slice(-2).join(".")}setTenant(t,n){var u;const r=(u=n.urlPatterns)==null?void 0:u.find(d=>d.patternType==="subdomain"&&d.tenantId===t.id&&d.isActive);if(!r)throw new Error(`No active subdomain pattern found for tenant '${t.name}'`);const o=new URL(window.location.href),i=r.patternValue,s=o.hostname,a=this.getBaseDomain(s),c=i?`${i}.${a}`:a;o.hostname=c,window.location.href=o.toString()}getCurrentTenantName(){const t=window.location.hostname;return this.extractSubdomain(t)||null}}const Js={queryParams:new zf,sessionStorage:new Hf,cookie:new Vf,subdomain:new Gf},qf=e=>{const t=Js[e.clientSideMode];if(!t)throw new Error(`Client side tenant mode '${e.clientSideMode}' is not supported ${JSON.stringify({strategies:Js},null,2)}`);return t},Qf=(e,t,n)=>{const r=t.find(i=>i.name===n);if(!r)throw Error("No tenant permission");return qf(e).setTenant(r,e),r},sv=E("useTenants",()=>{const[e,t]=lo(),{tenants:n=[],currentTenant:r,tenantConfig:o=Uf}=e,i=ue(s=>{const a=Qf(o,n,s);t({...e,currentTenant:a})},[o,e]);return{tenants:n,currentTenant:r,tenantConfig:o,selectTenant:i}});function Yf(e){if(!e.ok)throw console.error(e),new Error(e.statusText)}async function gr(e,t,n,r){const o=await e(`/user-states/${encodeURIComponent(t)}/${encodeURIComponent(n)}`,r);return Yf(o),o}class vr{static async get(t,n,r){const i=await gr(t,n,r,{method:"GET",headers:{"Content-Type":"application/json"}});return i.status===204?null:await i.json()}static async create(t,n,r,o){const i={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({value:o})};return await(await gr(t,n,r,i)).json()}static async update(t,n,r,o){const i={method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({value:o})};return await(await gr(t,n,r,i)).json()}static async delete(t,n,r){return await gr(t,n,r,{method:"DELETE",headers:{"Content-Type":"application/json"}}),null}}const av=E("useUserState",e=>{const t=cs("@bluealba/pae-nestjs-gateway-service"),n=Fu();if(!n)throw new Error("You must call the useUserState hook within a PAE application.");const[r,o]=F(null),[i,s]=F(!1),[a,c]=F(!1),[u,d]=F(null),h=(x,S)=>ue(async({newValue:C,shouldThrowError:T}={})=>{try{c(!0),d(null);const R=await x(t,n,e,C);return o(R),R?R.value:null}catch(R){if(d(R==null?void 0:R.message),console.error(`Failed to ${S} ${e}:`,R),T)throw R;return null}finally{c(!1)}},[t,n,e]),p=h(vr.get,"fetch"),g=h(vr.create,"create"),w=h(vr.update,"update"),f=h(vr.delete,"delete"),v=ue(async()=>{try{await p()}finally{s(!0)}},[p]);K(()=>{v()},[v]);const _=ue(async(x,S=!1)=>r==null?await g({newValue:x,shouldThrowError:S}):await w({newValue:x,shouldThrowError:S}),[r,g,w]);return{value:r?r.value:null,hasFetched:i,loading:a,error:u,setValue:_,createValue:g,updateValue:w,deleteValue:f}}),ea="__PAE_EXTENSION_POINT_REACT_CONTENT_EMPTY__",cv=E("ExtendExtensionPoint",({module:e,point:t,children:n})=>(qu(e,t,n??ea),null)),Kf=E("ExtensionPoint",({name:e,children:t,...n})=>{const r=Gu(e);if(r===ea)return null;if(!r)return l.jsx(l.Fragment,{children:t??null});if(Zf(r)){const o=r;return l.jsx(o,{...n})}else return r}),Zf=e=>typeof e=="function",lv=E("extensionPoint",(e,t)=>{const n=r=>(t=t||e.displayName||e.name||"?",l.jsx(Kf,{name:t,...r,children:l.jsx(e,{...r})}));return n.displayName=`extensionPoint(${t})`,n}),ta="single-spa:app-change";function Xf(){const[e,t]=F(na());return K(()=>{const n=()=>{t(na())};return window.addEventListener(ta,n),()=>{window.removeEventListener(ta,n)}},[]),e}function na(){return qn.getAppNames().reduce((t,n)=>(qn.getAppStatus(n)?t[n]=qn.getAppStatus(n):t[n]="NOT_LOADED",t),{})}function Jf(e){const n=Xf()[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 ra=({appName:e})=>l.jsx("div",{children:l.jsxs("p",{children:["Loading ",e,"..."]})});ra.displayName="BaseLoading";const oa=({appName:e})=>l.jsxs("div",{children:[l.jsx("p",{children:"Something went wrong..."}),l.jsxs("p",{children:["Failed to load ",e]})]});oa.displayName="BaseError";const ep={display:"flex",flexDirection:"column",flex:1},ia=z((e,t)=>l.jsx("div",{ref:t,style:ep,...e}));ia.displayName="BaseContainer";const tp="pae-app:",np=E("ModulePlaceHolder",z(({appName:e,LoadingComponent:t=ra,ErrorComponent:n=oa,ContainerComponent:r=ia,...o},i)=>{const s=Jf(e);return l.jsxs(r,{ref:i,...o,id:`${tp}${e}`,children:[s.isLoading&&l.jsx(t,{appName:e}),s.isBroken&&l.jsx(n,{appName:e})]})}));np.displayName="ModulePlaceHolder";const sa=E("Authorized",({operations:e,children:t,forbiddenContent:n})=>{var o;const{hasAccess:r}=fo();if(!r(...e)){if(!n)return null;if(typeof n=="function")if((o=n==null?void 0:n.prototype)!=null&&o.isReactComponent){const i=n;return l.jsx(i,{operations:e})}else return n({operations:e});return Gn.isValidElement(n)?n:null}return t});sa.displayName="Authorized";const uv=E("PlatformEventListener",({eventName:e,listener:t})=>(Qu(e,t),null)),rp=()=>l.jsx("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:l.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",d:"M8.737 8.737a21.49 21.49 0 0 1 3.308-2.724m0 0c3.063-2.026 5.99-2.641 7.331-1.3 1.827 1.828.026 6.591-4.023 10.64-4.049 4.049-8.812 5.85-10.64 4.023-1.33-1.33-.736-4.218 1.249-7.253m6.083-6.11c-3.063-2.026-5.99-2.641-7.331-1.3-1.827 1.828-.026 6.591 4.023 10.64m3.308-9.34a21.497 21.497 0 0 1 3.308 2.724m2.775 3.386c1.985 3.035 2.579 5.923 1.248 7.253-1.336 1.337-4.245.732-7.295-1.275M14 12a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"})}),op=E("ApplicationIcon",({applicationName:e})=>{const t=Ou(e);if(t)if(typeof t=="function"){const n=t;return l.jsx(n,{})}else return t;return l.jsx(rp,{})});op.displayName="ApplicationIcon";const dv=E("authorized",(e,t)=>{const n=r=>l.jsx(sa,{operations:t,children:l.jsx(e,{...r})});return n.displayName="Authorized",n});function aa(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=aa(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function j(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=aa(e))&&(r&&(r+=" "),r+=t);return r}const yr={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"},Fo=E("Button",z(({variant:e="contained",colorScheme:t="primary",loading:n=!1,IconComponent:r,className:o,children:i,...s},a)=>{const c=j(yr.button,yr[`button--${e}-${t}`],o);return l.jsxs("button",{ref:a,className:c,...s,children:[n?l.jsx("div",{className:yr.spinner}):r&&l.jsx(r,{className:yr.icon}),i]})}));Fo.displayName="Button";const br={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"},ca={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 la={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function ip(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(),ca[e])n=ca[e].slice(),o="rgb";else if(e==="transparent")r=0,o="rgb",n=[0,0,0];else if(e[0]==="#"){var i=e.slice(1),s=i.length,a=s<=4;r=1,a?(n=[parseInt(i[0]+i[0],16),parseInt(i[1]+i[1],16),parseInt(i[2]+i[2],16)],s===4&&(r=parseInt(i[3]+i[3],16)/255)):(n=[parseInt(i[0]+i[1],16),parseInt(i[2]+i[3],16),parseInt(i[4]+i[5],16)],s===8&&(r=parseInt(i[6]+i[7],16)/255)),n[0]||(n[0]=0),n[1]||(n[1]=0),n[2]||(n[2]=0),o="rgb"}else if(t=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(e)){var c=t[1];o=c.replace(/a$/,"");var u=o==="cmyk"?4:o==="gray"?1:3;n=t[2].trim().split(/\s*[,\/]\s*|\s+/),o==="color"&&(o=n.shift()),n=n.map(function(p,g){if(p[p.length-1]==="%")return p=parseFloat(p)/100,g===3?p:o==="rgb"?p*255:o[0]==="h"||o[0]==="l"&&!g?p*100:o==="lab"?p*125:o==="lch"?g<2?p*150:p*360:o[0]==="o"&&!g?p:o==="oklab"?p*.4:o==="oklch"?g<2?p*.4:p*360:p;if(o[g]==="h"||g===2&&o[o.length-1]==="h"){if(la[p]!==void 0)return la[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>u?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 sp=(e,t)=>{const{space:n,values:r}=ip(e);return n[0]==="h"?`${n}a(${r[0]}, ${r[1]}%, ${r[2]}%, ${t})`:`${n}a(${r}, ${t})`},ua=E("Badge",z(({children:e,color:t,className:n,customColor:r,size:o="small",style:i,...s},a)=>{const c=r?{color:r,background:sp(r,.1)}:{},u=j(br.Badge,br[`Badge--${o}`],{[br[`Badge--${t}`]]:!!t},n);return l.jsx("span",{ref:a,className:u,style:{...i,...c},...s,children:e})}));ua.displayName="Badge";const da=E("Badges",z(({children:e,className:t,...n},r)=>{const o=j(br.Badges,t);return l.jsx("div",{ref:r,className:o,...n,children:e})}));da.displayName="Badges";const ap=E("ClipboardIcon",({size:e=24,color:t="currentColor",strokeWidth:n=2,className:r,style:o,...i})=>l.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:o,...i,children:[l.jsx("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"}),l.jsx("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"})]})),cp=E("ClipboardCheckIcon",({size:e=24,color:t="currentColor",strokeWidth:n=2,className:r,style:o,...i})=>l.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:o,...i,children:[l.jsx("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"}),l.jsx("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"}),l.jsx("path",{d:"m9 12 2 2 4-4"})]})),lp={CopyToClipboardButton:"CopyToClipboardButton__2Nd2m"},Iv=E("CopyToClipboardButton",({content:e})=>{const[t,n]=up(),{notify:r}=Ps(),o=t?cp:ap,i=ue(async()=>{await n(e)&&r("Copied to the Clipboard !","success")},[e,r]);return l.jsx(o,{className:lp.CopyToClipboardButton,size:18,onClick:i})}),up=()=>{const[e,t]=F(!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"},dp=E("FieldGroup",z(({children:e,className:t,orientation:n="vertical",...r},o)=>{const i=j(fa.FieldGroup,fa[`FieldGroup--${n}`],t);return l.jsx("div",{ref:o,className:i,...r,children:e})}));dp.displayName="FieldGroup";const pa={Input:"Input__uS0sb",Error:"Error__-DQpw"},Bo=E("Input",z(({className:e,error:t,...n},r)=>{const o=j(pa.Input,t&&pa.Error,e);return l.jsx("input",{ref:r,className:o,...n})}));Bo.displayName="Input";const fp={Error:"Error__N4OP5"},pp=E("InputError",z(({children:e,className:t,...n},r)=>{const o=j(fp.Error,t);return l.jsx("span",{ref:r,className:o,...n,children:e})}));pp.displayName="InputError";const ha={Label:"Label__VYUvW",Error:"Error__Eu6DI"},hp=E("Label",z(({children:e,className:t,error:n,...r},o)=>{const i=j(ha.Label,n&&ha.Error,t);return l.jsx("label",{ref:o,className:i,...r,children:e})}));hp.displayName="Label";const Uo={Select:"Select__giqpe",Chevron:"Chevron__YvhBd"},ma=z(({children:e,className:t,...n},r)=>{const o=j(Uo.Option,t);return l.jsx("option",{ref:r,className:o,...n,children:e})});ma.displayName="Option";const ga=E("Select",z(({children:e,className:t,...n},r)=>{const o=j(Uo.Select,t);return l.jsxs("div",{className:o,children:[l.jsx("select",{ref:r,...n,children:e}),l.jsx("div",{className:Uo.Chevron,children:l.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:"M4 6L8 10L12 6",stroke:"#818181",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})})]})}));ga.displayName="Select",ga.Option=ma;const mp={TextArea:"TextArea__pa-A0"},gp=E("TextArea",z(({children:e,className:t,...n},r)=>{const o=j(mp.TextArea,t);return l.jsx("textarea",{ref:r,className:o,...n,children:e})}));gp.displayName="TextArea";const kn={SearchInput:"SearchInput__4OFyE",SearchIcon:"SearchIcon__YgnQy",ClearIcon:"ClearIcon__ukRVr",SearchInput__ClearIcon:"SearchInput__ClearIcon__uzVoc",SearchInput__SearchIcon:"SearchInput__SearchIcon__zoDG4"},va=E("SearchInput",z(({className:e,placeholder:t="Type to search...",showClearButton:n=!1,showSearchIcon:r=!0,onClear:o,...i},s)=>{const a=j(kn.SearchInput,n&&kn.SearchInput__ClearIcon,r&&kn.SearchInput__SearchIcon,e),c=j(kn.SearchIcon),u=j(kn.ClearIcon);return l.jsxs("div",{className:a,children:[l.jsx(Bo,{ref:s,type:"text",placeholder:t,...i}),r&&l.jsx("svg",{className:c,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:"M13 13L10.6667 10.6667M12.3333 6.66667C12.3333 9.79628 9.79628 12.3333 6.66667 12.3333C3.53705 12.3333 1 9.79628 1 6.66667C1 3.53705 3.53705 1 6.66667 1C9.79628 1 12.3333 3.53705 12.3333 6.66667Z",stroke:"#A4A4A4",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})}),n&&l.jsx("svg",{className:u,width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:o,children:l.jsx("path",{d:"M7.33334 0.666748L0.666672 7.33341M0.666672 0.666748L7.33334 7.33341",stroke:"#818181",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})]})}));va.displayName="SearchInput";const Rt={SearchAutocomplete:"SearchAutocomplete__vR9Hk",AutocompleteItem:"AutocompleteItem__YIm7R","AutocompleteItem--canBeSelected":"AutocompleteItem--canBeSelected__jxk4z",AutocompleteHighlighter:"AutocompleteHighlighter__LAFTV",AutocompleteHighlighter__match:"AutocompleteHighlighter__match__Wy1o2",DropdownList:"DropdownList__-fHIk",AutocompleteItemDescription:"AutocompleteItemDescription__4QYN5"},Yt=E("dropdownListStyles",{DropdownList:"DropdownList__QTXXX",dropdownList:"DropdownList__QTXXX","DropdownList--closed":"DropdownList--closed__pdL1Z",dropdownListClosed:"DropdownList--closed__pdL1Z","DropdownList--open":"DropdownList--open__opzc9",dropdownListOpen:"DropdownList--open__opzc9","DropdownList--left":"DropdownList--left__xSwXR",dropdownListLeft:"DropdownList--left__xSwXR"}),zo=E("DropdownList",z(({children:e,className:t,open:n,align:r="right",...o},i)=>{const s=j(Yt.DropdownList,{[Yt["DropdownList--open"]]:n,[Yt["DropdownList--closed"]]:!n,[Yt["DropdownList--left"]]:r==="left"},t);return l.jsx("div",{ref:i,className:s,...o,children:e})}));zo.displayName="DropdownList";const jn=z(({children:e,className:t,canBeSelected:n=!1,...r},o)=>{const i=j(Rt.AutocompleteItem,{[Rt["AutocompleteItem--canBeSelected"]]:n},t);return l.jsx("div",{ref:o,className:i,...r,children:e})});jn.displayName="AutocompleteItem";const vp=300,yp={query:"",suggestions:[],loading:!1,error:null},bp=({suggestionFetcher:e,canAdd:t})=>{const[n,r]=F(yp);return K(()=>{r(a=>({...a,loading:!0}));const i=async()=>{try{const a=await e(n.query);t&&!a.some(c=>c.value.toLowerCase()===n.query.toLowerCase())&&a.push({label:`Add "${n.query}"`,value:n.query,isNew:!0}),r(c=>({...c,suggestions:a,loading:!1}))}catch(a){r(c=>({...c,suggestions:[],error:a,loading:!1}))}},s=setTimeout(()=>{i()},vp);return()=>{clearTimeout(s)}},[n.query]),{...n,setQuery:i=>{r(s=>({...s,query:i}))}}},ya=z(({text:e,query:t,className:n,...r},o)=>{const i=j(Rt.AutocompleteHighlighter,n),s=(a,c)=>{const u=a.toLowerCase().indexOf(c.toLowerCase());if(u===-1||c.length===0)return a;const d=a.slice(0,u),h=a.slice(u,u+c.length),p=a.slice(u+c.length);return l.jsxs(l.Fragment,{children:[d,l.jsx("span",{className:Rt.AutocompleteHighlighter__match,children:h}),s(p,c)]})};return l.jsx("div",{ref:o,className:i,...r,children:s(e,t)})});ya.displayName="AutocompleteHighlighter";const wp=5,_p=E("SearchAutocomplete",z(({children:e,className:t,canAdd:n,maxSuggestionsShown:r=wp,searchInputProps:o,keepSelectedOption:i,suggestionFetcher:s,onAccept:a,...c},u)=>{const{query:d,setQuery:h,suggestions:p,loading:g}=bp({suggestionFetcher:s,canAdd:n}),[w,f]=F(null),v=d.length>0,_=P=>{h(P.target.value)},x=P=>{a==null||a(P),i?(f(P),h(P.value)):h("")},S=()=>{a==null||a(null),f(null),h("")},C=j(Rt.SearchAutocomplete,t),T=p.slice(0,r),R=p.slice(r);return l.jsxs("div",{ref:u,className:C,...c,children:[l.jsx(va,{...o,value:d,onChange:_,showClearButton:!!w,onClear:S}),e,l.jsxs(zo,{className:Rt.DropdownList,open:v&&!w,role:"listbox","aria-label":"Suggestions",children:[g?l.jsx(jn,{children:"Loading..."}):T.map(P=>l.jsxs(jn,{canBeSelected:!0,onClick:x.bind(null,P),children:[l.jsx(ya,{text:P.label,query:d}),P.description&&l.jsx("span",{className:Rt.AutocompleteItemDescription,children:P.description})]},P.value)),!g&&R.length>0&&l.jsxs(jn,{children:[R.length," more results"]}),v&&p.length===0&&!g&&l.jsx(jn,{children:"No results found"})]})]})}));_p.displayName="SearchAutocomplete";const Ot=E("Show",e=>{let t=null,n=null;return Vi.forEach(e.children,r=>{const o=r.props.condition;o===void 0?n=r:!t&&o===!0&&(t=r)}),l.jsx(l.Fragment,{children:t||n})});Ot.displayName="Show",Ot.When=({condition:e,children:t})=>l.jsx(l.Fragment,{children:e&&t}),Ot.Else=({render:e,children:t})=>l.jsx(l.Fragment,{children:e||t});function ba(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function wa(...e){return t=>{let n=!1;const r=e.map(o=>{const i=ba(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():ba(e[o],null)}}}}function Oe(...e){return m.useCallback(wa(...e),e)}function Ho(e){const t=Cp(e),n=m.forwardRef((r,o)=>{const{children:i,...s}=r,a=m.Children.toArray(i),c=a.find(Sp);if(c){const u=c.props.children,d=a.map(h=>h===c?m.Children.count(u)>1?m.Children.only(null):m.isValidElement(u)?u.props.children:null:h);return l.jsx(t,{...s,ref:o,children:m.isValidElement(u)?m.cloneElement(u,void 0,d):null})}return l.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var xp=Ho("Slot");function Cp(e){const t=m.forwardRef((n,r)=>{const{children:o,...i}=n;if(m.isValidElement(o)){const s=Ap(o),a=Tp(i,o.props);return o.type!==m.Fragment&&(a.ref=r?wa(r,s):s),m.cloneElement(o,a)}return m.Children.count(o)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var _a=Symbol("radix.slottable");function Ep(e){const t=({children:n})=>l.jsx(l.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=_a,t}function Sp(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===_a}function Tp(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const c=i(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Ap(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"},Wo=E("Skeleton",z((e,t)=>{const{children:n,className:r,loading:o,height:i=48,width:s,borderRadius:a,style:c,...u}=e;if(!o&&n)return n;const d=oo(n)?xp:"span";return l.jsx(d,{ref:t,"aria-hidden":!0,className:j(xa.Skeleton,r),style:{...c,width:s,minWidth:s,height:i,borderRadius:a},"data-inline-skeleton":oo(n)?void 0:!0,tabIndex:-1,...u,children:n})}));Wo.displayName="Skeleton";const Pp=E("SkeletonList",e=>{const{numberOfItems:t,itemsGap:n=2,itemProps:r}=e,o=Array.from({length:t},(i,s)=>s+1);return l.jsx("div",{className:j(xa.SkeletonListContainer),style:{gap:n},children:o.map(i=>l.jsx(Wo,{loading:!0,...r},i))})});Pp.displayName="SkeletonList";function ve(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Rp(e,t){const n=m.createContext(t),r=i=>{const{children:s,...a}=i,c=m.useMemo(()=>a,Object.values(a));return l.jsx(n.Provider,{value:c,children:s})};r.displayName=e+"Provider";function o(i){const s=m.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function Vo(e,t=[]){let n=[];function r(i,s){const a=m.createContext(s),c=n.length;n=[...n,s];const u=h=>{var _;const{scope:p,children:g,...w}=h,f=((_=p==null?void 0:p[e])==null?void 0:_[c])||a,v=m.useMemo(()=>w,Object.values(w));return l.jsx(f.Provider,{value:v,children:g})};u.displayName=i+"Provider";function d(h,p){var f;const g=((f=p==null?void 0:p[e])==null?void 0:f[c])||a,w=m.useContext(g);if(w)return w;if(s!==void 0)return s;throw new Error(`\`${h}\` must be used within \`${i}\``)}return[u,d]}const o=()=>{const i=n.map(s=>m.createContext(s));return function(a){const c=(a==null?void 0:a[e])||i;return m.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return o.scopeName=e,[r,Op(o,...t)]}function Op(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:c,scopeName:u})=>{const h=c(i)[`__scope${u}`];return{...a,...h}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var kp=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ye=kp.reduce((e,t)=>{const n=Ho(`Primitive.${t}`),r=m.forwardRef((o,i)=>{const{asChild:s,...a}=o,c=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(c,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function jp(e,t){e&&so.flushSync(()=>e.dispatchEvent(t))}function Kt(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Dp(e,t=globalThis==null?void 0:globalThis.document){const n=Kt(e);m.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 Lp="DismissableLayer",Go="dismissableLayer.update",Ip="dismissableLayer.pointerDownOutside",Np="dismissableLayer.focusOutside",Ca,Ea=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),qo=m.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...c}=e,u=m.useContext(Ea),[d,h]=m.useState(null),p=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=m.useState({}),w=Oe(t,P=>h(P)),f=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),_=f.indexOf(v),x=d?f.indexOf(d):-1,S=u.layersWithOutsidePointerEventsDisabled.size>0,C=x>=_,T=Fp(P=>{const I=P.target,N=[...u.branches].some(M=>M.contains(I));!C||N||(o==null||o(P),s==null||s(P),P.defaultPrevented||a==null||a())},p),R=Bp(P=>{const I=P.target;[...u.branches].some(M=>M.contains(I))||(i==null||i(P),s==null||s(P),P.defaultPrevented||a==null||a())},p);return Dp(P=>{x===u.layers.size-1&&(r==null||r(P),!P.defaultPrevented&&a&&(P.preventDefault(),a()))},p),m.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Ca=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Sa(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Ca)}},[d,p,n,u]),m.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Sa())},[d,u]),m.useEffect(()=>{const P=()=>g({});return document.addEventListener(Go,P),()=>document.removeEventListener(Go,P)},[]),l.jsx(ye.div,{...c,ref:w,style:{pointerEvents:S?C?"auto":"none":void 0,...e.style},onFocusCapture:ve(e.onFocusCapture,R.onFocusCapture),onBlurCapture:ve(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:ve(e.onPointerDownCapture,T.onPointerDownCapture)})});qo.displayName=Lp;var Mp="DismissableLayerBranch",$p=m.forwardRef((e,t)=>{const n=m.useContext(Ea),r=m.useRef(null),o=Oe(t,r);return m.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),l.jsx(ye.div,{...e,ref:o})});$p.displayName=Mp;function Fp(e,t=globalThis==null?void 0:globalThis.document){const n=Kt(e),r=m.useRef(!1),o=m.useRef(()=>{});return m.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let c=function(){Ta(Ip,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Bp(e,t=globalThis==null?void 0:globalThis.document){const n=Kt(e),r=m.useRef(!1);return m.useEffect(()=>{const o=i=>{i.target&&!r.current&&Ta(Np,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Sa(){const e=new CustomEvent(Go);document.dispatchEvent(e)}function Ta(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?jp(o,i):o.dispatchEvent(i)}var ut=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},Up=m[" useId ".trim().toString()]||(()=>{}),zp=0;function wr(e){const[t,n]=m.useState(Up());return ut(()=>{n(r=>r??String(zp++))},[e]),t?`radix-${t}`:""}const Hp=["top","right","bottom","left"],dt=Math.min,Ee=Math.max,_r=Math.round,xr=Math.floor,$e=e=>({x:e,y:e}),Wp={left:"right",right:"left",bottom:"top",top:"bottom"},Vp={start:"end",end:"start"};function Qo(e,t,n){return Ee(e,dt(t,n))}function Ke(e,t){return typeof e=="function"?e(t):e}function Ze(e){return e.split("-")[0]}function Zt(e){return e.split("-")[1]}function Yo(e){return e==="x"?"y":"x"}function Ko(e){return e==="y"?"height":"width"}const Gp=new Set(["top","bottom"]);function Fe(e){return Gp.has(Ze(e))?"y":"x"}function Zo(e){return Yo(Fe(e))}function qp(e,t,n){n===void 0&&(n=!1);const r=Zt(e),o=Zo(e),i=Ko(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Cr(s)),[s,Cr(s)]}function Qp(e){const t=Cr(e);return[Xo(e),t,Xo(t)]}function Xo(e){return e.replace(/start|end/g,t=>Vp[t])}const Aa=["left","right"],Pa=["right","left"],Yp=["top","bottom"],Kp=["bottom","top"];function Zp(e,t,n){switch(e){case"top":case"bottom":return n?t?Pa:Aa:t?Aa:Pa;case"left":case"right":return t?Yp:Kp;default:return[]}}function Xp(e,t,n,r){const o=Zt(e);let i=Zp(Ze(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Xo)))),i}function Cr(e){return e.replace(/left|right|bottom|top/g,t=>Wp[t])}function Jp(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ra(e){return typeof e!="number"?Jp(e):{top:e,right:e,bottom:e,left:e}}function Er(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 Oa(e,t,n){let{reference:r,floating:o}=e;const i=Fe(t),s=Zo(t),a=Ko(s),c=Ze(t),u=i==="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 g;switch(c){case"top":g={x:d,y:r.y-o.height};break;case"bottom":g={x:d,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:h};break;case"left":g={x:r.x-o.width,y:h};break;default:g={x:r.x,y:r.y}}switch(Zt(t)){case"start":g[s]-=p*(n&&u?-1:1);break;case"end":g[s]+=p*(n&&u?-1:1);break}return g}const eh=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:h}=Oa(u,r,c),p=r,g={},w=0;for(let f=0;f<a.length;f++){const{name:v,fn:_}=a[f],{x,y:S,data:C,reset:T}=await _({x:d,y:h,initialPlacement:r,placement:p,strategy:o,middlewareData:g,rects:u,platform:s,elements:{reference:e,floating:t}});d=x??d,h=S??h,g={...g,[v]:{...g[v],...C}},T&&w<=50&&(w++,typeof T=="object"&&(T.placement&&(p=T.placement),T.rects&&(u=T.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):T.rects),{x:d,y:h}=Oa(u,p,c)),f=-1)}return{x:d,y:h,placement:p,strategy:o,middlewareData:g}};async function Dn(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:p=!1,padding:g=0}=Ke(t,e),w=Ra(g),v=a[p?h==="floating"?"reference":"floating":h],_=Er(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(v)))==null||n?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:c})),x=h==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),C=await(i.isElement==null?void 0:i.isElement(S))?await(i.getScale==null?void 0:i.getScale(S))||{x:1,y:1}:{x:1,y:1},T=Er(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:S,strategy:c}):x);return{top:(_.top-T.top+w.top)/C.y,bottom:(T.bottom-_.bottom+w.bottom)/C.y,left:(_.left-T.left+w.left)/C.x,right:(T.right-_.right+w.right)/C.x}}const th=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:c}=t,{element:u,padding:d=0}=Ke(e,t)||{};if(u==null)return{};const h=Ra(d),p={x:n,y:r},g=Zo(o),w=Ko(g),f=await s.getDimensions(u),v=g==="y",_=v?"top":"left",x=v?"bottom":"right",S=v?"clientHeight":"clientWidth",C=i.reference[w]+i.reference[g]-p[g]-i.floating[w],T=p[g]-i.reference[g],R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let P=R?R[S]:0;(!P||!await(s.isElement==null?void 0:s.isElement(R)))&&(P=a.floating[S]||i.floating[w]);const I=C/2-T/2,N=P/2-f[w]/2-1,M=dt(h[_],N),Z=dt(h[x],N),X=M,V=P-f[w]-Z,Q=P/2-f[w]/2+I,ae=Qo(X,Q,V),ne=!c.arrow&&Zt(o)!=null&&Q!==ae&&i.reference[w]/2-(Q<X?M:Z)-f[w]/2<0,re=ne?Q<X?Q-X:Q-V:0;return{[g]:p[g]+re,data:{[g]:ae,centerOffset:Q-ae-re,...ne&&{alignmentOffset:re}},reset:ne}}}),nh=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:c,elements:u}=t,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:f=!0,...v}=Ke(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const _=Ze(o),x=Fe(a),S=Ze(a)===a,C=await(c.isRTL==null?void 0:c.isRTL(u.floating)),T=p||(S||!f?[Cr(a)]:Qp(a)),R=w!=="none";!p&&R&&T.push(...Xp(a,f,w,C));const P=[a,...T],I=await Dn(t,v),N=[];let M=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&N.push(I[_]),h){const Q=qp(o,s,C);N.push(I[Q[0]],I[Q[1]])}if(M=[...M,{placement:o,overflows:N}],!N.every(Q=>Q<=0)){var Z,X;const Q=(((Z=i.flip)==null?void 0:Z.index)||0)+1,ae=P[Q];if(ae&&(!(h==="alignment"?x!==Fe(ae):!1)||M.every(B=>Fe(B.placement)===x?B.overflows[0]>0:!0)))return{data:{index:Q,overflows:M},reset:{placement:ae}};let ne=(X=M.filter(re=>re.overflows[0]<=0).sort((re,B)=>re.overflows[1]-B.overflows[1])[0])==null?void 0:X.placement;if(!ne)switch(g){case"bestFit":{var V;const re=(V=M.filter(B=>{if(R){const ce=Fe(B.placement);return ce===x||ce==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(ce=>ce>0).reduce((ce,Te)=>ce+Te,0)]).sort((B,ce)=>B[1]-ce[1])[0])==null?void 0:V[0];re&&(ne=re);break}case"initialPlacement":ne=a;break}if(o!==ne)return{reset:{placement:ne}}}return{}}}};function ka(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ja(e){return Hp.some(t=>e[t]>=0)}const rh=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Ke(e,t);switch(r){case"referenceHidden":{const i=await Dn(t,{...o,elementContext:"reference"}),s=ka(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:ja(s)}}}case"escaped":{const i=await Dn(t,{...o,altBoundary:!0}),s=ka(i,n.floating);return{data:{escapedOffsets:s,escaped:ja(s)}}}default:return{}}}}},Da=new Set(["left","top"]);async function oh(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Ze(n),a=Zt(n),c=Fe(n)==="y",u=Da.has(s)?-1:1,d=i&&c?-1:1,h=Ke(t,e);let{mainAxis:p,crossAxis:g,alignmentAxis:w}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof w=="number"&&(g=a==="end"?w*-1:w),c?{x:g*d,y:p*u}:{x:p*u,y:g*d}}const ih=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,c=await oh(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:s}}}}},sh=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:v=>{let{x:_,y:x}=v;return{x:_,y:x}}},...c}=Ke(e,t),u={x:n,y:r},d=await Dn(t,c),h=Fe(Ze(o)),p=Yo(h);let g=u[p],w=u[h];if(i){const v=p==="y"?"top":"left",_=p==="y"?"bottom":"right",x=g+d[v],S=g-d[_];g=Qo(x,g,S)}if(s){const v=h==="y"?"top":"left",_=h==="y"?"bottom":"right",x=w+d[v],S=w-d[_];w=Qo(x,w,S)}const f=a.fn({...t,[p]:g,[h]:w});return{...f,data:{x:f.x-n,y:f.y-r,enabled:{[p]:i,[h]:s}}}}}},ah=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:c=!0,crossAxis:u=!0}=Ke(e,t),d={x:n,y:r},h=Fe(o),p=Yo(h);let g=d[p],w=d[h];const f=Ke(a,t),v=typeof f=="number"?{mainAxis:f,crossAxis:0}:{mainAxis:0,crossAxis:0,...f};if(c){const S=p==="y"?"height":"width",C=i.reference[p]-i.floating[S]+v.mainAxis,T=i.reference[p]+i.reference[S]-v.mainAxis;g<C?g=C:g>T&&(g=T)}if(u){var _,x;const S=p==="y"?"width":"height",C=Da.has(Ze(o)),T=i.reference[h]-i.floating[S]+(C&&((_=s.offset)==null?void 0:_[h])||0)+(C?0:v.crossAxis),R=i.reference[h]+i.reference[S]+(C?0:((x=s.offset)==null?void 0:x[h])||0)-(C?v.crossAxis:0);w<T?w=T:w>R&&(w=R)}return{[p]:g,[h]:w}}}},ch=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:c=()=>{},...u}=Ke(e,t),d=await Dn(t,u),h=Ze(o),p=Zt(o),g=Fe(o)==="y",{width:w,height:f}=i.floating;let v,_;h==="top"||h==="bottom"?(v=h,_=p===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(_=h,v=p==="end"?"top":"bottom");const x=f-d.top-d.bottom,S=w-d.left-d.right,C=dt(f-d[v],x),T=dt(w-d[_],S),R=!t.middlewareData.shift;let P=C,I=T;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(I=S),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(P=x),R&&!p){const M=Ee(d.left,0),Z=Ee(d.right,0),X=Ee(d.top,0),V=Ee(d.bottom,0);g?I=w-2*(M!==0||Z!==0?M+Z:Ee(d.left,d.right)):P=f-2*(X!==0||V!==0?X+V:Ee(d.top,d.bottom))}await c({...t,availableWidth:I,availableHeight:P});const N=await s.getDimensions(a.floating);return w!==N.width||f!==N.height?{reset:{rects:!0}}:{}}}};function Sr(){return typeof window<"u"}function Xt(e){return La(e)?(e.nodeName||"").toLowerCase():"#document"}function Se(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Be(e){var t;return(t=(La(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function La(e){return Sr()?e instanceof Node||e instanceof Se(e).Node:!1}function ke(e){return Sr()?e instanceof Element||e instanceof Se(e).Element:!1}function Ue(e){return Sr()?e instanceof HTMLElement||e instanceof Se(e).HTMLElement:!1}function Ia(e){return!Sr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Se(e).ShadowRoot}const lh=new Set(["inline","contents"]);function Ln(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=je(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!lh.has(o)}const uh=new Set(["table","td","th"]);function dh(e){return uh.has(Xt(e))}const fh=[":popover-open",":modal"];function Tr(e){return fh.some(t=>{try{return e.matches(t)}catch{return!1}})}const ph=["transform","translate","scale","rotate","perspective"],hh=["transform","translate","scale","rotate","perspective","filter"],mh=["paint","layout","strict","content"];function Jo(e){const t=ei(),n=ke(e)?je(e):e;return ph.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)||hh.some(r=>(n.willChange||"").includes(r))||mh.some(r=>(n.contain||"").includes(r))}function gh(e){let t=ft(e);for(;Ue(t)&&!Jt(t);){if(Jo(t))return t;if(Tr(t))return null;t=ft(t)}return null}function ei(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const vh=new Set(["html","body","#document"]);function Jt(e){return vh.has(Xt(e))}function je(e){return Se(e).getComputedStyle(e)}function Ar(e){return ke(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ft(e){if(Xt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ia(e)&&e.host||Be(e);return Ia(t)?t.host:t}function Na(e){const t=ft(e);return Jt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ue(t)&&Ln(t)?t:Na(t)}function In(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Na(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Se(o);if(i){const a=ti(s);return t.concat(s,s.visualViewport||[],Ln(o)?o:[],a&&n?In(a):[])}return t.concat(o,In(o,[],n))}function ti(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ma(e){const t=je(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ue(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=_r(n)!==i||_r(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function ni(e){return ke(e)?e:e.contextElement}function en(e){const t=ni(e);if(!Ue(t))return $e(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Ma(t);let s=(i?_r(n.width):n.width)/r,a=(i?_r(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const yh=$e(0);function $a(e){const t=Se(e);return!ei()||!t.visualViewport?yh:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function bh(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Se(e)?!1:t}function kt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=ni(e);let s=$e(1);t&&(r?ke(r)&&(s=en(r)):s=en(e));const a=bh(i,n,r)?$a(i):$e(0);let c=(o.left+a.x)/s.x,u=(o.top+a.y)/s.y,d=o.width/s.x,h=o.height/s.y;if(i){const p=Se(i),g=r&&ke(r)?Se(r):r;let w=p,f=ti(w);for(;f&&r&&g!==w;){const v=en(f),_=f.getBoundingClientRect(),x=je(f),S=_.left+(f.clientLeft+parseFloat(x.paddingLeft))*v.x,C=_.top+(f.clientTop+parseFloat(x.paddingTop))*v.y;c*=v.x,u*=v.y,d*=v.x,h*=v.y,c+=S,u+=C,w=Se(f),f=ti(w)}}return Er({width:d,height:h,x:c,y:u})}function ri(e,t){const n=Ar(e).scrollLeft;return t?t.left+n:kt(Be(e)).left+n}function Fa(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:ri(e,r)),i=r.top+t.scrollTop;return{x:o,y:i}}function wh(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=Be(r),a=t?Tr(t.floating):!1;if(r===s||a&&i)return n;let c={scrollLeft:0,scrollTop:0},u=$e(1);const d=$e(0),h=Ue(r);if((h||!h&&!i)&&((Xt(r)!=="body"||Ln(s))&&(c=Ar(r)),Ue(r))){const g=kt(r);u=en(r),d.x=g.x+r.clientLeft,d.y=g.y+r.clientTop}const p=s&&!h&&!i?Fa(s,c,!0):$e(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+p.x,y:n.y*u.y-c.scrollTop*u.y+d.y+p.y}}function _h(e){return Array.from(e.getClientRects())}function xh(e){const t=Be(e),n=Ar(e),r=e.ownerDocument.body,o=Ee(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ee(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+ri(e);const a=-n.scrollTop;return je(r).direction==="rtl"&&(s+=Ee(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}function Ch(e,t){const n=Se(e),r=Be(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;const u=ei();(!u||u&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:a,y:c}}const Eh=new Set(["absolute","fixed"]);function Sh(e,t){const n=kt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Ue(e)?en(e):$e(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,c=o*i.x,u=r*i.y;return{width:s,height:a,x:c,y:u}}function Ba(e,t,n){let r;if(t==="viewport")r=Ch(e,n);else if(t==="document")r=xh(Be(e));else if(ke(t))r=Sh(t,n);else{const o=$a(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Er(r)}function Ua(e,t){const n=ft(e);return n===t||!ke(n)||Jt(n)?!1:je(n).position==="fixed"||Ua(n,t)}function Th(e,t){const n=t.get(e);if(n)return n;let r=In(e,[],!1).filter(a=>ke(a)&&Xt(a)!=="body"),o=null;const i=je(e).position==="fixed";let s=i?ft(e):e;for(;ke(s)&&!Jt(s);){const a=je(s),c=Jo(s);!c&&a.position==="fixed"&&(o=null),(i?!c&&!o:!c&&a.position==="static"&&!!o&&Eh.has(o.position)||Ln(s)&&!c&&Ua(e,s))?r=r.filter(d=>d!==s):o=a,s=ft(s)}return t.set(e,r),r}function Ah(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Tr(t)?[]:Th(t,this._c):[].concat(n),r],a=s[0],c=s.reduce((u,d)=>{const h=Ba(t,d,o);return u.top=Ee(h.top,u.top),u.right=dt(h.right,u.right),u.bottom=dt(h.bottom,u.bottom),u.left=Ee(h.left,u.left),u},Ba(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Ph(e){const{width:t,height:n}=Ma(e);return{width:t,height:n}}function Rh(e,t,n){const r=Ue(t),o=Be(t),i=n==="fixed",s=kt(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=$e(0);function u(){c.x=ri(o)}if(r||!r&&!i)if((Xt(t)!=="body"||Ln(o))&&(a=Ar(t)),r){const g=kt(t,!0,i,t);c.x=g.x+t.clientLeft,c.y=g.y+t.clientTop}else o&&u();i&&!r&&o&&u();const d=o&&!r&&!i?Fa(o,a):$e(0),h=s.left+a.scrollLeft-c.x-d.x,p=s.top+a.scrollTop-c.y-d.y;return{x:h,y:p,width:s.width,height:s.height}}function oi(e){return je(e).position==="static"}function za(e,t){if(!Ue(e)||je(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Be(e)===n&&(n=n.ownerDocument.body),n}function Ha(e,t){const n=Se(e);if(Tr(e))return n;if(!Ue(e)){let o=ft(e);for(;o&&!Jt(o);){if(ke(o)&&!oi(o))return o;o=ft(o)}return n}let r=za(e,t);for(;r&&dh(r)&&oi(r);)r=za(r,t);return r&&Jt(r)&&oi(r)&&!Jo(r)?n:r||gh(e)||n}const Oh=async function(e){const t=this.getOffsetParent||Ha,n=this.getDimensions,r=await n(e.floating);return{reference:Rh(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function kh(e){return je(e).direction==="rtl"}const jh={convertOffsetParentRelativeRectToViewportRelativeRect:wh,getDocumentElement:Be,getClippingRect:Ah,getOffsetParent:Ha,getElementRects:Oh,getClientRects:_h,getDimensions:Ph,getScale:en,isElement:ke,isRTL:kh};function Wa(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Dh(e,t){let n=null,r;const o=Be(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const u=e.getBoundingClientRect(),{left:d,top:h,width:p,height:g}=u;if(a||t(),!p||!g)return;const w=xr(h),f=xr(o.clientWidth-(d+p)),v=xr(o.clientHeight-(h+g)),_=xr(d),S={rootMargin:-w+"px "+-f+"px "+-v+"px "+-_+"px",threshold:Ee(0,dt(1,c))||1};let C=!0;function T(R){const P=R[0].intersectionRatio;if(P!==c){if(!C)return s();P?s(!1,P):r=setTimeout(()=>{s(!1,1e-7)},1e3)}P===1&&!Wa(u,e.getBoundingClientRect())&&s(),C=!1}try{n=new IntersectionObserver(T,{...S,root:o.ownerDocument})}catch{n=new IntersectionObserver(T,S)}n.observe(e)}return s(!0),i}function Lh(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=ni(e),d=o||i?[...u?In(u):[],...In(t)]:[];d.forEach(_=>{o&&_.addEventListener("scroll",n,{passive:!0}),i&&_.addEventListener("resize",n)});const h=u&&a?Dh(u,n):null;let p=-1,g=null;s&&(g=new ResizeObserver(_=>{let[x]=_;x&&x.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var S;(S=g)==null||S.observe(t)})),n()}),u&&!c&&g.observe(u),g.observe(t));let w,f=c?kt(e):null;c&&v();function v(){const _=kt(e);f&&!Wa(f,_)&&n(),f=_,w=requestAnimationFrame(v)}return n(),()=>{var _;d.forEach(x=>{o&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),h==null||h(),(_=g)==null||_.disconnect(),g=null,c&&cancelAnimationFrame(w)}}const Ih=ih,Nh=sh,Mh=nh,$h=ch,Fh=rh,Va=th,Bh=ah,Uh=(e,t,n)=>{const r=new Map,o={platform:jh,...n},i={...o.platform,_c:r};return eh(e,t,{...o,platform:i})};var zh=typeof document<"u",Hh=function(){},Pr=zh?Gi:Hh;function Rr(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(!Rr(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Rr(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Ga(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function qa(e,t){const n=Ga(e);return Math.round(t*n)/n}function ii(e){const t=m.useRef(e);return Pr(()=>{t.current=e}),t}function Wh(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:c,open:u}=e,[d,h]=m.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,g]=m.useState(r);Rr(p,r)||g(r);const[w,f]=m.useState(null),[v,_]=m.useState(null),x=m.useCallback(B=>{B!==R.current&&(R.current=B,f(B))},[]),S=m.useCallback(B=>{B!==P.current&&(P.current=B,_(B))},[]),C=i||w,T=s||v,R=m.useRef(null),P=m.useRef(null),I=m.useRef(d),N=c!=null,M=ii(c),Z=ii(o),X=ii(u),V=m.useCallback(()=>{if(!R.current||!P.current)return;const B={placement:t,strategy:n,middleware:p};Z.current&&(B.platform=Z.current),Uh(R.current,P.current,B).then(ce=>{const Te={...ce,isPositioned:X.current!==!1};Q.current&&!Rr(I.current,Te)&&(I.current=Te,so.flushSync(()=>{h(Te)}))})},[p,t,n,Z,X]);Pr(()=>{u===!1&&I.current.isPositioned&&(I.current.isPositioned=!1,h(B=>({...B,isPositioned:!1})))},[u]);const Q=m.useRef(!1);Pr(()=>(Q.current=!0,()=>{Q.current=!1}),[]),Pr(()=>{if(C&&(R.current=C),T&&(P.current=T),C&&T){if(M.current)return M.current(C,T,V);V()}},[C,T,V,M,N]);const ae=m.useMemo(()=>({reference:R,floating:P,setReference:x,setFloating:S}),[x,S]),ne=m.useMemo(()=>({reference:C,floating:T}),[C,T]),re=m.useMemo(()=>{const B={position:n,left:0,top:0};if(!ne.floating)return B;const ce=qa(ne.floating,d.x),Te=qa(ne.floating,d.y);return a?{...B,transform:"translate("+ce+"px, "+Te+"px)",...Ga(ne.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ce,top:Te}},[n,a,ne.floating,d.x,d.y]);return m.useMemo(()=>({...d,update:V,refs:ae,elements:ne,floatingStyles:re}),[d,V,ae,ne,re])}const Vh=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?Va({element:r.current,padding:o}).fn(n):{}:r?Va({element:r,padding:o}).fn(n):{}}}},Gh=(e,t)=>({...Ih(e),options:[e,t]}),qh=(e,t)=>({...Nh(e),options:[e,t]}),Qh=(e,t)=>({...Bh(e),options:[e,t]}),Yh=(e,t)=>({...Mh(e),options:[e,t]}),Kh=(e,t)=>({...$h(e),options:[e,t]}),Zh=(e,t)=>({...Fh(e),options:[e,t]}),Xh=(e,t)=>({...Vh(e),options:[e,t]});var Jh="Arrow",Qa=m.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return l.jsx(ye.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:l.jsx("polygon",{points:"0,0 30,0 15,10"})})});Qa.displayName=Jh;var e1=Qa;function t1(e){const[t,n]=m.useState(void 0);return ut(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const c=i.borderBoxSize,u=Array.isArray(c)?c[0]:c;s=u.inlineSize,a=u.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var si="Popper",[Ya,Ka]=Vo(si),[n1,Za]=Ya(si),Xa=e=>{const{__scopePopper:t,children:n}=e,[r,o]=m.useState(null);return l.jsx(n1,{scope:t,anchor:r,onAnchorChange:o,children:n})};Xa.displayName=si;var Ja="PopperAnchor",ec=m.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Za(Ja,n),s=m.useRef(null),a=Oe(t,s);return m.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:l.jsx(ye.div,{...o,ref:a})});ec.displayName=Ja;var ai="PopperContent",[r1,o1]=Ya(ai),tc=m.forwardRef((e,t)=>{var _n,Ht,xn,Wt,Kr,Wn;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:h="partial",hideWhenDetached:p=!1,updatePositionStrategy:g="optimized",onPlaced:w,...f}=e,v=Za(ai,n),[_,x]=m.useState(null),S=Oe(t,Vt=>x(Vt)),[C,T]=m.useState(null),R=t1(C),P=(R==null?void 0:R.width)??0,I=(R==null?void 0:R.height)??0,N=r+(i!=="center"?"-"+i:""),M=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},Z=Array.isArray(u)?u:[u],X=Z.length>0,V={padding:M,boundary:Z.filter(s1),altBoundary:X},{refs:Q,floatingStyles:ae,placement:ne,isPositioned:re,middlewareData:B}=Wh({strategy:"fixed",placement:N,whileElementsMounted:(...Vt)=>Lh(...Vt,{animationFrame:g==="always"}),elements:{reference:v.anchor},middleware:[Gh({mainAxis:o+I,alignmentAxis:s}),c&&qh({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?Qh():void 0,...V}),c&&Yh({...V}),Kh({...V,apply:({elements:Vt,rects:Zr,availableWidth:Cn,availableHeight:Gt})=>{const{width:Xr,height:Jr}=Zr.reference,rt=Vt.floating.style;rt.setProperty("--radix-popper-available-width",`${Cn}px`),rt.setProperty("--radix-popper-available-height",`${Gt}px`),rt.setProperty("--radix-popper-anchor-width",`${Xr}px`),rt.setProperty("--radix-popper-anchor-height",`${Jr}px`)}}),C&&Xh({element:C,padding:a}),a1({arrowWidth:P,arrowHeight:I}),p&&Zh({strategy:"referenceHidden",...V})]}),[ce,Te]=oc(ne),zt=Kt(w);ut(()=>{re&&(zt==null||zt())},[re,zt]);const Qr=(_n=B.arrow)==null?void 0:_n.x,Yr=(Ht=B.arrow)==null?void 0:Ht.y,Ri=((xn=B.arrow)==null?void 0:xn.centerOffset)!==0,[Oi,Hn]=m.useState();return ut(()=>{_&&Hn(window.getComputedStyle(_).zIndex)},[_]),l.jsx("div",{ref:Q.setFloating,"data-radix-popper-content-wrapper":"",style:{...ae,transform:re?ae.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Oi,"--radix-popper-transform-origin":[(Wt=B.transformOrigin)==null?void 0:Wt.x,(Kr=B.transformOrigin)==null?void 0:Kr.y].join(" "),...((Wn=B.hide)==null?void 0:Wn.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsx(r1,{scope:n,placedSide:ce,onArrowChange:T,arrowX:Qr,arrowY:Yr,shouldHideArrow:Ri,children:l.jsx(ye.div,{"data-side":ce,"data-align":Te,...f,ref:S,style:{...f.style,animation:re?void 0:"none"}})})})});tc.displayName=ai;var nc="PopperArrow",i1={top:"bottom",right:"left",bottom:"top",left:"right"},rc=m.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=o1(nc,r),s=i1[i.placedSide];return l.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:l.jsx(e1,{...o,ref:n,style:{...o.style,display:"block"}})})});rc.displayName=nc;function s1(e){return e!==null}var a1=e=>({name:"transformOrigin",options:e,fn(t){var v,_,x;const{placement:n,rects:r,middlewareData:o}=t,s=((v=o.arrow)==null?void 0:v.centerOffset)!==0,a=s?0:e.arrowWidth,c=s?0:e.arrowHeight,[u,d]=oc(n),h={start:"0%",center:"50%",end:"100%"}[d],p=(((_=o.arrow)==null?void 0:_.x)??0)+a/2,g=(((x=o.arrow)==null?void 0:x.y)??0)+c/2;let w="",f="";return u==="bottom"?(w=s?h:`${p}px`,f=`${-c}px`):u==="top"?(w=s?h:`${p}px`,f=`${r.floating.height+c}px`):u==="right"?(w=`${-c}px`,f=s?h:`${g}px`):u==="left"&&(w=`${r.floating.width+c}px`,f=s?h:`${g}px`),{data:{x:w,y:f}}}});function oc(e){const[t,n="center"]=e.split("-");return[t,n]}var c1=Xa,l1=ec,u1=tc,d1=rc,f1="Portal",ci=m.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,i]=m.useState(!1);ut(()=>i(!0),[]);const s=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?Qi.createPortal(l.jsx(ye.div,{...r,ref:t}),s):null});ci.displayName=f1;function p1(e,t){return m.useReducer((n,r)=>t[n][r]??n,e)}var tn=e=>{const{present:t,children:n}=e,r=h1(t),o=typeof n=="function"?n({present:r.isPresent}):m.Children.only(n),i=Oe(r.ref,m1(o));return typeof n=="function"||r.isPresent?m.cloneElement(o,{ref:i}):null};tn.displayName="Presence";function h1(e){const[t,n]=m.useState(),r=m.useRef(null),o=m.useRef(e),i=m.useRef("none"),s=e?"mounted":"unmounted",[a,c]=p1(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const u=Or(r.current);i.current=a==="mounted"?u:"none"},[a]),ut(()=>{const u=r.current,d=o.current;if(d!==e){const p=i.current,g=Or(u);e?c("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(d&&p!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ut(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,h=g=>{const f=Or(r.current).includes(g.animationName);if(g.target===t&&f&&(c("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},p=g=>{g.target===t&&(i.current=Or(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:m.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Or(e){return(e==null?void 0:e.animationName)||"none"}function m1(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 g1=m[" useInsertionEffect ".trim().toString()]||ut;function ic({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=v1({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:o;{const d=m.useRef(e!==void 0);m.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 u=m.useCallback(d=>{var h;if(a){const p=y1(d)?d(e):d;p!==e&&((h=s.current)==null||h.call(s,p))}else i(d)},[a,e,i,s]);return[c,u]}function v1({defaultProp:e,onChange:t}){const[n,r]=m.useState(e),o=m.useRef(n),i=m.useRef(t);return g1(()=>{i.current=t},[t]),m.useEffect(()=>{var s;o.current!==n&&((s=i.current)==null||s.call(i,n),o.current=n)},[n,o]),[n,r,i]}function y1(e){return typeof e=="function"}var b1=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"}),w1="VisuallyHidden",sc=m.forwardRef((e,t)=>l.jsx(ye.span,{...e,ref:t,style:{...b1,...e.style}}));sc.displayName=w1;var _1=sc,[kr,ly]=Vo("Tooltip",[Ka]),jr=Ka(),ac="TooltipProvider",x1=700,li="tooltip.open",[C1,ui]=kr(ac),cc=e=>{const{__scopeTooltip:t,delayDuration:n=x1,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,s=m.useRef(!0),a=m.useRef(!1),c=m.useRef(0);return m.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),l.jsx(C1,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:m.useCallback(()=>{window.clearTimeout(c.current),s.current=!1},[]),onClose:m.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:m.useCallback(u=>{a.current=u},[]),disableHoverableContent:o,children:i})};cc.displayName=ac;var Nn="Tooltip",[E1,Mn]=kr(Nn),lc=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:i,disableHoverableContent:s,delayDuration:a}=e,c=ui(Nn,e.__scopeTooltip),u=jr(t),[d,h]=m.useState(null),p=wr(),g=m.useRef(0),w=s??c.disableHoverableContent,f=a??c.delayDuration,v=m.useRef(!1),[_,x]=ic({prop:r,defaultProp:o??!1,onChange:P=>{P?(c.onOpen(),document.dispatchEvent(new CustomEvent(li))):c.onClose(),i==null||i(P)},caller:Nn}),S=m.useMemo(()=>_?v.current?"delayed-open":"instant-open":"closed",[_]),C=m.useCallback(()=>{window.clearTimeout(g.current),g.current=0,v.current=!1,x(!0)},[x]),T=m.useCallback(()=>{window.clearTimeout(g.current),g.current=0,x(!1)},[x]),R=m.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{v.current=!0,x(!0),g.current=0},f)},[f,x]);return m.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),l.jsx(c1,{...u,children:l.jsx(E1,{scope:t,contentId:p,open:_,stateAttribute:S,trigger:d,onTriggerChange:h,onTriggerEnter:m.useCallback(()=>{c.isOpenDelayedRef.current?R():C()},[c.isOpenDelayedRef,R,C]),onTriggerLeave:m.useCallback(()=>{w?T():(window.clearTimeout(g.current),g.current=0)},[T,w]),onOpen:C,onClose:T,disableHoverableContent:w,children:n})})};lc.displayName=Nn;var di="TooltipTrigger",uc=m.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Mn(di,n),i=ui(di,n),s=jr(n),a=m.useRef(null),c=Oe(t,a,o.onTriggerChange),u=m.useRef(!1),d=m.useRef(!1),h=m.useCallback(()=>u.current=!1,[]);return m.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),l.jsx(l1,{asChild:!0,...s,children:l.jsx(ye.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:ve(e.onPointerMove,p=>{p.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:ve(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:ve(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:ve(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:ve(e.onBlur,o.onClose),onClick:ve(e.onClick,o.onClose)})})});uc.displayName=di;var fi="TooltipPortal",[S1,T1]=kr(fi,{forceMount:void 0}),dc=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,i=Mn(fi,t);return l.jsx(S1,{scope:t,forceMount:n,children:l.jsx(tn,{present:n||i.open,children:l.jsx(ci,{asChild:!0,container:o,children:r})})})};dc.displayName=fi;var nn="TooltipContent",fc=m.forwardRef((e,t)=>{const n=T1(nn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=Mn(nn,e.__scopeTooltip);return l.jsx(tn,{present:r||s.open,children:s.disableHoverableContent?l.jsx(pc,{side:o,...i,ref:t}):l.jsx(A1,{side:o,...i,ref:t})})}),A1=m.forwardRef((e,t)=>{const n=Mn(nn,e.__scopeTooltip),r=ui(nn,e.__scopeTooltip),o=m.useRef(null),i=Oe(t,o),[s,a]=m.useState(null),{trigger:c,onClose:u}=n,d=o.current,{onPointerInTransitChange:h}=r,p=m.useCallback(()=>{a(null),h(!1)},[h]),g=m.useCallback((w,f)=>{const v=w.currentTarget,_={x:w.clientX,y:w.clientY},x=k1(_,v.getBoundingClientRect()),S=j1(_,x),C=D1(f.getBoundingClientRect()),T=I1([...S,...C]);a(T),h(!0)},[h]);return m.useEffect(()=>()=>p(),[p]),m.useEffect(()=>{if(c&&d){const w=v=>g(v,d),f=v=>g(v,c);return c.addEventListener("pointerleave",w),d.addEventListener("pointerleave",f),()=>{c.removeEventListener("pointerleave",w),d.removeEventListener("pointerleave",f)}}},[c,d,g,p]),m.useEffect(()=>{if(s){const w=f=>{const v=f.target,_={x:f.clientX,y:f.clientY},x=(c==null?void 0:c.contains(v))||(d==null?void 0:d.contains(v)),S=!L1(_,s);x?p():S&&(p(),u())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[c,d,s,u,p]),l.jsx(pc,{...e,ref:i})}),[P1,R1]=kr(Nn,{isInside:!1}),O1=Ep("TooltipContent"),pc=m.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...a}=e,c=Mn(nn,n),u=jr(n),{onClose:d}=c;return m.useEffect(()=>(document.addEventListener(li,d),()=>document.removeEventListener(li,d)),[d]),m.useEffect(()=>{if(c.trigger){const h=p=>{const g=p.target;g!=null&&g.contains(c.trigger)&&d()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[c.trigger,d]),l.jsx(qo,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:h=>h.preventDefault(),onDismiss:d,children:l.jsxs(u1,{"data-state":c.stateAttribute,...u,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[l.jsx(O1,{children:r}),l.jsx(P1,{scope:n,isInside:!0,children:l.jsx(_1,{id:c.contentId,role:"tooltip",children:o||r})})]})})});fc.displayName=nn;var hc="TooltipArrow",mc=m.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=jr(n);return R1(hc,n).isInside?null:l.jsx(d1,{...o,...r,ref:t})});mc.displayName=hc;function k1(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function j1(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 D1(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 L1(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const a=t[i],c=t[s],u=a.x,d=a.y,h=c.x,p=c.y;d>r!=p>r&&n<(h-u)*(r-d)/(p-d)+u&&(o=!o)}return o}function I1(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),N1(t)}function N1(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var M1=cc,$1=lc,F1=uc,B1=dc,U1=fc,z1=mc;const gc={tooltip:"tooltip__nUuSh",tooltipArrow:"tooltipArrow__W2w-f"},H1=E("Tooltip",({children:e,open:t,displayName:n,tooltipContent:r,className:o,disabled:i,delayDuration:s=300,side:a="right",sideOffset:c=0})=>{const[u,d]=F(!1),h=t!==void 0,g=i?!1:h?t:u,w=f=>{i||h||d(f)};return l.jsx(M1,{delayDuration:s,children:l.jsxs($1,{open:g,onOpenChange:w,children:[l.jsx(F1,{asChild:!0,children:e}),l.jsx(B1,{children:l.jsxs(U1,{className:j(gc.tooltip,o),side:a,sideOffset:c,children:[n,r,l.jsx(z1,{className:gc.tooltipArrow})]})})]})})});H1.displayName="Tooltip";const vc={spinner:"spinner__qa7F6",rotate:"rotate__EqlXe","spinner-dark":"spinner-dark__9A9-q",spinnerDark:"spinner-dark__9A9-q","spinner-white":"spinner-white__gRbtI",spinnerWhite:"spinner-white__gRbtI","spinner-success":"spinner-success__otWGm",spinnerSuccess:"spinner-success__otWGm","spinner-danger":"spinner-danger__Bq5DM",spinnerDanger:"spinner-danger__Bq5DM","spinner-warning":"spinner-warning__U900K",spinnerWarning:"spinner-warning__U900K"},W1=E("Spinner",({className:e,color:t="white",size:n=80,thickness:r})=>{const o=j(vc.spinner,vc[`spinner-${t}`],e),i=r??Math.max(n/12,2);return l.jsx("span",{style:{width:n,height:n,borderWidth:i},className:o})});W1.displayName="Spinner";const Dr={switch:"switch__0b2av",disabled:"disabled__KpauE",checked:"checked__2-JV-",thumb:"thumb__fEuKD"},V1=E("Switch",z(({checked:e,defaultChecked:t=!1,onCheckedChange:n,disabled:r=!1,id:o,className:i,name:s,"aria-label":a,"aria-labelledby":c,"aria-describedby":u,...d},h)=>{const[p,g]=Gn.useState(t),w=e!==void 0,f=w?!!e:p,v=()=>{if(r)return;const x=!f;w||g(x),n==null||n(x)},_=x=>{(x.key===" "||x.key==="Enter")&&(x.preventDefault(),v())};return l.jsx("button",{ref:h,type:"button",role:"switch","aria-checked":f,"aria-label":a,"aria-labelledby":c,"aria-describedby":u,disabled:r,id:o,name:s,className:j(Dr.switch,{[Dr.checked]:f,[Dr.disabled]:r}),onClick:v,onKeyDown:_,...d,children:l.jsx("span",{className:Dr.thumb,"aria-hidden":"true"})})}));V1.displayName="Switch";const ze={tabsRoot:"tabs-root__ELmdj",tabsList:"tabs-list__rc10N",tabsListHorizontal:"tabs-list--horizontal__e1YW4",tabsListVertical:"tabs-list--vertical__huK05",tabsTrigger:"tabs-trigger__D8R4R",tabsTriggerDisabled:"tabs-trigger--disabled__ezDWc",tabsTriggerHorizontal:"tabs-trigger--horizontal__4jBFV",tabsTriggerActive:"tabs-trigger--active__S-Z-S",tabsTriggerVertical:"tabs-trigger--vertical__dNVIZ",tabsContent:"tabs-content__1d77o"},yc=no(null),pi=()=>{const e=ro(yc);if(!e)throw new Error("Tabs components must be used within a Tabs provider");return e},jy=E("Tabs",({defaultValue:e,value:t,onValueChange:n,orientation:r="horizontal",className:o="",children:i})=>{const[s,a]=F(e||""),c=t!==void 0,u=c?t:s,d=h=>{c||a(h),n==null||n(h)};return l.jsx(yc.Provider,{value:{value:u,onValueChange:d,orientation:r},children:l.jsx("div",{className:j(ze.tabsRoot,o),children:i})})}),Dy=E("TabsList",({className:e="",children:t})=>{const{orientation:n}=pi(),r=io(null),o=i=>{var u;const s=(u=r.current)==null?void 0:u.querySelectorAll('[role="tab"]:not([disabled])');if(!s)return;const a=Array.from(s).findIndex(d=>d===document.activeElement);let c=a;switch(i.key){case"ArrowLeft":n==="horizontal"&&(i.preventDefault(),c=a>0?a-1:s.length-1);break;case"ArrowRight":n==="horizontal"&&(i.preventDefault(),c=a<s.length-1?a+1:0);break;case"ArrowUp":n==="vertical"&&(i.preventDefault(),c=a>0?a-1:s.length-1);break;case"ArrowDown":n==="vertical"&&(i.preventDefault(),c=a<s.length-1?a+1:0);break;case"Home":i.preventDefault(),c=0;break;case"End":i.preventDefault(),c=s.length-1;break}if(c!==a){const d=s[c];d.focus(),d.click()}};return l.jsx("div",{ref:r,role:"tablist","aria-orientation":n,onKeyDown:o,className:j(ze.tabsList,n==="horizontal"?ze.tabsListHorizontal:ze.tabsListVertical,e),children:t})}),Ly=E("TabsTrigger",({value:e,disabled:t=!1,className:n="",children:r})=>{const{value:o,onValueChange:i,orientation:s}=pi(),a=o===e,c=()=>{t||i(e)};return l.jsx("button",{role:"tab","aria-selected":a,"aria-controls":`content-${e}`,tabIndex:a?0:-1,disabled:t,onClick:c,className:j(ze.tabsTrigger,s==="horizontal"?ze.tabsTriggerHorizontal:ze.tabsTriggerVertical,a&&ze.tabsTriggerActive,t&&ze.tabsTriggerDisabled,n),children:r})}),Iy=E("TabsContent",({value:e,className:t="",children:n})=>{const{value:r}=pi();return r===e?l.jsx("div",{role:"tabpanel",id:`content-${e}`,"aria-labelledby":`trigger-${e}`,tabIndex:0,className:j(ze.tabsContent,t),children:n}):null}),G1=E("EyeIcon",({className:e,state:t="open",onClick:n})=>t==="open"?l.jsxs("svg",{className:e,onClick:n,xmlns:"http://www.w3.org/2000/svg",width:"1.5em",height:"1.5em",viewBox:"0 0 14 14",fill:"none",children:[l.jsx("path",{d:"M1.41174 7.41635C1.3323 7.29056 1.29257 7.22766 1.27034 7.13065C1.25364 7.05778 1.25364 6.94287 1.27034 6.87C1.29257 6.77299 1.3323 6.71009 1.41174 6.58431C2.06823 5.54482 4.02232 2.91699 7.00024 2.91699C9.97815 2.91699 11.9322 5.54482 12.5887 6.5843C12.6682 6.71009 12.7079 6.77299 12.7301 6.87C12.7468 6.94287 12.7468 7.05778 12.7301 7.13065C12.7079 7.22766 12.6682 7.29056 12.5887 7.41635C11.9322 8.45584 9.97815 11.0837 7.00024 11.0837C4.02232 11.0837 2.06823 8.45584 1.41174 7.41635Z",stroke:"#818181",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M7.00024 8.75033C7.96673 8.75033 8.75024 7.96682 8.75024 7.00033C8.75024 6.03383 7.96673 5.25033 7.00024 5.25033C6.03374 5.25033 5.25024 6.03383 5.25024 7.00033C5.25024 7.96682 6.03374 8.75033 7.00024 8.75033Z",stroke:"#818181",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"})]}):l.jsx("svg",{className:e,onClick:n,xmlns:"http://www.w3.org/2000/svg",width:"1.5em",height:"1.5em",viewBox:"0 0 14 14",fill:"none",children:l.jsx("path",{d:"M6.26672 2.97052C6.50379 2.93547 6.74835 2.91667 7.00024 2.91667C9.97816 2.91667 11.9323 5.54449 12.5887 6.58398C12.6682 6.70979 12.7079 6.7727 12.7302 6.86973C12.7469 6.94259 12.7468 7.05755 12.7301 7.13042C12.7079 7.22744 12.6679 7.29077 12.5879 7.41741C12.413 7.69425 12.1463 8.08331 11.793 8.50527M3.92252 3.9171C2.66131 4.77266 1.8051 5.9613 1.41231 6.58308C1.3325 6.70942 1.29259 6.7726 1.27035 6.86961C1.25364 6.94248 1.25363 7.05742 1.27033 7.13029C1.29257 7.22731 1.33229 7.29022 1.41174 7.41602C2.06823 8.45551 4.02232 11.0833 7.00024 11.0833C8.20098 11.0833 9.23526 10.6561 10.0851 10.078M1.75024 1.75L12.2502 12.25M5.76281 5.76256C5.44612 6.07925 5.25024 6.51675 5.25024 7C5.25024 7.9665 6.03374 8.75 7.00024 8.75C7.48349 8.75 7.92099 8.55413 8.23768 8.23744",stroke:"#818181",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"})})),bc={PasswordInput:"PasswordInput__GDJDN",eyeIcon:"eyeIcon__kDExG"},$y=E("PasswordInput",z((e,t)=>{const[n,r]=F("password"),o=ue(()=>{r(i=>i==="password"?"text":"password")},[r]);return l.jsxs("div",{className:j(bc.PasswordInput,e.className),children:[l.jsx(Bo,{type:n,...e,ref:t}),l.jsx(G1,{className:bc.eyeIcon,onClick:o,state:n==="password"?"open":"closed"})]})}));var hi="focusScope.autoFocusOnMount",mi="focusScope.autoFocusOnUnmount",wc={bubbles:!1,cancelable:!0},q1="FocusScope",_c=m.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,c]=m.useState(null),u=Kt(o),d=Kt(i),h=m.useRef(null),p=Oe(t,f=>c(f)),g=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(r){let f=function(S){if(g.paused||!a)return;const C=S.target;a.contains(C)?h.current=C:pt(h.current,{select:!0})},v=function(S){if(g.paused||!a)return;const C=S.relatedTarget;C!==null&&(a.contains(C)||pt(h.current,{select:!0}))},_=function(S){if(document.activeElement===document.body)for(const T of S)T.removedNodes.length>0&&pt(a)};document.addEventListener("focusin",f),document.addEventListener("focusout",v);const x=new MutationObserver(_);return a&&x.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",v),x.disconnect()}}},[r,a,g.paused]),m.useEffect(()=>{if(a){Ec.add(g);const f=document.activeElement;if(!a.contains(f)){const _=new CustomEvent(hi,wc);a.addEventListener(hi,u),a.dispatchEvent(_),_.defaultPrevented||(Q1(J1(xc(a)),{select:!0}),document.activeElement===f&&pt(a))}return()=>{a.removeEventListener(hi,u),setTimeout(()=>{const _=new CustomEvent(mi,wc);a.addEventListener(mi,d),a.dispatchEvent(_),_.defaultPrevented||pt(f??document.body,{select:!0}),a.removeEventListener(mi,d),Ec.remove(g)},0)}}},[a,u,d,g]);const w=m.useCallback(f=>{if(!n&&!r||g.paused)return;const v=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,_=document.activeElement;if(v&&_){const x=f.currentTarget,[S,C]=Y1(x);S&&C?!f.shiftKey&&_===C?(f.preventDefault(),n&&pt(S,{select:!0})):f.shiftKey&&_===S&&(f.preventDefault(),n&&pt(C,{select:!0})):_===x&&f.preventDefault()}},[n,r,g.paused]);return l.jsx(ye.div,{tabIndex:-1,...s,ref:p,onKeyDown:w})});_c.displayName=q1;function Q1(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(pt(r,{select:t}),document.activeElement!==n)return}function Y1(e){const t=xc(e),n=Cc(t,e),r=Cc(t.reverse(),e);return[n,r]}function xc(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 Cc(e,t){for(const n of e)if(!K1(n,{upTo:t}))return n}function K1(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 Z1(e){return e instanceof HTMLInputElement&&"select"in e}function pt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Z1(e)&&t&&e.select()}}var Ec=X1();function X1(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Sc(e,t),e.unshift(t)},remove(t){var n;e=Sc(e,t),(n=e[0])==null||n.resume()}}}function Sc(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function J1(e){return e.filter(t=>t.tagName!=="A")}var gi=0;function em(){m.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Tc()),document.body.insertAdjacentElement("beforeend",e[1]??Tc()),gi++,()=>{gi===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),gi--}},[])}function Tc(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Lr="right-scroll-bar-position",Ir="width-before-scroll-bar",tm="with-scroll-bars-hidden",nm="--removed-body-scroll-bar-size";function vi(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function rm(e,t){var n=F(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 om=typeof window<"u"?m.useLayoutEffect:m.useEffect,Ac=new WeakMap;function im(e,t){var n=rm(null,function(r){return e.forEach(function(o){return vi(o,r)})});return om(function(){var r=Ac.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(a){i.has(a)||vi(a,null)}),i.forEach(function(a){o.has(a)||vi(a,s)})}Ac.set(n,e)},[e]),n}function sm(e){return e}function am(e,t){t===void 0&&(t=sm);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var c=function(){var d=s;s=[],d.forEach(i)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(d){s.push(d),u()},filter:function(d){return s=s.filter(d),n}}}};return o}function cm(e){e===void 0&&(e={});var t=am(null);return t.options=Me({async:!0,ssr:!1},e),t}var Pc=function(e){var t=e.sideCar,n=us(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 m.createElement(r,Me({},n))};Pc.isSideCarExport=!0;function lm(e,t){return e.useMedium(t),Pc}var Rc=cm(),yi=function(){},Nr=m.forwardRef(function(e,t){var n=m.useRef(null),r=m.useState({onScrollCapture:yi,onWheelCapture:yi,onTouchMoveCapture:yi}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,h=e.shards,p=e.sideCar,g=e.noRelative,w=e.noIsolation,f=e.inert,v=e.allowPinchZoom,_=e.as,x=_===void 0?"div":_,S=e.gapMode,C=us(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),T=p,R=im([n,t]),P=Me(Me({},C),o);return m.createElement(m.Fragment,null,d&&m.createElement(T,{sideCar:Rc,removeScrollBar:u,shards:h,noRelative:g,noIsolation:w,inert:f,setCallbacks:i,allowPinchZoom:!!v,lockRef:n,gapMode:S}),s?m.cloneElement(m.Children.only(a),Me(Me({},P),{ref:R})):m.createElement(x,Me({},P,{className:c,ref:R}),a))});Nr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Nr.classNames={fullWidth:Ir,zeroRight:Lr};var um=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function dm(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=um();return t&&e.setAttribute("nonce",t),e}function fm(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function pm(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var hm=function(){var e=0,t=null;return{add:function(n){e==0&&(t=dm())&&(fm(t,n),pm(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},mm=function(){var e=hm();return function(t,n){m.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Oc=function(){var e=mm(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},gm={left:0,top:0,right:0,gap:0},bi=function(e){return parseInt(e||"",10)||0},vm=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[bi(n),bi(r),bi(o)]},ym=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return gm;var t=vm(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])}},bm=Oc(),rn="data-scroll-locked",wm=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
|
|
210
|
+
.`.concat(tm,` {
|
|
211
|
+
overflow: hidden `).concat(r,`;
|
|
212
|
+
padding-right: `).concat(a,"px ").concat(r,`;
|
|
213
|
+
}
|
|
214
|
+
body[`).concat(rn,`] {
|
|
215
|
+
overflow: hidden `).concat(r,`;
|
|
216
|
+
overscroll-behavior: contain;
|
|
217
|
+
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
218
|
+
padding-left: `.concat(o,`px;
|
|
219
|
+
padding-top: `).concat(i,`px;
|
|
220
|
+
padding-right: `).concat(s,`px;
|
|
221
|
+
margin-left:0;
|
|
222
|
+
margin-top:0;
|
|
223
|
+
margin-right: `).concat(a,"px ").concat(r,`;
|
|
224
|
+
`),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.`).concat(Lr,` {
|
|
228
|
+
right: `).concat(a,"px ").concat(r,`;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.`).concat(Ir,` {
|
|
232
|
+
margin-right: `).concat(a,"px ").concat(r,`;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.`).concat(Lr," .").concat(Lr,` {
|
|
236
|
+
right: 0 `).concat(r,`;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.`).concat(Ir," .").concat(Ir,` {
|
|
240
|
+
margin-right: 0 `).concat(r,`;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
body[`).concat(rn,`] {
|
|
244
|
+
`).concat(nm,": ").concat(a,`px;
|
|
245
|
+
}
|
|
246
|
+
`)},kc=function(){var e=parseInt(document.body.getAttribute(rn)||"0",10);return isFinite(e)?e:0},_m=function(){m.useEffect(function(){return document.body.setAttribute(rn,(kc()+1).toString()),function(){var e=kc()-1;e<=0?document.body.removeAttribute(rn):document.body.setAttribute(rn,e.toString())}},[])},xm=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;_m();var i=m.useMemo(function(){return ym(o)},[o]);return m.createElement(bm,{styles:wm(i,!t,o,n?"":"!important")})},wi=!1;if(typeof window<"u")try{var Mr=Object.defineProperty({},"passive",{get:function(){return wi=!0,!0}});window.addEventListener("test",Mr,Mr),window.removeEventListener("test",Mr,Mr)}catch{wi=!1}var on=wi?{passive:!1}:!1,Cm=function(e){return e.tagName==="TEXTAREA"},jc=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Cm(e)&&n[t]==="visible")},Em=function(e){return jc(e,"overflowY")},Sm=function(e){return jc(e,"overflowX")},Dc=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Lc(e,r);if(o){var i=Ic(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Tm=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Am=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Lc=function(e,t){return e==="v"?Em(t):Sm(t)},Ic=function(e,t){return e==="v"?Tm(t):Am(t)},Pm=function(e,t){return e==="h"&&t==="rtl"?-1:1},Rm=function(e,t,n,r,o){var i=Pm(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,c=t.contains(a),u=!1,d=s>0,h=0,p=0;do{if(!a)break;var g=Ic(e,a),w=g[0],f=g[1],v=g[2],_=f-v-i*w;(w||_)&&Lc(e,a)&&(h+=_,p+=w);var x=a.parentNode;a=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(d&&Math.abs(h)<1||!d&&Math.abs(p)<1)&&(u=!0),u},$r=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Nc=function(e){return[e.deltaX,e.deltaY]},Mc=function(e){return e&&"current"in e?e.current:e},Om=function(e,t){return e[0]===t[0]&&e[1]===t[1]},km=function(e){return`
|
|
247
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
248
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
249
|
+
`)},jm=0,sn=[];function Dm(e){var t=m.useRef([]),n=m.useRef([0,0]),r=m.useRef(),o=m.useState(jm++)[0],i=m.useState(Oc)[0],s=m.useRef(e);m.useEffect(function(){s.current=e},[e]),m.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var f=Xn([e.lockRef.current],(e.shards||[]).map(Mc),!0).filter(Boolean);return f.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),f.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=m.useCallback(function(f,v){if("touches"in f&&f.touches.length===2||f.type==="wheel"&&f.ctrlKey)return!s.current.allowPinchZoom;var _=$r(f),x=n.current,S="deltaX"in f?f.deltaX:x[0]-_[0],C="deltaY"in f?f.deltaY:x[1]-_[1],T,R=f.target,P=Math.abs(S)>Math.abs(C)?"h":"v";if("touches"in f&&P==="h"&&R.type==="range")return!1;var I=Dc(P,R);if(!I)return!0;if(I?T=P:(T=P==="v"?"h":"v",I=Dc(P,R)),!I)return!1;if(!r.current&&"changedTouches"in f&&(S||C)&&(r.current=T),!T)return!0;var N=r.current||T;return Rm(N,v,f,N==="h"?S:C)},[]),c=m.useCallback(function(f){var v=f;if(!(!sn.length||sn[sn.length-1]!==i)){var _="deltaY"in v?Nc(v):$r(v),x=t.current.filter(function(T){return T.name===v.type&&(T.target===v.target||v.target===T.shadowParent)&&Om(T.delta,_)})[0];if(x&&x.should){v.cancelable&&v.preventDefault();return}if(!x){var S=(s.current.shards||[]).map(Mc).filter(Boolean).filter(function(T){return T.contains(v.target)}),C=S.length>0?a(v,S[0]):!s.current.noIsolation;C&&v.cancelable&&v.preventDefault()}}},[]),u=m.useCallback(function(f,v,_,x){var S={name:f,delta:v,target:_,should:x,shadowParent:Lm(_)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(C){return C!==S})},1)},[]),d=m.useCallback(function(f){n.current=$r(f),r.current=void 0},[]),h=m.useCallback(function(f){u(f.type,Nc(f),f.target,a(f,e.lockRef.current))},[]),p=m.useCallback(function(f){u(f.type,$r(f),f.target,a(f,e.lockRef.current))},[]);m.useEffect(function(){return sn.push(i),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",c,on),document.addEventListener("touchmove",c,on),document.addEventListener("touchstart",d,on),function(){sn=sn.filter(function(f){return f!==i}),document.removeEventListener("wheel",c,on),document.removeEventListener("touchmove",c,on),document.removeEventListener("touchstart",d,on)}},[]);var g=e.removeScrollBar,w=e.inert;return m.createElement(m.Fragment,null,w?m.createElement(i,{styles:km(o)}):null,g?m.createElement(xm,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Lm(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Im=lm(Rc,Dm);var $c=m.forwardRef(function(e,t){return m.createElement(Nr,Me({},e,{ref:t,sideCar:Im}))});$c.classNames=Nr.classNames;var Nm=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},an=new WeakMap,Fr=new WeakMap,Br={},_i=0,Fc=function(e){return e&&(e.host||Fc(e.parentNode))},Mm=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Fc(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},$m=function(e,t,n,r){var o=Mm(t,Array.isArray(e)?e:[e]);Br[n]||(Br[n]=new WeakMap);var i=Br[n],s=[],a=new Set,c=new Set(o),u=function(h){!h||a.has(h)||(a.add(h),u(h.parentNode))};o.forEach(u);var d=function(h){!h||c.has(h)||Array.prototype.forEach.call(h.children,function(p){if(a.has(p))d(p);else try{var g=p.getAttribute(r),w=g!==null&&g!=="false",f=(an.get(p)||0)+1,v=(i.get(p)||0)+1;an.set(p,f),i.set(p,v),s.push(p),f===1&&w&&Fr.set(p,!0),v===1&&p.setAttribute(n,"true"),w||p.setAttribute(r,"true")}catch(_){console.error("aria-hidden: cannot operate on ",p,_)}})};return d(t),a.clear(),_i++,function(){s.forEach(function(h){var p=an.get(h)-1,g=i.get(h)-1;an.set(h,p),i.set(h,g),p||(Fr.has(h)||h.removeAttribute(r),Fr.delete(h)),g||h.removeAttribute(n)}),_i--,_i||(an=new WeakMap,an=new WeakMap,Fr=new WeakMap,Br={})}},Fm=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Nm(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),$m(r,o,n,"aria-hidden")):function(){return null}},Ur="Dialog",[Bc,Fy]=Vo(Ur),[Bm,De]=Bc(Ur),Uc=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,a=m.useRef(null),c=m.useRef(null),[u,d]=ic({prop:r,defaultProp:o??!1,onChange:i,caller:Ur});return l.jsx(Bm,{scope:t,triggerRef:a,contentRef:c,contentId:wr(),titleId:wr(),descriptionId:wr(),open:u,onOpenChange:d,onOpenToggle:m.useCallback(()=>d(h=>!h),[d]),modal:s,children:n})};Uc.displayName=Ur;var zc="DialogTrigger",Um=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=De(zc,n),i=Oe(t,o.triggerRef);return l.jsx(ye.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Ei(o.open),...r,ref:i,onClick:ve(e.onClick,o.onOpenToggle)})});Um.displayName=zc;var xi="DialogPortal",[zm,Hc]=Bc(xi,{forceMount:void 0}),Wc=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=De(xi,t);return l.jsx(zm,{scope:t,forceMount:n,children:m.Children.map(r,s=>l.jsx(tn,{present:n||i.open,children:l.jsx(ci,{asChild:!0,container:o,children:s})}))})};Wc.displayName=xi;var zr="DialogOverlay",Vc=m.forwardRef((e,t)=>{const n=Hc(zr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=De(zr,e.__scopeDialog);return i.modal?l.jsx(tn,{present:r||i.open,children:l.jsx(Wm,{...o,ref:t})}):null});Vc.displayName=zr;var Hm=Ho("DialogOverlay.RemoveScroll"),Wm=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=De(zr,n);return l.jsx($c,{as:Hm,allowPinchZoom:!0,shards:[o.contentRef],children:l.jsx(ye.div,{"data-state":Ei(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),jt="DialogContent",Gc=m.forwardRef((e,t)=>{const n=Hc(jt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=De(jt,e.__scopeDialog);return l.jsx(tn,{present:r||i.open,children:i.modal?l.jsx(Vm,{...o,ref:t}):l.jsx(Gm,{...o,ref:t})})});Gc.displayName=jt;var Vm=m.forwardRef((e,t)=>{const n=De(jt,e.__scopeDialog),r=m.useRef(null),o=Oe(t,n.contentRef,r);return m.useEffect(()=>{const i=r.current;if(i)return Fm(i)},[]),l.jsx(qc,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ve(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:ve(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&i.preventDefault()}),onFocusOutside:ve(e.onFocusOutside,i=>i.preventDefault())})}),Gm=m.forwardRef((e,t)=>{const n=De(jt,e.__scopeDialog),r=m.useRef(!1),o=m.useRef(!1);return l.jsx(qc,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((u=n.triggerRef.current)==null?void 0:u.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),qc=m.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,a=De(jt,n),c=m.useRef(null),u=Oe(t,c);return em(),l.jsxs(l.Fragment,{children:[l.jsx(_c,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:l.jsx(qo,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Ei(a.open),...s,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),l.jsxs(l.Fragment,{children:[l.jsx(qm,{titleId:a.titleId}),l.jsx(Ym,{contentRef:c,descriptionId:a.descriptionId})]})]})}),Ci="DialogTitle",Qc=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=De(Ci,n);return l.jsx(ye.h2,{id:o.titleId,...r,ref:t})});Qc.displayName=Ci;var Yc="DialogDescription",Kc=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=De(Yc,n);return l.jsx(ye.p,{id:o.descriptionId,...r,ref:t})});Kc.displayName=Yc;var Zc="DialogClose",Xc=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=De(Zc,n);return l.jsx(ye.button,{type:"button",...r,ref:t,onClick:ve(e.onClick,()=>o.onOpenChange(!1))})});Xc.displayName=Zc;function Ei(e){return e?"open":"closed"}var Jc="DialogTitleWarning",[By,el]=Rp(Jc,{contentName:jt,titleName:Ci,docsSlug:"dialog"}),qm=({titleId:e})=>{const t=el(Jc),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
250
|
+
|
|
251
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
252
|
+
|
|
253
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return m.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Qm="DialogDescriptionWarning",Ym=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${el(Qm).contentName}}.`;return m.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Km=Uc,Zm=Wc,Xm=Vc,Jm=Gc,eg=Qc,tg=Kc,ng=Xc;const tl={Overlay:"Overlay__M5Z83",Content:"Content__wAkP4"},Dt={Header:"Header__VHxNf",Content:"Content__I04qM",Close:"Close__xSN-7",Title:"Title__Dznh6",Footer:"Footer__-8gzQ",Actions:"Actions__kKF2Q"},nl=z(({children:e,className:t,...n},r)=>{const o=j(Dt.Header,t);return l.jsx("div",{ref:r,className:o,...n,children:e})});nl.displayName="Header";const rl=z(({children:e,className:t,...n},r)=>{const o=j(Dt.Content,t);return l.jsx("div",{ref:r,className:o,...n,children:e})});rl.displayName="Content";const ol=z(({children:e,className:t,...n},r)=>{const o=j(Dt.Footer,t);return l.jsx("div",{ref:r,className:o,...n,children:e})});ol.displayName="Footer";const il=z(({children:e,className:t,...n},r)=>{const o=j(Dt.Title,t);return l.jsx(eg,{ref:r,className:o,...n,children:e})});il.displayName="Title";const sl=z(({className:e,...t},n)=>{const r=j(Dt.Close,e);return l.jsx(ng,{ref:n,asChild:!0,className:r,...t,children:l.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:"M11 1L1 11M1 1L11 11",stroke:"#A9A9A9",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})});sl.displayName="Close";const al=z(({children:e,className:t,...n},r)=>{const o=j(Dt.Actions,t);return l.jsx("div",{ref:r,className:o,...n,children:e})});al.displayName="Actions";const cl=z(({children:e,className:t,...n},r)=>{const o=j(Dt.Description,t);return l.jsx("div",{ref:r,className:o,...n,children:e})});cl.displayName="Description";const pe=E("Dialog",({children:e,onClose:t,open:n=!1,className:r})=>{const o=()=>{t==null||t()};return l.jsx(Km,{onOpenChange:o,open:n,children:l.jsxs(Zm,{children:[l.jsx(Xm,{className:tl.Overlay}),l.jsxs(Jm,{children:[l.jsx(tg,{}),l.jsx("div",{className:j(tl.Content,r),children:e})]})]})})});pe.displayName="Dialog",pe.Header=nl,pe.Content=rl,pe.Footer=ol,pe.Actions=al,pe.Title=il,pe.Description=cl,pe.Close=sl;const ll={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"},Xy=E("Pill",({children:e,variant:t="solid",className:n})=>{const r=j(ll.pill,ll[`pill--${t}`],n);return l.jsx("div",{className:r,children:e})}),ul={DialogContent:"DialogContent__-WjG9",Message:"Message__AUgVP"},rg=E("ConfirmDialog",({loading:e,title:t,children:n,className:r,onClose:o,onConfirm:i,...s})=>l.jsxs(pe,{...s,className:j(ul.DialogContent,r),children:[l.jsxs(pe.Header,{children:[l.jsx(pe.Title,{children:t}),l.jsx(pe.Close,{onClick:o})]}),l.jsx(pe.Content,{children:typeof n=="string"?l.jsx("p",{className:ul.Message,children:n}):n}),l.jsx(pe.Footer,{children:l.jsxs(pe.Actions,{children:[l.jsx(Fo,{onClick:o,disabled:e,variant:"outlined",children:"Cancel"}),l.jsx(Fo,{onClick:i,disabled:e,loading:e,variant:"contained",children:"Confirm"})]})})]}));rg.displayName="ConfirmDialog";const Hr={container:"container__AjtYJ",title:"title__A2vCu",description:"description__bP6Ig",mailToText:"mailToText__SdlsE"},dl=()=>l.jsxs("svg",{width:"200",height:"200",viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsx("path",{d:"M184.415 152.221C183.936 151.406 183.401 150.621 182.892 149.824C181.61 147.817 180.327 145.809 179.045 143.801C177.102 140.759 175.159 137.717 173.215 134.676C170.766 130.841 168.316 127.006 165.866 123.171C163.068 118.79 160.27 114.41 157.472 110.03C154.484 105.352 151.496 100.674 148.508 95.9965C145.474 91.2464 142.439 86.4963 139.405 81.7463C136.513 77.2189 133.621 72.6915 130.729 68.1641C128.123 64.084 125.517 60.0039 122.91 55.9238C120.748 52.5389 118.586 49.1541 116.424 45.7692C114.864 43.3273 113.304 40.8854 111.744 38.4436C110.943 37.1899 110.142 35.9362 109.342 34.6825C108.765 33.7802 108.096 32.9744 107.292 32.2572C104.604 29.8584 100.572 29.2302 97.2301 30.5252C94.5951 31.5463 92.6177 33.3853 91.0923 35.7373C90.8768 36.0696 90.6658 36.405 90.4526 36.7387C89.3951 38.3941 88.3378 40.0494 87.2803 41.7049C85.5124 44.4725 83.7444 47.2402 81.9765 50.0079C79.644 53.6594 77.3114 57.3111 74.9788 60.9626C72.2632 65.2138 69.5477 69.465 66.8321 73.7162C63.8817 78.3349 60.9313 82.9536 57.9811 87.5722C54.9542 92.3106 51.9274 97.0491 48.9006 101.787C45.9557 106.398 43.0107 111.008 40.0658 115.618C37.3487 119.872 34.6316 124.125 31.9145 128.379C29.6106 131.986 27.3067 135.592 25.0028 139.199C23.2565 141.933 21.5101 144.667 19.7639 147.4C18.7335 149.013 17.7031 150.626 16.6728 152.239C14.8665 155.067 13.7231 158.171 14.23 161.595C14.9672 166.576 19.2366 170.131 24.2215 170.137C25.559 170.139 26.8963 170.137 28.2338 170.137C30.9198 170.137 33.6058 170.137 36.2918 170.137C40.0725 170.137 43.8533 170.137 47.6341 170.137C52.2557 170.137 56.8772 170.137 61.4989 170.137C66.7339 170.137 71.969 170.137 77.204 170.137C82.7467 170.137 88.2894 170.137 93.8322 170.137C99.4529 170.137 105.074 170.137 110.694 170.137C116.139 170.137 121.584 170.137 127.029 170.137C132.044 170.137 137.06 170.137 142.075 170.137C146.425 170.137 150.776 170.137 155.127 170.137C158.516 170.137 161.904 170.137 165.293 170.137C167.49 170.137 169.686 170.137 171.883 170.137C172.633 170.137 173.384 170.137 174.135 170.137C178.404 170.087 182.136 167.627 184.212 163.932C186.248 160.307 186.562 155.866 184.415 152.221ZM94.0937 37.3471C94.0897 37.3539 94.0862 37.3597 94.0824 37.3661C94.0826 37.3652 94.0831 37.3642 94.0833 37.3632C94.0844 37.3581 94.0909 37.3518 94.0937 37.3471ZM178.584 164.489C178.476 164.538 178.524 164.516 178.584 164.489V164.489ZM180.937 162.79C180.979 162.72 181.118 162.485 181.127 162.498C181.145 162.528 181.058 162.647 180.937 162.79ZM181.821 160.333C181.806 160.446 181.782 160.646 181.773 160.697C181.736 160.919 181.686 161.139 181.637 161.359C181.637 161.359 181.637 161.359 181.637 161.359C181.629 161.377 181.621 161.399 181.61 161.426C181.54 161.604 181.472 161.785 181.406 161.965C181.402 161.977 181.398 161.988 181.394 161.999C181.304 162.16 181.219 162.323 181.123 162.481C181.074 162.562 181.016 162.641 180.97 162.724C180.949 162.762 180.936 162.785 180.93 162.798C180.727 163.035 180.436 163.332 180.388 163.385C180.696 163.049 180.535 163.229 180.318 163.42C180.172 163.548 180.018 163.666 179.869 163.79C179.848 163.807 179.831 163.822 179.816 163.835C179.797 163.845 179.775 163.857 179.747 163.873C179.576 163.97 179.411 164.078 179.238 164.171C179.043 164.277 178.844 164.373 178.642 164.463C178.556 164.494 178.471 164.526 178.384 164.553C177.532 164.819 176.835 164.945 176.084 164.954C175.296 164.954 174.508 164.954 173.719 164.954C171.519 164.954 169.318 164.954 167.118 164.954C163.751 164.954 160.385 164.954 157.019 164.954C152.756 164.954 148.493 164.954 144.231 164.954C139.275 164.954 134.319 164.954 129.364 164.954C123.981 164.954 118.598 164.954 113.215 164.954C107.651 164.954 102.086 164.954 96.5224 164.954C91.024 164.954 85.5255 164.954 80.0271 164.954C74.8407 164.954 69.6543 164.954 64.4679 164.954C59.8401 164.954 55.2123 164.954 50.5846 164.954C46.7784 164.954 42.9721 164.954 39.166 164.954C36.3891 164.954 33.6122 164.954 30.8354 164.954C29.3555 164.954 27.8756 164.954 26.3957 164.954C25.9641 164.954 25.534 164.958 25.1029 164.922C23.4511 164.785 22.11 164.207 20.7626 163.127C20.3445 162.792 19.7301 162.074 19.3142 161.434C19.2096 161.273 19.1102 161.109 19.0161 160.942C18.9707 160.861 18.8013 160.534 18.8105 160.558C18.7451 160.414 18.5329 159.846 18.4422 159.537C18.3467 159.211 18.2692 158.879 18.2129 158.544C18.2174 158.545 18.1876 158.285 18.1815 158.192C18.1669 157.964 18.1617 157.736 18.1651 157.508C18.166 157.455 18.1793 157.245 18.185 157.131C18.2055 157.005 18.2441 156.74 18.2591 156.662C18.2913 156.493 18.3319 156.326 18.3726 156.16C18.2821 156.539 18.4099 156.072 18.4891 155.866C18.518 155.79 18.6652 155.487 18.6846 155.432C18.7383 155.339 18.7932 155.243 18.8125 155.21C18.8692 155.114 18.9282 155.019 18.9875 154.924C19.0003 154.904 19.0137 154.884 19.0265 154.863C19.2211 154.554 19.4201 154.247 19.617 153.939C20.6335 152.348 21.6501 150.756 22.6667 149.165C24.3869 146.472 26.107 143.779 27.8271 141.086C30.0848 137.552 32.3425 134.017 34.6001 130.483C37.2646 126.312 39.9291 122.141 42.5935 117.97C45.5011 113.418 48.4086 108.866 51.3161 104.315C54.3131 99.6229 57.31 94.9312 60.3069 90.2397C63.2394 85.6489 66.172 81.058 69.1045 76.4672C71.819 72.2178 74.5334 67.9683 77.2479 63.719C79.5904 60.0517 81.9331 56.3844 84.2756 52.7172C86.0852 49.8842 87.8948 47.0513 89.7044 44.2184C90.8459 42.4315 91.9873 40.6446 93.1287 38.8578C93.3976 38.4368 93.6701 38.0178 93.9356 37.5945C93.9507 37.5705 93.9737 37.5416 93.9972 37.511C93.8744 37.7231 94.1597 37.2638 94.301 37.0921C94.4017 36.9695 94.5483 36.8114 94.5423 36.8113C94.6372 36.721 94.7333 36.6319 94.8323 36.546C94.9866 36.4121 95.1478 36.2876 95.3084 36.1615C94.9392 36.4513 95.3917 36.1121 95.5441 36.0212C96.7591 35.2961 98.1095 34.9498 99.7068 35.0725C101.356 35.1993 102.702 35.7434 104.07 36.8307C104.685 37.3192 105.311 38.1542 105.817 38.9457C106.592 40.1592 107.367 41.3727 108.142 42.5862C109.667 44.9733 111.192 47.3605 112.717 49.7476C114.838 53.0679 116.959 56.3881 119.08 59.7083C121.629 63.6999 124.179 67.6913 126.729 71.6829C129.579 76.1455 132.43 80.6082 135.281 85.0709C138.267 89.7458 141.253 94.4206 144.239 99.0955C147.207 103.742 150.176 108.388 153.144 113.035C155.94 117.412 158.736 121.789 161.532 126.167C164.002 130.034 166.473 133.902 168.943 137.769C170.935 140.886 172.926 144.003 174.917 147.12C176.27 149.239 177.623 151.357 178.976 153.475C179.551 154.376 180.134 155.272 180.702 156.177C181.138 156.872 181.311 157.219 181.54 157.972C181.6 158.167 181.652 158.363 181.697 158.561C181.711 158.623 181.759 158.873 181.78 158.97C181.787 159.063 181.815 159.319 181.819 159.383C181.831 159.579 181.836 159.775 181.834 159.972C181.834 160.022 181.825 160.217 181.821 160.333Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M98.5821 122.507C99.019 122.759 99.6307 122.629 100.038 122.389C101.205 121.703 101.925 120.275 102.041 118.92C103.115 106.361 106.514 75.1051 106.514 68.3062C106.514 59.902 92.8134 60.6835 92.0664 71.3279C91.6887 76.7103 97.5083 119.581 97.8266 121.187C97.9188 121.652 98.1423 122.253 98.5821 122.507Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M101.841 133.945C101.826 133.94 101.812 133.934 101.797 133.929C98.2767 132.6 94.4012 134.976 93.9964 138.717C93.9765 138.901 93.9636 139.086 93.958 139.272C93.8552 142.712 96.4467 146.126 99.8464 146.664C103.245 147.201 106.896 144.494 107.099 141.059C107.285 137.909 104.789 135.072 101.841 133.945Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M161.729 131.662C161.873 131.367 162.082 130.81 161.71 130.584C161.365 130.375 160.901 130.836 160.768 131.107C156.804 139.201 152.84 147.295 148.877 155.389C147.759 157.67 146.642 159.952 145.525 162.233C145.38 162.528 145.171 163.085 145.543 163.311C145.888 163.52 146.352 163.059 146.485 162.788C150.449 154.694 154.413 146.6 158.377 138.506C159.494 136.225 160.611 133.943 161.729 131.662Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M144.786 152.64C144.441 152.43 143.977 152.891 143.844 153.163C142.363 156.187 140.882 159.21 139.402 162.234C139.257 162.528 139.048 163.085 139.42 163.311C139.765 163.521 140.229 163.06 140.362 162.788C141.843 159.764 143.323 156.741 144.804 153.717C144.948 153.423 145.158 152.866 144.786 152.64Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M136.792 156.459C136.447 156.25 135.983 156.711 135.85 156.982C134.993 158.733 134.136 160.483 133.279 162.233C133.134 162.528 132.925 163.085 133.297 163.311C133.642 163.52 134.106 163.06 134.239 162.788C135.096 161.037 135.953 159.287 136.81 157.537C136.955 157.242 137.164 156.685 136.792 156.459Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M129.1 159.663C128.755 159.454 128.291 159.915 128.158 160.186C127.824 160.869 127.49 161.551 127.155 162.234C127.011 162.528 126.802 163.086 127.174 163.311C127.519 163.521 127.983 163.06 128.116 162.788C128.45 162.106 128.784 161.423 129.118 160.741C129.263 160.447 129.472 159.889 129.1 159.663Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M165.835 137.946C165.979 137.652 166.188 137.094 165.816 136.868C165.471 136.659 165.007 137.12 164.874 137.392C161.72 143.832 158.566 150.273 155.412 156.713C154.511 158.553 153.609 160.393 152.708 162.233C152.564 162.528 152.355 163.085 152.726 163.311C153.071 163.52 153.535 163.06 153.669 162.788C156.823 156.347 159.977 149.907 163.131 143.466C164.032 141.626 164.933 139.786 165.835 137.946Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M169.923 143.153C169.578 142.943 169.114 143.404 168.98 143.676C165.951 149.862 162.921 156.048 159.892 162.234C159.748 162.528 159.538 163.086 159.91 163.311C160.255 163.521 160.719 163.06 160.852 162.788C163.882 156.602 166.911 150.416 169.941 144.23C170.085 143.936 170.294 143.378 169.923 143.153Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M174.332 148.821C173.987 148.611 173.523 149.072 173.39 149.344C171.286 153.64 169.182 157.937 167.077 162.234C166.933 162.528 166.724 163.086 167.095 163.311C167.44 163.521 167.905 163.06 168.038 162.788C170.142 158.492 172.246 154.195 174.351 149.898C174.495 149.604 174.704 149.046 174.332 148.821Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M178.197 155.597C177.852 155.387 177.388 155.848 177.255 156.12C176.257 158.158 175.259 160.196 174.261 162.233C174.117 162.528 173.907 163.085 174.279 163.311C174.624 163.52 175.088 163.06 175.221 162.788C176.219 160.75 177.217 158.712 178.215 156.674C178.36 156.38 178.569 155.823 178.197 155.597Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M97.1962 40.2135C97.3477 39.9803 97.4773 39.477 97.1807 39.2971C96.8678 39.1072 96.5194 39.5265 96.3794 39.7419C94.7034 42.3205 93.0556 44.9176 91.4179 47.5205C88.1743 52.6759 84.976 57.8633 81.9271 63.1367C80.4155 65.7509 78.9283 68.3855 77.5879 71.0925C77.4642 71.3423 77.2879 71.8174 77.6034 72.0088C77.8975 72.1874 78.2905 71.7947 78.4047 71.564C80.9657 66.3919 83.9726 61.4308 86.9671 56.5018C89.7369 51.9427 92.5713 47.4226 95.4474 42.9297C96.0279 42.0228 96.6094 41.1164 97.1962 40.2135Z",fill:"var(--pae-shell-color-secondary)"}),l.jsx("path",{d:"M75.3224 76.1247C75.0193 75.9408 74.6477 76.3459 74.521 76.5695C74.1645 77.1991 73.808 77.8286 73.4515 78.4581C73.3144 78.7003 73.1605 79.1884 73.467 79.3744C73.77 79.5583 74.1416 79.1532 74.2684 78.9296C74.6248 78.3001 74.9814 77.6705 75.3378 77.0411C75.475 76.7988 75.6288 76.3107 75.3224 76.1247Z",fill:"var(--pae-shell-color-secondary)"})]});dl.displayName="WarningIcon";const og="support@bluealba.com",ig="@bluealba/pae-shell-ui",fl=E("ErrorState",()=>{const{supportEmail:e=og}=bu(ig),t=`mailto:${e}?Subject=Support`;return l.jsxs("div",{className:Hr.container,children:[l.jsx(dl,{}),l.jsx("div",{className:Hr.title,children:"Oops! Something went wrong"}),l.jsxs("div",{className:Hr.description,children:["If the error persists, ",l.jsx("a",{className:Hr.mailToText,href:t,children:"contact the administrator."})]})]})});fl.displayName="ErrorState";const Le={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"},pl=z(({children:e,className:t,selected:n,disabled:r=!1,...o},i)=>{const s=j(Le.Item,{[Le["Item--selected"]]:n,[Le["Item--disabled"]]:r},t);return l.jsx("li",{ref:i,className:s,role:"listitem","aria-disabled":r,...o,children:e})});pl.displayName="Item";const hl=z(({children:e,className:t,...n},r)=>{const o=j(Le.Title,t);return l.jsx("h3",{ref:r,className:o,...n,children:e})});hl.displayName="Title";const ml=z(({children:e,className:t,...n},r)=>{const o=j(Le.Description,t);return l.jsx("p",{ref:r,className:o,...n,children:e})});ml.displayName="Description";const Si=({className:e,...t})=>l.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:[l.jsx("path",{d:"M6 6.5C6.27614 6.5 6.5 6.27614 6.5 6C6.5 5.72386 6.27614 5.5 6 5.5C5.72386 5.5 5.5 5.72386 5.5 6C5.5 6.27614 5.72386 6.5 6 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M9.5 6.5C9.77614 6.5 10 6.27614 10 6C10 5.72386 9.77614 5.5 9.5 5.5C9.22386 5.5 9 5.72386 9 6C9 6.27614 9.22386 6.5 9.5 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M2.5 6.5C2.77614 6.5 3 6.27614 3 6C3 5.72386 2.77614 5.5 2.5 5.5C2.22386 5.5 2 5.72386 2 6C2 6.27614 2.22386 6.5 2.5 6.5Z",stroke:"#A9A9A9",strokeLinecap:"round",strokeLinejoin:"round"})]});Si.displayName="HorizontalDots";const gl=z(({children:e,className:t,onClick:n,...r},o)=>{const i=io(null),[s,a]=F(!1),c=j(Le.Actions,t),u=()=>{const w=Yt["DropdownList--open"],f=Yt["DropdownList--closed"];document.querySelectorAll(`.${w}`).forEach(_=>{_!==i.current&&(_.classList.remove(w),_.classList.add(f))})},d=w=>{w.stopPropagation(),s?h():(a(!0),n==null||n(w))},h=()=>{a(!1)},p=w=>{w.key==="Escape"&&h()},g=w=>{i.current&&!i.current.contains(w.target)&&h()};return K(()=>(s?(u(),document.addEventListener("keydown",p),document.addEventListener("click",g)):(document.removeEventListener("keydown",p),document.removeEventListener("click",g)),()=>{document.removeEventListener("keydown",p),document.removeEventListener("click",g)}),[s]),l.jsxs("div",{ref:o,className:c,onClick:d,role:"button",tabIndex:0,"data-testid":"actions",...r,children:[l.jsx(Si,{}),l.jsx(zo,{align:"left",ref:i,open:s,"data-testid":"actions-dropdown",role:"menu","aria-label":"Actions",children:e})]})});gl.displayName="Actions";const vl=z(({children:e,className:t,...n},r)=>{const o=j(Le.Action,t);return l.jsx("button",{ref:r,className:o,...n,children:e})});vl.displayName="Action";const yl=z(({children:e,className:t,...n},r)=>{const o=j(Le.Icon,t);return l.jsx("div",{ref:r,className:o,...n,children:e})});yl.displayName="Icon";const Xe=E("List",z(({children:e,className:t,size:n="medium",variant:r,...o},i)=>{const s=j(Le.List,{[Le[`List--${n}`]]:n,[Le[`List--${r}`]]:r},t);return l.jsx("ul",{ref:i,className:s,role:"list",...o,children:e})}));Xe.displayName="List",Xe.Item=pl,Xe.Badges=da,Xe.Badge=ua,Xe.Title=hl,Xe.Description=ml,Xe.Actions=gl,Xe.Action=vl,Xe.Icon=yl;const Je={Navigation:"Navigation__uylxk",PaginationContent:"PaginationContent__UpLw0",PaginationEllipsis:"PaginationEllipsis__perWk",PaginationLink:"PaginationLink__GVUZj",Active:"Active__u1Ahy",Disabled:"Disabled__8WM0y",Prev:"Prev__wp4hc",Next:"Next__eVyL5"},bl=({className:e,...t})=>l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,...t,children:[l.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),l.jsx("path",{d:"M9 6l6 6l-6 6"})]});bl.displayName="ChevronRight";const wl=({className:e,...t})=>l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,...t,children:[l.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),l.jsx("path",{d:"M15 6l-6 6l6 6"})]});wl.displayName="ChevronLeft";const _l=E("Pagination",({className:e,...t})=>l.jsx("nav",{role:"navigation","aria-label":"pagination",className:j(Je.Navigation,e),...t}));_l.displayName="Pagination";const xl=E("PaginationContent",m.forwardRef(({className:e,...t},n)=>l.jsx("ul",{ref:n,className:j(Je.PaginationContent,e),...t})));xl.displayName="PaginationContent";const Wr=E("PaginationItem",m.forwardRef(({className:e,...t},n)=>l.jsx("li",{ref:n,className:e,...t})));Wr.displayName="PaginationItem";const Vr=E("PaginationLink",({className:e,isActive:t,...n})=>l.jsx("a",{"aria-current":t?"page":void 0,className:j(Je.PaginationLink,t&&Je.Active,e),...n}));Vr.displayName="PaginationLink";const Cl=E("PaginationPrevious",({className:e,disabled:t,...n})=>l.jsxs(Vr,{"aria-label":"Go to previous page",className:j(t&&Je.Disabled,Je.Prev,e),...n,children:[l.jsx(wl,{}),l.jsx("span",{children:"Previous"})]}));Cl.displayName="PaginationPrevious";const El=E("PaginationNext",({className:e,disabled:t,...n})=>l.jsxs(Vr,{"aria-label":"Go to next page",className:j(t&&Je.Disabled,Je.Next,e),...n,children:[l.jsx("span",{children:"Next"}),l.jsx(bl,{})]}));El.displayName="PaginationNext";const Sl=E("PaginationEllipsis",({className:e,...t})=>l.jsx("span",{"aria-hidden":!0,className:j(Je.PaginationEllipsis,e),...t,children:l.jsx(Si,{})}));Sl.displayName="PaginationEllipsis";function sg(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 Tl={exports:{}};(function(e,t){(function(n,r){typeof sg=="function"?e.exports=r():n.pluralize=r()})(fu,function(){var n=[],r=[],o={},i={},s={};function a(f){return typeof f=="string"?new RegExp("^"+f+"$","i"):f}function c(f,v){return f===v?v:f===f.toLowerCase()?v.toLowerCase():f===f.toUpperCase()?v.toUpperCase():f[0]===f[0].toUpperCase()?v.charAt(0).toUpperCase()+v.substr(1).toLowerCase():v.toLowerCase()}function u(f,v){return f.replace(/\$(\d{1,2})/g,function(_,x){return v[x]||""})}function d(f,v){return f.replace(v[0],function(_,x){var S=u(v[1],arguments);return c(_===""?f[x-1]:_,S)})}function h(f,v,_){if(!f.length||o.hasOwnProperty(f))return v;for(var x=_.length;x--;){var S=_[x];if(S[0].test(v))return d(v,S)}return v}function p(f,v,_){return function(x){var S=x.toLowerCase();return v.hasOwnProperty(S)?c(x,S):f.hasOwnProperty(S)?c(x,f[S]):h(S,x,_)}}function g(f,v,_,x){return function(S){var C=S.toLowerCase();return v.hasOwnProperty(C)?!0:f.hasOwnProperty(C)?!1:h(C,C,_)===C}}function w(f,v,_){var x=v===1?w.singular(f):w.plural(f);return(_?v+" ":"")+x}return w.plural=p(s,i,n),w.isPlural=g(s,i,n),w.singular=p(i,s,r),w.isSingular=g(i,s,r),w.addPluralRule=function(f,v){n.push([a(f),v])},w.addSingularRule=function(f,v){r.push([a(f),v])},w.addUncountableRule=function(f){if(typeof f=="string"){o[f.toLowerCase()]=!0;return}w.addPluralRule(f,"$0"),w.addSingularRule(f,"$0")},w.addIrregularRule=function(f,v){v=v.toLowerCase(),f=f.toLowerCase(),s[f]=v,i[v]=f},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(f){return w.addIrregularRule(f[0],f[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(f){return w.addPluralRule(f[0],f[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(f){return w.addSingularRule(f[0],f[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(w.addUncountableRule),w})})(Tl);var ag=Tl.exports;const cg=pu(ag),Al=E("PluralizeCounter",({count:e,singularText:t,children:n=(r,o)=>`${r} ${o}`})=>l.jsx(l.Fragment,{children:n(e,cg(t,e))}));Al.displayName="PluralizeCounter";const be={TableContainer:"TableContainer__osh6Z",TableHeader:"TableHeader__sYa-8",Table:"Table__2cIs3",selectable:"selectable__WsGg1",Cell:"Cell__ZEv-K",Right:"Right__YoM1V",Center:"Center__CF3tr",Sortable:"Sortable__JIV1V",SortIcon:"SortIcon__f0bBy",Active:"Active__rJjxB",Rotate:"Rotate__7cwTK",Pagination:"Pagination__sbqMP",PointerNone:"PointerNone__kQdQS"},Pl={EmptyStateContainer:"EmptyStateContainer__Q9FEb",Message:"Message__IHK6M"},Rl=({size:e=64})=>l.jsxs("svg",{width:e,height:e,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsxs("g",{clipPath:"url(#clip-path)",children:[l.jsx("mask",{id:"mask0_1070_8032",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"64",height:"64",children:l.jsx("path",{d:"M64 0H0V64H64V0Z",fill:"white"})}),l.jsx("g",{mask:"url(#mask0_1070_8032)",children:l.jsx("path",{d:"M40 10.6673H13.3333V53.334H50.6667V21.334H40V10.6673ZM8 7.97932C8 6.51798 9.192 5.33398 10.664 5.33398H42.6667L56 18.6673V55.982C56.0024 56.3321 55.936 56.6793 55.8043 57.0039C55.6725 57.3284 55.4781 57.6239 55.2323 57.8732C54.9864 58.1225 54.6936 58.3209 54.3712 58.4572C54.0485 58.5935 53.7021 58.6649 53.352 58.6673H10.648C9.94768 58.6625 9.27739 58.3823 8.78192 57.8873C8.28645 57.3924 8.00557 56.7223 8 56.022V7.97932ZM36.0773 38.5233C33.8408 39.83 31.2056 40.2788 28.6627 39.786C26.1197 39.2929 23.8428 37.8921 22.2566 35.8444C20.6704 33.7966 19.883 31.2417 20.0414 28.6564C20.1998 26.071 21.293 23.6315 23.1173 21.7927C24.9532 19.9571 27.3955 18.8541 29.9864 18.6904C32.5773 18.5267 35.1389 19.3134 37.1912 20.9032C39.2435 22.493 40.6456 24.7767 41.1347 27.3263C41.6237 29.8759 41.1664 32.5164 39.848 34.7527L45.7413 40.646L41.9707 44.4193L36.0773 38.5233ZM34.4293 33.1047C34.9387 32.6126 35.3451 32.0241 35.6245 31.3735C35.904 30.7228 36.0512 30.0231 36.0573 29.3148C36.0635 28.6065 35.9285 27.9044 35.6603 27.2489C35.3923 26.5935 34.9963 25.998 34.4955 25.4972C33.9947 24.9964 33.3992 24.6004 32.7437 24.3323C32.0883 24.0641 31.3861 23.9292 30.6779 23.9353C29.9696 23.9415 29.2699 24.0886 28.6192 24.3681C27.9685 24.6476 27.38 25.0539 26.888 25.5633C25.9165 26.5692 25.3789 27.9164 25.3911 29.3148C25.4032 30.7132 25.9641 32.0508 26.9531 33.0396C27.9419 34.0287 29.2795 34.5895 30.6779 34.6015C32.0763 34.6137 33.4235 34.0761 34.4293 33.1047Z",fill:"currentColor"})})]}),l.jsx("defs",{children:l.jsx("clipPath",{id:"clip-path",children:l.jsx("rect",{width:"64",height:"64",fill:"white"})})})]});Rl.displayName="EmptyStateIcon";const Ol=E("EmptyState",({message:e="No results found"})=>l.jsxs("div",{className:j(Pl.EmptyStateContainer),children:[l.jsx(Rl,{}),l.jsx("p",{className:Pl.Message,children:e})]}));Ol.displayName="EmptyState";const lg=(e,t,n=1)=>{if(e<=1)return["1"];const r=[],o=i=>{(r.length===0||r[r.length-1]!==i)&&r.push(i)};o(1),t-n>2&&o("...");for(let i=Math.max(2,t-n);i<=Math.min(e-1,t+n);i++)o(i);return t+n<e-1&&o("..."),o(e),r.map(String)},kl=({page:e,totalPages:t,onPageChange:n})=>{const r=e===1,o=e===t;return l.jsx(_l,{className:be.Pagination,children:l.jsxs(xl,{children:[l.jsx(Wr,{children:l.jsx(Cl,{className:j({[be.PointerNone]:r}),onClick:()=>!r&&n(e-1)})}),lg(t,e).map((i,s)=>l.jsxs(Wr,{children:[i==="..."&&l.jsx(Sl,{}),i!=="..."&&l.jsx(Vr,{isActive:+i===e,onClick:()=>+i!==e&&n(+i),children:i})]},s)),l.jsx(Wr,{children:l.jsx(El,{className:j({[be.PointerNone]:o}),onClick:()=>!o&&n(e+1)})})]})})};kl.displayName="TablePagination";const jl=({className:e,...t})=>l.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:l.jsx("path",{d:"M6 2.5V9.5M6 9.5L9.5 6M6 9.5L2.5 6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})});jl.displayName="ArrowDown";const ug=E("Table",({columns:e,data:t,isLoading:n,totalCount:r=0,headerLabel:o,sort:i,loadingConfig:s,pagination:a,onRowClick:c})=>{const{count:u=5,height:d=40}=s||{},h=v=>v.sortName??v.name,p=v=>j({[be.Cell]:!0,[be.Center]:v.align==="center",[be.Right]:v.align==="right",[be.Sortable]:v.isSortable}),g=v=>{if(!i)return"";const _=h(v);return j({[be.SortIcon]:!0,[be.Active]:v.isSortable&&i.field===_,[be.Rotate]:i.field===_&&i.direction==="asc"})},w=v=>()=>c==null?void 0:c(v),f=v=>()=>{if(!i||!v.isSortable)return;const{field:_,direction:x,onSort:S}=i,C=h(v);_===C?S(C,x==="asc"?"desc":"asc"):S(C,"asc")};return l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:be.TableContainer,children:[o&&l.jsx("div",{className:be.TableHeader,children:l.jsx(Al,{count:r,singularText:o,children:(v,_)=>`${v} ${_}`})}),l.jsxs("table",{className:be.Table,children:[l.jsx("thead",{children:l.jsx("tr",{children:e.map(v=>l.jsx("th",{children:l.jsxs("div",{className:p(v),onClick:f(v),children:[l.jsx("span",{children:v.displayName}),v.isSortable&&l.jsx(jl,{className:g(v)})]})},v.name))})}),l.jsx("tbody",{children:l.jsxs(Ot,{children:[l.jsx(Ot.When,{condition:n,children:[...Array(u).keys()].map(v=>l.jsx("tr",{children:l.jsx("td",{colSpan:e.length,style:{padding:4},children:l.jsx(Wo,{height:d})})},v))}),l.jsx(Ot.When,{condition:!t.length,children:l.jsx("tr",{children:l.jsx("td",{colSpan:e.length,children:l.jsx(Ol,{})})})}),l.jsx(Ot.Else,{children:t.map((v,_)=>l.jsx("tr",{className:c&&be.selectable,onClick:w(v),children:e.map(x=>l.jsx("td",{style:x.width?{width:x.width}:{},children:l.jsx("div",{className:p(x),children:x.cellRenderer?x.cellRenderer(v):x.valueGetter?x.valueGetter(v):v[x.name]})},`${x.name}-${_}`))},_))})]})})]})]}),a&&l.jsx(kl,{...a})]})});ug.displayName="Table";const Gr={alert:"alert__LblpE",default:"default__mgO6A",destructive:"destructive__bLNSM",alertTitle:"alertTitle__gblKf",alertDescription:"alertDescription__BuVHV"},Ti=E("Alert",({className:e,variant:t="default",children:n,...r})=>l.jsx("div",{"data-slot":"alert",role:"alert",className:j(Gr.alert,Gr[t],e),...r,children:n})),dg=m.forwardRef(({children:e,className:t,...n},r)=>l.jsx("div",{ref:r,"data-slot":"alert-title",className:j(Gr.alertTitle,t),...n,children:e})),fg=m.forwardRef(({children:e,className:t,...n},r)=>l.jsx("div",{ref:r,"data-slot":"alert-description",className:j(Gr.alertDescription,t),...n,children:e}));Ti.displayName="Alert",Ti.Title=dg,Ti.Description=fg;function Dl(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 qr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Dl(Object(n),!0).forEach(function(r){pg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dl(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ll(e){return(Ll=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 pg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ai(e){return(Ai=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 Il(e,t){var n;if(typeof(n=t.domElement?function(){return t.domElement}:t.domElementGetter?t.domElementGetter:e.domElementGetter?e.domElementGetter:function(r){var o=r.appName||r.name;if(!o)throw Error("single-spa's dom-element-getter-helpers was not given an application name as a prop, so it can't make a unique dom element container for the react application");var i="single-spa-application:".concat(o);return function(){var s=document.getElementById(i);return s||((s=document.createElement("div")).id=i,document.body.appendChild(s)),s}}(t))!="function")throw Error("single-spa's dom-element-getter-helpers was given an invalid domElementGetter for application or parcel '".concat(t.name,"'. Expected a function, received ").concat(Ai(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(Ai(r)));return r}}var $n=null;try{$n=require("react").createContext()}catch{}var hg={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 mg(e){if(Ll(e)!=="object")throw new Error("single-spa-react requires a configuration object");var t,n=qr(qr({},hg),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 i(s){i.displayName="SingleSpaRoot(".concat(s.name,")")}return i.prototype=Object.create(o.React.Component.prototype),i.prototype.componentDidMount=function(){setTimeout(this.props.mountFinished)},i.prototype.componentWillUnmount=function(){setTimeout(this.props.unmountFinished)},i.prototype.render=function(){return setTimeout(this.props.updateFinished),this.props.children},i}(n);var r={bootstrap:gg.bind(null,n),mount:vg.bind(null,n),unmount:yg.bind(null,n)};return n.parcelCanUpdate&&(r.update=bg.bind(null,n)),r}function gg(e,t){return e.rootComponent?Promise.resolve():e.loadRootComponent(t).then(function(n){e.rootComponent=n})}function vg(e,t){return new Promise(function(n,r){e.suppressComponentDidCatchWarning||!function(a){if(!(a&&typeof a.version=="string"&&a.version.indexOf(".")>=0))return!1;var c=a.version.slice(0,a.version.indexOf("."));try{return Number(c)>=16}catch{return!1}}(e.React)||e.errorBoundary||e.errorBoundaryClass||(e.rootComponent.prototype?e.rootComponent.prototype.componentDidCatch||console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent should implement componentDidCatch to avoid accidentally unmounting the entire single-spa application.")):console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent does not implement an error boundary. If using a functional component, consider providing an opts.errorBoundary to singleSpaReact(opts).")));var o=Nl(e,t,function(){n(this)}),i=Il(e,t)(),s=function(a){var c=a.reactDom,u=a.renderType,d=a.elementToRender,h=a.domElement,p=c[u];if(typeof p!="function")throw new Error('renderType "'.concat(u,'" did not return a function.'));switch(u){case"createRoot":case"unstable_createRoot":case"createBlockingRoot":case"unstable_createBlockingRoot":var g=p(h);return g.render(d),g;case"hydrateRoot":return p(h,d);case"hydrate":default:return p(d,h),null}}({elementToRender:o,domElement:i,reactDom:Pi(e),renderType:wg(e)});e.domElements[t.name]=i,e.renderResults[t.name]=s})}function yg(e,t){return new Promise(function(n){e.unmountResolves[t.name]=n;var r=e.renderResults[t.name];r&&r.unmount?r.unmount():Pi(e).unmountComponentAtNode(e.domElements[t.name]),delete e.domElements[t.name],delete e.renderResults[t.name]})}function bg(e,t){return new Promise(function(n){e.updateResolves[t.name]||(e.updateResolves[t.name]=[]),e.updateResolves[t.name].push(n);var r=Nl(e,t,null),o=e.renderResults[t.name];if(o&&o.render)o.render(r);else{var i=Il(e,t)();Pi(e).render(r,i)}})}function Pi(e){return e.ReactDOMClient||e.ReactDOM}function wg(e){return typeof e.renderType=="function"?e.renderType():e.renderType}function Nl(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(i,s){function a(c){i.React.Component.apply(this,arguments),this.state={caughtError:null,caughtErrorInfo:null},a.displayName="SingleSpaReactErrorBoundary(".concat(c.name,")")}return a.prototype=Object.create(i.React.Component.prototype),a.prototype.render=function(){return this.state.caughtError?(i.errorBoundary||s.errorBoundary)(this.state.caughtError,this.state.caughtErrorInfo,this.props):this.props.children},a.prototype.componentDidCatch=function(c,u){this.setState({caughtError:c,caughtErrorInfo:u})},a}(e,t),o=e.React.createElement(e.errorBoundaryClass,t,o)),o=e.React.createElement(e.SingleSpaRoot,qr(qr({},t),{},{mountFinished:n,updateFinished:function(){e.updateResolves[t.name]&&(e.updateResolves[t.name].forEach(function(i){return i()}),delete e.updateResolves[t.name])},unmountFinished:function(){e.unmountResolves[t.name]&&(e.unmountResolves[t.name](),delete e.unmountResolves[t.name])}}),o)}const _g=e=>{const t=new bf;return function(r){if(!r)throw new Error("Microfrontend did not receive any properties !!");const o=rs(r.module.name);return l.jsx(ts,{module:o,children:l.jsxs(Ef,{client:t,children:[l.jsx(e,{...r}),l.jsx(nf,{position:"top-right",reverseOrder:!0})]})})}},J0=E("initializeMicroFrontend",({rootComponent:e,...t})=>mg({errorBoundary(n){return console.error(n),l.jsx(fl,{})},...t,rootComponent:_g(e)})),eb=E("setupTestEnvironment",e=>{const t={authUser:{id:"testuser",username:"testuser",displayName:"Test User",applications:[]},catalog:[],authentication:{passwordMethodEnabled:!0,registerEnabled:!0,invitationsEnabled:!0,resetPasswordExpiration:3e4,passwordConstraints:{lowerCaseRequired:!1,upperCaseRequired:!1,symbolRequired:!1,digitRequired:!1,minLength:0,maxLength:8},sessionExpiration:864e5,jwtSecret:"",sessionIncludeOrigUser:!1,impersonationMode:"cookie",canImpersonateNonExistentUsers:!1,providers:[]},platformVersion:"0.0.0"};Object.defineProperty(window,Tn,{value:e?Iu(t,e):t})})}}});
|