PageSourceSearch

https://assets.klaxoon.com/players-assets/js/teams-34387458c7bc7908.js

js klaxoon.com collected 2026-10-01 10:17:17 UTC 207,082 bytes, 2 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="47b483f6-2a30-47bf-942e-63c52641c75d",e._sentryDebugIdIdentifier="sentry-dbid-47b483f6-2a30-47bf-942e-63c52641c75d")}catch(e){}}();"use strict";(globalThis.webpackChunksignin=globalThis.webpackChunksignin||[]).push([["3967"],{60367:function(e,t,n){let r,i,o,a,s,l,c,u,d,f,p,g;n.r(t),n.d(t,{UserTeamRole:()=>rk.vV,authentication:()=>nf,appInstallDialog:()=>ng,tasks:()=>nj,DialogDimension:()=>rk.El,uploadCustomApp:()=>sj,registerOnLoadHandler:()=>dv,UserSettingTypes:()=>eA,search:()=>n_,externalAppCardActions:()=>tZ,registerFullScreenHandler:()=>df,activateChildProxyingCommunication:()=>nQ,otherAppStateChange:()=>t4,ParentAppWindow:()=>u9,ActionObjectType:()=>r$.Xu,ValidatedSafeString:()=>oy,calendar:()=>nP,contextualSearch:()=>tB,geoLocation:()=>nS,HostClientType:()=>rk.WH,SecondaryM365ContentIdName:()=>r$.Sf,registerAppButtonClickHandler:()=>dp,setFeatureFlagsState:()=>n1,registerAppButtonHoverLeaveHandler:()=>dh,getAdaptiveCardSchemaVersion:()=>u8,notifications:()=>t8,thirdPartyCloudStorage:()=>nW,print:()=>dc,sendCustomEvent:()=>sq,registerChangeSettingsHandler:()=>dy,AppId:()=>oS,getCurrentFeatureFlagsState:()=>n0,setFrameContext:()=>dI,files:()=>t2,location:()=>nb,shortcutRelay:()=>nK,UUID:()=>r0,nestedAppAuthBridge:()=>t5,profile:()=>nM,sendCustomMessage:()=>sz,initializeWithFrameContext:()=>dT,TaskModuleDimension:()=>rk.El,nestedAppAuth:()=>nC,shareDeepLink:()=>db,logs:()=>tW,navigateToTab:()=>dR,getContext:()=>du,HostName:()=>rk.UB,externalAppAuthenticationForCEA:()=>tQ,EmailAddress:()=>u5,hostEntity:()=>ns,navigateCrossDomain:()=>dO,TeamType:()=>rk.C9,registerCustomHandler:()=>sK,FrameContexts:()=>rk.$c,dialog:()=>t_,getMruTabInstances:()=>dA,messageChannels:()=>t6,registerBackButtonHandler:()=>dm,initialize:()=>ds,externalAppCardActionsForCEA:()=>tX,store:()=>nl,EduType:()=>r$.Bj,ChannelType:()=>rk.xu,conversations:()=>tj,returnFocus:()=>dP,stageView:()=>nN,registerBeforeUnloadHandler:()=>dw,chat:()=>nv,UserAuthenticationState:()=>e$,appEntity:()=>ne,pages:()=>tL,RenderingSurfaces:()=>rk.eF,ChildAppWindow:()=>u4,meeting:()=>nI,version:()=>iM,videoEffectsEx:()=>no,sharing:()=>n$,meetingRoom:()=>t3,settings:()=>nB,NotificationTypes:()=>ey,clipboard:()=>nw,call:()=>nL,registerUserSettingsChangeHandler:()=>sG,appPerformanceMetrics:()=>np,appInitialization:()=>nV,remoteCamera:()=>t7,externalAppCardActionsForDA:()=>t0,webStorage:()=>nx,secondaryBrowser:()=>nA,copilot:()=>tJ,teams:()=>nr,mail:()=>nO,mouseRelay:()=>nq,liveShare:()=>nd,barCode:()=>nm,openFilePreview:()=>sY,overwriteFeatureFlagsState:()=>n2,sidePanelInterfaces:()=>tK,LiveShareHost:()=>d_,registerAppButtonHoverEnterHandler:()=>dg,registerOnThemeChangeHandler:()=>dd,widgetHosting:()=>nc,people:()=>nF,visualMedia:()=>nH,externalAppAuthentication:()=>tV,marketplace:()=>nz,externalAppCommands:()=>t1,enablePrintCapability:()=>dl,videoEffects:()=>ni,ErrorCode:()=>r$.jK,FileOpenPreference:()=>r$.Dj,teamsCore:()=>nu,app:()=>tI,navigateBack:()=>dF,getTabInstances:()=>dS,monetization:()=>nT,plugins:()=>t9,ViewerActionTypes:()=>eS,menus:()=>tk,registerFocusEnterHandler:()=>dC,media:()=>nh,executeDeepLink:()=>dE});var h,m,v,w,C,y,S,A,b,E,I,T,P,R,O,F,M,_,k,$,U,N,D,H,x,L,V,W,B,j,z,q,K,G,Y,J,Q,Z,X,ee,et,en,er,ei,eo,ea,es,el,ec,eu,ed,ef,ep,eg,eh,em,ev,ew,eC,ey,eS,eA,eb,eE,eI,eT,eP,eR,eO,eF,eM,e_,ek,e$,eU,eN,eD,eH,ex,eL,eV,eW,eB,ej,ez,eq,eK,eG,eY,eJ,eQ,eZ,eX,e0,e1,e2,e3,e6,e5,e8,e4,e9,e7,te,tt,tn,tr,ti,to,ta,ts,tl,tc,tu,td,tf,tp,tg,th,tm,tv,tw,tC,ty,tS,tA={};n.r(tA),n.d(tA,{registerBeforeSuspendOrTerminateHandler:()=>ob,registerOnResumeHandler:()=>oE});var tb={};n.r(tb),n.d(tb,{_clearTelemetryPort:()=>oR,getTelemetryPort:()=>oT,isSupported:()=>oP});var tE={};n.r(tE),n.d(tE,{_clearDataLayerPort:()=>o_,getDataLayerPort:()=>oF,isSupported:()=>oM});var tI={};n.r(tI),n.d(tI,{ExpectedFailureReason:()=>eT,FailedReason:()=>eI,Messages:()=>o$,_initialize:()=>ox,_uninitialize:()=>
1oL,getContext:()=>oV,getFrameContext:()=>oN,getImmediateParentOrigin:()=>oH,initialize:()=>oD,isInitialized:()=>oU,lifecycle:()=>tA,notifyAppLoaded:()=>oW,notifyExpectedFailure:()=>oz,notifyFailure:()=>oj,notifySuccess:()=>oB,openLink:()=>oY,registerHostToAppPerformanceMetricsHandler:()=>oG,registerOnContextChangeHandler:()=>oK,registerOnThemeChangeHandler:()=>oq});var tT={};n.r(tT),n.d(tT,{isSupported:()=>oQ,open:()=>oJ});var tP={};n.r(tP),n.d(tP,{isSupported:()=>o1,registerOnMessageFromParent:()=>o0,sendMessageToDialog:()=>oX,sendMessageToParentFromDialog:()=>oZ});var tR={};n.r(tR),n.d(tR,{bot:()=>tT,getDialogInfoFromBotUrlDialogInfo:()=>o8,getDialogInfoFromUrlDialogInfo:()=>o5,isSupported:()=>o6,open:()=>o2,parentCommunication:()=>tP,submit:()=>o3});var tO={};n.r(tO),n.d(tO,{isSupported:()=>o9,resize:()=>o4});var tF={};n.r(tF),n.d(tF,{isSupported:()=>al,open:()=>as});var tM={};n.r(tM),n.d(tM,{bot:()=>tF,isSupported:()=>au,open:()=>ac});var t_={};n.r(t_),n.d(t_,{adaptiveCard:()=>tM,initialize:()=>ad,isSupported:()=>af,update:()=>tO,url:()=>tR});var tk={};n.r(tk),n.d(tk,{DisplayMode:()=>eP,MenuItem:()=>ap,MenuListType:()=>eR,initialize:()=>ag,isSupported:()=>aS,setNavBarMenu:()=>av,setUpViews:()=>ah,showActionMenu:()=>aC});var t$={};n.r(t$),n.d(t$,{initialize:()=>aE,isSupported:()=>aN,registerChangeConfigHandler:()=>a_,registerOnRemoveHandler:()=>aO,registerOnRemoveHandlerHelper:()=>aF,registerOnSaveHandler:()=>aP,registerOnSaveHandlerHelper:()=>aR,setConfig:()=>aT,setValidityState:()=>aI});var tU={};n.r(tU),n.d(tU,{isSupported:()=>aY,onClick:()=>aq,onHoverEnter:()=>aK,onHoverLeave:()=>aG});var tN={};n.r(tN),n.d(tN,{_initialize:()=>aJ,isSupported:()=>a0,navigateBack:()=>aQ,registerBackButtonHandler:()=>aZ,registerBackButtonHandlerHelper:()=>aX});var tD={};n.r(tD),n.d(tD,{isSupported:()=>a3,navigateTo:()=>a1,navigateToDefaultPage:()=>a2});var tH={};n.r(tH),n.d(tH,{enterFullscreen:()=>a6,exitFullscreen:()=>a5,isSupported:()=>a8});var tx={};n.r(tx),n.d(tx,{getMruTabInstances:()=>a7,getTabInstances:()=>a9,isSupported:()=>se,navigateToTab:()=>a4});var tL={};n.r(tL),n.d(tL,{EnterFocusType:()=>eO,ReturnFocusType:()=>eF,appButton:()=>tU,backStack:()=>tN,config:()=>t$,currentApp:()=>tD,fullTrust:()=>tH,getConfig:()=>so,initializeWithFrameContext:()=>si,isSupported:()=>su,navigateCrossDomain:()=>sa,navigateToApp:()=>ss,registerFocusEnterHandler:()=>sn,registerFullScreenHandler:()=>sc,returnFocus:()=>st,setCurrentFrame:()=>sr,shareDeepLink:()=>sl,tabs:()=>tx});var tV={};n.r(tV),n.d(tV,{ActionExecuteInvokeRequestType:()=>sZ,ActionExecuteResponseHandler:()=>sX,InvokeErrorCode:()=>ek,InvokeResponseType:()=>e_,OriginalRequestType:()=>eM,SerializableActionExecuteInvokeRequest:()=>sJ,SerializableConnectorParameters:()=>s9,UserAuthenticationState:()=>e$,authenticateAndResendRequest:()=>s3,authenticateWithConnector:()=>s7,authenticateWithOauth2:()=>s8,authenticateWithPowerPlatformConnectorPlugins:()=>s4,authenticateWithSSO:()=>s6,authenticateWithSSOAndResendRequest:()=>s5,disconnectConnector:()=>ln,getUserAuthenticationStateForConnector:()=>lt,isActionExecuteResponse:()=>sQ,isInvokeError:()=>s0,isSupported:()=>lr,validateActionExecuteInvokeRequest:()=>s2});var tW={};n.r(tW),n.d(tW,{isSupported:()=>lo,registerGetLogHandler:()=>li});var tB={};n.r(tB),n.d(tB,{closeContextualSearch:()=>ls,isSupported:()=>lu,openContextualSearch:()=>la,registerOnContextualSearchClosedHandler:()=>lc,registerOnContextualSearchOpenedHandler:()=>ll});var tj={};n.r(tj),n.d(tj,{closeConversation:()=>lf,getChatMembers:()=>lp,isSupported:()=>lg,openConversation:()=>ld});var tz={};n.r(tz),n.d(tz,{isSupported:()=>lm,sendCustomTelemetryData:()=>lv});var tq={};n.r(tq),n.d(tq,{getEligibilityInfo:()=>ly,isSupported:()=>lC});var tK={};n.r(tK),n.d(tK,{ContentItemType:()=>eU,CopilotMode:()=>ex,MediaSelectionType:()=>eN,SidePanelErrorCode:()=>eB,SidePanelErrorImpl:()=>lS,TeamsContextType:()=>eV,TeamsDimensionName:()=>eH,TeamsSessionType:()=>eD,TranscriptState:()=>eL,UserConsent:()=>eW});var tG={};n.r(tG),n.d(tG,{copilotSidePanelNotSupportedOnPlatformError:()=>lP,getContent:()=>lE,isResponseAReportableError:()=>lb,isSupported:()=>lA,preCheckUserConsent:()=>lI,registerUserActionContentSelect:()=>lT});var tY={};n.r(tY),n.d(tY,{closeSidePanel:()=>lk,isSupported:()=>l_});var tJ={};n.r(tJ),n.d(tJ,{customTelemetry:()=>tz,eligibility:()=>tq,sidePanel:()=>tG,view:()=>tY});var tQ={};n.r(tQ),n.d(tQ,{authenticateAndResendRequest:()=>lD,authenticateWithOauth:()=>lN,authenticateWithSSO:()=>lU,authenticateWithSSOAndResendRequest:()=>lH,isSupported:()=>lx,validateInput:()=>lL});var tZ={};n.r(tZ),n.d(tZ,{ActionOpenUrlErrorCode:()=>ez,ActionOpenUrlType:()=>ej,isSupported:()=>lB,processActionOpenUrl:()=>lW,processActionSubmit:()=>lV});var tX={};n.r(tX),n.d(tX,{isSupported:()=>lq,processActionOpenUrl:()=>lj,processActionSubmit:()=>lz});var t0={};n.r(t0),n.d(t0,{SerializableActionOpenUrlDialogInfo:()=>lJ,isSupported:()=>lY,processActionOpenUrlDialog:()=>lG});var t1={};n.r(t1),n.d(t1,{isSupported:()=>lZ,processActionCommand:()=>lQ});var t2={};n.r(t2),n.d(t2,{CloudStorageProvider:()=>
1eK,CloudStorageProviderFileAction:()=>eZ,CloudStorageProviderType:()=>eG,DocumentLibraryAccessType:()=>eJ,FileDownloadStatus:()=>eQ,SpecialDocumentLibraryType:()=>eY,addCloudStorageFolder:()=>l0,addCloudStorageProvider:()=>l9,addCloudStorageProviderFile:()=>ce,copyMoveFiles:()=>l5,deleteCloudStorageFolder:()=>l1,deleteCloudStorageProviderFile:()=>cn,downloadCloudStorageProviderFile:()=>cr,getCloudStorageFolderContents:()=>l2,getCloudStorageFolders:()=>lX,getExternalProviders:()=>l6,getFileDownloads:()=>l8,openCloudStorageFile:()=>l3,openDownloadFolder:()=>l4,registerCloudStorageProviderContentChangeHandler:()=>ca,registerCloudStorageProviderListChangeHandler:()=>co,removeCloudStorageProvider:()=>l7,renameCloudStorageProviderFile:()=>ct,uploadCloudStorageProviderFile:()=>ci});var t3={};n.r(t3),n.d(t3,{getPairedMeetingRoomInfo:()=>cl,isSupported:()=>cf,registerMeetingRoomCapabilitiesUpdateHandler:()=>cu,registerMeetingRoomStatesUpdateHandler:()=>cd,sendCommandToPairedMeetingRoom:()=>cc});var t6={};n.r(t6),n.d(t6,{dataLayer:()=>tE,isSupported:()=>cp,telemetry:()=>tb});var t5={};n.r(t5),n.d(t5,{initialize:()=>cw,version:()=>cg});var t8={};n.r(t8),n.d(t8,{isSupported:()=>cA,showNotification:()=>cS});var t4={};n.r(t4),n.d(t4,{isSupported:()=>cT,notifyInstallCompleted:()=>cI,registerAppInstallationHandler:()=>cb,unregisterAppInstallationHandler:()=>cE});var t9={};n.r(t9),n.d(t9,{isSupported:()=>cP,registerPluginMessage:()=>cO,sendPluginMessage:()=>cR});var t7={};n.r(t7),n.d(t7,{ControlCommand:()=>eX,ErrorReason:()=>e0,SessionTerminatedReason:()=>e1,getCapableParticipants:()=>cM,isSupported:()=>cx,registerOnCapableParticipantsChangeHandler:()=>cU,registerOnDeviceStateChangeHandler:()=>cD,registerOnErrorHandler:()=>cN,registerOnSessionStatusChangeHandler:()=>cH,requestControl:()=>c_,sendControlCommand:()=>ck,terminateSession:()=>c$});var ne={};n.r(ne),n.d(ne,{isSupported:()=>cV,selectAppEntity:()=>cL});var nt={};n.r(nt),n.d(nt,{getUserJoinedTeams:()=>cW,isSupported:()=>cB});var nn={};n.r(nn),n.d(nn,{getConfigSetting:()=>cj,isSupported:()=>cz,joinedTeams:()=>nt});var nr={};n.r(nr),n.d(nr,{ChannelType:()=>e2,fullTrust:()=>nn,getTeamChannels:()=>cq,isSupported:()=>cG,refreshSiteUrl:()=>cK});var ni={};n.r(ni),n.d(ni,{EffectChangeType:()=>e6,EffectFailureReason:()=>e5,VideoFrameFormat:()=>e3,isSupported:()=>c3,notifySelectedVideoEffectChanged:()=>c0,registerForVideoEffect:()=>c1,registerForVideoFrame:()=>cX});var no={};n.r(no),n.d(no,{ErrorLevel:()=>e8,frameProcessingTimeoutInMs:()=>uo,isSupported:()=>uf,notifyFatalError:()=>ug,notifySelectedVideoEffectChanged:()=>uc,registerForVideoEffect:()=>uu,registerForVideoFrame:()=>us,updatePersonalizedEffects:()=>ud});var na={};n.r(na),n.d(na,{addAndConfigure:()=>uS,getAll:()=>uA,isSupported:()=>uT,reconfigure:()=>ub,remove:()=>uI,rename:()=>uE});var ns={};n.r(ns),n.d(ns,{AppTypes:()=>e4,isSupported:()=>uO,tab:()=>na});var nl={};n.r(nl),n.d(nl,{isSupported:()=>u$,openAppDetail:()=>uM,openFullStore:()=>uF,openInContextStore:()=>u_,openSpecificStore:()=>uk});var nc={};n.r(nc),n.d(nc,{callTool:()=>ux,contentSizeChanged:()=>uj,isSupported:()=>uH,notifyIntrinsicHeight:()=>uB,openExternal:()=>uq,registerModalCloseHandler:()=>uK,requestDisplayMode:()=>uV,requestModal:()=>uW,sendFollowUpMessage:()=>uL,setWidgetState:()=>uz});var nu={};n.r(nu),n.d(nu,{enablePrintCapability:()=>u7,isSupported:()=>da,print:()=>de,registerBeforeUnloadHandler:()=>dr,registerBeforeUnloadHandlerHelper:()=>di,registerOnLoadHandler:()=>dt,registerOnLoadHandlerHelper:()=>dn});var nd={};n.r(nd),n.d(nd,{ContainerState:()=>e7,LiveShareHost:()=>d_,UserMeetingRole:()=>e9,isSupported:()=>dM});var nf={};n.r(nf),n.d(nf,{DataResidency:()=>te,authenticate:()=>dU,getAuthToken:()=>dN,getUser:()=>dD,notifyFailure:()=>dx,notifySuccess:()=>dH,registerAuthenticationHandlers:()=>d$});var np={};n.r(np),n.d(np,{isSupported:()=>dL,registerHostMemoryMetricsHandler:()=>dV});var ng={};n.r(ng),n.d(ng,{isSupported:()=>dz,openAppInstallDialog:()=>dj});var nh={};n.r(nh),n.d(nh,{CameraStartMode:()=>tr,File:()=>dK,FileFormat:()=>tt,ImageOutputFormats:()=>ts,ImageUriType:()=>ta,Media:()=>dZ,MediaControllerEvent:()=>tn,MediaType:()=>to,Source:()=>ti,VideoController:()=>d0,captureImage:()=>dG,hasPermission:()=>dY,requestPermission:()=>dJ,scanBarCode:()=>d3,selectMedia:()=>d1,viewImages:()=>d2});var nm={};n.r(nm),n.d(nm,{hasPermission:()=>d9,isSupported:()=>fe,requestPermission:()=>d7,scanBarCode:()=>d4});var nv={};n.r(nv),n.d(nv,{isSupported:()=>fi,openChat:()=>ft,openGroupChat:()=>fr});var nw={};n.r(nw),n.d(nw,{isSupported:()=>fs,read:()=>fa,write:()=>fo});var nC={};n.r(nC),n.d(nC,{addNAATrustedOrigins:()=>fg,canParentManageNAATrustedOrigins:()=>fd,deleteNAATrustedOrigins:()=>fh,getParentOrigin:()=>fu,isDeeplyNestedAuthSupported:()=>ff,isNAAChannelRecommended:()=>fc});var ny={};n.r(ny),n.d(ny,{chooseLocation:()=>fC,isSupported:()=>fS,showLocation:()=>fy});var nS={};n.r(nS),n.d(nS,{getCurrentLocation:()=>fA,hasPermission:()=>fb,isSupported:()=>fI,map:()=>ny,requestPermission:()=>fE});var nA={};n.r(nA),n.d(nA,{isSupported:()=>fP,open:()=>fT});var nb={};n.r(nb),n.d(nb,{getLocation:()=>fR,isSupported:()=>fF,showLocation:()=>fO});var nE={};n.r(nE),n.d(nE,{setOptions:()=>fM});var nI={};n.r(nI),n.d(nI,{CallType:()=>tf,EventActionSource:()=>tg,MeetingReactionType:()=>tu,MeetingType:()=>td,SharingProtocol:()=>
1tp,appShareButton:()=>nE,getAppContentStageSharingCapabilities:()=>fW,getAppContentStageSharingState:()=>fj,getAuthenticationTokenForAnonymousUser:()=>fN,getIncomingClientAudioState:()=>f_,getLiveStreamState:()=>fD,getMeetingDetails:()=>f$,getMeetingDetailsVerbose:()=>fU,joinMeeting:()=>fG,registerLiveStreamChangedHandler:()=>fL,registerMeetingReactionReceivedHandler:()=>fK,registerRaiseHandStateChangedHandler:()=>fq,registerSpeakingStateChangeHandler:()=>fz,requestAppAudioHandling:()=>fY,requestStartLiveStreaming:()=>fH,requestStopLiveStreaming:()=>fx,shareAppContentToStage:()=>fV,stopSharingAppContentToStage:()=>fB,toggleIncomingClientAudio:()=>fk,updateMicState:()=>fJ});var nT={};n.r(nT),n.d(nT,{isSupported:()=>fX,openPurchaseExperience:()=>fZ});var nP={};n.r(nP),n.d(nP,{composeMeeting:()=>f1,isSupported:()=>f2,openCalendarItem:()=>f0});var nR={};n.r(nR),n.d(nR,{composeMailWithHandoff:()=>f6,isSupported:()=>f5});var nO={};n.r(nO),n.d(nO,{ComposeMailType:()=>th,composeMail:()=>f9,handoff:()=>nR,isSupported:()=>f7,openMailItem:()=>f4});var nF={};n.r(nF),n.d(nF,{isSupported:()=>pn,selectPeople:()=>pe});var nM={};n.r(nM),n.d(nM,{isSupported:()=>pi,showProfile:()=>pr});var n_={};n.r(n_),n.d(n_,{closeSearch:()=>pd,isSupported:()=>pu,registerHandlers:()=>pl,unregisterHandlers:()=>pc});var nk={};n.r(nk),n.d(nk,{getContent:()=>pf,isSupported:()=>pp});var n$={};n.r(n$),n.d(n$,{SharingAPIMessages:()=>pg,history:()=>nk,isSupported:()=>pw,shareWebContent:()=>ph});var nU={};n.r(nU),n.d(nU,{close:()=>pC,isSupported:()=>py});var nN={};n.r(nN),n.d(nN,{StageViewOpenMode:()=>tm,isSupported:()=>pA,open:()=>pS,self:()=>nU});var nD={};n.r(nD),n.d(nD,{captureImages:()=>pb,isSupported:()=>pI,retrieveImages:()=>pE});var nH={};n.r(nH),n.d(nH,{CameraRestriction:()=>tv,Source:()=>tw,hasPermission:()=>pO,image:()=>nD,requestPermission:()=>pF});var nx={};n.r(nx),n.d(nx,{isSupported:()=>pk,isWebStorageClearedOnUserLogOut:()=>p_});var nL={};n.r(nL),n.d(nL,{CallModalities:()=>tC,isSupported:()=>pU,startCall:()=>p$});var nV={};n.r(nV),n.d(nV,{ExpectedFailureReason:()=>eT,FailedReason:()=>eI,Messages:()=>o$,notifyAppLoaded:()=>pN,notifyExpectedFailure:()=>px,notifyFailure:()=>pH,notifySuccess:()=>pD});var nW={};n.r(nW),n.d(nW,{getDragAndDropFiles:()=>pq,isSupported:()=>pG});var nB={};n.r(nB),n.d(nB,{getSettings:()=>pJ,registerOnRemoveHandler:()=>pX,registerOnSaveHandler:()=>pZ,setSettings:()=>pQ,setValidityState:()=>pY});var nj={};n.r(nj),n.d(nj,{getDefaultSizeIfNotProvided:()=>p3,startTask:()=>p0,submitTask:()=>p2,updateTask:()=>p1});var nz={};n.r(nz),n.d(nz,{CartStatus:()=>tS,Intent:()=>ty,addOrUpdateCartItems:()=>ge,cartVersion:()=>p9,getCart:()=>p7,isSupported:()=>gr,removeCartItems:()=>gt,updateCartStatus:()=>gn});var nq={};n.r(nq),n.d(nq,{disableMouseRelayCapability:()=>gu,enableMouseRelayCapability:()=>gc,isSupported:()=>gd});var nK={};function nG(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function nY(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}n.r(nK),n.d(nK,{DISABLE_SHORTCUT_FORWARDING_ATTRIBUTE:()=>gI,enableShortcutRelayCapability:()=>gb,isSupported:()=>gE,resetIsShortcutRelayCapabilityEnabled:()=>gA,setOverridableShortcutHandler:()=>gS}),(h=ey||(ey={})).fileDownloadStart="fileDownloadStart",h.fileDownloadComplete="fileDownloadComplete",(m=eS||(eS={})).view="view",m.edit="edit",m.editNew="editNew",(v=eA||(eA={})).fileOpenPreference="fileOpenPreference",v.theme="theme","function"==typeof SuppressedError&&SuppressedError;let nJ={childProxyingCommunication:!1};function nQ(){nJ.childProxyingCommunication=!0}function nZ(){return nJ.childProxyingCommunication}let nX=Object.assign({},{disableEnforceOriginMatchForChildResponses:!1});function n0(){return nX}function n1(e){nX=e}function n2(e){return nX=Object.assign(Object.assign({},nX),e)}var n3=void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},n6=[],n5=[],n8="undefined"!=typeof Uint8Array?Uint8Array:Array,n4=!1;function n9(){n4=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
1+/",t=0;t<64;++t)n6[t]=e[t],n5[e.charCodeAt(t)]=t;n5[45]=62,n5[95]=63}function n7(e){var t;n4||n9();for(var n=e.length,r=n%3,i="",o=[],a=0,s=n-r;a<s;a+=16383)o.push(function(e,t,n){for(var r,i=[],o=t;o<n;o+=3)i.push(n6[(r=(e[o]<<16)+(e[o+1]<<8)+e[o+2])>>18&63]+n6[r>>12&63]+n6[r>>6&63]+n6[63&r]);return i.join("")}(e,a,a+16383>s?s:a+16383));return 1===r?(i+=n6[(t=e[n-1])>>2],i+=n6[t<<4&63],i+="=="):2===r&&(i+=n6[(t=(e[n-2]<<8)+e[n-1])>>10],i+=n6[t>>4&63],i+=n6[t<<2&63],i+="="),o.push(i),o.join("")}function re(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?i-1:0,f=n?-1:1,p=e[t+d];for(d+=f,o=p&(1<<-u)-1,p>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=f,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=f,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=c}return(p?-1:1)*a*Math.pow(2,o-r)}function rt(e,t,n,r,i,o){var a,s,l,c=8*o-i-1,u=(1<<c)-1,d=u>>1,f=5960464477539062e-23*(23===i),p=r?0:o-1,g=r?1:-1,h=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(s=+!!isNaN(t),a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?f/l:f*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&s,p+=g,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[n+p]=255&a,p+=g,a/=256,c-=8);e[n+p-g]|=128*h}var rn={}.toString,rr=Array.isArray||function(e){return"[object Array]"==rn.call(e)};function ri(){return ra.TYPED_ARRAY_SUPPORT?0x7fffffff:0x3fffffff}function ro(e,t){if(ri()<t)throw RangeError("Invalid typed array length");return ra.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=ra.prototype:(null===e&&(e=new ra(t)),e.length=t),e}function ra(e,t,n){if(!(ra.TYPED_ARRAY_SUPPORT||this instanceof ra))return new ra(e,t,n);if("number"==typeof e){if("string"==typeof t)throw Error("If encoding is specified then the first argument must be a string");return rc(this,e)}return rs(this,e,t,n)}function rs(e,t,n,r){if("number"==typeof t)throw TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),ra.TYPED_ARRAY_SUPPORT?(e=t).__proto__=ra.prototype:e=ru(e,t),e}(e,t,n,r):"string"==typeof t?function(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!ra.isEncoding(n))throw TypeError('"encoding" must be a valid string encoding');var r=0|rp(t,n),i=(e=ro(e,r)).write(t,n);return i!==r&&(e=e.slice(0,i)),e}(e,t,n):function(e,t){if(rf(t)){var n,r=0|rd(t.length);return 0===(e=ro(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?ro(e,0):ru(e,t);if("Buffer"===t.type&&rr(t.data))return ru(e,t.data)}throw TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function rl(e){if("number"!=typeof e)throw TypeError('"size" argument must be a number');if(e<0)throw RangeError('"size" argument must not be negative')}function rc(e,t){if(rl(t),e=ro(e,t<0?0:0|rd(t)),!ra.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function ru(e,t){var n=t.length<0?0:0|rd(t.length);e=ro(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function rd(e){if(e>=ri())throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ri().toString(16)+" bytes");return 0|e}function rf(e){return!(null==e||!e._isBuffer)}function rp(e,t){if(rf(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return rO(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return rF(e).length;default:if(r)return rO(e).length;t=(""+t).toLowerCase(),r=!0}}function rg(e,t,n){var r,i,o,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0)||(n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var r,i=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>i)&&(n=i);for(var o="",a=t;a<n;++a){o+=(r=e[a])<16?"0"+r.toString(16):r.toString(16)}return o}(this,t,n);case"utf8":case"utf-8":return rC(this,t,n);case"ascii":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}(this,t,n);case"latin1":case"binary":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}(this,t,n);case"base64":return r=this,i=t,o=n,0===i&&o===r.length?n7(r):n7(r.slice(i,o));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}(this,t,n);default:if(a)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}function rh(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function rm(e,t,n,r,i){if(0===e.length)return -1;if("string"==typeof n?(r=n,n=0):n>0x7fffffff?n=0x7fffffff:n<-0x80000000&&(n=-0x80000000),isNaN(n*=1)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return -1;n=e.length-1}else if(n<0){if(!i)return -1;n=0}if("string"==typeof t&&(t=ra.from(t,r)),rf(t))return 0===t.length?-1:rv(e,t,n,r,i);if("number"==typeof t)return t&=255,ra.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):rv(e,[t],n,r,i);throw TypeError("val must be string, number or Buffer")}function rv(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;
vendor: 13,455 bytes, line 1
1a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var u=-1;for(o=n;o<s;o++)if(c(e,o)===c(t,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===l)return u*a}else -1!==u&&(o-=o-u),u=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){for(var d=!0,f=0;f<l;f++)if(c(e,o+f)!==c(t,f)){d=!1;break}if(d)return o}return -1}function rw(e,t,n,r){return rM(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function rC(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,l,c=e[i],u=null,d=c>239?4:c>223?3:c>191?2:1;if(i+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(o=e[i+1]))&&(l=(31&c)<<6|63&o)>127&&(u=l);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(l=(15&c)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=d}var f=r.length;if(f<=ry)return String.fromCharCode.apply(String,r);for(var p="",g=0;g<f;)p+=String.fromCharCode.apply(String,r.slice(g,g+=ry));return p}ra.TYPED_ARRAY_SUPPORT=void 0===n3.TYPED_ARRAY_SUPPORT||n3.TYPED_ARRAY_SUPPORT,ri(),ra.poolSize=8192,ra._augment=function(e){return e.__proto__=ra.prototype,e},ra.from=function(e,t,n){return rs(null,e,t,n)},ra.TYPED_ARRAY_SUPPORT&&(ra.prototype.__proto__=Uint8Array.prototype,ra.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&ra[Symbol.species]),ra.alloc=function(e,t,n){return rl(e),e<=0?ro(null,e):void 0!==t?"string"==typeof n?ro(null,e).fill(t,n):ro(null,e).fill(t):ro(null,e)},ra.allocUnsafe=function(e){return rc(null,e)},ra.allocUnsafeSlow=function(e){return rc(null,e)},ra.isBuffer=function(e){return null!=e&&(!!e._isBuffer||r_(e)||"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&r_(e.slice(0,0)))},ra.compare=function(e,t){if(!rf(e)||!rf(t))throw TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:+(r<n)},ra.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}},ra.concat=function(e,t){if(!rr(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return ra.alloc(0);if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var n,r=ra.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(!rf(o))throw TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},ra.byteLength=rp,ra.prototype._isBuffer=!0,ra.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)rh(this,t,t+1);return this},ra.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)rh(this,t,t+3),rh(this,t+1,t+2);return this},ra.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)rh(this,t,t+7),rh(this,t+1,t+6),rh(this,t+2,t+5),rh(this,t+3,t+4);return this},ra.prototype.toString=function(){var e=0|this.length;return 0===e?"":0==arguments.length?rC(this,0,e):rg.apply(this,arguments)},ra.prototype.equals=function(e){if(!rf(e))throw TypeError("Argument must be a Buffer");return this===e||0===ra.compare(this,e)},ra.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},ra.prototype.compare=function(e,t,n,r,i){if(!rf(e))throw TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return -1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(r,i),c=e.slice(t,n),u=0;u<s;++u)if(l[u]!==c[u]){o=l[u],a=c[u];break}return o<a?-1:+(a<o)},ra.prototype.includes=function(e,t,n){return -1!==this.indexOf(e,t,n)},ra.prototype.indexOf=function(e,t,n){return rm(this,e,t,n,!0)},ra.prototype.lastIndexOf=function(e,t,n){return rm(this,e,t,n,!1)},ra.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 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)}var i,o,a,s,l,c,u=this.length-t;if((void 0===n||n>u)&&(n=u),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var d=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))break;e[n+a]=s}return a}(this,e,t,n);case"utf8":case"utf-8":return i=t,o=n,rM(rO(e,this.length-i),this,i,o);case"ascii":case"latin1":case"binary":return rw(this,e,t,n);case"base64":return a=t,s=n,rM(rF(e),this,a,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return l=t,c=n,rM(function(e,t){for(var n,r,i=[],o=0;o<e.length&&!((t-=2)<0);++o)r=(n=e.charCodeAt(o))>>8,i.push(n%256),i.push(r);return i}(e,this.length-l),this,l,c);default:if(d)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),d=!0}},ra.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ry=4096;function rS(e,t,n){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>n)throw RangeError("Trying to access beyond buffer length")}function rA(e,t,n,r,i,o){if(!rf(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw RangeError('"value" argument is out of bounds');if(n+r>e.length)throw RangeError("Index out of range")}function rb(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function rE(e,t,n,r){t<0&&(t=0xffffffff+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function rI(e,t,n,r,i,o){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function rT(e,t,n,r,i){return i||rI(e,0,n,4),rt(e,t,n,r,23,4),n+4}function rP(e,t,n,r,i){return i||rI(e,0,n,8),rt(e,t,n,r,52,8),n+8}ra.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),ra.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=ra.prototype;else{var i=t-e;n=new ra(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},ra.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||rS(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},ra.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||rS(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},ra.prototype.readUInt8=function(e,t){return t||rS(e,1,this.length),this[e]},ra.prototype.readUInt16LE=function(e,t){return t||rS(e,2,this.length),this[e]|this[e+1]<<8},ra.prototype.readUInt16BE=function(e,t){return t||rS(e,2,this.length),this[e]<<8|this[e+1]},ra.prototype.readUInt32LE=function(e,t){return t||rS(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},ra.prototype.readUInt32BE=function(e,t){return t||rS(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},ra.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||rS(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},ra.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||rS(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},ra.prototype.readInt8=function(e,t){return t||rS(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},ra.prototype.readInt16LE=function(e,t){t||rS(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?0xffff0000|n:n},ra.prototype.readInt16BE=function(e,t){t||rS(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?0xffff0000|n:n},ra.prototype.readInt32LE=function(e,t){return t||rS(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},ra.prototype.readInt32BE=function(e,t){return t||rS(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},ra.prototype.readFloatLE=function(e,t){return t||rS(e,4,this.length),re(this,e,!0,23,4)},ra.prototype.readFloatBE=function(e,t){return t||rS(e,4,this.length),re(this,e,!1,23,4)},ra.prototype.readDoubleLE=function(e,t){return t||rS(e,8,this.length),re(this,e,!0,52,8)},ra.prototype.readDoubleBE=function(e,t){return t||rS(e,8,this.length),re(this,e,!1,52,8)},ra.prototype.writeUIntLE=function(e,t,n,r){e*=1,t|=0,n|=0,r||rA(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},ra.prototype.writeUIntBE=function(e,t,n,r){e*=1,t|=0,n|=0,r||rA(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},ra.prototype.writeUInt8=function(e,t,n){return e*=1,t|=0,n||rA(this,e,t,1,255,0),ra.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},ra.prototype.writeUInt16LE=function(e,t,n){return e*=1,t|=0,n||rA(this,e,t,2,65535,0),ra.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):rb(this,e,t,!0),t+2},ra.prototype.writeUInt16BE=function(e,t,n){return e*=1,t|=0,n||rA(this,e,t,2,65535,0),ra.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):rb(this,e,t,!1),t+2},ra.prototype.writeUInt32LE=function(e,t,n){return e*=1,t|=0,n||rA(this,e,t,4,0xffffffff,0),ra.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):rE(this,e,t,!0),t+4},ra.prototype.writeUInt32BE=function(e,t,n){return e*=1,t|=0,n||rA(this,e,t,4,0xffffffff,0),ra.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):rE(this,e,t,!1),t+4},ra.prototype.writeIntLE=function(e,t,n,r){if(e*=1,t|=0,!r){var i=Math.pow(2,8*n-1);rA(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+n},ra.prototype.writeIntBE=function(e,t,n,r){if(e*=1,t|=0,!r){var i=Math.pow(2,8*n-1);rA(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+n},ra.prototype.writeInt8=function(e,t,n){return e*=1,t|=0,n||rA(this,e,t,1,127,-128),ra.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},ra.prototype.writeInt16LE=function(e,t,n){return e*=1,t|=0,n||rA(this,e,t,2,32767,-32768),ra.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):rb(this,e,t,!0),t+2},ra.prototype.writeInt16BE=function(e,t,n){return e*=1,t|=0,n||rA(this,e,t,2,32767,-32768),ra.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):rb(this,e,t,!1),t+2},ra.prototype.writeInt32LE=function(e,t,n){return e*=1,t|=0,n||rA(this,e,t,4,0x7fffffff,-0x80000000),ra.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):rE(this,e,t,!0),t+4},ra.prototype.writeInt32BE=function(e,t,n){return e*=1,t|=0,n||rA(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),ra.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):rE(this,e,t,!1),t+4},ra.prototype.writeFloatLE=function(e,t,n){return rT(this,e,t,!0,n)},ra.prototype.writeFloatBE=function(e,t,n){return rT(this,e,t,!1,n)},ra.prototype.writeDoubleLE=function(e,t,n){return rP(this,e,t,!0,n)},ra.prototype.writeDoubleBE=function(e,t,n){return rP(this,e,t,!1,n)},ra.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw RangeError("sourceStart out of bounds");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!ra.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},ra.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i,o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw TypeError("encoding must be a string");if("string"==typeof r&&!ra.isEncoding(r))throw TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw RangeError("Out of range index");if(n<=t)return this;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=rf(e)?e:rO(new ra(e,r).toString()),s=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%s]}return this};var rR=/[^+\/0-9A-Za-z-_]/g;function rO(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319||a+1===r){(t-=3)>
1-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function rF(e){return function(e){n4||n9();var t,n,r,i,o,a,s=e.length;if(s%4>0)throw Error("Invalid string. Length must be a multiple of 4");o="="===e[s-2]?2:+("="===e[s-1]),a=new n8(3*s/4-o),r=o>0?s-4:s;var l=0;for(t=0,n=0;t<r;t+=4,n+=3)i=n5[e.charCodeAt(t)]<<18|n5[e.charCodeAt(t+1)]<<12|n5[e.charCodeAt(t+2)]<<6|n5[e.charCodeAt(t+3)],a[l++]=i>>16&255,a[l++]=i>>8&255,a[l++]=255&i;return 2===o?(i=n5[e.charCodeAt(t)]<<2|n5[e.charCodeAt(t+1)]>>4,a[l++]=255&i):1===o&&(i=n5[e.charCodeAt(t)]<<10|n5[e.charCodeAt(t+1)]<<4|n5[e.charCodeAt(t+2)]>>2,a[l++]=i>>8&255,a[l++]=255&i),a}(function(e){var t;if((e=((t=e).trim?t.trim():t.replace(/^\s+|\s+$/g,"")).replace(rR,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function rM(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function r_(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var rk=n(30597),r$=n(59811),rU={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let rN=new Uint8Array(16),rD=[];for(let e=0;e<256;++e)rD.push((e+256).toString(16).slice(1));function rH(e,t,n){if(rU.randomUUID&&!e)return rU.randomUUID();let i=(e=e||{}).random??e.rng?.()??function(){if(!r){if("undefined"==typeof crypto||!crypto.getRandomValues)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");r=crypto.getRandomValues.bind(crypto)}return r(rN)}();if(i.length<16)throw Error("Random bytes length must be >= 16");return i[6]=15&i[6]|64,i[8]=63&i[8]|128,function(e,t=0){return(rD[e[t+0]]+rD[e[t+1]]+rD[e[t+2]]+rD[e[t+3]]+"-"+rD[e[t+4]]+rD[e[t+5]]+"-"+rD[e[t+6]]+rD[e[t+7]]+"-"+rD[e[t+8]]+rD[e[t+9]]+"-"+rD[e[t+10]]+rD[e[t+11]]+rD[e[t+12]]+rD[e[t+13]]+rD[e[t+14]]+rD[e[t+15]]).toLowerCase()}(i)}var rx=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;function rL(e){return"string"==typeof e&&rx.test(e)}function rV(e){return(e,t)=>{if(!e)throw Error(t)}}function rW(e,t){if("string"!=typeof e||"string"!=typeof t)return NaN;let n=e.split("."),r=t.split(".");function i(e){return/^\d+$/.test(e)}if(!n.every(i)||!r.every(i))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 rB(e,t,...n){let r=e(...n);return r.then(()=>{t&&t(null)}).catch(e=>{t&&t(e)}),r}function rj(e){return!(rW(`${e.majorVersion}.${e.minorVersion}`,`${rk.EN.majorVersion}.${rk.EN.minorVersion}`)>=0)}function rz(e){return"https:"===e.protocol}function rq(){if(rK())throw Error("window object undefined at SSR check");return window}function rK(){return"undefined"==typeof window}function rG(e,t){if(rJ(e)||!(e.length<256&&e.length>4)||!function(e){for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(n<32||n>126)return!1}return!0}(e))throw t||Error("id is not valid.")}function rY(e,t){let n=e.toString().toLocaleLowerCase();if(rJ(n))throw Error("Invalid Url");if(n.length>2048)throw Error("Url exceeds the maximum size of 2048 characters");if(!rz(e))throw Error("Url should be a valid https url")}function rJ(e){return RegExp(`${/<script[^>]*>|&lt;script[^&]*&gt;|%3Cscript[^%]*%3E/gi.source}|${/<\/script[^>]*>|&lt;\/script[^&]*&gt;|%3C\/script[^%]*%3E/gi.source}`,"gi").test(e)}let rQ=!!performance&&"now"in performance;function rZ(){return rQ?performance.now()+performance.timeOrigin:void 0}function rX(e){var t,n;if(!(null==(n=null==(t=e.hostVersionsInfo)?void 0:t.appEligibilityInformation)?void 0:n.ageGroup))return e;let 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:r$.a7.NotAdult})})})}class r0{constructor(e=rH()){this.uuid=e,function(e){if(!e)throw Error("id must not be empty");if(!1===rL(e))throw Error("id must be a valid UUID")}(e)}toString(){return this.uuid}serialize(){return this.toString()}}let r1=e=>{let{uuid:t}=e,n=nG(e,["uuid"]),r=null==t?void 0:t.toString();return Object.assign(Object.assign({},n),{uuidAsString:r})},r2=e=>{let{uuidAsString:t}=e;return Object.assign(Object.assign({},nG(e,["uuidAsString"])),{uuid:t?new r0(t):void 0})},r3=e=>{let{uuidAsString:t}=e;return Object.assign(Object.assign({},nG(e,["uuidAsString"])),{uuid:t?new r0(t):void 0})},r6=e=>{let{uuid:t}=e,n=nG(e,["uuid"]),r=null==t?void 0:t.toString();return Object.assign(Object.assign({},n),{uuidAsString:r})};var r5={exports:{}},r8=r5.exports;r8.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+r5.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let n=0,r=0;e[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(n++,"%c"===e&&(r=n))}),e.splice(r,0,t)},r8.save=function(e){try{e?r8.storage.setItem("debug",e):r8.storage.removeItem("debug")}catch(e){}},r8.load=function(){let e;try{e=r8.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},r8.useColors=function(){return"undefined"!=typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&
1("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+)/))},r8.storage=function(){try{return localStorage}catch(e){}}(),g=!1,r8.destroy=()=>{g||(g=!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`."))},r8.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"],r8.log=console.debug||console.log||(()=>{}),r5.exports=function(e){function t(e){let r,i,o,a=null;function s(...e){if(!s.enabled)return;let n=Number(new Date);s.diff=n-(r||n),s.prev=r,s.curr=n,r=n,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,r)=>{if("%%"===n)return"%";i++;let o=t.formatters[r];if("function"==typeof o){let t=e[i];n=o.call(s,t),e.splice(i,1),i--}return n}),t.formatArgs.call(s,e),(s.log||t.log).apply(s,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,n){let r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){let e=[...t.names.map(r),...t.skips.map(r).map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];let r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(RegExp("^"+e.slice(1)+"$")):t.names.push(RegExp("^"+e+"$")))},t.enabled=function(e){let n,r;if("*"===e[e.length-1])return!0;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=function(){if(eE)return eb;eE=1;function e(e,t,n,r){return Math.round(e/n)+" "+r+(t>=1.5*n?"s":"")}return eb=function(t,n){n=n||{};var r,i,o=typeof t;if("string"===o&&t.length>0){var a=t;if((a=String(a)).length>100)return;var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(a);if(s){var l=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*l;case"weeks":case"week":case"w":return 6048e5*l;case"days":case"day":case"d":return 864e5*l;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*l;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*l;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*l;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l}}return}if("number"===o&&isFinite(t))return n.long?(r=Math.abs(t))>=864e5?e(t,r,864e5,"day"):r>=36e5?e(t,r,36e5,"hour"):r>=6e4?e(t,r,6e4,"minute"):r>=1e3?e(t,r,1e3,"second"):t+" ms":(i=Math.abs(t))>=864e5?Math.round(t/864e5)+"d":i>=36e5?Math.round(t/36e5)+"h":i>=6e4?Math.round(t/6e4)+"m":i>=1e3?Math.round(t/1e3)+"s":t+"ms";throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}}(),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)|0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}(r8);let{formatters:r4}=r5.exports;r4.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}};var r9=r5.exports;let r7=new r0,ie=r9.debug.formatArgs;r9.debug.formatArgs=function(e){e[0]=`(${(new Date).toISOString()}): ${e[0]} [${r7.toString()}]`,ie.call(this,e)};let it=r9.debug("teamsJs");function ir(e){return it.extend(e)}function ii(e,t){return`${e}_${t}`}function io(e){return/^v\d+_[\w.]+$/.test(e)}function ia(e){return void 0!==e.uuidAsString?`${e.uuidAsString}
1 (legacy id: ${e.id})`:void 0!==e.uuid?`${e.uuid.toString()} (legacy id: ${e.id})`:`legacy id: ${e.id} (no uuid)`}let is=ir("flushMessageQueue");function il(e,t,n,r){if(e&&t&&0!==n.length)for(;n.length>0;){let i=n.shift();if(i){let n=r1(i);is("Flushing message %s from %s message queue via postMessage.",ia(n),r),e.postMessage(n,t)}}}let ic="2.0.1",iu="2.0.3",id="1.9.0",ip="1.8.0",ig=["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","portal.officeppe.com","ignite.m365.admin.cloud.microsoft","ignite.admin.cloud.microsoft","sdf.m365.admin.cloud.microsoft","admin-sdf.microsoft.com","canary.m365.admin.cloud.microsoft","ring0.m365.admin.cloud.microsoft","portal.office365.us","portal.apps.mil","www.ohome.apps.mil","www.office365.us"],ih=new URL("https://res.cdn.office.net/teams-js/validDomains/json/validDomains.json"),im="https",iv="teams.microsoft.com",iw="The library has not yet been initialized";class iC{}iC.initializeCalled=!1,iC.initializeCompleted=!1,iC.additionalValidOrigins=[],iC.initializePromise=void 0,iC.isFramelessWindow=!1,iC.frameContext=void 0,iC.hostClientType=void 0,iC.printCapabilityEnabled=!1,iC.teamsJsInstanceId=(new r0).toString();let iy=ir("runtime");function iS(e){return 4===e.apiVersion}let iA={apiVersion:-1,supports:{}},ib={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:{}}}},iE=[rk.WH.desktop,rk.WH.web,rk.WH.rigel,rk.WH.surfaceHub,rk.WH.teamsRoomsWindows,rk.WH.teamsRoomsAndroid,rk.WH.teamsPhones,rk.WH.teamsDisplays],iI=[...iE,rk.WH.android,rk.WH.ios,rk.WH.ipados,rk.WH.visionOS],iT=[{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.update}:void 0})}}},{versionToUpgradeFrom:2,upgradeToNextVersion:e=>{let t=e.supports,{appNotification:n}=t,r=nG(t,["appNotification"]);return Object.assign(Object.assign({},e),{apiVersion:3,supports:r})}},{versionToUpgradeFrom:3,upgradeToNextVersion:e=>{var t,n,r,i,o;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.card,url:{bot:null==(r=null==(n=e.supports.dialog)?void 0:n.url)?void 0:r.bot,parentCommunication:(null==(i=e.supports.dialog)?void 0:i.url)?{}:void 0},update:null==(o=e.supports.dialog)?void 0:o.update}:void 0})}}}],iP={"1.0.0":[{capability:{pages:{appButton:{},tabs:{}},stageView:{}},hostClientTypes:iE}],"1.9.0":[{capability:{location:{}},hostClientTypes:iI}],"2.0.0":[{capability:{people:{}},hostClientTypes:iI},{capability:{sharing:{}},hostClientTypes:[rk.WH.desktop,rk.WH.web]}],"2.0.1":[{capability:{teams:{fullTrust:{joinedTeams:{}}}},hostClientTypes:[rk.WH.android,rk.WH.desktop,rk.WH.ios,rk.WH.teamsRoomsAndroid,rk.WH.teamsPhones,rk.WH.teamsDisplays,rk.WH.web]},{capability:{webStorage:{}},hostClientTypes:[rk.WH.desktop]}],"2.0.5":[{capability:{webStorage:{}},hostClientTypes:[rk.WH.android,rk.WH.ios]}],"2.0.8":[{capability:{sharing:{}},hostClientTypes:[rk.WH.android,rk.WH.ios]}],"2.1.1":[{capability:{nestedAppAuth:{}},hostClientTypes:[rk.WH.android,rk.WH.ios,rk.WH.ipados,rk.WH.visionOS]}],"2.1.2":[]},iR=iy.extend("generateBackCompatRuntimeConfig"),iO=iy.extend("applyRuntimeConfig");function iF(e){"string"==typeof e.apiVersion&&(iO("Trying to apply runtime with string apiVersion, processing as v1: %o",e),e=Object.assign(Object.assign({},e),{apiVersion:1})),iO("Fast-forwarding runtime %o",e);let t=function(e){let t=e;
1if(t.apiVersion<4&&iT.forEach(e=>{t.apiVersion===e.versionToUpgradeFrom&&(t=e.upgradeToNextVersion(t))}),iS(t))return t;throw Error("Received a runtime that could not be upgraded to the latest version")}(e);iO("Applying runtime %o",t),iA=function e(t){return Object.keys(t).forEach(n=>{null!==t[n]&&void 0!==t[n]&&"object"==typeof t[n]&&e(t[n])}),Object.freeze(t)}(t)}let iM="2.56.0";class i_{static storeCallbackInformation(e,t){i_.callbackInformation.set(e,t)}static clearMessages(){i_.callbackInformation.clear()}static deleteMessageInformation(e){i_.callbackInformation.delete(e)}static handleOneWayPerformanceMetrics(e,t,n){let r=e.monotonicTimestamp;r&&n?sU({actionName:e.func,messageDelay:n-r,requestStartedAt:r}):t("Unable to send performance metrics for event %s",e.func)}static handlePerformanceMetrics(e,t,n,r){let i=i_.callbackInformation.get(e);i&&t.monotonicTimestamp&&r?(sU({actionName:i.name,messageDelay:r-t.monotonicTimestamp,requestStartedAt:i.calledAt}),i_.deleteMessageInformation(e)):n("Unable to send performance metrics for callback %s with arguments %o",e.toString(),t.args)}}i_.callbackInformation=new Map;let ik=ir("nestedAppAuthUtils"),i$=ik.extend("tryPolyfillWithNestedAppAuthBridge"),iU=ik.extend("createNestedAppAuthBridge"),iN=/^[A-Za-z][A-Za-z\d+.-]*:\/\//;function iD(e,t){let n=e.split("."),r=t.split(".");if(r.length!==n.length)return!1;let i=!1;for(let e=0;e<n.length;e++)if(n[e]!==r[e]){if("*"!==n[e]||e===n.length-1||i)return!1;i=!0}return!0}class iH{constructor(e,t,n){this.protocol=e,this.host=t,this.logger=n}static canUse(e){return iN.test(e)}static create(e,t){let n=e.split("://");return new iH(n[0],n[1],t.extend("InternalURLPattern"))}test(e){return this.logger("Testing URL %s against pattern protocol: %s, host: %s",e,this.protocol,this.host),e.protocol===`${this.protocol}:`&&(!e.host||iD(this.host,e.host))}}let ix=[],iL=ir("validateOrigin");function iV(){return nY(this,void 0,void 0,function*(){i||(yield iB())})}function iW(){return 0===ix.length}function iB(e=!1){return nY(this,void 0,void 0,function*(){if(!iW()&&!e)return ix;if(i)return i;if(rK())return ix=ig,ig;{iL("Initiating fetch call to acquire valid origins list from CDN");let e=new AbortController,t=setTimeout(()=>e.abort(),1500);return i=fetch(ih,{signal:e.signal}).then(e=>{if(clearTimeout(t),!e.ok)throw Error("Invalid Response from Fetch Call");return iL("Fetch call completed and retrieved valid origins list from CDN"),e.json().then(e=>{if(function(e){let t;try{t=JSON.parse(e)}catch(e){return!1}if(!t||!Array.isArray(t.validOrigins))return!1;for(let e of t.validOrigins){if("string"!=typeof e)return!1;try{new URL("https://"+e)}catch(t){return iL("isValidOriginsFromCDN call failed to validate origin: %s",e),!1}}return!0}(JSON.stringify(e)))return ix=e.validOrigins;throw Error("Valid origins list retrieved from CDN is invalid")})}).catch(e=>("AbortError"===e.name?iL("validOrigins fetch call to CDN failed due to Timeout of 1500 ms. Defaulting to fallback list"):iL("validOrigins fetch call to CDN failed with error: %s. Defaulting to fallback list",e),ix=ig))}})}function ij(e,t){for(let t of iC.additionalValidOrigins)if(function(e,t){let n;try{let t=function(e,t){if(iH.canUse(e))return iH.create(e,t);t("No URL verifier available for pattern: %s",e)}(e,iL);if(!t)return!1;n=t}catch(e){return!1}return n.test(t)}(t,e))return!0;let n=e.host;return rz(e)?!!t.some(e=>iD(e,n))||(iL("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,t,iC.additionalValidOrigins),!1):(iL("Origin %s is invalid because it is not using https protocol. Protocol being used: %s",e,e.protocol),!1)}iV();let iz=ir("communication");class iq{}class iK{}function iG(e,t,...n){return iZ(e,t,n).then(([e])=>e)}function iY(e,t,...n){return iZ(e,t,n).then(([e,t])=>{if(!e)throw Error(t)})}function iJ(e,t,n,...r){return iZ(e,t,r).then(([e,t])=>{if(!e)throw Error(t||n)})}function iQ(e,t,...n){return iZ(e,t,n).then(([e,t])=>{if(e)throw e;return t})}
1function iZ(e,t,n){if(!io(e))throw Error(`apiVersionTag: ${e} passed in doesn't follow the pattern starting with 'v' followed by digits, then underscore with words, please check.`);return new Promise(r=>{var i;r((i=i7(e,t,n).uuid,new Promise(e=>{iK.promiseCallbacks.set(i,e)})))})}function iX(e){return e.map(e=>null!=e&&void 0!==e.serialize&&"function"==typeof e.serialize?e.serialize():e)}function i0(e,t,n,r,i){var o;return nY(this,void 0,void 0,function*(){let a=iX(t),[s]=yield iZ(r,e,a);if(i&&i(s)||!i&&(0,r$.pY)(s))throw Error(`${s.errorCode}, message: ${null!=(o=s.message)?o:"None"}`);if(n.validate(s))return n.deserialize(s);throw Error(`${r$.jK.INTERNAL_ERROR}, message: Invalid response from host - ${JSON.stringify(s)}`)})}function i1(e,t,n,r){var i;return nY(this,void 0,void 0,function*(){let o=iX(t),[a]=yield iZ(n,e,o);if(r&&r(a)||!r&&(0,r$.pY)(a))throw Error(`${a.errorCode}, message: ${null!=(i=a.message)?i:"None"}`);if(void 0!==a)throw Error(`${r$.jK.INTERNAL_ERROR}, message: Invalid response from host`)})}function i2(e,t,n){var r;if(!io(e))throw Error(`apiVersionTag: ${e} passed in doesn't follow the pattern starting with 'v' followed by digits, then underscore with words, please check.`);return r=i7(e,t,n).uuid,new Promise((e,t)=>{iK.portCallbacks.set(r,(n,r)=>{n instanceof MessagePort?e(n):t(r&&r.length>0?r[0]:Error("Host responded without port or error details."))})})}function i3(e,t,n,r){let i;if(n instanceof Function?r=n:n instanceof Array&&(i=n),!io(e))throw Error(`apiVersionTag: ${e} passed in doesn't follow the pattern starting with 'v' followed by digits, then underscore with words, please check.`);let o=i7(e,t,i);r&&iK.callbacks.set(o.uuid,r)}iK.parentMessageQueue=[],iK.topMessageQueue=[],iK.nextMessageId=0,iK.callbacks=new Map,iK.promiseCallbacks=new Map,iK.portCallbacks=new Map,iK.legacyMessageIdsToUuidMap={};let i6=iz.extend("sendNestedAuthRequestToTopWindow");function i5(e,t){let n=iq.topWindow,r=function(e,t){let n=iK.nextMessageId++,r=new r0;return iK.legacyMessageIdsToUuidMap[n]=r,{id:n,uuid:r,func:"nestedAppAuth.execute",timestamp:Date.now(),monotonicTimestamp:rZ(),apiVersionTag:t,args:[],data:e}}(e,t);return i6("Message %s information: %o",ia(r),{actionName:r.func}),i4(n,r)}let i8=iz.extend("sendRequestToTargetWindowHelper");function i4(e,t){let n=e===iq.topWindow&&oc()?"top":e===iq.parentWindow?"parent":null,r=r1(t);if(iC.isFramelessWindow)iq.currentWindow&&iq.currentWindow.nativeInterface&&(i8("Sending message %s to %s via framelessPostMessage interface",ia(r),n),iq.currentWindow.nativeInterface.framelessPostMessage(JSON.stringify(r)));else{let i=e===iq.topWindow&&oc()?iq.topOrigin:e===iq.parentWindow?iq.parentOrigin:null;e&&i?(i8("Sending message %s to %s via postMessage",ia(r),n),e.postMessage(r,i)):(i8("Adding message %s to %s message queue",ia(r),n),ou(e).push(t))}return t}let i9=iz.extend("sendMessageToParentHelper");function i7(e,t,n,r,i){let o=iq.parentWindow,a=function(e,t,n,r,i){let o=iK.nextMessageId++,a=new r0;iK.legacyMessageIdsToUuidMap[o]=a;let s=!0===r?i:iC.teamsJsInstanceId;return{id:o,uuid:a,func:t,timestamp:Date.now(),monotonicTimestamp:rZ(),args:n||[],apiVersionTag:e,isProxiedFromChild:null!=r&&r,teamsJsInstanceId:s}}(e,t,n,r,i);return i_.storeCallbackInformation(a.uuid,{name:t,calledAt:a.timestamp}),i9("Message %s information: %o",ia(a),{actionName:t,args:n}),i4(o,a)}let oe=iz.extend("processIncomingMessage"),ot=iz.extend("processAuthBridgeMessage");function on(e,t){var n,r;if(!e||!e.data||"object"!=typeof e.data)return void ot("Unrecognized message format received by app, message being ignored. Message: %o",e);let{args:i}=e.data,[,o]=null!=i?i:[],a=(()=>{try{return JSON.parse(o)}catch(e){return null}})();if(!a||"object"!=typeof a||"NestedAppAuthResponse"!==a.messageType)return void ot("Unrecognized data format received by app, message being ignored. Message: %o",e);let s=e.source||(null==(n=null==e?void 0:e.originalEvent)?void 0:n.source),l=e.origin||(null==(r=null==e?void 0:e.originalEvent)?void 0:r.origin);s?oi(s,l).then(e=>{e?(iq.topWindow&&!iq.topWindow.closed&&s!==iq.topWindow||(iq.topWindow=s,iq.topOrigin=l),iq.topWindow&&iq.topWindow.closed&&(iq.topWindow=null,iq.topOrigin=null),il(iq.topWindow,iq.topOrigin,iK.topMessageQueue,"top"),t(o)):ot("Message being ignored by app because it is either coming from the current window or a different window with an invali
1d origin")}).catch(e=>{ot("Unexpected error verifying message origin: %o",e)}):ot("Message being ignored by app because it is coming for a target that is null")}let or=iz.extend("verifyIncomingMessageOrigin");function oi(e,t){return nY(this,void 0,void 0,function*(){if(iq.currentWindow&&e===iq.currentWindow)return or("Should not process message because it is coming from the current window"),!1;if(iq.currentWindow&&iq.currentWindow.location&&t&&t===iq.currentWindow.location.origin)return!0;{var n;let e;try{e=new URL(t)}catch(e){return or("Message has an invalid origin of %s",t),!1}let r=yield ij(n=e,iW()?ig:ix)?Promise.resolve(!0):(iL("Origin %s is not in the local valid origins list, fetching from CDN",n),iB(void 0).then(e=>ij(n,e)));return r||or("Message has an invalid origin of %s",t),r}})}let oo=iz.extend("handleIncomingMessageFromParent");function oa(e,t){if(t){let n=[...e].find(([e,n])=>e.toString()===t.toString());if(n)return n[0]}}function os(e,t){let n=oa(t,e.uuid);n&&t.delete(n),e.uuid?iK.legacyMessageIdsToUuidMap={}:delete iK.legacyMessageIdsToUuidMap[e.id]}function ol(e){let t=rZ();if("id"in e.data&&"number"==typeof e.data.id){let n=r3(e.data),r=function(e){if(!e.uuid)return iK.legacyMessageIdsToUuidMap[e.id];{let t=e.uuid,n=oa(iK.callbacks,t);if(n)return n;let r=oa(iK.promiseCallbacks,t);if(r)return r;let i=oa(iK.portCallbacks,t);if(i)return i}oo("Received message %s that failed to produce a callbackId",ia(e))}(n);if(r){let i=iK.callbacks.get(r);oo("Received a response from parent for message %s",r.toString()),i_.handlePerformanceMetrics(r,n,oo,t),i&&(oo("Invoking the registered callback for message %s with arguments %o",r.toString(),n.args),i.apply(null,[...n.args,n.isPartialResponse]),!0===e.data.isPartialResponse||(oo("Removing registered callback for message %s",r.toString()),os(n,iK.callbacks)));let o=iK.promiseCallbacks.get(r);o&&(oo("Invoking the registered promise callback for message %s with arguments %o",r.toString(),n.args),o(n.args),oo("Removing registered promise callback for message %s",r.toString()),os(n,iK.promiseCallbacks));let a=iK.portCallbacks.get(r);if(a){let t;oo("Invoking the registered port callback for message %s with arguments %o",r.toString(),n.args),e.ports&&e.ports[0]instanceof MessagePort&&(t=e.ports[0]),a(t,n.args),oo("Removing registered port callback for message %s",r.toString()),os(n,iK.portCallbacks)}n.uuid&&(iK.legacyMessageIdsToUuidMap={})}}else if("func"in e.data&&"string"==typeof e.data.func){let n=e.data;i_.handleOneWayPerformanceMetrics(n,oo,t),oo('Received a message from parent %s, action: "%s"',ia(n),n.func),sR(n.func,n.args)}else oo("Received an unknown message: %O",e)}function oc(){return iq.topWindow!==iq.parentWindow}function ou(e){return e===iq.topWindow&&oc()?iK.topMessageQueue:e===iq.parentWindow?iK.parentMessageQueue:[]}function od(e,t){let n;n=iq.currentWindow.setInterval(()=>{0===ou(e).length&&(clearInterval(n),t())},100)}let of=ir("internal"),op=of.extend("ensureInitializeCalled"),og=of.extend("ensureInitialized");function oh(){if(!iC.initializeCalled)throw op(iw),Error(iw)}function om(e,...t){if(!iC.initializeCompleted)throw og("%s. initializeCalled: %s",iw,iC.initializeCalled.toString()),Error(iw);if(t&&t.length>0){let e=!1;for(let n=0;n<t.length;n++)if(t[n]===iC.frameContext){e=!0;break}if(!e){let e=`This call is only allowed in following contexts: ${JSON.stringify(t)}. Current context: "${iC.frameContext}".`;throw og(e),Error(e)}}if(iS(e))return!0;throw -1===e.apiVersion?Error("The runtime has not yet been initialized"):Error("The runtime version is not supported")}function ov(e=ic){let t=rW(iC.clientSupportedSDKVersion,e);return!isNaN(t)&&t>=0}function ow(e=ic){if(iC.hostClientType!=rk.WH.android&&iC.hostClientType!=rk.WH.ios&&iC.hostClientType!=rk.WH.ipados&&iC.hostClientType!=rk.WH.visionOS)throw{errorCode:r$.jK.NOT_SUPPORTED_ON_PLATFORM};if(!ov(e))throw{errorCode:r$.jK.OLD_PLATFORM}}function oC(e){if(!(e instanceof oS))throw Error(`Potential app id (${e}
1) is invalid; it is not an instance of AppId class.`)}class oy{constructor(e){this.idAsString=e,function(e){if(rJ(e))throw Error(`Potential app id (${e}) is invalid; it contains script tags.`);if([...e].some(e=>{let t=e.charCodeAt(0);return t<32||t>126}))throw Error(`Potential app id (${e}) is invalid; it contains non-printable characters.`)}(e)}serialize(){return this.toString()}toString(){return this.idAsString}}class oS extends oy{constructor(e){super(e),function(e){var t;if(!((t=e).length<256&&t.length>4))throw Error(`Potential app id (${e}) is invalid; its length ${e.length} is not within the length limits (4-256).`)}(e)}toJSON(){return{appIdAsString:this.toString()}}}function oA(e){return null==e}function ob(e){var t;if(!e)throw Error("[app.lifecycle.registerBeforeSuspendOrTerminateHandler] Handler cannot be null");om(iA),sT.beforeSuspendOrTerminateHandler=t=e,oA(t)||i3(ii("v2","registerBeforeSuspendOrTerminateHandler"),"registerHandler",["beforeUnload"])}function oE(e){var t;if(!e)throw Error("[app.lifecycle.registerOnResumeHandler] Handler cannot be null");om(iA),sT.resumeHandler=t=e,oA(t)||i3(ii("v2","registerOnResumeHandler"),"registerHandler",["load"])}let oI=ir("messageChannels.telemetry");function oT(){return nY(this,void 0,void 0,function*(){if(o)return oI("Returning telemetry port from cache"),o;if(!oP())throw rk._A;return o=yield i2(ii("v1","messageChannels.telemetry.getTelemetryPort"),"messageChannels.telemetry.getTelemetryPort")})}function oP(){var e;return!(!om(iA)||!(null==(e=iA.supports.messageChannels)?void 0:e.telemetry))}function oR(){o=void 0}let oO=ir("messageChannels.dataLayer");function oF(){return nY(this,void 0,void 0,function*(){if(a)return oO("Returning dataLayer port from cache"),a;if(!oM())throw rk._A;return a=yield i2(ii("v1","messageChannels.dataLayer.getDataLayerPort"),"messageChannels.dataLayer.getDataLayerPort")})}function oM(){var e;return!(!om(iA)||!(null==(e=iA.supports.messageChannels)?void 0:e.dataLayer))}function o_(){a=void 0}let ok=ir("app"),o$={AppLoaded:"appInitialization.appLoaded",Success:"appInitialization.success",Failure:"appInitialization.failure",ExpectedFailure:"appInitialization.expectedFailure"};function oU(){return iC.initializeCompleted}function oN(){return iC.frameContext}function oD(e){return aH(ii("v2","app.initialize"),e)}function oH(){var e,t;if(rK())return null;let n=null!=(e=iq.currentWindow)?e:window;if(n.parent===n)return null;let r=n.location.ancestorOrigins,i=null==r?void 0:r.item(0);if(i)return i;let o=null==(t=n.document)?void 0:t.referrer;if(!o)return null;try{let e=new URL(o).origin;return e===n.location.origin?null:e}catch(e){return null}}function ox(e){iq.currentWindow=e}function oL(){iC.initializeCalled&&(sT.uninitializeHandlers(),iC.initializeCalled=!1,iC.initializeCompleted=!1,iC.initializePromise=void 0,iC.additionalValidOrigins=[],iC.frameContext=void 0,iC.hostClientType=void 0,iC.isFramelessWindow=!1,oR(),o_(),iq.currentWindow&&iq.currentWindow.removeEventListener("message",iK.messageListener,!1),iq.currentWindow=null,iq.parentWindow=null,iq.parentOrigin=null,iK.parentMessageQueue=[],iK.nextMessageId=0,iK.callbacks.clear(),iK.promiseCallbacks.clear(),iK.portCallbacks.clear(),iK.legacyMessageIdsToUuidMap={},i_.clearMessages(),sx.window=null,sx.origin=null,sx.messageQueue=[])}function oV(){return new Promise(e=>{oh(),e(iG(ii("v2","app.getContext"),"getContext"))}).then(e=>{var t;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,messageId:e.messageId,parentMessageId:e.parentMessageId,userClickTime:e.userClickTime,userClickTimeV2:e.userClickTimeV2,userFileOpenPreference:e.userFileOpenPreference,host:{name:e.hostName?e.hostName:rk.UB.teams,clientType:e.hostClientType?e.hostClientType:rk.WH.web,features:e.hostFeatures,sessionId:e.sessionId?e.sessionId:"",ringId:e.ringId,ancestors:e.hostAncestors},appLaunchId:e.appLaunchId,appId:e.appId?new oS(e.appId):void 0,manifestVersion:e.manifestVersion},page:{id:e.entityId,frameContext:e.frameContext?e.frameContext:iC.frameContext,renderingSurface:e.renderingSurface?e.renderingSurface:void 0,subPageId:e.subEntityId,isFullScreen:e.isFullScreen,isMultiWindow:e.isMultiWindow,isBackgroun
1dLoad:e.isBackgroundLoad,sourceOrigin:e.sourceOrigin},user:{id:null!=(t=e.userObjectId)?t:"",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,dialogParameters:e.dialogParameters||{}}})}function oW(){oh(),ax(ii("v2","app.notifyAppLoaded"))}function oB(){return function(e){return nY(this,void 0,void 0,function*(){if(iC.initializeCompleted)return aW(e);if(!iC.initializePromise)throw Error(iw);return iC.initializePromise.then(()=>aW(e))})}(ii("v2","app.notifySuccess"))}function oj(e){oh(),aV(ii("v2","app.notifyFailure"),e)}function oz(e){oh(),aL(ii("v2","app.notifyExpectedFailure"),e)}function oq(e){aj(ii("v2","app.registerOnThemeChangeHandler"),e)}function oK(e){var t,n,r,i;t=ii("v2","app.registerOnContextChangeHandler"),oA(n=e)||oh(),r=t,sT.contextChangeHandler=i=n,oA(i)||i3(r,"registerHandler",["contextChange"])}function oG(e){sT.hostToAppPerformanceMetricsHandler=e}function oY(e){return az(ii("v2","app.openLink"),e)}function oJ(e,t,n){an(ii(o7,"dialog.url.bot.open"),e,t,n)}function oQ(){return om(iA)&&void 0!==(iA.supports.dialog&&iA.supports.dialog.url&&iA.supports.dialog.url.bot)}function oZ(e){if(om(iA,rk.$c.task),!o1())throw rk._A;i3(ii(o7,"dialog.url.parentCommunication.sendMessageToParentFromDialog"),"messageForParent",[e])}function oX(e){if(om(iA,rk.$c.content,rk.$c.sidePanel,rk.$c.meetingStage),!o1())throw rk._A;i3(ii(o7,"dialog.url.parentCommunication.sendMessageToDialog"),"messageForChild",[e])}function o0(e){if(om(iA,rk.$c.task),!o1())throw rk._A;for(sF("messageForChild"),sO(ii(o7,"dialog.url.parentCommunication.registerMessageForChildHandler"),"messageForChild",e),ao.reverse();ao.length>0;)e(ao.pop())}function o1(){var e,t;return om(iA)&&!!(null==(t=null==(e=iA.supports.dialog)?void 0:e.url)?void 0:t.parentCommunication)}function o2(e,t,n){at(ii(o7,"dialog.url.open"),e,t,n)}function o3(e,t){ar(ii(o7,"dialog.url.submit"),e,t)}function o6(){return om(iA)&&void 0!==(iA.supports.dialog&&iA.supports.dialog.url)}function o5(e){return{url:e.url,height:e.size?e.size.height:rk.El.Small,width:e.size?e.size.width:rk.El.Small,title:e.title,fallbackUrl:e.fallbackUrl}}function o8(e){let t=o5(e);return t.completionBotId=e.completionBotId,t}function o4(e){ae(ii(o7,"dialog.update.resize"),e)}function o9(){return!(!om(iA)||!iA.supports.dialog)&&!!iA.supports.dialog.update}(w=eI||(eI={})).AuthFailed="AuthFailed",w.Timeout="Timeout",w.Other="Other",(C=eT||(eT={})).PermissionError="PermissionError",C.NotFound="NotFound",C.Throttling="Throttling",C.Offline="Offline",C.Other="Other",ok("teamsjs instance is version %s, starting at %s UTC (%s local)",iM,(new Date).toISOString(),(new Date).toLocaleString()),function(){if(rK())return;let e=document.getElementsByTagName("script"),t=e&&e[e.length-1]&&e[e.length-1].src,n="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?ok("teamsjs is being used from %s. %s",t,n):ok("teamsjs is being used from a script tag embedded directly in your html. %s",n)}();let o7="v2";function ae(e,t){if(om(iA,rk.$c.content,rk.$c.sidePanel,rk.$c.task,rk.$c.meetingStage),!o9())throw rk._A;i3(e,"tasks.updateTask",[t])}function at(e,t,n,r){if(om(iA,rk.$c.content,rk.$c.sidePanel,rk.$c.meetingStage),!o6())throw rk._A;r&&sO(ii(o7,"dialog.url.registerMessageForParentHandler"),"messageForParent",r),i3(e,"tasks.startTask",[o5(t)],(e,t)=>{null==n||n({err:e,result:t}),sF("messageForParent")})}function an(e,t,n,r){if(om(iA,rk.$c.content,rk.$c.sidePanel,rk.$c.meetingStage),!oQ())throw rk._A;r&&sO(ii(o7,"dialog.url.bot.registerMessageForParentHandler"),"messageForParent",r),i3(e,"tasks.startTask",[o8(t)],(e,t)=>{null==n||n({err:e,result:t}),sF("messageForParent")})}function ar(e,t,n){if(om(iA,rk.$c.content,rk.$c.task),!o6())throw rk._A;iC.frameContext===rk.$c.content&&console.warn("dialog.submit should not be called from FrameContext.content.\nIf dialog.submit was called from inside the dialog, please disregard this message.\nThis issue occurs due to a bug in Teams mobile where the dialog is incorrectly identified as being in the content FrameContext.\nWe are working to resolve this."),i3(e,"tasks.completeTask",[t,n?Array.isArray(n)?n:[n]:[]])}function ai(e){return{card:e.card,height:e.size?e.size.height:rk.El.Small,width:e.size?e.size.width:rk.El.Small,title:e.title}}let ao=[];function aa(e){iC.frameContext&&(iC.frameContext===rk.$c.task?ao.push(e):sF("messageForChild"))}function as(e,t){if(om(iA,rk.$c.content,rk.$c.sidePanel,rk.$c.meetingStage),!al())throw rk._A;let n=function(e){let t=ai(e);return t.completionBotId=e.completionBotId,t}(e);i3(ii(o7,"dialog.adaptiveCard.bot.open"),"tasks.startTask",[n],(e,n)=>{null==t||t({err:e,result:n})})}function al(){let e=iA.hostVersionsInfo&&iA.hostVersionsInfo.adaptiveCardSchemaVersion&&!rj(iA.hostVersionsInfo.adaptiveCardSchemaVersion);return om(iA)&&void 0!==(e&&iA.supports.dialog&&iA.supports.dialog.card&&iA.supports.dialog.card.bot)}function ac(e,t){if(om(iA,rk.$c.content,rk.$c.sidePanel,rk.$c.meetingStage),!au())throw rk._A;let n=ai(e);i3(ii(o7,"dialog.adaptiveCard.open"),"tasks.startTask",[n],(e,n)=>{null==t||t({err:e,result:n})})}function au(){let e=iA.hostVersionsInfo&&iA.hostVersionsInfo.adaptiveCardSchemaVersion&&!rj(iA.hostVersionsInfo.adaptiveCardSchemaVersion);return om(iA)&&void 0!==(e&&iA.supports.dialog&&iA.supports.dialog.card)}function ad(){sO(ii(o7,"dialog.registerMessageForChildHandler"),"messageForChild",aa,!1)}function af(){return!(!om(iA)||!iA.supports.dialog)}(y=eP||(eP={}))[y.ifRoom=0]="ifRoom",y[y.overflowOnly=1]="overflowOnly";class ap{constructor(){this.enabled=!0,this.selected=!1}}function ag(){sO(ii("v2","menus.registerNavBarMenuItemPressHandler"),"navBarMenuItemPress",aw,!1),sO(ii("v2","menus.registerActionMenuItemPressHandler"),"actionMenuItemPress",ay,!1),sO(ii("v2","menus.registerSetModuleViewHandler"),"setModuleView",am,!1)}
1function ah(e,t){if(om(iA),!aS())throw rk._A;c=t,i3(ii("v2","menus.setUpViews"),"setUpViews",[e])}function am(e){c&&c(e)||(om(iA),i3(ii("v2","menus.handleViewConfigItemPress"),"viewConfigItemPress",[e]))}function av(e,t){if(om(iA),!aS())throw rk._A;s=t,i3(ii("v2","menus.setNavBarMenu"),"setNavBarMenu",[e])}function aw(e){s&&s(e)||(om(iA),i3(ii("v2","menus.handleNavBarMenuItemPress"),"handleNavBarMenuItemPress",[e]))}function aC(e,t){if(om(iA),!aS())throw rk._A;l=t,i3(ii("v2","menus.showActionMenu"),"showActionMenu",[e])}function ay(e){l&&l(e)||(om(iA),i3(ii("v2","menus.handleActionMenuItemPress"),"handleActionMenuItemPress",[e]))}function aS(){return!(!om(iA)||!iA.supports.menus)}(S=eR||(eR={})).dropDown="dropDown",S.popOver="popOver";class aA{}class ab extends aA{validate(e){return!0}deserialize(e){return e}}function aE(){sO(ii(sd,"pages.config.registerSettingsSaveHandler"),"settings.save",aM,!1),sO(ii(sd,"pages.config.registerSettingsRemoveHandler"),"settings.remove",a$,!1)}function aI(e){return sC(ii(sd,"pages.config.setValidityState"),e)}function aT(e){return sS(ii(sd,"pages.config.setConfig"),e)}function aP(e){aR(ii(sd,"pages.config.registerOnSaveHandler"),e,()=>{if(!oA(e)&&!aN())throw rk._A})}function aR(e,t,n){oA(t)||om(iA,rk.$c.settings),n&&n(),u=t,oA(t)||i3(e,"registerHandler",["save"])}function aO(e){aF(ii(sd,"pages.config.registerOnRemoveHandler"),e,()=>{if(!oA(e)&&!aN())throw rk._A})}function aF(e,t,n){oA(t)||om(iA,rk.$c.remove,rk.$c.settings),n&&n(),d=t,oA(t)||i3(e,"registerHandler",["remove"])}function aM(e){let t=new ak(e);u?u(t):sL()?sB("settings.save",[e]):t.notifySuccess()}function a_(e){s_(ii(sd,"pages.config.registerChangeConfigHandler"),"changeSettings",e,[rk.$c.content],()=>{if(!aN())throw rk._A})}class ak{constructor(e){this.notified=!1,this.result=e||{}}notifySuccess(){this.ensureNotNotified(),i3(ii(sd,"pages.saveEvent.notifySuccess"),"settings.save.success"),this.notified=!0}notifyFailure(e){this.ensureNotNotified(),i3(ii(sd,"pages.saveEvent.notifyFailure"),"settings.save.failure",[e]),this.notified=!0}ensureNotNotified(){if(this.notified)throw Error("The SaveEvent may only notify success or failure once.")}}function a$(){let e=new aU;d?d(e):sL()?sB("settings.remove",[]):e.notifySuccess()}class aU{constructor(){this.notified=!1}notifySuccess(){this.ensureNotNotified(),i3(ii(sd,"pages.removeEvent.notifySuccess"),"settings.remove.success"),this.notified=!0}notifyFailure(e){this.ensureNotNotified(),i3(ii(sd,"pages.removeEvent.notifyFailure"),"settings.remove.failure",[e]),this.notified=!0}ensureNotNotified(){if(this.notified)throw Error("The removeEventType may only notify success or failure once.")}}function aN(){return!(!om(iA)||!iA.supports.pages)&&!!iA.supports.pages.config}let aD=ir("app");function aH(e,t){var n,r;return rK()?(aD.extend("initialize")("window object undefined at initialization"),Promise.resolve()):(n=()=>new Promise(n=>{iC.initializeCalled||(iC.initializeCalled=!0,sT.initializeHandlers(),iC.initializePromise=(function(e,t){if(iK.messageListener=e=>(function(e){return nY(this,void 0,void 0,function*(){if(!e||!e.data||"object"!=typeof e.data)return void oe("Unrecognized message format received by app, message being ignored. Message: %o",e);let t=e.source||e.originalEvent&&e.originalEvent.source,n=e.origin||e.originalEvent&&e.originalEvent.origin;return oi(t,n).then(r=>{var i,o;r?(iC.isFramelessWindow||iq.parentWindow&&!iq.parentWindow.closed&&t!==iq.parentWindow||(iq.parentWindow=t,iq.parentOrigin=n),iq.parentWindow&&iq.parentWindow.closed&&(iq.parentWindow=null,iq.parentOrigin=null),il(iq.parentWindow,iq.parentOrigin,iK.parentMessageQueue,"parent"),t!==iq.parentWindow?(i=t,o=n,nZ()&&(sx.window&&!sx.window.closed&&i!==sx.window||(sx.window=i,sx.origin=o),sx.window&&sx.window.closed?(sx.window=null,sx.origin=null,!1):sx.window===i)&&function(e,t,n,r){nY(this,void 0,void 0,function*(){sx.window===t&&(il(sx.window,sx.origin,sx.messageQueue,"child"),function(e,t,n){if(void 0===e.data.id||void 0===e.data.func)return;let r=r2(e.data),[i,o]=sR(r.func,r.args);if(i&&void 0!==o)return sV("Handler called in response to message %s from child. Returning response from handler to child, action: %s.",ia(r),r.func),sW(r.id,r.uuid,Array.isArray(o)?o:[o]);sV("No handler for message %s from child found; relaying message on to parent, action: %s. Relayed message will have a new id.",ia(r),r.func),function(e,t,n){let r=t(ii("v2","tasks.startTask"),e.func,e.args,!0,e.teamsJsInstanceId),i=sx.origin;n(r.uuid,(...t)=>{if(!sx.window)return;if(!nX.disableEnforceOriginMatchForChildResponses&&i!==sx.origin)return void sV("Origin of child window has changed, not sending response back to child window");let n=t.pop();sV("Message from parent being relayed to child, id: %s",ia(e)),sW(e.id,e.uuid,t,n)})}(r,t,n)}(e,n,r))})}(e,t,i7,(e,t)=>iK.callbacks.set(e,t))):ol(e)):oe("Message being ignored by app because it is either coming from the current window or a different window with an invali
1d origin, message: %o, source: %o, origin: %o",e,t,n)})})})(e),iq.currentWindow=iq.currentWindow||rq(),iq.parentWindow=iq.currentWindow.parent!==iq.currentWindow.self?iq.currentWindow.parent:iq.currentWindow.opener,iq.topWindow=iq.currentWindow.top,(iq.parentWindow||e)&&iq.currentWindow.addEventListener("message",iK.messageListener,!1),!iq.parentWindow){let e=iq.currentWindow;if(!e.nativeInterface)return Promise.reject(Error("Initialization Failed. No Parent window found."));iC.isFramelessWindow=!0,e.onNativeMessage=ol}try{return iq.parentOrigin="*",iZ(t,"initialize",[iM,4,e]).then(([e,t,n,r])=>((function(e,t,n){var r;if(iC.isFramelessWindow)return i$("Cannot polyfill nestedAppAuthBridge as current window is frameless");if(!t)return i$("Cannot polyfill nestedAppAuthBridge as current window does not exist");if(t.parent!==t.top)return i$("Default NAA bridge injection not supported in nested iframe. Use standalone NAA bridge instead.");let i=(()=>{try{return JSON.parse(e)}catch(e){return null}})();if(!i||!(null==(r=i.supports)?void 0:r.nestedAppAuth))return i$("Cannot polyfill nestedAppAuthBridge as current hub does not support nested app auth");if(t.nestedAppAuthBridge)return i$("nestedAppAuthBridge already exists on current window, skipping polyfill");let o=function(e,t){if(!e)return iU("nestedAppAuthBridge cannot be created as current window does not exist"),null;let{onMessage:n,sendPostMessage:r}=t,i=e=>t=>n(t,e);return{addEventListener:(t,n)=>{"message"===t?e.addEventListener(t,i(n)):iU(`Event ${t} is not supported by nestedAppAuthBridge`)},postMessage:e=>{let t=(()=>{try{return JSON.parse(e)}catch(e){return null}})();if(!t||"object"!=typeof t||"NestedAppAuthRequest"!==t.messageType)return void iU("Unrecognized data format received by app, message being ignored. Message: %o",e);r(e,ii("v2","nestedAppAuth.execute"))},removeEventListener:(t,n)=>{e.removeEventListener(t,i(n))}}}(t,n);o&&(t.nestedAppAuthBridge=o)})(r,iq.currentWindow,{onMessage:on,sendPostMessage:i5}),{context:e,clientType:t,runtimeConfig:n,clientSupportedSDKVersion:r}))}finally{iq.parentOrigin=null}})(t,e).then(({context:e,clientType:t,runtimeConfig:n,clientSupportedSDKVersion:r=ic})=>{iC.frameContext=e,iC.hostClientType=t,iC.clientSupportedSDKVersion=r;try{aB("Parsing %s",n);let e=JSON.parse(n);if(aB("Checking if %o is a valid runtime object",null!=e?e:"null"),!e||!e.apiVersion)throw Error("Received runtime config is invalid");e=rX(e),n&&iF(e)}catch(e){if(!(e instanceof SyntaxError))throw e;try{aB("Attempting to parse %s as an SDK version",n),isNaN(rW(n,ic))||(iC.clientSupportedSDKVersion=n);let e=JSON.parse(r);if(aB("givenRuntimeConfig parsed to %o",null!=e?e:"null"),!e)throw Error("givenRuntimeConfig string was successfully parsed. However, it parsed to value of null");e=rX(e),iF(e)}catch(e){if(!(e instanceof SyntaxError))throw e;iF(function(e,t,n){iR("generating back compat runtime config for %s",e);let r=Object.assign({},t.supports);iR("Supported capabilities in config before updating based on highestSupportedVersion: %o",r),Object.keys(n).forEach(t=>{rW(e,t)>=0&&n[t].forEach(e=>{void 0!==iC.hostClientType&&e.hostClientTypes.includes(iC.hostClientType)&&(r=function e(t,n){let r=Object.assign({},t);for(let i in n)Object.prototype.hasOwnProperty.call(n,i)&&("object"!=typeof n[i]||Array.isArray(n[i])?i in t||(r[i]=n[i]):r[i]=e(t[i]||{},n[i]));return r}(r,e.capability))})});let i={apiVersion:4,hostVersionsInfo:rk._m,isLegacyTeams:!0,supports:r};return iR("Runtime config after updating based on highestSupportedVersion: %o",i),i}(iC.clientSupportedSDKVersion,ib,iP))}}iC.initializeCompleted=!0}),ag(),aE(),ad()),Array.isArray(t)&&function(e){let t=iC.additionalValidOrigins.concat(e.filter(e=>"string"==typeof e&&iH.canUse(e))),n={};iC.additionalValidOrigins=t.filter(e=>!n[e]&&(n[e]=!0,!0))}(t),void 0!==iC.initializePromise?n(iC.initializePromise):aB("GlobalVars.initializePromise is unexpectedly undefined")}),r=Error("SDK initialization timed out."),new Promise((e,t)=>{let i=setTimeout(t,6e4,r);n().then(t=>{clearTimeout(i),e(t)}).catch(e=>{clearTimeout(i),t(e)})}))}function ax(e){i3(e,o$.AppLoaded,[iM])}function aL(e,t){i3(e,o$.ExpectedFailure,[t.reason,t.message])}function aV(e,t){i3(e,o$.Failure,[t.reason,t.message,t.authHeader])}function aW(e){return nY(this,void 0,void 0,function*(){var t;return om(iA)&&(null==(t=iA.supports.app)?void 0:t.notifySuccessResponse)?i0(o$.Success,[iM],new ab,e).then(()=>({hasFinishedSuccessfully:!0})):(i3(e,o$.Success,[iM]),{hasFinishedSuccessfully:"unknown"})})}let aB=aD.extend("initializeHelper");function aj(e,t){var n,r;oA(t)||oh(),n=e,sT.themeChangeHandler=r=t,oA(r)||i3(n,"registerHandler",["themeChange"])}function az(e,t){return new Promise(n=>{om(iA,rk.$c.content,rk.$c.sidePanel,rk.$c.settings,rk.$c.task,rk.$c.stage,rk.$c.meetingStage),n(iY(e,"executeDeepLink",t))})}function aq(e){s_(ii(sd,"pages.appButton.onClick"),"appButtonClick",e,[rk.$c.content],()=>{if(!aY())throw rk._A})}function aK(e){s_(ii(sd,"pages.appButton.onHoverEnter"),"appButtonHoverEnter",e,[rk.$c.content],()=>{if(!aY())throw rk._A})}function aG(e){s_(ii(sd,"pages.appButton.onHoverLeave"),"appButtonHoverLeave",e,[rk.$c.content],()=>{if(!aY())throw rk._A})}function aY(){return!(!om(iA)||!iA.supports.pages)&&!!iA.supports.pages.appButton}function aJ(){sb()}function aQ(){return sp(ii(sd,"pages.backStack.navigateBack"))}function aZ(e){aX(ii(sd,"pages.backStack.registerBackButtonHandler"),e,()=>{if(!oA(e)&&!a0())throw rk._A})}function aX(e,t,n){oA(t)||om(iA),n&&n(),f=t,oA(t)||i3(e,"registerHandler",["backButton"])}function a0(){return!(!om(iA)||!iA.supports.pages)&&!!iA.supports.pages.backStack}function a1(e){return new Promise(t=>{if(om(iA,rk.$c.content,rk.$c.sidePanel,rk.$c.settings,rk.$c.task,rk.$c.stage,rk.$c.meetingStage),!a3())throw rk._A;t(iQ(ii(sd,"pages.currentApp.navigateTo"),"pages.currentApp.navigateTo",e))})}function a2(){return new Promise(e=>{if(om(iA,rk.$c.content,rk.$c.sidePanel,rk.$c.settings,rk.$c.task,rk.$c.stage,rk.$c.meetingStage),!a3())throw rk._A;e(iQ(ii(sd,"pages.currentApp.navigateToDefaultPage"),"pages.currentApp.navigateToDefaultPage"))})}function a3(){return!(!om(iA)||!iA.supports.pages)&&!!iA.supports.pages.currentApp}function a6(){if(om(iA,rk.$c.content),!a8())throw rk._A;i3(ii(sd,"pages.fullTrust.enterFullscreen"),"enterFullscreen",[])}function a5(){if(om(iA,rk.$c.content),!a8())throw rk._A;i3(ii(sd,"pages.fullTrust.exitFullscreen"),"exitFullscreen",[])}function a8(){return!(!om(iA)||!iA.supports.pages)&&!!iA.supports.pages.fullTrust}function a4(e){return sg(ii(sd,"pages.tabs.navigateToTab"),e)}function a9(e){return sh(ii(sd,"pages.tabs.getTabInstances"),e)}function a7(e){return sm(ii(sd,"pages.tabs.getMruTabInstances"),e)}function se(){return!(!om(iA)||!iA.supports.pages)&&!!iA.supports.pages.tabs}function st(e){let t=ii(sd,"pages.returnFocus");
1if(om(iA),!su())throw rk._A;if(void 0===e&&i3(t,"returnFocus",[!1]),"boolean"==typeof e)i3(t,"returnFocus",[e]);else switch(e){case eF.PreviousLandmark:case eF.GoToActivityFeed:i3(t,"returnFocus",[!1,e]);break;case eF.NextLandmark:i3(t,"returnFocus",[!0,e])}}function sn(e){s_(ii(sd,"pages.registerFocusEnterHandler"),"focusEnter",e,[],()=>{if(!su())throw rk._A})}function sr(e){sw(ii(sd,"pages.setCurrentFrame"),e)}function si(e,t,n){iV(),aH(ii(sd,"pages.initializeWithFrameContext"),n).then(()=>t&&t()),sr(e)}function so(){return sy(ii(sd,"pages.getConfig."))}function sa(e){return sf(ii(sd,"pages.navigateCrossDomain"),e)}function ss(e){return new Promise(t=>{var n,r;if(om(iA,rk.$c.content,rk.$c.sidePanel,rk.$c.settings,rk.$c.task,rk.$c.stage,rk.$c.meetingStage),!su())throw rk._A;let i=ii(sd,"pages.navigateToApp");t(iA.isLegacyTeams?iY(i,"executeDeepLink",function(e){let 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()}(sA(e)?e:Object.assign(Object.assign({},n=e),{appId:new oS(n.appId),webUrl:n.webUrl?new URL(n.webUrl):void 0}))):iY(i,"pages.navigateToApp",sA(e)?Object.assign(Object.assign({},r=e),{appId:r.appId.toString(),webUrl:r.webUrl?r.webUrl.toString():void 0}):e))})}function sl(e){return sv(ii(sd,"pages.shareDeepLink"),e)}function sc(e){s_(ii(sd,"pages.registerFullScreenHandler"),"fullScreenChange",e,[],()=>{if(!oA(e)&&!su())throw rk._A})}function su(){return!(!om(iA)||!iA.supports.pages)}(A=eO||(eO={}))[A.PreviousLandmark=0]="PreviousLandmark",A[A.NextLandmark=1]="NextLandmark",A[A.Read=2]="Read",A[A.Compose=3]="Compose",(b=eF||(eF={}))[b.PreviousLandmark=0]="PreviousLandmark",b[b.NextLandmark=1]="NextLandmark",b[b.GoToActivityFeed=2]="GoToActivityFeed";let sd="v2";function sf(e,t){return new Promise(n=>{if(om(iA,rk.$c.content,rk.$c.sidePanel,rk.$c.settings,rk.$c.remove,rk.$c.task,rk.$c.stage,rk.$c.meetingStage),!su())throw rk._A;n(iJ(e,"navigateCrossDomain","Cross-origin navigation is only supported for URLs matching the pattern registered in the manifest.",t))})}function sp(e){return new Promise(t=>{if(om(iA),!a0())throw rk._A;t(iJ(e,"navigateBack","Back navigation is not supported in the current client or context."))})}function sg(e,t){return new Promise(n=>{if(om(iA),!se())throw rk._A;n(iJ(e,"navigateToTab","Invalid internalTabInstanceId and/or channelId were/was provided",t))})}function sh(e,t){return new Promise(n=>{if(om(iA),!se())throw rk._A;n(iG(e,"getTabInstances",t))})}function sm(e,t){return new Promise(n=>{if(om(iA),!se())throw rk._A;n(iG(e,"getMruTabInstances",t))})}function sv(e,t){if(om(iA,rk.$c.content,rk.$c.sidePanel,rk.$c.meetingStage),!su())throw rk._A;i3(e,"shareDeepLink",[t.subPageId,t.subPageLabel,t.subPageWebUrl])}function sw(e,t){if(om(iA,rk.$c.content),!su())throw rk._A;i3(e,"setFrameContext",[t])}function sC(e,t){if(om(iA,rk.$c.settings,rk.$c.remove),!aN())throw rk._A;i3(e,"settings.setValidityState",[t])}function sy(e){return new Promise(t=>{if(om(iA,rk.$c.content,rk.$c.settings,rk.$c.remove,rk.$c.sidePanel),!su())throw rk._A;t(iG(e,"settings.getSettings"))})}function sS(e,t){return new Promise(n=>{if(om(iA,rk.$c.content,rk.$c.settings,rk.$c.sidePanel),!aN())throw rk._A;n(iY(e,"settings.setSettings",t))})}function sA(e){return e.appId instanceof oS}function sb(){sO(ii("v2","pages.backStack.registerBackButtonPressHandler"),"backButtonPress",sE,!1)}function sE(){f&&f()||(sL()?sB("backButtonPress",[]):aQ())}let sI=ir("handlers");class sT{static initializeHandlers(){sT.handlers.themeChange=sk,sT.handlers.contextChange=s$,sT.handlers.load=sN,sT.handlers.beforeUnload=sD,sb()}static uninitializeHandlers(){sT.handlers={},sT.themeChangeHandler=null,sT.beforeUnloadHandler=null,sT.beforeSuspendOrTerminateHandler=null,sT.resumeHandler=null,sT.contextChangeHandler=null}}sT.handlers={},sT.themeChangeHandler=null,sT.loadHandler=null,sT.beforeUnloadHandler=null,sT.beforeSuspendOrTerminateHandler=null,sT.resumeHandler=null,sT.hostToAppPerformanceMetricsHandler=null,sT.contextChangeHandler=null;let sP=sI.extend("callHandler");function sR(e,t){let n=sT.handlers[e];return n?(sP("Invoking the registered handler for message %s with arguments %o",e,t),[!0,n.apply(this,t)]):(sL()?sB(e,t):sP("Handler for action message %s not found.",e),[!1,void 0])}function sO(e,t,n,r=!0,i=[]){n?(sT.handlers[t]=n,r&&i3(e,"registerHandler",[t,...i])):delete sT.handlers[t]}function sF(e){delete sT.handlers[e]}function sM(e){return null!=sT.handlers[e]}function s_(e,t,n,r,i){n&&om(iA,...r),i&&i(),sO(e,t,n)}function sk(e){sT.themeChangeHandler&&sT.themeChangeHandler(e),sL()&&sB("theme
1Change",[e])}function s$(e){sT.contextChangeHandler&&sT.contextChangeHandler(e),sL()&&sB("contextChange",[e])}function sU(e){sT.hostToAppPerformanceMetricsHandler&&sT.hostToAppPerformanceMetricsHandler(e)}function sN(e){let t={entityId:e.entityId,contentUrl:new URL(e.contentUrl)};sT.resumeHandler?(sT.resumeHandler(t),sL()&&sB("load",[t])):sT.loadHandler&&(sT.loadHandler(e),sL()&&sB("load",[e]))}function sD(){return nY(this,void 0,void 0,function*(){let e=()=>{i3(ii("v2","handleBeforeUnload"),"readyToUnload",[])};sT.beforeSuspendOrTerminateHandler?(yield sT.beforeSuspendOrTerminateHandler(),sL()?sB("beforeUnload"):e()):sT.beforeUnloadHandler&&sT.beforeUnloadHandler(e)||(sL()?sB("beforeUnload"):e())})}let sH=ir("childProxyingCommunication");class sx{}function sL(){return!!nZ()&&!!sx.window}sx.messageQueue=[];let sV=sH.extend("handleIncomingMessageFromChild");function sW(e,t,n,r){let i=sx.window,o=r6({id:e,uuid:t,args:n||[],isPartialResponse:r}),a=sx.origin;i&&a&&(sV("Sending message %s to %s via postMessage, args = %o",ia(o),"child",o.args),i.postMessage(o,a))}function sB(e,t){let n=sx.window,r={func:e,args:t||[]},i=sx.origin;n&&i?n.postMessage(r,i):sx.messageQueue.push(r)}function sj(e,t){om(iA),i3(ii("v1","uploadCustomApp"),"uploadCustomApp",[e],t||rV())}function sz(e,t,n){om(iA),i3(ii("v1","sendCustomMessage"),e,t,n)}function sq(e,t){if(om(iA),!sL())throw Error("The child window has not yet been initialized or is not present");sB(e,t)}function sK(e,t){om(iA),sO(ii("v1","registerCustomHandler"),e,(...e)=>t.apply(this,e))}function sG(e,t){om(iA),sO(ii("v1","registerUserSettingsChangeHandler"),"userSettingsChange",t,!0,[e])}function sY(e){om(iA,rk.$c.content,rk.$c.sidePanel,rk.$c.task);let t=[e.entityId,e.title,e.description,e.type,e.objectUrl,e.downloadUrl,e.webPreviewUrl,e.webEditUrl,e.baseUrl,e.editFile,e.subEntityId,e.viewerAction,e.fileOpenPreference,e.conversationId,e.sizeInBytes,e.messageId,e.callerInfo,e.atpData,e.shareUrl,e.replyChainId];i3(ii("v1","openFilePreview"),"openFilePreview",t)}class sJ{constructor(e){this.invokeRequest=e}serialize(){return this.invokeRequest}}function sQ(e){return e.responseType===e_.ActionExecuteInvokeResponse&&void 0!==e.value&&void 0!==e.statusCode&&void 0!==e.type}let sZ="Action.Execute";(E=eM||(eM={})).ActionExecuteInvokeRequest="ActionExecuteInvokeRequest",E.QueryMessageExtensionRequest="QueryMessageExtensionRequest",(I=e_||(e_={})).ActionExecuteInvokeResponse="ActionExecuteInvokeResponse",I.QueryMessageExtensionResponse="QueryMessageExtensionResponse";class sX extends aA{validate(e){return sQ(e)}deserialize(e){return e}}function s0(e){return"object"==typeof e&&null!==e&&Object.values(ek).includes(e.errorCode)&&(void 0===e.message||"string"==typeof e.message)}function s1(e){e.requestType===eM.ActionExecuteInvokeRequest?s2(e):e.requestType===eM.QueryMessageExtensionRequest&&function(e){if(e.commandId.length>64)throw Error("originalRequestInfo.commandId exceeds the maximum size of 64 characters");if(e.parameters.length>5)throw Error("originalRequestInfo.parameters exceeds the maximum size of 5");for(let t of e.parameters){if(t.name.length>64)throw Error("originalRequestInfo.parameters.name exceeds the maximum size of 64 characters");if(t.value.length>512)throw Error("originalRequestInfo.parameters.value exceeds the maximum size of 512 characters")}}(e)}function s2(e){if(e.type!==sZ)throw{errorCode:ek.INTERNAL_ERROR,message:`Invalid action type ${e.type}. Action type must be "${sZ}"`};if(!function e(t,n=0){return!(n>1e3)&&(void 0===t||"boolean"==typeof t||"number"==typeof t||"bigint"==typeof t||"string"==typeof t||null===t||(Array.isArray(t)?t.every(t=>e(t,n+1)):"object"==typeof t&&"[object Object]"===Object.prototype.toString.call(t)&&(Object.getPrototypeOf(t)===Object.prototype||null===Object.getPrototypeOf(t))&&Object.keys(t).every(r=>e(t[r],n+1))))}(e.data))throw{errorCode:ek.INTERNAL_ERROR,message:`Invalid data type ${typeof e.data}. Data must be a primitive or a plain object.`}}function s3(e,t,n){if(om(iA,rk.$c.content,rk.$c.sidePanel),!lr())throw rk._A;let r=new oS(e);return s1(n),iZ(ii("v2","externalAppAuthentication.authenticateAndResendRequest"),"externalAppAuthentication.authenticateAndResendRequest",[r.toString(),n,t.url.href,t.width,t.height,t.isExternal]).then(([e,t])=>
1{if(e&&null!=t.responseType)return t;throw t})}function s6(e,t){if(om(iA,rk.$c.content,rk.$c.sidePanel),!lr())throw rk._A;let n=new oS(e);return iZ(ii("v2","externalAppAuthentication.authenticateWithSSO"),"externalAppAuthentication.authenticateWithSSO",[n.toString(),t.claims,t.silent]).then(([e,t])=>{if(!e)throw t})}function s5(e,t,n){if(om(iA,rk.$c.content,rk.$c.sidePanel),!lr())throw rk._A;let r=new oS(e);return s1(n),iZ(ii("v2","externalAppAuthentication.authenticateWithSSOAndResendRequest"),"externalAppAuthentication.authenticateWithSSOAndResendRequest",[r.toString(),n,t.claims,t.silent]).then(([e,t])=>{if(e&&null!=t.responseType)return t;throw t})}function s8(e,t,n){if(om(iA,rk.$c.content,rk.$c.sidePanel),!lr())throw rk._A;return rG(e,Error("titleId is Invalid.")),rG(t,Error("oauthConfigId is Invalid.")),iZ(ii("v2","externalAppAuthentication.authenticateWithOauth2"),"externalAppAuthentication.authenticateWithOauth2",[e,t,n.width,n.height,n.isExternal]).then(([e,t])=>{if(!e)throw t})}function s4(e,t,n){if(om(iA,rk.$c.content,rk.$c.sidePanel),!lr())throw rk._A;return rG(e,Error("titleId is Invalid.")),t&&rY(t),iZ(ii("v2","externalAppAuthentication.authenticateWithPowerPlatformConnectorPlugins"),"externalAppAuthentication.authenticateWithPowerPlatformConnectorPlugins",[e,null==t?void 0:t.toString(),null==n?void 0:n.width,null==n?void 0:n.height,null==n?void 0:n.isExternal]).then(([e,t])=>{if(!e)throw t})}(ek||(ek={})).INTERNAL_ERROR="INTERNAL_ERROR";class s9{constructor(e){this.param=e}serialize(){var e,t,n;return{connectorId:this.param.connectorId,oAuthConfigId:this.param.oAuthConfigId,traceId:null!=(n=null==(t=null==(e=this.param.traceId)?void 0:e.toString)?void 0:t.call(e))?n:this.param.traceId,windowParameters:this.param.windowParameters?Object.assign({},this.param.windowParameters):void 0}}}function s7(e){if(om(iA,rk.$c.content,rk.$c.sidePanel),!lr())throw rk._A;return rG(e.connectorId,Error("connectorId is Invalid.")),rG(e.oAuthConfigId,Error("oauthConfigId is Invalid.")),i1("externalAppAuthentication.authenticateWithConnector",[new s9(e)],ii("v2","externalAppAuthentication.authenticateWithConnector"),s0)}(T=e$||(e$={})).Invalid="Invalid",T.Valid="Valid",T.Expired="Expired";class le extends aA{validate(e){return"string"==typeof e&&e in e$}deserialize(e){return e}}function lt(e){if(om(iA,rk.$c.content,rk.$c.sidePanel),!lr())throw rk._A;return rG(e.connectorId,Error("connectorId is Invalid.")),rG(e.oAuthConfigId,Error("oAuthConfigId is Invalid.")),i0("externalAppAuthentication.getUserAuthenticationStateForConnector",[new s9(e)],new le,ii("v2","externalAppAuthentication.getUserAuthenticationStateForConnector"),s0)}function ln(e){if(om(iA,rk.$c.content,rk.$c.sidePanel),!lr())throw rk._A;return rG(e.connectorId,Error("connectorId is Invalid.")),rG(e.oAuthConfigId,Error("oauthConfigId is Invalid.")),i1("externalAppAuthentication.disconnectConnector",[new s9(e)],ii("v2","externalAppAuthentication.disconnectConnector"),s0)}function lr(){return!(!om(iA)||!iA.supports.externalAppAuthentication)}function li(e){if(oA(e)||om(iA),!oA(e)&&!lo())throw rk._A;e?sO(ii("v1","log.request"),"log.request",()=>{let t=e();i3(ii("v1","log.receive"),"log.receive",[t])}):sF("log.request")}function lo(){return!(!om(iA)||!iA.supports.logs)}function la(e){if(om(iA,rk.$c.content),!lu())throw rk._A;return i1("contextualSearch.openContextualSearch",[null==e?void 0:e.triggerSource],ii("v1","contextualSearch.openContextualSearch"))}function ls(){if(om(iA,rk.$c.content),!lu())throw rk._A;return i1("contextualSearch.closeContextualSearch",[],ii("v1","contextualSearch.closeContextualSearch"))}function ll(e){s_(ii("v1","contextualSearch.registerOpenContextualSearchHandler"),"contextualSearchOpened",e,[rk.$c.content],()=>{if(!lu())throw rk._A})}function lc(e){s_(ii("v1","contextualSearch.registerCloseContextualSearchHandler"),"contextualSearchClosed",e,[rk.$c.content],()=>{if(!lu())throw rk._A})}function lu(){return om(iA)&&!!iA.supports.contextualSearch}function ld(e){return new Promise(t=>{if(om(iA,rk.$c.content),!lg())throw rk._A;let n=iY(ii("v1","conversations.openConversation"),"conversations.openConversation",{title:e.title,subEntityId:e.subEntityId,conversationId:e.conversationId,channelId:e.channelId,entityId:e.entityId});e.onStartConversation&&sO(ii("v1","conversations.registerStartConversationHandler"),"startConversation",(t,n,r,i)=>{var o;return null==(o=e.onStartConversation)?void 0:o.call(e,{subEntityId:t,conversationId:n,channelId:r,entityId:i})}),e.onCloseConversation&&sO(ii("v1","conversations.registerCloseConversationHandler"),"closeConversation",(t,n,r,i)=>{var o;return null==(o=e.onCloseConversation)?void 0:o.call(e,{subEntityId:t,conversationId:n,channelId:r,entityId:i})}),t(n)})}function lf(){if(om(iA,rk.$c.content),!lg())throw rk._A;i3(ii("v1","conversations.closeConversation"),"conversations.closeConversation"),sF("startConversation"),sF("closeConversation")}function lp(){return new Promise(e=>
1{if(om(iA),!lg())throw rk._A;e(iG(ii("v1","conversations.getChatMember"),"getChatMembers"))})}function lg(){return!(!om(iA)||!iA.supports.conversations)}let lh=ir("copilot");function lm(){var e;return om(iA)&&!!(null==(e=iA.supports.copilot)?void 0:e.customTelemetry)}function lv(e,t){var n;return void 0===t&&(t=null!=(n=rZ())?n:Date.now()),nY(this,void 0,void 0,function*(){return om(iA),lh("Sending custom telemetry data to host for stage: %s to record timestamp: %s",e,t),i1("copilot.customTelemetry.sendCustomTelemetryData",[e.toString(),t],ii("v2","copilot.customTelemetry.sendCustomTelemetryData"))})}let lw=ir("copilot");function lC(){var e,t;return om(iA)&&(!!(null==(e=iA.hostVersionsInfo)?void 0:e.appEligibilityInformation)||!!(null==(t=iA.supports.copilot)?void 0:t.eligibility))}function ly(e){var t,n,r;return nY(this,void 0,void 0,function*(){if(om(iA),!lC())throw Error(`Error code: ${rk._A.errorCode}, message: Not supported on platform`);if((null==(t=iA.hostVersionsInfo)?void 0:t.appEligibilityInformation)&&!e)return lw("Eligibility information is already available on runtime."),iA.hostVersionsInfo.appEligibilityInformation;lw("Eligibility information is not available on runtime. Requesting from host.");let i=yield iG(ii("v2","copilot.eligibility.getEligibilityInfo"),"copilot.eligibility.getEligibilityInfo",e);if((0,r$.pY)(i))throw Error(`Error code: ${i.errorCode}, message: ${null!=(n=i.message)?n:"Failed to get eligibility information from the host."}`);if(!(void 0!==i.ageGroup&&void 0!==i.cohort&&void 0!==i.userClassification&&void 0!==i.isCopilotEligible&&void 0!==i.isCopilotEnabledRegion&&void 0!==i.isOptedOutByAdmin&&(!i.featureSet||void 0!==i.featureSet.serverFeatures&&void 0!==i.featureSet.uxFeatures)&&1))throw Error("Error deserializing eligibility information");return"nonadult"===(null==(r=i.ageGroup)?void 0:r.toLowerCase())&&(i.ageGroup=r$.a7.NotAdult),i})}(P=eU||(eU={})).EMAIL="email",P.TEXT="text",P.MEDIA="media",P.CALENDAR_INVITE="calendarInvite",P.WEB_PAGE="webPage",P.MIXED="mixed",P.TEAMS="teams",P.FILE="file",(R=eN||(eN={})).IMAGE="image",R.AUDIO="audio",R.VIDEO="video",(O=eD||(eD={})).Private="Private",O.Shared="Shared",O.Recap="Recap",O.RecapCall="RecapCall",O.PrivateViewCall="PrivateViewCall",O.Chat="Chat",O.Compose="Compose",(F=eH||(eH={})).ClientDeviceType="ClientDeviceType",F.ClientRing="ClientRing",F.ClientScenarioName="ClientScenarioName",(M=ex||(ex={})).Enabled="enabled",M.Disabled="disabled",M.EnabledWithTranscript="enabledWithTranscript",(_=eL||(eL={})).NotStarted="notStarted",_.Active="active",_.Inactive="inactive",_.UnknownFutureValue="unknownFutureValue",(k=eV||(eV={})).Chat="Chat",k.Channel="Channel",k.Meeting="Meeting",k.MeetingChat="MeetingChat",($=eW||(eW={})).Accepted="accepted",$.NotAccepted="not_accepted",(U=eB||(eB={})).ConsentNotAccepted="consent_not_accepted",U.PageContentBlockedPolicy="page_content_blocked_policy",U.PageContentBlockedDlp="page_content_blocked_dlp",U.PageContentTypeNotSupportedYet="page_content_type_not_supported_yet",U.PageContentSizeNotSupported="page_content_size_not_supported",U.PageContextChanged="page_context_changed",U.PageContentExtractionFailed="page_content_extraction_failed",U.PageContentSizeNotSupportedPDF="page_content_size_not_supported_pdf",U.NotSupportedOnPlatform="not_supported_on_platform",U.OtherError="other_error";
1class lS extends Error{constructor(e,t){super(t),this.errorCode=e,this.name="SidePanelError"}}function lA(){var e;return om(iA)&&!!(null==(e=iA.supports.copilot)?void 0:e.sidePanel)}function lb(e){return"object"==typeof e&&null!==e&&(Object.values(eB).includes(e.errorCode)&&(void 0===e.message||"string"==typeof e.message)||(0,r$.pY)(e))}function lE(e){return nY(this,void 0,void 0,function*(){return om(iA),i0("copilot.sidePanel.getContent",e?[new lF(e)]:[],new lR,ii("v2","copilot.sidePanel.getContent"),lb)})}function lI(e){return nY(this,void 0,void 0,function*(){return om(iA),i0("copilot.sidePanel.preCheckUserConsent",e?[new lM(e)]:[],new lO,ii("v2","copilot.sidePanel.preCheckUserConsent"),lb)})}function lT(e){s_(ii("v2","copilot.sidePanel.registerUserActionContentSelect"),"copilot.sidePanel.userActionContentSelect",e,[rk.$c.content],()=>{if(!lA())throw lP})}let lP=new lS(eB.NotSupportedOnPlatform,"This API is not supported on the current platform.");class lR extends aA{validate(e){return null!==e&&"object"==typeof e}deserialize(e){return e}}class lO extends aA{validate(e){return null!==e&&"object"==typeof e}deserialize(e){return e}}class lF{constructor(e){this.contentRequest=e}serialize(){return this.contentRequest}}class lM{constructor(e){this.userConsentRequest=e}serialize(){return this.userConsentRequest}}function l_(){var e;return om(iA)&&!!(null==(e=iA.supports.copilot)?void 0:e.view)}function lk(){return nY(this,void 0,void 0,function*(){om(iA),yield i0("copilot.view.closeSidePanel",[],new l$,ii("v2","copilot.view.closeSidePanel"))})}class l$ extends aA{validate(e){return!0}deserialize(e){return e}}function lU(e,t,n){return nY(this,void 0,void 0,function*(){if(om(iA,rk.$c.content,rk.$c.sidePanel),!lx())throw rk._A;return lL(e,t),i1("externalAppAuthenticationForCEA.authenticateWithSSO",[e,t,n.authId,n.connectionName,n.claims,n.silent],ii("v2","externalAppAuthenticationForCEA.authenticateWithSSO"),s0)})}function lN(e,t,n){return nY(this,void 0,void 0,function*(){if(om(iA,rk.$c.content,rk.$c.sidePanel),!lx())throw rk._A;return lL(e,t),i1("externalAppAuthenticationForCEA.authenticateWithOauth",[e,t,n.url.href,n.width,n.height,n.isExternal],ii("v2","externalAppAuthenticationForCEA.authenticateWithOauth"),s0)})}function lD(e,t,n,r){return nY(this,void 0,void 0,function*(){if(om(iA,rk.$c.content,rk.$c.sidePanel),!lx())throw rk._A;return lL(e,t),s2(r),i0("externalAppAuthenticationForCEA.authenticateAndResendRequest",[e,t,new sJ(r),n.url.href,n.width,n.height,n.isExternal],new sX,ii("v2","externalAppAuthenticationForCEA.authenticateAndResendRequest"),s0)})}function lH(e,t,n,r){return nY(this,void 0,void 0,function*(){if(om(iA,rk.$c.content,rk.$c.sidePanel),!lx())throw rk._A;return lL(e,t),s2(r),i0("externalAppAuthenticationForCEA.authenticateWithSSOAndResendRequest",[e,t,new sJ(r),n.authId,n.connectionName,n.claims,n.silent],new sX,ii("v2","externalAppAuthenticationForCEA.authenticateWithSSOAndResendRequest"),s0)})}function lx(){return!(!om(iA)||!iA.supports.externalAppAuthenticationForCEA)}function lL(e,t){rG(t,Error("conversation id is not valid.")),oC(e)}function lV(e,t){if(om(iA,rk.$c.content,rk.$c.sidePanel),!lB())throw rk._A;let n=new oS(e);return iZ(ii("v2","externalAppCardActions.processActionSubmit"),"externalAppCardActions.processActionSubmit",[n.toString(),t]).then(([e,t])=>{if(!e)throw t})}function lW(e,t,n){if(om(iA,rk.$c.content,rk.$c.sidePanel),!lB())throw rk._A;let r=new oS(e);return iZ(ii("v2","externalAppCardActions.processActionOpenUrl"),"externalAppCardActions.processActionOpenUrl",[r.toString(),t.href,n]).then(([e,t])=>{if(e)throw e;return t})}function lB(){return!(!om(iA)||!iA.supports.externalAppCardActions)}
1function lj(e,t,n){return nY(this,void 0,void 0,function*(){if(om(iA,rk.$c.content,rk.$c.sidePanel),!lq())throw rk._A;lL(e,t);let[r,i]=yield iZ(ii("v2","externalAppCardActionsForCEA.processActionOpenUrl"),"externalAppCardActionsForCEA.processActionOpenUrl",[e.toString(),t,n.href]);if(r)throw r;return i})}function lz(e,t,n){return nY(this,void 0,void 0,function*(){if(om(iA,rk.$c.content,rk.$c.sidePanel),!lq())throw rk._A;lL(e,t);let r=yield iG(ii("v2","externalAppCardActionsForCEA.processActionSubmit"),"externalAppCardActionsForCEA.processActionSubmit",e.toString(),t,n);if(r)throw r})}function lq(){return!(!om(iA)||!iA.supports.externalAppCardActionsForCEA)}function lK(e){return"object"==typeof e&&null!==e&&Object.values(eq).includes(e.errorCode)&&(void 0===e.message||"string"==typeof e.message)}function lG(e,t,n){return nY(this,void 0,void 0,function*(){if(om(iA,rk.$c.content,rk.$c.sidePanel),!lY())throw rk._A;return oC(e),function(e){if(!(e instanceof r0))throw Error(`Potential id (${JSON.stringify(e)}) is invalid; it is not an instance of UUID class.`)}(n),i1("externalAppCardActionsForDA.processActionOpenUrlDialog",[e,new lJ(t),n],ii("v2","externalAppCardActionsForDA.processActionOpenUrlDialog"),lK)})}function lY(){return!(!om(iA)||!iA.supports.externalAppCardActionsForDA)}(N=ej||(ej={})).DeepLinkDialog="DeepLinkDialog",N.DeepLinkOther="DeepLinkOther",N.DeepLinkStageView="DeepLinkStageView",N.GenericUrl="GenericUrl",(D=ez||(ez={})).INTERNAL_ERROR="INTERNAL_ERROR",D.INVALID_LINK="INVALID_LINK",D.NOT_SUPPORTED="NOT_SUPPORTED",(eq||(eq={})).INTERNAL_ERROR="INTERNAL_ERROR";class lJ{constructor(e){this.info=e}serialize(){let{url:e,title:t,size:n}=this.info;return{url:e.href,title:t,size:n}}}function lQ(e,t,n){return nY(this,void 0,void 0,function*(){if(om(iA,rk.$c.content,rk.$c.sidePanel),!lZ())throw rk._A;let r=new oS(e),[i,o]=yield iZ(ii("v2","externalAppCommands.processActionCommand"),"externalAppCommands.processActionCommand",[r.toString(),t,n]);if(i)throw i;return o})}function lZ(){return!(!om(iA)||!iA.supports.externalAppCommands)}function lX(e,t){if(om(iA,rk.$c.content),!e||0===e.length)throw Error("[files.getCloudStorageFolders] channelId name cannot be null or empty");if(!t)throw Error("[files.getCloudStorageFolders] Callback cannot be null");i3(ii("v1","files.getCloudStorageFolders"),"files.getCloudStorageFolders",[e],t)}function l0(e,t){if(om(iA,rk.$c.content),!e||0===e.length)throw Error("[files.addCloudStorageFolder] channelId name cannot be null or empty");if(!t)throw Error("[files.addCloudStorageFolder] Callback cannot be null");i3(ii("v1","files.addCloudStorageFolder"),"files.addCloudStorageFolder",[e],t)}function l1(e,t,n){if(om(iA,rk.$c.content),!e)throw Error("[files.deleteCloudStorageFolder] channelId name cannot be null or empty");if(!t)throw Error("[files.deleteCloudStorageFolder] folderToDelete cannot be null or empty");if(!n)throw Error("[files.deleteCloudStorageFolder] Callback cannot be null");i3(ii("v1","files.deleteCloudStorageFolder"),"files.deleteCloudStorageFolder",[e,t],n)}function l2(e,t,n){if(om(iA,rk.$c.content),!e||!t)throw Error("[files.getCloudStorageFolderContents] folder/providerCode name cannot be null or empty");if(!n)throw Error("[files.getCloudStorageFolderContents] Callback cannot be null");if("isSubdirectory"in e&&!e.isSubdirectory)throw Error("[files.getCloudStorageFolderContents] provided folder is not a subDirectory");i3(ii("v1","files.getCloudStorageFolderContents"),"files.getCloudStorageFolderContents",[e,t],n)}function l3(e,t,n){if(om(iA,rk.$c.content),!e||!t)throw Error("[files.openCloudStorageFile] file/providerCode cannot be null or empty");if(e.isSubdirectory)throw Error("[files.openCloudStorageFile] provided file is a subDirectory");i3(ii("v1","files.openCloudStorageFile"),"files.openCloudStorageFile",[e,t,n])}function l6(e=!1,t){if(om(iA,rk.$c.content),!t)throw Error("[files.getExternalProviders] Callback cannot be null");i3(ii("v1","files.getExternalProviders"),"files.getExternalProviders",[e],t)}function l5(e,t,n,r,i=!1,o){if(om(iA,rk.$c.content),!e||0===e.length)throw Error("[files.copyMoveFiles] selectedFiles cannot be null or empty");if(!t)throw Error("[files.copyMoveFiles] providerCode cannot be null or empty");if(!n)throw Error("[files.copyMoveFiles] destinationFolder cannot be null or empty");if(!r)throw Error("[files.copyMoveFiles] destinationProviderCode cannot be null or empty");if(!o)throw Error("[files.copyMoveFiles] callback cannot be null");i3(ii("v1","files.copyMoveFiles"),"files.copyMoveFiles",[e,t,n,r,i],o)}function l8(e){if(om(iA,rk.$c.content),!e)throw Error("[files.getFileDownloads] Callback cannot be null");i3(ii("v1","files.getFileDownloads"),"files.getFileDownloads",[],e)}function l4(e,t){if(om(iA,rk.$c.content),!t)throw Error("[files.openDownloadFolder] Callback cannot be null");i3(ii("v1","files.openDownloadFolder"),"files.openDownloadFolder",[e],t)}function l9(e){if(om(iA,rk.$c.content),!e)throw cs(r$.jK.INVALID_ARGUMENTS,"[files.addCloudStorageProvider] callback cannot be null");i3(ii("v1","files.addCloudStorageProvider"),"files.addCloudStorageProvider",[],e)}function l7(e,t){if(om(iA,rk.$c.content),!t)throw cs(r$.jK.INVALID_ARGUMENTS,"[files.removeCloudStorageProvider] callback cannot be null");if(!e||!e.content)throw cs(r$.jK.INVALID_ARGUMENTS,"[files.removeCloudStorageProvider] 3P cloud storage provider request content is missing");i3(ii("v1","files.removeCloudStorageProvider"),"files.removeCloudStorageProvider",[e],t)}function ce(e,t){if(om(iA,rk.$c.content),!t)throw cs(r$.jK.INVALID_ARGUMENTS,"[files.addCloudStorageProviderFile] callback cannot be null");if(!e||!e.content)throw cs(r$.jK.INVALID_ARGUMENTS,"[files.addCloudStorageProviderFile] 3P cloud storage provider request content is missing");i3(ii("v1","files.addCloudStorageProviderFile"),"files.addCloudStorageProviderFile",[e],t)}function ct(e,t){if(om(iA,rk.$c.content),!t)throw cs(r$.jK.INVALID_ARGUMENTS,"[files.renameCloudStorageProviderFile] callback cannot be null");if(!e||!e.content)throw cs(r$.jK.INVALID_ARGUMENTS,"[files.renameCloudStorageProviderFile] 3P cloud storage provider request content is missing");i3(ii("v1","files.renameCloudStorageProviderFile"),"files.renameCloudStorageProviderFile",[e],t)}function cn(e,t){if(om(iA,rk.$c.content),!t)throw cs(r$.jK.INVALID_ARGUMENTS,"[files.deleteCloudStorageProviderFile] callback cannot be null");if(!(e&&e.content&&e.content.itemList&&e.content.itemList.length>0))throw cs(r$.jK.INVALID_ARGUMENTS,"[files.deleteCloudStorageProviderFile] 3P cloud storage provider request content details are missing");i3(ii("v1","files.deleteCloudStorageProviderFile"),"files.deleteCloudStorageProviderFile",[e],t)}function cr(e,t){if(om(iA,rk.$c.content),!t)throw cs(r$.jK.INVALID_ARGUMENTS,"[files.downloadCloudStorageProviderFile] callback cannot be null");if(!(e&&e.content&&e.content.itemList&&e.content.itemList.length>0))throw cs(r$.jK.INVALID_ARGUMENTS,"[files.downloadCloudStorageProviderFile] 3P cloud storage provider request content details are missing");i3(ii("v1","files.downloadCloudStorageProviderFile"),"files.downloadCloudStorageProviderFile",[e],t)}function ci(e,t){if(om(iA,rk.$c.content),!t)throw cs(r$.jK.INVALID_ARGUMENTS,"[files.uploadCloudStorageProviderFile] callback cannot be null");if(!(e&&e.content&&e.content.itemList&&e.content.itemList.length>0))throw cs(r$.jK.INVALID_ARGUMENTS,"[files.uploadCloudStorageProviderFile] 3P cloud storage provider request content details are missing");if(!e.content.destinationFolder)throw cs(r$.jK.INVALID_ARGUMENTS,"[files.uploadCloudStorageProviderFile] Invalid destination folder details");i3(ii("v1","files.uploadCloudStorageProviderFile"),"files.uploadCloudStorageProviderFile",[e],t)}
1function co(e){if(om(iA),!e)throw Error("[registerCloudStorageProviderListChangeHandler] Handler cannot be null");sO(ii("v1","files.registerCloudStorageProviderListChangeHandler"),"files.cloudStorageProviderListChange",e)}function ca(e){if(om(iA),!e)throw Error("[registerCloudStorageProviderContentChangeHandler] Handler cannot be null");sO(ii("v1","files.registerCloudStorageProviderContentChangeHandler"),"files.cloudStorageProviderContentChange",e)}function cs(e,t){return{errorCode:e,message:t}}function cl(){return new Promise(e=>{if(om(iA),!cf())throw rk._A;e(iQ(ii("v1","meetingRoom.getPairedMeetingRoomInfo"),"meetingRoom.getPairedMeetingRoomInfo"))})}function cc(e){return new Promise(t=>{if(!e||0==e.length)throw Error("[meetingRoom.sendCommandToPairedMeetingRoom] Command name cannot be null or empty");if(om(iA),!cf())throw rk._A;t(iQ(ii("v1","meetingRoom.sendCommandToPairedMeetingRoom"),"meetingRoom.sendCommandToPairedMeetingRoom",e))})}function cu(e){if(!e)throw Error("[meetingRoom.registerMeetingRoomCapabilitiesUpdateHandler] Handler cannot be null");if(om(iA),!cf())throw rk._A;sO(ii("v1","meetingRoom.registerMeetingRoomCapabilitiesUpdateHandler"),"meetingRoom.meetingRoomCapabilitiesUpdate",t=>{om(iA),e(t)})}function cd(e){if(!e)throw Error("[meetingRoom.registerMeetingRoomStatesUpdateHandler] Handler cannot be null");if(om(iA),!cf())throw rk._A;sO(ii("v1","meetingRoom.registerMeetingRoomStatesUpdateHandler"),"meetingRoom.meetingRoomStatesUpdate",t=>{om(iA),e(t)})}function cf(){return!(!om(iA)||!iA.supports.meetingRoom)}function cp(){return!(!om(iA)||!iA.supports.messageChannels)}(H=eK||(eK={})).Dropbox="DROPBOX",H.Box="BOX",H.Sharefile="SHAREFILE",H.GoogleDrive="GOOGLEDRIVE",H.Egnyte="EGNYTE",H.SharePoint="SharePoint",(x=eG||(eG={}))[x.Sharepoint=0]="Sharepoint",x[x.WopiIntegration=1]="WopiIntegration",x[x.Google=2]="Google",x[x.OneDrive=3]="OneDrive",x[x.Recent=4]="Recent",x[x.Aggregate=5]="Aggregate",x[x.FileSystem=6]="FileSystem",x[x.Search=7]="Search",x[x.AllFiles=8]="AllFiles",x[x.SharedWithMe=9]="SharedWithMe",(eY||(eY={})).ClassMaterials="classMaterials",(eJ||(eJ={})).Readonly="readonly",(L=eQ||(eQ={})).Downloaded="Downloaded",L.Downloading="Downloading",L.Failed="Failed",(V=eZ||(eZ={})).Download="DOWNLOAD",V.Upload="UPLOAD",V.Delete="DELETE";let cg="1.0.1",ch={onMessage:function(e,t){if(!e||!e.data||"object"!=typeof e.data||null===e.data)return void cC("Invalid message format, ignoring. Message: %o",e);if(!function(e,t){if(t===cm)try{return"https:"===new URL(t).protocol}catch(e){return cy("Invalid message origin URL:",e),!1}return!1}(e.source,e.origin))return void cC("Message source/origin not allowed, ignoring.");let{args:n}=e.data,[,r]=null!=n?n:[],i=(()=>{try{return JSON.parse(r)}catch(e){return cy("Failed to parse response message:",e),null}})();if(!i||"NestedAppAuthResponse"!==i.messageType)return void cC("Invalid response format, ignoring. Message: %o",e);t(r)}},cm=null,cv=!1;function cw(e,t,n=!1){if(cv=n,!e)throw Error("Cannot polyfill nestedAppAuthBridge as the current window does not exist");if(!t)throw Error("Top origin is required to initialize the Nested App Auth Bridge");try{let e=new URL(t);if("https:"!==e.protocol)throw Error(`Invalid top origin: ${t}. Only HTTPS origins are allowed.`);cm=e.origin}catch(e){throw Error(`Failed to initialize bridge: invalid top origin: ${t}`)}if(e.nestedAppAuthBridge)return void cC("Nested App Auth Bridge is already present");let r=function(e){let t=new WeakMap,{onMessage:n}=ch,r=e=>t=>n(t,e);return{addEventListener:(n,i)=>
1{if("message"===n){let o=r(i);t.set(i,o),e.addEventListener(n,o)}else cC(`Event ${n} is not supported by nestedAppAuthBridge`)},postMessage:t=>{if(!e.top)throw Error("window.top is not available for posting messages");try{let n=JSON.parse(t);if("object"==typeof n&&"NestedAppAuthRequest"===n.messageType){let n=function(e){let t=Date.now();return{id:"undefined"!=typeof crypto&&crypto.randomUUID?crypto.randomUUID():Math.random().toString(36).substring(2,11),uuid:rH(),func:"nestedAppAuth.execute",timestamp:t,apiVersionTag:"v2_nestedAppAuth.execute",monotonicTimestamp:t,args:[],data:e}}(t);if(e===e.top||!cm)return void cy("Not in an embedded iframe; skipping postMessage.");e.top.postMessage(n,cm)}}catch(e){return void cy("Failed to parse message:",e,"Original message:",t)}},removeEventListener:(n,r)=>{let i=t.get(r);i&&(e.removeEventListener(n,i),t.delete(r))}}}(e);r&&(e.nestedAppAuthBridge=r)}function cC(...e){cv&&console.log(...e)}function cy(...e){cv&&console.error(...e)}function cS(e){if(om(iA,rk.$c.content),!cA())throw rk._A;i3(ii("v1","notifications.showNotification"),"notifications.showNotification",[e])}function cA(){return!(!om(iA)||!iA.supports.notifications)}function cb(e){if(!cT())throw Error(r$.jK.NOT_SUPPORTED_ON_PLATFORM.toString());if(oA(e))throw Error(r$.jK.INVALID_ARGUMENTS.toString());sO(ii("v2","otherApp.install"),"otherApp.install",e)}function cE(){if(!cT())throw Error(r$.jK.NOT_SUPPORTED_ON_PLATFORM.toString());i3(ii("v2","otherApp.unregisterInstall"),"otherApp.unregisterInstall"),sF("otherApp.install")}function cI(e){if(!cT())throw Error(r$.jK.NOT_SUPPORTED_ON_PLATFORM.toString());return i1("otherApp.notifyInstallCompleted",[e.toString()],ii("v2","otherApp.notifyInstallCompleted"))}function cT(){return!(!om(iA)||!iA.supports.otherAppStateChange)}function cP(){return om(iA)&&!!iA.supports.plugins}function cR(e){return nY(this,void 0,void 0,function*(){if(om(iA),!e.func)throw Error("func is required in PluginMessage.");return i1("plugins.sendMessage",[new cF(e)],ii("v2","plugins.sendMessage"))})}function cO(e){s_(ii("v2","plugins.receiveMessage"),"plugins.receiveMessage",(...t)=>{e(function(e){var t;if(1===e.length&&(t=e[0])&&"object"==typeof t&&"string"==typeof t.func)return e[0];let[n,r,i]=e;return{func:"string"==typeof n?n:String(null!=n?n:""),args:r,correlationId:"string"==typeof i?i:void 0}}(t))},Object.values(rk.$c),()=>{if(!cP())throw Error("Receiving plugin messages is not supported in the current host.")})}class cF{constructor(e){this.message=e}serialize(){return this.message}}function cM(e){if(!e)throw Error("[remoteCamera.getCapableParticipants] Callback cannot be null");if(om(iA,rk.$c.sidePanel),!cx())throw rk._A;i3(ii("v1","remoteCamera.getCapableParticipants"),"remoteCamera.getCapableParticipants",e)}function c_(e,t){if(!e)throw Error("[remoteCamera.requestControl] Participant cannot be null");if(!t)throw Error("[remoteCamera.requestControl] Callback cannot be null");if(om(iA,rk.$c.sidePanel),!cx())throw rk._A;i3(ii("v1","remoteCamera.requestControl"),"remoteCamera.requestControl",[e],t)}function ck(e,t){if(!e)throw Error("[remoteCamera.sendControlCommand] ControlCommand cannot be null");if(!t)throw Error("[remoteCamera.sendControlCommand] Callback cannot be null");if(om(iA,rk.$c.sidePanel),!cx())throw rk._A;i3(ii("v1","remoteCamera.sendControlCommand"),"remoteCamera.sendControlCommand",[e],t)}function c$(e){if(!e)throw Error("[remoteCamera.terminateSession] Callback cannot be null");if(om(iA,rk.$c.sidePanel),!cx())throw rk._A;i3(ii("v1","remoteCamera.terminateSession"),"remoteCamera.terminateSession",e)}function cU(e){if(!e)throw Error("[remoteCamera.registerOnCapableParticipantsChangeHandler] Handler cannot be null");if(om(iA,rk.$c.sidePanel),!cx())throw rk._A;sO(ii("v1","remoteCamera.registerOnCapableParticipantsChangeHandler"),"remoteCamera.capableParticipantsChange",e)}function cN(e){if(!e)throw Error("[remoteCamera.registerOnErrorHandler] Handler cannot be null");if(om(iA,rk.$c.sidePanel),!cx())throw rk._A;sO(ii("v1","remoteCamera.registerOnErrorHandler"),"remoteCamera.handlerError",e)}function cD(e){if(!e)throw Error("[remoteCamera.registerOnDeviceStateChangeHandler] Handler cannot be null");if(om(iA,rk.$c.sidePanel),!cx())throw rk._A;sO(ii("v1","remoteCamera.registerOnDeviceStateChangeHandler"),"remoteCamera.deviceStateChange",e)}function cH(e){if(!e)throw Error("[remoteCamera.registerOnSessionStatusChangeHandler] Handler cannot be null");if(om(iA,rk.$c.sidePanel),!cx())throw rk._A;sO(ii("v1","remoteCamera.registerOnSessionStatusChangeHandler"),"remoteCamera.sessionStatusChange",e)}function cx(){return!(!om(iA)||!iA.supports.remoteCamera)}function cL(e,t,n,r){if(om(iA,rk.$c.content),!cV())throw rk._A;
1if(!e||0==e.length)throw Error("[appEntity.selectAppEntity] threadId name cannot be null or empty");if(!r)throw Error("[appEntity.selectAppEntity] Callback cannot be null");i3(ii("v1","appEntity.selectAppEntity"),"appEntity.selectAppEntity",[e,t,n],r)}function cV(){return!(!om(iA)||!iA.supports.appEntity)}function cW(e){return new Promise(t=>{if(om(iA),!cB())throw rk._A;if((iC.hostClientType===rk.WH.android||iC.hostClientType===rk.WH.teamsRoomsAndroid||iC.hostClientType===rk.WH.teamsPhones||iC.hostClientType===rk.WH.teamsDisplays)&&!ov("2.0.1"))throw Error(JSON.stringify({errorCode:r$.jK.OLD_PLATFORM}));t(iG(ii("v1","teams.fullTrust.joinedTeams.getUserJoinedTeams"),"getUserJoinedTeams",e))})}function cB(){return!(!om(iA)||!iA.supports.teams)&&!!iA.supports.teams.fullTrust&&!!iA.supports.teams.fullTrust.joinedTeams}function cj(e){return nY(this,void 0,void 0,function*(){if(om(iA),!cz())throw rk._A;return i0("getConfigSetting",[e],new ab,ii("v1","teams.fullTrust.getConfigSetting"))})}function cz(){return!(!om(iA)||!iA.supports.teams)&&!!iA.supports.teams.fullTrust}function cq(e,t){if(om(iA,rk.$c.content),!cG())throw rk._A;if(!e)throw Error("[teams.getTeamChannels] groupId cannot be null or empty");if(!t)throw Error("[teams.getTeamChannels] Callback cannot be null");i3(ii("v1","teams.getTeamChannels"),"teams.getTeamChannels",[e],t)}function cK(e,t){if(om(iA),!cG())throw rk._A;if(!e)throw Error("[teams.refreshSiteUrl] threadId cannot be null or empty");if(!t)throw Error("[teams.refreshSiteUrl] Callback cannot be null");i3(ii("v1","teams.refreshSiteUrl"),"teams.refreshSiteUrl",[e],t)}function cG(){return!(!om(iA)||!iA.supports.teams)}(W=eX||(eX={})).Reset="Reset",W.ZoomIn="ZoomIn",W.ZoomOut="ZoomOut",W.PanLeft="PanLeft",W.PanRight="PanRight",W.TiltUp="TiltUp",W.TiltDown="TiltDown",(B=e0||(e0={}))[B.CommandResetError=0]="CommandResetError",B[B.CommandZoomInError=1]="CommandZoomInError",B[B.CommandZoomOutError=2]="CommandZoomOutError",B[B.CommandPanLeftError=3]="CommandPanLeftError",B[B.CommandPanRightError=4]="CommandPanRightError",B[B.CommandTiltUpError=5]="CommandTiltUpError",B[B.CommandTiltDownError=6]="CommandTiltDownError",B[B.SendDataError=7]="SendDataError",(j=e1||(e1={}))[j.None=0]="None",j[j.ControlDenied=1]="ControlDenied",j[j.ControlNoResponse=2]="ControlNoResponse",j[j.ControlBusy=3]="ControlBusy",j[j.AckTimeout=4]="AckTimeout",j[j.ControlTerminated=5]="ControlTerminated",j[j.ControllerTerminated=6]="ControllerTerminated",j[j.DataChannelError=7]="DataChannelError",j[j.ControllerCancelled=8]="ControllerCancelled",j[j.ControlDisabled=9]="ControlDisabled",j[j.ControlTerminatedToAllowOtherController=10]="ControlTerminatedToAllowOtherController",(z=e2||(e2={}))[z.Regular=0]="Regular",z[z.Private=1]="Private",z[z.Shared=2]="Shared";class cY{static setTimeout(e,t){let n=performance.now(),r=rH();return cY.setTimeoutCallbacks[r]={callback:e,timeoutInMs:t,startedAtInMs:n},r}static clearTimeout(e){delete cY.setTimeoutCallbacks[e]}static setInterval(e,t){cY.setTimeout(function n(){e(),cY.setTimeout(n,t)},t)}static tick(){let e=performance.now(),t=[];for(let n in cY.setTimeoutCallbacks){let r=cY.setTimeoutCallbacks[n];e-r.startedAtInMs>=r.timeoutInMs&&t.push(n)}for(let e of t)cY.setTimeoutCallbacks[e].callback(),delete cY.setTimeoutCallbacks[e]}}cY.setTimeoutCallbacks={};class cJ{constructor(e,t){this.reportStatisticsResult=t,this.sampleCount=0,this.distributionBins=new Uint32Array(e)}processStarts(e,t,n,r){cY.tick(),this.suitableForThisSession(e,t,n,r)||this.reportAndResetSession(this.getStatistics(),e,r,t,n),this.start()}processEnds(){let 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}getStatistics(){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}start(){this.frameProcessingStartedAt=performance.now()}suitableForThisSession(e,t,n,r){return this.currentSession&&this.currentSession.effectId===e&&this.currentSession.effectParam
1===r&&this.currentSession.frameWidth===t&&this.currentSession.frameHeight===n}reportAndResetSession(e,t,n,r,i){e&&this.reportStatisticsResult(e),this.resetCurrentSession(this.getNextTimeout(t,this.currentSession),t,n,r,i),this.timeoutId&&cY.clearTimeout(this.timeoutId),this.timeoutId=cY.setTimeout((()=>this.reportAndResetSession(this.getStatistics(),t,n,r,i)).bind(this),this.currentSession.timeoutInMs)}resetCurrentSession(e,t,n,r,i){this.currentSession={startedAtInMs:performance.now(),timeoutInMs:e,effectId:t,effectParam:n,frameWidth:r,frameHeight:i},this.sampleCount=0,this.distributionBins.fill(0)}getNextTimeout(e,t){return t&&t.effectId===e?Math.min(cJ.maxSessionTimeoutInMs,2*t.timeoutInMs):cJ.initialSessionTimeoutInMs}}cJ.initialSessionTimeoutInMs=1e3,cJ.maxSessionTimeoutInMs=3e4;class cQ{constructor(e){this.reportPerformanceEvent=e,this.isFirstFrameProcessed=!1,this.frameProcessTimeLimit=100,this.frameProcessingStartedAt=0,this.frameProcessingTimeCost=0,this.processedFrameCount=0,this.performanceStatistics=new cJ(cQ.distributionBinSize,e=>this.reportPerformanceEvent(ii("v2","videoPerformanceMonitor.performanceDataGenerated"),"video.performance.performanceDataGenerated",[e]))}startMonitorSlowFrameProcessing(){cY.setInterval(()=>{if(0===this.processedFrameCount)return;let e=this.frameProcessingTimeCost/this.processedFrameCount;e>this.frameProcessTimeLimit&&this.reportPerformanceEvent(ii("v2","videoPerformanceMonitor.startMonitorSlowFrameProcessing"),"video.performance.frameProcessingSlow",[e]),this.frameProcessingTimeCost=0,this.processedFrameCount=0},cQ.calculateFPSInterval)}setFrameProcessTimeLimit(e){this.frameProcessTimeLimit=e}reportApplyingVideoEffect(e,t){var n,r;(null==(n=this.applyingEffect)?void 0:n.effectId)===e&&(null==(r=this.applyingEffect)?void 0:r.effectParam)===t||(this.applyingEffect={effectId:e,effectParam:t},this.appliedEffect=void 0)}reportVideoEffectChanged(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)}reportStartFrameProcessing(e,t){cY.tick(),this.appliedEffect&&(this.frameProcessingStartedAt=performance.now(),this.performanceStatistics.processStarts(this.appliedEffect.effectId,e,t,this.appliedEffect.effectParam))}reportFrameProcessed(){var e;this.appliedEffect&&(this.processedFrameCount++,this.frameProcessingTimeCost+=performance.now()-this.frameProcessingStartedAt,this.performanceStatistics.processEnds(),this.isFirstFrameProcessed||(this.isFirstFrameProcessed=!0,this.reportPerformanceEvent(ii("v2","videoPerformanceMonitor.reportFrameProcessed"),"video.performance.firstFrameProcessed",[Date.now(),this.appliedEffect.effectId,null==(e=this.appliedEffect)?void 0:e.effectParam])))}reportGettingTextureStream(e){this.gettingTextureStreamStartedAt=performance.now(),this.currentStreamId=e}reportTextureStreamAcquired(){if(void 0!==this.gettingTextureStreamStartedAt){let e=performance.now()-this.gettingTextureStreamStartedAt;this.reportPerformanceEvent(ii("v2","videoPerformanceMonitor.reportTextureStreamAcquired"),"video.performance.textureStreamAcquired",[this.currentStreamId,e])}}}cQ.distributionBinSize=1e3,cQ.calculateFPSInterval=1e3;let cZ=rK()?void 0:new cQ(i3);function cX(e){if(om(iA,rk.$c.sidePanel),!c3())throw rk._A;if(!e.videoFrameHandler||!e.videoBufferHandler)throw Error("Both videoFrameHandler and videoBufferHandler must be provided");if(sO(ii("v2","videoEffects.setFrameProcessTimeLimitHandler"),"video.setFrameProcessTimeLimit",e=>null==cZ?void 0:cZ.setFrameProcessTimeLimit(e.timeLimit),!1),c6())!function(e,t){if(om(iA,rk.$c.sidePanel),!c3()||!c6())throw rk._A;sO(ii("v2","videoEffects.startVideoExtensibilityVideoStreamHandler"),"video.startVideoExtensibilityVideoStream",t=>nY(this,void 0,void 0,function*(){let{streamId:n}=t,r=function(e,t){return n=>nY(this,void 0,void 0,function*(){let r=n.videoFrame;null==t||t.reportStartFrameProcessing(r.codedWidth,r.codedHeight);let i=yield e(n);return null==t||t.reportFrameProcessed(),i})}(e,cZ);yield c8(n,r,c2,cZ)}),!1),i3(ii("v2","videoEffects.mediaStream.registerForVideoFrame"),"video.mediaStream.registerForVideoFrame",[t])}(e.videoFrameHandler,e.config);else{if(!c5())throw rk._A;var t=e.videoBufferHandler,n=e.config;if(om(iA,rk.$c.sidePanel),!c3()||!c5())throw rk._A;sO(ii("v2","videoEffects.registerForVideoBufferHandler"),"video.newVideoFrame",e=>{if(e){let n=e.timestamp;null==cZ||cZ.reportStartFrameProcessing(e.width,e.height),t(function(e){if("videoFrameBuffer"in e)return e;{let{data:t}=e;return Object.assign(Object.assign({},nG(e,["data"])),{videoFrameBuffer:t})}}(e),()=>{null==cZ||cZ.reportFrameProcessed(),i3(ii("v2","videoEffects.notifyVideoFrameProcessed"),"video.videoFrameProcessed",[n])},c2)}},!1),i3(ii("v2","videoEffects.registerForVideoFrame"),"video.registerForVideoFrame",[n])}null==cZ||cZ.startMonitorSlowFrameProcessing()}function c0(e,t){if(om(iA,rk.$c.sidePanel),!c3())throw rk._A;i3(ii("v2","videoEffects.notifySelectedVideoEffectChanged"),"video.videoEffectChanged",[e,t])}function c1(e){if(om(iA,rk.$c.sidePanel),!c3())throw rk._A;sO(ii("v2","videoEffects.registerEffectParameterChangeHandler"),"video.effectParameterChange",ui(e,cZ),!1),i3(ii("v2","videoEffects.registerForVideoEffect"),"video.registerForVideoEffect")}function c2(e){i3(ii("v2","videoEffects.notifyError"),"video.notifyError",[e])}function c3(){return om(iA)&&!!iA.supports.video&&(!!iA.supports.video.mediaStream||!!iA.supports.video.sharedFrame)}function c6(){var e,t,n,r,i;return om(iA,rk.$c.sidePanel)&&!(!(null==(n=null==(t=rq().chrome)?void 0:t.webview)?void 0:n.getTextureStream)||!(null==(i=null==(r=rq().chrome)?void 0:r.webview)?void 0:i.registerTextureStream))&&!!(null==(e=iA.supports.video)?void 0:e.mediaStream)}function c5(){var e;return om(iA,rk.$c.sidePanel)&&!!(null==(e=iA.supports.video)?void 0:e.sharedFrame)}function c8(e,t,n,r){var i,o;return nY(this,void 0,void 0,function*(){let a=c9();rK()||null==(o=null==(i=window.chrome)?void 0:i.webview)||o.registerTextureStream(e,a),c7((yield c4(e,n,r)),new ue(n,t),a.writable)})}function c4(e,t,n){return nY(this,void 0,void 0,function*(){if(rK())throw rk._A;let r=rq().chrome;try{null==n||n.reportGettingTextureStream(e);let t=(yield r.webview.getTextureStream(e)).getVideoTracks();if(0===t.length)throw Error(`No video track in stream ${e}`);return null==n||n.reportTextureStreamAcquired(),t[0]}catch(n){throw t(`Failed to get video track from stream ${e}, error: ${n}`),Error(`Internal error: can't get video track from stream ${e}`)}})}function c9(){if(rK())throw rk._A;let e=window.MediaStreamTrackGenerator;if(!e)throw rk._A;return new e({kind:"video"})}
1function c7(e,t,n){new(0,rq().MediaStreamTrackProcessor)({track:e}).readable.pipeThrough(new TransformStream(t)).pipeTo(n)}(e3||(e3={})).NV12="NV12",(q=e6||(e6={})).EffectChanged="EffectChanged",q.EffectDisabled="EffectDisabled",(K=e5||(e5={})).InvalidEffectId="InvalidEffectId",K.InitializationFailure="InitializationFailure";class ue{constructor(e,t){this.notifyError=e,this.videoFrameHandler=t,this.transform=(e,t)=>nY(this,void 0,void 0,function*(){let n=e.timestamp;if(null!==n)try{let r=yield this.videoFrameHandler({videoFrame:e}),i=new VideoFrame(r,{timestamp:n});t.enqueue(i),e.close(),r.close()}catch(t){e.close(),this.notifyError(t)}else this.notifyError("timestamp of the original video frame is null")})}}class ut{constructor(e,t){if(this.headerBuffer=e,this.notifyError=t,this.ONE_TEXTURE_INPUT_ID=0x6f746931,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),Error(this.INVALID_HEADER_ERROR);if(this.headerDataView[0]!==this.ONE_TEXTURE_INPUT_ID)throw this.notifyError(this.UNSUPPORTED_LAYOUT_ERROR),Error(this.UNSUPPORTED_LAYOUT_ERROR)}get oneTextureLayoutId(){return this.headerDataView[0]}get version(){return this.headerDataView[1]}get frameRowOffset(){return this.headerDataView[2]}get frameFormat(){return this.headerDataView[3]}get frameWidth(){return this.headerDataView[4]}get frameHeight(){return this.headerDataView[5]}get multiStreamHeaderRowOffset(){return this.headerDataView[6]}get multiStreamCount(){return this.headerDataView[7]}}class un{constructor(e,t){this.metadataMap=new Map,this.AUDIO_INFERENCE_RESULT_STREAM_ID=0x31646961,this.ATTRIBUTE_ID_MAP_STREAM_ID=0x4d444941;let n=new Uint32Array(e);for(let r=0,i=0;r<t;r++){let t=n[i++],r=new Uint8Array(e,n[i++],n[i++]);this.metadataMap.set(t,r)}}get audioInferenceResult(){return this.metadataMap.get(this.AUDIO_INFERENCE_RESULT_STREAM_ID)}get attributes(){let e=this.metadataMap.get(this.ATTRIBUTE_ID_MAP_STREAM_ID);if(void 0===e)return;let t=new Map,n=new TextDecoder("utf-8"),r=0,i=e[0]+(e[++r]<<8)+(e[++r]<<16)+(e[++r]<<24);for(let o=0;o<i&&r<e.length-1;o++){let i=e[++r]+(e[++r]<<8)+(e[++r]<<16)+(e[++r]<<24),o=e.findIndex((e,t,n)=>0==e&&t>r),a=n.decode(e.slice(++r,o)),s=this.metadataMap.get(i);void 0!==s&&t.set(a,s),r=o+(4-(o-r)%4-1)}return t}}class ur{constructor(e,t){this.notifyError=e,this.videoFrameHandler=t,this.shouldDiscardAudioInferenceResult=!1,this.transform=(e,t)=>nY(this,void 0,void 0,function*(){let n=e.timestamp;if(null!==n)try{let{videoFrame:r,metadata:{audioInferenceResult:i,attributes:o}={}}=yield this.extractVideoFrameAndMetadata(e),a=yield this.videoFrameHandler({videoFrame:r,audioInferenceResult:i,attributes:o}),s=new VideoFrame(a,{timestamp:n});t.enqueue(s),r.close(),e.close(),a.close()}catch(t){e.close(),this.notifyError(t)}else this.notifyError("timestamp of the original video frame is null")}),this.extractVideoFrameAndMetadata=e=>nY(this,void 0,void 0,function*(){if(rK())throw rk._A;if("NV12"!==e.format)throw this.notifyError("Unsupported video frame pixel format"),Error("Unsupported video frame pixel format");let t={x:0,y:0,width:e.codedWidth,height:2},n=new ArrayBuffer(t.width*t.height*3/2);yield e.copyTo(n,{rect:t});let r=new ut(n,this.notifyError),i={x:0,y:r.multiStreamHeaderRowOffset,width:e.codedWidth,height:e.codedHeight-r.multiStreamHeaderRowOffset},o=new ArrayBuffer(i.width*i.height*3/2);yield e.copyTo(o,{rect:i});let a=new un(o,r.multiStreamCount);return{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,attributes:a.attributes}}}),sO(ii("v2","videoEffectsUtils.transformerWithMetadata.constructor"),"video.mediaStream.audioInferenceDiscardStatusChange",({discardAudioInferenceResult:e})=>{this.shouldDiscardAudioInferenceResult=e})}}function ui(e,t){return(n,r)=>{null==t||t.reportApplyingVideoEffect(n||"",r),e(n,r).then(()=>{null==t||t.reportVideoEffectChanged(n||"",r),i3(ii("v2","videoEffectsUtils.reportVideoEffectChanged"),"video.videoEffectReadiness",[!0,n,void 0,r])}).catch(e=>{let t=e in e5?e:e5.InitializationFailure;i3(ii("v2","videoEffectsUtils.effectFailure"),"video.videoEffectReadiness",[!1,n,t,r])})}}let uo=2e3,ua=rK()?void 0:new cQ(i3);function us(e){var t,n;
1if(!uf())throw rk._A;if(!e.videoFrameHandler||!e.videoBufferHandler)throw Error("Both videoFrameHandler and videoBufferHandler must be provided");if(om(iA,rk.$c.sidePanel)){if(sO(ii("v2","videoEffectsEX.registerSetFrameProcessTimeLimitHandler"),"video.setFrameProcessTimeLimit",e=>null==ua?void 0:ua.setFrameProcessTimeLimit(e),!1),null==(t=iA.supports.video)?void 0:t.mediaStream)sO(ii("v2","videoEffectsEX.registerStartVideoExtensibilityVideoStreamHandler"),"video.startVideoExtensibilityVideoStream",t=>nY(this,void 0,void 0,function*(){let{streamId:n,metadataInTexture:r}=t,i=ua?function(e,t){return n=>nY(this,void 0,void 0,function*(){let r=n.videoFrame;t.reportStartFrameProcessing(r.codedWidth,r.codedHeight);let i=ul(),o=yield e(n);return i(),t.reportFrameProcessed(),o})}(e.videoFrameHandler,ua):e.videoFrameHandler;r?yield function(e,t,n,r){var i,o;return nY(this,void 0,void 0,function*(){let a=c9();rK()||null==(o=null==(i=window.chrome)?void 0:i.webview)||o.registerTextureStream(e,a),c7((yield c4(e,n,r)),new ur(n,t),a.writable)})}(n,i,up,ua):yield c8(n,i,up,ua)}),!1),i3(ii("v2","videoEffectsEX.mediaStream.registerForVideoFrame"),"video.mediaStream.registerForVideoFrame",[e.config]);else{if(!(null==(n=iA.supports.video)?void 0:n.sharedFrame))throw rk._A;sO(ii("v2","videoEffectsEx.registerNewVideoFrameHandler"),"video.newVideoFrame",t=>{if(t){null==ua||ua.reportStartFrameProcessing(t.width,t.height);let n=ul(),r=t.timestamp;e.videoBufferHandler((t.videoFrameBuffer=t.videoFrameBuffer||t.data,delete t.data,t),()=>{n(),null==ua||ua.reportFrameProcessed(),i3(ii("v2","videoEffectsEx.notifyVideoFrameProcessed"),"video.videoFrameProcessed",[r])},up)}},!1),i3(ii("v2","videoEffectsEx.registerForVideoFrame"),"video.registerForVideoFrame",[e.config])}null==ua||ua.startMonitorSlowFrameProcessing()}}function ul(){let e=setTimeout(()=>{up("Frame not processed in 2000ms",e8.Warn)},uo);return function(){clearTimeout(e)}}function uc(e,t,n){if(om(iA,rk.$c.sidePanel),!uf())throw rk._A;i3(ii("v2","videoEffectsEx.notifySelectedVideoEffectChanged"),"video.videoEffectChanged",[e,t,n])}function uu(e){if(om(iA,rk.$c.sidePanel),!uf())throw rk._A;sO(ii("v2","videoEffectsEx.registerEffectParamterChangeHandler"),"video.effectParameterChange",ui(e,ua),!1),i3(ii("v2","videoEffectsEx.registerForVideoEffect"),"video.registerForVideoEffect")}function ud(e){if(om(iA,rk.$c.sidePanel),!c3())throw rk._A;i3(ii("v2","videoEffectsEx.updatePersonalizedEffects"),"video.personalizedEffectsChanged",[e])}function uf(){return om(iA),c3()}function up(e,t=e8.Warn){i3(ii("v2","videoEffectsEx.notifyError"),"video.notifyError",[e,t])}function ug(e){if(om(iA),!c3())throw rk._A;up(e,e8.Fatal)}(G=e8||(e8={})).Fatal="fatal",G.Warn="warn";class uh extends aA{validate(e){return"ConfigurableTab"===e.tabType}deserialize(e){return e}}class um{constructor(e){this.configurableTabInstance=e}serialize(){return this.configurableTabInstance}}class uv{constructor(e){this.hostEntityId=e}serialize(){return this.hostEntityId}}class uw extends aA{validate(e){return"ConfigurableTab"===e.tabType||"StaticTab"===e.tabType}deserialize(e){return e}}class uC{constructor(e){this.hostEntityTabInstance=e}serialize(){return this.hostEntityTabInstance}}class uy extends aA{validate(e){return e.allTabs&&e.allTabs.forEach(e=>{}),!0}deserialize(e){return e}}function uS(e,t){if(om(iA),!uT())throw Error(`Error code: ${r$.jK.NOT_SUPPORTED_ON_PLATFORM}, message: Not supported on platform`);if(uP(e.threadId),t&&0===t.length)throw Error(`Error code: ${r$.jK.INVALID_ARGUMENTS}, message: App types cannot be an empty array`);return i0("hostEntity.tab.addAndConfigure",[new uv(e),t],new uw,ii("v2","hostEntity.tab.addAndConfigure"))}function uA(e){if(om(iA),!uT())throw Error(`Error code: ${r$.jK.NOT_SUPPORTED_ON_PLATFORM}, message: Not supported on platform`);return uP(e.threadId),i0("hostEntity.tab.getAll",[new uv(e)],new uy,ii("v2","hostEntity.tab.getAll"))}function ub(e,t){if(om(iA),!uT())throw Error(`Error code: ${r$.jK.NOT_SUPPORTED_ON_PLATFORM}, message: Not supported on platform`);return uR(e),uP(t.threadId),i0("hostEntity.tab.reconfigure",[new um(e),new uv(t)],new uh,ii("v2","hostEntity.tab.reconfigure"))}
1function uE(e,t){if(om(iA),!uT())throw Error(`Error code: ${r$.jK.NOT_SUPPORTED_ON_PLATFORM}, message: Not supported on platform`);return uR(e),uP(t.threadId),i0("hostEntity.tab.rename",[new um(e),new uv(t)],new uh,ii("v2","hostEntity.tab.rename"))}function uI(e,t){if(om(iA),!uT())throw Error(`Error code: ${r$.jK.NOT_SUPPORTED_ON_PLATFORM}, message: Not supported on platform`);return uP(t.threadId),uR(e),i0("hostEntity.tab.remove",[new uC(e),new uv(t)],new ab,ii("v2","hostEntity.tab.remove"))}function uT(){var e;return!!(om(iA)&&uO()&&(null==(e=iA.supports.hostEntity)?void 0:e.tab))}function uP(e){if(!e||0==e.length)throw Error(`Error code: ${r$.jK.INVALID_ARGUMENTS}, message: ThreadId cannot be null or empty`)}function uR(e){if(!(null==e?void 0:e.internalTabInstanceId)||0===e.internalTabInstanceId.length)throw Error(`Error code: ${r$.jK.INVALID_ARGUMENTS}, message: TabId cannot be null or empty`)}function uO(){return!(!om(iA)||!iA.supports.hostEntity)}(Y=e4||(e4={})).edu="EDU",Y.baseTownhall="BASE_TOWNHALL",Y.streamingTownhall="STREAMING_TOWNHALL";function uF(e){return nY(this,void 0,void 0,function*(){uU();let{size:t}=null!=e?e:{};return i1("store.openFullStore",[uN(t)],ii("v2","store.openFullStore"))})}function uM(e){return nY(this,void 0,void 0,function*(){uU();let{size:t,appId:n}=e;if(!(n instanceof oS))throw Error("No App Id present, but AppId needed to open AppDetail store");return i1("store.openAppDetail",[uN(t),n],ii("v2","store.openAppDetail"))})}function u_(e){return nY(this,void 0,void 0,function*(){uU();let{size:t,appCapability:n,appMetaCapabilities:r,installationScope:i,filteredOutAppIds:o}=null!=e?e:{};return i1("store.openInContextStore",[uN(t),n,r,i,null==o?void 0:o.map(e=>e.toString())],ii("v2","store.openInContextStore"))})}function uk(e){return nY(this,void 0,void 0,function*(){uU();let{size:t,collectionId:n}=e;if(void 0===n)throw Error("No Collection Id present, but CollectionId needed to open a store specific to a collection");return i1("store.openSpecificStore",[uN(t),n],ii("v2","store.openSpecificStore"))})}function u$(){return om(iA)&&!!iA.supports.store}function uU(){if(om(iA,rk.$c.content,rk.$c.sidePanel,rk.$c.meetingStage),!u$())throw rk._A}function uN(e){if(void 0===e)return;let{width:t,height:n}=e;if(void 0!==t&&"number"==typeof t&&t<0||void 0!==n&&"number"==typeof n&&n<0)throw Error("Invalid store dialog size");return JSON.stringify(e)}let uD=ir("widgetHosting");function uH(){return om(iA)&&!!iA.supports.widgetHosting}function ux(e,t){return nY(this,void 0,void 0,function*(){return oh(),uD("Calling tool with widgetId and input: ",{widgetId:e,input:t}),i0("widgetHosting.callTool",[new uJ(e,t)],new uG,ii("v1","widgetHosting.callTool"),r$.pY)})}function uL(e,t){return nY(this,void 0,void 0,function*(){return oh(),uD("Sending follow-up message with widgetId and prompt: ",{widgetId:e,prompt:t.prompt}),i1("widgetHosting.sendFollowUpMessage",[new uQ(e,t)],ii("v1","widgetHosting.sendFollowUpMessage"))})}function uV(e,t){return nY(this,void 0,void 0,function*(){return oh(),uD("Requesting display mode with widgetId: ",{widgetId:e,mode:t.mode}),i1("widgetHosting.requestDisplayMode",[new uZ(e,t)],ii("v1","widgetHosting.requestDisplayMode"))})}function uW(e,t){return nY(this,void 0,void 0,function*(){return oh(),uD("Requesting modal with widgetId and options: ",{widgetId:e,options:t}),i0("widgetHosting.requestModal",[new u2(e,t)],new uY,ii("v1","widgetHosting.requestModal"),r$.pY)})}function uB(e,t){oh(),uD("Notifying intrinsic height with widgetId: ",{widgetId:e,height:t}),i1("widgetHosting.notifyIntrinsicHeight",[new u1(e,t)],ii("v1","widgetHosting.notifyIntrinsicHeight"))}function uj(e,t,n){oh(),uD("Content size changed with widgetId: ",{widgetId:e,width:t,height:n}),i1("widgetHosting.contentSizeChanged",[new u3(e,t,n)],ii("v1","widgetHosting.contentSizeChanged"))}function uz(e,t){return nY(this,void 0,void 0,function*(){return oh(),uD("Setting widget state with widgetId: ",{widgetId:e,state:t}),i1("widgetHosting.setWidgetState",[new u0(e,t)],ii("v1","widgetHosting.setWidgetState"))})}function uq(e,t){oh(),uD("Opening external URL with widgetId: ",{widgetId:e,href:t.href}),i1("widgetHosting.openExternal",[new uX(e,t)],ii("v1","widgetHosting.openExternal"))}function uK(e){s_(ii("v1","widgetHosting.registerModalCloseHandler"),"widgetHosting.closeWidgetModal",e,[],()=>{if(!uH())throw Error("Widget Hosting is not supported on this platform")})}class uG extends aA{validate(e){return null!==e&&"object"==typeof e}deserialize(e){return e}}class uY extends aA{validate(e){return null!==e&&"object"==typeof e}deserialize(e){return e}}class uJ{constructor(e,t){this.widgetId=e,this.toolInput=t}serialize(){return{widgetId:this.widgetId,name:this.toolInput.name,arguments:this.toolInput.arguments}}}class uQ{constructor(e,t){this.widgetId=e,this.args=t}serialize(){return{widgetId:this.widgetId,prompt:this.args.prompt}}}class uZ{constructor(e,t){this.widgetId=e,this.args=t}serialize(){return{widgetId:this.widgetId,mode:this.args.mode}}}class uX{constructor(e,t){this.widgetId=e,this.payload=t}serialize(){return{widgetId:this.widgetId,href:this.payload.href}}}class u0{constructor(e,t){this.widgetId=e,this.state=t}serialize(){return{widgetId:this.widgetId,state:this.state}}}class u1{constructor(e,t){this.widgetId=e,this.height=t}serialize(){return{widgetId:this.widgetId,height:this.height}}}class u2{constructor(e,t){this.widgetId=e,this.options=t}serialize(){return{widgetId:this.widgetId,id:this.options.id,title:this.options.title,content:this.options.content,width:this.options.width,height:this.options.height}}}class u3{constructor(e,t,n){this.widgetId=e,this.width=t,this.height=n}serialize(){return{widgetId:this.widgetId,width:this.width,height:this.height}}}function u6(e){let t=!e||e.length<=0,n=null==e?void 0:e.indexOf("@"),r=null==e?void 0:e.indexOf(".",n);if(t||-1===n||-1===r)throw Error("Input email address does not have the correct format.")}class u5{constructor(e){this.val=e,u6(e)}toString(){return this.val}}function u8(){return iA.hostVersionsInfo?iA.hostVersionsInfo.adaptiveCardSchemaVersion:void 0}class u4{postMessage(e,t){om(iA),i3(ii("v1","appWindow.childAppWindow.postMessage"),"messageForChild",[e],t||rV())}addEventListener(e,t){om(iA),"message"===e&&sO(ii("v1","appWindow.childAppWindow.addEventListener"),"messageForParent",t)}}class u9{static get Instance(){return this._instance||(this._instance=new this)}postMessage(e,t){om(iA,rk.$c.task),i3(ii("v1","appWindow.parentAppWindow.postMessage"),"messageForParent",[e],t||rV())}addEventListener(e,t){om(iA,rk.$c.task),"message"===e&&sO(ii("v1","appWindow.parentAppWindow.addEventListener"),"messageForChild",t)}}
1function u7(){if(!iC.printCapabilityEnabled){if(om(iA),!da())throw rk._A;iC.printCapabilityEnabled=!0,document.addEventListener("keydown",e=>{(e.ctrlKey||e.metaKey)&&80===e.keyCode&&(de(),e.cancelBubble=!0,e.preventDefault(),e.stopImmediatePropagation())})}}function de(){rq().print()}function dt(e){dn(ii("v2","teamsAPIs_registerOnLoadHandler"),e,()=>{if(!oA(e)&&!da())throw rk._A})}function dn(e,t,n){oA(t)||om(iA),!oA(t)&&n&&n(),sT.loadHandler=t,oA(t)||i3(e,"registerHandler",["load"])}function dr(e){di(ii("v2","teamsAPIs_registerBeforeUnloadHandler"),e,()=>{if(!oA(e)&&!da())throw rk._A})}function di(e,t,n){oA(t)||om(iA),!oA(t)&&n&&n(),sT.beforeUnloadHandler=t,oA(t)||i3(e,"registerHandler",["beforeUnload"])}function da(){return!(!om(iA)||!iA.supports.teamsCore)}function ds(e,t){aH(ii("v1","initialize"),t).then(()=>{e&&e()})}function dl(){u7()}function dc(){de()}function du(e){oh(),i3(ii("v1","getContext"),"getContext",t=>{t.frameContext||(t.frameContext=iC.frameContext),e(t)})}function dd(e){aj(ii("v1","registerOnThemeChangeHandlerHelper"),e)}function df(e){s_(ii("v1","registerFullScreenHandler"),"fullScreenChange",e,[])}function dp(e){s_(ii("v1","registerAppButtonClickHandler"),"appButtonClick",e,[rk.$c.content])}function dg(e){s_(ii("v1","registerAppButtonHoverEnterHandler"),"appButtonHoverEnter",e,[rk.$c.content])}function dh(e){s_(ii("v1","registerAppButtonHoverLeaveHandler"),"appButtonHoverLeave",e,[rk.$c.content])}function dm(e){aX(ii("v1","registerBackButtonHandler"),e)}function dv(e){dn(ii("v1","registerOnLoadHandler"),e)}function dw(e){di(ii("v1","registerBeforeUnloadHandler"),e)}function dC(e){s_(ii("v1","registerFocusEnterHandler"),"focusEnter",e,[])}function dy(e){s_(ii("v1","registerChangeSettingsHandler"),"changeSettings",e,[rk.$c.content])}function dS(e,t){om(iA),sh(ii("v1","getTabInstances"),t).then(t=>{e(t)})}function dA(e,t){om(iA),sm(ii("v1","getMruTabInstances"),t).then(t=>{e(t)})}function db(e){sv(ii("v1","shareDeepLink"),{subPageId:e.subEntityId,subPageLabel:e.subEntityLabel,subPageWebUrl:e.subEntityWebUrl})}function dE(e,t){om(iA,rk.$c.content,rk.$c.sidePanel,rk.$c.settings,rk.$c.task,rk.$c.stage,rk.$c.meetingStage);let n=null!=t?t:rV();az(ii("v1","executeDeepLink"),e).then(()=>{n(!0)}).catch(e=>{n(!1,e.message)})}function dI(e){sw(ii("v1","setFrameContext"),e)}function dT(e,t,n){aH(ii("v1","initializeWithFrameContext"),n).then(()=>t&&t()),sw(ii("v1","setFrameContext"),e)}function dP(e){var t=ii("v1","navigation.returnFocus");if(om(iA),!su())throw rk._A;i3(t,"returnFocus",[e])}function dR(e,t){om(iA);let n=null!=t?t:rV();sg(ii("v1","navigation.navigateToTab"),e).then(()=>{n(!0)}).catch(e=>{n(!1,e.message)})}function dO(e,t){om(iA,rk.$c.content,rk.$c.sidePanel,rk.$c.settings,rk.$c.remove,rk.$c.task,rk.$c.stage,rk.$c.meetingStage);let n=null!=t?t:rV();sf(ii("v1","navigation.navigateCrossDomain"),e).then(()=>{n(!0)}).catch(e=>{n(!1,e.message)})}function dF(e){om(iA);let t=null!=e?e:rV();sp(ii("v1","navigation.navigateBack")).then(()=>{t(!0)}).catch(e=>{t(!1,e.message)})}function dM(){return!(!om(iA,rk.$c.meetingStage,rk.$c.sidePanel,rk.$c.content)||!iA.supports.interactive)}(J=e9||(e9={})).guest="Guest",J.attendee="Attendee",J.presenter="Presenter",J.organizer="Organizer",(Q=e7||(e7={})).added="Added",Q.alreadyExists="AlreadyExists",Q.conflict="Conflict",Q.notFound="NotFound";class d_{getFluidTenantInfo(){return dk(),new Promise(e=>{e(iQ(ii("v2","interactive.getFluidTenantInfo"),"interactive.getFluidTenantInfo"))})}getFluidToken(e){return dk(),new Promise(t=>{t(iQ(ii("v2","interactive.getFluidToken"),"interactive.getFluidToken",e))})}getFluidContainerId(){return dk(),new Promise(e=>{e(iQ(ii("v2","interactive.getFluidContainerId"),"interactive.getFluidContainerId"))})}setFluidContainerId(e){return dk(),new Promise(t=>{t(iQ(ii("v2","interactive.setFluidContainerId"),"interactive.setFluidContainerId",e))})}getNtpTime(){return dk(),new Promise(e=>{e(iQ(ii("v2","interactive.getNtpTime"),"interactive.getNtpTime"))})}registerClientId(e){return dk(),new Promise(t=>{t(iQ(ii("v2","interactive.registerClientId"),"interactive.registerClientId",e))})}getClientRoles(e){return dk(),new Promise(t=>{t(iQ(ii("v2","interactive.getClientRoles"),"interactive.getClientRoles",e))})}getClientInfo(e){return dk(),new Promise(t=>{t(iQ(ii("v2","interactive.getClientInfo"),"interactive.getClientInfo",e))})}static create(){return dk(),new d_}}function dk(){if(!dM())throw Error("LiveShareHost Not supported")}function d$(e){p=e}function dU(e){let t=void 0!==e,n=t?e:p;if(!n)throw Error("No parameters are provided for authentication");return om(iA,rk.$c.content,rk.$c.sidePanel,rk.$c.settings,rk.$c.remove,rk.$c.task,rk.$c.stage,rk.$c.meetingStage),(function(e,t){return nY(this,void 0,void 0,function*(){let n=function(e){let t=document.createElement("a");return t.href=e,new URL(t.href)}(t.url);return rY(n),iZ(e,"authentication.authenticate",[n.href,t.width,t.height,t.isExternal]).then(([e,t])=>
1{if(e)return t;throw Error(t)})})})(n.successCallback||n.failureCallback?ii("v1","authentication.authenticate"):ii("v2","authentication.authenticate"),n).then(e=>{try{return n&&n.successCallback?(n.successCallback(e),""):e}finally{t||(p=void 0)}}).catch(e=>{try{if(n&&n.failureCallback)return n.failureCallback(e.message),"";throw e}finally{t||(p=void 0)}})}function dN(e){var t;return oh(),(t=e&&(e.successCallback||e.failureCallback)?ii("v1","authentication.getAuthToken"):ii("v2","authentication.getAuthToken"),new Promise(n=>{n(iZ(t,"authentication.getAuthToken",[null==e?void 0:e.resources,null==e?void 0:e.claims,null==e?void 0:e.silent,null==e?void 0:e.tenantId]))}).then(([e,t])=>{if(e)return t;throw Error(t)})).then(t=>e&&e.successCallback?(e.successCallback(t),""):t).catch(t=>{if(e&&e.failureCallback)return e.failureCallback(t.message),"";throw t})}function dD(e){var t;return oh(),(t=e&&(e.successCallback||e.failureCallback)?ii("v1","authentication.getUser"):ii("v2","authentication.getUser"),new Promise(e=>{e(iZ(t,"authentication.getUser"))}).then(([e,t])=>{if(e)return t;throw t})).then(t=>e&&e.successCallback?(e.successCallback(t),null):t).catch(t=>{let n=`Error returned, code = ${t.errorCode}, message = ${t.message}`;if(e&&e.failureCallback)return e.failureCallback(n),null;throw Error(n)})}function dH(e,t){om(iA,rk.$c.authentication),i3(ii(t?"v1":"v2","authentication.notifySuccess"),"authentication.authenticate.success",[e]),od(iq.parentWindow,()=>setTimeout(()=>iq.currentWindow.close(),200))}function dx(e,t){om(iA,rk.$c.authentication),i3(ii(t?"v1":"v2","authentication.notifyFailure"),"authentication.authenticate.failure",[e]),od(iq.parentWindow,()=>setTimeout(()=>iq.currentWindow.close(),200))}function dL(){return om(iA)&&!!iA.supports.appPerformanceMetrics}function dV(e){om(iA),sO(ii("v2","appPerformanceMetrics.memoryUsageHeartbeat"),"appPerformanceMetrics.memoryUsageHeartbeat",e)}(Z=te||(te={})).Public="public",Z.EUDB="eudb",Z.Other="other";let dW="users";function dB(e,t,n){if(0===e.length)throw Error("Must have at least one user when creating a chat deep link");let r=`${dW}=`+e.map(e=>encodeURIComponent(e)).join(","),i=void 0===t?"":`&topicName=${encodeURIComponent(t)}`,o=void 0===n?"":`&message=${encodeURIComponent(n)}`;return`${im}://${iv}/l/chat/0/0?${r}${i}${o}`}function dj(e){return new Promise(t=>{if(om(iA,rk.$c.content,rk.$c.sidePanel,rk.$c.settings,rk.$c.task,rk.$c.stage,rk.$c.meetingStage),!dz())throw Error("Not supported");let n=ii("v1","appInstallDialog.openAppInstallDialog");iA.isLegacyTeams?t(iY(n,"executeDeepLink",function(e){if(!e)throw Error("App ID must be set when creating an app install dialog deep link");return`${im}://${iv}/l/app/${encodeURIComponent(e)}`}(e.appId))):(i3(n,"appInstallDialog.openAppInstallDialog",[e]),t())})}function dz(){return!(!om(iA)||!iA.supports.appInstallDialog)}let dq=ir("media");(X=tt||(tt={})).Base64="base64",X.ID="id";class dK{}function dG(e){if(!e)throw Error("[captureImage] Callback cannot be null");return(om(iA,rk.$c.content,rk.$c.task),iC.isFramelessWindow)?ov("1.7.0")?void i3(ii("v1","media.captureImage"),"captureImage",e):void e({errorCode:r$.jK.OLD_PLATFORM},[]):void e({errorCode:r$.jK.NOT_SUPPORTED_ON_PLATFORM},[])}function dY(){if(om(iA,rk.$c.content,rk.$c.task),!dQ())throw rk._A;let e=r$.bK.Media;return new Promise(t=>{t(iQ(ii("v1","media.hasPermission"),"permissions.has",e))})}function dJ(){if(om(iA,rk.$c.content,rk.$c.task),!dQ())throw rk._A;let e=r$.bK.Media;return new Promise(t=>{t(iQ(ii("v1","media.requestPermission"),"permissions.request",e))})}function dQ(){return!(!om(iA)||!iA.supports.permissions)}class dZ extends dK{constructor(e){super(),e&&(this.content=e.content,this.format=e.format,this.mimeType=e.mimeType,this.name=e.name,this.preview=e.preview,this.size=e.size)}getMedia(e){var t,n,r;if(!e)throw Error("[get Media] Callback cannot be null");return(om(iA,rk.$c.content,rk.$c.task),ov(ip))?(t=this.mimeType,n=this.format,r=this.content,null==t||null==n||n!=tt.ID||null==r)?void e({errorCode:r$.jK.INVALID_ARGUMENTS},new Blob):void(ov("2.0.0")?this.getMediaViaCallback(e):this.getMediaViaHandler(e)):void e({errorCode:r$.jK.OLD_PLATFORM},new Blob)}getMediaViaCallback(e){let t={mediaMimeType:this.mimeType,assembleAttachment:[]},n=[this.content];i3(ii("v1","media.getMedia"),"getMedia",n,function(n){if(e)if(n&&n.error)e(n.error,new Blob);else if(n&&n.mediaChunk)if(n.mediaChunk.chunkSequence<=0){let r=d6(t.assembleAttachment,t.mediaMimeType);e(n.error,null!=r?r:new Blob)}else{let e=d5(n.mediaChunk,t.mediaMimeType);e?t.assembleAttachment.push(e):dq(`Received a null assemble attachment for when decoding chunk sequence ${n.mediaChunk.chunkSequence}; not including the chunk in the assembled file.`)}else e({errorCode:r$.jK.INTERNAL_ERROR,message:"data received is null"},new Blob)})}getMediaViaHandler(e){let t=rH(),n={mediaMimeType:this.mimeType,assembleAttachment:[]},r=[t,this.content];this.content&&!oA(e)&&i3(ii("v1","media.getMedia"),"getMedia",r),sO(ii("v1","media.registerGetMediaRequestHandler"),"getMedia"+t,function(r){if(e){let i=JSON.parse(r);if(i.error)e(i.error,new Blob),sF("getMedia"+t);else if(i.mediaChunk)if(i.mediaChunk.chunkSequence<=0){let r=d6(n.assembleAttachment,n.mediaMimeType);e(i.error,null!=r?r:new Blob),sF("getMedia"+t)}else{let e=d5(i.mediaChunk,n.mediaMimeType);e&&n.assembleAttachment.push(e)}else e({errorCode:r$.jK.INTERNAL_ERROR,message:"data received is null"},new Blob),sF("getMedia"+t)}})}}class dX{constructor(e){this.controllerCallback=e}notifyEventToHost(e,t){om(iA,rk.$c.content,rk.$c.task);try{ow(iu)}catch(e){return void(t&&t(e))}let n={mediaType:this.getMediaType(),mediaControllerEvent:e};i3(ii("v1","media.controller"),"media.controller",[n],e=>{t&&t(e)})}stop(e){this.notifyEventToHost(tn.StopRecording,e)}}class d0 extends dX{getMediaType(){return to.Video}notifyEventToApp(e){this.controllerCallback&&e===tn.StartRecording&&this.controllerCallback.onRecordingStarted&&this.controllerCallback.onRecordingStarted()}}function d1(e,t){var n,r,i,o,a,s;if(!t)throw Error("[select Media] Callback cannot be null");if(om(iA,rk.$c.content,rk.$c.task),!ov(ip))return void t({errorCode:r$.jK.OLD_PLATFORM},[]);try{!(r=n=e)||r.mediaType!=to.VideoAndImage&&!r.videoAndImageProps?!(i=n)||i.mediaType!=to.Video||!i.videoProps||i.videoProps.isFullScreenMode?(o=n,(null==o?void 0:o.mediaType)!=to.Image||!(null==(a=null==o?void 0:o.imageProps)?void 0:a.imageOutputFormats)||ow("2.0.4")):ow(iu):ow("2.0.2")}catch(e){return void t(e,[])}if(null==(s=e)||s.maxMediaCount>10)return void t({errorCode:r$.jK.INVALID_ARGUMENTS},[]);let l=[e];i3(ii("v1","media.selectMedia"),"selectMedia",l,(n,r,i)=>{var o,a,s;if(i){return void(!((s=e).mediaType!=to.Video||!s.videoProps||!s.videoProps.videoController)&&(null==(a=null==(o=null==e?void 0:e.videoProps)?void 0:o.videoController)||a.notifyEventToApp(i)))}if(!r)return void t(n,[]);let l=[];for(let e of r)l.push(new dZ(e));t(n,l)})}function d2(e,t){var n;if(!t)throw Error("[view images] Callback cannot be null");if(om(iA,rk.$c.content,rk.$c.task),!ov(ip))return void t({errorCode:r$.jK.OLD_PLATFORM});if(null==(n=e)||n.length<=0||n.length>10)return void t({errorCode:r$.jK.INVALID_ARGUMENTS});let r=[e];i3(ii("v1","media.viewImages"),"viewImages",r,t)}function d3(e,t){if(!e)throw Error("[media.scanBarCode] Callback cannot be null");return(om(iA,rk.$c.content,rk.$c.task),iC.hostClientType===rk.WH.desktop||iC.hostClientType===rk.WH.web||iC.hostClientType===rk.WH.rigel||iC.hostClientType===rk.WH.teamsRoomsWindows||iC.hostClientType===rk.WH.teamsRoomsAndroid||iC.hostClientType===rk.WH.teamsPhones||iC.hostClientType===rk.WH.teamsDisplays)?void e({errorCode:r$.jK.NOT_SUPPORTED_ON_PLATFORM},""):ov("1.9.0")?d8(t)?void i3(ii("v1","media.scanBarCode"),"media.scanBarCode",[t],e):void e({errorCode:r$.jK.INVALID_ARGUMENTS},""):void e({errorCode:r$.jK.OLD_PLATFORM},"")}function d6(e,t){if(null==e||null==t||e.length<=0)return null;let n=null,r=1;return e.sort((e,t)=>
1e.sequence>t.sequence?1:-1),e.forEach(e=>{e.sequence==r&&(n=n?new Blob([n,e.file],{type:t}):new Blob([e.file],{type:t}),r++)}),n}function d5(e,t){if(null==e||null==t)return null;let n=atob(e.chunk),r=Array(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);let i=new Blob([new Uint8Array(r)],{type:t});return{sequence:e.chunkSequence,file:i}}function d8(e){return!e||!(null===e.timeOutIntervalInSec||null!=e.timeOutIntervalInSec&&e.timeOutIntervalInSec<=0||null!=e.timeOutIntervalInSec&&e.timeOutIntervalInSec>60)}function d4(e){return new Promise(t=>{if(om(iA,rk.$c.content,rk.$c.task),!fe())throw rk._A;if(!d8(e))throw{errorCode:r$.jK.INVALID_ARGUMENTS};t(iQ(ii("v2","barCode.scanBarCode"),"media.scanBarCode",e))})}function d9(){if(om(iA,rk.$c.content,rk.$c.task),!fe())throw rk._A;let e=r$.bK.Media;return new Promise(t=>{t(iQ(ii("v2","barCode.hasPermission"),"permissions.has",e))})}function d7(){if(om(iA,rk.$c.content,rk.$c.task),!fe())throw rk._A;let e=r$.bK.Media;return new Promise(t=>{t(iQ(ii("v2","barCode.requestPermission"),"permissions.request",e))})}function fe(){return!!(om(iA)&&iA.supports.barCode&&iA.supports.permissions)}function ft(e){return fn(ii("v2","chat.openChat"),e)}function fn(e,t){return new Promise(n=>{if(om(iA,rk.$c.content,rk.$c.task),!fi())throw rk._A;n(iA.isLegacyTeams?iY(e,"executeDeepLink",dB([t.user],void 0,t.message)):iY(e,"chat.openChat",{members:[t.user],message:t.message}))})}function fr(e){let t=ii("v2","chat.openGroupChat");return new Promise(n=>{if(e.users.length<1)throw Error("OpenGroupChat Failed: No users specified");if(1===e.users.length)n(fn(t,{user:e.users[0],message:e.message}));else{if(om(iA,rk.$c.content,rk.$c.task),!fi())throw rk._A;n(iA.isLegacyTeams?iY(t,"executeDeepLink",dB(e.users,e.topic,e.message)):iY(t,"chat.openChat",{members:e.users,message:e.message,topic:e.topic}))}})}function fi(){return!(!om(iA)||!iA.supports.chat)}function fo(e){return nY(this,void 0,void 0,function*(){if(om(iA,rk.$c.content,rk.$c.meetingStage,rk.$c.task,rk.$c.settings,rk.$c.stage,rk.$c.sidePanel),!fs())throw rk._A;if(!e.type||!Object.values(r$.Bb).includes(e.type))throw Error(`Blob type ${e.type} is not supported. Supported blob types are ${Object.values(r$.Bb)}`);let t=yield new Promise((t,n)=>{0===e.size&&n(Error("Blob cannot be empty."));let r=new FileReader;r.onloadend=()=>{r.result?t(r.result.toString().split(",")[1]):n(Error("Failed to read the blob"))},r.onerror=()=>{n(r.error)},r.readAsDataURL(e)}),n={mimeType:e.type,content:t};
1return iQ(ii("v2","clipboard.write"),"clipboard.writeToClipboard",n)})}function fa(){return nY(this,void 0,void 0,function*(){om(iA,rk.$c.content,rk.$c.meetingStage,rk.$c.task,rk.$c.settings,rk.$c.stage,rk.$c.sidePanel);let e=ii("v2","clipboard.read");if(!fs())throw rk._A;let t=yield iQ(e,"clipboard.readFromClipboard");if("string"==typeof t){var n,r;let e=JSON.parse(t);return n=e.mimeType,r=e.content,new Promise((e,t)=>{if(n||t("MimeType cannot be null or empty."),r||t("Base64 string cannot be null or empty."),n.startsWith("image/")){let t=atob(r),i=new Uint8Array(t.length);for(let e=0;e<t.length;e++)i[e]=t.charCodeAt(e);e(new Blob([i],{type:n}))}e(new Blob([ra.from(r,"base64").toString()],{type:n}))})}return t})}function fs(){return iC.isFramelessWindow?!(!om(iA)||!iA.supports.clipboard):!!(om(iA)&&navigator&&navigator.clipboard&&iA.supports.clipboard)}(ee=tn||(tn={}))[ee.StartRecording=1]="StartRecording",ee[ee.StopRecording=2]="StopRecording",(et=tr||(tr={}))[et.Photo=1]="Photo",et[et.Document=2]="Document",et[et.Whiteboard=3]="Whiteboard",et[et.BusinessCard=4]="BusinessCard",(en=ti||(ti={}))[en.Camera=1]="Camera",en[en.Gallery=2]="Gallery",(er=to||(to={}))[er.Image=1]="Image",er[er.Video=2]="Video",er[er.VideoAndImage=3]="VideoAndImage",er[er.Audio=4]="Audio",(ei=ta||(ta={}))[ei.ID=1]="ID",ei[ei.URL=2]="URL",(eo=ts||(ts={}))[eo.IMAGE=1]="IMAGE",eo[eo.PDF=2]="PDF";let fl={validate:e=>Array.isArray(e)||"object"==typeof e,deserialize:e=>e};function fc(){var e;return null!=(e=om(iA)&&(iA.isNAAChannelRecommended||!!(om(iA)&&fp()&&iA.isLegacyTeams&&iA.supports.nestedAppAuth)))&&e}function fu(){return om(iA),iq.parentOrigin}function fd(){var e;return null!=(e=om(iA)&&iA.canParentManageNAATrustedOrigins)&&e}function ff(){var e;return null!=(e=om(iA)&&(iA.isDeeplyNestedAuthSupported||!!(om(iA)&&fp()&&iA.isLegacyTeams&&ov("2.1.2"))))&&e}function fp(){return iC.hostClientType===rk.WH.android||iC.hostClientType===rk.WH.ios||iC.hostClientType===rk.WH.ipados||iC.hostClientType===rk.WH.visionOS}function fg(e){return nY(this,void 0,void 0,function*(){if(!fd())throw rk._A;let t=e.map(fv);return fm(tl.ADD,t)})}function fh(e){return nY(this,void 0,void 0,function*(){if(!fd())throw rk._A;let t=e.map(fv);return fm(tl.DELETE,t)})}function fm(e,t){return nY(this,void 0,void 0,function*(){if(window.parent!==window.top)throw Error("This API is only available in the top-level parent.");if(!Array.isArray(t)||0===t.length)throw Error(`The '${t}' parameter is required and must be a non-empty array.`);return i0("nestedAppAuth.manageNAATrustedOrigins",[new fw(e,t)],fl,ii("v2","nestedAppAuth.manageNAATrustedOrigins"))})}function fv(e){try{return new URL(e).origin.toLowerCase()}catch(t){throw Error(`Invalid origin provided: ${e}`)}}(ea=tl||(tl={})).ADD="ADD",ea.DELETE="DELETE";class fw{constructor(e,t){this.action=e,this.appOrigins=t}serialize(){return{action:this.action,appOrigins:this.appOrigins}}}function fC(){if(om(iA,rk.$c.content,rk.$c.task),!fS())throw rk._A;return iQ(ii("v2","geoLocation.map.chooseLocation"),"location.getLocation",{allowChooseLocation:!0,showMap:!0})}function fy(e){if(om(iA,rk.$c.content,rk.$c.task),!fS())throw rk._A;if(!e)throw{errorCode:r$.jK.INVALID_ARGUMENTS};return iQ(ii("v2","geoLocation.showLocation"),"location.showLocation",e)}function fS(){return!!(om(iA)&&iA.supports.geoLocation&&iA.supports.geoLocation.map&&iA.supports.permissions)}function fA(){if(om(iA,rk.$c.content,rk.$c.task),!fI())throw rk._A;return iQ(ii("v2","geoLocation.getCurrentLocation"),"location.getLocation",{allowChooseLocation:!1,showMap:!1})}function fb(){if(om(iA,rk.$c.content,rk.$c.task),!fI())throw rk._A;let e=r$.bK.GeoLocation;return new Promise(t=>{t(iQ(ii("v2","geoLocation.hasPermission"),"permissions.has",e))})}function fE(){if(om(iA,rk.$c.content,rk.$c.task),!fI())throw rk._A;let e=r$.bK.GeoLocation;return new Promise(t=>{t(iQ(ii("v2","geoLocation.requestPermission"),"permissions.request",e))})}function fI(){return!!(om(iA)&&iA.supports.geoLocation&&iA.supports.permissions)}function fT(e){if(om(iA,rk.$c.content),!fP())throw rk._A;if(!e||!rz(e))throw{errorCode:r$.jK.INVALID_ARGUMENTS,message:"Invalid Url: Only https URL is allowed"};return iQ(ii("v2","secondaryBrowser.openUrl"),"secondaryBrowser.open",e.toString())}function fP(){return!(!om(iA)||!iA.supports.secondaryBrowser)}
1function fR(e,t){if(!t)throw Error("[location.getLocation] Callback cannot be null");if(om(iA,rk.$c.content,rk.$c.task),!ov(id))throw{errorCode:r$.jK.OLD_PLATFORM};if(!e)throw{errorCode:r$.jK.INVALID_ARGUMENTS};if(!fF())throw rk._A;i3(ii("v1","location.getLocation"),"location.getLocation",[e],t)}function fO(e,t){if(!t)throw Error("[location.showLocation] Callback cannot be null");if(om(iA,rk.$c.content,rk.$c.task),!ov(id))throw{errorCode:r$.jK.OLD_PLATFORM};if(!e)throw{errorCode:r$.jK.INVALID_ARGUMENTS};if(!fF())throw rk._A;i3(ii("v1","location.showLocation"),"location.showLocation",[e],t)}function fF(){return!(!om(iA)||!iA.supports.location)}function fM(e){om(iA,rk.$c.sidePanel),e.contentUrl&&new URL(e.contentUrl),i3(ii("v1","meeting.appShareButton.setOptions"),"meeting.appShareButton.setOptions",[e])}function f_(e){if(!e)throw Error("[get incoming client audio state] Callback cannot be null");om(iA,rk.$c.sidePanel,rk.$c.meetingStage),i3(ii("v1","meeting.getIncomingClientAudioState"),"getIncomingClientAudioState",e)}function fk(e){if(!e)throw Error("[toggle incoming client audio] Callback cannot be null");om(iA,rk.$c.sidePanel,rk.$c.meetingStage),i3(ii("v1","meeting.toggleIncomingClientAudio"),"toggleIncomingClientAudio",e)}function f$(e){if(!e)throw Error("[get meeting details] Callback cannot be null");om(iA,rk.$c.sidePanel,rk.$c.meetingStage,rk.$c.settings,rk.$c.content),i3(ii("v1","meeting.getMeetingDetails"),"meeting.getMeetingDetails",e)}function fU(){var e,t,n;return nY(this,void 0,void 0,function*(){let r;om(iA,rk.$c.sidePanel,rk.$c.meetingStage,rk.$c.settings,rk.$c.content);try{r=yield iQ(ii("v2","meeting.getMeetingDetailsVerbose"),"meeting.getMeetingDetails",!0)}catch(t){throw Error(null==(e=null==t?void 0:t.errorCode)?void 0:e.toString())}if(((null==(t=r.details)?void 0:t.type)==tf.GroupCall||(null==(n=r.details)?void 0:n.type)==tf.OneOnOneCall)&&!r.details.originalCallerInfo)throw Error(r$.jK.NOT_SUPPORTED_ON_PLATFORM.toString());return r})}function fN(e){if(!e)throw Error("[get Authentication Token For AnonymousUser] Callback cannot be null");om(iA,rk.$c.sidePanel,rk.$c.meetingStage,rk.$c.task),i3(ii("v1","meeting.getAuthenticationTokenForAnonymousUser"),"meeting.getAuthenticationTokenForAnonymousUser",e)}function fD(e){if(!e)throw Error("[get live stream state] Callback cannot be null");om(iA,rk.$c.sidePanel),i3(ii("v1","meeting.getLiveStreamState"),"meeting.getLiveStreamState",e)}function fH(e,t,n){if(!e)throw Error("[request start live streaming] Callback cannot be null");om(iA,rk.$c.sidePanel),i3(ii("v1","meeting.requestStartLiveStreaming"),"meeting.requestStartLiveStreaming",[t,n],e)}function fx(e){if(!e)throw Error("[request stop live streaming] Callback cannot be null");om(iA,rk.$c.sidePanel),i3(ii("v1","meeting.requestStopLiveStreaming"),"meeting.requestStopLiveStreaming",e)}function fL(e){if(!e)throw Error("[register live stream changed handler] Handler cannot be null");om(iA,rk.$c.sidePanel),sO(ii("v1","meeting.registerLiveStreamChangedHandler"),"meeting.liveStreamChanged",e)}function fV(e,t,n={sharingProtocol:tp.Collaborative}){if(!e)throw Error("[share app content to stage] Callback cannot be null");om(iA,rk.$c.sidePanel,rk.$c.meetingStage),i3(ii("v1","meeting.shareAppContentToStage"),"meeting.shareAppContentToStage",[t,n],e)}function fW(e){if(!e)throw Error("[get app content stage sharing capabilities] Callback cannot be null");om(iA,rk.$c.sidePanel,rk.$c.meetingStage),i3(ii("v1","meeting.getAppContentStageSharingCapabilities"),"meeting.getAppContentStageSharingCapabilities",e)}function fB(e){if(!e)throw Error("[stop sharing app content to stage] Callback cannot be null");om(iA,rk.$c.sidePanel,rk.$c.meetingStage),i3(ii("v1","meeting.stopSharingAppContentToStage"),"meeting.stopSharingAppContentToStage",e)}function fj(e){if(!e)throw Error("[get app content stage sharing state] Callback cannot be null");om(iA,rk.$c.sidePanel,rk.$c.meetingStage),i3(ii("v1","meeting.getAppContentStageSharingState"),"meeting.getAppContentStageSharingState",e)}function fz(e){if(!e)throw Error("[registerSpeakingStateChangeHandler] Handler cannot be null");om(iA,rk.$c.sidePanel,rk.$c.meetingStage),sO(ii("v1","meeting.registerSpeakingStateChangeHandler"),"meeting.speakingStateChanged",e)}function fq(e){if(!e)throw Error("[registerRaiseHandStateChangedHandler] Handler cannot be null");om(iA,rk.$c.sidePanel,rk.$c.meetingStage),sO(ii("v1","meeting.registerRaiseHandStateChangedHandler"),"meeting.raiseHandStateChanged",e)}function fK(e){if(!e)throw Error("[registerMeetingReactionReceivedHandler] Handler cannot be null");om(iA,rk.$c.sidePanel,rk.$c.meetingStage),sO(ii("v1","meeting.registerMeetingReactionReceivedHandler"),"meeting.meetingReactionReceived",e)}function fG(e){if(void 0===(null==e?void 0:e.joinWebUrl)||null===(null==e?void 0:e.joinWebUrl))return Promise.reject(Error("Invalid joinMeetingParams"));om(iA);let t={joinWebUrl:e.joinWebUrl.href,source:e.source||tg.Other};return iQ(ii("v2","meeting.joinMeeting"),"meeting.joinMeeting",t)}function fY(e,t){if(!t)throw Error("[requestAppAudioHandling] Callback response cannot be null");if(!e.micMuteStateChangedCallback)throw Error("[requestAppAudioHandling] Callback Mic mute state handler cannot be null");om(iA,rk.$c.sidePanel,rk.$c.meetingStage),e.isAppHandlingAudio?function(e,t){i3(ii("v1","meeting.requestAppAudioHandling"),"meeting.requestAppAudioHandling",[e.isAppHandlingAudio],(n,r)=>{if(n&&null!=r)throw Error("[requestAppAudioHandling] Callback response - both parameters cannot be set");if(n)throw Error(`[requestAppAudioHandling] Callback response - SDK error ${n.errorCode} ${n.message}`);if("boolean"!=typeof r)throw Error("[requestAppAudioHandling] Callback response - isHostAudioless must be a boolean");sO(ii("v1","meeting.registerMicStateChangeHandler"),"meeting.micStateChanged",t=>nY(this,void 0,void 0,function*(){try{let n=yield e.micMuteStateChangedCallback(t);fQ(n,n.isMicMuted===t.isMicMuted?tc.HostInitiated:tc.AppDeclinedToChange)}catch(e){fQ(t,tc.AppFailedToChange)}}
1)),sO(ii("v1","meeting.registerAudioDeviceSelectionChangedHandler"),"meeting.audioDeviceSelectionChanged",t=>{var n;null==(n=e.audioDeviceSelectionChangedCallback)||n.call(e,t)}),t(r)})}(e,t):i3(ii("v1","meeting.requestAppAudioHandling"),"meeting.requestAppAudioHandling",[e.isAppHandlingAudio],(e,n)=>{if(e&&null!=n)throw Error("[requestAppAudioHandling] Callback response - both parameters cannot be set");if(e)throw Error(`[requestAppAudioHandling] Callback response - SDK error ${e.errorCode} ${e.message}`);if("boolean"!=typeof n)throw Error("[requestAppAudioHandling] Callback response - isHostAudioless must be a boolean");sM("meeting.micStateChanged")&&sF("meeting.micStateChanged"),sM("meeting.audioDeviceSelectionChanged")&&sF("meeting.audioDeviceSelectionChanged"),t(n)})}function fJ(e){fQ(e,tc.AppInitiated)}function fQ(e,t){om(iA,rk.$c.sidePanel,rk.$c.meetingStage),i3(ii("v1","meeting.setMicStateWithReason"),"meeting.updateMicState",[e,t])}function fZ(e,t){let n,r,i="";return"function"==typeof e?(n=e,r=t,i=ii("v1","monetization.openPurchaseExperience")):(r=e,i=ii("v2","monetization.openPurchaseExperience")),om(iA,rk.$c.content),function(e,t,...n){let r=e(...n);return r.then(e=>{t&&t(null,e)}).catch(e=>{t&&t(e,null)}),r}(()=>new Promise(e=>{if(!fX())throw rk._A;e(iQ(i,"monetization.openPurchaseExperience",r))}),n)}function fX(){return!(!om(iA)||!iA.supports.monetization)}function f0(e){return new Promise(t=>{if(om(iA,rk.$c.content),!f2())throw Error("Not supported");if(!e.itemId||!e.itemId.trim())throw Error("Must supply an itemId to openCalendarItem");t(iY(ii("v2","calendar.openCalendarItem"),"calendar.openCalendarItem",e))})}function f1(e){return new Promise(t=>{if(om(iA,rk.$c.content),!f2())throw Error("Not supported");let n=ii("v2","calendar.composeMeeting");t(iA.isLegacyTeams?iY(n,"executeDeepLink",function(e,t,n,r,i){let o=void 0===e?"":"attendees="+e.map(e=>encodeURIComponent(e)).join(","),a=void 0===t?"":`&startTime=${encodeURIComponent(t)}`,s=void 0===n?"":`&endTime=${encodeURIComponent(n)}`,l=void 0===r?"":`&subject=${encodeURIComponent(r)}`,c=void 0===i?"":`&content=${encodeURIComponent(i)}`;return`${im}://${iv}/l/meeting/new?${o}${a}${s}${l}${c}`}(e.attendees,e.startTime,e.endTime,e.subject,e.content)):iY(n,"calendar.composeMeeting",e))})}function f2(){return!(!om(iA)||!iA.supports.calendar)}function f3(e){e&&0!==e.length&&e.forEach(e=>{u6(e)})}function f6(e){if(om(iA,rk.$c.content),!f5())throw Error("Not supported");return function(e){if(!e.handoffId||0==e.handoffId.trim().length||""===e.handoffId.trim())throw Error("handoffId should not be null or empty string.");let t=e.composeMailParams;t.type===th.New&&(f3(t.toRecipients),f3(t.ccRecipients),f3(t.bccRecipients))}(e),i1("mail.handoff.composeMail",[new f8(e)],ii("v2","mail.handoff.composeMail"))}function f5(){return!!(om(iA)&&iA.supports.mail&&iA.supports.mail.handoff)}(es=tc||(tc={}))[es.HostInitiated=0]="HostInitiated",es[es.AppInitiated=1]="AppInitiated",es[es.AppDeclinedToChange=2]="AppDeclinedToChange",es[es.AppFailedToChange=3]="AppFailedToChange",(el=tu||(tu={})).like="like",el.heart="heart",el.laugh="laugh",el.surprised="surprised",el.applause="applause",(ec=td||(td={})).Unknown="Unknown",ec.Adhoc="Adhoc",ec.Scheduled="Scheduled",ec.Recurring="Recurring",ec.Broadcast="Broadcast",ec.MeetNow="MeetNow",(eu=tf||(tf={})).OneOnOneCall="oneOnOneCall",eu.GroupCall="groupCall",(ed=tp||(tp={})).Collaborative="Collaborative",ed.ScreenShare="ScreenShare",(ef=tg||(tg={})).M365CalendarGridContextMenu="m365_calendar_grid_context_menu",ef.M365CalendarGridPeek="m365_calendar_grid_peek",ef.M365CalendarGridEventCardJoinButton="m365_calendar_grid_event_card_join_button",ef.M365CalendarFormRibbonJoinButton="m365_calendar_form_ribbon_join_button",ef.M365CalendarFormJoinTeamsMeetingButton="m365_calendar_form_join_teams_meeting_button",ef.M365CalendarMeetNow="m365_calendar_meet_now",ef.Other="other";class f8{constructor(e){this.composeMailParamsWithHandoff=e}serialize(){return this.composeMailParamsWithHandoff}}function f4(e){return new Promise(t=>{if(om(iA,rk.$c.content),!f7())throw Error("Not supported");
1if(!e.itemId||!e.itemId.trim())throw Error("Must supply an itemId to openMailItem");t(iY(ii("v2","mail.openMailItem"),"mail.openMailItem",e))})}function f9(e){return new Promise(t=>{if(om(iA,rk.$c.content),!f7())throw Error("Not supported");t(iY(ii("v2","mail.composeMail"),"mail.composeMail",e))})}function f7(){return!(!om(iA)||!iA.supports.mail)}function pe(e,t){let n,r;om(iA,rk.$c.content,rk.$c.task,rk.$c.settings);let i="";return"function"==typeof e?([n,r]=[e,t],i=ii("v1","people.selectPeople")):(r=e,i=ii("v2","people.selectPeople")),function(e,t,...n){let r=e(...n);return r.then(e=>{t&&t(void 0,e)}).catch(e=>{t&&t(e)}),r}(pt,n,i,r)}function pt(e,t){return new Promise(n=>{var r;if(!ov("2.0.0"))throw{errorCode:r$.jK.OLD_PLATFORM};if(!((!(r=t)||(!r.title||"string"==typeof r.title)&&(!r.setSelected||"object"==typeof r.setSelected)&&(!r.openOrgWideSearchInChatOrChannel||"boolean"==typeof r.openOrgWideSearchInChatOrChannel)&&(!r.singleSelect||"boolean"==typeof r.singleSelect))&&1))throw{errorCode:r$.jK.INVALID_ARGUMENTS};if(!pn())throw rk._A;n(iQ(e,"people.selectPeople",t))})}function pn(){return!(!om(iA)||!iA.supports.people)}function pr(e){return om(iA,rk.$c.content),new Promise(t=>{var n;let[r,i]=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?(n=e.persona)?n.displayName&&"string"!=typeof n.displayName?[!1,"displayName must be a string"]:n.identifiers&&"object"==typeof n.identifiers?n.identifiers.AadObjectId||n.identifiers.Smtp||n.identifiers.Upn?n.identifiers.AadObjectId&&"string"!=typeof n.identifiers.AadObjectId?[!1,"AadObjectId identifier must be a string"]:n.identifiers.Smtp&&"string"!=typeof n.identifiers.Smtp?[!1,"Smtp identifier must be a string"]:n.identifiers.Upn&&"string"!=typeof n.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"]:[!1,"triggerType must be a valid string"]:[!1,"targetElementBoundingRect must be a DOMRect"]:[!1,"A request object is required"];if(!r)throw{errorCode:r$.jK.INVALID_ARGUMENTS,message:i};let o={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}};t(iQ(ii("v2","profile.showProfile"),"profile.showProfile",o))})}function pi(){return!(!om(iA)||!iA.supports.profile)}(ep=th||(th={})).New="new",ep.Reply="reply",ep.ReplyAll="replyAll",ep.Forward="forward";let po="search.queryChange",pa="search.queryClose",ps="search.queryExecute";function pl(e,t,n){if(om(iA,rk.$c.content),!pu())throw rk._A;sO(ii("v2","search.registerOnClosedHandler"),pa,e),sO(ii("v2","search.registerOnExecutedHandler"),ps,t),n&&sO(ii("v2","search.registerOnChangeHandler"),po,n)}function pc(){if(om(iA,rk.$c.content),!pu())throw rk._A;i3(ii("v2","search.unregisterHandlers"),"search.unregister"),sF(po),sF(pa),sF(ps)}function pu(){return!(!om(iA)||!iA.supports.search)}function pd(){return new Promise(e=>{if(om(iA,rk.$c.content),!pu())throw Error("Not supported");e(iY(ii("v2","search.closeSearch"),"search.closeSearch"))})}function pf(){return nY(this,void 0,void 0,function*(){if(om(iA,rk.$c.sidePanel,rk.$c.meetingStage),!pp())throw rk._A;return yield iQ(ii("v2","sharing.history.getContent"),"sharing.history.getContent")})}function pp(){var e;return om(iA)&&void 0!==(null==(e=iA.supports.sharing)?void 0:e.history)}let pg={shareWebContent:"sharing.shareWebContent"};function ph(e,t){try{!function(e){if(!(e&&e.content&&e.content.length))throw{errorCode:r$.jK.INVALID_ARGUMENTS,message:"Shared content is missing"}}(e),function(e){if(e.content.some(e=>!e.type))throw{errorCode:r$.jK.INVALID_ARGUMENTS,message:"Shared content type cannot be undefined"};if(e.content.some(t=>t.type!==e.content[0].type))throw{errorCode:r$.jK.INVALID_ARGUMENTS,message:"Shared content must be of the same type"}}(e),e.content.forEach(pv)}catch(e){return rB(()=>Promise.reject(e),t)}om(iA,rk.$c.content,rk.$c.sidePanel,rk.$c.task,rk.$c.stage,rk.$c.meetingStage);let n=ii(t?"v1":"v2","sharing.shareWebContent");return rB(pm,t,n,e)}function pm(e,t){return new Promise(n=>{if(!pw())throw rk._A;n(iQ(e,pg.shareWebContent,t))})}function pv(e){if("URL"===e.type){if(!e.url)throw{errorCode:r$.jK.INVALID_ARGUMENTS,message:"URLs are required for URL content types"}}else{if("FILE"!==e.type)throw{errorCode:r$.jK.INVALID_ARGUMENTS,message:"Content type is unsupported"};if(!e.url)throw{errorCode:r$.jK.INVALID_ARGUMENTS,message:"File URLs are required for File content types"}}}function pw(){return!(!om(iA)||!iA.supports.sharing)}function pC(){return new Promise(e=>{if(om(iA,rk.$c.content),!py())throw rk._A;e(iQ(ii("v2","stageView.self.close"),"stageView.self.close"))})}function py(){var e;return om(iA)&&void 0!==(null==(e=iA.supports.stageView)?void 0:e.self)}function pS(e){return new Promise(t=>{if(om(iA,rk.$c.content),!pA())throw rk._A;if(!e)throw Error("[stageView.open] Stage view params cannot be null");t(iQ(ii("v2","stageView.open"),"stageView.open",e))})}function pA(){return!(!om(iA)||!iA.supports.stageView)}function pb(e){return nY(this,void 0,void 0,function*(){om(iA,rk.$c.content,rk.$c.task),pT(),pP(e);let t=yield iQ(ii("v2","visualMedia.image.captureImages"),"visualMedia.image.captureImages",e);return pR(e.maxVisualMediaCount,t),t})}function pE(e){return nY(this,void 0,void 0,function*(){om(iA,rk.$c.content,rk.$c.task),pT(),pP(e);let t=yield iQ(ii("v2","visualMedia.image.retrieveImages"),"visualMedia.image.retrieveImages",e);return pR(e.maxVisualMediaCount,t),t})}function pI(){return!!(om(iA)&&iA.supports.visualMedia&&iA.supports.visualMedia.image&&iA.supports.permissions)}function pT(){if(!pI())throw rk._A}function pP(e){if(!e||e.maxVisualMediaCount>10||e.maxVisualMediaCount<1)throw rk.yF}function pR(e,t){if(t.length>e)throw rk.dm}function pO(){if(om(iA,rk.$c.content,rk.$c.task),!pI())throw rk._A;let e=r$.bK.Media;return iQ(ii("v2","visualMedia.hasPermission"),"permissions.has",e)}function pF(){if(om(iA,rk.$c.content,rk.$c.task),!pI())throw rk._A;let e=r$.bK.Media;return iQ(ii("v2","visualMedia.requestPermission"),"permissions.request",e)}(eg=tm||(tm={}
1)).modal="modal",eg.popout="popout",eg.popoutWithChat="popoutWithChat",(eh=tv||(tv={}))[eh.FrontOrRear=1]="FrontOrRear",eh[eh.FrontOnly=2]="FrontOnly",eh[eh.RearOnly=3]="RearOnly",(em=tw||(tw={}))[em.Camera=1]="Camera",em[em.Gallery=2]="Gallery";let pM=null;function p_(){return nY(this,void 0,void 0,function*(){if(om(iA),!pk())throw rk._A;return!(!iA.isLegacyTeams||iC.hostClientType!==rk.WH.android&&iC.hostClientType!==rk.WH.ios&&iC.hostClientType!==rk.WH.ipados&&iC.hostClientType!==rk.WH.visionOS||(yield function(){return nY(this,void 0,void 0,function*(){return function(){return nY(this,void 0,void 0,function*(){return null===pM&&(pM=(yield oV()).app.host.name),pM})}()})}())!==rk.UB.teams)||(yield iG(ii("v2","webStorage.isWebStorageClearedOnUserLogOut"),"webStorage.isWebStorageClearedOnUserLogOut"))})}function pk(){return om(iA)&&void 0!==iA.supports.webStorage}function p$(e){let t=ii("v2","call.startCall");return new Promise(n=>{var r;if(om(iA,rk.$c.content,rk.$c.task),!pU())throw rk._A;if(!iA.isLegacyTeams)return i3(t,"call.startCall",[e],n);n(iG(t,"executeDeepLink",function(e,t,n){if(0===e.length)throw Error("Must have at least one target when creating a call deep link");let r=`${dW}=`+e.map(e=>encodeURIComponent(e)).join(","),i=void 0===t?"":`&withVideo=${encodeURIComponent(t)}`,o=void 0===n?"":`&source=${encodeURIComponent(n)}`;return`${im}://${iv}/l/call/0/0?${r}${i}${o}`}(e.targets,null==(r=e.requestedModalities)?void 0:r.includes(tC.Video),e.source)).then(e=>{if(!e)throw Error("The call was not properly started");return e}))})}function pU(){return!(!om(iA)||!iA.supports.call)}function pN(){ax(ii("v1","appInitialization.notifyAppLoaded"))}function pD(){i3(ii("v1","appInitialization.notifySuccess"),o$.Success,[iM])}function pH(e){aV(ii("v1","appInitialization.notifyFailure"),e)}function px(e){aL(ii("v1","appInitialization.notifyExpectedFailure"),e)}(ev=tC||(tC={})).Unknown="unknown",ev.Audio="audio",ev.Video="video",ev.VideoBasedScreenSharing="videoBasedScreenSharing",ev.Data="data";let pL=ir("thirdPartyCloudStorage");class pV{constructor(e,t){this.fileType=e,this.assembleAttachment=t}}let pW=[],pB=null,pj=!0,pz=null;function pq(e,t){if(!t)throw Error("[getDragAndDropFiles] Callback cannot be null");if(!e||""===e)return void t([],{errorCode:r$.jK.INVALID_ARGUMENTS});if(om(iA,rk.$c.content,rk.$c.task),!pG())throw rk._A;if(pz)throw pz=null,Error("getDragAndDropFiles cannot be called twice");pz=t,pj=!0,i3(ii("v2","thirdPartyCloudStorage.getDragAndDropFiles"),"thirdPartyCloudStorage.getDragAndDropFiles",[e],pK)}function pK(e){if(pz)if(e&&e.error)pz([],e.error),pz=null;else if(e&&e.fileChunk)try{pj||0!==e.fileChunk.chunkSequence||(pL("Last chunk is not received or 'endOfFile' value for previous chunk was not set to true"),pj=!0,pz([],{errorCode:r$.jK.INTERNAL_ERROR,message:"error occurred while receiving data"}),pW=[],pz=null);let t=d5(e.fileChunk,e.fileType);if(t?(pB||(pB=new pV(e.fileType,[])),pB.assembleAttachment.push(t)):(pL(`Received a null assemble attachment for when decoding chunk sequence ${e.fileChunk.chunkSequence}; not including the chunk in the assembled file.`),pz?pz([],{errorCode:r$.jK.INTERNAL_ERROR,message:"error occurred while receiving data"}):pz=null,pW=[],pz=null,pj=!0),pj=e.fileChunk.endOfFile,e.fileChunk.endOfFile&&pB){let t=d6(pB.assembleAttachment,pB.fileType);if(t){let n=new File([t],e.fileName,{type:t.type});pW.push(n)}e.isLastFile&&pz&&(pz(pW,e.error),pW=[],pz=null,pj=!0),pB=null}}catch(e){pz&&(pz([],{errorCode:r$.jK.INTERNAL_ERROR,message:e}),pW=[],pz=null,pj=!0)}else pz([],{errorCode:r$.jK.INTERNAL_ERROR,message:"data received is null"}),pW=[],pz=null,pj=!0}function pG(){return!(!om(iA)||!iA.supports.thirdPartyCloudStorage)}function pY(e){sC(ii("v1","settings.setValidityState"),e)}function pJ(e){om(iA,rk.$c.content,rk.$c.settings,rk.$c.remove,rk.$c.sidePanel),sy(ii("v1","settings.getSettings")).then(t=>{e(t)})}function pQ(e,t){om(iA,rk.$c.content,rk.$c.settings,rk.$c.sidePanel);let n=null!=t?t:rV();sS(ii("v1","settings.setSettings"),e).then(()=>{n(!0)}).catch(e=>{n(!1,e.message)})}function pZ(e){aR(ii("v1","settings.registerOnSaveHandler"),e)}function pX(e){aF(ii("v1","settings.registerOnRemoveHandler"),e)}function p0(e,t){let n=ii("v1","tasks.startTask"),r=t?e=>{var n,r;return t(null!=(n=e.err)?n:"",null!=(r=e.result)?r:"")}:void 0;return void 0===e.card&&void 0===e.url||e.card?(om(iA,rk.$c.content,rk.$c.sidePanel,rk.$c.meetingStage),i3(n,"tasks.startTask",[e],t)):void 0!==e.completionBotId?an(n,function(e){if(void 0===e.url||void 0===e.completionBotId)throw Error(`Both url ${e.url} and completionBotId ${e.completionBotId} are required for bot url dialog. At least one is undefined.`);return{url:e.url,size:{height:e.height?e.height:rk.El.Small,width:e.width?e.width:rk.El.Small},title:e.title,fallbackUrl:e.fallbackUrl,completionBotId:e.completionBotId}}(e),r):at(n,function(e){if(void 0===e.url)throw Error("url property of taskInfo object can't be undefined");return{url:e.url,size:{height:e.height?e.height:rk.El.Small,width:e.width?e.width:rk.El.Small},title:e.title,fallbackUrl:e.fallbackUrl}}(e),r),new u4}function p1(e){let{width:t,height:n}=e=p3(e);if(Object.keys(nG(e,["width","height"])).length)throw Error("resize requires a TaskInfo argument containing only width and height");ae(ii("v1","tasks.updateTask"),e)}function p2(e,t){ar(ii("v1","tasks.submitTask"),e,t)}function p3(e){return e.height=e.height?e.height:rk.El.Small,e.width=e.width?e.width:rk.El.Small,e}function p6(e){try{return e.cartItems=function e(t){return t.map(t=>{if(t.imageURL){let e=new URL(t.imageURL);t.imageURL=e}return t.accessories&&(t.accessories=e(t.accessories)),t})}(e.cartItems),e}catch(e){throw Error("Error deserializing cart")}}let p5=e=>{try{return e.map(e=>{let{imageURL:t,accessories:n}=e,r=nG(e,["imageURL","accessories"]),i=Object.assign({},r);return t&&(i.imageURL=t.href),n&&(i.accessories=p5(n)),i})}catch(e){throw Error("Error serializing cart items")}};function p8(e){if(!e.id)throw Error("cartItem.id must not be empty");if(!e.name)throw Error("cartItem.name must not be empty");(function(e){if("number"!=typeof e||e<0)throw Error(`price ${e} must be a number not less than 0`);if(parseFloat(e.toFixed(3))!==e)throw Error(`price ${e} must have at most 3 decimal places`)})(e.price),function(e){if("number"!=typeof e||e<=0||parseInt(e.toString())!==e)throw Error(`quantity ${e} must be an integer greater than 0`)}(e.quantity)}function p4(e){if(null!=e){if(!e)throw Error("id must not be empty");if(!1===rL(e))throw Error("id must be a valid UUID")}}let p9={majorVersion:1,minorVersion:1};function p7(){if(om(iA,rk.$c.content,rk.$c.task),!gr())throw rk._A;return iQ(ii("v2","marketplace.getCart"),"marketplace.getCart",p9).then(p6)}function ge(e){if(om(iA,rk.$c.content,rk.$c.task),!gr())throw rk._A;if(!e)throw Error("addOrUpdateCartItemsParams must be provided");return p4(null==e?void 0:e.cartId),function(e){if(!Array.isArray(e)||0===e.length)throw Error("cartItems must be a non-empty array");for(let t of e)p8(t),function(e){if(null!=e){if(!Array.isArray(e)||0===e.length)throw Error("CartItem.accessories must be a non-empty array");for(let t of e){if(t.accessories)throw Error("Item in CartItem.accessories cannot have accessories");p8(t)}}}(t.accessories)}(null==e?void 0:e.cartItems),iQ(ii("v2","marketplace.addOrUpdateCartItems"),"marketplace.addOrUpdateCartItems",Object.assign(Object.assign({},e),{cartItems:p5(e.cartItems),cartVersion:p9})).then(p6)}function gt(e){if(om(iA,rk.$c.content,rk.$c.task),!gr())throw rk._A;if(!e)throw Error("removeCartItemsParams must be provided");
1if(p4(null==e?void 0:e.cartId),!Array.isArray(null==e?void 0:e.cartItemIds)||0===(null==e?void 0:e.cartItemIds.length))throw Error("cartItemIds must be a non-empty array");return iQ(ii("v2","marketplace.removeCartItems"),"marketplace.removeCartItems",Object.assign(Object.assign({},e),{cartVersion:p9})).then(p6)}function gn(e){if(om(iA,rk.$c.content,rk.$c.task),!gr())throw rk._A;if(!e)throw Error("updateCartStatusParams must be provided");return p4(null==e?void 0:e.cartId),function(e){if(!Object.values(tS).includes(e))throw Error(`cartStatus ${e} is not valid`)}(null==e?void 0:e.cartStatus),iQ(ii("v2","marketplace.updateCartStatus"),"marketplace.updateCartStatus",Object.assign(Object.assign({},e),{cartVersion:p9})).then(p6)}function gr(){return!(!om(iA)||!iA.supports.marketplace)}(ew=ty||(ty={})).TACAdminUser="TACAdminUser",ew.TeamsAdminUser="TeamsAdminUser",ew.TeamsEndUser="TeamsEndUser",(eC=tS||(tS={})).Open="Open",eC.Processing="Processing",eC.Processed="Processed",eC.Closed="Closed",eC.Error="Error";class gi{constructor(e){this.direction=e}serialize(){return{direction:this.direction}}}function go(e){return 3===e?"back":4===e?"forward":void 0}function ga(e){void 0!==go(e.button)&&(e.preventDefault(),e.stopImmediatePropagation())}function gs(e){let t=go(e.button);t&&(e.preventDefault(),e.stopImmediatePropagation(),i1("mouseRelay.navigateHistory",[new gi(t)],ii("v2","mouseRelay.navigateHistory")))}let gl=!1;function gc(){return nY(this,void 0,void 0,function*(){if(!gd())throw rk._A;gl||(document.addEventListener("mousedown",ga,{capture:!0}),document.addEventListener("mouseup",gs,{capture:!0}),document.addEventListener("auxclick",ga,{capture:!0})),gl=!0})}function gu(){if(!gd())throw rk._A;gl=!1,document.removeEventListener("mousedown",ga,{capture:!0}),document.removeEventListener("mouseup",gs,{capture:!0}),document.removeEventListener("auxclick",ga,{capture:!0})}function gd(){return!(!om(iA)||!iA.supports.mouseRelay)}class gf{constructor(e){this.event=e}serialize(){return{altKey:this.event.altKey,bubbles:this.event.bubbles,cancelBubble:this.event.cancelBubble,charCode:this.event.charCode,code:this.event.code,composed:this.event.composed,ctrlKey:this.event.ctrlKey,defaultPrevented:this.event.defaultPrevented,detail:this.event.detail,eventPhase:this.event.eventPhase,isComposing:this.event.isComposing,isTrusted:this.event.isTrusted,key:this.event.key,keyCode:this.event.keyCode,location:this.event.location,metaKey:this.event.metaKey,repeat:this.event.repeat,returnValue:this.event.returnValue,shiftKey:this.event.shiftKey,timeStamp:this.event.timeStamp,type:this.event.type,which:this.event.which}}}function gp(e){return e.toLowerCase().split("+").sort().join("+")}function gg(e){gw.clear(),e.shortcuts.forEach(e=>{gw.add(gp(e))}),gv.clear(),e.overridableShortcuts.forEach(e=>{gv.add(gp(e))})}class gh extends aA{validate(e){return e&&Array.isArray(e.shortcuts)&&Array.isArray(e.overridableShortcuts)}deserialize(e){return e}}function gm(e){if(e.target.closest(`[${gI}]`))return;let{matchedShortcut:t,isOverridable:n}=function(e,t){if(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey||t.key&&"escape"===t.key.toLowerCase()||t.key&&/^F\d+$/i.test(t.key)){let n=[t.ctrlKey&&"ctrl",t.shiftKey&&"shift",t.altKey&&"alt",t.metaKey&&"meta",t.key.toLowerCase()].filter(Boolean).sort().join("+");if(e.has(n))return{matchedShortcut:n,isOverridable:gv.has(n)}}return{matchedShortcut:void 0,isOverridable:!1}}(gw,e);!t||n&&gC&&gC(e,{matchedShortcut:t})||(i1("shortcutRelay.forwardShortcutEvent",[new gf(e)],ii("v2","shortcutRelay.forwardShortcutEvent")),e.preventDefault(),e.stopImmediatePropagation())}let gv=new Set,gw=new Set,gC,gy=!1;function gS(e){if(!gE())throw rk._A;let t=gC;return gC=e,t}function gA(){if(!gE())throw rk._A;gy=!1,gw.clear(),gv.clear(),gC=void 0,document.removeEventListener("keydown",gm,{capture:!0})}function gb(){return nY(this,void 0,void 0,function*(){if(!gE())throw rk._A;gg((yield i0("shortcutRelay.getHostShortcuts",[],new gh,ii("v2","shortcutRelay.getHostShortcuts")))),gy||document.addEventListener("keydown",gm,{capture:!0}),gy=!0,sO(ii("v2","shortcutRelay.hostShortcutChanged"),"shortcutRelay.hostShortcutChanged",e=>{gg(e)})})}function gE(){return!(!om(iA)||!iA.supports.shortcutRelay)}let gI="data-disable-shortcuts-forwarding"},30597:function(e,t,n){n.d(t,{$c:()=>p,C9:()=>h,EN:()=>S,El:()=>v,UB:()=>f,WH:()=>d,_A:()=>y,_m:()=>A,dm:()=>E,eF:()=>g,vV:()=>m,xu:()=>w,yF:()=>b});var r,i,o,a,s,l,c,u,d,f,p,g,h,m,v,w,C=n(59811);(r=d||(d={})).desktop="desktop",r.web="web",r.android="android",r.ios="ios",r.ipados="ipados",r.macos="macos",r.visionOS="visionOS",r.rigel="rigel",r.surfaceHub="surfaceHub",r.teamsRoomsWindows="teamsRoomsWindows",r.teamsRoomsAndroid="teamsRoomsAndroid",r.teamsPhones="teamsPhones",r.teamsDisplays="teamsDisplays",(i=f||(f={})).office="Office",i.outlook="Outlook",i.outlookWin32="OutlookWin32",i.orange="Orange",i.places="Places",i.teams="Teams",i.teamsModern="TeamsModern",(o=p||(p={})).settings="settings",o.content="content",o.authentication="authentication",o.remove="remove",o.task="task",o.sidePanel="sidePanel",o.stage="stage",o.meetingStage="meetingStage",(a=g||(g={})).copilotSidePanel="copilotSidePanel",a.copilotMainPane="copilotMainPane",a.copilotFullScreen="copilotFullScreen",(s=h||(h={}))[s.Standard=0]="Standard",s[s.Edu=1]="Edu",s[s.Class=2]="Class",s[s.Plc=3]="Plc",s[s.Staff=4]="Staff",(l=m||(m={}))[l.Admin=0]="Admin",l[l.User=1]="User",l[l.Guest=2]="Guest",(c=v||(v={})).Large="large",c.Medium="medium",c.Small="small",(u=w||(w={})).Regular="Regular",u.Private="Private",u.Shared="Shared";let y={errorCode:C.jK.NOT_SUPPORTED_ON_PLATFORM},S={majorVersion:1,minorVersion:5},A={adaptiveCardSchemaVersion:{majorVersion:1,minorVersion:5}},b=Error("Invalid input count: Must supply a valid image count (limit of 10)."),E=Error("Invalid response: Received more images than the specified max limit in the response.")},59811:function(e,t,n){var r,i,o,a,s,l,c,u,d,f,p,g,h,m,v,w,C,y,S;function A(e){return void 0!==(null==e?void 0:e.errorCode)}n.d(t,{Bb:()=>f,Bj:()=>d,Dj:()=>r,Sf:()=>o,Xu:()=>i,a7:()=>u,bK:()=>s,jK:()=>a,pY:()=>A}),(p=r||(r={})).Inline="inline",p.Desktop="desktop",p.Web="web",(i||(i={})).M365Content="m365content",(g=o||(o={})).DriveId="driveId",g.GroupId="groupId",g.SiteId="siteId",g.UserId="userId",(h=a||(a={}))[h.NOT_SUPPORTED_ON_PLATFORM=100]="NOT_SUPPORTED_ON_PLATFORM",h[h.INTERNAL_ERROR=500]="INTERNAL_ERROR",h[h.NOT_SUPPORTED_IN_CURRENT_CONTEXT=501]="NOT_SUPPORTED_IN_CURRENT_CONTEXT",h[h.PERMISSION_DENIED=1e3]="PERMISSION_DENIED",h[h.NETWORK_E
1RROR=2e3]="NETWORK_ERROR",h[h.NO_HW_SUPPORT=3e3]="NO_HW_SUPPORT",h[h.INVALID_ARGUMENTS=4e3]="INVALID_ARGUMENTS",h[h.UNAUTHORIZED_USER_OPERATION=5e3]="UNAUTHORIZED_USER_OPERATION",h[h.INSUFFICIENT_RESOURCES=6e3]="INSUFFICIENT_RESOURCES",h[h.THROTTLE=7e3]="THROTTLE",h[h.USER_ABORT=8e3]="USER_ABORT",h[h.OPERATION_TIMED_OUT=8001]="OPERATION_TIMED_OUT",h[h.OLD_PLATFORM=9e3]="OLD_PLATFORM",h[h.FILE_NOT_FOUND=404]="FILE_NOT_FOUND",h[h.SIZE_EXCEEDED=1e4]="SIZE_EXCEEDED",(m=s||(s={})).GeoLocation="geolocation",m.Media="media",(v=l||(l={})).BCAIS="bcais",v.BCWAF="bcwaf",v.BCWBF="bcwbf",(w=c||(c={})).Faculty="faculty",w.Student="student",w.Other="other",(C=u||(u={})).Adult="adult",C.MinorNoParentalConsentRequired="minorNoParentalConsentRequired",C.MinorWithoutParentalConsent="minorWithoutParentalConsent",C.MinorWithParentalConsent="minorWithParentalConsent",C.NotAdult="notAdult",C.NonAdult="notAdult",(y=d||(d={})).HigherEducation="higherEducation",y.K12="k12",y.Other="other",(S=f||(f={})).TextPlain="text/plain",S.TextHtml="text/html",S.ImagePNG="image/png",S.ImageJPEG="image/jpeg"}}]);
2//# sourceMappingURL=teams-34387458c7bc7908.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.