@microsoft/teams-js 2.17.0-beta.2 → 2.17.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,2 +1,2 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("microsoftTeams",[],t):"object"==typeof exports?exports.microsoftTeams=t():e.microsoftTeams=t()}("undefined"!=typeof self?self:this,(()=>(()=>{var e={302:(e,t,n)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(o=r))})),t.splice(o,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.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+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.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`."))}})(),t.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"],t.log=console.debug||console.log||(()=>{}),e.exports=n(65)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},65:(e,t,n)=>{e.exports=function(e){function t(e){let n,o,i,a=null;function s(...e){if(!s.enabled)return;const r=s,o=Number(new Date),i=o-(n||o);r.diff=i,r.prev=n,r.curr=o,n=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,o)=>{if("%%"===n)return"%";a++;const i=t.formatters[o];if("function"==typeof i){const t=e[a];n=i.call(r,t),e.splice(a,1),a--}return n})),t.formatArgs.call(r,e);(r.log||t.log).apply(r,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=r,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(o!==t.namespaces&&(o=t.namespaces,i=t.enabled(e)),i),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function o(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(o),...t.skips.map(o).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(247),t.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((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},247:e=>{var t=1e3,n=60*t,r=60*n,o=24*r;function i(e){if(!((e=String(e)).length>100)){var i=/^(-?(?:\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(i){var a=parseFloat(i[1]);switch((i[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*o;case"hours":case"hour":case"hrs":case"hr":case"h":return a*r;case"minutes":case"minute":case"mins":case"min":case"m":return a*n;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}function a(e){var i=Math.abs(e);return i>=o?Math.round(e/o)+"d":i>=r?Math.round(e/r)+"h":i>=n?Math.round(e/n)+"m":i>=t?Math.round(e/t)+"s":e+"ms"}function s(e){var i=Math.abs(e);return i>=o?c(e,i,o,"day"):i>=r?c(e,i,r,"hour"):i>=n?c(e,i,n,"minute"):i>=t?c(e,i,t,"second"):e+" ms"}function c(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,t){t=t||{};var n=typeof e;if("string"===n&&e.length>0)return i(e);if("number"===n&&isFinite(e))return t.long?s(e):a(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}(()=>{n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}})(),(()=>{n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var r={};return(()=>{"use strict";n.r(r),n.d(r,{ActionObjectType:()=>T,ChannelType:()=>N,ChildAppWindow:()=>Fn,DialogDimension:()=>U,ErrorCode:()=>P,FileOpenPreference:()=>E,FrameContexts:()=>A,HostClientType:()=>k,HostName:()=>R,LiveShareHost:()=>jr,NotificationTypes:()=>Dt,ParentAppWindow:()=>On,SecondaryM365ContentIdName:()=>I,TaskModuleDimension:()=>L,TeamType:()=>M,UserSettingTypes:()=>Nt,UserTeamRole:()=>D,ViewerActionTypes:()=>Ut,app:()=>Oe,appEntity:()=>fo,appInitialization:()=>pr,appInstallDialog:()=>Qt,authentication:()=>Ie,barCode:()=>on,calendar:()=>An,call:()=>fr,chat:()=>an,clipboard:()=>yn,conversations:()=>Lt,dialog:()=>Pe,enablePrintCapability:()=>vr,executeDeepLink:()=>Ur,files:()=>so,geoLocation:()=>bn,getAdaptiveCardSchemaVersion:()=>Tn,getContext:()=>yr,getMruTabInstances:()=>Mr,getTabInstances:()=>Ar,initialize:()=>wr,initializeWithFrameContext:()=>Lr,liveShare:()=>Br,location:()=>Pn,logs:()=>Mt,mail:()=>Mn,marketplace:()=>ao,media:()=>rn,meeting:()=>kn,meetingRoom:()=>co,menus:()=>Fe,monetization:()=>Rn,navigateBack:()=>Wr,navigateCrossDomain:()=>Vr,navigateToTab:()=>xr,notifications:()=>uo,openFilePreview:()=>Xt,pages:()=>ke,people:()=>Un,print:()=>Cr,profile:()=>Nn,registerAppButtonClickHandler:()=>Er,registerAppButtonHoverEnterHandler:()=>Tr,registerAppButtonHoverLeaveHandler:()=>Ir,registerBackButtonHandler:()=>Pr,registerBeforeUnloadHandler:()=>Or,registerChangeSettingsHandler:()=>Rr,registerCustomHandler:()=>Kt,registerFocusEnterHandler:()=>kr,registerFullScreenHandler:()=>Sr,registerOnLoadHandler:()=>Fr,registerOnThemeChangeHandler:()=>br,registerUserSettingsChangeHandler:()=>Zt,remoteCamera:()=>lo,returnFocus:()=>Hr,search:()=>er,secondaryBrowser:()=>In,sendCustomEvent:()=>Jt,sendCustomMessage:()=>qt,setFrameContext:()=>Nr,settings:()=>mr,shareDeepLink:()=>Dr,sharing:()=>tr,stageView:()=>nr,tasks:()=>_r,teams:()=>po,teamsCore:()=>Dn,uploadCustomApp:()=>Gt,version:()=>Re,videoEffects:()=>Yn,videoEffectsEx:()=>ho,visualMedia:()=>lr,webStorage:()=>dr});var e="2.0.1",t="2.0.3",o="1.9.0",i="1.8.0",a=["teams.microsoft.com","teams.microsoft.us","gov.teams.microsoft.us","dod.teams.microsoft.us","int.teams.microsoft.com","teams.live.com","devspaces.skype.com","ssauth.skype.com","local.teams.live.com","local.teams.live.com:8080","local.teams.office.com","local.teams.office.com:8080","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","bing.com","edgeservices.bing.com","www.bing.com","www.staging-bing-int.com","teams.cloud.microsoft","outlook.cloud.microsoft","m365.cloud.microsoft"],s=/^https:\/\//,c="https",u="teams.microsoft.com",l="The library has not yet been initialized",d="The runtime has not yet been initialized",f="The runtime version is not supported",p=function(){function e(){}return e.initializeCalled=!1,e.initializeCompleted=!1,e.additionalValidOrigins=[],e.isFramelessWindow=!1,e.printCapabilityEnabled=!1,e}(),m=(0,n(302).debug)("teamsJs");function h(e){return m.extend(e)}const g={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let w;const v=new Uint8Array(16);function C(){if(!w&&(w="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!w))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return w(v)}const y=[];for(let e=0;e<256;++e)y.push((e+256).toString(16).slice(1));function b(e,t=0){return(y[e[t+0]]+y[e[t+1]]+y[e[t+2]]+y[e[t+3]]+"-"+y[e[t+4]]+y[e[t+5]]+"-"+y[e[t+6]]+y[e[t+7]]+"-"+y[e[t+8]]+y[e[t+9]]+"-"+y[e[t+10]]+y[e[t+11]]+y[e[t+12]]+y[e[t+13]]+y[e[t+14]]+y[e[t+15]]).toLowerCase()}const S=function(e,t,n){if(g.randomUUID&&!t&&!e)return g.randomUUID();const r=(e=e||{}).random||(e.rng||C)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return b(r)};var E,T,I,P,F,O,k,R,A,M,D,U;!function(e){e.Inline="inline",e.Desktop="desktop",e.Web="web"}(E||(E={})),function(e){e.M365Content="m365content"}(T||(T={})),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"}(P||(P={})),function(e){e.GeoLocation="geolocation",e.Media="media"}(F||(F={})),function(e){e.TextPlain="text/plain",e.TextHtml="text/html",e.ImagePNG="image/png",e.ImageJPEG="image/jpeg"}(O||(O={})),function(e){e.desktop="desktop",e.web="web",e.android="android",e.ios="ios",e.ipados="ipados",e.macos="macos",e.rigel="rigel",e.surfaceHub="surfaceHub",e.teamsRoomsWindows="teamsRoomsWindows",e.teamsRoomsAndroid="teamsRoomsAndroid",e.teamsPhones="teamsPhones",e.teamsDisplays="teamsDisplays"}(k||(k={})),function(e){e.office="Office",e.outlook="Outlook",e.outlookWin32="OutlookWin32",e.orange="Orange",e.places="Places",e.teams="Teams",e.teamsModern="TeamsModern"}(R||(R={})),function(e){e.settings="settings",e.content="content",e.authentication="authentication",e.remove="remove",e.task="task",e.sidePanel="sidePanel",e.stage="stage",e.meetingStage="meetingStage"}(A||(A={})),function(e){e[e.Standard=0]="Standard",e[e.Edu=1]="Edu",e[e.Class=2]="Class",e[e.Plc=3]="Plc",e[e.Staff=4]="Staff"}(M||(M={})),function(e){e[e.Admin=0]="Admin",e[e.User=1]="User",e[e.Guest=2]="Guest"}(D||(D={})),function(e){e.Large="large",e.Medium="medium",e.Small="small"}(U||(U={}));var N,L=U;!function(e){e.Regular="Regular",e.Private="Private",e.Shared="Shared"}(N||(N={}));var H={errorCode:P.NOT_SUPPORTED_ON_PLATFORM},x=1,V=5,W={adaptiveCardSchemaVersion:{majorVersion:1,minorVersion:5}},_=new Error("Invalid input count: Must supply a valid image count (limit of 10)."),B=new Error("Invalid response: Received more images than the specified max limit in the response.");function z(e,t){if("*."===e.substring(0,2)){var n=e.substring(1);if(t.length>n.length&&t.split(".").length===n.split(".").length&&t.substring(t.length-n.length)===n)return!0}else if(e===t)return!0;return!1}var j=h("validateOrigin");function G(e){if(!ne(e))return j("Origin %s is invalid because it is not using https protocol. Protocol being used: %s",e,e.protocol),!1;var t=e.host;if(a.some((function(e){return z(e,t)})))return!0;for(var n=0,r=p.additionalValidOrigins;n<r.length;n++){var o=r[n];if(z("https://"===o.substring(0,8)?o.substring(8):o,t))return!0}return j("Origin %s is invalid because it is not an origin approved by this library or included in the call to app.initialize.\nOrigins approved by this library: %o\nOrigins included in app.initialize: %o",e,a,p.additionalValidOrigins),!1}function q(e){return function(t,n){if(!t)throw new Error(e||n)}}function J(e,t){if("string"!=typeof e||"string"!=typeof t)return NaN;var n=e.split("."),r=t.split(".");function o(e){return/^\d+$/.test(e)}if(!n.every(o)||!r.every(o))return NaN;for(;n.length<r.length;)n.push("0");for(;r.length<n.length;)r.push("0");for(var i=0;i<n.length;++i)if(Number(n[i])!=Number(r[i]))return Number(n[i])>Number(r[i])?1:-1;return 0}function K(){return S()}function Z(e){return Object.keys(e).forEach((function(t){"object"==typeof e[t]&&Z(e[t])})),Object.freeze(e)}function X(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=e.apply(void 0,n);return o.then((function(e){t&&t(void 0,e)})).catch((function(e){t&&t(e)})),o}function Q(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=e.apply(void 0,n);return o.then((function(){t&&t(null)})).catch((function(e){t&&t(e)})),o}function $(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=e.apply(void 0,n);return o.then((function(e){t&&t(null,e)})).catch((function(e){t&&t(e,null)})),o}function Y(e,t,n){return new Promise((function(r,o){var i=setTimeout(o,t,n);e().then((function(e){clearTimeout(i),r(e)})).catch((function(e){clearTimeout(i),o(e)}))}))}function ee(e){var t=new URL("https://teams.microsoft.com/l/entity/"+encodeURIComponent(e.appId)+"/"+encodeURIComponent(e.pageId));return e.webUrl&&t.searchParams.append("webUrl",e.webUrl),(e.channelId||e.subPageId)&&t.searchParams.append("context",JSON.stringify({channelId:e.channelId,subEntityId:e.subPageId})),t.toString()}function te(e){return!(J("".concat(e.majorVersion,".").concat(e.minorVersion),"".concat(x,".").concat(V))>=0)}function ne(e){return"https:"===e.protocol}function re(e,t){return new Promise((function(n,r){e||r("MimeType cannot be null or empty."),t||r("Base64 string cannot be null or empty.");var o=atob(t);if(e.startsWith("image/")){for(var i=new Uint8Array(o.length),a=0;a<o.length;a++)i[a]=o.charCodeAt(a);n(new Blob([i],{type:e}))}n(new Blob([o],{type:e}))}))}function oe(e){return new Promise((function(t,n){0===e.size&&n(new Error("Blob cannot be empty."));var r=new FileReader;r.onloadend=function(){r.result?t(r.result.toString().split(",")[1]):n(new Error("Failed to read the blob"))},r.onerror=function(){n(r.error)},r.readAsDataURL(e)}))}function ie(){if(ae())throw new Error("window object undefined at SSR check");return window}function ae(){return"undefined"==typeof window}var se=function(){return se=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},se.apply(this,arguments)},ce=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},ue=h("runtime"),le=3;function de(e){return e.apiVersion===le}var fe={apiVersion:-1,supports:{}};function pe(e){if(de(e))return!0;throw-1===e.apiVersion?new Error(d):new Error(f)}var me=fe,he={apiVersion:3,hostVersionsInfo:W,isLegacyTeams:!0,supports:{app:{lifecycle:{caching:{}}},appInstallDialog:{},appEntity:{},call:{},chat:{},conversations:{},dialog:{card:{bot:{}},url:{bot:{}},update:{}},interactive:{},logs:{},meetingRoom:{},menus:{},monetization:{},notifications:{},pages:{appButton:{},tabs:{},config:{},backStack:{},fullTrust:{}},remoteCamera:{},stageView:{},teams:{fullTrust:{}},teamsCore:{},video:{sharedFrame:{}}}},ge=[k.desktop,k.web,k.android,k.ios,k.rigel,k.surfaceHub,k.teamsRoomsWindows,k.teamsRoomsAndroid,k.teamsPhones,k.teamsDisplays];function we(e){var t=e;if(t.apiVersion<le&&ve.forEach((function(e){t.apiVersion===e.versionToUpgradeFrom&&(t=e.upgradeToNextVersion(t))})),de(t))return t;throw new Error("Received a runtime that could not be upgraded to the latest version")}var ve=[{versionToUpgradeFrom:1,upgradeToNextVersion:function(e){var t;return{apiVersion:2,hostVersionsInfo:void 0,isLegacyTeams:e.isLegacyTeams,supports:se(se({},e.supports),{dialog:e.supports.dialog?{card:void 0,url:e.supports.dialog,update:null===(t=e.supports.dialog)||void 0===t?void 0:t.update}:void 0})}}},{versionToUpgradeFrom:2,upgradeToNextVersion:function(e){var t=e.supports,n=(t.appNotification,ce(t,["appNotification"]));return se(se({},e),{apiVersion:3,supports:n})}}],Ce={"1.9.0":[{capability:{location:{}},hostClientTypes:ge}],"2.0.0":[{capability:{people:{}},hostClientTypes:ge},{capability:{sharing:{}},hostClientTypes:[k.desktop,k.web]}],"2.0.1":[{capability:{teams:{fullTrust:{joinedTeams:{}}}},hostClientTypes:[k.android,k.desktop,k.ios,k.teamsRoomsAndroid,k.teamsPhones,k.teamsDisplays,k.web]},{capability:{webStorage:{}},hostClientTypes:[k.desktop]}],"2.0.5":[{capability:{webStorage:{}},hostClientTypes:[k.android,k.desktop,k.ios]}]},ye=ue.extend("generateBackCompatRuntimeConfig");function be(e,t){var n=se({},e);for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&("object"!=typeof t[r]||Array.isArray(t[r])?r in e||(n[r]=t[r]):n[r]=be(e[r]||{},t[r]));return n}function Se(e,t,n){ye("generating back compat runtime config for %s",e);var r=se({},t.supports);ye("Supported capabilities in config before updating based on highestSupportedVersion: %o",r),Object.keys(n).forEach((function(t){J(e,t)>=0&&n[t].forEach((function(e){e.hostClientTypes.includes(p.hostClientType)&&(r=be(r,e.capability))}))}));var o={apiVersion:le,hostVersionsInfo:W,isLegacyTeams:!0,supports:r};return ye("Runtime config after updating based on highestSupportedVersion: %o",o),o}var Ee=ue.extend("applyRuntimeConfig");function Te(e){"string"==typeof e.apiVersion&&(Ee("Trying to apply runtime with string apiVersion, processing as v1: %o",e),e=se(se({},e),{apiVersion:1})),Ee("Fast-forwarding runtime %o",e);var t=we(e);Ee("Applying runtime %o",t),me=Z(t)}var Ie,Pe,Fe,Oe,ke,Re="2.17.0-beta.2",Ae=h("internal"),Me=Ae.extend("ensureInitializeCalled"),De=Ae.extend("ensureInitialized");function Ue(){if(!p.initializeCalled)throw Me(l),new Error(l)}function Ne(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!p.initializeCompleted)throw De("%s. initializeCalled: %s",l,p.initializeCalled.toString()),new Error(l);if(t&&t.length>0){for(var r=!1,o=0;o<t.length;o++)if(t[o]===p.frameContext){r=!0;break}if(!r)throw new Error("This call is only allowed in following contexts: ".concat(JSON.stringify(t),". ")+'Current context: "'.concat(p.frameContext,'".'))}return pe(e)}function Le(t){void 0===t&&(t=e);var n=J(p.clientSupportedSDKVersion,t);return!isNaN(n)&&n>=0}function He(){return p.hostClientType==k.android||p.hostClientType==k.ios||p.hostClientType==k.ipados}function xe(t){if(void 0===t&&(t=e),!He())throw{errorCode:P.NOT_SUPPORTED_ON_PLATFORM};if(!Le(t))throw{errorCode:P.OLD_PLATFORM}}function Ve(e){var t=p.additionalValidOrigins.concat(e.filter((function(e){return"string"==typeof e&&s.test(e)}))),n={};t=t.filter((function(e){return!n[e]&&(n[e]=!0,!0)})),p.additionalValidOrigins=t}function We(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:R.teams,clientType:e.hostClientType?e.hostClientType:k.web,sessionId:e.sessionId?e.sessionId:"",ringId:e.ringId},appLaunchId:e.appLaunchId},page:{id:e.entityId,frameContext:e.frameContext?e.frameContext:p.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 t,n,r;function o(e){return new Promise((function(n,r){if(p.hostClientType===k.desktop||p.hostClientType===k.android||p.hostClientType===k.ios||p.hostClientType===k.ipados||p.hostClientType===k.macos||p.hostClientType===k.rigel||p.hostClientType===k.teamsRoomsWindows||p.hostClientType===k.teamsRoomsAndroid||p.hostClientType===k.teamsPhones||p.hostClientType===k.teamsDisplays||p.hostClientType===k.surfaceHub){var o=document.createElement("a");o.href=e.url,n(gt("authentication.authenticate",[o.href,e.width,e.height,e.isExternal]).then((function(e){var t=e[0],n=e[1];if(t)return n;throw new Error(n)})))}else t={success:n,fail:r},c(e)}))}function i(e){return new Promise((function(t){t(gt("authentication.getAuthToken",[null==e?void 0:e.resources,null==e?void 0:e.claims,null==e?void 0:e.silent]))})).then((function(e){var t=e[0],n=e[1];if(t)return n;throw new Error(n)}))}function a(){return new Promise((function(e){e(gt("authentication.getUser"))})).then((function(e){var t=e[0],n=e[1];if(t)return n;throw new Error(n)}))}function s(){u();try{ct.childWindow&&ct.childWindow.close()}finally{ct.childWindow=null,ct.childOrigin=null}}function c(e){s();var t=e.width||600,n=e.height||400;t=Math.min(t,ct.currentWindow.outerWidth-400),n=Math.min(n,ct.currentWindow.outerHeight-200);var r=document.createElement("a");r.href=e.url.replace("{oauthRedirectMethod}","web");var o=void 0!==ct.currentWindow.screenLeft?ct.currentWindow.screenLeft:ct.currentWindow.screenX,i=void 0!==ct.currentWindow.screenTop?ct.currentWindow.screenTop:ct.currentWindow.screenY;o+=ct.currentWindow.outerWidth/2-t/2,i+=ct.currentWindow.outerHeight/2-n/2,ct.childWindow=ct.currentWindow.open(r.href,"_blank","toolbar=no, location=yes, status=no, menubar=no, scrollbars=yes, top="+i+", left="+o+", width="+t+", height="+n),ct.childWindow?l():f("FailedToOpenWindow")}function u(){n&&(clearInterval(n),n=0),Ze("initialize"),Ze("navigateCrossDomain")}function l(){u(),n=ct.currentWindow.setInterval((function(){if(!ct.childWindow||ct.childWindow.closed)f("CancelledByUser");else{var e=ct.childOrigin;try{ct.childOrigin="*",_t("ping")}finally{ct.childOrigin=e}}}),100),Ke("initialize",(function(){return[A.authentication,p.hostClientType]})),Ke("navigateCrossDomain",(function(){return!1}))}function d(e){try{t&&t.success(e)}finally{t=null,s()}}function f(e){try{t&&t.fail(new Error(e))}finally{t=null,s()}}function m(e,t,n){if(e){var r=document.createElement("a");r.href=decodeURIComponent(e),r.host&&r.host!==ie().location.host&&"outlook.office.com"===r.host&&r.search.indexOf("client_type=Win32_Outlook")>-1&&(t&&"result"===t&&(n&&(r.href=h(r.href,"result",n)),ct.currentWindow.location.assign(h(r.href,"authSuccess",""))),t&&"reason"===t&&(n&&(r.href=h(r.href,"reason",n)),ct.currentWindow.location.assign(h(r.href,"authFailure",""))))}}function h(e,t,n){var r=e.indexOf("#"),o=-1===r?"#":e.substr(r);return o=o+"&"+t+(""!==n?"="+n:""),(e=-1===r?e:e.substr(0,r))+o}e.initialize=function(){Ke("authentication.authenticate.success",d,!1),Ke("authentication.authenticate.failure",f,!1)},e.registerAuthenticationHandlers=function(e){r=e},e.authenticate=function(e){var t=void 0!==e,n=t?e:r;if(!n)throw new Error("No parameters are provided for authentication");return Ne(me,A.content,A.sidePanel,A.settings,A.remove,A.task,A.stage,A.meetingStage),o(n).then((function(e){try{return n&&n.successCallback?(n.successCallback(e),""):e}finally{t||(r=null)}})).catch((function(e){try{if(n&&n.failureCallback)return n.failureCallback(e.message),"";throw e}finally{t||(r=null)}}))},e.getAuthToken=function(e){return Ue(),i(e).then((function(t){return e&&e.successCallback?(e.successCallback(t),""):t})).catch((function(t){if(e&&e.failureCallback)return e.failureCallback(t.message),"";throw t}))},e.getUser=function(e){return Ue(),a().then((function(t){return e&&e.successCallback?(e.successCallback(t),null):t})).catch((function(t){if(e&&e.failureCallback)return e.failureCallback(t.message),null;throw t}))},e.notifySuccess=function(e,t){m(t,"result",e),Ne(me,A.authentication),vt("authentication.authenticate.success",[e]),Vt(ct.parentWindow,(function(){return setTimeout((function(){return ct.currentWindow.close()}),200)}))},e.notifyFailure=function(e,t){m(t,"reason",e),Ne(me,A.authentication),vt("authentication.authenticate.failure",[e]),Vt(ct.parentWindow,(function(){return setTimeout((function(){return ct.currentWindow.close()}),200)}))},function(e){e.Public="public",e.EUDB="eudb",e.Other="other"}(e.DataResidency||(e.DataResidency={}))}(Ie||(Ie={})),function(e){var t=[];function n(e){p.frameContext&&(p.frameContext===A.task?t.push(e):Ze("messageForChild"))}e.initialize=function(){Ke("messageForChild",n,!1)},function(e){function n(){return Ne(me)&&void 0!==(me.supports.dialog&&me.supports.dialog.url)}function r(e){return{url:e.url,height:e.size?e.size.height:U.Small,width:e.size?e.size.width:U.Small,title:e.title,fallbackUrl:e.fallbackUrl}}function o(e){var t=r(e);return t.completionBotId=e.completionBotId,t}e.open=function(e,t,o){if(Ne(me,A.content,A.sidePanel,A.meetingStage),!n())throw H;o&&Ke("messageForParent",o),vt("tasks.startTask",[r(e)],(function(e,n){null==t||t({err:e,result:n}),Ze("messageForParent")}))},e.submit=function(e,t){if(Ne(me,A.content,A.task),!n())throw H;vt("tasks.completeTask",[e,t?Array.isArray(t)?t:[t]:[]])},e.sendMessageToParentFromDialog=function(e){if(Ne(me,A.task),!n())throw H;vt("messageForParent",[e])},e.sendMessageToDialog=function(e){if(Ne(me,A.content,A.sidePanel,A.meetingStage),!n())throw H;vt("messageForChild",[e])},e.registerOnMessageFromParent=function(e){if(Ne(me,A.task),!n())throw H;for(Ze("messageForChild"),Ke("messageForChild",e),t.reverse();t.length>0;){e(t.pop())}},e.isSupported=n,function(e){function t(){return Ne(me)&&void 0!==(me.supports.dialog&&me.supports.dialog.url&&me.supports.dialog.url.bot)}e.open=function(e,n,r){if(Ne(me,A.content,A.sidePanel,A.meetingStage),!t())throw H;r&&Ke("messageForParent",r),vt("tasks.startTask",[o(e)],(function(e,t){null==n||n({err:e,result:t}),Ze("messageForParent")}))},e.isSupported=t}(e.bot||(e.bot={})),e.getDialogInfoFromUrlDialogInfo=r,e.getDialogInfoFromBotUrlDialogInfo=o}(e.url||(e.url={})),e.isSupported=function(){return!(!Ne(me)||!me.supports.dialog)},function(e){function t(){return!(!Ne(me)||!me.supports.dialog)&&!!me.supports.dialog.update}e.resize=function(e){if(Ne(me,A.content,A.sidePanel,A.task,A.meetingStage),!t())throw H;vt("tasks.updateTask",[e])},e.isSupported=t}(e.update||(e.update={})),function(e){function t(){var e=me.hostVersionsInfo&&me.hostVersionsInfo.adaptiveCardSchemaVersion&&!te(me.hostVersionsInfo.adaptiveCardSchemaVersion);return Ne(me)&&void 0!==(e&&me.supports.dialog&&me.supports.dialog.card)}function n(e){return{card:e.card,height:e.size?e.size.height:U.Small,width:e.size?e.size.width:U.Small,title:e.title}}function r(e){var t=n(e);return t.completionBotId=e.completionBotId,t}e.open=function(e,r){if(Ne(me,A.content,A.sidePanel,A.meetingStage),!t())throw H;vt("tasks.startTask",[n(e)],(function(e,t){null==r||r({err:e,result:t})}))},e.isSupported=t,function(e){function t(){var e=me.hostVersionsInfo&&me.hostVersionsInfo.adaptiveCardSchemaVersion&&!te(me.hostVersionsInfo.adaptiveCardSchemaVersion);return Ne(me)&&void 0!==(e&&me.supports.dialog&&me.supports.dialog.card&&me.supports.dialog.card.bot)}e.open=function(e,n){if(Ne(me,A.content,A.sidePanel,A.meetingStage),!t())throw H;vt("tasks.startTask",[r(e)],(function(e,t){null==n||n({err:e,result:t})}))},e.isSupported=t}(e.bot||(e.bot={}))}(e.adaptiveCard||(e.adaptiveCard={}))}(Pe||(Pe={})),function(e){!function(e){e[e.ifRoom=0]="ifRoom",e[e.overflowOnly=1]="overflowOnly"}(e.DisplayMode||(e.DisplayMode={}));var t,n,r,o=function(){return function(){this.enabled=!0,this.selected=!1}}();function i(e){r&&r(e)||(Ne(me),vt("viewConfigItemPress",[e]))}function a(e){t&&t(e)||(Ne(me),vt("handleNavBarMenuItemPress",[e]))}function s(e){n&&n(e)||(Ne(me),vt("handleActionMenuItemPress",[e]))}function c(){return!(!Ne(me)||!me.supports.menus)}e.MenuItem=o,function(e){e.dropDown="dropDown",e.popOver="popOver"}(e.MenuListType||(e.MenuListType={})),e.initialize=function(){Ke("navBarMenuItemPress",a,!1),Ke("actionMenuItemPress",s,!1),Ke("setModuleView",i,!1)},e.setUpViews=function(e,t){if(Ne(me),!c())throw H;r=t,vt("setUpViews",[e])},e.setNavBarMenu=function(e,n){if(Ne(me),!c())throw H;t=n,vt("setNavBarMenu",[e])},e.showActionMenu=function(e,t){if(Ne(me),!c())throw H;n=t,vt("showActionMenu",[e])},e.isSupported=c}(Fe||(Fe={})),function(t){var n=h("app");t.Messages={AppLoaded:"appInitialization.appLoaded",Success:"appInitialization.success",Failure:"appInitialization.failure",ExpectedFailure:"appInitialization.expectedFailure"},function(e){e.AuthFailed="AuthFailed",e.Timeout="Timeout",e.Other="Other"}(t.FailedReason||(t.FailedReason={})),function(e){e.PermissionError="PermissionError",e.NotFound="NotFound",e.Throttling="Throttling",e.Offline="Offline",e.Other="Other"}(t.ExpectedFailureReason||(t.ExpectedFailureReason={})),t.isInitialized=function(){return p.initializeCompleted},t.getFrameContext=function(){return p.frameContext};t.initialize=function(e){return ae()?(n.extend("initialize")("window object undefined at initialization"),Promise.resolve()):Y((function(){return o(e)}),5e3,new Error("SDK initialization timed out."))};var r=n.extend("initializeHelper");function o(t){return new Promise((function(n){p.initializeCalled||(p.initializeCalled=!0,je(),p.initializePromise=lt(t).then((function(t){var n=t.context,o=t.clientType,i=t.runtimeConfig,a=t.clientSupportedSDKVersion,s=void 0===a?e:a;p.frameContext=n,p.hostClientType=o,p.clientSupportedSDKVersion=s;try{r("Parsing %s",i);var c=JSON.parse(i);if(r("Checking if %o is a valid runtime object",null!=c?c:"null"),!c||!c.apiVersion)throw new Error("Received runtime config is invalid");i&&Te(c)}catch(t){if(!(t instanceof SyntaxError))throw t;try{r("Attempting to parse %s as an SDK version",i),isNaN(J(i,e))||(p.clientSupportedSDKVersion=i);c=JSON.parse(s);if(r("givenRuntimeConfig parsed to %o",null!=c?c:"null"),!c)throw new Error("givenRuntimeConfig string was successfully parsed. However, it parsed to value of null");Te(c)}catch(e){if(!(e instanceof SyntaxError))throw e;Te(Se(p.clientSupportedSDKVersion,he,Ce))}}p.initializeCompleted=!0})),Ie.initialize(),Fe.initialize(),ke.config.initialize(),Pe.initialize()),Array.isArray(t)&&Ve(t),n(p.initializePromise)}))}t._initialize=function(e){ct.currentWindow=e},t._uninitialize=function(){p.initializeCalled&&(Ge(),p.initializeCalled=!1,p.initializeCompleted=!1,p.initializePromise=null,p.additionalValidOrigins=[],p.frameContext=null,p.hostClientType=null,p.isFramelessWindow=!1,dt())},t.getContext=function(){return new Promise((function(e){Ue(),e(ft("getContext"))})).then((function(e){return We(e)}))},t.notifyAppLoaded=function(){Ue(),vt(t.Messages.AppLoaded,[Re])},t.notifySuccess=function(){Ue(),vt(t.Messages.Success,[Re])},t.notifyFailure=function(e){Ue(),vt(t.Messages.Failure,[e.reason,e.message])},t.notifyExpectedFailure=function(e){Ue(),vt(t.Messages.ExpectedFailure,[e.reason,e.message])},t.registerOnThemeChangeHandler=function(e){e&&Ue(),$e(e)},t.openLink=function(e){return new Promise((function(t){Ne(me,A.content,A.sidePanel,A.settings,A.task,A.stage,A.meetingStage),t(pt("executeDeepLink",e))}))},function(e){function t(){var e;return Ne(me)&&!!(null===(e=me.supports.app)||void 0===e?void 0:e.lifecycle)}e.registerBeforeSuspendOrTerminateHandler=function(e){if(!e)throw new Error("[app.lifecycle.registerBeforeSuspendOrTerminateHandler] Handler cannot be null");if(!t())throw H;ot(e)},e.registerOnResumeHandler=function(e){if(!e)throw new Error("[app.lifecycle.registerOnResumeHandler] Handler cannot be null");if(!t())throw H;it(e)},e.isSupported=t}(t.lifecycle||(t.lifecycle={}))}(Oe||(Oe={})),function(e){function t(e){if(Ne(me,A.content),!n())throw H;vt("setFrameContext",[e])}function n(){return!(!Ne(me)||!me.supports.pages)}e.returnFocus=function(e){if(Ne(me),!n())throw H;vt("returnFocus",[e])},e.registerFocusEnterHandler=function(e){Qe("focusEnter",e,[],(function(){if(!n())throw H}))},e.setCurrentFrame=t,e.initializeWithFrameContext=function(e,n,r){Oe.initialize(r).then((function(){return n&&n()})),t(e)},e.getConfig=function(){return new Promise((function(e){if(Ne(me,A.content,A.settings,A.remove,A.sidePanel),!n())throw H;e(ft("settings.getSettings"))}))},e.navigateCrossDomain=function(e){return new Promise((function(t){if(Ne(me,A.content,A.sidePanel,A.settings,A.remove,A.task,A.stage,A.meetingStage),!n())throw H;t(mt("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(t){if(Ne(me,A.content,A.sidePanel,A.settings,A.task,A.stage,A.meetingStage),!n())throw H;me.isLegacyTeams?t(pt("executeDeepLink",ee(e))):t(pt("pages.navigateToApp",e))}))},e.shareDeepLink=function(e){if(Ne(me,A.content,A.sidePanel,A.meetingStage),!n())throw H;vt("shareDeepLink",[e.subPageId,e.subPageLabel,e.subPageWebUrl])},e.registerFullScreenHandler=function(e){Qe("fullScreenChange",e,[],(function(){if(e&&!n())throw H}))},e.isSupported=n,function(e){function t(){return!(!Ne(me)||!me.supports.pages)&&!!me.supports.pages.tabs}e.navigateToTab=function(e){return new Promise((function(n){if(Ne(me),!t())throw H;n(mt("navigateToTab","Invalid internalTabInstanceId and/or channelId were/was provided",e))}))},e.getTabInstances=function(e){return new Promise((function(n){if(Ne(me),!t())throw H;n(ft("getTabInstances",e))}))},e.getMruTabInstances=function(e){return new Promise((function(n){if(Ne(me),!t())throw H;n(ft("getMruTabInstances",e))}))},e.isSupported=t}(e.tabs||(e.tabs={})),function(e){var t,n;function r(e,n){e&&Ne(me,A.settings),n&&n(),t=e,e&&vt("registerHandler",["save"])}function o(e,t){e&&Ne(me,A.remove,A.settings),t&&t(),n=e,e&&vt("registerHandler",["remove"])}function i(e){var n=new a(e);t?t(n):ct.childWindow?_t("settings.save",[e]):n.notifySuccess()}e.initialize=function(){Ke("settings.save",i,!1),Ke("settings.remove",s,!1)},e.setValidityState=function(e){if(Ne(me,A.settings,A.remove),!u())throw H;vt("settings.setValidityState",[e])},e.setConfig=function(e){return new Promise((function(t){if(Ne(me,A.content,A.settings,A.sidePanel),!u())throw H;t(pt("settings.setSettings",e))}))},e.registerOnSaveHandler=function(e){r(e,(function(){if(e&&!u())throw H}))},e.registerOnSaveHandlerHelper=r,e.registerOnRemoveHandler=function(e){o(e,(function(){if(e&&!u())throw H}))},e.registerOnRemoveHandlerHelper=o,e.registerChangeConfigHandler=function(e){Qe("changeSettings",e,[A.content],(function(){if(!u())throw H}))};var a=function(){function e(e){this.notified=!1,this.result=e||{}}return e.prototype.notifySuccess=function(){this.ensureNotNotified(),vt("settings.save.success"),this.notified=!0},e.prototype.notifyFailure=function(e){this.ensureNotNotified(),vt("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 c;n?n(e):ct.childWindow?_t("settings.remove",[]):e.notifySuccess()}var c=function(){function e(){this.notified=!1}return e.prototype.notifySuccess=function(){this.ensureNotNotified(),vt("settings.remove.success"),this.notified=!0},e.prototype.notifyFailure=function(e){this.ensureNotNotified(),vt("settings.remove.failure",[e]),this.notified=!0},e.prototype.ensureNotNotified=function(){if(this.notified)throw new Error("The removeEventType may only notify success or failure once.")},e}();function u(){return!(!Ne(me)||!me.supports.pages)&&!!me.supports.pages.config}e.isSupported=u}(e.config||(e.config={})),function(e){var t;function n(){return new Promise((function(e){if(Ne(me),!i())throw H;e(mt("navigateBack","Back navigation is not supported in the current client or context."))}))}function r(e,n){e&&Ne(me),n&&n(),t=e,e&&vt("registerHandler",["backButton"])}function o(){t&&t()||(ct.childWindow?_t("backButtonPress",[]):n())}function i(){return!(!Ne(me)||!me.supports.pages)&&!!me.supports.pages.backStack}e._initialize=function(){Ke("backButtonPress",o,!1)},e.navigateBack=n,e.registerBackButtonHandler=function(e){r(e,(function(){if(e&&!i())throw H}))},e.registerBackButtonHandlerHelper=r,e.isSupported=i}(e.backStack||(e.backStack={})),function(e){function t(){return!(!Ne(me)||!me.supports.pages)&&!!me.supports.pages.fullTrust}e.enterFullscreen=function(){if(Ne(me,A.content),!t())throw H;vt("enterFullscreen",[])},e.exitFullscreen=function(){if(Ne(me,A.content),!t())throw H;vt("exitFullscreen",[])},e.isSupported=t}(e.fullTrust||(e.fullTrust={})),function(e){function t(){return!(!Ne(me)||!me.supports.pages)&&!!me.supports.pages.appButton}e.onClick=function(e){Qe("appButtonClick",e,[A.content],(function(){if(!t())throw H}))},e.onHoverEnter=function(e){Qe("appButtonHoverEnter",e,[A.content],(function(){if(!t())throw H}))},e.onHoverLeave=function(e){Qe("appButtonHoverLeave",e,[A.content],(function(){if(!t())throw H}))},e.isSupported=t}(e.appButton||(e.appButton={})),function(e){function t(){return!(!Ne(me)||!me.supports.pages)&&!!me.supports.pages.currentApp}e.navigateTo=function(e){return new Promise((function(n){if(Ne(me,A.content,A.sidePanel,A.settings,A.task,A.stage,A.meetingStage),!t())throw H;n(ht("pages.currentApp.navigateTo",e))}))},e.navigateToDefaultPage=function(){return new Promise((function(e){if(Ne(me,A.content,A.sidePanel,A.settings,A.task,A.stage,A.meetingStage),!t())throw H;e(ht("pages.currentApp.navigateToDefaultPage"))}))},e.isSupported=t}(e.currentApp||(e.currentApp={}))}(ke||(ke={}));var _e=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},Be=h("handlers"),ze=function(){function e(){}return e.initializeHandlers=function(){e.handlers.themeChange=Ye,e.handlers.load=tt,e.handlers.beforeUnload=rt,ke.backStack._initialize()},e.uninitializeHandlers=function(){e.handlers={},e.themeChangeHandler=null,e.loadHandler=null,e.beforeUnloadHandler=null,e.beforeSuspendOrTerminateHandler=null,e.resumeHandler=null},e.handlers={},e}();function je(){ze.initializeHandlers()}function Ge(){ze.uninitializeHandlers()}var qe=Be.extend("callHandler");function Je(e,t){var n=ze.handlers[e];return n?(qe("Invoking the registered handler for message %s with arguments %o",e,t),[!0,n.apply(this,t)]):ct.childWindow?(_t(e,t),[!1,void 0]):(qe("Handler for action message %s not found.",e),[!1,void 0])}function Ke(e,t,n,r){void 0===n&&(n=!0),void 0===r&&(r=[]),t?(ze.handlers[e]=t,n&&vt("registerHandler",_e([e],r,!0))):delete ze.handlers[e]}function Ze(e){delete ze.handlers[e]}function Xe(e){return null!=ze.handlers[e]}function Qe(e,t,n,r){t&&Ne.apply(void 0,_e([me],n,!1)),r&&r(),Ke(e,t)}function $e(e){ze.themeChangeHandler=e,e&&vt("registerHandler",["themeChange"])}function Ye(e){ze.themeChangeHandler&&ze.themeChangeHandler(e),ct.childWindow&&_t("themeChange",[e])}function et(e){ze.loadHandler=e,e&&vt("registerHandler",["load"])}function tt(e){ze.resumeHandler?ze.resumeHandler(e):ze.loadHandler&&ze.loadHandler(e),ct.childWindow&&_t("load",[e])}function nt(e){ze.beforeUnloadHandler=e,e&&vt("registerHandler",["beforeUnload"])}function rt(){var e=function(){vt("readyToUnload",[])};ze.beforeSuspendOrTerminateHandler?(ze.beforeSuspendOrTerminateHandler(),ct.childWindow?_t("beforeUnload"):e()):ze.beforeUnloadHandler&&ze.beforeUnloadHandler(e)||(ct.childWindow?_t("beforeUnload"):e())}function ot(e){ze.beforeSuspendOrTerminateHandler=e,e&&vt("registerHandler",["beforeUnload"])}function it(e){ze.resumeHandler=e,e&&vt("registerHandler",["load"])}var at=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},st=h("communication"),ct=function(){return function(){}}(),ut=function(){function e(){}return e.parentMessageQueue=[],e.childMessageQueue=[],e.nextMessageId=0,e.callbacks={},e.promiseCallbacks={},e}();function lt(e){if(ut.messageListener=function(e){return St(e)},ct.currentWindow=ct.currentWindow||ie(),ct.parentWindow=ct.currentWindow.parent!==ct.currentWindow.self?ct.currentWindow.parent:ct.currentWindow.opener,(ct.parentWindow||e)&&ct.currentWindow.addEventListener("message",ut.messageListener,!1),!ct.parentWindow){var t=ct.currentWindow;if(!t.nativeInterface)return Promise.reject(new Error("Initialization Failed. No Parent window found."));p.isFramelessWindow=!0,t.onNativeMessage=Ft}try{return ct.parentOrigin="*",gt("initialize",[Re,le]).then((function(e){return{context:e[0],clientType:e[1],runtimeConfig:e[2],clientSupportedSDKVersion:e[3]}}))}finally{ct.parentOrigin=null}}function dt(){ct.currentWindow&&ct.currentWindow.removeEventListener("message",ut.messageListener,!1),ct.currentWindow=null,ct.parentWindow=null,ct.parentOrigin=null,ct.childWindow=null,ct.childOrigin=null,ut.parentMessageQueue=[],ut.childMessageQueue=[],ut.nextMessageId=0,ut.callbacks={},ut.promiseCallbacks={}}function ft(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return gt(e,t).then((function(e){return e[0]}))}function pt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return gt(e,t).then((function(e){var t=e[0],n=e[1];if(!t)throw new Error(n)}))}function mt(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return gt(e,n).then((function(e){var n=e[0],r=e[1];if(!n)throw new Error(r||t)}))}function ht(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return gt(e,t).then((function(e){var t=e[0],n=e[1];if(t)throw t;return n}))}function gt(e,t){return void 0===t&&(t=void 0),new Promise((function(n){n(wt(yt(e,t).id))}))}function wt(e){return new Promise((function(t){ut.promiseCallbacks[e]=t}))}function vt(e,t,n){var r;t instanceof Function?n=t:t instanceof Array&&(r=t);var o=yt(e,r);n&&(ut.callbacks[o.id]=n)}var Ct=st.extend("sendMessageToParentHelper");function yt(e,t){var n=Ct,r=ct.parentWindow,o=Bt(e,t);if(n("Message %i information: %o",o.id,{actionName:e,args:t}),p.isFramelessWindow)ct.currentWindow&&ct.currentWindow.nativeInterface&&(n("Sending message %i to parent via framelessPostMessage interface",o.id),ct.currentWindow.nativeInterface.framelessPostMessage(JSON.stringify(o)));else{var i=At(r);r&&i?(n("Sending message %i to parent via postMessage",o.id),r.postMessage(o,i)):(n("Adding message %i to parent message queue",o.id),Rt(r).push(o))}return o}var bt=st.extend("processMessage");function St(e){if(e&&e.data&&"object"==typeof e.data){var t=e.source||e.originalEvent&&e.originalEvent.source,n=e.origin||e.originalEvent&&e.originalEvent.origin;Tt(t,n)?(It(t,n),t===ct.parentWindow?Ft(e):t===ct.childWindow&&kt(e)):bt("Message being ignored by app because it is either coming from the current window or a different window with an invalid origin")}else bt("Unrecognized message format received by app, message being ignored. Message: %o",e)}var Et=st.extend("shouldProcessMessage");function Tt(e,t){if(ct.currentWindow&&e===ct.currentWindow)return Et("Should not process message because it is coming from the current window"),!1;if(ct.currentWindow&&ct.currentWindow.location&&t&&t===ct.currentWindow.location.origin)return!0;var n=G(new URL(t));return n||Et("Message has an invalid origin of %s",t),n}function It(e,t){p.isFramelessWindow||ct.parentWindow&&!ct.parentWindow.closed&&e!==ct.parentWindow?ct.childWindow&&!ct.childWindow.closed&&e!==ct.childWindow||(ct.childWindow=e,ct.childOrigin=t):(ct.parentWindow=e,ct.parentOrigin=t),ct.parentWindow&&ct.parentWindow.closed&&(ct.parentWindow=null,ct.parentOrigin=null),ct.childWindow&&ct.childWindow.closed&&(ct.childWindow=null,ct.childOrigin=null),xt(ct.parentWindow),xt(ct.childWindow)}var Pt=st.extend("handleParentMessage");function Ft(e){var t=Pt;if("id"in e.data&&"number"==typeof e.data.id){var n=e.data,r=ut.callbacks[n.id];t("Received a response from parent for message %i",n.id),r&&(t("Invoking the registered callback for message %i with arguments %o",n.id,n.args),r.apply(null,at(at([],n.args,!0),[n.isPartialResponse],!1)),Ot(e)||(t("Removing registered callback for message %i",n.id),delete ut.callbacks[n.id]));var o=ut.promiseCallbacks[n.id];o&&(t("Invoking the registered promise callback for message %i with arguments %o",n.id,n.args),o(n.args),t("Removing registered promise callback for message %i",n.id),delete ut.promiseCallbacks[n.id])}else if("func"in e.data&&"string"==typeof e.data.func){t("Received an action message %s from parent",(n=e.data).func),Je(n.func,n.args)}else t("Received an unknown message: %O",e)}function Ot(e){return!0===e.data.isPartialResponse}function kt(e){if("id"in e.data&&"func"in e.data){var t=e.data,n=Je(t.func,t.args),r=n[0],o=n[1];r&&void 0!==o?Wt(t.id,Array.isArray(o)?o:[o]):vt(t.func,t.args,(function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(ct.childWindow){var r=e.pop();Wt(t.id,e,r)}}))}}function Rt(e){return e===ct.parentWindow?ut.parentMessageQueue:e===ct.childWindow?ut.childMessageQueue:[]}function At(e){return e===ct.parentWindow?ct.parentOrigin:e===ct.childWindow?ct.childOrigin:null}var Mt,Dt,Ut,Nt,Lt,Ht=st.extend("flushMessageQueue");function xt(e){for(var t=At(e),n=Rt(e),r=e==ct.parentWindow?"parent":"child";e&&t&&n.length>0;){var o=n.shift();Ht("Flushing message %i from "+r+" message queue via postMessage.",o.id),e.postMessage(o,t)}}function Vt(e,t){var n=ct.currentWindow.setInterval((function(){0===Rt(e).length&&(clearInterval(n),t())}),100)}function Wt(e,t,n){var r=ct.childWindow,o=zt(e,t,n),i=At(r);r&&i&&r.postMessage(o,i)}function _t(e,t){var n=ct.childWindow,r=jt(e,t),o=At(n);n&&o?n.postMessage(r,o):Rt(n).push(r)}function Bt(e,t){return{id:ut.nextMessageId++,func:e,timestamp:Date.now(),args:t||[]}}function zt(e,t,n){return{id:e,args:t||[],isPartialResponse:n}}function jt(e,t){return{func:e,args:t||[]}}function Gt(e,t){Ne(me),vt("uploadCustomApp",[e],t||q())}function qt(e,t,n){Ne(me),vt(e,t,n)}function Jt(e,t){if(Ne(me),!ct.childWindow)throw new Error("The child window has not yet been initialized or is not present");_t(e,t)}function Kt(e,t){var n=this;Ne(me),Ke(e,(function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return t.apply(n,e)}))}function Zt(e,t){Ne(me),Ke("userSettingsChange",t,!0,[e])}function Xt(e){Ne(me,A.content,A.task),vt("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 t(){return!(!Ne(me)||!me.supports.logs)}e.registerGetLogHandler=function(e){if(e&&Ne(me),e&&!t())throw H;e?Ke("log.request",(function(){vt("log.receive",[e()])})):Ze("log.request")},e.isSupported=t}(Mt||(Mt={})),function(e){e.fileDownloadStart="fileDownloadStart",e.fileDownloadComplete="fileDownloadComplete"}(Dt||(Dt={})),function(e){e.view="view",e.edit="edit",e.editNew="editNew"}(Ut||(Ut={})),function(e){e.fileOpenPreference="fileOpenPreference",e.theme="theme"}(Nt||(Nt={})),function(e){function t(){return!(!Ne(me)||!me.supports.conversations)}e.openConversation=function(e){return new Promise((function(n){if(Ne(me,A.content),!t())throw H;var r=pt("conversations.openConversation",{title:e.title,subEntityId:e.subEntityId,conversationId:e.conversationId,channelId:e.channelId,entityId:e.entityId});e.onStartConversation&&Ke("startConversation",(function(t,n,r,o){return e.onStartConversation({subEntityId:t,conversationId:n,channelId:r,entityId:o})})),e.onCloseConversation&&Ke("closeConversation",(function(t,n,r,o){return e.onCloseConversation({subEntityId:t,conversationId:n,channelId:r,entityId:o})})),n(r)}))},e.closeConversation=function(){if(Ne(me,A.content),!t())throw H;vt("conversations.closeConversation"),Ze("startConversation"),Ze("closeConversation")},e.getChatMembers=function(){return new Promise((function(e){if(Ne(me),!t())throw H;e(ft("getChatMembers"))}))},e.isSupported=t}(Lt||(Lt={}));var Qt,$t="users";function Yt(e,t,n){if(0===e.length)throw new Error("Must have at least one user when creating a chat deep link");var r="".concat($t,"=")+e.map((function(e){return encodeURIComponent(e)})).join(","),o=void 0===t?"":"&".concat("topicName","=").concat(encodeURIComponent(t)),i=void 0===n?"":"&".concat("message","=").concat(encodeURIComponent(n));return"".concat(c,"://").concat(u).concat("/l/chat/0/0","?").concat(r).concat(o).concat(i)}function en(e,t,n){if(0===e.length)throw new Error("Must have at least one target when creating a call deep link");var r="".concat($t,"=")+e.map((function(e){return encodeURIComponent(e)})).join(","),o=void 0===t?"":"&".concat("withVideo","=").concat(encodeURIComponent(t)),i=void 0===n?"":"&".concat("source","=").concat(encodeURIComponent(n));return"".concat(c,"://").concat(u).concat("/l/call/0/0","?").concat(r).concat(o).concat(i)}function tn(e,t,n,r,o){var i=void 0===e?"":"".concat("attendees","=")+e.map((function(e){return encodeURIComponent(e)})).join(","),a=void 0===t?"":"&".concat("startTime","=").concat(encodeURIComponent(t)),s=void 0===n?"":"&".concat("endTime","=").concat(encodeURIComponent(n)),l=void 0===r?"":"&".concat("subject","=").concat(encodeURIComponent(r)),d=void 0===o?"":"&".concat("content","=").concat(encodeURIComponent(o));return"".concat(c,"://").concat(u).concat("/l/meeting/new","?").concat(i).concat(a).concat(s).concat(l).concat(d)}function nn(e){if(!e)throw new Error("App ID must be set when creating an app install dialog deep link");return"".concat(c,"://").concat(u).concat("/l/app/").concat(encodeURIComponent(e))}!function(e){function t(){return!(!Ne(me)||!me.supports.appInstallDialog)}e.openAppInstallDialog=function(e){return new Promise((function(n){if(Ne(me,A.content,A.sidePanel,A.settings,A.task,A.stage,A.meetingStage),!t())throw new Error("Not supported");me.isLegacyTeams?n(pt("executeDeepLink",nn(e.appId))):(vt("appInstallDialog.openAppInstallDialog",[e]),n())}))},e.isSupported=t}(Qt||(Qt={}));var rn,on,an,sn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function cn(e,t){if(null==e||null==t||e.length<=0)return null;var n,r=1;return e.sort((function(e,t){return e.sequence>t.sequence?1:-1})),e.forEach((function(e){e.sequence==r&&(n=n?new Blob([n,e.file],{type:t}):new Blob([e.file],{type:t}),r++)})),n}function un(e,t){if(null==e||null==t)return null;for(var n=atob(e.chunk),r=new Array(n.length),o=0;o<n.length;o++)r[o]=n.charCodeAt(o);var i=new Uint8Array(r),a=new Blob([i],{type:t});return{sequence:e.chunkSequence,file:a}}function ln(e){mn(e)?xe("2.0.2"):hn(e)?xe(t):pn(e)&&xe("2.0.4")}function dn(e){return!(e.mediaType!=rn.MediaType.Video||!e.videoProps||!e.videoProps.videoController)}function fn(e){return!(null==e||e.maxMediaCount>10)}function pn(e){var t;return!((null==e?void 0:e.mediaType)!=rn.MediaType.Image||!(null===(t=null==e?void 0:e.imageProps)||void 0===t?void 0:t.imageOutputFormats))}function mn(e){return!(!e||e.mediaType!=rn.MediaType.VideoAndImage&&!e.videoAndImageProps)}function hn(e){return!(!e||e.mediaType!=rn.MediaType.Video||!e.videoProps||e.videoProps.isFullScreenMode)}function gn(e,t,n){return null!=e&&null!=t&&t==rn.FileFormat.ID&&null!=n}function wn(e){return!(null==e||e.length<=0||e.length>10)}function vn(e){return!e||!(null===e.timeOutIntervalInSec||e.timeOutIntervalInSec<=0||e.timeOutIntervalInSec>60)}function Cn(e){if(e){if(e.title&&"string"!=typeof e.title)return!1;if(e.setSelected&&"object"!=typeof e.setSelected)return!1;if(e.openOrgWideSearchInChatOrChannel&&"boolean"!=typeof e.openOrgWideSearchInChatOrChannel)return!1;if(e.singleSelect&&"boolean"!=typeof e.singleSelect)return!1}return!0}!function(e){!function(e){e.Base64="base64",e.ID="id"}(e.FileFormat||(e.FileFormat={}));var n=function(){return function(){}}();function r(){return!(!Ne(me)||!me.supports.permissions)}e.File=n,e.captureImage=function(e){if(!e)throw new Error("[captureImage] Callback cannot be null");Ne(me,A.content,A.task),p.isFramelessWindow?Le("1.7.0")?vt("captureImage",e):e({errorCode:P.OLD_PLATFORM},void 0):e({errorCode:P.NOT_SUPPORTED_ON_PLATFORM},void 0)},e.hasPermission=function(){if(Ne(me,A.content,A.task),!r())throw H;var e=F.Media;return new Promise((function(t){t(ht("permissions.has",e))}))},e.requestPermission=function(){if(Ne(me,A.content,A.task),!r())throw H;var e=F.Media;return new Promise((function(t){t(ht("permissions.request",e))}))};var o=function(e){function t(t){void 0===t&&(t=null);var n=e.call(this)||this;return t&&(n.content=t.content,n.format=t.format,n.mimeType=t.mimeType,n.name=t.name,n.preview=t.preview,n.size=t.size),n}return sn(t,e),t.prototype.getMedia=function(e){if(!e)throw new Error("[get Media] Callback cannot be null");(Ne(me,A.content,A.task),Le(i))?gn(this.mimeType,this.format,this.content)?Le("2.0.0")?this.getMediaViaCallback(e):this.getMediaViaHandler(e):e({errorCode:P.INVALID_ARGUMENTS},null):e({errorCode:P.OLD_PLATFORM},null)},t.prototype.getMediaViaCallback=function(e){var t={mediaMimeType:this.mimeType,assembleAttachment:[]};vt("getMedia",[this.content],(function(n){if(e)if(n&&n.error)e(n.error,null);else if(n&&n.mediaChunk)if(n.mediaChunk.chunkSequence<=0){var r=cn(t.assembleAttachment,t.mediaMimeType);e(n.error,r)}else{var o=un(n.mediaChunk,t.mediaMimeType);t.assembleAttachment.push(o)}else e({errorCode:P.INTERNAL_ERROR,message:"data received is null"},null)}))},t.prototype.getMediaViaHandler=function(e){var t=K(),n={mediaMimeType:this.mimeType,assembleAttachment:[]},r=[t,this.content];this.content&&e&&vt("getMedia",r),Ke("getMedia"+t,(function(r){if(e){var o=JSON.parse(r);if(o.error)e(o.error,null),Ze("getMedia"+t);else if(o.mediaChunk)if(o.mediaChunk.chunkSequence<=0){var i=cn(n.assembleAttachment,n.mediaMimeType);e(o.error,i),Ze("getMedia"+t)}else{var a=un(o.mediaChunk,n.mediaMimeType);n.assembleAttachment.push(a)}else e({errorCode:P.INTERNAL_ERROR,message:"data received is null"},null),Ze("getMedia"+t)}}))},t}(n);e.Media=o;var a,s,c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return sn(t,e),t.prototype.getMediaType=function(){return s.Video},t.prototype.notifyEventToApp=function(e){if(this.controllerCallback)switch(e){case a.StartRecording:if(this.controllerCallback.onRecordingStarted){this.controllerCallback.onRecordingStarted();break}}},t}(function(){function e(e){this.controllerCallback=e}return e.prototype.notifyEventToHost=function(e,n){Ne(me,A.content,A.task);try{xe(t)}catch(e){return void(n&&n(e))}vt("media.controller",[{mediaType:this.getMediaType(),mediaControllerEvent:e}],(function(e){n&&n(e)}))},e.prototype.stop=function(e){this.notifyEventToHost(a.StopRecording,e)},e}());e.VideoController=c,function(e){e[e.StartRecording=1]="StartRecording",e[e.StopRecording=2]="StopRecording"}(a=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"}(s=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,t){if(!t)throw new Error("[select Media] Callback cannot be null");if(Ne(me,A.content,A.task),Le(i)){try{ln(e)}catch(e){return void t(e,null)}if(fn(e)){vt("selectMedia",[e],(function(n,r,i){if(i)dn(e)&&e.videoProps.videoController.notifyEventToApp(i);else if(r){for(var a=[],s=0,c=r;s<c.length;s++){var u=c[s];a.push(new o(u))}t(n,a)}else t(n,null)}))}else{var n={errorCode:P.INVALID_ARGUMENTS};t(n,null)}}else{var r={errorCode:P.OLD_PLATFORM};t(r,null)}},e.viewImages=function(e,t){if(!t)throw new Error("[view images] Callback cannot be null");Ne(me,A.content,A.task),Le(i)?wn(e)?vt("viewImages",[e],t):t({errorCode:P.INVALID_ARGUMENTS}):t({errorCode:P.OLD_PLATFORM})},e.scanBarCode=function(e,t){if(!e)throw new Error("[media.scanBarCode] Callback cannot be null");Ne(me,A.content,A.task),p.hostClientType!==k.desktop&&p.hostClientType!==k.web&&p.hostClientType!==k.rigel&&p.hostClientType!==k.teamsRoomsWindows&&p.hostClientType!==k.teamsRoomsAndroid&&p.hostClientType!==k.teamsPhones&&p.hostClientType!==k.teamsDisplays?Le("1.9.0")?vn(t)?vt("media.scanBarCode",[t],e):e({errorCode:P.INVALID_ARGUMENTS},null):e({errorCode:P.OLD_PLATFORM},null):e({errorCode:P.NOT_SUPPORTED_ON_PLATFORM},null)}}(rn||(rn={})),function(e){function t(){return!!(Ne(me)&&me.supports.barCode&&me.supports.permissions)}e.scanBarCode=function(e){return new Promise((function(n){if(Ne(me,A.content,A.task),!t())throw H;if(!vn(e))throw{errorCode:P.INVALID_ARGUMENTS};n(ht("media.scanBarCode",e))}))},e.hasPermission=function(){if(Ne(me,A.content,A.task),!t())throw H;var e=F.Media;return new Promise((function(t){t(ht("permissions.has",e))}))},e.requestPermission=function(){if(Ne(me,A.content,A.task),!t())throw H;var e=F.Media;return new Promise((function(t){t(ht("permissions.request",e))}))},e.isSupported=t}(on||(on={})),function(e){function t(e){return new Promise((function(t){if(Ne(me,A.content,A.task),!n())throw H;me.isLegacyTeams?t(pt("executeDeepLink",Yt([e.user],void 0,e.message))):t(pt("chat.openChat",{members:e.user,message:e.message}))}))}function n(){return!(!Ne(me)||!me.supports.chat)}e.openChat=t,e.openGroupChat=function(e){return new Promise((function(r){if(e.users.length<1)throw Error("OpenGroupChat Failed: No users specified");if(1===e.users.length){t({user:e.users[0],message:e.message})}else{if(Ne(me,A.content,A.task),!n())throw H;if(me.isLegacyTeams)r(pt("executeDeepLink",Yt(e.users,e.topic,e.message)));else r(pt("chat.openChat",{members:e.users,message:e.message,topic:e.topic}))}}))},e.isSupported=n}(an||(an={}));var yn,bn,Sn=function(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())}))},En=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return c([e,t])}}function c(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}};function Tn(){return me.hostVersionsInfo?me.hostVersionsInfo.adaptiveCardSchemaVersion:void 0}!function(e){function t(){return!!(Ne(me)&&navigator&&navigator.clipboard&&me.supports.clipboard)}e.write=function(e){return Sn(this,void 0,void 0,(function(){var n;return En(this,(function(r){switch(r.label){case 0:if(Ne(me,A.content,A.task,A.stage,A.sidePanel),!t())throw H;if(!e.type||!Object.values(O).includes(e.type))throw new Error("Blob type ".concat(e.type," is not supported. Supported blob types are ").concat(Object.values(O)));return[4,oe(e)];case 1:return n=r.sent(),[2,ht("clipboard.writeToClipboard",{mimeType:e.type,content:n})]}}))}))},e.read=function(){return Sn(this,void 0,void 0,(function(){var e,n,r;return En(this,(function(o){switch(o.label){case 0:if(Ne(me,A.content,A.task,A.stage,A.sidePanel),!t())throw H;return He()||p.hostClientType===k.macos?(r=(n=JSON).parse,[4,ht("clipboard.readFromClipboard")]):[3,2];case 1:return[2,re((e=r.apply(n,[o.sent()])).mimeType,e.content)];case 2:return[2,ht("clipboard.readFromClipboard")]}}))}))},e.isSupported=t}(yn||(yn={})),function(e){function t(){return!!(Ne(me)&&me.supports.geoLocation&&me.supports.permissions)}e.getCurrentLocation=function(){if(Ne(me,A.content,A.task),!t())throw H;return ht("location.getLocation",{allowChooseLocation:!1,showMap:!1})},e.hasPermission=function(){if(Ne(me,A.content,A.task),!t())throw H;var e=F.GeoLocation;return new Promise((function(t){t(ht("permissions.has",e))}))},e.requestPermission=function(){if(Ne(me,A.content,A.task),!t())throw H;var e=F.GeoLocation;return new Promise((function(t){t(ht("permissions.request",e))}))},e.isSupported=t,function(e){function t(){return!!(Ne(me)&&me.supports.geoLocation&&me.supports.geoLocation.map&&me.supports.permissions)}e.chooseLocation=function(){if(Ne(me,A.content,A.task),!t())throw H;return ht("location.getLocation",{allowChooseLocation:!0,showMap:!0})},e.showLocation=function(e){if(Ne(me,A.content,A.task),!t())throw H;if(!e)throw{errorCode:P.INVALID_ARGUMENTS};return ht("location.showLocation",e)},e.isSupported=t}(e.map||(e.map={}))}(bn||(bn={}));var In,Pn,Fn=function(){function e(){}return e.prototype.postMessage=function(e,t){Ne(me),vt("messageForChild",[e],t||q())},e.prototype.addEventListener=function(e,t){Ne(me),"message"===e&&Ke("messageForParent",t)},e}(),On=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,t){Ne(me,A.task),vt("messageForParent",[e],t||q())},e.prototype.addEventListener=function(e,t){Ne(me,A.task),"message"===e&&Ke("messageForChild",t)},e}();!function(e){function t(){return!(!Ne(me)||!me.supports.secondaryBrowser)}e.open=function(e){if(Ne(me,A.content),!t())throw H;if(!e||!ne(e))throw{errorCode:P.INVALID_ARGUMENTS,message:"Invalid Url: Only https URL is allowed"};return ht("secondaryBrowser.open",e.toString())},e.isSupported=t}(In||(In={})),function(e){function t(){return!(!Ne(me)||!me.supports.location)}e.getLocation=function(e,n){if(!n)throw new Error("[location.getLocation] Callback cannot be null");if(Ne(me,A.content,A.task),!Le(o))throw{errorCode:P.OLD_PLATFORM};if(!e)throw{errorCode:P.INVALID_ARGUMENTS};if(!t())throw H;vt("location.getLocation",[e],n)},e.showLocation=function(e,n){if(!n)throw new Error("[location.showLocation] Callback cannot be null");if(Ne(me,A.content,A.task),!Le(o))throw{errorCode:P.OLD_PLATFORM};if(!e)throw{errorCode:P.INVALID_ARGUMENTS};if(!t())throw H;vt("location.showLocation",[e],n)},e.isSupported=t}(Pn||(Pn={}));var kn,Rn,An,Mn,Dn,Un,Nn,Ln=function(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())}))},Hn=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return c([e,t])}}function c(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}};function xn(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?Vn(e.persona):[!1,"triggerType must be a valid string"]:[!1,"targetElementBoundingRect must be a DOMRect"]:[!1,"A request object is required"]}function Vn(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(e){var t;function n(e,n){var r=this;vt("meeting.requestAppAudioHandling",[e.isAppHandlingAudio],(function(i,a){if(i&&null!=a)throw new Error("[requestAppAudioHandling] Callback response - both parameters cannot be set");if(i)throw new Error("[requestAppAudioHandling] Callback response - SDK error ".concat(i.errorCode," ").concat(i.message));if("boolean"!=typeof a)throw new Error("[requestAppAudioHandling] Callback response - isHostAudioless must be a boolean");Ke("meeting.micStateChanged",(function(n){return Ln(r,void 0,void 0,(function(){var r,i;return Hn(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,e.micMuteStateChangedCallback(n)];case 1:return r=a.sent(),i=r.isMicMuted===n.isMicMuted,o(r,i?t.HostInitiated:t.AppDeclinedToChange),[3,3];case 2:return a.sent(),o(n,t.AppFailedToChange),[3,3];case 3:return[2]}}))}))})),n(a)}))}function r(e,t){vt("meeting.requestAppAudioHandling",[e.isAppHandlingAudio],(function(e,n){if(e&&null!=n)throw new Error("[requestAppAudioHandling] Callback response - both parameters cannot be set");if(e)throw new Error("[requestAppAudioHandling] Callback response - SDK error ".concat(e.errorCode," ").concat(e.message));if("boolean"!=typeof n)throw new Error("[requestAppAudioHandling] Callback response - isHostAudioless must be a boolean");Xe("meeting.micStateChanged")&&Ze("meeting.micStateChanged"),t(n)}))}function o(e,t){Ne(me,A.sidePanel,A.meetingStage),vt("meeting.updateMicState",[e,t])}!function(e){e[e.HostInitiated=0]="HostInitiated",e[e.AppInitiated=1]="AppInitiated",e[e.AppDeclinedToChange=2]="AppDeclinedToChange",e[e.AppFailedToChange=3]="AppFailedToChange"}(t||(t={})),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");Ne(me,A.sidePanel,A.meetingStage),vt("getIncomingClientAudioState",e)},e.toggleIncomingClientAudio=function(e){if(!e)throw new Error("[toggle incoming client audio] Callback cannot be null");Ne(me,A.sidePanel,A.meetingStage),vt("toggleIncomingClientAudio",e)},e.getMeetingDetails=function(e){if(!e)throw new Error("[get meeting details] Callback cannot be null");Ne(me,A.sidePanel,A.meetingStage,A.settings,A.content),vt("meeting.getMeetingDetails",e)},e.getAuthenticationTokenForAnonymousUser=function(e){if(!e)throw new Error("[get Authentication Token For AnonymousUser] Callback cannot be null");Ne(me,A.sidePanel,A.meetingStage,A.task),vt("meeting.getAuthenticationTokenForAnonymousUser",e)},e.getLiveStreamState=function(e){if(!e)throw new Error("[get live stream state] Callback cannot be null");Ne(me,A.sidePanel),vt("meeting.getLiveStreamState",e)},e.requestStartLiveStreaming=function(e,t,n){if(!e)throw new Error("[request start live streaming] Callback cannot be null");Ne(me,A.sidePanel),vt("meeting.requestStartLiveStreaming",[t,n],e)},e.requestStopLiveStreaming=function(e){if(!e)throw new Error("[request stop live streaming] Callback cannot be null");Ne(me,A.sidePanel),vt("meeting.requestStopLiveStreaming",e)},e.registerLiveStreamChangedHandler=function(e){if(!e)throw new Error("[register live stream changed handler] Handler cannot be null");Ne(me,A.sidePanel),Ke("meeting.liveStreamChanged",e)},e.shareAppContentToStage=function(e,t){if(!e)throw new Error("[share app content to stage] Callback cannot be null");Ne(me,A.sidePanel,A.meetingStage),vt("meeting.shareAppContentToStage",[t],e)},e.getAppContentStageSharingCapabilities=function(e){if(!e)throw new Error("[get app content stage sharing capabilities] Callback cannot be null");Ne(me,A.sidePanel,A.meetingStage),vt("meeting.getAppContentStageSharingCapabilities",e)},e.stopSharingAppContentToStage=function(e){if(!e)throw new Error("[stop sharing app content to stage] Callback cannot be null");Ne(me,A.sidePanel,A.meetingStage),vt("meeting.stopSharingAppContentToStage",e)},e.getAppContentStageSharingState=function(e){if(!e)throw new Error("[get app content stage sharing state] Callback cannot be null");Ne(me,A.sidePanel,A.meetingStage),vt("meeting.getAppContentStageSharingState",e)},e.registerSpeakingStateChangeHandler=function(e){if(!e)throw new Error("[registerSpeakingStateChangeHandler] Handler cannot be null");Ne(me,A.sidePanel,A.meetingStage),Ke("meeting.speakingStateChanged",e)},e.registerRaiseHandStateChangedHandler=function(e){if(!e)throw new Error("[registerRaiseHandStateChangedHandler] Handler cannot be null");Ne(me,A.sidePanel,A.meetingStage),Ke("meeting.raiseHandStateChanged",e)},e.registerMeetingReactionReceivedHandler=function(e){if(!e)throw new Error("[registerMeetingReactionReceivedHandler] Handler cannot be null");Ne(me,A.sidePanel,A.meetingStage),Ke("meeting.meetingReactionReceived",e)},function(e){e.setOptions=function(e){Ne(me,A.sidePanel),e.contentUrl&&new URL(e.contentUrl),vt("meeting.appShareButton.setOptions",[e])}}(e.appShareButton||(e.appShareButton={})),e.requestAppAudioHandling=function(e,t){if(!t)throw new Error("[requestAppAudioHandling] Callback response cannot be null");if(!e.micMuteStateChangedCallback)throw new Error("[requestAppAudioHandling] Callback Mic mute state handler cannot be null");Ne(me,A.sidePanel,A.meetingStage),e.isAppHandlingAudio?n(e,t):r(e,t)},e.updateMicState=function(e){o(e,t.AppInitiated)}}(kn||(kn={})),function(e){function t(){return!(!Ne(me)||!me.supports.monetization)}e.openPurchaseExperience=function(e,n){var r,o;return"function"==typeof e?(r=e,o=n):o=e,Ne(me,A.content),$((function(){return new Promise((function(e){if(!t())throw H;e(ht("monetization.openPurchaseExperience",o))}))}),r)},e.isSupported=t}(Rn||(Rn={})),function(e){function t(){return!(!Ne(me)||!me.supports.calendar)}e.openCalendarItem=function(e){return new Promise((function(n){if(Ne(me,A.content),!t())throw new Error("Not supported");if(!e.itemId||!e.itemId.trim())throw new Error("Must supply an itemId to openCalendarItem");n(pt("calendar.openCalendarItem",e))}))},e.composeMeeting=function(e){return new Promise((function(n){if(Ne(me,A.content),!t())throw new Error("Not supported");me.isLegacyTeams?n(pt("executeDeepLink",tn(e.attendees,e.startTime,e.endTime,e.subject,e.content))):n(pt("calendar.composeMeeting",e))}))},e.isSupported=t}(An||(An={})),function(e){function t(){return!(!Ne(me)||!me.supports.mail)}e.openMailItem=function(e){return new Promise((function(n){if(Ne(me,A.content),!t())throw new Error("Not supported");if(!e.itemId||!e.itemId.trim())throw new Error("Must supply an itemId to openMailItem");n(pt("mail.openMailItem",e))}))},e.composeMail=function(e){return new Promise((function(n){if(Ne(me,A.content),!t())throw new Error("Not supported");n(pt("mail.composeMail",e))}))},e.isSupported=t,function(e){e.New="new",e.Reply="reply",e.ReplyAll="replyAll",e.Forward="forward"}(e.ComposeMailType||(e.ComposeMailType={}))}(Mn||(Mn={})),function(e){function t(){ie().print()}function n(e,t){e&&Ne(me),e&&t&&t(),et(e)}function r(e,t){e&&Ne(me),e&&t&&t(),nt(e)}function o(){return!(!Ne(me)||!me.supports.teamsCore)}e.enablePrintCapability=function(){if(!p.printCapabilityEnabled){if(Ne(me),!o())throw H;p.printCapabilityEnabled=!0,document.addEventListener("keydown",(function(e){(e.ctrlKey||e.metaKey)&&80===e.keyCode&&(t(),e.cancelBubble=!0,e.preventDefault(),e.stopImmediatePropagation())}))}},e.print=t,e.registerOnLoadHandler=function(e){n(e,(function(){if(e&&!o())throw H}))},e.registerOnLoadHandlerHelper=n,e.registerBeforeUnloadHandler=function(e){r(e,(function(){if(e&&!o())throw H}))},e.registerBeforeUnloadHandlerHelper=r,e.isSupported=o}(Dn||(Dn={})),function(e){function t(e){return new Promise((function(t){if(!Le("2.0.0"))throw{errorCode:P.OLD_PLATFORM};if(!Cn(e))throw{errorCode:P.INVALID_ARGUMENTS};if(!n())throw H;t(ht("people.selectPeople",e))}))}function n(){return!(!Ne(me)||!me.supports.people)}e.selectPeople=function(e,n){var r,o,i;return Ne(me,A.content,A.task,A.settings),"function"==typeof e?(o=(r=[e,n])[0],i=r[1]):i=e,X(t,o,i)},e.isSupported=n}(Un||(Un={})),function(e){e.showProfile=function(e){return Ne(me,A.content),new Promise((function(t){var n=xn(e),r=n[0],o=n[1];if(!r)throw{errorCode:P.INVALID_ARGUMENTS,message:o};t(ht("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!(!Ne(me)||!me.supports.profile)}}(Nn||(Nn={}));var Wn,_n=function(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())}))},Bn=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return c([e,t])}}function c(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}};function zn(e,t,n,r){var o,i;return _n(this,void 0,void 0,(function(){var a,s;return Bn(this,(function(c){switch(c.label){case 0:return a=qn(),!ae()&&(null===(i=null===(o=window.chrome)||void 0===o?void 0:o.webview)||void 0===i||i.registerTextureStream(e,a)),s=Jn,[4,Gn(e,n,r)];case 1:return s.apply(void 0,[c.sent(),new Kn(n,t),a.writable]),[2]}}))}))}function jn(e,t,n,r){var o,i;return _n(this,void 0,void 0,(function(){var a,s;return Bn(this,(function(c){switch(c.label){case 0:return a=qn(),!ae()&&(null===(i=null===(o=window.chrome)||void 0===o?void 0:o.webview)||void 0===i||i.registerTextureStream(e,a)),s=Jn,[4,Gn(e,n,r)];case 1:return s.apply(void 0,[c.sent(),new Qn(n,t),a.writable]),[2]}}))}))}function Gn(e,t,n){return _n(this,void 0,void 0,(function(){var r,o,i,a,s;return Bn(this,(function(c){switch(c.label){case 0:if(ae())throw H;r=ie().chrome,c.label=1;case 1:return c.trys.push([1,3,,4]),null==n||n.reportGettingTextureStream(e),[4,r.webview.getTextureStream(e)];case 2:if(o=c.sent(),0===(i=o.getVideoTracks()).length)throw new Error("No video track in stream ".concat(e));return null==n||n.reportTextureStreamAcquired(),[2,i[0]];case 3:throw a=c.sent(),s="Failed to get video track from stream ".concat(e,", error: ").concat(a),t(s),new Error("Internal error: can't get video track from stream ".concat(e));case 4:return[2]}}))}))}function qn(){if(ae())throw H;var e=window.MediaStreamTrackGenerator;if(!e)throw H;return new e({kind:"video"})}function Jn(e,t,n){new(0,ie().MediaStreamTrackProcessor)({track:e}).readable.pipeThrough(new TransformStream(t)).pipeTo(n)}!function(e){e.TimestampIsNull="timestamp of the original video frame is null",e.UnsupportedVideoFramePixelFormat="Unsupported video frame pixel format"}(Wn||(Wn={}));var Kn=function(){return function(e,t){var n=this;this.notifyError=e,this.videoFrameHandler=t,this.transform=function(e,t){return _n(n,void 0,void 0,(function(){var n,r,o,i;return Bn(this,(function(a){switch(a.label){case 0:if(null===(n=e.timestamp))return[3,5];a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this.videoFrameHandler({videoFrame:e})];case 2:return r=a.sent(),o=new VideoFrame(r,{timestamp:n}),t.enqueue(o),e.close(),r.close(),[3,4];case 3:return i=a.sent(),e.close(),this.notifyError(i),[3,4];case 4:return[3,6];case 5:this.notifyError(Wn.TimestampIsNull),a.label=6;case 6:return[2]}}))}))}}}(),Zn=function(){function e(e,t){if(this.headerBuffer=e,this.notifyError=t,this.ONE_TEXTURE_INPUT_ID=1869900081,this.INVALID_HEADER_ERROR="Invalid video frame header",this.UNSUPPORTED_LAYOUT_ERROR="Unsupported texture layout",this.headerDataView=new Uint32Array(e),this.headerDataView.length<8)throw this.notifyError(this.INVALID_HEADER_ERROR),new Error(this.INVALID_HEADER_ERROR);if(this.headerDataView[0]!==this.ONE_TEXTURE_INPUT_ID)throw this.notifyError(this.UNSUPPORTED_LAYOUT_ERROR),new Error(this.UNSUPPORTED_LAYOUT_ERROR)}return Object.defineProperty(e.prototype,"oneTextureLayoutId",{get:function(){return this.headerDataView[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this.headerDataView[1]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"frameRowOffset",{get:function(){return this.headerDataView[2]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"frameFormat",{get:function(){return this.headerDataView[3]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"frameWidth",{get:function(){return this.headerDataView[4]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"frameHeight",{get:function(){return this.headerDataView[5]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"multiStreamHeaderRowOffset",{get:function(){return this.headerDataView[6]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"multiStreamCount",{get:function(){return this.headerDataView[7]},enumerable:!1,configurable:!0}),e}(),Xn=function(){function e(e,t){this.metadataMap=new Map,this.AUDIO_INFERENCE_RESULT_STREAM_ID=828664161;for(var n=new Uint32Array(e),r=0,o=0;r<t;r++){var i=n[o++],a=n[o++],s=n[o++],c=new Uint8Array(e,a,s);this.metadataMap.set(i,c)}}return Object.defineProperty(e.prototype,"audioInferenceResult",{get:function(){return this.metadataMap.get(this.AUDIO_INFERENCE_RESULT_STREAM_ID)},enumerable:!1,configurable:!0}),e}(),Qn=function(){return function(e,t){var n=this;this.notifyError=e,this.videoFrameHandler=t,this.shouldDiscardAudioInferenceResult=!1,this.transform=function(e,t){return _n(n,void 0,void 0,(function(){var n,r,o,i,a,s,c,u;return Bn(this,(function(l){switch(l.label){case 0:if(null===(n=e.timestamp))return[3,6];l.label=1;case 1:return l.trys.push([1,4,,5]),[4,this.extractVideoFrameAndMetadata(e)];case 2:return r=l.sent(),o=r.videoFrame,i=r.metadata,a=(void 0===i?{}:i).audioInferenceResult,[4,this.videoFrameHandler({videoFrame:o,audioInferenceResult:a})];case 3:return s=l.sent(),c=new VideoFrame(s,{timestamp:n}),t.enqueue(c),o.close(),e.close(),s.close(),[3,5];case 4:return u=l.sent(),e.close(),this.notifyError(u),[3,5];case 5:return[3,7];case 6:this.notifyError(Wn.TimestampIsNull),l.label=7;case 7:return[2]}}))}))},this.extractVideoFrameAndMetadata=function(e){return _n(n,void 0,void 0,(function(){var t,n,r,o,i,a;return Bn(this,(function(s){switch(s.label){case 0:if(ae())throw H;if("NV12"!==e.format)throw this.notifyError(Wn.UnsupportedVideoFramePixelFormat),new Error(Wn.UnsupportedVideoFramePixelFormat);return t={x:0,y:0,width:e.codedWidth,height:2},n=new ArrayBuffer(t.width*t.height*3/2),[4,e.copyTo(n,{rect:t})];case 1:return s.sent(),r=new Zn(n,this.notifyError),o={x:0,y:r.multiStreamHeaderRowOffset,width:e.codedWidth,height:e.codedHeight-r.multiStreamHeaderRowOffset},i=new ArrayBuffer(o.width*o.height*3/2),[4,e.copyTo(i,{rect:o})];case 2:return s.sent(),a=new Xn(i,r.multiStreamCount),[2,{videoFrame:new VideoFrame(e,{timestamp:e.timestamp,visibleRect:{x:0,y:r.frameRowOffset,width:r.frameWidth,height:r.frameHeight}}),metadata:{audioInferenceResult:this.shouldDiscardAudioInferenceResult?void 0:a.audioInferenceResult}}]}}))}))},Ke("video.mediaStream.audioInferenceDiscardStatusChange",(function(e){var t=e.discardAudioInferenceResult;n.shouldDiscardAudioInferenceResult=t}))}}();function $n(e,t){return function(n,r){null==t||t.reportApplyingVideoEffect(n||"",r),e(n,r).then((function(){null==t||t.reportVideoEffectChanged(n||"",r),vt("video.videoEffectReadiness",[!0,n,void 0,r])})).catch((function(e){var t=e in Yn.EffectFailureReason?e:Yn.EffectFailureReason.InitializationFailure;vt("video.videoEffectReadiness",[!1,n,t,r])}))}}var Yn,er,tr,nr,rr=function(){function e(){}return e.setTimeout=function(t,n){var r=performance.now(),o=K();return e.setTimeoutCallbacks[o]={callback:t,timeoutInMs:n,startedAtInMs:r},o},e.clearTimeout=function(t){delete e.setTimeoutCallbacks[t]},e.setInterval=function(t,n){e.setTimeout((function r(){t(),e.setTimeout(r,n)}),n)},e.tick=function(){var t=performance.now(),n=[];for(var r in e.setTimeoutCallbacks){t-(a=e.setTimeoutCallbacks[r]).startedAtInMs>=a.timeoutInMs&&n.push(r)}for(var o=0,i=n;o<i.length;o++){var a,s=i[o];(a=e.setTimeoutCallbacks[s]).callback(),delete e.setTimeoutCallbacks[s]}},e.setTimeoutCallbacks={},e}(),or=function(){function e(e,t){this.reportStatisticsResult=t,this.sampleCount=0,this.distributionBins=new Uint32Array(e)}return e.prototype.processStarts=function(e,t,n,r){rr.tick(),this.suitableForThisSession(e,t,n,r)||this.reportAndResetSession(this.getStatistics(),e,r,t,n),this.start()},e.prototype.processEnds=function(){var e=performance.now()-this.frameProcessingStartedAt,t=Math.floor(Math.max(0,Math.min(this.distributionBins.length-1,e)));this.distributionBins[t]+=1,this.sampleCount+=1},e.prototype.getStatistics=function(){return this.currentSession?{effectId:this.currentSession.effectId,effectParam:this.currentSession.effectParam,frameHeight:this.currentSession.frameHeight,frameWidth:this.currentSession.frameWidth,duration:performance.now()-this.currentSession.startedAtInMs,sampleCount:this.sampleCount,distributionBins:this.distributionBins.slice()}:null},e.prototype.start=function(){this.frameProcessingStartedAt=performance.now()},e.prototype.suitableForThisSession=function(e,t,n,r){return this.currentSession&&this.currentSession.effectId===e&&this.currentSession.effectParam===r&&this.currentSession.frameWidth===t&&this.currentSession.frameHeight===n},e.prototype.reportAndResetSession=function(e,t,n,r,o){var i=this;e&&this.reportStatisticsResult(e),this.resetCurrentSession(this.getNextTimeout(t,this.currentSession),t,n,r,o),this.timeoutId&&rr.clearTimeout(this.timeoutId),this.timeoutId=rr.setTimeout(function(){return i.reportAndResetSession(i.getStatistics(),t,n,r,o)}.bind(this),this.currentSession.timeoutInMs)},e.prototype.resetCurrentSession=function(e,t,n,r,o){this.currentSession={startedAtInMs:performance.now(),timeoutInMs:e,effectId:t,effectParam:n,frameWidth:r,frameHeight:o},this.sampleCount=0,this.distributionBins.fill(0)},e.prototype.getNextTimeout=function(t,n){return n&&n.effectId===t?Math.min(e.maxSessionTimeoutInMs,2*n.timeoutInMs):e.initialSessionTimeoutInMs},e.initialSessionTimeoutInMs=1e3,e.maxSessionTimeoutInMs=3e4,e}(),ir=function(){function e(t){var n=this;this.reportPerformanceEvent=t,this.isFirstFrameProcessed=!1,this.frameProcessTimeLimit=100,this.frameProcessingStartedAt=0,this.frameProcessingTimeCost=0,this.processedFrameCount=0,this.performanceStatistics=new or(e.distributionBinSize,(function(e){return n.reportPerformanceEvent("video.performance.performanceDataGenerated",[e])}))}return e.prototype.startMonitorSlowFrameProcessing=function(){var t=this;rr.setInterval((function(){if(0!==t.processedFrameCount){var e=t.frameProcessingTimeCost/t.processedFrameCount;e>t.frameProcessTimeLimit&&t.reportPerformanceEvent("video.performance.frameProcessingSlow",[e]),t.frameProcessingTimeCost=0,t.processedFrameCount=0}}),e.calculateFPSInterval)},e.prototype.setFrameProcessTimeLimit=function(e){this.frameProcessTimeLimit=e},e.prototype.reportApplyingVideoEffect=function(e,t){var n,r;(null===(n=this.applyingEffect)||void 0===n?void 0:n.effectId)===e&&(null===(r=this.applyingEffect)||void 0===r?void 0:r.effectParam)===t||(this.applyingEffect={effectId:e,effectParam:t},this.appliedEffect=void 0)},e.prototype.reportVideoEffectChanged=function(e,t){void 0===this.applyingEffect||this.applyingEffect.effectId!==e&&this.applyingEffect.effectParam!==t||(this.appliedEffect={effectId:e,effectParam:t},this.applyingEffect=void 0,this.isFirstFrameProcessed=!1)},e.prototype.reportStartFrameProcessing=function(e,t){rr.tick(),this.appliedEffect&&(this.frameProcessingStartedAt=performance.now(),this.performanceStatistics.processStarts(this.appliedEffect.effectId,e,t,this.appliedEffect.effectParam))},e.prototype.reportFrameProcessed=function(){var e;this.appliedEffect&&(this.processedFrameCount++,this.frameProcessingTimeCost+=performance.now()-this.frameProcessingStartedAt,this.performanceStatistics.processEnds(),this.isFirstFrameProcessed||(this.isFirstFrameProcessed=!0,this.reportPerformanceEvent("video.performance.firstFrameProcessed",[Date.now(),this.appliedEffect.effectId,null===(e=this.appliedEffect)||void 0===e?void 0:e.effectParam])))},e.prototype.reportGettingTextureStream=function(e){this.gettingTextureStreamStartedAt=performance.now(),this.currentStreamId=e},e.prototype.reportTextureStreamAcquired=function(){if(void 0!==this.gettingTextureStreamStartedAt){var e=performance.now()-this.gettingTextureStreamStartedAt;this.reportPerformanceEvent("video.performance.textureStreamAcquired",[this.currentStreamId,e])}},e.distributionBinSize=1e3,e.calculateFPSInterval=1e3,e}(),ar=function(){return ar=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ar.apply(this,arguments)},sr=function(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())}))},cr=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return c([e,t])}}function c(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},ur=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};!function(e){var t=ae()?void 0:new ir(vt);function n(e){vt("video.videoFrameProcessed",[e])}function r(e){vt("video.notifyError",[e])}function o(){return Ne(me)&&!!me.supports.video&&(!!me.supports.video.mediaStream||!!me.supports.video.sharedFrame)}function i(e,n){var i=this;if(Ne(me,A.sidePanel),!o()||!u())throw H;Ke("video.startVideoExtensibilityVideoStream",(function(n){return sr(i,void 0,void 0,(function(){var o,i;return cr(this,(function(s){switch(s.label){case 0:return o=n.streamId,i=a(e,t),[4,zn(o,i,r,t)];case 1:return s.sent(),[2]}}))}))}),!1),vt("video.mediaStream.registerForVideoFrame",[n])}function a(e,t){var n=this;return function(r){return sr(n,void 0,void 0,(function(){var n,o;return cr(this,(function(i){switch(i.label){case 0:return n=r.videoFrame,null==t||t.reportStartFrameProcessing(n.codedWidth,n.codedHeight),[4,e(r)];case 1:return o=i.sent(),null==t||t.reportFrameProcessed(),[2,o]}}))}))}}function s(e,i){if(Ne(me,A.sidePanel),!o()||!d())throw H;Ke("video.newVideoFrame",(function(o){if(o){var i=o.timestamp;null==t||t.reportStartFrameProcessing(o.width,o.height),e(c(o),(function(){null==t||t.reportFrameProcessed(),n(i)}),r)}}),!1),vt("video.registerForVideoFrame",[i])}function c(e){if("videoFrameBuffer"in e)return e;var t=e.data,n=ur(e,["data"]);return ar(ar({},n),{videoFrameBuffer:t})}function u(){var e;return Ne(me,A.sidePanel)&&l()&&!!(null===(e=me.supports.video)||void 0===e?void 0:e.mediaStream)}function l(){var e,t,n,r;return!(!(null===(t=null===(e=ie().chrome)||void 0===e?void 0:e.webview)||void 0===t?void 0:t.getTextureStream)||!(null===(r=null===(n=ie().chrome)||void 0===n?void 0:n.webview)||void 0===r?void 0:r.registerTextureStream))}function d(){var e;return Ne(me,A.sidePanel)&&!!(null===(e=me.supports.video)||void 0===e?void 0:e.sharedFrame)}!function(e){e.NV12="NV12"}(e.VideoFrameFormat||(e.VideoFrameFormat={})),function(e){e.EffectChanged="EffectChanged",e.EffectDisabled="EffectDisabled"}(e.EffectChangeType||(e.EffectChangeType={})),function(e){e.InvalidEffectId="InvalidEffectId",e.InitializationFailure="InitializationFailure"}(e.EffectFailureReason||(e.EffectFailureReason={})),e.registerForVideoFrame=function(e){if(Ne(me,A.sidePanel),!o())throw H;if(!e.videoFrameHandler||!e.videoBufferHandler)throw new Error("Both videoFrameHandler and videoBufferHandler must be provided");if(Ke("video.setFrameProcessTimeLimit",(function(e){return null==t?void 0:t.setFrameProcessTimeLimit(e.timeLimit)}),!1),u())i(e.videoFrameHandler,e.config);else{if(!d())throw H;s(e.videoBufferHandler,e.config)}null==t||t.startMonitorSlowFrameProcessing()},e.notifySelectedVideoEffectChanged=function(e,t){if(Ne(me,A.sidePanel),!o())throw H;vt("video.videoEffectChanged",[e,t])},e.registerForVideoEffect=function(e){if(Ne(me,A.sidePanel),!o())throw H;Ke("video.effectParameterChange",$n(e,t),!1),vt("video.registerForVideoEffect")},e.isSupported=o}(Yn||(Yn={})),function(e){var t="search.queryChange",n="search.queryClose",r="search.queryExecute";function o(){return!(!Ne(me)||!me.supports.search)}e.registerHandlers=function(e,i,a){if(Ne(me,A.content),!o())throw H;Ke(n,e),Ke(r,i),a&&Ke(t,a)},e.unregisterHandlers=function(){if(Ne(me,A.content),!o())throw H;vt("search.unregister"),Ze(t),Ze(n),Ze(r)},e.isSupported=o,e.closeSearch=function(){return new Promise((function(e){if(Ne(me,A.content),!o())throw new Error("Not supported");e(pt("search.closeSearch"))}))}}(er||(er={})),function(e){function t(t){return new Promise((function(n){if(!i())throw H;n(ht(e.SharingAPIMessages.shareWebContent,t))}))}function n(e){if(!(e&&e.content&&e.content.length))throw{errorCode:P.INVALID_ARGUMENTS,message:"Shared content is missing"}}function r(e){if(e.content.some((function(e){return!e.type})))throw{errorCode:P.INVALID_ARGUMENTS,message:"Shared content type cannot be undefined"};if(e.content.some((function(t){return t.type!==e.content[0].type})))throw{errorCode:P.INVALID_ARGUMENTS,message:"Shared content must be of the same type"}}function o(e){if("URL"!==e.content[0].type)throw{errorCode:P.INVALID_ARGUMENTS,message:"Content type is unsupported"};if(e.content.some((function(e){return!e.url})))throw{errorCode:P.INVALID_ARGUMENTS,message:"URLs are required for URL content types"}}function i(){return!(!Ne(me)||!me.supports.sharing)}e.SharingAPIMessages={shareWebContent:"sharing.shareWebContent"},e.shareWebContent=function(e,i){try{n(e),r(e),o(e)}catch(e){return Q((function(){return Promise.reject(e)}),i)}return Ne(me,A.content,A.sidePanel,A.task,A.stage,A.meetingStage),Q(t,i,e)},e.isSupported=i}(tr||(tr={})),function(e){function t(){return!(!Ne(me)||!me.supports.stageView)}!function(e){e.modal="modal",e.popout="popout",e.popoutWithChat="popoutWithChat"}(e.StageViewOpenMode||(e.StageViewOpenMode={})),e.open=function(e){return new Promise((function(n){if(Ne(me,A.content),!t())throw H;if(!e)throw new Error("[stageView.open] Stage view params cannot be null");n(ht("stageView.open",e))}))},e.isSupported=t}(nr||(nr={}));var lr,dr,fr,pr,mr,hr=function(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())}))},gr=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return c([e,t])}}function c(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}};function wr(e,t){Oe.initialize(t).then((function(){e&&e()}))}function vr(){Dn.enablePrintCapability()}function Cr(){Dn.print()}function yr(e){Ue(),vt("getContext",(function(t){t.frameContext||(t.frameContext=p.frameContext),e(t)}))}function br(e){Oe.registerOnThemeChangeHandler(e)}function Sr(e){Qe("fullScreenChange",e,[])}function Er(e){Qe("appButtonClick",e,[A.content])}function Tr(e){Qe("appButtonHoverEnter",e,[A.content])}function Ir(e){Qe("appButtonHoverLeave",e,[A.content])}function Pr(e){ke.backStack.registerBackButtonHandlerHelper(e)}function Fr(e){Dn.registerOnLoadHandlerHelper(e)}function Or(e){Dn.registerBeforeUnloadHandlerHelper(e)}function kr(e){Qe("focusEnter",e,[])}function Rr(e){Qe("changeSettings",e,[A.content])}function Ar(e,t){Ne(me),ke.tabs.getTabInstances(t).then((function(t){e(t)}))}function Mr(e,t){Ne(me),ke.tabs.getMruTabInstances(t).then((function(t){e(t)}))}function Dr(e){ke.shareDeepLink({subPageId:e.subEntityId,subPageLabel:e.subEntityLabel,subPageWebUrl:e.subEntityWebUrl})}function Ur(e,t){Ne(me,A.content,A.sidePanel,A.settings,A.task,A.stage,A.meetingStage),t=t||q(),Oe.openLink(e).then((function(){t(!0)})).catch((function(e){t(!1,e.message)}))}function Nr(e){ke.setCurrentFrame(e)}function Lr(e,t,n){ke.initializeWithFrameContext(e,t,n)}function Hr(e){ke.returnFocus(e)}function xr(e,t){Ne(me),t=t||q(),ke.tabs.navigateToTab(e).then((function(){t(!0)})).catch((function(e){t(!1,e.message)}))}function Vr(e,t){Ne(me,A.content,A.sidePanel,A.settings,A.remove,A.task,A.stage,A.meetingStage),t=t||q(),ke.navigateCrossDomain(e).then((function(){t(!0)})).catch((function(e){t(!1,e.message)}))}function Wr(e){Ne(me),e=e||q(),ke.backStack.navigateBack().then((function(){e(!0)})).catch((function(t){e(!1,t.message)}))}!function(e){var t;!function(e){e[e.FrontOrRear=1]="FrontOrRear",e[e.FrontOnly=2]="FrontOnly",e[e.RearOnly=3]="RearOnly"}(e.CameraRestriction||(e.CameraRestriction={})),function(e){e[e.Camera=1]="Camera",e[e.Gallery=2]="Gallery"}(e.Source||(e.Source={})),e.hasPermission=function(){if(Ne(me,A.content,A.task),!t.isSupported())throw H;return ht("permissions.has",F.Media)},e.requestPermission=function(){if(Ne(me,A.content,A.task),!t.isSupported())throw H;return ht("permissions.request",F.Media)},function(e){function t(){return!!(Ne(me)&&me.supports.visualMedia&&me.supports.visualMedia.image&&me.supports.permissions)}function n(){if(!t())throw H}function r(e){if(!e||e.maxVisualMediaCount>10||e.maxVisualMediaCount<1)throw _}function o(e,t){if(t.length>e)throw B}e.captureImages=function(e){return hr(this,void 0,void 0,(function(){var t;return gr(this,(function(i){switch(i.label){case 0:return Ne(me,A.content,A.task),n(),r(e),[4,ht("visualMedia.image.captureImages",e)];case 1:return t=i.sent(),o(e.maxVisualMediaCount,t),[2,t]}}))}))},e.retrieveImages=function(e){return hr(this,void 0,void 0,(function(){var t;return gr(this,(function(i){switch(i.label){case 0:return Ne(me,A.content,A.task),n(),r(e),[4,ht("visualMedia.image.retrieveImages",e)];case 1:return t=i.sent(),o(e.maxVisualMediaCount,t),[2,t]}}))}))},e.isSupported=t}(t=e.image||(e.image={}))}(lr||(lr={})),function(e){function t(){return!(!Ne(me)||!me.supports.webStorage)}e.isWebStorageClearedOnUserLogOut=function(){return Ne(me),t()},e.isSupported=t}(dr||(dr={})),function(e){var t;function n(){return!(!Ne(me)||!me.supports.call)}!function(e){e.Unknown="unknown",e.Audio="audio",e.Video="video",e.VideoBasedScreenSharing="videoBasedScreenSharing",e.Data="data"}(t=e.CallModalities||(e.CallModalities={})),e.startCall=function(e){return new Promise((function(r){var o;if(Ne(me,A.content,A.task),!n())throw H;if(!me.isLegacyTeams)return vt("call.startCall",[e],r);r(ft("executeDeepLink",en(e.targets,null===(o=e.requestedModalities)||void 0===o?void 0:o.includes(t.Video),e.source)).then((function(e){if(!e)throw new Error("The call was not properly started");return e})))}))},e.isSupported=n}(fr||(fr={})),function(e){e.Messages=Oe.Messages,e.FailedReason=Oe.FailedReason,e.ExpectedFailureReason=Oe.ExpectedFailureReason,e.notifyAppLoaded=function(){Oe.notifyAppLoaded()},e.notifySuccess=function(){Oe.notifySuccess()},e.notifyFailure=function(e){Oe.notifyFailure(e)},e.notifyExpectedFailure=function(e){Oe.notifyExpectedFailure(e)}}(pr||(pr={})),function(e){e.setValidityState=function(e){ke.config.setValidityState(e)},e.getSettings=function(e){Ne(me,A.content,A.settings,A.remove,A.sidePanel),ke.getConfig().then((function(t){e(t)}))},e.setSettings=function(e,t){Ne(me,A.content,A.settings,A.sidePanel),t=t||q(),ke.config.setConfig(e).then((function(){t(!0)})).catch((function(e){t(!1,e.message)}))},e.registerOnSaveHandler=function(e){ke.config.registerOnSaveHandlerHelper(e)},e.registerOnRemoveHandler=function(e){ke.config.registerOnRemoveHandlerHelper(e)}}(mr||(mr={}));var _r,Br,zr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};!function(e){function t(e){return{url:e.url,size:{height:e.height?e.height:L.Small,width:e.width?e.width:L.Small},title:e.title,fallbackUrl:e.fallbackUrl}}function n(e){return{url:e.url,size:{height:e.height?e.height:L.Small,width:e.width?e.width:L.Small},title:e.title,fallbackUrl:e.fallbackUrl,completionBotId:e.completionBotId}}function r(e){return e.height=e.height?e.height:L.Small,e.width=e.width?e.width:L.Small,e}e.startTask=function(e,r){var o=r?function(e){return r(e.err,e.result)}:void 0;return void 0===e.card&&void 0===e.url||e.card?(Ne(me,A.content,A.sidePanel,A.meetingStage),vt("tasks.startTask",[e],r)):void 0!==e.completionBotId?Pe.url.bot.open(n(e),o):Pe.url.open(t(e),o),new Fn},e.updateTask=function(e){(e=r(e)).width,e.height;var t=zr(e,["width","height"]);if(Object.keys(t).length)throw new Error("resize requires a TaskInfo argument containing only width and height");Pe.update.resize(e)},e.submitTask=function(e,t){Pe.url.submit(e,t)},e.getDefaultSizeIfNotProvided=r}(_r||(_r={})),function(e){!function(e){e.guest="Guest",e.attendee="Attendee",e.presenter="Presenter",e.organizer="Organizer"}(e.UserMeetingRole||(e.UserMeetingRole={})),function(e){e.added="Added",e.alreadyExists="AlreadyExists",e.conflict="Conflict",e.notFound="NotFound"}(e.ContainerState||(e.ContainerState={})),e.isSupported=function(){return!(!Ne(me,A.meetingStage,A.sidePanel)||!me.supports.interactive)}}(Br||(Br={}));var jr=function(){function e(){}return e.prototype.getFluidTenantInfo=function(){return Gr(),new Promise((function(e){e(ht("interactive.getFluidTenantInfo"))}))},e.prototype.getFluidToken=function(e){return Gr(),new Promise((function(t){t(ht("interactive.getFluidToken",e))}))},e.prototype.getFluidContainerId=function(){return Gr(),new Promise((function(e){e(ht("interactive.getFluidContainerId"))}))},e.prototype.setFluidContainerId=function(e){return Gr(),new Promise((function(t){t(ht("interactive.setFluidContainerId",e))}))},e.prototype.getNtpTime=function(){return Gr(),new Promise((function(e){e(ht("interactive.getNtpTime"))}))},e.prototype.registerClientId=function(e){return Gr(),new Promise((function(t){t(ht("interactive.registerClientId",e))}))},e.prototype.getClientRoles=function(e){return Gr(),new Promise((function(t){t(ht("interactive.getClientRoles",e))}))},e.prototype.getClientInfo=function(e){return Gr(),new Promise((function(t){t(ht("interactive.getClientInfo",e))}))},e.create=function(){return Gr(),new e},e}();function Gr(){if(!Br.isSupported())throw new Error("LiveShareHost Not supported")}const qr=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const Jr=function(e){return"string"==typeof e&&qr.test(e)};var Kr=function(){return Kr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Kr.apply(this,arguments)},Zr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Xr(e){try{return e.cartItems=Qr(e.cartItems),e}catch(e){throw new Error("Error deserializing cart")}}function Qr(e){return e.map((function(e){if(e.imageURL){var t=new URL(e.imageURL);e.imageURL=t}return e.accessories&&(e.accessories=Qr(e.accessories)),e}))}var $r=function(e){try{return e.map((function(e){var t=e.imageURL,n=e.accessories,r=Zr(e,["imageURL","accessories"]),o=Kr({},r);return t&&(o.imageURL=t.href),n&&(o.accessories=$r(n)),o}))}catch(e){throw new Error("Error serializing cart items")}};function Yr(e){if(!Array.isArray(e)||0===e.length)throw new Error("cartItems must be a non-empty array");for(var t=0,n=e;t<n.length;t++){var r=n[t];to(r),eo(r.accessories)}}function eo(e){if(null!=e){if(!Array.isArray(e)||0===e.length)throw new Error("CartItem.accessories must be a non-empty array");for(var t=0,n=e;t<n.length;t++){var r=n[t];if(r.accessories)throw new Error("Item in CartItem.accessories cannot have accessories");to(r)}}}function to(e){if(!e.id)throw new Error("cartItem.id must not be empty");if(!e.name)throw new Error("cartItem.name must not be empty");ro(e.price),oo(e.quantity)}function no(e){if(null!=e){if(!e)throw new Error("id must not be empty");if(!1===Jr(e))throw new Error("id must be a valid UUID")}}function ro(e){if("number"!=typeof e||e<0)throw new Error("price ".concat(e," must be a number not less than 0"));if(parseFloat(e.toFixed(3))!==e)throw new Error("price ".concat(e," must have at most 3 decimal places"))}function oo(e){if("number"!=typeof e||e<=0||parseInt(e.toString())!==e)throw new Error("quantity ".concat(e," must be an integer greater than 0"))}function io(e){if(!Object.values(ao.CartStatus).includes(e))throw new Error("cartStatus ".concat(e," is not valid"))}var ao,so,co,uo,lo,fo,po,mo=function(){return mo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},mo.apply(this,arguments)};!function(e){function t(){return!(!Ne(me)||!me.supports.marketplace)}e.cartVersion={majorVersion:1,minorVersion:1},function(e){e.TACAdminUser="TACAdminUser",e.TeamsAdminUser="TeamsAdminUser",e.TeamsEndUser="TeamsEndUser"}(e.Intent||(e.Intent={})),function(e){e.Open="Open",e.Processing="Processing",e.Processed="Processed",e.Closed="Closed",e.Error="Error"}(e.CartStatus||(e.CartStatus={})),e.getCart=function(){if(Ne(me,A.content,A.task),!t())throw H;return ht("marketplace.getCart",e.cartVersion).then(Xr)},e.addOrUpdateCartItems=function(n){if(Ne(me,A.content,A.task),!t())throw H;if(!n)throw new Error("addOrUpdateCartItemsParams must be provided");return no(null==n?void 0:n.cartId),Yr(null==n?void 0:n.cartItems),ht("marketplace.addOrUpdateCartItems",mo(mo({},n),{cartItems:$r(n.cartItems),cartVersion:e.cartVersion})).then(Xr)},e.removeCartItems=function(n){if(Ne(me,A.content,A.task),!t())throw H;if(!n)throw new Error("removeCartItemsParams must be provided");if(no(null==n?void 0:n.cartId),!Array.isArray(null==n?void 0:n.cartItemIds)||0===(null==n?void 0:n.cartItemIds.length))throw new Error("cartItemIds must be a non-empty array");return ht("marketplace.removeCartItems",mo(mo({},n),{cartVersion:e.cartVersion})).then(Xr)},e.updateCartStatus=function(n){if(Ne(me,A.content,A.task),!t())throw H;if(!n)throw new Error("updateCartStatusParams must be provided");return no(null==n?void 0:n.cartId),io(null==n?void 0:n.cartStatus),ht("marketplace.updateCartStatus",mo(mo({},n),{cartVersion:e.cartVersion})).then(Xr)},e.isSupported=t}(ao||(ao={})),function(e){function t(e,t){return{errorCode:e,message:t}}!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,t){if(Ne(me,A.content),!e||0===e.length)throw new Error("[files.getCloudStorageFolders] channelId name cannot be null or empty");if(!t)throw new Error("[files.getCloudStorageFolders] Callback cannot be null");vt("files.getCloudStorageFolders",[e],t)},e.addCloudStorageFolder=function(e,t){if(Ne(me,A.content),!e||0===e.length)throw new Error("[files.addCloudStorageFolder] channelId name cannot be null or empty");if(!t)throw new Error("[files.addCloudStorageFolder] Callback cannot be null");vt("files.addCloudStorageFolder",[e],t)},e.deleteCloudStorageFolder=function(e,t,n){if(Ne(me,A.content),!e)throw new Error("[files.deleteCloudStorageFolder] channelId name cannot be null or empty");if(!t)throw new Error("[files.deleteCloudStorageFolder] folderToDelete cannot be null or empty");if(!n)throw new Error("[files.deleteCloudStorageFolder] Callback cannot be null");vt("files.deleteCloudStorageFolder",[e,t],n)},e.getCloudStorageFolderContents=function(e,t,n){if(Ne(me,A.content),!e||!t)throw new Error("[files.getCloudStorageFolderContents] folder/providerCode name cannot be null or empty");if(!n)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");vt("files.getCloudStorageFolderContents",[e,t],n)},e.openCloudStorageFile=function(e,t,n){if(Ne(me,A.content),!e||!t)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");vt("files.openCloudStorageFile",[e,t,n])},e.getExternalProviders=function(e,t){if(void 0===e&&(e=!1),Ne(me,A.content),!t)throw new Error("[files.getExternalProviders] Callback cannot be null");vt("files.getExternalProviders",[e],t)},e.copyMoveFiles=function(e,t,n,r,o,i){if(void 0===o&&(o=!1),Ne(me,A.content),!e||0===e.length)throw new Error("[files.copyMoveFiles] selectedFiles cannot be null or empty");if(!t)throw new Error("[files.copyMoveFiles] providerCode cannot be null or empty");if(!n)throw new Error("[files.copyMoveFiles] destinationFolder cannot be null or empty");if(!r)throw new Error("[files.copyMoveFiles] destinationProviderCode cannot be null or empty");if(!i)throw new Error("[files.copyMoveFiles] callback cannot be null");vt("files.copyMoveFiles",[e,t,n,r,o],i)},e.getFileDownloads=function(e){if(Ne(me,A.content),!e)throw new Error("[files.getFileDownloads] Callback cannot be null");vt("files.getFileDownloads",[],e)},e.openDownloadFolder=function(e,t){if(void 0===e&&(e=void 0),Ne(me,A.content),!t)throw new Error("[files.openDownloadFolder] Callback cannot be null");vt("files.openDownloadFolder",[e],t)},e.addCloudStorageProvider=function(e){if(Ne(me,A.content),!e)throw t(P.INVALID_ARGUMENTS,"[files.addCloudStorageProvider] callback cannot be null");vt("files.addCloudStorageProvider",[],e)},e.removeCloudStorageProvider=function(e,n){if(Ne(me,A.content),!n)throw t(P.INVALID_ARGUMENTS,"[files.removeCloudStorageProvider] callback cannot be null");if(!e||!e.content)throw t(P.INVALID_ARGUMENTS,"[files.removeCloudStorageProvider] 3P cloud storage provider request content is missing");vt("files.removeCloudStorageProvider",[e],n)},e.addCloudStorageProviderFile=function(e,n){if(Ne(me,A.content),!n)throw t(P.INVALID_ARGUMENTS,"[files.addCloudStorageProviderFile] callback cannot be null");if(!e||!e.content)throw t(P.INVALID_ARGUMENTS,"[files.addCloudStorageProviderFile] 3P cloud storage provider request content is missing");vt("files.addCloudStorageProviderFile",[e],n)},e.renameCloudStorageProviderFile=function(e,n){if(Ne(me,A.content),!n)throw t(P.INVALID_ARGUMENTS,"[files.renameCloudStorageProviderFile] callback cannot be null");if(!e||!e.content)throw t(P.INVALID_ARGUMENTS,"[files.renameCloudStorageProviderFile] 3P cloud storage provider request content is missing");vt("files.renameCloudStorageProviderFile",[e],n)},e.deleteCloudStorageProviderFile=function(e,n){if(Ne(me,A.content),!n)throw t(P.INVALID_ARGUMENTS,"[files.deleteCloudStorageProviderFile] callback cannot be null");if(!(e&&e.content&&e.content.itemList&&e.content.itemList.length>0))throw t(P.INVALID_ARGUMENTS,"[files.deleteCloudStorageProviderFile] 3P cloud storage provider request content details are missing");vt("files.deleteCloudStorageProviderFile",[e],n)},e.downloadCloudStorageProviderFile=function(e,n){if(Ne(me,A.content),!n)throw t(P.INVALID_ARGUMENTS,"[files.downloadCloudStorageProviderFile] callback cannot be null");if(!(e&&e.content&&e.content.itemList&&e.content.itemList.length>0))throw t(P.INVALID_ARGUMENTS,"[files.downloadCloudStorageProviderFile] 3P cloud storage provider request content details are missing");vt("files.downloadCloudStorageProviderFile",[e],n)},e.uploadCloudStorageProviderFile=function(e,n){if(Ne(me,A.content),!n)throw t(P.INVALID_ARGUMENTS,"[files.uploadCloudStorageProviderFile] callback cannot be null");if(!(e&&e.content&&e.content.itemList&&e.content.itemList.length>0))throw t(P.INVALID_ARGUMENTS,"[files.uploadCloudStorageProviderFile] 3P cloud storage provider request content details are missing");if(!e.content.destinationFolder)throw t(P.INVALID_ARGUMENTS,"[files.uploadCloudStorageProviderFile] Invalid destination folder details");vt("files.uploadCloudStorageProviderFile",[e],n)},e.registerCloudStorageProviderListChangeHandler=function(e){if(Ne(me),!e)throw new Error("[registerCloudStorageProviderListChangeHandler] Handler cannot be null");Ke("files.cloudStorageProviderListChange",e)},e.registerCloudStorageProviderContentChangeHandler=function(e){if(Ne(me),!e)throw new Error("[registerCloudStorageProviderContentChangeHandler] Handler cannot be null");Ke("files.cloudStorageProviderContentChange",e)}}(so||(so={})),function(e){function t(){return!(!Ne(me)||!me.supports.meetingRoom)}e.getPairedMeetingRoomInfo=function(){return new Promise((function(e){if(Ne(me),!t())throw H;e(ht("meetingRoom.getPairedMeetingRoomInfo"))}))},e.sendCommandToPairedMeetingRoom=function(e){return new Promise((function(n){if(!e||0==e.length)throw new Error("[meetingRoom.sendCommandToPairedMeetingRoom] Command name cannot be null or empty");if(Ne(me),!t())throw H;n(ht("meetingRoom.sendCommandToPairedMeetingRoom",e))}))},e.registerMeetingRoomCapabilitiesUpdateHandler=function(e){if(!e)throw new Error("[meetingRoom.registerMeetingRoomCapabilitiesUpdateHandler] Handler cannot be null");if(Ne(me),!t())throw H;Ke("meetingRoom.meetingRoomCapabilitiesUpdate",(function(t){Ne(me),e(t)}))},e.registerMeetingRoomStatesUpdateHandler=function(e){if(!e)throw new Error("[meetingRoom.registerMeetingRoomStatesUpdateHandler] Handler cannot be null");if(Ne(me),!t())throw H;Ke("meetingRoom.meetingRoomStatesUpdate",(function(t){Ne(me),e(t)}))},e.isSupported=t}(co||(co={})),function(e){function t(){return!(!Ne(me)||!me.supports.notifications)}e.showNotification=function(e){if(Ne(me,A.content),!t())throw H;vt("notifications.showNotification",[e])},e.isSupported=t}(uo||(uo={})),function(e){function t(){return!(!Ne(me)||!me.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(Ne(me,A.sidePanel),!t())throw H;vt("remoteCamera.getCapableParticipants",e)},e.requestControl=function(e,n){if(!e)throw new Error("[remoteCamera.requestControl] Participant cannot be null");if(!n)throw new Error("[remoteCamera.requestControl] Callback cannot be null");if(Ne(me,A.sidePanel),!t())throw H;vt("remoteCamera.requestControl",[e],n)},e.sendControlCommand=function(e,n){if(!e)throw new Error("[remoteCamera.sendControlCommand] ControlCommand cannot be null");if(!n)throw new Error("[remoteCamera.sendControlCommand] Callback cannot be null");if(Ne(me,A.sidePanel),!t())throw H;vt("remoteCamera.sendControlCommand",[e],n)},e.terminateSession=function(e){if(!e)throw new Error("[remoteCamera.terminateSession] Callback cannot be null");if(Ne(me,A.sidePanel),!t())throw H;vt("remoteCamera.terminateSession",e)},e.registerOnCapableParticipantsChangeHandler=function(e){if(!e)throw new Error("[remoteCamera.registerOnCapableParticipantsChangeHandler] Handler cannot be null");if(Ne(me,A.sidePanel),!t())throw H;Ke("remoteCamera.capableParticipantsChange",e)},e.registerOnErrorHandler=function(e){if(!e)throw new Error("[remoteCamera.registerOnErrorHandler] Handler cannot be null");if(Ne(me,A.sidePanel),!t())throw H;Ke("remoteCamera.handlerError",e)},e.registerOnDeviceStateChangeHandler=function(e){if(!e)throw new Error("[remoteCamera.registerOnDeviceStateChangeHandler] Handler cannot be null");if(Ne(me,A.sidePanel),!t())throw H;Ke("remoteCamera.deviceStateChange",e)},e.registerOnSessionStatusChangeHandler=function(e){if(!e)throw new Error("[remoteCamera.registerOnSessionStatusChangeHandler] Handler cannot be null");if(Ne(me,A.sidePanel),!t())throw H;Ke("remoteCamera.sessionStatusChange",e)},e.isSupported=t}(lo||(lo={})),function(e){function t(){return!(!Ne(me)||!me.supports.appEntity)}e.selectAppEntity=function(e,n,r,o){if(Ne(me,A.content),!t())throw H;if(!e||0==e.length)throw new Error("[appEntity.selectAppEntity] threadId name cannot be null or empty");if(!o)throw new Error("[appEntity.selectAppEntity] Callback cannot be null");vt("appEntity.selectAppEntity",[e,n,r],o)},e.isSupported=t}(fo||(fo={})),function(e){function t(){return!(!Ne(me)||!me.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,n){if(Ne(me,A.content),!t())throw H;if(!e)throw new Error("[teams.getTeamChannels] groupId cannot be null or empty");if(!n)throw new Error("[teams.getTeamChannels] Callback cannot be null");vt("teams.getTeamChannels",[e],n)},e.refreshSiteUrl=function(e,n){if(Ne(me),!t())throw H;if(!e)throw new Error("[teams.refreshSiteUrl] threadId cannot be null or empty");if(!n)throw new Error("[teams.refreshSiteUrl] Callback cannot be null");vt("teams.refreshSiteUrl",[e],n)},e.isSupported=t,function(e){function t(){return!(!Ne(me)||!me.supports.teams)&&!!me.supports.teams.fullTrust}!function(e){function t(){return!(!Ne(me)||!me.supports.teams)&&(!!me.supports.teams.fullTrust&&!!me.supports.teams.fullTrust.joinedTeams)}e.getUserJoinedTeams=function(e){return new Promise((function(n){if(Ne(me),!t())throw H;if((p.hostClientType===k.android||p.hostClientType===k.teamsRoomsAndroid||p.hostClientType===k.teamsPhones||p.hostClientType===k.teamsDisplays)&&!Le("2.0.1")){var r={errorCode:P.OLD_PLATFORM};throw new Error(JSON.stringify(r))}n(ft("getUserJoinedTeams",e))}))},e.isSupported=t}(e.joinedTeams||(e.joinedTeams={})),e.getConfigSetting=function(e){return new Promise((function(n){if(Ne(me),!t())throw H;n(ft("getConfigSetting",e))}))},e.isSupported=t}(e.fullTrust||(e.fullTrust={}))}(po||(po={}));var ho,go=function(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())}))},wo=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return c([e,t])}}function c(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}};!function(e){var t,n=ae()?void 0:new ir(vt);function r(e,t){var n=this;return function(r){return go(n,void 0,void 0,(function(){var n,o;return wo(this,(function(i){switch(i.label){case 0:return n=r.videoFrame,t.reportStartFrameProcessing(n.codedWidth,n.codedHeight),[4,e(r)];case 1:return o=i.sent(),t.reportFrameProcessed(),[2,o]}}))}))}}function o(e){return e.videoFrameBuffer=e.videoFrameBuffer||e.data,delete e.data,e}function i(){return Ne(me),Yn.isSupported()}function a(e){vt("video.videoFrameProcessed",[e])}function s(e,n){void 0===n&&(n=t.Warn),vt("video.notifyError",[e,n])}!function(e){e.Fatal="fatal",e.Warn="warn"}(t=e.ErrorLevel||(e.ErrorLevel={})),e.registerForVideoFrame=function(e){var t,c,u=this;if(!i())throw H;if(!e.videoFrameHandler||!e.videoBufferHandler)throw new Error("Both videoFrameHandler and videoBufferHandler must be provided");if(Ne(me,A.sidePanel)){if(Ke("video.setFrameProcessTimeLimit",(function(e){return null==n?void 0:n.setFrameProcessTimeLimit(e)}),!1),null===(t=me.supports.video)||void 0===t?void 0:t.mediaStream)Ke("video.startVideoExtensibilityVideoStream",(function(t){return go(u,void 0,void 0,(function(){var o,i,a;return wo(this,(function(c){switch(c.label){case 0:return o=t.streamId,i=t.metadataInTexture,a=n?r(e.videoFrameHandler,n):e.videoFrameHandler,i?[4,jn(o,a,s,n)]:[3,2];case 1:return c.sent(),[3,4];case 2:return[4,zn(o,a,s,n)];case 3:c.sent(),c.label=4;case 4:return[2]}}))}))}),!1),vt("video.mediaStream.registerForVideoFrame",[e.config]);else{if(!(null===(c=me.supports.video)||void 0===c?void 0:c.sharedFrame))throw H;Ke("video.newVideoFrame",(function(t){if(t){null==n||n.reportStartFrameProcessing(t.width,t.height);var r=t.timestamp;e.videoBufferHandler(o(t),(function(){null==n||n.reportFrameProcessed(),a(r)}),s)}}),!1),vt("video.registerForVideoFrame",[e.config])}null==n||n.startMonitorSlowFrameProcessing()}},e.notifySelectedVideoEffectChanged=function(e,t,n){if(Ne(me,A.sidePanel),!i())throw H;vt("video.videoEffectChanged",[e,t,n])},e.registerForVideoEffect=function(e){if(Ne(me,A.sidePanel),!i())throw H;Ke("video.effectParameterChange",$n(e,n),!1),vt("video.registerForVideoEffect")},e.updatePersonalizedEffects=function(e){if(Ne(me,A.sidePanel),!Yn.isSupported())throw H;vt("video.personalizedEffectsChanged",[e])},e.isSupported=i,e.notifyFatalError=function(e){if(Ne(me),!Yn.isSupported())throw H;s(e,t.Fatal)}}(ho||(ho={}))})(),r})()));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("microsoftTeams",[],t):"object"==typeof exports?exports.microsoftTeams=t():e.microsoftTeams=t()}("undefined"!=typeof self?self:this,(()=>(()=>{var e={302:(e,t,n)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(o=r))})),t.splice(o,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.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+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.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`."))}})(),t.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"],t.log=console.debug||console.log||(()=>{}),e.exports=n(65)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},65:(e,t,n)=>{e.exports=function(e){function t(e){let n,o,i,a=null;function s(...e){if(!s.enabled)return;const r=s,o=Number(new Date),i=o-(n||o);r.diff=i,r.prev=n,r.curr=o,n=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,o)=>{if("%%"===n)return"%";a++;const i=t.formatters[o];if("function"==typeof i){const t=e[a];n=i.call(r,t),e.splice(a,1),a--}return n})),t.formatArgs.call(r,e);(r.log||t.log).apply(r,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=r,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(o!==t.namespaces&&(o=t.namespaces,i=t.enabled(e)),i),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function o(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(o),...t.skips.map(o).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(247),t.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((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},247:e=>{var t=1e3,n=60*t,r=60*n,o=24*r;function i(e){if(!((e=String(e)).length>100)){var i=/^(-?(?:\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(i){var a=parseFloat(i[1]);switch((i[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*o;case"hours":case"hour":case"hrs":case"hr":case"h":return a*r;case"minutes":case"minute":case"mins":case"min":case"m":return a*n;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}function a(e){var i=Math.abs(e);return i>=o?Math.round(e/o)+"d":i>=r?Math.round(e/r)+"h":i>=n?Math.round(e/n)+"m":i>=t?Math.round(e/t)+"s":e+"ms"}function s(e){var i=Math.abs(e);return i>=o?c(e,i,o,"day"):i>=r?c(e,i,r,"hour"):i>=n?c(e,i,n,"minute"):i>=t?c(e,i,t,"second"):e+" ms"}function c(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,t){t=t||{};var n=typeof e;if("string"===n&&e.length>0)return i(e);if("number"===n&&isFinite(e))return t.long?s(e):a(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}(()=>{n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}})(),(()=>{n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var r={};return(()=>{"use strict";n.r(r),n.d(r,{ActionObjectType:()=>T,ChannelType:()=>N,ChildAppWindow:()=>Rn,DialogDimension:()=>U,ErrorCode:()=>P,FileOpenPreference:()=>E,FrameContexts:()=>R,HostClientType:()=>k,HostName:()=>A,LiveShareHost:()=>Kr,NotificationTypes:()=>Ht,ParentAppWindow:()=>Mn,SecondaryM365ContentIdName:()=>I,TaskModuleDimension:()=>L,TeamType:()=>M,UserSettingTypes:()=>Vt,UserTeamRole:()=>D,ViewerActionTypes:()=>xt,app:()=>Re,appEntity:()=>go,appInitialization:()=>wr,appInstallDialog:()=>tn,authentication:()=>Oe,barCode:()=>un,calendar:()=>Nn,call:()=>gr,chat:()=>ln,clipboard:()=>Tn,conversations:()=>Wt,dialog:()=>ke,enablePrintCapability:()=>Sr,executeDeepLink:()=>xr,files:()=>fo,geoLocation:()=>In,getAdaptiveCardSchemaVersion:()=>On,getContext:()=>Tr,getMruTabInstances:()=>Lr,getTabInstances:()=>Nr,initialize:()=>br,initializeWithFrameContext:()=>Wr,liveShare:()=>qr,location:()=>An,logs:()=>Lt,mail:()=>Ln,marketplace:()=>lo,media:()=>cn,meeting:()=>Dn,meetingRoom:()=>po,menus:()=>Ae,monetization:()=>Un,navigateBack:()=>zr,navigateCrossDomain:()=>jr,navigateToTab:()=>Br,notifications:()=>mo,openFilePreview:()=>en,pages:()=>Me,people:()=>xn,print:()=>Er,profile:()=>Vn,registerAppButtonClickHandler:()=>Fr,registerAppButtonHoverEnterHandler:()=>Or,registerAppButtonHoverLeaveHandler:()=>kr,registerBackButtonHandler:()=>Ar,registerBeforeUnloadHandler:()=>Mr,registerChangeSettingsHandler:()=>Ur,registerCustomHandler:()=>$t,registerFocusEnterHandler:()=>Dr,registerFullScreenHandler:()=>Pr,registerOnLoadHandler:()=>Rr,registerOnThemeChangeHandler:()=>Ir,registerUserSettingsChangeHandler:()=>Yt,remoteCamera:()=>ho,returnFocus:()=>_r,search:()=>or,secondaryBrowser:()=>kn,sendCustomEvent:()=>Qt,sendCustomMessage:()=>Xt,setFrameContext:()=>Vr,settings:()=>vr,shareDeepLink:()=>Hr,sharing:()=>ir,stageView:()=>ar,tasks:()=>Gr,teams:()=>wo,teamsCore:()=>Hn,uploadCustomApp:()=>Zt,version:()=>De,videoEffects:()=>rr,videoEffectsEx:()=>Co,visualMedia:()=>mr,webStorage:()=>hr});var e="2.0.1",t="2.0.3",o="1.9.0",i="1.8.0",a=["teams.microsoft.com","teams.microsoft.us","gov.teams.microsoft.us","dod.teams.microsoft.us","int.teams.microsoft.com","teams.live.com","devspaces.skype.com","ssauth.skype.com","local.teams.live.com","local.teams.live.com:8080","local.teams.office.com","local.teams.office.com:8080","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","bing.com","edgeservices.bing.com","www.bing.com","www.staging-bing-int.com","teams.cloud.microsoft","outlook.cloud.microsoft","m365.cloud.microsoft"],s=/^https:\/\//,c="https",u="teams.microsoft.com",l="The library has not yet been initialized",d="The runtime has not yet been initialized",f="The runtime version is not supported",p=function(){function e(){}return e.initializeCalled=!1,e.initializeCompleted=!1,e.additionalValidOrigins=[],e.isFramelessWindow=!1,e.printCapabilityEnabled=!1,e}(),m=(0,n(302).debug)("teamsJs");function h(e){return m.extend(e)}const g={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let w;const v=new Uint8Array(16);function C(){if(!w&&(w="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!w))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return w(v)}const y=[];for(let e=0;e<256;++e)y.push((e+256).toString(16).slice(1));function b(e,t=0){return(y[e[t+0]]+y[e[t+1]]+y[e[t+2]]+y[e[t+3]]+"-"+y[e[t+4]]+y[e[t+5]]+"-"+y[e[t+6]]+y[e[t+7]]+"-"+y[e[t+8]]+y[e[t+9]]+"-"+y[e[t+10]]+y[e[t+11]]+y[e[t+12]]+y[e[t+13]]+y[e[t+14]]+y[e[t+15]]).toLowerCase()}const S=function(e,t,n){if(g.randomUUID&&!t&&!e)return g.randomUUID();const r=(e=e||{}).random||(e.rng||C)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return b(r)};var E,T,I,P,F,O,k,A,R,M,D,U;!function(e){e.Inline="inline",e.Desktop="desktop",e.Web="web"}(E||(E={})),function(e){e.M365Content="m365content"}(T||(T={})),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"}(P||(P={})),function(e){e.GeoLocation="geolocation",e.Media="media"}(F||(F={})),function(e){e.TextPlain="text/plain",e.TextHtml="text/html",e.ImagePNG="image/png",e.ImageJPEG="image/jpeg"}(O||(O={})),function(e){e.desktop="desktop",e.web="web",e.android="android",e.ios="ios",e.ipados="ipados",e.macos="macos",e.rigel="rigel",e.surfaceHub="surfaceHub",e.teamsRoomsWindows="teamsRoomsWindows",e.teamsRoomsAndroid="teamsRoomsAndroid",e.teamsPhones="teamsPhones",e.teamsDisplays="teamsDisplays"}(k||(k={})),function(e){e.office="Office",e.outlook="Outlook",e.outlookWin32="OutlookWin32",e.orange="Orange",e.places="Places",e.teams="Teams",e.teamsModern="TeamsModern"}(A||(A={})),function(e){e.settings="settings",e.content="content",e.authentication="authentication",e.remove="remove",e.task="task",e.sidePanel="sidePanel",e.stage="stage",e.meetingStage="meetingStage"}(R||(R={})),function(e){e[e.Standard=0]="Standard",e[e.Edu=1]="Edu",e[e.Class=2]="Class",e[e.Plc=3]="Plc",e[e.Staff=4]="Staff"}(M||(M={})),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"}(U||(U={}));var N,L=U;!function(e){e.Regular="Regular",e.Private="Private",e.Shared="Shared"}(N||(N={}));var H={errorCode:P.NOT_SUPPORTED_ON_PLATFORM},x=1,V=5,W={adaptiveCardSchemaVersion:{majorVersion:1,minorVersion:5}},_=new Error("Invalid input count: Must supply a valid image count (limit of 10)."),B=new Error("Invalid response: Received more images than the specified max limit in the response.");function j(e,t){if("*."===e.substring(0,2)){var n=e.substring(1);if(t.length>n.length&&t.split(".").length===n.split(".").length&&t.substring(t.length-n.length)===n)return!0}else if(e===t)return!0;return!1}var z=h("validateOrigin");function G(e){if(!ne(e))return z("Origin %s is invalid because it is not using https protocol. Protocol being used: %s",e,e.protocol),!1;var t=e.host;if(a.some((function(e){return j(e,t)})))return!0;for(var n=0,r=p.additionalValidOrigins;n<r.length;n++){var o=r[n];if(j("https://"===o.substring(0,8)?o.substring(8):o,t))return!0}return z("Origin %s is invalid because it is not an origin approved by this library or included in the call to app.initialize.\nOrigins approved by this library: %o\nOrigins included in app.initialize: %o",e,a,p.additionalValidOrigins),!1}function q(e){return function(t,n){if(!t)throw new Error(e||n)}}function J(e,t){if("string"!=typeof e||"string"!=typeof t)return NaN;var n=e.split("."),r=t.split(".");function o(e){return/^\d+$/.test(e)}if(!n.every(o)||!r.every(o))return NaN;for(;n.length<r.length;)n.push("0");for(;r.length<n.length;)r.push("0");for(var i=0;i<n.length;++i)if(Number(n[i])!=Number(r[i]))return Number(n[i])>Number(r[i])?1:-1;return 0}function K(){return S()}function Z(e){return Object.keys(e).forEach((function(t){"object"==typeof e[t]&&Z(e[t])})),Object.freeze(e)}function X(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=e.apply(void 0,n);return o.then((function(e){t&&t(void 0,e)})).catch((function(e){t&&t(e)})),o}function Q(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=e.apply(void 0,n);return o.then((function(){t&&t(null)})).catch((function(e){t&&t(e)})),o}function $(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=e.apply(void 0,n);return o.then((function(e){t&&t(null,e)})).catch((function(e){t&&t(e,null)})),o}function Y(e,t,n){return new Promise((function(r,o){var i=setTimeout(o,t,n);e().then((function(e){clearTimeout(i),r(e)})).catch((function(e){clearTimeout(i),o(e)}))}))}function ee(e){var t=new URL("https://teams.microsoft.com/l/entity/"+encodeURIComponent(e.appId)+"/"+encodeURIComponent(e.pageId));return e.webUrl&&t.searchParams.append("webUrl",e.webUrl),(e.channelId||e.subPageId)&&t.searchParams.append("context",JSON.stringify({channelId:e.channelId,subEntityId:e.subPageId})),t.toString()}function te(e){return!(J("".concat(e.majorVersion,".").concat(e.minorVersion),"".concat(x,".").concat(V))>=0)}function ne(e){return"https:"===e.protocol}function re(e,t){return new Promise((function(n,r){e||r("MimeType cannot be null or empty."),t||r("Base64 string cannot be null or empty.");var o=atob(t);if(e.startsWith("image/")){for(var i=new Uint8Array(o.length),a=0;a<o.length;a++)i[a]=o.charCodeAt(a);n(new Blob([i],{type:e}))}n(new Blob([o],{type:e}))}))}function oe(e){return new Promise((function(t,n){0===e.size&&n(new Error("Blob cannot be empty."));var r=new FileReader;r.onloadend=function(){r.result?t(r.result.toString().split(",")[1]):n(new Error("Failed to read the blob"))},r.onerror=function(){n(r.error)},r.readAsDataURL(e)}))}function ie(){if(ae())throw new Error("window object undefined at SSR check");return window}function ae(){return"undefined"==typeof window}var se=function(){return se=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},se.apply(this,arguments)},ce=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},ue=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},le=h("runtime"),de=3;function fe(e){return e.apiVersion===de}var pe={apiVersion:-1,supports:{}};function me(e){if(fe(e))return!0;throw-1===e.apiVersion?new Error(d):new Error(f)}var he=pe,ge={apiVersion:3,hostVersionsInfo:W,isLegacyTeams:!0,supports:{app:{lifecycle:{}},appInstallDialog:{},appEntity:{},call:{},chat:{},conversations:{},dialog:{card:{bot:{}},url:{bot:{}},update:{}},interactive:{},logs:{},meetingRoom:{},menus:{},monetization:{},notifications:{},pages:{config:{},backStack:{},fullTrust:{}},remoteCamera:{},teams:{fullTrust:{}},teamsCore:{},video:{sharedFrame:{}}}},we=[k.desktop,k.web,k.rigel,k.surfaceHub,k.teamsRoomsWindows,k.teamsRoomsAndroid,k.teamsPhones,k.teamsDisplays],ve=[k.android,k.ios,k.ipados],Ce=ue(ue([],we,!0),ve,!0);function ye(e){var t=e;if(t.apiVersion<de&&be.forEach((function(e){t.apiVersion===e.versionToUpgradeFrom&&(t=e.upgradeToNextVersion(t))})),fe(t))return t;throw new Error("Received a runtime that could not be upgraded to the latest version")}var be=[{versionToUpgradeFrom:1,upgradeToNextVersion:function(e){var t;return{apiVersion:2,hostVersionsInfo:void 0,isLegacyTeams:e.isLegacyTeams,supports:se(se({},e.supports),{dialog:e.supports.dialog?{card:void 0,url:e.supports.dialog,update:null===(t=e.supports.dialog)||void 0===t?void 0:t.update}:void 0})}}},{versionToUpgradeFrom:2,upgradeToNextVersion:function(e){var t=e.supports,n=(t.appNotification,ce(t,["appNotification"]));return se(se({},e),{apiVersion:3,supports:n})}}],Se={"1.0.0":[{capability:{pages:{appButton:{},tabs:{}},stageView:{}},hostClientTypes:we}],"1.9.0":[{capability:{location:{}},hostClientTypes:Ce}],"2.0.0":[{capability:{people:{}},hostClientTypes:Ce},{capability:{sharing:{}},hostClientTypes:[k.desktop,k.web]}],"2.0.1":[{capability:{teams:{fullTrust:{joinedTeams:{}}}},hostClientTypes:[k.android,k.desktop,k.ios,k.teamsRoomsAndroid,k.teamsPhones,k.teamsDisplays,k.web]},{capability:{webStorage:{}},hostClientTypes:[k.desktop]}],"2.0.5":[{capability:{webStorage:{}},hostClientTypes:[k.android,k.desktop,k.ios]}]},Ee=le.extend("generateBackCompatRuntimeConfig");function Te(e,t){var n=se({},e);for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&("object"!=typeof t[r]||Array.isArray(t[r])?r in e||(n[r]=t[r]):n[r]=Te(e[r]||{},t[r]));return n}function Ie(e,t,n){Ee("generating back compat runtime config for %s",e);var r=se({},t.supports);Ee("Supported capabilities in config before updating based on highestSupportedVersion: %o",r),Object.keys(n).forEach((function(t){J(e,t)>=0&&n[t].forEach((function(e){e.hostClientTypes.includes(p.hostClientType)&&(r=Te(r,e.capability))}))}));var o={apiVersion:de,hostVersionsInfo:W,isLegacyTeams:!0,supports:r};return Ee("Runtime config after updating based on highestSupportedVersion: %o",o),o}var Pe=le.extend("applyRuntimeConfig");function Fe(e){"string"==typeof e.apiVersion&&(Pe("Trying to apply runtime with string apiVersion, processing as v1: %o",e),e=se(se({},e),{apiVersion:1})),Pe("Fast-forwarding runtime %o",e);var t=ye(e);Pe("Applying runtime %o",t),he=Z(t)}var Oe,ke,Ae,Re,Me,De="2.17.0",Ue=h("internal"),Ne=Ue.extend("ensureInitializeCalled"),Le=Ue.extend("ensureInitialized");function He(){if(!p.initializeCalled)throw Ne(l),new Error(l)}function xe(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!p.initializeCompleted)throw Le("%s. initializeCalled: %s",l,p.initializeCalled.toString()),new Error(l);if(t&&t.length>0){for(var r=!1,o=0;o<t.length;o++)if(t[o]===p.frameContext){r=!0;break}if(!r)throw new Error("This call is only allowed in following contexts: ".concat(JSON.stringify(t),". ")+'Current context: "'.concat(p.frameContext,'".'))}return me(e)}function Ve(t){void 0===t&&(t=e);var n=J(p.clientSupportedSDKVersion,t);return!isNaN(n)&&n>=0}function We(){return p.hostClientType==k.android||p.hostClientType==k.ios||p.hostClientType==k.ipados}function _e(t){if(void 0===t&&(t=e),!We())throw{errorCode:P.NOT_SUPPORTED_ON_PLATFORM};if(!Ve(t))throw{errorCode:P.OLD_PLATFORM}}function Be(e){var t=p.additionalValidOrigins.concat(e.filter((function(e){return"string"==typeof e&&s.test(e)}))),n={};t=t.filter((function(e){return!n[e]&&(n[e]=!0,!0)})),p.additionalValidOrigins=t}function je(e){return null==e}function ze(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:A.teams,clientType:e.hostClientType?e.hostClientType:k.web,sessionId:e.sessionId?e.sessionId:"",ringId:e.ringId},appLaunchId:e.appLaunchId},page:{id:e.entityId,frameContext:e.frameContext?e.frameContext:p.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 t,n,r;function o(e){return new Promise((function(n,r){if(p.hostClientType===k.desktop||p.hostClientType===k.android||p.hostClientType===k.ios||p.hostClientType===k.ipados||p.hostClientType===k.macos||p.hostClientType===k.rigel||p.hostClientType===k.teamsRoomsWindows||p.hostClientType===k.teamsRoomsAndroid||p.hostClientType===k.teamsPhones||p.hostClientType===k.teamsDisplays||p.hostClientType===k.surfaceHub){var o=document.createElement("a");o.href=e.url,n(yt("authentication.authenticate",[o.href,e.width,e.height,e.isExternal]).then((function(e){var t=e[0],n=e[1];if(t)return n;throw new Error(n)})))}else t={success:n,fail:r},c(e)}))}function i(e){return new Promise((function(t){t(yt("authentication.getAuthToken",[null==e?void 0:e.resources,null==e?void 0:e.claims,null==e?void 0:e.silent]))})).then((function(e){var t=e[0],n=e[1];if(t)return n;throw new Error(n)}))}function a(){return new Promise((function(e){e(yt("authentication.getUser"))})).then((function(e){var t=e[0],n=e[1];if(t)return n;throw new Error(n)}))}function s(){u();try{ft.childWindow&&ft.childWindow.close()}finally{ft.childWindow=null,ft.childOrigin=null}}function c(e){s();var t=e.width||600,n=e.height||400;t=Math.min(t,ft.currentWindow.outerWidth-400),n=Math.min(n,ft.currentWindow.outerHeight-200);var r=document.createElement("a");r.href=e.url.replace("{oauthRedirectMethod}","web");var o=void 0!==ft.currentWindow.screenLeft?ft.currentWindow.screenLeft:ft.currentWindow.screenX,i=void 0!==ft.currentWindow.screenTop?ft.currentWindow.screenTop:ft.currentWindow.screenY;o+=ft.currentWindow.outerWidth/2-t/2,i+=ft.currentWindow.outerHeight/2-n/2,ft.childWindow=ft.currentWindow.open(r.href,"_blank","toolbar=no, location=yes, status=no, menubar=no, scrollbars=yes, top="+i+", left="+o+", width="+t+", height="+n),ft.childWindow?l():f("FailedToOpenWindow")}function u(){n&&(clearInterval(n),n=0),Ye("initialize"),Ye("navigateCrossDomain")}function l(){u(),n=ft.currentWindow.setInterval((function(){if(!ft.childWindow||ft.childWindow.closed)f("CancelledByUser");else{var e=ft.childOrigin;try{ft.childOrigin="*",Gt("ping")}finally{ft.childOrigin=e}}}),100),$e("initialize",(function(){return[R.authentication,p.hostClientType]})),$e("navigateCrossDomain",(function(){return!1}))}function d(e){try{t&&t.success(e)}finally{t=null,s()}}function f(e){try{t&&t.fail(new Error(e))}finally{t=null,s()}}function m(e,t,n){if(e){var r=document.createElement("a");r.href=decodeURIComponent(e),r.host&&r.host!==ie().location.host&&"outlook.office.com"===r.host&&r.search.indexOf("client_type=Win32_Outlook")>-1&&(t&&"result"===t&&(n&&(r.href=h(r.href,"result",n)),ft.currentWindow.location.assign(h(r.href,"authSuccess",""))),t&&"reason"===t&&(n&&(r.href=h(r.href,"reason",n)),ft.currentWindow.location.assign(h(r.href,"authFailure",""))))}}function h(e,t,n){var r=e.indexOf("#"),o=-1===r?"#":e.substr(r);return o=o+"&"+t+(""!==n?"="+n:""),(e=-1===r?e:e.substr(0,r))+o}e.initialize=function(){$e("authentication.authenticate.success",d,!1),$e("authentication.authenticate.failure",f,!1)},e.registerAuthenticationHandlers=function(e){r=e},e.authenticate=function(e){var t=void 0!==e,n=t?e:r;if(!n)throw new Error("No parameters are provided for authentication");return xe(he,R.content,R.sidePanel,R.settings,R.remove,R.task,R.stage,R.meetingStage),o(n).then((function(e){try{return n&&n.successCallback?(n.successCallback(e),""):e}finally{t||(r=null)}})).catch((function(e){try{if(n&&n.failureCallback)return n.failureCallback(e.message),"";throw e}finally{t||(r=null)}}))},e.getAuthToken=function(e){return He(),i(e).then((function(t){return e&&e.successCallback?(e.successCallback(t),""):t})).catch((function(t){if(e&&e.failureCallback)return e.failureCallback(t.message),"";throw t}))},e.getUser=function(e){return He(),a().then((function(t){return e&&e.successCallback?(e.successCallback(t),null):t})).catch((function(t){if(e&&e.failureCallback)return e.failureCallback(t.message),null;throw t}))},e.notifySuccess=function(e,t){m(t,"result",e),xe(he,R.authentication),St("authentication.authenticate.success",[e]),jt(ft.parentWindow,(function(){return setTimeout((function(){return ft.currentWindow.close()}),200)}))},e.notifyFailure=function(e,t){m(t,"reason",e),xe(he,R.authentication),St("authentication.authenticate.failure",[e]),jt(ft.parentWindow,(function(){return setTimeout((function(){return ft.currentWindow.close()}),200)}))},function(e){e.Public="public",e.EUDB="eudb",e.Other="other"}(e.DataResidency||(e.DataResidency={}))}(Oe||(Oe={})),function(e){var t=[];function n(e){p.frameContext&&(p.frameContext===R.task?t.push(e):Ye("messageForChild"))}e.initialize=function(){$e("messageForChild",n,!1)},function(e){function n(){return xe(he)&&void 0!==(he.supports.dialog&&he.supports.dialog.url)}function r(e){return{url:e.url,height:e.size?e.size.height:U.Small,width:e.size?e.size.width:U.Small,title:e.title,fallbackUrl:e.fallbackUrl}}function o(e){var t=r(e);return t.completionBotId=e.completionBotId,t}e.open=function(e,t,o){if(xe(he,R.content,R.sidePanel,R.meetingStage),!n())throw H;o&&$e("messageForParent",o),St("tasks.startTask",[r(e)],(function(e,n){null==t||t({err:e,result:n}),Ye("messageForParent")}))},e.submit=function(e,t){if(xe(he,R.content,R.task),!n())throw H;St("tasks.completeTask",[e,t?Array.isArray(t)?t:[t]:[]])},e.sendMessageToParentFromDialog=function(e){if(xe(he,R.task),!n())throw H;St("messageForParent",[e])},e.sendMessageToDialog=function(e){if(xe(he,R.content,R.sidePanel,R.meetingStage),!n())throw H;St("messageForChild",[e])},e.registerOnMessageFromParent=function(e){if(xe(he,R.task),!n())throw H;for(Ye("messageForChild"),$e("messageForChild",e),t.reverse();t.length>0;){e(t.pop())}},e.isSupported=n,function(e){function t(){return xe(he)&&void 0!==(he.supports.dialog&&he.supports.dialog.url&&he.supports.dialog.url.bot)}e.open=function(e,n,r){if(xe(he,R.content,R.sidePanel,R.meetingStage),!t())throw H;r&&$e("messageForParent",r),St("tasks.startTask",[o(e)],(function(e,t){null==n||n({err:e,result:t}),Ye("messageForParent")}))},e.isSupported=t}(e.bot||(e.bot={})),e.getDialogInfoFromUrlDialogInfo=r,e.getDialogInfoFromBotUrlDialogInfo=o}(e.url||(e.url={})),e.isSupported=function(){return!(!xe(he)||!he.supports.dialog)},function(e){function t(){return!(!xe(he)||!he.supports.dialog)&&!!he.supports.dialog.update}e.resize=function(e){if(xe(he,R.content,R.sidePanel,R.task,R.meetingStage),!t())throw H;St("tasks.updateTask",[e])},e.isSupported=t}(e.update||(e.update={})),function(e){function t(){var e=he.hostVersionsInfo&&he.hostVersionsInfo.adaptiveCardSchemaVersion&&!te(he.hostVersionsInfo.adaptiveCardSchemaVersion);return xe(he)&&void 0!==(e&&he.supports.dialog&&he.supports.dialog.card)}function n(e){return{card:e.card,height:e.size?e.size.height:U.Small,width:e.size?e.size.width:U.Small,title:e.title}}function r(e){var t=n(e);return t.completionBotId=e.completionBotId,t}e.open=function(e,r){if(xe(he,R.content,R.sidePanel,R.meetingStage),!t())throw H;St("tasks.startTask",[n(e)],(function(e,t){null==r||r({err:e,result:t})}))},e.isSupported=t,function(e){function t(){var e=he.hostVersionsInfo&&he.hostVersionsInfo.adaptiveCardSchemaVersion&&!te(he.hostVersionsInfo.adaptiveCardSchemaVersion);return xe(he)&&void 0!==(e&&he.supports.dialog&&he.supports.dialog.card&&he.supports.dialog.card.bot)}e.open=function(e,n){if(xe(he,R.content,R.sidePanel,R.meetingStage),!t())throw H;St("tasks.startTask",[r(e)],(function(e,t){null==n||n({err:e,result:t})}))},e.isSupported=t}(e.bot||(e.bot={}))}(e.adaptiveCard||(e.adaptiveCard={}))}(ke||(ke={})),function(e){!function(e){e[e.ifRoom=0]="ifRoom",e[e.overflowOnly=1]="overflowOnly"}(e.DisplayMode||(e.DisplayMode={}));var t,n,r,o=function(){return function(){this.enabled=!0,this.selected=!1}}();function i(e){r&&r(e)||(xe(he),St("viewConfigItemPress",[e]))}function a(e){t&&t(e)||(xe(he),St("handleNavBarMenuItemPress",[e]))}function s(e){n&&n(e)||(xe(he),St("handleActionMenuItemPress",[e]))}function c(){return!(!xe(he)||!he.supports.menus)}e.MenuItem=o,function(e){e.dropDown="dropDown",e.popOver="popOver"}(e.MenuListType||(e.MenuListType={})),e.initialize=function(){$e("navBarMenuItemPress",a,!1),$e("actionMenuItemPress",s,!1),$e("setModuleView",i,!1)},e.setUpViews=function(e,t){if(xe(he),!c())throw H;r=t,St("setUpViews",[e])},e.setNavBarMenu=function(e,n){if(xe(he),!c())throw H;t=n,St("setNavBarMenu",[e])},e.showActionMenu=function(e,t){if(xe(he),!c())throw H;n=t,St("showActionMenu",[e])},e.isSupported=c}(Ae||(Ae={})),function(t){var n=h("app");t.Messages={AppLoaded:"appInitialization.appLoaded",Success:"appInitialization.success",Failure:"appInitialization.failure",ExpectedFailure:"appInitialization.expectedFailure"},function(e){e.AuthFailed="AuthFailed",e.Timeout="Timeout",e.Other="Other"}(t.FailedReason||(t.FailedReason={})),function(e){e.PermissionError="PermissionError",e.NotFound="NotFound",e.Throttling="Throttling",e.Offline="Offline",e.Other="Other"}(t.ExpectedFailureReason||(t.ExpectedFailureReason={})),t.isInitialized=function(){return p.initializeCompleted},t.getFrameContext=function(){return p.frameContext};!function(){if(!ae()){var e=document.getElementsByTagName("script"),t=e&&e[e.length-1]&&e[e.length-1].src,r="Today, teamsjs can only be used from a single script or you may see undefined behavior. This log line is used to help detect cases where teamsjs is loaded multiple times -- it is always written. The presence of the log itself does not indicate a multi-load situation, but multiples of these log lines will. If you would like to use teamjs from more than one script at the same time, please open an issue at https://github.com/OfficeDev/microsoft-teams-library-js/issues";t&&0!==t.length?n("teamsjs is being used from %s. %s",t,r):n("teamsjs is being used from a script tag embedded directly in your html. %s",r)}}(),t.initialize=function(e){return ae()?(n.extend("initialize")("window object undefined at initialization"),Promise.resolve()):Y((function(){return o(e)}),5e3,new Error("SDK initialization timed out."))};var r=n.extend("initializeHelper");function o(t){return new Promise((function(n){p.initializeCalled||(p.initializeCalled=!0,Ke(),p.initializePromise=mt(t).then((function(t){var n=t.context,o=t.clientType,i=t.runtimeConfig,a=t.clientSupportedSDKVersion,s=void 0===a?e:a;p.frameContext=n,p.hostClientType=o,p.clientSupportedSDKVersion=s;try{r("Parsing %s",i);var c=JSON.parse(i);if(r("Checking if %o is a valid runtime object",null!=c?c:"null"),!c||!c.apiVersion)throw new Error("Received runtime config is invalid");i&&Fe(c)}catch(t){if(!(t instanceof SyntaxError))throw t;try{r("Attempting to parse %s as an SDK version",i),isNaN(J(i,e))||(p.clientSupportedSDKVersion=i);c=JSON.parse(s);if(r("givenRuntimeConfig parsed to %o",null!=c?c:"null"),!c)throw new Error("givenRuntimeConfig string was successfully parsed. However, it parsed to value of null");Fe(c)}catch(e){if(!(e instanceof SyntaxError))throw e;Fe(Ie(p.clientSupportedSDKVersion,ge,Se))}}p.initializeCompleted=!0})),Oe.initialize(),Ae.initialize(),Me.config.initialize(),ke.initialize()),Array.isArray(t)&&Be(t),n(p.initializePromise)}))}t._initialize=function(e){ft.currentWindow=e},t._uninitialize=function(){p.initializeCalled&&(Ze(),p.initializeCalled=!1,p.initializeCompleted=!1,p.initializePromise=null,p.additionalValidOrigins=[],p.frameContext=null,p.hostClientType=null,p.isFramelessWindow=!1,ht())},t.getContext=function(){return new Promise((function(e){He(),e(gt("getContext"))})).then((function(e){return ze(e)}))},t.notifyAppLoaded=function(){He(),St(t.Messages.AppLoaded,[De])},t.notifySuccess=function(){He(),St(t.Messages.Success,[De])},t.notifyFailure=function(e){He(),St(t.Messages.Failure,[e.reason,e.message])},t.notifyExpectedFailure=function(e){He(),St(t.Messages.ExpectedFailure,[e.reason,e.message])},t.registerOnThemeChangeHandler=function(e){e&&He(),nt(e)},t.openLink=function(e){return new Promise((function(t){xe(he,R.content,R.sidePanel,R.settings,R.task,R.stage,R.meetingStage),t(wt("executeDeepLink",e))}))},function(e){function t(){var e;return xe(he)&&!!(null===(e=he.supports.app)||void 0===e?void 0:e.lifecycle)}e.registerBeforeSuspendOrTerminateHandler=function(e){if(!e)throw new Error("[app.lifecycle.registerBeforeSuspendOrTerminateHandler] Handler cannot be null");if(!t())throw H;ct(e)},e.registerOnResumeHandler=function(e){if(!e)throw new Error("[app.lifecycle.registerOnResumeHandler] Handler cannot be null");if(!t())throw H;ut(e)},e.isSupported=t}(t.lifecycle||(t.lifecycle={}))}(Re||(Re={})),function(e){function t(e){if(xe(he,R.content),!n())throw H;St("setFrameContext",[e])}function n(){return!(!xe(he)||!he.supports.pages)}e.returnFocus=function(e){if(xe(he),!n())throw H;St("returnFocus",[e])},e.registerFocusEnterHandler=function(e){tt("focusEnter",e,[],(function(){if(!n())throw H}))},e.setCurrentFrame=t,e.initializeWithFrameContext=function(e,n,r){Re.initialize(r).then((function(){return n&&n()})),t(e)},e.getConfig=function(){return new Promise((function(e){if(xe(he,R.content,R.settings,R.remove,R.sidePanel),!n())throw H;e(gt("settings.getSettings"))}))},e.navigateCrossDomain=function(e){return new Promise((function(t){if(xe(he,R.content,R.sidePanel,R.settings,R.remove,R.task,R.stage,R.meetingStage),!n())throw H;t(vt("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(t){if(xe(he,R.content,R.sidePanel,R.settings,R.task,R.stage,R.meetingStage),!n())throw H;he.isLegacyTeams?t(wt("executeDeepLink",ee(e))):t(wt("pages.navigateToApp",e))}))},e.shareDeepLink=function(e){if(xe(he,R.content,R.sidePanel,R.meetingStage),!n())throw H;St("shareDeepLink",[e.subPageId,e.subPageLabel,e.subPageWebUrl])},e.registerFullScreenHandler=function(e){tt("fullScreenChange",e,[],(function(){if(!je(e)&&!n())throw H}))},e.isSupported=n,function(e){function t(){return!(!xe(he)||!he.supports.pages)&&!!he.supports.pages.tabs}e.navigateToTab=function(e){return new Promise((function(n){if(xe(he),!t())throw H;n(vt("navigateToTab","Invalid internalTabInstanceId and/or channelId were/was provided",e))}))},e.getTabInstances=function(e){return new Promise((function(n){if(xe(he),!t())throw H;n(gt("getTabInstances",e))}))},e.getMruTabInstances=function(e){return new Promise((function(n){if(xe(he),!t())throw H;n(gt("getMruTabInstances",e))}))},e.isSupported=t}(e.tabs||(e.tabs={})),function(e){var t,n;function r(e,n){!je(e)&&xe(he,R.settings),n&&n(),t=e,!je(e)&&St("registerHandler",["save"])}function o(e,t){!je(e)&&xe(he,R.remove,R.settings),t&&t(),n=e,!je(e)&&St("registerHandler",["remove"])}function i(e){var n=new a(e);t?t(n):ft.childWindow?Gt("settings.save",[e]):n.notifySuccess()}e.initialize=function(){$e("settings.save",i,!1),$e("settings.remove",s,!1)},e.setValidityState=function(e){if(xe(he,R.settings,R.remove),!u())throw H;St("settings.setValidityState",[e])},e.setConfig=function(e){return new Promise((function(t){if(xe(he,R.content,R.settings,R.sidePanel),!u())throw H;t(wt("settings.setSettings",e))}))},e.registerOnSaveHandler=function(e){r(e,(function(){if(!je(e)&&!u())throw H}))},e.registerOnSaveHandlerHelper=r,e.registerOnRemoveHandler=function(e){o(e,(function(){if(!je(e)&&!u())throw H}))},e.registerOnRemoveHandlerHelper=o,e.registerChangeConfigHandler=function(e){tt("changeSettings",e,[R.content],(function(){if(!u())throw H}))};var a=function(){function e(e){this.notified=!1,this.result=e||{}}return e.prototype.notifySuccess=function(){this.ensureNotNotified(),St("settings.save.success"),this.notified=!0},e.prototype.notifyFailure=function(e){this.ensureNotNotified(),St("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 c;n?n(e):ft.childWindow?Gt("settings.remove",[]):e.notifySuccess()}var c=function(){function e(){this.notified=!1}return e.prototype.notifySuccess=function(){this.ensureNotNotified(),St("settings.remove.success"),this.notified=!0},e.prototype.notifyFailure=function(e){this.ensureNotNotified(),St("settings.remove.failure",[e]),this.notified=!0},e.prototype.ensureNotNotified=function(){if(this.notified)throw new Error("The removeEventType may only notify success or failure once.")},e}();function u(){return!(!xe(he)||!he.supports.pages)&&!!he.supports.pages.config}e.isSupported=u}(e.config||(e.config={})),function(e){var t;function n(){return new Promise((function(e){if(xe(he),!i())throw H;e(vt("navigateBack","Back navigation is not supported in the current client or context."))}))}function r(e,n){!je(e)&&xe(he),n&&n(),t=e,!je(e)&&St("registerHandler",["backButton"])}function o(){t&&t()||(ft.childWindow?Gt("backButtonPress",[]):n())}function i(){return!(!xe(he)||!he.supports.pages)&&!!he.supports.pages.backStack}e._initialize=function(){$e("backButtonPress",o,!1)},e.navigateBack=n,e.registerBackButtonHandler=function(e){r(e,(function(){if(!je(e)&&!i())throw H}))},e.registerBackButtonHandlerHelper=r,e.isSupported=i}(e.backStack||(e.backStack={})),function(e){function t(){return!(!xe(he)||!he.supports.pages)&&!!he.supports.pages.fullTrust}e.enterFullscreen=function(){if(xe(he,R.content),!t())throw H;St("enterFullscreen",[])},e.exitFullscreen=function(){if(xe(he,R.content),!t())throw H;St("exitFullscreen",[])},e.isSupported=t}(e.fullTrust||(e.fullTrust={})),function(e){function t(){return!(!xe(he)||!he.supports.pages)&&!!he.supports.pages.appButton}e.onClick=function(e){tt("appButtonClick",e,[R.content],(function(){if(!t())throw H}))},e.onHoverEnter=function(e){tt("appButtonHoverEnter",e,[R.content],(function(){if(!t())throw H}))},e.onHoverLeave=function(e){tt("appButtonHoverLeave",e,[R.content],(function(){if(!t())throw H}))},e.isSupported=t}(e.appButton||(e.appButton={})),function(e){function t(){return!(!xe(he)||!he.supports.pages)&&!!he.supports.pages.currentApp}e.navigateTo=function(e){return new Promise((function(n){if(xe(he,R.content,R.sidePanel,R.settings,R.task,R.stage,R.meetingStage),!t())throw H;n(Ct("pages.currentApp.navigateTo",e))}))},e.navigateToDefaultPage=function(){return new Promise((function(e){if(xe(he,R.content,R.sidePanel,R.settings,R.task,R.stage,R.meetingStage),!t())throw H;e(Ct("pages.currentApp.navigateToDefaultPage"))}))},e.isSupported=t}(e.currentApp||(e.currentApp={}))}(Me||(Me={}));var Ge=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},qe=h("handlers"),Je=function(){function e(){}return e.initializeHandlers=function(){e.handlers.themeChange=rt,e.handlers.load=it,e.handlers.beforeUnload=st,Me.backStack._initialize()},e.uninitializeHandlers=function(){e.handlers={},e.themeChangeHandler=null,e.loadHandler=null,e.beforeUnloadHandler=null,e.beforeSuspendOrTerminateHandler=null,e.resumeHandler=null},e.handlers={},e}();function Ke(){Je.initializeHandlers()}function Ze(){Je.uninitializeHandlers()}var Xe=qe.extend("callHandler");function Qe(e,t){var n=Je.handlers[e];return n?(Xe("Invoking the registered handler for message %s with arguments %o",e,t),[!0,n.apply(this,t)]):ft.childWindow?(Gt(e,t),[!1,void 0]):(Xe("Handler for action message %s not found.",e),[!1,void 0])}function $e(e,t,n,r){void 0===n&&(n=!0),void 0===r&&(r=[]),t?(Je.handlers[e]=t,n&&St("registerHandler",Ge([e],r,!0))):delete Je.handlers[e]}function Ye(e){delete Je.handlers[e]}function et(e){return null!=Je.handlers[e]}function tt(e,t,n,r){t&&xe.apply(void 0,Ge([he],n,!1)),r&&r(),$e(e,t)}function nt(e){Je.themeChangeHandler=e,e&&St("registerHandler",["themeChange"])}function rt(e){Je.themeChangeHandler&&Je.themeChangeHandler(e),ft.childWindow&&Gt("themeChange",[e])}function ot(e){Je.loadHandler=e,e&&St("registerHandler",["load"])}function it(e){Je.resumeHandler?Je.resumeHandler(e):Je.loadHandler&&Je.loadHandler(e),ft.childWindow&&Gt("load",[e])}function at(e){Je.beforeUnloadHandler=e,e&&St("registerHandler",["beforeUnload"])}function st(){var e=function(){St("readyToUnload",[])};Je.beforeSuspendOrTerminateHandler?(Je.beforeSuspendOrTerminateHandler(),ft.childWindow?Gt("beforeUnload"):e()):Je.beforeUnloadHandler&&Je.beforeUnloadHandler(e)||(ft.childWindow?Gt("beforeUnload"):e())}function ct(e){Je.beforeSuspendOrTerminateHandler=e,e&&St("registerHandler",["beforeUnload"])}function ut(e){Je.resumeHandler=e,e&&St("registerHandler",["load"])}var lt=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},dt=h("communication"),ft=function(){return function(){}}(),pt=function(){function e(){}return e.parentMessageQueue=[],e.childMessageQueue=[],e.nextMessageId=0,e.callbacks={},e.promiseCallbacks={},e}();function mt(e){if(pt.messageListener=function(e){return Pt(e)},ft.currentWindow=ft.currentWindow||ie(),ft.parentWindow=ft.currentWindow.parent!==ft.currentWindow.self?ft.currentWindow.parent:ft.currentWindow.opener,(ft.parentWindow||e)&&ft.currentWindow.addEventListener("message",pt.messageListener,!1),!ft.parentWindow){var t=ft.currentWindow;if(!t.nativeInterface)return Promise.reject(new Error("Initialization Failed. No Parent window found."));p.isFramelessWindow=!0,t.onNativeMessage=Rt}try{return ft.parentOrigin="*",yt("initialize",[De,de]).then((function(e){return{context:e[0],clientType:e[1],runtimeConfig:e[2],clientSupportedSDKVersion:e[3]}}))}finally{ft.parentOrigin=null}}function ht(){ft.currentWindow&&ft.currentWindow.removeEventListener("message",pt.messageListener,!1),ft.currentWindow=null,ft.parentWindow=null,ft.parentOrigin=null,ft.childWindow=null,ft.childOrigin=null,pt.parentMessageQueue=[],pt.childMessageQueue=[],pt.nextMessageId=0,pt.callbacks={},pt.promiseCallbacks={}}function gt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return yt(e,t).then((function(e){return e[0]}))}function wt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return yt(e,t).then((function(e){var t=e[0],n=e[1];if(!t)throw new Error(n)}))}function vt(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return yt(e,n).then((function(e){var n=e[0],r=e[1];if(!n)throw new Error(r||t)}))}function Ct(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return yt(e,t).then((function(e){var t=e[0],n=e[1];if(t)throw t;return n}))}function yt(e,t){return void 0===t&&(t=void 0),new Promise((function(n){n(bt(Tt(e,t).id))}))}function bt(e){return new Promise((function(t){pt.promiseCallbacks[e]=t}))}function St(e,t,n){var r;t instanceof Function?n=t:t instanceof Array&&(r=t);var o=Tt(e,r);n&&(pt.callbacks[o.id]=n)}var Et=dt.extend("sendMessageToParentHelper");function Tt(e,t){var n=Et,r=ft.parentWindow,o=qt(e,t);if(n("Message %i information: %o",o.id,{actionName:e,args:t}),p.isFramelessWindow)ft.currentWindow&&ft.currentWindow.nativeInterface&&(n("Sending message %i to parent via framelessPostMessage interface",o.id),ft.currentWindow.nativeInterface.framelessPostMessage(JSON.stringify(o)));else{var i=Nt(r);r&&i?(n("Sending message %i to parent via postMessage",o.id),r.postMessage(o,i)):(n("Adding message %i to parent message queue",o.id),Ut(r).push(o))}return o}var It=dt.extend("processMessage");function Pt(e){if(e&&e.data&&"object"==typeof e.data){var t=e.source||e.originalEvent&&e.originalEvent.source,n=e.origin||e.originalEvent&&e.originalEvent.origin;Ot(t,n)?(kt(t,n),t===ft.parentWindow?Rt(e):t===ft.childWindow&&Dt(e)):It("Message being ignored by app because it is either coming from the current window or a different window with an invalid origin")}else It("Unrecognized message format received by app, message being ignored. Message: %o",e)}var Ft=dt.extend("shouldProcessMessage");function Ot(e,t){if(ft.currentWindow&&e===ft.currentWindow)return Ft("Should not process message because it is coming from the current window"),!1;if(ft.currentWindow&&ft.currentWindow.location&&t&&t===ft.currentWindow.location.origin)return!0;var n=G(new URL(t));return n||Ft("Message has an invalid origin of %s",t),n}function kt(e,t){p.isFramelessWindow||ft.parentWindow&&!ft.parentWindow.closed&&e!==ft.parentWindow?ft.childWindow&&!ft.childWindow.closed&&e!==ft.childWindow||(ft.childWindow=e,ft.childOrigin=t):(ft.parentWindow=e,ft.parentOrigin=t),ft.parentWindow&&ft.parentWindow.closed&&(ft.parentWindow=null,ft.parentOrigin=null),ft.childWindow&&ft.childWindow.closed&&(ft.childWindow=null,ft.childOrigin=null),Bt(ft.parentWindow),Bt(ft.childWindow)}var At=dt.extend("handleParentMessage");function Rt(e){var t=At;if("id"in e.data&&"number"==typeof e.data.id){var n=e.data,r=pt.callbacks[n.id];t("Received a response from parent for message %i",n.id),r&&(t("Invoking the registered callback for message %i with arguments %o",n.id,n.args),r.apply(null,lt(lt([],n.args,!0),[n.isPartialResponse],!1)),Mt(e)||(t("Removing registered callback for message %i",n.id),delete pt.callbacks[n.id]));var o=pt.promiseCallbacks[n.id];o&&(t("Invoking the registered promise callback for message %i with arguments %o",n.id,n.args),o(n.args),t("Removing registered promise callback for message %i",n.id),delete pt.promiseCallbacks[n.id])}else if("func"in e.data&&"string"==typeof e.data.func){t("Received an action message %s from parent",(n=e.data).func),Qe(n.func,n.args)}else t("Received an unknown message: %O",e)}function Mt(e){return!0===e.data.isPartialResponse}function Dt(e){if("id"in e.data&&"func"in e.data){var t=e.data,n=Qe(t.func,t.args),r=n[0],o=n[1];r&&void 0!==o?zt(t.id,Array.isArray(o)?o:[o]):St(t.func,t.args,(function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(ft.childWindow){var r=e.pop();zt(t.id,e,r)}}))}}function Ut(e){return e===ft.parentWindow?pt.parentMessageQueue:e===ft.childWindow?pt.childMessageQueue:[]}function Nt(e){return e===ft.parentWindow?ft.parentOrigin:e===ft.childWindow?ft.childOrigin:null}var Lt,Ht,xt,Vt,Wt,_t=dt.extend("flushMessageQueue");function Bt(e){for(var t=Nt(e),n=Ut(e),r=e==ft.parentWindow?"parent":"child";e&&t&&n.length>0;){var o=n.shift();_t("Flushing message %i from "+r+" message queue via postMessage.",o.id),e.postMessage(o,t)}}function jt(e,t){var n=ft.currentWindow.setInterval((function(){0===Ut(e).length&&(clearInterval(n),t())}),100)}function zt(e,t,n){var r=ft.childWindow,o=Jt(e,t,n),i=Nt(r);r&&i&&r.postMessage(o,i)}function Gt(e,t){var n=ft.childWindow,r=Kt(e,t),o=Nt(n);n&&o?n.postMessage(r,o):Ut(n).push(r)}function qt(e,t){return{id:pt.nextMessageId++,func:e,timestamp:Date.now(),args:t||[]}}function Jt(e,t,n){return{id:e,args:t||[],isPartialResponse:n}}function Kt(e,t){return{func:e,args:t||[]}}function Zt(e,t){xe(he),St("uploadCustomApp",[e],t||q())}function Xt(e,t,n){xe(he),St(e,t,n)}function Qt(e,t){if(xe(he),!ft.childWindow)throw new Error("The child window has not yet been initialized or is not present");Gt(e,t)}function $t(e,t){var n=this;xe(he),$e(e,(function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return t.apply(n,e)}))}function Yt(e,t){xe(he),$e("userSettingsChange",t,!0,[e])}function en(e){xe(he,R.content,R.task),St("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 t(){return!(!xe(he)||!he.supports.logs)}e.registerGetLogHandler=function(e){if(e&&xe(he),e&&!t())throw H;e?$e("log.request",(function(){St("log.receive",[e()])})):Ye("log.request")},e.isSupported=t}(Lt||(Lt={})),function(e){e.fileDownloadStart="fileDownloadStart",e.fileDownloadComplete="fileDownloadComplete"}(Ht||(Ht={})),function(e){e.view="view",e.edit="edit",e.editNew="editNew"}(xt||(xt={})),function(e){e.fileOpenPreference="fileOpenPreference",e.theme="theme"}(Vt||(Vt={})),function(e){function t(){return!(!xe(he)||!he.supports.conversations)}e.openConversation=function(e){return new Promise((function(n){if(xe(he,R.content),!t())throw H;var r=wt("conversations.openConversation",{title:e.title,subEntityId:e.subEntityId,conversationId:e.conversationId,channelId:e.channelId,entityId:e.entityId});e.onStartConversation&&$e("startConversation",(function(t,n,r,o){return e.onStartConversation({subEntityId:t,conversationId:n,channelId:r,entityId:o})})),e.onCloseConversation&&$e("closeConversation",(function(t,n,r,o){return e.onCloseConversation({subEntityId:t,conversationId:n,channelId:r,entityId:o})})),n(r)}))},e.closeConversation=function(){if(xe(he,R.content),!t())throw H;St("conversations.closeConversation"),Ye("startConversation"),Ye("closeConversation")},e.getChatMembers=function(){return new Promise((function(e){if(xe(he),!t())throw H;e(gt("getChatMembers"))}))},e.isSupported=t}(Wt||(Wt={}));var tn,nn="users";function rn(e,t,n){if(0===e.length)throw new Error("Must have at least one user when creating a chat deep link");var r="".concat(nn,"=")+e.map((function(e){return encodeURIComponent(e)})).join(","),o=void 0===t?"":"&".concat("topicName","=").concat(encodeURIComponent(t)),i=void 0===n?"":"&".concat("message","=").concat(encodeURIComponent(n));return"".concat(c,"://").concat(u).concat("/l/chat/0/0","?").concat(r).concat(o).concat(i)}function on(e,t,n){if(0===e.length)throw new Error("Must have at least one target when creating a call deep link");var r="".concat(nn,"=")+e.map((function(e){return encodeURIComponent(e)})).join(","),o=void 0===t?"":"&".concat("withVideo","=").concat(encodeURIComponent(t)),i=void 0===n?"":"&".concat("source","=").concat(encodeURIComponent(n));return"".concat(c,"://").concat(u).concat("/l/call/0/0","?").concat(r).concat(o).concat(i)}function an(e,t,n,r,o){var i=void 0===e?"":"".concat("attendees","=")+e.map((function(e){return encodeURIComponent(e)})).join(","),a=void 0===t?"":"&".concat("startTime","=").concat(encodeURIComponent(t)),s=void 0===n?"":"&".concat("endTime","=").concat(encodeURIComponent(n)),l=void 0===r?"":"&".concat("subject","=").concat(encodeURIComponent(r)),d=void 0===o?"":"&".concat("content","=").concat(encodeURIComponent(o));return"".concat(c,"://").concat(u).concat("/l/meeting/new","?").concat(i).concat(a).concat(s).concat(l).concat(d)}function sn(e){if(!e)throw new Error("App ID must be set when creating an app install dialog deep link");return"".concat(c,"://").concat(u).concat("/l/app/").concat(encodeURIComponent(e))}!function(e){function t(){return!(!xe(he)||!he.supports.appInstallDialog)}e.openAppInstallDialog=function(e){return new Promise((function(n){if(xe(he,R.content,R.sidePanel,R.settings,R.task,R.stage,R.meetingStage),!t())throw new Error("Not supported");he.isLegacyTeams?n(wt("executeDeepLink",sn(e.appId))):(St("appInstallDialog.openAppInstallDialog",[e]),n())}))},e.isSupported=t}(tn||(tn={}));var cn,un,ln,dn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function fn(e,t){if(null==e||null==t||e.length<=0)return null;var n,r=1;return e.sort((function(e,t){return e.sequence>t.sequence?1:-1})),e.forEach((function(e){e.sequence==r&&(n=n?new Blob([n,e.file],{type:t}):new Blob([e.file],{type:t}),r++)})),n}function pn(e,t){if(null==e||null==t)return null;for(var n=atob(e.chunk),r=new Array(n.length),o=0;o<n.length;o++)r[o]=n.charCodeAt(o);var i=new Uint8Array(r),a=new Blob([i],{type:t});return{sequence:e.chunkSequence,file:a}}function mn(e){vn(e)?_e("2.0.2"):Cn(e)?_e(t):wn(e)&&_e("2.0.4")}function hn(e){return!(e.mediaType!=cn.MediaType.Video||!e.videoProps||!e.videoProps.videoController)}function gn(e){return!(null==e||e.maxMediaCount>10)}function wn(e){var t;return!((null==e?void 0:e.mediaType)!=cn.MediaType.Image||!(null===(t=null==e?void 0:e.imageProps)||void 0===t?void 0:t.imageOutputFormats))}function vn(e){return!(!e||e.mediaType!=cn.MediaType.VideoAndImage&&!e.videoAndImageProps)}function Cn(e){return!(!e||e.mediaType!=cn.MediaType.Video||!e.videoProps||e.videoProps.isFullScreenMode)}function yn(e,t,n){return null!=e&&null!=t&&t==cn.FileFormat.ID&&null!=n}function bn(e){return!(null==e||e.length<=0||e.length>10)}function Sn(e){return!e||!(null===e.timeOutIntervalInSec||e.timeOutIntervalInSec<=0||e.timeOutIntervalInSec>60)}function En(e){if(e){if(e.title&&"string"!=typeof e.title)return!1;if(e.setSelected&&"object"!=typeof e.setSelected)return!1;if(e.openOrgWideSearchInChatOrChannel&&"boolean"!=typeof e.openOrgWideSearchInChatOrChannel)return!1;if(e.singleSelect&&"boolean"!=typeof e.singleSelect)return!1}return!0}!function(e){!function(e){e.Base64="base64",e.ID="id"}(e.FileFormat||(e.FileFormat={}));var n=function(){return function(){}}();function r(){return!(!xe(he)||!he.supports.permissions)}e.File=n,e.captureImage=function(e){if(!e)throw new Error("[captureImage] Callback cannot be null");xe(he,R.content,R.task),p.isFramelessWindow?Ve("1.7.0")?St("captureImage",e):e({errorCode:P.OLD_PLATFORM},void 0):e({errorCode:P.NOT_SUPPORTED_ON_PLATFORM},void 0)},e.hasPermission=function(){if(xe(he,R.content,R.task),!r())throw H;var e=F.Media;return new Promise((function(t){t(Ct("permissions.has",e))}))},e.requestPermission=function(){if(xe(he,R.content,R.task),!r())throw H;var e=F.Media;return new Promise((function(t){t(Ct("permissions.request",e))}))};var o=function(e){function t(t){void 0===t&&(t=null);var n=e.call(this)||this;return t&&(n.content=t.content,n.format=t.format,n.mimeType=t.mimeType,n.name=t.name,n.preview=t.preview,n.size=t.size),n}return dn(t,e),t.prototype.getMedia=function(e){if(!e)throw new Error("[get Media] Callback cannot be null");(xe(he,R.content,R.task),Ve(i))?yn(this.mimeType,this.format,this.content)?Ve("2.0.0")?this.getMediaViaCallback(e):this.getMediaViaHandler(e):e({errorCode:P.INVALID_ARGUMENTS},null):e({errorCode:P.OLD_PLATFORM},null)},t.prototype.getMediaViaCallback=function(e){var t={mediaMimeType:this.mimeType,assembleAttachment:[]};St("getMedia",[this.content],(function(n){if(e)if(n&&n.error)e(n.error,null);else if(n&&n.mediaChunk)if(n.mediaChunk.chunkSequence<=0){var r=fn(t.assembleAttachment,t.mediaMimeType);e(n.error,r)}else{var o=pn(n.mediaChunk,t.mediaMimeType);t.assembleAttachment.push(o)}else e({errorCode:P.INTERNAL_ERROR,message:"data received is null"},null)}))},t.prototype.getMediaViaHandler=function(e){var t=K(),n={mediaMimeType:this.mimeType,assembleAttachment:[]},r=[t,this.content];this.content&&e&&St("getMedia",r),$e("getMedia"+t,(function(r){if(e){var o=JSON.parse(r);if(o.error)e(o.error,null),Ye("getMedia"+t);else if(o.mediaChunk)if(o.mediaChunk.chunkSequence<=0){var i=fn(n.assembleAttachment,n.mediaMimeType);e(o.error,i),Ye("getMedia"+t)}else{var a=pn(o.mediaChunk,n.mediaMimeType);n.assembleAttachment.push(a)}else e({errorCode:P.INTERNAL_ERROR,message:"data received is null"},null),Ye("getMedia"+t)}}))},t}(n);e.Media=o;var a,s,c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return dn(t,e),t.prototype.getMediaType=function(){return s.Video},t.prototype.notifyEventToApp=function(e){if(this.controllerCallback)switch(e){case a.StartRecording:if(this.controllerCallback.onRecordingStarted){this.controllerCallback.onRecordingStarted();break}}},t}(function(){function e(e){this.controllerCallback=e}return e.prototype.notifyEventToHost=function(e,n){xe(he,R.content,R.task);try{_e(t)}catch(e){return void(n&&n(e))}St("media.controller",[{mediaType:this.getMediaType(),mediaControllerEvent:e}],(function(e){n&&n(e)}))},e.prototype.stop=function(e){this.notifyEventToHost(a.StopRecording,e)},e}());e.VideoController=c,function(e){e[e.StartRecording=1]="StartRecording",e[e.StopRecording=2]="StopRecording"}(a=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"}(s=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,t){if(!t)throw new Error("[select Media] Callback cannot be null");if(xe(he,R.content,R.task),Ve(i)){try{mn(e)}catch(e){return void t(e,null)}if(gn(e)){St("selectMedia",[e],(function(n,r,i){if(i)hn(e)&&e.videoProps.videoController.notifyEventToApp(i);else if(r){for(var a=[],s=0,c=r;s<c.length;s++){var u=c[s];a.push(new o(u))}t(n,a)}else t(n,null)}))}else{var n={errorCode:P.INVALID_ARGUMENTS};t(n,null)}}else{var r={errorCode:P.OLD_PLATFORM};t(r,null)}},e.viewImages=function(e,t){if(!t)throw new Error("[view images] Callback cannot be null");xe(he,R.content,R.task),Ve(i)?bn(e)?St("viewImages",[e],t):t({errorCode:P.INVALID_ARGUMENTS}):t({errorCode:P.OLD_PLATFORM})},e.scanBarCode=function(e,t){if(!e)throw new Error("[media.scanBarCode] Callback cannot be null");xe(he,R.content,R.task),p.hostClientType!==k.desktop&&p.hostClientType!==k.web&&p.hostClientType!==k.rigel&&p.hostClientType!==k.teamsRoomsWindows&&p.hostClientType!==k.teamsRoomsAndroid&&p.hostClientType!==k.teamsPhones&&p.hostClientType!==k.teamsDisplays?Ve("1.9.0")?Sn(t)?St("media.scanBarCode",[t],e):e({errorCode:P.INVALID_ARGUMENTS},null):e({errorCode:P.OLD_PLATFORM},null):e({errorCode:P.NOT_SUPPORTED_ON_PLATFORM},null)}}(cn||(cn={})),function(e){function t(){return!!(xe(he)&&he.supports.barCode&&he.supports.permissions)}e.scanBarCode=function(e){return new Promise((function(n){if(xe(he,R.content,R.task),!t())throw H;if(!Sn(e))throw{errorCode:P.INVALID_ARGUMENTS};n(Ct("media.scanBarCode",e))}))},e.hasPermission=function(){if(xe(he,R.content,R.task),!t())throw H;var e=F.Media;return new Promise((function(t){t(Ct("permissions.has",e))}))},e.requestPermission=function(){if(xe(he,R.content,R.task),!t())throw H;var e=F.Media;return new Promise((function(t){t(Ct("permissions.request",e))}))},e.isSupported=t}(un||(un={})),function(e){function t(e){return new Promise((function(t){if(xe(he,R.content,R.task),!n())throw H;he.isLegacyTeams?t(wt("executeDeepLink",rn([e.user],void 0,e.message))):t(wt("chat.openChat",{members:e.user,message:e.message}))}))}function n(){return!(!xe(he)||!he.supports.chat)}e.openChat=t,e.openGroupChat=function(e){return new Promise((function(r){if(e.users.length<1)throw Error("OpenGroupChat Failed: No users specified");if(1===e.users.length){t({user:e.users[0],message:e.message})}else{if(xe(he,R.content,R.task),!n())throw H;if(he.isLegacyTeams)r(wt("executeDeepLink",rn(e.users,e.topic,e.message)));else r(wt("chat.openChat",{members:e.users,message:e.message,topic:e.topic}))}}))},e.isSupported=n}(ln||(ln={}));var Tn,In,Pn=function(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())}))},Fn=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return c([e,t])}}function c(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}};function On(){return he.hostVersionsInfo?he.hostVersionsInfo.adaptiveCardSchemaVersion:void 0}!function(e){function t(){return!!(xe(he)&&navigator&&navigator.clipboard&&he.supports.clipboard)}e.write=function(e){return Pn(this,void 0,void 0,(function(){var n;return Fn(this,(function(r){switch(r.label){case 0:if(xe(he,R.content,R.task,R.stage,R.sidePanel),!t())throw H;if(!e.type||!Object.values(O).includes(e.type))throw new Error("Blob type ".concat(e.type," is not supported. Supported blob types are ").concat(Object.values(O)));return[4,oe(e)];case 1:return n=r.sent(),[2,Ct("clipboard.writeToClipboard",{mimeType:e.type,content:n})]}}))}))},e.read=function(){return Pn(this,void 0,void 0,(function(){var e,n,r;return Fn(this,(function(o){switch(o.label){case 0:if(xe(he,R.content,R.task,R.stage,R.sidePanel),!t())throw H;return We()||p.hostClientType===k.macos?(r=(n=JSON).parse,[4,Ct("clipboard.readFromClipboard")]):[3,2];case 1:return[2,re((e=r.apply(n,[o.sent()])).mimeType,e.content)];case 2:return[2,Ct("clipboard.readFromClipboard")]}}))}))},e.isSupported=t}(Tn||(Tn={})),function(e){function t(){return!!(xe(he)&&he.supports.geoLocation&&he.supports.permissions)}e.getCurrentLocation=function(){if(xe(he,R.content,R.task),!t())throw H;return Ct("location.getLocation",{allowChooseLocation:!1,showMap:!1})},e.hasPermission=function(){if(xe(he,R.content,R.task),!t())throw H;var e=F.GeoLocation;return new Promise((function(t){t(Ct("permissions.has",e))}))},e.requestPermission=function(){if(xe(he,R.content,R.task),!t())throw H;var e=F.GeoLocation;return new Promise((function(t){t(Ct("permissions.request",e))}))},e.isSupported=t,function(e){function t(){return!!(xe(he)&&he.supports.geoLocation&&he.supports.geoLocation.map&&he.supports.permissions)}e.chooseLocation=function(){if(xe(he,R.content,R.task),!t())throw H;return Ct("location.getLocation",{allowChooseLocation:!0,showMap:!0})},e.showLocation=function(e){if(xe(he,R.content,R.task),!t())throw H;if(!e)throw{errorCode:P.INVALID_ARGUMENTS};return Ct("location.showLocation",e)},e.isSupported=t}(e.map||(e.map={}))}(In||(In={}));var kn,An,Rn=function(){function e(){}return e.prototype.postMessage=function(e,t){xe(he),St("messageForChild",[e],t||q())},e.prototype.addEventListener=function(e,t){xe(he),"message"===e&&$e("messageForParent",t)},e}(),Mn=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,t){xe(he,R.task),St("messageForParent",[e],t||q())},e.prototype.addEventListener=function(e,t){xe(he,R.task),"message"===e&&$e("messageForChild",t)},e}();!function(e){function t(){return!(!xe(he)||!he.supports.secondaryBrowser)}e.open=function(e){if(xe(he,R.content),!t())throw H;if(!e||!ne(e))throw{errorCode:P.INVALID_ARGUMENTS,message:"Invalid Url: Only https URL is allowed"};return Ct("secondaryBrowser.open",e.toString())},e.isSupported=t}(kn||(kn={})),function(e){function t(){return!(!xe(he)||!he.supports.location)}e.getLocation=function(e,n){if(!n)throw new Error("[location.getLocation] Callback cannot be null");if(xe(he,R.content,R.task),!Ve(o))throw{errorCode:P.OLD_PLATFORM};if(!e)throw{errorCode:P.INVALID_ARGUMENTS};if(!t())throw H;St("location.getLocation",[e],n)},e.showLocation=function(e,n){if(!n)throw new Error("[location.showLocation] Callback cannot be null");if(xe(he,R.content,R.task),!Ve(o))throw{errorCode:P.OLD_PLATFORM};if(!e)throw{errorCode:P.INVALID_ARGUMENTS};if(!t())throw H;St("location.showLocation",[e],n)},e.isSupported=t}(An||(An={}));var Dn,Un,Nn,Ln,Hn,xn,Vn,Wn=function(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())}))},_n=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return c([e,t])}}function c(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}};function Bn(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?jn(e.persona):[!1,"triggerType must be a valid string"]:[!1,"targetElementBoundingRect must be a DOMRect"]:[!1,"A request object is required"]}function jn(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(e){var t;function n(e,n){var r=this;St("meeting.requestAppAudioHandling",[e.isAppHandlingAudio],(function(i,a){if(i&&null!=a)throw new Error("[requestAppAudioHandling] Callback response - both parameters cannot be set");if(i)throw new Error("[requestAppAudioHandling] Callback response - SDK error ".concat(i.errorCode," ").concat(i.message));if("boolean"!=typeof a)throw new Error("[requestAppAudioHandling] Callback response - isHostAudioless must be a boolean");$e("meeting.micStateChanged",(function(n){return Wn(r,void 0,void 0,(function(){var r,i;return _n(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,e.micMuteStateChangedCallback(n)];case 1:return r=a.sent(),i=r.isMicMuted===n.isMicMuted,o(r,i?t.HostInitiated:t.AppDeclinedToChange),[3,3];case 2:return a.sent(),o(n,t.AppFailedToChange),[3,3];case 3:return[2]}}))}))})),n(a)}))}function r(e,t){St("meeting.requestAppAudioHandling",[e.isAppHandlingAudio],(function(e,n){if(e&&null!=n)throw new Error("[requestAppAudioHandling] Callback response - both parameters cannot be set");if(e)throw new Error("[requestAppAudioHandling] Callback response - SDK error ".concat(e.errorCode," ").concat(e.message));if("boolean"!=typeof n)throw new Error("[requestAppAudioHandling] Callback response - isHostAudioless must be a boolean");et("meeting.micStateChanged")&&Ye("meeting.micStateChanged"),t(n)}))}function o(e,t){xe(he,R.sidePanel,R.meetingStage),St("meeting.updateMicState",[e,t])}!function(e){e[e.HostInitiated=0]="HostInitiated",e[e.AppInitiated=1]="AppInitiated",e[e.AppDeclinedToChange=2]="AppDeclinedToChange",e[e.AppFailedToChange=3]="AppFailedToChange"}(t||(t={})),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");xe(he,R.sidePanel,R.meetingStage),St("getIncomingClientAudioState",e)},e.toggleIncomingClientAudio=function(e){if(!e)throw new Error("[toggle incoming client audio] Callback cannot be null");xe(he,R.sidePanel,R.meetingStage),St("toggleIncomingClientAudio",e)},e.getMeetingDetails=function(e){if(!e)throw new Error("[get meeting details] Callback cannot be null");xe(he,R.sidePanel,R.meetingStage,R.settings,R.content),St("meeting.getMeetingDetails",e)},e.getAuthenticationTokenForAnonymousUser=function(e){if(!e)throw new Error("[get Authentication Token For AnonymousUser] Callback cannot be null");xe(he,R.sidePanel,R.meetingStage,R.task),St("meeting.getAuthenticationTokenForAnonymousUser",e)},e.getLiveStreamState=function(e){if(!e)throw new Error("[get live stream state] Callback cannot be null");xe(he,R.sidePanel),St("meeting.getLiveStreamState",e)},e.requestStartLiveStreaming=function(e,t,n){if(!e)throw new Error("[request start live streaming] Callback cannot be null");xe(he,R.sidePanel),St("meeting.requestStartLiveStreaming",[t,n],e)},e.requestStopLiveStreaming=function(e){if(!e)throw new Error("[request stop live streaming] Callback cannot be null");xe(he,R.sidePanel),St("meeting.requestStopLiveStreaming",e)},e.registerLiveStreamChangedHandler=function(e){if(!e)throw new Error("[register live stream changed handler] Handler cannot be null");xe(he,R.sidePanel),$e("meeting.liveStreamChanged",e)},e.shareAppContentToStage=function(e,t){if(!e)throw new Error("[share app content to stage] Callback cannot be null");xe(he,R.sidePanel,R.meetingStage),St("meeting.shareAppContentToStage",[t],e)},e.getAppContentStageSharingCapabilities=function(e){if(!e)throw new Error("[get app content stage sharing capabilities] Callback cannot be null");xe(he,R.sidePanel,R.meetingStage),St("meeting.getAppContentStageSharingCapabilities",e)},e.stopSharingAppContentToStage=function(e){if(!e)throw new Error("[stop sharing app content to stage] Callback cannot be null");xe(he,R.sidePanel,R.meetingStage),St("meeting.stopSharingAppContentToStage",e)},e.getAppContentStageSharingState=function(e){if(!e)throw new Error("[get app content stage sharing state] Callback cannot be null");xe(he,R.sidePanel,R.meetingStage),St("meeting.getAppContentStageSharingState",e)},e.registerSpeakingStateChangeHandler=function(e){if(!e)throw new Error("[registerSpeakingStateChangeHandler] Handler cannot be null");xe(he,R.sidePanel,R.meetingStage),$e("meeting.speakingStateChanged",e)},e.registerRaiseHandStateChangedHandler=function(e){if(!e)throw new Error("[registerRaiseHandStateChangedHandler] Handler cannot be null");xe(he,R.sidePanel,R.meetingStage),$e("meeting.raiseHandStateChanged",e)},e.registerMeetingReactionReceivedHandler=function(e){if(!e)throw new Error("[registerMeetingReactionReceivedHandler] Handler cannot be null");xe(he,R.sidePanel,R.meetingStage),$e("meeting.meetingReactionReceived",e)},function(e){e.setOptions=function(e){xe(he,R.sidePanel),e.contentUrl&&new URL(e.contentUrl),St("meeting.appShareButton.setOptions",[e])}}(e.appShareButton||(e.appShareButton={})),e.requestAppAudioHandling=function(e,t){if(!t)throw new Error("[requestAppAudioHandling] Callback response cannot be null");if(!e.micMuteStateChangedCallback)throw new Error("[requestAppAudioHandling] Callback Mic mute state handler cannot be null");xe(he,R.sidePanel,R.meetingStage),e.isAppHandlingAudio?n(e,t):r(e,t)},e.updateMicState=function(e){o(e,t.AppInitiated)}}(Dn||(Dn={})),function(e){function t(){return!(!xe(he)||!he.supports.monetization)}e.openPurchaseExperience=function(e,n){var r,o;return"function"==typeof e?(r=e,o=n):o=e,xe(he,R.content),$((function(){return new Promise((function(e){if(!t())throw H;e(Ct("monetization.openPurchaseExperience",o))}))}),r)},e.isSupported=t}(Un||(Un={})),function(e){function t(){return!(!xe(he)||!he.supports.calendar)}e.openCalendarItem=function(e){return new Promise((function(n){if(xe(he,R.content),!t())throw new Error("Not supported");if(!e.itemId||!e.itemId.trim())throw new Error("Must supply an itemId to openCalendarItem");n(wt("calendar.openCalendarItem",e))}))},e.composeMeeting=function(e){return new Promise((function(n){if(xe(he,R.content),!t())throw new Error("Not supported");he.isLegacyTeams?n(wt("executeDeepLink",an(e.attendees,e.startTime,e.endTime,e.subject,e.content))):n(wt("calendar.composeMeeting",e))}))},e.isSupported=t}(Nn||(Nn={})),function(e){function t(){return!(!xe(he)||!he.supports.mail)}e.openMailItem=function(e){return new Promise((function(n){if(xe(he,R.content),!t())throw new Error("Not supported");if(!e.itemId||!e.itemId.trim())throw new Error("Must supply an itemId to openMailItem");n(wt("mail.openMailItem",e))}))},e.composeMail=function(e){return new Promise((function(n){if(xe(he,R.content),!t())throw new Error("Not supported");n(wt("mail.composeMail",e))}))},e.isSupported=t,function(e){e.New="new",e.Reply="reply",e.ReplyAll="replyAll",e.Forward="forward"}(e.ComposeMailType||(e.ComposeMailType={}))}(Ln||(Ln={})),function(e){function t(){ie().print()}function n(e,t){!je(e)&&xe(he),!je(e)&&t&&t(),ot(e)}function r(e,t){!je(e)&&xe(he),!je(e)&&t&&t(),at(e)}function o(){return!(!xe(he)||!he.supports.teamsCore)}e.enablePrintCapability=function(){if(!p.printCapabilityEnabled){if(xe(he),!o())throw H;p.printCapabilityEnabled=!0,document.addEventListener("keydown",(function(e){(e.ctrlKey||e.metaKey)&&80===e.keyCode&&(t(),e.cancelBubble=!0,e.preventDefault(),e.stopImmediatePropagation())}))}},e.print=t,e.registerOnLoadHandler=function(e){n(e,(function(){if(!je(e)&&!o())throw H}))},e.registerOnLoadHandlerHelper=n,e.registerBeforeUnloadHandler=function(e){r(e,(function(){if(!je(e)&&!o())throw H}))},e.registerBeforeUnloadHandlerHelper=r,e.isSupported=o}(Hn||(Hn={})),function(e){function t(e){return new Promise((function(t){if(!Ve("2.0.0"))throw{errorCode:P.OLD_PLATFORM};if(!En(e))throw{errorCode:P.INVALID_ARGUMENTS};if(!n())throw H;t(Ct("people.selectPeople",e))}))}function n(){return!(!xe(he)||!he.supports.people)}e.selectPeople=function(e,n){var r;xe(he,R.content,R.task,R.settings);var o=void 0,i=void 0;return"function"==typeof e?(o=(r=[e,n])[0],i=r[1]):i=e,X(t,o,i)},e.isSupported=n}(xn||(xn={})),function(e){e.showProfile=function(e){return xe(he,R.content),new Promise((function(t){var n=Bn(e),r=n[0],o=n[1];if(!r)throw{errorCode:P.INVALID_ARGUMENTS,message:o};t(Ct("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!(!xe(he)||!he.supports.profile)}}(Vn||(Vn={}));var zn,Gn=function(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())}))},qn=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return c([e,t])}}function c(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}};function Jn(e,t,n,r){var o,i;return Gn(this,void 0,void 0,(function(){var a,s;return qn(this,(function(c){switch(c.label){case 0:return a=Xn(),!ae()&&(null===(i=null===(o=window.chrome)||void 0===o?void 0:o.webview)||void 0===i||i.registerTextureStream(e,a)),s=Qn,[4,Zn(e,n,r)];case 1:return s.apply(void 0,[c.sent(),new $n(n,t),a.writable]),[2]}}))}))}function Kn(e,t,n,r){var o,i;return Gn(this,void 0,void 0,(function(){var a,s;return qn(this,(function(c){switch(c.label){case 0:return a=Xn(),!ae()&&(null===(i=null===(o=window.chrome)||void 0===o?void 0:o.webview)||void 0===i||i.registerTextureStream(e,a)),s=Qn,[4,Zn(e,n,r)];case 1:return s.apply(void 0,[c.sent(),new tr(n,t),a.writable]),[2]}}))}))}function Zn(e,t,n){return Gn(this,void 0,void 0,(function(){var r,o,i,a,s;return qn(this,(function(c){switch(c.label){case 0:if(ae())throw H;r=ie().chrome,c.label=1;case 1:return c.trys.push([1,3,,4]),null==n||n.reportGettingTextureStream(e),[4,r.webview.getTextureStream(e)];case 2:if(o=c.sent(),0===(i=o.getVideoTracks()).length)throw new Error("No video track in stream ".concat(e));return null==n||n.reportTextureStreamAcquired(),[2,i[0]];case 3:throw a=c.sent(),s="Failed to get video track from stream ".concat(e,", error: ").concat(a),t(s),new Error("Internal error: can't get video track from stream ".concat(e));case 4:return[2]}}))}))}function Xn(){if(ae())throw H;var e=window.MediaStreamTrackGenerator;if(!e)throw H;return new e({kind:"video"})}function Qn(e,t,n){new(0,ie().MediaStreamTrackProcessor)({track:e}).readable.pipeThrough(new TransformStream(t)).pipeTo(n)}!function(e){e.TimestampIsNull="timestamp of the original video frame is null",e.UnsupportedVideoFramePixelFormat="Unsupported video frame pixel format"}(zn||(zn={}));var $n=function(){return function(e,t){var n=this;this.notifyError=e,this.videoFrameHandler=t,this.transform=function(e,t){return Gn(n,void 0,void 0,(function(){var n,r,o,i;return qn(this,(function(a){switch(a.label){case 0:if(null===(n=e.timestamp))return[3,5];a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this.videoFrameHandler({videoFrame:e})];case 2:return r=a.sent(),o=new VideoFrame(r,{timestamp:n}),t.enqueue(o),e.close(),r.close(),[3,4];case 3:return i=a.sent(),e.close(),this.notifyError(i),[3,4];case 4:return[3,6];case 5:this.notifyError(zn.TimestampIsNull),a.label=6;case 6:return[2]}}))}))}}}(),Yn=function(){function e(e,t){if(this.headerBuffer=e,this.notifyError=t,this.ONE_TEXTURE_INPUT_ID=1869900081,this.INVALID_HEADER_ERROR="Invalid video frame header",this.UNSUPPORTED_LAYOUT_ERROR="Unsupported texture layout",this.headerDataView=new Uint32Array(e),this.headerDataView.length<8)throw this.notifyError(this.INVALID_HEADER_ERROR),new Error(this.INVALID_HEADER_ERROR);if(this.headerDataView[0]!==this.ONE_TEXTURE_INPUT_ID)throw this.notifyError(this.UNSUPPORTED_LAYOUT_ERROR),new Error(this.UNSUPPORTED_LAYOUT_ERROR)}return Object.defineProperty(e.prototype,"oneTextureLayoutId",{get:function(){return this.headerDataView[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this.headerDataView[1]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"frameRowOffset",{get:function(){return this.headerDataView[2]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"frameFormat",{get:function(){return this.headerDataView[3]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"frameWidth",{get:function(){return this.headerDataView[4]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"frameHeight",{get:function(){return this.headerDataView[5]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"multiStreamHeaderRowOffset",{get:function(){return this.headerDataView[6]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"multiStreamCount",{get:function(){return this.headerDataView[7]},enumerable:!1,configurable:!0}),e}(),er=function(){function e(e,t){this.metadataMap=new Map,this.AUDIO_INFERENCE_RESULT_STREAM_ID=828664161;for(var n=new Uint32Array(e),r=0,o=0;r<t;r++){var i=n[o++],a=n[o++],s=n[o++],c=new Uint8Array(e,a,s);this.metadataMap.set(i,c)}}return Object.defineProperty(e.prototype,"audioInferenceResult",{get:function(){return this.metadataMap.get(this.AUDIO_INFERENCE_RESULT_STREAM_ID)},enumerable:!1,configurable:!0}),e}(),tr=function(){return function(e,t){var n=this;this.notifyError=e,this.videoFrameHandler=t,this.shouldDiscardAudioInferenceResult=!1,this.transform=function(e,t){return Gn(n,void 0,void 0,(function(){var n,r,o,i,a,s,c,u;return qn(this,(function(l){switch(l.label){case 0:if(null===(n=e.timestamp))return[3,6];l.label=1;case 1:return l.trys.push([1,4,,5]),[4,this.extractVideoFrameAndMetadata(e)];case 2:return r=l.sent(),o=r.videoFrame,i=r.metadata,a=(void 0===i?{}:i).audioInferenceResult,[4,this.videoFrameHandler({videoFrame:o,audioInferenceResult:a})];case 3:return s=l.sent(),c=new VideoFrame(s,{timestamp:n}),t.enqueue(c),o.close(),e.close(),s.close(),[3,5];case 4:return u=l.sent(),e.close(),this.notifyError(u),[3,5];case 5:return[3,7];case 6:this.notifyError(zn.TimestampIsNull),l.label=7;case 7:return[2]}}))}))},this.extractVideoFrameAndMetadata=function(e){return Gn(n,void 0,void 0,(function(){var t,n,r,o,i,a;return qn(this,(function(s){switch(s.label){case 0:if(ae())throw H;if("NV12"!==e.format)throw this.notifyError(zn.UnsupportedVideoFramePixelFormat),new Error(zn.UnsupportedVideoFramePixelFormat);return t={x:0,y:0,width:e.codedWidth,height:2},n=new ArrayBuffer(t.width*t.height*3/2),[4,e.copyTo(n,{rect:t})];case 1:return s.sent(),r=new Yn(n,this.notifyError),o={x:0,y:r.multiStreamHeaderRowOffset,width:e.codedWidth,height:e.codedHeight-r.multiStreamHeaderRowOffset},i=new ArrayBuffer(o.width*o.height*3/2),[4,e.copyTo(i,{rect:o})];case 2:return s.sent(),a=new er(i,r.multiStreamCount),[2,{videoFrame:new VideoFrame(e,{timestamp:e.timestamp,visibleRect:{x:0,y:r.frameRowOffset,width:r.frameWidth,height:r.frameHeight}}),metadata:{audioInferenceResult:this.shouldDiscardAudioInferenceResult?void 0:a.audioInferenceResult}}]}}))}))},$e("video.mediaStream.audioInferenceDiscardStatusChange",(function(e){var t=e.discardAudioInferenceResult;n.shouldDiscardAudioInferenceResult=t}))}}();function nr(e,t){return function(n,r){null==t||t.reportApplyingVideoEffect(n||"",r),e(n,r).then((function(){null==t||t.reportVideoEffectChanged(n||"",r),St("video.videoEffectReadiness",[!0,n,void 0,r])})).catch((function(e){var t=e in rr.EffectFailureReason?e:rr.EffectFailureReason.InitializationFailure;St("video.videoEffectReadiness",[!1,n,t,r])}))}}var rr,or,ir,ar,sr=function(){function e(){}return e.setTimeout=function(t,n){var r=performance.now(),o=K();return e.setTimeoutCallbacks[o]={callback:t,timeoutInMs:n,startedAtInMs:r},o},e.clearTimeout=function(t){delete e.setTimeoutCallbacks[t]},e.setInterval=function(t,n){e.setTimeout((function r(){t(),e.setTimeout(r,n)}),n)},e.tick=function(){var t=performance.now(),n=[];for(var r in e.setTimeoutCallbacks){t-(a=e.setTimeoutCallbacks[r]).startedAtInMs>=a.timeoutInMs&&n.push(r)}for(var o=0,i=n;o<i.length;o++){var a,s=i[o];(a=e.setTimeoutCallbacks[s]).callback(),delete e.setTimeoutCallbacks[s]}},e.setTimeoutCallbacks={},e}(),cr=function(){function e(e,t){this.reportStatisticsResult=t,this.sampleCount=0,this.distributionBins=new Uint32Array(e)}return e.prototype.processStarts=function(e,t,n,r){sr.tick(),this.suitableForThisSession(e,t,n,r)||this.reportAndResetSession(this.getStatistics(),e,r,t,n),this.start()},e.prototype.processEnds=function(){var e=performance.now()-this.frameProcessingStartedAt,t=Math.floor(Math.max(0,Math.min(this.distributionBins.length-1,e)));this.distributionBins[t]+=1,this.sampleCount+=1},e.prototype.getStatistics=function(){return this.currentSession?{effectId:this.currentSession.effectId,effectParam:this.currentSession.effectParam,frameHeight:this.currentSession.frameHeight,frameWidth:this.currentSession.frameWidth,duration:performance.now()-this.currentSession.startedAtInMs,sampleCount:this.sampleCount,distributionBins:this.distributionBins.slice()}:null},e.prototype.start=function(){this.frameProcessingStartedAt=performance.now()},e.prototype.suitableForThisSession=function(e,t,n,r){return this.currentSession&&this.currentSession.effectId===e&&this.currentSession.effectParam===r&&this.currentSession.frameWidth===t&&this.currentSession.frameHeight===n},e.prototype.reportAndResetSession=function(e,t,n,r,o){var i=this;e&&this.reportStatisticsResult(e),this.resetCurrentSession(this.getNextTimeout(t,this.currentSession),t,n,r,o),this.timeoutId&&sr.clearTimeout(this.timeoutId),this.timeoutId=sr.setTimeout(function(){return i.reportAndResetSession(i.getStatistics(),t,n,r,o)}.bind(this),this.currentSession.timeoutInMs)},e.prototype.resetCurrentSession=function(e,t,n,r,o){this.currentSession={startedAtInMs:performance.now(),timeoutInMs:e,effectId:t,effectParam:n,frameWidth:r,frameHeight:o},this.sampleCount=0,this.distributionBins.fill(0)},e.prototype.getNextTimeout=function(t,n){return n&&n.effectId===t?Math.min(e.maxSessionTimeoutInMs,2*n.timeoutInMs):e.initialSessionTimeoutInMs},e.initialSessionTimeoutInMs=1e3,e.maxSessionTimeoutInMs=3e4,e}(),ur=function(){function e(t){var n=this;this.reportPerformanceEvent=t,this.isFirstFrameProcessed=!1,this.frameProcessTimeLimit=100,this.frameProcessingStartedAt=0,this.frameProcessingTimeCost=0,this.processedFrameCount=0,this.performanceStatistics=new cr(e.distributionBinSize,(function(e){return n.reportPerformanceEvent("video.performance.performanceDataGenerated",[e])}))}return e.prototype.startMonitorSlowFrameProcessing=function(){var t=this;sr.setInterval((function(){if(0!==t.processedFrameCount){var e=t.frameProcessingTimeCost/t.processedFrameCount;e>t.frameProcessTimeLimit&&t.reportPerformanceEvent("video.performance.frameProcessingSlow",[e]),t.frameProcessingTimeCost=0,t.processedFrameCount=0}}),e.calculateFPSInterval)},e.prototype.setFrameProcessTimeLimit=function(e){this.frameProcessTimeLimit=e},e.prototype.reportApplyingVideoEffect=function(e,t){var n,r;(null===(n=this.applyingEffect)||void 0===n?void 0:n.effectId)===e&&(null===(r=this.applyingEffect)||void 0===r?void 0:r.effectParam)===t||(this.applyingEffect={effectId:e,effectParam:t},this.appliedEffect=void 0)},e.prototype.reportVideoEffectChanged=function(e,t){void 0===this.applyingEffect||this.applyingEffect.effectId!==e&&this.applyingEffect.effectParam!==t||(this.appliedEffect={effectId:e,effectParam:t},this.applyingEffect=void 0,this.isFirstFrameProcessed=!1)},e.prototype.reportStartFrameProcessing=function(e,t){sr.tick(),this.appliedEffect&&(this.frameProcessingStartedAt=performance.now(),this.performanceStatistics.processStarts(this.appliedEffect.effectId,e,t,this.appliedEffect.effectParam))},e.prototype.reportFrameProcessed=function(){var e;this.appliedEffect&&(this.processedFrameCount++,this.frameProcessingTimeCost+=performance.now()-this.frameProcessingStartedAt,this.performanceStatistics.processEnds(),this.isFirstFrameProcessed||(this.isFirstFrameProcessed=!0,this.reportPerformanceEvent("video.performance.firstFrameProcessed",[Date.now(),this.appliedEffect.effectId,null===(e=this.appliedEffect)||void 0===e?void 0:e.effectParam])))},e.prototype.reportGettingTextureStream=function(e){this.gettingTextureStreamStartedAt=performance.now(),this.currentStreamId=e},e.prototype.reportTextureStreamAcquired=function(){if(void 0!==this.gettingTextureStreamStartedAt){var e=performance.now()-this.gettingTextureStreamStartedAt;this.reportPerformanceEvent("video.performance.textureStreamAcquired",[this.currentStreamId,e])}},e.distributionBinSize=1e3,e.calculateFPSInterval=1e3,e}(),lr=function(){return lr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},lr.apply(this,arguments)},dr=function(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())}))},fr=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return c([e,t])}}function c(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},pr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};!function(e){var t=ae()?void 0:new ur(St);function n(e){St("video.videoFrameProcessed",[e])}function r(e){St("video.notifyError",[e])}function o(){return xe(he)&&!!he.supports.video&&(!!he.supports.video.mediaStream||!!he.supports.video.sharedFrame)}function i(e,n){var i=this;if(xe(he,R.sidePanel),!o()||!u())throw H;$e("video.startVideoExtensibilityVideoStream",(function(n){return dr(i,void 0,void 0,(function(){var o,i;return fr(this,(function(s){switch(s.label){case 0:return o=n.streamId,i=a(e,t),[4,Jn(o,i,r,t)];case 1:return s.sent(),[2]}}))}))}),!1),St("video.mediaStream.registerForVideoFrame",[n])}function a(e,t){var n=this;return function(r){return dr(n,void 0,void 0,(function(){var n,o;return fr(this,(function(i){switch(i.label){case 0:return n=r.videoFrame,null==t||t.reportStartFrameProcessing(n.codedWidth,n.codedHeight),[4,e(r)];case 1:return o=i.sent(),null==t||t.reportFrameProcessed(),[2,o]}}))}))}}function s(e,i){if(xe(he,R.sidePanel),!o()||!d())throw H;$e("video.newVideoFrame",(function(o){if(o){var i=o.timestamp;null==t||t.reportStartFrameProcessing(o.width,o.height),e(c(o),(function(){null==t||t.reportFrameProcessed(),n(i)}),r)}}),!1),St("video.registerForVideoFrame",[i])}function c(e){if("videoFrameBuffer"in e)return e;var t=e.data,n=pr(e,["data"]);return lr(lr({},n),{videoFrameBuffer:t})}function u(){var e;return xe(he,R.sidePanel)&&l()&&!!(null===(e=he.supports.video)||void 0===e?void 0:e.mediaStream)}function l(){var e,t,n,r;return!(!(null===(t=null===(e=ie().chrome)||void 0===e?void 0:e.webview)||void 0===t?void 0:t.getTextureStream)||!(null===(r=null===(n=ie().chrome)||void 0===n?void 0:n.webview)||void 0===r?void 0:r.registerTextureStream))}function d(){var e;return xe(he,R.sidePanel)&&!!(null===(e=he.supports.video)||void 0===e?void 0:e.sharedFrame)}!function(e){e.NV12="NV12"}(e.VideoFrameFormat||(e.VideoFrameFormat={})),function(e){e.EffectChanged="EffectChanged",e.EffectDisabled="EffectDisabled"}(e.EffectChangeType||(e.EffectChangeType={})),function(e){e.InvalidEffectId="InvalidEffectId",e.InitializationFailure="InitializationFailure"}(e.EffectFailureReason||(e.EffectFailureReason={})),e.registerForVideoFrame=function(e){if(xe(he,R.sidePanel),!o())throw H;if(!e.videoFrameHandler||!e.videoBufferHandler)throw new Error("Both videoFrameHandler and videoBufferHandler must be provided");if($e("video.setFrameProcessTimeLimit",(function(e){return null==t?void 0:t.setFrameProcessTimeLimit(e.timeLimit)}),!1),u())i(e.videoFrameHandler,e.config);else{if(!d())throw H;s(e.videoBufferHandler,e.config)}null==t||t.startMonitorSlowFrameProcessing()},e.notifySelectedVideoEffectChanged=function(e,t){if(xe(he,R.sidePanel),!o())throw H;St("video.videoEffectChanged",[e,t])},e.registerForVideoEffect=function(e){if(xe(he,R.sidePanel),!o())throw H;$e("video.effectParameterChange",nr(e,t),!1),St("video.registerForVideoEffect")},e.isSupported=o}(rr||(rr={})),function(e){var t="search.queryChange",n="search.queryClose",r="search.queryExecute";function o(){return!(!xe(he)||!he.supports.search)}e.registerHandlers=function(e,i,a){if(xe(he,R.content),!o())throw H;$e(n,e),$e(r,i),a&&$e(t,a)},e.unregisterHandlers=function(){if(xe(he,R.content),!o())throw H;St("search.unregister"),Ye(t),Ye(n),Ye(r)},e.isSupported=o,e.closeSearch=function(){return new Promise((function(e){if(xe(he,R.content),!o())throw new Error("Not supported");e(wt("search.closeSearch"))}))}}(or||(or={})),function(e){function t(t){return new Promise((function(n){if(!i())throw H;n(Ct(e.SharingAPIMessages.shareWebContent,t))}))}function n(e){if(!(e&&e.content&&e.content.length))throw{errorCode:P.INVALID_ARGUMENTS,message:"Shared content is missing"}}function r(e){if(e.content.some((function(e){return!e.type})))throw{errorCode:P.INVALID_ARGUMENTS,message:"Shared content type cannot be undefined"};if(e.content.some((function(t){return t.type!==e.content[0].type})))throw{errorCode:P.INVALID_ARGUMENTS,message:"Shared content must be of the same type"}}function o(e){if("URL"!==e.content[0].type)throw{errorCode:P.INVALID_ARGUMENTS,message:"Content type is unsupported"};if(e.content.some((function(e){return!e.url})))throw{errorCode:P.INVALID_ARGUMENTS,message:"URLs are required for URL content types"}}function i(){return!(!xe(he)||!he.supports.sharing)}e.SharingAPIMessages={shareWebContent:"sharing.shareWebContent"},e.shareWebContent=function(e,i){try{n(e),r(e),o(e)}catch(e){return Q((function(){return Promise.reject(e)}),i)}return xe(he,R.content,R.sidePanel,R.task,R.stage,R.meetingStage),Q(t,i,e)},e.isSupported=i}(ir||(ir={})),function(e){function t(){return!(!xe(he)||!he.supports.stageView)}!function(e){e.modal="modal",e.popout="popout",e.popoutWithChat="popoutWithChat"}(e.StageViewOpenMode||(e.StageViewOpenMode={})),e.open=function(e){return new Promise((function(n){if(xe(he,R.content),!t())throw H;if(!e)throw new Error("[stageView.open] Stage view params cannot be null");n(Ct("stageView.open",e))}))},e.isSupported=t}(ar||(ar={}));var mr,hr,gr,wr,vr,Cr=function(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())}))},yr=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return c([e,t])}}function c(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}};function br(e,t){Re.initialize(t).then((function(){e&&e()}))}function Sr(){Hn.enablePrintCapability()}function Er(){Hn.print()}function Tr(e){He(),St("getContext",(function(t){t.frameContext||(t.frameContext=p.frameContext),e(t)}))}function Ir(e){Re.registerOnThemeChangeHandler(e)}function Pr(e){tt("fullScreenChange",e,[])}function Fr(e){tt("appButtonClick",e,[R.content])}function Or(e){tt("appButtonHoverEnter",e,[R.content])}function kr(e){tt("appButtonHoverLeave",e,[R.content])}function Ar(e){Me.backStack.registerBackButtonHandlerHelper(e)}function Rr(e){Hn.registerOnLoadHandlerHelper(e)}function Mr(e){Hn.registerBeforeUnloadHandlerHelper(e)}function Dr(e){tt("focusEnter",e,[])}function Ur(e){tt("changeSettings",e,[R.content])}function Nr(e,t){xe(he),Me.tabs.getTabInstances(t).then((function(t){e(t)}))}function Lr(e,t){xe(he),Me.tabs.getMruTabInstances(t).then((function(t){e(t)}))}function Hr(e){Me.shareDeepLink({subPageId:e.subEntityId,subPageLabel:e.subEntityLabel,subPageWebUrl:e.subEntityWebUrl})}function xr(e,t){xe(he,R.content,R.sidePanel,R.settings,R.task,R.stage,R.meetingStage);var n=null!=t?t:q();Re.openLink(e).then((function(){n(!0)})).catch((function(e){n(!1,e.message)}))}function Vr(e){Me.setCurrentFrame(e)}function Wr(e,t,n){Me.initializeWithFrameContext(e,t,n)}function _r(e){Me.returnFocus(e)}function Br(e,t){xe(he);var n=null!=t?t:q();Me.tabs.navigateToTab(e).then((function(){n(!0)})).catch((function(e){n(!1,e.message)}))}function jr(e,t){xe(he,R.content,R.sidePanel,R.settings,R.remove,R.task,R.stage,R.meetingStage);var n=null!=t?t:q();Me.navigateCrossDomain(e).then((function(){n(!0)})).catch((function(e){n(!1,e.message)}))}function zr(e){xe(he);var t=null!=e?e:q();Me.backStack.navigateBack().then((function(){t(!0)})).catch((function(e){t(!1,e.message)}))}!function(e){var t;!function(e){e[e.FrontOrRear=1]="FrontOrRear",e[e.FrontOnly=2]="FrontOnly",e[e.RearOnly=3]="RearOnly"}(e.CameraRestriction||(e.CameraRestriction={})),function(e){e[e.Camera=1]="Camera",e[e.Gallery=2]="Gallery"}(e.Source||(e.Source={})),e.hasPermission=function(){if(xe(he,R.content,R.task),!t.isSupported())throw H;return Ct("permissions.has",F.Media)},e.requestPermission=function(){if(xe(he,R.content,R.task),!t.isSupported())throw H;return Ct("permissions.request",F.Media)},function(e){function t(){return!!(xe(he)&&he.supports.visualMedia&&he.supports.visualMedia.image&&he.supports.permissions)}function n(){if(!t())throw H}function r(e){if(!e||e.maxVisualMediaCount>10||e.maxVisualMediaCount<1)throw _}function o(e,t){if(t.length>e)throw B}e.captureImages=function(e){return Cr(this,void 0,void 0,(function(){var t;return yr(this,(function(i){switch(i.label){case 0:return xe(he,R.content,R.task),n(),r(e),[4,Ct("visualMedia.image.captureImages",e)];case 1:return t=i.sent(),o(e.maxVisualMediaCount,t),[2,t]}}))}))},e.retrieveImages=function(e){return Cr(this,void 0,void 0,(function(){var t;return yr(this,(function(i){switch(i.label){case 0:return xe(he,R.content,R.task),n(),r(e),[4,Ct("visualMedia.image.retrieveImages",e)];case 1:return t=i.sent(),o(e.maxVisualMediaCount,t),[2,t]}}))}))},e.isSupported=t}(t=e.image||(e.image={}))}(mr||(mr={})),function(e){function t(){return!(!xe(he)||!he.supports.webStorage)}e.isWebStorageClearedOnUserLogOut=function(){return xe(he),t()},e.isSupported=t}(hr||(hr={})),function(e){var t;function n(){return!(!xe(he)||!he.supports.call)}!function(e){e.Unknown="unknown",e.Audio="audio",e.Video="video",e.VideoBasedScreenSharing="videoBasedScreenSharing",e.Data="data"}(t=e.CallModalities||(e.CallModalities={})),e.startCall=function(e){return new Promise((function(r){var o;if(xe(he,R.content,R.task),!n())throw H;if(!he.isLegacyTeams)return St("call.startCall",[e],r);r(gt("executeDeepLink",on(e.targets,null===(o=e.requestedModalities)||void 0===o?void 0:o.includes(t.Video),e.source)).then((function(e){if(!e)throw new Error("The call was not properly started");return e})))}))},e.isSupported=n}(gr||(gr={})),function(e){e.Messages=Re.Messages,e.FailedReason=Re.FailedReason,e.ExpectedFailureReason=Re.ExpectedFailureReason,e.notifyAppLoaded=function(){Re.notifyAppLoaded()},e.notifySuccess=function(){Re.notifySuccess()},e.notifyFailure=function(e){Re.notifyFailure(e)},e.notifyExpectedFailure=function(e){Re.notifyExpectedFailure(e)}}(wr||(wr={})),function(e){e.setValidityState=function(e){Me.config.setValidityState(e)},e.getSettings=function(e){xe(he,R.content,R.settings,R.remove,R.sidePanel),Me.getConfig().then((function(t){e(t)}))},e.setSettings=function(e,t){xe(he,R.content,R.settings,R.sidePanel);var n=null!=t?t:q();Me.config.setConfig(e).then((function(){n(!0)})).catch((function(e){n(!1,e.message)}))},e.registerOnSaveHandler=function(e){Me.config.registerOnSaveHandlerHelper(e)},e.registerOnRemoveHandler=function(e){Me.config.registerOnRemoveHandlerHelper(e)}}(vr||(vr={}));var Gr,qr,Jr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};!function(e){function t(e){if(void 0===e.url)throw new Error("url property of taskInfo object can't be undefined");return{url:e.url,size:{height:e.height?e.height:L.Small,width:e.width?e.width:L.Small},title:e.title,fallbackUrl:e.fallbackUrl}}function n(e){if(void 0===e.url||void 0===e.completionBotId)throw new Error("Both url ".concat(e.url," and completionBotId ").concat(e.completionBotId," are required for bot url dialog. At least one is undefined."));return{url:e.url,size:{height:e.height?e.height:L.Small,width:e.width?e.width:L.Small},title:e.title,fallbackUrl:e.fallbackUrl,completionBotId:e.completionBotId}}function r(e){return e.height=e.height?e.height:L.Small,e.width=e.width?e.width:L.Small,e}e.startTask=function(e,r){var o=r?function(e){var t,n;return r(null!==(t=e.err)&&void 0!==t?t:"",null!==(n=e.result)&&void 0!==n?n:"")}:void 0;return void 0===e.card&&void 0===e.url||e.card?(xe(he,R.content,R.sidePanel,R.meetingStage),St("tasks.startTask",[e],r)):void 0!==e.completionBotId?ke.url.bot.open(n(e),o):ke.url.open(t(e),o),new Rn},e.updateTask=function(e){(e=r(e)).width,e.height;var t=Jr(e,["width","height"]);if(Object.keys(t).length)throw new Error("resize requires a TaskInfo argument containing only width and height");ke.update.resize(e)},e.submitTask=function(e,t){ke.url.submit(e,t)},e.getDefaultSizeIfNotProvided=r}(Gr||(Gr={})),function(e){!function(e){e.guest="Guest",e.attendee="Attendee",e.presenter="Presenter",e.organizer="Organizer"}(e.UserMeetingRole||(e.UserMeetingRole={})),function(e){e.added="Added",e.alreadyExists="AlreadyExists",e.conflict="Conflict",e.notFound="NotFound"}(e.ContainerState||(e.ContainerState={})),e.isSupported=function(){return!(!xe(he,R.meetingStage,R.sidePanel)||!he.supports.interactive)}}(qr||(qr={}));var Kr=function(){function e(){}return e.prototype.getFluidTenantInfo=function(){return Zr(),new Promise((function(e){e(Ct("interactive.getFluidTenantInfo"))}))},e.prototype.getFluidToken=function(e){return Zr(),new Promise((function(t){t(Ct("interactive.getFluidToken",e))}))},e.prototype.getFluidContainerId=function(){return Zr(),new Promise((function(e){e(Ct("interactive.getFluidContainerId"))}))},e.prototype.setFluidContainerId=function(e){return Zr(),new Promise((function(t){t(Ct("interactive.setFluidContainerId",e))}))},e.prototype.getNtpTime=function(){return Zr(),new Promise((function(e){e(Ct("interactive.getNtpTime"))}))},e.prototype.registerClientId=function(e){return Zr(),new Promise((function(t){t(Ct("interactive.registerClientId",e))}))},e.prototype.getClientRoles=function(e){return Zr(),new Promise((function(t){t(Ct("interactive.getClientRoles",e))}))},e.prototype.getClientInfo=function(e){return Zr(),new Promise((function(t){t(Ct("interactive.getClientInfo",e))}))},e.create=function(){return Zr(),new e},e}();function Zr(){if(!qr.isSupported())throw new Error("LiveShareHost Not supported")}const Xr=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const Qr=function(e){return"string"==typeof e&&Xr.test(e)};var $r=function(){return $r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},$r.apply(this,arguments)},Yr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function eo(e){try{return e.cartItems=to(e.cartItems),e}catch(e){throw new Error("Error deserializing cart")}}function to(e){return e.map((function(e){if(e.imageURL){var t=new URL(e.imageURL);e.imageURL=t}return e.accessories&&(e.accessories=to(e.accessories)),e}))}var no=function(e){try{return e.map((function(e){var t=e.imageURL,n=e.accessories,r=Yr(e,["imageURL","accessories"]),o=$r({},r);return t&&(o.imageURL=t.href),n&&(o.accessories=no(n)),o}))}catch(e){throw new Error("Error serializing cart items")}};function ro(e){if(!Array.isArray(e)||0===e.length)throw new Error("cartItems must be a non-empty array");for(var t=0,n=e;t<n.length;t++){var r=n[t];io(r),oo(r.accessories)}}function oo(e){if(null!=e){if(!Array.isArray(e)||0===e.length)throw new Error("CartItem.accessories must be a non-empty array");for(var t=0,n=e;t<n.length;t++){var r=n[t];if(r.accessories)throw new Error("Item in CartItem.accessories cannot have accessories");io(r)}}}function io(e){if(!e.id)throw new Error("cartItem.id must not be empty");if(!e.name)throw new Error("cartItem.name must not be empty");so(e.price),co(e.quantity)}function ao(e){if(null!=e){if(!e)throw new Error("id must not be empty");if(!1===Qr(e))throw new Error("id must be a valid UUID")}}function so(e){if("number"!=typeof e||e<0)throw new Error("price ".concat(e," must be a number not less than 0"));if(parseFloat(e.toFixed(3))!==e)throw new Error("price ".concat(e," must have at most 3 decimal places"))}function co(e){if("number"!=typeof e||e<=0||parseInt(e.toString())!==e)throw new Error("quantity ".concat(e," must be an integer greater than 0"))}function uo(e){if(!Object.values(lo.CartStatus).includes(e))throw new Error("cartStatus ".concat(e," is not valid"))}var lo,fo,po,mo,ho,go,wo,vo=function(){return vo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},vo.apply(this,arguments)};!function(e){function t(){return!(!xe(he)||!he.supports.marketplace)}e.cartVersion={majorVersion:1,minorVersion:1},function(e){e.TACAdminUser="TACAdminUser",e.TeamsAdminUser="TeamsAdminUser",e.TeamsEndUser="TeamsEndUser"}(e.Intent||(e.Intent={})),function(e){e.Open="Open",e.Processing="Processing",e.Processed="Processed",e.Closed="Closed",e.Error="Error"}(e.CartStatus||(e.CartStatus={})),e.getCart=function(){if(xe(he,R.content,R.task),!t())throw H;return Ct("marketplace.getCart",e.cartVersion).then(eo)},e.addOrUpdateCartItems=function(n){if(xe(he,R.content,R.task),!t())throw H;if(!n)throw new Error("addOrUpdateCartItemsParams must be provided");return ao(null==n?void 0:n.cartId),ro(null==n?void 0:n.cartItems),Ct("marketplace.addOrUpdateCartItems",vo(vo({},n),{cartItems:no(n.cartItems),cartVersion:e.cartVersion})).then(eo)},e.removeCartItems=function(n){if(xe(he,R.content,R.task),!t())throw H;if(!n)throw new Error("removeCartItemsParams must be provided");if(ao(null==n?void 0:n.cartId),!Array.isArray(null==n?void 0:n.cartItemIds)||0===(null==n?void 0:n.cartItemIds.length))throw new Error("cartItemIds must be a non-empty array");return Ct("marketplace.removeCartItems",vo(vo({},n),{cartVersion:e.cartVersion})).then(eo)},e.updateCartStatus=function(n){if(xe(he,R.content,R.task),!t())throw H;if(!n)throw new Error("updateCartStatusParams must be provided");return ao(null==n?void 0:n.cartId),uo(null==n?void 0:n.cartStatus),Ct("marketplace.updateCartStatus",vo(vo({},n),{cartVersion:e.cartVersion})).then(eo)},e.isSupported=t}(lo||(lo={})),function(e){function t(e,t){return{errorCode:e,message:t}}!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,t){if(xe(he,R.content),!e||0===e.length)throw new Error("[files.getCloudStorageFolders] channelId name cannot be null or empty");if(!t)throw new Error("[files.getCloudStorageFolders] Callback cannot be null");St("files.getCloudStorageFolders",[e],t)},e.addCloudStorageFolder=function(e,t){if(xe(he,R.content),!e||0===e.length)throw new Error("[files.addCloudStorageFolder] channelId name cannot be null or empty");if(!t)throw new Error("[files.addCloudStorageFolder] Callback cannot be null");St("files.addCloudStorageFolder",[e],t)},e.deleteCloudStorageFolder=function(e,t,n){if(xe(he,R.content),!e)throw new Error("[files.deleteCloudStorageFolder] channelId name cannot be null or empty");if(!t)throw new Error("[files.deleteCloudStorageFolder] folderToDelete cannot be null or empty");if(!n)throw new Error("[files.deleteCloudStorageFolder] Callback cannot be null");St("files.deleteCloudStorageFolder",[e,t],n)},e.getCloudStorageFolderContents=function(e,t,n){if(xe(he,R.content),!e||!t)throw new Error("[files.getCloudStorageFolderContents] folder/providerCode name cannot be null or empty");if(!n)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");St("files.getCloudStorageFolderContents",[e,t],n)},e.openCloudStorageFile=function(e,t,n){if(xe(he,R.content),!e||!t)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");St("files.openCloudStorageFile",[e,t,n])},e.getExternalProviders=function(e,t){if(void 0===e&&(e=!1),xe(he,R.content),!t)throw new Error("[files.getExternalProviders] Callback cannot be null");St("files.getExternalProviders",[e],t)},e.copyMoveFiles=function(e,t,n,r,o,i){if(void 0===o&&(o=!1),xe(he,R.content),!e||0===e.length)throw new Error("[files.copyMoveFiles] selectedFiles cannot be null or empty");if(!t)throw new Error("[files.copyMoveFiles] providerCode cannot be null or empty");if(!n)throw new Error("[files.copyMoveFiles] destinationFolder cannot be null or empty");if(!r)throw new Error("[files.copyMoveFiles] destinationProviderCode cannot be null or empty");if(!i)throw new Error("[files.copyMoveFiles] callback cannot be null");St("files.copyMoveFiles",[e,t,n,r,o],i)},e.getFileDownloads=function(e){if(xe(he,R.content),!e)throw new Error("[files.getFileDownloads] Callback cannot be null");St("files.getFileDownloads",[],e)},e.openDownloadFolder=function(e,t){if(void 0===e&&(e=void 0),xe(he,R.content),!t)throw new Error("[files.openDownloadFolder] Callback cannot be null");St("files.openDownloadFolder",[e],t)},e.addCloudStorageProvider=function(e){if(xe(he,R.content),!e)throw t(P.INVALID_ARGUMENTS,"[files.addCloudStorageProvider] callback cannot be null");St("files.addCloudStorageProvider",[],e)},e.removeCloudStorageProvider=function(e,n){if(xe(he,R.content),!n)throw t(P.INVALID_ARGUMENTS,"[files.removeCloudStorageProvider] callback cannot be null");if(!e||!e.content)throw t(P.INVALID_ARGUMENTS,"[files.removeCloudStorageProvider] 3P cloud storage provider request content is missing");St("files.removeCloudStorageProvider",[e],n)},e.addCloudStorageProviderFile=function(e,n){if(xe(he,R.content),!n)throw t(P.INVALID_ARGUMENTS,"[files.addCloudStorageProviderFile] callback cannot be null");if(!e||!e.content)throw t(P.INVALID_ARGUMENTS,"[files.addCloudStorageProviderFile] 3P cloud storage provider request content is missing");St("files.addCloudStorageProviderFile",[e],n)},e.renameCloudStorageProviderFile=function(e,n){if(xe(he,R.content),!n)throw t(P.INVALID_ARGUMENTS,"[files.renameCloudStorageProviderFile] callback cannot be null");if(!e||!e.content)throw t(P.INVALID_ARGUMENTS,"[files.renameCloudStorageProviderFile] 3P cloud storage provider request content is missing");St("files.renameCloudStorageProviderFile",[e],n)},e.deleteCloudStorageProviderFile=function(e,n){if(xe(he,R.content),!n)throw t(P.INVALID_ARGUMENTS,"[files.deleteCloudStorageProviderFile] callback cannot be null");if(!(e&&e.content&&e.content.itemList&&e.content.itemList.length>0))throw t(P.INVALID_ARGUMENTS,"[files.deleteCloudStorageProviderFile] 3P cloud storage provider request content details are missing");St("files.deleteCloudStorageProviderFile",[e],n)},e.downloadCloudStorageProviderFile=function(e,n){if(xe(he,R.content),!n)throw t(P.INVALID_ARGUMENTS,"[files.downloadCloudStorageProviderFile] callback cannot be null");if(!(e&&e.content&&e.content.itemList&&e.content.itemList.length>0))throw t(P.INVALID_ARGUMENTS,"[files.downloadCloudStorageProviderFile] 3P cloud storage provider request content details are missing");St("files.downloadCloudStorageProviderFile",[e],n)},e.uploadCloudStorageProviderFile=function(e,n){if(xe(he,R.content),!n)throw t(P.INVALID_ARGUMENTS,"[files.uploadCloudStorageProviderFile] callback cannot be null");if(!(e&&e.content&&e.content.itemList&&e.content.itemList.length>0))throw t(P.INVALID_ARGUMENTS,"[files.uploadCloudStorageProviderFile] 3P cloud storage provider request content details are missing");if(!e.content.destinationFolder)throw t(P.INVALID_ARGUMENTS,"[files.uploadCloudStorageProviderFile] Invalid destination folder details");St("files.uploadCloudStorageProviderFile",[e],n)},e.registerCloudStorageProviderListChangeHandler=function(e){if(xe(he),!e)throw new Error("[registerCloudStorageProviderListChangeHandler] Handler cannot be null");$e("files.cloudStorageProviderListChange",e)},e.registerCloudStorageProviderContentChangeHandler=function(e){if(xe(he),!e)throw new Error("[registerCloudStorageProviderContentChangeHandler] Handler cannot be null");$e("files.cloudStorageProviderContentChange",e)}}(fo||(fo={})),function(e){function t(){return!(!xe(he)||!he.supports.meetingRoom)}e.getPairedMeetingRoomInfo=function(){return new Promise((function(e){if(xe(he),!t())throw H;e(Ct("meetingRoom.getPairedMeetingRoomInfo"))}))},e.sendCommandToPairedMeetingRoom=function(e){return new Promise((function(n){if(!e||0==e.length)throw new Error("[meetingRoom.sendCommandToPairedMeetingRoom] Command name cannot be null or empty");if(xe(he),!t())throw H;n(Ct("meetingRoom.sendCommandToPairedMeetingRoom",e))}))},e.registerMeetingRoomCapabilitiesUpdateHandler=function(e){if(!e)throw new Error("[meetingRoom.registerMeetingRoomCapabilitiesUpdateHandler] Handler cannot be null");if(xe(he),!t())throw H;$e("meetingRoom.meetingRoomCapabilitiesUpdate",(function(t){xe(he),e(t)}))},e.registerMeetingRoomStatesUpdateHandler=function(e){if(!e)throw new Error("[meetingRoom.registerMeetingRoomStatesUpdateHandler] Handler cannot be null");if(xe(he),!t())throw H;$e("meetingRoom.meetingRoomStatesUpdate",(function(t){xe(he),e(t)}))},e.isSupported=t}(po||(po={})),function(e){function t(){return!(!xe(he)||!he.supports.notifications)}e.showNotification=function(e){if(xe(he,R.content),!t())throw H;St("notifications.showNotification",[e])},e.isSupported=t}(mo||(mo={})),function(e){function t(){return!(!xe(he)||!he.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(xe(he,R.sidePanel),!t())throw H;St("remoteCamera.getCapableParticipants",e)},e.requestControl=function(e,n){if(!e)throw new Error("[remoteCamera.requestControl] Participant cannot be null");if(!n)throw new Error("[remoteCamera.requestControl] Callback cannot be null");if(xe(he,R.sidePanel),!t())throw H;St("remoteCamera.requestControl",[e],n)},e.sendControlCommand=function(e,n){if(!e)throw new Error("[remoteCamera.sendControlCommand] ControlCommand cannot be null");if(!n)throw new Error("[remoteCamera.sendControlCommand] Callback cannot be null");if(xe(he,R.sidePanel),!t())throw H;St("remoteCamera.sendControlCommand",[e],n)},e.terminateSession=function(e){if(!e)throw new Error("[remoteCamera.terminateSession] Callback cannot be null");if(xe(he,R.sidePanel),!t())throw H;St("remoteCamera.terminateSession",e)},e.registerOnCapableParticipantsChangeHandler=function(e){if(!e)throw new Error("[remoteCamera.registerOnCapableParticipantsChangeHandler] Handler cannot be null");if(xe(he,R.sidePanel),!t())throw H;$e("remoteCamera.capableParticipantsChange",e)},e.registerOnErrorHandler=function(e){if(!e)throw new Error("[remoteCamera.registerOnErrorHandler] Handler cannot be null");if(xe(he,R.sidePanel),!t())throw H;$e("remoteCamera.handlerError",e)},e.registerOnDeviceStateChangeHandler=function(e){if(!e)throw new Error("[remoteCamera.registerOnDeviceStateChangeHandler] Handler cannot be null");if(xe(he,R.sidePanel),!t())throw H;$e("remoteCamera.deviceStateChange",e)},e.registerOnSessionStatusChangeHandler=function(e){if(!e)throw new Error("[remoteCamera.registerOnSessionStatusChangeHandler] Handler cannot be null");if(xe(he,R.sidePanel),!t())throw H;$e("remoteCamera.sessionStatusChange",e)},e.isSupported=t}(ho||(ho={})),function(e){function t(){return!(!xe(he)||!he.supports.appEntity)}e.selectAppEntity=function(e,n,r,o){if(xe(he,R.content),!t())throw H;if(!e||0==e.length)throw new Error("[appEntity.selectAppEntity] threadId name cannot be null or empty");if(!o)throw new Error("[appEntity.selectAppEntity] Callback cannot be null");St("appEntity.selectAppEntity",[e,n,r],o)},e.isSupported=t}(go||(go={})),function(e){function t(){return!(!xe(he)||!he.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,n){if(xe(he,R.content),!t())throw H;if(!e)throw new Error("[teams.getTeamChannels] groupId cannot be null or empty");if(!n)throw new Error("[teams.getTeamChannels] Callback cannot be null");St("teams.getTeamChannels",[e],n)},e.refreshSiteUrl=function(e,n){if(xe(he),!t())throw H;if(!e)throw new Error("[teams.refreshSiteUrl] threadId cannot be null or empty");if(!n)throw new Error("[teams.refreshSiteUrl] Callback cannot be null");St("teams.refreshSiteUrl",[e],n)},e.isSupported=t,function(e){function t(){return!(!xe(he)||!he.supports.teams)&&!!he.supports.teams.fullTrust}!function(e){function t(){return!(!xe(he)||!he.supports.teams)&&(!!he.supports.teams.fullTrust&&!!he.supports.teams.fullTrust.joinedTeams)}e.getUserJoinedTeams=function(e){return new Promise((function(n){if(xe(he),!t())throw H;if((p.hostClientType===k.android||p.hostClientType===k.teamsRoomsAndroid||p.hostClientType===k.teamsPhones||p.hostClientType===k.teamsDisplays)&&!Ve("2.0.1")){var r={errorCode:P.OLD_PLATFORM};throw new Error(JSON.stringify(r))}n(gt("getUserJoinedTeams",e))}))},e.isSupported=t}(e.joinedTeams||(e.joinedTeams={})),e.getConfigSetting=function(e){return new Promise((function(n){if(xe(he),!t())throw H;n(gt("getConfigSetting",e))}))},e.isSupported=t}(e.fullTrust||(e.fullTrust={}))}(wo||(wo={}));var Co,yo=function(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())}))},bo=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return c([e,t])}}function c(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}};!function(e){var t,n=ae()?void 0:new ur(St);function r(e,t){var n=this;return function(r){return yo(n,void 0,void 0,(function(){var n,o;return bo(this,(function(i){switch(i.label){case 0:return n=r.videoFrame,t.reportStartFrameProcessing(n.codedWidth,n.codedHeight),[4,e(r)];case 1:return o=i.sent(),t.reportFrameProcessed(),[2,o]}}))}))}}function o(e){return e.videoFrameBuffer=e.videoFrameBuffer||e.data,delete e.data,e}function i(){return xe(he),rr.isSupported()}function a(e){St("video.videoFrameProcessed",[e])}function s(e,n){void 0===n&&(n=t.Warn),St("video.notifyError",[e,n])}!function(e){e.Fatal="fatal",e.Warn="warn"}(t=e.ErrorLevel||(e.ErrorLevel={})),e.registerForVideoFrame=function(e){var t,c,u=this;if(!i())throw H;if(!e.videoFrameHandler||!e.videoBufferHandler)throw new Error("Both videoFrameHandler and videoBufferHandler must be provided");if(xe(he,R.sidePanel)){if($e("video.setFrameProcessTimeLimit",(function(e){return null==n?void 0:n.setFrameProcessTimeLimit(e)}),!1),null===(t=he.supports.video)||void 0===t?void 0:t.mediaStream)$e("video.startVideoExtensibilityVideoStream",(function(t){return yo(u,void 0,void 0,(function(){var o,i,a;return bo(this,(function(c){switch(c.label){case 0:return o=t.streamId,i=t.metadataInTexture,a=n?r(e.videoFrameHandler,n):e.videoFrameHandler,i?[4,Kn(o,a,s,n)]:[3,2];case 1:return c.sent(),[3,4];case 2:return[4,Jn(o,a,s,n)];case 3:c.sent(),c.label=4;case 4:return[2]}}))}))}),!1),St("video.mediaStream.registerForVideoFrame",[e.config]);else{if(!(null===(c=he.supports.video)||void 0===c?void 0:c.sharedFrame))throw H;$e("video.newVideoFrame",(function(t){if(t){null==n||n.reportStartFrameProcessing(t.width,t.height);var r=t.timestamp;e.videoBufferHandler(o(t),(function(){null==n||n.reportFrameProcessed(),a(r)}),s)}}),!1),St("video.registerForVideoFrame",[e.config])}null==n||n.startMonitorSlowFrameProcessing()}},e.notifySelectedVideoEffectChanged=function(e,t,n){if(xe(he,R.sidePanel),!i())throw H;St("video.videoEffectChanged",[e,t,n])},e.registerForVideoEffect=function(e){if(xe(he,R.sidePanel),!i())throw H;$e("video.effectParameterChange",nr(e,n),!1),St("video.registerForVideoEffect")},e.updatePersonalizedEffects=function(e){if(xe(he,R.sidePanel),!rr.isSupported())throw H;St("video.personalizedEffectsChanged",[e])},e.isSupported=i,e.notifyFatalError=function(e){if(xe(he),!rr.isSupported())throw H;s(e,t.Fatal)}}(Co||(Co={}))})(),r})()));
2
2
  //# sourceMappingURL=MicrosoftTeams.min.js.map