0&&(i.indexOf(-1*a)>-1?a*=-1:(u=a,a=i.slice(-1)[0]),s=_o(e,t,{targetEdge:a,alignmentEdge:u},o))}return{elementRectangle:e,targetEdge:r.targetEdge,alignmentEdge:r.alignmentEdge}}(e,t,n,r,o));var c=ao(e,n);if(u){if(l.alignmentEdge&&c.indexOf(-1*l.alignmentEdge)>-1){var p=function(e,t,n,r){var o=e.alignmentEdge,i=e.targetEdge,s=-1*o;return{elementRectangle:_o(e.elementRectangle,t,{targetEdge:i,alignmentEdge:s},n,r),targetEdge:i,alignmentEdge:s}}(l,t,o,s);if(so(p.elementRectangle,n))return p;l=vo(ao(p.elementRectangle,n),l,n)}}else l=vo(c,l,n);return l}(e,t,n,r,o,i,s)}(Po(t),i,n,s,o,e.directionalHintFixed,e.coverTarget);return p(p({},a),{targetRectangle:i})}function To(e,t,n,r,o){var i=e.isBeakVisible&&e.beakWidth||0,s=function(e){return Math.sqrt(e*e*2)}(i)/2+(e.gapSpace?e.gapSpace:0),a=e;a.gapSpace=s;var u=e.bounds?Co(e.bounds):new ro(0,window.innerWidth-Rr(),0,window.innerHeight),l=xo(a,n,u,r),c=function(e,t,n){var r=-1*e.targetEdge,o=new ro(0,e.elementRectangle.width,0,e.elementRectangle.height),i={},s=Io(e.elementRectangle,e.alignmentEdge?e.alignmentEdge:So(r).positiveEdge,n);return i[Jr[r]]=uo(t,r),i[Jr[s]]=fo(t,o,s),{elementPosition:p({},i),closestEdge:wo(e.targetEdge,t,o),targetEdge:r}}(l,function(e,t){var n=t.targetRectangle,r=So(t.targetEdge),o=r.positiveEdge,i=r.negativeEdge,s=co(n,t.targetEdge),a=new ro(e/2,t.elementRectangle.width-e/2,e/2,t.elementRectangle.height-e/2),u=new ro(0,e,0,e);return yo(u=bo(u=mo(u,-1*t.targetEdge,-e/2),-1*t.targetEdge,s-ho(o,t.elementRectangle)),a,o)?yo(u,a,i)||(u=go(u,a,i)):u=go(u,a,o),u}(i,l),u);return p(p({},function(e,t,n,r,o){return{elementPosition:function(e,t,n,r,o,i,s){var a={},u=Po(t),l=i?n:-1*n,c=Jr[l],p=o||So(n).positiveEdge;return s||(p=Io(e,p,r)),a[c]=fo(e,u,l),a[Jr[p]]=fo(e,u,p),a}(e.elementRectangle,t,e.targetEdge,n,e.alignmentEdge,r,o),targetEdge:e.targetEdge,alignmentEdge:e.alignmentEdge}}(l,t,u,e.coverTarget,o)),{beakPosition:c})}var Eo,ko=function(e){function t(t){var n=e.call(this,t)||this;return n._root=r.createRef(),n._disposables=[],n._onKeyDown=function(e){switch(e.which){case 27:n.props.onDismiss&&(n.props.onDismiss(e),e.preventDefault(),e.stopPropagation())}},n._onFocus=function(){n._containsFocus=!0},n._onBlur=function(e){n._root.current&&e.relatedTarget&&!_r(n._root.current,e.relatedTarget)&&(n._containsFocus=!1)},n._async=new Un(n),n.state={needsVerticalScrollBar:!1},n}return c(t,e),t.prototype.UNSAFE_componentWillMount=function(){this._originalFocusedElement=he().activeElement},t.prototype.componentDidMount=function(){if(this._root.current){this._disposables.push(to(this._root.current,"focus",this._onFocus,!0),to(this._root.current,"blur",this._onBlur,!0));var e=v(this._root.current);e&&this._disposables.push(to(e,"keydown",this._onKeyDown)),function(e){var t=he(e),n=t&&t.activeElement;return!(!n||!_r(e,n))}(this._root.current)&&(this._containsFocus=!0)}this._updateScrollBarAsync()},t.prototype.componentDidUpdate=function(){this._updateScrollBarAsync(),this._async.dispose()},t.prototype.componentWillUnmount=function(){var e;if(this._disposables.forEach(function(e){return e()}),this.props.shouldRestoreFocus){var t=this.props.onRestoreFocus;(void 0===t?Do:t)({originalElement:this._originalFocusedElement,containsFocus:this._containsFocus,documentContainsFocus:(null===(e=he())||void 0===e?void 0:e.hasFocus())||!1})}delete this._originalFocusedElement},t.prototype.render=function(){var e=this.props,t=e.role,n=e.className,o=e.ariaLabel,i=e.ariaLabelledBy,s=e.ariaDescribedBy,a=e.style;return r.createElement("div",p({ref:this._root},De(this.props,ke),{className:n,role:t,"aria-label":o,"aria-labelledby":i,"aria-describedby":s,onKeyDown:this._onKeyDown,style:p({overflowY:this.state.needsVerticalScrollBar?"scroll":void 0,outline:"none"},a)}),this.props.children)},t.prototype._updateScrollBarAsync=function(){var e=this;this._async.requestAnimationFrame(function(){e._getScrollBar()})},t.prototype._getScrollBar=function(){if(!this.props.style||!this.props.style.overflowY){var e=!1;if(this._root&&this._root.current&&this._root.current.firstElementChild){var t=this._root.current.clientHeight,n=this._root.current.firstElementChild.clientHeight;t>0&&n>t&&(e=n-t>1)}this.state.needsVerticalScrollBar!==e&&this.setState({needsVerticalScrollBar:e})}},t.defaultProps={shouldRestoreFocus:!0},t}(r.Component);function Do(e){var t=e.originalElement,n=e.containsFocus;t&&n&&t!==window&&t.focus&&t.focus()}var Mo=((Eo={})[Jr.top]=Tt.slideUpIn10,Eo[Jr.bottom]=Tt.slideDownIn10,Eo[Jr.left]=Tt.slideLeftIn10,Eo[Jr.right]=Tt.slideRightIn10,Eo),Ro=ve({disableCaching:!0}),Fo={opacity:0,filter:"opacity(0)",pointerEvents:"none"},Bo=["role","aria-roledescription"],Lo=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,r=t.preventDismissOnEvent,o=t.preventDismissOnScroll;n.state.positions&&(r&&!r(e)||!r&&!o)&&n._dismissOnClickOrScroll(e)},n._dismissOnResize=function(e){var t=n.props,r=t.preventDismissOnEvent,o=t.preventDismissOnResize;(r&&!r(e)||!r&&!o)&&n.dismiss(e)},n._dismissOnLostFocus=function(e){var t=n.props,r=t.preventDismissOnEvent,o=t.preventDismissOnLostFocus;(r&&!r(e)||!r&&!o)&&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!!(t=Ir(e=n._calloutElement.current,e,!0,!1,!1,!0))&&(function(e){if(e){if(Dr)return void(Dr=e);Dr=e;var t=v(e);t&&t.requestAnimationFrame(function(){var e=Dr;Dr=void 0,e&&(e.getAttribute&&"true"===e.getAttribute("data-is-focusable")&&(e.getAttribute("tabindex")||e.setAttribute("tabindex","0")),e.focus())})}}(t),!0);var e,t},n._calloutElement.current))},n._onComponentDidMount=function(){n._addListeners(),n.props.onLayerMounted&&n.props.onLayerMounted(),n._updateAsyncPosition(),n._setHeightOffsetEveryFrame()},n._dismissOnTargetWindowBlur=function(e){var t=n.props,r=t.preventDismissOnEvent,o=t.preventDismissOnLostFocus;t.shouldDismissOnWindowFocus&&((!r||r(e))&&(r||o)||n._targetWindow.document.hasFocus()||null!==e.relatedTarget||n.dismiss(e))},n._mouseDownOnPopup=function(){n._isMouseDownOnPopup=!0},n._mouseUpOnPopup=function(){n._isMouseDownOnPopup=!1},n._async=new Un(n),n._didSetInitialFocus=!1,n.state={positions:void 0,slideDirectionalClassName:void 0,calloutElementRect:void 0,heightOffset:0},n._positionAttempts=0,n}return c(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!(!e.shouldUpdateWhenHidden&&this.props.hidden&&e.hidden||zn(this.props,e)&&zn(this.state,t))},t.prototype.UNSAFE_componentWillMount=function(){this._setTargetWindowAndElement(this._getTarget())},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._disposables.forEach(function(e){return e()})},t.prototype.UNSAFE_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(),this._didPositionPropsChange(e,this.props)&&(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,s=t.ariaDescribedBy,a=t.ariaLabelledBy,u=t.className,l=t.isBeakVisible,c=t.children,d=t.beakWidth,h=t.calloutWidth,f=t.calloutMaxWidth,m=t.finalHeight,g=t.hideOverflow,y=void 0===g?!!m:g,v=t.backgroundColor,b=t.calloutMaxHeight,_=t.onScroll,S=t.shouldRestoreFocus,I=void 0===S||S;e=this._getTarget();var w=this.state.positions,P=this._getMaxHeight()?this._getMaxHeight()+this.state.heightOffset:void 0,C=b&&P&&b0&&(this._positionAttempts=0,this.props.onPositioned&&this.props.onPositioned(this.state.positions))}},t.prototype._getBounds=function(){if(!this._bounds){var e=this.props.bounds,t="function"==typeof e?e(this.props.target,this._targetWindow):e;t||(t={top:(t=function(e,t){var n=void 0;if(t.getWindowSegments&&(n=t.getWindowSegments()),void 0===n||n.length<=1)return{top:0,left:0,right:t.innerWidth,bottom:t.innerHeight,width:t.innerWidth,height:t.innerHeight};var r=0,o=0;if(null!==e&&e.getBoundingClientRect){var i=e.getBoundingClientRect();r=(i.left+i.right)/2,o=(i.top+i.bottom)/2}else null!==e&&(r=e.left||e.x,o=e.top||e.y);for(var s={top:0,left:0,right:0,bottom:0,width:0,height:0},a=0,u=n;a=r&&o&&l.top<=o&&l.bottom>=o&&(s={top:l.top,left:l.left,right:l.right,bottom:l.bottom,width:l.width,height:l.height})}return s}(this._target,this._targetWindow)).top+this.props.minPagePadding,left:t.left+this.props.minPagePadding,right:t.right-this.props.minPagePadding,bottom:t.bottom-this.props.minPagePadding,width:t.width-2*this.props.minPagePadding,height:t.height-2*this.props.minPagePadding}),this._bounds=t}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;this._async.requestAnimationFrame(function(){e._target&&(e._maxHeight=function(e,t,n,r,o){void 0===n&&(n=0);var i=e,s=e,a=e,u=r?Co(r):new ro(0,window.innerWidth-Rr(),0,window.innerHeight),l=a.left||a.x,c=a.top||a.y;return function(e,t,n,r,o){var i,s=io[t],a=o?-1*s.targetEdge:s.targetEdge;return(i=a===Jr.top?uo(e,s.targetEdge)-r.top-n:a===Jr.bottom?r.bottom-uo(e,s.targetEdge)-n:r.bottom-e.top-n)>0?i:r.height}(i.stopPropagation?new ro(i.clientX,i.clientX,i.clientY,i.clientY):void 0!==l&&void 0!==c?new ro(l,l,c,c):Po(s),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;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=he(t);this._target=n?n.querySelector(e):null,this._targetWindow=v(t)}else if(e.stopPropagation)this._targetWindow=v(e.target),this._target=e;else if(e.getBoundingClientRect){var r=e;this._targetWindow=v(r),this._target=r}else void 0!==e.current?(this._target=e.current,this._targetWindow=v(this._target)):(this._targetWindow=v(t),this._target=e);else this._targetWindow=v(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))}function Qo(e,t,n){return function(o){var i,s=((i=function(i){function s(e){var t=i.call(this,e)||this;return t._styleCache={},t._onSettingChanged=t._onSettingChanged.bind(t),t}return c(s,i),s.prototype.componentDidMount=function(){E.observe(this._onSettingChanged)},s.prototype.componentWillUnmount=function(){E.unobserve(this._onSettingChanged)},s.prototype.render=function(){var i=this;return r.createElement(k.Consumer,null,function(s){var a=E.getSettings(t,e,s.customizations),u=i.props;if(a.styles&&"function"==typeof a.styles&&(a.styles=a.styles(p(p({},a),u))),n&&a.styles){if(i._styleCache.default!==a.styles||i._styleCache.component!==u.styles){var l=m(a.styles,u.styles);i._styleCache.default=a.styles,i._styleCache.component=u.styles,i._styleCache.merged=l}return r.createElement(o,p({},a,u,{styles:i._styleCache.merged}))}return r.createElement(o,p({},a,u))})},s.prototype._onSettingChanged=function(){this.forceUpdate()},s}(r.Component)).displayName="Customized"+e,i);return Vr(o,s)}}var Jo,Zo,Yo={},$o=ve(),ei=function(e){function t(t){var n=e.call(this,t)||this;return n._rootRef=r.createRef(),n._createLayerElement=function(){var e=n.props.hostId,t=he(n._rootRef.current),r=n._getHost();if(t&&r){n._removeLayerElement();var o=t.createElement("div"),i=n._getClassNames();o.className=i.root,o.setAttribute("data-portal-element","true"),Xo(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 c(t,e),t.prototype.componentDidMount=function(){var e=this.props.hostId;this._createLayerElement(),e&&function(e,t){Yo[e]||(Yo[e]=[]),Yo[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&&o.createPortal(r.createElement(Go,p({},!n&&(Jo||(Jo={},["onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOver","onMouseOut","onMouseUp","onTouchMove","onTouchStart","onTouchCancel","onTouchEnd","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onInvalid","onSubmit"].forEach(function(e){return Jo[e]=ti})),Jo),{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(Yo[e]){var n=Yo[e].indexOf(t);n>=0&&(Yo[e].splice(n,1),0===Yo[e].length&&delete Yo[e])}}(e,this._createLayerElement)},t.prototype._removeLayerElement=function(){var e=this.props.onLayerWillUnmount,t=this.state.layerElement;if(t&&Xo(t,null),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 $o(n,{theme:r,className:t,isNotHost:!this.props.hostId})},t.prototype._getHost=function(){var e=this.props.hostId,t=he(this._rootRef.current);if(t)return e?t.getElementById(e):t.body},t.defaultProps={onLayerDidMount:function(){},onLayerWillUnmount:function(){}},h([Qo("Layer",["theme","hostId"])],t)}(r.Component),ti=function(e){e.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==e.type&&"mouseleave"!==e.type&&"touchstart"!==e.type&&"touchend"!==e.type&&e.stopPropagation()},ni={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},ri=M(ei,function(e){var t=e.className,n=e.isNotHost,r=e.theme,o=Vt(ni,r);return{root:[o.root,r.fonts.medium,n&&[o.rootNoHost,{position:"fixed",zIndex:Mt.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"]}),oi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.layerProps,n=d(e,["layerProps"]),o=r.createElement(Ao,p({},n));return this.props.doNotLayer?o:r.createElement(ri,p({},t),o)},t}(r.Component),ii=function(e){var t=e.item,n=e.hasIcons,o=e.classNames,i=t.iconProps;return n?t.onRenderIcon?t.onRenderIcon(e):r.createElement(gr,p({},i,{className:o.icon})):null},si=function(e){var t=e.onCheckmarkClick,n=e.item,o=e.classNames,i=zr(n);return t?r.createElement(gr,{iconName:!1!==n.canCheck&&i?"CheckMark":"",className:o.checkmarkIcon,onClick:function(e){return t(n,e)}}):null},ai=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},ui=function(e){var t=e.item,n=e.classNames;return t.secondaryText?r.createElement("span",{className:n.secondaryText},t.secondaryText):null},li=function(e){var t=e.item,n=e.classNames,o=e.theme;return Wr(t)?r.createElement(gr,p({iconName:me(o)?"ChevronLeft":"ChevronRight"},t.submenuIconProps,{className:n.subMenuIcon})):null},ci=function(e){function t(t){var n=e.call(this,t)||this;return n.openSubMenu=function(){var e=n.props,t=e.item,r=e.openSubMenu,o=e.getSubmenuTarget;if(o){var i=o();Wr(t)&&r&&i&&r(t,i)}},n.dismissSubMenu=function(){var e=n.props,t=e.item,r=e.dismissSubMenu;Wr(t)&&r&&r()},n.dismissMenu=function(e){var t=n.props.dismissMenu;t&&t(void 0,e)},xn(n),n}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.item,n=e.classNames,o=t.onRenderContent||this._renderLayout;return r.createElement("div",{className:t.split?n.linkContentMenu:n.linkContent},o(this.props,{renderCheckMarkIcon:si,renderItemIcon:ii,renderItemName:ai,renderSecondaryText:ui,renderSubMenuIcon:li}))},t.prototype._renderLayout=function(e,t){return r.createElement(r.Fragment,null,t.renderCheckMarkIcon(e),t.renderItemIcon(e),t.renderItemName(e),t.renderSecondaryText(e),t.renderSubMenuIcon(e))},t}(r.Component),pi=jt(function(e){return pe({wrapper:{display:"inline-flex",height:"100%",alignItems:"center"},divider:{width:1,height:"100%",backgroundColor:e.palette.neutralTertiaryAlt}})}),di=kt(0,639),hi=jt(function(){var e;return{selectors:(e={},e[Et]={backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText",MsHighContrastAdjust:"none"},e)}}),fi=jt(function(e){var t,n,r,o,i,s,a,u=e.semanticColors,l=e.fonts,c=e.palette,d=u.menuItemBackgroundHovered,h=u.menuItemTextHovered,f=u.menuItemBackgroundPressed,g=u.bodyDivider;return m({item:[l.medium,{color:u.bodyText,position:"relative",boxSizing:"border-box"}],divider:{display:"block",height:"1px",backgroundColor:g,position:"relative"},root:[Bt(e),l.medium,{color:u.bodyText,backgroundColor:"transparent",border:"none",width:"100%",height:36,lineHeight:36,display:"block",cursor:"pointer",padding:"0px 8px 0 4px",textAlign:"left"}],rootDisabled:{color:u.disabledBodyText,cursor:"default",pointerEvents:"none",selectors:p((t={},t[Et]={color:"GrayText",opacity:1},t),Dt())},rootHovered:p({backgroundColor:d,color:h,selectors:{".ms-ContextualMenu-icon":{color:c.themeDarkAlt},".ms-ContextualMenu-submenuIcon":{color:c.neutralPrimary}}},hi()),rootFocused:p({backgroundColor:c.white},hi()),rootChecked:p({selectors:{".ms-ContextualMenu-checkmarkIcon":{color:c.neutralPrimary}}},hi()),rootPressed:p({backgroundColor:f,selectors:{".ms-ContextualMenu-icon":{color:c.themeDark},".ms-ContextualMenu-submenuIcon":{color:c.neutralPrimary}}},hi()),rootExpanded:p({backgroundColor:f,color:u.bodyTextChecked},hi()),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:36,fontSize:xt.medium,width:xt.medium,margin:"0 4px",verticalAlign:"middle",flexShrink:"0",selectors:(n={},n[di]={fontSize:xt.large,width:xt.large},n)},iconColor:{color:u.menuIcon,selectors:(r={},r[Et]={color:"inherit"},r["$root:hover &"]={selectors:(o={},o[Et]={color:"HighlightText"},o)},r["$root:focus &"]={selectors:(i={},i[Et]={color:"HighlightText"},i)},r)},iconDisabled:{color:u.disabledBodyText},checkmarkIcon:{color:u.bodySubtext,selectors:(s={},s[Et]={color:"HighlightText"},s)},subMenuIcon:{height:36,lineHeight:36,color:c.neutralSecondary,textAlign:"center",display:"inline-block",verticalAlign:"middle",flexShrink:"0",fontSize:xt.small,selectors:(a={":hover":{color:c.neutralPrimary},":active":{color:c.neutralPrimary}},a[di]={fontSize:xt.medium},a[Et]={color:"HighlightText"},a)},splitButtonFlexContainer:[Bt(e),{display:"flex",height:36,flexWrap:"nowrap",justifyContent:"center",alignItems:"flex-start"}]})}),mi=kt(0,639),gi=jt(function(e){var t;return pe(pi(e),{wrapper:{position:"absolute",right:28,selectors:(t={},t[mi]={right:32},t)},divider:{height:16,width:1}})}),yi={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",splitMenu:"ms-ContextualMenu-splitMenu",screenReaderText:"ms-ContextualMenu-screenReaderText"},vi=jt(function(e,t,n,r,o,i,s,a,u,l,c,p){var d,h,f,m,g=fi(e),y=Vt(yi,e);return pe({item:[y.item,g.item,s],divider:[y.divider,g.divider,a],root:[y.root,g.root,r&&[y.isChecked,g.rootChecked],o&&g.anchorLink,n&&[y.isExpanded,g.rootExpanded],t&&[y.isDisabled,g.rootDisabled],!t&&!n&&[{selectors:(d={":hover":g.rootHovered,":active":g.rootPressed},d["."+Rt+" &:focus, ."+Rt+" &:focus:hover"]=g.rootFocused,d["."+Rt+" &:hover"]={background:"inherit;"},d)}],p],splitPrimary:[g.root,{width:"calc(100% - 28px)"},r&&["is-checked",g.rootChecked],(t||c)&&["is-disabled",g.rootDisabled],!(t||c)&&!r&&[{selectors:(h={":hover":g.rootHovered},h[":hover ~ ."+y.splitMenu]=g.rootHovered,h[":active"]=g.rootPressed,h["."+Rt+" &:focus, ."+Rt+" &:focus:hover"]=g.rootFocused,h["."+Rt+" &:hover"]={background:"inherit;"},h)}]],splitMenu:[y.splitMenu,g.root,{flexBasis:"0",padding:"0 8px",minWidth:"28px"},n&&["is-expanded",g.rootExpanded],t&&["is-disabled",g.rootDisabled],!t&&!n&&[{selectors:(f={":hover":g.rootHovered,":active":g.rootPressed},f["."+Rt+" &:focus, ."+Rt+" &:focus:hover"]=g.rootFocused,f["."+Rt+" &:hover"]={background:"inherit;"},f)}]],anchorLink:g.anchorLink,linkContent:[y.linkContent,g.linkContent],linkContentMenu:[y.linkContentMenu,g.linkContent,{justifyContent:"center"}],icon:[y.icon,i&&g.iconColor,g.icon,u,t&&[y.isDisabled,g.iconDisabled]],iconColor:g.iconColor,checkmarkIcon:[y.checkmarkIcon,i&&g.checkmarkIcon,g.icon,u],subMenuIcon:[y.subMenuIcon,g.subMenuIcon,l,n&&{color:e.palette.neutralPrimary},t&&[g.iconDisabled]],label:[y.label,g.label],secondaryText:[y.secondaryText,g.secondaryText],splitContainer:[g.splitButtonFlexContainer,!t&&!r&&[{selectors:(m={},m["."+Rt+" &:focus, ."+Rt+" &:focus:hover"]=g.rootFocused,m)}]],screenReaderText:[y.screenReaderText,g.screenReaderText,Lt,{visibility:"hidden"}]})}),bi=function(e){var t=e.theme,n=e.disabled,r=e.expanded,o=e.checked,i=e.isAnchorLink,s=e.knownIcon,a=e.itemClassName,u=e.dividerClassName,l=e.iconClassName,c=e.subMenuClassName,p=e.primaryDisabled,d=e.className;return vi(t,n,r,o,i,s,a,u,l,c,p,d)},_i=M(ci,bi,void 0,{scope:"ContextualMenuItem"}),Si=function(e){function t(t){var n=e.call(this,t)||this;return n._onItemMouseEnter=function(e){var t=n.props,r=t.item,o=t.onItemMouseEnter;o&&o(r,e,e.currentTarget)},n._onItemClick=function(e){var t=n.props,r=t.item,o=t.onItemClickBase;o&&o(r,e,e.currentTarget)},n._onItemMouseLeave=function(e){var t=n.props,r=t.item,o=t.onItemMouseLeave;o&&o(r,e)},n._onItemKeyDown=function(e){var t=n.props,r=t.item,o=t.onItemKeyDown;o&&o(r,e)},n._onItemMouseMove=function(e){var t=n.props,r=t.item,o=t.onItemMouseMove;o&&o(r,e,e.currentTarget)},n._getSubMenuId=function(e){var t=n.props.getSubMenuId;if(t)return t(e)},n._getSubmenuTarget=function(){},xn(n),n}return c(t,e),t.prototype.shouldComponentUpdate=function(e){return!zn(e,this.props)},t}(r.Component);!function(e){e.KEYTIP_ADDED="keytipAdded",e.KEYTIP_REMOVED="keytipRemoved",e.KEYTIP_UPDATED="keytipUpdated",e.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",e.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",e.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",e.ENTER_KEYTIP_MODE="enterKeytipMode",e.EXIT_KEYTIP_MODE="exitKeytipMode"}(Zo||(Zo={}));var Ii=function(){function e(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return e.getInstance=function(){return this._instance},e.prototype.init=function(e){this.delayUpdatingKeytipChange=e},e.prototype.register=function(e,t){void 0===t&&(t=!1);var n=e;t||(n=this.addParentOverflow(e),this.sequenceMapping[n.keySequences.toString()]=n);var r=this._getUniqueKtp(n);if(t?this.persistedKeytips[r.uniqueID]=r:this.keytips[r.uniqueID]=r,this.inKeytipMode||!this.delayUpdatingKeytipChange){var o=t?Zo.PERSISTED_KEYTIP_ADDED:Zo.KEYTIP_ADDED;Kn.raise(this,o,{keytip:n,uniqueID:r.uniqueID})}return r.uniqueID},e.prototype.update=function(e,t){var n=this.addParentOverflow(e),r=this._getUniqueKtp(n,t),o=this.keytips[t];o&&(r.keytip.visible=o.keytip.visible,this.keytips[t]=r,delete this.sequenceMapping[o.keytip.keySequences.toString()],this.sequenceMapping[r.keytip.keySequences.toString()]=r.keytip,!this.inKeytipMode&&this.delayUpdatingKeytipChange||Kn.raise(this,Zo.KEYTIP_UPDATED,{keytip:r.keytip,uniqueID:r.uniqueID}))},e.prototype.unregister=function(e,t,n){void 0===n&&(n=!1),n?delete this.persistedKeytips[t]:delete this.keytips[t],!n&&delete this.sequenceMapping[e.keySequences.toString()];var r=n?Zo.PERSISTED_KEYTIP_REMOVED:Zo.KEYTIP_REMOVED;!this.inKeytipMode&&this.delayUpdatingKeytipChange||Kn.raise(this,r,{keytip:e,uniqueID:t})},e.prototype.enterKeytipMode=function(){Kn.raise(this,Zo.ENTER_KEYTIP_MODE)},e.prototype.exitKeytipMode=function(){Kn.raise(this,Zo.EXIT_KEYTIP_MODE)},e.prototype.getKeytips=function(){var e=this;return Object.keys(this.keytips).map(function(t){return e.keytips[t].keytip})},e.prototype.addParentOverflow=function(e){var t=f(e.keySequences);if(t.pop(),0!==t.length){var n=this.sequenceMapping[t.toString()];if(n&&n.overflowSetSequence)return p(p({},e),{overflowSetSequence:n.overflowSetSequence})}return e},e.prototype.menuExecute=function(e,t){Kn.raise(this,Zo.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:e,keytipSequences:t})},e.prototype._getUniqueKtp=function(e,t){return void 0===t&&(t=Fn()),{keytip:p({},e),uniqueID:t}},e._instance=new e,e}();function wi(e){return e.reduce(function(e,t){return e+"-"+t.split("").join("-")},"ktp")}var Pi=function(e){var t,n=e.children,o=function(e){var t,n,o,i,s=r.useRef(),a=e.keytipProps?p({disabled:e.disabled},e.keytipProps):void 0,u=(o=Ii.getInstance(),void 0===(i=r.useRef()).current&&(i.current={value:"function"==typeof o?o():o}),i.current.value);r.useEffect(function(){return a&&(s.current=u.register(a)),function(){a&&u.unregister(a,s.current)}},[]);var l=function(e){var t=Object(r.useRef)();return Object(r.useEffect)(function(){t.current=e}),t.current}(e);s.current&&a&&((null===(t=l)||void 0===t?void 0:t.keytipProps)!==e.keytipProps||(null===(n=l)||void 0===n?void 0:n.disabled)!==e.disabled)&&u.update(a,s.current);var c={ariaDescribedBy:void 0,keytipId:void 0};return a&&(c=function(e,t,n){var r=e.addParentOverflow(t),o=er(n,function(e){return e.length?" ktp-layer-id "+wi(e):" ktp-layer-id"}(r.keySequences)),i=f(r.keySequences);return r.overflowSetSequence&&(i=function(e,t){var n,r,o;return n=t.length-1,r=f(t).pop(),(o=f(e).slice()).splice(n,0,r),o}(i,r.overflowSetSequence)),{ariaDescribedBy:o,keytipId:wi(i)}}(u,a,e.ariaDescribedBy)),c}(d(e,["children"])),i=o.keytipId,s=o.ariaDescribedBy;return n(((t={})["data-ktp-target"]=i,t["data-ktp-execute-target"]=i,t["aria-describedby"]=s,t))},Ci=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._anchor=r.createRef(),t._getMemoizedMenuButtonKeytipProps=jt(function(e){return p(p({},e),{hasMenu:!0})}),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._renderAriaDescription=function(e,n){return e?r.createElement("span",{id:t._ariaDescriptionId,className:n},e):null},t}return c(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.item,o=t.classNames,i=t.index,s=t.focusableElementIndex,a=t.totalItemCount,u=t.hasCheckmarks,l=t.hasIcons,c=t.contextualMenuItemAs,d=void 0===c?_i:c,h=t.expandedMenuItemKey,f=t.onItemClick,m=t.openSubMenu,g=t.dismissSubMenu,y=t.dismissMenu,v=n.rel;n.target&&"_blank"===n.target.toLowerCase()&&(v=v||"nofollow noopener noreferrer");var b=this._getSubMenuId(n),_=Wr(n),S=De(n,xe),I=jr(n),w=n.itemProps,P=n.ariaDescription,C=n.keytipProps;return C&&_&&(C=this._getMemoizedMenuButtonKeytipProps(C)),P&&(this._ariaDescriptionId=Fn()),r.createElement("div",null,r.createElement(Pi,{keytipProps:n.keytipProps,ariaDescribedBy:S["aria-describedby"],disabled:I},function(t){return r.createElement("a",p({},S,t,{ref:e._anchor,href:n.href,target:n.target,rel:v,className:o.root,role:"menuitem","aria-owns":n.key===h?b:void 0,"aria-haspopup":_||void 0,"aria-expanded":_?n.key===h:void 0,"aria-posinset":s+1,"aria-setsize":a,"aria-disabled":jr(n),"aria-describedby":er(P?e._ariaDescriptionId:void 0,t?t["aria-describedby"]:void 0),style:n.style,onClick:e._onItemClick,onMouseEnter:e._onItemMouseEnter,onMouseLeave:e._onItemMouseLeave,onMouseMove:e._onItemMouseMove,onKeyDown:_?e._onItemKeyDown:void 0}),r.createElement(d,p({componentRef:n.componentRef,item:n,classNames:o,index:i,onCheckmarkClick:u&&f?f:void 0,hasIcons:l,openSubMenu:m,dismissSubMenu:g,dismissMenu:y,getSubmenuTarget:e._getSubmenuTarget},w)),e._renderAriaDescription(P,o.screenReaderText))}))},t}(Si),xi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._btn=r.createRef(),t._getMemoizedMenuButtonKeytipProps=jt(function(e){return p(p({},e),{hasMenu:!0})}),t._renderAriaDescription=function(e,n){return e?r.createElement("span",{id:t._ariaDescriptionId,className:n},e):null},t._getSubmenuTarget=function(){return t._btn.current?t._btn.current:void 0},t}return c(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.item,o=t.classNames,i=t.index,s=t.focusableElementIndex,a=t.totalItemCount,u=t.hasCheckmarks,l=t.hasIcons,c=t.contextualMenuItemAs,d=void 0===c?_i:c,h=t.expandedMenuItemKey,f=t.onItemMouseDown,m=t.onItemClick,g=t.openSubMenu,y=t.dismissSubMenu,v=t.dismissMenu,b=this._getSubMenuId(n),_=zr(n),S=null!==_,I=Hr(n),w=Wr(n),P=n.itemProps,C=n.ariaLabel,x=n.ariaDescription,T=De(n,Te);delete T.disabled;var E=n.role||I;x&&(this._ariaDescriptionId=Fn());var k=x?this._ariaDescriptionId:void 0,D={className:o.root,onClick:this._onItemClick,onKeyDown:w?this._onItemKeyDown:void 0,onMouseEnter:this._onItemMouseEnter,onMouseLeave:this._onItemMouseLeave,onMouseDown:function(e){return f?f(n,e):void 0},onMouseMove:this._onItemMouseMove,href:n.href,title:n.title,"aria-label":C,"aria-describedby":k,"aria-haspopup":w||void 0,"aria-owns":n.key===h?b:void 0,"aria-expanded":w?n.key===h:void 0,"aria-posinset":s+1,"aria-setsize":a,"aria-disabled":jr(n),"aria-checked":"menuitemcheckbox"!==E&&"menuitemradio"!==E||!S?void 0:!!_,"aria-selected":"menuitem"===E&&S?!!_:void 0,role:E,style:n.style},M=n.keytipProps;return M&&w&&(M=this._getMemoizedMenuButtonKeytipProps(M)),r.createElement(Pi,{keytipProps:M,ariaDescribedBy:T["aria-describedby"],disabled:jr(n)},function(t){return r.createElement("button",p({ref:e._btn},T,D,t,{"aria-describedby":er(D["aria-describedby"],t?t["aria-describedby"]:void 0)}),r.createElement(d,p({componentRef:n.componentRef,item:n,classNames:o,index:i,onCheckmarkClick:u&&m?m:void 0,hasIcons:l,openSubMenu:g,dismissSubMenu:y,dismissMenu:v,getSubmenuTarget:e._getSubmenuTarget},P)),e._renderAriaDescription(x,o.screenReaderText))})},t}(Si),Ti=ve(),Ei=function(e){var t=e.styles,n=e.theme,o=e.getClassNames,i=e.className,s=Ti(t,{theme:n,getClassNames:o,className:i});return r.createElement("span",{className:s.wrapper},r.createElement("span",{className:s.divider}))};Ei.displayName="VerticalDividerBase";var ki=M(Ei,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"}),Di=function(e){function t(t){var n=e.call(this,t)||this;return n._getMemoizedMenuButtonKeytipProps=jt(function(e){return p(p({},e),{hasMenu:!0})}),n._renderAriaDescription=function(e,t){return e?r.createElement("span",{id:n._ariaDescriptionId,className:t},e):null},n._onItemKeyDown=function(e){var t=n.props,r=t.item,o=t.onItemKeyDown;13===e.which?(n._executeItemClick(e),e.preventDefault(),e.stopPropagation()):o&&o(r,e)},n._getSubmenuTarget=function(){return n._splitButton},n._onItemMouseEnterPrimary=function(e){var t=n.props,r=t.item,o=t.onItemMouseEnter;o&&o(p(p({},r),{subMenuProps:void 0,items:void 0}),e,n._splitButton)},n._onItemMouseEnterIcon=function(e){var t=n.props,r=t.item,o=t.onItemMouseEnter;o&&o(r,e,n._splitButton)},n._onItemMouseMovePrimary=function(e){var t=n.props,r=t.item,o=t.onItemMouseMove;o&&o(p(p({},r),{subMenuProps:void 0,items:void 0}),e,n._splitButton)},n._onItemMouseMoveIcon=function(e){var t=n.props,r=t.item,o=t.onItemMouseMove;o&&o(r,e,n._splitButton)},n._onIconItemClick=function(e){var t=n.props,r=t.item,o=t.onItemClickBase;o&&o(r,e,n._splitButton?n._splitButton:e.currentTarget)},n._executeItemClick=function(e){var t=n.props,r=t.item,o=t.executeItemClick,i=t.onItemClick;if(!r.disabled&&!r.isDisabled)return n._processingTouch&&i?i(r,e):void(o&&o(r,e))},n._onTouchStart=function(e){n._splitButton&&!("onpointerdown"in n._splitButton)&&n._handleTouchAndPointerEvent(e)},n._onPointerDown=function(e){"touch"===e.pointerType&&(n._handleTouchAndPointerEvent(e),e.preventDefault(),e.stopImmediatePropagation())},n._async=new Un(n),n._events=new Kn(n),n}return c(t,e),t.prototype.componentDidMount=function(){this._splitButton&&"onpointerdown"in this._splitButton&&this._events.on(this._splitButton,"pointerdown",this._onPointerDown,!0)},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.render=function(){var e=this,t=this.props,n=t.item,o=t.classNames,i=t.index,s=t.focusableElementIndex,a=t.totalItemCount,u=t.hasCheckmarks,l=t.hasIcons,c=t.onItemMouseLeave,d=t.expandedMenuItemKey,h=Wr(n),f=n.keytipProps;f&&(f=this._getMemoizedMenuButtonKeytipProps(f));var m=n.ariaDescription;return m&&(this._ariaDescriptionId=Fn()),r.createElement(Pi,{keytipProps:f,disabled:jr(n)},function(t){return r.createElement("div",{"data-ktp-target":t["data-ktp-target"],ref:function(t){return e._splitButton=t},role:Hr(n),"aria-label":n.ariaLabel,className:o.splitContainer,"aria-disabled":jr(n),"aria-expanded":h?n.key===d:void 0,"aria-haspopup":!0,"aria-describedby":er(m?e._ariaDescriptionId:void 0,t["aria-describedby"]),"aria-checked":n.isChecked||n.checked,"aria-posinset":s+1,"aria-setsize":a,onMouseEnter:e._onItemMouseEnterPrimary,onMouseLeave:c?c.bind(e,p(p({},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),e._renderAriaDescription(m,o.screenReaderText))})},t.prototype._renderSplitPrimaryButton=function(e,t,n,o,i){var s=this.props,a=s.contextualMenuItemAs,u=void 0===a?_i:a,l=s.onItemClick,c={key:e.key,disabled:jr(e)||e.primaryDisabled,name:e.name,text:e.text||e.name,secondaryText:e.secondaryText,className:t.splitPrimary,canCheck:e.canCheck,isChecked:e.isChecked,checked:e.checked,iconProps:e.iconProps,onRenderIcon:e.onRenderIcon,data:e.data,"data-is-focusable":!1},d=e.itemProps;return r.createElement("button",p({},De(c,Te)),r.createElement(u,p({"data-is-focusable":!1,item:c,classNames:t,index:n,onCheckmarkClick:o&&l?l:void 0,hasIcons:i},d)))},t.prototype._renderSplitDivider=function(e){var t=e.getSplitButtonVerticalDividerClassNames||gi;return r.createElement(ki,{getClassNames:t})},t.prototype._renderSplitIconButton=function(e,t,n,o){var i=this.props,s=i.contextualMenuItemAs,a=void 0===s?_i:s,u=i.onItemMouseLeave,l=i.onItemMouseDown,c=i.openSubMenu,d=i.dismissSubMenu,h=i.dismissMenu,f={onClick:this._onIconItemClick,disabled:jr(e),className:t.splitMenu,subMenuProps:e.subMenuProps,submenuIconProps:e.submenuIconProps,split:!0,key:e.key},m=p(p({},De(f,Te)),{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}),g=e.itemProps;return r.createElement("button",p({},m),r.createElement(a,p({componentRef:e.componentRef,item:f,classNames:t,index:n,hasIcons:!1,openSubMenu:c,dismissSubMenu:d,dismissMenu:h,getSubmenuTarget:this._getSubmenuTarget},g)))},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}(Si),Mi=ve(),Ri=ve();function Fi(e){return e.subMenuProps?e.subMenuProps.items:e.items}var Bi=jt(function(){for(var e=[],t=0;t0){for(var z=0,W=0,j=o;W0?r.createElement("li",{role:"presentation",key:u.key||e.key||"section-"+n},r.createElement("div",p({},c),r.createElement("ul",{className:this._classNames.list},u.topDivider&&this._renderSeparator(n,t,!0,!0),l&&this._renderListItem(l,e.key||n,t,e.title),u.items.map(function(e,t){return a._renderMenuItem(e,t,t,u.items.length,o,i)}),u.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,s){return e.onRender?e.onRender(p({"aria-posinset":r+1,"aria-setsize":o},e),this.dismiss):e.href?this._renderAnchorMenuItem(e,t,n,r,o,i,s):e.split&&Wr(e)?this._renderSplitButton(e,t,n,r,o,i,s):this._renderButtonItem(e,t,n,r,o,i,s)},t.prototype._renderHeaderMenuItem=function(e,t,n,o,i){var s=this.props.contextualMenuItemAs,a=void 0===s?_i:s,u=e.itemProps,l=e.id,c=u&&De(u,ke);return r.createElement("div",p({id:l,className:this._classNames.header},c,{style:e.style}),r.createElement(a,p({item:e,classNames:t,index:n,onCheckmarkClick:o?this._onItemClick:void 0,hasIcons:i},u)))},t.prototype._renderAnchorMenuItem=function(e,t,n,o,i,s,a){var u=this.props.contextualMenuItemAs,l=this.state.expandedMenuItemKey;return r.createElement(Ci,{item:e,classNames:t,index:n,focusableElementIndex:o,totalItemCount:i,hasCheckmarks:s,hasIcons:a,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,s,a){var u=this.props.contextualMenuItemAs,l=this.state.expandedMenuItemKey;return r.createElement(xi,{item:e,classNames:t,index:n,focusableElementIndex:o,totalItemCount:i,hasCheckmarks:s,hasIcons:a,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,s,a){var u=this.props.contextualMenuItemAs,l=this.state.expandedMenuItemKey;return r.createElement(Di,{item:e,classNames:t,index:n,focusableElementIndex:o,totalItemCount:i,hasCheckmarks:s,hasIcons:a,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 18===e.which||"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,s=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(),Wr(e)?(t.stopPropagation(),this._enterTimerId=this._async.setTimeout(function(){o.focus(),r.setState({expandedByMouseClick:!0}),r._onItemSubMenuExpand(e,o),r._enterTimerId=void 0},s)):this._enterTimerId=this._async.setTimeout(function(){r._onSubMenuDismiss(t),o.focus(),r._enterTimerId=void 0},s))},t.prototype._getSubmenuProps=function(){var e=this.state,t=e.submenuTarget,n=e.expandedMenuItemKey,r=this._findItemByKey(n),o=null;return r&&(o={items:Fi(r),target:t,onDismiss:this._onSubMenuDismiss,isSubMenu:!0,id:this.state.subMenuId,shouldFocusOnMount:!0,shouldFocusOnContainer:this.state.expandedByMouseClick,directionalHint:me(this.props.theme)?8:11,className:this.props.className,gapSpace:0,isBeakVisible:!1},r.subMenuProps&&Wn(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:[Bt(e,{inset:1,highContrastStyle:l,borderColor:"transparent"}),{backgroundColor:a,borderColor:a,color:u,cursor:"default",pointerEvents:"none",selectors:{":hover":qi,":focus":qi}}],iconDisabled:{color:u,selectors:(t={},t[Et]={color:"GrayText"},t)},menuIconDisabled:{color:u,selectors:(n={},n[Et]={color:"GrayText"},n)},flexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},description:{display:"block"},textContainer:{flexGrow:1,display:"block"},icon:Vi(i.mediumPlus.fontSize),menuIcon:Vi(i.small.fontSize),label:{margin:"0 4px",lineHeight:"100%",display:"block"},screenReaderText:Lt}}),Xi=jt(function(e,t){var n,r,o,i,s,a,u,l,c,d,h,f,g=e.effects,y=e.palette,v=e.semanticColors,b={position:"absolute",width:1,right:31,top:8,bottom:8};return m({splitButtonContainer:[Bt(e,{highContrastStyle:{left:-2,top:-2,bottom:-2,right:-2,border:"none"},inset:2}),{display:"inline-flex",selectors:{".ms-Button--default":{borderTopRightRadius:"0",borderBottomRightRadius:"0",borderRight:"none"},".ms-Button--primary":{borderTopRightRadius:"0",borderBottomRightRadius:"0",border:"none",selectors:(n={},n[Et]={color:"WindowText",backgroundColor:"Window",border:"1px solid WindowText",borderRightWidth:"0",MsHighContrastAdjust:"none"},n)},".ms-Button--primary + .ms-Button":{border:"none",selectors:(r={},r[Et]={border:"1px solid WindowText",borderLeftWidth:"0"},r)}}}],splitButtonContainerHovered:{selectors:{".ms-Button--primary":{selectors:(o={},o[Et]={color:"Window",backgroundColor:"Highlight"},o)},".ms-Button.is-disabled":{color:v.buttonTextDisabled,selectors:(i={},i[Et]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},i)}}},splitButtonContainerChecked:{selectors:{".ms-Button--primary":{selectors:(s={},s[Et]={color:"Window",backgroundColor:"WindowText",MsHighContrastAdjust:"none"},s)}}},splitButtonContainerCheckedHovered:{selectors:{".ms-Button--primary":{selectors:(a={},a[Et]={color:"Window",backgroundColor:"WindowText",MsHighContrastAdjust:"none"},a)}}},splitButtonContainerFocused:{outline:"none!important"},splitButtonMenuButton:{padding:6,height:"auto",boxSizing:"border-box",borderRadius:0,borderTopRightRadius:g.roundedCorner2,borderBottomRightRadius:g.roundedCorner2,border:"1px solid "+y.neutralSecondaryAlt,borderLeft:"none",outline:"transparent",userSelect:"none",display:"inline-block",textDecoration:"none",textAlign:"center",cursor:"pointer",verticalAlign:"top",width:32,marginLeft:-1,marginTop:0,marginRight:0,marginBottom:0},splitButtonDivider:p(p({},b),{selectors:(u={},u[Et]={backgroundColor:"WindowText"},u)}),splitButtonDividerDisabled:p(p({},b),{selectors:(l={},l[Et]={backgroundColor:"GrayText"},l)}),splitButtonMenuButtonDisabled:{pointerEvents:"none",border:"none",selectors:(c={":hover":{cursor:"default"},".ms-Button--primary":{selectors:(d={},d[Et]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},d)},".ms-Button-menuIcon":{selectors:(h={},h[Et]={color:"GrayText"},h)}},c[Et]={color:"GrayText",border:"1px solid GrayText",backgroundColor:"Window"},c)},splitButtonFlexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},splitButtonContainerDisabled:{outline:"none",border:"none",selectors:p((f={},f[Et]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},f),Dt())}},t)}),Qi=jt(function(e,t){var n,r=Gi(e),o=Xi(e),i=e.palette;return m(r,{root:{padding:"0 4px",width:"32px",height:"32px",backgroundColor:"transparent",border:"none",color:e.semanticColors.link},rootHovered:{color:i.themeDarkAlt,backgroundColor:i.neutralLighter,selectors:(n={},n[Et]={borderColor:"Highlight",color:"Highlight"},n)},rootHasMenu:{width:"auto"},rootPressed:{color:i.themeDark,backgroundColor:i.neutralLight},rootExpanded:{color:i.themeDark,backgroundColor:i.neutralLight},rootChecked:{color:i.themeDark,backgroundColor:i.neutralLight},rootCheckedHovered:{color:i.themeDark,backgroundColor:i.neutralQuaternaryAlt},rootDisabled:{color:i.neutralTertiaryAlt}},o,t)}),Ji=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.theme;return r.createElement(Ki,p({},this.props,{variantClassName:"ms-Button--icon",styles:Qi(n,t),onRenderText:Vn,onRenderDescription:Vn}))},h([Qo("IconButton",["theme","styles"],!0)],t)}(r.Component);!function(e){e[e.info=0]="info",e[e.error=1]="error",e[e.blocked=2]="blocked",e[e.severeWarning=3]="severeWarning",e[e.success=4]="success",e[e.warning=5]="warning"}(Ai||(Ai={}));var Zi,Yi,$i,es,ts=ve(),ns=function(e){function t(t){var n,r=e.call(this,t)||this;return r.ICON_MAP=((n={})[Ai.info]="Info",n[Ai.warning]="Info",n[Ai.error]="ErrorBadge",n[Ai.blocked]="Blocked2",n[Ai.severeWarning]="Warning",n[Ai.success]="Completed",n),r._getRegionProps=function(){var e=!!r._getActionsDiv()||!!r._getDismissDiv(),t={"aria-describedby":r.state.labelId,role:"region"};return e?t:{}},r._onClick=function(e){r.setState({expandSingleLine:!r.state.expandSingleLine})},xn(r),r.state={labelId:Fn("MessageBar"),showContent:!1,expandSingleLine:!1},r}return c(t,e),t.prototype.render=function(){var e=this.props.isMultiline;return this._classNames=this._getClassNames(),e?this._renderMultiLine():this._renderSingleLine()},t.prototype._getActionsDiv=function(){return this.props.actions?r.createElement("div",{className:this._classNames.actions},this.props.actions):null},t.prototype._getDismissDiv=function(){var e=this.props,t=e.onDismiss,n=e.dismissIconProps;return t?r.createElement(Ji,{disabled:!1,className:this._classNames.dismissal,onClick:t,iconProps:n||{iconName:"Clear"},title:this.props.dismissButtonAriaLabel,ariaLabel:this.props.dismissButtonAriaLabel}):null},t.prototype._getDismissSingleLine=function(){return this.props.onDismiss?r.createElement("div",{className:this._classNames.dismissSingleLine},this._getDismissDiv()):null},t.prototype._getExpandSingleLine=function(){return!this.props.actions&&this.props.truncated?r.createElement("div",{className:this._classNames.expandSingleLine},r.createElement(Ji,{disabled:!1,className:this._classNames.expand,onClick:this._onClick,iconProps:{iconName:this.state.expandSingleLine?"DoubleChevronUp":"DoubleChevronDown"},ariaLabel:this.props.overflowButtonAriaLabel,"aria-expanded":this.state.expandSingleLine})):null},t.prototype._getIconSpan=function(){var e=this.props.messageBarIconProps;return r.createElement("div",{className:this._classNames.iconContainer,"aria-hidden":!0},e?r.createElement(gr,p({},e,{className:Ln(this._classNames.icon,e.className)})):r.createElement(gr,{iconName:this.ICON_MAP[this.props.messageBarType],className:this._classNames.icon}))},t.prototype._renderMultiLine=function(){return r.createElement("div",p({className:this._classNames.root},this._getRegionProps()),r.createElement("div",{className:this._classNames.content},this._getIconSpan(),this._renderInnerText(),this._getDismissDiv()),this._getActionsDiv())},t.prototype._renderSingleLine=function(){return r.createElement("div",p({className:this._classNames.root},this._getRegionProps()),r.createElement("div",{className:this._classNames.content},this._getIconSpan(),this._renderInnerText(),this._getExpandSingleLine(),this._getActionsDiv(),this._getDismissSingleLine()))},t.prototype._renderInnerText=function(){var e=De(this.props,Pe,["className"]);return r.createElement("div",{className:this._classNames.text,id:this.state.labelId,role:"status","aria-live":this._getAnnouncementPriority()},r.createElement("span",p({className:this._classNames.innerText},e),r.createElement(Me,null,r.createElement("span",null,this.props.children))))},t.prototype._getClassNames=function(){var e=this.props,t=e.theme,n=e.className,r=e.messageBarType,o=e.onDismiss,i=e.actions,s=e.truncated,a=e.isMultiline,u=this.state.expandSingleLine;return ts(this.props.styles,{theme:t,messageBarType:r||Ai.info,onDismiss:void 0!==o,actions:void 0!==i,truncated:s,isMultiline:a,expandSingleLine:u,className:n})},t.prototype._getAnnouncementPriority=function(){switch(this.props.messageBarType){case Ai.blocked:case Ai.error:case Ai.severeWarning:return"assertive"}return"polite"},t.defaultProps={messageBarType:Ai.info,onDismiss:void 0,isMultiline:!0},t}(r.Component),rs={root:"ms-MessageBar",error:"ms-MessageBar--error",blocked:"ms-MessageBar--blocked",severeWarning:"ms-MessageBar--severeWarning",success:"ms-MessageBar--success",warning:"ms-MessageBar--warning",multiline:"ms-MessageBar-multiline",singleline:"ms-MessageBar-singleline",dismissalSingleLine:"ms-MessageBar-dismissalSingleLine",expandingSingleLine:"ms-MessageBar-expandingSingleLine",content:"ms-MessageBar-content",iconContainer:"ms-MessageBar-icon",text:"ms-MessageBar-text",innerText:"ms-MessageBar-innerText",dismissSingleLine:"ms-MessageBar-dismissSingleLine",expandSingleLine:"ms-MessageBar-expandSingleLine",dismissal:"ms-MessageBar-dismissal",expand:"ms-MessageBar-expand",actions:"ms-MessageBar-actions",actionsSingleline:"ms-MessageBar-actionsSingleLine"},os=((Zi={})[Ai.error]="errorBackground",Zi[Ai.blocked]="errorBackground",Zi[Ai.success]="successBackground",Zi[Ai.warning]="warningBackground",Zi[Ai.severeWarning]="severeWarningBackground",Zi[Ai.info]="infoBackground",Zi),is=((Yi={})[Ai.error]="rgba(255, 0, 0, 0.3)",Yi[Ai.blocked]="rgba(255, 0, 0, 0.3)",Yi[Ai.success]="rgba(48, 241, 73, 0.3)",Yi[Ai.warning]="rgba(255, 254, 57, 0.3)",Yi[Ai.severeWarning]="rgba(255, 0, 0, 0.3)",Yi[Ai.info]="Window",Yi),ss=(($i={})[Ai.error]="errorIcon",$i[Ai.blocked]="errorIcon",$i[Ai.success]="successIcon",$i[Ai.warning]="warningIcon",$i[Ai.severeWarning]="severeWarningIcon",$i[Ai.info]="infoIcon",$i),as=M(ns,function(e){var t,n,r,o,i,s=e.theme,a=e.className,u=e.onDismiss,l=e.truncated,c=e.isMultiline,d=e.expandSingleLine,h=e.messageBarType,f=void 0===h?Ai.info:h,m=s.semanticColors,g=s.fonts,y=kt(0,479),v=Vt(rs,s),b={fontSize:xt.xSmall,height:10,lineHeight:"10px",color:m.messageText,selectors:(t={},t[Et]={MsHighContrastAdjust:"none",color:"WindowText"},t)},_=[Bt(s,{inset:1,highContrastStyle:{outlineOffset:"-6px",outline:"1px solid Highlight"},borderColor:"transparent"}),{flexShrink:0,width:32,height:32,padding:"8px 12px",selectors:{"& .ms-Button-icon":b,":hover":{backgroundColor:"transparent"},":active":{backgroundColor:"transparent"}}}];return{root:[v.root,g.medium,f===Ai.error&&v.error,f===Ai.blocked&&v.blocked,f===Ai.severeWarning&&v.severeWarning,f===Ai.success&&v.success,f===Ai.warning&&v.warning,c?v.multiline:v.singleline,!c&&u&&v.dismissalSingleLine,!c&&l&&v.expandingSingleLine,{background:m[os[f]],color:m.messageText,minHeight:32,width:"100%",display:"flex",wordBreak:"break-word",selectors:(n={".ms-Link":{color:m.messageLink,selectors:{":hover":{color:m.messageLinkHovered}}}},n[Et]={MsHighContrastAdjust:"none",background:is[f],border:"1px solid WindowText",color:"WindowText"},n)},c&&{flexDirection:"column"},a],content:[v.content,{display:"flex",width:"100%",lineHeight:"normal"}],iconContainer:[v.iconContainer,{fontSize:xt.medium,minWidth:16,minHeight:16,display:"flex",flexShrink:0,margin:"8px 0 8px 12px"}],icon:{color:m[ss[f]],selectors:(r={},r[Et]={MsHighContrastAdjust:"none",color:"WindowText"},r)},text:[v.text,p(p({minWidth:0,display:"flex",flexGrow:1,margin:8},g.small),{selectors:(o={},o[Et]={MsHighContrastAdjust:"none"},o)}),!u&&{marginRight:12}],innerText:[v.innerText,{lineHeight:16,selectors:{"& span a":{paddingLeft:4}}},l&&{overflow:"visible",whiteSpace:"pre-wrap"},!c&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},!c&&!l&&{selectors:(i={},i[y]={overflow:"visible",whiteSpace:"pre-wrap"},i)},d&&{overflow:"visible",whiteSpace:"pre-wrap"}],dismissSingleLine:v.dismissSingleLine,expandSingleLine:v.expandSingleLine,dismissal:[v.dismissal,_],expand:[v.expand,_],actions:[c?v.actions:v.actionsSingleline,{display:"flex",flexGrow:0,flexShrink:0,flexBasis:"auto",flexDirection:"row-reverse",alignItems:"center",margin:"0 12px 0 8px",selectors:{"& button:nth-child(n+2)":{marginLeft:8}}},c&&{marginBottom:8},u&&!c&&{marginRight:0}]}},void 0,{scope:"MessageBar"});!function(e){e[e.none=0]="none",e[e.descriptive=1]="descriptive",e[e.more=2]="more",e[e.downArrow=3]="downArrow"}(es||(es={}));var us,ls=jt(function(e,t,n){var r=Gi(e),o=m(r,n);return p(p({},o),{root:[r.root,t,e.fonts.medium,n&&n.root]})}),cs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.styles,o=d(e,["className","styles"]),i=ls(this.props.theme,t,n);return r.createElement(Ki,p({},o,{variantClassName:"ms-Button--facepile",styles:i,onRenderDescription:Vn}))},h([Qo("FacepileButton",["theme","styles"],!0)],t)}(r.Component);!function(e){e[e.Parent=0]="Parent",e[e.Self=1]="Self"}(us||(us={}));var ps,ds=ve(),hs=M(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 c(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.calloutProps,o=e.directionalHint,i=e.directionalHintForRTL,s=e.styles,a=e.id,u=e.maxWidth,l=e.onRenderContent,c=void 0===l?this._onRenderContent:l,d=e.targetElement,h=e.theme;return this._classNames=ds(s,{theme:h,className:t||n&&n.className,beakWidth:n&&n.beakWidth,gapSpace:n&&n.gapSpace,maxWidth:u}),r.createElement(oi,p({target:d,directionalHint:o,directionalHintForRTL:i},n,De(this.props,ke,["id"]),{className:this._classNames.root}),r.createElement("div",{className:this._classNames.content,id:a,role:"tooltip",onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},c(this.props,this._onRenderContent)))},t.defaultProps={directionalHint:1,maxWidth:"364px",calloutProps:{isBeakVisible:!0,beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1}},t}(r.Component),function(e){var t=e.className,n=e.beakWidth,r=void 0===n?16:n,o=e.gapSpace,i=void 0===o?0:o,s=e.maxWidth,a=e.theme,u=a.semanticColors,l=a.fonts,c=a.effects,p=-(Math.sqrt(r*r/2)+i)+1/window.devicePixelRatio;return{root:["ms-Tooltip",a.fonts.medium,Tt.fadeIn200,{background:u.menuBackground,boxShadow:c.elevation8,padding:"8px",maxWidth:s,selectors:{":after":{content:"''",position:"absolute",bottom:p,left:p,right:p,top:p,zIndex:0}}},t],content:["ms-Tooltip-content",l.small,{position:"relative",zIndex:1,color:u.menuItemText,wordWrap:"break-word",overflowWrap:"break-word",overflow:"hidden"}],subText:["ms-Tooltip-subtext",{fontSize:"inherit",fontWeight:"inherit",color:"inherit",margin:0}]}},void 0,{scope:"Tooltip"});!function(e){e[e.zero=0]="zero",e[e.medium=1]="medium",e[e.long=2]="long"}(ps||(ps={}));var fs,ms,gs,ys,vs,bs,_s,Ss=ve(),Is=function(e){function t(n){var o=e.call(this,n)||this;return o._tooltipHost=r.createRef(),o._defaultTooltipId=Fn("tooltip"),o.show=function(){o._toggleTooltip(!0)},o.dismiss=function(){o._hideTooltip()},o._getTargetElement=function(){if(o._tooltipHost.current){var e=o.props.overflowMode;if(void 0!==e)switch(e){case us.Parent:return o._tooltipHost.current.parentElement;case us.Self:return o._tooltipHost.current}return o._tooltipHost.current}},o._onTooltipMouseEnter=function(e){var n,r=o.props,i=r.overflowMode,s=r.delay;if(t._currentVisibleTooltip&&t._currentVisibleTooltip!==o&&t._currentVisibleTooltip.dismiss(),t._currentVisibleTooltip=o,void 0!==i){var a=o._getTargetElement();if(a&&!function(e){return e.clientWidth32),p=t?t/3<40?t/3+"px":"40px":"",d=t?{fontSize:t?t/6<20?t/6+"px":"20px":"",lineHeight:p}:void 0,h=t?{width:p,height:p}:void 0,f=Fs(o,{theme:s,presence:i,size:this.props.size,isOutOfOffice:n,presenceColors:u});return i===ms.none?null:r.createElement("div",{role:"presentation",className:f.presence,style:h,title:a},c&&this._onRenderIcon(f.presenceIcon,d))},t}(r.Component);function Ls(e,t){if(e){switch(ms[e]){case"online":return"SkypeCheck";case"away":return t?"SkypeArrow":"SkypeClock";case"dnd":return"SkypeMinus";case"offline":return t?"SkypeArrow":""}return""}}var Os={presence:"ms-Persona-presence",presenceIcon:"ms-Persona-presenceIcon"};function Ns(e){return{color:e,borderColor:e}}function As(e,t){return{selectors:{":before":{border:e+" solid "+t}}}}function Us(e){return{height:e,width:e}}function zs(e){return{backgroundColor:e}}var Ws=M(Bs,function(e){var t,n,r,o,i,s,a=e.theme,u=e.presenceColors,l=a.semanticColors,c=a.fonts,p=Vt(Os,a),d=Ds(e.size),h=Rs(e.presence),f=u&&u.available||"#6BB700",m=u&&u.away||"#FFAA44",g=u&&u.busy||"#C43148",y=u&&u.dnd||"#C50F1F",v=u&&u.offline||"#8A8886",b=u&&u.oof||"#B4009E",_=u&&u.background||l.bodyBackground,S=h.isOffline||e.isOutOfOffice&&(h.isAvailable||h.isBusy||h.isAway||h.isDoNotDisturb),I=d.isSize72||d.isSize100?"2px":"1px";return{presence:[p.presence,{position:"absolute",height:_s.size12,width:_s.size12,borderRadius:"50%",top:"auto",right:"-2px",bottom:"-2px",border:"2px solid "+_,textAlign:"center",boxSizing:"content-box",backgroundClip:"content-box",MsHighContrastAdjust:"none",selectors:(t={},t[Et]={borderColor:"Window",backgroundColor:"WindowText"},t)},(d.isSize8||d.isSize10)&&{right:"auto",top:"7px",left:0,border:0,selectors:(n={},n[Et]={top:"9px",border:"1px solid WindowText"},n)},(d.isSize8||d.isSize10||d.isSize24||d.isSize28||d.isSize32)&&Us(_s.size8),(d.isSize40||d.isSize48)&&Us(_s.size12),d.isSize16&&{height:_s.size6,width:_s.size6,borderWidth:"1.5px"},d.isSize56&&Us(_s.size16),d.isSize72&&Us(_s.size20),d.isSize100&&Us(_s.size28),d.isSize120&&Us(_s.size32),h.isAvailable&&{backgroundColor:f,selectors:(r={},r[Et]=zs("Highlight"),r)},h.isAway&&zs(m),h.isBlocked&&[{selectors:(o={":after":d.isSize40||d.isSize48||d.isSize72||d.isSize100?{content:'""',width:"100%",height:I,backgroundColor:g,transform:"translateY(-50%) rotate(-45deg)",position:"absolute",top:"50%",left:0}:void 0},o[Et]={selectors:{":after":{width:"calc(100% - 4px)",left:"2px",backgroundColor:"Window"}}},o)}],h.isBusy&&zs(g),h.isDoNotDisturb&&zs(y),h.isOffline&&zs(v),(S||h.isBlocked)&&[{backgroundColor:_,selectors:(i={":before":{content:'""',width:"100%",height:"100%",position:"absolute",top:0,left:0,border:I+" solid "+g,borderRadius:"50%",boxSizing:"border-box"}},i[Et]={backgroundColor:"WindowText",selectors:{":before":{width:"calc(100% - 2px)",height:"calc(100% - 2px)",top:"1px",left:"1px",borderColor:"Window"}}},i)}],S&&h.isAvailable&&As(I,f),S&&h.isBusy&&As(I,g),S&&h.isAway&&As(I,b),S&&h.isDoNotDisturb&&As(I,y),S&&h.isOffline&&As(I,v),S&&h.isOffline&&e.isOutOfOffice&&As(I,b)],presenceIcon:[p.presenceIcon,{color:_,fontSize:"6px",lineHeight:_s.size12,verticalAlign:"top",selectors:(s={},s[Et]={color:"Window"},s)},d.isSize56&&{fontSize:"8px",lineHeight:_s.size16},d.isSize72&&{fontSize:c.small.fontSize,lineHeight:_s.size20},d.isSize100&&{fontSize:c.medium.fontSize,lineHeight:_s.size28},d.isSize120&&{fontSize:c.medium.fontSize,lineHeight:_s.size32},h.isAway&&{position:"relative",left:S?void 0:"1px"},S&&h.isAvailable&&Ns(f),S&&h.isBusy&&Ns(g),S&&h.isAway&&Ns(b),S&&h.isDoNotDisturb&&Ns(y),S&&h.isOffline&&Ns(v),S&&h.isOffline&&e.isOutOfOffice&&Ns(b)]}},void 0,{scope:"PersonaPresence"}),js=[gs.lightBlue,gs.blue,gs.darkBlue,gs.teal,gs.green,gs.darkGreen,gs.lightPink,gs.pink,gs.magenta,gs.purple,gs.orange,gs.lightRed,gs.darkRed,gs.violet,gs.gold,gs.burgundy,gs.warmGray,gs.cyan,gs.rust,gs.coolGray],Hs=js.length,Ks=ve({cacheSize:100}),qs=function(e){function t(t){var n=e.call(this,t)||this;return n._onRenderCoin=function(e){var t=n.props,o=t.coinSize,i=t.styles,s=t.imageUrl,a=t.imageAlt,u=t.imageShouldFadeIn,l=t.imageShouldStartVisible,c=t.theme,p=t.showUnknownPersonaCoin;if(!s)return null;var d=n.props.size,h=Ks(i,{theme:c,size:d,showUnknownPersonaCoin:p}),f=o||Ms[d];return r.createElement(pr,{className:h.image,imageFit:rr.cover,src:s,width:f,height:f,alt:a,shouldFadeIn:u,shouldStartVisible:l,onLoadingStateChange:n._onPhotoLoadingStateChange})},n._onRenderInitials=function(e){var t=e.imageInitials,o=e.allowPhoneInitials;if(e.showUnknownPersonaCoin)return r.createElement(gr,{iconName:"Help"});var i=me(n.props.theme);return""!==(t=t||function(e,t,n){return e?(e=function(e){return(e=(e=(e=e.replace(Cs,"")).replace(xs,"")).replace(Es," ")).trim()}(e),ks.test(e)||!n&&Ts.test(e)?"":function(e,t){var n="",r=e.split(" ");return 2===r.length?(n+=r[0].charAt(0).toUpperCase(),n+=r[1].charAt(0).toUpperCase()):3===r.length?(n+=r[0].charAt(0).toUpperCase(),n+=r[2].charAt(0).toUpperCase()):0!==r.length&&(n+=r[0].charAt(0).toUpperCase()),t&&n.length>1?n.charAt(1)+n.charAt(0):n}(e,t)):""}(n._getText(),i,o))?r.createElement("span",null,t):r.createElement(gr,{iconName:"Contact"})},n._onPhotoLoadingStateChange=function(e){n.setState({isImageLoaded:e===ir.loaded,isImageError:e===ir.error}),n.props.onPhotoLoadingStateChange&&n.props.onPhotoLoadingStateChange(e)},n.state={isImageLoaded:!1,isImageError:!1},n}return c(t,e),t.prototype.UNSAFE_componentWillReceiveProps=function(e){e.imageUrl!==this.props.imageUrl&&this.setState({isImageLoaded:!1,isImageError:!1})},t.prototype.render=function(){var e,t,n,o,i=this.props,s=i.className,a=i.coinProps,u=i.showUnknownPersonaCoin,l=i.coinSize,c=i.styles,d=i.imageUrl,h=i.isOutOfOffice,f=i.onRenderCoin,m=void 0===f?this._onRenderCoin:f,g=i.onRenderPersonaCoin,y=void 0===g?m:g,v=i.onRenderInitials,b=void 0===v?this._onRenderInitials:v,_=i.presence,S=i.presenceTitle,I=i.presenceColors,w=i.showInitialsUntilImageLoads,P=i.theme,C=this.props.size,x=De(this.props,ke),T=De(a||{},ke),E=l?{width:l,height:l}:void 0,k=u,D={coinSize:l,isOutOfOffice:h,presence:_,presenceTitle:S,presenceColors:I,size:C,theme:P},M=Ks(c,{theme:P,className:a&&a.className?a.className:s,size:C,coinSize:l,showUnknownPersonaCoin:u}),R=Boolean(!this.state.isImageLoaded&&(w&&d||!d||this.state.isImageError||k));return r.createElement("div",p({role:"presentation"},x,{className:M.coin}),C!==fs.size8&&C!==fs.size10&&C!==fs.tiny?r.createElement("div",p({role:"presentation"},T,{className:M.imageArea,style:E}),R&&r.createElement("div",{className:Be(M.initials,!u&&{backgroundColor:(e=this.props,t=e.primaryText,n=e.text,o=e.initialsColor,"string"==typeof o?o:function(e){switch(e){case gs.lightBlue:return"#4F6BED";case gs.blue:return"#0078D4";case gs.darkBlue:return"#004E8C";case gs.teal:return"#038387";case gs.lightGreen:case gs.green:return"#498205";case gs.darkGreen:return"#0B6A0B";case gs.lightPink:return"#C239B3";case gs.pink:return"#E3008C";case gs.magenta:return"#881798";case gs.purple:return"#5C2E91";case gs.orange:return"#CA5010";case gs.red:return"#EE1111";case gs.lightRed:return"#D13438";case gs.darkRed:return"#A4262C";case gs.transparent:return"transparent";case gs.violet:return"#8764B8";case gs.gold:return"#986F0B";case gs.burgundy:return"#750B1C";case gs.warmGray:return"#7A7574";case gs.cyan:return"#005B70";case gs.rust:return"#8E562E";case gs.coolGray:return"#69797E";case gs.black:return"#1D1D1D";case gs.gray:return"#393939"}}(o=void 0!==o?o:function(e){var t=gs.blue;if(!e)return t;for(var n=0,r=e.length-1;r>=0;r--){var o=e.charCodeAt(r),i=r%8;n^=(o<>8-i)}return js[n%Hs]}(n||t)))}),style:E,"aria-hidden":"true"},b(this.props,this._onRenderInitials)),!k&&y(this.props,this._onRenderCoin),r.createElement(Ws,p({},D))):this.props.presence?r.createElement(Ws,p({},D)):r.createElement(gr,{iconName:"Contact",className:M.size10WithoutPresenceIcon}),this.props.children)},t.prototype._getText=function(){return this.props.text||this.props.primaryText||""},t.defaultProps={size:fs.size48,presence:ms.none,imageAlt:""},t}(r.Component),Vs={coin:"ms-Persona-coin",imageArea:"ms-Persona-imageArea",image:"ms-Persona-image",initials:"ms-Persona-initials",size8:"ms-Persona--size8",size10:"ms-Persona--size10",size16:"ms-Persona--size16",size24:"ms-Persona--size24",size28:"ms-Persona--size28",size32:"ms-Persona--size32",size40:"ms-Persona--size40",size48:"ms-Persona--size48",size56:"ms-Persona--size56",size72:"ms-Persona--size72",size100:"ms-Persona--size100",size120:"ms-Persona--size120"},Gs=M(qs,function(e){var t,n=e.className,r=e.theme,o=e.coinSize,i=r.palette,s=r.fonts,a=Ds(e.size),u=Vt(Vs,r),l=o||e.size&&Ms[e.size]||48;return{coin:[u.coin,s.medium,a.isSize8&&u.size8,a.isSize10&&u.size10,a.isSize16&&u.size16,a.isSize24&&u.size24,a.isSize28&&u.size28,a.isSize32&&u.size32,a.isSize40&&u.size40,a.isSize48&&u.size48,a.isSize56&&u.size56,a.isSize72&&u.size72,a.isSize100&&u.size100,a.isSize120&&u.size120,n],size10WithoutPresenceIcon:{fontSize:s.xSmall.fontSize,position:"absolute",top:"5px",right:"auto",left:0},imageArea:[u.imageArea,{position:"relative",textAlign:"center",flex:"0 0 auto",height:l,width:l},l<=10&&{overflow:"visible",background:"transparent",height:0,width:0}],image:[u.image,{marginRight:"10px",position:"absolute",top:0,left:0,width:"100%",height:"100%",border:0,borderRadius:"50%",perspective:"1px"},l<=10&&{overflow:"visible",background:"transparent",height:0,width:0},l>10&&{height:l,width:l}],initials:[u.initials,{borderRadius:"50%",color:e.showUnknownPersonaCoin?"rgb(168, 0, 0)":i.white,fontSize:s.large.fontSize,fontWeight:Ct.semibold,lineHeight:48===l?46:l,height:l,selectors:(t={},t[Et]={border:"1px solid WindowText",MsHighContrastAdjust:"none",color:"WindowText",boxSizing:"border-box",backgroundColor:"Window !important"},t.i={fontWeight:Ct.semibold},t)},e.showUnknownPersonaCoin&&{backgroundColor:"rgb(234, 234, 234)"},l<32&&{fontSize:s.xSmall.fontSize},l>=32&&l<40&&{fontSize:s.medium.fontSize},l>=40&&l<56&&{fontSize:s.mediumPlus.fontSize},l>=56&&l<72&&{fontSize:s.xLarge.fontSize},l>=72&&l<100&&{fontSize:s.xxLarge.fontSize},l>=100&&{fontSize:s.superLarge.fontSize}]}},void 0,{scope:"PersonaCoin"}),Xs=ve(),Qs=function(e){function t(t){var n=e.call(this,t)||this;return n._onRenderPersonaCoin=function(e){return r.createElement(Gs,p({},e))},n}return c(t,e),t.prototype.render=function(){var e=this._onRenderText(this._getText()),t=this._onRenderText(this.props.secondaryText),n=this._onRenderText(this.props.tertiaryText),o=this._onRenderText(this.props.optionalText),i=this.props,s=i.hidePersonaDetails,a=i.onRenderOptionalText,u=void 0===a?o:a,l=i.onRenderPrimaryText,c=void 0===l?e:l,d=i.onRenderSecondaryText,h=void 0===d?t:d,f=i.onRenderTertiaryText,m=void 0===f?n:f,g=i.onRenderPersonaCoin,y=void 0===g?this._onRenderPersonaCoin:g,v=this.props.size,b=this.props,_=b.allowPhoneInitials,S=b.className,I=b.coinProps,w=b.showUnknownPersonaCoin,P=b.coinSize,C=b.styles,x=b.imageAlt,T=b.imageInitials,E=b.imageShouldFadeIn,k=b.imageShouldStartVisible,D=b.imageUrl,M=b.initialsColor,R=b.isOutOfOffice,F=b.onPhotoLoadingStateChange,B=b.onRenderCoin,L=b.onRenderInitials,O=b.presence,N=b.presenceTitle,A=b.presenceColors,U=b.showInitialsUntilImageLoads,z=b.showSecondaryText,W=b.theme,j=p({allowPhoneInitials:_,showUnknownPersonaCoin:w,coinSize:P,imageAlt:x,imageInitials:T,imageShouldFadeIn:E,imageShouldStartVisible:k,imageUrl:D,initialsColor:M,onPhotoLoadingStateChange:F,onRenderCoin:B,onRenderInitials:L,presence:O,presenceTitle:N,showInitialsUntilImageLoads:U,size:v,text:this._getText(),isOutOfOffice:R,presenceColors:A},I),H=Xs(C,{theme:W,className:S,showSecondaryText:z,presence:O,size:v}),K=De(this.props,ke),q=r.createElement("div",{className:H.details},this._renderElement(H.primaryText,c,e),this._renderElement(H.secondaryText,h,t),this._renderElement(H.tertiaryText,m,n),this._renderElement(H.optionalText,u,o),this.props.children);return r.createElement("div",p({},K,{className:H.root,style:P?{height:P,minWidth:P}:void 0}),y(j,this._onRenderPersonaCoin),(!s||v===fs.size8||v===fs.size10||v===fs.tiny)&&q)},t.prototype._renderElement=function(e,t,n){return r.createElement("div",{dir:"auto",className:e},t&&t(this.props,n))},t.prototype._getText=function(){return this.props.text||this.props.primaryText||""},t.prototype._onRenderText=function(e){return e?function(){return r.createElement(Ps,{content:e,overflowMode:us.Parent,directionalHint:0},e)}:void 0},t.defaultProps={size:fs.size48,presence:ms.none,imageAlt:""},t}(r.Component),Js={root:"ms-Persona",size8:"ms-Persona--size8",size10:"ms-Persona--size10",size16:"ms-Persona--size16",size24:"ms-Persona--size24",size28:"ms-Persona--size28",size32:"ms-Persona--size32",size40:"ms-Persona--size40",size48:"ms-Persona--size48",size56:"ms-Persona--size56",size72:"ms-Persona--size72",size100:"ms-Persona--size100",size120:"ms-Persona--size120",available:"ms-Persona--online",away:"ms-Persona--away",blocked:"ms-Persona--blocked",busy:"ms-Persona--busy",doNotDisturb:"ms-Persona--donotdisturb",offline:"ms-Persona--offline",details:"ms-Persona-details",primaryText:"ms-Persona-primaryText",secondaryText:"ms-Persona-secondaryText",tertiaryText:"ms-Persona-tertiaryText",optionalText:"ms-Persona-optionalText",textContent:"ms-Persona-textContent"},Zs=M(Qs,function(e){var t=e.className,n=e.showSecondaryText,r=e.theme,o=r.semanticColors,i=r.fonts,s=Vt(Js,r),a=Ds(e.size),u=Rs(e.presence),l={color:o.bodySubtext,fontWeight:Ct.regular,fontSize:i.small.fontSize};return{root:[s.root,r.fonts.medium,yn,{color:o.bodyText,position:"relative",height:vs.size48,minWidth:vs.size48,display:"flex",alignItems:"center",selectors:{".contextualHost":{display:"none"}}},a.isSize8&&[s.size8,{height:vs.size8,minWidth:vs.size8}],a.isSize10&&[s.size10,{height:vs.size10,minWidth:vs.size10}],a.isSize16&&[s.size16,{height:vs.size16,minWidth:vs.size16}],a.isSize24&&[s.size24,{height:vs.size24,minWidth:vs.size24}],a.isSize24&&n&&{height:"36px"},a.isSize28&&[s.size28,{height:vs.size28,minWidth:vs.size28}],a.isSize28&&n&&{height:"32px"},a.isSize32&&[s.size32,{height:vs.size32,minWidth:vs.size32}],a.isSize40&&[s.size40,{height:vs.size40,minWidth:vs.size40}],a.isSize48&&s.size48,a.isSize56&&[s.size56,{height:vs.size56,minWidth:vs.size56}],a.isSize72&&[s.size72,{height:vs.size72,minWidth:vs.size72}],a.isSize100&&[s.size100,{height:vs.size100,minWidth:vs.size100}],a.isSize120&&[s.size120,{height:vs.size120,minWidth:vs.size120}],u.isAvailable&&s.available,u.isAway&&s.away,u.isBlocked&&s.blocked,u.isBusy&&s.busy,u.isDoNotDisturb&&s.doNotDisturb,u.isOffline&&s.offline,t],details:[s.details,{padding:"0 24px 0 16px",minWidth:0,width:"100%",textAlign:"left",display:"flex",flexDirection:"column",justifyContent:"space-around"},(a.isSize8||a.isSize10)&&{paddingLeft:17},(a.isSize24||a.isSize28||a.isSize32)&&{padding:"0 8px"},(a.isSize40||a.isSize48)&&{padding:"0 12px"}],primaryText:[s.primaryText,vn,{color:o.bodyText,fontWeight:Ct.regular,fontSize:i.medium.fontSize,selectors:{":hover":{color:o.inputTextHovered}}},n&&{height:"16px",lineHeight:"16px",overflowX:"hidden"},(a.isSize8||a.isSize10)&&{fontSize:i.small.fontSize,lineHeight:vs.size8},a.isSize16&&{lineHeight:vs.size28},(a.isSize24||a.isSize28||a.isSize32||a.isSize40||a.isSize48)&&n&&{height:18},(a.isSize56||a.isSize72||a.isSize100||a.isSize120)&&{fontSize:i.xLarge.fontSize},(a.isSize56||a.isSize72||a.isSize100||a.isSize120)&&n&&{height:22}],secondaryText:[s.secondaryText,vn,l,(a.isSize8||a.isSize10||a.isSize16||a.isSize24||a.isSize28||a.isSize32)&&{display:"none"},n&&{display:"block",height:"16px",lineHeight:"16px",overflowX:"hidden"},a.isSize24&&n&&{height:18},(a.isSize56||a.isSize72||a.isSize100||a.isSize120)&&{fontSize:i.medium.fontSize},(a.isSize56||a.isSize72||a.isSize100||a.isSize120)&&n&&{height:18}],tertiaryText:[s.tertiaryText,vn,l,{display:"none",fontSize:i.medium.fontSize},(a.isSize72||a.isSize100||a.isSize120)&&{display:"block"}],optionalText:[s.optionalText,vn,l,{display:"none",fontSize:i.medium.fontSize},(a.isSize100||a.isSize120)&&{display:"block"}],textContent:[s.textContent,vn]}},void 0,{scope:"Persona"}),Ys=ve(),$s=function(e){function t(t){var n=e.call(this,t)||this;return n._classNames=Ys(n.props.styles,{theme:n.props.theme,className:n.props.className}),n._getPersonaControl=function(e){var t=n.props,o=t.getPersonaProps,i=t.personaSize;return r.createElement(Zs,p({imageInitials:e.imageInitials,imageUrl:e.imageUrl,initialsColor:e.initialsColor,allowPhoneInitials:e.allowPhoneInitials,text:e.personaName,size:i},o?o(e):null,{styles:{details:{flex:"1 0 auto"}}}))},n._getPersonaCoinControl=function(e){var t=n.props,o=t.getPersonaProps,i=t.personaSize;return r.createElement(Gs,p({imageInitials:e.imageInitials,imageUrl:e.imageUrl,initialsColor:e.initialsColor,allowPhoneInitials:e.allowPhoneInitials,text:e.personaName,size:i},o?o(e):null))},xn(n),n._ariaDescriptionId=Fn(),n}return c(t,e),t.prototype.render=function(){var e=this.props.overflowButtonProps,t=this.props,n=t.chevronButtonProps,o=t.maxDisplayablePersonas,i=t.personas,s=t.overflowPersonas,a=t.showAddButton,u=t.ariaLabel,l=this._classNames,c="number"==typeof o?Math.min(i.length,o):i.length;n&&!e&&(e=n);var p=s&&s.length>0,d=p?i:i.slice(0,c),h=(p?s:i.slice(c))||[];return r.createElement("div",{className:l.root},this.onRenderAriaDescription(),r.createElement("div",{className:l.itemContainer},a?this._getAddNewElement():null,r.createElement("ul",{className:l.members,"aria-label":u},this._onRenderVisiblePersonas(d,0===h.length&&1===i.length)),e?this._getOverflowElement(h):null))},t.prototype.onRenderAriaDescription=function(){var e=this.props.ariaDescription,t=this._classNames;return e&&r.createElement("span",{className:t.screenReaderOnly,id:this._ariaDescriptionId},e)},t.prototype._onRenderVisiblePersonas=function(e,t){var n=this,o=this.props,i=o.onRenderPersona,s=void 0===i?this._getPersonaControl:i,a=o.onRenderPersonaCoin,u=void 0===a?this._getPersonaCoinControl:a;return e.map(function(e,o){var i=t?s(e,n._getPersonaControl):u(e,n._getPersonaCoinControl);return r.createElement("li",{key:(t?"persona":"personaCoin")+"-"+o,className:n._classNames.member},e.onClick?n._getElementWithOnClickEvent(i,e,o):n._getElementWithoutOnClickEvent(i,e,o))})},t.prototype._getElementWithOnClickEvent=function(e,t,n){var o=t.keytipProps;return r.createElement(cs,p({},De(t,Te),this._getElementProps(t,n),{keytipProps:o,onClick:this._onPersonaClick.bind(this,t)}),e)},t.prototype._getElementWithoutOnClickEvent=function(e,t,n){return r.createElement("div",p({},De(t,Te),this._getElementProps(t,n)),e)},t.prototype._getElementProps=function(e,t){var n=this._classNames;return{key:(e.imageUrl?"i":"")+t,"data-is-focusable":!0,className:n.itemButton,title:e.personaName,onMouseMove:this._onPersonaMouseMove.bind(this,e),onMouseOut:this._onPersonaMouseOut.bind(this,e)}},t.prototype._getOverflowElement=function(e){switch(this.props.overflowButtonType){case es.descriptive:return this._getDescriptiveOverflowElement(e);case es.downArrow:return this._getIconElement("ChevronDown");case es.more:return this._getIconElement("More");default:return null}},t.prototype._getDescriptiveOverflowElement=function(e){var t=this.props.personaSize;if(!e||e.length<1)return null;var n=e.map(function(e){return e.personaName}).join(", "),o=p({title:n},this.props.overflowButtonProps),i=Math.max(e.length,0),s=this._classNames;return r.createElement(cs,p({},o,{ariaDescription:o.title,className:s.descriptiveOverflowButton}),r.createElement(Gs,{size:t,onRenderInitials:this._renderInitialsNotPictured(i),initialsColor:gs.transparent}))},t.prototype._getIconElement=function(e){var t=this.props,n=t.overflowButtonProps,o=t.personaSize,i=this._classNames;return r.createElement(cs,p({},n,{className:i.overflowButton}),r.createElement(Gs,{size:o,onRenderInitials:this._renderInitials(e,!0),initialsColor:gs.transparent}))},t.prototype._getAddNewElement=function(){var e=this.props,t=e.addButtonProps,n=e.personaSize,o=this._classNames;return r.createElement(cs,p({},t,{className:o.addButton}),r.createElement(Gs,{size:n,onRenderInitials:this._renderInitials("AddFriend")}))},t.prototype._onPersonaClick=function(e,t){e.onClick(t,e),t.preventDefault(),t.stopPropagation()},t.prototype._onPersonaMouseMove=function(e,t){e.onMouseMove&&e.onMouseMove(t,e)},t.prototype._onPersonaMouseOut=function(e,t){e.onMouseOut&&e.onMouseOut(t,e)},t.prototype._renderInitials=function(e,t){var n=this._classNames;return function(){return r.createElement(gr,{iconName:e,className:t?n.overflowInitialsIcon:""})}},t.prototype._renderInitialsNotPictured=function(e){var t=this._classNames;return function(){return r.createElement("span",{className:t.overflowInitialsIcon},e<100?"+"+e:"99+")}},t.defaultProps={maxDisplayablePersonas:5,personas:[],overflowPersonas:[],personaSize:fs.size32},t}(r.Component),ea={root:"ms-Facepile",addButton:"ms-Facepile-addButton ms-Facepile-itemButton",descriptiveOverflowButton:"ms-Facepile-descriptiveOverflowButton ms-Facepile-itemButton",itemButton:"ms-Facepile-itemButton ms-Facepile-person",itemContainer:"ms-Facepile-itemContainer",members:"ms-Facepile-members",member:"ms-Facepile-member",overflowButton:"ms-Facepile-overflowButton ms-Facepile-itemButton"},ta=M($s,function(e){var t=e.className,n=e.theme,r=e.spacingAroundItemButton,o=void 0===r?2:r,i=n.palette,s=n.fonts,a=Vt(ea,n),u={textAlign:"center",padding:0,borderRadius:"50%",verticalAlign:"top",display:"inline",backgroundColor:"transparent",border:"none",selectors:{"&::-moz-focus-inner":{padding:0,border:0}}};return{root:[a.root,n.fonts.medium,{width:"auto"},t],addButton:[a.addButton,Bt(n,{inset:-1}),u,{fontSize:s.medium.fontSize,color:i.white,backgroundColor:i.themePrimary,marginRight:2*o+"px",selectors:{"&:hover":{backgroundColor:i.themeDark},"&:focus":{backgroundColor:i.themeDark},"&:active":{backgroundColor:i.themeDarker},"&:disabled":{backgroundColor:i.neutralTertiaryAlt}}}],descriptiveOverflowButton:[a.descriptiveOverflowButton,Bt(n,{inset:-1}),u,{fontSize:s.small.fontSize,color:i.neutralSecondary,backgroundColor:i.neutralLighter,marginLeft:2*o+"px"}],itemButton:[a.itemButton,u],itemContainer:[a.itemContainer,{display:"flex"}],members:[a.members,{display:"flex",overflow:"hidden",listStyleType:"none",padding:0,margin:"-"+o+"px"}],member:[a.member,{display:"inline-flex",flex:"0 0 auto",margin:o+"px"}],overflowButton:[a.overflowButton,Bt(n,{inset:-1}),u,{fontSize:s.medium.fontSize,color:i.neutralSecondary,backgroundColor:i.neutralLighter,marginLeft:2*o+"px"}],overflowInitialsIcon:[{color:i.neutralPrimary}],screenReaderOnly:Lt}},void 0,{scope:"Facepile"}),na=function(e,t){return(na=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function ra(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}na(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var oa=function(){return(oa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}function sa(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{u(r.next(e))}catch(e){i(e)}}function a(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}u((r=r.apply(e,t||[])).next())})}function aa(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function la(e,t){for(var n=0,r=t.length,o=e.length;n0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}Object.create,Object.create;var Ea=["defaultCachingStore","defaultCachingTimeoutSeconds","globalCacheDisable","enableCacheExpiration","cacheExpirationIntervalMilliseconds","spfxContext","ie11"],ka=[],Da=function(){function e(e){var t=this;void 0===e&&(e=new Map),this._v=e;var n=function(e,n){t._v.has(e)||t._v.set(e,n)};n(Ea[0],"session"),n(Ea[1],60),n(Ea[2],!1),n(Ea[3],!1),n(Ea[4],750),n(Ea[5],null),n(Ea[6],!1),ka.forEach(function(e){return e(t)})}return e.prototype.assign=function(e){var t;this._v=function(e){for(var t=[],n=1;n=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(this._v),o=r.next();!o.done;o=r.next()){var i=Ta(o.value,2),s=i[0],a=i[1];"__isDefault__"!==s&&n.set(s,a)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}return n},e}(),Ma=new Da(new Map([["__isDefault__",!0]])),Ra=n("lC+Z");function Fa(e,t){ma(t)&&new Request("",{headers:t}).headers.forEach(function(t,n){e.append(n,t)})}function Ba(e,t){if(ma(t)){var n=ya(e.headers||{},t.headers);(e=ya(e,t)).headers=n}}var La=function(){function e(){}return e.prototype.fetch=function(e,t){return Ra.a.fetch(e,t)},e}(),Oa=(function(e){function t(t){var n=e.call(this,function(e){return Ca(n,void 0,void 0,function(){return xa(this,function(n){switch(n.label){case 0:return[4,t.aadTokenProviderFactory.getTokenProvider()];case 1:return[2,n.sent().getToken((r=e.url,o=new URL(r),o.protocol+"//"+o.hostname))]}var r,o})})})||this;return n.context=t,n}Pa(t,e),t.prototype.getToken=function(e){return Ca(this,void 0,void 0,function(){return xa(this,function(t){switch(t.label){case 0:return[4,this.context.aadTokenProviderFactory.getTokenProvider()];case 1:return[2,t.sent().getToken(e)]}})})}}(function(e){function t(t){var n=e.call(this,null)||this;return n.tokenFactory=t,n}return Pa(t,e),t.prototype.fetch=function(t,n){return Ca(this,void 0,void 0,function(){var r;return xa(this,function(o){switch(o.label){case 0:return r=this,[4,this.tokenFactory({url:t,options:n})];case 1:return r.token=o.sent(),[2,e.prototype.fetch.call(this,t,n)]}})})},t}(function(e){function t(t){var n=e.call(this)||this;return n.token=t,n}return Pa(t,e),t.prototype.fetch=function(t,n){void 0===n&&(n={});var r=new Headers;return Fa(r,n.headers),r.set("Authorization","Bearer "+this.token),n.headers=r,e.prototype.fetch.call(this,t,n)},t}(La))),function(){function e(e,t){void 0===t&&(t=-1),this.store=e,this.defaultTimeoutMinutes=t,this.enabled=this.test(),Ma.get("enableCacheExpiration")&&this.cacheExpirationHandler()}return e.bind=function(t){return new e(void 0===t?new Na:t)},e.prototype.get=function(e){if(!this.enabled)return null;var t=this.store.getItem(e);if(!ma(t))return null;var n=JSON.parse(t);return new Date(n.expiration)<=new Date?(this.delete(e),null):n.value},e.prototype.put=function(e,t,n){this.enabled&&this.store.setItem(e,this.createPersistable(t,n))},e.prototype.delete=function(e){this.enabled&&this.store.removeItem(e)},e.prototype.getOrPut=function(e,t,n){return Ca(this,void 0,void 0,function(){var r;return xa(this,function(o){switch(o.label){case 0:return this.enabled?null!==(r=this.get(e))?[3,2]:[4,t()]:[2,t()];case 1:r=o.sent(),this.put(e,r,n),o.label=2;case 2:return[2,r]}})})},e.prototype.deleteExpired=function(){return Ca(this,void 0,void 0,function(){var e,t;return xa(this,function(n){switch(n.label){case 0:if(!this.enabled)return[2];e=0,n.label=1;case 1:return e0&&(n=60*this.defaultTimeoutMinutes),t=pa(new Date,"second",n)}return _a({pnp:1,expiration:t,value:e})},e.prototype.cacheExpirationHandler=function(){var e=this;this.enabled&&this.deleteExpired().then(function(){setTimeout(ca(e,e.cacheExpirationHandler),Ma.get("cacheExpirationIntervalMilliseconds"))}).catch(console.error)},e}()),Na=function(){function e(e){void 0===e&&(e=new Map),this._store=e}return Object.defineProperty(e.prototype,"length",{get:function(){return this._store.size},enumerable:!1,configurable:!0}),e.prototype.clear=function(){this._store.clear()},e.prototype.getItem=function(e){return this._store.get(e)},e.prototype.key=function(e){return Array.from(this._store)[e][0]},e.prototype.removeItem=function(e){this._store.delete(e)},e.prototype.setItem=function(e,t){this._store.set(e,t)},e}(),Aa=function(){function e(e,t){void 0===e&&(e=null),void 0===t&&(t=null),this._local=e,this._session=t}return Object.defineProperty(e.prototype,"local",{get:function(){return null===this._local&&(this._local=new Oa("undefined"==typeof localStorage?new Na:localStorage)),this._local},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"session",{get:function(){return null===this._session&&(this._session=new Oa("undefined"==typeof sessionStorage?new Na:sessionStorage)),this._session},enumerable:!1,configurable:!0}),e}(),Ua=function(){function e(e){void 0===e&&(e=ha()),this._batchId=e,this._reqs=[],this._deps=[],this._rDeps=[],this._index=-1}return Object.defineProperty(e.prototype,"batchId",{get:function(){return this._batchId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"requests",{get:function(){return this._reqs.sort(function(e,t){return e.index-t.index})},enumerable:!1,configurable:!0}),e.prototype.track=function(e){e.data.batch=this,(void 0===e.data.batchIndex||e.data.batchIndex<0)&&(e.data.batchIndex=++this._index)},e.prototype.add=function(e){var t={id:e.requestId,index:e.batchIndex,method:e.method.toUpperCase(),options:e.options,parser:e.parser,reject:null,resolve:null,url:e.url},n=new Promise(function(e,n){t.resolve=e,t.reject=n});return this._reqs.push(t),n},e.prototype.addDependency=function(){var e=function(){};return this._deps.push(new Promise(function(t){e=t})),e},e.prototype.addResolveBatchDependency=function(e){this._rDeps.push(e)},e.prototype.execute=function(){var e=this;return Promise.all(this._deps).then(function(){return Promise.all(e._deps)}).then(function(){return e.executeImpl()}).then(function(){return Promise.all(e._rDeps)}).then(function(){})},e}(),za=new Aa,Wa=function(){function e(e,t,n){this.key=e,this.storeName=t,this.expiration=n}return Object.defineProperty(e.prototype,"store",{get:function(){return"local"===this.storeName?za.local:za.session},enumerable:!1,configurable:!0}),e}(),ja=function(){function e(e,t){this.parser=e,this.cacheOptions=t}return e.prototype.parse=function(e){var t=this;return this.parser.parse(e).then(function(e){return t.cacheData(e)})},e.prototype.cacheData=function(e){return null!==this.cacheOptions.store&&this.cacheOptions.store.put(this.cacheOptions.key,e,this.cacheOptions.expiration),e},e}();function Ha(e,t,n,r){Reflect.defineProperty(e.prototype,t,{configurable:!0,enumerable:!0,get:function(){return n(this,r)}})}var Ka=function(e,t){return(Ka=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function qa(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Ka(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function Va(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}function Ga(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function Xa(e,t){for(var n=0,r=t.length,o=e.length;n0?JSON.parse(e):{}}).then(function(e){return t(r.parseODataJSON(e))}).catch(function(e){return n(e)})},e.prototype.handleError=function(e,t){return e.ok||uu.init(e).then(t),e.ok},e.prototype.parseODataJSON=function(e){var t=e;return Sa(e,"d")?t=Sa(e.d,"results")?e.d.results:e.d:Sa(e,"value")&&(t=e.value),t},e}(),ou=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qa(t,e),t.prototype.parseImpl=function(e,t){e.text().then(t)},t}(ru),iu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qa(t,e),t.prototype.parseImpl=function(e,t){e.blob().then(t)},t}(ru),su=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qa(t,e),t.prototype.parseImpl=function(e,t){e.json().then(t)},t}(ru),au=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qa(t,e),t.prototype.parseImpl=function(e,t){fa(e.arrayBuffer)?e.arrayBuffer().then(t):e.buffer().then(t)},t}(ru),uu=(function(e){function t(t){var n=e.call(this)||this;return n.parser=t,n}qa(t,e),t.prototype.parseImpl=function(e,t){this.parser(e).then(t)}}(ru),function(e){function t(t,n,r,o){void 0===r&&(r=n.status),void 0===o&&(o=n.statusText);var i=e.call(this,t)||this;return i.response=n,i.status=r,i.statusText=o,i.isHttpRequestError=!0,i}return qa(t,e),t.init=function(e){return n=this,void 0,o=function(){var n;return function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1] "+n,e.clone())]}})},new((r=void 0)||(r=Promise))(function(e,t){function i(e){try{a(o.next(e))}catch(e){t(e)}}function s(e){try{a(o.throw(e))}catch(e){t(e)}}function a(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r(function(e){e(n)})).then(i,s)}a((o=o.apply(n,[])).next())});var n,r,o},t}(Error));function lu(e){var t;e.options&&e.options.body&&(t=e.options.body,e.options.body="-");var n=JSON.stringify(e,function(e,t){switch(e){case"query":return JSON.stringify(Xa([],Ga(t)));case"batch":case"batchDependency":case"cachingOptions":case"clientFactory":case"parser":return"-";default:return t}},0),r=JSON.parse(n,function(t,n){switch(t){case"query":return new Map(JSON.parse(n));case"batch":case"batchDependency":case"cachingOptions":case"clientFactory":case"parser":return e[t];default:return n}});return t&&(r.options.body=t,e.options.body=t),r}var cu,pu=function(){function e(e){void 0===e&&(e={}),this._data=Object.assign({},{cloneParentWasCaching:!1,options:{},parentUrl:"",parser:new ru,query:new Map,url:"",useCaching:!1},lu(e)),this._runtime=null}return Object.defineProperty(e.prototype,"data",{get:function(){return this._data},set:function(e){this._data=Object.assign({},this.data,lu(e))},enumerable:!1,configurable:!0}),e.prototype.getRuntime=function(){return null===this._runtime?Ma:this._runtime},e.prototype.setRuntime=function(){for(var e=[],t=0;t1&&ma(e[1])&&this._runtime.assign(e[1])),this},e.prototype.toUrl=function(){return this.data.url},e.prototype.concat=function(e){return this.data.url+=e,this},Object.defineProperty(e.prototype,"query",{get:function(){return this.data.query},enumerable:!1,configurable:!0}),e.prototype.configure=function(e){return Ba(this.data.options,e),this},e.prototype.configureFrom=function(e){Ba(this.data.options,e.data.options);var t=e.getRuntime();return t.get("__isDefault__")||this.setRuntime(t),this},e.prototype.usingCaching=function(e){var t=this.getRuntime();if(!t.get("globalCacheDisable")){if(this.data.useCaching=!0,"string"==typeof e){if(ba(e))throw Error("Cache key cannot be empty.");e={key:e}}var n={expiration:pa(new Date,"second",t.get("defaultCachingTimeoutSeconds")),storeName:t.get("defaultCachingStore")};this.data.cachingOptions=ya(n,e)}return this},e.prototype.usingParser=function(e){return this.data.parser=e,this},e.prototype.withPipeline=function(e){return this.data.pipes=e.slice(0),this},e.prototype.append=function(e){this.data.url=da(this.data.url,e)},e.prototype.inBatch=function(e){if(this.hasBatch)throw Error("This query is already part of a batch.");return ma(e)&&e.track(this),this},e.prototype.addBatchDependency=function(){return ma(this.data.batch)?this.data.batch.addDependency():function(){return null}},Object.defineProperty(e.prototype,"hasBatch",{get:function(){return ma(this.data.batch)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"batch",{get:function(){return this.hasBatch?this.data.batch:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentUrl",{get:function(){return this.data.parentUrl},enumerable:!1,configurable:!0}),e.prototype.cloneTo=function(e,t){return void 0===t&&(t={}),t=ya({includeBatch:!0,includeQuery:!1},t),e.data=Object.assign({},lu(this.data),{batch:null,cloneParentCacheOptions:null,cloneParentWasCaching:!1},lu(e.data)),e.configureFrom(this),t.includeBatch&&e.inBatch(this.batch),t.includeQuery&&this.query.size>0&&this.query.forEach(function(t,n){return e.query.set(n,t)}),this.data.useCaching&&(e.data.cloneParentWasCaching=!0,e.data.cloneParentCacheOptions=this.data.cachingOptions),e},e}(),du=function(){function e(){}return Object.defineProperty(e,"activeLogLevel",{get:function(){return e.instance.activeLogLevel},set:function(t){e.instance.activeLogLevel=t},enumerable:!1,configurable:!0}),Object.defineProperty(e,"instance",{get:function(){return void 0!==e._instance&&null!==e._instance||(e._instance=new hu),e._instance},enumerable:!1,configurable:!0}),e.subscribe=function(){for(var t=[],n=0;n0?e.pipes.shift()(e):Promise.resolve(e)}function gu(e){return void 0===e&&(e=!1),function(t,n,r){var o=r.value;r.value=function(){for(var r=[],i=0;i0&&Sa(r[0],"hasResult")&&r[0].hasResult?(du.write("["+r[0].requestId+"] ("+(new Date).getTime()+") Skipping request pipeline method "+n+", existing result in pipeline.",0),Promise.resolve(r[0])):(du.write("["+r[0].requestId+"] ("+(new Date).getTime()+") Calling request pipeline method "+n+".",0),o.apply(t,r).then(function(e){return mu(e)}))}}}!function(e){e[e.Verbose=0]="Verbose",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error",e[e.Off=99]="Off"}(cu||(cu={})),function(){function e(){}e.prototype.log=function(e){var t=this.format(e);switch(e.level){case 0:case 1:console.log(t);break;case 2:console.warn(t);break;case 3:console.error(t)}},e.prototype.format=function(e){var t=[];if(t.push("Message: "+e.message),void 0!==e.data)try{t.push(" Data: "+JSON.stringify(e.data))}catch(e){t.push(" Data: Error in stringify of supplied data "+e)}return t.join("")}}();var yu,vu=function(){function e(){}return e.logStart=function(e){return new Promise(function(t){du.log({data:1===du.activeLogLevel?{}:e,level:1,message:"["+e.requestId+"] ("+(new Date).getTime()+") Beginning "+e.method+" request ("+e.url+")"}),t(e)})},e.caching=function(e){return new Promise(function(t){if(e.useCaching){du.write("["+e.requestId+"] ("+(new Date).getTime()+") Caching is enabled for request, checking cache...",1);var n=new Wa(e.url.toLowerCase());if(void 0!==e.cachingOptions&&(n=ya(n,e.cachingOptions)),null!==n.store){var r=n.store.get(n.key);if(null!==r)return du.log({data:1===du.activeLogLevel?{}:r,level:1,message:"["+e.requestId+"] ("+(new Date).getTime()+") Value returned from cache."}),fa(e.batchDependency)&&e.batchDependency(),Sa(e.parser,"hydrate")&&(r=e.parser.hydrate(r)),fu(e,r).then(function(e){return t(e)})}du.write("["+e.requestId+"] ("+(new Date).getTime()+") Value not found in cache.",1),e.parser=new ja(e.parser,n)}return t(e)})},e.send=function(e){return new Promise(function(t,n){if(e.isBatched){var r=e.batch.add(e);fa(e.batchDependency)&&e.batchDependency(),du.write("["+e.requestId+"] ("+(new Date).getTime()+") Batching request in batch "+e.batch.batchId+".",1),t(fu(e,r))}else{du.write("["+e.requestId+"] ("+(new Date).getTime()+") Sending request.",1);var o=e.clientFactory(),i=ya(e.options||{},{method:e.method});o.fetch(e.url,i).then(function(t){return e.parser.parse(t)}).then(function(t){return fu(e,t)}).then(function(e){return t(e)}).catch(function(e){return n(e)})}})},e.logEnd=function(e){return new Promise(function(t){e.isBatched?du.log({data:1===du.activeLogLevel?{}:e,level:1,message:"["+e.requestId+"] ("+(new Date).getTime()+") "+e.method+" request will complete in batch "+e.batch.batchId+"."}):du.log({data:1===du.activeLogLevel?{}:e,level:1,message:"["+e.requestId+"] ("+(new Date).getTime()+") Completing "+e.method+" request."}),t(e)})},Va([gu(!0)],e,"logStart",null),Va([gu()],e,"caching",null),Va([gu()],e,"send",null),Va([gu(!0)],e,"logEnd",null),e}(),bu=(yu=[vu.logStart,vu.caching,vu.send,vu.logEnd].slice(0),function(e){return function(t){return function(n){return function(e){if(e.pipes.length<1)throw du.write("["+e.requestId+"] ("+(new Date).getTime()+") Request pipeline contains no methods!",3),Error("Request pipeline contains no methods!");var t=mu(e).then(function(e){return function(e){return du.log({data:0===du.activeLogLevel?e.result:{},level:1,message:"["+e.requestId+"] ("+(new Date).getTime()+") Returning result from pipeline. Set logging to verbose to see data."}),Promise.resolve(e.result)}(e)}).catch(function(e){throw du.error(e),e});return e.isBatched&&e.batch.addResolveBatchDependency(t),t}(Object.assign({},{batch:null,batchDependency:null,batchIndex:-1,cachingOptions:null,clientFactory:e,cloneParentCacheOptions:null,cloneParentWasCaching:!1,hasResult:!1,isBatched:ma(n.batch),method:t,options:null,parentUrl:"",parser:new ru,pipes:yu.slice(0),query:new Map,requestId:ha(),url:"",useCaching:/^get$/i.test(n.method)&&n.useCaching},lu(n)))}}});function _u(e,t){return Object.assign({body:_a(e)},t)}function Su(e,t){return Object.assign({headers:e},t)}function Iu(e){return{__metadata:{type:e}}}function wu(e){if(ba(e))return"";var t=e.indexOf("_api/");return t<0&&(t=e.indexOf("_vti_bin/")),t>-1?e.substr(0,t):e}function Pu(e){return function(t,n,r){void 0===r&&(r=Object.getOwnPropertyDescriptor(t,n));var o=r.value;return r.value=function(){for(var t=[],n=0;n0&&t[0]instanceof Da?t[0]:Ma,this._impl=t.length>1&&ma(t[1])?t[1]:(null===(e=this._runtime.get("sp"))||void 0===e?void 0:e.fetchClientFactory())||null,null===this._impl)throw Error("Could not generate fetchClientFactory in SPHttpClient.");this._digestCache=Tu(this)}return e.prototype.fetch=function(e,t){var n;return void 0===t&&(t={}),sa(this,void 0,void 0,function(){var r,o,i,s,a;return aa(this,function(u){switch(u.label){case 0:return r=ya(t,{cache:"no-cache",credentials:"same-origin"},!0),Fa(o=new Headers,null===(n=this._runtime.get("sp"))||void 0===n?void 0:n.headers),Fa(o,t.headers),o.has("Accept")||o.append("Accept","application/json"),o.has("Content-Type")||o.append("Content-Type","application/json;odata=verbose;charset=utf-8"),o.has("X-ClientService-ClientTag")||(i=Pu.getClientTag(o),(s="PnPCoreJS:2.5.0:"+i).length>32&&(s=s.substr(0,32)),o.append("X-ClientService-ClientTag",s)),!(r=ya(r,{headers:o})).method||"GET"===r.method.toUpperCase()||o.has("X-RequestDigest")||o.has("Authorization")?[3,2]:[4,this._digestCache(wu(e))];case 1:a=u.sent(),o.append("X-RequestDigest",a),u.label=2;case 2:return[2,this.fetchRaw(e,r)]}})})},e.prototype.fetchRaw=function(e,t){var n=this;void 0===t&&(t={});var r=new Headers;Fa(r,t.headers),t=ya(t,{headers:r});var o=function(r){var i=function(e){var t;e.headers.has("Retry-After")?t=1e3*parseInt(e.headers.get("Retry-After"),10):(t=r.delay,r.delay*=2),r.attempts++,r.retryCount<=r.attempts?r.reject(Error("Retry count exceeded ("+r.retryCount+") for request. Response status: ["+e.status+"] "+e.statusText)):setTimeout(ca(n,o,r),t)};n._impl.fetch(e,t).then(function(e){429===e.status?i(e):r.resolve(e)}).catch(function(e){503===e.status||504===e.status?i(e):r.reject(e)})};return new Promise(function(e,t){o.call(n,{attempts:0,delay:100,reject:t,resolve:e,retryCount:7})})},e.prototype.get=function(e,t){void 0===t&&(t={});var n=ya(t,{method:"GET"});return this.fetch(e,n)},e.prototype.post=function(e,t){void 0===t&&(t={});var n=ya(t,{method:"POST"});return this.fetch(e,n)},e.prototype.patch=function(e,t){void 0===t&&(t={});var n=ya(t,{method:"PATCH"});return this.fetch(e,n)},e.prototype.delete=function(e,t){void 0===t&&(t={});var n=ya(t,{method:"DELETE"});return this.fetch(e,n)},e}(),xu=new Map;function Tu(e){var t=this;return function(n){return sa(t,void 0,void 0,function(){var t,r,o,i,s,a,u,l;return aa(this,function(c){switch(c.label){case 0:return void 0!==(t=xu.get(n))&&new Date0)return da(u.substr(0,n),e)})),[2,e]})})}var ku=function(e){return function(t,n){return sa(this,void 0,void 0,function(){var r,o,i,s,a;return aa(this,function(u){switch(u.label){case 0:return r=t.getRuntime(),o=bu(function(e){return function(){return new Cu(e)}}(r))(e),i=lu(t.data),s=ma(i.batch)?i.batch.addDependency():function(){},[4,Eu(t.toUrlAndQuery(),r)];case 1:return a=u.sent(),Ba(i.options,n),[2,o(Object.assign({},i,{batchDependency:s,url:a}))]}})})}},Du=function(e,t){return e.data.cloneParentWasCaching&&e.usingCaching(e.data.cloneParentCacheOptions),e._forceCaching&&(e.data.useCaching=!0),ku("GET")(e,t)},Mu=function(e,t){return ku("POST")(e,t)},Ru=function(e){return nu(e)},Fu=function(e){function t(t,n){var r=this,o="",i="",s=new Map;if("string"==typeof t)if(va(t)||t.lastIndexOf("/")<0)i=t,o=da(t,n);else if(t.lastIndexOf("/")>t.lastIndexOf("(")){var a=t.lastIndexOf("/");i=t.slice(0,a),n=da(t.slice(a),n),o=da(i,n)}else a=t.lastIndexOf("("),i=t.slice(0,a),o=da(t,n);else{o=da(i=t.toUrl(),n||"");var u=t.query.get("@target");void 0!==u&&s.set("@target",u)}return r=e.call(this,{parentUrl:i,query:s,url:o})||this,"string"!=typeof t&&r.configureFrom(t),r._forceCaching=!1,r}return ra(t,e),t.prototype.toUrlAndQuery=function(){var e=new Map(this.query),t=this.toUrl().replace(/'!(@.*?)::(.*?)'/gi,function(t,n,r){return du.write("Rewriting aliased parameter from match "+t+" to label: "+n+" value: "+r,0),e.set(n,"'"+r+"'"),n});if(e.size>0){var n=t.indexOf("?")>-1?"&":"?";t+=""+n+Array.from(e).map(function(e){return e[0]+"="+e[1]}).join("&")}return t},t.prototype.select=function(){for(var e=[],t=0;t0&&this.query.set("$select",e.map(encodeURIComponent).join(",")),this},t.prototype.get=function(e){return Du(this,e)},t.prototype.expand=function(){for(var e=[],t=0;t0&&this.query.set("$expand",e.map(encodeURIComponent).join(",")),this},t.prototype.clone=function(t,n,r,o){void 0===r&&(r=!0),void 0===o&&(o=!1);var i=e.prototype.cloneTo.call(this,t(this,n),{includeBatch:r,includeQuery:o});if(!o){var s="@target";this.query.has(s)&&i.query.set(s,this.query.get(s))}return i},t.prototype.defaultAction=function(e){return Du(this,e)},t.prototype.getParent=function(e,t,n,r){void 0===t&&(t=this.parentUrl);var o=e(t,n).configureFrom(this),i="@target";return this.query.has(i)&&o.query.set(i,this.query.get(i)),void 0!==r&&(o=o.inBatch(r)),o},t}(pu),Bu=Ru(Fu),Lu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.filter=function(e){return this.query.set("$filter",encodeURIComponent(e)),this},t.prototype.orderBy=function(e,t){void 0===t&&(t=!0);var n="$orderby",r=this.query.has(n)?this.query.get(n).split(","):[];return r.push(encodeURIComponent(e)+" "+(t?"asc":"desc")),this.query.set(n,r.join(",")),this},t.prototype.skip=function(e){return this.query.set("$skip",e.toString()),this},t.prototype.top=function(e){return this.query.set("$top",e.toString()),this},t}(Fu),Ou=Ru(Lu),Nu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype._update=function(e,t){var n=this;return function(r){return Mu(Pu.configure(n,e+".Update"),{body:_a(ya(Iu(e),r)),headers:{"X-HTTP-Method":"MERGE"}}).then(function(e){return t(e,r)})}},t}(Fu),Au=Ru(Nu);function Uu(e){return function(){return t=Pu.configure(this,e+".delete"),n=Object.assign(Su({"X-HTTP-Method":"DELETE"}),void 0),Mu(t,n);var t,n}}function zu(e){return function(t){return void 0===t&&(t="*"),function(e,t,n){void 0===n&&(n="*");var r=Object.assign(Su({"X-HTTP-Method":"DELETE","IF-Match":n}),{});return Mu(e,r)}(Pu.configure(this,e+".delete"),0,t)}}var Wu=function(e){function t(t,n){void 0===n&&(n=Ma);var r=e.call(this)||this;return r.url=t,r.runtime=n,r}return ra(t,e),t.ParseResponse=function(e){for(var t,n,r=[],o=new RegExp("^HTTP/[0-9.]+ +([0-9]+) +(.*)","i"),i=e.split("\n"),s="batch",a=0;a0&&(o.push("--changeset_"+i+"--\n\n"),i=""),o.push("--batch_"+this.batchId+"\n")):(i.length<1&&(i=ha(),o.push("--batch_"+this.batchId+"\n"),o.push('Content-Type: multipart/mixed; boundary="changeset_'+i+'"\n\n')),o.push("--changeset_"+i+"\n")),o.push("Content-Type: application/http\n"),o.push("Content-Transfer-Encoding: binary\n\n"),u=new Headers,l=va(a.url)?a.url:da(r,a.url),du.write("["+this.batchId+"] ("+(new Date).getTime()+") Adding request "+a.method+" "+l+" to batch.",0),"GET"!==a.method?(c=a.method,p=a.options.headers,Sa(a,"options")&&Sa(a.options,"headers")&&void 0!==p["X-HTTP-Method"]&&(c=p["X-HTTP-Method"],delete p["X-HTTP-Method"]),o.push(c+" "+l+" HTTP/1.1\n"),u.set("Content-Type","application/json;odata=verbose;charset=utf-8")):o.push(a.method+" "+l+" HTTP/1.1\n"),Fa(u,null===(e=this.runtime.get("sp"))||void 0===e?void 0:e.headers),a.options&&Fa(u,a.options.headers),u.has("Accept")||u.append("Accept","application/json"),u.has("Content-Type")||u.append("Content-Type","application/json;odata=verbose;charset=utf-8"),u.has("X-ClientService-ClientTag")||u.append("X-ClientService-ClientTag","PnPCoreJS:@pnp-2.5.0:batch"),u.forEach(function(e,t){o.push(t+": "+e+"\n")}),o.push("\n"),a.options.body&&o.push(a.options.body+"\n\n");return i.length>0&&(o.push("--changeset_"+i+"--\n\n"),i=""),o.push("--batch_"+this.batchId+"--\n"),d={body:o.join(""),headers:{"Content-Type":"multipart/mixed; boundary=batch_"+this.batchId},method:"POST"},du.write("["+this.batchId+"] ("+(new Date).getTime()+") Sending batch request.",1),[4,n.fetch(da(r,"/_api/$batch"),d)];case 2:return(h=y.sent()).ok?[3,4]:[4,uu.init(h)];case 3:throw y.sent();case 4:return[4,h.clone().text()];case 5:if(f=y.sent(),(m=t.ParseResponse(f)).length!==this.requests.length)throw Error("Could not properly parse responses to match requests in batch.");return du.write("["+this.batchId+"] ("+(new Date).getTime()+") Resolving batched requests.",1),[2,m.reduce(function(e,t,n){return e.then(function(){return sa(g,void 0,void 0,function(){var e,r,o,i;return aa(this,function(s){switch(s.label){case 0:e=this.requests[n],du.write("["+e.id+"] ("+(new Date).getTime()+") Resolving request in batch "+this.batchId+".",1),s.label=1;case 1:return s.trys.push([1,3,,4]),o=(r=e).resolve,[4,e.parser.parse(t)];case 2:return o.apply(r,[s.sent()]),[3,4];case 3:return i=s.sent(),e.reject(i),[3,4];case 4:return[2]}})})})},Promise.resolve(void 0))]}})})},t}(Ua);function ju(e){return function(t){return function(t){function n(){for(var n=[],r=0;r1&&void 0!==n[1]?n[1]:e)||this}return ra(n,t),n}(t)}}var Hu,Ku="00000000-0000-0000-0000-000000000000";function qu(e,t){void 0===t&&(t=Ma),t.assign(e)}Hu=function(e){var t=e.get("sp"),n=Object.assign({},{fetchClientFactory:function(){return new La}},t);e.assign({sp:n})},ka.indexOf(Hu)<0&&(Hu(Ma),ka.push(Hu));var Vu,Gu,Xu,Qu=function(){function e(e,t,n){void 0===e&&(e={}),void 0===t&&(t=""),void 0===n&&(n=Ma),this._options=e,this._baseUrl=t,this._runtime=n}return e.prototype.configure=function(t,n){return void 0===n&&(n=""),new e(t,n)},e.prototype.setup=function(e){e.pageContext?qu({spfxContext:e},this._runtime):qu(e,this._runtime)},e.prototype.createIsolated=function(t){return sa(this,void 0,void 0,function(){var n,r,o,i,s;return aa(this,function(a){return t=Object.assign({baseUrl:"",cloneGlobal:!0,config:{},options:{}},t||{}),n=t.baseUrl,r=t.cloneGlobal,o=t.options,i=t.config,(s=r?new Da(Ma.export()):new Da).assign(i),[2,new e(o,n,s)]})})},e.prototype.childConfigHook=function(e){return e({options:this._options,baseUrl:this._baseUrl,runtime:this._runtime})},e}(),Ju=new Qu;function Zu(e){return ba(e)?"":/!(@.*?)::(.*?)/gi.test(e)?e.replace(/!(@.*?)::(.*)$/gi,function(e,t,n){return du.write("Rewriting aliased parameter from match "+e+" to label: "+t+" value: "+n,0),"!"+t+"::"+encodeURIComponent(n.replace(/'/gi,"''"))}):encodeURIComponent(e.replace(/'/gi,"''"))}function Yu(e){var t=[],n=["odata.type","odata.editLink","__metadata","odata.metadata","odata.id"];if(Sa(e,n[0])&&"SP.Web"===e[n[0]])Sa(e,n[4])?t.push(e[n[4]]):Sa(e,n[2])&&t.push(e.__metadata.uri);else if(Sa(e,n[3])&&Sa(e,n[1])){var r=va(e[n[1]])?e[n[1]].split("_api")[1]:e[n[1]];t.push(wu(e[n[3]]),"_api",r)}else Sa(e,n[1])?t.push("_api",e[n[1]]):Sa(e,n[2])&&t.push(e.__metadata.uri);return t.length<1?(du.write("No uri information found in ODataEntity parsing, chaining will fail for this object.",2),""):da.apply(void 0,la([],ua(t)))}!function(e){e[e.None=0]="None",e[e.User=1]="User",e[e.DistributionList=2]="DistributionList",e[e.SecurityGroup=4]="SecurityGroup",e[e.SharePointGroup=8]="SharePointGroup",e[e.All=15]="All"}(Vu||(Vu={})),function(e){e[e.None=0]="None",e[e.UserInfoList=1]="UserInfoList",e[e.Windows=2]="Windows",e[e.MembershipProvider=4]="MembershipProvider",e[e.RoleProvider=8]="RoleProvider",e[e.All=15]="All"}(Gu||(Gu={})),function(e){e[e.Invalid=-1]="Invalid",e[e.DefaultView=0]="DefaultView",e[e.NormalView=1]="NormalView",e[e.DialogView=2]="DialogView",e[e.View=3]="View",e[e.DisplayForm=4]="DisplayForm",e[e.DisplayFormDialog=5]="DisplayFormDialog",e[e.EditForm=6]="EditForm",e[e.EditFormDialog=7]="EditFormDialog",e[e.NewForm=8]="NewForm",e[e.NewFormDialog=9]="NewFormDialog",e[e.SolutionForm=10]="SolutionForm",e[e.PAGE_MAXITEMS=11]="PAGE_MAXITEMS"}(Xu||(Xu={}));var $u=function(e){function t(t){var n=e.call(this)||this;return n.factory=t,n.hydrate=function(e){return ya(n.factory(Yu(e),null),e)},n}return ra(t,e),t.prototype.parse=function(t){var n=this;return e.prototype.parse.call(this,t).then(function(e){return ya(n.factory(Yu(e),null),e)})},t}(ru);!function(e){function t(t){var n=e.call(this)||this;return n.factory=t,n.hydrate=function(e){return e.map(function(e){return ya(n.factory(Yu(e),null),e)})},n}ra(t,e),t.prototype.parse=function(t){var n=this;return e.prototype.parse.call(this,t).then(function(e){return e.map(function(e){return ya(n.factory(Yu(e),null),e)})})}}(ru);var el=function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),tl=function(){return(tl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&n.forEach(function(e,t){return o.query.set(t,e)}),Mu(o,_u(r))},t.prototype.renderListFormData=function(e,t,n){return sa(this,void 0,void 0,function(){var r;return aa(this,function(o){switch(o.label){case 0:return[4,Mu(this.clone(vl,"renderlistformdata(itemid="+e+", formid='"+t+"', mode='"+n+"')"))];case 1:return r=o.sent(),[2,JSON.parse(Sa(r,"RenderListFormData")?r.RenderListFormData:r)]}})})},t.prototype.reserveListItemId=function(){return sa(this,void 0,void 0,function(){var e;return aa(this,function(t){switch(t.label){case 0:return[4,Mu(this.clone(vl,"reservelistitemid"))];case 1:return[2,Sa(e=t.sent(),"ReserveListItemId")?e.ReserveListItemId:e]}})})},t.prototype.getListItemEntityTypeFullName=function(){return this.clone(vl,null,!1).select("ListItemEntityTypeFullName").usingCaching({expiration:pa(new Date,"day",5),key:"PnPjs-ListEntityName:"+this.toUrl(),storeName:"local"})().then(function(e){return e.ListItemEntityTypeFullName})},t.prototype.addValidateUpdateItemUsingPath=function(e,t,n,r,o){return void 0===n&&(n=!1),sa(this,void 0,void 0,function(){var i,s;return aa(this,function(a){switch(a.label){case 0:return i={FolderPath:hl(t)},ma(o)&&(o.leafName&&(i.LeafName=hl(o.leafName)),o.objectType&&(i.UnderlyingObjectType=o.objectType)),[4,Mu(this.clone(vl,"AddValidateUpdateItemUsingPath()"),_u({bNewDocumentUpdate:n,checkInComment:r,formValues:e,listItemCreateInfo:ya(Iu("SP.ListItemCreationInformationUsingPath"),i)}))];case 1:return[2,Sa(s=a.sent(),"AddValidateUpdateItemUsingPath")?s.AddValidateUpdateItemUsingPath:s]}})})},t.prototype.getParentInfos=function(){return sa(this,void 0,void 0,function(){var e;return aa(this,function(t){switch(t.label){case 0:return[4,this.select("Id","RootFolder/UniqueId","RootFolder/ServerRelativeUrl","RootFolder/ServerRelativePath","ParentWeb/Id","ParentWeb/Url","ParentWeb/ServerRelativeUrl","ParentWeb/ServerRelativePath").expand("RootFolder","ParentWeb")()];case 1:return[2,{List:{Id:(e=t.sent()).Id,RootFolderServerRelativePath:e.RootFolder.ServerRelativePath,RootFolderServerRelativeUrl:e.RootFolder.ServerRelativeUrl,RootFolderUniqueId:e.RootFolder.UniqueId},ParentWeb:{Id:e.ParentWeb.Id,ServerRelativePath:e.ParentWeb.ServerRelativePath,ServerRelativeUrl:e.ParentWeb.ServerRelativeUrl,Url:e.ParentWeb.Url}}]}})})},ia([Pu("l.update")],t.prototype,"update",null),ia([Pu("l.getChanges")],t.prototype,"getChanges",null),ia([Pu("l.CAMLQuery")],t.prototype,"getItemsByCAMLQuery",null),ia([Pu("l.ChangesSinceToken")],t.prototype,"getListItemChangesSinceToken",null),ia([Pu("l.recycle")],t.prototype,"recycle",null),ia([Pu("l.renderListData")],t.prototype,"renderListData",null),ia([Pu("l.AsStream")],t.prototype,"renderListDataAsStream",null),ia([Pu("l.renderListFormData")],t.prototype,"renderListFormData",null),ia([Pu("l.reserveListItemId")],t.prototype,"reserveListItemId",null),ia([Pu("l.getListItemEntityTypeFullName")],t.prototype,"getListItemEntityTypeFullName",null),ia([Pu("l.addValidateUpdateItemUsingPath")],t.prototype,"addValidateUpdateItemUsingPath",null),t}(Nu),vl=Ru(yl);!function(e){e[e.None=0]="None",e[e.ContextInfo=1]="ContextInfo",e[e.ListData=2]="ListData",e[e.ListSchema=4]="ListSchema",e[e.MenuView=8]="MenuView",e[e.ListContentType=16]="ListContentType",e[e.FileSystemItemId=32]="FileSystemItemId",e[e.ClientFormSchema=64]="ClientFormSchema",e[e.QuickLaunch=128]="QuickLaunch",e[e.Spotlight=256]="Spotlight",e[e.Visualization=512]="Visualization",e[e.ViewMetadata=1024]="ViewMetadata",e[e.DisableAutoHyperlink=2048]="DisableAutoHyperlink",e[e.EnableMediaTAUrls=4096]="EnableMediaTAUrls",e[e.ParentInfo=8192]="ParentInfo",e[e.PageContextInfo=16384]="PageContextInfo",e[e.ClientSideComponentManifest=32768]="ClientSideComponentManifest"}(fl||(fl={})),function(e){e[e.Display=1]="Display",e[e.Edit=2]="Edit",e[e.New=3]="New"}(ml||(ml={}));var bl=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.getById=function(e){return Pu.configure(Sl(this).concat("("+e+")"),"is.getById")},t.prototype.getItemByStringId=function(e){return Pu.configure(Sl(this.parentUrl,"getItemByStringId('"+e+"')"),"is.getItemByStringId")},t.prototype.skip=function(e,t){return void 0===t&&(t=!1),t?this.query.set("$skiptoken",encodeURIComponent("Paged=TRUE&PagedPrev=TRUE&p_ID="+e)):this.query.set("$skiptoken",encodeURIComponent("Paged=TRUE&p_ID="+e)),this},t.prototype.getPaged=function(){return this.usingParser(new Cl(this))()},t.prototype.getAll=function(e,t){void 0===e&&(e=2e3),void 0===t&&(t="application/json;odata=nometadata"),du.write("Calling items.getAll should be done sparingly. Ensure this is the correct choice. If you are unsure, it is not.",2);var n=bl(this,"").top(e).configure({headers:{Accept:t}});return this.query.forEach(function(e,t){/^\$select|filter|top|expand$/i.test(t)&&n.query.set(t,e)}),new Promise(function(e,t){var r=[],o=function(n){[].push.apply(r,n.results),n.hasNext?n.getNext().then(o).catch(t):e(r)};n.getPaged().then(o).catch(t)})},t.prototype.add=function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),sa(this,void 0,void 0,function(){var n,r,o,i,s=this;return aa(this,function(a){switch(a.label){case 0:return n=this.addBatchDependency(),[4,this.ensureListItemEntityTypeName(t)];case 1:return r=a.sent(),o=_u(ya(Iu(r),e)),i=Mu(this.clone(bl,""),o).then(function(e){return{data:e,item:s.getById(e.Id)}}),n(),[2,i]}})})},t.prototype.ensureListItemEntityTypeName=function(e){return sa(this,void 0,void 0,function(){return aa(this,function(t){return[2,e||this.getParent(vl).getListItemEntityTypeFullName()]})})},ia([Pu("is.getPaged")],t.prototype,"getPaged",null),ia([Pu("is.getAll")],t.prototype,"getAll",null),ia([Pu("is.add")],t.prototype,"add",null),ia([ju("items")],t)}(Lu)),_l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.delete=zu("i"),t}return ra(t,e),Object.defineProperty(t.prototype,"effectiveBasePermissions",{get:function(){return Pu.configure(Bu(this,"EffectiveBasePermissions"),"i.effectiveBasePermissions")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"effectiveBasePermissionsForUI",{get:function(){return Pu.configure(Bu(this,"EffectiveBasePermissionsForUI"),"i.effectiveBasePermissionsForUI")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fieldValuesAsHTML",{get:function(){return Pu.configure(Au(this,"FieldValuesAsHTML"),"i.fvHTML")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fieldValuesAsText",{get:function(){return Pu.configure(Au(this,"FieldValuesAsText"),"i.fvText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fieldValuesForEdit",{get:function(){return Pu.configure(Au(this,"FieldValuesForEdit"),"i.fvEdit")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"versions",{get:function(){return Pu.configure(Il(this),"i.versions")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"list",{get:function(){return this.getParent(vl,this.parentUrl.substr(0,this.parentUrl.lastIndexOf("/")))},enumerable:!1,configurable:!0}),t.prototype.update=function(e,t,n){return void 0===t&&(t="*"),void 0===n&&(n=null),sa(this,void 0,void 0,function(){var r,o,i,s;return aa(this,function(a){switch(a.label){case 0:return r=this.addBatchDependency(),[4,this.ensureListItemEntityTypeName(n)];case 1:return o=a.sent(),i=_u(ya(Iu(o),e),Su({"IF-Match":t,"X-HTTP-Method":"MERGE"})),r(),s=Pu.configure(this.clone(Sl).usingParser(new xl),"i.update"),[4,Mu(s,i)];case 2:return[2,{data:a.sent(),item:this}]}})})},t.prototype.recycle=function(){return Mu(this.clone(Sl,"recycle"))},t.prototype.deleteWithParams=function(e){return sa(this,void 0,void 0,function(){return aa(this,function(t){return[2,Mu(this.clone(Sl,"DeleteWithParameters"),_u({parameters:e}))]})})},t.prototype.getWopiFrameUrl=function(e){return void 0===e&&(e=0),sa(this,void 0,void 0,function(){var t,n;return aa(this,function(r){switch(r.label){case 0:return(t=this.clone(Sl,"getWOPIFrameUrl(@action)")).query.set("@action",e),[4,Mu(t)];case 1:return Sa(n=r.sent(),"GetWOPIFrameUrl")?[2,n.GetWOPIFrameUrl]:[2,n]}})})},t.prototype.validateUpdateListItem=function(e,t){return void 0===t&&(t=!1),Mu(this.clone(Sl,"validateupdatelistitem"),_u({formValues:e,bNewDocumentUpdate:t}))},t.prototype.getParentInfos=function(){return sa(this,void 0,void 0,function(){var e;return aa(this,function(t){switch(t.label){case 0:return[4,this.select("Id","ParentList/Id","ParentList/RootFolder/UniqueId","ParentList/RootFolder/ServerRelativeUrl","ParentList/RootFolder/ServerRelativePath","ParentList/ParentWeb/Id","ParentList/ParentWeb/Url","ParentList/ParentWeb/ServerRelativeUrl","ParentList/ParentWeb/ServerRelativePath").expand("ParentList","ParentList/RootFolder","ParentList/ParentWeb")()];case 1:return[2,{Item:{Id:(e=t.sent()).Id},ParentList:{Id:e.ParentList.Id,RootFolderServerRelativePath:e.ParentList.RootFolder.ServerRelativePath,RootFolderServerRelativeUrl:e.ParentList.RootFolder.ServerRelativeUrl,RootFolderUniqueId:e.ParentList.RootFolder.UniqueId},ParentWeb:{Id:e.ParentList.ParentWeb.Id,ServerRelativePath:e.ParentList.ParentWeb.ServerRelativePath,ServerRelativeUrl:e.ParentList.ParentWeb.ServerRelativeUrl,Url:e.ParentList.ParentWeb.Url}}]}})})},t.prototype.ensureListItemEntityTypeName=function(e){return sa(this,void 0,void 0,function(){return aa(this,function(t){return[2,e||this.list.getListItemEntityTypeFullName()]})})},ia([Pu("i.recycle")],t.prototype,"recycle",null),ia([Pu("i.del-params")],t.prototype,"deleteWithParams",null),ia([Pu("i.getWopiFrameUrl")],t.prototype,"getWopiFrameUrl",null),ia([Pu("i.validateUpdateListItem")],t.prototype,"validateUpdateListItem",null),t}(Nu),Sl=Ru(_l),Il=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.getById=function(e){return Pu.configure(wl(this).concat("("+e+")"),"iv.getById")},ia([ju("versions")],t)}(Lu)),wl=Ru(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.delete=zu("iv"),t}return ra(t,e),t}(Nu)),Pl=function(){function e(e,t,n){this.parent=e,this.nextUrl=t,this.results=n}return Object.defineProperty(e.prototype,"hasNext",{get:function(){return"string"==typeof this.nextUrl&&this.nextUrl.length>0},enumerable:!1,configurable:!0}),e.prototype.getNext=function(){return this.hasNext?Pu.configure(bl(this.nextUrl,null).configureFrom(this.parent),"ip.getNext").getPaged():new Promise(function(e){return e(null)})},e}(),Cl=function(e){function t(t){var n=e.call(this)||this;return n._parent=t,n}return ra(t,e),t.prototype.parse=function(e){var t=this;return new Promise(function(n,r){t.handleError(e,r)&&e.json().then(function(e){var r=Sa(e,"d")&&Sa(e.d,"__next")?e.d.__next:e["odata.nextLink"];n(new Pl(t._parent,r,t.parseODataJSON(e)))})})},t}(ru),xl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.parse=function(e){var t=this;return new Promise(function(n,r){t.handleError(e,r)&&n({"odata.etag":e.headers.get("etag")})})},t}(ru);Ha(yl,"items",bl);var Tl,El,kl,Dl=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.getByName=function(e){if(/%#/.test(e))throw Error("For file names containing % or # please use web.getFileByServerRelativePath");return Pu.configure(Rl(this).concat("('"+Zu(e)+"')"),"fis.getByName")},t.prototype.add=function(e,t,n){return void 0===n&&(n=!0),sa(this,void 0,void 0,function(){return aa(this,function(r){switch(r.label){case 0:return[4,Mu(Dl(this,"add(overwrite="+n+",url='"+Zu(e)+"')"),{body:t})];case 1:return[2,{data:r.sent(),file:this.getByName(e)}]}})})},t.prototype.addUsingPath=function(e,t,n){return void 0===n&&(n={Overwrite:!1}),sa(this,void 0,void 0,function(){var r,o;return aa(this,function(i){switch(i.label){case 0:return r=["AddUsingPath(decodedurl='"+Zu(e)+"'"],n&&(n.Overwrite&&r.push(",Overwrite=true"),n.AutoCheckoutOnInvalidData&&r.push(",AutoCheckoutOnInvalidData=true"),ba(n.XorHash)||r.push(",XorHash="+Zu(n.XorHash))),r.push(")"),[4,Mu(Dl(this,r.join("")),{body:t})];case 1:return[2,{data:o=i.sent(),file:Rl(Yu(o))}]}})})},t.prototype.addChunked=function(e,t,n,r,o){return void 0===r&&(r=!0),void 0===o&&(o=10485760),sa(this,void 0,void 0,function(){var i,s;return aa(this,function(a){switch(a.label){case 0:return[4,Mu(this.clone(Dl,"add(overwrite="+r+",url='"+Zu(e)+"')",!1))];case 1:return i=a.sent(),!ba(s=Yu(i))&&/%27/i.test(s)&&(s=s.replace(/%27/gi,"''")),[4,Rl(s).setContentChunked(t,n,o)];case 2:return[2,a.sent()]}})})},t.prototype.addTemplateFile=function(e,t){return sa(this,void 0,void 0,function(){var n;return aa(this,function(r){switch(r.label){case 0:return[4,Mu(this.clone(Dl,"addTemplateFile(urloffile='"+Zu(e)+"',templatefiletype="+t+")",!1))];case 1:return[2,{data:n=r.sent(),file:Rl(Yu(n))}]}})})},ia([Pu("fis.add")],t.prototype,"add",null),ia([Pu("fis.addUsingPath")],t.prototype,"addUsingPath",null),ia([Pu("fis.addChunked")],t.prototype,"addChunked",null),ia([Pu("fis.addTemplateFile")],t.prototype,"addTemplateFile",null),ia([ju("files")],t)}(Lu)),Ml=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.delete=zu("fi"),t}return ra(t,e),Object.defineProperty(t.prototype,"listItemAllFields",{get:function(){return Pu.configure(Au(this,"listItemAllFields"),"fi.listItemAllFields")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"versions",{get:function(){return Pu.configure(Fl(this),"fi.versions")},enumerable:!1,configurable:!0}),t.prototype.approve=function(e){return void 0===e&&(e=""),Mu(this.clone(Rl,"approve(comment='"+Zu(e)+"')"))},t.prototype.cancelUpload=function(e){return Mu(this.clone(Rl,"cancelUpload(uploadId=guid'"+e+"')",!1))},t.prototype.checkin=function(e,t){if(void 0===e&&(e=""),void 0===t&&(t=Tl.Major),e.length>1023)throw Error("The maximum comment length is 1023 characters.");return Mu(this.clone(Rl,"checkin(comment='"+Zu(e)+"',checkintype="+t+")"))},t.prototype.checkout=function(){return Mu(this.clone(Rl,"checkout"))},t.prototype.copyTo=function(e,t){return void 0===t&&(t=!0),Mu(this.clone(Rl,"copyTo(strnewurl='"+Zu(e)+"',boverwrite="+t+")"))},t.prototype.copyByPath=function(e,t,n){return void 0===n&&(n=!1),sa(this,void 0,void 0,function(){var r,o,i,s,a;return aa(this,function(u){switch(u.label){case 0:return[4,this.select("ServerRelativeUrl")()];case 1:return r=u.sent(),o=r.ServerRelativeUrl,i=r["odata.id"],s=wu(i),a=s.replace("://","___").split("/")[0].replace("___","://"),[4,Mu(Rl(s,"/_api/SP.MoveCopyUtil.CopyFileByPath(overwrite=@a1)?@a1="+t),_u({destPath:hl(va(e)?e:""+a+e),options:{KeepBoth:n,ResetAuthorAndCreatedOnCopy:!0,ShouldBypassSharedLocks:!0,__metadata:{type:"SP.MoveCopyOptions"}},srcPath:hl(va(o)?o:""+a+o)}))];case 2:return u.sent(),[2]}})})},t.prototype.deny=function(e){if(void 0===e&&(e=""),e.length>1023)throw Error("The maximum comment length is 1023 characters.");return Mu(this.clone(Rl,"deny(comment='"+Zu(e)+"')"))},t.prototype.moveTo=function(e,t){return void 0===t&&(t=El.Overwrite),Mu(this.clone(Rl,"moveTo(newurl='"+Zu(e)+"',flags="+t+")"))},t.prototype.moveByPath=function(e,t,n){return void 0===n&&(n=!1),sa(this,void 0,void 0,function(){var r,o,i,s,a;return aa(this,function(u){switch(u.label){case 0:return[4,this.select("ServerRelativeUrl")()];case 1:return r=u.sent(),o=r.ServerRelativeUrl,i=r["odata.id"],s=wu(i),a=s.replace("://","___").split("/")[0].replace("___","://"),[4,Mu(Rl(s,"/_api/SP.MoveCopyUtil.MoveFileByPath(overwrite=@a1)?@a1="+t),_u({destPath:hl(va(e)?e:""+a+e),options:{KeepBoth:n,ResetAuthorAndCreatedOnCopy:!1,ShouldBypassSharedLocks:!0,__metadata:{type:"SP.MoveCopyOptions"}},srcPath:hl(va(o)?o:""+a+o)}))];case 2:return u.sent(),[2]}})})},t.prototype.publish=function(e){if(void 0===e&&(e=""),e.length>1023)throw Error("The maximum comment length is 1023 characters.");return Mu(this.clone(Rl,"publish(comment='"+Zu(e)+"')"))},t.prototype.recycle=function(){return Mu(this.clone(Rl,"recycle"))},t.prototype.deleteWithParams=function(e){return sa(this,void 0,void 0,function(){return aa(this,function(t){return[2,Mu(this.clone(Rl,"DeleteWithParameters"),_u({parameters:e}))]})})},t.prototype.undoCheckout=function(){return Mu(this.clone(Rl,"undoCheckout"))},t.prototype.unpublish=function(e){if(void 0===e&&(e=""),e.length>1023)throw Error("The maximum comment length is 1023 characters.");return Mu(this.clone(Rl,"unpublish(comment='"+Zu(e)+"')"))},t.prototype.exists=function(){return sa(this,void 0,void 0,function(){return aa(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.clone(Rl).select("Exists")()];case 1:return[2,e.sent().Exists];case 2:return e.sent(),[2,!1];case 3:return[2]}})})},t.prototype.getText=function(){return this.clone(Rl,"$value",!1).usingParser(new ou)(Su({binaryStringResponseBody:"true"}))},t.prototype.getBlob=function(){return this.clone(Rl,"$value",!1).usingParser(new iu)(Su({binaryStringResponseBody:"true"}))},t.prototype.getBuffer=function(){return this.clone(Rl,"$value",!1).usingParser(new au)(Su({binaryStringResponseBody:"true"}))},t.prototype.getJSON=function(){return this.clone(Rl,"$value",!1).usingParser(new su)(Su({binaryStringResponseBody:"true"}))},t.prototype.setContent=function(e){return sa(this,void 0,void 0,function(){return aa(this,function(t){switch(t.label){case 0:return[4,Mu(this.clone(Rl,"$value",!1),{body:e,headers:{"X-HTTP-Method":"PUT"}})];case 1:return t.sent(),[2,Rl(this)]}})})},t.prototype.getItem=function(){for(var e=[],t=0;t0))throw Error("Did not find the app with id "+e+" in the appcatalog.");n=s[0].Id,u.label=4;case 4:return(a=Pu.configure(Ll(r,"_api/web/tenantappcatalog/SyncSolutionToTeams(id="+n+")"),"ac.syncSolutionToTeams")).configureFrom(this),[4,Mu(a,{})];case 5:return[2,u.sent()]}})})},t.prototype.add=function(e,t,n){return void 0===n&&(n=!0),sa(this,void 0,void 0,function(){var r,o;return aa(this,function(i){switch(i.label){case 0:return(r=Pu.configure(Ll(wu(this.toUrl()),"_api/web/tenantappcatalog/add(overwrite="+n+",url='"+e+"')"),"ac.add")).configureFrom(this),[4,Mu(r,{body:t,headers:{binaryStringRequestBody:"true"}})];case 1:return[2,{data:o=i.sent(),file:Rl(Yu(o))}]}})})},t}(Lu)),Ol=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.deploy=function(e){return void 0===e&&(e=!1),this.do("Deploy("+e+")")},t.prototype.retract=function(){return this.do("Retract")},t.prototype.install=function(){return this.do("Install")},t.prototype.uninstall=function(){return this.do("Uninstall")},t.prototype.upgrade=function(){return this.do("Upgrade")},t.prototype.remove=function(){return this.do("Remove")},t.prototype.do=function(e){return Mu(this.clone(Ol,e))},ia([Pu("app.deploy")],t.prototype,"deploy",null),ia([Pu("app.retract")],t.prototype,"retract",null),ia([Pu("app.install")],t.prototype,"install",null),ia([Pu("app.uninstall")],t.prototype,"uninstall",null),ia([Pu("app.upgrade")],t.prototype,"upgrade",null),ia([Pu("app.remove")],t.prototype,"remove",null),t}(Nu));pl.prototype.getAppCatalog=function(e){return Ll(e||this).configureFrom(this)},Qu.prototype.getTenantAppCatalogWeb=function(){return sa(this,void 0,void 0,function(){var e=this;return aa(this,function(t){return[2,this.childConfigHook(function(t){var n=t.options,r=t.runtime;return sa(e,void 0,void 0,function(){var e;return aa(this,function(t){switch(t.label){case 0:return[4,Bu("/","_api/SP_TenantSettings_Current").configure(n).setRuntime(r)()];case 1:return e=t.sent(),[2,dl(e.CorporateCatalogUrl).configure(n).setRuntime(r)]}})})})]})})};var Nl=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.getByName=function(e){var t=Pu.configure(Al(this),"ats.getByName");return t.concat("('"+e+"')"),t},t.prototype.add=function(e,t){return sa(this,void 0,void 0,function(){return aa(this,function(n){switch(n.label){case 0:return[4,Mu(this.clone(Nl,"add(FileName='"+e+"')",!1),{body:t})];case 1:return[2,{data:n.sent(),file:this.getByName(e)}]}})})},t.prototype.addMultiple=function(e){return sa(this,void 0,void 0,function(){var t;return aa(this,function(n){switch(n.label){case 0:t=0,n.label=1;case 1:return t255)throw Error("Modern Page description is limited to 255 chars.");this.json.Description=e,Sa(this._pageSettings,"htmlAttributes")||(this._pageSettings.htmlAttributes=[]),this._pageSettings.htmlAttributes.indexOf("modifiedDescription")<0&&this._pageSettings.htmlAttributes.push("modifiedDescription"),this._pageSettings.pageSettingsSlice.isDefaultDescription=!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"layoutType",{get:function(){return this._layoutPart.properties.layoutType},set:function(e){this._layoutPart.properties.layoutType=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"headerTextAlignment",{get:function(){return this._layoutPart.properties.textAlignment},set:function(e){this._layoutPart.properties.textAlignment=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTopicHeader",{get:function(){return this._layoutPart.properties.showTopicHeader},set:function(e){this._layoutPart.properties.showTopicHeader=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPublishDate",{get:function(){return this._layoutPart.properties.showPublishDate},set:function(e){this._layoutPart.properties.showPublishDate=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasVerticalSection",{get:function(){return this.sections.findIndex(function(e){return 2===e.layoutIndex})>-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"authorByLine",{get:function(){return ga(this._layoutPart.properties.authorByline)&&this._layoutPart.properties.authorByline.length>0?this._layoutPart.properties.authorByline[0]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"verticalSection",{get:function(){return this.hasVerticalSection?this.addVerticalSection():null},enumerable:!1,configurable:!0}),t.prototype.addSection=function(){var e=new Ql(this,Ul(this.sections),1);return this.sections.push(e),e},t.prototype.addVerticalSection=function(){var e=this.sections.findIndex(function(e){return 2===e.layoutIndex});if(e>-1)return this.sections[e];var t=new Ql(this,Ul(this.sections),2);return this.sections.push(t),t},t.prototype.fromJSON=function(e){this.json=e;var t=JSON.parse(e.CanvasContent1),n=JSON.parse(e.LayoutWebpartsContent);return n&&n.length>0&&(this._layoutPart=n[0]),this.setControls(t),this},t.prototype.load=function(){return sa(this,void 0,void 0,function(){var e,t;return aa(this,function(n){switch(n.label){case 0:return[4,this.getItem("Id","CommentsDisabled")];case 1:return e=n.sent(),[4,Bu(this,"_api/sitepages/pages("+e.Id+")")()];case 2:return t=n.sent(),this.commentsDisabled=e.CommentsDisabled,[2,this.fromJSON(t)]}})})},t.prototype.save=function(e){return void 0===e&&(e=!0),sa(this,void 0,void 0,function(){var t,n,r,o,i,s,a,u,l,c;return aa(this,function(p){switch(p.label){case 0:if(null===this.json.Id)throw Error("The id for this page is null. If you want to create a new page, please use ClientSidePage.Create");return this._bannerImageDirty?(t=this.bannerImageUrl,o=dl(wu(this.toUrl())).configureFrom(this),i=o.createBatch(),o.getFileByServerRelativePath(t.replace(/%20/gi," ")).select("ListId","WebId","UniqueId","Name","SiteId").inBatch(i)().then(function(e){return n=e}),o.select("Url").inBatch(i)().then(function(e){return r=e.Url}),[4,i.execute()]):[3,2];case 1:p.sent(),(s=Bu(r,"_layouts/15/getpreview.ashx")).query.set("guidSite",""+n.SiteId),s.query.set("guidWeb",""+n.WebId),s.query.set("guidFile",""+n.UniqueId),this.bannerImageUrl=s.toUrlAndQuery(),ma(this._layoutPart.serverProcessedContent)||(this._layoutPart.serverProcessedContent={}),this._layoutPart.serverProcessedContent.imageSources={imageSource:t},ma(this._layoutPart.serverProcessedContent.customMetadata)||(this._layoutPart.serverProcessedContent.customMetadata={}),this._layoutPart.serverProcessedContent.customMetadata.imageSource={listId:n.ListId,siteId:n.SiteId,uniqueId:n.UniqueId,webId:n.WebId},this._layoutPart.properties.webId=n.WebId,this._layoutPart.properties.siteId=n.SiteId,this._layoutPart.properties.listId=n.ListId,this._layoutPart.properties.uniqueId=n.UniqueId,p.label=2;case 2:return this.json.IsPageCheckedOutToCurrentUser?[3,4]:[4,Mu(ql(this,"_api/sitepages/pages("+this.json.Id+")/checkoutpage"))];case 3:p.sent(),p.label=4;case 4:return a=Object.assign(Iu("SP.Publishing.SitePage"),{AuthorByline:this.json.AuthorByline||[],CanvasContent1:this.getCanvasContent1(),Description:this.description,LayoutWebpartsContent:this.getLayoutWebpartsContent(),Title:this.title,TopicHeader:this.topicHeader}),(this._bannerImageDirty||this._bannerImageThumbnailUrlDirty)&&(u=this._bannerImageThumbnailUrlDirty?this.thumbnailUrl:this.bannerImageUrl,a=ya(a,{BannerImageUrl:u})),l=ql(this,"_api/sitepages/pages("+this.json.Id+")/savepage"),[4,Mu(l,Su({"if-match":"*"},_u(a)))];case 5:return p.sent(),c=!0,e?[4,Mu(ql(this,"_api/sitepages/pages("+this.json.Id+")/publish"))]:[3,7];case 6:(c=p.sent())&&(this.json.IsPageCheckedOutToCurrentUser=!1),p.label=7;case 7:return this._bannerImageDirty=!1,this._bannerImageThumbnailUrlDirty=!1,[2,c]}})})},t.prototype.discardPageCheckout=function(){return sa(this,void 0,void 0,function(){var e;return aa(this,function(t){switch(t.label){case 0:if(null===this.json.Id)throw Error("The id for this page is null. If you want to create a new page, please use ClientSidePage.Create");return[4,Mu(ql(this,"_api/sitepages/pages("+this.json.Id+")/discardPage"),_u(Iu("SP.Publishing.SitePage")))];case 1:return e=t.sent(),this.fromJSON(e),[2]}})})},t.prototype.promoteToNews=function(){return sa(this,void 0,void 0,function(){return aa(this,function(e){return[2,this.promoteNewsImpl("promoteToNews")]})})},t.prototype.findControlById=function(e){return this.findControl(function(t){return t.id===e})},t.prototype.findControl=function(e){for(var t=0;t3?{}:{zoneEmphasis:e}},t.prototype.promoteNewsImpl=function(e){return sa(this,void 0,void 0,function(){return aa(this,function(t){switch(t.label){case 0:if(null===this.json.Id)throw Error("The id for this page is null.");return ba(this.json.VersionInfo.LastVersionCreatedBy)&&new Date(this.json.VersionInfo.LastVersionCreated).getFullYear()<2e3?[4,this.save(!0)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[4,Mu(ql(this,"_api/sitepages/pages("+this.json.Id+")/"+e),_u(Iu("SP.Publishing.SitePage")))];case 3:return[2,t.sent()]}})})},t.prototype.mergePartToTree=function(e,t){var n,r,o,i=null,s=12,a=0,u=0,l=1;t&&(Sa(t,"zoneIndex")&&(u=t.zoneIndex),Sa(t,"sectionIndex")&&(a=t.sectionIndex),Sa(t,"sectionFactor")&&(s=t.sectionFactor),Sa(t,"layoutIndex")&&(l=t.layoutIndex));var c=null!==(o=null===(r=null===(n=e.data)||void 0===n?void 0:n.emphasis)||void 0===r?void 0:r.zoneEmphasis)&&void 0!==o?o:0,p=this.getOrCreateSection(u,l,c),d=p.columns.filter(function(e){return e.order===a});i=d.length<1?p.addColumn(s,l):d[0],e.column=i,i.addControl(e)},t.prototype.mergeColumnToTree=function(e){var t,n,r=Sa(e.data,"position")&&Sa(e.data.position,"zoneIndex")?e.data.position.zoneIndex:0,o=Sa(e.data,"position")&&Sa(e.data.position,"layoutIndex")?e.data.position.layoutIndex:1,i=this.getOrCreateSection(r,o,(null===(n=null===(t=e.data)||void 0===t?void 0:t.emphasis)||void 0===n?void 0:n.zoneEmphasis)||0);e.section=i,i.columns.push(e)},t.prototype.getOrCreateSection=function(e,t,n){var r=null,o=this.sections.filter(function(n){return n.order===e&&n.layoutIndex===t});return o.length<1?((r=2===t?this.addVerticalSection():this.addSection()).order=e,r.emphasis=n):r=o[0],r},t.prototype.specialSaveHandling=function(e){var t,n,r;if(3===e.data.controlType&&"c70391ea-0b10-4ee9-b2b4-006d3fcad0cd"===e.data.webPartId){var o=(null===(r=null===(n=null===(t=e.data)||void 0===t?void 0:t.webPartData)||void 0===n?void 0:n.serverProcessedContent)||void 0===r?void 0:r.searchablePlainTexts)||null;if(ma(o))for(var i=Object.getOwnPropertyNames(o),s=0;s/gi))?[]:s.map(function(e){return e.trim()})).reduce(function(e,t){var n=//gi.exec(t);if(n.length<1)return du.write("Could not parse default column value from '"+t+"'",2),null;var r=t.match(//gi);return(null===r?[]:r.map(function(e){return e.trim()})).map(function(t){var r=/(.*?)<\/DefaultValue>/gi.exec(t);r.length<1?du.write("Could not parse default column value from '"+t+"'",2):e.push({name:r[1],path:decodeURIComponent(n[1]),value:r[2]})}),e},[]).filter(function(e){return null!==e})]}})})},yl.prototype.setDefaultColumnValues=function(e){return sa(this,void 0,void 0,function(){var t,n,r,o,i,s,a,u,l,c,p,d,h,f,m;return aa(this,function(g){switch(g.label){case 0:return[4,Ou(this,"fields").select("InternalName","TypeAsString").filter("Hidden ne true")()];case 1:for(t=g.sent(),n={},r=0;r'+o+""}),l=a[0].path.replace(/ /gi,"%20"),c=''+u.join("")+"",i.push(c);return p=""+i.join("")+"",[4,this.rootFolder.select("ServerRelativePath")()];case 2:return d=g.sent(),[4,this.select("ParentWeb/Url").expand("ParentWeb")()];case 3:return h=g.sent(),f=da("/",d.ServerRelativePath.DecodedUrl,"Forms"),m=da(h.ParentWeb.Url,"_api/web","getFolderByServerRelativePath(decodedUrl='"+Zu(f)+"')","files"),[4,Mu(nc(m,"add(overwrite=true,url='client_LocationBasedDefaults.html')"),{body:p})];case 4:return g.sent(),[4,this.eventReceivers.filter("ReceiverName eq 'LocationBasedMetadataDefaultsReceiver ItemAdded'").select("ReceiverId")()];case 5:return g.sent().length<1?[4,Mu(vl(this.eventReceivers,"add"),_u({eventReceiverCreationInformation:{EventType:10001,ReceiverAssembly:"Microsoft.Office.DocumentManagement, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c",ReceiverClass:"Microsoft.Office.DocumentManagement.LocationBasedMetadataDefaultsReceiver",ReceiverName:"LocationBasedMetadataDefaultsReceiver ItemAdded",SequenceNumber:1e3,Synchronization:1}}))]:[3,7];case 6:g.sent(),g.label=7;case 7:return[2]}})})},Ha(pl,"lists",gl),Ha(pl,"siteUserInfoList",vl,"siteuserinfolist"),Ha(pl,"defaultDocumentLibrary",vl,"DefaultDocumentLibrary"),Ha(pl,"customListTemplates",Ou,"getcustomlisttemplates"),pl.prototype.getList=function(e){return vl(this,"getList('"+Zu(e)+"')")},pl.prototype.getCatalog=function(e){return sa(this,void 0,void 0,function(){var t;return aa(this,function(n){switch(n.label){case 0:return[4,this.clone(dl,"getcatalog("+e+")").select("Id").get()];case 1:return t=n.sent(),[2,vl(Yu(t))]}})})},tc.prototype.getDefaultColumnValues=function(){return sa(this,void 0,void 0,function(){var e,t;return aa(this,function(n){switch(n.label){case 0:return[4,nc(this,"Properties").select("vti_x005f_listname")()];case 1:return e=n.sent(),[4,this.select("ServerRelativePath")()];case 2:return t=n.sent().ServerRelativePath,[4,dl(wu(Yu(e))).configureFrom(this).lists.getById(e.vti_x005f_listname).getDefaultColumnValues()];case 3:return[2,n.sent().filter(function(e){return e.path.toLowerCase()===t.DecodedUrl.toLowerCase()})]}})})},tc.prototype.setDefaultColumnValues=function(e,t){return void 0===t&&(t=!0),sa(this,void 0,void 0,function(){var n,r,o,i,s,a;return aa(this,function(u){switch(u.label){case 0:return[4,nc(this,"Properties").select("vti_x005f_listname")()];case 1:return n=u.sent(),r=dl(wu(Yu(n))).configureFrom(this),o=r.lists.getById(n.vti_x005f_listname),[4,this.select("ServerRelativePath")()];case 2:return i=u.sent().ServerRelativePath.DecodedUrl,[4,o.getDefaultColumnValues()];case 3:return s=u.sent(),a=t?s:s.filter(function(e){return e.path!==i}),e.forEach(function(e){var t=a.find(function(t){return t.name===e.name&&t.path===i});t?t.value=e.value:a.push({name:e.name,path:i,value:e.value})}),[4,o.setDefaultColumnValues(a)];case 4:return u.sent(),[2]}})})},tc.prototype.clearDefaultColumnValues=function(){return sa(this,void 0,void 0,function(){return aa(this,function(e){switch(e.label){case 0:return[4,this.setDefaultColumnValues([],!1)];case 1:return e.sent(),[2]}})})};var rc=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.addAvailableContentType=function(e){return sa(this,void 0,void 0,function(){var t;return aa(this,function(n){switch(n.label){case 0:return[4,Mu(this.clone(rc,"addAvailableContentType"),_u({contentTypeId:e}))];case 1:return t=n.sent(),[2,{contentType:this.getById(t.id),data:t}]}})})},t.prototype.getById=function(e){return Pu.configure(ic(this).concat("('"+e+"')"),"cts.getById")},t.prototype.add=function(e,t,n,r,o){return void 0===n&&(n=""),void 0===r&&(r="Custom Content Types"),void 0===o&&(o={}),sa(this,void 0,void 0,function(){var i,s;return aa(this,function(a){switch(a.label){case 0:return i=_u(Object.assign(Iu("SP.ContentType"),{Description:n,Group:r,Id:{StringValue:e},Name:t},o)),[4,Mu(this,i)];case 1:return s=a.sent(),[2,{contentType:this.getById(s.id),data:s}]}})})},ia([Pu("cts.addAvailableContentType")],t.prototype,"addAvailableContentType",null),ia([Pu("cts.add")],t.prototype,"add",null),ia([ju("contenttypes")],t)}(Lu)),oc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.delete=Uu("ct"),t}return ra(t,e),Object.defineProperty(t.prototype,"fieldLinks",{get:function(){return Pu.configure(sc(this),"ct.fieldLinks")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fields",{get:function(){return Pu.configure(Ou(this,"fields"),"ct.fields")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return Pu.configure(ic(this,"parent"),"ct.parent")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"workflowAssociations",{get:function(){return Pu.configure(Ou(this,"workflowAssociations"),"ct.workflowAssociations")},enumerable:!1,configurable:!0}),t}(Nu),ic=Ru(oc),sc=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.getById=function(e){return Pu.configure(ac(this).concat("(guid'"+e+"')"),"fls.getById")},ia([ju("fieldlinks")],t)}(Lu)),ac=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t}(Nu));Ha(pl,"contentTypes",rc),Ha(_l,"contentType",ic,"ContentType"),Ha(yl,"contentTypes",rc);var uc=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.add=function(e,t){return void 0===t&&(t=!1),sa(this,void 0,void 0,function(){return aa(this,function(n){switch(n.label){case 0:return[4,Mu(this.clone(uc,"add"),_u({featdefScope:0,featureId:e,force:t}))];case 1:return[2,{data:n.sent(),feature:this.getById(e)}]}})})},t.prototype.getById=function(e){var t=lc(this);return t.concat("('"+e+"')"),Pu.configure(t,"fes.getById")},t.prototype.remove=function(e,t){return void 0===t&&(t=!1),Mu(this.clone(uc,"remove"),_u({featureId:e,force:t}))},ia([Pu("fes.add")],t.prototype,"add",null),ia([Pu("fes.remove")],t.prototype,"remove",null),ia([ju("features")],t)}(Lu)),lc=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.deactivate=function(e){return void 0===e&&(e=!1),sa(this,void 0,void 0,function(){var t,n,r;return aa(this,function(o){switch(o.label){case 0:return t=this.addBatchDependency(),[4,lc(this).select("DefinitionId")()];case 1:return n=o.sent(),r=this.getParent(uc,this.parentUrl,"",this.batch).remove(n.DefinitionId,e),t(),[2,r]}})})},ia([Pu("fe.deactivate")],t.prototype,"deactivate",null),t}(Nu));Ha(ul,"features",uc),Ha(pl,"features",uc);var cc,pc,dc,hc,fc,mc,gc,yc,vc=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.createFieldAsXml=function(e){return sa(this,void 0,void 0,function(){var t,n;return aa(this,function(r){switch(r.label){case 0:return"string"==typeof e&&(e={SchemaXml:e}),t=_u({parameters:ya(Iu("SP.XmlSchemaFieldCreationInformation"),e)}),[4,Mu(this.clone(vc,"createfieldasxml"),t)];case 1:return[2,{data:n=r.sent(),field:this.getById(n.Id)}]}})})},t.prototype.getById=function(e){return Pu.configure(_c(this).concat("('"+e+"')"),"fs.getById")},t.prototype.getByTitle=function(e){return Pu.configure(_c(this,"getByTitle('"+e+"')"),"fs.getByTitle")},t.prototype.getByInternalNameOrTitle=function(e){return Pu.configure(_c(this,"getByInternalNameOrTitle('"+e+"')"),"fs.getByInternalNameOrTitle")},t.prototype.add=function(e,t,n){return sa(this,void 0,void 0,function(){var r,o;return aa(this,function(i){switch(i.label){case 0:return r=_u(Object.assign(Iu(t),{Title:e},n)),Pu.isTagged(this)||Pu.configure(this,"fs.add"),[4,Mu(this.clone(vc,null),r)];case 1:return[2,{data:o=i.sent(),field:this.getById(o.Id)}]}})})},t.prototype.addText=function(e,t,n){void 0===t&&(t=255);var r={FieldTypeKind:2,MaxLength:t};return this.add(e,"SP.FieldText",ya(r,n))},t.prototype.addCalculated=function(e,t,n,r,o){void 0===r&&(r=cc.Text);var i={DateFormat:n,FieldTypeKind:17,Formula:t,OutputType:r};return this.add(e,"SP.FieldCalculated",ya(i,o))},t.prototype.addDateTime=function(e,t,n,r,o){void 0===t&&(t=pc.DateOnly),void 0===n&&(n=fc.Gregorian),void 0===r&&(r=dc.Unspecified);var i={DateTimeCalendarType:n,DisplayFormat:t,FieldTypeKind:4,FriendlyDisplayFormat:r};return this.add(e,"SP.FieldDateTime",ya(i,o))},t.prototype.addNumber=function(e,t,n,r){var o={FieldTypeKind:9};return void 0!==t&&(o=ya({MinimumValue:t},o)),void 0!==n&&(o=ya({MaximumValue:n},o)),this.add(e,"SP.FieldNumber",ya(o,r))},t.prototype.addCurrency=function(e,t,n,r,o){void 0===r&&(r=1033);var i={CurrencyLocaleId:r,FieldTypeKind:10};return void 0!==t&&(i=ya({MinimumValue:t},i)),void 0!==n&&(i=ya({MaximumValue:n},i)),this.add(e,"SP.FieldCurrency",ya(i,o))},t.prototype.addMultilineText=function(e,t,n,r,o,i,s){void 0===t&&(t=6),void 0===n&&(n=!0),void 0===r&&(r=!1),void 0===o&&(o=!1),void 0===i&&(i=!0);var a={AllowHyperlink:i,AppendOnly:o,FieldTypeKind:3,NumberOfLines:t,RestrictedMode:r,RichText:n};return this.add(e,"SP.FieldMultiLineText",ya(a,s))},t.prototype.addUrl=function(e,t,n){void 0===t&&(t=mc.Hyperlink);var r={DisplayFormat:t,FieldTypeKind:11};return this.add(e,"SP.FieldUrl",ya(r,n))},t.prototype.addUser=function(e,t,n){var r={FieldTypeKind:20,SelectionMode:t};return this.add(e,"SP.FieldUser",ya(r,n))},t.prototype.addLookup=function(e,t,n,r){return sa(this,void 0,void 0,function(){var o,i,s;return aa(this,function(a){switch(a.label){case 0:return o=ya({FieldTypeKind:7,LookupFieldName:n,LookupListId:t,Title:e},r),i=_u({parameters:ya(Iu("SP.FieldCreationInformation"),o)}),[4,Mu(this.clone(vc,"addfield"),i)];case 1:return[2,{data:s=a.sent(),field:this.getById(s.Id)}]}})})},t.prototype.addChoice=function(e,t,n,r,o){void 0===n&&(n=yc.Dropdown);var i={Choices:{results:t},EditFormat:n,FieldTypeKind:6,FillInChoice:r};return this.add(e,"SP.FieldChoice",ya(i,o))},t.prototype.addMultiChoice=function(e,t,n,r){var o={Choices:{results:t},FieldTypeKind:15,FillInChoice:n};return this.add(e,"SP.FieldMultiChoice",ya(o,r))},t.prototype.addBoolean=function(e,t){return this.add(e,"SP.Field",ya({FieldTypeKind:8},t))},t.prototype.addDependentLookupField=function(e,t,n){return sa(this,void 0,void 0,function(){var r,o;return aa(this,function(i){switch(i.label){case 0:return r="adddependentlookupfield(displayName='"+e+"', primarylookupfieldid='"+t+"', showfield='"+n+"')",[4,Mu(this.clone(vc,r))];case 1:return[2,{data:o=i.sent(),field:this.getById(o.Id)}]}})})},t.prototype.addLocation=function(e,t){return this.add(e,"SP.FieldLocation",ya({FieldTypeKind:33},t))},ia([Pu("fs.createFieldAsXml")],t.prototype,"createFieldAsXml",null),ia([Pu("fs.addText")],t.prototype,"addText",null),ia([Pu("fs.addCalculated")],t.prototype,"addCalculated",null),ia([Pu("fs.addDateTime")],t.prototype,"addDateTime",null),ia([Pu("fs.addNumber")],t.prototype,"addNumber",null),ia([Pu("fs.addCurrency")],t.prototype,"addCurrency",null),ia([Pu("fs.addMultilineText")],t.prototype,"addMultilineText",null),ia([Pu("fs.addUrl")],t.prototype,"addUrl",null),ia([Pu("fs.addUser")],t.prototype,"addUser",null),ia([Pu("fs.addLookup")],t.prototype,"addLookup",null),ia([Pu("fs.addChoice")],t.prototype,"addChoice",null),ia([Pu("fs.addMultiChoice")],t.prototype,"addMultiChoice",null),ia([Pu("fs.addBoolean")],t.prototype,"addBoolean",null),ia([Pu("fs.addDependentLookupField")],t.prototype,"addDependentLookupField",null),ia([Pu("fs.addLocation")],t.prototype,"addLocation",null),ia([ju("fields")],t)}(Lu)),bc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.delete=Uu("f"),t}return ra(t,e),t.prototype.update=function(e,t){return sa(this,void 0,void 0,function(){var n,r;return aa(this,function(o){switch(o.label){case 0:return null!=t?[3,2]:[4,_c(this).select("FieldTypeKind").configure({headers:{Accept:"application/json"}})()];case 1:n=o.sent(),t=n["odata.type"],o.label=2;case 2:return r=_u(ya(Iu(t),e),Su({"X-HTTP-Method":"MERGE"})),[4,Mu(this,r)];case 3:return[2,{data:o.sent(),field:this}]}})})},t.prototype.setShowInDisplayForm=function(e){return Mu(this.clone(_c,"setshowindisplayform("+e+")"))},t.prototype.setShowInEditForm=function(e){return Mu(this.clone(_c,"setshowineditform("+e+")"))},t.prototype.setShowInNewForm=function(e){return Mu(this.clone(_c,"setshowinnewform("+e+")"))},ia([Pu("f.update")],t.prototype,"update",null),ia([Pu("f.setShowInDisplayForm")],t.prototype,"setShowInDisplayForm",null),ia([Pu("f.setShowInEditForm")],t.prototype,"setShowInEditForm",null),ia([Pu("f.setShowInNewForm")],t.prototype,"setShowInNewForm",null),t}(Nu),_c=Ru(bc);!function(e){e[e.Invalid=0]="Invalid",e[e.Integer=1]="Integer",e[e.Text=2]="Text",e[e.Note=3]="Note",e[e.DateTime=4]="DateTime",e[e.Counter=5]="Counter",e[e.Choice=6]="Choice",e[e.Lookup=7]="Lookup",e[e.Boolean=8]="Boolean",e[e.Number=9]="Number",e[e.Currency=10]="Currency",e[e.URL=11]="URL",e[e.Computed=12]="Computed",e[e.Threading=13]="Threading",e[e.Guid=14]="Guid",e[e.MultiChoice=15]="MultiChoice",e[e.GridChoice=16]="GridChoice",e[e.Calculated=17]="Calculated",e[e.File=18]="File",e[e.Attachments=19]="Attachments",e[e.User=20]="User",e[e.Recurrence=21]="Recurrence",e[e.CrossProjectLink=22]="CrossProjectLink",e[e.ModStat=23]="ModStat",e[e.Error=24]="Error",e[e.ContentTypeId=25]="ContentTypeId",e[e.PageSeparator=26]="PageSeparator",e[e.ThreadIndex=27]="ThreadIndex",e[e.WorkflowStatus=28]="WorkflowStatus",e[e.AllDayEvent=29]="AllDayEvent",e[e.WorkflowEventType=30]="WorkflowEventType"}(cc||(cc={})),function(e){e[e.DateOnly=0]="DateOnly",e[e.DateTime=1]="DateTime"}(pc||(pc={})),function(e){e[e.Unspecified=0]="Unspecified",e[e.Disabled=1]="Disabled",e[e.Relative=2]="Relative"}(dc||(dc={})),function(e){e[e.DefaultValue=0]="DefaultValue",e[e.AddToDefaultContentType=1]="AddToDefaultContentType",e[e.AddToNoContentType=2]="AddToNoContentType",e[e.AddToAllContentTypes=4]="AddToAllContentTypes",e[e.AddFieldInternalNameHint=8]="AddFieldInternalNameHint",e[e.AddFieldToDefaultView=16]="AddFieldToDefaultView",e[e.AddFieldCheckDisplayName=32]="AddFieldCheckDisplayName"}(hc||(hc={})),function(e){e[e.Gregorian=1]="Gregorian",e[e.Japan=3]="Japan",e[e.Taiwan=4]="Taiwan",e[e.Korea=5]="Korea",e[e.Hijri=6]="Hijri",e[e.Thai=7]="Thai",e[e.Hebrew=8]="Hebrew",e[e.GregorianMEFrench=9]="GregorianMEFrench",e[e.GregorianArabic=10]="GregorianArabic",e[e.GregorianXLITEnglish=11]="GregorianXLITEnglish",e[e.GregorianXLITFrench=12]="GregorianXLITFrench",e[e.KoreaJapanLunar=14]="KoreaJapanLunar",e[e.ChineseLunar=15]="ChineseLunar",e[e.SakaEra=16]="SakaEra",e[e.UmAlQura=23]="UmAlQura"}(fc||(fc={})),function(e){e[e.Hyperlink=0]="Hyperlink",e[e.Image=1]="Image"}(mc||(mc={})),function(e){e[e.PeopleAndGroups=1]="PeopleAndGroups",e[e.PeopleOnly=0]="PeopleOnly"}(gc||(gc={})),function(e){e[e.Dropdown=0]="Dropdown",e[e.RadioButtons=1]="RadioButtons"}(yc||(yc={})),Ha(pl,"fields",vc),Ha(pl,"availablefields",vc,"availablefields"),Ha(yl,"fields",vc),Ha(tc,"files",Dl),Ha(_l,"file",Rl,"file"),Ha(_l,"folder",nc,"folder"),Ha(yl,"rootFolder",nc,"rootFolder"),Ha(pl,"folders",ec),Ha(pl,"rootFolder",nc,"rootFolder"),pl.prototype.getFolderByServerRelativeUrl=function(e){return nc(this,"getFolderByServerRelativeUrl('"+Zu(e)+"')")},pl.prototype.getFolderByServerRelativePath=function(e){return nc(this,"getFolderByServerRelativePath(decodedUrl='"+Zu(e)+"')")},pl.prototype.getFolderById=function(e){return nc(this,"getFolderById('"+e+"')")};var Sc=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.getById=function(e){return Pu.configure(Ic(this).concat("('"+e+"')"),"fos.getById")},ia([ju("forms")],t)}(Lu)),Ic=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t}(Nu));Ha(yl,"forms",Sc,"forms");var wc=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.getById=function(e){return Pu.configure(Pc(this,"GetById?hubSiteId='"+e+"'"),"hss.getById")},ia([ju("_api/hubsites")],t)}(Lu)),Pc=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.getSite=function(){return sa(this,void 0,void 0,function(){var e;return aa(this,function(t){switch(t.label){case 0:return[4,this.select("SiteUrl")()];case 1:return e=t.sent(),[2,ll(e.SiteUrl)]}})})},ia([Pu("hs.getSite")],t.prototype,"getSite",null),t}(Nu));ul.prototype.joinHubSite=function(e){return sa(this,void 0,void 0,function(){return aa(this,function(t){switch(t.label){case 0:return[4,Mu(this.clone(ll,"joinHubSite('"+e+"')"))];case 1:return t.sent(),[2]}})})},ul.prototype.registerHubSite=function(){return sa(this,void 0,void 0,function(){return aa(this,function(e){switch(e.label){case 0:return[4,Mu(this.clone(ll,"registerHubSite"))];case 1:return e.sent(),[2]}})})},ul.prototype.unRegisterHubSite=function(){return sa(this,void 0,void 0,function(){return aa(this,function(e){switch(e.label){case 0:return[4,Mu(this.clone(ll,"unRegisterHubSite"))];case 1:return e.sent(),[2]}})})},pl.prototype.hubSiteData=function(e){return void 0===e&&(e=!1),sa(this,void 0,void 0,function(){var t;return aa(this,function(n){switch(n.label){case 0:return[4,this.clone(dl,"hubSiteData("+e+")")()];case 1:return"string"==typeof(t=n.sent())?[2,JSON.parse(t)]:[2,t]}})})},pl.prototype.syncHubSiteTheme=function(){return Mu(this.clone(dl,"syncHubSiteTheme"))},Reflect.defineProperty(Qu.prototype,"hubSites",{configurable:!0,enumerable:!0,get:function(){return this.childConfigHook(function(e){var t=e.options,n=e.baseUrl,r=e.runtime;return wc(n).configure(t).setRuntime(r)})}});var Cc=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.getById=function(e){return Pu.configure(xc(this).concat("("+e+")"),"nns.getById")},t.prototype.add=function(e,t,n){return void 0===n&&(n=!0),sa(this,void 0,void 0,function(){var r,o;return aa(this,function(i){switch(i.label){case 0:return r=_u(ya(Iu("SP.NavigationNode"),{IsVisible:n,Title:e,Url:t})),[4,Mu(this.clone(Cc,null),r)];case 1:return[2,{data:o=i.sent(),node:this.getById(o.Id)}]}})})},t.prototype.moveAfter=function(e,t){var n=_u({nodeId:e,previousNodeId:t});return Mu(this.clone(Cc,"MoveAfter"),n)},ia([Pu("nns.add")],t.prototype,"add",null),ia([Pu("nns.moveAfter")],t.prototype,"moveAfter",null),t}(Lu)),xc=Ru(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.delete=Uu("nn"),t}return ra(t,e),Object.defineProperty(t.prototype,"children",{get:function(){return Pu.configure(Cc(this,"children"),"nn.children")},enumerable:!1,configurable:!0}),t.prototype.update=function(e){return sa(this,void 0,void 0,function(){var t;return aa(this,function(n){switch(n.label){case 0:return t=_u(ya(Iu("SP.NavigationNode"),e),Su({"X-HTTP-Method":"MERGE"})),[4,Mu(this,t)];case 1:return[2,{data:n.sent(),node:this}]}})})},ia([Pu("nn.update")],t.prototype,"update",null),t}(Nu)),Tc=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),Object.defineProperty(t.prototype,"quicklaunch",{get:function(){return Pu.configure(Cc(this,"quicklaunch"),"n.quicklaunch")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"topNavigationBar",{get:function(){return Pu.configure(Cc(this,"topnavigationbar"),"n.topnavigationbar")},enumerable:!1,configurable:!0}),ia([ju("navigation")],t)}(Fu)),Ec=function(e){function t(t){return void 0===t&&(t=null),e.call(this,"_api/navigation",t)||this}return ra(t,e),t.prototype.getMenuState=function(e,t,n,r){return void 0===e&&(e=null),void 0===t&&(t=10),void 0===n&&(n=null),void 0===r&&(r=null),Mu(kc("MenuState"),_u({customProperties:r,depth:t,mapProviderName:n,menuNodeKey:e}))},t.prototype.getMenuNodeKey=function(e,t){return void 0===t&&(t=null),Mu(kc("MenuNodeKey"),_u({currentUrl:e,mapProviderName:t}))},ia([Pu("ns.getMenuState")],t.prototype,"getMenuState",null),ia([Pu("ns.getMenuNodeKey")],t.prototype,"getMenuNodeKey",null),t}(Fu),kc=function(e){return new Ec(e)};Ha(pl,"navigation",Tc),Reflect.defineProperty(Qu.prototype,"navigation",{configurable:!0,enumerable:!0,get:function(){return this.childConfigHook(function(e){var t=e.options,n=e.baseUrl,r=e.runtime;return kc(n).configure(t).setRuntime(r)})}});var Dc,Mc=Ru(function(e){function t(t,n){void 0===n&&(n="_api/sp.userprofiles.peoplemanager");var r=e.call(this,t,n)||this;return r.clientPeoplePickerQuery=new Bc(t).configureFrom(r),r.profileLoader=new Rc(t).configureFrom(r),r}return ra(t,e),Object.defineProperty(t.prototype,"editProfileLink",{get:function(){return this.clone(Mc,"EditProfileLink").get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isMyPeopleListPublic",{get:function(){return this.clone(Mc,"IsMyPeopleListPublic").get()},enumerable:!1,configurable:!0}),t.prototype.amIFollowedBy=function(e){var t=this.clone(Mc,"amifollowedby(@v)");return t.query.set("@v","'"+encodeURIComponent(e)+"'"),t.get()},t.prototype.amIFollowing=function(e){var t=this.clone(Mc,"amifollowing(@v)");return t.query.set("@v","'"+encodeURIComponent(e)+"'"),t.get()},t.prototype.getFollowedTags=function(e){return void 0===e&&(e=20),this.clone(Mc,"getfollowedtags("+e+")").get()},t.prototype.getFollowersFor=function(e){var t=this.clone(Mc,"getfollowersfor(@v)");return t.query.set("@v","'"+encodeURIComponent(e)+"'"),t.get()},Object.defineProperty(t.prototype,"myFollowers",{get:function(){return Ou(this,"getmyfollowers")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"myProperties",{get:function(){return new t(this,"getmyproperties")},enumerable:!1,configurable:!0}),t.prototype.getPeopleFollowedBy=function(e){var t=this.clone(Mc,"getpeoplefollowedby(@v)");return t.query.set("@v","'"+encodeURIComponent(e)+"'"),t.get()},t.prototype.getPropertiesFor=function(e){var t=this.clone(Mc,"getpropertiesfor(@v)");return t.query.set("@v","'"+encodeURIComponent(e)+"'"),t.get()},Object.defineProperty(t.prototype,"trendingTags",{get:function(){var e=this.clone(Mc,null);return e.concat(".gettrendingtags"),e.get()},enumerable:!1,configurable:!0}),t.prototype.getUserProfilePropertyFor=function(e,t){var n=this.clone(Mc,"getuserprofilepropertyfor(accountname=@v, propertyname='"+t+"')");return n.query.set("@v","'"+encodeURIComponent(e)+"'"),n.get()},t.prototype.hideSuggestion=function(e){var t=this.clone(Mc,"hidesuggestion(@v)");return t.query.set("@v","'"+encodeURIComponent(e)+"'"),Mu(t)},t.prototype.isFollowing=function(e,t){var n=this.clone(Mc,null);return n.concat(".isfollowing(possiblefolloweraccountname=@v, possiblefolloweeaccountname=@y)"),n.query.set("@v","'"+encodeURIComponent(e)+"'"),n.query.set("@y","'"+encodeURIComponent(t)+"'"),n.get()},t.prototype.setMyProfilePic=function(e){var t=this;return new Promise(function(n,r){var o=new FileReader;o.onload=function(e){return sa(t,void 0,void 0,function(){var t,o;return aa(this,function(i){switch(i.label){case 0:t=e.target.result,i.label=1;case 1:return i.trys.push([1,3,,4]),[4,Mu(Mc(this,"setmyprofilepicture"),{body:t})];case 2:return i.sent(),n(),[3,4];case 3:return o=i.sent(),r(o),[3,4];case 4:return[2]}})})},o.readAsArrayBuffer(e)})},t.prototype.setSingleValueProfileProperty=function(e,t,n){return Mu(this.clone(Mc,"SetSingleValueProfileProperty"),_u({accountName:e,propertyName:t,propertyValue:n}))},t.prototype.setMultiValuedProfileProperty=function(e,t,n){return Mu(this.clone(Mc,"SetMultiValuedProfileProperty"),_u({accountName:e,propertyName:t,propertyValues:n}))},t.prototype.createPersonalSiteEnqueueBulk=function(){for(var e=[],t=0;tthis.TotalRows?Promise.resolve(null):Yc(this._url)(r)},e.prototype.formatSearchResults=function(e){var t,n,r=new Array;if(void 0===e||null==e)return[];var o=e.results?e.results:e;try{for(var i=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(o),s=i.next();!s.done;s=i.next()){var a=s.value,u=a.Cells.results?a.Cells.results:a.Cells;r.push(u.reduce(function(e,t){return Reflect.defineProperty(e,t.Key,{configurable:!1,enumerable:!0,value:t.Value,writable:!1}),e},{}))}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},e}(),ep=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.execute=function(e){return sa(this,void 0,void 0,function(){var t,n;return aa(this,function(r){switch(r.label){case 0:return this.mapQueryToQueryString(e),[4,this.get()];case 1:return t=r.sent(),[2,{PeopleNames:(n=Sa(t,"suggest")?function(e){return t.suggest[e].results}:function(e){return t[e]})("PeopleNames"),PersonalResults:n("PersonalResults"),Queries:n("Queries")}]}})})},t.prototype.mapQueryToQueryString=function(e){var t=this;this.query.set("querytext","'"+e.querytext+"'");var n,r=(n=e,function(e){return function(r){Sa(n,e)&&t.query.set(r,n[e].toString())}});r("count")("inumberofquerysuggestions"),r("personalCount")("inumberofresultsuggestions"),r("preQuery")("fprequerysuggestions"),r("hitHighlighting")("fhithighlighting"),r("capitalize")("fcapitalizefirstletters"),r("culture")("culture"),r("stemming")("enablestemming"),r("includePeople")("showpeoplenamesuggestions"),r("queryRules")("enablequeryrules"),r("prefixMatch")("fprefixmatchallterms")},ia([Pu("su.execute")],t.prototype,"execute",null),ia([ju("_api/search/suggest")],t)}(Nu);!function(e){e[e.Ascending=0]="Ascending",e[e.Descending=1]="Descending",e[e.FQLFormula=2]="FQLFormula"}(Gc||(Gc={})),function(e){e[e.ResultContainsKeyword=0]="ResultContainsKeyword",e[e.TitleContainsKeyword=1]="TitleContainsKeyword",e[e.TitleMatchesKeyword=2]="TitleMatchesKeyword",e[e.UrlStartsWith=3]="UrlStartsWith",e[e.UrlExactlyMatches=4]="UrlExactlyMatches",e[e.ContentTypeIs=5]="ContentTypeIs",e[e.FileExtensionMatches=6]="FileExtensionMatches",e[e.ResultHasTag=7]="ResultHasTag",e[e.ManualCondition=8]="ManualCondition"}(Xc||(Xc={})),function(e){e[e.None=0]="None",e[e.StringType=1]="StringType",e[e.Int32Type=2]="Int32Type",e[e.BooleanType=3]="BooleanType",e[e.StringArrayType=4]="StringArrayType",e[e.UnSupportedType=5]="UnSupportedType"}(Qc||(Qc={})),function(){function e(){}e.Documents="e7ec8cee-ded8-43c9-beb5-436b54b31e84",e.ItemsMatchingContentType="5dc9f503-801e-4ced-8a2c-5d1237132419",e.ItemsMatchingTag="e1327b9c-2b8c-4b23-99c9-3730cb29c3f7",e.ItemsRelatedToCurrentUser="48fec42e-4a92-48ce-8363-c2703a40e67d",e.ItemsWithSameKeywordAsThisItem="5c069288-1d17-454a-8ac6-9c642a065f48",e.LocalPeopleResults="b09a7990-05ea-4af9-81ef-edfab16c4e31",e.LocalReportsAndDataResults="203fba36-2763-4060-9931-911ac8c0583b",e.LocalSharePointResults="8413cd39-2156-4e00-b54d-11efd9abdb89",e.LocalVideoResults="78b793ce-7956-4669-aa3b-451fc5defebf",e.Pages="5e34578e-4d08-4edc-8bf3-002acf3cdbcc",e.Pictures="38403c8c-3975-41a8-826e-717f2d41568a",e.Popular="97c71db1-58ce-4891-8b64-585bc2326c12",e.RecentlyChangedItems="ba63bbae-fa9c-42c0-b027-9a878f16557c",e.RecommendedItems="ec675252-14fa-4fbe-84dd-8d098ed74181",e.Wiki="9479bf85-e257-4318-b5a8-81a180f5faa1"}(),Qu.prototype.search=function(e){return this.childConfigHook(function(t){var n=t.options,r=t.baseUrl,o=t.runtime;return Yc(r,n,o)(e)})},Qu.prototype.searchWithCaching=function(e,t){return this.childConfigHook(function(n){var r=n.options,o=n.baseUrl,i=n.runtime;return new Zc(o).configure(r).setRuntime(i).usingCaching(t).execute(e)})},Qu.prototype.searchSuggest=function(e){return this.childConfigHook(function(t){var n=t.options;return function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n=Ma),function(r){return new ep(e).configure(t).setRuntime(n).execute(r)}}(t.baseUrl,n,t.runtime)("string"==typeof e?{querytext:e}:e)})};var tp,np,rp,op,ip,sp,ap,up=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.getById=function(e){return Pu.configure(lp(this,"getById("+e+")"),"sus.getById")},t.prototype.getByEmail=function(e){return Pu.configure(lp(this,"getByEmail('"+e+"')"),"sus.getByEmail")},t.prototype.getByLoginName=function(e){return Pu.configure(lp(this).concat("('!@v::"+encodeURIComponent(e)+"')"),"sus.getByLoginName")},t.prototype.removeById=function(e){return Mu(this.clone(up,"removeById("+e+")"))},t.prototype.removeByLoginName=function(e){var t=this.clone(up,"removeByLoginName(@v)");return t.query.set("@v","'"+encodeURIComponent(e)+"'"),Mu(t)},t.prototype.add=function(e){return sa(this,void 0,void 0,function(){return aa(this,function(t){switch(t.label){case 0:return[4,Mu(this,_u(ya(Iu("SP.User"),{LoginName:e})))];case 1:return t.sent(),[2,this.getByLoginName(e)]}})})},ia([Pu("sus.remId")],t.prototype,"removeById",null),ia([Pu("sus.remLoginName")],t.prototype,"removeByLoginName",null),ia([Pu("sus.add")],t.prototype,"add",null),ia([ju("siteusers")],t)}(Lu)),lp=Ru(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.delete=Uu("su"),t.update=t._update("SP.User",function(e){return{data:e,user:t}}),t}return ra(t,e),Object.defineProperty(t.prototype,"groups",{get:function(){return Pu.configure(cp(this,"groups"),"su.groups")},enumerable:!1,configurable:!0}),t}(Nu)),cp=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.getById=function(e){return Pu.configure(pp(this).concat("("+e+")"),"sgs.getById")},t.prototype.add=function(e){return sa(this,void 0,void 0,function(){var t,n;return aa(this,function(r){switch(r.label){case 0:return t=_u(ya(Iu("SP.Group"),e)),[4,Mu(Pu.configure(this,"sgs.add"),t)];case 1:return[2,{data:n=r.sent(),group:this.getById(n.Id)}]}})})},t.prototype.getByName=function(e){return Pu.configure(pp(this,"getByName('"+e+"')"),"sgs.getByName")},t.prototype.removeById=function(e){return Mu(this.clone(cp,"removeById('"+e+"')"))},t.prototype.removeByLoginName=function(e){return Mu(this.clone(cp,"removeByLoginName('"+e+"')"))},ia([Pu("sgs.removeById")],t.prototype,"removeById",null),ia([Pu("sgs.removeByLoginName")],t.prototype,"removeByLoginName",null),ia([ju("sitegroups")],t)}(Lu)),pp=Ru(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.update=t._update("SP.Group",function(e,n){return{data:e,group:Sa(n,"Title")?t.getParent(pp,t.parentUrl,"getByName('"+n.Title+"')"):pp(t)}}),t}return ra(t,e),Object.defineProperty(t.prototype,"users",{get:function(){return Pu.configure(up(this,"users"),"sg.users")},enumerable:!1,configurable:!0}),t.prototype.setUserAsOwner=function(e){return Mu(this.clone(pp,"SetUserAsOwner("+e+")"))},ia([Pu("sg.setUserAsOwner")],t.prototype,"setUserAsOwner",null),t}(Nu)),dp=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.getById=function(e){return hp(this).concat("("+e+")")},t.prototype.add=function(e,t){return sa(this,void 0,void 0,function(){return aa(this,function(n){switch(n.label){case 0:return[4,Mu(this.clone(dp,"addroleassignment(principalid="+e+", roledefid="+t+")"))];case 1:return n.sent(),[2]}})})},t.prototype.remove=function(e,t){return sa(this,void 0,void 0,function(){return aa(this,function(n){switch(n.label){case 0:return[4,Mu(this.clone(dp,"removeroleassignment(principalid="+e+", roledefid="+t+")"))];case 1:return n.sent(),[2]}})})},ia([ju("roleassignments")],t)}(Lu)),hp=Ru(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.delete=Uu("ra"),t}return ra(t,e),Object.defineProperty(t.prototype,"groups",{get:function(){return Pu.configure(cp(this,"groups"),"ra.groups")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bindings",{get:function(){return Ou(this,"roledefinitionbindings")},enumerable:!1,configurable:!0}),t}(Nu)),fp=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.getById=function(e){return mp(this,"getById("+e+")")},t.prototype.getByName=function(e){return mp(this,"getbyname('"+e+"')")},t.prototype.getByType=function(e){return mp(this,"getbytype("+e+")")},t.prototype.add=function(e,t,n,r){return sa(this,void 0,void 0,function(){var o,i;return aa(this,function(s){switch(s.label){case 0:return o=_u({BasePermissions:{High:r.High.toString(),Low:r.Low.toString()},Description:t,Name:e,Order:n,__metadata:{type:"SP.RoleDefinition"}}),[4,Mu(this,o)];case 1:return[2,{data:i=s.sent(),definition:this.getById(i.Id)}]}})})},ia([ju("roledefinitions")],t)}(Lu)),mp=Ru(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.delete=Uu("rd"),t}return ra(t,e),t.prototype.update=function(e){return sa(this,void 0,void 0,function(){var t,n,r,o,i,s;return aa(this,function(a){switch(a.label){case 0:return void 0!==Sa(e,(t=["BasePermissions"])[0])&&(e[t[0]]=ya(Iu("SP."+t[0]),e[t[0]]),(n=e[t[0]]).High=n.High.toString(),n.Low=n.Low.toString()),r=_u(ya(Iu("SP.RoleDefinition"),e),Su({"X-HTTP-Method":"MERGE"})),[4,Mu(this,r)];case 1:return o=a.sent(),i=this,Sa(e,"Name")&&(s=this.getParent(fp,this.parentUrl,""),i=s.getByName(e.Name)),[2,{data:o,definition:i}]}})})},t}(Nu));function gp(e){return sa(this,void 0,void 0,function(){var t,n;return aa(this,function(r){switch(r.label){case 0:return(t=this.clone(Au,"getUserEffectivePermissions(@user)")).query.set("@user","'"+encodeURIComponent(e)+"'"),[4,t.get()];case 1:return[2,Sa(n=r.sent(),"GetUserEffectivePermissions")?n.GetUserEffectivePermissions:n]}})})}function yp(){return sa(this,void 0,void 0,function(){return aa(this,function(e){return[2,this.clone(Bu,"EffectiveBasePermissions").get().then(function(e){return Sa(e,"EffectiveBasePermissions")?e.EffectiveBasePermissions:e})]})})}function vp(e,t){return void 0===e&&(e=!1),void 0===t&&(t=!1),sa(this,void 0,void 0,function(){return aa(this,function(n){switch(n.label){case 0:return[4,Mu(this.clone(Bu,"breakroleinheritance(copyroleassignments="+e+", clearsubscopes="+t+")"))];case 1:return n.sent(),[2]}})})}function bp(){return sa(this,void 0,void 0,function(){return aa(this,function(e){switch(e.label){case 0:return[4,Mu(this.clone(Bu,"resetroleinheritance"))];case 1:return e.sent(),[2]}})})}function _p(e,t){return sa(this,void 0,void 0,function(){var n;return aa(this,function(r){switch(r.label){case 0:return[4,gp.call(this,e)];case 1:return n=r.sent(),[2,this.hasPermissions(n,t)]}})})}function Sp(e){return sa(this,void 0,void 0,function(){var t;return aa(this,function(n){switch(n.label){case 0:return[4,yp.call(this)];case 1:return t=n.sent(),[2,this.hasPermissions(t,e)]}})})}function Ip(e,t){if(!t)return!0;if(t===tp.FullMask)return 32767==(32767&e.High)&&65535===e.Low;var n=1;return(t-=1)>=0&&t<32?(n<<=t,0!=(e.Low&n)):t>=32&&t<64&&(n<<=t-32,0!=(e.High&n))}function wp(e,t,n){return void 0===n&&(n=!1),sa(this,void 0,void 0,function(){var r,o,i;return aa(this,function(s){switch(s.label){case 0:return n?[2,Rp(e,t)]:[4,Fp((t=ya(t,{group:null,includeAnonymousLinkInEmail:!1,propagateAcl:!1,useSimplifiedRoles:!0},!0)).role,t.group)];case 1:return r=s.sent(),Array.isArray(t.loginNames)||(t.loginNames=[t.loginNames]),o=_a(t.loginNames.map(function(e){return{Key:e}})),i={peoplePickerInput:o,roleValue:r,url:t.url},void 0!==t.emailData&&null!==t.emailData&&(i=ya(i,{emailBody:t.emailData.body,emailSubject:void 0!==t.emailData.subject?t.emailData.subject:"Shared with you.",sendEmail:!0})),[2,Rp(e,i)]}})})}function Pp(e,t){void 0===t&&(t=null);var n=null!==t?t.toISOString():null,r=Pu.configure(this.clone(Au,"shareLink"),"sh.getShareLink");return Mu(r,_u({request:{createLink:!0,emailData:null,settings:{expiration:n,linkKind:e}}}))}function Cp(e){var t=Pu.configure(this.clone(Au,"checkPermissions"),"sh.checkPermissions");return Mu(t,_u({recipients:e}))}function xp(e,t){void 0===e&&(e=null),void 0===t&&(t=[]);var n=Pu.configure(this.clone(Au,"getSharingInformation"),"sh.getSharingInformation");return Mu(n.expand.apply(n,la([],ua(t))),_u({request:e}))}function Tp(e){void 0===e&&(e=!0);var t=Pu.configure(this.clone(Au,"getObjectSharingSettings"),"sh.getObjectSharingSettings");return Mu(t,_u({useSimplifiedRoles:e}))}function Ep(){return Mu(Pu.configure(this.clone(Au,"unshareObject"),"sh.unshareObject"))}function kp(e){return Mu(Pu.configure(this.clone(Au,"deleteLinkByKind"),"sh.deleteLinkByKind"),_u({linkKind:e}))}function Dp(e,t){return void 0===t&&(t=Ku),Mu(Pu.configure(this.clone(Au,"unshareLink"),"sh.unshareLink"),_u({linkKind:e,shareId:t}))}function Mp(e,t,n,r,o,i){return void 0===r&&(r=!1),void 0===o&&(o=!1),sa(this,void 0,void 0,function(){var s,a,u,l;return aa(this,function(c){switch(c.label){case 0:return Array.isArray(t)||(t=[t]),s=_a(t.map(function(e){return{Key:e}})),a=n===np.Edit?ap.Contributor:ap.Reader,[4,Ou("_api/web","roledefinitions").select("Id").filter("RoleTypeKind eq "+a).get()];case 1:if(u=c.sent(),!Array.isArray(u)||u.length<1)throw Error("Could not locate a role defintion with RoleTypeKind "+a);return l={includeAnonymousLinkInEmail:r,peoplePickerInput:s,propagateAcl:o,roleValue:"role:"+u[0].Id,useSimplifiedRoles:!0},void 0!==i&&(l=ya(l,{emailBody:i.body,emailSubject:void 0!==i.subject?i.subject:"",sendEmail:!0})),[2,Mu(Pu.configure(e.clone(Au,"shareObject"),"sh.shareWith"),_u(l))]}})})}function Rp(e,t){var n=Pu.configure(dl(wu(e.toUrl()),"/_api/SP.Web.ShareObject"),"sh.sendShareObjectRequest");return n.configureFrom(this),Mu(n.expand("UsersWithAccessRequests","GroupsSharedWith"),_u(t))}function Fp(e,t){return sa(this,void 0,void 0,function(){var n,r;return aa(this,function(o){switch(o.label){case 0:if(null==t)return[3,7];switch(t){case ap.Contributor:return[3,1];case ap.Reader:case ap.Guest:return[3,3]}return[3,5];case 1:return[4,dl("_api/web","associatedmembergroup").configureFrom(this).select("Id")()];case 2:return[2,"group: "+o.sent().Id];case 3:return[4,dl("_api/web","associatedvisitorgroup").configureFrom(this).select("Id")()];case 4:return[2,"group: "+o.sent().Id];case 5:throw Error("Could not determine role value for supplied value. Contributor, Reader, and Guest are supported");case 6:return[3,9];case 7:return n=e===np.Edit?ap.Contributor:ap.Reader,[4,fp("_api/web").select("Id").top(1).filter("RoleTypeKind eq "+n)()];case 8:if((r=o.sent()).length<1)throw Error("Could not locate associated role definition for supplied role. Edit and View are supported");return[2,"role: "+r[0].Id];case 9:return[2]}})})}!function(e){e[e.EmptyMask=0]="EmptyMask",e[e.ViewListItems=1]="ViewListItems",e[e.AddListItems=2]="AddListItems",e[e.EditListItems=3]="EditListItems",e[e.DeleteListItems=4]="DeleteListItems",e[e.ApproveItems=5]="ApproveItems",e[e.OpenItems=6]="OpenItems",e[e.ViewVersions=7]="ViewVersions",e[e.DeleteVersions=8]="DeleteVersions",e[e.CancelCheckout=9]="CancelCheckout",e[e.ManagePersonalViews=10]="ManagePersonalViews",e[e.ManageLists=12]="ManageLists",e[e.ViewFormPages=13]="ViewFormPages",e[e.AnonymousSearchAccessList=14]="AnonymousSearchAccessList",e[e.Open=17]="Open",e[e.ViewPages=18]="ViewPages",e[e.AddAndCustomizePages=19]="AddAndCustomizePages",e[e.ApplyThemeAndBorder=20]="ApplyThemeAndBorder",e[e.ApplyStyleSheets=21]="ApplyStyleSheets",e[e.ViewUsageData=22]="ViewUsageData",e[e.CreateSSCSite=23]="CreateSSCSite",e[e.ManageSubwebs=24]="ManageSubwebs",e[e.CreateGroups=25]="CreateGroups",e[e.ManagePermissions=26]="ManagePermissions",e[e.BrowseDirectories=27]="BrowseDirectories",e[e.BrowseUserInfo=28]="BrowseUserInfo",e[e.AddDelPrivateWebParts=29]="AddDelPrivateWebParts",e[e.UpdatePersonalWebParts=30]="UpdatePersonalWebParts",e[e.ManageWeb=31]="ManageWeb",e[e.AnonymousSearchAccessWebLists=32]="AnonymousSearchAccessWebLists",e[e.UseClientIntegration=37]="UseClientIntegration",e[e.UseRemoteAPIs=38]="UseRemoteAPIs",e[e.ManageAlerts=39]="ManageAlerts",e[e.CreateAlerts=40]="CreateAlerts",e[e.EditMyUserInfo=41]="EditMyUserInfo",e[e.EnumeratePermissions=63]="EnumeratePermissions",e[e.FullMask=65]="FullMask"}(tp||(tp={})),Ha(_l,"roleAssignments",dp),Ha(_l,"firstUniqueAncestorSecurableObject",Au),_l.prototype.getUserEffectivePermissions=gp,_l.prototype.getCurrentUserEffectivePermissions=yp,_l.prototype.breakRoleInheritance=vp,_l.prototype.resetRoleInheritance=bp,_l.prototype.userHasPermissions=_p,_l.prototype.currentUserHasPermissions=Sp,_l.prototype.hasPermissions=Ip,Ha(yl,"roleAssignments",dp),Ha(yl,"firstUniqueAncestorSecurableObject",Au),yl.prototype.getUserEffectivePermissions=gp,yl.prototype.getCurrentUserEffectivePermissions=yp,yl.prototype.breakRoleInheritance=vp,yl.prototype.resetRoleInheritance=bp,yl.prototype.userHasPermissions=_p,yl.prototype.currentUserHasPermissions=Sp,yl.prototype.hasPermissions=Ip,Ha(pl,"roleDefinitions",fp),Ha(pl,"roleAssignments",dp),Ha(pl,"firstUniqueAncestorSecurableObject",Au),pl.prototype.getUserEffectivePermissions=gp,pl.prototype.getCurrentUserEffectivePermissions=yp,pl.prototype.breakRoleInheritance=vp,pl.prototype.resetRoleInheritance=bp,pl.prototype.userHasPermissions=_p,pl.prototype.currentUserHasPermissions=Sp,pl.prototype.hasPermissions=Ip,function(e){e[e.None=0]="None",e[e.View=1]="View",e[e.Edit=2]="Edit",e[e.Owner=3]="Owner"}(np||(np={})),function(e){e[e.Unknown=0]="Unknown",e[e.File=1]="File",e[e.Folder=2]="Folder",e[e.Item=3]="Item",e[e.List=4]="List",e[e.Web=5]="Web",e[e.Max=6]="Max"}(rp||(rp={})),function(e){e[e.None=0]="None",e[e.AllowList=1]="AllowList",e[e.BlockList=2]="BlockList"}(op||(op={})),function(e){e[e.CompletedSuccessfully=0]="CompletedSuccessfully",e[e.AccessRequestsQueued=1]="AccessRequestsQueued",e[e.NoResolvedUsers=-1]="NoResolvedUsers",e[e.AccessDenied=-2]="AccessDenied",e[e.CrossSiteRequestNotSupported=-3]="CrossSiteRequestNotSupported",e[e.UnknowError=-4]="UnknowError",e[e.EmailBodyTooLong=-5]="EmailBodyTooLong",e[e.ListUniqueScopesExceeded=-6]="ListUniqueScopesExceeded",e[e.CapabilityDisabled=-7]="CapabilityDisabled",e[e.ObjectNotSupported=-8]="ObjectNotSupported",e[e.NestedGroupsNotSupported=-9]="NestedGroupsNotSupported"}(ip||(ip={})),function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Direct=1]="Direct",e[e.OrganizationView=2]="OrganizationView",e[e.OrganizationEdit=3]="OrganizationEdit",e[e.AnonymousView=4]="AnonymousView",e[e.AnonymousEdit=5]="AnonymousEdit",e[e.Flexible=6]="Flexible"}(sp||(sp={})),function(e){e[e.None=0]="None",e[e.Guest=1]="Guest",e[e.Reader=2]="Reader",e[e.Contributor=3]="Contributor",e[e.WebDesigner=4]="WebDesigner",e[e.Administrator=5]="Administrator"}(ap||(ap={})),Ml.prototype.shareWith=function(e,t,n,r){return void 0===t&&(t=np.View),void 0===n&&(n=!1),Mp(this,e,t,n,!1,r)},Ml.prototype.getShareLink=Pp,Ml.prototype.checkSharingPermissions=Cp,Ml.prototype.getSharingInformation=xp,Ml.prototype.getObjectSharingSettings=Tp,Ml.prototype.unshare=Ep,Ml.prototype.deleteSharingLinkByKind=kp,Ml.prototype.unshareLink=Dp,tc.prototype.shareWith=function(e,t,n,r,o){return void 0===t&&(t=np.View),void 0===n&&(n=!1),void 0===r&&(r=!1),sa(this,void 0,void 0,function(){var i,s;return aa(this,function(a){switch(a.label){case 0:return i=this.addBatchDependency(),[4,this.getShareable()];case 1:return s=a.sent(),i(),[2,s.shareWith(e,t,n,r,o)]}})})},tc.prototype.getShareLink=function(e,t){return void 0===t&&(t=null),sa(this,void 0,void 0,function(){var n,r;return aa(this,function(o){switch(o.label){case 0:return n=this.addBatchDependency(),[4,this.getShareable()];case 1:return r=o.sent(),n(),[2,r.getShareLink(e,t)]}})})},tc.prototype.checkSharingPermissions=function(e){return sa(this,void 0,void 0,function(){var t,n;return aa(this,function(r){switch(r.label){case 0:return t=this.addBatchDependency(),[4,this.getShareable()];case 1:return n=r.sent(),t(),[2,n.checkSharingPermissions(e)]}})})},tc.prototype.getSharingInformation=function(e,t){return sa(this,void 0,void 0,function(){var n,r;return aa(this,function(o){switch(o.label){case 0:return n=this.addBatchDependency(),[4,this.getShareable()];case 1:return r=o.sent(),n(),[2,r.getSharingInformation(e,t)]}})})},tc.prototype.getObjectSharingSettings=function(e){return void 0===e&&(e=!0),sa(this,void 0,void 0,function(){var t,n;return aa(this,function(r){switch(r.label){case 0:return t=this.addBatchDependency(),[4,this.getShareable()];case 1:return n=r.sent(),t(),[2,n.getObjectSharingSettings(e)]}})})},tc.prototype.unshare=function(){return sa(this,void 0,void 0,function(){var e,t;return aa(this,function(n){switch(n.label){case 0:return e=this.addBatchDependency(),[4,this.getShareable()];case 1:return t=n.sent(),e(),[2,t.unshare()]}})})},tc.prototype.deleteSharingLinkByKind=function(e){return sa(this,void 0,void 0,function(){var t,n;return aa(this,function(r){switch(r.label){case 0:return t=this.addBatchDependency(),[4,this.getShareable()];case 1:return n=r.sent(),t(),[2,n.deleteSharingLinkByKind(e)]}})})},tc.prototype.unshareLink=function(e,t){return sa(this,void 0,void 0,function(){var n,r;return aa(this,function(o){switch(o.label){case 0:return n=this.addBatchDependency(),[4,this.getShareable()];case 1:return r=o.sent(),n(),[2,r.unshareLink(e,t)]}})})},_l.prototype.shareWith=function(e,t,n,r){return void 0===t&&(t=np.View),void 0===n&&(n=!1),Mp(this,e,t,n,!1,r)},_l.prototype.getShareLink=Pp,_l.prototype.checkSharingPermissions=Cp,_l.prototype.getSharingInformation=xp,_l.prototype.getObjectSharingSettings=Tp,_l.prototype.unshare=Ep,_l.prototype.deleteSharingLinkByKind=kp,_l.prototype.unshareLink=Dp,pl.prototype.shareWith=function(e,t,n){return void 0===t&&(t=np.View),sa(this,void 0,void 0,function(){var r,o;return aa(this,function(i){switch(i.label){case 0:return r=this.addBatchDependency(),[4,new Nu(wu(this.toUrl()),"/_api/web/url").get()];case 1:return o=i.sent(),r(),[2,this.shareObject(da(o,"/_layouts/15/aclinv.aspx?forSharing=1&mbypass=1"),e,t,n)]}})})},pl.prototype.shareObject=function(e,t,n,r,o,i,s,a){return void 0===i&&(i=!1),void 0===s&&(s=!1),void 0===a&&(a=!0),wp(this,{emailData:r,group:o,includeAnonymousLinkInEmail:s,loginNames:t,propagateAcl:i,role:n,url:e,useSimplifiedRoles:a})},pl.prototype.shareObjectRaw=function(e){return wp(this,e,!0)},pl.prototype.unshareObject=function(e){return Mu(dl(this,"unshareObject").configureFrom(this),_u({url:e}))};var Bp=function(e){function t(t,n){void 0===n&&(n="");var r="string"==typeof t?t:t.toUrl();return e.call(this,wu(r),"_api/Microsoft.Sharepoint.Utilities.WebTemplateExtensions.SiteScriptUtility."+n)||this}return ra(t,e),t.prototype.execute=function(e){return Mu(this,_u(e,Su({"Content-Type":"application/json;charset=utf-8"})))},t.prototype.createSiteDesign=function(e){return this.clone(Op,"CreateSiteDesign").execute({info:e})},t.prototype.applySiteDesign=function(e,t){return this.clone(Op,"ApplySiteDesign").execute({siteDesignId:e,webUrl:t})},t.prototype.getSiteDesigns=function(){return this.clone(Op,"GetSiteDesigns").execute({})},t.prototype.getSiteDesignMetadata=function(e){return this.clone(Op,"GetSiteDesignMetadata").execute({id:e})},t.prototype.updateSiteDesign=function(e){return this.clone(Op,"UpdateSiteDesign").execute({updateInfo:e})},t.prototype.deleteSiteDesign=function(e){return this.clone(Op,"DeleteSiteDesign").execute({id:e})},t.prototype.getSiteDesignRights=function(e){return this.clone(Op,"GetSiteDesignRights").execute({id:e})},t.prototype.grantSiteDesignRights=function(e,t,n){return void 0===n&&(n=1),this.clone(Op,"GrantSiteDesignRights").execute({grantedRights:n.toString(),id:e,principalNames:t})},t.prototype.revokeSiteDesignRights=function(e,t){return this.clone(Op,"RevokeSiteDesignRights").execute({id:e,principalNames:t})},t.prototype.addSiteDesignTask=function(e,t){return this.clone(Op,"AddSiteDesignTask").execute({webUrl:e,siteDesignId:t})},t.prototype.addSiteDesignTaskToCurrentWeb=function(e){return this.clone(Op,"AddSiteDesignTaskToCurrentWeb").execute({siteDesignId:e})},t.prototype.getSiteDesignTask=function(e){return sa(this,void 0,void 0,function(){var t;return aa(this,function(n){switch(n.label){case 0:return[4,this.clone(Op,"GetSiteDesignTask").execute({taskId:e})];case 1:return[2,Sa(t=n.sent(),"ID")?t:null]}})})},t.prototype.getSiteDesignRun=function(e,t){return this.clone(Op,"GetSiteDesignRun").execute({webUrl:e,siteDesignId:t})},t.prototype.getSiteDesignRunStatus=function(e,t){return this.clone(Op,"GetSiteDesignRunStatus").execute({webUrl:e,runId:t})},ia([Pu("sd.createSiteDesign")],t.prototype,"createSiteDesign",null),ia([Pu("sd.applySiteDesign")],t.prototype,"applySiteDesign",null),ia([Pu("sd.getSiteDesigns")],t.prototype,"getSiteDesigns",null),ia([Pu("sd.getSiteDesignMetadata")],t.prototype,"getSiteDesignMetadata",null),ia([Pu("sd.updateSiteDesign")],t.prototype,"updateSiteDesign",null),ia([Pu("sd.deleteSiteDesign")],t.prototype,"deleteSiteDesign",null),ia([Pu("sd.getSiteDesignRights")],t.prototype,"getSiteDesignRights",null),ia([Pu("sd.grantSiteDesignRights")],t.prototype,"grantSiteDesignRights",null),ia([Pu("sd.revokeSiteDesignRights")],t.prototype,"revokeSiteDesignRights",null),ia([Pu("sd.addSiteDesignTask")],t.prototype,"addSiteDesignTask",null),ia([Pu("sd.addSiteDesignTaskToCurrentWeb")],t.prototype,"addSiteDesignTaskToCurrentWeb",null),ia([Pu("sd.getSiteDesignTask")],t.prototype,"getSiteDesignTask",null),ia([Pu("sd.getSiteDesignRun")],t.prototype,"getSiteDesignRun",null),ia([Pu("sd.getSiteDesignRunStatus")],t.prototype,"getSiteDesignRunStatus",null),t}(Fu),Lp=function(e,t){return new Bp(e,t)},Op=function(e,t){return void 0===t&&(t=""),Lp(e,t)};pl.prototype.getSiteDesignRuns=function(e){return Lp(this,"").getSiteDesignRun(void 0,e)},pl.prototype.addSiteDesignTask=function(e){return Lp(this,"").addSiteDesignTaskToCurrentWeb(e)},pl.prototype.getSiteDesignRunStatus=function(e){return Lp(this,"").getSiteDesignRunStatus(void 0,e)},Reflect.defineProperty(Qu.prototype,"siteDesigns",{configurable:!0,enumerable:!0,get:function(){return this.childConfigHook(function(e){var t=e.options,n=e.baseUrl,r=e.runtime;return Lp(n).configure(t).setRuntime(r)})}}),Ha(pl,"siteGroups",cp),Ha(pl,"associatedOwnerGroup",pp,"associatedownergroup"),Ha(pl,"associatedMemberGroup",pp,"associatedmembergroup"),Ha(pl,"associatedVisitorGroup",pp,"associatedvisitorgroup"),pl.prototype.createDefaultAssociatedGroups=function(e,t,n,r,o){return void 0===n&&(n=!1),void 0===r&&(r=!0),sa(this,void 0,void 0,function(){var i;return aa(this,function(s){switch(s.label){case 0:return[4,this.breakRoleInheritance(n,r)];case 1:return s.sent(),(i=this.clone(dl,"createDefaultAssociatedGroups(userLogin=@u,userLogin2=@v,groupNameSeed=@s)")).query.set("@u","'"+Zu(t||"")+"'"),i.query.set("@v","'"+Zu(o||"")+"'"),i.query.set("@s","'"+Zu(e||"")+"'"),[2,Mu(i)]}})})};var Np,Ap=function(e){function t(t,n){void 0===n&&(n="");var r="string"==typeof t?t:t.toUrl();return e.call(this,wu(r),"_api/Microsoft.Sharepoint.Utilities.WebTemplateExtensions.SiteScriptUtility."+n)||this}return ra(t,e),t.prototype.execute=function(e){return Mu(this,_u(e))},t.prototype.getSiteScripts=function(){return this.clone(zp,"GetSiteScripts",!0).execute({})},t.prototype.createSiteScript=function(e,t,n){return this.clone(zp,"CreateSiteScript(Title=@title,Description=@desc)?@title='"+Zu(e)+"'&@desc='"+Zu(t)+"'").execute(n)},t.prototype.getSiteScriptMetadata=function(e){return this.clone(zp,"GetSiteScriptMetadata").execute({id:e})},t.prototype.deleteSiteScript=function(e){return this.clone(zp,"DeleteSiteScript").execute({id:e})},t.prototype.updateSiteScript=function(e,t){return t&&(e.Content=JSON.stringify(t)),this.clone(zp,"UpdateSiteScript").execute({updateInfo:e})},t.prototype.getSiteScriptFromList=function(e){return this.clone(zp,"GetSiteScriptFromList").execute({listUrl:e})},t.prototype.getSiteScriptFromWeb=function(e,t){return this.clone(zp,"getSiteScriptFromWeb").execute({webUrl:e,info:t})},t.prototype.executeSiteScriptAction=function(e){return this.clone(zp,"executeSiteScriptAction").execute({actionDefinition:e})},ia([Pu("ss.getSiteScripts")],t.prototype,"getSiteScripts",null),ia([Pu("ss.createSiteScript")],t.prototype,"createSiteScript",null),ia([Pu("ss.getSiteScriptMetadata")],t.prototype,"getSiteScriptMetadata",null),ia([Pu("ss.deleteSiteScript")],t.prototype,"deleteSiteScript",null),ia([Pu("ss.updateSiteScript")],t.prototype,"updateSiteScript",null),ia([Pu("ss.getSiteScriptFromList")],t.prototype,"getSiteScriptFromList",null),ia([Pu("ss.getSiteScriptFromWeb")],t.prototype,"getSiteScriptFromWeb",null),ia([Pu("ss.executeSiteScriptAction")],t.prototype,"executeSiteScriptAction",null),t}(Fu),Up=function(e,t){return new Ap(e,t)},zp=function(e,t){return void 0===t&&(t=""),Up(e,t)};!function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure",e[e.NoOp=2]="NoOp",e[e.SucceededWithException=3]="SucceededWithException"}(Np||(Np={})),pl.prototype.getSiteScript=function(e){return Up(this.toUrl(),"").getSiteScriptFromWeb(void 0,e)},yl.prototype.getSiteScript=function(){return sa(this,void 0,void 0,function(){var e,t,n;return aa(this,function(r){switch(r.label){case 0:return[4,this.clone(vl).rootFolder.get()];case 1:return e=r.sent(),[4,dl(wu(this.toUrl())).configureFrom(this).select("Url").get()];case 2:return t=r.sent(),n=da(t.Url,"Lists",e.Name),[2,Up(this,"").getSiteScriptFromList(n)]}})})},Reflect.defineProperty(Qu.prototype,"siteScripts",{configurable:!0,enumerable:!0,get:function(){return this.childConfigHook(function(e){var t=e.options,n=e.baseUrl,r=e.runtime;return Up(n).configure(t).setRuntime(r)})}}),Ha(pl,"siteUsers",up),Ha(pl,"currentUser",lp,"currentuser"),pl.prototype.ensureUser=function(e){return sa(this,void 0,void 0,function(){var t;return aa(this,function(n){switch(n.label){case 0:return[4,Mu(this.clone(dl,"ensureuser"),_u({logonName:e}))];case 1:return[2,{data:t=n.sent(),user:lp(Yu(t))}]}})})},pl.prototype.getUserById=function(e){return lp(this,"getUserById("+e+")")};var Wp,jp,Hp,Kp,qp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),Object.defineProperty(t.prototype,"my",{get:function(){return Gp(this)},enumerable:!1,configurable:!0}),t.prototype.getFollowedSitesUri=function(){return sa(this,void 0,void 0,function(){var e;return aa(this,function(t){switch(t.label){case 0:return[4,this.clone(Vp,"FollowedSitesUri").get()];case 1:return[2,(e=t.sent()).FollowedSitesUri||e]}})})},t.prototype.getFollowedDocumentsUri=function(){return sa(this,void 0,void 0,function(){var e;return aa(this,function(t){switch(t.label){case 0:return[4,this.clone(Vp,"FollowedDocumentsUri").get()];case 1:return[2,(e=t.sent()).FollowedDocumentsUri||e]}})})},t.prototype.follow=function(e){return sa(this,void 0,void 0,function(){return aa(this,function(t){switch(t.label){case 0:return[4,Mu(this.clone(Vp,"follow"),this.createSocialActorInfoRequestBody(e))];case 1:return[2,t.sent()]}})})},t.prototype.isFollowed=function(e){return sa(this,void 0,void 0,function(){return aa(this,function(t){switch(t.label){case 0:return[4,Mu(this.clone(Vp,"isfollowed"),this.createSocialActorInfoRequestBody(e))];case 1:return[2,t.sent()]}})})},t.prototype.stopFollowing=function(e){return sa(this,void 0,void 0,function(){return aa(this,function(t){switch(t.label){case 0:return[4,Mu(this.clone(Vp,"stopfollowing"),this.createSocialActorInfoRequestBody(e))];case 1:return[2,t.sent()]}})})},t.prototype.createSocialActorInfoRequestBody=function(e){return _u({actor:Object.assign(Iu("SP.Social.SocialActorInfo"),{Id:null},e)})},ia([Pu("soc.getFollowedSitesUri")],t.prototype,"getFollowedSitesUri",null),ia([Pu("soc.getFollowedDocumentsUri")],t.prototype,"getFollowedDocumentsUri",null),ia([Pu("soc.follow")],t.prototype,"follow",null),ia([Pu("soc.isFollowed")],t.prototype,"isFollowed",null),ia([Pu("soc.stopFollowing")],t.prototype,"stopFollowing",null),ia([ju("_api/social.following")],t)}(Nu),Vp=function(e,t){return new qp(e,t)},Gp=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.followed=function(e){return sa(this,void 0,void 0,function(){var t;return aa(this,function(n){switch(n.label){case 0:return[4,this.clone(Xp,"followed(types="+e+")")()];case 1:return[2,Sa(t=n.sent(),"Followed")?t.Followed.results:t]}})})},t.prototype.followedCount=function(e){return sa(this,void 0,void 0,function(){var t;return aa(this,function(n){switch(n.label){case 0:return[4,this.clone(Xp,"followedcount(types="+e+")")()];case 1:return[2,(t=n.sent()).FollowedCount||t]}})})},t.prototype.followers=function(){return sa(this,void 0,void 0,function(){var e;return aa(this,function(t){switch(t.label){case 0:return[4,this.clone(Xp,"followers")()];case 1:return[2,Sa(e=t.sent(),"Followers")?e.Followers.results:e]}})})},t.prototype.suggestions=function(){return sa(this,void 0,void 0,function(){var e;return aa(this,function(t){switch(t.label){case 0:return[4,this.clone(Xp,"suggestions")()];case 1:return[2,Sa(e=t.sent(),"Suggestions")?e.Suggestions.results:e]}})})},ia([Pu("msoc.followed")],t.prototype,"followed",null),ia([Pu("msoc.followedCount")],t.prototype,"followedCount",null),ia([Pu("msoc.followers")],t.prototype,"followers",null),ia([Pu("msoc.suggestions")],t.prototype,"suggestions",null),ia([ju("my")],t)}(Nu)),Xp=function(e,t){return Gp(e,t)};!function(e){e[e.User=0]="User",e[e.Document=1]="Document",e[e.Site=2]="Site",e[e.Tag=3]="Tag"}(Wp||(Wp={})),function(e){e[e.None=0]="None",e[e.User=1]="User",e[e.Document=2]="Document",e[e.Site=4]="Site",e[e.Tag=8]="Tag",e[e.ExcludeContentWithoutFeeds=268435456]="ExcludeContentWithoutFeeds",e[e.IncludeGroupsSites=536870912]="IncludeGroupsSites",e[e.WithinLast24Hours=1073741824]="WithinLast24Hours"}(jp||(jp={})),function(e){e[e.Ok=0]="Ok",e[e.AlreadyFollowing=1]="AlreadyFollowing",e[e.LimitReached=2]="LimitReached",e[e.InternalError=3]="InternalError"}(Hp||(Hp={})),function(e){e[e.OK=0]="OK",e[e.InvalidRequest=1]="InvalidRequest",e[e.AccessDenied=2]="AccessDenied",e[e.ItemNotFound=3]="ItemNotFound",e[e.InvalidOperation=4]="InvalidOperation",e[e.ItemNotModified=5]="ItemNotModified",e[e.InternalError=6]="InternalError",e[e.CacheReadError=7]="CacheReadError",e[e.CacheUpdateError=8]="CacheUpdateError",e[e.PersonalSiteNotFound=9]="PersonalSiteNotFound",e[e.FailedToCreatePersonalSite=10]="FailedToCreatePersonalSite",e[e.NotAuthorizedToCreatePersonalSite=11]="NotAuthorizedToCreatePersonalSite",e[e.CannotCreatePersonalSite=12]="CannotCreatePersonalSite",e[e.LimitReached=13]="LimitReached",e[e.AttachmentError=14]="AttachmentError",e[e.PartialData=15]="PartialData",e[e.FeatureDisabled=16]="FeatureDisabled",e[e.StorageQuotaExceeded=17]="StorageQuotaExceeded",e[e.DatabaseError=18]="DatabaseError"}(Kp||(Kp={})),Reflect.defineProperty(Qu.prototype,"social",{configurable:!0,enumerable:!0,get:function(){return this.childConfigHook(function(e){var t=e.options,n=e.baseUrl,r=e.runtime;return function(e){return new qp(e)}(n).configure(t).setRuntime(r)})}});var Qp=Ru(function(e){function t(t,n){var r="string"==typeof t?t:t.toUrl();return e.call(this,wu(r),"_api/SP.Utilities.Utility."+n)||this}return ra(t,e),t.prototype.excute=function(e){return Mu(this,_u(e))},t.prototype.sendEmail=function(e){var t,n={properties:ya(Iu("SP.Utilities.EmailProperties"),{Body:e.Body,From:e.From,Subject:e.Subject})};return e.To&&e.To.length>0&&(n.properties=ya(n.properties,{To:{results:e.To}})),e.CC&&e.CC.length>0&&(n.properties=ya(n.properties,{CC:{results:e.CC}})),e.BCC&&e.BCC.length>0&&(n.properties=ya(n.properties,{BCC:{results:e.BCC}})),e.AdditionalHeaders&&(n.properties=ya(n.properties,{AdditionalHeaders:(t=e.AdditionalHeaders,ya(Iu("Collection(SP.KeyValue)"),{results:Object.keys(t).map(function(e){return ya(Iu("SP.KeyValue"),{Key:e,Value:Reflect.get(t,e),ValueType:"Edm.String"})})}))})),Pu.configure(this.clone(Jp,"SendEmail",!0),"u.sendEmail").excute(n)},t.prototype.getCurrentUserEmailAddresses=function(){return Pu.configure(this.clone(Jp,"GetCurrentUserEmailAddresses",!0),"u.getCurrentUserEmailAddresses").excute({})},t.prototype.resolvePrincipal=function(e,t,n,r,o,i){void 0===i&&(i=!1);var s={addToUserInfoList:o,input:e,inputIsEmailOnly:r,matchUserInfoList:i,scopes:t,sources:n},a=this.clone(Jp,"ResolvePrincipalInCurrentContext",!0);return Pu.configure(a,"u.ResolvePrincipalInCurrentContext").excute(s)},t.prototype.searchPrincipals=function(e,t,n,r,o){var i={groupName:r,input:e,maxCount:o,scopes:t,sources:n},s=this.clone(Jp,"SearchPrincipalsUsingContextWeb",!0);return Pu.configure(s,"u.SearchPrincipalsUsingContextWeb").excute(i)},t.prototype.createEmailBodyForInvitation=function(e){var t={pageAddress:e},n=this.clone(Jp,"CreateEmailBodyForInvitation",!0);return Pu.configure(n,"u.CreateEmailBodyForInvitation").excute(t)},t.prototype.expandGroupsToPrincipals=function(e,t){void 0===t&&(t=30);var n={inputs:e,maxCount:t},r=this.clone(Jp,"ExpandGroupsToPrincipals",!0);return Pu.configure(r,"u.ExpandGroupsToPrincipals").excute(n)},t.prototype.createWikiPage=function(e){return sa(this,void 0,void 0,function(){var t,n;return aa(this,function(r){switch(r.label){case 0:return t=this.clone(Jp,"CreateWikiPageInContextWeb",!0),[4,Pu.configure(t,"u.CreateWikiPageInContextWeb").excute({parameters:e})];case 1:return[2,{data:n=r.sent(),file:Rl(Yu(n))}]}})})},t}(Fu)),Jp=function(e,t){return Qp(e,t)};Reflect.defineProperty(Qu.prototype,"utility",{configurable:!0,enumerable:!0,get:function(){return this.childConfigHook(function(e){var t=e.options,n=e.baseUrl,r=e.runtime;return Qp(n,"").configure(t).setRuntime(r)})}});var Zp=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.getById=function(e){return Pu.configure(Yp(this).concat("('"+e+"')"),"subs.getById")},t.prototype.add=function(e,t,n){return sa(this,void 0,void 0,function(){var r,o;return aa(this,function(i){switch(i.label){case 0:return r={expirationDateTime:t,notificationUrl:e,resource:this.toUrl()},n&&(r.clientState=n),[4,Mu(this,_u(r,Su({"Content-Type":"application/json"})))];case 1:return[2,{data:o=i.sent(),subscription:this.getById(o.id)}]}})})},ia([Pu("subs.add")],t.prototype,"add",null),ia([ju("subscriptions")],t)}(Lu)),Yp=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.update=function(e,t,n){return sa(this,void 0,void 0,function(){var r;return aa(this,function(o){switch(o.label){case 0:return r={},e&&(r.expirationDateTime=e),t&&(r.notificationUrl=t),n&&(r.clientState=n),[4,(i=_u(r,Su({"Content-Type":"application/json"})),ku("PATCH")(this,i))];case 1:return[2,{data:o.sent(),subscription:this}]}var i})})},t.prototype.delete=function(){return ku("DELETE")(this,void 0)},ia([Pu("sub.update")],t.prototype,"update",null),ia([Pu("sub.delete")],t.prototype,"delete",null),t}(Nu));Ha(yl,"subscriptions",Zp);var $p=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),Object.defineProperty(t.prototype,"groups",{get:function(){return Pu.configure(ed(this),"txts.groups")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sets",{get:function(){return Pu.configure(nd(this),"txts.sets")},enumerable:!1,configurable:!0}),ia([ju("_api/v2.1/termstore")],t)}(Nu)),ed=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.getById=function(e){return Pu.configure(td(this,e),"txtgs.getById")},ia([ju("groups")],t)}(Lu)),td=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),Object.defineProperty(t.prototype,"sets",{get:function(){return Pu.configure(nd(this,"sets"),"txtg.sets")},enumerable:!1,configurable:!0}),t}(Nu)),nd=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.getById=function(e){return Pu.configure(rd(this,e),"txts.getById")},ia([ju("sets")],t)}(Lu)),rd=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),Object.defineProperty(t.prototype,"terms",{get:function(){return id(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parentGroup",{get:function(){return Pu.configure(td(this,"parentGroup"),"txts.parentGroup")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return Pu.configure(od(this),"txts.children")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"relations",{get:function(){return Pu.configure(ad(this),"txts.relations")},enumerable:!1,configurable:!0}),t.prototype.getTermById=function(e){return Pu.configure(this.clone(sd,"terms/"+e),"txts.getTermById")},t.prototype.getAllChildrenAsOrderedTree=function(){return sa(this,void 0,void 0,function(){var e,t,n,r,o=this;return aa(this,function(i){switch(i.label){case 0:return[4,this.select("*","customSortOrder")()];case 1:return e=i.sent(),n=function(t,n,r){if(!ga(n)&&!ga(r))return t;var o=null;if(null===n&&r.length>0)o=la([],ua(r));else{var i=n.findIndex(function(t){return t.setId===e.id});i>=0&&(o=la([],ua(n[i].order)))}if(null!==o){var s=[];return o.forEach(function(e){var n=t.find(function(t){return e===t.id});n&&s.push(n)}),s.push.apply(s,la([],ua(t.filter(function(e){return o.indexOf(e.id)<0})))),s}return t},[4,(r=function(e,t){return sa(o,void 0,void 0,function(){var o,i,s,a;return aa(this,function(u){switch(u.label){case 0:return[4,e.children.select("*","customSortOrder")()];case 1:o=u.sent(),i=0,u.label=2;case 2:return i0?[4,r(this.getTermById(o[i].id),a.children)]:[3,4]):[3,6];case 3:u.sent(),a.children=n(a.children,s.customSortOrder),u.label=4;case 4:t.push(a),u.label=5;case 5:return i++,[3,2];case 6:return[2]}})})})(this,t=[])];case 2:return i.sent(),[2,n(t,null,e.customSortOrder)]}})})},t}(Nu)),od=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),ia([ju("children")],t)}(Lu)),id=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.getById=function(e){return sd(this,e)},ia([ju("terms")],t)}(Lu)),sd=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),Object.defineProperty(t.prototype,"children",{get:function(){return Pu.configure(od(this),"txt.children")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"relations",{get:function(){return Pu.configure(ad(this),"txt.relations")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"set",{get:function(){return Pu.configure(rd(this,"set"),"txt.set")},enumerable:!1,configurable:!0}),t}(Nu)),ad=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.getById=function(e){return Pu.configure(ud(this,e),"txrs.getById")},ia([ju("relations")],t)}(Lu)),ud=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),Object.defineProperty(t.prototype,"fromTerm",{get:function(){return Pu.configure(sd(this,"fromTerm"),"txr.fromTerm")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"toTerm",{get:function(){return Pu.configure(sd(this,"toTerm"),"txr.toTerm")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"set",{get:function(){return Pu.configure(rd(this,"set"),"txr.set")},enumerable:!1,configurable:!0}),t}(Nu));Reflect.defineProperty(Qu.prototype,"termStore",{configurable:!0,enumerable:!0,get:function(){return this.childConfigHook(function(e){var t=e.options,n=e.baseUrl,r=e.runtime;return $p(n).configure(t).setRuntime(r)})}}),Ha(yl,"userCustomActions",jc),Ha(pl,"userCustomActions",jc),Ha(ul,"userCustomActions",jc);var ld,cd=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.add=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n={}),sa(this,void 0,void 0,function(){var r,o;return aa(this,function(i){switch(i.label){case 0:return r=_u(Object.assign(Iu("SP.View"),{PersonalView:t,Title:e},n)),[4,Mu(this.clone(cd,null),r)];case 1:return[2,{data:o=i.sent(),view:this.getById(o.Id)}]}})})},t.prototype.getById=function(e){return pd(this).concat("('"+e+"')")},t.prototype.getByTitle=function(e){return pd(this,"getByTitle('"+e+"')")},ia([Pu("vs.add")],t.prototype,"add",null),ia([ju("views")],t)}(Lu)),pd=Ru(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.delete=Uu("vw"),t.update=t._update("SP.View",function(e){return{data:e,view:t}}),t}return ra(t,e),Object.defineProperty(t.prototype,"fields",{get:function(){return dd(this)},enumerable:!1,configurable:!0}),t.prototype.renderAsHtml=function(){return this.clone(pd,"renderashtml")()},t.prototype.setViewXml=function(e){return Mu(this.clone(pd,"SetViewXml"),_u({viewXml:e}))},ia([Pu("v.renderAsHtml")],t.prototype,"renderAsHtml",null),ia([Pu("v.setViewXml")],t.prototype,"setViewXml",null),t}(Nu)),dd=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.getSchemaXml=function(){return this.clone(dd,"schemaxml")()},t.prototype.add=function(e){return Mu(this.clone(dd,"addviewfield('"+e+"')"))},t.prototype.move=function(e,t){return Mu(this.clone(dd,"moveviewfieldto"),_u({field:e,index:t}))},t.prototype.removeAll=function(){return Mu(this.clone(dd,"removeallviewfields"))},t.prototype.remove=function(e){return Mu(this.clone(dd,"removeviewfield('"+e+"')"))},ia([Pu("vfs.getSchemaXml")],t.prototype,"getSchemaXml",null),ia([Pu("vfs.add")],t.prototype,"add",null),ia([Pu("vfs.move")],t.prototype,"move",null),ia([Pu("vfs.removeAll")],t.prototype,"removeAll",null),ia([Pu("vfs.remove")],t.prototype,"remove",null),ia([ju("viewfields")],t)}(Lu));!function(e){e[e.DefaultValue=0]="DefaultValue",e[e.Recursive=1]="Recursive",e[e.RecursiveAll=2]="RecursiveAll",e[e.FilesOnly=3]="FilesOnly"}(ld||(ld={})),Ha(yl,"views",cd),Ha(yl,"defaultView",pd,"DefaultView"),yl.prototype.getView=function(e){return pd(this,"getView('"+e+"')")};var hd,fd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),Object.defineProperty(t.prototype,"scope",{get:function(){return Pu.configure(Bu(this,"Scope"),"f.scope")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"webparts",{get:function(){return yd(this,"webparts")},enumerable:!1,configurable:!0}),t.prototype.export=function(e){return Mu(this.clone(gd,"ExportWebPart"),_u({webPartId:e}))},t.prototype.import=function(e){return Mu(this.clone(gd,"ImportWebPart"),_u({webPartXml:e}))},t}(Fu),md=function(e,t){return new fd(e,t)},gd=function(e,t){return md(e,t)},yd=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),t.prototype.getById=function(e){return vd(this,"getbyid('"+e+"')")},t.prototype.getByControlId=function(e){return vd(this,"getByControlId('"+e+"')")},t}(Lu)),vd=Ru(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ra(t,e),Object.defineProperty(t.prototype,"webpart",{get:function(){return Au(this,"webpart")},enumerable:!1,configurable:!0}),t.prototype.saveChanges=function(){return Mu(this.clone(vd,"SaveWebPartChanges"))},t.prototype.moveTo=function(e,t){return Mu(this.clone(vd,"MoveWebPartTo(zoneID='"+e+"', zoneIndex="+t+")"))},t.prototype.close=function(){return Mu(this.clone(vd,"CloseWebPart"))},t.prototype.open=function(){return Mu(this.clone(vd,"OpenWebPart"))},t.prototype.delete=function(){return Mu(this.clone(vd,"DeleteWebPart"))},t}(Nu));!function(e){e[e.User=0]="User",e[e.Shared=1]="Shared"}(hd||(hd={})),Ml.prototype.getLimitedWebPartManager=function(e){return void 0===e&&(e=hd.Shared),md(this,"getLimitedWebPartManager(scope="+e+")")};var bd=new Qu,_d=function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Sd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _d(t,e),t.prototype.onInit=function(){var t=this;return e.prototype.onInit.call(this).then(function(e){bd.setup({spfxContext:t.context})})},t.prototype.render=function(){o.render(r.createElement(al,{personaSize:this.properties.personaSize,numberOfFaces:this.properties.numberOfFaces,pageUrl:this.properties.pageUrl}),this.domElement)},Object.defineProperty(t.prototype,"dataVersion",{get:function(){return i.Version.parse("1.0")},enumerable:!0,configurable:!0}),t.prototype.getPropertyPaneConfiguration=function(){return{pages:[{header:{description:u.PropertyPaneDescription},groups:[{groupName:u.PropertyPaneBasicGroupName,groupFields:[Object(a.PropertyPaneSlider)("numberOfFaces",{label:u.PropertyPaneNbPersonasText,min:1,max:20}),Object(a.PropertyPaneDropdown)("personaSize",{label:u.PropertyPanePersonaSizeText,options:[{key:fs.size8,text:u.PropertyPaneIconsSizeTiny},{key:fs.size24,text:u.PropertyPaneIconsSizeEES},{key:fs.size32,text:u.PropertyPaneIconsSizeES},{key:fs.size40,text:u.PropertyPaneIconsSizeS},{key:fs.size48,text:u.PropertyPaneIconsSizeR},{key:fs.size72,text:u.PropertyPaneIconsSizeL},{key:fs.size100,text:u.PropertyPaneIconsSizeEL}],selectedKey:this.properties.personaSize}),Object(a.PropertyPaneTextField)("pageUrl",{label:u.PropertyPanePageUrlText})]}]}]}},t}(s.BaseClientSideWebPart);t.default=Sd},"l9+2":function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},"lC+Z":function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return r});var r=void 0===e?window:e}).call(this,n("l9+2"))}})});
\ No newline at end of file
diff --git a/samples/react-pagecontributors/release/assets/pageContributorsStrings_en-us_6ae41e2edb727df21538267edcd92249.js b/samples/react-pagecontributors/release/assets/pageContributorsStrings_en-us_6ae41e2edb727df21538267edcd92249.js
new file mode 100644
index 000000000..2661f5498
--- /dev/null
+++ b/samples/react-pagecontributors/release/assets/pageContributorsStrings_en-us_6ae41e2edb727df21538267edcd92249.js
@@ -0,0 +1,17 @@
+define([], function() {
+ return {
+ "PropertyPaneDescription": "Displays page contributors in reverse chronological order",
+ "PropertyPaneNbPersonasText": "Maximum number of persons to display",
+ "PropertyPaneBasicGroupName": "General",
+ "PropertyPanePersonaSizeText": "Icons size",
+ "PropertyPaneIconsSizeTiny": "tiny",
+ "PropertyPaneIconsSizeEES": "extraExtraSmall",
+ "PropertyPaneIconsSizeES": "extraSmall",
+ "PropertyPaneIconsSizeS": "small",
+ "PropertyPaneIconsSizeR": "regular",
+ "PropertyPaneIconsSizeL": "large",
+ "PropertyPaneIconsSizeEL": "extraLarge",
+ "PropertyPanePageUrlText": "Page server relative URL (leave empty for current page)",
+ "Loading": "Loading..."
+ }
+});
\ No newline at end of file
diff --git a/samples/react-pagecontributors/release/component-dependency-audit/react-pagecontributors.json b/samples/react-pagecontributors/release/component-dependency-audit/react-pagecontributors.json
new file mode 100644
index 000000000..a228c7c48
--- /dev/null
+++ b/samples/react-pagecontributors/release/component-dependency-audit/react-pagecontributors.json
@@ -0,0 +1,104 @@
+{
+ "bundles": {
+ "page-contributors-web-part": {
+ "dependencies": [
+ {
+ "componentId": "f9e737b7-f0df-4597-ba8c-3060f82380db",
+ "componentName": "@microsoft/sp-property-pane",
+ "componentVersion": "1.12.1",
+ "isDirectDependency": true
+ },
+ {
+ "componentId": "1c6c9123-7aac-41f3-a376-3caea41ed83f",
+ "componentName": "@microsoft/sp-loader",
+ "componentVersion": "1.12.1",
+ "isDirectDependency": false
+ },
+ {
+ "componentId": "8217e442-8ed3-41fd-957d-b112e841286a",
+ "componentName": "@ms/sp-telemetry",
+ "componentVersion": "0.19.2",
+ "isDirectDependency": false
+ },
+ {
+ "componentId": "e40f8203-b39d-425a-a957-714852e33b79",
+ "componentName": "@microsoft/sp-dynamic-data",
+ "componentVersion": "1.12.1",
+ "isDirectDependency": false
+ },
+ {
+ "componentId": "73e1dc6c-8441-42cc-ad47-4bd3659f8a3a",
+ "componentName": "@microsoft/sp-lodash-subset",
+ "componentVersion": "1.12.1",
+ "isDirectDependency": false
+ },
+ {
+ "componentId": "7263c7d0-1d6a-45ec-8d85-d4d1d234171b",
+ "componentName": "@microsoft/sp-core-library",
+ "componentVersion": "1.12.1",
+ "isDirectDependency": false
+ },
+ {
+ "componentId": "01c4df03-e775-48cb-aa14-171ee5199a15",
+ "componentName": "tslib",
+ "componentVersion": "1.10.0",
+ "isDirectDependency": false
+ },
+ {
+ "componentId": "2e09fb9b-13bb-48f2-859f-97d6fff71176",
+ "componentName": "@ms/odsp-core-bundle",
+ "componentVersion": "1.1.13",
+ "isDirectDependency": false
+ },
+ {
+ "componentId": "78359e4b-07c2-43c6-8d0b-d060b4d577e8",
+ "componentName": "@microsoft/sp-diagnostics",
+ "componentVersion": "1.12.1",
+ "isDirectDependency": false
+ },
+ {
+ "componentId": "1c4541f7-5c31-41aa-9fa8-fbc9dc14c0a8",
+ "componentName": "@microsoft/sp-page-context",
+ "componentVersion": "1.12.1",
+ "isDirectDependency": false
+ },
+ {
+ "componentId": "229b8d08-79f3-438b-8c21-4613fc877abd",
+ "componentName": "@microsoft/load-themed-styles",
+ "componentVersion": "0.1.2",
+ "isDirectDependency": false
+ },
+ {
+ "componentId": "c07208f0-ea3b-4c1a-9965-ac1b825211a6",
+ "componentName": "@microsoft/sp-http",
+ "componentVersion": "1.12.1",
+ "isDirectDependency": false
+ },
+ {
+ "componentId": "0d910c1c-13b9-4e1c-9aa4-b008c5e42d7d",
+ "componentName": "react",
+ "componentVersion": "16.9.0",
+ "isDirectDependency": false
+ },
+ {
+ "componentId": "aa0a46ec-1505-43cd-a44a-93f3a5aa460a",
+ "componentName": "react-dom",
+ "componentVersion": "16.9.0",
+ "isDirectDependency": false
+ },
+ {
+ "componentId": "974a7777-0990-4136-8fa6-95d80114c2e0",
+ "componentName": "@microsoft/sp-webpart-base",
+ "componentVersion": "1.12.1",
+ "isDirectDependency": true
+ },
+ {
+ "componentId": "467dc675-7cc5-4709-8aac-78e3b71bd2f6",
+ "componentName": "@microsoft/sp-component-base",
+ "componentVersion": "1.12.1",
+ "isDirectDependency": false
+ }
+ ]
+ }
+ }
+}
diff --git a/samples/react-pagecontributors/release/manifests/dfb5229a-c1c3-4e98-870b-c40dd6e4ec4b.manifest.json b/samples/react-pagecontributors/release/manifests/dfb5229a-c1c3-4e98-870b-c40dd6e4ec4b.manifest.json
new file mode 100644
index 000000000..3f46a5c7c
--- /dev/null
+++ b/samples/react-pagecontributors/release/manifests/dfb5229a-c1c3-4e98-870b-c40dd6e4ec4b.manifest.json
@@ -0,0 +1,71 @@
+{
+ "id": "dfb5229a-c1c3-4e98-870b-c40dd6e4ec4b",
+ "alias": "PageContributorsWebPart",
+ "componentType": "WebPart",
+ "version": "1.0.0",
+ "manifestVersion": 2,
+ "requiresCustomScript": false,
+ "supportedHosts": [
+ "SharePointWebPart"
+ ],
+ "preconfiguredEntries": [
+ {
+ "groupId": "dfb5229a-c1c3-4e98-870b-c40dd6e4ec4b",
+ "group": {
+ "default": "Other"
+ },
+ "title": {
+ "default": "Page Contributors"
+ },
+ "description": {
+ "default": "Displays page contributors in reverse chronological order"
+ },
+ "officeFabricIconFontName": "People",
+ "properties": {
+ "numberOfFaces": 5,
+ "personaSize": 3
+ }
+ }
+ ],
+ "loaderConfig": {
+ "internalModuleBaseUrls": [
+ ""
+ ],
+ "entryModuleId": "page-contributors-web-part",
+ "scriptResources": {
+ "page-contributors-web-part": {
+ "type": "path",
+ "path": "page-contributors-web-part_4d2033f670297cd13b0c.js"
+ },
+ "@microsoft/sp-property-pane": {
+ "type": "component",
+ "id": "f9e737b7-f0df-4597-ba8c-3060f82380db",
+ "version": "1.12.1"
+ },
+ "@microsoft/sp-core-library": {
+ "type": "component",
+ "id": "7263c7d0-1d6a-45ec-8d85-d4d1d234171b",
+ "version": "1.12.1"
+ },
+ "pageContributorsStrings": {
+ "type": "path",
+ "path": "pageContributorsStrings_en-us_6ae41e2edb727df21538267edcd92249.js"
+ },
+ "@microsoft/sp-webpart-base": {
+ "type": "component",
+ "id": "974a7777-0990-4136-8fa6-95d80114c2e0",
+ "version": "1.12.1"
+ },
+ "react": {
+ "type": "component",
+ "id": "0d910c1c-13b9-4e1c-9aa4-b008c5e42d7d",
+ "version": "16.9.0"
+ },
+ "react-dom": {
+ "type": "component",
+ "id": "aa0a46ec-1505-43cd-a44a-93f3a5aa460a",
+ "version": "16.9.0"
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/samples/react-pagecontributors/release/release/manifests/dfb5229a-c1c3-4e98-870b-c40dd6e4ec4b.manifest.json b/samples/react-pagecontributors/release/release/manifests/dfb5229a-c1c3-4e98-870b-c40dd6e4ec4b.manifest.json
new file mode 100644
index 000000000..3f46a5c7c
--- /dev/null
+++ b/samples/react-pagecontributors/release/release/manifests/dfb5229a-c1c3-4e98-870b-c40dd6e4ec4b.manifest.json
@@ -0,0 +1,71 @@
+{
+ "id": "dfb5229a-c1c3-4e98-870b-c40dd6e4ec4b",
+ "alias": "PageContributorsWebPart",
+ "componentType": "WebPart",
+ "version": "1.0.0",
+ "manifestVersion": 2,
+ "requiresCustomScript": false,
+ "supportedHosts": [
+ "SharePointWebPart"
+ ],
+ "preconfiguredEntries": [
+ {
+ "groupId": "dfb5229a-c1c3-4e98-870b-c40dd6e4ec4b",
+ "group": {
+ "default": "Other"
+ },
+ "title": {
+ "default": "Page Contributors"
+ },
+ "description": {
+ "default": "Displays page contributors in reverse chronological order"
+ },
+ "officeFabricIconFontName": "People",
+ "properties": {
+ "numberOfFaces": 5,
+ "personaSize": 3
+ }
+ }
+ ],
+ "loaderConfig": {
+ "internalModuleBaseUrls": [
+ ""
+ ],
+ "entryModuleId": "page-contributors-web-part",
+ "scriptResources": {
+ "page-contributors-web-part": {
+ "type": "path",
+ "path": "page-contributors-web-part_4d2033f670297cd13b0c.js"
+ },
+ "@microsoft/sp-property-pane": {
+ "type": "component",
+ "id": "f9e737b7-f0df-4597-ba8c-3060f82380db",
+ "version": "1.12.1"
+ },
+ "@microsoft/sp-core-library": {
+ "type": "component",
+ "id": "7263c7d0-1d6a-45ec-8d85-d4d1d234171b",
+ "version": "1.12.1"
+ },
+ "pageContributorsStrings": {
+ "type": "path",
+ "path": "pageContributorsStrings_en-us_6ae41e2edb727df21538267edcd92249.js"
+ },
+ "@microsoft/sp-webpart-base": {
+ "type": "component",
+ "id": "974a7777-0990-4136-8fa6-95d80114c2e0",
+ "version": "1.12.1"
+ },
+ "react": {
+ "type": "component",
+ "id": "0d910c1c-13b9-4e1c-9aa4-b008c5e42d7d",
+ "version": "16.9.0"
+ },
+ "react-dom": {
+ "type": "component",
+ "id": "aa0a46ec-1505-43cd-a44a-93f3a5aa460a",
+ "version": "16.9.0"
+ }
+ }
+ }
+}
\ No newline at end of file