@interopio/home-ui-react 1.4.2 → 2.0.0
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 +21 -0
- package/{README.md → dist/README.md} +56 -56
- package/dist/common/sequelizer.d.ts +7 -0
- package/dist/common/types.d.ts +27 -0
- package/dist/common/utils.d.ts +2 -0
- package/dist/constants/alerts.d.ts +8 -0
- package/{constants → dist/constants}/defaults.d.ts +0 -1
- package/dist/constants/dialogs.d.ts +5 -0
- package/{constants → dist/constants}/itemTypes.d.ts +1 -0
- package/dist/constants/platformPrefs.d.ts +15 -0
- package/dist/constants/regex.d.ts +1 -0
- package/dist/constants/sections.d.ts +5 -0
- package/{constants → dist/constants}/storageKeys.d.ts +1 -2
- package/{decoders → dist/decoders}/base.d.ts +2 -1
- package/dist/decoders/config.d.ts +3 -0
- package/dist/decoders/layouts.d.ts +3 -0
- package/{decoders → dist/decoders}/platform.d.ts +3 -3
- package/dist/decoders/user.d.ts +3 -0
- package/dist/decoders/validation.d.ts +3 -0
- package/{executors → dist/executors}/applicationActions.d.ts +1 -1
- package/{executors → dist/executors}/layoutActions.d.ts +1 -1
- package/dist/executors/setupStepsActions.d.ts +3 -0
- package/dist/executors/types.d.ts +33 -0
- package/{executors → dist/executors}/workspaceActions.d.ts +1 -1
- package/{helpers → dist/helpers}/a11y.d.ts +0 -16
- package/dist/helpers/alerts.d.ts +9 -0
- package/{helpers → dist/helpers}/sort.d.ts +4 -4
- package/dist/hooks/index.d.ts +28 -0
- package/dist/hooks/useApplications.d.ts +2 -0
- package/{hooks → dist/hooks}/useExecuteApplicationAction.d.ts +1 -1
- package/dist/hooks/useExecuteLayoutAction.d.ts +5 -0
- package/{hooks → dist/hooks}/useExecuteWorkspaceAction.d.ts +1 -1
- package/dist/hooks/useFavorites.d.ts +8 -0
- package/dist/hooks/useFrameId.d.ts +1 -0
- package/{hooks → dist/hooks}/useInvokeInteropMethod.d.ts +1 -1
- package/dist/hooks/useIsLaunchpadPinned.d.ts +8 -0
- package/dist/hooks/useIsRunningInDesktopContainer.d.ts +1 -0
- package/dist/hooks/useLayouts.d.ts +5 -0
- package/{hooks → dist/hooks}/useNotifications.d.ts +1 -1
- package/dist/hooks/useNotificationsConfiguration.d.ts +3 -0
- package/dist/hooks/useOnIframeFocus.d.ts +6 -0
- package/dist/hooks/useOnOutsideClick.d.ts +9 -0
- package/{hooks → dist/hooks}/usePlatformWindow.d.ts +1 -1
- package/{hooks → dist/hooks}/useRestoreLayout.d.ts +1 -1
- package/{hooks → dist/hooks}/useRestoreWorkspace.d.ts +1 -2
- package/{hooks → dist/hooks}/useSearch.d.ts +1 -1
- package/dist/hooks/useStartApplication.d.ts +7 -0
- package/{hooks → dist/hooks}/useStorage.d.ts +2 -2
- package/dist/hooks/useUA.d.ts +2 -0
- package/dist/hooks/useWorkspaces.d.ts +2 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +61 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +14513 -0
- package/dist/index.mjs.map +1 -0
- package/{lib → dist/lib}/applications-section/applications-section.d.ts +1 -1
- package/dist/lib/applications-section/helpers.d.ts +5 -0
- package/dist/lib/applications-section/types.d.ts +9 -0
- package/{lib → dist/lib}/base-section/base-section-header.d.ts +2 -4
- package/dist/lib/base-section/base-section-item.d.ts +14 -0
- package/{lib → dist/lib}/base-section/base-section.d.ts +3 -3
- package/{lib → dist/lib}/base-section/helpers.d.ts +1 -1
- package/dist/lib/base-section/types.d.ts +20 -0
- package/dist/lib/base-section/useCollapsedSections.d.ts +4 -0
- package/dist/lib/context-menu/constants.d.ts +11 -0
- package/dist/lib/context-menu/context-menu.d.ts +11 -0
- package/dist/lib/context-menu/dropdown-button/dropdown-button.d.ts +20 -0
- package/{lib → dist/lib}/context-menu/types.d.ts +5 -1
- package/dist/lib/default-header-system-buttons/constants.d.ts +2 -0
- package/dist/lib/default-header-system-buttons/default-header-system-buttons.d.ts +2 -0
- package/dist/lib/default-header-system-buttons/default-header-system-menu.d.ts +2 -0
- package/{lib → dist/lib}/favorites-section/favorites-section.d.ts +1 -1
- package/dist/lib/favorites-section/helpers.d.ts +3 -0
- package/dist/lib/home-app-workspace/after-tabs.d.ts +3 -0
- package/dist/lib/home-app-workspace/constants.d.ts +2 -0
- package/{lib → dist/lib}/home-app-workspace/group-header-buttons.d.ts +1 -1
- package/dist/lib/home-app-workspace/home-app-workspace.d.ts +13 -0
- package/dist/lib/home-app-workspace/index.d.ts +1 -0
- package/dist/lib/home-app-workspace/launchpad-access.d.ts +7 -0
- package/{lib → dist/lib}/home-app-workspace/workspace-components-context.d.ts +3 -4
- package/dist/lib/icon-components/index.d.ts +4 -0
- package/dist/lib/icon-components/platform-setup/index.d.ts +4 -0
- package/{lib → dist/lib}/io-connect-home/auth0-login-home.d.ts +1 -1
- package/{lib → dist/lib}/io-connect-home/home-app.d.ts +1 -1
- package/{lib → dist/lib}/io-connect-home/io-connect-home.d.ts +1 -1
- package/{lib → dist/lib}/io-connect-home/no-login-home.d.ts +1 -1
- package/{lib → dist/lib}/io-connect-home/simple-login-home.d.ts +1 -1
- package/{lib → dist/lib}/io-connect-home/types.d.ts +54 -18
- package/{lib → dist/lib}/io-connect-home/useUser.d.ts +1 -1
- package/{lib → dist/lib}/io-connect-home-provider/helpers.d.ts +1 -1
- package/{lib → dist/lib}/io-connect-home-provider/io-connect-home-provider.d.ts +1 -1
- package/{lib → dist/lib}/io-connect-home-provider/types.d.ts +2 -2
- package/{lib/io-connect-browser-start-failed/io-connect-browser-start-failed.d.ts → dist/lib/io-init-error-screen/io-init-error-screen.d.ts} +1 -1
- package/dist/lib/launchpad/constants.d.ts +2 -0
- package/dist/lib/launchpad/helpers.d.ts +4 -0
- package/dist/lib/launchpad/launchpad-header.d.ts +7 -0
- package/dist/lib/launchpad/launchpad-pin-button.d.ts +5 -0
- package/dist/lib/launchpad/launchpad.context.d.ts +19 -0
- package/dist/lib/launchpad/launchpad.d.ts +11 -0
- package/dist/lib/launchpad/useIsLaunchpadCollapsed.d.ts +9 -0
- package/dist/lib/layouts-panel/active-layout.d.ts +2 -0
- package/dist/lib/layouts-panel/all-layouts.d.ts +2 -0
- package/dist/lib/layouts-panel/constants.d.ts +8 -0
- package/dist/lib/layouts-panel/create-layout-button.d.ts +2 -0
- package/dist/lib/layouts-panel/helpers.d.ts +3 -0
- package/dist/lib/layouts-panel/layouts-dropdown.d.ts +6 -0
- package/dist/lib/layouts-panel/layouts-list.d.ts +6 -0
- package/dist/lib/layouts-panel/save-layout-button.d.ts +5 -0
- package/dist/lib/layouts-panel/types.d.ts +8 -0
- package/dist/lib/layouts-panel/useIsLayoutsPanelOpen.d.ts +9 -0
- package/{lib → dist/lib}/login/auth0/auth0-login-page.d.ts +1 -2
- package/dist/lib/login/index.d.ts +3 -0
- package/dist/lib/login/login-heading.d.ts +1 -0
- package/{lib → dist/lib}/login/simple/reducers.d.ts +1 -1
- package/{lib → dist/lib}/login/simple/simple-login-form.d.ts +2 -2
- package/{lib → dist/lib}/login/simple/simple-login-page.d.ts +1 -1
- package/{lib → dist/lib}/login/types.d.ts +1 -5
- package/dist/lib/notifications-icon/notifications-badge.d.ts +2 -0
- package/{lib/notifications-panel → dist/lib/notifications-icon}/notifications-icon.d.ts +1 -1
- package/dist/lib/notifications-panels/notification-settings-panel.d.ts +9 -0
- package/dist/lib/notifications-panels/notifications-panel.d.ts +10 -0
- package/dist/lib/panels/launchpad/launchpad-button.d.ts +6 -0
- package/dist/lib/panels/launchpad/launchpad-panel.d.ts +2 -0
- package/dist/lib/panels/panel-with-toggle-button.d.ts +12 -0
- package/dist/lib/panels/panel-wrapper.d.ts +11 -0
- package/dist/lib/panels/types.d.ts +9 -0
- package/{lib → dist/lib}/platform-setup/constants.d.ts +1 -1
- package/{lib → dist/lib}/platform-setup/reducers.d.ts +2 -2
- package/{lib → dist/lib}/platform-setup/setup-steps-list.d.ts +1 -1
- package/{lib → dist/lib}/platform-setup/types.d.ts +4 -4
- package/dist/lib/profile-panel/profile-panel.d.ts +9 -0
- package/{lib → dist/lib}/search/search-bar/search-bar.d.ts +1 -0
- package/dist/lib/search/search-results-section/search-results-section.d.ts +5 -0
- package/{lib → dist/lib}/search/search-results-section/types.d.ts +3 -3
- package/dist/lib/search/search-results-section/useExecuteLayoutSearchResultAction.d.ts +2 -0
- package/dist/lib/search/search-results-section/useGenerateLayoutFromId.d.ts +2 -0
- package/dist/lib/search/search-results-section/useGetActionExecutor.d.ts +1 -0
- package/dist/lib/search/search-results-section/useSearchResultsSectionConfigs.d.ts +3 -0
- package/{lib → dist/lib}/section/helpers.d.ts +2 -2
- package/{lib → dist/lib}/section/section.d.ts +1 -1
- package/{lib → dist/lib}/section/types.d.ts +1 -1
- package/dist/lib/spinner/index.d.ts +1 -0
- package/dist/lib/system-menu/helpers.d.ts +3 -0
- package/dist/lib/system-menu/system-menu.d.ts +6 -0
- package/dist/lib/system-menu/types.d.ts +9 -0
- package/dist/lib/workspaces-section/constants.d.ts +3 -0
- package/{lib → dist/lib}/workspaces-section/helpers.d.ts +3 -3
- package/{lib → dist/lib}/workspaces-section/workspaces-section.d.ts +1 -1
- package/package.json +59 -41
- package/assets/fonts/nunito-regular-webfont.woff +0 -0
- package/assets/fonts/nunito-regular-webfont.woff2 +0 -0
- package/assets/fonts/nunito-semibold-webfont.woff +0 -0
- package/assets/fonts/nunito-semibold-webfont.woff2 +0 -0
- package/assets/io-connect-browser-logo.json +0 -5
- package/common/types.d.ts +0 -10
- package/decoders/config.d.ts +0 -3
- package/decoders/context-menu.d.ts +0 -3
- package/decoders/favorites.d.ts +0 -3
- package/decoders/layouts.d.ts +0 -3
- package/decoders/user.d.ts +0 -3
- package/decoders/validation.d.ts +0 -3
- package/executors/notificationsSort.d.ts +0 -7
- package/executors/setupStepsActions.d.ts +0 -3
- package/executors/types.d.ts +0 -26
- package/helpers/date.d.ts +0 -1
- package/helpers/string.d.ts +0 -1
- package/hooks/index.d.ts +0 -24
- package/hooks/useApplications.d.ts +0 -2
- package/hooks/useExecuteLayoutAction.d.ts +0 -2
- package/hooks/useFavoriteEntities.d.ts +0 -7
- package/hooks/useFrame.d.ts +0 -2
- package/hooks/useIsBrowserSupported.d.ts +0 -1
- package/hooks/useLayouts.d.ts +0 -2
- package/hooks/useNotificationsSort.d.ts +0 -5
- package/hooks/useStartApplication.d.ts +0 -4
- package/hooks/useUA.d.ts +0 -2
- package/hooks/useWorkspaces.d.ts +0 -2
- package/index.css +0 -1
- package/index.d.ts +0 -37
- package/index.js +0 -54
- package/index.js.map +0 -1
- package/index.mjs +0 -8638
- package/index.mjs.map +0 -1
- package/lib/applications-section/helpers.d.ts +0 -6
- package/lib/applications-section/types.d.ts +0 -4
- package/lib/base-section/base-section-item.d.ts +0 -13
- package/lib/base-section/types.d.ts +0 -29
- package/lib/browser-not-supported/additional-information.d.ts +0 -5
- package/lib/browser-not-supported/browser-not-supported.d.ts +0 -11
- package/lib/browser-not-supported/constants.d.ts +0 -6
- package/lib/button/button.d.ts +0 -7
- package/lib/button-group/button-group.d.ts +0 -8
- package/lib/context-menu/constants.d.ts +0 -3
- package/lib/context-menu/context-menu.d.ts +0 -10
- package/lib/context-menu/dropdown-button/dropdown-button.d.ts +0 -11
- package/lib/dialog/dialog.d.ts +0 -8
- package/lib/favorites-section/helpers.d.ts +0 -3
- package/lib/home-app-workspace/after-tabs.d.ts +0 -3
- package/lib/home-app-workspace/home-app-workspace.d.ts +0 -14
- package/lib/home-app-workspace/index.d.ts +0 -2
- package/lib/home-app-workspace/launchpad-access.d.ts +0 -6
- package/lib/home-app-workspace/workspace-logo.d.ts +0 -10
- package/lib/icon/icon.d.ts +0 -9
- package/lib/icon-components/google-chrome-icon.d.ts +0 -2
- package/lib/icon-components/index.d.ts +0 -7
- package/lib/icon-components/microsoft-edge-icon.d.ts +0 -2
- package/lib/icon-components/opera-icon.d.ts +0 -2
- package/lib/icon-components/platform-setup/index.d.ts +0 -4
- package/lib/img-icon/img-icon.d.ts +0 -8
- package/lib/launchpad/default-sections.d.ts +0 -2
- package/lib/launchpad/helpers.d.ts +0 -3
- package/lib/launchpad/launchpad.context.d.ts +0 -19
- package/lib/launchpad/launchpad.d.ts +0 -12
- package/lib/launchpad/types.d.ts +0 -16
- package/lib/layouts-panel/available-layouts.d.ts +0 -6
- package/lib/layouts-panel/constants.d.ts +0 -6
- package/lib/layouts-panel/helpers.d.ts +0 -4
- package/lib/layouts-panel/layout-actions.d.ts +0 -9
- package/lib/layouts-panel/layouts-notification.d.ts +0 -6
- package/lib/layouts-panel/types.d.ts +0 -20
- package/lib/login/index.d.ts +0 -4
- package/lib/login/login-heading.d.ts +0 -5
- package/lib/login/login-loader.d.ts +0 -5
- package/lib/logo/logo.d.ts +0 -2
- package/lib/notifications-panel/constants.d.ts +0 -9
- package/lib/notifications-panel/index.d.ts +0 -4
- package/lib/notifications-panel/notification.d.ts +0 -6
- package/lib/notifications-panel/notifications-badge.d.ts +0 -5
- package/lib/notifications-panel/notifications-panel.d.ts +0 -2
- package/lib/notifications-panel/types.d.ts +0 -7
- package/lib/panels/launchpad-slide-panel.d.ts +0 -10
- package/lib/panels/slide-panel.d.ts +0 -9
- package/lib/search/search-results-section/helpers.d.ts +0 -3
- package/lib/search/search-results-section/search-results-section.d.ts +0 -5
- package/lib/spinner/index.d.ts +0 -1
- package/lib/user-panel/settings-card.d.ts +0 -2
- package/lib/user-panel/support-card.d.ts +0 -11
- package/lib/user-panel/user-details-card.d.ts +0 -6
- package/lib/user-panel/user-panel-icon.d.ts +0 -6
- package/lib/user-panel/user-panel.d.ts +0 -7
- /package/{constants → dist/constants}/auth0LoginTypes.d.ts +0 -0
- /package/{constants → dist/constants}/modifierKeys.d.ts +0 -0
- /package/{constants → dist/constants}/sortOrder.d.ts +0 -0
- /package/{hooks → dist/hooks}/useApplicationsInstances.d.ts +0 -0
- /package/{hooks → dist/hooks}/useBeforeunload.d.ts +0 -0
- /package/{hooks → dist/hooks}/useExecuteLayoutOperationIfNotBlocked.d.ts +0 -0
- /package/{hooks → dist/hooks}/useIsHomeLoaded.d.ts +0 -0
- /package/{hooks → dist/hooks}/usePressedKeys.d.ts +0 -0
- /package/{hooks → dist/hooks}/useWorkspacesInstances.d.ts +0 -0
- /package/{lib → dist/lib}/home-app-workspace/no-logo.d.ts +0 -0
- /package/{lib → dist/lib}/home-app-workspace/types.d.ts +0 -0
- /package/{lib → dist/lib}/home-app-workspace/useAddWindowButtonVisible.d.ts +0 -0
- /package/{lib → dist/lib}/icon-components/platform-setup/browser-notifications-icon.d.ts +0 -0
- /package/{lib → dist/lib}/icon-components/platform-setup/popups-icon.d.ts +0 -0
- /package/{lib → dist/lib}/icon-components/platform-setup/pwa-install-icon.d.ts +0 -0
- /package/{lib → dist/lib}/icon-components/platform-setup/window-management-icon.d.ts +0 -0
- /package/{lib → dist/lib}/icon-components/reopen-prompt-icon.d.ts +0 -0
- /package/{lib → dist/lib}/icon-components/start-failed-icon.d.ts +0 -0
- /package/{lib → dist/lib}/icon-components/warning-icon.d.ts +0 -0
- /package/{lib → dist/lib}/info-card/info-card.d.ts +0 -0
- /package/{lib → dist/lib}/info-page-container/info-page-container.d.ts +0 -0
- /package/{lib → dist/lib}/io-connect-home-provider/constants.d.ts +0 -0
- /package/{lib → dist/lib}/layouts-panel/layouts-panel.d.ts +0 -0
- /package/{lib → dist/lib}/login/constants.d.ts +0 -0
- /package/{lib → dist/lib}/login/login-logo.d.ts +0 -0
- /package/{lib → dist/lib}/login/login-page-container.d.ts +0 -0
- /package/{lib → dist/lib}/platform-setup/platform-setup.d.ts +0 -0
- /package/{lib → dist/lib}/platform-setup/setup-steps.d.ts +0 -0
- /package/{lib → dist/lib}/platform-setup/use-edge-notifications-permission.d.ts +0 -0
- /package/{lib → dist/lib}/section/section.context.d.ts +0 -0
- /package/{lib → dist/lib}/spinner/spinner.d.ts +0 -0
- /package/{lib → dist/lib}/system-loader/system-loader.d.ts +0 -0
- /package/{lib → dist/lib}/workspaces-section/types.d.ts +0 -0
package/index.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),b=require("react"),ee=require("@interopio/react-hooks"),bt=require("@interopio/workspaces-ui-react"),_t=require("react-dom");function Mo(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const Ke=Mo(b),rs=Mo(_t);const Lt=t=>"items"in t,Fe={APPLICATION:"application",WORKSPACE:"workspace",LAYOUT:"layout"},Do=[{name:"openInNewWindow",displayName:"Open in New Window"},{name:"openInNewWorkspace",displayName:"Open in New Workspace"}],Wo=[{name:"openInNewFrame",displayName:"Open in New Frame"},{name:"delete",displayName:"Delete"}],Dt={ASCENDING:"ascending",DESCENDING:"descending",DISABLED:"disabled"},pn=new Intl.Collator(void 0,{sensitivity:"base"}),Ho=(t,e)=>pn.compare(t.title,e.title),Uo=(t,e)=>pn.compare(e.title,t.title),ur=t=>{const{items:e,sortOrder:n,ascendingCompare:r,descendingCompare:o}=t;if(n===Dt.DISABLED)return e;const i=n===Dt.ASCENDING?r:o;return[...e].sort(i)},Hn=(t,e,n,r)=>{const{isFolderCollapsible:o,...i}=r,c="/",[a,...l]=n.split(c),u=t.findIndex(p=>Lt(p)&&p.title===a),d=u!==-1?t[u]:null;return d?[...t.slice(0,u),{...d,items:l.length>0?Hn(d.items,e,l.join(c),r):[...d.items,e]},...t.slice(u+1)]:[...t,{id:a,title:a,items:l.length>0?Hn([],e,l.join(c),r):[e],isCollapsible:o,...i}]},Fo=t=>t.title||t.name,on=t=>{const e=Fo(t),n=t.userProperties.folder;return n?`${n}/${e}`:e},os=(t,e)=>pn.compare(on(t),on(e)),is=(t,e)=>pn.compare(on(e),on(t)),ss=(t,e,n)=>{const{isSectionCollapsible:r,sortOrder:o=Dt.ASCENDING,...i}=n;return{id:"applications-section",title:"All Applications",items:ur({items:t,sortOrder:o,ascendingCompare:os,descendingCompare:is}).reduce((l,u)=>{const d={id:u.name,title:Fo(u),description:u.caption,type:Fe.APPLICATION,iconSrc:u.icon,isOpen:e[u.name]?.length>0,contextMenuActions:Do},p=u.userProperties.folder;return p?Hn(l,d,p,n):[...l,d]},[]),isCollapsible:r,...i}};var as=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Un={},cs={get exports(){return Un},set exports(t){Un=t}};/*!
|
|
2
|
-
Copyright (c) 2018 Jed Watson.
|
|
3
|
-
Licensed under the MIT License (MIT), see
|
|
4
|
-
http://jedwatson.github.io/classnames
|
|
5
|
-
*/(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var i=arguments[o];if(i){var c=typeof i;if(c==="string"||c==="number")r.push(i);else if(Array.isArray(i)){if(i.length){var a=n.apply(null,i);a&&r.push(a)}}else if(c==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){r.push(i.toString());continue}for(var l in i)e.call(i,l)&&i[l]&&r.push(l)}}}return r.join(" ")}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(cs);const G=Un;const Vo=t=>t.key==="Enter"||t.key===" ",yt=(t,e)=>typeof t>"u"?{}:{tabIndex:0,onClick:t,onKeyDown:n=>{Vo(n)&&(n.preventDefault(),t?.(n)),e?.(n)}},zo=({event:t,currentIndex:e,moveFocus:n,min:r,max:o,onClose:i})=>{switch(t.key){case"ArrowUp":{n(Math.max(e-1,r));break}case"ArrowDown":{n(Math.min(e+1,o));break}case"Home":{n(r);break}case"End":{n(o);break}case"Escape":{if(i){i();break}return}default:return}t.stopPropagation(),t.preventDefault()},oe=b.forwardRef((t,e)=>{const{name:n,size:r=16,className:o,handleClick:i,...c}=t;return s.jsx("span",{...yt(i),className:G(o,"icon",{[`icon-box-${r}`]:r}),ref:e,...c,children:s.jsx("i",{className:G({[`icon-${n}`]:n})})})});function dr(t){const{size:e=16,alt:n="Image icon",className:r,...o}=t;return s.jsx("img",{alt:n,className:G(r,"icon",{[`icon-box-${e}`]:e}),...o})}const Zo=t=>{const{className:e,iconSrc:n,iconName:r="folder",title:o,isOpen:i,showCollapseIcon:c,showHoverIndicator:a=!1,...l}=t;return s.jsxs("h4",{className:G(e,"io-list-header"),"data-testid":"base-section-header",...l,children:[a&&s.jsx(oe,{size:8,name:""}),n?s.jsx(dr,{className:"section-img-icon",src:n,alt:`${o} icon`,size:14,"data-testid":"img-icon"}):s.jsx(oe,{className:"section-icon",name:r,"data-testid":"icon"}),o,c&&s.jsx(oe,{className:G("collapse-icon",!i&&"collapsed"),name:"chevron-down",size:14,"data-testid":"collapse-icon"})]})},ls=()=>{const[t,e]=b.useState([]),n=b.useContext(ee.IOConnectContext);return b.useEffect(()=>{if(!n)return;const r=n.appManager.onAppAdded(a=>{a.userProperties.hidden||e(l=>[...l,a])}),o=n.appManager.onAppChanged(a=>{e(l=>[...l.filter(u=>u.name!==a.name),a])}),i=n.appManager.onAppRemoved(a=>{e(l=>l.filter(u=>u.name!==a.name))}),c=[r,i,o];return()=>c.forEach(a=>a())},[n]),t},us=()=>{const[t,e]=b.useState({}),n=b.useContext(ee.IOConnectContext);return b.useEffect(()=>{if(!n)return;const r=n.appManager.onInstanceStarted(c=>{e(a=>{const l=a[c.application.name]??[];return{...a,[c.application.name]:[...l,c.id]}})}),o=n.appManager.onInstanceStopped(c=>{e(a=>({...a,[c.application.name]:a[c.application.name].filter(l=>l!==c.id)}))}),i=[r,o];return()=>i.forEach(c=>c())},[n]),t},ds=t=>{b.useEffect(()=>{if(!window.iobrowser?.platformStarted||t)return;const e=n=>{n.preventDefault(),n.returnValue=!0};return window.addEventListener("beforeunload",e),()=>window.removeEventListener("beforeunload",e)},[t])},Bo="interopio_home_ui_selected_layout",fs="interopio_home_ui_auth0_validation_error",ps="interopio_home_ui_favorite_entities",hs="interopio_home_ui_user",ms="interopio_home_ui_platform_window",Vt="interopio_home_ui_platform_setup",Ie=(t,e,n)=>{const[r,o]=b.useState(()=>{try{const a=window[t].getItem(e);return a?JSON.parse(a):null}catch(a){return console.log(a),null}}),i=`${t}-${e}`;b.useEffect(()=>{const a=l=>{o(l.detail)};return window.addEventListener(i,a),()=>{window.removeEventListener(i,a)}},[i]);const c=b.useCallback(a=>{try{if(!a){window[t].removeItem(e),o(null);return}const l=n.run(a);if(!l.ok){console.warn(`Error validating the value to be stored: ${l.error.message}`);return}const u=l.result;o(u),window[t].setItem(e,JSON.stringify(u)),window.dispatchEvent(new CustomEvent(i,{detail:u}))}catch(l){console.log(l)}},[e,t,i,n]);return[r,c]};var fe=function(t){return{ok:!0,result:t}},ue=function(t){return{ok:!1,error:t}},vs=function(t){return t.ok===!0?Promise.resolve(t.result):Promise.reject(t.error)},gs=function(t,e){return e.ok===!0?e.result:t},bs=function(t){if(t.ok===!0)return t.result;throw t.error},ys=function(t,e){return e.ok===!0?fe(t(e.result)):e},Vr=function(t,e,n){return e.ok===!1?e:n.ok===!1?n:fe(t(e.result,n.result))},jn=function(t,e){return e.ok===!0?e:ue(t(e.error))},ws=function(t,e){return e.ok===!0?t(e.result):e};/*! *****************************************************************************
|
|
6
|
-
Copyright (c) Microsoft Corporation.
|
|
7
|
-
|
|
8
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
9
|
-
purpose with or without fee is hereby granted.
|
|
10
|
-
|
|
11
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
12
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
13
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
14
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
15
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
16
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
17
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
18
|
-
***************************************************************************** */var Fn=function(){return Fn=Object.assign||function(e){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)&&(e[i]=n[i])}return e},Fn.apply(this,arguments)};function xs(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n}function Vn(t,e){if(t===e||t===null&&e===null)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="object"){if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!Vn(t[n],e[n]))return!1;return!0}var r=Object.keys(t);if(r.length!==Object.keys(e).length)return!1;for(var n=0;n<r.length;n++)if(!e.hasOwnProperty(r[n])||!Vn(t[r[n]],e[r[n]]))return!1;return!0}}var Nt=function(t){return Array.isArray(t)},qt=function(t){return typeof t=="object"&&t!==null&&!Nt(t)},Cs=function(t){switch(typeof t){case"string":return"a string";case"number":return"a number";case"boolean":return"a boolean";case"undefined":return"undefined";case"object":return t instanceof Array?"an array":t===null?"null":"an object";default:return JSON.stringify(t)}},He=function(t,e){return"expected "+t+", got "+Cs(e)},kt=function(t){return t.map(function(e){return typeof e=="string"?"."+e:"["+e+"]"}).join("")},Tt=function(t,e){var n=e.at,r=xs(e,["at"]);return Fn({at:t+(n||"")},r)},de=function(){function t(e){var n=this;this.decode=e,this.run=function(r){return jn(function(o){return{kind:"DecoderError",input:r,at:"input"+(o.at||""),message:o.message||""}},n.decode(r))},this.runPromise=function(r){return vs(n.run(r))},this.runWithException=function(r){return bs(n.run(r))},this.map=function(r){return new t(function(o){return ys(r,n.decode(o))})},this.andThen=function(r){return new t(function(o){return ws(function(i){return r(i).decode(o)},n.decode(o))})},this.where=function(r,o){return n.andThen(function(i){return r(i)?t.succeed(i):t.fail(o)})}}return t.string=function(){return new t(function(e){return typeof e=="string"?fe(e):ue({message:He("a string",e)})})},t.number=function(){return new t(function(e){return typeof e=="number"?fe(e):ue({message:He("a number",e)})})},t.boolean=function(){return new t(function(e){return typeof e=="boolean"?fe(e):ue({message:He("a boolean",e)})})},t.constant=function(e){return new t(function(n){return Vn(n,e)?fe(e):ue({message:"expected "+JSON.stringify(e)+", got "+JSON.stringify(n)})})},t.object=function(e){return new t(function(n){if(qt(n)&&e){var r={};for(var o in e)if(e.hasOwnProperty(o)){var i=e[o].decode(n[o]);if(i.ok===!0)i.result!==void 0&&(r[o]=i.result);else return n[o]===void 0?ue({message:"the key '"+o+"' is required but was not present"}):ue(Tt("."+o,i.error))}return fe(r)}else return qt(n)?fe(n):ue({message:He("an object",n)})})},t.array=function(e){return new t(function(n){if(Nt(n)&&e){var r=function(o,i){return jn(function(c){return Tt("["+i+"]",c)},e.decode(o))};return n.reduce(function(o,i,c){return Vr(function(a,l){return a.concat([l])},o,r(i,c))},fe([]))}else return Nt(n)?fe(n):ue({message:He("an array",n)})})},t.tuple=function(e){return new t(function(n){if(Nt(n)){if(n.length!==e.length)return ue({message:"expected a tuple of length "+e.length+", got one of length "+n.length});for(var r=[],o=0;o<e.length;o++){var i=e[o].decode(n[o]);if(i.ok)r[o]=i.result;else return ue(Tt("["+o+"]",i.error))}return fe(r)}else return ue({message:He("a tuple of length "+e.length,n)})})},t.union=function(e,n){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];return t.oneOf.apply(t,[e,n].concat(r))},t.intersection=function(e,n){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];return new t(function(i){return[e,n].concat(r).reduce(function(c,a){return Vr(Object.assign,c,a.decode(i))},fe({}))})},t.anyJson=function(){return new t(function(e){return fe(e)})},t.unknownJson=function(){return new t(function(e){return fe(e)})},t.dict=function(e){return new t(function(n){if(qt(n)){var r={};for(var o in n)if(n.hasOwnProperty(o)){var i=e.decode(n[o]);if(i.ok===!0)r[o]=i.result;else return ue(Tt("."+o,i.error))}return fe(r)}else return ue({message:He("an object",n)})})},t.optional=function(e){return new t(function(n){return n==null?fe(void 0):e.decode(n)})},t.oneOf=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new t(function(r){for(var o=[],i=0;i<e.length;i++){var c=e[i].decode(r);if(c.ok===!0)return c;o[i]=c.error}var a=o.map(function(l){return"at error"+(l.at||"")+": "+l.message}).join('", "');return ue({message:'expected a value matching one of the decoders, got the errors ["'+a+'"]'})})},t.withDefault=function(e,n){return new t(function(r){return fe(gs(e,n.decode(r)))})},t.valueAt=function(e,n){return new t(function(r){for(var o=r,i=0;i<e.length;i++){if(o===void 0)return ue({at:kt(e.slice(0,i+1)),message:"path does not exist"});if(typeof e[i]=="string"&&!qt(o))return ue({at:kt(e.slice(0,i+1)),message:He("an object",o)});if(typeof e[i]=="number"&&!Nt(o))return ue({at:kt(e.slice(0,i+1)),message:He("an array",o)});o=o[e[i]]}return jn(function(c){return o===void 0?{at:kt(e),message:"path does not exist"}:Tt(kt(e),c)},n.decode(o))})},t.succeed=function(e){return new t(function(n){return fe(e)})},t.fail=function(e){return new t(function(n){return ue({message:e})})},t.lazy=function(e){return new t(function(n){return e().decode(n)})},t}(),zn=de.string,Os=de.number,hn=de.boolean,he=de.anyJson;de.unknownJson;var wt=de.constant,se=de.object,$o=de.array;de.tuple;de.dict;var z=de.optional,sn=de.oneOf;de.union;de.intersection;de.withDefault;de.valueAt;de.succeed;var Es=de.fail;de.lazy;const ce=zn().where(t=>t.length>0,"Expected a non-empty string"),Ss=Os().where(t=>t>=0,"Expected a non-negative number"),xe=(t,e)=>{const n=typeof t;return n==="function"?he():Es(`The provided argument as ${e} should be of type function, provided: ${typeof n}`)},js=se({name:ce,displayName:z(ce),disabled:z(hn())}),ks=se({id:ce,title:ce,description:z(ce),icon:z(zn()),iconSrc:z(zn()),contextMenuActions:z($o(js)),type:ce}),Ts=$o(ks),mn=()=>{const[t,e]=Ie("localStorage",ps,Ts),n=b.useMemo(()=>t||[],[t]);return{favoriteEntities:n,toggleFavorite:({isOpen:i,...c})=>{const a=n.find(u=>u.title===c.title&&u.type===c.type),l=a?n.filter(u=>u!==a):[c,...n];e(l)},removeFavorite:i=>{e(n.filter(c=>c.id!==i))}}},Go=()=>{const[t,e]=b.useState(),n=b.useContext(ee.IOConnectContext);return b.useEffect(()=>{if(!n)return;const r=bt.getFrameId();n.workspaces?.waitForFrame(r).then(e).catch(o=>console.error("Failed to get current frame",{error:o}))},[n]),t},Ps=()=>{const t=b.useContext(ee.IOConnectContext);return async e=>t.interop.methods().every(n=>n.name!==e?.method)?console.error("Interop method not found."):await t.interop.invoke(e.method,e.params,e.target).catch(n=>console.error({error:n}))},Is=()=>{const[t,e]=b.useState(!1),n=b.useContext(ee.IOConnectContext);return b.useEffect(()=>{if(!n)return;let r;return(async()=>{try{r=await n.workspaces?.onWorkspaceOpened(()=>e(!0))}catch(o){console.error(o)}})(),()=>r?.()},[n]),t},_s=se({name:ce}),zt=se({isCompleted:hn()}),fr=()=>{const[t,e]=Ie("sessionStorage",ms,_s);return{isPlatformWindow:!t||window.name===t.name,setPlatformWindow:e}},Ns=()=>{const[t,e]=b.useState([]),n=b.useContext(ee.IOConnectContext);return b.useEffect(()=>{if(!n)return;let r=!1;const o=n.layouts.onAdded(c=>{if(c.type!=="Global"||r)return;const{name:a,type:l}=c;e(u=>[...u,{name:a,type:l}])}),i=n.layouts.onRemoved(c=>{c.type!=="Global"||r||e(a=>a.filter(l=>l.name!==c.name))});return()=>{r=!0,o(),i()}},[n]),t},Ko=()=>{const[t,e]=b.useState([]),n=b.useContext(ee.IOConnectContext);return b.useEffect(()=>{if(!n)return;const r=n.notifications.onRaised(i=>e(c=>[...c,i])),o=n.notifications.onClosed(i=>e(c=>c.filter(a=>a.id!==i.id)));return n.notifications.list().then(e).catch(console.error),()=>{r(),o()}},[n]),t},kn=["None","Low","Medium","High","Critical"],As={None:"#616161",Low:"#7AC70C",Medium:"#E0A900",High:"#E0474C",Critical:"#B8001E"},Zn={TIMESTAMP:"timestamp",SEVERITY:"severity"},zr={key:Zn.TIMESTAMP,descending:!0},Ls=(t,e)=>[...t].sort((n,r)=>(e?-1:1)*((n.timestamp||0)-(r.timestamp||0))),Rs=(t,e)=>{const n=kn[0];return[...t].sort((r,o)=>{const i=kn.indexOf(r.severity||n),c=kn.indexOf(o.severity||n);return(e?-1:1)*(i-c)})},Ms={[Zn.TIMESTAMP]:Ls,[Zn.SEVERITY]:Rs},Ds=()=>{const t=Ko(),[e,n]=b.useState(zr),{key:r,descending:o}=e,i=b.useMemo(()=>Ms[r](t,o),[t,r,o]);return{onNotificationsSort:b.useCallback(a=>{n(l=>({key:a,descending:l.key!==a?zr.descending:!l.descending}))},[]),sortedNotifications:i}},qo=()=>{const[t,e]=b.useState([]);return b.useEffect(()=>{const n=({key:i})=>{e(c=>c.includes(i)?c:c.concat(i))},r=i=>{e(c=>c.filter(a=>a!==i.key))},o=()=>{e([])};return document.addEventListener("keydown",n),document.addEventListener("keyup",r),window.addEventListener("blur",o),()=>{document.removeEventListener("keydown",n),document.removeEventListener("keyup",r),window.removeEventListener("blur",o)}},[]),t.length===1?t[0]:null},vn={CONTROL:"Control",SHIFT:"Shift"},pr=()=>{const t=b.useContext(ee.IOConnectContext),e=Go();return async({id:n,modifier:r,reuseWorkspaceId:o})=>{const i=r===vn.CONTROL?{newFrame:!0}:{frameId:e?.id,reuseWorkspaceId:o};return t.workspaces?.restoreWorkspace(n,i)}},hr=()=>{const t=b.useContext(ee.IOConnectContext);return b.useCallback(async(e,n)=>{if(t)try{await t.layouts.restore({name:e}),n?.({name:e})}catch(r){console.error(r)}},[t])},Ws=t=>{const[e,n]=b.useState([]),[r,o]=b.useState(!0),i=b.useRef(null),c=b.useContext(ee.IOConnectContext);return b.useEffect(()=>{const a=c?.search;if(!a)return;const l=[],u=[];return(async p=>{o(!0),n([]);const f=await a.query({search:p.trim(),providerLimits:{maxResults:100,maxResultsPerType:5}});if(f===i.current)return;i.current=f;const h=f.onResults(g=>{g.results.forEach(w=>{u.find(x=>x.id===w.id&&x.type.name===w.type.name)||u.push(w)}),o(!1),n([...u])}),m=f.onCompleted(()=>{o(!1)}),v=f.onError(g=>{console.error(`Query failed. Provider: ${g.provider}; Error: ${g.error}`)});l.push(h,m,v)})(t),()=>{l.forEach(p=>p())}},[c,t]),{resultsToRender:e,isLoading:r}},Yo=()=>{const t=b.useContext(ee.IOConnectContext);return async({id:e,modifier:n})=>{const r=await t.workspaces?.getWorkspace(a=>a.isSelected===!0),o=r?.children[0];return n===vn.CONTROL||!r||o?.type==="window"?await t.appManager.application(e).start():await(o?.type==="group"?o:await(o||r).addGroup()).addWindow({appName:e})}},Hs=()=>{const[t,e]=b.useState([]),n=b.useContext(ee.IOConnectContext);return b.useEffect(()=>{if(!n||!n.workspaces)return;let r=!1;const o=n.workspaces.layouts.onSaved(({name:c})=>{r||t.find(({id:a})=>a===c)||e(a=>[...a,{id:c,title:c}])}),i=n.workspaces.layouts.onRemoved(({name:c})=>{r||e(a=>a.filter(({title:l})=>l!==c))});return()=>{r=!0,[o,i].forEach(async c=>{try{(await c)()}catch(a){console.error(a)}})}},[n,t]),t},Us=()=>{const[t,e]=b.useState({}),n=b.useContext(ee.IOConnectContext);return b.useEffect(()=>{if(!n)return;const r=[];return(async()=>{try{const o=await n.workspaces?.onWorkspaceOpened(c=>e(a=>({...a,[c.title]:[...a[c.title]||[],c.id]})));r.push(o);const i=await n.workspaces?.onWorkspaceClosed(({workspaceId:c})=>e(a=>{const l={...a};for(const u in l)if(l[u].includes(c)){l[u]=l[u].filter(d=>d!==c);break}return l}));r.push(i)}catch(o){console.error(o)}})(),()=>r.forEach(o=>o?.())},[n]),t},Fs=t=>{const{io:e,item:n}=t;e.appManager.application(n.id).start().catch(r=>{console.error("Failed to start application: ",{error:r})})},Vs=t=>{const{io:e,item:n,frame:r}=t;if(!e.workspaces)return;const o={type:"workspace",definition:{frame:r?{reuseFrameId:r.id}:{newFrame:!0}}},i=e.workspaces.getBuilder(o);i.addGroup().addWindow({appName:n.id}),i.create().catch(c=>{console.error("Failed to create workspace: ",{error:c})})},zs={openInNewWindow:Fs,openInNewWorkspace:Vs},Xo=()=>{const t=b.useContext(ee.IOConnectContext),e=Go();return(n,r)=>{zs[r]({io:t,item:n,frame:e})}},Zs=t=>{const{io:e,item:n}=t;e.workspaces&&e.workspaces.restoreWorkspace(n.id,{newFrame:!0}).catch(r=>{console.error("Failed to open workspace in new frame: ",{error:r})})},Bs=async t=>{const{io:e,item:n,removeFavorite:r}=t;if(e.workspaces)try{await e.workspaces.layouts.delete(n.id),r(n.id)}catch(o){console.error("Failed to delete workspace: ",{error:o})}},$s={openInNewFrame:Zs,delete:Bs},Jo=()=>{const t=b.useContext(ee.IOConnectContext),{removeFavorite:e}=mn();return(n,r)=>{$s[r]({io:t,item:n,removeFavorite:e})}},Gs=t=>{const{layout:e,setDefaultLayout:n}=t;n({name:e.name})},Ks=async t=>{const{io:e,layout:n}=t;try{await e.layouts.remove("Global",n.name)}catch(r){console.error("Failed to delete layout: ",{error:r})}},qs={setAsDefault:Gs,delete:Ks},Ys=()=>{const t=b.useContext(ee.IOConnectContext);return b.useCallback(async(n,r,o)=>{await qs[r]({io:t,layout:n,setDefaultLayout:o})},[t])},Qo=se({name:ce}),ei="Welcome",Xs=5,qe={WINDOW_MANAGEMENT:"window-management",NOTIFICATIONS:"notifications"},Zt="getScreenDetails"in window,Js=t=>t.components.reduce((n,r)=>{if(r.type==="workspaceFrame"){const o=r.state.workspaces.map(i=>i.config.name);n.push(...o)}return n},[]),Qs=()=>{const t=Zt?[qe.NOTIFICATIONS,qe.WINDOW_MANAGEMENT]:[qe.NOTIFICATIONS];return Promise.all(t.map(async e=>{const n=await navigator.permissions.query({name:e});return n.stableName=e,n}))},ti=b.createContext(void 0),Ve=()=>{const t=b.useContext(ti);if(t===void 0)throw new Error("useIOConnectHome must be used within an IOConnectHomeProvider");return t},ni=({children:t})=>{const[e,n]=Ie("localStorage",Vt,zt),[r,o]=b.useState([]),i=b.useMemo(()=>r.reduce((d,p)=>({...d,[p.stableName]:{state:p.state}}),{}),[r]),c={isLoading:r.length===0,statuses:i},[a,l]=b.useState(!1),u={isLoggingOut:a,setIsLoggingOut:l};return b.useEffect(()=>{let d=!1;const p=Qs().then(f=>{if(d)return;o(f);const h=[];let m=!1;return f.forEach((v,g)=>{const w=E=>{if(d||!E.target||m)return;const x=E.target;if(x.state==="prompt")return n({isCompleted:!1}),m=!0,window.location.reload();o(y=>[...y.slice(0,g),x,...y.slice(g+1)])};v.addEventListener("change",w),h.push(()=>v.removeEventListener("change",w))}),h}).catch(console.warn);return()=>{d=!0,p.then(f=>{f?.forEach(h=>h())})}},[n]),s.jsx(ti.Provider,{value:{permission:c,login:u},children:t})},ea=t=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",fill:"none",height:"63",viewBox:"0 0 63 63",width:"63",...t,children:[s.jsxs("linearGradient",{id:"chrome_a",gradientUnits:"userSpaceOnUse",x1:"34.9087",x2:"7.63224",y1:"61.029",y2:"13.7847",children:[s.jsx("stop",{offset:"0",stopColor:"#1e8e3e"}),s.jsx("stop",{offset:"1",stopColor:"#34a853"})]}),s.jsxs("linearGradient",{id:"chrome_b",gradientUnits:"userSpaceOnUse",x1:"26.9043",x2:"54.1808",y1:"63.0788",y2:"15.8345",children:[s.jsx("stop",{offset:"0",stopColor:"#fcc934"}),s.jsx("stop",{offset:"1",stopColor:"#fbbc04"})]}),s.jsxs("linearGradient",{id:"chrome_c",gradientUnits:"userSpaceOnUse",x1:"4.22145",x2:"58.7745",y1:"19.6884",y2:"19.6884",children:[s.jsx("stop",{offset:"0",stopColor:"#d93025"}),s.jsx("stop",{offset:"1",stopColor:"#ea4335"})]}),s.jsx("path",{d:"m31.499 47.2466c8.6985 0 15.75-7.0515 15.75-15.75s-7.0515-15.75-15.75-15.75-15.75 7.0515-15.75 15.75 7.0515 15.75 15.75 15.75z",fill:"#fff"}),s.jsx("path",{d:"m17.8591 39.3751-13.63772-23.6212c-2.76527 4.788-4.22118922 10.2197-4.22137998 15.7489s1.45535998 10.961 4.22028998 15.7492c2.76494 4.7882 6.74181 8.7641 11.53071 11.5279 4.7889 2.7637 10.221 4.2179 15.7502 4.2164l13.6377-23.6212v-.0041c-1.3813 2.3954-3.369 4.3848-5.7632 5.7681s-5.1104 2.1118-7.8755 2.1122-5.4816-.7272-7.8762-2.1099c-2.3945-1.3826-4.3829-3.3714-5.7649-5.7663z",fill:"url(#chrome_a)"}),s.jsx("path",{d:"m45.1379 39.3741-13.6376 23.6212c5.5292.0008 10.9611-1.4542 15.7496-4.2187 4.7885-2.7644 8.7648-6.7408 11.5291-11.5294 2.7642-4.7887 4.219-10.2207 4.2181-15.7499-.001-5.5292-1.4577-10.9606-4.2237-15.7483h-27.2754l-.0034.0021c2.7651-.0014 5.4818.7254 7.8769 2.1071 2.3951 1.3818 4.3841 3.3698 5.767 5.7643 1.3829 2.3944 2.1109 5.1108 2.1109 7.8758-.0001 2.7651-.7283 5.4814-2.1113 7.8758z",fill:"url(#chrome_b)"}),s.jsx("path",{d:"m31.499 43.9688c6.8863 0 12.4688-5.5825 12.4688-12.4688s-5.5825-12.4688-12.4688-12.4688-12.4687 5.5825-12.4687 12.4688 5.5824 12.4688 12.4687 12.4688z",fill:"#1a73e8"}),s.jsx("path",{d:"m31.4991 15.75h27.2754c-2.764-4.7888-6.74-8.76553-11.5283-11.53029-4.7883-2.76475-10.2202-4.22010235-15.7494-4.21970992s-10.9608 1.45650992-15.7487 4.22194992c-4.788 2.76543-8.76341 6.74275-11.52666 11.53185l13.63766 23.6212.0035.0019c-1.3837-2.394-2.1127-5.11-2.1136-7.8751s.7264-5.4817 2.1086-7.8765c1.3821-2.3948 3.3706-4.3835 5.7652-5.7659 2.3947-1.3825 5.1112-2.11 7.8763-2.1094z",fill:"url(#chrome_c)"})]}),ta=t=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",...t,children:[s.jsxs("defs",{children:[s.jsxs("radialGradient",{id:"edge_b",cx:161.8,cy:68.9,r:95.4,gradientTransform:"matrix(1 0 0 -.95 0 248.8)",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{offset:.7,stopOpacity:0}),s.jsx("stop",{offset:.9,stopOpacity:.5}),s.jsx("stop",{offset:1})]}),s.jsxs("radialGradient",{id:"edge_d",cx:-340.3,cy:63,r:143.2,gradientTransform:"matrix(.15 -.99 -.8 -.12 176.6 -125.4)",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{offset:.8,stopOpacity:0}),s.jsx("stop",{offset:.9,stopOpacity:.5}),s.jsx("stop",{offset:1})]}),s.jsxs("radialGradient",{id:"edge_e",cx:113.4,cy:570.2,r:202.4,gradientTransform:"matrix(-.04 1 2.13 .08 -1179.5 -106.7)",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{offset:0,stopColor:"#35c1f1"}),s.jsx("stop",{offset:.1,stopColor:"#34c1ed"}),s.jsx("stop",{offset:.2,stopColor:"#2fc2df"}),s.jsx("stop",{offset:.3,stopColor:"#2bc3d2"}),s.jsx("stop",{offset:.7,stopColor:"#36c752"})]}),s.jsxs("radialGradient",{id:"edge_f",cx:376.5,cy:568,r:97.3,gradientTransform:"matrix(.28 .96 .78 -.23 -303.8 -148.5)",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{offset:0,stopColor:"#66eb6e"}),s.jsx("stop",{offset:1,stopColor:"#66eb6e",stopOpacity:0})]}),s.jsxs("linearGradient",{id:"edge_a",x1:63.3,x2:241.7,y1:84,y2:84,gradientTransform:"matrix(1 0 0 -1 0 266)",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{offset:0,stopColor:"#0c59a4"}),s.jsx("stop",{offset:1,stopColor:"#114a8b"})]}),s.jsxs("linearGradient",{id:"edge_c",x1:157.3,x2:46,y1:161.4,y2:40.1,gradientTransform:"matrix(1 0 0 -1 0 266)",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{offset:0,stopColor:"#1b9de2"}),s.jsx("stop",{offset:.2,stopColor:"#1595df"}),s.jsx("stop",{offset:.7,stopColor:"#0680d7"}),s.jsx("stop",{offset:1,stopColor:"#0078d4"})]})]}),s.jsx("path",{d:"M235.7 195.5a93.7 93.7 0 0 1-10.6 4.7 101.9 101.9 0 0 1-35.9 6.4c-47.3 0-88.5-32.5-88.5-74.3a31.5 31.5 0 0 1 16.4-27.3c-42.8 1.8-53.8 46.4-53.8 72.5 0 74 68.1 81.4 82.8 81.4 7.9 0 19.8-2.3 27-4.6l1.3-.4a128.3 128.3 0 0 0 66.6-52.8 4 4 0 0 0-5.3-5.6Z",style:{fill:"url(#edge_a)"},transform:"translate(-4.6 -5)"}),s.jsx("path",{d:"M235.7 195.5a93.7 93.7 0 0 1-10.6 4.7 101.9 101.9 0 0 1-35.9 6.4c-47.3 0-88.5-32.5-88.5-74.3a31.5 31.5 0 0 1 16.4-27.3c-42.8 1.8-53.8 46.4-53.8 72.5 0 74 68.1 81.4 82.8 81.4 7.9 0 19.8-2.3 27-4.6l1.3-.4a128.3 128.3 0 0 0 66.6-52.8 4 4 0 0 0-5.3-5.6Z",style:{isolation:"isolate",opacity:.35,fill:"url(#edge_b)"},transform:"translate(-4.6 -5)"}),s.jsx("path",{d:"M110.3 246.3A79.2 79.2 0 0 1 87.6 225a80.7 80.7 0 0 1 29.5-120c3.2-1.5 8.5-4.1 15.6-4a32.4 32.4 0 0 1 25.7 13 31.9 31.9 0 0 1 6.3 18.7c0-.2 24.5-79.6-80-79.6-43.9 0-80 41.6-80 78.2a130.2 130.2 0 0 0 12.1 56 128 128 0 0 0 156.4 67 75.5 75.5 0 0 1-62.8-8Z",style:{fill:"url(#edge_c)"},transform:"translate(-4.6 -5)"}),s.jsx("path",{d:"M110.3 246.3A79.2 79.2 0 0 1 87.6 225a80.7 80.7 0 0 1 29.5-120c3.2-1.5 8.5-4.1 15.6-4a32.4 32.4 0 0 1 25.7 13 31.9 31.9 0 0 1 6.3 18.7c0-.2 24.5-79.6-80-79.6-43.9 0-80 41.6-80 78.2a130.2 130.2 0 0 0 12.1 56 128 128 0 0 0 156.4 67 75.5 75.5 0 0 1-62.8-8Z",style:{opacity:.41,fill:"url(#edge_d)",isolation:"isolate"},transform:"translate(-4.6 -5)"}),s.jsx("path",{d:"M157 153.8c-.9 1-3.4 2.5-3.4 5.6 0 2.6 1.7 5.2 4.8 7.3 14.3 10 41.4 8.6 41.5 8.6a59.6 59.6 0 0 0 30.3-8.3 61.4 61.4 0 0 0 30.4-52.9c.3-22.4-8-37.3-11.3-43.9C228 28.8 182.3 5 132.6 5a128 128 0 0 0-128 126.2c.5-36.5 36.8-66 80-66 3.5 0 23.5.3 42 10a72.6 72.6 0 0 1 30.9 29.3c6.1 10.6 7.2 24.1 7.2 29.5s-2.7 13.3-7.8 19.9Z",style:{fill:"url(#edge_e)"},transform:"translate(-4.6 -5)"}),s.jsx("path",{d:"M157 153.8c-.9 1-3.4 2.5-3.4 5.6 0 2.6 1.7 5.2 4.8 7.3 14.3 10 41.4 8.6 41.5 8.6a59.6 59.6 0 0 0 30.3-8.3 61.4 61.4 0 0 0 30.4-52.9c.3-22.4-8-37.3-11.3-43.9C228 28.8 182.3 5 132.6 5a128 128 0 0 0-128 126.2c.5-36.5 36.8-66 80-66 3.5 0 23.5.3 42 10a72.6 72.6 0 0 1 30.9 29.3c6.1 10.6 7.2 24.1 7.2 29.5s-2.7 13.3-7.8 19.9Z",style:{fill:"url(#edge_f)"},transform:"translate(-4.6 -5)"})]}),na=t=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 75.591 75.591",...t,children:[s.jsxs("linearGradient",{id:"opera_a",x2:1,gradientTransform:"matrix(0 -54.944 -54.944 0 23.62 79.474)",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{offset:0,stopColor:"#ff1b2d"}),s.jsx("stop",{offset:.3,stopColor:"#ff1b2d"}),s.jsx("stop",{offset:.614,stopColor:"#ff1b2d"}),s.jsx("stop",{offset:1,stopColor:"#a70014"})]}),s.jsxs("linearGradient",{id:"opera_b",x2:1,gradientTransform:"matrix(0 -48.595 -48.595 0 37.854 76.235)",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{offset:0,stopColor:"#9c0000"}),s.jsx("stop",{offset:.7,stopColor:"#ff4b4b"}),s.jsx("stop",{offset:1,stopColor:"#ff4b4b"})]}),s.jsx("path",{fill:"url(#opera_a)",d:"M28.346 80.398C12.691 80.398 0 67.707 0 52.052 0 36.85 11.968 24.443 26.996 23.739a28.244 28.244 0 0 1 20.241 7.18c-3.322-2.203-7.207-3.47-11.359-3.47-6.75 0-12.796 3.348-16.862 8.629-3.134 3.7-5.164 9.169-5.302 15.307v1.335c.138 6.137 2.168 11.608 5.302 15.307 4.066 5.28 10.112 8.63 16.862 8.63 4.152 0 8.038-1.269 11.36-3.474a28.239 28.239 0 0 1-18.785 7.215l-.108.001z",transform:"matrix(1.3333 0 0 -1.3333 0 107.2)"}),s.jsx("path",{fill:"url(#opera_b)",d:"M19.016 68.025c2.601 3.07 5.96 4.923 9.631 4.923 8.252 0 14.941-9.356 14.941-20.897s-6.69-20.897-14.941-20.897c-3.67 0-7.03 1.85-9.63 4.922 4.066-5.281 10.11-8.63 16.862-8.63 4.152 0 8.036 1.268 11.359 3.472 5.802 5.19 9.455 12.735 9.455 21.133 0 8.397-3.653 15.94-9.453 21.13-3.324 2.206-7.209 3.473-11.361 3.473-6.75 0-12.796-3.348-16.862-8.63",transform:"matrix(1.3333 0 0 -1.3333 0 107.2)"})]}),ra=t=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:170,height:134,fill:"none",...t,children:[s.jsxs("g",{clipPath:"url(#a)",children:[s.jsxs("g",{clipPath:"url(#b)",children:[s.jsx("path",{fill:"url(#c)",d:"M0 0h170v114H0z"}),s.jsx("rect",{width:42.821,height:15,x:.5,y:-.5,fill:"#3C3E3F",rx:7.5,transform:"matrix(1 0 0 -1 117 103.85)"}),s.jsx("rect",{width:42.821,height:15,x:.5,y:-.5,stroke:"#4B4E4F",strokeMiterlimit:10,rx:7.5,transform:"matrix(1 0 0 -1 117 103.85)"}),s.jsx("path",{fill:"#36A86B",d:"M125.31 100.086c-1.656 0-3-1.41-3-3.149 0-1.74 1.344-3.15 3-3.15 1.657 0 3 1.41 3 3.15s-1.343 3.149-3 3.149Z"}),s.jsx("rect",{width:21.694,height:6.057,fill:"#AAB0B0",rx:3.028,transform:"matrix(1 0 0 -1 132.72 99.844)"}),s.jsx("mask",{id:"d",fill:"#fff",children:s.jsx("path",{d:"M0 114h170v20H0v-20Z"})}),s.jsx("path",{fill:"#3C3E3F",d:"M0 114h170v20H0v-20Z"}),s.jsx("path",{fill:"#5D5D5D",d:"M0 115h170v-2H0v2Z",mask:"url(#d)"})]}),s.jsx("rect",{width:169,height:133,x:.5,y:.5,stroke:"#5D5D5D",rx:5.5}),s.jsx("rect",{width:64,height:64,x:53,y:24,fill:"#36AA6C",rx:32}),s.jsx("path",{fill:"#fff",d:"M84.068 42.02c0-.466.408-.932.932-.932.466 0 .932.466.932.932v.99c4.66.467 8.388 4.428 8.388 9.262v1.748a9.57 9.57 0 0 0 2.796 6.756l.174.175c.466.466.758 1.165.758 1.806a2.61 2.61 0 0 1-2.621 2.621H74.514c-1.456-.058-2.563-1.165-2.563-2.621 0-.7.233-1.34.758-1.806l.116-.175c1.806-1.805 2.854-4.252 2.854-6.757v-1.747a9.3 9.3 0 0 1 8.388-9.261v-.99ZM85 44.816c-4.136 0-7.456 3.379-7.456 7.456v1.748c0 3.028-1.223 5.94-3.378 8.096l-.175.117a.94.94 0 0 0-.175.524c0 .408.291.699.7.699h20.91c.408 0 .758-.291.758-.7 0-.174-.117-.349-.233-.523l-.175-.117a11.502 11.502 0 0 1-3.378-8.155v-1.689c0-4.077-3.32-7.456-7.456-7.456H85Zm-1.806 23.008c.291.758.99 1.224 1.806 1.224.757 0 1.456-.466 1.747-1.224.175-.466.7-.757 1.165-.582a.976.976 0 0 1 .583 1.223A3.717 3.717 0 0 1 85 70.912c-1.631 0-3.029-.99-3.553-2.447a.976.976 0 0 1 .582-1.223c.466-.175.99.116 1.165.582Z"}),s.jsx("path",{fill:"#36A86B",d:"M113.791 86.146c-1.922 0-3.48-1.62-3.48-3.62 0-1.999 1.558-3.62 3.48-3.62s3.481 1.621 3.481 3.62c0 2-1.559 3.62-3.481 3.62Z"})]}),s.jsxs("defs",{children:[s.jsx("clipPath",{id:"a",children:s.jsx("path",{fill:"#fff",d:"M0 0h170v134H0z"})}),s.jsx("clipPath",{id:"b",children:s.jsx("rect",{width:170,height:134,fill:"#fff",rx:6})}),s.jsxs("linearGradient",{id:"c",x1:20.715,x2:62.592,y1:6.956,y2:110.839,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#313131"}),s.jsx("stop",{offset:1,stopColor:"#1B1B1B"})]})]})]}),oa=t=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:170,height:134,fill:"none",...t,children:[s.jsxs("g",{clipPath:"url(#a)",children:[s.jsxs("g",{clipPath:"url(#b)",children:[s.jsx("path",{fill:"url(#c)",d:"M0 0h170v94H0z",transform:"translate(0 20)"}),s.jsx("mask",{id:"d",fill:"#fff",children:s.jsx("path",{d:"M0 114h170v20H0v-20Z"})}),s.jsx("path",{fill:"#3C3E3F",d:"M0 114h170v20H0v-20Z"}),s.jsx("path",{fill:"#5D5D5D",d:"M0 115h170v-2H0v2Z",mask:"url(#d)"})]}),s.jsx("rect",{width:169,height:113,x:.5,y:20.5,stroke:"#5D5D5D",rx:5.5}),s.jsx("path",{fill:"#3C3E3F",stroke:"#5D5D5D",strokeMiterlimit:10,d:"M22.338.5h125.324c2.746 0 4.941 2.144 4.941 4.75v76.938c0 2.608-2.195 4.751-4.941 4.751H22.338c-2.746 0-4.94-2.143-4.94-4.75V5.25c0-2.607 2.194-4.751 4.94-4.751Z"}),s.jsx("path",{fill:"#fff",fillOpacity:.3,d:"M116.905 16.552a2.766 2.766 0 1 0 0-5.533 2.766 2.766 0 0 0 0 5.533ZM127.206 16.552a2.766 2.766 0 1 0 0-5.533 2.766 2.766 0 0 0 0 5.533Z"}),s.jsx("path",{fill:"#F0F6FE",d:"M137.505 16.552a2.766 2.766 0 1 0 0-5.533 2.766 2.766 0 0 0 0 5.533Z"}),s.jsx("circle",{cx:46.208,cy:58.882,r:20.294,fill:"#36AA6C"}),s.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"M45.501 53.17a1 1 0 0 1 1.414 0l6.364 6.363a1 1 0 0 1-1.414 1.415l-4.657-4.657v48.23a1 1 0 0 1-2 0v-48.23l-4.657 4.657a1 1 0 0 1-1.414-1.415l6.364-6.364Z",clipRule:"evenodd"})]}),s.jsxs("defs",{children:[s.jsx("clipPath",{id:"a",children:s.jsx("path",{fill:"#fff",d:"M0 0h170v134H0z"})}),s.jsx("clipPath",{id:"b",children:s.jsx("rect",{width:170,height:114,y:20,fill:"#fff",rx:6})}),s.jsxs("linearGradient",{id:"c",x1:20.715,x2:50.521,y1:5.735,y2:95.406,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#313131"}),s.jsx("stop",{offset:1,stopColor:"#1B1B1B"})]})]})]}),ia=t=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:170,height:134,fill:"none",...t,children:[s.jsxs("g",{clipPath:"url(#a)",children:[s.jsxs("g",{clipPath:"url(#b)",children:[s.jsx("path",{fill:"url(#c)",d:"M0 0h170v114H0z"}),s.jsx("mask",{id:"d",fill:"#fff",children:s.jsx("path",{d:"M0 114h170v20H0v-20Z"})}),s.jsx("path",{fill:"#3C3E3F",d:"M0 114h170v20H0v-20Z"}),s.jsx("path",{fill:"#5D5D5D",d:"M0 115h170v-2H0v2Z",mask:"url(#d)"})]}),s.jsx("rect",{width:169,height:133,x:.5,y:.5,stroke:"#5D5D5D",rx:5.5}),s.jsx("path",{stroke:"#5D5D5D",strokeDasharray:"2 2",strokeLinejoin:"round",strokeMiterlimit:10,d:"M27.449 103.584a2.008 2.008 0 0 1-1.083-1.083l.462-.191a1.495 1.495 0 0 1-.114-.574v-1.011h-.5v-2.02h.5v-2.021h-.5v-2.021h.5v-2.021h-.5v-2.02h.5V88.6h-.5v-2.02h.5v-2.022h-.5v-2.02h.5v-2.021h-.5v-2.021h.5v-2.02h-.5v-2.022h.5v-2.02h-.5v-2.022h.5v-2.02h-.5V66.37h.5V64.35h-.5v-2.021h.5v-2.02h-.5v-2.022h.5v-2.02h-.5v-2.022h.5v-2.02h-.5v-2.021h.5v-2.021h-.5v-2.021h.5v-2.02h-.5V42.12h.5V40.1h-.5v-2.022h.5v-2.02h-.5v-2.021h.5v-2.021h-.5v-2.02h.5v-2.022h-.5v-2.02h.5v-2.021h-.5v-2.021h.5V19.89h-.5V17.87h.5v-2.021h-.5v-2.02h.5v-1.011c0-.205.04-.398.114-.574l-.462-.192c.203-.489.594-.88 1.083-1.083l.191.462c.176-.073.37-.113.574-.113h1.014v-.5h2.028v.5h2.029v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.029v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.029v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.029v-.5h2.028v.5h2.028v-.5h2.028v.5h1.014c.204 0 .398.04.574.113l.191-.462c.489.203.88.594 1.083 1.083l-.462.192c.073.176.114.37.114.574v1.01h.5v2.021h-.5v2.02h.5v2.022h-.5v2.02h.5v2.021h-.5v2.021h.5v2.021h-.5v2.021h.5v2.02h-.5v2.022h.5v2.02h-.5v2.021h.5V40.1h-.5v2.021h.5v2.021h-.5v2.021h.5v2.02h-.5v2.022h.5v2.02h-.5v2.022h.5v2.02h-.5v2.021h.5v2.021h-.5v2.021h.5v2.02h-.5v2.022h.5v2.02h-.5v2.021h.5v2.021h-.5v2.021h.5v2.021h-.5v2.02h.5v2.022h-.5v2.02h.5v2.021h-.5v2.021h.5V88.6h-.5v2.021h.5v2.021h-.5v2.02h.5v2.022h-.5v2.02h.5v2.021h-.5v1.011c0 .204-.041.398-.114.574l.462.191a2.01 2.01 0 0 1-1.083 1.083l-.191-.462c-.176.073-.37.114-.574.114h-1.014v.5h-2.028v-.5h-2.028v.5h-2.028v-.5h-2.029v.5h-2.028v-.5h-2.028v.5h-2.028v-.5h-2.028v.5h-2.028v-.5h-2.028v.5h-2.028v-.5h-2.028v.5h-2.028v-.5h-2.028v.5h-2.028v-.5h-2.028v.5h-2.028v-.5h-2.028v.5h-2.028v-.5h-2.029v.5h-2.028v-.5h-2.028v.5h-2.028v-.5h-2.028v.5H90.07v-.5h-2.028v.5h-2.028v-.5h-2.028v.5h-2.028v-.5H79.93v.5h-2.028v-.5h-2.028v.5h-2.028v-.5h-2.028v.5H69.79v-.5H67.76v.5h-2.028v-.5h-2.028v.5h-2.028v-.5H59.65v.5h-2.028v-.5h-2.028v.5h-2.028v-.5h-2.028v.5h-2.028v-.5H47.48v.5h-2.028v-.5h-2.028v.5h-2.028v-.5h-2.028v.5H37.34v-.5h-2.029v.5h-2.028v-.5h-2.028v.5h-2.028v-.5h-1.014c-.204 0-.398-.041-.574-.114l-.191.462Z"}),s.jsx("path",{fill:"#5A5C5C",d:"M128 83c0 8.284 6.716 15 15 15 8.284 0 15-6.716 15-15 0-8.284-6.716-15-15-15-8.284 0-15 6.716-15 15Z"}),s.jsx("path",{fill:"#DDD",d:"M143.015 89.758a6.667 6.667 0 0 0 5.823-3.379c1.237-2.082 1.237-4.646 0-6.758-1.207-2.082-3.409-3.38-5.823-3.38a6.742 6.742 0 0 0-5.853 3.38c-1.237 2.112-1.237 4.676 0 6.758 1.207 2.112 3.409 3.38 5.853 3.38Zm0-14.482c2.746 0 5.28 1.479 6.668 3.862 1.388 2.414 1.388 5.34 0 7.724a7.666 7.666 0 0 1-6.668 3.862 7.678 7.678 0 0 1-6.698-3.862c-1.388-2.384-1.388-5.31 0-7.724a7.741 7.741 0 0 1 6.698-3.862Zm.724 2.897a.715.715 0 0 1-.724.724.697.697 0 0 1-.724-.724c0-.392.302-.724.724-.724.392 0 .724.332.724.724Zm-1.689 7.723c0 .543.422.966.965.966a.973.973 0 0 0 .966-.966.993.993 0 0 0-.966-.965.972.972 0 0 0-.965.965Zm-.966 0c0-1.056.845-1.93 1.931-1.93.513 0 .996.21 1.328.573l3.228-1.931a.478.478 0 0 1 .664.15c.15.242.06.544-.151.664l-3.228 1.931c.06.181.09.362.09.543 0 1.087-.875 1.931-1.931 1.931a1.906 1.906 0 0 1-1.931-1.93Zm6.034-6.275a.715.715 0 0 1-.724.724.697.697 0 0 1-.724-.724c0-.392.302-.724.724-.724.392 0 .724.332.724.724Zm-8.93 2.655c.392 0 .724.332.724.724a.715.715 0 0 1-.724.724.697.697 0 0 1-.724-.724c0-.392.301-.724.724-.724Zm2.172-2.655a.715.715 0 0 1-.724.724.697.697 0 0 1-.724-.724c0-.392.302-.724.724-.724.392 0 .724.332.724.724Z"}),s.jsx("path",{fill:"#5A5C5C",d:"M12 83c0 8.284 6.716 15 15 15 8.284 0 15-6.716 15-15 0-8.284-6.716-15-15-15-8.284 0-15 6.716-15 15Z"}),s.jsx("path",{fill:"#DDD",d:"M27.351 76.62a.804.804 0 0 0-.73 0L21.45 78.81c-.322.117-.556.438-.526.789 0 2.746 1.139 7.596 5.697 9.787a.804.804 0 0 0 .73 0c4.558-2.19 5.697-7.04 5.727-9.787a.855.855 0 0 0-.556-.789l-5.17-2.191Zm-1.08-.877a1.816 1.816 0 0 1 1.46 0l5.142 2.192c.643.292 1.14.905 1.14 1.665-.03 2.922-1.228 8.21-6.253 10.635a1.798 1.798 0 0 1-1.548 0c-5.026-2.425-6.223-7.713-6.223-10.635-.03-.76.467-1.373 1.11-1.665l5.171-2.192Z"}),s.jsx("rect",{width:30,height:30,fill:"#5A5C5C",rx:15,transform:"matrix(1 0 0 -1 12 45.46)"}),s.jsx("path",{fill:"#DDD",d:"M18.653 23.886c.132-.184.422-.237.58-.079l16.033 12.657a.394.394 0 0 1 .08.58c-.133.185-.396.212-.58.08L18.732 24.466a.42.42 0 0 1-.08-.58Zm10.416 6.065-1.45-1.16a7.74 7.74 0 0 1 4.746 2.189c.159.184.159.448 0 .606a.447.447 0 0 1-.606 0 6.555 6.555 0 0 0-2.69-1.635Zm-5.01.343a6.346 6.346 0 0 0-1.82 1.292.447.447 0 0 1-.606 0 .414.414 0 0 1 0-.58 7.975 7.975 0 0 1 1.688-1.292l.738.58Zm-.184-4.43-.791-.633a11.395 11.395 0 0 1 3.928-.686c3.218 0 6.17 1.319 8.307 3.428.158.159.158.422 0 .607-.158.158-.422.158-.607 0a10.84 10.84 0 0 0-7.7-3.19c-1.107 0-2.135.157-3.137.474ZM19.84 26.97l.686.528c-.449.343-.844.685-1.24 1.08a.447.447 0 0 1-.606 0c-.159-.184-.159-.447 0-.606.369-.369.765-.685 1.16-1.002Zm5.801 8.702a1.699 1.699 0 0 1-.21-1.687c.263-.554.79-.95 1.397-1.002a1.662 1.662 0 0 1 1.53.712c.369.5.448 1.134.21 1.687-.263.554-.79.95-1.397 1.002a1.662 1.662 0 0 1-1.53-.712Zm2.215-1.002a.868.868 0 0 0-.844-.843.85.85 0 0 0-.843.843c0 .475.369.844.843.844a.85.85 0 0 0 .844-.844Z"}),s.jsx("path",{fill:"#5A5C5C",d:"M128 30c0 8.284 6.716 15 15 15 8.284 0 15-6.716 15-15 0-8.284-6.716-15-15-15-8.284 0-15 6.716-15 15Z"}),s.jsx("path",{fill:"#DDD",d:"m142.001 23.885-.424 1.457c-.091.364-.364.637-.668.789-.243.121-.455.242-.667.364a1.232 1.232 0 0 1-1.032.212l-1.456-.364h-.122a3.276 3.276 0 0 0-.455.668l-.152.212a7.838 7.838 0 0 0-.333.728c0 .03.03.091.06.122l1.062 1.061c.243.273.364.668.334 1.002v.758c.03.334-.091.698-.334.971l-1.062 1.092a.231.231 0 0 0-.06.122c.091.242.212.485.333.728l.122.212c.152.213.303.456.455.668h.152l1.456-.364c.364-.091.759 0 1.032.182.212.151.424.273.667.394.304.152.577.425.668.79l.424 1.456c0 .03.031.06.061.09.304.061.607.061.941.061.303 0 .607 0 .91-.06.03-.03.061-.061.061-.091l.424-1.457c.091-.364.364-.637.668-.789a4.79 4.79 0 0 0 .667-.394c.304-.182.668-.273 1.032-.182l1.456.364h.152c.152-.212.304-.455.455-.668l.122-.212c.121-.243.242-.486.333-.728 0-.03-.03-.091-.06-.122l-1.062-1.092a1.316 1.316 0 0 1-.334-.97c0-.122.03-.244.03-.395 0-.122-.03-.243-.03-.364-.03-.334.091-.729.334-1.002l1.062-1.061c.03-.03.06-.092.06-.122a7.838 7.838 0 0 0-.333-.728l-.122-.212a12.155 12.155 0 0 0-.455-.668h-.152l-1.456.364c-.364.091-.728 0-1.032-.182a4.789 4.789 0 0 0-.667-.394c-.304-.152-.577-.425-.668-.79l-.424-1.456a.233.233 0 0 0-.061-.121 9.146 9.146 0 0 0-.91-.06c-.334 0-.637.03-.941.06a.233.233 0 0 0-.061.121Zm1.002-1.153c.394 0 .758.03 1.153.091.06.03.091.03.151.061.273.152.516.425.607.728l.425 1.457c0 .06.061.151.152.182.273.121.546.273.789.455.091.06.182.09.242.06l1.487-.364c.303-.09.668-.03.941.152l.121.122c.212.242.394.546.576.849l.152.212v.03c.152.304.304.608.425.911.03.06.03.091.03.152.031.334-.091.667-.333.91l-1.062 1.092c-.031.03-.061.122-.061.213 0 .151.03.303.03.455 0 .151-.03.303-.03.455 0 .121.03.212.061.243l1.062 1.092c.242.243.364.576.333.91 0 .03 0 .091-.03.152-.121.303-.273.607-.425.91l-.152.243a5.476 5.476 0 0 1-.606.85c-.031.06-.061.09-.091.12a1.206 1.206 0 0 1-.971.152l-1.457-.364c-.06-.03-.151 0-.242.061-.243.152-.516.303-.789.455-.091.03-.152.121-.152.182l-.425 1.426a1.277 1.277 0 0 1-.607.759c-.06.03-.091.03-.151.06-.395.03-.759.061-1.153.061-.395 0-.789-.03-1.184-.06-.06-.03-.091-.03-.151-.061a1.277 1.277 0 0 1-.607-.759l-.425-1.426c0-.06-.061-.151-.152-.182a4.11 4.11 0 0 1-.789-.455c-.091-.06-.182-.06-.242-.06l-1.457.363c-.333.091-.667.03-.94-.151-.061-.03-.091-.06-.122-.091-.242-.273-.424-.577-.606-.88l-.122-.213-.03-.03a11.98 11.98 0 0 1-.425-.91c0-.06-.03-.091-.03-.152 0-.334.091-.667.334-.91l1.061-1.092c.031-.03.061-.122.061-.243v-.91c0-.091-.03-.182-.061-.213l-1.061-1.092c-.243-.243-.334-.576-.334-.91 0-.061.03-.091.03-.152.121-.303.273-.607.425-.91l.03-.03.122-.213a6.09 6.09 0 0 1 .606-.85.24.24 0 0 1 .122-.12c.273-.183.607-.244.94-.153l1.457.364c.06.03.151 0 .242-.06.243-.152.516-.334.789-.455.091-.03.152-.122.152-.182l.425-1.457c.091-.303.334-.576.607-.728.06-.03.091-.03.151-.06.395-.061.789-.092 1.184-.092Zm-1.699 7.768c0 .637.303 1.183.849 1.486.516.304 1.153.304 1.699 0 .516-.303.85-.85.85-1.486 0-.607-.334-1.153-.85-1.457-.546-.303-1.183-.303-1.699 0-.546.304-.849.85-.849 1.457Zm4.369 0c0 .97-.516 1.85-1.335 2.336a2.781 2.781 0 0 1-2.67 0c-.85-.485-1.335-1.365-1.335-2.336 0-.94.485-1.82 1.335-2.306a2.781 2.781 0 0 1 2.67 0 2.702 2.702 0 0 1 1.335 2.306Z"}),s.jsx("circle",{cx:85,cy:57.277,r:32,fill:"#36AA6C"}),s.jsx("path",{fill:"#fff",d:"M72.313 42.777h9.968v1.812h-9.969c-1.019 0-1.812.85-1.812 1.813v16.312a1.79 1.79 0 0 0 1.813 1.813h25.374c.963 0 1.813-.793 1.813-1.813V46.402c0-.963-.85-1.813-1.813-1.813H87.72v-1.812h9.969c1.982 0 3.624 1.642 3.624 3.625v16.312a3.613 3.613 0 0 1-3.624 3.625H89.19l.623 3.625h3.342c.453 0 .906.453.906.907 0 .51-.453.906-.906.906H76.844a.895.895 0 0 1-.906-.906c0-.454.396-.907.906-.907h3.285l.623-3.625h-8.44c-2.039 0-3.624-1.586-3.624-3.625V46.402a3.614 3.614 0 0 1 3.624-3.625Zm10.251 23.562-.623 3.625h6.061l-.623-3.625h-4.815Zm3.342-22.656v12.348l2.946-3.002c.34-.34.962-.34 1.302 0 .34.34.34.963 0 1.302l-4.531 4.532c-.34.34-.963.34-1.303 0l-4.53-4.532c-.34-.34-.34-.962 0-1.302.339-.34.962-.34 1.302 0l3.002 3.002V43.683c0-.453.396-.906.906-.906.453 0 .906.453.906.906Z"})]}),s.jsxs("defs",{children:[s.jsx("clipPath",{id:"a",children:s.jsx("path",{fill:"#fff",d:"M0 0h170v134H0z"})}),s.jsx("clipPath",{id:"b",children:s.jsx("rect",{width:170,height:134,fill:"#fff",rx:6})}),s.jsxs("linearGradient",{id:"c",x1:20.715,x2:62.592,y1:6.956,y2:110.839,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#313131"}),s.jsx("stop",{offset:1,stopColor:"#1B1B1B"})]})]})]}),sa=t=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:170,height:134,fill:"none",...t,children:[s.jsxs("g",{clipPath:"url(#a)",children:[s.jsxs("g",{clipPath:"url(#b)",children:[s.jsx("path",{fill:"url(#c)",d:"M0 0h170v114H0z"}),s.jsx("path",{stroke:"#5D5D5D",strokeDasharray:"2 2",strokeMiterlimit:10,d:"M27.449 103.138a2.008 2.008 0 0 1-1.083-1.083l.462-.191a1.493 1.493 0 0 1-.114-.574v-1.011h-.5v-2.02h.5v-2.021h-.5v-2.021h.5v-2.021h-.5v-2.02h.5v-2.022h-.5v-2.02h.5v-2.022h-.5v-2.02h.5V80.07h-.5V78.05h.5v-2.021h-.5v-2.02h.5v-2.022h-.5v-2.02h.5v-2.021h-.5v-2.021h.5v-2.021h-.5v-2.021h.5v-2.02h-.5V57.84h.5v-2.02h-.5V53.8h.5v-2.021h-.5v-2.021h.5v-2.021h-.5v-2.021h.5v-2.02h-.5v-2.022h.5v-2.02h-.5v-2.022h.5v-2.02h-.5V33.59h.5V31.57h-.5v-2.021h.5v-2.02h-.5v-2.022h.5v-2.02h-.5v-2.021h.5v-2.021h-.5v-2.021h.5v-2.021h-.5v-2.02h.5v-1.011c0-.205.04-.398.114-.574l-.462-.192c.203-.489.594-.88 1.083-1.083l.191.462c.176-.073.37-.113.574-.113h1.014v-.5h2.028v.5h2.029v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.029v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.029v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.028v-.5h2.028v.5h2.029v-.5h2.028v.5h2.028v-.5h2.028v.5h1.014c.204 0 .398.04.574.113l.191-.462c.489.203.88.594 1.083 1.083l-.462.192c.073.176.114.37.114.574v1.01h.5v2.021h-.5v2.02h.5v2.022h-.5v2.02h.5v2.021h-.5v2.021h.5v2.021h-.5v2.021h.5v2.02h-.5v2.022h.5v2.02h-.5v2.022h.5v2.02h-.5v2.021h.5v2.021h-.5v2.021h.5v2.02h-.5v2.022h.5v2.02h-.5V53.8h.5v2.021h-.5v2.021h.5v2.021h-.5v2.02h.5v2.022h-.5v2.02h.5v2.021h-.5v2.021h.5v2.021h-.5v2.021h.5v2.021h-.5v2.02h.5v2.022h-.5v2.02h.5v2.022h-.5v2.02h.5v2.021h-.5v2.021h.5v2.021h-.5v2.02h.5v2.022h-.5v2.02h.5v2.021h-.5v1.011c0 .204-.041.398-.114.574l.462.191a2.01 2.01 0 0 1-1.083 1.083l-.191-.462c-.176.073-.37.114-.574.114h-1.014v.5h-2.028v-.5h-2.028v.5h-2.029v-.5h-2.028v.5h-2.028v-.5h-2.028v.5h-2.028v-.5h-2.028v.5h-2.028v-.5h-2.028v.5h-2.028v-.5h-2.028v.5h-2.028v-.5h-2.028v.5h-2.028v-.5h-2.028v.5h-2.028v-.5h-2.028v.5h-2.028v-.5h-2.029v.5h-2.028v-.5h-2.028v.5h-2.028v-.5h-2.028v.5H90.07v-.5h-2.028v.5h-2.028v-.5h-2.028v.5h-2.028v-.5H79.93v.5h-2.028v-.5h-2.028v.5h-2.028v-.5h-2.028v.5H69.79v-.5H67.76v.5h-2.028v-.5h-2.028v.5h-2.028v-.5H59.65v.5h-2.028v-.5h-2.028v.5h-2.028v-.5h-2.028v.5h-2.028v-.5H47.48v.5h-2.028v-.5h-2.028v.5h-2.028v-.5h-2.028v.5H37.34v-.5h-2.029v.5h-2.028v-.5h-2.028v.5h-2.028v-.5h-1.014c-.204 0-.398-.041-.574-.114l-.191.462Z"}),s.jsx("mask",{id:"d",fill:"#fff",children:s.jsx("path",{d:"M0 114h170v20H0v-20Z"})}),s.jsx("path",{fill:"#3C3E3F",d:"M0 114h170v20H0v-20Z"}),s.jsx("path",{fill:"#5D5D5D",d:"M0 115h170v-2H0v2Z",mask:"url(#d)"})]}),s.jsx("rect",{width:169,height:133,x:.5,y:.5,stroke:"#5D5D5D",rx:5.5}),s.jsx("path",{fill:"#36AA6C",d:"M114.756 28.708H55.244c-1.427 0-2.584 1.512-2.584 3.377v49.491c0 1.866 1.157 3.378 2.584 3.378h59.512c1.427 0 2.584-1.512 2.584-3.378v-49.49c0-1.866-1.157-3.378-2.584-3.378Z"}),s.jsx("path",{fill:"#fff",fillOpacity:.3,d:"M98.8 37.185a1.417 1.417 0 1 0 0-2.833 1.417 1.417 0 0 0 0 2.833ZM104.076 37.185a1.417 1.417 0 1 0 0-2.834 1.417 1.417 0 0 0 0 2.834Z"}),s.jsx("path",{fill:"#F0F6FE",d:"M109.351 37.185a1.417 1.417 0 1 0 0-2.834 1.417 1.417 0 0 0 0 2.834Z"}),s.jsx("path",{fill:"#3C3E3F",stroke:"#4B4E4F",strokeMiterlimit:10,d:"M10.804 18.367H43.32c.192 0 .409.105.595.358s.316.627.316 1.061v28.126c0 .434-.13.808-.316 1.06-.186.254-.403.36-.595.36H10.803c-.193 0-.41-.106-.595-.36-.186-.252-.317-.626-.317-1.06V19.786c0-.434.13-.808.317-1.06.186-.254.402-.36.595-.36Z"}),s.jsx("path",{fill:"#fff",fillOpacity:.3,d:"M26.192 26.344a1.417 1.417 0 1 0 0-2.833 1.417 1.417 0 0 0 0 2.833ZM31.468 26.344a1.417 1.417 0 1 0 0-2.833 1.417 1.417 0 0 0 0 2.833Z"}),s.jsx("path",{fill:"#F0F6FE",d:"M36.743 26.344a1.417 1.417 0 1 0 0-2.833 1.417 1.417 0 0 0 0 2.833Z"}),s.jsx("path",{fill:"#3C3E3F",stroke:"#4B4E4F",strokeMiterlimit:10,d:"M126.63 18.367h32.517c.192 0 .409.105.595.358s.316.627.316 1.061v28.126c0 .434-.13.808-.316 1.06-.186.254-.403.36-.595.36H126.63c-.193 0-.409-.106-.595-.36-.186-.252-.317-.626-.317-1.06V19.786c0-.434.131-.808.317-1.06.186-.254.402-.36.595-.36Z"}),s.jsx("path",{fill:"#fff",fillOpacity:.3,d:"M142.019 26.344a1.416 1.416 0 1 0 0-2.832 1.416 1.416 0 0 0 0 2.832ZM147.294 26.344a1.417 1.417 0 1 0 0-2.833 1.417 1.417 0 0 0 0 2.833Z"}),s.jsx("path",{fill:"#F0F6FE",d:"M152.569 26.344a1.417 1.417 0 1 0 0-2.833 1.417 1.417 0 0 0 0 2.833Z"}),s.jsx("path",{fill:"#3C3E3F",stroke:"#4B4E4F",strokeMiterlimit:10,d:"M10.804 63.694H43.32c.192 0 .409.106.595.359s.316.626.316 1.061v28.125c0 .435-.13.808-.316 1.061-.186.254-.403.359-.595.359H10.803c-.193 0-.41-.106-.595-.359-.186-.253-.317-.626-.317-1.06V65.113c0-.435.13-.808.317-1.061.186-.253.402-.358.595-.358Z"}),s.jsx("path",{fill:"#fff",fillOpacity:.3,d:"M27.192 71.672a1.417 1.417 0 1 0 0-2.833 1.417 1.417 0 0 0 0 2.833ZM32.468 71.672a1.417 1.417 0 1 0 0-2.833 1.417 1.417 0 0 0 0 2.833Z"}),s.jsx("path",{fill:"#F0F6FE",d:"M37.743 71.672a1.417 1.417 0 1 0 0-2.833 1.417 1.417 0 0 0 0 2.833Z"}),s.jsx("path",{fill:"#3C3E3F",stroke:"#4B4E4F",strokeMiterlimit:10,d:"M126.63 63.694h32.517c.192 0 .409.106.595.359s.316.626.316 1.061v28.125c0 .435-.13.808-.316 1.061-.186.254-.403.359-.595.359H126.63c-.193 0-.409-.106-.595-.359s-.317-.626-.317-1.06V65.113c0-.435.131-.808.317-1.061.186-.253.402-.358.595-.358Z"}),s.jsx("path",{fill:"#fff",fillOpacity:.3,d:"M143.019 71.672a1.416 1.416 0 1 0 0-2.833 1.416 1.416 0 0 0 0 2.833ZM148.294 71.672a1.417 1.417 0 1 0 0-2.833 1.417 1.417 0 0 0 0 2.833Z"}),s.jsx("path",{fill:"#F0F6FE",d:"M153.569 71.672a1.417 1.417 0 1 0 0-2.833 1.417 1.417 0 0 0 0 2.833Z"}),s.jsx("path",{fill:"#fff",d:"M49.318 40.488h5.836a.486.486 0 1 0 0-.973h-5.836a.486.486 0 1 0 0 .973Z"}),s.jsx("path",{fill:"#fff",d:"M44.318 40.488h5.836a.486.486 0 1 0 0-.973h-5.836a.486.486 0 1 0 0 .973Z"}),s.jsx("path",{fill:"#fff",d:"M44.482 40.488h-5.836a.486.486 0 1 1 0-.973h5.836a.486.486 0 1 1 0 .973ZM60.597 40.004l-3.255-3.255a.486.486 0 1 1 .688-.688l3.6 3.6c.19.19.19.497 0 .687l-3.594 3.593a.486.486 0 1 1-.688-.688l3.25-3.249Z"}),s.jsx("path",{fill:"#3BB272",d:"M32.147 36.709a3.375 3.375 0 1 1 0 6.75 3.375 3.375 0 0 1 0-6.75Z"}),s.jsx("path",{fill:"#fff",d:"M134.062 65.808v-5.836a.487.487 0 0 0-.973 0v5.836a.486.486 0 1 0 .973 0Z"}),s.jsx("path",{fill:"#fff",d:"M134.062 70.808v-5.836a.487.487 0 0 0-.973 0v5.837a.486.486 0 1 0 .973 0Z"}),s.jsx("path",{fill:"#fff",d:"M134.062 70.644v5.836a.487.487 0 0 1-.973 0v-5.836a.486.486 0 1 1 .973 0ZM133.578 54.529l-3.255 3.255a.487.487 0 0 1-.688-.688l3.599-3.599c.19-.19.498-.19.688 0l3.593 3.593a.486.486 0 1 1-.688.688l-3.249-3.249Z"}),s.jsx("path",{fill:"#AAB0B0",d:"M130.282 82.98a3.376 3.376 0 1 1 6.752 0 3.376 3.376 0 0 1-6.752 0Z"})]}),s.jsxs("defs",{children:[s.jsx("clipPath",{id:"a",children:s.jsx("path",{fill:"#fff",d:"M0 0h170v134H0z"})}),s.jsx("clipPath",{id:"b",children:s.jsx("rect",{width:170,height:134,fill:"#fff",rx:6})}),s.jsxs("linearGradient",{id:"c",x1:20.715,x2:62.592,y1:6.956,y2:110.839,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#313131"}),s.jsx("stop",{offset:1,stopColor:"#1B1B1B"})]})]})]}),aa=t=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:170,height:134,fill:"none",...t,children:[s.jsxs("g",{clipPath:"url(#a)",children:[s.jsxs("g",{clipPath:"url(#b)",children:[s.jsx("path",{fill:"url(#c)",d:"M0 0h170v114H0z"}),s.jsx("mask",{id:"d",fill:"#fff",children:s.jsx("path",{d:"M0 114h170v20H0v-20Z"})}),s.jsx("path",{fill:"#3C3E3F",d:"M0 114h170v20H0v-20Z"}),s.jsx("path",{fill:"#5D5D5D",d:"M0 115h170v-2H0v2Z",mask:"url(#d)"})]}),s.jsx("rect",{width:169,height:133,x:.5,y:.5,stroke:"#5D5D5D",rx:5.5}),s.jsx("path",{fill:"#DE2122",d:"M79.593 28.399c2.403-4.163 8.411-4.163 10.814 0l29.741 51.512c2.403 4.162-.601 9.366-5.407 9.366H55.259c-4.806 0-7.81-5.204-5.407-9.366l29.74-51.512Z"}),s.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"M81.84 42.528h6.321a1 1 0 0 1 .994 1.113l-2.691 23.67a1 1 0 0 1-.994.887h-1.033a1 1 0 0 1-.994-.89l-2.596-23.671a1 1 0 0 1 .994-1.11Zm3.128 30.366a3.547 3.547 0 1 0 0 7.093 3.547 3.547 0 0 0 0-7.093Z",clipRule:"evenodd"}),s.jsx("path",{fill:"#5A5C5C",d:"M115.69 27.082 132.459.185l17.514-.151-25.545 24.389 17.858 23.176-25.076 13.678L131.267 47.6 115.69 27.082Z"})]}),s.jsxs("defs",{children:[s.jsx("clipPath",{id:"a",children:s.jsx("path",{fill:"#fff",d:"M0 0h170v134H0z"})}),s.jsx("clipPath",{id:"b",children:s.jsx("rect",{width:170,height:134,fill:"#fff",rx:6})}),s.jsxs("linearGradient",{id:"c",x1:20.715,x2:62.592,y1:6.956,y2:110.839,gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:"#313131"}),s.jsx("stop",{offset:1,stopColor:"#1B1B1B"})]})]})]}),ca={edgeNotificationsPermissionTimeout:15e3},re={WINDOW_MANAGEMENT:qe.WINDOW_MANAGEMENT,NOTIFICATIONS:qe.NOTIFICATIONS,POPUPS:"popups",PWA_INSTALL:"pwa-install"},la={name:re.WINDOW_MANAGEMENT,label:`Allow window management${Zt?"":" (not available in your browser)"}`,heading:"Allow Window Management",description:`By granting this permission you will be able to restore layouts containing multiple
|
|
19
|
-
windows and share context data between opened windows.`,instructions:{initial:"Click “Allow” when the browser prompt appears.",additional:`It seems that you closed the permission prompt.
|
|
20
|
-
Click the "Open permissions prompt" button again and grant the Window Management
|
|
21
|
-
permission to allow the platform to function properly.`},Image:sa,actionBtnText:"Open permission prompt"},ua={name:re.NOTIFICATIONS,label:"Allow browser notifications",heading:"Allow Browser Notifications",description:`By granting this permission you will be able to receive platform notifications in the notification center of your
|
|
22
|
-
operating system.`,instructions:{initial:"Click “Allow” when the browser prompt appears.",additional:`It seems that you closed the permission prompt or your browser automatically blocks notifications.
|
|
23
|
-
To allow browser notifications, go to your browser settings or click the "Bell" icon
|
|
24
|
-
in the address bar and allow notifications for this site.`},Image:ra,actionBtnText:"Open permission prompt"},da={name:re.POPUPS,label:"Allow pop-ups",heading:"Allow Pop-ups",description:"By granting this permission you will be able to eject apps from workspaces and save them as part of a layout.",instructions:{initial:`Click the "Test Pop-Up Settings" button. It should open two pop-ups in order to test the
|
|
25
|
-
browser pop-up settings.`,additional:`It seems that pop-ups are disabled in your browser.
|
|
26
|
-
To allow pop-ups, go to your browser settings or click the "Pop-up blocked" icon
|
|
27
|
-
in the address bar and allow pop-ups for this site.`},Image:oa,actionBtnText:"Test pop-up settings"},fa={name:re.PWA_INSTALL,label:"Install as a PWA",heading:"Install as a PWA (optional)",description:"By installing the platform as a Progressive Web App you will get a similar experience as with native desktop apps.",instructions:{initial:"If your browser supports Progressive Web Apps, you can now install the platform as a PWA."},Image:ia,actionBtnText:"Continue to the platform"},en=[la,ua,da,fa],Yt={isCompleted:!1,state:"prompt"},pa={[re.WINDOW_MANAGEMENT]:Yt,[re.NOTIFICATIONS]:Yt,[re.POPUPS]:Yt,[re.PWA_INSTALL]:Yt},ha=t=>{const{permission:e}=Ve(),n=Zt&&e.statuses[re.WINDOW_MANAGEMENT]?.state==="granted",[r,o]=b.useState(null),[i,c]=Ie("sessionStorage",Bo,Qo),a=b.useRef(!1),l=hr(),u=pr(),d=b.useContext(ee.IOConnectContext),p=b.useCallback(async({name:f})=>{try{await d.layouts.setDefaultGlobal(f),o({name:f})}catch(h){console.error("Failed to set default layout: ",{error:h})}},[d]);return b.useEffect(()=>{if(!d||!window.iobrowser?.platformStarted||a.current)return;(async()=>{a.current=!0;const h=await d.layouts.getDefaultGlobal()||await d.layouts.get(ei,"Global");if(!h||(o({name:h.name}),i))return;if(t(!0),n){await l(h.name,c),t(!1);return}const m=await d.workspaces?.getWorkspace(g=>g.children.length===0),v=Js(h);Promise.all(v.map((g,w)=>u({id:g,reuseWorkspaceId:w===0?m?.id:void 0}))),c(h),t(!1)})()},[d,i,l,c,t,u,n]),{defaultLayout:r,selectedLayout:i,setDefaultLayout:p,setSelectedLayout:c}},ri=b.createContext(void 0),st=()=>{const t=b.useContext(ri);if(t===void 0)throw new Error("useLaunchpadAPI must be used within a LaunchpadAPIProvider");return t},ma=({children:t,setOpen:e,isOpen:n})=>{const[r,o]=b.useState(!1),{defaultLayout:i,selectedLayout:c,setDefaultLayout:a,setSelectedLayout:l}=ha(o),d={close:b.useCallback(()=>e(!1),[e]),isOpen:n,defaultLayout:i,selectedLayout:c,setDefaultLayout:a,setSelectedLayout:l,isLayoutOperationBlocked:r,setIsLayoutOperationBlocked:o};return s.jsx(ri.Provider,{value:d,children:t})},oi=()=>{const{isLayoutOperationBlocked:t,setIsLayoutOperationBlocked:e}=st();return async n=>{if(!t){e(!0);try{await n()}catch(r){console.error(r)}e(!1)}}};var an={},va={get exports(){return an},set exports(t){an=t}};(function(t,e){(function(n,r){var o="1.0.35",i="",c="?",a="function",l="undefined",u="object",d="string",p="major",f="model",h="name",m="type",v="vendor",g="version",w="architecture",E="console",x="mobile",C="tablet",y="smarttv",k="wearable",I="embedded",j=350,_="Amazon",L="Apple",F="ASUS",ie="BlackBerry",te="Browser",le="Chrome",we="Edge",J="Firefox",ne="Google",Oe="Huawei",ve="LG",S="Microsoft",P="Motorola",R="Opera",D="Samsung",N="Sharp",M="Sony",A="Xiaomi",W="Zebra",V="Facebook",$="Chromium OS",B="Mac OS",ae=function(Z,K){var H={};for(var Q in Z)K[Q]&&K[Q].length%2===0?H[Q]=K[Q].concat(Z[Q]):H[Q]=Z[Q];return H},T=function(Z){for(var K={},H=0;H<Z.length;H++)K[Z[H].toUpperCase()]=Z[H];return K},me=function(Z,K){return typeof Z===d?Ee(K).indexOf(Ee(Z))!==-1:!1},Ee=function(Z){return Z.toLowerCase()},ct=function(Z){return typeof Z===d?Z.replace(/[^\d\.]/g,i).split(".")[0]:r},lt=function(Z,K){if(typeof Z===d)return Z=Z.replace(/^\s\s*/,i),typeof K===l?Z:Z.substring(0,j)},Ze=function(Z,K){for(var H=0,Q,$e,Ae,q,U,Le;H<K.length&&!U;){var Sn=K[H],Fr=K[H+1];for(Q=$e=0;Q<Sn.length&&!U&&Sn[Q];)if(U=Sn[Q++].exec(Z),U)for(Ae=0;Ae<Fr.length;Ae++)Le=U[++$e],q=Fr[Ae],typeof q===u&&q.length>0?q.length===2?typeof q[1]==a?this[q[0]]=q[1].call(this,Le):this[q[0]]=q[1]:q.length===3?typeof q[1]===a&&!(q[1].exec&&q[1].test)?this[q[0]]=Le?q[1].call(this,Le,q[2]):r:this[q[0]]=Le?Le.replace(q[1],q[2]):r:q.length===4&&(this[q[0]]=Le?q[3].call(this,Le.replace(q[1],q[2])):r):this[q]=Le||r;H+=2}},jt=function(Z,K){for(var H in K)if(typeof K[H]===u&&K[H].length>0){for(var Q=0;Q<K[H].length;Q++)if(me(K[H][Q],Z))return H===c?r:H}else if(me(K[H],Z))return H===c?r:H;return Z},En={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},Ne={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Je={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[g,[h,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[g,[h,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[h,g],[/opios[\/ ]+([\w\.]+)/i],[g,[h,R+" Mini"]],[/\bopr\/([\w\.]+)/i],[g,[h,R]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[h,g],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[g,[h,"UC"+te]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[g,[h,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[g,[h,"WeChat"]],[/konqueror\/([\w\.]+)/i],[g,[h,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[g,[h,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[g,[h,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[h,/(.+)/,"$1 Secure "+te],g],[/\bfocus\/([\w\.]+)/i],[g,[h,J+" Focus"]],[/\bopt\/([\w\.]+)/i],[g,[h,R+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[g,[h,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[g,[h,"Dolphin"]],[/coast\/([\w\.]+)/i],[g,[h,R+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[g,[h,"MIUI "+te]],[/fxios\/([-\w\.]+)/i],[g,[h,J]],[/\bqihu|(qi?ho?o?|360)browser/i],[[h,"360 "+te]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[h,/(.+)/,"$1 "+te],g],[/(comodo_dragon)\/([\w\.]+)/i],[[h,/_/g," "],g],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[h,g],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[h],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[h,V],g],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[h,g],[/\bgsa\/([\w\.]+) .*safari\//i],[g,[h,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[g,[h,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[g,[h,le+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[h,le+" WebView"],g],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[g,[h,"Android "+te]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[h,g],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[g,[h,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[g,h],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[h,[g,jt,En]],[/(webkit|khtml)\/([\w\.]+)/i],[h,g],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[h,"Netscape"],g],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[g,[h,J+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[h,g],[/(cobalt)\/([\w\.]+)/i],[h,[g,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[w,"amd64"]],[/(ia32(?=;))/i],[[w,Ee]],[/((?:i[346]|x)86)[;\)]/i],[[w,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[w,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[w,"armhf"]],[/windows (ce|mobile); ppc;/i],[[w,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[w,/ower/,i,Ee]],[/(sun4\w)[;\)]/i],[[w,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[w,Ee]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[f,[v,D],[m,C]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[f,[v,D],[m,x]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[f,[v,L],[m,x]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[f,[v,L],[m,C]],[/(macintosh);/i],[f,[v,L]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[f,[v,N],[m,x]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[f,[v,Oe],[m,C]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[f,[v,Oe],[m,x]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[f,/_/g," "],[v,A],[m,x]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[f,/_/g," "],[v,A],[m,C]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[f,[v,"OPPO"],[m,x]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[f,[v,"Vivo"],[m,x]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[f,[v,"Realme"],[m,x]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[f,[v,P],[m,x]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[f,[v,P],[m,C]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[f,[v,ve],[m,C]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[f,[v,ve],[m,x]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[f,[v,"Lenovo"],[m,C]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[f,/_/g," "],[v,"Nokia"],[m,x]],[/(pixel c)\b/i],[f,[v,ne],[m,C]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[f,[v,ne],[m,x]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[f,[v,M],[m,x]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[f,"Xperia Tablet"],[v,M],[m,C]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[f,[v,"OnePlus"],[m,x]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[f,[v,_],[m,C]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[f,/(.+)/g,"Fire Phone $1"],[v,_],[m,x]],[/(playbook);[-\w\),; ]+(rim)/i],[f,v,[m,C]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[f,[v,ie],[m,x]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[f,[v,F],[m,C]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[f,[v,F],[m,x]],[/(nexus 9)/i],[f,[v,"HTC"],[m,C]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[v,[f,/_/g," "],[m,x]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[f,[v,"Acer"],[m,C]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[f,[v,"Meizu"],[m,x]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[v,f,[m,x]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[v,f,[m,C]],[/(surface duo)/i],[f,[v,S],[m,C]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[f,[v,"Fairphone"],[m,x]],[/(u304aa)/i],[f,[v,"AT&T"],[m,x]],[/\bsie-(\w*)/i],[f,[v,"Siemens"],[m,x]],[/\b(rct\w+) b/i],[f,[v,"RCA"],[m,C]],[/\b(venue[\d ]{2,7}) b/i],[f,[v,"Dell"],[m,C]],[/\b(q(?:mv|ta)\w+) b/i],[f,[v,"Verizon"],[m,C]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[f,[v,"Barnes & Noble"],[m,C]],[/\b(tm\d{3}\w+) b/i],[f,[v,"NuVision"],[m,C]],[/\b(k88) b/i],[f,[v,"ZTE"],[m,C]],[/\b(nx\d{3}j) b/i],[f,[v,"ZTE"],[m,x]],[/\b(gen\d{3}) b.+49h/i],[f,[v,"Swiss"],[m,x]],[/\b(zur\d{3}) b/i],[f,[v,"Swiss"],[m,C]],[/\b((zeki)?tb.*\b) b/i],[f,[v,"Zeki"],[m,C]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[v,"Dragon Touch"],f,[m,C]],[/\b(ns-?\w{0,9}) b/i],[f,[v,"Insignia"],[m,C]],[/\b((nxa|next)-?\w{0,9}) b/i],[f,[v,"NextBook"],[m,C]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[v,"Voice"],f,[m,x]],[/\b(lvtel\-)?(v1[12]) b/i],[[v,"LvTel"],f,[m,x]],[/\b(ph-1) /i],[f,[v,"Essential"],[m,x]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[f,[v,"Envizen"],[m,C]],[/\b(trio[-\w\. ]+) b/i],[f,[v,"MachSpeed"],[m,C]],[/\btu_(1491) b/i],[f,[v,"Rotor"],[m,C]],[/(shield[\w ]+) b/i],[f,[v,"Nvidia"],[m,C]],[/(sprint) (\w+)/i],[v,f,[m,x]],[/(kin\.[onetw]{3})/i],[[f,/\./g," "],[v,S],[m,x]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[f,[v,W],[m,C]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[f,[v,W],[m,x]],[/smart-tv.+(samsung)/i],[v,[m,y]],[/hbbtv.+maple;(\d+)/i],[[f,/^/,"SmartTV"],[v,D],[m,y]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[v,ve],[m,y]],[/(apple) ?tv/i],[v,[f,L+" TV"],[m,y]],[/crkey/i],[[f,le+"cast"],[v,ne],[m,y]],[/droid.+aft(\w)( bui|\))/i],[f,[v,_],[m,y]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[f,[v,N],[m,y]],[/(bravia[\w ]+)( bui|\))/i],[f,[v,M],[m,y]],[/(mitv-\w{5}) bui/i],[f,[v,A],[m,y]],[/Hbbtv.*(technisat) (.*);/i],[v,f,[m,y]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[v,lt],[f,lt],[m,y]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[m,y]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[v,f,[m,E]],[/droid.+; (shield) bui/i],[f,[v,"Nvidia"],[m,E]],[/(playstation [345portablevi]+)/i],[f,[v,M],[m,E]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[f,[v,S],[m,E]],[/((pebble))app/i],[v,f,[m,k]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[f,[v,L],[m,k]],[/droid.+; (glass) \d/i],[f,[v,ne],[m,k]],[/droid.+; (wt63?0{2,3})\)/i],[f,[v,W],[m,k]],[/(quest( 2| pro)?)/i],[f,[v,V],[m,k]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[v,[m,I]],[/(aeobc)\b/i],[f,[v,_],[m,I]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[f,[m,x]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[f,[m,C]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[m,C]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[m,x]],[/(android[-\w\. ]{0,9});.+buil/i],[f,[v,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[g,[h,we+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[g,[h,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[h,g],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[g,h]],os:[[/microsoft (windows) (vista|xp)/i],[h,g],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[h,[g,jt,Ne]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[h,"Windows"],[g,jt,Ne]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[g,/_/g,"."],[h,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[h,B],[g,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[g,h],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[h,g],[/\(bb(10);/i],[g,[h,ie]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[g,[h,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[g,[h,J+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[g,[h,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[g,[h,"watchOS"]],[/crkey\/([\d\.]+)/i],[g,[h,le+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[h,$],g],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[h,g],[/(sunos) ?([\w\.\d]*)/i],[[h,"Solaris"],g],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[h,g]]},ge=function(Z,K){if(typeof Z===u&&(K=Z,Z=r),!(this instanceof ge))return new ge(Z,K).getResult();var H=typeof n!==l&&n.navigator?n.navigator:r,Q=Z||(H&&H.userAgent?H.userAgent:i),$e=H&&H.userAgentData?H.userAgentData:r,Ae=K?ae(Je,K):Je,q=H&&H.userAgent==Q;return this.getBrowser=function(){var U={};return U[h]=r,U[g]=r,Ze.call(U,Q,Ae.browser),U[p]=ct(U[g]),q&&H&&H.brave&&typeof H.brave.isBrave==a&&(U[h]="Brave"),U},this.getCPU=function(){var U={};return U[w]=r,Ze.call(U,Q,Ae.cpu),U},this.getDevice=function(){var U={};return U[v]=r,U[f]=r,U[m]=r,Ze.call(U,Q,Ae.device),q&&!U[m]&&$e&&$e.mobile&&(U[m]=x),q&&U[f]=="Macintosh"&&H&&typeof H.standalone!==l&&H.maxTouchPoints&&H.maxTouchPoints>2&&(U[f]="iPad",U[m]=C),U},this.getEngine=function(){var U={};return U[h]=r,U[g]=r,Ze.call(U,Q,Ae.engine),U},this.getOS=function(){var U={};return U[h]=r,U[g]=r,Ze.call(U,Q,Ae.os),q&&!U[h]&&$e&&$e.platform!="Unknown"&&(U[h]=$e.platform.replace(/chrome os/i,$).replace(/macos/i,B)),U},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return Q},this.setUA=function(U){return Q=typeof U===d&&U.length>j?lt(U,j):U,this},this.setUA(Q),this};ge.VERSION=o,ge.BROWSER=T([h,g,p]),ge.CPU=T([w]),ge.DEVICE=T([f,v,m,E,x,y,C,k,I]),ge.ENGINE=ge.OS=T([h,g]),t.exports&&(e=t.exports=ge),e.UAParser=ge;var We=typeof n!==l&&(n.jQuery||n.Zepto);if(We&&!We.ua){var Be=new ge;We.ua=Be.getResult(),We.ua.get=function(){return Be.getUA()},We.ua.set=function(Z){Be.setUA(Z);var K=Be.getResult();for(var H in K)We.ua[H]=K[H]}}})(typeof window=="object"?window:as)})(va,an);const ga=new an.UAParser,ba=()=>Ke.useMemo(()=>ga.getBrowser(),[]);var Zr=function(e){return e.reduce(function(n,r){var o=r[0],i=r[1];return n[o]=i,n},{})},Br=typeof window<"u"&&window.document&&window.document.createElement?Ke.useLayoutEffect:Ke.useEffect,be="top",je="bottom",ke="right",ye="left",gn="auto",Bt=[be,je,ke,ye],xt="start",Wt="end",ya="clippingParents",ii="viewport",Pt="popper",wa="reference",$r=Bt.reduce(function(t,e){return t.concat([e+"-"+xt,e+"-"+Wt])},[]),si=[].concat(Bt,[gn]).reduce(function(t,e){return t.concat([e,e+"-"+xt,e+"-"+Wt])},[]),xa="beforeRead",Ca="read",Oa="afterRead",Ea="beforeMain",Sa="main",ja="afterMain",ka="beforeWrite",Ta="write",Pa="afterWrite",Bn=[xa,Ca,Oa,Ea,Sa,ja,ka,Ta,Pa];function De(t){return t?(t.nodeName||"").toLowerCase():null}function Te(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function it(t){var e=Te(t).Element;return t instanceof e||t instanceof Element}function Ce(t){var e=Te(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function mr(t){if(typeof ShadowRoot>"u")return!1;var e=Te(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Ia(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},o=e.attributes[n]||{},i=e.elements[n];!Ce(i)||!De(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(c){var a=o[c];a===!1?i.removeAttribute(c):i.setAttribute(c,a===!0?"":a)}))})}function _a(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var o=e.elements[r],i=e.attributes[r]||{},c=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),a=c.reduce(function(l,u){return l[u]="",l},{});!Ce(o)||!De(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const Na={name:"applyStyles",enabled:!0,phase:"write",fn:Ia,effect:_a,requires:["computeStyles"]};function Pe(t){return t.split("-")[0]}var ot=Math.max,cn=Math.min,Ct=Math.round;function $n(){var t=navigator.userAgentData;return t!=null&&t.brands?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function ai(){return!/^((?!chrome|android).)*safari/i.test($n())}function Ot(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),o=1,i=1;e&&Ce(t)&&(o=t.offsetWidth>0&&Ct(r.width)/t.offsetWidth||1,i=t.offsetHeight>0&&Ct(r.height)/t.offsetHeight||1);var c=it(t)?Te(t):window,a=c.visualViewport,l=!ai()&&n,u=(r.left+(l&&a?a.offsetLeft:0))/o,d=(r.top+(l&&a?a.offsetTop:0))/i,p=r.width/o,f=r.height/i;return{width:p,height:f,top:d,right:u+p,bottom:d+f,left:u,x:u,y:d}}function vr(t){var e=Ot(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function ci(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&mr(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function _e(t){return Te(t).getComputedStyle(t)}function Aa(t){return["table","td","th"].indexOf(De(t))>=0}function Ye(t){return((it(t)?t.ownerDocument:t.document)||window.document).documentElement}function bn(t){return De(t)==="html"?t:t.assignedSlot||t.parentNode||(mr(t)?t.host:null)||Ye(t)}function Gr(t){return!Ce(t)||_e(t).position==="fixed"?null:t.offsetParent}function La(t){var e=/firefox/i.test($n()),n=/Trident/i.test($n());if(n&&Ce(t)){var r=_e(t);if(r.position==="fixed")return null}var o=bn(t);for(mr(o)&&(o=o.host);Ce(o)&&["html","body"].indexOf(De(o))<0;){var i=_e(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function $t(t){for(var e=Te(t),n=Gr(t);n&&Aa(n)&&_e(n).position==="static";)n=Gr(n);return n&&(De(n)==="html"||De(n)==="body"&&_e(n).position==="static")?e:n||La(t)||e}function gr(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Rt(t,e,n){return ot(t,cn(e,n))}function Ra(t,e,n){var r=Rt(t,e,n);return r>n?n:r}function li(){return{top:0,right:0,bottom:0,left:0}}function ui(t){return Object.assign({},li(),t)}function di(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var Ma=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,ui(typeof e!="number"?e:di(e,Bt))};function Da(t){var e,n=t.state,r=t.name,o=t.options,i=n.elements.arrow,c=n.modifiersData.popperOffsets,a=Pe(n.placement),l=gr(a),u=[ye,ke].indexOf(a)>=0,d=u?"height":"width";if(!(!i||!c)){var p=Ma(o.padding,n),f=vr(i),h=l==="y"?be:ye,m=l==="y"?je:ke,v=n.rects.reference[d]+n.rects.reference[l]-c[l]-n.rects.popper[d],g=c[l]-n.rects.reference[l],w=$t(i),E=w?l==="y"?w.clientHeight||0:w.clientWidth||0:0,x=v/2-g/2,C=p[h],y=E-f[d]-p[m],k=E/2-f[d]/2+x,I=Rt(C,k,y),j=l;n.modifiersData[r]=(e={},e[j]=I,e.centerOffset=I-k,e)}}function Wa(t){var e=t.state,n=t.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;if(o!=null&&!(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o))){if(process.env.NODE_ENV!=="production"&&(Ce(o)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),!ci(e.elements.popper,o)){process.env.NODE_ENV!=="production"&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}e.elements.arrow=o}}const Ha={name:"arrow",enabled:!0,phase:"main",fn:Da,effect:Wa,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Et(t){return t.split("-")[1]}var Ua={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Fa(t){var e=t.x,n=t.y,r=window,o=r.devicePixelRatio||1;return{x:Ct(e*o)/o||0,y:Ct(n*o)/o||0}}function Kr(t){var e,n=t.popper,r=t.popperRect,o=t.placement,i=t.variation,c=t.offsets,a=t.position,l=t.gpuAcceleration,u=t.adaptive,d=t.roundOffsets,p=t.isFixed,f=c.x,h=f===void 0?0:f,m=c.y,v=m===void 0?0:m,g=typeof d=="function"?d({x:h,y:v}):{x:h,y:v};h=g.x,v=g.y;var w=c.hasOwnProperty("x"),E=c.hasOwnProperty("y"),x=ye,C=be,y=window;if(u){var k=$t(n),I="clientHeight",j="clientWidth";if(k===Te(n)&&(k=Ye(n),_e(k).position!=="static"&&a==="absolute"&&(I="scrollHeight",j="scrollWidth")),k=k,o===be||(o===ye||o===ke)&&i===Wt){C=je;var _=p&&k===y&&y.visualViewport?y.visualViewport.height:k[I];v-=_-r.height,v*=l?1:-1}if(o===ye||(o===be||o===je)&&i===Wt){x=ke;var L=p&&k===y&&y.visualViewport?y.visualViewport.width:k[j];h-=L-r.width,h*=l?1:-1}}var F=Object.assign({position:a},u&&Ua),ie=d===!0?Fa({x:h,y:v}):{x:h,y:v};if(h=ie.x,v=ie.y,l){var te;return Object.assign({},F,(te={},te[C]=E?"0":"",te[x]=w?"0":"",te.transform=(y.devicePixelRatio||1)<=1?"translate("+h+"px, "+v+"px)":"translate3d("+h+"px, "+v+"px, 0)",te))}return Object.assign({},F,(e={},e[C]=E?v+"px":"",e[x]=w?h+"px":"",e.transform="",e))}function Va(t){var e=t.state,n=t.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,c=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a;if(process.env.NODE_ENV!=="production"){var u=_e(e.elements.popper).transitionProperty||"";c&&["transform","top","right","bottom","left"].some(function(p){return u.indexOf(p)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
|
|
28
|
-
|
|
29
|
-
`,'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.",`
|
|
30
|
-
|
|
31
|
-
`,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var d={placement:Pe(e.placement),variation:Et(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Kr(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:c,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Kr(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const za={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Va,data:{}};var Xt={passive:!0};function Za(t){var e=t.state,n=t.instance,r=t.options,o=r.scroll,i=o===void 0?!0:o,c=r.resize,a=c===void 0?!0:c,l=Te(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,Xt)}),a&&l.addEventListener("resize",n.update,Xt),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,Xt)}),a&&l.removeEventListener("resize",n.update,Xt)}}const Ba={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Za,data:{}};var $a={left:"right",right:"left",bottom:"top",top:"bottom"};function tn(t){return t.replace(/left|right|bottom|top/g,function(e){return $a[e]})}var Ga={start:"end",end:"start"};function qr(t){return t.replace(/start|end/g,function(e){return Ga[e]})}function br(t){var e=Te(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function yr(t){return Ot(Ye(t)).left+br(t).scrollLeft}function Ka(t,e){var n=Te(t),r=Ye(t),o=n.visualViewport,i=r.clientWidth,c=r.clientHeight,a=0,l=0;if(o){i=o.width,c=o.height;var u=ai();(u||!u&&e==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:c,x:a+yr(t),y:l}}function qa(t){var e,n=Ye(t),r=br(t),o=(e=t.ownerDocument)==null?void 0:e.body,i=ot(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),c=ot(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+yr(t),l=-r.scrollTop;return _e(o||n).direction==="rtl"&&(a+=ot(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:c,x:a,y:l}}function wr(t){var e=_e(t),n=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function fi(t){return["html","body","#document"].indexOf(De(t))>=0?t.ownerDocument.body:Ce(t)&&wr(t)?t:fi(bn(t))}function Mt(t,e){var n;e===void 0&&(e=[]);var r=fi(t),o=r===((n=t.ownerDocument)==null?void 0:n.body),i=Te(r),c=o?[i].concat(i.visualViewport||[],wr(r)?r:[]):r,a=e.concat(c);return o?a:a.concat(Mt(bn(c)))}function Gn(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Ya(t,e){var n=Ot(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function Yr(t,e,n){return e===ii?Gn(Ka(t,n)):it(e)?Ya(e,n):Gn(qa(Ye(t)))}function Xa(t){var e=Mt(bn(t)),n=["absolute","fixed"].indexOf(_e(t).position)>=0,r=n&&Ce(t)?$t(t):t;return it(r)?e.filter(function(o){return it(o)&&ci(o,r)&&De(o)!=="body"}):[]}function Ja(t,e,n,r){var o=e==="clippingParents"?Xa(t):[].concat(e),i=[].concat(o,[n]),c=i[0],a=i.reduce(function(l,u){var d=Yr(t,u,r);return l.top=ot(d.top,l.top),l.right=cn(d.right,l.right),l.bottom=cn(d.bottom,l.bottom),l.left=ot(d.left,l.left),l},Yr(t,c,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function pi(t){var e=t.reference,n=t.element,r=t.placement,o=r?Pe(r):null,i=r?Et(r):null,c=e.x+e.width/2-n.width/2,a=e.y+e.height/2-n.height/2,l;switch(o){case be:l={x:c,y:e.y-n.height};break;case je:l={x:c,y:e.y+e.height};break;case ke:l={x:e.x+e.width,y:a};break;case ye:l={x:e.x-n.width,y:a};break;default:l={x:e.x,y:e.y}}var u=o?gr(o):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case xt:l[u]=l[u]-(e[d]/2-n[d]/2);break;case Wt:l[u]=l[u]+(e[d]/2-n[d]/2);break}}return l}function Ht(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=r===void 0?t.placement:r,i=n.strategy,c=i===void 0?t.strategy:i,a=n.boundary,l=a===void 0?ya:a,u=n.rootBoundary,d=u===void 0?ii:u,p=n.elementContext,f=p===void 0?Pt:p,h=n.altBoundary,m=h===void 0?!1:h,v=n.padding,g=v===void 0?0:v,w=ui(typeof g!="number"?g:di(g,Bt)),E=f===Pt?wa:Pt,x=t.rects.popper,C=t.elements[m?E:f],y=Ja(it(C)?C:C.contextElement||Ye(t.elements.popper),l,d,c),k=Ot(t.elements.reference),I=pi({reference:k,element:x,strategy:"absolute",placement:o}),j=Gn(Object.assign({},x,I)),_=f===Pt?j:k,L={top:y.top-_.top+w.top,bottom:_.bottom-y.bottom+w.bottom,left:y.left-_.left+w.left,right:_.right-y.right+w.right},F=t.modifiersData.offset;if(f===Pt&&F){var ie=F[o];Object.keys(L).forEach(function(te){var le=[ke,je].indexOf(te)>=0?1:-1,we=[be,je].indexOf(te)>=0?"y":"x";L[te]+=ie[we]*le})}return L}function Qa(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=n.boundary,i=n.rootBoundary,c=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?si:l,d=Et(r),p=d?a?$r:$r.filter(function(m){return Et(m)===d}):Bt,f=p.filter(function(m){return u.indexOf(m)>=0});f.length===0&&(f=p,process.env.NODE_ENV!=="production"&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var h=f.reduce(function(m,v){return m[v]=Ht(t,{placement:v,boundary:o,rootBoundary:i,padding:c})[Pe(v)],m},{});return Object.keys(h).sort(function(m,v){return h[m]-h[v]})}function ec(t){if(Pe(t)===gn)return[];var e=tn(t);return[qr(t),e,qr(e)]}function tc(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,c=n.altAxis,a=c===void 0?!0:c,l=n.fallbackPlacements,u=n.padding,d=n.boundary,p=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,m=h===void 0?!0:h,v=n.allowedAutoPlacements,g=e.options.placement,w=Pe(g),E=w===g,x=l||(E||!m?[tn(g)]:ec(g)),C=[g].concat(x).reduce(function(N,M){return N.concat(Pe(M)===gn?Qa(e,{placement:M,boundary:d,rootBoundary:p,padding:u,flipVariations:m,allowedAutoPlacements:v}):M)},[]),y=e.rects.reference,k=e.rects.popper,I=new Map,j=!0,_=C[0],L=0;L<C.length;L++){var F=C[L],ie=Pe(F),te=Et(F)===xt,le=[be,je].indexOf(ie)>=0,we=le?"width":"height",J=Ht(e,{placement:F,boundary:d,rootBoundary:p,altBoundary:f,padding:u}),ne=le?te?ke:ye:te?je:be;y[we]>k[we]&&(ne=tn(ne));var Oe=tn(ne),ve=[];if(i&&ve.push(J[ie]<=0),a&&ve.push(J[ne]<=0,J[Oe]<=0),ve.every(function(N){return N})){_=F,j=!1;break}I.set(F,ve)}if(j)for(var S=m?3:1,P=function(M){var A=C.find(function(W){var V=I.get(W);if(V)return V.slice(0,M).every(function($){return $})});if(A)return _=A,"break"},R=S;R>0;R--){var D=P(R);if(D==="break")break}e.placement!==_&&(e.modifiersData[r]._skip=!0,e.placement=_,e.reset=!0)}}const nc={name:"flip",enabled:!0,phase:"main",fn:tc,requiresIfExists:["offset"],data:{_skip:!1}};function Xr(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Jr(t){return[be,ke,je,ye].some(function(e){return t[e]>=0})}function rc(t){var e=t.state,n=t.name,r=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,c=Ht(e,{elementContext:"reference"}),a=Ht(e,{altBoundary:!0}),l=Xr(c,r),u=Xr(a,o,i),d=Jr(l),p=Jr(u);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:p},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":p})}const oc={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:rc};function ic(t,e,n){var r=Pe(t),o=[ye,be].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,c=i[0],a=i[1];return c=c||0,a=(a||0)*o,[ye,ke].indexOf(r)>=0?{x:a,y:c}:{x:c,y:a}}function sc(t){var e=t.state,n=t.options,r=t.name,o=n.offset,i=o===void 0?[0,0]:o,c=si.reduce(function(d,p){return d[p]=ic(p,e.rects,i),d},{}),a=c[e.placement],l=a.x,u=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=u),e.modifiersData[r]=c}const ac={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:sc};function cc(t){var e=t.state,n=t.name;e.modifiersData[n]=pi({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const lc={name:"popperOffsets",enabled:!0,phase:"read",fn:cc,data:{}};function uc(t){return t==="x"?"y":"x"}function dc(t){var e=t.state,n=t.options,r=t.name,o=n.mainAxis,i=o===void 0?!0:o,c=n.altAxis,a=c===void 0?!1:c,l=n.boundary,u=n.rootBoundary,d=n.altBoundary,p=n.padding,f=n.tether,h=f===void 0?!0:f,m=n.tetherOffset,v=m===void 0?0:m,g=Ht(e,{boundary:l,rootBoundary:u,padding:p,altBoundary:d}),w=Pe(e.placement),E=Et(e.placement),x=!E,C=gr(w),y=uc(C),k=e.modifiersData.popperOffsets,I=e.rects.reference,j=e.rects.popper,_=typeof v=="function"?v(Object.assign({},e.rects,{placement:e.placement})):v,L=typeof _=="number"?{mainAxis:_,altAxis:_}:Object.assign({mainAxis:0,altAxis:0},_),F=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,ie={x:0,y:0};if(k){if(i){var te,le=C==="y"?be:ye,we=C==="y"?je:ke,J=C==="y"?"height":"width",ne=k[C],Oe=ne+g[le],ve=ne-g[we],S=h?-j[J]/2:0,P=E===xt?I[J]:j[J],R=E===xt?-j[J]:-I[J],D=e.elements.arrow,N=h&&D?vr(D):{width:0,height:0},M=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:li(),A=M[le],W=M[we],V=Rt(0,I[J],N[J]),$=x?I[J]/2-S-V-A-L.mainAxis:P-V-A-L.mainAxis,B=x?-I[J]/2+S+V+W+L.mainAxis:R+V+W+L.mainAxis,ae=e.elements.arrow&&$t(e.elements.arrow),T=ae?C==="y"?ae.clientTop||0:ae.clientLeft||0:0,me=(te=F?.[C])!=null?te:0,Ee=ne+$-me-T,ct=ne+B-me,lt=Rt(h?cn(Oe,Ee):Oe,ne,h?ot(ve,ct):ve);k[C]=lt,ie[C]=lt-ne}if(a){var Ze,jt=C==="x"?be:ye,En=C==="x"?je:ke,Ne=k[y],Je=y==="y"?"height":"width",ge=Ne+g[jt],We=Ne-g[En],Be=[be,ye].indexOf(w)!==-1,Z=(Ze=F?.[y])!=null?Ze:0,K=Be?ge:Ne-I[Je]-j[Je]-Z+L.altAxis,H=Be?Ne+I[Je]+j[Je]-Z-L.altAxis:We,Q=h&&Be?Ra(K,Ne,H):Rt(h?K:ge,Ne,h?H:We);k[y]=Q,ie[y]=Q-Ne}e.modifiersData[r]=ie}}const fc={name:"preventOverflow",enabled:!0,phase:"main",fn:dc,requiresIfExists:["offset"]};function pc(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function hc(t){return t===Te(t)||!Ce(t)?br(t):pc(t)}function mc(t){var e=t.getBoundingClientRect(),n=Ct(e.width)/t.offsetWidth||1,r=Ct(e.height)/t.offsetHeight||1;return n!==1||r!==1}function vc(t,e,n){n===void 0&&(n=!1);var r=Ce(e),o=Ce(e)&&mc(e),i=Ye(e),c=Ot(t,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((De(e)!=="body"||wr(i))&&(a=hc(e)),Ce(e)?(l=Ot(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):i&&(l.x=yr(i))),{x:c.left+a.scrollLeft-l.x,y:c.top+a.scrollTop-l.y,width:c.width,height:c.height}}function gc(t){var e=new Map,n=new Set,r=[];t.forEach(function(i){e.set(i.name,i)});function o(i){n.add(i.name);var c=[].concat(i.requires||[],i.requiresIfExists||[]);c.forEach(function(a){if(!n.has(a)){var l=e.get(a);l&&o(l)}}),r.push(i)}return t.forEach(function(i){n.has(i.name)||o(i)}),r}function bc(t){var e=gc(t);return Bn.reduce(function(n,r){return n.concat(e.filter(function(o){return o.phase===r}))},[])}function yc(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function Ge(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return[].concat(n).reduce(function(o,i){return o.replace(/%s/,i)},t)}var Qe='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',wc='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',Qr=["name","enabled","phase","fn","effect","requires","options"];function xc(t){t.forEach(function(e){[].concat(Object.keys(e),Qr).filter(function(n,r,o){return o.indexOf(n)===r}).forEach(function(n){switch(n){case"name":typeof e.name!="string"&&console.error(Ge(Qe,String(e.name),'"name"','"string"','"'+String(e.name)+'"'));break;case"enabled":typeof e.enabled!="boolean"&&console.error(Ge(Qe,e.name,'"enabled"','"boolean"','"'+String(e.enabled)+'"'));break;case"phase":Bn.indexOf(e.phase)<0&&console.error(Ge(Qe,e.name,'"phase"',"either "+Bn.join(", "),'"'+String(e.phase)+'"'));break;case"fn":typeof e.fn!="function"&&console.error(Ge(Qe,e.name,'"fn"','"function"','"'+String(e.fn)+'"'));break;case"effect":e.effect!=null&&typeof e.effect!="function"&&console.error(Ge(Qe,e.name,'"effect"','"function"','"'+String(e.fn)+'"'));break;case"requires":e.requires!=null&&!Array.isArray(e.requires)&&console.error(Ge(Qe,e.name,'"requires"','"array"','"'+String(e.requires)+'"'));break;case"requiresIfExists":Array.isArray(e.requiresIfExists)||console.error(Ge(Qe,e.name,'"requiresIfExists"','"array"','"'+String(e.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+e.name+'" modifier, valid properties are '+Qr.map(function(r){return'"'+r+'"'}).join(", ")+'; but "'+n+'" was provided.')}e.requires&&e.requires.forEach(function(r){t.find(function(o){return o.name===r})==null&&console.error(Ge(wc,String(e.name),r,r))})})})}function Cc(t,e){var n=new Set;return t.filter(function(r){var o=e(r);if(!n.has(o))return n.add(o),!0})}function Oc(t){var e=t.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var eo="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Ec="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",to={placement:"bottom",modifiers:[],strategy:"absolute"};function no(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Sc(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,o=e.defaultOptions,i=o===void 0?to:o;return function(a,l,u){u===void 0&&(u=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},to,i),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},p=[],f=!1,h={state:d,setOptions:function(w){var E=typeof w=="function"?w(d.options):w;v(),d.options=Object.assign({},i,d.options,E),d.scrollParents={reference:it(a)?Mt(a):a.contextElement?Mt(a.contextElement):[],popper:Mt(l)};var x=bc(Oc([].concat(r,d.options.modifiers)));if(d.orderedModifiers=x.filter(function(F){return F.enabled}),process.env.NODE_ENV!=="production"){var C=Cc([].concat(x,d.options.modifiers),function(F){var ie=F.name;return ie});if(xc(C),Pe(d.options.placement)===gn){var y=d.orderedModifiers.find(function(F){var ie=F.name;return ie==="flip"});y||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var k=_e(l),I=k.marginTop,j=k.marginRight,_=k.marginBottom,L=k.marginLeft;[I,j,_,L].some(function(F){return parseFloat(F)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return m(),h.update()},forceUpdate:function(){if(!f){var w=d.elements,E=w.reference,x=w.popper;if(!no(E,x)){process.env.NODE_ENV!=="production"&&console.error(eo);return}d.rects={reference:vc(E,$t(x),d.options.strategy==="fixed"),popper:vr(x)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(F){return d.modifiersData[F.name]=Object.assign({},F.data)});for(var C=0,y=0;y<d.orderedModifiers.length;y++){if(process.env.NODE_ENV!=="production"&&(C+=1,C>100)){console.error(Ec);break}if(d.reset===!0){d.reset=!1,y=-1;continue}var k=d.orderedModifiers[y],I=k.fn,j=k.options,_=j===void 0?{}:j,L=k.name;typeof I=="function"&&(d=I({state:d,options:_,name:L,instance:h})||d)}}},update:yc(function(){return new Promise(function(g){h.forceUpdate(),g(d)})}),destroy:function(){v(),f=!0}};if(!no(a,l))return process.env.NODE_ENV!=="production"&&console.error(eo),h;h.setOptions(u).then(function(g){!f&&u.onFirstUpdate&&u.onFirstUpdate(g)});function m(){d.orderedModifiers.forEach(function(g){var w=g.name,E=g.options,x=E===void 0?{}:E,C=g.effect;if(typeof C=="function"){var y=C({state:d,name:w,instance:h,options:x}),k=function(){};p.push(y||k)}})}function v(){p.forEach(function(g){return g()}),p=[]}return h}}var jc=[Ba,lc,za,Na,ac,nc,fc,Ha,oc],kc=Sc({defaultModifiers:jc}),Tc=typeof Element<"u",Pc=typeof Map=="function",Ic=typeof Set=="function",_c=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function nn(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var n,r,o;if(Array.isArray(t)){if(n=t.length,n!=e.length)return!1;for(r=n;r--!==0;)if(!nn(t[r],e[r]))return!1;return!0}var i;if(Pc&&t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i=t.entries();!(r=i.next()).done;)if(!e.has(r.value[0]))return!1;for(i=t.entries();!(r=i.next()).done;)if(!nn(r.value[1],e.get(r.value[0])))return!1;return!0}if(Ic&&t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i=t.entries();!(r=i.next()).done;)if(!e.has(r.value[0]))return!1;return!0}if(_c&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){if(n=t.length,n!=e.length)return!1;for(r=n;r--!==0;)if(t[r]!==e[r])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf&&typeof t.valueOf=="function"&&typeof e.valueOf=="function")return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString&&typeof t.toString=="function"&&typeof e.toString=="function")return t.toString()===e.toString();if(o=Object.keys(t),n=o.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[r]))return!1;if(Tc&&t instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&t.$$typeof)&&!nn(t[o[r]],e[o[r]]))return!1;return!0}return t!==t&&e!==e}var Nc=function(e,n){try{return nn(e,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}},Ac=[],Lc=function(e,n,r){r===void 0&&(r={});var o=Ke.useRef(null),i={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||Ac},c=Ke.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),a=c[0],l=c[1],u=Ke.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(h){var m=h.state,v=Object.keys(m.elements);rs.flushSync(function(){l({styles:Zr(v.map(function(g){return[g,m.styles[g]||{}]})),attributes:Zr(v.map(function(g){return[g,m.attributes[g]]}))})})},requires:["computeStyles"]}},[]),d=Ke.useMemo(function(){var f={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[u,{name:"applyStyles",enabled:!1}])};return Nc(o.current,f)?o.current||f:(o.current=f,f)},[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,u]),p=Ke.useRef();return Br(function(){p.current&&p.current.setOptions(d)},[d]),Br(function(){if(!(e==null||n==null)){var f=r.createPopper||kc,h=f(e,n,d);return p.current=h,function(){h.destroy(),p.current=null}}},[e,n,r.createPopper]),{state:p.current?p.current.state:null,styles:a.styles,attributes:a.attributes,update:p.current?p.current.update:null,forceUpdate:p.current?p.current.forceUpdate:null}};const hi=b.forwardRef((t,e)=>{const{actions:n,className:r,onClose:o,onActionItemClick:i,...c}=t,a=b.useRef({}),[l,u]=b.useState(0),d=p=>{a.current[p]?.focus(),u(p)};return b.useEffect(()=>{a.current[l]?.focus()},[]),s.jsx("ul",{className:G(r,"io-dropdown-panel"),ref:e,...c,"data-testid":"context-menu",onKeyDown:p=>zo({event:p,currentIndex:l,min:0,max:n.length-1,moveFocus:d,onClose:o}),children:n.map((p,f)=>s.jsx("li",{className:G("io-list-item",p.disabled&&"disabled"),...yt(h=>i(h,p)),ref:h=>a.current[f]=h,tabIndex:-1,"data-testid":`context-menu-item-${p.name}`,children:s.jsx("span",{className:"io-list-title",children:p.displayName||p.name})},p.name))})});function xr(t){const{iconName:e,iconSize:n,actions:r,onActionItemClick:o,isTabStop:i}=t,[c,a]=b.useState(!1),[l,u]=b.useState(null),[d,p]=b.useState(null),{styles:f,attributes:h}=Lc(l,d,{placement:"bottom-end"});b.useEffect(()=>{if(!c)return;const g=E=>{l?.contains(E.target)||d?.contains(E.target)||a(!1)},w=()=>{document.activeElement?.nodeName==="IFRAME"&&a(!1)};return document.body.addEventListener("click",g,!0),window.addEventListener("blur",w),()=>{document.body.removeEventListener("click",g,!0),window.removeEventListener("blur",w)}},[d,l,c,a]);const m=g=>{g.stopPropagation(),a(w=>!w),d?.focus()},v=(g,w)=>{g.stopPropagation(),o(g,w),a(!1)};return s.jsxs(s.Fragment,{children:[s.jsx(oe,{tabIndex:i?0:-1,size:n,name:e,handleClick:m,ref:u,"data-testid":"context-menu-icon"}),c&&s.jsx(hi,{actions:r,style:f.popper,ref:p,onActionItemClick:v,onClose:()=>{l?.focus(),a(!1)},...h.popper})]})}const mi=t=>{const{className:e,isFavoritismEnabled:n=!0,item:r,onClick:o,onKeyDown:i,focused:c,...a}=t,{favoriteEntities:l,toggleFavorite:u}=mn(),{description:d,icon:p="application",iconSrc:f,isOpen:h=!1,title:m,contextMenuActions:v}=r,g=n&&l.some(w=>w.type===r.type&&w.title===r.title);return s.jsxs("div",{tabIndex:c?0:-1,className:G(e,"io-list-item"),onKeyDown:w=>{if(Vo(w)){o(w),w.preventDefault(),w.stopPropagation();return}i(w)},onClick:o,"data-testid":"base-section-item",...a,children:[s.jsxs("div",{className:"io-list-row",children:[s.jsx(oe,{size:8,name:h?"check":"","data-testid":"open-check-icon"}),f?s.jsx(dr,{className:"section-img-icon",src:f,alt:`${m} icon`,size:14,"data-testid":"img-icon"}):s.jsx(oe,{className:"section-icon",size:14,name:p,"data-testid":"icon"}),s.jsx("span",{className:"title","data-testid":"title",children:m}),h&&s.jsx("span",{className:"opened","data-testid":"opened-label",children:"Opened"}),v&&v.length>0&&s.jsx(xr,{iconName:"ellipsis",iconSize:16,actions:v,onActionItemClick:o,isTabStop:c}),n&&s.jsx(oe,{tabIndex:c?0:-1,className:G("favorite",g&&"visible"),name:g?"star-full":"star",handleClick:w=>{w.stopPropagation(),u(r)},size:16,"data-testid":"favorite-icon"})]}),d&&s.jsx("div",{className:"io-list-row",children:s.jsx("span",{className:"description","data-testid":"description",children:d})})]})};var O={},ro={get exports(){return O},set exports(t){O=t}},ln={},Rc={get exports(){return ln},set exports(t){ln=t}},Y={};/** @license React v16.13.1
|
|
32
|
-
* react-is.production.min.js
|
|
33
|
-
*
|
|
34
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
35
|
-
*
|
|
36
|
-
* This source code is licensed under the MIT license found in the
|
|
37
|
-
* LICENSE file in the root directory of this source tree.
|
|
38
|
-
*/var oo;function Mc(){if(oo)return Y;oo=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,c=t?Symbol.for("react.provider"):60109,a=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,p=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,v=t?Symbol.for("react.block"):60121,g=t?Symbol.for("react.fundamental"):60117,w=t?Symbol.for("react.responder"):60118,E=t?Symbol.for("react.scope"):60119;function x(y){if(typeof y=="object"&&y!==null){var k=y.$$typeof;switch(k){case e:switch(y=y.type,y){case l:case u:case r:case i:case o:case p:return y;default:switch(y=y&&y.$$typeof,y){case a:case d:case m:case h:case c:return y;default:return k}}case n:return k}}}function C(y){return x(y)===u}return Y.AsyncMode=l,Y.ConcurrentMode=u,Y.ContextConsumer=a,Y.ContextProvider=c,Y.Element=e,Y.ForwardRef=d,Y.Fragment=r,Y.Lazy=m,Y.Memo=h,Y.Portal=n,Y.Profiler=i,Y.StrictMode=o,Y.Suspense=p,Y.isAsyncMode=function(y){return C(y)||x(y)===l},Y.isConcurrentMode=C,Y.isContextConsumer=function(y){return x(y)===a},Y.isContextProvider=function(y){return x(y)===c},Y.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},Y.isForwardRef=function(y){return x(y)===d},Y.isFragment=function(y){return x(y)===r},Y.isLazy=function(y){return x(y)===m},Y.isMemo=function(y){return x(y)===h},Y.isPortal=function(y){return x(y)===n},Y.isProfiler=function(y){return x(y)===i},Y.isStrictMode=function(y){return x(y)===o},Y.isSuspense=function(y){return x(y)===p},Y.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===u||y===i||y===o||y===p||y===f||typeof y=="object"&&y!==null&&(y.$$typeof===m||y.$$typeof===h||y.$$typeof===c||y.$$typeof===a||y.$$typeof===d||y.$$typeof===g||y.$$typeof===w||y.$$typeof===E||y.$$typeof===v)},Y.typeOf=x,Y}var X={};/** @license React v16.13.1
|
|
39
|
-
* react-is.development.js
|
|
40
|
-
*
|
|
41
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
42
|
-
*
|
|
43
|
-
* This source code is licensed under the MIT license found in the
|
|
44
|
-
* LICENSE file in the root directory of this source tree.
|
|
45
|
-
*/var io;function Dc(){return io||(io=1,process.env.NODE_ENV!=="production"&&function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,c=t?Symbol.for("react.provider"):60109,a=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,p=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,v=t?Symbol.for("react.block"):60121,g=t?Symbol.for("react.fundamental"):60117,w=t?Symbol.for("react.responder"):60118,E=t?Symbol.for("react.scope"):60119;function x(T){return typeof T=="string"||typeof T=="function"||T===r||T===u||T===i||T===o||T===p||T===f||typeof T=="object"&&T!==null&&(T.$$typeof===m||T.$$typeof===h||T.$$typeof===c||T.$$typeof===a||T.$$typeof===d||T.$$typeof===g||T.$$typeof===w||T.$$typeof===E||T.$$typeof===v)}function C(T){if(typeof T=="object"&&T!==null){var me=T.$$typeof;switch(me){case e:var Ee=T.type;switch(Ee){case l:case u:case r:case i:case o:case p:return Ee;default:var ct=Ee&&Ee.$$typeof;switch(ct){case a:case d:case m:case h:case c:return ct;default:return me}}case n:return me}}}var y=l,k=u,I=a,j=c,_=e,L=d,F=r,ie=m,te=h,le=n,we=i,J=o,ne=p,Oe=!1;function ve(T){return Oe||(Oe=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),S(T)||C(T)===l}function S(T){return C(T)===u}function P(T){return C(T)===a}function R(T){return C(T)===c}function D(T){return typeof T=="object"&&T!==null&&T.$$typeof===e}function N(T){return C(T)===d}function M(T){return C(T)===r}function A(T){return C(T)===m}function W(T){return C(T)===h}function V(T){return C(T)===n}function $(T){return C(T)===i}function B(T){return C(T)===o}function ae(T){return C(T)===p}X.AsyncMode=y,X.ConcurrentMode=k,X.ContextConsumer=I,X.ContextProvider=j,X.Element=_,X.ForwardRef=L,X.Fragment=F,X.Lazy=ie,X.Memo=te,X.Portal=le,X.Profiler=we,X.StrictMode=J,X.Suspense=ne,X.isAsyncMode=ve,X.isConcurrentMode=S,X.isContextConsumer=P,X.isContextProvider=R,X.isElement=D,X.isForwardRef=N,X.isFragment=M,X.isLazy=A,X.isMemo=W,X.isPortal=V,X.isProfiler=$,X.isStrictMode=B,X.isSuspense=ae,X.isValidElementType=x,X.typeOf=C}()),X}var so;function vi(){return so||(so=1,function(t){process.env.NODE_ENV==="production"?t.exports=Mc():t.exports=Dc()}(Rc)),ln}/*
|
|
46
|
-
object-assign
|
|
47
|
-
(c) Sindre Sorhus
|
|
48
|
-
@license MIT
|
|
49
|
-
*/var Tn,ao;function Wc(){if(ao)return Tn;ao=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var c={},a=0;a<10;a++)c["_"+String.fromCharCode(a)]=a;var l=Object.getOwnPropertyNames(c).map(function(d){return c[d]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Tn=o()?Object.assign:function(i,c){for(var a,l=r(i),u,d=1;d<arguments.length;d++){a=Object(arguments[d]);for(var p in a)e.call(a,p)&&(l[p]=a[p]);if(t){u=t(a);for(var f=0;f<u.length;f++)n.call(a,u[f])&&(l[u[f]]=a[u[f]])}}return l},Tn}var Pn,co;function Cr(){if(co)return Pn;co=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Pn=t,Pn}var In,lo;function gi(){return lo||(lo=1,In=Function.call.bind(Object.prototype.hasOwnProperty)),In}var _n,uo;function Hc(){if(uo)return _n;uo=1;var t=function(){};if(process.env.NODE_ENV!=="production"){var e=Cr(),n={},r=gi();t=function(i){var c="Warning: "+i;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}}}function o(i,c,a,l,u){if(process.env.NODE_ENV!=="production"){for(var d in i)if(r(i,d)){var p;try{if(typeof i[d]!="function"){var f=Error((l||"React class")+": "+a+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}p=i[d](c,d,l,a,null,e)}catch(m){p=m}if(p&&!(p instanceof Error)&&t((l||"React class")+": type specification of "+a+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in n)){n[p.message]=!0;var h=u?u():"";t("Failed "+a+" type: "+p.message+(h??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},_n=o,_n}var Nn,fo;function Uc(){if(fo)return Nn;fo=1;var t=vi(),e=Wc(),n=Cr(),r=gi(),o=Hc(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(a){var l="Warning: "+a;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function c(){return null}return Nn=function(a,l){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function p(S){var P=S&&(u&&S[u]||S[d]);if(typeof P=="function")return P}var f="<<anonymous>>",h={array:w("array"),bigint:w("bigint"),bool:w("boolean"),func:w("function"),number:w("number"),object:w("object"),string:w("string"),symbol:w("symbol"),any:E(),arrayOf:x,element:C(),elementType:y(),instanceOf:k,node:L(),objectOf:j,oneOf:I,oneOfType:_,shape:ie,exact:te};function m(S,P){return S===P?S!==0||1/S===1/P:S!==S&&P!==P}function v(S,P){this.message=S,this.data=P&&typeof P=="object"?P:{},this.stack=""}v.prototype=Error.prototype;function g(S){if(process.env.NODE_ENV!=="production")var P={},R=0;function D(M,A,W,V,$,B,ae){if(V=V||f,B=B||W,ae!==n){if(l){var T=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw T.name="Invariant Violation",T}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var me=V+":"+W;!P[me]&&R<3&&(i("You are manually calling a React.PropTypes validation function for the `"+B+"` prop on `"+V+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),P[me]=!0,R++)}}return A[W]==null?M?A[W]===null?new v("The "+$+" `"+B+"` is marked as required "+("in `"+V+"`, but its value is `null`.")):new v("The "+$+" `"+B+"` is marked as required in "+("`"+V+"`, but its value is `undefined`.")):null:S(A,W,V,$,B)}var N=D.bind(null,!1);return N.isRequired=D.bind(null,!0),N}function w(S){function P(R,D,N,M,A,W){var V=R[D],$=J(V);if($!==S){var B=ne(V);return new v("Invalid "+M+" `"+A+"` of type "+("`"+B+"` supplied to `"+N+"`, expected ")+("`"+S+"`."),{expectedType:S})}return null}return g(P)}function E(){return g(c)}function x(S){function P(R,D,N,M,A){if(typeof S!="function")return new v("Property `"+A+"` of component `"+N+"` has invalid PropType notation inside arrayOf.");var W=R[D];if(!Array.isArray(W)){var V=J(W);return new v("Invalid "+M+" `"+A+"` of type "+("`"+V+"` supplied to `"+N+"`, expected an array."))}for(var $=0;$<W.length;$++){var B=S(W,$,N,M,A+"["+$+"]",n);if(B instanceof Error)return B}return null}return g(P)}function C(){function S(P,R,D,N,M){var A=P[R];if(!a(A)){var W=J(A);return new v("Invalid "+N+" `"+M+"` of type "+("`"+W+"` supplied to `"+D+"`, expected a single ReactElement."))}return null}return g(S)}function y(){function S(P,R,D,N,M){var A=P[R];if(!t.isValidElementType(A)){var W=J(A);return new v("Invalid "+N+" `"+M+"` of type "+("`"+W+"` supplied to `"+D+"`, expected a single ReactElement type."))}return null}return g(S)}function k(S){function P(R,D,N,M,A){if(!(R[D]instanceof S)){var W=S.name||f,V=ve(R[D]);return new v("Invalid "+M+" `"+A+"` of type "+("`"+V+"` supplied to `"+N+"`, expected ")+("instance of `"+W+"`."))}return null}return g(P)}function I(S){if(!Array.isArray(S))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),c;function P(R,D,N,M,A){for(var W=R[D],V=0;V<S.length;V++)if(m(W,S[V]))return null;var $=JSON.stringify(S,function(ae,T){var me=ne(T);return me==="symbol"?String(T):T});return new v("Invalid "+M+" `"+A+"` of value `"+String(W)+"` "+("supplied to `"+N+"`, expected one of "+$+"."))}return g(P)}function j(S){function P(R,D,N,M,A){if(typeof S!="function")return new v("Property `"+A+"` of component `"+N+"` has invalid PropType notation inside objectOf.");var W=R[D],V=J(W);if(V!=="object")return new v("Invalid "+M+" `"+A+"` of type "+("`"+V+"` supplied to `"+N+"`, expected an object."));for(var $ in W)if(r(W,$)){var B=S(W,$,N,M,A+"."+$,n);if(B instanceof Error)return B}return null}return g(P)}function _(S){if(!Array.isArray(S))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),c;for(var P=0;P<S.length;P++){var R=S[P];if(typeof R!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Oe(R)+" at index "+P+"."),c}function D(N,M,A,W,V){for(var $=[],B=0;B<S.length;B++){var ae=S[B],T=ae(N,M,A,W,V,n);if(T==null)return null;T.data&&r(T.data,"expectedType")&&$.push(T.data.expectedType)}var me=$.length>0?", expected one of type ["+$.join(", ")+"]":"";return new v("Invalid "+W+" `"+V+"` supplied to "+("`"+A+"`"+me+"."))}return g(D)}function L(){function S(P,R,D,N,M){return le(P[R])?null:new v("Invalid "+N+" `"+M+"` supplied to "+("`"+D+"`, expected a ReactNode."))}return g(S)}function F(S,P,R,D,N){return new v((S||"React class")+": "+P+" type `"+R+"."+D+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+N+"`.")}function ie(S){function P(R,D,N,M,A){var W=R[D],V=J(W);if(V!=="object")return new v("Invalid "+M+" `"+A+"` of type `"+V+"` "+("supplied to `"+N+"`, expected `object`."));for(var $ in S){var B=S[$];if(typeof B!="function")return F(N,M,A,$,ne(B));var ae=B(W,$,N,M,A+"."+$,n);if(ae)return ae}return null}return g(P)}function te(S){function P(R,D,N,M,A){var W=R[D],V=J(W);if(V!=="object")return new v("Invalid "+M+" `"+A+"` of type `"+V+"` "+("supplied to `"+N+"`, expected `object`."));var $=e({},R[D],S);for(var B in $){var ae=S[B];if(r(S,B)&&typeof ae!="function")return F(N,M,A,B,ne(ae));if(!ae)return new v("Invalid "+M+" `"+A+"` key `"+B+"` supplied to `"+N+"`.\nBad object: "+JSON.stringify(R[D],null," ")+`
|
|
50
|
-
Valid keys: `+JSON.stringify(Object.keys(S),null," "));var T=ae(W,B,N,M,A+"."+B,n);if(T)return T}return null}return g(P)}function le(S){switch(typeof S){case"number":case"string":case"undefined":return!0;case"boolean":return!S;case"object":if(Array.isArray(S))return S.every(le);if(S===null||a(S))return!0;var P=p(S);if(P){var R=P.call(S),D;if(P!==S.entries){for(;!(D=R.next()).done;)if(!le(D.value))return!1}else for(;!(D=R.next()).done;){var N=D.value;if(N&&!le(N[1]))return!1}}else return!1;return!0;default:return!1}}function we(S,P){return S==="symbol"?!0:P?P["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&P instanceof Symbol:!1}function J(S){var P=typeof S;return Array.isArray(S)?"array":S instanceof RegExp?"object":we(P,S)?"symbol":P}function ne(S){if(typeof S>"u"||S===null)return""+S;var P=J(S);if(P==="object"){if(S instanceof Date)return"date";if(S instanceof RegExp)return"regexp"}return P}function Oe(S){var P=ne(S);switch(P){case"array":case"object":return"an "+P;case"boolean":case"date":case"regexp":return"a "+P;default:return P}}function ve(S){return!S.constructor||!S.constructor.name?f:S.constructor.name}return h.checkPropTypes=o,h.resetWarningCache=o.resetWarningCache,h.PropTypes=h,h},Nn}var An,po;function Fc(){if(po)return An;po=1;var t=Cr();function e(){}function n(){}return n.resetWarningCache=e,An=function(){function r(c,a,l,u,d,p){if(p!==t){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:e};return i.PropTypes=i,i},An}if(process.env.NODE_ENV!=="production"){var Vc=vi(),zc=!0;ro.exports=Uc()(Vc.isElement,zc)}else ro.exports=Fc()();function Kn(t){return Kn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kn(t)}var Zc;function Gt(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zc;return e?t.split(" ").map(function(n){return e[n]||n}).join(" "):t}function Bc(t,e){var n={};return Object.keys(t).forEach(function(r){e.indexOf(r)===-1&&(n[r]=t[r])}),n}function $c(t,e){for(var n=Array.isArray(e)?e:[e],r=n.length,o,i={};r>0;)r-=1,o=n[r],i[o]=t[o];return i}var Gc=(typeof window>"u"?"undefined":Kn(window))==="object"&&window.Element||function(){};function Kc(t,e,n){if(!(t[e]instanceof Gc))return new Error("Invalid prop `"+e+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")}O.oneOfType([O.string,O.func,Kc,O.shape({current:O.any})]);var yn=O.oneOfType([O.func,O.string,O.shape({$$typeof:O.symbol,render:O.func}),O.arrayOf(O.oneOfType([O.func,O.string,O.shape({$$typeof:O.symbol,render:O.func})]))]),qc={Fade:150,Collapse:350,Modal:300,Carousel:600,Offcanvas:300},ho=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],Jt={ENTERING:"entering",ENTERED:"entered",EXITING:"exiting",EXITED:"exited"},Yc=["className","cssModule","variant","innerRef"];function qn(){return qn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},qn.apply(this,arguments)}function mo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Xc(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?mo(Object(n),!0).forEach(function(r){Jc(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):mo(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Jc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Qc(t,e){if(t==null)return{};var n=el(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function el(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}var tl={active:O.bool,"aria-label":O.string,onClick:O.func,variant:O.oneOf(["white"]),className:O.string,cssModule:O.object,innerRef:O.oneOfType([O.object,O.string,O.func])};function bi(t){var e=t.className;t.cssModule;var n=t.variant,r=t.innerRef,o=Qc(t,Yc),i=Gt(G(e,"btn-close",n&&"btn-close-".concat(n)));return b.createElement("button",qn({ref:r,type:"button",className:i},Xc({"aria-label":"close"},o)))}bi.propTypes=tl;var nl=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"];function Yn(){return Yn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Yn.apply(this,arguments)}function rl(t,e){if(t==null)return{};var n=ol(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function ol(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}var il={active:O.bool,"aria-label":O.string,block:O.bool,children:O.node,className:O.string,cssModule:O.object,close:O.bool,color:O.string,disabled:O.bool,innerRef:O.oneOfType([O.object,O.func,O.string]),onClick:O.func,outline:O.bool,size:O.string,tag:yn};function Ut(t){var e=b.useCallback(function(E){if(t.disabled){E.preventDefault();return}if(t.onClick)return t.onClick(E)},[t.onClick,t.disabled]),n=t.active,r=t["aria-label"],o=t.block,i=t.className,c=t.close,a=t.cssModule,l=t.color,u=l===void 0?"secondary":l,d=t.outline,p=t.size,f=t.tag,h=f===void 0?"button":f,m=t.innerRef,v=rl(t,nl);if(c)return b.createElement(bi,v);var g="btn".concat(d?"-outline":"","-").concat(u),w=Gt(G(i,"btn",g,p?"btn-".concat(p):!1,o?"d-block w-100":!1,{active:n,disabled:t.disabled}),a);return v.href&&h==="button"&&(h="a"),b.createElement(h,Yn({type:h==="button"&&v.onClick?"button":void 0},v,{className:w,ref:m,onClick:e,"aria-label":r}))}Ut.propTypes=il;function sl(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}function Xn(t,e){return Xn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Xn(t,e)}function al(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Xn(t,e)}const vo={disabled:!1};var cl=process.env.NODE_ENV!=="production"?O.oneOfType([O.number,O.shape({enter:O.number,exit:O.number,appear:O.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&O.oneOfType([O.string,O.shape({enter:O.string,exit:O.string,active:O.string}),O.shape({enter:O.string,enterDone:O.string,enterActive:O.string,exit:O.string,exitDone:O.string,exitActive:O.string})]);const yi=b.createContext(null);var ll=function(e){return e.scrollTop},At="unmounted",et="exited",tt="entering",ht="entered",Jn="exiting",ze=function(t){al(e,t);function e(r,o){var i;i=t.call(this,r,o)||this;var c=o,a=c&&!c.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?a?(l=et,i.appearStatus=tt):l=ht:r.unmountOnExit||r.mountOnEnter?l=At:l=et,i.state={status:l},i.nextCallback=null,i}e.getDerivedStateFromProps=function(o,i){var c=o.in;return c&&i.status===At?{status:et}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var c=this.state.status;this.props.in?c!==tt&&c!==ht&&(i=tt):(c===tt||c===ht)&&(i=Jn)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,c,a;return i=c=a=o,o!=null&&typeof o!="number"&&(i=o.exit,c=o.enter,a=o.appear!==void 0?o.appear:c),{exit:i,enter:c,appear:a}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===tt){if(this.props.unmountOnExit||this.props.mountOnEnter){var c=this.props.nodeRef?this.props.nodeRef.current:_t.findDOMNode(this);c&&ll(c)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===et&&this.setState({status:At})},n.performEnter=function(o){var i=this,c=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[_t.findDOMNode(this),a],u=l[0],d=l[1],p=this.getTimeouts(),f=a?p.appear:p.enter;if(!o&&!c||vo.disabled){this.safeSetState({status:ht},function(){i.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:tt},function(){i.props.onEntering(u,d),i.onTransitionEnd(f,function(){i.safeSetState({status:ht},function(){i.props.onEntered(u,d)})})})},n.performExit=function(){var o=this,i=this.props.exit,c=this.getTimeouts(),a=this.props.nodeRef?void 0:_t.findDOMNode(this);if(!i||vo.disabled){this.safeSetState({status:et},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Jn},function(){o.props.onExiting(a),o.onTransitionEnd(c.exit,function(){o.safeSetState({status:et},function(){o.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,c=!0;return this.nextCallback=function(a){c&&(c=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){c=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var c=this.props.nodeRef?this.props.nodeRef.current:_t.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!c||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[c,this.nextCallback],u=l[0],d=l[1];this.props.addEndListener(u,d)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===At)return null;var i=this.props,c=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=sl(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return b.createElement(yi.Provider,{value:null},typeof c=="function"?c(o,a):b.cloneElement(b.Children.only(c),a))},e}(b.Component);ze.contextType=yi;ze.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:O.shape({current:typeof Element>"u"?O.any:function(t,e,n,r,o,i){var c=t[e];return O.instanceOf(c&&"ownerDocument"in c?c.ownerDocument.defaultView.Element:Element)(t,e,n,r,o,i)}}),children:O.oneOfType([O.func.isRequired,O.element.isRequired]).isRequired,in:O.bool,mountOnEnter:O.bool,unmountOnExit:O.bool,appear:O.bool,enter:O.bool,exit:O.bool,timeout:function(e){var n=cl;e.addEndListener||(n=n.isRequired);for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return n.apply(void 0,[e].concat(o))},addEndListener:O.func,onEnter:O.func,onEntering:O.func,onEntered:O.func,onExit:O.func,onExiting:O.func,onExited:O.func}:{};function ut(){}ze.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ut,onEntering:ut,onEntered:ut,onExit:ut,onExiting:ut,onExited:ut};ze.UNMOUNTED=At;ze.EXITED=et;ze.ENTERING=tt;ze.ENTERED=ht;ze.EXITING=Jn;const Or=ze;function Qn(t){return Qn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qn(t)}var ul=["tag","horizontal","isOpen","className","navbar","cssModule","children","innerRef"],dt;function un(){return un=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},un.apply(this,arguments)}function dl(t,e){if(t==null)return{};var n=fl(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function fl(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}function pl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function go(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function hl(t,e,n){return e&&go(t.prototype,e),n&&go(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function ml(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&er(t,e)}function er(t,e){return er=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},er(t,e)}function vl(t){var e=bl();return function(){var r=dn(t),o;if(e){var i=dn(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return gl(this,o)}}function gl(t,e){if(e&&(Qn(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wi(t)}function wi(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function bl(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function dn(t){return dn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},dn(t)}function bo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function St(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?bo(Object(n),!0).forEach(function(r){vt(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bo(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function vt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var yl=St(St({},Or.propTypes),{},{horizontal:O.bool,isOpen:O.bool,children:O.oneOfType([O.arrayOf(O.node),O.node]),tag:yn,className:O.node,navbar:O.bool,cssModule:O.object,innerRef:O.shape({current:O.object})}),wl=St(St({},Or.defaultProps),{},{horizontal:!1,isOpen:!1,appear:!1,enter:!0,exit:!0,tag:"div",timeout:qc.Collapse}),xl=(dt={},vt(dt,Jt.ENTERING,"collapsing"),vt(dt,Jt.ENTERED,"collapse show"),vt(dt,Jt.EXITING,"collapsing"),vt(dt,Jt.EXITED,"collapse"),dt);function Cl(t){return xl[t]||"collapse"}var Er=function(t){ml(n,t);var e=vl(n);function n(r){var o;return pl(this,n),o=e.call(this,r),o.state={dimension:null},o.nodeRef=r.innerRef||b.createRef(),["onEntering","onEntered","onExit","onExiting","onExited"].forEach(function(i){o[i]=o[i].bind(wi(o))}),o}return hl(n,[{key:"onEntering",value:function(o,i){var c=this.getNode();this.setState({dimension:this.getDimension(c)}),this.props.onEntering(c,i)}},{key:"onEntered",value:function(o,i){var c=this.getNode();this.setState({dimension:null}),this.props.onEntered(c,i)}},{key:"onExit",value:function(){var o=this.getNode();this.setState({dimension:this.getDimension(o)}),this.props.onExit(o)}},{key:"onExiting",value:function(){var o=this.getNode();this.getDimension(o),this.setState({dimension:0}),this.props.onExiting(o)}},{key:"onExited",value:function(){var o=this.getNode();this.setState({dimension:null}),this.props.onExited(o)}},{key:"getNode",value:function(){return this.nodeRef.current}},{key:"getDimension",value:function(o){return this.props.horizontal?o.scrollWidth:o.scrollHeight}},{key:"render",value:function(){var o=this,i=this.props,c=i.tag,a=i.horizontal,l=i.isOpen,u=i.className,d=i.navbar,p=i.cssModule,f=i.children;i.innerRef;var h=dl(i,ul),m=this.state.dimension,v=$c(h,ho),g=Bc(h,ho);return b.createElement(Or,un({},v,{in:l,nodeRef:this.nodeRef,onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),function(w){var E=Cl(w),x=Gt(G(u,a&&"collapse-horizontal",E,d&&"navbar-collapse"),p),C=m===null?null:vt({},a?"width":"height",m);return b.createElement(c,un({},g,{style:St(St({},g.style),C),className:x,ref:o.nodeRef}),f)})}}]),n}(b.Component);Er.propTypes=yl;Er.defaultProps=wl;const xi=Er;function tr(t){return tr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tr(t)}var Ol=["className","cssModule","tag","innerRef"];function nr(){return nr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},nr.apply(this,arguments)}function El(t,e){if(t==null)return{};var n=Sl(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Sl(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}function jl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function kl(t,e,n){return e&&yo(t.prototype,e),n&&yo(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Tl(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&rr(t,e)}function rr(t,e){return rr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},rr(t,e)}function Pl(t){var e=_l();return function(){var r=fn(t),o;if(e){var i=fn(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return Il(this,o)}}function Il(t,e){if(e&&(tr(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return or(t)}function or(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _l(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function fn(t){return fn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},fn(t)}var Nl={children:O.node,tag:yn,innerRef:O.oneOfType([O.object,O.func,O.string]),className:O.string,cssModule:O.object},Ci=function(t){Tl(n,t);var e=Pl(n);function n(r){var o;return jl(this,n),o=e.call(this,r),o.getRef=o.getRef.bind(or(o)),o.submit=o.submit.bind(or(o)),o}return kl(n,[{key:"getRef",value:function(o){this.props.innerRef&&this.props.innerRef(o),this.ref=o}},{key:"submit",value:function(){this.ref&&this.ref.submit()}},{key:"render",value:function(){var o=this.props,i=o.className,c=o.cssModule,a=o.tag,l=a===void 0?"form":a,u=o.innerRef,d=El(o,Ol),p=Gt(i,c);return b.createElement(l,nr({},d,{ref:u,className:p}))}}]),n}(b.Component);Ci.propTypes=Nl;const Al=Ci;var Ll=["className","cssModule","row","disabled","check","inline","floating","noMargin","tag","switch"];function ir(){return ir=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ir.apply(this,arguments)}function Rl(t,e){if(t==null)return{};var n=Ml(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Ml(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}var Dl={children:O.node,row:O.bool,check:O.bool,switch:O.bool,inline:O.bool,floating:O.bool,noMargin:O.bool,disabled:O.bool,tag:yn,className:O.string,cssModule:O.object};function sr(t){var e=t.className,n=t.cssModule,r=t.row,o=t.disabled,i=t.check,c=t.inline,a=t.floating,l=t.noMargin,u=t.tag,d=u===void 0?"div":u,p=t.switch,f=Rl(t,Ll),h=i||p,m=Gt(G(e,r?"row":!1,h?"form-check":!1,p?"form-switch":!1,h||l?!1:"mb-3",h&&c?"form-check-inline":!1,h&&o?"disabled":!1,a&&"form-floating"),n);return d==="fieldset"&&(f.disabled=o),b.createElement(d,ir({},f,{className:m}))}sr.propTypes=Dl;const wn=t=>{const{config:e,isFavoritismEnabled:n,level:r=1,onItemClick:o}=t,{isCollapsible:i,showAllItems:c,displayCount:a=Xs}=e,l=st(),u=qo(),[d,p]=b.useState(1),[f,h]=b.useState(0),[m,v]=b.useState(!1),g=b.useRef({}),w=e.items.filter(j=>Lt(j)),E=e.items.filter(j=>!Lt(j)),x=c?E:E.slice(0,d*a);b.useEffect(()=>{l.isOpen||p(1)},[l.isOpen]);const C=()=>{p(j=>j+1)},y=[...w,...x],k=j=>{g.current[j]?.querySelector("[tabIndex]")?.focus(),h(j)},I=()=>{i&&v(j=>!j)};return s.jsxs("li",{className:"section",children:[s.jsx(Zo,{iconSrc:e.iconSrc,iconName:e.iconName,style:{paddingLeft:`${r===1?4:(r-2)*12+6}px`},title:e.title,showCollapseIcon:i,isOpen:m,onClick:I,showHoverIndicator:r!==1}),s.jsxs(xi,{isOpen:i?m:!0,tag:"ul",children:[y.map((j,_)=>Lt(j)?s.jsx(wn,{config:j,isFavoritismEnabled:n,level:r+1,onItemClick:o},j.id):s.jsx("li",{ref:L=>g.current[_]=L,children:s.jsx(mi,{isFavoritismEnabled:n,item:j,onClick:(L,F)=>o?.(L,{item:j,modifier:u,selectedContextMenuActionName:F?.name}),style:{paddingLeft:`${r===1?7:r*11}px`},onKeyDown:L=>{zo({event:L,moveFocus:k,currentIndex:f,min:0,max:y.length-1})},focused:f===_},j.id||_)},j.id||_)),!c&&e.items.length-w.length>a*d&&s.jsx("li",{"data-testid":"more-li-element",children:s.jsx("div",{className:"io-list-item more",style:{paddingLeft:`${(r===1?7:r*11)+8}px`},role:"button","aria-label":"More",...yt(C),children:s.jsxs("div",{className:"io-list-row",children:[s.jsx("span",{className:"title",children:"More..."}),s.jsx(oe,{size:12,name:"chevron-down","data-testid":"more-chevron"})]})})})]})]})},Oi=t=>`${t.type}-${t.id}`,Wl=(t,e)=>Ei(t)[e],Ei=t=>t.reduce((e,n)=>Lt(n)?{...e,...Ei(n.items)}:{...e,[Oi(n)]:n},{}),Si=b.createContext(void 0),Hl=()=>{const t=b.useContext(Si);if(t===void 0)throw new Error("useSection must be used within a SectionProvider");return t},Ul=({children:t})=>{const[e,n]=b.useState(null);return s.jsx(Si.Provider,{value:[e,n],children:t})},xn=({config:t,onItemClick:e})=>{const[n,r]=Hl(),o=st(),i=qo(),c=(a,l)=>{const{item:u,selectedContextMenuActionName:d}=l;r({itemName:Oi(u),selectedContextMenuActionName:d})};return b.useEffect(()=>{if(!e||!n)return;const{itemName:a,selectedContextMenuActionName:l}=n,u=Wl(t.items,a);u&&(e({item:u,modifier:i,selectedContextMenuActionName:l}),r(null),i!==vn.SHIFT&&o.close())},[n,t.items,o,e,i,r]),s.jsx(wn,{config:t,onItemClick:c})};function ji(t){const{displayCount:e,isFolderCollapsible:n,isSectionCollapsible:r,showAllItems:o,sortOrder:i}=t,c=ls(),a=us(),l=Yo(),u=Xo(),d=b.useMemo(()=>ss(c,a,{...{displayCount:e,showAllItems:o},isFolderCollapsible:n,isSectionCollapsible:r,sortOrder:i}),[c,a,e,n,r,o,i]),p=f=>{const{item:h,modifier:m,selectedContextMenuActionName:v}=f;if(!v)return l({id:h.id,modifier:m}).catch(g=>{console.error("Failed to start application",{error:g})});u(h,v)};return s.jsx(xn,{config:d,onItemClick:p})}const Fl={value:"data:image/svg+xml,%3Csvg width='5041' height='1232' viewBox='0 0 5041 1232' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_879_362)'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M548.6 178H439.6C368.7 178 310 199.5 269.3 244.5C228.6 289.3 206.7 356 206.7 444.3C206.7 532.6 228.6 599.5 269.3 644.2C310.2 689.2 368.7 710.7 439.6 710.7H548.6C619 710.7 677.6 689.2 718.6 644.2C759.5 599.4 781.6 532.6 781.6 444.2C781.6 355.8 759.5 289 718.6 244.2C677.7 199.3 619 177.7 548.6 177.7V178ZM449.5 293.8H538.9C582.2 293.8 611.9 305.2 631.1 328.3C650.5 351.8 660.5 389.2 660.5 444.4C660.5 499.6 650.5 536.7 631.1 560C612 583 582.2 594.1 538.9 594.1H449.5C405.6 594.1 375.9 583 356.9 560C337.6 536.8 327.7 499.7 327.7 444.5C327.7 389.3 337.4 351.9 356.8 328.4C375.9 305.2 405.6 293.8 449.5 293.8Z' fill='white'/%3E%3Cpath d='M0.700195 189.8C0.700195 183.1 6.10017 177.7 12.8002 177.7H108.6C115.3 177.7 120.7 183.1 120.7 189.8V698.6C120.7 705.3 115.3 710.7 108.6 710.7H12.8002C6.10017 710.7 0.700195 705.3 0.700195 698.6V189.8Z' fill='white'/%3E%3Cpath d='M0.700195 11.9002C0.700195 5.7002 5.70018 0.700195 11.9002 0.700195H109.6C115.7 0.700195 120.7 5.7002 120.7 11.9002V109.5C120.7 115.7 115.7 120.7 109.5 120.7H11.9002C5.70018 120.7 0.700195 115.7 0.700195 109.5V11.9002Z' fill='%23007BE5'/%3E%3Cpath d='M827.7 601.9C827.7 595.7 832.7 590.7 838.9 590.7H936.6C942.8 590.7 947.8 595.7 947.8 601.9V699.5C947.8 705.7 942.8 710.7 936.6 710.7H838.9C832.7 710.7 827.7 705.7 827.7 699.5V601.9Z' fill='%23007BE5'/%3E%3Cpath d='M4363.9 293.2C4320.2 293.2 4290.6 304.6 4271.6 327.8C4252.3 351.4 4242.5 388.8 4242.5 444C4242.5 499.2 4252.3 536.4 4271.5 559.7C4290.5 582.6 4320 593.8 4363.8 593.8H4614.7C4622.4 593.8 4628.7 600.1 4628.7 607.8V696.7C4628.7 704.4 4622.4 710.7 4614.7 710.7H4354.1C4283.3 710.7 4224.9 689.1 4184.1 644.1C4143.5 599.3 4121.6 532.4 4121.6 444C4121.6 355.6 4143.5 288.7 4184.1 243.9C4224.8 199 4283.3 177.3 4354.1 177.3H4614.7C4622.4 177.3 4628.7 183.6 4628.7 191.3V279.3C4628.7 287 4622.4 293.3 4614.7 293.3H4363.9V293.2Z' fill='white'/%3E%3Cpath d='M1302.6 165.3C1240.1 165.3 1197 180.9 1169.3 213.3C1141.3 246 1127.4 297.6 1127.4 372.9C1127.4 447.7 1141.1 499 1169 531.6C1196.6 563.9 1239.7 579.5 1302.7 579.5H1552.5C1560.2 579.5 1566.5 585.8 1566.5 593.5V697.1C1566.5 704.8 1560.2 711.1 1552.5 711.1H1302.7C1204.7 711.1 1127.5 683.4 1075 626.4C1022.4 569.7 995.7 484.8 995.7 372.9C995.7 260.5 1022.7 175.4 1075.2 118.4C1127.9 61.3001 1205 33.6001 1302.6 33.6001H1552.4C1560.1 33.6001 1566.4 39.9001 1566.4 47.6001V151.2C1566.4 158.9 1560.1 165.2 1552.4 165.2H1302.6V165.3Z' fill='white'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M1953.6 177.7H1844.8C1774 177.7 1715.6 199.3 1674.8 244.3C1634.2 289.1 1612.3 356 1612.3 444.4C1612.3 532.8 1634.2 599.7 1674.8 644.5C1715.5 689.4 1774 711.1 1844.8 711.1H1953.6C2023.9 711.1 2082.4 689.5 2123.2 644.5C2163.9 599.7 2186 532.8 2186 444.3C2186 355.8 2163.9 289 2123.2 244.1C2082.3 199.3 2023.9 177.7 1953.6 177.7ZM1854.6 293.7H1943.8C1987 293.7 2016.6 305.1 2035.8 328.3C2055.2 351.9 2065.2 389.3 2065.2 444.5C2065.2 499.7 2055.2 536.8 2035.8 560.2C2016.7 583.2 1987.1 594.3 1943.8 594.3H1854.6C1810.8 594.3 1781.3 583.1 1762.3 560.2C1743 536.9 1733.3 499.8 1733.3 444.5C1733.3 389.3 1743.1 351.9 1762.4 328.3C1781.3 305 1810.9 293.7 1854.6 293.7Z' fill='white'/%3E%3Cpath d='M2679.7 411.6C2679.7 372.5 2668.5 343.5 2645.4 324C2622.1 304.3 2585.3 293.2 2531.9 293.2H2378.4C2375.5 293.2 2374.9 293.9 2374.8 294C2374.5 294.4 2373.6 295.8 2373.6 299.8V696.7C2373.6 704.4 2367.3 710.7 2359.6 710.7H2267.7C2260 710.7 2253.7 704.4 2253.7 696.7V265.6C2253.7 234.7 2258.8 212 2272.6 197.2C2286.5 182.2 2307.5 177.3 2334.2 177.3H2531.8C2620.7 177.3 2688 198.4 2733.3 238.9C2778.7 279.5 2800.5 338.6 2800.5 411.7V696.7C2800.5 704.4 2794.2 710.7 2786.5 710.7H2693.7C2686 710.7 2679.7 704.4 2679.7 696.7V411.6Z' fill='white'/%3E%3Cpath d='M3304.7 411.6C3304.7 372.5 3293.5 343.5 3270.4 324C3247.1 304.3 3210.3 293.2 3156.9 293.2H3003.4C3000.5 293.2 2999.9 293.9 2999.8 294C2999.5 294.4 2998.6 295.8 2998.6 299.8V696.7C2998.6 704.4 2992.3 710.7 2984.6 710.7H2892.7C2885 710.7 2878.7 704.4 2878.7 696.7V265.6C2878.7 234.7 2883.8 212 2897.6 197.2C2911.5 182.2 2932.5 177.3 2959.2 177.3H3156.8C3245.7 177.3 3313 198.4 3358.3 238.9C3403.7 279.5 3425.5 338.6 3425.5 411.7V696.7C3425.5 704.4 3419.2 710.7 3411.5 710.7H3318.7C3311 710.7 3304.7 704.4 3304.7 696.7V411.6Z' fill='white'/%3E%3Cpath d='M4906.1 292.2C4898.4 292.2 4892.1 298.5 4892.1 306.2V529.2C4892.1 557.5 4897.2 574.3 4906.4 584.1C4915.4 593.8 4930 598.6 4953.7 598.6H5019.2C5026.9 598.6 5033.2 604.9 5033.2 612.6V695.7C5033.2 703.4 5026.9 709.7 5019.2 709.7H4932.1C4877.9 709.7 4836.8 698.8 4809.7 668.6C4782.8 638.6 4771.3 591.5 4771.3 523.4V306.2C4771.3 298.5 4765 292.2 4757.3 292.2H4714.7C4707 292.2 4700.7 285.9 4700.7 278.2V190.2C4700.7 182.5 4707 176.2 4714.7 176.2H4757.3C4765 176.2 4771.3 169.9 4771.3 162.2V67.7002C4771.3 60.0002 4777.6 53.7002 4785.3 53.7002H4878.2C4885.9 53.7002 4892.2 60.0002 4892.2 67.7002V162.2C4892.2 169.9 4898.5 176.2 4906.2 176.2H5021.3C5029 176.2 5035.3 182.5 5035.3 190.2V278.2C5035.3 285.9 5029 292.2 5021.3 292.2H4906.1Z' fill='white'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M4024.4 607.2C4024.4 599.5 4018.1 593.2 4010.4 593.2H3699.9C3672.9 593.2 3655.3 586 3644.6 575.2C3633.8 564.4 3628.6 548.8 3628.6 529.7V514.5C3628.6 506.8 3634.9 500.5 3642.6 500.5H3866.6C3931.2 500.5 3977.4 486.9 4007.5 459.6C4037.7 432.2 4050.1 392.3 4050.1 343.5C4050.1 292.2 4036.8 250.1 4006.4 220.9C3976.1 191.7 3930.1 176.8 3867.7 176.8H3700.1C3633.9 176.8 3586.5 195.4 3555.6 227.8C3524.8 260.1 3511.8 305 3511.8 355.3V531.7C3511.8 582 3524.9 626.9 3555.6 659.2C3586.5 691.6 3633.9 710.2 3700.1 710.2H4010.6C4018.3 710.2 4024.6 703.9 4024.6 696.2V607.2H4024.4ZM3863.5 403.1H3642.5C3634.8 403.1 3628.5 396.8 3628.5 389.1V356.2C3628.5 337.6 3633.7 321.9 3644.6 311C3655.4 300.1 3672.9 292.7 3699.9 292.7H3866.5C3890.7 292.7 3906.9 298.8 3916.9 308.2C3926.9 317.5 3932 331.3 3932 349.4C3932 367.1 3927.3 380 3917.4 388.6C3907.4 397.4 3890.5 403.1 3863.5 403.1Z' fill='white'/%3E%3Cpath d='M2918.9 872.3C3001.9 872.3 3036.9 909.9 3036.9 966.3C3036.9 1012.2 3013.9 1036.8 2973.2 1047.2C3014.4 1058.2 3037.9 1083.7 3037.9 1129.7C3037.9 1186.1 3003.5 1224.7 2920.5 1224.7H2755.6C2741.5 1224.7 2734.2 1217.9 2734.2 1203.8V893.2C2734.2 879.1 2741.5 872.3 2755.6 872.3H2918.9ZM2765.4 1033.1H2918.9C2976.8 1033.1 3005 1014.8 3005 970.5C3005 929.8 2979.4 903.7 2919.4 903.7H2771.2C2767.5 903.7 2765.5 905.3 2765.5 909.4V1033.1H2765.4ZM2765.4 1187.6C2765.4 1191.8 2767.5 1193.3 2771.1 1193.3H2921C2979.5 1193.3 3006.1 1168.2 3006.1 1125.4C3006.1 1081 2976.9 1060.2 2921 1060.2H2765.5V1187.6H2765.4Z' fill='white'/%3E%3Cpath d='M3294 956.9V985.6H3182.8C3148.9 985.6 3135.3 1000.7 3135.3 1033.6V1224.6H3106.1V1029.9C3106.1 979.8 3125.4 956.8 3176.6 956.8H3294V956.9Z' fill='white'/%3E%3Cpath d='M3489.1 956.9C3562.2 956.9 3608.6 1001.3 3608.6 1091C3608.6 1181.3 3562.1 1224.6 3489.1 1224.6H3431.2C3357.6 1224.6 3311.7 1181.3 3311.7 1091C3311.7 1001.2 3357.6 956.9 3431.2 956.9H3489.1ZM3433.3 985.6C3374.3 985.6 3340.9 1019 3340.9 1091C3340.9 1163.5 3374.3 1196.4 3433.3 1196.4H3487.1C3546.1 1196.4 3579.5 1163.5 3579.5 1091C3579.5 1019 3546.1 985.6 3487.1 985.6H3433.3Z' fill='white'/%3E%3Cpath d='M3674.4 956.9L3706.8 1176.6C3709.4 1195.4 3716.2 1204.3 3737.1 1204.3C3758.5 1204.3 3767.4 1195.4 3771.5 1180.3L3821.6 995.5C3829.4 966.8 3849.3 951.7 3884.2 951.7C3919.1 951.7 3937.4 966.8 3945.3 995.5L3994.9 1180.3C3999.1 1195.4 4007.9 1204.3 4029.3 1204.3C4050.2 1204.3 4056.4 1195.4 4059.6 1176.6L4093.5 956.9H4125.3L4089.3 1179.8C4084.6 1210.6 4069.5 1231 4028.2 1231C3992.7 1231 3975 1216.4 3966.6 1185.1L3917 1000.9C3912.8 985.2 3900.8 978.5 3883.6 978.5C3865.9 978.5 3854.9 985.3 3850.7 1000.9L3799.6 1185.1C3790.7 1216.4 3773.5 1231 3737.5 1231C3695.2 1231 3682.2 1210.1 3677.5 1179.8L3643.1 956.9H3674.4Z' fill='white'/%3E%3Cpath d='M4417.6 956.9V985.6H4260C4219.8 985.6 4203.6 1003.3 4203.6 1032.1C4203.6 1057.2 4216.1 1077.5 4263.6 1077.5H4338.8C4410.8 1077.5 4428.6 1110.9 4428.6 1149.5C4428.6 1194.9 4404.6 1224.7 4344 1224.7H4178V1196.5H4344C4384.2 1196.5 4399.8 1178.2 4399.8 1149.5C4399.8 1124.4 4387.8 1103.6 4339.8 1103.6H4264.6C4193.1 1103.6 4174.8 1069.2 4174.8 1030C4174.8 985.1 4198.8 956.9 4259.4 956.9H4417.6Z' fill='white'/%3E%3Cpath d='M4685.4 956.9C4749.1 956.9 4775.7 986.6 4775.7 1036.8C4775.7 1084.8 4751.2 1111.4 4684.9 1111.4H4526.2V1135.9C4526.2 1170.3 4545 1196.4 4593.5 1196.4H4762.1V1224.6H4593.5C4524.6 1224.6 4497.5 1187.5 4497.5 1136.4V1045.1C4497.5 995 4524.6 956.9 4593.5 956.9H4685.4ZM4526.2 1087.4H4684.3C4729.7 1087.4 4746.9 1069.7 4746.9 1037.8C4746.9 1005.4 4728.6 985.6 4685.3 985.6H4593.4C4544.9 985.6 4526.1 1011.2 4526.1 1045.6V1087.4H4526.2Z' fill='white'/%3E%3Cpath d='M5040.3 956.9V985.6H4929.1C4895.2 985.6 4881.6 1000.7 4881.6 1033.6V1224.6H4852.4V1029.9C4852.4 979.8 4871.7 956.8 4922.9 956.8H5040.3V956.9Z' fill='white'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_879_362'%3E%3Crect width='5041' height='1231' fill='white' transform='translate(0 0.700195)'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A"},Vl={loginPageLogo:Fl},zl="200px",at=({logoSrc:t=Vl.loginPageLogo.value,width:e=zl,className:n="logo"})=>s.jsx("img",{width:e,src:t,className:n,alt:"Login logo"});const Sr=({children:t,description:e,heading:n,Image:r,title:o,className:i})=>s.jsxs("div",{className:G("info-card",i),children:[o&&s.jsx("h1",{className:"info-card-title",children:o}),r&&s.jsx("div",{className:"info-card-image",children:s.jsx(r,{})}),n&&s.jsx("h3",{className:"info-card-heading",children:n}),s.jsx("p",{className:"info-card-description",children:e}),t]}),Zl=[{name:"Google Chrome",Image:ea,url:"https://www.google.com/chrome/"},{name:"Microsoft Edge",Image:ta,url:"https://www.microsoft.com/en-us/edge/download"},{name:"Opera",Image:na,url:"https://www.opera.com/browsers/opera"}];const jr=({className:t,children:e,Logo:n})=>s.jsxs("div",{className:G("info-page-container",t),children:[s.jsx(n,{className:"info-page-logo"}),s.jsx("div",{className:"info-page-wrapper",children:e})]}),Bl=({supportEmail:t})=>s.jsxs("p",{className:"additional-information",children:["For more information, visit the io.Connect Browser",s.jsx("br",{}),s.jsx("a",{href:"https://docs.interop.io/browser/getting-started/requirements-compatibility/index.html",target:"_blank",rel:"noopener noreferrer",children:"documentation"}),t?s.jsxs(s.Fragment,{children:[" or ",s.jsx("a",{href:`mailto:${t}?subject=Issue with io.Connect Browser`,children:"contact us"}),"."]}):s.jsxs(s.Fragment,{children:[" or our ",s.jsx("a",{href:"https://support.interop.io",target:"_blank",rel:"noopener noreferrer",children:"help center"}),"."]})]});const $l=({components:{Logo:t=at}={},supportEmail:e})=>{const n="Hmm… it seems that this browser or device doesn’t support critical io.Connect features.",r="For best experience, we recommend using the latest version of one of the following browsers:";return s.jsxs(jr,{className:"browser-not-supported",Logo:t,children:[s.jsx(Sr,{title:n,description:r}),s.jsx("ul",{className:"browsers-list",children:Zl.map(({Image:o,name:i,url:c})=>s.jsxs("li",{onClick:()=>window.open(c,"_blank","noopener,noreferrer"),children:[s.jsx("div",{className:"browsers-list-image",children:s.jsx(o,{})}),s.jsx("div",{children:i})]},i))}),s.jsx(Bl,{supportEmail:e})]})};function Kt({children:t,className:e,color:n,...r}){return s.jsx("button",{className:G(e,"io-btn",n),...r,children:t})}function Cn(t){const{className:e,items:n,onItemClick:r,...o}=t;return s.jsx("div",{className:G("io-btn-group",e),...o,children:n.map((i,c)=>{const{onClick:a,...l}=i;return s.jsx(Kt,{onClick:u=>{a&&a(u),r&&r(u,i)},...l},c)})})}const Gl=(t,e)=>{const{isSectionCollapsible:n,sortOrder:r=Dt.DISABLED,...o}=e;return{id:"favorites-section",title:"Favorites",items:ur({items:t,sortOrder:r,ascendingCompare:Ho,descendingCompare:Uo}),iconName:"star",isCollapsible:n,...o}},ki=t=>{const{displayCount:e,isSectionCollapsible:n,showAllItems:r,sortOrder:o}=t,{favoriteEntities:i}=mn(),c=b.useMemo(()=>Gl(i,{...{displayCount:e,showAllItems:r},isSectionCollapsible:n,sortOrder:o}),[i,e,n,r,o]);return i.length>0?s.jsx(xn,{config:c}):null},kr=b.createContext(void 0),Ti=()=>{const t=b.useContext(kr);if(t===void 0)throw new Error("useWorkspaceComponentsContext must be used within an WorkspaceComponentsContextProvider");return t},Pi=({icon:t})=>{const{user:e,onLogout:n,launchpadComponents:r}=Ti();return s.jsx(Ur,{user:e,onLogout:n,icon:t,components:r})},Kl=t=>{const{onLogout:e,user:n,launchpad:r,icon:o}=t;return s.jsx(Ur,{user:n,onLogout:e,icon:o,components:r?.components})};var ar=function(t,e){return ar=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])},ar(t,e)};function ql(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");ar(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var pe=function(){return pe=Object.assign||function(e){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)&&(e[i]=n[i])}return e},pe.apply(this,arguments)};function Yl(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n}function ft(t,e,n,r){function o(i){return i instanceof n?i:new n(function(c){c(i)})}return new(n||(n=Promise))(function(i,c){function a(d){try{u(r.next(d))}catch(p){c(p)}}function l(d){try{u(r.throw(d))}catch(p){c(p)}}function u(d){d.done?i(d.value):o(d.value).then(a,l)}u((r=r.apply(t,e||[])).next())})}function pt(t,e){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,c;return c={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function a(u){return function(d){return l([u,d])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;c&&(c=0,u[0]&&(n=0)),n;)try{if(r=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,o=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){n.label=u[1];break}if(u[0]===6&&n.label<i[1]){n.label=i[1],i=u;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(u);break}i[2]&&n.ops.pop(),n.trys.pop();continue}u=e.call(t,n)}catch(d){u=[6,d],o=0}finally{r=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function Re(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function"){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}var gt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Tr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Pr(t,e){return t(e={exports:{}},e.exports),e.exports}var nt=Pr(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function r(){var o=this;this.locked=new Map,this.addToLocked=function(i,c){var a=o.locked.get(i);a===void 0?c===void 0?o.locked.set(i,[]):o.locked.set(i,[c]):c!==void 0&&(a.unshift(c),o.locked.set(i,a))},this.isLocked=function(i){return o.locked.has(i)},this.lock=function(i){return new Promise(function(c,a){o.isLocked(i)?o.addToLocked(i,c):(o.addToLocked(i),c())})},this.unlock=function(i){var c=o.locked.get(i);if(c!==void 0&&c.length!==0){var a=c.pop();o.locked.set(i,c),a!==void 0&&setTimeout(a,0)}else o.locked.delete(i)}}return r.getInstance=function(){return r.instance===void 0&&(r.instance=new r),r.instance},r}();e.default=function(){return n.getInstance()}});Tr(nt);var Xl=Tr(Pr(function(t,e){var n=gt&>.__awaiter||function(l,u,d,p){return new(d||(d=Promise))(function(f,h){function m(w){try{g(p.next(w))}catch(E){h(E)}}function v(w){try{g(p.throw(w))}catch(E){h(E)}}function g(w){w.done?f(w.value):new d(function(E){E(w.value)}).then(m,v)}g((p=p.apply(l,u||[])).next())})},r=gt&>.__generator||function(l,u){var d,p,f,h,m={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]},trys:[],ops:[]};return h={next:v(0),throw:v(1),return:v(2)},typeof Symbol=="function"&&(h[Symbol.iterator]=function(){return this}),h;function v(g){return function(w){return function(E){if(d)throw new TypeError("Generator is already executing.");for(;m;)try{if(d=1,p&&(f=2&E[0]?p.return:E[0]?p.throw||((f=p.return)&&f.call(p),0):p.next)&&!(f=f.call(p,E[1])).done)return f;switch(p=0,f&&(E=[2&E[0],f.value]),E[0]){case 0:case 1:f=E;break;case 4:return m.label++,{value:E[1],done:!1};case 5:m.label++,p=E[1],E=[0];continue;case 7:E=m.ops.pop(),m.trys.pop();continue;default:if(f=m.trys,!((f=f.length>0&&f[f.length-1])||E[0]!==6&&E[0]!==2)){m=0;continue}if(E[0]===3&&(!f||E[1]>f[0]&&E[1]<f[3])){m.label=E[1];break}if(E[0]===6&&m.label<f[1]){m.label=f[1],f=E;break}if(f&&m.label<f[2]){m.label=f[2],m.ops.push(E);break}f[2]&&m.ops.pop(),m.trys.pop();continue}E=u.call(l,m)}catch(x){E=[6,x],p=0}finally{d=f=0}if(5&E[0])throw E[1];return{value:E[0]?E[1]:void 0,done:!0}}([g,w])}}};Object.defineProperty(e,"__esModule",{value:!0});var o="browser-tabs-lock-key";function i(l){return new Promise(function(u){return setTimeout(u,l)})}function c(l){for(var u="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",d="",p=0;p<l;p++)d+=u[Math.floor(Math.random()*u.length)];return d}var a=function(){function l(){this.acquiredIatSet=new Set,this.id=Date.now().toString()+c(15),this.acquireLock=this.acquireLock.bind(this),this.releaseLock=this.releaseLock.bind(this),this.releaseLock__private__=this.releaseLock__private__.bind(this),this.waitForSomethingToChange=this.waitForSomethingToChange.bind(this),this.refreshLockWhileAcquired=this.refreshLockWhileAcquired.bind(this),l.waiters===void 0&&(l.waiters=[])}return l.prototype.acquireLock=function(u,d){return d===void 0&&(d=5e3),n(this,void 0,void 0,function(){var p,f,h,m,v,g;return r(this,function(w){switch(w.label){case 0:p=Date.now()+c(4),f=Date.now()+d,h=o+"-"+u,m=window.localStorage,w.label=1;case 1:return Date.now()<f?[4,i(30)]:[3,8];case 2:return w.sent(),m.getItem(h)!==null?[3,5]:(v=this.id+"-"+u+"-"+p,[4,i(Math.floor(25*Math.random()))]);case 3:return w.sent(),m.setItem(h,JSON.stringify({id:this.id,iat:p,timeoutKey:v,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,i(30)];case 4:return w.sent(),(g=m.getItem(h))!==null&&(g=JSON.parse(g)).id===this.id&&g.iat===p?(this.acquiredIatSet.add(p),this.refreshLockWhileAcquired(h,p),[2,!0]):[3,7];case 5:return l.lockCorrector(),[4,this.waitForSomethingToChange(f)];case 6:w.sent(),w.label=7;case 7:return p=Date.now()+c(4),[3,1];case 8:return[2,!1]}})})},l.prototype.refreshLockWhileAcquired=function(u,d){return n(this,void 0,void 0,function(){var p=this;return r(this,function(f){return setTimeout(function(){return n(p,void 0,void 0,function(){var h,m;return r(this,function(v){switch(v.label){case 0:return[4,nt.default().lock(d)];case 1:return v.sent(),this.acquiredIatSet.has(d)?(h=window.localStorage,(m=h.getItem(u))===null?(nt.default().unlock(d),[2]):((m=JSON.parse(m)).timeRefreshed=Date.now(),h.setItem(u,JSON.stringify(m)),nt.default().unlock(d),this.refreshLockWhileAcquired(u,d),[2])):(nt.default().unlock(d),[2])}})})},1e3),[2]})})},l.prototype.waitForSomethingToChange=function(u){return n(this,void 0,void 0,function(){return r(this,function(d){switch(d.label){case 0:return[4,new Promise(function(p){var f=!1,h=Date.now(),m=!1;function v(){if(m||(window.removeEventListener("storage",v),l.removeFromWaiting(v),clearTimeout(g),m=!0),!f){f=!0;var w=50-(Date.now()-h);w>0?setTimeout(p,w):p()}}window.addEventListener("storage",v),l.addToWaiting(v);var g=setTimeout(v,Math.max(0,u-Date.now()))})];case 1:return d.sent(),[2]}})})},l.addToWaiting=function(u){this.removeFromWaiting(u),l.waiters!==void 0&&l.waiters.push(u)},l.removeFromWaiting=function(u){l.waiters!==void 0&&(l.waiters=l.waiters.filter(function(d){return d!==u}))},l.notifyWaiters=function(){l.waiters!==void 0&&l.waiters.slice().forEach(function(u){return u()})},l.prototype.releaseLock=function(u){return n(this,void 0,void 0,function(){return r(this,function(d){switch(d.label){case 0:return[4,this.releaseLock__private__(u)];case 1:return[2,d.sent()]}})})},l.prototype.releaseLock__private__=function(u){return n(this,void 0,void 0,function(){var d,p,f;return r(this,function(h){switch(h.label){case 0:return d=window.localStorage,p=o+"-"+u,(f=d.getItem(p))===null?[2]:(f=JSON.parse(f)).id!==this.id?[3,2]:[4,nt.default().lock(f.iat)];case 1:h.sent(),this.acquiredIatSet.delete(f.iat),d.removeItem(p),nt.default().unlock(f.iat),l.notifyWaiters(),h.label=2;case 2:return[2]}})})},l.lockCorrector=function(){for(var u=Date.now()-5e3,d=window.localStorage,p=Object.keys(d),f=!1,h=0;h<p.length;h++){var m=p[h];if(m.includes(o)){var v=d.getItem(m);v!==null&&((v=JSON.parse(v)).timeRefreshed===void 0&&v.timeAcquired<u||v.timeRefreshed!==void 0&&v.timeRefreshed<u)&&(d.removeItem(m),f=!0)}}f&&l.notifyWaiters()},l.waiters=void 0,l}();e.default=a}));const Jl={timeoutInSeconds:60},Ii={name:"auth0-spa-js",version:"2.0.4"},_i=()=>Date.now();class Se extends Error{constructor(e,n){super(n),this.error=e,this.error_description=n,Object.setPrototypeOf(this,Se.prototype)}static fromPayload({error:e,error_description:n}){return new Se(e,n)}}class Ir extends Se{constructor(e,n,r,o=null){super(e,n),this.state=r,this.appState=o,Object.setPrototypeOf(this,Ir.prototype)}}class Ft extends Se{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,Ft.prototype)}}class _r extends Ft{constructor(e){super(),this.popup=e,Object.setPrototypeOf(this,_r.prototype)}}class Nr extends Se{constructor(e){super("cancelled","Popup closed"),this.popup=e,Object.setPrototypeOf(this,Nr.prototype)}}class Ar extends Se{constructor(e,n,r){super(e,n),this.mfa_token=r,Object.setPrototypeOf(this,Ar.prototype)}}class On extends Se{constructor(e,n){super("missing_refresh_token",`Missing Refresh Token (audience: '${wo(e,["default"])}', scope: '${wo(n)}')`),this.audience=e,this.scope=n,Object.setPrototypeOf(this,On.prototype)}}function wo(t,e=[]){return t&&!e.includes(t)?t:""}const rn=()=>window.crypto,Ln=()=>{const t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let e="";return Array.from(rn().getRandomValues(new Uint8Array(43))).forEach(n=>e+=t[n%t.length]),e},xo=t=>btoa(t),cr=t=>{var{clientId:e}=t,n=Re(t,["clientId"]);return new URLSearchParams((r=>Object.keys(r).filter(o=>r[o]!==void 0).reduce((o,i)=>Object.assign(Object.assign({},o),{[i]:r[i]}),{}))(Object.assign({client_id:e},n))).toString()},Co=t=>(e=>decodeURIComponent(atob(e).split("").map(n=>"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)).join("")))(t.replace(/_/g,"/").replace(/-/g,"+")),Ql=async(t,e)=>{const n=await fetch(t,e);return{ok:n.ok,json:await n.json()}},eu=async(t,e,n)=>{const r=new AbortController;let o;return e.signal=r.signal,Promise.race([Ql(t,e),new Promise((i,c)=>{o=setTimeout(()=>{r.abort(),c(new Error("Timeout when executing 'fetch'"))},n)})]).finally(()=>{clearTimeout(o)})},tu=async(t,e,n,r,o,i,c)=>{return a={auth:{audience:e,scope:n},timeout:o,fetchUrl:t,fetchOptions:r,useFormData:c},l=i,new Promise(function(u,d){const p=new MessageChannel;p.port1.onmessage=function(f){f.data.error?d(new Error(f.data.error)):u(f.data),p.port1.close()},l.postMessage(a,[p.port2])});var a,l},nu=async(t,e,n,r,o,i,c=1e4)=>o?tu(t,e,n,r,c,o,i):eu(t,r,c);async function ru(t,e){var{baseUrl:n,timeout:r,audience:o,scope:i,auth0Client:c,useFormData:a}=t,l=Re(t,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);const u=a?cr(l):JSON.stringify(l);return await async function(d,p,f,h,m,v,g){let w,E=null;for(let j=0;j<3;j++)try{w=await nu(d,f,h,m,v,g,p),E=null;break}catch(_){E=_}if(E)throw E;const x=w.json,{error:C,error_description:y}=x,k=Re(x,["error","error_description"]),{ok:I}=w;if(!I){const j=y||`HTTP error. Unable to fetch ${d}`;throw C==="mfa_required"?new Ar(C,j,k.mfa_token):C==="missing_refresh_token"?new On(f,h):new Se(C||"request_error",j)}return k}(`${n}/oauth/token`,r,o||"default",i,{method:"POST",body:u,headers:{"Content-Type":a?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(c||Ii))}},e,a)}const Qt=(...t)=>{return(e=t.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(e))).join(" ");var e};class Me{constructor(e,n="@@auth0spajs@@",r){this.prefix=n,this.suffix=r,this.clientId=e.clientId,this.scope=e.scope,this.audience=e.audience}toKey(){return[this.prefix,this.clientId,this.audience,this.scope,this.suffix].filter(Boolean).join("::")}static fromKey(e){const[n,r,o,i]=e.split("::");return new Me({clientId:r,scope:i,audience:o},n)}static fromCacheEntry(e){const{scope:n,audience:r,client_id:o}=e;return new Me({scope:n,audience:r,clientId:o})}}class ou{set(e,n){localStorage.setItem(e,JSON.stringify(n))}get(e){const n=window.localStorage.getItem(e);if(n)try{return JSON.parse(n)}catch{return}}remove(e){localStorage.removeItem(e)}allKeys(){return Object.keys(window.localStorage).filter(e=>e.startsWith("@@auth0spajs@@"))}}class Ni{constructor(){this.enclosedCache=function(){let e={};return{set(n,r){e[n]=r},get(n){const r=e[n];if(r)return r},remove(n){delete e[n]},allKeys:()=>Object.keys(e)}}()}}class iu{constructor(e,n,r){this.cache=e,this.keyManifest=n,this.nowProvider=r||_i}async setIdToken(e,n,r){var o;const i=this.getIdTokenCacheKey(e);await this.cache.set(i,{id_token:n,decodedToken:r}),await((o=this.keyManifest)===null||o===void 0?void 0:o.add(i))}async getIdToken(e){const n=await this.cache.get(this.getIdTokenCacheKey(e.clientId));if(!n&&e.scope&&e.audience){const r=await this.get(e);return!r||!r.id_token||!r.decodedToken?void 0:{id_token:r.id_token,decodedToken:r.decodedToken}}if(n)return{id_token:n.id_token,decodedToken:n.decodedToken}}async get(e,n=0){var r;let o=await this.cache.get(e.toKey());if(!o){const a=await this.getCacheKeys();if(!a)return;const l=this.matchExistingCacheKey(e,a);l&&(o=await this.cache.get(l))}if(!o)return;const i=await this.nowProvider(),c=Math.floor(i/1e3);return o.expiresAt-n<c?o.body.refresh_token?(o.body={refresh_token:o.body.refresh_token},await this.cache.set(e.toKey(),o),o.body):(await this.cache.remove(e.toKey()),void await((r=this.keyManifest)===null||r===void 0?void 0:r.remove(e.toKey()))):o.body}async set(e){var n;const r=new Me({clientId:e.client_id,scope:e.scope,audience:e.audience}),o=await this.wrapCacheEntry(e);await this.cache.set(r.toKey(),o),await((n=this.keyManifest)===null||n===void 0?void 0:n.add(r.toKey()))}async clear(e){var n;const r=await this.getCacheKeys();r&&(await r.filter(o=>!e||o.includes(e)).reduce(async(o,i)=>{await o,await this.cache.remove(i)},Promise.resolve()),await((n=this.keyManifest)===null||n===void 0?void 0:n.clear()))}async wrapCacheEntry(e){const n=await this.nowProvider();return{body:e,expiresAt:Math.floor(n/1e3)+e.expires_in}}async getCacheKeys(){var e;return this.keyManifest?(e=await this.keyManifest.get())===null||e===void 0?void 0:e.keys:this.cache.allKeys?this.cache.allKeys():void 0}getIdTokenCacheKey(e){return new Me({clientId:e},"@@auth0spajs@@","@@user@@").toKey()}matchExistingCacheKey(e,n){return n.filter(r=>{var o;const i=Me.fromKey(r),c=new Set(i.scope&&i.scope.split(" ")),a=((o=e.scope)===null||o===void 0?void 0:o.split(" "))||[],l=i.scope&&a.reduce((u,d)=>u&&c.has(d),!0);return i.prefix==="@@auth0spajs@@"&&i.clientId===e.clientId&&i.audience===e.audience&&l})[0]}}class su{constructor(e,n){this.storage=e,this.clientId=n,this.storageKey=`a0.spajs.txs.${this.clientId}`,this.transaction=this.storage.get(this.storageKey)}create(e){this.transaction=e,this.storage.save(this.storageKey,e,{daysUntilExpire:1})}get(){return this.transaction}remove(){delete this.transaction,this.storage.remove(this.storageKey)}}const It=t=>typeof t=="number",au=["iss","aud","exp","nbf","iat","jti","azp","nonce","auth_time","at_hash","c_hash","acr","amr","sub_jwk","cnf","sip_from_tag","sip_date","sip_callid","sip_cseq_num","sip_via_branch","orig","dest","mky","events","toe","txn","rph","sid","vot","vtm"],cu=t=>{if(!t.id_token)throw new Error("ID token is required but missing");const e=(i=>{const c=i.split("."),[a,l,u]=c;if(c.length!==3||!a||!l||!u)throw new Error("ID token could not be decoded");const d=JSON.parse(Co(l)),p={__raw:i},f={};return Object.keys(d).forEach(h=>{p[h]=d[h],au.includes(h)||(f[h]=d[h])}),{encoded:{header:a,payload:l,signature:u},header:JSON.parse(Co(a)),claims:p,user:f}})(t.id_token);if(!e.claims.iss)throw new Error("Issuer (iss) claim must be a string present in the ID token");if(e.claims.iss!==t.iss)throw new Error(`Issuer (iss) claim mismatch in the ID token; expected "${t.iss}", found "${e.claims.iss}"`);if(!e.user.sub)throw new Error("Subject (sub) claim must be a string present in the ID token");if(e.header.alg!=="RS256")throw new Error(`Signature algorithm of "${e.header.alg}" is not supported. Expected the ID token to be signed with "RS256".`);if(!e.claims.aud||typeof e.claims.aud!="string"&&!Array.isArray(e.claims.aud))throw new Error("Audience (aud) claim must be a string or array of strings present in the ID token");if(Array.isArray(e.claims.aud)){if(!e.claims.aud.includes(t.aud))throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${t.aud}" but was not one of "${e.claims.aud.join(", ")}"`);if(e.claims.aud.length>1){if(!e.claims.azp)throw new Error("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values");if(e.claims.azp!==t.aud)throw new Error(`Authorized Party (azp) claim mismatch in the ID token; expected "${t.aud}", found "${e.claims.azp}"`)}}else if(e.claims.aud!==t.aud)throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${t.aud}" but found "${e.claims.aud}"`);if(t.nonce){if(!e.claims.nonce)throw new Error("Nonce (nonce) claim must be a string present in the ID token");if(e.claims.nonce!==t.nonce)throw new Error(`Nonce (nonce) claim mismatch in the ID token; expected "${t.nonce}", found "${e.claims.nonce}"`)}if(t.max_age&&!It(e.claims.auth_time))throw new Error("Authentication Time (auth_time) claim must be a number present in the ID token when Max Age (max_age) is specified");if(e.claims.exp==null||!It(e.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!It(e.claims.iat))throw new Error("Issued At (iat) claim must be a number present in the ID token");const n=t.leeway||60,r=new Date(t.now||Date.now()),o=new Date(0);if(o.setUTCSeconds(e.claims.exp+n),r>o)throw new Error(`Expiration Time (exp) claim error in the ID token; current time (${r}) is after expiration time (${o})`);if(e.claims.nbf!=null&&It(e.claims.nbf)){const i=new Date(0);if(i.setUTCSeconds(e.claims.nbf-n),r<i)throw new Error(`Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Current time (${r}) is before ${i}`)}if(e.claims.auth_time!=null&&It(e.claims.auth_time)){const i=new Date(0);if(i.setUTCSeconds(parseInt(e.claims.auth_time)+t.max_age+n),r>i)throw new Error(`Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time (${r}) is after last auth at ${i}`)}if(t.organizationId){if(!e.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(t.organizationId!==e.claims.org_id)throw new Error(`Organization ID (org_id) claim mismatch in the ID token; expected "${t.organizationId}", found "${e.claims.org_id}"`)}return e};var rt=Pr(function(t,e){var n=gt&>.__assign||function(){return n=Object.assign||function(l){for(var u,d=1,p=arguments.length;d<p;d++)for(var f in u=arguments[d])Object.prototype.hasOwnProperty.call(u,f)&&(l[f]=u[f]);return l},n.apply(this,arguments)};function r(l,u){if(!u)return"";var d="; "+l;return u===!0?d:d+"="+u}function o(l,u,d){return encodeURIComponent(l).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(u).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+function(p){if(typeof p.expires=="number"){var f=new Date;f.setMilliseconds(f.getMilliseconds()+864e5*p.expires),p.expires=f}return r("Expires",p.expires?p.expires.toUTCString():"")+r("Domain",p.domain)+r("Path",p.path)+r("Secure",p.secure)+r("SameSite",p.sameSite)}(d)}function i(l){for(var u={},d=l?l.split("; "):[],p=/(%[\dA-F]{2})+/gi,f=0;f<d.length;f++){var h=d[f].split("="),m=h.slice(1).join("=");m.charAt(0)==='"'&&(m=m.slice(1,-1));try{u[h[0].replace(p,decodeURIComponent)]=m.replace(p,decodeURIComponent)}catch{}}return u}function c(){return i(document.cookie)}function a(l,u,d){document.cookie=o(l,u,n({path:"/"},d))}e.__esModule=!0,e.encode=o,e.parse=i,e.getAll=c,e.get=function(l){return c()[l]},e.set=a,e.remove=function(l,u){a(l,"",n(n({},u),{expires:-1}))}});Tr(rt),rt.encode,rt.parse,rt.getAll;var lu=rt.get,Ai=rt.set,Li=rt.remove;const mt={get(t){const e=lu(t);if(e!==void 0)return JSON.parse(e)},save(t,e,n){let r={};window.location.protocol==="https:"&&(r={secure:!0,sameSite:"none"}),n?.daysUntilExpire&&(r.expires=n.daysUntilExpire),n?.cookieDomain&&(r.domain=n.cookieDomain),Ai(t,JSON.stringify(e),r)},remove(t,e){let n={};e?.cookieDomain&&(n.domain=e.cookieDomain),Li(t,n)}},uu={get(t){return mt.get(t)||mt.get(`_legacy_${t}`)},save(t,e,n){let r={};window.location.protocol==="https:"&&(r={secure:!0}),n?.daysUntilExpire&&(r.expires=n.daysUntilExpire),n?.cookieDomain&&(r.domain=n.cookieDomain),Ai(`_legacy_${t}`,JSON.stringify(e),r),mt.save(t,e,n)},remove(t,e){let n={};e?.cookieDomain&&(n.domain=e.cookieDomain),Li(t,n),mt.remove(t,e),mt.remove(`_legacy_${t}`,e)}},du={get(t){if(typeof sessionStorage>"u")return;const e=sessionStorage.getItem(t);return e!=null?JSON.parse(e):void 0},save(t,e){sessionStorage.setItem(t,JSON.stringify(e))},remove(t){sessionStorage.removeItem(t)}};function fu(t,e,n){var r=e===void 0?null:e,o=function(l,u){var d=atob(l);if(u){for(var p=new Uint8Array(d.length),f=0,h=d.length;f<h;++f)p[f]=d.charCodeAt(f);return String.fromCharCode.apply(null,new Uint16Array(p.buffer))}return d}(t,n!==void 0&&n),i=o.indexOf(`
|
|
51
|
-
`,10)+1,c=o.substring(i)+(r?"//# sourceMappingURL="+r:""),a=new Blob([c],{type:"application/javascript"});return URL.createObjectURL(a)}var Oo,Eo,So,Rn,pu=(Oo="Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Y2xhc3MgZSBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQscil7c3VwZXIociksdGhpcy5lcnJvcj10LHRoaXMuZXJyb3JfZGVzY3JpcHRpb249cixPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcyxlLnByb3RvdHlwZSl9c3RhdGljIGZyb21QYXlsb2FkKHtlcnJvcjp0LGVycm9yX2Rlc2NyaXB0aW9uOnJ9KXtyZXR1cm4gbmV3IGUodCxyKX19Y2xhc3MgdCBleHRlbmRzIGV7Y29uc3RydWN0b3IoZSxzKXtzdXBlcigibWlzc2luZ19yZWZyZXNoX3Rva2VuIixgTWlzc2luZyBSZWZyZXNoIFRva2VuIChhdWRpZW5jZTogJyR7cihlLFsiZGVmYXVsdCJdKX0nLCBzY29wZTogJyR7cihzKX0nKWApLHRoaXMuYXVkaWVuY2U9ZSx0aGlzLnNjb3BlPXMsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsdC5wcm90b3R5cGUpfX1mdW5jdGlvbiByKGUsdD1bXSl7cmV0dXJuIGUmJiF0LmluY2x1ZGVzKGUpP2U6IiJ9Y29uc3Qgcz1lPT57dmFye2NsaWVudElkOnR9PWUscj1mdW5jdGlvbihlLHQpe3ZhciByPXt9O2Zvcih2YXIgcyBpbiBlKU9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkuY2FsbChlLHMpJiZ0LmluZGV4T2Yocyk8MCYmKHJbc109ZVtzXSk7aWYobnVsbCE9ZSYmImZ1bmN0aW9uIj09dHlwZW9mIE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMpe3ZhciBvPTA7Zm9yKHM9T2JqZWN0LmdldE93blByb3BlcnR5U3ltYm9scyhlKTtvPHMubGVuZ3RoO28rKyl0LmluZGV4T2Yoc1tvXSk8MCYmT2JqZWN0LnByb3RvdHlwZS5wcm9wZXJ0eUlzRW51bWVyYWJsZS5jYWxsKGUsc1tvXSkmJihyW3Nbb11dPWVbc1tvXV0pfXJldHVybiByfShlLFsiY2xpZW50SWQiXSk7cmV0dXJuIG5ldyBVUkxTZWFyY2hQYXJhbXMoKGU9Pk9iamVjdC5rZXlzKGUpLmZpbHRlcigodD0+dm9pZCAwIT09ZVt0XSkpLnJlZHVjZSgoKHQscik9Pk9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSx0KSx7W3JdOmVbcl19KSkse30pKShPYmplY3QuYXNzaWduKHtjbGllbnRfaWQ6dH0scikpKS50b1N0cmluZygpfTtsZXQgbz17fTtjb25zdCBuPShlLHQpPT5gJHtlfXwke3R9YDthZGRFdmVudExpc3RlbmVyKCJtZXNzYWdlIiwoYXN5bmMoe2RhdGE6e3RpbWVvdXQ6ZSxhdXRoOnIsZmV0Y2hVcmw6aSxmZXRjaE9wdGlvbnM6Yyx1c2VGb3JtRGF0YTphfSxwb3J0czpbZl19KT0+e2xldCBwO2NvbnN0e2F1ZGllbmNlOmwsc2NvcGU6dX09cnx8e307dHJ5e2NvbnN0IHI9YT8oZT0+e2NvbnN0IHQ9bmV3IFVSTFNlYXJjaFBhcmFtcyhlKSxyPXt9O3JldHVybiB0LmZvckVhY2goKChlLHQpPT57clt0XT1lfSkpLHJ9KShjLmJvZHkpOkpTT04ucGFyc2UoYy5ib2R5KTtpZighci5yZWZyZXNoX3Rva2VuJiYicmVmcmVzaF90b2tlbiI9PT1yLmdyYW50X3R5cGUpe2NvbnN0IGU9KChlLHQpPT5vW24oZSx0KV0pKGwsdSk7aWYoIWUpdGhyb3cgbmV3IHQobCx1KTtjLmJvZHk9YT9zKE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxyKSx7cmVmcmVzaF90b2tlbjplfSkpOkpTT04uc3RyaW5naWZ5KE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxyKSx7cmVmcmVzaF90b2tlbjplfSkpfWxldCBkLGc7ImZ1bmN0aW9uIj09dHlwZW9mIEFib3J0Q29udHJvbGxlciYmKGQ9bmV3IEFib3J0Q29udHJvbGxlcixjLnNpZ25hbD1kLnNpZ25hbCk7dHJ5e2c9YXdhaXQgUHJvbWlzZS5yYWNlKFsoaD1lLG5ldyBQcm9taXNlKChlPT5zZXRUaW1lb3V0KGUsaCkpKSksZmV0Y2goaSxPYmplY3QuYXNzaWduKHt9LGMpKV0pfWNhdGNoKGUpe3JldHVybiB2b2lkIGYucG9zdE1lc3NhZ2Uoe2Vycm9yOmUubWVzc2FnZX0pfWlmKCFnKXJldHVybiBkJiZkLmFib3J0KCksdm9pZCBmLnBvc3RNZXNzYWdlKHtlcnJvcjoiVGltZW91dCB3aGVuIGV4ZWN1dGluZyAnZmV0Y2gnIn0pO3A9YXdhaXQgZy5qc29uKCkscC5yZWZyZXNoX3Rva2VuPygoKGUsdCxyKT0+e29bbih0LHIpXT1lfSkocC5yZWZyZXNoX3Rva2VuLGwsdSksZGVsZXRlIHAucmVmcmVzaF90b2tlbik6KChlLHQpPT57ZGVsZXRlIG9bbihlLHQpXX0pKGwsdSksZi5wb3N0TWVzc2FnZSh7b2s6Zy5vayxqc29uOnB9KX1jYXRjaChlKXtmLnBvc3RNZXNzYWdlKHtvazohMSxqc29uOntlcnJvcjplLmVycm9yLGVycm9yX2Rlc2NyaXB0aW9uOmUubWVzc2FnZX19KX12YXIgaH0pKX0oKTsKCg==",Eo=null,So=!1,function(t){return Rn=Rn||fu(Oo,Eo,So),new Worker(Rn,t)});const Mn={};class hu{constructor(e,n){this.cache=e,this.clientId=n,this.manifestKey=this.createManifestKeyFrom(this.clientId)}async add(e){var n;const r=new Set(((n=await this.cache.get(this.manifestKey))===null||n===void 0?void 0:n.keys)||[]);r.add(e),await this.cache.set(this.manifestKey,{keys:[...r]})}async remove(e){const n=await this.cache.get(this.manifestKey);if(n){const r=new Set(n.keys);return r.delete(e),r.size>0?await this.cache.set(this.manifestKey,{keys:[...r]}):await this.cache.remove(this.manifestKey)}}get(){return this.cache.get(this.manifestKey)}clear(){return this.cache.remove(this.manifestKey)}createManifestKeyFrom(e){return`@@auth0spajs@@::${e}`}}const mu={memory:()=>new Ni().enclosedCache,localstorage:()=>new ou},jo=t=>mu[t],ko=t=>{const{openUrl:e,onRedirect:n}=t,r=Re(t,["openUrl","onRedirect"]);return Object.assign(Object.assign({},r),{openUrl:e===!1||e?e:n})},Dn=new Xl;class vu{constructor(e){let n,r;if(this.userCache=new Ni().enclosedCache,this.defaultOptions={authorizationParams:{scope:"openid profile email"},useRefreshTokensFallback:!1,useFormData:!0},this._releaseLockOnPageHide=async()=>{await Dn.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)},this.options=Object.assign(Object.assign(Object.assign({},this.defaultOptions),e),{authorizationParams:Object.assign(Object.assign({},this.defaultOptions.authorizationParams),e.authorizationParams)}),typeof window<"u"&&(()=>{if(!rn())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(rn().subtle===void 0)throw new Error(`
|
|
52
|
-
auth0-spa-js must run on a secure origin. See https://github.com/auth0/auth0-spa-js/blob/master/FAQ.md#why-do-i-get-auth0-spa-js-must-run-on-a-secure-origin for more information.
|
|
53
|
-
`)})(),e.cache&&e.cacheLocation&&console.warn("Both `cache` and `cacheLocation` options have been specified in the Auth0Client configuration; ignoring `cacheLocation` and using `cache`."),e.cache)r=e.cache;else{if(n=e.cacheLocation||"memory",!jo(n))throw new Error(`Invalid cache location "${n}"`);r=jo(n)()}this.httpTimeoutMs=e.httpTimeoutInSeconds?1e3*e.httpTimeoutInSeconds:1e4,this.cookieStorage=e.legacySameSiteCookie===!1?mt:uu,this.orgHintCookieName=`auth0.${this.options.clientId}.organization_hint`,this.isAuthenticatedCookieName=(c=>`auth0.${c}.is.authenticated`)(this.options.clientId),this.sessionCheckExpiryDays=e.sessionCheckExpiryDays||1;const o=e.useCookiesForTransactions?this.cookieStorage:du;var i;this.scope=Qt("openid",this.options.authorizationParams.scope,this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new su(o,this.options.clientId),this.nowProvider=this.options.nowProvider||_i,this.cacheManager=new iu(r,r.allKeys?void 0:new hu(r,this.options.clientId),this.nowProvider),this.domainUrl=(i=this.options.domain,/^https?:\/\//.test(i)?i:`https://${i}`),this.tokenIssuer=((c,a)=>c?c.startsWith("https://")?c:`https://${c}/`:`${a}/`)(this.options.issuer,this.domainUrl),typeof window<"u"&&window.Worker&&this.options.useRefreshTokens&&n==="memory"&&(this.worker=new pu)}_url(e){const n=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||Ii)));return`${this.domainUrl}${e}&auth0Client=${n}`}_authorizeUrl(e){return this._url(`/authorize?${cr(e)}`)}async _verifyIdToken(e,n,r){const o=await this.nowProvider();return cu({iss:this.tokenIssuer,aud:this.options.clientId,id_token:e,nonce:n,organizationId:r,leeway:this.options.leeway,max_age:(i=this.options.authorizationParams.max_age,typeof i!="string"?i:parseInt(i,10)||void 0),now:o});var i}_processOrgIdHint(e){e?this.cookieStorage.save(this.orgHintCookieName,e,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}):this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain})}async _prepareAuthorizeUrl(e,n,r){const o=xo(Ln()),i=xo(Ln()),c=Ln(),a=(d=>{const p=new Uint8Array(d);return(f=>{const h={"+":"-","/":"_","=":""};return f.replace(/[+/=]/g,m=>h[m])})(window.btoa(String.fromCharCode(...Array.from(p))))})(await(async d=>await rn().subtle.digest({name:"SHA-256"},new TextEncoder().encode(d)))(c)),l=((d,p,f,h,m,v,g,w)=>Object.assign(Object.assign(Object.assign({client_id:d.clientId},d.authorizationParams),f),{scope:Qt(p,f.scope),response_type:"code",response_mode:w||"query",state:h,nonce:m,redirect_uri:g||d.authorizationParams.redirect_uri,code_challenge:v,code_challenge_method:"S256"}))(this.options,this.scope,e,o,i,a,e.redirect_uri||this.options.authorizationParams.redirect_uri||r,n?.response_mode),u=this._authorizeUrl(l);return{nonce:i,code_verifier:c,scope:l.scope,audience:l.audience||"default",redirect_uri:l.redirect_uri,state:o,url:u}}async loginWithPopup(e,n){var r;if(e=e||{},!(n=n||{}).popup&&(n.popup=(a=>{const l=window.screenX+(window.innerWidth-400)/2,u=window.screenY+(window.innerHeight-600)/2;return window.open(a,"auth0:authorize:popup",`left=${l},top=${u},width=400,height=600,resizable,scrollbars=yes,status=1`)})(""),!n.popup))throw new Error("Unable to open a popup for loginWithPopup - window.open returned `null`");const o=await this._prepareAuthorizeUrl(e.authorizationParams||{},{response_mode:"web_message"},window.location.origin);n.popup.location.href=o.url;const i=await(a=>new Promise((l,u)=>{let d;const p=setInterval(()=>{a.popup&&a.popup.closed&&(clearInterval(p),clearTimeout(f),window.removeEventListener("message",d,!1),u(new Nr(a.popup)))},1e3),f=setTimeout(()=>{clearInterval(p),u(new _r(a.popup)),window.removeEventListener("message",d,!1)},1e3*(a.timeoutInSeconds||60));d=function(h){if(h.data&&h.data.type==="authorization_response"){if(clearTimeout(f),clearInterval(p),window.removeEventListener("message",d,!1),a.popup.close(),h.data.response.error)return u(Se.fromPayload(h.data.response));l(h.data.response)}},window.addEventListener("message",d)}))(Object.assign(Object.assign({},n),{timeoutInSeconds:n.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}));if(o.state!==i.state)throw new Error("Invalid state");const c=((r=e.authorizationParams)===null||r===void 0?void 0:r.organization)||this.options.authorizationParams.organization;await this._requestToken({audience:o.audience,scope:o.scope,code_verifier:o.code_verifier,grant_type:"authorization_code",code:i.code,redirect_uri:o.redirect_uri},{nonceIn:o.nonce,organizationId:c})}async getUser(){var e;const n=await this._getIdTokenFromCache();return(e=n?.decodedToken)===null||e===void 0?void 0:e.user}async getIdTokenClaims(){var e;const n=await this._getIdTokenFromCache();return(e=n?.decodedToken)===null||e===void 0?void 0:e.claims}async loginWithRedirect(e={}){var n;const r=ko(e),{openUrl:o,fragment:i,appState:c}=r,a=Re(r,["openUrl","fragment","appState"]),l=((n=a.authorizationParams)===null||n===void 0?void 0:n.organization)||this.options.authorizationParams.organization,u=await this._prepareAuthorizeUrl(a.authorizationParams||{}),{url:d}=u,p=Re(u,["url"]);this.transactionManager.create(Object.assign(Object.assign(Object.assign({},p),{appState:c}),l&&{organizationId:l}));const f=i?`${d}#${i}`:d;o?await o(f):window.location.assign(f)}async handleRedirectCallback(e=window.location.href){const n=e.split("?").slice(1);if(n.length===0)throw new Error("There are no query params available for parsing.");const{state:r,code:o,error:i,error_description:c}=(p=>{p.indexOf("#")>-1&&(p=p.substring(0,p.indexOf("#")));const f=new URLSearchParams(p);return{state:f.get("state"),code:f.get("code")||void 0,error:f.get("error")||void 0,error_description:f.get("error_description")||void 0}})(n.join("")),a=this.transactionManager.get();if(!a)throw new Error("Invalid state");if(this.transactionManager.remove(),i)throw new Ir(i,c||i,r,a.appState);if(!a.code_verifier||a.state&&a.state!==r)throw new Error("Invalid state");const l=a.organizationId,u=a.nonce,d=a.redirect_uri;return await this._requestToken(Object.assign({audience:a.audience,scope:a.scope,code_verifier:a.code_verifier,grant_type:"authorization_code",code:o},d?{redirect_uri:d}:{}),{nonceIn:u,organizationId:l}),{appState:a.appState}}async checkSession(e){if(!this.cookieStorage.get(this.isAuthenticatedCookieName)){if(!this.cookieStorage.get("auth0.is.authenticated"))return;this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove("auth0.is.authenticated")}try{await this.getTokenSilently(e)}catch{}}async getTokenSilently(e={}){var n;const r=Object.assign(Object.assign({cacheMode:"on"},e),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),e.authorizationParams),{scope:Qt(this.scope,(n=e.authorizationParams)===null||n===void 0?void 0:n.scope)})}),o=await((i,c)=>{let a=Mn[c];return a||(a=i().finally(()=>{delete Mn[c],a=null}),Mn[c]=a),a})(()=>this._getTokenSilently(r),`${this.options.clientId}::${r.authorizationParams.audience}::${r.authorizationParams.scope}`);return e.detailedResponse?o:o?.access_token}async _getTokenSilently(e){const{cacheMode:n}=e,r=Re(e,["cacheMode"]);if(n!=="off"){const o=await this._getEntryFromCache({scope:r.authorizationParams.scope,audience:r.authorizationParams.audience||"default",clientId:this.options.clientId});if(o)return o}if(n!=="cache-only"){if(!await(async(o,i=3)=>{for(let c=0;c<i;c++)if(await o())return!0;return!1})(()=>Dn.acquireLock("auth0.lock.getTokenSilently",5e3),10))throw new Ft;try{if(window.addEventListener("pagehide",this._releaseLockOnPageHide),n!=="off"){const u=await this._getEntryFromCache({scope:r.authorizationParams.scope,audience:r.authorizationParams.audience||"default",clientId:this.options.clientId});if(u)return u}const o=this.options.useRefreshTokens?await this._getTokenUsingRefreshToken(r):await this._getTokenFromIFrame(r),{id_token:i,access_token:c,oauthTokenScope:a,expires_in:l}=o;return Object.assign(Object.assign({id_token:i,access_token:c},a?{scope:a}:null),{expires_in:l})}finally{await Dn.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)}}}async getTokenWithPopup(e={},n={}){var r;const o=Object.assign(Object.assign({},e),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),e.authorizationParams),{scope:Qt(this.scope,(r=e.authorizationParams)===null||r===void 0?void 0:r.scope)})});return n=Object.assign(Object.assign({},Jl),n),await this.loginWithPopup(o,n),(await this.cacheManager.get(new Me({scope:o.authorizationParams.scope,audience:o.authorizationParams.audience||"default",clientId:this.options.clientId}))).access_token}async isAuthenticated(){return!!await this.getUser()}_buildLogoutUrl(e){e.clientId!==null?e.clientId=e.clientId||this.options.clientId:delete e.clientId;const n=e.logoutParams||{},{federated:r}=n,o=Re(n,["federated"]),i=r?"&federated":"";return this._url(`/v2/logout?${cr(Object.assign({clientId:e.clientId},o))}`)+i}async logout(e={}){const n=ko(e),{openUrl:r}=n,o=Re(n,["openUrl"]);e.clientId===null?await this.cacheManager.clear():await this.cacheManager.clear(e.clientId||this.options.clientId),this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove(this.isAuthenticatedCookieName,{cookieDomain:this.options.cookieDomain}),this.userCache.remove("@@user@@");const i=this._buildLogoutUrl(o);r?await r(i):r!==!1&&window.location.assign(i)}async _getTokenFromIFrame(e){const n=Object.assign(Object.assign({},e.authorizationParams),{prompt:"none"}),r=this.cookieStorage.get(this.orgHintCookieName);r&&!n.organization&&(n.organization=r);const{url:o,state:i,nonce:c,code_verifier:a,redirect_uri:l,scope:u,audience:d}=await this._prepareAuthorizeUrl(n,{response_mode:"web_message"},window.location.origin);try{if(window.crossOriginIsolated)throw new Se("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");const p=e.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,f=await((m,v,g=60)=>new Promise((w,E)=>{const x=window.document.createElement("iframe");x.setAttribute("width","0"),x.setAttribute("height","0"),x.style.display="none";const C=()=>{window.document.body.contains(x)&&(window.document.body.removeChild(x),window.removeEventListener("message",y,!1))};let y;const k=setTimeout(()=>{E(new Ft),C()},1e3*g);y=function(I){if(I.origin!=v||!I.data||I.data.type!=="authorization_response")return;const j=I.source;j&&j.close(),I.data.response.error?E(Se.fromPayload(I.data.response)):w(I.data.response),clearTimeout(k),window.removeEventListener("message",y,!1),setTimeout(C,2e3)},window.addEventListener("message",y,!1),window.document.body.appendChild(x),x.setAttribute("src",m)}))(o,this.domainUrl,p);if(i!==f.state)throw new Error("Invalid state");const h=await this._requestToken(Object.assign(Object.assign({},e.authorizationParams),{code_verifier:a,code:f.code,grant_type:"authorization_code",redirect_uri:l,timeout:e.authorizationParams.timeout||this.httpTimeoutMs}),{nonceIn:c});return Object.assign(Object.assign({},h),{scope:u,oauthTokenScope:h.scope,audience:d})}catch(p){throw p.error==="login_required"&&this.logout({openUrl:!1}),p}}async _getTokenUsingRefreshToken(e){const n=await this.cacheManager.get(new Me({scope:e.authorizationParams.scope,audience:e.authorizationParams.audience||"default",clientId:this.options.clientId}));if(!(n&&n.refresh_token||this.worker)){if(this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(e);throw new On(e.authorizationParams.audience||"default",e.authorizationParams.scope)}const r=e.authorizationParams.redirect_uri||this.options.authorizationParams.redirect_uri||window.location.origin,o=typeof e.timeoutInSeconds=="number"?1e3*e.timeoutInSeconds:null;try{const i=await this._requestToken(Object.assign(Object.assign(Object.assign({},e.authorizationParams),{grant_type:"refresh_token",refresh_token:n&&n.refresh_token,redirect_uri:r}),o&&{timeout:o}));return Object.assign(Object.assign({},i),{scope:e.authorizationParams.scope,oauthTokenScope:i.scope,audience:e.authorizationParams.audience||"default"})}catch(i){if((i.message.indexOf("Missing Refresh Token")>-1||i.message&&i.message.indexOf("invalid refresh token")>-1)&&this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(e);throw i}}async _saveEntryInCache(e){const{id_token:n,decodedToken:r}=e,o=Re(e,["id_token","decodedToken"]);this.userCache.set("@@user@@",{id_token:n,decodedToken:r}),await this.cacheManager.setIdToken(this.options.clientId,e.id_token,e.decodedToken),await this.cacheManager.set(o)}async _getIdTokenFromCache(){const e=this.options.authorizationParams.audience||"default",n=await this.cacheManager.getIdToken(new Me({clientId:this.options.clientId,audience:e,scope:this.scope})),r=this.userCache.get("@@user@@");return n&&n.id_token===r?.id_token?r:(this.userCache.set("@@user@@",n),n)}async _getEntryFromCache({scope:e,audience:n,clientId:r}){const o=await this.cacheManager.get(new Me({scope:e,audience:n,clientId:r}),60);if(o&&o.access_token){const{access_token:i,oauthTokenScope:c,expires_in:a}=o,l=await this._getIdTokenFromCache();return l&&Object.assign(Object.assign({id_token:l.id_token,access_token:i},c?{scope:c}:null),{expires_in:a})}}async _requestToken(e,n){const{nonceIn:r,organizationId:o}=n||{},i=await ru(Object.assign({baseUrl:this.domainUrl,client_id:this.options.clientId,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs},e),this.worker),c=await this._verifyIdToken(i.id_token,r,o);return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({},i),{decodedToken:c,scope:e.scope,audience:e.audience||"default"}),i.scope?{oauthTokenScope:i.scope}:null),{client_id:this.options.clientId})),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgIdHint(c.claims.org_id),Object.assign(Object.assign({},i),{decodedToken:c})}}var Ri={isAuthenticated:!1,isLoading:!0},Ue=function(){throw new Error("You forgot to wrap your component in <Auth0Provider>.")},gu=pe(pe({},Ri),{buildAuthorizeUrl:Ue,buildLogoutUrl:Ue,getAccessTokenSilently:Ue,getAccessTokenWithPopup:Ue,getIdTokenClaims:Ue,loginWithRedirect:Ue,loginWithPopup:Ue,logout:Ue,handleRedirectCallback:Ue}),Mi=b.createContext(gu),bu=function(t){ql(e,t);function e(n,r){var o=t.call(this,r||n)||this;return o.error=n,o.error_description=r,Object.setPrototypeOf(o,e.prototype),o}return e}(Error),yu=/[?&]code=[^&]+/,wu=/[?&]state=[^&]+/,xu=/[?&]error=[^&]+/,Cu=function(t){return t===void 0&&(t=window.location.search),(yu.test(t)||xu.test(t))&&wu.test(t)},Di=function(t){return function(e){return"error"in e?new bu(e.error,e.error_description):e instanceof Error?e:new Error(t)}},To=Di("Login failed"),Wn=Di("Get access token failed"),Wi=function(t){var e;t?.redirectUri&&(console.warn("Using `redirectUri` has been deprecated, please use `authorizationParams.redirect_uri` instead as `redirectUri` will be no longer supported in a future version"),t.authorizationParams=t.authorizationParams||{},t.authorizationParams.redirect_uri=t.redirectUri,delete t.redirectUri),!((e=t?.authorizationParams)===null||e===void 0)&&e.redirectUri&&(console.warn("Using `authorizationParams.redirectUri` has been deprecated, please use `authorizationParams.redirect_uri` instead as `authorizationParams.redirectUri` will be removed in a future version"),t.authorizationParams.redirect_uri=t.authorizationParams.redirectUri,delete t.authorizationParams.redirectUri)},Ou=function(t,e){switch(e.type){case"LOGIN_POPUP_STARTED":return pe(pe({},t),{isLoading:!0});case"LOGIN_POPUP_COMPLETE":case"INITIALISED":return pe(pe({},t),{isAuthenticated:!!e.user,user:e.user,isLoading:!1,error:void 0});case"HANDLE_REDIRECT_COMPLETE":case"GET_ACCESS_TOKEN_COMPLETE":return t.user===e.user?t:pe(pe({},t),{isAuthenticated:!!e.user,user:e.user});case"LOGOUT":return pe(pe({},t),{isAuthenticated:!1,user:void 0});case"ERROR":return pe(pe({},t),{isLoading:!1,error:e.error})}},Eu=function(t){return Wi(t),pe(pe({},t),{auth0Client:{name:"auth0-react",version:"2.0.1"}})},Su=function(t){window.history.replaceState({},document.title,t?.returnTo||window.location.pathname)},ju=function(t){var e=t.children,n=t.skipRedirectCallback,r=t.onRedirectCallback,o=r===void 0?Su:r,i=t.context,c=i===void 0?Mi:i,a=Yl(t,["children","skipRedirectCallback","onRedirectCallback","context"]),l=b.useState(function(){return new vu(Eu(a))})[0],u=b.useReducer(Ou,Ri),d=u[0],p=u[1],f=b.useRef(!1);b.useEffect(function(){f.current||(f.current=!0,function(){return ft(void 0,void 0,void 0,function(){var y,k,I;return pt(this,function(j){switch(j.label){case 0:return j.trys.push([0,7,,8]),y=void 0,Cu()&&!n?[4,l.handleRedirectCallback()]:[3,3];case 1:return k=j.sent().appState,[4,l.getUser()];case 2:return y=j.sent(),o(k,y),[3,6];case 3:return[4,l.checkSession()];case 4:return j.sent(),[4,l.getUser()];case 5:y=j.sent(),j.label=6;case 6:return p({type:"INITIALISED",user:y}),[3,8];case 7:return I=j.sent(),p({type:"ERROR",error:To(I)}),[3,8];case 8:return[2]}})})}())},[l,o,n]);var h=b.useCallback(function(y){return Wi(y),l.loginWithRedirect(y)},[l]),m=b.useCallback(function(y,k){return ft(void 0,void 0,void 0,function(){var I,j;return pt(this,function(_){switch(_.label){case 0:p({type:"LOGIN_POPUP_STARTED"}),_.label=1;case 1:return _.trys.push([1,3,,4]),[4,l.loginWithPopup(y,k)];case 2:return _.sent(),[3,4];case 3:return I=_.sent(),p({type:"ERROR",error:To(I)}),[2];case 4:return[4,l.getUser()];case 5:return j=_.sent(),p({type:"LOGIN_POPUP_COMPLETE",user:j}),[2]}})})},[l]),v=b.useCallback(function(y){return y===void 0&&(y={}),ft(void 0,void 0,void 0,function(){return pt(this,function(k){switch(k.label){case 0:return[4,l.logout(y)];case 1:return k.sent(),(y.openUrl||y.openUrl===!1)&&p({type:"LOGOUT"}),[2]}})})},[l]),g=b.useCallback(function(y){return ft(void 0,void 0,void 0,function(){var k,I,j,_;return pt(this,function(L){switch(L.label){case 0:return L.trys.push([0,2,3,5]),[4,l.getTokenSilently(y)];case 1:return k=L.sent(),[3,5];case 2:throw I=L.sent(),Wn(I);case 3:return j=p,_={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,l.getUser()];case 4:return j.apply(void 0,[(_.user=L.sent(),_)]),[7];case 5:return[2,k]}})})},[l]),w=b.useCallback(function(y,k){return ft(void 0,void 0,void 0,function(){var I,j,_,L;return pt(this,function(F){switch(F.label){case 0:return F.trys.push([0,2,3,5]),[4,l.getTokenWithPopup(y,k)];case 1:return I=F.sent(),[3,5];case 2:throw j=F.sent(),Wn(j);case 3:return _=p,L={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,l.getUser()];case 4:return _.apply(void 0,[(L.user=F.sent(),L)]),[7];case 5:return[2,I]}})})},[l]),E=b.useCallback(function(){return l.getIdTokenClaims()},[l]),x=b.useCallback(function(y){return ft(void 0,void 0,void 0,function(){var k,I,j;return pt(this,function(_){switch(_.label){case 0:return _.trys.push([0,2,3,5]),[4,l.handleRedirectCallback(y)];case 1:return[2,_.sent()];case 2:throw k=_.sent(),Wn(k);case 3:return I=p,j={type:"HANDLE_REDIRECT_COMPLETE"},[4,l.getUser()];case 4:return I.apply(void 0,[(j.user=_.sent(),j)]),[7];case 5:return[2]}})})},[l]),C=b.useMemo(function(){return pe(pe({},d),{getAccessTokenSilently:g,getAccessTokenWithPopup:w,getIdTokenClaims:E,loginWithRedirect:h,loginWithPopup:m,logout:v,handleRedirectCallback:x})},[d,g,w,E,h,m,v,x]);return b.createElement(c.Provider,{value:C},e)},Hi=function(t){return t===void 0&&(t=Mi),b.useContext(t)};const Lr=()=>s.jsx("span",{className:"spinner"});const Xe=({Logo:t=at,text:e="Loading..."})=>s.jsx("div",{className:"system-loader-overlay",children:s.jsxs("div",{className:"system-loader-container flex flex-column ai-center",children:[s.jsx(t,{}),s.jsx("h1",{className:"system-loader-text text-center mb-8",children:e}),s.jsx(Lr,{})]})}),ku=({activeStepName:t,showWarnIcon:e,stepsStatuses:n})=>s.jsx("ul",{className:"setup-flow-list",children:en.map(({name:r,label:o},i)=>{const c=r===t,a=n[r].state,l=e&&c?s.jsx("span",{className:"icon icon-box-16 icon-warn",children:"!"}):s.jsxs(s.Fragment,{children:[s.jsx("span",{className:c?"icon-arrow":""}),s.jsxs("span",{children:[i+1,"."]})]});return s.jsxs("li",{className:G("setup-flow-list-item",c&&"active"),children:[s.jsxs("div",{className:"setup-flow-list-item-icon-wrapper",children:[a==="prompt"&&l,a==="granted"&&s.jsx(oe,{name:"check"}),a==="denied"&&s.jsx(oe,{name:"close"})]}),o]},r)})}),Tu=({edgeNotificationsPermissionTimeout:t,isNotificationsPermissionPromptOpen:e})=>{const{name:n}=ba(),[r,o]=b.useState(!1);return b.useEffect(()=>{if(!e||n!=="Edge")return;const i=setTimeout(()=>o(!0),t);return()=>clearTimeout(i)},[n,t,e]),b.useEffect(()=>{e&&!r||o(!1)},[e,r,o]),{hasEdgeNotificationsPermissionError:r}},Pu=(t,e)=>{const{type:n,payload:r}=e;switch(n){case"completed":return{...t,[r.stepName]:{...t[r.stepName],isCompleted:!0}};case"skipped":return{...t,[r.stepName]:{isCompleted:!0,state:"denied"}};case"stateUpdated":{if(!r.state)throw Error('"stateUpdated" action invoked without state in payload');return{...t,[r.stepName]:{isCompleted:r.stepName===re.POPUPS?r.state==="granted":r.state!=="prompt",state:r.state}}}default:throw Error("Unknown action: "+n)}},Iu=t=>{const{handleDeferredStep:e,handleOperationComplete:n}=t;window.getScreenDetails().catch(async()=>{const{state:r}=await navigator.permissions.query({name:qe.WINDOW_MANAGEMENT});r==="prompt"&&e()}).finally(n)},_u=t=>{const{handleDeferredStep:e,handleOperationComplete:n}=t;Notification.requestPermission().then(async()=>{const{state:r}=await navigator.permissions.query({name:qe.NOTIFICATIONS});r==="prompt"&&e()}).finally(n)},Nu=t=>{const{handleDeferredStep:e,handleOperationComplete:n,dispatchAction:r}=t,o="about:blank",i="popup,width=1,height=1,top=9999,left=9999",c=window.open(o,void 0,i),a=window.open(o,void 0,i);c?.close(),a?.close();const l=!(c&&a);l&&e(),r({type:"stateUpdated",payload:{stepName:re.POPUPS,state:l?"denied":"granted"}}),n()},Au=t=>{const{dispatchAction:e}=t;e({type:"completed",payload:{stepName:re.PWA_INSTALL}})},Lu={[re.WINDOW_MANAGEMENT]:Iu,[re.NOTIFICATIONS]:_u,[re.POPUPS]:Nu,[re.PWA_INSTALL]:Au},Ru=({settings:t})=>{const{permission:e}=Ve(),[n,r]=Ie("localStorage",Vt,zt),[o,i]=b.useReducer(Pu,pa),[c,a]=b.useState(!1),[l,u]=b.useState(!1),d=en.find(g=>!o[g.name].isCompleted),p=d.name,f=en[en.length-1].name,{hasEdgeNotificationsPermissionError:h}=Tu({edgeNotificationsPermissionTimeout:t.edgeNotificationsPermissionTimeout,isNotificationsPermissionPromptOpen:l&&p===qe.NOTIFICATIONS}),m=()=>{a(!1),u(!0),Lu[p]({handleDeferredStep:()=>a(!0),handleOperationComplete:()=>u(!1),dispatchAction:g=>i(g)}),p===f&&r({isCompleted:!0})},v=()=>{a(!1),i({type:"skipped",payload:{stepName:p}})};return b.useEffect(()=>{h&&(u(!1),a(!0))},[h]),b.useEffect(()=>{a(!1),i({type:"stateUpdated",payload:{stepName:re.WINDOW_MANAGEMENT,state:Zt?e.statuses[re.WINDOW_MANAGEMENT]?.state:"denied"}}),i({type:"stateUpdated",payload:{stepName:re.NOTIFICATIONS,state:e.statuses[re.NOTIFICATIONS]?.state}})},[e.statuses]),s.jsxs(Sr,{description:d.description,heading:d.heading,Image:d.Image,title:"Platform Setup",children:[s.jsx(ku,{activeStepName:p,showWarnIcon:c&&p!==re.POPUPS,stepsStatuses:o}),s.jsx("p",{className:"setup-flow-instructions",children:c?d.instructions.additional:d.instructions.initial}),s.jsxs("div",{className:"flex setup-flow-btn-group",children:[s.jsx(Ut,{className:"io-btn io-btn-primary setup-flow-btn",disabled:l,onClick:m,children:d.actionBtnText}),p!==f&&s.jsx(Ut,{className:"io-btn io-btn-outline setup-flow-btn",disabled:l||p===re.WINDOW_MANAGEMENT,onClick:v,children:"Skip"})]}),l&&s.jsx(Lr,{})]})};const Rr=({components:{Logo:t=at,Loader:e=Xe}={},settings:n={}})=>{const{permission:r}=Ve();return r.isLoading?s.jsx(e,{text:"Checking browser permissions..."}):s.jsx(jr,{Logo:t,children:s.jsx(Ru,{settings:{...ca,...n}})})};const Mr=({errorMessage:t})=>{const e="https://support.interop.io",n=s.jsxs(s.Fragment,{children:["It seems that the following error prevents io.Connect Browser",s.jsx("br",{}),"from operating properly:",s.jsxs("span",{className:"browser-start-failed-error",children:["“",t,"”"]}),"For further assistance, visit our"," ",s.jsx("a",{className:"help-center-link",href:e,target:"_blank",rel:"noopener noreferrer",children:"help center"}),".",s.jsx("br",{}),s.jsx("p",{className:"thank-you",children:"Thank you for your cooperation."})]});return s.jsx(jr,{Logo:at,children:s.jsx(Sr,{className:"start-failed-card",heading:"Oops! io.Connect Browser couldn't start...",description:n,Image:aa,children:s.jsx(Ut,{className:"io-btn io-btn-primary visit-help-center-button",onClick:()=>window.open(e,"_blank","noopener,noreferrer"),children:"Visit the interop.io Help Center"})})})},Dr=({className:t="text-center mb-3",text:e="Making Your Work Flow"})=>s.jsxs(s.Fragment,{children:[s.jsx("h1",{className:G(t,"login-heading-title"),children:e}),s.jsxs("p",{className:"login-heading-paragraph",children:["Integrate apps, simplify user experiences and accelerate",s.jsx("br",{}),"digital transformation."]})]}),Mu=({components:t})=>{const e=t?.Logo||at,n=t?.Heading||Dr;return s.jsxs(s.Fragment,{children:[s.jsx(e,{}),s.jsx(n,{}),s.jsx(Lr,{})]})},Ui=({Logo:t,children:e,className:n})=>s.jsxs("div",{className:G(n,"login-container flex flex-column ai-center"),children:[s.jsx(t,{}),e]}),Du=({onLogin:t,isLoading:e,validationError:n,components:{Logo:r=at,Heading:o=Dr,Loader:i=Xe}={}})=>e?s.jsx(i,{text:"Verifying credentials..."}):s.jsxs(Ui,{Logo:r,children:[s.jsx(o,{}),s.jsx(Kt,{onClick:t,className:"io-btn-primary login-btn",children:"Log In"}),n&&s.jsxs("div",{className:"login-error-feedback",children:[s.jsx(oe,{name:"close"}),s.jsx("p",{children:n.message})]})]}),Po=(t,e)=>{const n=e.value,r=n.trim().length>3;return{value:n,isValid:r}},Wu=({onLogin:t,setIsLoading:e,loginError:n,setLoginError:r,userInputName:o})=>{const[i,c]=b.useReducer(Po,{value:"",isValid:!1}),[a,l]=b.useReducer(Po,{value:"",isValid:!1}),[u,d]=b.useState(!1),[p,f]=b.useState(!1),{isValid:h}=i,{isValid:m}=a,v=h&&m,g=y=>c({value:y.target.value}),w=y=>l({value:y.target.value}),E=()=>{h||d(!0)},x=()=>{m||f(!0)},C=async y=>{if(y.preventDefault(),!!v){e(!0);try{await t(i.value,a.value)}catch(k){r(k)}e(!1)}};return s.jsxs(Al,{className:"simple-login-form",onSubmit:C,children:[s.jsxs(sr,{className:"io-control-input simple-login-form-group",children:[s.jsx("input",{autoFocus:!0,autoComplete:"off",type:"text",placeholder:`Enter your ${o??"email"}`,value:i.value,onChange:g,onBlur:E,onFocus:()=>d(!1),className:G("io-input simple-login-input",u&&"input-error")}),u&&s.jsxs("div",{className:"simple-login-input-error",children:[s.jsx(oe,{name:"close",className:"error-icon"}),s.jsx("p",{children:`The ${o??"email"} is too short`})]})]}),s.jsxs(sr,{className:"io-control-input simple-login-form-group",children:[s.jsx("input",{autoComplete:"off",type:"password",placeholder:"Enter your password",value:a.value,onChange:w,onBlur:x,onFocus:()=>f(!1),className:G("io-input simple-login-input",p&&"input-error")}),p&&s.jsxs("div",{className:"simple-login-input-error",children:[s.jsx(oe,{name:"close",className:"error-icon"}),s.jsx("p",{children:"The password is too short"})]})]}),s.jsx(Ut,{type:"submit",className:"io-btn-primary io-btn login-btn simple-login-form-btn",children:"Log In"}),n&&s.jsxs("div",{className:"login-error-feedback",children:[s.jsx(oe,{name:"close",className:"error-icon"}),s.jsx("p",{children:n.message})]})]})};const Hu=({onLogin:t,userInputName:e,components:{Logo:n=at,Heading:r=Dr,Loader:o=Xe}={}})=>{const[i,c]=b.useState(!1),[a,l]=b.useState(null);return i?s.jsx(o,{text:"Verifying credentials..."}):s.jsxs(Ui,{Logo:n,children:[s.jsx(r,{}),s.jsx(Wu,{onLogin:t,setIsLoading:c,loginError:a,setLoginError:l,userInputName:e})]})};function Uu(t,e){const[n,r]=b.useState(!0),o=b.useContext(ee.IOConnectContext);return b.useEffect(()=>{let i;return(async()=>{if(!o.workspaces)return;let c;try{c=await o.workspaces.getWorkspaceById(t)}catch(l){console.warn(l);return}const a=c.getAllGroups().find(l=>l.id===e);a&&(i=await a.onLockConfigurationChanged(({showAddWindowButton:l})=>{l!==void 0&&r(l)}),r(!!a.showAddWindowButton))})(),()=>i?.()},[t,e,o.workspaces]),n}const Fu=({groupId:t,workspaceId:e})=>{const n=Uu(e,t),r=b.useCallback(o=>{bt.showAddApplicationPopup({bounds:o,groupId:t,workspaceId:e})},[t,e]);return n&&s.jsx(bt.AddWindowButton,{title:"Add App",visible:n,showPopup:r})},Vu=t=>s.jsx(bt.GroupHeaderButtons,{...t,addWindow:{visible:!1,showPopup:t.addWindow.showPopup}}),zu=()=>null,Wr=({onLogout:t,user:e,workspaces:n,launchpad:r,Loader:o=Xe,beforeunloadDialog:i})=>{const{setPlatformWindow:c}=fr(),a=n?.HeaderLogoArea??Pi,l=window.iobrowser?.platformStarted,u=Is(),{login:{isLoggingOut:d}}=Ve();return ds(i?.enabled===!1||d),b.useEffect(()=>{l&&c({name:window.name})},[l,c]),s.jsxs(kr.Provider,{value:{onLogout:t,user:e,launchpadComponents:r?.components},children:[!u&&s.jsx(o,{text:"Loading io.Connect Home..."}),s.jsx(bt,{components:{...n?.components,header:{...n?.components?.header,LogoComponent:l?a:zu},groupHeader:{AfterTabsComponent:Fu,ButtonsComponent:Vu,...n?.components?.groupHeader}}})]})},Zu=se({id:ce,username:z(ce),email:z(ce),firstName:z(ce),lastName:z(ce),avatarUrl:z(ce),token:z(ce),password:z(ce)}),Bu=({config:t})=>{const{setupFlow:e,login:n,workspaces:r,launchpad:o,beforeunloadDialog:i,getIOConnectConfig:c}=t,[a,l]=Ie("localStorage",hs,Zu),[u]=Ie("localStorage",Vt,zt),[d,p]=b.useState(null),{login:{isLoggingOut:f,setIsLoggingOut:h}}=Ve(),m=t.components?.SystemLoader??Xe,v=b.useCallback(async(w,E)=>{const x=await n.onLogin(w,E);l(x)},[n,l]),g=b.useCallback(()=>{h(!0),n.onLogout?.(),l(null)},[h,n,l]);return f?s.jsx(m,{text:"Logging out..."}):a?!u?.isCompleted&&e?.enabled!==!1?s.jsx(Rr,{settings:e?.settings,components:{...e?.components,Loader:m}}):d&&!d.message.includes("has already been started")?s.jsx(Mr,{errorMessage:d.message}):s.jsx(ee.IOConnectProvider,{settings:c(a),onInitError:p,fallback:s.jsx(m,{text:"Initializing io.Connect Browser..."}),children:s.jsx(Wr,{workspaces:r,launchpad:o,onLogout:g,user:a,beforeunloadDialog:i,Loader:m})}):s.jsx(Hu,{onLogin:v,userInputName:n.userInputName,components:{...n.components,Loader:m}})},$u=se({message:ce}),Gu=t=>{const e=Hi(),[n,r]=b.useState(void 0),[o,i]=Ie("sessionStorage",fs,$u),c=b.useMemo(()=>e.user?t?.(e.user)??{ok:!0}:null,[e.user,t]),a=c?.ok===!1,l=e.isLoading||e.isAuthenticated&&!n,u=a||l,d=b.useMemo(()=>c?.ok&&e.user?.email&&n?{username:e.user.name,id:e.user.email,token:n}:null,[e.user,n,c?.ok]);return b.useEffect(()=>{e.isAuthenticated&&e.getAccessTokenSilently().then(r).catch(console.warn)},[e]),b.useEffect(()=>{if(c){if(c.ok){i(null);return}i({message:c.message}),e.logout()}},[e,i,c]),{isLoading:u,validationError:o,user:d}},lr={POPUP:"popup",REDIRECT:"redirect"},Ku=({config:t})=>{const e=Hi(),{setupFlow:n,login:r,launchpad:o,workspaces:i,beforeunloadDialog:c,getIOConnectConfig:a}=t,{isLoading:l,validationError:u,user:d}=Gu(r.validateUser),f=(r.loginType??lr.REDIRECT)===lr.REDIRECT?e.loginWithRedirect:e.loginWithPopup,[h]=Ie("localStorage",Vt,zt),[m,v]=b.useState(null),{login:{isLoggingOut:g,setIsLoggingOut:w}}=Ve(),E=t.components?.SystemLoader??Xe,x=b.useCallback(()=>{w(!0),e.logout()},[w,e]);return g?s.jsx(E,{text:"Logging out..."}):d?!h?.isCompleted&&n?.enabled!==!1?s.jsx(Rr,{settings:n?.settings,components:{...n?.components,Loader:E}}):m&&!m.message.includes("has already been started")?s.jsx(Mr,{errorMessage:m.message}):s.jsx(ee.IOConnectProvider,{settings:a({...e.user,token:d.token}),onInitError:v,fallback:s.jsx(E,{text:"Initializing the platform..."}),children:s.jsx(Wr,{workspaces:i,launchpad:o,onLogout:x,user:d,beforeunloadDialog:c,Loader:E})}):s.jsx(Du,{onLogin:f,isLoading:l,validationError:u,components:{...r.components,Loader:E}})},Io=({config:t})=>{const{setupFlow:e,launchpad:n,workspaces:r,beforeunloadDialog:o,getIOConnectConfig:i}=t,c=t.components?.SystemLoader??Xe,{onLogout:a,user:l}=t.login??{},{isPlatformWindow:u}=fr(),[d]=Ie("localStorage",Vt,zt),[p,f]=b.useState(null),{login:{isLoggingOut:h,setIsLoggingOut:m}}=Ve(),v=b.useCallback(async()=>{a&&(m(!0),a())},[a,m]);return h?s.jsx(c,{text:"Logging out..."}):!d?.isCompleted&&e?.enabled!==!1&&u?s.jsx(Rr,{settings:e?.settings,components:{...e?.components,Loader:c}}):p&&!p.message.includes("has already been started")?s.jsx(Mr,{errorMessage:p.message}):s.jsx(ee.IOConnectProvider,{settings:i(l),onInitError:f,fallback:s.jsx(c,{text:"Initializing io.Connect Browser..."}),children:s.jsx(Wr,{workspaces:r,launchpad:n,onLogout:v,user:l,beforeunloadDialog:o,Loader:c})})},Fi=se({Logo:z(he().andThen(t=>xe(t,"Logo"))),Heading:z(he().andThen(t=>xe(t,"Heading")))}),qu=sn(...Object.values(lr).map(t=>wt(t))),Yu=se({type:wt("auth0"),validateUser:z(he().andThen(t=>xe(t,"validateUser"))),loginType:z(qu),providerOptions:he(),components:z(Fi)}),Xu=se({type:wt("simple"),onLogin:he().andThen(t=>xe(t,"onLogin")),onLogout:z(he().andThen(t=>xe(t,"onLogout"))),userInputName:z(ce),components:z(Fi)}),Ju=se({id:ce,username:ce}),Qu=se({type:wt("custom"),onLogout:he().andThen(t=>xe(t,"onLogout")),user:Ju}),ed=sn(Yu,Xu,Qu),td=se({edgeNotificationsPermissionTimeout:z(Ss)}),nd=se({Logo:z(he().andThen(t=>xe(t,"Logo")))}),rd=se({enabled:z(hn()),components:z(nd),settings:z(td)}),od=se({enabled:z(hn())}),id=se({components:z(he()),HeaderLogoArea:z(he().andThen(t=>xe(t,"HeaderLogoArea")))}),sd=se({sections:z(he()),Sections:z(he().andThen(t=>xe(t,"Sections"))),NotificationsPanel:sn(wt(null),z(he().andThen(t=>xe(t,"NotificationsPanel")))),UserPanel:sn(wt(null),z(he().andThen(t=>xe(t,"UserPanel"))))}),ad=se({components:z(sd)}),cd=se({SystemLoader:z(he().andThen(t=>xe(t,"SystemLoader")))}),ld=se({getIOConnectConfig:he().andThen(t=>xe(t,"getIOConnectConfig")),login:z(ed),setupFlow:z(rd),beforeunloadDialog:z(od),workspaces:z(id),launchpad:z(ad),components:z(cd)}),ud=({config:t})=>{const e=b.useMemo(()=>ld.runWithException(t),[t]),n=e.login,r=e.launchpad?.components,{isPlatformWindow:o}=fr();if(r?.sections&&r?.Sections)throw new Error("Launchpad sections are overspecified. Please provide either a JSX element or a React component.");if(!n||!o){const{login:c,...a}=e;return s.jsx(Io,{config:a})}if(n.type==="custom")return s.jsx(Io,{config:e});if(n.type==="simple")return s.jsx(Bu,{config:e});const{providerOptions:i}=n;return s.jsx(ju,{...i,authorizationParams:{...i.authorizationParams,redirect_uri:i.authorizationParams?.redirect_uri??window.location.origin},children:s.jsx(Ku,{config:e})})},dd=({config:t})=>s.jsx(ni,{children:s.jsx(ud,{config:t})}),Vi=t=>t?.split(" ").map(e=>e[0]?.toUpperCase()).join(""),zi=b.forwardRef((t,e)=>{const{onSearch:n,searchTerm:r,onClear:o}=t,i=b.useContext(ee.IOConnectContext);return b.useEffect(()=>{!i||!i.search||i.search.setDebounceMS(450)},[i]),s.jsxs("div",{className:"search","data-testid":"search-bar",children:[s.jsx("input",{type:"search",ref:e,className:"io-input",placeholder:"Find anything",value:r,onChange:n}),s.jsx(oe,{name:"delete-left",className:r.length!==0?"active":"",onClick:o,"data-testid":"delete-icon"})]})}),fd=t=>t.reduce((e,n)=>{const{type:r}=n,o=n.id||n.displayName;if(!o||r.name===Fe.LAYOUT)return e;let i=[];r.name===Fe.APPLICATION?i=Do:r.name===Fe.WORKSPACE?i=Wo:n.secondaryActions&&(i=n.secondaryActions.map(({name:u,method:d,params:p,target:f})=>({name:u,interopParams:{method:d,params:p,target:f}})));const c={id:o,title:n.displayName||o,description:n.description,type:r.name,iconSrc:n.iconURL,mainAction:n.action,contextMenuActions:i},a=e.findIndex(({title:u})=>r.displayName?u===r.displayName:u===r.name),l=e[a];return l?[...e.slice(0,a),{...l,items:[...l.items,c]},...e.slice(a+1)]:[...e,{id:r.name,title:r.displayName||r.name,items:[c]}]},[]);function Zi(t){const{resultsToRender:e,isLoading:n}=Ws(t.searchTerm),r=st(),o=Ps(),i=pr(),c=Yo(),a=fd(e),l=Xo(),u=Jo(),d=(f,h)=>{const m=f.type===Fe.APPLICATION?l:f.type===Fe.WORKSPACE?u:null;m&&m(f,h)},p=async(f,h)=>{const{item:m,modifier:v,selectedContextMenuActionName:g}=h,{type:w,id:E,mainAction:x}=m,C=g?m.contextMenuActions?.find(y=>y.name===g):null;C?.interopParams?o(C.interopParams):g?d(m,g):x?o(x):w===Fe.APPLICATION?c({id:E,modifier:v}).catch(y=>{console.error("Failed to start application",{error:y})}):w===Fe.WORKSPACE&&i({id:E,modifier:v}).catch(y=>{console.error("Failed to restore workspace",{error:y})}),v!==vn.SHIFT&&r.close()};return n?s.jsx("p",{style:{padding:"12px 24px"},children:"Loading..."}):e.length===0?s.jsx("p",{style:{padding:"12px 24px"},children:"No results found."}):s.jsx("ul",{children:a.map((f,h)=>s.jsx(wn,{config:f,isFavoritismEnabled:!1,onItemClick:p},f.id||h))})}const pd=(t,e,n)=>{const{isSectionCollapsible:r,sortOrder:o=Dt.ASCENDING,...i}=n;return{id:"workspaces-section",title:"Workspaces",items:ur({items:t,sortOrder:o,ascendingCompare:Ho,descendingCompare:Uo}).map(l=>({...l,type:Fe.WORKSPACE,isOpen:e[l.title]?.length>0,contextMenuActions:Wo})),isCollapsible:r,...i}},Bi=t=>{const{displayCount:e,isSectionCollapsible:n,showAllItems:r,sortOrder:o}=t,i=Hs(),c=Us(),a=pr(),l=Jo(),u=b.useMemo(()=>pd(i,c,{...{displayCount:e,showAllItems:r},isSectionCollapsible:n,sortOrder:o}),[i,c,e,n,r,o]),d=p=>{const{item:f,modifier:h,selectedContextMenuActionName:m}=p;if(!m)return a({id:f.id,modifier:h}).catch(v=>{console.error("Failed to restore workspace",{error:v})});l(f,m)};return s.jsx(xn,{config:u,onItemClick:d})},hd=()=>s.jsxs(s.Fragment,{children:[s.jsx(ki,{}),s.jsx(Bi,{}),s.jsx(ji,{})]}),md={success:"check"},_o={SET_AS_DEFAULT:"setAsDefault",DELETE:"delete"},vd=t=>[{name:_o.SET_AS_DEFAULT,displayName:"Set as Default",disabled:t.isDefault},{name:_o.DELETE,displayName:"Delete",disabled:t.name===ei||t.isDefault}],No=t=>async e=>{e.stopPropagation();try{await t()}catch(n){console.error("Failed to handle layout action: ",n)}},gd=t=>{const{layouts:e}=t,{setSelectedLayout:n,setDefaultLayout:r}=st(),o=Ys(),i=hr(),c=oi(),a=u=>{c(()=>i(u.name,n))},l=(u,d)=>{c(()=>o(u,d.name,r))};return s.jsxs("div",{"data-testid":"available-layouts",children:[s.jsx("h6",{children:"Available Layouts"}),e.map(u=>s.jsxs("div",{className:G("layouts-item flex ai-center",u.isSelected&&"active"),"data-testid":"layout-item",children:[s.jsx("div",{className:"loaded me-8",children:u.isSelected&&s.jsx(oe,{size:12,name:"check"})}),s.jsx("div",{className:G("name",{bold:u.isSelected}),onClick:()=>a(u),children:u.name}),s.jsxs("div",{className:"type",children:[u.type,u.isDefault?"/Default":""]}),s.jsx(xr,{iconSize:16,iconName:"ellipsis",actions:vd(u),onActionItemClick:(d,p)=>l(u,p)})]},u.name))]})},Ao=t=>{const{inputValue:e,setNotification:n,className:r=""}=t,{selectedLayout:o,setSelectedLayout:i}=st(),c=hr(),a=oi(),l=b.useContext(ee.IOConnectContext),u=[{label:"Save",type:"save",onClick:No(()=>{a(async()=>{await l.layouts.save({name:e,type:"Global"}),i({name:e}),n({message:"Saved",type:"success"})})}),testId:"save-button"},{label:"Restore",type:"restore",onClick:No(()=>{if(!o)return;a(()=>c(o.name))}),testId:"restore-button"}];return s.jsx("div",{className:G("layout-actions",r),"data-testid":"layout-actions",children:u.map(({label:d,type:p,disabled:f,onClick:h,testId:m})=>s.jsx("button",{onClick:h,disabled:f,className:"io-btn","data-testid":m,children:d},p))})},bd=({className:t,message:e,type:n})=>s.jsxs("div",{className:G("layout-notification",`layout-notification-${n}`,t),"data-testid":"layout-notification",children:[s.jsx(oe,{size:12,name:md[n]}),s.jsx("span",{"data-testid":"layout-notification-message",children:e})]}),$i=()=>{const t=b.useRef(null),[e,n]=b.useState(!1),[r,o]=b.useState(null),i=Ns(),{defaultLayout:c,selectedLayout:a}=st(),[l,u]=b.useState("");b.useEffect(()=>{if(!e)return;const p=h=>{t.current?.contains(h.target)||n(!1)},f=()=>{document.activeElement?.nodeName==="IFRAME"&&n(!1)};return document.addEventListener("click",p,!0),window.addEventListener("blur",f,!0),()=>{document.removeEventListener("click",p,!0),window.removeEventListener("blur",f,!0)}},[e]),b.useEffect(()=>{if(!r)return;const p=setTimeout(()=>o(null),3e3);return()=>clearTimeout(p)},[r]),b.useEffect(()=>{a&&u(a.name)},[a]);const d=()=>{n(p=>!p),a&&u(a.name)};return s.jsxs("footer",{className:"footer",ref:t,"data-testid":"layouts-panel",children:[s.jsxs("div",{"aria-label":"Layouts panel","aria-expanded":e,role:"button",...yt(d),className:"selected-layout flex ai-center","data-testid":"selected-layout",children:[s.jsx("span",{className:G("name",{hidden:e}),"data-testid":"selected-layout-name",children:a?.name||"No selected layout"}),s.jsxs("div",{className:"flex ai-center","data-testid":"layout-actions-and-toggle",children:[!e&&s.jsx(Ao,{inputValue:l,setNotification:o}),s.jsx(oe,{className:G("ms-8","layouts-panel-toggle-button",{"layouts-panel-toggle-button-rotated":e}),name:"chevron-up","data-testid":"layouts-panel-toggle"})]})]}),s.jsx(xi,{isOpen:e,children:s.jsxs("div",{className:"layouts-container",children:[s.jsxs("div",{className:"layouts-settings",children:[s.jsx("input",{className:"io-input",onChange:p=>u(p.target.value),value:l,"data-testid":"layout-name-input"}),s.jsx(Ao,{className:"group",inputValue:l,setNotification:o})]}),s.jsx(gd,{layouts:i.map(p=>({...p,isSelected:p.name===a?.name,isDefault:p.name===c?.name}))})]})}),r?s.jsx(bd,{className:G({"ms-8 me-8":e}),message:r.message,type:r.type}):s.jsx("div",{className:"powered-by",children:"Powered by io.Connect Browser"})]})},yd=t=>{const e=new Date(t),n=e.getHours(),r=e.getMinutes().toString().padStart(2,"0"),o=e.getSeconds().toString().padStart(2,"0"),i=n>=12?"PM":"AM",c=e.getMonth()+1,a=e.getDate(),l=e.getFullYear();return`${n%12}:${r}:${o} ${i} ${c}/${a}/${l}`},Gi=t=>{const{severity:e="None",id:n,timestamp:r,title:o,body:i,actions:c}=t.notificationData,a=b.useContext(ee.IOConnectContext),l=()=>{a&&a.notifications.clear(n).catch(console.error)},u=async p=>{p.stopPropagation();try{await a.notifications.click(n),l()}catch(f){console.error(f)}},d=c?.map(({action:p,title:f})=>({children:f,onClick:async h=>{h.stopPropagation();try{await a.notifications.click(n,p),l()}catch(m){console.error(m)}}}));return s.jsxs("div",{className:"notifications-list-item",style:{borderLeftColor:As[e]},onClick:u,"data-testid":"notification-container",children:[s.jsxs("div",{className:"notification-header","data-testid":"notification-header",children:[s.jsx("h4",{children:o}),s.jsx(oe,{onClick:p=>{p.stopPropagation(),l()},className:"io-btn close-btn",size:16,name:"close","data-testid":"close-icon"})]}),i&&s.jsx("p",{"data-testid":"notification-body",children:i}),r&&s.jsx("p",{"data-testid":"notification-timestamp",children:yd(r)}),d&&s.jsx(Cn,{className:"notification-actions","data-testid":"notification-actions",items:d})]})},Hr=t=>{const{className:e}=t,n=Ko().length;return n>0?s.jsx("span",{className:G("notifications-badge",e),"data-testid":"notifications-badge",children:n<10?n:"9+"}):null},Ki=t=>{const{className:e,iconSize:n=24,...r}=t;return s.jsxs("div",{className:G(e,"notifications-icon"),"data-testid":"notifications-icon",...r,children:[s.jsx(oe,{size:n,name:"bell"}),s.jsx(Hr,{})]})},qi=()=>{const{onNotificationsSort:t,sortedNotifications:e}=Ds(),n=b.useContext(ee.IOConnectContext),r=b.useCallback(()=>{n&&n.notifications.clearAll().catch(console.error)},[n]);return s.jsxs("div",{className:"notifications-panel","data-testid":"notifications-panel",children:[s.jsxs("div",{className:"header","data-testid":"notifications-panel-header",children:[s.jsx("div",{className:"header-caption",children:s.jsxs("div",{children:["Notifications (",e.length,")"]})}),s.jsx(Cn,{items:[{children:"Latest",onClick:()=>t("timestamp")},{children:"By Priority",onClick:()=>t("severity")}]})]}),e.length?s.jsx("div",{className:"notifications-list","data-testid":"notifications-list",children:e.map(o=>s.jsx(Gi,{notificationData:o},o.id))}):s.jsx("div",{className:"no-notifications",children:"No notifications"}),s.jsx("div",{className:"footer","data-testid":"notifications-panel-footer",children:s.jsx(Kt,{children:"Clear All",onClick:r})})]})},wd=({user:t})=>{const e=b.useContext(ee.IOConnectContext),n=t?.username||"N A";return s.jsxs("div",{className:"flex info info-top",children:[s.jsxs("div",{children:[s.jsx("h4",{children:n}),s.jsxs("p",{children:["PROD"," | ","Version "+e.version]})]}),s.jsx("div",{className:"flex badge",children:Vi(n)})]})},Yi=()=>{const t=b.useContext(ee.IOConnectContext),[e,n]=b.useState([]);b.useEffect(()=>{t&&t.themes?.list().then(o=>n(o)).catch(console.warn)},[t]);const r=async(o,i)=>{i.name&&t.themes?.select(i.name).catch(console.warn)};return s.jsxs("div",{className:"info info-middle",children:[s.jsx("h4",{children:"Settings"}),s.jsxs("div",{className:"flex ai-center",children:[s.jsx("label",{style:{textAlign:"right",width:"40%"},children:"Theme"}),s.jsx("div",{style:{width:"60%",marginLeft:"auto"},children:s.jsx(Cn,{onItemClick:r,items:e.map(({name:o,displayName:i})=>({name:o,children:i}))})})]})]})},Xi=({title:t,description:e,links:n=[],onLogout:r,user:o})=>{const[i,c]=Ie("sessionStorage",Bo,Qo),a=b.useContext(ee.IOConnectContext),l=async()=>{try{r?.()}catch(u){console.error(u)}c(null),await a.webPlatform?.system.shutdown(),window.location.reload()};return s.jsxs("div",{className:"info info-bottom flex flex-column",children:[s.jsx("h4",{children:t||"Support"}),s.jsx("p",{children:e||"New set of thoughtfully curated items and the ability to configure them."}),s.jsx("ul",{children:n.map(({children:u,...d})=>s.jsx("li",{children:s.jsx("a",{...d,children:u})},d.href))}),o?.id&&s.jsx("div",{children:s.jsx(Kt,{onClick:l,children:"Log Out"})})]})},Ji=({onLogout:t,user:e})=>s.jsxs(s.Fragment,{children:[s.jsx(wd,{user:e}),s.jsx(Yi,{}),s.jsx(Xi,{onLogout:t,user:e})]}),Qi=t=>{const{initials:e,className:n,...r}=t;return s.jsx("div",{className:G(n,"user-panel-icon"),...r,children:e})},Lo=({children:t,closeFn:e,open:n=!1,showCloseButton:r=!0})=>{const o=b.useRef(null);return b.useEffect(()=>{n?o.current?.showModal():o.current?.close()},[n]),s.jsx("dialog",{ref:o,onClose:()=>{n&&e()},onClick:i=>{i.target.nodeName==="DIALOG"&&e()},children:s.jsxs("div",{className:"dialog-backer",children:[r&&s.jsx(oe,{onClick:e,className:"btn-close io-btn io-btn-icon",size:16,name:"close"}),t]})})};function es(t){const{open:e,setOpen:n,onLogout:r,className:o,components:i={},user:c,...a}=t,[l,u]=b.useState(""),[d,p]=b.useState(!1),[f,h]=b.useState(!1),m=b.useRef(null),{permission:v}=Ve(),g=Zt&&v.statuses[re.WINDOW_MANAGEMENT]?.state==="granted",w=i?.NotificationsPanel!==null,E=i?.UserPanel!==null,x=i?.NotificationsPanel??qi,C=i?.UserPanel??Ji;b.useEffect(()=>{if(e){m.current?.focus();return}u("")},[e]);const y=_=>{u(_.target.value)},k=()=>{u("")},I=i.Sections?s.jsx(i.Sections,{}):i.sections,j=s.jsx(Ul,{children:s.jsx("ul",{children:I??s.jsx(hd,{})})});return s.jsxs(ma,{setOpen:n,isOpen:e,children:[s.jsxs("div",{className:G(o),...a,children:[s.jsxs("header",{children:[s.jsx(zi,{ref:m,searchTerm:l,onSearch:y,onClear:k}),s.jsxs("div",{className:"action-area",children:[w&&s.jsx(Ki,{"aria-label":"Notifications",role:"button",...yt(()=>p(!0))}),E&&s.jsx(Qi,{initials:Vi(c?.username||"N A"),"aria-label":"Profile and Settings",role:"button",...yt(()=>h(!0))})]}),s.jsx(oe,{className:"btn-close io-btn io-btn-icon",size:16,name:"close",handleClick:()=>n(!1)})]}),s.jsx("main",{children:l.trim().length<3?j:s.jsx(Zi,{searchTerm:l})}),g&&s.jsx($i,{})]}),w&&s.jsx(Lo,{open:d,closeFn:()=>p(!1),children:s.jsx(x,{})}),E&&s.jsx(Lo,{open:f,closeFn:()=>h(!1),children:s.jsx(C,{onLogout:r,user:c})})]})}const ts=()=>s.jsxs(s.Fragment,{children:[s.jsx(bt.Logo,{frameId:""}),s.jsx(Hr,{})]}),xd="_workspaceLogo_t3m7s_1",Ro={workspaceLogo:xd,"launchpad-popup":"_launchpad-popup_t3m7s_9","slide-in":"_slide-in_t3m7s_32"},ns=t=>{const[e,n]=b.useState(!1),r=b.useRef(null),o=b.useRef(null),{icon:i,children:c}=t;return b.useEffect(()=>{if(!e)return;const a=u=>{const d=u.target!==r.current&&!r.current?.contains(u.target);!(u.target===o.current||o.current?.contains(u.target))&&d&&n(!1)},l=()=>{document.activeElement?.nodeName==="IFRAME"&&n(!1)};return document.addEventListener("mouseup",a,!0),window.addEventListener("blur",l,!0),()=>{document.removeEventListener("mouseup",a,!0),window.removeEventListener("blur",l,!0)}},[e]),s.jsxs("div",{ref:r,children:[s.jsx("button",{"aria-label":"Launchpad",onClick:()=>n(a=>!a),className:`io-logo ${e===!0?"active":""}`,ref:o,children:s.jsx("div",{className:"logo-wrapper",children:i})}),s.jsx("div",{children:s.jsx("div",{className:G(Ro["launchpad-popup"],{[Ro["slide-in"]]:e}),children:c({open:e,setOpen:n})})})]})},Ur=t=>{const{icon:e,components:n,user:r,onLogout:o}=t;return s.jsx(ns,{icon:e??s.jsx(ts,{}),children:({open:i,setOpen:c})=>s.jsx(es,{open:i,setOpen:c,components:n,user:r,onLogout:o})})},Cd=()=>"getScreenDetails"in window;exports.ApplicationsSection=ji;exports.BaseSection=wn;exports.BaseSectionHeader=Zo;exports.BaseSectionItem=mi;exports.BrowserNotSupported=$l;exports.Button=Kt;exports.ButtonGroup=Cn;exports.ContextMenu=hi;exports.DropdownButton=xr;exports.FavoritesSection=ki;exports.IOConnectHome=dd;exports.IOConnectHomeProvider=ni;exports.Icon=oe;exports.ImgIcon=dr;exports.Launchpad=es;exports.LaunchpadAccess=Pi;exports.LaunchpadSlidePanel=Ur;exports.LayoutsPanel=$i;exports.LoginLoader=Mu;exports.Logo=ts;exports.Notification=Gi;exports.NotificationsBadge=Hr;exports.NotificationsIcon=Ki;exports.NotificationsPanel=qi;exports.SearchBar=zi;exports.SearchResults=Zi;exports.Section=xn;exports.SettingsCard=Yi;exports.SlidePanel=ns;exports.SupportCard=Xi;exports.SystemLoader=Xe;exports.UserPanel=Ji;exports.UserPanelIcon=Qi;exports.WorkspaceComponentsContext=kr;exports.WorkspaceLogo=Kl;exports.WorkspacesSection=Bi;exports.useFavoriteEntities=mn;exports.useIOConnectHome=Ve;exports.useIsBrowserSupported=Cd;exports.useWorkspaceComponentsContext=Ti;
|
|
54
|
-
//# sourceMappingURL=index.js.map
|