@microsoft/teams-js 2.0.0-beta.3-dev.35 → 2.0.0-beta.3-dev.36

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.
@@ -1120,7 +1120,7 @@ __webpack_require__.d(__webpack_exports__, {
1120
1120
  });
1121
1121
 
1122
1122
  ;// CONCATENATED MODULE: ./src/internal/constants.ts
1123
- var version = "2.0.0-beta.3-dev.35";
1123
+ var version = "2.0.0-beta.3-dev.36";
1124
1124
  /**
1125
1125
  * @hidden
1126
1126
  * The SDK version when all SDK APIs started to check platform compatibility for the APIs was 1.6.0.
@@ -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 C=(1e4*(268435455&(m+=122192928e5))+g)%4294967296;l[c++]=C>>>24&255,l[c++]=C>>>16&255,l[c++]=C>>>8&255,l[c++]=255&C;var v=m/4294967296*1e4&268435455;l[c++]=v>>>8&255,l[c++]=255&v,l[c++]=v>>>24&15|16,l[c++]=v>>>16&255,l[c++]=f>>>8|128,l[c++]=255&f;for(var w=0;w<6;++w)l[c+w]=d[w];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)}},227:(e,n,t)=>{n.formatArgs=function(n){if(n[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+n[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const t="color: "+this.color;n.splice(1,0,t,"color: inherit");let o=0,i=0;n[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(o++,"%c"===e&&(i=o))})),n.splice(i,0,t)},n.save=function(e){try{e?n.storage.setItem("debug",e):n.storage.removeItem("debug")}catch(e){}},n.load=function(){let e;try{e=n.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},n.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},n.storage=function(){try{return localStorage}catch(e){}}(),n.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),n.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],n.log=console.debug||console.log||(()=>{}),e.exports=t(447)(n);const{formatters:o}=e.exports;o.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},447:(e,n,t)=>{e.exports=function(e){function n(e){let t,i,r,a=null;function s(...e){if(!s.enabled)return;const o=s,i=Number(new Date),r=i-(t||i);o.diff=r,o.prev=t,o.curr=i,t=i,e[0]=n.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((t,i)=>{if("%%"===t)return"%";a++;const r=n.formatters[i];if("function"==typeof r){const n=e[a];t=r.call(o,n),e.splice(a,1),a--}return t})),n.formatArgs.call(o,e);(o.log||n.log).apply(o,e)}return s.namespace=e,s.useColors=n.useColors(),s.color=n.selectColor(e),s.extend=o,s.destroy=n.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(i!==n.namespaces&&(i=n.namespaces,r=n.enabled(e)),r),set:e=>{a=e}}),"function"==typeof n.init&&n.init(s),s}function o(e,t){const o=n(this.namespace+(void 0===t?":":t)+e);return o.log=this.log,o}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return n.debug=n,n.default=n,n.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},n.disable=function(){const e=[...n.names.map(i),...n.skips.map(i).map((e=>"-"+e))].join(",");return n.enable(""),e},n.enable=function(e){let t;n.save(e),n.namespaces=e,n.names=[],n.skips=[];const o=("string"==typeof e?e:"").split(/[\s,]+/),i=o.length;for(t=0;t<i;t++)o[t]&&("-"===(e=o[t].replace(/\*/g,".*?"))[0]?n.skips.push(new RegExp("^"+e.substr(1)+"$")):n.names.push(new RegExp("^"+e+"$")))},n.enabled=function(e){if("*"===e[e.length-1])return!0;let t,o;for(t=0,o=n.skips.length;t<o;t++)if(n.skips[t].test(e))return!1;for(t=0,o=n.names.length;t<o;t++)if(n.names[t].test(e))return!0;return!1},n.humanize=t(824),n.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((t=>{n[t]=e[t]})),n.names=[],n.skips=[],n.formatters={},n.selectColor=function(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return n.colors[Math.abs(t)%n.colors.length]},n.enable(n.load()),n}},824:e=>{var n=1e3,t=60*n,o=60*t,i=24*o;function r(e){if(!((e=String(e)).length>100)){var r=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(r){var a=parseFloat(r[1]);switch((r[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return 6048e5*a;case"days":case"day":case"d":return a*i;case"hours":case"hour":case"hrs":case"hr":case"h":return a*o;case"minutes":case"minute":case"mins":case"min":case"m":return a*t;case"seconds":case"second":case"secs":case"sec":case"s":return a*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}function a(e){var r=Math.abs(e);return r>=i?Math.round(e/i)+"d":r>=o?Math.round(e/o)+"h":r>=t?Math.round(e/t)+"m":r>=n?Math.round(e/n)+"s":e+"ms"}function s(e){var r=Math.abs(e);return r>=i?u(e,r,i,"day"):r>=o?u(e,r,o,"hour"):r>=t?u(e,r,t,"minute"):r>=n?u(e,r,n,"second"):e+" ms"}function u(e,n,t,o){var i=n>=1.5*t;return Math.round(e/t)+" "+o+(i?"s":"")}e.exports=function(e,n){n=n||{};var t=typeof e;if("string"===t&&e.length>0)return r(e);if("number"===t&&isFinite(e))return n.long?s(e):a(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}}},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:()=>$e,DialogDimension:()=>k,ErrorCode:()=>Be,FileOpenPreference:()=>xe,FrameContexts:()=>R,HostClientType:()=>F,HostName:()=>O,NotificationTypes:()=>We,ParentAppWindow:()=>Ye,TaskModuleDimension:()=>Z,TeamType:()=>A,UserSettingTypes:()=>He,UserTeamRole:()=>M,ViewerActionTypes:()=>Ue,app:()=>G,appEntity:()=>On,appInitialization:()=>yn,appInstallDialog:()=>Ve,authentication:()=>z,bot:()=>De,calendar:()=>mn,call:()=>wn,chat:()=>_e,dialog:()=>Xe,enablePrintCapability:()=>kn,executeDeepLink:()=>Jn,files:()=>Tn,getContext:()=>Ln,getMruTabInstances:()=>qn,getTabInstances:()=>Gn,initialize:()=>Mn,initializeWithFrameContext:()=>Qn,legacy:()=>In,location:()=>dn,logs:()=>P,mail:()=>gn,media:()=>ln,meeting:()=>fn,meetingRoom:()=>Pn,menus:()=>E,monetization:()=>pn,navigateBack:()=>nt,navigateCrossDomain:()=>et,navigateToTab:()=>Yn,notifications:()=>En,pages:()=>q,people:()=>hn,print:()=>Nn,registerAppButtonClickHandler:()=>Un,registerAppButtonHoverEnterHandler:()=>Hn,registerAppButtonHoverLeaveHandler:()=>_n,registerBackButtonHandler:()=>xn,registerBeforeUnloadHandler:()=>Vn,registerCustomHandler:()=>x,registerEnterSettingsHandler:()=>jn,registerFocusEnterHandler:()=>zn,registerFullScreenHandler:()=>Wn,registerOnLoadHandler:()=>Bn,registerOnThemeChangeHandler:()=>Dn,registerUserSettingsChangeHandler:()=>B,remoteCamera:()=>Fn,returnFocus:()=>$n,sendCustomEvent:()=>_,sendCustomMessage:()=>H,setFrameContext:()=>Kn,settings:()=>Sn,shareDeepLink:()=>Zn,sharing:()=>vn,tasks:()=>bn,teams:()=>Rn,teamsCore:()=>j,uploadCustomApp:()=>U,video:()=>Cn});var e="2.0.0-beta.3-dev.35",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","localhost: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 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(){n&&n(void 0,!0)})).catch((function(e){n&&n(e,!1)})),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(null)})).catch((function(e){n&&n(e)})),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(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 b(){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 T(e){void 0===e&&(e=n);var t=p(u.clientSupportedSDKVersion,e);return!isNaN(t)&&t>=0}function I(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 P,E,F,O,R,A,M,k,N={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){N=g(e)}function W(){E.initialize()}function U(e,n){b(),Te("uploadCustomApp",[e],n||f())}function H(e,n,t){b(),Te(e,n,t)}function _(e,n){if(b(),!pe.childWindow)throw new Error("The child window has not yet been initialized or is not present");Ze(e,n)}function x(e,n){var t=this;b(),oe(e,(function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return n.apply(t,e)}))}function B(e,n){b(),oe("userSettingsChange",n,!0,[e])}!function(e){e.registerGetLogHandler=function(e){b(),e?oe("log.request",(function(){Te("log.receive",[e()])})):ie("log.request")},e.isSupported=function(){return!!N.supports.logs}}(P||(P={})),function(e){var n,t,o,i=function(){return function(){this.enabled=!0,this.selected=!1}}();function r(e){o&&o(e)||(b(),Te("viewConfigItemPress",[e]))}function a(e){n&&n(e)||(b(),Te("handleNavBarMenuItemPress",[e]))}function s(e){t&&t(e)||(b(),Te("handleActionMenuItemPress",[e]))}e.MenuItem=i,function(e){e.dropDown="dropDown",e.popOver="popOver"}(e.MenuListType||(e.MenuListType={})),e.initialize=function(){oe("navBarMenuItemPress",a,!1),oe("actionMenuItemPress",s,!1),oe("setModuleView",r,!1)},e.setUpViews=function(e,n){b(),o=n,Te("setUpViews",[e])},e.setNavBarMenu=function(e,t){b(),n=t,Te("setNavBarMenu",[e])},e.showActionMenu=function(e,n){b(),t=n,Te("showActionMenu",[e])},e.isSupported=function(){return!!N.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"}(F||(F={})),function(e){e.office="Office",e.outlook="Outlook",e.orange="Orange",e.teams="Teams"}(O||(O={})),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"}(R||(R={})),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"}(A||(A={})),function(e){e[e.Admin=0]="Admin",e[e.User=1]="User",e[e.Guest=2]="Guest"}(M||(M={})),function(e){e.Large="large",e.Medium="medium",e.Small="small"}(k||(k={}));var V,z,j,G,q,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:O.teams,clientType:e.hostClientType?e.hostClientType:F.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===F.desktop||u.hostClientType===F.android||u.hostClientType===F.ios||u.hostClientType===F.rigel||u.hostClientType===F.teamsRoomsWindows||u.hostClientType===F.teamsRoomsAndroid||u.hostClientType===F.teamsPhones||u.hostClientType===F.teamsDisplays){var i=document.createElement("a");i.href=e.url,t(Se("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(Se("authentication.getAuthToken",[null==e?void 0:e.resources,null==e?void 0:e.claims,null==e?void 0: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(Se("authentication.getUser"))})).then((function(e){var n=e[0],t=e[1];if(n)return t;throw new Error(t)}))}function s(){l();try{pe.childWindow&&pe.childWindow.close()}finally{pe.childWindow=null,pe.childOrigin=null}}function c(e){s();var n=e.width||600,t=e.height||400;n=Math.min(n,pe.currentWindow.outerWidth-400),t=Math.min(t,pe.currentWindow.outerHeight-200);var o=document.createElement("a");o.href=e.url;var i=void 0!==pe.currentWindow.screenLeft?pe.currentWindow.screenLeft:pe.currentWindow.screenX,r=void 0!==pe.currentWindow.screenTop?pe.currentWindow.screenTop:pe.currentWindow.screenY;i+=pe.currentWindow.outerWidth/2-n/2,r+=pe.currentWindow.outerHeight/2-t/2,pe.childWindow=pe.currentWindow.open(o.href,"_blank","toolbar=no, location=yes, status=no, menubar=no, scrollbars=yes, top="+r+", left="+i+", width="+n+", height="+t),pe.childWindow?d():p("FailedToOpenWindow")}function l(){t&&(clearInterval(t),t=0),ie("initialize"),ie("navigateCrossDomain")}function d(){l(),t=pe.currentWindow.setInterval((function(){if(!pe.childWindow||pe.childWindow.closed)p("CancelledByUser");else{var e=pe.childOrigin;try{pe.childOrigin="*",Ze("ping")}finally{pe.childOrigin=e}}}),100),oe("initialize",(function(){return[R.authentication,u.hostClientType]})),oe("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)),pe.currentWindow.location.assign(g(o.href,"authSuccess",""))),n&&"reason"===n&&(t&&(o.href=g(o.href,"reason",t)),pe.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(){oe("authentication.authenticate.success",f,!1),oe("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 b(R.content,R.sidePanel,R.settings,R.remove,R.task,R.stage,R.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 b(),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 b(),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),b(R.authentication),Te("authentication.authenticate.success",[e]),Ge(pe.parentWindow,(function(){return setTimeout((function(){return pe.currentWindow.close()}),200)}))},e.notifyFailure=function(e,n){m(n,"reason",e),b(R.authentication),Te("authentication.authenticate.failure",[e]),Ge(pe.parentWindow,(function(){return setTimeout((function(){return pe.currentWindow.close()}),200)}))}}(z||(z={})),function(e){function n(){window.print()}e.enablePrintCapability=function(){u.printCapabilityEnabled||(u.printCapabilityEnabled=!0,b(),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){b(),se(e)},e.registerBeforeUnloadHandler=function(e){b(),ce(e)},e.registerFocusEnterHandler=function(e){b(),oe("focusEnter",e)},e.isSupported=function(){return!!N.supports.teamsCore}}(j||(j={})),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,ee(),u.initializePromise=ge(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)&&I(e),t(u.initializePromise)}))}function i(e){b(),re(e)}t.initialize=function(e){return y((function(){return o(e)}),5e3,new Error("SDK initialization timed out."))},t._initialize=function(e){pe.currentWindow=e},t._uninitialize=function(){u.initializeCalled&&(u.frameContext&&(i(null),q.backStack.registerBackButtonHandler(null),q.registerFullScreenHandler(null),j.registerBeforeUnloadHandler(null),j.registerOnLoadHandler(null),P.registerGetLogHandler(null)),u.frameContext===R.settings&&q.config.registerOnSaveHandler(null),u.frameContext===R.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,he())},t.getContext=function(){return new Promise((function(e){b(),e(Ce("getContext"))})).then((function(e){return J(e)}))},t.notifyAppLoaded=function(){b(),Te(t.Messages.AppLoaded,[e])},t.notifySuccess=function(){b(),Te(t.Messages.Success,[e])},t.notifyFailure=function(e){b(),Te(t.Messages.Failure,[e.reason,e.message])},t.notifyExpectedFailure=function(e){b(),Te(t.Messages.ExpectedFailure,[e.reason,e.message])},t.registerOnThemeChangeHandler=i,t.openLink=function(e){return new Promise((function(n){b(R.content,R.sidePanel,R.settings,R.task,R.stage,R.meetingStage),n(ve("executeDeepLink",e))}))}}(G||(G={})),function(e){function n(e){b(R.content),Te("setFrameContext",[e])}e.returnFocus=function(e){b(R.content),Te("returnFocus",[e])},e.setCurrentFrame=n,e.initializeWithFrameContext=function(e,t,o){G.initialize(o).then((function(){return t&&t()})),n(e)},e.getConfig=function(){return new Promise((function(e){b(R.content,R.settings,R.remove,R.sidePanel),e(Ce("settings.getSettings"))}))},e.navigateCrossDomain=function(e){return new Promise((function(n){b(R.content,R.sidePanel,R.settings,R.remove,R.task,R.stage,R.meetingStage);n(we("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){b(R.content,R.sidePanel,R.settings,R.task,R.stage,R.meetingStage),N.isLegacyTeams?n(ve("executeDeepLink",S(e))):n(ve("pages.navigateToApp",e))}))},e.shareDeepLink=function(e){b(R.content,R.sidePanel,R.meetingStage),Te("shareDeepLink",[e.subEntityId,e.subEntityLabel,e.subEntityWebUrl])},e.registerFullScreenHandler=function(e){b(),oe("fullScreenChange",e)},e.isSupported=function(){return!!N.supports.pages},function(e){e.navigateToTab=function(e){return new Promise((function(n){b();n(we("navigateToTab","Invalid internalTabInstanceId and/or channelId were/was provided",e))}))},e.getTabInstances=function(e){return new Promise((function(n){b(),n(Ce("getTabInstances",e))}))},e.getMruTabInstances=function(e){return new Promise((function(n){b(),n(Ce("getMruTabInstances",e))}))},e.isSupported=function(){return!!N.supports.pages&&!!N.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(){oe("settings.save",o,!1),oe("settings.remove",r,!1)},e.setValidityState=function(e){b(R.settings,R.remove),Te("settings.setValidityState",[e])},e.setConfig=function(e){return new Promise((function(n){b(R.content,R.settings,R.sidePanel),n(ve("settings.setSettings",e))}))},e.registerOnSaveHandler=function(e){b(R.settings),n=e,e&&Te("registerHandler",["save"])},e.registerOnRemoveHandler=function(e){b(R.remove,R.settings),t=e,e&&Te("registerHandler",["remove"])},e.registerChangeConfigHandler=function(e){b(R.content),oe("changeSettings",e)};var i=function(){function e(e){this.notified=!1,this.result=e||{}}return e.prototype.notifySuccess=function(){this.ensureNotNotified(),Te("settings.save.success"),this.notified=!0},e.prototype.notifyFailure=function(e){this.ensureNotNotified(),Te("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(),Te("settings.remove.success"),this.notified=!0},e.prototype.notifyFailure=function(e){this.ensureNotNotified(),Te("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!!N.supports.pages&&!!N.supports.pages.config}}(e.config||(e.config={})),function(e){var n;function t(){return new Promise((function(e){b();e(we("navigateBack","Back navigation is not supported in the current client or context."))}))}function o(){n&&n()||t()}e._initialize=function(){oe("backButtonPress",o,!1)},e.navigateBack=t,e.registerBackButtonHandler=function(e){n=e,e&&Te("registerHandler",["backButton"])},e.isSupported=function(){return!!N.supports.pages&&!!N.supports.pages.backStack}}(e.backStack||(e.backStack={})),function(e){e.enterFullscreen=function(){b(R.content),Te("enterFullscreen",[])},e.exitFullscreen=function(){b(R.content),Te("exitFullscreen",[])},e.isSupported=function(){return!!N.supports.pages&&!!N.supports.pages.fullTrust}}(e.fullTrust||(e.fullTrust={})),function(e){e.onClick=function(e){b(R.content),oe("appButtonClick",e)},e.onHoverEnter=function(e){b(R.content),oe("appButtonHoverEnter",e)},e.onHoverLeave=function(e){b(R.content),oe("appButtonHoverLeave",e)},e.isSupported=function(){return!!N.supports.pages&&!!N.supports.pages.appButton}}(e.appButton||(e.appButton={}))}(q||(q={}));var K=(0,t(227).debug)("teamsJs");function Q(e){return K.extend(e)}var X=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("handlers"),Y=function(){function e(){}return e.handlers={},e}();function ee(){Y.handlers.themeChange=ae,Y.handlers.load=ue,Y.handlers.beforeUnload=le,q.backStack._initialize()}var ne=$.extend("callHandler");function te(e,n){var t=Y.handlers[e];return t?(ne("Invoking the registered handler for message %s with arguments %o",e,n),[!0,t.apply(this,n)]):(ne("Handler for action message %s not found.",e),[!1,void 0])}function oe(e,n,t,o){void 0===t&&(t=!0),void 0===o&&(o=[]),n?(Y.handlers[e]=n,t&&Te("registerHandler",X([e],o,!0))):delete Y.handlers[e]}function ie(e){delete Y.handlers[e]}function re(e){Y.themeChangeHandler=e,e&&Te("registerHandler",["themeChange"])}function ae(e){Y.themeChangeHandler&&Y.themeChangeHandler(e),pe.childWindow&&Ze("themeChange",[e])}function se(e){Y.loadHandler=e,e&&Te("registerHandler",["load"])}function ue(e){Y.loadHandler&&Y.loadHandler(e),pe.childWindow&&Ze("load",[e])}function ce(e){Y.beforeUnloadHandler=e,e&&Te("registerHandler",["beforeUnload"])}function le(){var e=function(){Te("readyToUnload",[])};Y.beforeUnloadHandler&&Y.beforeUnloadHandler(e)||e()}var de=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))},fe=Q("communication"),pe=function(){return function(){}}(),me=function(){function e(){}return e.parentMessageQueue=[],e.childMessageQueue=[],e.nextMessageId=0,e.callbacks={},e.promiseCallbacks={},e}();function ge(n){if(me.messageListener=function(e){return Ee(e)},pe.currentWindow=pe.currentWindow||window,pe.parentWindow=pe.currentWindow.parent!==pe.currentWindow.self?pe.currentWindow.parent:pe.currentWindow.opener,(pe.parentWindow||n)&&pe.currentWindow.addEventListener("message",me.messageListener,!1),!pe.parentWindow){var t=pe.currentWindow;if(!t.nativeInterface)return Promise.reject(new Error("Initialization Failed. No Parent window found."));u.isFramelessWindow=!0,t.onNativeMessage=Ae}try{return pe.parentOrigin="*",Se("initialize",[e]).then((function(e){return{context:e[0],clientType:e[1],runtimeConfig:e[2],clientSupportedSDKVersion:e[3]}}))}finally{pe.parentOrigin=null}}function he(){pe.currentWindow.removeEventListener("message",me.messageListener,!1),pe.parentWindow=null,pe.parentOrigin=null,pe.childWindow=null,pe.childOrigin=null,me.parentMessageQueue=[],me.childMessageQueue=[],me.nextMessageId=0,me.callbacks={}}function Ce(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return Se(e,n).then((function(e){return e[0]}))}function ve(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return Se(e,n).then((function(e){var n=e[0],t=e[1];if(!n)throw new Error(t)}))}function we(e,n){for(var t=[],o=2;o<arguments.length;o++)t[o-2]=arguments[o];return Se(e,t).then((function(e){var t=e[0],o=e[1];if(!t)throw new Error(o||n)}))}function ye(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return Se(e,n).then((function(e){var n=e[0],t=e[1];if(n)throw n;return t}))}function Se(e,n){return void 0===n&&(n=void 0),new Promise((function(t){t(be(Pe(e,n).id))}))}function be(e){return new Promise((function(n){me.promiseCallbacks[e]=n}))}function Te(e,n,t){var o;n instanceof Function?t=n:n instanceof Array&&(o=n);var i=Pe(e,o);t&&(me.callbacks[i.id]=t)}var Ie=fe.extend("sendMessageToParentHelper");function Pe(e,n){var t=Ie,o=pe.parentWindow,i=Je(e,n);if(t("Message %i information: %o",i.id,{actionName:e,args:n}),u.isFramelessWindow)pe.currentWindow&&pe.currentWindow.nativeInterface&&(t("Sending message %i to parent via framelessPostMessage interface",i.id),pe.currentWindow.nativeInterface.framelessPostMessage(JSON.stringify(i)));else{var r=Le(o);o&&r?(t("Sending message %i to parent via postMessage",i.id),o.postMessage(i,r)):(t("Adding message %i to parent message queue",i.id),Ne(o).push(i))}return i}function Ee(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;Fe(n,t)&&(Oe(n,t),n===pe.parentWindow?Ae(e):n===pe.childWindow&&ke(e))}}function Fe(e,n){return(!pe.currentWindow||e!==pe.currentWindow)&&(!!(pe.currentWindow&&pe.currentWindow.location&&n&&n===pe.currentWindow.location.origin)||d(new URL(n)))}function Oe(e,n){u.isFramelessWindow||pe.parentWindow&&!pe.parentWindow.closed&&e!==pe.parentWindow?pe.childWindow&&!pe.childWindow.closed&&e!==pe.childWindow||(pe.childWindow=e,pe.childOrigin=n):(pe.parentWindow=e,pe.parentOrigin=n),pe.parentWindow&&pe.parentWindow.closed&&(pe.parentWindow=null,pe.parentOrigin=null),pe.childWindow&&pe.childWindow.closed&&(pe.childWindow=null,pe.childOrigin=null),je(pe.parentWindow),je(pe.childWindow)}var Re=fe.extend("handleParentMessage");function Ae(e){var n=Re;if("id"in e.data&&"number"==typeof e.data.id){var t=e.data,o=me.callbacks[t.id];n("Received a response from parent for message %i",t.id),o&&(n("Invoking the registered callback for message %i with arguments %o",t.id,t.args),o.apply(null,de(de([],t.args,!0),[t.isPartialResponse],!1)),Me(e)||(n("Removing registered callback for message %i",t.id),delete me.callbacks[t.id]));var i=me.promiseCallbacks[t.id];i&&(n("Invoking the registered promise callback for message %i with arguments %o",t.id,t.args),i(t.args),n("Removing registered promise callback for message %i",t.id),delete me.promiseCallbacks[t.id])}else if("func"in e.data&&"string"==typeof e.data.func){n("Received an action message %s from parent",(t=e.data).func),te(t.func,t.args)}else n("Received an unknown message: %O",e)}function Me(e){return!0===e.data.isPartialResponse}function ke(e){if("id"in e.data&&"func"in e.data){var n=e.data,t=te(n.func,n.args),o=t[0],i=t[1];o&&void 0!==i?qe(n.id,Array.isArray(i)?i:[i]):Te(n.func,n.args,(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(pe.childWindow){var o=e.pop();qe(n.id,e,o)}}))}}function Ne(e){return e===pe.parentWindow?me.parentMessageQueue:e===pe.childWindow?me.childMessageQueue:[]}function Le(e){return e===pe.parentWindow?pe.parentOrigin:e===pe.childWindow?pe.childOrigin:null}var De,We,Ue,He,_e,xe,Be,Ve,ze=fe.extend("flushMessageQueue");function je(e){for(var n=Le(e),t=Ne(e),o=e==pe.parentWindow?"parent":"child";e&&n&&t.length>0;){var i=t.shift();ze("Flushing message %i from "+o+" message queue via postMessage.",i.id),e.postMessage(i,n)}}function Ge(e,n){var t=pe.currentWindow.setInterval((function(){0===Ne(e).length&&(clearInterval(t),n())}),100)}function qe(e,n,t){var o=pe.childWindow,i=Ke(e,n,t),r=Le(o);o&&r&&o.postMessage(i,r)}function Ze(e,n){var t=pe.childWindow,o=Qe(e,n),i=Le(t);t&&i?t.postMessage(o,i):Ne(t).push(o)}function Je(e,n){return{id:me.nextMessageId++,func:e,timestamp:Date.now(),args:n||[]}}function Ke(e,n,t){return{id:e,args:n||[],isPartialResponse:t}}function Qe(e,n){return{func:e,args:n||[]}}!function(e){e.sendQuery=function(e,n,t){b(),Te("bot.executeQuery",[e],(function(e,o){e?n(o):t(o)}))},e.getSupportedCommands=function(e,n){b(),Te("bot.getSupportedCommands",(function(t,o){t?e(o):n(o)}))},e.authenticate=function(e,n,t){b(),Te("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!!N.supports.bot}}(De||(De={})),function(e){e.fileDownloadStart="fileDownloadStart",e.fileDownloadComplete="fileDownloadComplete"}(We||(We={})),function(e){e.view="view",e.edit="edit",e.editNew="editNew"}(Ue||(Ue={})),function(e){e.fileOpenPreference="fileOpenPreference",e.theme="theme"}(He||(He={})),function(e){e.openConversation=function(e){return new Promise((function(n){b(R.content);var t=ve("conversations.openConversation",{title:e.title,subEntityId:e.subEntityId,conversationId:e.conversationId,channelId:e.channelId,entityId:e.entityId});e.onStartConversation&&oe("startConversation",(function(n,t,o,i){return e.onStartConversation({subEntityId:n,conversationId:t,channelId:o,entityId:i})})),e.onCloseConversation&&oe("closeConversation",(function(n,t,o,i){return e.onCloseConversation({subEntityId:n,conversationId:t,channelId:o,entityId:i})})),n(t)}))},e.closeConversation=function(){b(R.content),Te("conversations.closeConversation"),ie("startConversation"),ie("closeConversation")},e.getChatMembers=function(){return new Promise((function(e){b(),e(Ce("getChatMembers"))}))},e.isSupported=function(){return!!N.supports.chat}}(_e||(_e={})),function(e){e.Inline="inline",e.Desktop="desktop",e.Web="web"}(xe||(xe={})),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"}(Be||(Be={})),function(e){function n(){return!!N.supports.appInstallDialog}e.openAppInstallDialog=function(e){return new Promise((function(t){if(b(R.content,R.sidePanel,R.settings,R.task,R.stage,R.meetingStage),!n())throw"Not supported";Te("appInstallDialog.openAppInstallDialog",[e]),t()}))},e.isSupported=n}(Ve||(Ve={}));var Xe,$e=function(){function e(){}return e.prototype.postMessage=function(e,n){return b(),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(ve("messageForChild",e))}))},e.prototype.addEventListener=function(e,n){"message"===e&&oe("messageForParent",n)},e}(),Ye=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 b(R.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(ve("messageForParent",e))}))},e.prototype.addEventListener=function(e,n){"message"===e&&oe("messageForChild",n)},e}(),en=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 nn(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 tn(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 on(e){return!(null==e||e.maxMediaCount>10)}function rn(e){return!(!e||e.mediaType!=ln.MediaType.VideoAndImage&&!e.videoAndImageProps)}function an(e,n,t){return null!=e&&null!=n&&n==ln.FileFormat.ID&&null!=t}function sn(e){return!(null==e||e.length<=0||e.length>10)}function un(e){return!e||!(null===e.timeOutIntervalInSec||e.timeOutIntervalInSec<=0||e.timeOutIntervalInSec>60)}function cn(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 b(R.content,R.sidePanel,R.meetingStage),Te("tasks.startTask",[e],n),new $e},e.resize=function(e){b(R.task),e.width,e.height;var n=en(e,["width","height"]);if(Object.keys(n).length)throw new Error("resize requires a dialogInfo argument containing only width and height");Te("tasks.updateTask",[e])},e.submit=function(e,n){b(R.task),Te("tasks.completeTask",[e,Array.isArray(n)?n:[n]])},e.isSupported=function(){return!!N.supports.dialog}}(Xe||(Xe={}));var ln,dn,fn,pn,mn,gn,hn,Cn,vn,wn,yn,Sn,bn,Tn,In,Pn,En,Fn,On,Rn,An=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 Mn(e,n){G.initialize(n).then((function(){e&&e()}))}function kn(){j.enablePrintCapability()}function Nn(){j.print()}function Ln(e){b(),G.getContext().then((function(n){e&&e(Xn(n))}))}function Dn(e){G.registerOnThemeChangeHandler(e)}function Wn(e){q.registerFullScreenHandler(e)}function Un(e){q.appButton.onClick(e)}function Hn(e){q.appButton.onHoverEnter(e)}function _n(e){q.appButton.onHoverLeave(e)}function xn(e){q.backStack.registerBackButtonHandler(e)}function Bn(e){j.registerOnLoadHandler(e)}function Vn(e){j.registerBeforeUnloadHandler(e)}function zn(e){j.registerFocusEnterHandler(e)}function jn(e){q.config.registerChangeConfigHandler(e)}function Gn(e,n){b(),q.tabs.getTabInstances(n).then((function(n){e(n)}))}function qn(e,n){b(),q.tabs.getMruTabInstances(n).then((function(n){e(n)}))}function Zn(e){q.shareDeepLink(e)}function Jn(e,n){b(R.content,R.sidePanel,R.settings,R.task,R.stage,R.meetingStage),n=n||f(),G.openLink(e).then((function(){n(!0)})).catch((function(e){n(!1,e.message)}))}function Kn(e){q.setCurrentFrame(e)}function Qn(e,n,t){q.initializeWithFrameContext(e,n,t)}function Xn(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 $n(e){q.returnFocus(e)}function Yn(e,n){b(),n=n||f(),q.tabs.navigateToTab(e).then((function(){n(!0)})).catch((function(e){n(!1,e.message)}))}function et(e,n){b(R.content,R.sidePanel,R.settings,R.remove,R.task,R.stage,R.meetingStage),n=n||f(),q.navigateCrossDomain(e).then((function(){n(!0)})).catch((function(e){n(!1,e.message)}))}function nt(e){b(),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 b(R.content,R.task),h((function(){return new Promise((function(e){if(!u.isFramelessWindow)throw{errorCode:Be.NOT_SUPPORTED_ON_PLATFORM};if(!T("1.7.0"))throw{errorCode:Be.OLD_PLATFORM};e(ye("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 An(n,e),n.prototype.getMedia=function(e){var n=this;b(R.content,R.task);return h((function(){return new Promise((function(e){if(!T(r))throw{errorCode:Be.OLD_PLATFORM};if(!an(n.mimeType,n.format,n.content))throw{errorCode:Be.INVALID_ARGUMENTS};T("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:[]};Te("getMedia",[e.content],(function(e){if(e&&e.error)t(e.error);else if(e&&e.mediaChunk)if(e.mediaChunk.chunkSequence<=0){var i=nn(o.assembleAttachment,o.mediaMimeType);n(i)}else{var r=tn(e.mediaChunk,o.mediaMimeType);o.assembleAttachment.push(r)}else t({errorCode:Be.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&&Te("getMedia",r),oe("getMedia"+o,(function(e){try{var r=JSON.parse(e);if(r.error)t(r.error),ie("getMedia"+o);else if(r&&r.mediaChunk)if(r.mediaChunk.chunkSequence<=0){var a=nn(i.assembleAttachment,i.mediaMimeType);n(a),ie("getMedia"+o)}else{var s=tn(r.mediaChunk,i.mediaMimeType);i.assembleAttachment.push(s)}else t({errorCode:Be.INTERNAL_ERROR,message:"data received is null"}),ie("getMedia"+o)}catch(n){t({errorCode:Be.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 b(R.content,R.task),h((function(){return new Promise((function(n){if(!T(r))throw{errorCode:Be.OLD_PLATFORM};if(rn(e)){if(u.hostClientType!=F.android&&u.hostClientType!=F.ios)throw{errorCode:Be.NOT_SUPPORTED_ON_PLATFORM};if(!T("2.0.2"))throw{errorCode:Be.OLD_PLATFORM}}if(!on(e))throw{errorCode:Be.INVALID_ARGUMENTS};n(Se("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 b(R.content,R.task),v((function(){return new Promise((function(n){if(!T(r))throw{errorCode:Be.OLD_PLATFORM};if(!sn(e))throw{errorCode:Be.INVALID_ARGUMENTS};n(ye("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),b(R.content,R.task),h((function(){return new Promise((function(e){if(u.hostClientType===F.desktop||u.hostClientType===F.web||u.hostClientType===F.rigel||u.hostClientType===F.teamsRoomsWindows||u.hostClientType===F.teamsRoomsAndroid||u.hostClientType===F.teamsPhones||u.hostClientType===F.teamsDisplays)throw{errorCode:Be.NOT_SUPPORTED_ON_PLATFORM};if(!T("1.9.0"))throw{errorCode:Be.OLD_PLATFORM};if(!un(o))throw{errorCode:Be.INVALID_ARGUMENTS};e(ye("media.scanBarCode",o))}))}),t)},e.isSupported=function(){return!!N.supports.media}}(ln||(ln={})),function(e){function n(e){return new Promise((function(n){if(!T(i))throw{errorCode:Be.OLD_PLATFORM};if(!e)throw{errorCode:Be.INVALID_ARGUMENTS};n(ye("location.getLocation",e))}))}function t(e){return new Promise((function(n){if(!T(i))throw{errorCode:Be.OLD_PLATFORM};if(!e)throw{errorCode:Be.INVALID_ARGUMENTS};n(ye("location.showLocation",e))}))}e.getLocation=function(e,t){return b(R.content,R.task),h(n,t,e)},e.showLocation=function(e,n){return b(R.content,R.task),C(t,n,e)},e.showLocationHelper=t,e.isSupported=function(){return!!N.supports.location}}(dn||(dn={})),function(e){function n(){return new Promise((function(e){e(ye("getIncomingClientAudioState"))}))}function t(){return new Promise((function(e){e(ye("toggleIncomingClientAudio"))}))}function o(){return new Promise((function(e){e(ye("meeting.getMeetingDetails"))}))}function i(){return new Promise((function(e){e(ye("meeting.getAuthenticationTokenForAnonymousUser"))}))}function r(){return new Promise((function(e){e(ye("meeting.getLiveStreamState"))}))}function a(e,n){return new Promise((function(t){t(ye("meeting.requestStartLiveStreaming",e,n))}))}function s(){return new Promise((function(e){e(ye("meeting.requestStopLiveStreaming"))}))}function u(e){return new Promise((function(n){n(ye("meeting.shareAppContentToStage",e))}))}function c(){return new Promise((function(e){e(ye("meeting.getAppContentStageSharingCapabilities"))}))}function l(){return new Promise((function(e){e(ye("meeting.stopSharingAppContentToStage"))}))}function d(){return new Promise((function(e){e(ye("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 b(R.sidePanel,R.meetingStage),w(n,e)},e.toggleIncomingClientAudio=function(e){return b(R.sidePanel,R.meetingStage),w(t,e)},e.getMeetingDetails=function(e){return b(R.sidePanel,R.meetingStage,R.settings,R.content),w(o,e)},e.getAuthenticationTokenForAnonymousUser=function(e){return b(R.sidePanel,R.meetingStage),w(i,e)},e.isSupported=function(){return!!N.supports.meeting},e.getLiveStreamState=function(e){return b(),w(r,e)},e.requestStartLiveStreaming=function(e,n,t){var o,i,r,s,u;return b(R.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]),v(a,u,r,s)},e.requestStopLiveStreaming=function(e){return b(R.sidePanel),v(s,e)},e.registerLiveStreamChangedHandler=function(e){if(!e)throw new Error("[register live stream changed handler] Handler cannot be null");b(R.sidePanel),oe("meeting.liveStreamChanged",e)},e.shareAppContentToStage=function(e,n){var t,o,i;return b(R.sidePanel),"function"==typeof e?(i=(t=[e,n])[0],o=t[1]):o=e,w(u,i,o)},e.getAppContentStageSharingCapabilities=function(e){return b(R.sidePanel),w(c,e)},e.stopSharingAppContentToStage=function(e){return b(R.sidePanel),w(l,e)},e.getAppContentStageSharingState=function(e){return b(R.sidePanel),w(d,e)}}(fn||(fn={})),function(e){e.openPurchaseExperience=function(e,n){var t,o;return"function"==typeof e?(t=e,o=n):o=e,b(R.content),w((function(){return new Promise((function(e){e(ye("monetization.openPurchaseExperience",o))}))}),t)},e.isSupported=function(){return!!N.supports.monetization}}(pn||(pn={})),function(e){function n(){return!!N.supports.calendar}e.openCalendarItem=function(e){return new Promise((function(t){if(b(R.content),!n())throw"Not Supported";t(ve("calendar.openCalendarItem",e))}))},e.composeMeeting=function(e){return new Promise((function(t){if(b(R.content),!n())throw"Not Supported";t(ve("calendar.composeMeeting",e))}))},e.isSupported=n}(mn||(mn={})),function(e){function n(){return!!N.supports.mail}e.openMailItem=function(e){return new Promise((function(t){if(b(R.content),!n())throw"Not Supported";t(ve("mail.openMailItem",e))}))},e.composeMail=function(e){return new Promise((function(t){if(b(R.content),!n())throw"Not Supported";t(ve("mail.composeMail",e))}))},e.isSupported=n,function(e){e.New="new",e.Reply="reply",e.ReplyAll="replyAll",e.Forward="forward"}(e.ComposeMailType||(e.ComposeMailType={}))}(gn||(gn={})),function(e){function n(e){return new Promise((function(n){if(!T("2.0.0"))throw{errorCode:Be.OLD_PLATFORM};if(!cn(e))throw{errorCode:Be.INVALID_ARGUMENTS};n(ye("people.selectPeople",e))}))}e.selectPeople=function(e,t){var o,i,r;return b(R.content,R.task,R.settings),"function"==typeof e?(i=(o=[e,t])[0],r=o[1]):r=e,h(n,i,r)},e.isSupported=function(){return!!N.supports.people}}(hn||(hn={})),function(e){function n(){Te("video.videoFrameProcessed")}function t(e){Te("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){b(R.sidePanel),oe("video.newVideoFrame",(function(o){void 0!==o&&e(o,n,t)})),Te("video.registerForVideoFrame",[o])},e.notifySelectedVideoEffectChanged=function(e,n){b(R.sidePanel),Te("video.videoEffectChanged",[e,n])},e.registerForVideoEffect=function(e){b(R.sidePanel),oe("video.effectParameterChange",e)},e.isSupported=function(){return!!N.supports.video}}(Cn||(Cn={})),function(e){function n(n){return new Promise((function(t){t(ye(e.SharingAPIMessages.shareWebContent,n))}))}function t(e){if(!(e&&e.content&&e.content.length))throw{errorCode:Be.INVALID_ARGUMENTS,message:"Shared content is missing"}}function o(e){if(e.content.some((function(e){return!e.type})))throw{errorCode:Be.INVALID_ARGUMENTS,message:"Shared content type cannot be undefined"};if(e.content.some((function(n){return n.type!==e.content[0].type})))throw{errorCode:Be.INVALID_ARGUMENTS,message:"Shared content must be of the same type"}}function i(e){if("URL"!==e.content[0].type)throw{errorCode:Be.INVALID_ARGUMENTS,message:"Content type is unsupported"};if(e.content.some((function(e){return!e.url})))throw{errorCode:Be.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 v((function(){return Promise.reject(e)}),r)}return b(R.content,R.sidePanel,R.task,R.stage,R.meetingStage),v(n,r,e)},e.isSupported=function(){return!!N.supports.sharing}}(vn||(vn={})),function(e){function n(){return!!N.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(b(R.content),!n())throw"Not supported";return Te("call.startCall",[e],t)}))},e.isSupported=n}(wn||(wn={})),function(e){e.Messages=G.Messages,e.FailedReason=G.FailedReason,e.ExpectedFailureReason=G.ExpectedFailureReason,e.notifyAppLoaded=function(){G.notifyAppLoaded()},e.notifySuccess=function(){G.notifySuccess()},e.notifyFailure=function(e){G.notifyFailure(e)},e.notifyExpectedFailure=function(e){G.notifyExpectedFailure(e)}}(yn||(yn={})),function(e){e.setValidityState=function(e){q.config.setValidityState(e)},e.getSettings=function(e){b(R.content,R.settings,R.remove,R.sidePanel),q.getConfig().then((function(n){e(n)}))},e.setSettings=function(e,n){b(R.content,R.settings,R.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)}}(Sn||(Sn={})),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 Xe.open(n(e),t)},e.updateTask=function(e){Xe.resize(e)},e.submitTask=function(e,n){Xe.submit(e,n)}}(bn||(bn={})),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(b(R.content),!e||0===e.length)throw new Error("[files.getCloudStorageFolders] channelId name cannot be null or empty");n(ye("files.getCloudStorageFolders",e))}))},e.addCloudStorageFolder=function(e){return new Promise((function(n){if(b(R.content),!e||0===e.length)throw new Error("[files.addCloudStorageFolder] channelId name cannot be null or empty");n(Se("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(b(R.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(ye("files.deleteCloudStorageFolder",e,n))}))},e.getCloudStorageFolderContents=function(e,n){return new Promise((function(t){if(b(R.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(ye("files.getCloudStorageFolderContents",e,n))}))},e.openCloudStorageFile=function(e,n,t){if(b(R.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");Te("files.openCloudStorageFile",[e,n,t])},e.openFilePreview=function(e){b(R.content),Te("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){b(R.content),n(ye("files.getExternalProviders",e))}))},e.copyMoveFiles=function(e,n,t,o,i){return void 0===i&&(i=!1),new Promise((function(r){if(b(R.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(ye("files.copyMoveFiles",e,n,t,o,i))}))},e.isSupported=function(){return!!N.supports.files}}(Tn||(Tn={})),function(e){!function(e){e.getUserJoinedTeams=function(e){return new Promise((function(n){if(b(),(u.hostClientType===F.android||u.hostClientType===F.teamsRoomsAndroid||u.hostClientType===F.teamsPhones||u.hostClientType===F.teamsDisplays)&&!T("2.0.1")){var t={errorCode:Be.OLD_PLATFORM};throw new Error(JSON.stringify(t))}n(Ce("getUserJoinedTeams",e))}))},e.getConfigSetting=function(e){return new Promise((function(n){b(),n(Ce("getConfigSetting",e))}))},e.isSupported=function(){return!!N.supports.teams&&!!N.supports.teams.fullTrust}}(e.fullTrust||(e.fullTrust={}))}(In||(In={})),function(e){e.getPairedMeetingRoomInfo=function(){return new Promise((function(e){b(),e(ye("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");b(),n(ye("meetingRoom.sendCommandToPairedMeetingRoom",e))}))},e.registerMeetingRoomCapabilitiesUpdateHandler=function(e){if(!e)throw new Error("[meetingRoom.registerMeetingRoomCapabilitiesUpdateHandler] Handler cannot be null");b(),oe("meetingRoom.meetingRoomCapabilitiesUpdate",(function(n){b(),e(n)}))},e.registerMeetingRoomStatesUpdateHandler=function(e){if(!e)throw new Error("[meetingRoom.registerMeetingRoomStatesUpdateHandler] Handler cannot be null");b(),oe("meetingRoom.meetingRoomStatesUpdate",(function(n){b(),e(n)}))},e.isSupported=function(){return!!N.supports.meetingRoom}}(Pn||(Pn={})),function(e){e.showNotification=function(e){b(R.content),Te("notifications.showNotification",[e])},e.isSupported=function(){return!!N.supports.notifications}}(En||(En={})),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");b(R.sidePanel),Te("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");b(R.sidePanel),Te("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");b(R.sidePanel),Te("remoteCamera.sendControlCommand",[e],n)},e.terminateSession=function(e){if(!e)throw new Error("[remoteCamera.terminateSession] Callback cannot be null");b(R.sidePanel),Te("remoteCamera.terminateSession",e)},e.registerOnCapableParticipantsChangeHandler=function(e){if(!e)throw new Error("[remoteCamera.registerOnCapableParticipantsChangeHandler] Handler cannot be null");b(R.sidePanel),oe("remoteCamera.capableParticipantsChange",e)},e.registerOnErrorHandler=function(e){if(!e)throw new Error("[remoteCamera.registerOnErrorHandler] Handler cannot be null");b(R.sidePanel),oe("remoteCamera.handlerError",e)},e.registerOnDeviceStateChangeHandler=function(e){if(!e)throw new Error("[remoteCamera.registerOnDeviceStateChangeHandler] Handler cannot be null");b(R.sidePanel),oe("remoteCamera.deviceStateChange",e)},e.registerOnSessionStatusChangeHandler=function(e){if(!e)throw new Error("[remoteCamera.registerOnSessionStatusChangeHandler] Handler cannot be null");b(R.sidePanel),oe("remoteCamera.sessionStatusChange",e)},e.isSupported=function(){return!!N.supports.remoteCamera}}(Fn||(Fn={})),function(e){e.selectAppEntity=function(e,n,t,o){if(b(R.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");Te("appEntity.selectAppEntity",[e,n,t],o)},e.isSupported=function(){return!!N.supports.appEntity}}(On||(On={})),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(b(R.content),!e)throw new Error("[teams.getTeamChannels] groupId cannot be null or empty");if(!n)throw new Error("[teams.getTeamChannels] Callback cannot be null");Te("teams.getTeamChannels",[e],n)},e.refreshSiteUrl=function(e,n){if(b(),!e)throw new Error("[teams.refreshSiteUrl] threadId cannot be null or empty");if(!n)throw new Error("[teams.refreshSiteUrl] Callback cannot be null");Te("teams.refreshSiteUrl",[e],n)},e.isSupported=function(){return!!N.supports.teams}}(Rn||(Rn={}))})(),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 C=(1e4*(268435455&(m+=122192928e5))+g)%4294967296;l[c++]=C>>>24&255,l[c++]=C>>>16&255,l[c++]=C>>>8&255,l[c++]=255&C;var v=m/4294967296*1e4&268435455;l[c++]=v>>>8&255,l[c++]=255&v,l[c++]=v>>>24&15|16,l[c++]=v>>>16&255,l[c++]=f>>>8|128,l[c++]=255&f;for(var w=0;w<6;++w)l[c+w]=d[w];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)}},227:(e,n,t)=>{n.formatArgs=function(n){if(n[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+n[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const t="color: "+this.color;n.splice(1,0,t,"color: inherit");let o=0,i=0;n[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(o++,"%c"===e&&(i=o))})),n.splice(i,0,t)},n.save=function(e){try{e?n.storage.setItem("debug",e):n.storage.removeItem("debug")}catch(e){}},n.load=function(){let e;try{e=n.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},n.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},n.storage=function(){try{return localStorage}catch(e){}}(),n.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),n.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],n.log=console.debug||console.log||(()=>{}),e.exports=t(447)(n);const{formatters:o}=e.exports;o.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},447:(e,n,t)=>{e.exports=function(e){function n(e){let t,i,r,a=null;function s(...e){if(!s.enabled)return;const o=s,i=Number(new Date),r=i-(t||i);o.diff=r,o.prev=t,o.curr=i,t=i,e[0]=n.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((t,i)=>{if("%%"===t)return"%";a++;const r=n.formatters[i];if("function"==typeof r){const n=e[a];t=r.call(o,n),e.splice(a,1),a--}return t})),n.formatArgs.call(o,e);(o.log||n.log).apply(o,e)}return s.namespace=e,s.useColors=n.useColors(),s.color=n.selectColor(e),s.extend=o,s.destroy=n.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(i!==n.namespaces&&(i=n.namespaces,r=n.enabled(e)),r),set:e=>{a=e}}),"function"==typeof n.init&&n.init(s),s}function o(e,t){const o=n(this.namespace+(void 0===t?":":t)+e);return o.log=this.log,o}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return n.debug=n,n.default=n,n.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},n.disable=function(){const e=[...n.names.map(i),...n.skips.map(i).map((e=>"-"+e))].join(",");return n.enable(""),e},n.enable=function(e){let t;n.save(e),n.namespaces=e,n.names=[],n.skips=[];const o=("string"==typeof e?e:"").split(/[\s,]+/),i=o.length;for(t=0;t<i;t++)o[t]&&("-"===(e=o[t].replace(/\*/g,".*?"))[0]?n.skips.push(new RegExp("^"+e.substr(1)+"$")):n.names.push(new RegExp("^"+e+"$")))},n.enabled=function(e){if("*"===e[e.length-1])return!0;let t,o;for(t=0,o=n.skips.length;t<o;t++)if(n.skips[t].test(e))return!1;for(t=0,o=n.names.length;t<o;t++)if(n.names[t].test(e))return!0;return!1},n.humanize=t(824),n.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((t=>{n[t]=e[t]})),n.names=[],n.skips=[],n.formatters={},n.selectColor=function(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return n.colors[Math.abs(t)%n.colors.length]},n.enable(n.load()),n}},824:e=>{var n=1e3,t=60*n,o=60*t,i=24*o;function r(e){if(!((e=String(e)).length>100)){var r=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(r){var a=parseFloat(r[1]);switch((r[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return 6048e5*a;case"days":case"day":case"d":return a*i;case"hours":case"hour":case"hrs":case"hr":case"h":return a*o;case"minutes":case"minute":case"mins":case"min":case"m":return a*t;case"seconds":case"second":case"secs":case"sec":case"s":return a*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}function a(e){var r=Math.abs(e);return r>=i?Math.round(e/i)+"d":r>=o?Math.round(e/o)+"h":r>=t?Math.round(e/t)+"m":r>=n?Math.round(e/n)+"s":e+"ms"}function s(e){var r=Math.abs(e);return r>=i?u(e,r,i,"day"):r>=o?u(e,r,o,"hour"):r>=t?u(e,r,t,"minute"):r>=n?u(e,r,n,"second"):e+" ms"}function u(e,n,t,o){var i=n>=1.5*t;return Math.round(e/t)+" "+o+(i?"s":"")}e.exports=function(e,n){n=n||{};var t=typeof e;if("string"===t&&e.length>0)return r(e);if("number"===t&&isFinite(e))return n.long?s(e):a(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}}},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:()=>$e,DialogDimension:()=>k,ErrorCode:()=>Be,FileOpenPreference:()=>xe,FrameContexts:()=>R,HostClientType:()=>F,HostName:()=>O,NotificationTypes:()=>We,ParentAppWindow:()=>Ye,TaskModuleDimension:()=>Z,TeamType:()=>A,UserSettingTypes:()=>He,UserTeamRole:()=>M,ViewerActionTypes:()=>Ue,app:()=>G,appEntity:()=>On,appInitialization:()=>yn,appInstallDialog:()=>Ve,authentication:()=>z,bot:()=>De,calendar:()=>mn,call:()=>wn,chat:()=>_e,dialog:()=>Xe,enablePrintCapability:()=>kn,executeDeepLink:()=>Jn,files:()=>Tn,getContext:()=>Ln,getMruTabInstances:()=>qn,getTabInstances:()=>Gn,initialize:()=>Mn,initializeWithFrameContext:()=>Qn,legacy:()=>In,location:()=>dn,logs:()=>P,mail:()=>gn,media:()=>ln,meeting:()=>fn,meetingRoom:()=>Pn,menus:()=>E,monetization:()=>pn,navigateBack:()=>nt,navigateCrossDomain:()=>et,navigateToTab:()=>Yn,notifications:()=>En,pages:()=>q,people:()=>hn,print:()=>Nn,registerAppButtonClickHandler:()=>Un,registerAppButtonHoverEnterHandler:()=>Hn,registerAppButtonHoverLeaveHandler:()=>_n,registerBackButtonHandler:()=>xn,registerBeforeUnloadHandler:()=>Vn,registerCustomHandler:()=>x,registerEnterSettingsHandler:()=>jn,registerFocusEnterHandler:()=>zn,registerFullScreenHandler:()=>Wn,registerOnLoadHandler:()=>Bn,registerOnThemeChangeHandler:()=>Dn,registerUserSettingsChangeHandler:()=>B,remoteCamera:()=>Fn,returnFocus:()=>$n,sendCustomEvent:()=>_,sendCustomMessage:()=>H,setFrameContext:()=>Kn,settings:()=>Sn,shareDeepLink:()=>Zn,sharing:()=>vn,tasks:()=>bn,teams:()=>Rn,teamsCore:()=>j,uploadCustomApp:()=>U,video:()=>Cn});var e="2.0.0-beta.3-dev.36",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","localhost: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 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(){n&&n(void 0,!0)})).catch((function(e){n&&n(e,!1)})),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(null)})).catch((function(e){n&&n(e)})),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(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 b(){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 T(e){void 0===e&&(e=n);var t=p(u.clientSupportedSDKVersion,e);return!isNaN(t)&&t>=0}function I(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 P,E,F,O,R,A,M,k,N={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){N=g(e)}function W(){E.initialize()}function U(e,n){b(),Te("uploadCustomApp",[e],n||f())}function H(e,n,t){b(),Te(e,n,t)}function _(e,n){if(b(),!pe.childWindow)throw new Error("The child window has not yet been initialized or is not present");Ze(e,n)}function x(e,n){var t=this;b(),oe(e,(function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return n.apply(t,e)}))}function B(e,n){b(),oe("userSettingsChange",n,!0,[e])}!function(e){e.registerGetLogHandler=function(e){b(),e?oe("log.request",(function(){Te("log.receive",[e()])})):ie("log.request")},e.isSupported=function(){return!!N.supports.logs}}(P||(P={})),function(e){var n,t,o,i=function(){return function(){this.enabled=!0,this.selected=!1}}();function r(e){o&&o(e)||(b(),Te("viewConfigItemPress",[e]))}function a(e){n&&n(e)||(b(),Te("handleNavBarMenuItemPress",[e]))}function s(e){t&&t(e)||(b(),Te("handleActionMenuItemPress",[e]))}e.MenuItem=i,function(e){e.dropDown="dropDown",e.popOver="popOver"}(e.MenuListType||(e.MenuListType={})),e.initialize=function(){oe("navBarMenuItemPress",a,!1),oe("actionMenuItemPress",s,!1),oe("setModuleView",r,!1)},e.setUpViews=function(e,n){b(),o=n,Te("setUpViews",[e])},e.setNavBarMenu=function(e,t){b(),n=t,Te("setNavBarMenu",[e])},e.showActionMenu=function(e,n){b(),t=n,Te("showActionMenu",[e])},e.isSupported=function(){return!!N.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"}(F||(F={})),function(e){e.office="Office",e.outlook="Outlook",e.orange="Orange",e.teams="Teams"}(O||(O={})),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"}(R||(R={})),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"}(A||(A={})),function(e){e[e.Admin=0]="Admin",e[e.User=1]="User",e[e.Guest=2]="Guest"}(M||(M={})),function(e){e.Large="large",e.Medium="medium",e.Small="small"}(k||(k={}));var V,z,j,G,q,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:O.teams,clientType:e.hostClientType?e.hostClientType:F.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===F.desktop||u.hostClientType===F.android||u.hostClientType===F.ios||u.hostClientType===F.rigel||u.hostClientType===F.teamsRoomsWindows||u.hostClientType===F.teamsRoomsAndroid||u.hostClientType===F.teamsPhones||u.hostClientType===F.teamsDisplays){var i=document.createElement("a");i.href=e.url,t(Se("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(Se("authentication.getAuthToken",[null==e?void 0:e.resources,null==e?void 0:e.claims,null==e?void 0: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(Se("authentication.getUser"))})).then((function(e){var n=e[0],t=e[1];if(n)return t;throw new Error(t)}))}function s(){l();try{pe.childWindow&&pe.childWindow.close()}finally{pe.childWindow=null,pe.childOrigin=null}}function c(e){s();var n=e.width||600,t=e.height||400;n=Math.min(n,pe.currentWindow.outerWidth-400),t=Math.min(t,pe.currentWindow.outerHeight-200);var o=document.createElement("a");o.href=e.url;var i=void 0!==pe.currentWindow.screenLeft?pe.currentWindow.screenLeft:pe.currentWindow.screenX,r=void 0!==pe.currentWindow.screenTop?pe.currentWindow.screenTop:pe.currentWindow.screenY;i+=pe.currentWindow.outerWidth/2-n/2,r+=pe.currentWindow.outerHeight/2-t/2,pe.childWindow=pe.currentWindow.open(o.href,"_blank","toolbar=no, location=yes, status=no, menubar=no, scrollbars=yes, top="+r+", left="+i+", width="+n+", height="+t),pe.childWindow?d():p("FailedToOpenWindow")}function l(){t&&(clearInterval(t),t=0),ie("initialize"),ie("navigateCrossDomain")}function d(){l(),t=pe.currentWindow.setInterval((function(){if(!pe.childWindow||pe.childWindow.closed)p("CancelledByUser");else{var e=pe.childOrigin;try{pe.childOrigin="*",Ze("ping")}finally{pe.childOrigin=e}}}),100),oe("initialize",(function(){return[R.authentication,u.hostClientType]})),oe("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)),pe.currentWindow.location.assign(g(o.href,"authSuccess",""))),n&&"reason"===n&&(t&&(o.href=g(o.href,"reason",t)),pe.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(){oe("authentication.authenticate.success",f,!1),oe("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 b(R.content,R.sidePanel,R.settings,R.remove,R.task,R.stage,R.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 b(),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 b(),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),b(R.authentication),Te("authentication.authenticate.success",[e]),Ge(pe.parentWindow,(function(){return setTimeout((function(){return pe.currentWindow.close()}),200)}))},e.notifyFailure=function(e,n){m(n,"reason",e),b(R.authentication),Te("authentication.authenticate.failure",[e]),Ge(pe.parentWindow,(function(){return setTimeout((function(){return pe.currentWindow.close()}),200)}))}}(z||(z={})),function(e){function n(){window.print()}e.enablePrintCapability=function(){u.printCapabilityEnabled||(u.printCapabilityEnabled=!0,b(),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){b(),se(e)},e.registerBeforeUnloadHandler=function(e){b(),ce(e)},e.registerFocusEnterHandler=function(e){b(),oe("focusEnter",e)},e.isSupported=function(){return!!N.supports.teamsCore}}(j||(j={})),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,ee(),u.initializePromise=ge(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)&&I(e),t(u.initializePromise)}))}function i(e){b(),re(e)}t.initialize=function(e){return y((function(){return o(e)}),5e3,new Error("SDK initialization timed out."))},t._initialize=function(e){pe.currentWindow=e},t._uninitialize=function(){u.initializeCalled&&(u.frameContext&&(i(null),q.backStack.registerBackButtonHandler(null),q.registerFullScreenHandler(null),j.registerBeforeUnloadHandler(null),j.registerOnLoadHandler(null),P.registerGetLogHandler(null)),u.frameContext===R.settings&&q.config.registerOnSaveHandler(null),u.frameContext===R.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,he())},t.getContext=function(){return new Promise((function(e){b(),e(Ce("getContext"))})).then((function(e){return J(e)}))},t.notifyAppLoaded=function(){b(),Te(t.Messages.AppLoaded,[e])},t.notifySuccess=function(){b(),Te(t.Messages.Success,[e])},t.notifyFailure=function(e){b(),Te(t.Messages.Failure,[e.reason,e.message])},t.notifyExpectedFailure=function(e){b(),Te(t.Messages.ExpectedFailure,[e.reason,e.message])},t.registerOnThemeChangeHandler=i,t.openLink=function(e){return new Promise((function(n){b(R.content,R.sidePanel,R.settings,R.task,R.stage,R.meetingStage),n(ve("executeDeepLink",e))}))}}(G||(G={})),function(e){function n(e){b(R.content),Te("setFrameContext",[e])}e.returnFocus=function(e){b(R.content),Te("returnFocus",[e])},e.setCurrentFrame=n,e.initializeWithFrameContext=function(e,t,o){G.initialize(o).then((function(){return t&&t()})),n(e)},e.getConfig=function(){return new Promise((function(e){b(R.content,R.settings,R.remove,R.sidePanel),e(Ce("settings.getSettings"))}))},e.navigateCrossDomain=function(e){return new Promise((function(n){b(R.content,R.sidePanel,R.settings,R.remove,R.task,R.stage,R.meetingStage);n(we("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){b(R.content,R.sidePanel,R.settings,R.task,R.stage,R.meetingStage),N.isLegacyTeams?n(ve("executeDeepLink",S(e))):n(ve("pages.navigateToApp",e))}))},e.shareDeepLink=function(e){b(R.content,R.sidePanel,R.meetingStage),Te("shareDeepLink",[e.subEntityId,e.subEntityLabel,e.subEntityWebUrl])},e.registerFullScreenHandler=function(e){b(),oe("fullScreenChange",e)},e.isSupported=function(){return!!N.supports.pages},function(e){e.navigateToTab=function(e){return new Promise((function(n){b();n(we("navigateToTab","Invalid internalTabInstanceId and/or channelId were/was provided",e))}))},e.getTabInstances=function(e){return new Promise((function(n){b(),n(Ce("getTabInstances",e))}))},e.getMruTabInstances=function(e){return new Promise((function(n){b(),n(Ce("getMruTabInstances",e))}))},e.isSupported=function(){return!!N.supports.pages&&!!N.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(){oe("settings.save",o,!1),oe("settings.remove",r,!1)},e.setValidityState=function(e){b(R.settings,R.remove),Te("settings.setValidityState",[e])},e.setConfig=function(e){return new Promise((function(n){b(R.content,R.settings,R.sidePanel),n(ve("settings.setSettings",e))}))},e.registerOnSaveHandler=function(e){b(R.settings),n=e,e&&Te("registerHandler",["save"])},e.registerOnRemoveHandler=function(e){b(R.remove,R.settings),t=e,e&&Te("registerHandler",["remove"])},e.registerChangeConfigHandler=function(e){b(R.content),oe("changeSettings",e)};var i=function(){function e(e){this.notified=!1,this.result=e||{}}return e.prototype.notifySuccess=function(){this.ensureNotNotified(),Te("settings.save.success"),this.notified=!0},e.prototype.notifyFailure=function(e){this.ensureNotNotified(),Te("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(),Te("settings.remove.success"),this.notified=!0},e.prototype.notifyFailure=function(e){this.ensureNotNotified(),Te("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!!N.supports.pages&&!!N.supports.pages.config}}(e.config||(e.config={})),function(e){var n;function t(){return new Promise((function(e){b();e(we("navigateBack","Back navigation is not supported in the current client or context."))}))}function o(){n&&n()||t()}e._initialize=function(){oe("backButtonPress",o,!1)},e.navigateBack=t,e.registerBackButtonHandler=function(e){n=e,e&&Te("registerHandler",["backButton"])},e.isSupported=function(){return!!N.supports.pages&&!!N.supports.pages.backStack}}(e.backStack||(e.backStack={})),function(e){e.enterFullscreen=function(){b(R.content),Te("enterFullscreen",[])},e.exitFullscreen=function(){b(R.content),Te("exitFullscreen",[])},e.isSupported=function(){return!!N.supports.pages&&!!N.supports.pages.fullTrust}}(e.fullTrust||(e.fullTrust={})),function(e){e.onClick=function(e){b(R.content),oe("appButtonClick",e)},e.onHoverEnter=function(e){b(R.content),oe("appButtonHoverEnter",e)},e.onHoverLeave=function(e){b(R.content),oe("appButtonHoverLeave",e)},e.isSupported=function(){return!!N.supports.pages&&!!N.supports.pages.appButton}}(e.appButton||(e.appButton={}))}(q||(q={}));var K=(0,t(227).debug)("teamsJs");function Q(e){return K.extend(e)}var X=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("handlers"),Y=function(){function e(){}return e.handlers={},e}();function ee(){Y.handlers.themeChange=ae,Y.handlers.load=ue,Y.handlers.beforeUnload=le,q.backStack._initialize()}var ne=$.extend("callHandler");function te(e,n){var t=Y.handlers[e];return t?(ne("Invoking the registered handler for message %s with arguments %o",e,n),[!0,t.apply(this,n)]):(ne("Handler for action message %s not found.",e),[!1,void 0])}function oe(e,n,t,o){void 0===t&&(t=!0),void 0===o&&(o=[]),n?(Y.handlers[e]=n,t&&Te("registerHandler",X([e],o,!0))):delete Y.handlers[e]}function ie(e){delete Y.handlers[e]}function re(e){Y.themeChangeHandler=e,e&&Te("registerHandler",["themeChange"])}function ae(e){Y.themeChangeHandler&&Y.themeChangeHandler(e),pe.childWindow&&Ze("themeChange",[e])}function se(e){Y.loadHandler=e,e&&Te("registerHandler",["load"])}function ue(e){Y.loadHandler&&Y.loadHandler(e),pe.childWindow&&Ze("load",[e])}function ce(e){Y.beforeUnloadHandler=e,e&&Te("registerHandler",["beforeUnload"])}function le(){var e=function(){Te("readyToUnload",[])};Y.beforeUnloadHandler&&Y.beforeUnloadHandler(e)||e()}var de=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))},fe=Q("communication"),pe=function(){return function(){}}(),me=function(){function e(){}return e.parentMessageQueue=[],e.childMessageQueue=[],e.nextMessageId=0,e.callbacks={},e.promiseCallbacks={},e}();function ge(n){if(me.messageListener=function(e){return Ee(e)},pe.currentWindow=pe.currentWindow||window,pe.parentWindow=pe.currentWindow.parent!==pe.currentWindow.self?pe.currentWindow.parent:pe.currentWindow.opener,(pe.parentWindow||n)&&pe.currentWindow.addEventListener("message",me.messageListener,!1),!pe.parentWindow){var t=pe.currentWindow;if(!t.nativeInterface)return Promise.reject(new Error("Initialization Failed. No Parent window found."));u.isFramelessWindow=!0,t.onNativeMessage=Ae}try{return pe.parentOrigin="*",Se("initialize",[e]).then((function(e){return{context:e[0],clientType:e[1],runtimeConfig:e[2],clientSupportedSDKVersion:e[3]}}))}finally{pe.parentOrigin=null}}function he(){pe.currentWindow.removeEventListener("message",me.messageListener,!1),pe.parentWindow=null,pe.parentOrigin=null,pe.childWindow=null,pe.childOrigin=null,me.parentMessageQueue=[],me.childMessageQueue=[],me.nextMessageId=0,me.callbacks={}}function Ce(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return Se(e,n).then((function(e){return e[0]}))}function ve(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return Se(e,n).then((function(e){var n=e[0],t=e[1];if(!n)throw new Error(t)}))}function we(e,n){for(var t=[],o=2;o<arguments.length;o++)t[o-2]=arguments[o];return Se(e,t).then((function(e){var t=e[0],o=e[1];if(!t)throw new Error(o||n)}))}function ye(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return Se(e,n).then((function(e){var n=e[0],t=e[1];if(n)throw n;return t}))}function Se(e,n){return void 0===n&&(n=void 0),new Promise((function(t){t(be(Pe(e,n).id))}))}function be(e){return new Promise((function(n){me.promiseCallbacks[e]=n}))}function Te(e,n,t){var o;n instanceof Function?t=n:n instanceof Array&&(o=n);var i=Pe(e,o);t&&(me.callbacks[i.id]=t)}var Ie=fe.extend("sendMessageToParentHelper");function Pe(e,n){var t=Ie,o=pe.parentWindow,i=Je(e,n);if(t("Message %i information: %o",i.id,{actionName:e,args:n}),u.isFramelessWindow)pe.currentWindow&&pe.currentWindow.nativeInterface&&(t("Sending message %i to parent via framelessPostMessage interface",i.id),pe.currentWindow.nativeInterface.framelessPostMessage(JSON.stringify(i)));else{var r=Le(o);o&&r?(t("Sending message %i to parent via postMessage",i.id),o.postMessage(i,r)):(t("Adding message %i to parent message queue",i.id),Ne(o).push(i))}return i}function Ee(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;Fe(n,t)&&(Oe(n,t),n===pe.parentWindow?Ae(e):n===pe.childWindow&&ke(e))}}function Fe(e,n){return(!pe.currentWindow||e!==pe.currentWindow)&&(!!(pe.currentWindow&&pe.currentWindow.location&&n&&n===pe.currentWindow.location.origin)||d(new URL(n)))}function Oe(e,n){u.isFramelessWindow||pe.parentWindow&&!pe.parentWindow.closed&&e!==pe.parentWindow?pe.childWindow&&!pe.childWindow.closed&&e!==pe.childWindow||(pe.childWindow=e,pe.childOrigin=n):(pe.parentWindow=e,pe.parentOrigin=n),pe.parentWindow&&pe.parentWindow.closed&&(pe.parentWindow=null,pe.parentOrigin=null),pe.childWindow&&pe.childWindow.closed&&(pe.childWindow=null,pe.childOrigin=null),je(pe.parentWindow),je(pe.childWindow)}var Re=fe.extend("handleParentMessage");function Ae(e){var n=Re;if("id"in e.data&&"number"==typeof e.data.id){var t=e.data,o=me.callbacks[t.id];n("Received a response from parent for message %i",t.id),o&&(n("Invoking the registered callback for message %i with arguments %o",t.id,t.args),o.apply(null,de(de([],t.args,!0),[t.isPartialResponse],!1)),Me(e)||(n("Removing registered callback for message %i",t.id),delete me.callbacks[t.id]));var i=me.promiseCallbacks[t.id];i&&(n("Invoking the registered promise callback for message %i with arguments %o",t.id,t.args),i(t.args),n("Removing registered promise callback for message %i",t.id),delete me.promiseCallbacks[t.id])}else if("func"in e.data&&"string"==typeof e.data.func){n("Received an action message %s from parent",(t=e.data).func),te(t.func,t.args)}else n("Received an unknown message: %O",e)}function Me(e){return!0===e.data.isPartialResponse}function ke(e){if("id"in e.data&&"func"in e.data){var n=e.data,t=te(n.func,n.args),o=t[0],i=t[1];o&&void 0!==i?qe(n.id,Array.isArray(i)?i:[i]):Te(n.func,n.args,(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(pe.childWindow){var o=e.pop();qe(n.id,e,o)}}))}}function Ne(e){return e===pe.parentWindow?me.parentMessageQueue:e===pe.childWindow?me.childMessageQueue:[]}function Le(e){return e===pe.parentWindow?pe.parentOrigin:e===pe.childWindow?pe.childOrigin:null}var De,We,Ue,He,_e,xe,Be,Ve,ze=fe.extend("flushMessageQueue");function je(e){for(var n=Le(e),t=Ne(e),o=e==pe.parentWindow?"parent":"child";e&&n&&t.length>0;){var i=t.shift();ze("Flushing message %i from "+o+" message queue via postMessage.",i.id),e.postMessage(i,n)}}function Ge(e,n){var t=pe.currentWindow.setInterval((function(){0===Ne(e).length&&(clearInterval(t),n())}),100)}function qe(e,n,t){var o=pe.childWindow,i=Ke(e,n,t),r=Le(o);o&&r&&o.postMessage(i,r)}function Ze(e,n){var t=pe.childWindow,o=Qe(e,n),i=Le(t);t&&i?t.postMessage(o,i):Ne(t).push(o)}function Je(e,n){return{id:me.nextMessageId++,func:e,timestamp:Date.now(),args:n||[]}}function Ke(e,n,t){return{id:e,args:n||[],isPartialResponse:t}}function Qe(e,n){return{func:e,args:n||[]}}!function(e){e.sendQuery=function(e,n,t){b(),Te("bot.executeQuery",[e],(function(e,o){e?n(o):t(o)}))},e.getSupportedCommands=function(e,n){b(),Te("bot.getSupportedCommands",(function(t,o){t?e(o):n(o)}))},e.authenticate=function(e,n,t){b(),Te("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!!N.supports.bot}}(De||(De={})),function(e){e.fileDownloadStart="fileDownloadStart",e.fileDownloadComplete="fileDownloadComplete"}(We||(We={})),function(e){e.view="view",e.edit="edit",e.editNew="editNew"}(Ue||(Ue={})),function(e){e.fileOpenPreference="fileOpenPreference",e.theme="theme"}(He||(He={})),function(e){e.openConversation=function(e){return new Promise((function(n){b(R.content);var t=ve("conversations.openConversation",{title:e.title,subEntityId:e.subEntityId,conversationId:e.conversationId,channelId:e.channelId,entityId:e.entityId});e.onStartConversation&&oe("startConversation",(function(n,t,o,i){return e.onStartConversation({subEntityId:n,conversationId:t,channelId:o,entityId:i})})),e.onCloseConversation&&oe("closeConversation",(function(n,t,o,i){return e.onCloseConversation({subEntityId:n,conversationId:t,channelId:o,entityId:i})})),n(t)}))},e.closeConversation=function(){b(R.content),Te("conversations.closeConversation"),ie("startConversation"),ie("closeConversation")},e.getChatMembers=function(){return new Promise((function(e){b(),e(Ce("getChatMembers"))}))},e.isSupported=function(){return!!N.supports.chat}}(_e||(_e={})),function(e){e.Inline="inline",e.Desktop="desktop",e.Web="web"}(xe||(xe={})),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"}(Be||(Be={})),function(e){function n(){return!!N.supports.appInstallDialog}e.openAppInstallDialog=function(e){return new Promise((function(t){if(b(R.content,R.sidePanel,R.settings,R.task,R.stage,R.meetingStage),!n())throw"Not supported";Te("appInstallDialog.openAppInstallDialog",[e]),t()}))},e.isSupported=n}(Ve||(Ve={}));var Xe,$e=function(){function e(){}return e.prototype.postMessage=function(e,n){return b(),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(ve("messageForChild",e))}))},e.prototype.addEventListener=function(e,n){"message"===e&&oe("messageForParent",n)},e}(),Ye=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 b(R.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(ve("messageForParent",e))}))},e.prototype.addEventListener=function(e,n){"message"===e&&oe("messageForChild",n)},e}(),en=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 nn(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 tn(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 on(e){return!(null==e||e.maxMediaCount>10)}function rn(e){return!(!e||e.mediaType!=ln.MediaType.VideoAndImage&&!e.videoAndImageProps)}function an(e,n,t){return null!=e&&null!=n&&n==ln.FileFormat.ID&&null!=t}function sn(e){return!(null==e||e.length<=0||e.length>10)}function un(e){return!e||!(null===e.timeOutIntervalInSec||e.timeOutIntervalInSec<=0||e.timeOutIntervalInSec>60)}function cn(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 b(R.content,R.sidePanel,R.meetingStage),Te("tasks.startTask",[e],n),new $e},e.resize=function(e){b(R.task),e.width,e.height;var n=en(e,["width","height"]);if(Object.keys(n).length)throw new Error("resize requires a dialogInfo argument containing only width and height");Te("tasks.updateTask",[e])},e.submit=function(e,n){b(R.task),Te("tasks.completeTask",[e,Array.isArray(n)?n:[n]])},e.isSupported=function(){return!!N.supports.dialog}}(Xe||(Xe={}));var ln,dn,fn,pn,mn,gn,hn,Cn,vn,wn,yn,Sn,bn,Tn,In,Pn,En,Fn,On,Rn,An=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 Mn(e,n){G.initialize(n).then((function(){e&&e()}))}function kn(){j.enablePrintCapability()}function Nn(){j.print()}function Ln(e){b(),G.getContext().then((function(n){e&&e(Xn(n))}))}function Dn(e){G.registerOnThemeChangeHandler(e)}function Wn(e){q.registerFullScreenHandler(e)}function Un(e){q.appButton.onClick(e)}function Hn(e){q.appButton.onHoverEnter(e)}function _n(e){q.appButton.onHoverLeave(e)}function xn(e){q.backStack.registerBackButtonHandler(e)}function Bn(e){j.registerOnLoadHandler(e)}function Vn(e){j.registerBeforeUnloadHandler(e)}function zn(e){j.registerFocusEnterHandler(e)}function jn(e){q.config.registerChangeConfigHandler(e)}function Gn(e,n){b(),q.tabs.getTabInstances(n).then((function(n){e(n)}))}function qn(e,n){b(),q.tabs.getMruTabInstances(n).then((function(n){e(n)}))}function Zn(e){q.shareDeepLink(e)}function Jn(e,n){b(R.content,R.sidePanel,R.settings,R.task,R.stage,R.meetingStage),n=n||f(),G.openLink(e).then((function(){n(!0)})).catch((function(e){n(!1,e.message)}))}function Kn(e){q.setCurrentFrame(e)}function Qn(e,n,t){q.initializeWithFrameContext(e,n,t)}function Xn(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 $n(e){q.returnFocus(e)}function Yn(e,n){b(),n=n||f(),q.tabs.navigateToTab(e).then((function(){n(!0)})).catch((function(e){n(!1,e.message)}))}function et(e,n){b(R.content,R.sidePanel,R.settings,R.remove,R.task,R.stage,R.meetingStage),n=n||f(),q.navigateCrossDomain(e).then((function(){n(!0)})).catch((function(e){n(!1,e.message)}))}function nt(e){b(),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 b(R.content,R.task),h((function(){return new Promise((function(e){if(!u.isFramelessWindow)throw{errorCode:Be.NOT_SUPPORTED_ON_PLATFORM};if(!T("1.7.0"))throw{errorCode:Be.OLD_PLATFORM};e(ye("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 An(n,e),n.prototype.getMedia=function(e){var n=this;b(R.content,R.task);return h((function(){return new Promise((function(e){if(!T(r))throw{errorCode:Be.OLD_PLATFORM};if(!an(n.mimeType,n.format,n.content))throw{errorCode:Be.INVALID_ARGUMENTS};T("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:[]};Te("getMedia",[e.content],(function(e){if(e&&e.error)t(e.error);else if(e&&e.mediaChunk)if(e.mediaChunk.chunkSequence<=0){var i=nn(o.assembleAttachment,o.mediaMimeType);n(i)}else{var r=tn(e.mediaChunk,o.mediaMimeType);o.assembleAttachment.push(r)}else t({errorCode:Be.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&&Te("getMedia",r),oe("getMedia"+o,(function(e){try{var r=JSON.parse(e);if(r.error)t(r.error),ie("getMedia"+o);else if(r&&r.mediaChunk)if(r.mediaChunk.chunkSequence<=0){var a=nn(i.assembleAttachment,i.mediaMimeType);n(a),ie("getMedia"+o)}else{var s=tn(r.mediaChunk,i.mediaMimeType);i.assembleAttachment.push(s)}else t({errorCode:Be.INTERNAL_ERROR,message:"data received is null"}),ie("getMedia"+o)}catch(n){t({errorCode:Be.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 b(R.content,R.task),h((function(){return new Promise((function(n){if(!T(r))throw{errorCode:Be.OLD_PLATFORM};if(rn(e)){if(u.hostClientType!=F.android&&u.hostClientType!=F.ios)throw{errorCode:Be.NOT_SUPPORTED_ON_PLATFORM};if(!T("2.0.2"))throw{errorCode:Be.OLD_PLATFORM}}if(!on(e))throw{errorCode:Be.INVALID_ARGUMENTS};n(Se("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 b(R.content,R.task),v((function(){return new Promise((function(n){if(!T(r))throw{errorCode:Be.OLD_PLATFORM};if(!sn(e))throw{errorCode:Be.INVALID_ARGUMENTS};n(ye("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),b(R.content,R.task),h((function(){return new Promise((function(e){if(u.hostClientType===F.desktop||u.hostClientType===F.web||u.hostClientType===F.rigel||u.hostClientType===F.teamsRoomsWindows||u.hostClientType===F.teamsRoomsAndroid||u.hostClientType===F.teamsPhones||u.hostClientType===F.teamsDisplays)throw{errorCode:Be.NOT_SUPPORTED_ON_PLATFORM};if(!T("1.9.0"))throw{errorCode:Be.OLD_PLATFORM};if(!un(o))throw{errorCode:Be.INVALID_ARGUMENTS};e(ye("media.scanBarCode",o))}))}),t)},e.isSupported=function(){return!!N.supports.media}}(ln||(ln={})),function(e){function n(e){return new Promise((function(n){if(!T(i))throw{errorCode:Be.OLD_PLATFORM};if(!e)throw{errorCode:Be.INVALID_ARGUMENTS};n(ye("location.getLocation",e))}))}function t(e){return new Promise((function(n){if(!T(i))throw{errorCode:Be.OLD_PLATFORM};if(!e)throw{errorCode:Be.INVALID_ARGUMENTS};n(ye("location.showLocation",e))}))}e.getLocation=function(e,t){return b(R.content,R.task),h(n,t,e)},e.showLocation=function(e,n){return b(R.content,R.task),C(t,n,e)},e.showLocationHelper=t,e.isSupported=function(){return!!N.supports.location}}(dn||(dn={})),function(e){function n(){return new Promise((function(e){e(ye("getIncomingClientAudioState"))}))}function t(){return new Promise((function(e){e(ye("toggleIncomingClientAudio"))}))}function o(){return new Promise((function(e){e(ye("meeting.getMeetingDetails"))}))}function i(){return new Promise((function(e){e(ye("meeting.getAuthenticationTokenForAnonymousUser"))}))}function r(){return new Promise((function(e){e(ye("meeting.getLiveStreamState"))}))}function a(e,n){return new Promise((function(t){t(ye("meeting.requestStartLiveStreaming",e,n))}))}function s(){return new Promise((function(e){e(ye("meeting.requestStopLiveStreaming"))}))}function u(e){return new Promise((function(n){n(ye("meeting.shareAppContentToStage",e))}))}function c(){return new Promise((function(e){e(ye("meeting.getAppContentStageSharingCapabilities"))}))}function l(){return new Promise((function(e){e(ye("meeting.stopSharingAppContentToStage"))}))}function d(){return new Promise((function(e){e(ye("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 b(R.sidePanel,R.meetingStage),w(n,e)},e.toggleIncomingClientAudio=function(e){return b(R.sidePanel,R.meetingStage),w(t,e)},e.getMeetingDetails=function(e){return b(R.sidePanel,R.meetingStage,R.settings,R.content),w(o,e)},e.getAuthenticationTokenForAnonymousUser=function(e){return b(R.sidePanel,R.meetingStage),w(i,e)},e.isSupported=function(){return!!N.supports.meeting},e.getLiveStreamState=function(e){return b(),w(r,e)},e.requestStartLiveStreaming=function(e,n,t){var o,i,r,s,u;return b(R.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]),v(a,u,r,s)},e.requestStopLiveStreaming=function(e){return b(R.sidePanel),v(s,e)},e.registerLiveStreamChangedHandler=function(e){if(!e)throw new Error("[register live stream changed handler] Handler cannot be null");b(R.sidePanel),oe("meeting.liveStreamChanged",e)},e.shareAppContentToStage=function(e,n){var t,o,i;return b(R.sidePanel),"function"==typeof e?(i=(t=[e,n])[0],o=t[1]):o=e,w(u,i,o)},e.getAppContentStageSharingCapabilities=function(e){return b(R.sidePanel),w(c,e)},e.stopSharingAppContentToStage=function(e){return b(R.sidePanel),w(l,e)},e.getAppContentStageSharingState=function(e){return b(R.sidePanel),w(d,e)}}(fn||(fn={})),function(e){e.openPurchaseExperience=function(e,n){var t,o;return"function"==typeof e?(t=e,o=n):o=e,b(R.content),w((function(){return new Promise((function(e){e(ye("monetization.openPurchaseExperience",o))}))}),t)},e.isSupported=function(){return!!N.supports.monetization}}(pn||(pn={})),function(e){function n(){return!!N.supports.calendar}e.openCalendarItem=function(e){return new Promise((function(t){if(b(R.content),!n())throw"Not Supported";t(ve("calendar.openCalendarItem",e))}))},e.composeMeeting=function(e){return new Promise((function(t){if(b(R.content),!n())throw"Not Supported";t(ve("calendar.composeMeeting",e))}))},e.isSupported=n}(mn||(mn={})),function(e){function n(){return!!N.supports.mail}e.openMailItem=function(e){return new Promise((function(t){if(b(R.content),!n())throw"Not Supported";t(ve("mail.openMailItem",e))}))},e.composeMail=function(e){return new Promise((function(t){if(b(R.content),!n())throw"Not Supported";t(ve("mail.composeMail",e))}))},e.isSupported=n,function(e){e.New="new",e.Reply="reply",e.ReplyAll="replyAll",e.Forward="forward"}(e.ComposeMailType||(e.ComposeMailType={}))}(gn||(gn={})),function(e){function n(e){return new Promise((function(n){if(!T("2.0.0"))throw{errorCode:Be.OLD_PLATFORM};if(!cn(e))throw{errorCode:Be.INVALID_ARGUMENTS};n(ye("people.selectPeople",e))}))}e.selectPeople=function(e,t){var o,i,r;return b(R.content,R.task,R.settings),"function"==typeof e?(i=(o=[e,t])[0],r=o[1]):r=e,h(n,i,r)},e.isSupported=function(){return!!N.supports.people}}(hn||(hn={})),function(e){function n(){Te("video.videoFrameProcessed")}function t(e){Te("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){b(R.sidePanel),oe("video.newVideoFrame",(function(o){void 0!==o&&e(o,n,t)})),Te("video.registerForVideoFrame",[o])},e.notifySelectedVideoEffectChanged=function(e,n){b(R.sidePanel),Te("video.videoEffectChanged",[e,n])},e.registerForVideoEffect=function(e){b(R.sidePanel),oe("video.effectParameterChange",e)},e.isSupported=function(){return!!N.supports.video}}(Cn||(Cn={})),function(e){function n(n){return new Promise((function(t){t(ye(e.SharingAPIMessages.shareWebContent,n))}))}function t(e){if(!(e&&e.content&&e.content.length))throw{errorCode:Be.INVALID_ARGUMENTS,message:"Shared content is missing"}}function o(e){if(e.content.some((function(e){return!e.type})))throw{errorCode:Be.INVALID_ARGUMENTS,message:"Shared content type cannot be undefined"};if(e.content.some((function(n){return n.type!==e.content[0].type})))throw{errorCode:Be.INVALID_ARGUMENTS,message:"Shared content must be of the same type"}}function i(e){if("URL"!==e.content[0].type)throw{errorCode:Be.INVALID_ARGUMENTS,message:"Content type is unsupported"};if(e.content.some((function(e){return!e.url})))throw{errorCode:Be.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 v((function(){return Promise.reject(e)}),r)}return b(R.content,R.sidePanel,R.task,R.stage,R.meetingStage),v(n,r,e)},e.isSupported=function(){return!!N.supports.sharing}}(vn||(vn={})),function(e){function n(){return!!N.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(b(R.content),!n())throw"Not supported";return Te("call.startCall",[e],t)}))},e.isSupported=n}(wn||(wn={})),function(e){e.Messages=G.Messages,e.FailedReason=G.FailedReason,e.ExpectedFailureReason=G.ExpectedFailureReason,e.notifyAppLoaded=function(){G.notifyAppLoaded()},e.notifySuccess=function(){G.notifySuccess()},e.notifyFailure=function(e){G.notifyFailure(e)},e.notifyExpectedFailure=function(e){G.notifyExpectedFailure(e)}}(yn||(yn={})),function(e){e.setValidityState=function(e){q.config.setValidityState(e)},e.getSettings=function(e){b(R.content,R.settings,R.remove,R.sidePanel),q.getConfig().then((function(n){e(n)}))},e.setSettings=function(e,n){b(R.content,R.settings,R.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)}}(Sn||(Sn={})),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 Xe.open(n(e),t)},e.updateTask=function(e){Xe.resize(e)},e.submitTask=function(e,n){Xe.submit(e,n)}}(bn||(bn={})),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(b(R.content),!e||0===e.length)throw new Error("[files.getCloudStorageFolders] channelId name cannot be null or empty");n(ye("files.getCloudStorageFolders",e))}))},e.addCloudStorageFolder=function(e){return new Promise((function(n){if(b(R.content),!e||0===e.length)throw new Error("[files.addCloudStorageFolder] channelId name cannot be null or empty");n(Se("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(b(R.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(ye("files.deleteCloudStorageFolder",e,n))}))},e.getCloudStorageFolderContents=function(e,n){return new Promise((function(t){if(b(R.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(ye("files.getCloudStorageFolderContents",e,n))}))},e.openCloudStorageFile=function(e,n,t){if(b(R.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");Te("files.openCloudStorageFile",[e,n,t])},e.openFilePreview=function(e){b(R.content),Te("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){b(R.content),n(ye("files.getExternalProviders",e))}))},e.copyMoveFiles=function(e,n,t,o,i){return void 0===i&&(i=!1),new Promise((function(r){if(b(R.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(ye("files.copyMoveFiles",e,n,t,o,i))}))},e.isSupported=function(){return!!N.supports.files}}(Tn||(Tn={})),function(e){!function(e){e.getUserJoinedTeams=function(e){return new Promise((function(n){if(b(),(u.hostClientType===F.android||u.hostClientType===F.teamsRoomsAndroid||u.hostClientType===F.teamsPhones||u.hostClientType===F.teamsDisplays)&&!T("2.0.1")){var t={errorCode:Be.OLD_PLATFORM};throw new Error(JSON.stringify(t))}n(Ce("getUserJoinedTeams",e))}))},e.getConfigSetting=function(e){return new Promise((function(n){b(),n(Ce("getConfigSetting",e))}))},e.isSupported=function(){return!!N.supports.teams&&!!N.supports.teams.fullTrust}}(e.fullTrust||(e.fullTrust={}))}(In||(In={})),function(e){e.getPairedMeetingRoomInfo=function(){return new Promise((function(e){b(),e(ye("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");b(),n(ye("meetingRoom.sendCommandToPairedMeetingRoom",e))}))},e.registerMeetingRoomCapabilitiesUpdateHandler=function(e){if(!e)throw new Error("[meetingRoom.registerMeetingRoomCapabilitiesUpdateHandler] Handler cannot be null");b(),oe("meetingRoom.meetingRoomCapabilitiesUpdate",(function(n){b(),e(n)}))},e.registerMeetingRoomStatesUpdateHandler=function(e){if(!e)throw new Error("[meetingRoom.registerMeetingRoomStatesUpdateHandler] Handler cannot be null");b(),oe("meetingRoom.meetingRoomStatesUpdate",(function(n){b(),e(n)}))},e.isSupported=function(){return!!N.supports.meetingRoom}}(Pn||(Pn={})),function(e){e.showNotification=function(e){b(R.content),Te("notifications.showNotification",[e])},e.isSupported=function(){return!!N.supports.notifications}}(En||(En={})),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");b(R.sidePanel),Te("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");b(R.sidePanel),Te("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");b(R.sidePanel),Te("remoteCamera.sendControlCommand",[e],n)},e.terminateSession=function(e){if(!e)throw new Error("[remoteCamera.terminateSession] Callback cannot be null");b(R.sidePanel),Te("remoteCamera.terminateSession",e)},e.registerOnCapableParticipantsChangeHandler=function(e){if(!e)throw new Error("[remoteCamera.registerOnCapableParticipantsChangeHandler] Handler cannot be null");b(R.sidePanel),oe("remoteCamera.capableParticipantsChange",e)},e.registerOnErrorHandler=function(e){if(!e)throw new Error("[remoteCamera.registerOnErrorHandler] Handler cannot be null");b(R.sidePanel),oe("remoteCamera.handlerError",e)},e.registerOnDeviceStateChangeHandler=function(e){if(!e)throw new Error("[remoteCamera.registerOnDeviceStateChangeHandler] Handler cannot be null");b(R.sidePanel),oe("remoteCamera.deviceStateChange",e)},e.registerOnSessionStatusChangeHandler=function(e){if(!e)throw new Error("[remoteCamera.registerOnSessionStatusChangeHandler] Handler cannot be null");b(R.sidePanel),oe("remoteCamera.sessionStatusChange",e)},e.isSupported=function(){return!!N.supports.remoteCamera}}(Fn||(Fn={})),function(e){e.selectAppEntity=function(e,n,t,o){if(b(R.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");Te("appEntity.selectAppEntity",[e,n,t],o)},e.isSupported=function(){return!!N.supports.appEntity}}(On||(On={})),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(b(R.content),!e)throw new Error("[teams.getTeamChannels] groupId cannot be null or empty");if(!n)throw new Error("[teams.getTeamChannels] Callback cannot be null");Te("teams.getTeamChannels",[e],n)},e.refreshSiteUrl=function(e,n){if(b(),!e)throw new Error("[teams.refreshSiteUrl] threadId cannot be null or empty");if(!n)throw new Error("[teams.refreshSiteUrl] Callback cannot be null");Te("teams.refreshSiteUrl",[e],n)},e.isSupported=function(){return!!N.supports.teams}}(Rn||(Rn={}))})(),o})()}));
2
2
  //# sourceMappingURL=MicrosoftTeams.min.js.map
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@microsoft/teams-js","author":"Microsoft Teams","version":"2.0.0-beta.3-dev.35","description":"Microsoft Client SDK for building app for Microsoft hosts","repository":{"type":"git","url":"https://github.com/OfficeDev/microsoft-teams-library-js/tree/2.0-preview"},"main":"./dist/MicrosoftTeams.min.js","typings":"./dist/MicrosoftTeams.d.ts","scripts":{"build":"yarn lint && webpack","clean":"rimraf ./dist","doctor":"yarn lint --fix","eslint-fix-build":"yarn eslint ./src --fix && yarn build","lint":"eslint ./src/**/*.ts","prettier":"prettier --write '**/*.{ts,js,css,html}'","test":"jest"},"dependencies":{"debug":"4.3.3"},"devDependencies":{"@types/debug":"4.1.7"},"license":"MIT","files":["dist/**","LICENSE","README.md"]}
1
+ {"name":"@microsoft/teams-js","author":"Microsoft Teams","version":"2.0.0-beta.3-dev.36","description":"Microsoft Client SDK for building app for Microsoft hosts","repository":{"type":"git","url":"https://github.com/OfficeDev/microsoft-teams-library-js/tree/2.0-preview"},"main":"./dist/MicrosoftTeams.min.js","typings":"./dist/MicrosoftTeams.d.ts","scripts":{"build":"yarn lint && webpack","clean":"rimraf ./dist","doctor":"yarn lint --fix","eslint-fix-build":"yarn eslint ./src --fix && yarn build","lint":"eslint ./src/**/*.ts","prettier":"prettier --write '**/*.{ts,js,css,html}'","test":"jest"},"dependencies":{"debug":"4.3.3"},"devDependencies":{"@types/debug":"4.1.7"},"license":"MIT","files":["dist/**","LICENSE","README.md"]}