@microsoft/teams-js 2.0.0-beta.3-dev.16 → 2.0.0-beta.3-dev.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- !function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("microsoftTeams",[],n):"object"==typeof exports?exports.microsoftTeams=n():e.microsoftTeams=n()}(self,(function(){return(()=>{var e={22:(e,n,t)=>{var o=t(481),i=t(426),r=i;r.v1=o,r.v4=i,e.exports=r},725:e=>{for(var n=[],t=0;t<256;++t)n[t]=(t+256).toString(16).substr(1);e.exports=function(e,t){var o=t||0,i=n;return[i[e[o++]],i[e[o++]],i[e[o++]],i[e[o++]],"-",i[e[o++]],i[e[o++]],"-",i[e[o++]],i[e[o++]],"-",i[e[o++]],i[e[o++]],"-",i[e[o++]],i[e[o++]],i[e[o++]],i[e[o++]],i[e[o++]],i[e[o++]]].join("")}},157:e=>{var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var t=new Uint8Array(16);e.exports=function(){return n(t),t}}else{var o=new Array(16);e.exports=function(){for(var e,n=0;n<16;n++)0==(3&n)&&(e=4294967296*Math.random()),o[n]=e>>>((3&n)<<3)&255;return o}}},481:(e,n,t)=>{var o,i,r=t(157),a=t(725),s=0,u=0;e.exports=function(e,n,t){var c=n&&t||0,l=n||[],d=(e=e||{}).node||o,f=void 0!==e.clockseq?e.clockseq:i;if(null==d||null==f){var p=r();null==d&&(d=o=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==f&&(f=i=16383&(p[6]<<8|p[7]))}var m=void 0!==e.msecs?e.msecs:(new Date).getTime(),g=void 0!==e.nsecs?e.nsecs:u+1,h=m-s+(g-u)/1e4;if(h<0&&void 0===e.clockseq&&(f=f+1&16383),(h<0||m>s)&&void 0===e.nsecs&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=m,u=g,i=f;var v=(1e4*(268435455&(m+=122192928e5))+g)%4294967296;l[c++]=v>>>24&255,l[c++]=v>>>16&255,l[c++]=v>>>8&255,l[c++]=255&v;var w=m/4294967296*1e4&268435455;l[c++]=w>>>8&255,l[c++]=255&w,l[c++]=w>>>24&15|16,l[c++]=w>>>16&255,l[c++]=f>>>8|128,l[c++]=255&f;for(var C=0;C<6;++C)l[c+C]=d[C];return n||a(l)}},426:(e,n,t)=>{var o=t(157),i=t(725);e.exports=function(e,n,t){var r=n&&t||0;"string"==typeof e&&(n="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||o)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,n)for(var s=0;s<16;++s)n[r+s]=a[s];return n||i(a)}}},n={};function t(o){var i=n[o];if(void 0!==i)return i.exports;var r=n[o]={exports:{}};return e[o](r,r.exports,t),r.exports}(()=>{t.d=(e,n)=>{for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})}})(),(()=>{t.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n)})(),(()=>{t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var o={};return(()=>{"use strict";t.r(o),t.d(o,{ChannelType:()=>V,ChildAppWindow:()=>je,DialogDimension:()=>k,ErrorCode:()=>me,FileOpenPreference:()=>pe,FrameContexts:()=>A,HostClientType:()=>O,HostName:()=>R,NotificationTypes:()=>ce,ParentAppWindow:()=>qe,TaskModuleDimension:()=>Z,TeamType:()=>M,UserSettingTypes:()=>de,UserTeamRole:()=>N,ViewerActionTypes:()=>le,app:()=>j,appEntity:()=>Sn,appInitialization:()=>pn,appInstallDialog:()=>ge,authentication:()=>z,bot:()=>ue,calendar:()=>sn,call:()=>fn,chat:()=>fe,core:()=>q,dialog:()=>Ge,enablePrintCapability:()=>In,executeDeepLink:()=>Bn,files:()=>hn,getContext:()=>On,getMruTabInstances:()=>_n,getTabInstances:()=>Hn,initialize:()=>bn,initializeWithFrameContext:()=>zn,legacy:()=>vn,location:()=>on,logs:()=>I,mail:()=>un,media:()=>tn,meeting:()=>rn,meetingRoom:()=>wn,menus:()=>E,monetization:()=>an,navigateBack:()=>Zn,navigateCrossDomain:()=>Kn,navigateToTab:()=>qn,notifications:()=>Cn,pages:()=>K,people:()=>cn,print:()=>En,registerAppButtonClickHandler:()=>Mn,registerAppButtonHoverEnterHandler:()=>Nn,registerAppButtonHoverLeaveHandler:()=>kn,registerBackButtonHandler:()=>Fn,registerBeforeUnloadHandler:()=>Ln,registerCustomHandler:()=>x,registerEnterSettingsHandler:()=>Un,registerFocusEnterHandler:()=>Wn,registerFullScreenHandler:()=>An,registerOnLoadHandler:()=>Dn,registerOnThemeChangeHandler:()=>Rn,registerUserSettingsChangeHandler:()=>B,remoteCamera:()=>yn,returnFocus:()=>jn,sendCustomEvent:()=>_,sendCustomMessage:()=>H,setFrameContext:()=>Vn,settings:()=>mn,shareDeepLink:()=>xn,sharing:()=>dn,tasks:()=>gn,teams:()=>Tn,teamsCore:()=>G,uploadCustomApp:()=>U,video:()=>ln});var e="2.0.0-beta.3-dev.16",n="2.0.1",i="1.9.0",r="1.8.0",a=["teams.microsoft.com","teams.microsoft.us","gov.teams.microsoft.us","dod.teams.microsoft.us","int.teams.microsoft.com","teams.live.com","devspaces.skype.com","ssauth.skype.com","local.teams.live.com","local.teams.live.com:8080","local.teams.office.com","local.teams.office.com:8080","msft.spoppe.com","*.sharepoint.com","*.sharepoint-df.com","*.sharepointonline.com","outlook.office.com","outlook-sdf.office.com","*.teams.microsoft.com","www.office.com","word.office.com","excel.office.com","powerpoint.office.com","www.officeppe.com","*.www.office.com"],s=/^https:\/\//,u=function(){function e(){}return e.initializeCalled=!1,e.initializeCompleted=!1,e.additionalValidOrigins=[],e.isFramelessWindow=!1,e.printCapabilityEnabled=!1,e}(),c=t(22);function l(e,n){if("*."===e.substring(0,2)){var t=e.substring(1);if(n.length>t.length&&n.split(".").length===t.split(".").length&&n.substring(n.length-t.length)===t)return!0}else if(e===n)return!0;return!1}function d(e){if("https:"!==e.protocol)return!1;var n=e.host;if(a.some((function(e){return l(e,n)})))return!0;for(var t=0,o=u.additionalValidOrigins;t<o.length;t++){var i=o[t];if(l("https://"===i.substring(0,8)?i.substring(8):i,n))return!0}return!1}function f(e){return function(n,t){if(!n)throw new Error(e||t)}}function p(e,n){if("string"!=typeof e||"string"!=typeof n)return NaN;var t=e.split("."),o=n.split(".");function i(e){return/^\d+$/.test(e)}if(!t.every(i)||!o.every(i))return NaN;for(;t.length<o.length;)t.push("0");for(;o.length<t.length;)o.push("0");for(var r=0;r<t.length;++r)if(Number(t[r])!=Number(o[r]))return Number(t[r])>Number(o[r])?1:-1;return 0}function m(){return c.v4()}function g(e){return Object.keys(e).forEach((function(n){"object"==typeof e[n]&&g(e[n])})),Object.freeze(e)}function h(e,n){for(var t=[],o=2;o<arguments.length;o++)t[o-2]=arguments[o];var i=e.apply(void 0,t);return i.then((function(e){n&&n(void 0,e)})).catch((function(e){n&&n(e)})),i}function v(e,n){for(var t=[],o=2;o<arguments.length;o++)t[o-2]=arguments[o];var i=e.apply(void 0,t);return i.then((function(){n&&n(void 0,!0)})).catch((function(e){n&&n(e,!1)})),i}function w(e,n){for(var t=[],o=2;o<arguments.length;o++)t[o-2]=arguments[o];var i=e.apply(void 0,t);return i.then((function(){n&&n(null)})).catch((function(e){n&&n(e)})),i}function C(e,n){for(var t=[],o=2;o<arguments.length;o++)t[o-2]=arguments[o];var i=e.apply(void 0,t);return i.then((function(e){n&&n(null,e)})).catch((function(e){n&&n(e,null)})),i}function y(e,n,t){return new Promise((function(o,i){var r=setTimeout(i,n,t);e().then((function(e){clearTimeout(r),o(e)})).catch((function(e){clearTimeout(r),i(e)}))}))}function S(e){var n=new URL("https://teams.microsoft.com/l/entity/"+encodeURIComponent(e.appId)+"/"+encodeURIComponent(e.pageId));return e.webUrl&&n.searchParams.append("webUrl",e.webUrl),(e.channelId||e.subPageId)&&n.searchParams.append("context",JSON.stringify({channelId:e.channelId,subEntityId:e.subPageId})),n.toString()}function T(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!u.initializeCalled)throw new Error("The library has not yet been initialized");if(u.frameContext&&e&&e.length>0){for(var t=!1,o=0;o<e.length;o++)if(e[o]===u.frameContext){t=!0;break}if(!t)throw new Error("This call is only allowed in following contexts: "+JSON.stringify(e)+'. Current context: "'+u.frameContext+'".')}}function P(e){void 0===e&&(e=n);var t=p(u.clientSupportedSDKVersion,e);return!isNaN(t)&&t>=0}function b(e){var n=u.additionalValidOrigins.concat(e.filter((function(e){return"string"==typeof e&&s.test(e)}))),t={};n=n.filter((function(e){return!t[e]&&(t[e]=!0,!0)})),u.additionalValidOrigins=n}var I,E,O,R,A,M,N,k,F={apiVersion:1,supports:{appInstallDialog:void 0,bot:void 0,calendar:void 0,call:void 0,chat:void 0,dialog:void 0,location:void 0,logs:void 0,mail:void 0,media:void 0,meeting:void 0,meetingRoom:void 0,menus:void 0,monetization:void 0,notifications:void 0,pages:{appButton:void 0,tabs:void 0,config:void 0,backStack:void 0,fullTrust:void 0},people:void 0,remoteCamera:void 0,sharing:void 0,teams:{fullTrust:void 0},teamsCore:void 0,video:void 0}},D={apiVersion:1,isLegacyTeams:!0,supports:{appInstallDialog:{},appEntity:{},bot:{},calendar:{},call:{},chat:{},dialog:{},files:{},location:{},logs:{},mail:{},media:{},meeting:{},meetingRoom:{},menus:{},monetization:{},notifications:{},pages:{appButton:{},tabs:{},config:{},backStack:{},fullTrust:{}},people:{},remoteCamera:{},sharing:{},teams:{fullTrust:{}},teamsCore:{},video:{}}};function L(e){F=g(e)}function W(){E.initialize()}function U(e,n){T(),Oe("uploadCustomApp",[e],n||f())}function H(e,n,t){T(),Oe(e,n,t)}function _(e,n){if(T(),!ve.childWindow)throw new Error("The child window has not yet been initialized or is not present");xe(e,n)}function x(e,n){var t=this;T(),ee(e,(function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return n.apply(t,e)}))}function B(e,n){T(),ee("userSettingsChange",n,!0,[e])}!function(e){e.registerGetLogHandler=function(e){T(),e?ee("log.request",(function(){Oe("log.receive",[e()])})):ne("log.request")},e.isSupported=function(){return!!F.supports.logs}}(I||(I={})),function(e){var n,t,o,i=function(){return function(){this.enabled=!0,this.selected=!1}}();function r(e){o&&o(e)||(T(),Oe("viewConfigItemPress",[e]))}function a(e){n&&n(e)||(T(),Oe("handleNavBarMenuItemPress",[e]))}function s(e){t&&t(e)||(T(),Oe("handleActionMenuItemPress",[e]))}e.MenuItem=i,function(e){e.dropDown="dropDown",e.popOver="popOver"}(e.MenuListType||(e.MenuListType={})),e.initialize=function(){ee("navBarMenuItemPress",a,!1),ee("actionMenuItemPress",s,!1),ee("setModuleView",r,!1)},e.setUpViews=function(e,n){T(),o=n,Oe("setUpViews",[e])},e.setNavBarMenu=function(e,t){T(),n=t,Oe("setNavBarMenu",[e])},e.showActionMenu=function(e,n){T(),t=n,Oe("showActionMenu",[e])},e.isSupported=function(){return!!F.supports.menus}}(E||(E={})),function(e){e.desktop="desktop",e.web="web",e.android="android",e.ios="ios",e.rigel="rigel",e.surfaceHub="surfaceHub",e.teamsRoomsWindows="teamsRoomsWindows",e.teamsRoomsAndroid="teamsRoomsAndroid",e.teamsPhones="teamsPhones",e.teamsDisplays="teamsDisplays"}(O||(O={})),function(e){e.office="Office",e.outlook="Outlook",e.orange="Orange",e.teams="Teams"}(R||(R={})),function(e){e.settings="settings",e.content="content",e.authentication="authentication",e.remove="remove",e.task="task",e.sidePanel="sidePanel",e.stage="stage",e.meetingStage="meetingStage"}(A||(A={})),function(e){e[e.Standard=0]="Standard",e[e.Edu=1]="Edu",e[e.Class=2]="Class",e[e.Plc=3]="Plc",e[e.Staff=4]="Staff"}(M||(M={})),function(e){e[e.Admin=0]="Admin",e[e.User=1]="User",e[e.Guest=2]="Guest"}(N||(N={})),function(e){e.Large="large",e.Medium="medium",e.Small="small"}(k||(k={}));var V,z,G,j,q,K,Z=k;function J(e){return{app:{locale:e.locale,sessionId:e.appSessionId?e.appSessionId:"",theme:e.theme?e.theme:"default",iconPositionVertical:e.appIconPosition,osLocaleInfo:e.osLocaleInfo,parentMessageId:e.parentMessageId,userClickTime:e.userClickTime,userFileOpenPreference:e.userFileOpenPreference,host:{name:e.hostName?e.hostName:R.teams,clientType:e.hostClientType?e.hostClientType:O.web,sessionId:e.sessionId?e.sessionId:"",ringId:e.ringId},appLaunchId:e.appLaunchId},page:{id:e.entityId,frameContext:e.frameContext?e.frameContext:u.frameContext,subPageId:e.subEntityId,isFullScreen:e.isFullScreen,isMultiWindow:e.isMultiWindow,sourceOrigin:e.sourceOrigin},user:{id:e.userObjectId,displayName:e.userDisplayName,isCallingAllowed:e.isCallingAllowed,isPSTNCallingAllowed:e.isPSTNCallingAllowed,licenseType:e.userLicenseType,loginHint:e.loginHint,userPrincipalName:e.userPrincipalName,tenant:e.tid?{id:e.tid,teamsSku:e.tenantSKU}:void 0},channel:e.channelId?{id:e.channelId,displayName:e.channelName,relativeUrl:e.channelRelativeUrl,membershipType:e.channelType,defaultOneNoteSectionId:e.defaultOneNoteSectionId,ownerGroupId:e.hostTeamGroupId,ownerTenantId:e.hostTeamTenantId}:void 0,chat:e.chatId?{id:e.chatId}:void 0,meeting:e.meetingId?{id:e.meetingId}:void 0,sharepoint:e.sharepoint,team:e.teamId?{internalId:e.teamId,displayName:e.teamName,type:e.teamType,groupId:e.groupId,templateId:e.teamTemplateId,isArchived:e.isTeamArchived,userRole:e.userTeamRole}:void 0,sharePointSite:e.teamSiteUrl||e.teamSiteDomain||e.teamSitePath?{url:e.teamSiteUrl,domain:e.teamSiteDomain,path:e.teamSitePath,id:e.teamSiteId}:void 0}}!function(e){e.Regular="Regular",e.Private="Private",e.Shared="Shared"}(V||(V={})),function(e){var n,t,o;function i(e){return new Promise((function(t,o){if(u.hostClientType===O.desktop||u.hostClientType===O.android||u.hostClientType===O.ios||u.hostClientType===O.rigel||u.hostClientType===O.teamsRoomsWindows||u.hostClientType===O.teamsRoomsAndroid||u.hostClientType===O.teamsPhones||u.hostClientType===O.teamsDisplays){var i=document.createElement("a");i.href=e.url,t(Ie("authentication.authenticate",[i.href,e.width,e.height]).then((function(e){var n=e[0],t=e[1];if(n)return t;throw new Error(t)})))}else n={success:t,fail:o},c(e)}))}function r(e){return new Promise((function(n){n(Ie("authentication.getAuthToken",[e.resources,e.claims,e.silent]))})).then((function(e){var n=e[0],t=e[1];if(n)return t;throw new Error(t)}))}function a(){return new Promise((function(e){e(Ie("authentication.getUser"))})).then((function(e){var n=e[0],t=e[1];if(n)return t;throw new Error(t)}))}function s(){l();try{ve.childWindow&&ve.childWindow.close()}finally{ve.childWindow=null,ve.childOrigin=null}}function c(e){s();var n=e.width||600,t=e.height||400;n=Math.min(n,ve.currentWindow.outerWidth-400),t=Math.min(t,ve.currentWindow.outerHeight-200);var o=document.createElement("a");o.href=e.url;var i=void 0!==ve.currentWindow.screenLeft?ve.currentWindow.screenLeft:ve.currentWindow.screenX,r=void 0!==ve.currentWindow.screenTop?ve.currentWindow.screenTop:ve.currentWindow.screenY;i+=ve.currentWindow.outerWidth/2-n/2,r+=ve.currentWindow.outerHeight/2-t/2,ve.childWindow=ve.currentWindow.open(o.href,"_blank","toolbar=no, location=yes, status=no, menubar=no, scrollbars=yes, top="+r+", left="+i+", width="+n+", height="+t),ve.childWindow?d():p("FailedToOpenWindow")}function l(){t&&(clearInterval(t),t=0),ne("initialize"),ne("navigateCrossDomain")}function d(){l(),t=ve.currentWindow.setInterval((function(){if(!ve.childWindow||ve.childWindow.closed)p("CancelledByUser");else{var e=ve.childOrigin;try{ve.childOrigin="*",xe("ping")}finally{ve.childOrigin=e}}}),100),ee("initialize",(function(){return[A.authentication,u.hostClientType]})),ee("navigateCrossDomain",(function(){return!1}))}function f(e){try{n&&n.success(e)}finally{n=null,s()}}function p(e){try{n&&n.fail(new Error(e))}finally{n=null,s()}}function m(e,n,t){if(e){var o=document.createElement("a");o.href=decodeURIComponent(e),o.host&&o.host!==window.location.host&&"outlook.office.com"===o.host&&o.search.indexOf("client_type=Win32_Outlook")>-1&&(n&&"result"===n&&(t&&(o.href=g(o.href,"result",t)),ve.currentWindow.location.assign(g(o.href,"authSuccess",""))),n&&"reason"===n&&(t&&(o.href=g(o.href,"reason",t)),ve.currentWindow.location.assign(g(o.href,"authFailure",""))))}}function g(e,n,t){var o=e.indexOf("#"),i=-1===o?"#":e.substr(o);return i=i+"&"+n+(""!==t?"="+t:""),(e=-1===o?e:e.substr(0,o))+i}e.initialize=function(){ee("authentication.authenticate.success",f,!1),ee("authentication.authenticate.failure",p,!1)},e.registerAuthenticationHandlers=function(e){o=e},e.authenticate=function(e){var n=void 0!==e,t=n?e:o;if(!t)throw new Error("No parameters are provided for authentication");return T(A.content,A.sidePanel,A.settings,A.remove,A.task,A.stage,A.meetingStage),i(t).then((function(e){try{return t&&t.successCallback?(t.successCallback(e),""):e}finally{n||(o=null)}})).catch((function(e){try{if(t&&t.failureCallback)return t.failureCallback(e.message),"";throw e}finally{n||(o=null)}}))},e.getAuthToken=function(e){return T(),r(e).then((function(n){return e&&e.successCallback?(e.successCallback(n),""):n})).catch((function(n){if(e&&e.failureCallback)return e.failureCallback(n.message),"";throw n}))},e.getUser=function(e){return T(),a().then((function(n){return e&&e.successCallback?(e.successCallback(n),null):n})).catch((function(n){if(e&&e.failureCallback)return e.failureCallback(n.message),null;throw n}))},e.notifySuccess=function(e,n){m(n,"result",e),T(A.authentication),Oe("authentication.authenticate.success",[e]),He(ve.parentWindow,(function(){return setTimeout((function(){return ve.currentWindow.close()}),200)}))},e.notifyFailure=function(e,n){m(n,"reason",e),T(A.authentication),Oe("authentication.authenticate.failure",[e]),He(ve.parentWindow,(function(){return setTimeout((function(){return ve.currentWindow.close()}),200)}))}}(z||(z={})),function(e){function n(){window.print()}e.enablePrintCapability=function(){u.printCapabilityEnabled||(u.printCapabilityEnabled=!0,T(),document.addEventListener("keydown",(function(e){(e.ctrlKey||e.metaKey)&&80===e.keyCode&&(n(),e.cancelBubble=!0,e.preventDefault(),e.stopImmediatePropagation())})))},e.print=n,e.registerOnLoadHandler=function(e){T(),ie(e)},e.registerBeforeUnloadHandler=function(e){T(),ae(e)},e.registerFocusEnterHandler=function(e){T(),ee("focusEnter",e)},e.isSupported=function(){return!!F.supports.teamsCore}}(G||(G={})),function(t){t.Messages={AppLoaded:"appInitialization.appLoaded",Success:"appInitialization.success",Failure:"appInitialization.failure",ExpectedFailure:"appInitialization.expectedFailure"},function(e){e.AuthFailed="AuthFailed",e.Timeout="Timeout",e.Other="Other"}(t.FailedReason||(t.FailedReason={})),function(e){e.PermissionError="PermissionError",e.NotFound="NotFound",e.Throttling="Throttling",e.Offline="Offline",e.Other="Other"}(t.ExpectedFailureReason||(t.ExpectedFailureReason={})),t.isInitialized=function(){return u.initializeCalled},t.getFrameContext=function(){return u.frameContext};function o(e){return new Promise((function(t){u.initializeCalled||(u.initializeCalled=!0,Y(),u.initializePromise=Ce(e).then((function(e){var t=e.context,o=e.clientType,i=e.runtimeConfig,r=e.clientSupportedSDKVersion,a=void 0===r?n:r;u.frameContext=t,u.hostClientType=o,u.clientSupportedSDKVersion=a;try{var s=JSON.parse(i);i&&L(s)}catch(e){if(!(e instanceof SyntaxError))throw e;try{isNaN(p(i,n))||(u.clientSupportedSDKVersion=i);s=JSON.parse(a);a&&L(s)}catch(e){if(!(e instanceof SyntaxError))throw e;L(D)}}u.initializeCompleted=!0})),z.initialize(),K.config.initialize(),W()),Array.isArray(e)&&b(e),t(u.initializePromise)}))}function i(e){T(),te(e)}t.initialize=function(e){return y((function(){return o(e)}),5e3,new Error("SDK initialization timed out."))},t._initialize=function(e){ve.currentWindow=e},t._uninitialize=function(){u.initializeCalled&&(u.frameContext&&(i(null),K.backStack.registerBackButtonHandler(null),K.registerFullScreenHandler(null),G.registerBeforeUnloadHandler(null),G.registerOnLoadHandler(null),I.registerGetLogHandler(null)),u.frameContext===A.settings&&K.config.registerOnSaveHandler(null),u.frameContext===A.remove&&K.config.registerOnRemoveHandler(null),u.initializeCalled=!1,u.initializeCompleted=!1,u.initializePromise=null,u.additionalValidOrigins=[],u.frameContext=null,u.hostClientType=null,u.isFramelessWindow=!1,ye())},t.getContext=function(){return new Promise((function(e){T(),e(Se("getContext"))})).then((function(e){return J(e)}))},t.notifyAppLoaded=function(){T(),Oe(t.Messages.AppLoaded,[e])},t.notifySuccess=function(){T(),Oe(t.Messages.Success,[e])},t.notifyFailure=function(e){T(),Oe(t.Messages.Failure,[e.reason,e.message])},t.notifyExpectedFailure=function(e){T(),Oe(t.Messages.ExpectedFailure,[e.reason,e.message])},t.registerOnThemeChangeHandler=i}(j||(j={})),function(e){e.shareDeepLink=function(e){T(A.content,A.sidePanel,A.meetingStage),Oe("shareDeepLink",[e.subEntityId,e.subEntityLabel,e.subEntityWebUrl])},e.executeDeepLink=function(e){return new Promise((function(n){T(A.content,A.sidePanel,A.settings,A.task,A.stage,A.meetingStage),n(Te("executeDeepLink",e))}))}}(q||(q={})),function(e){function n(e){T(A.content),Oe("setFrameContext",[e])}e.returnFocus=function(e){T(A.content),Oe("returnFocus",[e])},e.setCurrentFrame=n,e.initializeWithFrameContext=function(e,t,o){j.initialize(o).then((function(){return t&&t()})),n(e)},e.navigateCrossDomain=function(e){return new Promise((function(n){T(A.content,A.sidePanel,A.settings,A.remove,A.task,A.stage,A.meetingStage);n(Pe("navigateCrossDomain","Cross-origin navigation is only supported for URLs matching the pattern registered in the manifest.",e))}))},e.navigateToApp=function(e){return new Promise((function(n){T(A.content,A.sidePanel,A.settings,A.task,A.stage,A.meetingStage),F.isLegacyTeams?n(Te("executeDeepLink",S(e))):n(Te("pages.navigateToApp",e))}))},e.registerFullScreenHandler=function(e){T(),ee("fullScreenChange",e)},e.isSupported=function(){return!!F.supports.pages},function(e){e.navigateToTab=function(e){return new Promise((function(n){T();n(Pe("navigateToTab","Invalid internalTabInstanceId and/or channelId were/was provided",e))}))},e.getTabInstances=function(e){return new Promise((function(n){T(),n(Se("getTabInstances",e))}))},e.getMruTabInstances=function(e){return new Promise((function(n){T(),n(Se("getMruTabInstances",e))}))},e.isSupported=function(){return!!F.supports.pages&&!!F.supports.pages.tabs}}(e.tabs||(e.tabs={})),function(e){var n,t;function o(e){var t=new i(e);n?n(t):t.notifySuccess()}e.initialize=function(){ee("settings.save",o,!1),ee("settings.remove",r,!1)},e.setValidityState=function(e){T(A.settings,A.remove),Oe("settings.setValidityState",[e])},e.getConfig=function(){return new Promise((function(e){T(A.content,A.settings,A.remove,A.sidePanel),e(Se("settings.getSettings"))}))},e.setConfig=function(e){return new Promise((function(n){T(A.content,A.settings,A.sidePanel),n(Te("settings.setSettings",e))}))},e.registerOnSaveHandler=function(e){T(A.settings),n=e,e&&Oe("registerHandler",["save"])},e.registerOnRemoveHandler=function(e){T(A.remove,A.settings),t=e,e&&Oe("registerHandler",["remove"])},e.registerChangeConfigHandler=function(e){T(A.content),ee("changeSettings",e)};var i=function(){function e(e){this.notified=!1,this.result=e||{}}return e.prototype.notifySuccess=function(){this.ensureNotNotified(),Oe("settings.save.success"),this.notified=!0},e.prototype.notifyFailure=function(e){this.ensureNotNotified(),Oe("settings.save.failure",[e]),this.notified=!0},e.prototype.ensureNotNotified=function(){if(this.notified)throw new Error("The SaveEvent may only notify success or failure once.")},e}();function r(){var e=new a;t?t(e):e.notifySuccess()}var a=function(){function e(){this.notified=!1}return e.prototype.notifySuccess=function(){this.ensureNotNotified(),Oe("settings.remove.success"),this.notified=!0},e.prototype.notifyFailure=function(e){this.ensureNotNotified(),Oe("settings.remove.failure",[e]),this.notified=!0},e.prototype.ensureNotNotified=function(){if(this.notified)throw new Error("The removeEvent may only notify success or failure once.")},e}();e.isSupported=function(){return!!F.supports.pages&&!!F.supports.pages.config}}(e.config||(e.config={})),function(e){var n;function t(){return new Promise((function(e){T();e(Pe("navigateBack","Back navigation is not supported in the current client or context."))}))}function o(){n&&n()||t()}e._initialize=function(){ee("backButtonPress",o,!1)},e.navigateBack=t,e.registerBackButtonHandler=function(e){n=e,e&&Oe("registerHandler",["backButton"])},e.isSupported=function(){return!!F.supports.pages&&!!F.supports.pages.backStack}}(e.backStack||(e.backStack={})),function(e){e.enterFullscreen=function(){T(A.content),Oe("enterFullscreen",[])},e.exitFullscreen=function(){T(A.content),Oe("exitFullscreen",[])},e.isSupported=function(){return!!F.supports.pages&&!!F.supports.pages.fullTrust}}(e.fullTrust||(e.fullTrust={})),function(e){e.onClick=function(e){T(A.content),ee("appButtonClick",e)},e.onHoverEnter=function(e){T(A.content),ee("appButtonHoverEnter",e)},e.onHoverLeave=function(e){T(A.content),ee("appButtonHoverLeave",e)},e.isSupported=function(){return!!F.supports.pages&&!!F.supports.pages.appButton}}(e.appButton||(e.appButton={}))}(K||(K={}));var Q=function(e,n,t){if(t||2===arguments.length)for(var o,i=0,r=n.length;i<r;i++)!o&&i in n||(o||(o=Array.prototype.slice.call(n,0,i)),o[i]=n[i]);return e.concat(o||Array.prototype.slice.call(n))},X=function(){function e(){}return e.handlers={},e}();function Y(){X.handlers.themeChange=oe,X.handlers.load=re,X.handlers.beforeUnload=se,K.backStack._initialize()}function $(e,n){var t=X.handlers[e];return t?[!0,t.apply(this,n)]:[!1,void 0]}function ee(e,n,t,o){void 0===t&&(t=!0),void 0===o&&(o=[]),n?(X.handlers[e]=n,t&&Oe("registerHandler",Q([e],o,!0))):delete X.handlers[e]}function ne(e){delete X.handlers[e]}function te(e){X.themeChangeHandler=e,e&&Oe("registerHandler",["themeChange"])}function oe(e){X.themeChangeHandler&&X.themeChangeHandler(e),ve.childWindow&&xe("themeChange",[e])}function ie(e){X.loadHandler=e,e&&Oe("registerHandler",["load"])}function re(e){X.loadHandler&&X.loadHandler(e),ve.childWindow&&xe("load",[e])}function ae(e){X.beforeUnloadHandler=e,e&&Oe("registerHandler",["beforeUnload"])}function se(){var e=function(){Oe("readyToUnload",[])};X.beforeUnloadHandler&&X.beforeUnloadHandler(e)||e()}var ue,ce,le,de,fe,pe,me,ge,he=function(e,n,t){if(t||2===arguments.length)for(var o,i=0,r=n.length;i<r;i++)!o&&i in n||(o||(o=Array.prototype.slice.call(n,0,i)),o[i]=n[i]);return e.concat(o||Array.prototype.slice.call(n))},ve=function(){return function(){}}(),we=function(){function e(){}return e.parentMessageQueue=[],e.childMessageQueue=[],e.nextMessageId=0,e.callbacks={},e.promiseCallbacks={},e}();function Ce(n){if(we.messageListener=function(e){return Ae(e)},ve.currentWindow=ve.currentWindow||window,ve.parentWindow=ve.currentWindow.parent!==ve.currentWindow.self?ve.currentWindow.parent:ve.currentWindow.opener,(ve.parentWindow||n)&&ve.currentWindow.addEventListener("message",we.messageListener,!1),!ve.parentWindow){var t=ve.currentWindow;if(!t.nativeInterface)return Promise.reject(new Error("Initialization Failed. No Parent window found."));u.isFramelessWindow=!0,t.onNativeMessage=ke}try{return ve.parentOrigin="*",Ie("initialize",[e]).then((function(e){return{context:e[0],clientType:e[1],runtimeConfig:e[2],clientSupportedSDKVersion:e[3]}}))}finally{ve.parentOrigin=null}}function ye(){ve.currentWindow.removeEventListener("message",we.messageListener,!1),ve.parentWindow=null,ve.parentOrigin=null,ve.childWindow=null,ve.childOrigin=null,we.parentMessageQueue=[],we.childMessageQueue=[],we.nextMessageId=0,we.callbacks={}}function Se(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return Ie(e,n).then((function(e){return e[0]}))}function Te(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return Ie(e,n).then((function(e){var n=e[0],t=e[1];if(!n)throw new Error(t)}))}function Pe(e,n){for(var t=[],o=2;o<arguments.length;o++)t[o-2]=arguments[o];return Ie(e,t).then((function(e){var t=e[0],o=e[1];if(!t)throw new Error(o||n)}))}function be(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return Ie(e,n).then((function(e){var n=e[0],t=e[1];if(n)throw n;return t}))}function Ie(e,n){return void 0===n&&(n=void 0),new Promise((function(t){t(Ee(Re(e,n).id))}))}function Ee(e){return new Promise((function(n){we.promiseCallbacks[e]=n}))}function Oe(e,n,t){var o;n instanceof Function?t=n:n instanceof Array&&(o=n);var i=Re(e,o);t&&(we.callbacks[i.id]=t)}function Re(e,n){var t=ve.parentWindow,o=Be(e,n);if(u.isFramelessWindow)ve.currentWindow&&ve.currentWindow.nativeInterface&&ve.currentWindow.nativeInterface.framelessPostMessage(JSON.stringify(o));else{var i=We(t);t&&i?t.postMessage(o,i):Le(t).push(o)}return o}function Ae(e){if(e&&e.data&&"object"==typeof e.data){var n=e.source||e.originalEvent&&e.originalEvent.source,t=e.origin||e.originalEvent&&e.originalEvent.origin;Me(n,t)&&(Ne(n,t),n===ve.parentWindow?ke(e):n===ve.childWindow&&De(e))}}function Me(e,n){return(!ve.currentWindow||e!==ve.currentWindow)&&(!!(ve.currentWindow&&ve.currentWindow.location&&n&&n===ve.currentWindow.location.origin)||d(new URL(n)))}function Ne(e,n){u.isFramelessWindow||ve.parentWindow&&!ve.parentWindow.closed&&e!==ve.parentWindow?ve.childWindow&&!ve.childWindow.closed&&e!==ve.childWindow||(ve.childWindow=e,ve.childOrigin=n):(ve.parentWindow=e,ve.parentOrigin=n),ve.parentWindow&&ve.parentWindow.closed&&(ve.parentWindow=null,ve.parentOrigin=null),ve.childWindow&&ve.childWindow.closed&&(ve.childWindow=null,ve.childOrigin=null),Ue(ve.parentWindow),Ue(ve.childWindow)}function ke(e){if("id"in e.data&&"number"==typeof e.data.id){var n=e.data,t=we.callbacks[n.id];t&&(t.apply(null,he(he([],n.args,!0),[n.isPartialResponse],!1)),Fe(e)||delete we.callbacks[n.id]);var o=we.promiseCallbacks[n.id];o&&(o(n.args),delete we.promiseCallbacks[n.id])}else if("func"in e.data&&"string"==typeof e.data.func){$((n=e.data).func,n.args)}}function Fe(e){return!0===e.data.isPartialResponse}function De(e){if("id"in e.data&&"func"in e.data){var n=e.data,t=$(n.func,n.args),o=t[0],i=t[1];o&&void 0!==i?_e(n.id,Array.isArray(i)?i:[i]):Oe(n.func,n.args,(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(ve.childWindow){var o=e.pop();_e(n.id,e,o)}}))}}function Le(e){return e===ve.parentWindow?we.parentMessageQueue:e===ve.childWindow?we.childMessageQueue:[]}function We(e){return e===ve.parentWindow?ve.parentOrigin:e===ve.childWindow?ve.childOrigin:null}function Ue(e){for(var n=We(e),t=Le(e);e&&n&&t.length>0;)e.postMessage(t.shift(),n)}function He(e,n){var t=ve.currentWindow.setInterval((function(){0===Le(e).length&&(clearInterval(t),n())}),100)}function _e(e,n,t){var o=ve.childWindow,i=Ve(e,n,t),r=We(o);o&&r&&o.postMessage(i,r)}function xe(e,n){var t=ve.childWindow,o=ze(e,n),i=We(t);t&&i?t.postMessage(o,i):Le(t).push(o)}function Be(e,n){return{id:we.nextMessageId++,func:e,timestamp:Date.now(),args:n||[]}}function Ve(e,n,t){return{id:e,args:n||[],isPartialResponse:t}}function ze(e,n){return{func:e,args:n||[]}}!function(e){e.sendQuery=function(e,n,t){T(),Oe("bot.executeQuery",[e],(function(e,o){e?n(o):t(o)}))},e.getSupportedCommands=function(e,n){T(),Oe("bot.getSupportedCommands",(function(t,o){t?e(o):n(o)}))},e.authenticate=function(e,n,t){T(),Oe("bot.authenticate",[e],(function(e,o){e?n(o):t(o)}))},function(e){e.Results="Results",e.Auth="Auth"}(e.ResponseType||(e.ResponseType={})),e.isSupported=function(){return!!F.supports.bot}}(ue||(ue={})),function(e){e.fileDownloadStart="fileDownloadStart",e.fileDownloadComplete="fileDownloadComplete"}(ce||(ce={})),function(e){e.view="view",e.edit="edit",e.editNew="editNew"}(le||(le={})),function(e){e.fileOpenPreference="fileOpenPreference",e.theme="theme"}(de||(de={})),function(e){e.openConversation=function(e){return new Promise((function(n){T(A.content);var t=Te("conversations.openConversation",{title:e.title,subEntityId:e.subEntityId,conversationId:e.conversationId,channelId:e.channelId,entityId:e.entityId});e.onStartConversation&&ee("startConversation",(function(n,t,o,i){return e.onStartConversation({subEntityId:n,conversationId:t,channelId:o,entityId:i})})),e.onCloseConversation&&ee("closeConversation",(function(n,t,o,i){return e.onCloseConversation({subEntityId:n,conversationId:t,channelId:o,entityId:i})})),n(t)}))},e.closeConversation=function(){T(A.content),Oe("conversations.closeConversation"),ne("startConversation"),ne("closeConversation")},e.getChatMembers=function(){return new Promise((function(e){T(),e(Se("getChatMembers"))}))},e.isSupported=function(){return!!F.supports.chat}}(fe||(fe={})),function(e){e.Inline="inline",e.Desktop="desktop",e.Web="web"}(pe||(pe={})),function(e){e[e.NOT_SUPPORTED_ON_PLATFORM=100]="NOT_SUPPORTED_ON_PLATFORM",e[e.INTERNAL_ERROR=500]="INTERNAL_ERROR",e[e.NOT_SUPPORTED_IN_CURRENT_CONTEXT=501]="NOT_SUPPORTED_IN_CURRENT_CONTEXT",e[e.PERMISSION_DENIED=1e3]="PERMISSION_DENIED",e[e.NETWORK_ERROR=2e3]="NETWORK_ERROR",e[e.NO_HW_SUPPORT=3e3]="NO_HW_SUPPORT",e[e.INVALID_ARGUMENTS=4e3]="INVALID_ARGUMENTS",e[e.UNAUTHORIZED_USER_OPERATION=5e3]="UNAUTHORIZED_USER_OPERATION",e[e.INSUFFICIENT_RESOURCES=6e3]="INSUFFICIENT_RESOURCES",e[e.THROTTLE=7e3]="THROTTLE",e[e.USER_ABORT=8e3]="USER_ABORT",e[e.OPERATION_TIMED_OUT=8001]="OPERATION_TIMED_OUT",e[e.OLD_PLATFORM=9e3]="OLD_PLATFORM",e[e.FILE_NOT_FOUND=404]="FILE_NOT_FOUND",e[e.SIZE_EXCEEDED=1e4]="SIZE_EXCEEDED"}(me||(me={})),function(e){function n(){return!!F.supports.appInstallDialog}e.openAppInstallDialog=function(e){return new Promise((function(t){if(T(A.content,A.sidePanel,A.settings,A.task,A.stage,A.meetingStage),!n())throw"Not supported";Oe("appInstallDialog.openAppInstallDialog",[e]),t()}))},e.isSupported=n}(ge||(ge={}));var Ge,je=function(){function e(){}return e.prototype.postMessage=function(e,n){return T(),this.postMessageHelper(e).then((function(){n&&n(!0)})).catch((function(e){if(!n)throw e;n(!1,e.message)}))},e.prototype.postMessageHelper=function(e){return new Promise((function(n){n(Te("messageForChild",e))}))},e.prototype.addEventListener=function(e,n){"message"===e&&ee("messageForParent",n)},e}(),qe=function(){function e(){}return Object.defineProperty(e,"Instance",{get:function(){return this._instance||(this._instance=new this)},enumerable:!1,configurable:!0}),e.prototype.postMessage=function(e,n){return T(A.task),this.postMessageHelper(e).then((function(){n&&n(!0)})).catch((function(e){if(!n)throw e;n(!1,e.message)}))},e.prototype.postMessageHelper=function(e){return new Promise((function(n){n(Te("messageForParent",e))}))},e.prototype.addEventListener=function(e,n){"message"===e&&ee("messageForChild",n)},e}(),Ke=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)n.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(t[o[i]]=e[o[i]])}return t};function Ze(e,n){if(null==e||null==n||e.length<=0)return null;var t,o=1;return e.sort((function(e,n){return e.sequence>n.sequence?1:-1})),e.forEach((function(e){e.sequence==o&&(t=t?new Blob([t,e.file],{type:n}):new Blob([e.file],{type:n}),o++)})),t}function Je(e,n){if(null==e||null==n)return null;for(var t=atob(e.chunk),o=new Array(t.length),i=0;i<t.length;i++)o[i]=t.charCodeAt(i);var r=new Uint8Array(o),a=new Blob([r],{type:n});return{sequence:e.chunkSequence,file:a}}function Qe(e){return!(null==e||e.maxMediaCount>10)}function Xe(e){return!(!e||e.mediaType!=tn.MediaType.VideoAndImage&&!e.videoAndImageProps)}function Ye(e,n,t){return null!=e&&null!=n&&n==tn.FileFormat.ID&&null!=t}function $e(e){return!(null==e||e.length<=0||e.length>10)}function en(e){return!e||!(null===e.timeOutIntervalInSec||e.timeOutIntervalInSec<=0||e.timeOutIntervalInSec>60)}function nn(e){if(e){if(e.title&&"string"!=typeof e.title)return!1;if(e.setSelected&&"object"!=typeof e.setSelected)return!1;if(e.openOrgWideSearchInChatOrChannel&&"boolean"!=typeof e.openOrgWideSearchInChatOrChannel)return!1;if(e.singleSelect&&"boolean"!=typeof e.singleSelect)return!1}return!0}!function(e){e.open=function(e,n){return T(A.content,A.sidePanel,A.meetingStage),Oe("tasks.startTask",[e],n),new je},e.resize=function(e){T(A.task),e.width,e.height;var n=Ke(e,["width","height"]);if(Object.keys(n).length)throw new Error("resize requires a dialogInfo argument containing only width and height");Oe("tasks.updateTask",[e])},e.submit=function(e,n){T(A.task),Oe("tasks.completeTask",[e,Array.isArray(n)?n:[n]])},e.isSupported=function(){return!!F.supports.dialog}}(Ge||(Ge={}));var tn,on,rn,an,sn,un,cn,ln,dn,fn,pn,mn,gn,hn,vn,wn,Cn,yn,Sn,Tn,Pn=function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},e(n,t)};return function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}}();function bn(e,n){j.initialize(n).then((function(){e&&e()}))}function In(){G.enablePrintCapability()}function En(){G.print()}function On(e){T(),j.getContext().then((function(n){e&&e(Gn(n))}))}function Rn(e){j.registerOnThemeChangeHandler(e)}function An(e){K.registerFullScreenHandler(e)}function Mn(e){K.appButton.onClick(e)}function Nn(e){K.appButton.onHoverEnter(e)}function kn(e){K.appButton.onHoverLeave(e)}function Fn(e){K.backStack.registerBackButtonHandler(e)}function Dn(e){G.registerOnLoadHandler(e)}function Ln(e){G.registerBeforeUnloadHandler(e)}function Wn(e){G.registerFocusEnterHandler(e)}function Un(e){K.config.registerChangeConfigHandler(e)}function Hn(e,n){T(),K.tabs.getTabInstances(n).then((function(n){e(n)}))}function _n(e,n){T(),K.tabs.getMruTabInstances(n).then((function(n){e(n)}))}function xn(e){q.shareDeepLink(e)}function Bn(e,n){T(A.content,A.sidePanel,A.settings,A.task,A.stage,A.meetingStage),n=n||f(),q.executeDeepLink(e).then((function(){n(!0)})).catch((function(e){n(!1,e.message)}))}function Vn(e){K.setCurrentFrame(e)}function zn(e,n,t){K.initializeWithFrameContext(e,n,t)}function Gn(e){return{locale:e.app.locale,appSessionId:e.app.sessionId,theme:e.app.theme,appIconPosition:e.app.iconPositionVertical,osLocaleInfo:e.app.osLocaleInfo,parentMessageId:e.app.parentMessageId,userClickTime:e.app.userClickTime,userFileOpenPreference:e.app.userFileOpenPreference,appLaunchId:e.app.appLaunchId,hostClientType:e.app.host.clientType,sessionId:e.app.host.sessionId,ringId:e.app.host.ringId,entityId:e.page.id,frameContext:e.page.frameContext,subEntityId:e.page.subPageId,isFullScreen:e.page.isFullScreen,isMultiWindow:e.page.isMultiWindow,sourceOrigin:e.page.sourceOrigin,userObjectId:void 0!==e.user?e.user.id:void 0,isCallingAllowed:void 0!==e.user?e.user.isCallingAllowed:void 0,isPSTNCallingAllowed:void 0!==e.user?e.user.isPSTNCallingAllowed:void 0,userLicenseType:void 0!==e.user?e.user.licenseType:void 0,loginHint:void 0!==e.user?e.user.loginHint:void 0,userPrincipalName:void 0!==e.user?e.user.userPrincipalName:void 0,tid:void 0!==e.user&&void 0!==e.user.tenant?e.user.tenant.id:void 0,tenantSKU:void 0!==e.user&&void 0!==e.user.tenant?e.user.tenant.teamsSku:void 0,channelId:void 0!==e.channel?e.channel.id:void 0,channelName:void 0!==e.channel?e.channel.displayName:void 0,channelRelativeUrl:void 0!==e.channel?e.channel.relativeUrl:void 0,channelType:void 0!==e.channel?e.channel.membershipType:void 0,defaultOneNoteSectionId:void 0!==e.channel?e.channel.defaultOneNoteSectionId:void 0,hostTeamGroupId:void 0!==e.channel?e.channel.ownerGroupId:void 0,hostTeamTenantId:void 0!==e.channel?e.channel.ownerTenantId:void 0,chatId:void 0!==e.chat?e.chat.id:void 0,meetingId:void 0!==e.meeting?e.meeting.id:void 0,sharepoint:e.sharepoint,teamId:void 0!==e.team?e.team.internalId:void 0,teamName:void 0!==e.team?e.team.displayName:void 0,teamType:void 0!==e.team?e.team.type:void 0,groupId:void 0!==e.team?e.team.groupId:void 0,teamTemplateId:void 0!==e.team?e.team.templateId:void 0,isTeamArchived:void 0!==e.team?e.team.isArchived:void 0,userTeamRole:void 0!==e.team?e.team.userRole:void 0,teamSiteUrl:void 0!==e.sharePointSite?e.sharePointSite.url:void 0,teamSiteDomain:void 0!==e.sharePointSite?e.sharePointSite.domain:void 0,teamSitePath:void 0!==e.sharePointSite?e.sharePointSite.path:void 0,teamSiteId:void 0!==e.sharePointSite?e.sharePointSite.id:void 0}}function jn(e){K.returnFocus(e)}function qn(e,n){T(),n=n||f(),K.tabs.navigateToTab(e).then((function(){n(!0)})).catch((function(e){n(!1,e.message)}))}function Kn(e,n){T(A.content,A.sidePanel,A.settings,A.remove,A.task,A.stage,A.meetingStage),n=n||f(),K.navigateCrossDomain(e).then((function(){n(!0)})).catch((function(e){n(!1,e.message)}))}function Zn(e){T(),e=e||f(),K.backStack.navigateBack().then((function(){e(!0)})).catch((function(n){e(!1,n.message)}))}!function(e){!function(e){e.Base64="base64",e.ID="id"}(e.FileFormat||(e.FileFormat={}));var n=function(){return function(){}}();e.File=n,e.captureImage=function(e){return T(A.content,A.task),h((function(){return new Promise((function(e){if(!u.isFramelessWindow)throw{errorCode:me.NOT_SUPPORTED_ON_PLATFORM};if(!P("1.7.0"))throw{errorCode:me.OLD_PLATFORM};e(be("captureImage"))}))}),e)};var t=function(e){function n(n){void 0===n&&(n=null);var t=e.call(this)||this;return n&&(t.content=n.content,t.format=n.format,t.mimeType=n.mimeType,t.name=n.name,t.preview=n.preview,t.size=n.size),t}return Pn(n,e),n.prototype.getMedia=function(e){var n=this;T(A.content,A.task);return h((function(){return new Promise((function(e){if(!P(r))throw{errorCode:me.OLD_PLATFORM};if(!Ye(n.mimeType,n.format,n.content))throw{errorCode:me.INVALID_ARGUMENTS};P("2.0.0")?e(n.getMediaViaCallback()):e(n.getMediaViaHandler())}))}),e)},n.prototype.getMediaViaCallback=function(){var e=this;return new Promise((function(n,t){var o={mediaMimeType:e.mimeType,assembleAttachment:[]};Oe("getMedia",[e.content],(function(e){if(e&&e.error)t(e.error);else if(e&&e.mediaChunk)if(e.mediaChunk.chunkSequence<=0){var i=Ze(o.assembleAttachment,o.mediaMimeType);n(i)}else{var r=Je(e.mediaChunk,o.mediaMimeType);o.assembleAttachment.push(r)}else t({errorCode:me.INTERNAL_ERROR,message:"data received is null"})}))}))},n.prototype.getMediaViaHandler=function(){var e=this;return new Promise((function(n,t){var o=m(),i={mediaMimeType:e.mimeType,assembleAttachment:[]},r=[o,e.content];e.content&&Oe("getMedia",r),ee("getMedia"+o,(function(e){try{var r=JSON.parse(e);if(r.error)t(r.error),ne("getMedia"+o);else if(r&&r.mediaChunk)if(r.mediaChunk.chunkSequence<=0){var a=Ze(i.assembleAttachment,i.mediaMimeType);n(a),ne("getMedia"+o)}else{var s=Je(r.mediaChunk,i.mediaMimeType);i.assembleAttachment.push(s)}else t({errorCode:me.INTERNAL_ERROR,message:"data received is null"}),ne("getMedia"+o)}catch(n){t({errorCode:me.INTERNAL_ERROR,message:"Error parsing the response: "+e})}}))}))},n}(n);e.Media=t,function(e){e[e.Photo=1]="Photo",e[e.Document=2]="Document",e[e.Whiteboard=3]="Whiteboard",e[e.BusinessCard=4]="BusinessCard"}(e.CameraStartMode||(e.CameraStartMode={})),function(e){e[e.Camera=1]="Camera",e[e.Gallery=2]="Gallery"}(e.Source||(e.Source={})),function(e){e[e.Image=1]="Image",e[e.VideoAndImage=3]="VideoAndImage",e[e.Audio=4]="Audio"}(e.MediaType||(e.MediaType={})),function(e){e[e.ID=1]="ID",e[e.URL=2]="URL"}(e.ImageUriType||(e.ImageUriType={})),e.selectMedia=function(e,n){return T(A.content,A.task),h((function(){return new Promise((function(n){if(!P(r))throw{errorCode:me.OLD_PLATFORM};if(Xe(e)){if(u.hostClientType!=O.android&&u.hostClientType!=O.ios)throw{errorCode:me.NOT_SUPPORTED_ON_PLATFORM};if(!P("2.0.2"))throw{errorCode:me.OLD_PLATFORM}}if(!Qe(e))throw{errorCode:me.INVALID_ARGUMENTS};n(Ie("selectMedia",[e]))})).then((function(e){var n=e[0],o=e[1];if(!o)throw n;for(var i=[],r=0,a=o;r<a.length;r++){var s=a[r];i.push(new t(s))}return i}))}),n)},e.viewImages=function(e,n){return T(A.content,A.task),w((function(){return new Promise((function(n){if(!P(r))throw{errorCode:me.OLD_PLATFORM};if(!$e(e))throw{errorCode:me.INVALID_ARGUMENTS};n(be("viewImages",e))}))}),n)},e.scanBarCode=function(e,n){var t,o;return void 0===e?o=n:"object"==typeof e?o=e:(t=e,o=n),T(A.content,A.task),h((function(){return new Promise((function(e){if(u.hostClientType===O.desktop||u.hostClientType===O.web||u.hostClientType===O.rigel||u.hostClientType===O.teamsRoomsWindows||u.hostClientType===O.teamsRoomsAndroid||u.hostClientType===O.teamsPhones||u.hostClientType===O.teamsDisplays)throw{errorCode:me.NOT_SUPPORTED_ON_PLATFORM};if(!P("1.9.0"))throw{errorCode:me.OLD_PLATFORM};if(!en(o))throw{errorCode:me.INVALID_ARGUMENTS};e(be("media.scanBarCode",o))}))}),t)},e.isSupported=function(){return!!F.supports.media}}(tn||(tn={})),function(e){function n(e){return new Promise((function(n){if(!P(i))throw{errorCode:me.OLD_PLATFORM};if(!e)throw{errorCode:me.INVALID_ARGUMENTS};n(be("location.getLocation",e))}))}function t(e){return new Promise((function(n){if(!P(i))throw{errorCode:me.OLD_PLATFORM};if(!e)throw{errorCode:me.INVALID_ARGUMENTS};n(be("location.showLocation",e))}))}e.getLocation=function(e,t){return T(A.content,A.task),h(n,t,e)},e.showLocation=function(e,n){return T(A.content,A.task),v(t,n,e)},e.showLocationHelper=t,e.isSupported=function(){return!!F.supports.location}}(on||(on={})),function(e){function n(){return new Promise((function(e){e(be("getIncomingClientAudioState"))}))}function t(){return new Promise((function(e){e(be("toggleIncomingClientAudio"))}))}function o(){return new Promise((function(e){e(be("meeting.getMeetingDetails"))}))}function i(){return new Promise((function(e){e(be("meeting.getAuthenticationTokenForAnonymousUser"))}))}function r(){return new Promise((function(e){e(be("meeting.getLiveStreamState"))}))}function a(e,n){return new Promise((function(t){t(be("meeting.requestStartLiveStreaming",e,n))}))}function s(){return new Promise((function(e){e(be("meeting.requestStopLiveStreaming"))}))}function u(e){return new Promise((function(n){n(be("meeting.shareAppContentToStage",e))}))}function c(){return new Promise((function(e){e(be("meeting.getAppContentStageSharingCapabilities"))}))}function l(){return new Promise((function(e){e(be("meeting.stopSharingAppContentToStage"))}))}function d(){return new Promise((function(e){e(be("meeting.getAppContentStageSharingState"))}))}!function(e){e.Unknown="Unknown",e.Adhoc="Adhoc",e.Scheduled="Scheduled",e.Recurring="Recurring",e.Broadcast="Broadcast",e.MeetNow="MeetNow"}(e.MeetingType||(e.MeetingType={})),e.getIncomingClientAudioState=function(e){return T(A.sidePanel,A.meetingStage),C(n,e)},e.toggleIncomingClientAudio=function(e){return T(A.sidePanel,A.meetingStage),C(t,e)},e.getMeetingDetails=function(e){return T(A.sidePanel,A.meetingStage,A.settings,A.content),C(o,e)},e.getAuthenticationTokenForAnonymousUser=function(e){return T(A.sidePanel,A.meetingStage),C(i,e)},e.isSupported=function(){return!!F.supports.meeting},e.getLiveStreamState=function(e){return T(),C(r,e)},e.requestStartLiveStreaming=function(e,n,t){var o,i,r,s,u;return T(A.sidePanel),"function"==typeof e?(u=(o=[e,n,t])[0],r=o[1],s=o[2]):"string"==typeof e&&(r=(i=[e,n])[0],s=i[1]),w(a,u,r,s)},e.requestStopLiveStreaming=function(e){return T(A.sidePanel),w(s,e)},e.registerLiveStreamChangedHandler=function(e){if(!e)throw new Error("[register live stream changed handler] Handler cannot be null");T(A.sidePanel),ee("meeting.liveStreamChanged",e)},e.shareAppContentToStage=function(e,n){var t,o,i;return T(A.sidePanel),"function"==typeof e?(i=(t=[e,n])[0],o=t[1]):o=e,C(u,i,o)},e.getAppContentStageSharingCapabilities=function(e){return T(A.sidePanel),C(c,e)},e.stopSharingAppContentToStage=function(e){return T(A.sidePanel),C(l,e)},e.getAppContentStageSharingState=function(e){return T(A.sidePanel),C(d,e)}}(rn||(rn={})),function(e){e.openPurchaseExperience=function(e,n){var t,o;return"function"==typeof e?(t=e,o=n):o=e,T(A.content),C((function(){return new Promise((function(e){e(be("monetization.openPurchaseExperience",o))}))}),t)},e.isSupported=function(){return!!F.supports.monetization}}(an||(an={})),function(e){function n(){return!!F.supports.calendar}e.openCalendarItem=function(e){return new Promise((function(t){if(T(A.content),!n())throw"Not Supported";t(Te("calendar.openCalendarItem",e))}))},e.composeMeeting=function(e){return new Promise((function(t){if(T(A.content),!n())throw"Not Supported";t(Te("calendar.composeMeeting",e))}))},e.isSupported=n}(sn||(sn={})),function(e){function n(){return!!F.supports.mail}e.openMailItem=function(e){return new Promise((function(t){if(T(A.content),!n())throw"Not Supported";t(Te("mail.openMailItem",e))}))},e.composeMail=function(e){return new Promise((function(t){if(T(A.content),!n())throw"Not Supported";t(Te("mail.composeMail",e))}))},e.isSupported=n,function(e){e.New="new",e.Reply="reply",e.ReplyAll="replyAll",e.Forward="forward"}(e.ComposeMailType||(e.ComposeMailType={}))}(un||(un={})),function(e){function n(e){return new Promise((function(n){if(!P("2.0.0"))throw{errorCode:me.OLD_PLATFORM};if(!nn(e))throw{errorCode:me.INVALID_ARGUMENTS};n(be("people.selectPeople",e))}))}e.selectPeople=function(e,t){var o,i,r;return T(A.content,A.task,A.settings),"function"==typeof e?(i=(o=[e,t])[0],r=o[1]):r=e,h(n,i,r)},e.isSupported=function(){return!!F.supports.people}}(cn||(cn={})),function(e){function n(){Oe("video.videoFrameProcessed")}function t(e){Oe("video.notifyError",[e])}!function(e){e[e.NV12=0]="NV12"}(e.VideoFrameFormat||(e.VideoFrameFormat={})),function(e){e[e.EffectChanged=0]="EffectChanged",e[e.EffectDisabled=1]="EffectDisabled"}(e.EffectChangeType||(e.EffectChangeType={})),e.registerForVideoFrame=function(e,o){T(A.sidePanel),ee("video.newVideoFrame",(function(o){void 0!==o&&e(o,n,t)})),Oe("video.registerForVideoFrame",[o])},e.notifySelectedVideoEffectChanged=function(e,n){T(A.sidePanel),Oe("video.videoEffectChanged",[e,n])},e.registerForVideoEffect=function(e){T(A.sidePanel),ee("video.effectParameterChange",e)},e.isSupported=function(){return!!F.supports.video}}(ln||(ln={})),function(e){function n(n){return new Promise((function(t){t(be(e.SharingAPIMessages.shareWebContent,n))}))}function t(e){if(!(e&&e.content&&e.content.length))throw{errorCode:me.INVALID_ARGUMENTS,message:"Shared content is missing"}}function o(e){if(e.content.some((function(e){return!e.type})))throw{errorCode:me.INVALID_ARGUMENTS,message:"Shared content type cannot be undefined"};if(e.content.some((function(n){return n.type!==e.content[0].type})))throw{errorCode:me.INVALID_ARGUMENTS,message:"Shared content must be of the same type"}}function i(e){if("URL"!==e.content[0].type)throw{errorCode:me.INVALID_ARGUMENTS,message:"Content type is unsupported"};if(e.content.some((function(e){return!e.url})))throw{errorCode:me.INVALID_ARGUMENTS,message:"URLs are required for URL content types"}}e.SharingAPIMessages={shareWebContent:"sharing.shareWebContent"},e.shareWebContent=function(e,r){try{t(e),o(e),i(e)}catch(e){return w((function(){return Promise.reject(e)}),r)}return T(A.content,A.sidePanel,A.task,A.stage,A.meetingStage),w(n,r,e)},e.isSupported=function(){return!!F.supports.sharing}}(dn||(dn={})),function(e){function n(){return!!F.supports.call}!function(e){e.Unknown="unknown",e.Audio="audio",e.Video="video",e.VideoBasedScreenSharing="videoBasedScreenSharing",e.Data="data"}(e.CallModalities||(e.CallModalities={})),e.startCall=function(e){return new Promise((function(t){if(T(A.content),!n())throw"Not supported";return Oe("call.startCall",[e],t)}))},e.isSupported=n}(fn||(fn={})),function(e){e.Messages=j.Messages,e.FailedReason=j.FailedReason,e.ExpectedFailureReason=j.ExpectedFailureReason,e.notifyAppLoaded=function(){j.notifyAppLoaded()},e.notifySuccess=function(){j.notifySuccess()},e.notifyFailure=function(e){j.notifyFailure(e)},e.notifyExpectedFailure=function(e){j.notifyExpectedFailure(e)}}(pn||(pn={})),function(e){e.setValidityState=function(e){K.config.setValidityState(e)},e.getSettings=function(e){T(A.content,A.settings,A.remove,A.sidePanel),K.config.getConfig().then((function(n){e(n)}))},e.setSettings=function(e,n){T(A.content,A.settings,A.sidePanel),n=n||f(),K.config.setConfig(e).then((function(){n(!0)})).catch((function(e){n(!1,e.message)}))},e.registerOnSaveHandler=function(e){K.config.registerOnSaveHandler(e)},e.registerOnRemoveHandler=function(e){K.config.registerOnRemoveHandler(e)}}(mn||(mn={})),function(e){function n(e){var n=e.height&&"number"!=typeof e.height?t(e.height):e.height,o=e.width&&"number"!=typeof e.width?t(e.width):e.width;return{url:e.url,card:e.card,height:n,width:o,title:e.title,fallbackUrl:e.fallbackUrl,completionBotId:e.completionBotId}}function t(e){return e===Z.Large?Z.Large:e===Z.Medium?Z.Medium:Z.Small}e.startTask=function(e,t){return Ge.open(n(e),t)},e.updateTask=function(e){Ge.resize(e)},e.submitTask=function(e,n){Ge.submit(e,n)}}(gn||(gn={})),function(e){!function(e){e.Dropbox="DROPBOX",e.Box="BOX",e.Sharefile="SHAREFILE",e.GoogleDrive="GOOGLEDRIVE",e.Egnyte="EGNYTE",e.SharePoint="SharePoint"}(e.CloudStorageProvider||(e.CloudStorageProvider={})),function(e){e[e.Sharepoint=0]="Sharepoint",e[e.WopiIntegration=1]="WopiIntegration",e[e.Google=2]="Google",e[e.OneDrive=3]="OneDrive",e[e.Recent=4]="Recent",e[e.Aggregate=5]="Aggregate",e[e.FileSystem=6]="FileSystem",e[e.Search=7]="Search",e[e.AllFiles=8]="AllFiles",e[e.SharedWithMe=9]="SharedWithMe"}(e.CloudStorageProviderType||(e.CloudStorageProviderType={})),function(e){e.ClassMaterials="classMaterials"}(e.SpecialDocumentLibraryType||(e.SpecialDocumentLibraryType={})),function(e){e.Readonly="readonly"}(e.DocumentLibraryAccessType||(e.DocumentLibraryAccessType={})),e.getCloudStorageFolders=function(e){return new Promise((function(n){if(T(A.content),!e||0===e.length)throw new Error("[files.getCloudStorageFolders] channelId name cannot be null or empty");n(be("files.getCloudStorageFolders",e))}))},e.addCloudStorageFolder=function(e){return new Promise((function(n){if(T(A.content),!e||0===e.length)throw new Error("[files.addCloudStorageFolder] channelId name cannot be null or empty");n(Ie("files.addCloudStorageFolder",[e]))})).then((function(e){var n=e[0],t=e[1],o=e[2];if(n)throw n;return[t,o]}))},e.deleteCloudStorageFolder=function(e,n){return new Promise((function(t){if(T(A.content),!e)throw new Error("[files.deleteCloudStorageFolder] channelId name cannot be null or empty");if(!n)throw new Error("[files.deleteCloudStorageFolder] folderToDelete cannot be null or empty");t(be("files.deleteCloudStorageFolder",e,n))}))},e.getCloudStorageFolderContents=function(e,n){return new Promise((function(t){if(T(A.content),!e||!n)throw new Error("[files.getCloudStorageFolderContents] folder/providerCode name cannot be null or empty");if("isSubdirectory"in e&&!e.isSubdirectory)throw new Error("[files.getCloudStorageFolderContents] provided folder is not a subDirectory");t(be("files.getCloudStorageFolderContents",e,n))}))},e.openCloudStorageFile=function(e,n,t){if(T(A.content),!e||!n)throw new Error("[files.openCloudStorageFile] file/providerCode cannot be null or empty");if(e.isSubdirectory)throw new Error("[files.openCloudStorageFile] provided file is a subDirectory");Oe("files.openCloudStorageFile",[e,n,t])},e.openFilePreview=function(e){T(A.content),Oe("openFilePreview",[e.entityId,e.title,e.description,e.type,e.objectUrl,e.downloadUrl,e.webPreviewUrl,e.webEditUrl,e.baseUrl,e.editFile,e.subEntityId,e.viewerAction,e.fileOpenPreference,e.conversationId])},e.getExternalProviders=function(e){return void 0===e&&(e=!1),new Promise((function(n){T(A.content),n(be("files.getExternalProviders",e))}))},e.copyMoveFiles=function(e,n,t,o,i){return void 0===i&&(i=!1),new Promise((function(r){if(T(A.content),!e||0===e.length)throw new Error("[files.copyMoveFiles] selectedFiles cannot be null or empty");if(!n)throw new Error("[files.copyMoveFiles] providerCode cannot be null or empty");if(!t)throw new Error("[files.copyMoveFiles] destinationFolder cannot be null or empty");if(!o)throw new Error("[files.copyMoveFiles] destinationProviderCode cannot be null or empty");r(be("files.copyMoveFiles",e,n,t,o,i))}))},e.isSupported=function(){return!!F.supports.files}}(hn||(hn={})),function(e){!function(e){e.getUserJoinedTeams=function(e){return new Promise((function(n){if(T(),(u.hostClientType===O.android||u.hostClientType===O.teamsRoomsAndroid||u.hostClientType===O.teamsPhones||u.hostClientType===O.teamsDisplays)&&!P("2.0.1")){var t={errorCode:me.OLD_PLATFORM};throw new Error(JSON.stringify(t))}n(Se("getUserJoinedTeams",e))}))},e.getConfigSetting=function(e){return new Promise((function(n){T(),n(Se("getConfigSetting",e))}))},e.isSupported=function(){return!!F.supports.teams&&!!F.supports.teams.fullTrust}}(e.fullTrust||(e.fullTrust={}))}(vn||(vn={})),function(e){e.getPairedMeetingRoomInfo=function(){return new Promise((function(e){T(),e(be("meetingRoom.getPairedMeetingRoomInfo"))}))},e.sendCommandToPairedMeetingRoom=function(e){return new Promise((function(n){if(!e||0==e.length)throw new Error("[meetingRoom.sendCommandToPairedMeetingRoom] Command name cannot be null or empty");T(),n(be("meetingRoom.sendCommandToPairedMeetingRoom",e))}))},e.registerMeetingRoomCapabilitiesUpdateHandler=function(e){if(!e)throw new Error("[meetingRoom.registerMeetingRoomCapabilitiesUpdateHandler] Handler cannot be null");T(),ee("meetingRoom.meetingRoomCapabilitiesUpdate",(function(n){T(),e(n)}))},e.registerMeetingRoomStatesUpdateHandler=function(e){if(!e)throw new Error("[meetingRoom.registerMeetingRoomStatesUpdateHandler] Handler cannot be null");T(),ee("meetingRoom.meetingRoomStatesUpdate",(function(n){T(),e(n)}))},e.isSupported=function(){return!!F.supports.meetingRoom}}(wn||(wn={})),function(e){e.showNotification=function(e){T(A.content),Oe("notifications.showNotification",[e])},e.isSupported=function(){return!!F.supports.notifications}}(Cn||(Cn={})),function(e){!function(e){e.Reset="Reset",e.ZoomIn="ZoomIn",e.ZoomOut="ZoomOut",e.PanLeft="PanLeft",e.PanRight="PanRight",e.TiltUp="TiltUp",e.TiltDown="TiltDown"}(e.ControlCommand||(e.ControlCommand={})),function(e){e[e.CommandResetError=0]="CommandResetError",e[e.CommandZoomInError=1]="CommandZoomInError",e[e.CommandZoomOutError=2]="CommandZoomOutError",e[e.CommandPanLeftError=3]="CommandPanLeftError",e[e.CommandPanRightError=4]="CommandPanRightError",e[e.CommandTiltUpError=5]="CommandTiltUpError",e[e.CommandTiltDownError=6]="CommandTiltDownError",e[e.SendDataError=7]="SendDataError"}(e.ErrorReason||(e.ErrorReason={})),function(e){e[e.None=0]="None",e[e.ControlDenied=1]="ControlDenied",e[e.ControlNoResponse=2]="ControlNoResponse",e[e.ControlBusy=3]="ControlBusy",e[e.AckTimeout=4]="AckTimeout",e[e.ControlTerminated=5]="ControlTerminated",e[e.ControllerTerminated=6]="ControllerTerminated",e[e.DataChannelError=7]="DataChannelError",e[e.ControllerCancelled=8]="ControllerCancelled",e[e.ControlDisabled=9]="ControlDisabled",e[e.ControlTerminatedToAllowOtherController=10]="ControlTerminatedToAllowOtherController"}(e.SessionTerminatedReason||(e.SessionTerminatedReason={})),e.getCapableParticipants=function(e){if(!e)throw new Error("[remoteCamera.getCapableParticipants] Callback cannot be null");T(A.sidePanel),Oe("remoteCamera.getCapableParticipants",e)},e.requestControl=function(e,n){if(!e)throw new Error("[remoteCamera.requestControl] Participant cannot be null");if(!n)throw new Error("[remoteCamera.requestControl] Callback cannot be null");T(A.sidePanel),Oe("remoteCamera.requestControl",[e],n)},e.sendControlCommand=function(e,n){if(!e)throw new Error("[remoteCamera.sendControlCommand] ControlCommand cannot be null");if(!n)throw new Error("[remoteCamera.sendControlCommand] Callback cannot be null");T(A.sidePanel),Oe("remoteCamera.sendControlCommand",[e],n)},e.terminateSession=function(e){if(!e)throw new Error("[remoteCamera.terminateSession] Callback cannot be null");T(A.sidePanel),Oe("remoteCamera.terminateSession",e)},e.registerOnCapableParticipantsChangeHandler=function(e){if(!e)throw new Error("[remoteCamera.registerOnCapableParticipantsChangeHandler] Handler cannot be null");T(A.sidePanel),ee("remoteCamera.capableParticipantsChange",e)},e.registerOnErrorHandler=function(e){if(!e)throw new Error("[remoteCamera.registerOnErrorHandler] Handler cannot be null");T(A.sidePanel),ee("remoteCamera.handlerError",e)},e.registerOnDeviceStateChangeHandler=function(e){if(!e)throw new Error("[remoteCamera.registerOnDeviceStateChangeHandler] Handler cannot be null");T(A.sidePanel),ee("remoteCamera.deviceStateChange",e)},e.registerOnSessionStatusChangeHandler=function(e){if(!e)throw new Error("[remoteCamera.registerOnSessionStatusChangeHandler] Handler cannot be null");T(A.sidePanel),ee("remoteCamera.sessionStatusChange",e)},e.isSupported=function(){return!!F.supports.remoteCamera}}(yn||(yn={})),function(e){e.selectAppEntity=function(e,n,t,o){if(T(A.content),!e||0==e.length)throw new Error("[appEntity.selectAppEntity] threadId name cannot be null or empty");if(!o)throw new Error("[appEntity.selectAppEntity] Callback cannot be null");Oe("appEntity.selectAppEntity",[e,n,t],o)},e.isSupported=function(){return!!F.supports.appEntity}}(Sn||(Sn={})),function(e){!function(e){e[e.Regular=0]="Regular",e[e.Private=1]="Private",e[e.Shared=2]="Shared"}(e.ChannelType||(e.ChannelType={})),e.getTeamChannels=function(e,n){if(T(A.content),!e)throw new Error("[teams.getTeamChannels] groupId cannot be null or empty");if(!n)throw new Error("[teams.getTeamChannels] Callback cannot be null");Oe("teams.getTeamChannels",[e],n)},e.refreshSiteUrl=function(e,n){if(T(),!e)throw new Error("[teams.refreshSiteUrl] threadId cannot be null or empty");if(!n)throw new Error("[teams.refreshSiteUrl] Callback cannot be null");Oe("teams.refreshSiteUrl",[e],n)},e.isSupported=function(){return!!F.supports.teams}}(Tn||(Tn={}))})(),o})()}));
1
+ !function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("microsoftTeams",[],n):"object"==typeof exports?exports.microsoftTeams=n():e.microsoftTeams=n()}(self,(function(){return(()=>{var e={22:(e,n,t)=>{var o=t(481),i=t(426),r=i;r.v1=o,r.v4=i,e.exports=r},725:e=>{for(var n=[],t=0;t<256;++t)n[t]=(t+256).toString(16).substr(1);e.exports=function(e,t){var o=t||0,i=n;return[i[e[o++]],i[e[o++]],i[e[o++]],i[e[o++]],"-",i[e[o++]],i[e[o++]],"-",i[e[o++]],i[e[o++]],"-",i[e[o++]],i[e[o++]],"-",i[e[o++]],i[e[o++]],i[e[o++]],i[e[o++]],i[e[o++]],i[e[o++]]].join("")}},157:e=>{var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var t=new Uint8Array(16);e.exports=function(){return n(t),t}}else{var o=new Array(16);e.exports=function(){for(var e,n=0;n<16;n++)0==(3&n)&&(e=4294967296*Math.random()),o[n]=e>>>((3&n)<<3)&255;return o}}},481:(e,n,t)=>{var o,i,r=t(157),a=t(725),s=0,u=0;e.exports=function(e,n,t){var c=n&&t||0,l=n||[],d=(e=e||{}).node||o,f=void 0!==e.clockseq?e.clockseq:i;if(null==d||null==f){var p=r();null==d&&(d=o=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==f&&(f=i=16383&(p[6]<<8|p[7]))}var m=void 0!==e.msecs?e.msecs:(new Date).getTime(),g=void 0!==e.nsecs?e.nsecs:u+1,h=m-s+(g-u)/1e4;if(h<0&&void 0===e.clockseq&&(f=f+1&16383),(h<0||m>s)&&void 0===e.nsecs&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=m,u=g,i=f;var v=(1e4*(268435455&(m+=122192928e5))+g)%4294967296;l[c++]=v>>>24&255,l[c++]=v>>>16&255,l[c++]=v>>>8&255,l[c++]=255&v;var w=m/4294967296*1e4&268435455;l[c++]=w>>>8&255,l[c++]=255&w,l[c++]=w>>>24&15|16,l[c++]=w>>>16&255,l[c++]=f>>>8|128,l[c++]=255&f;for(var C=0;C<6;++C)l[c+C]=d[C];return n||a(l)}},426:(e,n,t)=>{var o=t(157),i=t(725);e.exports=function(e,n,t){var r=n&&t||0;"string"==typeof e&&(n="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||o)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,n)for(var s=0;s<16;++s)n[r+s]=a[s];return n||i(a)}}},n={};function t(o){var i=n[o];if(void 0!==i)return i.exports;var r=n[o]={exports:{}};return e[o](r,r.exports,t),r.exports}(()=>{t.d=(e,n)=>{for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})}})(),(()=>{t.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n)})(),(()=>{t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var o={};return(()=>{"use strict";t.r(o),t.d(o,{ChannelType:()=>V,ChildAppWindow:()=>Ge,DialogDimension:()=>k,ErrorCode:()=>pe,FileOpenPreference:()=>fe,FrameContexts:()=>A,HostClientType:()=>O,HostName:()=>R,NotificationTypes:()=>ue,ParentAppWindow:()=>je,TaskModuleDimension:()=>K,TeamType:()=>M,UserSettingTypes:()=>le,UserTeamRole:()=>N,ViewerActionTypes:()=>ce,app:()=>j,appEntity:()=>yn,appInitialization:()=>fn,appInstallDialog:()=>me,authentication:()=>z,bot:()=>se,calendar:()=>an,call:()=>dn,chat:()=>de,dialog:()=>ze,enablePrintCapability:()=>bn,executeDeepLink:()=>xn,files:()=>gn,getContext:()=>En,getMruTabInstances:()=>Hn,getTabInstances:()=>Un,initialize:()=>Pn,initializeWithFrameContext:()=>Vn,legacy:()=>hn,location:()=>tn,logs:()=>I,mail:()=>sn,media:()=>nn,meeting:()=>on,meetingRoom:()=>vn,menus:()=>E,monetization:()=>rn,navigateBack:()=>Kn,navigateCrossDomain:()=>qn,navigateToTab:()=>jn,notifications:()=>wn,pages:()=>q,people:()=>un,print:()=>In,registerAppButtonClickHandler:()=>An,registerAppButtonHoverEnterHandler:()=>Mn,registerAppButtonHoverLeaveHandler:()=>Nn,registerBackButtonHandler:()=>kn,registerBeforeUnloadHandler:()=>Ln,registerCustomHandler:()=>x,registerEnterSettingsHandler:()=>Wn,registerFocusEnterHandler:()=>Dn,registerFullScreenHandler:()=>Rn,registerOnLoadHandler:()=>Fn,registerOnThemeChangeHandler:()=>On,registerUserSettingsChangeHandler:()=>B,remoteCamera:()=>Cn,returnFocus:()=>Gn,sendCustomEvent:()=>_,sendCustomMessage:()=>H,setFrameContext:()=>Bn,settings:()=>pn,shareDeepLink:()=>_n,sharing:()=>ln,tasks:()=>mn,teams:()=>Sn,teamsCore:()=>G,uploadCustomApp:()=>U,video:()=>cn});var e="2.0.0-beta.3-dev.20",n="2.0.1",i="1.9.0",r="1.8.0",a=["teams.microsoft.com","teams.microsoft.us","gov.teams.microsoft.us","dod.teams.microsoft.us","int.teams.microsoft.com","teams.live.com","devspaces.skype.com","ssauth.skype.com","local.teams.live.com","local.teams.live.com:8080","local.teams.office.com","local.teams.office.com:8080","msft.spoppe.com","*.sharepoint.com","*.sharepoint-df.com","*.sharepointonline.com","outlook.office.com","outlook-sdf.office.com","*.teams.microsoft.com","www.office.com","word.office.com","excel.office.com","powerpoint.office.com","www.officeppe.com","*.www.office.com"],s=/^https:\/\//,u=function(){function e(){}return e.initializeCalled=!1,e.initializeCompleted=!1,e.additionalValidOrigins=[],e.isFramelessWindow=!1,e.printCapabilityEnabled=!1,e}(),c=t(22);function l(e,n){if("*."===e.substring(0,2)){var t=e.substring(1);if(n.length>t.length&&n.split(".").length===t.split(".").length&&n.substring(n.length-t.length)===t)return!0}else if(e===n)return!0;return!1}function d(e){if("https:"!==e.protocol)return!1;var n=e.host;if(a.some((function(e){return l(e,n)})))return!0;for(var t=0,o=u.additionalValidOrigins;t<o.length;t++){var i=o[t];if(l("https://"===i.substring(0,8)?i.substring(8):i,n))return!0}return!1}function f(e){return function(n,t){if(!n)throw new Error(e||t)}}function p(e,n){if("string"!=typeof e||"string"!=typeof n)return NaN;var t=e.split("."),o=n.split(".");function i(e){return/^\d+$/.test(e)}if(!t.every(i)||!o.every(i))return NaN;for(;t.length<o.length;)t.push("0");for(;o.length<t.length;)o.push("0");for(var r=0;r<t.length;++r)if(Number(t[r])!=Number(o[r]))return Number(t[r])>Number(o[r])?1:-1;return 0}function m(){return c.v4()}function g(e){return Object.keys(e).forEach((function(n){"object"==typeof e[n]&&g(e[n])})),Object.freeze(e)}function h(e,n){for(var t=[],o=2;o<arguments.length;o++)t[o-2]=arguments[o];var i=e.apply(void 0,t);return i.then((function(e){n&&n(void 0,e)})).catch((function(e){n&&n(e)})),i}function v(e,n){for(var t=[],o=2;o<arguments.length;o++)t[o-2]=arguments[o];var i=e.apply(void 0,t);return i.then((function(){n&&n(void 0,!0)})).catch((function(e){n&&n(e,!1)})),i}function w(e,n){for(var t=[],o=2;o<arguments.length;o++)t[o-2]=arguments[o];var i=e.apply(void 0,t);return i.then((function(){n&&n(null)})).catch((function(e){n&&n(e)})),i}function C(e,n){for(var t=[],o=2;o<arguments.length;o++)t[o-2]=arguments[o];var i=e.apply(void 0,t);return i.then((function(e){n&&n(null,e)})).catch((function(e){n&&n(e,null)})),i}function y(e,n,t){return new Promise((function(o,i){var r=setTimeout(i,n,t);e().then((function(e){clearTimeout(r),o(e)})).catch((function(e){clearTimeout(r),i(e)}))}))}function S(e){var n=new URL("https://teams.microsoft.com/l/entity/"+encodeURIComponent(e.appId)+"/"+encodeURIComponent(e.pageId));return e.webUrl&&n.searchParams.append("webUrl",e.webUrl),(e.channelId||e.subPageId)&&n.searchParams.append("context",JSON.stringify({channelId:e.channelId,subEntityId:e.subPageId})),n.toString()}function T(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!u.initializeCalled)throw new Error("The library has not yet been initialized");if(u.frameContext&&e&&e.length>0){for(var t=!1,o=0;o<e.length;o++)if(e[o]===u.frameContext){t=!0;break}if(!t)throw new Error("This call is only allowed in following contexts: "+JSON.stringify(e)+'. Current context: "'+u.frameContext+'".')}}function P(e){void 0===e&&(e=n);var t=p(u.clientSupportedSDKVersion,e);return!isNaN(t)&&t>=0}function b(e){var n=u.additionalValidOrigins.concat(e.filter((function(e){return"string"==typeof e&&s.test(e)}))),t={};n=n.filter((function(e){return!t[e]&&(t[e]=!0,!0)})),u.additionalValidOrigins=n}var I,E,O,R,A,M,N,k,F={apiVersion:1,supports:{appInstallDialog:void 0,bot:void 0,calendar:void 0,call:void 0,chat:void 0,dialog:void 0,location:void 0,logs:void 0,mail:void 0,media:void 0,meeting:void 0,meetingRoom:void 0,menus:void 0,monetization:void 0,notifications:void 0,pages:{appButton:void 0,tabs:void 0,config:void 0,backStack:void 0,fullTrust:void 0},people:void 0,remoteCamera:void 0,sharing:void 0,teams:{fullTrust:void 0},teamsCore:void 0,video:void 0}},L={apiVersion:1,isLegacyTeams:!0,supports:{appInstallDialog:{},appEntity:{},bot:{},calendar:{},call:{},chat:{},dialog:{},files:{},location:{},logs:{},mail:{},media:{},meeting:{},meetingRoom:{},menus:{},monetization:{},notifications:{},pages:{appButton:{},tabs:{},config:{},backStack:{},fullTrust:{}},people:{},remoteCamera:{},sharing:{},teams:{fullTrust:{}},teamsCore:{},video:{}}};function D(e){F=g(e)}function W(){E.initialize()}function U(e,n){T(),Ee("uploadCustomApp",[e],n||f())}function H(e,n,t){T(),Ee(e,n,t)}function _(e,n){if(T(),!he.childWindow)throw new Error("The child window has not yet been initialized or is not present");_e(e,n)}function x(e,n){var t=this;T(),$(e,(function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return n.apply(t,e)}))}function B(e,n){T(),$("userSettingsChange",n,!0,[e])}!function(e){e.registerGetLogHandler=function(e){T(),e?$("log.request",(function(){Ee("log.receive",[e()])})):ee("log.request")},e.isSupported=function(){return!!F.supports.logs}}(I||(I={})),function(e){var n,t,o,i=function(){return function(){this.enabled=!0,this.selected=!1}}();function r(e){o&&o(e)||(T(),Ee("viewConfigItemPress",[e]))}function a(e){n&&n(e)||(T(),Ee("handleNavBarMenuItemPress",[e]))}function s(e){t&&t(e)||(T(),Ee("handleActionMenuItemPress",[e]))}e.MenuItem=i,function(e){e.dropDown="dropDown",e.popOver="popOver"}(e.MenuListType||(e.MenuListType={})),e.initialize=function(){$("navBarMenuItemPress",a,!1),$("actionMenuItemPress",s,!1),$("setModuleView",r,!1)},e.setUpViews=function(e,n){T(),o=n,Ee("setUpViews",[e])},e.setNavBarMenu=function(e,t){T(),n=t,Ee("setNavBarMenu",[e])},e.showActionMenu=function(e,n){T(),t=n,Ee("showActionMenu",[e])},e.isSupported=function(){return!!F.supports.menus}}(E||(E={})),function(e){e.desktop="desktop",e.web="web",e.android="android",e.ios="ios",e.rigel="rigel",e.surfaceHub="surfaceHub",e.teamsRoomsWindows="teamsRoomsWindows",e.teamsRoomsAndroid="teamsRoomsAndroid",e.teamsPhones="teamsPhones",e.teamsDisplays="teamsDisplays"}(O||(O={})),function(e){e.office="Office",e.outlook="Outlook",e.orange="Orange",e.teams="Teams"}(R||(R={})),function(e){e.settings="settings",e.content="content",e.authentication="authentication",e.remove="remove",e.task="task",e.sidePanel="sidePanel",e.stage="stage",e.meetingStage="meetingStage"}(A||(A={})),function(e){e[e.Standard=0]="Standard",e[e.Edu=1]="Edu",e[e.Class=2]="Class",e[e.Plc=3]="Plc",e[e.Staff=4]="Staff"}(M||(M={})),function(e){e[e.Admin=0]="Admin",e[e.User=1]="User",e[e.Guest=2]="Guest"}(N||(N={})),function(e){e.Large="large",e.Medium="medium",e.Small="small"}(k||(k={}));var V,z,G,j,q,K=k;function Z(e){return{app:{locale:e.locale,sessionId:e.appSessionId?e.appSessionId:"",theme:e.theme?e.theme:"default",iconPositionVertical:e.appIconPosition,osLocaleInfo:e.osLocaleInfo,parentMessageId:e.parentMessageId,userClickTime:e.userClickTime,userFileOpenPreference:e.userFileOpenPreference,host:{name:e.hostName?e.hostName:R.teams,clientType:e.hostClientType?e.hostClientType:O.web,sessionId:e.sessionId?e.sessionId:"",ringId:e.ringId},appLaunchId:e.appLaunchId},page:{id:e.entityId,frameContext:e.frameContext?e.frameContext:u.frameContext,subPageId:e.subEntityId,isFullScreen:e.isFullScreen,isMultiWindow:e.isMultiWindow,sourceOrigin:e.sourceOrigin},user:{id:e.userObjectId,displayName:e.userDisplayName,isCallingAllowed:e.isCallingAllowed,isPSTNCallingAllowed:e.isPSTNCallingAllowed,licenseType:e.userLicenseType,loginHint:e.loginHint,userPrincipalName:e.userPrincipalName,tenant:e.tid?{id:e.tid,teamsSku:e.tenantSKU}:void 0},channel:e.channelId?{id:e.channelId,displayName:e.channelName,relativeUrl:e.channelRelativeUrl,membershipType:e.channelType,defaultOneNoteSectionId:e.defaultOneNoteSectionId,ownerGroupId:e.hostTeamGroupId,ownerTenantId:e.hostTeamTenantId}:void 0,chat:e.chatId?{id:e.chatId}:void 0,meeting:e.meetingId?{id:e.meetingId}:void 0,sharepoint:e.sharepoint,team:e.teamId?{internalId:e.teamId,displayName:e.teamName,type:e.teamType,groupId:e.groupId,templateId:e.teamTemplateId,isArchived:e.isTeamArchived,userRole:e.userTeamRole}:void 0,sharePointSite:e.teamSiteUrl||e.teamSiteDomain||e.teamSitePath?{url:e.teamSiteUrl,domain:e.teamSiteDomain,path:e.teamSitePath,id:e.teamSiteId}:void 0}}!function(e){e.Regular="Regular",e.Private="Private",e.Shared="Shared"}(V||(V={})),function(e){var n,t,o;function i(e){return new Promise((function(t,o){if(u.hostClientType===O.desktop||u.hostClientType===O.android||u.hostClientType===O.ios||u.hostClientType===O.rigel||u.hostClientType===O.teamsRoomsWindows||u.hostClientType===O.teamsRoomsAndroid||u.hostClientType===O.teamsPhones||u.hostClientType===O.teamsDisplays){var i=document.createElement("a");i.href=e.url,t(be("authentication.authenticate",[i.href,e.width,e.height]).then((function(e){var n=e[0],t=e[1];if(n)return t;throw new Error(t)})))}else n={success:t,fail:o},c(e)}))}function r(e){return new Promise((function(n){n(be("authentication.getAuthToken",[e.resources,e.claims,e.silent]))})).then((function(e){var n=e[0],t=e[1];if(n)return t;throw new Error(t)}))}function a(){return new Promise((function(e){e(be("authentication.getUser"))})).then((function(e){var n=e[0],t=e[1];if(n)return t;throw new Error(t)}))}function s(){l();try{he.childWindow&&he.childWindow.close()}finally{he.childWindow=null,he.childOrigin=null}}function c(e){s();var n=e.width||600,t=e.height||400;n=Math.min(n,he.currentWindow.outerWidth-400),t=Math.min(t,he.currentWindow.outerHeight-200);var o=document.createElement("a");o.href=e.url;var i=void 0!==he.currentWindow.screenLeft?he.currentWindow.screenLeft:he.currentWindow.screenX,r=void 0!==he.currentWindow.screenTop?he.currentWindow.screenTop:he.currentWindow.screenY;i+=he.currentWindow.outerWidth/2-n/2,r+=he.currentWindow.outerHeight/2-t/2,he.childWindow=he.currentWindow.open(o.href,"_blank","toolbar=no, location=yes, status=no, menubar=no, scrollbars=yes, top="+r+", left="+i+", width="+n+", height="+t),he.childWindow?d():p("FailedToOpenWindow")}function l(){t&&(clearInterval(t),t=0),ee("initialize"),ee("navigateCrossDomain")}function d(){l(),t=he.currentWindow.setInterval((function(){if(!he.childWindow||he.childWindow.closed)p("CancelledByUser");else{var e=he.childOrigin;try{he.childOrigin="*",_e("ping")}finally{he.childOrigin=e}}}),100),$("initialize",(function(){return[A.authentication,u.hostClientType]})),$("navigateCrossDomain",(function(){return!1}))}function f(e){try{n&&n.success(e)}finally{n=null,s()}}function p(e){try{n&&n.fail(new Error(e))}finally{n=null,s()}}function m(e,n,t){if(e){var o=document.createElement("a");o.href=decodeURIComponent(e),o.host&&o.host!==window.location.host&&"outlook.office.com"===o.host&&o.search.indexOf("client_type=Win32_Outlook")>-1&&(n&&"result"===n&&(t&&(o.href=g(o.href,"result",t)),he.currentWindow.location.assign(g(o.href,"authSuccess",""))),n&&"reason"===n&&(t&&(o.href=g(o.href,"reason",t)),he.currentWindow.location.assign(g(o.href,"authFailure",""))))}}function g(e,n,t){var o=e.indexOf("#"),i=-1===o?"#":e.substr(o);return i=i+"&"+n+(""!==t?"="+t:""),(e=-1===o?e:e.substr(0,o))+i}e.initialize=function(){$("authentication.authenticate.success",f,!1),$("authentication.authenticate.failure",p,!1)},e.registerAuthenticationHandlers=function(e){o=e},e.authenticate=function(e){var n=void 0!==e,t=n?e:o;if(!t)throw new Error("No parameters are provided for authentication");return T(A.content,A.sidePanel,A.settings,A.remove,A.task,A.stage,A.meetingStage),i(t).then((function(e){try{return t&&t.successCallback?(t.successCallback(e),""):e}finally{n||(o=null)}})).catch((function(e){try{if(t&&t.failureCallback)return t.failureCallback(e.message),"";throw e}finally{n||(o=null)}}))},e.getAuthToken=function(e){return T(),r(e).then((function(n){return e&&e.successCallback?(e.successCallback(n),""):n})).catch((function(n){if(e&&e.failureCallback)return e.failureCallback(n.message),"";throw n}))},e.getUser=function(e){return T(),a().then((function(n){return e&&e.successCallback?(e.successCallback(n),null):n})).catch((function(n){if(e&&e.failureCallback)return e.failureCallback(n.message),null;throw n}))},e.notifySuccess=function(e,n){m(n,"result",e),T(A.authentication),Ee("authentication.authenticate.success",[e]),Ue(he.parentWindow,(function(){return setTimeout((function(){return he.currentWindow.close()}),200)}))},e.notifyFailure=function(e,n){m(n,"reason",e),T(A.authentication),Ee("authentication.authenticate.failure",[e]),Ue(he.parentWindow,(function(){return setTimeout((function(){return he.currentWindow.close()}),200)}))}}(z||(z={})),function(e){function n(){window.print()}e.enablePrintCapability=function(){u.printCapabilityEnabled||(u.printCapabilityEnabled=!0,T(),document.addEventListener("keydown",(function(e){(e.ctrlKey||e.metaKey)&&80===e.keyCode&&(n(),e.cancelBubble=!0,e.preventDefault(),e.stopImmediatePropagation())})))},e.print=n,e.registerOnLoadHandler=function(e){T(),oe(e)},e.registerBeforeUnloadHandler=function(e){T(),re(e)},e.registerFocusEnterHandler=function(e){T(),$("focusEnter",e)},e.isSupported=function(){return!!F.supports.teamsCore}}(G||(G={})),function(t){t.Messages={AppLoaded:"appInitialization.appLoaded",Success:"appInitialization.success",Failure:"appInitialization.failure",ExpectedFailure:"appInitialization.expectedFailure"},function(e){e.AuthFailed="AuthFailed",e.Timeout="Timeout",e.Other="Other"}(t.FailedReason||(t.FailedReason={})),function(e){e.PermissionError="PermissionError",e.NotFound="NotFound",e.Throttling="Throttling",e.Offline="Offline",e.Other="Other"}(t.ExpectedFailureReason||(t.ExpectedFailureReason={})),t.isInitialized=function(){return u.initializeCalled},t.getFrameContext=function(){return u.frameContext};function o(e){return new Promise((function(t){u.initializeCalled||(u.initializeCalled=!0,X(),u.initializePromise=we(e).then((function(e){var t=e.context,o=e.clientType,i=e.runtimeConfig,r=e.clientSupportedSDKVersion,a=void 0===r?n:r;u.frameContext=t,u.hostClientType=o,u.clientSupportedSDKVersion=a;try{var s=JSON.parse(i);i&&D(s)}catch(e){if(!(e instanceof SyntaxError))throw e;try{isNaN(p(i,n))||(u.clientSupportedSDKVersion=i);s=JSON.parse(a);a&&D(s)}catch(e){if(!(e instanceof SyntaxError))throw e;D(L)}}u.initializeCompleted=!0})),z.initialize(),q.config.initialize(),W()),Array.isArray(e)&&b(e),t(u.initializePromise)}))}function i(e){T(),ne(e)}t.initialize=function(e){return y((function(){return o(e)}),5e3,new Error("SDK initialization timed out."))},t._initialize=function(e){he.currentWindow=e},t._uninitialize=function(){u.initializeCalled&&(u.frameContext&&(i(null),q.backStack.registerBackButtonHandler(null),q.registerFullScreenHandler(null),G.registerBeforeUnloadHandler(null),G.registerOnLoadHandler(null),I.registerGetLogHandler(null)),u.frameContext===A.settings&&q.config.registerOnSaveHandler(null),u.frameContext===A.remove&&q.config.registerOnRemoveHandler(null),u.initializeCalled=!1,u.initializeCompleted=!1,u.initializePromise=null,u.additionalValidOrigins=[],u.frameContext=null,u.hostClientType=null,u.isFramelessWindow=!1,Ce())},t.getContext=function(){return new Promise((function(e){T(),e(ye("getContext"))})).then((function(e){return Z(e)}))},t.notifyAppLoaded=function(){T(),Ee(t.Messages.AppLoaded,[e])},t.notifySuccess=function(){T(),Ee(t.Messages.Success,[e])},t.notifyFailure=function(e){T(),Ee(t.Messages.Failure,[e.reason,e.message])},t.notifyExpectedFailure=function(e){T(),Ee(t.Messages.ExpectedFailure,[e.reason,e.message])},t.registerOnThemeChangeHandler=i,t.openLink=function(e){return new Promise((function(n){T(A.content,A.sidePanel,A.settings,A.task,A.stage,A.meetingStage),n(Se("executeDeepLink",e))}))}}(j||(j={})),function(e){function n(e){T(A.content),Ee("setFrameContext",[e])}e.returnFocus=function(e){T(A.content),Ee("returnFocus",[e])},e.setCurrentFrame=n,e.initializeWithFrameContext=function(e,t,o){j.initialize(o).then((function(){return t&&t()})),n(e)},e.navigateCrossDomain=function(e){return new Promise((function(n){T(A.content,A.sidePanel,A.settings,A.remove,A.task,A.stage,A.meetingStage);n(Te("navigateCrossDomain","Cross-origin navigation is only supported for URLs matching the pattern registered in the manifest.",e))}))},e.navigateToApp=function(e){return new Promise((function(n){T(A.content,A.sidePanel,A.settings,A.task,A.stage,A.meetingStage),F.isLegacyTeams?n(Se("executeDeepLink",S(e))):n(Se("pages.navigateToApp",e))}))},e.shareDeepLink=function(e){T(A.content,A.sidePanel,A.meetingStage),Ee("shareDeepLink",[e.subEntityId,e.subEntityLabel,e.subEntityWebUrl])},e.registerFullScreenHandler=function(e){T(),$("fullScreenChange",e)},e.isSupported=function(){return!!F.supports.pages},function(e){e.navigateToTab=function(e){return new Promise((function(n){T();n(Te("navigateToTab","Invalid internalTabInstanceId and/or channelId were/was provided",e))}))},e.getTabInstances=function(e){return new Promise((function(n){T(),n(ye("getTabInstances",e))}))},e.getMruTabInstances=function(e){return new Promise((function(n){T(),n(ye("getMruTabInstances",e))}))},e.isSupported=function(){return!!F.supports.pages&&!!F.supports.pages.tabs}}(e.tabs||(e.tabs={})),function(e){var n,t;function o(e){var t=new i(e);n?n(t):t.notifySuccess()}e.initialize=function(){$("settings.save",o,!1),$("settings.remove",r,!1)},e.setValidityState=function(e){T(A.settings,A.remove),Ee("settings.setValidityState",[e])},e.getConfig=function(){return new Promise((function(e){T(A.content,A.settings,A.remove,A.sidePanel),e(ye("settings.getSettings"))}))},e.setConfig=function(e){return new Promise((function(n){T(A.content,A.settings,A.sidePanel),n(Se("settings.setSettings",e))}))},e.registerOnSaveHandler=function(e){T(A.settings),n=e,e&&Ee("registerHandler",["save"])},e.registerOnRemoveHandler=function(e){T(A.remove,A.settings),t=e,e&&Ee("registerHandler",["remove"])},e.registerChangeConfigHandler=function(e){T(A.content),$("changeSettings",e)};var i=function(){function e(e){this.notified=!1,this.result=e||{}}return e.prototype.notifySuccess=function(){this.ensureNotNotified(),Ee("settings.save.success"),this.notified=!0},e.prototype.notifyFailure=function(e){this.ensureNotNotified(),Ee("settings.save.failure",[e]),this.notified=!0},e.prototype.ensureNotNotified=function(){if(this.notified)throw new Error("The SaveEvent may only notify success or failure once.")},e}();function r(){var e=new a;t?t(e):e.notifySuccess()}var a=function(){function e(){this.notified=!1}return e.prototype.notifySuccess=function(){this.ensureNotNotified(),Ee("settings.remove.success"),this.notified=!0},e.prototype.notifyFailure=function(e){this.ensureNotNotified(),Ee("settings.remove.failure",[e]),this.notified=!0},e.prototype.ensureNotNotified=function(){if(this.notified)throw new Error("The removeEvent may only notify success or failure once.")},e}();e.isSupported=function(){return!!F.supports.pages&&!!F.supports.pages.config}}(e.config||(e.config={})),function(e){var n;function t(){return new Promise((function(e){T();e(Te("navigateBack","Back navigation is not supported in the current client or context."))}))}function o(){n&&n()||t()}e._initialize=function(){$("backButtonPress",o,!1)},e.navigateBack=t,e.registerBackButtonHandler=function(e){n=e,e&&Ee("registerHandler",["backButton"])},e.isSupported=function(){return!!F.supports.pages&&!!F.supports.pages.backStack}}(e.backStack||(e.backStack={})),function(e){e.enterFullscreen=function(){T(A.content),Ee("enterFullscreen",[])},e.exitFullscreen=function(){T(A.content),Ee("exitFullscreen",[])},e.isSupported=function(){return!!F.supports.pages&&!!F.supports.pages.fullTrust}}(e.fullTrust||(e.fullTrust={})),function(e){e.onClick=function(e){T(A.content),$("appButtonClick",e)},e.onHoverEnter=function(e){T(A.content),$("appButtonHoverEnter",e)},e.onHoverLeave=function(e){T(A.content),$("appButtonHoverLeave",e)},e.isSupported=function(){return!!F.supports.pages&&!!F.supports.pages.appButton}}(e.appButton||(e.appButton={}))}(q||(q={}));var J=function(e,n,t){if(t||2===arguments.length)for(var o,i=0,r=n.length;i<r;i++)!o&&i in n||(o||(o=Array.prototype.slice.call(n,0,i)),o[i]=n[i]);return e.concat(o||Array.prototype.slice.call(n))},Q=function(){function e(){}return e.handlers={},e}();function X(){Q.handlers.themeChange=te,Q.handlers.load=ie,Q.handlers.beforeUnload=ae,q.backStack._initialize()}function Y(e,n){var t=Q.handlers[e];return t?[!0,t.apply(this,n)]:[!1,void 0]}function $(e,n,t,o){void 0===t&&(t=!0),void 0===o&&(o=[]),n?(Q.handlers[e]=n,t&&Ee("registerHandler",J([e],o,!0))):delete Q.handlers[e]}function ee(e){delete Q.handlers[e]}function ne(e){Q.themeChangeHandler=e,e&&Ee("registerHandler",["themeChange"])}function te(e){Q.themeChangeHandler&&Q.themeChangeHandler(e),he.childWindow&&_e("themeChange",[e])}function oe(e){Q.loadHandler=e,e&&Ee("registerHandler",["load"])}function ie(e){Q.loadHandler&&Q.loadHandler(e),he.childWindow&&_e("load",[e])}function re(e){Q.beforeUnloadHandler=e,e&&Ee("registerHandler",["beforeUnload"])}function ae(){var e=function(){Ee("readyToUnload",[])};Q.beforeUnloadHandler&&Q.beforeUnloadHandler(e)||e()}var se,ue,ce,le,de,fe,pe,me,ge=function(e,n,t){if(t||2===arguments.length)for(var o,i=0,r=n.length;i<r;i++)!o&&i in n||(o||(o=Array.prototype.slice.call(n,0,i)),o[i]=n[i]);return e.concat(o||Array.prototype.slice.call(n))},he=function(){return function(){}}(),ve=function(){function e(){}return e.parentMessageQueue=[],e.childMessageQueue=[],e.nextMessageId=0,e.callbacks={},e.promiseCallbacks={},e}();function we(n){if(ve.messageListener=function(e){return Re(e)},he.currentWindow=he.currentWindow||window,he.parentWindow=he.currentWindow.parent!==he.currentWindow.self?he.currentWindow.parent:he.currentWindow.opener,(he.parentWindow||n)&&he.currentWindow.addEventListener("message",ve.messageListener,!1),!he.parentWindow){var t=he.currentWindow;if(!t.nativeInterface)return Promise.reject(new Error("Initialization Failed. No Parent window found."));u.isFramelessWindow=!0,t.onNativeMessage=Ne}try{return he.parentOrigin="*",be("initialize",[e]).then((function(e){return{context:e[0],clientType:e[1],runtimeConfig:e[2],clientSupportedSDKVersion:e[3]}}))}finally{he.parentOrigin=null}}function Ce(){he.currentWindow.removeEventListener("message",ve.messageListener,!1),he.parentWindow=null,he.parentOrigin=null,he.childWindow=null,he.childOrigin=null,ve.parentMessageQueue=[],ve.childMessageQueue=[],ve.nextMessageId=0,ve.callbacks={}}function ye(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return be(e,n).then((function(e){return e[0]}))}function Se(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return be(e,n).then((function(e){var n=e[0],t=e[1];if(!n)throw new Error(t)}))}function Te(e,n){for(var t=[],o=2;o<arguments.length;o++)t[o-2]=arguments[o];return be(e,t).then((function(e){var t=e[0],o=e[1];if(!t)throw new Error(o||n)}))}function Pe(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return be(e,n).then((function(e){var n=e[0],t=e[1];if(n)throw n;return t}))}function be(e,n){return void 0===n&&(n=void 0),new Promise((function(t){t(Ie(Oe(e,n).id))}))}function Ie(e){return new Promise((function(n){ve.promiseCallbacks[e]=n}))}function Ee(e,n,t){var o;n instanceof Function?t=n:n instanceof Array&&(o=n);var i=Oe(e,o);t&&(ve.callbacks[i.id]=t)}function Oe(e,n){var t=he.parentWindow,o=xe(e,n);if(u.isFramelessWindow)he.currentWindow&&he.currentWindow.nativeInterface&&he.currentWindow.nativeInterface.framelessPostMessage(JSON.stringify(o));else{var i=De(t);t&&i?t.postMessage(o,i):Le(t).push(o)}return o}function Re(e){if(e&&e.data&&"object"==typeof e.data){var n=e.source||e.originalEvent&&e.originalEvent.source,t=e.origin||e.originalEvent&&e.originalEvent.origin;Ae(n,t)&&(Me(n,t),n===he.parentWindow?Ne(e):n===he.childWindow&&Fe(e))}}function Ae(e,n){return(!he.currentWindow||e!==he.currentWindow)&&(!!(he.currentWindow&&he.currentWindow.location&&n&&n===he.currentWindow.location.origin)||d(new URL(n)))}function Me(e,n){u.isFramelessWindow||he.parentWindow&&!he.parentWindow.closed&&e!==he.parentWindow?he.childWindow&&!he.childWindow.closed&&e!==he.childWindow||(he.childWindow=e,he.childOrigin=n):(he.parentWindow=e,he.parentOrigin=n),he.parentWindow&&he.parentWindow.closed&&(he.parentWindow=null,he.parentOrigin=null),he.childWindow&&he.childWindow.closed&&(he.childWindow=null,he.childOrigin=null),We(he.parentWindow),We(he.childWindow)}function Ne(e){if("id"in e.data&&"number"==typeof e.data.id){var n=e.data,t=ve.callbacks[n.id];t&&(t.apply(null,ge(ge([],n.args,!0),[n.isPartialResponse],!1)),ke(e)||delete ve.callbacks[n.id]);var o=ve.promiseCallbacks[n.id];o&&(o(n.args),delete ve.promiseCallbacks[n.id])}else if("func"in e.data&&"string"==typeof e.data.func){Y((n=e.data).func,n.args)}}function ke(e){return!0===e.data.isPartialResponse}function Fe(e){if("id"in e.data&&"func"in e.data){var n=e.data,t=Y(n.func,n.args),o=t[0],i=t[1];o&&void 0!==i?He(n.id,Array.isArray(i)?i:[i]):Ee(n.func,n.args,(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(he.childWindow){var o=e.pop();He(n.id,e,o)}}))}}function Le(e){return e===he.parentWindow?ve.parentMessageQueue:e===he.childWindow?ve.childMessageQueue:[]}function De(e){return e===he.parentWindow?he.parentOrigin:e===he.childWindow?he.childOrigin:null}function We(e){for(var n=De(e),t=Le(e);e&&n&&t.length>0;)e.postMessage(t.shift(),n)}function Ue(e,n){var t=he.currentWindow.setInterval((function(){0===Le(e).length&&(clearInterval(t),n())}),100)}function He(e,n,t){var o=he.childWindow,i=Be(e,n,t),r=De(o);o&&r&&o.postMessage(i,r)}function _e(e,n){var t=he.childWindow,o=Ve(e,n),i=De(t);t&&i?t.postMessage(o,i):Le(t).push(o)}function xe(e,n){return{id:ve.nextMessageId++,func:e,timestamp:Date.now(),args:n||[]}}function Be(e,n,t){return{id:e,args:n||[],isPartialResponse:t}}function Ve(e,n){return{func:e,args:n||[]}}!function(e){e.sendQuery=function(e,n,t){T(),Ee("bot.executeQuery",[e],(function(e,o){e?n(o):t(o)}))},e.getSupportedCommands=function(e,n){T(),Ee("bot.getSupportedCommands",(function(t,o){t?e(o):n(o)}))},e.authenticate=function(e,n,t){T(),Ee("bot.authenticate",[e],(function(e,o){e?n(o):t(o)}))},function(e){e.Results="Results",e.Auth="Auth"}(e.ResponseType||(e.ResponseType={})),e.isSupported=function(){return!!F.supports.bot}}(se||(se={})),function(e){e.fileDownloadStart="fileDownloadStart",e.fileDownloadComplete="fileDownloadComplete"}(ue||(ue={})),function(e){e.view="view",e.edit="edit",e.editNew="editNew"}(ce||(ce={})),function(e){e.fileOpenPreference="fileOpenPreference",e.theme="theme"}(le||(le={})),function(e){e.openConversation=function(e){return new Promise((function(n){T(A.content);var t=Se("conversations.openConversation",{title:e.title,subEntityId:e.subEntityId,conversationId:e.conversationId,channelId:e.channelId,entityId:e.entityId});e.onStartConversation&&$("startConversation",(function(n,t,o,i){return e.onStartConversation({subEntityId:n,conversationId:t,channelId:o,entityId:i})})),e.onCloseConversation&&$("closeConversation",(function(n,t,o,i){return e.onCloseConversation({subEntityId:n,conversationId:t,channelId:o,entityId:i})})),n(t)}))},e.closeConversation=function(){T(A.content),Ee("conversations.closeConversation"),ee("startConversation"),ee("closeConversation")},e.getChatMembers=function(){return new Promise((function(e){T(),e(ye("getChatMembers"))}))},e.isSupported=function(){return!!F.supports.chat}}(de||(de={})),function(e){e.Inline="inline",e.Desktop="desktop",e.Web="web"}(fe||(fe={})),function(e){e[e.NOT_SUPPORTED_ON_PLATFORM=100]="NOT_SUPPORTED_ON_PLATFORM",e[e.INTERNAL_ERROR=500]="INTERNAL_ERROR",e[e.NOT_SUPPORTED_IN_CURRENT_CONTEXT=501]="NOT_SUPPORTED_IN_CURRENT_CONTEXT",e[e.PERMISSION_DENIED=1e3]="PERMISSION_DENIED",e[e.NETWORK_ERROR=2e3]="NETWORK_ERROR",e[e.NO_HW_SUPPORT=3e3]="NO_HW_SUPPORT",e[e.INVALID_ARGUMENTS=4e3]="INVALID_ARGUMENTS",e[e.UNAUTHORIZED_USER_OPERATION=5e3]="UNAUTHORIZED_USER_OPERATION",e[e.INSUFFICIENT_RESOURCES=6e3]="INSUFFICIENT_RESOURCES",e[e.THROTTLE=7e3]="THROTTLE",e[e.USER_ABORT=8e3]="USER_ABORT",e[e.OPERATION_TIMED_OUT=8001]="OPERATION_TIMED_OUT",e[e.OLD_PLATFORM=9e3]="OLD_PLATFORM",e[e.FILE_NOT_FOUND=404]="FILE_NOT_FOUND",e[e.SIZE_EXCEEDED=1e4]="SIZE_EXCEEDED"}(pe||(pe={})),function(e){function n(){return!!F.supports.appInstallDialog}e.openAppInstallDialog=function(e){return new Promise((function(t){if(T(A.content,A.sidePanel,A.settings,A.task,A.stage,A.meetingStage),!n())throw"Not supported";Ee("appInstallDialog.openAppInstallDialog",[e]),t()}))},e.isSupported=n}(me||(me={}));var ze,Ge=function(){function e(){}return e.prototype.postMessage=function(e,n){return T(),this.postMessageHelper(e).then((function(){n&&n(!0)})).catch((function(e){if(!n)throw e;n(!1,e.message)}))},e.prototype.postMessageHelper=function(e){return new Promise((function(n){n(Se("messageForChild",e))}))},e.prototype.addEventListener=function(e,n){"message"===e&&$("messageForParent",n)},e}(),je=function(){function e(){}return Object.defineProperty(e,"Instance",{get:function(){return this._instance||(this._instance=new this)},enumerable:!1,configurable:!0}),e.prototype.postMessage=function(e,n){return T(A.task),this.postMessageHelper(e).then((function(){n&&n(!0)})).catch((function(e){if(!n)throw e;n(!1,e.message)}))},e.prototype.postMessageHelper=function(e){return new Promise((function(n){n(Se("messageForParent",e))}))},e.prototype.addEventListener=function(e,n){"message"===e&&$("messageForChild",n)},e}(),qe=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)n.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(t[o[i]]=e[o[i]])}return t};function Ke(e,n){if(null==e||null==n||e.length<=0)return null;var t,o=1;return e.sort((function(e,n){return e.sequence>n.sequence?1:-1})),e.forEach((function(e){e.sequence==o&&(t=t?new Blob([t,e.file],{type:n}):new Blob([e.file],{type:n}),o++)})),t}function Ze(e,n){if(null==e||null==n)return null;for(var t=atob(e.chunk),o=new Array(t.length),i=0;i<t.length;i++)o[i]=t.charCodeAt(i);var r=new Uint8Array(o),a=new Blob([r],{type:n});return{sequence:e.chunkSequence,file:a}}function Je(e){return!(null==e||e.maxMediaCount>10)}function Qe(e){return!(!e||e.mediaType!=nn.MediaType.VideoAndImage&&!e.videoAndImageProps)}function Xe(e,n,t){return null!=e&&null!=n&&n==nn.FileFormat.ID&&null!=t}function Ye(e){return!(null==e||e.length<=0||e.length>10)}function $e(e){return!e||!(null===e.timeOutIntervalInSec||e.timeOutIntervalInSec<=0||e.timeOutIntervalInSec>60)}function en(e){if(e){if(e.title&&"string"!=typeof e.title)return!1;if(e.setSelected&&"object"!=typeof e.setSelected)return!1;if(e.openOrgWideSearchInChatOrChannel&&"boolean"!=typeof e.openOrgWideSearchInChatOrChannel)return!1;if(e.singleSelect&&"boolean"!=typeof e.singleSelect)return!1}return!0}!function(e){e.open=function(e,n){return T(A.content,A.sidePanel,A.meetingStage),Ee("tasks.startTask",[e],n),new Ge},e.resize=function(e){T(A.task),e.width,e.height;var n=qe(e,["width","height"]);if(Object.keys(n).length)throw new Error("resize requires a dialogInfo argument containing only width and height");Ee("tasks.updateTask",[e])},e.submit=function(e,n){T(A.task),Ee("tasks.completeTask",[e,Array.isArray(n)?n:[n]])},e.isSupported=function(){return!!F.supports.dialog}}(ze||(ze={}));var nn,tn,on,rn,an,sn,un,cn,ln,dn,fn,pn,mn,gn,hn,vn,wn,Cn,yn,Sn,Tn=function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},e(n,t)};return function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}}();function Pn(e,n){j.initialize(n).then((function(){e&&e()}))}function bn(){G.enablePrintCapability()}function In(){G.print()}function En(e){T(),j.getContext().then((function(n){e&&e(zn(n))}))}function On(e){j.registerOnThemeChangeHandler(e)}function Rn(e){q.registerFullScreenHandler(e)}function An(e){q.appButton.onClick(e)}function Mn(e){q.appButton.onHoverEnter(e)}function Nn(e){q.appButton.onHoverLeave(e)}function kn(e){q.backStack.registerBackButtonHandler(e)}function Fn(e){G.registerOnLoadHandler(e)}function Ln(e){G.registerBeforeUnloadHandler(e)}function Dn(e){G.registerFocusEnterHandler(e)}function Wn(e){q.config.registerChangeConfigHandler(e)}function Un(e,n){T(),q.tabs.getTabInstances(n).then((function(n){e(n)}))}function Hn(e,n){T(),q.tabs.getMruTabInstances(n).then((function(n){e(n)}))}function _n(e){q.shareDeepLink(e)}function xn(e,n){T(A.content,A.sidePanel,A.settings,A.task,A.stage,A.meetingStage),n=n||f(),j.openLink(e).then((function(){n(!0)})).catch((function(e){n(!1,e.message)}))}function Bn(e){q.setCurrentFrame(e)}function Vn(e,n,t){q.initializeWithFrameContext(e,n,t)}function zn(e){return{locale:e.app.locale,appSessionId:e.app.sessionId,theme:e.app.theme,appIconPosition:e.app.iconPositionVertical,osLocaleInfo:e.app.osLocaleInfo,parentMessageId:e.app.parentMessageId,userClickTime:e.app.userClickTime,userFileOpenPreference:e.app.userFileOpenPreference,appLaunchId:e.app.appLaunchId,hostClientType:e.app.host.clientType,sessionId:e.app.host.sessionId,ringId:e.app.host.ringId,entityId:e.page.id,frameContext:e.page.frameContext,subEntityId:e.page.subPageId,isFullScreen:e.page.isFullScreen,isMultiWindow:e.page.isMultiWindow,sourceOrigin:e.page.sourceOrigin,userObjectId:void 0!==e.user?e.user.id:void 0,isCallingAllowed:void 0!==e.user?e.user.isCallingAllowed:void 0,isPSTNCallingAllowed:void 0!==e.user?e.user.isPSTNCallingAllowed:void 0,userLicenseType:void 0!==e.user?e.user.licenseType:void 0,loginHint:void 0!==e.user?e.user.loginHint:void 0,userPrincipalName:void 0!==e.user?e.user.userPrincipalName:void 0,tid:void 0!==e.user&&void 0!==e.user.tenant?e.user.tenant.id:void 0,tenantSKU:void 0!==e.user&&void 0!==e.user.tenant?e.user.tenant.teamsSku:void 0,channelId:void 0!==e.channel?e.channel.id:void 0,channelName:void 0!==e.channel?e.channel.displayName:void 0,channelRelativeUrl:void 0!==e.channel?e.channel.relativeUrl:void 0,channelType:void 0!==e.channel?e.channel.membershipType:void 0,defaultOneNoteSectionId:void 0!==e.channel?e.channel.defaultOneNoteSectionId:void 0,hostTeamGroupId:void 0!==e.channel?e.channel.ownerGroupId:void 0,hostTeamTenantId:void 0!==e.channel?e.channel.ownerTenantId:void 0,chatId:void 0!==e.chat?e.chat.id:void 0,meetingId:void 0!==e.meeting?e.meeting.id:void 0,sharepoint:e.sharepoint,teamId:void 0!==e.team?e.team.internalId:void 0,teamName:void 0!==e.team?e.team.displayName:void 0,teamType:void 0!==e.team?e.team.type:void 0,groupId:void 0!==e.team?e.team.groupId:void 0,teamTemplateId:void 0!==e.team?e.team.templateId:void 0,isTeamArchived:void 0!==e.team?e.team.isArchived:void 0,userTeamRole:void 0!==e.team?e.team.userRole:void 0,teamSiteUrl:void 0!==e.sharePointSite?e.sharePointSite.url:void 0,teamSiteDomain:void 0!==e.sharePointSite?e.sharePointSite.domain:void 0,teamSitePath:void 0!==e.sharePointSite?e.sharePointSite.path:void 0,teamSiteId:void 0!==e.sharePointSite?e.sharePointSite.id:void 0}}function Gn(e){q.returnFocus(e)}function jn(e,n){T(),n=n||f(),q.tabs.navigateToTab(e).then((function(){n(!0)})).catch((function(e){n(!1,e.message)}))}function qn(e,n){T(A.content,A.sidePanel,A.settings,A.remove,A.task,A.stage,A.meetingStage),n=n||f(),q.navigateCrossDomain(e).then((function(){n(!0)})).catch((function(e){n(!1,e.message)}))}function Kn(e){T(),e=e||f(),q.backStack.navigateBack().then((function(){e(!0)})).catch((function(n){e(!1,n.message)}))}!function(e){!function(e){e.Base64="base64",e.ID="id"}(e.FileFormat||(e.FileFormat={}));var n=function(){return function(){}}();e.File=n,e.captureImage=function(e){return T(A.content,A.task),h((function(){return new Promise((function(e){if(!u.isFramelessWindow)throw{errorCode:pe.NOT_SUPPORTED_ON_PLATFORM};if(!P("1.7.0"))throw{errorCode:pe.OLD_PLATFORM};e(Pe("captureImage"))}))}),e)};var t=function(e){function n(n){void 0===n&&(n=null);var t=e.call(this)||this;return n&&(t.content=n.content,t.format=n.format,t.mimeType=n.mimeType,t.name=n.name,t.preview=n.preview,t.size=n.size),t}return Tn(n,e),n.prototype.getMedia=function(e){var n=this;T(A.content,A.task);return h((function(){return new Promise((function(e){if(!P(r))throw{errorCode:pe.OLD_PLATFORM};if(!Xe(n.mimeType,n.format,n.content))throw{errorCode:pe.INVALID_ARGUMENTS};P("2.0.0")?e(n.getMediaViaCallback()):e(n.getMediaViaHandler())}))}),e)},n.prototype.getMediaViaCallback=function(){var e=this;return new Promise((function(n,t){var o={mediaMimeType:e.mimeType,assembleAttachment:[]};Ee("getMedia",[e.content],(function(e){if(e&&e.error)t(e.error);else if(e&&e.mediaChunk)if(e.mediaChunk.chunkSequence<=0){var i=Ke(o.assembleAttachment,o.mediaMimeType);n(i)}else{var r=Ze(e.mediaChunk,o.mediaMimeType);o.assembleAttachment.push(r)}else t({errorCode:pe.INTERNAL_ERROR,message:"data received is null"})}))}))},n.prototype.getMediaViaHandler=function(){var e=this;return new Promise((function(n,t){var o=m(),i={mediaMimeType:e.mimeType,assembleAttachment:[]},r=[o,e.content];e.content&&Ee("getMedia",r),$("getMedia"+o,(function(e){try{var r=JSON.parse(e);if(r.error)t(r.error),ee("getMedia"+o);else if(r&&r.mediaChunk)if(r.mediaChunk.chunkSequence<=0){var a=Ke(i.assembleAttachment,i.mediaMimeType);n(a),ee("getMedia"+o)}else{var s=Ze(r.mediaChunk,i.mediaMimeType);i.assembleAttachment.push(s)}else t({errorCode:pe.INTERNAL_ERROR,message:"data received is null"}),ee("getMedia"+o)}catch(n){t({errorCode:pe.INTERNAL_ERROR,message:"Error parsing the response: "+e})}}))}))},n}(n);e.Media=t,function(e){e[e.Photo=1]="Photo",e[e.Document=2]="Document",e[e.Whiteboard=3]="Whiteboard",e[e.BusinessCard=4]="BusinessCard"}(e.CameraStartMode||(e.CameraStartMode={})),function(e){e[e.Camera=1]="Camera",e[e.Gallery=2]="Gallery"}(e.Source||(e.Source={})),function(e){e[e.Image=1]="Image",e[e.VideoAndImage=3]="VideoAndImage",e[e.Audio=4]="Audio"}(e.MediaType||(e.MediaType={})),function(e){e[e.ID=1]="ID",e[e.URL=2]="URL"}(e.ImageUriType||(e.ImageUriType={})),e.selectMedia=function(e,n){return T(A.content,A.task),h((function(){return new Promise((function(n){if(!P(r))throw{errorCode:pe.OLD_PLATFORM};if(Qe(e)){if(u.hostClientType!=O.android&&u.hostClientType!=O.ios)throw{errorCode:pe.NOT_SUPPORTED_ON_PLATFORM};if(!P("2.0.2"))throw{errorCode:pe.OLD_PLATFORM}}if(!Je(e))throw{errorCode:pe.INVALID_ARGUMENTS};n(be("selectMedia",[e]))})).then((function(e){var n=e[0],o=e[1];if(!o)throw n;for(var i=[],r=0,a=o;r<a.length;r++){var s=a[r];i.push(new t(s))}return i}))}),n)},e.viewImages=function(e,n){return T(A.content,A.task),w((function(){return new Promise((function(n){if(!P(r))throw{errorCode:pe.OLD_PLATFORM};if(!Ye(e))throw{errorCode:pe.INVALID_ARGUMENTS};n(Pe("viewImages",e))}))}),n)},e.scanBarCode=function(e,n){var t,o;return void 0===e?o=n:"object"==typeof e?o=e:(t=e,o=n),T(A.content,A.task),h((function(){return new Promise((function(e){if(u.hostClientType===O.desktop||u.hostClientType===O.web||u.hostClientType===O.rigel||u.hostClientType===O.teamsRoomsWindows||u.hostClientType===O.teamsRoomsAndroid||u.hostClientType===O.teamsPhones||u.hostClientType===O.teamsDisplays)throw{errorCode:pe.NOT_SUPPORTED_ON_PLATFORM};if(!P("1.9.0"))throw{errorCode:pe.OLD_PLATFORM};if(!$e(o))throw{errorCode:pe.INVALID_ARGUMENTS};e(Pe("media.scanBarCode",o))}))}),t)},e.isSupported=function(){return!!F.supports.media}}(nn||(nn={})),function(e){function n(e){return new Promise((function(n){if(!P(i))throw{errorCode:pe.OLD_PLATFORM};if(!e)throw{errorCode:pe.INVALID_ARGUMENTS};n(Pe("location.getLocation",e))}))}function t(e){return new Promise((function(n){if(!P(i))throw{errorCode:pe.OLD_PLATFORM};if(!e)throw{errorCode:pe.INVALID_ARGUMENTS};n(Pe("location.showLocation",e))}))}e.getLocation=function(e,t){return T(A.content,A.task),h(n,t,e)},e.showLocation=function(e,n){return T(A.content,A.task),v(t,n,e)},e.showLocationHelper=t,e.isSupported=function(){return!!F.supports.location}}(tn||(tn={})),function(e){function n(){return new Promise((function(e){e(Pe("getIncomingClientAudioState"))}))}function t(){return new Promise((function(e){e(Pe("toggleIncomingClientAudio"))}))}function o(){return new Promise((function(e){e(Pe("meeting.getMeetingDetails"))}))}function i(){return new Promise((function(e){e(Pe("meeting.getAuthenticationTokenForAnonymousUser"))}))}function r(){return new Promise((function(e){e(Pe("meeting.getLiveStreamState"))}))}function a(e,n){return new Promise((function(t){t(Pe("meeting.requestStartLiveStreaming",e,n))}))}function s(){return new Promise((function(e){e(Pe("meeting.requestStopLiveStreaming"))}))}function u(e){return new Promise((function(n){n(Pe("meeting.shareAppContentToStage",e))}))}function c(){return new Promise((function(e){e(Pe("meeting.getAppContentStageSharingCapabilities"))}))}function l(){return new Promise((function(e){e(Pe("meeting.stopSharingAppContentToStage"))}))}function d(){return new Promise((function(e){e(Pe("meeting.getAppContentStageSharingState"))}))}!function(e){e.Unknown="Unknown",e.Adhoc="Adhoc",e.Scheduled="Scheduled",e.Recurring="Recurring",e.Broadcast="Broadcast",e.MeetNow="MeetNow"}(e.MeetingType||(e.MeetingType={})),e.getIncomingClientAudioState=function(e){return T(A.sidePanel,A.meetingStage),C(n,e)},e.toggleIncomingClientAudio=function(e){return T(A.sidePanel,A.meetingStage),C(t,e)},e.getMeetingDetails=function(e){return T(A.sidePanel,A.meetingStage,A.settings,A.content),C(o,e)},e.getAuthenticationTokenForAnonymousUser=function(e){return T(A.sidePanel,A.meetingStage),C(i,e)},e.isSupported=function(){return!!F.supports.meeting},e.getLiveStreamState=function(e){return T(),C(r,e)},e.requestStartLiveStreaming=function(e,n,t){var o,i,r,s,u;return T(A.sidePanel),"function"==typeof e?(u=(o=[e,n,t])[0],r=o[1],s=o[2]):"string"==typeof e&&(r=(i=[e,n])[0],s=i[1]),w(a,u,r,s)},e.requestStopLiveStreaming=function(e){return T(A.sidePanel),w(s,e)},e.registerLiveStreamChangedHandler=function(e){if(!e)throw new Error("[register live stream changed handler] Handler cannot be null");T(A.sidePanel),$("meeting.liveStreamChanged",e)},e.shareAppContentToStage=function(e,n){var t,o,i;return T(A.sidePanel),"function"==typeof e?(i=(t=[e,n])[0],o=t[1]):o=e,C(u,i,o)},e.getAppContentStageSharingCapabilities=function(e){return T(A.sidePanel),C(c,e)},e.stopSharingAppContentToStage=function(e){return T(A.sidePanel),C(l,e)},e.getAppContentStageSharingState=function(e){return T(A.sidePanel),C(d,e)}}(on||(on={})),function(e){e.openPurchaseExperience=function(e,n){var t,o;return"function"==typeof e?(t=e,o=n):o=e,T(A.content),C((function(){return new Promise((function(e){e(Pe("monetization.openPurchaseExperience",o))}))}),t)},e.isSupported=function(){return!!F.supports.monetization}}(rn||(rn={})),function(e){function n(){return!!F.supports.calendar}e.openCalendarItem=function(e){return new Promise((function(t){if(T(A.content),!n())throw"Not Supported";t(Se("calendar.openCalendarItem",e))}))},e.composeMeeting=function(e){return new Promise((function(t){if(T(A.content),!n())throw"Not Supported";t(Se("calendar.composeMeeting",e))}))},e.isSupported=n}(an||(an={})),function(e){function n(){return!!F.supports.mail}e.openMailItem=function(e){return new Promise((function(t){if(T(A.content),!n())throw"Not Supported";t(Se("mail.openMailItem",e))}))},e.composeMail=function(e){return new Promise((function(t){if(T(A.content),!n())throw"Not Supported";t(Se("mail.composeMail",e))}))},e.isSupported=n,function(e){e.New="new",e.Reply="reply",e.ReplyAll="replyAll",e.Forward="forward"}(e.ComposeMailType||(e.ComposeMailType={}))}(sn||(sn={})),function(e){function n(e){return new Promise((function(n){if(!P("2.0.0"))throw{errorCode:pe.OLD_PLATFORM};if(!en(e))throw{errorCode:pe.INVALID_ARGUMENTS};n(Pe("people.selectPeople",e))}))}e.selectPeople=function(e,t){var o,i,r;return T(A.content,A.task,A.settings),"function"==typeof e?(i=(o=[e,t])[0],r=o[1]):r=e,h(n,i,r)},e.isSupported=function(){return!!F.supports.people}}(un||(un={})),function(e){function n(){Ee("video.videoFrameProcessed")}function t(e){Ee("video.notifyError",[e])}!function(e){e[e.NV12=0]="NV12"}(e.VideoFrameFormat||(e.VideoFrameFormat={})),function(e){e[e.EffectChanged=0]="EffectChanged",e[e.EffectDisabled=1]="EffectDisabled"}(e.EffectChangeType||(e.EffectChangeType={})),e.registerForVideoFrame=function(e,o){T(A.sidePanel),$("video.newVideoFrame",(function(o){void 0!==o&&e(o,n,t)})),Ee("video.registerForVideoFrame",[o])},e.notifySelectedVideoEffectChanged=function(e,n){T(A.sidePanel),Ee("video.videoEffectChanged",[e,n])},e.registerForVideoEffect=function(e){T(A.sidePanel),$("video.effectParameterChange",e)},e.isSupported=function(){return!!F.supports.video}}(cn||(cn={})),function(e){function n(n){return new Promise((function(t){t(Pe(e.SharingAPIMessages.shareWebContent,n))}))}function t(e){if(!(e&&e.content&&e.content.length))throw{errorCode:pe.INVALID_ARGUMENTS,message:"Shared content is missing"}}function o(e){if(e.content.some((function(e){return!e.type})))throw{errorCode:pe.INVALID_ARGUMENTS,message:"Shared content type cannot be undefined"};if(e.content.some((function(n){return n.type!==e.content[0].type})))throw{errorCode:pe.INVALID_ARGUMENTS,message:"Shared content must be of the same type"}}function i(e){if("URL"!==e.content[0].type)throw{errorCode:pe.INVALID_ARGUMENTS,message:"Content type is unsupported"};if(e.content.some((function(e){return!e.url})))throw{errorCode:pe.INVALID_ARGUMENTS,message:"URLs are required for URL content types"}}e.SharingAPIMessages={shareWebContent:"sharing.shareWebContent"},e.shareWebContent=function(e,r){try{t(e),o(e),i(e)}catch(e){return w((function(){return Promise.reject(e)}),r)}return T(A.content,A.sidePanel,A.task,A.stage,A.meetingStage),w(n,r,e)},e.isSupported=function(){return!!F.supports.sharing}}(ln||(ln={})),function(e){function n(){return!!F.supports.call}!function(e){e.Unknown="unknown",e.Audio="audio",e.Video="video",e.VideoBasedScreenSharing="videoBasedScreenSharing",e.Data="data"}(e.CallModalities||(e.CallModalities={})),e.startCall=function(e){return new Promise((function(t){if(T(A.content),!n())throw"Not supported";return Ee("call.startCall",[e],t)}))},e.isSupported=n}(dn||(dn={})),function(e){e.Messages=j.Messages,e.FailedReason=j.FailedReason,e.ExpectedFailureReason=j.ExpectedFailureReason,e.notifyAppLoaded=function(){j.notifyAppLoaded()},e.notifySuccess=function(){j.notifySuccess()},e.notifyFailure=function(e){j.notifyFailure(e)},e.notifyExpectedFailure=function(e){j.notifyExpectedFailure(e)}}(fn||(fn={})),function(e){e.setValidityState=function(e){q.config.setValidityState(e)},e.getSettings=function(e){T(A.content,A.settings,A.remove,A.sidePanel),q.config.getConfig().then((function(n){e(n)}))},e.setSettings=function(e,n){T(A.content,A.settings,A.sidePanel),n=n||f(),q.config.setConfig(e).then((function(){n(!0)})).catch((function(e){n(!1,e.message)}))},e.registerOnSaveHandler=function(e){q.config.registerOnSaveHandler(e)},e.registerOnRemoveHandler=function(e){q.config.registerOnRemoveHandler(e)}}(pn||(pn={})),function(e){function n(e){var n=e.height&&"number"!=typeof e.height?t(e.height):e.height,o=e.width&&"number"!=typeof e.width?t(e.width):e.width;return{url:e.url,card:e.card,height:n,width:o,title:e.title,fallbackUrl:e.fallbackUrl,completionBotId:e.completionBotId}}function t(e){return e===K.Large?K.Large:e===K.Medium?K.Medium:K.Small}e.startTask=function(e,t){return ze.open(n(e),t)},e.updateTask=function(e){ze.resize(e)},e.submitTask=function(e,n){ze.submit(e,n)}}(mn||(mn={})),function(e){!function(e){e.Dropbox="DROPBOX",e.Box="BOX",e.Sharefile="SHAREFILE",e.GoogleDrive="GOOGLEDRIVE",e.Egnyte="EGNYTE",e.SharePoint="SharePoint"}(e.CloudStorageProvider||(e.CloudStorageProvider={})),function(e){e[e.Sharepoint=0]="Sharepoint",e[e.WopiIntegration=1]="WopiIntegration",e[e.Google=2]="Google",e[e.OneDrive=3]="OneDrive",e[e.Recent=4]="Recent",e[e.Aggregate=5]="Aggregate",e[e.FileSystem=6]="FileSystem",e[e.Search=7]="Search",e[e.AllFiles=8]="AllFiles",e[e.SharedWithMe=9]="SharedWithMe"}(e.CloudStorageProviderType||(e.CloudStorageProviderType={})),function(e){e.ClassMaterials="classMaterials"}(e.SpecialDocumentLibraryType||(e.SpecialDocumentLibraryType={})),function(e){e.Readonly="readonly"}(e.DocumentLibraryAccessType||(e.DocumentLibraryAccessType={})),e.getCloudStorageFolders=function(e){return new Promise((function(n){if(T(A.content),!e||0===e.length)throw new Error("[files.getCloudStorageFolders] channelId name cannot be null or empty");n(Pe("files.getCloudStorageFolders",e))}))},e.addCloudStorageFolder=function(e){return new Promise((function(n){if(T(A.content),!e||0===e.length)throw new Error("[files.addCloudStorageFolder] channelId name cannot be null or empty");n(be("files.addCloudStorageFolder",[e]))})).then((function(e){var n=e[0],t=e[1],o=e[2];if(n)throw n;return[t,o]}))},e.deleteCloudStorageFolder=function(e,n){return new Promise((function(t){if(T(A.content),!e)throw new Error("[files.deleteCloudStorageFolder] channelId name cannot be null or empty");if(!n)throw new Error("[files.deleteCloudStorageFolder] folderToDelete cannot be null or empty");t(Pe("files.deleteCloudStorageFolder",e,n))}))},e.getCloudStorageFolderContents=function(e,n){return new Promise((function(t){if(T(A.content),!e||!n)throw new Error("[files.getCloudStorageFolderContents] folder/providerCode name cannot be null or empty");if("isSubdirectory"in e&&!e.isSubdirectory)throw new Error("[files.getCloudStorageFolderContents] provided folder is not a subDirectory");t(Pe("files.getCloudStorageFolderContents",e,n))}))},e.openCloudStorageFile=function(e,n,t){if(T(A.content),!e||!n)throw new Error("[files.openCloudStorageFile] file/providerCode cannot be null or empty");if(e.isSubdirectory)throw new Error("[files.openCloudStorageFile] provided file is a subDirectory");Ee("files.openCloudStorageFile",[e,n,t])},e.openFilePreview=function(e){T(A.content),Ee("openFilePreview",[e.entityId,e.title,e.description,e.type,e.objectUrl,e.downloadUrl,e.webPreviewUrl,e.webEditUrl,e.baseUrl,e.editFile,e.subEntityId,e.viewerAction,e.fileOpenPreference,e.conversationId])},e.getExternalProviders=function(e){return void 0===e&&(e=!1),new Promise((function(n){T(A.content),n(Pe("files.getExternalProviders",e))}))},e.copyMoveFiles=function(e,n,t,o,i){return void 0===i&&(i=!1),new Promise((function(r){if(T(A.content),!e||0===e.length)throw new Error("[files.copyMoveFiles] selectedFiles cannot be null or empty");if(!n)throw new Error("[files.copyMoveFiles] providerCode cannot be null or empty");if(!t)throw new Error("[files.copyMoveFiles] destinationFolder cannot be null or empty");if(!o)throw new Error("[files.copyMoveFiles] destinationProviderCode cannot be null or empty");r(Pe("files.copyMoveFiles",e,n,t,o,i))}))},e.isSupported=function(){return!!F.supports.files}}(gn||(gn={})),function(e){!function(e){e.getUserJoinedTeams=function(e){return new Promise((function(n){if(T(),(u.hostClientType===O.android||u.hostClientType===O.teamsRoomsAndroid||u.hostClientType===O.teamsPhones||u.hostClientType===O.teamsDisplays)&&!P("2.0.1")){var t={errorCode:pe.OLD_PLATFORM};throw new Error(JSON.stringify(t))}n(ye("getUserJoinedTeams",e))}))},e.getConfigSetting=function(e){return new Promise((function(n){T(),n(ye("getConfigSetting",e))}))},e.isSupported=function(){return!!F.supports.teams&&!!F.supports.teams.fullTrust}}(e.fullTrust||(e.fullTrust={}))}(hn||(hn={})),function(e){e.getPairedMeetingRoomInfo=function(){return new Promise((function(e){T(),e(Pe("meetingRoom.getPairedMeetingRoomInfo"))}))},e.sendCommandToPairedMeetingRoom=function(e){return new Promise((function(n){if(!e||0==e.length)throw new Error("[meetingRoom.sendCommandToPairedMeetingRoom] Command name cannot be null or empty");T(),n(Pe("meetingRoom.sendCommandToPairedMeetingRoom",e))}))},e.registerMeetingRoomCapabilitiesUpdateHandler=function(e){if(!e)throw new Error("[meetingRoom.registerMeetingRoomCapabilitiesUpdateHandler] Handler cannot be null");T(),$("meetingRoom.meetingRoomCapabilitiesUpdate",(function(n){T(),e(n)}))},e.registerMeetingRoomStatesUpdateHandler=function(e){if(!e)throw new Error("[meetingRoom.registerMeetingRoomStatesUpdateHandler] Handler cannot be null");T(),$("meetingRoom.meetingRoomStatesUpdate",(function(n){T(),e(n)}))},e.isSupported=function(){return!!F.supports.meetingRoom}}(vn||(vn={})),function(e){e.showNotification=function(e){T(A.content),Ee("notifications.showNotification",[e])},e.isSupported=function(){return!!F.supports.notifications}}(wn||(wn={})),function(e){!function(e){e.Reset="Reset",e.ZoomIn="ZoomIn",e.ZoomOut="ZoomOut",e.PanLeft="PanLeft",e.PanRight="PanRight",e.TiltUp="TiltUp",e.TiltDown="TiltDown"}(e.ControlCommand||(e.ControlCommand={})),function(e){e[e.CommandResetError=0]="CommandResetError",e[e.CommandZoomInError=1]="CommandZoomInError",e[e.CommandZoomOutError=2]="CommandZoomOutError",e[e.CommandPanLeftError=3]="CommandPanLeftError",e[e.CommandPanRightError=4]="CommandPanRightError",e[e.CommandTiltUpError=5]="CommandTiltUpError",e[e.CommandTiltDownError=6]="CommandTiltDownError",e[e.SendDataError=7]="SendDataError"}(e.ErrorReason||(e.ErrorReason={})),function(e){e[e.None=0]="None",e[e.ControlDenied=1]="ControlDenied",e[e.ControlNoResponse=2]="ControlNoResponse",e[e.ControlBusy=3]="ControlBusy",e[e.AckTimeout=4]="AckTimeout",e[e.ControlTerminated=5]="ControlTerminated",e[e.ControllerTerminated=6]="ControllerTerminated",e[e.DataChannelError=7]="DataChannelError",e[e.ControllerCancelled=8]="ControllerCancelled",e[e.ControlDisabled=9]="ControlDisabled",e[e.ControlTerminatedToAllowOtherController=10]="ControlTerminatedToAllowOtherController"}(e.SessionTerminatedReason||(e.SessionTerminatedReason={})),e.getCapableParticipants=function(e){if(!e)throw new Error("[remoteCamera.getCapableParticipants] Callback cannot be null");T(A.sidePanel),Ee("remoteCamera.getCapableParticipants",e)},e.requestControl=function(e,n){if(!e)throw new Error("[remoteCamera.requestControl] Participant cannot be null");if(!n)throw new Error("[remoteCamera.requestControl] Callback cannot be null");T(A.sidePanel),Ee("remoteCamera.requestControl",[e],n)},e.sendControlCommand=function(e,n){if(!e)throw new Error("[remoteCamera.sendControlCommand] ControlCommand cannot be null");if(!n)throw new Error("[remoteCamera.sendControlCommand] Callback cannot be null");T(A.sidePanel),Ee("remoteCamera.sendControlCommand",[e],n)},e.terminateSession=function(e){if(!e)throw new Error("[remoteCamera.terminateSession] Callback cannot be null");T(A.sidePanel),Ee("remoteCamera.terminateSession",e)},e.registerOnCapableParticipantsChangeHandler=function(e){if(!e)throw new Error("[remoteCamera.registerOnCapableParticipantsChangeHandler] Handler cannot be null");T(A.sidePanel),$("remoteCamera.capableParticipantsChange",e)},e.registerOnErrorHandler=function(e){if(!e)throw new Error("[remoteCamera.registerOnErrorHandler] Handler cannot be null");T(A.sidePanel),$("remoteCamera.handlerError",e)},e.registerOnDeviceStateChangeHandler=function(e){if(!e)throw new Error("[remoteCamera.registerOnDeviceStateChangeHandler] Handler cannot be null");T(A.sidePanel),$("remoteCamera.deviceStateChange",e)},e.registerOnSessionStatusChangeHandler=function(e){if(!e)throw new Error("[remoteCamera.registerOnSessionStatusChangeHandler] Handler cannot be null");T(A.sidePanel),$("remoteCamera.sessionStatusChange",e)},e.isSupported=function(){return!!F.supports.remoteCamera}}(Cn||(Cn={})),function(e){e.selectAppEntity=function(e,n,t,o){if(T(A.content),!e||0==e.length)throw new Error("[appEntity.selectAppEntity] threadId name cannot be null or empty");if(!o)throw new Error("[appEntity.selectAppEntity] Callback cannot be null");Ee("appEntity.selectAppEntity",[e,n,t],o)},e.isSupported=function(){return!!F.supports.appEntity}}(yn||(yn={})),function(e){!function(e){e[e.Regular=0]="Regular",e[e.Private=1]="Private",e[e.Shared=2]="Shared"}(e.ChannelType||(e.ChannelType={})),e.getTeamChannels=function(e,n){if(T(A.content),!e)throw new Error("[teams.getTeamChannels] groupId cannot be null or empty");if(!n)throw new Error("[teams.getTeamChannels] Callback cannot be null");Ee("teams.getTeamChannels",[e],n)},e.refreshSiteUrl=function(e,n){if(T(),!e)throw new Error("[teams.refreshSiteUrl] threadId cannot be null or empty");if(!n)throw new Error("[teams.refreshSiteUrl] Callback cannot be null");Ee("teams.refreshSiteUrl",[e],n)},e.isSupported=function(){return!!F.supports.teams}}(Sn||(Sn={}))})(),o})()}));
2
2
  //# sourceMappingURL=MicrosoftTeams.min.js.map