@microsoft/teams-js
Version:
Microsoft Client SDK for building app for Microsoft hosts
1 lines • 207 kB
JavaScript
!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={933:(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,i=s(e),a=i[0],u=i[1],l=new o(c(e,a,u)),d=0,f=u>0?a-4:a;for(n=0;n<f;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],l[d++]=t>>16&255,l[d++]=t>>8&255,l[d++]=255&t;2===u&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,l[d++]=255&t);1===u&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,l[d++]=t>>8&255,l[d++]=255&t);return l},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],a=16383,s=0,c=r-o;s<c;s+=a)i.push(l(e,s,s+a>c?c:s+a));1===o?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===o&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=i[a],r[i.charCodeAt(a)]=a;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e,t,n){return 3*(t+n)/4-n}function u(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function l(e,t,n){for(var r,o=[],i=t;i<n;i+=3)r=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2]),o.push(u(r));return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},815:(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(530)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},530:(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(821),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}},821:e=>{var t=1e3,n=60*t,r=60*n,o=24*r,i=7*o;function a(e){if(!((e=String(e)).length>100)){var a=/^(-?(?:\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(a){var s=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"weeks":case"week":case"w":return s*i;case"days":case"day":case"d":return s*o;case"hours":case"hour":case"hrs":case"hr":case"h":return s*r;case"minutes":case"minute":case"mins":case"min":case"m":return s*n;case"seconds":case"second":case"secs":case"sec":case"s":return s*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}function s(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 c(e){var i=Math.abs(e);return i>=o?u(e,i,o,"day"):i>=r?u(e,i,r,"hour"):i>=n?u(e,i,n,"minute"):i>=t?u(e,i,t,"second"):e+" ms"}function u(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 a(e);if("number"===n&&isFinite(e))return t.long?c(e):s(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}(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"==typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"==typeof r.then)return r}var i=Object.create(null);n.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>r[e]));return a.default=()=>r,n.d(i,a),i}})(),(()=>{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:()=>De,AppId:()=>ro,ChannelType:()=>hn,ChildAppWindow:()=>Rm,DialogDimension:()=>gn,EduType:()=>We,EmailAddress:()=>Bg,ErrorCode:()=>Le,FileOpenPreference:()=>Ne,FrameContexts:()=>ln,HostClientType:()=>cn,HostName:()=>un,LiveShareHost:()=>ry,NotificationTypes:()=>tu,ParentAppWindow:()=>Fm,RenderingSurfaces:()=>dn,SecondaryM365ContentIdName:()=>Ue,TaskModuleDimension:()=>gn,TeamType:()=>fn,UUID:()=>Gn,UserAuthenticationState:()=>sl,UserSettingTypes:()=>ru,UserTeamRole:()=>pn,ValidatedSafeString:()=>no,ViewerActionTypes:()=>nu,activateChildProxyingCommunication:()=>Pr,app:()=>i,appEntity:()=>W,appInitialization:()=>Oe,appInstallDialog:()=>ee,appPerformanceMetrics:()=>Y,authentication:()=>X,barCode:()=>ne,calendar:()=>pe,call:()=>Te,chat:()=>re,clipboard:()=>oe,conversations:()=>b,copilot:()=>O,dialog:()=>f,enablePrintCapability:()=>hC,executeDeepLink:()=>kC,externalAppAuthentication:()=>R,externalAppAuthenticationForCEA:()=>F,externalAppCardActions:()=>k,externalAppCardActionsForCEA:()=>M,externalAppCardActionsForDA:()=>x,externalAppCommands:()=>N,files:()=>D,geoLocation:()=>se,getAdaptiveCardSchemaVersion:()=>Tm,getContext:()=>vC,getCurrentFeatureFlagsState:()=>Rr,getMruTabInstances:()=>RC,getTabInstances:()=>OC,hostEntity:()=>K,initialize:()=>gC,initializeWithFrameContext:()=>xC,liveShare:()=>Me,location:()=>ue,logs:()=>S,mail:()=>he,marketplace:()=>xe,media:()=>te,meeting:()=>de,meetingRoom:()=>U,menus:()=>p,messageChannels:()=>L,monetization:()=>fe,navigateBack:()=>HC,navigateCrossDomain:()=>LC,navigateToTab:()=>UC,nestedAppAuth:()=>ie,nestedAppAuthBridge:()=>H,notifications:()=>_,openFilePreview:()=>lu,otherAppStateChange:()=>V,overwriteFeatureFlagsState:()=>kr,pages:()=>y,people:()=>ve,print:()=>mC,profile:()=>we,registerAppButtonClickHandler:()=>yC,registerAppButtonHoverEnterHandler:()=>SC,registerAppButtonHoverLeaveHandler:()=>bC,registerBackButtonHandler:()=>AC,registerBeforeUnloadHandler:()=>IC,registerChangeSettingsHandler:()=>TC,registerCustomHandler:()=>cu,registerFocusEnterHandler:()=>PC,registerFullScreenHandler:()=>CC,registerOnLoadHandler:()=>EC,registerOnThemeChangeHandler:()=>wC,registerUserSettingsChangeHandler:()=>uu,remoteCamera:()=>B,returnFocus:()=>DC,search:()=>Ce,secondaryBrowser:()=>ce,sendCustomEvent:()=>su,sendCustomMessage:()=>au,setFeatureFlagsState:()=>Fr,setFrameContext:()=>MC,settings:()=>Fe,shareDeepLink:()=>FC,sharing:()=>Se,shortcutRelay:()=>ze,sidePanelInterfaces:()=>I,stageView:()=>Ae,store:()=>Q,tasks:()=>ke,teams:()=>q,teamsCore:()=>me,thirdPartyCloudStorage:()=>Re,uploadCustomApp:()=>iu,version:()=>Er,videoEffects:()=>$,videoEffectsEx:()=>G,visualMedia:()=>Ie,webStorage:()=>Pe,widgetHosting:()=>Z});var e={};n.r(e),n.d(e,{_clearTelemetryPort:()=>fo,getTelemetryPort:()=>uo,isSupported:()=>lo});var t={};n.r(t),n.d(t,{_clearDataLayerPort:()=>Co,getDataLayerPort:()=>vo,isSupported:()=>wo});var o={};n.r(o),n.d(o,{registerBeforeSuspendOrTerminateHandler:()=>yo,registerOnResumeHandler:()=>So});var i={};n.r(i),n.d(i,{ExpectedFailureReason:()=>Po,FailedReason:()=>Io,Messages:()=>Eo,_initialize:()=>Fo,_uninitialize:()=>ko,getContext:()=>Mo,getFrameContext:()=>Oo,initialize:()=>Ro,isInitialized:()=>To,lifecycle:()=>o,notifyAppLoaded:()=>xo,notifyExpectedFailure:()=>Uo,notifyFailure:()=>Do,notifySuccess:()=>No,openLink:()=>Vo,registerHostToAppPerformanceMetricsHandler:()=>_o,registerOnContextChangeHandler:()=>Ho,registerOnThemeChangeHandler:()=>Lo});var a={};n.r(a),n.d(a,{isSupported:()=>jo,resize:()=>Wo});var s={};n.r(s),n.d(s,{isSupported:()=>qo,open:()=>zo});var c={};n.r(c),n.d(c,{isSupported:()=>Ko,registerOnMessageFromParent:()=>Jo,sendMessageToDialog:()=>Go,sendMessageToParentFromDialog:()=>$o});var u={};n.r(u),n.d(u,{bot:()=>s,getDialogInfoFromBotUrlDialogInfo:()=>ei,getDialogInfoFromUrlDialogInfo:()=>Yo,isSupported:()=>Xo,open:()=>Qo,parentCommunication:()=>c,submit:()=>Zo});var l={};n.r(l),n.d(l,{isSupported:()=>fi,open:()=>di});var d={};n.r(d),n.d(d,{bot:()=>l,isSupported:()=>gi,open:()=>pi});var f={};n.r(f),n.d(f,{adaptiveCard:()=>d,initialize:()=>hi,isSupported:()=>mi,update:()=>a,url:()=>u});var p={};n.r(p),n.d(p,{DisplayMode:()=>wi,MenuItem:()=>yi,MenuListType:()=>Ci,initialize:()=>Pi,isSupported:()=>xi,setNavBarMenu:()=>Ri,setUpViews:()=>Ti,showActionMenu:()=>ki});var g={};n.r(g),n.d(g,{initialize:()=>Ni,isSupported:()=>$i,registerChangeConfigHandler:()=>Wi,registerOnRemoveHandler:()=>_i,registerOnRemoveHandlerHelper:()=>Vi,registerOnSaveHandler:()=>Li,registerOnSaveHandlerHelper:()=>Hi,setConfig:()=>Ui,setValidityState:()=>Di});var h={};n.r(h),n.d(h,{isSupported:()=>Ea,onClick:()=>Sa,onHoverEnter:()=>ba,onHoverLeave:()=>Aa});var m={};n.r(m),n.d(m,{_initialize:()=>Ia,isSupported:()=>Ra,navigateBack:()=>Pa,registerBackButtonHandler:()=>Ta,registerBackButtonHandlerHelper:()=>Oa});var v={};n.r(v),n.d(v,{isSupported:()=>Ma,navigateTo:()=>Fa,navigateToDefaultPage:()=>ka});var w={};n.r(w),n.d(w,{enterFullscreen:()=>xa,exitFullscreen:()=>Na,isSupported:()=>Da});var C={};n.r(C),n.d(C,{getMruTabInstances:()=>Ha,getTabInstances:()=>La,isSupported:()=>_a,navigateToTab:()=>Ua});var y={};n.r(y),n.d(y,{EnterFocusType:()=>Va,ReturnFocusType:()=>Ba,appButton:()=>h,backStack:()=>m,config:()=>g,currentApp:()=>v,fullTrust:()=>w,getConfig:()=>$a,initializeWithFrameContext:()=>qa,isSupported:()=>Za,navigateCrossDomain:()=>Ga,navigateToApp:()=>Ja,registerFocusEnterHandler:()=>ja,registerFullScreenHandler:()=>Qa,returnFocus:()=>Wa,setCurrentFrame:()=>za,shareDeepLink:()=>Ka,tabs:()=>C});var S={};n.r(S),n.d(S,{isSupported:()=>eu,registerGetLogHandler:()=>Yc});var b={};n.r(b),n.d(b,{closeConversation:()=>pu,getChatMembers:()=>gu,isSupported:()=>hu,openConversation:()=>fu});var A={};n.r(A),n.d(A,{isSupported:()=>Cu,sendCustomTelemetryData:()=>yu});var E={};n.r(E),n.d(E,{getEligibilityInfo:()=>Iu,isSupported:()=>Eu});var I={};n.r(I),n.d(I,{ContentItemType:()=>Tu,CopilotMode:()=>ku,MediaSelectionType:()=>Ou,SidePanelErrorCode:()=>Du,SidePanelErrorImpl:()=>Uu,TeamsContextType:()=>xu,TeamsDimensionName:()=>Fu,TeamsSessionType:()=>Ru,TranscriptState:()=>Mu,UserConsent:()=>Nu});var P={};n.r(P),n.d(P,{copilotSidePanelNotSupportedOnPlatformError:()=>zu,getContent:()=>Bu,isResponseAReportableError:()=>Vu,isSupported:()=>_u,preCheckUserConsent:()=>Wu,registerUserActionContentSelect:()=>ju});var T={};n.r(T),n.d(T,{closeSidePanel:()=>Xu,isSupported:()=>Zu});var O={};n.r(O),n.d(O,{customTelemetry:()=>A,eligibility:()=>E,sidePanel:()=>P,view:()=>T});var R={};n.r(R),n.d(R,{ActionExecuteInvokeRequestType:()=>rl,ActionExecuteResponseHandler:()=>cl,InvokeErrorCode:()=>al,InvokeResponseType:()=>il,OriginalRequestType:()=>ol,SerializableActionExecuteInvokeRequest:()=>tl,SerializableConnectorParameters:()=>wl,UserAuthenticationState:()=>sl,authenticateAndResendRequest:()=>pl,authenticateWithConnector:()=>Cl,authenticateWithOauth2:()=>ml,authenticateWithPowerPlatformConnectorPlugins:()=>vl,authenticateWithSSO:()=>gl,authenticateWithSSOAndResendRequest:()=>hl,disconnectConnector:()=>bl,getUserAuthenticationStateForConnector:()=>Sl,isActionExecuteResponse:()=>nl,isInvokeError:()=>ul,isSupported:()=>Al,validateActionExecuteInvokeRequest:()=>dl});var F={};n.r(F),n.d(F,{authenticateAndResendRequest:()=>Ol,authenticateWithOauth:()=>Tl,authenticateWithSSO:()=>Pl,authenticateWithSSOAndResendRequest:()=>Rl,isSupported:()=>Fl,validateInput:()=>kl});var k={};n.r(k),n.d(k,{ActionOpenUrlErrorCode:()=>Nl,ActionOpenUrlType:()=>xl,isSupported:()=>Ll,processActionOpenUrl:()=>Ul,processActionSubmit:()=>Dl});var M={};n.r(M),n.d(M,{isSupported:()=>Wl,processActionOpenUrl:()=>Vl,processActionSubmit:()=>Bl});var x={};n.r(x),n.d(x,{SerializableActionOpenUrlDialogInfo:()=>Ql,isSupported:()=>Jl,processActionOpenUrlDialog:()=>Gl});var N={};n.r(N),n.d(N,{isSupported:()=>ed,processActionCommand:()=>Yl});var D={};n.r(D),n.d(D,{CloudStorageProvider:()=>nd,CloudStorageProviderFileAction:()=>sd,CloudStorageProviderType:()=>rd,DocumentLibraryAccessType:()=>id,FileDownloadStatus:()=>ad,SpecialDocumentLibraryType:()=>od,addCloudStorageFolder:()=>ud,addCloudStorageProvider:()=>vd,addCloudStorageProviderFile:()=>Cd,copyMoveFiles:()=>gd,deleteCloudStorageFolder:()=>ld,deleteCloudStorageProviderFile:()=>Sd,downloadCloudStorageProviderFile:()=>bd,getCloudStorageFolderContents:()=>dd,getCloudStorageFolders:()=>cd,getExternalProviders:()=>pd,getFileDownloads:()=>hd,openCloudStorageFile:()=>fd,openDownloadFolder:()=>md,registerCloudStorageProviderContentChangeHandler:()=>Id,registerCloudStorageProviderListChangeHandler:()=>Ed,removeCloudStorageProvider:()=>wd,renameCloudStorageProviderFile:()=>yd,uploadCloudStorageProviderFile:()=>Ad});var U={};n.r(U),n.d(U,{getPairedMeetingRoomInfo:()=>Od,isSupported:()=>Md,registerMeetingRoomCapabilitiesUpdateHandler:()=>Fd,registerMeetingRoomStatesUpdateHandler:()=>kd,sendCommandToPairedMeetingRoom:()=>Rd});var L={};n.r(L),n.d(L,{dataLayer:()=>t,isSupported:()=>xd,telemetry:()=>e});var H={};n.r(H),n.d(H,{initialize:()=>Hd,version:()=>Nd});var _={};n.r(_),n.d(_,{isSupported:()=>Gd,showNotification:()=>$d});var V={};n.r(V),n.d(V,{isSupported:()=>Xd,notifyInstallCompleted:()=>Zd,registerAppInstallationHandler:()=>Kd,unregisterAppInstallationHandler:()=>Qd});var B={};n.r(B),n.d(B,{ControlCommand:()=>ef,ErrorReason:()=>tf,SessionTerminatedReason:()=>nf,getCapableParticipants:()=>rf,isSupported:()=>ff,registerOnCapableParticipantsChangeHandler:()=>cf,registerOnDeviceStateChangeHandler:()=>lf,registerOnErrorHandler:()=>uf,registerOnSessionStatusChangeHandler:()=>df,requestControl:()=>of,sendControlCommand:()=>af,terminateSession:()=>sf});var W={};n.r(W),n.d(W,{isSupported:()=>hf,selectAppEntity:()=>gf});var j={};n.r(j),n.d(j,{getUserJoinedTeams:()=>vf,isSupported:()=>wf});var z={};n.r(z),n.d(z,{getConfigSetting:()=>Sf,isSupported:()=>bf,joinedTeams:()=>j});var q={};n.r(q),n.d(q,{ChannelType:()=>Ef,fullTrust:()=>z,getTeamChannels:()=>If,isSupported:()=>Tf,refreshSiteUrl:()=>Pf});var $={};n.r($),n.d($,{EffectChangeType:()=>Lf,EffectFailureReason:()=>Hf,VideoFrameFormat:()=>Uf,isSupported:()=>zf,notifySelectedVideoEffectChanged:()=>Vf,registerForVideoEffect:()=>Bf,registerForVideoFrame:()=>_f});var G={};n.r(G),n.d(G,{ErrorLevel:()=>gp,frameProcessingTimeoutInMs:()=>fp,isSupported:()=>bp,notifyFatalError:()=>Ip,notifySelectedVideoEffectChanged:()=>Cp,registerForVideoEffect:()=>yp,registerForVideoFrame:()=>hp,updatePersonalizedEffects:()=>Sp});var J={};n.r(J),n.d(J,{addAndConfigure:()=>xp,getAll:()=>Np,isSupported:()=>Hp,reconfigure:()=>Dp,remove:()=>Lp,rename:()=>Up});var K={};n.r(K),n.d(K,{AppTypes:()=>Bp,isSupported:()=>Wp,tab:()=>J});var Q={};n.r(Q),n.d(Q,{isSupported:()=>Xp,openAppDetail:()=>Kp,openFullStore:()=>Jp,openInContextStore:()=>Qp,openSpecificStore:()=>Zp});var Z={};n.r(Z),n.d(Z,{callTool:()=>ig,contentSizeChanged:()=>lg,isSupported:()=>og,notifyIntrinsicHeight:()=>ug,openExternal:()=>fg,registerModalCloseHandler:()=>pg,requestDisplayMode:()=>sg,requestModal:()=>cg,sendFollowUpMessage:()=>ag,setWidgetState:()=>dg});var X={};n.r(X),n.d(X,{DataResidency:()=>Lg,authenticate:()=>Rg,getAuthToken:()=>kg,getUser:()=>xg,notifyFailure:()=>Ug,notifySuccess:()=>Dg,registerAuthenticationHandlers:()=>Og});var Y={};n.r(Y),n.d(Y,{isSupported:()=>Hg,registerHostMemoryMetricsHandler:()=>_g});var ee={};n.r(ee),n.d(ee,{isSupported:()=>ch,openAppInstallDialog:()=>sh});var te={};n.r(te),n.d(te,{CameraStartMode:()=>ph,File:()=>wh,FileFormat:()=>dh,ImageOutputFormats:()=>vh,ImageUriType:()=>mh,Media:()=>Ah,MediaControllerEvent:()=>fh,MediaType:()=>hh,Source:()=>gh,VideoController:()=>Ih,captureImage:()=>Ch,hasPermission:()=>yh,requestPermission:()=>Sh,scanBarCode:()=>Oh,selectMedia:()=>Ph,viewImages:()=>Th});var ne={};n.r(ne),n.d(ne,{hasPermission:()=>jh,isSupported:()=>qh,requestPermission:()=>zh,scanBarCode:()=>Wh});var re={};n.r(re),n.d(re,{isSupported:()=>Qh,openChat:()=>Gh,openGroupChat:()=>Kh});var oe={};n.r(oe),n.d(oe,{isSupported:()=>tm,read:()=>em,write:()=>Yh});var ie={};n.r(ie),n.d(ie,{addNAATrustedOrigins:()=>pm,canParentManageNAATrustedOrigins:()=>cm,deleteNAATrustedOrigins:()=>gm,getParentOrigin:()=>sm,isDeeplyNestedAuthSupported:()=>um,isNAAChannelRecommended:()=>am});var ae={};n.r(ae),n.d(ae,{chooseLocation:()=>Cm,isSupported:()=>Sm,showLocation:()=>ym});var se={};n.r(se),n.d(se,{getCurrentLocation:()=>Am,hasPermission:()=>Em,isSupported:()=>Pm,map:()=>ae,requestPermission:()=>Im});var ce={};n.r(ce),n.d(ce,{isSupported:()=>xm,open:()=>Mm});var ue={};n.r(ue),n.d(ue,{getLocation:()=>Dm,isSupported:()=>Lm,showLocation:()=>Um});var le={};n.r(le),n.d(le,{setOptions:()=>_m});var de={};n.r(de),n.d(de,{CallType:()=>qm,EventActionSource:()=>Gm,MeetingReactionType:()=>jm,MeetingType:()=>zm,SharingProtocol:()=>$m,appShareButton:()=>le,getAppContentStageSharingCapabilities:()=>ov,getAppContentStageSharingState:()=>av,getAuthenticationTokenForAnonymousUser:()=>Xm,getIncomingClientAudioState:()=>Jm,getLiveStreamState:()=>Ym,getMeetingDetails:()=>Qm,getMeetingDetailsVerbose:()=>Zm,joinMeeting:()=>lv,registerLiveStreamChangedHandler:()=>nv,registerMeetingReactionReceivedHandler:()=>uv,registerRaiseHandStateChangedHandler:()=>cv,registerSpeakingStateChangeHandler:()=>sv,requestAppAudioHandling:()=>dv,requestStartLiveStreaming:()=>ev,requestStopLiveStreaming:()=>tv,shareAppContentToStage:()=>rv,stopSharingAppContentToStage:()=>iv,toggleIncomingClientAudio:()=>Km,updateMicState:()=>gv});var fe={};n.r(fe),n.d(fe,{isSupported:()=>Cv,openPurchaseExperience:()=>wv});var pe={};n.r(pe),n.d(pe,{composeMeeting:()=>bv,isSupported:()=>Av,openCalendarItem:()=>Sv});var ge={};n.r(ge),n.d(ge,{composeMailWithHandoff:()=>Tv,isSupported:()=>Ov});var he={};n.r(he),n.d(he,{ComposeMailType:()=>Nv,composeMail:()=>Mv,handoff:()=>ge,isSupported:()=>xv,openMailItem:()=>kv});var me={};n.r(me),n.d(me,{enablePrintCapability:()=>Uv,isSupported:()=>Wv,print:()=>Lv,registerBeforeUnloadHandler:()=>Vv,registerBeforeUnloadHandlerHelper:()=>Bv,registerOnLoadHandler:()=>Hv,registerOnLoadHandlerHelper:()=>_v});var ve={};n.r(ve),n.d(ve,{isSupported:()=>Gv,selectPeople:()=>qv});var we={};n.r(we),n.d(we,{isSupported:()=>Xv,showProfile:()=>Zv});var Ce={};n.r(Ce),n.d(Ce,{closeSearch:()=>aw,isSupported:()=>iw,registerHandlers:()=>rw,unregisterHandlers:()=>ow});var ye={};n.r(ye),n.d(ye,{getContent:()=>uw,isSupported:()=>lw});var Se={};n.r(Se),n.d(Se,{SharingAPIMessages:()=>pw,history:()=>ye,isSupported:()=>Cw,shareWebContent:()=>gw});var be={};n.r(be),n.d(be,{close:()=>Sw,isSupported:()=>bw});var Ae={};n.r(Ae),n.d(Ae,{StageViewOpenMode:()=>Ew,isSupported:()=>Pw,open:()=>Iw,self:()=>be});var Ee={};n.r(Ee),n.d(Ee,{captureImages:()=>Fw,isSupported:()=>Mw,retrieveImages:()=>kw});var Ie={};n.r(Ie),n.d(Ie,{CameraRestriction:()=>Lw,Source:()=>Hw,hasPermission:()=>_w,image:()=>Ee,requestPermission:()=>Vw});var Pe={};n.r(Pe),n.d(Pe,{isSupported:()=>Gw,isWebStorageClearedOnUserLogOut:()=>qw});var Te={};n.r(Te),n.d(Te,{CallModalities:()=>Kw,isSupported:()=>Zw,startCall:()=>Qw});var Oe={};n.r(Oe),n.d(Oe,{ExpectedFailureReason:()=>Po,FailedReason:()=>Io,Messages:()=>Eo,notifyAppLoaded:()=>Yw,notifyExpectedFailure:()=>nC,notifyFailure:()=>tC,notifySuccess:()=>eC});var Re={};n.r(Re),n.d(Re,{getDragAndDropFiles:()=>lC,isSupported:()=>fC});var Fe={};n.r(Fe),n.d(Fe,{getSettings:()=>BC,registerOnRemoveHandler:()=>zC,registerOnSaveHandler:()=>jC,setSettings:()=>WC,setValidityState:()=>VC});var ke={};n.r(ke),n.d(ke,{getDefaultSizeIfNotProvided:()=>XC,startTask:()=>GC,submitTask:()=>KC,updateTask:()=>JC});var Me={};n.r(Me),n.d(Me,{ContainerState:()=>ty,LiveShareHost:()=>ry,UserMeetingRole:()=>ey,isSupported:()=>ny});var xe={};n.r(xe),n.d(xe,{CartStatus:()=>Cy,Intent:()=>wy,addOrUpdateCartItems:()=>Sy,cartVersion:()=>vy,getCart:()=>yy,isSupported:()=>Ey,removeCartItems:()=>by,updateCartStatus:()=>Ay});var Ne,De,Ue,Le,He,_e,Ve,Be,We,je,ze={};function qe(e){return void 0!==(null==e?void 0:e.errorCode)}n.r(ze),n.d(ze,{DISABLE_SHORTCUT_FORWARDING_ATTRIBUTE:()=>jy,enableShortcutRelayCapability:()=>By,isSupported:()=>Wy,resetIsShortcutRelayCapabilityEnabled:()=>Vy,setOverridableShortcutHandler:()=>_y}),function(e){e.Inline="inline",e.Desktop="desktop",e.Web="web"}(Ne||(Ne={})),function(e){e.M365Content="m365content"}(De||(De={})),function(e){e.DriveId="driveId",e.GroupId="groupId",e.SiteId="siteId",e.UserId="userId"}(Ue||(Ue={})),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"}(Le||(Le={})),function(e){e.GeoLocation="geolocation",e.Media="media"}(He||(He={})),function(e){e.BCAIS="bcais",e.BCWAF="bcwaf",e.BCWBF="bcwbf"}(_e||(_e={})),function(e){e.Faculty="faculty",e.Student="student",e.Other="other"}(Ve||(Ve={})),function(e){e.Adult="adult",e.MinorNoParentalConsentRequired="minorNoParentalConsentRequired",e.MinorWithoutParentalConsent="minorWithoutParentalConsent",e.MinorWithParentalConsent="minorWithParentalConsent",e.NotAdult="notAdult",e.NonAdult="notAdult"}(Be||(Be={})),function(e){e.HigherEducation="higherEducation",e.K12="k12",e.Other="other"}(We||(We={})),function(e){e.TextPlain="text/plain",e.TextHtml="text/html",e.ImagePNG="image/png",e.ImageJPEG="image/jpeg"}(je||(je={}));const $e=JSON.parse('{"validOrigins":["teams.microsoft.com","teams.microsoft.us","gov.teams.microsoft.us","dod.teams.microsoft.us","int.teams.microsoft.com","outlook.office.com","outlook-sdf.office.com","outlook.office365.com","outlook-sdf.office365.com","outlook.office365.us","outlook-dod.office365.us","webmail.apps.mil","outlook.live.com","outlook-sdf.live.com","teams.live.com","local.teams.live.com","local.teams.live.com:8080","local.teams.office.com","local.teams.office.com:8080","devspaces.skype.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","work.bing.com","www.bing.com","www.staging-bing-int.com","*.cloud.microsoft","*.m365.cloud.microsoft","*.outlook.cloud.microsoft","chatuxmanager.svc.cloud.microsoft","copilot.microsoft.com","windows.msn.com","fa000000125.resources.office.net","fa000000129.resources.office.net","fa000000124.resources.office.net","fa000000128.resources.office.net","fa000000136.resources.office.net","fa000000125.officeapps.live.com","fa000000129.officeapps.live.com","fa000000124.officeapps.live.com","fa000000128.officeapps.live.com","fa000000136.mro1cdnstorage.public.cdn.office.net","fa000000136.mro1cdnstorage.public.onecdn.static.microsoft","substrate-msb-bizchatvnext-service.sdf01.substrate-msb-bingatwork.eastus2-sdf.cosmic-ppe.office.net","office-home-m365copilotapp.wus2sdf1.office-home-m365copilotapp.westus2-sdf.cosmic-ppe.office.net","office-home-m365copilotapp.wus2test1.office-home-m365copilotapp.westus2-test.cosmic-int.office.net","m365copilotapp.svc.cloud.microsoft","m365copilotapp.svc.cloud.dev.microsoft","ffc-copilot.officeapps.live.com","m365.cloud.dev.microsoft","m365.cloud.dev.microsoft:3001"]}');const Ge="2.0.1",Je="2.0.2",Ke="2.0.3",Qe="2.0.4",Ze="2.0.1",Xe="1.9.0",Ye="2.0.0",et="1.7.0",tt="1.8.0",nt="1.9.0",rt=n.t($e,2).validOrigins,ot=1500,it=new URL("https://res.cdn.office.net/teams-js/validDomains/json/validDomains.json"),at=/^https:\/\//,st="https",ct="teams.microsoft.com",ut="The library has not yet been initialized",lt="The runtime has not yet been initialized",dt="The runtime version is not supported",ft="The call was not properly started";var pt=n(933);const gt=mt,ht=2147483647;function mt(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return wt(e)}return vt(e,t,n)}function vt(e,t,n){if("string"==typeof e)return bt(e,t);if(ArrayBuffer.isView(e))return Rt(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Et(e,ArrayBuffer)||e&&Et(e.buffer,ArrayBuffer))return Ft(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(Et(e,SharedArrayBuffer)||e&&Et(e.buffer,SharedArrayBuffer)))return Ft(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return mt.from(r,t,n);const o=Zt(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return mt.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function wt(e){return Ct(e),yt(e<0?0:0|St(e))}function Ct(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function yt(e){if(e>ht)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,mt.prototype),t}function St(e){if(e>=ht)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ht.toString(16)+" bytes");return 0|e}function bt(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!mt.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|At(e,t);let r=yt(n);const o=r.write(e,t);return o!==n&&(r=r.slice(0,o)),r}function At(e,t){if(mt.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Et(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let o=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return It(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Pt(e).length;default:if(o)return r?-1:It(e).length;t=(""+t).toLowerCase(),o=!0}}function Et(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function It(e,t){let n;t=t||1/0;const r=e.length;let o=null;const i=[];for(let a=0;a<r;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function Pt(e){return pt.toByteArray(Ot(e))}mt.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),mt.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required"),mt.from=function(e,t,n){return vt(e,t,n)},Object.setPrototypeOf(mt.prototype,Uint8Array.prototype),Object.setPrototypeOf(mt,Uint8Array),mt.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},mt.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==mt.prototype};const Tt=/[^+/0-9A-Za-z-_]/g;function Ot(e){if((e=(e=e.split("=")[0]).trim().replace(Tt,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}function Rt(e){if(Et(e,Uint8Array)){const t=new Uint8Array(e);return Ft(t.buffer,t.byteOffset,t.byteLength)}return kt(e)}function Ft(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,mt.prototype),r}function kt(e){const t=e.length<0?0:0|St(e.length),n=yt(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function Mt(e,t,n){n=Math.min(e.length,n);const r=[];let o=t;for(;o<n;){const t=e[o];let i=null,a=t>239?4:t>223?3:t>191?2:1;if(o+a<=n){let n,r,s,c;switch(a){case 1:t<128&&(i=t);break;case 2:n=e[o+1],128==(192&n)&&(c=(31&t)<<6|63&n,c>127&&(i=c));break;case 3:n=e[o+1],r=e[o+2],128==(192&n)&&128==(192&r)&&(c=(15&t)<<12|(63&n)<<6|63&r,c>2047&&(c<55296||c>57343)&&(i=c));break;case 4:n=e[o+1],r=e[o+2],s=e[o+3],128==(192&n)&&128==(192&r)&&128==(192&s)&&(c=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,c>65535&&c<1114112&&(i=c))}}null===i?(i=65533,a=1):i>65535&&(i-=65536,r.push(i>>>10&1023|55296),i=56320|1023&i),r.push(i),o+=a}return Dt(r)}function xt(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return Ut(this,t,n);case"utf8":case"utf-8":return Mt(this,t,n);case"ascii":return Lt(this,t,n);case"latin1":case"binary":return Ht(this,t,n);case"base64":return _t(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Vt(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}mt.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?Mt(this,0,e):xt.apply(this,arguments)};const Nt=4096;function Dt(e){const t=e.length;if(t<=Nt)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=Nt));return n}function Ut(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let o="";for(let r=t;r<n;++r)o+=Qt[e[r]];return o}function Lt(e,t,n){let r="";n=Math.min(e.length,n);for(let o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function Ht(e,t,n){let r="";n=Math.min(e.length,n);for(let o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function _t(e,t,n){return 0===t&&n===e.length?pt.fromByteArray(e):pt.fromByteArray(e.slice(t,n))}function Vt(e,t,n){const r=e.slice(t,n);let o="";for(let e=0;e<r.length-1;e+=2)o+=String.fromCharCode(r[e]+256*r[e+1]);return o}function Bt(e,t,n,r){n=Number(n)||0;const o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;const i=t.length;let a;for(r>i/2&&(r=i/2),a=0;a<r;++a){const r=parseInt(t.substr(2*a,2),16);if(Kt(r))return a;e[n+a]=r}return a}function Wt(e,t,n,r){return Jt(It(t,e.length-n),e,n,r)}function jt(e,t,n,r){return Jt($t(t),e,n,r)}function zt(e,t,n,r){return Jt(Pt(t),e,n,r)}function qt(e,t,n,r){return Jt(Gt(t,e.length-n),e,n,r)}function $t(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function Gt(e,t){let n,r,o;const i=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,o=n%256,i.push(o),i.push(r);return i}function Jt(e,t,n,r){let o;for(o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function Kt(e){return e!=e}mt.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let i=!1;for(;;)switch(r){case"hex":return Bt(this,e,t,n);case"utf8":case"utf-8":return Wt(this,e,t,n);case"ascii":case"latin1":case"binary":return jt(this,e,t,n);case"base64":return zt(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return qt(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}};const Qt=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let o=0;o<16;++o)t[r+o]=e[n]+e[o]}return t}();function Zt(e){if(mt.isBuffer(e)){const t=0|St(e.length),n=yt(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||Kt(e.length)?yt(0):kt(e):"Buffer"===e.type&&Array.isArray(e.data)?kt(e.data):void 0}const Xt={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let Yt;const en=new Uint8Array(16);function tn(){if(!Yt&&(Yt="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Yt))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Yt(en)}const nn=[];for(let e=0;e<256;++e)nn.push((e+256).toString(16).slice(1));function rn(e,t=0){return nn[e[t+0]]+nn[e[t+1]]+nn[e[t+2]]+nn[e[t+3]]+"-"+nn[e[t+4]]+nn[e[t+5]]+"-"+nn[e[t+6]]+nn[e[t+7]]+"-"+nn[e[t+8]]+nn[e[t+9]]+"-"+nn[e[t+10]]+nn[e[t+11]]+nn[e[t+12]]+nn[e[t+13]]+nn[e[t+14]]+nn[e[t+15]]}const on=function(e,t,n){if(Xt.randomUUID&&!t&&!e)return Xt.randomUUID();const r=(e=e||{}).random||(e.rng||tn)();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 rn(r)},an=/^(?:[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 sn=function(e){return"string"==typeof e&&an.test(e)};var cn,un,ln,dn,fn,pn,gn,hn;!function(e){e.desktop="desktop",e.web="web",e.android="android",e.ios="ios",e.ipados="ipados",e.macos="macos",e.visionOS="visionOS",e.rigel="rigel",e.surfaceHub="surfaceHub",e.teamsRoomsWindows="teamsRoomsWindows",e.teamsRoomsAndroid="teamsRoomsAndroid",e.teamsPhones="teamsPhones",e.teamsDisplays="teamsDisplays"}(cn||(cn={})),function(e){e.office="Office",e.outlook="Outlook",e.outlookWin32="OutlookWin32",e.orange="Orange",e.places="Places",e.teams="Teams",e.teamsModern="TeamsModern"}(un||(un={})),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"}(ln||(ln={})),function(e){e.copilotSidePanel="copilotSidePanel",e.copilotMainPane="copilotMainPane",e.copilotFullScreen="copilotFullScreen"}(dn||(dn={})),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"}(fn||(fn={})),function(e){e[e.Admin=0]="Admin",e[e.User=1]="User",e[e.Guest=2]="Guest"}(pn||(pn={})),function(e){e.Large="large",e.Medium="medium",e.Small="small"}(gn||(gn={})),function(e){e.Regular="Regular",e.Private="Private",e.Shared="Shared"}(hn||(hn={}));const mn={errorCode:Le.NOT_SUPPORTED_ON_PLATFORM},vn={majorVersion:1,minorVersion:5},wn={adaptiveCardSchemaVersion:{majorVersion:1,minorVersion:5}},Cn=new Error("Invalid input count: Must supply a valid image count (limit of 10)."),yn=new Error("Invalid response: Received more images than the specified max limit in the response.");function Sn(e){return(t,n)=>{if(!t)throw new Error(e||n)}}function bn(e,t){if("string"!=typeof e||"string"!=typeof t)return NaN;const 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(let e=0;e<n.length;++e)if(Number(n[e])!=Number(r[e]))return Number(n[e])>Number(r[e])?1:-1;return 0}function An(){return on()}function En(e){return Object.keys(e).forEach((t=>{null!==e[t]&&void 0!==e[t]&&"object"==typeof e[t]&&En(e[t])})),Object.freeze(e)}function In(e,t,...n){const r=e(...n);return r.then((e=>{t&&t(void 0,e)})).catch((e=>{t&&t(e)})),r}function Pn(e,t,...n){const r=e(...n);return r.then((()=>{t&&t(null)})).catch((e=>{t&&t(e)})),r}function Tn(e,t,...n){const r=e(...n);return r.then((e=>{t&&t(null,e)})).catch((e=>{t&&t(e,null)})),r}function On(e,t,n){return new Promise(((r,o)=>{const i=setTimeout(o,t,n);e().then((e=>{clearTimeout(i),r(e)})).catch((e=>{clearTimeout(i),o(e)}))}))}function Rn(e){const t=new URL("https://teams.microsoft.com/l/entity/"+encodeURIComponent(e.appId.toString())+"/"+encodeURIComponent(e.pageId));return e.webUrl&&t.searchParams.append("webUrl",e.webUrl.toString()),(e.chatId||e.channelId||e.subPageId)&&t.searchParams.append("context",JSON.stringify({chatId:e.chatId,channelId:e.channelId,subEntityId:e.subPageId})),t.toString()}function Fn(e){return!(bn(`${e.majorVersion}.${e.minorVersion}`,`${vn.majorVersion}.${vn.minorVersion}`)>=0)}function kn(e){return"https:"===e.protocol}function Mn(e,t){return new Promise(((n,r)=>{if(e||r("MimeType cannot be null or empty."),t||r("Base64 string cannot be null or empty."),e.startsWith("image/")){const r=atob(t),o=new Uint8Array(r.length);for(let e=0;e<r.length;e++)o[e]=r.charCodeAt(e);n(new Blob([o],{type:e}))}const o=gt.from(t,"base64").toString();n(new Blob([o],{type:e}))}))}function xn(e){return new Promise(((t,n)=>{0===e.size&&n(new Error("Blob cannot be empty."));const r=new FileReader;r.onloadend=()=>{r.result?t(r.result.toString().split(",")[1]):n(new Error("Failed to read the blob"))},r.onerror=()=>{n(r.error)},r.readAsDataURL(e)}))}function Nn(){if(Dn())throw new Error("window object undefined at SSR check");return window}function Dn(){return"undefined"==typeof window}function Un(e,t){if(_n(e)||!Vn(e)||!Bn(e))throw t||new Error("id is not valid.")}function Ln(e,t){const n=e.toString().toLocaleLowerCase();if(_n(n))throw t||new Error("Invalid Url");if(n.length>2048)throw t||new Error("Url exceeds the maximum size of 2048 characters");if(!kn(e))throw t||new Error("Url should be a valid https url")}function Hn(e){const t=document.createElement("a");return t.href=e,new URL(t.href)}function _n(e){return new RegExp(`${/<script[^>]*>|<script[^&]*>|%3Cscript[^%]*%3E/gi.source}|${/<\/script[^>]*>|<\/script[^&]*>|%3C\/script[^%]*%3E/gi.source}`,"gi").test(e)}function Vn(e){return e.length<256&&e.length>4}function Bn(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n<32||n>126)return!1}return!0}function Wn(e){if(!e)throw new Error("id must not be empty");if(!1===sn(e))throw new Error("id must be a valid UUID")}const jn=!!performance&&"now"in performance;function zn(){return jn?performance.now()+performance.timeOrigin:void 0}function qn(e,t=0){if(t>1e3)return!1;if(void 0===e||"boolean"==typeof e||"number"==typeof e||"bigint"==typeof e||"string"==typeof e||null===e)return!0;if(Array.isArray(e))return e.every((e=>qn(e,t+1)));return!("object"!=typeof e||"[object Object]"!==Object.prototype.toString.call(e)||Object.getPrototypeOf(e)!==Object.prototype&&null!==Object.getPrototypeOf(e))&&Object.keys(e).every((n=>qn(e[n],t+1)))}function $n(e){var t,n;if(!(null===(n=null===(t=e.hostVersionsInfo)||void 0===t?void 0:t.appEligibilityInformation)||void 0===n?void 0:n.ageGroup))return e;const r=e.hostVersionsInfo.appEligibilityInformation.ageGroup;return"nonadult"!==(null==r?void 0:r.toLowerCase())?e:Object.assign(Object.assign({},e),{hostVersionsInfo:Object.assign(Object.assign({},e.hostVersionsInfo),{appEligibilityInformation:Object.assign(Object.assign({},e.hostVersionsInfo.appEligibilityInformation),{ageGroup:Be.NotAdult})})})}class Gn{constructor(e=An()){this.uuid=e,Wn(e)}toString(){return this.uuid}serialize(){return this.toString()}}function Jn(e){if(!(e instanceof Gn))throw new Error(`Potential id (${JSON.stringify(e)}) is invalid; it is not an instance of UUID class.`)}class Kn{}Kn.initializeCalled=!1,Kn.initializeCompleted=!1,Kn.additionalValidOrigins=[],Kn.initializePromise=void 0,Kn.isFramelessWindow=!1,Kn.frameContext=void 0,Kn.hostClientType=void 0,Kn.printCapabilityEnabled=!1,Kn.teamsJsInstanceId=(new Gn).toString();var Qn=n(815);const Zn=new Gn,Xn=Qn.debug.formatArgs;Qn.debug.formatArgs=function(e){e[0]=`(${(new Date).toISOString()}): ${e[0]} [${Zn.toString()}]`,Xn.call(this,e)};const Yn=(0,Qn.debug)("teamsJs");function er(e){return Yn.extend(e)}function tr(e,t){return`${e}_${t}`}function nr(e){return/^v\d+_[\w.]+$/.test(e)}var rr=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};const or=er("runtime"),ir=4;function ar(e){return e.apiVersion===ir}const sr={apiVersion:-1,supports:{}};function cr(e){if(ar(e))return!0;throw-1===e.apiVersion?new Error(lt):new Error(dt)}let ur=sr;const lr={apiVersion:4,isNAAChannelRecommended:!1,isDeeplyNestedAuthSupported:!1,hostVersionsInfo:wn,isLegacyTeams:!0,supports:{appInstallDialog:{},appEntity:{},call:{},chat:{},conversations:{},dialog:{card:{bot:{}},url:{bot:{},parentCommunication:{}},update:{}},interactive:{},logs:{},meetingRoom:{},menus:{},monetization:{},notifications:{},pages:{config:{},backStack:{},fullTrust:{}},remoteCamera:{},teams:{fullTrust:{}},teamsCore:{},video:{sharedFrame:{}}}},dr=[cn.desktop,cn.web,cn.rigel,cn.surfaceHub,cn.teamsRoomsWindows,cn.teamsRoomsAndroid,cn.teamsPhones,cn.teamsDisplays],fr=[cn.android,cn.ios,cn.ipados,cn.visionOS],pr=[...dr,...fr];function gr(e){let t=e;if(t.apiVersion<ir&&hr.forEach((e=>{t.apiVersion===e.versionToUpgradeFrom&&(t=e.upgradeToNextVersion(t))})),ar(t))return t;throw new Error("Received a runtime that could not be upgraded to the latest version")}const hr=[{versionToUpgradeFrom:1,upgradeToNextVersion:e=>{var t;return{apiVersion:2,hostVersionsInfo:void 0,isLegacyTeams:e.isLegacyTeams,supports:Object.assign(Object.assign({},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:e=>{const t=e.supports,{appNotification:n}=t,r=rr(t,["appNotification"]);return Object.assign(Object.assign({},e),{apiVersion:3,supports:r})}},{versionToUpgradeFrom:3,upgradeToNextVersion:e=>{var t,n,r,o,i;return{apiVersion:4,hostVersionsInfo:e.hostVersionsInfo,isNAAChannelRecommended:e.isNAAChannelRecommended,isLegacyTeams:e.isLegacyTeams,supports:Object.assign(Object.assign({},e.supports),{dialog:e.supports.dialog?{card:null===(t=e.supports.dialog)||void 0===t?void 0:t.card,url:{bot:null===(r=null===(n=e.supports.dialog)||void 0===n?void 0:n.url)||void 0===r?void 0:r.bot,parentCommunication:(null===(o=e.supports.dialog)||void 0===o?void 0:o.url)?{}:void 0},update:null===(i=e.supports.dialog)||void 0===i?void 0:i.update}:void 0})}}}],mr="2.1.2",vr={"1.0.0":[{capability:{pages:{appButton:{},tabs:{}},stageView:{}},hostClientTypes:dr}],"1.9.0":[{capability:{location:{}},hostClientTypes:pr}],"2.0.0":[{capability:{people:{}},hostClientTypes:pr},{capability:{sharing:{}},hostClientTypes:[cn.desktop,cn.web]}],"2.0.1":[{capability:{teams:{fullTrust:{joinedTeams:{}}}},hostClientTypes:[cn.android,cn.desktop,cn.ios,cn.teamsRoomsAndroid,cn.teamsPhones,cn.teamsDisplays,cn.web]},{capability:{webStorage:{}},hostClientTypes:[cn.desktop]}],"2.0.5":[{capability:{webStorage:{}},hostClientTypes:[cn.android,cn.ios]}],"2.0.8":[{capability:{sharing:{}},hostClientTypes:[cn.android,cn.ios]}],"2.1.1":[{capability:{nestedAppAuth:{}},hostClientTypes:[cn.android,cn.ios,cn.ipados,cn.visionOS]}],"2.1.2":[]},wr=or.extend("generateBackCompatRuntimeConfig");function Cr(e,t){const n=Object.assign({},e);for(const 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]=Cr(e[r]||{},t[r]));return n}function yr(e,t,n){wr("generating back compat runtime config for %s",e);let r=Object.assign({},t.supports);wr("Supported capabilities in config before updating based on highestSupportedVersion: %o",r),Object.keys(n).forEach((t=>{bn(e,t)>=0&&n[t].forEach((e=>{void 0!==Kn.hostClientType&&e.hostClientTypes.includes(Kn.hostClientType)&&(r=Cr(r,e.capability))}))}));const o={apiVersion:ir,hostVersionsInfo:wn,isLegacyTeams:!0,supports:r};return wr("Runtime config after updating based on highestSupportedVersion: %o",o),o}const Sr=or.extend("applyRuntimeConfig");function br(e){"string"==typeof e.apiVersion&&(Sr("Trying to apply runtime with string apiVersion, processing as v1: %o",e),e=Object.assign(Object.assign({},e),{apiVersion:1})),Sr("Fast-forwarding runtime %o",e);const t=gr(e);Sr("Applying runtime %o",t),ur=En(t)}function Ar(e){return null!=e&&void 0!==e.serialize&&"function"==typeof e.serialize}const Er="2.48.0",Ir={childProxyingCommunication:!1};function Pr(){Ir.childProxyingCommunication=!0}function Tr(){