@microsoft/teams-js 2.6.0-beta.0 → 2.6.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1133,7 +1133,7 @@ __webpack_require__.d(__webpack_exports__, {
1133
1133
  });
1134
1134
 
1135
1135
  ;// CONCATENATED MODULE: ./src/public/version.ts
1136
- var version = "2.6.0-beta.0";
1136
+ var version = "2.6.0-beta.1";
1137
1137
 
1138
1138
  ;// CONCATENATED MODULE: ./src/internal/globalVars.ts
1139
1139
  var GlobalVars = /** @class */ (function () {
@@ -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={378: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?l(e,r,i,"day"):r>=o?l(e,r,o,"hour"):r>=t?l(e,r,t,"minute"):r>=n?l(e,r,n,"second"):e+" ms"}function l(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))}},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,l=0;e.exports=function(e,n,t){var c=n&&t||0,u=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 g=void 0!==e.msecs?e.msecs:(new Date).getTime(),m=void 0!==e.nsecs?e.nsecs:l+1,h=g-s+(m-l)/1e4;if(h<0&&void 0===e.clockseq&&(f=f+1&16383),(h<0||g>s)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=g,l=m,i=f;var C=(1e4*(268435455&(g+=122192928e5))+m)%4294967296;u[c++]=C>>>24&255,u[c++]=C>>>16&255,u[c++]=C>>>8&255,u[c++]=255&C;var w=g/4294967296*1e4&268435455;u[c++]=w>>>8&255,u[c++]=255&w,u[c++]=w>>>24&15|16,u[c++]=w>>>16&255,u[c++]=f>>>8|128,u[c++]=255&f;for(var v=0;v<6;++v)u[c+v]=d[v];return n||a(u)}},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(378),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}}},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,{ActionObjectType:()=>n,ChannelType:()=>m,ChildAppWindow:()=>Yn,ContainerState:()=>Ot,DialogDimension:()=>f,ErrorCode:()=>r,FileOpenPreference:()=>e,FrameContexts:()=>c,HostClientType:()=>s,HostName:()=>l,LiveShareHost:()=>_t,NotificationTypes:()=>Xe,ParentAppWindow:()=>et,SecondaryM365ContentIdName:()=>i,TaskModuleDimension:()=>h,TeamType:()=>u,UserMeetingRole:()=>Rt,UserSettingTypes:()=>Ye,UserTeamRole:()=>d,ViewerActionTypes:()=>$e,app:()=>le,appEntity:()=>Ut,appInitialization:()=>Xn,appInstallDialog:()=>hn,authentication:()=>_,barCode:()=>bn,calendar:()=>Vn,call:()=>Qn,chat:()=>Pn,conversations:()=>en,dialog:()=>re,enablePrintCapability:()=>it,executeDeepLink:()=>yt,files:()=>Mt,geoLocation:()=>Tn,getContext:()=>at,getMruTabInstances:()=>wt,getTabInstances:()=>Ct,initialize:()=>ot,initializeWithFrameContext:()=>bt,location:()=>Wn,logs:()=>Qe,mail:()=>Bn,media:()=>Sn,meeting:()=>_n,meetingRoom:()=>Nt,menus:()=>ae,monetization:()=>xn,navigateBack:()=>Ft,navigateCrossDomain:()=>Et,navigateToTab:()=>It,notifications:()=>Dt,openFilePreview:()=>mn,pages:()=>ce,people:()=>zn,print:()=>rt,profile:()=>Gn,registerAppButtonClickHandler:()=>ct,registerAppButtonHoverEnterHandler:()=>ut,registerAppButtonHoverLeaveHandler:()=>dt,registerBackButtonHandler:()=>ft,registerBeforeUnloadHandler:()=>gt,registerChangeSettingsHandler:()=>ht,registerCustomHandler:()=>pn,registerFocusEnterHandler:()=>mt,registerFullScreenHandler:()=>lt,registerOnLoadHandler:()=>pt,registerOnThemeChangeHandler:()=>st,registerUserSettingsChangeHandler:()=>gn,remoteCamera:()=>Lt,returnFocus:()=>Tt,search:()=>qn,sendCustomEvent:()=>fn,sendCustomMessage:()=>dn,setFrameContext:()=>St,settings:()=>$n,shareDeepLink:()=>vt,sharing:()=>Kn,stageView:()=>Zn,tasks:()=>kt,teams:()=>Ht,teamsCore:()=>se,uploadCustomApp:()=>un,version:()=>p,video:()=>jn,videoEx:()=>Wt,webStorage:()=>Jn});var e,n,i,r,a,s,l,c,u,d,f,p="2.6.0-beta.0",g=function(){function e(){}return e.initializeCalled=!1,e.initializeCompleted=!1,e.additionalValidOrigins=[],e.isFramelessWindow=!1,e.printCapabilityEnabled=!1,e}();!function(e){e.Inline="inline",e.Desktop="desktop",e.Web="web"}(e||(e={})),function(e){e.M365Content="m365content"}(n||(n={})),function(e){e.DriveId="driveId",e.GroupId="groupId",e.SiteId="siteId",e.UserId="userId"}(i||(i={})),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"}(r||(r={})),function(e){e.GeoLocation="geolocation",e.Media="media"}(a||(a={})),function(e){e.desktop="desktop",e.web="web",e.android="android",e.ios="ios",e.ipados="ipados",e.rigel="rigel",e.surfaceHub="surfaceHub",e.teamsRoomsWindows="teamsRoomsWindows",e.teamsRoomsAndroid="teamsRoomsAndroid",e.teamsPhones="teamsPhones",e.teamsDisplays="teamsDisplays"}(s||(s={})),function(e){e.office="Office",e.outlook="Outlook",e.outlookWin32="OutlookWin32",e.orange="Orange",e.teams="Teams"}(l||(l={})),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"}(c||(c={})),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"}(u||(u={})),function(e){e[e.Admin=0]="Admin",e[e.User=1]="User",e[e.Guest=2]="Guest"}(d||(d={})),function(e){e.Large="large",e.Medium="medium",e.Small="small"}(f||(f={}));var m,h=f;!function(e){e.Regular="Regular",e.Private="Private",e.Shared="Shared"}(m||(m={}));var C={errorCode:r.NOT_SUPPORTED_ON_PLATFORM},w="2.0.1",v="2.0.3",y="1.9.0",S="1.8.0",b=["teams.microsoft.com","teams.microsoft.us","gov.teams.microsoft.us","dod.teams.microsoft.us","int.teams.microsoft.com","teams.live.com","devspaces.skype.com","ssauth.skype.com","local.teams.live.com","local.teams.live.com:8080","local.teams.office.com","local.teams.office.com:8080","msft.spoppe.com","*.sharepoint.com","*.sharepoint-df.com","*.sharepointonline.com","outlook.office.com","outlook-sdf.office.com","outlook.office365.com","outlook-sdf.office365.com","outlook.live.com","outlook-sdf.live.com","*.teams.microsoft.com","*.www.office.com","www.office.com","word.office.com","excel.office.com","powerpoint.office.com","www.officeppe.com","*.www.microsoft365.com","www.microsoft365.com"],P=/^https:\/\//,T="The library has not yet been initialized",I=(0,t(227).debug)("teamsJs");function E(e){return I.extend(e)}var F=t(22);function k(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 R(e){if("https:"!==e.protocol)return!1;var n=e.host;if(b.some((function(e){return k(e,n)})))return!0;for(var t=0,o=g.additionalValidOrigins;t<o.length;t++){var i=o[t];if(k("https://"===i.substring(0,8)?i.substring(8):i,n))return!0}return!1}function O(e){return function(n,t){if(!n)throw new Error(e||t)}}function A(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 F.v4()}function N(e){return Object.keys(e).forEach((function(n){"object"==typeof e[n]&&N(e[n])})),Object.freeze(e)}function D(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 L(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 U(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 H(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 W(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()}var _,x=E("internal"),V=x.extend("ensureInitializeCalled"),B=x.extend("ensureInitialized");function z(){if(!g.initializeCalled)throw V(T),new Error(T)}function G(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!g.initializeCompleted)throw B("%s. initializeCalled: %s",T,g.initializeCalled.toString()),new Error(T);if(e&&e.length>0){for(var t=!1,o=0;o<e.length;o++)if(e[o]===g.frameContext){t=!0;break}if(!t)throw new Error("This call is only allowed in following contexts: "+JSON.stringify(e)+'. Current context: "'+g.frameContext+'".')}}function j(e){void 0===e&&(e=w);var n=A(g.clientSupportedSDKVersion,e);return!isNaN(n)&&n>=0}function q(){return g.hostClientType==s.android||g.hostClientType==s.ios}function K(e){if(void 0===e&&(e=w),!q())throw{errorCode:r.NOT_SUPPORTED_ON_PLATFORM};if(!j(e))throw{errorCode:r.OLD_PLATFORM}}function Z(e){var n=g.additionalValidOrigins.concat(e.filter((function(e){return"string"==typeof e&&P.test(e)}))),t={};n=n.filter((function(e){return!t[e]&&(t[e]=!0,!0)})),g.additionalValidOrigins=n}!function(e){var n,t,o;function i(e){return new Promise((function(t,o){if(g.hostClientType===s.desktop||g.hostClientType===s.android||g.hostClientType===s.ios||g.hostClientType===s.rigel||g.hostClientType===s.teamsRoomsWindows||g.hostClientType===s.teamsRoomsAndroid||g.hostClientType===s.teamsPhones||g.hostClientType===s.teamsDisplays){var i=document.createElement("a");i.href=e.url,t(Ue("authentication.authenticate",[i.href,e.width,e.height,e.isExternal]).then((function(e){var n=e[0],t=e[1];if(n)return t;throw new Error(t)})))}else n={success:t,fail:o},u(e)}))}function r(e){return new Promise((function(n){n(Ue("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(Ue("authentication.getUser"))})).then((function(e){var n=e[0],t=e[1];if(n)return t;throw new Error(t)}))}function l(){d();try{ke.childWindow&&ke.childWindow.close()}finally{ke.childWindow=null,ke.childOrigin=null}}function u(e){l();var n=e.width||600,t=e.height||400;n=Math.min(n,ke.currentWindow.outerWidth-400),t=Math.min(t,ke.currentWindow.outerHeight-200);var o=document.createElement("a");o.href=e.url.replace("{oauthRedirectMethod}","web");var i=void 0!==ke.currentWindow.screenLeft?ke.currentWindow.screenLeft:ke.currentWindow.screenX,r=void 0!==ke.currentWindow.screenTop?ke.currentWindow.screenTop:ke.currentWindow.screenY;i+=ke.currentWindow.outerWidth/2-n/2,r+=ke.currentWindow.outerHeight/2-t/2,ke.childWindow=ke.currentWindow.open(o.href,"_blank","toolbar=no, location=yes, status=no, menubar=no, scrollbars=yes, top="+r+", left="+i+", width="+n+", height="+t),ke.childWindow?f():m("FailedToOpenWindow")}function d(){t&&(clearInterval(t),t=0),we("initialize"),we("navigateCrossDomain")}function f(){d(),t=ke.currentWindow.setInterval((function(){if(!ke.childWindow||ke.childWindow.closed)m("CancelledByUser");else{var e=ke.childOrigin;try{ke.childOrigin="*",an("ping")}finally{ke.childOrigin=e}}}),100),Ce("initialize",(function(){return[c.authentication,g.hostClientType]})),Ce("navigateCrossDomain",(function(){return!1}))}function p(e){try{n&&n.success(e)}finally{n=null,l()}}function m(e){try{n&&n.fail(new Error(e))}finally{n=null,l()}}function h(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=C(o.href,"result",t)),ke.currentWindow.location.assign(C(o.href,"authSuccess",""))),n&&"reason"===n&&(t&&(o.href=C(o.href,"reason",t)),ke.currentWindow.location.assign(C(o.href,"authFailure",""))))}}function C(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(){Ce("authentication.authenticate.success",p,!1),Ce("authentication.authenticate.failure",m,!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 G(c.content,c.sidePanel,c.settings,c.remove,c.task,c.stage,c.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 z(),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 z(),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){h(n,"result",e),G(c.authentication),We("authentication.authenticate.success",[e]),on(ke.parentWindow,(function(){return setTimeout((function(){return ke.currentWindow.close()}),200)}))},e.notifyFailure=function(e,n){h(n,"reason",e),G(c.authentication),We("authentication.authenticate.failure",[e]),on(ke.parentWindow,(function(){return setTimeout((function(){return ke.currentWindow.close()}),200)}))}}(_||(_={}));var J=function(){return J=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e},J.apply(this,arguments)},Q=E("runtime"),X={apiVersion:-1,supports:{}},$={appInstallDialog:{},appEntity:{},call:{},chat:{},conversations:{},dialog:{bot:{},update:{}},logs:{},meetingRoom:{},menus:{},monetization:{},notifications:{},pages:{appButton:{},tabs:{},config:{},backStack:{},fullTrust:{}},remoteCamera:{},sharing:{},stageView:{},teams:{fullTrust:{}},teamsCore:{},video:{}},Y=[s.desktop,s.web,s.android,s.ios,s.rigel,s.surfaceHub,s.teamsRoomsWindows,s.teamsRoomsAndroid,s.teamsPhones,s.teamsDisplays],ee={"1.9.0":[{capability:{location:{}},hostClientTypes:Y}],"2.0.0":[{capability:{people:{}},hostClientTypes:Y}],"2.0.1":[{capability:{teams:{fullTrust:{joinedTeams:{}}}},hostClientTypes:[s.android,s.desktop,s.ios,s.teamsRoomsAndroid,s.teamsPhones,s.teamsDisplays,s.web]},{capability:{webStorage:{}},hostClientTypes:[s.desktop]},{capability:{profile:{}},hostClientTypes:[s.desktop,s.web]}],"2.0.5":[{capability:{webStorage:{}},hostClientTypes:[s.android,s.desktop,s.ios]}]},ne=Q.extend("generateBackCompatRuntimeConfig");function te(e){ne("generating back compat runtime config for %s",e);var n=J({},$);ne("Supported capabilities in config before updating based on highestSupportedVersion: %o",n),Object.keys(ee).forEach((function(t){A(e,t)>=0&&ee[t].forEach((function(e){e.hostClientTypes.includes(g.hostClientType)&&(n=J(J({},n),e.capability))}))}));var t={apiVersion:1,isLegacyTeams:!0,supports:n};return ne("Runtime config after updating based on highestSupportedVersion: %o",t),t}var oe=Q.extend("applyRuntimeConfig");function ie(e){oe("Applying runtime %o",e),X=N(e)}var re,ae,se,le,ce;function ue(e){return{actionInfo:e.actionInfo,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:l.teams,clientType:e.hostClientType?e.hostClientType:s.web,sessionId:e.sessionId?e.sessionId:"",ringId:e.ringId},appLaunchId:e.appLaunchId},page:{id:e.entityId,frameContext:e.frameContext?e.frameContext:g.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||e.mySitePath||e.mySiteDomain?{teamSiteUrl:e.teamSiteUrl,teamSiteDomain:e.teamSiteDomain,teamSitePath:e.teamSitePath,teamSiteId:e.teamSiteId,mySitePath:e.mySitePath,mySiteDomain:e.mySiteDomain}:void 0}}!function(e){var n=[];function t(e){g.frameContext&&(g.frameContext===c.task?n.push(e):we("messageForChild"))}function o(){return G(),!!X.supports.dialog}function i(e){return{url:e.url,height:e.size?e.size.height:f.Small,width:e.size?e.size.width:f.Small,title:e.title,fallbackUrl:e.fallbackUrl}}function r(e){return{url:e.url,height:e.size?e.size.height:f.Small,width:e.size?e.size.width:f.Small,title:e.title,fallbackUrl:e.fallbackUrl,completionBotId:e.completionBotId}}e.initialize=function(){Ce("messageForChild",t,!1)},e.open=function(e,n,t){if(G(c.content,c.sidePanel,c.meetingStage),!o())throw C;t&&Ce("messageForParent",t),We("tasks.startTask",[i(e)],(function(e,t){null==n||n({err:e,result:t}),we("messageForParent")}))},e.submit=function(e,n){if(G(c.content,c.sidePanel,c.task,c.meetingStage),!o())throw C;We("tasks.completeTask",[e,n?Array.isArray(n)?n:[n]:[]])},e.sendMessageToParentFromDialog=function(e){if(G(c.task),!o())throw C;We("messageForParent",[e])},e.sendMessageToDialog=function(e){if(G(c.content,c.sidePanel,c.meetingStage),!o())throw C;We("messageForChild",[e])},e.registerOnMessageFromParent=function(e){if(G(c.task),!o())throw C;for(we("messageForChild"),Ce("messageForChild",e),n.reverse();n.length>0;){e(n.pop())}},e.isSupported=o,function(e){function n(){return G(),!!X.supports.dialog&&!!X.supports.dialog.update}e.resize=function(e){if(G(c.content,c.sidePanel,c.task,c.meetingStage),!n())throw C;We("tasks.updateTask",[e])},e.isSupported=n}(e.update||(e.update={})),function(e){function n(){return G(),!!X.supports.dialog&&!!X.supports.dialog.bot}e.open=function(e,t,o){if(G(c.content,c.sidePanel,c.meetingStage),!n())throw C;o&&Ce("messageForParent",o),We("tasks.startTask",[r(e)],(function(e,n){null==t||t({err:e,result:n}),we("messageForParent")}))},e.isSupported=n}(e.bot||(e.bot={})),e.getDialogInfoFromUrlDialogInfo=i,e.getDialogInfoFromBotUrlDialogInfo=r}(re||(re={})),function(e){!function(e){e[e.ifRoom=0]="ifRoom",e[e.overflowOnly=1]="overflowOnly"}(e.DisplayMode||(e.DisplayMode={}));var n,t,o,i=function(){return function(){this.enabled=!0,this.selected=!1}}();function r(e){o&&o(e)||(G(),We("viewConfigItemPress",[e]))}function a(e){n&&n(e)||(G(),We("handleNavBarMenuItemPress",[e]))}function s(e){t&&t(e)||(G(),We("handleActionMenuItemPress",[e]))}function l(){return G(),!!X.supports.menus}e.MenuItem=i,function(e){e.dropDown="dropDown",e.popOver="popOver"}(e.MenuListType||(e.MenuListType={})),e.initialize=function(){Ce("navBarMenuItemPress",a,!1),Ce("actionMenuItemPress",s,!1),Ce("setModuleView",r,!1)},e.setUpViews=function(e,n){if(G(),!l())throw C;o=n,We("setUpViews",[e])},e.setNavBarMenu=function(e,t){if(G(),!l())throw C;n=t,We("setNavBarMenu",[e])},e.showActionMenu=function(e,n){if(G(),!l())throw C;t=n,We("showActionMenu",[e])},e.isSupported=l}(ae||(ae={})),function(e){function n(){window.print()}function t(e,n){e&&G(),e&&n&&n(),be(e)}function o(e,n){e&&G(),e&&n&&n(),Te(e)}function i(){return G(),!!X.supports.teamsCore}e.enablePrintCapability=function(){if(!g.printCapabilityEnabled){if(G(),!i())throw C;g.printCapabilityEnabled=!0,document.addEventListener("keydown",(function(e){(e.ctrlKey||e.metaKey)&&80===e.keyCode&&(n(),e.cancelBubble=!0,e.preventDefault(),e.stopImmediatePropagation())}))}},e.print=n,e.registerOnLoadHandler=function(e){t(e,(function(){if(e&&!i())throw C}))},e.registerOnLoadHandlerHelper=t,e.registerBeforeUnloadHandler=function(e){o(e,(function(){if(e&&!i())throw C}))},e.registerBeforeUnloadHandlerHelper=o,e.isSupported=i}(se||(se={})),function(e){var n=E("app");e.Messages={AppLoaded:"appInitialization.appLoaded",Success:"appInitialization.success",Failure:"appInitialization.failure",ExpectedFailure:"appInitialization.expectedFailure"},function(e){e.AuthFailed="AuthFailed",e.Timeout="Timeout",e.Other="Other"}(e.FailedReason||(e.FailedReason={})),function(e){e.PermissionError="PermissionError",e.NotFound="NotFound",e.Throttling="Throttling",e.Offline="Offline",e.Other="Other"}(e.ExpectedFailureReason||(e.ExpectedFailureReason={})),e.isInitialized=function(){return g.initializeCompleted},e.getFrameContext=function(){return g.frameContext};e.initialize=function(e){return H((function(){return o(e)}),5e3,new Error("SDK initialization timed out."))};var t=n.extend("initializeHelper");function o(e){return new Promise((function(n){g.initializeCalled||(g.initializeCalled=!0,ge(),g.initializePromise=Oe(e).then((function(e){var n=e.context,o=e.clientType,i=e.runtimeConfig,r=e.clientSupportedSDKVersion,a=void 0===r?w:r;g.frameContext=n,g.hostClientType=o,g.clientSupportedSDKVersion=a;try{t("Parsing %s",i);var s=JSON.parse(i);if(t("Checking if %o is a valid runtime object",null!=s?s:"null"),!s||!s.apiVersion)throw new Error("Received runtime config is invalid");i&&ie(s)}catch(e){if(!(e instanceof SyntaxError))throw e;try{t("Attempting to parse %s as an SDK version",i),isNaN(A(i,w))||(g.clientSupportedSDKVersion=i);s=JSON.parse(a);if(t("givenRuntimeConfig parsed to %o",null!=s?s:"null"),!s)throw new Error("givenRuntimeConfig string was successfully parsed. However, it parsed to value of null");ie(s)}catch(e){if(!(e instanceof SyntaxError))throw e;ie(te(g.clientSupportedSDKVersion))}}g.initializeCompleted=!0})),_.initialize(),ae.initialize(),ce.config.initialize(),re.initialize()),Array.isArray(e)&&Z(e),n(g.initializePromise)}))}function i(e){e&&z(),ye(e)}e._initialize=function(e){ke.currentWindow=e},e._uninitialize=function(){g.initializeCalled&&(g.frameContext&&(i(null),ce.backStack.registerBackButtonHandler(null),ce.registerFullScreenHandler(null),se.registerBeforeUnloadHandler(null),se.registerOnLoadHandler(null),Qe.registerGetLogHandler(null)),g.frameContext===c.settings&&ce.config.registerOnSaveHandler(null),g.frameContext===c.remove&&ce.config.registerOnRemoveHandler(null),g.initializeCalled=!1,g.initializeCompleted=!1,g.initializePromise=null,g.additionalValidOrigins=[],g.frameContext=null,g.hostClientType=null,g.isFramelessWindow=!1,Ae())},e.getContext=function(){return new Promise((function(e){z(),e(Me("getContext"))})).then((function(e){return ue(e)}))},e.notifyAppLoaded=function(){z(),We(e.Messages.AppLoaded,[p])},e.notifySuccess=function(){z(),We(e.Messages.Success,[p])},e.notifyFailure=function(n){z(),We(e.Messages.Failure,[n.reason,n.message])},e.notifyExpectedFailure=function(n){z(),We(e.Messages.ExpectedFailure,[n.reason,n.message])},e.registerOnThemeChangeHandler=i,e.openLink=function(e){return new Promise((function(n){G(c.content,c.sidePanel,c.settings,c.task,c.stage,c.meetingStage),n(Ne("executeDeepLink",e))}))}}(le||(le={})),function(e){function n(e){if(G(c.content),!t())throw C;We("setFrameContext",[e])}function t(){return G(),!!X.supports.pages}e.returnFocus=function(e){if(G(),!t())throw C;We("returnFocus",[e])},e.registerFocusEnterHandler=function(e){ve("focusEnter",e,[],(function(){if(!t())throw C}))},e.setCurrentFrame=n,e.initializeWithFrameContext=function(e,t,o){le.initialize(o).then((function(){return t&&t()})),n(e)},e.getConfig=function(){return new Promise((function(e){if(G(c.content,c.settings,c.remove,c.sidePanel),!t())throw C;e(Me("settings.getSettings"))}))},e.navigateCrossDomain=function(e){return new Promise((function(n){if(G(c.content,c.sidePanel,c.settings,c.remove,c.task,c.stage,c.meetingStage),!t())throw C;n(De("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){if(G(c.content,c.sidePanel,c.settings,c.task,c.stage,c.meetingStage),!t())throw C;X.isLegacyTeams?n(Ne("executeDeepLink",W(e))):n(Ne("pages.navigateToApp",e))}))},e.shareDeepLink=function(e){if(G(c.content,c.sidePanel,c.meetingStage),!t())throw C;We("shareDeepLink",[e.subPageId,e.subPageLabel,e.subPageWebUrl])},e.registerFullScreenHandler=function(e){ve("fullScreenChange",e,[],(function(){if(e&&!t())throw C}))},e.isSupported=t,function(e){function n(){return G(),!!X.supports.pages&&!!X.supports.pages.tabs}e.navigateToTab=function(e){return new Promise((function(t){if(G(),!n())throw C;t(De("navigateToTab","Invalid internalTabInstanceId and/or channelId were/was provided",e))}))},e.getTabInstances=function(e){return new Promise((function(t){if(G(),!n())throw C;t(Me("getTabInstances",e))}))},e.getMruTabInstances=function(e){return new Promise((function(t){if(G(),!n())throw C;t(Me("getMruTabInstances",e))}))},e.isSupported=n}(e.tabs||(e.tabs={})),function(e){var n,t;function o(e,t){e&&G(c.settings),t&&t(),n=e,e&&We("registerHandler",["save"])}function i(e,n){e&&G(c.remove,c.settings),n&&n(),t=e,e&&We("registerHandler",["remove"])}function r(e){var t=new a(e);n?n(t):ke.childWindow?an("settings.save",[e]):t.notifySuccess()}e.initialize=function(){Ce("settings.save",r,!1),Ce("settings.remove",s,!1)},e.setValidityState=function(e){if(G(c.settings,c.remove),!u())throw C;We("settings.setValidityState",[e])},e.setConfig=function(e){return new Promise((function(n){if(G(c.content,c.settings,c.sidePanel),!u())throw C;n(Ne("settings.setSettings",e))}))},e.registerOnSaveHandler=function(e){o(e,(function(){if(e&&!u())throw C}))},e.registerOnSaveHandlerHelper=o,e.registerOnRemoveHandler=function(e){i(e,(function(){if(e&&!u())throw C}))},e.registerOnRemoveHandlerHelper=i,e.registerChangeConfigHandler=function(e){ve("changeSettings",e,[c.content],(function(){if(!u())throw C}))};var a=function(){function e(e){this.notified=!1,this.result=e||{}}return e.prototype.notifySuccess=function(){this.ensureNotNotified(),We("settings.save.success"),this.notified=!0},e.prototype.notifyFailure=function(e){this.ensureNotNotified(),We("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 s(){var e=new l;t?t(e):ke.childWindow?an("settings.remove",[]):e.notifySuccess()}var l=function(){function e(){this.notified=!1}return e.prototype.notifySuccess=function(){this.ensureNotNotified(),We("settings.remove.success"),this.notified=!0},e.prototype.notifyFailure=function(e){this.ensureNotNotified(),We("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}();function u(){return G(),!!X.supports.pages&&!!X.supports.pages.config}e.isSupported=u}(e.config||(e.config={})),function(e){var n;function t(){return new Promise((function(e){if(G(),!r())throw C;e(De("navigateBack","Back navigation is not supported in the current client or context."))}))}function o(e,t){e&&G(),t&&t(),n=e,e&&We("registerHandler",["backButton"])}function i(){n&&n()||(ke.childWindow?an("backButtonPress",[]):t())}function r(){return G(),!!X.supports.pages&&!!X.supports.pages.backStack}e._initialize=function(){Ce("backButtonPress",i,!1)},e.navigateBack=t,e.registerBackButtonHandler=function(e){o(e,(function(){if(e&&!r())throw C}))},e.registerBackButtonHandlerHelper=o,e.isSupported=r}(e.backStack||(e.backStack={})),function(e){function n(){return G(),!!X.supports.pages&&!!X.supports.pages.fullTrust}e.enterFullscreen=function(){if(G(c.content),!n())throw C;We("enterFullscreen",[])},e.exitFullscreen=function(){if(G(c.content),!n())throw C;We("exitFullscreen",[])},e.isSupported=n}(e.fullTrust||(e.fullTrust={})),function(e){function n(){return G(),!!X.supports.pages&&!!X.supports.pages.appButton}e.onClick=function(e){ve("appButtonClick",e,[c.content],(function(){if(!n())throw C}))},e.onHoverEnter=function(e){ve("appButtonHoverEnter",e,[c.content],(function(){if(!n())throw C}))},e.onHoverLeave=function(e){ve("appButtonHoverLeave",e,[c.content],(function(){if(!n())throw C}))},e.isSupported=n}(e.appButton||(e.appButton={})),function(e){function n(){return!!X.supports.pages&&!!X.supports.pages.currentApp}e.navigateTo=function(e){return new Promise((function(t){if(G(c.content,c.sidePanel,c.settings,c.task,c.stage,c.meetingStage),!n())throw C;t(Le("pages.currentApp.navigateTo",e))}))},e.navigateToDefaultPage=function(){return new Promise((function(e){if(G(c.content,c.sidePanel,c.settings,c.task,c.stage,c.meetingStage),!n())throw C;e(Le("pages.currentApp.navigateToDefaultPage"))}))},e.isSupported=n}(e.currentApp||(e.currentApp={}))}(ce||(ce={}));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=E("handlers"),pe=function(){function e(){}return e.handlers={},e}();function ge(){pe.handlers.themeChange=Se,pe.handlers.load=Pe,pe.handlers.beforeUnload=Ie,ce.backStack._initialize()}var me=fe.extend("callHandler");function he(e,n){var t=pe.handlers[e];return t?(me("Invoking the registered handler for message %s with arguments %o",e,n),[!0,t.apply(this,n)]):ke.childWindow?(an(e,[n]),[!1,void 0]):(me("Handler for action message %s not found.",e),[!1,void 0])}function Ce(e,n,t,o){void 0===t&&(t=!0),void 0===o&&(o=[]),n?(pe.handlers[e]=n,t&&We("registerHandler",de([e],o,!0))):delete pe.handlers[e]}function we(e){delete pe.handlers[e]}function ve(e,n,t,o){n&&G.apply(void 0,t),o&&o(),Ce(e,n)}function ye(e){pe.themeChangeHandler=e,e&&We("registerHandler",["themeChange"])}function Se(e){pe.themeChangeHandler&&pe.themeChangeHandler(e),ke.childWindow&&an("themeChange",[e])}function be(e){pe.loadHandler=e,e&&We("registerHandler",["load"])}function Pe(e){pe.loadHandler&&pe.loadHandler(e),ke.childWindow&&an("load",[e])}function Te(e){pe.beforeUnloadHandler=e,e&&We("registerHandler",["beforeUnload"])}function Ie(){var e=function(){We("readyToUnload",[])};pe.beforeUnloadHandler&&pe.beforeUnloadHandler(e)||(ke.childWindow?an("beforeUnload"):e())}var Ee=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=E("communication"),ke=function(){return function(){}}(),Re=function(){function e(){}return e.parentMessageQueue=[],e.childMessageQueue=[],e.nextMessageId=0,e.callbacks={},e.promiseCallbacks={},e}();function Oe(e){if(Re.messageListener=function(e){return Ve(e)},ke.currentWindow=ke.currentWindow||window,ke.parentWindow=ke.currentWindow.parent!==ke.currentWindow.self?ke.currentWindow.parent:ke.currentWindow.opener,(ke.parentWindow||e)&&ke.currentWindow.addEventListener("message",Re.messageListener,!1),!ke.parentWindow){var n=ke.currentWindow;if(!n.nativeInterface)return Promise.reject(new Error("Initialization Failed. No Parent window found."));g.isFramelessWindow=!0,n.onNativeMessage=je}try{return ke.parentOrigin="*",Ue("initialize",[p]).then((function(e){return{context:e[0],clientType:e[1],runtimeConfig:e[2],clientSupportedSDKVersion:e[3]}}))}finally{ke.parentOrigin=null}}function Ae(){ke.currentWindow.removeEventListener("message",Re.messageListener,!1),ke.parentWindow=null,ke.parentOrigin=null,ke.childWindow=null,ke.childOrigin=null,Re.parentMessageQueue=[],Re.childMessageQueue=[],Re.nextMessageId=0,Re.callbacks={}}function Me(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return Ue(e,n).then((function(e){return e[0]}))}function Ne(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return Ue(e,n).then((function(e){var n=e[0],t=e[1];if(!n)throw new Error(t)}))}function De(e,n){for(var t=[],o=2;o<arguments.length;o++)t[o-2]=arguments[o];return Ue(e,t).then((function(e){var t=e[0],o=e[1];if(!t)throw new Error(o||n)}))}function Le(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return Ue(e,n).then((function(e){var n=e[0],t=e[1];if(n)throw n;return t}))}function Ue(e,n){return void 0===n&&(n=void 0),new Promise((function(t){t(He(xe(e,n).id))}))}function He(e){return new Promise((function(n){Re.promiseCallbacks[e]=n}))}function We(e,n,t){var o;n instanceof Function?t=n:n instanceof Array&&(o=n);var i=xe(e,o);t&&(Re.callbacks[i.id]=t)}var _e=Fe.extend("sendMessageToParentHelper");function xe(e,n){var t=_e,o=ke.parentWindow,i=sn(e,n);if(t("Message %i information: %o",i.id,{actionName:e,args:n}),g.isFramelessWindow)ke.currentWindow&&ke.currentWindow.nativeInterface&&(t("Sending message %i to parent via framelessPostMessage interface",i.id),ke.currentWindow.nativeInterface.framelessPostMessage(JSON.stringify(i)));else{var r=Je(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),Ze(o).push(i))}return i}function Ve(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;Be(n,t)&&(ze(n,t),n===ke.parentWindow?je(e):n===ke.childWindow&&Ke(e))}}function Be(e,n){return(!ke.currentWindow||e!==ke.currentWindow)&&(!!(ke.currentWindow&&ke.currentWindow.location&&n&&n===ke.currentWindow.location.origin)||R(new URL(n)))}function ze(e,n){g.isFramelessWindow||ke.parentWindow&&!ke.parentWindow.closed&&e!==ke.parentWindow?ke.childWindow&&!ke.childWindow.closed&&e!==ke.childWindow||(ke.childWindow=e,ke.childOrigin=n):(ke.parentWindow=e,ke.parentOrigin=n),ke.parentWindow&&ke.parentWindow.closed&&(ke.parentWindow=null,ke.parentOrigin=null),ke.childWindow&&ke.childWindow.closed&&(ke.childWindow=null,ke.childOrigin=null),tn(ke.parentWindow),tn(ke.childWindow)}var Ge=Fe.extend("handleParentMessage");function je(e){var n=Ge;if("id"in e.data&&"number"==typeof e.data.id){var t=e.data,o=Re.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,Ee(Ee([],t.args,!0),[t.isPartialResponse],!1)),qe(e)||(n("Removing registered callback for message %i",t.id),delete Re.callbacks[t.id]));var i=Re.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 Re.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),he(t.func,t.args)}else n("Received an unknown message: %O",e)}function qe(e){return!0===e.data.isPartialResponse}function Ke(e){if("id"in e.data&&"func"in e.data){var n=e.data,t=he(n.func,n.args),o=t[0],i=t[1];o&&void 0!==i?rn(n.id,Array.isArray(i)?i:[i]):We(n.func,n.args,(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(ke.childWindow){var o=e.pop();rn(n.id,e,o)}}))}}function Ze(e){return e===ke.parentWindow?Re.parentMessageQueue:e===ke.childWindow?Re.childMessageQueue:[]}function Je(e){return e===ke.parentWindow?ke.parentOrigin:e===ke.childWindow?ke.childOrigin:null}var Qe,Xe,$e,Ye,en,nn=Fe.extend("flushMessageQueue");function tn(e){for(var n=Je(e),t=Ze(e),o=e==ke.parentWindow?"parent":"child";e&&n&&t.length>0;){var i=t.shift();nn("Flushing message %i from "+o+" message queue via postMessage.",i.id),e.postMessage(i,n)}}function on(e,n){var t=ke.currentWindow.setInterval((function(){0===Ze(e).length&&(clearInterval(t),n())}),100)}function rn(e,n,t){var o=ke.childWindow,i=ln(e,n,t),r=Je(o);o&&r&&o.postMessage(i,r)}function an(e,n){var t=ke.childWindow,o=cn(e,n),i=Je(t);t&&i?t.postMessage(o,i):Ze(t).push(o)}function sn(e,n){return{id:Re.nextMessageId++,func:e,timestamp:Date.now(),args:n||[]}}function ln(e,n,t){return{id:e,args:n||[],isPartialResponse:t}}function cn(e,n){return{func:e,args:n||[]}}function un(e,n){G(),We("uploadCustomApp",[e],n||O())}function dn(e,n,t){G(),We(e,n,t)}function fn(e,n){if(G(),!ke.childWindow)throw new Error("The child window has not yet been initialized or is not present");an(e,n)}function pn(e,n){var t=this;G(),Ce(e,(function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return n.apply(t,e)}))}function gn(e,n){G(),Ce("userSettingsChange",n,!0,[e])}function mn(e){G(c.content,c.task),We("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])}!function(e){function n(){return G(),!!X.supports.logs}e.registerGetLogHandler=function(e){if(e&&G(),e&&!n())throw C;e?Ce("log.request",(function(){We("log.receive",[e()])})):we("log.request")},e.isSupported=n}(Qe||(Qe={})),function(e){e.fileDownloadStart="fileDownloadStart",e.fileDownloadComplete="fileDownloadComplete"}(Xe||(Xe={})),function(e){e.view="view",e.edit="edit",e.editNew="editNew"}($e||($e={})),function(e){e.fileOpenPreference="fileOpenPreference",e.theme="theme"}(Ye||(Ye={})),function(e){function n(){return G(),!!X.supports.conversations}e.openConversation=function(e){return new Promise((function(t){if(G(c.content),!n())throw C;var o=Ne("conversations.openConversation",{title:e.title,subEntityId:e.subEntityId,conversationId:e.conversationId,channelId:e.channelId,entityId:e.entityId});e.onStartConversation&&Ce("startConversation",(function(n,t,o,i){return e.onStartConversation({subEntityId:n,conversationId:t,channelId:o,entityId:i})})),e.onCloseConversation&&Ce("closeConversation",(function(n,t,o,i){return e.onCloseConversation({subEntityId:n,conversationId:t,channelId:o,entityId:i})})),t(o)}))},e.closeConversation=function(){if(G(c.content),!n())throw C;We("conversations.closeConversation"),we("startConversation"),we("closeConversation")},e.getChatMembers=function(){return new Promise((function(e){if(G(),!n())throw C;e(Me("getChatMembers"))}))},e.isSupported=n}(en||(en={}));var hn;function Cn(e,n,t){if(0===e.length)throw new Error("Must have at least one user when creating a chat deep link");return"https://teams.microsoft.com/l/chat/0/0?"+("users="+e.map((function(e){return encodeURIComponent(e)})).join(","))+(void 0===n?"":"&topicName="+encodeURIComponent(n))+(void 0===t?"":"&message="+encodeURIComponent(t))}function wn(e,n,t){if(0===e.length)throw new Error("Must have at least one target when creating a call deep link");return"https://teams.microsoft.com/l/call/0/0?"+("users="+e.map((function(e){return encodeURIComponent(e)})).join(","))+(void 0===n?"":"&withVideo="+encodeURIComponent(n))+(void 0===t?"":"&source="+encodeURIComponent(t))}function vn(e,n,t,o,i){return"https://teams.microsoft.com/l/meeting/new?"+(void 0===e?"":"attendees="+e.map((function(e){return encodeURIComponent(e)})).join(","))+(void 0===n?"":"&startTime="+encodeURIComponent(n))+(void 0===t?"":"&endTime="+encodeURIComponent(t))+(void 0===o?"":"&subject="+encodeURIComponent(o))+(void 0===i?"":"&content="+encodeURIComponent(i))}function yn(e){if(!e)throw new Error("App ID must be set when creating an app install dialog deep link");return"https://teams.microsoft.com/l/app/"+encodeURIComponent(e)}!function(e){function n(){return G(),!!X.supports.appInstallDialog}e.openAppInstallDialog=function(e){return new Promise((function(t){if(G(c.content,c.sidePanel,c.settings,c.task,c.stage,c.meetingStage),!n())throw new Error("Not supported");X.isLegacyTeams?t(Ne("executeDeepLink",yn(e.appId))):(We("appInstallDialog.openAppInstallDialog",[e]),t())}))},e.isSupported=n}(hn||(hn={}));var Sn,bn,Pn,Tn,In=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 En(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 Fn(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 kn(e){Mn(e)?K("2.0.2"):Nn(e)?K(v):An(e)&&K("2.0.4")}function Rn(e){return!(e.mediaType!=Sn.MediaType.Video||!e.videoProps||!e.videoProps.videoController)}function On(e){return!(null==e||e.maxMediaCount>10)}function An(e){var n;return!((null==e?void 0:e.mediaType)!=Sn.MediaType.Image||!(null===(n=null==e?void 0:e.imageProps)||void 0===n?void 0:n.imageOutputFormats))}function Mn(e){return!(!e||e.mediaType!=Sn.MediaType.VideoAndImage&&!e.videoAndImageProps)}function Nn(e){return!(!e||e.mediaType!=Sn.MediaType.Video||!e.videoProps||e.videoProps.isFullScreenMode)}function Dn(e,n,t){return null!=e&&null!=n&&n==Sn.FileFormat.ID&&null!=t}function Ln(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 Hn(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){!function(e){e.Base64="base64",e.ID="id"}(e.FileFormat||(e.FileFormat={}));var n=function(){return function(){}}();e.File=n,e.captureImage=function(e){if(!e)throw new Error("[captureImage] Callback cannot be null");G(c.content,c.task),g.isFramelessWindow?j("1.7.0")?We("captureImage",e):e({errorCode:r.OLD_PLATFORM},void 0):e({errorCode:r.NOT_SUPPORTED_ON_PLATFORM},void 0)};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 In(n,e),n.prototype.getMedia=function(e){if(!e)throw new Error("[get Media] Callback cannot be null");(G(c.content,c.task),j(S))?Dn(this.mimeType,this.format,this.content)?j("2.0.0")?this.getMediaViaCallback(e):this.getMediaViaHandler(e):e({errorCode:r.INVALID_ARGUMENTS},null):e({errorCode:r.OLD_PLATFORM},null)},n.prototype.getMediaViaCallback=function(e){var n={mediaMimeType:this.mimeType,assembleAttachment:[]};We("getMedia",[this.content],(function(t){if(e)if(t&&t.error)e(t.error,null);else if(t&&t.mediaChunk)if(t.mediaChunk.chunkSequence<=0){var o=En(n.assembleAttachment,n.mediaMimeType);e(t.error,o)}else{var i=Fn(t.mediaChunk,n.mediaMimeType);n.assembleAttachment.push(i)}else e({errorCode:r.INTERNAL_ERROR,message:"data received is null"},null)}))},n.prototype.getMediaViaHandler=function(e){var n=M(),t={mediaMimeType:this.mimeType,assembleAttachment:[]},o=[n,this.content];this.content&&e&&We("getMedia",o),Ce("getMedia"+n,(function(o){if(e){var i=JSON.parse(o);if(i.error)e(i.error,null),we("getMedia"+n);else if(i.mediaChunk)if(i.mediaChunk.chunkSequence<=0){var a=En(t.assembleAttachment,t.mediaMimeType);e(i.error,a),we("getMedia"+n)}else{var s=Fn(i.mediaChunk,t.mediaMimeType);t.assembleAttachment.push(s)}else e({errorCode:r.INTERNAL_ERROR,message:"data received is null"},null),we("getMedia"+n)}}))},n}(n);e.Media=t;var o,i,a=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return In(n,e),n.prototype.getMediaType=function(){return i.Video},n.prototype.notifyEventToApp=function(e){if(this.controllerCallback)switch(e){case o.StartRecording:if(this.controllerCallback.onRecordingStarted){this.controllerCallback.onRecordingStarted();break}}},n}(function(){function e(e){this.controllerCallback=e}return e.prototype.notifyEventToHost=function(e,n){G(c.content,c.task);try{K(v)}catch(e){return void(n&&n(e))}We("media.controller",[{mediaType:this.getMediaType(),mediaControllerEvent:e}],(function(e){n&&n(e)}))},e.prototype.stop=function(e){this.notifyEventToHost(o.StopRecording,e)},e}());e.VideoController=a,function(e){e[e.StartRecording=1]="StartRecording",e[e.StopRecording=2]="StopRecording"}(o=e.MediaControllerEvent||(e.MediaControllerEvent={})),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.Video=2]="Video",e[e.VideoAndImage=3]="VideoAndImage",e[e.Audio=4]="Audio"}(i=e.MediaType||(e.MediaType={})),function(e){e[e.ID=1]="ID",e[e.URL=2]="URL"}(e.ImageUriType||(e.ImageUriType={})),function(e){e[e.IMAGE=1]="IMAGE",e[e.PDF=2]="PDF"}(e.ImageOutputFormats||(e.ImageOutputFormats={})),e.selectMedia=function(e,n){if(!n)throw new Error("[select Media] Callback cannot be null");if(G(c.content,c.task),j(S)){try{kn(e)}catch(e){return void n(e,null)}if(On(e)){We("selectMedia",[e],(function(o,i,r){if(r)Rn(e)&&e.videoProps.videoController.notifyEventToApp(r);else if(i){for(var a=[],s=0,l=i;s<l.length;s++){var c=l[s];a.push(new t(c))}n(o,a)}else n(o,null)}))}else{var o={errorCode:r.INVALID_ARGUMENTS};n(o,null)}}else{var i={errorCode:r.OLD_PLATFORM};n(i,null)}},e.viewImages=function(e,n){if(!n)throw new Error("[view images] Callback cannot be null");G(c.content,c.task),j(S)?Ln(e)?We("viewImages",[e],n):n({errorCode:r.INVALID_ARGUMENTS}):n({errorCode:r.OLD_PLATFORM})},e.scanBarCode=function(e,n){if(!e)throw new Error("[media.scanBarCode] Callback cannot be null");G(c.content,c.task),g.hostClientType!==s.desktop&&g.hostClientType!==s.web&&g.hostClientType!==s.rigel&&g.hostClientType!==s.teamsRoomsWindows&&g.hostClientType!==s.teamsRoomsAndroid&&g.hostClientType!==s.teamsPhones&&g.hostClientType!==s.teamsDisplays?j("1.9.0")?Un(n)?We("media.scanBarCode",[n],e):e({errorCode:r.INVALID_ARGUMENTS},null):e({errorCode:r.OLD_PLATFORM},null):e({errorCode:r.NOT_SUPPORTED_ON_PLATFORM},null)}}(Sn||(Sn={})),function(e){function n(){return G(),!(!X.supports.barCode||!X.supports.permissions)}e.scanBarCode=function(e){return new Promise((function(t){if(G(c.content,c.task),!n())throw C;if(!Un(e))throw{errorCode:r.INVALID_ARGUMENTS};t(Le("media.scanBarCode",e))}))},e.hasPermission=function(){if(G(c.content,c.task),!n())throw C;var e=a.Media;return new Promise((function(n){n(Le("permissions.has",e))}))},e.requestPermission=function(){if(G(c.content,c.task),!n())throw C;var e=a.Media;return new Promise((function(n){n(Le("permissions.request",e))}))},e.isSupported=n}(bn||(bn={})),function(e){function n(e){return new Promise((function(n){if(G(c.content,c.task),!t())throw C;X.isLegacyTeams?n(Ne("executeDeepLink",Cn([e.user],void 0,e.message))):n(Ne("chat.openChat",{members:e.user,message:e.message}))}))}function t(){return G(),!!X.supports.chat}e.openChat=n,e.openGroupChat=function(e){return new Promise((function(o){if(e.users.length<1)throw Error("OpenGroupChat Failed: No users specified");if(1===e.users.length){n({user:e.users[0],message:e.message})}else{if(G(c.content,c.task),!t())throw C;if(X.isLegacyTeams)o(Ne("executeDeepLink",Cn(e.users,e.topic,e.message)));else o(Ne("chat.openChat",{members:e.users,message:e.message,topic:e.topic}))}}))},e.isSupported=t}(Pn||(Pn={})),function(e){function n(){return G(),!(!X.supports.geoLocation||!X.supports.permissions)}e.getCurrentLocation=function(){if(G(c.content,c.task),!n())throw C;return Le("location.getLocation",{allowChooseLocation:!1,showMap:!1})},e.hasPermission=function(){if(G(c.content,c.task),!n())throw C;var e=a.GeoLocation;return new Promise((function(n){n(Le("permissions.has",e))}))},e.requestPermission=function(){if(G(c.content,c.task),!n())throw C;var e=a.GeoLocation;return new Promise((function(n){n(Le("permissions.request",e))}))},e.isSupported=n,function(e){function n(){return G(),!!(X.supports.geoLocation&&X.supports.geoLocation.map&&X.supports.permissions)}e.chooseLocation=function(){if(G(c.content,c.task),!n())throw C;return Le("location.getLocation",{allowChooseLocation:!0,showMap:!0})},e.showLocation=function(e){if(G(c.content,c.task),!n())throw C;if(!e)throw{errorCode:r.INVALID_ARGUMENTS};return Le("location.showLocation",e)},e.isSupported=n}(e.map||(e.map={}))}(Tn||(Tn={}));var Wn,_n,xn,Vn,Bn,zn,Gn,jn,qn,Kn,Zn,Jn,Qn,Xn,$n,Yn=function(){function e(){}return e.prototype.postMessage=function(e,n){G(),We("messageForChild",[e],n||O())},e.prototype.addEventListener=function(e,n){G(),"message"===e&&Ce("messageForParent",n)},e}(),et=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){G(c.task),We("messageForParent",[e],n||O())},e.prototype.addEventListener=function(e,n){G(c.task),"message"===e&&Ce("messageForChild",n)},e}();function nt(e){return e?e.modality&&"string"!=typeof e.modality?[!1,"modality must be a string"]:e.targetElementBoundingRect&&"object"==typeof e.targetElementBoundingRect?e.triggerType&&"string"==typeof e.triggerType?tt(e.persona):[!1,"triggerType must be a valid string"]:[!1,"targetElementBoundingRect must be a DOMRect"]:[!1,"A request object is required"]}function tt(e){return e?e.displayName&&"string"!=typeof e.displayName?[!1,"displayName must be a string"]:e.identifiers&&"object"==typeof e.identifiers?e.identifiers.AadObjectId||e.identifiers.Smtp||e.identifiers.Upn?e.identifiers.AadObjectId&&"string"!=typeof e.identifiers.AadObjectId?[!1,"AadObjectId identifier must be a string"]:e.identifiers.Smtp&&"string"!=typeof e.identifiers.Smtp?[!1,"Smtp identifier must be a string"]:e.identifiers.Upn&&"string"!=typeof e.identifiers.Upn?[!1,"Upn identifier must be a string"]:[!0,void 0]:[!1,"at least one valid identifier must be provided"]:[!1,"persona identifiers object must be provided"]:[!1,"persona object must be provided"]}function ot(e,n){le.initialize(n).then((function(){e&&e()}))}function it(){se.enablePrintCapability()}function rt(){se.print()}function at(e){z(),le.getContext().then((function(n){e&&e(Pt(n))}))}function st(e){le.registerOnThemeChangeHandler(e)}function lt(e){ve("fullScreenChange",e,[])}function ct(e){ve("appButtonClick",e,[c.content])}function ut(e){ve("appButtonHoverEnter",e,[c.content])}function dt(e){ve("appButtonHoverLeave",e,[c.content])}function ft(e){ce.backStack.registerBackButtonHandlerHelper(e)}function pt(e){se.registerOnLoadHandlerHelper(e)}function gt(e){se.registerBeforeUnloadHandlerHelper(e)}function mt(e){ve("focusEnter",e,[])}function ht(e){ve("changeSettings",e,[c.content])}function Ct(e,n){G(),ce.tabs.getTabInstances(n).then((function(n){e(n)}))}function wt(e,n){G(),ce.tabs.getMruTabInstances(n).then((function(n){e(n)}))}function vt(e){ce.shareDeepLink({subPageId:e.subEntityId,subPageLabel:e.subEntityLabel,subPageWebUrl:e.subEntityWebUrl})}function yt(e,n){G(c.content,c.sidePanel,c.settings,c.task,c.stage,c.meetingStage),n=n||O(),le.openLink(e).then((function(){n(!0)})).catch((function(e){n(!1,e.message)}))}function St(e){ce.setCurrentFrame(e)}function bt(e,n,t){ce.initializeWithFrameContext(e,n,t)}function Pt(e){return{actionInfo:e.actionInfo,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.teamSiteUrl:void 0,teamSiteDomain:void 0!==e.sharePointSite?e.sharePointSite.teamSiteDomain:void 0,teamSitePath:void 0!==e.sharePointSite?e.sharePointSite.teamSitePath:void 0,teamSiteId:void 0!==e.sharePointSite?e.sharePointSite.teamSiteId:void 0,mySitePath:void 0!==e.sharePointSite?e.sharePointSite.mySitePath:void 0,mySiteDomain:void 0!==e.sharePointSite?e.sharePointSite.mySiteDomain:void 0}}function Tt(e){ce.returnFocus(e)}function It(e,n){G(),n=n||O(),ce.tabs.navigateToTab(e).then((function(){n(!0)})).catch((function(e){n(!1,e.message)}))}function Et(e,n){G(c.content,c.sidePanel,c.settings,c.remove,c.task,c.stage,c.meetingStage),n=n||O(),ce.navigateCrossDomain(e).then((function(){n(!0)})).catch((function(e){n(!1,e.message)}))}function Ft(e){G(),e=e||O(),ce.backStack.navigateBack().then((function(){e(!0)})).catch((function(n){e(!1,n.message)}))}!function(e){function n(){return G(),!!X.supports.location}e.getLocation=function(e,t){if(!t)throw new Error("[location.getLocation] Callback cannot be null");if(G(c.content,c.task),!j(y))throw{errorCode:r.OLD_PLATFORM};if(!e)throw{errorCode:r.INVALID_ARGUMENTS};if(!n())throw C;We("location.getLocation",[e],t)},e.showLocation=function(e,t){if(!t)throw new Error("[location.showLocation] Callback cannot be null");if(G(c.content,c.task),!j(y))throw{errorCode:r.OLD_PLATFORM};if(!e)throw{errorCode:r.INVALID_ARGUMENTS};if(!n())throw C;We("location.showLocation",[e],t)},e.isSupported=n}(Wn||(Wn={})),function(e){!function(e){e.like="like",e.heart="heart",e.laugh="laugh",e.surprised="surprised",e.applause="applause"}(e.MeetingReactionType||(e.MeetingReactionType={})),function(e){e.Unknown="Unknown",e.Adhoc="Adhoc",e.Scheduled="Scheduled",e.Recurring="Recurring",e.Broadcast="Broadcast",e.MeetNow="MeetNow"}(e.MeetingType||(e.MeetingType={})),function(e){e.OneOnOneCall="oneOnOneCall",e.GroupCall="groupCall"}(e.CallType||(e.CallType={})),e.getIncomingClientAudioState=function(e){if(!e)throw new Error("[get incoming client audio state] Callback cannot be null");G(c.sidePanel,c.meetingStage),We("getIncomingClientAudioState",e)},e.toggleIncomingClientAudio=function(e){if(!e)throw new Error("[toggle incoming client audio] Callback cannot be null");G(c.sidePanel,c.meetingStage),We("toggleIncomingClientAudio",e)},e.getMeetingDetails=function(e){if(!e)throw new Error("[get meeting details] Callback cannot be null");G(c.sidePanel,c.meetingStage,c.settings,c.content),We("meeting.getMeetingDetails",e)},e.getAuthenticationTokenForAnonymousUser=function(e){if(!e)throw new Error("[get Authentication Token For AnonymousUser] Callback cannot be null");G(c.sidePanel,c.meetingStage),We("meeting.getAuthenticationTokenForAnonymousUser",e)},e.getLiveStreamState=function(e){if(!e)throw new Error("[get live stream state] Callback cannot be null");G(c.sidePanel),We("meeting.getLiveStreamState",e)},e.requestStartLiveStreaming=function(e,n,t){if(!e)throw new Error("[request start live streaming] Callback cannot be null");G(c.sidePanel),We("meeting.requestStartLiveStreaming",[n,t],e)},e.requestStopLiveStreaming=function(e){if(!e)throw new Error("[request stop live streaming] Callback cannot be null");G(c.sidePanel),We("meeting.requestStopLiveStreaming",e)},e.registerLiveStreamChangedHandler=function(e){if(!e)throw new Error("[register live stream changed handler] Handler cannot be null");G(c.sidePanel),Ce("meeting.liveStreamChanged",e)},e.shareAppContentToStage=function(e,n){if(!e)throw new Error("[share app content to stage] Callback cannot be null");G(c.sidePanel,c.meetingStage),We("meeting.shareAppContentToStage",[n],e)},e.getAppContentStageSharingCapabilities=function(e){if(!e)throw new Error("[get app content stage sharing capabilities] Callback cannot be null");G(c.sidePanel,c.meetingStage),We("meeting.getAppContentStageSharingCapabilities",e)},e.stopSharingAppContentToStage=function(e){if(!e)throw new Error("[stop sharing app content to stage] Callback cannot be null");G(c.sidePanel,c.meetingStage),We("meeting.stopSharingAppContentToStage",e)},e.getAppContentStageSharingState=function(e){if(!e)throw new Error("[get app content stage sharing state] Callback cannot be null");G(c.sidePanel,c.meetingStage),We("meeting.getAppContentStageSharingState",e)},e.registerSpeakingStateChangeHandler=function(e){if(!e)throw new Error("[registerSpeakingStateChangeHandler] Handler cannot be null");G(c.sidePanel,c.meetingStage),Ce("meeting.speakingStateChanged",e)},e.registerRaiseHandStateChangedHandler=function(e){if(!e)throw new Error("[registerRaiseHandStateChangedHandler] Handler cannot be null");G(c.sidePanel,c.meetingStage),Ce("meeting.raiseHandStateChanged",e)},e.registerMeetingReactionReceivedHandler=function(e){if(!e)throw new Error("[registerMeetingReactionReceivedHandler] Handler cannot be null");G(c.sidePanel,c.meetingStage),Ce("meeting.meetingReactionReceived",e)},function(e){e.setOptions=function(e){G(c.sidePanel),e.contentUrl&&new URL(e.contentUrl),We("meeting.appShareButton.setOptions",[e])}}(e.appShareButton||(e.appShareButton={}))}(_n||(_n={})),function(e){function n(){return G(),!!X.supports.monetization}e.openPurchaseExperience=function(e,t){var o,i;return"function"==typeof e?(o=e,i=t):i=e,G(c.content),U((function(){return new Promise((function(e){if(!n())throw C;e(Le("monetization.openPurchaseExperience",i))}))}),o)},e.isSupported=n}(xn||(xn={})),function(e){function n(){return G(),!!X.supports.calendar}e.openCalendarItem=function(e){return new Promise((function(t){if(G(c.content),!n())throw new Error("Not supported");if(!e.itemId||!e.itemId.trim())throw new Error("Must supply an itemId to openCalendarItem");t(Ne("calendar.openCalendarItem",e))}))},e.composeMeeting=function(e){return new Promise((function(t){if(G(c.content),!n())throw new Error("Not supported");X.isLegacyTeams?t(Ne("executeDeepLink",vn(e.attendees,e.startTime,e.endTime,e.subject,e.content))):t(Ne("calendar.composeMeeting",e))}))},e.isSupported=n}(Vn||(Vn={})),function(e){function n(){return G(),!!X.supports.mail}e.openMailItem=function(e){return new Promise((function(t){if(G(c.content),!n())throw new Error("Not supported");if(!e.itemId||!e.itemId.trim())throw new Error("Must supply an itemId to openMailItem");t(Ne("mail.openMailItem",e))}))},e.composeMail=function(e){return new Promise((function(t){if(G(c.content),!n())throw new Error("Not supported");t(Ne("mail.composeMail",e))}))},e.isSupported=n,function(e){e.New="new",e.Reply="reply",e.ReplyAll="replyAll",e.Forward="forward"}(e.ComposeMailType||(e.ComposeMailType={}))}(Bn||(Bn={})),function(e){function n(e){return new Promise((function(n){if(!j("2.0.0"))throw{errorCode:r.OLD_PLATFORM};if(!Hn(e))throw{errorCode:r.INVALID_ARGUMENTS};if(!t())throw C;n(Le("people.selectPeople",e))}))}function t(){return G(),!!X.supports.people}e.selectPeople=function(e,t){var o,i,r;return G(c.content,c.task,c.settings),"function"==typeof e?(i=(o=[e,t])[0],r=o[1]):r=e,D(n,i,r)},e.isSupported=t}(zn||(zn={})),function(e){e.showProfile=function(e){return G(c.content),new Promise((function(n){var t=nt(e),o=t[0],i=t[1];if(!o)throw{errorCode:r.INVALID_ARGUMENTS,message:i};n(Le("profile.showProfile",{modality:e.modality,persona:e.persona,triggerType:e.triggerType,targetRectangle:{x:e.targetElementBoundingRect.x,y:e.targetElementBoundingRect.y,width:e.targetElementBoundingRect.width,height:e.targetElementBoundingRect.height}}))}))},e.isSupported=function(){return G(),!!X.supports.profile}}(Gn||(Gn={})),function(e){function n(e){We("video.videoFrameProcessed",[e])}function t(e){We("video.notifyError",[e])}function o(){return G(),!!X.supports.video}!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,i){if(G(c.sidePanel),!o())throw C;Ce("video.newVideoFrame",(function(o){if(o){var i=o.timestamp;e(o,(function(){n(i)}),t)}}),!1),We("video.registerForVideoFrame",[i])},e.notifySelectedVideoEffectChanged=function(e,n){if(G(c.sidePanel),!o())throw C;We("video.videoEffectChanged",[e,n])},e.registerForVideoEffect=function(e){if(G(c.sidePanel),!o())throw C;Ce("video.effectParameterChange",e,!1),We("video.registerForVideoEffect")},e.isSupported=o}(jn||(jn={})),function(e){var n="search.queryChange",t="search.queryClose",o="search.queryExecute";function i(){return G(),!!X.supports.search}e.registerHandlers=function(e,r,a){if(G(c.content),!i())throw C;Ce(t,e),Ce(o,r),a&&Ce(n,a)},e.unregisterHandlers=function(){if(G(c.content),!i())throw C;We("search.unregister"),we(n),we(t),we(o)},e.isSupported=i}(qn||(qn={})),function(e){function n(n){return new Promise((function(t){if(!a())throw C;t(Le(e.SharingAPIMessages.shareWebContent,n))}))}function t(e){if(!(e&&e.content&&e.content.length))throw{errorCode:r.INVALID_ARGUMENTS,message:"Shared content is missing"}}function o(e){if(e.content.some((function(e){return!e.type})))throw{errorCode:r.INVALID_ARGUMENTS,message:"Shared content type cannot be undefined"};if(e.content.some((function(n){return n.type!==e.content[0].type})))throw{errorCode:r.INVALID_ARGUMENTS,message:"Shared content must be of the same type"}}function i(e){if("URL"!==e.content[0].type)throw{errorCode:r.INVALID_ARGUMENTS,message:"Content type is unsupported"};if(e.content.some((function(e){return!e.url})))throw{errorCode:r.INVALID_ARGUMENTS,message:"URLs are required for URL content types"}}function a(){return G(),!!X.supports.sharing}e.SharingAPIMessages={shareWebContent:"sharing.shareWebContent"},e.shareWebContent=function(e,r){try{t(e),o(e),i(e)}catch(e){return L((function(){return Promise.reject(e)}),r)}return G(c.content,c.sidePanel,c.task,c.stage,c.meetingStage),L(n,r,e)},e.isSupported=a}(Kn||(Kn={})),function(e){function n(){return G(),!!X.supports.stageView}e.open=function(e){return new Promise((function(t){if(G(c.content),!n())throw C;if(!e)throw new Error("[stageView.open] Stage view params cannot be null");t(Le("stageView.open",e))}))},e.isSupported=n}(Zn||(Zn={})),function(e){function n(){return G(),!!X.supports.webStorage}e.isWebStorageClearedOnUserLogOut=function(){return G(),n()},e.isSupported=n}(Jn||(Jn={})),function(e){var n;function t(){return G(),!!X.supports.call}!function(e){e.Unknown="unknown",e.Audio="audio",e.Video="video",e.VideoBasedScreenSharing="videoBasedScreenSharing",e.Data="data"}(n=e.CallModalities||(e.CallModalities={})),e.startCall=function(e){return new Promise((function(o){var i;if(G(c.content,c.task),!t())throw C;if(!X.isLegacyTeams)return We("call.startCall",[e],o);o(Le("executeDeepLink",wn(e.targets,null===(i=e.requestedModalities)||void 0===i?void 0:i.includes(n.Video),e.source)))}))},e.isSupported=t}(Qn||(Qn={})),function(e){e.Messages=le.Messages,e.FailedReason=le.FailedReason,e.ExpectedFailureReason=le.ExpectedFailureReason,e.notifyAppLoaded=function(){le.notifyAppLoaded()},e.notifySuccess=function(){le.notifySuccess()},e.notifyFailure=function(e){le.notifyFailure(e)},e.notifyExpectedFailure=function(e){le.notifyExpectedFailure(e)}}(Xn||(Xn={})),function(e){e.setValidityState=function(e){ce.config.setValidityState(e)},e.getSettings=function(e){G(c.content,c.settings,c.remove,c.sidePanel),ce.getConfig().then((function(n){e(n)}))},e.setSettings=function(e,n){G(c.content,c.settings,c.sidePanel),n=n||O(),ce.config.setConfig(e).then((function(){n(!0)})).catch((function(e){n(!1,e.message)}))},e.registerOnSaveHandler=function(e){ce.config.registerOnSaveHandlerHelper(e)},e.registerOnRemoveHandler=function(e){ce.config.registerOnRemoveHandlerHelper(e)}}($n||($n={}));var kt,Rt,Ot,At=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(e){function n(e){return{url:e.url,size:{height:e.height?e.height:h.Small,width:e.width?e.width:h.Small},title:e.title,fallbackUrl:e.fallbackUrl}}function t(e){return{url:e.url,size:{height:e.height?e.height:h.Small,width:e.width?e.width:h.Small},title:e.title,fallbackUrl:e.fallbackUrl,completionBotId:e.completionBotId}}function o(e){return e.height=e.height?e.height:h.Small,e.width=e.width?e.width:h.Small,e}e.startTask=function(e,o){var i=o?function(e){return o(e.err,e.result)}:void 0;return void 0!==e.card||void 0===e.url?(G(c.content,c.sidePanel,c.meetingStage),We("tasks.startTask",[e],o)):void 0!==e.completionBotId?re.bot.open(t(e),i):re.open(n(e),i),new Yn},e.updateTask=function(e){(e=o(e)).width,e.height;var n=At(e,["width","height"]);if(Object.keys(n).length)throw new Error("resize requires a TaskInfo argument containing only width and height");re.update.resize(e)},e.submitTask=function(e,n){re.submit(e,n)},e.getDefaultSizeIfNotProvided=o}(kt||(kt={})),function(e){e.guest="Guest",e.attendee="Attendee",e.presenter="Presenter",e.organizer="Organizer"}(Rt||(Rt={})),function(e){e.added="Added",e.alreadyExists="AlreadyExists",e.conflict="Conflict",e.notFound="NotFound"}(Ot||(Ot={}));var Mt,Nt,Dt,Lt,Ut,Ht,Wt,_t=function(){function e(){}return e.prototype.getFluidTenantInfo=function(){return new Promise((function(e){G(c.meetingStage,c.sidePanel),e(Le("interactive.getFluidTenantInfo"))}))},e.prototype.getFluidToken=function(e){return new Promise((function(n){G(c.meetingStage,c.sidePanel),n(Le("interactive.getFluidToken",e))}))},e.prototype.getFluidContainerId=function(){return new Promise((function(e){G(c.meetingStage,c.sidePanel),e(Le("interactive.getFluidContainerId"))}))},e.prototype.setFluidContainerId=function(e){return new Promise((function(n){G(c.meetingStage,c.sidePanel),n(Le("interactive.setFluidContainerId",e))}))},e.prototype.getNtpTime=function(){return new Promise((function(e){G(c.meetingStage,c.sidePanel),e(Le("interactive.getNtpTime"))}))},e.prototype.registerClientId=function(e){return new Promise((function(n){G(c.meetingStage,c.sidePanel),n(Le("interactive.registerClientId",e))}))},e.prototype.getClientRoles=function(e){return new Promise((function(n){G(c.meetingStage,c.sidePanel),n(Le("interactive.getClientRoles",e))}))},e.create=function(){return G(c.meetingStage,c.sidePanel),new e},e}();!function(e){function n(e,n){return{errorCode:e,message:n}}!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={})),function(e){e.Downloaded="Downloaded",e.Downloading="Downloading",e.Failed="Failed"}(e.FileDownloadStatus||(e.FileDownloadStatus={})),function(e){e.Download="DOWNLOAD",e.Upload="UPLOAD",e.Delete="DELETE"}(e.CloudStorageProviderFileAction||(e.CloudStorageProviderFileAction={})),e.getCloudStorageFolders=function(e,n){if(G(c.content),!e||0===e.length)throw new Error("[files.getCloudStorageFolders] channelId name cannot be null or empty");if(!n)throw new Error("[files.getCloudStorageFolders] Callback cannot be null");We("files.getCloudStorageFolders",[e],n)},e.addCloudStorageFolder=function(e,n){if(G(c.content),!e||0===e.length)throw new Error("[files.addCloudStorageFolder] channelId name cannot be null or empty");if(!n)throw new Error("[files.addCloudStorageFolder] Callback cannot be null");We("files.addCloudStorageFolder",[e],n)},e.deleteCloudStorageFolder=function(e,n,t){if(G(c.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");if(!t)throw new Error("[files.deleteCloudStorageFolder] Callback cannot be null");We("files.deleteCloudStorageFolder",[e,n],t)},e.getCloudStorageFolderContents=function(e,n,t){if(G(c.content),!e||!n)throw new Error("[files.getCloudStorageFolderContents] folder/providerCode name cannot be null or empty");if(!t)throw new Error("[files.getCloudStorageFolderContents] Callback cannot be null");if("isSubdirectory"in e&&!e.isSubdirectory)throw new Error("[files.getCloudStorageFolderContents] provided folder is not a subDirectory");We("files.getCloudStorageFolderContents",[e,n],t)},e.openCloudStorageFile=function(e,n,t){if(G(c.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");We("files.openCloudStorageFile",[e,n,t])},e.getExternalProviders=function(e,n){if(void 0===e&&(e=!1),G(c.content),!n)throw new Error("[files.getExternalProviders] Callback cannot be null");We("files.getExternalProviders",[e],n)},e.copyMoveFiles=function(e,n,t,o,i,r){if(void 0===i&&(i=!1),G(c.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");if(!r)throw new Error("[files.copyMoveFiles] callback cannot be null");We("files.copyMoveFiles",[e,n,t,o,i],r)},e.getFileDownloads=function(e){if(G(c.content),!e)throw new Error("[files.getFileDownloads] Callback cannot be null");We("files.getFileDownloads",[],e)},e.openDownloadFolder=function(e,n){if(void 0===e&&(e=void 0),G(c.content),!n)throw new Error("[files.openDownloadFolder] Callback cannot be null");We("files.openDownloadFolder",[e],n)},e.addCloudStorageProvider=function(e){if(G(c.content),!e)throw n(r.INVALID_ARGUMENTS,"[files.addCloudStorageProvider] callback cannot be null");We("files.addCloudStorageProvider",[],e)},e.removeCloudStorageProvider=function(e,t){if(G(c.content),!t)throw n(r.INVALID_ARGUMENTS,"[files.removeCloudStorageProvider] callback cannot be null");if(!e||!e.content)throw n(r.INVALID_ARGUMENTS,"[files.removeCloudStorageProvider] 3P cloud storage provider request content is missing");We("files.removeCloudStorageProvider",[e],t)},e.addCloudStorageProviderFile=function(e,t){if(G(c.content),!t)throw n(r.INVALID_ARGUMENTS,"[files.addCloudStorageProviderFile] callback cannot be null");if(!e||!e.content)throw n(r.INVALID_ARGUMENTS,"[files.addCloudStorageProviderFile] 3P cloud storage provider request content is missing");We("files.addCloudStorageProviderFile",[e],t)},e.renameCloudStorageProviderFile=function(e,t){if(G(c.content),!t)throw n(r.INVALID_ARGUMENTS,"[files.renameCloudStorageProviderFile] callback cannot be null");if(!e||!e.content)throw n(r.INVALID_ARGUMENTS,"[files.renameCloudStorageProviderFile] 3P cloud storage provider request content is missing");We("files.renameCloudStorageProviderFile",[e],t)},e.deleteCloudStorageProviderFile=function(e,t){if(G(c.content),!t)throw n(r.INVALID_ARGUMENTS,"[files.deleteCloudStorageProviderFile] callback cannot be null");if(!(e&&e.content&&e.content.itemList&&e.content.itemList.length>0))throw n(r.INVALID_ARGUMENTS,"[files.deleteCloudStorageProviderFile] 3P cloud storage provider request content details are missing");We("files.deleteCloudStorageProviderFile",[e],t)},e.downloadCloudStorageProviderFile=function(e,t){if(G(c.content),!t)throw n(r.INVALID_ARGUMENTS,"[files.downloadCloudStorageProviderFile] callback cannot be null");if(!(e&&e.content&&e.content.itemList&&e.content.itemList.length>0))throw n(r.INVALID_ARGUMENTS,"[files.downloadCloudStorageProviderFile] 3P cloud storage provider request content details are missing");We("files.downloadCloudStorageProviderFile",[e],t)},e.uploadCloudStorageProviderFile=function(e,t){if(G(c.content),!t)throw n(r.INVALID_ARGUMENTS,"[files.uploadCloudStorageProviderFile] callback cannot be null");if(!(e&&e.content&&e.content.itemList&&e.content.itemList.length>0))throw n(r.INVALID_ARGUMENTS,"[files.uploadCloudStorageProviderFile] 3P cloud storage provider request content details are missing");if(!e.content.destinationFolder)throw n(r.INVALID_ARGUMENTS,"[files.uploadCloudStorageProviderFile] Invalid destination folder details");We("files.uploadCloudStorageProviderFile",[e],t)},e.registerCloudStorageProviderListChangeHandler=function(e){if(G(),!e)throw new Error("[registerCloudStorageProviderListChangeHandler] Handler cannot be null");Ce("files.cloudStorageProviderListChange",e)},e.registerCloudStorageProviderContentChangeHandler=function(e){if(G(),!e)throw new Error("[registerCloudStorageProviderContentChangeHandler] Handler cannot be null");Ce("files.cloudStorageProviderContentChange",e)}}(Mt||(Mt={})),function(e){function n(){return G(),!!X.supports.meetingRoom}e.getPairedMeetingRoomInfo=function(){return new Promise((function(e){if(G(),!n())throw C;e(Le("meetingRoom.getPairedMeetingRoomInfo"))}))},e.sendCommandToPairedMeetingRoom=function(e){return new Promise((function(t){if(!e||0==e.length)throw new Error("[meetingRoom.sendCommandToPairedMeetingRoom] Command name cannot be null or empty");if(G(),!n())throw C;t(Le("meetingRoom.sendCommandToPairedMeetingRoom",e))}))},e.registerMeetingRoomCapabilitiesUpdateHandler=function(e){if(!e)throw new Error("[meetingRoom.registerMeetingRoomCapabilitiesUpdateHandler] Handler cannot be null");if(G(),!n())throw C;Ce("meetingRoom.meetingRoomCapabilitiesUpdate",(function(n){G(),e(n)}))},e.registerMeetingRoomStatesUpdateHandler=function(e){if(!e)throw new Error("[meetingRoom.registerMeetingRoomStatesUpdateHandler] Handler cannot be null");if(G(),!n())throw C;Ce("meetingRoom.meetingRoomStatesUpdate",(function(n){G(),e(n)}))},e.isSupported=n}(Nt||(Nt={})),function(e){function n(){return G(),!!X.supports.notifications}e.showNotification=function(e){if(G(c.content),!n())throw C;We("notifications.showNotification",[e])},e.isSupported=n}(Dt||(Dt={})),function(e){function n(){return G(),!!X.supports.remoteCamera}!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");if(G(c.sidePanel),!n())throw C;We("remoteCamera.getCapableParticipants",e)},e.requestControl=function(e,t){if(!e)throw new Error("[remoteCamera.requestControl] Participant cannot be null");if(!t)throw new Error("[remoteCamera.requestControl] Callback cannot be null");if(G(c.sidePanel),!n())throw C;We("remoteCamera.requestControl",[e],t)},e.sendControlCommand=function(e,t){if(!e)throw new Error("[remoteCamera.sendControlCommand] ControlCommand cannot be null");if(!t)throw new Error("[remoteCamera.sendControlCommand] Callback cannot be null");if(G(c.sidePanel),!n())throw C;We("remoteCamera.sendControlCommand",[e],t)},e.terminateSession=function(e){if(!e)throw new Error("[remoteCamera.terminateSession] Callback cannot be null");if(G(c.sidePanel),!n())throw C;We("remoteCamera.terminateSession",e)},e.registerOnCapableParticipantsChangeHandler=function(e){if(!e)throw new Error("[remoteCamera.registerOnCapableParticipantsChangeHandler] Handler cannot be null");if(G(c.sidePanel),!n())throw C;Ce("remoteCamera.capableParticipantsChange",e)},e.registerOnErrorHandler=function(e){if(!e)throw new Error("[remoteCamera.registerOnErrorHandler] Handler cannot be null");if(G(c.sidePanel),!n())throw C;Ce("remoteCamera.handlerError",e)},e.registerOnDeviceStateChangeHandler=function(e){if(!e)throw new Error("[remoteCamera.registerOnDeviceStateChangeHandler] Handler cannot be null");if(G(c.sidePanel),!n())throw C;Ce("remoteCamera.deviceStateChange",e)},e.registerOnSessionStatusChangeHandler=function(e){if(!e)throw new Error("[remoteCamera.registerOnSessionStatusChangeHandler] Handler cannot be null");if(G(c.sidePanel),!n())throw C;Ce("remoteCamera.sessionStatusChange",e)},e.isSupported=n}(Lt||(Lt={})),function(e){function n(){return G(),!!X.supports.appEntity}e.selectAppEntity=function(e,t,o,i){if(G(c.content),!n())throw C;if(!e||0==e.length)throw new Error("[appEntity.selectAppEntity] threadId name cannot be null or empty");if(!i)throw new Error("[appEntity.selectAppEntity] Callback cannot be null");We("appEntity.selectAppEntity",[e,t,o],i)},e.isSupported=n}(Ut||(Ut={})),function(e){function n(){return G(),!!X.supports.teams}!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,t){if(G(c.content),!n())throw C;if(!e)throw new Error("[teams.getTeamChannels] groupId cannot be null or empty");if(!t)throw new Error("[teams.getTeamChannels] Callback cannot be null");We("teams.getTeamChannels",[e],t)},e.refreshSiteUrl=function(e,t){if(G(),!n())throw C;if(!e)throw new Error("[teams.refreshSiteUrl] threadId cannot be null or empty");if(!t)throw new Error("[teams.refreshSiteUrl] Callback cannot be null");We("teams.refreshSiteUrl",[e],t)},e.isSupported=n,function(e){function n(){return G(),!!X.supports.teams&&!!X.supports.teams.fullTrust}!function(e){function n(){return G(),!!X.supports.teams&&(!!X.supports.teams.fullTrust&&!!X.supports.teams.fullTrust.joinedTeams)}e.getUserJoinedTeams=function(e){return new Promise((function(t){if(G(),!n())throw C;if((g.hostClientType===s.android||g.hostClientType===s.teamsRoomsAndroid||g.hostClientType===s.teamsPhones||g.hostClientType===s.teamsDisplays)&&!j("2.0.1")){var o={errorCode:r.OLD_PLATFORM};throw new Error(JSON.stringify(o))}t(Me("getUserJoinedTeams",e))}))},e.isSupported=n}(e.joinedTeams||(e.joinedTeams={})),e.getConfigSetting=function(e){return new Promise((function(t){if(G(),!n())throw C;t(Me("getConfigSetting",e))}))},e.isSupported=n}(e.fullTrust||(e.fullTrust={}))}(Ht||(Ht={})),function(e){function n(){return G(),jn.isSupported()}function t(e){We("video.videoFrameProcessed",[e])}function o(e){We("video.notifyError",[e])}e.registerForVideoFrame=function(e,i){if(G(c.sidePanel),!n())throw C;Ce("video.newVideoFrame",(function(n){if(n){var i=n.timestamp;e(n,(function(){t(i)}),o)}}),!1),We("video.registerForVideoFrame",[i])},e.notifySelectedVideoEffectChanged=function(e,t,o){if(G(c.sidePanel),!n())throw C;We("video.videoEffectChanged",[e,t,o])},e.registerForVideoEffect=function(e){if(G(c.sidePanel),!n())throw C;Ce("video.effectParameterChange",e,!1),We("video.registerForVideoEffect")},e.updatePersonalizedEffects=function(e){if(G(c.sidePanel),!jn.isSupported())throw C;We("video.personalizedEffectsChanged",[e])},e.isSupported=n}(Wt||(Wt={}))})(),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={378: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?l(e,r,i,"day"):r>=o?l(e,r,o,"hour"):r>=t?l(e,r,t,"minute"):r>=n?l(e,r,n,"second"):e+" ms"}function l(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))}},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,l=0;e.exports=function(e,n,t){var c=n&&t||0,u=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 g=void 0!==e.msecs?e.msecs:(new Date).getTime(),m=void 0!==e.nsecs?e.nsecs:l+1,h=g-s+(m-l)/1e4;if(h<0&&void 0===e.clockseq&&(f=f+1&16383),(h<0||g>s)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=g,l=m,i=f;var C=(1e4*(268435455&(g+=122192928e5))+m)%4294967296;u[c++]=C>>>24&255,u[c++]=C>>>16&255,u[c++]=C>>>8&255,u[c++]=255&C;var w=g/4294967296*1e4&268435455;u[c++]=w>>>8&255,u[c++]=255&w,u[c++]=w>>>24&15|16,u[c++]=w>>>16&255,u[c++]=f>>>8|128,u[c++]=255&f;for(var v=0;v<6;++v)u[c+v]=d[v];return n||a(u)}},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(378),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}}},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,{ActionObjectType:()=>n,ChannelType:()=>m,ChildAppWindow:()=>Yn,ContainerState:()=>Ot,DialogDimension:()=>f,ErrorCode:()=>r,FileOpenPreference:()=>e,FrameContexts:()=>c,HostClientType:()=>s,HostName:()=>l,LiveShareHost:()=>_t,NotificationTypes:()=>Xe,ParentAppWindow:()=>et,SecondaryM365ContentIdName:()=>i,TaskModuleDimension:()=>h,TeamType:()=>u,UserMeetingRole:()=>Rt,UserSettingTypes:()=>Ye,UserTeamRole:()=>d,ViewerActionTypes:()=>$e,app:()=>le,appEntity:()=>Ut,appInitialization:()=>Xn,appInstallDialog:()=>hn,authentication:()=>_,barCode:()=>bn,calendar:()=>Vn,call:()=>Qn,chat:()=>Pn,conversations:()=>en,dialog:()=>re,enablePrintCapability:()=>it,executeDeepLink:()=>yt,files:()=>Mt,geoLocation:()=>Tn,getContext:()=>at,getMruTabInstances:()=>wt,getTabInstances:()=>Ct,initialize:()=>ot,initializeWithFrameContext:()=>bt,location:()=>Wn,logs:()=>Qe,mail:()=>Bn,media:()=>Sn,meeting:()=>_n,meetingRoom:()=>Nt,menus:()=>ae,monetization:()=>xn,navigateBack:()=>Ft,navigateCrossDomain:()=>Et,navigateToTab:()=>It,notifications:()=>Dt,openFilePreview:()=>mn,pages:()=>ce,people:()=>zn,print:()=>rt,profile:()=>Gn,registerAppButtonClickHandler:()=>ct,registerAppButtonHoverEnterHandler:()=>ut,registerAppButtonHoverLeaveHandler:()=>dt,registerBackButtonHandler:()=>ft,registerBeforeUnloadHandler:()=>gt,registerChangeSettingsHandler:()=>ht,registerCustomHandler:()=>pn,registerFocusEnterHandler:()=>mt,registerFullScreenHandler:()=>lt,registerOnLoadHandler:()=>pt,registerOnThemeChangeHandler:()=>st,registerUserSettingsChangeHandler:()=>gn,remoteCamera:()=>Lt,returnFocus:()=>Tt,search:()=>qn,sendCustomEvent:()=>fn,sendCustomMessage:()=>dn,setFrameContext:()=>St,settings:()=>$n,shareDeepLink:()=>vt,sharing:()=>Kn,stageView:()=>Zn,tasks:()=>kt,teams:()=>Ht,teamsCore:()=>se,uploadCustomApp:()=>un,version:()=>p,video:()=>jn,videoEx:()=>Wt,webStorage:()=>Jn});var e,n,i,r,a,s,l,c,u,d,f,p="2.6.0-beta.1",g=function(){function e(){}return e.initializeCalled=!1,e.initializeCompleted=!1,e.additionalValidOrigins=[],e.isFramelessWindow=!1,e.printCapabilityEnabled=!1,e}();!function(e){e.Inline="inline",e.Desktop="desktop",e.Web="web"}(e||(e={})),function(e){e.M365Content="m365content"}(n||(n={})),function(e){e.DriveId="driveId",e.GroupId="groupId",e.SiteId="siteId",e.UserId="userId"}(i||(i={})),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"}(r||(r={})),function(e){e.GeoLocation="geolocation",e.Media="media"}(a||(a={})),function(e){e.desktop="desktop",e.web="web",e.android="android",e.ios="ios",e.ipados="ipados",e.rigel="rigel",e.surfaceHub="surfaceHub",e.teamsRoomsWindows="teamsRoomsWindows",e.teamsRoomsAndroid="teamsRoomsAndroid",e.teamsPhones="teamsPhones",e.teamsDisplays="teamsDisplays"}(s||(s={})),function(e){e.office="Office",e.outlook="Outlook",e.outlookWin32="OutlookWin32",e.orange="Orange",e.teams="Teams"}(l||(l={})),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"}(c||(c={})),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"}(u||(u={})),function(e){e[e.Admin=0]="Admin",e[e.User=1]="User",e[e.Guest=2]="Guest"}(d||(d={})),function(e){e.Large="large",e.Medium="medium",e.Small="small"}(f||(f={}));var m,h=f;!function(e){e.Regular="Regular",e.Private="Private",e.Shared="Shared"}(m||(m={}));var C={errorCode:r.NOT_SUPPORTED_ON_PLATFORM},w="2.0.1",v="2.0.3",y="1.9.0",S="1.8.0",b=["teams.microsoft.com","teams.microsoft.us","gov.teams.microsoft.us","dod.teams.microsoft.us","int.teams.microsoft.com","teams.live.com","devspaces.skype.com","ssauth.skype.com","local.teams.live.com","local.teams.live.com:8080","local.teams.office.com","local.teams.office.com:8080","msft.spoppe.com","*.sharepoint.com","*.sharepoint-df.com","*.sharepointonline.com","outlook.office.com","outlook-sdf.office.com","outlook.office365.com","outlook-sdf.office365.com","outlook.live.com","outlook-sdf.live.com","*.teams.microsoft.com","*.www.office.com","www.office.com","word.office.com","excel.office.com","powerpoint.office.com","www.officeppe.com","*.www.microsoft365.com","www.microsoft365.com"],P=/^https:\/\//,T="The library has not yet been initialized",I=(0,t(227).debug)("teamsJs");function E(e){return I.extend(e)}var F=t(22);function k(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 R(e){if("https:"!==e.protocol)return!1;var n=e.host;if(b.some((function(e){return k(e,n)})))return!0;for(var t=0,o=g.additionalValidOrigins;t<o.length;t++){var i=o[t];if(k("https://"===i.substring(0,8)?i.substring(8):i,n))return!0}return!1}function O(e){return function(n,t){if(!n)throw new Error(e||t)}}function A(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 F.v4()}function N(e){return Object.keys(e).forEach((function(n){"object"==typeof e[n]&&N(e[n])})),Object.freeze(e)}function D(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 L(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 U(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 H(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 W(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()}var _,x=E("internal"),V=x.extend("ensureInitializeCalled"),B=x.extend("ensureInitialized");function z(){if(!g.initializeCalled)throw V(T),new Error(T)}function G(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!g.initializeCompleted)throw B("%s. initializeCalled: %s",T,g.initializeCalled.toString()),new Error(T);if(e&&e.length>0){for(var t=!1,o=0;o<e.length;o++)if(e[o]===g.frameContext){t=!0;break}if(!t)throw new Error("This call is only allowed in following contexts: "+JSON.stringify(e)+'. Current context: "'+g.frameContext+'".')}}function j(e){void 0===e&&(e=w);var n=A(g.clientSupportedSDKVersion,e);return!isNaN(n)&&n>=0}function q(){return g.hostClientType==s.android||g.hostClientType==s.ios}function K(e){if(void 0===e&&(e=w),!q())throw{errorCode:r.NOT_SUPPORTED_ON_PLATFORM};if(!j(e))throw{errorCode:r.OLD_PLATFORM}}function Z(e){var n=g.additionalValidOrigins.concat(e.filter((function(e){return"string"==typeof e&&P.test(e)}))),t={};n=n.filter((function(e){return!t[e]&&(t[e]=!0,!0)})),g.additionalValidOrigins=n}!function(e){var n,t,o;function i(e){return new Promise((function(t,o){if(g.hostClientType===s.desktop||g.hostClientType===s.android||g.hostClientType===s.ios||g.hostClientType===s.rigel||g.hostClientType===s.teamsRoomsWindows||g.hostClientType===s.teamsRoomsAndroid||g.hostClientType===s.teamsPhones||g.hostClientType===s.teamsDisplays){var i=document.createElement("a");i.href=e.url,t(Ue("authentication.authenticate",[i.href,e.width,e.height,e.isExternal]).then((function(e){var n=e[0],t=e[1];if(n)return t;throw new Error(t)})))}else n={success:t,fail:o},u(e)}))}function r(e){return new Promise((function(n){n(Ue("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(Ue("authentication.getUser"))})).then((function(e){var n=e[0],t=e[1];if(n)return t;throw new Error(t)}))}function l(){d();try{ke.childWindow&&ke.childWindow.close()}finally{ke.childWindow=null,ke.childOrigin=null}}function u(e){l();var n=e.width||600,t=e.height||400;n=Math.min(n,ke.currentWindow.outerWidth-400),t=Math.min(t,ke.currentWindow.outerHeight-200);var o=document.createElement("a");o.href=e.url.replace("{oauthRedirectMethod}","web");var i=void 0!==ke.currentWindow.screenLeft?ke.currentWindow.screenLeft:ke.currentWindow.screenX,r=void 0!==ke.currentWindow.screenTop?ke.currentWindow.screenTop:ke.currentWindow.screenY;i+=ke.currentWindow.outerWidth/2-n/2,r+=ke.currentWindow.outerHeight/2-t/2,ke.childWindow=ke.currentWindow.open(o.href,"_blank","toolbar=no, location=yes, status=no, menubar=no, scrollbars=yes, top="+r+", left="+i+", width="+n+", height="+t),ke.childWindow?f():m("FailedToOpenWindow")}function d(){t&&(clearInterval(t),t=0),we("initialize"),we("navigateCrossDomain")}function f(){d(),t=ke.currentWindow.setInterval((function(){if(!ke.childWindow||ke.childWindow.closed)m("CancelledByUser");else{var e=ke.childOrigin;try{ke.childOrigin="*",an("ping")}finally{ke.childOrigin=e}}}),100),Ce("initialize",(function(){return[c.authentication,g.hostClientType]})),Ce("navigateCrossDomain",(function(){return!1}))}function p(e){try{n&&n.success(e)}finally{n=null,l()}}function m(e){try{n&&n.fail(new Error(e))}finally{n=null,l()}}function h(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=C(o.href,"result",t)),ke.currentWindow.location.assign(C(o.href,"authSuccess",""))),n&&"reason"===n&&(t&&(o.href=C(o.href,"reason",t)),ke.currentWindow.location.assign(C(o.href,"authFailure",""))))}}function C(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(){Ce("authentication.authenticate.success",p,!1),Ce("authentication.authenticate.failure",m,!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 G(c.content,c.sidePanel,c.settings,c.remove,c.task,c.stage,c.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 z(),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 z(),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){h(n,"result",e),G(c.authentication),We("authentication.authenticate.success",[e]),on(ke.parentWindow,(function(){return setTimeout((function(){return ke.currentWindow.close()}),200)}))},e.notifyFailure=function(e,n){h(n,"reason",e),G(c.authentication),We("authentication.authenticate.failure",[e]),on(ke.parentWindow,(function(){return setTimeout((function(){return ke.currentWindow.close()}),200)}))}}(_||(_={}));var J=function(){return J=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e},J.apply(this,arguments)},Q=E("runtime"),X={apiVersion:-1,supports:{}},$={appInstallDialog:{},appEntity:{},call:{},chat:{},conversations:{},dialog:{bot:{},update:{}},logs:{},meetingRoom:{},menus:{},monetization:{},notifications:{},pages:{appButton:{},tabs:{},config:{},backStack:{},fullTrust:{}},remoteCamera:{},sharing:{},stageView:{},teams:{fullTrust:{}},teamsCore:{},video:{}},Y=[s.desktop,s.web,s.android,s.ios,s.rigel,s.surfaceHub,s.teamsRoomsWindows,s.teamsRoomsAndroid,s.teamsPhones,s.teamsDisplays],ee={"1.9.0":[{capability:{location:{}},hostClientTypes:Y}],"2.0.0":[{capability:{people:{}},hostClientTypes:Y}],"2.0.1":[{capability:{teams:{fullTrust:{joinedTeams:{}}}},hostClientTypes:[s.android,s.desktop,s.ios,s.teamsRoomsAndroid,s.teamsPhones,s.teamsDisplays,s.web]},{capability:{webStorage:{}},hostClientTypes:[s.desktop]},{capability:{profile:{}},hostClientTypes:[s.desktop,s.web]}],"2.0.5":[{capability:{webStorage:{}},hostClientTypes:[s.android,s.desktop,s.ios]}]},ne=Q.extend("generateBackCompatRuntimeConfig");function te(e){ne("generating back compat runtime config for %s",e);var n=J({},$);ne("Supported capabilities in config before updating based on highestSupportedVersion: %o",n),Object.keys(ee).forEach((function(t){A(e,t)>=0&&ee[t].forEach((function(e){e.hostClientTypes.includes(g.hostClientType)&&(n=J(J({},n),e.capability))}))}));var t={apiVersion:1,isLegacyTeams:!0,supports:n};return ne("Runtime config after updating based on highestSupportedVersion: %o",t),t}var oe=Q.extend("applyRuntimeConfig");function ie(e){oe("Applying runtime %o",e),X=N(e)}var re,ae,se,le,ce;function ue(e){return{actionInfo:e.actionInfo,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:l.teams,clientType:e.hostClientType?e.hostClientType:s.web,sessionId:e.sessionId?e.sessionId:"",ringId:e.ringId},appLaunchId:e.appLaunchId},page:{id:e.entityId,frameContext:e.frameContext?e.frameContext:g.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||e.mySitePath||e.mySiteDomain?{teamSiteUrl:e.teamSiteUrl,teamSiteDomain:e.teamSiteDomain,teamSitePath:e.teamSitePath,teamSiteId:e.teamSiteId,mySitePath:e.mySitePath,mySiteDomain:e.mySiteDomain}:void 0}}!function(e){var n=[];function t(e){g.frameContext&&(g.frameContext===c.task?n.push(e):we("messageForChild"))}function o(){return G(),!!X.supports.dialog}function i(e){return{url:e.url,height:e.size?e.size.height:f.Small,width:e.size?e.size.width:f.Small,title:e.title,fallbackUrl:e.fallbackUrl}}function r(e){return{url:e.url,height:e.size?e.size.height:f.Small,width:e.size?e.size.width:f.Small,title:e.title,fallbackUrl:e.fallbackUrl,completionBotId:e.completionBotId}}e.initialize=function(){Ce("messageForChild",t,!1)},e.open=function(e,n,t){if(G(c.content,c.sidePanel,c.meetingStage),!o())throw C;t&&Ce("messageForParent",t),We("tasks.startTask",[i(e)],(function(e,t){null==n||n({err:e,result:t}),we("messageForParent")}))},e.submit=function(e,n){if(G(c.content,c.sidePanel,c.task,c.meetingStage),!o())throw C;We("tasks.completeTask",[e,n?Array.isArray(n)?n:[n]:[]])},e.sendMessageToParentFromDialog=function(e){if(G(c.task),!o())throw C;We("messageForParent",[e])},e.sendMessageToDialog=function(e){if(G(c.content,c.sidePanel,c.meetingStage),!o())throw C;We("messageForChild",[e])},e.registerOnMessageFromParent=function(e){if(G(c.task),!o())throw C;for(we("messageForChild"),Ce("messageForChild",e),n.reverse();n.length>0;){e(n.pop())}},e.isSupported=o,function(e){function n(){return G(),!!X.supports.dialog&&!!X.supports.dialog.update}e.resize=function(e){if(G(c.content,c.sidePanel,c.task,c.meetingStage),!n())throw C;We("tasks.updateTask",[e])},e.isSupported=n}(e.update||(e.update={})),function(e){function n(){return G(),!!X.supports.dialog&&!!X.supports.dialog.bot}e.open=function(e,t,o){if(G(c.content,c.sidePanel,c.meetingStage),!n())throw C;o&&Ce("messageForParent",o),We("tasks.startTask",[r(e)],(function(e,n){null==t||t({err:e,result:n}),we("messageForParent")}))},e.isSupported=n}(e.bot||(e.bot={})),e.getDialogInfoFromUrlDialogInfo=i,e.getDialogInfoFromBotUrlDialogInfo=r}(re||(re={})),function(e){!function(e){e[e.ifRoom=0]="ifRoom",e[e.overflowOnly=1]="overflowOnly"}(e.DisplayMode||(e.DisplayMode={}));var n,t,o,i=function(){return function(){this.enabled=!0,this.selected=!1}}();function r(e){o&&o(e)||(G(),We("viewConfigItemPress",[e]))}function a(e){n&&n(e)||(G(),We("handleNavBarMenuItemPress",[e]))}function s(e){t&&t(e)||(G(),We("handleActionMenuItemPress",[e]))}function l(){return G(),!!X.supports.menus}e.MenuItem=i,function(e){e.dropDown="dropDown",e.popOver="popOver"}(e.MenuListType||(e.MenuListType={})),e.initialize=function(){Ce("navBarMenuItemPress",a,!1),Ce("actionMenuItemPress",s,!1),Ce("setModuleView",r,!1)},e.setUpViews=function(e,n){if(G(),!l())throw C;o=n,We("setUpViews",[e])},e.setNavBarMenu=function(e,t){if(G(),!l())throw C;n=t,We("setNavBarMenu",[e])},e.showActionMenu=function(e,n){if(G(),!l())throw C;t=n,We("showActionMenu",[e])},e.isSupported=l}(ae||(ae={})),function(e){function n(){window.print()}function t(e,n){e&&G(),e&&n&&n(),be(e)}function o(e,n){e&&G(),e&&n&&n(),Te(e)}function i(){return G(),!!X.supports.teamsCore}e.enablePrintCapability=function(){if(!g.printCapabilityEnabled){if(G(),!i())throw C;g.printCapabilityEnabled=!0,document.addEventListener("keydown",(function(e){(e.ctrlKey||e.metaKey)&&80===e.keyCode&&(n(),e.cancelBubble=!0,e.preventDefault(),e.stopImmediatePropagation())}))}},e.print=n,e.registerOnLoadHandler=function(e){t(e,(function(){if(e&&!i())throw C}))},e.registerOnLoadHandlerHelper=t,e.registerBeforeUnloadHandler=function(e){o(e,(function(){if(e&&!i())throw C}))},e.registerBeforeUnloadHandlerHelper=o,e.isSupported=i}(se||(se={})),function(e){var n=E("app");e.Messages={AppLoaded:"appInitialization.appLoaded",Success:"appInitialization.success",Failure:"appInitialization.failure",ExpectedFailure:"appInitialization.expectedFailure"},function(e){e.AuthFailed="AuthFailed",e.Timeout="Timeout",e.Other="Other"}(e.FailedReason||(e.FailedReason={})),function(e){e.PermissionError="PermissionError",e.NotFound="NotFound",e.Throttling="Throttling",e.Offline="Offline",e.Other="Other"}(e.ExpectedFailureReason||(e.ExpectedFailureReason={})),e.isInitialized=function(){return g.initializeCompleted},e.getFrameContext=function(){return g.frameContext};e.initialize=function(e){return H((function(){return o(e)}),5e3,new Error("SDK initialization timed out."))};var t=n.extend("initializeHelper");function o(e){return new Promise((function(n){g.initializeCalled||(g.initializeCalled=!0,ge(),g.initializePromise=Oe(e).then((function(e){var n=e.context,o=e.clientType,i=e.runtimeConfig,r=e.clientSupportedSDKVersion,a=void 0===r?w:r;g.frameContext=n,g.hostClientType=o,g.clientSupportedSDKVersion=a;try{t("Parsing %s",i);var s=JSON.parse(i);if(t("Checking if %o is a valid runtime object",null!=s?s:"null"),!s||!s.apiVersion)throw new Error("Received runtime config is invalid");i&&ie(s)}catch(e){if(!(e instanceof SyntaxError))throw e;try{t("Attempting to parse %s as an SDK version",i),isNaN(A(i,w))||(g.clientSupportedSDKVersion=i);s=JSON.parse(a);if(t("givenRuntimeConfig parsed to %o",null!=s?s:"null"),!s)throw new Error("givenRuntimeConfig string was successfully parsed. However, it parsed to value of null");ie(s)}catch(e){if(!(e instanceof SyntaxError))throw e;ie(te(g.clientSupportedSDKVersion))}}g.initializeCompleted=!0})),_.initialize(),ae.initialize(),ce.config.initialize(),re.initialize()),Array.isArray(e)&&Z(e),n(g.initializePromise)}))}function i(e){e&&z(),ye(e)}e._initialize=function(e){ke.currentWindow=e},e._uninitialize=function(){g.initializeCalled&&(g.frameContext&&(i(null),ce.backStack.registerBackButtonHandler(null),ce.registerFullScreenHandler(null),se.registerBeforeUnloadHandler(null),se.registerOnLoadHandler(null),Qe.registerGetLogHandler(null)),g.frameContext===c.settings&&ce.config.registerOnSaveHandler(null),g.frameContext===c.remove&&ce.config.registerOnRemoveHandler(null),g.initializeCalled=!1,g.initializeCompleted=!1,g.initializePromise=null,g.additionalValidOrigins=[],g.frameContext=null,g.hostClientType=null,g.isFramelessWindow=!1,Ae())},e.getContext=function(){return new Promise((function(e){z(),e(Me("getContext"))})).then((function(e){return ue(e)}))},e.notifyAppLoaded=function(){z(),We(e.Messages.AppLoaded,[p])},e.notifySuccess=function(){z(),We(e.Messages.Success,[p])},e.notifyFailure=function(n){z(),We(e.Messages.Failure,[n.reason,n.message])},e.notifyExpectedFailure=function(n){z(),We(e.Messages.ExpectedFailure,[n.reason,n.message])},e.registerOnThemeChangeHandler=i,e.openLink=function(e){return new Promise((function(n){G(c.content,c.sidePanel,c.settings,c.task,c.stage,c.meetingStage),n(Ne("executeDeepLink",e))}))}}(le||(le={})),function(e){function n(e){if(G(c.content),!t())throw C;We("setFrameContext",[e])}function t(){return G(),!!X.supports.pages}e.returnFocus=function(e){if(G(),!t())throw C;We("returnFocus",[e])},e.registerFocusEnterHandler=function(e){ve("focusEnter",e,[],(function(){if(!t())throw C}))},e.setCurrentFrame=n,e.initializeWithFrameContext=function(e,t,o){le.initialize(o).then((function(){return t&&t()})),n(e)},e.getConfig=function(){return new Promise((function(e){if(G(c.content,c.settings,c.remove,c.sidePanel),!t())throw C;e(Me("settings.getSettings"))}))},e.navigateCrossDomain=function(e){return new Promise((function(n){if(G(c.content,c.sidePanel,c.settings,c.remove,c.task,c.stage,c.meetingStage),!t())throw C;n(De("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){if(G(c.content,c.sidePanel,c.settings,c.task,c.stage,c.meetingStage),!t())throw C;X.isLegacyTeams?n(Ne("executeDeepLink",W(e))):n(Ne("pages.navigateToApp",e))}))},e.shareDeepLink=function(e){if(G(c.content,c.sidePanel,c.meetingStage),!t())throw C;We("shareDeepLink",[e.subPageId,e.subPageLabel,e.subPageWebUrl])},e.registerFullScreenHandler=function(e){ve("fullScreenChange",e,[],(function(){if(e&&!t())throw C}))},e.isSupported=t,function(e){function n(){return G(),!!X.supports.pages&&!!X.supports.pages.tabs}e.navigateToTab=function(e){return new Promise((function(t){if(G(),!n())throw C;t(De("navigateToTab","Invalid internalTabInstanceId and/or channelId were/was provided",e))}))},e.getTabInstances=function(e){return new Promise((function(t){if(G(),!n())throw C;t(Me("getTabInstances",e))}))},e.getMruTabInstances=function(e){return new Promise((function(t){if(G(),!n())throw C;t(Me("getMruTabInstances",e))}))},e.isSupported=n}(e.tabs||(e.tabs={})),function(e){var n,t;function o(e,t){e&&G(c.settings),t&&t(),n=e,e&&We("registerHandler",["save"])}function i(e,n){e&&G(c.remove,c.settings),n&&n(),t=e,e&&We("registerHandler",["remove"])}function r(e){var t=new a(e);n?n(t):ke.childWindow?an("settings.save",[e]):t.notifySuccess()}e.initialize=function(){Ce("settings.save",r,!1),Ce("settings.remove",s,!1)},e.setValidityState=function(e){if(G(c.settings,c.remove),!u())throw C;We("settings.setValidityState",[e])},e.setConfig=function(e){return new Promise((function(n){if(G(c.content,c.settings,c.sidePanel),!u())throw C;n(Ne("settings.setSettings",e))}))},e.registerOnSaveHandler=function(e){o(e,(function(){if(e&&!u())throw C}))},e.registerOnSaveHandlerHelper=o,e.registerOnRemoveHandler=function(e){i(e,(function(){if(e&&!u())throw C}))},e.registerOnRemoveHandlerHelper=i,e.registerChangeConfigHandler=function(e){ve("changeSettings",e,[c.content],(function(){if(!u())throw C}))};var a=function(){function e(e){this.notified=!1,this.result=e||{}}return e.prototype.notifySuccess=function(){this.ensureNotNotified(),We("settings.save.success"),this.notified=!0},e.prototype.notifyFailure=function(e){this.ensureNotNotified(),We("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 s(){var e=new l;t?t(e):ke.childWindow?an("settings.remove",[]):e.notifySuccess()}var l=function(){function e(){this.notified=!1}return e.prototype.notifySuccess=function(){this.ensureNotNotified(),We("settings.remove.success"),this.notified=!0},e.prototype.notifyFailure=function(e){this.ensureNotNotified(),We("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}();function u(){return G(),!!X.supports.pages&&!!X.supports.pages.config}e.isSupported=u}(e.config||(e.config={})),function(e){var n;function t(){return new Promise((function(e){if(G(),!r())throw C;e(De("navigateBack","Back navigation is not supported in the current client or context."))}))}function o(e,t){e&&G(),t&&t(),n=e,e&&We("registerHandler",["backButton"])}function i(){n&&n()||(ke.childWindow?an("backButtonPress",[]):t())}function r(){return G(),!!X.supports.pages&&!!X.supports.pages.backStack}e._initialize=function(){Ce("backButtonPress",i,!1)},e.navigateBack=t,e.registerBackButtonHandler=function(e){o(e,(function(){if(e&&!r())throw C}))},e.registerBackButtonHandlerHelper=o,e.isSupported=r}(e.backStack||(e.backStack={})),function(e){function n(){return G(),!!X.supports.pages&&!!X.supports.pages.fullTrust}e.enterFullscreen=function(){if(G(c.content),!n())throw C;We("enterFullscreen",[])},e.exitFullscreen=function(){if(G(c.content),!n())throw C;We("exitFullscreen",[])},e.isSupported=n}(e.fullTrust||(e.fullTrust={})),function(e){function n(){return G(),!!X.supports.pages&&!!X.supports.pages.appButton}e.onClick=function(e){ve("appButtonClick",e,[c.content],(function(){if(!n())throw C}))},e.onHoverEnter=function(e){ve("appButtonHoverEnter",e,[c.content],(function(){if(!n())throw C}))},e.onHoverLeave=function(e){ve("appButtonHoverLeave",e,[c.content],(function(){if(!n())throw C}))},e.isSupported=n}(e.appButton||(e.appButton={})),function(e){function n(){return!!X.supports.pages&&!!X.supports.pages.currentApp}e.navigateTo=function(e){return new Promise((function(t){if(G(c.content,c.sidePanel,c.settings,c.task,c.stage,c.meetingStage),!n())throw C;t(Le("pages.currentApp.navigateTo",e))}))},e.navigateToDefaultPage=function(){return new Promise((function(e){if(G(c.content,c.sidePanel,c.settings,c.task,c.stage,c.meetingStage),!n())throw C;e(Le("pages.currentApp.navigateToDefaultPage"))}))},e.isSupported=n}(e.currentApp||(e.currentApp={}))}(ce||(ce={}));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=E("handlers"),pe=function(){function e(){}return e.handlers={},e}();function ge(){pe.handlers.themeChange=Se,pe.handlers.load=Pe,pe.handlers.beforeUnload=Ie,ce.backStack._initialize()}var me=fe.extend("callHandler");function he(e,n){var t=pe.handlers[e];return t?(me("Invoking the registered handler for message %s with arguments %o",e,n),[!0,t.apply(this,n)]):ke.childWindow?(an(e,[n]),[!1,void 0]):(me("Handler for action message %s not found.",e),[!1,void 0])}function Ce(e,n,t,o){void 0===t&&(t=!0),void 0===o&&(o=[]),n?(pe.handlers[e]=n,t&&We("registerHandler",de([e],o,!0))):delete pe.handlers[e]}function we(e){delete pe.handlers[e]}function ve(e,n,t,o){n&&G.apply(void 0,t),o&&o(),Ce(e,n)}function ye(e){pe.themeChangeHandler=e,e&&We("registerHandler",["themeChange"])}function Se(e){pe.themeChangeHandler&&pe.themeChangeHandler(e),ke.childWindow&&an("themeChange",[e])}function be(e){pe.loadHandler=e,e&&We("registerHandler",["load"])}function Pe(e){pe.loadHandler&&pe.loadHandler(e),ke.childWindow&&an("load",[e])}function Te(e){pe.beforeUnloadHandler=e,e&&We("registerHandler",["beforeUnload"])}function Ie(){var e=function(){We("readyToUnload",[])};pe.beforeUnloadHandler&&pe.beforeUnloadHandler(e)||(ke.childWindow?an("beforeUnload"):e())}var Ee=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=E("communication"),ke=function(){return function(){}}(),Re=function(){function e(){}return e.parentMessageQueue=[],e.childMessageQueue=[],e.nextMessageId=0,e.callbacks={},e.promiseCallbacks={},e}();function Oe(e){if(Re.messageListener=function(e){return Ve(e)},ke.currentWindow=ke.currentWindow||window,ke.parentWindow=ke.currentWindow.parent!==ke.currentWindow.self?ke.currentWindow.parent:ke.currentWindow.opener,(ke.parentWindow||e)&&ke.currentWindow.addEventListener("message",Re.messageListener,!1),!ke.parentWindow){var n=ke.currentWindow;if(!n.nativeInterface)return Promise.reject(new Error("Initialization Failed. No Parent window found."));g.isFramelessWindow=!0,n.onNativeMessage=je}try{return ke.parentOrigin="*",Ue("initialize",[p]).then((function(e){return{context:e[0],clientType:e[1],runtimeConfig:e[2],clientSupportedSDKVersion:e[3]}}))}finally{ke.parentOrigin=null}}function Ae(){ke.currentWindow.removeEventListener("message",Re.messageListener,!1),ke.parentWindow=null,ke.parentOrigin=null,ke.childWindow=null,ke.childOrigin=null,Re.parentMessageQueue=[],Re.childMessageQueue=[],Re.nextMessageId=0,Re.callbacks={}}function Me(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return Ue(e,n).then((function(e){return e[0]}))}function Ne(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return Ue(e,n).then((function(e){var n=e[0],t=e[1];if(!n)throw new Error(t)}))}function De(e,n){for(var t=[],o=2;o<arguments.length;o++)t[o-2]=arguments[o];return Ue(e,t).then((function(e){var t=e[0],o=e[1];if(!t)throw new Error(o||n)}))}function Le(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return Ue(e,n).then((function(e){var n=e[0],t=e[1];if(n)throw n;return t}))}function Ue(e,n){return void 0===n&&(n=void 0),new Promise((function(t){t(He(xe(e,n).id))}))}function He(e){return new Promise((function(n){Re.promiseCallbacks[e]=n}))}function We(e,n,t){var o;n instanceof Function?t=n:n instanceof Array&&(o=n);var i=xe(e,o);t&&(Re.callbacks[i.id]=t)}var _e=Fe.extend("sendMessageToParentHelper");function xe(e,n){var t=_e,o=ke.parentWindow,i=sn(e,n);if(t("Message %i information: %o",i.id,{actionName:e,args:n}),g.isFramelessWindow)ke.currentWindow&&ke.currentWindow.nativeInterface&&(t("Sending message %i to parent via framelessPostMessage interface",i.id),ke.currentWindow.nativeInterface.framelessPostMessage(JSON.stringify(i)));else{var r=Je(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),Ze(o).push(i))}return i}function Ve(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;Be(n,t)&&(ze(n,t),n===ke.parentWindow?je(e):n===ke.childWindow&&Ke(e))}}function Be(e,n){return(!ke.currentWindow||e!==ke.currentWindow)&&(!!(ke.currentWindow&&ke.currentWindow.location&&n&&n===ke.currentWindow.location.origin)||R(new URL(n)))}function ze(e,n){g.isFramelessWindow||ke.parentWindow&&!ke.parentWindow.closed&&e!==ke.parentWindow?ke.childWindow&&!ke.childWindow.closed&&e!==ke.childWindow||(ke.childWindow=e,ke.childOrigin=n):(ke.parentWindow=e,ke.parentOrigin=n),ke.parentWindow&&ke.parentWindow.closed&&(ke.parentWindow=null,ke.parentOrigin=null),ke.childWindow&&ke.childWindow.closed&&(ke.childWindow=null,ke.childOrigin=null),tn(ke.parentWindow),tn(ke.childWindow)}var Ge=Fe.extend("handleParentMessage");function je(e){var n=Ge;if("id"in e.data&&"number"==typeof e.data.id){var t=e.data,o=Re.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,Ee(Ee([],t.args,!0),[t.isPartialResponse],!1)),qe(e)||(n("Removing registered callback for message %i",t.id),delete Re.callbacks[t.id]));var i=Re.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 Re.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),he(t.func,t.args)}else n("Received an unknown message: %O",e)}function qe(e){return!0===e.data.isPartialResponse}function Ke(e){if("id"in e.data&&"func"in e.data){var n=e.data,t=he(n.func,n.args),o=t[0],i=t[1];o&&void 0!==i?rn(n.id,Array.isArray(i)?i:[i]):We(n.func,n.args,(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(ke.childWindow){var o=e.pop();rn(n.id,e,o)}}))}}function Ze(e){return e===ke.parentWindow?Re.parentMessageQueue:e===ke.childWindow?Re.childMessageQueue:[]}function Je(e){return e===ke.parentWindow?ke.parentOrigin:e===ke.childWindow?ke.childOrigin:null}var Qe,Xe,$e,Ye,en,nn=Fe.extend("flushMessageQueue");function tn(e){for(var n=Je(e),t=Ze(e),o=e==ke.parentWindow?"parent":"child";e&&n&&t.length>0;){var i=t.shift();nn("Flushing message %i from "+o+" message queue via postMessage.",i.id),e.postMessage(i,n)}}function on(e,n){var t=ke.currentWindow.setInterval((function(){0===Ze(e).length&&(clearInterval(t),n())}),100)}function rn(e,n,t){var o=ke.childWindow,i=ln(e,n,t),r=Je(o);o&&r&&o.postMessage(i,r)}function an(e,n){var t=ke.childWindow,o=cn(e,n),i=Je(t);t&&i?t.postMessage(o,i):Ze(t).push(o)}function sn(e,n){return{id:Re.nextMessageId++,func:e,timestamp:Date.now(),args:n||[]}}function ln(e,n,t){return{id:e,args:n||[],isPartialResponse:t}}function cn(e,n){return{func:e,args:n||[]}}function un(e,n){G(),We("uploadCustomApp",[e],n||O())}function dn(e,n,t){G(),We(e,n,t)}function fn(e,n){if(G(),!ke.childWindow)throw new Error("The child window has not yet been initialized or is not present");an(e,n)}function pn(e,n){var t=this;G(),Ce(e,(function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return n.apply(t,e)}))}function gn(e,n){G(),Ce("userSettingsChange",n,!0,[e])}function mn(e){G(c.content,c.task),We("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])}!function(e){function n(){return G(),!!X.supports.logs}e.registerGetLogHandler=function(e){if(e&&G(),e&&!n())throw C;e?Ce("log.request",(function(){We("log.receive",[e()])})):we("log.request")},e.isSupported=n}(Qe||(Qe={})),function(e){e.fileDownloadStart="fileDownloadStart",e.fileDownloadComplete="fileDownloadComplete"}(Xe||(Xe={})),function(e){e.view="view",e.edit="edit",e.editNew="editNew"}($e||($e={})),function(e){e.fileOpenPreference="fileOpenPreference",e.theme="theme"}(Ye||(Ye={})),function(e){function n(){return G(),!!X.supports.conversations}e.openConversation=function(e){return new Promise((function(t){if(G(c.content),!n())throw C;var o=Ne("conversations.openConversation",{title:e.title,subEntityId:e.subEntityId,conversationId:e.conversationId,channelId:e.channelId,entityId:e.entityId});e.onStartConversation&&Ce("startConversation",(function(n,t,o,i){return e.onStartConversation({subEntityId:n,conversationId:t,channelId:o,entityId:i})})),e.onCloseConversation&&Ce("closeConversation",(function(n,t,o,i){return e.onCloseConversation({subEntityId:n,conversationId:t,channelId:o,entityId:i})})),t(o)}))},e.closeConversation=function(){if(G(c.content),!n())throw C;We("conversations.closeConversation"),we("startConversation"),we("closeConversation")},e.getChatMembers=function(){return new Promise((function(e){if(G(),!n())throw C;e(Me("getChatMembers"))}))},e.isSupported=n}(en||(en={}));var hn;function Cn(e,n,t){if(0===e.length)throw new Error("Must have at least one user when creating a chat deep link");return"https://teams.microsoft.com/l/chat/0/0?"+("users="+e.map((function(e){return encodeURIComponent(e)})).join(","))+(void 0===n?"":"&topicName="+encodeURIComponent(n))+(void 0===t?"":"&message="+encodeURIComponent(t))}function wn(e,n,t){if(0===e.length)throw new Error("Must have at least one target when creating a call deep link");return"https://teams.microsoft.com/l/call/0/0?"+("users="+e.map((function(e){return encodeURIComponent(e)})).join(","))+(void 0===n?"":"&withVideo="+encodeURIComponent(n))+(void 0===t?"":"&source="+encodeURIComponent(t))}function vn(e,n,t,o,i){return"https://teams.microsoft.com/l/meeting/new?"+(void 0===e?"":"attendees="+e.map((function(e){return encodeURIComponent(e)})).join(","))+(void 0===n?"":"&startTime="+encodeURIComponent(n))+(void 0===t?"":"&endTime="+encodeURIComponent(t))+(void 0===o?"":"&subject="+encodeURIComponent(o))+(void 0===i?"":"&content="+encodeURIComponent(i))}function yn(e){if(!e)throw new Error("App ID must be set when creating an app install dialog deep link");return"https://teams.microsoft.com/l/app/"+encodeURIComponent(e)}!function(e){function n(){return G(),!!X.supports.appInstallDialog}e.openAppInstallDialog=function(e){return new Promise((function(t){if(G(c.content,c.sidePanel,c.settings,c.task,c.stage,c.meetingStage),!n())throw new Error("Not supported");X.isLegacyTeams?t(Ne("executeDeepLink",yn(e.appId))):(We("appInstallDialog.openAppInstallDialog",[e]),t())}))},e.isSupported=n}(hn||(hn={}));var Sn,bn,Pn,Tn,In=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 En(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 Fn(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 kn(e){Mn(e)?K("2.0.2"):Nn(e)?K(v):An(e)&&K("2.0.4")}function Rn(e){return!(e.mediaType!=Sn.MediaType.Video||!e.videoProps||!e.videoProps.videoController)}function On(e){return!(null==e||e.maxMediaCount>10)}function An(e){var n;return!((null==e?void 0:e.mediaType)!=Sn.MediaType.Image||!(null===(n=null==e?void 0:e.imageProps)||void 0===n?void 0:n.imageOutputFormats))}function Mn(e){return!(!e||e.mediaType!=Sn.MediaType.VideoAndImage&&!e.videoAndImageProps)}function Nn(e){return!(!e||e.mediaType!=Sn.MediaType.Video||!e.videoProps||e.videoProps.isFullScreenMode)}function Dn(e,n,t){return null!=e&&null!=n&&n==Sn.FileFormat.ID&&null!=t}function Ln(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 Hn(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){!function(e){e.Base64="base64",e.ID="id"}(e.FileFormat||(e.FileFormat={}));var n=function(){return function(){}}();e.File=n,e.captureImage=function(e){if(!e)throw new Error("[captureImage] Callback cannot be null");G(c.content,c.task),g.isFramelessWindow?j("1.7.0")?We("captureImage",e):e({errorCode:r.OLD_PLATFORM},void 0):e({errorCode:r.NOT_SUPPORTED_ON_PLATFORM},void 0)};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 In(n,e),n.prototype.getMedia=function(e){if(!e)throw new Error("[get Media] Callback cannot be null");(G(c.content,c.task),j(S))?Dn(this.mimeType,this.format,this.content)?j("2.0.0")?this.getMediaViaCallback(e):this.getMediaViaHandler(e):e({errorCode:r.INVALID_ARGUMENTS},null):e({errorCode:r.OLD_PLATFORM},null)},n.prototype.getMediaViaCallback=function(e){var n={mediaMimeType:this.mimeType,assembleAttachment:[]};We("getMedia",[this.content],(function(t){if(e)if(t&&t.error)e(t.error,null);else if(t&&t.mediaChunk)if(t.mediaChunk.chunkSequence<=0){var o=En(n.assembleAttachment,n.mediaMimeType);e(t.error,o)}else{var i=Fn(t.mediaChunk,n.mediaMimeType);n.assembleAttachment.push(i)}else e({errorCode:r.INTERNAL_ERROR,message:"data received is null"},null)}))},n.prototype.getMediaViaHandler=function(e){var n=M(),t={mediaMimeType:this.mimeType,assembleAttachment:[]},o=[n,this.content];this.content&&e&&We("getMedia",o),Ce("getMedia"+n,(function(o){if(e){var i=JSON.parse(o);if(i.error)e(i.error,null),we("getMedia"+n);else if(i.mediaChunk)if(i.mediaChunk.chunkSequence<=0){var a=En(t.assembleAttachment,t.mediaMimeType);e(i.error,a),we("getMedia"+n)}else{var s=Fn(i.mediaChunk,t.mediaMimeType);t.assembleAttachment.push(s)}else e({errorCode:r.INTERNAL_ERROR,message:"data received is null"},null),we("getMedia"+n)}}))},n}(n);e.Media=t;var o,i,a=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return In(n,e),n.prototype.getMediaType=function(){return i.Video},n.prototype.notifyEventToApp=function(e){if(this.controllerCallback)switch(e){case o.StartRecording:if(this.controllerCallback.onRecordingStarted){this.controllerCallback.onRecordingStarted();break}}},n}(function(){function e(e){this.controllerCallback=e}return e.prototype.notifyEventToHost=function(e,n){G(c.content,c.task);try{K(v)}catch(e){return void(n&&n(e))}We("media.controller",[{mediaType:this.getMediaType(),mediaControllerEvent:e}],(function(e){n&&n(e)}))},e.prototype.stop=function(e){this.notifyEventToHost(o.StopRecording,e)},e}());e.VideoController=a,function(e){e[e.StartRecording=1]="StartRecording",e[e.StopRecording=2]="StopRecording"}(o=e.MediaControllerEvent||(e.MediaControllerEvent={})),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.Video=2]="Video",e[e.VideoAndImage=3]="VideoAndImage",e[e.Audio=4]="Audio"}(i=e.MediaType||(e.MediaType={})),function(e){e[e.ID=1]="ID",e[e.URL=2]="URL"}(e.ImageUriType||(e.ImageUriType={})),function(e){e[e.IMAGE=1]="IMAGE",e[e.PDF=2]="PDF"}(e.ImageOutputFormats||(e.ImageOutputFormats={})),e.selectMedia=function(e,n){if(!n)throw new Error("[select Media] Callback cannot be null");if(G(c.content,c.task),j(S)){try{kn(e)}catch(e){return void n(e,null)}if(On(e)){We("selectMedia",[e],(function(o,i,r){if(r)Rn(e)&&e.videoProps.videoController.notifyEventToApp(r);else if(i){for(var a=[],s=0,l=i;s<l.length;s++){var c=l[s];a.push(new t(c))}n(o,a)}else n(o,null)}))}else{var o={errorCode:r.INVALID_ARGUMENTS};n(o,null)}}else{var i={errorCode:r.OLD_PLATFORM};n(i,null)}},e.viewImages=function(e,n){if(!n)throw new Error("[view images] Callback cannot be null");G(c.content,c.task),j(S)?Ln(e)?We("viewImages",[e],n):n({errorCode:r.INVALID_ARGUMENTS}):n({errorCode:r.OLD_PLATFORM})},e.scanBarCode=function(e,n){if(!e)throw new Error("[media.scanBarCode] Callback cannot be null");G(c.content,c.task),g.hostClientType!==s.desktop&&g.hostClientType!==s.web&&g.hostClientType!==s.rigel&&g.hostClientType!==s.teamsRoomsWindows&&g.hostClientType!==s.teamsRoomsAndroid&&g.hostClientType!==s.teamsPhones&&g.hostClientType!==s.teamsDisplays?j("1.9.0")?Un(n)?We("media.scanBarCode",[n],e):e({errorCode:r.INVALID_ARGUMENTS},null):e({errorCode:r.OLD_PLATFORM},null):e({errorCode:r.NOT_SUPPORTED_ON_PLATFORM},null)}}(Sn||(Sn={})),function(e){function n(){return G(),!(!X.supports.barCode||!X.supports.permissions)}e.scanBarCode=function(e){return new Promise((function(t){if(G(c.content,c.task),!n())throw C;if(!Un(e))throw{errorCode:r.INVALID_ARGUMENTS};t(Le("media.scanBarCode",e))}))},e.hasPermission=function(){if(G(c.content,c.task),!n())throw C;var e=a.Media;return new Promise((function(n){n(Le("permissions.has",e))}))},e.requestPermission=function(){if(G(c.content,c.task),!n())throw C;var e=a.Media;return new Promise((function(n){n(Le("permissions.request",e))}))},e.isSupported=n}(bn||(bn={})),function(e){function n(e){return new Promise((function(n){if(G(c.content,c.task),!t())throw C;X.isLegacyTeams?n(Ne("executeDeepLink",Cn([e.user],void 0,e.message))):n(Ne("chat.openChat",{members:e.user,message:e.message}))}))}function t(){return G(),!!X.supports.chat}e.openChat=n,e.openGroupChat=function(e){return new Promise((function(o){if(e.users.length<1)throw Error("OpenGroupChat Failed: No users specified");if(1===e.users.length){n({user:e.users[0],message:e.message})}else{if(G(c.content,c.task),!t())throw C;if(X.isLegacyTeams)o(Ne("executeDeepLink",Cn(e.users,e.topic,e.message)));else o(Ne("chat.openChat",{members:e.users,message:e.message,topic:e.topic}))}}))},e.isSupported=t}(Pn||(Pn={})),function(e){function n(){return G(),!(!X.supports.geoLocation||!X.supports.permissions)}e.getCurrentLocation=function(){if(G(c.content,c.task),!n())throw C;return Le("location.getLocation",{allowChooseLocation:!1,showMap:!1})},e.hasPermission=function(){if(G(c.content,c.task),!n())throw C;var e=a.GeoLocation;return new Promise((function(n){n(Le("permissions.has",e))}))},e.requestPermission=function(){if(G(c.content,c.task),!n())throw C;var e=a.GeoLocation;return new Promise((function(n){n(Le("permissions.request",e))}))},e.isSupported=n,function(e){function n(){return G(),!!(X.supports.geoLocation&&X.supports.geoLocation.map&&X.supports.permissions)}e.chooseLocation=function(){if(G(c.content,c.task),!n())throw C;return Le("location.getLocation",{allowChooseLocation:!0,showMap:!0})},e.showLocation=function(e){if(G(c.content,c.task),!n())throw C;if(!e)throw{errorCode:r.INVALID_ARGUMENTS};return Le("location.showLocation",e)},e.isSupported=n}(e.map||(e.map={}))}(Tn||(Tn={}));var Wn,_n,xn,Vn,Bn,zn,Gn,jn,qn,Kn,Zn,Jn,Qn,Xn,$n,Yn=function(){function e(){}return e.prototype.postMessage=function(e,n){G(),We("messageForChild",[e],n||O())},e.prototype.addEventListener=function(e,n){G(),"message"===e&&Ce("messageForParent",n)},e}(),et=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){G(c.task),We("messageForParent",[e],n||O())},e.prototype.addEventListener=function(e,n){G(c.task),"message"===e&&Ce("messageForChild",n)},e}();function nt(e){return e?e.modality&&"string"!=typeof e.modality?[!1,"modality must be a string"]:e.targetElementBoundingRect&&"object"==typeof e.targetElementBoundingRect?e.triggerType&&"string"==typeof e.triggerType?tt(e.persona):[!1,"triggerType must be a valid string"]:[!1,"targetElementBoundingRect must be a DOMRect"]:[!1,"A request object is required"]}function tt(e){return e?e.displayName&&"string"!=typeof e.displayName?[!1,"displayName must be a string"]:e.identifiers&&"object"==typeof e.identifiers?e.identifiers.AadObjectId||e.identifiers.Smtp||e.identifiers.Upn?e.identifiers.AadObjectId&&"string"!=typeof e.identifiers.AadObjectId?[!1,"AadObjectId identifier must be a string"]:e.identifiers.Smtp&&"string"!=typeof e.identifiers.Smtp?[!1,"Smtp identifier must be a string"]:e.identifiers.Upn&&"string"!=typeof e.identifiers.Upn?[!1,"Upn identifier must be a string"]:[!0,void 0]:[!1,"at least one valid identifier must be provided"]:[!1,"persona identifiers object must be provided"]:[!1,"persona object must be provided"]}function ot(e,n){le.initialize(n).then((function(){e&&e()}))}function it(){se.enablePrintCapability()}function rt(){se.print()}function at(e){z(),le.getContext().then((function(n){e&&e(Pt(n))}))}function st(e){le.registerOnThemeChangeHandler(e)}function lt(e){ve("fullScreenChange",e,[])}function ct(e){ve("appButtonClick",e,[c.content])}function ut(e){ve("appButtonHoverEnter",e,[c.content])}function dt(e){ve("appButtonHoverLeave",e,[c.content])}function ft(e){ce.backStack.registerBackButtonHandlerHelper(e)}function pt(e){se.registerOnLoadHandlerHelper(e)}function gt(e){se.registerBeforeUnloadHandlerHelper(e)}function mt(e){ve("focusEnter",e,[])}function ht(e){ve("changeSettings",e,[c.content])}function Ct(e,n){G(),ce.tabs.getTabInstances(n).then((function(n){e(n)}))}function wt(e,n){G(),ce.tabs.getMruTabInstances(n).then((function(n){e(n)}))}function vt(e){ce.shareDeepLink({subPageId:e.subEntityId,subPageLabel:e.subEntityLabel,subPageWebUrl:e.subEntityWebUrl})}function yt(e,n){G(c.content,c.sidePanel,c.settings,c.task,c.stage,c.meetingStage),n=n||O(),le.openLink(e).then((function(){n(!0)})).catch((function(e){n(!1,e.message)}))}function St(e){ce.setCurrentFrame(e)}function bt(e,n,t){ce.initializeWithFrameContext(e,n,t)}function Pt(e){return{actionInfo:e.actionInfo,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.teamSiteUrl:void 0,teamSiteDomain:void 0!==e.sharePointSite?e.sharePointSite.teamSiteDomain:void 0,teamSitePath:void 0!==e.sharePointSite?e.sharePointSite.teamSitePath:void 0,teamSiteId:void 0!==e.sharePointSite?e.sharePointSite.teamSiteId:void 0,mySitePath:void 0!==e.sharePointSite?e.sharePointSite.mySitePath:void 0,mySiteDomain:void 0!==e.sharePointSite?e.sharePointSite.mySiteDomain:void 0}}function Tt(e){ce.returnFocus(e)}function It(e,n){G(),n=n||O(),ce.tabs.navigateToTab(e).then((function(){n(!0)})).catch((function(e){n(!1,e.message)}))}function Et(e,n){G(c.content,c.sidePanel,c.settings,c.remove,c.task,c.stage,c.meetingStage),n=n||O(),ce.navigateCrossDomain(e).then((function(){n(!0)})).catch((function(e){n(!1,e.message)}))}function Ft(e){G(),e=e||O(),ce.backStack.navigateBack().then((function(){e(!0)})).catch((function(n){e(!1,n.message)}))}!function(e){function n(){return G(),!!X.supports.location}e.getLocation=function(e,t){if(!t)throw new Error("[location.getLocation] Callback cannot be null");if(G(c.content,c.task),!j(y))throw{errorCode:r.OLD_PLATFORM};if(!e)throw{errorCode:r.INVALID_ARGUMENTS};if(!n())throw C;We("location.getLocation",[e],t)},e.showLocation=function(e,t){if(!t)throw new Error("[location.showLocation] Callback cannot be null");if(G(c.content,c.task),!j(y))throw{errorCode:r.OLD_PLATFORM};if(!e)throw{errorCode:r.INVALID_ARGUMENTS};if(!n())throw C;We("location.showLocation",[e],t)},e.isSupported=n}(Wn||(Wn={})),function(e){!function(e){e.like="like",e.heart="heart",e.laugh="laugh",e.surprised="surprised",e.applause="applause"}(e.MeetingReactionType||(e.MeetingReactionType={})),function(e){e.Unknown="Unknown",e.Adhoc="Adhoc",e.Scheduled="Scheduled",e.Recurring="Recurring",e.Broadcast="Broadcast",e.MeetNow="MeetNow"}(e.MeetingType||(e.MeetingType={})),function(e){e.OneOnOneCall="oneOnOneCall",e.GroupCall="groupCall"}(e.CallType||(e.CallType={})),e.getIncomingClientAudioState=function(e){if(!e)throw new Error("[get incoming client audio state] Callback cannot be null");G(c.sidePanel,c.meetingStage),We("getIncomingClientAudioState",e)},e.toggleIncomingClientAudio=function(e){if(!e)throw new Error("[toggle incoming client audio] Callback cannot be null");G(c.sidePanel,c.meetingStage),We("toggleIncomingClientAudio",e)},e.getMeetingDetails=function(e){if(!e)throw new Error("[get meeting details] Callback cannot be null");G(c.sidePanel,c.meetingStage,c.settings,c.content),We("meeting.getMeetingDetails",e)},e.getAuthenticationTokenForAnonymousUser=function(e){if(!e)throw new Error("[get Authentication Token For AnonymousUser] Callback cannot be null");G(c.sidePanel,c.meetingStage),We("meeting.getAuthenticationTokenForAnonymousUser",e)},e.getLiveStreamState=function(e){if(!e)throw new Error("[get live stream state] Callback cannot be null");G(c.sidePanel),We("meeting.getLiveStreamState",e)},e.requestStartLiveStreaming=function(e,n,t){if(!e)throw new Error("[request start live streaming] Callback cannot be null");G(c.sidePanel),We("meeting.requestStartLiveStreaming",[n,t],e)},e.requestStopLiveStreaming=function(e){if(!e)throw new Error("[request stop live streaming] Callback cannot be null");G(c.sidePanel),We("meeting.requestStopLiveStreaming",e)},e.registerLiveStreamChangedHandler=function(e){if(!e)throw new Error("[register live stream changed handler] Handler cannot be null");G(c.sidePanel),Ce("meeting.liveStreamChanged",e)},e.shareAppContentToStage=function(e,n){if(!e)throw new Error("[share app content to stage] Callback cannot be null");G(c.sidePanel,c.meetingStage),We("meeting.shareAppContentToStage",[n],e)},e.getAppContentStageSharingCapabilities=function(e){if(!e)throw new Error("[get app content stage sharing capabilities] Callback cannot be null");G(c.sidePanel,c.meetingStage),We("meeting.getAppContentStageSharingCapabilities",e)},e.stopSharingAppContentToStage=function(e){if(!e)throw new Error("[stop sharing app content to stage] Callback cannot be null");G(c.sidePanel,c.meetingStage),We("meeting.stopSharingAppContentToStage",e)},e.getAppContentStageSharingState=function(e){if(!e)throw new Error("[get app content stage sharing state] Callback cannot be null");G(c.sidePanel,c.meetingStage),We("meeting.getAppContentStageSharingState",e)},e.registerSpeakingStateChangeHandler=function(e){if(!e)throw new Error("[registerSpeakingStateChangeHandler] Handler cannot be null");G(c.sidePanel,c.meetingStage),Ce("meeting.speakingStateChanged",e)},e.registerRaiseHandStateChangedHandler=function(e){if(!e)throw new Error("[registerRaiseHandStateChangedHandler] Handler cannot be null");G(c.sidePanel,c.meetingStage),Ce("meeting.raiseHandStateChanged",e)},e.registerMeetingReactionReceivedHandler=function(e){if(!e)throw new Error("[registerMeetingReactionReceivedHandler] Handler cannot be null");G(c.sidePanel,c.meetingStage),Ce("meeting.meetingReactionReceived",e)},function(e){e.setOptions=function(e){G(c.sidePanel),e.contentUrl&&new URL(e.contentUrl),We("meeting.appShareButton.setOptions",[e])}}(e.appShareButton||(e.appShareButton={}))}(_n||(_n={})),function(e){function n(){return G(),!!X.supports.monetization}e.openPurchaseExperience=function(e,t){var o,i;return"function"==typeof e?(o=e,i=t):i=e,G(c.content),U((function(){return new Promise((function(e){if(!n())throw C;e(Le("monetization.openPurchaseExperience",i))}))}),o)},e.isSupported=n}(xn||(xn={})),function(e){function n(){return G(),!!X.supports.calendar}e.openCalendarItem=function(e){return new Promise((function(t){if(G(c.content),!n())throw new Error("Not supported");if(!e.itemId||!e.itemId.trim())throw new Error("Must supply an itemId to openCalendarItem");t(Ne("calendar.openCalendarItem",e))}))},e.composeMeeting=function(e){return new Promise((function(t){if(G(c.content),!n())throw new Error("Not supported");X.isLegacyTeams?t(Ne("executeDeepLink",vn(e.attendees,e.startTime,e.endTime,e.subject,e.content))):t(Ne("calendar.composeMeeting",e))}))},e.isSupported=n}(Vn||(Vn={})),function(e){function n(){return G(),!!X.supports.mail}e.openMailItem=function(e){return new Promise((function(t){if(G(c.content),!n())throw new Error("Not supported");if(!e.itemId||!e.itemId.trim())throw new Error("Must supply an itemId to openMailItem");t(Ne("mail.openMailItem",e))}))},e.composeMail=function(e){return new Promise((function(t){if(G(c.content),!n())throw new Error("Not supported");t(Ne("mail.composeMail",e))}))},e.isSupported=n,function(e){e.New="new",e.Reply="reply",e.ReplyAll="replyAll",e.Forward="forward"}(e.ComposeMailType||(e.ComposeMailType={}))}(Bn||(Bn={})),function(e){function n(e){return new Promise((function(n){if(!j("2.0.0"))throw{errorCode:r.OLD_PLATFORM};if(!Hn(e))throw{errorCode:r.INVALID_ARGUMENTS};if(!t())throw C;n(Le("people.selectPeople",e))}))}function t(){return G(),!!X.supports.people}e.selectPeople=function(e,t){var o,i,r;return G(c.content,c.task,c.settings),"function"==typeof e?(i=(o=[e,t])[0],r=o[1]):r=e,D(n,i,r)},e.isSupported=t}(zn||(zn={})),function(e){e.showProfile=function(e){return G(c.content),new Promise((function(n){var t=nt(e),o=t[0],i=t[1];if(!o)throw{errorCode:r.INVALID_ARGUMENTS,message:i};n(Le("profile.showProfile",{modality:e.modality,persona:e.persona,triggerType:e.triggerType,targetRectangle:{x:e.targetElementBoundingRect.x,y:e.targetElementBoundingRect.y,width:e.targetElementBoundingRect.width,height:e.targetElementBoundingRect.height}}))}))},e.isSupported=function(){return G(),!!X.supports.profile}}(Gn||(Gn={})),function(e){function n(e){We("video.videoFrameProcessed",[e])}function t(e){We("video.notifyError",[e])}function o(){return G(),!!X.supports.video}!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,i){if(G(c.sidePanel),!o())throw C;Ce("video.newVideoFrame",(function(o){if(o){var i=o.timestamp;e(o,(function(){n(i)}),t)}}),!1),We("video.registerForVideoFrame",[i])},e.notifySelectedVideoEffectChanged=function(e,n){if(G(c.sidePanel),!o())throw C;We("video.videoEffectChanged",[e,n])},e.registerForVideoEffect=function(e){if(G(c.sidePanel),!o())throw C;Ce("video.effectParameterChange",e,!1),We("video.registerForVideoEffect")},e.isSupported=o}(jn||(jn={})),function(e){var n="search.queryChange",t="search.queryClose",o="search.queryExecute";function i(){return G(),!!X.supports.search}e.registerHandlers=function(e,r,a){if(G(c.content),!i())throw C;Ce(t,e),Ce(o,r),a&&Ce(n,a)},e.unregisterHandlers=function(){if(G(c.content),!i())throw C;We("search.unregister"),we(n),we(t),we(o)},e.isSupported=i}(qn||(qn={})),function(e){function n(n){return new Promise((function(t){if(!a())throw C;t(Le(e.SharingAPIMessages.shareWebContent,n))}))}function t(e){if(!(e&&e.content&&e.content.length))throw{errorCode:r.INVALID_ARGUMENTS,message:"Shared content is missing"}}function o(e){if(e.content.some((function(e){return!e.type})))throw{errorCode:r.INVALID_ARGUMENTS,message:"Shared content type cannot be undefined"};if(e.content.some((function(n){return n.type!==e.content[0].type})))throw{errorCode:r.INVALID_ARGUMENTS,message:"Shared content must be of the same type"}}function i(e){if("URL"!==e.content[0].type)throw{errorCode:r.INVALID_ARGUMENTS,message:"Content type is unsupported"};if(e.content.some((function(e){return!e.url})))throw{errorCode:r.INVALID_ARGUMENTS,message:"URLs are required for URL content types"}}function a(){return G(),!!X.supports.sharing}e.SharingAPIMessages={shareWebContent:"sharing.shareWebContent"},e.shareWebContent=function(e,r){try{t(e),o(e),i(e)}catch(e){return L((function(){return Promise.reject(e)}),r)}return G(c.content,c.sidePanel,c.task,c.stage,c.meetingStage),L(n,r,e)},e.isSupported=a}(Kn||(Kn={})),function(e){function n(){return G(),!!X.supports.stageView}e.open=function(e){return new Promise((function(t){if(G(c.content),!n())throw C;if(!e)throw new Error("[stageView.open] Stage view params cannot be null");t(Le("stageView.open",e))}))},e.isSupported=n}(Zn||(Zn={})),function(e){function n(){return G(),!!X.supports.webStorage}e.isWebStorageClearedOnUserLogOut=function(){return G(),n()},e.isSupported=n}(Jn||(Jn={})),function(e){var n;function t(){return G(),!!X.supports.call}!function(e){e.Unknown="unknown",e.Audio="audio",e.Video="video",e.VideoBasedScreenSharing="videoBasedScreenSharing",e.Data="data"}(n=e.CallModalities||(e.CallModalities={})),e.startCall=function(e){return new Promise((function(o){var i;if(G(c.content,c.task),!t())throw C;if(!X.isLegacyTeams)return We("call.startCall",[e],o);o(Le("executeDeepLink",wn(e.targets,null===(i=e.requestedModalities)||void 0===i?void 0:i.includes(n.Video),e.source)))}))},e.isSupported=t}(Qn||(Qn={})),function(e){e.Messages=le.Messages,e.FailedReason=le.FailedReason,e.ExpectedFailureReason=le.ExpectedFailureReason,e.notifyAppLoaded=function(){le.notifyAppLoaded()},e.notifySuccess=function(){le.notifySuccess()},e.notifyFailure=function(e){le.notifyFailure(e)},e.notifyExpectedFailure=function(e){le.notifyExpectedFailure(e)}}(Xn||(Xn={})),function(e){e.setValidityState=function(e){ce.config.setValidityState(e)},e.getSettings=function(e){G(c.content,c.settings,c.remove,c.sidePanel),ce.getConfig().then((function(n){e(n)}))},e.setSettings=function(e,n){G(c.content,c.settings,c.sidePanel),n=n||O(),ce.config.setConfig(e).then((function(){n(!0)})).catch((function(e){n(!1,e.message)}))},e.registerOnSaveHandler=function(e){ce.config.registerOnSaveHandlerHelper(e)},e.registerOnRemoveHandler=function(e){ce.config.registerOnRemoveHandlerHelper(e)}}($n||($n={}));var kt,Rt,Ot,At=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(e){function n(e){return{url:e.url,size:{height:e.height?e.height:h.Small,width:e.width?e.width:h.Small},title:e.title,fallbackUrl:e.fallbackUrl}}function t(e){return{url:e.url,size:{height:e.height?e.height:h.Small,width:e.width?e.width:h.Small},title:e.title,fallbackUrl:e.fallbackUrl,completionBotId:e.completionBotId}}function o(e){return e.height=e.height?e.height:h.Small,e.width=e.width?e.width:h.Small,e}e.startTask=function(e,o){var i=o?function(e){return o(e.err,e.result)}:void 0;return void 0!==e.card||void 0===e.url?(G(c.content,c.sidePanel,c.meetingStage),We("tasks.startTask",[e],o)):void 0!==e.completionBotId?re.bot.open(t(e),i):re.open(n(e),i),new Yn},e.updateTask=function(e){(e=o(e)).width,e.height;var n=At(e,["width","height"]);if(Object.keys(n).length)throw new Error("resize requires a TaskInfo argument containing only width and height");re.update.resize(e)},e.submitTask=function(e,n){re.submit(e,n)},e.getDefaultSizeIfNotProvided=o}(kt||(kt={})),function(e){e.guest="Guest",e.attendee="Attendee",e.presenter="Presenter",e.organizer="Organizer"}(Rt||(Rt={})),function(e){e.added="Added",e.alreadyExists="AlreadyExists",e.conflict="Conflict",e.notFound="NotFound"}(Ot||(Ot={}));var Mt,Nt,Dt,Lt,Ut,Ht,Wt,_t=function(){function e(){}return e.prototype.getFluidTenantInfo=function(){return new Promise((function(e){G(c.meetingStage,c.sidePanel),e(Le("interactive.getFluidTenantInfo"))}))},e.prototype.getFluidToken=function(e){return new Promise((function(n){G(c.meetingStage,c.sidePanel),n(Le("interactive.getFluidToken",e))}))},e.prototype.getFluidContainerId=function(){return new Promise((function(e){G(c.meetingStage,c.sidePanel),e(Le("interactive.getFluidContainerId"))}))},e.prototype.setFluidContainerId=function(e){return new Promise((function(n){G(c.meetingStage,c.sidePanel),n(Le("interactive.setFluidContainerId",e))}))},e.prototype.getNtpTime=function(){return new Promise((function(e){G(c.meetingStage,c.sidePanel),e(Le("interactive.getNtpTime"))}))},e.prototype.registerClientId=function(e){return new Promise((function(n){G(c.meetingStage,c.sidePanel),n(Le("interactive.registerClientId",e))}))},e.prototype.getClientRoles=function(e){return new Promise((function(n){G(c.meetingStage,c.sidePanel),n(Le("interactive.getClientRoles",e))}))},e.create=function(){return G(c.meetingStage,c.sidePanel),new e},e}();!function(e){function n(e,n){return{errorCode:e,message:n}}!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={})),function(e){e.Downloaded="Downloaded",e.Downloading="Downloading",e.Failed="Failed"}(e.FileDownloadStatus||(e.FileDownloadStatus={})),function(e){e.Download="DOWNLOAD",e.Upload="UPLOAD",e.Delete="DELETE"}(e.CloudStorageProviderFileAction||(e.CloudStorageProviderFileAction={})),e.getCloudStorageFolders=function(e,n){if(G(c.content),!e||0===e.length)throw new Error("[files.getCloudStorageFolders] channelId name cannot be null or empty");if(!n)throw new Error("[files.getCloudStorageFolders] Callback cannot be null");We("files.getCloudStorageFolders",[e],n)},e.addCloudStorageFolder=function(e,n){if(G(c.content),!e||0===e.length)throw new Error("[files.addCloudStorageFolder] channelId name cannot be null or empty");if(!n)throw new Error("[files.addCloudStorageFolder] Callback cannot be null");We("files.addCloudStorageFolder",[e],n)},e.deleteCloudStorageFolder=function(e,n,t){if(G(c.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");if(!t)throw new Error("[files.deleteCloudStorageFolder] Callback cannot be null");We("files.deleteCloudStorageFolder",[e,n],t)},e.getCloudStorageFolderContents=function(e,n,t){if(G(c.content),!e||!n)throw new Error("[files.getCloudStorageFolderContents] folder/providerCode name cannot be null or empty");if(!t)throw new Error("[files.getCloudStorageFolderContents] Callback cannot be null");if("isSubdirectory"in e&&!e.isSubdirectory)throw new Error("[files.getCloudStorageFolderContents] provided folder is not a subDirectory");We("files.getCloudStorageFolderContents",[e,n],t)},e.openCloudStorageFile=function(e,n,t){if(G(c.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");We("files.openCloudStorageFile",[e,n,t])},e.getExternalProviders=function(e,n){if(void 0===e&&(e=!1),G(c.content),!n)throw new Error("[files.getExternalProviders] Callback cannot be null");We("files.getExternalProviders",[e],n)},e.copyMoveFiles=function(e,n,t,o,i,r){if(void 0===i&&(i=!1),G(c.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");if(!r)throw new Error("[files.copyMoveFiles] callback cannot be null");We("files.copyMoveFiles",[e,n,t,o,i],r)},e.getFileDownloads=function(e){if(G(c.content),!e)throw new Error("[files.getFileDownloads] Callback cannot be null");We("files.getFileDownloads",[],e)},e.openDownloadFolder=function(e,n){if(void 0===e&&(e=void 0),G(c.content),!n)throw new Error("[files.openDownloadFolder] Callback cannot be null");We("files.openDownloadFolder",[e],n)},e.addCloudStorageProvider=function(e){if(G(c.content),!e)throw n(r.INVALID_ARGUMENTS,"[files.addCloudStorageProvider] callback cannot be null");We("files.addCloudStorageProvider",[],e)},e.removeCloudStorageProvider=function(e,t){if(G(c.content),!t)throw n(r.INVALID_ARGUMENTS,"[files.removeCloudStorageProvider] callback cannot be null");if(!e||!e.content)throw n(r.INVALID_ARGUMENTS,"[files.removeCloudStorageProvider] 3P cloud storage provider request content is missing");We("files.removeCloudStorageProvider",[e],t)},e.addCloudStorageProviderFile=function(e,t){if(G(c.content),!t)throw n(r.INVALID_ARGUMENTS,"[files.addCloudStorageProviderFile] callback cannot be null");if(!e||!e.content)throw n(r.INVALID_ARGUMENTS,"[files.addCloudStorageProviderFile] 3P cloud storage provider request content is missing");We("files.addCloudStorageProviderFile",[e],t)},e.renameCloudStorageProviderFile=function(e,t){if(G(c.content),!t)throw n(r.INVALID_ARGUMENTS,"[files.renameCloudStorageProviderFile] callback cannot be null");if(!e||!e.content)throw n(r.INVALID_ARGUMENTS,"[files.renameCloudStorageProviderFile] 3P cloud storage provider request content is missing");We("files.renameCloudStorageProviderFile",[e],t)},e.deleteCloudStorageProviderFile=function(e,t){if(G(c.content),!t)throw n(r.INVALID_ARGUMENTS,"[files.deleteCloudStorageProviderFile] callback cannot be null");if(!(e&&e.content&&e.content.itemList&&e.content.itemList.length>0))throw n(r.INVALID_ARGUMENTS,"[files.deleteCloudStorageProviderFile] 3P cloud storage provider request content details are missing");We("files.deleteCloudStorageProviderFile",[e],t)},e.downloadCloudStorageProviderFile=function(e,t){if(G(c.content),!t)throw n(r.INVALID_ARGUMENTS,"[files.downloadCloudStorageProviderFile] callback cannot be null");if(!(e&&e.content&&e.content.itemList&&e.content.itemList.length>0))throw n(r.INVALID_ARGUMENTS,"[files.downloadCloudStorageProviderFile] 3P cloud storage provider request content details are missing");We("files.downloadCloudStorageProviderFile",[e],t)},e.uploadCloudStorageProviderFile=function(e,t){if(G(c.content),!t)throw n(r.INVALID_ARGUMENTS,"[files.uploadCloudStorageProviderFile] callback cannot be null");if(!(e&&e.content&&e.content.itemList&&e.content.itemList.length>0))throw n(r.INVALID_ARGUMENTS,"[files.uploadCloudStorageProviderFile] 3P cloud storage provider request content details are missing");if(!e.content.destinationFolder)throw n(r.INVALID_ARGUMENTS,"[files.uploadCloudStorageProviderFile] Invalid destination folder details");We("files.uploadCloudStorageProviderFile",[e],t)},e.registerCloudStorageProviderListChangeHandler=function(e){if(G(),!e)throw new Error("[registerCloudStorageProviderListChangeHandler] Handler cannot be null");Ce("files.cloudStorageProviderListChange",e)},e.registerCloudStorageProviderContentChangeHandler=function(e){if(G(),!e)throw new Error("[registerCloudStorageProviderContentChangeHandler] Handler cannot be null");Ce("files.cloudStorageProviderContentChange",e)}}(Mt||(Mt={})),function(e){function n(){return G(),!!X.supports.meetingRoom}e.getPairedMeetingRoomInfo=function(){return new Promise((function(e){if(G(),!n())throw C;e(Le("meetingRoom.getPairedMeetingRoomInfo"))}))},e.sendCommandToPairedMeetingRoom=function(e){return new Promise((function(t){if(!e||0==e.length)throw new Error("[meetingRoom.sendCommandToPairedMeetingRoom] Command name cannot be null or empty");if(G(),!n())throw C;t(Le("meetingRoom.sendCommandToPairedMeetingRoom",e))}))},e.registerMeetingRoomCapabilitiesUpdateHandler=function(e){if(!e)throw new Error("[meetingRoom.registerMeetingRoomCapabilitiesUpdateHandler] Handler cannot be null");if(G(),!n())throw C;Ce("meetingRoom.meetingRoomCapabilitiesUpdate",(function(n){G(),e(n)}))},e.registerMeetingRoomStatesUpdateHandler=function(e){if(!e)throw new Error("[meetingRoom.registerMeetingRoomStatesUpdateHandler] Handler cannot be null");if(G(),!n())throw C;Ce("meetingRoom.meetingRoomStatesUpdate",(function(n){G(),e(n)}))},e.isSupported=n}(Nt||(Nt={})),function(e){function n(){return G(),!!X.supports.notifications}e.showNotification=function(e){if(G(c.content),!n())throw C;We("notifications.showNotification",[e])},e.isSupported=n}(Dt||(Dt={})),function(e){function n(){return G(),!!X.supports.remoteCamera}!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");if(G(c.sidePanel),!n())throw C;We("remoteCamera.getCapableParticipants",e)},e.requestControl=function(e,t){if(!e)throw new Error("[remoteCamera.requestControl] Participant cannot be null");if(!t)throw new Error("[remoteCamera.requestControl] Callback cannot be null");if(G(c.sidePanel),!n())throw C;We("remoteCamera.requestControl",[e],t)},e.sendControlCommand=function(e,t){if(!e)throw new Error("[remoteCamera.sendControlCommand] ControlCommand cannot be null");if(!t)throw new Error("[remoteCamera.sendControlCommand] Callback cannot be null");if(G(c.sidePanel),!n())throw C;We("remoteCamera.sendControlCommand",[e],t)},e.terminateSession=function(e){if(!e)throw new Error("[remoteCamera.terminateSession] Callback cannot be null");if(G(c.sidePanel),!n())throw C;We("remoteCamera.terminateSession",e)},e.registerOnCapableParticipantsChangeHandler=function(e){if(!e)throw new Error("[remoteCamera.registerOnCapableParticipantsChangeHandler] Handler cannot be null");if(G(c.sidePanel),!n())throw C;Ce("remoteCamera.capableParticipantsChange",e)},e.registerOnErrorHandler=function(e){if(!e)throw new Error("[remoteCamera.registerOnErrorHandler] Handler cannot be null");if(G(c.sidePanel),!n())throw C;Ce("remoteCamera.handlerError",e)},e.registerOnDeviceStateChangeHandler=function(e){if(!e)throw new Error("[remoteCamera.registerOnDeviceStateChangeHandler] Handler cannot be null");if(G(c.sidePanel),!n())throw C;Ce("remoteCamera.deviceStateChange",e)},e.registerOnSessionStatusChangeHandler=function(e){if(!e)throw new Error("[remoteCamera.registerOnSessionStatusChangeHandler] Handler cannot be null");if(G(c.sidePanel),!n())throw C;Ce("remoteCamera.sessionStatusChange",e)},e.isSupported=n}(Lt||(Lt={})),function(e){function n(){return G(),!!X.supports.appEntity}e.selectAppEntity=function(e,t,o,i){if(G(c.content),!n())throw C;if(!e||0==e.length)throw new Error("[appEntity.selectAppEntity] threadId name cannot be null or empty");if(!i)throw new Error("[appEntity.selectAppEntity] Callback cannot be null");We("appEntity.selectAppEntity",[e,t,o],i)},e.isSupported=n}(Ut||(Ut={})),function(e){function n(){return G(),!!X.supports.teams}!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,t){if(G(c.content),!n())throw C;if(!e)throw new Error("[teams.getTeamChannels] groupId cannot be null or empty");if(!t)throw new Error("[teams.getTeamChannels] Callback cannot be null");We("teams.getTeamChannels",[e],t)},e.refreshSiteUrl=function(e,t){if(G(),!n())throw C;if(!e)throw new Error("[teams.refreshSiteUrl] threadId cannot be null or empty");if(!t)throw new Error("[teams.refreshSiteUrl] Callback cannot be null");We("teams.refreshSiteUrl",[e],t)},e.isSupported=n,function(e){function n(){return G(),!!X.supports.teams&&!!X.supports.teams.fullTrust}!function(e){function n(){return G(),!!X.supports.teams&&(!!X.supports.teams.fullTrust&&!!X.supports.teams.fullTrust.joinedTeams)}e.getUserJoinedTeams=function(e){return new Promise((function(t){if(G(),!n())throw C;if((g.hostClientType===s.android||g.hostClientType===s.teamsRoomsAndroid||g.hostClientType===s.teamsPhones||g.hostClientType===s.teamsDisplays)&&!j("2.0.1")){var o={errorCode:r.OLD_PLATFORM};throw new Error(JSON.stringify(o))}t(Me("getUserJoinedTeams",e))}))},e.isSupported=n}(e.joinedTeams||(e.joinedTeams={})),e.getConfigSetting=function(e){return new Promise((function(t){if(G(),!n())throw C;t(Me("getConfigSetting",e))}))},e.isSupported=n}(e.fullTrust||(e.fullTrust={}))}(Ht||(Ht={})),function(e){function n(){return G(),jn.isSupported()}function t(e){We("video.videoFrameProcessed",[e])}function o(e){We("video.notifyError",[e])}e.registerForVideoFrame=function(e,i){if(G(c.sidePanel),!n())throw C;Ce("video.newVideoFrame",(function(n){if(n){var i=n.timestamp;e(n,(function(){t(i)}),o)}}),!1),We("video.registerForVideoFrame",[i])},e.notifySelectedVideoEffectChanged=function(e,t,o){if(G(c.sidePanel),!n())throw C;We("video.videoEffectChanged",[e,t,o])},e.registerForVideoEffect=function(e){if(G(c.sidePanel),!n())throw C;Ce("video.effectParameterChange",e,!1),We("video.registerForVideoEffect")},e.updatePersonalizedEffects=function(e){if(G(c.sidePanel),!jn.isSupported())throw C;We("video.personalizedEffectsChanged",[e])},e.isSupported=n}(Wt||(Wt={}))})(),o})()}));
2
2
  //# sourceMappingURL=MicrosoftTeams.min.js.map
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@microsoft/teams-js","author":"Microsoft Teams","version":"2.6.0-beta.0","description":"Microsoft Client SDK for building app for Microsoft hosts","repository":{"directory":"packages/teams-js","type":"git","url":"https://github.com/OfficeDev/microsoft-teams-library-js"},"main":"./dist/MicrosoftTeams.min.js","typings":"./dist/MicrosoftTeams.d.ts","scripts":{"build":"yarn lint && webpack && yarn docs:validate","clean":"rimraf ./dist","docs":"yarn typedoc","docs:validate":"yarn typedoc --treatWarningsAsErrors --emit none","lint":"yarn eslint ./src ./test --max-warnings 0 --fix --ext .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.6.0-beta.1","description":"Microsoft Client SDK for building app for Microsoft hosts","repository":{"directory":"packages/teams-js","type":"git","url":"https://github.com/OfficeDev/microsoft-teams-library-js"},"main":"./dist/MicrosoftTeams.min.js","typings":"./dist/MicrosoftTeams.d.ts","scripts":{"build":"yarn lint && webpack && yarn docs:validate","clean":"rimraf ./dist","docs":"yarn typedoc","docs:validate":"yarn typedoc --treatWarningsAsErrors --emit none","lint":"yarn eslint ./src ./test --max-warnings 0 --fix --ext .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"]}