diff --git a/examples/item_protocols/Lite-imagenet-single-mul-DDP-gloo.yaml b/examples/item_protocols/Lite-imagenet-single-mul-DDP-gloo.yaml index d55d627..92d85e4 100644 --- a/examples/item_protocols/Lite-imagenet-single-mul-DDP-gloo.yaml +++ b/examples/item_protocols/Lite-imagenet-single-mul-DDP-gloo.yaml @@ -56,5 +56,5 @@ extras: hivedScheduler: taskRoles: worker: - skuNum: 1 + skuNum: 4 skuType: null diff --git a/examples/item_protocols/cifar10-single-mul-DDP-gloo-Apex-mixed.yaml b/examples/item_protocols/cifar10-single-mul-DDP-gloo-Apex-mixed.yaml index e7d045d..2d39a62 100644 --- a/examples/item_protocols/cifar10-single-mul-DDP-gloo-Apex-mixed.yaml +++ b/examples/item_protocols/cifar10-single-mul-DDP-gloo-Apex-mixed.yaml @@ -52,5 +52,5 @@ extras: hivedScheduler: taskRoles: worker: - skuNum: 1 + skuNum: 2 skuType: null diff --git a/examples/item_protocols/cifar10-single-mul-DDP-gloo.yaml b/examples/item_protocols/cifar10-single-mul-DDP-gloo.yaml index c731c23..e273e79 100644 --- a/examples/item_protocols/cifar10-single-mul-DDP-gloo.yaml +++ b/examples/item_protocols/cifar10-single-mul-DDP-gloo.yaml @@ -53,5 +53,5 @@ extras: hivedScheduler: taskRoles: worker: - skuNum: 1 + skuNum: 2 skuType: null diff --git a/examples/item_protocols/cifar10-single-mul-DDP-nccl-Apex-mixed.yaml b/examples/item_protocols/cifar10-single-mul-DDP-nccl-Apex-mixed.yaml index 2b09604..8d64db1 100644 --- a/examples/item_protocols/cifar10-single-mul-DDP-nccl-Apex-mixed.yaml +++ b/examples/item_protocols/cifar10-single-mul-DDP-nccl-Apex-mixed.yaml @@ -53,5 +53,5 @@ extras: hivedScheduler: taskRoles: worker: - skuNum: 1 + skuNum: 2 skuType: null diff --git a/examples/item_protocols/cifar10-single-mul-DDP-nccl.yaml b/examples/item_protocols/cifar10-single-mul-DDP-nccl.yaml index 39bc299..ac46d14 100644 --- a/examples/item_protocols/cifar10-single-mul-DDP-nccl.yaml +++ b/examples/item_protocols/cifar10-single-mul-DDP-nccl.yaml @@ -50,5 +50,5 @@ extras: hivedScheduler: taskRoles: worker: - skuNum: 1 + skuNum: 2 skuType: null diff --git a/publish/marketplace/plugin.js b/publish/marketplace/plugin.js index b794111..da0088b 100644 --- a/publish/marketplace/plugin.js +++ b/publish/marketplace/plugin.js @@ -23,7 +23,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var ie=function(e,t){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function ae(e,t){function n(){this.constructor=e}ie(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var se=function(){return(se=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var ce,fe=0,de=1,pe=2,he={};try{he=window}catch(e){}var me,ge=function(){function e(e){this._rules=[],this._preservedRules=[],this._rulesToInsert=[],this._counter=0,this._keyToClassName={},this._onResetCallbacks=[],this._classNameToArgs={},this._config=se({injectionMode:de,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},e)}return e.getInstance=function(){if(!(ce=he.__stylesheet__)||ce._lastStyleElement&&ce._lastStyleElement.ownerDocument!==document){var t=he&&he.FabricConfig||{};ce=he.__stylesheet__=new e(t.mergeStyles)}return ce},e.prototype.setConfig=function(e){this._config=se({},this._config,e)},e.prototype.onReset=function(e){this._onResetCallbacks.push(e)},e.prototype.getClassName=function(e){var t=this._config.namespace;return(t?t+"-":"")+(e||this._config.defaultPrefix)+"-"+this._counter++},e.prototype.cacheClassName=function(e,t,n,r){this._keyToClassName[t]=e,this._classNameToArgs[e]={args:n,rules:r}},e.prototype.classNameFromKey=function(e){return this._keyToClassName[e]},e.prototype.argsFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.args},e.prototype.insertedRulesFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.rules},e.prototype.insertRule=function(e,t){var n=this._config.injectionMode!==fe?this._getStyleElement():void 0;if(t&&this._preservedRules.push(e),n)switch(this._config.injectionMode){case de:var r=n.sheet;try{r.insertRule(e,r.cssRules.length)}catch(e){}break;case pe:n.appendChild(document.createTextNode(e))}else this._rules.push(e);this._config.onInsertRule&&this._config.onInsertRule(e)},e.prototype.getRules=function(e){return(e?this._preservedRules.join(""):"")+this._rules.join("")+this._rulesToInsert.join("")},e.prototype.reset=function(){this._rules=[],this._rulesToInsert=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach((function(e){return e()}))},e.prototype.resetKeys=function(){this._keyToClassName={}},e.prototype._getStyleElement=function(){var e=this;return this._styleElement||"undefined"==typeof document||(this._styleElement=this._createStyleElement(),window.requestAnimationFrame((function(){e._styleElement=void 0}))),this._styleElement},e.prototype._createStyleElement=function(){var e=document.createElement("style");e.setAttribute("data-merge-styles","true"),e.type="text/css";var t=this._config.cspSettings;return t&&t.nonce&&e.setAttribute("nonce",t.nonce),this._lastStyleElement&&this._lastStyleElement.nextElementSibling?document.head.insertBefore(e,this._lastStyleElement.nextElementSibling):document.head.appendChild(e),this._lastStyleElement=e,e},e}(),ve={MozOsxFontSmoothing:"-moz-osx-font-smoothing",MsHighContrastAdjust:"-ms-high-contrast-adjust",WebkitFontSmoothing:"-webkit-font-smoothing",WebkitOverflowScrolling:"-webkit-overflow-scrolling",WebkitTapHighlightColor:"-webkit-tap-highlight-color",alignContent:"align-content",alignItems:"align-items",alignSelf:"align-self",animation:"animation",animationDelay:"animation-delay",animationDirection:"animation-direction",animationDuration:"animation-duration",animationFillMode:"animation-fill-mode",animationIterationCount:"animation-iteration-count",animationName:"animation-name",animationTimingFunction:"animation-timing-function",background:"background",backgroundClip:"background-clip",backgroundColor:"background-color",backgroundImage:"background-image",backgroundPosition:"background-position",border:"border",borderBottom:"border-bottom",borderBottomColor:"border-bottom-color",borderBottomStyle:"border-bottom-style",borderBottomWidth:"border-bottom-width",borderCollapse:"border-collapse",borderColor:"border-color",borderLeft:"border-left",borderRadius:"border-radius",borderRight:"border-right",borderStyle:"border-style",borderTop:"border-top",borderTopColor:"border-top-color",borderTopLeftRadius:"border-top-left-radius",borderTopRightRadius:"border-top-right-radius",borderTopStyle:"border-top-style",borderTopWidth:"border-top-width",borderWidth:"border-width",bordercolor:"bordercolor",bottom:"bottom",boxShadow:"box-shadow",boxSizing:"box-sizing",clear:"clear",color:"color",content:"content",cursor:"cursor",display:"display",fill:"fill",flex:"flex",flexBasis:"flex-basis",flexDirection:"flex-direction",flexGrow:"flex-grow",flexShrink:"flex-shrink",flexWrap:"flex-wrap",float:"float",font:"font",fontFamily:"font-family",fontSize:"font-size",fontStyle:"font-style",fontWeight:"font-weight",height:"height",justifyContent:"justify-content",left:"left",lineHeight:"line-height",listStyle:"list-style",listStyleType:"list-style-type",marginBottom:"margin-bottom",marginLeft:"margin-left",marginRight:"margin-right",marginTop:"margin-top",maxHeight:"max-height",maxWidth:"max-width",minHeight:"min-height",minWidth:"min-width",mozOsxFontSmoothing:"moz-osx-font-smoothing",objectFit:"object-fit",opacity:"opacity",order:"order",outline:"outline",outlineColor:"outline-color",outlineOffset:"outline-offset",overflow:"overflow",overflowWrap:"overflow-wrap",overflowX:"overflow-x",overflowY:"overflow-y",paddingBottom:"padding-bottom",paddingLeft:"padding-left",paddingRight:"padding-right",paddingTop:"padding-top",perspective:"perspective",pointerEvents:"pointer-events",position:"position",resize:"resize",right:"right",speak:"speak",src:"src",tableLayout:"table-layout",textAlign:"text-align",textDecoration:"text-decoration",textOverflow:"text-overflow",textTransform:"text-transform",top:"top",transform:"transform",transformOrigin:"transform-origin",transition:"transition",transitionDelay:"transition-delay",transitionDuration:"transition-duration",transitionProperty:"transition-property",transitionTimingFunction:"transition-timing-function",userSelect:"user-select",verticalAlign:"vertical-align",visibility:"visibility",webkitFontSmoothing:"webkit-font-smoothing",whiteSpace:"white-space",width:"width",wordBreak:"word-break",wordWrap:"word-wrap",zIndex:"z-index"};var ye={"user-select":1};function be(e,t){var n=function(){if(!me){var e="undefined"!=typeof document?document:void 0,t="undefined"!=typeof navigator?navigator:void 0,n=t?t.userAgent.toLowerCase():void 0;me=e?{isWebkit:!(!e||!("WebkitAppearance"in e.documentElement.style)),isMoz:!!(n&&n.indexOf("firefox")>-1),isOpera:!!(n&&n.indexOf("opera")>-1),isMs:!(!t||!/rv:11.0/i.test(t.userAgent)&&!/Edge\/\d./i.test(navigator.userAgent))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return me}(),r=e[t];if(ye[r]){var o=e[t+1];ye[r]&&(n.isWebkit&&e.push("-webkit-"+r,o),n.isMoz&&e.push("-moz-"+r,o),n.isMs&&e.push("-ms-"+r,o),n.isOpera&&e.push("-o-"+r,o))}}var we=["column-count","font-weight","flex-basis","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function ke(e,t){var n=e[t],r=e[t+1];if("number"==typeof r){var o=-1===we.indexOf(n)?"px":"";e[t+1]=""+r+o}}var xe,_e="left",Ee="right",Ce=((xe={})[_e]=Ee,xe[Ee]=_e,xe),Ae={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"},Se=Ie();function Te(e){Se!==e&&(ge.getInstance().resetKeys(),Se=e)}function Ie(){return void 0===Se&&(Se="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),Se}function Oe(e,t){if(Ie()){var n=e[t];if(!n)return;var r=e[t+1];if("string"==typeof r&&r.indexOf("@noflip")>=0)e[t+1]=r.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(n.indexOf(_e)>=0)e[t]=n.replace(_e,Ee);else if(n.indexOf(Ee)>=0)e[t]=n.replace(Ee,_e);else if(String(r).indexOf(_e)>=0)e[t+1]=r.replace(_e,Ee);else if(String(r).indexOf(Ee)>=0)e[t+1]=r.replace(Ee,_e);else if(Ce[n])e[t]=Ce[n];else if(Ae[r])e[t+1]=Ae[r];else switch(n){case"margin":case"padding":e[t+1]=function(e){if("string"==typeof e){var t=e.split(" ");if(4===t.length)return t[0]+" "+t[3]+" "+t[2]+" "+t[1]}return e}(r);break;case"box-shadow":e[t+1]=function(e,t){var n=e.split(" "),r=parseInt(n[t],10);return n[0]=n[0].replace(String(r),String(-1*r)),n.join(" ")}(r,0)}}}function Pe(e){var t=e&&e["&"];return t?t.displayName:void 0}var Me=/\:global\((.+?)\)/g;function Ne(e){if(!Me.test(e))return e;for(var t=[],n=/\:global\((.+?)\)/g,r=null;r=n.exec(e);)r[1].indexOf(",")>-1&&t.push([r.index,r.index+r[0].length,r[1].split(",").map((function(e){return":global("+e.trim()+")"})).join(", ")]);return t.reverse().reduce((function(e,t){var n=t[0],r=t[1],o=t[2];return e.slice(0,n)+o+e.slice(r)}),e)}function De(e,t){return e.indexOf(":global(")>=0?e.replace(Me,"$1"):0===e.indexOf(":")?t+e:e.indexOf("&")<0?t+" "+e:e}function Le(e,t,n){void 0===t&&(t={__order:[]}),void 0===n&&(n="&");var r=ge.getInstance(),o=t[n];o||(o={},t[n]=o,t.__order.push(n));for(var i=0,a=e;i-1){Le([d],t,Ne(f).split(/,/g).map((function(e){return e.trim()})).map((function(e){return De(e,n)})).join(", "))}else Le([d],t,De(f,n))}}else void 0!==s[l]&&("margin"===l||"padding"===l?Re(o,l,s[l]):o[l]=s[l])}return t}function Re(e,t,n){var r="string"==typeof n?n.split(" "):[n];e[t+"Top"]=r[0],e[t+"Right"]=r[1]||r[0],e[t+"Bottom"]=r[2]||r[0],e[t+"Left"]=r[3]||r[1]||r[0]}function je(e){for(var t=[],n=!1,r=0,o=e.__order;r=0)i(s.split(" "));else{var u=o.argsFromClassName(s);u?i(u):-1===n.indexOf(s)&&n.push(s)}else Array.isArray(s)?i(s):"object"==typeof s&&r.push(s)}}return i(e),{classes:n,objects:r}}function Ve(){for(var e=[],t=0;t0&&r>t)&&(n=Yn(),r=0,o=Hn),s=n;for(var u=0;u-1;e[r]=i?o:nr(e[r]||{},o,n)}else e[r]=o}return n.pop(),e}var rr,or={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"},ir=(n(97),{elevation4:"0 0 5px 0 rgba(0,0,0,.4)",elevation8:"0 0 5px 0 rgba(0,0,0,.4)",elevation16:"0 0 5px 0 rgba(0,0,0,.4)",elevation64:"0 0 5px 0 rgba(0,0,0,.4)",roundedCorner2:"0px"}),ar=lr({palette:Gt,semanticColors:cr(Gt,!1,!1),fonts:pn,isInverted:!1,disableGlobalClassNames:!1});if(!er.getSettings(["theme"]).theme){var sr=$e();sr&&sr.FabricConfig&&sr.FabricConfig.theme&&(ar=lr(sr.FabricConfig.theme)),er.applySettings(((rr={}).theme=ar,rr))}function ur(e){return void 0===e&&(e=!1),!0===e&&(ar=lr({},e)),ar}function lr(e,t){void 0===t&&(t=!1);var n=se({},Gt,e.palette);e.palette&&e.palette.accent||(n.accent=n.themePrimary);var r=se({},cr(n,!!e.isInverted,t),e.semanticColors),o=se({},pn);if(e.defaultFontStyle)for(var i=0,a=Object.keys(o);i0)throw new Error("Any module using getSlots must use withSlots. Please see withSlots javadoc for more info.");return Cr(t[e],n,r[e],r._defaultStyles&&r._defaultStyles[e])};o.isSlot=!0,n[e]=o}};for(var i in t)o(i);return n}function _r(e,t){return"string"!=typeof t&&"number"!=typeof t&&"boolean"!=typeof t||((n={})[e]=t,t=n),t;var n}function Er(e){for(var t=[],n=1;n=0)}),{},e)}var Gr,Qr=br(Pr,null).type,Jr=Sr({displayName:"Stack",styles:function(e,t,n){var r,o,i,a,s,u,l,c=e.verticalFill,f=e.maxWidth,d=e.maxHeight,p=e.horizontal,h=e.reversed,m=e.gap,g=e.grow,v=e.wrap,y=e.padding,b=e.horizontalAlign,w=e.verticalAlign,k=e.disableShrink,x=e.className,_=Gn(Rr,t),E=function(e,t){if(void 0===e||""===e)return{rowGap:{value:0,unit:"px"},columnGap:{value:0,unit:"px"}};if("number"==typeof e)return{rowGap:{value:e,unit:"px"},columnGap:{value:e,unit:"px"}};var n=e.split(" ");if(n.length>2)return{rowGap:{value:0,unit:"px"},columnGap:{value:0,unit:"px"}};if(2===n.length)return{rowGap:Nr(Mr(n[0],t)),columnGap:Nr(Mr(n[1],t))};var r=Nr(Mr(e,t));return{rowGap:r,columnGap:r}}(n&&n.childrenGap?n.childrenGap:m,t),C=E.rowGap,A=E.columnGap,S=""+-.5*A.value+A.unit,T=""+-.5*C.value+C.unit,I={textOverflow:"ellipsis"},O={"> *:not(.ms-StackItem)":{flexShrink:k?0:1}};return v?{root:[_.root,{flexWrap:"wrap",maxWidth:f,maxHeight:d,width:"auto",overflow:"visible",height:"100%"},b&&(r={},r[p?"justifyContent":"alignItems"]=Lr[b]||b,r),w&&(o={},o[p?"alignItems":"justifyContent"]=Lr[w]||w,o),x,{display:"flex"},p&&{height:c?"100%":"auto"}],inner:[_.inner,{display:"flex",flexWrap:"wrap",marginLeft:S,marginRight:S,marginTop:T,marginBottom:T,overflow:"visible",boxSizing:"border-box",padding:Dr(y,t),width:0===A.value?"100%":"calc(100% + "+A.value+A.unit+")",maxWidth:"100vw",selectors:se({"> *":se({margin:""+.5*C.value+C.unit+" "+.5*A.value+A.unit},I)},O)},b&&(i={},i[p?"justifyContent":"alignItems"]=Lr[b]||b,i),w&&(a={},a[p?"alignItems":"justifyContent"]=Lr[w]||w,a),p&&{flexDirection:h?"row-reverse":"row",height:0===C.value?"100%":"calc(100% + "+C.value+C.unit+")",selectors:{"> *":{maxWidth:0===A.value?"100%":"calc(100% - "+A.value+A.unit+")"}}},!p&&{flexDirection:h?"column-reverse":"column",height:"calc(100% + "+C.value+C.unit+")",selectors:{"> *":{maxHeight:0===C.value?"100%":"calc(100% - "+C.value+C.unit+")"}}}]}:{root:[_.root,{display:"flex",flexDirection:p?h?"row-reverse":"row":h?"column-reverse":"column",flexWrap:"nowrap",width:"auto",height:c?"100%":"auto",maxWidth:f,maxHeight:d,padding:Dr(y,t),boxSizing:"border-box",selectors:se((s={"> *":I},s[h?"> *:not(:last-child)":"> *:not(:first-child)"]=[p&&{marginLeft:""+A.value+A.unit},!p&&{marginTop:""+C.value+C.unit}],s),O)},g&&{flexGrow:!0===g?1:g,overflow:"hidden"},b&&(u={},u[p?"justifyContent":"alignItems"]=Lr[b]||b,u),w&&(l={},l[p?"alignItems":"justifyContent"]=Lr[w]||w,l),x]}},view:function(e){var t=e.as,n=void 0===t?"div":t,o=e.disableShrink,i=e.wrap,a=ue(e,["as","disableShrink","wrap"]),s=r.Children.map(e.children,(function(e,t){if(!e)return null;if(e.type===Qr){var n={shrink:!o};return r.cloneElement(e,se({},n,e.props))}return e})),u=$r(a,Vr),l=xr(e,{root:n,inner:"div"});return br(l.root,se({},u),i?br(l.inner,null,s):s)},statics:{Item:Pr}}),Xr=n(15),eo=n.n(Xr),to=o.a.createContext({api:null,user:null,token:null,isAdmin:!1,history:null}),no=Sr({displayName:"Text",styles:function(e,t){var n=e.as,r=e.className,o=e.block,i=e.nowrap,a=e.variant,s=t.fonts[a||"medium"];return{root:[t.fonts.medium,{display:o?"td"===n?"table-cell":"block":"inline",fontFamily:s&&s.fontFamily||"inherit",fontSize:s&&s.fontSize||"inherit",fontWeight:s&&s.fontWeight||"inherit",color:s&&s.color||"inherit",mozOsxFontSmoothing:s&&s.MozOsxFontSmoothing,webkitFontSmoothing:s&&s.WebkitFontSmoothing},i&&{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},r]}},view:function(e){if(!e.children)return null;e.block,e.className;var t=e.as,n=void 0===t?"span":t,r=(e.variant,e.nowrap,ue(e,["block","className","as","variant","nowrap"]));return br(xr(e,{root:n}).root,se({},$r(r,Vr)))}}),ro=["theme","styles"];function oo(e,t,n,o,i){var a=(o=o||{scope:"",fields:void 0}).scope,s=o.fields,u=void 0===s?ro:s;return function(o){function i(){var t=null!==o&&o.apply(this,arguments)||this;return t._inCustomizerContext=!1,t._renderContent=function(o){t._inCustomizerContext=!!o.customizations.inCustomizerContext;var i=er.getSettings(u,a,o.customizations),s=i.styles,l=(i.dir,ue(i,["styles","dir"])),c=n?n(t.props):void 0;return t._updateStyles(s),r.createElement(e,se({},l,c,t.props,{styles:t._styles}))},t._onSettingsChanged=function(){return t.forceUpdate()},t}return ae(i,o),i.prototype.render=function(){return r.createElement(Ar.Consumer,null,this._renderContent)},i.prototype.componentDidMount=function(){this._inCustomizerContext||er.observe(this._onSettingsChanged)},i.prototype.componentWillUnmount=function(){this._inCustomizerContext||er.unobserve(this._onSettingsChanged)},i.prototype._updateStyles=function(e){var n=this;this._styles&&e===this._styles.__cachedInputs__[1]&&!this.props.styles||(this._styles=function(r){return function(e){for(var t=[],n=1;n50&&(t.clear(),n=0,e.disableCaching=!0),a[co]}}function po(e,t){return t=function(e){switch(e){case void 0:return"__undefined__";case null:return"__null__";default:return e}}(t),e.has(t)||e.set(t,new Map),e.get(t)}function ho(e,t){if("function"==typeof t&&t.__cachedInputs__)for(var n=0,r=t.__cachedInputs__;n0&&this._imageElement.current.naturalHeight>0||this._imageElement.current.complete&&t._svgRegex.test(e))&&(this._computeCoverStyle(this.props),this.setState({loadState:lo.loaded})))},t.prototype._computeCoverStyle=function(e){var t=e.imageFit,n=e.width,r=e.height;if((t===so.cover||t===so.contain||t===so.centerContain||t===so.centerCover)&&void 0===this.props.coverStyle&&this._imageElement.current&&this._frameElement.current){var o=void 0;o=n&&r&&t!==so.centerContain&&t!==so.centerCover?n/r:this._frameElement.current.clientWidth/this._frameElement.current.clientHeight;var i=this._imageElement.current.naturalWidth/this._imageElement.current.naturalHeight;this._coverStyle=i>o?uo.landscape:uo.portrait}},t.defaultProps={shouldFadeIn:!0},t._svgRegex=/\.svg$/i,t}(r.Component),vo={root:"ms-Image",rootMaximizeFrame:"ms-Image--maximizeFrame",image:"ms-Image-image",imageCenter:"ms-Image-image--center",imageContain:"ms-Image-image--contain",imageCover:"ms-Image-image--cover",imageCenterContain:"ms-Image-image--centerContain",imageCenterCover:"ms-Image-image--centerCover",imageNone:"ms-Image-image--none",imageLandscape:"ms-Image-image--landscape",imagePortrait:"ms-Image-image--portrait"},yo=oo(go,(function(e){var t=e.className,n=e.width,r=e.height,o=e.maximizeFrame,i=e.isLoaded,a=e.shouldFadeIn,s=e.shouldStartVisible,u=e.isLandscape,l=e.isCenter,c=e.isContain,f=e.isCover,d=e.isCenterContain,p=e.isCenterCover,h=e.isNone,m=e.isError,g=e.isNotImageFit,v=e.theme,y=Gn(vo,v),b={position:"absolute",left:"50% /* @noflip */",top:"50%",transform:"translate(-50%,-50%)"},w=$e(),k=void 0!==w&&void 0===w.navigator.msMaxTouchPoints,x=c&&u||f&&!u?{width:"100%",height:"auto"}:{width:"auto",height:"100%"};return{root:[y.root,v.fonts.medium,{overflow:"hidden"},o&&[y.rootMaximizeFrame,{height:"100%",width:"100%"}],i&&a&&!s&&dr.fadeIn400,(l||c||f||d||p)&&{position:"relative"},t],image:[y.image,{display:"block",opacity:0},i&&["is-loaded",{opacity:1}],l&&[y.imageCenter,b],c&&[y.imageContain,k&&{width:"100%",height:"100%",objectFit:"contain"},!k&&x,b],f&&[y.imageCover,k&&{width:"100%",height:"100%",objectFit:"cover"},!k&&x,b],d&&[y.imageCenterContain,u&&{maxWidth:"100%"},!u&&{maxHeight:"100%"},b],p&&[y.imageCenterCover,u&&{maxHeight:"100%"},!u&&{maxWidth:"100%"},b],h&&[y.imageNone,{width:"auto",height:"auto"}],g&&[!!n&&!r&&{height:"auto",width:"100%"},!n&&!!r&&{height:"100%",width:"auto"},!!n&&!!r&&{height:"100%",width:"100%"}],u&&y.imageLandscape,!u&&y.imagePortrait,!i&&"is-notLoaded",a&&"is-fadeIn",m&&"is-error"]}}),void 0,{scope:"Image"},!0),bo=Ve({root:{display:"inline-block"},placeholder:["ms-Icon-placeHolder",{width:"1em"}],image:["ms-Icon-imageContainer",{overflow:"hidden"}]});function wo(){for(var e=[],t=0;t=a&&(!t||s)?(l=n,c&&(r.clearTimeout(c),c=null),o=e.apply(r._parent,i)):null===c&&u&&(c=r.setTimeout(f,p)),o};return function(){for(var e=[],t=0;t=s&&(n=!0),f=t);var o=t-f,a=s-o,h=t-d,v=!1;return null!==c&&(h>=c&&p?v=!0:a=Math.min(a,c-h)),o>=s||v||n?m(t):null!==p&&e||!l||(p=r.setTimeout(g,a)),i},v=function(){return!!p},y=function(){for(var e=[],t=0;t-1)for(var a=n.split(/[ ,]+/),s=0;s1?e[1]:""}return this.__className},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_disposables",{get:function(){return this.__disposables||(this.__disposables=[]),this.__disposables},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_async",{get:function(){return this.__async||(this.__async=new Fo(this),this._disposables.push(this.__async)),this.__async},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_events",{get:function(){return this.__events||(this.__events=new zo(this),this._disposables.push(this.__events)),this.__events},enumerable:!0,configurable:!0}),t.prototype._resolveRef=function(e){var t=this;return this.__resolves||(this.__resolves={}),this.__resolves[e]||(this.__resolves[e]=function(n){return t[e]=n}),this.__resolves[e]},t.prototype._updateComponentRef=function(e,t){void 0===t&&(t={}),e&&t&&e.componentRef!==t.componentRef&&(this._setComponentRef(e.componentRef,null),this._setComponentRef(t.componentRef,this))},t.prototype._warnDeprecations=function(e){this.className,this.props},t.prototype._warnMutuallyExclusive=function(e){this.className,this.props},t.prototype._warnConditionallyRequiredProps=function(e,t,n){this.className,this.props},t.prototype._setComponentRef=function(e,t){!this._skipComponentRefResolution&&e&&("function"==typeof e&&e(t),"object"==typeof e&&(e.current=t))},t}(r.Component);function Uo(e,t,n){var r=e[n],o=t[n];(r||o)&&(e[n]=function(){var e;return o&&(e=o.apply(this,arguments)),r!==o&&(e=r.apply(this,arguments)),e})}function Ho(){return null}function Wo(){for(var e=[],t=0;t=0&&(s.keytip.visible=this.keytips[u].keytip.visible,this.keytips=(n=this.keytips,r=s,o=u,(i=n.slice())[o]=r,i),zo.raise(this,Ko.KEYTIP_UPDATED,{keytip:s.keytip,uniqueID:s.uniqueID}))},e.prototype.unregister=function(e,t,n){void 0===n&&(n=!1),n?this.persistedKeytips=this.persistedKeytips.filter((function(e){return e.uniqueID!==t})):this.keytips=this.keytips.filter((function(e){return e.uniqueID!==t}));var r=n?Ko.PERSISTED_KEYTIP_REMOVED:Ko.KEYTIP_REMOVED;zo.raise(this,r,{keytip:e,uniqueID:t})},e.prototype.enterKeytipMode=function(){zo.raise(this,Ko.ENTER_KEYTIP_MODE)},e.prototype.exitKeytipMode=function(){zo.raise(this,Ko.EXIT_KEYTIP_MODE)},e.prototype.getKeytips=function(){return this.keytips.map((function(e){return e.keytip}))},e.prototype.addParentOverflow=function(e){var t=e.keySequences.slice();if(t.pop(),0!==t.length){var n=function(e,t){var n=Vo(e,t);if(!(n<0))return e[n]}(this.getKeytips(),(function(e){return function(e,t){if(e.length!==t.length)return!1;for(var n=0;n1?" days ago":" day ago")),o.a.createElement(no,null,n.summary))))};hi.propTypes={item:s.a.object.isRequired};var mi=hi;function gi(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n display: block;\n height: 1px;\n border: 0;\n border-top: 1px solid ",";\n margin: 1px 0;\n padding: 0;\n"]);return gi=function(){return e},e}var vi=ur().palette,yi=Eo.b.hr(gi(),vi.neutralTertiaryAlt),bi=n(101),wi=n.n(bi),ki=[{id:"0b41d10e-36e5-4e97-95c2-27726dd94f33",name:"COVID-19 image data collection",author:"ieee8023",type:"data",categories:"COVID-19",tags:["open source dataset"],summary:"Dataset of COVID-19 X-ray and CT images",protocol:"covid_chestxray_dataset.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-09-20T04:52:48.289Z",updatedAt:"2020-09-20T04:52:48.289Z"},{id:"e284b120-fdaf-11ea-adc1-0242ac120002",name:"COVID-19 Image Data Training Job Template",author:"mlmed",type:"template",categories:"COVID-19",tags:["official example"],summary:"Covid chestxray model training job",protocol:"covid_chestxray_training.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-09-20T04:52:48.289Z",updatedAt:"2020-09-20T04:52:48.289Z"},{id:"1",name:"Couplet Dataset",author:"OpenPAI",type:"data",categories:"AI couplet",tags:["official example"],summary:"Dataset of couplet",protocol:"couplet_dataset.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-08-15T04:52:48.289Z",updatedAt:"2020-08-15T04:52:48.289Z"},{id:"2",name:"Couplet Training Job Template",author:"OpenPAI",type:"template",categories:"AI couplet",tags:["official example"],summary:"Couplet model training job",protocol:"couplet_training.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-08-15T04:52:48.289Z",updatedAt:"2020-08-15T04:52:48.289Z"},{id:"3",name:"Couplet Inference Job Template",author:"OpenPAI",type:"template",categories:"AI couplet",tags:["official example"],summary:"Couplet inference service with trained model",protocol:"couplet_inference.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-08-15T04:52:48.289Z",updatedAt:"2020-08-15T04:52:48.289Z"},{id:"4",name:"Covid19 Dataset",author:"OpenPAI",type:"data",categories:"AI couplet",tags:["official example"],summary:"Provides up-to-date data about Coronavirus outbreak, including numbers about confirmed cases, deaths and recovered",protocol:"covid_dataset.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-08-15T04:52:48.289Z",updatedAt:"2020-08-15T04:52:48.289Z"},{id:"5",name:"Covid19 Prediction Model",author:"OpenPAI",type:"template",categories:"AI couplet",tags:["official example"],summary:"This model predicts the confirmed and death number of population of different dates",protocol:"covid_training.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-08-15T04:52:48.289Z",updatedAt:"2020-08-15T04:52:48.289Z"},{id:"6",name:"Covid19 Inference Service",author:"OpenPAI",type:"template",categories:"AI couplet",tags:["official example"],summary:"This is the inference service to visualize the prediction number of confirmed and death population in different countries",protocol:"covid_inference.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-08-15T04:52:48.289Z",updatedAt:"2020-08-15T04:52:48.289Z"},{id:"7",name:"Grammar Check Dataset",author:"OpenPAI",type:"data",categories:"AI couplet",tags:["official example"],summary:"Dataset for grammar check task",protocol:"grammar_dataset.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-08-15T04:52:48.289Z",updatedAt:"2020-08-15T04:52:48.289Z"},{id:"8",name:"Grammar Check Model Training",author:"OpenPAI",type:"template",categories:"AI couplet",tags:["official example"],summary:"A grammar check model training process",protocol:"grammar_training.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-08-15T04:52:48.289Z",updatedAt:"2020-08-15T04:52:48.289Z"},{id:"9",name:"Grammar Check Inference Job",author:"OpenPAI",type:"template",categories:"AI couplet",tags:["official example"],summary:"Grammar check inference job with trained model",protocol:"grammar_inference.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-08-15T04:52:48.289Z",updatedAt:"2020-08-15T04:52:48.289Z"},{id:"10",name:"GPU Sharing Example",author:"OpenPAI",type:"template",categories:"gpu sharing",tags:["official example"],summary:"GPU sharing example: two tasks share one GPU",protocol:"gpu_sharing.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-09-22T04:52:48.289Z",updatedAt:"2020-09-22T04:52:48.289Z"},{id:"69ff3c37-1405-49a7-b9de-47e640ba490c",name:"Caffe2 Minist Example",author:"OpenPAI",type:"old",categories:["official example"],tags:["official example"],summary:"A caffe minist example",protocol:"caffe-mnist.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-07-28T04:52:48.289Z",updatedAt:"2020-07-28T04:52:48.289Z"},{id:"9d3fbdad-dd82-429c-a368-f3d7b41717b5",name:"Caffe2 ResNet50 Example",author:"OpenPAI",type:"old",categories:["official example"],tags:["official example"],summary:"A caffe resnet50 example",protocol:"caffe2-resnet50.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-07-28T04:52:48.289Z",updatedAt:"2020-07-28T04:52:48.289Z"},{id:"5fa59045-c3f8-4243-88ff-89a1034681d8",name:"Chainer Example",author:"OpenPAI",type:"old",categories:["official example"],tags:["official example"],summary:"A chainer example",protocol:"chainer-cifar.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-07-28T04:52:48.289Z",updatedAt:"2020-07-28T04:52:48.289Z"},{id:"d5f357d0-70cc-435c-92f2-21d63c7a1513",name:"Horovod Pytorch",author:"OpenPAI",type:"old",categories:["official example"],tags:["official example"],summary:"A horovod pytorch example",protocol:"horovod-pytorch-synthetic-benchmark.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-07-28T04:52:48.289Z",updatedAt:"2020-07-28T04:52:48.289Z"},{id:"55a21b76-abbe-4f75-9b09-ed0ee3accc16",name:"Keras Tensorflow Mnist Example",author:"OpenPAI",type:"old",categories:["official example"],tags:["official example"],summary:"A keras tensorflow minist example",protocol:"keras-tensorflow-mnist.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-07-28T04:52:48.289Z",updatedAt:"2020-07-28T04:52:48.289Z"},{id:"56a0d871-fe2d-43ce-b26c-b89b9c0646fd",name:"Mxnet Autoencoder Example",author:"OpenPAI",type:"old",categories:["official example"],tags:["official example"],summary:"A Mxnet Autoencoder Example",protocol:"mxnet-autoencoder.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-07-28T04:52:48.289Z",updatedAt:"2020-07-28T04:52:48.289Z"},{id:"cc42d399-06d8-4b93-9e84-e5f609ef0c73",name:"Pytorch Mnist Example",author:"OpenPAI",type:"old",categories:["official example"],tags:["official example"],summary:"A Pytorch Mnist Example",protocol:"pytorch-mnist.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-07-28T04:52:48.289Z",updatedAt:"2020-07-28T04:52:48.289Z"},{id:"1c7efdef-40da-46d0-bdea-16c25e560380",name:"Pytorch Regression Example",author:"OpenPAI",type:"old",categories:["official example"],tags:["official example"],summary:"A Pytorch Regression Example",protocol:"pytorch-regression.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-07-28T04:52:48.289Z",updatedAt:"2020-07-28T04:52:48.289Z"},{id:"80cf9714-de4e-480b-8e26-66f529dbff6d",name:"Rocm Pytorch Mnist",author:"OpenPAI",type:"old",categories:["official example"],tags:["official example"],summary:"A Rocm Pytorch Example",protocol:"rocm-pytorch-mnist.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-07-28T04:52:48.289Z",updatedAt:"2020-07-28T04:52:48.289Z"},{id:"44cbad87-c2d5-4433-9890-0883f07e3912",name:"rocm_tensorflow2",author:"OpenPAI",type:"old",categories:["official example"],tags:["official example"],summary:"A Rocm Tensorflow2 Example",protocol:"rocm-tensorflow2.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-07-28T04:52:48.289Z",updatedAt:"2020-07-28T04:52:48.289Z"},{id:"17c2500d-94ed-4e2d-af74-e1ace47987af",name:"sklearn_text_vectorizers",author:"OpenPAI",type:"old",categories:["official example"],tags:["official example"],summary:"A Scikit-learn Example",protocol:"sklearn-text-vectorizers.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-07-28T04:52:48.289Z",updatedAt:"2020-07-28T04:52:48.289Z"},{id:"4fb02608-3769-475c-a0c2-c2155fb03c4f",name:"tensorflow_cifar10",author:"OpenPAI",type:"old",categories:["official example"],tags:["official example"],summary:"A Tensorflow Distributed Example",protocol:"tensorflow-cifar10.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-07-28T04:52:48.289Z",updatedAt:"2020-07-28T04:52:48.289Z"},{id:"74c8ab09-6225-4982-8145-5be0b5c55a28",name:"tensorflow_serving_mnist",author:"OpenPAI",type:"old",categories:["official example"],tags:["official example"],summary:"A Tensorflow Mnist Model Example",protocol:"tensorflow-serving-mnist.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-08-15T04:52:48.289Z",updatedAt:"2020-08-15T04:52:48.289Z"},{id:"11",name:"cifar10-single-mul-DDP-gloo",author:"OpenPAI",type:"template",categories:["distributed example"],tags:["official example"],summary:"Pytorch Cifar10 Example",protocol:"cifar10-single-mul-DDP-gloo.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-09-23T14:52:48.289Z",updatedAt:"2020-09-23T14:52:48.289Z"},{id:"12",name:"cifar10-single-mul-DDP-gloo-Apex-mixed",author:"OpenPAI",type:"template",categories:["distributed example"],tags:["official example"],summary:"Pytorch Cifar10 Example",protocol:"cifar10-single-mul-DDP-gloo-Apex-mixed.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-09-23T14:52:48.289Z",updatedAt:"2020-09-23T14:52:48.289Z"},{id:"13",name:"cifar10-single-mul-DDP-nccl",author:"OpenPAI",type:"template",categories:["distributed example"],tags:["official example"],summary:"Pytorch Cifar10 Example",protocol:"cifar10-single-mul-DDP-nccl.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-09-23T14:52:48.289Z",updatedAt:"2020-09-23T14:52:48.289Z"},{id:"14",name:"cifar10-single-mul-DDP-nccl-Apex-mixed",author:"OpenPAI",type:"template",categories:["distributed example"],tags:["official example"],summary:"Pytorch Cifar10 Example",protocol:"cifar10-single-mul-DDP-nccl-Apex-mixed.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-09-23T14:52:48.289Z",updatedAt:"2020-09-23T14:52:48.289Z"},{id:"15",name:"cifar10-single-node-gpus-cpu-DP",author:"OpenPAI",type:"template",categories:["distributed example"],tags:["official example"],summary:"Pytorch Cifar10 Example",protocol:"cifar10-single-node-gpus-cpu-DP.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-09-23T14:52:48.289Z",updatedAt:"2020-09-23T14:52:48.289Z"},{id:"16",name:"Lite-imagenet-single-mul-DDP-gloo",author:"OpenPAI",type:"template",categories:["distributed example"],tags:["official example"],summary:"Pytorch Imagenet Example",protocol:"Lite-imagenet-single-mul-DDP-gloo.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-09-23T14:52:48.289Z",updatedAt:"2020-09-23T14:52:48.289Z"}];var xi,_i,Ei=n(43),Ci=n.n(Ei);function Ai(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function Si(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Ai(i,r,o,a,s,"next",e)}function s(e){Ai(i,r,o,a,s,"throw",e)}a(void 0)}))}}function Ti(e){return Ii.apply(this,arguments)}function Ii(){return(Ii=Si(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!re()(t)&&"all"!==t){e.next=2;break}return e.abrupt("return",ki);case 2:return e.abrupt("return",ki.filter((function(e){return e.type===t})));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Oi(e){return Pi.apply(this,arguments)}function Pi(){return(Pi=Si(regeneratorRuntime.mark((function e(t){var n,r,o,i,a,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,r=ki.find((function(e){return e.id===t})),n="old"===r.type?"https://microsoft.github.io/openpaimarketplace/examples/yaml_templates/".concat(r.protocol):"https://microsoft.github.io/openpaimarketplace/examples/item_protocols/".concat(r.protocol),e.next=5,fetch(n);case 5:return o=e.sent,e.next=8,o.text();case 8:return i=e.sent,a=Ci.a.safeLoad(i),(s=wi()(r)).protocol=a,e.abrupt("return",s);case 15:e.prev=15,e.t0=e.catch(0),alert("could not get marketplace item from uri ".concat(n));case 18:case"end":return e.stop()}}),e,null,[[0,15]])})))).apply(this,arguments)}!function(e){e[e.xSmall=0]="xSmall",e[e.small=1]="small",e[e.medium=2]="medium",e[e.large=3]="large"}(xi||(xi={})),function(e){e[e.normal=0]="normal",e[e.large=1]="large"}(_i||(_i={}));var Mi=function(e){function t(t){var n=e.call(this,t)||this;return n.state={isRendered:!1},n}return ae(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props.delay;this._timeoutId=setTimeout((function(){e.setState({isRendered:!0})}),t)},t.prototype.componentWillUnmount=function(){this._timeoutId&&clearTimeout(this._timeoutId)},t.prototype.render=function(){return this.state.isRendered?r.Children.only(this.props.children):null},t.defaultProps={delay:0},t}(r.Component),Ni=fo(),Di=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ae(t,e),t.prototype.render=function(){var e=this.props,t=e.type,n=e.size,o=e.ariaLabel,i=e.ariaLive,a=e.styles,s=e.label,u=e.theme,l=e.className,c=e.labelPosition,f=o,d=$r(this.props,Yr,["size"]),p=n;void 0===p&&void 0!==t&&(p=t===_i.large?xi.large:xi.medium);var h=Ni(a,{theme:u,size:p,className:l,labelPosition:c});return r.createElement("div",se({},d,{className:h.root}),r.createElement("div",{className:h.circle}),s&&r.createElement("div",{className:h.label},s),f&&r.createElement("div",{role:"status","aria-live":i},r.createElement(Mi,null,r.createElement("div",{className:h.screenReaderText},f))))},t.defaultProps={size:xi.medium,ariaLive:"polite",labelPosition:"bottom"},t}(Bo),Li={root:"ms-Spinner",circle:"ms-Spinner-circle",label:"ms-Spinner-label"},Ri=He({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),ji=oo(Di,(function(e){var t,n=e.theme,r=e.size,o=e.className,i=e.labelPosition,a=n.palette,s=Gn(Li,n);return{root:[s.root,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},"top"===i&&{flexDirection:"column-reverse"},"right"===i&&{flexDirection:"row"},"left"===i&&{flexDirection:"row-reverse"},o],circle:[s.circle,{boxSizing:"border-box",borderRadius:"50%",border:"1.5px solid "+a.themeLight,borderTopColor:a.themePrimary,animationName:Ri,animationDuration:"1.3s",animationIterationCount:"infinite",animationTimingFunction:"cubic-bezier(.53,.21,.29,.67)",selectors:(t={},t[gn]={borderTopColor:"Highlight"},t)},r===xi.xSmall&&["ms-Spinner--xSmall",{width:12,height:12}],r===xi.small&&["ms-Spinner--small",{width:16,height:16}],r===xi.medium&&["ms-Spinner--medium",{width:20,height:20}],r===xi.large&&["ms-Spinner--large",{width:28,height:28}]],label:[s.label,{color:a.themePrimary,margin:"10px 0 0",textAlign:"center"},"top"===i&&{margin:"0 0 10px"},"right"===i&&{margin:"0 0 0 10px"},"left"===i&&{margin:"0 10px 0 0"}],screenReaderText:Bn}}),void 0,{scope:"Spinner"});function Fi(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n"]);return Fi=function(){return e},e}var zi=Eo.b.div(Fi()),Bi=function(e){var t=e.label,n=void 0===t?"Loading...":t;return o.a.createElement(zi,null,o.a.createElement(Jr,null,o.a.createElement(ji,{size:xi.large}),o.a.createElement(no,{variant:"large"},n)))};Bi.propTypes={label:s.a.string};var Ui=Bi;function Hi(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function Wi(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Hi(i,r,o,a,s,"next",e)}function s(e){Hi(i,r,o,a,s,"throw",e)}a(void 0)}))}}function Vi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ki(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ki(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ki(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0,a=!!e&&"false"!==o&&("A"===e.tagName||"BUTTON"===e.tagName||"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"true"===o||i);return t?-1!==n&&a:a}function Oa(e){return!!(e&&e.getAttribute&&e.getAttribute("data-focuszone-id"))}function Pa(e){return!(!e||!e.getAttribute||"true"!==e.getAttribute("data-is-sub-focuszone"))}function Ma(e,t){return"true"!==function(e,t){var n=oa(e,(function(e){return e.hasAttribute(t)}));return n&&n.getAttribute(t)}(e,t)}var Na=void 0;var Da,La;function Ra(){if(void 0===Da){var e=function(e){var t=null;try{t=window.sessionStorage.getItem(e)}catch(e){}return t}("isRTL");null!==e&&function(e,t){void 0===t&&(t=!1);var n=an();n&&n.documentElement.setAttribute("dir",e?"rtl":"ltr");t&&function(e,t){try{window.sessionStorage.setItem(e,t)}catch(e){}}("isRTL",e?"1":"0");Te(Da=e)}(Da="1"===e);var t=an();void 0===Da&&t&&Te(Da="rtl"===(t.body&&t.body.getAttribute("dir")||t.documentElement.getAttribute("dir")))}return!!Da}function ja(e){for(var t=[],n=1;na||!e&&s=r.left&&o<=r.left+r.width?0:Math.abs(r.left+r.width/2-o):n._shouldWrapFocus(n._activeElement,"data-no-vertical-wrap")?999999999:-999999999},Fa(n),n._id=Wr("FocusZone"),n._focusAlignment={x:0,y:0},n._processingTabKey=!1,n}return ae(t,e),t.getOuterZones=function(){return Ga.size},t._onKeyDownCapture=function(e){e.which===bn&&Ga.forEach((function(e){return e._updateTabIndexes()}))},t.prototype.componentDidMount=function(){var e=this._root.current;if($a[this._id]=this,e){for(var n=e.ownerDocument.defaultView,r=ra(e,!1);r&&r!==document.body&&1===r.nodeType;){if(Oa(r)){this._isInnerZone=!0;break}r=ra(r,!1)}this._isInnerZone||(Ga.add(this),n&&1===Ga.size&&this._disposables.push(Wa(n,"keydown",t._onKeyDownCapture,!0))),this._disposables.push(Wa(e,"blur",this._onBlur,!0)),this._updateTabIndexes(),this.props.defaultActiveElement&&(this._activeElement=an().querySelector(this.props.defaultActiveElement),this.focus())}},t.prototype.componentDidUpdate=function(){var e=this._root.current,t=an(e);if(t&&this._lastIndexPath&&(t.activeElement===t.body||t.activeElement===e)){var n=function(e,t){for(var n=e,r=0,o=t;r-1&&(-1===i||c=0&&c<0)break}}while(o);if(a&&a!==this._activeElement)s=!0,this.focusElement(a);else if(this.props.isCircularNavigation&&r)return e?this.focusElement(Sa(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(Aa(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return s},t.prototype._moveFocusDown=function(){var e=this,t=-1,n=this._focusAlignment.x;return!!this._moveFocus(!0,(function(r,o){var i=-1,a=Math.floor(o.top),s=Math.floor(r.bottom);return a=s||a===t)&&(t=a,i=n>=o.left&&n<=o.left+o.width?0:Math.abs(o.left+o.width/2-n)),i)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},t.prototype._moveFocusUp=function(){var e=this,t=-1,n=this._focusAlignment.x;return!!this._moveFocus(!1,(function(r,o){var i=-1,a=Math.floor(o.bottom),s=Math.floor(o.top),u=Math.floor(r.top);return a>u?e._shouldWrapFocus(e._activeElement,"data-no-vertical-wrap")?999999999:-999999999:((-1===t&&a<=u||s===t)&&(t=s,i=n>=o.left&&n<=o.left+o.width?0:Math.abs(o.left+o.width/2-n)),i)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},t.prototype._moveFocusLeft=function(){var e=this,t=this._shouldWrapFocus(this._activeElement,"data-no-horizontal-wrap");return!!this._moveFocus(Ra(),(function(n,r){var o=-1;return(Ra()?r.top.toFixed(3)n.top.toFixed(3))&&r.right<=n.right&&e.props.direction!==ka.vertical?o=n.right-r.right:t||(o=-999999999),o}),void 0,t)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusRight=function(){var e=this,t=this._shouldWrapFocus(this._activeElement,"data-no-horizontal-wrap");return!!this._moveFocus(!Ra(),(function(n,r){var o=-1;return(Ra()?r.bottom.toFixed(3)>n.top.toFixed(3):r.top.toFixed(3)=n.left&&e.props.direction!==ka.vertical?o=r.left-n.left:t||(o=-999999999),o}),void 0,t)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusPaging=function(e,t){void 0===t&&(t=!0),void 0===t&&(t=!0);var n=this._activeElement;if(!n||!this._root.current)return!1;if(this._isElementInput(n)&&!this._shouldInputLoseFocus(n,e))return!1;var r=Za(n);if(!r)return!1;var o=-1,i=void 0,a=-1,s=-1,u=r.clientHeight,l=n.getBoundingClientRect();do{if(n=e?Sa(this._root.current,n):Aa(this._root.current,n)){var c=n.getBoundingClientRect(),f=Math.floor(c.top),d=Math.floor(l.bottom),p=Math.floor(c.bottom),h=Math.floor(l.top),m=this._getHorizontalDistanceFromCenter(e,l,c);if(e&&f>d+u||!e&&p-1&&(e&&f>a?(a=f,o=m,i=n):!e&&p-1){var n=e.selectionStart,r=n!==e.selectionEnd,o=e.value;if(r||n>0&&!t||n!==o.length&&t||this.props.handleTabKey&&(!this.props.shouldInputLoseFocusOnArrowKey||!this.props.shouldInputLoseFocusOnArrowKey(e)))return!1}return!0},t.prototype._shouldWrapFocus=function(e,t){return!this.props.checkForNoWrap||Ma(e,t)},t.prototype._portalContainsElement=function(e){return e&&!!this._root.current&&ia(e,this._root.current)},t.defaultProps={isCircularNavigation:!1,direction:ka.bidirectional},t}(r.Component);function Xa(e){if(void 0===Ya||e){var t=$e(),n=t&&t.navigator.userAgent;Ya=!!n&&-1!==n.indexOf("Macintosh")}return!!Ya}var es=function(){return!!(window&&window.navigator&&window.navigator.userAgent)&&/iPad|iPhone|iPod/i.test(window.navigator.userAgent)};function ts(e){return e.canCheck?!(!e.isChecked&&!e.checked):"boolean"==typeof e.isChecked?e.isChecked:"boolean"==typeof e.checked?e.checked:null}function ns(e){return!(!e.subMenuProps&&!e.items)}function rs(e){return!(!e.isDisabled&&!e.disabled)}var os=n(16),is=["setState","render","componentWillMount","UNSAFE_componentWillMount","componentDidMount","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","shouldComponentUpdate","componentWillUpdate","getSnapshotBeforeUpdate","UNSAFE_componentWillUpdate","componentDidUpdate","componentWillUnmount"];var as,ss=function(e){function t(t){var n=e.call(this,t)||this;return n._skipComponentRefResolution=!0,n._updateComposedComponentRef=n._updateComposedComponentRef.bind(n),n}return ae(t,e),t.prototype._updateComposedComponentRef=function(e){var t;this._composedComponentInstance=e,e?this._hoisted=function(e,t,n){void 0===n&&(n=is);var r=[],o=function(o){"function"!=typeof t[o]||void 0!==e[o]||n&&-1!==n.indexOf(o)||(r.push(o),e[o]=function(){t[o].apply(t,arguments)})};for(var i in t)o(i);return r}(this,e):this._hoisted&&(t=this,this._hoisted.forEach((function(e){return delete t[e]})))},t}(Bo);function us(e,t){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}!function(e){e[e.small=0]="small",e[e.medium=1]="medium",e[e.large=2]="large",e[e.xLarge=3]="xLarge",e[e.xxLarge=4]="xxLarge",e[e.xxxLarge=5]="xxxLarge",e[e.unknown=999]="unknown"}(as||(as={}));var ls,cs,fs,ds,ps=[479,639,1023,1365,1919,99999999];function hs(e){var t=function(t){function n(e){var n=t.call(this,e)||this;return n._onResize=function(){var e=Object(os.findDOMNode)(n),t=ms(e&&$e(e)||window);t!==n.state.responsiveMode&&n.setState({responsiveMode:t})},n._updateComposedComponentRef=n._updateComposedComponentRef.bind(n),n.state={responsiveMode:ls||cs||as.large},n}return ae(n,t),n.prototype.componentDidMount=function(){this._events.on(window,"resize",this._onResize),this._onResize()},n.prototype.componentWillUnmount=function(){this._events.dispose()},n.prototype.render=function(){var t=this.state.responsiveMode;return t===as.unknown?null:r.createElement(e,se({ref:this._updateComposedComponentRef,responsiveMode:t},this.props))},n}(ss);return us(e,t)}function ms(e){var t=as.small;if(e){try{for(;e.innerWidth>ps[t];)t++}catch(e){t=ls||cs||as.large}cs=t}else{if(void 0===ls)throw new Error("Content was rendered in a server environment without providing a default responsive mode. Call setResponsiveMode to define what the responsive mode is.");t=ls}return t}!function(e){e[e.top=1]="top",e[e.bottom=-1]="bottom",e[e.left=2]="left",e[e.right=-2]="right"}(fs||(fs={})),function(e){e[e.top=0]="top",e[e.bottom=1]="bottom",e[e.start=2]="start",e[e.end=3]="end"}(ds||(ds={}));var gs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ae(t,e),t}(function(){function e(e,t,n,r){void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=0),void 0===r&&(r=0),this.top=n,this.bottom=r,this.left=e,this.right=t}return Object.defineProperty(e.prototype,"width",{get:function(){return this.right-this.left},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!0,configurable:!0}),e.prototype.equals=function(e){return parseFloat(this.top.toFixed(4))===parseFloat(e.top.toFixed(4))&&parseFloat(this.bottom.toFixed(4))===parseFloat(e.bottom.toFixed(4))&&parseFloat(this.left.toFixed(4))===parseFloat(e.left.toFixed(4))&&parseFloat(this.right.toFixed(4))===parseFloat(e.right.toFixed(4))},e}());function vs(e,t,n){return{targetEdge:e,alignmentEdge:t,isAuto:n}}var ys=((qs={})[sa]=vs(fs.top,fs.left),qs[ua]=vs(fs.top),qs[la]=vs(fs.top,fs.right),qs[ca]=vs(fs.top,void 0,!0),qs[fa]=vs(fs.bottom,fs.left),qs[da]=vs(fs.bottom),qs[pa]=vs(fs.bottom,fs.right),qs[ha]=vs(fs.bottom,void 0,!0),qs[ma]=vs(fs.left,fs.top),qs[ga]=vs(fs.left),qs[va]=vs(fs.left,fs.bottom),qs[ya]=vs(fs.right,fs.top),qs[ba]=vs(fs.right),qs[wa]=vs(fs.right,fs.bottom),qs);function bs(e,t){return!(e.topt.bottom)&&(!(e.leftt.right)))}function ws(e,t){var n=new Array;return e.topt.bottom&&n.push(fs.bottom),e.leftt.right&&n.push(fs.right),n}function ks(e,t){return e[fs[t]]}function xs(e,t,n){return e[fs[t]]=n,e}function _s(e,t){var n=Ns(t);return(ks(e,n.positiveEdge)+ks(e,n.negativeEdge))/2}function Es(e,t){return e>0?t:-1*t}function Cs(e,t){return Es(e,ks(t,e))}function As(e,t,n){return Es(n,ks(e,n)-ks(t,n))}function Ss(e,t,n){var r=ks(e,t)-n;return e=xs(e,t,n),e=xs(e,-1*t,ks(e,-1*t)-r)}function Ts(e,t,n,r){return void 0===r&&(r=0),Ss(e,n,ks(t,n)+Es(n,r))}function Is(e,t,n){return Cs(n,e)>Cs(n,t)}function Os(e,t,n,r,o,i,a){void 0===o&&(o=0);var s=r.alignmentEdge,u=r.alignTargetEdge,l={elementRectangle:e,targetEdge:r.targetEdge,alignmentEdge:s};i||a||(l=function(e,t,n,r,o){void 0===o&&(o=0);for(var i=[fs.left,fs.right,fs.bottom,fs.top],a=e,s=r.targetEdge,u=r.alignmentEdge,l=0;l<4;l++){if(Is(a,n,s))return{elementRectangle:a,targetEdge:s,alignmentEdge:u};i.splice(i.indexOf(s),1),i.indexOf(-1*s)>-1?s*=-1:(u=s,s=i.slice(-1)[0]),a=Ms(e,t,{targetEdge:s,alignmentEdge:u},o)}return{elementRectangle:e,targetEdge:r.targetEdge,alignmentEdge:u}}(e,t,n,r,o));var c=ws(e,n);if(u){if(l.alignmentEdge&&c.indexOf(-1*l.alignmentEdge)>-1){var f=function(e,t,n,r){var o=e.alignmentEdge,i=e.targetEdge,a=-1*o;return{elementRectangle:Ms(e.elementRectangle,t,{targetEdge:i,alignmentEdge:a},n,r),targetEdge:i,alignmentEdge:a}}(l,t,o,a);if(bs(f.elementRectangle,n))return f}}else for(var d=0,p=c;dMath.abs(As(e,n,-1*t))?-1*t:t}function Ls(e){return Math.sqrt(e*e*2)}function Rs(e,t,n){if(void 0===e&&(e=ha),n)return{alignmentEdge:n.alignmentEdge,isAuto:n.isAuto,targetEdge:n.targetEdge};var r=se({},ys[e]);return Ra()?(r.alignmentEdge&&r.alignmentEdge%2==0&&(r.alignmentEdge=-1*r.alignmentEdge),void 0!==t?ys[t]:r):r}function js(e,t,n){var r=_s(t,e),o=_s(n,e),i=Ns(e),a=i.positiveEdge,s=i.negativeEdge;return r<=o?a:s}function Fs(e,t,n,r,o,i,a){var s=Ms(e,t,r,o,a);return bs(s,n)?{elementRectangle:s,targetEdge:r.targetEdge,alignmentEdge:r.alignmentEdge}:Os(e,t,n,r,o,i,a)}function zs(e,t,n){var r=-1*e.targetEdge,o=new gs(0,e.elementRectangle.width,0,e.elementRectangle.height),i={},a=Ds(e.elementRectangle,e.alignmentEdge?e.alignmentEdge:Ns(r).positiveEdge,n);return i[fs[r]]=ks(t,r),i[fs[a]]=As(t,o,a),{elementPosition:se({},i),closestEdge:js(e.targetEdge,t,o),targetEdge:r}}function Bs(e,t){var n=t.targetRectangle,r=Ns(t.targetEdge),o=r.positiveEdge,i=r.negativeEdge,a=_s(n,t.targetEdge),s=new gs(e/2,t.elementRectangle.width-e/2,e/2,t.elementRectangle.height-e/2),u=new gs(0,e,0,e);return Is(u=Ps(u=Ss(u,-1*t.targetEdge,-e/2),-1*t.targetEdge,a-Cs(o,t.elementRectangle)),s,o)?Is(u,s,i)||(u=Ts(u,s,i)):u=Ts(u,s,o),u}function Us(e){var t=e.getBoundingClientRect();return new gs(t.left,t.right,t.top,t.bottom)}function Hs(e){return new gs(e.left,e.right,e.top,e.bottom)}function Ws(e,t,n,r,o){var i=0,a=ys[t],s=o?-1*a.targetEdge:a.targetEdge;return(i=s===fs.top?ks(e,a.targetEdge)-r.top-n:s===fs.bottom?r.bottom-ks(e,a.targetEdge)-n:r.bottom-e.top-n)>0?i:r.height}function Vs(e,t,n,r){var o=e.gapSpace?e.gapSpace:0,i=function(e,t){var n;if(t){if(t.preventDefault){var r=t;n=new gs(r.clientX,r.clientX,r.clientY,r.clientY)}else if(t.getBoundingClientRect)n=Us(t);else{var o=t;n=new gs(o.x,o.x,o.y,o.y)}if(!bs(n,e))for(var i=0,a=ws(n,e);i0&&n>t&&(e=n-t>1)}this.state.needsVerticalScrollBar!==e&&this.setState({needsVerticalScrollBar:e})}},t.defaultProps={shouldRestoreFocus:!0},t}(r.Component),Qs=(($s={})[fs.top]=dr.slideUpIn10,$s[fs.bottom]=dr.slideDownIn10,$s[fs.left]=dr.slideLeftIn10,$s[fs.right]=dr.slideRightIn10,$s),Js=fo({disableCaching:!0}),Xs=0,eu=0,tu={opacity:0,filter:"opacity(0)"},nu=["role","aria-roledescription"],ru=function(e){function t(t){var n=e.call(this,t)||this;return n._hostElement=r.createRef(),n._calloutElement=r.createRef(),n._hasListeners=!1,n._disposables=[],n.dismiss=function(e){var t=n.props.onDismiss;t&&t(e)},n._dismissOnScroll=function(e){var t=n.props.preventDismissOnScroll;n.state.positions&&!t&&n._dismissOnClickOrScroll(e)},n._dismissOnResize=function(e){n.props.preventDismissOnResize||n.dismiss(e)},n._dismissOnLostFocus=function(e){n.props.preventDismissOnLostFocus||n._dismissOnClickOrScroll(e)},n._setInitialFocus=function(){n.props.setInitialFocus&&!n._didSetInitialFocus&&n.state.positions&&n._calloutElement.current&&(n._didSetInitialFocus=!0,n._async.requestAnimationFrame((function(){return Ca(n._calloutElement.current)}),n._calloutElement.current))},n._onComponentDidMount=function(){n._addListeners(),n.props.onLayerMounted&&n.props.onLayerMounted(),n._updateAsyncPosition(),n._setHeightOffsetEveryFrame()},n._async=new Fo(n),n._didSetInitialFocus=!1,n.state={positions:void 0,slideDirectionalClassName:void 0,calloutElementRect:void 0,heightOffset:0},n._positionAttempts=0,n}return ae(t,e),t.prototype.componentDidUpdate=function(){this.props.hidden?this._hasListeners&&this._removeListeners():(this._setInitialFocus(),this._hasListeners||this._addListeners(),this._updateAsyncPosition())},t.prototype.shouldComponentUpdate=function(e,t){return(!this.props.hidden||!e.hidden)&&(!zr(this.props,e)||!zr(this.state,t))},t.prototype.componentWillMount=function(){this._setTargetWindowAndElement(this._getTarget())},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._disposables.forEach((function(e){return e()}))},t.prototype.componentWillUpdate=function(e){var t=this._getTarget(e);(t!==this._getTarget()||"string"==typeof t||t instanceof String)&&!this._blockResetHeight&&(this._maxHeight=void 0,this._setTargetWindowAndElement(t)),e.gapSpace===this.props.gapSpace&&this.props.beakWidth===e.beakWidth||(this._maxHeight=void 0),e.finalHeight!==this.props.finalHeight&&this._setHeightOffsetEveryFrame(),e.hidden||e.hidden===this.props.hidden||(this._maxHeight=void 0,this._setTargetWindowAndElement(t),this.setState({positions:void 0}),this._didSetInitialFocus=!1,this._bounds=void 0),this._blockResetHeight=!1},t.prototype.componentDidMount=function(){this.props.hidden||this._onComponentDidMount()},t.prototype.render=function(){if(!this._targetWindow)return null;var e=this.props.target,t=this.props,n=t.styles,o=t.style,i=t.ariaLabel,a=t.ariaDescribedBy,s=t.ariaLabelledBy,u=t.className,l=t.isBeakVisible,c=t.children,f=t.beakWidth,d=t.calloutWidth,p=t.calloutMaxWidth,h=t.finalHeight,m=t.hideOverflow,g=void 0===m?!!h:m,v=t.backgroundColor,y=t.calloutMaxHeight,b=t.onScroll,w=t.shouldRestoreFocus,k=void 0===w||w;e=this._getTarget();var x=this.state.positions,_=this._getMaxHeight()?this._getMaxHeight()+this.state.heightOffset:void 0,E=y&&_&&y<_?y:_,C=g,A=l&&!!e;this._classNames=Js(n,{theme:this.props.theme,className:u,overflowYHidden:C,calloutWidth:d,positions:x,beakWidth:f,backgroundColor:v,calloutMaxWidth:p});var S=se({},o,{maxHeight:E},C&&{overflowY:"hidden"}),T=this.props.hidden?{visibility:"hidden"}:void 0;return r.createElement("div",{ref:this._hostElement,className:this._classNames.container,style:T},r.createElement("div",se({},$r(this.props,Yr,nu),{className:wo(this._classNames.root,x&&x.targetEdge&&Qs[x.targetEdge]),style:x?x.elementPosition:tu,tabIndex:-1,ref:this._calloutElement}),A&&r.createElement("div",{className:this._classNames.beak,style:this._getBeakPosition()}),A&&r.createElement("div",{className:this._classNames.beakCurtain}),r.createElement(Gs,se({},$r(this.props,nu),{ariaLabel:i,ariaDescribedBy:a,ariaLabelledBy:s,className:this._classNames.calloutMain,onDismiss:this.dismiss,onScroll:b,shouldRestoreFocus:k,style:S}),c)))},t.prototype._dismissOnClickOrScroll=function(e){var t=e.target,n=this._hostElement.current&&!Ea(this._hostElement.current,t);(!this._target&&n||e.target!==this._targetWindow&&n&&(this._target.stopPropagation||!this._target||t!==this._target&&!Ea(this._target,t)))&&this.dismiss(e)},t.prototype._addListeners=function(){var e=this;this._async.setTimeout((function(){e._disposables.push(Wa(e._targetWindow,"scroll",e._dismissOnScroll,!0),Wa(e._targetWindow,"resize",e._dismissOnResize,!0),Wa(e._targetWindow.document.documentElement,"focus",e._dismissOnLostFocus,!0),Wa(e._targetWindow.document.documentElement,"click",e._dismissOnLostFocus,!0)),e._hasListeners=!0}),0)},t.prototype._removeListeners=function(){this._disposables.forEach((function(e){return e()})),this._disposables=[],this._hasListeners=!1},t.prototype._updateAsyncPosition=function(){var e=this;this._async.requestAnimationFrame((function(){return e._updatePosition()}),this._calloutElement.current)},t.prototype._getBeakPosition=function(){var e=this.state.positions,t=se({},e&&e.beakPosition?e.beakPosition.elementPosition:null);return t.top||t.bottom||t.left||t.right||(t.left=eu,t.top=Xs),t},t.prototype._updatePosition=function(){this._setTargetWindowAndElement(this._getTarget());var e=this.state.positions,t=this._hostElement.current,n=this._calloutElement.current,r=!!this.props.target;if(t&&n&&(!r||this._target)){var o=void 0;(o=Br(o,this.props)).bounds=this._getBounds(),o.target=this._target;var i=this.props.finalHeight?Ys(o,t,n,e):function(e,t,n,r){return Zs(e,t,n,r)}(o,t,n,e);!e&&i||e&&i&&!this._arePositionsEqual(e,i)&&this._positionAttempts<5?(this._positionAttempts++,this.setState({positions:i})):this._positionAttempts>0&&(this._positionAttempts=0,this.props.onPositioned&&this.props.onPositioned(this.state.positions))}},t.prototype._getBounds=function(){if(!this._bounds){var e=this.props.bounds;e||(e={top:0+this.props.minPagePadding,left:0+this.props.minPagePadding,right:this._targetWindow.innerWidth-this.props.minPagePadding,bottom:this._targetWindow.innerHeight-this.props.minPagePadding,width:this._targetWindow.innerWidth-2*this.props.minPagePadding,height:this._targetWindow.innerHeight-2*this.props.minPagePadding}),this._bounds=e}return this._bounds},t.prototype._getMaxHeight=function(){var e=this;if(!this._maxHeight)if(this.props.directionalHintFixed&&this._target){var t=this.props.isBeakVisible?this.props.beakWidth:0,n=(this.props.gapSpace?this.props.gapSpace:0)+t+2;this._async.requestAnimationFrame((function(){e._target&&(e._maxHeight=function(e,t,n,r,o){void 0===n&&(n=0);var i=e,a=e,s=e,u=r?Hs(r):new gs(0,window.innerWidth-Ka(),0,window.innerHeight);return Ws(i.stopPropagation?new gs(i.clientX,i.clientX,i.clientY,i.clientY):void 0!==s.x&&void 0!==s.y?new gs(s.x,s.x,s.y,s.y):Us(a),t,n,u,o)}(e._target,e.props.directionalHint,n,e._getBounds(),e.props.coverTarget),e._blockResetHeight=!0,e.forceUpdate())}),this._target)}else this._maxHeight=this._getBounds().height-2;return this._maxHeight},t.prototype._arePositionsEqual=function(e,t){return this._comparePositions(e.elementPosition,t.elementPosition)&&this._comparePositions(e.beakPosition.elementPosition,t.beakPosition.elementPosition)},t.prototype._comparePositions=function(e,t){for(var n in t)if(t.hasOwnProperty(n)){var r=e[n],o=t[n];if(void 0===r||void 0===o)return!1;if(r.toFixed(2)!==o.toFixed(2))return!1}return!0},t.prototype._setTargetWindowAndElement=function(e){var t=this._calloutElement.current;if(e)if("string"==typeof e){var n=an(t);this._target=n?n.querySelector(e):null,this._targetWindow=$e(t)}else if(e.stopPropagation)this._targetWindow=$e(e.toElement),this._target=e;else if(e.getBoundingClientRect){var r=e;this._targetWindow=$e(r),this._target=e}else this._targetWindow=$e(t),this._target=e;else this._targetWindow=$e(t)},t.prototype._setHeightOffsetEveryFrame=function(){var e=this;this._calloutElement.current&&this.props.finalHeight&&(this._setHeightOffsetTimer=this._async.requestAnimationFrame((function(){var t=e._calloutElement.current&&e._calloutElement.current.lastChild;if(t){var n=t.scrollHeight-t.offsetHeight;e.setState({heightOffset:e.state.heightOffset+n}),t.offsetHeight-1&&o._virtual.children.splice(i,1)}n._virtual.parent=r||void 0,r&&(r._virtual||(r._virtual={children:[]}),r._virtual.children.push(n))}(o,n._rootRef.current),n.props.insertFirst?r.insertBefore(o,r.firstChild):r.appendChild(o),n.setState({hostId:e,layerElement:o},(function(){var e=n.props,t=e.onLayerDidMount,r=e.onLayerMounted;r&&r(),t&&t()}))}},n.state={},n}return ae(t,e),t.prototype.componentDidMount=function(){var e=this.props.hostId;this._createLayerElement(),e&&function(e,t){hu[e]||(hu[e]=[]),hu[e].push(t)}(e,this._createLayerElement)},t.prototype.render=function(){var e=this.state.layerElement,t=this._getClassNames(),n=this.props.eventBubblingEnabled;return r.createElement("span",{className:"ms-layer",ref:this._rootRef},e&&os.createPortal(r.createElement(fu,se({},!n&&function(){mu||(mu={},["onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOver","onMouseOut","onMouseUp","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onInvalid","onSubmit"].forEach((function(e){return mu[e]=yu})));return mu}(),{className:t.content}),this.props.children),e))},t.prototype.componentDidUpdate=function(){this.props.hostId!==this.state.hostId&&this._createLayerElement()},t.prototype.componentWillUnmount=function(){var e=this.props.hostId;this._removeLayerElement(),e&&function(e,t){if(hu[e]){var n=hu[e].indexOf(t);n>=0&&(hu[e].splice(n,1),0===hu[e].length&&delete hu[e])}}(e,this._createLayerElement)},t.prototype._removeLayerElement=function(){var e=this.props.onLayerWillUnmount,t=this.state.layerElement;if(e&&e(),t&&t.parentNode){var n=t.parentNode;n&&n.removeChild(t)}},t.prototype._getClassNames=function(){var e=this.props,t=e.className,n=e.styles,r=e.theme;return gu(n,{theme:r,className:t,isNotHost:!this.props.hostId})},t.prototype._getHost=function(){var e=this.props.hostId,t=an(this._rootRef.current);if(t){if(e)return t.getElementById(e);var n=pu;return n?t.querySelector(n):t.body}},t.defaultProps={onLayerDidMount:function(){},onLayerWillUnmount:function(){}},t=le([du("Layer",["theme","hostId"])],t)}(r.Component),yu=function(e){e.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==e.type&&"mouseleave"!==e.type&&e.stopPropagation()};var bu={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},wu=oo(vu,(function(e){var t=e.className,n=e.isNotHost,r=e.theme,o=Gn(bu,r);return{root:[o.root,r.fonts.medium,n&&[o.rootNoHost,{position:"fixed",zIndex:Dn.Layer,top:0,left:0,bottom:0,right:0,visibility:"hidden"}],t],content:[o.content,{visibility:"visible"}]}}),void 0,{scope:"Layer",fields:["hostId","theme","styles"]}),ku=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ae(t,e),t.prototype.render=function(){var e=this.props,t=e.layerProps,n=ue(e,["layerProps"]),o=r.createElement(au,se({},n));return this.props.doNotLayer?o:r.createElement(wu,se({},t),o)},t}(r.Component),xu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.openSubMenu=function(){var e=t.props,n=e.item,r=e.openSubMenu,o=e.getSubmenuTarget;if(o){var i=o();ns(n)&&r&&i&&r(n,i)}},t.dismissSubMenu=function(){var e=t.props,n=e.item,r=e.dismissSubMenu;ns(n)&&r&&r()},t.dismissMenu=function(e){var n=t.props.dismissMenu;n&&n(void 0,e)},t}return ae(t,e),t.prototype.render=function(){var e=this.props,t=e.item,n=e.classNames;return r.createElement("div",{className:t.split?n.linkContentMenu:n.linkContent},function(e){var t=e.onCheckmarkClick,n=e.item,o=e.classNames,i=ts(n);if(t){return r.createElement(_o,{iconName:i?"CheckMark":"",className:o.checkmarkIcon,onClick:function(e){return t(n,e)}})}return null}(this.props),function(e){var t=e.item,n=e.hasIcons,o=e.classNames,i=t.iconProps;return n?t.onRenderIcon?t.onRenderIcon(e):r.createElement(_o,se({},i,{className:o.icon})):null}(this.props),function(e){var t=e.item,n=e.classNames;return t.text||t.name?r.createElement("span",{className:n.label},t.text||t.name):null}(this.props),function(e){var t=e.item,n=e.classNames;return t.secondaryText?r.createElement("span",{className:n.secondaryText},t.secondaryText):null}(this.props),function(e){var t=e.item,n=e.classNames;return ns(t)?r.createElement(_o,se({iconName:Ra()?"ChevronLeft":"ChevronRight"},t.submenuIconProps,{className:n.subMenuIcon})):null}(this.props))},t}(Bo),_u=Zn((function(e){return Ve({wrapper:{display:"inline-flex",height:"100%",alignItems:"center"},divider:{width:1,height:"100%",backgroundColor:e.palette.neutralTertiaryAlt}})})),Eu=vn(0,639),Cu=Zn((function(){return{selectors:(e={},e[gn]={backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText",MsHighContrastAdjust:"none"},e)};var e})),Au=Zn((function(e){var t,n,r,o,i,a,s=e.semanticColors,u=e.fonts,l=s.menuItemBackgroundHovered,c=s.menuItemBackgroundChecked,f=s.bodyDivider;return oe({item:[u.medium,{color:s.bodyText,position:"relative",boxSizing:"border-box"}],divider:{display:"block",height:"1px",backgroundColor:f,position:"relative"},root:[Fn(e),u.medium,{color:s.bodyText,backgroundColor:"transparent",border:"none",width:"100%",height:"32px",lineHeight:"32px",display:"block",cursor:"pointer",padding:"0px 8px 0 4px",textAlign:"left"}],rootDisabled:{color:s.disabledBodyText,cursor:"default",pointerEvents:"none",selectors:(t={},t[gn]={color:"GrayText",opacity:1},t)},rootHovered:se({backgroundColor:l},Cu()),rootFocused:se({backgroundColor:l},Cu()),rootChecked:se({},Cu()),rootPressed:se({backgroundColor:c},Cu()),rootExpanded:se({backgroundColor:c,color:s.bodyTextChecked},Cu()),linkContent:{whiteSpace:"nowrap",height:"inherit",display:"flex",alignItems:"center",maxWidth:"100%"},anchorLink:{padding:"0px 8px 0 4px",textRendering:"auto",color:"inherit",letterSpacing:"normal",wordSpacing:"normal",textTransform:"none",textIndent:"0px",textShadow:"none",textDecoration:"none",boxSizing:"border-box"},label:{margin:"0 4px",verticalAlign:"middle",display:"inline-block",flexGrow:"1",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},secondaryText:{color:e.palette.neutralSecondary,paddingLeft:"20px",textAlign:"right"},icon:{display:"inline-block",minHeight:"1px",maxHeight:"32px",width:"14px",margin:"0 4px",verticalAlign:"middle",flexShrink:"0"},iconColor:{color:s.menuIcon,selectors:(n={},n[gn]={color:"inherit"},n["$root:hover &"]={selectors:(r={},r[gn]={color:"HighlightText"},r)},n["$root:focus &"]={selectors:(o={},o[gn]={color:"HighlightText"},o)},n)},iconDisabled:{color:s.disabledBodyText},checkmarkIcon:{color:s.bodySubtext,selectors:(i={},i[gn]={color:"HighlightText"},i)},subMenuIcon:{height:"32px",lineHeight:"32px",textAlign:"center",display:"inline-block",verticalAlign:"middle",flexShrink:"0",fontSize:Qt.small,selectors:(a={},a[Eu]={fontSize:Qt.icon},a)},splitButtonFlexContainer:[Fn(e),{display:"flex",height:"32px",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"}]})})),Su=vn(0,639),Tu=Zn((function(e){return Ve(_u(e),{wrapper:{position:"absolute",right:28,selectors:(t={},t[Su]={right:32},t)},divider:{height:16,width:1}});var t})),Iu={item:"ms-ContextualMenu-item",divider:"ms-ContextualMenu-divider",root:"ms-ContextualMenu-link",isChecked:"is-checked",isExpanded:"is-expanded",isDisabled:"is-disabled",linkContent:"ms-ContextualMenu-linkContent",linkContentMenu:"ms-ContextualMenu-linkContent",icon:"ms-ContextualMenu-icon",iconColor:"ms-ContextualMenu-iconColor",checkmarkIcon:"ms-ContextualMenu-checkmarkIcon",subMenuIcon:"ms-ContextualMenu-submenuIcon",label:"ms-ContextualMenu-itemText",secondaryText:"ms-ContextualMenu-secondaryText"},Ou=Zn((function(e,t,n,r,o,i,a,s,u,l,c,f){var d,p,h,m,g=Au(e),v=Gn(Iu,e);return Ve({item:[v.item,g.item,a],divider:[v.divider,g.divider,s],root:[v.root,g.root,r&&[v.isChecked,g.rootChecked],o&&g.anchorLink,n&&[v.isExpanded,g.rootExpanded],t&&[v.isDisabled,g.rootDisabled],!t&&!n&&[{selectors:(d={":hover":g.rootHovered,":active":g.rootPressed},d["."+Ln+" &:focus, ."+Ln+" &:focus:hover"]=g.rootFocused,d["."+Ln+" &:hover"]={background:"inherit;"},d)}],f],splitPrimary:[g.root,r&&["is-checked",g.rootChecked],(t||c)&&["is-disabled",g.rootDisabled],!(t||c)&&!r&&[{selectors:(p={":hover":g.rootHovered,":hover ~ $splitMenu":g.rootHovered,":active":g.rootPressed},p["."+Ln+" &:focus, ."+Ln+" &:focus:hover"]=g.rootFocused,p["."+Ln+" &:hover"]={background:"inherit;"},p)}]],splitMenu:[g.root,{flexBasis:"0",padding:"0 8px",minWidth:28},n&&["is-expanded",g.rootExpanded],t&&["is-disabled",g.rootDisabled],!t&&!n&&[{selectors:(h={":hover":g.rootHovered,":active":g.rootPressed},h["."+Ln+" &:focus, ."+Ln+" &:focus:hover"]=g.rootFocused,h["."+Ln+" &:hover"]={background:"inherit;"},h)}]],anchorLink:g.anchorLink,linkContent:[v.linkContent,g.linkContent],linkContentMenu:[v.linkContentMenu,g.linkContent,{justifyContent:"center"}],icon:[v.icon,i&&g.iconColor,g.icon,u,t&&[v.isDisabled,g.iconDisabled]],iconColor:g.iconColor,checkmarkIcon:[v.checkmarkIcon,i&&g.checkmarkIcon,g.icon,u],subMenuIcon:[v.subMenuIcon,g.subMenuIcon,l],label:[v.label,g.label],secondaryText:[v.secondaryText,g.secondaryText],splitContainer:[g.splitButtonFlexContainer,{alignItems:"flex-start"},!t&&!r&&[{selectors:(m={},m["."+Ln+" &:focus, ."+Ln+" &:focus:hover"]=g.rootFocused,m)}]]})})),Pu=function(e){var t=e.theme,n=e.disabled,r=e.expanded,o=e.checked,i=e.isAnchorLink,a=e.knownIcon,s=e.itemClassName,u=e.dividerClassName,l=e.iconClassName,c=e.subMenuClassName,f=e.primaryDisabled,d=e.className;return Ou(t,n,r,o,i,a,s,u,l,c,f,d)},Mu=oo(xu,Pu,void 0,{scope:"ContextualMenuItem"}),Nu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onItemMouseEnter=function(e){var n=t.props,r=n.item,o=n.onItemMouseEnter;o&&o(r,e,e.currentTarget)},t._onItemClick=function(e){var n=t.props,r=n.item,o=n.onItemClickBase;o&&o(r,e,e.currentTarget)},t._onItemMouseLeave=function(e){var n=t.props,r=n.item,o=n.onItemMouseLeave;o&&o(r,e)},t._onItemKeyDown=function(e){var n=t.props,r=n.item,o=n.onItemKeyDown;o&&o(r,e)},t._onItemMouseMove=function(e){var n=t.props,r=n.item,o=n.onItemMouseMove;o&&o(r,e,e.currentTarget)},t._getSubMenuId=function(e){var n=t.props.getSubMenuId;if(n)return n(e)},t._getSubmenuTarget=function(){},t}return ae(t,e),t.prototype.shouldComponentUpdate=function(e){return!zr(e,this.props)},t}(Bo),Du=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._anchor=r.createRef(),t._getSubmenuTarget=function(){return t._anchor.current?t._anchor.current:void 0},t._onItemClick=function(e){var n=t.props,r=n.item,o=n.onItemClick;o&&o(r,e)},t}return ae(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.item,o=t.classNames,i=t.index,a=t.focusableElementIndex,s=t.totalItemCount,u=t.hasCheckmarks,l=t.hasIcons,c=t.contextualMenuItemAs,f=void 0===c?Mu:c,d=t.expandedMenuItemKey,p=t.onItemClick,h=t.openSubMenu,m=t.dismissSubMenu,g=t.dismissMenu,v=n.rel;n.target&&"_blank"===n.target.toLowerCase()&&(v=v||"nofollow noopener noreferrer");var y=this._getSubMenuId(n),b=ns(n),w=$r(n,Kr),k=rs(n),x=n.itemProps,_=n.keytipProps;return _&&b&&(_=se({},_,{hasMenu:!0})),r.createElement("div",null,r.createElement(Yo,{keytipProps:n.keytipProps,ariaDescribedBy:w["aria-describedby"],disabled:k},(function(t){return r.createElement("a",se({},w,t,{ref:e._anchor,href:n.href,target:n.target,rel:v,className:o.root,role:"menuitem","aria-owns":n.key===d?y:void 0,"aria-haspopup":b||void 0,"aria-expanded":b?n.key===d:void 0,"aria-posinset":a+1,"aria-setsize":s,"aria-disabled":rs(n),style:n.style,onClick:e._onItemClick,onMouseEnter:e._onItemMouseEnter,onMouseLeave:e._onItemMouseLeave,onMouseMove:e._onItemMouseMove,onKeyDown:b?e._onItemKeyDown:void 0}),r.createElement(f,se({componentRef:n.componentRef,item:n,classNames:o,index:i,onCheckmarkClick:u&&p?p:void 0,hasIcons:l,openSubMenu:h,dismissSubMenu:m,dismissMenu:g,getSubmenuTarget:e._getSubmenuTarget},x)))})))},t}(Nu),Lu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._btn=r.createRef(),t._getSubmenuTarget=function(){return t._btn.current?t._btn.current:void 0},t}return ae(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.item,o=t.classNames,i=t.index,a=t.focusableElementIndex,s=t.totalItemCount,u=t.hasCheckmarks,l=t.hasIcons,c=t.contextualMenuItemAs,f=void 0===c?Mu:c,d=t.expandedMenuItemKey,p=t.onItemMouseDown,h=t.onItemClick,m=t.openSubMenu,g=t.dismissSubMenu,v=t.dismissMenu,y=this._getSubMenuId(n),b=ts(n),w=null!==b,k=w?"menuitemcheckbox":"menuitem",x=ns(n),_=n.itemProps,E=n.ariaLabel,C=$r(n,Zr);delete C.disabled;var A={className:o.root,onClick:this._onItemClick,onKeyDown:x?this._onItemKeyDown:void 0,onMouseEnter:this._onItemMouseEnter,onMouseLeave:this._onItemMouseLeave,onMouseDown:function(e){return p?p(n,e):void 0},onMouseMove:this._onItemMouseMove,href:n.href,title:n.title,"aria-label":E,"aria-haspopup":x||void 0,"aria-owns":n.key===d?y:void 0,"aria-expanded":x?n.key===d:void 0,"aria-checked":w?!!b:void 0,"aria-posinset":a+1,"aria-setsize":s,"aria-disabled":rs(n),role:n.role||k,style:n.style},S=n.keytipProps;return S&&x&&(S=se({},S,{hasMenu:!0})),r.createElement(Yo,{keytipProps:S,ariaDescribedBy:C["aria-describedby"],disabled:rs(n)},(function(t){return r.createElement("button",se({ref:e._btn},C,A,t),r.createElement(f,se({componentRef:n.componentRef,item:n,classNames:o,index:i,onCheckmarkClick:u&&h?h:void 0,hasIcons:l,openSubMenu:m,dismissSubMenu:g,dismissMenu:v,getSubmenuTarget:e._getSubmenuTarget},_)))}))},t}(Nu),Ru=fo(),ju=oo((function(e){var t=e.styles,n=e.theme,o=e.getClassNames,i=e.className,a=Ru(t,{theme:n,getClassNames:o,className:i});return r.createElement("span",{className:a.wrapper},r.createElement("span",{className:a.divider}))}),(function(e){var t=e.theme,n=e.getClassNames,r=e.className;if(!t)throw new Error("Theme is undefined or null.");if(n){var o=n(t);return{wrapper:[o.wrapper],divider:[o.divider]}}return{wrapper:[{display:"inline-flex",height:"100%",alignItems:"center"},r],divider:[{width:1,height:"100%",backgroundColor:t.palette.neutralTertiaryAlt}]}}),void 0,{scope:"VerticalDivider"}),Fu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onItemKeyDown=function(e){var n=t.props,r=n.item,o=n.onItemKeyDown;e.which===wn?(t._executeItemClick(e),e.preventDefault(),e.stopPropagation()):o&&o(r,e)},t._getSubmenuTarget=function(){return t._splitButton},t._onItemMouseEnterPrimary=function(e){var n=t.props,r=n.item,o=n.onItemMouseEnter;o&&o(se({},r,{subMenuProps:void 0,items:void 0}),e,t._splitButton)},t._onItemMouseEnterIcon=function(e){var n=t.props,r=n.item,o=n.onItemMouseEnter;o&&o(r,e,t._splitButton)},t._onItemMouseMovePrimary=function(e){var n=t.props,r=n.item,o=n.onItemMouseMove;o&&o(se({},r,{subMenuProps:void 0,items:void 0}),e,t._splitButton)},t._onItemMouseMoveIcon=function(e){var n=t.props,r=n.item,o=n.onItemMouseMove;o&&o(r,e,t._splitButton)},t._onIconItemClick=function(e){var n=t.props,r=n.item,o=n.onItemClickBase;o&&o(r,e,t._splitButton?t._splitButton:e.currentTarget)},t._executeItemClick=function(e){var n=t.props,r=n.item,o=n.executeItemClick,i=n.onItemClick;if(!r.disabled&&!r.isDisabled)return t._processingTouch&&i?i(r,e):void(o&&o(r,e))},t._onTouchStart=function(e){t._splitButton&&!("onpointerdown"in t._splitButton)&&t._handleTouchAndPointerEvent(e)},t._onPointerDown=function(e){"touch"===e.pointerType&&(t._handleTouchAndPointerEvent(e),e.preventDefault(),e.stopImmediatePropagation())},t}return ae(t,e),t.prototype.componentDidMount=function(){this._splitButton&&"onpointerdown"in this._splitButton&&this._events.on(this._splitButton,"pointerdown",this._onPointerDown,!0)},t.prototype.render=function(){var e=this,t=this.props,n=t.item,o=t.classNames,i=t.index,a=t.focusableElementIndex,s=t.totalItemCount,u=t.hasCheckmarks,l=t.hasIcons,c=t.onItemMouseLeave,f=t.expandedMenuItemKey,d=ns(n),p=n.keytipProps;return p&&(p=se({},p,{hasMenu:!0})),r.createElement(Yo,{keytipProps:p,disabled:rs(n)},(function(t){return r.createElement("div",{"data-ktp-target":t["data-ktp-target"],ref:function(t){return e._splitButton=t},role:"menuitem","aria-label":n.ariaLabel,className:o.splitContainer,"aria-disabled":rs(n),"aria-expanded":d?n.key===f:void 0,"aria-haspopup":!0,"aria-describedby":Wo(n.ariaDescription,t["aria-describedby"]),"aria-checked":n.isChecked||n.checked,"aria-posinset":a+1,"aria-setsize":s,onMouseEnter:e._onItemMouseEnterPrimary,onMouseLeave:c?c.bind(e,se({},n,{subMenuProps:null,items:null})):void 0,onMouseMove:e._onItemMouseMovePrimary,onKeyDown:e._onItemKeyDown,onClick:e._executeItemClick,onTouchStart:e._onTouchStart,tabIndex:0,"data-is-focusable":!0,"aria-roledescription":n["aria-roledescription"]},e._renderSplitPrimaryButton(n,o,i,u,l),e._renderSplitDivider(n),e._renderSplitIconButton(n,o,i,t))}))},t.prototype._renderSplitPrimaryButton=function(e,t,n,o,i){var a=this.props,s=a.contextualMenuItemAs,u=void 0===s?Mu:s,l=a.onItemClick,c={key:e.key,disabled:rs(e)||e.primaryDisabled,name:e.name,text:e.text||e.name,className:t.splitPrimary,canCheck:e.canCheck,isChecked:e.isChecked,checked:e.checked,iconProps:e.iconProps,"data-is-focusable":!1,"aria-hidden":!0},f=e.itemProps;return r.createElement("button",se({},$r(c,Zr)),r.createElement(u,se({"data-is-focusable":!1,item:c,classNames:t,index:n,onCheckmarkClick:o&&l?l:void 0,hasIcons:i},f)))},t.prototype._renderSplitDivider=function(e){var t=e.getSplitButtonVerticalDividerClassNames||Tu;return r.createElement(ju,{getClassNames:t})},t.prototype._renderSplitIconButton=function(e,t,n,o){var i=this.props,a=i.contextualMenuItemAs,s=void 0===a?Mu:a,u=i.onItemMouseLeave,l=i.onItemMouseDown,c=i.openSubMenu,f=i.dismissSubMenu,d=i.dismissMenu,p={onClick:this._onIconItemClick,disabled:rs(e),className:t.splitMenu,subMenuProps:e.subMenuProps,submenuIconProps:e.submenuIconProps,split:!0,key:e.key},h=se({},$r(p,Zr),{onMouseEnter:this._onItemMouseEnterIcon,onMouseLeave:u?u.bind(this,e):void 0,onMouseDown:function(t){return l?l(e,t):void 0},onMouseMove:this._onItemMouseMoveIcon,"data-is-focusable":!1,"data-ktp-execute-target":o["data-ktp-execute-target"],"aria-hidden":!0}),m=e.itemProps;return r.createElement("button",se({},h),r.createElement(s,se({componentRef:e.componentRef,item:p,classNames:t,index:n,hasIcons:!1,openSubMenu:c,dismissSubMenu:f,dismissMenu:d,getSubmenuTarget:this._getSubmenuTarget},m)))},t.prototype._handleTouchAndPointerEvent=function(e){var t=this,n=this.props.onTap;n&&n(e),this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout((function(){t._processingTouch=!1,t._lastTouchTimeoutId=void 0}),500)},t}(Nu),zu=fo({disableCaching:!0}),Bu=fo({disableCaching:!0});function Uu(e){return e.subMenuProps?e.subMenuProps.items:e.items}var Hu,Wu=function(e){function t(t){var n=e.call(this,t)||this;return n._mounted=!1,n.dismiss=function(e,t){var r=n.props.onDismiss;r&&r(e,t)},n._onRenderMenuList=function(e,t){var o=0;return r.createElement("ul",{className:n._classNames.list,onKeyDown:n._onKeyDown,onKeyUp:n._onKeyUp,role:"menu"},e.items.map((function(t,r){var i=n._renderMenuItem(t,r,o,e.totalItemCount,e.hasCheckmarks,e.hasIcons);if(t.itemType!==aa.Divider&&t.itemType!==aa.Header){var a=t.customOnRenderListLength?t.customOnRenderListLength:1;o+=a}return i})))},n._onKeyDown=function(e){n._lastKeyDownWasAltOrMeta=n._isAltOrMeta(e);var t=e.which===xn&&(Xa()||es());return n._keyHandler(e,n._shouldHandleKeyDown,t)},n._shouldHandleKeyDown=function(e){return e.which===xn||n._shouldCloseSubMenu(e)||e.which===In&&(e.altKey||e.metaKey)},n._onMenuFocusCapture=function(e){n.props.delayUpdateFocusOnHover&&(n._shouldUpdateFocusOnMouseEvent=!0)},n._onKeyUp=function(e){return n._keyHandler(e,n._shouldHandleKeyUp,!0)},n._shouldHandleKeyUp=function(e){var t=n._lastKeyDownWasAltOrMeta&&n._isAltOrMeta(e);return n._lastKeyDownWasAltOrMeta=!1,!!t&&!(es()||Xa())},n._keyHandler=function(e,t,r){var o=!1;return t(e)&&(n._isFocusingPreviousElement=!0,e.preventDefault(),e.stopPropagation(),n.dismiss(e,r),o=!0),o},n._shouldCloseSubMenu=function(e){var t=Ra()?On:Tn;return!(e.which!==t||!n.props.isSubMenu)&&(n._adjustedFocusZoneProps.direction===ka.vertical||!!n._adjustedFocusZoneProps.checkForNoWrap&&!Ma(e.target,"data-no-horizontal-wrap"))},n._onMenuKeyDown=function(e){if(!n._onKeyDown(e)&&n._host){var t,r,o=!(!e.altKey&&!e.metaKey),i=e.which===In,a=e.which===Pn;if(!o&&(i||a)){var s=i?(t=n._host,r=n._host.lastChild,Aa(t,r,!0,!1,!0,!0)):function(e,t,n){return Sa(e,t,!0,!1,!1,n)}(n._host,n._host.firstChild,!0);s&&(s.focus(),e.preventDefault(),e.stopPropagation())}}},n._onScroll=function(){n._isScrollIdle||void 0===n._scrollIdleTimeoutId?n._isScrollIdle=!1:(n._async.clearTimeout(n._scrollIdleTimeoutId),n._scrollIdleTimeoutId=void 0),n._scrollIdleTimeoutId=n._async.setTimeout((function(){n._isScrollIdle=!0}),250)},n._onItemMouseEnterBase=function(e,t,r){n._shouldIgnoreMouseEvent()||n._updateFocusOnMouseEvent(e,t,r)},n._onItemMouseMoveBase=function(e,t,r){var o=t.currentTarget;n._shouldUpdateFocusOnMouseEvent&&(n._gotMouseMove=!0,n._isScrollIdle&&void 0===n._enterTimerId&&o!==n._targetWindow.document.activeElement&&n._updateFocusOnMouseEvent(e,t,r))},n._onMouseItemLeave=function(e,t){if(!n._shouldIgnoreMouseEvent()&&(void 0!==n._enterTimerId&&(n._async.clearTimeout(n._enterTimerId),n._enterTimerId=void 0),void 0===n.state.expandedMenuItemKey))if(n._host.setActive)try{n._host.setActive()}catch(e){}else n._host.focus()},n._onItemMouseDown=function(e,t){e.onMouseDown&&e.onMouseDown(e,t)},n._onItemClick=function(e,t){n._onItemClickBase(e,t,t.currentTarget)},n._onItemClickBase=function(e,t,r){var o=Uu(e);n._cancelSubMenuTimer(),ns(e)||o&&o.length?e.key!==n.state.expandedMenuItemKey&&(n.setState({expandedByMouseClick:0!==t.nativeEvent.detail||"mouse"===t.nativeEvent.pointerType}),n._onItemSubMenuExpand(e,r)):n._executeItemClick(e,t),t.stopPropagation(),t.preventDefault()},n._onAnchorClick=function(e,t){n._executeItemClick(e,t),t.stopPropagation()},n._executeItemClick=function(e,t){if(!e.disabled&&!e.isDisabled){var r=!1;e.onClick?r=!!e.onClick(t,e):n.props.onItemClick&&(r=!!n.props.onItemClick(t,e)),(r||!t.defaultPrevented)&&n.dismiss(t,!0)}},n._onItemKeyDown=function(e,t){var r=Ra()?Tn:On;e.disabled||t.which!==r&&t.which!==wn&&(t.which!==Pn||!t.altKey&&!t.metaKey)||(n.setState({expandedByMouseClick:!1}),n._onItemSubMenuExpand(e,t.currentTarget),t.preventDefault())},n._cancelSubMenuTimer=function(){void 0!==n._enterTimerId&&(n._async.clearTimeout(n._enterTimerId),n._enterTimerId=void 0)},n._onItemSubMenuExpand=function(e,t){n.state.expandedMenuItemKey!==e.key&&(n.state.expandedMenuItemKey&&n._onSubMenuDismiss(),t.focus(),n.setState({expandedMenuItemKey:e.key,submenuTarget:t}))},n._onSubMenuDismiss=function(e,t){t?n.dismiss(e,t):n._mounted&&n.setState({dismissedMenuItemKey:n.state.expandedMenuItemKey,expandedMenuItemKey:void 0,submenuTarget:void 0})},n._getSubMenuId=function(e){var t=n.state.subMenuId;return e.subMenuProps&&e.subMenuProps.id&&(t=e.subMenuProps.id),t},n._onPointerAndTouchEvent=function(e){n._cancelSubMenuTimer()},n.state={contextualMenuItems:void 0,subMenuId:Wr("ContextualMenu")},n._warnDeprecations({getMenuClassNames:"styles"}),n._isFocusingPreviousElement=!1,n._isScrollIdle=!0,n._shouldUpdateFocusOnMouseEvent=!n.props.delayUpdateFocusOnHover,n._gotMouseMove=!1,n}return ae(t,e),t.prototype.shouldComponentUpdate=function(e,t){return(!this.props.hidden||!e.hidden)&&(!zr(this.props,e)||!zr(this.state,t))},t.prototype.componentWillUpdate=function(e){if(e.target!==this.props.target){var t=e.target;this._setTargetWindowAndElement(t)}e.hidden!==this.props.hidden&&(e.hidden?this._onMenuClosed():(this._onMenuOpened(),this._previousActiveElement=this._targetWindow?this._targetWindow.document.activeElement:null)),e.delayUpdateFocusOnHover!==this.props.delayUpdateFocusOnHover&&(this._shouldUpdateFocusOnMouseEvent=!e.delayUpdateFocusOnHover,this._gotMouseMove=this._shouldUpdateFocusOnMouseEvent&&this._gotMouseMove)},t.prototype.componentWillMount=function(){var e=this.props.target;this._setTargetWindowAndElement(e),this.props.hidden||(this._previousActiveElement=this._targetWindow?this._targetWindow.document.activeElement:null)},t.prototype.componentDidMount=function(){this.props.hidden||this._onMenuOpened(),this._mounted=!0},t.prototype.componentWillUnmount=function(){this._tryFocusPreviousActiveElement(),this.props.onMenuDismissed&&this.props.onMenuDismissed(this.props),this._events.dispose(),this._async.dispose(),this._mounted=!1},t.prototype.render=function(){var e=this,t=this.props.isBeakVisible,n=this.props,o=n.items,i=n.labelElementId,a=n.id,s=n.className,u=n.beakWidth,l=n.directionalHint,c=n.directionalHintForRTL,f=n.alignTargetEdge,d=n.gapSpace,p=n.coverTarget,h=n.ariaLabel,m=n.doNotLayer,g=n.target,v=n.bounds,y=n.useTargetWidth,b=n.useTargetAsMinWidth,w=n.directionalHintFixed,k=n.shouldFocusOnMount,x=n.shouldFocusOnContainer,_=n.title,E=n.styles,C=n.theme,A=n.calloutProps,S=n.onRenderSubMenu,T=void 0===S?this._onRenderSubMenu:S,I=n.onRenderMenuList,O=void 0===I?this._onRenderMenuList:I,P=n.focusZoneProps,M=n.getMenuClassNames;this._classNames=M?M(C,s):zu(E,{theme:C,className:s});var N=function e(t){for(var n=0,r=t;n0){for(var z=0,B=0,U=o;B0?r.createElement("li",{role:"presentation",key:s.key||e.key||"section-"+n},r.createElement("div",{role:"group"},r.createElement("ul",{className:this._classNames.list},s.topDivider&&this._renderSeparator(n,t,!0,!0),u&&this._renderListItem(u,e.key||n,t,e.title),s.items.map((function(e,t){return a._renderMenuItem(e,t,t,s.items.length,o,i)})),s.bottomDivider&&this._renderSeparator(n,t,!1,!0)))):void 0}},t.prototype._renderListItem=function(e,t,n,o){return r.createElement("li",{role:"presentation",title:o,key:t,className:n.item},e)},t.prototype._renderSeparator=function(e,t,n,o){return o||e>0?r.createElement("li",{role:"separator",key:"separator-"+e+(void 0===n?"":n?"-top":"-bottom"),className:t.divider,"aria-hidden":"true"}):null},t.prototype._renderNormalItem=function(e,t,n,r,o,i,a){return e.onRender?e.onRender(se({"aria-posinset":r+1,"aria-setsize":o},e),this.dismiss):e.href?this._renderAnchorMenuItem(e,t,n,r,o,i,a):e.split&&ns(e)?this._renderSplitButton(e,t,n,r,o,i,a):this._renderButtonItem(e,t,n,r,o,i,a)},t.prototype._renderHeaderMenuItem=function(e,t,n,o,i){var a=this.props.contextualMenuItemAs,s=void 0===a?Mu:a,u=e.itemProps,l=u&&$r(u,Yr);return r.createElement("div",se({className:this._classNames.header},l,{style:e.style}),r.createElement(s,se({item:e,classNames:t,index:n,onCheckmarkClick:o?this._onItemClick:void 0,hasIcons:i},u)))},t.prototype._renderAnchorMenuItem=function(e,t,n,o,i,a,s){var u=this.props.contextualMenuItemAs,l=this.state.expandedMenuItemKey;return r.createElement(Du,{item:e,classNames:t,index:n,focusableElementIndex:o,totalItemCount:i,hasCheckmarks:a,hasIcons:s,contextualMenuItemAs:u,onItemMouseEnter:this._onItemMouseEnterBase,onItemMouseLeave:this._onMouseItemLeave,onItemMouseMove:this._onItemMouseMoveBase,onItemMouseDown:this._onItemMouseDown,executeItemClick:this._executeItemClick,onItemClick:this._onAnchorClick,onItemKeyDown:this._onItemKeyDown,getSubMenuId:this._getSubMenuId,expandedMenuItemKey:l,openSubMenu:this._onItemSubMenuExpand,dismissSubMenu:this._onSubMenuDismiss,dismissMenu:this.dismiss})},t.prototype._renderButtonItem=function(e,t,n,o,i,a,s){var u=this.props.contextualMenuItemAs,l=this.state.expandedMenuItemKey;return r.createElement(Lu,{item:e,classNames:t,index:n,focusableElementIndex:o,totalItemCount:i,hasCheckmarks:a,hasIcons:s,contextualMenuItemAs:u,onItemMouseEnter:this._onItemMouseEnterBase,onItemMouseLeave:this._onMouseItemLeave,onItemMouseMove:this._onItemMouseMoveBase,onItemMouseDown:this._onItemMouseDown,executeItemClick:this._executeItemClick,onItemClick:this._onItemClick,onItemClickBase:this._onItemClickBase,onItemKeyDown:this._onItemKeyDown,getSubMenuId:this._getSubMenuId,expandedMenuItemKey:l,openSubMenu:this._onItemSubMenuExpand,dismissSubMenu:this._onSubMenuDismiss,dismissMenu:this.dismiss})},t.prototype._renderSplitButton=function(e,t,n,o,i,a,s){var u=this.props.contextualMenuItemAs,l=this.state.expandedMenuItemKey;return r.createElement(Fu,{item:e,classNames:t,index:n,focusableElementIndex:o,totalItemCount:i,hasCheckmarks:a,hasIcons:s,contextualMenuItemAs:u,onItemMouseEnter:this._onItemMouseEnterBase,onItemMouseLeave:this._onMouseItemLeave,onItemMouseMove:this._onItemMouseMoveBase,onItemMouseDown:this._onItemMouseDown,executeItemClick:this._executeItemClick,onItemClick:this._onItemClick,onItemClickBase:this._onItemClickBase,onItemKeyDown:this._onItemKeyDown,openSubMenu:this._onItemSubMenuExpand,dismissSubMenu:this._onSubMenuDismiss,dismissMenu:this.dismiss,expandedMenuItemKey:l,onTap:this._onPointerAndTouchEvent})},t.prototype._isAltOrMeta=function(e){return e.which===kn||"Meta"===e.key},t.prototype._shouldIgnoreMouseEvent=function(){return!this._isScrollIdle||!this._gotMouseMove},t.prototype._updateFocusOnMouseEvent=function(e,t,n){var r=this,o=n||t.currentTarget,i=this.props.subMenuHoverDelay,a=void 0===i?250:i;e.key!==this.state.expandedMenuItemKey&&(void 0!==this._enterTimerId&&(this._async.clearTimeout(this._enterTimerId),this._enterTimerId=void 0),void 0===this.state.expandedMenuItemKey&&o.focus(),ns(e)?(t.stopPropagation(),this._enterTimerId=this._async.setTimeout((function(){o.focus(),r.setState({expandedByMouseClick:!0}),r._onItemSubMenuExpand(e,o),r._enterTimerId=void 0}),a)):this._enterTimerId=this._async.setTimeout((function(){r._onSubMenuDismiss(t),o.focus(),r._enterTimerId=void 0}),a))},t.prototype._getSubmenuProps=function(){var e=this.state,t=e.submenuTarget,n=e.expandedMenuItemKey,r=this._findItemByKey(n),o=null;return r&&(o={items:Uu(r),target:t,onDismiss:this._onSubMenuDismiss,isSubMenu:!0,id:this.state.subMenuId,shouldFocusOnMount:!0,shouldFocusOnContainer:this.state.expandedByMouseClick,directionalHint:Ra()?ma:ya,className:this.props.className,gapSpace:0,isBeakVisible:!1},r.subMenuProps&&Br(o,r.subMenuProps)),o},t.prototype._findItemByKey=function(e){var t=this.props.items;return this._findItemByKeyFromItems(e,t)},t.prototype._findItemByKeyFromItems=function(e,t){for(var n=0,r=t;n *":{position:"relative",left:0,top:0}}}],rootDisabled:[Fn(e,{inset:-1,highContrastStyle:a}),{backgroundColor:o,color:i,cursor:"default",pointerEvents:"none",selectors:(t={":hover":Qu,":focus":Qu},t[gn]={color:"grayText",bordercolor:"grayText"},t)}],iconDisabled:{color:i},menuIconDisabled:{color:i},flexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},textContainer:{flexGrow:1},icon:Ju,menuIcon:[Ju,{fontSize:Qt.small}],label:{margin:"0 4px",lineHeight:"100%"},screenReaderText:Bn}})),el=Zn((function(e,t){var n;return oe(Xu(e),{root:{padding:"0 4px",height:"40px",color:e.palette.neutralPrimary,backgroundColor:"transparent",border:"1px solid transparent"},rootHovered:{color:e.palette.themePrimary,selectors:(n={},n[gn]={borderColor:"Highlight",color:"Highlight"},n)},iconHovered:{color:e.palette.themePrimary},rootPressed:{color:e.palette.black},rootExpanded:{color:e.palette.themePrimary},iconPressed:{color:e.palette.themeDarker},rootDisabled:{color:e.palette.neutralTertiary,backgroundColor:"transparent"},rootChecked:{color:e.palette.black},iconChecked:{color:e.palette.themeDarker},flexContainer:{justifyContent:"flex-start"},icon:{color:e.palette.themeDarkAlt},iconDisabled:{color:"inherit"},menuIcon:{color:e.palette.neutralSecondary},textContainer:{flexGrow:0}},t)})),tl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._skipComponentRefResolution=!0,t}return ae(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.theme;return r.createElement(Gu,se({},this.props,{variantClassName:"ms-Button--action ms-Button--command",styles:el(n,t),onRenderDescription:Ho}))},t=le([du("ActionButton",["theme","styles"],!0)],t)}(Bo),nl=o.a.memo((function(e){var t=Object(r.useContext)(to).history;return o.a.createElement(Jr,null,o.a.createElement(Jr,{horizontal:!0,horizontalAlign:"begin",verticalAlign:"baseline"},o.a.createElement(tl,{iconProps:{iconName:"revToggleKey"},onClick:function(){t.push("/")}},"Back to market list")))}));nl.propTypes={};var rl,ol,il=nl;!function(e){e[e.Parent=0]="Parent",e[e.Self=1]="Self"}(rl||(rl={})),function(e){e[e.zero=0]="zero",e[e.medium=1]="medium",e[e.long=2]="long"}(ol||(ol={}));var al=fo(),sl=oo(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onRenderContent=function(e){return r.createElement("p",{className:t._classNames.subText},e.content)},t}return ae(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.calloutProps,o=e.delay,i=e.directionalHint,a=e.directionalHintForRTL,s=e.styles,u=e.id,l=e.maxWidth,c=e.onRenderContent,f=void 0===c?this._onRenderContent:c,d=e.targetElement,p=e.theme;return this._classNames=al(s,{theme:p,className:t||n&&n.className,delay:o,beakWidth:n&&n.beakWidth,gapSpace:n&&n.gapSpace,maxWidth:l}),r.createElement(ku,se({target:d,directionalHint:i,directionalHintForRTL:a},n,$r(this.props,Yr,["id"]),{className:this._classNames.root}),r.createElement("div",{className:this._classNames.content,id:u,role:"tooltip",onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},f(this.props,this._onRenderContent)))},t.defaultProps={directionalHint:ua,delay:ol.medium,maxWidth:"364px",calloutProps:{isBeakVisible:!0,beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1}},t}(r.Component),(function(e){var t=e.className,n=e.delay,r=e.beakWidth,o=void 0===r?16:r,i=e.gapSpace,a=void 0===i?0:i,s=e.maxWidth,u=e.theme,l=u.palette,c=u.fonts,f=-(Math.sqrt(o*o/2)+a);return{root:["ms-Tooltip",u.fonts.medium,dr.fadeIn200,{background:l.white,padding:"8px",animationDelay:"300ms",maxWidth:s,selectors:{":after":{content:"''",position:"absolute",bottom:f,left:f,right:f,top:f,zIndex:0}}},n===ol.zero&&{animationDelay:"0s"},n===ol.long&&{animationDelay:"500ms"},t],content:["ms-Tooltip-content",c.small,{position:"relative",zIndex:1,color:l.neutralPrimary,wordWrap:"break-word",overflowWrap:"break-word",overflow:"hidden"}],subText:["ms-Tooltip-subtext",{fontSize:"inherit",fontWeight:"inherit",color:"inherit",margin:0}]}}),void 0,{scope:"Tooltip"}),ul=fo(),ll=function(e){function t(n){var o=e.call(this,n)||this;return o._tooltipHost=r.createRef(),o._closingTimer=-1,o.show=function(){o._toggleTooltip(!0)},o.dismiss=function(){o._hideTooltip()},o._onTooltipMouseEnter=function(e){var n,r=o.props.overflowMode;if(t._currentVisibleTooltip&&t._currentVisibleTooltip!==o&&t._currentVisibleTooltip.dismiss(),t._currentVisibleTooltip=o,void 0!==r){var i=o._getTargetElement();if(i&&(!function(e){return e.clientWidth=0){var o=n.keyToIndexMapping[e],i=r.Children.toArray(this.props.children)[o];"object"==typeof i&&i.type===jl&&this.props.onLinkClick(i,t)}},t.prototype._getClassNames=function(e){var t=e.theme,n=e.linkSize===Nl.large,r=e.linkFormat===Ml.tabs;return Rl(e.styles,{theme:t,rootIsLarge:n,rootIsTabs:r})},t}(Bo),zl={count:"ms-Pivot-count",icon:"ms-Pivot-icon",linkIsSelected:"is-selected",link:"ms-Pivot-link",linkContent:"ms-Pivot-linkContent",root:"ms-Pivot",rootIsLarge:"ms-Pivot--large",rootIsTabs:"ms-Pivot--tabs",text:"ms-Pivot-text"},Bl=function(e){var t,n,r=e.rootIsLarge,o=e.rootIsTabs,i=e.theme,a=i.palette,s=i.semanticColors;return[{color:s.actionLink,display:"inline-block",fontSize:Qt.medium,fontWeight:Jt.regular,lineHeight:"40px",marginRight:"8px",padding:"0 8px",textAlign:"center",position:"relative",backgroundColor:"transparent",border:0,selectors:(t={":before":{backgroundColor:"transparent",bottom:0,content:'""',height:"2px",left:"8px",position:"absolute",right:"8px",transition:"background-color "+Ut+" "+Bt},":after":{color:"transparent",content:"attr(data-content)",display:"block",fontWeight:Jt.bold,height:"1px",overflow:"hidden",visibility:"hidden"},":hover":{color:s.actionLinkHovered,cursor:"pointer"},":focus":{outline:"none"}},t["."+Ln+" &:focus"]={outline:"1px solid "+s.focusBorder},t["."+Ln+" &:focus:after"]={content:"attr(data-content)",position:"relative",border:0},t)},r&&{fontSize:Qt.large},o&&[{marginRight:0,height:"40px",lineHeight:"40px",backgroundColor:a.neutralLighter,padding:"0 10px",verticalAlign:"top",selectors:(n={":focus":{outlineOffset:"-1px"}},n["."+Ln+" &:focus::before"]={height:"auto",background:"transparent",transition:"none"},n)}]]},Ul=oo(Fl,(function(e){var t,n,r,o=e.className,i=e.rootIsLarge,a=e.rootIsTabs,s=e.theme,u=s.palette,l=s.semanticColors,c=Gn(zl,s);return{root:[c.root,s.fonts.medium,fr,{fontSize:Qt.medium,fontWeight:Jt.regular,position:"relative",color:u.themePrimary,whiteSpace:"nowrap"},i&&c.rootIsLarge,a&&c.rootIsTabs,o],link:[c.link].concat(Bl(e),[{selectors:{":hover::before":{boxSizing:"border-box",borderBottom:"2px solid transparent"}}},a&&{selectors:{"&:hover, &:focus":{color:u.black},":active":{backgroundColor:u.themePrimary}}}]),linkIsSelected:[c.link,c.linkIsSelected].concat(Bl(e),[{fontWeight:Jt.semibold,selectors:(t={":before":{boxSizing:"border-box",borderBottom:"2px solid "+l.inputBackgroundChecked,selectors:(n={},n[gn]={borderBottomColor:"Highlight"},n)}},t[gn]={color:"Highlight"},t)},a&&{backgroundColor:u.themePrimary,color:u.white,fontWeight:Jt.semilight,selectors:(r={":before":{backgroundColor:"transparent",transition:"none",position:"absolute",top:0,left:0,right:0,bottom:0,content:'""',height:"auto"},"&:active, &:hover":{color:u.white}},r[gn]={fontWeight:Jt.semibold,color:"HighlightText",background:"Highlight",MsHighContrastAdjust:"none"},r)}]),linkContent:[c.linkContent],text:[c.text,{display:"inline-block",verticalAlign:"top"}],count:[c.count,{marginLeft:"4px",display:"inline-block",verticalAlign:"top"}],icon:[c.icon,{selectors:{"& + $text":{marginLeft:"4px"}}}]}}),void 0,{scope:"Pivot"}),Hl=n(44),Wl=n.n(Hl);function Vl(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n background: #f4f4f4;\n border: 1px solid #ddd;\n border-left: 3px solid #f36d33;\n color: #666;\n page-break-inside: avoid;\n font-family: monospace;\n font-size: 15px;\n line-height: 1.6;\n margin-bottom: 1.6em;\n max-width: 100%;\n overflow: auto;\n padding: 1em 1.5em;\n display: block;\n word-wrap: break-word;\n"]);return Vl=function(){return e},e}var Kl=Eo.b.pre(Vl()),Zl=function(e){var t=e.storages;return o.a.createElement(Kl,null,Wl()(t)?o.a.createElement(no,null,"There is no storage setting"):t.map((function(e){return o.a.createElement(Jr,{key:e.name,gap:"m"},o.a.createElement(Jr,{horizontal:!0,verticalAlign:"center",gap:"m"},o.a.createElement(no,null,"Storage Type:"),o.a.createElement(no,null,e.type)),o.a.createElement(Jr,{horizontal:!0,verticalAlign:"center",gap:"m"},o.a.createElement(no,null,"Storage Name:"),o.a.createElement(no,null,e.name)),o.a.createElement(Jr,{horizontal:!0,verticalAlign:"center",gap:"m"},o.a.createElement(no,null,"Storage Path:"),o.a.createElement(no,null,e.uri)))})))};Zl.propTypes={storages:s.a.arrayOf(s.a.object)};var ql=Zl,Yl=function(e){var t=e.marketItem.protocol.prerequisites.filter((function(e){return"data"===e.type}));return o.a.createElement(Jr,{gap:"m"},o.a.createElement(no,{variant:"large"},"Data Storage"),o.a.createElement(ql,{storages:t}))};Yl.propTypes={marketItem:s.a.object.isRequired};var $l=Yl;function Gl(e){return function(e){if(Array.isArray(e))return Xl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Jl(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ql(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||Jl(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jl(e,t){if(e){if("string"==typeof e)return Xl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xl(e,t):void 0}}function Xl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var ce,fe=0,de=1,pe=2,he={};try{he=window}catch(e){}var me,ge=function(){function e(e){this._rules=[],this._preservedRules=[],this._rulesToInsert=[],this._counter=0,this._keyToClassName={},this._onResetCallbacks=[],this._classNameToArgs={},this._config=se({injectionMode:de,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},e)}return e.getInstance=function(){if(!(ce=he.__stylesheet__)||ce._lastStyleElement&&ce._lastStyleElement.ownerDocument!==document){var t=he&&he.FabricConfig||{};ce=he.__stylesheet__=new e(t.mergeStyles)}return ce},e.prototype.setConfig=function(e){this._config=se({},this._config,e)},e.prototype.onReset=function(e){this._onResetCallbacks.push(e)},e.prototype.getClassName=function(e){var t=this._config.namespace;return(t?t+"-":"")+(e||this._config.defaultPrefix)+"-"+this._counter++},e.prototype.cacheClassName=function(e,t,n,r){this._keyToClassName[t]=e,this._classNameToArgs[e]={args:n,rules:r}},e.prototype.classNameFromKey=function(e){return this._keyToClassName[e]},e.prototype.argsFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.args},e.prototype.insertedRulesFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.rules},e.prototype.insertRule=function(e,t){var n=this._config.injectionMode!==fe?this._getStyleElement():void 0;if(t&&this._preservedRules.push(e),n)switch(this._config.injectionMode){case de:var r=n.sheet;try{r.insertRule(e,r.cssRules.length)}catch(e){}break;case pe:n.appendChild(document.createTextNode(e))}else this._rules.push(e);this._config.onInsertRule&&this._config.onInsertRule(e)},e.prototype.getRules=function(e){return(e?this._preservedRules.join(""):"")+this._rules.join("")+this._rulesToInsert.join("")},e.prototype.reset=function(){this._rules=[],this._rulesToInsert=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach((function(e){return e()}))},e.prototype.resetKeys=function(){this._keyToClassName={}},e.prototype._getStyleElement=function(){var e=this;return this._styleElement||"undefined"==typeof document||(this._styleElement=this._createStyleElement(),window.requestAnimationFrame((function(){e._styleElement=void 0}))),this._styleElement},e.prototype._createStyleElement=function(){var e=document.createElement("style");e.setAttribute("data-merge-styles","true"),e.type="text/css";var t=this._config.cspSettings;return t&&t.nonce&&e.setAttribute("nonce",t.nonce),this._lastStyleElement&&this._lastStyleElement.nextElementSibling?document.head.insertBefore(e,this._lastStyleElement.nextElementSibling):document.head.appendChild(e),this._lastStyleElement=e,e},e}(),ve={MozOsxFontSmoothing:"-moz-osx-font-smoothing",MsHighContrastAdjust:"-ms-high-contrast-adjust",WebkitFontSmoothing:"-webkit-font-smoothing",WebkitOverflowScrolling:"-webkit-overflow-scrolling",WebkitTapHighlightColor:"-webkit-tap-highlight-color",alignContent:"align-content",alignItems:"align-items",alignSelf:"align-self",animation:"animation",animationDelay:"animation-delay",animationDirection:"animation-direction",animationDuration:"animation-duration",animationFillMode:"animation-fill-mode",animationIterationCount:"animation-iteration-count",animationName:"animation-name",animationTimingFunction:"animation-timing-function",background:"background",backgroundClip:"background-clip",backgroundColor:"background-color",backgroundImage:"background-image",backgroundPosition:"background-position",border:"border",borderBottom:"border-bottom",borderBottomColor:"border-bottom-color",borderBottomStyle:"border-bottom-style",borderBottomWidth:"border-bottom-width",borderCollapse:"border-collapse",borderColor:"border-color",borderLeft:"border-left",borderRadius:"border-radius",borderRight:"border-right",borderStyle:"border-style",borderTop:"border-top",borderTopColor:"border-top-color",borderTopLeftRadius:"border-top-left-radius",borderTopRightRadius:"border-top-right-radius",borderTopStyle:"border-top-style",borderTopWidth:"border-top-width",borderWidth:"border-width",bordercolor:"bordercolor",bottom:"bottom",boxShadow:"box-shadow",boxSizing:"box-sizing",clear:"clear",color:"color",content:"content",cursor:"cursor",display:"display",fill:"fill",flex:"flex",flexBasis:"flex-basis",flexDirection:"flex-direction",flexGrow:"flex-grow",flexShrink:"flex-shrink",flexWrap:"flex-wrap",float:"float",font:"font",fontFamily:"font-family",fontSize:"font-size",fontStyle:"font-style",fontWeight:"font-weight",height:"height",justifyContent:"justify-content",left:"left",lineHeight:"line-height",listStyle:"list-style",listStyleType:"list-style-type",marginBottom:"margin-bottom",marginLeft:"margin-left",marginRight:"margin-right",marginTop:"margin-top",maxHeight:"max-height",maxWidth:"max-width",minHeight:"min-height",minWidth:"min-width",mozOsxFontSmoothing:"moz-osx-font-smoothing",objectFit:"object-fit",opacity:"opacity",order:"order",outline:"outline",outlineColor:"outline-color",outlineOffset:"outline-offset",overflow:"overflow",overflowWrap:"overflow-wrap",overflowX:"overflow-x",overflowY:"overflow-y",paddingBottom:"padding-bottom",paddingLeft:"padding-left",paddingRight:"padding-right",paddingTop:"padding-top",perspective:"perspective",pointerEvents:"pointer-events",position:"position",resize:"resize",right:"right",speak:"speak",src:"src",tableLayout:"table-layout",textAlign:"text-align",textDecoration:"text-decoration",textOverflow:"text-overflow",textTransform:"text-transform",top:"top",transform:"transform",transformOrigin:"transform-origin",transition:"transition",transitionDelay:"transition-delay",transitionDuration:"transition-duration",transitionProperty:"transition-property",transitionTimingFunction:"transition-timing-function",userSelect:"user-select",verticalAlign:"vertical-align",visibility:"visibility",webkitFontSmoothing:"webkit-font-smoothing",whiteSpace:"white-space",width:"width",wordBreak:"word-break",wordWrap:"word-wrap",zIndex:"z-index"};var ye={"user-select":1};function be(e,t){var n=function(){if(!me){var e="undefined"!=typeof document?document:void 0,t="undefined"!=typeof navigator?navigator:void 0,n=t?t.userAgent.toLowerCase():void 0;me=e?{isWebkit:!(!e||!("WebkitAppearance"in e.documentElement.style)),isMoz:!!(n&&n.indexOf("firefox")>-1),isOpera:!!(n&&n.indexOf("opera")>-1),isMs:!(!t||!/rv:11.0/i.test(t.userAgent)&&!/Edge\/\d./i.test(navigator.userAgent))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return me}(),r=e[t];if(ye[r]){var o=e[t+1];ye[r]&&(n.isWebkit&&e.push("-webkit-"+r,o),n.isMoz&&e.push("-moz-"+r,o),n.isMs&&e.push("-ms-"+r,o),n.isOpera&&e.push("-o-"+r,o))}}var we=["column-count","font-weight","flex-basis","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function ke(e,t){var n=e[t],r=e[t+1];if("number"==typeof r){var o=-1===we.indexOf(n)?"px":"";e[t+1]=""+r+o}}var xe,_e="left",Ee="right",Ce=((xe={})[_e]=Ee,xe[Ee]=_e,xe),Ae={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"},Se=Ie();function Te(e){Se!==e&&(ge.getInstance().resetKeys(),Se=e)}function Ie(){return void 0===Se&&(Se="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),Se}function Oe(e,t){if(Ie()){var n=e[t];if(!n)return;var r=e[t+1];if("string"==typeof r&&r.indexOf("@noflip")>=0)e[t+1]=r.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(n.indexOf(_e)>=0)e[t]=n.replace(_e,Ee);else if(n.indexOf(Ee)>=0)e[t]=n.replace(Ee,_e);else if(String(r).indexOf(_e)>=0)e[t+1]=r.replace(_e,Ee);else if(String(r).indexOf(Ee)>=0)e[t+1]=r.replace(Ee,_e);else if(Ce[n])e[t]=Ce[n];else if(Ae[r])e[t+1]=Ae[r];else switch(n){case"margin":case"padding":e[t+1]=function(e){if("string"==typeof e){var t=e.split(" ");if(4===t.length)return t[0]+" "+t[3]+" "+t[2]+" "+t[1]}return e}(r);break;case"box-shadow":e[t+1]=function(e,t){var n=e.split(" "),r=parseInt(n[t],10);return n[0]=n[0].replace(String(r),String(-1*r)),n.join(" ")}(r,0)}}}function Pe(e){var t=e&&e["&"];return t?t.displayName:void 0}var Me=/\:global\((.+?)\)/g;function Ne(e){if(!Me.test(e))return e;for(var t=[],n=/\:global\((.+?)\)/g,r=null;r=n.exec(e);)r[1].indexOf(",")>-1&&t.push([r.index,r.index+r[0].length,r[1].split(",").map((function(e){return":global("+e.trim()+")"})).join(", ")]);return t.reverse().reduce((function(e,t){var n=t[0],r=t[1],o=t[2];return e.slice(0,n)+o+e.slice(r)}),e)}function De(e,t){return e.indexOf(":global(")>=0?e.replace(Me,"$1"):0===e.indexOf(":")?t+e:e.indexOf("&")<0?t+" "+e:e}function Le(e,t,n){void 0===t&&(t={__order:[]}),void 0===n&&(n="&");var r=ge.getInstance(),o=t[n];o||(o={},t[n]=o,t.__order.push(n));for(var i=0,a=e;i-1){Le([d],t,Ne(f).split(/,/g).map((function(e){return e.trim()})).map((function(e){return De(e,n)})).join(", "))}else Le([d],t,De(f,n))}}else void 0!==s[l]&&("margin"===l||"padding"===l?Re(o,l,s[l]):o[l]=s[l])}return t}function Re(e,t,n){var r="string"==typeof n?n.split(" "):[n];e[t+"Top"]=r[0],e[t+"Right"]=r[1]||r[0],e[t+"Bottom"]=r[2]||r[0],e[t+"Left"]=r[3]||r[1]||r[0]}function je(e){for(var t=[],n=!1,r=0,o=e.__order;r=0)i(s.split(" "));else{var u=o.argsFromClassName(s);u?i(u):-1===n.indexOf(s)&&n.push(s)}else Array.isArray(s)?i(s):"object"==typeof s&&r.push(s)}}return i(e),{classes:n,objects:r}}function Ve(){for(var e=[],t=0;t0&&r>t)&&(n=Yn(),r=0,o=Hn),s=n;for(var u=0;u-1;e[r]=i?o:nr(e[r]||{},o,n)}else e[r]=o}return n.pop(),e}var rr,or={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"},ir=(n(97),{elevation4:"0 0 5px 0 rgba(0,0,0,.4)",elevation8:"0 0 5px 0 rgba(0,0,0,.4)",elevation16:"0 0 5px 0 rgba(0,0,0,.4)",elevation64:"0 0 5px 0 rgba(0,0,0,.4)",roundedCorner2:"0px"}),ar=lr({palette:Gt,semanticColors:cr(Gt,!1,!1),fonts:pn,isInverted:!1,disableGlobalClassNames:!1});if(!er.getSettings(["theme"]).theme){var sr=$e();sr&&sr.FabricConfig&&sr.FabricConfig.theme&&(ar=lr(sr.FabricConfig.theme)),er.applySettings(((rr={}).theme=ar,rr))}function ur(e){return void 0===e&&(e=!1),!0===e&&(ar=lr({},e)),ar}function lr(e,t){void 0===t&&(t=!1);var n=se({},Gt,e.palette);e.palette&&e.palette.accent||(n.accent=n.themePrimary);var r=se({},cr(n,!!e.isInverted,t),e.semanticColors),o=se({},pn);if(e.defaultFontStyle)for(var i=0,a=Object.keys(o);i0)throw new Error("Any module using getSlots must use withSlots. Please see withSlots javadoc for more info.");return Cr(t[e],n,r[e],r._defaultStyles&&r._defaultStyles[e])};o.isSlot=!0,n[e]=o}};for(var i in t)o(i);return n}function _r(e,t){return"string"!=typeof t&&"number"!=typeof t&&"boolean"!=typeof t||((n={})[e]=t,t=n),t;var n}function Er(e){for(var t=[],n=1;n=0)}),{},e)}var Gr,Qr=br(Pr,null).type,Jr=Sr({displayName:"Stack",styles:function(e,t,n){var r,o,i,a,s,u,l,c=e.verticalFill,f=e.maxWidth,d=e.maxHeight,p=e.horizontal,h=e.reversed,m=e.gap,g=e.grow,v=e.wrap,y=e.padding,b=e.horizontalAlign,w=e.verticalAlign,k=e.disableShrink,x=e.className,_=Gn(Rr,t),E=function(e,t){if(void 0===e||""===e)return{rowGap:{value:0,unit:"px"},columnGap:{value:0,unit:"px"}};if("number"==typeof e)return{rowGap:{value:e,unit:"px"},columnGap:{value:e,unit:"px"}};var n=e.split(" ");if(n.length>2)return{rowGap:{value:0,unit:"px"},columnGap:{value:0,unit:"px"}};if(2===n.length)return{rowGap:Nr(Mr(n[0],t)),columnGap:Nr(Mr(n[1],t))};var r=Nr(Mr(e,t));return{rowGap:r,columnGap:r}}(n&&n.childrenGap?n.childrenGap:m,t),C=E.rowGap,A=E.columnGap,S=""+-.5*A.value+A.unit,T=""+-.5*C.value+C.unit,I={textOverflow:"ellipsis"},O={"> *:not(.ms-StackItem)":{flexShrink:k?0:1}};return v?{root:[_.root,{flexWrap:"wrap",maxWidth:f,maxHeight:d,width:"auto",overflow:"visible",height:"100%"},b&&(r={},r[p?"justifyContent":"alignItems"]=Lr[b]||b,r),w&&(o={},o[p?"alignItems":"justifyContent"]=Lr[w]||w,o),x,{display:"flex"},p&&{height:c?"100%":"auto"}],inner:[_.inner,{display:"flex",flexWrap:"wrap",marginLeft:S,marginRight:S,marginTop:T,marginBottom:T,overflow:"visible",boxSizing:"border-box",padding:Dr(y,t),width:0===A.value?"100%":"calc(100% + "+A.value+A.unit+")",maxWidth:"100vw",selectors:se({"> *":se({margin:""+.5*C.value+C.unit+" "+.5*A.value+A.unit},I)},O)},b&&(i={},i[p?"justifyContent":"alignItems"]=Lr[b]||b,i),w&&(a={},a[p?"alignItems":"justifyContent"]=Lr[w]||w,a),p&&{flexDirection:h?"row-reverse":"row",height:0===C.value?"100%":"calc(100% + "+C.value+C.unit+")",selectors:{"> *":{maxWidth:0===A.value?"100%":"calc(100% - "+A.value+A.unit+")"}}},!p&&{flexDirection:h?"column-reverse":"column",height:"calc(100% + "+C.value+C.unit+")",selectors:{"> *":{maxHeight:0===C.value?"100%":"calc(100% - "+C.value+C.unit+")"}}}]}:{root:[_.root,{display:"flex",flexDirection:p?h?"row-reverse":"row":h?"column-reverse":"column",flexWrap:"nowrap",width:"auto",height:c?"100%":"auto",maxWidth:f,maxHeight:d,padding:Dr(y,t),boxSizing:"border-box",selectors:se((s={"> *":I},s[h?"> *:not(:last-child)":"> *:not(:first-child)"]=[p&&{marginLeft:""+A.value+A.unit},!p&&{marginTop:""+C.value+C.unit}],s),O)},g&&{flexGrow:!0===g?1:g,overflow:"hidden"},b&&(u={},u[p?"justifyContent":"alignItems"]=Lr[b]||b,u),w&&(l={},l[p?"alignItems":"justifyContent"]=Lr[w]||w,l),x]}},view:function(e){var t=e.as,n=void 0===t?"div":t,o=e.disableShrink,i=e.wrap,a=ue(e,["as","disableShrink","wrap"]),s=r.Children.map(e.children,(function(e,t){if(!e)return null;if(e.type===Qr){var n={shrink:!o};return r.cloneElement(e,se({},n,e.props))}return e})),u=$r(a,Vr),l=xr(e,{root:n,inner:"div"});return br(l.root,se({},u),i?br(l.inner,null,s):s)},statics:{Item:Pr}}),Xr=n(15),eo=n.n(Xr),to=o.a.createContext({api:null,user:null,token:null,isAdmin:!1,history:null}),no=Sr({displayName:"Text",styles:function(e,t){var n=e.as,r=e.className,o=e.block,i=e.nowrap,a=e.variant,s=t.fonts[a||"medium"];return{root:[t.fonts.medium,{display:o?"td"===n?"table-cell":"block":"inline",fontFamily:s&&s.fontFamily||"inherit",fontSize:s&&s.fontSize||"inherit",fontWeight:s&&s.fontWeight||"inherit",color:s&&s.color||"inherit",mozOsxFontSmoothing:s&&s.MozOsxFontSmoothing,webkitFontSmoothing:s&&s.WebkitFontSmoothing},i&&{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},r]}},view:function(e){if(!e.children)return null;e.block,e.className;var t=e.as,n=void 0===t?"span":t,r=(e.variant,e.nowrap,ue(e,["block","className","as","variant","nowrap"]));return br(xr(e,{root:n}).root,se({},$r(r,Vr)))}}),ro=["theme","styles"];function oo(e,t,n,o,i){var a=(o=o||{scope:"",fields:void 0}).scope,s=o.fields,u=void 0===s?ro:s;return function(o){function i(){var t=null!==o&&o.apply(this,arguments)||this;return t._inCustomizerContext=!1,t._renderContent=function(o){t._inCustomizerContext=!!o.customizations.inCustomizerContext;var i=er.getSettings(u,a,o.customizations),s=i.styles,l=(i.dir,ue(i,["styles","dir"])),c=n?n(t.props):void 0;return t._updateStyles(s),r.createElement(e,se({},l,c,t.props,{styles:t._styles}))},t._onSettingsChanged=function(){return t.forceUpdate()},t}return ae(i,o),i.prototype.render=function(){return r.createElement(Ar.Consumer,null,this._renderContent)},i.prototype.componentDidMount=function(){this._inCustomizerContext||er.observe(this._onSettingsChanged)},i.prototype.componentWillUnmount=function(){this._inCustomizerContext||er.unobserve(this._onSettingsChanged)},i.prototype._updateStyles=function(e){var n=this;this._styles&&e===this._styles.__cachedInputs__[1]&&!this.props.styles||(this._styles=function(r){return function(e){for(var t=[],n=1;n50&&(t.clear(),n=0,e.disableCaching=!0),a[co]}}function po(e,t){return t=function(e){switch(e){case void 0:return"__undefined__";case null:return"__null__";default:return e}}(t),e.has(t)||e.set(t,new Map),e.get(t)}function ho(e,t){if("function"==typeof t&&t.__cachedInputs__)for(var n=0,r=t.__cachedInputs__;n0&&this._imageElement.current.naturalHeight>0||this._imageElement.current.complete&&t._svgRegex.test(e))&&(this._computeCoverStyle(this.props),this.setState({loadState:lo.loaded})))},t.prototype._computeCoverStyle=function(e){var t=e.imageFit,n=e.width,r=e.height;if((t===so.cover||t===so.contain||t===so.centerContain||t===so.centerCover)&&void 0===this.props.coverStyle&&this._imageElement.current&&this._frameElement.current){var o=void 0;o=n&&r&&t!==so.centerContain&&t!==so.centerCover?n/r:this._frameElement.current.clientWidth/this._frameElement.current.clientHeight;var i=this._imageElement.current.naturalWidth/this._imageElement.current.naturalHeight;this._coverStyle=i>o?uo.landscape:uo.portrait}},t.defaultProps={shouldFadeIn:!0},t._svgRegex=/\.svg$/i,t}(r.Component),vo={root:"ms-Image",rootMaximizeFrame:"ms-Image--maximizeFrame",image:"ms-Image-image",imageCenter:"ms-Image-image--center",imageContain:"ms-Image-image--contain",imageCover:"ms-Image-image--cover",imageCenterContain:"ms-Image-image--centerContain",imageCenterCover:"ms-Image-image--centerCover",imageNone:"ms-Image-image--none",imageLandscape:"ms-Image-image--landscape",imagePortrait:"ms-Image-image--portrait"},yo=oo(go,(function(e){var t=e.className,n=e.width,r=e.height,o=e.maximizeFrame,i=e.isLoaded,a=e.shouldFadeIn,s=e.shouldStartVisible,u=e.isLandscape,l=e.isCenter,c=e.isContain,f=e.isCover,d=e.isCenterContain,p=e.isCenterCover,h=e.isNone,m=e.isError,g=e.isNotImageFit,v=e.theme,y=Gn(vo,v),b={position:"absolute",left:"50% /* @noflip */",top:"50%",transform:"translate(-50%,-50%)"},w=$e(),k=void 0!==w&&void 0===w.navigator.msMaxTouchPoints,x=c&&u||f&&!u?{width:"100%",height:"auto"}:{width:"auto",height:"100%"};return{root:[y.root,v.fonts.medium,{overflow:"hidden"},o&&[y.rootMaximizeFrame,{height:"100%",width:"100%"}],i&&a&&!s&&dr.fadeIn400,(l||c||f||d||p)&&{position:"relative"},t],image:[y.image,{display:"block",opacity:0},i&&["is-loaded",{opacity:1}],l&&[y.imageCenter,b],c&&[y.imageContain,k&&{width:"100%",height:"100%",objectFit:"contain"},!k&&x,b],f&&[y.imageCover,k&&{width:"100%",height:"100%",objectFit:"cover"},!k&&x,b],d&&[y.imageCenterContain,u&&{maxWidth:"100%"},!u&&{maxHeight:"100%"},b],p&&[y.imageCenterCover,u&&{maxHeight:"100%"},!u&&{maxWidth:"100%"},b],h&&[y.imageNone,{width:"auto",height:"auto"}],g&&[!!n&&!r&&{height:"auto",width:"100%"},!n&&!!r&&{height:"100%",width:"auto"},!!n&&!!r&&{height:"100%",width:"100%"}],u&&y.imageLandscape,!u&&y.imagePortrait,!i&&"is-notLoaded",a&&"is-fadeIn",m&&"is-error"]}}),void 0,{scope:"Image"},!0),bo=Ve({root:{display:"inline-block"},placeholder:["ms-Icon-placeHolder",{width:"1em"}],image:["ms-Icon-imageContainer",{overflow:"hidden"}]});function wo(){for(var e=[],t=0;t=a&&(!t||s)?(l=n,c&&(r.clearTimeout(c),c=null),o=e.apply(r._parent,i)):null===c&&u&&(c=r.setTimeout(f,p)),o};return function(){for(var e=[],t=0;t=s&&(n=!0),f=t);var o=t-f,a=s-o,h=t-d,v=!1;return null!==c&&(h>=c&&p?v=!0:a=Math.min(a,c-h)),o>=s||v||n?m(t):null!==p&&e||!l||(p=r.setTimeout(g,a)),i},v=function(){return!!p},y=function(){for(var e=[],t=0;t-1)for(var a=n.split(/[ ,]+/),s=0;s1?e[1]:""}return this.__className},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_disposables",{get:function(){return this.__disposables||(this.__disposables=[]),this.__disposables},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_async",{get:function(){return this.__async||(this.__async=new Fo(this),this._disposables.push(this.__async)),this.__async},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_events",{get:function(){return this.__events||(this.__events=new zo(this),this._disposables.push(this.__events)),this.__events},enumerable:!0,configurable:!0}),t.prototype._resolveRef=function(e){var t=this;return this.__resolves||(this.__resolves={}),this.__resolves[e]||(this.__resolves[e]=function(n){return t[e]=n}),this.__resolves[e]},t.prototype._updateComponentRef=function(e,t){void 0===t&&(t={}),e&&t&&e.componentRef!==t.componentRef&&(this._setComponentRef(e.componentRef,null),this._setComponentRef(t.componentRef,this))},t.prototype._warnDeprecations=function(e){this.className,this.props},t.prototype._warnMutuallyExclusive=function(e){this.className,this.props},t.prototype._warnConditionallyRequiredProps=function(e,t,n){this.className,this.props},t.prototype._setComponentRef=function(e,t){!this._skipComponentRefResolution&&e&&("function"==typeof e&&e(t),"object"==typeof e&&(e.current=t))},t}(r.Component);function Uo(e,t,n){var r=e[n],o=t[n];(r||o)&&(e[n]=function(){var e;return o&&(e=o.apply(this,arguments)),r!==o&&(e=r.apply(this,arguments)),e})}function Ho(){return null}function Wo(){for(var e=[],t=0;t=0&&(s.keytip.visible=this.keytips[u].keytip.visible,this.keytips=(n=this.keytips,r=s,o=u,(i=n.slice())[o]=r,i),zo.raise(this,Ko.KEYTIP_UPDATED,{keytip:s.keytip,uniqueID:s.uniqueID}))},e.prototype.unregister=function(e,t,n){void 0===n&&(n=!1),n?this.persistedKeytips=this.persistedKeytips.filter((function(e){return e.uniqueID!==t})):this.keytips=this.keytips.filter((function(e){return e.uniqueID!==t}));var r=n?Ko.PERSISTED_KEYTIP_REMOVED:Ko.KEYTIP_REMOVED;zo.raise(this,r,{keytip:e,uniqueID:t})},e.prototype.enterKeytipMode=function(){zo.raise(this,Ko.ENTER_KEYTIP_MODE)},e.prototype.exitKeytipMode=function(){zo.raise(this,Ko.EXIT_KEYTIP_MODE)},e.prototype.getKeytips=function(){return this.keytips.map((function(e){return e.keytip}))},e.prototype.addParentOverflow=function(e){var t=e.keySequences.slice();if(t.pop(),0!==t.length){var n=function(e,t){var n=Vo(e,t);if(!(n<0))return e[n]}(this.getKeytips(),(function(e){return function(e,t){if(e.length!==t.length)return!1;for(var n=0;n1?" days ago":" day ago")),o.a.createElement(no,null,n.summary))))};hi.propTypes={item:s.a.object.isRequired};var mi=hi;function gi(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n display: block;\n height: 1px;\n border: 0;\n border-top: 1px solid ",";\n margin: 1px 0;\n padding: 0;\n"]);return gi=function(){return e},e}var vi=ur().palette,yi=Eo.b.hr(gi(),vi.neutralTertiaryAlt),bi=n(101),wi=n.n(bi),ki=[{id:"0b41d10e-36e5-4e97-95c2-27726dd94f33",name:"COVID-19 image data collection",author:"ieee8023",type:"data",categories:"COVID-19",tags:["open source dataset"],summary:"Dataset of COVID-19 X-ray and CT images",protocol:"covid_chestxray_dataset.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-09-20T04:52:48.289Z",updatedAt:"2020-09-20T04:52:48.289Z"},{id:"e284b120-fdaf-11ea-adc1-0242ac120002",name:"COVID-19 Image Data Training Job Template",author:"mlmed",type:"template",categories:"COVID-19",tags:["official example"],summary:"Covid chestxray model training job",protocol:"covid_chestxray_training.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-09-20T04:52:48.289Z",updatedAt:"2020-09-20T04:52:48.289Z"},{id:"1",name:"Couplet Dataset",author:"OpenPAI",type:"data",categories:"AI couplet",tags:["official example"],summary:"Dataset of couplet",protocol:"couplet_dataset.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-08-15T04:52:48.289Z",updatedAt:"2020-08-15T04:52:48.289Z"},{id:"2",name:"Couplet Training Job Template",author:"OpenPAI",type:"template",categories:"AI couplet",tags:["official example"],summary:"Couplet model training job",protocol:"couplet_training.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-08-15T04:52:48.289Z",updatedAt:"2020-08-15T04:52:48.289Z"},{id:"3",name:"Couplet Inference Job Template",author:"OpenPAI",type:"template",categories:"AI couplet",tags:["official example"],summary:"Couplet inference service with trained model",protocol:"couplet_inference.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-08-15T04:52:48.289Z",updatedAt:"2020-08-15T04:52:48.289Z"},{id:"4",name:"Covid19 Dataset",author:"OpenPAI",type:"data",categories:"AI couplet",tags:["official example"],summary:"Provides up-to-date data about Coronavirus outbreak, including numbers about confirmed cases, deaths and recovered",protocol:"covid_dataset.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-08-15T04:52:48.289Z",updatedAt:"2020-08-15T04:52:48.289Z"},{id:"5",name:"Covid19 Prediction Model",author:"OpenPAI",type:"template",categories:"AI couplet",tags:["official example"],summary:"This model predicts the confirmed and death number of population of different dates",protocol:"covid_training.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-08-15T04:52:48.289Z",updatedAt:"2020-08-15T04:52:48.289Z"},{id:"6",name:"Covid19 Inference Service",author:"OpenPAI",type:"template",categories:"AI couplet",tags:["official example"],summary:"This is the inference service to visualize the prediction number of confirmed and death population in different countries",protocol:"covid_inference.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-08-15T04:52:48.289Z",updatedAt:"2020-08-15T04:52:48.289Z"},{id:"7",name:"Grammar Check Dataset",author:"OpenPAI",type:"data",categories:"AI couplet",tags:["official example"],summary:"Dataset for grammar check task",protocol:"grammar_dataset.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-08-15T04:52:48.289Z",updatedAt:"2020-08-15T04:52:48.289Z"},{id:"8",name:"Grammar Check Model Training",author:"OpenPAI",type:"template",categories:"AI couplet",tags:["official example"],summary:"A grammar check model training process",protocol:"grammar_training.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-08-15T04:52:48.289Z",updatedAt:"2020-08-15T04:52:48.289Z"},{id:"9",name:"Grammar Check Inference Job",author:"OpenPAI",type:"template",categories:"AI couplet",tags:["official example"],summary:"Grammar check inference job with trained model",protocol:"grammar_inference.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-08-15T04:52:48.289Z",updatedAt:"2020-08-15T04:52:48.289Z"},{id:"10",name:"GPU Sharing Example",author:"OpenPAI",type:"template",categories:"gpu sharing",tags:["official example"],summary:"GPU sharing example: two tasks share one GPU",protocol:"gpu_sharing.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-09-22T04:52:48.289Z",updatedAt:"2020-09-22T04:52:48.289Z"},{id:"69ff3c37-1405-49a7-b9de-47e640ba490c",name:"Caffe2 Minist Example",author:"OpenPAI",type:"old",categories:["official example"],tags:["official example"],summary:"A caffe minist example",protocol:"caffe-mnist.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-07-28T04:52:48.289Z",updatedAt:"2020-07-28T04:52:48.289Z"},{id:"9d3fbdad-dd82-429c-a368-f3d7b41717b5",name:"Caffe2 ResNet50 Example",author:"OpenPAI",type:"old",categories:["official example"],tags:["official example"],summary:"A caffe resnet50 example",protocol:"caffe2-resnet50.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-07-28T04:52:48.289Z",updatedAt:"2020-07-28T04:52:48.289Z"},{id:"5fa59045-c3f8-4243-88ff-89a1034681d8",name:"Chainer Example",author:"OpenPAI",type:"old",categories:["official example"],tags:["official example"],summary:"A chainer example",protocol:"chainer-cifar.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-07-28T04:52:48.289Z",updatedAt:"2020-07-28T04:52:48.289Z"},{id:"d5f357d0-70cc-435c-92f2-21d63c7a1513",name:"Horovod Pytorch",author:"OpenPAI",type:"old",categories:["official example"],tags:["official example"],summary:"A horovod pytorch example",protocol:"horovod-pytorch-synthetic-benchmark.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-07-28T04:52:48.289Z",updatedAt:"2020-07-28T04:52:48.289Z"},{id:"55a21b76-abbe-4f75-9b09-ed0ee3accc16",name:"Keras Tensorflow Mnist Example",author:"OpenPAI",type:"old",categories:["official example"],tags:["official example"],summary:"A keras tensorflow minist example",protocol:"keras-tensorflow-mnist.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-07-28T04:52:48.289Z",updatedAt:"2020-07-28T04:52:48.289Z"},{id:"56a0d871-fe2d-43ce-b26c-b89b9c0646fd",name:"Mxnet Autoencoder Example",author:"OpenPAI",type:"old",categories:["official example"],tags:["official example"],summary:"A Mxnet Autoencoder Example",protocol:"mxnet-autoencoder.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-07-28T04:52:48.289Z",updatedAt:"2020-07-28T04:52:48.289Z"},{id:"cc42d399-06d8-4b93-9e84-e5f609ef0c73",name:"Pytorch Mnist Example",author:"OpenPAI",type:"old",categories:["official example"],tags:["official example"],summary:"A Pytorch Mnist Example",protocol:"pytorch-mnist.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-07-28T04:52:48.289Z",updatedAt:"2020-07-28T04:52:48.289Z"},{id:"1c7efdef-40da-46d0-bdea-16c25e560380",name:"Pytorch Regression Example",author:"OpenPAI",type:"old",categories:["official example"],tags:["official example"],summary:"A Pytorch Regression Example",protocol:"pytorch-regression.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-07-28T04:52:48.289Z",updatedAt:"2020-07-28T04:52:48.289Z"},{id:"80cf9714-de4e-480b-8e26-66f529dbff6d",name:"Rocm Pytorch Mnist",author:"OpenPAI",type:"old",categories:["official example"],tags:["official example"],summary:"A Rocm Pytorch Example",protocol:"rocm-pytorch-mnist.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-07-28T04:52:48.289Z",updatedAt:"2020-07-28T04:52:48.289Z"},{id:"44cbad87-c2d5-4433-9890-0883f07e3912",name:"rocm_tensorflow2",author:"OpenPAI",type:"old",categories:["official example"],tags:["official example"],summary:"A Rocm Tensorflow2 Example",protocol:"rocm-tensorflow2.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-07-28T04:52:48.289Z",updatedAt:"2020-07-28T04:52:48.289Z"},{id:"17c2500d-94ed-4e2d-af74-e1ace47987af",name:"sklearn_text_vectorizers",author:"OpenPAI",type:"old",categories:["official example"],tags:["official example"],summary:"A Scikit-learn Example",protocol:"sklearn-text-vectorizers.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-07-28T04:52:48.289Z",updatedAt:"2020-07-28T04:52:48.289Z"},{id:"4fb02608-3769-475c-a0c2-c2155fb03c4f",name:"tensorflow_cifar10",author:"OpenPAI",type:"old",categories:["official example"],tags:["official example"],summary:"A Tensorflow Distributed Example",protocol:"tensorflow-cifar10.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-07-28T04:52:48.289Z",updatedAt:"2020-07-28T04:52:48.289Z"},{id:"74c8ab09-6225-4982-8145-5be0b5c55a28",name:"tensorflow_serving_mnist",author:"OpenPAI",type:"old",categories:["official example"],tags:["official example"],summary:"A Tensorflow Mnist Model Example",protocol:"tensorflow-serving-mnist.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-08-15T04:52:48.289Z",updatedAt:"2020-08-15T04:52:48.289Z"},{id:"11",name:"cifar10-single-mul-DDP-gloo",author:"OpenPAI",type:"template",categories:["distributed example"],tags:["official example"],summary:"Pytorch Cifar10 Example",protocol:"cifar10-single-mul-DDP-gloo.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-09-23T14:52:48.289Z",updatedAt:"2020-09-23T14:52:48.289Z"},{id:"12",name:"cifar10-single-mul-DDP-gloo-Apex-mixed",author:"OpenPAI",type:"template",categories:["distributed example"],tags:["official example"],summary:"Pytorch Cifar10 Example",protocol:"cifar10-single-mul-DDP-gloo-Apex-mixed.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-09-23T14:52:48.289Z",updatedAt:"2020-09-23T14:52:48.289Z"},{id:"13",name:"cifar10-single-mul-DDP-nccl",author:"OpenPAI",type:"template",categories:["distributed example"],tags:["official example"],summary:"Pytorch Cifar10 Example",protocol:"cifar10-single-mul-DDP-nccl.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-09-23T14:52:48.289Z",updatedAt:"2020-09-23T14:52:48.289Z"},{id:"14",name:"cifar10-single-mul-DDP-nccl-Apex-mixed",author:"OpenPAI",type:"template",categories:["distributed example"],tags:["official example"],summary:"Pytorch Cifar10 Example",protocol:"cifar10-single-mul-DDP-nccl-Apex-mixed.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-09-23T14:52:48.289Z",updatedAt:"2020-09-23T14:52:48.289Z"},{id:"15",name:"cifar10-single-node-gpus-cpu-DP",author:"OpenPAI",type:"template",categories:["distributed example"],tags:["official example"],summary:"Pytorch Cifar10 Example",protocol:"cifar10-single-node-gpus-cpu-DP.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-09-23T14:52:48.289Z",updatedAt:"2020-09-23T14:52:48.289Z"},{id:"16",name:"Lite-imagenet-single-mul-DDP-gloo",author:"OpenPAI",type:"template",categories:["distributed example"],tags:["official example"],summary:"Pytorch Imagenet Example",protocol:"Lite-imagenet-single-mul-DDP-gloo.yaml",useNumber:0,starNumber:0,status:"approved",createdAt:"2020-09-23T14:52:48.289Z",updatedAt:"2020-09-23T14:52:48.289Z"}];var xi,_i,Ei=n(43),Ci=n.n(Ei);function Ai(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function Si(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Ai(i,r,o,a,s,"next",e)}function s(e){Ai(i,r,o,a,s,"throw",e)}a(void 0)}))}}function Ti(e){return Ii.apply(this,arguments)}function Ii(){return(Ii=Si(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!re()(t)&&"all"!==t){e.next=2;break}return e.abrupt("return",ki);case 2:return e.abrupt("return",ki.filter((function(e){return e.type===t})));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Oi(e){return Pi.apply(this,arguments)}function Pi(){return(Pi=Si(regeneratorRuntime.mark((function e(t){var n,r,o,i,a,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,r=ki.find((function(e){return e.id===t})),n="old"===r.type?"https://microsoft.github.io/openpaimarketplace/examples/yaml_templates/".concat(r.protocol):"https://microsoft.github.io/openpaimarketplace/examples/item_protocols/".concat(r.protocol),e.next=5,fetch(n);case 5:return o=e.sent,e.next=8,o.text();case 8:return i=e.sent,a=Ci.a.safeLoad(i),(s=wi()(r)).protocol=a,e.abrupt("return",s);case 15:e.prev=15,e.t0=e.catch(0),"YAMLException"===e.t0.name?(alert("wrong yaml file format of ".concat(n)),window.location.href="http://localhost:9286/plugin.html?index=0"):(alert("could not get marketplace item from uri ".concat(n)),window.location.href="http://localhost:9286/plugin.html?index=0");case 18:case"end":return e.stop()}}),e,null,[[0,15]])})))).apply(this,arguments)}!function(e){e[e.xSmall=0]="xSmall",e[e.small=1]="small",e[e.medium=2]="medium",e[e.large=3]="large"}(xi||(xi={})),function(e){e[e.normal=0]="normal",e[e.large=1]="large"}(_i||(_i={}));var Mi=function(e){function t(t){var n=e.call(this,t)||this;return n.state={isRendered:!1},n}return ae(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props.delay;this._timeoutId=setTimeout((function(){e.setState({isRendered:!0})}),t)},t.prototype.componentWillUnmount=function(){this._timeoutId&&clearTimeout(this._timeoutId)},t.prototype.render=function(){return this.state.isRendered?r.Children.only(this.props.children):null},t.defaultProps={delay:0},t}(r.Component),Ni=fo(),Di=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ae(t,e),t.prototype.render=function(){var e=this.props,t=e.type,n=e.size,o=e.ariaLabel,i=e.ariaLive,a=e.styles,s=e.label,u=e.theme,l=e.className,c=e.labelPosition,f=o,d=$r(this.props,Yr,["size"]),p=n;void 0===p&&void 0!==t&&(p=t===_i.large?xi.large:xi.medium);var h=Ni(a,{theme:u,size:p,className:l,labelPosition:c});return r.createElement("div",se({},d,{className:h.root}),r.createElement("div",{className:h.circle}),s&&r.createElement("div",{className:h.label},s),f&&r.createElement("div",{role:"status","aria-live":i},r.createElement(Mi,null,r.createElement("div",{className:h.screenReaderText},f))))},t.defaultProps={size:xi.medium,ariaLive:"polite",labelPosition:"bottom"},t}(Bo),Li={root:"ms-Spinner",circle:"ms-Spinner-circle",label:"ms-Spinner-label"},Ri=He({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),ji=oo(Di,(function(e){var t,n=e.theme,r=e.size,o=e.className,i=e.labelPosition,a=n.palette,s=Gn(Li,n);return{root:[s.root,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},"top"===i&&{flexDirection:"column-reverse"},"right"===i&&{flexDirection:"row"},"left"===i&&{flexDirection:"row-reverse"},o],circle:[s.circle,{boxSizing:"border-box",borderRadius:"50%",border:"1.5px solid "+a.themeLight,borderTopColor:a.themePrimary,animationName:Ri,animationDuration:"1.3s",animationIterationCount:"infinite",animationTimingFunction:"cubic-bezier(.53,.21,.29,.67)",selectors:(t={},t[gn]={borderTopColor:"Highlight"},t)},r===xi.xSmall&&["ms-Spinner--xSmall",{width:12,height:12}],r===xi.small&&["ms-Spinner--small",{width:16,height:16}],r===xi.medium&&["ms-Spinner--medium",{width:20,height:20}],r===xi.large&&["ms-Spinner--large",{width:28,height:28}]],label:[s.label,{color:a.themePrimary,margin:"10px 0 0",textAlign:"center"},"top"===i&&{margin:"0 0 10px"},"right"===i&&{margin:"0 0 0 10px"},"left"===i&&{margin:"0 10px 0 0"}],screenReaderText:Bn}}),void 0,{scope:"Spinner"});function Fi(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n"]);return Fi=function(){return e},e}var zi=Eo.b.div(Fi()),Bi=function(e){var t=e.label,n=void 0===t?"Loading...":t;return o.a.createElement(zi,null,o.a.createElement(Jr,null,o.a.createElement(ji,{size:xi.large}),o.a.createElement(no,{variant:"large"},n)))};Bi.propTypes={label:s.a.string};var Ui=Bi;function Hi(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function Wi(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Hi(i,r,o,a,s,"next",e)}function s(e){Hi(i,r,o,a,s,"throw",e)}a(void 0)}))}}function Vi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ki(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ki(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ki(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0,a=!!e&&"false"!==o&&("A"===e.tagName||"BUTTON"===e.tagName||"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"true"===o||i);return t?-1!==n&&a:a}function Oa(e){return!!(e&&e.getAttribute&&e.getAttribute("data-focuszone-id"))}function Pa(e){return!(!e||!e.getAttribute||"true"!==e.getAttribute("data-is-sub-focuszone"))}function Ma(e,t){return"true"!==function(e,t){var n=oa(e,(function(e){return e.hasAttribute(t)}));return n&&n.getAttribute(t)}(e,t)}var Na=void 0;var Da,La;function Ra(){if(void 0===Da){var e=function(e){var t=null;try{t=window.sessionStorage.getItem(e)}catch(e){}return t}("isRTL");null!==e&&function(e,t){void 0===t&&(t=!1);var n=an();n&&n.documentElement.setAttribute("dir",e?"rtl":"ltr");t&&function(e,t){try{window.sessionStorage.setItem(e,t)}catch(e){}}("isRTL",e?"1":"0");Te(Da=e)}(Da="1"===e);var t=an();void 0===Da&&t&&Te(Da="rtl"===(t.body&&t.body.getAttribute("dir")||t.documentElement.getAttribute("dir")))}return!!Da}function ja(e){for(var t=[],n=1;na||!e&&s=r.left&&o<=r.left+r.width?0:Math.abs(r.left+r.width/2-o):n._shouldWrapFocus(n._activeElement,"data-no-vertical-wrap")?999999999:-999999999},Fa(n),n._id=Wr("FocusZone"),n._focusAlignment={x:0,y:0},n._processingTabKey=!1,n}return ae(t,e),t.getOuterZones=function(){return Ga.size},t._onKeyDownCapture=function(e){e.which===bn&&Ga.forEach((function(e){return e._updateTabIndexes()}))},t.prototype.componentDidMount=function(){var e=this._root.current;if($a[this._id]=this,e){for(var n=e.ownerDocument.defaultView,r=ra(e,!1);r&&r!==document.body&&1===r.nodeType;){if(Oa(r)){this._isInnerZone=!0;break}r=ra(r,!1)}this._isInnerZone||(Ga.add(this),n&&1===Ga.size&&this._disposables.push(Wa(n,"keydown",t._onKeyDownCapture,!0))),this._disposables.push(Wa(e,"blur",this._onBlur,!0)),this._updateTabIndexes(),this.props.defaultActiveElement&&(this._activeElement=an().querySelector(this.props.defaultActiveElement),this.focus())}},t.prototype.componentDidUpdate=function(){var e=this._root.current,t=an(e);if(t&&this._lastIndexPath&&(t.activeElement===t.body||t.activeElement===e)){var n=function(e,t){for(var n=e,r=0,o=t;r-1&&(-1===i||c=0&&c<0)break}}while(o);if(a&&a!==this._activeElement)s=!0,this.focusElement(a);else if(this.props.isCircularNavigation&&r)return e?this.focusElement(Sa(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(Aa(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return s},t.prototype._moveFocusDown=function(){var e=this,t=-1,n=this._focusAlignment.x;return!!this._moveFocus(!0,(function(r,o){var i=-1,a=Math.floor(o.top),s=Math.floor(r.bottom);return a=s||a===t)&&(t=a,i=n>=o.left&&n<=o.left+o.width?0:Math.abs(o.left+o.width/2-n)),i)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},t.prototype._moveFocusUp=function(){var e=this,t=-1,n=this._focusAlignment.x;return!!this._moveFocus(!1,(function(r,o){var i=-1,a=Math.floor(o.bottom),s=Math.floor(o.top),u=Math.floor(r.top);return a>u?e._shouldWrapFocus(e._activeElement,"data-no-vertical-wrap")?999999999:-999999999:((-1===t&&a<=u||s===t)&&(t=s,i=n>=o.left&&n<=o.left+o.width?0:Math.abs(o.left+o.width/2-n)),i)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},t.prototype._moveFocusLeft=function(){var e=this,t=this._shouldWrapFocus(this._activeElement,"data-no-horizontal-wrap");return!!this._moveFocus(Ra(),(function(n,r){var o=-1;return(Ra()?r.top.toFixed(3)n.top.toFixed(3))&&r.right<=n.right&&e.props.direction!==ka.vertical?o=n.right-r.right:t||(o=-999999999),o}),void 0,t)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusRight=function(){var e=this,t=this._shouldWrapFocus(this._activeElement,"data-no-horizontal-wrap");return!!this._moveFocus(!Ra(),(function(n,r){var o=-1;return(Ra()?r.bottom.toFixed(3)>n.top.toFixed(3):r.top.toFixed(3)=n.left&&e.props.direction!==ka.vertical?o=r.left-n.left:t||(o=-999999999),o}),void 0,t)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusPaging=function(e,t){void 0===t&&(t=!0),void 0===t&&(t=!0);var n=this._activeElement;if(!n||!this._root.current)return!1;if(this._isElementInput(n)&&!this._shouldInputLoseFocus(n,e))return!1;var r=Za(n);if(!r)return!1;var o=-1,i=void 0,a=-1,s=-1,u=r.clientHeight,l=n.getBoundingClientRect();do{if(n=e?Sa(this._root.current,n):Aa(this._root.current,n)){var c=n.getBoundingClientRect(),f=Math.floor(c.top),d=Math.floor(l.bottom),p=Math.floor(c.bottom),h=Math.floor(l.top),m=this._getHorizontalDistanceFromCenter(e,l,c);if(e&&f>d+u||!e&&p-1&&(e&&f>a?(a=f,o=m,i=n):!e&&p-1){var n=e.selectionStart,r=n!==e.selectionEnd,o=e.value;if(r||n>0&&!t||n!==o.length&&t||this.props.handleTabKey&&(!this.props.shouldInputLoseFocusOnArrowKey||!this.props.shouldInputLoseFocusOnArrowKey(e)))return!1}return!0},t.prototype._shouldWrapFocus=function(e,t){return!this.props.checkForNoWrap||Ma(e,t)},t.prototype._portalContainsElement=function(e){return e&&!!this._root.current&&ia(e,this._root.current)},t.defaultProps={isCircularNavigation:!1,direction:ka.bidirectional},t}(r.Component);function Xa(e){if(void 0===Ya||e){var t=$e(),n=t&&t.navigator.userAgent;Ya=!!n&&-1!==n.indexOf("Macintosh")}return!!Ya}var es=function(){return!!(window&&window.navigator&&window.navigator.userAgent)&&/iPad|iPhone|iPod/i.test(window.navigator.userAgent)};function ts(e){return e.canCheck?!(!e.isChecked&&!e.checked):"boolean"==typeof e.isChecked?e.isChecked:"boolean"==typeof e.checked?e.checked:null}function ns(e){return!(!e.subMenuProps&&!e.items)}function rs(e){return!(!e.isDisabled&&!e.disabled)}var os=n(16),is=["setState","render","componentWillMount","UNSAFE_componentWillMount","componentDidMount","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","shouldComponentUpdate","componentWillUpdate","getSnapshotBeforeUpdate","UNSAFE_componentWillUpdate","componentDidUpdate","componentWillUnmount"];var as,ss=function(e){function t(t){var n=e.call(this,t)||this;return n._skipComponentRefResolution=!0,n._updateComposedComponentRef=n._updateComposedComponentRef.bind(n),n}return ae(t,e),t.prototype._updateComposedComponentRef=function(e){var t;this._composedComponentInstance=e,e?this._hoisted=function(e,t,n){void 0===n&&(n=is);var r=[],o=function(o){"function"!=typeof t[o]||void 0!==e[o]||n&&-1!==n.indexOf(o)||(r.push(o),e[o]=function(){t[o].apply(t,arguments)})};for(var i in t)o(i);return r}(this,e):this._hoisted&&(t=this,this._hoisted.forEach((function(e){return delete t[e]})))},t}(Bo);function us(e,t){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}!function(e){e[e.small=0]="small",e[e.medium=1]="medium",e[e.large=2]="large",e[e.xLarge=3]="xLarge",e[e.xxLarge=4]="xxLarge",e[e.xxxLarge=5]="xxxLarge",e[e.unknown=999]="unknown"}(as||(as={}));var ls,cs,fs,ds,ps=[479,639,1023,1365,1919,99999999];function hs(e){var t=function(t){function n(e){var n=t.call(this,e)||this;return n._onResize=function(){var e=Object(os.findDOMNode)(n),t=ms(e&&$e(e)||window);t!==n.state.responsiveMode&&n.setState({responsiveMode:t})},n._updateComposedComponentRef=n._updateComposedComponentRef.bind(n),n.state={responsiveMode:ls||cs||as.large},n}return ae(n,t),n.prototype.componentDidMount=function(){this._events.on(window,"resize",this._onResize),this._onResize()},n.prototype.componentWillUnmount=function(){this._events.dispose()},n.prototype.render=function(){var t=this.state.responsiveMode;return t===as.unknown?null:r.createElement(e,se({ref:this._updateComposedComponentRef,responsiveMode:t},this.props))},n}(ss);return us(e,t)}function ms(e){var t=as.small;if(e){try{for(;e.innerWidth>ps[t];)t++}catch(e){t=ls||cs||as.large}cs=t}else{if(void 0===ls)throw new Error("Content was rendered in a server environment without providing a default responsive mode. Call setResponsiveMode to define what the responsive mode is.");t=ls}return t}!function(e){e[e.top=1]="top",e[e.bottom=-1]="bottom",e[e.left=2]="left",e[e.right=-2]="right"}(fs||(fs={})),function(e){e[e.top=0]="top",e[e.bottom=1]="bottom",e[e.start=2]="start",e[e.end=3]="end"}(ds||(ds={}));var gs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ae(t,e),t}(function(){function e(e,t,n,r){void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=0),void 0===r&&(r=0),this.top=n,this.bottom=r,this.left=e,this.right=t}return Object.defineProperty(e.prototype,"width",{get:function(){return this.right-this.left},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!0,configurable:!0}),e.prototype.equals=function(e){return parseFloat(this.top.toFixed(4))===parseFloat(e.top.toFixed(4))&&parseFloat(this.bottom.toFixed(4))===parseFloat(e.bottom.toFixed(4))&&parseFloat(this.left.toFixed(4))===parseFloat(e.left.toFixed(4))&&parseFloat(this.right.toFixed(4))===parseFloat(e.right.toFixed(4))},e}());function vs(e,t,n){return{targetEdge:e,alignmentEdge:t,isAuto:n}}var ys=((qs={})[sa]=vs(fs.top,fs.left),qs[ua]=vs(fs.top),qs[la]=vs(fs.top,fs.right),qs[ca]=vs(fs.top,void 0,!0),qs[fa]=vs(fs.bottom,fs.left),qs[da]=vs(fs.bottom),qs[pa]=vs(fs.bottom,fs.right),qs[ha]=vs(fs.bottom,void 0,!0),qs[ma]=vs(fs.left,fs.top),qs[ga]=vs(fs.left),qs[va]=vs(fs.left,fs.bottom),qs[ya]=vs(fs.right,fs.top),qs[ba]=vs(fs.right),qs[wa]=vs(fs.right,fs.bottom),qs);function bs(e,t){return!(e.topt.bottom)&&(!(e.leftt.right)))}function ws(e,t){var n=new Array;return e.topt.bottom&&n.push(fs.bottom),e.leftt.right&&n.push(fs.right),n}function ks(e,t){return e[fs[t]]}function xs(e,t,n){return e[fs[t]]=n,e}function _s(e,t){var n=Ns(t);return(ks(e,n.positiveEdge)+ks(e,n.negativeEdge))/2}function Es(e,t){return e>0?t:-1*t}function Cs(e,t){return Es(e,ks(t,e))}function As(e,t,n){return Es(n,ks(e,n)-ks(t,n))}function Ss(e,t,n){var r=ks(e,t)-n;return e=xs(e,t,n),e=xs(e,-1*t,ks(e,-1*t)-r)}function Ts(e,t,n,r){return void 0===r&&(r=0),Ss(e,n,ks(t,n)+Es(n,r))}function Is(e,t,n){return Cs(n,e)>Cs(n,t)}function Os(e,t,n,r,o,i,a){void 0===o&&(o=0);var s=r.alignmentEdge,u=r.alignTargetEdge,l={elementRectangle:e,targetEdge:r.targetEdge,alignmentEdge:s};i||a||(l=function(e,t,n,r,o){void 0===o&&(o=0);for(var i=[fs.left,fs.right,fs.bottom,fs.top],a=e,s=r.targetEdge,u=r.alignmentEdge,l=0;l<4;l++){if(Is(a,n,s))return{elementRectangle:a,targetEdge:s,alignmentEdge:u};i.splice(i.indexOf(s),1),i.indexOf(-1*s)>-1?s*=-1:(u=s,s=i.slice(-1)[0]),a=Ms(e,t,{targetEdge:s,alignmentEdge:u},o)}return{elementRectangle:e,targetEdge:r.targetEdge,alignmentEdge:u}}(e,t,n,r,o));var c=ws(e,n);if(u){if(l.alignmentEdge&&c.indexOf(-1*l.alignmentEdge)>-1){var f=function(e,t,n,r){var o=e.alignmentEdge,i=e.targetEdge,a=-1*o;return{elementRectangle:Ms(e.elementRectangle,t,{targetEdge:i,alignmentEdge:a},n,r),targetEdge:i,alignmentEdge:a}}(l,t,o,a);if(bs(f.elementRectangle,n))return f}}else for(var d=0,p=c;dMath.abs(As(e,n,-1*t))?-1*t:t}function Ls(e){return Math.sqrt(e*e*2)}function Rs(e,t,n){if(void 0===e&&(e=ha),n)return{alignmentEdge:n.alignmentEdge,isAuto:n.isAuto,targetEdge:n.targetEdge};var r=se({},ys[e]);return Ra()?(r.alignmentEdge&&r.alignmentEdge%2==0&&(r.alignmentEdge=-1*r.alignmentEdge),void 0!==t?ys[t]:r):r}function js(e,t,n){var r=_s(t,e),o=_s(n,e),i=Ns(e),a=i.positiveEdge,s=i.negativeEdge;return r<=o?a:s}function Fs(e,t,n,r,o,i,a){var s=Ms(e,t,r,o,a);return bs(s,n)?{elementRectangle:s,targetEdge:r.targetEdge,alignmentEdge:r.alignmentEdge}:Os(e,t,n,r,o,i,a)}function zs(e,t,n){var r=-1*e.targetEdge,o=new gs(0,e.elementRectangle.width,0,e.elementRectangle.height),i={},a=Ds(e.elementRectangle,e.alignmentEdge?e.alignmentEdge:Ns(r).positiveEdge,n);return i[fs[r]]=ks(t,r),i[fs[a]]=As(t,o,a),{elementPosition:se({},i),closestEdge:js(e.targetEdge,t,o),targetEdge:r}}function Bs(e,t){var n=t.targetRectangle,r=Ns(t.targetEdge),o=r.positiveEdge,i=r.negativeEdge,a=_s(n,t.targetEdge),s=new gs(e/2,t.elementRectangle.width-e/2,e/2,t.elementRectangle.height-e/2),u=new gs(0,e,0,e);return Is(u=Ps(u=Ss(u,-1*t.targetEdge,-e/2),-1*t.targetEdge,a-Cs(o,t.elementRectangle)),s,o)?Is(u,s,i)||(u=Ts(u,s,i)):u=Ts(u,s,o),u}function Us(e){var t=e.getBoundingClientRect();return new gs(t.left,t.right,t.top,t.bottom)}function Hs(e){return new gs(e.left,e.right,e.top,e.bottom)}function Ws(e,t,n,r,o){var i=0,a=ys[t],s=o?-1*a.targetEdge:a.targetEdge;return(i=s===fs.top?ks(e,a.targetEdge)-r.top-n:s===fs.bottom?r.bottom-ks(e,a.targetEdge)-n:r.bottom-e.top-n)>0?i:r.height}function Vs(e,t,n,r){var o=e.gapSpace?e.gapSpace:0,i=function(e,t){var n;if(t){if(t.preventDefault){var r=t;n=new gs(r.clientX,r.clientX,r.clientY,r.clientY)}else if(t.getBoundingClientRect)n=Us(t);else{var o=t;n=new gs(o.x,o.x,o.y,o.y)}if(!bs(n,e))for(var i=0,a=ws(n,e);i0&&n>t&&(e=n-t>1)}this.state.needsVerticalScrollBar!==e&&this.setState({needsVerticalScrollBar:e})}},t.defaultProps={shouldRestoreFocus:!0},t}(r.Component),Qs=(($s={})[fs.top]=dr.slideUpIn10,$s[fs.bottom]=dr.slideDownIn10,$s[fs.left]=dr.slideLeftIn10,$s[fs.right]=dr.slideRightIn10,$s),Js=fo({disableCaching:!0}),Xs=0,eu=0,tu={opacity:0,filter:"opacity(0)"},nu=["role","aria-roledescription"],ru=function(e){function t(t){var n=e.call(this,t)||this;return n._hostElement=r.createRef(),n._calloutElement=r.createRef(),n._hasListeners=!1,n._disposables=[],n.dismiss=function(e){var t=n.props.onDismiss;t&&t(e)},n._dismissOnScroll=function(e){var t=n.props.preventDismissOnScroll;n.state.positions&&!t&&n._dismissOnClickOrScroll(e)},n._dismissOnResize=function(e){n.props.preventDismissOnResize||n.dismiss(e)},n._dismissOnLostFocus=function(e){n.props.preventDismissOnLostFocus||n._dismissOnClickOrScroll(e)},n._setInitialFocus=function(){n.props.setInitialFocus&&!n._didSetInitialFocus&&n.state.positions&&n._calloutElement.current&&(n._didSetInitialFocus=!0,n._async.requestAnimationFrame((function(){return Ca(n._calloutElement.current)}),n._calloutElement.current))},n._onComponentDidMount=function(){n._addListeners(),n.props.onLayerMounted&&n.props.onLayerMounted(),n._updateAsyncPosition(),n._setHeightOffsetEveryFrame()},n._async=new Fo(n),n._didSetInitialFocus=!1,n.state={positions:void 0,slideDirectionalClassName:void 0,calloutElementRect:void 0,heightOffset:0},n._positionAttempts=0,n}return ae(t,e),t.prototype.componentDidUpdate=function(){this.props.hidden?this._hasListeners&&this._removeListeners():(this._setInitialFocus(),this._hasListeners||this._addListeners(),this._updateAsyncPosition())},t.prototype.shouldComponentUpdate=function(e,t){return(!this.props.hidden||!e.hidden)&&(!zr(this.props,e)||!zr(this.state,t))},t.prototype.componentWillMount=function(){this._setTargetWindowAndElement(this._getTarget())},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._disposables.forEach((function(e){return e()}))},t.prototype.componentWillUpdate=function(e){var t=this._getTarget(e);(t!==this._getTarget()||"string"==typeof t||t instanceof String)&&!this._blockResetHeight&&(this._maxHeight=void 0,this._setTargetWindowAndElement(t)),e.gapSpace===this.props.gapSpace&&this.props.beakWidth===e.beakWidth||(this._maxHeight=void 0),e.finalHeight!==this.props.finalHeight&&this._setHeightOffsetEveryFrame(),e.hidden||e.hidden===this.props.hidden||(this._maxHeight=void 0,this._setTargetWindowAndElement(t),this.setState({positions:void 0}),this._didSetInitialFocus=!1,this._bounds=void 0),this._blockResetHeight=!1},t.prototype.componentDidMount=function(){this.props.hidden||this._onComponentDidMount()},t.prototype.render=function(){if(!this._targetWindow)return null;var e=this.props.target,t=this.props,n=t.styles,o=t.style,i=t.ariaLabel,a=t.ariaDescribedBy,s=t.ariaLabelledBy,u=t.className,l=t.isBeakVisible,c=t.children,f=t.beakWidth,d=t.calloutWidth,p=t.calloutMaxWidth,h=t.finalHeight,m=t.hideOverflow,g=void 0===m?!!h:m,v=t.backgroundColor,y=t.calloutMaxHeight,b=t.onScroll,w=t.shouldRestoreFocus,k=void 0===w||w;e=this._getTarget();var x=this.state.positions,_=this._getMaxHeight()?this._getMaxHeight()+this.state.heightOffset:void 0,E=y&&_&&y<_?y:_,C=g,A=l&&!!e;this._classNames=Js(n,{theme:this.props.theme,className:u,overflowYHidden:C,calloutWidth:d,positions:x,beakWidth:f,backgroundColor:v,calloutMaxWidth:p});var S=se({},o,{maxHeight:E},C&&{overflowY:"hidden"}),T=this.props.hidden?{visibility:"hidden"}:void 0;return r.createElement("div",{ref:this._hostElement,className:this._classNames.container,style:T},r.createElement("div",se({},$r(this.props,Yr,nu),{className:wo(this._classNames.root,x&&x.targetEdge&&Qs[x.targetEdge]),style:x?x.elementPosition:tu,tabIndex:-1,ref:this._calloutElement}),A&&r.createElement("div",{className:this._classNames.beak,style:this._getBeakPosition()}),A&&r.createElement("div",{className:this._classNames.beakCurtain}),r.createElement(Gs,se({},$r(this.props,nu),{ariaLabel:i,ariaDescribedBy:a,ariaLabelledBy:s,className:this._classNames.calloutMain,onDismiss:this.dismiss,onScroll:b,shouldRestoreFocus:k,style:S}),c)))},t.prototype._dismissOnClickOrScroll=function(e){var t=e.target,n=this._hostElement.current&&!Ea(this._hostElement.current,t);(!this._target&&n||e.target!==this._targetWindow&&n&&(this._target.stopPropagation||!this._target||t!==this._target&&!Ea(this._target,t)))&&this.dismiss(e)},t.prototype._addListeners=function(){var e=this;this._async.setTimeout((function(){e._disposables.push(Wa(e._targetWindow,"scroll",e._dismissOnScroll,!0),Wa(e._targetWindow,"resize",e._dismissOnResize,!0),Wa(e._targetWindow.document.documentElement,"focus",e._dismissOnLostFocus,!0),Wa(e._targetWindow.document.documentElement,"click",e._dismissOnLostFocus,!0)),e._hasListeners=!0}),0)},t.prototype._removeListeners=function(){this._disposables.forEach((function(e){return e()})),this._disposables=[],this._hasListeners=!1},t.prototype._updateAsyncPosition=function(){var e=this;this._async.requestAnimationFrame((function(){return e._updatePosition()}),this._calloutElement.current)},t.prototype._getBeakPosition=function(){var e=this.state.positions,t=se({},e&&e.beakPosition?e.beakPosition.elementPosition:null);return t.top||t.bottom||t.left||t.right||(t.left=eu,t.top=Xs),t},t.prototype._updatePosition=function(){this._setTargetWindowAndElement(this._getTarget());var e=this.state.positions,t=this._hostElement.current,n=this._calloutElement.current,r=!!this.props.target;if(t&&n&&(!r||this._target)){var o=void 0;(o=Br(o,this.props)).bounds=this._getBounds(),o.target=this._target;var i=this.props.finalHeight?Ys(o,t,n,e):function(e,t,n,r){return Zs(e,t,n,r)}(o,t,n,e);!e&&i||e&&i&&!this._arePositionsEqual(e,i)&&this._positionAttempts<5?(this._positionAttempts++,this.setState({positions:i})):this._positionAttempts>0&&(this._positionAttempts=0,this.props.onPositioned&&this.props.onPositioned(this.state.positions))}},t.prototype._getBounds=function(){if(!this._bounds){var e=this.props.bounds;e||(e={top:0+this.props.minPagePadding,left:0+this.props.minPagePadding,right:this._targetWindow.innerWidth-this.props.minPagePadding,bottom:this._targetWindow.innerHeight-this.props.minPagePadding,width:this._targetWindow.innerWidth-2*this.props.minPagePadding,height:this._targetWindow.innerHeight-2*this.props.minPagePadding}),this._bounds=e}return this._bounds},t.prototype._getMaxHeight=function(){var e=this;if(!this._maxHeight)if(this.props.directionalHintFixed&&this._target){var t=this.props.isBeakVisible?this.props.beakWidth:0,n=(this.props.gapSpace?this.props.gapSpace:0)+t+2;this._async.requestAnimationFrame((function(){e._target&&(e._maxHeight=function(e,t,n,r,o){void 0===n&&(n=0);var i=e,a=e,s=e,u=r?Hs(r):new gs(0,window.innerWidth-Ka(),0,window.innerHeight);return Ws(i.stopPropagation?new gs(i.clientX,i.clientX,i.clientY,i.clientY):void 0!==s.x&&void 0!==s.y?new gs(s.x,s.x,s.y,s.y):Us(a),t,n,u,o)}(e._target,e.props.directionalHint,n,e._getBounds(),e.props.coverTarget),e._blockResetHeight=!0,e.forceUpdate())}),this._target)}else this._maxHeight=this._getBounds().height-2;return this._maxHeight},t.prototype._arePositionsEqual=function(e,t){return this._comparePositions(e.elementPosition,t.elementPosition)&&this._comparePositions(e.beakPosition.elementPosition,t.beakPosition.elementPosition)},t.prototype._comparePositions=function(e,t){for(var n in t)if(t.hasOwnProperty(n)){var r=e[n],o=t[n];if(void 0===r||void 0===o)return!1;if(r.toFixed(2)!==o.toFixed(2))return!1}return!0},t.prototype._setTargetWindowAndElement=function(e){var t=this._calloutElement.current;if(e)if("string"==typeof e){var n=an(t);this._target=n?n.querySelector(e):null,this._targetWindow=$e(t)}else if(e.stopPropagation)this._targetWindow=$e(e.toElement),this._target=e;else if(e.getBoundingClientRect){var r=e;this._targetWindow=$e(r),this._target=e}else this._targetWindow=$e(t),this._target=e;else this._targetWindow=$e(t)},t.prototype._setHeightOffsetEveryFrame=function(){var e=this;this._calloutElement.current&&this.props.finalHeight&&(this._setHeightOffsetTimer=this._async.requestAnimationFrame((function(){var t=e._calloutElement.current&&e._calloutElement.current.lastChild;if(t){var n=t.scrollHeight-t.offsetHeight;e.setState({heightOffset:e.state.heightOffset+n}),t.offsetHeight-1&&o._virtual.children.splice(i,1)}n._virtual.parent=r||void 0,r&&(r._virtual||(r._virtual={children:[]}),r._virtual.children.push(n))}(o,n._rootRef.current),n.props.insertFirst?r.insertBefore(o,r.firstChild):r.appendChild(o),n.setState({hostId:e,layerElement:o},(function(){var e=n.props,t=e.onLayerDidMount,r=e.onLayerMounted;r&&r(),t&&t()}))}},n.state={},n}return ae(t,e),t.prototype.componentDidMount=function(){var e=this.props.hostId;this._createLayerElement(),e&&function(e,t){hu[e]||(hu[e]=[]),hu[e].push(t)}(e,this._createLayerElement)},t.prototype.render=function(){var e=this.state.layerElement,t=this._getClassNames(),n=this.props.eventBubblingEnabled;return r.createElement("span",{className:"ms-layer",ref:this._rootRef},e&&os.createPortal(r.createElement(fu,se({},!n&&function(){mu||(mu={},["onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOver","onMouseOut","onMouseUp","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onInvalid","onSubmit"].forEach((function(e){return mu[e]=yu})));return mu}(),{className:t.content}),this.props.children),e))},t.prototype.componentDidUpdate=function(){this.props.hostId!==this.state.hostId&&this._createLayerElement()},t.prototype.componentWillUnmount=function(){var e=this.props.hostId;this._removeLayerElement(),e&&function(e,t){if(hu[e]){var n=hu[e].indexOf(t);n>=0&&(hu[e].splice(n,1),0===hu[e].length&&delete hu[e])}}(e,this._createLayerElement)},t.prototype._removeLayerElement=function(){var e=this.props.onLayerWillUnmount,t=this.state.layerElement;if(e&&e(),t&&t.parentNode){var n=t.parentNode;n&&n.removeChild(t)}},t.prototype._getClassNames=function(){var e=this.props,t=e.className,n=e.styles,r=e.theme;return gu(n,{theme:r,className:t,isNotHost:!this.props.hostId})},t.prototype._getHost=function(){var e=this.props.hostId,t=an(this._rootRef.current);if(t){if(e)return t.getElementById(e);var n=pu;return n?t.querySelector(n):t.body}},t.defaultProps={onLayerDidMount:function(){},onLayerWillUnmount:function(){}},t=le([du("Layer",["theme","hostId"])],t)}(r.Component),yu=function(e){e.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==e.type&&"mouseleave"!==e.type&&e.stopPropagation()};var bu={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},wu=oo(vu,(function(e){var t=e.className,n=e.isNotHost,r=e.theme,o=Gn(bu,r);return{root:[o.root,r.fonts.medium,n&&[o.rootNoHost,{position:"fixed",zIndex:Dn.Layer,top:0,left:0,bottom:0,right:0,visibility:"hidden"}],t],content:[o.content,{visibility:"visible"}]}}),void 0,{scope:"Layer",fields:["hostId","theme","styles"]}),ku=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ae(t,e),t.prototype.render=function(){var e=this.props,t=e.layerProps,n=ue(e,["layerProps"]),o=r.createElement(au,se({},n));return this.props.doNotLayer?o:r.createElement(wu,se({},t),o)},t}(r.Component),xu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.openSubMenu=function(){var e=t.props,n=e.item,r=e.openSubMenu,o=e.getSubmenuTarget;if(o){var i=o();ns(n)&&r&&i&&r(n,i)}},t.dismissSubMenu=function(){var e=t.props,n=e.item,r=e.dismissSubMenu;ns(n)&&r&&r()},t.dismissMenu=function(e){var n=t.props.dismissMenu;n&&n(void 0,e)},t}return ae(t,e),t.prototype.render=function(){var e=this.props,t=e.item,n=e.classNames;return r.createElement("div",{className:t.split?n.linkContentMenu:n.linkContent},function(e){var t=e.onCheckmarkClick,n=e.item,o=e.classNames,i=ts(n);if(t){return r.createElement(_o,{iconName:i?"CheckMark":"",className:o.checkmarkIcon,onClick:function(e){return t(n,e)}})}return null}(this.props),function(e){var t=e.item,n=e.hasIcons,o=e.classNames,i=t.iconProps;return n?t.onRenderIcon?t.onRenderIcon(e):r.createElement(_o,se({},i,{className:o.icon})):null}(this.props),function(e){var t=e.item,n=e.classNames;return t.text||t.name?r.createElement("span",{className:n.label},t.text||t.name):null}(this.props),function(e){var t=e.item,n=e.classNames;return t.secondaryText?r.createElement("span",{className:n.secondaryText},t.secondaryText):null}(this.props),function(e){var t=e.item,n=e.classNames;return ns(t)?r.createElement(_o,se({iconName:Ra()?"ChevronLeft":"ChevronRight"},t.submenuIconProps,{className:n.subMenuIcon})):null}(this.props))},t}(Bo),_u=Zn((function(e){return Ve({wrapper:{display:"inline-flex",height:"100%",alignItems:"center"},divider:{width:1,height:"100%",backgroundColor:e.palette.neutralTertiaryAlt}})})),Eu=vn(0,639),Cu=Zn((function(){return{selectors:(e={},e[gn]={backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText",MsHighContrastAdjust:"none"},e)};var e})),Au=Zn((function(e){var t,n,r,o,i,a,s=e.semanticColors,u=e.fonts,l=s.menuItemBackgroundHovered,c=s.menuItemBackgroundChecked,f=s.bodyDivider;return oe({item:[u.medium,{color:s.bodyText,position:"relative",boxSizing:"border-box"}],divider:{display:"block",height:"1px",backgroundColor:f,position:"relative"},root:[Fn(e),u.medium,{color:s.bodyText,backgroundColor:"transparent",border:"none",width:"100%",height:"32px",lineHeight:"32px",display:"block",cursor:"pointer",padding:"0px 8px 0 4px",textAlign:"left"}],rootDisabled:{color:s.disabledBodyText,cursor:"default",pointerEvents:"none",selectors:(t={},t[gn]={color:"GrayText",opacity:1},t)},rootHovered:se({backgroundColor:l},Cu()),rootFocused:se({backgroundColor:l},Cu()),rootChecked:se({},Cu()),rootPressed:se({backgroundColor:c},Cu()),rootExpanded:se({backgroundColor:c,color:s.bodyTextChecked},Cu()),linkContent:{whiteSpace:"nowrap",height:"inherit",display:"flex",alignItems:"center",maxWidth:"100%"},anchorLink:{padding:"0px 8px 0 4px",textRendering:"auto",color:"inherit",letterSpacing:"normal",wordSpacing:"normal",textTransform:"none",textIndent:"0px",textShadow:"none",textDecoration:"none",boxSizing:"border-box"},label:{margin:"0 4px",verticalAlign:"middle",display:"inline-block",flexGrow:"1",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},secondaryText:{color:e.palette.neutralSecondary,paddingLeft:"20px",textAlign:"right"},icon:{display:"inline-block",minHeight:"1px",maxHeight:"32px",width:"14px",margin:"0 4px",verticalAlign:"middle",flexShrink:"0"},iconColor:{color:s.menuIcon,selectors:(n={},n[gn]={color:"inherit"},n["$root:hover &"]={selectors:(r={},r[gn]={color:"HighlightText"},r)},n["$root:focus &"]={selectors:(o={},o[gn]={color:"HighlightText"},o)},n)},iconDisabled:{color:s.disabledBodyText},checkmarkIcon:{color:s.bodySubtext,selectors:(i={},i[gn]={color:"HighlightText"},i)},subMenuIcon:{height:"32px",lineHeight:"32px",textAlign:"center",display:"inline-block",verticalAlign:"middle",flexShrink:"0",fontSize:Qt.small,selectors:(a={},a[Eu]={fontSize:Qt.icon},a)},splitButtonFlexContainer:[Fn(e),{display:"flex",height:"32px",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"}]})})),Su=vn(0,639),Tu=Zn((function(e){return Ve(_u(e),{wrapper:{position:"absolute",right:28,selectors:(t={},t[Su]={right:32},t)},divider:{height:16,width:1}});var t})),Iu={item:"ms-ContextualMenu-item",divider:"ms-ContextualMenu-divider",root:"ms-ContextualMenu-link",isChecked:"is-checked",isExpanded:"is-expanded",isDisabled:"is-disabled",linkContent:"ms-ContextualMenu-linkContent",linkContentMenu:"ms-ContextualMenu-linkContent",icon:"ms-ContextualMenu-icon",iconColor:"ms-ContextualMenu-iconColor",checkmarkIcon:"ms-ContextualMenu-checkmarkIcon",subMenuIcon:"ms-ContextualMenu-submenuIcon",label:"ms-ContextualMenu-itemText",secondaryText:"ms-ContextualMenu-secondaryText"},Ou=Zn((function(e,t,n,r,o,i,a,s,u,l,c,f){var d,p,h,m,g=Au(e),v=Gn(Iu,e);return Ve({item:[v.item,g.item,a],divider:[v.divider,g.divider,s],root:[v.root,g.root,r&&[v.isChecked,g.rootChecked],o&&g.anchorLink,n&&[v.isExpanded,g.rootExpanded],t&&[v.isDisabled,g.rootDisabled],!t&&!n&&[{selectors:(d={":hover":g.rootHovered,":active":g.rootPressed},d["."+Ln+" &:focus, ."+Ln+" &:focus:hover"]=g.rootFocused,d["."+Ln+" &:hover"]={background:"inherit;"},d)}],f],splitPrimary:[g.root,r&&["is-checked",g.rootChecked],(t||c)&&["is-disabled",g.rootDisabled],!(t||c)&&!r&&[{selectors:(p={":hover":g.rootHovered,":hover ~ $splitMenu":g.rootHovered,":active":g.rootPressed},p["."+Ln+" &:focus, ."+Ln+" &:focus:hover"]=g.rootFocused,p["."+Ln+" &:hover"]={background:"inherit;"},p)}]],splitMenu:[g.root,{flexBasis:"0",padding:"0 8px",minWidth:28},n&&["is-expanded",g.rootExpanded],t&&["is-disabled",g.rootDisabled],!t&&!n&&[{selectors:(h={":hover":g.rootHovered,":active":g.rootPressed},h["."+Ln+" &:focus, ."+Ln+" &:focus:hover"]=g.rootFocused,h["."+Ln+" &:hover"]={background:"inherit;"},h)}]],anchorLink:g.anchorLink,linkContent:[v.linkContent,g.linkContent],linkContentMenu:[v.linkContentMenu,g.linkContent,{justifyContent:"center"}],icon:[v.icon,i&&g.iconColor,g.icon,u,t&&[v.isDisabled,g.iconDisabled]],iconColor:g.iconColor,checkmarkIcon:[v.checkmarkIcon,i&&g.checkmarkIcon,g.icon,u],subMenuIcon:[v.subMenuIcon,g.subMenuIcon,l],label:[v.label,g.label],secondaryText:[v.secondaryText,g.secondaryText],splitContainer:[g.splitButtonFlexContainer,{alignItems:"flex-start"},!t&&!r&&[{selectors:(m={},m["."+Ln+" &:focus, ."+Ln+" &:focus:hover"]=g.rootFocused,m)}]]})})),Pu=function(e){var t=e.theme,n=e.disabled,r=e.expanded,o=e.checked,i=e.isAnchorLink,a=e.knownIcon,s=e.itemClassName,u=e.dividerClassName,l=e.iconClassName,c=e.subMenuClassName,f=e.primaryDisabled,d=e.className;return Ou(t,n,r,o,i,a,s,u,l,c,f,d)},Mu=oo(xu,Pu,void 0,{scope:"ContextualMenuItem"}),Nu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onItemMouseEnter=function(e){var n=t.props,r=n.item,o=n.onItemMouseEnter;o&&o(r,e,e.currentTarget)},t._onItemClick=function(e){var n=t.props,r=n.item,o=n.onItemClickBase;o&&o(r,e,e.currentTarget)},t._onItemMouseLeave=function(e){var n=t.props,r=n.item,o=n.onItemMouseLeave;o&&o(r,e)},t._onItemKeyDown=function(e){var n=t.props,r=n.item,o=n.onItemKeyDown;o&&o(r,e)},t._onItemMouseMove=function(e){var n=t.props,r=n.item,o=n.onItemMouseMove;o&&o(r,e,e.currentTarget)},t._getSubMenuId=function(e){var n=t.props.getSubMenuId;if(n)return n(e)},t._getSubmenuTarget=function(){},t}return ae(t,e),t.prototype.shouldComponentUpdate=function(e){return!zr(e,this.props)},t}(Bo),Du=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._anchor=r.createRef(),t._getSubmenuTarget=function(){return t._anchor.current?t._anchor.current:void 0},t._onItemClick=function(e){var n=t.props,r=n.item,o=n.onItemClick;o&&o(r,e)},t}return ae(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.item,o=t.classNames,i=t.index,a=t.focusableElementIndex,s=t.totalItemCount,u=t.hasCheckmarks,l=t.hasIcons,c=t.contextualMenuItemAs,f=void 0===c?Mu:c,d=t.expandedMenuItemKey,p=t.onItemClick,h=t.openSubMenu,m=t.dismissSubMenu,g=t.dismissMenu,v=n.rel;n.target&&"_blank"===n.target.toLowerCase()&&(v=v||"nofollow noopener noreferrer");var y=this._getSubMenuId(n),b=ns(n),w=$r(n,Kr),k=rs(n),x=n.itemProps,_=n.keytipProps;return _&&b&&(_=se({},_,{hasMenu:!0})),r.createElement("div",null,r.createElement(Yo,{keytipProps:n.keytipProps,ariaDescribedBy:w["aria-describedby"],disabled:k},(function(t){return r.createElement("a",se({},w,t,{ref:e._anchor,href:n.href,target:n.target,rel:v,className:o.root,role:"menuitem","aria-owns":n.key===d?y:void 0,"aria-haspopup":b||void 0,"aria-expanded":b?n.key===d:void 0,"aria-posinset":a+1,"aria-setsize":s,"aria-disabled":rs(n),style:n.style,onClick:e._onItemClick,onMouseEnter:e._onItemMouseEnter,onMouseLeave:e._onItemMouseLeave,onMouseMove:e._onItemMouseMove,onKeyDown:b?e._onItemKeyDown:void 0}),r.createElement(f,se({componentRef:n.componentRef,item:n,classNames:o,index:i,onCheckmarkClick:u&&p?p:void 0,hasIcons:l,openSubMenu:h,dismissSubMenu:m,dismissMenu:g,getSubmenuTarget:e._getSubmenuTarget},x)))})))},t}(Nu),Lu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._btn=r.createRef(),t._getSubmenuTarget=function(){return t._btn.current?t._btn.current:void 0},t}return ae(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.item,o=t.classNames,i=t.index,a=t.focusableElementIndex,s=t.totalItemCount,u=t.hasCheckmarks,l=t.hasIcons,c=t.contextualMenuItemAs,f=void 0===c?Mu:c,d=t.expandedMenuItemKey,p=t.onItemMouseDown,h=t.onItemClick,m=t.openSubMenu,g=t.dismissSubMenu,v=t.dismissMenu,y=this._getSubMenuId(n),b=ts(n),w=null!==b,k=w?"menuitemcheckbox":"menuitem",x=ns(n),_=n.itemProps,E=n.ariaLabel,C=$r(n,Zr);delete C.disabled;var A={className:o.root,onClick:this._onItemClick,onKeyDown:x?this._onItemKeyDown:void 0,onMouseEnter:this._onItemMouseEnter,onMouseLeave:this._onItemMouseLeave,onMouseDown:function(e){return p?p(n,e):void 0},onMouseMove:this._onItemMouseMove,href:n.href,title:n.title,"aria-label":E,"aria-haspopup":x||void 0,"aria-owns":n.key===d?y:void 0,"aria-expanded":x?n.key===d:void 0,"aria-checked":w?!!b:void 0,"aria-posinset":a+1,"aria-setsize":s,"aria-disabled":rs(n),role:n.role||k,style:n.style},S=n.keytipProps;return S&&x&&(S=se({},S,{hasMenu:!0})),r.createElement(Yo,{keytipProps:S,ariaDescribedBy:C["aria-describedby"],disabled:rs(n)},(function(t){return r.createElement("button",se({ref:e._btn},C,A,t),r.createElement(f,se({componentRef:n.componentRef,item:n,classNames:o,index:i,onCheckmarkClick:u&&h?h:void 0,hasIcons:l,openSubMenu:m,dismissSubMenu:g,dismissMenu:v,getSubmenuTarget:e._getSubmenuTarget},_)))}))},t}(Nu),Ru=fo(),ju=oo((function(e){var t=e.styles,n=e.theme,o=e.getClassNames,i=e.className,a=Ru(t,{theme:n,getClassNames:o,className:i});return r.createElement("span",{className:a.wrapper},r.createElement("span",{className:a.divider}))}),(function(e){var t=e.theme,n=e.getClassNames,r=e.className;if(!t)throw new Error("Theme is undefined or null.");if(n){var o=n(t);return{wrapper:[o.wrapper],divider:[o.divider]}}return{wrapper:[{display:"inline-flex",height:"100%",alignItems:"center"},r],divider:[{width:1,height:"100%",backgroundColor:t.palette.neutralTertiaryAlt}]}}),void 0,{scope:"VerticalDivider"}),Fu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onItemKeyDown=function(e){var n=t.props,r=n.item,o=n.onItemKeyDown;e.which===wn?(t._executeItemClick(e),e.preventDefault(),e.stopPropagation()):o&&o(r,e)},t._getSubmenuTarget=function(){return t._splitButton},t._onItemMouseEnterPrimary=function(e){var n=t.props,r=n.item,o=n.onItemMouseEnter;o&&o(se({},r,{subMenuProps:void 0,items:void 0}),e,t._splitButton)},t._onItemMouseEnterIcon=function(e){var n=t.props,r=n.item,o=n.onItemMouseEnter;o&&o(r,e,t._splitButton)},t._onItemMouseMovePrimary=function(e){var n=t.props,r=n.item,o=n.onItemMouseMove;o&&o(se({},r,{subMenuProps:void 0,items:void 0}),e,t._splitButton)},t._onItemMouseMoveIcon=function(e){var n=t.props,r=n.item,o=n.onItemMouseMove;o&&o(r,e,t._splitButton)},t._onIconItemClick=function(e){var n=t.props,r=n.item,o=n.onItemClickBase;o&&o(r,e,t._splitButton?t._splitButton:e.currentTarget)},t._executeItemClick=function(e){var n=t.props,r=n.item,o=n.executeItemClick,i=n.onItemClick;if(!r.disabled&&!r.isDisabled)return t._processingTouch&&i?i(r,e):void(o&&o(r,e))},t._onTouchStart=function(e){t._splitButton&&!("onpointerdown"in t._splitButton)&&t._handleTouchAndPointerEvent(e)},t._onPointerDown=function(e){"touch"===e.pointerType&&(t._handleTouchAndPointerEvent(e),e.preventDefault(),e.stopImmediatePropagation())},t}return ae(t,e),t.prototype.componentDidMount=function(){this._splitButton&&"onpointerdown"in this._splitButton&&this._events.on(this._splitButton,"pointerdown",this._onPointerDown,!0)},t.prototype.render=function(){var e=this,t=this.props,n=t.item,o=t.classNames,i=t.index,a=t.focusableElementIndex,s=t.totalItemCount,u=t.hasCheckmarks,l=t.hasIcons,c=t.onItemMouseLeave,f=t.expandedMenuItemKey,d=ns(n),p=n.keytipProps;return p&&(p=se({},p,{hasMenu:!0})),r.createElement(Yo,{keytipProps:p,disabled:rs(n)},(function(t){return r.createElement("div",{"data-ktp-target":t["data-ktp-target"],ref:function(t){return e._splitButton=t},role:"menuitem","aria-label":n.ariaLabel,className:o.splitContainer,"aria-disabled":rs(n),"aria-expanded":d?n.key===f:void 0,"aria-haspopup":!0,"aria-describedby":Wo(n.ariaDescription,t["aria-describedby"]),"aria-checked":n.isChecked||n.checked,"aria-posinset":a+1,"aria-setsize":s,onMouseEnter:e._onItemMouseEnterPrimary,onMouseLeave:c?c.bind(e,se({},n,{subMenuProps:null,items:null})):void 0,onMouseMove:e._onItemMouseMovePrimary,onKeyDown:e._onItemKeyDown,onClick:e._executeItemClick,onTouchStart:e._onTouchStart,tabIndex:0,"data-is-focusable":!0,"aria-roledescription":n["aria-roledescription"]},e._renderSplitPrimaryButton(n,o,i,u,l),e._renderSplitDivider(n),e._renderSplitIconButton(n,o,i,t))}))},t.prototype._renderSplitPrimaryButton=function(e,t,n,o,i){var a=this.props,s=a.contextualMenuItemAs,u=void 0===s?Mu:s,l=a.onItemClick,c={key:e.key,disabled:rs(e)||e.primaryDisabled,name:e.name,text:e.text||e.name,className:t.splitPrimary,canCheck:e.canCheck,isChecked:e.isChecked,checked:e.checked,iconProps:e.iconProps,"data-is-focusable":!1,"aria-hidden":!0},f=e.itemProps;return r.createElement("button",se({},$r(c,Zr)),r.createElement(u,se({"data-is-focusable":!1,item:c,classNames:t,index:n,onCheckmarkClick:o&&l?l:void 0,hasIcons:i},f)))},t.prototype._renderSplitDivider=function(e){var t=e.getSplitButtonVerticalDividerClassNames||Tu;return r.createElement(ju,{getClassNames:t})},t.prototype._renderSplitIconButton=function(e,t,n,o){var i=this.props,a=i.contextualMenuItemAs,s=void 0===a?Mu:a,u=i.onItemMouseLeave,l=i.onItemMouseDown,c=i.openSubMenu,f=i.dismissSubMenu,d=i.dismissMenu,p={onClick:this._onIconItemClick,disabled:rs(e),className:t.splitMenu,subMenuProps:e.subMenuProps,submenuIconProps:e.submenuIconProps,split:!0,key:e.key},h=se({},$r(p,Zr),{onMouseEnter:this._onItemMouseEnterIcon,onMouseLeave:u?u.bind(this,e):void 0,onMouseDown:function(t){return l?l(e,t):void 0},onMouseMove:this._onItemMouseMoveIcon,"data-is-focusable":!1,"data-ktp-execute-target":o["data-ktp-execute-target"],"aria-hidden":!0}),m=e.itemProps;return r.createElement("button",se({},h),r.createElement(s,se({componentRef:e.componentRef,item:p,classNames:t,index:n,hasIcons:!1,openSubMenu:c,dismissSubMenu:f,dismissMenu:d,getSubmenuTarget:this._getSubmenuTarget},m)))},t.prototype._handleTouchAndPointerEvent=function(e){var t=this,n=this.props.onTap;n&&n(e),this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout((function(){t._processingTouch=!1,t._lastTouchTimeoutId=void 0}),500)},t}(Nu),zu=fo({disableCaching:!0}),Bu=fo({disableCaching:!0});function Uu(e){return e.subMenuProps?e.subMenuProps.items:e.items}var Hu,Wu=function(e){function t(t){var n=e.call(this,t)||this;return n._mounted=!1,n.dismiss=function(e,t){var r=n.props.onDismiss;r&&r(e,t)},n._onRenderMenuList=function(e,t){var o=0;return r.createElement("ul",{className:n._classNames.list,onKeyDown:n._onKeyDown,onKeyUp:n._onKeyUp,role:"menu"},e.items.map((function(t,r){var i=n._renderMenuItem(t,r,o,e.totalItemCount,e.hasCheckmarks,e.hasIcons);if(t.itemType!==aa.Divider&&t.itemType!==aa.Header){var a=t.customOnRenderListLength?t.customOnRenderListLength:1;o+=a}return i})))},n._onKeyDown=function(e){n._lastKeyDownWasAltOrMeta=n._isAltOrMeta(e);var t=e.which===xn&&(Xa()||es());return n._keyHandler(e,n._shouldHandleKeyDown,t)},n._shouldHandleKeyDown=function(e){return e.which===xn||n._shouldCloseSubMenu(e)||e.which===In&&(e.altKey||e.metaKey)},n._onMenuFocusCapture=function(e){n.props.delayUpdateFocusOnHover&&(n._shouldUpdateFocusOnMouseEvent=!0)},n._onKeyUp=function(e){return n._keyHandler(e,n._shouldHandleKeyUp,!0)},n._shouldHandleKeyUp=function(e){var t=n._lastKeyDownWasAltOrMeta&&n._isAltOrMeta(e);return n._lastKeyDownWasAltOrMeta=!1,!!t&&!(es()||Xa())},n._keyHandler=function(e,t,r){var o=!1;return t(e)&&(n._isFocusingPreviousElement=!0,e.preventDefault(),e.stopPropagation(),n.dismiss(e,r),o=!0),o},n._shouldCloseSubMenu=function(e){var t=Ra()?On:Tn;return!(e.which!==t||!n.props.isSubMenu)&&(n._adjustedFocusZoneProps.direction===ka.vertical||!!n._adjustedFocusZoneProps.checkForNoWrap&&!Ma(e.target,"data-no-horizontal-wrap"))},n._onMenuKeyDown=function(e){if(!n._onKeyDown(e)&&n._host){var t,r,o=!(!e.altKey&&!e.metaKey),i=e.which===In,a=e.which===Pn;if(!o&&(i||a)){var s=i?(t=n._host,r=n._host.lastChild,Aa(t,r,!0,!1,!0,!0)):function(e,t,n){return Sa(e,t,!0,!1,!1,n)}(n._host,n._host.firstChild,!0);s&&(s.focus(),e.preventDefault(),e.stopPropagation())}}},n._onScroll=function(){n._isScrollIdle||void 0===n._scrollIdleTimeoutId?n._isScrollIdle=!1:(n._async.clearTimeout(n._scrollIdleTimeoutId),n._scrollIdleTimeoutId=void 0),n._scrollIdleTimeoutId=n._async.setTimeout((function(){n._isScrollIdle=!0}),250)},n._onItemMouseEnterBase=function(e,t,r){n._shouldIgnoreMouseEvent()||n._updateFocusOnMouseEvent(e,t,r)},n._onItemMouseMoveBase=function(e,t,r){var o=t.currentTarget;n._shouldUpdateFocusOnMouseEvent&&(n._gotMouseMove=!0,n._isScrollIdle&&void 0===n._enterTimerId&&o!==n._targetWindow.document.activeElement&&n._updateFocusOnMouseEvent(e,t,r))},n._onMouseItemLeave=function(e,t){if(!n._shouldIgnoreMouseEvent()&&(void 0!==n._enterTimerId&&(n._async.clearTimeout(n._enterTimerId),n._enterTimerId=void 0),void 0===n.state.expandedMenuItemKey))if(n._host.setActive)try{n._host.setActive()}catch(e){}else n._host.focus()},n._onItemMouseDown=function(e,t){e.onMouseDown&&e.onMouseDown(e,t)},n._onItemClick=function(e,t){n._onItemClickBase(e,t,t.currentTarget)},n._onItemClickBase=function(e,t,r){var o=Uu(e);n._cancelSubMenuTimer(),ns(e)||o&&o.length?e.key!==n.state.expandedMenuItemKey&&(n.setState({expandedByMouseClick:0!==t.nativeEvent.detail||"mouse"===t.nativeEvent.pointerType}),n._onItemSubMenuExpand(e,r)):n._executeItemClick(e,t),t.stopPropagation(),t.preventDefault()},n._onAnchorClick=function(e,t){n._executeItemClick(e,t),t.stopPropagation()},n._executeItemClick=function(e,t){if(!e.disabled&&!e.isDisabled){var r=!1;e.onClick?r=!!e.onClick(t,e):n.props.onItemClick&&(r=!!n.props.onItemClick(t,e)),(r||!t.defaultPrevented)&&n.dismiss(t,!0)}},n._onItemKeyDown=function(e,t){var r=Ra()?Tn:On;e.disabled||t.which!==r&&t.which!==wn&&(t.which!==Pn||!t.altKey&&!t.metaKey)||(n.setState({expandedByMouseClick:!1}),n._onItemSubMenuExpand(e,t.currentTarget),t.preventDefault())},n._cancelSubMenuTimer=function(){void 0!==n._enterTimerId&&(n._async.clearTimeout(n._enterTimerId),n._enterTimerId=void 0)},n._onItemSubMenuExpand=function(e,t){n.state.expandedMenuItemKey!==e.key&&(n.state.expandedMenuItemKey&&n._onSubMenuDismiss(),t.focus(),n.setState({expandedMenuItemKey:e.key,submenuTarget:t}))},n._onSubMenuDismiss=function(e,t){t?n.dismiss(e,t):n._mounted&&n.setState({dismissedMenuItemKey:n.state.expandedMenuItemKey,expandedMenuItemKey:void 0,submenuTarget:void 0})},n._getSubMenuId=function(e){var t=n.state.subMenuId;return e.subMenuProps&&e.subMenuProps.id&&(t=e.subMenuProps.id),t},n._onPointerAndTouchEvent=function(e){n._cancelSubMenuTimer()},n.state={contextualMenuItems:void 0,subMenuId:Wr("ContextualMenu")},n._warnDeprecations({getMenuClassNames:"styles"}),n._isFocusingPreviousElement=!1,n._isScrollIdle=!0,n._shouldUpdateFocusOnMouseEvent=!n.props.delayUpdateFocusOnHover,n._gotMouseMove=!1,n}return ae(t,e),t.prototype.shouldComponentUpdate=function(e,t){return(!this.props.hidden||!e.hidden)&&(!zr(this.props,e)||!zr(this.state,t))},t.prototype.componentWillUpdate=function(e){if(e.target!==this.props.target){var t=e.target;this._setTargetWindowAndElement(t)}e.hidden!==this.props.hidden&&(e.hidden?this._onMenuClosed():(this._onMenuOpened(),this._previousActiveElement=this._targetWindow?this._targetWindow.document.activeElement:null)),e.delayUpdateFocusOnHover!==this.props.delayUpdateFocusOnHover&&(this._shouldUpdateFocusOnMouseEvent=!e.delayUpdateFocusOnHover,this._gotMouseMove=this._shouldUpdateFocusOnMouseEvent&&this._gotMouseMove)},t.prototype.componentWillMount=function(){var e=this.props.target;this._setTargetWindowAndElement(e),this.props.hidden||(this._previousActiveElement=this._targetWindow?this._targetWindow.document.activeElement:null)},t.prototype.componentDidMount=function(){this.props.hidden||this._onMenuOpened(),this._mounted=!0},t.prototype.componentWillUnmount=function(){this._tryFocusPreviousActiveElement(),this.props.onMenuDismissed&&this.props.onMenuDismissed(this.props),this._events.dispose(),this._async.dispose(),this._mounted=!1},t.prototype.render=function(){var e=this,t=this.props.isBeakVisible,n=this.props,o=n.items,i=n.labelElementId,a=n.id,s=n.className,u=n.beakWidth,l=n.directionalHint,c=n.directionalHintForRTL,f=n.alignTargetEdge,d=n.gapSpace,p=n.coverTarget,h=n.ariaLabel,m=n.doNotLayer,g=n.target,v=n.bounds,y=n.useTargetWidth,b=n.useTargetAsMinWidth,w=n.directionalHintFixed,k=n.shouldFocusOnMount,x=n.shouldFocusOnContainer,_=n.title,E=n.styles,C=n.theme,A=n.calloutProps,S=n.onRenderSubMenu,T=void 0===S?this._onRenderSubMenu:S,I=n.onRenderMenuList,O=void 0===I?this._onRenderMenuList:I,P=n.focusZoneProps,M=n.getMenuClassNames;this._classNames=M?M(C,s):zu(E,{theme:C,className:s});var N=function e(t){for(var n=0,r=t;n0){for(var z=0,B=0,U=o;B0?r.createElement("li",{role:"presentation",key:s.key||e.key||"section-"+n},r.createElement("div",{role:"group"},r.createElement("ul",{className:this._classNames.list},s.topDivider&&this._renderSeparator(n,t,!0,!0),u&&this._renderListItem(u,e.key||n,t,e.title),s.items.map((function(e,t){return a._renderMenuItem(e,t,t,s.items.length,o,i)})),s.bottomDivider&&this._renderSeparator(n,t,!1,!0)))):void 0}},t.prototype._renderListItem=function(e,t,n,o){return r.createElement("li",{role:"presentation",title:o,key:t,className:n.item},e)},t.prototype._renderSeparator=function(e,t,n,o){return o||e>0?r.createElement("li",{role:"separator",key:"separator-"+e+(void 0===n?"":n?"-top":"-bottom"),className:t.divider,"aria-hidden":"true"}):null},t.prototype._renderNormalItem=function(e,t,n,r,o,i,a){return e.onRender?e.onRender(se({"aria-posinset":r+1,"aria-setsize":o},e),this.dismiss):e.href?this._renderAnchorMenuItem(e,t,n,r,o,i,a):e.split&&ns(e)?this._renderSplitButton(e,t,n,r,o,i,a):this._renderButtonItem(e,t,n,r,o,i,a)},t.prototype._renderHeaderMenuItem=function(e,t,n,o,i){var a=this.props.contextualMenuItemAs,s=void 0===a?Mu:a,u=e.itemProps,l=u&&$r(u,Yr);return r.createElement("div",se({className:this._classNames.header},l,{style:e.style}),r.createElement(s,se({item:e,classNames:t,index:n,onCheckmarkClick:o?this._onItemClick:void 0,hasIcons:i},u)))},t.prototype._renderAnchorMenuItem=function(e,t,n,o,i,a,s){var u=this.props.contextualMenuItemAs,l=this.state.expandedMenuItemKey;return r.createElement(Du,{item:e,classNames:t,index:n,focusableElementIndex:o,totalItemCount:i,hasCheckmarks:a,hasIcons:s,contextualMenuItemAs:u,onItemMouseEnter:this._onItemMouseEnterBase,onItemMouseLeave:this._onMouseItemLeave,onItemMouseMove:this._onItemMouseMoveBase,onItemMouseDown:this._onItemMouseDown,executeItemClick:this._executeItemClick,onItemClick:this._onAnchorClick,onItemKeyDown:this._onItemKeyDown,getSubMenuId:this._getSubMenuId,expandedMenuItemKey:l,openSubMenu:this._onItemSubMenuExpand,dismissSubMenu:this._onSubMenuDismiss,dismissMenu:this.dismiss})},t.prototype._renderButtonItem=function(e,t,n,o,i,a,s){var u=this.props.contextualMenuItemAs,l=this.state.expandedMenuItemKey;return r.createElement(Lu,{item:e,classNames:t,index:n,focusableElementIndex:o,totalItemCount:i,hasCheckmarks:a,hasIcons:s,contextualMenuItemAs:u,onItemMouseEnter:this._onItemMouseEnterBase,onItemMouseLeave:this._onMouseItemLeave,onItemMouseMove:this._onItemMouseMoveBase,onItemMouseDown:this._onItemMouseDown,executeItemClick:this._executeItemClick,onItemClick:this._onItemClick,onItemClickBase:this._onItemClickBase,onItemKeyDown:this._onItemKeyDown,getSubMenuId:this._getSubMenuId,expandedMenuItemKey:l,openSubMenu:this._onItemSubMenuExpand,dismissSubMenu:this._onSubMenuDismiss,dismissMenu:this.dismiss})},t.prototype._renderSplitButton=function(e,t,n,o,i,a,s){var u=this.props.contextualMenuItemAs,l=this.state.expandedMenuItemKey;return r.createElement(Fu,{item:e,classNames:t,index:n,focusableElementIndex:o,totalItemCount:i,hasCheckmarks:a,hasIcons:s,contextualMenuItemAs:u,onItemMouseEnter:this._onItemMouseEnterBase,onItemMouseLeave:this._onMouseItemLeave,onItemMouseMove:this._onItemMouseMoveBase,onItemMouseDown:this._onItemMouseDown,executeItemClick:this._executeItemClick,onItemClick:this._onItemClick,onItemClickBase:this._onItemClickBase,onItemKeyDown:this._onItemKeyDown,openSubMenu:this._onItemSubMenuExpand,dismissSubMenu:this._onSubMenuDismiss,dismissMenu:this.dismiss,expandedMenuItemKey:l,onTap:this._onPointerAndTouchEvent})},t.prototype._isAltOrMeta=function(e){return e.which===kn||"Meta"===e.key},t.prototype._shouldIgnoreMouseEvent=function(){return!this._isScrollIdle||!this._gotMouseMove},t.prototype._updateFocusOnMouseEvent=function(e,t,n){var r=this,o=n||t.currentTarget,i=this.props.subMenuHoverDelay,a=void 0===i?250:i;e.key!==this.state.expandedMenuItemKey&&(void 0!==this._enterTimerId&&(this._async.clearTimeout(this._enterTimerId),this._enterTimerId=void 0),void 0===this.state.expandedMenuItemKey&&o.focus(),ns(e)?(t.stopPropagation(),this._enterTimerId=this._async.setTimeout((function(){o.focus(),r.setState({expandedByMouseClick:!0}),r._onItemSubMenuExpand(e,o),r._enterTimerId=void 0}),a)):this._enterTimerId=this._async.setTimeout((function(){r._onSubMenuDismiss(t),o.focus(),r._enterTimerId=void 0}),a))},t.prototype._getSubmenuProps=function(){var e=this.state,t=e.submenuTarget,n=e.expandedMenuItemKey,r=this._findItemByKey(n),o=null;return r&&(o={items:Uu(r),target:t,onDismiss:this._onSubMenuDismiss,isSubMenu:!0,id:this.state.subMenuId,shouldFocusOnMount:!0,shouldFocusOnContainer:this.state.expandedByMouseClick,directionalHint:Ra()?ma:ya,className:this.props.className,gapSpace:0,isBeakVisible:!1},r.subMenuProps&&Br(o,r.subMenuProps)),o},t.prototype._findItemByKey=function(e){var t=this.props.items;return this._findItemByKeyFromItems(e,t)},t.prototype._findItemByKeyFromItems=function(e,t){for(var n=0,r=t;n *":{position:"relative",left:0,top:0}}}],rootDisabled:[Fn(e,{inset:-1,highContrastStyle:a}),{backgroundColor:o,color:i,cursor:"default",pointerEvents:"none",selectors:(t={":hover":Qu,":focus":Qu},t[gn]={color:"grayText",bordercolor:"grayText"},t)}],iconDisabled:{color:i},menuIconDisabled:{color:i},flexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},textContainer:{flexGrow:1},icon:Ju,menuIcon:[Ju,{fontSize:Qt.small}],label:{margin:"0 4px",lineHeight:"100%"},screenReaderText:Bn}})),el=Zn((function(e,t){var n;return oe(Xu(e),{root:{padding:"0 4px",height:"40px",color:e.palette.neutralPrimary,backgroundColor:"transparent",border:"1px solid transparent"},rootHovered:{color:e.palette.themePrimary,selectors:(n={},n[gn]={borderColor:"Highlight",color:"Highlight"},n)},iconHovered:{color:e.palette.themePrimary},rootPressed:{color:e.palette.black},rootExpanded:{color:e.palette.themePrimary},iconPressed:{color:e.palette.themeDarker},rootDisabled:{color:e.palette.neutralTertiary,backgroundColor:"transparent"},rootChecked:{color:e.palette.black},iconChecked:{color:e.palette.themeDarker},flexContainer:{justifyContent:"flex-start"},icon:{color:e.palette.themeDarkAlt},iconDisabled:{color:"inherit"},menuIcon:{color:e.palette.neutralSecondary},textContainer:{flexGrow:0}},t)})),tl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._skipComponentRefResolution=!0,t}return ae(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.theme;return r.createElement(Gu,se({},this.props,{variantClassName:"ms-Button--action ms-Button--command",styles:el(n,t),onRenderDescription:Ho}))},t=le([du("ActionButton",["theme","styles"],!0)],t)}(Bo),nl=o.a.memo((function(e){var t=Object(r.useContext)(to).history;return o.a.createElement(Jr,null,o.a.createElement(Jr,{horizontal:!0,horizontalAlign:"begin",verticalAlign:"baseline"},o.a.createElement(tl,{iconProps:{iconName:"revToggleKey"},onClick:function(){t.push("/")}},"Back to market list")))}));nl.propTypes={};var rl,ol,il=nl;!function(e){e[e.Parent=0]="Parent",e[e.Self=1]="Self"}(rl||(rl={})),function(e){e[e.zero=0]="zero",e[e.medium=1]="medium",e[e.long=2]="long"}(ol||(ol={}));var al=fo(),sl=oo(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onRenderContent=function(e){return r.createElement("p",{className:t._classNames.subText},e.content)},t}return ae(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.calloutProps,o=e.delay,i=e.directionalHint,a=e.directionalHintForRTL,s=e.styles,u=e.id,l=e.maxWidth,c=e.onRenderContent,f=void 0===c?this._onRenderContent:c,d=e.targetElement,p=e.theme;return this._classNames=al(s,{theme:p,className:t||n&&n.className,delay:o,beakWidth:n&&n.beakWidth,gapSpace:n&&n.gapSpace,maxWidth:l}),r.createElement(ku,se({target:d,directionalHint:i,directionalHintForRTL:a},n,$r(this.props,Yr,["id"]),{className:this._classNames.root}),r.createElement("div",{className:this._classNames.content,id:u,role:"tooltip",onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},f(this.props,this._onRenderContent)))},t.defaultProps={directionalHint:ua,delay:ol.medium,maxWidth:"364px",calloutProps:{isBeakVisible:!0,beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1}},t}(r.Component),(function(e){var t=e.className,n=e.delay,r=e.beakWidth,o=void 0===r?16:r,i=e.gapSpace,a=void 0===i?0:i,s=e.maxWidth,u=e.theme,l=u.palette,c=u.fonts,f=-(Math.sqrt(o*o/2)+a);return{root:["ms-Tooltip",u.fonts.medium,dr.fadeIn200,{background:l.white,padding:"8px",animationDelay:"300ms",maxWidth:s,selectors:{":after":{content:"''",position:"absolute",bottom:f,left:f,right:f,top:f,zIndex:0}}},n===ol.zero&&{animationDelay:"0s"},n===ol.long&&{animationDelay:"500ms"},t],content:["ms-Tooltip-content",c.small,{position:"relative",zIndex:1,color:l.neutralPrimary,wordWrap:"break-word",overflowWrap:"break-word",overflow:"hidden"}],subText:["ms-Tooltip-subtext",{fontSize:"inherit",fontWeight:"inherit",color:"inherit",margin:0}]}}),void 0,{scope:"Tooltip"}),ul=fo(),ll=function(e){function t(n){var o=e.call(this,n)||this;return o._tooltipHost=r.createRef(),o._closingTimer=-1,o.show=function(){o._toggleTooltip(!0)},o.dismiss=function(){o._hideTooltip()},o._onTooltipMouseEnter=function(e){var n,r=o.props.overflowMode;if(t._currentVisibleTooltip&&t._currentVisibleTooltip!==o&&t._currentVisibleTooltip.dismiss(),t._currentVisibleTooltip=o,void 0!==r){var i=o._getTargetElement();if(i&&(!function(e){return e.clientWidth=0){var o=n.keyToIndexMapping[e],i=r.Children.toArray(this.props.children)[o];"object"==typeof i&&i.type===jl&&this.props.onLinkClick(i,t)}},t.prototype._getClassNames=function(e){var t=e.theme,n=e.linkSize===Nl.large,r=e.linkFormat===Ml.tabs;return Rl(e.styles,{theme:t,rootIsLarge:n,rootIsTabs:r})},t}(Bo),zl={count:"ms-Pivot-count",icon:"ms-Pivot-icon",linkIsSelected:"is-selected",link:"ms-Pivot-link",linkContent:"ms-Pivot-linkContent",root:"ms-Pivot",rootIsLarge:"ms-Pivot--large",rootIsTabs:"ms-Pivot--tabs",text:"ms-Pivot-text"},Bl=function(e){var t,n,r=e.rootIsLarge,o=e.rootIsTabs,i=e.theme,a=i.palette,s=i.semanticColors;return[{color:s.actionLink,display:"inline-block",fontSize:Qt.medium,fontWeight:Jt.regular,lineHeight:"40px",marginRight:"8px",padding:"0 8px",textAlign:"center",position:"relative",backgroundColor:"transparent",border:0,selectors:(t={":before":{backgroundColor:"transparent",bottom:0,content:'""',height:"2px",left:"8px",position:"absolute",right:"8px",transition:"background-color "+Ut+" "+Bt},":after":{color:"transparent",content:"attr(data-content)",display:"block",fontWeight:Jt.bold,height:"1px",overflow:"hidden",visibility:"hidden"},":hover":{color:s.actionLinkHovered,cursor:"pointer"},":focus":{outline:"none"}},t["."+Ln+" &:focus"]={outline:"1px solid "+s.focusBorder},t["."+Ln+" &:focus:after"]={content:"attr(data-content)",position:"relative",border:0},t)},r&&{fontSize:Qt.large},o&&[{marginRight:0,height:"40px",lineHeight:"40px",backgroundColor:a.neutralLighter,padding:"0 10px",verticalAlign:"top",selectors:(n={":focus":{outlineOffset:"-1px"}},n["."+Ln+" &:focus::before"]={height:"auto",background:"transparent",transition:"none"},n)}]]},Ul=oo(Fl,(function(e){var t,n,r,o=e.className,i=e.rootIsLarge,a=e.rootIsTabs,s=e.theme,u=s.palette,l=s.semanticColors,c=Gn(zl,s);return{root:[c.root,s.fonts.medium,fr,{fontSize:Qt.medium,fontWeight:Jt.regular,position:"relative",color:u.themePrimary,whiteSpace:"nowrap"},i&&c.rootIsLarge,a&&c.rootIsTabs,o],link:[c.link].concat(Bl(e),[{selectors:{":hover::before":{boxSizing:"border-box",borderBottom:"2px solid transparent"}}},a&&{selectors:{"&:hover, &:focus":{color:u.black},":active":{backgroundColor:u.themePrimary}}}]),linkIsSelected:[c.link,c.linkIsSelected].concat(Bl(e),[{fontWeight:Jt.semibold,selectors:(t={":before":{boxSizing:"border-box",borderBottom:"2px solid "+l.inputBackgroundChecked,selectors:(n={},n[gn]={borderBottomColor:"Highlight"},n)}},t[gn]={color:"Highlight"},t)},a&&{backgroundColor:u.themePrimary,color:u.white,fontWeight:Jt.semilight,selectors:(r={":before":{backgroundColor:"transparent",transition:"none",position:"absolute",top:0,left:0,right:0,bottom:0,content:'""',height:"auto"},"&:active, &:hover":{color:u.white}},r[gn]={fontWeight:Jt.semibold,color:"HighlightText",background:"Highlight",MsHighContrastAdjust:"none"},r)}]),linkContent:[c.linkContent],text:[c.text,{display:"inline-block",verticalAlign:"top"}],count:[c.count,{marginLeft:"4px",display:"inline-block",verticalAlign:"top"}],icon:[c.icon,{selectors:{"& + $text":{marginLeft:"4px"}}}]}}),void 0,{scope:"Pivot"}),Hl=n(44),Wl=n.n(Hl);function Vl(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n background: #f4f4f4;\n border: 1px solid #ddd;\n border-left: 3px solid #f36d33;\n color: #666;\n page-break-inside: avoid;\n font-family: monospace;\n font-size: 15px;\n line-height: 1.6;\n margin-bottom: 1.6em;\n max-width: 100%;\n overflow: auto;\n padding: 1em 1.5em;\n display: block;\n word-wrap: break-word;\n"]);return Vl=function(){return e},e}var Kl=Eo.b.pre(Vl()),Zl=function(e){var t=e.storages;return o.a.createElement(Kl,null,Wl()(t)?o.a.createElement(no,null,"There is no storage setting"):t.map((function(e){return o.a.createElement(Jr,{key:e.name,gap:"m"},o.a.createElement(Jr,{horizontal:!0,verticalAlign:"center",gap:"m"},o.a.createElement(no,null,"Storage Type:"),o.a.createElement(no,null,e.type)),o.a.createElement(Jr,{horizontal:!0,verticalAlign:"center",gap:"m"},o.a.createElement(no,null,"Storage Name:"),o.a.createElement(no,null,e.name)),o.a.createElement(Jr,{horizontal:!0,verticalAlign:"center",gap:"m"},o.a.createElement(no,null,"Storage Path:"),o.a.createElement(no,null,e.uri)))})))};Zl.propTypes={storages:s.a.arrayOf(s.a.object)};var ql=Zl,Yl=function(e){var t=e.marketItem.protocol.prerequisites.filter((function(e){return"data"===e.type}));return o.a.createElement(Jr,{gap:"m"},o.a.createElement(no,{variant:"large"},"Data Storage"),o.a.createElement(ql,{storages:t}))};Yl.propTypes={marketItem:s.a.object.isRequired};var $l=Yl;function Gl(e){return function(e){if(Array.isArray(e))return Xl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Jl(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ql(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||Jl(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jl(e,t){if(e){if("string"==typeof e)return Xl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xl(e,t):void 0}}function Xl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n