@interopio/intent-resolver-ui 5.0.0 → 5.1.0-next.1

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.
@@ -1558,7 +1558,7 @@ function x(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"de
1558
1558
  *
1559
1559
  * This source code is licensed under the MIT license found in the
1560
1560
  * LICENSE file in the root directory of this source tree.
1561
- */mh.exports=function(){if(uh)return hh;uh=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,r=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case c:case l:case o:case r:case i:case d:return e;default:switch(e=e&&e.$$typeof){case s:case u:case m:case f:case a:return e;default:return p}}case n:return p}}}function w(e){return y(e)===l}return hh.AsyncMode=c,hh.ConcurrentMode=l,hh.ContextConsumer=s,hh.ContextProvider=a,hh.Element=t,hh.ForwardRef=u,hh.Fragment=o,hh.Lazy=m,hh.Memo=f,hh.Portal=n,hh.Profiler=r,hh.StrictMode=i,hh.Suspense=d,hh.isAsyncMode=function(e){return w(e)||y(e)===c},hh.isConcurrentMode=w,hh.isContextConsumer=function(e){return y(e)===s},hh.isContextProvider=function(e){return y(e)===a},hh.isElement=function(e){return "object"==typeof e&&null!==e&&e.$$typeof===t},hh.isForwardRef=function(e){return y(e)===u},hh.isFragment=function(e){return y(e)===o},hh.isLazy=function(e){return y(e)===m},hh.isMemo=function(e){return y(e)===f},hh.isPortal=function(e){return y(e)===n},hh.isProfiler=function(e){return y(e)===r},hh.isStrictMode=function(e){return y(e)===i},hh.isSuspense=function(e){return y(e)===d},hh.isValidElementType=function(e){return "string"==typeof e||"function"==typeof e||e===o||e===l||e===r||e===i||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===f||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===g||e.$$typeof===b||e.$$typeof===v||e.$$typeof===h)},hh.typeOf=y,hh}();var vh=mh.exports,yh={};yh[vh.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},yh[vh.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var wh="undefined"!=typeof document;var Ih=function(e,t,n){var o=e.key+"-"+t.name;(!1===n||!1===wh&&void 0!==e.compat)&&void 0===e.registered[o]&&(e.registered[o]=t.styles);};var Ch={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function xh(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Ah=/[A-Z]|^ms/g,kh=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Sh=function(e){return 45===e.charCodeAt(1)},Nh=function(e){return null!=e&&"boolean"!=typeof e},Ph=xh(function(e){return Sh(e)?e:e.replace(Ah,"-$&").toLowerCase()}),Eh=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(kh,function(e,t,n){return Bh={name:t,styles:n,next:Bh},t})}return 1===Ch[e]||Sh(e)||"number"!=typeof t||0===t?t:t+"px"};function Lh(e,t,n){if(null==n)return "";var o=n;if(void 0!==o.__emotion_styles)return o;switch(typeof n){case"boolean":return "";case"object":var i=n;if(1===i.anim)return Bh={name:i.name,styles:i.styles,next:Bh},i.name;var r=n;if(void 0!==r.styles){var a=r.next;if(void 0!==a)for(;void 0!==a;)Bh={name:a.name,styles:a.styles,next:Bh},a=a.next;return r.styles+";"}return function(e,t,n){var o="";if(Array.isArray(n))for(var i=0;i<n.length;i++)o+=Lh(e,t,n[i])+";";else for(var r in n){var a=n[r];if("object"!=typeof a){var s=a;Nh(s)&&(o+=Ph(r)+":"+Eh(r,s)+";");}else if(Array.isArray(a)&&"string"==typeof a[0]&&null==t)for(var c=0;c<a.length;c++)Nh(a[c])&&(o+=Ph(r)+":"+Eh(r,a[c])+";");else {var l=Lh(e,t,a);switch(r){case"animation":case"animationName":o+=Ph(r)+":"+l+";";break;default:o+=r+"{"+l+"}";}}}return o}(e,t,n);case"function":if(void 0!==e){var s=Bh,c=n(e);return Bh=s,Lh(e,t,c)}}return n}var Bh,Oh=/label:\s*([^\s;{]+)\s*(;|$)/g;function Th(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,i="";Bh=void 0;var r=e[0];null==r||void 0===r.raw?(o=!1,i+=Lh(n,t,r)):i+=r[0];for(var a=1;a<e.length;a++){if(i+=Lh(n,t,e[a]),o)i+=r[a];}Oh.lastIndex=0;for(var s,c="";null!==(s=Oh.exec(i));)c+="-"+s[1];var l=function(e){for(var t,n=0,o=0,i=e.length;i>=4;++o,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16);}return (((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+c;return {name:l,styles:i,next:Bh}}var Rh="undefined"!=typeof document,Gh=function(e){return e()},Fh=!!reactExports.useInsertionEffect&&reactExports.useInsertionEffect,Mh=Rh&&Fh||Gh,Dh="undefined"!=typeof document,Wh=reactExports.createContext("undefined"!=typeof HTMLElement?fh({key:"css"}):null);Wh.Provider;var Vh=function(e){return reactExports.forwardRef(function(t,n){var o=reactExports.useContext(Wh);return e(t,o,n)})};Dh||(Vh=function(e){return function(t){var n=reactExports.useContext(Wh);return null===n?(n=fh({key:"css"}),reactExports.createElement(Wh.Provider,{value:n},e(t,n))):e(t,n)}});var Hh,zh,Xh=reactExports.createContext({}),Zh={}.hasOwnProperty,jh="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Jh=function(e){var t=e.cache,n=e.serialized,i=e.isStringTag;Ih(t,n,i);var r=Mh(function(){return function(e,t,n){Ih(e,t,n);var o=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i="",r=t;do{var a=e.insert(t===r?"."+o:"",r,e.sheet,!0);wh||void 0===a||(i+=a),r=r.next;}while(void 0!==r);if(!wh&&0!==i.length)return i}}(t,n,i)});if(!Dh&&void 0!==r){for(var a,s=n.name,c=n.next;void 0!==c;)s+=" "+c.name,c=c.next;return reactExports.createElement("style",((a={})["data-emotion"]=t.key+" "+s,a.dangerouslySetInnerHTML={__html:r},a.nonce=t.sheet.nonce,a))}return null},Yh=Vh(function(e,t,n){var i=e.css;"string"==typeof i&&void 0!==t.registered[i]&&(i=t.registered[i]);var r=e[jh],a=[i],s="";"string"==typeof e.className?s=function(e,t,n){var o="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(o+=n+" ");}),o}(t.registered,a,e.className):null!=e.className&&(s=e.className+" ");var c=Th(a,void 0,reactExports.useContext(Xh));s+=t.key+"-"+c.name;var l={};for(var u in e)Zh.call(e,u)&&"css"!==u&&u!==jh&&(l[u]=e[u]);return l.className=s,n&&(l.ref=n),reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(Jh,{cache:t,serialized:c,isStringTag:"string"==typeof r}),reactExports.createElement(r,l))}),$h=Yh,_h=function(e,t){var n=arguments;if(null==t||!Zh.call(t,"css"))return reactExports.createElement.apply(void 0,n);var i=n.length,r=new Array(i);r[0]=$h,r[1]=function(e,t){var n={};for(var o in t)Zh.call(t,o)&&(n[o]=t[o]);return n[jh]=e,n}(e,t);for(var a=2;a<i;a++)r[a]=n[a];return reactExports.createElement.apply(null,r)};function Uh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Th(t)}Hh=_h||(_h={}),zh||(zh=Hh.JSX||(Hh.JSX={}));var Qh="undefined"!=typeof document?reactExports.useLayoutEffect:function(){},Kh=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],qh=function(){};function eg(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function tg(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];var r=[].concat(o);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&r.push("".concat(eg(e,a)));return r.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var ng=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===zf(e)&&null!==e?[e]:[];var t;},og=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,Jf({},Qf(e,Kh))},ig=function(e,t,n){var o=e.cx,i=e.getStyles,r=e.getClassNames,a=e.className;return {css:i(t,e),className:o(null!=n?n:{},r(t,e),a)}};function rg(e){return [document.documentElement,document.body,window].indexOf(e)>-1}function ag(e){return rg(e)?window.pageYOffset:e.scrollTop}function sg(e,t){rg(e)?window.scrollTo(0,t):e.scrollTop=t;}function cg(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:qh,i=ag(e),r=t-i,a=0;!function t(){var s=function(e,t,n,o){return n*((e=e/o-1)*e*e+1)+t}(a+=10,i,r,n);sg(e,s),a<n?window.requestAnimationFrame(t):o(e);}();}function lg(e,t){var n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),i=t.offsetHeight/3;o.bottom+i>n.bottom?sg(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):o.top-i<n.top&&sg(e,Math.max(t.offsetTop-i,0));}function ug(){try{return document.createEvent("TouchEvent"),!0}catch(e){return !1}}var dg=!1,pg={get passive(){return dg=!0}},fg="undefined"!=typeof window?window:{};fg.addEventListener&&fg.removeEventListener&&(fg.addEventListener("p",qh,pg),fg.removeEventListener("p",qh,!1));var mg=dg;function hg(e){return null!=e}function gg(e,t,n){return e?t:n}var bg=["children","innerProps"],vg=["children","innerProps"];function yg(e){var t=e.maxHeight,n=e.menuEl,o=e.minHeight,i=e.placement,r=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,c=function(e){var t=getComputedStyle(e),n="absolute"===t.position,o=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&o.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}(n),l={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return l;var u,d=c.getBoundingClientRect().height,p=n.getBoundingClientRect(),f=p.bottom,m=p.height,h=p.top,g=n.offsetParent.getBoundingClientRect().top,b=a?window.innerHeight:rg(u=c)?window.innerHeight:u.clientHeight,v=ag(c),y=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),I=g-w,C=b-h,x=I+v,A=d-v-h,k=f-b+v+y,S=v+h-w,N=160;switch(i){case"auto":case"bottom":if(C>=m)return {placement:"bottom",maxHeight:t};if(A>=m&&!a)return r&&cg(c,k,N),{placement:"bottom",maxHeight:t};if(!a&&A>=o||a&&C>=o)return r&&cg(c,k,N),{placement:"bottom",maxHeight:a?C-y:A-y};if("auto"===i||a){var P=t,E=a?I:x;return E>=o&&(P=Math.min(E-y-s,t)),{placement:"top",maxHeight:P}}if("bottom"===i)return r&&sg(c,k),{placement:"bottom",maxHeight:t};break;case"top":if(I>=m)return {placement:"top",maxHeight:t};if(x>=m&&!a)return r&&cg(c,S,N),{placement:"top",maxHeight:t};if(!a&&x>=o||a&&I>=o){var L=t;return (!a&&x>=o||a&&I>=o)&&(L=a?I-w:x-w),r&&cg(c,S,N),{placement:"top",maxHeight:L}}return {placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return l}var wg,Ig=function(e){return "auto"===e?"bottom":e},Cg=reactExports.createContext(null),xg=function(e){var t=e.children,n=e.minMenuHeight,o=e.maxMenuHeight,i=e.menuPlacement,r=e.menuPosition,a=e.menuShouldScrollIntoView,s=e.theme,u=(reactExports.useContext(Cg)||{}).setPortalPlacement,p=reactExports.useRef(null),f=_f(reactExports.useState(o),2),m=f[0],h=f[1],g=_f(reactExports.useState(null),2),b=g[0],v=g[1],y=s.spacing.controlHeight;return Qh(function(){var e=p.current;if(e){var t="fixed"===r,s=yg({maxHeight:o,menuEl:e,minHeight:n,placement:i,shouldScroll:a&&!t,isFixedPosition:t,controlHeight:y});h(s.maxHeight),v(s.placement),null==u||u(s.placement);}},[o,i,r,a,n,u,y]),t({ref:p,placerProps:Jf(Jf({},e),{},{placement:b||Ig(i),maxHeight:m})})},Ag=function(e){var t=e.children,n=e.innerRef,o=e.innerProps;return _h("div",qf({},ig(e,"menu",{menu:!0}),{ref:n},o),t)},kg=function(e,t){var n=e.theme,o=n.spacing.baseUnit,i=n.colors;return Jf({textAlign:"center"},t?{}:{color:i.neutral40,padding:"".concat(2*o,"px ").concat(3*o,"px")})},Sg=kg,Ng=kg,Pg=["size"],Eg=["innerProps","isRtl","size"];var Lg={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Bg=function(e){var t=e.size,n=Qf(e,Pg);return _h("svg",qf({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Lg},n))},Og=function(e){return _h(Bg,qf({size:20},e),_h("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Tg=function(e){return _h(Bg,qf({size:20},e),_h("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Rg=function(e,t){var n=e.isFocused,o=e.theme,i=o.spacing.baseUnit,r=o.colors;return Jf({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?r.neutral60:r.neutral20,padding:2*i,":hover":{color:n?r.neutral80:r.neutral40}})},Gg=Rg,Fg=Rg,Mg=function(){var e=Uh.apply(void 0,arguments),t="animation-"+e.name;return {name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return "_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(wg||(wg=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]))),Dg=function(e){var t=e.delay,n=e.offset;return _h("span",{css:Uh({animation:"".concat(Mg," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Wg=function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,i=e.innerRef,r=e.innerProps,a=e.menuIsOpen;return _h("div",qf({ref:i},ig(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":a}),r,{"aria-disabled":n||void 0}),t)},Vg=["data"],Hg=function(e){var t=e.children,n=e.cx,o=e.getStyles,i=e.getClassNames,r=e.Heading,a=e.headingProps,s=e.innerProps,c=e.label,l=e.theme,u=e.selectProps;return _h("div",qf({},ig(e,"group",{group:!0}),s),_h(r,qf({},a,{selectProps:u,theme:l,getStyles:o,getClassNames:i,cx:n}),c),_h("div",null,t))},zg=["innerRef","isDisabled","isHidden","inputClassName"],Xg={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Zg={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Jf({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Xg)},jg=function(e){return Jf({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Xg)},Jg=function(e){var t=e.cx,n=e.value,o=og(e),i=o.innerRef,r=o.isDisabled,a=o.isHidden,s=o.inputClassName,c=Qf(o,zg);return _h("div",qf({},ig(e,"input",{"input-container":!0}),{"data-value":n||""}),_h("input",qf({className:t({input:!0},s),ref:i,style:jg(a),disabled:r},c)))},Yg=function(e){var t=e.children,n=e.innerProps;return _h("div",n,t)};var $g=function(e){var t=e.children,n=e.components,o=e.data,i=e.innerProps,r=e.isDisabled,a=e.removeProps,s=e.selectProps,c=n.Container,l=n.Label,u=n.Remove;return _h(c,{data:o,innerProps:Jf(Jf({},ig(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":r})),i),selectProps:s},_h(l,{data:o,innerProps:Jf({},ig(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),_h(u,{data:o,innerProps:Jf(Jf({},ig(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},_g=function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,i=e.isSelected,r=e.innerRef,a=e.innerProps;return _h("div",qf({},ig(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":o,"option--is-selected":i}),{ref:r,"aria-disabled":n},a),t)},Ug=function(e){var t=e.children,n=e.isDisabled,o=e.innerProps;return _h("div",qf({},ig(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),o),t)},Qg={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return _h("div",qf({},ig(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||_h(Og,null))},Control:Wg,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return _h("div",qf({},ig(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||_h(Tg,null))},DownChevron:Tg,CrossIcon:Og,Group:Hg,GroupHeading:function(e){var t=og(e);t.data;var n=Qf(t,Vg);return _h("div",qf({},ig(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return _h("div",qf({},ig(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return _h("span",qf({},t,ig(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:Jg,LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,o=e.size,i=void 0===o?4:o,r=Qf(e,Eg);return _h("div",qf({},ig(Jf(Jf({},r),{},{innerProps:t,isRtl:n,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),_h(Dg,{delay:0,offset:n}),_h(Dg,{delay:160,offset:!0}),_h(Dg,{delay:320,offset:!n}))},Menu:Ag,MenuList:function(e){var t=e.children,n=e.innerProps,o=e.innerRef,i=e.isMulti;return _h("div",qf({},ig(e,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:o},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,o=e.controlElement,i=e.innerProps,r=e.menuPlacement,s=e.menuPosition,c=reactExports.useRef(null),p=reactExports.useRef(null),f=_f(reactExports.useState(Ig(r)),2),m=f[0],h=f[1],g=reactExports.useMemo(function(){return {setPortalPlacement:h}},[]),b=_f(reactExports.useState(null),2),v=b[0],y=b[1],w=reactExports.useCallback(function(){if(o){var e=function(e){var t=e.getBoundingClientRect();return {bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(o),t="fixed"===s?0:window.pageYOffset,n=e[m]+t;n===(null==v?void 0:v.offset)&&e.left===(null==v?void 0:v.rect.left)&&e.width===(null==v?void 0:v.rect.width)||y({offset:n,rect:e});}},[o,s,m,null==v?void 0:v.offset,null==v?void 0:v.rect.left,null==v?void 0:v.rect.width]);Qh(function(){w();},[w]);var C=reactExports.useCallback(function(){"function"==typeof p.current&&(p.current(),p.current=null),o&&c.current&&(p.current=un(o,c.current,w,{elementResize:"ResizeObserver"in window}));},[o,w]);Qh(function(){C();},[C]);var x=reactExports.useCallback(function(e){c.current=e,C();},[C]);if(!t&&"fixed"!==s||!v)return null;var A=_h("div",qf({ref:x},ig(Jf(Jf({},e),{},{offset:v.offset,position:s,rect:v.rect}),"menuPortal",{"menu-portal":!0}),i),n);return _h(Cg.Provider,{value:g},t?reactDomExports.createPortal(A,t):A)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,o=e.innerProps,i=Qf(e,vg);return _h("div",qf({},ig(Jf(Jf({},i),{},{children:n,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,o=e.innerProps,i=Qf(e,bg);return _h("div",qf({},ig(Jf(Jf({},i),{},{children:n,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),n)},MultiValue:$g,MultiValueContainer:Yg,MultiValueLabel:Yg,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return _h("div",qf({role:"button"},n),t||_h(Og,{size:14}))},Option:_g,Placeholder:function(e){var t=e.children,n=e.innerProps;return _h("div",qf({},ig(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,o=e.isDisabled,i=e.isRtl;return _h("div",qf({},ig(e,"container",{"--is-disabled":o,"--is-rtl":i}),n),t)},SingleValue:Ug,ValueContainer:function(e){var t=e.children,n=e.innerProps,o=e.isMulti,i=e.hasValue;return _h("div",qf({},ig(e,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i}),n),t)}},Kg=Number.isNaN||function(e){return "number"==typeof e&&e!=e};function qg(e,t){return e===t||!(!Kg(e)||!Kg(t))}function eb(e,t){if(e.length!==t.length)return !1;for(var n=0;n<e.length;n++)if(!qg(e[n],t[n]))return !1;return !0}for(var tb={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},nb=function(e){return _h("span",qf({css:tb},e))},ob={guidance:function(e){var t=e.isSearchable,n=e.isMulti,o=e.tabSelectsValue,i=e.context,r=e.isInitialFocus;switch(i){case"menu":return "Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return r?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return "Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return ""}},onChange:function(e){var t=e.action,n=e.label,o=void 0===n?"":n,i=e.labels,r=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return "option ".concat(o,", deselected.");case"clear":return "All selected options have been cleared.";case"initial-input-focus":return "option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return "option ".concat(o,r?" is disabled. Select another option.":", selected.");default:return ""}},onFocus:function(e){var t=e.context,n=e.focused,o=e.options,i=e.label,r=void 0===i?"":i,a=e.selectValue,s=e.isDisabled,c=e.isSelected,l=e.isAppleDevice,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return "value ".concat(r," focused, ").concat(u(a,n),".");if("menu"===t&&l){var d=s?" disabled":"",p="".concat(c?" selected":"").concat(d);return "".concat(r).concat(p,", ").concat(u(o,n),".")}return ""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return "".concat(n).concat(t?" for search term "+t:"",".")}},ib=function(e){var t=e.ariaSelection,n=e.focusedOption,o=e.focusedValue,i=e.focusableOptions,r=e.isFocused,a=e.selectValue,s=e.selectProps,c=e.id,l=e.isAppleDevice,d=s.ariaLiveMessages,p=s.getOptionLabel,f=s.inputValue,m=s.isMulti,g=s.isOptionDisabled,b=s.isSearchable,v=s.menuIsOpen,y=s.options,w=s.screenReaderStatus,I=s.tabSelectsValue,C=s.isLoading,x=s["aria-label"],A=s["aria-live"],k=reactExports.useMemo(function(){return Jf(Jf({},ob),d||{})},[d]),S=reactExports.useMemo(function(){var e,n="";if(t&&k.onChange){var o=t.option,i=t.options,r=t.removedValue,s=t.removedValues,c=t.value,l=r||o||(e=c,Array.isArray(e)?null:e),u=l?p(l):"",d=i||s||void 0,f=d?d.map(p):[],m=Jf({isDisabled:l&&g(l,a),label:u,labels:f},t);n=k.onChange(m);}return n},[t,k,g,a,p]),N=reactExports.useMemo(function(){var e="",t=n||o,r=!!(n&&a&&a.includes(n));if(t&&k.onFocus){var s={focused:t,label:p(t),isDisabled:g(t,a),isSelected:r,options:i,context:t===n?"menu":"value",selectValue:a,isAppleDevice:l};e=k.onFocus(s);}return e},[n,o,p,g,k,i,a,l]),P=reactExports.useMemo(function(){var e="";if(v&&y.length&&!C&&k.onFilter){var t=w({count:i.length});e=k.onFilter({inputValue:f,resultsMessage:t});}return e},[i,f,v,k,y,w,C]),E="initial-input-focus"===(null==t?void 0:t.action),L=reactExports.useMemo(function(){var e="";if(k.guidance){var t=o?"value":v?"menu":"input";e=k.guidance({"aria-label":x,context:t,isDisabled:n&&g(n,a),isMulti:m,isSearchable:b,tabSelectsValue:I,isInitialFocus:E});}return e},[x,n,o,m,g,b,v,k,a,I,E]),B=_h(reactExports.Fragment,null,_h("span",{id:"aria-selection"},S),_h("span",{id:"aria-focused"},N),_h("span",{id:"aria-results"},P),_h("span",{id:"aria-guidance"},L));return _h(reactExports.Fragment,null,_h(nb,{id:c},E&&B),_h(nb,{"aria-live":A,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},r&&!E&&B))},rb=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],ab=new RegExp("["+rb.map(function(e){return e.letters}).join("")+"]","g"),sb={},cb=0;cb<rb.length;cb++)for(var lb=rb[cb],ub=0;ub<lb.letters.length;ub++)sb[lb.letters[ub]]=lb.base;var db=function(e){return e.replace(ab,function(e){return sb[e]})},pb=function(e,t){void 0===t&&(t=eb);var n=null;function o(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var r=e.apply(this,o);return n={lastResult:r,lastArgs:o,lastThis:this},r}return o.clear=function(){n=null;},o}(db),fb=function(e){return e.replace(/^\s+|\s+$/g,"")},mb=function(e){return "".concat(e.label," ").concat(e.value)},hb=["innerRef"];function gb(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var i=Object.entries(e).filter(function(e){var t=_f(e,1)[0];return !n.includes(t)});return i.reduce(function(e,t){var n=_f(t,2),o=n[0],i=n[1];return e[o]=i,e},{})}(Qf(e,hb),"onExited","in","enter","exit","appear");return _h("input",qf({ref:t},n,{css:Uh({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var bb=["boxSizing","height","overflow","paddingRight","position"],vb={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function yb(e){e.cancelable&&e.preventDefault();}function wb(e){e.stopPropagation();}function Ib(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1);}function Cb(){return "ontouchstart"in window||navigator.maxTouchPoints}var xb=!("undefined"==typeof window||!window.document||!window.document.createElement),Ab=0,kb={capture:!1,passive:!1};var Sb=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},Nb={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Pb(e){var t=e.children,n=e.lockEnabled,o=e.captureEnabled,i=function(e){var t=e.isEnabled,n=e.onBottomArrive,o=e.onBottomLeave,i=e.onTopArrive,r=e.onTopLeave,s=reactExports.useRef(!1),c=reactExports.useRef(!1),l=reactExports.useRef(0),u=reactExports.useRef(null),f=reactExports.useCallback(function(e,t){if(null!==u.current){var a=u.current,l=a.scrollTop,d=a.scrollHeight,p=a.clientHeight,f=u.current,m=t>0,h=d-p-l,g=!1;h>t&&s.current&&(o&&o(e),s.current=!1),m&&c.current&&(r&&r(e),c.current=!1),m&&t>h?(n&&!s.current&&n(e),f.scrollTop=d,g=!0,s.current=!0):!m&&-t>l&&(i&&!c.current&&i(e),f.scrollTop=0,g=!0,c.current=!0),g&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation();}(e);}},[n,o,i,r]),m=reactExports.useCallback(function(e){f(e,e.deltaY);},[f]),h=reactExports.useCallback(function(e){l.current=e.changedTouches[0].clientY;},[]),g=reactExports.useCallback(function(e){var t=l.current-e.changedTouches[0].clientY;f(e,t);},[f]),b=reactExports.useCallback(function(e){if(e){var t=!!mg&&{passive:!1};e.addEventListener("wheel",m,t),e.addEventListener("touchstart",h,t),e.addEventListener("touchmove",g,t);}},[g,h,m]),v=reactExports.useCallback(function(e){e&&(e.removeEventListener("wheel",m,!1),e.removeEventListener("touchstart",h,!1),e.removeEventListener("touchmove",g,!1));},[g,h,m]);return reactExports.useEffect(function(){if(t){var e=u.current;return b(e),function(){v(e);}}},[t,b,v]),function(e){u.current=e;}}({isEnabled:void 0===o||o,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),r=function(e){var t=e.isEnabled,n=e.accountForScrollbars,o=void 0===n||n,i=reactExports.useRef({}),r=reactExports.useRef(null),s=reactExports.useCallback(function(e){if(xb){var t=document.body,n=t&&t.style;if(o&&bb.forEach(function(e){var t=n&&n[e];i.current[e]=t;}),o&&Ab<1){var r=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+r||0;Object.keys(vb).forEach(function(e){var t=vb[e];n&&(n[e]=t);}),n&&(n.paddingRight="".concat(s,"px"));}t&&Cb()&&(t.addEventListener("touchmove",yb,kb),e&&(e.addEventListener("touchstart",Ib,kb),e.addEventListener("touchmove",wb,kb))),Ab+=1;}},[o]),c=reactExports.useCallback(function(e){if(xb){var t=document.body,n=t&&t.style;Ab=Math.max(Ab-1,0),o&&Ab<1&&bb.forEach(function(e){var t=i.current[e];n&&(n[e]=t);}),t&&Cb()&&(t.removeEventListener("touchmove",yb,kb),e&&(e.removeEventListener("touchstart",Ib,kb),e.removeEventListener("touchmove",wb,kb)));}},[o]);return reactExports.useEffect(function(){if(t){var e=r.current;return s(e),function(){c(e);}}},[t,s,c]),function(e){r.current=e;}}({isEnabled:n});return _h(reactExports.Fragment,null,n&&_h("div",{onClick:Sb,css:Nb}),t(function(e){i(e),r(e);}))}var Eb={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Lb=function(e){var t=e.name,n=e.onFocus;return _h("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Eb,value:"",onChange:function(){}})};function Bb(e){var t;return "undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Ob(){return Bb(/^Mac/i)}function Tb(){return Bb(/^iPhone/i)||Bb(/^iPad/i)||Ob()&&navigator.maxTouchPoints>1}var Rb={clearIndicator:Fg,container:function(e){var t=e.isDisabled;return {label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,o=e.isFocused,i=e.theme,r=i.colors,a=i.borderRadius;return Jf({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?r.neutral5:r.neutral0,borderColor:n?r.neutral10:o?r.primary:r.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(r.primary):void 0,"&:hover":{borderColor:o?r.primary:r.neutral30}})},dropdownIndicator:Gg,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,o=n.colors,i=n.spacing;return Jf({label:"group",cursor:"default",display:"block"},t?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*i.baseUnit,paddingRight:3*i.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return {alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,o=e.theme,i=o.spacing.baseUnit,r=o.colors;return Jf({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?r.neutral10:r.neutral20,marginBottom:2*i,marginTop:2*i})},input:function(e,t){var n=e.isDisabled,o=e.value,i=e.theme,r=i.spacing,a=i.colors;return Jf(Jf({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},Zg),t?{}:{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,o=e.size,i=e.theme,r=i.colors,a=i.spacing.baseUnit;return Jf({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?r.neutral60:r.neutral20,padding:2*a})},loadingMessage:Ng,menu:function(e,t){var n,o=e.placement,i=e.theme,r=i.borderRadius,a=i.spacing,s=i.colors;return Jf((Zf(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(o),"100%"),Zf(n,"position","absolute"),Zf(n,"width","100%"),Zf(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:r,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,o=e.theme.spacing.baseUnit;return Jf({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:o,paddingTop:o})},menuPortal:function(e){var t=e.rect,n=e.offset,o=e.position;return {left:t.left,position:o,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,o=n.spacing,i=n.borderRadius,r=n.colors;return Jf({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:r.neutral10,borderRadius:i/2,margin:o.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,o=n.borderRadius,i=n.colors,r=e.cropWithEllipsis;return Jf({overflow:"hidden",textOverflow:r||void 0===r?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:o/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,o=n.spacing,i=n.borderRadius,r=n.colors,a=e.isFocused;return Jf({alignItems:"center",display:"flex"},t?{}:{borderRadius:i/2,backgroundColor:a?r.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:r.dangerLight,color:r.danger}})},noOptionsMessage:Sg,option:function(e,t){var n=e.isDisabled,o=e.isFocused,i=e.isSelected,r=e.theme,a=r.spacing,s=r.colors;return Jf({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:i?s.primary:o?s.primary25:"transparent",color:n?s.neutral20:i?s.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:i?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,o=n.spacing,i=n.colors;return Jf({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:i.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,o=e.theme,i=o.spacing,r=o.colors;return Jf({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?r.neutral40:r.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,o=e.isMulti,i=e.hasValue,r=e.selectProps.controlShouldRenderValue;return Jf({alignItems:"center",display:o&&i&&r?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},Gb={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Fb={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:ug(),captureMenuScroll:!ug(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e){return function(t,n){if(t.data.__isNew__)return !0;var o=Jf({ignoreCase:!0,ignoreAccents:!0,stringify:mb,trim:!0,matchFrom:"any"},e),i=o.ignoreCase,r=o.ignoreAccents,a=o.stringify,s=o.trim,c=o.matchFrom,l=s?fb(n):n,u=s?fb(a(t)):a(t);return i&&(l=l.toLowerCase(),u=u.toLowerCase()),r&&(l=pb(l),u=db(u)),"start"===c?u.substr(0,l.length)===l:u.indexOf(l)>-1}}(),formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return !!e.isDisabled},loadingMessage:function(){return "Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return !1}}(),noOptionsMessage:function(){return "No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return "".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Mb(e,t,n,o){return {type:"option",data:t,isDisabled:jb(e,t,n),isSelected:Jb(e,t,n),label:Xb(e,t),value:Zb(e,t),index:o}}function Db(e,t){return e.options.map(function(n,o){if("options"in n){var i=n.options.map(function(n,o){return Mb(e,n,t,o)}).filter(function(t){return Hb(e,t)});return i.length>0?{type:"group",data:n,options:i,index:o}:void 0}var r=Mb(e,n,t,o);return Hb(e,r)?r:void 0}).filter(hg)}function Wb(e){return e.reduce(function(e,t){return "group"===t.type?e.push.apply(e,rm(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function Vb(e,t){return e.reduce(function(e,n){return "group"===n.type?e.push.apply(e,rm(n.options.map(function(e){return {data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}}))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e},[])}function Hb(e,t){var n=e.inputValue,o=void 0===n?"":n,i=t.data,r=t.isSelected,a=t.label,s=t.value;return (!$b(e)||!r)&&Yb(e,{label:a,value:s,data:i},o)}var zb=function(e,t){var n;return (null===(n=e.find(function(e){return e.data===t}))||void 0===n?void 0:n.id)||null},Xb=function(e,t){return e.getOptionLabel(t)},Zb=function(e,t){return e.getOptionValue(t)};function jb(e,t,n){return "function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Jb(e,t,n){if(n.indexOf(t)>-1)return !0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var o=Zb(e,t);return n.some(function(t){return Zb(e,t)===o})}function Yb(e,t,n){return !e.filterOption||e.filterOption(t,n)}var $b=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},_b=1,Ub=function(){!function(e,t){if("function"!=typeof t&&null!==t)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&&tm(e,t);}(t,reactExports.Component);var e=function(e){var t=om();return function(){var n,o=nm(e);if(t){var i=nm(this).constructor;n=Reflect.construct(o,arguments,i);}else n=o.apply(this,arguments);return im(this,n)}}(t);function t(n){var o;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=e.call(this,n)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.controlRef=null,o.getControlRef=function(e){o.controlRef=e;},o.focusedOptionRef=null,o.getFocusedOptionRef=function(e){o.focusedOptionRef=e;},o.menuListRef=null,o.getMenuListRef=function(e){o.menuListRef=e;},o.inputRef=null,o.getInputRef=function(e){o.inputRef=e;},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(e,t){var n=o.props,i=n.onChange,r=n.name;t.name=r,o.ariaOnChange(e,t),i(e,t);},o.setValue=function(e,t,n){var i=o.props,r=i.closeMenuOnSelect,a=i.isMulti,s=i.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:s}),r&&(o.setState({inputIsHiddenAfterUpdate:!a}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(e,{action:t,option:n});},o.selectOption=function(e){var t=o.props,n=t.blurInputOnSelect,i=t.isMulti,r=t.name,a=o.state.selectValue,s=i&&o.isOptionSelected(e,a),c=o.isOptionDisabled(e,a);if(s){var l=o.getOptionValue(e);o.setValue(a.filter(function(e){return o.getOptionValue(e)!==l}),"deselect-option",e);}else {if(c)return void o.ariaOnChange(e,{action:"select-option",option:e,name:r});i?o.setValue([].concat(rm(a),[e]),"select-option",e):o.setValue(e,"select-option");}n&&o.blurInput();},o.removeValue=function(e){var t=o.props.isMulti,n=o.state.selectValue,i=o.getOptionValue(e),r=n.filter(function(e){return o.getOptionValue(e)!==i}),a=gg(t,r,r[0]||null);o.onChange(a,{action:"remove-value",removedValue:e}),o.focusInput();},o.clearValue=function(){var e=o.state.selectValue;o.onChange(gg(o.props.isMulti,[],null),{action:"clear",removedValues:e});},o.popValue=function(){var e=o.props.isMulti,t=o.state.selectValue,n=t[t.length-1],i=t.slice(0,t.length-1),r=gg(e,i,i[0]||null);n&&o.onChange(r,{action:"pop-value",removedValue:n});},o.getFocusedOptionId=function(e){return zb(o.state.focusableOptionsWithIds,e)},o.getFocusableOptionsWithIds=function(){return Vb(Db(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return tg.apply(void 0,[o.props.classNamePrefix].concat(t))},o.getOptionLabel=function(e){return Xb(o.props,e)},o.getOptionValue=function(e){return Zb(o.props,e)},o.getStyles=function(e,t){var n=o.props.unstyled,i=Rb[e](t,n);i.boxSizing="border-box";var r=o.props.styles[e];return r?r(i,t):i},o.getClassNames=function(e,t){var n,i;return null===(n=(i=o.props.classNames)[e])||void 0===n?void 0:n.call(i,t)},o.getElementId=function(e){return "".concat(o.state.instancePrefix,"-").concat(e)},o.getComponents=function(){return e=o.props,Jf(Jf({},Qg),e.components);var e;},o.buildCategorizedOptions=function(){return Db(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return Wb(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(e,t){o.setState({ariaSelection:Jf({value:e},t)});},o.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),o.focusInput());},o.onMenuMouseMove=function(e){o.blockOptionHover=!1;},o.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&o.onMenuClose():t&&o.openMenu("first"):(t&&(o.openAfterFocus=!0),o.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault();}},o.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||o.props.isDisabled)){var t=o.props,n=t.isMulti,i=t.menuIsOpen;o.focusInput(),i?(o.setState({inputIsHiddenAfterUpdate:!n}),o.onMenuClose()):o.openMenu("first"),e.preventDefault();}},o.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(o.clearValue(),e.preventDefault(),o.openAfterFocus=!1,"touchend"===e.type?o.focusInput():setTimeout(function(){return o.focusInput()}));},o.onScroll=function(e){"boolean"==typeof o.props.closeMenuOnScroll?e.target instanceof HTMLElement&&rg(e.target)&&o.props.onMenuClose():"function"==typeof o.props.closeMenuOnScroll&&o.props.closeMenuOnScroll(e)&&o.props.onMenuClose();},o.onCompositionStart=function(){o.isComposing=!0;},o.onCompositionEnd=function(){o.isComposing=!1;},o.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(o.initialTouchX=n.clientX,o.initialTouchY=n.clientY,o.userIsDragging=!1);},o.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var i=Math.abs(n.clientX-o.initialTouchX),r=Math.abs(n.clientY-o.initialTouchY);o.userIsDragging=i>5||r>5;}},o.onTouchEnd=function(e){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(e.target)&&o.menuListRef&&!o.menuListRef.contains(e.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0);},o.onControlTouchEnd=function(e){o.userIsDragging||o.onControlMouseDown(e);},o.onClearIndicatorTouchEnd=function(e){o.userIsDragging||o.onClearIndicatorMouseDown(e);},o.onDropdownIndicatorTouchEnd=function(e){o.userIsDragging||o.onDropdownIndicatorMouseDown(e);},o.handleInputChange=function(e){var t=o.props.inputValue,n=e.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(n,{action:"input-change",prevInputValue:t}),o.props.menuIsOpen||o.onMenuOpen();},o.onInputFocus=function(e){o.props.onFocus&&o.props.onFocus(e),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1;},o.onInputBlur=function(e){var t=o.props.inputValue;o.menuListRef&&o.menuListRef.contains(document.activeElement)?o.inputRef.focus():(o.props.onBlur&&o.props.onBlur(e),o.onInputChange("",{action:"input-blur",prevInputValue:t}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1}));},o.onOptionHover=function(e){if(!o.blockOptionHover&&o.state.focusedOption!==e){var t=o.getFocusableOptions().indexOf(e);o.setState({focusedOption:e,focusedOptionId:t>-1?o.getFocusedOptionId(e):null});}},o.shouldHideSelectedOptions=function(){return $b(o.props)},o.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),o.focus();},o.onKeyDown=function(e){var t=o.props,n=t.isMulti,i=t.backspaceRemovesValue,r=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,c=t.isDisabled,l=t.menuIsOpen,u=t.onKeyDown,d=t.tabSelectsValue,p=t.openMenuOnFocus,f=o.state,m=f.focusedOption,h=f.focusedValue,g=f.selectValue;if(!(c||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(o.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;o.focusValue("previous");break;case"ArrowRight":if(!n||a)return;o.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(h)o.removeValue(h);else {if(!i)return;n?o.popValue():s&&o.clearValue();}break;case"Tab":if(o.isComposing)return;if(e.shiftKey||!l||!d||!m||p&&o.isOptionSelected(m,g))return;o.selectOption(m);break;case"Enter":if(229===e.keyCode)break;if(l){if(!m)return;if(o.isComposing)return;o.selectOption(m);break}return;case"Escape":l?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:a}),o.onMenuClose()):s&&r&&o.clearValue();break;case" ":if(a)return;if(!l){o.openMenu("first");break}if(!m)return;o.selectOption(m);break;case"ArrowUp":l?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":l?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!l)return;o.focusOption("pageup");break;case"PageDown":if(!l)return;o.focusOption("pagedown");break;case"Home":if(!l)return;o.focusOption("first");break;case"End":if(!l)return;o.focusOption("last");break;default:return}e.preventDefault();}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++_b),o.state.selectValue=ng(n.value),n.menuIsOpen&&o.state.selectValue.length){var i=o.getFocusableOptionsWithIds(),r=o.buildFocusableOptions(),a=r.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=i,o.state.focusedOption=r[a],o.state.focusedOptionId=zb(i,r[a]);}return o}return function(e,t,n){t&&em(e.prototype,t),n&&em(e,n),Object.defineProperty(e,"prototype",{writable:!1});}(t,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&lg(this.menuListRef,this.focusedOptionRef),(Ob()||Tb())&&this.setState({isAppleDevice:!0});}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,o=t.menuIsOpen,i=this.state.isFocused;(i&&!n&&e.isDisabled||i&&o&&!e.menuIsOpen)&&this.focusInput(),i&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):i||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(lg(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1);}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0);}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen();}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose();}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t);}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus();}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur();}},{key:"openMenu",value:function(e){var t=this,n=this.state,o=n.selectValue,i=n.isFocused,r=this.buildFocusableOptions(),a="first"===e?0:r.length-1;if(!this.props.isMulti){var s=r.indexOf(o[0]);s>-1&&(a=s);}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:r[a],focusedOptionId:this.getFocusedOptionId(r[a])},function(){return t.onMenuOpen()});}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,o=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=n.indexOf(o);o||(i=-1);var r=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===i?0:-1===i?r:i-1;break;case"next":i>-1&&i<r&&(a=i+1);}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]});}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,o=this.getFocusableOptions();if(o.length){var i=0,r=o.indexOf(n);n||(r=-1),"up"===e?i=r>0?r-1:o.length-1:"down"===e?i=(r+1)%o.length:"pageup"===e?(i=r-t)<0&&(i=0):"pagedown"===e?(i=r+t)>o.length-1&&(i=o.length-1):"last"===e&&(i=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[i],focusedValue:null,focusedOptionId:this.getFocusedOptionId(o[i])});}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Gb):Jf(Jf({},Gb),this.props.theme):Gb}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,o=this.getClassNames,i=this.getValue,r=this.selectOption,a=this.setValue,s=this.props,c=s.isMulti,l=s.isRtl,u=s.options;return {clearValue:e,cx:t,getStyles:n,getClassNames:o,getValue:i,hasValue:this.hasValue(),isMulti:c,isRtl:l,options:u,selectOption:r,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return !!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return jb(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Jb(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Yb(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,o=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:o})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1));}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd));}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1));}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd));}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,i=e.inputId,r=e.inputValue,a=e.tabIndex,s=e.form,c=e.menuIsOpen,l=e.required,u=this.getComponents().Input,d=this.state,p=d.inputIsHidden,f=d.ariaSelection,m=this.commonProps,h=i||this.getElementId("input"),g=Jf(Jf(Jf({"aria-autocomplete":"list","aria-expanded":c,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":l,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},c&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?reactExports.createElement(u,qf({},m,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:t,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:s,type:"text",value:r},g)):reactExports.createElement(gb,qf({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:qh,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:s,value:""},g))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,i=t.MultiValueContainer,r=t.MultiValueLabel,a=t.MultiValueRemove,s=t.SingleValue,c=t.Placeholder,l=this.commonProps,u=this.props,d=u.controlShouldRenderValue,p=u.isDisabled,f=u.isMulti,m=u.inputValue,h=u.placeholder,g=this.state,b=g.selectValue,v=g.focusedValue,y=g.isFocused;if(!this.hasValue()||!d)return m?null:reactExports.createElement(c,qf({},l,{key:"placeholder",isDisabled:p,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),h);if(f)return b.map(function(t,s){var c=t===v,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return reactExports.createElement(n,qf({},l,{components:{Container:i,Label:r,Remove:a},isFocused:c,isDisabled:p,key:u,index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault();}},data:t}),e.formatOptionLabel(t,"value"))});if(m)return null;var w=b[0];return reactExports.createElement(s,qf({},l,{data:w,isDisabled:p}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,i=n.isDisabled,r=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||i||!this.hasValue()||r)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return reactExports.createElement(e,qf({},t,{innerProps:s,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,i=n.isDisabled,r=n.isLoading,a=this.state.isFocused;if(!e||!r)return null;return reactExports.createElement(e,qf({},t,{innerProps:{"aria-hidden":"true"},isDisabled:i,isFocused:a}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var i=this.commonProps,r=this.props.isDisabled,a=this.state.isFocused;return reactExports.createElement(n,qf({},i,{isDisabled:r,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,i=this.state.isFocused,r={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return reactExports.createElement(e,qf({},t,{innerProps:r,isDisabled:n,isFocused:i}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,i=t.GroupHeading,r=t.Menu,a=t.MenuList,s=t.MenuPortal,c=t.LoadingMessage,l=t.NoOptionsMessage,u=t.Option,d=this.commonProps,p=this.state.focusedOption,f=this.props,m=f.captureMenuScroll,h=f.inputValue,g=f.isLoading,b=f.loadingMessage,v=f.minMenuHeight,y=f.maxMenuHeight,w=f.menuIsOpen,I=f.menuPlacement,C=f.menuPosition,x=f.menuPortalTarget,A=f.menuShouldBlockScroll,k=f.menuShouldScrollIntoView,S=f.noOptionsMessage,N=f.onMenuScrollToTop,P=f.onMenuScrollToBottom;if(!w)return null;var E,L=function(t,n){var i=t.type,r=t.data,a=t.isDisabled,s=t.isSelected,c=t.label,l=t.value,f=p===r,m=a?void 0:function(){return e.onOptionHover(r)},h=a?void 0:function(){return e.selectOption(r)},g="".concat(e.getElementId("option"),"-").concat(n),b={id:g,onClick:h,onMouseMove:m,onMouseOver:m,tabIndex:-1,role:"option","aria-selected":e.state.isAppleDevice?void 0:s};return reactExports.createElement(u,qf({},d,{innerProps:b,data:r,isDisabled:a,isSelected:s,key:g,label:c,type:i,value:l,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())E=this.getCategorizedOptions().map(function(t){if("group"===t.type){var r=t.data,a=t.options,s=t.index,c="".concat(e.getElementId("group"),"-").concat(s),l="".concat(c,"-heading");return reactExports.createElement(n,qf({},d,{key:c,data:r,options:a,Heading:i,headingProps:{id:l,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map(function(e){return L(e,"".concat(s,"-").concat(e.index))}))}if("option"===t.type)return L(t,"".concat(t.index))});else if(g){var B=b({inputValue:h});if(null===B)return null;E=reactExports.createElement(c,d,B);}else {var O=S({inputValue:h});if(null===O)return null;E=reactExports.createElement(l,d,O);}var T={minMenuHeight:v,maxMenuHeight:y,menuPlacement:I,menuPosition:C,menuShouldScrollIntoView:k},R=reactExports.createElement(xg,qf({},d,T),function(t){var n=t.ref,i=t.placerProps,s=i.placement,c=i.maxHeight;return reactExports.createElement(r,qf({},d,T,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:g,placement:s}),reactExports.createElement(Pb,{captureEnabled:m,onTopArrive:N,onBottomArrive:P,lockEnabled:A},function(t){return reactExports.createElement(a,qf({},d,{innerRef:function(n){e.getMenuListRef(n),t(n);},innerProps:{role:"listbox","aria-multiselectable":d.isMulti,id:e.getElementId("listbox")},isLoading:g,maxHeight:c,focusedOption:p}),E)}))});return x||"fixed"===C?reactExports.createElement(s,qf({},d,{appendTo:x,controlElement:this.controlRef,menuPlacement:I,menuPosition:C}),R):R}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,i=t.isDisabled,r=t.isMulti,a=t.name,s=t.required,c=this.state.selectValue;if(s&&!this.hasValue()&&!i)return reactExports.createElement(Lb,{name:a,onFocus:this.onValueInputFocus});if(a&&!i){if(r){if(n){var l=c.map(function(t){return e.getOptionValue(t)}).join(n);return reactExports.createElement("input",{name:a,type:"hidden",value:l})}var u=c.length>0?c.map(function(t,n){return reactExports.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})}):reactExports.createElement("input",{name:a,type:"hidden",value:""});return reactExports.createElement("div",null,u)}var d=c[0]?this.getOptionValue(c[0]):"";return reactExports.createElement("input",{name:a,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,i=t.focusedOption,r=t.focusedValue,a=t.isFocused,s=t.selectValue,c=this.getFocusableOptions();return reactExports.createElement(ib,qf({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:i,focusedValue:r,isFocused:a,selectValue:s,focusableOptions:c,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,i=e.SelectContainer,r=e.ValueContainer,a=this.props,s=a.className,c=a.id,l=a.isDisabled,u=a.menuIsOpen,d=this.state.isFocused,p=this.commonProps=this.getCommonProps();return reactExports.createElement(i,qf({},p,{className:s,innerProps:{id:c,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:d}),this.renderLiveRegion(),reactExports.createElement(t,qf({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:d,menuIsOpen:u}),reactExports.createElement(r,qf({},p,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),reactExports.createElement(n,qf({},p,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,o=t.clearFocusValueOnUpdate,i=t.inputIsHiddenAfterUpdate,r=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,c=t.instancePrefix,l=e.options,u=e.value,d=e.menuIsOpen,p=e.inputValue,f=e.isMulti,m=ng(u),h={};if(n&&(u!==n.value||l!==n.options||d!==n.menuIsOpen||p!==n.inputValue)){var g=d?function(e,t){return Wb(Db(e,t))}(e,m):[],b=d?Vb(Db(e,m),"".concat(c,"-option")):[],v=o?function(e,t){var n=e.focusedValue,o=e.selectValue.indexOf(n);if(o>-1){if(t.indexOf(n)>-1)return n;if(o<t.length)return t[o]}return null}(t,m):null,y=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,g);h={selectValue:m,focusedOption:y,focusedOptionId:zb(b,y),focusableOptionsWithIds:b,focusedValue:v,clearFocusValueOnUpdate:!1};}var w=null!=i&&e!==n?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},I=r,C=a&&s;return a&&!C&&(I={value:gg(f,m,m[0]||null),options:m,action:"initial-input-focus"},C=!s),"initial-input-focus"===(null==r?void 0:r.action)&&(I=null),Jf(Jf(Jf({},h),w),{},{prevProps:e,ariaSelection:I,prevWasFocused:C})}}]),t}();Ub.defaultProps=Fb;var Qb=reactExports.forwardRef(function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,o=e.defaultMenuIsOpen,i=void 0!==o&&o,r=e.defaultValue,s=void 0===r?null:r,c=e.inputValue,u=e.menuIsOpen,d=e.onChange,p=e.onInputChange,f=e.onMenuClose,m=e.onMenuOpen,h=e.value,g=Qf(e,Kf),b=_f(reactExports.useState(void 0!==c?c:n),2),v=b[0],y=b[1],w=_f(reactExports.useState(void 0!==u?u:i),2),I=w[0],C=w[1],x=_f(reactExports.useState(void 0!==h?h:s),2),A=x[0],k=x[1],S=reactExports.useCallback(function(e,t){"function"==typeof d&&d(e,t),k(e);},[d]),N=reactExports.useCallback(function(e,t){var n;"function"==typeof p&&(n=p(e,t)),y(void 0!==n?n:e);},[p]),P=reactExports.useCallback(function(){"function"==typeof m&&m(),C(!0);},[m]),E=reactExports.useCallback(function(){"function"==typeof f&&f(),C(!1);},[f]),L=void 0!==c?c:v,B=void 0!==u?u:I,O=void 0!==h?h:A;return Jf(Jf({},g),{},{inputValue:L,menuIsOpen:B,onChange:S,onInputChange:N,onMenuClose:E,onMenuOpen:P,value:O})}(e);return reactExports.createElement(Ub,qf({ref:t},n))}),Kb=Qb;const qb=reactExports.forwardRef(({id:n,className:o,name:i="select",align:r="up",label:a,options:s=[],value:c,placeholder:l="Select...",isMulti:u=!1,isSearchable:d,isClearable:p,backspaceRemovesValue:f,disabled:m,onChange:h,onInputChange:g,menuIsOpen:b,closeMenuOnSelect:v,isLoading:y,components:w,errorMessage:I,errorDataTestId:C},x)=>{const A=Df(),k=n||`select-${A}`,P=S("io-control-select",m&&"io-control-disabled",I&&"io-control-error",r&&[`direction-${r}`],o),E=I?{"aria-invalid":!0,"aria-errormessage":`${k}-error`}:{};return jsxRuntimeExports.jsxs("div",{className:P,children:[a&&jsxRuntimeExports.jsx(Of,{htmlFor:k,text:a}),jsxRuntimeExports.jsx(Kb,{ref:x,className:"io-select",classNamePrefix:"io-select",instanceId:k,isMulti:u,inputId:k,name:i,options:s,value:c,onChange:e=>u?h?.([...e??[]]):h?.(e),onInputChange:g,menuIsOpen:b,isLoading:y,components:w,placeholder:l,isDisabled:m,isSearchable:d,isClearable:p??u,backspaceRemovesValue:f,closeMenuOnSelect:v,"aria-label":a,...E}),I&&jsxRuntimeExports.jsxs("div",{"data-testid":C,id:`${k}-error`,className:"io-input-error",children:[jsxRuntimeExports.jsx(N,{variant:"close"}),I]})]})});qb.displayName="Select";const ev=reactExports.forwardRef(({id:n,className:o,name:i="textarea",align:r="up",label:a,rows:s=4,placeholder:c="Enter text here...",disabled:l,readOnly:u,...d},p)=>{const f=Df(),m=n||`textarea-${f}`,h=S("io-control-textarea",l&&"io-control-disabled",u&&"io-control-readonly",r&&[`direction-${r}`],o);return jsxRuntimeExports.jsxs("div",{className:h,children:[a&&jsxRuntimeExports.jsx(Of,{htmlFor:m,text:a}),jsxRuntimeExports.jsx("textarea",{id:m,className:"io-textarea",ref:p,name:i,tabIndex:0,placeholder:c,"aria-label":a,disabled:l,readOnly:u,rows:s,...d})]})});ev.displayName="Textarea";const tv=()=>{const e=reactExports.useContext(IOConnectContext),[t,n]=reactExports.useState(null),o=reactExports.useCallback(t=>e?.themes?.select(t),[e]);return reactExports.useEffect(()=>{if(!e)return;let t=!1;const o=e=>{t||n(e);};return e.themes?.onChanged(o),e.themes?.getCurrent().then(o).catch(console.warn),()=>{t=!0;}},[e]),{currentTheme:t,selectTheme:o}};function nv(e,t=500){const[n,o]=reactExports.useState(e);return reactExports.useEffect(()=>{const n=setTimeout(()=>{o(e);},t);return ()=>clearTimeout(n)},[e,t]),n}function iv(){return reactExports.useMemo(()=>"object"==typeof window&&Ba(),[])}const fv=()=>{const e=reactExports.useContext(IOConnectContext),[t,n]=reactExports.useState([]);return reactExports.useEffect(()=>{e&&e.themes?.list().then(n).catch(console.warn);},[e]),t};const yv=reactExports.forwardRef(({id:n,className:o,name:i="toggle",align:r="left",label:a,checked:s,disabled:c,onKeyDown:l,"data-testid":u="toggle",...d},p)=>{const f=Df(),m=n||`toggle-${f}`,h=S("io-control-toggle",s&&"io-control-checked",c&&"io-control-disabled",r&&[`direction-${r}`],o);return jsxRuntimeExports.jsx("div",{className:h,children:jsxRuntimeExports.jsxs("label",{className:"io-toggle",htmlFor:m,tabIndex:c?-1:0,onKeyDown:l,"data-testid":`${u}-label`,children:[jsxRuntimeExports.jsx("input",{type:"checkbox",id:m,className:"io-checkbox",ref:p,name:i,checked:s,disabled:c,"aria-checked":s,tabIndex:-1,"data-testid":u,...d}),jsxRuntimeExports.jsx("span",{className:"slider","data-testid":`${u}-slider`}),a]})})});function wv(e){return {name:e.name,title:e.title,hidden:e.isHidden,userProperties:e.customProperties}}function Iv(e){return {name:e.name,title:e.title,hidden:e.hidden,userProperties:e.userProperties}}yv.displayName="Toggle";class Cv extends Error{constructor(e){super(e),this.name="IoAppsSubApiMissingError";}}function xv(e){if(!e.registry)throw new Cv("io.apps is available but io.apps.registry is missing")}function Av(e){if(!e.instances)throw new Cv("io.apps is available but io.apps.instances is missing")}async function kv(e,t){if(!e||!t)return;const n=e.apps;n&&xv(n);try{if(n){const e=await n.registry.get({name:t});if(!e)return;return wv(e)}const o=e.appManager?.application(t);if(!o)return;return Iv(o)}catch(e){return void console.error(`Failed to get application "${t}"`,e)}}const Sv={getMyApplication:async function(e){if(e)try{const t=e.apps?e.apps.my?.appName:e.appManager?.myApplication?.name;if(!t)return;return await kv(e,t)}catch(e){if(e instanceof Cv)throw e;return void console.error("Failed to get my application",e)}},getApplication:kv,getApplications:async function(e){if(!e)return [];const t=e.apps;t&&xv(t);try{if(t){const e=await t.registry.getMany()??[];return e.map(e=>wv(e))}const n=e.appManager?.applications()??[];return n.map(e=>Iv(e))}catch(e){console.error("Failed to get applications",e);}return []},getApplicationConfiguration:async function(e,t){if(!e||!t)return;const n=e.apps;n&&xv(n);try{if(n){const e=await n.registry.get({name:t,includeDefinition:!0});return e?.definition}const o=e.appManager?.application(t);if(!o)return;return await o.getConfiguration()}catch(e){return void console.error(`Failed to get configuration for application "${t}"`,e)}},startApplication:async function(e,t,n){if(!e)return;const o=e.apps;o&&(xv(o),Av(o));try{if(o){return await o.registry.get({name:t})?void await o.instances.start({name:t,...n}):void console.error(`Application "${t}" not found in registry`)}const i=e.appManager?.application(t);if(!i)return void console.error(`Application "${t}" not found`);await i.start(n);}catch(e){return void console.error(`Failed to start application "${t}"`,e)}},stopApplication:async function(e,t,n){if(!e)return;const o=e.apps;o&&Av(o);try{if(o)return void await o.instances.stop({id:t.id,force:n?.force,reason:n?.reason,timeout:n?.timeout});const i=e.appManager.instances().find(e=>e.id===t.id);if(!i)return void console.error(`Instance "${t.id}" not found`);await i.stop();}catch(e){return void console.error(`Failed to stop application instance "${t.id}"`,e)}},onAppAdded:async function(e,t){if(!e)return;const n=e.apps;n&&xv(n);try{if(n){return await n.registry.onAdded(({app:e})=>{const n=wv(e);t(n);})}const o=e.appManager?.onAppAdded(e=>{const n=Iv(e);t(n);});return o}catch(e){return void console.error("Failed to subscribe to app added events",e)}},onAppRemoved:async function(e,t){if(!e)return;const n=e.apps;n&&xv(n);try{if(n){return await n.registry.onRemoved(({appName:e})=>{t({name:e});})}const o=e.appManager?.onAppRemoved(e=>{t({name:e.name});});return o}catch(e){return void console.error("Failed to subscribe to app removed events",e)}},onAppChanged:async function(e,t){if(!e)return;const n=e.apps;n&&xv(n);try{if(n){return await n.registry.onUpdated(e=>{const n=wv(e.app);t(n);})}const o=e.appManager?.onAppChanged(e=>{const n=Iv(e);t(n);});return o}catch(e){return void console.error("Failed to subscribe to app changed events",e)}},shutdownPlatform:async function(e,t=!0){if(!e)return;const n={autoSave:t,showDialog:!0};try{if(e.platform?.shutdown)return void await e.platform.shutdown(n);await(e.appManager?.exit(n));}catch(e){console.error("Failed to shutdown platform",e);}},restartPlatform:async function(e,t=!0){if(!e)return;const n={autoSave:t,showDialog:!0};try{if(e.platform?.restart)return void await e.platform.restart(n);await(e.appManager?.restart(n));}catch(e){console.error("Failed to restart platform",e);}}};const Nv={minimizeWindow:async function(e){if(e)try{const t=e.windows?.my();await(t?.minimize());}catch(e){console.error("Failed to minimize window",e);}},closeWindow:async function(e,t){if(e)try{const n=e.windows?.my();await(n?.close(t));}catch(e){console.error("Failed to close window",e);}},restartPlatform:Sv.restartPlatform,shutdownPlatform:Sv.shutdownPlatform};reactExports.createContext({theme:"dark"});reactExports.createContext(void 0);const Ov=n=>{const{General:o,Launchpad:i,Layouts:r,Downloads:a,System:s}=Hy();return jsxRuntimeExports.jsxs(Bf,{element:jl,elementProps:n,children:[jsxRuntimeExports.jsx(o,{}),jsxRuntimeExports.jsx(i,{}),jsxRuntimeExports.jsx(r,{}),jsxRuntimeExports.jsx(a,{}),jsxRuntimeExports.jsx(s,{})]})},Tv=({title:t="General",...n})=>{const{Theme:o}=Hy();return jsxRuntimeExports.jsx(T,{title:t,...n,children:jsxRuntimeExports.jsx(o,{})})},Rv=({className:n,title:o="Theme",...i})=>{const{currentTheme:r,selectTheme:a}=tv(),s=fv();return jsxRuntimeExports.jsxs("div",{className:S("flex jc-between ai-center",n),"data-testid":"theme-container",...i,children:[jsxRuntimeExports.jsx("label",{className:"io-text-clipper","data-testid":"theme-label",children:o}),jsxRuntimeExports.jsxs(re,{variant:"light","data-testid":"theme-dropdown",children:[jsxRuntimeExports.jsx(re.Button,{text:r?.displayName??"Dark","data-testid":"theme-dropdown-button"}),jsxRuntimeExports.jsx(re.Content,{"data-testid":"theme-dropdown-content",children:jsxRuntimeExports.jsx(re.List,{children:s.map(({displayName:t,name:n})=>jsxRuntimeExports.jsx(re.Item,{onClick:()=>a(n),"data-testid":`theme-dropdown-item-${n}`,children:t},n))})})]})]})},Gv=({prefKey:t,...n})=>{const{isLoading:o,value:i=!1,update:r}=Rs({prefKey:t});return jsxRuntimeExports.jsx(yv,{checked:i,disabled:o,onChange:e=>r(e.target.checked),...n})},Fv=({align:t="right",label:n="Minimize to tray",...o})=>jsxRuntimeExports.jsx(Gv,{align:t,label:n,prefKey:ja,...o}),Mv=({prefKey:n,options:o,disabled:i,...r})=>{const{isLoading:a,value:s="Select option",update:c}=Rs({prefKey:n});return jsxRuntimeExports.jsxs(re,{variant:"light",disabled:a||i,...r,children:[jsxRuntimeExports.jsx(re.Button,{children:s}),jsxRuntimeExports.jsx(re.Content,{children:jsxRuntimeExports.jsx(re.List,{children:o.map(t=>jsxRuntimeExports.jsx(re.Item,{onClick:()=>(async e=>{if(e!==s)try{await c(e);}catch(e){console.error("Failed to update platform preference:",e);}})(t),children:t},t))})})]})},Dv=({className:n,label:o="Pinned position",...i})=>jsxRuntimeExports.jsx(T,{className:S("io-block-list-gap",n),...i,children:jsxRuntimeExports.jsxs("div",{className:"flex jc-between ai-center",children:[jsxRuntimeExports.jsx("label",{className:"io-text-clipper",children:o}),jsxRuntimeExports.jsx(Mv,{className:n,prefKey:Ya,options:["Left","Right"],...i})]})}),Wv=({align:t="right",label:n='Hide "Favorites"',...o})=>jsxRuntimeExports.jsx(Gv,{align:t,label:n,prefKey:es,...o}),Vv=({align:t="right",label:n="Allow docking to top",...o})=>jsxRuntimeExports.jsx(Gv,{align:t,label:n,prefKey:$a,...o}),Hv=({align:t="right",label:n="Always on top",...o})=>jsxRuntimeExports.jsx(Gv,{align:t,label:n,prefKey:_a,...o}),zv=({align:t="right",label:n="Claim occupied space",...o})=>jsxRuntimeExports.jsx(Gv,{align:t,label:n,prefKey:Ua,...o}),Xv=({align:t="right",label:n="Show the extended Launchpad area",...o})=>jsxRuntimeExports.jsx(Gv,{align:t,label:n,prefKey:Qa,...o}),Zv=({align:t="right",label:n="Hide labels",...o})=>{const{value:i}=Rs({prefKey:Qa});return jsxRuntimeExports.jsx(Gv,{align:t,label:n,prefKey:Ka,disabled:!i,...o})},jv=({align:t="right",label:n='Show "Favorites"',...o})=>{const{value:i}=Rs({prefKey:Qa});return jsxRuntimeExports.jsx(Gv,{align:t,label:n,prefKey:qa,disabled:!i,...o})},Jv=({align:t="right",label:n='Show "Recent"',...o})=>{const{value:i}=Rs({prefKey:Qa});return jsxRuntimeExports.jsx(Gv,{align:t,label:n,prefKey:ts,disabled:!i,...o})},Yv=({title:n="Layouts",...o})=>{const{LayoutsSaveCurrentOnExit:i,LayoutsShowDeletePrompt:r,LayoutsShowUnsavedChangesPrompt:a,LayoutsShowHidden:s}=Hy();return jsxRuntimeExports.jsxs(T,{title:n,...o,children:[jsxRuntimeExports.jsx(i,{}),jsxRuntimeExports.jsx(a,{}),jsxRuntimeExports.jsx(r,{}),jsxRuntimeExports.jsx(s,{})]})},$v=({align:t="right",label:n="Save current on exit",...o})=>jsxRuntimeExports.jsx(Gv,{align:t,label:n,prefKey:os,...o}),_v=({align:t="right",label:n="Show prompt for unsaved changes",...o})=>jsxRuntimeExports.jsx(Gv,{align:t,label:n,prefKey:is,"data-testid":"layouts-show-unsaved-changes-prompt-toggle-button",...o}),Uv=({align:t="right",label:n="Show prompt for deleting",...o})=>jsxRuntimeExports.jsx(Gv,{align:t,label:n,prefKey:rs,"data-testid":"layouts-show-delete-prompt-toggle",...o}),Qv=({title:t="Downloads",...n})=>{const{DownloadsLocation:o}=Hy();return jsxRuntimeExports.jsx(T,{title:t,...n,children:jsxRuntimeExports.jsx(o,{})})};function Kv({title:n="Downloads"}){const{ItemSearch:o,HeaderButtons:i}=xy();return jsxRuntimeExports.jsxs("div",{className:"io-dm-header",children:[jsxRuntimeExports.jsxs(se,{draggable:!0,children:[jsxRuntimeExports.jsx(se.Title,{tag:"h1",text:n,size:"large"}),jsxRuntimeExports.jsx(i,{className:"non-draggable"})]}),jsxRuntimeExports.jsx(o,{})]})}const ey=reactExports.createContext({configuration:{},items:[],removeItem:()=>{},pauseResumeItem:()=>{},cancelItem:()=>{},clearItems:()=>{},showItemInFolder:()=>{},isSettingsVisible:!1,showSettings:()=>{},hideSettings:()=>{},searchQuery:"",setSearch:()=>{},itemsCount:0,setCount:()=>{},setDownloadLocation:()=>{},setDownloadLocationWithDialog:()=>{},sortItems:()=>[],downloadLocationList:[],isDownloadLocationDialogVisible:!1}),ty=()=>reactExports.useContext(ey);function ny({className:n,placeholder:o="Search",iconPrepend:i="search",iconAppend:r="close",...s}){const c=S("io-header-search",n),l=reactExports.useRef(null),{searchQuery:u,setSearch:p,itemsCount:f}=ty(),m=u.length>0,h=reactExports.useCallback(()=>{p(""),l.current&&l.current.focus();},[p]);return jsxRuntimeExports.jsxs("div",{className:c,children:[jsxRuntimeExports.jsx(Vf,{ref:l,value:u,iconPrepend:i,iconAppend:m?r:void 0,iconAppendOnClick:m?h:void 0,placeholder:o,onChange:e=>p(e.target.value),...s}),m&&jsxRuntimeExports.jsx("p",{className:"io-header-search-count",children:`${f} results`})]})}function oy({className:n,...o}){const{MoreButton:i,CloseButton:r,ExternalButton:a}=xy();return jsxRuntimeExports.jsxs(ae,{className:n,align:"right",...o,children:[jsxRuntimeExports.jsx(i,{}),jsxRuntimeExports.jsx(a,{}),jsxRuntimeExports.jsx(r,{})]})}function iy({icon:n="ellipsis-vertical",...o}){const{items:i,clearItems:r,showSettings:a}=ty(),s=0===i.length;return jsxRuntimeExports.jsxs(re,{variant:"light",...o,children:[jsxRuntimeExports.jsx(re.ButtonIcon,{icon:n,variant:"circle",size:"32"}),jsxRuntimeExports.jsx(re.Content,{children:jsxRuntimeExports.jsxs(re.List,{children:[jsxRuntimeExports.jsx(re.Item,{onClick:e=>(e=>{s?e.stopPropagation():r();})(e),disabled:s,children:"Clear All"}),jsxRuntimeExports.jsx(re.Item,{onClick:a,children:"Settings"})]})})]})}function ry({className:t,icon:n="pop-out",...o}){const i=reactExports.useContext(IOConnectContext),r=reactExports.useCallback(()=>{Sv.startApplication(i,"io-connect-download-manager").catch(e=>{console.error("Failed to open Download Manager",e);});},[i]);return jsxRuntimeExports.jsx(P,{className:S("io-dm-compact-mode-only",t),icon:n,variant:"circle",size:"32",onClick:r,...o})}function ay({icon:t="close",size:n="32",variant:o="circle",onClick:i,...r}){const a=reactExports.useContext(IOConnectContext);return jsxRuntimeExports.jsx(P,{icon:t,size:n,variant:o,onClick:e=>{i?i(e):Nv.closeWindow(a).catch(e=>{console.error("Failed to close window:",e);});},...r})}function sy(e,t=!1,n=!1,o=!1){const i=e.getDate(),r=["January","February","March","April","May","June","July","August","September","October","November","December"][e.getMonth()],a=e.getFullYear(),s=e.getHours(),c=e.getMinutes();let l="";return l=c<10?`0${c}`:`${c}`,t?"Today"===t?n?"Today":`Today at ${s}:${l}`:"Yesterday"===t?n?"Yesterday":`Yesterday at ${s}:${l}`:`${s}:${l}`:o?n?`${r} ${i}`:`${r} ${i} at ${s}:${l}`:n?`${r} ${i}, ${a}`:`${r} ${i}, ${a} at ${s}:${l}`}function cy(e,t={showTime:!0}){const n=new Date(1e3*e),o=new Date,i=Math.round((o-n)/1e3),r=Math.round(i/60),a=o.toDateString()===n.toDateString(),s=new Date(o.setDate(o.getDate()-1)).toDateString()===n.toDateString(),c=o.getFullYear()===n.getFullYear();return t.showTime?i<5?"Just Now":i<60?`${i} seconds ago`:i<90?"about a minute ago":r<60?`${r} minutes ago`:a?sy(n,"Today",!1,!0):s?sy(n,"Yesterday",!1,!0):c?sy(n,!1,!1,!0):sy(n):a?"Today":s?"Yesterday":c?sy(n,!1,!0,!0):sy(n,!1,!0)}function ly({className:t,...n}){const o=S("io-dm-body","io-panel-body",t),{DownloadListEmpty:i,ItemGroup:r,Item:a}=xy(),{items:s,searchQuery:c,setCount:l,sortItems:d}=ty(),f=d(s),m=nv(c),h=reactExports.useMemo(()=>f.filter(e=>e.displayInfo.filename.toLowerCase().includes(m.toLowerCase())||e.displayInfo.url.toLowerCase().includes(m.toLowerCase())),[f,m]),g=reactExports.useMemo(()=>h.map(e=>({...e,displayInfo:{...e.displayInfo,startTime:cy(e.displayInfo.startTime,{showTime:!1})}})),[h]),b=reactExports.useMemo(()=>Object.values(g.reduce((e={},t)=>(e[t.displayInfo.startTime]=e[t.displayInfo.startTime]?.concat([])??[],e[t.displayInfo.startTime].push(t),e),{})),[g]);return reactExports.useEffect(()=>{l(h.length);},[h,l]),jsxRuntimeExports.jsx(Bf,{elementProps:{className:o,...n},children:b&&0!==b.length?b.map(t=>jsxRuntimeExports.jsx(r,{title:String(t[0].displayInfo.startTime)??null,children:t.map(t=>jsxRuntimeExports.jsx(a,{item:t},t.id))},t[0].id??"")):jsxRuntimeExports.jsx(i,{})})}function uy({className:n,icon:o="download",text:i="No downloads to display.",...r}){const a=S("io-dm-no-items",n);return jsxRuntimeExports.jsxs("div",{className:a,...r,children:[jsxRuntimeExports.jsx(N,{variant:o}),jsxRuntimeExports.jsx("p",{children:i})]})}function dy({className:n,title:o,children:i,...r}){const a=S("io-dm-item-group",n);return jsxRuntimeExports.jsxs("div",{className:a,...r,children:[o&&jsxRuntimeExports.jsx("p",{className:"io-dm-items-group-title",children:o}),i]})}function py({className:o,item:i,...r}){const{ItemHeader:a,ItemBody:s,ItemFooter:c}=xy(),{state:l,url:u,filename:d,receivedBytes:p,totalBytes:f,speed:m,timeRemaining:h}=i.displayInfo;if(!i)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const g=S("io-dm-item",i.displayInfo.state&&[l],o);return jsxRuntimeExports.jsxs("div",{className:g,...r,children:[jsxRuntimeExports.jsx(a,{itemID:i.id,filename:d,state:l}),jsxRuntimeExports.jsx(s,{state:l,url:u,bytesReceived:p,bytesTotal:f,speed:m,timeRemaining:h}),jsxRuntimeExports.jsx(c,{itemID:i.id,state:l})]})}function fy({bytesReceived:t=0,bytesTotal:n=0,...o}){const i=reactExports.useCallback(()=>t&&n?Math.round(t/n*100):0,[t,n]);return jsxRuntimeExports.jsx(_l,{value:i(),...o})}function my({className:n,itemID:o,filename:i,state:r,pauseResume:s,showInFolder:c,cancel:l,remove:u,...d}){const p=S("io-dm-item-header",n),{pauseResumeItem:f,showItemInFolder:m,cancelItem:h,removeItem:g}=ty(),b="progressing"===r||"paused"===r,v="interrupted"===r||"cancelled"===r,y=b?"Cancel Download":"Remove Download",w=l??h,I=u??g,C=function(e,t,n,o){return "paused"===e||"progressing"===e?{statusIcon:"paused"===e?"play":"pause",onStatusActionClick:()=>n(t)}:"completed"===e?{statusIcon:"folder",onStatusActionClick:()=>o(t)}:null}(r,o,s??f,c??m),x=reactExports.useCallback(()=>{b?w(o):I(o);},[b,w,o,I]);return jsxRuntimeExports.jsxs("div",{className:p,...d,children:[jsxRuntimeExports.jsx(O,{text:i,style:{textDecoration:v?"line-through":"none"}}),jsxRuntimeExports.jsxs(ae,{children:[C&&jsxRuntimeExports.jsx(P,{icon:C.statusIcon,iconSize:"12",onClick:C.onStatusActionClick,className:"io-dm-compact-mode-only"}),jsxRuntimeExports.jsx(P,{icon:"close",iconSize:"12",title:y,onClick:x})]})]})}function hy({className:n,state:o,url:i,bytesReceived:r=0,bytesTotal:a=0,speed:s=0,timeRemaining:c=0,...l}){const u=S("io-dm-item-body",n),d=e=>{const t=["Bytes","KB","MB","GB","TB"];if(0===e)return "0";const n=Math.floor(Math.log(e)/Math.log(1024));return 0===n?`${e}${t[n]}`:`${(e/1024**n).toFixed(1)}${t[n]}`};return jsxRuntimeExports.jsxs("div",{className:u,...l,children:[jsxRuntimeExports.jsx("p",{className:"io-text-small",children:i}),(f=o,"cancelled"===f||"interrupted"===f||"completed"===f?null:jsxRuntimeExports.jsx(fy,{variant:"paused"===f?"paused":"active",bytesReceived:r,bytesTotal:a})),jsxRuntimeExports.jsx("p",{className:"io-text-default-lh16",children:"completed"===o?`${d(r??0)} - Done`:"cancelled"===o||"interrupted"===o?`${d(r??0)}/${d(a??0)} - Failed`:`${d(r??0)}/${d(a??0)} (${p=s,(p?`${(p/1e6/8).toFixed(2)}MB/s`:0)??0}) - ${(e=>{const t=Math.floor(e/3600),n=Math.floor(e%3600/60);let o="";return t>0&&(o+=`${t} hour${t>1?"s":""}, `),n>0&&(o+=`${n} min${n>1?"s":""}, `),((e=Math.floor(e%60))>0||""===o)&&(o+=`${e} sec${1===e?"":"s"}`),`${o.trim()} left`})(c)??0}`})]});var p,f;}const gy={success:"check-solid",warning:"exclamation-mark",critical:"exclamation-mark"};function by({className:n,variant:o,text:i}){const r=S("io-dm-item-status",`io-dm-item-status-${o}`,n);return jsxRuntimeExports.jsxs("div",{className:r,children:[o&&jsxRuntimeExports.jsx(N,{variant:gy[o],className:"icon-severity",size:"10"}),i&&jsxRuntimeExports.jsx("p",{className:"io-text-smaller",children:i})]})}function vy({className:o,itemID:i,state:r,pauseResume:s,showInFolder:c,cancel:l,...u}){const d=S("io-dm-item-footer",o),{pauseResumeItem:p,showItemInFolder:f,cancelItem:m}=ty(),h=reactExports.useCallback(e=>{s?s(e):p(e);},[s,p]),g=reactExports.useCallback(e=>{c?c(e):f(e);},[c,f]),b=reactExports.useCallback(e=>{l?l(e):m(e);},[l,m]);return jsxRuntimeExports.jsx("div",{className:d,...u,children:(()=>{switch(r){case"progressing":return jsxRuntimeExports.jsxs(ae,{align:"right",children:[jsxRuntimeExports.jsx(ae.Button,{variant:"primary",text:"Pause",onClick:()=>h(i)}),jsxRuntimeExports.jsx(ae.Button,{variant:"link",text:"Cancel",onClick:()=>b(i)})]});case"paused":return jsxRuntimeExports.jsx(ae,{align:"right",children:jsxRuntimeExports.jsx(ae.Button,{variant:"primary",text:"Resume",onClick:()=>h(i)})});case"completed":return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(by,{variant:"success",text:"Complete"}),jsxRuntimeExports.jsx(ae,{align:"right",children:jsxRuntimeExports.jsx(ae.Button,{variant:"primary",text:"Show in Folder",onClick:()=>g(i)})})]});case"cancelled":return jsxRuntimeExports.jsx(by,{variant:"warning",text:"Cancelled"});case"interrupted":return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(by,{variant:"critical",text:"Failed"}),jsxRuntimeExports.jsx(ae,{align:"right",children:jsxRuntimeExports.jsx(ae.Button,{variant:"primary",text:"Retry",onClick:()=>h(i)})})]});default:return null}})()})}function yy({className:n,title:o="Download Settings",...i}){const r=S("io-dm-settings-panel",n),{configuration:{downloadFolder:a},hideSettings:s,setDownloadLocation:c,setDownloadLocationWithDialog:l,isDownloadLocationDialogVisible:u,downloadLocationList:d}=ty();return jsxRuntimeExports.jsxs(Yl,{className:r,...i,children:[jsxRuntimeExports.jsxs(Yl.Header,{children:[jsxRuntimeExports.jsx(Yl.Header.Title,{size:"large",text:o,tag:"h1"}),jsxRuntimeExports.jsx(Yl.Header.ButtonGroup,{children:jsxRuntimeExports.jsx(P,{className:"non-draggable",variant:"circle",icon:"close",size:"32",onClick:()=>{s();},disabled:u})})]}),jsxRuntimeExports.jsx(Yl.Body,{children:jsxRuntimeExports.jsxs(ae,{children:[jsxRuntimeExports.jsxs(re,{variant:"light",disabled:u,children:[jsxRuntimeExports.jsx(re.Button,{children:jsxRuntimeExports.jsx("span",{className:"io-dm-settings-panel-download-location",children:a??d[0]})}),d.length>1&&jsxRuntimeExports.jsx(re.Content,{children:jsxRuntimeExports.jsx(re.List,{children:d.map((t,n)=>!t||0===n||n>3?null:jsxRuntimeExports.jsx(re.Item,{onClick:()=>{c(t);},children:t},t))})})]}),jsxRuntimeExports.jsx(D,{className:"io-btn io-dm-settings-panel-download-location-btn",text:"Browse",onClick:()=>{l();},disabled:u})]})})]})}const wy={Header:Kv,ItemSearch:ny,HeaderButtons:oy,MoreButton:iy,ExternalButton:ry,CloseButton:ay,Body:ly,DownloadListEmpty:uy,ItemGroup:dy,Item:py,ItemProgress:fy,ItemHeader:my,ItemBody:hy,ItemFooter:vy,Settings:yy},Iy=reactExports.createContext(wy),Cy=reactExports.memo(({children:t,components:n})=>{const o=reactExports.useMemo(()=>({...wy,...n}),[n]);return jsxRuntimeExports.jsx(Iy.Provider,{value:o,children:t})});Cy.displayName="ComponentsStore";const xy=()=>reactExports.useContext(Iy);const Sy=({className:n,label:o="Location",...i})=>{const{configuration:{downloadFolder:r},setDownloadLocationWithDialog:a,isDownloadLocationDialogVisible:s,downloadLocationList:c}=ty();return jsxRuntimeExports.jsxs(T,{className:S("io-preferences-download-section",n),...i,children:[jsxRuntimeExports.jsxs("div",{className:"flex jc-between ai-center",children:[jsxRuntimeExports.jsx("label",{className:"io-text-clipper",children:o}),jsxRuntimeExports.jsx(D,{text:"Change",onClick:a,disabled:s})]}),jsxRuntimeExports.jsx("p",{children:r??c?.[0]??"Not set"})]})},Ny=({align:t="right",label:n="Ask where to save each file before downloading",...o})=>jsxRuntimeExports.jsx(Gv,{align:t,label:n,prefKey:ls,...o}),Py=({title:n="System",...o})=>{const{SystemRestartSection:i,SystemShutdownSection:r}=Hy();return jsxRuntimeExports.jsxs(T,{title:n,...o,children:[jsxRuntimeExports.jsx(i,{}),jsxRuntimeExports.jsx(r,{})]})},Ey="T42.GD.Execute",Ly=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],By=(e,t)=>e in t;function Oy({time:e,frequency:t,day:n}){const[o,i]=e.split(":"),r=Number.parseInt(o,10),a=Number.parseInt(i,10);let s="*";return "weekly"===t&&n&&(s=function(e){const t={Sunday:0,Monday:1,Tuesday:2,Wednesday:3,Thursday:4,Friday:5,Saturday:6};if(!By(e,t))throw new Error(`Invalid day: ${e}`);return t[e]}(n).toString()),`${a} ${r} * * ${s}`}function Ty(e){const t=reactExports.useContext(IOConnectContext),{value:n,update:o}=Rs({prefKey:Ry(e)}),{value:i,update:r}=Rs({prefKey:Ry(e,"Time")}),{value:s,update:l}=Rs({prefKey:Ry(e,"Frequency")}),{value:u,update:d}=Rs({prefKey:Ry(e,"Day")}),f=reactExports.useCallback(async()=>{try{await t.interop.invoke(Ey,{command:`cancel-${e}`});}catch(e){console.error(e);}},[t,e]),m=reactExports.useCallback(async()=>{try{const n=Oy({time:i??"12:00",frequency:s??"daily",day:"weekly"===s?u:"*"});await t.interop.invoke(Ey,{command:`schedule-${e}`,args:{cronTime:n,discardUnsavedLayoutChanges:!1}});}catch(t){console.error(`Failed to update cron job for ${e}:`,t);}},[t,e,i,s,u]);reactExports.useEffect(()=>{t&&n&&m();},[t,n,i,s,u,m]);return {enabled:n??!1,time:i??"12:00",frequency:s??"daily",day:u??"Monday",setEnabled:async e=>{e||await f();try{await o(e);}catch(e){console.error("Failed to update enabled state:",e);}},setTime:async e=>{try{await r(e);}catch(e){console.error("Failed to update time:",e);}},setFrequency:async e=>{try{await l(e),"daily"===e&&await d(void 0);}catch(e){console.error("Failed to update frequency:",e);}},setDay:async e=>{var t;if(t=e,Ly.includes(t))try{await d(e);}catch(e){console.error("Failed to update day:",e);}else console.error("Invalid day provided");}}}function Ry(e,t){const n="restart"===e?"_system_scheduleRestart":"_system_scheduleShutdown";return t?`${n}${t}`:n}function Gy({className:n,variant:o,...i}){const r=S("io-block-list-gap",o,n),{enabled:a,time:s,frequency:c,day:l,setEnabled:u,setTime:d,setFrequency:p,setDay:f}=Ty(o);return jsxRuntimeExports.jsxs(T,{className:r,...i,children:[jsxRuntimeExports.jsx(yv,{label:`Schedule ${o}`,align:"right",onChange:e=>u(e.target.checked),checked:a}),jsxRuntimeExports.jsxs("div",{className:"scheduler-controls",children:[jsxRuntimeExports.jsx("div",{className:"io-control-input io-control-leading-icon direction-up",children:jsxRuntimeExports.jsx("input",{type:"time",className:"io-input",value:s,onChange:e=>d(e.target.value)})}),jsxRuntimeExports.jsxs(ti,{text:c.charAt(0).toUpperCase()+c.slice(1),icon:"chevron-down",iconRight:!0,children:[jsxRuntimeExports.jsx(ti.Item,{onClick:()=>p("daily"),children:"Daily"}),jsxRuntimeExports.jsx(ti.Item,{onClick:()=>p("weekly"),children:"Weekly"})]}),"weekly"===c&&jsxRuntimeExports.jsx(ti,{text:l,icon:"chevron-down",iconRight:!0,children:Ly.map(t=>jsxRuntimeExports.jsx(ti.Item,{onClick:()=>f(t),children:t},t))})]})]})}function Fy({className:t,...n}){return jsxRuntimeExports.jsx(Gy,{...n,className:t,variant:"restart"})}function My({className:t,...n}){return jsxRuntimeExports.jsx(Gy,{...n,className:t,variant:"shutdown"})}const Dy={Body:Ov,General:Tv,Theme:Rv,Launchpad:({title:n="Launchpad",...o})=>{const{MinimizeToTray:i,PinnedPosition:r,HideFavoritesFromLaunchpad:a,Docking:s,ExtendedArea:c}=Hy();return jsxRuntimeExports.jsxs(T,{title:n,...o,children:[jsxRuntimeExports.jsx(i,{}),jsxRuntimeExports.jsx(r,{}),jsxRuntimeExports.jsx(a,{}),jsxRuntimeExports.jsx(s,{}),jsxRuntimeExports.jsx(c,{})]})},MinimizeToTray:Fv,PinnedPosition:Dv,HideFavoritesFromLaunchpad:Wv,Docking:({className:n,title:o="Docking",...i})=>{const r=S("io-preferences-panel-docking",n),{AllowDocking:a,DockedAlwaysOnTop:s,DockedClaimsSpace:c}=Hy();return jsxRuntimeExports.jsxs(T,{className:r,title:o,...i,children:[jsxRuntimeExports.jsx(a,{}),jsxRuntimeExports.jsx(s,{}),jsxRuntimeExports.jsx(c,{})]})},AllowDocking:Vv,DockedAlwaysOnTop:Hv,DockedClaimsSpace:zv,ExtendedArea:({className:n,title:o="Extended Area",...i})=>{const r=S("io-preferences-panel-extended-area",n),{ShowExtendedArea:a,HideLabelsInExtendedArea:s,ShowFavoritesInExtendedArea:c,ShowRecentAppsInExtendedArea:l}=Hy();return jsxRuntimeExports.jsxs(T,{className:r,title:o,...i,children:[jsxRuntimeExports.jsx(a,{}),jsxRuntimeExports.jsx(s,{}),jsxRuntimeExports.jsx(c,{}),jsxRuntimeExports.jsx(l,{})]})},ShowExtendedArea:Xv,HideLabelsInExtendedArea:Zv,ShowFavoritesInExtendedArea:jv,ShowRecentAppsInExtendedArea:Jv,Layouts:Yv,LayoutsSaveCurrentOnExit:$v,LayoutsShowUnsavedChangesPrompt:_v,LayoutsShowDeletePrompt:Uv,LayoutsShowHidden:({align:t="right",label:n="Show hidden Layouts and Workspaces",...o})=>ga(reactExports.useContext(IOConnectContext))?jsxRuntimeExports.jsx(Gv,{align:t,label:n,prefKey:ss,"data-testid":"layouts-show-hidden-toggle",...o}):null,Downloads:Qv,DownloadsLocation:Sy,DownloadsAskForEachDownload:Ny,System:Py,SystemRestartSection:Fy,SystemShutdownSection:My},Wy=reactExports.createContext(Dy),Vy=reactExports.memo(({children:t,components:n})=>{const o=reactExports.useMemo(()=>({...Dy,...n}),[n]);return jsxRuntimeExports.jsx(Wy.Provider,{value:o,children:t})});Vy.displayName="PreferencesPanelComponentsStoreProvider";const Hy=()=>reactExports.useContext(Wy);function jy({className:n,title:o="General",...i}){const r=S("io-notifications-settings-panel-general",n),{AllowNotifications:a,AllowNotificationToasts:s,ShowNotificationBadge:c,CloseNotificationOnClick:l,PanelAutoHide:u,HideToastsAfter:d}=Lw(),p=iv();return jsxRuntimeExports.jsx("div",{className:r,...i,children:jsxRuntimeExports.jsxs(T,{title:o,children:[p&&jsxRuntimeExports.jsx(a,{}),p&&jsxRuntimeExports.jsx(s,{}),jsxRuntimeExports.jsx(c,{}),p&&jsxRuntimeExports.jsx(u,{}),p&&jsxRuntimeExports.jsx(l,{}),p&&jsxRuntimeExports.jsx(d,{})]})})}function Jy(e){if(e&&e.errorHandling&&"function"!=typeof e.errorHandling&&"log"!==e.errorHandling&&"silent"!==e.errorHandling&&"throw"!==e.errorHandling)throw new Error('Invalid options passed to createRegistry. Prop errorHandling should be ["log" | "silent" | "throw" | (err) => void], but '+typeof e.errorHandling+" was passed");var t=e&&"function"==typeof e.errorHandling&&e.errorHandling,n={};function o(n,o){var i=n instanceof Error?n:new Error(n);if(t)t(i);else {var r='[ERROR] callback-registry: User callback for key "'+o+'" failed: '+i.stack;if(e)switch(e.errorHandling){case"log":return console.error(r);case"silent":return;case"throw":throw new Error(r)}console.error(r);}}return {add:function(e,t,i){var r=n[e];return r||(r=[],n[e]=r),r.push(t),i&&setTimeout(function(){i.forEach(function(i){var r;if(null===(r=n[e])||void 0===r?void 0:r.includes(t))try{Array.isArray(i)?t.apply(void 0,i):t.apply(void 0,[i]);}catch(t){o(t,e);}});},0),function(){var o=n[e];o&&(o=o.reduce(function(e,n,o){return n===t&&e.length===o||e.push(n),e},[]),0===o.length?delete n[e]:n[e]=o);}},execute:function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];var r=n[e];if(!r||0===r.length)return [];var a=[];return r.forEach(function(n){try{var i=n.apply(void 0,t);a.push(i);}catch(t){a.push(void 0),o(t,e);}}),a},clear:function(){n={};},clearKey:function(e){n[e]&&delete n[e];}}}Jy.default=Jy;x(Jy);function _y(e){const t=reactExports.useContext(IOConnectContext),n=iv(),[o,i]=reactExports.useState([]),[r,s]=reactExports.useState(0),d="Platform",f=reactExports.useCallback((e="asc")=>{if(null===n)return [];const t=[...o].sort((t,n)=>{const o=(t.title??t.name).toLowerCase(),i=(n.title??n.name).toLowerCase();return "asc"===e?o.localeCompare(i):i.localeCompare(o)});if(!n){const e=t.findIndex(e=>e.name===d);if(-1!==e){const[n]=t.splice(e,1);t.unshift(n);}}return t},[o,n]),m=reactExports.useMemo(()=>f("asc"),[f]),h=reactExports.useMemo(()=>f("desc"),[f]);reactExports.useEffect(()=>{if(null===n||n)return;const e={title:"System",name:d,hidden:!1,userProperties:{hidden:!1}};i(t=>t.some(t=>t.name===e.name)?t:[...t,e]);},[n]),reactExports.useEffect(()=>{if(!t)return;let e,n,o,r=!1;const a=e=>{i(t=>[...t.filter(t=>t.name!==e.name),{title:e.title??e.name,name:e.name,hidden:e.hidden,userProperties:e.userProperties}]);},s=e=>{i(t=>t.filter(t=>t.name!==e.name));},c=e=>{i(t=>t.find(t=>t.name===e.name)?t.map(t=>t.name===e.name?{...t,title:e.title??t.title,hidden:e.hidden??t.hidden,userProperties:e.userProperties??t.userProperties}:t):t);};return (async()=>{const l=await Sv.getApplications(t);if(r)return;i(e=>{const t=new Map;return e.forEach(e=>t.set(e.name,e)),l.forEach(e=>{t.set(e.name,{title:e.title??e.name,name:e.name,hidden:e.hidden,userProperties:e.userProperties});}),Array.from(t.values())});const[u,d,p]=await Promise.all([Sv.onAppAdded(t,a),Sv.onAppRemoved(t,s),Sv.onAppChanged(t,c)]);if(r)return u?.(),d?.(),void p?.();e=u,n=d,o=p;})().catch(e=>{console.error("Failed to initialize apps",e);}),()=>{r=!0,e?.(),n?.(),o?.();}},[t]);return {apps:reactExports.useMemo(()=>{if(!e?.sourceFilter||!Array.isArray(o))return o;const{allowed:t=[],blocked:n=[]}=e.sourceFilter,i=t.includes("*"),r=n.includes("*");let a=0;const c=o.map(e=>{const n=i||t.includes(e.name),o=!r&&n;return o&&a++,{...e,allowed:o}});return s(a),c},[e,o]),allowedApps:r,sortedAppsAsc:m,sortedAppsDesc:h,sortAppsAlphabetically:f}}const tw=reactExports.createContext({allApps:[],settings:{},configuration:{},notifications:[],notificationsCount:0,onClose:()=>{},allApplications:0,clearAll:()=>{},showPanel:()=>{},hidePanel:()=>{},saveFilter:()=>{},clearAllOld:()=>{},notificationStacks:[],saveSetting:()=>{},allowedApplications:0,saveAllFilter:()=>{},isBulkActionsSupported:!1,selectedNotifications:[],selectNotification:()=>{},selectAllNotifications:()=>{},clearMany:()=>{},snooze:()=>{},snoozeMany:()=>{},setState:()=>{},setStates:()=>{},setCount:()=>{}}),nw=()=>reactExports.useContext(tw);function ow({label:t="Allow notifications",align:n="right",...o}){const{settings:i,saveSetting:r}=nw(),s=iv(),c=reactExports.useCallback(e=>{r({enabledNotifications:e.target.checked});},[r]);return s?jsxRuntimeExports.jsx(yv,{label:t,align:n,onChange:c,checked:i.enabledNotifications??!1,...o}):null}function iw({label:t="Allow notification toasts",align:n="right",...o}){const{settings:i,saveSetting:r}=nw(),s=iv(),c=s&&!i.enabledNotifications,l=reactExports.useCallback(e=>{r({enabledToasts:e.target.checked});},[r]);return s?jsxRuntimeExports.jsx(yv,{label:t,align:n,onChange:l,checked:i.enabledToasts??!1,disabled:c,...o}):null}function rw({label:t="Show notification badge",align:n="right",...o}){const{settings:i,saveSetting:r}=nw(),s=iv()&&!i.enabledNotifications,c=reactExports.useCallback(e=>{r({showNotificationBadge:e.target.checked});},[r]);return jsxRuntimeExports.jsx(yv,{label:t,align:n,onChange:c,checked:i.showNotificationBadge??!1,disabled:s,...o})}function aw({label:t="Close notification on click",align:n="right",...o}){const{settings:i,saveSetting:r}=nw(),s=iv(),c=s&&!i.enabledNotifications,l=reactExports.useCallback(e=>{r({closeNotificationOnClick:e.target.checked});},[r]);return s?jsxRuntimeExports.jsx(yv,{label:t,align:n,onChange:l,checked:i.closeNotificationOnClick??!1,disabled:c,...o}):null}function sw({label:t="Auto hide panel",align:n="right",...o}){const{settings:i,saveSetting:r}=nw(),s=iv(),c=reactExports.useCallback(e=>{r({autoHidePanel:e.target.checked});},[r]);return s?jsxRuntimeExports.jsx(yv,{label:t,align:n,onChange:c,checked:i.autoHidePanel??!1,...o}):null}const cw=(e,t)=>e?`${e} ${t}${1!==e?"s":""}`:"",lw=e=>{const t=Math.floor(e/60),n=e%60,o=cw(t,"minute"),i=cw(n,"second");return o+(o&&i?" ":"")+i};function uw({className:n,title:o="Hide toasts after",items:i=[15,30,45,60],...r}){const s=S("flex","jc-between","ai-center",n),{settings:c,saveSetting:l}=nw(),u=iv(),d=u&&!c.enabledNotifications,p=reactExports.useCallback((e=15e3)=>{c.toastExpiry!==e&&l({toastExpiry:1e3*e});},[c.toastExpiry,l]);return u?jsxRuntimeExports.jsxs("div",{className:s,...r,children:[jsxRuntimeExports.jsx("div",{className:"io-text-clipper "+(d?"io-text-disabled":""),children:jsxRuntimeExports.jsx("span",{children:o})}),jsxRuntimeExports.jsxs(re,{variant:"light",disabled:d,children:[jsxRuntimeExports.jsx(re.Button,{text:lw((c.toastExpiry??0)/1e3)}),jsxRuntimeExports.jsx(re.Content,{children:jsxRuntimeExports.jsx(re.List,{variant:"single",children:i.map(t=>jsxRuntimeExports.jsx(re.Item,{onClick:()=>{p(t);},children:lw(t)},t))})})]})]}):null}function dw({className:n,title:o="Stacking",...i}){const r=S("io-notifications-settings-panel-stacking",n),{ToastStacking:a,ToastStackBy:s}=Lw();return iv()?jsxRuntimeExports.jsx("div",{className:r,...i,children:jsxRuntimeExports.jsxs(T,{title:o,children:[jsxRuntimeExports.jsx(a,{}),jsxRuntimeExports.jsx(s,{})]})}):null}function pw({label:t="Allow toast stacking",align:n="right",...o}){const{settings:i,saveSetting:r}=nw(),s=iv(),c=s&&!i.enabledNotifications,l=reactExports.useCallback(e=>{r({toastStacking:e.target.checked});},[r]);return s?jsxRuntimeExports.jsx(yv,{label:t,align:n,onChange:l,checked:i.toastStacking??!1,disabled:c,...o}):null}const fw={application:"Application",severity:"Priority"},mw=Object.fromEntries(Object.entries(fw).map(([e,t])=>[t,e]));function hw({className:n,title:o="Group by",...i}){const r=S("flex","jc-between","ai-center",n),{settings:s,saveSetting:c}=nw(),l=iv(),u=l&&!s.enabledNotifications,d=reactExports.useCallback((e="severity")=>{s.stackBy!==e&&c({stackBy:e.toLowerCase()});},[s.stackBy,c]);if(!l)return null;const p=Object.values(fw);return jsxRuntimeExports.jsxs("div",{className:r,...i,children:[jsxRuntimeExports.jsx("div",{className:S("io-text-clipper",{"io-text-disabled":u}),children:jsxRuntimeExports.jsx("span",{children:o})}),jsxRuntimeExports.jsxs(re,{variant:"light",disabled:u,children:[jsxRuntimeExports.jsx(re.Button,{text:fw[s.stackBy??"severity"]}),jsxRuntimeExports.jsx(re.Content,{children:jsxRuntimeExports.jsx(re.List,{variant:"single",children:p.map(t=>jsxRuntimeExports.jsx(re.Item,{onClick:()=>{const e=mw[t];d(e);},children:t},t))})})]})]})}function gw({className:n,title:o="Placement",...i}){const r=S("io-notifications-settings-panel-placement",n),{PlacementPanel:a,PlacementToasts:s}=Lw();return iv()?jsxRuntimeExports.jsx("div",{className:r,...i,children:jsxRuntimeExports.jsxs(T,{title:o,children:[jsxRuntimeExports.jsx(a,{}),jsxRuntimeExports.jsx(s,{})]})}):null}const bw=e=>e.replace(/(^|-)\w/g,e=>e.toUpperCase().replace("-"," "));function vw({className:n,title:o="Panel position",...i}){const r=S("flex","jc-between","ai-center",n),{settings:s,saveSetting:c}=nw(),l=iv(),u=reactExports.useCallback(e=>{e||(e="right"),s.placement?.panel!==e&&c({placement:{...s.placement,panel:e.toLowerCase()}});},[s.placement,c]);if(!l)return null;return jsxRuntimeExports.jsxs("div",{className:r,...i,children:[jsxRuntimeExports.jsx("div",{className:"io-text-clipper",children:jsxRuntimeExports.jsx("span",{children:o})}),jsxRuntimeExports.jsxs(re,{variant:"light",children:[jsxRuntimeExports.jsx(re.Button,{text:s.placement?.panel?bw(s.placement?.panel):"Right"}),jsxRuntimeExports.jsx(re.Content,{children:jsxRuntimeExports.jsx(re.List,{variant:"single",children:["Right","Left"].map(t=>jsxRuntimeExports.jsx(re.Item,{onClick:()=>{u(t);},children:t},t))})})]})]})}function yw({className:n,title:o="Toasts position",...i}){const r=S("flex","jc-between","ai-center",n),{settings:s,saveSetting:c}=nw(),l=iv(),u=reactExports.useCallback(e=>{if(e||(e="bottom-right"),s.placement?.toasts===e)return;const t=e.replace(/\s+/g,"-").toLowerCase();c({placement:{...s.placement,toasts:t}});},[s.placement,c]);if(!l)return null;return jsxRuntimeExports.jsxs("div",{className:r,...i,children:[jsxRuntimeExports.jsx("div",{className:"io-text-clipper",children:jsxRuntimeExports.jsx("span",{children:o})}),jsxRuntimeExports.jsxs(re,{variant:"light",children:[jsxRuntimeExports.jsx(re.Button,{text:s.placement?.toasts?bw(s.placement?.toasts):"Bottom Right"}),jsxRuntimeExports.jsx(re.Content,{children:jsxRuntimeExports.jsx(re.List,{variant:"single",children:["Top Right","Top Left","Bottom Right","Bottom Left"].map(t=>jsxRuntimeExports.jsx(re.Item,{onClick:()=>{u(t);},children:t},t))})})]})]})}function ww({className:t,title:n="Snooze",...o}){const i=S("io-notifications-settings-panel-snooze",t),{SnoozeDuration:r}=Lw(),{settings:a}=nw();return iv()&&a.snooze?.enabled?jsxRuntimeExports.jsx("div",{className:i,...o,children:jsxRuntimeExports.jsx(T,{title:n,children:jsxRuntimeExports.jsx(r,{})})}):null}function Iw({className:n,title:o="Default duration",items:i=[60,120,180,300],...r}){const s=S("flex","jc-between","ai-center",n),{settings:c,saveSetting:l}=nw(),u=iv(),d=u&&!c.enabledNotifications,p=reactExports.useCallback((e=6e4)=>{c.snooze&&c.snooze?.duration!==e&&l({snooze:{...c.snooze,duration:1e3*e}});},[c.snooze,l]);return u&&c.snooze?.enabled?jsxRuntimeExports.jsxs("div",{className:s,...r,children:[jsxRuntimeExports.jsx("div",{className:S("io-text-clipper",{"io-text-disabled":d}),children:jsxRuntimeExports.jsx("span",{children:o})}),jsxRuntimeExports.jsxs(re,{variant:"light",disabled:d,children:[jsxRuntimeExports.jsx(re.Button,{text:lw((c.snooze?.duration??0)/1e3)}),jsxRuntimeExports.jsx(re.Content,{children:jsxRuntimeExports.jsx(re.List,{variant:"single",children:i.map(t=>jsxRuntimeExports.jsx(re.Item,{onClick:()=>{p(t);},children:lw(t)},t))})})]})]}):null}function Cw({className:n,title:o,...i}){const r=S("io-notifications-settings-panel-subscriptions",n),{SubscribeAll:a,SubscribeApp:s,SubscribeMuteAll:c,SubscribeMuteApp:l}=Lw(),{sortAppsAlphabetically:u}=_y(),d=iv(),p=u(),f="io-notifications-subscriptions-grid "+(d?"with-three-columns":"with-two-columns");return jsxRuntimeExports.jsx("div",{className:r,...i,children:jsxRuntimeExports.jsxs(T,{title:o??(d?"Subscribe & Mute":"Subscribe"),children:[jsxRuntimeExports.jsxs("div",{className:f,children:[jsxRuntimeExports.jsx("p",{className:"io-text-section",children:"Sources"}),jsxRuntimeExports.jsx("p",{className:"io-text-section",children:"Subscribe"}),d&&jsxRuntimeExports.jsx("p",{className:"io-text-section",children:"Mute"})]}),jsxRuntimeExports.jsxs("div",{className:f,children:[jsxRuntimeExports.jsx("p",{children:"All Sources"}),jsxRuntimeExports.jsx(a,{label:""}),d&&jsxRuntimeExports.jsx(c,{label:""})]}),p.map(n=>!n||n.hidden||n?.userProperties?.hidden?null:jsxRuntimeExports.jsxs("div",{className:f,children:[jsxRuntimeExports.jsx("p",{children:n.title??n.name}),jsxRuntimeExports.jsx(s,{app:n,label:""}),d&&jsxRuntimeExports.jsx(l,{app:n,label:""})]},n.name))]})})}function xw({label:t="All apps",align:n="right",...o}){const{settings:i,configuration:r,saveAllFilter:s}=nw(),c=iv()&&!i.enabledNotifications,l=reactExports.useCallback(e=>{s({subscribe:e.target.checked});},[s]);return jsxRuntimeExports.jsx(yv,{align:n,label:t,onChange:l,checked:(r.sourceFilter?.allowed?.includes("*")&&0===r.sourceFilter?.blocked?.length)??!1,disabled:c,...o})}function Aw({label:t="App",align:n="right",app:o,...i}){const{allApps:r,settings:s,configuration:c,saveFilter:l}=nw(),u=iv()&&!s.enabledNotifications,d=reactExports.useCallback((e,t)=>{const n={...c.sourceFilter},o=n.allowed?.indexOf("*");"number"==typeof o&&o>-1&&(n.allowed?.splice(o,1),r.forEach(e=>{e.name!==t.name&&n.allowed?.push(e.name);})),e?(n.allowed=[...new Set([...n.allowed??[],t.name])],n.blocked=n.blocked?.filter(e=>e!==t.name)):(n.allowed=n.allowed?.filter(e=>e!==t.name),n.blocked=[...new Set([...n.blocked??[],t.name])]),n.allowed?.length&&n.blocked?.includes("*")&&n.blocked.splice(n.blocked.indexOf("*"),1),l(n);},[r,c.sourceFilter,l]);return jsxRuntimeExports.jsx(yv,{id:`subscribe-${o.name}`,label:t,align:n,onChange:e=>d(e.target.checked,o),checked:(c.sourceFilter?.allowed?.includes("*")&&!c.sourceFilter?.blocked?.includes(o.name)||c.sourceFilter?.allowed?.includes(o.name))??!1,disabled:u,...i})}function kw({label:t="Mute all",align:n="right",...o}){const{settings:i,configuration:r,saveAllFilter:s}=nw(),c=iv(),l=c&&(!i.enabledNotifications||-1===r.sourceFilter?.allowed?.indexOf("*")),u=reactExports.useCallback(e=>{s({mute:e.target.checked});},[s]);return c?jsxRuntimeExports.jsx(yv,{align:n,label:t,onChange:u,checked:r.sourceFilter?.muted?.includes("*")??!1,disabled:l??!1,...o}):null}function Sw({label:t="App",align:n="right",app:o,...i}){const{allApps:r,settings:s,configuration:c,saveFilter:l}=nw(),u=iv(),d=u&&(!s.enabledNotifications||c.sourceFilter?.blocked?.includes("*")||c.sourceFilter?.blocked?.includes(o.name)||0===c.sourceFilter?.allowed?.length||-1===c.sourceFilter?.allowed?.indexOf(o.name)&&-1===c.sourceFilter?.allowed?.indexOf("*")&&0===c.sourceFilter?.blocked?.length),p=reactExports.useCallback((e,t)=>{const n={...c.sourceFilter},o=n?.muted?.indexOf("*");"number"==typeof o&&o>-1&&(n.muted?.splice(o,1),r.forEach(e=>{e.name===t.name||e.hidden||n.muted?.push(e.name);})),e?n.muted?.push(t.name):n.muted=n.muted?.filter(e=>e!==t.name),l(n);},[r,c.sourceFilter,l]);return !u||o.hidden?null:jsxRuntimeExports.jsx(yv,{id:`mute-${o.name}`,label:t,align:n,onChange:e=>p(e.target.checked,o),checked:(c.sourceFilter?.muted?.includes("*")||c.sourceFilter?.muted?.includes(o.name))??!1,disabled:d??!1,...i})}const Nw={Body:n=>{const{General:o,Placement:i,Stacking:r,Snooze:a,Subscriptions:s}=Lw();return jsxRuntimeExports.jsxs(Bf,{element:jl,elementProps:n,children:[jsxRuntimeExports.jsx(o,{}),jsxRuntimeExports.jsx(r,{}),jsxRuntimeExports.jsx(i,{}),jsxRuntimeExports.jsx(a,{}),jsxRuntimeExports.jsx(s,{})]})},General:jy,AllowNotifications:ow,AllowNotificationToasts:iw,ShowNotificationBadge:rw,CloseNotificationOnClick:aw,PanelAutoHide:sw,HideToastsAfter:uw,Stacking:dw,ToastStacking:pw,ToastStackBy:hw,Placement:gw,PlacementPanel:vw,PlacementToasts:yw,Snooze:ww,SnoozeDuration:Iw,Subscriptions:Cw,SubscribeAll:xw,SubscribeApp:Aw,SubscribeMuteAll:kw,SubscribeMuteApp:Sw},Pw=reactExports.createContext(Nw),Ew=reactExports.memo(({children:t,components:n})=>{const o=reactExports.useMemo(()=>({...Nw,...n}),[n]);return jsxRuntimeExports.jsx(Pw.Provider,{value:o,children:t})});Ew.displayName="NotificationsSettingsPanelComponentsStoreProvider";const Lw=()=>reactExports.useContext(Pw),Tw=({name:n,value:o})=>jsxRuntimeExports.jsxs("div",{className:"io-profile-section-item",children:[jsxRuntimeExports.jsx("div",{className:"io-profile-section-item-name",children:n}),jsxRuntimeExports.jsx("div",{className:"io-profile-section-item-value",children:o})]}),Rw=({className:n,items:o,title:i})=>jsxRuntimeExports.jsxs("div",{className:S("io-profile-section-body",n),children:[i&&jsxRuntimeExports.jsx(O,{className:"io-profile-section-title",text:i}),o.map(({name:t,value:n})=>jsxRuntimeExports.jsx(Tw,{name:t,value:n},t))]}),Gw=({className:n,items:o,title:i})=>jsxRuntimeExports.jsxs("section",{className:S("io-profile-section",n),children:[jsxRuntimeExports.jsx(Rw,{items:o,title:i}),jsxRuntimeExports.jsx(_,{className:"mt-8"})]}),Fw=({title:t="License",...n})=>jsxRuntimeExports.jsx(Gw,{title:t,...n}),Mw=({title:t="Version",...n})=>jsxRuntimeExports.jsx(Gw,{title:t,...n}),Dw=({title:t="Plugins",...n})=>jsxRuntimeExports.jsx(Gw,{title:t,...n}),Ww=({className:n})=>{const o=Ba()?"io.Connect Desktop":"io.Connect Browser";return jsxRuntimeExports.jsxs("div",{className:S("io-trademark-container",n),children:[jsxRuntimeExports.jsx("h4",{className:"io-trademark-title",children:o}),jsxRuntimeExports.jsxs("p",{className:"io-trademark-text",children:[o,"® is a registered trademark of"," ",jsxRuntimeExports.jsx("a",{href:"https://www.interop.io",rel:"noreferrer",target:"_blank",children:"Interop Inc©"})," ",(new Date).getFullYear(),". All rights reserved."]})]})},Vw=({avatarInitials:n=(Ba()?"CD":"CB"),className:o,items:i,onLogout:r,title:a})=>jsxRuntimeExports.jsxs("section",{className:S("io-profile-section",o),children:[jsxRuntimeExports.jsxs("div",{className:"io-user-details-container",children:[jsxRuntimeExports.jsx("div",{className:"io-user-avatar",children:n}),jsxRuntimeExports.jsx(Rw,{className:"mt-12",items:i,title:a})]}),r&&jsxRuntimeExports.jsx(D,{className:"io-log-out-button",onClick:r,variant:"primary",icon:"arrow-right-from-bracket",children:"Log out"}),jsxRuntimeExports.jsx(_,{className:"mt-8"})]}),Hw={LicenseSection:Fw,ProductsInfoSection:Mw,PluginsSection:Dw,Trademark:Ww,UserSection:Vw},zw=reactExports.createContext(Hw),Xw=reactExports.memo(({children:t,components:n})=>{const o=reactExports.useMemo(()=>({...Hw,...n}),[n]);return jsxRuntimeExports.jsx(zw.Provider,{value:o,children:t})});Xw.displayName="ProfilePanelComponentsStoreProvider";document.querySelector("#root")??document.body;reactExports.createContext({theme:"dark"});const pI="var(--io-neutrals-0)",fI="var(--io-neutrals-900)";function mI(e){let t,n,o;if(e.startsWith("#")){let i=e.slice(1);3===i.length&&(i=i.split("").map(e=>e+e).join("")),t=parseInt(i.substring(0,2),16),n=parseInt(i.substring(2,4),16),o=parseInt(i.substring(4,6),16);}else {if(!e.startsWith("rgb")){const t=document.createElement("canvas").getContext("2d");if(!t)return fI;t.fillStyle=e;return mI(t.fillStyle)}{const i=e.match(/\d+/g)?.map(Number);if(!i||i.length<3)return fI;[t,n,o]=i;}}return (.2126*t+.7152*n+.0722*o)/255>.5?fI:pI}function hI({className:t,channel:n,...o}){const i=S("io-channel-badge",t),r=reactExports.useMemo(()=>mI(n.color),[n.color]);return jsxRuntimeExports.jsx("div",{className:i,style:{color:r,backgroundColor:n.color},"data-testid":`channel-selector-badge-${n.color}`,...o,children:jsxRuntimeExports.jsx("span",{className:"io-channel-selector-badge-label","data-testid":"channel-selector-label",children:n.label})})}function gI(){return jsxRuntimeExports.jsx(N,{variant:"check","data-testid":"channel-selector-channel-selected"})}function bI({channel:o,handleChannelRestricted:i,lockedChannelRestriction:r}){const a=(e,t)=>n=>{n.stopPropagation(),R(n)&&(n.preventDefault(),t||i({...o,[e]:!o[e]}));};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{children:o.isSelected&&jsxRuntimeExports.jsx("span",{"data-testid":"channel-selector-channel-selected",children:"Active"})}),jsxRuntimeExports.jsx("div",{role:"button",onClick:e=>e.stopPropagation(),"data-testid":"channel-selector-publish-toggle-container",children:jsxRuntimeExports.jsx(yv,{label:"Publish",checked:o.write,onChange:()=>{i({...o,write:!o.write});},onKeyDown:a("write",!o.isSelected||r?.write),onClick:e=>e.stopPropagation(),disabled:!o.isSelected||r?.write})}),jsxRuntimeExports.jsx("div",{role:"button",onClick:e=>e.stopPropagation(),"data-testid":"channel-selector-subscribe-toggle-container",children:jsxRuntimeExports.jsx(yv,{label:"Subscribe",checked:o.read,onChange:()=>{i({...o,read:!o.read});},onKeyDown:a("read",!o.isSelected||r?.read),disabled:!o.isSelected||r?.read})})]})}const vI=reactExports.createContext({});function yI({channel:t,isSelected:n,onChannelSelect:o,onChannelRestrict:i,...r}){const{variant:s,selectedChannels:l,lockedChannelRestrictions:u}=reactExports.useContext(vI),d=n||t.isSelected||l?.includes(t),p=u?.find(e=>e.name===t.name),f=reactExports.useCallback(()=>o?.({...t,isSelected:!d}),[t,o,d]),m=reactExports.useCallback(e=>{const n=e.target;n.closest(".io-toggle")||n.classList.contains("io-toggle")||R(e)&&(e.preventDefault(),o?.({...t,isSelected:!d}));},[t,o,d]),h=reactExports.useCallback(e=>{i?.(e);},[i]);return jsxRuntimeExports.jsx(Z,{prepend:jsxRuntimeExports.jsx(hI,{channel:t}),append:"single"===s||"multi"===s?d&&jsxRuntimeExports.jsx(gI,{}):jsxRuntimeExports.jsx(bI,{channel:t,handleChannelRestricted:h,lockedChannelRestriction:p}),isSelected:d,onClick:f,onKeyDown:m,...r,children:t.name},t.name)}function wI({variant:t,onVariantChange:n,disabled:o=!1}){const i="directionalSingle"===t||"directionalMulti"===t,r=reactExports.useCallback(()=>{n?.(!i);},[i,n]),s=reactExports.useCallback(e=>{e.stopPropagation();},[]),c=reactExports.useCallback(e=>{e.stopPropagation(),R(e)&&(e.preventDefault(),o||r());},[o,r]);return jsxRuntimeExports.jsx(yv,{label:"Directional",align:"right",checked:i,onChange:r,onClick:s,onKeyDown:c,disabled:o,"data-testid":`channel-selector-toggle-${t}`})}const II=reactExports.forwardRef(({className:n,variant:o="single",variantToggle:i=!1,channels:r=[],lockedChannelRestrictions:a=[],onVariantChange:s,onChannelSelect:c,onChannelRestrict:l,...d},p)=>{const f=S("io-list-channels","io-channel-selector-panel",("directionalSingle"===o||"directionalMulti"===o)&&"io-list-channels-directional io-channel-selector-panel-directional",n),m=reactExports.useMemo(()=>({variant:o,selectedChannels:r.filter(e=>e.isSelected),lockedChannelRestrictions:a,onVariantChange:s,onChannelSelect:c,onChannelRestrict:l}),[r,o,a,s,c,l]);return jsxRuntimeExports.jsx(vI.Provider,{value:m,children:jsxRuntimeExports.jsx("div",{className:f,ref:p,children:jsxRuntimeExports.jsxs(K,{...d,children:[jsxRuntimeExports.jsx(K.ItemTitle,{"data-testid":"channel-selector-title",append:i&&jsxRuntimeExports.jsx(wI,{variant:o,onVariantChange:s}),children:{single:"Select Channel",directionalSingle:"Select Directional Channel",multi:"Select Channels",directionalMulti:"Select Directional Channels"}[o]}),r?.map(t=>jsxRuntimeExports.jsx(yI,{channel:t,isSelected:t.isSelected,onChannelSelect:c,onChannelRestrict:l,"data-testid":`channel-selector-channel-${t.name}`},t.name))]})})})});II.displayName="ChannelSelector";const CI=reactExports.forwardRef(({className:t,title:n,ariaLabel:o,onClick:i,onKeyDown:r,children:a,disabled:s=!1,...c},l)=>jsxRuntimeExports.jsx("div",{ref:l,className:S(t,{disabled:s}),title:n,role:"button",tabIndex:s?-1:0,"aria-label":o,"aria-disabled":s,onClick:e=>{!s&&i&&i(e);},onKeyDown:e=>{!s&&r&&r(e);},...c,children:a}));CI.displayName="ChannelSelectorButtonWrapper";function NI({actionButtons:t,actionButtonElementsRefs:n,isAutofocusButton:o,isButtonDisabled:i,onButtonClick:r}){return jsxRuntimeExports.jsx(ae,{"data-testid":"io-dialog-action-buttons-group",align:"right",children:t.map((t,a)=>{const{id:s,text:c,variant:l}=t,u=o(s);return jsxRuntimeExports.jsx(D,{"data-testid":`io-dialog-action-button-${s}`,id:s,ref:e=>{0===a&&(n.current=[]),n.current[a]=e;},className:u?"io-focus-button":void 0,disabled:i(s),onClick:()=>r(t),variant:l,children:c},s)})})}function PI({actionButtons:n,children:o,onCompletion:i,size:r,title:a=(Ba()?"io.Connect Desktop":"io.Connect Browser"),validationErrors:s=[]}){const{actionButtonElementsRefs:c,autofocusButtonId:p,hasAutofocusButtonLostInitialFocus:f}=(e=>{const t=reactExports.useRef([]),n=reactExports.useMemo(()=>e.find(e=>e.autofocus)?.id??null,[e]),o=reactExports.useRef(n),[i,r]=reactExports.useState(!o.current);return reactExports.useLayoutEffect(()=>{if(i)return;if(n!==o.current)return void r(!0);const e=t.current.find(e=>e?.id===n);if(!e)return;e.focus();const a=()=>{r(!0);};return e.addEventListener("blur",a),()=>{e.removeEventListener("blur",a);}},[n,i]),{actionButtonElementsRefs:t,autofocusButtonId:n,hasAutofocusButtonLostInitialFocus:i}})(n),h=()=>{i({isClosed:!0});},g={...r};return jsxRuntimeExports.jsxs(pe,{className:"io-dialog-template",closeFn:h,isOpen:!0,onCancel:e=>{e.preventDefault(),h();},onKeyDown:e=>{!R(e)||s.length||e.target instanceof HTMLButtonElement||" "===e.key&&e.target instanceof HTMLInputElement||i({isEnterPressed:!0});},style:g,title:a,draggable:!0,children:[jsxRuntimeExports.jsx(pe.Body,{children:o}),jsxRuntimeExports.jsx(pe.Footer,{children:jsxRuntimeExports.jsx(NI,{actionButtonElementsRefs:c,actionButtons:n,isAutofocusButton:e=>p===e&&!f,isButtonDisabled:e=>s.some(t=>t.disabledButtonIds.some(t=>t===e)),onButtonClick:({id:e,text:t})=>{i({responseButtonClicked:{id:e,text:t}});}})})]})}function EI({children:t}){return jsxRuntimeExports.jsx("h1",{"data-testid":"io-dialog-heading",className:"io-dialog-template-heading",children:t})}function LI({onCompletion:n,size:o,variables:i}){const{actionButtons:r,heading:a,text:s,title:c}=i;return jsxRuntimeExports.jsx(PI,{actionButtons:r,onCompletion:n,size:o,title:c,children:jsxRuntimeExports.jsx(pe.Body.Content,{children:jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(EI,{children:a}),jsxRuntimeExports.jsx("p",{"data-testid":"io-dialog-text",children:s})]})})})}function BI({onCompletion:n,size:o,variables:i}){const{actionButtons:r,checkbox:s,heading:c,text:u,title:d}=i,[p,f]=reactExports.useState(s.initialValue),m=reactExports.useCallback(()=>f(e=>!e),[]),h=[{id:s.id,type:"checkbox",checked:p}];return jsxRuntimeExports.jsxs(PI,{actionButtons:r,onCompletion:e=>n({...e,inputs:h}),size:o,title:d,children:[jsxRuntimeExports.jsx(pe.Body.Content,{children:jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(EI,{children:c}),jsxRuntimeExports.jsx("p",{"data-testid":"io-dialog-text",children:u})]})}),jsxRuntimeExports.jsx(Wf,{"data-testid":`io-dialog-checkbox-${s.id}`,checked:p,id:s.id,label:s.label,name:s.id,onChange:m})]})}function OI({onCompletion:n,size:o,variables:i}){const{actionButtons:r,heading:a,input:s,title:c}=i,[u,p]=reactExports.useState(s.initialValue??""),f=reactExports.useRef(null),h=(g=u,!(b=s.validation)||new RegExp(b.regexPattern).test(g)?null:{disabledButtonIds:b.disabledButtonIds,message:b.errorMessage});var g,b;const v=[{id:s.id,type:"text",value:u}];return reactExports.useLayoutEffect(()=>{f.current?.select();},[]),jsxRuntimeExports.jsxs(PI,{actionButtons:r,onCompletion:e=>n({...e,inputs:v}),size:o,title:c,validationErrors:h?[h]:[],children:[jsxRuntimeExports.jsx(pe.Body.Content,{children:jsxRuntimeExports.jsx(EI,{children:a})}),jsxRuntimeExports.jsx(Vf,{"data-testid":`io-dialog-input-${s.id}`,ref:f,errorDataTestId:`io-dialog-input-${s.id}-error-message`,errorMessage:h?.message,id:s.id,label:s.label,name:s.id,onChange:e=>p(e.target.value),placeholder:s.placeholder,type:"text",value:u})]})}const TI=qr({width:ra,height:ra}),RI=Qr().andThen(e=>((e,t)=>{const n=typeof e;return "function"===n?Qr():oa(`The argument provided as "${t}" must be a function, received: ${n}`)})(e,"onCompletion")),GI=qr({autofocus:ta(Ur()),id:ia,text:ia,variant:na(Kr("default"),Kr("primary"),Kr("critical"),Kr("outline"),Kr("link"))}),FI=qr({disabledButtonIds:ea(ia),errorMessage:ia,regexPattern:ia}),MI=qr({actionButtons:ea(GI),heading:$r(),text:$r(),title:ta($r())}),DI=qr({templateName:Kr("noInputsConfirmationDialog"),onCompletion:RI,size:ta(TI),variables:MI}),WI=qr({actionButtons:ea(GI),checkbox:qr({id:ia,initialValue:ta(Ur()),label:ta($r())}),heading:$r(),text:$r(),title:ta($r())}),VI=qr({templateName:Kr("singleCheckboxDialog"),onCompletion:RI,size:ta(TI),variables:WI}),HI=qr({actionButtons:ea(GI),heading:$r(),input:qr({id:ia,initialValue:ta($r()),label:ta($r()),placeholder:ta($r()),validation:ta(FI)}),title:ta($r())}),zI=qr({templateName:Kr("singleTextInputDialog"),onCompletion:RI,size:ta(TI),variables:HI});[{name:"noInputsConfirmationDialog",Dialog:LI,validate:DI.runWithException},{name:"singleCheckboxDialog",Dialog:BI,validate:VI.runWithException},{name:"singleTextInputDialog",Dialog:OI,validate:zI.runWithException}];reactExports.createContext({config:{message:""},theme:"dark",setResult:()=>{}});const oC={env:"",region:"",version:"",buildVersion:"",theme:"",isError:!1,mailingList:"",createJiraTicket:!0,sendEmail:!1,attachments:[],applicationTitle:"",allowEditRecipients:!0,attachmentsViewMode:"category",environmentInfo:"",selectedCategories:[],errorMessage:"",showEnvironmentInfo:!1,context:{},technicalInfo:"",sendEmailClient:"Outlook"};const aC=reactExports.createContext({config:oC,onThemeChanged:()=>{},openUrl:()=>{},submit:()=>Promise.resolve({}),setBounds:()=>{},close:()=>{},showMailingList:!0,setShowMailingList:()=>{},attachmentCategories:[],submitInProgress:!1,setSubmitInProgress:()=>{},submitStatus:{type:"success",title:"",text:""},setSubmitStatus:()=>{},submitCompleted:!1,setSubmitCompleted:()=>{},jiraTicketURL:"",setJiraTicketURL:()=>{},submitFeedback:()=>{}}),sC=()=>reactExports.useContext(aC);function cC({...n}){const{config:o,close:i}=sC(),{applicationTitle:r}=o;return jsxRuntimeExports.jsxs(se,{draggable:!0,...n,children:[jsxRuntimeExports.jsx(se.Title,{tag:"h1",text:r?`Feedback Form - ${r}`:"Feedback Form",size:"large"}),jsxRuntimeExports.jsx(se.ButtonGroup,{className:"non-draggable",children:jsxRuntimeExports.jsx(se.ButtonIcon,{variant:"circle",icon:"close",size:"32",onClick:()=>i()})})]})}function lC({className:n,handleSubmit:o,...i}){const r=S("io-panel-body",n),{config:a,submitFeedback:s}=sC(),{IntroField:c,DescriptionField:l,TechInfoField:u,EnvInfoField:d,FileAttachmentsField:p,CategoryAttachmentsField:f,MailListField:m}=NC(),h=o??s,g=`Your feedback will be submitted to the ${a.buildVersion} team and some additional information will be automatically included to help us examine your issue.`;return jsxRuntimeExports.jsxs("form",{className:r,id:"feedback",onSubmit:h,...i,children:[jsxRuntimeExports.jsx(c,{children:jsxRuntimeExports.jsx("p",{children:g})}),jsxRuntimeExports.jsx(m,{}),jsxRuntimeExports.jsx(l,{}),jsxRuntimeExports.jsx(u,{readOnly:!0}),jsxRuntimeExports.jsx(d,{readOnly:!0}),"file"===a.attachmentsViewMode?jsxRuntimeExports.jsx(p,{}):jsxRuntimeExports.jsx(f,{})]})}function uC({...n}){const{FooterButtons:o}=NC(),{openUrl:i,submitInProgress:r,submitStatus:a,jiraTicketURL:s}=sC();return jsxRuntimeExports.jsx(ue,{...n,children:jsxRuntimeExports.jsxs("div",r?{className:"flex ai-center jc-between",children:[jsxRuntimeExports.jsx(T,{children:jsxRuntimeExports.jsx("p",{children:a.title})}),jsxRuntimeExports.jsx(Xl,{align:"right",size:"small"})]}:{className:"flex ai-center jc-between",children:[jsxRuntimeExports.jsxs(T,{children:[jsxRuntimeExports.jsx("p",{className:"error"===a.type?"io-text-error":"",children:a.title}),s&&jsxRuntimeExports.jsx("a",{href:s,onClick:e=>{e.preventDefault(),i(s);},children:s})]}),jsxRuntimeExports.jsx(o,{})]})})}function dC({className:t,...n}){const{CloseButton:o}=NC(),{close:i}=sC(),r=S("non-draggable",t);return jsxRuntimeExports.jsx(ae,{className:r,...n,children:jsxRuntimeExports.jsx(o,{onClick:()=>i()})})}function pC({className:n,...o}){const{SubmitButton:i,CancelButton:r,CloseButton:a}=NC(),{close:s,submitCompleted:c}=sC();return c?jsxRuntimeExports.jsx(ae,{className:n,...o,children:jsxRuntimeExports.jsx(a,{text:"Close",onClick:()=>s()})}):jsxRuntimeExports.jsxs(ae,{className:n,...o,children:[jsxRuntimeExports.jsx(i,{}),jsxRuntimeExports.jsx(r,{onClick:()=>s()})]})}function fC({text:t="Submit",...n}){return jsxRuntimeExports.jsx(D,{form:"feedback",type:"submit",variant:"primary",text:t,...n})}function mC({text:t="Cancel",...n}){return jsxRuntimeExports.jsx(D,{variant:"link",text:t,...n})}function hC({...t}){return jsxRuntimeExports.jsx(D,{variant:"primary",...t})}function gC({showField:t=!0,className:n,title:o,hint:i,children:r,...a}){return t?jsxRuntimeExports.jsx(T,{className:n,title:o,hint:i,...a,children:r}):null}function bC({showField:t=!0,className:n,title:o="Description",hint:i,readOnly:r=!1,disabled:a,...s}){return t?jsxRuntimeExports.jsx(T,{className:n,hint:i,title:"",...s,children:jsxRuntimeExports.jsx(ev,{id:"description",name:"description",label:o,readOnly:r,disabled:a})}):null}function vC({showField:t,className:n,title:o="Technical Information",hint:i,fieldValue:r,readOnly:a=!1,disabled:s,...c}){const{config:l}=sC(),u=t??l.errorMessage,d=r??l.errorMessage;return u&&d?jsxRuntimeExports.jsx(T,{className:n,hint:i,...c,children:jsxRuntimeExports.jsx(ev,{id:"errorMessage",name:"errorMessage",label:o,value:d,readOnly:a,disabled:s})}):null}function yC({showField:t,className:n,title:o="Environment Information",hint:i,fieldValue:r,readOnly:a=!1,disabled:s,...c}){const{config:l}=sC(),u=t??l.showEnvironmentInfo,d=r??l.environmentInfo;return u&&d?jsxRuntimeExports.jsx(T,{className:n,hint:i,...c,children:jsxRuntimeExports.jsx(ev,{id:"environmentInfo",name:"environmentInfo",label:o,value:d,readOnly:a,disabled:s})}):null}function wC({showField:t=!0,className:n,title:o="Attachments",hint:i,readOnly:r=!1,disabled:s,attachments:c,selectedCategories:l,...u}){const d=S("io-block-list-gap",n),{config:p}=sC(),f=c??p.attachments,m=l??p.selectedCategories,h=reactExports.useCallback(e=>!!m&&-1!==m.indexOf(e),[m]);return t?!f||f.length<=0?jsxRuntimeExports.jsx(T,{title:"Attachments",children:jsxRuntimeExports.jsx("p",{children:"No Attachments"})}):jsxRuntimeExports.jsx(T,{className:d,title:o,hint:i,...u,children:jsxRuntimeExports.jsx("div",{className:"file-attachments",children:f.map(t=>jsxRuntimeExports.jsx(Wf,{id:t.id,name:t.id,label:t.name,readOnly:r,disabled:s,defaultChecked:h(t.category)},t.id))})}):null}function IC({showField:t=!0,className:n,title:o="Attachments",hint:i,readOnly:r=!1,disabled:s,categories:c,selectedCategories:l,...u}){const{config:d,attachmentCategories:p}=sC(),f=c??p,m=l??d.selectedCategories,h=reactExports.useCallback(e=>!!m&&-1!==m.indexOf(e),[m]);return t?!f||f.length<=0?jsxRuntimeExports.jsx("p",{children:"No Attachments"}):jsxRuntimeExports.jsx(T,{className:n,title:o,hint:i,...u,children:jsxRuntimeExports.jsx("div",{className:"category-attachments",children:f.map(t=>jsxRuntimeExports.jsx(yv,{id:t,name:t,align:"right",label:t,readOnly:r,disabled:s,defaultChecked:h(t)},t))})}):null}function CC({className:n,title:o,hint:i,showField:r=!0,showJiraTicketField:a,jiraTicketLabel:s="Create Jira Ticket",showSendEmailField:c,sendEmailLabel:l="Send Email",readOnly:u=!1,disabled:d,...p}){const f=S("io-block-list-gap",n),{config:m,showMailingList:h,setShowMailingList:g}=sC();if(!r)return null;const b=a??m.createJiraTicket,v=c??m.sendEmail;return jsxRuntimeExports.jsxs(T,{className:f,hint:i,title:o,...p,children:[b&&jsxRuntimeExports.jsx(yv,{id:"createJiraTicket",name:"createJiraTicket",label:s,align:"right",readOnly:u,disabled:d,defaultChecked:b}),v&&jsxRuntimeExports.jsx(yv,{onChange:()=>{g(!h);},id:"sendEmail",name:"sendEmail",label:l,align:"right",readOnly:u,disabled:d,defaultChecked:v})]})}function xC({showField:t=!0,className:n,title:o="Email List",hint:i="Separate with commas or semicolons.",placeholder:r="john.doe@somedomain.com; jane.doe@otherdomain.com",readOnly:a,disabled:s,...c}){const{config:l,showMailingList:u}=sC(),d=t??l.sendEmail,p=a??!1===l.allowEditRecipients;return d&&u?jsxRuntimeExports.jsx(T,{className:n,hint:i,...c,children:jsxRuntimeExports.jsx(Vf,{id:"mailingList",name:"mailingList",label:o,placeholder:r,readOnly:p,disabled:s,defaultValue:l.mailingList??""})}):null}const AC={Header:cC,Body:lC,Footer:uC,HeaderButtons:dC,FooterButtons:pC,SubmitButton:fC,CancelButton:mC,CloseButton:hC,IntroField:gC,DescriptionField:bC,TechInfoField:vC,EnvInfoField:yC,FileAttachmentsField:wC,CategoryAttachmentsField:IC,SettingsField:CC,MailListField:xC},kC=reactExports.createContext(AC),SC=reactExports.memo(({children:t,components:n})=>{const o=reactExports.useMemo(()=>({...AC,...n}),[n]);return jsxRuntimeExports.jsx(kC.Provider,{value:o,children:t})});function NC(e){return {...reactExports.useContext(kC),...e}}SC.displayName="ComponentsStore";const RC=reactExports.createContext({variant:"share-layout",id:void 0,name:"",setName:()=>{},viewers:[],setViewers:()=>{},editors:[],setEditors:()=>{},publishWithContext:!1,setPublishWithContext:()=>{},updateWorkspaceSettings:!1,setUpdateWorkspaceSettings:()=>{},keepPrivateCopy:!0,setKeepPrivateCopy:()=>{},isSettingsVisible:!1,showSettings:()=>{},hideSettings:()=>{},folder:"",setFolder:()=>{},icon:"",setIcon:()=>{},description:"",setDescription:()=>{},hasChanges:!1,canPublish:!1,canUpdate:!1,sharingValidationError:void 0,publish:()=>{},applySettings:()=>{},close:()=>{}}),FC=()=>reactExports.useContext(RC);function MC(e){return e.startsWith("manage-")?"Manage":e.startsWith("details-")?"Details":e.startsWith("edit-")?"Edit":"Publish"}function DC({title:n,...o}){const{HeaderButtons:i}=ux(),{variant:r,name:a}=FC(),s=n??(a?`${MC(r)} "${a}"`:function(e){return `${MC(e)} ${e.endsWith("-workspace")?"Workspace":"Layout"}`}(r));return jsxRuntimeExports.jsxs(se,{draggable:!0,...o,children:[jsxRuntimeExports.jsx(se.Title,{tag:"h1",text:s,size:"large"}),jsxRuntimeExports.jsx(i,{})]})}function WC({className:o,onSubmit:i,...r}){const a=S("io-panel-body",o),{Name:s,Viewers:c,Editors:l,Folder:u,Icon:d,Description:p,KeepPrivateCopy:f}=ux(),{variant:m}=FC(),h=m.startsWith("share-"),g=m.startsWith("details-"),b=m.startsWith("edit-");return jsxRuntimeExports.jsx(Bf,{children:jsxRuntimeExports.jsx("form",{className:a,onSubmit:e=>{e.preventDefault(),i?.(e);},...r,children:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,b?{children:[jsxRuntimeExports.jsx(s,{}),jsxRuntimeExports.jsx(u,{}),jsxRuntimeExports.jsx(d,{}),jsxRuntimeExports.jsx(p,{})]}:{children:[!g&&jsxRuntimeExports.jsx(s,{}),jsxRuntimeExports.jsx(c,{}),jsxRuntimeExports.jsx(l,{}),g&&jsxRuntimeExports.jsx(p,{}),h&&jsxRuntimeExports.jsx(f,{})]})})})}function VC({...n}){const{FooterButtons:o}=ux(),{sharingValidationError:i}=FC();return jsxRuntimeExports.jsxs(ue,{...n,children:[i&&jsxRuntimeExports.jsxs("p",{className:"io-layout-sharing-validation-error",children:[jsxRuntimeExports.jsx(N,{variant:"circle-info"}),i]}),jsxRuntimeExports.jsx(o,{})]})}function HC({className:n,title:o="Additional Settings",...i}){const r=S("io-layout-sharing-settings-panel",n),{folder:a,icon:s,description:c,applySettings:u,hideSettings:d,close:p}=FC(),{Folder:f,Icon:m,Description:h}=ux(),[g,b]=reactExports.useState(a),[v,y]=reactExports.useState(s),[w,I]=reactExports.useState(c);return jsxRuntimeExports.jsxs(Yl,{className:r,...i,children:[jsxRuntimeExports.jsxs(Yl.Header,{children:[jsxRuntimeExports.jsx(Yl.Header.ButtonIcon,{className:"non-draggable",variant:"circle",icon:"arrow-left-long",size:"32",onClick:d}),jsxRuntimeExports.jsx(Yl.Header.Title,{tag:"h1",text:o,size:"large"}),jsxRuntimeExports.jsx(Yl.Header.ButtonGroup,{children:jsxRuntimeExports.jsx(Yl.Header.ButtonIcon,{variant:"circle",icon:"close",size:"32",onClick:p})})]}),jsxRuntimeExports.jsxs(Bf,{element:Yl.Body,children:[jsxRuntimeExports.jsx(f,{value:g,onChange:e=>b(e.target.value)}),jsxRuntimeExports.jsx(m,{value:v,onChange:e=>y(e.target.value)}),jsxRuntimeExports.jsx(h,{value:w,onChange:e=>I(e.target.value)})]}),jsxRuntimeExports.jsx(Yl.Footer,{children:jsxRuntimeExports.jsx(ae,{align:"right",children:jsxRuntimeExports.jsx(D,{variant:"primary",text:"Apply",onClick:()=>u(g,v,w)})})})]})}function zC({className:t,...n}){const o=S("non-draggable",t),{HeaderCloseButton:i}=ux();return jsxRuntimeExports.jsx(ae,{className:o,...n,children:jsxRuntimeExports.jsx(i,{})})}function XC({icon:t="close",size:n="32",variant:o="circle",onClick:i,...r}){const{close:a}=FC();return jsxRuntimeExports.jsx(P,{icon:t,size:n,variant:o,onClick:i??a,...r})}function ZC({className:n,...o}){const i=S("flex ai-center jc-between",n),{MoreSettingsButton:r,PublishButton:a,UpdateButton:s,CloseButton:c}=ux(),{variant:l}=FC(),u=l.startsWith("manage-"),d=l.startsWith("edit-"),p=u||d;return jsxRuntimeExports.jsxs("div",{className:i,...o,children:[jsxRuntimeExports.jsx(r,{}),jsxRuntimeExports.jsxs(ae,{align:"right",children:[jsxRuntimeExports.jsx(p?s:a,{}),jsxRuntimeExports.jsx(c,{})]})]})}function jC({showButton:t,variant:n="link",text:o="More settings",onClick:i,...r}){const{variant:a,showSettings:s}=FC(),c=a.startsWith("details-"),l=a.startsWith("edit-");return t??(!c&&!l)?jsxRuntimeExports.jsx(D,{variant:n,text:o,onClick:i??s,...r}):null}function JC({showButton:t,variant:n="primary",text:o="Publish",onClick:i,disabled:r,...a}){const{variant:s,publish:c,canPublish:l}=FC(),u=s.startsWith("details-");if(!(t??!u))return null;return jsxRuntimeExports.jsx(D,{variant:n,text:o,onClick:i??c,disabled:r??!l,...a})}function YC({showButton:t,variant:n="primary",text:o="Update",onClick:i,disabled:r,...a}){const{publish:s,canUpdate:c}=FC();if(!(t??!0))return null;return jsxRuntimeExports.jsx(D,{variant:n,text:o,onClick:i??s,disabled:r??!c,...a})}function $C({text:t="Close",variant:n="outline",onClick:o,...i}){const{close:r}=FC();return jsxRuntimeExports.jsx(D,{variant:n,text:t,onClick:o??r,...i})}const _C={"share-layout":"Enter a Layout name","manage-layout":"Saved Layout name","share-workspace":"Enter a Workspace name","manage-workspace":"Saved Workspace name"};function UC({id:n="layout-sharing-name",label:o="Name",placeholder:i,value:r,showField:a=!0,readOnly:s,disabled:c,...l}){const{variant:u,name:d,setName:p}=FC(),f=u.startsWith("manage-");if(!a)return null;const m=i??_C[u]??"",h=!f;return jsxRuntimeExports.jsxs(T,{className:"io-layout-sharing-name-field",children:[jsxRuntimeExports.jsxs("div",{className:"flex ai-center jc-between",children:[jsxRuntimeExports.jsx("label",{htmlFor:n,children:o}),h&&jsxRuntimeExports.jsxs("p",{children:["Required ",jsxRuntimeExports.jsx("span",{className:"io-text-danger",children:"*"})]})]}),jsxRuntimeExports.jsx(Vf,{id:n,name:n,required:h,placeholder:m,value:r??d,onChange:e=>p(e.target.value),readOnly:s,disabled:c,...l})]})}function QC(){const e=reactExports.useContext(IOConnectContext),[t,n]=reactExports.useState(!1),[o,i]=reactExports.useState(!0);reactExports.useEffect(()=>{if(i(!0),!e)return console.warn("useManagerQueryUsers: io context is not available."),void i(!1);const t=e?.manager;if(!t?.checkCapability)return console.warn("useManagerQueryUsers: io.manager.checkCapability is not available."),void i(!1);let o=!1;return (async()=>{try{const[e,i]=await Promise.all([t.checkCapability("ADVANCED_LAYOUTS"),t.checkCapability("API_METHOD_USERS_QUERY")]);if(o)return;n(!0===e?.available&&!0===i?.available);}catch(e){if(o)return;console.error("useManagerQueryUsers: Failed to check capabilities.",e),n(!1);}finally{o||i(!1);}})(),()=>{o=!0;}},[e]);const r=reactExports.useCallback(async n=>{if(!t)return console.warn("useManagerQueryUsers: Required capabilities are not available."),{users:[]};const o=e?.manager;return o.users.query(n)},[e,t]);return {isSupported:t,isLoading:o,queryUsers:r}}function KC(){const e=reactExports.useContext(IOConnectContext),[t,n]=reactExports.useState(!1),[o,i]=reactExports.useState(!0);reactExports.useEffect(()=>{if(i(!0),!e)return console.warn("useManagerQueryGroups: io context is not available."),void i(!1);const t=e?.manager;if(!t?.checkCapability)return console.warn("useManagerQueryGroups: io.manager.checkCapability is not available."),void i(!1);let o=!1;return (async()=>{try{const[e,i]=await Promise.all([t.checkCapability("ADVANCED_LAYOUTS"),t.checkCapability("API_METHOD_GROUPS_QUERY")]);if(o)return;n(!0===e?.available&&!0===i?.available);}catch(e){if(o)return;console.error("useManagerQueryGroups: Failed to check capabilities.",e),n(!1);}finally{o||i(!1);}})(),()=>{o=!0;}},[e]);const r=reactExports.useCallback(async n=>{if(!t)return console.warn("useManagerQueryGroups: Required capabilities are not available."),{groups:[]};const o=e?.manager;return o.groups.query(n)},[e,t]);return {isSupported:t,isLoading:o,queryGroups:r}}const qC=t=>jsxRuntimeExports.jsx("div",{className:t.hasValue?"io-layout-sharing-users-with-access-input":void 0,style:t.hasValue?void 0:{display:"contents"},children:jsxRuntimeExports.jsx(Qg.Input,{...t,placeholder:t.hasValue?t.selectProps.placeholder:void 0})});function ex({id:n="layout-sharing-users-with-access",label:o="Viewers",placeholder:i="Add a user name or user group",options:r=[],value:a,showField:s=!0,disabled:c,...u}){const{variant:d,viewers:f,setViewers:m}=FC(),[h,g]=reactExports.useState(""),b=d.startsWith("details-"),{isSupported:v,isLoading:y,queryUsers:w}=QC(),{isSupported:I,isLoading:C,queryGroups:x}=KC(),[A,k]=reactExports.useState([]),[S,N]=reactExports.useState([]),[P,E]=reactExports.useState(!1),L=nv(h,400),B=v||I||y||C;return reactExports.useEffect(()=>{E(h.length>=3&&B);},[h,B]),reactExports.useEffect(()=>{if(L.length<3)return k([]),void N([]);let e=!1;const t=[];return v&&t.push(w({name:L}).then(t=>{e||k(t.users.map(e=>({value:e.id,label:e.id,entityType:"user"})));}).catch(()=>{e||k([]);})),I&&t.push(x({name:L}).then(t=>{e||N(t.groups.map(e=>({value:e.name,label:e.name,entityType:"group"})));}).catch(()=>{e||N([]);})),Promise.allSettled(t).then(()=>{e||E(!1);}),()=>{e=!0;}},[L,v,I,w,x]),s?jsxRuntimeExports.jsxs(T,{className:"io-layout-sharing-users-with-access-field",style:b?{pointerEvents:"none"}:void 0,children:[jsxRuntimeExports.jsx("div",{className:"flex ai-center jc-between",children:jsxRuntimeExports.jsx("label",{htmlFor:n,children:o})}),jsxRuntimeExports.jsx(qb,{isMulti:!0,isSearchable:!0,id:n,name:n,placeholder:i,options:B?[...A,...S]:r,menuIsOpen:B?h.length>=3:void 0,value:a??f,onChange:e=>m(e),onInputChange:g,backspaceRemovesValue:!1,isLoading:P,components:{...b?{}:{Input:qC},DropdownIndicator:null},disabled:c,...u})]}):null}const tx=t=>jsxRuntimeExports.jsx("div",{className:t.hasValue?"io-layout-sharing-users-with-access-input":void 0,style:t.hasValue?void 0:{display:"contents"},children:jsxRuntimeExports.jsx(Qg.Input,{...t,placeholder:t.hasValue?t.selectProps.placeholder:void 0})});function nx({id:n="layout-sharing-users-with-edit-permissions",label:o="Editors",placeholder:i="Add a user name or user group",options:r=[],value:a,showField:s=!0,disabled:c,...u}){const{variant:d,editors:f,setEditors:m}=FC(),[h,g]=reactExports.useState(""),b=d.startsWith("details-"),{isSupported:v,isLoading:y,queryUsers:w}=QC(),{isSupported:I,isLoading:C,queryGroups:x}=KC(),[A,k]=reactExports.useState([]),[S,N]=reactExports.useState([]),[P,E]=reactExports.useState(!1),L=nv(h,400),B=v||I||y||C;return reactExports.useEffect(()=>{E(h.length>=3&&B);},[h,B]),reactExports.useEffect(()=>{if(L.length<3)return k([]),void N([]);let e=!1;const t=[];return v&&t.push(w({name:L}).then(t=>{e||k(t.users.map(e=>({value:e.id,label:e.id,entityType:"user"})));}).catch(()=>{e||k([]);})),I&&t.push(x({name:L}).then(t=>{e||N(t.groups.map(e=>({value:e.name,label:e.name,entityType:"group"})));}).catch(()=>{e||N([]);})),Promise.allSettled(t).then(()=>{e||E(!1);}),()=>{e=!0;}},[L,v,I,w,x]),s?jsxRuntimeExports.jsxs(T,{className:"io-layout-sharing-users-with-edit-permissions-field",style:b?{pointerEvents:"none"}:void 0,children:[jsxRuntimeExports.jsx("div",{className:"flex ai-center jc-between",children:jsxRuntimeExports.jsx("label",{htmlFor:n,children:o})}),jsxRuntimeExports.jsx(qb,{isMulti:!0,isSearchable:!0,id:n,name:n,placeholder:i,options:B?[...A,...S]:r,menuIsOpen:B?h.length>=3:void 0,value:a??f,onChange:e=>m(e),onInputChange:g,backspaceRemovesValue:!1,isLoading:P,components:{...b?{}:{Input:tx},DropdownIndicator:null},disabled:c,...u})]}):null}function ox({id:t="layout-sharing-folder",label:n="Folder",placeholder:o="Enter folder name",value:i,showField:r=!0,...a}){const{folder:s,setFolder:c}=FC();return r?jsxRuntimeExports.jsx(Vf,{id:t,name:t,label:n,placeholder:o,value:i??s,onChange:e=>c(e.target.value),...a}):null}function ix({id:t="layout-sharing-icon",label:n="Icon",placeholder:o="Paste an icon URL",value:i,showField:r=!0,...a}){const{icon:s,setIcon:c}=FC();return r?jsxRuntimeExports.jsx(Vf,{id:t,name:t,label:n,placeholder:o,value:i??s,onChange:e=>c(e.target.value),...a}):null}function rx({id:t="layout-sharing-description",label:n="Description",placeholder:o,value:i,showField:r=!0,...a}){const{variant:s,description:c,setDescription:l}=FC(),u=s.startsWith("details-"),d=o??(s.includes("workspace")?"Enter a Workspace description":"Enter a Layout description");return r?jsxRuntimeExports.jsx(ev,{id:t,style:u?{pointerEvents:"none"}:void 0,name:t,label:n,placeholder:d,value:i??c,onChange:e=>l(e.target.value),readOnly:u,...a}):null}function ax({id:t="layout-sharing-keep-private-copy",label:n="Keep a private copy",showField:o=!0,...i}){const{keepPrivateCopy:r,setKeepPrivateCopy:a}=FC();return o?jsxRuntimeExports.jsx(T,{className:"io-layout-sharing-keep-private-copy-field",children:jsxRuntimeExports.jsx(yv,{id:t,name:t,label:n,checked:r,onChange:e=>a(e.target.checked),...i})}):null}const sx={Header:DC,Body:WC,Footer:VC,Settings:HC,HeaderButtons:zC,HeaderCloseButton:XC,FooterButtons:ZC,MoreSettingsButton:jC,PublishButton:JC,UpdateButton:YC,CloseButton:$C,Name:UC,Viewers:ex,Editors:nx,Folder:ox,Icon:ix,Description:rx,KeepPrivateCopy:ax},cx=reactExports.createContext(sx),lx=reactExports.memo(({children:t,components:n})=>{const o=reactExports.useMemo(()=>({...sx,...n}),[n]);return jsxRuntimeExports.jsx(cx.Provider,{value:o,children:t})});function ux(e){return {...reactExports.useContext(cx),...e}}lx.displayName="ComponentsStore";var hx={exports:{}};var Cx,xx,Lx,Bx;
1561
+ */mh.exports=function(){if(uh)return hh;uh=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,r=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case c:case l:case o:case r:case i:case d:return e;default:switch(e=e&&e.$$typeof){case s:case u:case m:case f:case a:return e;default:return p}}case n:return p}}}function w(e){return y(e)===l}return hh.AsyncMode=c,hh.ConcurrentMode=l,hh.ContextConsumer=s,hh.ContextProvider=a,hh.Element=t,hh.ForwardRef=u,hh.Fragment=o,hh.Lazy=m,hh.Memo=f,hh.Portal=n,hh.Profiler=r,hh.StrictMode=i,hh.Suspense=d,hh.isAsyncMode=function(e){return w(e)||y(e)===c},hh.isConcurrentMode=w,hh.isContextConsumer=function(e){return y(e)===s},hh.isContextProvider=function(e){return y(e)===a},hh.isElement=function(e){return "object"==typeof e&&null!==e&&e.$$typeof===t},hh.isForwardRef=function(e){return y(e)===u},hh.isFragment=function(e){return y(e)===o},hh.isLazy=function(e){return y(e)===m},hh.isMemo=function(e){return y(e)===f},hh.isPortal=function(e){return y(e)===n},hh.isProfiler=function(e){return y(e)===r},hh.isStrictMode=function(e){return y(e)===i},hh.isSuspense=function(e){return y(e)===d},hh.isValidElementType=function(e){return "string"==typeof e||"function"==typeof e||e===o||e===l||e===r||e===i||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===f||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===g||e.$$typeof===b||e.$$typeof===v||e.$$typeof===h)},hh.typeOf=y,hh}();var vh=mh.exports,yh={};yh[vh.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},yh[vh.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var wh="undefined"!=typeof document;var Ih=function(e,t,n){var o=e.key+"-"+t.name;(!1===n||!1===wh&&void 0!==e.compat)&&void 0===e.registered[o]&&(e.registered[o]=t.styles);};var Ch={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function xh(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Ah=/[A-Z]|^ms/g,kh=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Sh=function(e){return 45===e.charCodeAt(1)},Nh=function(e){return null!=e&&"boolean"!=typeof e},Ph=xh(function(e){return Sh(e)?e:e.replace(Ah,"-$&").toLowerCase()}),Eh=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(kh,function(e,t,n){return Bh={name:t,styles:n,next:Bh},t})}return 1===Ch[e]||Sh(e)||"number"!=typeof t||0===t?t:t+"px"};function Lh(e,t,n){if(null==n)return "";var o=n;if(void 0!==o.__emotion_styles)return o;switch(typeof n){case"boolean":return "";case"object":var i=n;if(1===i.anim)return Bh={name:i.name,styles:i.styles,next:Bh},i.name;var r=n;if(void 0!==r.styles){var a=r.next;if(void 0!==a)for(;void 0!==a;)Bh={name:a.name,styles:a.styles,next:Bh},a=a.next;return r.styles+";"}return function(e,t,n){var o="";if(Array.isArray(n))for(var i=0;i<n.length;i++)o+=Lh(e,t,n[i])+";";else for(var r in n){var a=n[r];if("object"!=typeof a){var s=a;Nh(s)&&(o+=Ph(r)+":"+Eh(r,s)+";");}else if(Array.isArray(a)&&"string"==typeof a[0]&&null==t)for(var c=0;c<a.length;c++)Nh(a[c])&&(o+=Ph(r)+":"+Eh(r,a[c])+";");else {var l=Lh(e,t,a);switch(r){case"animation":case"animationName":o+=Ph(r)+":"+l+";";break;default:o+=r+"{"+l+"}";}}}return o}(e,t,n);case"function":if(void 0!==e){var s=Bh,c=n(e);return Bh=s,Lh(e,t,c)}}return n}var Bh,Oh=/label:\s*([^\s;{]+)\s*(;|$)/g;function Th(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,i="";Bh=void 0;var r=e[0];null==r||void 0===r.raw?(o=!1,i+=Lh(n,t,r)):i+=r[0];for(var a=1;a<e.length;a++){if(i+=Lh(n,t,e[a]),o)i+=r[a];}Oh.lastIndex=0;for(var s,c="";null!==(s=Oh.exec(i));)c+="-"+s[1];var l=function(e){for(var t,n=0,o=0,i=e.length;i>=4;++o,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16);}return (((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+c;return {name:l,styles:i,next:Bh}}var Rh="undefined"!=typeof document,Gh=function(e){return e()},Fh=!!reactExports.useInsertionEffect&&reactExports.useInsertionEffect,Mh=Rh&&Fh||Gh,Dh="undefined"!=typeof document,Wh=reactExports.createContext("undefined"!=typeof HTMLElement?fh({key:"css"}):null);Wh.Provider;var Vh=function(e){return reactExports.forwardRef(function(t,n){var o=reactExports.useContext(Wh);return e(t,o,n)})};Dh||(Vh=function(e){return function(t){var n=reactExports.useContext(Wh);return null===n?(n=fh({key:"css"}),reactExports.createElement(Wh.Provider,{value:n},e(t,n))):e(t,n)}});var Hh,zh,Xh=reactExports.createContext({}),Zh={}.hasOwnProperty,jh="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Jh=function(e){var t=e.cache,n=e.serialized,i=e.isStringTag;Ih(t,n,i);var r=Mh(function(){return function(e,t,n){Ih(e,t,n);var o=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i="",r=t;do{var a=e.insert(t===r?"."+o:"",r,e.sheet,!0);wh||void 0===a||(i+=a),r=r.next;}while(void 0!==r);if(!wh&&0!==i.length)return i}}(t,n,i)});if(!Dh&&void 0!==r){for(var a,s=n.name,c=n.next;void 0!==c;)s+=" "+c.name,c=c.next;return reactExports.createElement("style",((a={})["data-emotion"]=t.key+" "+s,a.dangerouslySetInnerHTML={__html:r},a.nonce=t.sheet.nonce,a))}return null},Yh=Vh(function(e,t,n){var i=e.css;"string"==typeof i&&void 0!==t.registered[i]&&(i=t.registered[i]);var r=e[jh],a=[i],s="";"string"==typeof e.className?s=function(e,t,n){var o="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(o+=n+" ");}),o}(t.registered,a,e.className):null!=e.className&&(s=e.className+" ");var c=Th(a,void 0,reactExports.useContext(Xh));s+=t.key+"-"+c.name;var l={};for(var u in e)Zh.call(e,u)&&"css"!==u&&u!==jh&&(l[u]=e[u]);return l.className=s,n&&(l.ref=n),reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(Jh,{cache:t,serialized:c,isStringTag:"string"==typeof r}),reactExports.createElement(r,l))}),$h=Yh,_h=function(e,t){var n=arguments;if(null==t||!Zh.call(t,"css"))return reactExports.createElement.apply(void 0,n);var i=n.length,r=new Array(i);r[0]=$h,r[1]=function(e,t){var n={};for(var o in t)Zh.call(t,o)&&(n[o]=t[o]);return n[jh]=e,n}(e,t);for(var a=2;a<i;a++)r[a]=n[a];return reactExports.createElement.apply(null,r)};function Uh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Th(t)}Hh=_h||(_h={}),zh||(zh=Hh.JSX||(Hh.JSX={}));var Qh="undefined"!=typeof document?reactExports.useLayoutEffect:function(){},Kh=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],qh=function(){};function eg(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function tg(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];var r=[].concat(o);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&r.push("".concat(eg(e,a)));return r.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var ng=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===zf(e)&&null!==e?[e]:[];var t;},og=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,Jf({},Qf(e,Kh))},ig=function(e,t,n){var o=e.cx,i=e.getStyles,r=e.getClassNames,a=e.className;return {css:i(t,e),className:o(null!=n?n:{},r(t,e),a)}};function rg(e){return [document.documentElement,document.body,window].indexOf(e)>-1}function ag(e){return rg(e)?window.pageYOffset:e.scrollTop}function sg(e,t){rg(e)?window.scrollTo(0,t):e.scrollTop=t;}function cg(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:qh,i=ag(e),r=t-i,a=0;!function t(){var s=function(e,t,n,o){return n*((e=e/o-1)*e*e+1)+t}(a+=10,i,r,n);sg(e,s),a<n?window.requestAnimationFrame(t):o(e);}();}function lg(e,t){var n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),i=t.offsetHeight/3;o.bottom+i>n.bottom?sg(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):o.top-i<n.top&&sg(e,Math.max(t.offsetTop-i,0));}function ug(){try{return document.createEvent("TouchEvent"),!0}catch(e){return !1}}var dg=!1,pg={get passive(){return dg=!0}},fg="undefined"!=typeof window?window:{};fg.addEventListener&&fg.removeEventListener&&(fg.addEventListener("p",qh,pg),fg.removeEventListener("p",qh,!1));var mg=dg;function hg(e){return null!=e}function gg(e,t,n){return e?t:n}var bg=["children","innerProps"],vg=["children","innerProps"];function yg(e){var t=e.maxHeight,n=e.menuEl,o=e.minHeight,i=e.placement,r=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,c=function(e){var t=getComputedStyle(e),n="absolute"===t.position,o=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&o.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}(n),l={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return l;var u,d=c.getBoundingClientRect().height,p=n.getBoundingClientRect(),f=p.bottom,m=p.height,h=p.top,g=n.offsetParent.getBoundingClientRect().top,b=a?window.innerHeight:rg(u=c)?window.innerHeight:u.clientHeight,v=ag(c),y=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),I=g-w,C=b-h,x=I+v,A=d-v-h,k=f-b+v+y,S=v+h-w,N=160;switch(i){case"auto":case"bottom":if(C>=m)return {placement:"bottom",maxHeight:t};if(A>=m&&!a)return r&&cg(c,k,N),{placement:"bottom",maxHeight:t};if(!a&&A>=o||a&&C>=o)return r&&cg(c,k,N),{placement:"bottom",maxHeight:a?C-y:A-y};if("auto"===i||a){var P=t,E=a?I:x;return E>=o&&(P=Math.min(E-y-s,t)),{placement:"top",maxHeight:P}}if("bottom"===i)return r&&sg(c,k),{placement:"bottom",maxHeight:t};break;case"top":if(I>=m)return {placement:"top",maxHeight:t};if(x>=m&&!a)return r&&cg(c,S,N),{placement:"top",maxHeight:t};if(!a&&x>=o||a&&I>=o){var L=t;return (!a&&x>=o||a&&I>=o)&&(L=a?I-w:x-w),r&&cg(c,S,N),{placement:"top",maxHeight:L}}return {placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return l}var wg,Ig=function(e){return "auto"===e?"bottom":e},Cg=reactExports.createContext(null),xg=function(e){var t=e.children,n=e.minMenuHeight,o=e.maxMenuHeight,i=e.menuPlacement,r=e.menuPosition,a=e.menuShouldScrollIntoView,s=e.theme,u=(reactExports.useContext(Cg)||{}).setPortalPlacement,p=reactExports.useRef(null),f=_f(reactExports.useState(o),2),m=f[0],h=f[1],g=_f(reactExports.useState(null),2),b=g[0],v=g[1],y=s.spacing.controlHeight;return Qh(function(){var e=p.current;if(e){var t="fixed"===r,s=yg({maxHeight:o,menuEl:e,minHeight:n,placement:i,shouldScroll:a&&!t,isFixedPosition:t,controlHeight:y});h(s.maxHeight),v(s.placement),null==u||u(s.placement);}},[o,i,r,a,n,u,y]),t({ref:p,placerProps:Jf(Jf({},e),{},{placement:b||Ig(i),maxHeight:m})})},Ag=function(e){var t=e.children,n=e.innerRef,o=e.innerProps;return _h("div",qf({},ig(e,"menu",{menu:!0}),{ref:n},o),t)},kg=function(e,t){var n=e.theme,o=n.spacing.baseUnit,i=n.colors;return Jf({textAlign:"center"},t?{}:{color:i.neutral40,padding:"".concat(2*o,"px ").concat(3*o,"px")})},Sg=kg,Ng=kg,Pg=["size"],Eg=["innerProps","isRtl","size"];var Lg={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Bg=function(e){var t=e.size,n=Qf(e,Pg);return _h("svg",qf({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Lg},n))},Og=function(e){return _h(Bg,qf({size:20},e),_h("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Tg=function(e){return _h(Bg,qf({size:20},e),_h("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Rg=function(e,t){var n=e.isFocused,o=e.theme,i=o.spacing.baseUnit,r=o.colors;return Jf({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?r.neutral60:r.neutral20,padding:2*i,":hover":{color:n?r.neutral80:r.neutral40}})},Gg=Rg,Fg=Rg,Mg=function(){var e=Uh.apply(void 0,arguments),t="animation-"+e.name;return {name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return "_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(wg||(wg=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]))),Dg=function(e){var t=e.delay,n=e.offset;return _h("span",{css:Uh({animation:"".concat(Mg," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Wg=function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,i=e.innerRef,r=e.innerProps,a=e.menuIsOpen;return _h("div",qf({ref:i},ig(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":a}),r,{"aria-disabled":n||void 0}),t)},Vg=["data"],Hg=function(e){var t=e.children,n=e.cx,o=e.getStyles,i=e.getClassNames,r=e.Heading,a=e.headingProps,s=e.innerProps,c=e.label,l=e.theme,u=e.selectProps;return _h("div",qf({},ig(e,"group",{group:!0}),s),_h(r,qf({},a,{selectProps:u,theme:l,getStyles:o,getClassNames:i,cx:n}),c),_h("div",null,t))},zg=["innerRef","isDisabled","isHidden","inputClassName"],Xg={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Zg={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Jf({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Xg)},jg=function(e){return Jf({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Xg)},Jg=function(e){var t=e.cx,n=e.value,o=og(e),i=o.innerRef,r=o.isDisabled,a=o.isHidden,s=o.inputClassName,c=Qf(o,zg);return _h("div",qf({},ig(e,"input",{"input-container":!0}),{"data-value":n||""}),_h("input",qf({className:t({input:!0},s),ref:i,style:jg(a),disabled:r},c)))},Yg=function(e){var t=e.children,n=e.innerProps;return _h("div",n,t)};var $g=function(e){var t=e.children,n=e.components,o=e.data,i=e.innerProps,r=e.isDisabled,a=e.removeProps,s=e.selectProps,c=n.Container,l=n.Label,u=n.Remove;return _h(c,{data:o,innerProps:Jf(Jf({},ig(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":r})),i),selectProps:s},_h(l,{data:o,innerProps:Jf({},ig(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),_h(u,{data:o,innerProps:Jf(Jf({},ig(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},_g=function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,i=e.isSelected,r=e.innerRef,a=e.innerProps;return _h("div",qf({},ig(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":o,"option--is-selected":i}),{ref:r,"aria-disabled":n},a),t)},Ug=function(e){var t=e.children,n=e.isDisabled,o=e.innerProps;return _h("div",qf({},ig(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),o),t)},Qg={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return _h("div",qf({},ig(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||_h(Og,null))},Control:Wg,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return _h("div",qf({},ig(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||_h(Tg,null))},DownChevron:Tg,CrossIcon:Og,Group:Hg,GroupHeading:function(e){var t=og(e);t.data;var n=Qf(t,Vg);return _h("div",qf({},ig(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return _h("div",qf({},ig(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return _h("span",qf({},t,ig(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:Jg,LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,o=e.size,i=void 0===o?4:o,r=Qf(e,Eg);return _h("div",qf({},ig(Jf(Jf({},r),{},{innerProps:t,isRtl:n,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),_h(Dg,{delay:0,offset:n}),_h(Dg,{delay:160,offset:!0}),_h(Dg,{delay:320,offset:!n}))},Menu:Ag,MenuList:function(e){var t=e.children,n=e.innerProps,o=e.innerRef,i=e.isMulti;return _h("div",qf({},ig(e,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:o},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,o=e.controlElement,i=e.innerProps,r=e.menuPlacement,s=e.menuPosition,c=reactExports.useRef(null),p=reactExports.useRef(null),f=_f(reactExports.useState(Ig(r)),2),m=f[0],h=f[1],g=reactExports.useMemo(function(){return {setPortalPlacement:h}},[]),b=_f(reactExports.useState(null),2),v=b[0],y=b[1],w=reactExports.useCallback(function(){if(o){var e=function(e){var t=e.getBoundingClientRect();return {bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(o),t="fixed"===s?0:window.pageYOffset,n=e[m]+t;n===(null==v?void 0:v.offset)&&e.left===(null==v?void 0:v.rect.left)&&e.width===(null==v?void 0:v.rect.width)||y({offset:n,rect:e});}},[o,s,m,null==v?void 0:v.offset,null==v?void 0:v.rect.left,null==v?void 0:v.rect.width]);Qh(function(){w();},[w]);var C=reactExports.useCallback(function(){"function"==typeof p.current&&(p.current(),p.current=null),o&&c.current&&(p.current=un(o,c.current,w,{elementResize:"ResizeObserver"in window}));},[o,w]);Qh(function(){C();},[C]);var x=reactExports.useCallback(function(e){c.current=e,C();},[C]);if(!t&&"fixed"!==s||!v)return null;var A=_h("div",qf({ref:x},ig(Jf(Jf({},e),{},{offset:v.offset,position:s,rect:v.rect}),"menuPortal",{"menu-portal":!0}),i),n);return _h(Cg.Provider,{value:g},t?reactDomExports.createPortal(A,t):A)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,o=e.innerProps,i=Qf(e,vg);return _h("div",qf({},ig(Jf(Jf({},i),{},{children:n,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,o=e.innerProps,i=Qf(e,bg);return _h("div",qf({},ig(Jf(Jf({},i),{},{children:n,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),n)},MultiValue:$g,MultiValueContainer:Yg,MultiValueLabel:Yg,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return _h("div",qf({role:"button"},n),t||_h(Og,{size:14}))},Option:_g,Placeholder:function(e){var t=e.children,n=e.innerProps;return _h("div",qf({},ig(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,o=e.isDisabled,i=e.isRtl;return _h("div",qf({},ig(e,"container",{"--is-disabled":o,"--is-rtl":i}),n),t)},SingleValue:Ug,ValueContainer:function(e){var t=e.children,n=e.innerProps,o=e.isMulti,i=e.hasValue;return _h("div",qf({},ig(e,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i}),n),t)}},Kg=Number.isNaN||function(e){return "number"==typeof e&&e!=e};function qg(e,t){return e===t||!(!Kg(e)||!Kg(t))}function eb(e,t){if(e.length!==t.length)return !1;for(var n=0;n<e.length;n++)if(!qg(e[n],t[n]))return !1;return !0}for(var tb={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},nb=function(e){return _h("span",qf({css:tb},e))},ob={guidance:function(e){var t=e.isSearchable,n=e.isMulti,o=e.tabSelectsValue,i=e.context,r=e.isInitialFocus;switch(i){case"menu":return "Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return r?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return "Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return ""}},onChange:function(e){var t=e.action,n=e.label,o=void 0===n?"":n,i=e.labels,r=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return "option ".concat(o,", deselected.");case"clear":return "All selected options have been cleared.";case"initial-input-focus":return "option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return "option ".concat(o,r?" is disabled. Select another option.":", selected.");default:return ""}},onFocus:function(e){var t=e.context,n=e.focused,o=e.options,i=e.label,r=void 0===i?"":i,a=e.selectValue,s=e.isDisabled,c=e.isSelected,l=e.isAppleDevice,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return "value ".concat(r," focused, ").concat(u(a,n),".");if("menu"===t&&l){var d=s?" disabled":"",p="".concat(c?" selected":"").concat(d);return "".concat(r).concat(p,", ").concat(u(o,n),".")}return ""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return "".concat(n).concat(t?" for search term "+t:"",".")}},ib=function(e){var t=e.ariaSelection,n=e.focusedOption,o=e.focusedValue,i=e.focusableOptions,r=e.isFocused,a=e.selectValue,s=e.selectProps,c=e.id,l=e.isAppleDevice,d=s.ariaLiveMessages,p=s.getOptionLabel,f=s.inputValue,m=s.isMulti,g=s.isOptionDisabled,b=s.isSearchable,v=s.menuIsOpen,y=s.options,w=s.screenReaderStatus,I=s.tabSelectsValue,C=s.isLoading,x=s["aria-label"],A=s["aria-live"],k=reactExports.useMemo(function(){return Jf(Jf({},ob),d||{})},[d]),S=reactExports.useMemo(function(){var e,n="";if(t&&k.onChange){var o=t.option,i=t.options,r=t.removedValue,s=t.removedValues,c=t.value,l=r||o||(e=c,Array.isArray(e)?null:e),u=l?p(l):"",d=i||s||void 0,f=d?d.map(p):[],m=Jf({isDisabled:l&&g(l,a),label:u,labels:f},t);n=k.onChange(m);}return n},[t,k,g,a,p]),N=reactExports.useMemo(function(){var e="",t=n||o,r=!!(n&&a&&a.includes(n));if(t&&k.onFocus){var s={focused:t,label:p(t),isDisabled:g(t,a),isSelected:r,options:i,context:t===n?"menu":"value",selectValue:a,isAppleDevice:l};e=k.onFocus(s);}return e},[n,o,p,g,k,i,a,l]),P=reactExports.useMemo(function(){var e="";if(v&&y.length&&!C&&k.onFilter){var t=w({count:i.length});e=k.onFilter({inputValue:f,resultsMessage:t});}return e},[i,f,v,k,y,w,C]),E="initial-input-focus"===(null==t?void 0:t.action),L=reactExports.useMemo(function(){var e="";if(k.guidance){var t=o?"value":v?"menu":"input";e=k.guidance({"aria-label":x,context:t,isDisabled:n&&g(n,a),isMulti:m,isSearchable:b,tabSelectsValue:I,isInitialFocus:E});}return e},[x,n,o,m,g,b,v,k,a,I,E]),B=_h(reactExports.Fragment,null,_h("span",{id:"aria-selection"},S),_h("span",{id:"aria-focused"},N),_h("span",{id:"aria-results"},P),_h("span",{id:"aria-guidance"},L));return _h(reactExports.Fragment,null,_h(nb,{id:c},E&&B),_h(nb,{"aria-live":A,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},r&&!E&&B))},rb=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],ab=new RegExp("["+rb.map(function(e){return e.letters}).join("")+"]","g"),sb={},cb=0;cb<rb.length;cb++)for(var lb=rb[cb],ub=0;ub<lb.letters.length;ub++)sb[lb.letters[ub]]=lb.base;var db=function(e){return e.replace(ab,function(e){return sb[e]})},pb=function(e,t){void 0===t&&(t=eb);var n=null;function o(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var r=e.apply(this,o);return n={lastResult:r,lastArgs:o,lastThis:this},r}return o.clear=function(){n=null;},o}(db),fb=function(e){return e.replace(/^\s+|\s+$/g,"")},mb=function(e){return "".concat(e.label," ").concat(e.value)},hb=["innerRef"];function gb(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var i=Object.entries(e).filter(function(e){var t=_f(e,1)[0];return !n.includes(t)});return i.reduce(function(e,t){var n=_f(t,2),o=n[0],i=n[1];return e[o]=i,e},{})}(Qf(e,hb),"onExited","in","enter","exit","appear");return _h("input",qf({ref:t},n,{css:Uh({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var bb=["boxSizing","height","overflow","paddingRight","position"],vb={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function yb(e){e.cancelable&&e.preventDefault();}function wb(e){e.stopPropagation();}function Ib(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1);}function Cb(){return "ontouchstart"in window||navigator.maxTouchPoints}var xb=!("undefined"==typeof window||!window.document||!window.document.createElement),Ab=0,kb={capture:!1,passive:!1};var Sb=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},Nb={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Pb(e){var t=e.children,n=e.lockEnabled,o=e.captureEnabled,i=function(e){var t=e.isEnabled,n=e.onBottomArrive,o=e.onBottomLeave,i=e.onTopArrive,r=e.onTopLeave,s=reactExports.useRef(!1),c=reactExports.useRef(!1),l=reactExports.useRef(0),u=reactExports.useRef(null),f=reactExports.useCallback(function(e,t){if(null!==u.current){var a=u.current,l=a.scrollTop,d=a.scrollHeight,p=a.clientHeight,f=u.current,m=t>0,h=d-p-l,g=!1;h>t&&s.current&&(o&&o(e),s.current=!1),m&&c.current&&(r&&r(e),c.current=!1),m&&t>h?(n&&!s.current&&n(e),f.scrollTop=d,g=!0,s.current=!0):!m&&-t>l&&(i&&!c.current&&i(e),f.scrollTop=0,g=!0,c.current=!0),g&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation();}(e);}},[n,o,i,r]),m=reactExports.useCallback(function(e){f(e,e.deltaY);},[f]),h=reactExports.useCallback(function(e){l.current=e.changedTouches[0].clientY;},[]),g=reactExports.useCallback(function(e){var t=l.current-e.changedTouches[0].clientY;f(e,t);},[f]),b=reactExports.useCallback(function(e){if(e){var t=!!mg&&{passive:!1};e.addEventListener("wheel",m,t),e.addEventListener("touchstart",h,t),e.addEventListener("touchmove",g,t);}},[g,h,m]),v=reactExports.useCallback(function(e){e&&(e.removeEventListener("wheel",m,!1),e.removeEventListener("touchstart",h,!1),e.removeEventListener("touchmove",g,!1));},[g,h,m]);return reactExports.useEffect(function(){if(t){var e=u.current;return b(e),function(){v(e);}}},[t,b,v]),function(e){u.current=e;}}({isEnabled:void 0===o||o,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),r=function(e){var t=e.isEnabled,n=e.accountForScrollbars,o=void 0===n||n,i=reactExports.useRef({}),r=reactExports.useRef(null),s=reactExports.useCallback(function(e){if(xb){var t=document.body,n=t&&t.style;if(o&&bb.forEach(function(e){var t=n&&n[e];i.current[e]=t;}),o&&Ab<1){var r=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+r||0;Object.keys(vb).forEach(function(e){var t=vb[e];n&&(n[e]=t);}),n&&(n.paddingRight="".concat(s,"px"));}t&&Cb()&&(t.addEventListener("touchmove",yb,kb),e&&(e.addEventListener("touchstart",Ib,kb),e.addEventListener("touchmove",wb,kb))),Ab+=1;}},[o]),c=reactExports.useCallback(function(e){if(xb){var t=document.body,n=t&&t.style;Ab=Math.max(Ab-1,0),o&&Ab<1&&bb.forEach(function(e){var t=i.current[e];n&&(n[e]=t);}),t&&Cb()&&(t.removeEventListener("touchmove",yb,kb),e&&(e.removeEventListener("touchstart",Ib,kb),e.removeEventListener("touchmove",wb,kb)));}},[o]);return reactExports.useEffect(function(){if(t){var e=r.current;return s(e),function(){c(e);}}},[t,s,c]),function(e){r.current=e;}}({isEnabled:n});return _h(reactExports.Fragment,null,n&&_h("div",{onClick:Sb,css:Nb}),t(function(e){i(e),r(e);}))}var Eb={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Lb=function(e){var t=e.name,n=e.onFocus;return _h("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Eb,value:"",onChange:function(){}})};function Bb(e){var t;return "undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Ob(){return Bb(/^Mac/i)}function Tb(){return Bb(/^iPhone/i)||Bb(/^iPad/i)||Ob()&&navigator.maxTouchPoints>1}var Rb={clearIndicator:Fg,container:function(e){var t=e.isDisabled;return {label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,o=e.isFocused,i=e.theme,r=i.colors,a=i.borderRadius;return Jf({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?r.neutral5:r.neutral0,borderColor:n?r.neutral10:o?r.primary:r.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(r.primary):void 0,"&:hover":{borderColor:o?r.primary:r.neutral30}})},dropdownIndicator:Gg,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,o=n.colors,i=n.spacing;return Jf({label:"group",cursor:"default",display:"block"},t?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*i.baseUnit,paddingRight:3*i.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return {alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,o=e.theme,i=o.spacing.baseUnit,r=o.colors;return Jf({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?r.neutral10:r.neutral20,marginBottom:2*i,marginTop:2*i})},input:function(e,t){var n=e.isDisabled,o=e.value,i=e.theme,r=i.spacing,a=i.colors;return Jf(Jf({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},Zg),t?{}:{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,o=e.size,i=e.theme,r=i.colors,a=i.spacing.baseUnit;return Jf({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?r.neutral60:r.neutral20,padding:2*a})},loadingMessage:Ng,menu:function(e,t){var n,o=e.placement,i=e.theme,r=i.borderRadius,a=i.spacing,s=i.colors;return Jf((Zf(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(o),"100%"),Zf(n,"position","absolute"),Zf(n,"width","100%"),Zf(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:r,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,o=e.theme.spacing.baseUnit;return Jf({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:o,paddingTop:o})},menuPortal:function(e){var t=e.rect,n=e.offset,o=e.position;return {left:t.left,position:o,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,o=n.spacing,i=n.borderRadius,r=n.colors;return Jf({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:r.neutral10,borderRadius:i/2,margin:o.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,o=n.borderRadius,i=n.colors,r=e.cropWithEllipsis;return Jf({overflow:"hidden",textOverflow:r||void 0===r?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:o/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,o=n.spacing,i=n.borderRadius,r=n.colors,a=e.isFocused;return Jf({alignItems:"center",display:"flex"},t?{}:{borderRadius:i/2,backgroundColor:a?r.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:r.dangerLight,color:r.danger}})},noOptionsMessage:Sg,option:function(e,t){var n=e.isDisabled,o=e.isFocused,i=e.isSelected,r=e.theme,a=r.spacing,s=r.colors;return Jf({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:i?s.primary:o?s.primary25:"transparent",color:n?s.neutral20:i?s.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:i?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,o=n.spacing,i=n.colors;return Jf({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:i.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,o=e.theme,i=o.spacing,r=o.colors;return Jf({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?r.neutral40:r.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,o=e.isMulti,i=e.hasValue,r=e.selectProps.controlShouldRenderValue;return Jf({alignItems:"center",display:o&&i&&r?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},Gb={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Fb={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:ug(),captureMenuScroll:!ug(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e){return function(t,n){if(t.data.__isNew__)return !0;var o=Jf({ignoreCase:!0,ignoreAccents:!0,stringify:mb,trim:!0,matchFrom:"any"},e),i=o.ignoreCase,r=o.ignoreAccents,a=o.stringify,s=o.trim,c=o.matchFrom,l=s?fb(n):n,u=s?fb(a(t)):a(t);return i&&(l=l.toLowerCase(),u=u.toLowerCase()),r&&(l=pb(l),u=db(u)),"start"===c?u.substr(0,l.length)===l:u.indexOf(l)>-1}}(),formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return !!e.isDisabled},loadingMessage:function(){return "Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return !1}}(),noOptionsMessage:function(){return "No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return "".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Mb(e,t,n,o){return {type:"option",data:t,isDisabled:jb(e,t,n),isSelected:Jb(e,t,n),label:Xb(e,t),value:Zb(e,t),index:o}}function Db(e,t){return e.options.map(function(n,o){if("options"in n){var i=n.options.map(function(n,o){return Mb(e,n,t,o)}).filter(function(t){return Hb(e,t)});return i.length>0?{type:"group",data:n,options:i,index:o}:void 0}var r=Mb(e,n,t,o);return Hb(e,r)?r:void 0}).filter(hg)}function Wb(e){return e.reduce(function(e,t){return "group"===t.type?e.push.apply(e,rm(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function Vb(e,t){return e.reduce(function(e,n){return "group"===n.type?e.push.apply(e,rm(n.options.map(function(e){return {data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}}))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e},[])}function Hb(e,t){var n=e.inputValue,o=void 0===n?"":n,i=t.data,r=t.isSelected,a=t.label,s=t.value;return (!$b(e)||!r)&&Yb(e,{label:a,value:s,data:i},o)}var zb=function(e,t){var n;return (null===(n=e.find(function(e){return e.data===t}))||void 0===n?void 0:n.id)||null},Xb=function(e,t){return e.getOptionLabel(t)},Zb=function(e,t){return e.getOptionValue(t)};function jb(e,t,n){return "function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Jb(e,t,n){if(n.indexOf(t)>-1)return !0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var o=Zb(e,t);return n.some(function(t){return Zb(e,t)===o})}function Yb(e,t,n){return !e.filterOption||e.filterOption(t,n)}var $b=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},_b=1,Ub=function(){!function(e,t){if("function"!=typeof t&&null!==t)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&&tm(e,t);}(t,reactExports.Component);var e=function(e){var t=om();return function(){var n,o=nm(e);if(t){var i=nm(this).constructor;n=Reflect.construct(o,arguments,i);}else n=o.apply(this,arguments);return im(this,n)}}(t);function t(n){var o;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=e.call(this,n)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.controlRef=null,o.getControlRef=function(e){o.controlRef=e;},o.focusedOptionRef=null,o.getFocusedOptionRef=function(e){o.focusedOptionRef=e;},o.menuListRef=null,o.getMenuListRef=function(e){o.menuListRef=e;},o.inputRef=null,o.getInputRef=function(e){o.inputRef=e;},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(e,t){var n=o.props,i=n.onChange,r=n.name;t.name=r,o.ariaOnChange(e,t),i(e,t);},o.setValue=function(e,t,n){var i=o.props,r=i.closeMenuOnSelect,a=i.isMulti,s=i.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:s}),r&&(o.setState({inputIsHiddenAfterUpdate:!a}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(e,{action:t,option:n});},o.selectOption=function(e){var t=o.props,n=t.blurInputOnSelect,i=t.isMulti,r=t.name,a=o.state.selectValue,s=i&&o.isOptionSelected(e,a),c=o.isOptionDisabled(e,a);if(s){var l=o.getOptionValue(e);o.setValue(a.filter(function(e){return o.getOptionValue(e)!==l}),"deselect-option",e);}else {if(c)return void o.ariaOnChange(e,{action:"select-option",option:e,name:r});i?o.setValue([].concat(rm(a),[e]),"select-option",e):o.setValue(e,"select-option");}n&&o.blurInput();},o.removeValue=function(e){var t=o.props.isMulti,n=o.state.selectValue,i=o.getOptionValue(e),r=n.filter(function(e){return o.getOptionValue(e)!==i}),a=gg(t,r,r[0]||null);o.onChange(a,{action:"remove-value",removedValue:e}),o.focusInput();},o.clearValue=function(){var e=o.state.selectValue;o.onChange(gg(o.props.isMulti,[],null),{action:"clear",removedValues:e});},o.popValue=function(){var e=o.props.isMulti,t=o.state.selectValue,n=t[t.length-1],i=t.slice(0,t.length-1),r=gg(e,i,i[0]||null);n&&o.onChange(r,{action:"pop-value",removedValue:n});},o.getFocusedOptionId=function(e){return zb(o.state.focusableOptionsWithIds,e)},o.getFocusableOptionsWithIds=function(){return Vb(Db(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return tg.apply(void 0,[o.props.classNamePrefix].concat(t))},o.getOptionLabel=function(e){return Xb(o.props,e)},o.getOptionValue=function(e){return Zb(o.props,e)},o.getStyles=function(e,t){var n=o.props.unstyled,i=Rb[e](t,n);i.boxSizing="border-box";var r=o.props.styles[e];return r?r(i,t):i},o.getClassNames=function(e,t){var n,i;return null===(n=(i=o.props.classNames)[e])||void 0===n?void 0:n.call(i,t)},o.getElementId=function(e){return "".concat(o.state.instancePrefix,"-").concat(e)},o.getComponents=function(){return e=o.props,Jf(Jf({},Qg),e.components);var e;},o.buildCategorizedOptions=function(){return Db(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return Wb(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(e,t){o.setState({ariaSelection:Jf({value:e},t)});},o.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),o.focusInput());},o.onMenuMouseMove=function(e){o.blockOptionHover=!1;},o.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&o.onMenuClose():t&&o.openMenu("first"):(t&&(o.openAfterFocus=!0),o.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault();}},o.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||o.props.isDisabled)){var t=o.props,n=t.isMulti,i=t.menuIsOpen;o.focusInput(),i?(o.setState({inputIsHiddenAfterUpdate:!n}),o.onMenuClose()):o.openMenu("first"),e.preventDefault();}},o.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(o.clearValue(),e.preventDefault(),o.openAfterFocus=!1,"touchend"===e.type?o.focusInput():setTimeout(function(){return o.focusInput()}));},o.onScroll=function(e){"boolean"==typeof o.props.closeMenuOnScroll?e.target instanceof HTMLElement&&rg(e.target)&&o.props.onMenuClose():"function"==typeof o.props.closeMenuOnScroll&&o.props.closeMenuOnScroll(e)&&o.props.onMenuClose();},o.onCompositionStart=function(){o.isComposing=!0;},o.onCompositionEnd=function(){o.isComposing=!1;},o.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(o.initialTouchX=n.clientX,o.initialTouchY=n.clientY,o.userIsDragging=!1);},o.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var i=Math.abs(n.clientX-o.initialTouchX),r=Math.abs(n.clientY-o.initialTouchY);o.userIsDragging=i>5||r>5;}},o.onTouchEnd=function(e){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(e.target)&&o.menuListRef&&!o.menuListRef.contains(e.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0);},o.onControlTouchEnd=function(e){o.userIsDragging||o.onControlMouseDown(e);},o.onClearIndicatorTouchEnd=function(e){o.userIsDragging||o.onClearIndicatorMouseDown(e);},o.onDropdownIndicatorTouchEnd=function(e){o.userIsDragging||o.onDropdownIndicatorMouseDown(e);},o.handleInputChange=function(e){var t=o.props.inputValue,n=e.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(n,{action:"input-change",prevInputValue:t}),o.props.menuIsOpen||o.onMenuOpen();},o.onInputFocus=function(e){o.props.onFocus&&o.props.onFocus(e),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1;},o.onInputBlur=function(e){var t=o.props.inputValue;o.menuListRef&&o.menuListRef.contains(document.activeElement)?o.inputRef.focus():(o.props.onBlur&&o.props.onBlur(e),o.onInputChange("",{action:"input-blur",prevInputValue:t}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1}));},o.onOptionHover=function(e){if(!o.blockOptionHover&&o.state.focusedOption!==e){var t=o.getFocusableOptions().indexOf(e);o.setState({focusedOption:e,focusedOptionId:t>-1?o.getFocusedOptionId(e):null});}},o.shouldHideSelectedOptions=function(){return $b(o.props)},o.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),o.focus();},o.onKeyDown=function(e){var t=o.props,n=t.isMulti,i=t.backspaceRemovesValue,r=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,c=t.isDisabled,l=t.menuIsOpen,u=t.onKeyDown,d=t.tabSelectsValue,p=t.openMenuOnFocus,f=o.state,m=f.focusedOption,h=f.focusedValue,g=f.selectValue;if(!(c||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(o.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;o.focusValue("previous");break;case"ArrowRight":if(!n||a)return;o.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(h)o.removeValue(h);else {if(!i)return;n?o.popValue():s&&o.clearValue();}break;case"Tab":if(o.isComposing)return;if(e.shiftKey||!l||!d||!m||p&&o.isOptionSelected(m,g))return;o.selectOption(m);break;case"Enter":if(229===e.keyCode)break;if(l){if(!m)return;if(o.isComposing)return;o.selectOption(m);break}return;case"Escape":l?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:a}),o.onMenuClose()):s&&r&&o.clearValue();break;case" ":if(a)return;if(!l){o.openMenu("first");break}if(!m)return;o.selectOption(m);break;case"ArrowUp":l?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":l?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!l)return;o.focusOption("pageup");break;case"PageDown":if(!l)return;o.focusOption("pagedown");break;case"Home":if(!l)return;o.focusOption("first");break;case"End":if(!l)return;o.focusOption("last");break;default:return}e.preventDefault();}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++_b),o.state.selectValue=ng(n.value),n.menuIsOpen&&o.state.selectValue.length){var i=o.getFocusableOptionsWithIds(),r=o.buildFocusableOptions(),a=r.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=i,o.state.focusedOption=r[a],o.state.focusedOptionId=zb(i,r[a]);}return o}return function(e,t,n){t&&em(e.prototype,t),n&&em(e,n),Object.defineProperty(e,"prototype",{writable:!1});}(t,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&lg(this.menuListRef,this.focusedOptionRef),(Ob()||Tb())&&this.setState({isAppleDevice:!0});}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,o=t.menuIsOpen,i=this.state.isFocused;(i&&!n&&e.isDisabled||i&&o&&!e.menuIsOpen)&&this.focusInput(),i&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):i||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(lg(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1);}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0);}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen();}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose();}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t);}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus();}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur();}},{key:"openMenu",value:function(e){var t=this,n=this.state,o=n.selectValue,i=n.isFocused,r=this.buildFocusableOptions(),a="first"===e?0:r.length-1;if(!this.props.isMulti){var s=r.indexOf(o[0]);s>-1&&(a=s);}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:r[a],focusedOptionId:this.getFocusedOptionId(r[a])},function(){return t.onMenuOpen()});}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,o=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=n.indexOf(o);o||(i=-1);var r=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===i?0:-1===i?r:i-1;break;case"next":i>-1&&i<r&&(a=i+1);}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]});}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,o=this.getFocusableOptions();if(o.length){var i=0,r=o.indexOf(n);n||(r=-1),"up"===e?i=r>0?r-1:o.length-1:"down"===e?i=(r+1)%o.length:"pageup"===e?(i=r-t)<0&&(i=0):"pagedown"===e?(i=r+t)>o.length-1&&(i=o.length-1):"last"===e&&(i=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[i],focusedValue:null,focusedOptionId:this.getFocusedOptionId(o[i])});}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Gb):Jf(Jf({},Gb),this.props.theme):Gb}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,o=this.getClassNames,i=this.getValue,r=this.selectOption,a=this.setValue,s=this.props,c=s.isMulti,l=s.isRtl,u=s.options;return {clearValue:e,cx:t,getStyles:n,getClassNames:o,getValue:i,hasValue:this.hasValue(),isMulti:c,isRtl:l,options:u,selectOption:r,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return !!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return jb(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Jb(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Yb(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,o=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:o})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1));}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd));}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1));}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd));}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,i=e.inputId,r=e.inputValue,a=e.tabIndex,s=e.form,c=e.menuIsOpen,l=e.required,u=this.getComponents().Input,d=this.state,p=d.inputIsHidden,f=d.ariaSelection,m=this.commonProps,h=i||this.getElementId("input"),g=Jf(Jf(Jf({"aria-autocomplete":"list","aria-expanded":c,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":l,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},c&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?reactExports.createElement(u,qf({},m,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:t,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:s,type:"text",value:r},g)):reactExports.createElement(gb,qf({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:qh,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:s,value:""},g))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,i=t.MultiValueContainer,r=t.MultiValueLabel,a=t.MultiValueRemove,s=t.SingleValue,c=t.Placeholder,l=this.commonProps,u=this.props,d=u.controlShouldRenderValue,p=u.isDisabled,f=u.isMulti,m=u.inputValue,h=u.placeholder,g=this.state,b=g.selectValue,v=g.focusedValue,y=g.isFocused;if(!this.hasValue()||!d)return m?null:reactExports.createElement(c,qf({},l,{key:"placeholder",isDisabled:p,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),h);if(f)return b.map(function(t,s){var c=t===v,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return reactExports.createElement(n,qf({},l,{components:{Container:i,Label:r,Remove:a},isFocused:c,isDisabled:p,key:u,index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault();}},data:t}),e.formatOptionLabel(t,"value"))});if(m)return null;var w=b[0];return reactExports.createElement(s,qf({},l,{data:w,isDisabled:p}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,i=n.isDisabled,r=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||i||!this.hasValue()||r)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return reactExports.createElement(e,qf({},t,{innerProps:s,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,i=n.isDisabled,r=n.isLoading,a=this.state.isFocused;if(!e||!r)return null;return reactExports.createElement(e,qf({},t,{innerProps:{"aria-hidden":"true"},isDisabled:i,isFocused:a}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var i=this.commonProps,r=this.props.isDisabled,a=this.state.isFocused;return reactExports.createElement(n,qf({},i,{isDisabled:r,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,i=this.state.isFocused,r={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return reactExports.createElement(e,qf({},t,{innerProps:r,isDisabled:n,isFocused:i}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,i=t.GroupHeading,r=t.Menu,a=t.MenuList,s=t.MenuPortal,c=t.LoadingMessage,l=t.NoOptionsMessage,u=t.Option,d=this.commonProps,p=this.state.focusedOption,f=this.props,m=f.captureMenuScroll,h=f.inputValue,g=f.isLoading,b=f.loadingMessage,v=f.minMenuHeight,y=f.maxMenuHeight,w=f.menuIsOpen,I=f.menuPlacement,C=f.menuPosition,x=f.menuPortalTarget,A=f.menuShouldBlockScroll,k=f.menuShouldScrollIntoView,S=f.noOptionsMessage,N=f.onMenuScrollToTop,P=f.onMenuScrollToBottom;if(!w)return null;var E,L=function(t,n){var i=t.type,r=t.data,a=t.isDisabled,s=t.isSelected,c=t.label,l=t.value,f=p===r,m=a?void 0:function(){return e.onOptionHover(r)},h=a?void 0:function(){return e.selectOption(r)},g="".concat(e.getElementId("option"),"-").concat(n),b={id:g,onClick:h,onMouseMove:m,onMouseOver:m,tabIndex:-1,role:"option","aria-selected":e.state.isAppleDevice?void 0:s};return reactExports.createElement(u,qf({},d,{innerProps:b,data:r,isDisabled:a,isSelected:s,key:g,label:c,type:i,value:l,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())E=this.getCategorizedOptions().map(function(t){if("group"===t.type){var r=t.data,a=t.options,s=t.index,c="".concat(e.getElementId("group"),"-").concat(s),l="".concat(c,"-heading");return reactExports.createElement(n,qf({},d,{key:c,data:r,options:a,Heading:i,headingProps:{id:l,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map(function(e){return L(e,"".concat(s,"-").concat(e.index))}))}if("option"===t.type)return L(t,"".concat(t.index))});else if(g){var B=b({inputValue:h});if(null===B)return null;E=reactExports.createElement(c,d,B);}else {var O=S({inputValue:h});if(null===O)return null;E=reactExports.createElement(l,d,O);}var T={minMenuHeight:v,maxMenuHeight:y,menuPlacement:I,menuPosition:C,menuShouldScrollIntoView:k},R=reactExports.createElement(xg,qf({},d,T),function(t){var n=t.ref,i=t.placerProps,s=i.placement,c=i.maxHeight;return reactExports.createElement(r,qf({},d,T,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:g,placement:s}),reactExports.createElement(Pb,{captureEnabled:m,onTopArrive:N,onBottomArrive:P,lockEnabled:A},function(t){return reactExports.createElement(a,qf({},d,{innerRef:function(n){e.getMenuListRef(n),t(n);},innerProps:{role:"listbox","aria-multiselectable":d.isMulti,id:e.getElementId("listbox")},isLoading:g,maxHeight:c,focusedOption:p}),E)}))});return x||"fixed"===C?reactExports.createElement(s,qf({},d,{appendTo:x,controlElement:this.controlRef,menuPlacement:I,menuPosition:C}),R):R}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,i=t.isDisabled,r=t.isMulti,a=t.name,s=t.required,c=this.state.selectValue;if(s&&!this.hasValue()&&!i)return reactExports.createElement(Lb,{name:a,onFocus:this.onValueInputFocus});if(a&&!i){if(r){if(n){var l=c.map(function(t){return e.getOptionValue(t)}).join(n);return reactExports.createElement("input",{name:a,type:"hidden",value:l})}var u=c.length>0?c.map(function(t,n){return reactExports.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})}):reactExports.createElement("input",{name:a,type:"hidden",value:""});return reactExports.createElement("div",null,u)}var d=c[0]?this.getOptionValue(c[0]):"";return reactExports.createElement("input",{name:a,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,i=t.focusedOption,r=t.focusedValue,a=t.isFocused,s=t.selectValue,c=this.getFocusableOptions();return reactExports.createElement(ib,qf({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:i,focusedValue:r,isFocused:a,selectValue:s,focusableOptions:c,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,i=e.SelectContainer,r=e.ValueContainer,a=this.props,s=a.className,c=a.id,l=a.isDisabled,u=a.menuIsOpen,d=this.state.isFocused,p=this.commonProps=this.getCommonProps();return reactExports.createElement(i,qf({},p,{className:s,innerProps:{id:c,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:d}),this.renderLiveRegion(),reactExports.createElement(t,qf({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:d,menuIsOpen:u}),reactExports.createElement(r,qf({},p,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),reactExports.createElement(n,qf({},p,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,o=t.clearFocusValueOnUpdate,i=t.inputIsHiddenAfterUpdate,r=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,c=t.instancePrefix,l=e.options,u=e.value,d=e.menuIsOpen,p=e.inputValue,f=e.isMulti,m=ng(u),h={};if(n&&(u!==n.value||l!==n.options||d!==n.menuIsOpen||p!==n.inputValue)){var g=d?function(e,t){return Wb(Db(e,t))}(e,m):[],b=d?Vb(Db(e,m),"".concat(c,"-option")):[],v=o?function(e,t){var n=e.focusedValue,o=e.selectValue.indexOf(n);if(o>-1){if(t.indexOf(n)>-1)return n;if(o<t.length)return t[o]}return null}(t,m):null,y=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,g);h={selectValue:m,focusedOption:y,focusedOptionId:zb(b,y),focusableOptionsWithIds:b,focusedValue:v,clearFocusValueOnUpdate:!1};}var w=null!=i&&e!==n?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},I=r,C=a&&s;return a&&!C&&(I={value:gg(f,m,m[0]||null),options:m,action:"initial-input-focus"},C=!s),"initial-input-focus"===(null==r?void 0:r.action)&&(I=null),Jf(Jf(Jf({},h),w),{},{prevProps:e,ariaSelection:I,prevWasFocused:C})}}]),t}();Ub.defaultProps=Fb;var Qb=reactExports.forwardRef(function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,o=e.defaultMenuIsOpen,i=void 0!==o&&o,r=e.defaultValue,s=void 0===r?null:r,c=e.inputValue,u=e.menuIsOpen,d=e.onChange,p=e.onInputChange,f=e.onMenuClose,m=e.onMenuOpen,h=e.value,g=Qf(e,Kf),b=_f(reactExports.useState(void 0!==c?c:n),2),v=b[0],y=b[1],w=_f(reactExports.useState(void 0!==u?u:i),2),I=w[0],C=w[1],x=_f(reactExports.useState(void 0!==h?h:s),2),A=x[0],k=x[1],S=reactExports.useCallback(function(e,t){"function"==typeof d&&d(e,t),k(e);},[d]),N=reactExports.useCallback(function(e,t){var n;"function"==typeof p&&(n=p(e,t)),y(void 0!==n?n:e);},[p]),P=reactExports.useCallback(function(){"function"==typeof m&&m(),C(!0);},[m]),E=reactExports.useCallback(function(){"function"==typeof f&&f(),C(!1);},[f]),L=void 0!==c?c:v,B=void 0!==u?u:I,O=void 0!==h?h:A;return Jf(Jf({},g),{},{inputValue:L,menuIsOpen:B,onChange:S,onInputChange:N,onMenuClose:E,onMenuOpen:P,value:O})}(e);return reactExports.createElement(Ub,qf({ref:t},n))}),Kb=Qb;const qb=reactExports.forwardRef(({id:n,className:o,name:i="select",align:r="up",label:a,options:s=[],value:c,placeholder:l="Select...",isMulti:u=!1,isSearchable:d,isClearable:p,backspaceRemovesValue:f,disabled:m,onChange:h,onInputChange:g,menuIsOpen:b,closeMenuOnSelect:v,isLoading:y,components:w,errorMessage:I,errorDataTestId:C},x)=>{const A=Df(),k=n||`select-${A}`,P=S("io-control-select",m&&"io-control-disabled",I&&"io-control-error",r&&[`direction-${r}`],o),E=I?{"aria-invalid":!0,"aria-errormessage":`${k}-error`}:{};return jsxRuntimeExports.jsxs("div",{className:P,children:[a&&jsxRuntimeExports.jsx(Of,{htmlFor:k,text:a}),jsxRuntimeExports.jsx(Kb,{ref:x,className:"io-select",classNamePrefix:"io-select",instanceId:k,isMulti:u,inputId:k,name:i,options:s,value:c,onChange:e=>u?h?.([...e??[]]):h?.(e),onInputChange:g,menuIsOpen:b,isLoading:y,components:w,placeholder:l,isDisabled:m,isSearchable:d,isClearable:p??u,backspaceRemovesValue:f,closeMenuOnSelect:v,"aria-label":a,...E}),I&&jsxRuntimeExports.jsxs("div",{"data-testid":C,id:`${k}-error`,className:"io-input-error",children:[jsxRuntimeExports.jsx(N,{variant:"close"}),I]})]})});qb.displayName="Select";const ev=reactExports.forwardRef(({id:n,className:o,name:i="textarea",align:r="up",label:a,rows:s=4,placeholder:c="Enter text here...",disabled:l,readOnly:u,...d},p)=>{const f=Df(),m=n||`textarea-${f}`,h=S("io-control-textarea",l&&"io-control-disabled",u&&"io-control-readonly",r&&[`direction-${r}`],o);return jsxRuntimeExports.jsxs("div",{className:h,children:[a&&jsxRuntimeExports.jsx(Of,{htmlFor:m,text:a}),jsxRuntimeExports.jsx("textarea",{id:m,className:"io-textarea",ref:p,name:i,tabIndex:0,placeholder:c,"aria-label":a,disabled:l,readOnly:u,rows:s,...d})]})});ev.displayName="Textarea";const tv=()=>{const e=reactExports.useContext(IOConnectContext),[t,n]=reactExports.useState(null),o=reactExports.useCallback(t=>e?.themes?.select(t),[e]);return reactExports.useEffect(()=>{if(!e)return;let t=!1;const o=e=>{t||n(e);};return e.themes?.onChanged(o),e.themes?.getCurrent().then(o).catch(console.warn),()=>{t=!0;}},[e]),{currentTheme:t,selectTheme:o}};function nv(e,t=500){const[n,o]=reactExports.useState(e);return reactExports.useEffect(()=>{const n=setTimeout(()=>{o(e);},t);return ()=>clearTimeout(n)},[e,t]),n}function iv(){return reactExports.useMemo(()=>"object"==typeof window&&Ba(),[])}const fv=()=>{const e=reactExports.useContext(IOConnectContext),[t,n]=reactExports.useState([]);return reactExports.useEffect(()=>{e&&e.themes?.list().then(n).catch(console.warn);},[e]),t};const yv=reactExports.forwardRef(({id:n,className:o,name:i="toggle",align:r="left",label:a,checked:s,disabled:c,onKeyDown:l,"data-testid":u="toggle",...d},p)=>{const f=Df(),m=n||`toggle-${f}`,h=S("io-control-toggle",s&&"io-control-checked",c&&"io-control-disabled",r&&[`direction-${r}`],o);return jsxRuntimeExports.jsx("div",{className:h,children:jsxRuntimeExports.jsxs("label",{className:"io-toggle",htmlFor:m,tabIndex:c?-1:0,onKeyDown:l,"data-testid":`${u}-label`,children:[jsxRuntimeExports.jsx("input",{type:"checkbox",id:m,className:"io-checkbox",ref:p,name:i,checked:s,disabled:c,"aria-checked":s,tabIndex:-1,"data-testid":u,...d}),jsxRuntimeExports.jsx("span",{className:"slider","data-testid":`${u}-slider`}),a]})})});function wv(e){return {name:e.name,title:e.title,hidden:e.isHidden,userProperties:e.customProperties}}function Iv(e){return {name:e.name,title:e.title,hidden:e.hidden,userProperties:e.userProperties}}yv.displayName="Toggle";class Cv extends Error{constructor(e){super(e),this.name="IoAppsSubApiMissingError";}}function xv(e){if(!e.registry)throw new Cv("io.apps is available but io.apps.registry is missing")}function Av(e){if(!e.instances)throw new Cv("io.apps is available but io.apps.instances is missing")}async function kv(e,t){if(!e||!t)return;const n=e.apps;n&&xv(n);try{if(n){const e=await n.registry.get({name:t});if(!e)return;return wv(e)}const o=e.appManager?.application(t);if(!o)return;return Iv(o)}catch(e){return void console.error(`Failed to get application "${t}"`,e)}}const Sv={getMyApplication:async function(e){if(e)try{const t=e.apps?e.apps.my?.appName:e.appManager?.myApplication?.name;if(!t)return;return await kv(e,t)}catch(e){if(e instanceof Cv)throw e;return void console.error("Failed to get my application",e)}},getApplication:kv,getApplications:async function(e){if(!e)return [];const t=e.apps;t&&xv(t);try{if(t){const e=await t.registry.getMany()??[];return e.map(e=>wv(e))}const n=e.appManager?.applications()??[];return n.map(e=>Iv(e))}catch(e){console.error("Failed to get applications",e);}return []},getApplicationConfiguration:async function(e,t){if(!e||!t)return;const n=e.apps;n&&xv(n);try{if(n){const e=await n.registry.get({name:t,includeDefinition:!0});return e?.definition}const o=e.appManager?.application(t);if(!o)return;return await o.getConfiguration()}catch(e){return void console.error(`Failed to get configuration for application "${t}"`,e)}},startApplication:async function(e,t,n){if(!e)return;const o=e.apps;o&&(xv(o),Av(o));try{if(o){return await o.registry.get({name:t})?void await o.instances.start({name:t,...n}):void console.error(`Application "${t}" not found in registry`)}const i=e.appManager?.application(t);if(!i)return void console.error(`Application "${t}" not found`);await i.start(n);}catch(e){return void console.error(`Failed to start application "${t}"`,e)}},stopApplication:async function(e,t,n){if(!e)return;const o=e.apps;o&&Av(o);try{if(o)return void await o.instances.stop({id:t.id,force:n?.force,reason:n?.reason,timeout:n?.timeout});const i=e.appManager.instances().find(e=>e.id===t.id);if(!i)return void console.error(`Instance "${t.id}" not found`);await i.stop();}catch(e){return void console.error(`Failed to stop application instance "${t.id}"`,e)}},onAppAdded:async function(e,t){if(!e)return;const n=e.apps;n&&xv(n);try{if(n){return await n.registry.onAdded(({app:e})=>{const n=wv(e);t(n);})}const o=e.appManager?.onAppAdded(e=>{const n=Iv(e);t(n);});return o}catch(e){return void console.error("Failed to subscribe to app added events",e)}},onAppRemoved:async function(e,t){if(!e)return;const n=e.apps;n&&xv(n);try{if(n){return await n.registry.onRemoved(({appName:e})=>{t({name:e});})}const o=e.appManager?.onAppRemoved(e=>{t({name:e.name});});return o}catch(e){return void console.error("Failed to subscribe to app removed events",e)}},onAppChanged:async function(e,t){if(!e)return;const n=e.apps;n&&xv(n);try{if(n){return await n.registry.onUpdated(e=>{const n=wv(e.app);t(n);})}const o=e.appManager?.onAppChanged(e=>{const n=Iv(e);t(n);});return o}catch(e){return void console.error("Failed to subscribe to app changed events",e)}},shutdownPlatform:async function(e,t=!0){if(!e)return;const n={autoSave:t,showDialog:!0};try{if(e.platform?.shutdown)return void await e.platform.shutdown(n);await(e.appManager?.exit(n));}catch(e){console.error("Failed to shutdown platform",e);}},restartPlatform:async function(e,t=!0){if(!e)return;const n={autoSave:t,showDialog:!0};try{if(e.platform?.restart)return void await e.platform.restart(n);await(e.appManager?.restart(n));}catch(e){console.error("Failed to restart platform",e);}}};const Nv={minimizeWindow:async function(e){if(e)try{const t=e.windows?.my();await(t?.minimize());}catch(e){console.error("Failed to minimize window",e);}},closeWindow:async function(e,t){if(e)try{const n=e.windows?.my();await(n?.close(t));}catch(e){console.error("Failed to close window",e);}},restartPlatform:Sv.restartPlatform,shutdownPlatform:Sv.shutdownPlatform};reactExports.createContext({theme:"dark"});reactExports.createContext(void 0);const Ov=n=>{const{General:o,Launchpad:i,Layouts:r,Downloads:a,System:s}=Hy();return jsxRuntimeExports.jsxs(Bf,{element:jl,elementProps:n,children:[jsxRuntimeExports.jsx(o,{}),jsxRuntimeExports.jsx(i,{}),jsxRuntimeExports.jsx(r,{}),jsxRuntimeExports.jsx(a,{}),jsxRuntimeExports.jsx(s,{})]})},Tv=({title:t="General",...n})=>{const{Theme:o}=Hy();return jsxRuntimeExports.jsx(T,{title:t,...n,children:jsxRuntimeExports.jsx(o,{})})},Rv=({className:n,title:o="Theme",...i})=>{const{currentTheme:r,selectTheme:a}=tv(),s=fv();return jsxRuntimeExports.jsxs("div",{className:S("flex jc-between ai-center",n),"data-testid":"theme-container",...i,children:[jsxRuntimeExports.jsx("label",{className:"io-text-clipper","data-testid":"theme-label",children:o}),jsxRuntimeExports.jsxs(re,{variant:"light","data-testid":"theme-dropdown",children:[jsxRuntimeExports.jsx(re.Button,{text:r?.displayName??"Dark","data-testid":"theme-dropdown-button"}),jsxRuntimeExports.jsx(re.Content,{"data-testid":"theme-dropdown-content",children:jsxRuntimeExports.jsx(re.List,{children:s.map(({displayName:t,name:n})=>jsxRuntimeExports.jsx(re.Item,{onClick:()=>a(n),"data-testid":`theme-dropdown-item-${n}`,children:t},n))})})]})]})},Gv=({prefKey:t,...n})=>{const{isLoading:o,value:i=!1,update:r}=Rs({prefKey:t});return jsxRuntimeExports.jsx(yv,{checked:i,disabled:o,onChange:e=>r(e.target.checked),...n})},Fv=({align:t="right",label:n="Minimize to tray",...o})=>jsxRuntimeExports.jsx(Gv,{align:t,label:n,prefKey:ja,...o}),Mv=({prefKey:n,options:o,disabled:i,...r})=>{const{isLoading:a,value:s="Select option",update:c}=Rs({prefKey:n});return jsxRuntimeExports.jsxs(re,{variant:"light",disabled:a||i,...r,children:[jsxRuntimeExports.jsx(re.Button,{children:s}),jsxRuntimeExports.jsx(re.Content,{children:jsxRuntimeExports.jsx(re.List,{children:o.map(t=>jsxRuntimeExports.jsx(re.Item,{onClick:()=>(async e=>{if(e!==s)try{await c(e);}catch(e){console.error("Failed to update platform preference:",e);}})(t),children:t},t))})})]})},Dv=({className:n,label:o="Pinned position",...i})=>jsxRuntimeExports.jsx(T,{className:S("io-block-list-gap",n),...i,children:jsxRuntimeExports.jsxs("div",{className:"flex jc-between ai-center",children:[jsxRuntimeExports.jsx("label",{className:"io-text-clipper",children:o}),jsxRuntimeExports.jsx(Mv,{className:n,prefKey:Ya,options:["Left","Right"],...i})]})}),Wv=({align:t="right",label:n='Hide "Favorites"',...o})=>jsxRuntimeExports.jsx(Gv,{align:t,label:n,prefKey:es,...o}),Vv=({align:t="right",label:n="Allow docking to top",...o})=>jsxRuntimeExports.jsx(Gv,{align:t,label:n,prefKey:$a,...o}),Hv=({align:t="right",label:n="Always on top",...o})=>jsxRuntimeExports.jsx(Gv,{align:t,label:n,prefKey:_a,...o}),zv=({align:t="right",label:n="Claim occupied space",...o})=>jsxRuntimeExports.jsx(Gv,{align:t,label:n,prefKey:Ua,...o}),Xv=({align:t="right",label:n="Show the extended Launchpad area",...o})=>jsxRuntimeExports.jsx(Gv,{align:t,label:n,prefKey:Qa,...o}),Zv=({align:t="right",label:n="Hide labels",...o})=>{const{value:i}=Rs({prefKey:Qa});return jsxRuntimeExports.jsx(Gv,{align:t,label:n,prefKey:Ka,disabled:!i,...o})},jv=({align:t="right",label:n='Show "Favorites"',...o})=>{const{value:i}=Rs({prefKey:Qa});return jsxRuntimeExports.jsx(Gv,{align:t,label:n,prefKey:qa,disabled:!i,...o})},Jv=({align:t="right",label:n='Show "Recent"',...o})=>{const{value:i}=Rs({prefKey:Qa});return jsxRuntimeExports.jsx(Gv,{align:t,label:n,prefKey:ts,disabled:!i,...o})},Yv=({title:n="Layouts",...o})=>{const{LayoutsSaveCurrentOnExit:i,LayoutsShowDeletePrompt:r,LayoutsShowUnsavedChangesPrompt:a,LayoutsShowHidden:s}=Hy();return jsxRuntimeExports.jsxs(T,{title:n,...o,children:[jsxRuntimeExports.jsx(i,{}),jsxRuntimeExports.jsx(a,{}),jsxRuntimeExports.jsx(r,{}),jsxRuntimeExports.jsx(s,{})]})},$v=({align:t="right",label:n="Save current on exit",...o})=>jsxRuntimeExports.jsx(Gv,{align:t,label:n,prefKey:os,...o}),_v=({align:t="right",label:n="Show prompt for unsaved changes",...o})=>jsxRuntimeExports.jsx(Gv,{align:t,label:n,prefKey:is,"data-testid":"layouts-show-unsaved-changes-prompt-toggle-button",...o}),Uv=({align:t="right",label:n="Show prompt for deleting",...o})=>jsxRuntimeExports.jsx(Gv,{align:t,label:n,prefKey:rs,"data-testid":"layouts-show-delete-prompt-toggle",...o}),Qv=({title:t="Downloads",...n})=>{const{DownloadsLocation:o}=Hy();return jsxRuntimeExports.jsx(T,{title:t,...n,children:jsxRuntimeExports.jsx(o,{})})};function Kv({title:n="Downloads"}){const{ItemSearch:o,HeaderButtons:i}=xy();return jsxRuntimeExports.jsxs("div",{className:"io-dm-header",children:[jsxRuntimeExports.jsxs(se,{draggable:!0,children:[jsxRuntimeExports.jsx(se.Title,{tag:"h1",text:n,size:"large"}),jsxRuntimeExports.jsx(i,{className:"non-draggable"})]}),jsxRuntimeExports.jsx(o,{})]})}const ey=reactExports.createContext({configuration:{},items:[],removeItem:()=>{},pauseResumeItem:()=>{},cancelItem:()=>{},clearItems:()=>{},showItemInFolder:()=>{},isSettingsVisible:!1,showSettings:()=>{},hideSettings:()=>{},searchQuery:"",setSearch:()=>{},itemsCount:0,setCount:()=>{},setDownloadLocation:()=>{},setDownloadLocationWithDialog:()=>{},sortItems:()=>[],downloadLocationList:[],isDownloadLocationDialogVisible:!1}),ty=()=>reactExports.useContext(ey);function ny({className:n,placeholder:o="Search",iconPrepend:i="search",iconAppend:r="close",...s}){const c=S("io-header-search",n),l=reactExports.useRef(null),{searchQuery:u,setSearch:p,itemsCount:f}=ty(),m=u.length>0,h=reactExports.useCallback(()=>{p(""),l.current&&l.current.focus();},[p]);return jsxRuntimeExports.jsxs("div",{className:c,children:[jsxRuntimeExports.jsx(Vf,{ref:l,value:u,iconPrepend:i,iconAppend:m?r:void 0,iconAppendOnClick:m?h:void 0,placeholder:o,onChange:e=>p(e.target.value),...s}),m&&jsxRuntimeExports.jsx("p",{className:"io-header-search-count",children:`${f} results`})]})}function oy({className:n,...o}){const{MoreButton:i,CloseButton:r,ExternalButton:a}=xy();return jsxRuntimeExports.jsxs(ae,{className:n,align:"right",...o,children:[jsxRuntimeExports.jsx(i,{}),jsxRuntimeExports.jsx(a,{}),jsxRuntimeExports.jsx(r,{})]})}function iy({icon:n="ellipsis-vertical",...o}){const{items:i,clearItems:r,showSettings:a}=ty(),s=0===i.length;return jsxRuntimeExports.jsxs(re,{variant:"light",...o,children:[jsxRuntimeExports.jsx(re.ButtonIcon,{icon:n,variant:"circle",size:"32"}),jsxRuntimeExports.jsx(re.Content,{children:jsxRuntimeExports.jsxs(re.List,{children:[jsxRuntimeExports.jsx(re.Item,{onClick:e=>(e=>{s?e.stopPropagation():r();})(e),disabled:s,children:"Clear All"}),jsxRuntimeExports.jsx(re.Item,{onClick:a,children:"Settings"})]})})]})}function ry({className:t,icon:n="pop-out",...o}){const i=reactExports.useContext(IOConnectContext),r=reactExports.useCallback(()=>{Sv.startApplication(i,"io-connect-download-manager").catch(e=>{console.error("Failed to open Download Manager",e);});},[i]);return jsxRuntimeExports.jsx(P,{className:S("io-dm-compact-mode-only",t),icon:n,variant:"circle",size:"32",onClick:r,...o})}function ay({icon:t="close",size:n="32",variant:o="circle",onClick:i,...r}){const a=reactExports.useContext(IOConnectContext);return jsxRuntimeExports.jsx(P,{icon:t,size:n,variant:o,onClick:e=>{i?i(e):Nv.closeWindow(a).catch(e=>{console.error("Failed to close window:",e);});},...r})}function sy(e,t=!1,n=!1,o=!1){const i=e.getDate(),r=["January","February","March","April","May","June","July","August","September","October","November","December"][e.getMonth()],a=e.getFullYear(),s=e.getHours(),c=e.getMinutes();let l="";return l=c<10?`0${c}`:`${c}`,t?"Today"===t?n?"Today":`Today at ${s}:${l}`:"Yesterday"===t?n?"Yesterday":`Yesterday at ${s}:${l}`:`${s}:${l}`:o?n?`${r} ${i}`:`${r} ${i} at ${s}:${l}`:n?`${r} ${i}, ${a}`:`${r} ${i}, ${a} at ${s}:${l}`}function cy(e,t={showTime:!0}){const n=new Date(1e3*e),o=new Date,i=Math.round((o-n)/1e3),r=Math.round(i/60),a=o.toDateString()===n.toDateString(),s=new Date(o.setDate(o.getDate()-1)).toDateString()===n.toDateString(),c=o.getFullYear()===n.getFullYear();return t.showTime?i<5?"Just Now":i<60?`${i} seconds ago`:i<90?"about a minute ago":r<60?`${r} minutes ago`:a?sy(n,"Today",!1,!0):s?sy(n,"Yesterday",!1,!0):c?sy(n,!1,!1,!0):sy(n):a?"Today":s?"Yesterday":c?sy(n,!1,!0,!0):sy(n,!1,!0)}function ly({className:t,...n}){const o=S("io-dm-body","io-panel-body",t),{DownloadListEmpty:i,ItemGroup:r,Item:a}=xy(),{items:s,searchQuery:c,setCount:l,sortItems:d}=ty(),f=d(s),m=nv(c),h=reactExports.useMemo(()=>f.filter(e=>e.displayInfo.filename.toLowerCase().includes(m.toLowerCase())||e.displayInfo.url.toLowerCase().includes(m.toLowerCase())),[f,m]),g=reactExports.useMemo(()=>h.map(e=>({...e,displayInfo:{...e.displayInfo,startTime:cy(e.displayInfo.startTime,{showTime:!1})}})),[h]),b=reactExports.useMemo(()=>Object.values(g.reduce((e={},t)=>(e[t.displayInfo.startTime]=e[t.displayInfo.startTime]?.concat([])??[],e[t.displayInfo.startTime].push(t),e),{})),[g]);return reactExports.useEffect(()=>{l(h.length);},[h,l]),jsxRuntimeExports.jsx(Bf,{elementProps:{className:o,...n},children:b&&0!==b.length?b.map(t=>jsxRuntimeExports.jsx(r,{title:String(t[0].displayInfo.startTime)??null,children:t.map(t=>jsxRuntimeExports.jsx(a,{item:t},t.id))},t[0].id??"")):jsxRuntimeExports.jsx(i,{})})}function uy({className:n,icon:o="download",text:i="No downloads to display.",...r}){const a=S("io-dm-no-items",n);return jsxRuntimeExports.jsxs("div",{className:a,...r,children:[jsxRuntimeExports.jsx(N,{variant:o}),jsxRuntimeExports.jsx("p",{children:i})]})}function dy({className:n,title:o,children:i,...r}){const a=S("io-dm-item-group",n);return jsxRuntimeExports.jsxs("div",{className:a,...r,children:[o&&jsxRuntimeExports.jsx("p",{className:"io-dm-items-group-title",children:o}),i]})}function py({className:o,item:i,...r}){const{ItemHeader:a,ItemBody:s,ItemFooter:c}=xy(),{state:l,url:u,filename:d,receivedBytes:p,totalBytes:f,speed:m,timeRemaining:h}=i.displayInfo;if(!i)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const g=S("io-dm-item",i.displayInfo.state&&[l],o);return jsxRuntimeExports.jsxs("div",{className:g,...r,children:[jsxRuntimeExports.jsx(a,{itemID:i.id,filename:d,state:l}),jsxRuntimeExports.jsx(s,{state:l,url:u,bytesReceived:p,bytesTotal:f,speed:m,timeRemaining:h}),jsxRuntimeExports.jsx(c,{itemID:i.id,state:l})]})}function fy({bytesReceived:t=0,bytesTotal:n=0,...o}){const i=reactExports.useCallback(()=>t&&n?Math.round(t/n*100):0,[t,n]);return jsxRuntimeExports.jsx(_l,{value:i(),...o})}function my({className:n,itemID:o,filename:i,state:r,pauseResume:s,showInFolder:c,cancel:l,remove:u,...d}){const p=S("io-dm-item-header",n),{pauseResumeItem:f,showItemInFolder:m,cancelItem:h,removeItem:g}=ty(),b="progressing"===r||"paused"===r,v="interrupted"===r||"cancelled"===r,y=b?"Cancel Download":"Remove Download",w=l??h,I=u??g,C=function(e,t,n,o){return "paused"===e||"progressing"===e?{statusIcon:"paused"===e?"play":"pause",onStatusActionClick:()=>n(t)}:"completed"===e?{statusIcon:"folder",onStatusActionClick:()=>o(t)}:null}(r,o,s??f,c??m),x=reactExports.useCallback(()=>{b?w(o):I(o);},[b,w,o,I]);return jsxRuntimeExports.jsxs("div",{className:p,...d,children:[jsxRuntimeExports.jsx(O,{text:i,style:{textDecoration:v?"line-through":"none"}}),jsxRuntimeExports.jsxs(ae,{children:[C&&jsxRuntimeExports.jsx(P,{icon:C.statusIcon,iconSize:"12",onClick:C.onStatusActionClick,className:"io-dm-compact-mode-only"}),jsxRuntimeExports.jsx(P,{icon:"close",iconSize:"12",title:y,onClick:x})]})]})}function hy({className:n,state:o,url:i,bytesReceived:r=0,bytesTotal:a=0,speed:s=0,timeRemaining:c=0,...l}){const u=S("io-dm-item-body",n),d=e=>{const t=["Bytes","KB","MB","GB","TB"];if(0===e)return "0";const n=Math.floor(Math.log(e)/Math.log(1024));return 0===n?`${e}${t[n]}`:`${(e/1024**n).toFixed(1)}${t[n]}`};return jsxRuntimeExports.jsxs("div",{className:u,...l,children:[jsxRuntimeExports.jsx("p",{className:"io-text-small",children:i}),(f=o,"cancelled"===f||"interrupted"===f||"completed"===f?null:jsxRuntimeExports.jsx(fy,{variant:"paused"===f?"paused":"active",bytesReceived:r,bytesTotal:a})),jsxRuntimeExports.jsx("p",{className:"io-text-default-lh16",children:"completed"===o?`${d(r??0)} - Done`:"cancelled"===o||"interrupted"===o?`${d(r??0)}/${d(a??0)} - Failed`:`${d(r??0)}/${d(a??0)} (${p=s,(p?`${(p/1e6/8).toFixed(2)}MB/s`:0)??0}) - ${(e=>{const t=Math.floor(e/3600),n=Math.floor(e%3600/60);let o="";return t>0&&(o+=`${t} hour${t>1?"s":""}, `),n>0&&(o+=`${n} min${n>1?"s":""}, `),((e=Math.floor(e%60))>0||""===o)&&(o+=`${e} sec${1===e?"":"s"}`),`${o.trim()} left`})(c)??0}`})]});var p,f;}const gy={success:"check-solid",warning:"exclamation-mark",critical:"exclamation-mark"};function by({className:n,variant:o,text:i}){const r=S("io-dm-item-status",`io-dm-item-status-${o}`,n);return jsxRuntimeExports.jsxs("div",{className:r,children:[o&&jsxRuntimeExports.jsx(N,{variant:gy[o],className:"icon-severity",size:"10"}),i&&jsxRuntimeExports.jsx("p",{className:"io-text-smaller",children:i})]})}function vy({className:o,itemID:i,state:r,pauseResume:s,showInFolder:c,cancel:l,...u}){const d=S("io-dm-item-footer",o),{pauseResumeItem:p,showItemInFolder:f,cancelItem:m}=ty(),h=reactExports.useCallback(e=>{s?s(e):p(e);},[s,p]),g=reactExports.useCallback(e=>{c?c(e):f(e);},[c,f]),b=reactExports.useCallback(e=>{l?l(e):m(e);},[l,m]);return jsxRuntimeExports.jsx("div",{className:d,...u,children:(()=>{switch(r){case"progressing":return jsxRuntimeExports.jsxs(ae,{align:"right",children:[jsxRuntimeExports.jsx(ae.Button,{variant:"primary",text:"Pause",onClick:()=>h(i)}),jsxRuntimeExports.jsx(ae.Button,{variant:"link",text:"Cancel",onClick:()=>b(i)})]});case"paused":return jsxRuntimeExports.jsx(ae,{align:"right",children:jsxRuntimeExports.jsx(ae.Button,{variant:"primary",text:"Resume",onClick:()=>h(i)})});case"completed":return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(by,{variant:"success",text:"Complete"}),jsxRuntimeExports.jsx(ae,{align:"right",children:jsxRuntimeExports.jsx(ae.Button,{variant:"primary",text:"Show in Folder",onClick:()=>g(i)})})]});case"cancelled":return jsxRuntimeExports.jsx(by,{variant:"warning",text:"Cancelled"});case"interrupted":return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(by,{variant:"critical",text:"Failed"}),jsxRuntimeExports.jsx(ae,{align:"right",children:jsxRuntimeExports.jsx(ae.Button,{variant:"primary",text:"Retry",onClick:()=>h(i)})})]});default:return null}})()})}function yy({className:n,title:o="Download Settings",...i}){const r=S("io-dm-settings-panel",n),{configuration:{downloadFolder:a},hideSettings:s,setDownloadLocation:c,setDownloadLocationWithDialog:l,isDownloadLocationDialogVisible:u,downloadLocationList:d}=ty();return jsxRuntimeExports.jsxs(Yl,{className:r,...i,children:[jsxRuntimeExports.jsxs(Yl.Header,{children:[jsxRuntimeExports.jsx(Yl.Header.Title,{size:"large",text:o,tag:"h1"}),jsxRuntimeExports.jsx(Yl.Header.ButtonGroup,{children:jsxRuntimeExports.jsx(P,{className:"non-draggable",variant:"circle",icon:"close",size:"32",onClick:()=>{s();},disabled:u})})]}),jsxRuntimeExports.jsx(Yl.Body,{children:jsxRuntimeExports.jsxs(ae,{children:[jsxRuntimeExports.jsxs(re,{variant:"light",disabled:u,children:[jsxRuntimeExports.jsx(re.Button,{children:jsxRuntimeExports.jsx("span",{className:"io-dm-settings-panel-download-location",children:a??d[0]})}),d.length>1&&jsxRuntimeExports.jsx(re.Content,{children:jsxRuntimeExports.jsx(re.List,{children:d.map((t,n)=>!t||0===n||n>3?null:jsxRuntimeExports.jsx(re.Item,{onClick:()=>{c(t);},children:t},t))})})]}),jsxRuntimeExports.jsx(D,{className:"io-btn io-dm-settings-panel-download-location-btn",text:"Browse",onClick:()=>{l();},disabled:u})]})})]})}const wy={Header:Kv,ItemSearch:ny,HeaderButtons:oy,MoreButton:iy,ExternalButton:ry,CloseButton:ay,Body:ly,DownloadListEmpty:uy,ItemGroup:dy,Item:py,ItemProgress:fy,ItemHeader:my,ItemBody:hy,ItemFooter:vy,Settings:yy},Iy=reactExports.createContext(wy),Cy=reactExports.memo(({children:t,components:n})=>{const o=reactExports.useMemo(()=>({...wy,...n}),[n]);return jsxRuntimeExports.jsx(Iy.Provider,{value:o,children:t})});Cy.displayName="ComponentsStore";const xy=()=>reactExports.useContext(Iy);const Sy=({className:n,label:o="Location",...i})=>{const{configuration:{downloadFolder:r},setDownloadLocationWithDialog:a,isDownloadLocationDialogVisible:s,downloadLocationList:c}=ty();return jsxRuntimeExports.jsxs(T,{className:S("io-preferences-download-section",n),...i,children:[jsxRuntimeExports.jsxs("div",{className:"flex jc-between ai-center",children:[jsxRuntimeExports.jsx("label",{className:"io-text-clipper",children:o}),jsxRuntimeExports.jsx(D,{text:"Change",onClick:a,disabled:s})]}),jsxRuntimeExports.jsx("p",{children:r??c?.[0]??"Not set"})]})},Ny=({align:t="right",label:n="Ask where to save each file before downloading",...o})=>jsxRuntimeExports.jsx(Gv,{align:t,label:n,prefKey:ls,...o}),Py=({title:n="System",...o})=>{const{SystemRestartSection:i,SystemShutdownSection:r}=Hy();return jsxRuntimeExports.jsxs(T,{title:n,...o,children:[jsxRuntimeExports.jsx(i,{}),jsxRuntimeExports.jsx(r,{})]})},Ey="T42.GD.Execute",Ly=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],By=(e,t)=>e in t;function Oy({time:e,frequency:t,day:n}){const[o,i]=e.split(":"),r=Number.parseInt(o,10),a=Number.parseInt(i,10);let s="*";return "weekly"===t&&n&&(s=function(e){const t={Sunday:0,Monday:1,Tuesday:2,Wednesday:3,Thursday:4,Friday:5,Saturday:6};if(!By(e,t))throw new Error(`Invalid day: ${e}`);return t[e]}(n).toString()),`${a} ${r} * * ${s}`}function Ty(e){const t=reactExports.useContext(IOConnectContext),{value:n,update:o}=Rs({prefKey:Ry(e)}),{value:i,update:r}=Rs({prefKey:Ry(e,"Time")}),{value:s,update:l}=Rs({prefKey:Ry(e,"Frequency")}),{value:u,update:d}=Rs({prefKey:Ry(e,"Day")}),f=reactExports.useCallback(async()=>{try{await t.interop.invoke(Ey,{command:`cancel-${e}`});}catch(e){console.error(e);}},[t,e]),m=reactExports.useCallback(async()=>{try{const n=Oy({time:i??"12:00",frequency:s??"daily",day:"weekly"===s?u:"*"});await t.interop.invoke(Ey,{command:`schedule-${e}`,args:{cronTime:n,discardUnsavedLayoutChanges:!1}});}catch(t){console.error(`Failed to update cron job for ${e}:`,t);}},[t,e,i,s,u]);reactExports.useEffect(()=>{t&&n&&m();},[t,n,i,s,u,m]);return {enabled:n??!1,time:i??"12:00",frequency:s??"daily",day:u??"Monday",setEnabled:async e=>{e||await f();try{await o(e);}catch(e){console.error("Failed to update enabled state:",e);}},setTime:async e=>{try{await r(e);}catch(e){console.error("Failed to update time:",e);}},setFrequency:async e=>{try{await l(e),"daily"===e&&await d(void 0);}catch(e){console.error("Failed to update frequency:",e);}},setDay:async e=>{var t;if(t=e,Ly.includes(t))try{await d(e);}catch(e){console.error("Failed to update day:",e);}else console.error("Invalid day provided");}}}function Ry(e,t){const n="restart"===e?"_system_scheduleRestart":"_system_scheduleShutdown";return t?`${n}${t}`:n}function Gy({className:n,variant:o,...i}){const r=S("io-block-list-gap",o,n),{enabled:a,time:s,frequency:c,day:l,setEnabled:u,setTime:d,setFrequency:p,setDay:f}=Ty(o);return jsxRuntimeExports.jsxs(T,{className:r,...i,children:[jsxRuntimeExports.jsx(yv,{label:`Schedule ${o}`,align:"right",onChange:e=>u(e.target.checked),checked:a}),jsxRuntimeExports.jsxs("div",{className:"scheduler-controls",children:[jsxRuntimeExports.jsx("div",{className:"io-control-input io-control-leading-icon direction-up",children:jsxRuntimeExports.jsx("input",{type:"time",className:"io-input",value:s,onChange:e=>d(e.target.value)})}),jsxRuntimeExports.jsxs(ti,{text:c.charAt(0).toUpperCase()+c.slice(1),icon:"chevron-down",iconRight:!0,children:[jsxRuntimeExports.jsx(ti.Item,{onClick:()=>p("daily"),children:"Daily"}),jsxRuntimeExports.jsx(ti.Item,{onClick:()=>p("weekly"),children:"Weekly"})]}),"weekly"===c&&jsxRuntimeExports.jsx(ti,{text:l,icon:"chevron-down",iconRight:!0,children:Ly.map(t=>jsxRuntimeExports.jsx(ti.Item,{onClick:()=>f(t),children:t},t))})]})]})}function Fy({className:t,...n}){return jsxRuntimeExports.jsx(Gy,{...n,className:t,variant:"restart"})}function My({className:t,...n}){return jsxRuntimeExports.jsx(Gy,{...n,className:t,variant:"shutdown"})}const Dy={Body:Ov,General:Tv,Theme:Rv,Launchpad:({title:n="Launchpad",...o})=>{const{MinimizeToTray:i,PinnedPosition:r,HideFavoritesFromLaunchpad:a,Docking:s,ExtendedArea:c}=Hy();return jsxRuntimeExports.jsxs(T,{title:n,...o,children:[jsxRuntimeExports.jsx(i,{}),jsxRuntimeExports.jsx(r,{}),jsxRuntimeExports.jsx(a,{}),jsxRuntimeExports.jsx(s,{}),jsxRuntimeExports.jsx(c,{})]})},MinimizeToTray:Fv,PinnedPosition:Dv,HideFavoritesFromLaunchpad:Wv,Docking:({className:n,title:o="Docking",...i})=>{const r=S("io-preferences-panel-docking",n),{AllowDocking:a,DockedAlwaysOnTop:s,DockedClaimsSpace:c}=Hy();return jsxRuntimeExports.jsxs(T,{className:r,title:o,...i,children:[jsxRuntimeExports.jsx(a,{}),jsxRuntimeExports.jsx(s,{}),jsxRuntimeExports.jsx(c,{})]})},AllowDocking:Vv,DockedAlwaysOnTop:Hv,DockedClaimsSpace:zv,ExtendedArea:({className:n,title:o="Extended Area",...i})=>{const r=S("io-preferences-panel-extended-area",n),{ShowExtendedArea:a,HideLabelsInExtendedArea:s,ShowFavoritesInExtendedArea:c,ShowRecentAppsInExtendedArea:l}=Hy();return jsxRuntimeExports.jsxs(T,{className:r,title:o,...i,children:[jsxRuntimeExports.jsx(a,{}),jsxRuntimeExports.jsx(s,{}),jsxRuntimeExports.jsx(c,{}),jsxRuntimeExports.jsx(l,{})]})},ShowExtendedArea:Xv,HideLabelsInExtendedArea:Zv,ShowFavoritesInExtendedArea:jv,ShowRecentAppsInExtendedArea:Jv,Layouts:Yv,LayoutsSaveCurrentOnExit:$v,LayoutsShowUnsavedChangesPrompt:_v,LayoutsShowDeletePrompt:Uv,LayoutsShowHidden:({align:t="right",label:n="Show hidden Layouts and Workspaces",...o})=>ga(reactExports.useContext(IOConnectContext))?jsxRuntimeExports.jsx(Gv,{align:t,label:n,prefKey:ss,"data-testid":"layouts-show-hidden-toggle",...o}):null,Downloads:Qv,DownloadsLocation:Sy,DownloadsAskForEachDownload:Ny,System:Py,SystemRestartSection:Fy,SystemShutdownSection:My},Wy=reactExports.createContext(Dy),Vy=reactExports.memo(({children:t,components:n})=>{const o=reactExports.useMemo(()=>({...Dy,...n}),[n]);return jsxRuntimeExports.jsx(Wy.Provider,{value:o,children:t})});Vy.displayName="PreferencesPanelComponentsStoreProvider";const Hy=()=>reactExports.useContext(Wy);function jy({className:n,title:o="General",...i}){const r=S("io-notifications-settings-panel-general",n),{AllowNotifications:a,AllowNotificationToasts:s,ShowNotificationBadge:c,CloseNotificationOnClick:l,PanelAutoHide:u,HideToastsAfter:d}=Lw(),p=iv();return jsxRuntimeExports.jsx("div",{className:r,...i,children:jsxRuntimeExports.jsxs(T,{title:o,children:[p&&jsxRuntimeExports.jsx(a,{}),p&&jsxRuntimeExports.jsx(s,{}),jsxRuntimeExports.jsx(c,{}),p&&jsxRuntimeExports.jsx(u,{}),p&&jsxRuntimeExports.jsx(l,{}),p&&jsxRuntimeExports.jsx(d,{})]})})}function Jy(e){if(e&&e.errorHandling&&"function"!=typeof e.errorHandling&&"log"!==e.errorHandling&&"silent"!==e.errorHandling&&"throw"!==e.errorHandling)throw new Error('Invalid options passed to createRegistry. Prop errorHandling should be ["log" | "silent" | "throw" | (err) => void], but '+typeof e.errorHandling+" was passed");var t=e&&"function"==typeof e.errorHandling&&e.errorHandling,n={};function o(n,o){var i=n instanceof Error?n:new Error(n);if(t)t(i);else {var r='[ERROR] callback-registry: User callback for key "'+o+'" failed: '+i.stack;if(e)switch(e.errorHandling){case"log":return console.error(r);case"silent":return;case"throw":throw new Error(r)}console.error(r);}}return {add:function(e,t,i){var r=n[e];return r||(r=[],n[e]=r),r.push(t),i&&setTimeout(function(){i.forEach(function(i){var r;if(null===(r=n[e])||void 0===r?void 0:r.includes(t))try{Array.isArray(i)?t.apply(void 0,i):t.apply(void 0,[i]);}catch(t){o(t,e);}});},0),function(){var o=n[e];o&&(o=o.reduce(function(e,n,o){return n===t&&e.length===o||e.push(n),e},[]),0===o.length?delete n[e]:n[e]=o);}},execute:function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];var r=n[e];if(!r||0===r.length)return [];var a=[];return r.forEach(function(n){try{var i=n.apply(void 0,t);a.push(i);}catch(t){a.push(void 0),o(t,e);}}),a},clear:function(){n={};},clearKey:function(e){n[e]&&delete n[e];}}}Jy.default=Jy;x(Jy);function _y(e){const t=reactExports.useContext(IOConnectContext),n=iv(),[o,i]=reactExports.useState([]),[r,s]=reactExports.useState(0),d="Platform",f=reactExports.useCallback((e="asc")=>{if(null===n)return [];const t=[...o].sort((t,n)=>{const o=(t.title??t.name).toLowerCase(),i=(n.title??n.name).toLowerCase();return "asc"===e?o.localeCompare(i):i.localeCompare(o)});if(!n){const e=t.findIndex(e=>e.name===d);if(-1!==e){const[n]=t.splice(e,1);t.unshift(n);}}return t},[o,n]),m=reactExports.useMemo(()=>f("asc"),[f]),h=reactExports.useMemo(()=>f("desc"),[f]);reactExports.useEffect(()=>{if(null===n||n)return;const e={title:"System",name:d,hidden:!1,userProperties:{hidden:!1}};i(t=>t.some(t=>t.name===e.name)?t:[...t,e]);},[n]),reactExports.useEffect(()=>{if(!t)return;let e,n,o,r=!1;const a=e=>{i(t=>[...t.filter(t=>t.name!==e.name),{title:e.title??e.name,name:e.name,hidden:e.hidden,userProperties:e.userProperties}]);},s=e=>{i(t=>t.filter(t=>t.name!==e.name));},c=e=>{i(t=>t.find(t=>t.name===e.name)?t.map(t=>t.name===e.name?{...t,title:e.title??t.title,hidden:e.hidden??t.hidden,userProperties:e.userProperties??t.userProperties}:t):t);};return (async()=>{const l=await Sv.getApplications(t);if(r)return;i(e=>{const t=new Map;return e.forEach(e=>t.set(e.name,e)),l.forEach(e=>{t.set(e.name,{title:e.title??e.name,name:e.name,hidden:e.hidden,userProperties:e.userProperties});}),Array.from(t.values())});const[u,d,p]=await Promise.all([Sv.onAppAdded(t,a),Sv.onAppRemoved(t,s),Sv.onAppChanged(t,c)]);if(r)return u?.(),d?.(),void p?.();e=u,n=d,o=p;})().catch(e=>{console.error("Failed to initialize apps",e);}),()=>{r=!0,e?.(),n?.(),o?.();}},[t]);return {apps:reactExports.useMemo(()=>{if(!e?.sourceFilter||!Array.isArray(o))return o;const{allowed:t=[],blocked:n=[]}=e.sourceFilter,i=t.includes("*"),r=n.includes("*");let a=0;const c=o.map(e=>{const n=i||t.includes(e.name),o=!r&&n;return o&&a++,{...e,allowed:o}});return s(a),c},[e,o]),allowedApps:r,sortedAppsAsc:m,sortedAppsDesc:h,sortAppsAlphabetically:f}}const tw=reactExports.createContext({allApps:[],settings:{},configuration:{},notifications:[],notificationsCount:0,onClose:()=>{},allApplications:0,clearAll:()=>{},showPanel:()=>{},hidePanel:()=>{},saveFilter:()=>{},clearAllOld:()=>{},notificationStacks:[],saveSetting:()=>{},allowedApplications:0,saveAllFilter:()=>{},isBulkActionsSupported:!1,selectedNotifications:[],selectNotification:()=>{},selectAllNotifications:()=>{},clearMany:()=>{},snooze:()=>{},snoozeMany:()=>{},setState:()=>{},setStates:()=>{},setCount:()=>{}}),nw=()=>reactExports.useContext(tw);function ow({label:t="Allow notifications",align:n="right",...o}){const{settings:i,saveSetting:r}=nw(),s=iv(),c=reactExports.useCallback(e=>{r({enabledNotifications:e.target.checked});},[r]);return s?jsxRuntimeExports.jsx(yv,{label:t,align:n,onChange:c,checked:i.enabledNotifications??!1,...o}):null}function iw({label:t="Allow notification toasts",align:n="right",...o}){const{settings:i,saveSetting:r}=nw(),s=iv(),c=s&&!i.enabledNotifications,l=reactExports.useCallback(e=>{r({enabledToasts:e.target.checked});},[r]);return s?jsxRuntimeExports.jsx(yv,{label:t,align:n,onChange:l,checked:i.enabledToasts??!1,disabled:c,...o}):null}function rw({label:t="Show notification badge",align:n="right",...o}){const{settings:i,saveSetting:r}=nw(),s=iv()&&!i.enabledNotifications,c=reactExports.useCallback(e=>{r({showNotificationBadge:e.target.checked});},[r]);return jsxRuntimeExports.jsx(yv,{label:t,align:n,onChange:c,checked:i.showNotificationBadge??!1,disabled:s,...o})}function aw({label:t="Close notification on click",align:n="right",...o}){const{settings:i,saveSetting:r}=nw(),s=iv(),c=s&&!i.enabledNotifications,l=reactExports.useCallback(e=>{r({closeNotificationOnClick:e.target.checked});},[r]);return s?jsxRuntimeExports.jsx(yv,{label:t,align:n,onChange:l,checked:i.closeNotificationOnClick??!1,disabled:c,...o}):null}function sw({label:t="Auto hide panel",align:n="right",...o}){const{settings:i,saveSetting:r}=nw(),s=iv(),c=reactExports.useCallback(e=>{r({autoHidePanel:e.target.checked});},[r]);return s?jsxRuntimeExports.jsx(yv,{label:t,align:n,onChange:c,checked:i.autoHidePanel??!1,...o}):null}const cw=(e,t)=>e?`${e} ${t}${1!==e?"s":""}`:"",lw=e=>{const t=Math.floor(e/60),n=e%60,o=cw(t,"minute"),i=cw(n,"second");return o+(o&&i?" ":"")+i};function uw({className:n,title:o="Hide toasts after",items:i=[15,30,45,60],...r}){const s=S("flex","jc-between","ai-center",n),{settings:c,saveSetting:l}=nw(),u=iv(),d=u&&!c.enabledNotifications,p=reactExports.useCallback((e=15e3)=>{c.toastExpiry!==e&&l({toastExpiry:1e3*e});},[c.toastExpiry,l]);return u?jsxRuntimeExports.jsxs("div",{className:s,...r,children:[jsxRuntimeExports.jsx("div",{className:"io-text-clipper "+(d?"io-text-disabled":""),children:jsxRuntimeExports.jsx("span",{children:o})}),jsxRuntimeExports.jsxs(re,{variant:"light",disabled:d,children:[jsxRuntimeExports.jsx(re.Button,{text:lw((c.toastExpiry??0)/1e3)}),jsxRuntimeExports.jsx(re.Content,{children:jsxRuntimeExports.jsx(re.List,{variant:"single",children:i.map(t=>jsxRuntimeExports.jsx(re.Item,{onClick:()=>{p(t);},children:lw(t)},t))})})]})]}):null}function dw({className:n,title:o="Stacking",...i}){const r=S("io-notifications-settings-panel-stacking",n),{ToastStacking:a,ToastStackBy:s}=Lw();return iv()?jsxRuntimeExports.jsx("div",{className:r,...i,children:jsxRuntimeExports.jsxs(T,{title:o,children:[jsxRuntimeExports.jsx(a,{}),jsxRuntimeExports.jsx(s,{})]})}):null}function pw({label:t="Allow toast stacking",align:n="right",...o}){const{settings:i,saveSetting:r}=nw(),s=iv(),c=s&&!i.enabledNotifications,l=reactExports.useCallback(e=>{r({toastStacking:e.target.checked});},[r]);return s?jsxRuntimeExports.jsx(yv,{label:t,align:n,onChange:l,checked:i.toastStacking??!1,disabled:c,...o}):null}const fw={application:"Application",severity:"Priority"},mw=Object.fromEntries(Object.entries(fw).map(([e,t])=>[t,e]));function hw({className:n,title:o="Group by",...i}){const r=S("flex","jc-between","ai-center",n),{settings:s,saveSetting:c}=nw(),l=iv(),u=l&&!s.enabledNotifications,d=reactExports.useCallback((e="severity")=>{s.stackBy!==e&&c({stackBy:e.toLowerCase()});},[s.stackBy,c]);if(!l)return null;const p=Object.values(fw);return jsxRuntimeExports.jsxs("div",{className:r,...i,children:[jsxRuntimeExports.jsx("div",{className:S("io-text-clipper",{"io-text-disabled":u}),children:jsxRuntimeExports.jsx("span",{children:o})}),jsxRuntimeExports.jsxs(re,{variant:"light",disabled:u,children:[jsxRuntimeExports.jsx(re.Button,{text:fw[s.stackBy??"severity"]}),jsxRuntimeExports.jsx(re.Content,{children:jsxRuntimeExports.jsx(re.List,{variant:"single",children:p.map(t=>jsxRuntimeExports.jsx(re.Item,{onClick:()=>{const e=mw[t];d(e);},children:t},t))})})]})]})}function gw({className:n,title:o="Placement",...i}){const r=S("io-notifications-settings-panel-placement",n),{PlacementPanel:a,PlacementToasts:s}=Lw();return iv()?jsxRuntimeExports.jsx("div",{className:r,...i,children:jsxRuntimeExports.jsxs(T,{title:o,children:[jsxRuntimeExports.jsx(a,{}),jsxRuntimeExports.jsx(s,{})]})}):null}const bw=e=>e.replace(/(^|-)\w/g,e=>e.toUpperCase().replace("-"," "));function vw({className:n,title:o="Panel position",...i}){const r=S("flex","jc-between","ai-center",n),{settings:s,saveSetting:c}=nw(),l=iv(),u=reactExports.useCallback(e=>{e||(e="right"),s.placement?.panel!==e&&c({placement:{...s.placement,panel:e.toLowerCase()}});},[s.placement,c]);if(!l)return null;return jsxRuntimeExports.jsxs("div",{className:r,...i,children:[jsxRuntimeExports.jsx("div",{className:"io-text-clipper",children:jsxRuntimeExports.jsx("span",{children:o})}),jsxRuntimeExports.jsxs(re,{variant:"light",children:[jsxRuntimeExports.jsx(re.Button,{text:s.placement?.panel?bw(s.placement?.panel):"Right"}),jsxRuntimeExports.jsx(re.Content,{children:jsxRuntimeExports.jsx(re.List,{variant:"single",children:["Right","Left"].map(t=>jsxRuntimeExports.jsx(re.Item,{onClick:()=>{u(t);},children:t},t))})})]})]})}function yw({className:n,title:o="Toasts position",...i}){const r=S("flex","jc-between","ai-center",n),{settings:s,saveSetting:c}=nw(),l=iv(),u=reactExports.useCallback(e=>{if(e||(e="bottom-right"),s.placement?.toasts===e)return;const t=e.replace(/\s+/g,"-").toLowerCase();c({placement:{...s.placement,toasts:t}});},[s.placement,c]);if(!l)return null;return jsxRuntimeExports.jsxs("div",{className:r,...i,children:[jsxRuntimeExports.jsx("div",{className:"io-text-clipper",children:jsxRuntimeExports.jsx("span",{children:o})}),jsxRuntimeExports.jsxs(re,{variant:"light",children:[jsxRuntimeExports.jsx(re.Button,{text:s.placement?.toasts?bw(s.placement?.toasts):"Bottom Right"}),jsxRuntimeExports.jsx(re.Content,{children:jsxRuntimeExports.jsx(re.List,{variant:"single",children:["Top Right","Top Left","Bottom Right","Bottom Left"].map(t=>jsxRuntimeExports.jsx(re.Item,{onClick:()=>{u(t);},children:t},t))})})]})]})}function ww({className:t,title:n="Snooze",...o}){const i=S("io-notifications-settings-panel-snooze",t),{SnoozeDuration:r}=Lw(),{settings:a}=nw();return iv()&&a.snooze?.enabled?jsxRuntimeExports.jsx("div",{className:i,...o,children:jsxRuntimeExports.jsx(T,{title:n,children:jsxRuntimeExports.jsx(r,{})})}):null}function Iw({className:n,title:o="Default duration",items:i=[60,120,180,300],...r}){const s=S("flex","jc-between","ai-center",n),{settings:c,saveSetting:l}=nw(),u=iv(),d=u&&!c.enabledNotifications,p=reactExports.useCallback((e=6e4)=>{c.snooze&&c.snooze?.duration!==e&&l({snooze:{...c.snooze,duration:1e3*e}});},[c.snooze,l]);return u&&c.snooze?.enabled?jsxRuntimeExports.jsxs("div",{className:s,...r,children:[jsxRuntimeExports.jsx("div",{className:S("io-text-clipper",{"io-text-disabled":d}),children:jsxRuntimeExports.jsx("span",{children:o})}),jsxRuntimeExports.jsxs(re,{variant:"light",disabled:d,children:[jsxRuntimeExports.jsx(re.Button,{text:lw((c.snooze?.duration??0)/1e3)}),jsxRuntimeExports.jsx(re.Content,{children:jsxRuntimeExports.jsx(re.List,{variant:"single",children:i.map(t=>jsxRuntimeExports.jsx(re.Item,{onClick:()=>{p(t);},children:lw(t)},t))})})]})]}):null}function Cw({className:n,title:o,...i}){const r=S("io-notifications-settings-panel-subscriptions",n),{SubscribeAll:a,SubscribeApp:s,SubscribeMuteAll:c,SubscribeMuteApp:l}=Lw(),{sortAppsAlphabetically:u}=_y(),d=iv(),p=u(),f="io-notifications-subscriptions-grid "+(d?"with-three-columns":"with-two-columns");return jsxRuntimeExports.jsx("div",{className:r,...i,children:jsxRuntimeExports.jsxs(T,{title:o??(d?"Subscribe & Mute":"Subscribe"),children:[jsxRuntimeExports.jsxs("div",{className:f,children:[jsxRuntimeExports.jsx("p",{className:"io-text-section",children:"Sources"}),jsxRuntimeExports.jsx("p",{className:"io-text-section",children:"Subscribe"}),d&&jsxRuntimeExports.jsx("p",{className:"io-text-section",children:"Mute"})]}),jsxRuntimeExports.jsxs("div",{className:f,children:[jsxRuntimeExports.jsx("p",{children:"All Sources"}),jsxRuntimeExports.jsx(a,{label:""}),d&&jsxRuntimeExports.jsx(c,{label:""})]}),p.map(n=>!n||n.hidden||n?.userProperties?.hidden?null:jsxRuntimeExports.jsxs("div",{className:f,children:[jsxRuntimeExports.jsx("p",{children:n.title??n.name}),jsxRuntimeExports.jsx(s,{app:n,label:""}),d&&jsxRuntimeExports.jsx(l,{app:n,label:""})]},n.name))]})})}function xw({label:t="All apps",align:n="right",...o}){const{settings:i,configuration:r,saveAllFilter:s}=nw(),c=iv()&&!i.enabledNotifications,l=reactExports.useCallback(e=>{s({subscribe:e.target.checked});},[s]);return jsxRuntimeExports.jsx(yv,{align:n,label:t,onChange:l,checked:(r.sourceFilter?.allowed?.includes("*")&&0===r.sourceFilter?.blocked?.length)??!1,disabled:c,...o})}function Aw({label:t="App",align:n="right",app:o,...i}){const{allApps:r,settings:s,configuration:c,saveFilter:l}=nw(),u=iv()&&!s.enabledNotifications,d=reactExports.useCallback((e,t)=>{const n={...c.sourceFilter},o=n.allowed?.indexOf("*");"number"==typeof o&&o>-1&&(n.allowed?.splice(o,1),r.forEach(e=>{e.name!==t.name&&n.allowed?.push(e.name);})),e?(n.allowed=[...new Set([...n.allowed??[],t.name])],n.blocked=n.blocked?.filter(e=>e!==t.name)):(n.allowed=n.allowed?.filter(e=>e!==t.name),n.blocked=[...new Set([...n.blocked??[],t.name])]),n.allowed?.length&&n.blocked?.includes("*")&&n.blocked.splice(n.blocked.indexOf("*"),1),l(n);},[r,c.sourceFilter,l]);return jsxRuntimeExports.jsx(yv,{id:`subscribe-${o.name}`,label:t,align:n,onChange:e=>d(e.target.checked,o),checked:(c.sourceFilter?.allowed?.includes("*")&&!c.sourceFilter?.blocked?.includes(o.name)||c.sourceFilter?.allowed?.includes(o.name))??!1,disabled:u,...i})}function kw({label:t="Mute all",align:n="right",...o}){const{settings:i,configuration:r,saveAllFilter:s}=nw(),c=iv(),l=c&&(!i.enabledNotifications||-1===r.sourceFilter?.allowed?.indexOf("*")),u=reactExports.useCallback(e=>{s({mute:e.target.checked});},[s]);return c?jsxRuntimeExports.jsx(yv,{align:n,label:t,onChange:u,checked:r.sourceFilter?.muted?.includes("*")??!1,disabled:l??!1,...o}):null}function Sw({label:t="App",align:n="right",app:o,...i}){const{allApps:r,settings:s,configuration:c,saveFilter:l}=nw(),u=iv(),d=u&&(!s.enabledNotifications||c.sourceFilter?.blocked?.includes("*")||c.sourceFilter?.blocked?.includes(o.name)||0===c.sourceFilter?.allowed?.length||-1===c.sourceFilter?.allowed?.indexOf(o.name)&&-1===c.sourceFilter?.allowed?.indexOf("*")&&0===c.sourceFilter?.blocked?.length),p=reactExports.useCallback((e,t)=>{const n={...c.sourceFilter},o=n?.muted?.indexOf("*");"number"==typeof o&&o>-1&&(n.muted?.splice(o,1),r.forEach(e=>{e.name===t.name||e.hidden||n.muted?.push(e.name);})),e?n.muted?.push(t.name):n.muted=n.muted?.filter(e=>e!==t.name),l(n);},[r,c.sourceFilter,l]);return !u||o.hidden?null:jsxRuntimeExports.jsx(yv,{id:`mute-${o.name}`,label:t,align:n,onChange:e=>p(e.target.checked,o),checked:(c.sourceFilter?.muted?.includes("*")||c.sourceFilter?.muted?.includes(o.name))??!1,disabled:d??!1,...i})}const Nw={Body:n=>{const{General:o,Placement:i,Stacking:r,Snooze:a,Subscriptions:s}=Lw();return jsxRuntimeExports.jsxs(Bf,{element:jl,elementProps:n,children:[jsxRuntimeExports.jsx(o,{}),jsxRuntimeExports.jsx(r,{}),jsxRuntimeExports.jsx(i,{}),jsxRuntimeExports.jsx(a,{}),jsxRuntimeExports.jsx(s,{})]})},General:jy,AllowNotifications:ow,AllowNotificationToasts:iw,ShowNotificationBadge:rw,CloseNotificationOnClick:aw,PanelAutoHide:sw,HideToastsAfter:uw,Stacking:dw,ToastStacking:pw,ToastStackBy:hw,Placement:gw,PlacementPanel:vw,PlacementToasts:yw,Snooze:ww,SnoozeDuration:Iw,Subscriptions:Cw,SubscribeAll:xw,SubscribeApp:Aw,SubscribeMuteAll:kw,SubscribeMuteApp:Sw},Pw=reactExports.createContext(Nw),Ew=reactExports.memo(({children:t,components:n})=>{const o=reactExports.useContext(Pw),i=reactExports.useMemo(()=>({...o,...n}),[o,n]);return jsxRuntimeExports.jsx(Pw.Provider,{value:i,children:t})});Ew.displayName="NotificationsSettingsPanelComponentsStoreProvider";const Lw=()=>reactExports.useContext(Pw),Tw=({name:n,value:o})=>jsxRuntimeExports.jsxs("div",{className:"io-profile-section-item",children:[jsxRuntimeExports.jsx("div",{className:"io-profile-section-item-name",children:n}),jsxRuntimeExports.jsx("div",{className:"io-profile-section-item-value",children:o})]}),Rw=({className:n,items:o,title:i})=>jsxRuntimeExports.jsxs("div",{className:S("io-profile-section-body",n),children:[i&&jsxRuntimeExports.jsx(O,{className:"io-profile-section-title",text:i}),o.map(({name:t,value:n})=>jsxRuntimeExports.jsx(Tw,{name:t,value:n},t))]}),Gw=({className:n,items:o,title:i})=>jsxRuntimeExports.jsxs("section",{className:S("io-profile-section",n),children:[jsxRuntimeExports.jsx(Rw,{items:o,title:i}),jsxRuntimeExports.jsx(_,{className:"mt-8"})]}),Fw=({title:t="License",...n})=>jsxRuntimeExports.jsx(Gw,{title:t,...n}),Mw=({title:t="Version",...n})=>jsxRuntimeExports.jsx(Gw,{title:t,...n}),Dw=({title:t="Plugins",...n})=>jsxRuntimeExports.jsx(Gw,{title:t,...n}),Ww=({className:n})=>{const o=Ba()?"io.Connect Desktop":"io.Connect Browser";return jsxRuntimeExports.jsxs("div",{className:S("io-trademark-container",n),children:[jsxRuntimeExports.jsx("h4",{className:"io-trademark-title",children:o}),jsxRuntimeExports.jsxs("p",{className:"io-trademark-text",children:[o,"® is a registered trademark of"," ",jsxRuntimeExports.jsx("a",{href:"https://www.interop.io",rel:"noreferrer",target:"_blank",children:"Interop Inc©"})," ",(new Date).getFullYear(),". All rights reserved."]})]})},Vw=({avatarInitials:n=(Ba()?"CD":"CB"),className:o,items:i,onLogout:r,title:a})=>jsxRuntimeExports.jsxs("section",{className:S("io-profile-section",o),children:[jsxRuntimeExports.jsxs("div",{className:"io-user-details-container",children:[jsxRuntimeExports.jsx("div",{className:"io-user-avatar",children:n}),jsxRuntimeExports.jsx(Rw,{className:"mt-12",items:i,title:a})]}),r&&jsxRuntimeExports.jsx(D,{className:"io-log-out-button",onClick:r,variant:"primary",icon:"arrow-right-from-bracket",children:"Log out"}),jsxRuntimeExports.jsx(_,{className:"mt-8"})]}),Hw={LicenseSection:Fw,ProductsInfoSection:Mw,PluginsSection:Dw,Trademark:Ww,UserSection:Vw},zw=reactExports.createContext(Hw),Xw=reactExports.memo(({children:t,components:n})=>{const o=reactExports.useMemo(()=>({...Hw,...n}),[n]);return jsxRuntimeExports.jsx(zw.Provider,{value:o,children:t})});Xw.displayName="ProfilePanelComponentsStoreProvider";document.querySelector("#root")??document.body;reactExports.createContext({theme:"dark"});const pI="var(--io-neutrals-0)",fI="var(--io-neutrals-900)";function mI(e){let t,n,o;if(e.startsWith("#")){let i=e.slice(1);3===i.length&&(i=i.split("").map(e=>e+e).join("")),t=parseInt(i.substring(0,2),16),n=parseInt(i.substring(2,4),16),o=parseInt(i.substring(4,6),16);}else {if(!e.startsWith("rgb")){const t=document.createElement("canvas").getContext("2d");if(!t)return fI;t.fillStyle=e;return mI(t.fillStyle)}{const i=e.match(/\d+/g)?.map(Number);if(!i||i.length<3)return fI;[t,n,o]=i;}}return (.2126*t+.7152*n+.0722*o)/255>.5?fI:pI}function hI({className:t,channel:n,...o}){const i=S("io-channel-badge",t),r=reactExports.useMemo(()=>mI(n.color),[n.color]);return jsxRuntimeExports.jsx("div",{className:i,style:{color:r,backgroundColor:n.color},"data-testid":`channel-selector-badge-${n.color}`,...o,children:jsxRuntimeExports.jsx("span",{className:"io-channel-selector-badge-label","data-testid":"channel-selector-label",children:n.label})})}function gI(){return jsxRuntimeExports.jsx(N,{variant:"check","data-testid":"channel-selector-channel-selected"})}function bI({channel:o,handleChannelRestricted:i,lockedChannelRestriction:r}){const a=(e,t)=>n=>{n.stopPropagation(),R(n)&&(n.preventDefault(),t||i({...o,[e]:!o[e]}));};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{children:o.isSelected&&jsxRuntimeExports.jsx("span",{"data-testid":"channel-selector-channel-selected",children:"Active"})}),jsxRuntimeExports.jsx("div",{role:"button",onClick:e=>e.stopPropagation(),"data-testid":"channel-selector-publish-toggle-container",children:jsxRuntimeExports.jsx(yv,{label:"Publish",checked:o.write,onChange:()=>{i({...o,write:!o.write});},onKeyDown:a("write",!o.isSelected||r?.write),onClick:e=>e.stopPropagation(),disabled:!o.isSelected||r?.write})}),jsxRuntimeExports.jsx("div",{role:"button",onClick:e=>e.stopPropagation(),"data-testid":"channel-selector-subscribe-toggle-container",children:jsxRuntimeExports.jsx(yv,{label:"Subscribe",checked:o.read,onChange:()=>{i({...o,read:!o.read});},onKeyDown:a("read",!o.isSelected||r?.read),disabled:!o.isSelected||r?.read})})]})}const vI=reactExports.createContext({});function yI({channel:t,isSelected:n,onChannelSelect:o,onChannelRestrict:i,...r}){const{variant:s,selectedChannels:l,lockedChannelRestrictions:u}=reactExports.useContext(vI),d=n||t.isSelected||l?.includes(t),p=u?.find(e=>e.name===t.name),f=reactExports.useCallback(()=>o?.({...t,isSelected:!d}),[t,o,d]),m=reactExports.useCallback(e=>{const n=e.target;n.closest(".io-toggle")||n.classList.contains("io-toggle")||R(e)&&(e.preventDefault(),o?.({...t,isSelected:!d}));},[t,o,d]),h=reactExports.useCallback(e=>{i?.(e);},[i]);return jsxRuntimeExports.jsx(Z,{prepend:jsxRuntimeExports.jsx(hI,{channel:t}),append:"single"===s||"multi"===s?d&&jsxRuntimeExports.jsx(gI,{}):jsxRuntimeExports.jsx(bI,{channel:t,handleChannelRestricted:h,lockedChannelRestriction:p}),isSelected:d,onClick:f,onKeyDown:m,...r,children:t.name},t.name)}function wI({variant:t,onVariantChange:n,disabled:o=!1}){const i="directionalSingle"===t||"directionalMulti"===t,r=reactExports.useCallback(()=>{n?.(!i);},[i,n]),s=reactExports.useCallback(e=>{e.stopPropagation();},[]),c=reactExports.useCallback(e=>{e.stopPropagation(),R(e)&&(e.preventDefault(),o||r());},[o,r]);return jsxRuntimeExports.jsx(yv,{label:"Directional",align:"right",checked:i,onChange:r,onClick:s,onKeyDown:c,disabled:o,"data-testid":`channel-selector-toggle-${t}`})}const II=reactExports.forwardRef(({className:n,variant:o="single",variantToggle:i=!1,channels:r=[],lockedChannelRestrictions:a=[],onVariantChange:s,onChannelSelect:c,onChannelRestrict:l,...d},p)=>{const f=S("io-list-channels","io-channel-selector-panel",("directionalSingle"===o||"directionalMulti"===o)&&"io-list-channels-directional io-channel-selector-panel-directional",n),m=reactExports.useMemo(()=>({variant:o,selectedChannels:r.filter(e=>e.isSelected),lockedChannelRestrictions:a,onVariantChange:s,onChannelSelect:c,onChannelRestrict:l}),[r,o,a,s,c,l]);return jsxRuntimeExports.jsx(vI.Provider,{value:m,children:jsxRuntimeExports.jsx("div",{className:f,ref:p,children:jsxRuntimeExports.jsxs(K,{...d,children:[jsxRuntimeExports.jsx(K.ItemTitle,{"data-testid":"channel-selector-title",append:i&&jsxRuntimeExports.jsx(wI,{variant:o,onVariantChange:s}),children:{single:"Select Channel",directionalSingle:"Select Directional Channel",multi:"Select Channels",directionalMulti:"Select Directional Channels"}[o]}),r?.map(t=>jsxRuntimeExports.jsx(yI,{channel:t,isSelected:t.isSelected,onChannelSelect:c,onChannelRestrict:l,"data-testid":`channel-selector-channel-${t.name}`},t.name))]})})})});II.displayName="ChannelSelector";const CI=reactExports.forwardRef(({className:t,title:n,ariaLabel:o,onClick:i,onKeyDown:r,children:a,disabled:s=!1,...c},l)=>jsxRuntimeExports.jsx("div",{ref:l,className:S(t,{disabled:s}),title:n,role:"button",tabIndex:s?-1:0,"aria-label":o,"aria-disabled":s,onClick:e=>{!s&&i&&i(e);},onKeyDown:e=>{!s&&r&&r(e);},...c,children:a}));CI.displayName="ChannelSelectorButtonWrapper";function NI({actionButtons:t,actionButtonElementsRefs:n,isAutofocusButton:o,isButtonDisabled:i,onButtonClick:r}){return jsxRuntimeExports.jsx(ae,{"data-testid":"io-dialog-action-buttons-group",align:"right",children:t.map((t,a)=>{const{id:s,text:c,variant:l}=t,u=o(s);return jsxRuntimeExports.jsx(D,{"data-testid":`io-dialog-action-button-${s}`,id:s,ref:e=>{0===a&&(n.current=[]),n.current[a]=e;},className:u?"io-focus-button":void 0,disabled:i(s),onClick:()=>r(t),variant:l,children:c},s)})})}function PI({actionButtons:n,children:o,onCompletion:i,size:r,title:a=(Ba()?"io.Connect Desktop":"io.Connect Browser"),validationErrors:s=[]}){const{actionButtonElementsRefs:c,autofocusButtonId:p,hasAutofocusButtonLostInitialFocus:f}=(e=>{const t=reactExports.useRef([]),n=reactExports.useMemo(()=>e.find(e=>e.autofocus)?.id??null,[e]),o=reactExports.useRef(n),[i,r]=reactExports.useState(!o.current);return reactExports.useLayoutEffect(()=>{if(i)return;if(n!==o.current)return void r(!0);const e=t.current.find(e=>e?.id===n);if(!e)return;e.focus();const a=()=>{r(!0);};return e.addEventListener("blur",a),()=>{e.removeEventListener("blur",a);}},[n,i]),{actionButtonElementsRefs:t,autofocusButtonId:n,hasAutofocusButtonLostInitialFocus:i}})(n),h=()=>{i({isClosed:!0});},g={...r};return jsxRuntimeExports.jsxs(pe,{className:"io-dialog-template",closeFn:h,isOpen:!0,onCancel:e=>{e.preventDefault(),h();},onKeyDown:e=>{!R(e)||s.length||e.target instanceof HTMLButtonElement||" "===e.key&&e.target instanceof HTMLInputElement||i({isEnterPressed:!0});},style:g,title:a,draggable:!0,children:[jsxRuntimeExports.jsx(pe.Body,{children:o}),jsxRuntimeExports.jsx(pe.Footer,{children:jsxRuntimeExports.jsx(NI,{actionButtonElementsRefs:c,actionButtons:n,isAutofocusButton:e=>p===e&&!f,isButtonDisabled:e=>s.some(t=>t.disabledButtonIds.some(t=>t===e)),onButtonClick:({id:e,text:t})=>{i({responseButtonClicked:{id:e,text:t}});}})})]})}function EI({children:t}){return jsxRuntimeExports.jsx("h1",{"data-testid":"io-dialog-heading",className:"io-dialog-template-heading",children:t})}function LI({onCompletion:n,size:o,variables:i}){const{actionButtons:r,heading:a,text:s,title:c}=i;return jsxRuntimeExports.jsx(PI,{actionButtons:r,onCompletion:n,size:o,title:c,children:jsxRuntimeExports.jsx(pe.Body.Content,{children:jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(EI,{children:a}),jsxRuntimeExports.jsx("p",{"data-testid":"io-dialog-text",children:s})]})})})}function BI({onCompletion:n,size:o,variables:i}){const{actionButtons:r,checkbox:s,heading:c,text:u,title:d}=i,[p,f]=reactExports.useState(s.initialValue),m=reactExports.useCallback(()=>f(e=>!e),[]),h=[{id:s.id,type:"checkbox",checked:p}];return jsxRuntimeExports.jsxs(PI,{actionButtons:r,onCompletion:e=>n({...e,inputs:h}),size:o,title:d,children:[jsxRuntimeExports.jsx(pe.Body.Content,{children:jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(EI,{children:c}),jsxRuntimeExports.jsx("p",{"data-testid":"io-dialog-text",children:u})]})}),jsxRuntimeExports.jsx(Wf,{"data-testid":`io-dialog-checkbox-${s.id}`,checked:p,id:s.id,label:s.label,name:s.id,onChange:m})]})}function OI({onCompletion:n,size:o,variables:i}){const{actionButtons:r,heading:a,input:s,title:c}=i,[u,p]=reactExports.useState(s.initialValue??""),f=reactExports.useRef(null),h=(g=u,!(b=s.validation)||new RegExp(b.regexPattern).test(g)?null:{disabledButtonIds:b.disabledButtonIds,message:b.errorMessage});var g,b;const v=[{id:s.id,type:"text",value:u}];return reactExports.useLayoutEffect(()=>{f.current?.select();},[]),jsxRuntimeExports.jsxs(PI,{actionButtons:r,onCompletion:e=>n({...e,inputs:v}),size:o,title:c,validationErrors:h?[h]:[],children:[jsxRuntimeExports.jsx(pe.Body.Content,{children:jsxRuntimeExports.jsx(EI,{children:a})}),jsxRuntimeExports.jsx(Vf,{"data-testid":`io-dialog-input-${s.id}`,ref:f,errorDataTestId:`io-dialog-input-${s.id}-error-message`,errorMessage:h?.message,id:s.id,label:s.label,name:s.id,onChange:e=>p(e.target.value),placeholder:s.placeholder,type:"text",value:u})]})}const TI=qr({width:ra,height:ra}),RI=Qr().andThen(e=>((e,t)=>{const n=typeof e;return "function"===n?Qr():oa(`The argument provided as "${t}" must be a function, received: ${n}`)})(e,"onCompletion")),GI=qr({autofocus:ta(Ur()),id:ia,text:ia,variant:na(Kr("default"),Kr("primary"),Kr("critical"),Kr("outline"),Kr("link"))}),FI=qr({disabledButtonIds:ea(ia),errorMessage:ia,regexPattern:ia}),MI=qr({actionButtons:ea(GI),heading:$r(),text:$r(),title:ta($r())}),DI=qr({templateName:Kr("noInputsConfirmationDialog"),onCompletion:RI,size:ta(TI),variables:MI}),WI=qr({actionButtons:ea(GI),checkbox:qr({id:ia,initialValue:ta(Ur()),label:ta($r())}),heading:$r(),text:$r(),title:ta($r())}),VI=qr({templateName:Kr("singleCheckboxDialog"),onCompletion:RI,size:ta(TI),variables:WI}),HI=qr({actionButtons:ea(GI),heading:$r(),input:qr({id:ia,initialValue:ta($r()),label:ta($r()),placeholder:ta($r()),validation:ta(FI)}),title:ta($r())}),zI=qr({templateName:Kr("singleTextInputDialog"),onCompletion:RI,size:ta(TI),variables:HI});[{name:"noInputsConfirmationDialog",Dialog:LI,validate:DI.runWithException},{name:"singleCheckboxDialog",Dialog:BI,validate:VI.runWithException},{name:"singleTextInputDialog",Dialog:OI,validate:zI.runWithException}];reactExports.createContext({config:{message:""},theme:"dark",setResult:()=>{}});const oC={env:"",region:"",version:"",buildVersion:"",theme:"",isError:!1,mailingList:"",createJiraTicket:!0,sendEmail:!1,attachments:[],applicationTitle:"",allowEditRecipients:!0,attachmentsViewMode:"category",environmentInfo:"",selectedCategories:[],errorMessage:"",showEnvironmentInfo:!1,context:{},technicalInfo:"",sendEmailClient:"Outlook"};const aC=reactExports.createContext({config:oC,onThemeChanged:()=>{},openUrl:()=>{},submit:()=>Promise.resolve({}),setBounds:()=>{},close:()=>{},showMailingList:!0,setShowMailingList:()=>{},attachmentCategories:[],submitInProgress:!1,setSubmitInProgress:()=>{},submitStatus:{type:"success",title:"",text:""},setSubmitStatus:()=>{},submitCompleted:!1,setSubmitCompleted:()=>{},jiraTicketURL:"",setJiraTicketURL:()=>{},submitFeedback:()=>{}}),sC=()=>reactExports.useContext(aC);function cC({...n}){const{config:o,close:i}=sC(),{applicationTitle:r}=o;return jsxRuntimeExports.jsxs(se,{draggable:!0,...n,children:[jsxRuntimeExports.jsx(se.Title,{tag:"h1",text:r?`Feedback Form - ${r}`:"Feedback Form",size:"large"}),jsxRuntimeExports.jsx(se.ButtonGroup,{className:"non-draggable",children:jsxRuntimeExports.jsx(se.ButtonIcon,{variant:"circle",icon:"close",size:"32",onClick:()=>i()})})]})}function lC({className:n,handleSubmit:o,...i}){const r=S("io-panel-body",n),{config:a,submitFeedback:s}=sC(),{IntroField:c,DescriptionField:l,TechInfoField:u,EnvInfoField:d,FileAttachmentsField:p,CategoryAttachmentsField:f,MailListField:m}=NC(),h=o??s,g=`Your feedback will be submitted to the ${a.buildVersion} team and some additional information will be automatically included to help us examine your issue.`;return jsxRuntimeExports.jsxs("form",{className:r,id:"feedback",onSubmit:h,...i,children:[jsxRuntimeExports.jsx(c,{children:jsxRuntimeExports.jsx("p",{children:g})}),jsxRuntimeExports.jsx(m,{}),jsxRuntimeExports.jsx(l,{}),jsxRuntimeExports.jsx(u,{readOnly:!0}),jsxRuntimeExports.jsx(d,{readOnly:!0}),"file"===a.attachmentsViewMode?jsxRuntimeExports.jsx(p,{}):jsxRuntimeExports.jsx(f,{})]})}function uC({...n}){const{FooterButtons:o}=NC(),{openUrl:i,submitInProgress:r,submitStatus:a,jiraTicketURL:s}=sC();return jsxRuntimeExports.jsx(ue,{...n,children:jsxRuntimeExports.jsxs("div",r?{className:"flex ai-center jc-between",children:[jsxRuntimeExports.jsx(T,{children:jsxRuntimeExports.jsx("p",{children:a.title})}),jsxRuntimeExports.jsx(Xl,{align:"right",size:"small"})]}:{className:"flex ai-center jc-between",children:[jsxRuntimeExports.jsxs(T,{children:[jsxRuntimeExports.jsx("p",{className:"error"===a.type?"io-text-error":"",children:a.title}),s&&jsxRuntimeExports.jsx("a",{href:s,onClick:e=>{e.preventDefault(),i(s);},children:s})]}),jsxRuntimeExports.jsx(o,{})]})})}function dC({className:t,...n}){const{CloseButton:o}=NC(),{close:i}=sC(),r=S("non-draggable",t);return jsxRuntimeExports.jsx(ae,{className:r,...n,children:jsxRuntimeExports.jsx(o,{onClick:()=>i()})})}function pC({className:n,...o}){const{SubmitButton:i,CancelButton:r,CloseButton:a}=NC(),{close:s,submitCompleted:c}=sC();return c?jsxRuntimeExports.jsx(ae,{className:n,...o,children:jsxRuntimeExports.jsx(a,{text:"Close",onClick:()=>s()})}):jsxRuntimeExports.jsxs(ae,{className:n,...o,children:[jsxRuntimeExports.jsx(i,{}),jsxRuntimeExports.jsx(r,{onClick:()=>s()})]})}function fC({text:t="Submit",...n}){return jsxRuntimeExports.jsx(D,{form:"feedback",type:"submit",variant:"primary",text:t,...n})}function mC({text:t="Cancel",...n}){return jsxRuntimeExports.jsx(D,{variant:"link",text:t,...n})}function hC({...t}){return jsxRuntimeExports.jsx(D,{variant:"primary",...t})}function gC({showField:t=!0,className:n,title:o,hint:i,children:r,...a}){return t?jsxRuntimeExports.jsx(T,{className:n,title:o,hint:i,...a,children:r}):null}function bC({showField:t=!0,className:n,title:o="Description",hint:i,readOnly:r=!1,disabled:a,...s}){return t?jsxRuntimeExports.jsx(T,{className:n,hint:i,title:"",...s,children:jsxRuntimeExports.jsx(ev,{id:"description",name:"description",label:o,readOnly:r,disabled:a})}):null}function vC({showField:t,className:n,title:o="Technical Information",hint:i,fieldValue:r,readOnly:a=!1,disabled:s,...c}){const{config:l}=sC(),u=t??l.errorMessage,d=r??l.errorMessage;return u&&d?jsxRuntimeExports.jsx(T,{className:n,hint:i,...c,children:jsxRuntimeExports.jsx(ev,{id:"errorMessage",name:"errorMessage",label:o,value:d,readOnly:a,disabled:s})}):null}function yC({showField:t,className:n,title:o="Environment Information",hint:i,fieldValue:r,readOnly:a=!1,disabled:s,...c}){const{config:l}=sC(),u=t??l.showEnvironmentInfo,d=r??l.environmentInfo;return u&&d?jsxRuntimeExports.jsx(T,{className:n,hint:i,...c,children:jsxRuntimeExports.jsx(ev,{id:"environmentInfo",name:"environmentInfo",label:o,value:d,readOnly:a,disabled:s})}):null}function wC({showField:t=!0,className:n,title:o="Attachments",hint:i,readOnly:r=!1,disabled:s,attachments:c,selectedCategories:l,...u}){const d=S("io-block-list-gap",n),{config:p}=sC(),f=c??p.attachments,m=l??p.selectedCategories,h=reactExports.useCallback(e=>!!m&&-1!==m.indexOf(e),[m]);return t?!f||f.length<=0?jsxRuntimeExports.jsx(T,{title:"Attachments",children:jsxRuntimeExports.jsx("p",{children:"No Attachments"})}):jsxRuntimeExports.jsx(T,{className:d,title:o,hint:i,...u,children:jsxRuntimeExports.jsx("div",{className:"file-attachments",children:f.map(t=>jsxRuntimeExports.jsx(Wf,{id:t.id,name:t.id,label:t.name,readOnly:r,disabled:s,defaultChecked:h(t.category)},t.id))})}):null}function IC({showField:t=!0,className:n,title:o="Attachments",hint:i,readOnly:r=!1,disabled:s,categories:c,selectedCategories:l,...u}){const{config:d,attachmentCategories:p}=sC(),f=c??p,m=l??d.selectedCategories,h=reactExports.useCallback(e=>!!m&&-1!==m.indexOf(e),[m]);return t?!f||f.length<=0?jsxRuntimeExports.jsx("p",{children:"No Attachments"}):jsxRuntimeExports.jsx(T,{className:n,title:o,hint:i,...u,children:jsxRuntimeExports.jsx("div",{className:"category-attachments",children:f.map(t=>jsxRuntimeExports.jsx(yv,{id:t,name:t,align:"right",label:t,readOnly:r,disabled:s,defaultChecked:h(t)},t))})}):null}function CC({className:n,title:o,hint:i,showField:r=!0,showJiraTicketField:a,jiraTicketLabel:s="Create Jira Ticket",showSendEmailField:c,sendEmailLabel:l="Send Email",readOnly:u=!1,disabled:d,...p}){const f=S("io-block-list-gap",n),{config:m,showMailingList:h,setShowMailingList:g}=sC();if(!r)return null;const b=a??m.createJiraTicket,v=c??m.sendEmail;return jsxRuntimeExports.jsxs(T,{className:f,hint:i,title:o,...p,children:[b&&jsxRuntimeExports.jsx(yv,{id:"createJiraTicket",name:"createJiraTicket",label:s,align:"right",readOnly:u,disabled:d,defaultChecked:b}),v&&jsxRuntimeExports.jsx(yv,{onChange:()=>{g(!h);},id:"sendEmail",name:"sendEmail",label:l,align:"right",readOnly:u,disabled:d,defaultChecked:v})]})}function xC({showField:t=!0,className:n,title:o="Email List",hint:i="Separate with commas or semicolons.",placeholder:r="john.doe@somedomain.com; jane.doe@otherdomain.com",readOnly:a,disabled:s,...c}){const{config:l,showMailingList:u}=sC(),d=t??l.sendEmail,p=a??!1===l.allowEditRecipients;return d&&u?jsxRuntimeExports.jsx(T,{className:n,hint:i,...c,children:jsxRuntimeExports.jsx(Vf,{id:"mailingList",name:"mailingList",label:o,placeholder:r,readOnly:p,disabled:s,defaultValue:l.mailingList??""})}):null}const AC={Header:cC,Body:lC,Footer:uC,HeaderButtons:dC,FooterButtons:pC,SubmitButton:fC,CancelButton:mC,CloseButton:hC,IntroField:gC,DescriptionField:bC,TechInfoField:vC,EnvInfoField:yC,FileAttachmentsField:wC,CategoryAttachmentsField:IC,SettingsField:CC,MailListField:xC},kC=reactExports.createContext(AC),SC=reactExports.memo(({children:t,components:n})=>{const o=reactExports.useMemo(()=>({...AC,...n}),[n]);return jsxRuntimeExports.jsx(kC.Provider,{value:o,children:t})});function NC(e){return {...reactExports.useContext(kC),...e}}SC.displayName="ComponentsStore";const RC=reactExports.createContext({variant:"share-layout",id:void 0,name:"",setName:()=>{},viewers:[],setViewers:()=>{},editors:[],setEditors:()=>{},publishWithContext:!1,setPublishWithContext:()=>{},updateWorkspaceSettings:!1,setUpdateWorkspaceSettings:()=>{},keepPrivateCopy:!0,setKeepPrivateCopy:()=>{},isSettingsVisible:!1,showSettings:()=>{},hideSettings:()=>{},folder:"",setFolder:()=>{},icon:"",setIcon:()=>{},description:"",setDescription:()=>{},hasChanges:!1,canPublish:!1,canUpdate:!1,sharingValidationError:void 0,publish:()=>{},applySettings:()=>{},close:()=>{}}),FC=()=>reactExports.useContext(RC);function MC(e){return e.startsWith("manage-")?"Manage":e.startsWith("details-")?"Details":e.startsWith("edit-")?"Edit":"Publish"}function DC({title:n,...o}){const{HeaderButtons:i}=ux(),{variant:r,name:a}=FC(),s=n??(a?`${MC(r)} "${a}"`:function(e){return `${MC(e)} ${e.endsWith("-workspace")?"Workspace":"Layout"}`}(r));return jsxRuntimeExports.jsxs(se,{draggable:!0,...o,children:[jsxRuntimeExports.jsx(se.Title,{tag:"h1",text:s,size:"large"}),jsxRuntimeExports.jsx(i,{})]})}function WC({className:o,onSubmit:i,...r}){const a=S("io-panel-body",o),{Name:s,Viewers:c,Editors:l,Folder:u,Icon:d,Description:p,KeepPrivateCopy:f}=ux(),{variant:m}=FC(),h=m.startsWith("share-"),g=m.startsWith("details-"),b=m.startsWith("edit-");return jsxRuntimeExports.jsx(Bf,{children:jsxRuntimeExports.jsx("form",{className:a,onSubmit:e=>{e.preventDefault(),i?.(e);},...r,children:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,b?{children:[jsxRuntimeExports.jsx(s,{}),jsxRuntimeExports.jsx(u,{}),jsxRuntimeExports.jsx(d,{}),jsxRuntimeExports.jsx(p,{})]}:{children:[!g&&jsxRuntimeExports.jsx(s,{}),jsxRuntimeExports.jsx(c,{}),jsxRuntimeExports.jsx(l,{}),g&&jsxRuntimeExports.jsx(p,{}),h&&jsxRuntimeExports.jsx(f,{})]})})})}function VC({...n}){const{FooterButtons:o}=ux(),{sharingValidationError:i}=FC();return jsxRuntimeExports.jsxs(ue,{...n,children:[i&&jsxRuntimeExports.jsxs("p",{className:"io-layout-sharing-validation-error",children:[jsxRuntimeExports.jsx(N,{variant:"circle-info"}),i]}),jsxRuntimeExports.jsx(o,{})]})}function HC({className:n,title:o="Additional Settings",...i}){const r=S("io-layout-sharing-settings-panel",n),{folder:a,icon:s,description:c,applySettings:u,hideSettings:d,close:p}=FC(),{Folder:f,Icon:m,Description:h}=ux(),[g,b]=reactExports.useState(a),[v,y]=reactExports.useState(s),[w,I]=reactExports.useState(c);return jsxRuntimeExports.jsxs(Yl,{className:r,...i,children:[jsxRuntimeExports.jsxs(Yl.Header,{children:[jsxRuntimeExports.jsx(Yl.Header.ButtonIcon,{className:"non-draggable",variant:"circle",icon:"arrow-left-long",size:"32",onClick:d}),jsxRuntimeExports.jsx(Yl.Header.Title,{tag:"h1",text:o,size:"large"}),jsxRuntimeExports.jsx(Yl.Header.ButtonGroup,{children:jsxRuntimeExports.jsx(Yl.Header.ButtonIcon,{variant:"circle",icon:"close",size:"32",onClick:p})})]}),jsxRuntimeExports.jsxs(Bf,{element:Yl.Body,children:[jsxRuntimeExports.jsx(f,{value:g,onChange:e=>b(e.target.value)}),jsxRuntimeExports.jsx(m,{value:v,onChange:e=>y(e.target.value)}),jsxRuntimeExports.jsx(h,{value:w,onChange:e=>I(e.target.value)})]}),jsxRuntimeExports.jsx(Yl.Footer,{children:jsxRuntimeExports.jsx(ae,{align:"right",children:jsxRuntimeExports.jsx(D,{variant:"primary",text:"Apply",onClick:()=>u(g,v,w)})})})]})}function zC({className:t,...n}){const o=S("non-draggable",t),{HeaderCloseButton:i}=ux();return jsxRuntimeExports.jsx(ae,{className:o,...n,children:jsxRuntimeExports.jsx(i,{})})}function XC({icon:t="close",size:n="32",variant:o="circle",onClick:i,...r}){const{close:a}=FC();return jsxRuntimeExports.jsx(P,{icon:t,size:n,variant:o,onClick:i??a,...r})}function ZC({className:n,...o}){const i=S("flex ai-center jc-between",n),{MoreSettingsButton:r,PublishButton:a,UpdateButton:s,CloseButton:c}=ux(),{variant:l}=FC(),u=l.startsWith("manage-"),d=l.startsWith("edit-"),p=u||d;return jsxRuntimeExports.jsxs("div",{className:i,...o,children:[jsxRuntimeExports.jsx(r,{}),jsxRuntimeExports.jsxs(ae,{align:"right",children:[jsxRuntimeExports.jsx(p?s:a,{}),jsxRuntimeExports.jsx(c,{})]})]})}function jC({showButton:t,variant:n="link",text:o="More settings",onClick:i,...r}){const{variant:a,showSettings:s}=FC(),c=a.startsWith("details-"),l=a.startsWith("edit-");return t??(!c&&!l)?jsxRuntimeExports.jsx(D,{variant:n,text:o,onClick:i??s,...r}):null}function JC({showButton:t,variant:n="primary",text:o="Publish",onClick:i,disabled:r,...a}){const{variant:s,publish:c,canPublish:l}=FC(),u=s.startsWith("details-");if(!(t??!u))return null;return jsxRuntimeExports.jsx(D,{variant:n,text:o,onClick:i??c,disabled:r??!l,...a})}function YC({showButton:t,variant:n="primary",text:o="Update",onClick:i,disabled:r,...a}){const{publish:s,canUpdate:c}=FC();if(!(t??!0))return null;return jsxRuntimeExports.jsx(D,{variant:n,text:o,onClick:i??s,disabled:r??!c,...a})}function $C({text:t="Close",variant:n="outline",onClick:o,...i}){const{close:r}=FC();return jsxRuntimeExports.jsx(D,{variant:n,text:t,onClick:o??r,...i})}const _C={"share-layout":"Enter a Layout name","manage-layout":"Saved Layout name","share-workspace":"Enter a Workspace name","manage-workspace":"Saved Workspace name"};function UC({id:n="layout-sharing-name",label:o="Name",placeholder:i,value:r,showField:a=!0,readOnly:s,disabled:c,...l}){const{variant:u,name:d,setName:p}=FC(),f=u.startsWith("manage-");if(!a)return null;const m=i??_C[u]??"",h=!f;return jsxRuntimeExports.jsxs(T,{className:"io-layout-sharing-name-field",children:[jsxRuntimeExports.jsxs("div",{className:"flex ai-center jc-between",children:[jsxRuntimeExports.jsx("label",{htmlFor:n,children:o}),h&&jsxRuntimeExports.jsxs("p",{children:["Required ",jsxRuntimeExports.jsx("span",{className:"io-text-danger",children:"*"})]})]}),jsxRuntimeExports.jsx(Vf,{id:n,name:n,required:h,placeholder:m,value:r??d,onChange:e=>p(e.target.value),readOnly:s,disabled:c,...l})]})}function QC(){const e=reactExports.useContext(IOConnectContext),[t,n]=reactExports.useState(!1),[o,i]=reactExports.useState(!0);reactExports.useEffect(()=>{if(i(!0),!e)return console.warn("useManagerQueryUsers: io context is not available."),void i(!1);const t=e?.manager;if(!t?.checkCapability)return console.warn("useManagerQueryUsers: io.manager.checkCapability is not available."),void i(!1);let o=!1;return (async()=>{try{const[e,i]=await Promise.all([t.checkCapability("ADVANCED_LAYOUTS"),t.checkCapability("API_METHOD_USERS_QUERY")]);if(o)return;n(!0===e?.available&&!0===i?.available);}catch(e){if(o)return;console.error("useManagerQueryUsers: Failed to check capabilities.",e),n(!1);}finally{o||i(!1);}})(),()=>{o=!0;}},[e]);const r=reactExports.useCallback(async n=>{if(!t)return console.warn("useManagerQueryUsers: Required capabilities are not available."),{users:[]};const o=e?.manager;return o.users.query(n)},[e,t]);return {isSupported:t,isLoading:o,queryUsers:r}}function KC(){const e=reactExports.useContext(IOConnectContext),[t,n]=reactExports.useState(!1),[o,i]=reactExports.useState(!0);reactExports.useEffect(()=>{if(i(!0),!e)return console.warn("useManagerQueryGroups: io context is not available."),void i(!1);const t=e?.manager;if(!t?.checkCapability)return console.warn("useManagerQueryGroups: io.manager.checkCapability is not available."),void i(!1);let o=!1;return (async()=>{try{const[e,i]=await Promise.all([t.checkCapability("ADVANCED_LAYOUTS"),t.checkCapability("API_METHOD_GROUPS_QUERY")]);if(o)return;n(!0===e?.available&&!0===i?.available);}catch(e){if(o)return;console.error("useManagerQueryGroups: Failed to check capabilities.",e),n(!1);}finally{o||i(!1);}})(),()=>{o=!0;}},[e]);const r=reactExports.useCallback(async n=>{if(!t)return console.warn("useManagerQueryGroups: Required capabilities are not available."),{groups:[]};const o=e?.manager;return o.groups.query(n)},[e,t]);return {isSupported:t,isLoading:o,queryGroups:r}}const qC=t=>jsxRuntimeExports.jsx("div",{className:t.hasValue?"io-layout-sharing-users-with-access-input":void 0,style:t.hasValue?void 0:{display:"contents"},children:jsxRuntimeExports.jsx(Qg.Input,{...t,placeholder:t.hasValue?t.selectProps.placeholder:void 0})});function ex({id:n="layout-sharing-users-with-access",label:o="Viewers",placeholder:i="Add a user name or user group",options:r=[],value:a,showField:s=!0,disabled:c,...u}){const{variant:d,viewers:f,setViewers:m}=FC(),[h,g]=reactExports.useState(""),b=d.startsWith("details-"),{isSupported:v,isLoading:y,queryUsers:w}=QC(),{isSupported:I,isLoading:C,queryGroups:x}=KC(),[A,k]=reactExports.useState([]),[S,N]=reactExports.useState([]),[P,E]=reactExports.useState(!1),L=nv(h,400),B=v||I||y||C;return reactExports.useEffect(()=>{E(h.length>=3&&B);},[h,B]),reactExports.useEffect(()=>{if(L.length<3)return k([]),void N([]);let e=!1;const t=[];return v&&t.push(w({name:L}).then(t=>{e||k(t.users.map(e=>({value:e.id,label:e.id,entityType:"user"})));}).catch(()=>{e||k([]);})),I&&t.push(x({name:L}).then(t=>{e||N(t.groups.map(e=>({value:e.name,label:e.name,entityType:"group"})));}).catch(()=>{e||N([]);})),Promise.allSettled(t).then(()=>{e||E(!1);}),()=>{e=!0;}},[L,v,I,w,x]),s?jsxRuntimeExports.jsxs(T,{className:"io-layout-sharing-users-with-access-field",style:b?{pointerEvents:"none"}:void 0,children:[jsxRuntimeExports.jsx("div",{className:"flex ai-center jc-between",children:jsxRuntimeExports.jsx("label",{htmlFor:n,children:o})}),jsxRuntimeExports.jsx(qb,{isMulti:!0,isSearchable:!0,id:n,name:n,placeholder:i,options:B?[...A,...S]:r,menuIsOpen:B?h.length>=3:void 0,value:a??f,onChange:e=>m(e),onInputChange:g,backspaceRemovesValue:!1,isLoading:P,components:{...b?{}:{Input:qC},DropdownIndicator:null},disabled:c,...u})]}):null}const tx=t=>jsxRuntimeExports.jsx("div",{className:t.hasValue?"io-layout-sharing-users-with-access-input":void 0,style:t.hasValue?void 0:{display:"contents"},children:jsxRuntimeExports.jsx(Qg.Input,{...t,placeholder:t.hasValue?t.selectProps.placeholder:void 0})});function nx({id:n="layout-sharing-users-with-edit-permissions",label:o="Editors",placeholder:i="Add a user name or user group",options:r=[],value:a,showField:s=!0,disabled:c,...u}){const{variant:d,editors:f,setEditors:m}=FC(),[h,g]=reactExports.useState(""),b=d.startsWith("details-"),{isSupported:v,isLoading:y,queryUsers:w}=QC(),{isSupported:I,isLoading:C,queryGroups:x}=KC(),[A,k]=reactExports.useState([]),[S,N]=reactExports.useState([]),[P,E]=reactExports.useState(!1),L=nv(h,400),B=v||I||y||C;return reactExports.useEffect(()=>{E(h.length>=3&&B);},[h,B]),reactExports.useEffect(()=>{if(L.length<3)return k([]),void N([]);let e=!1;const t=[];return v&&t.push(w({name:L}).then(t=>{e||k(t.users.map(e=>({value:e.id,label:e.id,entityType:"user"})));}).catch(()=>{e||k([]);})),I&&t.push(x({name:L}).then(t=>{e||N(t.groups.map(e=>({value:e.name,label:e.name,entityType:"group"})));}).catch(()=>{e||N([]);})),Promise.allSettled(t).then(()=>{e||E(!1);}),()=>{e=!0;}},[L,v,I,w,x]),s?jsxRuntimeExports.jsxs(T,{className:"io-layout-sharing-users-with-edit-permissions-field",style:b?{pointerEvents:"none"}:void 0,children:[jsxRuntimeExports.jsx("div",{className:"flex ai-center jc-between",children:jsxRuntimeExports.jsx("label",{htmlFor:n,children:o})}),jsxRuntimeExports.jsx(qb,{isMulti:!0,isSearchable:!0,id:n,name:n,placeholder:i,options:B?[...A,...S]:r,menuIsOpen:B?h.length>=3:void 0,value:a??f,onChange:e=>m(e),onInputChange:g,backspaceRemovesValue:!1,isLoading:P,components:{...b?{}:{Input:tx},DropdownIndicator:null},disabled:c,...u})]}):null}function ox({id:t="layout-sharing-folder",label:n="Folder",placeholder:o="Enter folder name",value:i,showField:r=!0,...a}){const{folder:s,setFolder:c}=FC();return r?jsxRuntimeExports.jsx(Vf,{id:t,name:t,label:n,placeholder:o,value:i??s,onChange:e=>c(e.target.value),...a}):null}function ix({id:t="layout-sharing-icon",label:n="Icon",placeholder:o="Paste an icon URL",value:i,showField:r=!0,...a}){const{icon:s,setIcon:c}=FC();return r?jsxRuntimeExports.jsx(Vf,{id:t,name:t,label:n,placeholder:o,value:i??s,onChange:e=>c(e.target.value),...a}):null}function rx({id:t="layout-sharing-description",label:n="Description",placeholder:o,value:i,showField:r=!0,...a}){const{variant:s,description:c,setDescription:l}=FC(),u=s.startsWith("details-"),d=o??(s.includes("workspace")?"Enter a Workspace description":"Enter a Layout description");return r?jsxRuntimeExports.jsx(ev,{id:t,style:u?{pointerEvents:"none"}:void 0,name:t,label:n,placeholder:d,value:i??c,onChange:e=>l(e.target.value),readOnly:u,...a}):null}function ax({id:t="layout-sharing-keep-private-copy",label:n="Keep a private copy",showField:o=!0,...i}){const{keepPrivateCopy:r,setKeepPrivateCopy:a}=FC();return o?jsxRuntimeExports.jsx(T,{className:"io-layout-sharing-keep-private-copy-field",children:jsxRuntimeExports.jsx(yv,{id:t,name:t,label:n,checked:r,onChange:e=>a(e.target.checked),...i})}):null}const sx={Header:DC,Body:WC,Footer:VC,Settings:HC,HeaderButtons:zC,HeaderCloseButton:XC,FooterButtons:ZC,MoreSettingsButton:jC,PublishButton:JC,UpdateButton:YC,CloseButton:$C,Name:UC,Viewers:ex,Editors:nx,Folder:ox,Icon:ix,Description:rx,KeepPrivateCopy:ax},cx=reactExports.createContext(sx),lx=reactExports.memo(({children:t,components:n})=>{const o=reactExports.useMemo(()=>({...sx,...n}),[n]);return jsxRuntimeExports.jsx(cx.Provider,{value:o,children:t})});function ux(e){return {...reactExports.useContext(cx),...e}}lx.displayName="ComponentsStore";var hx={exports:{}};var Cx,xx,Lx,Bx;
1562
1562
  function Gx(){if(xx)return Cx;xx=1;return Cx="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}hx.exports=function(){if(Bx)return Lx;Bx=1;var e=Gx();function t(){}function n(){}return n.resetWarningCache=t,Lx=function(){function o(t,n,o,i,r,a){if(a!==e){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}}function i(){return o}o.isRequired=o;var r={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:i,element:o,elementType:o,instanceOf:i,node:o,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return r.PropTypes=r,r},Lx}()();var Dx=x(hx.exports);function Wx(e){return Wx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wx(e)}var Vx="object"===("undefined"==typeof window?"undefined":Wx(window))&&window.Element||function(){};Dx.oneOfType([Dx.string,Dx.func,function(e,t,n){if(!(e[t]instanceof Vx))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")},Dx.shape({current:Dx.any})]);var Hx=Dx.oneOfType([Dx.func,Dx.string,Dx.shape({$$typeof:Dx.symbol,render:Dx.func}),Dx.arrayOf(Dx.oneOfType([Dx.func,Dx.string,Dx.shape({$$typeof:Dx.symbol,render:Dx.func})]))]),zx=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],Xx="entering",Zx="entered",jx="exiting",Jx="exited";var Yx=!1;var _x=React.createContext(null),Ux="unmounted",Qx="exited",Kx="entering",qx="entered",eA="exiting",tA=function(e){function t(t,n){var o;o=e.call(this,t,n)||this;var i,r=n&&!n.isMounting?t.enter:t.appear;return o.appearStatus=null,t.in?r?(i=Qx,o.appearStatus=Kx):i=qx:i=t.unmountOnExit||t.mountOnEnter?Ux:Qx,o.state={status:i},o.nextCallback=null,o}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,tm(e,t);}(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Ux?{status:Qx}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus);},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Kx&&n!==qx&&(t=Kx):n!==Kx&&n!==qx||(t=eA);}this.updateStatus(!1,t);},n.componentWillUnmount=function(){this.cancelNextCallback();},n.getTimeouts=function(){var e,t,n,o=this.props.timeout;return e=t=n=o,null!=o&&"number"!=typeof o&&(e=o.exit,t=o.enter,n=void 0!==o.appear?o.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Kx){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:w.findDOMNode(this);n&&function(e){e.scrollTop;}(n);}this.performEnter(e);}else this.performExit();else this.props.unmountOnExit&&this.state.status===Qx&&this.setState({status:Ux});},n.performEnter=function(e){var t=this,n=this.props.enter,o=this.context?this.context.isMounting:e,i=this.props.nodeRef?[o]:[w.findDOMNode(this),o],r=i[0],a=i[1],s=this.getTimeouts(),c=o?s.appear:s.enter;!e&&!n||Yx?this.safeSetState({status:qx},function(){t.props.onEntered(r);}):(this.props.onEnter(r,a),this.safeSetState({status:Kx},function(){t.props.onEntering(r,a),t.onTransitionEnd(c,function(){t.safeSetState({status:qx},function(){t.props.onEntered(r,a);});});}));},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),o=this.props.nodeRef?void 0:w.findDOMNode(this);t&&!Yx?(this.props.onExit(o),this.safeSetState({status:eA},function(){e.props.onExiting(o),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:Qx},function(){e.props.onExited(o);});});})):this.safeSetState({status:Qx},function(){e.props.onExited(o);});},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null);},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t);},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(o){n&&(n=!1,t.nextCallback=null,e(o));},this.nextCallback.cancel=function(){n=!1;},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:w.findDOMNode(this),o=null==e&&!this.props.addEndListener;if(n&&!o){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],r=i[0],a=i[1];this.props.addEndListener(r,a);}null!=e&&setTimeout(this.nextCallback,e);}else setTimeout(this.nextCallback,0);},n.render=function(){var e=this.state.status;if(e===Ux)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var o=Uf(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return React.createElement(_x.Provider,{value:null},"function"==typeof n?n(e,o):React.cloneElement(React.Children.only(n),o))},t}(React.Component);function nA(){}function oA(e){return oA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oA(e)}tA.contextType=_x,tA.propTypes={},tA.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:nA,onEntering:nA,onEntered:nA,onExit:nA,onExiting:nA,onExited:nA},tA.UNMOUNTED=Ux,tA.EXITED=Qx,tA.ENTERING=Kx,tA.ENTERED=qx,tA.EXITING=eA;var iA,rA=["tag","horizontal","isOpen","className","navbar","cssModule","children","innerRef"];function aA(){return aA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);}return e},aA.apply(this,arguments)}function sA(e,t){if(null==e)return {};var n,o,i=function(e,t){if(null==e)return {};var n,o,i={},r=Object.keys(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n]);}return i}function cA(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o);}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function lA(e,t){return lA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},lA(e,t)}function uA(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return !1;if(Reflect.construct.sham)return !1;if("function"==typeof Proxy)return !0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return !1}}();return function(){var n,o=pA(e);if(t){var i=pA(this).constructor;n=Reflect.construct(o,arguments,i);}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"===oA(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return dA(e)}(this,n)}}function dA(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pA(e){return pA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pA(e)}function fA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o);}return n}function mA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fA(Object(n),!0).forEach(function(t){hA(e,t,n[t]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fA(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));});}return e}function hA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gA=mA(mA({},tA.propTypes),{},{horizontal:Dx.bool,isOpen:Dx.bool,children:Dx.oneOfType([Dx.arrayOf(Dx.node),Dx.node]),tag:Hx,className:Dx.node,navbar:Dx.bool,cssModule:Dx.object,innerRef:Dx.shape({current:Dx.object})}),bA=mA(mA({},tA.defaultProps),{},{horizontal:!1,isOpen:!1,appear:!1,enter:!0,exit:!0,tag:"div",timeout:350}),vA=(hA(iA={},Xx,"collapsing"),hA(iA,Zx,"collapse show"),hA(iA,jx,"collapsing"),hA(iA,Jx,"collapse"),iA);var yA=function(){!function(e,t){if("function"!=typeof t&&null!==t)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&&lA(e,t);}(t,reactExports.Component);var e=uA(t);function t(n){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=e.call(this,n)).state={dimension:null},o.nodeRef=n.innerRef||React.createRef(),["onEntering","onEntered","onExit","onExiting","onExited"].forEach(function(e){o[e]=o[e].bind(dA(o));}),o}return cA(t,[{key:"onEntering",value:function(e,t){var n=this.getNode();this.setState({dimension:this.getDimension(n)}),this.props.onEntering(n,t);}},{key:"onEntered",value:function(e,t){var n=this.getNode();this.setState({dimension:null}),this.props.onEntered(n,t);}},{key:"onExit",value:function(){var e=this.getNode();this.setState({dimension:this.getDimension(e)}),this.props.onExit(e);}},{key:"onExiting",value:function(){var e=this.getNode();this.getDimension(e),this.setState({dimension:0}),this.props.onExiting(e);}},{key:"onExited",value:function(){var e=this.getNode();this.setState({dimension:null}),this.props.onExited(e);}},{key:"getNode",value:function(){return this.nodeRef.current}},{key:"getDimension",value:function(e){return this.props.horizontal?e.scrollWidth:e.scrollHeight}},{key:"render",value:function(){var e=this,t=this.props,n=t.tag,o=t.horizontal,r=t.isOpen,a=t.className,s=t.navbar,c=t.cssModule,l=t.children;t.innerRef;var u,d,p,f=sA(t,rA),m=this.state.dimension,h=function(e,t){for(var n,o=Array.isArray(t)?t:[t],i=o.length,r={};i>0;)r[n=o[i-=1]]=e[n];return r}(f,zx),g=(u=f,d=zx,p={},Object.keys(u).forEach(function(e){-1===d.indexOf(e)&&(p[e]=u[e]);}),p);return React.createElement(tA,aA({},h,{in:r,nodeRef:this.nodeRef,onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),function(t){var r=function(e){return vA[e]||"collapse"}(t),u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return t?e.split(" ").map(function(e){return t[e]||e}).join(" "):e}(S(a,o&&"collapse-horizontal",r,s&&"navbar-collapse"),c),d=null===m?null:hA({},o?"width":"height",m);return React.createElement(n,aA({},g,{style:mA(mA({},g.style),d),className:u,ref:e.nodeRef}),l)})}}]),t}();yA.propTypes=gA,yA.defaultProps=bA;reactExports.createContext(void 0);reactExports.createContext(void 0);reactExports.createContext(void 0);var Ak=function(e){return function(e){return !!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return "[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===kk}(e)}(e)};var kk="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Sk(e,t){return !1!==t.clone&&t.isMergeableObject(e)?Bk((n=e,Array.isArray(n)?[]:{}),e,t):e;var n;}function Nk(e,t,n){return e.concat(t).map(function(e){return Sk(e,n)})}function Pk(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function Ek(e,t){try{return t in e}catch(e){return !1}}function Lk(e,t,n){var o={};return n.isMergeableObject(e)&&Pk(e).forEach(function(t){o[t]=Sk(e[t],n);}),Pk(t).forEach(function(i){(function(e,t){return Ek(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(Ek(e,i)&&n.isMergeableObject(t[i])?o[i]=function(e,t){if(!t.customMerge)return Bk;var n=t.customMerge(e);return "function"==typeof n?n:Bk}(i,n)(e[i],t[i],n):o[i]=Sk(t[i],n));}),o}function Bk(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Nk,n.isMergeableObject=n.isMergeableObject||Ak,n.cloneUnlessOtherwiseSpecified=Sk;var o=Array.isArray(t);return o===Array.isArray(e)?o?n.arrayMerge(e,t,n):Lk(e,t,n):Sk(t,n)}Bk.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return Bk(e,n,t)},{})};x(Bk);const Rk=reactExports.forwardRef((t,n)=>{const{onSearch:o,searchTerm:i,onClear:r,className:a}=t,s=reactExports.useContext(IOConnectContext);return reactExports.useEffect(()=>{s&&"search"in s&&s.search?.setDebounceMS(450);},[s]),jsxRuntimeExports.jsx(Vf,{id:"search-input",className:S("search-bar",a),ref:n,placeholder:"Find anything",value:i,onChange:o,autoComplete:"off",iconPrepend:"search",iconAppend:i.length?"close":void 0,iconAppendOnClick:r})});Rk.displayName="SearchBar";reactExports.createContext(null);const _k={APPLICATION:"application",WORKSPACE:"workspace",LAYOUT:"layout"};reactExports.createContext(null);const aS=reactExports.createContext({searchQuery:"",setSearch:()=>{},isPanelVisible:!1,sortNotificationsBy:"newest",setSortBy:()=>{},viewNotificationsBy:"all",setViewBy:()=>{},isBulkActionsVisible:!1,showBulkActions:()=>{},hideBulkActions:()=>{}}),sS=()=>reactExports.useContext(aS);function cS({title:n,onOpenSettings:o,onClose:i,...r}){const{HeaderCaptionTitle:a,HeaderCaptionCount:s,HeaderCaptionButtonSettings:c,HeaderCaptionButtonClose:l,HeaderActions:u,HeaderBulkActions:d,HeaderSearch:p}=qS(),{isBulkActionsSupported:f,notificationsCount:m}=nw(),{isBulkActionsVisible:h}=sS(),g=iv();return jsxRuntimeExports.jsxs(Zl,{...r,children:[jsxRuntimeExports.jsxs("div",{className:"io-panel-header-caption",children:[jsxRuntimeExports.jsx(a,{title:n}),jsxRuntimeExports.jsx(s,{}),jsxRuntimeExports.jsxs(Zl.ButtonGroup,{children:[g&&jsxRuntimeExports.jsx(c,{onClick:o}),jsxRuntimeExports.jsx(l,{onClick:i})]})]}),jsxRuntimeExports.jsx(p,{}),f?jsxRuntimeExports.jsxs("div",{className:`io-panel-header-actions-wrapper ${h&&m>0?"io-panel-header-bulk-actions-opened":""} `,children:[jsxRuntimeExports.jsx(u,{}),jsxRuntimeExports.jsx(d,{})]}):jsxRuntimeExports.jsx(u,{})]})}function lS({text:n="Notifications",counter:o,...i}){const{notificationsCount:r}=nw();return jsxRuntimeExports.jsx(O,{text:n,size:"large",...i,children:(o??!0)&&jsxRuntimeExports.jsxs("span",{children:["(",r,")"]})})}const uS="newest",dS="oldest",pS="severity",fS=["None","Low","Medium","High","Critical"],mS={key:uS,descending:!0},hS=e=>[...e].sort((e,t)=>(t.timestamp||0)-(e.timestamp||0)),gS=e=>[...e].sort((e,t)=>(e.timestamp||0)-(t.timestamp||0)),bS=(e,t)=>{const n=fS[0];return [...e].sort((e,o)=>{const i=fS.indexOf(e.severity||n),r=fS.indexOf(o.severity||n);return (t?-1:1)*(i-r)})},vS={[uS]:hS,[dS]:gS,[pS]:bS},yS={severity:"Priority",newest:"Newest",oldest:"Oldest"};function wS({...t}){const[n,o]=reactExports.useState([]),{NotificationsList:i,Notification:r}=qS(),{notifications:a,setCount:s,notificationsCount:c}=nw(),{sortNotificationsBy:f,viewNotificationsBy:m,searchQuery:h}=sS(),g=reactExports.useRef(null),b=nv(h),v=reactExports.useMemo(()=>{const e=((e,t)=>{if(!e)return [];switch(t){case"all":default:return e;case"unread":return e.filter(e=>"Active"===e.state||"Stale"===e.state);case"read":return e.filter(e=>"Acknowledged"===e.state||"Seen"===e.state);case"snoozed":return e.filter(e=>"Snoozed"===e.state)}})(a,m);return e.filter(e=>e.title.toLowerCase().includes(b.toLowerCase())||e.source?.toLowerCase().includes(b.toLowerCase())||e.body?.toLowerCase().includes(b.toLowerCase()))},[b,a,m]);return reactExports.useEffect(()=>{switch(f){case"newest":o(hS(v));break;case"oldest":o(gS(v));break;case"severity":o(bS(v,!0));break;default:o(v);}s(v.length);},[v,f,s]),reactExports.useEffect(()=>{g.current&&g.current?.scrollTo({top:0,behavior:"smooth"});},[b,c,f,m]),jsxRuntimeExports.jsx(Bf,{ref:g,element:jl,elementProps:t,children:jsxRuntimeExports.jsx(i,{notifications:n,Notification:r})})}function IS({...t}){const{FooterButtons:n}=qS();return jsxRuntimeExports.jsx(Jl,{...t,children:jsxRuntimeExports.jsx(n,{})})}function CS({className:n,...o}){const{FooterButtonClearAll:i,FooterButtonClearAllOld:r}=qS(),{notifications:a}=nw(),[s,c]=reactExports.useState(!1);return reactExports.useEffect(()=>{a.filter(e=>"Stale"===e.state||"Acknowledged"===e.state).length>0?c(!0):c(!1);},[a]),jsxRuntimeExports.jsxs(ae,{className:n,align:"right",...o,children:[jsxRuntimeExports.jsx(r,{disabled:!s}),jsxRuntimeExports.jsx(i,{disabled:a.length<=0})]})}function xS({text:t="Clear All",...n}){const{clearAll:o}=nw();return jsxRuntimeExports.jsx(D,{text:t,onClick:()=>{o();},...n})}function AS({text:t="Clear Old",...n}){const{clearAllOld:o}=nw();return jsxRuntimeExports.jsx(D,{text:t,onClick:()=>{o();},...n})}function kS(e){const t=iv(),{onClose:n,settings:o}=nw(),{isPanelVisible:i}=sS(),{id:r,onClick:s,updateState:c}=e,l=reactExports.useCallback(async()=>{if(!s)return;if(!t){try{await s({close:!0});}catch(e){console.error(e);}return void n(r)}const e=o?.toastStacking??!1;let a;a=i?o?.closeNotificationOnClick??!0:!e&&null;try{null!==a?await s({close:a}):(await s({close:!1}),await c("Acknowledged"));}catch(e){console.error(e);}},[t,r,i,s,n,c,o?.closeNotificationOnClick,o?.toastStacking]),u=reactExports.useCallback(async e=>{const t=e.target;t.closest("button")||t.closest("[role='button']")||t.closest("a")||t.closest(".io-dropdown-menu")||await l();},[l]);return {handleClick:l,handleWrapperClick:u}}function SS({className:n,notification:o,onClick:i,...r}){const a=S("io-notification-header",n),{HeaderCount:s,HeaderBadge:c,HeaderTitle:l,HeaderTimestamp:u,HeaderButtonSnooze:d,HeaderButtonClose:p}=XS(),{handleWrapperClick:f}=kS(o);return jsxRuntimeExports.jsxs("div",{className:a,onClick:async e=>{await f(e),i?.(e);},...r,children:[jsxRuntimeExports.jsx(c,{notification:o}),jsxRuntimeExports.jsx(s,{notification:o}),jsxRuntimeExports.jsx(l,{notification:o}),jsxRuntimeExports.jsx(u,{notification:o}),jsxRuntimeExports.jsxs(ae,{children:[jsxRuntimeExports.jsx(d,{notification:o}),jsxRuntimeExports.jsx(p,{notification:o})]})]})}function NS({notification:t,...n}){const{settings:o,notificationStacks:i}=nw(),{isPanelVisible:r}=sS(),{toastStacking:a,stackBy:s}=o,c="application"===s?"source":s??"source";let l=0;if(a){const e=i.find(e=>e.key===t[c]);l=e?.items.length??0;}return r||!a||l<=1?null:jsxRuntimeExports.jsx($l,{...n,children:l>9?"9+":l})}function PS({className:t,notification:n,...o}){if(!n?.severity||"None"===n.severity)return null;const i=S("io-notification-header-badge",t);return jsxRuntimeExports.jsx($l,{className:i,...o,children:n.severity})}function ES({className:n,state:o,severity:i="None",icon:r,...a}){const s=S("io-notification-header-icon",n),{isPanelVisible:c}=sS();return jsxRuntimeExports.jsxs("div",{className:s,...a,children:[r&&jsxRuntimeExports.jsx("span",{className:"io-notification-header-icon-image",children:jsxRuntimeExports.jsx("img",{src:r,alt:`io-notification-header-icon-${r}`})}),jsxRuntimeExports.jsx("span",{className:`io-notification-header-icon-badge color-${i.toLowerCase()}`,children:c&&"Acknowledged"!==o&&"New"})]})}function LS({className:t,notification:{appTitle:n},...o}){const i=S("io-notification-header-title",t);return jsxRuntimeExports.jsx("div",{className:i,...o,children:n})}function BS({className:t,notification:{timestamp:n,state:o,snooze:i},...r}){const a=S("io-notification-timestamp",t);return jsxRuntimeExports.jsx("small",i&&"Snoozed"===o?{className:a,...r,children:"Snoozed"}:{className:a,...r,children:cy(n??0)??"Just Now"})}function OS({notification:{id:t,state:n},...o}){const{settings:i,snooze:r}=nw(),s=reactExports.useCallback(e=>{e.stopPropagation(),r&&r(t,i.snooze?.duration??0);},[t,r,i.snooze?.duration]);return r&&"Snoozed"!==n&&i.snooze?.enabled?jsxRuntimeExports.jsx(D,{icon:"snooze",variant:"link",text:"Snooze",tabIndex:-1,onClick:s,...o}):null}function TS({notification:{id:t,updateState:n},...o}){const i=iv(),{onClose:r}=nw(),{isPanelVisible:s}=sS(),c=reactExports.useCallback(e=>{e.stopPropagation(),!i||s?r(t):n("Acknowledged").catch(console.error);},[i,t,r,s,n]);return jsxRuntimeExports.jsx(P,{icon:"close",iconSize:"10",tabIndex:-1,onClick:c,...o})}function RS({className:n,notification:o,...i}){const r=S("io-notification-body",n),{BodyIcon:a,BodyTitle:s,BodyDescription:c}=XS(),{icon:l,title:u,body:d}=o,{handleClick:p}=kS(o);return jsxRuntimeExports.jsxs("div",{className:r,role:"button",tabIndex:0,onKeyDown:async e=>{R(e)&&await p();},onClick:p,...i,children:[jsxRuntimeExports.jsx(a,{icon:l}),jsxRuntimeExports.jsxs("div",{className:"io-notification-body-content",children:[jsxRuntimeExports.jsx(s,{text:u}),jsxRuntimeExports.jsx(c,{text:d})]})]})}function GS({className:t,icon:n,altText:o="notification icon",...i}){if(!n)return null;const r=S("io-notification-body-icon",t);return jsxRuntimeExports.jsx("div",{className:r,...i,children:jsxRuntimeExports.jsx("img",{src:n,alt:o})})}function FS({text:t,...n}){return jsxRuntimeExports.jsx(O,{text:t,...n})}function MS({className:t,text:n,...o}){const i=S("io-notification-body-description",t);return jsxRuntimeExports.jsx("p",{className:i,...o,children:n})}function DS({className:n,notification:o}){const i=S("io-notification-footer",n),{FooterButton:r}=XS(),{handleWrapperClick:a}=kS(o),s=reactExports.useMemo(()=>function(e){const t=[],n={};if(!e)return;e.forEach(e=>{const{displayId:o,displayPath:i}=e,r={...e,children:[]};if(i&&i.length>0){let e;i.forEach((t,o)=>{0===o?e=n[t]:e&&(e=e.children?.find(e=>e.displayId===t));}),e&&e.children?.push(r);}else o?(t.push(r),n[o]=r):t.push(r);o&&(n[o]=r);});const o=e=>{e.forEach(e=>{0===e.children?.length?delete e.children:e.children&&o(e.children);});};return o(t),t}(o.actions),[o.actions]),c=(t,n)=>t.children?jsxRuntimeExports.jsx(ti,{text:t.title,children:t.children.map(c)},`${t.title}-${n}`):((t,n)=>jsxRuntimeExports.jsx(ti.Item,{children:jsxRuntimeExports.jsx(r,{variant:"link",className:"io-dropdown-menu-item io-dropdown-menu-button",notificationAction:t})},`${t.title}-${n}`))(t,n);return jsxRuntimeExports.jsx("div",{className:i,onClick:a,children:jsxRuntimeExports.jsx(ae,{align:"right",children:s?.map((n,o)=>n.children?jsxRuntimeExports.jsxs(ae,{variant:"append",children:[jsxRuntimeExports.jsx(r,{notificationAction:n,variant:0===o?"primary":"default"}),jsxRuntimeExports.jsx(ti,{variant:0===o?"primary":"default",icon:"ellipsis",children:n.children.map(c)})]},`${n.title}-${o}`):jsxRuntimeExports.jsx(r,{notificationAction:n,variant:0===o?"primary":"link"},`${n.title}-${o}`))})})}function WS({notificationAction:t,...n}){const o=reactExports.useCallback(e=>{e.stopPropagation(),t.onClick({close:!0});},[t]);return jsxRuntimeExports.jsx(D,{text:t.title,onClick:o,...n})}const VS={Header:SS,HeaderCount:NS,HeaderBadge:PS,HeaderIcon:ES,HeaderTitle:LS,HeaderTimestamp:BS,HeaderButtonSnooze:OS,HeaderButtonClose:TS,Body:RS,BodyIcon:GS,BodyTitle:FS,BodyDescription:MS,Footer:DS,FooterButton:WS},HS=reactExports.createContext(VS),zS=reactExports.memo(({children:t,components:n})=>{const o=reactExports.useMemo(()=>({...VS,...n}),[n]);return jsxRuntimeExports.jsx(HS.Provider,{value:o,children:t})});function XS(e){return {...reactExports.useContext(HS),...e}}function ZS({className:n,notification:o,...i}){const{Header:r,Body:a,Footer:s}=XS(),{severity:c}=o,l=S("io-notification",`severity-${c?.toLowerCase()??"none"}`,"Acknowledged"!==o.state&&"state-new",n);return jsxRuntimeExports.jsxs("div",{className:l,...i,children:[jsxRuntimeExports.jsx(r,{notification:o}),jsxRuntimeExports.jsx(a,{notification:o}),jsxRuntimeExports.jsx(s,{notification:o})]})}function jS({components:t,notification:n,...o}){return jsxRuntimeExports.jsx(zS,{components:t,children:jsxRuntimeExports.jsx(ZS,{notification:n,...o})})}function JS({className:n,notifications:o,...i}){const[r,s]=reactExports.useState(!1),c=o.length>=3?"large":"normal",u=2===o.length?"small":c,d=o[0].severity,p=S("io-notification-stack",r&&"io-notification-stack-open","normal"!==u&&[`io-notification-stack-${u}`],d&&"None"!==d&&[`io-notification-stack-${d.toLowerCase()}`],n),f=reactExports.useCallback(()=>{s(!0);},[]),m=reactExports.useCallback(e=>{e.stopPropagation(),o.forEach(e=>{e.close();});},[o]);return jsxRuntimeExports.jsxs("div",{className:p,onClick:f,...i,children:[r&&"normal"!==u&&jsxRuntimeExports.jsx("div",{className:"io-notification-stack-btn",children:jsxRuntimeExports.jsx(D,{icon:"close",onClick:e=>m(e),children:jsxRuntimeExports.jsx("span",{className:"io-btn-text",children:"Clear Stack"})})}),o.map(t=>jsxRuntimeExports.jsx(jS,{notification:t},t.id))]})}function YS({...t}){const{notificationStacks:o}=nw();return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:o.map(n=>jsxRuntimeExports.jsx(JS,{notifications:n.items,...t},n.key))})}zS.displayName="ComponentsStoreProvider";const $S=({notification:n,Notification:o,...i})=>{const{configuration:r,isBulkActionsSupported:a,selectedNotifications:s,selectNotification:c}=nw(),{isPanelVisible:l,isBulkActionsVisible:u}=sS(),d=r.sourceFilter?.muted??[],p=n.source&&d.includes(n.source)||d.includes("*");if(!l&&p)return null;const f=l&&a&&u,m=s.includes(n.id);return f?jsxRuntimeExports.jsxs("div",{className:S("io-notification-list-bulk-action-item",{selected:m}),children:[jsxRuntimeExports.jsx(Wf,{checked:m,onChange:e=>c(n.id,e.target.checked)}),jsxRuntimeExports.jsx(o,{notification:n,...i})]}):jsxRuntimeExports.jsx(o,{notification:n,...i})};function _S({className:n,Notification:o,notifications:i=[],noNotificationText:r="No notifications to display",...a}){const s=S("io-notification-list",n),{settings:c}=nw(),{isPanelVisible:l}=sS(),{toastStacking:u}=c,d=u&&!l,p=i.length>0;return jsxRuntimeExports.jsxs("div",{className:s,...a,children:[d&&jsxRuntimeExports.jsx(YS,{}),!d&&(p?i.map(t=>jsxRuntimeExports.jsx($S,{notification:t,Notification:o,...a},t.id)):jsxRuntimeExports.jsx("div",{className:"io-notification-list-no-notifications",children:r}))]})}const US={Header:cS,HeaderCaptionTitle:lS,HeaderCaptionCount:function({variant:t="primary",...n}){const{notificationsCount:o=0}=nw();return 0===o?null:jsxRuntimeExports.jsx(B,{variant:t,...n,children:o>99?"99+":o})},HeaderCaptionButtonSettings:function({icon:t="cog",size:n="32",variant:o="circle",...i}){return iv()?jsxRuntimeExports.jsx(P,{icon:t,size:n,variant:o,...i}):null},HeaderCaptionButtonClose:function({icon:t="close",size:n="32",variant:o="circle",onClick:i,...r}){const{hidePanel:a}=nw(),s=iv();return jsxRuntimeExports.jsx(P,{icon:t,size:n,variant:o,onClick:e=>{i?i(e):s&&a();},...r})},HeaderActions:function({className:n,...o}){const i=S("io-panel-header-actions",n),{HeaderActionSort:r,HeaderActionView:a,HeaderActionClear:s,HeaderActionEdit:c}=qS();return jsxRuntimeExports.jsxs("div",{className:i,...o,children:[jsxRuntimeExports.jsxs(ae,{children:[jsxRuntimeExports.jsx(r,{}),jsxRuntimeExports.jsx(a,{})]}),jsxRuntimeExports.jsxs(ae,{children:[jsxRuntimeExports.jsx(s,{}),jsxRuntimeExports.jsx(c,{})]})]})},HeaderActionSort:function({text:n="Sort by",...o}){const{sortNotificationsBy:i,setSortBy:r}=sS(),{onNotificationsSort:s}=(()=>{const{notifications:e}=nw(),[t,n]=reactExports.useState(mS),{key:o,descending:i}=t,r=reactExports.useMemo(()=>vS[o](e,i),[e,o,i]),s=reactExports.useCallback(e=>{n(t=>({key:e,descending:t.key!==e?mS.descending:!t.descending}));},[]);return {onNotificationsSort:s,sortedNotifications:r}})();return jsxRuntimeExports.jsxs(re,{variant:"light",...o,children:[jsxRuntimeExports.jsxs(re.Button,{variant:"link",children:[n," ",jsxRuntimeExports.jsx("strong",{children:yS[i].toLowerCase()})]}),jsxRuntimeExports.jsx(re.Content,{children:jsxRuntimeExports.jsx(re.List,{variant:"single",checkIcon:"check",children:["Newest","Oldest","Priority"].map(t=>{const n="Priority"===t?"severity":t.toLowerCase();return jsxRuntimeExports.jsx(re.Item,{isSelected:i===n,onClick:()=>{r(n),s(n);},children:t},t)})})})]})},HeaderActionView:function({text:n="View",...o}){const{settings:i}=nw(),{viewNotificationsBy:r,setViewBy:a}=sS(),s=i.snooze?.enabled?["All","Read","Unread","Snoozed"]:["All","Read","Unread"];return jsxRuntimeExports.jsxs(re,{variant:"light",...o,children:[jsxRuntimeExports.jsxs(re.Button,{variant:"link",children:[n," ",jsxRuntimeExports.jsx("strong",{children:r})]}),jsxRuntimeExports.jsx(re.Content,{children:jsxRuntimeExports.jsx(re.List,{variant:"single",checkIcon:"check",children:s.map(t=>jsxRuntimeExports.jsx(re.Item,{isSelected:r===t.toLowerCase(),onClick:()=>a(t.toLowerCase()),children:t},t))})})]})},HeaderActionClear:function({text:t="Clear All",...n}){const{clearAll:o,notificationsCount:i}=nw();return jsxRuntimeExports.jsx(D,{variant:"link",text:t,onClick:o,disabled:0===i,...n})},HeaderActionEdit:function({tooltip:t="Bulk Edit",...n}){const{isBulkActionsSupported:o,notificationsCount:i}=nw(),{showBulkActions:r}=sS();return o?jsxRuntimeExports.jsx(P,{icon:"pen-to-square",title:t,size:"32",onClick:r,disabled:0===i,...n}):null},HeaderBulkActions:function({className:n,...o}){const i=S("io-panel-header-bulk-actions",n),{HeaderBulkActionSelect:r,HeaderBulkActionSelectDropdown:a,HeaderBulkActionMarkAsRead:s,HeaderBulkActionMarkAsUnread:c,HeaderBulkActionSnooze:l,HeaderBulkActionClear:u,HeaderBulkActionClose:d}=qS(),{isBulkActionsSupported:p}=nw();return p?jsxRuntimeExports.jsx("div",{className:i,...o,children:jsxRuntimeExports.jsxs(ae,{children:[jsxRuntimeExports.jsx(r,{}),jsxRuntimeExports.jsx(a,{}),jsxRuntimeExports.jsx(s,{}),jsxRuntimeExports.jsx(c,{}),jsxRuntimeExports.jsx(l,{}),jsxRuntimeExports.jsx(u,{}),jsxRuntimeExports.jsx(d,{})]})}):null},HeaderBulkActionSelect:function({...t}){const{isBulkActionsSupported:n,selectedNotifications:o,selectAllNotifications:i,notificationsCount:r}=nw();return n?jsxRuntimeExports.jsx(Wf,{checked:r===o.length&&r>0,onChange:e=>i("all",e.target.checked),disabled:0===r,...t}):null},HeaderBulkActionSelectDropdown:function({...n}){const{isBulkActionsSupported:o,selectAllNotifications:i,notificationsCount:r}=nw();return o?jsxRuntimeExports.jsxs(re,{variant:"light",...n,children:[jsxRuntimeExports.jsx(re.ButtonIcon,{variant:"default",icon:"chevron-down",size:"16",iconSize:"10",disabled:0===r}),jsxRuntimeExports.jsx(z,{children:jsxRuntimeExports.jsxs(re.List,{variant:"single",checkIcon:"check",children:[jsxRuntimeExports.jsx(re.ItemSection,{children:"Select"}),["All","Read","Unread","Snoozed"].map(t=>jsxRuntimeExports.jsx(re.Item,{onClick:()=>i(t.toLowerCase(),!0),children:t},t))]})})]}):null},HeaderBulkActionMarkAsRead:function({icon:t="envelope-open",size:n="32",variant:o="circle",tooltip:i="Mark as read",...r}){const{isBulkActionsSupported:s,selectedNotifications:c,setStates:l,notificationsCount:u}=nw(),d=reactExports.useCallback(()=>{l(c,"Seen");},[c,l]);return s?jsxRuntimeExports.jsx(P,{icon:t,size:n,variant:o,title:i,onClick:d,disabled:0===u,...r}):null},HeaderBulkActionMarkAsUnread:function({icon:t="envelope",size:n="32",variant:o="circle",tooltip:i="Mark as unread",...r}){const{isBulkActionsSupported:s,selectedNotifications:c,setStates:l,notificationsCount:u}=nw(),d=reactExports.useCallback(()=>{l(c,"Active");},[c,l]);return s?jsxRuntimeExports.jsx(P,{icon:t,size:n,variant:o,title:i,onClick:d,disabled:0===u,...r}):null},HeaderBulkActionSnooze:function({icon:t="snooze",size:n="32",variant:o="circle",tooltip:i="Snooze",...r}){const{isBulkActionsSupported:s,selectedNotifications:c,snoozeMany:l,settings:u,notificationsCount:d}=nw(),p=reactExports.useCallback(()=>{l(c,u.snooze?.duration??0);},[c,l,u.snooze?.duration]);return s&&u.snooze?.enabled?jsxRuntimeExports.jsx(P,{icon:t,size:n,variant:o,title:i,onClick:p,disabled:0===d,...r}):null},HeaderBulkActionClear:function({icon:t="trash",size:n="32",variant:o="circle",tooltip:i="Clear",...r}){const{isBulkActionsSupported:s,selectedNotifications:c,clearMany:l,notificationsCount:u}=nw(),d=reactExports.useCallback(()=>{l(c);},[c,l]);return s?jsxRuntimeExports.jsx(P,{icon:t,size:n,variant:o,title:i,onClick:d,disabled:0===u,...r}):null},HeaderBulkActionClose:function({text:t="Done",variant:n="primary",...o}){const{isBulkActionsSupported:i,notificationsCount:r}=nw(),{hideBulkActions:a}=sS();return i?jsxRuntimeExports.jsx(D,{variant:n,text:t,onClick:a,disabled:0===r,...o}):null},HeaderSearch:function({className:n,placeholder:o="Search",iconPrepend:i="search",iconAppend:r="close",...s}){const c=S("io-panel-header-search",n),l=reactExports.useRef(null),{notificationsCount:u}=nw(),{searchQuery:p,setSearch:f}=sS(),m=p.length>0,h=reactExports.useCallback(()=>{f(""),l.current&&l.current.focus();},[f]);return jsxRuntimeExports.jsxs("div",{className:c,children:[jsxRuntimeExports.jsx(Vf,{ref:l,value:p,iconPrepend:i,iconAppend:m?r:void 0,iconAppendOnClick:m?h:void 0,placeholder:o,onChange:e=>f(e.target.value),...s}),m&&jsxRuntimeExports.jsx("p",{className:"io-panel-header-search-count",children:`${u} results`})]})},Body:wS,Footer:IS,FooterButtons:CS,FooterButtonClearAll:xS,FooterButtonClearAllOld:AS,Notification:jS,NotificationsList:_S},QS=reactExports.createContext(US),KS=reactExports.memo(({children:t,components:n})=>{const o=reactExports.useMemo(()=>({...US,...n}),[n]);return jsxRuntimeExports.jsx(QS.Provider,{value:o,children:t})});function qS(e){return {...reactExports.useContext(QS),...e}}KS.displayName="ComponentsStoreProvider";const nN=({className:t,notifications:n,maxToasts:o=1,...i})=>{const r=S("io-toasts-body",t),{NotificationsList:a,Notification:s}=aN(),[c,u]=reactExports.useState([]);return reactExports.useEffect(()=>{const e=o<0?n.length:o,t=n.filter(e=>"Active"===e.state).slice(0,e);for(const e of t)e.onShow();u(t);},[n,o]),jsxRuntimeExports.jsx("div",{className:r,...i,children:jsxRuntimeExports.jsx(a,{Notification:s,notifications:c,noNotificationText:""})})};nN.displayName="Body";const oN={Body:nN,Notification:jS,NotificationsList:_S},iN=reactExports.createContext(oN),rN=reactExports.memo(({children:t,components:n})=>{const o=reactExports.useMemo(()=>({...oN,...n}),[n]);return jsxRuntimeExports.jsx(iN.Provider,{value:o,children:t})});function aN(e){return {...reactExports.useContext(iN),...e}}rN.displayName="ComponentsStoreProvider";reactExports.createContext(null);reactExports.memo(function({className:n,...o}){const{notificationsCount:i,showNotificationBadge:r,toggleNotificationPanel:s}=(()=>{const e=reactExports.useContext(IOConnectContext),{settings:t}=nw(),[n,o]=reactExports.useState(0);reactExports.useEffect(()=>{const t=e?.notifications;if(!t)return;const n=t.onCounterChanged(e=>{o(e.count);});return ()=>n?.()},[e?.notifications]);const i=reactExports.useCallback(async()=>{if(e?.notifications?.panel)try{await e.notifications.panel.isVisible()?await e.notifications.panel.hide():await e.notifications.panel.show();}catch(e){console.error("Failed to toggle notifications panel:",e);}else console.error("Notifications panel API not available");},[e]);return {showNotificationBadge:t.showNotificationBadge,notificationsCount:n,toggleNotificationPanel:i}})(),u=r&&i>0,d=i>99?"99+":i;return jsxRuntimeExports.jsxs("div",{className:S("notifications-button","non-draggable",n),...o,children:[u&&jsxRuntimeExports.jsx(B,{variant:"primary",children:d}),jsxRuntimeExports.jsx(P,{variant:"circle",icon:"bell",size:"32",title:"Notifications",onClick:s})]})});const{isClickKeypress:SN}=M;reactExports.memo(function({id:t,title:n,type:o,icon:i,iconSrc:r,hasOpenInstance:s,workspaceId:c,onItemClick:l,onPerformAction:u}){const d=reactExports.useCallback(async()=>{const e=null;let i;i=o===_k.APPLICATION?{kind:_k.APPLICATION,id:t,modifier:e,title:n}:o===_k.LAYOUT?{kind:_k.LAYOUT,id:t,modifier:e}:{kind:_k.WORKSPACE,id:t,modifier:e},await u({type:o,id:t,title:n,workspaceId:c}),l?.(i);},[t,n,o,c,l,u]),p=n,f=r?jsxRuntimeExports.jsx(Or,{size:"16",src:r,alt:`${n} icon`}):jsxRuntimeExports.jsx(N,{size:"16",variant:i});return jsxRuntimeExports.jsx(K.Item,{className:S({"io-list-item-active":s}),prepend:f,tooltip:p??n,title:n,onClick:d,tabIndex:0,"aria-label":n,onKeyDown:e=>{SN(e)&&(e.preventDefault(),d());},children:jsxRuntimeExports.jsx("span",{className:"launchpad-category-item-title",children:n})})});function DN(){const e=reactExports.useContext(IOConnectContext),[t,n]=reactExports.useState();return reactExports.useEffect(()=>{if(!e)return;let t=!1;return (async()=>{try{const o=await(e.windows?.my()?.getContext());t||n(o);}catch(e){console.error("usePlaceholderAppStartupContext: failed to read context",e);}})(),()=>{t=!0;}},[e]),t}const WN=e=>"workspaces"===e?.type?"Workspace Currently Unavailable":"App Currently Unavailable";function VN(){return jsxRuntimeExports.jsxs("svg",{className:"io-placeholder-app-indicator",width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[jsxRuntimeExports.jsx("path",{className:"io-placeholder-app-indicator-badge",d:"M0 24C0 10.7452 10.7452 0 24 0C37.2548 0 48 10.7452 48 24C48 37.2548 37.2548 48 24 48C10.7452 48 0 37.2548 0 24Z"}),jsxRuntimeExports.jsx("path",{className:"io-placeholder-app-indicator-glyph",d:"M18.5 18C18.2188 18 18 18.25 18 18.5V21.5C18 21.7812 18.2188 22 18.5 22H21.5C21.75 22 22 21.7812 22 21.5V18.5C22 18.25 21.75 18 21.5 18H18.5ZM17 18.5C17 17.6875 17.6562 17 18.5 17H21.5C22.3125 17 23 17.6875 23 18.5V21.5C23 22.3438 22.3125 23 21.5 23H18.5C17.6562 23 17 22.3438 17 21.5V18.5ZM18.5 26C18.2188 26 18 26.25 18 26.5V29.5C18 29.7812 18.2188 30 18.5 30H21.5C21.75 30 22 29.7812 22 29.5V26.5C22 26.25 21.75 26 21.5 26H18.5ZM17 26.5C17 25.6875 17.6562 25 18.5 25H21.5C22.3125 25 23 25.6875 23 26.5V29.5C23 30.3438 22.3125 31 21.5 31H18.5C17.6562 31 17 30.3438 17 29.5V26.5ZM29.5 18H26.5C26.2188 18 26 18.25 26 18.5V21.5C26 21.7812 26.2188 22 26.5 22H29.5C29.75 22 30 21.7812 30 21.5V18.5C30 18.25 29.75 18 29.5 18ZM26.5 17H29.5C30.3125 17 31 17.6875 31 18.5V21.5C31 22.3438 30.3125 23 29.5 23H26.5C25.6562 23 25 22.3438 25 21.5V18.5C25 17.6875 25.6562 17 26.5 17ZM26.5 26C26.2188 26 26 26.25 26 26.5V29.5C26 29.7812 26.2188 30 26.5 30H29.5C29.75 30 30 29.7812 30 29.5V26.5C30 26.25 29.75 26 29.5 26H26.5ZM25 26.5C25 25.6875 25.6562 25 26.5 25H29.5C30.3125 25 31 25.6875 31 26.5V29.5C31 30.3438 30.3125 31 29.5 31H26.5C25.6562 31 25 30.3438 25 29.5V26.5Z"})]})}function HN({className:n,title:o,message:i,workspacesIndicator:r,...a}){const s=DN()?.originalApp,c=S("io-placeholder-app-header",n),l=void 0===i?(e=>{const{name:t,type:n}=e??{};return "workspaces"===n?t?`Workspace "${t}" couldn't be restored. It may be missing or incorrectly configured.`:"The workspace couldn't be restored. It may be missing or incorrectly configured.":t?`App "${t}" couldn't be loaded. It may be missing or incorrectly configured.`:"The app couldn't be loaded. It may be missing or incorrectly configured."})(s):i,u=void 0===r?jsxRuntimeExports.jsx(VN,{}):r;return jsxRuntimeExports.jsxs("div",{className:c,...a,children:["workspaces"===s?.type&&u,jsxRuntimeExports.jsx(O,{tag:"h2",size:"large",text:o??WN(s),className:"io-placeholder-app-title"}),l&&jsxRuntimeExports.jsx("p",{className:"io-text-default-lh16 io-placeholder-app-message",children:l})]})}function zN({className:n,text:o="If this was unexpected, contact your system administrator or support team.",...i}){const r=S("io-placeholder-app-support",n);return jsxRuntimeExports.jsxs("div",{className:r,...i,children:[jsxRuntimeExports.jsxs("svg",{className:"io-placeholder-app-support-icon",width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[jsxRuntimeExports.jsx("path",{className:"io-placeholder-app-support-icon-badge",d:"M0 16C0 7.16344 7.16344 0 16 0C24.8366 0 32 7.16344 32 16C32 24.8366 24.8366 32 16 32C7.16344 32 0 24.8366 0 16Z"}),jsxRuntimeExports.jsx("path",{className:"io-placeholder-app-support-icon-glyph",d:"M9 16V17.5C9 17.7812 8.75 18 8.5 18C8.21875 18 8 17.7812 8 17.5V16C8 11.5938 11.5625 8 16 8C20.4062 8 24 11.5938 24 16V20.5312C24 21.9062 22.875 23.0312 21.5 23.0312L18.9062 23C18.6875 23.5938 18.125 24 17.5 24H15.5C14.6562 24 14 23.3438 14 22.5C14 21.6875 14.6562 21 15.5 21H17.5C18.125 21 18.6875 21.4375 18.9062 22L21.5 22.0312C22.3125 22.0312 23 21.3438 23 20.5312V16C23 12.1562 19.8438 9 16 9C12.125 9 9 12.1562 9 16ZM18 22.5C18 22.25 17.75 22 17.5 22H15.5C15.2188 22 15 22.25 15 22.5C15 22.7812 15.2188 23 15.5 23H17.5C17.75 23 18 22.7812 18 22.5ZM12.5 15C11.6562 15 11 15.6875 11 16.5V17.5C11 18.3438 11.6562 19 12.5 19H13V15H12.5ZM10 16.5C10 15.125 11.0938 14 12.5 14H13C13.5312 14 14 14.4688 14 15V19C14 19.5625 13.5312 20 13 20H12.5C11.0938 20 10 18.9062 10 17.5V16.5ZM19 15V19H19.5C20.3125 19 21 18.3438 21 17.5V16.5C21 15.6875 20.3125 15 19.5 15H19ZM19.5 14C20.875 14 22 15.125 22 16.5V17.5C22 18.9062 20.875 20 19.5 20H19C18.4375 20 18 19.5625 18 19V15C18 14.4688 18.4375 14 19 14H19.5Z"})]}),jsxRuntimeExports.jsx("span",{className:"io-text-default-lh16 io-placeholder-app-support-text",children:o})]})}const XN={Header:HN,SupportPanel:zN},ZN=reactExports.createContext(XN),jN=reactExports.memo(({children:t,components:n})=>{const o=reactExports.useMemo(()=>({...XN,...n}),[n]);return jsxRuntimeExports.jsx(ZN.Provider,{value:o,children:t})});jN.displayName="ComponentsStore";const $N=n=>{const{General:o,Layouts:i}=eP();return jsxRuntimeExports.jsxs(Bf,{element:jl,elementProps:n,children:[jsxRuntimeExports.jsx(o,{}),jsxRuntimeExports.jsx(i,{})]})},_N=({title:t="General",...n})=>{const{Theme:o}=eP();return jsxRuntimeExports.jsx(T,{title:t,"data-testid":"preferences-panel-general-block",...n,children:jsxRuntimeExports.jsx(o,{})})},UN=({title:t="Layouts",...n})=>{const{LayoutsShowDeletePrompt:o}=eP();return jsxRuntimeExports.jsx(T,{title:t,"data-testid":"preferences-panel-layouts-block",...n,children:jsxRuntimeExports.jsx(o,{})})},QN={Body:$N,General:_N,Theme:Rv,Layouts:UN,LayoutsShowUnsavedChangesPrompt:_v,LayoutsShowDeletePrompt:Uv},KN=reactExports.createContext(QN),qN=reactExports.memo(({children:t,components:n})=>{const o=reactExports.useMemo(()=>({...QN,...n}),[n]);return jsxRuntimeExports.jsx(KN.Provider,{value:o,children:t})});qN.displayName="PreferencesPanelComponentsStoreProvider";const eP=()=>reactExports.useContext(KN);
1563
1563
 
1564
1564
  const CustomIOContext = reactExports.createContext(null);