@interopio/home-ui-react 1.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.
Files changed (127) hide show
  1. package/README.md +312 -0
  2. package/assets/fonts/nunito-regular-webfont.woff +0 -0
  3. package/assets/fonts/nunito-regular-webfont.woff2 +0 -0
  4. package/assets/fonts/nunito-semibold-webfont.woff +0 -0
  5. package/assets/fonts/nunito-semibold-webfont.woff2 +0 -0
  6. package/assets/glue-logo.json +5 -0
  7. package/common/types.d.ts +2 -0
  8. package/constants/contextMenuActions.d.ts +15 -0
  9. package/constants/defaults.d.ts +2 -0
  10. package/constants/itemTypes.d.ts +5 -0
  11. package/constants/modifierKeys.d.ts +4 -0
  12. package/constants/storageKeys.d.ts +3 -0
  13. package/decoders/base.d.ts +2 -0
  14. package/decoders/context-menu.d.ts +3 -0
  15. package/decoders/favorites.d.ts +3 -0
  16. package/decoders/layouts.d.ts +3 -0
  17. package/executors/applicationActions.d.ts +6 -0
  18. package/executors/workspaceActions.d.ts +5 -0
  19. package/helpers/a11y.d.ts +39 -0
  20. package/helpers/date.d.ts +1 -0
  21. package/helpers/string.d.ts +1 -0
  22. package/hooks/index.d.ts +15 -0
  23. package/hooks/useApplications.d.ts +2 -0
  24. package/hooks/useApplicationsInstances.d.ts +3 -0
  25. package/hooks/useExecuteApplicationAction.d.ts +2 -0
  26. package/hooks/useExecuteWorkspaceAction.d.ts +2 -0
  27. package/hooks/useFavoriteEntities.d.ts +6 -0
  28. package/hooks/useFrame.d.ts +2 -0
  29. package/hooks/useInvokeInteropMethod.d.ts +2 -0
  30. package/hooks/usePressedKeys.d.ts +1 -0
  31. package/hooks/useRestoreWorkspace.d.ts +2 -0
  32. package/hooks/useSearch.d.ts +5 -0
  33. package/hooks/useStartApplication.d.ts +1 -0
  34. package/hooks/useStorage.d.ts +4 -0
  35. package/hooks/useUA.d.ts +2 -0
  36. package/hooks/useWorkspaces.d.ts +2 -0
  37. package/hooks/useWorkspacesInstances.d.ts +3 -0
  38. package/images/initial-setup.gif +0 -0
  39. package/images/manual-permissions.gif +0 -0
  40. package/images/using-home.gif +0 -0
  41. package/index.css +1 -0
  42. package/index.d.ts +33 -0
  43. package/index.js +43 -0
  44. package/index.js.map +1 -0
  45. package/index.mjs +7092 -0
  46. package/index.mjs.map +1 -0
  47. package/lib/applications-section/applications-section.d.ts +3 -0
  48. package/lib/applications-section/applications-section.helpers.d.ts +5 -0
  49. package/lib/base-section/base-section-header.d.ts +8 -0
  50. package/lib/base-section/base-section-item.d.ts +13 -0
  51. package/lib/base-section/base-section.d.ts +15 -0
  52. package/lib/base-section/base-section.helpers.d.ts +2 -0
  53. package/lib/base-section/base-section.types.d.ts +19 -0
  54. package/lib/button/button.d.ts +7 -0
  55. package/lib/button-group/button-group.d.ts +8 -0
  56. package/lib/context-menu/context-menu-types.d.ts +9 -0
  57. package/lib/context-menu/context-menu.d.ts +10 -0
  58. package/lib/context-menu/dropdown-button/dropdown-button.d.ts +12 -0
  59. package/lib/favorites-section/favorites-section.d.ts +3 -0
  60. package/lib/favorites-section/favorites-section.helpers.d.ts +3 -0
  61. package/lib/glue42-home-provider/constants.d.ts +1 -0
  62. package/lib/glue42-home-provider/glue42-home-provider.d.ts +15 -0
  63. package/lib/glue42-home-provider/helpers.d.ts +2 -0
  64. package/lib/glue42-home-provider/types.d.ts +4 -0
  65. package/lib/icon/icon.d.ts +9 -0
  66. package/lib/icon-components/browser-notifications-icon.d.ts +3 -0
  67. package/lib/icon-components/index.d.ts +4 -0
  68. package/lib/icon-components/reopen-prompt-icon.d.ts +3 -0
  69. package/lib/icon-components/warning-icon.d.ts +3 -0
  70. package/lib/icon-components/window-placement-icon.d.ts +3 -0
  71. package/lib/img-icon/img-icon.d.ts +8 -0
  72. package/lib/launchpad/features/profile-settings/profile-settings.d.ts +9 -0
  73. package/lib/launchpad/features/profile-settings/user-profile-modal.d.ts +10 -0
  74. package/lib/launchpad/launchpad.context.d.ts +12 -0
  75. package/lib/launchpad/launchpad.d.ts +14 -0
  76. package/lib/layout-settings/constants.d.ts +2 -0
  77. package/lib/layout-settings/index.d.ts +2 -0
  78. package/lib/layout-settings/layout-actions.d.ts +8 -0
  79. package/lib/layout-settings/layout-item.d.ts +9 -0
  80. package/lib/layout-settings/layout-notification.d.ts +7 -0
  81. package/lib/layout-settings/layout-settings-container.d.ts +3 -0
  82. package/lib/layout-settings/layout-settings.d.ts +12 -0
  83. package/lib/layout-settings/layout-startup.d.ts +2 -0
  84. package/lib/layout-settings/layout-types.d.ts +30 -0
  85. package/lib/login/constants.d.ts +1 -0
  86. package/lib/login/index.d.ts +3 -0
  87. package/lib/login/login-auth0.d.ts +6 -0
  88. package/lib/login/login-form.d.ts +11 -0
  89. package/lib/login/login-heading.d.ts +6 -0
  90. package/lib/login/login-loader.d.ts +3 -0
  91. package/lib/login/login-logo.d.ts +7 -0
  92. package/lib/login/login.d.ts +8 -0
  93. package/lib/login/reducers.d.ts +3 -0
  94. package/lib/login/types.d.ts +16 -0
  95. package/lib/modal/modal.d.ts +9 -0
  96. package/lib/notifications-panel/index.d.ts +1 -0
  97. package/lib/notifications-panel/notification-toast.d.ts +17 -0
  98. package/lib/notifications-panel/notifications-modal.d.ts +4 -0
  99. package/lib/notifications-panel/notifications-panel.d.ts +3 -0
  100. package/lib/notifications-panel/useNotificationsSort.d.ts +13 -0
  101. package/lib/panels/launchpad-slide-panel.d.ts +12 -0
  102. package/lib/panels/slide-panel.d.ts +9 -0
  103. package/lib/permissions-setup/constants.d.ts +5 -0
  104. package/lib/permissions-setup/permissions-card.d.ts +10 -0
  105. package/lib/permissions-setup/permissions-list.d.ts +8 -0
  106. package/lib/permissions-setup/permissions-setup-flow.d.ts +8 -0
  107. package/lib/permissions-setup/permissions-setup.d.ts +13 -0
  108. package/lib/permissions-setup/permissions-steps.d.ts +8 -0
  109. package/lib/permissions-setup/something-went-wrong.d.ts +6 -0
  110. package/lib/permissions-setup/types.d.ts +14 -0
  111. package/lib/permissions-setup/unsuccessful-setup.d.ts +7 -0
  112. package/lib/permissions-setup/use-edge-notifications-permission.d.ts +6 -0
  113. package/lib/profile-details-card/profile-details-card.d.ts +8 -0
  114. package/lib/search/search-bar/search-bar.d.ts +8 -0
  115. package/lib/search/search-results-section/search-results-section.d.ts +6 -0
  116. package/lib/search/search-results-section/search-results-section.helpers.d.ts +3 -0
  117. package/lib/search/search-results-section/search-results-section.types.d.ts +8 -0
  118. package/lib/section/section.context.d.ts +11 -0
  119. package/lib/section/section.d.ts +12 -0
  120. package/lib/section/section.helpers.d.ts +3 -0
  121. package/lib/section/section.types.d.ts +8 -0
  122. package/lib/settings-card/settings-card.d.ts +3 -0
  123. package/lib/support-card/support-card.d.ts +9 -0
  124. package/lib/workspaces-section/workspaces-section.d.ts +3 -0
  125. package/lib/workspaces-section/workspaces-section.helpers.d.ts +5 -0
  126. package/lib/workspaces-section/workspaces-section.types.d.ts +4 -0
  127. package/package.json +45 -0
package/index.d.ts ADDED
@@ -0,0 +1,33 @@
1
+ export * from './lib/context-menu/dropdown-button/dropdown-button';
2
+ export * from './lib/context-menu/context-menu';
3
+ export * from './lib/applications-section/applications-section';
4
+ export * from './lib/base-section/base-section';
5
+ export * from './lib/base-section/base-section-item';
6
+ export * from './lib/base-section/base-section-header';
7
+ export * from './lib/button/button';
8
+ export * from './lib/button-group/button-group';
9
+ export * from './lib/favorites-section/favorites-section';
10
+ export * from './lib/icon/icon';
11
+ export * from './lib/img-icon/img-icon';
12
+ export * from './lib/launchpad/features/profile-settings/profile-settings';
13
+ export * from './lib/launchpad/launchpad';
14
+ export * from './lib/layout-settings';
15
+ export * from './lib/login';
16
+ export * from './lib/notifications-panel';
17
+ export * from './lib/search/search-bar/search-bar';
18
+ export * from './lib/search/search-results-section/search-results-section';
19
+ export * from './lib/section/section';
20
+ export * from './lib/section/section.types';
21
+ export * from './lib/settings-card/settings-card';
22
+ export * from './lib/support-card/support-card';
23
+ export * from './lib/workspaces-section/workspaces-section';
24
+ export * from './lib/panels/launchpad-slide-panel';
25
+ export * from './lib/panels/slide-panel';
26
+ export * from './lib/permissions-setup/permissions-setup';
27
+ export * from './lib/glue42-home-provider/glue42-home-provider';
28
+ declare global {
29
+ let glue42core: string;
30
+ interface Window {
31
+ glue42core: any;
32
+ }
33
+ }
package/index.js ADDED
@@ -0,0 +1,43 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),y=require("react"),et=require("react-dom"),ce=require("@glue42/react-hooks"),Jo=require("@glue42/workspaces-ui-react");function Zr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Fe=Zr(y),Qo=Zr(et);var cr=function(t){return t.reduce(function(n,r){var o=r[0],i=r[1];return n[o]=i,n},{})},lr=typeof window<"u"&&window.document&&window.document.createElement?Fe.useLayoutEffect:Fe.useEffect,pe="top",be="bottom",xe="right",he="left",qt="auto",St=[pe,be,xe,he],ot="start",Et="end",ei="clippingParents",qr="viewport",pt="popper",ti="reference",ur=St.reduce(function(e,t){return e.concat([t+"-"+ot,t+"-"+Et])},[]),zr=[].concat(St,[qt]).reduce(function(e,t){return e.concat([t,t+"-"+ot,t+"-"+Et])},[]),ni="beforeRead",ri="read",oi="afterRead",ii="beforeMain",ai="main",si="afterMain",ci="beforeWrite",li="write",ui="afterWrite",vn=[ni,ri,oi,ii,ai,si,ci,li,ui];function Pe(e){return e?(e.nodeName||"").toLowerCase():null}function we(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ze(e){var t=we(e).Element;return e instanceof t||e instanceof Element}function me(e){var t=we(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Hn(e){if(typeof ShadowRoot>"u")return!1;var t=we(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function fi(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!me(i)||!Pe(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var c=o[s];c===!1?i.removeAttribute(s):i.setAttribute(s,c===!0?"":c)}))})}function di(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),c=s.reduce(function(l,p){return l[p]="",l},{});!me(o)||!Pe(o)||(Object.assign(o.style,c),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const pi={name:"applyStyles",enabled:!0,phase:"write",fn:fi,effect:di,requires:["computeStyles"]};function Ee(e){return e.split("-")[0]}var qe=Math.max,Lt=Math.min,it=Math.round;function mn(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Yr(){return!/^((?!chrome|android).)*safari/i.test(mn())}function at(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&me(e)&&(o=e.offsetWidth>0&&it(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&it(r.height)/e.offsetHeight||1);var s=ze(e)?we(e):window,c=s.visualViewport,l=!Yr()&&n,p=(r.left+(l&&c?c.offsetLeft:0))/o,u=(r.top+(l&&c?c.offsetTop:0))/i,g=r.width/o,f=r.height/i;return{width:g,height:f,top:u,right:p+g,bottom:u+f,left:p,x:p,y:u}}function Bn(e){var t=at(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Kr(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Hn(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ce(e){return we(e).getComputedStyle(e)}function hi(e){return["table","td","th"].indexOf(Pe(e))>=0}function He(e){return((ze(e)?e.ownerDocument:e.document)||window.document).documentElement}function zt(e){return Pe(e)==="html"?e:e.assignedSlot||e.parentNode||(Hn(e)?e.host:null)||He(e)}function fr(e){return!me(e)||Ce(e).position==="fixed"?null:e.offsetParent}function vi(e){var t=/firefox/i.test(mn()),n=/Trident/i.test(mn());if(n&&me(e)){var r=Ce(e);if(r.position==="fixed")return null}var o=zt(e);for(Hn(o)&&(o=o.host);me(o)&&["html","body"].indexOf(Pe(o))<0;){var i=Ce(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Pt(e){for(var t=we(e),n=fr(e);n&&hi(n)&&Ce(n).position==="static";)n=fr(n);return n&&(Pe(n)==="html"||Pe(n)==="body"&&Ce(n).position==="static")?t:n||vi(e)||t}function Vn(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function yt(e,t,n){return qe(e,Lt(t,n))}function mi(e,t,n){var r=yt(e,t,n);return r>n?n:r}function Xr(){return{top:0,right:0,bottom:0,left:0}}function Jr(e){return Object.assign({},Xr(),e)}function Qr(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var gi=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Jr(typeof t!="number"?t:Qr(t,St))};function yi(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,c=Ee(n.placement),l=Vn(c),p=[he,xe].indexOf(c)>=0,u=p?"height":"width";if(!(!i||!s)){var g=gi(o.padding,n),f=Bn(i),h=l==="y"?pe:he,v=l==="y"?be:xe,d=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],m=s[l]-n.rects.reference[l],O=Pt(i),j=O?l==="y"?O.clientHeight||0:O.clientWidth||0:0,E=d/2-m/2,w=g[h],b=j-f[u]-g[v],k=j/2-f[u]/2+E,F=yt(w,k,b),W=l;n.modifiersData[r]=(t={},t[W]=F,t.centerOffset=F-k,t)}}function bi(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;if(o!=null&&!(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o))){if(process.env.NODE_ENV!=="production"&&(me(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(" "))),!Kr(t.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}t.elements.arrow=o}}const xi={name:"arrow",enabled:!0,phase:"main",fn:yi,effect:bi,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function st(e){return e.split("-")[1]}var wi={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ei(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:it(t*o)/o||0,y:it(n*o)/o||0}}function dr(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,c=e.position,l=e.gpuAcceleration,p=e.adaptive,u=e.roundOffsets,g=e.isFixed,f=s.x,h=f===void 0?0:f,v=s.y,d=v===void 0?0:v,m=typeof u=="function"?u({x:h,y:d}):{x:h,y:d};h=m.x,d=m.y;var O=s.hasOwnProperty("x"),j=s.hasOwnProperty("y"),E=he,w=pe,b=window;if(p){var k=Pt(n),F="clientHeight",W="clientWidth";if(k===we(n)&&(k=He(n),Ce(k).position!=="static"&&c==="absolute"&&(F="scrollHeight",W="scrollWidth")),k=k,o===pe||(o===he||o===xe)&&i===Et){w=be;var Y=g&&k===b&&b.visualViewport?b.visualViewport.height:k[F];d-=Y-r.height,d*=l?1:-1}if(o===he||(o===pe||o===be)&&i===Et){E=xe;var G=g&&k===b&&b.visualViewport?b.visualViewport.width:k[W];h-=G-r.width,h*=l?1:-1}}var V=Object.assign({position:c},p&&wi),te=u===!0?Ei({x:h,y:d}):{x:h,y:d};if(h=te.x,d=te.y,l){var J;return Object.assign({},V,(J={},J[w]=j?"0":"",J[E]=O?"0":"",J.transform=(b.devicePixelRatio||1)<=1?"translate("+h+"px, "+d+"px)":"translate3d("+h+"px, "+d+"px, 0)",J))}return Object.assign({},V,(t={},t[w]=j?d+"px":"",t[E]=O?h+"px":"",t.transform="",t))}function Ci(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,c=n.roundOffsets,l=c===void 0?!0:c;if(process.env.NODE_ENV!=="production"){var p=Ce(t.elements.popper).transitionProperty||"";s&&["transform","top","right","bottom","left"].some(function(g){return p.indexOf(g)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
2
+
3
+ `,'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.",`
4
+
5
+ `,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var u={placement:Ee(t.placement),variation:st(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,dr(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,dr(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Oi={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ci,data:{}};var Tt={passive:!0};function ji(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,c=s===void 0?!0:s,l=we(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&p.forEach(function(u){u.addEventListener("scroll",n.update,Tt)}),c&&l.addEventListener("resize",n.update,Tt),function(){i&&p.forEach(function(u){u.removeEventListener("scroll",n.update,Tt)}),c&&l.removeEventListener("resize",n.update,Tt)}}const Si={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ji,data:{}};var Pi={left:"right",right:"left",bottom:"top",top:"bottom"};function It(e){return e.replace(/left|right|bottom|top/g,function(t){return Pi[t]})}var ki={start:"end",end:"start"};function pr(e){return e.replace(/start|end/g,function(t){return ki[t]})}function Un(e){var t=we(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Wn(e){return at(He(e)).left+Un(e).scrollLeft}function _i(e,t){var n=we(e),r=He(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,c=0,l=0;if(o){i=o.width,s=o.height;var p=Yr();(p||!p&&t==="fixed")&&(c=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:c+Wn(e),y:l}}function Ni(e){var t,n=He(e),r=Un(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=qe(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=qe(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-r.scrollLeft+Wn(e),l=-r.scrollTop;return Ce(o||n).direction==="rtl"&&(c+=qe(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:c,y:l}}function Gn(e){var t=Ce(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function eo(e){return["html","body","#document"].indexOf(Pe(e))>=0?e.ownerDocument.body:me(e)&&Gn(e)?e:eo(zt(e))}function bt(e,t){var n;t===void 0&&(t=[]);var r=eo(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=we(r),s=o?[i].concat(i.visualViewport||[],Gn(r)?r:[]):r,c=t.concat(s);return o?c:c.concat(bt(zt(s)))}function gn(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ti(e,t){var n=at(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function hr(e,t,n){return t===qr?gn(_i(e,n)):ze(t)?Ti(t,n):gn(Ni(He(e)))}function Ai(e){var t=bt(zt(e)),n=["absolute","fixed"].indexOf(Ce(e).position)>=0,r=n&&me(e)?Pt(e):e;return ze(r)?t.filter(function(o){return ze(o)&&Kr(o,r)&&Pe(o)!=="body"}):[]}function Ri(e,t,n,r){var o=t==="clippingParents"?Ai(e):[].concat(t),i=[].concat(o,[n]),s=i[0],c=i.reduce(function(l,p){var u=hr(e,p,r);return l.top=qe(u.top,l.top),l.right=Lt(u.right,l.right),l.bottom=Lt(u.bottom,l.bottom),l.left=qe(u.left,l.left),l},hr(e,s,r));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function to(e){var t=e.reference,n=e.element,r=e.placement,o=r?Ee(r):null,i=r?st(r):null,s=t.x+t.width/2-n.width/2,c=t.y+t.height/2-n.height/2,l;switch(o){case pe:l={x:s,y:t.y-n.height};break;case be:l={x:s,y:t.y+t.height};break;case xe:l={x:t.x+t.width,y:c};break;case he:l={x:t.x-n.width,y:c};break;default:l={x:t.x,y:t.y}}var p=o?Vn(o):null;if(p!=null){var u=p==="y"?"height":"width";switch(i){case ot:l[p]=l[p]-(t[u]/2-n[u]/2);break;case Et:l[p]=l[p]+(t[u]/2-n[u]/2);break}}return l}function Ct(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,c=n.boundary,l=c===void 0?ei:c,p=n.rootBoundary,u=p===void 0?qr:p,g=n.elementContext,f=g===void 0?pt:g,h=n.altBoundary,v=h===void 0?!1:h,d=n.padding,m=d===void 0?0:d,O=Jr(typeof m!="number"?m:Qr(m,St)),j=f===pt?ti:pt,E=e.rects.popper,w=e.elements[v?j:f],b=Ri(ze(w)?w:w.contextElement||He(e.elements.popper),l,u,s),k=at(e.elements.reference),F=to({reference:k,element:E,strategy:"absolute",placement:o}),W=gn(Object.assign({},E,F)),Y=f===pt?W:k,G={top:b.top-Y.top+O.top,bottom:Y.bottom-b.bottom+O.bottom,left:b.left-Y.left+O.left,right:Y.right-b.right+O.right},V=e.modifiersData.offset;if(f===pt&&V){var te=V[o];Object.keys(G).forEach(function(J){var re=[xe,be].indexOf(J)>=0?1:-1,ve=[pe,be].indexOf(J)>=0?"y":"x";G[J]+=te[ve]*re})}return G}function Mi(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,c=n.flipVariations,l=n.allowedAutoPlacements,p=l===void 0?zr:l,u=st(r),g=u?c?ur:ur.filter(function(v){return st(v)===u}):St,f=g.filter(function(v){return p.indexOf(v)>=0});f.length===0&&(f=g,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(v,d){return v[d]=Ct(e,{placement:d,boundary:o,rootBoundary:i,padding:s})[Ee(d)],v},{});return Object.keys(h).sort(function(v,d){return h[v]-h[d]})}function Ii(e){if(Ee(e)===qt)return[];var t=It(e);return[pr(e),t,pr(t)]}function Di(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,c=s===void 0?!0:s,l=n.fallbackPlacements,p=n.padding,u=n.boundary,g=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,v=h===void 0?!0:h,d=n.allowedAutoPlacements,m=t.options.placement,O=Ee(m),j=O===m,E=l||(j||!v?[It(m)]:Ii(m)),w=[m].concat(E).reduce(function(_,A){return _.concat(Ee(A)===qt?Mi(t,{placement:A,boundary:u,rootBoundary:g,padding:p,flipVariations:v,allowedAutoPlacements:d}):A)},[]),b=t.rects.reference,k=t.rects.popper,F=new Map,W=!0,Y=w[0],G=0;G<w.length;G++){var V=w[G],te=Ee(V),J=st(V)===ot,re=[pe,be].indexOf(te)>=0,ve=re?"width":"height",K=Ct(t,{placement:V,boundary:u,rootBoundary:g,altBoundary:f,padding:p}),ee=re?J?xe:he:J?be:pe;b[ve]>k[ve]&&(ee=It(ee));var ge=It(ee),ue=[];if(i&&ue.push(K[te]<=0),c&&ue.push(K[ee]<=0,K[ge]<=0),ue.every(function(_){return _})){Y=V,W=!1;break}F.set(V,ue)}if(W)for(var C=v?3:1,P=function(A){var N=w.find(function(M){var L=F.get(M);if(L)return L.slice(0,A).every(function(B){return B})});if(N)return Y=N,"break"},T=C;T>0;T--){var R=P(T);if(R==="break")break}t.placement!==Y&&(t.modifiersData[r]._skip=!0,t.placement=Y,t.reset=!0)}}const Li={name:"flip",enabled:!0,phase:"main",fn:Di,requiresIfExists:["offset"],data:{_skip:!1}};function vr(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function mr(e){return[pe,xe,be,he].some(function(t){return e[t]>=0})}function Fi(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=Ct(t,{elementContext:"reference"}),c=Ct(t,{altBoundary:!0}),l=vr(s,r),p=vr(c,o,i),u=mr(l),g=mr(p);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:p,isReferenceHidden:u,hasPopperEscaped:g},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":g})}const $i={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Fi};function Hi(e,t,n){var r=Ee(e),o=[he,pe].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],c=i[1];return s=s||0,c=(c||0)*o,[he,xe].indexOf(r)>=0?{x:c,y:s}:{x:s,y:c}}function Bi(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=zr.reduce(function(u,g){return u[g]=Hi(g,t.rects,i),u},{}),c=s[t.placement],l=c.x,p=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=p),t.modifiersData[r]=s}const Vi={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Bi};function Ui(e){var t=e.state,n=e.name;t.modifiersData[n]=to({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Wi={name:"popperOffsets",enabled:!0,phase:"read",fn:Ui,data:{}};function Gi(e){return e==="x"?"y":"x"}function Zi(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,c=s===void 0?!1:s,l=n.boundary,p=n.rootBoundary,u=n.altBoundary,g=n.padding,f=n.tether,h=f===void 0?!0:f,v=n.tetherOffset,d=v===void 0?0:v,m=Ct(t,{boundary:l,rootBoundary:p,padding:g,altBoundary:u}),O=Ee(t.placement),j=st(t.placement),E=!j,w=Vn(O),b=Gi(w),k=t.modifiersData.popperOffsets,F=t.rects.reference,W=t.rects.popper,Y=typeof d=="function"?d(Object.assign({},t.rects,{placement:t.placement})):d,G=typeof Y=="number"?{mainAxis:Y,altAxis:Y}:Object.assign({mainAxis:0,altAxis:0},Y),V=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,te={x:0,y:0};if(k){if(i){var J,re=w==="y"?pe:he,ve=w==="y"?be:xe,K=w==="y"?"height":"width",ee=k[w],ge=ee+m[re],ue=ee-m[ve],C=h?-W[K]/2:0,P=j===ot?F[K]:W[K],T=j===ot?-W[K]:-F[K],R=t.elements.arrow,_=h&&R?Bn(R):{width:0,height:0},A=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Xr(),N=A[re],M=A[ve],L=yt(0,F[K],_[K]),B=E?F[K]/2-C-L-N-G.mainAxis:P-L-N-G.mainAxis,H=E?-F[K]/2+C+L+M+G.mainAxis:T+L+M+G.mainAxis,ne=t.elements.arrow&&Pt(t.elements.arrow),S=ne?w==="y"?ne.clientTop||0:ne.clientLeft||0:0,le=(J=V?.[w])!=null?J:0,ye=ee+B-le-S,Ye=ee+H-le,Ke=yt(h?Lt(ge,ye):ge,ee,h?qe(ue,Ye):ue);k[w]=Ke,te[w]=Ke-ee}if(c){var Me,dt=w==="x"?pe:he,rn=w==="x"?be:xe,Oe=k[b],Be=b==="y"?"height":"width",de=Oe+m[dt],ke=Oe-m[rn],Ie=[pe,he].indexOf(O)!==-1,$=(Me=V?.[b])!=null?Me:0,U=Ie?de:Oe-F[Be]-W[Be]-$+G.altAxis,I=Ie?Oe+F[Be]+W[Be]-$-G.altAxis:ke,X=h&&Ie?mi(U,Oe,I):yt(h?U:de,Oe,h?I:ke);k[b]=X,te[b]=X-Oe}t.modifiersData[r]=te}}const qi={name:"preventOverflow",enabled:!0,phase:"main",fn:Zi,requiresIfExists:["offset"]};function zi(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Yi(e){return e===we(e)||!me(e)?Un(e):zi(e)}function Ki(e){var t=e.getBoundingClientRect(),n=it(t.width)/e.offsetWidth||1,r=it(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Xi(e,t,n){n===void 0&&(n=!1);var r=me(t),o=me(t)&&Ki(t),i=He(t),s=at(e,o,n),c={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Pe(t)!=="body"||Gn(i))&&(c=Yi(t)),me(t)?(l=at(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Wn(i))),{x:s.left+c.scrollLeft-l.x,y:s.top+c.scrollTop-l.y,width:s.width,height:s.height}}function Ji(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(c){if(!n.has(c)){var l=t.get(c);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function Qi(e){var t=Ji(e);return vn.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function ea(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Le(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return[].concat(n).reduce(function(o,i){return o.replace(/%s/,i)},e)}var Ve='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',ta='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',gr=["name","enabled","phase","fn","effect","requires","options"];function na(e){e.forEach(function(t){[].concat(Object.keys(t),gr).filter(function(n,r,o){return o.indexOf(n)===r}).forEach(function(n){switch(n){case"name":typeof t.name!="string"&&console.error(Le(Ve,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":typeof t.enabled!="boolean"&&console.error(Le(Ve,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":vn.indexOf(t.phase)<0&&console.error(Le(Ve,t.name,'"phase"',"either "+vn.join(", "),'"'+String(t.phase)+'"'));break;case"fn":typeof t.fn!="function"&&console.error(Le(Ve,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":t.effect!=null&&typeof t.effect!="function"&&console.error(Le(Ve,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":t.requires!=null&&!Array.isArray(t.requires)&&console.error(Le(Ve,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(Le(Ve,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+gr.map(function(r){return'"'+r+'"'}).join(", ")+'; but "'+n+'" was provided.')}t.requires&&t.requires.forEach(function(r){e.find(function(o){return o.name===r})==null&&console.error(Le(ta,String(t.name),r,r))})})})}function ra(e,t){var n=new Set;return e.filter(function(r){var o=t(r);if(!n.has(o))return n.add(o),!0})}function oa(e){var t=e.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(t).map(function(n){return t[n]})}var yr="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",ia="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",br={placement:"bottom",modifiers:[],strategy:"absolute"};function xr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function aa(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?br:o;return function(c,l,p){p===void 0&&(p=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},br,i),modifiersData:{},elements:{reference:c,popper:l},attributes:{},styles:{}},g=[],f=!1,h={state:u,setOptions:function(O){var j=typeof O=="function"?O(u.options):O;d(),u.options=Object.assign({},i,u.options,j),u.scrollParents={reference:ze(c)?bt(c):c.contextElement?bt(c.contextElement):[],popper:bt(l)};var E=Qi(oa([].concat(r,u.options.modifiers)));if(u.orderedModifiers=E.filter(function(V){return V.enabled}),process.env.NODE_ENV!=="production"){var w=ra([].concat(E,u.options.modifiers),function(V){var te=V.name;return te});if(na(w),Ee(u.options.placement)===qt){var b=u.orderedModifiers.find(function(V){var te=V.name;return te==="flip"});b||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var k=Ce(l),F=k.marginTop,W=k.marginRight,Y=k.marginBottom,G=k.marginLeft;[F,W,Y,G].some(function(V){return parseFloat(V)})&&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 v(),h.update()},forceUpdate:function(){if(!f){var O=u.elements,j=O.reference,E=O.popper;if(!xr(j,E)){process.env.NODE_ENV!=="production"&&console.error(yr);return}u.rects={reference:Xi(j,Pt(E),u.options.strategy==="fixed"),popper:Bn(E)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(V){return u.modifiersData[V.name]=Object.assign({},V.data)});for(var w=0,b=0;b<u.orderedModifiers.length;b++){if(process.env.NODE_ENV!=="production"&&(w+=1,w>100)){console.error(ia);break}if(u.reset===!0){u.reset=!1,b=-1;continue}var k=u.orderedModifiers[b],F=k.fn,W=k.options,Y=W===void 0?{}:W,G=k.name;typeof F=="function"&&(u=F({state:u,options:Y,name:G,instance:h})||u)}}},update:ea(function(){return new Promise(function(m){h.forceUpdate(),m(u)})}),destroy:function(){d(),f=!0}};if(!xr(c,l))return process.env.NODE_ENV!=="production"&&console.error(yr),h;h.setOptions(p).then(function(m){!f&&p.onFirstUpdate&&p.onFirstUpdate(m)});function v(){u.orderedModifiers.forEach(function(m){var O=m.name,j=m.options,E=j===void 0?{}:j,w=m.effect;if(typeof w=="function"){var b=w({state:u,name:O,instance:h,options:E}),k=function(){};g.push(b||k)}})}function d(){g.forEach(function(m){return m()}),g=[]}return h}}var sa=[Si,Wi,Oi,pi,Vi,Li,qi,xi,$i],ca=aa({defaultModifiers:sa}),la=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ua=typeof Element<"u",fa=typeof Map=="function",da=typeof Set=="function",pa=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Dt(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Dt(e[r],t[r]))return!1;return!0}var i;if(fa&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!Dt(r.value[1],t.get(r.value[0])))return!1;return!0}if(da&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(pa&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(ua&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!Dt(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var ha=function(t,n){try{return Dt(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}},va=[],ma=function(t,n,r){r===void 0&&(r={});var o=Fe.useRef(null),i={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||va},s=Fe.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),c=s[0],l=s[1],p=Fe.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(h){var v=h.state,d=Object.keys(v.elements);Qo.flushSync(function(){l({styles:cr(d.map(function(m){return[m,v.styles[m]||{}]})),attributes:cr(d.map(function(m){return[m,v.attributes[m]]}))})})},requires:["computeStyles"]}},[]),u=Fe.useMemo(function(){var f={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[p,{name:"applyStyles",enabled:!1}])};return ha(o.current,f)?o.current||f:(o.current=f,f)},[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,p]),g=Fe.useRef();return lr(function(){g.current&&g.current.setOptions(u)},[u]),lr(function(){if(!(t==null||n==null)){var f=r.createPopper||ca,h=f(t,n,u);return g.current=h,function(){h.destroy(),g.current=null}}},[t,n,r.createPopper]),{state:g.current?g.current.state:null,styles:c.styles,attributes:c.attributes,update:g.current?g.current.update:null,forceUpdate:g.current?g.current.forceUpdate:null}},yn={},ga={get exports(){return yn},set exports(e){yn=e}};/*!
6
+ Copyright (c) 2018 Jed Watson.
7
+ Licensed under the MIT License (MIT), see
8
+ http://jedwatson.github.io/classnames
9
+ */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var i=arguments[o];if(i){var s=typeof i;if(s==="string"||s==="number")r.push(i);else if(Array.isArray(i)){if(i.length){var c=n.apply(null,i);c&&r.push(c)}}else if(s==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){r.push(i.toString());continue}for(var l in i)t.call(i,l)&&i[l]&&r.push(l)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(ga);const Q=yn;const Zn=e=>e.key==="Enter"||e.key===" ",Yt=(e,t)=>typeof e>"u"?{}:{tabIndex:0,onClick:e,onKeyDown:n=>{Zn(n)&&(n.preventDefault(),e?.(n)),t?.(n)}},no=({event:e,currentIndex:t,moveFocus:n,min:r,max:o,onClose:i})=>{switch(e.key){case"ArrowUp":{n(Math.max(t-1,r));break}case"ArrowDown":{n(Math.min(t+1,o));break}case"Home":{n(r);break}case"End":{n(o);break}case"Escape":{if(i){i();break}return}default:return}e.stopPropagation(),e.preventDefault()},fe=y.forwardRef((e,t)=>{const{name:n,size:r=16,className:o,handleClick:i,...s}=e;return a.jsx("span",{...Yt(i),className:Q(o,"icon",{[`icon-box-${r}`]:r}),ref:t,...s,children:a.jsx("i",{className:Q({[`icon-${n}`]:n})})})}),ro=y.forwardRef((e,t)=>{const{actions:n,className:r,onClose:o,onActionItemClick:i,...s}=e,c=y.useRef({}),[l,p]=y.useState(0),u=g=>{c.current[g]?.focus(),p(g)};return y.useEffect(()=>{c.current[l]?.focus()},[]),a.jsx("ul",{className:Q(r,"g42-context-menu"),ref:t,...s,"data-testid":"context-menu",onKeyDown:g=>no({event:g,currentIndex:l,min:0,max:n.length-1,moveFocus:u,onClose:o}),children:n.map((g,f)=>a.jsx("li",{className:Q("g42-list-item",g.disabled&&"disabled"),...Yt(h=>i(h,g)),ref:h=>c.current[f]=h,tabIndex:-1,children:g.displayName||g.name},g.name))})});function qn(e){const{iconName:t,iconSize:n,actions:r,onActionItemClick:o,isTabStop:i}=e,[s,c]=y.useState(!1),[l,p]=y.useState(null),[u,g]=y.useState(null),{styles:f,attributes:h}=ma(l,u,{placement:"bottom-end"});y.useEffect(()=>{if(!s)return;const m=j=>{l?.contains(j.target)||u?.contains(j.target)||c(!1)},O=()=>{document.activeElement?.nodeName==="IFRAME"&&c(!1)};return document.body.addEventListener("click",m,!0),window.addEventListener("blur",O),()=>{document.body.removeEventListener("click",m,!0),window.removeEventListener("blur",O)}},[u,l,s,c]);const v=m=>{m.stopPropagation(),c(O=>!O),u?.focus()},d=(m,O)=>{m.stopPropagation(),o(m,O),c(!1)};return a.jsxs(a.Fragment,{children:[a.jsx(fe,{tabIndex:i?0:-1,size:n,name:t,handleClick:v,ref:p,"data-testid":"context-menu-icon"}),s&&a.jsx(ro,{actions:r,style:f.popper,ref:g,onActionItemClick:d,onClose:()=>{l?.focus(),c(!1)},...h.popper})]})}const xt=e=>"items"in e,Ne={APPLICATION:"application",WORKSPACE:"workspace",LAYOUT:"layout"},wr={OPEN_IN_NEW_WINDOW:"openInNewWindow",OPEN_IN_NEW_WORKSPACE:"openInNewWorkspace"},Er={OPEN_IN_NEW_FRAME:"openInNewFrame",DELETE:"delete"},At={SET_AS_DEFAULT:"setAsDefault",DELETE:"delete"},oo=[{name:wr.OPEN_IN_NEW_WINDOW,displayName:"Open in New Window"},{name:wr.OPEN_IN_NEW_WORKSPACE,displayName:"Open in New Workspace"}],io=[{name:Er.OPEN_IN_NEW_FRAME,displayName:"Open in New Frame"},{name:Er.DELETE,displayName:"Delete"}],bn=(e,t,n)=>{const r="/",[o,...i]=n.split(r),s=e.findIndex(l=>xt(l)&&l.title===o),c=s!==-1?e[s]:null;return c?[...e.slice(0,s),{...c,items:i.length>0?bn(c.items,t,i.join(r)):[...c.items,t]},...e.slice(s+1)]:[...e,{id:o,title:o,items:i.length>0?bn([],t,i.join(r)):[t]}]},ya=(e,t)=>({id:"applications-section",title:"All Applications",items:e.reduce((r,o)=>{const i={id:o.name,title:o.title||o.name,description:o.caption,type:Ne.APPLICATION,iconSrc:o.icon,isOpen:t[o.name]?.length>0,contextMenuActions:oo},s=o.userProperties.folder;return s?bn(r,i,s):[...r,i]},[])});function zn(e){const{size:t=16,alt:n="Image icon",className:r,...o}=e;return a.jsx("img",{alt:n,className:Q(r,"icon",{[`icon-box-${t}`]:t}),...o})}const ao=e=>{const{className:t,iconSrc:n,iconName:r="folder",title:o,...i}=e;return a.jsxs("h4",{className:Q(t,"g42-list-header"),"data-testid":"base-section-header",...i,children:[n?a.jsx(zn,{src:n,alt:`${o} icon`,size:14,"data-testid":"img-icon"}):a.jsx(fe,{name:r,"data-testid":"icon"}),o]})},ba=()=>{const[e,t]=y.useState([]),n=y.useContext(ce.GlueContext);return y.useEffect(()=>{if(!n)return;const r=n.appManager.onAppAdded(c=>{c.userProperties.hidden||t(l=>[...l,c])}),o=n.appManager.onAppChanged(c=>{t(l=>[...l.filter(p=>p.name!==c.name),c])}),i=n.appManager.onAppRemoved(c=>{t(l=>l.filter(p=>p.name!==c.name))}),s=[r,i,o];return()=>s.forEach(c=>c())},[n]),e},xa=()=>{const[e,t]=y.useState({}),n=y.useContext(ce.GlueContext);return y.useEffect(()=>{if(!n)return;const r=n.appManager.onInstanceStarted(s=>{t(c=>{const l=c[s.application.name]??[];return{...c,[s.application.name]:[...l,s.id]}})}),o=n.appManager.onInstanceStopped(s=>{t(c=>({...c,[s.application.name]:c[s.application.name].filter(l=>l!==s.id)}))}),i=[r,o];return()=>i.forEach(s=>s())},[n]),e},so="interop_home_ui_selected_layout",wa="interop_home_ui_default_layout",Ea="interop_home_ui_favorite_entities",Ft=(e,t,n)=>{const[r,o]=y.useState(()=>{try{const c=window[e].getItem(t);return c?JSON.parse(c):null}catch(c){return console.log(c),null}}),i=`${e}-${t}`;y.useEffect(()=>{const c=l=>{o(l.detail)};return window.addEventListener(i,c),()=>{window.removeEventListener(i,c)}},[i]);const s=y.useCallback(c=>{try{const l=c instanceof Function?c(r):c;if(!l){window[e].removeItem(t),o(null);return}const p=n.run(l);if(!p.ok){console.warn(`Error validating the value to be stored: ${p.error.message}`);return}const u=p.result;o(u),window[e].setItem(t,JSON.stringify(u)),window.dispatchEvent(new CustomEvent(i,{detail:u}))}catch(l){console.log(l)}},[r,t,e,i,n]);return[r,s]};var ae=function(e){return{ok:!0,result:e}},oe=function(e){return{ok:!1,error:e}},Ca=function(e){return e.ok===!0?Promise.resolve(e.result):Promise.reject(e.error)},Oa=function(e,t){return t.ok===!0?t.result:e},ja=function(e){if(e.ok===!0)return e.result;throw e.error},Sa=function(e,t){return t.ok===!0?ae(e(t.result)):t},Cr=function(e,t,n){return t.ok===!1?t:n.ok===!1?n:ae(e(t.result,n.result))},an=function(e,t){return t.ok===!0?t:oe(e(t.error))},Pa=function(e,t){return t.ok===!0?e(t.result):t};/*! *****************************************************************************
10
+ Copyright (c) Microsoft Corporation.
11
+
12
+ Permission to use, copy, modify, and/or distribute this software for any
13
+ purpose with or without fee is hereby granted.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
16
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
17
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
18
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
19
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
20
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
21
+ PERFORMANCE OF THIS SOFTWARE.
22
+ ***************************************************************************** */var xn=function(){return xn=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},xn.apply(this,arguments)};function ka(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function wn(e,t){if(e===t||e===null&&t===null)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="object"){if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!wn(e[n],t[n]))return!1;return!0}var r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(var n=0;n<r.length;n++)if(!t.hasOwnProperty(r[n])||!wn(e[r[n]],t[r[n]]))return!1;return!0}}var mt=function(e){return Array.isArray(e)},Rt=function(e){return typeof e=="object"&&e!==null&&!mt(e)},_a=function(e){switch(typeof e){case"string":return"a string";case"number":return"a number";case"boolean":return"a boolean";case"undefined":return"undefined";case"object":return e instanceof Array?"an array":e===null?"null":"an object";default:return JSON.stringify(e)}},_e=function(e,t){return"expected "+e+", got "+_a(t)},ht=function(e){return e.map(function(t){return typeof t=="string"?"."+t:"["+t+"]"}).join("")},vt=function(e,t){var n=t.at,r=ka(t,["at"]);return xn({at:e+(n||"")},r)},ie=function(){function e(t){var n=this;this.decode=t,this.run=function(r){return an(function(o){return{kind:"DecoderError",input:r,at:"input"+(o.at||""),message:o.message||""}},n.decode(r))},this.runPromise=function(r){return Ca(n.run(r))},this.runWithException=function(r){return ja(n.run(r))},this.map=function(r){return new e(function(o){return Sa(r,n.decode(o))})},this.andThen=function(r){return new e(function(o){return Pa(function(i){return r(i).decode(o)},n.decode(o))})},this.where=function(r,o){return n.andThen(function(i){return r(i)?e.succeed(i):e.fail(o)})}}return e.string=function(){return new e(function(t){return typeof t=="string"?ae(t):oe({message:_e("a string",t)})})},e.number=function(){return new e(function(t){return typeof t=="number"?ae(t):oe({message:_e("a number",t)})})},e.boolean=function(){return new e(function(t){return typeof t=="boolean"?ae(t):oe({message:_e("a boolean",t)})})},e.constant=function(t){return new e(function(n){return wn(n,t)?ae(t):oe({message:"expected "+JSON.stringify(t)+", got "+JSON.stringify(n)})})},e.object=function(t){return new e(function(n){if(Rt(n)&&t){var r={};for(var o in t)if(t.hasOwnProperty(o)){var i=t[o].decode(n[o]);if(i.ok===!0)i.result!==void 0&&(r[o]=i.result);else return n[o]===void 0?oe({message:"the key '"+o+"' is required but was not present"}):oe(vt("."+o,i.error))}return ae(r)}else return Rt(n)?ae(n):oe({message:_e("an object",n)})})},e.array=function(t){return new e(function(n){if(mt(n)&&t){var r=function(o,i){return an(function(s){return vt("["+i+"]",s)},t.decode(o))};return n.reduce(function(o,i,s){return Cr(function(c,l){return c.concat([l])},o,r(i,s))},ae([]))}else return mt(n)?ae(n):oe({message:_e("an array",n)})})},e.tuple=function(t){return new e(function(n){if(mt(n)){if(n.length!==t.length)return oe({message:"expected a tuple of length "+t.length+", got one of length "+n.length});for(var r=[],o=0;o<t.length;o++){var i=t[o].decode(n[o]);if(i.ok)r[o]=i.result;else return oe(vt("["+o+"]",i.error))}return ae(r)}else return oe({message:_e("a tuple of length "+t.length,n)})})},e.union=function(t,n){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];return e.oneOf.apply(e,[t,n].concat(r))},e.intersection=function(t,n){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];return new e(function(i){return[t,n].concat(r).reduce(function(s,c){return Cr(Object.assign,s,c.decode(i))},ae({}))})},e.anyJson=function(){return new e(function(t){return ae(t)})},e.unknownJson=function(){return new e(function(t){return ae(t)})},e.dict=function(t){return new e(function(n){if(Rt(n)){var r={};for(var o in n)if(n.hasOwnProperty(o)){var i=t.decode(n[o]);if(i.ok===!0)r[o]=i.result;else return oe(vt("."+o,i.error))}return ae(r)}else return oe({message:_e("an object",n)})})},e.optional=function(t){return new e(function(n){return n==null?ae(void 0):t.decode(n)})},e.oneOf=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new e(function(r){for(var o=[],i=0;i<t.length;i++){var s=t[i].decode(r);if(s.ok===!0)return s;o[i]=s.error}var c=o.map(function(l){return"at error"+(l.at||"")+": "+l.message}).join('", "');return oe({message:'expected a value matching one of the decoders, got the errors ["'+c+'"]'})})},e.withDefault=function(t,n){return new e(function(r){return ae(Oa(t,n.decode(r)))})},e.valueAt=function(t,n){return new e(function(r){for(var o=r,i=0;i<t.length;i++){if(o===void 0)return oe({at:ht(t.slice(0,i+1)),message:"path does not exist"});if(typeof t[i]=="string"&&!Rt(o))return oe({at:ht(t.slice(0,i+1)),message:_e("an object",o)});if(typeof t[i]=="number"&&!mt(o))return oe({at:ht(t.slice(0,i+1)),message:_e("an array",o)});o=o[t[i]]}return an(function(s){return o===void 0?{at:ht(t),message:"path does not exist"}:vt(ht(t),s)},n.decode(o))})},e.succeed=function(t){return new e(function(n){return ae(t)})},e.fail=function(t){return new e(function(n){return oe({message:t})})},e.lazy=function(t){return new e(function(n){return t().decode(n)})},e}(),En=ie.string;ie.number;var Na=ie.boolean;ie.anyJson;ie.unknownJson;ie.constant;var Yn=ie.object,co=ie.array;ie.tuple;ie.dict;var tt=ie.optional;ie.oneOf;ie.union;ie.intersection;ie.withDefault;ie.valueAt;ie.succeed;ie.fail;ie.lazy;const Ze=En().where(e=>e.length>0,"Expected a non-empty string"),Ta=Yn({name:Ze,displayName:tt(Ze),disabled:tt(Na())}),Aa=Yn({id:Ze,title:Ze,description:tt(Ze),icon:tt(En()),iconSrc:tt(En()),contextMenuActions:tt(co(Ta)),type:Ze}),Ra=co(Aa),lo=()=>{const[e,t]=Ft("localStorage",Ea,Ra);return{favoriteEntities:e||[],toggleFavorite:({isOpen:r,...o})=>{t(i=>{const s=i||[],c=s.find(l=>l.title===o.title&&l.type===o.type);return c?s.filter(l=>l!==c):[...s,o]})}}},uo=()=>{const[e,t]=y.useState(),n=y.useContext(ce.GlueContext);return y.useEffect(()=>{if(!n)return;const r=Jo.getFrameId();n.workspaces?.waitForFrame(r).then(t).catch(o=>console.error("Failed to get current frame",{error:o}))},[n]),e},Ma=()=>{const e=y.useContext(ce.GlueContext);return async t=>e.interop.methods().every(n=>n.name!==t?.method)?console.error("Interop method not found."):await e.interop.invoke(t.method,t.params,t.target).catch(n=>console.error({error:n}))},fo=()=>{const[e,t]=y.useState([]);return y.useEffect(()=>{const n=({key:i})=>{t(s=>s.includes(i)?s:s.concat(i))},r=i=>{t(s=>s.filter(c=>c!==i.key))},o=()=>{t([])};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)}},[]),e.length===1?e[0]:null},Kt={CONTROL:"Control",SHIFT:"Shift"},po=()=>{const e=y.useContext(ce.GlueContext),t=uo();return async(n,r)=>{const o=r===Kt.CONTROL?{newFrame:!0}:{frameId:t?.id};return e.workspaces?.restoreWorkspace(n,o)}},Ia=e=>{const[t,n]=y.useState([]),[r,o]=y.useState(!0),i=y.useRef(null),s=y.useContext(ce.GlueContext);return y.useEffect(()=>{if(!s||!s.search)return;const c=[],l=[];return(async u=>{o(!0),n([]);const g=await s.search.query({search:u.trim(),providerLimits:{maxResults:100,maxResultsPerType:5}});if(g===i.current)return;i.current=g;const f=g.onResults(d=>{d.results.forEach(m=>{l.find(j=>j.id===m.id&&j.type.name===m.type.name)||l.push(m)}),o(!1),n([...l])}),h=g.onCompleted(()=>{o(!1)}),v=g.onError(d=>{console.error(`Query failed. Provider: ${d.provider}; Error: ${d.error}`)});c.push(f,h,v)})(e),()=>{c.forEach(u=>u())}},[s,e]),{resultsToRender:t,isLoading:r}},ho=()=>{const e=y.useContext(ce.GlueContext);return async(t,n)=>{const r=await e.workspaces?.getWorkspace(c=>c.isSelected===!0),o=r?.children[0];return n===Kt.CONTROL||!r||o?.type==="window"?await e.appManager.application(t).start():await(o?.type==="group"?o:await(o||r).addGroup()).addWindow({appName:t})}},Da=()=>{const[e,t]=y.useState([]),n=y.useContext(ce.GlueContext);return y.useEffect(()=>{if(!n||!n.workspaces)return;let r=!1;const o=n.workspaces.layouts.onSaved(({name:s})=>{r||t(c=>[...c,{id:s,title:s}])}),i=n.workspaces.layouts.onRemoved(({name:s})=>{r||t(c=>c.filter(({title:l})=>l!==s))});return()=>{r=!0,[o,i].forEach(async s=>{try{(await s)()}catch(c){console.error(c)}})}},[n]),e},La=()=>{const[e,t]=y.useState({}),n=y.useContext(ce.GlueContext);return y.useEffect(()=>{if(!n)return;const r=[];return(async()=>{try{const o=await n.workspaces?.onWorkspaceOpened(s=>t(c=>({...c,[s.title]:[...c[s.title]||[],s.id]})));r.push(o);const i=await n.workspaces?.onWorkspaceClosed(({workspaceId:s})=>t(c=>{const l={...c};for(const p in l)if(l[p].includes(s)){l[p]=l[p].filter(u=>u!==s);break}return l}));r.push(i)}catch(o){console.error(o)}})(),()=>r.forEach(o=>o?.())},[n]),e},Fa=async(e,t)=>{await e.appManager.application(t.id).start()},$a=async(e,t,n)=>{if(!e.workspaces)return;const r={type:"workspace",definition:{frame:n?{reuseFrameId:n.id}:{newFrame:!0}}},o=e.workspaces.getBuilder(r);o.addGroup().addWindow({appName:t.id}),await o.create()},Ha={openInNewWindow:Fa,openInNewWorkspace:$a},vo=()=>{const e=y.useContext(ce.GlueContext),t=uo();return async(n,r)=>{Ha[r](e,n,t)}},Ba=async(e,t)=>{e.workspaces&&e.workspaces.restoreWorkspace(t.id,{newFrame:!0})},Va=async(e,t)=>{e.workspaces&&e.workspaces.layouts.delete(t.id)},Ua={openInNewFrame:Ba,delete:Va},mo=()=>{const e=y.useContext(ce.GlueContext);return async(t,n)=>{Ua[n](e,t)}};var $t={},Wa={get exports(){return $t},set exports(e){$t=e}};(function(e,t){(function(n,r){var o="1.0.35",i="",s="?",c="function",l="undefined",p="object",u="string",g="major",f="model",h="name",v="type",d="vendor",m="version",O="architecture",j="console",E="mobile",w="tablet",b="smarttv",k="wearable",F="embedded",W=350,Y="Amazon",G="Apple",V="ASUS",te="BlackBerry",J="Browser",re="Chrome",ve="Edge",K="Firefox",ee="Google",ge="Huawei",ue="LG",C="Microsoft",P="Motorola",T="Opera",R="Samsung",_="Sharp",A="Sony",N="Xiaomi",M="Zebra",L="Facebook",B="Chromium OS",H="Mac OS",ne=function($,U){var I={};for(var X in $)U[X]&&U[X].length%2===0?I[X]=U[X].concat($[X]):I[X]=$[X];return I},S=function($){for(var U={},I=0;I<$.length;I++)U[$[I].toUpperCase()]=$[I];return U},le=function($,U){return typeof $===u?ye(U).indexOf(ye($))!==-1:!1},ye=function($){return $.toLowerCase()},Ye=function($){return typeof $===u?$.replace(/[^\d\.]/g,i).split(".")[0]:r},Ke=function($,U){if(typeof $===u)return $=$.replace(/^\s\s*/,i),typeof U===l?$:$.substring(0,W)},Me=function($,U){for(var I=0,X,De,je,Z,D,Se;I<U.length&&!D;){var on=U[I],sr=U[I+1];for(X=De=0;X<on.length&&!D&&on[X];)if(D=on[X++].exec($),D)for(je=0;je<sr.length;je++)Se=D[++De],Z=sr[je],typeof Z===p&&Z.length>0?Z.length===2?typeof Z[1]==c?this[Z[0]]=Z[1].call(this,Se):this[Z[0]]=Z[1]:Z.length===3?typeof Z[1]===c&&!(Z[1].exec&&Z[1].test)?this[Z[0]]=Se?Z[1].call(this,Se,Z[2]):r:this[Z[0]]=Se?Se.replace(Z[1],Z[2]):r:Z.length===4&&(this[Z[0]]=Se?Z[3].call(this,Se.replace(Z[1],Z[2])):r):this[Z]=Se||r;I+=2}},dt=function($,U){for(var I in U)if(typeof U[I]===p&&U[I].length>0){for(var X=0;X<U[I].length;X++)if(le(U[I][X],$))return I===s?r:I}else if(le(U[I],$))return I===s?r:I;return $},rn={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},Oe={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"},Be={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[m,[h,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[m,[h,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[h,m],[/opios[\/ ]+([\w\.]+)/i],[m,[h,T+" Mini"]],[/\bopr\/([\w\.]+)/i],[m,[h,T]],[/(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,m],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[m,[h,"UC"+J]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[m,[h,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[m,[h,"WeChat"]],[/konqueror\/([\w\.]+)/i],[m,[h,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[m,[h,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[m,[h,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[h,/(.+)/,"$1 Secure "+J],m],[/\bfocus\/([\w\.]+)/i],[m,[h,K+" Focus"]],[/\bopt\/([\w\.]+)/i],[m,[h,T+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[m,[h,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[m,[h,"Dolphin"]],[/coast\/([\w\.]+)/i],[m,[h,T+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[m,[h,"MIUI "+J]],[/fxios\/([-\w\.]+)/i],[m,[h,K]],[/\bqihu|(qi?ho?o?|360)browser/i],[[h,"360 "+J]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[h,/(.+)/,"$1 "+J],m],[/(comodo_dragon)\/([\w\.]+)/i],[[h,/_/g," "],m],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[h,m],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[h],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[h,L],m],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[h,m],[/\bgsa\/([\w\.]+) .*safari\//i],[m,[h,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[m,[h,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[m,[h,re+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[h,re+" WebView"],m],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[m,[h,"Android "+J]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[h,m],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[m,[h,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[m,h],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[h,[m,dt,rn]],[/(webkit|khtml)\/([\w\.]+)/i],[h,m],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[h,"Netscape"],m],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[m,[h,K+" 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,m],[/(cobalt)\/([\w\.]+)/i],[h,[m,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[O,"amd64"]],[/(ia32(?=;))/i],[[O,ye]],[/((?:i[346]|x)86)[;\)]/i],[[O,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[O,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[O,"armhf"]],[/windows (ce|mobile); ppc;/i],[[O,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[O,/ower/,i,ye]],[/(sun4\w)[;\)]/i],[[O,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[O,ye]]],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,[d,R],[v,w]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[f,[d,R],[v,E]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[f,[d,G],[v,E]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[f,[d,G],[v,w]],[/(macintosh);/i],[f,[d,G]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[f,[d,_],[v,E]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[f,[d,ge],[v,w]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[f,[d,ge],[v,E]],[/\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," "],[d,N],[v,E]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[f,/_/g," "],[d,N],[v,w]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[f,[d,"OPPO"],[v,E]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[f,[d,"Vivo"],[v,E]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[f,[d,"Realme"],[v,E]],[/\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,[d,P],[v,E]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[f,[d,P],[v,w]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[f,[d,ue],[v,w]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[f,[d,ue],[v,E]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[f,[d,"Lenovo"],[v,w]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[f,/_/g," "],[d,"Nokia"],[v,E]],[/(pixel c)\b/i],[f,[d,ee],[v,w]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[f,[d,ee],[v,E]],[/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,[d,A],[v,E]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[f,"Xperia Tablet"],[d,A],[v,w]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[f,[d,"OnePlus"],[v,E]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[f,[d,Y],[v,w]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[f,/(.+)/g,"Fire Phone $1"],[d,Y],[v,E]],[/(playbook);[-\w\),; ]+(rim)/i],[f,d,[v,w]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[f,[d,te],[v,E]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[f,[d,V],[v,w]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[f,[d,V],[v,E]],[/(nexus 9)/i],[f,[d,"HTC"],[v,w]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[f,/_/g," "],[v,E]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[f,[d,"Acer"],[v,w]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[f,[d,"Meizu"],[v,E]],[/(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],[d,f,[v,E]],[/(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],[d,f,[v,w]],[/(surface duo)/i],[f,[d,C],[v,w]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[f,[d,"Fairphone"],[v,E]],[/(u304aa)/i],[f,[d,"AT&T"],[v,E]],[/\bsie-(\w*)/i],[f,[d,"Siemens"],[v,E]],[/\b(rct\w+) b/i],[f,[d,"RCA"],[v,w]],[/\b(venue[\d ]{2,7}) b/i],[f,[d,"Dell"],[v,w]],[/\b(q(?:mv|ta)\w+) b/i],[f,[d,"Verizon"],[v,w]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[f,[d,"Barnes & Noble"],[v,w]],[/\b(tm\d{3}\w+) b/i],[f,[d,"NuVision"],[v,w]],[/\b(k88) b/i],[f,[d,"ZTE"],[v,w]],[/\b(nx\d{3}j) b/i],[f,[d,"ZTE"],[v,E]],[/\b(gen\d{3}) b.+49h/i],[f,[d,"Swiss"],[v,E]],[/\b(zur\d{3}) b/i],[f,[d,"Swiss"],[v,w]],[/\b((zeki)?tb.*\b) b/i],[f,[d,"Zeki"],[v,w]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],f,[v,w]],[/\b(ns-?\w{0,9}) b/i],[f,[d,"Insignia"],[v,w]],[/\b((nxa|next)-?\w{0,9}) b/i],[f,[d,"NextBook"],[v,w]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],f,[v,E]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],f,[v,E]],[/\b(ph-1) /i],[f,[d,"Essential"],[v,E]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[f,[d,"Envizen"],[v,w]],[/\b(trio[-\w\. ]+) b/i],[f,[d,"MachSpeed"],[v,w]],[/\btu_(1491) b/i],[f,[d,"Rotor"],[v,w]],[/(shield[\w ]+) b/i],[f,[d,"Nvidia"],[v,w]],[/(sprint) (\w+)/i],[d,f,[v,E]],[/(kin\.[onetw]{3})/i],[[f,/\./g," "],[d,C],[v,E]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[f,[d,M],[v,w]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[f,[d,M],[v,E]],[/smart-tv.+(samsung)/i],[d,[v,b]],[/hbbtv.+maple;(\d+)/i],[[f,/^/,"SmartTV"],[d,R],[v,b]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,ue],[v,b]],[/(apple) ?tv/i],[d,[f,G+" TV"],[v,b]],[/crkey/i],[[f,re+"cast"],[d,ee],[v,b]],[/droid.+aft(\w)( bui|\))/i],[f,[d,Y],[v,b]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[f,[d,_],[v,b]],[/(bravia[\w ]+)( bui|\))/i],[f,[d,A],[v,b]],[/(mitv-\w{5}) bui/i],[f,[d,N],[v,b]],[/Hbbtv.*(technisat) (.*);/i],[d,f,[v,b]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[d,Ke],[f,Ke],[v,b]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[v,b]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,f,[v,j]],[/droid.+; (shield) bui/i],[f,[d,"Nvidia"],[v,j]],[/(playstation [345portablevi]+)/i],[f,[d,A],[v,j]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[f,[d,C],[v,j]],[/((pebble))app/i],[d,f,[v,k]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[f,[d,G],[v,k]],[/droid.+; (glass) \d/i],[f,[d,ee],[v,k]],[/droid.+; (wt63?0{2,3})\)/i],[f,[d,M],[v,k]],[/(quest( 2| pro)?)/i],[f,[d,L],[v,k]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[v,F]],[/(aeobc)\b/i],[f,[d,Y],[v,F]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[f,[v,E]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[f,[v,w]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[v,w]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[v,E]],[/(android[-\w\. ]{0,9});.+buil/i],[f,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[m,[h,ve+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[m,[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,m],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[m,h]],os:[[/microsoft (windows) (vista|xp)/i],[h,m],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[h,[m,dt,Oe]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[h,"Windows"],[m,dt,Oe]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[m,/_/g,"."],[h,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[h,H],[m,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[m,h],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[h,m],[/\(bb(10);/i],[m,[h,te]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[m,[h,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[m,[h,K+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[m,[h,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[m,[h,"watchOS"]],[/crkey\/([\d\.]+)/i],[m,[h,re+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[h,B],m],[/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,m],[/(sunos) ?([\w\.\d]*)/i],[[h,"Solaris"],m],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[h,m]]},de=function($,U){if(typeof $===p&&(U=$,$=r),!(this instanceof de))return new de($,U).getResult();var I=typeof n!==l&&n.navigator?n.navigator:r,X=$||(I&&I.userAgent?I.userAgent:i),De=I&&I.userAgentData?I.userAgentData:r,je=U?ne(Be,U):Be,Z=I&&I.userAgent==X;return this.getBrowser=function(){var D={};return D[h]=r,D[m]=r,Me.call(D,X,je.browser),D[g]=Ye(D[m]),Z&&I&&I.brave&&typeof I.brave.isBrave==c&&(D[h]="Brave"),D},this.getCPU=function(){var D={};return D[O]=r,Me.call(D,X,je.cpu),D},this.getDevice=function(){var D={};return D[d]=r,D[f]=r,D[v]=r,Me.call(D,X,je.device),Z&&!D[v]&&De&&De.mobile&&(D[v]=E),Z&&D[f]=="Macintosh"&&I&&typeof I.standalone!==l&&I.maxTouchPoints&&I.maxTouchPoints>2&&(D[f]="iPad",D[v]=w),D},this.getEngine=function(){var D={};return D[h]=r,D[m]=r,Me.call(D,X,je.engine),D},this.getOS=function(){var D={};return D[h]=r,D[m]=r,Me.call(D,X,je.os),Z&&!D[h]&&De&&De.platform!="Unknown"&&(D[h]=De.platform.replace(/chrome os/i,B).replace(/macos/i,H)),D},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 X},this.setUA=function(D){return X=typeof D===u&&D.length>W?Ke(D,W):D,this},this.setUA(X),this};de.VERSION=o,de.BROWSER=S([h,m,g]),de.CPU=S([O]),de.DEVICE=S([f,d,v,j,E,b,w,k,F]),de.ENGINE=de.OS=S([h,m]),e.exports&&(t=e.exports=de),t.UAParser=de;var ke=typeof n!==l&&(n.jQuery||n.Zepto);if(ke&&!ke.ua){var Ie=new de;ke.ua=Ie.getResult(),ke.ua.get=function(){return Ie.getUA()},ke.ua.set=function($){Ie.setUA($);var U=Ie.getResult();for(var I in U)ke.ua[I]=U[I]}}})(typeof window=="object"?window:la)})(Wa,$t);const Ga=new $t.UAParser,go=()=>Fe.useMemo(()=>Ga.getBrowser(),[]),yo=e=>{const{className:t,isFavoritismEnabled:n=!0,item:r,onClick:o,onKeyDown:i,focused:s,...c}=e,{favoriteEntities:l,toggleFavorite:p}=lo(),{description:u,icon:g="application",iconSrc:f,isOpen:h=!1,title:v,contextMenuActions:d}=r,m=n&&l.some(O=>O.type===r.type&&O.title===r.title);return a.jsxs("div",{tabIndex:s?0:-1,className:Q(t,"g42-list-item"),onKeyDown:O=>{if(Zn(O)){o(O),O.preventDefault(),O.stopPropagation();return}i(O)},onClick:o,"data-testid":"base-section-item",...c,children:[a.jsxs("div",{className:"g42-list-row",children:[a.jsx(fe,{size:8,name:h?"check":"","data-testid":"open-check-icon"}),f?a.jsx(zn,{src:f,alt:`${v} icon`,size:14,"data-testid":"img-icon"}):a.jsx(fe,{size:14,name:g,"data-testid":"icon"}),a.jsx("span",{className:"title","data-testid":"title",children:v}),h&&a.jsx("span",{className:"opened","data-testid":"opened-label",children:"Opened"}),d&&d.length>0&&a.jsx(qn,{iconName:"ellipsis",iconSize:16,actions:d,onActionItemClick:o,isTabStop:s}),n&&a.jsx(fe,{tabIndex:s?0:-1,className:Q("favorite",m&&"visible"),name:m?"star-full":"star",handleClick:O=>{O.stopPropagation(),p(r)},size:16,"data-testid":"favorite-icon"})]}),u&&a.jsx("div",{className:"g42-list-row",children:a.jsx("span",{className:"description","data-testid":"description",children:u})})]})},bo=y.createContext(void 0),Kn=()=>{const e=y.useContext(bo);if(e===void 0)throw new Error("useLaunchpadAPI must be used within a LaunchpadAPIProvider");return e},Za=({children:e,setOpen:t,isOpen:n})=>{const r=y.useMemo(()=>({close:()=>t(!1),isOpen:n}),[t,n]);return a.jsx(bo.Provider,{value:r,children:e})},wt="Welcome",qa=5,Xt=e=>{const{config:t,isFavoritismEnabled:n,level:r=1,onItemClick:o}=e,[i,s]=y.useState(1),c=t.displayCount??qa,l=fo(),p=Kn(),[u,g]=y.useState(0),f=y.useRef({}),h=y.useMemo(()=>t.items.filter(j=>xt(j)),[t.items]),v=y.useMemo(()=>t.items.filter(j=>!xt(j)).slice(0,i*c),[t.items,c,i]);y.useEffect(()=>{p.isOpen||s(1)},[p.isOpen]);const d=()=>{s(j=>j+1)},m=[...h,...v],O=j=>{f.current[j]?.querySelector("[tabIndex]")?.focus(),g(j)};return a.jsxs("li",{className:"section",children:[a.jsx(ao,{iconSrc:t.iconSrc,iconName:t.iconName,style:{paddingLeft:`${(r-1)*12+6}px`},title:t.title}),a.jsxs("ul",{children:[m.map((j,E)=>xt(j)?a.jsx(Xt,{config:j,isFavoritismEnabled:n,level:r+1,onItemClick:o},j.id):a.jsx("li",{ref:w=>f.current[E]=w,children:a.jsx(yo,{isFavoritismEnabled:n,item:j,onClick:(w,b)=>o?.(w,{item:j,modifier:l,selectedContextMenuActionName:b?.name}),style:{paddingLeft:`${r*7}px`},onKeyDown:w=>{no({event:w,moveFocus:O,currentIndex:u,min:0,max:m.length-1})},focused:u===E},j.id||E)},j.id||E)),t.items.length-h.length>c*i&&a.jsx("li",{"data-testid":"more-li-element",children:a.jsx("div",{className:"g42-list-item more",style:{paddingLeft:`${r*7+8}px`},role:"button","aria-label":"More",...Yt(d),children:a.jsxs("div",{className:"g42-list-row",children:[a.jsx("span",{className:"title",children:"More..."}),a.jsx(fe,{size:12,name:"chevron-down","data-testid":"more-chevron"})]})})})]})]})},xo=e=>`${e.type}-${e.id}`,za=(e,t)=>wo(e)[t],wo=e=>e.reduce((t,n)=>xt(n)?{...t,...wo(n.items)}:{...t,[xo(n)]:n},{}),Eo=y.createContext(void 0),Ya=()=>{const e=y.useContext(Eo);if(e===void 0)throw new Error("useSection must be used within a SectionProvider");return e},Ka=({children:e})=>{const[t,n]=y.useState(null);return a.jsx(Eo.Provider,{value:[t,n],children:e})},Jt=({config:e,onItemClick:t})=>{const[n,r]=Ya(),o=Kn(),i=fo(),s=(c,l)=>{const{item:p,selectedContextMenuActionName:u}=l;r({itemName:xo(p),selectedContextMenuActionName:u})};return y.useEffect(()=>{if(!t||!n)return;const{itemName:c,selectedContextMenuActionName:l}=n,p=za(e.items,c);p&&(t({item:p,modifier:i,selectedContextMenuActionName:l}),r(null),i!==Kt.SHIFT&&o.close())},[n,e.items,o,t,i,r]),a.jsx(Xt,{config:e,onItemClick:s})};function Co(){const e=ba(),t=xa(),n=ho(),r=vo(),o=ya(e,t),i=s=>{const{item:c,modifier:l,selectedContextMenuActionName:p}=s;if(!p)return n(c.id,l).catch(u=>{console.error("Failed to start application",{error:u})});r(c,p).catch(u=>{console.error("Failed to execute application action",{error:u})})};return a.jsx(Jt,{config:o,onItemClick:i})}function Qt({children:e,className:t,color:n,...r}){return a.jsx("button",{className:Q(t,"g42-btn",n),...r,children:e})}function Ot({className:e,items:t,onItemClick:n}){return a.jsx("div",{className:Q("g42-btn-group",e),children:t.map((r,o)=>{const{onClick:i,...s}=r;return a.jsx(Qt,{onClick:c=>{i&&i(c),n&&n(c,r)},...s},o)})})}const Xa=e=>({id:"favorites-section",title:"Favorites",items:e,iconName:"star"}),Oo=()=>{const{favoriteEntities:e}=lo(),t=Xa(e);return e.length>0?a.jsx(Jt,{config:t}):null},jo=()=>{const e=y.useContext(ce.GlueContext),[t,n]=y.useState([]);y.useEffect(()=>{e&&e.themes?.list().then(o=>n(o)).catch(console.warn)},[e]);const r=async(o,i)=>{i.name&&e.themes?.select(i.name).catch(console.warn)};return a.jsxs("div",{className:"info info-middle",children:[a.jsx("h4",{children:"Settings"}),a.jsxs("div",{className:"flex ai-center",children:[a.jsx("label",{style:{textAlign:"right",width:"40%"},children:"Theme"}),a.jsx("div",{style:{width:"60%",marginLeft:"auto"},children:a.jsx(Ot,{onItemClick:r,items:t.map(({name:o,displayName:i})=>({name:o,children:i}))})})]})]})},Cn=Yn({name:Ze}),So=({title:e,description:t,links:n=[],onLogout:r})=>{const[o,i]=Ft("sessionStorage",so,Cn),s=()=>{i(null),r?.()};return a.jsxs("div",{className:"info info-bottom flex flex-column",children:[a.jsx("h4",{children:e||"Support"}),a.jsx("p",{children:t||"New set of thoughtfully curated items and the ability to configure them."}),a.jsx("ul",{children:n.map(({children:c,...l})=>a.jsx("li",{children:a.jsx("a",{...l,children:c})},l.href))}),a.jsx("div",{children:a.jsx(Qt,{onClick:s,children:"Logout"})})]})},Po=e=>e?.split(" ").map(t=>t[0]?.toUpperCase()).join(""),Ja=({user:e})=>{const t=y.useContext(ce.GlueContext),n=e?.name||"N A";return a.jsxs("div",{className:"flex info info-top",children:[a.jsxs("div",{children:[a.jsx("h4",{children:n}),a.jsxs("p",{children:["PROD"," | ","Version "+t.version]})]}),a.jsx("div",{className:"flex badge",children:Po(n)})]})},ko=({onLogout:e,user:t})=>a.jsxs(a.Fragment,{children:[a.jsx(Ja,{user:t}),a.jsx(jo,{}),a.jsx(So,{onLogout:e})]});function _o({children:e,className:t,mountNode:n,afterClose:r,onClose:o,visible:i,...s}){const c=y.useRef(null),l=y.useRef(!1);i&&(l.current=!0),y.useEffect(()=>{if(i)return;const u=c.current,g=()=>r?.();return u?.addEventListener("animationend",g),()=>u?.removeEventListener("animationend",g)},[i,r]);const p=a.jsxs("div",{className:Q("modal",l.current&&(i?"fadeIn":"fadeOut"),t),ref:c,...s,children:[a.jsx(fe,{onClick:o,className:"btn-close g42-btn g42-btn-icon",size:16,name:"close"}),a.jsx("div",{className:"g42-modal-backdrop-content",children:e})]});return n?et.createPortal(p,n):p}var se=globalThis&&globalThis.__assign||function(){return se=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},se.apply(this,arguments)},Qa=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},sn=Symbol("NiceModalId"),Xn={},lt=y.createContext(Xn),No=y.createContext(null),Ae={},jt={},es=0,ut=function(){throw new Error("No dispatch method detected, did you embed your app with NiceModal.Provider?")},ts=function(){return"_nice_modal_"+es++},To=function(e,t){var n,r,o;switch(e===void 0&&(e=Xn),t.type){case"nice-modal/show":{var i=t.payload,s=i.modalId,c=i.args;return se(se({},e),(n={},n[s]=se(se({},e[s]),{id:s,args:c,visible:!!jt[s],delayVisible:!jt[s]}),n))}case"nice-modal/hide":{var s=t.payload.modalId;return e[s]?se(se({},e),(r={},r[s]=se(se({},e[s]),{visible:!1}),r)):e}case"nice-modal/remove":{var s=t.payload.modalId,l=se({},e);return delete l[s],l}case"nice-modal/set-flags":{var p=t.payload,s=p.modalId,u=p.flags;return se(se({},e),(o={},o[s]=se(se({},e[s]),u),o))}default:return e}};function ns(e,t){return{type:"nice-modal/show",payload:{modalId:e,args:t}}}function rs(e,t){return{type:"nice-modal/set-flags",payload:{modalId:e,flags:t}}}function os(e){return{type:"nice-modal/hide",payload:{modalId:e}}}function is(e){return{type:"nice-modal/remove",payload:{modalId:e}}}var Te={},rt={},Jn=function(e){return typeof e=="string"?e:(e[sn]||(e[sn]=ts()),e[sn])};function Ao(e,t){var n=Jn(e);if(typeof e!="string"&&!Ae[n]&&tn(n,e),ut(ns(n,t)),!Te[n]){var r,o,i=new Promise(function(s,c){r=s,o=c});Te[n]={resolve:r,reject:o,promise:i}}return Te[n].promise}function Ro(e){var t=Jn(e);if(ut(os(t)),delete Te[t],!rt[t]){var n,r,o=new Promise(function(i,s){n=i,r=s});rt[t]={resolve:n,reject:r,promise:o}}return rt[t].promise}var Mo=function(e){ut(is(e)),delete Te[e],delete rt[e]},as=function(e,t){ut(rs(e,t))};function en(e,t){var n=y.useContext(lt),r=y.useContext(No),o=null,i=e&&typeof e!="string";if(e?o=Jn(e):o=r,!o)throw new Error("No modal id found in NiceModal.useModal.");var s=o;y.useEffect(function(){i&&!Ae[s]&&tn(s,e,t)},[i,s,e,t]);var c=n[s],l=y.useCallback(function(v){return Ao(s,v)},[s]),p=y.useCallback(function(){return Ro(s)},[s]),u=y.useCallback(function(){return Mo(s)},[s]),g=y.useCallback(function(v){var d;(d=Te[s])===null||d===void 0||d.resolve(v),delete Te[s]},[s]),f=y.useCallback(function(v){var d;(d=Te[s])===null||d===void 0||d.reject(v),delete Te[s]},[s]),h=y.useCallback(function(v){var d;(d=rt[s])===null||d===void 0||d.resolve(v),delete rt[s]},[s]);return{id:s,args:c?.args,visible:!!c?.visible,keepMounted:!!c?.keepMounted,show:l,hide:p,remove:u,resolve:g,reject:f,resolveHide:h}}var ss=function(e){return function(t){var n,r=t.defaultVisible,o=t.keepMounted,i=t.id,s=Qa(t,["defaultVisible","keepMounted","id"]),c=en(i),l=c.args,p=c.show,u=y.useContext(lt),g=!!u[i];y.useEffect(function(){return r&&p(),jt[i]=!0,function(){delete jt[i]}},[i,p,r]),y.useEffect(function(){o&&as(i,{keepMounted:!0})},[i,o]);var f=(n=u[i])===null||n===void 0?void 0:n.delayVisible;return y.useEffect(function(){f&&p(l)},[f,l,p]),g?y.createElement(No.Provider,{value:i},y.createElement(e,se({},s,l))):null}},tn=function(e,t,n){Ae[e]?Ae[e].props=n:Ae[e]={comp:t,props:n}},cs=function(e){delete Ae[e]},Io=function(){var e=y.useContext(lt),t=Object.keys(e).filter(function(r){return!!e[r]});t.forEach(function(r){if(!Ae[r]&&!jt[r]){console.warn("No modal found for id: "+r+". Please check the id or if it is registered or declared via JSX.");return}});var n=t.filter(function(r){return Ae[r]}).map(function(r){return se({id:r},Ae[r])});return y.createElement(y.Fragment,null,n.map(function(r){return y.createElement(r.comp,se({key:r.id,id:r.id},r.props))}))},ls=function(e){var t=e.children,n=y.useReducer(To,Xn),r=n[0];return ut=n[1],y.createElement(lt.Provider,{value:r},t,y.createElement(Io,null))},us=function(e){var t=e.children,n=e.dispatch,r=e.modals;return!n||!r?y.createElement(ls,null,t):(ut=n,y.createElement(lt.Provider,{value:r},t,y.createElement(Io,null)))},fs=function(e){var t=e.id,n=e.component;return y.useEffect(function(){return tn(t,n),function(){cs(t)}},[t,n]),null},ds=function(e){return{visible:e.visible,onOk:function(){return e.hide()},onCancel:function(){return e.hide()},afterClose:function(){e.resolveHide(),e.keepMounted||e.remove()}}},ps=function(e){return{visible:e.visible,onClose:function(){return e.hide()},afterVisibleChange:function(t){t||e.resolveHide(),!t&&!e.keepMounted&&e.remove()}}},hs=function(e){return{open:e.visible,onClose:function(){return e.hide()},onExited:function(){e.resolveHide(),!e.keepMounted&&e.remove()}}},vs=function(e){return{show:e.visible,onHide:function(){return e.hide()},onExited:function(){e.resolveHide(),!e.keepMounted&&e.remove()}}},$e={Provider:us,ModalDef:fs,NiceModalContext:lt,create:ss,register:tn,show:Ao,hide:Ro,remove:Mo,useModal:en,reducer:To,antdModal:ds,antdDrawer:ps,muiDialog:hs,bootstrapDialog:vs};const ms=$e.create(e=>{const{onLogout:t,user:n,...r}=e,o=en();return a.jsx(_o,{...r,visible:o.visible,onClose:()=>{o.hide()},afterClose:()=>{o.remove()},children:a.jsx(ko,{onLogout:t,user:n})})});const Do=({actions:e,className:t=""})=>a.jsx("div",{className:Q("layout-actions",t),children:e.map(({label:n,kind:r,disabled:o,onClick:i})=>a.jsx("button",{onClick:i,disabled:o,className:"g42-btn",children:n},r))}),gs=e=>{const{layout:t,onLayoutItemClick:n,setDefaultLayout:r}=e,o=y.useContext(ce.GlueContext),i=async l=>(l.isDefault&&r({name:wt}),o.layouts.remove("Global",l.name).catch(p=>{console.error("Failed to delete layout: ",p)})),s=async(l,p)=>{if(p.name===At.SET_AS_DEFAULT)return r({name:t.name});if(p.name===At.DELETE)return i(t)},c=[{name:At.SET_AS_DEFAULT,displayName:"Set as Default",disabled:t.isDefault},{name:At.DELETE,displayName:"Delete",disabled:t.id===wt}];return a.jsxs("div",{className:Q("layouts-item flex ai-center",t.isSelected&&"active"),children:[a.jsx("div",{className:"loaded me-8",children:t.isSelected&&a.jsx(fe,{size:12,name:"check"})}),a.jsx("div",{className:Q("name",{bold:t.isSelected}),onClick:()=>n(t),children:t.name}),a.jsxs("div",{className:"type",children:[t.type,t.isDefault?"/Default":""]}),a.jsx(qn,{iconSize:16,iconName:"ellipsis",actions:c,onActionItemClick:s})]},t.id)},Lo=e=>{const{layouts:t,onLayoutItemClick:n,inputValue:r,onInputChange:o,actions:i,setDefaultLayout:s}=e;return a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"layouts-settings",children:[a.jsx("input",{className:"g42-input",onChange:c=>o(c.target.value),value:r}),a.jsx(Do,{className:"group",actions:i})]}),a.jsxs("div",{children:[a.jsx("h6",{children:"Available Layouts"}),t.map(c=>a.jsx(gs,{layout:c,onLayoutItemClick:n,setDefaultLayout:s},c.id))]})]})};var x={},Or={get exports(){return x},set exports(e){x=e}},Ht={},ys={get exports(){return Ht},set exports(e){Ht=e}},q={};/** @license React v16.13.1
23
+ * react-is.production.min.js
24
+ *
25
+ * Copyright (c) Facebook, Inc. and its affiliates.
26
+ *
27
+ * This source code is licensed under the MIT license found in the
28
+ * LICENSE file in the root directory of this source tree.
29
+ */var jr;function bs(){if(jr)return q;jr=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,d=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,O=e?Symbol.for("react.responder"):60118,j=e?Symbol.for("react.scope"):60119;function E(b){if(typeof b=="object"&&b!==null){var k=b.$$typeof;switch(k){case t:switch(b=b.type,b){case l:case p:case r:case i:case o:case g:return b;default:switch(b=b&&b.$$typeof,b){case c:case u:case v:case h:case s:return b;default:return k}}case n:return k}}}function w(b){return E(b)===p}return q.AsyncMode=l,q.ConcurrentMode=p,q.ContextConsumer=c,q.ContextProvider=s,q.Element=t,q.ForwardRef=u,q.Fragment=r,q.Lazy=v,q.Memo=h,q.Portal=n,q.Profiler=i,q.StrictMode=o,q.Suspense=g,q.isAsyncMode=function(b){return w(b)||E(b)===l},q.isConcurrentMode=w,q.isContextConsumer=function(b){return E(b)===c},q.isContextProvider=function(b){return E(b)===s},q.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},q.isForwardRef=function(b){return E(b)===u},q.isFragment=function(b){return E(b)===r},q.isLazy=function(b){return E(b)===v},q.isMemo=function(b){return E(b)===h},q.isPortal=function(b){return E(b)===n},q.isProfiler=function(b){return E(b)===i},q.isStrictMode=function(b){return E(b)===o},q.isSuspense=function(b){return E(b)===g},q.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===p||b===i||b===o||b===g||b===f||typeof b=="object"&&b!==null&&(b.$$typeof===v||b.$$typeof===h||b.$$typeof===s||b.$$typeof===c||b.$$typeof===u||b.$$typeof===m||b.$$typeof===O||b.$$typeof===j||b.$$typeof===d)},q.typeOf=E,q}var z={};/** @license React v16.13.1
30
+ * react-is.development.js
31
+ *
32
+ * Copyright (c) Facebook, Inc. and its affiliates.
33
+ *
34
+ * This source code is licensed under the MIT license found in the
35
+ * LICENSE file in the root directory of this source tree.
36
+ */var Sr;function xs(){return Sr||(Sr=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,d=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,O=e?Symbol.for("react.responder"):60118,j=e?Symbol.for("react.scope"):60119;function E(S){return typeof S=="string"||typeof S=="function"||S===r||S===p||S===i||S===o||S===g||S===f||typeof S=="object"&&S!==null&&(S.$$typeof===v||S.$$typeof===h||S.$$typeof===s||S.$$typeof===c||S.$$typeof===u||S.$$typeof===m||S.$$typeof===O||S.$$typeof===j||S.$$typeof===d)}function w(S){if(typeof S=="object"&&S!==null){var le=S.$$typeof;switch(le){case t:var ye=S.type;switch(ye){case l:case p:case r:case i:case o:case g:return ye;default:var Ye=ye&&ye.$$typeof;switch(Ye){case c:case u:case v:case h:case s:return Ye;default:return le}}case n:return le}}}var b=l,k=p,F=c,W=s,Y=t,G=u,V=r,te=v,J=h,re=n,ve=i,K=o,ee=g,ge=!1;function ue(S){return ge||(ge=!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.")),C(S)||w(S)===l}function C(S){return w(S)===p}function P(S){return w(S)===c}function T(S){return w(S)===s}function R(S){return typeof S=="object"&&S!==null&&S.$$typeof===t}function _(S){return w(S)===u}function A(S){return w(S)===r}function N(S){return w(S)===v}function M(S){return w(S)===h}function L(S){return w(S)===n}function B(S){return w(S)===i}function H(S){return w(S)===o}function ne(S){return w(S)===g}z.AsyncMode=b,z.ConcurrentMode=k,z.ContextConsumer=F,z.ContextProvider=W,z.Element=Y,z.ForwardRef=G,z.Fragment=V,z.Lazy=te,z.Memo=J,z.Portal=re,z.Profiler=ve,z.StrictMode=K,z.Suspense=ee,z.isAsyncMode=ue,z.isConcurrentMode=C,z.isContextConsumer=P,z.isContextProvider=T,z.isElement=R,z.isForwardRef=_,z.isFragment=A,z.isLazy=N,z.isMemo=M,z.isPortal=L,z.isProfiler=B,z.isStrictMode=H,z.isSuspense=ne,z.isValidElementType=E,z.typeOf=w}()),z}var Pr;function Fo(){return Pr||(Pr=1,function(e){process.env.NODE_ENV==="production"?e.exports=bs():e.exports=xs()}(ys)),Ht}/*
37
+ object-assign
38
+ (c) Sindre Sorhus
39
+ @license MIT
40
+ */var cn,kr;function ws(){if(kr)return cn;kr=1;var e=Object.getOwnPropertySymbols,t=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 s={},c=0;c<10;c++)s["_"+String.fromCharCode(c)]=c;var l=Object.getOwnPropertyNames(s).map(function(u){return s[u]});if(l.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(u){p[u]=u}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return cn=o()?Object.assign:function(i,s){for(var c,l=r(i),p,u=1;u<arguments.length;u++){c=Object(arguments[u]);for(var g in c)t.call(c,g)&&(l[g]=c[g]);if(e){p=e(c);for(var f=0;f<p.length;f++)n.call(c,p[f])&&(l[p[f]]=c[p[f]])}}return l},cn}var ln,_r;function Qn(){if(_r)return ln;_r=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ln=e,ln}var un,Nr;function $o(){return Nr||(Nr=1,un=Function.call.bind(Object.prototype.hasOwnProperty)),un}var fn,Tr;function Es(){if(Tr)return fn;Tr=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Qn(),n={},r=$o();e=function(i){var s="Warning: "+i;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function o(i,s,c,l,p){if(process.env.NODE_ENV!=="production"){for(var u in i)if(r(i,u)){var g;try{if(typeof i[u]!="function"){var f=Error((l||"React class")+": "+c+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}g=i[u](s,u,l,c,null,t)}catch(v){g=v}if(g&&!(g instanceof Error)&&e((l||"React class")+": type specification of "+c+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof g+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),g instanceof Error&&!(g.message in n)){n[g.message]=!0;var h=p?p():"";e("Failed "+c+" type: "+g.message+(h??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},fn=o,fn}var dn,Ar;function Cs(){if(Ar)return dn;Ar=1;var e=Fo(),t=ws(),n=Qn(),r=$o(),o=Es(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(c){var l="Warning: "+c;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function s(){return null}return dn=function(c,l){var p=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function g(C){var P=C&&(p&&C[p]||C[u]);if(typeof P=="function")return P}var f="<<anonymous>>",h={array:O("array"),bigint:O("bigint"),bool:O("boolean"),func:O("function"),number:O("number"),object:O("object"),string:O("string"),symbol:O("symbol"),any:j(),arrayOf:E,element:w(),elementType:b(),instanceOf:k,node:G(),objectOf:W,oneOf:F,oneOfType:Y,shape:te,exact:J};function v(C,P){return C===P?C!==0||1/C===1/P:C!==C&&P!==P}function d(C,P){this.message=C,this.data=P&&typeof P=="object"?P:{},this.stack=""}d.prototype=Error.prototype;function m(C){if(process.env.NODE_ENV!=="production")var P={},T=0;function R(A,N,M,L,B,H,ne){if(L=L||f,H=H||M,ne!==n){if(l){var S=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 S.name="Invariant Violation",S}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var le=L+":"+M;!P[le]&&T<3&&(i("You are manually calling a React.PropTypes validation function for the `"+H+"` prop on `"+L+"`. 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[le]=!0,T++)}}return N[M]==null?A?N[M]===null?new d("The "+B+" `"+H+"` is marked as required "+("in `"+L+"`, but its value is `null`.")):new d("The "+B+" `"+H+"` is marked as required in "+("`"+L+"`, but its value is `undefined`.")):null:C(N,M,L,B,H)}var _=R.bind(null,!1);return _.isRequired=R.bind(null,!0),_}function O(C){function P(T,R,_,A,N,M){var L=T[R],B=K(L);if(B!==C){var H=ee(L);return new d("Invalid "+A+" `"+N+"` of type "+("`"+H+"` supplied to `"+_+"`, expected ")+("`"+C+"`."),{expectedType:C})}return null}return m(P)}function j(){return m(s)}function E(C){function P(T,R,_,A,N){if(typeof C!="function")return new d("Property `"+N+"` of component `"+_+"` has invalid PropType notation inside arrayOf.");var M=T[R];if(!Array.isArray(M)){var L=K(M);return new d("Invalid "+A+" `"+N+"` of type "+("`"+L+"` supplied to `"+_+"`, expected an array."))}for(var B=0;B<M.length;B++){var H=C(M,B,_,A,N+"["+B+"]",n);if(H instanceof Error)return H}return null}return m(P)}function w(){function C(P,T,R,_,A){var N=P[T];if(!c(N)){var M=K(N);return new d("Invalid "+_+" `"+A+"` of type "+("`"+M+"` supplied to `"+R+"`, expected a single ReactElement."))}return null}return m(C)}function b(){function C(P,T,R,_,A){var N=P[T];if(!e.isValidElementType(N)){var M=K(N);return new d("Invalid "+_+" `"+A+"` of type "+("`"+M+"` supplied to `"+R+"`, expected a single ReactElement type."))}return null}return m(C)}function k(C){function P(T,R,_,A,N){if(!(T[R]instanceof C)){var M=C.name||f,L=ue(T[R]);return new d("Invalid "+A+" `"+N+"` of type "+("`"+L+"` supplied to `"+_+"`, expected ")+("instance of `"+M+"`."))}return null}return m(P)}function F(C){if(!Array.isArray(C))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.")),s;function P(T,R,_,A,N){for(var M=T[R],L=0;L<C.length;L++)if(v(M,C[L]))return null;var B=JSON.stringify(C,function(ne,S){var le=ee(S);return le==="symbol"?String(S):S});return new d("Invalid "+A+" `"+N+"` of value `"+String(M)+"` "+("supplied to `"+_+"`, expected one of "+B+"."))}return m(P)}function W(C){function P(T,R,_,A,N){if(typeof C!="function")return new d("Property `"+N+"` of component `"+_+"` has invalid PropType notation inside objectOf.");var M=T[R],L=K(M);if(L!=="object")return new d("Invalid "+A+" `"+N+"` of type "+("`"+L+"` supplied to `"+_+"`, expected an object."));for(var B in M)if(r(M,B)){var H=C(M,B,_,A,N+"."+B,n);if(H instanceof Error)return H}return null}return m(P)}function Y(C){if(!Array.isArray(C))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var P=0;P<C.length;P++){var T=C[P];if(typeof T!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ge(T)+" at index "+P+"."),s}function R(_,A,N,M,L){for(var B=[],H=0;H<C.length;H++){var ne=C[H],S=ne(_,A,N,M,L,n);if(S==null)return null;S.data&&r(S.data,"expectedType")&&B.push(S.data.expectedType)}var le=B.length>0?", expected one of type ["+B.join(", ")+"]":"";return new d("Invalid "+M+" `"+L+"` supplied to "+("`"+N+"`"+le+"."))}return m(R)}function G(){function C(P,T,R,_,A){return re(P[T])?null:new d("Invalid "+_+" `"+A+"` supplied to "+("`"+R+"`, expected a ReactNode."))}return m(C)}function V(C,P,T,R,_){return new d((C||"React class")+": "+P+" type `"+T+"."+R+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+_+"`.")}function te(C){function P(T,R,_,A,N){var M=T[R],L=K(M);if(L!=="object")return new d("Invalid "+A+" `"+N+"` of type `"+L+"` "+("supplied to `"+_+"`, expected `object`."));for(var B in C){var H=C[B];if(typeof H!="function")return V(_,A,N,B,ee(H));var ne=H(M,B,_,A,N+"."+B,n);if(ne)return ne}return null}return m(P)}function J(C){function P(T,R,_,A,N){var M=T[R],L=K(M);if(L!=="object")return new d("Invalid "+A+" `"+N+"` of type `"+L+"` "+("supplied to `"+_+"`, expected `object`."));var B=t({},T[R],C);for(var H in B){var ne=C[H];if(r(C,H)&&typeof ne!="function")return V(_,A,N,H,ee(ne));if(!ne)return new d("Invalid "+A+" `"+N+"` key `"+H+"` supplied to `"+_+"`.\nBad object: "+JSON.stringify(T[R],null," ")+`
41
+ Valid keys: `+JSON.stringify(Object.keys(C),null," "));var S=ne(M,H,_,A,N+"."+H,n);if(S)return S}return null}return m(P)}function re(C){switch(typeof C){case"number":case"string":case"undefined":return!0;case"boolean":return!C;case"object":if(Array.isArray(C))return C.every(re);if(C===null||c(C))return!0;var P=g(C);if(P){var T=P.call(C),R;if(P!==C.entries){for(;!(R=T.next()).done;)if(!re(R.value))return!1}else for(;!(R=T.next()).done;){var _=R.value;if(_&&!re(_[1]))return!1}}else return!1;return!0;default:return!1}}function ve(C,P){return C==="symbol"?!0:P?P["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&P instanceof Symbol:!1}function K(C){var P=typeof C;return Array.isArray(C)?"array":C instanceof RegExp?"object":ve(P,C)?"symbol":P}function ee(C){if(typeof C>"u"||C===null)return""+C;var P=K(C);if(P==="object"){if(C instanceof Date)return"date";if(C instanceof RegExp)return"regexp"}return P}function ge(C){var P=ee(C);switch(P){case"array":case"object":return"an "+P;case"boolean":case"date":case"regexp":return"a "+P;default:return P}}function ue(C){return!C.constructor||!C.constructor.name?f:C.constructor.name}return h.checkPropTypes=o,h.resetWarningCache=o.resetWarningCache,h.PropTypes=h,h},dn}var pn,Rr;function Os(){if(Rr)return pn;Rr=1;var e=Qn();function t(){}function n(){}return n.resetWarningCache=t,pn=function(){function r(s,c,l,p,u,g){if(g!==e){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:t};return i.PropTypes=i,i},pn}if(process.env.NODE_ENV!=="production"){var js=Fo(),Ss=!0;Or.exports=Cs()(js.isElement,Ss)}else Or.exports=Os()();function On(e){return On=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},On(e)}var Ps;function ft(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ps;return t?e.split(" ").map(function(n){return t[n]||n}).join(" "):e}function ks(e,t){var n={};return Object.keys(e).forEach(function(r){t.indexOf(r)===-1&&(n[r]=e[r])}),n}function _s(e,t){for(var n=Array.isArray(t)?t:[t],r=n.length,o,i={};r>0;)r-=1,o=n[r],i[o]=e[o];return i}var Mr={};function Ir(e){Mr[e]||(typeof console<"u"&&console.error(e),Mr[e]=!0)}var Ns=(typeof window>"u"?"undefined":On(window))==="object"&&window.Element||function(){};function Ts(e,t,n){if(!(e[t]instanceof Ns))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")}x.oneOfType([x.string,x.func,Ts,x.shape({current:x.any})]);var kt=x.oneOfType([x.func,x.string,x.shape({$$typeof:x.symbol,render:x.func}),x.arrayOf(x.oneOfType([x.func,x.string,x.shape({$$typeof:x.symbol,render:x.func})]))]),As={Fade:150,Collapse:350,Modal:300,Carousel:600,Offcanvas:300},Dr=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],Mt={ENTERING:"entering",ENTERED:"entered",EXITING:"exiting",EXITED:"exited"},Rs=["className","cssModule","variant","innerRef"];function jn(){return jn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jn.apply(this,arguments)}function Ms(e,t){if(e==null)return{};var n=Is(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Is(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Ds={active:x.bool,"aria-label":x.string,onClick:x.func,variant:x.oneOf(["white"]),className:x.string,cssModule:x.object,innerRef:x.oneOfType([x.object,x.string,x.func])},Ls={"aria-label":"close"};function er(e){var t=e.className;e.cssModule;var n=e.variant,r=e.innerRef,o=Ms(e,Rs),i=ft(Q(t,"btn-close",n&&"btn-close-".concat(n)));return y.createElement("button",jn({ref:r,type:"button",className:i},o))}er.propTypes=Ds;er.defaultProps=Ls;var Fs=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"];function Sn(){return Sn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sn.apply(this,arguments)}function $s(e,t){if(e==null)return{};var n=Hs(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Hs(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Bs={active:x.bool,"aria-label":x.string,block:x.bool,children:x.node,className:x.string,cssModule:x.object,close:x.bool,color:x.string,disabled:x.bool,innerRef:x.oneOfType([x.object,x.func,x.string]),onClick:x.func,outline:x.bool,size:x.string,tag:kt},Vs={color:"secondary",tag:"button"};function _t(e){var t=y.useCallback(function(m){if(e.disabled){m.preventDefault();return}if(e.onClick)return e.onClick(m)},[e.onClick,e.disabled]),n=e.active,r=e["aria-label"],o=e.block,i=e.className,s=e.close,c=e.cssModule,l=e.color,p=e.outline,u=e.size,g=e.tag,f=e.innerRef,h=$s(e,Fs);if(s)return y.createElement(er,h);var v="btn".concat(p?"-outline":"","-").concat(l),d=ft(Q(i,"btn",v,u?"btn-".concat(u):!1,o?"d-block w-100":!1,{active:n,disabled:e.disabled}),c);return h.href&&g==="button"&&(g="a"),y.createElement(g,Sn({type:g==="button"&&h.onClick?"button":void 0},h,{className:d,ref:f,onClick:t,"aria-label":r}))}_t.propTypes=Bs;_t.defaultProps=Vs;function Us(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Pn(e,t){return Pn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Pn(e,t)}function Ws(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Pn(e,t)}const Lr={disabled:!1};var Gs=process.env.NODE_ENV!=="production"?x.oneOfType([x.number,x.shape({enter:x.number,exit:x.number,appear:x.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&x.oneOfType([x.string,x.shape({enter:x.string,exit:x.string,active:x.string}),x.shape({enter:x.string,enterDone:x.string,enterActive:x.string,exit:x.string,exitDone:x.string,exitActive:x.string})]);const Ho=y.createContext(null);var Zs=function(t){return t.scrollTop},gt="unmounted",Ue="exited",We="entering",Qe="entered",kn="exiting",Re=function(e){Ws(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=o,c=s&&!s.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?c?(l=Ue,i.appearStatus=We):l=Qe:r.unmountOnExit||r.mountOnEnter?l=gt:l=Ue,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===gt?{status:Ue}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==We&&s!==Qe&&(i=We):(s===We||s===Qe)&&(i=kn)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,s,c;return i=s=c=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,c=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:c}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===We){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:et.findDOMNode(this);s&&Zs(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ue&&this.setState({status:gt})},n.performEnter=function(o){var i=this,s=this.props.enter,c=this.context?this.context.isMounting:o,l=this.props.nodeRef?[c]:[et.findDOMNode(this),c],p=l[0],u=l[1],g=this.getTimeouts(),f=c?g.appear:g.enter;if(!o&&!s||Lr.disabled){this.safeSetState({status:Qe},function(){i.props.onEntered(p)});return}this.props.onEnter(p,u),this.safeSetState({status:We},function(){i.props.onEntering(p,u),i.onTransitionEnd(f,function(){i.safeSetState({status:Qe},function(){i.props.onEntered(p,u)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),c=this.props.nodeRef?void 0:et.findDOMNode(this);if(!i||Lr.disabled){this.safeSetState({status:Ue},function(){o.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:kn},function(){o.props.onExiting(c),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:Ue},function(){o.props.onExited(c)})})})},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,s=!0;return this.nextCallback=function(c){s&&(s=!1,i.nextCallback=null,o(c))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:et.findDOMNode(this),c=o==null&&!this.props.addEndListener;if(!s||c){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],p=l[0],u=l[1];this.props.addEndListener(p,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===gt)return null;var i=this.props,s=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 c=Us(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return y.createElement(Ho.Provider,{value:null},typeof s=="function"?s(o,c):y.cloneElement(y.Children.only(s),c))},t}(y.Component);Re.contextType=Ho;Re.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:x.shape({current:typeof Element>"u"?x.any:function(e,t,n,r,o,i){var s=e[t];return x.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,i)}}),children:x.oneOfType([x.func.isRequired,x.element.isRequired]).isRequired,in:x.bool,mountOnEnter:x.bool,unmountOnExit:x.bool,appear:x.bool,enter:x.bool,exit:x.bool,timeout:function(t){var n=Gs;t.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,[t].concat(o))},addEndListener:x.func,onEnter:x.func,onEntering:x.func,onEntered:x.func,onExit:x.func,onExiting:x.func,onExited:x.func}:{};function Xe(){}Re.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Xe,onEntering:Xe,onEntered:Xe,onExit:Xe,onExiting:Xe,onExited:Xe};Re.UNMOUNTED=gt;Re.EXITED=Ue;Re.ENTERING=We;Re.ENTERED=Qe;Re.EXITING=kn;const tr=Re;function _n(e){return _n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_n(e)}var qs=["tag","horizontal","isOpen","className","navbar","cssModule","children","innerRef"],Je;function Bt(){return Bt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bt.apply(this,arguments)}function zs(e,t){if(e==null)return{};var n=Ys(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ys(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Ks(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Xs(e,t,n){return t&&Fr(e.prototype,t),n&&Fr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Js(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Nn(e,t)}function Nn(e,t){return Nn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Nn(e,t)}function Qs(e){var t=tc();return function(){var r=Vt(e),o;if(t){var i=Vt(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return ec(this,o)}}function ec(e,t){if(t&&(_n(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bo(e)}function Bo(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tc(){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 Vt(e){return Vt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Vt(e)}function $r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ct(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$r(Object(n),!0).forEach(function(r){nt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$r(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nc=ct(ct({},tr.propTypes),{},{horizontal:x.bool,isOpen:x.bool,children:x.oneOfType([x.arrayOf(x.node),x.node]),tag:kt,className:x.node,navbar:x.bool,cssModule:x.object,innerRef:x.shape({current:x.object})}),rc=ct(ct({},tr.defaultProps),{},{horizontal:!1,isOpen:!1,appear:!1,enter:!0,exit:!0,tag:"div",timeout:As.Collapse}),oc=(Je={},nt(Je,Mt.ENTERING,"collapsing"),nt(Je,Mt.ENTERED,"collapse show"),nt(Je,Mt.EXITING,"collapsing"),nt(Je,Mt.EXITED,"collapse"),Je);function ic(e){return oc[e]||"collapse"}var nr=function(e){Js(n,e);var t=Qs(n);function n(r){var o;return Ks(this,n),o=t.call(this,r),o.state={dimension:null},o.nodeRef=r.innerRef||y.createRef(),["onEntering","onEntered","onExit","onExiting","onExited"].forEach(function(i){o[i]=o[i].bind(Bo(o))}),o}return Xs(n,[{key:"onEntering",value:function(o,i){var s=this.getNode();this.setState({dimension:this.getDimension(s)}),this.props.onEntering(s,i)}},{key:"onEntered",value:function(o,i){var s=this.getNode();this.setState({dimension:null}),this.props.onEntered(s,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,s=i.tag,c=i.horizontal,l=i.isOpen,p=i.className,u=i.navbar,g=i.cssModule,f=i.children;i.innerRef;var h=zs(i,qs),v=this.state.dimension,d=_s(h,Dr),m=ks(h,Dr);return y.createElement(tr,Bt({},d,{in:l,nodeRef:this.nodeRef,onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),function(O){var j=ic(O),E=ft(Q(p,c&&"collapse-horizontal",j,u&&"navbar-collapse"),g),w=v===null?null:nt({},c?"width":"height",v);return y.createElement(s,Bt({},m,{style:ct(ct({},m.style),w),className:E,ref:o.nodeRef}),f)})}}]),n}(y.Component);nr.propTypes=nc;nr.defaultProps=rc;const ac=nr;function Tn(e){return Tn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tn(e)}var sc=["className","cssModule","tag","innerRef"];function An(){return An=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},An.apply(this,arguments)}function cc(e,t){if(e==null)return{};var n=lc(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function lc(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function uc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fc(e,t,n){return t&&Hr(e.prototype,t),n&&Hr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function dc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Rn(e,t)}function Rn(e,t){return Rn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Rn(e,t)}function pc(e){var t=vc();return function(){var r=Ut(e),o;if(t){var i=Ut(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return hc(this,o)}}function hc(e,t){if(t&&(Tn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Mn(e)}function Mn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vc(){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 Ut(e){return Ut=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ut(e)}var mc={children:x.node,tag:kt,innerRef:x.oneOfType([x.object,x.func,x.string]),className:x.string,cssModule:x.object},gc={tag:"form"},rr=function(e){dc(n,e);var t=pc(n);function n(r){var o;return uc(this,n),o=t.call(this,r),o.getRef=o.getRef.bind(Mn(o)),o.submit=o.submit.bind(Mn(o)),o}return fc(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,s=o.cssModule,c=o.tag,l=o.innerRef,p=cc(o,sc),u=ft(i,s);return y.createElement(c,An({},p,{ref:l,className:u}))}}]),n}(y.Component);rr.propTypes=mc;rr.defaultProps=gc;const Vo=rr;var yc=["className","cssModule","row","disabled","check","inline","floating","tag","switch"];function In(){return In=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},In.apply(this,arguments)}function bc(e,t){if(e==null)return{};var n=xc(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xc(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var wc={children:x.node,row:x.bool,check:x.bool,switch:x.bool,inline:x.bool,floating:x.bool,disabled:x.bool,tag:kt,className:x.string,cssModule:x.object},Ec={tag:"div"};function Wt(e){var t=e.className,n=e.cssModule,r=e.row,o=e.disabled,i=e.check,s=e.inline,c=e.floating,l=e.tag,p=e.switch,u=bc(e,yc),g=i||p,f=ft(Q(t,r?"row":!1,g?"form-check":"mb-3",p?"form-switch":!1,g&&s?"form-check-inline":!1,g&&o?"disabled":!1,c&&"form-floating"),n);return l==="fieldset"&&(u.disabled=o),y.createElement(l,In({},u,{className:f}))}Wt.propTypes=wc;Wt.defaultProps=Ec;function Dn(e){return Dn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dn(e)}var Cc=["className","cssModule","type","bsSize","valid","invalid","tag","addon","plaintext","innerRef"];function Ln(){return Ln=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ln.apply(this,arguments)}function Oc(e,t){if(e==null)return{};var n=jc(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function jc(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Sc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Br(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Pc(e,t,n){return t&&Br(e.prototype,t),n&&Br(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function kc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fn(e,t)}function Fn(e,t){return Fn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Fn(e,t)}function _c(e){var t=Tc();return function(){var r=Gt(e),o;if(t){var i=Gt(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return Nc(this,o)}}function Nc(e,t){if(t&&(Dn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $n(e)}function $n(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tc(){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 Gt(e){return Gt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Gt(e)}var Ac={children:x.node,type:x.string,size:x.oneOfType([x.number,x.string]),bsSize:x.string,valid:x.bool,invalid:x.bool,tag:kt,innerRef:x.oneOfType([x.object,x.func,x.string]),plaintext:x.bool,addon:x.bool,className:x.string,cssModule:x.object},Rc={type:"text"},or=function(e){kc(n,e);var t=_c(n);function n(r){var o;return Sc(this,n),o=t.call(this,r),o.getRef=o.getRef.bind($n(o)),o.focus=o.focus.bind($n(o)),o}return Pc(n,[{key:"getRef",value:function(o){this.props.innerRef&&this.props.innerRef(o),this.ref=o}},{key:"focus",value:function(){this.ref&&this.ref.focus()}},{key:"render",value:function(){var o=this.props,i=o.className,s=o.cssModule,c=o.type,l=o.bsSize,p=o.valid,u=o.invalid,g=o.tag,f=o.addon,h=o.plaintext,v=o.innerRef,d=Oc(o,Cc),m=["switch","radio","checkbox"].indexOf(c)>-1,O=/\D/g,j=c==="textarea",E=c==="select",w=c==="range",b=g||(E||j?c:"input"),k="form-control";h?(k="".concat(k,"-plaintext"),b=g||"input"):w?k="form-range":E?k="form-select":m&&(f?k=null:k="form-check-input"),d.size&&O.test(d.size)&&(Ir(`Please use the prop "bsSize" instead of the "size" to bootstrap's input sizing.`),l=d.size,delete d.size);var F=ft(Q(i,u&&"is-invalid",p&&"is-valid",l?E?"form-select-".concat(l):"form-control-".concat(l):!1,k),s);return(b==="input"||g&&typeof g=="function")&&(d.type=c==="switch"?"checkbox":c),d.children&&!(h||c==="select"||typeof b!="string"||b==="select")&&(Ir('Input with a type of "'.concat(c,'" cannot have children. Please use "value"/"defaultValue" instead.')),delete d.children),y.createElement(b,Ln({},d,{ref:v,className:F,"aria-invalid":u}))}}]),n}(y.Component);or.propTypes=Ac;or.defaultProps=Rc;const Vr=or,Mc=async e=>{const{defaultLayout:t,glue:n,setDefaultLayout:r,restoreLayout:o}=e;t||!n||!await n.layouts.get(wt,"Global")||(await o(wt),r({name:wt}))},Ic={success:"check"},Dc=({className:e,message:t,type:n})=>a.jsxs("div",{className:Q("layout-notification",`layout-notification-${n}`,e),children:[a.jsx(fe,{size:12,name:Ic[n]}),a.jsx("span",{children:t})]}),Uo=()=>{const[e,t]=y.useState(!1),[n,r]=y.useState([]),[o,i]=y.useState(null),[s,c]=Ft("localStorage",wa,Cn),[l,p]=Ft("sessionStorage",so,Cn),u=y.useContext(ce.GlueContext),g=y.useRef(null),f=y.useRef(null),[h,v]=y.useState(l?.name||""),d=y.useCallback(async j=>{if(u)try{await u.layouts.restore({name:j,type:"Global"}),p({name:j})}catch(E){console.error(E)}},[u,p]);y.useEffect(()=>{if(!u)return;let j=!1;const E=u.layouts.onAdded(b=>{if(b.type!=="Global"||j)return;const{name:k,type:F}=b;r(W=>[...W,{name:k,id:k,type:F}])}),w=u.layouts.onRemoved(b=>{b.type!=="Global"||j||r(k=>k.filter(F=>F.name!==b.name))});return()=>{j=!0,E(),w()}},[u]),y.useEffect(()=>{l||!s||d(s.name)},[l,s,d]),y.useEffect(()=>{Mc({glue:u,defaultLayout:s,restoreLayout:d,setDefaultLayout:c}).catch(console.warn)},[u,s,d,c]),y.useEffect(()=>{if(!o)return;const j=setTimeout(()=>i(null),3e3);return()=>clearTimeout(j)},[o]),y.useEffect(()=>{if(!e)return;const j=w=>{f.current?.contains(w.target)||t(!1)},E=()=>{document.activeElement?.nodeName==="IFRAME"&&t(!1)};return document.addEventListener("click",j,!0),window.addEventListener("blur",E,!0),()=>{document.removeEventListener("click",j,!0),window.removeEventListener("blur",E,!0)}},[e]);const m=j=>async E=>{E.stopPropagation();try{await j()}catch(w){console.error("Failed to handle layout action: ",w)}},O={save:{label:"Save",kind:"save",onClick:m(async()=>{await u.layouts.save({name:h,type:"Global"}),p({name:h}),i({message:"Saved",type:"success"})})},restore:{label:"Restore",kind:"restore",disabled:!n.length,onClick:m(()=>{l&&d(l.name)})}};return a.jsxs("footer",{className:"footer",ref:f,children:[a.jsxs("div",{"aria-label":"Layout settings","aria-expanded":e,role:"button",...Yt(()=>{v(l?.name||""),t(j=>!j)}),className:"current-layout flex ai-center",children:[a.jsx("span",{className:Q("name",{hidden:e}),children:l?.name||"No selected layout"}),a.jsxs("div",{className:"flex ai-center",children:[!e&&a.jsx(Do,{actions:[O.save,O.restore]}),a.jsx(fe,{className:Q("ms-8","settings-toggle-button",{"settings-toggle-button-rotated":e}),name:"chevron-up"})]})]}),a.jsx(ac,{isOpen:e,children:a.jsx("div",{ref:g,className:"layouts-container",children:a.jsx(Lo,{layouts:n.sort((j,E)=>j.name.localeCompare(E.name)).map(j=>({...j,isSelected:j.name===l?.name,isDefault:j.name===s?.name})),inputValue:h,onInputChange:v,selectedLayout:l,onLayoutItemClick:({name:j})=>d(j),actions:[O.save,O.restore],setDefaultLayout:c})})}),o?a.jsx(Dc,{className:Q({"ms-8 me-8":e}),message:o.message,type:o.type}):a.jsx("div",{className:"powered-by",children:"Powered by io.Connect Browser"})]})},Wo=y.forwardRef((e,t)=>{const{onSearch:n,searchTerm:r,onClear:o}=e,i=y.useContext(ce.GlueContext);return y.useEffect(()=>{!i||!i.search||i.search.setDebounceMS(450)},[i]),a.jsxs("div",{className:"search","data-testid":"search-bar",children:[a.jsx("input",{type:"search",ref:t,className:"g42-input",placeholder:"Find anything",value:r,onChange:n}),a.jsx(fe,{name:"delete-left",className:r.length!==0?"active":"",onClick:o,"data-testid":"delete-icon"})]})}),Lc=e=>e.reduce((t,n)=>{const{type:r}=n,o=n.id||n.displayName;if(!o||r.name===Ne.LAYOUT)return t;let i=[];r.name===Ne.APPLICATION?i=oo:r.name===Ne.WORKSPACE?i=io:n.secondaryActions&&(i=n.secondaryActions.map(({name:p,method:u,params:g,target:f})=>({name:p,interopParams:{method:u,params:g,target:f}})));const s={id:o,title:n.displayName||o,description:n.description,type:r.name,iconSrc:n.iconURL,mainAction:n.action,contextMenuActions:i},c=t.findIndex(({title:p})=>r.displayName?p===r.displayName:p===r.name),l=t[c];return l?[...t.slice(0,c),{...l,items:[...l.items,s]},...t.slice(c+1)]:[...t,{id:r.name,title:r.displayName||r.name,items:[s]}]},[]);function Go(e){const{resultsToRender:t,isLoading:n}=Ia(e.searchTerm),r=Kn(),o=Ma(),i=po(),s=ho(),c=Lc(t),l=vo(),p=mo(),u=(f,h)=>{const v=f.type===Ne.APPLICATION?l:f.type===Ne.WORKSPACE?p:null;v&&v(f,h).catch(d=>{console.error("Failed to execute action",{error:d})})},g=async(f,h)=>{const{item:v,modifier:d,selectedContextMenuActionName:m}=h,{type:O,id:j,mainAction:E}=v,w=m?v.contextMenuActions?.find(b=>b.name===m):null;w?.interopParams?o(w.interopParams):m?u(v,m):E?o(E):O===Ne.APPLICATION?s(j,d).catch(b=>{console.error("Failed to start application",{error:b})}):O===Ne.WORKSPACE&&i(j,d).catch(b=>{console.error("Failed to restore workspace",{error:b})}),d!==Kt.SHIFT&&r.close()};return n?a.jsx("p",{style:{padding:"12px 24px"},children:"Loading..."}):t.length===0?a.jsx("p",{style:{padding:"12px 24px"},children:"No results found."}):a.jsx("ul",{children:c.map((f,h)=>a.jsx(Xt,{config:f,isFavoritismEnabled:!1,onItemClick:g},f.id||h))})}const Fc="_notification_1ixae_1",$c="_header_1ixae_8",Ge={notification:Fc,header:$c,"header-caption":"_header-caption_1ixae_12","notifications-list":"_notifications-list_1ixae_23","notifications-list-item":"_notifications-list-item_1ixae_30","no-notifications-list-item":"_no-notifications-list-item_1ixae_46","footer-buttons":"_footer-buttons_1ixae_69"},Hc=e=>{const t=new Date(e),n=t.getHours(),r=t.getMinutes(),o=t.getSeconds(),i=n>=12?"PM":"AM",s=t.getMonth()+1,c=t.getDate(),l=t.getFullYear();return`${n%12}:${r}:${o} ${i} ${s}/${c}/${l}`},Bc={Low:"#7AC70C",Medium:"#E0A900",High:"#E0474C",Critical:"#B8001E",None:"#616161"};function Vc(e){const{severity:t="None",onClick:n,onClose:r,onActionClick:o,actions:i,status:s,id:c,body:l,timestamp:p,title:u}=e;return a.jsxs("div",{className:Ge["notifications-list-item"],style:{borderLeftColor:Bc[t]},onClick:()=>n(e),children:[a.jsxs("div",{children:[a.jsx("div",{children:s}),a.jsx(fe,{onClick:g=>{g.stopPropagation(),r(c)},className:"g42-btn",size:16,name:"close"})]}),a.jsx("h4",{children:u}),l&&a.jsx("p",{children:l}),p&&a.jsx("p",{children:Hc(p)}),i&&a.jsx(Ot,{items:i.map(g=>({children:g.title,onClick:async f=>{f.stopPropagation(),await o(c,g)}}))})]},c)}const hn=["None","Low","Medium","High","Critical"],Ur={type:"timestamp",sortDirection:-1},Uc=()=>{const e=y.useRef(Wr()),[t,n]=y.useState(()=>(e.current=Wr(Ur.sortDirection),{type:Ur.type,sortDirection:e.current()}));return{onNotificationsSort:i=>n({type:i,sortDirection:e.current()}),activeSort:t,sortNotifications:i=>{const{type:s,sortDirection:c}=t;if(s==="timestamp")return[...i].sort((l,p)=>l.timestamp&&p.timestamp?c*(l.timestamp-p.timestamp):!l.timestamp&&!p.timestamp?0:c*((l.timestamp||0)-(p.timestamp||0)));if(s==="severity"){const l=hn[0];return[...i].sort((p,u)=>{const g=hn.findIndex(h=>h===(p.severity||l)),f=hn.findIndex(h=>h===(u.severity||l));return c*(g-f)})}return i}}};function Wr(e=1){const t=[-1,0,1];let n=e;return()=>(n=(n+1)%t.length,t[n])}function Zo(){const e=y.useContext(ce.GlueContext),[t,n]=y.useState([]),{onNotificationsSort:r,sortNotifications:o}=Uc(),i=y.useCallback(async u=>{if(e)try{await e.notifications.clear(u)}catch(g){console.error(g)}},[e]);y.useEffect(()=>{if(!e)return;const u=e.notifications.onRaised(f=>n(h=>[...h,f])),g=e.notifications.onClosed(({id:f})=>n(h=>h.filter(v=>v.id!==f)));return(async()=>{try{const f=await e.notifications.list();n(f)}catch(f){console.error(f)}})(),()=>{u(),g()}},[e]);const s=async()=>{try{await e.notifications.clearAll()}catch(u){console.error(u)}},c=async u=>{try{const{clickInterop:g}=u;if(g){const{method:f,arguments:h,target:v}=g;await e.interop.invoke({name:f},h,v)}else e.notifications.click(u.id);await i(u.id)}catch(g){console.error(g)}},l=async(u,g)=>{try{const{interop:f}=g;if(f){const{method:h,arguments:v,target:d}=f;await e.interop.invoke({name:h},v,d)}else await e.notifications.click(u,g.action);await i(u)}catch(f){console.error(f)}},p=console.log;return a.jsxs("div",{className:Ge.notification,children:[a.jsxs("div",{className:Ge.header,children:[a.jsx("div",{className:Ge["header-caption"],children:a.jsxs("div",{children:["Notifications (",t.length,")"]})}),a.jsx(Ot,{items:[{children:"Latest",onClick:()=>r("timestamp")},{children:"By Priority",onClick:()=>r("severity")}]})]}),a.jsx("div",{className:Ge["notifications-list"],children:t.length===0?a.jsx("div",{className:Ge["no-notifications-list-item"],children:"No notifications"}):o(t).map(u=>a.jsx(Vc,{...u,onActionClick:l,onClick:c,onClose:i},u.id))}),a.jsx(Ot,{className:Ge["footer-buttons"],items:[{children:"Clear All",onClick:s},{children:"Clear All Old",onClick:p}]})]})}const Wc=$e.create(e=>{const t=en();return a.jsx(_o,{...e,visible:t.visible,onClose:()=>{t.hide()},afterClose:()=>{t.remove()},children:a.jsx(Zo,{})})}),Gc=(e,t)=>({id:"workspaces-section",title:"Workspaces",items:e.map(n=>({...n,type:Ne.WORKSPACE,isOpen:t[n.title]?.length>0,contextMenuActions:io})).sort((n,r)=>n.title.localeCompare(r.title))}),qo=()=>{const e=Da(),t=La(),n=po(),r=mo(),o=Gc(e,t),i=s=>{const{item:c,modifier:l,selectedContextMenuActionName:p}=s;if(!p)return n(c.id,l).catch(u=>{console.error("Failed to restore workspace",{error:u})});r(c,p).catch(u=>{console.error("Failed to execute workspace action",{error:u})})};return a.jsx(Jt,{config:o,onItemClick:i})};$e.register("user-profile",ms);$e.register("notifications",Wc);function zo(e){const{open:t,setOpen:n,onLogout:r,className:o,components:i,user:s,...c}=e,[l,p]=y.useState(""),u=y.useRef(null);y.useEffect(()=>{if(t){u.current?.focus();return}p(""),$e.hide("user-profile"),$e.hide("notifications")},[t]);const g=m=>m.dataset.modal?m.dataset.modal:m.parentElement?g(m.parentNode):"",f=m=>{m.preventDefault();const O=g(m.target);O&&$e.show(O,O==="user-profile"?{onLogout:r,user:s}:void 0)},h=m=>{p(m.target.value)},v=()=>{p("")},d=a.jsx(Ka,{children:a.jsx("ul",{children:i?.sections||a.jsxs(a.Fragment,{children:[a.jsx(Oo,{}),a.jsx(qo,{}),a.jsx(Co,{})]})})});return a.jsx(Za,{setOpen:n,isOpen:t,children:a.jsx($e.Provider,{children:a.jsxs("div",{className:Q(o),onClick:f,onKeyDown:m=>{Zn(m)&&f(m)},...c,children:[a.jsxs("header",{children:[a.jsx(Wo,{ref:u,searchTerm:l,onSearch:h,onClear:v}),a.jsxs("div",{className:"action-area",children:[a.jsx(fe,{size:24,name:"bell","data-modal":"notifications",tabIndex:0,"aria-label":"Notifications",role:"button"}),s?a.jsx("span",{className:"avatar","data-modal":"user-profile",role:"button",tabIndex:0,"aria-label":"Profile and Settings",children:Po(s.name||"N A")}):null]}),a.jsx(fe,{className:"btn-close g42-btn g42-btn-icon",size:16,name:"close",handleClick:()=>n(!1)})]}),a.jsx("main",{children:l.trim().length<3?d:a.jsx(Go,{searchTerm:l})}),a.jsx(Uo,{})]})})})}const Zc=({email:e,password:t,canSubmit:n,errorMessage:r,onSubmit:o,onChange:i})=>{const s=c=>{c.key==="Enter"&&(c.preventDefault(),o())};return a.jsxs(Vo,{onKeyUp:s,onSubmit:o,children:[a.jsx(Wt,{children:a.jsx(Vr,{autoFocus:!0,autoComplete:"off",type:"text",placeholder:"Email",value:e,onChange:i,className:"g42-input"})}),a.jsx(Wt,{children:a.jsx(Vr,{autoComplete:"off",type:"password",placeholder:"Password",value:t,onChange:i})}),a.jsx("div",{className:"pb-2 login-error-feedback",children:r??""}),a.jsx(_t,{disabled:!n,onClick:o,children:"SIGN IN"})]})},ir=({className:e="welcome-text text-center mb-3",text:t="Making Your Work Flow"})=>a.jsxs(a.Fragment,{children:[a.jsx("h1",{className:e,children:t}),a.jsx("p",{children:"Integrate apps, simplify user experiences and accelerate digital transformation."})]}),qc={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"},zc={loginPageLogo:qc},Yc="256px",nn=({logoSrc:e=zc.loginPageLogo.value,width:t=Yc,className:n="logo"})=>a.jsx("img",{width:t,src:e,className:n,alt:"Login logo"}),Kc=(e,t)=>{const n=t.value||"",r=n.includes("@"),o=r||!n.length?void 0:"The provided input is not a valid email";return{value:n,isValid:r,validationError:o}},Xc=(e,t)=>{const n=t.value||"",r=n.trim().length>3,o=r||!n.length?void 0:"The provided does not meet the length requirement";return{value:n,isValid:r,validationError:o}};const Jc=({onLogin:e,loginErrorMessage:t,components:n})=>{const[r,o]=y.useState(!1),[i,s]=y.useReducer(Kc,{value:"",isValid:!1}),[c,l]=y.useReducer(Xc,{value:"",isValid:!1}),{isValid:p}=i,{isValid:u}=c;y.useEffect(()=>{const m=setTimeout(()=>{o(p&&u)},250);return()=>clearTimeout(m)},[p,u]);const g=(m,O)=>{(m.target.type==="password"?l:s)({value:O})},f=m=>g(m,m.target.value),h=()=>{if(!p||!u)return;const m=i.value,O=c.value;e(m,O)},v=n?.Logo||nn,d=n?.Heading||ir;return a.jsxs(a.Fragment,{children:[a.jsx(v,{}),a.jsx(d,{}),a.jsx(Zc,{email:i.value,password:c.value,errorMessage:t??i.validationError??c.validationError,canSubmit:r,onChange:f,onSubmit:h})]})},Qc=({components:e})=>{const t=e?.Logo||nn,n=e?.Heading||ir;return a.jsxs(a.Fragment,{children:[a.jsx(t,{}),a.jsx(n,{}),a.jsx("span",{className:"loader"})]})},el=({components:e,onLogin:t})=>{const n=e?.Logo||nn,r=e?.Heading||ir;return a.jsxs(a.Fragment,{children:[a.jsx(n,{}),a.jsx(r,{}),a.jsx(Vo,{children:a.jsx(Qt,{onClick:t,className:"g42-btn-primary",children:"Log In"})})]})},tl="_workspaceLogo_133yn_1",Gr={workspaceLogo:tl,"launchpad-popup":"_launchpad-popup_133yn_9","slide-in":"_slide-in_133yn_32"},Yo=e=>{const[t,n]=y.useState(!1),r=y.useRef(null),o=y.useRef(null),{icon:i,children:s}=e;return y.useEffect(()=>{if(!t)return;const c=p=>{const u=p.target!==r.current&&!r.current?.contains(p.target);!(p.target===o.current||o.current?.contains(p.target))&&u&&n(!1)},l=()=>{document.activeElement?.nodeName==="IFRAME"&&n(!1)};return document.addEventListener("mouseup",c,!0),window.addEventListener("blur",l,!0),()=>{document.removeEventListener("mouseup",c,!0),window.removeEventListener("blur",l,!0)}},[t]),a.jsxs("div",{ref:r,children:[a.jsx("button",{"aria-label":"Launchpad",onClick:()=>n(c=>!c),className:`g42-logo ${t===!0?"active":""}`,ref:o,children:i}),a.jsx("div",{children:a.jsx("div",{className:Q(Gr["launchpad-popup"],{[Gr["slide-in"]]:t}),children:s({open:t,setOpen:n})})})]})},nl=e=>{const{icon:t,components:n,onLogout:r,user:o}=e;return a.jsx(Yo,{icon:t,children:({open:i,setOpen:s})=>a.jsx(zo,{open:i,setOpen:s,user:o,onLogout:r,components:n})})},rl=e=>a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:222,height:130,fill:"none",...e,children:[a.jsx("g",{filter:"url(#a)",children:a.jsx("path",{fill:"url(#b)",d:"M16 24h190v98a6 6 0 0 1-6 6H22a6 6 0 0 1-6-6V24Z"})}),a.jsx("path",{fill:"#3C3E3F",d:"M16 24h190V7a6 6 0 0 0-6-6H22a6 6 0 0 0-6 6v17Z"}),a.jsx("path",{stroke:"url(#c)",d:"M16 23.5h189"}),a.jsx("path",{fill:"#fff",fillOpacity:.3,d:"M178.172 15.343a2.171 2.171 0 1 0 0-4.342 2.171 2.171 0 0 0 0 4.342ZM186.258 15.343a2.171 2.171 0 1 0 .001-4.343 2.171 2.171 0 0 0-.001 4.343Z"}),a.jsx("path",{fill:"#F0F6FE",d:"M194.344 15.343a2.171 2.171 0 1 0 .001-4.343 2.171 2.171 0 0 0-.001 4.343Z"}),a.jsx("rect",{width:75,height:75,x:73.5,y:33.5,stroke:"#9DA2A5",strokeDasharray:"1 12",rx:37.5}),a.jsx("rect",{width:69,height:24,x:127,y:64,fill:"#3C3E3F",rx:2}),a.jsx("path",{fill:"#2479E9",d:"M139 72a4 4 0 1 0 0 8 4 4 0 0 0 0-8Z"}),a.jsx("rect",{width:39,height:8,x:148,y:72,fill:"#D9D9D9",fillOpacity:.1,rx:4}),a.jsx("rect",{width:69,height:24,x:127,y:92,fill:"#3C3E3F",rx:2}),a.jsx("path",{fill:"#36A86B",d:"M139 100a4 4 0 1 0 0 8 4 4 0 0 0 0-8Z"}),a.jsx("rect",{width:11,height:8,x:148,y:100,fill:"#D9D9D9",fillOpacity:.1,rx:4}),a.jsx("rect",{width:18,height:8,x:164,y:100,fill:"#D9D9D9",fillOpacity:.1,rx:4}),a.jsx("rect",{width:66,height:66,x:78,y:38,fill:"#36AA6C",rx:33}),a.jsx("path",{fill:"#fff",d:"M110.25 59.75c0-.375.328-.75.75-.75.375 0 .75.375.75.75v.797c3.75.375 6.75 3.562 6.75 7.453v1.406c0 2.016.797 3.985 2.25 5.438l.141.14c.375.375.609.938.609 1.454a2.1 2.1 0 0 1-2.109 2.109h-16.829c-1.171-.047-2.062-.938-2.062-2.11 0-.562.188-1.078.609-1.453l.094-.14c1.453-1.453 2.297-3.422 2.297-5.438V68a7.484 7.484 0 0 1 6.75-7.453v-.797ZM111 62c-3.328 0-6 2.719-6 6v1.406a9.227 9.227 0 0 1-2.719 6.516l-.14.094a.755.755 0 0 0-.141.421c0 .329.234.563.562.563h16.829c.328 0 .609-.234.609-.563 0-.14-.094-.28-.188-.421l-.14-.094a9.258 9.258 0 0 1-2.719-6.563V68c0-3.281-2.672-6-6-6H111Zm-1.453 18.516c.234.609.797.984 1.453.984.609 0 1.172-.375 1.406-.984.141-.375.563-.61.938-.47.375.141.609.563.468.985A2.99 2.99 0 0 1 111 83c-1.312 0-2.438-.797-2.859-1.969a.785.785 0 0 1 .468-.984c.375-.14.797.094.938.469Z"}),a.jsx("rect",{width:191,height:128,x:15.5,y:.5,stroke:"url(#d)",strokeMiterlimit:10,rx:6.5}),a.jsxs("defs",{children:[a.jsxs("linearGradient",{id:"b",x1:39.152,x2:71.862,y1:30.346,y2:129.753,gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{stopColor:"#383838"}),a.jsx("stop",{offset:1,stopColor:"#1D1D1D"})]}),a.jsxs("linearGradient",{id:"c",x1:9.298,x2:205,y1:24,y2:24,gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{stopColor:"#5F5F5F"}),a.jsx("stop",{offset:1,stopColor:"#5F5F5F",stopOpacity:0})]}),a.jsxs("linearGradient",{id:"d",x1:34.959,x2:127.671,y1:39.954,y2:146.801,gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{stopColor:"#5F5F5F"}),a.jsx("stop",{offset:0,stopColor:"#575757"}),a.jsx("stop",{offset:1,stopColor:"#2C2C2C"})]}),a.jsxs("filter",{id:"a",width:222,height:136,x:0,y:15,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[a.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),a.jsx("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),a.jsx("feOffset",{dy:7}),a.jsx("feGaussianBlur",{stdDeviation:8}),a.jsx("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),a.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_816_102831"}),a.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_816_102831",result:"shape"})]})]})]}),ol=e=>a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:182,height:121,fill:"none",...e,children:[a.jsx("path",{fill:"url(#a)",d:"M114.092 103.689h-46.36v11.541h46.36v-11.541Z"}),a.jsx("path",{fill:"#828589",d:"M134.371 115.23H47.446v5.771h86.925v-5.771Z"}),a.jsx("rect",{width:180.555,height:103.984,x:.723,fill:"url(#b)",rx:8}),a.jsx("rect",{width:167,height:90,x:7.5,y:7,fill:"#000",fillOpacity:.4,rx:4}),a.jsxs("g",{filter:"url(#c)",children:[a.jsx("rect",{width:102,height:56,x:40,y:24,fill:"url(#d)",rx:6}),a.jsx("rect",{width:86,height:8,x:48,y:44.5,fill:"#D9D9D9",fillOpacity:.1,rx:4}),a.jsx("rect",{width:41,height:8,x:48,y:59.5,fill:"#fff",fillOpacity:.14,rx:4}),a.jsx("rect",{width:41,height:8,x:93,y:59.5,fill:"#fff",fillOpacity:.3,rx:4}),a.jsx("rect",{width:8,height:8,x:126,y:31,fill:"#DE2122",rx:4}),a.jsx("path",{fill:"#fff",d:"m131.878 33.683-1.31 1.31 1.31 1.324a.384.384 0 0 1 0 .561.384.384 0 0 1-.561 0l-1.311-1.31-1.323 1.31a.384.384 0 0 1-.561 0 .384.384 0 0 1 0-.561l1.31-1.323-1.31-1.31a.384.384 0 0 1 0-.562.384.384 0 0 1 .561 0l1.323 1.31 1.311-1.31a.384.384 0 0 1 .561 0 .384.384 0 0 1 0 .561Z"}),a.jsx("rect",{width:101,height:55,x:40.5,y:24.5,stroke:"url(#e)",strokeMiterlimit:10,rx:5.5})]}),a.jsxs("defs",{children:[a.jsxs("linearGradient",{id:"a",x1:90.912,x2:90.912,y1:103.689,y2:115.23,gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{stopColor:"gray"}),a.jsx("stop",{offset:1,stopColor:"#56585D"})]}),a.jsxs("linearGradient",{id:"b",x1:91,x2:91,y1:0,y2:103.984,gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{stopColor:"gray"}),a.jsx("stop",{offset:1,stopColor:"#56585D"})]}),a.jsxs("linearGradient",{id:"d",x1:52.429,x2:70.085,y1:27.417,y2:80.913,gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{stopColor:"#313131"}),a.jsx("stop",{offset:1,stopColor:"#1B1B1B"})]}),a.jsxs("linearGradient",{id:"e",x1:50.178,x2:89.211,y1:41.176,y2:95.944,gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{stopColor:"#5F5F5F"}),a.jsx("stop",{offset:0,stopColor:"#575757"}),a.jsx("stop",{offset:1,stopColor:"#2C2C2C"})]}),a.jsxs("filter",{id:"c",width:134,height:88,x:24,y:15,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[a.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),a.jsx("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),a.jsx("feOffset",{dy:7}),a.jsx("feGaussianBlur",{stdDeviation:8}),a.jsx("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),a.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_2206_37806"}),a.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_2206_37806",result:"shape"})]})]})]}),il=e=>a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:196,height:130,fill:"none",...e,children:[a.jsx("g",{filter:"url(#a)",children:a.jsx("path",{fill:"url(#b)",d:"M16 52.406h164v70a6 6 0 0 1-6 6H22a6 6 0 0 1-6-6v-70Z"})}),a.jsx("path",{fill:"#3C3E3F",d:"M16 52.406h164v-17a6 6 0 0 0-6-6H22a6 6 0 0 0-6 6v17Z"}),a.jsx("path",{stroke:"url(#c)",d:"M16 51.906h163"}),a.jsx("path",{fill:"#fff",fillOpacity:.3,d:"M152.172 43.75a2.171 2.171 0 1 0 0-4.343 2.171 2.171 0 0 0 0 4.342ZM160.258 43.75a2.172 2.172 0 1 0 0-4.344 2.172 2.172 0 0 0 0 4.343Z"}),a.jsx("path",{fill:"#F0F6FE",d:"M168.344 43.75a2.172 2.172 0 1 0 0-4.344 2.172 2.172 0 0 0 0 4.343Z"}),a.jsx("rect",{width:165.324,height:99.595,x:15.5,y:28.906,stroke:"url(#d)",strokeMiterlimit:10,rx:6.5}),a.jsx("path",{fill:"url(#e)",d:"M96.469 13.858c1.347-2.334 4.717-2.334 6.064 0l58.373 101.105c1.348 2.335-.337 5.253-3.032 5.253H41.128c-2.696 0-4.38-2.918-3.033-5.253L96.47 13.858Z"}),a.jsx("path",{fill:"#fff",d:"M97.705 88.342a1 1 0 0 1-1-.975l-.826-33.968a1 1 0 0 1 1-1.024h6.267a1 1 0 0 1 1 1.024l-.827 33.968a1 1 0 0 1-1 .975h-4.614Zm2.526 15.54c-1.508 0-2.748-.462-3.72-1.386-.925-.973-1.387-2.116-1.387-3.43 0-1.361.462-2.504 1.386-3.428.973-.973 2.213-1.46 3.721-1.46 1.41 0 2.578.487 3.502 1.46.973.924 1.459 2.067 1.459 3.429 0 1.313-.486 2.456-1.459 3.429-.924.924-2.092 1.386-3.502 1.386Z"}),a.jsx("rect",{width:1,height:3,x:55,y:44,fill:"#9DA2A5",rx:.5}),a.jsx("rect",{width:1,height:3,x:55,y:50,fill:"#9DA2A5",rx:.5}),a.jsx("rect",{width:1,height:3,x:55,y:56,fill:"#9DA2A5",rx:.5}),a.jsx("rect",{width:40.255,height:40.255,x:35,fill:"url(#f)",rx:20.128}),a.jsx("path",{fill:"#fff",d:"M61.128 14.127v8h3v-7c0-.531-.469-1-1-1h-2Zm-1 0h-3v4h3v-4Zm-4 0h-2v8h2v-8Zm-3 0h-3v4h3v-4Zm-4 0h-2c-.563 0-1 .469-1 1v7h3v-8Zm-3 9v2c0 .563.437 1 1 1h7.5v-3h-8.5Zm9.5 3h7.5c.531 0 1-.438 1-1v-2h-8.5v3Zm-10.5-11c0-1.094.875-2 2-2h16c1.094 0 2 .906 2 2v10c0 1.125-.906 2-2 2h-16c-1.125 0-2-.875-2-2v-10Zm8 7v-3h-3v3h3Zm7-3h-3v3h3v-3Z"}),a.jsx("rect",{width:15.096,height:15.096,x:62.676,y:26.418,fill:"#DE2122",rx:7.548}),a.jsx("path",{fill:"#fff",d:"m72.102 32.65-1.31 1.31 1.31 1.323a.385.385 0 0 1 0 .562.385.385 0 0 1-.562 0l-1.31-1.31-1.323 1.31a.385.385 0 0 1-.562 0 .385.385 0 0 1 0-.562l1.31-1.322-1.31-1.31a.385.385 0 0 1 0-.563.385.385 0 0 1 .562 0l1.323 1.31 1.31-1.31a.385.385 0 0 1 .562 0 .385.385 0 0 1 0 .562Z"}),a.jsx("rect",{width:40.255,height:40.255,x:35,y:63,fill:"url(#g)",rx:20.128}),a.jsx("path",{fill:"#fff",d:"M54.628 75.627c0-.25.219-.5.5-.5.25 0 .5.25.5.5v.531c2.5.25 4.5 2.375 4.5 4.969v.938c0 1.343.531 2.656 1.5 3.624l.094.094c.25.25.406.625.406.969a1.4 1.4 0 0 1-1.406 1.406h-11.22c-.78-.031-1.374-.625-1.374-1.406 0-.375.125-.719.406-.969l.063-.094c.968-.968 1.53-2.28 1.53-3.624v-.938a4.99 4.99 0 0 1 4.5-4.969v-.531Zm.5 1.5c-2.219 0-4 1.813-4 4v.938a6.152 6.152 0 0 1-1.813 4.343l-.093.063a.504.504 0 0 0-.094.281c0 .219.156.375.375.375h11.219c.218 0 .406-.156.406-.375 0-.094-.063-.188-.125-.281l-.094-.063a6.17 6.17 0 0 1-1.812-4.375v-.906c0-2.188-1.782-4-4-4h.03Zm-.969 12.344c.156.406.531.656.969.656.406 0 .781-.25.937-.656.094-.25.375-.407.625-.313.25.094.407.375.313.656a1.994 1.994 0 0 1-1.875 1.313 2.005 2.005 0 0 1-1.906-1.313.524.524 0 0 1 .312-.656c.25-.094.531.063.625.313Z"}),a.jsx("rect",{width:15.096,height:15.096,x:62.678,y:89.418,fill:"#DE2122",rx:7.548}),a.jsx("path",{fill:"#fff",d:"m72.104 95.65-1.31 1.31 1.31 1.324a.385.385 0 0 1 0 .561.385.385 0 0 1-.562 0l-1.31-1.31-1.323 1.31a.385.385 0 0 1-.562 0 .385.385 0 0 1 0-.561l1.31-1.323-1.31-1.31a.385.385 0 0 1 0-.563.385.385 0 0 1 .562 0l1.323 1.31 1.31-1.31a.385.385 0 0 1 .562 0 .385.385 0 0 1 0 .562Z"}),a.jsxs("defs",{children:[a.jsxs("linearGradient",{id:"b",x1:35.984,x2:56.797,y1:57.043,y2:131.755,gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{stopColor:"#383838"}),a.jsx("stop",{offset:1,stopColor:"#1D1D1D"})]}),a.jsxs("linearGradient",{id:"c",x1:10.22,x2:179,y1:52.406,y2:52.406,gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{stopColor:"#5F5F5F"}),a.jsx("stop",{offset:1,stopColor:"#5F5F5F",stopOpacity:0})]}),a.jsxs("linearGradient",{id:"d",x1:32.397,x2:102.886,y1:59.648,y2:150.147,gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{stopColor:"#5F5F5F"}),a.jsx("stop",{offset:0,stopColor:"#575757"}),a.jsx("stop",{offset:1,stopColor:"#2C2C2C"})]}),a.jsxs("linearGradient",{id:"e",x1:99.501,x2:246.864,y1:8.606,y2:161.85,gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{stopColor:"#F4B40F"}),a.jsx("stop",{offset:1,stopColor:"#EFAA23"})]}),a.jsxs("linearGradient",{id:"f",x1:55.128,x2:55.128,y1:0,y2:40.255,gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{stopColor:"gray"}),a.jsx("stop",{offset:1,stopColor:"#56585D"})]}),a.jsxs("linearGradient",{id:"g",x1:55.128,x2:55.128,y1:63,y2:103.255,gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{stopColor:"gray"}),a.jsx("stop",{offset:1,stopColor:"#56585D"})]}),a.jsxs("filter",{id:"a",width:196,height:108,x:0,y:43.406,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[a.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),a.jsx("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),a.jsx("feOffset",{dy:7}),a.jsx("feGaussianBlur",{stdDeviation:8}),a.jsx("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),a.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_834_102897"}),a.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_834_102897",result:"shape"})]})]})]}),al=e=>a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:247,height:143,fill:"none",...e,children:[a.jsx("path",{fill:"url(#a)",d:"M144.369 125.689h-46.36v11.541h46.36v-11.541Z"}),a.jsx("path",{fill:"#828589",d:"M164.648 137.23H77.724v5.771h86.924v-5.771Z"}),a.jsx("rect",{width:180.555,height:103.984,x:31,y:22,fill:"url(#b)",rx:8}),a.jsx("rect",{width:167,height:90,x:37.777,y:29,fill:"#000",fillOpacity:.4,rx:4}),a.jsxs("g",{filter:"url(#c)",children:[a.jsx("path",{fill:"url(#d)",d:"M187.138 9h-67.22A2.918 2.918 0 0 0 117 11.918v42.756a2.918 2.918 0 0 0 2.918 2.918h67.22a2.918 2.918 0 0 0 2.918-2.918V11.918A2.918 2.918 0 0 0 187.138 9Z"}),a.jsx("path",{stroke:"url(#e)",strokeMiterlimit:10,d:"M119.918 9.5h67.22a2.418 2.418 0 0 1 2.418 2.418v42.756a2.418 2.418 0 0 1-2.418 2.418h-67.22a2.418 2.418 0 0 1-2.418-2.418V11.918a2.418 2.418 0 0 1 2.418-2.418Z"})]}),a.jsx("path",{fill:"#fff",fillOpacity:.3,d:"M161.871 22.42a2.171 2.171 0 1 0 0-4.343 2.171 2.171 0 0 0 0 4.342ZM169.958 22.42a2.171 2.171 0 1 0 0-4.343 2.171 2.171 0 0 0 0 4.342Z"}),a.jsx("path",{fill:"#F0F6FE",d:"M178.043 22.42a2.172 2.172 0 1 0 0-4.345 2.172 2.172 0 0 0 0 4.344Z"}),a.jsx("path",{fill:"#9DA2A5",d:"M153.404 55.547v5.836a.486.486 0 1 1-.972 0v-5.836a.486.486 0 1 1 .972 0ZM152.92 67.827l-3.255-3.255a.486.486 0 0 0-.688.688l3.599 3.6c.191.19.498.19.688 0l3.593-3.594a.485.485 0 1 0-.687-.688l-3.25 3.25ZM153.404 49.322v-5.836a.486.486 0 1 0-.972 0v5.836a.486.486 0 1 0 .972 0Z"}),a.jsx("path",{fill:"#3BB272",d:"M149 35a4 4 0 1 0 8 0 4 4 0 0 0-8 0Z"}),a.jsx("path",{fill:"#fff",fillOpacity:.1,d:"M105.723 39H53.277A2.28 2.28 0 0 0 51 41.282v33.436A2.28 2.28 0 0 0 53.277 77h52.446A2.28 2.28 0 0 0 108 74.718V41.282A2.28 2.28 0 0 0 105.723 39Z"}),a.jsx("path",{stroke:"#C8C8C8",strokeDasharray:"9 9",strokeLinecap:"round",strokeMiterlimit:10,strokeOpacity:.2,d:"M100.853 39a.5.5 0 0 0 .5.5h4.37c.98 0 1.777.797 1.777 1.782v4.18a.5.5 0 0 0 .5.5v7.358a.5.5 0 0 0-.5.5v8.36a.5.5 0 0 0 .5.5v7.358a.5.5 0 0 0-.5.5v4.18a1.78 1.78 0 0 1-1.777 1.782h-4.37a.5.5 0 0 0-.5.5h-7.741a.5.5 0 0 0-.5-.5H83.87a.5.5 0 0 0-.5.5h-7.742a.5.5 0 0 0-.5-.5h-8.74a.5.5 0 0 0-.5.5h-7.742a.5.5 0 0 0-.5-.5h-4.37a1.78 1.78 0 0 1-1.777-1.782v-4.18a.5.5 0 0 0-.5-.5V62.68a.5.5 0 0 0 .5-.5v-8.36a.5.5 0 0 0-.5-.5v-7.358a.5.5 0 0 0 .5-.5v-4.18a1.78 1.78 0 0 1 1.777-1.782h4.37a.5.5 0 0 0 .5-.5h7.741a.5.5 0 0 0 .5.5h8.741a.5.5 0 0 0 .5-.5h7.742a.5.5 0 0 0 .5.5h8.74a.5.5 0 0 0 .5-.5h7.742Z"}),a.jsx("path",{fill:"#fff",fillOpacity:.1,d:"M194.843 75h-49.686A2.16 2.16 0 0 0 143 77.162v31.676a2.16 2.16 0 0 0 2.157 2.162h49.686a2.16 2.16 0 0 0 2.157-2.162V77.162A2.16 2.16 0 0 0 194.843 75Z"}),a.jsx("path",{stroke:"#C8C8C8",strokeDasharray:"9 9",strokeLinecap:"round",strokeMiterlimit:10,strokeOpacity:.2,d:"M190.203 75a.5.5 0 0 0 .5.5h4.14a1.66 1.66 0 0 1 1.657 1.662v3.96a.5.5 0 0 0 .5.5v6.918a.5.5 0 0 0-.5.5v7.92a.5.5 0 0 0 .5.5v6.919a.5.5 0 0 0-.5.5v3.959a1.66 1.66 0 0 1-1.657 1.662h-4.14a.5.5 0 0 0-.5.5h-7.281a.5.5 0 0 0-.5-.5h-8.281a.5.5 0 0 0-.5.5h-7.282a.5.5 0 0 0-.5-.5h-8.281a.5.5 0 0 0-.5.5h-7.281a.5.5 0 0 0-.5-.5h-4.14a1.66 1.66 0 0 1-1.657-1.662v-3.959a.5.5 0 0 0-.5-.5v-6.92a.5.5 0 0 0 .5-.5V89.04a.5.5 0 0 0-.5-.5v-6.919a.5.5 0 0 0 .5-.5v-3.96a1.66 1.66 0 0 1 1.657-1.661h4.14a.5.5 0 0 0 .5-.5h7.281a.5.5 0 0 0 .5.5h8.281a.5.5 0 0 0 .5-.5h7.282a.5.5 0 0 0 .5.5h8.281a.5.5 0 0 0 .5-.5h7.281Z"}),a.jsxs("g",{filter:"url(#f)",children:[a.jsx("path",{fill:"url(#g)",d:"M228.294 65h-53.951a2.342 2.342 0 0 0-2.342 2.342v34.316a2.343 2.343 0 0 0 2.342 2.342h53.951a2.343 2.343 0 0 0 2.342-2.342V67.342A2.342 2.342 0 0 0 228.294 65Z"}),a.jsx("path",{stroke:"url(#h)",strokeMiterlimit:10,d:"M174.343 65.5h53.951c1.017 0 1.842.825 1.842 1.842v34.316a1.842 1.842 0 0 1-1.842 1.842h-53.951a1.842 1.842 0 0 1-1.842-1.842V67.342c0-1.017.825-1.842 1.842-1.842Z"})]}),a.jsx("path",{fill:"#fff",fillOpacity:.3,d:"M208.014 75.77a1.743 1.743 0 1 0 0-3.484 1.743 1.743 0 0 0 0 3.485ZM214.505 75.77a1.743 1.743 0 1 0 0-3.484 1.743 1.743 0 0 0 0 3.485Z"}),a.jsx("path",{fill:"#F0F6FE",d:"M220.995 75.77a1.743 1.743 0 1 0 0-3.486 1.743 1.743 0 0 0 0 3.487Z"}),a.jsx("path",{fill:"#9DA2A5",d:"M172.454 86.568h-5.836a.486.486 0 1 1 0-.972h5.836a.486.486 0 1 1 0 .972ZM160.175 86.084l3.255-3.255a.486.486 0 1 0-.688-.688l-3.599 3.6a.486.486 0 0 0 0 .687l3.593 3.594a.486.486 0 1 0 .688-.688l-3.249-3.25ZM176.486 86.568h5.836a.487.487 0 1 0 0-.972h-5.836a.486.486 0 1 0 0 .972ZM186.486 86.568h5.836a.487.487 0 1 0 0-.972h-5.836a.486.486 0 1 0 0 .972Z"}),a.jsx("path",{fill:"url(#i)",d:"M200.891 82.242a3.89 3.89 0 1 0 0 7.782 3.89 3.89 0 0 0 0-7.782Z"}),a.jsxs("g",{filter:"url(#j)",children:[a.jsx("path",{fill:"url(#k)",d:"M86.138 62h-67.22A2.918 2.918 0 0 0 16 64.918v42.756a2.918 2.918 0 0 0 2.918 2.918h67.22a2.918 2.918 0 0 0 2.918-2.918V64.918A2.918 2.918 0 0 0 86.138 62Z"}),a.jsx("path",{stroke:"url(#l)",strokeMiterlimit:10,d:"M18.918 62.5h67.22a2.418 2.418 0 0 1 2.418 2.418v42.756a2.418 2.418 0 0 1-2.418 2.418h-67.22a2.418 2.418 0 0 1-2.418-2.418V64.918a2.418 2.418 0 0 1 2.418-2.418Z"})]}),a.jsx("path",{fill:"#fff",fillOpacity:.3,d:"M60.87 75.42a2.172 2.172 0 1 0 0-4.344 2.172 2.172 0 0 0 0 4.343ZM68.958 75.42a2.172 2.172 0 1 0 0-4.344 2.172 2.172 0 0 0 0 4.343Z"}),a.jsx("path",{fill:"#F0F6FE",d:"M77.043 75.42a2.172 2.172 0 1 0 0-4.344 2.172 2.172 0 0 0 0 4.343Z"}),a.jsx("path",{fill:"#9DA2A5",d:"M101.546 88.596h5.836a.486.486 0 1 1 0 .972h-5.836a.486.486 0 1 1 0-.972ZM80.158 88.596h5.836a.486.486 0 1 1 0 .972h-5.836a.486.486 0 1 1 0-.972ZM96.71 88.596h-5.836a.486.486 0 1 0 0 .972h5.836a.486.486 0 1 0 0-.972ZM59.158 88.596h5.836a.486.486 0 1 1 0 .972h-5.836a.486.486 0 1 1 0-.972ZM113.825 89.08l-3.255 3.255a.486.486 0 1 0 .688.688l3.599-3.6a.486.486 0 0 0 0-.687l-3.593-3.593a.486.486 0 1 0-.688.687l3.249 3.25ZM75.322 88.596h-5.836a.486.486 0 1 0 0 .972h5.836a.486.486 0 1 0 0-.972Z"}),a.jsx("path",{fill:"#2479E9",d:"M50 93a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z"}),a.jsxs("defs",{children:[a.jsxs("linearGradient",{id:"a",x1:121.189,x2:121.189,y1:125.689,y2:137.23,gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{stopColor:"gray"}),a.jsx("stop",{offset:1,stopColor:"#56585D"})]}),a.jsxs("linearGradient",{id:"b",x1:121.277,x2:121.277,y1:22,y2:125.984,gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{stopColor:"gray"}),a.jsx("stop",{offset:1,stopColor:"#56585D"})]}),a.jsxs("linearGradient",{id:"d",x1:125.902,x2:143.647,y1:11.965,y2:56.345,gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{stopColor:"#383838"}),a.jsx("stop",{offset:1,stopColor:"#1D1D1D"})]}),a.jsxs("linearGradient",{id:"e",x1:124.29,x2:159.738,y1:23.904,y2:64.958,gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{stopColor:"#5F5F5F"}),a.jsx("stop",{offset:0,stopColor:"#575757"}),a.jsx("stop",{offset:1,stopColor:"#2C2C2C"})]}),a.jsxs("linearGradient",{id:"g",x1:179.146,x2:193.388,y1:67.38,y2:102.999,gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{stopColor:"#383838"}),a.jsx("stop",{offset:1,stopColor:"#1D1D1D"})]}),a.jsxs("linearGradient",{id:"h",x1:177.852,x2:206.302,y1:76.962,y2:109.912,gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{stopColor:"#5F5F5F"}),a.jsx("stop",{offset:0,stopColor:"#575757"}),a.jsx("stop",{offset:1,stopColor:"#2C2C2C"})]}),a.jsxs("linearGradient",{id:"i",x1:200.891,x2:193.185,y1:90.023,y2:82.01,gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{stopColor:"#F4B40F"}),a.jsx("stop",{offset:1,stopColor:"#EFAA23"})]}),a.jsxs("linearGradient",{id:"k",x1:24.902,x2:42.647,y1:64.965,y2:109.345,gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{stopColor:"#383838"}),a.jsx("stop",{offset:1,stopColor:"#1D1D1D"})]}),a.jsxs("linearGradient",{id:"l",x1:23.29,x2:58.738,y1:76.904,y2:117.958,gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{stopColor:"#5F5F5F"}),a.jsx("stop",{offset:0,stopColor:"#575757"}),a.jsx("stop",{offset:1,stopColor:"#2C2C2C"})]}),a.jsxs("filter",{id:"c",width:105.056,height:80.592,x:101,y:0,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[a.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),a.jsx("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),a.jsx("feOffset",{dy:7}),a.jsx("feGaussianBlur",{stdDeviation:8}),a.jsx("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),a.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_807_102718"}),a.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_807_102718",result:"shape"})]}),a.jsxs("filter",{id:"f",width:90.635,height:71,x:156.001,y:56,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[a.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),a.jsx("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),a.jsx("feOffset",{dy:7}),a.jsx("feGaussianBlur",{stdDeviation:8}),a.jsx("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),a.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_807_102718"}),a.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_807_102718",result:"shape"})]}),a.jsxs("filter",{id:"j",width:105.056,height:80.592,x:0,y:53,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[a.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),a.jsx("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),a.jsx("feOffset",{dy:7}),a.jsx("feGaussianBlur",{stdDeviation:8}),a.jsx("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),a.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_807_102718"}),a.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_807_102718",result:"shape"})]})]})]}),Zt={"window-management":{heading:"Allow Window Management",description:"io.Connect Browser requires permission to arrange windows on your desktop.",guidelines:{default:"To allow window management, click the icon to the left of the address bar."},label:"Allow window management",Image:al,openPermissionsPrompt:({handleDeferredPermission:e,handlePermissionsPromptClose:t})=>{window.getScreenDetails().catch(async()=>{const{state:n}=await navigator.permissions.query({name:"window-management"});n==="prompt"&&e()}).finally(t)}},notifications:{heading:"Allow Browser Notifications",description:`io.Connect Browser requires permission to send notifications to the desktop.
42
+ This won't allow any other browser notifications.`,guidelines:{default:"To allow browser notifications, click the icon to the left of the address bar.",edge:'To allow browser notifications, click the icon to the left of the address bar, or the "Bell" icon to the right of the address bar.'},label:"Allow browser notifications",Image:rl,openPermissionsPrompt:({handleDeferredPermission:e,handlePermissionsPromptClose:t})=>{Notification.requestPermission().then(async()=>{const{state:n}=await navigator.permissions.query({name:"notifications"});n==="prompt"&&e()}).finally(t)}}},sl={edgeNotificationsPermissionTimeout:15e3};const ar=({children:e,description:t,heading:n,Image:r,title:o})=>a.jsxs("div",{className:"permissions-card",children:[o&&a.jsx("h1",{className:"permissions-card-title",children:o}),r&&a.jsx("div",{className:"permissions-card-image",children:a.jsx(r,{})}),n&&a.jsx("h3",{className:"permissions-card-heading",children:n}),a.jsx("p",{className:"permissions-card-description",children:t}),e]}),cl=({isActiveItem:e=()=>!1,permissionStatuses:t})=>a.jsx("ul",{className:"permissions-list",children:Object.entries(Zt).map(([n,r],o)=>{const i=e(n),s=t.find(({name:c})=>c===n);return a.jsxs("li",{className:Q("permissions-list-item",i&&"active"),children:[a.jsx("div",{children:s?.state==="granted"?a.jsx("span",{className:"icon-check"}):a.jsxs(a.Fragment,{children:[a.jsx("span",{className:i?"icon-arrow":""}),a.jsxs("span",{children:[o+1,"."]})]})}),r.label]},n)})}),ll=({onReopenPromptClick:e})=>{const t=a.jsxs(a.Fragment,{children:['Please, click "Allow" when the browser prompt appears.',a.jsx("br",{}),a.jsxs("strong",{children:["If a browser prompt doesn't appear, click the icon to the left of the",a.jsx("br",{}),"address bar to manually grant the permission."]})]});return a.jsx(ar,{description:t,Image:ol,title:"Something went wrong!",children:a.jsx(_t,{className:"g42-btn-primary permissions-prompt-button",onClick:e,children:"Reopen the Prompt"})})},ul=["window-management","notifications"],fl=()=>Promise.all(ul.map(e=>navigator.permissions.query({name:e}))),Ko=y.createContext(void 0),Nt=()=>{const e=y.useContext(Ko);if(e===void 0)throw new Error("useGlue42Home must be used within a Glue42HomeProvider");return e},dl=({children:e})=>{const[t,n]=y.useState([]),r=t.length===0,o={isDenied:!r&&t.some(({state:s})=>s==="denied"),isLoading:r,isSetupCompleted:!r&&t.every(({state:s})=>s==="granted"),statuses:t},i=y.useRef(!1);return y.useEffect(()=>{let s=!1;const c=fl().then(l=>{if(s)return;n(l);const p=[];let u=!1;return l.forEach((g,f)=>{const h=v=>{if(s||!v.target||u)return;const d=v.target;if(d.state==="prompt"||d.state==="denied"&&i.current)return u=!0,window.location.reload();n(O=>[...O.slice(0,f),d,...O.slice(f+1)])};g.addEventListener("change",h),p.push(()=>g.removeEventListener("change",h))}),p});return()=>{s=!0,c.then(l=>{l?.forEach(p=>p())})}},[]),y.useEffect(()=>{i.current=o.isSetupCompleted},[o.isSetupCompleted]),a.jsx(Ko.Provider,{value:{permission:o},children:e})},Xo=({deniedPermissionName:e})=>{const{permission:t}=Nt(),r=go().name?.toLowerCase()||"",o=Object.values(t.statuses).filter(s=>s.name===e||s.state==="denied"),i=a.jsxs(a.Fragment,{children:["The current browser settings block critical functionalities of io.Connect Browser.",a.jsx("br",{}),"To enable io.Connect Browser to operate properly, you must grant browser permissions manually."]});return a.jsx(ar,{description:i,Image:il,title:"Setup Was Unsuccessful",children:a.jsx("ul",{className:"permissions-guidelines-list",children:o.map((s,c)=>a.jsx("li",{children:Zt[s.name].guidelines[r]||Zt[s.name].guidelines.default},c))})})},pl=({edgeNotificationsPermissionTimeout:e,isNotificationsPermissionPromptOpen:t})=>{const{name:n}=go(),{permission:r}=Nt(),[o,i]=y.useState(!1);return y.useEffect(()=>{if(!t||n!=="Edge")return;const s=setTimeout(()=>i(!0),e);return()=>clearTimeout(s)},[n,e,t]),y.useEffect(()=>{if(!o)return;r.statuses.some(({name:c,state:l})=>c==="notifications"&&l==="granted")&&i(!1)},[o,r.statuses]),{hasEdgeNotificationsPermissionError:o}},hl=({settings:e})=>{const{permission:t}=Nt(),[n,r]=y.useState(!1),[o,i]=y.useState(!1),s=t.statuses.find(({state:g})=>g==="prompt"),{hasEdgeNotificationsPermissionError:c}=pl({edgeNotificationsPermissionTimeout:e.edgeNotificationsPermissionTimeout,isNotificationsPermissionPromptOpen:o&&s?.name==="notifications"});if(!s||t.isDenied)throw new Error('The "PermissionSteps" component should not be used in case there is no pending permission or there is a denied permission.');if(c)return a.jsx(Xo,{deniedPermissionName:"notifications"});const l=Zt[s.name],p=()=>{i(!0),l.openPermissionsPrompt({handleDeferredPermission:()=>r(!0),handlePermissionsPromptClose:()=>i(!1)})},u=()=>{r(!1),p()};return n?a.jsx(ll,{onReopenPromptClick:u}):a.jsxs(ar,{description:l.description,heading:l.heading,Image:l.Image,title:"First-Time User Setup",children:[a.jsx(cl,{isActiveItem:g=>g===s.name,permissionStatuses:t.statuses}),a.jsx("p",{className:"mb-12 description",children:'Click "Allow" when the prompt appears.'}),a.jsx(_t,{className:"g42-btn-primary permissions-prompt-button",disabled:o,onClick:p,children:"Open Permission Prompt"}),o&&a.jsx("span",{className:"loader"})]})},vl=({settings:e})=>{const{permission:t}=Nt();return t.isLoading?a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"mb-32",children:"Checking browser permissions ..."}),a.jsx("div",{className:"loader"})]}):t.isDenied?a.jsx(Xo,{}):a.jsx(hl,{settings:e})},ml=({components:{Logo:e=nn}={},settings:t={}})=>a.jsx("div",{className:"permissions-setup",children:a.jsxs("div",{className:"permissions-wrapper",children:[a.jsx(e,{className:"mb-32"}),a.jsx(vl,{settings:{...sl,...t}})]})});exports.ApplicationsSection=Co;exports.BaseSection=Xt;exports.BaseSectionHeader=ao;exports.BaseSectionItem=yo;exports.Button=Qt;exports.ButtonGroup=Ot;exports.ContextMenu=ro;exports.DropdownButton=qn;exports.FavoritesSection=Oo;exports.Glue42HomeProvider=dl;exports.Icon=fe;exports.ImgIcon=zn;exports.Launchpad=zo;exports.LaunchpadSlidePanel=nl;exports.LayoutSettings=Lo;exports.LayoutSettingsContainer=Uo;exports.Login=Jc;exports.LoginAuth0=el;exports.LoginLoader=Qc;exports.NotificationsPanel=Zo;exports.PermissionsSetup=ml;exports.ProfileSettings=ko;exports.SearchBar=Wo;exports.SearchResults=Go;exports.Section=Jt;exports.SettingsCard=jo;exports.SlidePanel=Yo;exports.SupportCard=So;exports.WorkspacesSection=qo;exports.useGlue42Home=Nt;
43
+ //# sourceMappingURL=index.js.map